Files
wecom_it_smart_desk/frontend-agent/dist_old/assets/index-CnIbBo4X.js
T

93 lines
1.1 MiB
JavaScript
Raw Normal View History

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/Login-CewpK3CP.js","assets/auth-CITXA-oC.js","assets/index-ra8jRslb.js","assets/agent-Dxg35leS.js","assets/conversation-BQKKYvcD.js","assets/Login-CElHaGPH.css","assets/Bind-Bxv2qNdm.js","assets/Bind-qSFyrdvX.css","assets/Workspace-Aoo9w7ld.js","assets/AiAssistantPanel-Ijo7E7oT.js","assets/AiAssistantPanel-BNp9eqDp.css","assets/Workspace-B9nWdR6M.css","assets/AgentPreviewView-DOHGXU5o.js","assets/AgentPreviewView-B79RJoCv.css","assets/MfaBind-CEu0IKBh.js","assets/MfaBind-DAafe6c7.css","assets/SessionWorkbench-BLisoDd-.js","assets/SessionWorkbench-CkYHpVNH.css","assets/ApprovalQueue-DvF_mxea.js","assets/ApprovalQueue-BKzG2UdI.css","assets/Settings-B67a5Y9h.js","assets/Settings-CefBf3Qq.css","assets/TriageDashboard-BVd0Dr1U.js","assets/TriageDashboard-BCeiERk4.css"])))=>i.map(i=>d[i]);
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))a(l);new MutationObserver(l=>{for(const o of l)if(o.type==="childList")for(const r of o.addedNodes)r.tagName==="LINK"&&r.rel==="modulepreload"&&a(r)}).observe(document,{childList:!0,subtree:!0});function n(l){const o={};return l.integrity&&(o.integrity=l.integrity),l.referrerPolicy&&(o.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?o.credentials="include":l.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function a(l){if(l.ep)return;l.ep=!0;const o=n(l);fetch(l.href,o)}})();/**
* @vue/shared v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function op(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const hn={},ls=[],ft=()=>{},x3=()=>!1,Cd=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),_d=e=>e.startsWith("onUpdate:"),zn=Object.assign,rp=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Lx=Object.prototype.hasOwnProperty,It=(e,t)=>Lx.call(e,t),Ce=Array.isArray,os=e=>hu(e)==="[object Map]",Sd=e=>hu(e)==="[object Set]",Uo=e=>hu(e)==="[object Date]",We=e=>typeof e=="function",Le=e=>typeof e=="string",Pa=e=>typeof e=="symbol",rt=e=>e!==null&&typeof e=="object",Yo=e=>(rt(e)||We(e))&&We(e.then)&&We(e.catch),k3=Object.prototype.toString,hu=e=>k3.call(e),Bx=e=>hu(e).slice(8,-1),Li=e=>hu(e)==="[object Object]",xd=e=>Le(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,wi=op(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),kd=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},zx=/-\w/g,Un=kd(e=>e.replace(zx,t=>t.slice(1).toUpperCase())),Dx=/\B([A-Z])/g,ho=kd(e=>e.replace(Dx,"-$1").toLowerCase()),mu=kd(e=>e.charAt(0).toUpperCase()+e.slice(1)),yr=kd(e=>e?`on${mu(e)}`:""),xl=(e,t)=>!Object.is(e,t),mc=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},E3=(e,t,n,a=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:a,value:n})},sp=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Hx=e=>{const t=Le(e)?Number(e):NaN;return isNaN(t)?e:t};let V1;const Ed=()=>V1||(V1=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function je(e){if(Ce(e)){const t={};for(let n=0;n<e.length;n++){const a=e[n],l=Le(a)?jx(a):je(a);if(l)for(const o in l)t[o]=l[o]}return t}else if(Le(e)||rt(e))return e}const Fx=/;(?![^(]*\))/g,Kx=/:([^]+)/,Wx=/\/\*[^]*?\*\//g;function jx(e){const t={};return e.replace(Wx,"").split(Fx).forEach(n=>{if(n){const a=n.split(Kx);a.length>1&&(t[a[0].trim()]=a[1].trim())}}),t}function R(e){let t="";if(Le(e))t=e;else if(Ce(e))for(let n=0;n<e.length;n++){const a=R(e[n]);a&&(t+=a+" ")}else if(rt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function to(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Le(t)&&(e.class=R(t)),n&&(e.style=je(n)),e}const qx="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Ux=op(qx);function M3(e){return!!e||e===""}function Yx(e,t){if(e.length!==t.length)return!1;let n=!0;for(let a=0;n&&a<e.length;a++)n=Er(e[a],t[a]);return n}function Er(e,t){if(e===t)return!0;let n=Uo(e),a=Uo(t);if(n||a)return n&&a?e.getTime()===t.getTime():!1;if(n=Pa(e),a=Pa(t),n||a)return e===t;if(n=Ce(e),a=Ce(t),n||a)return n&&a?Yx(e,t):!1;if(n=rt(e),a=rt(t),n||a){if(!n||!a)return!1;const l=Object.keys(e).length,o=Object.keys(t).length;if(l!==o)return!1;for(const r in e){const s=e.hasOwnProperty(r),u=t.hasOwnProperty(r);if(s&&!u||!s&&u||!Er(e[r],t[r]))return!1}}return String(e)===String(t)}function T3(e,t){return e.findIndex(n=>Er(n,t))}const $3=e=>!!(e&&e.__v_isRef===!0),Se=e=>Le(e)?e:e==null?"":Ce(e)||rt(e)&&(e.toString===k3||!We(e.toString))?$3(e)?Se(e.value):JSON.stringify(e,O3,2):String(e),O3=(e,t)=>$3(t)?O3(e,t.value):os(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[a,l],o)=>(n[Af(a,o)+" =>"]=l,n),{})}:Sd(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>Af(n))}:Pa(t)?Af(t):rt(t)&&!Ce(t)&&!Li(t)?String(t):t,Af=(e,t="")=>{var n;return Pa(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
* @vue/reactivity v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let Fn;class N3{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this._warnOnRun=!0,this.__v_skip=!0,!t&&Fn&&(Fn.active?(this.parent=Fn,this.index=(Fn.scopes||(Fn.scopes=[])).push(this)-1):(this._active=!1,this._warnOnRun=!1))}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=Fn;try{return Fn=this,t()}finally{Fn=n}}}on(){++this._on===1&&(this.prevScope=Fn,Fn=this)}off(){if(this._on>0&&--this._on===0){if(Fn===this)Fn=this.prevScope;else{let t=Fn;for(;t;){if(t.prevScope===this){t.prevScope=this.prevScope;break}t=t.prevScope}}this.prevScope=void 0}}stop(t){if(this._active){this._active=!1;let n,a;for(n=0,a=this.effects.length;n<a;n++)this.effects[n].stop();for(this.effects.length=0,n=0,a=this.cleanups.length;n<a;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,a=this.scopes.length;n<a;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const l=this.parent.scopes.pop();l&&l!==this&&(this.parent.scopes[this.index]=l,l.index=this.index)}this.parent=void 0}}}function ip(e){return new N3(e)}function Md(){return Fn}function up(e,t=!1){Fn&&Fn.cleanups.push(e)}let bn;const Rf=new WeakSet;class A3{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,Fn&&(Fn.active?Fn.effects.push(this):this.flags&=-2)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,Rf.has(this)&&(Rf.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||P3(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,L1(this),I3(this);const t=bn,n=nl;bn=this,nl=!0;try{return this.fn()}finally{V3(this),bn=t,nl=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)fp(t);this.deps=this.depsTail=void 0,L1(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?Rf.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){E0(this)&&this.run()}get dirty(){return E0(this)}}let R3=0,Ci,_i;function P3(e,t=!1){if(e.flags|=8,t){e.next=_i,_i=e;return}e.next=Ci,Ci=e}function cp(){R3++}function dp(){if(--R3>0)return;if(_i){let t=_i;for(_i=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Ci;){let t=Ci;for(Ci=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(a){e||(e=a)}t=n}}if(e)throw e}function I3(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function V3(e){let t,n=e.depsTail,a=n;for(;a;){const l=a.prevDep;a.version===-1?(a===n&&(n=l),fp(a),Gx(a)):t=a,a.dep.activeLink=a.prevActiveLink,a.prevActiveLink=void 0,a=l}e.deps=t,e.depsTail=n}function E0(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(L3(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function L3(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Bi)||(e.globalVersion=Bi,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!E0(e))))return;e.flags|=2;const t=e.dep,n=bn,a=nl;bn=e,nl=!0;try{I3(e);const l=e.fn(e._value);(t.version===0||xl(l,e._value))&&(e.flags|=128,e._value=l,t.version++)}catch(l){throw t.version++,l}finally{bn=n,nl=a,V3(e),e.flags&=-3}}function fp(e,t=!1){const{dep:n,prevSub:a,nextSub:l}=e;if(a&&(a.nextSub=l,e.prevSub=void 0),l&&(l.prevSub=a,e.nextSub=void 0),n.subs===e&&(n.subs=a,!a&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)fp(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function Gx(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let nl=!0;const B3=[];func
* @vue/runtime-core v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function gu(e,t,n,a){try{return a?e(...a):e()}catch(l){Rd(l,t,n)}}function ja(e,t,n,a){if(We(e)){const l=gu(e,t,n,a);return l&&Yo(l)&&l.catch(o=>{Rd(o,t,n)}),l}if(Ce(e)){const l=[];for(let o=0;o<e.length;o++)l.push(ja(e[o],t,n,a));return l}}function Rd(e,t,n,a=!0){const l=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:r}=t&&t.appContext.config||hn;if(t){let s=t.parent;const u=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${n}`;for(;s;){const d=s.ec;if(d){for(let f=0;f<d.length;f++)if(d[f](e,u,c)===!1)return}s=s.parent}if(o){Nl(),gu(o,null,10,[e,u,c]),Al();return}}C7(e,n,l,a,r)}function C7(e,t,n,a=!0,l=!1){if(l)throw e;console.error(e)}const fa=[];let Cl=-1;const rs=[];let Vo=null,Qr=0;const Z3=Promise.resolve();let zc=null;function Pe(e){const t=zc||Z3;return e?t.then(this?e.bind(this):e):t}function _7(e){let t=Cl+1,n=fa.length;for(;t<n;){const a=t+n>>>1,l=fa[a],o=Di(l);o<e||o===e&&l.flags&2?t=a+1:n=a}return t}function vp(e){if(!(e.flags&1)){const t=Di(e),n=fa[fa.length-1];!n||!(e.flags&2)&&t>=Di(n)?fa.push(e):fa.splice(_7(t),0,e),e.flags|=1,J3()}}function J3(){zc||(zc=Z3.then(e6))}function S7(e){Ce(e)?rs.push(...e):Vo&&e.id===-1?Vo.splice(Qr+1,0,e):e.flags&1||(rs.push(e),e.flags|=1),J3()}function z1(e,t,n=Cl+1){for(;n<fa.length;n++){const a=fa[n];if(a&&a.flags&2){if(e&&a.id!==e.uid)continue;fa.splice(n,1),n--,a.flags&4&&(a.flags&=-2),a(),a.flags&4||(a.flags&=-2)}}}function Q3(e){if(rs.length){const t=[...new Set(rs)].sort((n,a)=>Di(n)-Di(a));if(rs.length=0,Vo){Vo.push(...t);return}for(Vo=t,Qr=0;Qr<Vo.length;Qr++){const n=Vo[Qr];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}Vo=null,Qr=0}}const Di=e=>e.id==null?e.flags&2?-1:1/0:e.id;function e6(e){try{for(Cl=0;Cl<fa.length;Cl++){const t=fa[Cl];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),gu(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Cl<fa.length;Cl++){const t=fa[Cl];t&&(t.flags&=-2)}Cl=-1,fa.length=0,Q3(),zc=null,(fa.length||rs.length)&&e6()}}let Zn=null,t6=null;function Dc(e){const t=Zn;return Zn=e,t6=e&&e.type.__scopeId||null,t}function ae(e,t=Zn,n){if(!t||e._n)return e;const a=(...l)=>{a._d&&Kc(-1);const o=Dc(t);let r;try{r=e(...l)}finally{Dc(o),a._d&&Kc(1)}return r};return a._n=!0,a._c=!0,a._d=!0,a}function vt(e,t){if(Zn===null)return e;const n=Bd(Zn),a=e.dirs||(e.dirs=[]);for(let l=0;l<t.length;l++){let[o,r,s,u=hn]=t[l];o&&(We(o)&&(o={mounted:o,updated:o}),o.deep&&Ql(r),a.push({dir:o,instance:n,value:r,oldValue:void 0,arg:s,modifiers:u}))}return e}function nr(e,t,n,a){const l=e.dirs,o=t&&t.dirs;for(let r=0;r<l.length;r++){const s=l[r];o&&(s.oldValue=o[r].value);let u=s.dir[a];u&&(Nl(),ja(u,n,8,[e.el,s,e,t]),Al())}}function Ct(e,t){if(la){let n=la.provides;const a=la.parent&&la.parent.provides;a===n&&(n=la.provides=Object.create(a)),n[e]=t}}function Ie(e,t,n=!1){const a=mt();if(a||wr){let l=wr?wr._context.provides:a?a.parent==null||a.ce?a.vnode.appContext&&a.vnode.appContext.provides:a.parent.provides:void 0;if(l&&e in l)return l[e];if(arguments.length>1)return n&&We(t)?t.call(a&&a.proxy):t}}function hp(){return!!(mt()||wr)}const x7=Symbol.for("v-scx"),k7=()=>Ie(x7);function sa(e,t){return mp(e,null,t)}function fe(e,t,n){return mp(e,t,n)}function mp(e,t,n=hn){const{immediate:a,deep:l,flush:o,once:r}=n,s=zn({},n),u=t&&a||!t&&o!=="post";let c;if(Ki){if(o==="sync"){const h=k7();c=h.__watcherHandles||(h.__watcherHandles=[])}else if(!u){const h=()=>{};return h.stop=ft,h.resume=ft,h.pause=ft,h}}const d=la;s.call=(h,v,m)=>ja(h,d,v,m);let f=!1;o==="post"?s.scheduler=h=>{ca(h,d&&d.suspense)}:o!=="sync"&&(f=!0,s.scheduler=(h,v)=>{v?h():vp(h)}),s.augmentJob=h=>{t&&(h.flags|=4),f&&(h.flags|=2,d&&(h.id=d.uid,h.i=d))};const p=w7(e,t,s);return Ki&&(c?c.push(p):u&&p()),p}function E7(e,t,n){const a=this.proxy,l=Le(e)?e.includes(".")?n6(a,e):()=>a[e]:e.bind(a,a);let o;We(t)?o=t:(o=t.handler,n=t);const r=bu(this),s=mp(l,o.bind(a),n);return r(),s}function n6(e,t){const n=t.split(".");return()=>{let a=e;for(let l=0;l<n.length&&a;l++)a=a[n[l]];return a}}const Oo=new WeakMap,a6=Symbol("_vte"),l6=e=>e.__isTeleport,ur=e=>e&&(e.disabled||e.disabled
* @vue/runtime-dom v3.5.39
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let V0;const nm=typeof window<"u"&&window.trustedTypes;if(nm)try{V0=nm.createPolicy("vue",{createHTML:e=>e})}catch{}const L6=V0?e=>V0.createHTML(e):e=>e,Sk="http://www.w3.org/2000/svg",xk="http://www.w3.org/1998/Math/MathML",Yl=typeof document<"u"?document:null,am=Yl&&Yl.createElement("template"),kk={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,a)=>{const l=t==="svg"?Yl.createElementNS(Sk,e):t==="mathml"?Yl.createElementNS(xk,e):n?Yl.createElement(e,{is:n}):Yl.createElement(e);return e==="select"&&a&&a.multiple!=null&&l.setAttribute("multiple",a.multiple),l},createText:e=>Yl.createTextNode(e),createComment:e=>Yl.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Yl.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,a,l,o){const r=n?n.previousSibling:t.lastChild;if(l&&(l===o||l.nextSibling))for(;t.insertBefore(l.cloneNode(!0),n),!(l===o||!(l=l.nextSibling)););else{am.innerHTML=L6(a==="svg"?`<svg>${e}</svg>`:a==="mathml"?`<math>${e}</math>`:e);const s=am.content;if(a==="svg"||a==="mathml"){const u=s.firstChild;for(;u.firstChild;)s.appendChild(u.firstChild);s.removeChild(u)}t.insertBefore(s,n)}return[r?r.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},To="transition",ai="animation",hs=Symbol("_vtc"),B6={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},z6=zn({},r6,B6),Ek=e=>(e.displayName="Transition",e.props=z6,e),Yn=Ek((e,{slots:t})=>Ge(N7,D6(e),t)),lr=(e,t=[])=>{Ce(e)?e.forEach(n=>n(...t)):e&&e(...t)},lm=e=>e?Ce(e)?e.some(t=>t.length>1):e.length>1:!1;function D6(e){const t={};for(const A in e)A in B6||(t[A]=e[A]);if(e.css===!1)return t;const{name:n="v",type:a,duration:l,enterFromClass:o=`${n}-enter-from`,enterActiveClass:r=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:u=o,appearActiveClass:c=r,appearToClass:d=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:p=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,v=Mk(l),m=v&&v[0],g=v&&v[1],{onBeforeEnter:y,onEnter:b,onEnterCancelled:C,onLeave:_,onLeaveCancelled:x,onBeforeAppear:k=y,onAppear:E=b,onAppearCancelled:M=C}=t,$=(A,L,q,W)=>{A._enterCancelled=W,No(A,L?d:s),No(A,L?c:r),q&&q()},N=(A,L)=>{A._isLeaving=!1,No(A,f),No(A,h),No(A,p),L&&L()},P=A=>(L,q)=>{const W=A?E:b,H=()=>$(L,A,q);lr(W,[L,H]),om(()=>{No(L,A?u:o),wl(L,A?d:s),lm(W)||rm(L,a,m,H)})};return zn(t,{onBeforeEnter(A){lr(y,[A]),wl(A,o),wl(A,r)},onBeforeAppear(A){lr(k,[A]),wl(A,u),wl(A,c)},onEnter:P(!1),onAppear:P(!0),onLeave(A,L){A._isLeaving=!0;const q=()=>N(A,L);wl(A,f),A._enterCancelled?(wl(A,p),L0(A)):(L0(A),wl(A,p)),om(()=>{A._isLeaving&&(No(A,f),wl(A,h),lm(_)||rm(A,a,g,q))}),lr(_,[A,q])},onEnterCancelled(A){$(A,!1,void 0,!0),lr(C,[A])},onAppearCancelled(A){$(A,!0,void 0,!0),lr(M,[A])},onLeaveCancelled(A){N(A),lr(x,[A])}})}function Mk(e){if(e==null)return null;if(rt(e))return[zf(e.enter),zf(e.leave)];{const t=zf(e);return[t,t]}}function zf(e){return Hx(e)}function wl(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[hs]||(e[hs]=new Set)).add(t)}function No(e,t){t.split(/\s+/).forEach(a=>a&&e.classList.remove(a));const n=e[hs];n&&(n.delete(t),n.size||(e[hs]=void 0))}function om(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Tk=0;function rm(e,t,n,a){const l=e._endId=++Tk,o=()=>{l===e._endId&&a()};if(n!=null)return setTimeout(o,n);const{type:r,timeout:s,propCount:u}=H6(e,t);if(!r)return a();const c=r+"end";let d=0;const f=()=>{e.removeEventListener(c,p),o()},p=h=>{h.target===e&&++d>=u&&f()};setTimeout(()=>{d<u&&f()},s+1),e.addEventListener(c,p)}function H6(e,t){const n=window.getComputedStyle(e),a=v=>(n[v]||"").split(", "),l=a(`${To}Delay`),o=a(`${To}Duration`),r=sm(l,o),s=a(`${ai}Delay`),u=a(`${ai}Duratio
* vue-router v4.6.4
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/const es=typeof document<"u";function Q6(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function fE(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Q6(e.default)}const rn=Object.assign;function Ff(e,t){const n={};for(const a in t){const l=t[a];n[a]=il(l)?l.map(e):e(l)}return n}const Mi=()=>{},il=Array.isArray;function _m(e,t){const n={};for(const a in e)n[a]=a in t?t[a]:e[a];return n}const e8=/#/g,pE=/&/g,vE=/\//g,hE=/=/g,mE=/\?/g,t8=/\+/g,gE=/%5B/g,yE=/%5D/g,n8=/%5E/g,bE=/%60/g,a8=/%7B/g,wE=/%7C/g,l8=/%7D/g,CE=/%20/g;function Ep(e){return e==null?"":encodeURI(""+e).replace(wE,"|").replace(gE,"[").replace(yE,"]")}function _E(e){return Ep(e).replace(a8,"{").replace(l8,"}").replace(n8,"^")}function B0(e){return Ep(e).replace(t8,"%2B").replace(CE,"+").replace(e8,"%23").replace(pE,"%26").replace(bE,"`").replace(a8,"{").replace(l8,"}").replace(n8,"^")}function SE(e){return B0(e).replace(hE,"%3D")}function xE(e){return Ep(e).replace(e8,"%23").replace(mE,"%3F")}function kE(e){return xE(e).replace(vE,"%2F")}function Wi(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const EE=/\/$/,ME=e=>e.replace(EE,"");function Kf(e,t,n="/"){let a,l={},o="",r="";const s=t.indexOf("#");let u=t.indexOf("?");return u=s>=0&&u>s?-1:u,u>=0&&(a=t.slice(0,u),o=t.slice(u,s>0?s:t.length),l=e(o.slice(1))),s>=0&&(a=a||t.slice(0,s),r=t.slice(s,t.length)),a=NE(a??t,n),{fullPath:a+o+r,path:a,query:l,hash:Wi(r)}}function TE(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Sm(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function $E(e,t,n){const a=t.matched.length-1,l=n.matched.length-1;return a>-1&&a===l&&gs(t.matched[a],n.matched[l])&&o8(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function gs(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function o8(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(!OE(e[n],t[n]))return!1;return!0}function OE(e,t){return il(e)?xm(e,t):il(t)?xm(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function xm(e,t){return il(t)?e.length===t.length&&e.every((n,a)=>n===t[a]):e.length===1&&e[0]===t}function NE(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),a=e.split("/"),l=a[a.length-1];(l===".."||l===".")&&a.push("");let o=n.length-1,r,s;for(r=0;r<a.length;r++)if(s=a[r],s!==".")if(s==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+a.slice(r).join("/")}const $o={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let z0=function(e){return e.pop="pop",e.push="push",e}({}),Wf=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function AE(e){if(!e)if(es){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),ME(e)}const RE=/^[^#]+#/;function PE(e,t){return e.replace(RE,"#")+t}function IE(e,t){const n=document.documentElement.getBoundingClientRect(),a=e.getBoundingClientRect();return{behavior:t.behavior,left:a.left-n.left-(t.left||0),top:a.top-n.top-(t.top||0)}}const zd=()=>({left:window.scrollX,top:window.scrollY});function VE(e){let t;if("el"in e){const n=e.el,a=typeof n=="string"&&n.startsWith("#"),l=typeof n=="string"?a?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!l)return;t=IE(l,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function km(e,t){return(history.state?history.state.position-t:-1)+e}const D0=new Map;function LE(e,t){D0.set(e,t)}function BE(e){const t=D0.get(e);return D0.delete(e),t}function zE(e){return typeof e=="string"||e&&typeof e=="object"}function r8(e){return typeof e=="string"||typeof e=="symbol"}let An=function(e){return e[e.MATCHER_NOT_FOUND=1]="MATCHER_NOT_FOUND",e[e.NAVIGATION_GUARD_REDIRECT=2]="NAVIGATION_GUARD_REDIRECT",e[e.NAVIGATION_ABORTED=4]="
* vue-router v4.6.4
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/let qE=()=>location.protocol+"//"+location.host;function i8(e,t){const{pathname:n,search:a,hash:l}=t,o=e.indexOf("#");if(o>-1){let r=l.includes(e.slice(o))?e.slice(o).length:1,s=l.slice(r);return s[0]!=="/"&&(s="/"+s),Sm(s,"")}return Sm(n,e)+a+l}function UE(e,t,n,a){let l=[],o=[],r=null;const s=({state:p})=>{const h=i8(e,location),v=n.value,m=t.value;let g=0;if(p){if(n.value=h,t.value=p,r&&r===v){r=null;return}g=m?p.position-m.position:0}else a(h);l.forEach(y=>{y(n.value,v,{delta:g,type:z0.pop,direction:g?g>0?Wf.forward:Wf.back:Wf.unknown})})};function u(){r=n.value}function c(p){l.push(p);const h=()=>{const v=l.indexOf(p);v>-1&&l.splice(v,1)};return o.push(h),h}function d(){if(document.visibilityState==="hidden"){const{history:p}=window;if(!p.state)return;p.replaceState(rn({},p.state,{scroll:zd()}),"")}}function f(){for(const p of o)p();o=[],window.removeEventListener("popstate",s),window.removeEventListener("pagehide",d),document.removeEventListener("visibilitychange",d)}return window.addEventListener("popstate",s),window.addEventListener("pagehide",d),document.addEventListener("visibilitychange",d),{pauseListeners:u,listen:c,destroy:f}}function Tm(e,t,n,a=!1,l=!1){return{back:e,current:t,forward:n,replaced:a,position:window.history.length,scroll:l?zd():null}}function YE(e){const{history:t,location:n}=window,a={value:i8(e,n)},l={value:t.state};l.value||o(a.value,{back:null,current:a.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(u,c,d){const f=e.indexOf("#"),p=f>-1?(n.host&&document.querySelector("base")?e:e.slice(f))+u:qE()+e+u;try{t[d?"replaceState":"pushState"](c,"",p),l.value=c}catch(h){console.error(h),n[d?"replace":"assign"](p)}}function r(u,c){o(u,rn({},t.state,Tm(l.value.back,u,l.value.forward,!0),c,{position:l.value.position}),!0),a.value=u}function s(u,c){const d=rn({},l.value,t.state,{forward:u,scroll:zd()});o(d.current,d,!0),o(u,rn({},Tm(a.value,u,null),{position:d.position+1},c),!1),a.value=u}return{location:a,state:l,push:s,replace:r}}function GE(e){e=AE(e);const t=YE(e),n=UE(e,t.state,t.location,t.replace);function a(o,r=!0){r||n.pauseListeners(),history.go(o)}const l=rn({location:"",base:e,go:a,createHref:PE.bind(null,e)},t,n);return Object.defineProperty(l,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(l,"state",{enumerable:!0,get:()=>t.state.value}),l}let vr=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var Hn=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.ParamRegExp=2]="ParamRegExp",e[e.ParamRegExpEnd=3]="ParamRegExpEnd",e[e.EscapeNext=4]="EscapeNext",e}(Hn||{});const XE={type:vr.Static,value:""},ZE=/[a-zA-Z0-9_]/;function JE(e){if(!e)return[[]];if(e==="/")return[[XE]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${c}": ${h}`)}let n=Hn.Static,a=n;const l=[];let o;function r(){o&&l.push(o),o=[]}let s=0,u,c="",d="";function f(){c&&(n===Hn.Static?o.push({type:vr.Static,value:c}):n===Hn.Param||n===Hn.ParamRegExp||n===Hn.ParamRegExpEnd?(o.length>1&&(u==="*"||u==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),o.push({type:vr.Param,value:c,regexp:d,repeatable:u==="*"||u==="+",optional:u==="*"||u==="?"})):t("Invalid state to consume buffer"),c="")}function p(){c+=u}for(;s<e.length;){if(u=e[s++],u==="\\"&&n!==Hn.ParamRegExp){a=n,n=Hn.EscapeNext;continue}switch(n){case Hn.Static:u==="/"?(c&&f(),r()):u===":"?(f(),n=Hn.Param):p();break;case Hn.EscapeNext:p(),n=a;break;case Hn.Param:u==="("?n=Hn.ParamRegExp:ZE.test(u)?p():(f(),n=Hn.Static,u!=="*"&&u!=="?"&&u!=="+"&&s--);break;case Hn.ParamRegExp:u===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+u:n=Hn.ParamRegExpEnd:d+=u;break;case Hn.ParamRegExpEnd:f(),n=Hn.Static,u!=="*"&&u!=="?"&&u!=="+"&&s--,d="";break;default:t("Unknown state");break}}return n===Hn.ParamRegExp&&t(`Unfinished custom RegExp for param "${c}"`),f(),r(),l}const $m="[^/]+?",QE={sensitive:!1,strict:!1,start:!0,end:!0};var da=function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=
* pinia v2.3.1
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/let d8;const Hd=e=>d8=e,f8=Symbol();function F0(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Ti;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Ti||(Ti={}));function bM(){const e=ip(!0),t=e.run(()=>B({}));let n=[],a=[];const l=Fa({install(o){Hd(l),l._a=o,o.provide(f8,l),o.config.globalProperties.$pinia=l,a.forEach(r=>n.push(r)),a=[]},use(o){return this._a?n.push(o):a.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return l}const p8=()=>{};function Bm(e,t,n,a=p8){e.push(t);const l=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),a())};return!n&&Md()&&up(l),l}function qr(e,...t){e.slice().forEach(n=>{n(...t)})}const wM=e=>e(),zm=Symbol(),qf=Symbol();function K0(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,a)=>e.set(a,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const a=t[n],l=e[n];F0(l)&&F0(a)&&e.hasOwnProperty(n)&&!Zt(a)&&!no(a)?e[n]=K0(l,a):e[n]=a}return e}const CM=Symbol();function _M(e){return!F0(e)||!e.hasOwnProperty(CM)}const{assign:Ao}=Object;function SM(e){return!!(Zt(e)&&e.effect)}function xM(e,t,n,a){const{state:l,actions:o,getters:r}=t,s=n.state.value[e];let u;function c(){s||(n.state.value[e]=l?l():{});const d=Pn(n.state.value[e]);return Ao(d,o,Object.keys(r||{}).reduce((f,p)=>(f[p]=Fa(S(()=>{Hd(n);const h=n._s.get(e);return r[p].call(h,h)})),f),{}))}return u=v8(e,c,t,n,a,!0),u}function v8(e,t,n={},a,l,o){let r;const s=Ao({actions:{}},n),u={deep:!0};let c,d,f=[],p=[],h;const v=a.state.value[e];!o&&!v&&(a.state.value[e]={});let m;function g(M){let $;c=d=!1,typeof M=="function"?(M(a.state.value[e]),$={type:Ti.patchFunction,storeId:e,events:h}):(K0(a.state.value[e],M),$={type:Ti.patchObject,payload:M,storeId:e,events:h});const N=m=Symbol();Pe().then(()=>{m===N&&(c=!0)}),d=!0,qr(f,$,a.state.value[e])}const y=o?function(){const{state:$}=n,N=$?$():{};this.$patch(P=>{Ao(P,N)})}:p8;function b(){r.stop(),f=[],p=[],a._s.delete(e)}const C=(M,$="")=>{if(zm in M)return M[qf]=$,M;const N=function(){Hd(a);const P=Array.from(arguments),A=[],L=[];function q(V){A.push(V)}function W(V){L.push(V)}qr(p,{args:P,name:N[qf],store:x,after:q,onError:W});let H;try{H=M.apply(this&&this.$id===e?this:x,P)}catch(V){throw qr(L,V),V}return H instanceof Promise?H.then(V=>(qr(A,V),V)).catch(V=>(qr(L,V),Promise.reject(V))):(qr(A,H),H)};return N[zm]=!0,N[qf]=$,N},_={_p:a,$id:e,$onAction:Bm.bind(null,p),$patch:g,$reset:y,$subscribe(M,$={}){const N=Bm(f,M,$.detached,()=>P()),P=r.run(()=>fe(()=>a.state.value[e],A=>{($.flush==="sync"?d:c)&&M({storeId:e,type:Ti.direct,events:h},A)},Ao({},u,$)));return N},$dispose:b},x=Lt(_);a._s.set(e,x);const E=(a._a&&a._a.runWithContext||wM)(()=>a._e.run(()=>(r=ip()).run(()=>t({action:C}))));for(const M in E){const $=E[M];if(Zt($)&&!SM($)||no($))o||(v&&_M($)&&(Zt($)?$.value=v[M]:K0($,v[M])),a.state.value[e][M]=$);else if(typeof $=="function"){const N=C($,M);E[M]=N,s.actions[M]=$}}return Ao(x,E),Ao(Xt(x),E),Object.defineProperty(x,"$state",{get:()=>a.state.value[e],set:M=>{g($=>{Ao($,M)})}}),a._p.forEach(M=>{Ao(x,r.run(()=>M({store:x,app:a._a,pinia:a,options:s})))}),v&&o&&n.hydrate&&n.hydrate(x.$state,v),c=!0,d=!0,x}/*! #__NO_SIDE_EFFECTS__ */function Aie(e,t,n){let a,l;const o=typeof t=="function";typeof e=="string"?(a=e,l=o?n:t):(l=e,a=e.id);function r(s,u){const c=hp();return s=s||(c?Ie(f8,null):null),s&&Hd(s),s=d8,s._s.has(a)||(o?v8(a,t,l,s):xM(a,l,s)),s._s.get(a)}return r.$id=a,r}const _e={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"},h8=["year","years","month","months","date","dates","week","datetime","datetimerange","daterange","monthrange","yearrange"],wc=["sun","mon","tue","wed","thu","fri","sat"],lt="update:modelValue",yt="change",En="input",W0=Symbol("INSTALLED_KEY"),Za=["","default","small","large"],j0=["left","center
For more detail, please visit: ${l}
`)},{immediate:!0})},kR='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',dy=e=>typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot,bg=e=>typeof Element>"u"?!1:e instanceof Element,ER=e=>getComputedStyle(e).position==="fixed"?!1:e.offsetParent!==null,wg=e=>Array.from(e.querySelectorAll(kR)).filter(t=>Nr(t)&&ER(t)),Nr=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}},Cc=function(e,t,...n){let a;t.includes("mouse")||t.includes("click")?a="MouseEvents":t.includes("key")?a="KeyboardEvent":a="HTMLEvents";const l=document.createEvent(a);return l.initEvent(t,...n),e.dispatchEvent(l),e},fy=e=>!e.getAttribute("aria-owns"),py=(e,t,n)=>{const{parentNode:a}=e;if(!a)return null;const l=a.querySelectorAll(n);return l[Array.prototype.indexOf.call(l,e)+t]||null},$u=(e,t)=>{if(!e||!e.focus)return;let n=!1;bg(e)&&!Nr(e)&&!e.getAttribute("tabindex")&&(e.setAttribute("tabindex","-1"),n=!0),e.focus(t),bg(e)&&n&&e.removeAttribute("tabindex")},cs=e=>{e&&($u(e),!fy(e)&&e.click())},Qd=()=>Pt&&/firefox/i.test(window.navigator.userAgent),vy=()=>Pt&&/android/i.test(window.navigator.userAgent),Up=(e="")=>e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d"),Qf=e=>mu(e),MR="utils/dom/style",hy=(e="")=>e.split(" ").filter(t=>!!t.trim()),Ml=(e,t)=>{if(!e||!t)return!1;if(t.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(t)},Da=(e,t)=>{!e||!t.trim()||e.classList.add(...hy(t))},ra=(e,t)=>{!e||!t.trim()||e.classList.remove(...hy(t))},eo=(e,t)=>{var a;if(!Pt||!e||!t||dy(e))return"";let n=Un(t);n==="float"&&(n="cssFloat");try{const l=e.style[n];if(l)return l;const o=(a=document.defaultView)==null?void 0:a.getComputedStyle(e,"");return o?o[n]:""}catch{return e.style[n]}},my=(e,t,n)=>{if(!(!e||!t))if(rt(t))ny(t).forEach(([a,l])=>my(e,a,l));else{const a=Un(t);e.style[a]=n}};function pn(e,t="px"){if(!e&&e!==0)return"";if(He(e)||YA(e))return`${e}${t}`;if(Le(e))return e;Kt(MR,"binding value must be a string or number")}const Yp=(e,t,n,a)=>{const l={offsetX:0,offsetY:0},o=B(!1),r=(p,h)=>{if(e.value){const{offsetX:v,offsetY:m}=l,g=e.value.getBoundingClientRect(),y=Math.max(g.left,0),b=Math.max(g.top,0),C=g.width,_=g.height,x=document.documentElement.clientWidth,k=document.documentElement.clientHeight,E=-y+v,M=-b+m,$=x-y-C+v,N=k-b-(_<k?_:0)+m;a!=null&&a.value||(p=Ca(p,E,$),h=Ca(h,M,N)),l.offsetX=p,l.offsetY=h,e.value.style.transform=`translate(${pn(p)}, ${pn(h)})`}},s=p=>{const h=p.clientX,v=p.clientY,{offsetX:m,offsetY:g}=l,y=C=>{o.value||(o.value=!0),r(m+C.clientX-h,g+C.clientY-v)},b=()=>{o.value=!1,document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",b)};document.addEventListener("mousemove",y),document.addEventListener("mouseup",b)},u=()=>{t.value&&e.value&&(t.value.addEventListener("mousedown",s),window.addEventListener("resize",f))},c=()=>{t.value&&e.value&&(t.value.removeEventListener("mousedown",s),window.removeEventListener("resize",f))},d=()=>{l.offsetX=0,l.offsetY=0,e.value&&(e.value.style.transform="")},f=()=>{const{offsetX:p,offsetY:h}=l;r(p,h)};return gt(()=>{sa(()=>{n.value?u():c()})}),Dt(()=>{c()}),{isDragging:o,resetPosition:d,updatePosition:f}};var TR={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",alphaDescription:"alpha {alpha}, current color is {color}",hueLabel:"pick hue value",hueDescription:"hue {hue}, current color is {color}",svLabel:"pick saturation and brightness value",svDescription:"saturation {saturation}, brightness {brightness}, current color is {color}",pre
usage: app.provide(ID_INJECTION_KEY, {
prefix: number,
current: number,
})`);const n=ef();return ry(()=>i(e)||`${n.value}-id-${t.prefix}-${t.current++}`)};let ts=[];const Rg=e=>{Gt(e)===_e.esc&&ts.forEach(t=>t(e))},By=e=>{gt(()=>{ts.length===0&&document.addEventListener("keydown",Rg),Pt&&ts.push(e)}),Dt(()=>{ts=ts.filter(t=>t!==e),ts.length===0&&Pt&&document.removeEventListener("keydown",Rg)})},iv=()=>{const e=ef(),t=af(),n=S(()=>`${e.value}-popper-container-${t.prefix}`);return{id:n,selector:S(()=>`#${n.value}`)}},BP=e=>{const t=document.createElement("div");return t.id=e,document.body.appendChild(t),t},zy=()=>{const{id:e,selector:t}=iv();return Vd(()=>{Pt&&(document.body.querySelector(t.value)||BP(e.value))}),{id:e,selector:t}},Dy=xe({showAfter:{type:Number,default:0},hideAfter:{type:Number,default:200},autoClose:{type:Number,default:0}}),Hy=({showAfter:e,hideAfter:t,autoClose:n,open:a,close:l})=>{const{registerTimeout:o}=e2(),{registerTimeout:r,cancelTimeout:s}=e2();return{onOpen:(d,f=i(e))=>{o(()=>{a(d);const p=i(n);He(p)&&p>0&&r(()=>{l(d)},p)},f)},onClose:(d,f=i(t))=>{s(),o(()=>{l(d)},f)}}},uv=Symbol("elForwardRef"),Fy=e=>{Ct(uv,{setForwardRef:n=>{e.value=n}})},Ky=e=>({mounted(t){e(t)},updated(t){e(t)},unmounted(){e(null)}}),Pg={current:0},Ig=B(0),cv=2e3,n2=Symbol("elZIndexContextKey"),dv=Symbol("zIndexContextKey"),Ks=e=>{const t=mt()?Ie(n2,Pg):Pg,n=e||(mt()?Ie(dv,void 0):void 0),a=S(()=>{const r=i(n);return He(r)?r:cv}),l=S(()=>a.value+Ig.value),o=()=>(t.current++,Ig.value=t.current,l.value);return!Pt&&!Ie(n2)&&Kt("ZIndexInjection",`Looks like you are using server rendering, you must provide a z-index provider to ensure the hydration process to be succeed
usage: app.provide(ZINDEX_INJECTION_KEY, { current: 0 })`),{initialZIndex:a,currentZIndex:l,nextZIndex:o}},Es=Math.min,_r=Math.max,Qc=Math.round,ec=Math.floor,oo=e=>({x:e,y:e}),zP={left:"right",right:"left",bottom:"top",top:"bottom"};function Wy(e,t,n){return _r(e,Es(t,n))}function Ru(e,t){return typeof e=="function"?e(t):e}function Ms(e){return e.split("-")[0]}function Pu(e){return e.split("-")[1]}function jy(e){return e==="x"?"y":"x"}function fv(e){return e==="y"?"height":"width"}function Ho(e){const t=e[0];return t==="t"||t==="b"?"y":"x"}function pv(e){return jy(Ho(e))}function DP(e,t,n){n===void 0&&(n=!1);const a=Pu(e),l=pv(e),o=fv(l);let r=l==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(r=ed(r)),[r,ed(r)]}function HP(e){const t=ed(e);return[a2(e),t,a2(t)]}function a2(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const Vg=["left","right"],Lg=["right","left"],FP=["top","bottom"],KP=["bottom","top"];function WP(e,t,n){switch(e){case"top":case"bottom":return n?t?Lg:Vg:t?Vg:Lg;case"left":case"right":return t?FP:KP;default:return[]}}function jP(e,t,n,a){const l=Pu(e);let o=WP(Ms(e),n==="start",a);return l&&(o=o.map(r=>r+"-"+l),t&&(o=o.concat(o.map(a2)))),o}function ed(e){const t=Ms(e);return zP[t]+e.slice(t.length)}function qP(e){var t,n,a,l;return{top:(t=e.top)!=null?t:0,right:(n=e.right)!=null?n:0,bottom:(a=e.bottom)!=null?a:0,left:(l=e.left)!=null?l:0}}function qy(e){return typeof e!="number"?qP(e):{top:e,right:e,bottom:e,left:e}}function td(e){const{x:t,y:n,width:a,height:l}=e;return{width:a,height:l,top:n,left:t,right:t+a,bottom:n+l,x:t,y:n}}function Bg(e,t,n){let{reference:a,floating:l}=e;const o=Ho(t),r=pv(t),s=fv(r),u=Ms(t),c=o==="y",d=a.x+a.width/2-l.width/2,f=a.y+a.height/2-l.height/2,p=a[s]/2-l[s]/2;let h;switch(u){case"top":h={x:d,y:a.y-l.height};break;case"bottom":h={x:d,y:a.y+a.height};break;case"right":h={x:a.x+a.width,y:f};break;case"left":h={x:a.x-l.width,y:f};break;default:h={x:a.x,y:a.y}}const v=Pu(t);return v&&(h[r]+=p*(v==="end"?1:-1)*(n&&c?-1:1)),h}async function Uy(e,t){var n;t===void 0&&(t={});const{x:a,y:l,platform:o,rects:r,elements:s,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=Ru(t,e),v=qy(h),g=s[p?f==="floating"?"reference":"floating":f],y=td(await o.getClippingRect({element:(n=await(o.isElement==null?void 0:o.isElement(g)))==null||n?g:g.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:u})),b=f==="floating"?{x:a,y:l,width:r.floating.width,height:r.floating.height}:r.reference,C=await(o.getOffsetParent==null?void 0:o.getOffsetParent(s.floating)),_=await(o.isElement==null?void 0:o.isElement(C))&&await(o.getScale==null?void 0:o.getScale(C))||{x:1,y:1},x=td(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:C,strategy:u}):b);return{top:(y.top-x.top+v.top)/_.y,bottom:(x.bottom-y.bottom+v.bottom)/_.y,left:(y.left-x.left+v.left)/_.x,right:(x.right-y.right+v.right)/_.x}}const UP=50,YP=async(e,t,n)=>{const{placement:a="bottom",strategy:l="absolute",middleware:o=[],platform:r}=n,s=r.detectOverflow?r:{...r,detectOverflow:Uy},u=await(r.isRTL==null?void 0:r.isRTL(t));let c=await r.getElementRects({reference:e,floating:t,strategy:l}),{x:d,y:f}=Bg(c,a,u),p=a,h=0;const v={};for(let m=0;m<o.length;m++){const g=o[m];if(!g)continue;const{name:y,fn:b}=g,{x:C,y:_,data:x,reset:k}=await b({x:d,y:f,initialPlacement:a,placement:p,strategy:l,middlewareData:v,rects:c,platform:s,elements:{reference:e,floating:t}});d=C??d,f=_??f,v[y]={...v[y],...x},k&&h<UP&&(h++,typeof k=="object"&&(k.placement&&(p=k.placement),k.rects&&(c=k.rects===!0?await r.getElementRects({reference:e,floating:t,strategy:l}):k.rects),{x:d,y:f}=Bg(c,p,u)),m=-1)}return{x:d,y:f,placement:p,strategy:l,middlewareData:v}},GP=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:a,placement:l,rects:o,platform:
(?:
(?:`+a+":){7}(?:"+a+`|:)| // 1:2:3:4:5:6:7:: 1:2:3:4:5:6:7:8
(?:`+a+":){6}(?:"+n+"|:"+a+`|:)| // 1:2:3:4:5:6:: 1:2:3:4:5:6::8 1:2:3:4:5:6::8 1:2:3:4:5:6::1.2.3.4
(?:`+a+":){5}(?::"+n+"|(?::"+a+`){1,2}|:)| // 1:2:3:4:5:: 1:2:3:4:5::7:8 1:2:3:4:5::8 1:2:3:4:5::7:1.2.3.4
(?:`+a+":){4}(?:(?::"+a+"){0,1}:"+n+"|(?::"+a+`){1,3}|:)| // 1:2:3:4:: 1:2:3:4::6:7:8 1:2:3:4::8 1:2:3:4::6:7:1.2.3.4
(?:`+a+":){3}(?:(?::"+a+"){0,2}:"+n+"|(?::"+a+`){1,4}|:)| // 1:2:3:: 1:2:3::5:6:7:8 1:2:3::8 1:2:3::5:6:7:1.2.3.4
(?:`+a+":){2}(?:(?::"+a+"){0,3}:"+n+"|(?::"+a+`){1,5}|:)| // 1:2:: 1:2::4:5:6:7:8 1:2::8 1:2::4:5:6:7:1.2.3.4
(?:`+a+":){1}(?:(?::"+a+"){0,4}:"+n+"|(?::"+a+`){1,6}|:)| // 1:: 1::3:4:5:6:7:8 1::8 1::3:4:5:6:7:1.2.3.4
(?::(?:(?::`+a+"){0,5}:"+n+"|(?::"+a+`){1,7}|:)) // ::2:3:4:5:6:7:8 ::2:3:4:5:6:7:8 ::8 ::1.2.3.4
)(?:%[0-9a-zA-Z]{1,})? // %eth0 %1
`).replace(/\s*\/\/.*$/gm,"").replace(/\n/g,"").trim(),o=new RegExp("(?:^"+n+"$)|(?:^"+l+"$)"),r=new RegExp("^"+n+"$"),s=new RegExp("^"+l+"$"),u=function(_){return _&&_.exact?o:new RegExp("(?:"+t(_)+n+t(_)+")|(?:"+t(_)+l+t(_)+")","g")};u.v4=function(C){return C&&C.exact?r:new RegExp(""+t(C)+n+t(C),"g")},u.v6=function(C){return C&&C.exact?s:new RegExp(""+t(C)+l+t(C),"g")};var c="(?:(?:[a-z]+:)?//)",d="(?:\\S+(?::\\S*)?@)?",f=u.v4().source,p=u.v6().source,h="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",m="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",g="(?::\\d{2,5})?",y='(?:[/?#][^\\s"]*)?',b="(?:"+c+"|www\\.)"+d+"(?:localhost|"+f+"|"+p+"|"+h+v+m+")"+g+y;return nc=new RegExp("(?:^"+b+"$)","i"),nc},Xg={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},mi={integer:function(t){return mi.number(t)&&parseInt(t,10)===t},float:function(t){return mi.number(t)&&!mi.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"&&!mi.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match(Xg.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(uq())},hex:function(t){return typeof t=="string"&&!!t.match(Xg.hex)}},cq=function(t,n,a,l,o){if(t.required&&n===void 0){Ub(t,n,a,l,o);return}var r=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;r.indexOf(s)>-1?mi[s](n)||l.push(Aa(o.messages.types[s],t.fullField,t.type)):s&&typeof n!==t.type&&l.push(Aa(o.messages.types[s],t.fullField,t.type))},dq=function(t,n,a,l,o){var r=typeof t.len=="number",s=typeof t.min=="number",u=typeof t.max=="number",c=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,p=typeof n=="number",h=typeof n=="string",v=Array.isArray(n);if(p?f="number":h?f="string":v&&(f="array"),!f)return!1;v&&(d=n.length),h&&(d=n.replace(c,"_").length),r?d!==t.len&&l.push(Aa(o.messages[f].len,t.fullField,t.len)):s&&!u&&d<t.min?l.push(Aa(o.messages[f].min,t.fullField,t.min)):u&&!s&&d>t.max?l.push(Aa(o.messages[f].max,t.fullField,t.max)):s&&u&&(d<t.min||d>t.max)&&l.push(Aa(o.messages[f].range,t.fullField,t.min,t.max))},Yr="enum",fq=function(t,n,a,l,o){t[Yr]=Array.isArray(t[Yr])?t[Yr]:[],t[Yr].indexOf(n)===-1&&l.push(Aa(o.messages[Yr],t.fullField,t[Yr].join(", ")))},pq=function(t,n,a,l,o){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||l.push(Aa(o.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var r=new RegExp(t.pattern);r.test(n)||l.push(Aa(o.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Qt={required:Ub,whitespace:iq,type:cq,range:dq,enum:fq,pattern:pq},vq=function(t,n,a,l,o){var r=[],s=t.required||!t.required&&l.hasOwnProperty(t.field);if(s){if(jn(n,"string")&&!t.required)return a();Qt.required(t,n,l,r,o,"string"),jn(n,"string")||(Qt.type(t,n,l,r,o),Qt.range(t,n,l,r,o),Qt.pattern(t,n,l,r,o),t.whitespace===!0&&Qt.whitespace(t,n,l,r,o))}a(r)},hq=function(t,n,a,l,o){var r=[],s=t.required||!t.required&&l.hasOwnProperty(t.field);if(s){if(jn(n)&&!t.required)return a();Qt.required(t,n,l,r,o),n!==void 0&&Qt.type(t,n,l,r,o)}a(r)},mq=function(t,n,a,l,o){var r=[],s=t.required||!t.required&&l.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),jn(n)&&!t.required)return a();Qt.required(t,n,l,r,o),n!==void 0&&(Qt.type(t,n,l,r,o),Qt.range(t,n,l,r,o))}a(r)},gq=function(t,n,a,l,o){var r=[],s=t.required||!t.required&&l.hasOwnProperty(t.field);if(s){if(jn(n)&&!t.requir
* 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 T2="_Mousewheel",C4=function(e,t){if(e&&e.addEventListener){Gw(e);const n=function(a){const l=yY(a);t&&Reflect.apply(t,this,[a,l])};e[T2]={wheelHandler:n},e.addEventListener("wheel",n,{passive:!0})}},Gw=e=>{var t;(t=e._Mousewheel)!=null&&t.wheelHandler&&(e.removeEventListener("wheel",e[T2].wheelHandler),e[T2]=null)},$2={beforeMount(e,t){C4(e,t.value)},unmounted(e){Gw(e)},updated(e,t){t.value!==t.oldValue&&C4(e,t.value)}},bY=xe({...Bw,datetimeRole:String,parsedValue:{type:J(Object)}}),Xw=({getAvailableHours:e,getAvailableMinutes:t,getAvailableSeconds:n})=>{const a=(r,s,u,c)=>{const d={hour:e,minute:t,second:n};let f=r;return["hour","minute","second"].forEach(p=>{if(d[p]){let h;const v=d[p];switch(p){case"minute":h=v(f.hour(),s,c);break;case"second":h=v(f.hour(),f.minute(),s,c);break;default:h=v(s,c);break}if(h!=null&&h.length&&!h.includes(f[p]())){const m=u?0:h.length-1;f=f[p](h[m])}}}),f},l={};return{timePickerOptions:l,getAvailableTime:a,onSetOption:([r,s])=>{l[r]=s}}},u0=e=>{const t=(a,l)=>a||l,n=a=>a!==!0;return e.map(t).filter(n)},Zw=(e,t,n)=>({getHoursList:(r,s)=>kc(24,e&&(()=>e==null?void 0:e(r,s))),getMinutesList:(r,s,u)=>kc(60,t&&(()=>t==null?void 0:t(r,s,u))),getSecondsList:(r,s,u,c)=>kc(60,n&&(()=>n==null?void 0:n(r,s,u,c)))}),Jw=(e,t,n)=>{const{getHoursList:a,getMinutesList:l,getSecondsList:o}=Zw(e,t,n);return{getAvailableHours:(c,d)=>u0(a(c,d)),getAvailableMinutes:(c,d,f)=>u0(l(c,d,f)),getAvailableSeconds:(c,d,f,p)=>u0(o(c,d,f,p))}},Qw=(e,t)=>{const n=B(e.parsedValue);return fe(()=>e.visible,a=>{const l=kn(t.modelValue),o=kn(t.valueOnClear);if(a&&l===o){n.value=o;return}a||(n.value=e.parsedValue)}),n},wY=xe({role:{type:String,required:!0},spinnerDate:{type:J(Object),required:!0},showSeconds:{type:Boolean,default:!0},arrowControl:Boolean,amPmMode:{type:J(String),default:""},...qv}),CY=["onClick"],_Y=["onMouseenter"];var SY=D({__name:"basic-time-spinner",props:wY,emits:[yt,"select-range","set-option"],setup(e,{emit:t}){const n=e,{isRange:a,format:l,saveOnBlur:o}=Ie(ml).props,r=t,s=ye("time"),{getHoursList:u,getMinutesList:c,getSecondsList:d}=Zw(n.disabledHours,n.disabledMinutes,n.disabledSeconds);let f=!1;const p={hours:!1,minutes:!1,seconds:!1},h=B(),v={hours:B(),minutes:B(),seconds:B()},m=S(()=>n.showSeconds?v2:v2.slice(0,2)),g=S(()=>{const{spinnerDate:j}=n;return{hours:j.hour(),minutes:j.minute(),seconds:j.second()}}),y=S(()=>{const{hours:j,minutes:G}=i(g),{role:ee,spinnerDate:le}=n,ne=a?void 0:le;return{hours:u(ee,ne),minutes:c(j,ee,ne),seconds:d(j,G,ee,ne)}}),b=S(()=>{const{hours:j,minutes:G,seconds:ee}=i(g);return{hours:xc(j,23),minutes:xc(G,59),seconds:xc(ee,59)}}),C=Il(j=>{f=!1,k(j)},200),_=j=>{if(!n.amPmMode)return"";const G=n.amPmMode==="A";let ee=j<12?" am":" pm";return G&&(ee=ee.toUpperCase()),ee},x=j=>{let G=[0,0];const ee=l||"HH:mm:ss",le=ee.indexOf("HH"),ne=ee.indexOf("mm"),se=ee.indexOf("ss");switch(j){case"hours":le!==-1&&(G=[le,le+2]);break;case"minutes":ne!==-1&&(G=[ne,ne+2]);break;case"seconds":se!==-1&&(G=[se,se+2]);break}const[Q,de]=G;r("select-range",Q,de),h.value=j},k=j=>{$(j,i(g)[j])},E=()=>{k("hours"),k("minutes"),k("seconds")},M=j=>j.querySelector(`.${s.namespace.value}-scrollbar__wrap`),$=(j,G)=>{if(n.arrowControl)return;const ee=i(v[j]);ee&&ee.$el&&(o||(p[j]=!0,Ea(()=>{p[j]=!1})),M(ee.$el).scrollTop=Math.max(0,G*N(j)))},N=j=>{var ee;const G=(ee=i(v[j]))==null?void 0:ee.$el.querySelector("li");return G&&Number.parseFloat(eo(G,"height"))||0},P=()=>{L(1)},A=()=>{L(-1)},L=j=>{h.value||x("hours");const G=h.value,ee=i(g)[G],le=q(G,ee,j,h.value==="hours"?24:60);W(G,le),$(G,le),Pe(()=>x(G))},q=(j,G,ee,le)=>{let ne=(G+ee+le)%le;const se=i(y)[j];for(;se[ne]&&ne!==G;)ne=(ne+ee+le)%le;return ne},W=(j,G)=>{if(i(y)[j][G])return;const{hours:ee,minutes:le,seconds:ne}=i(g);let se;switch(j){case"hours":se=n.spinnerDate.hour(G).minute(le).second(ne);break;case"minutes":se=n.spinnerDate.hour(ee).minute(G).second(ne);break;case"seconds":se=n.spinnerDate.hour(ee).minute(le).second(G);break}r(yt,se)},H=(j,{value:G,disabled:ee})=>{ee||(W(j,G),x(j),$(j,G))},V=j=>{if(!o&&p[j])return;const G=i(v[j]);
You should set
width/height
to number when your layout is
horizontal/vertical
`);const c=Math.max(0,t*n-u),d=Math.min(c,o*n),f=Math.max(0,(o+1)*n-u);switch(r==="smart"&&(s>=f-u&&s<=d+u?r=Ha:r=El),r){case su:return d;case"end":return f;case El:{const p=Math.round(f+(d-f)/2);return p<Math.ceil(u/2)?0:p>c+Math.floor(u/2)?c:p}case Ha:default:return s>=f&&s<=d?s:s<f?f:d}},getStartIndexForOffset:({total:e,itemSize:t},n)=>Math.max(0,Math.min(e-1,Math.floor(n/t))),getStopIndexForStartIndex:({height:e,total:t,itemSize:n,layout:a,width:l},o,r)=>{const s=o*n,u=uu(a)?l:e,c=Math.ceil((u+r-s)/n);return Math.max(0,Math.min(t-1,o+c-1))},initCache(){},clearCache:!0,validateProps(){}}),HG="ElDynamicSizeList",ns=(e,t,n)=>{const{itemSize:a}=e,{items:l,lastVisitedIndex:o}=n;if(t>o){let r=0;if(o>=0){const s=l[o];r=s.offset+s.size}for(let s=o+1;s<=t;s++){const u=a(s);l[s]={offset:r,size:u},r+=u}n.lastVisitedIndex=t}return l[t]},FG=(e,t,n)=>{const{items:a,lastVisitedIndex:l}=t;return(l>0?a[l].offset:0)>=n?M5(e,t,0,l,n):KG(e,t,Math.max(0,l),n)},M5=(e,t,n,a,l)=>{for(;n<=a;){const o=n+Math.floor((a-n)/2),r=ns(e,o,t).offset;if(r===l)return o;r<l?n=o+1:r>l&&(a=o-1)}return Math.max(0,n-1)},KG=(e,t,n,a)=>{const{total:l}=e;let o=1;for(;n<l&&ns(e,n,t).offset<a;)n+=o,o*=2;return M5(e,t,Math.floor(n/2),Math.min(n,l-1),a)},O4=({total:e},{items:t,estimatedItemSize:n,lastVisitedIndex:a})=>{let l=0;if(a>=e&&(a=e-1),a>=0){const r=t[a];l=r.offset+r.size}const o=(e-a-1)*n;return l+o},T5=E5({name:"ElDynamicSizeList",getItemOffset:(e,t,n)=>ns(e,t,n).offset,getItemSize:(e,t,{items:n})=>n[t].size,getEstimatedTotalSize:O4,getOffset:(e,t,n,a,l)=>{const{height:o,layout:r,width:s}=e,u=uu(r)?s:o,c=ns(e,t,l),d=O4(e,l),f=Math.max(0,Math.min(d-u,c.offset)),p=Math.max(0,c.offset-u+c.size);switch(n==="smart"&&(a>=p-u&&a<=f+u?n=Ha:n=El),n){case su:return f;case"end":return p;case El:return Math.round(p+(f-p)/2);case Ha:default:return a>=p&&a<=f?a:a<p?p:f}},getStartIndexForOffset:(e,t,n)=>FG(e,n,t),getStopIndexForStartIndex:(e,t,n,a)=>{const{height:l,total:o,layout:r,width:s}=e,u=uu(r)?s:l,c=ns(e,t,a),d=n+u;let f=c.offset+c.size,p=t;for(;p<o-1&&f<d;)p++,f+=ns(e,p,a).size;return p},initCache({estimatedItemSize:e=50},t){const n={items:{},estimatedItemSize:e,lastVisitedIndex:-1};return n.clearCacheAfterIndex=(a,l=!0)=>{var o,r;n.lastVisitedIndex=Math.min(n.lastVisitedIndex,a-1),(o=t.exposed)==null||o.getItemStyleCache(-1),l&&((r=t.proxy)==null||r.$forceUpdate())},n},clearCache:!1,validateProps:({itemSize:e})=>{typeof e!="function"&&sn(HG,`
itemSize is required as function, but the given value was ${typeof e}
`)}}),WG=({atXEndEdge:e,atXStartEdge:t,atYEndEdge:n,atYStartEdge:a},l)=>{let o=null,r=0,s=0;const u=(d,f)=>{const p=d<0&&t.value||d>0&&e.value,h=f<0&&a.value||f>0&&n.value;return p||h};return{hasReachedEdge:u,onWheel:d=>{ul(o);let f=d.deltaX,p=d.deltaY;if(Math.abs(f)>Math.abs(p)?p=0:f=0,d.shiftKey&&p!==0&&(f=p,p=0),u(f,p)){d.deltaX!==0&&f===0&&d.preventDefault();return}r+=f,s+=p,d.preventDefault(),o=Ea(()=>{l(r,s),r=0,s=0})}}},jG=(e,t,n,a,l,o,r)=>{const s=B(0),u=B(0);let c,d=0,f=0;const p=v=>{ul(c),s.value=v.touches[0].clientX,u.value=v.touches[0].clientY,d=0,f=0},h=v=>{v.preventDefault(),ul(c),d+=s.value-v.touches[0].clientX,f+=u.value-v.touches[0].clientY,s.value=v.touches[0].clientX,u.value=v.touches[0].clientY,c=Ea(()=>{const m=a.value-i(o),g=l.value-i(r);n({scrollLeft:Math.min(t.value.scrollLeft+d,m),scrollTop:Math.min(t.value.scrollTop+f,g)}),d=0,f=0})};return Bt(e,"touchstart",p,{passive:!0}),Bt(e,"touchmove",h,{passive:!1}),{touchStartX:s,touchStartY:u,handleTouchStart:p,handleTouchMove:h}},$5=({name:e,clearCache:t,getColumnPosition:n,getColumnStartIndexForOffset:a,getColumnStopIndexForStartIndex:l,getEstimatedTotalHeight:o,getEstimatedTotalWidth:r,getColumnOffset:s,getRowOffset:u,getRowPosition:c,getRowStartIndexForOffset:d,getRowStopIndexForStartIndex:f,initCache:p,injectToInstance:h,validateProps:v})=>D({name:e??"ElVirtualList",props:qo,emits:[rd,sd],setup(m,{emit:g,expose:y,slots:b}){const C=ye("vl");v(m);const _=mt(),x=B(p(m,_));h==null||h(_,x);const k=B(),E=B(),M=B(),$=B(),N=B({isScrolling:!1,scrollLeft:He(m.initScrollLeft)?m.initScrollLeft:0,scrollTop:He(m.initScrollTop)?m.initScrollTop:0,updateRequested:!1,xAxisScrollDir:id,yAxisScrollDir:id}),P=x5(),A=S(()=>Number.parseInt(`${m.height}`,10)),L=S(()=>Number.parseInt(`${m.width}`,10)),q=S(()=>{const{totalColumn:be,totalRow:Ee,columnCache:we}=m,{isScrolling:Ne,xAxisScrollDir:De,scrollLeft:Ze}=i(N);if(be===0||Ee===0)return[0,0,0,0];const et=a(m,Ze,i(x)),at=l(m,et,Ze,i(x)),nt=!Ne||De==="backward"?Math.max(1,we):1,Nt=!Ne||De==="forward"?Math.max(1,we):1;return[Math.max(0,et-nt),Math.max(0,Math.min(be-1,at+Nt)),et,at]}),W=S(()=>{const{totalColumn:be,totalRow:Ee,rowCache:we}=m,{isScrolling:Ne,yAxisScrollDir:De,scrollTop:Ze}=i(N);if(be===0||Ee===0)return[0,0,0,0];const et=d(m,Ze,i(x)),at=f(m,et,Ze,i(x)),nt=!Ne||De==="backward"?Math.max(1,we):1,Nt=!Ne||De==="forward"?Math.max(1,we):1;return[Math.max(0,et-nt),Math.max(0,Math.min(Ee-1,at+Nt)),et,at]}),H=S(()=>o(m,i(x))),V=S(()=>r(m,i(x))),I=S(()=>[{position:"relative",overflow:"hidden",WebkitOverflowScrolling:"touch",willChange:"transform"},{direction:m.direction,height:He(m.height)?`${m.height}px`:m.height,width:He(m.width)?`${m.width}px`:m.width},m.style??{}]),F=S(()=>{const be=`${i(V)}px`;return{height:`${i(H)}px`,pointerEvents:i(N).isScrolling?"none":void 0,width:be,margin:0,boxSizing:"border-box"}}),K=()=>{const{totalColumn:be,totalRow:Ee}=m;if(be>0&&Ee>0){const[at,nt,Nt,zt]=i(q),[Ot,Ue,pt,me]=i(W);g(rd,{columnCacheStart:at,columnCacheEnd:nt,rowCacheStart:Ot,rowCacheEnd:Ue,columnVisibleStart:Nt,columnVisibleEnd:zt,rowVisibleStart:pt,rowVisibleEnd:me})}const{scrollLeft:we,scrollTop:Ne,updateRequested:De,xAxisScrollDir:Ze,yAxisScrollDir:et}=i(N);g(sd,{xAxisScrollDir:Ze,scrollLeft:we,yAxisScrollDir:et,scrollTop:Ne,updateRequested:De})},j=be=>{const{clientHeight:Ee,clientWidth:we,scrollHeight:Ne,scrollLeft:De,scrollTop:Ze,scrollWidth:et}=be.currentTarget,at=i(N);if(at.scrollTop===Ze&&at.scrollLeft===De)return;let nt=De;if(T4(m.direction))switch(cd()){case iu:nt=-De;break;case nh:nt=et-we-De;break}N.value={...at,isScrolling:!0,scrollLeft:nt,scrollTop:Math.max(0,Math.min(Ze,Ne-Ee)),updateRequested:!0,xAxisScrollDir:gi(at.scrollLeft,nt),yAxisScrollDir:gi(at.scrollTop,Ze)},Pe(()=>z()),Y(),K()},G=(be,Ee)=>{const we=i(A),Ne=(H.value-we)/Ee*be;ne({scrollTop:Math.min(H.value-we,Ne)})},ee=(be,Ee)=>{const we=i(L),Ne=(V.value-we)/Ee*be;ne({scrollLeft:Math.min(V.value-we,Ne)})},{onWheel:le}=WG({atXStartEdge:S(()=>N.value.scrollLeft<=0),atXEndEdge:S(()=>N.value.scrollLeft>=V.value-i(L)),atYStartEdge:S(()=>N.value.scrol
"columnWidth" must be passed as number,
instead ${typeof e} was given.
`),He(t)||sn(N4,`
"columnWidth" must be passed as number,
instead ${typeof t} was given.
`)}}),{max:dd,min:N5,floor:A5}=Math,A4="ElDynamicSizeGrid",qG={column:"columnWidth",row:"rowHeight"},B2={column:"lastVisitedColumnIndex",row:"lastVisitedRowIndex"},Zl=(e,t,n,a)=>{const[l,o,r]=[n[a],e[qG[a]],n[B2[a]]];if(t>r){let s=0;if(r>=0){const u=l[r];s=u.offset+u.size}for(let u=r+1;u<=t;u++){const c=o(u);l[u]={offset:s,size:c},s+=c}n[B2[a]]=t}return l[t]},R5=(e,t,n,a,l,o)=>{for(;n<=a;){const r=n+A5((a-n)/2),s=Zl(e,r,t,o).offset;if(s===l)return r;s<l?n=r+1:a=r-1}return dd(0,n-1)},UG=(e,t,n,a,l)=>{const o=l==="column"?e.totalColumn:e.totalRow;let r=1;for(;n<o&&Zl(e,n,t,l).offset<a;)n+=r,r*=2;return R5(e,t,A5(n/2),N5(n,o-1),a,l)},R4=(e,t,n,a)=>{const[l,o]=[t[a],t[B2[a]]];return(o>0?l[o].offset:0)>=n?R5(e,t,0,o,n,a):UG(e,t,dd(0,o),n,a)},P5=({totalRow:e},{estimatedRowHeight:t,lastVisitedRowIndex:n,row:a})=>{let l=0;if(n>=e&&(n=e-1),n>=0){const r=a[n];l=r.offset+r.size}const o=(e-n-1)*t;return l+o},I5=({totalColumn:e},{column:t,estimatedColumnWidth:n,lastVisitedColumnIndex:a})=>{let l=0;if(a>e&&(a=e-1),a>=0){const r=t[a];l=r.offset+r.size}const o=(e-a-1)*n;return l+o},YG={column:I5,row:P5},P4=(e,t,n,a,l,o,r)=>{const[s,u]=[o==="row"?e.height:e.width,YG[o]],c=Zl(e,t,l,o),d=dd(0,N5(u(e,l)-s,c.offset)),f=dd(0,c.offset-s+r+c.size);switch(n==="smart"&&(a>=f-s&&a<=d+s?n=Ha:n=El),n){case su:return d;case"end":return f;case El:return Math.round(f+(d-f)/2);case Ha:default:return a>=f&&a<=d?a:f>d||a<f?f:d}},V5=$5({name:"ElDynamicSizeGrid",getColumnPosition:(e,t,n)=>{const a=Zl(e,t,n,"column");return[a.size,a.offset]},getRowPosition:(e,t,n)=>{const a=Zl(e,t,n,"row");return[a.size,a.offset]},getColumnOffset:(e,t,n,a,l,o)=>P4(e,t,n,a,l,"column",o),getRowOffset:(e,t,n,a,l,o)=>P4(e,t,n,a,l,"row",o),getColumnStartIndexForOffset:(e,t,n)=>R4(e,n,t,"column"),getColumnStopIndexForStartIndex:(e,t,n,a)=>{const l=Zl(e,t,a,"column"),o=n+e.width;let r=l.offset+l.size,s=t;for(;s<e.totalColumn-1&&r<o;)s++,r+=Zl(e,t,a,"column").size;return s},getEstimatedTotalHeight:P5,getEstimatedTotalWidth:I5,getRowStartIndexForOffset:(e,t,n)=>R4(e,n,t,"row"),getRowStopIndexForStartIndex:(e,t,n,a)=>{const{totalRow:l,height:o}=e,r=Zl(e,t,a,"row"),s=n+o;let u=r.size+r.offset,c=t;for(;c<l-1&&u<s;)c++,u+=Zl(e,c,a,"row").size;return c},injectToInstance:(e,t)=>{const n=({columnIndex:o,rowIndex:r},s)=>{var u,c;s=Mt(s)?!0:s,He(o)&&(t.value.lastVisitedColumnIndex=Math.min(t.value.lastVisitedColumnIndex,o-1)),He(r)&&(t.value.lastVisitedRowIndex=Math.min(t.value.lastVisitedRowIndex,r-1)),(u=e.exposed)==null||u.getItemStyleCache.value(-1,null,null),s&&((c=e.proxy)==null||c.$forceUpdate())},a=(o,r)=>{n({columnIndex:o},r)},l=(o,r)=>{n({rowIndex:o},r)};Object.assign(e.proxy,{resetAfterColumnIndex:a,resetAfterRowIndex:l,resetAfter:n})},initCache:({estimatedColumnWidth:e=50,estimatedRowHeight:t=50})=>({column:{},estimatedColumnWidth:e,estimatedRowHeight:t,lastVisitedColumnIndex:-1,lastVisitedRowIndex:-1,row:{}}),clearCache:!1,validateProps:({columnWidth:e,rowHeight:t})=>{We(e)||sn(A4,`
"columnWidth" must be passed as function,
instead ${typeof e} was given.
`),We(t)||sn(A4,`
"rowHeight" must be passed as function,
instead ${typeof t} was given.
`)}}),rh={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:{type:Boolean,default:void 0},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:Nn,tabindex:[String,Number],validateEvent:{type:Boolean,default:!0},ariaLabel:String,...ea(["ariaControls"])},sh={[lt]:e=>Le(e)||He(e)||qt(e),change:e=>Le(e)||He(e)||qt(e)},Fr=Symbol("checkboxGroupContextKey"),L5=xe({modelValue:{type:J(Array),default:()=>[]},disabled:{type:Boolean,default:void 0},min:Number,max:Number,size:Nn,fill:String,textColor:String,tag:{type:String,default:"div"},validateEvent:{type:Boolean,default:!0},options:{type:J(Array)},props:{type:J(Object),default:()=>ih},type:{type:String,values:["checkbox","button"],default:"checkbox"},...ea(["ariaLabel"])}),B5={[lt]:e=>Ce(e),change:e=>Ce(e)},ih={label:"label",value:"value",disabled:"disabled"},GG=({model:e,isChecked:t})=>{const n=Ie(Fr,void 0),a=Ie(er,void 0),l=S(()=>{var s,u;const o=(s=n==null?void 0:n.max)==null?void 0:s.value,r=(u=n==null?void 0:n.min)==null?void 0:u.value;return!Mt(o)&&e.value.length>=o&&!t.value||!Mt(r)&&e.value.length<=r&&t.value});return{isDisabled:ln(S(()=>{var o;return n===void 0?(a==null?void 0:a.disabled)??l.value:((o=n.disabled)==null?void 0:o.value)||l.value})),isLimitDisabled:l}},XG=(e,{model:t,isLimitExceeded:n,hasOwnLabel:a,isDisabled:l,isLabeledByFormItem:o})=>{const r=Ie(Fr,void 0),{formItem:s}=In(),{emit:u}=mt();function c(v){return[!0,e.trueValue,e.trueLabel].includes(v)?e.trueValue??e.trueLabel??!0:e.falseValue??e.falseLabel??!1}function d(v,m){u(yt,c(v),m)}function f(v){if(n.value)return;const m=v.target;u(yt,c(m.checked),v)}async function p(v){n.value||!a.value&&!l.value&&o.value&&(v.composedPath().some(m=>m.tagName==="LABEL")||(t.value=c([!1,e.falseValue,e.falseLabel].includes(t.value)),await Pe(),d(t.value,v)))}const h=S(()=>(r==null?void 0:r.validateEvent)||e.validateEvent);return fe(()=>e.modelValue,()=>{h.value&&(s==null||s.validate("change").catch(ft))}),{handleChange:f,onClickRoot:p}},ZG=e=>{const t=B(!1),{emit:n,vnode:a}=mt(),l=Ie(Fr,void 0),o=S(()=>Mt(l)===!1),r=B(!1),s=S(()=>{const c=a.props??{};return"modelValue"in c||"model-value"in c}),u=S({get(){var c;return o.value?(c=l==null?void 0:l.modelValue)==null?void 0:c.value:s.value?e.modelValue:t.value},set(c){var d,f;o.value&&Ce(c)?(r.value=((d=l==null?void 0:l.max)==null?void 0:d.value)!==void 0&&c.length>(l==null?void 0:l.max.value)&&c.length>u.value.length,r.value===!1&&((f=l==null?void 0:l.changeEvent)==null||f.call(l,c))):(n(lt,c),t.value=c)}});return{model:u,isGroup:o,isLimitExceeded:r}},JG=(e,t,{model:n})=>{const a=Ie(Fr,void 0),l=B(!1),o=S(()=>Oa(e.value)?e.label:e.value),r=S(()=>{const s=n.value;return qt(s)?s:Ce(s)?rt(o.value)?s.map(Xt).some(u=>dn(u,o.value)):s.map(Xt).includes(o.value):s!=null?s===e.trueValue||s===e.trueLabel:!!s});return{checkboxButtonSize:Mn(S(()=>{var s;return(s=a==null?void 0:a.size)==null?void 0:s.value}),{prop:!0}),isChecked:r,isFocused:l,checkboxSize:Mn(S(()=>{var s;return(s=a==null?void 0:a.size)==null?void 0:s.value})),hasOwnLabel:S(()=>!!t.default||!Oa(o.value)),actualValue:o}},z5=(e,t)=>{const{formItem:n}=In(),{model:a,isGroup:l,isLimitExceeded:o}=ZG(e),{isFocused:r,isChecked:s,checkboxButtonSize:u,checkboxSize:c,hasOwnLabel:d,actualValue:f}=JG(e,t,{model:a}),{isDisabled:p}=GG({model:a,isChecked:s}),{inputId:h,isLabeledByFormItem:v}=ga(e,{formItemContext:n,disableIdGeneration:d,disableIdManagement:l}),{handleChange:m,onClickRoot:g}=XG(e,{model:a,isLimitExceeded:o,hasOwnLabel:d,isDisabled:p,isLabeledByFormItem:v});return(()=>{function b(){Ce(a.value)&&!a.value.includes(f.value)?a.value.push(f.value):a.value=e.trueValue??e.trueLabel??!0}e.checked&&b()})(),ll({from:"label act as v
Add an empty element to avoid render label,
do not use empty fragment here for https://github.com/vuejs/vue-next/pull/2485
`),N[2]||(N[2]=T("span",null,null,-1))]),_:1},8,["model-value","label","disabled"])):p.value&&e.node.checked?(w(),ue(i(ze),{key:2,class:R(i(o).e("prefix"))},{default:ae(()=>[Z(i(Ir))]),_:1},8,["class"])):oe("v-if",!0),oe(" content "),Z(i(dX),{node:e.node},null,8,["node"]),oe(" postfix "),p.value?oe("v-if",!0):(w(),O(Ke,{key:3},[e.node.loading?(w(),ue(i(ze),{key:0,class:R([i(o).is("loading"),i(o).e("postfix")])},{default:ae(()=>[Z(i(Ga))]),_:1},8,["class"])):(w(),ue(i(ze),{key:1,class:R(["arrow-right",i(o).e("postfix")])},{default:ae(()=>[Z(i(Jn))]),_:1},8,["class"]))],64))],42,fX))}}),I4=pX,vX=D({name:"ElCascaderMenu",__name:"menu",props:{nodes:{type:Array,required:!0},index:{type:Number,required:!0},virtualScroll:{type:Boolean,required:!1,default:!1},itemSize:{type:Number,required:!1,default:34},height:{type:Number,required:!1,default:204}},setup(e,{expose:t}){const n=e,a=mt(),l=ye("cascader-menu"),{t:o}=xt(),r=Wn();let s,u;const c=Ie(Hu),d=B(),f=B(),p=S(()=>!n.nodes.length),h=S(()=>!c.initialLoaded),v=S(()=>`${r.value}-${n.index}`),m=()=>{var M,$,N,P;let E;if(c.expandingNode){const{level:A,pathNodes:L}=c.expandingNode;n.index<A?E=(M=L[n.index])==null?void 0:M.uid:n.index===A&&c.checkedNodes.length>0&&(E=(N=($=c.checkedNodes[0])==null?void 0:$.pathNodes[n.index])==null?void 0:N.uid)}else c.checkedNodes.length>0&&n.index<c.checkedNodes[0].pathNodes.length&&(E=(P=c.checkedNodes[0].pathNodes[n.index])==null?void 0:P.uid);return E!==void 0?n.nodes.findIndex(A=>A.uid===E):-1},g=E=>E?n.nodes.findIndex(M=>`${v.value}-${M.uid}`===E):-1,y=E=>{var $;const M=Ca(E,0,n.nodes.length-1);($=f.value)==null||$.scrollToItem(M)},b=E=>{if(!n.nodes.length)return;const M=Ca(E,0,n.nodes.length-1);y(M),Pe(()=>{var N;const $=(N=a.vnode.el)==null?void 0:N.querySelector(`#${v.value}-${n.nodes[M].uid}`);$&&cs($)})},C=E=>{s=E.target},_=E=>{var M,$,N;if(!(!c.isHoverMenu||!s||!d.value))if(s.contains(E.target)){x();const P=a.vnode.el,{left:A}=P.getBoundingClientRect(),{offsetWidth:L,offsetHeight:q}=P,W=E.clientX-A,H=s.offsetTop,V=H+s.offsetHeight,I=n.virtualScroll?(($=(M=f.value)==null?void 0:M.states)==null?void 0:$.scrollOffset)||0:((N=P.querySelector(`.${l.e("wrap")}`))==null?void 0:N.scrollTop)||0;d.value.innerHTML=`
<path style="pointer-events: auto;" fill="transparent" d="M${W} ${H} L${L} ${I} V${H} Z" />
<path style="pointer-events: auto;" fill="transparent" d="M${W} ${V} L${L} ${q+I} V${V} Z" />
`}else u||(u=window.setTimeout(k,c.config.hoverThreshold))},x=()=>{u&&(clearTimeout(u),u=void 0)},k=()=>{d.value&&(d.value.innerHTML="",x())};return t({getActiveNodeIndex:m,getNodeIndexById:g,scrollToItem:y,focusNodeAt:b,virtualListRef:f,get $el(){return a.vnode.el}}),(E,M)=>{var $;return e.virtualScroll?(w(),O("div",{key:v.value,class:R(i(l).b()),onMousemove:_,onMouseleave:k},[Z(i(Gs),{ref_key:"virtualListRef",ref:f,height:e.height,"item-size":e.itemSize,data:e.nodes,total:e.nodes.length,"class-name":i(l).e("list"),"inner-element":"ul","inner-props":{role:"menu",class:i(l).is("empty",p.value)}},{default:ae(({data:N,index:P,style:A})=>[(w(),ue(I4,{key:N[P].uid,node:N[P],"menu-id":v.value,style:je(A),onExpand:C},null,8,["node","menu-id","style"]))]),_:1},8,["height","item-size","data","total","class-name","inner-props"]),h.value?(w(),O("div",{key:0,class:R(i(l).e("empty-text"))},[Z(i(ze),{size:14,class:R(i(l).is("loading"))},{default:ae(()=>[Z(i(Ga))]),_:1},8,["class"]),wt(" "+Se(i(o)("el.cascader.loading")),1)],2)):p.value?(w(),O("div",{key:1,class:R(i(l).e("empty-text"))},[re(E.$slots,"empty",{},()=>[wt(Se(i(o)("el.cascader.noData")),1)])],2)):($=i(c))!=null&&$.isHoverMenu?(w(),O(Ke,{key:2},[oe(" eslint-disable vue/html-self-closing "),(w(),O("svg",{ref_key:"hoverZone",ref:d,class:R(i(l).e("hover-zone"))},null,2))],2112)):oe("v-if",!0),oe(" eslint-enable vue/html-self-closing ")],34)):(w(),ue(i(Xa),{key:v.value,tag:"ul",role:"menu",class:R(i(l).b()),"wrap-class":i(l).e("wrap"),"view-class":[i(l).e("list"),i(l).is("empty",p.value)],onMousemove:_,onMouseleave:k},{default:ae(()=>{var N;return[(w(!0),O(Ke,null,St(e.nodes,P=>(w(),ue(I4,{key:P.uid,node:P,"menu-id":v.value,onExpand:C},null,8,["node","menu-id"]))),128)),h.value?(w(),O("div",{key:0,class:R(i(l).e("empty-text"))},[Z(i(ze),{size:14,class:R(i(l).is("loading"))},{default:ae(()=>[Z(i(Ga))]),_:1},8,["class"]),wt(" "+Se(i(o)("el.cascader.loading")),1)],2)):p.value?(w(),O("div",{key:1,class:R(i(l).e("empty-text"))},[re(E.$slots,"empty",{},()=>[wt(Se(i(o)("el.cascader.noData")),1)])],2)):(N=i(c))!=null&&N.isHoverMenu?(w(),O(Ke,{key:2},[oe(" eslint-disable vue/html-self-closing "),(w(),O("svg",{ref_key:"hoverZone",ref:d,class:R(i(l).e("hover-zone"))},null,2))],2112)):oe("v-if",!0),oe(" eslint-enable vue/html-self-closing ")]}),_:3},8,["class","wrap-class","view-class"]))}}}),hX=vX;let mX=0;const gX=e=>{const t=[e];let{parent:n}=e;for(;n;)t.unshift(n),n=n.parent;return t};var z2=class D2{constructor(t,n,a,l=!1){this.data=t,this.config=n,this.parent=a,this.root=l,this.uid=mX++,this.checked=!1,this.indeterminate=!1,this.loading=!1;const{value:o,label:r,children:s}=n,u=t[s],c=gX(this);this.level=l?0:a?a.level+1:1,this.value=t[o],this.label=t[r],this.pathNodes=c,this.pathValues=c.map(d=>d.value),this.pathLabels=c.map(d=>d.label),this.childrenData=u,this.children=(u||[]).map(d=>new D2(d,n,this)),this.loaded=!n.lazy||this.isLeaf||!pa(u),this.text=""}get isDisabled(){const{data:t,parent:n,config:a}=this,{disabled:l,checkStrictly:o}=a;return(We(l)?l(t,this):!!t[l])||!o&&!!(n!=null&&n.isDisabled)}get isLeaf(){const{data:t,config:n,childrenData:a,loaded:l}=this,{lazy:o,leaf:r}=n,s=We(r)?r(t,this):t[r];return Mt(s)?o&&!l?!1:!(Ce(a)&&a.length):!!s}get valueByOption(){return this.config.emitPath?this.pathValues:this.value}appendChild(t){const{childrenData:n,children:a}=this,l=new D2(t,this.config,this);return Ce(n)?n.push(t):this.childrenData=[t],a.push(l),l}calcText(t,n){const a=t?this.pathLabels.join(n):this.label;return this.text=a,a}broadcast(t){this.children.forEach(n=>{var a;n&&(n.broadcast(t),(a=n.onParentCheck)==null||a.call(n,t))})}emit(){var n;const{parent:t}=this;t&&((n=t.onChildCheck)==null||n.call(t),t.emit())}onParentCheck(t){this.isDisabled||this.setCheckState(t)}onChildCheck(){const{children:t}=this,n=t.filter(l=>!l.isDisabled),a=n.length?n.every(l=>l.checked):!1;this.setCheckState(a)}setCheckState(t){const n=this.children.length,a=this.children.reduce((l,o)=>l+(o.checked?1:o.indeterminate?.5:0),0);this.checked=this.loaded&&this.children.filter(l=>!l.isDisabled
M 50 50
m 0 ${_?"":"-"}${C}
a ${C} ${C} 0 1 1 0 ${_?"-":""}${C*2}
a ${C} ${C} 0 1 1 0 ${_?"":"-"}${C*2}
`}),u=S(()=>2*Math.PI*r.value),c=S(()=>n.type==="dashboard"?.75:1),d=S(()=>`${-1*u.value*(1-c.value)/2}px`),f=S(()=>({strokeDasharray:`${u.value*c.value}px, ${u.value}px`,strokeDashoffset:d.value})),p=S(()=>({strokeDasharray:`${u.value*c.value*(n.percentage/100)}px, ${u.value}px`,strokeDashoffset:d.value,transition:"stroke-dasharray 0.6s ease 0s, stroke 0.6s ease, opacity ease 0.6s"})),h=S(()=>{let C;return n.color?C=b(n.percentage):C=t[n.status]||t.default,C}),v=S(()=>n.status==="warning"?Lu:n.type==="line"?n.status==="success"?cf:hl:n.status==="success"?Ir:Va),m=S(()=>n.type==="line"?12+n.strokeWidth*.4:n.width*.111111+2),g=S(()=>n.format(n.percentage));function y(C){const _=100/C.length;return C.map((x,k)=>Le(x)?{color:x,percentage:(k+1)*_}:x).sort((x,k)=>x.percentage-k.percentage)}const b=C=>{var x;const{color:_}=n;if(We(_))return _(C);if(Le(_))return _;{const k=y(_);for(const E of k)if(E.percentage>C)return E.color;return(x=k[k.length-1])==null?void 0:x.color}};return(C,_)=>(w(),O("div",{class:R([i(a).b(),i(a).m(e.type),i(a).is(e.status),{[i(a).m("without-text")]:!e.showText,[i(a).m("text-inside")]:e.textInside}]),role:"progressbar","aria-valuenow":e.percentage,"aria-valuemin":"0","aria-valuemax":"100"},[e.type==="line"?(w(),O("div",{key:0,class:R(i(a).b("bar"))},[T("div",{class:R(i(a).be("bar","outer")),style:je({height:`${e.strokeWidth}px`})},[T("div",{class:R([i(a).be("bar","inner"),{[i(a).bem("bar","inner","indeterminate")]:e.indeterminate},{[i(a).bem("bar","inner","striped")]:e.striped},{[i(a).bem("bar","inner","striped-flow")]:e.stripedFlow}]),style:je(l.value)},[(e.showText||C.$slots.default)&&e.textInside?(w(),O("div",{key:0,class:R(i(a).be("bar","innerText"))},[re(C.$slots,"default",{percentage:e.percentage},()=>[T("span",null,Se(g.value),1)])],2)):oe("v-if",!0)],6)],6)],2)):(w(),O("div",{key:1,class:R(i(a).b("circle")),style:je({height:`${e.width}px`,width:`${e.width}px`})},[(w(),O("svg",sne,[T("path",{class:R(i(a).be("circle","track")),d:s.value,stroke:`var(${i(a).cssVarName("fill-color-light")}, #e5e9f2)`,"stroke-linecap":e.strokeLinecap,"stroke-width":o.value,fill:"none",style:je(f.value)},null,14,ine),T("path",{class:R(i(a).be("circle","path")),d:s.value,stroke:h.value,fill:"none",opacity:e.percentage?1:0,"stroke-linecap":e.strokeLinecap,"stroke-width":o.value,style:je(p.value)},null,14,une)]))],6)),(e.showText||C.$slots.default)&&!e.textInside?(w(),O("div",{key:2,class:R(i(a).e("text")),style:je({fontSize:`${m.value}px`})},[re(C.$slots,"default",{percentage:e.percentage},()=>[e.status?(w(),ue(i(ze),{key:1},{default:ae(()=>[(w(),ue(dt(v.value)))]),_:1})):(w(),O("span",cne,Se(g.value),1))])],6)):oe("v-if",!0)],10,rne))}}),fne=dne;const qh=it(fne),a_=xe({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:J([Array,Object]),default:()=>fn(["","",""])},voidColor:{type:String,default:""},disabledVoidColor:{type:String,default:""},icons:{type:J([Array,Object]),default:()=>[hi,hi,hi]},voidIcon:{type:Yt,default:()=>Mb},disabledVoidIcon:{type:Yt,default:()=>hi},disabled:{type:Boolean,default:void 0},allowHalf:Boolean,showText:Boolean,showScore:Boolean,textColor:{type:String,default:""},texts:{type:J(Array),default:()=>fn(["Extremely bad","Disappointed","Fair","Satisfied","Surprise"])},scoreTemplate:{type:String,default:"{value}"},size:Nn,clearable:Boolean,...ea(["ariaLabel"])}),l_={[yt]:e=>He(e),[lt]:e=>He(e)},pne=["id","aria-label","aria-labelledby","aria-valuenow","aria-valuetext","aria-valuemax","tabindex","aria-disabled"],vne=["onMousemove","onClick"];var hne=D({name:"ElRate",__name:"rate",props:a_,emits:l_,setup(e,{expose:t,emit:n}){function a(I,F){const K=G=>rt(G),j=F[Object.keys(F).map(G=>+G).filter(G=>{const ee=F[G];return K(ee)&&ee.excluded?I<G:I<=G}).sort((G,ee)=>G-ee)[0]];return K(j)&&j.value||j}const l=e,o=n,r=Ie(cl,void 0),s=Mn(),u=ye("rate"),{inputId:c,isLabeledByFormItem:d}=ga(l,{formItemContext:r}),f=B(Ca(l.modelValue,0,l.max)),p=B(-1),h=B(!0),v=B([]),m=S(
`||c==="\r")){r=u;continue}if(o.includes(c)){const d=r===-1?a:r;s={pattern:l.slice(u+1,d),start:u+1,end:d,prefix:c,prefixIndex:u,splitIndex:r,selectionEnd:a};break}}return s},dse=(e,t={debug:!1,useSelectionEnd:!1})=>{const n=e.selectionStart!==null?e.selectionStart:0,a=e.selectionEnd!==null?e.selectionEnd:0,l=t.useSelectionEnd?a:n,o=["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 r=document.createElement("div");r.id="input-textarea-caret-position-mirror-div",document.body.appendChild(r);const s=r.style,u=window.getComputedStyle(e),c=e.nodeName==="INPUT";s.whiteSpace=c?"nowrap":"pre-wrap",c||(s.wordWrap="break-word"),s.position="absolute",t.debug||(s.visibility="hidden"),o.forEach(p=>{if(c&&p==="lineHeight")if(u.boxSizing==="border-box"){const h=Number.parseInt(u.height),v=Number.parseInt(u.paddingTop)+Number.parseInt(u.paddingBottom)+Number.parseInt(u.borderTopWidth)+Number.parseInt(u.borderBottomWidth),m=v+Number.parseInt(u.lineHeight);h>m?s.lineHeight=`${h-v}px`:h===m?s.lineHeight=u.lineHeight:s.lineHeight="0"}else s.lineHeight=u.height;else s[p]=u[p]}),Qd()?e.scrollHeight>Number.parseInt(u.height)&&(s.overflowY="scroll"):s.overflow="hidden",r.textContent=e.value.slice(0,Math.max(0,l)),c&&r.textContent&&(r.textContent=r.textContent.replace(/\s/g," "));const d=document.createElement("span");d.textContent=e.value.slice(Math.max(0,l))||".",d.style.position="relative",d.style.left=`${-e.scrollLeft}px`,d.style.top=`${-e.scrollTop}px`,r.appendChild(d);const f={top:d.offsetTop+Number.parseInt(u.borderTopWidth),left:d.offsetLeft+Number.parseInt(u.borderLeftWidth),height:Number.parseInt(u.fontSize)*1.5};return t.debug?d.style.backgroundColor="#aaa":document.body.removeChild(r),f.left>=e.clientWidth&&(f.left=e.clientWidth),f},dx=xe({...mf,options:{type:J(Array),default:()=>[]},prefix:{type:J([String,Array]),default:"@",validator:e=>Le(e)?e.length===1:e.every(t=>Le(t)&&t.length===1)},split:{type:String,default:" ",validator:e=>e.length===1},filterOption:{type:J([Boolean,Function]),default:()=>use,validator:e=>e===!1?!0:We(e)},placement:{type:J(String),default:"bottom"},showArrow:Boolean,offset:{type:Number,default:0},whole:Boolean,checkIsWhole:{type:J(Function)},modelValue:String,loading:Boolean,popperClass:Ft.popperClass,popperStyle:Ft.popperStyle,popperOptions:{type:J(Object),default:()=>({})},props:{type:J(Object),default:()=>C1}}),fx={[lt]:e=>Le(e),"whole-remove":(e,t)=>Le(e)&&Le(t),input:e=>Le(e),search:(e,t)=>Le(e)&&Le(t),select:(e,t)=>rt(e)&&Le(t),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent},C1={value:"value",label:"label",disabled:"disabled"},fse=xe({options:{type:J(Array),default:()=>[]},loading:Boolean,disabled:Boolean,contentId:String,ariaLabel:String}),pse={select:e=>Le(e.value)},vse=["id","aria-disabled","aria-selected","onMousemove","onClick"];var hse=D({name:"ElMentionDropdown",__name:"mention-dropdown",props:fse,emits:pse,setup(e,{expose:t,emit:n}){const a=e,l=n,o=ye("mention"),{t:r}=xt(),s=B(-1),u=B(),c=B(),d=B(),f=(_,x)=>[o.be("dropdown","item"),o.is("hovering",s.value===x),o.is("disabled",_.disabled||a.disabled)],p=_=>{_.disabled||a.disabled||l("select",_)},h=_=>{s.value=_},v=S(()=>a.disabled||a.options.every(_=>_.disabled)),m=S(()=>a.options[s.value]),g=()=>{!m.value||m.value.disabled||a.disabled||l("select",m.value)},y=_=>{const{options:x}=a;if(x.length===0||v.value)return;_==="next"?(s.value++,s.value===x.length&&(s.value=0)):_==="prev"&&(s.value--,s.value<0&&(s.value=x.length-1));const k=x[s.value];if(k.disabled){y(_);return}Pe(()=>b(k))},b=_=>{var M,$,N,P;const{opti