2460 lines
581 KiB
JavaScript
2460 lines
581 KiB
JavaScript
(function(Ir){typeof define=="function"&&define.amd?define(Ir):Ir()})(function(){"use strict";var Ir=document.createElement("style");Ir.textContent=`html,body,#app{height:100%;margin:0;padding:0;background:#000;overflow:hidden}.login-container[data-v-6eda41c4]{position:relative;width:100vw;min-height:100vh;display:flex;justify-content:center;align-items:center;overflow:hidden;background:linear-gradient(135deg,#00afff,#07c)}.login-card[data-v-6eda41c4]{background:#0000004b;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-radius:20px;padding:2.5rem;width:360px;box-shadow:0 0 30px #00afff66;border:1px solid rgba(0,175,255,.3);position:relative;z-index:1;text-align:center;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:300px}.logo[data-v-6eda41c4]{font-family:Arial,sans-serif;font-weight:700;margin-bottom:1.5rem;letter-spacing:1px;color:#fff;text-shadow:0 0 10px rgba(0,175,255,.8),0 0 20px rgba(0,175,255,.6);display:inline-flex;align-items:center;gap:.5rem}.brand[data-v-6eda41c4]{color:#fff;font-size:2.2rem;text-shadow:0 0 10px rgba(0,175,255,.8),0 0 20px rgba(0,175,255,.6)}.icon[data-v-6eda41c4]{color:#0ff;font-size:1.8rem;margin:0 .5rem;text-shadow:0 0 15px rgba(0,255,255,.7)}.input-field[data-v-6eda41c4]{width:80%;padding:.8rem 1rem;margin-bottom:1rem;border:none;border-radius:10px;background:#fff;color:#000;font-size:1rem;outline:none;transition:all .3s ease;box-shadow:0 0 0 1px #00afff4d}.input-field[data-v-6eda41c4]:focus{box-shadow:0 0 0 2px #00afffb3,0 0 10px #00afff66}.error[data-v-6eda41c4]{color:#ff6b6b;font-size:.85rem;margin:-.5rem 0 1rem}.login-btn[data-v-6eda41c4]{width:70%;padding:.8rem;background:linear-gradient(90deg,#00afff,#07c);color:#fff;border:none;border-radius:10px;font-size:1rem;font-weight:600;cursor:pointer;transition:transform .2s,box-shadow .2s;box-shadow:0 0 15px #00afff80}.register-btn[data-v-6eda41c4]{width:70%;padding:.8rem;background:linear-gradient(90deg,#6bffce,#c74dff);color:#fff;border:none;border-radius:10px;font-size:1rem;font-weight:600;cursor:pointer;transition:transform .2s,box-shadow .2s;box-shadow:0 0 15px #ff6b6b80}.login-btn[data-v-6eda41c4]:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 0 20px #00afffb3}.login-btn[data-v-6eda41c4]:disabled{opacity:.7;cursor:not-allowed}.auth-buttons[data-v-6eda41c4]{display:flex;gap:1rem;justify-content:center;margin-top:1.5rem}.footer[data-v-6eda41c4]{margin-top:1.5rem;color:#fff9;font-size:.8rem;text-align:center}.register-btn[data-v-6eda41c4]:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 0 20px #ff6b6bb3}.register-btn[data-v-6eda41c4]:disabled{opacity:.7;cursor:not-allowed}.register-view[data-v-14690773]{display:flex;justify-content:center;align-items:center;min-height:100vh;background:linear-gradient(135deg,#00afff,#07c);color:#fff}.container[data-v-14690773]{width:400px;padding:30px;background:#0000004b;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-radius:20px;box-shadow:0 0 30px #00afff66;border:1px solid rgba(0,175,255,.3);text-align:center}.input-field[data-v-14690773]{width:90%;padding:20px;margin:10px 0;border:none;border-radius:10px;background:#fff;color:#000;font-size:1rem;outline:none;transition:all .3s ease;box-shadow:0 0 0 1px #00afff4d}.btn-primary[data-v-14690773]{width:100%;padding:12px;background:linear-gradient(90deg,#4caf50,#45a049);color:#fff;border:none;border-radius:10px;cursor:pointer;margin:10px 0;font-size:1rem;font-weight:600;transition:transform .2s,box-shadow .2s}.btn-primary[data-v-14690773]:disabled{background:#666;cursor:not-allowed}.btn-secondary[data-v-14690773]{width:100%;padding:10px;background:linear-gradient(90deg,#6bffce,#c74dff);color:#fff;border:none;border-radius:10px;cursor:pointer;margin-top:20px;font-size:1rem;font-weight:600;transition:transform .2s,box-shadow .2s}.error-msg[data-v-14690773]{color:#ff6b6b;margin:10px 0;font-size:14px}.back-to-login[data-v-14690773]{margin-top:20px}.password-setup-container[data-v-378de9a4]{display:flex;justify-content:center;align-items:center;min-height:100vh;background:linear-gradient(135deg,#00afff,#07c);color:#fff}.setup-card[data-v-378de9a4]{width:400px;padding:30px;background:#0000004b;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-radius:20px;box-shadow:0 0 30px #00afff66;border:1px solid rgba(0,175,255,.3);text-align:center}.input-group[data-v-378de9a4]{margin-bottom:15px;text-align:left}.input-group label[data-v-378de9a4]{display:block;margin-bottom:5px;font-weight:700}.input-field[data-v-378de9a4]{width:94%;padding:12px;border:none;border-radius:10px;background:#fff;color:#000;font-size:1rem;outline:none;transition:all .3s ease;box-shadow:0 0 0 1px #00afff4d}.btn-primary[data-v-378de9a4]{width:100%;padding:12px;background:linear-gradient(90deg,#4caf50,#45a049);color:#fff;border:none;border-radius:10px;cursor:pointer;margin-top:20px;font-size:1rem;font-weight:600;transition:transform .2s,box-shadow .2s}.error[data-v-378de9a4]{color:#ff6b6b;margin:10px 0;font-size:14px}.header[data-v-7853d827]{height:64px;display:flex;align-items:center;padding:0 20px;background-color:#fff}.header-content[data-v-7853d827]{width:100%;display:flex;justify-content:space-between;align-items:center}.header-actions .n-button .n-avatar[data-v-7853d827]{margin-right:8px}
|
||
/*$vite$:1*/`,document.head.appendChild(Ir);/**
|
||
* @vue/shared v3.5.26
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/function sa(e){const t=Object.create(null);for(const o of e.split(","))t[o]=1;return o=>o in t}const dt={},lr=[],Ro=()=>{},id=()=>!1,Oi=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ca=e=>e.startsWith("onUpdate:"),Rt=Object.assign,da=(e,t)=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)},Tg=Object.prototype.hasOwnProperty,rt=(e,t)=>Tg.call(e,t),Be=Array.isArray,ar=e=>Mi(e)==="[object Map]",ld=e=>Mi(e)==="[object Set]",De=e=>typeof e=="function",Ct=e=>typeof e=="string",No=e=>typeof e=="symbol",ft=e=>e!==null&&typeof e=="object",ad=e=>(ft(e)||De(e))&&De(e.then)&&De(e.catch),sd=Object.prototype.toString,Mi=e=>sd.call(e),$g=e=>Mi(e).slice(8,-1),cd=e=>Mi(e)==="[object Object]",Bi=e=>Ct(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Or=sa(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Hi=e=>{const t=Object.create(null);return o=>t[o]||(t[o]=e(o))},Eg=/-\w/g,lo=Hi(e=>e.replace(Eg,t=>t.slice(1).toUpperCase())),Fg=/\B([A-Z])/g,$n=Hi(e=>e.replace(Fg,"-$1").toLowerCase()),Di=Hi(e=>e.charAt(0).toUpperCase()+e.slice(1)),ua=Hi(e=>e?`on${Di(e)}`:""),ln=(e,t)=>!Object.is(e,t),Li=(e,...t)=>{for(let o=0;o<e.length;o++)e[o](...t)},dd=(e,t,o,n=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:n,value:o})},fa=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ag=e=>{const t=Ct(e)?Number(e):NaN;return isNaN(t)?e:t};let ud;const Ni=()=>ud||(ud=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function ha(e){if(Be(e)){const t={};for(let o=0;o<e.length;o++){const n=e[o],r=Ct(n)?Bg(n):ha(n);if(r)for(const i in r)t[i]=r[i]}return t}else if(Ct(e)||ft(e))return e}const Ig=/;(?![^(]*\))/g,Og=/:([^]+)/,Mg=/\/\*[^]*?\*\//g;function Bg(e){const t={};return e.replace(Mg,"").split(Ig).forEach(o=>{if(o){const n=o.split(Og);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function pa(e){let t="";if(Ct(e))t=e;else if(Be(e))for(let o=0;o<e.length;o++){const n=pa(e[o]);n&&(t+=n+" ")}else if(ft(e))for(const o in e)e[o]&&(t+=o+" ");return t.trim()}const Hg=sa("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function fd(e){return!!e||e===""}const hd=e=>!!(e&&e.__v_isRef===!0),Po=e=>Ct(e)?e:e==null?"":Be(e)||ft(e)&&(e.toString===sd||!De(e.toString))?hd(e)?Po(e.value):JSON.stringify(e,pd,2):String(e),pd=(e,t)=>hd(t)?pd(e,t.value):ar(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((o,[n,r],i)=>(o[va(n,i)+" =>"]=r,o),{})}:ld(t)?{[`Set(${t.size})`]:[...t.values()].map(o=>va(o))}:No(t)?va(t):ft(t)&&!Be(t)&&!cd(t)?String(t):t,va=(e,t="")=>{var o;return No(e)?`Symbol(${(o=e.description)!=null?o:t})`:e};/**
|
||
* @vue/reactivity v3.5.26
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/let Zt;class Dg{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Zt,!t&&Zt&&(this.index=(Zt.scopes||(Zt.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,o;if(this.scopes)for(t=0,o=this.scopes.length;t<o;t++)this.scopes[t].pause();for(t=0,o=this.effects.length;t<o;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,o;if(this.scopes)for(t=0,o=this.scopes.length;t<o;t++)this.scopes[t].resume();for(t=0,o=this.effects.length;t<o;t++)this.effects[t].resume()}}run(t){if(this._active){const o=Zt;try{return Zt=this,t()}finally{Zt=o}}}on(){++this._on===1&&(this.prevScope=Zt,Zt=this)}off(){this._on>0&&--this._on===0&&(Zt=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let o,n;for(o=0,n=this.effects.length;o<n;o++)this.effects[o].stop();for(this.effects.length=0,o=0,n=this.cleanups.length;o<n;o++)this.cleanups[o]();if(this.cleanups.length=0,this.scopes){for(o=0,n=this.scopes.length;o<n;o++)this.scopes[o].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function Lg(){return Zt}let ht;const ga=new WeakSet;class vd{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,Zt&&Zt.active&&Zt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,ga.has(this)&&(ga.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||md(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,wd(this),bd(this);const t=ht,o=vo;ht=this,vo=!0;try{return this.fn()}finally{xd(this),ht=t,vo=o,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)ya(t);this.deps=this.depsTail=void 0,wd(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?ga.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){xa(this)&&this.run()}get dirty(){return xa(this)}}let gd=0,Mr,Br;function md(e,t=!1){if(e.flags|=8,t){e.next=Br,Br=e;return}e.next=Mr,Mr=e}function ma(){gd++}function ba(){if(--gd>0)return;if(Br){let t=Br;for(Br=void 0;t;){const o=t.next;t.next=void 0,t.flags&=-9,t=o}}let e;for(;Mr;){let t=Mr;for(Mr=void 0;t;){const o=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(n){e||(e=n)}t=o}}if(e)throw e}function bd(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function xd(e){let t,o=e.depsTail,n=o;for(;n;){const r=n.prevDep;n.version===-1?(n===o&&(o=r),ya(n),Ng(n)):t=n,n.dep.activeLink=n.prevActiveLink,n.prevActiveLink=void 0,n=r}e.deps=t,e.depsTail=o}function xa(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(yd(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function yd(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Hr)||(e.globalVersion=Hr,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!xa(e))))return;e.flags|=2;const t=e.dep,o=ht,n=vo;ht=e,vo=!0;try{bd(e);const r=e.fn(e._value);(t.version===0||ln(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{ht=o,vo=n,xd(e),e.flags&=-3}}function ya(e,t=!1){const{dep:o,prevSub:n,nextSub:r}=e;if(n&&(n.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=n,e.nextSub=void 0),o.subs===e&&(o.subs=n,!n&&o.computed)){o.computed.flags&=-5;for(let i=o.computed.deps;i;i=i.nextDep)ya(i,!0)}!t&&!--o.sc&&o.map&&o.map.delete(o.key)}function Ng(e){const{prevDep:t,nextDep:o}=e;t&&(t.nextDep=o,e.prevDep=void 0),o&&(o.prevDep=t,e.nextDep=void 0)}let vo=!0;const Cd=[];function _o(){Cd.push(vo),vo=!1}function ko(){const e=Cd.pop();vo=e===void 0?!0:e}function wd(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const o=ht;ht=void 0;try{t()}finally{ht=o}}}let Hr=0;class jg{constructor(t,o){this.sub=t,this.dep=o,this.version=o.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Ca{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!ht||!vo||ht===this.computed)return;let o=this.activeLink;if(o===void 0||o.sub!==ht)o=this.activeLink=new jg(ht,this),ht.deps?(o.prevDep=ht.depsTail,ht.depsTail.nextDep=o,ht.depsTail=o):ht.deps=ht.depsTail=o,Sd(o);else if(o.version===-1&&(o.version=this.version,o.nextDep)){const n=o.nextDep;n.prevDep=o.prevDep,o.prevDep&&(o.prevDep.nextDep=n),o.prevDep=ht.depsTail,o.nextDep=void 0,ht.depsTail.nextDep=o,ht.depsTail=o,ht.deps===o&&(ht.deps=n)}return o}trigger(t){this.version++,Hr++,this.notify(t)}notify(t){ma();try{for(let o=this.subs;o;o=o.prevSub)o.sub.notify()&&o.sub.dep.notify()}finally{ba()}}}function Sd(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let n=t.deps;n;n=n.nextDep)Sd(n)}const o=e.dep.subs;o!==e&&(e.prevSub=o,o&&(o.nextSub=e)),e.dep.subs=e}}const ji=new WeakMap,En=Symbol(""),wa=Symbol(""),Dr=Symbol("");function Ot(e,t,o){if(vo&&ht){let n=ji.get(e);n||ji.set(e,n=new Map);let r=n.get(o);r||(n.set(o,r=new Ca),r.map=n,r.key=o),r.track()}}function jo(e,t,o,n,r,i){const l=ji.get(e);if(!l){Hr++;return}const a=s=>{s&&s.trigger()};if(ma(),t==="clear")l.forEach(a);else{const s=Be(e),c=s&&Bi(o);if(s&&o==="length"){const d=Number(n);l.forEach((u,f)=>{(f==="length"||f===Dr||!No(f)&&f>=d)&&a(u)})}else switch((o!==void 0||l.has(void 0))&&a(l.get(o)),c&&a(l.get(Dr)),t){case"add":s?c&&a(l.get("length")):(a(l.get(En)),ar(e)&&a(l.get(wa)));break;case"delete":s||(a(l.get(En)),ar(e)&&a(l.get(wa)));break;case"set":ar(e)&&a(l.get(En));break}}ba()}function Wg(e,t){const o=ji.get(e);return o&&o.get(t)}function sr(e){const t=Ke(e);return t===e?t:(Ot(t,"iterate",Dr),ao(e)?t:t.map(Vo))}function Sa(e){return Ot(e=Ke(e),"iterate",Dr),e}function an(e,t){return sn(e)?cr(e)?jr(Vo(t)):jr(t):Vo(t)}const Vg={__proto__:null,[Symbol.iterator](){return Ra(this,Symbol.iterator,e=>an(this,e))},concat(...e){return sr(this).concat(...e.map(t=>Be(t)?sr(t):t))},entries(){return Ra(this,"entries",e=>(e[1]=an(this,e[1]),e))},every(e,t){return Wo(this,"every",e,t,void 0,arguments)},filter(e,t){return Wo(this,"filter",e,t,o=>o.map(n=>an(this,n)),arguments)},find(e,t){return Wo(this,"find",e,t,o=>an(this,o),arguments)},findIndex(e,t){return Wo(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Wo(this,"findLast",e,t,o=>an(this,o),arguments)},findLastIndex(e,t){return Wo(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Wo(this,"forEach",e,t,void 0,arguments)},includes(...e){return Pa(this,"includes",e)},indexOf(...e){return Pa(this,"indexOf",e)},join(e){return sr(this).join(e)},lastIndexOf(...e){return Pa(this,"lastIndexOf",e)},map(e,t){return Wo(this,"map",e,t,void 0,arguments)},pop(){return Lr(this,"pop")},push(...e){return Lr(this,"push",e)},reduce(e,...t){return Rd(this,"reduce",e,t)},reduceRight(e,...t){return Rd(this,"reduceRight",e,t)},shift(){return Lr(this,"shift")},some(e,t){return Wo(this,"some",e,t,void 0,arguments)},splice(...e){return Lr(this,"splice",e)},toReversed(){return sr(this).toReversed()},toSorted(e){return sr(this).toSorted(e)},toSpliced(...e){return sr(this).toSpliced(...e)},unshift(...e){return Lr(this,"unshift",e)},values(){return Ra(this,"values",e=>an(this,e))}};function Ra(e,t,o){const n=Sa(e),r=n[t]();return n!==e&&!ao(e)&&(r._next=r.next,r.next=()=>{const i=r._next();return i.done||(i.value=o(i.value)),i}),r}const Ug=Array.prototype;function Wo(e,t,o,n,r,i){const l=Sa(e),a=l!==e&&!ao(e),s=l[t];if(s!==Ug[t]){const u=s.apply(e,i);return a?Vo(u):u}let c=o;l!==e&&(a?c=function(u,f){return o.call(this,an(e,u),f,e)}:o.length>2&&(c=function(u,f){return o.call(this,u,f,e)}));const d=s.call(l,c,n);return a&&r?r(d):d}function Rd(e,t,o,n){const r=Sa(e);let i=o;return r!==e&&(ao(e)?o.length>3&&(i=function(l,a,s){return o.call(this,l,a,s,e)}):i=function(l,a,s){return o.call(this,l,an(e,a),s,e)}),r[t](i,...n)}function Pa(e,t,o){const n=Ke(e);Ot(n,"iterate",Dr);const r=n[t](...o);return(r===-1||r===!1)&&Gi(o[0])?(o[0]=Ke(o[0]),n[t](...o)):r}function Lr(e,t,o=[]){_o(),ma();const n=Ke(e)[t].apply(e,o);return ba(),ko(),n}const Kg=sa("__proto__,__v_isRef,__isVue"),Pd=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(No));function Gg(e){No(e)||(e=String(e));const t=Ke(this);return Ot(t,"has",e),t.hasOwnProperty(e)}class _d{constructor(t=!1,o=!1){this._isReadonly=t,this._isShallow=o}get(t,o,n){if(o==="__v_skip")return t.__v_skip;const r=this._isReadonly,i=this._isShallow;if(o==="__v_isReactive")return!r;if(o==="__v_isReadonly")return r;if(o==="__v_isShallow")return i;if(o==="__v_raw")return n===(r?i?Fd:Ed:i?$d:Td).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(n)?t:void 0;const l=Be(t);if(!r){let s;if(l&&(s=Vg[o]))return s;if(o==="hasOwnProperty")return Gg}const a=Reflect.get(t,o,St(t)?t:n);if((No(o)?Pd.has(o):Kg(o))||(r||Ot(t,"get",o),i))return a;if(St(a)){const s=l&&Bi(o)?a:a.value;return r&&ft(s)?Fn(s):s}return ft(a)?r?Fn(a):Nr(a):a}}class kd extends _d{constructor(t=!1){super(!1,t)}set(t,o,n,r){let i=t[o];const l=Be(t)&&Bi(o);if(!this._isShallow){const c=sn(i);if(!ao(n)&&!sn(n)&&(i=Ke(i),n=Ke(n)),!l&&St(i)&&!St(n))return c||(i.value=n),!0}const a=l?Number(o)<t.length:rt(t,o),s=Reflect.set(t,o,n,St(t)?t:r);return t===Ke(r)&&(a?ln(n,i)&&jo(t,"set",o,n):jo(t,"add",o,n)),s}deleteProperty(t,o){const n=rt(t,o);t[o];const r=Reflect.deleteProperty(t,o);return r&&n&&jo(t,"delete",o,void 0),r}has(t,o){const n=Reflect.has(t,o);return(!No(o)||!Pd.has(o))&&Ot(t,"has",o),n}ownKeys(t){return Ot(t,"iterate",Be(t)?"length":En),Reflect.ownKeys(t)}}class zd extends _d{constructor(t=!1){super(!0,t)}set(t,o){return!0}deleteProperty(t,o){return!0}}const qg=new kd,Xg=new zd,Yg=new kd(!0),Zg=new zd(!0),_a=e=>e,Wi=e=>Reflect.getPrototypeOf(e);function Jg(e,t,o){return function(...n){const r=this.__v_raw,i=Ke(r),l=ar(i),a=e==="entries"||e===Symbol.iterator&&l,s=e==="keys"&&l,c=r[e](...n),d=o?_a:t?jr:Vo;return!t&&Ot(i,"iterate",s?wa:En),{next(){const{value:u,done:f}=c.next();return f?{value:u,done:f}:{value:a?[d(u[0]),d(u[1])]:d(u),done:f}},[Symbol.iterator](){return this}}}}function Vi(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Qg(e,t){const o={get(r){const i=this.__v_raw,l=Ke(i),a=Ke(r);e||(ln(r,a)&&Ot(l,"get",r),Ot(l,"get",a));const{has:s}=Wi(l),c=t?_a:e?jr:Vo;if(s.call(l,r))return c(i.get(r));if(s.call(l,a))return c(i.get(a));i!==l&&i.get(r)},get size(){const r=this.__v_raw;return!e&&Ot(Ke(r),"iterate",En),r.size},has(r){const i=this.__v_raw,l=Ke(i),a=Ke(r);return e||(ln(r,a)&&Ot(l,"has",r),Ot(l,"has",a)),r===a?i.has(r):i.has(r)||i.has(a)},forEach(r,i){const l=this,a=l.__v_raw,s=Ke(a),c=t?_a:e?jr:Vo;return!e&&Ot(s,"iterate",En),a.forEach((d,u)=>r.call(i,c(d),c(u),l))}};return Rt(o,e?{add:Vi("add"),set:Vi("set"),delete:Vi("delete"),clear:Vi("clear")}:{add(r){!t&&!ao(r)&&!sn(r)&&(r=Ke(r));const i=Ke(this);return Wi(i).has.call(i,r)||(i.add(r),jo(i,"add",r,r)),this},set(r,i){!t&&!ao(i)&&!sn(i)&&(i=Ke(i));const l=Ke(this),{has:a,get:s}=Wi(l);let c=a.call(l,r);c||(r=Ke(r),c=a.call(l,r));const d=s.call(l,r);return l.set(r,i),c?ln(i,d)&&jo(l,"set",r,i):jo(l,"add",r,i),this},delete(r){const i=Ke(this),{has:l,get:a}=Wi(i);let s=l.call(i,r);s||(r=Ke(r),s=l.call(i,r)),a&&a.call(i,r);const c=i.delete(r);return s&&jo(i,"delete",r,void 0),c},clear(){const r=Ke(this),i=r.size!==0,l=r.clear();return i&&jo(r,"clear",void 0,void 0),l}}),["keys","values","entries",Symbol.iterator].forEach(r=>{o[r]=Jg(r,e,t)}),o}function Ui(e,t){const o=Qg(e,t);return(n,r,i)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?n:Reflect.get(rt(o,r)&&r in n?o:n,r,i)}const em={get:Ui(!1,!1)},tm={get:Ui(!1,!0)},om={get:Ui(!0,!1)},nm={get:Ui(!0,!0)},Td=new WeakMap,$d=new WeakMap,Ed=new WeakMap,Fd=new WeakMap;function rm(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function im(e){return e.__v_skip||!Object.isExtensible(e)?0:rm($g(e))}function Nr(e){return sn(e)?e:Ki(e,!1,qg,em,Td)}function Ad(e){return Ki(e,!1,Yg,tm,$d)}function Fn(e){return Ki(e,!0,Xg,om,Ed)}function E2(e){return Ki(e,!0,Zg,nm,Fd)}function Ki(e,t,o,n,r){if(!ft(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=im(e);if(i===0)return e;const l=r.get(e);if(l)return l;const a=new Proxy(e,i===2?n:o);return r.set(e,a),a}function cr(e){return sn(e)?cr(e.__v_raw):!!(e&&e.__v_isReactive)}function sn(e){return!!(e&&e.__v_isReadonly)}function ao(e){return!!(e&&e.__v_isShallow)}function Gi(e){return e?!!e.__v_raw:!1}function Ke(e){const t=e&&e.__v_raw;return t?Ke(t):e}function lm(e){return!rt(e,"__v_skip")&&Object.isExtensible(e)&&dd(e,"__v_skip",!0),e}const Vo=e=>ft(e)?Nr(e):e,jr=e=>ft(e)?Fn(e):e;function St(e){return e?e.__v_isRef===!0:!1}function V(e){return Id(e,!1)}function ka(e){return Id(e,!0)}function Id(e,t){return St(e)?e:new am(e,t)}class am{constructor(t,o){this.dep=new Ca,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=o?t:Ke(t),this._value=o?t:Vo(t),this.__v_isShallow=o}get value(){return this.dep.track(),this._value}set value(t){const o=this._rawValue,n=this.__v_isShallow||ao(t)||sn(t);t=n?t:Ke(t),ln(t,o)&&(this._rawValue=t,this._value=n?t:Vo(t),this.dep.trigger())}}function cn(e){return St(e)?e.value:e}const sm={get:(e,t,o)=>t==="__v_raw"?e:cn(Reflect.get(e,t,o)),set:(e,t,o,n)=>{const r=e[t];return St(r)&&!St(o)?(r.value=o,!0):Reflect.set(e,t,o,n)}};function Od(e){return cr(e)?e:new Proxy(e,sm)}class cm{constructor(t,o,n){this._object=t,this._key=o,this._defaultValue=n,this.__v_isRef=!0,this._value=void 0,this._raw=Ke(t);let r=!0,i=t;if(!Be(t)||!Bi(String(o)))do r=!Gi(i)||ao(i);while(r&&(i=i.__v_raw));this._shallow=r}get value(){let t=this._object[this._key];return this._shallow&&(t=cn(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&&St(this._raw[this._key])){const o=this._object[this._key];if(St(o)){o.value=t;return}}this._object[this._key]=t}get dep(){return Wg(this._raw,this._key)}}class dm{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0,this._value=void 0}get value(){return this._value=this._getter()}}function Se(e,t,o){return St(e)?e:De(e)?new dm(e):ft(e)&&arguments.length>1?um(e,t,o):V(e)}function um(e,t,o){return new cm(e,t,o)}class fm{constructor(t,o,n){this.fn=t,this.setter=o,this._value=void 0,this.dep=new Ca(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Hr-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!o,this.isSSR=n}notify(){if(this.flags|=16,!(this.flags&8)&&ht!==this)return md(this,!0),!0}get value(){const t=this.dep.track();return yd(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function hm(e,t,o=!1){let n,r;return De(e)?n=e:(n=e.get,r=e.set),new fm(n,r,o)}const qi={},Xi=new WeakMap;let An;function pm(e,t=!1,o=An){if(o){let n=Xi.get(o);n||Xi.set(o,n=[]),n.push(e)}}function vm(e,t,o=dt){const{immediate:n,deep:r,once:i,scheduler:l,augmentJob:a,call:s}=o,c=C=>r?C:ao(C)||r===!1||r===0?Uo(C,1):Uo(C);let d,u,f,h,p=!1,g=!1;if(St(e)?(u=()=>e.value,p=ao(e)):cr(e)?(u=()=>c(e),p=!0):Be(e)?(g=!0,p=e.some(C=>cr(C)||ao(C)),u=()=>e.map(C=>{if(St(C))return C.value;if(cr(C))return c(C);if(De(C))return s?s(C,2):C()})):De(e)?t?u=s?()=>s(e,2):e:u=()=>{if(f){_o();try{f()}finally{ko()}}const C=An;An=d;try{return s?s(e,3,[h]):e(h)}finally{An=C}}:u=Ro,t&&r){const C=u,P=r===!0?1/0:r;u=()=>Uo(C(),P)}const b=Lg(),m=()=>{d.stop(),b&&b.active&&da(b.effects,d)};if(i&&t){const C=t;t=(...P)=>{C(...P),m()}}let x=g?new Array(e.length).fill(qi):qi;const w=C=>{if(!(!(d.flags&1)||!d.dirty&&!C))if(t){const P=d.run();if(r||p||(g?P.some((T,y)=>ln(T,x[y])):ln(P,x))){f&&f();const T=An;An=d;try{const y=[P,x===qi?void 0:g&&x[0]===qi?[]:x,h];x=P,s?s(t,3,y):t(...y)}finally{An=T}}}else d.run()};return a&&a(w),d=new vd(u),d.scheduler=l?()=>l(w,!1):w,h=C=>pm(C,!1,d),f=d.onStop=()=>{const C=Xi.get(d);if(C){if(s)s(C,4);else for(const P of C)P();Xi.delete(d)}},t?n?w(!0):x=d.run():l?l(w.bind(null,!0),!0):d.run(),m.pause=d.pause.bind(d),m.resume=d.resume.bind(d),m.stop=m,m}function Uo(e,t=1/0,o){if(t<=0||!ft(e)||e.__v_skip||(o=o||new Map,(o.get(e)||0)>=t))return e;if(o.set(e,t),t--,St(e))Uo(e.value,t,o);else if(Be(e))for(let n=0;n<e.length;n++)Uo(e[n],t,o);else if(ld(e)||ar(e))e.forEach(n=>{Uo(n,t,o)});else if(cd(e)){for(const n in e)Uo(e[n],t,o);for(const n of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,n)&&Uo(e[n],t,o)}return e}/**
|
||
* @vue/runtime-core v3.5.26
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/const Wr=[];let za=!1;function F2(e,...t){if(za)return;za=!0,_o();const o=Wr.length?Wr[Wr.length-1].component:null,n=o&&o.appContext.config.warnHandler,r=gm();if(n)dr(n,o,11,[e+t.map(i=>{var l,a;return(a=(l=i.toString)==null?void 0:l.call(i))!=null?a:JSON.stringify(i)}).join(""),o&&o.proxy,r.map(({vnode:i})=>`at <${Lu(o,i.type)}>`).join(`
|
||
`),r]);else{const i=[`[Vue warn]: ${e}`,...t];r.length&&i.push(`
|
||
`,...mm(r)),console.warn(...i)}ko(),za=!1}function gm(){let e=Wr[Wr.length-1];if(!e)return[];const t=[];for(;e;){const o=t[0];o&&o.vnode===e?o.recurseCount++:t.push({vnode:e,recurseCount:0});const n=e.component&&e.component.parent;e=n&&n.vnode}return t}function mm(e){const t=[];return e.forEach((o,n)=>{t.push(...n===0?[]:[`
|
||
`],...bm(o))}),t}function bm({vnode:e,recurseCount:t}){const o=t>0?`... (${t} recursive calls)`:"",n=e.component?e.component.parent==null:!1,r=` at <${Lu(e.component,e.type,n)}`,i=">"+o;return e.props?[r,...xm(e.props),i]:[r+i]}function xm(e){const t=[],o=Object.keys(e);return o.slice(0,3).forEach(n=>{t.push(...Md(n,e[n]))}),o.length>3&&t.push(" ..."),t}function Md(e,t,o){return Ct(t)?(t=JSON.stringify(t),o?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?o?t:[`${e}=${t}`]:St(t)?(t=Md(e,Ke(t.value),!0),o?t:[`${e}=Ref<`,t,">"]):De(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Ke(t),o?t:[`${e}=`,t])}function dr(e,t,o,n){try{return n?e(...n):e()}catch(r){Yi(r,t,o)}}function go(e,t,o,n){if(De(e)){const r=dr(e,t,o,n);return r&&ad(r)&&r.catch(i=>{Yi(i,t,o)}),r}if(Be(e)){const r=[];for(let i=0;i<e.length;i++)r.push(go(e[i],t,o,n));return r}}function Yi(e,t,o,n=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:l}=t&&t.appContext.config||dt;if(t){let a=t.parent;const s=t.proxy,c=`https://vuejs.org/error-reference/#runtime-${o}`;for(;a;){const d=a.ec;if(d){for(let u=0;u<d.length;u++)if(d[u](e,s,c)===!1)return}a=a.parent}if(i){_o(),dr(i,null,10,[e,s,c]),ko();return}}ym(e,o,r,n,l)}function ym(e,t,o,n=!0,r=!1){if(r)throw e;console.error(e)}const Wt=[];let zo=-1;const ur=[];let dn=null,fr=0;const Bd=Promise.resolve();let Zi=null;function so(e){const t=Zi||Bd;return e?t.then(this?e.bind(this):e):t}function Cm(e){let t=zo+1,o=Wt.length;for(;t<o;){const n=t+o>>>1,r=Wt[n],i=Vr(r);i<e||i===e&&r.flags&2?t=n+1:o=n}return t}function Ta(e){if(!(e.flags&1)){const t=Vr(e),o=Wt[Wt.length-1];!o||!(e.flags&2)&&t>=Vr(o)?Wt.push(e):Wt.splice(Cm(t),0,e),e.flags|=1,Hd()}}function Hd(){Zi||(Zi=Bd.then(Nd))}function wm(e){Be(e)?ur.push(...e):dn&&e.id===-1?dn.splice(fr+1,0,e):e.flags&1||(ur.push(e),e.flags|=1),Hd()}function Dd(e,t,o=zo+1){for(;o<Wt.length;o++){const n=Wt[o];if(n&&n.flags&2){if(e&&n.id!==e.uid)continue;Wt.splice(o,1),o--,n.flags&4&&(n.flags&=-2),n(),n.flags&4||(n.flags&=-2)}}}function Ld(e){if(ur.length){const t=[...new Set(ur)].sort((o,n)=>Vr(o)-Vr(n));if(ur.length=0,dn){dn.push(...t);return}for(dn=t,fr=0;fr<dn.length;fr++){const o=dn[fr];o.flags&4&&(o.flags&=-2),o.flags&8||o(),o.flags&=-2}dn=null,fr=0}}const Vr=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Nd(e){try{for(zo=0;zo<Wt.length;zo++){const t=Wt[zo];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),dr(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;zo<Wt.length;zo++){const t=Wt[zo];t&&(t.flags&=-2)}zo=-1,Wt.length=0,Ld(),Zi=null,(Wt.length||ur.length)&&Nd()}}let Et=null,jd=null;function Ji(e){const t=Et;return Et=e,jd=e&&e.type.__scopeId||null,t}function mo(e,t=Et,o){if(!t||e._n)return e;const n=(...r)=>{n._d&&sl(-1);const i=Ji(t);let l;try{l=e(...r)}finally{Ji(i),n._d&&sl(1)}return l};return n._n=!0,n._c=!0,n._d=!0,n}function bo(e,t){if(Et===null)return e;const o=fl(Et),n=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,l,a,s=dt]=t[r];i&&(De(i)&&(i={mounted:i,updated:i}),i.deep&&Uo(l),n.push({dir:i,instance:o,value:l,oldValue:void 0,arg:a,modifiers:s}))}return e}function In(e,t,o,n){const r=e.dirs,i=t&&t.dirs;for(let l=0;l<r.length;l++){const a=r[l];i&&(a.oldValue=i[l].value);let s=a.dir[n];s&&(_o(),go(s,o,8,[e.el,a,e,t]),ko())}}function tt(e,t){if(Ht){let o=Ht.provides;const n=Ht.parent&&Ht.parent.provides;n===o&&(o=Ht.provides=Object.create(n)),o[e]=t}}function $e(e,t,o=!1){const n=Hn();if(n||pr){let r=pr?pr._context.provides:n?n.parent==null||n.ce?n.vnode.appContext&&n.vnode.appContext.provides:n.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return o&&De(t)?t.call(n&&n.proxy):t}}const Sm=Symbol.for("v-scx"),Rm=()=>$e(Sm);function Mt(e,t){return $a(e,null,t)}function st(e,t,o){return $a(e,t,o)}function $a(e,t,o=dt){const{immediate:n,deep:r,flush:i,once:l}=o,a=Rt({},o),s=t&&n||!t&&i!=="post";let c;if(oi){if(i==="sync"){const h=Rm();c=h.__watcherHandles||(h.__watcherHandles=[])}else if(!s){const h=()=>{};return h.stop=Ro,h.resume=Ro,h.pause=Ro,h}}const d=Ht;a.call=(h,p,g)=>go(h,d,p,g);let u=!1;i==="post"?a.scheduler=h=>{Ut(h,d&&d.suspense)}:i!=="sync"&&(u=!0,a.scheduler=(h,p)=>{p?h():Ta(h)}),a.augmentJob=h=>{t&&(h.flags|=4),u&&(h.flags|=2,d&&(h.id=d.uid,h.i=d))};const f=vm(e,t,a);return oi&&(c?c.push(f):s&&f()),f}function Pm(e,t,o){const n=this.proxy,r=Ct(e)?e.includes(".")?Wd(n,e):()=>n[e]:e.bind(n,n);let i;De(t)?i=t:(i=t.handler,o=t);const l=ti(this),a=$a(r,i.bind(n),o);return l(),a}function Wd(e,t){const o=t.split(".");return()=>{let n=e;for(let r=0;r<o.length&&n;r++)n=n[o[r]];return n}}const Vd=Symbol("_vte"),Ud=e=>e.__isTeleport,Ur=e=>e&&(e.disabled||e.disabled===""),Kd=e=>e&&(e.defer||e.defer===""),Gd=e=>typeof SVGElement<"u"&&e instanceof SVGElement,qd=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Ea=(e,t)=>{const o=e&&e.to;return Ct(o)?t?t(o):null:o},Xd={name:"Teleport",__isTeleport:!0,process(e,t,o,n,r,i,l,a,s,c){const{mc:d,pc:u,pbc:f,o:{insert:h,querySelector:p,createText:g,createComment:b}}=c,m=Ur(t.props);let{shapeFlag:x,children:w,dynamicChildren:C}=t;if(e==null){const P=t.el=g(""),T=t.anchor=g("");h(P,o,n),h(T,o,n);const y=(S,E)=>{x&16&&d(w,S,E,r,i,l,a,s)},B=()=>{const S=t.target=Ea(t.props,p),E=Yd(S,t,g,h);S&&(l!=="svg"&&Gd(S)?l="svg":l!=="mathml"&&qd(S)&&(l="mathml"),r&&r.isCE&&(r.ce._teleportTargets||(r.ce._teleportTargets=new Set)).add(S),m||(y(S,E),el(t,!1)))};m&&(y(o,T),el(t,!0)),Kd(t.props)?(t.el.__isMounted=!1,Ut(()=>{B(),delete t.el.__isMounted},i)):B()}else{if(Kd(t.props)&&e.el.__isMounted===!1){Ut(()=>{Xd.process(e,t,o,n,r,i,l,a,s,c)},i);return}t.el=e.el,t.targetStart=e.targetStart;const P=t.anchor=e.anchor,T=t.target=e.target,y=t.targetAnchor=e.targetAnchor,B=Ur(e.props),S=B?o:T,E=B?P:y;if(l==="svg"||Gd(T)?l="svg":(l==="mathml"||qd(T))&&(l="mathml"),C?(f(e.dynamicChildren,C,S,r,i,l,a),Va(e,t,!0)):s||u(e,t,S,E,r,i,l,a,!1),m)B?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Qi(t,o,P,c,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const j=t.target=Ea(t.props,p);j&&Qi(t,j,null,c,0)}else B&&Qi(t,T,y,c,1);el(t,m)}},remove(e,t,o,{um:n,o:{remove:r}},i){const{shapeFlag:l,children:a,anchor:s,targetStart:c,targetAnchor:d,target:u,props:f}=e;if(u&&(r(c),r(d)),i&&r(s),l&16){const h=i||!Ur(f);for(let p=0;p<a.length;p++){const g=a[p];n(g,t,o,h,!!g.dynamicChildren)}}},move:Qi,hydrate:_m};function Qi(e,t,o,{o:{insert:n},m:r},i=2){i===0&&n(e.targetAnchor,t,o);const{el:l,anchor:a,shapeFlag:s,children:c,props:d}=e,u=i===2;if(u&&n(l,t,o),(!u||Ur(d))&&s&16)for(let f=0;f<c.length;f++)r(c[f],t,o,2);u&&n(a,t,o)}function _m(e,t,o,n,r,i,{o:{nextSibling:l,parentNode:a,querySelector:s,insert:c,createText:d}},u){function f(g,b,m,x){b.anchor=u(l(g),b,a(g),o,n,r,i),b.targetStart=m,b.targetAnchor=x}const h=t.target=Ea(t.props,s),p=Ur(t.props);if(h){const g=h._lpa||h.firstChild;if(t.shapeFlag&16)if(p)f(e,t,g,g&&l(g));else{t.anchor=l(e);let b=g;for(;b;){if(b&&b.nodeType===8){if(b.data==="teleport start anchor")t.targetStart=b;else if(b.data==="teleport anchor"){t.targetAnchor=b,h._lpa=t.targetAnchor&&l(t.targetAnchor);break}}b=l(b)}t.targetAnchor||Yd(h,t,d,c),u(g&&l(g),t,h,o,n,r,i)}el(t,p)}else p&&t.shapeFlag&16&&f(e,t,e,l(e));return t.anchor&&l(t.anchor)}const km=Xd;function el(e,t){const o=e.ctx;if(o&&o.ut){let n,r;for(t?(n=e.el,r=e.anchor):(n=e.targetStart,r=e.targetAnchor);n&&n!==r;)n.nodeType===1&&n.setAttribute("data-v-owner",o.uid),n=n.nextSibling;o.ut()}}function Yd(e,t,o,n){const r=t.targetStart=o(""),i=t.targetAnchor=o("");return r[Vd]=i,e&&(n(r,e),n(i,e)),i}const Ko=Symbol("_leaveCb"),tl=Symbol("_enterCb");function Zd(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Bt(()=>{e.isMounted=!0}),Ft(()=>{e.isUnmounting=!0}),e}const co=[Function,Array],Jd={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:co,onEnter:co,onAfterEnter:co,onEnterCancelled:co,onBeforeLeave:co,onLeave:co,onAfterLeave:co,onLeaveCancelled:co,onBeforeAppear:co,onAppear:co,onAfterAppear:co,onAppearCancelled:co},Qd=e=>{const t=e.subTree;return t.component?Qd(t.component):t},zm={name:"BaseTransition",props:Jd,setup(e,{slots:t}){const o=Hn(),n=Zd();return()=>{const r=t.default&&Aa(t.default(),!0);if(!r||!r.length)return;const i=eu(r),l=Ke(e),{mode:a}=l;if(n.isLeaving)return Fa(i);const s=ou(i);if(!s)return Fa(i);let c=Kr(s,l,n,o,u=>c=u);s.type!==Pt&&On(s,c);let d=o.subTree&&ou(o.subTree);if(d&&d.type!==Pt&&!Bn(d,s)&&Qd(o).type!==Pt){let u=Kr(d,l,n,o);if(On(d,u),a==="out-in"&&s.type!==Pt)return n.isLeaving=!0,u.afterLeave=()=>{n.isLeaving=!1,o.job.flags&8||o.update(),delete u.afterLeave,d=void 0},Fa(i);a==="in-out"&&s.type!==Pt?u.delayLeave=(f,h,p)=>{const g=tu(n,d);g[String(d.key)]=d,f[Ko]=()=>{h(),f[Ko]=void 0,delete c.delayedLeave,d=void 0},c.delayedLeave=()=>{p(),delete c.delayedLeave,d=void 0}}:d=void 0}else d&&(d=void 0);return i}}};function eu(e){let t=e[0];if(e.length>1){for(const o of e)if(o.type!==Pt){t=o;break}}return t}const Tm=zm;function tu(e,t){const{leavingVNodes:o}=e;let n=o.get(t.type);return n||(n=Object.create(null),o.set(t.type,n)),n}function Kr(e,t,o,n,r){const{appear:i,mode:l,persisted:a=!1,onBeforeEnter:s,onEnter:c,onAfterEnter:d,onEnterCancelled:u,onBeforeLeave:f,onLeave:h,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:b,onAppear:m,onAfterAppear:x,onAppearCancelled:w}=t,C=String(e.key),P=tu(o,e),T=(S,E)=>{S&&go(S,n,9,E)},y=(S,E)=>{const j=E[1];T(S,E),Be(S)?S.every(_=>_.length<=1)&&j():S.length<=1&&j()},B={mode:l,persisted:a,beforeEnter(S){let E=s;if(!o.isMounted)if(i)E=b||s;else return;S[Ko]&&S[Ko](!0);const j=P[C];j&&Bn(e,j)&&j.el[Ko]&&j.el[Ko](),T(E,[S])},enter(S){let E=c,j=d,_=u;if(!o.isMounted)if(i)E=m||c,j=x||d,_=w||u;else return;let M=!1;const W=S[tl]=D=>{M||(M=!0,D?T(_,[S]):T(j,[S]),B.delayedLeave&&B.delayedLeave(),S[tl]=void 0)};E?y(E,[S,W]):W()},leave(S,E){const j=String(e.key);if(S[tl]&&S[tl](!0),o.isUnmounting)return E();T(f,[S]);let _=!1;const M=S[Ko]=W=>{_||(_=!0,E(),W?T(g,[S]):T(p,[S]),S[Ko]=void 0,P[j]===e&&delete P[j])};P[j]=e,h?y(h,[S,M]):M()},clone(S){const E=Kr(S,t,o,n,r);return r&&r(E),E}};return B}function Fa(e){if(nl(e))return e=qo(e),e.children=null,e}function ou(e){if(!nl(e))return Ud(e.type)&&e.children?eu(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:o}=e;if(o){if(t&16)return o[0];if(t&32&&De(o.default))return o.default()}}function On(e,t){e.shapeFlag&6&&e.component?(e.transition=t,On(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 Aa(e,t=!1,o){let n=[],r=0;for(let i=0;i<e.length;i++){let l=e[i];const a=o==null?l.key:String(o)+String(l.key!=null?l.key:i);l.type===it?(l.patchFlag&128&&r++,n=n.concat(Aa(l.children,t,a))):(t||l.type!==Pt)&&n.push(a!=null?qo(l,{key:a}):l)}if(r>1)for(let i=0;i<n.length;i++)n[i].patchFlag=-2;return n}function ve(e,t){return De(e)?Rt({name:e.name},t,{setup:e}):e}function nu(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}const ol=new WeakMap;function Gr(e,t,o,n,r=!1){if(Be(e)){e.forEach((p,g)=>Gr(p,t&&(Be(t)?t[g]:t),o,n,r));return}if(hr(n)&&!r){n.shapeFlag&512&&n.type.__asyncResolved&&n.component.subTree.component&&Gr(e,t,o,n.component.subTree);return}const i=n.shapeFlag&4?fl(n.component):n.el,l=r?null:i,{i:a,r:s}=e,c=t&&t.r,d=a.refs===dt?a.refs={}:a.refs,u=a.setupState,f=Ke(u),h=u===dt?id:p=>rt(f,p);if(c!=null&&c!==s){if(ru(t),Ct(c))d[c]=null,h(c)&&(u[c]=null);else if(St(c)){c.value=null;const p=t;p.k&&(d[p.k]=null)}}if(De(s))dr(s,a,12,[l,d]);else{const p=Ct(s),g=St(s);if(p||g){const b=()=>{if(e.f){const m=p?h(s)?u[s]:d[s]:s.value;if(r)Be(m)&&da(m,i);else if(Be(m))m.includes(i)||m.push(i);else if(p)d[s]=[i],h(s)&&(u[s]=d[s]);else{const x=[i];s.value=x,e.k&&(d[e.k]=x)}}else p?(d[s]=l,h(s)&&(u[s]=l)):g&&(s.value=l,e.k&&(d[e.k]=l))};if(l){const m=()=>{b(),ol.delete(e)};m.id=-1,ol.set(e,m),Ut(m,o)}else ru(e),b()}}}function ru(e){const t=ol.get(e);t&&(t.flags|=8,ol.delete(e))}Ni().requestIdleCallback,Ni().cancelIdleCallback;const hr=e=>!!e.type.__asyncLoader,nl=e=>e.type.__isKeepAlive;function Ia(e,t){iu(e,"a",t)}function rl(e,t){iu(e,"da",t)}function iu(e,t,o=Ht){const n=e.__wdc||(e.__wdc=()=>{let r=o;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(il(t,n,o),o){let r=o.parent;for(;r&&r.parent;)nl(r.parent.vnode)&&$m(n,t,o,r),r=r.parent}}function $m(e,t,o,n){const r=il(t,e,n,!0);Oa(()=>{da(n[t],r)},o)}function il(e,t,o=Ht,n=!1){if(o){const r=o[e]||(o[e]=[]),i=t.__weh||(t.__weh=(...l)=>{_o();const a=ti(o),s=go(t,o,e,l);return a(),ko(),s});return n?r.unshift(i):r.push(i),i}}const Go=e=>(t,o=Ht)=>{(!oi||e==="sp")&&il(e,(...n)=>t(...n),o)},qr=Go("bm"),Bt=Go("m"),Em=Go("bu"),lu=Go("u"),Ft=Go("bum"),Oa=Go("um"),Fm=Go("sp"),Am=Go("rtg"),Im=Go("rtc");function Om(e,t=Ht){il("ec",e,t)}const Mm="components";function Bm(e,t){return Dm(Mm,e,!0,t)||e}const Hm=Symbol.for("v-ndc");function Dm(e,t,o=!0,n=!1){const r=Et||Ht;if(r){const i=r.type;{const a=Du(i,!1);if(a&&(a===t||a===lo(t)||a===Di(lo(t))))return i}const l=au(r[e]||i[e],t)||au(r.appContext[e],t);return!l&&n?i:l}}function au(e,t){return e&&(e[t]||e[lo(t)]||e[Di(lo(t))])}function su(e,t,o={},n,r){if(Et.ce||Et.parent&&hr(Et.parent)&&Et.parent.ce){const c=Object.keys(o).length>0;return _t(),cl(it,null,[lt("slot",o,n)],c?-2:64)}let i=e[t];i&&i._c&&(i._d=!1),_t();const l=i&&cu(i(o)),a=o.key||l&&l.key,s=cl(it,{key:(a&&!No(a)?a:`_${t}`)+(!l&&n?"_fb":"")},l||[],l&&e._===1?64:-2);return s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),i&&i._c&&(i._d=!0),s}function cu(e){return e.some(t=>vr(t)?!(t.type===Pt||t.type===it&&!cu(t.children)):!0)?e:null}const Ma=e=>e?Mu(e)?fl(e):Ma(e.parent):null,Xr=Rt(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=>Ma(e.parent),$root:e=>Ma(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>hu(e),$forceUpdate:e=>e.f||(e.f=()=>{Ta(e.update)}),$nextTick:e=>e.n||(e.n=so.bind(e.proxy)),$watch:e=>Pm.bind(e)}),Ba=(e,t)=>e!==dt&&!e.__isScriptSetup&&rt(e,t),Lm={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:o,setupState:n,data:r,props:i,accessCache:l,type:a,appContext:s}=e;if(t[0]!=="$"){const f=l[t];if(f!==void 0)switch(f){case 1:return n[t];case 2:return r[t];case 4:return o[t];case 3:return i[t]}else{if(Ba(n,t))return l[t]=1,n[t];if(r!==dt&&rt(r,t))return l[t]=2,r[t];if(rt(i,t))return l[t]=3,i[t];if(o!==dt&&rt(o,t))return l[t]=4,o[t];Ha&&(l[t]=0)}}const c=Xr[t];let d,u;if(c)return t==="$attrs"&&Ot(e.attrs,"get",""),c(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(o!==dt&&rt(o,t))return l[t]=4,o[t];if(u=s.config.globalProperties,rt(u,t))return u[t]},set({_:e},t,o){const{data:n,setupState:r,ctx:i}=e;return Ba(r,t)?(r[t]=o,!0):n!==dt&&rt(n,t)?(n[t]=o,!0):rt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=o,!0)},has({_:{data:e,setupState:t,accessCache:o,ctx:n,appContext:r,props:i,type:l}},a){let s;return!!(o[a]||e!==dt&&a[0]!=="$"&&rt(e,a)||Ba(t,a)||rt(i,a)||rt(n,a)||rt(Xr,a)||rt(r.config.globalProperties,a)||(s=l.__cssModules)&&s[a])},defineProperty(e,t,o){return o.get!=null?e._.accessCache[t]=0:rt(o,"value")&&this.set(e,t,o.value,null),Reflect.defineProperty(e,t,o)}};function du(e){return Be(e)?e.reduce((t,o)=>(t[o]=null,t),{}):e}let Ha=!0;function Nm(e){const t=hu(e),o=e.proxy,n=e.ctx;Ha=!1,t.beforeCreate&&uu(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:l,watch:a,provide:s,inject:c,created:d,beforeMount:u,mounted:f,beforeUpdate:h,updated:p,activated:g,deactivated:b,beforeDestroy:m,beforeUnmount:x,destroyed:w,unmounted:C,render:P,renderTracked:T,renderTriggered:y,errorCaptured:B,serverPrefetch:S,expose:E,inheritAttrs:j,components:_,directives:M,filters:W}=t;if(c&&jm(c,n,null),l)for(const U in l){const J=l[U];De(J)&&(n[U]=J.bind(o))}if(r){const U=r.call(o,o);ft(U)&&(e.data=Nr(U))}if(Ha=!0,i)for(const U in i){const J=i[U],pe=De(J)?J.bind(o,o):De(J.get)?J.get.bind(o,o):Ro,fe=!De(J)&&De(J.set)?J.set.bind(o):Ro,N=F({get:pe,set:fe});Object.defineProperty(n,U,{enumerable:!0,configurable:!0,get:()=>N.value,set:O=>N.value=O})}if(a)for(const U in a)fu(a[U],n,o,U);if(s){const U=De(s)?s.call(o):s;Reflect.ownKeys(U).forEach(J=>{tt(J,U[J])})}d&&uu(d,e,"c");function Z(U,J){Be(J)?J.forEach(pe=>U(pe.bind(o))):J&&U(J.bind(o))}if(Z(qr,u),Z(Bt,f),Z(Em,h),Z(lu,p),Z(Ia,g),Z(rl,b),Z(Om,B),Z(Im,T),Z(Am,y),Z(Ft,x),Z(Oa,C),Z(Fm,S),Be(E))if(E.length){const U=e.exposed||(e.exposed={});E.forEach(J=>{Object.defineProperty(U,J,{get:()=>o[J],set:pe=>o[J]=pe,enumerable:!0})})}else e.exposed||(e.exposed={});P&&e.render===Ro&&(e.render=P),j!=null&&(e.inheritAttrs=j),_&&(e.components=_),M&&(e.directives=M),S&&nu(e)}function jm(e,t,o=Ro){Be(e)&&(e=Da(e));for(const n in e){const r=e[n];let i;ft(r)?"default"in r?i=$e(r.from||n,r.default,!0):i=$e(r.from||n):i=$e(r),St(i)?Object.defineProperty(t,n,{enumerable:!0,configurable:!0,get:()=>i.value,set:l=>i.value=l}):t[n]=i}}function uu(e,t,o){go(Be(e)?e.map(n=>n.bind(t.proxy)):e.bind(t.proxy),t,o)}function fu(e,t,o,n){let r=n.includes(".")?Wd(o,n):()=>o[n];if(Ct(e)){const i=t[e];De(i)&&st(r,i)}else if(De(e))st(r,e.bind(o));else if(ft(e))if(Be(e))e.forEach(i=>fu(i,t,o,n));else{const i=De(e.handler)?e.handler.bind(o):t[e.handler];De(i)&&st(r,i,e)}}function hu(e){const t=e.type,{mixins:o,extends:n}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:l}}=e.appContext,a=i.get(t);let s;return a?s=a:!r.length&&!o&&!n?s=t:(s={},r.length&&r.forEach(c=>ll(s,c,l,!0)),ll(s,t,l)),ft(t)&&i.set(t,s),s}function ll(e,t,o,n=!1){const{mixins:r,extends:i}=t;i&&ll(e,i,o,!0),r&&r.forEach(l=>ll(e,l,o,!0));for(const l in t)if(!(n&&l==="expose")){const a=Wm[l]||o&&o[l];e[l]=a?a(e[l],t[l]):t[l]}return e}const Wm={data:pu,props:vu,emits:vu,methods:Yr,computed:Yr,beforeCreate:Vt,created:Vt,beforeMount:Vt,mounted:Vt,beforeUpdate:Vt,updated:Vt,beforeDestroy:Vt,beforeUnmount:Vt,destroyed:Vt,unmounted:Vt,activated:Vt,deactivated:Vt,errorCaptured:Vt,serverPrefetch:Vt,components:Yr,directives:Yr,watch:Um,provide:pu,inject:Vm};function pu(e,t){return t?e?function(){return Rt(De(e)?e.call(this,this):e,De(t)?t.call(this,this):t)}:t:e}function Vm(e,t){return Yr(Da(e),Da(t))}function Da(e){if(Be(e)){const t={};for(let o=0;o<e.length;o++)t[e[o]]=e[o];return t}return e}function Vt(e,t){return e?[...new Set([].concat(e,t))]:t}function Yr(e,t){return e?Rt(Object.create(null),e,t):t}function vu(e,t){return e?Be(e)&&Be(t)?[...new Set([...e,...t])]:Rt(Object.create(null),du(e),du(t??{})):t}function Um(e,t){if(!e)return t;if(!t)return e;const o=Rt(Object.create(null),e);for(const n in t)o[n]=Vt(e[n],t[n]);return o}function gu(){return{app:null,config:{isNativeTag:id,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Km=0;function Gm(e,t){return function(n,r=null){De(n)||(n=Rt({},n)),r!=null&&!ft(r)&&(r=null);const i=gu(),l=new WeakSet,a=[];let s=!1;const c=i.app={_uid:Km++,_component:n,_props:r,_container:null,_context:i,_instance:null,version:Pb,get config(){return i.config},set config(d){},use(d,...u){return l.has(d)||(d&&De(d.install)?(l.add(d),d.install(c,...u)):De(d)&&(l.add(d),d(c,...u))),c},mixin(d){return i.mixins.includes(d)||i.mixins.push(d),c},component(d,u){return u?(i.components[d]=u,c):i.components[d]},directive(d,u){return u?(i.directives[d]=u,c):i.directives[d]},mount(d,u,f){if(!s){const h=c._ceVNode||lt(n,r);return h.appContext=i,f===!0?f="svg":f===!1&&(f=void 0),e(h,d,f),s=!0,c._container=d,d.__vue_app__=c,fl(h.component)}},onUnmount(d){a.push(d)},unmount(){s&&(go(a,c._instance,16),e(null,c._container),delete c._container.__vue_app__)},provide(d,u){return i.provides[d]=u,c},runWithContext(d){const u=pr;pr=c;try{return d()}finally{pr=u}}};return c}}let pr=null;const qm=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${lo(t)}Modifiers`]||e[`${$n(t)}Modifiers`];function Xm(e,t,...o){if(e.isUnmounted)return;const n=e.vnode.props||dt;let r=o;const i=t.startsWith("update:"),l=i&&qm(n,t.slice(7));l&&(l.trim&&(r=o.map(d=>Ct(d)?d.trim():d)),l.number&&(r=o.map(fa)));let a,s=n[a=ua(t)]||n[a=ua(lo(t))];!s&&i&&(s=n[a=ua($n(t))]),s&&go(s,e,6,r);const c=n[a+"Once"];if(c){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,go(c,e,6,r)}}const Ym=new WeakMap;function mu(e,t,o=!1){const n=o?Ym:t.emitsCache,r=n.get(e);if(r!==void 0)return r;const i=e.emits;let l={},a=!1;if(!De(e)){const s=c=>{const d=mu(c,t,!0);d&&(a=!0,Rt(l,d))};!o&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!a?(ft(e)&&n.set(e,null),null):(Be(i)?i.forEach(s=>l[s]=null):Rt(l,i),ft(e)&&n.set(e,l),l)}function al(e,t){return!e||!Oi(t)?!1:(t=t.slice(2).replace(/Once$/,""),rt(e,t[0].toLowerCase()+t.slice(1))||rt(e,$n(t))||rt(e,t))}function A2(){}function bu(e){const{type:t,vnode:o,proxy:n,withProxy:r,propsOptions:[i],slots:l,attrs:a,emit:s,render:c,renderCache:d,props:u,data:f,setupState:h,ctx:p,inheritAttrs:g}=e,b=Ji(e);let m,x;try{if(o.shapeFlag&4){const C=r||n,P=C;m=To(c.call(P,C,d,u,h,f,p)),x=a}else{const C=t;m=To(C.length>1?C(u,{attrs:a,slots:l,emit:s}):C(u,null)),x=t.props?a:Zm(a)}}catch(C){Jr.length=0,Yi(C,e,1),m=lt(Pt)}let w=m;if(x&&g!==!1){const C=Object.keys(x),{shapeFlag:P}=w;C.length&&P&7&&(i&&C.some(ca)&&(x=Jm(x,i)),w=qo(w,x,!1,!0))}return o.dirs&&(w=qo(w,null,!1,!0),w.dirs=w.dirs?w.dirs.concat(o.dirs):o.dirs),o.transition&&On(w,o.transition),m=w,Ji(b),m}const Zm=e=>{let t;for(const o in e)(o==="class"||o==="style"||Oi(o))&&((t||(t={}))[o]=e[o]);return t},Jm=(e,t)=>{const o={};for(const n in e)(!ca(n)||!(n.slice(9)in t))&&(o[n]=e[n]);return o};function Qm(e,t,o){const{props:n,children:r,component:i}=e,{props:l,children:a,patchFlag:s}=t,c=i.emitsOptions;if(t.dirs||t.transition)return!0;if(o&&s>=0){if(s&1024)return!0;if(s&16)return n?xu(n,l,c):!!l;if(s&8){const d=t.dynamicProps;for(let u=0;u<d.length;u++){const f=d[u];if(l[f]!==n[f]&&!al(c,f))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:n===l?!1:n?l?xu(n,l,c):!0:!!l;return!1}function xu(e,t,o){const n=Object.keys(t);if(n.length!==Object.keys(e).length)return!0;for(let r=0;r<n.length;r++){const i=n[r];if(t[i]!==e[i]&&!al(o,i))return!0}return!1}function eb({vnode:e,parent:t},o){for(;t;){const n=t.subTree;if(n.suspense&&n.suspense.activeBranch===e&&(n.el=e.el),n===e)(e=t.vnode).el=o,t=t.parent;else break}}const yu={},Cu=()=>Object.create(yu),wu=e=>Object.getPrototypeOf(e)===yu;function tb(e,t,o,n=!1){const r={},i=Cu();e.propsDefaults=Object.create(null),Su(e,t,r,i);for(const l in e.propsOptions[0])l in r||(r[l]=void 0);o?e.props=n?r:Ad(r):e.type.props?e.props=r:e.props=i,e.attrs=i}function ob(e,t,o,n){const{props:r,attrs:i,vnode:{patchFlag:l}}=e,a=Ke(r),[s]=e.propsOptions;let c=!1;if((n||l>0)&&!(l&16)){if(l&8){const d=e.vnode.dynamicProps;for(let u=0;u<d.length;u++){let f=d[u];if(al(e.emitsOptions,f))continue;const h=t[f];if(s)if(rt(i,f))h!==i[f]&&(i[f]=h,c=!0);else{const p=lo(f);r[p]=La(s,a,p,h,e,!1)}else h!==i[f]&&(i[f]=h,c=!0)}}}else{Su(e,t,r,i)&&(c=!0);let d;for(const u in a)(!t||!rt(t,u)&&((d=$n(u))===u||!rt(t,d)))&&(s?o&&(o[u]!==void 0||o[d]!==void 0)&&(r[u]=La(s,a,u,void 0,e,!0)):delete r[u]);if(i!==a)for(const u in i)(!t||!rt(t,u))&&(delete i[u],c=!0)}c&&jo(e.attrs,"set","")}function Su(e,t,o,n){const[r,i]=e.propsOptions;let l=!1,a;if(t)for(let s in t){if(Or(s))continue;const c=t[s];let d;r&&rt(r,d=lo(s))?!i||!i.includes(d)?o[d]=c:(a||(a={}))[d]=c:al(e.emitsOptions,s)||(!(s in n)||c!==n[s])&&(n[s]=c,l=!0)}if(i){const s=Ke(o),c=a||dt;for(let d=0;d<i.length;d++){const u=i[d];o[u]=La(r,s,u,c[u],e,!rt(c,u))}}return l}function La(e,t,o,n,r,i){const l=e[o];if(l!=null){const a=rt(l,"default");if(a&&n===void 0){const s=l.default;if(l.type!==Function&&!l.skipFactory&&De(s)){const{propsDefaults:c}=r;if(o in c)n=c[o];else{const d=ti(r);n=c[o]=s.call(null,t),d()}}else n=s;r.ce&&r.ce._setProp(o,n)}l[0]&&(i&&!a?n=!1:l[1]&&(n===""||n===$n(o))&&(n=!0))}return n}const nb=new WeakMap;function Ru(e,t,o=!1){const n=o?nb:t.propsCache,r=n.get(e);if(r)return r;const i=e.props,l={},a=[];let s=!1;if(!De(e)){const d=u=>{s=!0;const[f,h]=Ru(u,t,!0);Rt(l,f),h&&a.push(...h)};!o&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!i&&!s)return ft(e)&&n.set(e,lr),lr;if(Be(i))for(let d=0;d<i.length;d++){const u=lo(i[d]);Pu(u)&&(l[u]=dt)}else if(i)for(const d in i){const u=lo(d);if(Pu(u)){const f=i[d],h=l[u]=Be(f)||De(f)?{type:f}:Rt({},f),p=h.type;let g=!1,b=!0;if(Be(p))for(let m=0;m<p.length;++m){const x=p[m],w=De(x)&&x.name;if(w==="Boolean"){g=!0;break}else w==="String"&&(b=!1)}else g=De(p)&&p.name==="Boolean";h[0]=g,h[1]=b,(g||rt(h,"default"))&&a.push(u)}}const c=[l,a];return ft(e)&&n.set(e,c),c}function Pu(e){return e[0]!=="$"&&!Or(e)}const Na=e=>e==="_"||e==="_ctx"||e==="$stable",ja=e=>Be(e)?e.map(To):[To(e)],rb=(e,t,o)=>{if(t._n)return t;const n=mo((...r)=>ja(t(...r)),o);return n._c=!1,n},_u=(e,t,o)=>{const n=e._ctx;for(const r in e){if(Na(r))continue;const i=e[r];if(De(i))t[r]=rb(r,i,n);else if(i!=null){const l=ja(i);t[r]=()=>l}}},ku=(e,t)=>{const o=ja(t);e.slots.default=()=>o},zu=(e,t,o)=>{for(const n in t)(o||!Na(n))&&(e[n]=t[n])},ib=(e,t,o)=>{const n=e.slots=Cu();if(e.vnode.shapeFlag&32){const r=t._;r?(zu(n,t,o),o&&dd(n,"_",r,!0)):_u(t,n)}else t&&ku(e,t)},lb=(e,t,o)=>{const{vnode:n,slots:r}=e;let i=!0,l=dt;if(n.shapeFlag&32){const a=t._;a?o&&a===1?i=!1:zu(r,t,o):(i=!t.$stable,_u(t,r)),l=t}else t&&(ku(e,t),l={default:1});if(i)for(const a in r)!Na(a)&&l[a]==null&&delete r[a]},Ut=ub;function ab(e){return sb(e)}function sb(e,t){const o=Ni();o.__VUE__=!0;const{insert:n,remove:r,patchProp:i,createElement:l,createText:a,createComment:s,setText:c,setElementText:d,parentNode:u,nextSibling:f,setScopeId:h=Ro,insertStaticContent:p}=e,g=(k,$,K,ie=null,le=null,re=null,xe=void 0,ne=null,te=!!$.dynamicChildren)=>{if(k===$)return;k&&!Bn(k,$)&&(ie=X(k),O(k,le,re,!0),k=null),$.patchFlag===-2&&(te=!1,$.dynamicChildren=null);const{type:oe,ref:ye,shapeFlag:be}=$;switch(oe){case Zr:b(k,$,K,ie);break;case Pt:m(k,$,K,ie);break;case Ua:k==null&&x($,K,ie,xe);break;case it:_(k,$,K,ie,le,re,xe,ne,te);break;default:be&1?P(k,$,K,ie,le,re,xe,ne,te):be&6?M(k,$,K,ie,le,re,xe,ne,te):(be&64||be&128)&&oe.process(k,$,K,ie,le,re,xe,ne,te,ae)}ye!=null&&le?Gr(ye,k&&k.ref,re,$||k,!$):ye==null&&k&&k.ref!=null&&Gr(k.ref,null,re,k,!0)},b=(k,$,K,ie)=>{if(k==null)n($.el=a($.children),K,ie);else{const le=$.el=k.el;$.children!==k.children&&c(le,$.children)}},m=(k,$,K,ie)=>{k==null?n($.el=s($.children||""),K,ie):$.el=k.el},x=(k,$,K,ie)=>{[k.el,k.anchor]=p(k.children,$,K,ie,k.el,k.anchor)},w=({el:k,anchor:$},K,ie)=>{let le;for(;k&&k!==$;)le=f(k),n(k,K,ie),k=le;n($,K,ie)},C=({el:k,anchor:$})=>{let K;for(;k&&k!==$;)K=f(k),r(k),k=K;r($)},P=(k,$,K,ie,le,re,xe,ne,te)=>{if($.type==="svg"?xe="svg":$.type==="math"&&(xe="mathml"),k==null)T($,K,ie,le,re,xe,ne,te);else{const oe=k.el&&k.el._isVueCE?k.el:null;try{oe&&oe._beginPatch(),S(k,$,le,re,xe,ne,te)}finally{oe&&oe._endPatch()}}},T=(k,$,K,ie,le,re,xe,ne)=>{let te,oe;const{props:ye,shapeFlag:be,transition:ee,dirs:se}=k;if(te=k.el=l(k.type,re,ye&&ye.is,ye),be&8?d(te,k.children):be&16&&B(k.children,te,null,ie,le,Wa(k,re),xe,ne),se&&In(k,null,ie,"created"),y(te,k,k.scopeId,xe,ie),ye){for(const Me in ye)Me!=="value"&&!Or(Me)&&i(te,Me,null,ye[Me],re,ie);"value"in ye&&i(te,"value",null,ye.value,re),(oe=ye.onVnodeBeforeMount)&&$o(oe,ie,k)}se&&In(k,null,ie,"beforeMount");const ke=cb(le,ee);ke&&ee.beforeEnter(te),n(te,$,K),((oe=ye&&ye.onVnodeMounted)||ke||se)&&Ut(()=>{oe&&$o(oe,ie,k),ke&&ee.enter(te),se&&In(k,null,ie,"mounted")},le)},y=(k,$,K,ie,le)=>{if(K&&h(k,K),ie)for(let re=0;re<ie.length;re++)h(k,ie[re]);if(le){let re=le.subTree;if($===re||Fu(re.type)&&(re.ssContent===$||re.ssFallback===$)){const xe=le.vnode;y(k,xe,xe.scopeId,xe.slotScopeIds,le.parent)}}},B=(k,$,K,ie,le,re,xe,ne,te=0)=>{for(let oe=te;oe<k.length;oe++){const ye=k[oe]=ne?fn(k[oe]):To(k[oe]);g(null,ye,$,K,ie,le,re,xe,ne)}},S=(k,$,K,ie,le,re,xe)=>{const ne=$.el=k.el;let{patchFlag:te,dynamicChildren:oe,dirs:ye}=$;te|=k.patchFlag&16;const be=k.props||dt,ee=$.props||dt;let se;if(K&&Mn(K,!1),(se=ee.onVnodeBeforeUpdate)&&$o(se,K,$,k),ye&&In($,k,K,"beforeUpdate"),K&&Mn(K,!0),(be.innerHTML&&ee.innerHTML==null||be.textContent&&ee.textContent==null)&&d(ne,""),oe?E(k.dynamicChildren,oe,ne,K,ie,Wa($,le),re):xe||J(k,$,ne,null,K,ie,Wa($,le),re,!1),te>0){if(te&16)j(ne,be,ee,K,le);else if(te&2&&be.class!==ee.class&&i(ne,"class",null,ee.class,le),te&4&&i(ne,"style",be.style,ee.style,le),te&8){const ke=$.dynamicProps;for(let Me=0;Me<ke.length;Me++){const He=ke[Me],Qe=be[He],Ve=ee[He];(Ve!==Qe||He==="value")&&i(ne,He,Qe,Ve,le,K)}}te&1&&k.children!==$.children&&d(ne,$.children)}else!xe&&oe==null&&j(ne,be,ee,K,le);((se=ee.onVnodeUpdated)||ye)&&Ut(()=>{se&&$o(se,K,$,k),ye&&In($,k,K,"updated")},ie)},E=(k,$,K,ie,le,re,xe)=>{for(let ne=0;ne<$.length;ne++){const te=k[ne],oe=$[ne],ye=te.el&&(te.type===it||!Bn(te,oe)||te.shapeFlag&198)?u(te.el):K;g(te,oe,ye,null,ie,le,re,xe,!0)}},j=(k,$,K,ie,le)=>{if($!==K){if($!==dt)for(const re in $)!Or(re)&&!(re in K)&&i(k,re,$[re],null,le,ie);for(const re in K){if(Or(re))continue;const xe=K[re],ne=$[re];xe!==ne&&re!=="value"&&i(k,re,ne,xe,le,ie)}"value"in K&&i(k,"value",$.value,K.value,le)}},_=(k,$,K,ie,le,re,xe,ne,te)=>{const oe=$.el=k?k.el:a(""),ye=$.anchor=k?k.anchor:a("");let{patchFlag:be,dynamicChildren:ee,slotScopeIds:se}=$;se&&(ne=ne?ne.concat(se):se),k==null?(n(oe,K,ie),n(ye,K,ie),B($.children||[],K,ye,le,re,xe,ne,te)):be>0&&be&64&&ee&&k.dynamicChildren&&k.dynamicChildren.length===ee.length?(E(k.dynamicChildren,ee,K,le,re,xe,ne),($.key!=null||le&&$===le.subTree)&&Va(k,$,!0)):J(k,$,K,ye,le,re,xe,ne,te)},M=(k,$,K,ie,le,re,xe,ne,te)=>{$.slotScopeIds=ne,k==null?$.shapeFlag&512?le.ctx.activate($,K,ie,xe,te):W($,K,ie,le,re,xe,te):D(k,$,te)},W=(k,$,K,ie,le,re,xe)=>{const ne=k.component=mb(k,ie,le);if(nl(k)&&(ne.ctx.renderer=ae),bb(ne,!1,xe),ne.asyncDep){if(le&&le.registerDep(ne,Z,xe),!k.el){const te=ne.subTree=lt(Pt);m(null,te,$,K),k.placeholder=te.el}}else Z(ne,k,$,K,le,re,xe)},D=(k,$,K)=>{const ie=$.component=k.component;if(Qm(k,$,K))if(ie.asyncDep&&!ie.asyncResolved){U(ie,$,K);return}else ie.next=$,ie.update();else $.el=k.el,ie.vnode=$},Z=(k,$,K,ie,le,re,xe)=>{const ne=()=>{if(k.isMounted){let{next:be,bu:ee,u:se,parent:ke,vnode:Me}=k;{const ot=Tu(k);if(ot){be&&(be.el=Me.el,U(k,be,xe)),ot.asyncDep.then(()=>{k.isUnmounted||ne()});return}}let He=be,Qe;Mn(k,!1),be?(be.el=Me.el,U(k,be,xe)):be=Me,ee&&Li(ee),(Qe=be.props&&be.props.onVnodeBeforeUpdate)&&$o(Qe,ke,be,Me),Mn(k,!0);const Ve=bu(k),We=k.subTree;k.subTree=Ve,g(We,Ve,u(We.el),X(We),k,le,re),be.el=Ve.el,He===null&&eb(k,Ve.el),se&&Ut(se,le),(Qe=be.props&&be.props.onVnodeUpdated)&&Ut(()=>$o(Qe,ke,be,Me),le)}else{let be;const{el:ee,props:se}=$,{bm:ke,m:Me,parent:He,root:Qe,type:Ve}=k,We=hr($);Mn(k,!1),ke&&Li(ke),!We&&(be=se&&se.onVnodeBeforeMount)&&$o(be,He,$),Mn(k,!0);{Qe.ce&&Qe.ce._def.shadowRoot!==!1&&Qe.ce._injectChildStyle(Ve);const ot=k.subTree=bu(k);g(null,ot,K,ie,k,le,re),$.el=ot.el}if(Me&&Ut(Me,le),!We&&(be=se&&se.onVnodeMounted)){const ot=$;Ut(()=>$o(be,He,ot),le)}($.shapeFlag&256||He&&hr(He.vnode)&&He.vnode.shapeFlag&256)&&k.a&&Ut(k.a,le),k.isMounted=!0,$=K=ie=null}};k.scope.on();const te=k.effect=new vd(ne);k.scope.off();const oe=k.update=te.run.bind(te),ye=k.job=te.runIfDirty.bind(te);ye.i=k,ye.id=k.uid,te.scheduler=()=>Ta(ye),Mn(k,!0),oe()},U=(k,$,K)=>{$.component=k;const ie=k.vnode.props;k.vnode=$,k.next=null,ob(k,$.props,ie,K),lb(k,$.children,K),_o(),Dd(k),ko()},J=(k,$,K,ie,le,re,xe,ne,te=!1)=>{const oe=k&&k.children,ye=k?k.shapeFlag:0,be=$.children,{patchFlag:ee,shapeFlag:se}=$;if(ee>0){if(ee&128){fe(oe,be,K,ie,le,re,xe,ne,te);return}else if(ee&256){pe(oe,be,K,ie,le,re,xe,ne,te);return}}se&8?(ye&16&&we(oe,le,re),be!==oe&&d(K,be)):ye&16?se&16?fe(oe,be,K,ie,le,re,xe,ne,te):we(oe,le,re,!0):(ye&8&&d(K,""),se&16&&B(be,K,ie,le,re,xe,ne,te))},pe=(k,$,K,ie,le,re,xe,ne,te)=>{k=k||lr,$=$||lr;const oe=k.length,ye=$.length,be=Math.min(oe,ye);let ee;for(ee=0;ee<be;ee++){const se=$[ee]=te?fn($[ee]):To($[ee]);g(k[ee],se,K,null,le,re,xe,ne,te)}oe>ye?we(k,le,re,!0,!1,be):B($,K,ie,le,re,xe,ne,te,be)},fe=(k,$,K,ie,le,re,xe,ne,te)=>{let oe=0;const ye=$.length;let be=k.length-1,ee=ye-1;for(;oe<=be&&oe<=ee;){const se=k[oe],ke=$[oe]=te?fn($[oe]):To($[oe]);if(Bn(se,ke))g(se,ke,K,null,le,re,xe,ne,te);else break;oe++}for(;oe<=be&&oe<=ee;){const se=k[be],ke=$[ee]=te?fn($[ee]):To($[ee]);if(Bn(se,ke))g(se,ke,K,null,le,re,xe,ne,te);else break;be--,ee--}if(oe>be){if(oe<=ee){const se=ee+1,ke=se<ye?$[se].el:ie;for(;oe<=ee;)g(null,$[oe]=te?fn($[oe]):To($[oe]),K,ke,le,re,xe,ne,te),oe++}}else if(oe>ee)for(;oe<=be;)O(k[oe],le,re,!0),oe++;else{const se=oe,ke=oe,Me=new Map;for(oe=ke;oe<=ee;oe++){const ze=$[oe]=te?fn($[oe]):To($[oe]);ze.key!=null&&Me.set(ze.key,oe)}let He,Qe=0;const Ve=ee-ke+1;let We=!1,ot=0;const Xe=new Array(Ve);for(oe=0;oe<Ve;oe++)Xe[oe]=0;for(oe=se;oe<=be;oe++){const ze=k[oe];if(Qe>=Ve){O(ze,le,re,!0);continue}let z;if(ze.key!=null)z=Me.get(ze.key);else for(He=ke;He<=ee;He++)if(Xe[He-ke]===0&&Bn(ze,$[He])){z=He;break}z===void 0?O(ze,le,re,!0):(Xe[z-ke]=oe+1,z>=ot?ot=z:We=!0,g(ze,$[z],K,null,le,re,xe,ne,te),Qe++)}const Pe=We?db(Xe):lr;for(He=Pe.length-1,oe=Ve-1;oe>=0;oe--){const ze=ke+oe,z=$[ze],q=$[ze+1],ce=ze+1<ye?q.el||Eu(q):ie;Xe[oe]===0?g(null,z,K,ce,le,re,xe,ne,te):We&&(He<0||oe!==Pe[He]?N(z,K,ce,2):He--)}}},N=(k,$,K,ie,le=null)=>{const{el:re,type:xe,transition:ne,children:te,shapeFlag:oe}=k;if(oe&6){N(k.component.subTree,$,K,ie);return}if(oe&128){k.suspense.move($,K,ie);return}if(oe&64){xe.move(k,$,K,ae);return}if(xe===it){n(re,$,K);for(let be=0;be<te.length;be++)N(te[be],$,K,ie);n(k.anchor,$,K);return}if(xe===Ua){w(k,$,K);return}if(ie!==2&&oe&1&&ne)if(ie===0)ne.beforeEnter(re),n(re,$,K),Ut(()=>ne.enter(re),le);else{const{leave:be,delayLeave:ee,afterLeave:se}=ne,ke=()=>{k.ctx.isUnmounted?r(re):n(re,$,K)},Me=()=>{re._isLeaving&&re[Ko](!0),be(re,()=>{ke(),se&&se()})};ee?ee(re,ke,Me):Me()}else n(re,$,K)},O=(k,$,K,ie=!1,le=!1)=>{const{type:re,props:xe,ref:ne,children:te,dynamicChildren:oe,shapeFlag:ye,patchFlag:be,dirs:ee,cacheIndex:se}=k;if(be===-2&&(le=!1),ne!=null&&(_o(),Gr(ne,null,K,k,!0),ko()),se!=null&&($.renderCache[se]=void 0),ye&256){$.ctx.deactivate(k);return}const ke=ye&1&&ee,Me=!hr(k);let He;if(Me&&(He=xe&&xe.onVnodeBeforeUnmount)&&$o(He,$,k),ye&6)he(k.component,K,ie);else{if(ye&128){k.suspense.unmount(K,ie);return}ke&&In(k,null,$,"beforeUnmount"),ye&64?k.type.remove(k,$,K,ae,ie):oe&&!oe.hasOnce&&(re!==it||be>0&&be&64)?we(oe,$,K,!1,!0):(re===it&&be&384||!le&&ye&16)&&we(te,$,K),ie&&A(k)}(Me&&(He=xe&&xe.onVnodeUnmounted)||ke)&&Ut(()=>{He&&$o(He,$,k),ke&&In(k,null,$,"unmounted")},K)},A=k=>{const{type:$,el:K,anchor:ie,transition:le}=k;if($===it){Q(K,ie);return}if($===Ua){C(k);return}const re=()=>{r(K),le&&!le.persisted&&le.afterLeave&&le.afterLeave()};if(k.shapeFlag&1&&le&&!le.persisted){const{leave:xe,delayLeave:ne}=le,te=()=>xe(K,re);ne?ne(k.el,re,te):te()}else re()},Q=(k,$)=>{let K;for(;k!==$;)K=f(k),r(k),k=K;r($)},he=(k,$,K)=>{const{bum:ie,scope:le,job:re,subTree:xe,um:ne,m:te,a:oe}=k;$u(te),$u(oe),ie&&Li(ie),le.stop(),re&&(re.flags|=8,O(xe,k,$,K)),ne&&Ut(ne,$),Ut(()=>{k.isUnmounted=!0},$)},we=(k,$,K,ie=!1,le=!1,re=0)=>{for(let xe=re;xe<k.length;xe++)O(k[xe],$,K,ie,le)},X=k=>{if(k.shapeFlag&6)return X(k.component.subTree);if(k.shapeFlag&128)return k.suspense.next();const $=f(k.anchor||k.el),K=$&&$[Vd];return K?f(K):$};let de=!1;const R=(k,$,K)=>{let ie;k==null?$._vnode&&(O($._vnode,null,null,!0),ie=$._vnode.component):g($._vnode||null,k,$,null,null,null,K),$._vnode=k,de||(de=!0,Dd(ie),Ld(),de=!1)},ae={p:g,um:O,m:N,r:A,mt:W,mc:B,pc:J,pbc:E,n:X,o:e};return{render:R,hydrate:void 0,createApp:Gm(R)}}function Wa({type:e,props:t},o){return o==="svg"&&e==="foreignObject"||o==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:o}function Mn({effect:e,job:t},o){o?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function cb(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function Va(e,t,o=!1){const n=e.children,r=t.children;if(Be(n)&&Be(r))for(let i=0;i<n.length;i++){const l=n[i];let a=r[i];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=r[i]=fn(r[i]),a.el=l.el),!o&&a.patchFlag!==-2&&Va(l,a)),a.type===Zr&&(a.patchFlag!==-1?a.el=l.el:a.__elIndex=i+(e.type===it?1:0)),a.type===Pt&&!a.el&&(a.el=l.el)}}function db(e){const t=e.slice(),o=[0];let n,r,i,l,a;const s=e.length;for(n=0;n<s;n++){const c=e[n];if(c!==0){if(r=o[o.length-1],e[r]<c){t[n]=r,o.push(n);continue}for(i=0,l=o.length-1;i<l;)a=i+l>>1,e[o[a]]<c?i=a+1:l=a;c<e[o[i]]&&(i>0&&(t[n]=o[i-1]),o[i]=n)}}for(i=o.length,l=o[i-1];i-- >0;)o[i]=l,l=t[l];return o}function Tu(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Tu(t)}function $u(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Eu(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Eu(t.subTree):null}const Fu=e=>e.__isSuspense;function ub(e,t){t&&t.pendingBranch?Be(e)?t.effects.push(...e):t.effects.push(e):wm(e)}const it=Symbol.for("v-fgt"),Zr=Symbol.for("v-txt"),Pt=Symbol.for("v-cmt"),Ua=Symbol.for("v-stc"),Jr=[];let oo=null;function _t(e=!1){Jr.push(oo=e?null:[])}function fb(){Jr.pop(),oo=Jr[Jr.length-1]||null}let Qr=1;function sl(e,t=!1){Qr+=e,e<0&&oo&&t&&(oo.hasOnce=!0)}function Au(e){return e.dynamicChildren=Qr>0?oo||lr:null,fb(),Qr>0&&oo&&oo.push(e),e}function Kt(e,t,o,n,r,i){return Au(Ne(e,t,o,n,r,i,!0))}function cl(e,t,o,n,r){return Au(lt(e,t,o,n,r,!0))}function vr(e){return e?e.__v_isVNode===!0:!1}function Bn(e,t){return e.type===t.type&&e.key===t.key}const Iu=({key:e})=>e??null,dl=({ref:e,ref_key:t,ref_for:o})=>(typeof e=="number"&&(e=""+e),e!=null?Ct(e)||St(e)||De(e)?{i:Et,r:e,k:t,f:!!o}:e:null);function Ne(e,t=null,o=null,n=0,r=null,i=e===it?0:1,l=!1,a=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Iu(t),ref:t&&dl(t),scopeId:jd,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:n,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Et};return a?(Ka(s,o),i&128&&e.normalize(s)):o&&(s.shapeFlag|=Ct(o)?8:16),Qr>0&&!l&&oo&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&oo.push(s),s}const lt=hb;function hb(e,t=null,o=null,n=0,r=null,i=!1){if((!e||e===Hm)&&(e=Pt),vr(e)){const a=qo(e,t,!0);return o&&Ka(a,o),Qr>0&&!i&&oo&&(a.shapeFlag&6?oo[oo.indexOf(e)]=a:oo.push(a)),a.patchFlag=-2,a}if(Rb(e)&&(e=e.__vccOpts),t){t=pb(t);let{class:a,style:s}=t;a&&!Ct(a)&&(t.class=pa(a)),ft(s)&&(Gi(s)&&!Be(s)&&(s=Rt({},s)),t.style=ha(s))}const l=Ct(e)?1:Fu(e)?128:Ud(e)?64:ft(e)?4:De(e)?2:0;return Ne(e,t,o,n,r,l,i,!0)}function pb(e){return e?Gi(e)||wu(e)?Rt({},e):e:null}function qo(e,t,o=!1,n=!1){const{props:r,ref:i,patchFlag:l,children:a,transition:s}=e,c=t?xo(r||{},t):r,d={__v_isVNode:!0,__v_skip:!0,type:e.type,props:c,key:c&&Iu(c),ref:t&&t.ref?o&&i?Be(i)?i.concat(dl(t)):[i,dl(t)]:dl(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==it?l===-1?16:l|16:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:s,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&qo(e.ssContent),ssFallback:e.ssFallback&&qo(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return s&&n&&On(d,s.clone(d)),d}function un(e=" ",t=0){return lt(Zr,null,e,t)}function ei(e="",t=!1){return t?(_t(),cl(Pt,null,e)):lt(Pt,null,e)}function To(e){return e==null||typeof e=="boolean"?lt(Pt):Be(e)?lt(it,null,e.slice()):vr(e)?fn(e):lt(Zr,null,String(e))}function fn(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:qo(e)}function Ka(e,t){let o=0;const{shapeFlag:n}=e;if(t==null)t=null;else if(Be(t))o=16;else if(typeof t=="object")if(n&65){const r=t.default;r&&(r._c&&(r._d=!1),Ka(e,r()),r._c&&(r._d=!0));return}else{o=32;const r=t._;!r&&!wu(t)?t._ctx=Et:r===3&&Et&&(Et.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else De(t)?(t={default:t,_ctx:Et},o=32):(t=String(t),n&64?(o=16,t=[un(t)]):o=8);e.children=t,e.shapeFlag|=o}function xo(...e){const t={};for(let o=0;o<e.length;o++){const n=e[o];for(const r in n)if(r==="class")t.class!==n.class&&(t.class=pa([t.class,n.class]));else if(r==="style")t.style=ha([t.style,n.style]);else if(Oi(r)){const i=t[r],l=n[r];l&&i!==l&&!(Be(i)&&i.includes(l))&&(t[r]=i?[].concat(i,l):l)}else r!==""&&(t[r]=n[r])}return t}function $o(e,t,o,n=null){go(e,t,7,[o,n])}const vb=gu();let gb=0;function mb(e,t,o){const n=e.type,r=(t?t.appContext:e.appContext)||vb,i={uid:gb++,vnode:e,type:n,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Dg(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Ru(n,r),emitsOptions:mu(n,r),emit:null,emitted:null,propsDefaults:dt,inheritAttrs:n.inheritAttrs,ctx:dt,data:dt,props:dt,attrs:dt,slots:dt,refs:dt,setupState:dt,setupContext:null,suspense:o,suspenseId:o?o.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=Xm.bind(null,i),e.ce&&e.ce(i),i}let Ht=null;const Hn=()=>Ht||Et;let ul,Ga;{const e=Ni(),t=(o,n)=>{let r;return(r=e[o])||(r=e[o]=[]),r.push(n),i=>{r.length>1?r.forEach(l=>l(i)):r[0](i)}};ul=t("__VUE_INSTANCE_SETTERS__",o=>Ht=o),Ga=t("__VUE_SSR_SETTERS__",o=>oi=o)}const ti=e=>{const t=Ht;return ul(e),e.scope.on(),()=>{e.scope.off(),ul(t)}},Ou=()=>{Ht&&Ht.scope.off(),ul(null)};function Mu(e){return e.vnode.shapeFlag&4}let oi=!1;function bb(e,t=!1,o=!1){t&&Ga(t);const{props:n,children:r}=e.vnode,i=Mu(e);tb(e,n,i,t),ib(e,r,o||t);const l=i?xb(e,t):void 0;return t&&Ga(!1),l}function xb(e,t){const o=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Lm);const{setup:n}=o;if(n){_o();const r=e.setupContext=n.length>1?Cb(e):null,i=ti(e),l=dr(n,e,0,[e.props,r]),a=ad(l);if(ko(),i(),(a||e.sp)&&!hr(e)&&nu(e),a){if(l.then(Ou,Ou),t)return l.then(s=>{Bu(e,s)}).catch(s=>{Yi(s,e,0)});e.asyncDep=l}else Bu(e,l)}else Hu(e)}function Bu(e,t,o){De(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:ft(t)&&(e.setupState=Od(t)),Hu(e)}function Hu(e,t,o){const n=e.type;e.render||(e.render=n.render||Ro);{const r=ti(e);_o();try{Nm(e)}finally{ko(),r()}}}const yb={get(e,t){return Ot(e,"get",""),e[t]}};function Cb(e){const t=o=>{e.exposed=o||{}};return{attrs:new Proxy(e.attrs,yb),slots:e.slots,emit:e.emit,expose:t}}function fl(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Od(lm(e.exposed)),{get(t,o){if(o in t)return t[o];if(o in Xr)return Xr[o](e)},has(t,o){return o in t||o in Xr}})):e.proxy}const wb=/(?:^|[-_])\w/g,Sb=e=>e.replace(wb,t=>t.toUpperCase()).replace(/[-_]/g,"");function Du(e,t=!0){return De(e)?e.displayName||e.name:e.name||t&&e.__name}function Lu(e,t,o=!1){let n=Du(t);if(!n&&t.__file){const r=t.__file.match(/([^/\\]+)\.\w+$/);r&&(n=r[1])}if(!n&&e){const r=i=>{for(const l in i)if(i[l]===t)return l};n=r(e.components)||e.parent&&r(e.parent.type.components)||r(e.appContext.components)}return n?Sb(n):o?"App":"Anonymous"}function Rb(e){return De(e)&&"__vccOpts"in e}const F=(e,t)=>hm(e,t,oi);function v(e,t,o){try{sl(-1);const n=arguments.length;return n===2?ft(t)&&!Be(t)?vr(t)?lt(e,null,[t]):lt(e,t):lt(e,null,t):(n>3?o=Array.prototype.slice.call(arguments,2):n===3&&vr(o)&&(o=[o]),lt(e,t,o))}finally{sl(1)}}const Pb="3.5.26";/**
|
||
* @vue/runtime-dom v3.5.26
|
||
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
* @license MIT
|
||
**/let qa;const Nu=typeof window<"u"&&window.trustedTypes;if(Nu)try{qa=Nu.createPolicy("vue",{createHTML:e=>e})}catch{}const ju=qa?e=>qa.createHTML(e):e=>e,_b="http://www.w3.org/2000/svg",kb="http://www.w3.org/1998/Math/MathML",Xo=typeof document<"u"?document:null,Wu=Xo&&Xo.createElement("template"),zb={insert:(e,t,o)=>{t.insertBefore(e,o||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,o,n)=>{const r=t==="svg"?Xo.createElementNS(_b,e):t==="mathml"?Xo.createElementNS(kb,e):o?Xo.createElement(e,{is:o}):Xo.createElement(e);return e==="select"&&n&&n.multiple!=null&&r.setAttribute("multiple",n.multiple),r},createText:e=>Xo.createTextNode(e),createComment:e=>Xo.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Xo.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,o,n,r,i){const l=o?o.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),o),!(r===i||!(r=r.nextSibling)););else{Wu.innerHTML=ju(n==="svg"?`<svg>${e}</svg>`:n==="mathml"?`<math>${e}</math>`:e);const a=Wu.content;if(n==="svg"||n==="mathml"){const s=a.firstChild;for(;s.firstChild;)a.appendChild(s.firstChild);a.removeChild(s)}t.insertBefore(a,o)}return[l?l.nextSibling:t.firstChild,o?o.previousSibling:t.lastChild]}},hn="transition",ni="animation",gr=Symbol("_vtc"),Vu={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},Uu=Rt({},Jd,Vu),Yo=(e=>(e.displayName="Transition",e.props=Uu,e))((e,{slots:t})=>v(Tm,Gu(e),t)),Dn=(e,t=[])=>{Be(e)?e.forEach(o=>o(...t)):e&&e(...t)},Ku=e=>e?Be(e)?e.some(t=>t.length>1):e.length>1:!1;function Gu(e){const t={};for(const _ in e)_ in Vu||(t[_]=e[_]);if(e.css===!1)return t;const{name:o="v",type:n,duration:r,enterFromClass:i=`${o}-enter-from`,enterActiveClass:l=`${o}-enter-active`,enterToClass:a=`${o}-enter-to`,appearFromClass:s=i,appearActiveClass:c=l,appearToClass:d=a,leaveFromClass:u=`${o}-leave-from`,leaveActiveClass:f=`${o}-leave-active`,leaveToClass:h=`${o}-leave-to`}=e,p=Tb(r),g=p&&p[0],b=p&&p[1],{onBeforeEnter:m,onEnter:x,onEnterCancelled:w,onLeave:C,onLeaveCancelled:P,onBeforeAppear:T=m,onAppear:y=x,onAppearCancelled:B=w}=t,S=(_,M,W,D)=>{_._enterCancelled=D,pn(_,M?d:a),pn(_,M?c:l),W&&W()},E=(_,M)=>{_._isLeaving=!1,pn(_,u),pn(_,h),pn(_,f),M&&M()},j=_=>(M,W)=>{const D=_?y:x,Z=()=>S(M,_,W);Dn(D,[M,Z]),qu(()=>{pn(M,_?s:i),Eo(M,_?d:a),Ku(D)||Xu(M,n,g,Z)})};return Rt(t,{onBeforeEnter(_){Dn(m,[_]),Eo(_,i),Eo(_,l)},onBeforeAppear(_){Dn(T,[_]),Eo(_,s),Eo(_,c)},onEnter:j(!1),onAppear:j(!0),onLeave(_,M){_._isLeaving=!0;const W=()=>E(_,M);Eo(_,u),_._enterCancelled?(Eo(_,f),Ya(_)):(Ya(_),Eo(_,f)),qu(()=>{_._isLeaving&&(pn(_,u),Eo(_,h),Ku(C)||Xu(_,n,b,W))}),Dn(C,[_,W])},onEnterCancelled(_){S(_,!1,void 0,!0),Dn(w,[_])},onAppearCancelled(_){S(_,!0,void 0,!0),Dn(B,[_])},onLeaveCancelled(_){E(_),Dn(P,[_])}})}function Tb(e){if(e==null)return null;if(ft(e))return[Xa(e.enter),Xa(e.leave)];{const t=Xa(e);return[t,t]}}function Xa(e){return Ag(e)}function Eo(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.add(o)),(e[gr]||(e[gr]=new Set)).add(t)}function pn(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.remove(n));const o=e[gr];o&&(o.delete(t),o.size||(e[gr]=void 0))}function qu(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let $b=0;function Xu(e,t,o,n){const r=e._endId=++$b,i=()=>{r===e._endId&&n()};if(o!=null)return setTimeout(i,o);const{type:l,timeout:a,propCount:s}=Yu(e,t);if(!l)return n();const c=l+"end";let d=0;const u=()=>{e.removeEventListener(c,f),i()},f=h=>{h.target===e&&++d>=s&&u()};setTimeout(()=>{d<s&&u()},a+1),e.addEventListener(c,f)}function Yu(e,t){const o=window.getComputedStyle(e),n=p=>(o[p]||"").split(", "),r=n(`${hn}Delay`),i=n(`${hn}Duration`),l=Zu(r,i),a=n(`${ni}Delay`),s=n(`${ni}Duration`),c=Zu(a,s);let d=null,u=0,f=0;t===hn?l>0&&(d=hn,u=l,f=i.length):t===ni?c>0&&(d=ni,u=c,f=s.length):(u=Math.max(l,c),d=u>0?l>c?hn:ni:null,f=d?d===hn?i.length:s.length:0);const h=d===hn&&/\b(?:transform|all)(?:,|$)/.test(n(`${hn}Property`).toString());return{type:d,timeout:u,propCount:f,hasTransform:h}}function Zu(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((o,n)=>Ju(o)+Ju(e[n])))}function Ju(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Ya(e){return(e?e.ownerDocument:document).body.offsetHeight}function Eb(e,t,o){const n=e[gr];n&&(t=(t?[t,...n]:[...n]).join(" ")),t==null?e.removeAttribute("class"):o?e.setAttribute("class",t):e.className=t}const hl=Symbol("_vod"),Qu=Symbol("_vsh"),ef={name:"show",beforeMount(e,{value:t},{transition:o}){e[hl]=e.style.display==="none"?"":e.style.display,o&&t?o.beforeEnter(e):ri(e,t)},mounted(e,{value:t},{transition:o}){o&&t&&o.enter(e)},updated(e,{value:t,oldValue:o},{transition:n}){!t!=!o&&(n?t?(n.beforeEnter(e),ri(e,!0),n.enter(e)):n.leave(e,()=>{ri(e,!1)}):ri(e,t))},beforeUnmount(e,{value:t}){ri(e,t)}};function ri(e,t){e.style.display=t?e[hl]:"none",e[Qu]=!t}const Fb=Symbol(""),Ab=/(?:^|;)\s*display\s*:/;function Ib(e,t,o){const n=e.style,r=Ct(o);let i=!1;if(o&&!r){if(t)if(Ct(t))for(const l of t.split(";")){const a=l.slice(0,l.indexOf(":")).trim();o[a]==null&&pl(n,a,"")}else for(const l in t)o[l]==null&&pl(n,l,"");for(const l in o)l==="display"&&(i=!0),pl(n,l,o[l])}else if(r){if(t!==o){const l=n[Fb];l&&(o+=";"+l),n.cssText=o,i=Ab.test(o)}}else t&&e.removeAttribute("style");hl in e&&(e[hl]=i?n.display:"",e[Qu]&&(n.display="none"))}const tf=/\s*!important$/;function pl(e,t,o){if(Be(o))o.forEach(n=>pl(e,t,n));else if(o==null&&(o=""),t.startsWith("--"))e.setProperty(t,o);else{const n=Ob(e,t);tf.test(o)?e.setProperty($n(n),o.replace(tf,""),"important"):e[n]=o}}const of=["Webkit","Moz","ms"],Za={};function Ob(e,t){const o=Za[t];if(o)return o;let n=lo(t);if(n!=="filter"&&n in e)return Za[t]=n;n=Di(n);for(let r=0;r<of.length;r++){const i=of[r]+n;if(i in e)return Za[t]=i}return t}const nf="http://www.w3.org/1999/xlink";function rf(e,t,o,n,r,i=Hg(t)){n&&t.startsWith("xlink:")?o==null?e.removeAttributeNS(nf,t.slice(6,t.length)):e.setAttributeNS(nf,t,o):o==null||i&&!fd(o)?e.removeAttribute(t):e.setAttribute(t,i?"":No(o)?String(o):o)}function lf(e,t,o,n,r){if(t==="innerHTML"||t==="textContent"){o!=null&&(e[t]=t==="innerHTML"?ju(o):o);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const a=i==="OPTION"?e.getAttribute("value")||"":e.value,s=o==null?e.type==="checkbox"?"on":"":String(o);(a!==s||!("_value"in e))&&(e.value=s),o==null&&e.removeAttribute(t),e._value=o;return}let l=!1;if(o===""||o==null){const a=typeof e[t];a==="boolean"?o=fd(o):o==null&&a==="string"?(o="",l=!0):a==="number"&&(o=0,l=!0)}try{e[t]=o}catch{}l&&e.removeAttribute(r||t)}function mr(e,t,o,n){e.addEventListener(t,o,n)}function Mb(e,t,o,n){e.removeEventListener(t,o,n)}const af=Symbol("_vei");function Bb(e,t,o,n,r=null){const i=e[af]||(e[af]={}),l=i[t];if(n&&l)l.value=n;else{const[a,s]=Hb(t);if(n){const c=i[t]=Nb(n,r);mr(e,a,c,s)}else l&&(Mb(e,a,l,s),i[t]=void 0)}}const sf=/(?:Once|Passive|Capture)$/;function Hb(e){let t;if(sf.test(e)){t={};let n;for(;n=e.match(sf);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):$n(e.slice(2)),t]}let Ja=0;const Db=Promise.resolve(),Lb=()=>Ja||(Db.then(()=>Ja=0),Ja=Date.now());function Nb(e,t){const o=n=>{if(!n._vts)n._vts=Date.now();else if(n._vts<=o.attached)return;go(jb(n,o.value),t,5,[n])};return o.value=e,o.attached=Lb(),o}function jb(e,t){if(Be(t)){const o=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{o.call(e),e._stopped=!0},t.map(n=>r=>!r._stopped&&n&&n(r))}else return t}const cf=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Wb=(e,t,o,n,r,i)=>{const l=r==="svg";t==="class"?Eb(e,n,l):t==="style"?Ib(e,o,n):Oi(t)?ca(t)||Bb(e,t,o,n,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Vb(e,t,n,l))?(lf(e,t,n),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&rf(e,t,n,l,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Ct(n))?lf(e,lo(t),n,i,t):(t==="true-value"?e._trueValue=n:t==="false-value"&&(e._falseValue=n),rf(e,t,n,l))};function Vb(e,t,o,n){if(n)return!!(t==="innerHTML"||t==="textContent"||t in e&&cf(t)&&De(o));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="sandbox"&&e.tagName==="IFRAME"||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 cf(t)&&Ct(o)?!1:t in e}const df=new WeakMap,uf=new WeakMap,vl=Symbol("_moveCb"),ff=Symbol("_enterCb"),Ub=(e=>(delete e.props.mode,e))({name:"TransitionGroup",props:Rt({},Uu,{tag:String,moveClass:String}),setup(e,{slots:t}){const o=Hn(),n=Zd();let r,i;return lu(()=>{if(!r.length)return;const l=e.moveClass||`${e.name||"v"}-move`;if(!Xb(r[0].el,o.vnode.el,l)){r=[];return}r.forEach(Kb),r.forEach(Gb);const a=r.filter(qb);Ya(o.vnode.el),a.forEach(s=>{const c=s.el,d=c.style;Eo(c,l),d.transform=d.webkitTransform=d.transitionDuration="";const u=c[vl]=f=>{f&&f.target!==c||(!f||f.propertyName.endsWith("transform"))&&(c.removeEventListener("transitionend",u),c[vl]=null,pn(c,l))};c.addEventListener("transitionend",u)}),r=[]}),()=>{const l=Ke(e),a=Gu(l);let s=l.tag||it;if(r=[],i)for(let c=0;c<i.length;c++){const d=i[c];d.el&&d.el instanceof Element&&(r.push(d),On(d,Kr(d,a,n,o)),df.set(d,{left:d.el.offsetLeft,top:d.el.offsetTop}))}i=t.default?Aa(t.default()):[];for(let c=0;c<i.length;c++){const d=i[c];d.key!=null&&On(d,Kr(d,a,n,o))}return lt(s,null,i)}}});function Kb(e){const t=e.el;t[vl]&&t[vl](),t[ff]&&t[ff]()}function Gb(e){uf.set(e,{left:e.el.offsetLeft,top:e.el.offsetTop})}function qb(e){const t=df.get(e),o=uf.get(e),n=t.left-o.left,r=t.top-o.top;if(n||r){const i=e.el.style;return i.transform=i.webkitTransform=`translate(${n}px,${r}px)`,i.transitionDuration="0s",e}}function Xb(e,t,o){const n=e.cloneNode(),r=e[gr];r&&r.forEach(a=>{a.split(/\s+/).forEach(s=>s&&n.classList.remove(s))}),o.split(/\s+/).forEach(a=>a&&n.classList.add(a)),n.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(n);const{hasTransform:l}=Yu(n);return i.removeChild(n),l}const hf=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Be(t)?o=>Li(t,o):t};function Yb(e){e.target.composing=!0}function pf(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Qa=Symbol("_assign");function vf(e,t,o){return t&&(e=e.trim()),o&&(e=fa(e)),e}const br={created(e,{modifiers:{lazy:t,trim:o,number:n}},r){e[Qa]=hf(r);const i=n||r.props&&r.props.type==="number";mr(e,t?"change":"input",l=>{l.target.composing||e[Qa](vf(e.value,o,i))}),(o||i)&&mr(e,"change",()=>{e.value=vf(e.value,o,i)}),t||(mr(e,"compositionstart",Yb),mr(e,"compositionend",pf),mr(e,"change",pf))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:o,modifiers:{lazy:n,trim:r,number:i}},l){if(e[Qa]=hf(l),e.composing)return;const a=(i||e.type==="number")&&!/^0\d/.test(e.value)?fa(e.value):e.value,s=t??"";a!==s&&(document.activeElement===e&&e.type!=="range"&&(n&&t===o||r&&e.value.trim()===s)||(e.value=s))}},Zb=["ctrl","shift","alt","meta"],Jb={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)=>Zb.some(o=>e[`${o}Key`]&&!t.includes(o))},gf=(e,t)=>{const o=e._withMods||(e._withMods={}),n=t.join(".");return o[n]||(o[n]=(r,...i)=>{for(let l=0;l<t.length;l++){const a=Jb[t[l]];if(a&&a(r,t))return}return e(r,...i)})},Qb=Rt({patchProp:Wb},zb);let mf;function e0(){return mf||(mf=ab(Qb))}const t0=(...e)=>{const t=e0().createApp(...e),{mount:o}=t;return t.mount=n=>{const r=n0(n);if(!r)return;const i=t._component;!De(i)&&!i.render&&!i.template&&(i.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const l=o(r,!1,o0(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),l},t};function o0(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function n0(e){return Ct(e)?document.querySelector(e):e}/*!
|
||
* vue-router v4.6.4
|
||
* (c) 2025 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/const xr=typeof document<"u";function bf(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function r0(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&bf(e.default)}const at=Object.assign;function es(e,t){const o={};for(const n in t){const r=t[n];o[n]=yo(r)?r.map(e):e(r)}return o}const ii=()=>{},yo=Array.isArray;function xf(e,t){const o={};for(const n in e)o[n]=n in t?t[n]:e[n];return o}const yf=/#/g,i0=/&/g,l0=/\//g,a0=/=/g,s0=/\?/g,Cf=/\+/g,c0=/%5B/g,d0=/%5D/g,wf=/%5E/g,u0=/%60/g,Sf=/%7B/g,f0=/%7C/g,Rf=/%7D/g,h0=/%20/g;function ts(e){return e==null?"":encodeURI(""+e).replace(f0,"|").replace(c0,"[").replace(d0,"]")}function p0(e){return ts(e).replace(Sf,"{").replace(Rf,"}").replace(wf,"^")}function os(e){return ts(e).replace(Cf,"%2B").replace(h0,"+").replace(yf,"%23").replace(i0,"%26").replace(u0,"`").replace(Sf,"{").replace(Rf,"}").replace(wf,"^")}function v0(e){return os(e).replace(a0,"%3D")}function g0(e){return ts(e).replace(yf,"%23").replace(s0,"%3F")}function m0(e){return g0(e).replace(l0,"%2F")}function li(e){if(e==null)return null;try{return decodeURIComponent(""+e)}catch{}return""+e}const b0=/\/$/,x0=e=>e.replace(b0,"");function ns(e,t,o="/"){let n,r={},i="",l="";const a=t.indexOf("#");let s=t.indexOf("?");return s=a>=0&&s>a?-1:s,s>=0&&(n=t.slice(0,s),i=t.slice(s,a>0?a:t.length),r=e(i.slice(1))),a>=0&&(n=n||t.slice(0,a),l=t.slice(a,t.length)),n=S0(n??t,o),{fullPath:n+i+l,path:n,query:r,hash:li(l)}}function y0(e,t){const o=t.query?e(t.query):"";return t.path+(o&&"?")+o+(t.hash||"")}function Pf(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function C0(e,t,o){const n=t.matched.length-1,r=o.matched.length-1;return n>-1&&n===r&&yr(t.matched[n],o.matched[r])&&_f(t.params,o.params)&&e(t.query)===e(o.query)&&t.hash===o.hash}function yr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function _f(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var o in e)if(!w0(e[o],t[o]))return!1;return!0}function w0(e,t){return yo(e)?kf(e,t):yo(t)?kf(t,e):(e==null?void 0:e.valueOf())===(t==null?void 0:t.valueOf())}function kf(e,t){return yo(t)?e.length===t.length&&e.every((o,n)=>o===t[n]):e.length===1&&e[0]===t}function S0(e,t){if(e.startsWith("/"))return e;if(!e)return t;const o=t.split("/"),n=e.split("/"),r=n[n.length-1];(r===".."||r===".")&&n.push("");let i=o.length-1,l,a;for(l=0;l<n.length;l++)if(a=n[l],a!==".")if(a==="..")i>1&&i--;else break;return o.slice(0,i).join("/")+"/"+n.slice(l).join("/")}const vn={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};let rs=function(e){return e.pop="pop",e.push="push",e}({}),is=function(e){return e.back="back",e.forward="forward",e.unknown="",e}({});function R0(e){if(!e)if(xr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),x0(e)}const P0=/^[^#]+#/;function _0(e,t){return e.replace(P0,"#")+t}function k0(e,t){const o=document.documentElement.getBoundingClientRect(),n=e.getBoundingClientRect();return{behavior:t.behavior,left:n.left-o.left-(t.left||0),top:n.top-o.top-(t.top||0)}}const gl=()=>({left:window.scrollX,top:window.scrollY});function z0(e){let t;if("el"in e){const o=e.el,n=typeof o=="string"&&o.startsWith("#"),r=typeof o=="string"?n?document.getElementById(o.slice(1)):document.querySelector(o):o;if(!r)return;t=k0(r,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 zf(e,t){return(history.state?history.state.position-t:-1)+e}const ls=new Map;function T0(e,t){ls.set(e,t)}function $0(e){const t=ls.get(e);return ls.delete(e),t}function E0(e){return typeof e=="string"||e&&typeof e=="object"}function Tf(e){return typeof e=="string"||typeof e=="symbol"}let wt=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]="NAVIGATION_ABORTED",e[e.NAVIGATION_CANCELLED=8]="NAVIGATION_CANCELLED",e[e.NAVIGATION_DUPLICATED=16]="NAVIGATION_DUPLICATED",e}({});const $f=Symbol("");wt.MATCHER_NOT_FOUND+"",wt.NAVIGATION_GUARD_REDIRECT+"",wt.NAVIGATION_ABORTED+"",wt.NAVIGATION_CANCELLED+"",wt.NAVIGATION_DUPLICATED+"";function Cr(e,t){return at(new Error,{type:e,[$f]:!0},t)}function Zo(e,t){return e instanceof Error&&$f in e&&(t==null||!!(e.type&t))}const F0=["params","query","hash"];function A0(e){if(typeof e=="string")return e;if(e.path!=null)return e.path;const t={};for(const o of F0)o in e&&(t[o]=e[o]);return JSON.stringify(t,null,2)}function I0(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let n=0;n<o.length;++n){const r=o[n].replace(Cf," "),i=r.indexOf("="),l=li(i<0?r:r.slice(0,i)),a=i<0?null:li(r.slice(i+1));if(l in t){let s=t[l];yo(s)||(s=t[l]=[s]),s.push(a)}else t[l]=a}return t}function Ef(e){let t="";for(let o in e){const n=e[o];if(o=v0(o),n==null){n!==void 0&&(t+=(t.length?"&":"")+o);continue}(yo(n)?n.map(r=>r&&os(r)):[n&&os(n)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+o,r!=null&&(t+="="+r))})}return t}function O0(e){const t={};for(const o in e){const n=e[o];n!==void 0&&(t[o]=yo(n)?n.map(r=>r==null?null:""+r):n==null?n:""+n)}return t}const M0=Symbol(""),Ff=Symbol(""),ml=Symbol(""),as=Symbol(""),ss=Symbol("");function ai(){let e=[];function t(n){return e.push(n),()=>{const r=e.indexOf(n);r>-1&&e.splice(r,1)}}function o(){e=[]}return{add:t,list:()=>e.slice(),reset:o}}function gn(e,t,o,n,r,i=l=>l()){const l=n&&(n.enterCallbacks[r]=n.enterCallbacks[r]||[]);return()=>new Promise((a,s)=>{const c=f=>{f===!1?s(Cr(wt.NAVIGATION_ABORTED,{from:o,to:t})):f instanceof Error?s(f):E0(f)?s(Cr(wt.NAVIGATION_GUARD_REDIRECT,{from:t,to:f})):(l&&n.enterCallbacks[r]===l&&typeof f=="function"&&l.push(f),a())},d=i(()=>e.call(n&&n.instances[r],t,o,c));let u=Promise.resolve(d);e.length<3&&(u=u.then(c)),u.catch(f=>s(f))})}function cs(e,t,o,n,r=i=>i()){const i=[];for(const l of e)for(const a in l.components){let s=l.components[a];if(!(t!=="beforeRouteEnter"&&!l.instances[a]))if(bf(s)){const c=(s.__vccOpts||s)[t];c&&i.push(gn(c,o,n,l,a,r))}else{let c=s();i.push(()=>c.then(d=>{if(!d)throw new Error(`Couldn't resolve component "${a}" at "${l.path}"`);const u=r0(d)?d.default:d;l.mods[a]=d,l.components[a]=u;const f=(u.__vccOpts||u)[t];return f&&gn(f,o,n,l,a,r)()}))}}return i}function B0(e,t){const o=[],n=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let l=0;l<i;l++){const a=t.matched[l];a&&(e.matched.find(c=>yr(c,a))?n.push(a):o.push(a));const s=e.matched[l];s&&(t.matched.find(c=>yr(c,s))||r.push(s))}return[o,n,r]}/*!
|
||
* vue-router v4.6.4
|
||
* (c) 2025 Eduardo San Martin Morote
|
||
* @license MIT
|
||
*/let H0=()=>location.protocol+"//"+location.host;function Af(e,t){const{pathname:o,search:n,hash:r}=t,i=e.indexOf("#");if(i>-1){let l=r.includes(e.slice(i))?e.slice(i).length:1,a=r.slice(l);return a[0]!=="/"&&(a="/"+a),Pf(a,"")}return Pf(o,e)+n+r}function D0(e,t,o,n){let r=[],i=[],l=null;const a=({state:f})=>{const h=Af(e,location),p=o.value,g=t.value;let b=0;if(f){if(o.value=h,t.value=f,l&&l===p){l=null;return}b=g?f.position-g.position:0}else n(h);r.forEach(m=>{m(o.value,p,{delta:b,type:rs.pop,direction:b?b>0?is.forward:is.back:is.unknown})})};function s(){l=o.value}function c(f){r.push(f);const h=()=>{const p=r.indexOf(f);p>-1&&r.splice(p,1)};return i.push(h),h}function d(){if(document.visibilityState==="hidden"){const{history:f}=window;if(!f.state)return;f.replaceState(at({},f.state,{scroll:gl()}),"")}}function u(){for(const f of i)f();i=[],window.removeEventListener("popstate",a),window.removeEventListener("pagehide",d),document.removeEventListener("visibilitychange",d)}return window.addEventListener("popstate",a),window.addEventListener("pagehide",d),document.addEventListener("visibilitychange",d),{pauseListeners:s,listen:c,destroy:u}}function If(e,t,o,n=!1,r=!1){return{back:e,current:t,forward:o,replaced:n,position:window.history.length,scroll:r?gl():null}}function L0(e){const{history:t,location:o}=window,n={value:Af(e,o)},r={value:t.state};r.value||i(n.value,{back:null,current:n.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(s,c,d){const u=e.indexOf("#"),f=u>-1?(o.host&&document.querySelector("base")?e:e.slice(u))+s:H0()+e+s;try{t[d?"replaceState":"pushState"](c,"",f),r.value=c}catch(h){console.error(h),o[d?"replace":"assign"](f)}}function l(s,c){i(s,at({},t.state,If(r.value.back,s,r.value.forward,!0),c,{position:r.value.position}),!0),n.value=s}function a(s,c){const d=at({},r.value,t.state,{forward:s,scroll:gl()});i(d.current,d,!0),i(s,at({},If(n.value,s,null),{position:d.position+1},c),!1),n.value=s}return{location:n,state:r,push:a,replace:l}}function N0(e){e=R0(e);const t=L0(e),o=D0(e,t.state,t.location,t.replace);function n(i,l=!0){l||o.pauseListeners(),history.go(i)}const r=at({location:"",base:e,go:n,createHref:_0.bind(null,e)},t,o);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}let Ln=function(e){return e[e.Static=0]="Static",e[e.Param=1]="Param",e[e.Group=2]="Group",e}({});var kt=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}(kt||{});const j0={type:Ln.Static,value:""},W0=/[a-zA-Z0-9_]/;function V0(e){if(!e)return[[]];if(e==="/")return[[j0]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${o})/"${c}": ${h}`)}let o=kt.Static,n=o;const r=[];let i;function l(){i&&r.push(i),i=[]}let a=0,s,c="",d="";function u(){c&&(o===kt.Static?i.push({type:Ln.Static,value:c}):o===kt.Param||o===kt.ParamRegExp||o===kt.ParamRegExpEnd?(i.length>1&&(s==="*"||s==="+")&&t(`A repeatable param (${c}) must be alone in its segment. eg: '/:ids+.`),i.push({type:Ln.Param,value:c,regexp:d,repeatable:s==="*"||s==="+",optional:s==="*"||s==="?"})):t("Invalid state to consume buffer"),c="")}function f(){c+=s}for(;a<e.length;){if(s=e[a++],s==="\\"&&o!==kt.ParamRegExp){n=o,o=kt.EscapeNext;continue}switch(o){case kt.Static:s==="/"?(c&&u(),l()):s===":"?(u(),o=kt.Param):f();break;case kt.EscapeNext:f(),o=n;break;case kt.Param:s==="("?o=kt.ParamRegExp:W0.test(s)?f():(u(),o=kt.Static,s!=="*"&&s!=="?"&&s!=="+"&&a--);break;case kt.ParamRegExp:s===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+s:o=kt.ParamRegExpEnd:d+=s;break;case kt.ParamRegExpEnd:u(),o=kt.Static,s!=="*"&&s!=="?"&&s!=="+"&&a--,d="";break;default:t("Unknown state");break}}return o===kt.ParamRegExp&&t(`Unfinished custom RegExp for param "${c}"`),u(),l(),r}const Of="[^/]+?",U0={sensitive:!1,strict:!1,start:!0,end:!0};var Gt=function(e){return e[e._multiplier=10]="_multiplier",e[e.Root=90]="Root",e[e.Segment=40]="Segment",e[e.SubSegment=30]="SubSegment",e[e.Static=40]="Static",e[e.Dynamic=20]="Dynamic",e[e.BonusCustomRegExp=10]="BonusCustomRegExp",e[e.BonusWildcard=-50]="BonusWildcard",e[e.BonusRepeatable=-20]="BonusRepeatable",e[e.BonusOptional=-8]="BonusOptional",e[e.BonusStrict=.7000000000000001]="BonusStrict",e[e.BonusCaseSensitive=.25]="BonusCaseSensitive",e}(Gt||{});const K0=/[.+*?^${}()[\]/\\]/g;function G0(e,t){const o=at({},U0,t),n=[];let r=o.start?"^":"";const i=[];for(const c of e){const d=c.length?[]:[Gt.Root];o.strict&&!c.length&&(r+="/");for(let u=0;u<c.length;u++){const f=c[u];let h=Gt.Segment+(o.sensitive?Gt.BonusCaseSensitive:0);if(f.type===Ln.Static)u||(r+="/"),r+=f.value.replace(K0,"\\$&"),h+=Gt.Static;else if(f.type===Ln.Param){const{value:p,repeatable:g,optional:b,regexp:m}=f;i.push({name:p,repeatable:g,optional:b});const x=m||Of;if(x!==Of){h+=Gt.BonusCustomRegExp;try{`${x}`}catch(C){throw new Error(`Invalid custom RegExp for param "${p}" (${x}): `+C.message)}}let w=g?`((?:${x})(?:/(?:${x}))*)`:`(${x})`;u||(w=b&&c.length<2?`(?:/${w})`:"/"+w),b&&(w+="?"),r+=w,h+=Gt.Dynamic,b&&(h+=Gt.BonusOptional),g&&(h+=Gt.BonusRepeatable),x===".*"&&(h+=Gt.BonusWildcard)}d.push(h)}n.push(d)}if(o.strict&&o.end){const c=n.length-1;n[c][n[c].length-1]+=Gt.BonusStrict}o.strict||(r+="/?"),o.end?r+="$":o.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const l=new RegExp(r,o.sensitive?"":"i");function a(c){const d=c.match(l),u={};if(!d)return null;for(let f=1;f<d.length;f++){const h=d[f]||"",p=i[f-1];u[p.name]=h&&p.repeatable?h.split("/"):h}return u}function s(c){let d="",u=!1;for(const f of e){(!u||!d.endsWith("/"))&&(d+="/"),u=!1;for(const h of f)if(h.type===Ln.Static)d+=h.value;else if(h.type===Ln.Param){const{value:p,repeatable:g,optional:b}=h,m=p in c?c[p]:"";if(yo(m)&&!g)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const x=yo(m)?m.join("/"):m;if(!x)if(b)f.length<2&&(d.endsWith("/")?d=d.slice(0,-1):u=!0);else throw new Error(`Missing required param "${p}"`);d+=x}}return d||"/"}return{re:l,score:n,keys:i,parse:a,stringify:s}}function q0(e,t){let o=0;for(;o<e.length&&o<t.length;){const n=t[o]-e[o];if(n)return n;o++}return e.length<t.length?e.length===1&&e[0]===Gt.Static+Gt.Segment?-1:1:e.length>t.length?t.length===1&&t[0]===Gt.Static+Gt.Segment?1:-1:0}function Mf(e,t){let o=0;const n=e.score,r=t.score;for(;o<n.length&&o<r.length;){const i=q0(n[o],r[o]);if(i)return i;o++}if(Math.abs(r.length-n.length)===1){if(Bf(n))return 1;if(Bf(r))return-1}return r.length-n.length}function Bf(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const X0={strict:!1,end:!0,sensitive:!1};function Y0(e,t,o){const n=G0(V0(e.path),o),r=at(n,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Z0(e,t){const o=[],n=new Map;t=xf(X0,t);function r(u){return n.get(u)}function i(u,f,h){const p=!h,g=Df(u);g.aliasOf=h&&h.record;const b=xf(t,u),m=[g];if("alias"in u){const C=typeof u.alias=="string"?[u.alias]:u.alias;for(const P of C)m.push(Df(at({},g,{components:h?h.record.components:g.components,path:P,aliasOf:h?h.record:g})))}let x,w;for(const C of m){const{path:P}=C;if(f&&P[0]!=="/"){const T=f.record.path,y=T[T.length-1]==="/"?"":"/";C.path=f.record.path+(P&&y+P)}if(x=Y0(C,f,b),h?h.alias.push(x):(w=w||x,w!==x&&w.alias.push(x),p&&u.name&&!Lf(x)&&l(u.name)),Nf(x)&&s(x),g.children){const T=g.children;for(let y=0;y<T.length;y++)i(T[y],x,h&&h.children[y])}h=h||x}return w?()=>{l(w)}:ii}function l(u){if(Tf(u)){const f=n.get(u);f&&(n.delete(u),o.splice(o.indexOf(f),1),f.children.forEach(l),f.alias.forEach(l))}else{const f=o.indexOf(u);f>-1&&(o.splice(f,1),u.record.name&&n.delete(u.record.name),u.children.forEach(l),u.alias.forEach(l))}}function a(){return o}function s(u){const f=ex(u,o);o.splice(f,0,u),u.record.name&&!Lf(u)&&n.set(u.record.name,u)}function c(u,f){let h,p={},g,b;if("name"in u&&u.name){if(h=n.get(u.name),!h)throw Cr(wt.MATCHER_NOT_FOUND,{location:u});b=h.record.name,p=at(Hf(f.params,h.keys.filter(w=>!w.optional).concat(h.parent?h.parent.keys.filter(w=>w.optional):[]).map(w=>w.name)),u.params&&Hf(u.params,h.keys.map(w=>w.name))),g=h.stringify(p)}else if(u.path!=null)g=u.path,h=o.find(w=>w.re.test(g)),h&&(p=h.parse(g),b=h.record.name);else{if(h=f.name?n.get(f.name):o.find(w=>w.re.test(f.path)),!h)throw Cr(wt.MATCHER_NOT_FOUND,{location:u,currentLocation:f});b=h.record.name,p=at({},f.params,u.params),g=h.stringify(p)}const m=[];let x=h;for(;x;)m.unshift(x.record),x=x.parent;return{name:b,path:g,params:p,matched:m,meta:Q0(m)}}e.forEach(u=>i(u));function d(){o.length=0,n.clear()}return{addRoute:i,resolve:c,removeRoute:l,clearRoutes:d,getRoutes:a,getRecordMatcher:r}}function Hf(e,t){const o={};for(const n of t)n in e&&(o[n]=e[n]);return o}function Df(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:J0(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function J0(e){const t={},o=e.props||!1;if("component"in e)t.default=o;else for(const n in e.components)t[n]=typeof o=="object"?o[n]:o;return t}function Lf(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Q0(e){return e.reduce((t,o)=>at(t,o.meta),{})}function ex(e,t){let o=0,n=t.length;for(;o!==n;){const i=o+n>>1;Mf(e,t[i])<0?n=i:o=i+1}const r=tx(e);return r&&(n=t.lastIndexOf(r,n-1)),n}function tx(e){let t=e;for(;t=t.parent;)if(Nf(t)&&Mf(e,t)===0)return t}function Nf({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function jf(e){const t=$e(ml),o=$e(as),n=F(()=>{const s=cn(e.to);return t.resolve(s)}),r=F(()=>{const{matched:s}=n.value,{length:c}=s,d=s[c-1],u=o.matched;if(!d||!u.length)return-1;const f=u.findIndex(yr.bind(null,d));if(f>-1)return f;const h=Wf(s[c-2]);return c>1&&Wf(d)===h&&u[u.length-1].path!==h?u.findIndex(yr.bind(null,s[c-2])):f}),i=F(()=>r.value>-1&&ix(o.params,n.value.params)),l=F(()=>r.value>-1&&r.value===o.matched.length-1&&_f(o.params,n.value.params));function a(s={}){if(rx(s)){const c=t[cn(e.replace)?"replace":"push"](cn(e.to)).catch(ii);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>c),c}return Promise.resolve()}return{route:n,href:F(()=>n.value.href),isActive:i,isExactActive:l,navigate:a}}function ox(e){return e.length===1?e[0]:e}const nx=ve({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"},viewTransition:Boolean},useLink:jf,setup(e,{slots:t}){const o=Nr(jf(e)),{options:n}=$e(ml),r=F(()=>({[Vf(e.activeClass,n.linkActiveClass,"router-link-active")]:o.isActive,[Vf(e.exactActiveClass,n.linkExactActiveClass,"router-link-exact-active")]:o.isExactActive}));return()=>{const i=t.default&&ox(t.default(o));return e.custom?i:v("a",{"aria-current":o.isExactActive?e.ariaCurrentValue:null,href:o.href,onClick:o.navigate,class:r.value},i)}}});function rx(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function ix(e,t){for(const o in t){const n=t[o],r=e[o];if(typeof n=="string"){if(n!==r)return!1}else if(!yo(r)||r.length!==n.length||n.some((i,l)=>i.valueOf()!==r[l].valueOf()))return!1}return!0}function Wf(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Vf=(e,t,o)=>e??t??o,lx=ve({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:o}){const n=$e(ss),r=F(()=>e.route||n.value),i=$e(Ff,0),l=F(()=>{let c=cn(i);const{matched:d}=r.value;let u;for(;(u=d[c])&&!u.components;)c++;return c}),a=F(()=>r.value.matched[l.value]);tt(Ff,F(()=>l.value+1)),tt(M0,a),tt(ss,r);const s=V();return st(()=>[s.value,a.value,e.name],([c,d,u],[f,h,p])=>{d&&(d.instances[u]=c,h&&h!==d&&c&&c===f&&(d.leaveGuards.size||(d.leaveGuards=h.leaveGuards),d.updateGuards.size||(d.updateGuards=h.updateGuards))),c&&d&&(!h||!yr(d,h)||!f)&&(d.enterCallbacks[u]||[]).forEach(g=>g(c))},{flush:"post"}),()=>{const c=r.value,d=e.name,u=a.value,f=u&&u.components[d];if(!f)return Uf(o.default,{Component:f,route:c});const h=u.props[d],p=h?h===!0?c.params:typeof h=="function"?h(c):h:null,b=v(f,at({},p,t,{onVnodeUnmounted:m=>{m.component.isUnmounted&&(u.instances[d]=null)},ref:s}));return Uf(o.default,{Component:b,route:c})||b}}});function Uf(e,t){if(!e)return null;const o=e(t);return o.length===1?o[0]:o}const Kf=lx;function ax(e){const t=Z0(e.routes,e),o=e.parseQuery||I0,n=e.stringifyQuery||Ef,r=e.history,i=ai(),l=ai(),a=ai(),s=ka(vn);let c=vn;xr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=es.bind(null,X=>""+X),u=es.bind(null,m0),f=es.bind(null,li);function h(X,de){let R,ae;return Tf(X)?(R=t.getRecordMatcher(X),ae=de):ae=X,t.addRoute(ae,R)}function p(X){const de=t.getRecordMatcher(X);de&&t.removeRoute(de)}function g(){return t.getRoutes().map(X=>X.record)}function b(X){return!!t.getRecordMatcher(X)}function m(X,de){if(de=at({},de||s.value),typeof X=="string"){const K=ns(o,X,de.path),ie=t.resolve({path:K.path},de),le=r.createHref(K.fullPath);return at(K,ie,{params:f(ie.params),hash:li(K.hash),redirectedFrom:void 0,href:le})}let R;if(X.path!=null)R=at({},X,{path:ns(o,X.path,de.path).path});else{const K=at({},X.params);for(const ie in K)K[ie]==null&&delete K[ie];R=at({},X,{params:u(K)}),de.params=u(de.params)}const ae=t.resolve(R,de),_e=X.hash||"";ae.params=d(f(ae.params));const k=y0(n,at({},X,{hash:p0(_e),path:ae.path})),$=r.createHref(k);return at({fullPath:k,hash:_e,query:n===Ef?O0(X.query):X.query||{}},ae,{redirectedFrom:void 0,href:$})}function x(X){return typeof X=="string"?ns(o,X,s.value.path):at({},X)}function w(X,de){if(c!==X)return Cr(wt.NAVIGATION_CANCELLED,{from:de,to:X})}function C(X){return y(X)}function P(X){return C(at(x(X),{replace:!0}))}function T(X,de){const R=X.matched[X.matched.length-1];if(R&&R.redirect){const{redirect:ae}=R;let _e=typeof ae=="function"?ae(X,de):ae;return typeof _e=="string"&&(_e=_e.includes("?")||_e.includes("#")?_e=x(_e):{path:_e},_e.params={}),at({query:X.query,hash:X.hash,params:_e.path!=null?{}:X.params},_e)}}function y(X,de){const R=c=m(X),ae=s.value,_e=X.state,k=X.force,$=X.replace===!0,K=T(R,ae);if(K)return y(at(x(K),{state:typeof K=="object"?at({},_e,K.state):_e,force:k,replace:$}),de||R);const ie=R;ie.redirectedFrom=de;let le;return!k&&C0(n,ae,R)&&(le=Cr(wt.NAVIGATION_DUPLICATED,{to:ie,from:ae}),N(ae,ae,!0,!1)),(le?Promise.resolve(le):E(ie,ae)).catch(re=>Zo(re)?Zo(re,wt.NAVIGATION_GUARD_REDIRECT)?re:fe(re):J(re,ie,ae)).then(re=>{if(re){if(Zo(re,wt.NAVIGATION_GUARD_REDIRECT))return y(at({replace:$},x(re.to),{state:typeof re.to=="object"?at({},_e,re.to.state):_e,force:k}),de||ie)}else re=_(ie,ae,!0,$,_e);return j(ie,ae,re),re})}function B(X,de){const R=w(X,de);return R?Promise.reject(R):Promise.resolve()}function S(X){const de=Q.values().next().value;return de&&typeof de.runWithContext=="function"?de.runWithContext(X):X()}function E(X,de){let R;const[ae,_e,k]=B0(X,de);R=cs(ae.reverse(),"beforeRouteLeave",X,de);for(const K of ae)K.leaveGuards.forEach(ie=>{R.push(gn(ie,X,de))});const $=B.bind(null,X,de);return R.push($),we(R).then(()=>{R=[];for(const K of i.list())R.push(gn(K,X,de));return R.push($),we(R)}).then(()=>{R=cs(_e,"beforeRouteUpdate",X,de);for(const K of _e)K.updateGuards.forEach(ie=>{R.push(gn(ie,X,de))});return R.push($),we(R)}).then(()=>{R=[];for(const K of k)if(K.beforeEnter)if(yo(K.beforeEnter))for(const ie of K.beforeEnter)R.push(gn(ie,X,de));else R.push(gn(K.beforeEnter,X,de));return R.push($),we(R)}).then(()=>(X.matched.forEach(K=>K.enterCallbacks={}),R=cs(k,"beforeRouteEnter",X,de,S),R.push($),we(R))).then(()=>{R=[];for(const K of l.list())R.push(gn(K,X,de));return R.push($),we(R)}).catch(K=>Zo(K,wt.NAVIGATION_CANCELLED)?K:Promise.reject(K))}function j(X,de,R){a.list().forEach(ae=>S(()=>ae(X,de,R)))}function _(X,de,R,ae,_e){const k=w(X,de);if(k)return k;const $=de===vn,K=xr?history.state:{};R&&(ae||$?r.replace(X.fullPath,at({scroll:$&&K&&K.scroll},_e)):r.push(X.fullPath,_e)),s.value=X,N(X,de,R,$),fe()}let M;function W(){M||(M=r.listen((X,de,R)=>{if(!he.listening)return;const ae=m(X),_e=T(ae,he.currentRoute.value);if(_e){y(at(_e,{replace:!0,force:!0}),ae).catch(ii);return}c=ae;const k=s.value;xr&&T0(zf(k.fullPath,R.delta),gl()),E(ae,k).catch($=>Zo($,wt.NAVIGATION_ABORTED|wt.NAVIGATION_CANCELLED)?$:Zo($,wt.NAVIGATION_GUARD_REDIRECT)?(y(at(x($.to),{force:!0}),ae).then(K=>{Zo(K,wt.NAVIGATION_ABORTED|wt.NAVIGATION_DUPLICATED)&&!R.delta&&R.type===rs.pop&&r.go(-1,!1)}).catch(ii),Promise.reject()):(R.delta&&r.go(-R.delta,!1),J($,ae,k))).then($=>{$=$||_(ae,k,!1),$&&(R.delta&&!Zo($,wt.NAVIGATION_CANCELLED)?r.go(-R.delta,!1):R.type===rs.pop&&Zo($,wt.NAVIGATION_ABORTED|wt.NAVIGATION_DUPLICATED)&&r.go(-1,!1)),j(ae,k,$)}).catch(ii)}))}let D=ai(),Z=ai(),U;function J(X,de,R){fe(X);const ae=Z.list();return ae.length?ae.forEach(_e=>_e(X,de,R)):console.error(X),Promise.reject(X)}function pe(){return U&&s.value!==vn?Promise.resolve():new Promise((X,de)=>{D.add([X,de])})}function fe(X){return U||(U=!X,W(),D.list().forEach(([de,R])=>X?R(X):de()),D.reset()),X}function N(X,de,R,ae){const{scrollBehavior:_e}=e;if(!xr||!_e)return Promise.resolve();const k=!R&&$0(zf(X.fullPath,0))||(ae||!R)&&history.state&&history.state.scroll||null;return so().then(()=>_e(X,de,k)).then($=>$&&z0($)).catch($=>J($,X,de))}const O=X=>r.go(X);let A;const Q=new Set,he={currentRoute:s,listening:!0,addRoute:h,removeRoute:p,clearRoutes:t.clearRoutes,hasRoute:b,getRoutes:g,resolve:m,options:e,push:C,replace:P,go:O,back:()=>O(-1),forward:()=>O(1),beforeEach:i.add,beforeResolve:l.add,afterEach:a.add,onError:Z.add,isReady:pe,install(X){X.component("RouterLink",nx),X.component("RouterView",Kf),X.config.globalProperties.$router=he,Object.defineProperty(X.config.globalProperties,"$route",{enumerable:!0,get:()=>cn(s)}),xr&&!A&&s.value===vn&&(A=!0,C(r.location).catch(ae=>{}));const de={};for(const ae in vn)Object.defineProperty(de,ae,{get:()=>s.value[ae],enumerable:!0});X.provide(ml,he),X.provide(as,Ad(de)),X.provide(ss,s);const R=X.unmount;Q.add(X),X.unmount=function(){Q.delete(X),Q.size<1&&(c=vn,M&&M(),M=null,s.value=vn,A=!1,U=!1),R()}}};function we(X){return X.reduce((de,R)=>de.then(()=>S(R)),Promise.resolve())}return he}function bl(){return $e(ml)}function sx(e){return $e(as)}const cx={id:"app"},dx={__name:"App",setup(e){return(t,o)=>(_t(),Kt("div",cx,[lt(cn(Kf))]))}},H2="modulepreload",D2=function(e){return"/"+e},L2={},Gf=function(t,o,n){let r=Promise.resolve();function i(l){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=l,window.dispatchEvent(a),!a.defaultPrevented)throw l}return r.then(l=>{for(const a of l||[])a.status==="rejected"&&i(a.reason);return t().catch(i)})},xl=(e,t)=>{const o=e.__vccOpts||e;for(const[n,r]of t)o[n]=r;return o},ux={class:"login-container"},fx={class:"login-card"},hx={key:0,class:"error"},px={class:"auth-buttons"},vx=["disabled"],gx=["disabled"],ds=xl({__name:"LoginView",setup(e){const t=bl(),o=V(""),n=V(""),r=V(""),i=V(!1),l=V(!1);async function a(){i.value=!0,r.value="";try{const c=await fetch("/api/method/login",{method:"POST",credentials:"include",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:new URLSearchParams({usr:o.value,pwd:n.value})});if(!c.ok){const d=await c.json();throw new Error(d.message||"账号或密码错误")}window.location.href="http://172.25.162.172:8000/app"}catch(c){r.value=c.message}finally{i.value=!1}}function s(){t.push("/register")}return(c,d)=>(_t(),Kt("div",ux,[d[4]||(d[4]=Ne("div",{class:"bg-pattern"},null,-1)),Ne("div",fx,[d[2]||(d[2]=Ne("div",{class:"logo"},[Ne("span",{class:"brand"},"决裂者终端")],-1)),Ne("form",{onSubmit:gf(a,["prevent"])},[bo(Ne("input",{"onUpdate:modelValue":d[0]||(d[0]=u=>o.value=u),type:"text",placeholder:"请输入账号",required:"",class:"input-field"},null,512),[[br,o.value]]),bo(Ne("input",{"onUpdate:modelValue":d[1]||(d[1]=u=>n.value=u),type:"password",placeholder:"请输入密码",required:"",class:"input-field"},null,512),[[br,n.value]]),r.value?(_t(),Kt("div",hx,Po(r.value),1)):ei("",!0),Ne("div",px,[Ne("button",{type:"submit",disabled:i.value,class:"login-btn"},Po(i.value?"正在登录. . .":"登录"),9,vx),Ne("button",{type:"button",onClick:s,disabled:l.value,class:"register-btn"},Po(l.value?"注册中...":"注册"),9,gx)])],32),d[3]||(d[3]=Ne("p",{class:"footer"},"© 2026 Sunderer games. ",-1))])]))}},[["__scopeId","data-v-6eda41c4"]]),mx={class:"register-view"},bx={class:"container"},xx={key:0,class:"step-email"},yx=["disabled"],Cx={key:0,class:"error-msg"},wx={key:1,class:"step-verify"},Sx={key:0,class:"error-msg"},Rx=xl({__name:"RegisterView",setup(e){const t=bl(),o=V(""),n=V(""),r=V("email"),i=V(""),l=V(!1),a=u=>/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(u),s=async()=>{if(!a(o.value)){i.value="请输入有效的邮箱地址!";return}l.value=!0,i.value="";try{const f=await(await fetch("/api/method/sunderer_app.api.verification.send_signup_code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:o.value})})).json();f.exc?i.value=f.exc:(r.value="verify",console.log("验证码发送成功"))}catch(u){i.value="网络错误,请稍后再试",console.error(u)}finally{l.value=!1}},c=async()=>{if(console.log("DEBUG: verifyAndSignup function called"),console.log("点击完成注册"),console.log("email:",o.value),console.log("code:",n.value),n.value.length!==6){i.value="请输入6位验证码!",console.log("DEBUG: Code length check failed");return}console.log("DEBUG: Code length check passed");try{const f=await(await fetch("/api/method/sunderer_app.api.verification.verify_signup_code",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:o.value,code:n.value})})).json();if(console.log("DEBUG: Verify API Response:",f),f.exc){i.value=f.exc,console.log("DEBUG: Verify API returned error:",f.exc);return}console.log("DEBUG: Verify API succeeded, proceeding to trigger email...");const p=await(await fetch("/api/method/sunderer_app.api.custom_user_signup.trigger_account_setup_email",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({email:o.value})})).json();if(console.log("DEBUG: Trigger Email API Response:",p),p.exc){i.value=p.exc,console.log("DEBUG: Trigger Email API returned error:",p.exc);return}alert("验证成功!请查收邮箱中的注册链接,点击链接完成账户设置。"),console.log("Verification successful, email sent with link."),o.value="",n.value="",r.value="email",i.value=""}catch(u){i.value="网络异常,请稍后再试",console.error("注册异常:",u)}},d=()=>{t.push("/login")};return(u,f)=>(_t(),Kt("div",mx,[Ne("div",bx,[f[2]||(f[2]=Ne("h2",null,"用户注册",-1)),r.value==="email"?(_t(),Kt("div",xx,[bo(Ne("input",{"onUpdate:modelValue":f[0]||(f[0]=h=>o.value=h),type:"email",placeholder:"请输入邮箱地址",class:"input-field"},null,512),[[br,o.value]]),Ne("button",{onClick:s,disabled:l.value,class:"btn-primary"},Po(l.value?"发送中...":"发送验证码"),9,yx),i.value?(_t(),Kt("p",Cx,Po(i.value),1)):ei("",!0)])):r.value==="verify"?(_t(),Kt("div",wx,[bo(Ne("input",{"onUpdate:modelValue":f[1]||(f[1]=h=>n.value=h),type:"text",placeholder:"请输入6位验证码",maxlength:"6",class:"input-field"},null,512),[[br,n.value]]),Ne("button",{onClick:c,class:"btn-primary"}," 完成注册 "),i.value?(_t(),Kt("p",Sx,Po(i.value),1)):ei("",!0)])):ei("",!0),Ne("div",{class:"back-to-login"},[Ne("button",{onClick:d,class:"btn-secondary"}," ← 返回登录 ")])])]))}},[["__scopeId","data-v-14690773"]]),Px={class:"password-setup-container"},_x={class:"setup-card"},kx={class:"input-group"},zx={class:"input-group"},Tx={key:0,class:"error"},$x=["disabled"],qf=xl({__name:"CustomPasswordSetup",setup(e){const t=bl(),o=sx(),n=V(""),r=V(""),i=V(""),l=V(!1),a=async()=>{if(n.value!==r.value){i.value="两次输入的密码不一致";return}if(n.value.length<6){i.value="密码长度至少为6位";return}l.value=!0,i.value="";try{const s=o.query.key;if(!s){i.value="无效的密码重置链接";return}const d=await(await fetch("http://172.25.162.172:8000/api/method/frappe.core.doctype.user.user.update_password",{method:"POST",credentials:"include",headers:{"Content-Type":"application/json"},body:JSON.stringify({key:s,new_password:n.value})})).json();d.exc?i.value=d.exc||"设置密码失败":(alert("密码设置成功!"),t.push("/login"))}catch(s){i.value="网络错误,请稍后再试",console.error(s)}finally{l.value=!1}};return(s,c)=>(_t(),Kt("div",Px,[Ne("div",_x,[c[4]||(c[4]=Ne("h2",null,"设置密码",-1)),Ne("form",{onSubmit:gf(a,["prevent"])},[Ne("div",kx,[c[2]||(c[2]=Ne("label",null,"新密码",-1)),bo(Ne("input",{"onUpdate:modelValue":c[0]||(c[0]=d=>n.value=d),type:"password",placeholder:"请输入新密码",class:"input-field",required:""},null,512),[[br,n.value]])]),Ne("div",zx,[c[3]||(c[3]=Ne("label",null,"确认密码",-1)),bo(Ne("input",{"onUpdate:modelValue":c[1]||(c[1]=d=>r.value=d),type:"password",placeholder:"请再次输入密码",class:"input-field",required:""},null,512),[[br,r.value]])]),i.value?(_t(),Kt("div",Tx,Po(i.value),1)):ei("",!0),Ne("button",{type:"submit",disabled:l.value,class:"btn-primary"},Po(l.value?"设置中...":"设置密码"),9,$x)],32)])]))}},[["__scopeId","data-v-378de9a4"]]);function Ex(e){let t=".",o="__",n="--",r;if(e){let p=e.blockPrefix;p&&(t=p),p=e.elementPrefix,p&&(o=p),p=e.modifierPrefix,p&&(n=p)}const i={install(p){r=p.c;const g=p.context;g.bem={},g.bem.b=null,g.bem.els=null}};function l(p){let g,b;return{before(m){g=m.bem.b,b=m.bem.els,m.bem.els=null},after(m){m.bem.b=g,m.bem.els=b},$({context:m,props:x}){return p=typeof p=="string"?p:p({context:m,props:x}),m.bem.b=p,`${(x==null?void 0:x.bPrefix)||t}${m.bem.b}`}}}function a(p){let g;return{before(b){g=b.bem.els},after(b){b.bem.els=g},$({context:b,props:m}){return p=typeof p=="string"?p:p({context:b,props:m}),b.bem.els=p.split(",").map(x=>x.trim()),b.bem.els.map(x=>`${(m==null?void 0:m.bPrefix)||t}${b.bem.b}${o}${x}`).join(", ")}}}function s(p){return{$({context:g,props:b}){p=typeof p=="string"?p:p({context:g,props:b});const m=p.split(",").map(C=>C.trim());function x(C){return m.map(P=>`&${(b==null?void 0:b.bPrefix)||t}${g.bem.b}${C!==void 0?`${o}${C}`:""}${n}${P}`).join(", ")}const w=g.bem.els;return w!==null?x(w[0]):x()}}}function c(p){return{$({context:g,props:b}){p=typeof p=="string"?p:p({context:g,props:b});const m=g.bem.els;return`&:not(${(b==null?void 0:b.bPrefix)||t}${g.bem.b}${m!==null&&m.length>0?`${o}${m[0]}`:""}${n}${p})`}}}return Object.assign(i,{cB:(...p)=>r(l(p[0]),p[1],p[2]),cE:(...p)=>r(a(p[0]),p[1],p[2]),cM:(...p)=>r(s(p[0]),p[1],p[2]),cNotM:(...p)=>r(c(p[0]),p[1],p[2])}),i}function Fx(e){let t=0;for(let o=0;o<e.length;++o)e[o]==="&"&&++t;return t}const Xf=/\s*,(?![^(]*\))\s*/g,Ax=/\s+/g;function Ix(e,t){const o=[];return t.split(Xf).forEach(n=>{let r=Fx(n);if(r){if(r===1){e.forEach(l=>{o.push(n.replace("&",l))});return}}else{e.forEach(l=>{o.push((l&&l+" ")+n)});return}let i=[n];for(;r--;){const l=[];i.forEach(a=>{e.forEach(s=>{l.push(a.replace("&",s))})}),i=l}i.forEach(l=>o.push(l))}),o}function Ox(e,t){const o=[];return t.split(Xf).forEach(n=>{e.forEach(r=>{o.push((r&&r+" ")+n)})}),o}function Mx(e){let t=[""];return e.forEach(o=>{o=o&&o.trim(),o&&(o.includes("&")?t=Ix(t,o):t=Ox(t,o))}),t.join(", ").replace(Ax," ")}function Yf(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function yl(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function Bx(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function Cl(e){return e?/^\s*@(s|m)/.test(e):!1}const Hx=/[A-Z]/g;function Zf(e){return e.replace(Hx,t=>"-"+t.toLowerCase())}function Dx(e,t=" "){return typeof e=="object"&&e!==null?` {
|
||
`+Object.entries(e).map(o=>t+` ${Zf(o[0])}: ${o[1]};`).join(`
|
||
`)+`
|
||
`+t+"}":`: ${e};`}function Lx(e,t,o){return typeof e=="function"?e({context:t.context,props:o}):e}function Jf(e,t,o,n){if(!t)return"";const r=Lx(t,o,n);if(!r)return"";if(typeof r=="string")return`${e} {
|
||
${r}
|
||
}`;const i=Object.keys(r);if(i.length===0)return o.config.keepEmptyBlock?e+` {
|
||
}`:"";const l=e?[e+" {"]:[];return i.forEach(a=>{const s=r[a];if(a==="raw"){l.push(`
|
||
`+s+`
|
||
`);return}a=Zf(a),s!=null&&l.push(` ${a}${Dx(s)}`)}),e&&l.push("}"),l.join(`
|
||
`)}function us(e,t,o){e&&e.forEach(n=>{if(Array.isArray(n))us(n,t,o);else if(typeof n=="function"){const r=n(t);Array.isArray(r)?us(r,t,o):r&&o(r)}else n&&o(n)})}function Qf(e,t,o,n,r){const i=e.$;let l="";if(!i||typeof i=="string")Cl(i)?l=i:t.push(i);else if(typeof i=="function"){const c=i({context:n.context,props:r});Cl(c)?l=c:t.push(c)}else if(i.before&&i.before(n.context),!i.$||typeof i.$=="string")Cl(i.$)?l=i.$:t.push(i.$);else if(i.$){const c=i.$({context:n.context,props:r});Cl(c)?l=c:t.push(c)}const a=Mx(t),s=Jf(a,e.props,n,r);l?o.push(`${l} {`):s.length&&o.push(s),e.children&&us(e.children,{context:n.context,props:r},c=>{if(typeof c=="string"){const d=Jf(a,{raw:c},n,r);o.push(d)}else Qf(c,t,o,n,r)}),t.pop(),l&&o.push("}"),i&&i.after&&i.after(n.context)}function Nx(e,t,o){const n=[];return Qf(e,[],n,t,o),n.join(`
|
||
|
||
`)}function fs(e){for(var t=0,o,n=0,r=e.length;r>=4;++n,r-=4)o=e.charCodeAt(n)&255|(e.charCodeAt(++n)&255)<<8|(e.charCodeAt(++n)&255)<<16|(e.charCodeAt(++n)&255)<<24,o=(o&65535)*1540483477+((o>>>16)*59797<<16),o^=o>>>24,t=(o&65535)*1540483477+((o>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(r){case 3:t^=(e.charCodeAt(n+2)&255)<<16;case 2:t^=(e.charCodeAt(n+1)&255)<<8;case 1:t^=e.charCodeAt(n)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}typeof window<"u"&&(window.__cssrContext={});function jx(e,t,o,n){const{els:r}=t;if(o===void 0)r.forEach(Yf),t.els=[];else{const i=yl(o,n);i&&r.includes(i)&&(Yf(i),t.els=r.filter(l=>l!==i))}}function eh(e,t){e.push(t)}function Wx(e,t,o,n,r,i,l,a,s){let c;if(o===void 0&&(c=t.render(n),o=fs(c)),s){s.adapter(o,c??t.render(n));return}a===void 0&&(a=document.head);const d=yl(o,a);if(d!==null&&!i)return d;const u=d??Bx(o);if(c===void 0&&(c=t.render(n)),u.textContent=c,d!==null)return d;if(l){const f=a.querySelector(`meta[name="${l}"]`);if(f)return a.insertBefore(u,f),eh(t.els,u),u}return r?a.insertBefore(u,a.querySelector("style, link")):a.appendChild(u),eh(t.els,u),u}function Vx(e){return Nx(this,this.instance,e)}function Ux(e={}){const{id:t,ssr:o,props:n,head:r=!1,force:i=!1,anchorMetaName:l,parent:a}=e;return Wx(this.instance,this,t,n,r,i,l,a,o)}function Kx(e={}){const{id:t,parent:o}=e;jx(this.instance,this,t,o)}const wl=function(e,t,o,n){return{instance:e,$:t,props:o,children:n,els:[],render:Vx,mount:Ux,unmount:Kx}},Gx=function(e,t,o,n){return Array.isArray(t)?wl(e,{$:null},null,t):Array.isArray(o)?wl(e,t,null,o):Array.isArray(n)?wl(e,t,o,n):wl(e,t,o,null)};function th(e={}){const t={c:(...o)=>Gx(t,...o),use:(o,...n)=>o.install(t,...n),find:yl,context:{},config:e};return t}function qx(e,t){if(e===void 0)return!1;if(t){const{context:{ids:o}}=t;return o.has(e)}return yl(e)!==null}const si=".n-",Xx="__",Yx="--",oh=th(),nh=Ex({blockPrefix:si,elementPrefix:Xx,modifierPrefix:Yx});oh.use(nh);const{c:L,find:U2}=oh,{cB:I,cE:H,cM:Y,cNotM:Ye}=nh;function Sl(e){return L(({props:{bPrefix:t}})=>`${t||si}modal, ${t||si}drawer`,[e])}function Rl(e){return L(({props:{bPrefix:t}})=>`${t||si}popover`,[e])}function Zx(e){return L(({props:{bPrefix:t}})=>`&${t||si}modal`,e)}const Jx=(...e)=>L(">",[I(...e)]);function me(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,o=>o.toUpperCase()))}let Pl=[];const rh=new WeakMap;function Qx(){Pl.forEach(e=>e(...rh.get(e))),Pl=[]}function _l(e,...t){rh.set(e,t),!Pl.includes(e)&&Pl.push(e)===1&&requestAnimationFrame(Qx)}function uo(e,t){let{target:o}=e;for(;o;){if(o.dataset&&o.dataset[t]!==void 0)return!0;o=o.parentElement}return!1}function ci(e){return e.composedPath()[0]||null}function mn(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function At(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function no(e,t){const o=e.trim().split(/\s+/g),n={top:o[0]};switch(o.length){case 1:n.right=o[0],n.bottom=o[0],n.left=o[0];break;case 2:n.right=o[1],n.left=o[1],n.bottom=o[0];break;case 3:n.right=o[1],n.bottom=o[2],n.left=o[1];break;case 4:n.right=o[1],n.bottom=o[2],n.left=o[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?n:n[t]}const ih={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aqua:"#0FF",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000",blanchedalmond:"#FFEBCD",blue:"#00F",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#0FF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgrey:"#A9A9A9",darkgreen:"#006400",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:"#F0F",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgray:"#D3D3D3",lightgrey:"#D3D3D3",lightgreen:"#90EE90",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",lime:"#0F0",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#F0F",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:"#F00",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:"#FFF",whitesmoke:"#F5F5F5",yellow:"#FF0",yellowgreen:"#9ACD32",transparent:"#0000"};function ey(e,t,o){t/=100,o/=100;let n=(r,i=(r+e/60)%6)=>o-o*t*Math.max(Math.min(i,4-i,1),0);return[n(5)*255,n(3)*255,n(1)*255]}function ty(e,t,o){t/=100,o/=100;let n=t*Math.min(o,1-o),r=(i,l=(i+e/30)%12)=>o-n*Math.max(Math.min(l-3,9-l,1),-1);return[r(0)*255,r(8)*255,r(4)*255]}const Fo="^\\s*",Ao="\\s*$",bn="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",ro="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",Nn="([0-9A-Fa-f])",jn="([0-9A-Fa-f]{2})",lh=new RegExp(`${Fo}hsl\\s*\\(${ro},${bn},${bn}\\)${Ao}`),ah=new RegExp(`${Fo}hsv\\s*\\(${ro},${bn},${bn}\\)${Ao}`),sh=new RegExp(`${Fo}hsla\\s*\\(${ro},${bn},${bn},${ro}\\)${Ao}`),ch=new RegExp(`${Fo}hsva\\s*\\(${ro},${bn},${bn},${ro}\\)${Ao}`),oy=new RegExp(`${Fo}rgb\\s*\\(${ro},${ro},${ro}\\)${Ao}`),ny=new RegExp(`${Fo}rgba\\s*\\(${ro},${ro},${ro},${ro}\\)${Ao}`),ry=new RegExp(`${Fo}#${Nn}${Nn}${Nn}${Ao}`),iy=new RegExp(`${Fo}#${jn}${jn}${jn}${Ao}`),ly=new RegExp(`${Fo}#${Nn}${Nn}${Nn}${Nn}${Ao}`),ay=new RegExp(`${Fo}#${jn}${jn}${jn}${jn}${Ao}`);function Jt(e){return parseInt(e,16)}function sy(e){try{let t;if(t=sh.exec(e))return[zl(t[1]),xn(t[5]),xn(t[9]),Vn(t[13])];if(t=lh.exec(e))return[zl(t[1]),xn(t[5]),xn(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function cy(e){try{let t;if(t=ch.exec(e))return[zl(t[1]),xn(t[5]),xn(t[9]),Vn(t[13])];if(t=ah.exec(e))return[zl(t[1]),xn(t[5]),xn(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function Wn(e){try{let t;if(t=iy.exec(e))return[Jt(t[1]),Jt(t[2]),Jt(t[3]),1];if(t=oy.exec(e))return[Dt(t[1]),Dt(t[5]),Dt(t[9]),1];if(t=ny.exec(e))return[Dt(t[1]),Dt(t[5]),Dt(t[9]),Vn(t[13])];if(t=ry.exec(e))return[Jt(t[1]+t[1]),Jt(t[2]+t[2]),Jt(t[3]+t[3]),1];if(t=ay.exec(e))return[Jt(t[1]),Jt(t[2]),Jt(t[3]),Vn(Jt(t[4])/255)];if(t=ly.exec(e))return[Jt(t[1]+t[1]),Jt(t[2]+t[2]),Jt(t[3]+t[3]),Vn(Jt(t[4]+t[4])/255)];if(e in ih)return Wn(ih[e]);if(lh.test(e)||sh.test(e)){const[o,n,r,i]=sy(e);return[...ty(o,n,r),i]}else if(ah.test(e)||ch.test(e)){const[o,n,r,i]=cy(e);return[...ey(o,n,r),i]}throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function dy(e){return e>1?1:e<0?0:e}function hs(e,t,o,n){return`rgba(${Dt(e)}, ${Dt(t)}, ${Dt(o)}, ${dy(n)})`}function ps(e,t,o,n,r){return Dt((e*t*(1-n)+o*n)/r)}function Ue(e,t){Array.isArray(e)||(e=Wn(e)),Array.isArray(t)||(t=Wn(t));const o=e[3],n=t[3],r=Vn(o+n-o*n);return hs(ps(e[0],o,t[0],n,r),ps(e[1],o,t[1],n,r),ps(e[2],o,t[2],n,r),r)}function Le(e,t){const[o,n,r,i=1]=Array.isArray(e)?e:Wn(e);return typeof t.alpha=="number"?hs(o,n,r,t.alpha):hs(o,n,r,i)}function kl(e,t){const[o,n,r,i=1]=Array.isArray(e)?e:Wn(e),{lightness:l=1,alpha:a=1}=t;return uy([o*l,n*l,r*l,i*a])}function Vn(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function zl(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function Dt(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function xn(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function uy(e){const[t,o,n]=e;return 3 in e?`rgba(${Dt(t)}, ${Dt(o)}, ${Dt(n)}, ${Vn(e[3])})`:`rgba(${Dt(t)}, ${Dt(o)}, ${Dt(n)}, 1)`}function Tl(e=8){return Math.random().toString(16).slice(2,2+e)}function fy(e,t){const o=[];for(let n=0;n<e;++n)o.push(t);return o}function $l(e){return e.composedPath()[0]}const hy={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function py(e,t,o){if(e==="mousemoveoutside"){const n=r=>{t.contains($l(r))||o(r)};return{mousemove:n,touchstart:n}}else if(e==="clickoutside"){let n=!1;const r=l=>{n=!t.contains($l(l))},i=l=>{n&&(t.contains($l(l))||o(l))};return{mousedown:r,mouseup:i,touchstart:r,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function dh(e,t,o){const n=hy[e];let r=n.get(t);r===void 0&&n.set(t,r=new WeakMap);let i=r.get(o);return i===void 0&&r.set(o,i=py(e,t,o)),i}function vy(e,t,o,n){if(e==="mousemoveoutside"||e==="clickoutside"){const r=dh(e,t,o);return Object.keys(r).forEach(i=>{bt(i,document,r[i],n)}),!0}return!1}function gy(e,t,o,n){if(e==="mousemoveoutside"||e==="clickoutside"){const r=dh(e,t,o);return Object.keys(r).forEach(i=>{ct(i,document,r[i],n)}),!0}return!1}function my(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function o(){e.set(this,!0)}function n(){e.set(this,!0),t.set(this,!0)}function r(y,B,S){const E=y[B];return y[B]=function(){return S.apply(y,arguments),E.apply(y,arguments)},y}function i(y,B){y[B]=Event.prototype[B]}const l=new WeakMap,a=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function s(){var y;return(y=l.get(this))!==null&&y!==void 0?y:null}function c(y,B){a!==void 0&&Object.defineProperty(y,"currentTarget",{configurable:!0,enumerable:!0,get:B??a.get})}const d={bubble:{},capture:{}},u={};function f(){const y=function(B){const{type:S,eventPhase:E,bubbles:j}=B,_=$l(B);if(E===2)return;const M=E===1?"capture":"bubble";let W=_;const D=[];for(;W===null&&(W=window),D.push(W),W!==window;)W=W.parentNode||null;const Z=d.capture[S],U=d.bubble[S];if(r(B,"stopPropagation",o),r(B,"stopImmediatePropagation",n),c(B,s),M==="capture"){if(Z===void 0)return;for(let J=D.length-1;J>=0&&!e.has(B);--J){const pe=D[J],fe=Z.get(pe);if(fe!==void 0){l.set(B,pe);for(const N of fe){if(t.has(B))break;N(B)}}if(J===0&&!j&&U!==void 0){const N=U.get(pe);if(N!==void 0)for(const O of N){if(t.has(B))break;O(B)}}}}else if(M==="bubble"){if(U===void 0)return;for(let J=0;J<D.length&&!e.has(B);++J){const pe=D[J],fe=U.get(pe);if(fe!==void 0){l.set(B,pe);for(const N of fe){if(t.has(B))break;N(B)}}}}i(B,"stopPropagation"),i(B,"stopImmediatePropagation"),c(B)};return y.displayName="evtdUnifiedHandler",y}function h(){const y=function(B){const{type:S,eventPhase:E}=B;if(E!==2)return;const j=u[S];j!==void 0&&j.forEach(_=>_(B))};return y.displayName="evtdUnifiedWindowEventHandler",y}const p=f(),g=h();function b(y,B){const S=d[y];return S[B]===void 0&&(S[B]=new Map,window.addEventListener(B,p,y==="capture")),S[B]}function m(y){return u[y]===void 0&&(u[y]=new Set,window.addEventListener(y,g)),u[y]}function x(y,B){let S=y.get(B);return S===void 0&&y.set(B,S=new Set),S}function w(y,B,S,E){const j=d[B][S];if(j!==void 0){const _=j.get(y);if(_!==void 0&&_.has(E))return!0}return!1}function C(y,B){const S=u[y];return!!(S!==void 0&&S.has(B))}function P(y,B,S,E){let j;if(typeof E=="object"&&E.once===!0?j=Z=>{T(y,B,j,E),S(Z)}:j=S,vy(y,B,j,E))return;const M=E===!0||typeof E=="object"&&E.capture===!0?"capture":"bubble",W=b(M,y),D=x(W,B);if(D.has(j)||D.add(j),B===window){const Z=m(y);Z.has(j)||Z.add(j)}}function T(y,B,S,E){if(gy(y,B,S,E))return;const _=E===!0||typeof E=="object"&&E.capture===!0,M=_?"capture":"bubble",W=b(M,y),D=x(W,B);if(B===window&&!w(B,_?"bubble":"capture",y,S)&&C(y,S)){const U=u[y];U.delete(S),U.size===0&&(window.removeEventListener(y,g),u[y]=void 0)}D.has(S)&&D.delete(S),D.size===0&&W.delete(B),W.size===0&&(window.removeEventListener(y,p,M==="capture"),d[M][y]=void 0)}return{on:P,off:T}}const{on:bt,off:ct}=my();function by(e){const t=V(!!e.value);if(t.value)return Fn(t);const o=st(e,n=>{n&&(t.value=!0,o())});return Fn(t)}function Ze(e){const t=F(e),o=V(t.value);return st(t,n=>{o.value=n}),typeof e=="function"?o:{__v_isRef:!0,get value(){return o.value},set value(n){e.set(n)}}}function xy(){return Hn()!==null}const yy=typeof window<"u";let wr,di;(()=>{var e,t;wr=yy?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,di=!1,wr!==void 0?wr.then(()=>{di=!0}):di=!0})();function Cy(e){if(di)return;let t=!1;Bt(()=>{di||wr==null||wr.then(()=>{t||e()})}),Ft(()=>{t=!0})}function It(e,t){return st(e,o=>{o!==void 0&&(t.value=o)}),F(()=>e.value===void 0?t.value:e.value)}function El(){const e=V(!1);return Bt(()=>{e.value=!0}),Fn(e)}function vs(e,t){return F(()=>{for(const o of t)if(e[o]!==void 0)return e[o];return e[t[t.length-1]]})}const wy=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function Sy(){return wy}function Ry(e={},t){const o=Nr({ctrl:!1,command:!1,win:!1,shift:!1,tab:!1}),{keydown:n,keyup:r}=e,i=s=>{switch(s.key){case"Control":o.ctrl=!0;break;case"Meta":o.command=!0,o.win=!0;break;case"Shift":o.shift=!0;break;case"Tab":o.tab=!0;break}n!==void 0&&Object.keys(n).forEach(c=>{if(c!==s.key)return;const d=n[c];if(typeof d=="function")d(s);else{const{stop:u=!1,prevent:f=!1}=d;u&&s.stopPropagation(),f&&s.preventDefault(),d.handler(s)}})},l=s=>{switch(s.key){case"Control":o.ctrl=!1;break;case"Meta":o.command=!1,o.win=!1;break;case"Shift":o.shift=!1;break;case"Tab":o.tab=!1;break}r!==void 0&&Object.keys(r).forEach(c=>{if(c!==s.key)return;const d=r[c];if(typeof d=="function")d(s);else{const{stop:u=!1,prevent:f=!1}=d;u&&s.stopPropagation(),f&&s.preventDefault(),d.handler(s)}})},a=()=>{(t===void 0||t.value)&&(bt("keydown",document,i),bt("keyup",document,l)),t!==void 0&&st(t,s=>{s?(bt("keydown",document,i),bt("keyup",document,l)):(ct("keydown",document,i),ct("keyup",document,l))})};return xy()?(qr(a),Ft(()=>{(t===void 0||t.value)&&(ct("keydown",document,i),ct("keyup",document,l))})):a(),Fn(o)}function G2(e){return e}const gs="n-internal-select-menu",uh="n-internal-select-menu-body",ms="n-drawer-body",bs="n-modal-body",Fl="n-popover-body",fh="__disabled__";function Io(e){const t=$e(bs,null),o=$e(ms,null),n=$e(Fl,null),r=$e(uh,null),i=V();if(typeof document<"u"){i.value=document.fullscreenElement;const l=()=>{i.value=document.fullscreenElement};Bt(()=>{bt("fullscreenchange",document,l)}),Ft(()=>{ct("fullscreenchange",document,l)})}return Ze(()=>{var l;const{to:a}=e;return a!==void 0?a===!1?fh:a===!0?i.value||"body":a:t!=null&&t.value?(l=t.value.$el)!==null&&l!==void 0?l:t.value:o!=null&&o.value?o.value:n!=null&&n.value?n.value:r!=null&&r.value?r.value:a??(i.value||"body")})}Io.tdkey=fh,Io.propTo={type:[String,Object,Boolean],default:void 0};function Py(e,t,o){const n=V(e.value);let r=null;return st(e,i=>{r!==null&&window.clearTimeout(r),i===!0?o&&!o.value?n.value=!0:r=window.setTimeout(()=>{n.value=!0},t):n.value=!1}),n}const ui=typeof document<"u"&&typeof window<"u";function xs(e){const t={isDeactivated:!1};let o=!1;return Ia(()=>{if(t.isDeactivated=!1,!o){o=!0;return}e()}),rl(()=>{t.isDeactivated=!0,o||(o=!0)}),t}function ys(e,t,o="default"){const n=t[o];if(n===void 0)throw new Error(`[vueuc/${e}]: slot[${o}] is empty.`);return n()}function Cs(e,t=!0,o=[]){return e.forEach(n=>{if(n!==null){if(typeof n!="object"){(typeof n=="string"||typeof n=="number")&&o.push(un(String(n)));return}if(Array.isArray(n)){Cs(n,t,o);return}if(n.type===it){if(n.children===null)return;Array.isArray(n.children)&&Cs(n.children,t,o)}else n.type!==Pt&&o.push(n)}}),o}function hh(e,t,o="default"){const n=t[o];if(n===void 0)throw new Error(`[vueuc/${e}]: slot[${o}] is empty.`);const r=Cs(n());if(r.length===1)return r[0];throw new Error(`[vueuc/${e}]: slot[${o}] should have exactly one child.`)}let yn=null;function ph(){if(yn===null&&(yn=document.getElementById("v-binder-view-measurer"),yn===null)){yn=document.createElement("div"),yn.id="v-binder-view-measurer";const{style:e}=yn;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(yn)}return yn.getBoundingClientRect()}function _y(e,t){const o=ph();return{top:t,left:e,height:0,width:0,right:o.width-e,bottom:o.height-t}}function ws(e){const t=e.getBoundingClientRect(),o=ph();return{left:t.left-o.left,top:t.top-o.top,bottom:o.height+o.top-t.bottom,right:o.width+o.left-t.right,width:t.width,height:t.height}}function ky(e){return e.nodeType===9?null:e.parentNode}function vh(e){if(e===null)return null;const t=ky(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:o,overflowX:n,overflowY:r}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(o+r+n))return t}return vh(t)}const Ss=ve({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;tt("VBinder",(t=Hn())===null||t===void 0?void 0:t.proxy);const o=$e("VBinder",null),n=V(null),r=m=>{n.value=m,o&&e.syncTargetWithParent&&o.setTargetRef(m)};let i=[];const l=()=>{let m=n.value;for(;m=vh(m),m!==null;)i.push(m);for(const x of i)bt("scroll",x,u,!0)},a=()=>{for(const m of i)ct("scroll",m,u,!0);i=[]},s=new Set,c=m=>{s.size===0&&l(),s.has(m)||s.add(m)},d=m=>{s.has(m)&&s.delete(m),s.size===0&&a()},u=()=>{_l(f)},f=()=>{s.forEach(m=>m())},h=new Set,p=m=>{h.size===0&&bt("resize",window,b),h.has(m)||h.add(m)},g=m=>{h.has(m)&&h.delete(m),h.size===0&&ct("resize",window,b)},b=()=>{h.forEach(m=>m())};return Ft(()=>{ct("resize",window,b),a()}),{targetRef:n,setTargetRef:r,addScrollListener:c,removeScrollListener:d,addResizeListener:p,removeResizeListener:g}},render(){return ys("binder",this.$slots)}}),Rs=ve({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=$e("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?bo(hh("follower",this.$slots),[[t]]):hh("follower",this.$slots)}}),Sr="@@mmoContext",zy={mounted(e,{value:t}){e[Sr]={handler:void 0},typeof t=="function"&&(e[Sr].handler=t,bt("mousemoveoutside",e,t))},updated(e,{value:t}){const o=e[Sr];typeof t=="function"?o.handler?o.handler!==t&&(ct("mousemoveoutside",e,o.handler),o.handler=t,bt("mousemoveoutside",e,t)):(e[Sr].handler=t,bt("mousemoveoutside",e,t)):o.handler&&(ct("mousemoveoutside",e,o.handler),o.handler=void 0)},unmounted(e){const{handler:t}=e[Sr];t&&ct("mousemoveoutside",e,t),e[Sr].handler=void 0}},Rr="@@coContext",Al={mounted(e,{value:t,modifiers:o}){e[Rr]={handler:void 0},typeof t=="function"&&(e[Rr].handler=t,bt("clickoutside",e,t,{capture:o.capture}))},updated(e,{value:t,modifiers:o}){const n=e[Rr];typeof t=="function"?n.handler?n.handler!==t&&(ct("clickoutside",e,n.handler,{capture:o.capture}),n.handler=t,bt("clickoutside",e,t,{capture:o.capture})):(e[Rr].handler=t,bt("clickoutside",e,t,{capture:o.capture})):n.handler&&(ct("clickoutside",e,n.handler,{capture:o.capture}),n.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:o}=e[Rr];o&&ct("clickoutside",e,o,{capture:t.capture}),e[Rr].handler=void 0}};function Ty(e,t){console.error(`[vdirs/${e}]: ${t}`)}class $y{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,o){const{elementZIndex:n}=this;if(o!==void 0){t.style.zIndex=`${o}`,n.delete(t);return}const{nextZIndex:r}=this;n.has(t)&&n.get(t)+1===this.nextZIndex||(t.style.zIndex=`${r}`,n.set(t,r),this.nextZIndex=r+1,this.squashState())}unregister(t,o){const{elementZIndex:n}=this;n.has(t)?n.delete(t):o===void 0&&Ty("z-index-manager/unregister-element","Element not found when unregistering."),this.squashState()}squashState(){const{elementCount:t}=this;t||(this.nextZIndex=2e3),this.nextZIndex-t>2500&&this.rearrange()}rearrange(){const t=Array.from(this.elementZIndex.entries());t.sort((o,n)=>o[1]-n[1]),this.nextZIndex=2e3,t.forEach(o=>{const n=o[0],r=this.nextZIndex++;`${r}`!==n.style.zIndex&&(n.style.zIndex=`${r}`)})}}const Ps=new $y,Pr="@@ziContext",gh={mounted(e,t){const{value:o={}}=t,{zIndex:n,enabled:r}=o;e[Pr]={enabled:!!r,initialized:!1},r&&(Ps.ensureZIndex(e,n),e[Pr].initialized=!0)},updated(e,t){const{value:o={}}=t,{zIndex:n,enabled:r}=o,i=e[Pr].enabled;r&&!i&&(Ps.ensureZIndex(e,n),e[Pr].initialized=!0),e[Pr].enabled=!!r},unmounted(e,t){if(!e[Pr].initialized)return;const{value:o={}}=t,{zIndex:n}=o;Ps.unregister(e,n)}},Ey="@css-render/vue3-ssr";function Fy(e,t){return`<style cssr-id="${e}">
|
||
${t}
|
||
</style>`}function Ay(e,t,o){const{styles:n,ids:r}=o;r.has(e)||n!==null&&(r.add(e),n.push(Fy(e,t)))}const Iy=typeof document<"u";function Un(){if(Iy)return;const e=$e(Ey,null);if(e!==null)return{adapter:(t,o)=>Ay(t,o,e),context:e}}function mh(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:Cn}=th(),_s="vueuc-style";function bh(e){return e&-e}class xh{constructor(t,o){this.l=t,this.min=o;const n=new Array(t+1);for(let r=0;r<t+1;++r)n[r]=0;this.ft=n}add(t,o){if(o===0)return;const{l:n,ft:r}=this;for(t+=1;t<=n;)r[t]+=o,t+=bh(t)}get(t){return this.sum(t+1)-this.sum(t)}sum(t){if(t===void 0&&(t=this.l),t<=0)return 0;const{ft:o,min:n,l:r}=this;if(t>r)throw new Error("[FinweckTree.sum]: `i` is larger than length.");let i=t*n;for(;t>0;)i+=o[t],t-=bh(t);return i}getBound(t){let o=0,n=this.l;for(;n>o;){const r=Math.floor((o+n)/2),i=this.sum(r);if(i>t){n=r;continue}else if(i<t){if(o===r)return this.sum(o+1)<=t?o+1:r;o=r}else return r}return o}}function yh(e){return typeof e=="string"?document.querySelector(e):e()||null}const Oy=ve({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:by(Se(e,"show")),mergedTo:F(()=>{const{to:t}=e;return t??"body"})}},render(){return this.showTeleport?this.disabled?ys("lazy-teleport",this.$slots):v(km,{disabled:this.disabled,to:this.mergedTo},ys("lazy-teleport",this.$slots)):null}}),Il={top:"bottom",bottom:"top",left:"right",right:"left"},Ch={start:"end",center:"center",end:"start"},ks={top:"height",bottom:"height",left:"width",right:"width"},My={"bottom-start":"top left",bottom:"top center","bottom-end":"top right","top-start":"bottom left",top:"bottom center","top-end":"bottom right","right-start":"top left",right:"center left","right-end":"bottom left","left-start":"top right",left:"center right","left-end":"bottom right"},By={"bottom-start":"bottom left",bottom:"bottom center","bottom-end":"bottom right","top-start":"top left",top:"top center","top-end":"top right","right-start":"top right",right:"center right","right-end":"bottom right","left-start":"top left",left:"center left","left-end":"bottom left"},Hy={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},wh={top:!0,bottom:!1,left:!0,right:!1},Sh={top:"end",bottom:"start",left:"end",right:"start"};function Dy(e,t,o,n,r,i){if(!r||i)return{placement:e,top:0,left:0};const[l,a]=e.split("-");let s=a??"center",c={top:0,left:0};const d=(h,p,g)=>{let b=0,m=0;const x=o[h]-t[p]-t[h];return x>0&&n&&(g?m=wh[p]?x:-x:b=wh[p]?x:-x),{left:b,top:m}},u=l==="left"||l==="right";if(s!=="center"){const h=Hy[e],p=Il[h],g=ks[h];if(o[g]>t[g]){if(t[h]+t[g]<o[g]){const b=(o[g]-t[g])/2;t[h]<b||t[p]<b?t[h]<t[p]?(s=Ch[a],c=d(g,p,u)):c=d(g,h,u):s="center"}}else o[g]<t[g]&&t[p]<0&&t[h]>t[p]&&(s=Ch[a])}else{const h=l==="bottom"||l==="top"?"left":"top",p=Il[h],g=ks[h],b=(o[g]-t[g])/2;(t[h]<b||t[p]<b)&&(t[h]>t[p]?(s=Sh[h],c=d(g,h,u)):(s=Sh[p],c=d(g,p,u)))}let f=l;return t[l]<o[ks[l]]&&t[l]<t[Il[l]]&&(f=Il[l]),{placement:s!=="center"?`${f}-${s}`:f,left:c.left,top:c.top}}function Ly(e,t){return t?By[e]:My[e]}function Ny(e,t,o,n,r,i){if(i)switch(e){case"bottom-start":return{top:`${Math.round(o.top-t.top+o.height)}px`,left:`${Math.round(o.left-t.left)}px`,transform:"translateY(-100%)"};case"bottom-end":return{top:`${Math.round(o.top-t.top+o.height)}px`,left:`${Math.round(o.left-t.left+o.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top-start":return{top:`${Math.round(o.top-t.top)}px`,left:`${Math.round(o.left-t.left)}px`,transform:""};case"top-end":return{top:`${Math.round(o.top-t.top)}px`,left:`${Math.round(o.left-t.left+o.width)}px`,transform:"translateX(-100%)"};case"right-start":return{top:`${Math.round(o.top-t.top)}px`,left:`${Math.round(o.left-t.left+o.width)}px`,transform:"translateX(-100%)"};case"right-end":return{top:`${Math.round(o.top-t.top+o.height)}px`,left:`${Math.round(o.left-t.left+o.width)}px`,transform:"translateX(-100%) translateY(-100%)"};case"left-start":return{top:`${Math.round(o.top-t.top)}px`,left:`${Math.round(o.left-t.left)}px`,transform:""};case"left-end":return{top:`${Math.round(o.top-t.top+o.height)}px`,left:`${Math.round(o.left-t.left)}px`,transform:"translateY(-100%)"};case"top":return{top:`${Math.round(o.top-t.top)}px`,left:`${Math.round(o.left-t.left+o.width/2)}px`,transform:"translateX(-50%)"};case"right":return{top:`${Math.round(o.top-t.top+o.height/2)}px`,left:`${Math.round(o.left-t.left+o.width)}px`,transform:"translateX(-100%) translateY(-50%)"};case"left":return{top:`${Math.round(o.top-t.top+o.height/2)}px`,left:`${Math.round(o.left-t.left)}px`,transform:"translateY(-50%)"};case"bottom":default:return{top:`${Math.round(o.top-t.top+o.height)}px`,left:`${Math.round(o.left-t.left+o.width/2)}px`,transform:"translateX(-50%) translateY(-100%)"}}switch(e){case"bottom-start":return{top:`${Math.round(o.top-t.top+o.height+n)}px`,left:`${Math.round(o.left-t.left+r)}px`,transform:""};case"bottom-end":return{top:`${Math.round(o.top-t.top+o.height+n)}px`,left:`${Math.round(o.left-t.left+o.width+r)}px`,transform:"translateX(-100%)"};case"top-start":return{top:`${Math.round(o.top-t.top+n)}px`,left:`${Math.round(o.left-t.left+r)}px`,transform:"translateY(-100%)"};case"top-end":return{top:`${Math.round(o.top-t.top+n)}px`,left:`${Math.round(o.left-t.left+o.width+r)}px`,transform:"translateX(-100%) translateY(-100%)"};case"right-start":return{top:`${Math.round(o.top-t.top+n)}px`,left:`${Math.round(o.left-t.left+o.width+r)}px`,transform:""};case"right-end":return{top:`${Math.round(o.top-t.top+o.height+n)}px`,left:`${Math.round(o.left-t.left+o.width+r)}px`,transform:"translateY(-100%)"};case"left-start":return{top:`${Math.round(o.top-t.top+n)}px`,left:`${Math.round(o.left-t.left+r)}px`,transform:"translateX(-100%)"};case"left-end":return{top:`${Math.round(o.top-t.top+o.height+n)}px`,left:`${Math.round(o.left-t.left+r)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top":return{top:`${Math.round(o.top-t.top+n)}px`,left:`${Math.round(o.left-t.left+o.width/2+r)}px`,transform:"translateY(-100%) translateX(-50%)"};case"right":return{top:`${Math.round(o.top-t.top+o.height/2+n)}px`,left:`${Math.round(o.left-t.left+o.width+r)}px`,transform:"translateY(-50%)"};case"left":return{top:`${Math.round(o.top-t.top+o.height/2+n)}px`,left:`${Math.round(o.left-t.left+r)}px`,transform:"translateY(-50%) translateX(-100%)"};case"bottom":default:return{top:`${Math.round(o.top-t.top+o.height+n)}px`,left:`${Math.round(o.left-t.left+o.width/2+r)}px`,transform:"translateX(-50%)"}}}const jy=Cn([Cn(".v-binder-follower-container",{position:"absolute",left:"0",right:"0",top:"0",height:"0",pointerEvents:"none",zIndex:"auto"}),Cn(".v-binder-follower-content",{position:"absolute",zIndex:"auto"},[Cn("> *",{pointerEvents:"all"})])]),zs=ve({name:"Follower",inheritAttrs:!1,props:{show:Boolean,enabled:{type:Boolean,default:void 0},placement:{type:String,default:"bottom"},syncTrigger:{type:Array,default:["resize","scroll"]},to:[String,Object],flip:{type:Boolean,default:!0},internalShift:Boolean,x:Number,y:Number,width:String,minWidth:String,containerClass:String,teleportDisabled:Boolean,zindexable:{type:Boolean,default:!0},zIndex:Number,overlap:Boolean},setup(e){const t=$e("VBinder"),o=Ze(()=>e.enabled!==void 0?e.enabled:e.show),n=V(null),r=V(null),i=()=>{const{syncTrigger:f}=e;f.includes("scroll")&&t.addScrollListener(s),f.includes("resize")&&t.addResizeListener(s)},l=()=>{t.removeScrollListener(s),t.removeResizeListener(s)};Bt(()=>{o.value&&(s(),i())});const a=Un();jy.mount({id:"vueuc/binder",head:!0,anchorMetaName:_s,ssr:a}),Ft(()=>{l()}),Cy(()=>{o.value&&s()});const s=()=>{if(!o.value)return;const f=n.value;if(f===null)return;const h=t.targetRef,{x:p,y:g,overlap:b}=e,m=p!==void 0&&g!==void 0?_y(p,g):ws(h);f.style.setProperty("--v-target-width",`${Math.round(m.width)}px`),f.style.setProperty("--v-target-height",`${Math.round(m.height)}px`);const{width:x,minWidth:w,placement:C,internalShift:P,flip:T}=e;f.setAttribute("v-placement",C),b?f.setAttribute("v-overlap",""):f.removeAttribute("v-overlap");const{style:y}=f;x==="target"?y.width=`${m.width}px`:x!==void 0?y.width=x:y.width="",w==="target"?y.minWidth=`${m.width}px`:w!==void 0?y.minWidth=w:y.minWidth="";const B=ws(f),S=ws(r.value),{left:E,top:j,placement:_}=Dy(C,m,B,P,T,b),M=Ly(_,b),{left:W,top:D,transform:Z}=Ny(_,S,m,j,E,b);f.setAttribute("v-placement",_),f.style.setProperty("--v-offset-left",`${Math.round(E)}px`),f.style.setProperty("--v-offset-top",`${Math.round(j)}px`),f.style.transform=`translateX(${W}) translateY(${D}) ${Z}`,f.style.setProperty("--v-transform-origin",M),f.style.transformOrigin=M};st(o,f=>{f?(i(),c()):l()});const c=()=>{so().then(s).catch(f=>console.error(f))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(f=>{st(Se(e,f),s)}),["teleportDisabled"].forEach(f=>{st(Se(e,f),c)}),st(Se(e,"syncTrigger"),f=>{f.includes("resize")?t.addResizeListener(s):t.removeResizeListener(s),f.includes("scroll")?t.addScrollListener(s):t.removeScrollListener(s)});const d=El(),u=Ze(()=>{const{to:f}=e;if(f!==void 0)return f;d.value});return{VBinder:t,mergedEnabled:o,offsetContainerRef:r,followerRef:n,mergedTo:u,syncPosition:s}},render(){return v(Oy,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const o=v("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[v("div",{class:"v-binder-follower-content",ref:"followerRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))]);return this.zindexable?bo(o,[[gh,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):o}})}});var Kn=[],Wy=function(){return Kn.some(function(e){return e.activeTargets.length>0})},Vy=function(){return Kn.some(function(e){return e.skippedTargets.length>0})},Rh="ResizeObserver loop completed with undelivered notifications.",Uy=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Rh}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Rh),window.dispatchEvent(e)},fi;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(fi||(fi={}));var Gn=function(e){return Object.freeze(e)},Ky=function(){function e(t,o){this.inlineSize=t,this.blockSize=o,Gn(this)}return e}(),Ph=function(){function e(t,o,n,r){return this.x=t,this.y=o,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Gn(this)}return e.prototype.toJSON=function(){var t=this,o=t.x,n=t.y,r=t.top,i=t.right,l=t.bottom,a=t.left,s=t.width,c=t.height;return{x:o,y:n,top:r,right:i,bottom:l,left:a,width:s,height:c}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Ts=function(e){return e instanceof SVGElement&&"getBBox"in e},_h=function(e){if(Ts(e)){var t=e.getBBox(),o=t.width,n=t.height;return!o&&!n}var r=e,i=r.offsetWidth,l=r.offsetHeight;return!(i||l||e.getClientRects().length)},kh=function(e){var t;if(e instanceof Element)return!0;var o=(t=e==null?void 0:e.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(o&&e instanceof o.Element)},Gy=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},hi=typeof window<"u"?window:{},Ol=new WeakMap,zh=/auto|scroll/,qy=/^tb|vertical/,Xy=/msie|trident/i.test(hi.navigator&&hi.navigator.userAgent),Oo=function(e){return parseFloat(e||"0")},_r=function(e,t,o){return e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=!1),new Ky((o?t:e)||0,(o?e:t)||0)},Th=Gn({devicePixelContentBoxSize:_r(),borderBoxSize:_r(),contentBoxSize:_r(),contentRect:new Ph(0,0,0,0)}),$h=function(e,t){if(t===void 0&&(t=!1),Ol.has(e)&&!t)return Ol.get(e);if(_h(e))return Ol.set(e,Th),Th;var o=getComputedStyle(e),n=Ts(e)&&e.ownerSVGElement&&e.getBBox(),r=!Xy&&o.boxSizing==="border-box",i=qy.test(o.writingMode||""),l=!n&&zh.test(o.overflowY||""),a=!n&&zh.test(o.overflowX||""),s=n?0:Oo(o.paddingTop),c=n?0:Oo(o.paddingRight),d=n?0:Oo(o.paddingBottom),u=n?0:Oo(o.paddingLeft),f=n?0:Oo(o.borderTopWidth),h=n?0:Oo(o.borderRightWidth),p=n?0:Oo(o.borderBottomWidth),g=n?0:Oo(o.borderLeftWidth),b=u+c,m=s+d,x=g+h,w=f+p,C=a?e.offsetHeight-w-e.clientHeight:0,P=l?e.offsetWidth-x-e.clientWidth:0,T=r?b+x:0,y=r?m+w:0,B=n?n.width:Oo(o.width)-T-P,S=n?n.height:Oo(o.height)-y-C,E=B+b+P+x,j=S+m+C+w,_=Gn({devicePixelContentBoxSize:_r(Math.round(B*devicePixelRatio),Math.round(S*devicePixelRatio),i),borderBoxSize:_r(E,j,i),contentBoxSize:_r(B,S,i),contentRect:new Ph(u,s,B,S)});return Ol.set(e,_),_},Eh=function(e,t,o){var n=$h(e,o),r=n.borderBoxSize,i=n.contentBoxSize,l=n.devicePixelContentBoxSize;switch(t){case fi.DEVICE_PIXEL_CONTENT_BOX:return l;case fi.BORDER_BOX:return r;default:return i}},Yy=function(){function e(t){var o=$h(t);this.target=t,this.contentRect=o.contentRect,this.borderBoxSize=Gn([o.borderBoxSize]),this.contentBoxSize=Gn([o.contentBoxSize]),this.devicePixelContentBoxSize=Gn([o.devicePixelContentBoxSize])}return e}(),Fh=function(e){if(_h(e))return 1/0;for(var t=0,o=e.parentNode;o;)t+=1,o=o.parentNode;return t},Zy=function(){var e=1/0,t=[];Kn.forEach(function(l){if(l.activeTargets.length!==0){var a=[];l.activeTargets.forEach(function(c){var d=new Yy(c.target),u=Fh(c.target);a.push(d),c.lastReportedSize=Eh(c.target,c.observedBox),u<e&&(e=u)}),t.push(function(){l.callback.call(l.observer,a,l.observer)}),l.activeTargets.splice(0,l.activeTargets.length)}});for(var o=0,n=t;o<n.length;o++){var r=n[o];r()}return e},Ah=function(e){Kn.forEach(function(o){o.activeTargets.splice(0,o.activeTargets.length),o.skippedTargets.splice(0,o.skippedTargets.length),o.observationTargets.forEach(function(r){r.isActive()&&(Fh(r.target)>e?o.activeTargets.push(r):o.skippedTargets.push(r))})})},Jy=function(){var e=0;for(Ah(e);Wy();)e=Zy(),Ah(e);return Vy()&&Uy(),e>0},$s,Ih=[],Qy=function(){return Ih.splice(0).forEach(function(e){return e()})},eC=function(e){if(!$s){var t=0,o=document.createTextNode(""),n={characterData:!0};new MutationObserver(function(){return Qy()}).observe(o,n),$s=function(){o.textContent="".concat(t?t--:t++)}}Ih.push(e),$s()},tC=function(e){eC(function(){requestAnimationFrame(e)})},Ml=0,oC=function(){return!!Ml},nC=250,rC={attributes:!0,characterData:!0,childList:!0,subtree:!0},Oh=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Mh=function(e){return e===void 0&&(e=0),Date.now()+e},Es=!1,iC=function(){function e(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return e.prototype.run=function(t){var o=this;if(t===void 0&&(t=nC),!Es){Es=!0;var n=Mh(t);tC(function(){var r=!1;try{r=Jy()}finally{if(Es=!1,t=n-Mh(),!oC())return;r?o.run(1e3):t>0?o.run(t):o.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var t=this,o=function(){return t.observer&&t.observer.observe(document.body,rC)};document.body?o():hi.addEventListener("DOMContentLoaded",o)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Oh.forEach(function(o){return hi.addEventListener(o,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Oh.forEach(function(o){return hi.removeEventListener(o,t.listener,!0)}),this.stopped=!0)},e}(),Fs=new iC,Bh=function(e){!Ml&&e>0&&Fs.start(),Ml+=e,!Ml&&Fs.stop()},lC=function(e){return!Ts(e)&&!Gy(e)&&getComputedStyle(e).display==="inline"},aC=function(){function e(t,o){this.target=t,this.observedBox=o||fi.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Eh(this.target,this.observedBox,!0);return lC(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),sC=function(){function e(t,o){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=o}return e}(),Bl=new WeakMap,Hh=function(e,t){for(var o=0;o<e.length;o+=1)if(e[o].target===t)return o;return-1},Hl=function(){function e(){}return e.connect=function(t,o){var n=new sC(t,o);Bl.set(t,n)},e.observe=function(t,o,n){var r=Bl.get(t),i=r.observationTargets.length===0;Hh(r.observationTargets,o)<0&&(i&&Kn.push(r),r.observationTargets.push(new aC(o,n&&n.box)),Bh(1),Fs.schedule())},e.unobserve=function(t,o){var n=Bl.get(t),r=Hh(n.observationTargets,o),i=n.observationTargets.length===1;r>=0&&(i&&Kn.splice(Kn.indexOf(n),1),n.observationTargets.splice(r,1),Bh(-1))},e.disconnect=function(t){var o=this,n=Bl.get(t);n.observationTargets.slice().forEach(function(r){return o.unobserve(t,r.target)}),n.activeTargets.splice(0,n.activeTargets.length)},e}(),cC=function(){function e(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Hl.connect(this,t)}return e.prototype.observe=function(t,o){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!kh(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Hl.observe(this,t,o)},e.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!kh(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Hl.unobserve(this,t)},e.prototype.disconnect=function(){Hl.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class dC{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||cC)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const o of t){const n=this.elHandlersMap.get(o.target);n!==void 0&&n(o)}}registerHandler(t,o){this.elHandlersMap.set(t,o),this.observer.observe(t)}unregisterHandler(t){this.elHandlersMap.has(t)&&(this.elHandlersMap.delete(t),this.observer.unobserve(t))}}const pi=new dC,wn=ve({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const o=Hn().proxy;function n(r){const{onResize:i}=e;i!==void 0&&i(r)}Bt(()=>{const r=o.$el;if(r===void 0){mh("resize-observer","$el does not exist.");return}if(r.nextElementSibling!==r.nextSibling&&r.nodeType===3&&r.nodeValue!==""){mh("resize-observer","$el can not be observed (it may be a text node).");return}r.nextElementSibling!==null&&(pi.registerHandler(r.nextElementSibling,n),t=!0)}),Ft(()=>{t&&pi.unregisterHandler(o.$el.nextElementSibling)})},render(){return su(this.$slots,"default")}});let Dl;function uC(){return typeof document>"u"?!1:(Dl===void 0&&("matchMedia"in window?Dl=window.matchMedia("(pointer:coarse)").matches:Dl=!1),Dl)}let As;function Dh(){return typeof document>"u"?1:(As===void 0&&(As="chrome"in window?window.devicePixelRatio:1),As)}const Lh="VVirtualListXScroll";function fC({columnsRef:e,renderColRef:t,renderItemWithColsRef:o}){const n=V(0),r=V(0),i=F(()=>{const c=e.value;if(c.length===0)return null;const d=new xh(c.length,0);return c.forEach((u,f)=>{d.add(f,u.width)}),d}),l=Ze(()=>{const c=i.value;return c!==null?Math.max(c.getBound(r.value)-1,0):0}),a=c=>{const d=i.value;return d!==null?d.sum(c):0},s=Ze(()=>{const c=i.value;return c!==null?Math.min(c.getBound(r.value+n.value)+1,e.value.length-1):0});return tt(Lh,{startIndexRef:l,endIndexRef:s,columnsRef:e,renderColRef:t,renderItemWithColsRef:o,getLeft:a}),{listWidthRef:n,scrollLeftRef:r}}const Nh=ve({name:"VirtualListRow",props:{index:{type:Number,required:!0},item:{type:Object,required:!0}},setup(){const{startIndexRef:e,endIndexRef:t,columnsRef:o,getLeft:n,renderColRef:r,renderItemWithColsRef:i}=$e(Lh);return{startIndex:e,endIndex:t,columns:o,renderCol:r,renderItemWithCols:i,getLeft:n}},render(){const{startIndex:e,endIndex:t,columns:o,renderCol:n,renderItemWithCols:r,getLeft:i,item:l}=this;if(r!=null)return r({itemIndex:this.index,startColIndex:e,endColIndex:t,allColumns:o,item:l,getLeft:i});if(n!=null){const a=[];for(let s=e;s<=t;++s){const c=o[s];a.push(n({column:c,left:i(s),item:l}))}return a}return null}}),hC=Cn(".v-vl",{maxHeight:"inherit",height:"100%",overflow:"auto",minWidth:"1px"},[Cn("&:not(.v-vl--show-scrollbar)",{scrollbarWidth:"none"},[Cn("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",{width:0,height:0,display:"none"})])]),Is=ve({name:"VirtualList",inheritAttrs:!1,props:{showScrollbar:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},renderCol:Function,renderItemWithCols:Function,items:{type:Array,default:()=>[]},itemSize:{type:Number,required:!0},itemResizable:Boolean,itemsStyle:[String,Object],visibleItemsTag:{type:[String,Object],default:"div"},visibleItemsProps:Object,ignoreItemResize:Boolean,onScroll:Function,onWheel:Function,onResize:Function,defaultScrollKey:[Number,String],defaultScrollIndex:Number,keyField:{type:String,default:"key"},paddingTop:{type:[Number,String],default:0},paddingBottom:{type:[Number,String],default:0}},setup(e){const t=Un();hC.mount({id:"vueuc/virtual-list",head:!0,anchorMetaName:_s,ssr:t}),Bt(()=>{const{defaultScrollIndex:M,defaultScrollKey:W}=e;M!=null?b({index:M}):W!=null&&b({key:W})});let o=!1,n=!1;Ia(()=>{if(o=!1,!n){n=!0;return}b({top:h.value,left:l.value})}),rl(()=>{o=!0,n||(n=!0)});const r=Ze(()=>{if(e.renderCol==null&&e.renderItemWithCols==null||e.columns.length===0)return;let M=0;return e.columns.forEach(W=>{M+=W.width}),M}),i=F(()=>{const M=new Map,{keyField:W}=e;return e.items.forEach((D,Z)=>{M.set(D[W],Z)}),M}),{scrollLeftRef:l,listWidthRef:a}=fC({columnsRef:Se(e,"columns"),renderColRef:Se(e,"renderCol"),renderItemWithColsRef:Se(e,"renderItemWithCols")}),s=V(null),c=V(void 0),d=new Map,u=F(()=>{const{items:M,itemSize:W,keyField:D}=e,Z=new xh(M.length,W);return M.forEach((U,J)=>{const pe=U[D],fe=d.get(pe);fe!==void 0&&Z.add(J,fe)}),Z}),f=V(0),h=V(0),p=Ze(()=>Math.max(u.value.getBound(h.value-mn(e.paddingTop))-1,0)),g=F(()=>{const{value:M}=c;if(M===void 0)return[];const{items:W,itemSize:D}=e,Z=p.value,U=Math.min(Z+Math.ceil(M/D+1),W.length-1),J=[];for(let pe=Z;pe<=U;++pe)J.push(W[pe]);return J}),b=(M,W)=>{if(typeof M=="number"){C(M,W,"auto");return}const{left:D,top:Z,index:U,key:J,position:pe,behavior:fe,debounce:N=!0}=M;if(D!==void 0||Z!==void 0)C(D,Z,fe);else if(U!==void 0)w(U,fe,N);else if(J!==void 0){const O=i.value.get(J);O!==void 0&&w(O,fe,N)}else pe==="bottom"?C(0,Number.MAX_SAFE_INTEGER,fe):pe==="top"&&C(0,0,fe)};let m,x=null;function w(M,W,D){const{value:Z}=u,U=Z.sum(M)+mn(e.paddingTop);if(!D)s.value.scrollTo({left:0,top:U,behavior:W});else{m=M,x!==null&&window.clearTimeout(x),x=window.setTimeout(()=>{m=void 0,x=null},16);const{scrollTop:J,offsetHeight:pe}=s.value;if(U>J){const fe=Z.get(M);U+fe<=J+pe||s.value.scrollTo({left:0,top:U+fe-pe,behavior:W})}else s.value.scrollTo({left:0,top:U,behavior:W})}}function C(M,W,D){s.value.scrollTo({left:M,top:W,behavior:D})}function P(M,W){var D,Z,U;if(o||e.ignoreItemResize||_(W.target))return;const{value:J}=u,pe=i.value.get(M),fe=J.get(pe),N=(U=(Z=(D=W.borderBoxSize)===null||D===void 0?void 0:D[0])===null||Z===void 0?void 0:Z.blockSize)!==null&&U!==void 0?U:W.contentRect.height;if(N===fe)return;N-e.itemSize===0?d.delete(M):d.set(M,N-e.itemSize);const A=N-fe;if(A===0)return;J.add(pe,A);const Q=s.value;if(Q!=null){if(m===void 0){const he=J.sum(pe);Q.scrollTop>he&&Q.scrollBy(0,A)}else if(pe<m)Q.scrollBy(0,A);else if(pe===m){const he=J.sum(pe);N+he>Q.scrollTop+Q.offsetHeight&&Q.scrollBy(0,A)}j()}f.value++}const T=!uC();let y=!1;function B(M){var W;(W=e.onScroll)===null||W===void 0||W.call(e,M),(!T||!y)&&j()}function S(M){var W;if((W=e.onWheel)===null||W===void 0||W.call(e,M),T){const D=s.value;if(D!=null){if(M.deltaX===0&&(D.scrollTop===0&&M.deltaY<=0||D.scrollTop+D.offsetHeight>=D.scrollHeight&&M.deltaY>=0))return;M.preventDefault(),D.scrollTop+=M.deltaY/Dh(),D.scrollLeft+=M.deltaX/Dh(),j(),y=!0,_l(()=>{y=!1})}}}function E(M){if(o||_(M.target))return;if(e.renderCol==null&&e.renderItemWithCols==null){if(M.contentRect.height===c.value)return}else if(M.contentRect.height===c.value&&M.contentRect.width===a.value)return;c.value=M.contentRect.height,a.value=M.contentRect.width;const{onResize:W}=e;W!==void 0&&W(M)}function j(){const{value:M}=s;M!=null&&(h.value=M.scrollTop,l.value=M.scrollLeft)}function _(M){let W=M;for(;W!==null;){if(W.style.display==="none")return!0;W=W.parentElement}return!1}return{listHeight:c,listStyle:{overflow:"auto"},keyToIndex:i,itemsStyle:F(()=>{const{itemResizable:M}=e,W=At(u.value.sum());return f.value,[e.itemsStyle,{boxSizing:"content-box",width:At(r.value),height:M?"":W,minHeight:M?W:"",paddingTop:At(e.paddingTop),paddingBottom:At(e.paddingBottom)}]}),visibleItemsStyle:F(()=>(f.value,{transform:`translateY(${At(u.value.sum(p.value))})`})),viewportItems:g,listElRef:s,itemsElRef:V(null),scrollTo:b,handleListResize:E,handleListScroll:B,handleListWheel:S,handleItemResize:P}},render(){const{itemResizable:e,keyField:t,keyToIndex:o,visibleItemsTag:n}=this;return v(wn,{onResize:this.handleListResize},{default:()=>{var r,i;return v("div",xo(this.$attrs,{class:["v-vl",this.showScrollbar&&"v-vl--show-scrollbar"],onScroll:this.handleListScroll,onWheel:this.handleListWheel,ref:"listElRef"}),[this.items.length!==0?v("div",{ref:"itemsElRef",class:"v-vl-items",style:this.itemsStyle},[v(n,Object.assign({class:"v-vl-visible-items",style:this.visibleItemsStyle},this.visibleItemsProps),{default:()=>{const{renderCol:l,renderItemWithCols:a}=this;return this.viewportItems.map(s=>{const c=s[t],d=o.get(c),u=l!=null?v(Nh,{index:d,item:s}):void 0,f=a!=null?v(Nh,{index:d,item:s}):void 0,h=this.$slots.default({item:s,renderedCols:u,renderedItemWithCols:f,index:d})[0];return e?v(wn,{key:c,onResize:p=>this.handleItemResize(c,p)},{default:()=>h}):(h.key=c,h)})}})]):(i=(r=this.$slots).empty)===null||i===void 0?void 0:i.call(r)])}})}}),Jo="v-hidden",pC=Cn("[v-hidden]",{display:"none!important"}),Os=ve({name:"Overflow",props:{getCounter:Function,getTail:Function,updateCounter:Function,onUpdateCount:Function,onUpdateOverflow:Function},setup(e,{slots:t}){const o=V(null),n=V(null);function r(l){const{value:a}=o,{getCounter:s,getTail:c}=e;let d;if(s!==void 0?d=s():d=n.value,!a||!d)return;d.hasAttribute(Jo)&&d.removeAttribute(Jo);const{children:u}=a;if(l.showAllItemsBeforeCalculate)for(const w of u)w.hasAttribute(Jo)&&w.removeAttribute(Jo);const f=a.offsetWidth,h=[],p=t.tail?c==null?void 0:c():null;let g=p?p.offsetWidth:0,b=!1;const m=a.children.length-(t.tail?1:0);for(let w=0;w<m-1;++w){if(w<0)continue;const C=u[w];if(b){C.hasAttribute(Jo)||C.setAttribute(Jo,"");continue}else C.hasAttribute(Jo)&&C.removeAttribute(Jo);const P=C.offsetWidth;if(g+=P,h[w]=P,g>f){const{updateCounter:T}=e;for(let y=w;y>=0;--y){const B=m-1-y;T!==void 0?T(B):d.textContent=`${B}`;const S=d.offsetWidth;if(g-=h[y],g+S<=f||y===0){b=!0,w=y-1,p&&(w===-1?(p.style.maxWidth=`${f-S}px`,p.style.boxSizing="border-box"):p.style.maxWidth="");const{onUpdateCount:E}=e;E&&E(B);break}}}}const{onUpdateOverflow:x}=e;b?x!==void 0&&x(!0):(x!==void 0&&x(!1),d.setAttribute(Jo,""))}const i=Un();return pC.mount({id:"vueuc/overflow",head:!0,anchorMetaName:_s,ssr:i}),Bt(()=>r({showAllItemsBeforeCalculate:!1})),{selfRef:o,counterRef:n,sync:r}},render(){const{$slots:e}=this;return so(()=>this.sync({showAllItemsBeforeCalculate:!1})),v("div",{class:"v-overflow",ref:"selfRef"},[su(e,"default"),e.counter?e.counter():v("span",{style:{display:"inline-block"},ref:"counterRef"}),e.tail?e.tail():null])}});function jh(e){return e instanceof HTMLElement}function Wh(e){for(let t=0;t<e.childNodes.length;t++){const o=e.childNodes[t];if(jh(o)&&(Uh(o)||Wh(o)))return!0}return!1}function Vh(e){for(let t=e.childNodes.length-1;t>=0;t--){const o=e.childNodes[t];if(jh(o)&&(Uh(o)||Vh(o)))return!0}return!1}function Uh(e){if(!vC(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function vC(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"SELECT":case"TEXTAREA":return!0;default:return!1}}let vi=[];const gC=ve({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:[String,Function],finalFocusTo:[String,Function],returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const t=Tl(),o=V(null),n=V(null);let r=!1,i=!1;const l=typeof document>"u"?null:document.activeElement;function a(){return vi[vi.length-1]===t}function s(b){var m;b.code==="Escape"&&a()&&((m=e.onEsc)===null||m===void 0||m.call(e,b))}Bt(()=>{st(()=>e.active,b=>{b?(u(),bt("keydown",document,s)):(ct("keydown",document,s),r&&f())},{immediate:!0})}),Ft(()=>{ct("keydown",document,s),r&&f()});function c(b){if(!i&&a()){const m=d();if(m===null||m.contains(ci(b)))return;h("first")}}function d(){const b=o.value;if(b===null)return null;let m=b;for(;m=m.nextSibling,!(m===null||m instanceof Element&&m.tagName==="DIV"););return m}function u(){var b;if(!e.disabled){if(vi.push(t),e.autoFocus){const{initialFocusTo:m}=e;m===void 0?h("first"):(b=yh(m))===null||b===void 0||b.focus({preventScroll:!0})}r=!0,document.addEventListener("focus",c,!0)}}function f(){var b;if(e.disabled||(document.removeEventListener("focus",c,!0),vi=vi.filter(x=>x!==t),a()))return;const{finalFocusTo:m}=e;m!==void 0?(b=yh(m))===null||b===void 0||b.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&l instanceof HTMLElement&&(i=!0,l.focus({preventScroll:!0}),i=!1)}function h(b){if(a()&&e.active){const m=o.value,x=n.value;if(m!==null&&x!==null){const w=d();if(w==null||w===x){i=!0,m.focus({preventScroll:!0}),i=!1;return}i=!0;const C=b==="first"?Wh(w):Vh(w);i=!1,C||(i=!0,m.focus({preventScroll:!0}),i=!1)}}}function p(b){if(i)return;const m=d();m!==null&&(b.relatedTarget!==null&&m.contains(b.relatedTarget)?h("last"):h("first"))}function g(b){i||(b.relatedTarget!==null&&b.relatedTarget===o.value?h("last"):h("first"))}return{focusableStartRef:o,focusableEndRef:n,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:p,handleEndFocus:g}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:t,focusableStyle:o}=this;return v(it,null,[v("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:o,onFocus:this.handleStartFocus}),e(),v("div",{"aria-hidden":"true",style:o,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});function Kh(e,t){t&&(Bt(()=>{const{value:o}=e;o&&pi.registerHandler(o,t)}),st(e,(o,n)=>{n&&pi.unregisterHandler(n)},{deep:!1}),Ft(()=>{const{value:o}=e;o&&pi.unregisterHandler(o)}))}function gi(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}const mC=/^(\d|\.)+$/,Gh=/(\d|\.)+/;function zt(e,{c:t=1,offset:o=0,attachPx:n=!0}={}){if(typeof e=="number"){const r=(e+o)*t;return r===0?"0":`${r}px`}else if(typeof e=="string")if(mC.test(e)){const r=(Number(e)+o)*t;return n?r===0?"0":`${r}px`:`${r}`}else{const r=Gh.exec(e);return r?e.replace(Gh,String((Number(r[0])+o)*t)):e}return e}function qh(e){const{left:t,right:o,top:n,bottom:r}=no(e);return`${n} ${t} ${r} ${o}`}function bC(e,t){if(!e)return;const o=document.createElement("a");o.href=e,t!==void 0&&(o.download=t),document.body.appendChild(o),o.click(),document.body.removeChild(o)}let Ms;function xC(){return Ms===void 0&&(Ms=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),Ms}const yC=new WeakSet;function CC(e){yC.add(e)}function Xh(e){switch(typeof e){case"string":return e||void 0;case"number":return String(e);default:return}}const wC={tiny:"mini",small:"tiny",medium:"small",large:"medium",huge:"large"};function Yh(e){const t=wC[e];if(t===void 0)throw new Error(`${e} has no smaller size.`);return t}function kr(e,t){console.error(`[naive/${e}]: ${t}`)}function SC(e,t){throw new Error(`[naive/${e}]: ${t}`)}function ge(e,...t){if(Array.isArray(e))e.forEach(o=>ge(o,...t));else return e(...t)}function Zh(e){return t=>{t?e.value=t.$el:e.value=null}}function Ll(e,t=!0,o=[]){return e.forEach(n=>{if(n!==null){if(typeof n!="object"){(typeof n=="string"||typeof n=="number")&&o.push(un(String(n)));return}if(Array.isArray(n)){Ll(n,t,o);return}if(n.type===it){if(n.children===null)return;Array.isArray(n.children)&&Ll(n.children,t,o)}else{if(n.type===Pt&&t)return;o.push(n)}}}),o}function RC(e,t="default",o=void 0){const n=e[t];if(!n)return kr("getFirstSlotVNode",`slot[${t}] is empty`),null;const r=Ll(n(o));return r.length===1?r[0]:(kr("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function PC(e,t="default",o=[]){const r=e.$slots[t];return r===void 0?o:r()}function zr(e,t=[],o){const n={};return t.forEach(r=>{n[r]=e[r]}),Object.assign(n,o)}function Nl(e){return Object.keys(e)}function mi(e){const t=e.filter(o=>o!==void 0);if(t.length!==0)return t.length===1?t[0]:o=>{e.forEach(n=>{n&&n(o)})}}function Jh(e,t=[],o){const n={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(n[i]=e[i])}),Object.assign(n,o)}function Lt(e,...t){return typeof e=="function"?e(...t):typeof e=="string"?un(e):typeof e=="number"?un(String(e)):null}function Co(e){return e.some(t=>vr(t)?!(t.type===Pt||t.type===it&&!Co(t.children)):!0)?e:null}function Mo(e,t){return e&&Co(e())||t()}function _C(e,t,o){return e&&Co(e(t))||o(t)}function pt(e,t){const o=e&&Co(e());return t(o||null)}function Bs(e){return!(e&&Co(e()))}const Hs=ve({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),Qo="n-config-provider",Qh="n";function Je(e={},t={defaultBordered:!0}){const o=$e(Qo,null);return{inlineThemeDisabled:o==null?void 0:o.inlineThemeDisabled,mergedRtlRef:o==null?void 0:o.mergedRtlRef,mergedComponentPropsRef:o==null?void 0:o.mergedComponentPropsRef,mergedBreakpointsRef:o==null?void 0:o.mergedBreakpointsRef,mergedBorderedRef:F(()=>{var n,r;const{bordered:i}=e;return i!==void 0?i:(r=(n=o==null?void 0:o.mergedBorderedRef.value)!==null&&n!==void 0?n:t.defaultBordered)!==null&&r!==void 0?r:!0}),mergedClsPrefixRef:o?o.mergedClsPrefixRef:ka(Qh),namespaceRef:F(()=>o==null?void 0:o.mergedNamespaceRef.value)}}function ep(){const e=$e(Qo,null);return e?e.mergedClsPrefixRef:ka(Qh)}function gt(e,t,o,n){o||SC("useThemeClass","cssVarsRef is not passed");const r=$e(Qo,null),i=r==null?void 0:r.mergedThemeHashRef,l=r==null?void 0:r.styleMountTarget,a=V(""),s=Un();let c;const d=`__${e}`,u=()=>{let f=d;const h=t?t.value:void 0,p=i==null?void 0:i.value;p&&(f+=`-${p}`),h&&(f+=`-${h}`);const{themeOverrides:g,builtinThemeOverrides:b}=n;g&&(f+=`-${fs(JSON.stringify(g))}`),b&&(f+=`-${fs(JSON.stringify(b))}`),a.value=f,c=()=>{const m=o.value;let x="";for(const w in m)x+=`${w}: ${m[w]};`;L(`.${f}`,x).mount({id:f,ssr:s,parent:l}),c=void 0}};return Mt(()=>{u()}),{themeClass:a,onRender:()=>{c==null||c()}}}const tp="n-form-item";function qn(e,{defaultSize:t="medium",mergedSize:o,mergedDisabled:n}={}){const r=$e(tp,null);tt(tp,null);const i=F(o?()=>o(r):()=>{const{size:s}=e;if(s)return s;if(r){const{mergedSize:c}=r;if(c.value!==void 0)return c.value}return t}),l=F(n?()=>n(r):()=>{const{disabled:s}=e;return s!==void 0?s:r?r.disabled.value:!1}),a=F(()=>{const{status:s}=e;return s||(r==null?void 0:r.mergedValidationStatus.value)});return Ft(()=>{r&&r.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:l,mergedStatusRef:a,nTriggerFormBlur(){r&&r.handleContentBlur()},nTriggerFormChange(){r&&r.handleContentChange()},nTriggerFormFocus(){r&&r.handleContentFocus()},nTriggerFormInput(){r&&r.handleContentInput()}}}const kC={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",weekFormat:"YYYY-w",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",weekPlaceholder:"Select Week",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now",clear:"Clear"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipDownload:"Download",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"},Heatmap:{less:"less",more:"more",monthFormat:"MMM",weekdayFormat:"eee"}};function Ds(e){return(t={})=>{const o=t.width?String(t.width):e.defaultWidth;return e.formats[o]||e.formats[e.defaultWidth]}}function bi(e){return(t,o)=>{const n=o!=null&&o.context?String(o.context):"standalone";let r;if(n==="formatting"&&e.formattingValues){const l=e.defaultFormattingWidth||e.defaultWidth,a=o!=null&&o.width?String(o.width):l;r=e.formattingValues[a]||e.formattingValues[l]}else{const l=e.defaultWidth,a=o!=null&&o.width?String(o.width):e.defaultWidth;r=e.values[a]||e.values[l]}const i=e.argumentCallback?e.argumentCallback(t):t;return r[i]}}function xi(e){return(t,o={})=>{const n=o.width,r=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(r);if(!i)return null;const l=i[0],a=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(a)?TC(a,u=>u.test(l)):zC(a,u=>u.test(l));let c;c=e.valueCallback?e.valueCallback(s):s,c=o.valueCallback?o.valueCallback(c):c;const d=t.slice(l.length);return{value:c,rest:d}}}function zC(e,t){for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t(e[o]))return o}function TC(e,t){for(let o=0;o<e.length;o++)if(t(e[o]))return o}function $C(e){return(t,o={})=>{const n=t.match(e.matchPattern);if(!n)return null;const r=n[0],i=t.match(e.parsePattern);if(!i)return null;let l=e.valueCallback?e.valueCallback(i[0]):i[0];l=o.valueCallback?o.valueCallback(l):l;const a=t.slice(r.length);return{value:l,rest:a}}}const EC={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},FC=(e,t,o)=>{let n;const r=EC[e];return typeof r=="string"?n=r:t===1?n=r.one:n=r.other.replace("{{count}}",t.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+n:n+" ago":n},AC={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},IC=(e,t,o,n)=>AC[e],OC={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},MC={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},BC={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},HC={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},DC={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},LC={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},NC={ordinalNumber:(e,t)=>{const o=Number(e),n=o%100;if(n>20||n<10)switch(n%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},era:bi({values:OC,defaultWidth:"wide"}),quarter:bi({values:MC,defaultWidth:"wide",argumentCallback:e=>e-1}),month:bi({values:BC,defaultWidth:"wide"}),day:bi({values:HC,defaultWidth:"wide"}),dayPeriod:bi({values:DC,defaultWidth:"wide",formattingValues:LC,defaultFormattingWidth:"wide"})},jC=/^(\d+)(th|st|nd|rd)?/i,WC=/\d+/i,VC={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},UC={any:[/^b/i,/^(a|c)/i]},KC={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},GC={any:[/1/i,/2/i,/3/i,/4/i]},qC={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},XC={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},YC={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},ZC={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},JC={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},QC={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},ew={ordinalNumber:$C({matchPattern:jC,parsePattern:WC,valueCallback:e=>parseInt(e,10)}),era:xi({matchPatterns:VC,defaultMatchWidth:"wide",parsePatterns:UC,defaultParseWidth:"any"}),quarter:xi({matchPatterns:KC,defaultMatchWidth:"wide",parsePatterns:GC,defaultParseWidth:"any",valueCallback:e=>e+1}),month:xi({matchPatterns:qC,defaultMatchWidth:"wide",parsePatterns:XC,defaultParseWidth:"any"}),day:xi({matchPatterns:YC,defaultMatchWidth:"wide",parsePatterns:ZC,defaultParseWidth:"any"}),dayPeriod:xi({matchPatterns:JC,defaultMatchWidth:"any",parsePatterns:QC,defaultParseWidth:"any"})},tw={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ow={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},nw={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},rw={date:Ds({formats:tw,defaultWidth:"full"}),time:Ds({formats:ow,defaultWidth:"full"}),dateTime:Ds({formats:nw,defaultWidth:"full"})},iw={name:"en-US",locale:{code:"en-US",formatDistance:FC,formatLong:rw,formatRelative:IC,localize:NC,match:ew,options:{weekStartsOn:0,firstWeekContainsDate:1}}};var op=typeof global=="object"&&global&&global.Object===Object&&global,lw=typeof self=="object"&&self&&self.Object===Object&&self,Bo=op||lw||Function("return this")(),Sn=Bo.Symbol,np=Object.prototype,aw=np.hasOwnProperty,sw=np.toString,yi=Sn?Sn.toStringTag:void 0;function cw(e){var t=aw.call(e,yi),o=e[yi];try{e[yi]=void 0;var n=!0}catch{}var r=sw.call(e);return n&&(t?e[yi]=o:delete e[yi]),r}var dw=Object.prototype,uw=dw.toString;function fw(e){return uw.call(e)}var hw="[object Null]",pw="[object Undefined]",rp=Sn?Sn.toStringTag:void 0;function Xn(e){return e==null?e===void 0?pw:hw:rp&&rp in Object(e)?cw(e):fw(e)}function Rn(e){return e!=null&&typeof e=="object"}var vw="[object Symbol]";function Ls(e){return typeof e=="symbol"||Rn(e)&&Xn(e)==vw}function ip(e,t){for(var o=-1,n=e==null?0:e.length,r=Array(n);++o<n;)r[o]=t(e[o],o,e);return r}var fo=Array.isArray,lp=Sn?Sn.prototype:void 0,ap=lp?lp.toString:void 0;function sp(e){if(typeof e=="string")return e;if(fo(e))return ip(e,sp)+"";if(Ls(e))return ap?ap.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Pn(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function Ns(e){return e}var gw="[object AsyncFunction]",mw="[object Function]",bw="[object GeneratorFunction]",xw="[object Proxy]";function js(e){if(!Pn(e))return!1;var t=Xn(e);return t==mw||t==bw||t==gw||t==xw}var Ws=Bo["__core-js_shared__"],cp=function(){var e=/[^.]+$/.exec(Ws&&Ws.keys&&Ws.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function yw(e){return!!cp&&cp in e}var Cw=Function.prototype,ww=Cw.toString;function Yn(e){if(e!=null){try{return ww.call(e)}catch{}try{return e+""}catch{}}return""}var Sw=/[\\^$.*+?()[\]{}|]/g,Rw=/^\[object .+?Constructor\]$/,Pw=Function.prototype,_w=Object.prototype,kw=Pw.toString,zw=_w.hasOwnProperty,Tw=RegExp("^"+kw.call(zw).replace(Sw,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function $w(e){if(!Pn(e)||yw(e))return!1;var t=js(e)?Tw:Rw;return t.test(Yn(e))}function Ew(e,t){return e==null?void 0:e[t]}function Zn(e,t){var o=Ew(e,t);return $w(o)?o:void 0}var Vs=Zn(Bo,"WeakMap"),dp=Object.create,Fw=function(){function e(){}return function(t){if(!Pn(t))return{};if(dp)return dp(t);e.prototype=t;var o=new e;return e.prototype=void 0,o}}();function Aw(e,t,o){switch(o.length){case 0:return e.call(t);case 1:return e.call(t,o[0]);case 2:return e.call(t,o[0],o[1]);case 3:return e.call(t,o[0],o[1],o[2])}return e.apply(t,o)}function Iw(e,t){var o=-1,n=e.length;for(t||(t=Array(n));++o<n;)t[o]=e[o];return t}var Ow=800,Mw=16,Bw=Date.now;function Hw(e){var t=0,o=0;return function(){var n=Bw(),r=Mw-(n-o);if(o=n,r>0){if(++t>=Ow)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Dw(e){return function(){return e}}var jl=function(){try{var e=Zn(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Lw=jl?function(e,t){return jl(e,"toString",{configurable:!0,enumerable:!1,value:Dw(t),writable:!0})}:Ns,Nw=Hw(Lw),jw=9007199254740991,Ww=/^(?:0|[1-9]\d*)$/;function Us(e,t){var o=typeof e;return t=t??jw,!!t&&(o=="number"||o!="symbol"&&Ww.test(e))&&e>-1&&e%1==0&&e<t}function Ks(e,t,o){t=="__proto__"&&jl?jl(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}function Ci(e,t){return e===t||e!==e&&t!==t}var Vw=Object.prototype,Uw=Vw.hasOwnProperty;function Kw(e,t,o){var n=e[t];(!(Uw.call(e,t)&&Ci(n,o))||o===void 0&&!(t in e))&&Ks(e,t,o)}function Gw(e,t,o,n){var r=!o;o||(o={});for(var i=-1,l=t.length;++i<l;){var a=t[i],s=void 0;s===void 0&&(s=e[a]),r?Ks(o,a,s):Kw(o,a,s)}return o}var up=Math.max;function qw(e,t,o){return t=up(t===void 0?e.length-1:t,0),function(){for(var n=arguments,r=-1,i=up(n.length-t,0),l=Array(i);++r<i;)l[r]=n[t+r];r=-1;for(var a=Array(t+1);++r<t;)a[r]=n[r];return a[t]=o(l),Aw(e,this,a)}}function Xw(e,t){return Nw(qw(e,t,Ns),e+"")}var Yw=9007199254740991;function Gs(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Yw}function Tr(e){return e!=null&&Gs(e.length)&&!js(e)}function Zw(e,t,o){if(!Pn(o))return!1;var n=typeof t;return(n=="number"?Tr(o)&&Us(t,o.length):n=="string"&&t in o)?Ci(o[t],e):!1}function Jw(e){return Xw(function(t,o){var n=-1,r=o.length,i=r>1?o[r-1]:void 0,l=r>2?o[2]:void 0;for(i=e.length>3&&typeof i=="function"?(r--,i):void 0,l&&Zw(o[0],o[1],l)&&(i=r<3?void 0:i,r=1),t=Object(t);++n<r;){var a=o[n];a&&e(t,a,n,i)}return t})}var Qw=Object.prototype;function qs(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||Qw;return e===o}function e1(e,t){for(var o=-1,n=Array(e);++o<e;)n[o]=t(o);return n}var t1="[object Arguments]";function fp(e){return Rn(e)&&Xn(e)==t1}var hp=Object.prototype,o1=hp.hasOwnProperty,n1=hp.propertyIsEnumerable,Wl=fp(function(){return arguments}())?fp:function(e){return Rn(e)&&o1.call(e,"callee")&&!n1.call(e,"callee")};function r1(){return!1}var pp=typeof exports=="object"&&exports&&!exports.nodeType&&exports,vp=pp&&typeof module=="object"&&module&&!module.nodeType&&module,i1=vp&&vp.exports===pp,gp=i1?Bo.Buffer:void 0,l1=gp?gp.isBuffer:void 0,Vl=l1||r1,a1="[object Arguments]",s1="[object Array]",c1="[object Boolean]",d1="[object Date]",u1="[object Error]",f1="[object Function]",h1="[object Map]",p1="[object Number]",v1="[object Object]",g1="[object RegExp]",m1="[object Set]",b1="[object String]",x1="[object WeakMap]",y1="[object ArrayBuffer]",C1="[object DataView]",w1="[object Float32Array]",S1="[object Float64Array]",R1="[object Int8Array]",P1="[object Int16Array]",_1="[object Int32Array]",k1="[object Uint8Array]",z1="[object Uint8ClampedArray]",T1="[object Uint16Array]",$1="[object Uint32Array]",mt={};mt[w1]=mt[S1]=mt[R1]=mt[P1]=mt[_1]=mt[k1]=mt[z1]=mt[T1]=mt[$1]=!0,mt[a1]=mt[s1]=mt[y1]=mt[c1]=mt[C1]=mt[d1]=mt[u1]=mt[f1]=mt[h1]=mt[p1]=mt[v1]=mt[g1]=mt[m1]=mt[b1]=mt[x1]=!1;function E1(e){return Rn(e)&&Gs(e.length)&&!!mt[Xn(e)]}function F1(e){return function(t){return e(t)}}var mp=typeof exports=="object"&&exports&&!exports.nodeType&&exports,wi=mp&&typeof module=="object"&&module&&!module.nodeType&&module,A1=wi&&wi.exports===mp,Xs=A1&&op.process,bp=function(){try{var e=wi&&wi.require&&wi.require("util").types;return e||Xs&&Xs.binding&&Xs.binding("util")}catch{}}(),xp=bp&&bp.isTypedArray,Ys=xp?F1(xp):E1,I1=Object.prototype,O1=I1.hasOwnProperty;function yp(e,t){var o=fo(e),n=!o&&Wl(e),r=!o&&!n&&Vl(e),i=!o&&!n&&!r&&Ys(e),l=o||n||r||i,a=l?e1(e.length,String):[],s=a.length;for(var c in e)(t||O1.call(e,c))&&!(l&&(c=="length"||r&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Us(c,s)))&&a.push(c);return a}function Cp(e,t){return function(o){return e(t(o))}}var M1=Cp(Object.keys,Object),B1=Object.prototype,H1=B1.hasOwnProperty;function D1(e){if(!qs(e))return M1(e);var t=[];for(var o in Object(e))H1.call(e,o)&&o!="constructor"&&t.push(o);return t}function Zs(e){return Tr(e)?yp(e):D1(e)}function L1(e){var t=[];if(e!=null)for(var o in Object(e))t.push(o);return t}var N1=Object.prototype,j1=N1.hasOwnProperty;function W1(e){if(!Pn(e))return L1(e);var t=qs(e),o=[];for(var n in e)n=="constructor"&&(t||!j1.call(e,n))||o.push(n);return o}function wp(e){return Tr(e)?yp(e,!0):W1(e)}var V1=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,U1=/^\w*$/;function Js(e,t){if(fo(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||Ls(e)?!0:U1.test(e)||!V1.test(e)||t!=null&&e in Object(t)}var Si=Zn(Object,"create");function K1(){this.__data__=Si?Si(null):{},this.size=0}function G1(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var q1="__lodash_hash_undefined__",X1=Object.prototype,Y1=X1.hasOwnProperty;function Z1(e){var t=this.__data__;if(Si){var o=t[e];return o===q1?void 0:o}return Y1.call(t,e)?t[e]:void 0}var J1=Object.prototype,Q1=J1.hasOwnProperty;function eS(e){var t=this.__data__;return Si?t[e]!==void 0:Q1.call(t,e)}var tS="__lodash_hash_undefined__";function oS(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=Si&&t===void 0?tS:t,this}function Jn(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}Jn.prototype.clear=K1,Jn.prototype.delete=G1,Jn.prototype.get=Z1,Jn.prototype.has=eS,Jn.prototype.set=oS;function nS(){this.__data__=[],this.size=0}function Ul(e,t){for(var o=e.length;o--;)if(Ci(e[o][0],t))return o;return-1}var rS=Array.prototype,iS=rS.splice;function lS(e){var t=this.__data__,o=Ul(t,e);if(o<0)return!1;var n=t.length-1;return o==n?t.pop():iS.call(t,o,1),--this.size,!0}function aS(e){var t=this.__data__,o=Ul(t,e);return o<0?void 0:t[o][1]}function sS(e){return Ul(this.__data__,e)>-1}function cS(e,t){var o=this.__data__,n=Ul(o,e);return n<0?(++this.size,o.push([e,t])):o[n][1]=t,this}function en(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}en.prototype.clear=nS,en.prototype.delete=lS,en.prototype.get=aS,en.prototype.has=sS,en.prototype.set=cS;var Ri=Zn(Bo,"Map");function dS(){this.size=0,this.__data__={hash:new Jn,map:new(Ri||en),string:new Jn}}function uS(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Kl(e,t){var o=e.__data__;return uS(t)?o[typeof t=="string"?"string":"hash"]:o.map}function fS(e){var t=Kl(this,e).delete(e);return this.size-=t?1:0,t}function hS(e){return Kl(this,e).get(e)}function pS(e){return Kl(this,e).has(e)}function vS(e,t){var o=Kl(this,e),n=o.size;return o.set(e,t),this.size+=o.size==n?0:1,this}function tn(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var n=e[t];this.set(n[0],n[1])}}tn.prototype.clear=dS,tn.prototype.delete=fS,tn.prototype.get=hS,tn.prototype.has=pS,tn.prototype.set=vS;var gS="Expected a function";function Qs(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(gS);var o=function(){var n=arguments,r=t?t.apply(this,n):n[0],i=o.cache;if(i.has(r))return i.get(r);var l=e.apply(this,n);return o.cache=i.set(r,l)||i,l};return o.cache=new(Qs.Cache||tn),o}Qs.Cache=tn;var mS=500;function bS(e){var t=Qs(e,function(n){return o.size===mS&&o.clear(),n}),o=t.cache;return t}var xS=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,yS=/\\(\\)?/g,CS=bS(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(xS,function(o,n,r,i){t.push(r?i.replace(yS,"$1"):n||o)}),t});function Sp(e){return e==null?"":sp(e)}function Rp(e,t){return fo(e)?e:Js(e,t)?[e]:CS(Sp(e))}function Gl(e){if(typeof e=="string"||Ls(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function Pp(e,t){t=Rp(t,e);for(var o=0,n=t.length;e!=null&&o<n;)e=e[Gl(t[o++])];return o&&o==n?e:void 0}function ec(e,t,o){var n=e==null?void 0:Pp(e,t);return n===void 0?o:n}function wS(e,t){for(var o=-1,n=t.length,r=e.length;++o<n;)e[r+o]=t[o];return e}var _p=Cp(Object.getPrototypeOf,Object),SS="[object Object]",RS=Function.prototype,PS=Object.prototype,kp=RS.toString,_S=PS.hasOwnProperty,kS=kp.call(Object);function zS(e){if(!Rn(e)||Xn(e)!=SS)return!1;var t=_p(e);if(t===null)return!0;var o=_S.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&kp.call(o)==kS}function TS(e,t,o){var n=-1,r=e.length;t<0&&(t=-t>r?0:r+t),o=o>r?r:o,o<0&&(o+=r),r=t>o?0:o-t>>>0,t>>>=0;for(var i=Array(r);++n<r;)i[n]=e[n+t];return i}function $S(e,t,o){var n=e.length;return o=o===void 0?n:o,!t&&o>=n?e:TS(e,t,o)}var ES="\\ud800-\\udfff",FS="\\u0300-\\u036f",AS="\\ufe20-\\ufe2f",IS="\\u20d0-\\u20ff",OS=FS+AS+IS,MS="\\ufe0e\\ufe0f",BS="\\u200d",HS=RegExp("["+BS+ES+OS+MS+"]");function zp(e){return HS.test(e)}function DS(e){return e.split("")}var Tp="\\ud800-\\udfff",LS="\\u0300-\\u036f",NS="\\ufe20-\\ufe2f",jS="\\u20d0-\\u20ff",WS=LS+NS+jS,VS="\\ufe0e\\ufe0f",US="["+Tp+"]",tc="["+WS+"]",oc="\\ud83c[\\udffb-\\udfff]",KS="(?:"+tc+"|"+oc+")",$p="[^"+Tp+"]",Ep="(?:\\ud83c[\\udde6-\\uddff]){2}",Fp="[\\ud800-\\udbff][\\udc00-\\udfff]",GS="\\u200d",Ap=KS+"?",Ip="["+VS+"]?",qS="(?:"+GS+"(?:"+[$p,Ep,Fp].join("|")+")"+Ip+Ap+")*",XS=Ip+Ap+qS,YS="(?:"+[$p+tc+"?",tc,Ep,Fp,US].join("|")+")",ZS=RegExp(oc+"(?="+oc+")|"+YS+XS,"g");function JS(e){return e.match(ZS)||[]}function QS(e){return zp(e)?JS(e):DS(e)}function eR(e){return function(t){t=Sp(t);var o=zp(t)?QS(t):void 0,n=o?o[0]:t.charAt(0),r=o?$S(o,1).join(""):t.slice(1);return n[e]()+r}}var tR=eR("toUpperCase");function oR(){this.__data__=new en,this.size=0}function nR(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function rR(e){return this.__data__.get(e)}function iR(e){return this.__data__.has(e)}var lR=200;function aR(e,t){var o=this.__data__;if(o instanceof en){var n=o.__data__;if(!Ri||n.length<lR-1)return n.push([e,t]),this.size=++o.size,this;o=this.__data__=new tn(n)}return o.set(e,t),this.size=o.size,this}function Ho(e){var t=this.__data__=new en(e);this.size=t.size}Ho.prototype.clear=oR,Ho.prototype.delete=nR,Ho.prototype.get=rR,Ho.prototype.has=iR,Ho.prototype.set=aR;var Op=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Mp=Op&&typeof module=="object"&&module&&!module.nodeType&&module,sR=Mp&&Mp.exports===Op,Bp=sR?Bo.Buffer:void 0;Bp&&Bp.allocUnsafe;function cR(e,t){return e.slice()}function dR(e,t){for(var o=-1,n=e==null?0:e.length,r=0,i=[];++o<n;){var l=e[o];t(l,o,e)&&(i[r++]=l)}return i}function uR(){return[]}var fR=Object.prototype,hR=fR.propertyIsEnumerable,Hp=Object.getOwnPropertySymbols,pR=Hp?function(e){return e==null?[]:(e=Object(e),dR(Hp(e),function(t){return hR.call(e,t)}))}:uR;function vR(e,t,o){var n=t(e);return fo(e)?n:wS(n,o(e))}function Dp(e){return vR(e,Zs,pR)}var nc=Zn(Bo,"DataView"),rc=Zn(Bo,"Promise"),ic=Zn(Bo,"Set"),Lp="[object Map]",gR="[object Object]",Np="[object Promise]",jp="[object Set]",Wp="[object WeakMap]",Vp="[object DataView]",mR=Yn(nc),bR=Yn(Ri),xR=Yn(rc),yR=Yn(ic),CR=Yn(Vs),_n=Xn;(nc&&_n(new nc(new ArrayBuffer(1)))!=Vp||Ri&&_n(new Ri)!=Lp||rc&&_n(rc.resolve())!=Np||ic&&_n(new ic)!=jp||Vs&&_n(new Vs)!=Wp)&&(_n=function(e){var t=Xn(e),o=t==gR?e.constructor:void 0,n=o?Yn(o):"";if(n)switch(n){case mR:return Vp;case bR:return Lp;case xR:return Np;case yR:return jp;case CR:return Wp}return t});var ql=Bo.Uint8Array;function wR(e){var t=new e.constructor(e.byteLength);return new ql(t).set(new ql(e)),t}function SR(e,t){var o=wR(e.buffer);return new e.constructor(o,e.byteOffset,e.length)}function RR(e){return typeof e.constructor=="function"&&!qs(e)?Fw(_p(e)):{}}var PR="__lodash_hash_undefined__";function _R(e){return this.__data__.set(e,PR),this}function kR(e){return this.__data__.has(e)}function Xl(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new tn;++t<o;)this.add(e[t])}Xl.prototype.add=Xl.prototype.push=_R,Xl.prototype.has=kR;function zR(e,t){for(var o=-1,n=e==null?0:e.length;++o<n;)if(t(e[o],o,e))return!0;return!1}function TR(e,t){return e.has(t)}var $R=1,ER=2;function Up(e,t,o,n,r,i){var l=o&$R,a=e.length,s=t.length;if(a!=s&&!(l&&s>a))return!1;var c=i.get(e),d=i.get(t);if(c&&d)return c==t&&d==e;var u=-1,f=!0,h=o&ER?new Xl:void 0;for(i.set(e,t),i.set(t,e);++u<a;){var p=e[u],g=t[u];if(n)var b=l?n(g,p,u,t,e,i):n(p,g,u,e,t,i);if(b!==void 0){if(b)continue;f=!1;break}if(h){if(!zR(t,function(m,x){if(!TR(h,x)&&(p===m||r(p,m,o,n,i)))return h.push(x)})){f=!1;break}}else if(!(p===g||r(p,g,o,n,i))){f=!1;break}}return i.delete(e),i.delete(t),f}function FR(e){var t=-1,o=Array(e.size);return e.forEach(function(n,r){o[++t]=[r,n]}),o}function AR(e){var t=-1,o=Array(e.size);return e.forEach(function(n){o[++t]=n}),o}var IR=1,OR=2,MR="[object Boolean]",BR="[object Date]",HR="[object Error]",DR="[object Map]",LR="[object Number]",NR="[object RegExp]",jR="[object Set]",WR="[object String]",VR="[object Symbol]",UR="[object ArrayBuffer]",KR="[object DataView]",Kp=Sn?Sn.prototype:void 0,lc=Kp?Kp.valueOf:void 0;function GR(e,t,o,n,r,i,l){switch(o){case KR:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case UR:return!(e.byteLength!=t.byteLength||!i(new ql(e),new ql(t)));case MR:case BR:case LR:return Ci(+e,+t);case HR:return e.name==t.name&&e.message==t.message;case NR:case WR:return e==t+"";case DR:var a=FR;case jR:var s=n&IR;if(a||(a=AR),e.size!=t.size&&!s)return!1;var c=l.get(e);if(c)return c==t;n|=OR,l.set(e,t);var d=Up(a(e),a(t),n,r,i,l);return l.delete(e),d;case VR:if(lc)return lc.call(e)==lc.call(t)}return!1}var qR=1,XR=Object.prototype,YR=XR.hasOwnProperty;function ZR(e,t,o,n,r,i){var l=o&qR,a=Dp(e),s=a.length,c=Dp(t),d=c.length;if(s!=d&&!l)return!1;for(var u=s;u--;){var f=a[u];if(!(l?f in t:YR.call(t,f)))return!1}var h=i.get(e),p=i.get(t);if(h&&p)return h==t&&p==e;var g=!0;i.set(e,t),i.set(t,e);for(var b=l;++u<s;){f=a[u];var m=e[f],x=t[f];if(n)var w=l?n(x,m,f,t,e,i):n(m,x,f,e,t,i);if(!(w===void 0?m===x||r(m,x,o,n,i):w)){g=!1;break}b||(b=f=="constructor")}if(g&&!b){var C=e.constructor,P=t.constructor;C!=P&&"constructor"in e&&"constructor"in t&&!(typeof C=="function"&&C instanceof C&&typeof P=="function"&&P instanceof P)&&(g=!1)}return i.delete(e),i.delete(t),g}var JR=1,Gp="[object Arguments]",qp="[object Array]",Yl="[object Object]",QR=Object.prototype,Xp=QR.hasOwnProperty;function eP(e,t,o,n,r,i){var l=fo(e),a=fo(t),s=l?qp:_n(e),c=a?qp:_n(t);s=s==Gp?Yl:s,c=c==Gp?Yl:c;var d=s==Yl,u=c==Yl,f=s==c;if(f&&Vl(e)){if(!Vl(t))return!1;l=!0,d=!1}if(f&&!d)return i||(i=new Ho),l||Ys(e)?Up(e,t,o,n,r,i):GR(e,t,s,o,n,r,i);if(!(o&JR)){var h=d&&Xp.call(e,"__wrapped__"),p=u&&Xp.call(t,"__wrapped__");if(h||p){var g=h?e.value():e,b=p?t.value():t;return i||(i=new Ho),r(g,b,o,n,i)}}return f?(i||(i=new Ho),ZR(e,t,o,n,r,i)):!1}function ac(e,t,o,n,r){return e===t?!0:e==null||t==null||!Rn(e)&&!Rn(t)?e!==e&&t!==t:eP(e,t,o,n,ac,r)}var tP=1,oP=2;function nP(e,t,o,n){var r=o.length,i=r;if(e==null)return!i;for(e=Object(e);r--;){var l=o[r];if(l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++r<i;){l=o[r];var a=l[0],s=e[a],c=l[1];if(l[2]){if(s===void 0&&!(a in e))return!1}else{var d=new Ho,u;if(!(u===void 0?ac(c,s,tP|oP,n,d):u))return!1}}return!0}function Yp(e){return e===e&&!Pn(e)}function rP(e){for(var t=Zs(e),o=t.length;o--;){var n=t[o],r=e[n];t[o]=[n,r,Yp(r)]}return t}function Zp(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==void 0||e in Object(o))}}function iP(e){var t=rP(e);return t.length==1&&t[0][2]?Zp(t[0][0],t[0][1]):function(o){return o===e||nP(o,e,t)}}function lP(e,t){return e!=null&&t in Object(e)}function aP(e,t,o){t=Rp(t,e);for(var n=-1,r=t.length,i=!1;++n<r;){var l=Gl(t[n]);if(!(i=e!=null&&o(e,l)))break;e=e[l]}return i||++n!=r?i:(r=e==null?0:e.length,!!r&&Gs(r)&&Us(l,r)&&(fo(e)||Wl(e)))}function sP(e,t){return e!=null&&aP(e,t,lP)}var cP=1,dP=2;function uP(e,t){return Js(e)&&Yp(t)?Zp(Gl(e),t):function(o){var n=ec(o,e);return n===void 0&&n===t?sP(o,e):ac(t,n,cP|dP)}}function fP(e){return function(t){return t==null?void 0:t[e]}}function hP(e){return function(t){return Pp(t,e)}}function pP(e){return Js(e)?fP(Gl(e)):hP(e)}function vP(e){return typeof e=="function"?e:e==null?Ns:typeof e=="object"?fo(e)?uP(e[0],e[1]):iP(e):pP(e)}function gP(e){return function(t,o,n){for(var r=-1,i=Object(t),l=n(t),a=l.length;a--;){var s=l[++r];if(o(i[s],s,i)===!1)break}return t}}var Jp=gP();function mP(e,t){return e&&Jp(e,t,Zs)}function bP(e,t){return function(o,n){if(o==null)return o;if(!Tr(o))return e(o,n);for(var r=o.length,i=-1,l=Object(o);++i<r&&n(l[i],i,l)!==!1;);return o}}var xP=bP(mP);function sc(e,t,o){(o!==void 0&&!Ci(e[t],o)||o===void 0&&!(t in e))&&Ks(e,t,o)}function yP(e){return Rn(e)&&Tr(e)}function cc(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function CP(e){return Gw(e,wp(e))}function wP(e,t,o,n,r,i,l){var a=cc(e,o),s=cc(t,o),c=l.get(s);if(c){sc(e,o,c);return}var d=i?i(a,s,o+"",e,t,l):void 0,u=d===void 0;if(u){var f=fo(s),h=!f&&Vl(s),p=!f&&!h&&Ys(s);d=s,f||h||p?fo(a)?d=a:yP(a)?d=Iw(a):h?(u=!1,d=cR(s)):p?(u=!1,d=SR(s)):d=[]:zS(s)||Wl(s)?(d=a,Wl(a)?d=CP(a):(!Pn(a)||js(a))&&(d=RR(s))):u=!1}u&&(l.set(s,d),r(d,s,n,i,l),l.delete(s)),sc(e,o,d)}function Qp(e,t,o,n,r){e!==t&&Jp(t,function(i,l){if(r||(r=new Ho),Pn(i))wP(e,t,l,o,Qp,n,r);else{var a=n?n(cc(e,l),i,l+"",e,t,r):void 0;a===void 0&&(a=i),sc(e,l,a)}},wp)}function SP(e,t){var o=-1,n=Tr(e)?Array(e.length):[];return xP(e,function(r,i,l){n[++o]=t(r,i,l)}),n}function RP(e,t){var o=fo(e)?ip:SP;return o(e,vP(t))}var Zl=Jw(function(e,t,o){Qp(e,t,o)});function Pi(e){const{mergedLocaleRef:t,mergedDateLocaleRef:o}=$e(Qo,null)||{},n=F(()=>{var i,l;return(l=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&l!==void 0?l:kC[e]});return{dateLocaleRef:F(()=>{var i;return(i=o==null?void 0:o.value)!==null&&i!==void 0?i:iw}),localeRef:n}}const $r="naive-ui-style";function qt(e,t,o){if(!t)return;const n=Un(),r=F(()=>{const{value:a}=t;if(!a)return;const s=a[e];if(s)return s}),i=$e(Qo,null),l=()=>{Mt(()=>{const{value:a}=o,s=`${a}${e}Rtl`;if(qx(s,n))return;const{value:c}=r;c&&c.style.mount({id:s,head:!0,anchorMetaName:$r,props:{bPrefix:a?`.${a}-`:void 0},ssr:n,parent:i==null?void 0:i.styleMountTarget})})};return n?l():qr(l),r}const Qn={fontFamily:'v-sans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol"',fontFamilyMono:"v-mono, SFMono-Regular, Menlo, Consolas, Courier, monospace",fontWeight:"400",fontWeightStrong:"500",cubicBezierEaseInOut:"cubic-bezier(.4, 0, .2, 1)",cubicBezierEaseOut:"cubic-bezier(0, 0, .2, 1)",cubicBezierEaseIn:"cubic-bezier(.4, 0, 1, 1)",borderRadius:"3px",borderRadiusSmall:"2px",fontSize:"14px",fontSizeMini:"12px",fontSizeTiny:"12px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",lineHeight:"1.6",heightMini:"16px",heightTiny:"22px",heightSmall:"28px",heightMedium:"34px",heightLarge:"40px",heightHuge:"46px"},{fontSize:PP,fontFamily:_P,lineHeight:kP}=Qn,ev=L("body",`
|
||
margin: 0;
|
||
font-size: ${PP};
|
||
font-family: ${_P};
|
||
line-height: ${kP};
|
||
-webkit-text-size-adjust: 100%;
|
||
-webkit-tap-highlight-color: transparent;
|
||
`,[L("input",`
|
||
font-family: inherit;
|
||
font-size: inherit;
|
||
`)]);function er(e,t,o){if(!t)return;const n=Un(),r=$e(Qo,null),i=()=>{const l=o.value;t.mount({id:l===void 0?e:l+e,head:!0,anchorMetaName:$r,props:{bPrefix:l?`.${l}-`:void 0},ssr:n,parent:r==null?void 0:r.styleMountTarget}),r!=null&&r.preflightStyleDisabled||ev.mount({id:"n-global",head:!0,anchorMetaName:$r,ssr:n,parent:r==null?void 0:r.styleMountTarget})};n?i():qr(i)}function Y2(e){return e}function Ie(e,t,o,n,r,i){const l=Un(),a=$e(Qo,null);if(o){const c=()=>{const d=i==null?void 0:i.value;o.mount({id:d===void 0?t:d+t,head:!0,props:{bPrefix:d?`.${d}-`:void 0},anchorMetaName:$r,ssr:l,parent:a==null?void 0:a.styleMountTarget}),a!=null&&a.preflightStyleDisabled||ev.mount({id:"n-global",head:!0,anchorMetaName:$r,ssr:l,parent:a==null?void 0:a.styleMountTarget})};l?c():qr(c)}return F(()=>{var c;const{theme:{common:d,self:u,peers:f={}}={},themeOverrides:h={},builtinThemeOverrides:p={}}=r,{common:g,peers:b}=h,{common:m=void 0,[e]:{common:x=void 0,self:w=void 0,peers:C={}}={}}=(a==null?void 0:a.mergedThemeRef.value)||{},{common:P=void 0,[e]:T={}}=(a==null?void 0:a.mergedThemeOverridesRef.value)||{},{common:y,peers:B={}}=T,S=Zl({},d||x||m||n.common,P,y,g),E=Zl((c=u||w||n.self)===null||c===void 0?void 0:c(S),p,T,h);return{common:S,self:E,peers:Zl({},n.peers,C,f),peerOverrides:Zl({},p.peers,B,b)}})}Ie.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const zP=I("base-icon",`
|
||
height: 1em;
|
||
width: 1em;
|
||
line-height: 1em;
|
||
text-align: center;
|
||
display: inline-block;
|
||
position: relative;
|
||
fill: currentColor;
|
||
`,[L("svg",`
|
||
height: 1em;
|
||
width: 1em;
|
||
`)]),Tt=ve({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){er("-base-icon",zP,Se(e,"clsPrefix"))},render(){return v("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),_i=ve({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const o=El();return()=>v(Yo,{name:"icon-switch-transition",appear:o.value},t)}}),TP=ve({name:"ArrowDown",render(){return v("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},v("g",{"fill-rule":"nonzero"},v("path",{d:"M23.7916,15.2664 C24.0788,14.9679 24.0696,14.4931 23.7711,14.206 C23.4726,13.9188 22.9978,13.928 22.7106,14.2265 L14.7511,22.5007 L14.7511,3.74792 C14.7511,3.33371 14.4153,2.99792 14.0011,2.99792 C13.5869,2.99792 13.2511,3.33371 13.2511,3.74793 L13.2511,22.4998 L5.29259,14.2265 C5.00543,13.928 4.53064,13.9188 4.23213,14.206 C3.93361,14.4931 3.9244,14.9679 4.21157,15.2664 L13.2809,24.6944 C13.6743,25.1034 14.3289,25.1034 14.7223,24.6944 L23.7916,15.2664 Z"}))))}});function tv(e,t){const o=ve({render(){return t()}});return ve({name:tR(e),setup(){var n;const r=(n=$e(Qo,null))===null||n===void 0?void 0:n.mergedIconsRef;return()=>{var i;const l=(i=r==null?void 0:r.value)===null||i===void 0?void 0:i[e];return l?l():v(o,null)}}})}const ov=ve({name:"Backward",render(){return v("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("path",{d:"M12.2674 15.793C11.9675 16.0787 11.4927 16.0672 11.2071 15.7673L6.20572 10.5168C5.9298 10.2271 5.9298 9.7719 6.20572 9.48223L11.2071 4.23177C11.4927 3.93184 11.9675 3.92031 12.2674 4.206C12.5673 4.49169 12.5789 4.96642 12.2932 5.26634L7.78458 9.99952L12.2932 14.7327C12.5789 15.0326 12.5673 15.5074 12.2674 15.793Z",fill:"currentColor"}))}}),$P=ve({name:"Checkmark",render(){return v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16"},v("g",{fill:"none"},v("path",{d:"M14.046 3.486a.75.75 0 0 1-.032 1.06l-7.93 7.474a.85.85 0 0 1-1.188-.022l-2.68-2.72a.75.75 0 1 1 1.068-1.053l2.234 2.267l7.468-7.038a.75.75 0 0 1 1.06.032z",fill:"currentColor"})))}}),nv=ve({name:"ChevronDown",render(){return v("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("path",{d:"M3.14645 5.64645C3.34171 5.45118 3.65829 5.45118 3.85355 5.64645L8 9.79289L12.1464 5.64645C12.3417 5.45118 12.6583 5.45118 12.8536 5.64645C13.0488 5.84171 13.0488 6.15829 12.8536 6.35355L8.35355 10.8536C8.15829 11.0488 7.84171 11.0488 7.64645 10.8536L3.14645 6.35355C2.95118 6.15829 2.95118 5.84171 3.14645 5.64645Z",fill:"currentColor"}))}}),EP=ve({name:"ChevronDownFilled",render(){return v("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("path",{d:"M3.20041 5.73966C3.48226 5.43613 3.95681 5.41856 4.26034 5.70041L8 9.22652L11.7397 5.70041C12.0432 5.41856 12.5177 5.43613 12.7996 5.73966C13.0815 6.0432 13.0639 6.51775 12.7603 6.7996L8.51034 10.7996C8.22258 11.0668 7.77743 11.0668 7.48967 10.7996L3.23966 6.7996C2.93613 6.51775 2.91856 6.0432 3.20041 5.73966Z",fill:"currentColor"}))}}),dc=ve({name:"ChevronRight",render(){return v("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("path",{d:"M5.64645 3.14645C5.45118 3.34171 5.45118 3.65829 5.64645 3.85355L9.79289 8L5.64645 12.1464C5.45118 12.3417 5.45118 12.6583 5.64645 12.8536C5.84171 13.0488 6.15829 13.0488 6.35355 12.8536L10.8536 8.35355C11.0488 8.15829 11.0488 7.84171 10.8536 7.64645L6.35355 3.14645C6.15829 2.95118 5.84171 2.95118 5.64645 3.14645Z",fill:"currentColor"}))}}),FP=tv("clear",()=>v("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},v("g",{fill:"currentColor","fill-rule":"nonzero"},v("path",{d:"M8,2 C11.3137085,2 14,4.6862915 14,8 C14,11.3137085 11.3137085,14 8,14 C4.6862915,14 2,11.3137085 2,8 C2,4.6862915 4.6862915,2 8,2 Z M6.5343055,5.83859116 C6.33943736,5.70359511 6.07001296,5.72288026 5.89644661,5.89644661 L5.89644661,5.89644661 L5.83859116,5.9656945 C5.70359511,6.16056264 5.72288026,6.42998704 5.89644661,6.60355339 L5.89644661,6.60355339 L7.293,8 L5.89644661,9.39644661 L5.83859116,9.4656945 C5.70359511,9.66056264 5.72288026,9.92998704 5.89644661,10.1035534 L5.89644661,10.1035534 L5.9656945,10.1614088 C6.16056264,10.2964049 6.42998704,10.2771197 6.60355339,10.1035534 L6.60355339,10.1035534 L8,8.707 L9.39644661,10.1035534 L9.4656945,10.1614088 C9.66056264,10.2964049 9.92998704,10.2771197 10.1035534,10.1035534 L10.1035534,10.1035534 L10.1614088,10.0343055 C10.2964049,9.83943736 10.2771197,9.57001296 10.1035534,9.39644661 L10.1035534,9.39644661 L8.707,8 L10.1035534,6.60355339 L10.1614088,6.5343055 C10.2964049,6.33943736 10.2771197,6.07001296 10.1035534,5.89644661 L10.1035534,5.89644661 L10.0343055,5.83859116 C9.83943736,5.70359511 9.57001296,5.72288026 9.39644661,5.89644661 L9.39644661,5.89644661 L8,7.293 L6.60355339,5.89644661 Z"}))))),AP=tv("close",()=>v("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},v("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},v("g",{fill:"currentColor","fill-rule":"nonzero"},v("path",{d:"M2.08859116,2.2156945 L2.14644661,2.14644661 C2.32001296,1.97288026 2.58943736,1.95359511 2.7843055,2.08859116 L2.85355339,2.14644661 L6,5.293 L9.14644661,2.14644661 C9.34170876,1.95118446 9.65829124,1.95118446 9.85355339,2.14644661 C10.0488155,2.34170876 10.0488155,2.65829124 9.85355339,2.85355339 L6.707,6 L9.85355339,9.14644661 C10.0271197,9.32001296 10.0464049,9.58943736 9.91140884,9.7843055 L9.85355339,9.85355339 C9.67998704,10.0271197 9.41056264,10.0464049 9.2156945,9.91140884 L9.14644661,9.85355339 L6,6.707 L2.85355339,9.85355339 C2.65829124,10.0488155 2.34170876,10.0488155 2.14644661,9.85355339 C1.95118446,9.65829124 1.95118446,9.34170876 2.14644661,9.14644661 L5.293,6 L2.14644661,2.85355339 C1.97288026,2.67998704 1.95359511,2.41056264 2.08859116,2.2156945 L2.14644661,2.14644661 L2.08859116,2.2156945 Z"}))))),IP=ve({name:"Empty",render(){return v("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("path",{d:"M26 7.5C26 11.0899 23.0899 14 19.5 14C15.9101 14 13 11.0899 13 7.5C13 3.91015 15.9101 1 19.5 1C23.0899 1 26 3.91015 26 7.5ZM16.8536 4.14645C16.6583 3.95118 16.3417 3.95118 16.1464 4.14645C15.9512 4.34171 15.9512 4.65829 16.1464 4.85355L18.7929 7.5L16.1464 10.1464C15.9512 10.3417 15.9512 10.6583 16.1464 10.8536C16.3417 11.0488 16.6583 11.0488 16.8536 10.8536L19.5 8.20711L22.1464 10.8536C22.3417 11.0488 22.6583 11.0488 22.8536 10.8536C23.0488 10.6583 23.0488 10.3417 22.8536 10.1464L20.2071 7.5L22.8536 4.85355C23.0488 4.65829 23.0488 4.34171 22.8536 4.14645C22.6583 3.95118 22.3417 3.95118 22.1464 4.14645L19.5 6.79289L16.8536 4.14645Z",fill:"currentColor"}),v("path",{d:"M25 22.75V12.5991C24.5572 13.0765 24.053 13.4961 23.5 13.8454V16H17.5L17.3982 16.0068C17.0322 16.0565 16.75 16.3703 16.75 16.75C16.75 18.2688 15.5188 19.5 14 19.5C12.4812 19.5 11.25 18.2688 11.25 16.75L11.2432 16.6482C11.1935 16.2822 10.8797 16 10.5 16H4.5V7.25C4.5 6.2835 5.2835 5.5 6.25 5.5H12.2696C12.4146 4.97463 12.6153 4.47237 12.865 4H6.25C4.45507 4 3 5.45507 3 7.25V22.75C3 24.5449 4.45507 26 6.25 26H21.75C23.5449 26 25 24.5449 25 22.75ZM4.5 22.75V17.5H9.81597L9.85751 17.7041C10.2905 19.5919 11.9808 21 14 21L14.215 20.9947C16.2095 20.8953 17.842 19.4209 18.184 17.5H23.5V22.75C23.5 23.7165 22.7165 24.5 21.75 24.5H6.25C5.2835 24.5 4.5 23.7165 4.5 22.75Z",fill:"currentColor"}))}}),OP=ve({name:"Eye",render(){return v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},v("path",{d:"M255.66 112c-77.94 0-157.89 45.11-220.83 135.33a16 16 0 0 0-.27 17.77C82.92 340.8 161.8 400 255.66 400c92.84 0 173.34-59.38 221.79-135.25a16.14 16.14 0 0 0 0-17.47C428.89 172.28 347.8 112 255.66 112z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"}),v("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),MP=ve({name:"EyeOff",render(){return v("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},v("path",{d:"M432 448a15.92 15.92 0 0 1-11.31-4.69l-352-352a16 16 0 0 1 22.62-22.62l352 352A16 16 0 0 1 432 448z",fill:"currentColor"}),v("path",{d:"M255.66 384c-41.49 0-81.5-12.28-118.92-36.5c-34.07-22-64.74-53.51-88.7-91v-.08c19.94-28.57 41.78-52.73 65.24-72.21a2 2 0 0 0 .14-2.94L93.5 161.38a2 2 0 0 0-2.71-.12c-24.92 21-48.05 46.76-69.08 76.92a31.92 31.92 0 0 0-.64 35.54c26.41 41.33 60.4 76.14 98.28 100.65C162 402 207.9 416 255.66 416a239.13 239.13 0 0 0 75.8-12.58a2 2 0 0 0 .77-3.31l-21.58-21.58a4 4 0 0 0-3.83-1a204.8 204.8 0 0 1-51.16 6.47z",fill:"currentColor"}),v("path",{d:"M490.84 238.6c-26.46-40.92-60.79-75.68-99.27-100.53C349 110.55 302 96 255.66 96a227.34 227.34 0 0 0-74.89 12.83a2 2 0 0 0-.75 3.31l21.55 21.55a4 4 0 0 0 3.88 1a192.82 192.82 0 0 1 50.21-6.69c40.69 0 80.58 12.43 118.55 37c34.71 22.4 65.74 53.88 89.76 91a.13.13 0 0 1 0 .16a310.72 310.72 0 0 1-64.12 72.73a2 2 0 0 0-.15 2.95l19.9 19.89a2 2 0 0 0 2.7.13a343.49 343.49 0 0 0 68.64-78.48a32.2 32.2 0 0 0-.1-34.78z",fill:"currentColor"}),v("path",{d:"M256 160a95.88 95.88 0 0 0-21.37 2.4a2 2 0 0 0-1 3.38l112.59 112.56a2 2 0 0 0 3.38-1A96 96 0 0 0 256 160z",fill:"currentColor"}),v("path",{d:"M165.78 233.66a2 2 0 0 0-3.38 1a96 96 0 0 0 115 115a2 2 0 0 0 1-3.38z",fill:"currentColor"}))}}),rv=ve({name:"FastBackward",render(){return v("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},v("g",{fill:"currentColor","fill-rule":"nonzero"},v("path",{d:"M8.73171,16.7949 C9.03264,17.0795 9.50733,17.0663 9.79196,16.7654 C10.0766,16.4644 10.0634,15.9897 9.76243,15.7051 L4.52339,10.75 L17.2471,10.75 C17.6613,10.75 17.9971,10.4142 17.9971,10 C17.9971,9.58579 17.6613,9.25 17.2471,9.25 L4.52112,9.25 L9.76243,4.29275 C10.0634,4.00812 10.0766,3.53343 9.79196,3.2325 C9.50733,2.93156 9.03264,2.91834 8.73171,3.20297 L2.31449,9.27241 C2.14819,9.4297 2.04819,9.62981 2.01448,9.8386 C2.00308,9.89058 1.99707,9.94459 1.99707,10 C1.99707,10.0576 2.00356,10.1137 2.01585,10.1675 C2.05084,10.3733 2.15039,10.5702 2.31449,10.7254 L8.73171,16.7949 Z"}))))}}),iv=ve({name:"FastForward",render(){return v("svg",{viewBox:"0 0 20 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},v("g",{fill:"currentColor","fill-rule":"nonzero"},v("path",{d:"M11.2654,3.20511 C10.9644,2.92049 10.4897,2.93371 10.2051,3.23464 C9.92049,3.53558 9.93371,4.01027 10.2346,4.29489 L15.4737,9.25 L2.75,9.25 C2.33579,9.25 2,9.58579 2,10.0000012 C2,10.4142 2.33579,10.75 2.75,10.75 L15.476,10.75 L10.2346,15.7073 C9.93371,15.9919 9.92049,16.4666 10.2051,16.7675 C10.4897,17.0684 10.9644,17.0817 11.2654,16.797 L17.6826,10.7276 C17.8489,10.5703 17.9489,10.3702 17.9826,10.1614 C17.994,10.1094 18,10.0554 18,10.0000012 C18,9.94241 17.9935,9.88633 17.9812,9.83246 C17.9462,9.62667 17.8467,9.42976 17.6826,9.27455 L11.2654,3.20511 Z"}))))}}),BP=ve({name:"Filter",render(){return v("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},v("g",{"fill-rule":"nonzero"},v("path",{d:"M17,19 C17.5522847,19 18,19.4477153 18,20 C18,20.5522847 17.5522847,21 17,21 L11,21 C10.4477153,21 10,20.5522847 10,20 C10,19.4477153 10.4477153,19 11,19 L17,19 Z M21,13 C21.5522847,13 22,13.4477153 22,14 C22,14.5522847 21.5522847,15 21,15 L7,15 C6.44771525,15 6,14.5522847 6,14 C6,13.4477153 6.44771525,13 7,13 L21,13 Z M24,7 C24.5522847,7 25,7.44771525 25,8 C25,8.55228475 24.5522847,9 24,9 L4,9 C3.44771525,9 3,8.55228475 3,8 C3,7.44771525 3.44771525,7 4,7 L24,7 Z"}))))}}),lv=ve({name:"Forward",render(){return v("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},v("path",{d:"M7.73271 4.20694C8.03263 3.92125 8.50737 3.93279 8.79306 4.23271L13.7944 9.48318C14.0703 9.77285 14.0703 10.2281 13.7944 10.5178L8.79306 15.7682C8.50737 16.0681 8.03263 16.0797 7.73271 15.794C7.43279 15.5083 7.42125 15.0336 7.70694 14.7336L12.2155 10.0005L7.70694 5.26729C7.42125 4.96737 7.43279 4.49264 7.73271 4.20694Z",fill:"currentColor"}))}}),av=ve({name:"More",render(){return v("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},v("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},v("g",{fill:"currentColor","fill-rule":"nonzero"},v("path",{d:"M4,7 C4.55228,7 5,7.44772 5,8 C5,8.55229 4.55228,9 4,9 C3.44772,9 3,8.55229 3,8 C3,7.44772 3.44772,7 4,7 Z M8,7 C8.55229,7 9,7.44772 9,8 C9,8.55229 8.55229,9 8,9 C7.44772,9 7,8.55229 7,8 C7,7.44772 7.44772,7 8,7 Z M12,7 C12.5523,7 13,7.44772 13,8 C13,8.55229 12.5523,9 12,9 C11.4477,9 11,8.55229 11,8 C11,7.44772 11.4477,7 12,7 Z"}))))}}),{cubicBezierEaseInOut:HP}=Qn;function Do({originalTransform:e="",left:t=0,top:o=0,transition:n=`all .3s ${HP} !important`}={}){return[L("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:`${e} scale(0.75)`,left:t,top:o,opacity:0}),L("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:o,opacity:1}),L("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:o,transition:n})]}const DP=I("base-clear",`
|
||
flex-shrink: 0;
|
||
height: 1em;
|
||
width: 1em;
|
||
position: relative;
|
||
`,[L(">",[H("clear",`
|
||
font-size: var(--n-clear-size);
|
||
height: 1em;
|
||
width: 1em;
|
||
cursor: pointer;
|
||
color: var(--n-clear-color);
|
||
transition: color .3s var(--n-bezier);
|
||
display: flex;
|
||
`,[L("&:hover",`
|
||
color: var(--n-clear-color-hover)!important;
|
||
`),L("&:active",`
|
||
color: var(--n-clear-color-pressed)!important;
|
||
`)]),H("placeholder",`
|
||
display: flex;
|
||
`),H("clear, placeholder",`
|
||
position: absolute;
|
||
left: 50%;
|
||
top: 50%;
|
||
transform: translateX(-50%) translateY(-50%);
|
||
`,[Do({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),uc=ve({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return er("-base-clear",DP,Se(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return v("div",{class:`${e}-base-clear`},v(_i,null,{default:()=>{var t,o;return this.show?v("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},Mo(this.$slots.icon,()=>[v(Tt,{clsPrefix:e},{default:()=>v(FP,null)})])):v("div",{key:"icon",class:`${e}-base-clear__placeholder`},(o=(t=this.$slots).placeholder)===null||o===void 0?void 0:o.call(t))}}))}}),LP=I("base-close",`
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
cursor: pointer;
|
||
background-color: transparent;
|
||
color: var(--n-close-icon-color);
|
||
border-radius: var(--n-close-border-radius);
|
||
height: var(--n-close-size);
|
||
width: var(--n-close-size);
|
||
font-size: var(--n-close-icon-size);
|
||
outline: none;
|
||
border: none;
|
||
position: relative;
|
||
padding: 0;
|
||
`,[Y("absolute",`
|
||
height: var(--n-close-icon-size);
|
||
width: var(--n-close-icon-size);
|
||
`),L("&::before",`
|
||
content: "";
|
||
position: absolute;
|
||
width: var(--n-close-size);
|
||
height: var(--n-close-size);
|
||
left: 50%;
|
||
top: 50%;
|
||
transform: translateY(-50%) translateX(-50%);
|
||
transition: inherit;
|
||
border-radius: inherit;
|
||
`),Ye("disabled",[L("&:hover",`
|
||
color: var(--n-close-icon-color-hover);
|
||
`),L("&:hover::before",`
|
||
background-color: var(--n-close-color-hover);
|
||
`),L("&:focus::before",`
|
||
background-color: var(--n-close-color-hover);
|
||
`),L("&:active",`
|
||
color: var(--n-close-icon-color-pressed);
|
||
`),L("&:active::before",`
|
||
background-color: var(--n-close-color-pressed);
|
||
`)]),Y("disabled",`
|
||
cursor: not-allowed;
|
||
color: var(--n-close-icon-color-disabled);
|
||
background-color: transparent;
|
||
`),Y("round",[L("&::before",`
|
||
border-radius: 50%;
|
||
`)])]),sv=ve({name:"BaseClose",props:{isButtonTag:{type:Boolean,default:!0},clsPrefix:{type:String,required:!0},disabled:{type:Boolean,default:void 0},focusable:{type:Boolean,default:!0},round:Boolean,onClick:Function,absolute:Boolean},setup(e){return er("-base-close",LP,Se(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:o,absolute:n,round:r,isButtonTag:i}=e;return v(i?"button":"div",{type:i?"button":void 0,tabindex:o||!e.focusable?-1:0,"aria-disabled":o,"aria-label":"close",role:i?void 0:"button",disabled:o,class:[`${t}-base-close`,n&&`${t}-base-close--absolute`,o&&`${t}-base-close--disabled`,r&&`${t}-base-close--round`],onMousedown:a=>{e.focusable||a.preventDefault()},onClick:e.onClick},v(Tt,{clsPrefix:t},{default:()=>v(AP,null)}))}}}),cv=ve({name:"FadeInExpandTransition",props:{appear:Boolean,group:Boolean,mode:String,onLeave:Function,onAfterLeave:Function,onAfterEnter:Function,width:Boolean,reverse:Boolean},setup(e,{slots:t}){function o(a){e.width?a.style.maxWidth=`${a.offsetWidth}px`:a.style.maxHeight=`${a.offsetHeight}px`,a.offsetWidth}function n(a){e.width?a.style.maxWidth="0":a.style.maxHeight="0",a.offsetWidth;const{onLeave:s}=e;s&&s()}function r(a){e.width?a.style.maxWidth="":a.style.maxHeight="";const{onAfterLeave:s}=e;s&&s()}function i(a){if(a.style.transition="none",e.width){const s=a.offsetWidth;a.style.maxWidth="0",a.offsetWidth,a.style.transition="",a.style.maxWidth=`${s}px`}else if(e.reverse)a.style.maxHeight=`${a.offsetHeight}px`,a.offsetHeight,a.style.transition="",a.style.maxHeight="0";else{const s=a.offsetHeight;a.style.maxHeight="0",a.offsetWidth,a.style.transition="",a.style.maxHeight=`${s}px`}a.offsetWidth}function l(a){var s;e.width?a.style.maxWidth="":e.reverse||(a.style.maxHeight=""),(s=e.onAfterEnter)===null||s===void 0||s.call(e)}return()=>{const{group:a,width:s,appear:c,mode:d}=e,u=a?Ub:Yo,f={name:s?"fade-in-width-expand-transition":"fade-in-height-expand-transition",appear:c,onEnter:i,onAfterEnter:l,onBeforeLeave:o,onLeave:n,onAfterLeave:r};return a||(f.mode=d),v(u,f,t)}}}),NP=ve({props:{onFocus:Function,onBlur:Function},setup(e){return()=>v("div",{style:"width: 0; height: 0",tabindex:0,onFocus:e.onFocus,onBlur:e.onBlur})}}),jP=L([L("@keyframes rotator",`
|
||
0% {
|
||
-webkit-transform: rotate(0deg);
|
||
transform: rotate(0deg);
|
||
}
|
||
100% {
|
||
-webkit-transform: rotate(360deg);
|
||
transform: rotate(360deg);
|
||
}`),I("base-loading",`
|
||
position: relative;
|
||
line-height: 0;
|
||
width: 1em;
|
||
height: 1em;
|
||
`,[H("transition-wrapper",`
|
||
position: absolute;
|
||
width: 100%;
|
||
height: 100%;
|
||
`,[Do()]),H("placeholder",`
|
||
position: absolute;
|
||
left: 50%;
|
||
top: 50%;
|
||
transform: translateX(-50%) translateY(-50%);
|
||
`,[Do({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),H("container",`
|
||
animation: rotator 3s linear infinite both;
|
||
`,[H("icon",`
|
||
height: 1em;
|
||
width: 1em;
|
||
`)])])]),fc="1.6s",ki=ve({name:"BaseLoading",props:Object.assign({clsPrefix:{type:String,required:!0},show:{type:Boolean,default:!0},scale:{type:Number,default:1},radius:{type:Number,default:100}},{strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}}),setup(e){er("-base-loading",jP,Se(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:o,stroke:n,scale:r}=this,i=t/r;return v("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},v(_i,null,{default:()=>this.show?v("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},v("div",{class:`${e}-base-loading__container`},v("svg",{class:`${e}-base-loading__icon`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:n}},v("g",null,v("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};270 ${i} ${i}`,begin:"0s",dur:fc,fill:"freeze",repeatCount:"indefinite"}),v("circle",{class:`${e}-base-loading__icon`,fill:"none",stroke:"currentColor","stroke-width":o,"stroke-linecap":"round",cx:i,cy:i,r:t-o/2,"stroke-dasharray":5.67*t,"stroke-dashoffset":18.48*t},v("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};135 ${i} ${i};450 ${i} ${i}`,begin:"0s",dur:fc,fill:"freeze",repeatCount:"indefinite"}),v("animate",{attributeName:"stroke-dashoffset",values:`${5.67*t};${1.42*t};${5.67*t}`,begin:"0s",dur:fc,fill:"freeze",repeatCount:"indefinite"})))))):v("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}}),{cubicBezierEaseInOut:dv}=Qn;function WP({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:o="0.2s",enterCubicBezier:n=dv,leaveCubicBezier:r=dv}={}){return[L(`&.${e}-transition-enter-active`,{transition:`all ${t} ${n}!important`}),L(`&.${e}-transition-leave-active`,{transition:`all ${o} ${r}!important`}),L(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),L(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const Oe={neutralBase:"#FFF",neutralInvertBase:"#000",neutralTextBase:"#000",neutralPopover:"#fff",neutralCard:"#fff",neutralModal:"#fff",neutralBody:"#fff",alpha1:"0.82",alpha2:"0.72",alpha3:"0.38",alpha4:"0.24",alpha5:"0.18",alphaClose:"0.6",alphaDisabled:"0.5",alphaAvatar:"0.2",alphaProgressRail:".08",alphaInput:"0",alphaScrollbar:"0.25",alphaScrollbarHover:"0.4",primaryHover:"#36ad6a",primaryDefault:"#18a058",primaryActive:"#0c7a43",primarySuppl:"#36ad6a",infoHover:"#4098fc",infoDefault:"#2080f0",infoActive:"#1060c9",infoSuppl:"#4098fc",errorHover:"#de576d",errorDefault:"#d03050",errorActive:"#ab1f3f",errorSuppl:"#de576d",warningHover:"#fcb040",warningDefault:"#f0a020",warningActive:"#c97c10",warningSuppl:"#fcb040",successHover:"#36ad6a",successDefault:"#18a058",successActive:"#0c7a43",successSuppl:"#36ad6a"},VP=Wn(Oe.neutralBase),uv=Wn(Oe.neutralInvertBase),UP=`rgba(${uv.slice(0,3).join(", ")}, `;function fv(e){return`${UP+String(e)})`}function Nt(e){const t=Array.from(uv);return t[3]=Number(e),Ue(VP,t)}const xt=Object.assign(Object.assign({name:"common"},Qn),{baseColor:Oe.neutralBase,primaryColor:Oe.primaryDefault,primaryColorHover:Oe.primaryHover,primaryColorPressed:Oe.primaryActive,primaryColorSuppl:Oe.primarySuppl,infoColor:Oe.infoDefault,infoColorHover:Oe.infoHover,infoColorPressed:Oe.infoActive,infoColorSuppl:Oe.infoSuppl,successColor:Oe.successDefault,successColorHover:Oe.successHover,successColorPressed:Oe.successActive,successColorSuppl:Oe.successSuppl,warningColor:Oe.warningDefault,warningColorHover:Oe.warningHover,warningColorPressed:Oe.warningActive,warningColorSuppl:Oe.warningSuppl,errorColor:Oe.errorDefault,errorColorHover:Oe.errorHover,errorColorPressed:Oe.errorActive,errorColorSuppl:Oe.errorSuppl,textColorBase:Oe.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:Nt(Oe.alpha4),placeholderColor:Nt(Oe.alpha4),placeholderColorDisabled:Nt(Oe.alpha5),iconColor:Nt(Oe.alpha4),iconColorHover:kl(Nt(Oe.alpha4),{lightness:.75}),iconColorPressed:kl(Nt(Oe.alpha4),{lightness:.9}),iconColorDisabled:Nt(Oe.alpha5),opacity1:Oe.alpha1,opacity2:Oe.alpha2,opacity3:Oe.alpha3,opacity4:Oe.alpha4,opacity5:Oe.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:Nt(Number(Oe.alphaClose)),closeIconColorHover:Nt(Number(Oe.alphaClose)),closeIconColorPressed:Nt(Number(Oe.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:Nt(Oe.alpha4),clearColorHover:kl(Nt(Oe.alpha4),{lightness:.75}),clearColorPressed:kl(Nt(Oe.alpha4),{lightness:.9}),scrollbarColor:fv(Oe.alphaScrollbar),scrollbarColorHover:fv(Oe.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:Nt(Oe.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:Oe.neutralPopover,tableColor:Oe.neutralCard,cardColor:Oe.neutralCard,modalColor:Oe.neutralModal,bodyColor:Oe.neutralBody,tagColor:"#eee",avatarColor:Nt(Oe.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:Nt(Oe.alphaInput),codeColor:"rgb(244, 244, 248)",tabColor:"rgb(247, 247, 250)",actionColor:"rgb(250, 250, 252)",tableHeaderColor:"rgb(250, 250, 252)",hoverColor:"rgb(243, 243, 245)",tableColorHover:"rgba(0, 0, 100, 0.03)",tableColorStriped:"rgba(0, 0, 100, 0.02)",pressedColor:"rgb(237, 237, 239)",opacityDisabled:Oe.alphaDisabled,inputColorDisabled:"rgb(250, 250, 252)",buttonColor2:"rgba(46, 51, 56, .05)",buttonColor2Hover:"rgba(46, 51, 56, .09)",buttonColor2Pressed:"rgba(46, 51, 56, .13)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .08), 0 3px 6px 0 rgba(0, 0, 0, .06), 0 5px 12px 4px rgba(0, 0, 0, .04)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .12), 0 6px 16px 0 rgba(0, 0, 0, .08), 0 9px 28px 8px rgba(0, 0, 0, .05)",boxShadow3:"0 6px 16px -9px rgba(0, 0, 0, .08), 0 9px 28px 0 rgba(0, 0, 0, .05), 0 12px 48px 16px rgba(0, 0, 0, .03)"}),KP={railInsetHorizontalBottom:"auto 2px 4px 2px",railInsetHorizontalTop:"4px 2px auto 2px",railInsetVerticalRight:"2px 4px 2px auto",railInsetVerticalLeft:"2px auto 2px 4px",railColor:"transparent"};function GP(e){const{scrollbarColor:t,scrollbarColorHover:o,scrollbarHeight:n,scrollbarWidth:r,scrollbarBorderRadius:i}=e;return Object.assign(Object.assign({},KP),{height:n,width:r,borderRadius:i,color:t,colorHover:o})}const Er={name:"Scrollbar",common:xt,self:GP},qP=I("scrollbar",`
|
||
overflow: hidden;
|
||
position: relative;
|
||
z-index: auto;
|
||
height: 100%;
|
||
width: 100%;
|
||
`,[L(">",[I("scrollbar-container",`
|
||
width: 100%;
|
||
overflow: scroll;
|
||
height: 100%;
|
||
min-height: inherit;
|
||
max-height: inherit;
|
||
scrollbar-width: none;
|
||
`,[L("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
|
||
width: 0;
|
||
height: 0;
|
||
display: none;
|
||
`),L(">",[I("scrollbar-content",`
|
||
box-sizing: border-box;
|
||
min-width: 100%;
|
||
`)])])]),L(">, +",[I("scrollbar-rail",`
|
||
position: absolute;
|
||
pointer-events: none;
|
||
user-select: none;
|
||
background: var(--n-scrollbar-rail-color);
|
||
-webkit-user-select: none;
|
||
`,[Y("horizontal",`
|
||
height: var(--n-scrollbar-height);
|
||
`,[L(">",[H("scrollbar",`
|
||
height: var(--n-scrollbar-height);
|
||
border-radius: var(--n-scrollbar-border-radius);
|
||
right: 0;
|
||
`)])]),Y("horizontal--top",`
|
||
top: var(--n-scrollbar-rail-top-horizontal-top);
|
||
right: var(--n-scrollbar-rail-right-horizontal-top);
|
||
bottom: var(--n-scrollbar-rail-bottom-horizontal-top);
|
||
left: var(--n-scrollbar-rail-left-horizontal-top);
|
||
`),Y("horizontal--bottom",`
|
||
top: var(--n-scrollbar-rail-top-horizontal-bottom);
|
||
right: var(--n-scrollbar-rail-right-horizontal-bottom);
|
||
bottom: var(--n-scrollbar-rail-bottom-horizontal-bottom);
|
||
left: var(--n-scrollbar-rail-left-horizontal-bottom);
|
||
`),Y("vertical",`
|
||
width: var(--n-scrollbar-width);
|
||
`,[L(">",[H("scrollbar",`
|
||
width: var(--n-scrollbar-width);
|
||
border-radius: var(--n-scrollbar-border-radius);
|
||
bottom: 0;
|
||
`)])]),Y("vertical--left",`
|
||
top: var(--n-scrollbar-rail-top-vertical-left);
|
||
right: var(--n-scrollbar-rail-right-vertical-left);
|
||
bottom: var(--n-scrollbar-rail-bottom-vertical-left);
|
||
left: var(--n-scrollbar-rail-left-vertical-left);
|
||
`),Y("vertical--right",`
|
||
top: var(--n-scrollbar-rail-top-vertical-right);
|
||
right: var(--n-scrollbar-rail-right-vertical-right);
|
||
bottom: var(--n-scrollbar-rail-bottom-vertical-right);
|
||
left: var(--n-scrollbar-rail-left-vertical-right);
|
||
`),Y("disabled",[L(">",[H("scrollbar","pointer-events: none;")])]),L(">",[H("scrollbar",`
|
||
z-index: 1;
|
||
position: absolute;
|
||
cursor: pointer;
|
||
pointer-events: all;
|
||
background-color: var(--n-scrollbar-color);
|
||
transition: background-color .2s var(--n-scrollbar-bezier);
|
||
`,[WP(),L("&:hover","background-color: var(--n-scrollbar-color-hover);")])])])])]),XP=Object.assign(Object.assign({},Ie.props),{duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:[String,Array],contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean,yPlacement:{type:String,default:"right"},xPlacement:{type:String,default:"bottom"}}),tr=ve({name:"Scrollbar",props:XP,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedRtlRef:n}=Je(e),r=qt("Scrollbar",n,t),i=V(null),l=V(null),a=V(null),s=V(null),c=V(null),d=V(null),u=V(null),f=V(null),h=V(null),p=V(null),g=V(null),b=V(0),m=V(0),x=V(!1),w=V(!1);let C=!1,P=!1,T,y,B=0,S=0,E=0,j=0;const _=Sy(),M=Ie("Scrollbar","-scrollbar",qP,Er,e,t),W=F(()=>{const{value:z}=f,{value:q}=d,{value:ce}=p;return z===null||q===null||ce===null?0:Math.min(z,ce*z/q+mn(M.value.self.width)*1.5)}),D=F(()=>`${W.value}px`),Z=F(()=>{const{value:z}=h,{value:q}=u,{value:ce}=g;return z===null||q===null||ce===null?0:ce*z/q+mn(M.value.self.height)*1.5}),U=F(()=>`${Z.value}px`),J=F(()=>{const{value:z}=f,{value:q}=b,{value:ce}=d,{value:Ce}=p;if(z===null||ce===null||Ce===null)return 0;{const Re=ce-z;return Re?q/Re*(Ce-W.value):0}}),pe=F(()=>`${J.value}px`),fe=F(()=>{const{value:z}=h,{value:q}=m,{value:ce}=u,{value:Ce}=g;if(z===null||ce===null||Ce===null)return 0;{const Re=ce-z;return Re?q/Re*(Ce-Z.value):0}}),N=F(()=>`${fe.value}px`),O=F(()=>{const{value:z}=f,{value:q}=d;return z!==null&&q!==null&&q>z}),A=F(()=>{const{value:z}=h,{value:q}=u;return z!==null&&q!==null&&q>z}),Q=F(()=>{const{trigger:z}=e;return z==="none"||x.value}),he=F(()=>{const{trigger:z}=e;return z==="none"||w.value}),we=F(()=>{const{container:z}=e;return z?z():l.value}),X=F(()=>{const{content:z}=e;return z?z():a.value}),de=(z,q)=>{if(!e.scrollable)return;if(typeof z=="number"){$(z,q??0,0,!1,"auto");return}const{left:ce,top:Ce,index:Re,elSize:Te,position:Ee,behavior:Ae,el:Ge,debounce:ut=!0}=z;(ce!==void 0||Ce!==void 0)&&$(ce??0,Ce??0,0,!1,Ae),Ge!==void 0?$(0,Ge.offsetTop,Ge.offsetHeight,ut,Ae):Re!==void 0&&Te!==void 0?$(0,Re*Te,Te,ut,Ae):Ee==="bottom"?$(0,Number.MAX_SAFE_INTEGER,0,!1,Ae):Ee==="top"&&$(0,0,0,!1,Ae)},R=xs(()=>{e.container||de({top:b.value,left:m.value})}),ae=()=>{R.isDeactivated||se()},_e=z=>{if(R.isDeactivated)return;const{onResize:q}=e;q&&q(z),se()},k=(z,q)=>{if(!e.scrollable)return;const{value:ce}=we;ce&&(typeof z=="object"?ce.scrollBy(z):ce.scrollBy(z,q||0))};function $(z,q,ce,Ce,Re){const{value:Te}=we;if(Te){if(Ce){const{scrollTop:Ee,offsetHeight:Ae}=Te;if(q>Ee){q+ce<=Ee+Ae||Te.scrollTo({left:z,top:q+ce-Ae,behavior:Re});return}}Te.scrollTo({left:z,top:q,behavior:Re})}}function K(){ne(),te(),se()}function ie(){le()}function le(){re(),xe()}function re(){y!==void 0&&window.clearTimeout(y),y=window.setTimeout(()=>{w.value=!1},e.duration)}function xe(){T!==void 0&&window.clearTimeout(T),T=window.setTimeout(()=>{x.value=!1},e.duration)}function ne(){T!==void 0&&window.clearTimeout(T),x.value=!0}function te(){y!==void 0&&window.clearTimeout(y),w.value=!0}function oe(z){const{onScroll:q}=e;q&&q(z),ye()}function ye(){const{value:z}=we;z&&(b.value=z.scrollTop,m.value=z.scrollLeft*(r!=null&&r.value?-1:1))}function be(){const{value:z}=X;z&&(d.value=z.offsetHeight,u.value=z.offsetWidth);const{value:q}=we;q&&(f.value=q.offsetHeight,h.value=q.offsetWidth);const{value:ce}=c,{value:Ce}=s;ce&&(g.value=ce.offsetWidth),Ce&&(p.value=Ce.offsetHeight)}function ee(){const{value:z}=we;z&&(b.value=z.scrollTop,m.value=z.scrollLeft*(r!=null&&r.value?-1:1),f.value=z.offsetHeight,h.value=z.offsetWidth,d.value=z.scrollHeight,u.value=z.scrollWidth);const{value:q}=c,{value:ce}=s;q&&(g.value=q.offsetWidth),ce&&(p.value=ce.offsetHeight)}function se(){e.scrollable&&(e.useUnifiedContainer?ee():(be(),ye()))}function ke(z){var q;return!(!((q=i.value)===null||q===void 0)&&q.contains(ci(z)))}function Me(z){z.preventDefault(),z.stopPropagation(),P=!0,bt("mousemove",window,He,!0),bt("mouseup",window,Qe,!0),S=m.value,E=r!=null&&r.value?window.innerWidth-z.clientX:z.clientX}function He(z){if(!P)return;T!==void 0&&window.clearTimeout(T),y!==void 0&&window.clearTimeout(y);const{value:q}=h,{value:ce}=u,{value:Ce}=Z;if(q===null||ce===null)return;const Te=(r!=null&&r.value?window.innerWidth-z.clientX-E:z.clientX-E)*(ce-q)/(q-Ce),Ee=ce-q;let Ae=S+Te;Ae=Math.min(Ee,Ae),Ae=Math.max(Ae,0);const{value:Ge}=we;if(Ge){Ge.scrollLeft=Ae*(r!=null&&r.value?-1:1);const{internalOnUpdateScrollLeft:ut}=e;ut&&ut(Ae)}}function Qe(z){z.preventDefault(),z.stopPropagation(),ct("mousemove",window,He,!0),ct("mouseup",window,Qe,!0),P=!1,se(),ke(z)&&le()}function Ve(z){z.preventDefault(),z.stopPropagation(),C=!0,bt("mousemove",window,We,!0),bt("mouseup",window,ot,!0),B=b.value,j=z.clientY}function We(z){if(!C)return;T!==void 0&&window.clearTimeout(T),y!==void 0&&window.clearTimeout(y);const{value:q}=f,{value:ce}=d,{value:Ce}=W;if(q===null||ce===null)return;const Te=(z.clientY-j)*(ce-q)/(q-Ce),Ee=ce-q;let Ae=B+Te;Ae=Math.min(Ee,Ae),Ae=Math.max(Ae,0);const{value:Ge}=we;Ge&&(Ge.scrollTop=Ae)}function ot(z){z.preventDefault(),z.stopPropagation(),ct("mousemove",window,We,!0),ct("mouseup",window,ot,!0),C=!1,se(),ke(z)&&le()}Mt(()=>{const{value:z}=A,{value:q}=O,{value:ce}=t,{value:Ce}=c,{value:Re}=s;Ce&&(z?Ce.classList.remove(`${ce}-scrollbar-rail--disabled`):Ce.classList.add(`${ce}-scrollbar-rail--disabled`)),Re&&(q?Re.classList.remove(`${ce}-scrollbar-rail--disabled`):Re.classList.add(`${ce}-scrollbar-rail--disabled`))}),Bt(()=>{e.container||se()}),Ft(()=>{T!==void 0&&window.clearTimeout(T),y!==void 0&&window.clearTimeout(y),ct("mousemove",window,We,!0),ct("mouseup",window,ot,!0)});const Xe=F(()=>{const{common:{cubicBezierEaseInOut:z},self:{color:q,colorHover:ce,height:Ce,width:Re,borderRadius:Te,railInsetHorizontalTop:Ee,railInsetHorizontalBottom:Ae,railInsetVerticalRight:Ge,railInsetVerticalLeft:ut,railColor:et}}=M.value,{top:jt,right:Xt,bottom:Yt,left:Qt}=no(Ee),{top:eo,right:po,bottom:to,left:G}=no(Ae),{top:ue,right:Fe,bottom:je,left:nt}=no(r!=null&&r.value?qh(Ge):Ge),{top:qe,right:vt,bottom:yt,left:io}=no(r!=null&&r.value?qh(ut):ut);return{"--n-scrollbar-bezier":z,"--n-scrollbar-color":q,"--n-scrollbar-color-hover":ce,"--n-scrollbar-border-radius":Te,"--n-scrollbar-width":Re,"--n-scrollbar-height":Ce,"--n-scrollbar-rail-top-horizontal-top":jt,"--n-scrollbar-rail-right-horizontal-top":Xt,"--n-scrollbar-rail-bottom-horizontal-top":Yt,"--n-scrollbar-rail-left-horizontal-top":Qt,"--n-scrollbar-rail-top-horizontal-bottom":eo,"--n-scrollbar-rail-right-horizontal-bottom":po,"--n-scrollbar-rail-bottom-horizontal-bottom":to,"--n-scrollbar-rail-left-horizontal-bottom":G,"--n-scrollbar-rail-top-vertical-right":ue,"--n-scrollbar-rail-right-vertical-right":Fe,"--n-scrollbar-rail-bottom-vertical-right":je,"--n-scrollbar-rail-left-vertical-right":nt,"--n-scrollbar-rail-top-vertical-left":qe,"--n-scrollbar-rail-right-vertical-left":vt,"--n-scrollbar-rail-bottom-vertical-left":yt,"--n-scrollbar-rail-left-vertical-left":io,"--n-scrollbar-rail-color":et}}),Pe=o?gt("scrollbar",void 0,Xe,e):void 0;return Object.assign(Object.assign({},{scrollTo:de,scrollBy:k,sync:se,syncUnifiedContainer:ee,handleMouseEnterWrapper:K,handleMouseLeaveWrapper:ie}),{mergedClsPrefix:t,rtlEnabled:r,containerScrollTop:b,wrapperRef:i,containerRef:l,contentRef:a,yRailRef:s,xRailRef:c,needYBar:O,needXBar:A,yBarSizePx:D,xBarSizePx:U,yBarTopPx:pe,xBarLeftPx:N,isShowXBar:Q,isShowYBar:he,isIos:_,handleScroll:oe,handleContentResize:ae,handleContainerResize:_e,handleYScrollMouseDown:Ve,handleXScrollMouseDown:Me,cssVars:o?void 0:Xe,themeClass:Pe==null?void 0:Pe.themeClass,onRender:Pe==null?void 0:Pe.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:o,triggerDisplayManually:n,rtlEnabled:r,internalHoistYRail:i,yPlacement:l,xPlacement:a,xScrollable:s}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const c=this.trigger==="none",d=(h,p)=>v("div",{ref:"yRailRef",class:[`${o}-scrollbar-rail`,`${o}-scrollbar-rail--vertical`,`${o}-scrollbar-rail--vertical--${l}`,h],"data-scrollbar-rail":!0,style:[p||"",this.verticalRailStyle],"aria-hidden":!0},v(c?Hs:Yo,c?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?v("div",{class:`${o}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),u=()=>{var h,p;return(h=this.onRender)===null||h===void 0||h.call(this),v("div",xo(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${o}-scrollbar`,this.themeClass,r&&`${o}-scrollbar--rtl`],style:this.cssVars,onMouseenter:n?void 0:this.handleMouseEnterWrapper,onMouseleave:n?void 0:this.handleMouseLeaveWrapper}),[this.container?(p=t.default)===null||p===void 0?void 0:p.call(t):v("div",{role:"none",ref:"containerRef",class:[`${o}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},v(wn,{onResize:this.handleContentResize},{default:()=>v("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${o}-scrollbar-content`,this.contentClass]},t)})),i?null:d(void 0,void 0),s&&v("div",{ref:"xRailRef",class:[`${o}-scrollbar-rail`,`${o}-scrollbar-rail--horizontal`,`${o}-scrollbar-rail--horizontal--${a}`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},v(c?Hs:Yo,c?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?v("div",{class:`${o}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:r?this.xBarLeftPx:void 0,left:r?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},f=this.container?u():v(wn,{onResize:this.handleContainerResize},{default:u});return i?v(it,null,f,d(this.themeClass,this.cssVars)):f}}),hv=tr;function pv(e){return Array.isArray(e)?e:[e]}const hc={STOP:"STOP"};function vv(e,t){const o=t(e);e.children!==void 0&&o!==hc.STOP&&e.children.forEach(n=>vv(n,t))}function YP(e,t={}){const{preserveGroup:o=!1}=t,n=[],r=o?l=>{l.isLeaf||(n.push(l.key),i(l.children))}:l=>{l.isLeaf||(l.isGroup||n.push(l.key),i(l.children))};function i(l){l.forEach(r)}return i(e),n}function ZP(e,t){const{isLeaf:o}=e;return o!==void 0?o:!t(e)}function JP(e){return e.children}function QP(e){return e.key}function e_(){return!1}function t_(e,t){const{isLeaf:o}=e;return!(o===!1&&!Array.isArray(t(e)))}function o_(e){return e.disabled===!0}function n_(e,t){return e.isLeaf===!1&&!Array.isArray(t(e))}function pc(e){var t;return e==null?[]:Array.isArray(e)?e:(t=e.checkedKeys)!==null&&t!==void 0?t:[]}function vc(e){var t;return e==null||Array.isArray(e)?[]:(t=e.indeterminateKeys)!==null&&t!==void 0?t:[]}function r_(e,t){const o=new Set(e);return t.forEach(n=>{o.has(n)||o.add(n)}),Array.from(o)}function i_(e,t){const o=new Set(e);return t.forEach(n=>{o.has(n)&&o.delete(n)}),Array.from(o)}function l_(e){return(e==null?void 0:e.type)==="group"}function a_(e){const t=new Map;return e.forEach((o,n)=>{t.set(o.key,n)}),o=>{var n;return(n=t.get(o))!==null&&n!==void 0?n:null}}class s_ extends Error{constructor(){super(),this.message="SubtreeNotLoadedError: checking a subtree whose required nodes are not fully loaded."}}function c_(e,t,o,n){return Jl(t.concat(e),o,n,!1)}function d_(e,t){const o=new Set;return e.forEach(n=>{const r=t.treeNodeMap.get(n);if(r!==void 0){let i=r.parent;for(;i!==null&&!(i.disabled||o.has(i.key));)o.add(i.key),i=i.parent}}),o}function u_(e,t,o,n){const r=Jl(t,o,n,!1),i=Jl(e,o,n,!0),l=d_(e,o),a=[];return r.forEach(s=>{(i.has(s)||l.has(s))&&a.push(s)}),a.forEach(s=>r.delete(s)),r}function gc(e,t){const{checkedKeys:o,keysToCheck:n,keysToUncheck:r,indeterminateKeys:i,cascade:l,leafOnly:a,checkStrategy:s,allowNotLoaded:c}=e;if(!l)return n!==void 0?{checkedKeys:r_(o,n),indeterminateKeys:Array.from(i)}:r!==void 0?{checkedKeys:i_(o,r),indeterminateKeys:Array.from(i)}:{checkedKeys:Array.from(o),indeterminateKeys:Array.from(i)};const{levelTreeNodeMap:d}=t;let u;r!==void 0?u=u_(r,o,t,c):n!==void 0?u=c_(n,o,t,c):u=Jl(o,t,c,!1);const f=s==="parent",h=s==="child"||a,p=u,g=new Set,b=Math.max.apply(null,Array.from(d.keys()));for(let m=b;m>=0;m-=1){const x=m===0,w=d.get(m);for(const C of w){if(C.isLeaf)continue;const{key:P,shallowLoaded:T}=C;if(h&&T&&C.children.forEach(E=>{!E.disabled&&!E.isLeaf&&E.shallowLoaded&&p.has(E.key)&&p.delete(E.key)}),C.disabled||!T)continue;let y=!0,B=!1,S=!0;for(const E of C.children){const j=E.key;if(!E.disabled){if(S&&(S=!1),p.has(j))B=!0;else if(g.has(j)){B=!0,y=!1;break}else if(y=!1,B)break}}y&&!S?(f&&C.children.forEach(E=>{!E.disabled&&p.has(E.key)&&p.delete(E.key)}),p.add(P)):B&&g.add(P),x&&h&&p.has(P)&&p.delete(P)}}return{checkedKeys:Array.from(p),indeterminateKeys:Array.from(g)}}function Jl(e,t,o,n){const{treeNodeMap:r,getChildren:i}=t,l=new Set,a=new Set(e);return e.forEach(s=>{const c=r.get(s);c!==void 0&&vv(c,d=>{if(d.disabled)return hc.STOP;const{key:u}=d;if(!l.has(u)&&(l.add(u),a.add(u),n_(d.rawNode,i))){if(n)return hc.STOP;if(!o)throw new s_}})}),a}function f_(e,{includeGroup:t=!1,includeSelf:o=!0},n){var r;const i=n.treeNodeMap;let l=e==null?null:(r=i.get(e))!==null&&r!==void 0?r:null;const a={keyPath:[],treeNodePath:[],treeNode:l};if(l!=null&&l.ignored)return a.treeNode=null,a;for(;l;)!l.ignored&&(t||!l.isGroup)&&a.treeNodePath.push(l),l=l.parent;return a.treeNodePath.reverse(),o||a.treeNodePath.pop(),a.keyPath=a.treeNodePath.map(s=>s.key),a}function h_(e){if(e.length===0)return null;const t=e[0];return t.isGroup||t.ignored||t.disabled?t.getNext():t}function p_(e,t){const o=e.siblings,n=o.length,{index:r}=e;return t?o[(r+1)%n]:r===o.length-1?null:o[r+1]}function gv(e,t,{loop:o=!1,includeDisabled:n=!1}={}){const r=t==="prev"?v_:p_,i={reverse:t==="prev"};let l=!1,a=null;function s(c){if(c!==null){if(c===e){if(!l)l=!0;else if(!e.disabled&&!e.isGroup){a=e;return}}else if((!c.disabled||n)&&!c.ignored&&!c.isGroup){a=c;return}if(c.isGroup){const d=mc(c,i);d!==null?a=d:s(r(c,o))}else{const d=r(c,!1);if(d!==null)s(d);else{const u=g_(c);u!=null&&u.isGroup?s(r(u,o)):o&&s(r(c,!0))}}}}return s(e),a}function v_(e,t){const o=e.siblings,n=o.length,{index:r}=e;return t?o[(r-1+n)%n]:r===0?null:o[r-1]}function g_(e){return e.parent}function mc(e,t={}){const{reverse:o=!1}=t,{children:n}=e;if(n){const{length:r}=n,i=o?r-1:0,l=o?-1:r,a=o?-1:1;for(let s=i;s!==l;s+=a){const c=n[s];if(!c.disabled&&!c.ignored)if(c.isGroup){const d=mc(c,t);if(d!==null)return d}else return c}}return null}const m_={getChild(){return this.ignored?null:mc(this)},getParent(){const{parent:e}=this;return e!=null&&e.isGroup?e.getParent():e},getNext(e={}){return gv(this,"next",e)},getPrev(e={}){return gv(this,"prev",e)}};function b_(e,t){const o=t?new Set(t):void 0,n=[];function r(i){i.forEach(l=>{n.push(l),!(l.isLeaf||!l.children||l.ignored)&&(l.isGroup||o===void 0||o.has(l.key))&&r(l.children)})}return r(e),n}function x_(e,t){const o=e.key;for(;t;){if(t.key===o)return!0;t=t.parent}return!1}function mv(e,t,o,n,r,i=null,l=0){const a=[];return e.forEach((s,c)=>{var d;const u=Object.create(n);if(u.rawNode=s,u.siblings=a,u.level=l,u.index=c,u.isFirstChild=c===0,u.isLastChild=c+1===e.length,u.parent=i,!u.ignored){const f=r(s);Array.isArray(f)&&(u.children=mv(f,t,o,n,r,u,l+1))}a.push(u),t.set(u.key,u),o.has(l)||o.set(l,[]),(d=o.get(l))===null||d===void 0||d.push(u)}),a}function or(e,t={}){var o;const n=new Map,r=new Map,{getDisabled:i=o_,getIgnored:l=e_,getIsGroup:a=l_,getKey:s=QP}=t,c=(o=t.getChildren)!==null&&o!==void 0?o:JP,d=t.ignoreEmptyChildren?C=>{const P=c(C);return Array.isArray(P)?P.length?P:null:P}:c,u=Object.assign({get key(){return s(this.rawNode)},get disabled(){return i(this.rawNode)},get isGroup(){return a(this.rawNode)},get isLeaf(){return ZP(this.rawNode,d)},get shallowLoaded(){return t_(this.rawNode,d)},get ignored(){return l(this.rawNode)},contains(C){return x_(this,C)}},m_),f=mv(e,n,r,u,d);function h(C){if(C==null)return null;const P=n.get(C);return P&&!P.isGroup&&!P.ignored?P:null}function p(C){if(C==null)return null;const P=n.get(C);return P&&!P.ignored?P:null}function g(C,P){const T=p(C);return T?T.getPrev(P):null}function b(C,P){const T=p(C);return T?T.getNext(P):null}function m(C){const P=p(C);return P?P.getParent():null}function x(C){const P=p(C);return P?P.getChild():null}const w={treeNodes:f,treeNodeMap:n,levelTreeNodeMap:r,maxLevel:Math.max(...r.keys()),getChildren:d,getFlattenedNodes(C){return b_(f,C)},getNode:h,getPrev:g,getNext:b,getParent:m,getChild:x,getFirstAvailableNode(){return h_(f)},getPath(C,P={}){return f_(C,P,w)},getCheckedKeys(C,P={}){const{cascade:T=!0,leafOnly:y=!1,checkStrategy:B="all",allowNotLoaded:S=!1}=P;return gc({checkedKeys:pc(C),indeterminateKeys:vc(C),cascade:T,leafOnly:y,checkStrategy:B,allowNotLoaded:S},w)},check(C,P,T={}){const{cascade:y=!0,leafOnly:B=!1,checkStrategy:S="all",allowNotLoaded:E=!1}=T;return gc({checkedKeys:pc(P),indeterminateKeys:vc(P),keysToCheck:C==null?[]:pv(C),cascade:y,leafOnly:B,checkStrategy:S,allowNotLoaded:E},w)},uncheck(C,P,T={}){const{cascade:y=!0,leafOnly:B=!1,checkStrategy:S="all",allowNotLoaded:E=!1}=T;return gc({checkedKeys:pc(P),indeterminateKeys:vc(P),keysToUncheck:C==null?[]:pv(C),cascade:y,leafOnly:B,checkStrategy:S,allowNotLoaded:E},w)},getNonLeafKeys(C={}){return YP(f,C)}};return w}const y_={iconSizeTiny:"28px",iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"};function C_(e){const{textColorDisabled:t,iconColor:o,textColor2:n,fontSizeTiny:r,fontSizeSmall:i,fontSizeMedium:l,fontSizeLarge:a,fontSizeHuge:s}=e;return Object.assign(Object.assign({},y_),{fontSizeTiny:r,fontSizeSmall:i,fontSizeMedium:l,fontSizeLarge:a,fontSizeHuge:s,textColor:t,iconColor:o,extraTextColor:n})}const bc={name:"Empty",common:xt,self:C_},w_=I("empty",`
|
||
display: flex;
|
||
flex-direction: column;
|
||
align-items: center;
|
||
font-size: var(--n-font-size);
|
||
`,[H("icon",`
|
||
width: var(--n-icon-size);
|
||
height: var(--n-icon-size);
|
||
font-size: var(--n-icon-size);
|
||
line-height: var(--n-icon-size);
|
||
color: var(--n-icon-color);
|
||
transition:
|
||
color .3s var(--n-bezier);
|
||
`,[L("+",[H("description",`
|
||
margin-top: 8px;
|
||
`)])]),H("description",`
|
||
transition: color .3s var(--n-bezier);
|
||
color: var(--n-text-color);
|
||
`),H("extra",`
|
||
text-align: center;
|
||
transition: color .3s var(--n-bezier);
|
||
margin-top: 12px;
|
||
color: var(--n-extra-text-color);
|
||
`)]),S_=Object.assign(Object.assign({},Ie.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function}),bv=ve({name:"Empty",props:S_,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedComponentPropsRef:n}=Je(e),r=Ie("Empty","-empty",w_,bc,e,t),{localeRef:i}=Pi("Empty"),l=F(()=>{var d,u,f;return(d=e.description)!==null&&d!==void 0?d:(f=(u=n==null?void 0:n.value)===null||u===void 0?void 0:u.Empty)===null||f===void 0?void 0:f.description}),a=F(()=>{var d,u;return((u=(d=n==null?void 0:n.value)===null||d===void 0?void 0:d.Empty)===null||u===void 0?void 0:u.renderIcon)||(()=>v(IP,null))}),s=F(()=>{const{size:d}=e,{common:{cubicBezierEaseInOut:u},self:{[me("iconSize",d)]:f,[me("fontSize",d)]:h,textColor:p,iconColor:g,extraTextColor:b}}=r.value;return{"--n-icon-size":f,"--n-font-size":h,"--n-bezier":u,"--n-text-color":p,"--n-icon-color":g,"--n-extra-text-color":b}}),c=o?gt("empty",F(()=>{let d="";const{size:u}=e;return d+=u[0],d}),s,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:a,localizedDescription:F(()=>l.value||i.value.description),cssVars:o?void 0:s,themeClass:c==null?void 0:c.themeClass,onRender:c==null?void 0:c.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:o}=this;return o==null||o(),v("div",{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?v("div",{class:`${t}-empty__icon`},e.icon?e.icon():v(Tt,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?v("div",{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?v("div",{class:`${t}-empty__extra`},e.extra()):null)}}),R_={height:"calc(var(--n-option-height) * 7.6)",paddingTiny:"4px 0",paddingSmall:"4px 0",paddingMedium:"4px 0",paddingLarge:"4px 0",paddingHuge:"4px 0",optionPaddingTiny:"0 12px",optionPaddingSmall:"0 12px",optionPaddingMedium:"0 12px",optionPaddingLarge:"0 12px",optionPaddingHuge:"0 12px",loadingSize:"18px"};function P_(e){const{borderRadius:t,popoverColor:o,textColor3:n,dividerColor:r,textColor2:i,primaryColorPressed:l,textColorDisabled:a,primaryColor:s,opacityDisabled:c,hoverColor:d,fontSizeTiny:u,fontSizeSmall:f,fontSizeMedium:h,fontSizeLarge:p,fontSizeHuge:g,heightTiny:b,heightSmall:m,heightMedium:x,heightLarge:w,heightHuge:C}=e;return Object.assign(Object.assign({},R_),{optionFontSizeTiny:u,optionFontSizeSmall:f,optionFontSizeMedium:h,optionFontSizeLarge:p,optionFontSizeHuge:g,optionHeightTiny:b,optionHeightSmall:m,optionHeightMedium:x,optionHeightLarge:w,optionHeightHuge:C,borderRadius:t,color:o,groupHeaderTextColor:n,actionDividerColor:r,optionTextColor:i,optionTextColorPressed:l,optionTextColorDisabled:a,optionTextColorActive:s,optionOpacityDisabled:c,optionCheckColor:s,optionColorPending:d,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:d,actionTextColor:i,loadingColor:s})}const xc={name:"InternalSelectMenu",common:xt,peers:{Scrollbar:Er,Empty:bc},self:P_},xv=ve({name:"NBaseSelectGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{renderLabelRef:e,renderOptionRef:t,labelFieldRef:o,nodePropsRef:n}=$e(gs);return{labelField:o,nodeProps:n,renderLabel:e,renderOption:t}},render(){const{clsPrefix:e,renderLabel:t,renderOption:o,nodeProps:n,tmNode:{rawNode:r}}=this,i=n==null?void 0:n(r),l=t?t(r,!1):Lt(r[this.labelField],r,!1),a=v("div",Object.assign({},i,{class:[`${e}-base-select-group-header`,i==null?void 0:i.class]}),l);return r.render?r.render({node:a,option:r}):o?o({node:a,option:r,selected:!1}):a}});function __(e,t){return v(Yo,{name:"fade-in-scale-up-transition"},{default:()=>e?v(Tt,{clsPrefix:t,class:`${t}-base-select-option__check`},{default:()=>v($P)}):null})}const yv=ve({name:"NBaseSelectOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(e){const{valueRef:t,pendingTmNodeRef:o,multipleRef:n,valueSetRef:r,renderLabelRef:i,renderOptionRef:l,labelFieldRef:a,valueFieldRef:s,showCheckmarkRef:c,nodePropsRef:d,handleOptionClick:u,handleOptionMouseEnter:f}=$e(gs),h=Ze(()=>{const{value:m}=o;return m?e.tmNode.key===m.key:!1});function p(m){const{tmNode:x}=e;x.disabled||u(m,x)}function g(m){const{tmNode:x}=e;x.disabled||f(m,x)}function b(m){const{tmNode:x}=e,{value:w}=h;x.disabled||w||f(m,x)}return{multiple:n,isGrouped:Ze(()=>{const{tmNode:m}=e,{parent:x}=m;return x&&x.rawNode.type==="group"}),showCheckmark:c,nodeProps:d,isPending:h,isSelected:Ze(()=>{const{value:m}=t,{value:x}=n;if(m===null)return!1;const w=e.tmNode.rawNode[s.value];if(x){const{value:C}=r;return C.has(w)}else return m===w}),labelField:a,renderLabel:i,renderOption:l,handleMouseMove:b,handleMouseEnter:g,handleClick:p}},render(){const{clsPrefix:e,tmNode:{rawNode:t},isSelected:o,isPending:n,isGrouped:r,showCheckmark:i,nodeProps:l,renderOption:a,renderLabel:s,handleClick:c,handleMouseEnter:d,handleMouseMove:u}=this,f=__(o,e),h=s?[s(t,o),i&&f]:[Lt(t[this.labelField],t,o),i&&f],p=l==null?void 0:l(t),g=v("div",Object.assign({},p,{class:[`${e}-base-select-option`,t.class,p==null?void 0:p.class,{[`${e}-base-select-option--disabled`]:t.disabled,[`${e}-base-select-option--selected`]:o,[`${e}-base-select-option--grouped`]:r,[`${e}-base-select-option--pending`]:n,[`${e}-base-select-option--show-checkmark`]:i}],style:[(p==null?void 0:p.style)||"",t.style||""],onClick:mi([c,p==null?void 0:p.onClick]),onMouseenter:mi([d,p==null?void 0:p.onMouseenter]),onMousemove:mi([u,p==null?void 0:p.onMousemove])}),v("div",{class:`${e}-base-select-option__content`},h));return t.render?t.render({node:g,option:t,selected:o}):a?a({node:g,option:t,selected:o}):g}}),{cubicBezierEaseIn:Cv,cubicBezierEaseOut:wv}=Qn;function Ql({transformOrigin:e="inherit",duration:t=".2s",enterScale:o=".9",originalTransform:n="",originalTransition:r=""}={}){return[L("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${Cv}, transform ${t} ${Cv} ${r&&`,${r}`}`}),L("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${wv}, transform ${t} ${wv} ${r&&`,${r}`}`}),L("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${n} scale(${o})`}),L("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${n} scale(1)`})]}const k_=I("base-select-menu",`
|
||
line-height: 1.5;
|
||
outline: none;
|
||
z-index: 0;
|
||
position: relative;
|
||
border-radius: var(--n-border-radius);
|
||
transition:
|
||
background-color .3s var(--n-bezier),
|
||
box-shadow .3s var(--n-bezier);
|
||
background-color: var(--n-color);
|
||
`,[I("scrollbar",`
|
||
max-height: var(--n-height);
|
||
`),I("virtual-list",`
|
||
max-height: var(--n-height);
|
||
`),I("base-select-option",`
|
||
min-height: var(--n-option-height);
|
||
font-size: var(--n-option-font-size);
|
||
display: flex;
|
||
align-items: center;
|
||
`,[H("content",`
|
||
z-index: 1;
|
||
white-space: nowrap;
|
||
text-overflow: ellipsis;
|
||
overflow: hidden;
|
||
`)]),I("base-select-group-header",`
|
||
min-height: var(--n-option-height);
|
||
font-size: .93em;
|
||
display: flex;
|
||
align-items: center;
|
||
`),I("base-select-menu-option-wrapper",`
|
||
position: relative;
|
||
width: 100%;
|
||
`),H("loading, empty",`
|
||
display: flex;
|
||
padding: 12px 32px;
|
||
flex: 1;
|
||
justify-content: center;
|
||
`),H("loading",`
|
||
color: var(--n-loading-color);
|
||
font-size: var(--n-loading-size);
|
||
`),H("header",`
|
||
padding: 8px var(--n-option-padding-left);
|
||
font-size: var(--n-option-font-size);
|
||
transition:
|
||
color .3s var(--n-bezier),
|
||
border-color .3s var(--n-bezier);
|
||
border-bottom: 1px solid var(--n-action-divider-color);
|
||
color: var(--n-action-text-color);
|
||
`),H("action",`
|
||
padding: 8px var(--n-option-padding-left);
|
||
font-size: var(--n-option-font-size);
|
||
transition:
|
||
color .3s var(--n-bezier),
|
||
border-color .3s var(--n-bezier);
|
||
border-top: 1px solid var(--n-action-divider-color);
|
||
color: var(--n-action-text-color);
|
||
`),I("base-select-group-header",`
|
||
position: relative;
|
||
cursor: default;
|
||
padding: var(--n-option-padding);
|
||
color: var(--n-group-header-text-color);
|
||
`),I("base-select-option",`
|
||
cursor: pointer;
|
||
position: relative;
|
||
padding: var(--n-option-padding);
|
||
transition:
|
||
color .3s var(--n-bezier),
|
||
opacity .3s var(--n-bezier);
|
||
box-sizing: border-box;
|
||
color: var(--n-option-text-color);
|
||
opacity: 1;
|
||
`,[Y("show-checkmark",`
|
||
padding-right: calc(var(--n-option-padding-right) + 20px);
|
||
`),L("&::before",`
|
||
content: "";
|
||
position: absolute;
|
||
left: 4px;
|
||
right: 4px;
|
||
top: 0;
|
||
bottom: 0;
|
||
border-radius: var(--n-border-radius);
|
||
transition: background-color .3s var(--n-bezier);
|
||
`),L("&:active",`
|
||
color: var(--n-option-text-color-pressed);
|
||
`),Y("grouped",`
|
||
padding-left: calc(var(--n-option-padding-left) * 1.5);
|
||
`),Y("pending",[L("&::before",`
|
||
background-color: var(--n-option-color-pending);
|
||
`)]),Y("selected",`
|
||
color: var(--n-option-text-color-active);
|
||
`,[L("&::before",`
|
||
background-color: var(--n-option-color-active);
|
||
`),Y("pending",[L("&::before",`
|
||
background-color: var(--n-option-color-active-pending);
|
||
`)])]),Y("disabled",`
|
||
cursor: not-allowed;
|
||
`,[Ye("selected",`
|
||
color: var(--n-option-text-color-disabled);
|
||
`),Y("selected",`
|
||
opacity: var(--n-option-opacity-disabled);
|
||
`)]),H("check",`
|
||
font-size: 16px;
|
||
position: absolute;
|
||
right: calc(var(--n-option-padding-right) - 4px);
|
||
top: calc(50% - 7px);
|
||
color: var(--n-option-check-color);
|
||
transition: color .3s var(--n-bezier);
|
||
`,[Ql({enterScale:"0.5"})])])]),Sv=ve({name:"InternalSelectMenu",props:Object.assign(Object.assign({},Ie.props),{clsPrefix:{type:String,required:!0},scrollable:{type:Boolean,default:!0},treeMate:{type:Object,required:!0},multiple:Boolean,size:{type:String,default:"medium"},value:{type:[String,Number,Array],default:null},autoPending:Boolean,virtualScroll:{type:Boolean,default:!0},show:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},loading:Boolean,focusable:Boolean,renderLabel:Function,renderOption:Function,nodeProps:Function,showCheckmark:{type:Boolean,default:!0},onMousedown:Function,onScroll:Function,onFocus:Function,onBlur:Function,onKeyup:Function,onKeydown:Function,onTabOut:Function,onMouseenter:Function,onMouseleave:Function,onResize:Function,resetMenuOnOptionsChange:{type:Boolean,default:!0},inlineThemeDisabled:Boolean,onToggle:Function}),setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=Je(e),n=qt("InternalSelectMenu",o,t),r=Ie("InternalSelectMenu","-internal-select-menu",k_,xc,e,Se(e,"clsPrefix")),i=V(null),l=V(null),a=V(null),s=F(()=>e.treeMate.getFlattenedNodes()),c=F(()=>a_(s.value)),d=V(null);function u(){const{treeMate:O}=e;let A=null;const{value:Q}=e;Q===null?A=O.getFirstAvailableNode():(e.multiple?A=O.getNode((Q||[])[(Q||[]).length-1]):A=O.getNode(Q),(!A||A.disabled)&&(A=O.getFirstAvailableNode())),W(A||null)}function f(){const{value:O}=d;O&&!e.treeMate.getNode(O.key)&&(d.value=null)}let h;st(()=>e.show,O=>{O?h=st(()=>e.treeMate,()=>{e.resetMenuOnOptionsChange?(e.autoPending?u():f(),so(D)):f()},{immediate:!0}):h==null||h()},{immediate:!0}),Ft(()=>{h==null||h()});const p=F(()=>mn(r.value.self[me("optionHeight",e.size)])),g=F(()=>no(r.value.self[me("padding",e.size)])),b=F(()=>e.multiple&&Array.isArray(e.value)?new Set(e.value):new Set),m=F(()=>{const O=s.value;return O&&O.length===0});function x(O){const{onToggle:A}=e;A&&A(O)}function w(O){const{onScroll:A}=e;A&&A(O)}function C(O){var A;(A=a.value)===null||A===void 0||A.sync(),w(O)}function P(){var O;(O=a.value)===null||O===void 0||O.sync()}function T(){const{value:O}=d;return O||null}function y(O,A){A.disabled||W(A,!1)}function B(O,A){A.disabled||x(A)}function S(O){var A;uo(O,"action")||(A=e.onKeyup)===null||A===void 0||A.call(e,O)}function E(O){var A;uo(O,"action")||(A=e.onKeydown)===null||A===void 0||A.call(e,O)}function j(O){var A;(A=e.onMousedown)===null||A===void 0||A.call(e,O),!e.focusable&&O.preventDefault()}function _(){const{value:O}=d;O&&W(O.getNext({loop:!0}),!0)}function M(){const{value:O}=d;O&&W(O.getPrev({loop:!0}),!0)}function W(O,A=!1){d.value=O,A&&D()}function D(){var O,A;const Q=d.value;if(!Q)return;const he=c.value(Q.key);he!==null&&(e.virtualScroll?(O=l.value)===null||O===void 0||O.scrollTo({index:he}):(A=a.value)===null||A===void 0||A.scrollTo({index:he,elSize:p.value}))}function Z(O){var A,Q;!((A=i.value)===null||A===void 0)&&A.contains(O.target)&&((Q=e.onFocus)===null||Q===void 0||Q.call(e,O))}function U(O){var A,Q;!((A=i.value)===null||A===void 0)&&A.contains(O.relatedTarget)||(Q=e.onBlur)===null||Q===void 0||Q.call(e,O)}tt(gs,{handleOptionMouseEnter:y,handleOptionClick:B,valueSetRef:b,pendingTmNodeRef:d,nodePropsRef:Se(e,"nodeProps"),showCheckmarkRef:Se(e,"showCheckmark"),multipleRef:Se(e,"multiple"),valueRef:Se(e,"value"),renderLabelRef:Se(e,"renderLabel"),renderOptionRef:Se(e,"renderOption"),labelFieldRef:Se(e,"labelField"),valueFieldRef:Se(e,"valueField")}),tt(uh,i),Bt(()=>{const{value:O}=a;O&&O.sync()});const J=F(()=>{const{size:O}=e,{common:{cubicBezierEaseInOut:A},self:{height:Q,borderRadius:he,color:we,groupHeaderTextColor:X,actionDividerColor:de,optionTextColorPressed:R,optionTextColor:ae,optionTextColorDisabled:_e,optionTextColorActive:k,optionOpacityDisabled:$,optionCheckColor:K,actionTextColor:ie,optionColorPending:le,optionColorActive:re,loadingColor:xe,loadingSize:ne,optionColorActivePending:te,[me("optionFontSize",O)]:oe,[me("optionHeight",O)]:ye,[me("optionPadding",O)]:be}}=r.value;return{"--n-height":Q,"--n-action-divider-color":de,"--n-action-text-color":ie,"--n-bezier":A,"--n-border-radius":he,"--n-color":we,"--n-option-font-size":oe,"--n-group-header-text-color":X,"--n-option-check-color":K,"--n-option-color-pending":le,"--n-option-color-active":re,"--n-option-color-active-pending":te,"--n-option-height":ye,"--n-option-opacity-disabled":$,"--n-option-text-color":ae,"--n-option-text-color-active":k,"--n-option-text-color-disabled":_e,"--n-option-text-color-pressed":R,"--n-option-padding":be,"--n-option-padding-left":no(be,"left"),"--n-option-padding-right":no(be,"right"),"--n-loading-color":xe,"--n-loading-size":ne}}),{inlineThemeDisabled:pe}=e,fe=pe?gt("internal-select-menu",F(()=>e.size[0]),J,e):void 0,N={selfRef:i,next:_,prev:M,getPendingTmNode:T};return Kh(i,e.onResize),Object.assign({mergedTheme:r,mergedClsPrefix:t,rtlEnabled:n,virtualListRef:l,scrollbarRef:a,itemSize:p,padding:g,flattenedNodes:s,empty:m,virtualListContainer(){const{value:O}=l;return O==null?void 0:O.listElRef},virtualListContent(){const{value:O}=l;return O==null?void 0:O.itemsElRef},doScroll:w,handleFocusin:Z,handleFocusout:U,handleKeyUp:S,handleKeyDown:E,handleMouseDown:j,handleVirtualListResize:P,handleVirtualListScroll:C,cssVars:pe?void 0:J,themeClass:fe==null?void 0:fe.themeClass,onRender:fe==null?void 0:fe.onRender},N)},render(){const{$slots:e,virtualScroll:t,clsPrefix:o,mergedTheme:n,themeClass:r,onRender:i}=this;return i==null||i(),v("div",{ref:"selfRef",tabindex:this.focusable?0:-1,class:[`${o}-base-select-menu`,this.rtlEnabled&&`${o}-base-select-menu--rtl`,r,this.multiple&&`${o}-base-select-menu--multiple`],style:this.cssVars,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onKeyup:this.handleKeyUp,onKeydown:this.handleKeyDown,onMousedown:this.handleMouseDown,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},pt(e.header,l=>l&&v("div",{class:`${o}-base-select-menu__header`,"data-header":!0,key:"header"},l)),this.loading?v("div",{class:`${o}-base-select-menu__loading`},v(ki,{clsPrefix:o,strokeWidth:20})):this.empty?v("div",{class:`${o}-base-select-menu__empty`,"data-empty":!0},Mo(e.empty,()=>[v(bv,{theme:n.peers.Empty,themeOverrides:n.peerOverrides.Empty,size:this.size})])):v(tr,{ref:"scrollbarRef",theme:n.peers.Scrollbar,themeOverrides:n.peerOverrides.Scrollbar,scrollable:this.scrollable,container:t?this.virtualListContainer:void 0,content:t?this.virtualListContent:void 0,onScroll:t?void 0:this.doScroll},{default:()=>t?v(Is,{ref:"virtualListRef",class:`${o}-virtual-list`,items:this.flattenedNodes,itemSize:this.itemSize,showScrollbar:!1,paddingTop:this.padding.top,paddingBottom:this.padding.bottom,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemResizable:!0},{default:({item:l})=>l.isGroup?v(xv,{key:l.key,clsPrefix:o,tmNode:l}):l.ignored?null:v(yv,{clsPrefix:o,key:l.key,tmNode:l})}):v("div",{class:`${o}-base-select-menu-option-wrapper`,style:{paddingTop:this.padding.top,paddingBottom:this.padding.bottom}},this.flattenedNodes.map(l=>l.isGroup?v(xv,{key:l.key,clsPrefix:o,tmNode:l}):v(yv,{clsPrefix:o,key:l.key,tmNode:l})))}),pt(e.action,l=>l&&[v("div",{class:`${o}-base-select-menu__action`,"data-action":!0,key:"action"},l),v(NP,{onFocus:this.onTabOut,key:"focus-detector"})]))}}),z_={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"};function T_(e){const{boxShadow2:t,popoverColor:o,textColor2:n,borderRadius:r,fontSize:i,dividerColor:l}=e;return Object.assign(Object.assign({},z_),{fontSize:i,borderRadius:r,color:o,dividerColor:l,textColor:n,boxShadow:t})}const Fr={name:"Popover",common:xt,peers:{Scrollbar:Er},self:T_},yc={top:"bottom",bottom:"top",left:"right",right:"left"},$t="var(--n-arrow-height) * 1.414",$_=L([I("popover",`
|
||
transition:
|
||
box-shadow .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier),
|
||
color .3s var(--n-bezier);
|
||
position: relative;
|
||
font-size: var(--n-font-size);
|
||
color: var(--n-text-color);
|
||
box-shadow: var(--n-box-shadow);
|
||
word-break: break-word;
|
||
`,[L(">",[I("scrollbar",`
|
||
height: inherit;
|
||
max-height: inherit;
|
||
`)]),Ye("raw",`
|
||
background-color: var(--n-color);
|
||
border-radius: var(--n-border-radius);
|
||
`,[Ye("scrollable",[Ye("show-header-or-footer","padding: var(--n-padding);")])]),H("header",`
|
||
padding: var(--n-padding);
|
||
border-bottom: 1px solid var(--n-divider-color);
|
||
transition: border-color .3s var(--n-bezier);
|
||
`),H("footer",`
|
||
padding: var(--n-padding);
|
||
border-top: 1px solid var(--n-divider-color);
|
||
transition: border-color .3s var(--n-bezier);
|
||
`),Y("scrollable, show-header-or-footer",[H("content",`
|
||
padding: var(--n-padding);
|
||
`)])]),I("popover-shared",`
|
||
transform-origin: inherit;
|
||
`,[I("popover-arrow-wrapper",`
|
||
position: absolute;
|
||
overflow: hidden;
|
||
pointer-events: none;
|
||
`,[I("popover-arrow",`
|
||
transition: background-color .3s var(--n-bezier);
|
||
position: absolute;
|
||
display: block;
|
||
width: calc(${$t});
|
||
height: calc(${$t});
|
||
box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);
|
||
transform: rotate(45deg);
|
||
background-color: var(--n-color);
|
||
pointer-events: all;
|
||
`)]),L("&.popover-transition-enter-from, &.popover-transition-leave-to",`
|
||
opacity: 0;
|
||
transform: scale(.85);
|
||
`),L("&.popover-transition-enter-to, &.popover-transition-leave-from",`
|
||
transform: scale(1);
|
||
opacity: 1;
|
||
`),L("&.popover-transition-enter-active",`
|
||
transition:
|
||
box-shadow .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier),
|
||
color .3s var(--n-bezier),
|
||
opacity .15s var(--n-bezier-ease-out),
|
||
transform .15s var(--n-bezier-ease-out);
|
||
`),L("&.popover-transition-leave-active",`
|
||
transition:
|
||
box-shadow .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier),
|
||
color .3s var(--n-bezier),
|
||
opacity .15s var(--n-bezier-ease-in),
|
||
transform .15s var(--n-bezier-ease-in);
|
||
`)]),ho("top-start",`
|
||
top: calc(${$t} / -2);
|
||
left: calc(${on("top-start")} - var(--v-offset-left));
|
||
`),ho("top",`
|
||
top: calc(${$t} / -2);
|
||
transform: translateX(calc(${$t} / -2)) rotate(45deg);
|
||
left: 50%;
|
||
`),ho("top-end",`
|
||
top: calc(${$t} / -2);
|
||
right: calc(${on("top-end")} + var(--v-offset-left));
|
||
`),ho("bottom-start",`
|
||
bottom: calc(${$t} / -2);
|
||
left: calc(${on("bottom-start")} - var(--v-offset-left));
|
||
`),ho("bottom",`
|
||
bottom: calc(${$t} / -2);
|
||
transform: translateX(calc(${$t} / -2)) rotate(45deg);
|
||
left: 50%;
|
||
`),ho("bottom-end",`
|
||
bottom: calc(${$t} / -2);
|
||
right: calc(${on("bottom-end")} + var(--v-offset-left));
|
||
`),ho("left-start",`
|
||
left: calc(${$t} / -2);
|
||
top: calc(${on("left-start")} - var(--v-offset-top));
|
||
`),ho("left",`
|
||
left: calc(${$t} / -2);
|
||
transform: translateY(calc(${$t} / -2)) rotate(45deg);
|
||
top: 50%;
|
||
`),ho("left-end",`
|
||
left: calc(${$t} / -2);
|
||
bottom: calc(${on("left-end")} + var(--v-offset-top));
|
||
`),ho("right-start",`
|
||
right: calc(${$t} / -2);
|
||
top: calc(${on("right-start")} - var(--v-offset-top));
|
||
`),ho("right",`
|
||
right: calc(${$t} / -2);
|
||
transform: translateY(calc(${$t} / -2)) rotate(45deg);
|
||
top: 50%;
|
||
`),ho("right-end",`
|
||
right: calc(${$t} / -2);
|
||
bottom: calc(${on("right-end")} + var(--v-offset-top));
|
||
`),...RP({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,t)=>{const o=["right","left"].includes(t),n=o?"width":"height";return e.map(r=>{const i=r.split("-")[1]==="end",a=`calc((${`var(--v-target-${n}, 0px)`} - ${$t}) / 2)`,s=on(r);return L(`[v-placement="${r}"] >`,[I("popover-shared",[Y("center-arrow",[I("popover-arrow",`${t}: calc(max(${a}, ${s}) ${i?"+":"-"} var(--v-offset-${o?"left":"top"}));`)])])])})})]);function on(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function ho(e,t){const o=e.split("-")[0],n=["top","bottom"].includes(o)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return L(`[v-placement="${e}"] >`,[I("popover-shared",`
|
||
margin-${yc[o]}: var(--n-space);
|
||
`,[Y("show-arrow",`
|
||
margin-${yc[o]}: var(--n-space-arrow);
|
||
`),Y("overlap",`
|
||
margin: 0;
|
||
`),Jx("popover-arrow-wrapper",`
|
||
right: 0;
|
||
left: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
${o}: 100%;
|
||
${yc[o]}: auto;
|
||
${n}
|
||
`,[I("popover-arrow",t)])])])}const Rv=Object.assign(Object.assign({},Ie.props),{to:Io.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number});function Pv({arrowClass:e,arrowStyle:t,arrowWrapperClass:o,arrowWrapperStyle:n,clsPrefix:r}){return v("div",{key:"__popover-arrow__",style:n,class:[`${r}-popover-arrow-wrapper`,o]},v("div",{class:[`${r}-popover-arrow`,e],style:t}))}const E_=ve({name:"PopoverBody",inheritAttrs:!1,props:Rv,setup(e,{slots:t,attrs:o}){const{namespaceRef:n,mergedClsPrefixRef:r,inlineThemeDisabled:i,mergedRtlRef:l}=Je(e),a=Ie("Popover","-popover",$_,Fr,e,r),s=qt("Popover",l,r),c=V(null),d=$e("NPopover"),u=V(null),f=V(e.show),h=V(!1);Mt(()=>{const{show:S}=e;S&&!xC()&&!e.internalDeactivateImmediately&&(h.value=!0)});const p=F(()=>{const{trigger:S,onClickoutside:E}=e,j=[],{positionManuallyRef:{value:_}}=d;return _||(S==="click"&&!E&&j.push([Al,T,void 0,{capture:!0}]),S==="hover"&&j.push([zy,P])),E&&j.push([Al,T,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&h.value)&&j.push([ef,e.show]),j}),g=F(()=>{const{common:{cubicBezierEaseInOut:S,cubicBezierEaseIn:E,cubicBezierEaseOut:j},self:{space:_,spaceArrow:M,padding:W,fontSize:D,textColor:Z,dividerColor:U,color:J,boxShadow:pe,borderRadius:fe,arrowHeight:N,arrowOffset:O,arrowOffsetVertical:A}}=a.value;return{"--n-box-shadow":pe,"--n-bezier":S,"--n-bezier-ease-in":E,"--n-bezier-ease-out":j,"--n-font-size":D,"--n-text-color":Z,"--n-color":J,"--n-divider-color":U,"--n-border-radius":fe,"--n-arrow-height":N,"--n-arrow-offset":O,"--n-arrow-offset-vertical":A,"--n-padding":W,"--n-space":_,"--n-space-arrow":M}}),b=F(()=>{const S=e.width==="trigger"?void 0:zt(e.width),E=[];S&&E.push({width:S});const{maxWidth:j,minWidth:_}=e;return j&&E.push({maxWidth:zt(j)}),_&&E.push({maxWidth:zt(_)}),i||E.push(g.value),E}),m=i?gt("popover",void 0,g,e):void 0;d.setBodyInstance({syncPosition:x}),Ft(()=>{d.setBodyInstance(null)}),st(Se(e,"show"),S=>{e.animated||(S?f.value=!0:f.value=!1)});function x(){var S;(S=c.value)===null||S===void 0||S.syncPosition()}function w(S){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&d.handleMouseEnter(S)}function C(S){e.trigger==="hover"&&e.keepAliveOnHover&&d.handleMouseLeave(S)}function P(S){e.trigger==="hover"&&!y().contains(ci(S))&&d.handleMouseMoveOutside(S)}function T(S){(e.trigger==="click"&&!y().contains(ci(S))||e.onClickoutside)&&d.handleClickOutside(S)}function y(){return d.getTriggerElement()}tt(Fl,u),tt(ms,null),tt(bs,null);function B(){if(m==null||m.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&h.value))return null;let E;const j=d.internalRenderBodyRef.value,{value:_}=r;if(j)E=j([`${_}-popover-shared`,(s==null?void 0:s.value)&&`${_}-popover--rtl`,m==null?void 0:m.themeClass.value,e.overlap&&`${_}-popover-shared--overlap`,e.showArrow&&`${_}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${_}-popover-shared--center-arrow`],u,b.value,w,C);else{const{value:M}=d.extraClassRef,{internalTrapFocus:W}=e,D=!Bs(t.header)||!Bs(t.footer),Z=()=>{var U,J;const pe=D?v(it,null,pt(t.header,O=>O?v("div",{class:[`${_}-popover__header`,e.headerClass],style:e.headerStyle},O):null),pt(t.default,O=>O?v("div",{class:[`${_}-popover__content`,e.contentClass],style:e.contentStyle},t):null),pt(t.footer,O=>O?v("div",{class:[`${_}-popover__footer`,e.footerClass],style:e.footerStyle},O):null)):e.scrollable?(U=t.default)===null||U===void 0?void 0:U.call(t):v("div",{class:[`${_}-popover__content`,e.contentClass],style:e.contentStyle},t),fe=e.scrollable?v(hv,{themeOverrides:a.value.peerOverrides.Scrollbar,theme:a.value.peers.Scrollbar,contentClass:D?void 0:`${_}-popover__content ${(J=e.contentClass)!==null&&J!==void 0?J:""}`,contentStyle:D?void 0:e.contentStyle},{default:()=>pe}):pe,N=e.showArrow?Pv({arrowClass:e.arrowClass,arrowStyle:e.arrowStyle,arrowWrapperClass:e.arrowWrapperClass,arrowWrapperStyle:e.arrowWrapperStyle,clsPrefix:_}):null;return[fe,N]};E=v("div",xo({class:[`${_}-popover`,`${_}-popover-shared`,(s==null?void 0:s.value)&&`${_}-popover--rtl`,m==null?void 0:m.themeClass.value,M.map(U=>`${_}-${U}`),{[`${_}-popover--scrollable`]:e.scrollable,[`${_}-popover--show-header-or-footer`]:D,[`${_}-popover--raw`]:e.raw,[`${_}-popover-shared--overlap`]:e.overlap,[`${_}-popover-shared--show-arrow`]:e.showArrow,[`${_}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:u,style:b.value,onKeydown:d.handleKeydown,onMouseenter:w,onMouseleave:C},o),W?v(gC,{active:e.show,autoFocus:!0},{default:Z}):Z())}return bo(E,p.value)}return{displayed:h,namespace:n,isMounted:d.isMountedRef,zIndex:d.zIndexRef,followerRef:c,adjustedTo:Io(e),followerEnabled:f,renderContentNode:B}},render(){return v(zs,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===Io.tdkey},{default:()=>this.animated?v(Yo,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),F_=Object.keys(Rv),A_={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function I_(e,t,o){A_[t].forEach(n=>{e.props?e.props=Object.assign({},e.props):e.props={};const r=e.props[n],i=o[n];r?e.props[n]=(...l)=>{r(...l),i(...l)}:e.props[n]=i})}const Ar={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowClass:String,arrowStyle:[String,Object],arrowWrapperClass:String,arrowWrapperStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:Io.propTo,scrollable:Boolean,contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],footerClass:String,footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},O_=Object.assign(Object.assign(Object.assign({},Ie.props),Ar),{internalOnAfterLeave:Function,internalRenderBody:Function}),zi=ve({name:"Popover",inheritAttrs:!1,props:O_,slots:Object,__popover__:!0,setup(e){const t=El(),o=V(null),n=F(()=>e.show),r=V(e.defaultShow),i=It(n,r),l=Ze(()=>e.disabled?!1:i.value),a=()=>{if(e.disabled)return!0;const{getDisabled:D}=e;return!!(D!=null&&D())},s=()=>a()?!1:i.value,c=vs(e,["arrow","showArrow"]),d=F(()=>e.overlap?!1:c.value);let u=null;const f=V(null),h=V(null),p=Ze(()=>e.x!==void 0&&e.y!==void 0);function g(D){const{"onUpdate:show":Z,onUpdateShow:U,onShow:J,onHide:pe}=e;r.value=D,Z&&ge(Z,D),U&&ge(U,D),D&&J&&ge(J,!0),D&&pe&&ge(pe,!1)}function b(){u&&u.syncPosition()}function m(){const{value:D}=f;D&&(window.clearTimeout(D),f.value=null)}function x(){const{value:D}=h;D&&(window.clearTimeout(D),h.value=null)}function w(){const D=a();if(e.trigger==="focus"&&!D){if(s())return;g(!0)}}function C(){const D=a();if(e.trigger==="focus"&&!D){if(!s())return;g(!1)}}function P(){const D=a();if(e.trigger==="hover"&&!D){if(x(),f.value!==null||s())return;const Z=()=>{g(!0),f.value=null},{delay:U}=e;U===0?Z():f.value=window.setTimeout(Z,U)}}function T(){const D=a();if(e.trigger==="hover"&&!D){if(m(),h.value!==null||!s())return;const Z=()=>{g(!1),h.value=null},{duration:U}=e;U===0?Z():h.value=window.setTimeout(Z,U)}}function y(){T()}function B(D){var Z;s()&&(e.trigger==="click"&&(m(),x(),g(!1)),(Z=e.onClickoutside)===null||Z===void 0||Z.call(e,D))}function S(){if(e.trigger==="click"&&!a()){m(),x();const D=!s();g(D)}}function E(D){e.internalTrapFocus&&D.key==="Escape"&&(m(),x(),g(!1))}function j(D){r.value=D}function _(){var D;return(D=o.value)===null||D===void 0?void 0:D.targetRef}function M(D){u=D}return tt("NPopover",{getTriggerElement:_,handleKeydown:E,handleMouseEnter:P,handleMouseLeave:T,handleClickOutside:B,handleMouseMoveOutside:y,setBodyInstance:M,positionManuallyRef:p,isMountedRef:t,zIndexRef:Se(e,"zIndex"),extraClassRef:Se(e,"internalExtraClass"),internalRenderBodyRef:Se(e,"internalRenderBody")}),Mt(()=>{i.value&&a()&&g(!1)}),{binderInstRef:o,positionManually:p,mergedShowConsideringDisabledProp:l,uncontrolledShow:r,mergedShowArrow:d,getMergedShow:s,setShow:j,handleClick:S,handleMouseEnter:P,handleMouseLeave:T,handleFocus:w,handleBlur:C,syncPosition:b}},render(){var e;const{positionManually:t,$slots:o}=this;let n,r=!1;if(!t&&(n=RC(o,"trigger"),n)){n=qo(n),n=n.type===Zr?v("span",[n]):n;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=n.type)===null||e===void 0)&&e.__popover__)r=!0,n.props||(n.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),n.props.internalSyncTargetWithParent=!0,n.props.internalInheritedEventHandlers?n.props.internalInheritedEventHandlers=[i,...n.props.internalInheritedEventHandlers]:n.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:l}=this,a=[i,...l],s={onBlur:c=>{a.forEach(d=>{d.onBlur(c)})},onFocus:c=>{a.forEach(d=>{d.onFocus(c)})},onClick:c=>{a.forEach(d=>{d.onClick(c)})},onMouseenter:c=>{a.forEach(d=>{d.onMouseenter(c)})},onMouseleave:c=>{a.forEach(d=>{d.onMouseleave(c)})}};I_(n,l?"nested":t?"manual":this.trigger,s)}}return v(Ss,{ref:"binderInstRef",syncTarget:!r,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?bo(v("div",{style:{position:"fixed",top:0,right:0,bottom:0,left:0}}),[[gh,{enabled:i,zIndex:this.zIndex}]]):null,t?null:v(Rs,null,{default:()=>n}),v(E_,zr(this.$props,F_,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),{default:()=>{var l,a;return(a=(l=this.$slots).default)===null||a===void 0?void 0:a.call(l)},header:()=>{var l,a;return(a=(l=this.$slots).header)===null||a===void 0?void 0:a.call(l)},footer:()=>{var l,a;return(a=(l=this.$slots).footer)===null||a===void 0?void 0:a.call(l)}})]}})}}),M_={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px"};function B_(e){const{textColor2:t,primaryColorHover:o,primaryColorPressed:n,primaryColor:r,infoColor:i,successColor:l,warningColor:a,errorColor:s,baseColor:c,borderColor:d,opacityDisabled:u,tagColor:f,closeIconColor:h,closeIconColorHover:p,closeIconColorPressed:g,borderRadiusSmall:b,fontSizeMini:m,fontSizeTiny:x,fontSizeSmall:w,fontSizeMedium:C,heightMini:P,heightTiny:T,heightSmall:y,heightMedium:B,closeColorHover:S,closeColorPressed:E,buttonColor2Hover:j,buttonColor2Pressed:_,fontWeightStrong:M}=e;return Object.assign(Object.assign({},M_),{closeBorderRadius:b,heightTiny:P,heightSmall:T,heightMedium:y,heightLarge:B,borderRadius:b,opacityDisabled:u,fontSizeTiny:m,fontSizeSmall:x,fontSizeMedium:w,fontSizeLarge:C,fontWeightStrong:M,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:c,colorCheckable:"#0000",colorHoverCheckable:j,colorPressedCheckable:_,colorChecked:r,colorCheckedHover:o,colorCheckedPressed:n,border:`1px solid ${d}`,textColor:t,color:f,colorBordered:"rgb(250, 250, 252)",closeIconColor:h,closeIconColorHover:p,closeIconColorPressed:g,closeColorHover:S,closeColorPressed:E,borderPrimary:`1px solid ${Le(r,{alpha:.3})}`,textColorPrimary:r,colorPrimary:Le(r,{alpha:.12}),colorBorderedPrimary:Le(r,{alpha:.1}),closeIconColorPrimary:r,closeIconColorHoverPrimary:r,closeIconColorPressedPrimary:r,closeColorHoverPrimary:Le(r,{alpha:.12}),closeColorPressedPrimary:Le(r,{alpha:.18}),borderInfo:`1px solid ${Le(i,{alpha:.3})}`,textColorInfo:i,colorInfo:Le(i,{alpha:.12}),colorBorderedInfo:Le(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:Le(i,{alpha:.12}),closeColorPressedInfo:Le(i,{alpha:.18}),borderSuccess:`1px solid ${Le(l,{alpha:.3})}`,textColorSuccess:l,colorSuccess:Le(l,{alpha:.12}),colorBorderedSuccess:Le(l,{alpha:.1}),closeIconColorSuccess:l,closeIconColorHoverSuccess:l,closeIconColorPressedSuccess:l,closeColorHoverSuccess:Le(l,{alpha:.12}),closeColorPressedSuccess:Le(l,{alpha:.18}),borderWarning:`1px solid ${Le(a,{alpha:.35})}`,textColorWarning:a,colorWarning:Le(a,{alpha:.15}),colorBorderedWarning:Le(a,{alpha:.12}),closeIconColorWarning:a,closeIconColorHoverWarning:a,closeIconColorPressedWarning:a,closeColorHoverWarning:Le(a,{alpha:.12}),closeColorPressedWarning:Le(a,{alpha:.18}),borderError:`1px solid ${Le(s,{alpha:.23})}`,textColorError:s,colorError:Le(s,{alpha:.1}),colorBorderedError:Le(s,{alpha:.08}),closeIconColorError:s,closeIconColorHoverError:s,closeIconColorPressedError:s,closeColorHoverError:Le(s,{alpha:.12}),closeColorPressedError:Le(s,{alpha:.18})})}const H_={common:xt,self:B_},D_={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},L_=I("tag",`
|
||
--n-close-margin: var(--n-close-margin-top) var(--n-close-margin-right) var(--n-close-margin-bottom) var(--n-close-margin-left);
|
||
white-space: nowrap;
|
||
position: relative;
|
||
box-sizing: border-box;
|
||
cursor: default;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
flex-wrap: nowrap;
|
||
padding: var(--n-padding);
|
||
border-radius: var(--n-border-radius);
|
||
color: var(--n-text-color);
|
||
background-color: var(--n-color);
|
||
transition:
|
||
border-color .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier),
|
||
color .3s var(--n-bezier),
|
||
box-shadow .3s var(--n-bezier),
|
||
opacity .3s var(--n-bezier);
|
||
line-height: 1;
|
||
height: var(--n-height);
|
||
font-size: var(--n-font-size);
|
||
`,[Y("strong",`
|
||
font-weight: var(--n-font-weight-strong);
|
||
`),H("border",`
|
||
pointer-events: none;
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
border-radius: inherit;
|
||
border: var(--n-border);
|
||
transition: border-color .3s var(--n-bezier);
|
||
`),H("icon",`
|
||
display: flex;
|
||
margin: 0 4px 0 0;
|
||
color: var(--n-text-color);
|
||
transition: color .3s var(--n-bezier);
|
||
font-size: var(--n-avatar-size-override);
|
||
`),H("avatar",`
|
||
display: flex;
|
||
margin: 0 6px 0 0;
|
||
`),H("close",`
|
||
margin: var(--n-close-margin);
|
||
transition:
|
||
background-color .3s var(--n-bezier),
|
||
color .3s var(--n-bezier);
|
||
`),Y("round",`
|
||
padding: 0 calc(var(--n-height) / 3);
|
||
border-radius: calc(var(--n-height) / 2);
|
||
`,[H("icon",`
|
||
margin: 0 4px 0 calc((var(--n-height) - 8px) / -2);
|
||
`),H("avatar",`
|
||
margin: 0 6px 0 calc((var(--n-height) - 8px) / -2);
|
||
`),Y("closable",`
|
||
padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3);
|
||
`)]),Y("icon, avatar",[Y("round",`
|
||
padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2);
|
||
`)]),Y("disabled",`
|
||
cursor: not-allowed !important;
|
||
opacity: var(--n-opacity-disabled);
|
||
`),Y("checkable",`
|
||
cursor: pointer;
|
||
box-shadow: none;
|
||
color: var(--n-text-color-checkable);
|
||
background-color: var(--n-color-checkable);
|
||
`,[Ye("disabled",[L("&:hover","background-color: var(--n-color-hover-checkable);",[Ye("checked","color: var(--n-text-color-hover-checkable);")]),L("&:active","background-color: var(--n-color-pressed-checkable);",[Ye("checked","color: var(--n-text-color-pressed-checkable);")])]),Y("checked",`
|
||
color: var(--n-text-color-checked);
|
||
background-color: var(--n-color-checked);
|
||
`,[Ye("disabled",[L("&:hover","background-color: var(--n-color-checked-hover);"),L("&:active","background-color: var(--n-color-checked-pressed);")])])])]),N_=Object.assign(Object.assign(Object.assign({},Ie.props),D_),{bordered:{type:Boolean,default:void 0},checked:Boolean,checkable:Boolean,strong:Boolean,triggerClickOnClose:Boolean,onClose:[Array,Function],onMouseenter:Function,onMouseleave:Function,"onUpdate:checked":Function,onUpdateChecked:Function,internalCloseFocusable:{type:Boolean,default:!0},internalCloseIsButtonTag:{type:Boolean,default:!0},onCheckedChange:Function}),_v="n-tag",ea=ve({name:"Tag",props:N_,slots:Object,setup(e){const t=V(null),{mergedBorderedRef:o,mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:i}=Je(e),l=Ie("Tag","-tag",L_,H_,e,n);tt(_v,{roundRef:Se(e,"round")});function a(){if(!e.disabled&&e.checkable){const{checked:h,onCheckedChange:p,onUpdateChecked:g,"onUpdate:checked":b}=e;g&&g(!h),b&&b(!h),p&&p(!h)}}function s(h){if(e.triggerClickOnClose||h.stopPropagation(),!e.disabled){const{onClose:p}=e;p&&ge(p,h)}}const c={setTextContent(h){const{value:p}=t;p&&(p.textContent=h)}},d=qt("Tag",i,n),u=F(()=>{const{type:h,size:p,color:{color:g,textColor:b}={}}=e,{common:{cubicBezierEaseInOut:m},self:{padding:x,closeMargin:w,borderRadius:C,opacityDisabled:P,textColorCheckable:T,textColorHoverCheckable:y,textColorPressedCheckable:B,textColorChecked:S,colorCheckable:E,colorHoverCheckable:j,colorPressedCheckable:_,colorChecked:M,colorCheckedHover:W,colorCheckedPressed:D,closeBorderRadius:Z,fontWeightStrong:U,[me("colorBordered",h)]:J,[me("closeSize",p)]:pe,[me("closeIconSize",p)]:fe,[me("fontSize",p)]:N,[me("height",p)]:O,[me("color",h)]:A,[me("textColor",h)]:Q,[me("border",h)]:he,[me("closeIconColor",h)]:we,[me("closeIconColorHover",h)]:X,[me("closeIconColorPressed",h)]:de,[me("closeColorHover",h)]:R,[me("closeColorPressed",h)]:ae}}=l.value,_e=no(w);return{"--n-font-weight-strong":U,"--n-avatar-size-override":`calc(${O} - 8px)`,"--n-bezier":m,"--n-border-radius":C,"--n-border":he,"--n-close-icon-size":fe,"--n-close-color-pressed":ae,"--n-close-color-hover":R,"--n-close-border-radius":Z,"--n-close-icon-color":we,"--n-close-icon-color-hover":X,"--n-close-icon-color-pressed":de,"--n-close-icon-color-disabled":we,"--n-close-margin-top":_e.top,"--n-close-margin-right":_e.right,"--n-close-margin-bottom":_e.bottom,"--n-close-margin-left":_e.left,"--n-close-size":pe,"--n-color":g||(o.value?J:A),"--n-color-checkable":E,"--n-color-checked":M,"--n-color-checked-hover":W,"--n-color-checked-pressed":D,"--n-color-hover-checkable":j,"--n-color-pressed-checkable":_,"--n-font-size":N,"--n-height":O,"--n-opacity-disabled":P,"--n-padding":x,"--n-text-color":b||Q,"--n-text-color-checkable":T,"--n-text-color-checked":S,"--n-text-color-hover-checkable":y,"--n-text-color-pressed-checkable":B}}),f=r?gt("tag",F(()=>{let h="";const{type:p,size:g,color:{color:b,textColor:m}={}}=e;return h+=p[0],h+=g[0],b&&(h+=`a${gi(b)}`),m&&(h+=`b${gi(m)}`),o.value&&(h+="c"),h}),u,e):void 0;return Object.assign(Object.assign({},c),{rtlEnabled:d,mergedClsPrefix:n,contentRef:t,mergedBordered:o,handleClick:a,handleCloseClick:s,cssVars:r?void 0:u,themeClass:f==null?void 0:f.themeClass,onRender:f==null?void 0:f.onRender})},render(){var e,t;const{mergedClsPrefix:o,rtlEnabled:n,closable:r,color:{borderColor:i}={},round:l,onRender:a,$slots:s}=this;a==null||a();const c=pt(s.avatar,u=>u&&v("div",{class:`${o}-tag__avatar`},u)),d=pt(s.icon,u=>u&&v("div",{class:`${o}-tag__icon`},u));return v("div",{class:[`${o}-tag`,this.themeClass,{[`${o}-tag--rtl`]:n,[`${o}-tag--strong`]:this.strong,[`${o}-tag--disabled`]:this.disabled,[`${o}-tag--checkable`]:this.checkable,[`${o}-tag--checked`]:this.checkable&&this.checked,[`${o}-tag--round`]:l,[`${o}-tag--avatar`]:c,[`${o}-tag--icon`]:d,[`${o}-tag--closable`]:r}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},d||c,v("span",{class:`${o}-tag__content`,ref:"contentRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)),!this.checkable&&r?v(sv,{clsPrefix:o,class:`${o}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:l,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?v("div",{class:`${o}-tag__border`,style:{borderColor:i}}):null)}}),kv=ve({name:"InternalSelectionSuffix",props:{clsPrefix:{type:String,required:!0},showArrow:{type:Boolean,default:void 0},showClear:{type:Boolean,default:void 0},loading:{type:Boolean,default:!1},onClear:Function},setup(e,{slots:t}){return()=>{const{clsPrefix:o}=e;return v(ki,{clsPrefix:o,class:`${o}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?v(uc,{clsPrefix:o,show:e.showClear,onClear:e.onClear},{placeholder:()=>v(Tt,{clsPrefix:o,class:`${o}-base-suffix__arrow`},{default:()=>Mo(t.default,()=>[v(nv,null)])})}):null})}}}),j_={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"};function W_(e){const{borderRadius:t,textColor2:o,textColorDisabled:n,inputColor:r,inputColorDisabled:i,primaryColor:l,primaryColorHover:a,warningColor:s,warningColorHover:c,errorColor:d,errorColorHover:u,borderColor:f,iconColor:h,iconColorDisabled:p,clearColor:g,clearColorHover:b,clearColorPressed:m,placeholderColor:x,placeholderColorDisabled:w,fontSizeTiny:C,fontSizeSmall:P,fontSizeMedium:T,fontSizeLarge:y,heightTiny:B,heightSmall:S,heightMedium:E,heightLarge:j,fontWeight:_}=e;return Object.assign(Object.assign({},j_),{fontSizeTiny:C,fontSizeSmall:P,fontSizeMedium:T,fontSizeLarge:y,heightTiny:B,heightSmall:S,heightMedium:E,heightLarge:j,borderRadius:t,fontWeight:_,textColor:o,textColorDisabled:n,placeholderColor:x,placeholderColorDisabled:w,color:r,colorDisabled:i,colorActive:r,border:`1px solid ${f}`,borderHover:`1px solid ${a}`,borderActive:`1px solid ${l}`,borderFocus:`1px solid ${a}`,boxShadowHover:"none",boxShadowActive:`0 0 0 2px ${Le(l,{alpha:.2})}`,boxShadowFocus:`0 0 0 2px ${Le(l,{alpha:.2})}`,caretColor:l,arrowColor:h,arrowColorDisabled:p,loadingColor:l,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${c}`,borderActiveWarning:`1px solid ${s}`,borderFocusWarning:`1px solid ${c}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 0 2px ${Le(s,{alpha:.2})}`,boxShadowFocusWarning:`0 0 0 2px ${Le(s,{alpha:.2})}`,colorActiveWarning:r,caretColorWarning:s,borderError:`1px solid ${d}`,borderHoverError:`1px solid ${u}`,borderActiveError:`1px solid ${d}`,borderFocusError:`1px solid ${u}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 0 2px ${Le(d,{alpha:.2})}`,boxShadowFocusError:`0 0 0 2px ${Le(d,{alpha:.2})}`,colorActiveError:r,caretColorError:d,clearColor:g,clearColorHover:b,clearColorPressed:m})}const zv={name:"InternalSelection",common:xt,peers:{Popover:Fr},self:W_},V_=L([I("base-selection",`
|
||
--n-padding-single: var(--n-padding-single-top) var(--n-padding-single-right) var(--n-padding-single-bottom) var(--n-padding-single-left);
|
||
--n-padding-multiple: var(--n-padding-multiple-top) var(--n-padding-multiple-right) var(--n-padding-multiple-bottom) var(--n-padding-multiple-left);
|
||
position: relative;
|
||
z-index: auto;
|
||
box-shadow: none;
|
||
width: 100%;
|
||
max-width: 100%;
|
||
display: inline-block;
|
||
vertical-align: bottom;
|
||
border-radius: var(--n-border-radius);
|
||
min-height: var(--n-height);
|
||
line-height: 1.5;
|
||
font-size: var(--n-font-size);
|
||
`,[I("base-loading",`
|
||
color: var(--n-loading-color);
|
||
`),I("base-selection-tags","min-height: var(--n-height);"),H("border, state-border",`
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
pointer-events: none;
|
||
border: var(--n-border);
|
||
border-radius: inherit;
|
||
transition:
|
||
box-shadow .3s var(--n-bezier),
|
||
border-color .3s var(--n-bezier);
|
||
`),H("state-border",`
|
||
z-index: 1;
|
||
border-color: #0000;
|
||
`),I("base-suffix",`
|
||
cursor: pointer;
|
||
position: absolute;
|
||
top: 50%;
|
||
transform: translateY(-50%);
|
||
right: 10px;
|
||
`,[H("arrow",`
|
||
font-size: var(--n-arrow-size);
|
||
color: var(--n-arrow-color);
|
||
transition: color .3s var(--n-bezier);
|
||
`)]),I("base-selection-overlay",`
|
||
display: flex;
|
||
align-items: center;
|
||
white-space: nowrap;
|
||
pointer-events: none;
|
||
position: absolute;
|
||
top: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
left: 0;
|
||
padding: var(--n-padding-single);
|
||
transition: color .3s var(--n-bezier);
|
||
`,[H("wrapper",`
|
||
flex-basis: 0;
|
||
flex-grow: 1;
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
`)]),I("base-selection-placeholder",`
|
||
color: var(--n-placeholder-color);
|
||
`,[H("inner",`
|
||
max-width: 100%;
|
||
overflow: hidden;
|
||
`)]),I("base-selection-tags",`
|
||
cursor: pointer;
|
||
outline: none;
|
||
box-sizing: border-box;
|
||
position: relative;
|
||
z-index: auto;
|
||
display: flex;
|
||
padding: var(--n-padding-multiple);
|
||
flex-wrap: wrap;
|
||
align-items: center;
|
||
width: 100%;
|
||
vertical-align: bottom;
|
||
background-color: var(--n-color);
|
||
border-radius: inherit;
|
||
transition:
|
||
color .3s var(--n-bezier),
|
||
box-shadow .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier);
|
||
`),I("base-selection-label",`
|
||
height: var(--n-height);
|
||
display: inline-flex;
|
||
width: 100%;
|
||
vertical-align: bottom;
|
||
cursor: pointer;
|
||
outline: none;
|
||
z-index: auto;
|
||
box-sizing: border-box;
|
||
position: relative;
|
||
transition:
|
||
color .3s var(--n-bezier),
|
||
box-shadow .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier);
|
||
border-radius: inherit;
|
||
background-color: var(--n-color);
|
||
align-items: center;
|
||
`,[I("base-selection-input",`
|
||
font-size: inherit;
|
||
line-height: inherit;
|
||
outline: none;
|
||
cursor: pointer;
|
||
box-sizing: border-box;
|
||
border:none;
|
||
width: 100%;
|
||
padding: var(--n-padding-single);
|
||
background-color: #0000;
|
||
color: var(--n-text-color);
|
||
transition: color .3s var(--n-bezier);
|
||
caret-color: var(--n-caret-color);
|
||
`,[H("content",`
|
||
text-overflow: ellipsis;
|
||
overflow: hidden;
|
||
white-space: nowrap;
|
||
`)]),H("render-label",`
|
||
color: var(--n-text-color);
|
||
`)]),Ye("disabled",[L("&:hover",[H("state-border",`
|
||
box-shadow: var(--n-box-shadow-hover);
|
||
border: var(--n-border-hover);
|
||
`)]),Y("focus",[H("state-border",`
|
||
box-shadow: var(--n-box-shadow-focus);
|
||
border: var(--n-border-focus);
|
||
`)]),Y("active",[H("state-border",`
|
||
box-shadow: var(--n-box-shadow-active);
|
||
border: var(--n-border-active);
|
||
`),I("base-selection-label","background-color: var(--n-color-active);"),I("base-selection-tags","background-color: var(--n-color-active);")])]),Y("disabled","cursor: not-allowed;",[H("arrow",`
|
||
color: var(--n-arrow-color-disabled);
|
||
`),I("base-selection-label",`
|
||
cursor: not-allowed;
|
||
background-color: var(--n-color-disabled);
|
||
`,[I("base-selection-input",`
|
||
cursor: not-allowed;
|
||
color: var(--n-text-color-disabled);
|
||
`),H("render-label",`
|
||
color: var(--n-text-color-disabled);
|
||
`)]),I("base-selection-tags",`
|
||
cursor: not-allowed;
|
||
background-color: var(--n-color-disabled);
|
||
`),I("base-selection-placeholder",`
|
||
cursor: not-allowed;
|
||
color: var(--n-placeholder-color-disabled);
|
||
`)]),I("base-selection-input-tag",`
|
||
height: calc(var(--n-height) - 6px);
|
||
line-height: calc(var(--n-height) - 6px);
|
||
outline: none;
|
||
display: none;
|
||
position: relative;
|
||
margin-bottom: 3px;
|
||
max-width: 100%;
|
||
vertical-align: bottom;
|
||
`,[H("input",`
|
||
font-size: inherit;
|
||
font-family: inherit;
|
||
min-width: 1px;
|
||
padding: 0;
|
||
background-color: #0000;
|
||
outline: none;
|
||
border: none;
|
||
max-width: 100%;
|
||
overflow: hidden;
|
||
width: 1em;
|
||
line-height: inherit;
|
||
cursor: pointer;
|
||
color: var(--n-text-color);
|
||
caret-color: var(--n-caret-color);
|
||
`),H("mirror",`
|
||
position: absolute;
|
||
left: 0;
|
||
top: 0;
|
||
white-space: pre;
|
||
visibility: hidden;
|
||
user-select: none;
|
||
-webkit-user-select: none;
|
||
opacity: 0;
|
||
`)]),["warning","error"].map(e=>Y(`${e}-status`,[H("state-border",`border: var(--n-border-${e});`),Ye("disabled",[L("&:hover",[H("state-border",`
|
||
box-shadow: var(--n-box-shadow-hover-${e});
|
||
border: var(--n-border-hover-${e});
|
||
`)]),Y("active",[H("state-border",`
|
||
box-shadow: var(--n-box-shadow-active-${e});
|
||
border: var(--n-border-active-${e});
|
||
`),I("base-selection-label",`background-color: var(--n-color-active-${e});`),I("base-selection-tags",`background-color: var(--n-color-active-${e});`)]),Y("focus",[H("state-border",`
|
||
box-shadow: var(--n-box-shadow-focus-${e});
|
||
border: var(--n-border-focus-${e});
|
||
`)])])]))]),I("base-selection-popover",`
|
||
margin-bottom: -3px;
|
||
display: flex;
|
||
flex-wrap: wrap;
|
||
margin-right: -8px;
|
||
`),I("base-selection-tag-wrapper",`
|
||
max-width: 100%;
|
||
display: inline-flex;
|
||
padding: 0 7px 3px 0;
|
||
`,[L("&:last-child","padding-right: 0;"),I("tag",`
|
||
font-size: 14px;
|
||
max-width: 100%;
|
||
`,[H("content",`
|
||
line-height: 1.25;
|
||
text-overflow: ellipsis;
|
||
overflow: hidden;
|
||
`)])])]),U_=ve({name:"InternalSelection",props:Object.assign(Object.assign({},Ie.props),{clsPrefix:{type:String,required:!0},bordered:{type:Boolean,default:void 0},active:Boolean,pattern:{type:String,default:""},placeholder:String,selectedOption:{type:Object,default:null},selectedOptions:{type:Array,default:null},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},multiple:Boolean,filterable:Boolean,clearable:Boolean,disabled:Boolean,size:{type:String,default:"medium"},loading:Boolean,autofocus:Boolean,showArrow:{type:Boolean,default:!0},inputProps:Object,focused:Boolean,renderTag:Function,onKeydown:Function,onClick:Function,onBlur:Function,onFocus:Function,onDeleteOption:Function,maxTagCount:[String,Number],ellipsisTagPopoverProps:Object,onClear:Function,onPatternInput:Function,onPatternFocus:Function,onPatternBlur:Function,renderLabel:Function,status:String,inlineThemeDisabled:Boolean,ignoreComposition:{type:Boolean,default:!0},onResize:Function}),setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=Je(e),n=qt("InternalSelection",o,t),r=V(null),i=V(null),l=V(null),a=V(null),s=V(null),c=V(null),d=V(null),u=V(null),f=V(null),h=V(null),p=V(!1),g=V(!1),b=V(!1),m=Ie("InternalSelection","-internal-selection",V_,zv,e,Se(e,"clsPrefix")),x=F(()=>e.clearable&&!e.disabled&&(b.value||e.active)),w=F(()=>e.selectedOption?e.renderTag?e.renderTag({option:e.selectedOption,handleClose:()=>{}}):e.renderLabel?e.renderLabel(e.selectedOption,!0):Lt(e.selectedOption[e.labelField],e.selectedOption,!0):e.placeholder),C=F(()=>{const ee=e.selectedOption;if(ee)return ee[e.labelField]}),P=F(()=>e.multiple?!!(Array.isArray(e.selectedOptions)&&e.selectedOptions.length):e.selectedOption!==null);function T(){var ee;const{value:se}=r;if(se){const{value:ke}=i;ke&&(ke.style.width=`${se.offsetWidth}px`,e.maxTagCount!=="responsive"&&((ee=f.value)===null||ee===void 0||ee.sync({showAllItemsBeforeCalculate:!1})))}}function y(){const{value:ee}=h;ee&&(ee.style.display="none")}function B(){const{value:ee}=h;ee&&(ee.style.display="inline-block")}st(Se(e,"active"),ee=>{ee||y()}),st(Se(e,"pattern"),()=>{e.multiple&&so(T)});function S(ee){const{onFocus:se}=e;se&&se(ee)}function E(ee){const{onBlur:se}=e;se&&se(ee)}function j(ee){const{onDeleteOption:se}=e;se&&se(ee)}function _(ee){const{onClear:se}=e;se&&se(ee)}function M(ee){const{onPatternInput:se}=e;se&&se(ee)}function W(ee){var se;(!ee.relatedTarget||!(!((se=l.value)===null||se===void 0)&&se.contains(ee.relatedTarget)))&&S(ee)}function D(ee){var se;!((se=l.value)===null||se===void 0)&&se.contains(ee.relatedTarget)||E(ee)}function Z(ee){_(ee)}function U(){b.value=!0}function J(){b.value=!1}function pe(ee){!e.active||!e.filterable||ee.target!==i.value&&ee.preventDefault()}function fe(ee){j(ee)}const N=V(!1);function O(ee){if(ee.key==="Backspace"&&!N.value&&!e.pattern.length){const{selectedOptions:se}=e;se!=null&&se.length&&fe(se[se.length-1])}}let A=null;function Q(ee){const{value:se}=r;if(se){const ke=ee.target.value;se.textContent=ke,T()}e.ignoreComposition&&N.value?A=ee:M(ee)}function he(){N.value=!0}function we(){N.value=!1,e.ignoreComposition&&M(A),A=null}function X(ee){var se;g.value=!0,(se=e.onPatternFocus)===null||se===void 0||se.call(e,ee)}function de(ee){var se;g.value=!1,(se=e.onPatternBlur)===null||se===void 0||se.call(e,ee)}function R(){var ee,se;if(e.filterable)g.value=!1,(ee=c.value)===null||ee===void 0||ee.blur(),(se=i.value)===null||se===void 0||se.blur();else if(e.multiple){const{value:ke}=a;ke==null||ke.blur()}else{const{value:ke}=s;ke==null||ke.blur()}}function ae(){var ee,se,ke;e.filterable?(g.value=!1,(ee=c.value)===null||ee===void 0||ee.focus()):e.multiple?(se=a.value)===null||se===void 0||se.focus():(ke=s.value)===null||ke===void 0||ke.focus()}function _e(){const{value:ee}=i;ee&&(B(),ee.focus())}function k(){const{value:ee}=i;ee&&ee.blur()}function $(ee){const{value:se}=d;se&&se.setTextContent(`+${ee}`)}function K(){const{value:ee}=u;return ee}function ie(){return i.value}let le=null;function re(){le!==null&&window.clearTimeout(le)}function xe(){e.active||(re(),le=window.setTimeout(()=>{P.value&&(p.value=!0)},100))}function ne(){re()}function te(ee){ee||(re(),p.value=!1)}st(P,ee=>{ee||(p.value=!1)}),Bt(()=>{Mt(()=>{const ee=c.value;ee&&(e.disabled?ee.removeAttribute("tabindex"):ee.tabIndex=g.value?-1:0)})}),Kh(l,e.onResize);const{inlineThemeDisabled:oe}=e,ye=F(()=>{const{size:ee}=e,{common:{cubicBezierEaseInOut:se},self:{fontWeight:ke,borderRadius:Me,color:He,placeholderColor:Qe,textColor:Ve,paddingSingle:We,paddingMultiple:ot,caretColor:Xe,colorDisabled:Pe,textColorDisabled:ze,placeholderColorDisabled:z,colorActive:q,boxShadowFocus:ce,boxShadowActive:Ce,boxShadowHover:Re,border:Te,borderFocus:Ee,borderHover:Ae,borderActive:Ge,arrowColor:ut,arrowColorDisabled:et,loadingColor:jt,colorActiveWarning:Xt,boxShadowFocusWarning:Yt,boxShadowActiveWarning:Qt,boxShadowHoverWarning:eo,borderWarning:po,borderFocusWarning:to,borderHoverWarning:G,borderActiveWarning:ue,colorActiveError:Fe,boxShadowFocusError:je,boxShadowActiveError:nt,boxShadowHoverError:qe,borderError:vt,borderFocusError:yt,borderHoverError:io,borderActiveError:nn,clearColor:rn,clearColorHover:ir,clearColorPressed:$i,clearSize:Ei,arrowSize:Fi,[me("height",ee)]:Ai,[me("fontSize",ee)]:Ii}}=m.value,zn=no(We),Tn=no(ot);return{"--n-bezier":se,"--n-border":Te,"--n-border-active":Ge,"--n-border-focus":Ee,"--n-border-hover":Ae,"--n-border-radius":Me,"--n-box-shadow-active":Ce,"--n-box-shadow-focus":ce,"--n-box-shadow-hover":Re,"--n-caret-color":Xe,"--n-color":He,"--n-color-active":q,"--n-color-disabled":Pe,"--n-font-size":Ii,"--n-height":Ai,"--n-padding-single-top":zn.top,"--n-padding-multiple-top":Tn.top,"--n-padding-single-right":zn.right,"--n-padding-multiple-right":Tn.right,"--n-padding-single-left":zn.left,"--n-padding-multiple-left":Tn.left,"--n-padding-single-bottom":zn.bottom,"--n-padding-multiple-bottom":Tn.bottom,"--n-placeholder-color":Qe,"--n-placeholder-color-disabled":z,"--n-text-color":Ve,"--n-text-color-disabled":ze,"--n-arrow-color":ut,"--n-arrow-color-disabled":et,"--n-loading-color":jt,"--n-color-active-warning":Xt,"--n-box-shadow-focus-warning":Yt,"--n-box-shadow-active-warning":Qt,"--n-box-shadow-hover-warning":eo,"--n-border-warning":po,"--n-border-focus-warning":to,"--n-border-hover-warning":G,"--n-border-active-warning":ue,"--n-color-active-error":Fe,"--n-box-shadow-focus-error":je,"--n-box-shadow-active-error":nt,"--n-box-shadow-hover-error":qe,"--n-border-error":vt,"--n-border-focus-error":yt,"--n-border-hover-error":io,"--n-border-active-error":nn,"--n-clear-size":Ei,"--n-clear-color":rn,"--n-clear-color-hover":ir,"--n-clear-color-pressed":$i,"--n-arrow-size":Fi,"--n-font-weight":ke}}),be=oe?gt("internal-selection",F(()=>e.size[0]),ye,e):void 0;return{mergedTheme:m,mergedClearable:x,mergedClsPrefix:t,rtlEnabled:n,patternInputFocused:g,filterablePlaceholder:w,label:C,selected:P,showTagsPanel:p,isComposing:N,counterRef:d,counterWrapperRef:u,patternInputMirrorRef:r,patternInputRef:i,selfRef:l,multipleElRef:a,singleElRef:s,patternInputWrapperRef:c,overflowRef:f,inputTagElRef:h,handleMouseDown:pe,handleFocusin:W,handleClear:Z,handleMouseEnter:U,handleMouseLeave:J,handleDeleteOption:fe,handlePatternKeyDown:O,handlePatternInputInput:Q,handlePatternInputBlur:de,handlePatternInputFocus:X,handleMouseEnterCounter:xe,handleMouseLeaveCounter:ne,handleFocusout:D,handleCompositionEnd:we,handleCompositionStart:he,onPopoverUpdateShow:te,focus:ae,focusInput:_e,blur:R,blurInput:k,updateCounter:$,getCounter:K,getTail:ie,renderLabel:e.renderLabel,cssVars:oe?void 0:ye,themeClass:be==null?void 0:be.themeClass,onRender:be==null?void 0:be.onRender}},render(){const{status:e,multiple:t,size:o,disabled:n,filterable:r,maxTagCount:i,bordered:l,clsPrefix:a,ellipsisTagPopoverProps:s,onRender:c,renderTag:d,renderLabel:u}=this;c==null||c();const f=i==="responsive",h=typeof i=="number",p=f||h,g=v(Hs,null,{default:()=>v(kv,{clsPrefix:a,loading:this.loading,showArrow:this.showArrow,showClear:this.mergedClearable&&this.selected,onClear:this.handleClear},{default:()=>{var m,x;return(x=(m=this.$slots).arrow)===null||x===void 0?void 0:x.call(m)}})});let b;if(t){const{labelField:m}=this,x=M=>v("div",{class:`${a}-base-selection-tag-wrapper`,key:M.value},d?d({option:M,handleClose:()=>{this.handleDeleteOption(M)}}):v(ea,{size:o,closable:!M.disabled,disabled:n,onClose:()=>{this.handleDeleteOption(M)},internalCloseIsButtonTag:!1,internalCloseFocusable:!1},{default:()=>u?u(M,!0):Lt(M[m],M,!0)})),w=()=>(h?this.selectedOptions.slice(0,i):this.selectedOptions).map(x),C=r?v("div",{class:`${a}-base-selection-input-tag`,ref:"inputTagElRef",key:"__input-tag__"},v("input",Object.assign({},this.inputProps,{ref:"patternInputRef",tabindex:-1,disabled:n,value:this.pattern,autofocus:this.autofocus,class:`${a}-base-selection-input-tag__input`,onBlur:this.handlePatternInputBlur,onFocus:this.handlePatternInputFocus,onKeydown:this.handlePatternKeyDown,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),v("span",{ref:"patternInputMirrorRef",class:`${a}-base-selection-input-tag__mirror`},this.pattern)):null,P=f?()=>v("div",{class:`${a}-base-selection-tag-wrapper`,ref:"counterWrapperRef"},v(ea,{size:o,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,onMouseleave:this.handleMouseLeaveCounter,disabled:n})):void 0;let T;if(h){const M=this.selectedOptions.length-i;M>0&&(T=v("div",{class:`${a}-base-selection-tag-wrapper`,key:"__counter__"},v(ea,{size:o,ref:"counterRef",onMouseenter:this.handleMouseEnterCounter,disabled:n},{default:()=>`+${M}`})))}const y=f?r?v(Os,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,getTail:this.getTail,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:w,counter:P,tail:()=>C}):v(Os,{ref:"overflowRef",updateCounter:this.updateCounter,getCounter:this.getCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:w,counter:P}):h&&T?w().concat(T):w(),B=p?()=>v("div",{class:`${a}-base-selection-popover`},f?w():this.selectedOptions.map(x)):void 0,S=p?Object.assign({show:this.showTagsPanel,trigger:"hover",overlap:!0,placement:"top",width:"trigger",onUpdateShow:this.onPopoverUpdateShow,theme:this.mergedTheme.peers.Popover,themeOverrides:this.mergedTheme.peerOverrides.Popover},s):null,j=(this.selected?!1:this.active?!this.pattern&&!this.isComposing:!0)?v("div",{class:`${a}-base-selection-placeholder ${a}-base-selection-overlay`},v("div",{class:`${a}-base-selection-placeholder__inner`},this.placeholder)):null,_=r?v("div",{ref:"patternInputWrapperRef",class:`${a}-base-selection-tags`},y,f?null:C,g):v("div",{ref:"multipleElRef",class:`${a}-base-selection-tags`,tabindex:n?void 0:0},y,g);b=v(it,null,p?v(zi,Object.assign({},S,{scrollable:!0,style:"max-height: calc(var(--v-target-height) * 6.6);"}),{trigger:()=>_,default:B}):_,j)}else if(r){const m=this.pattern||this.isComposing,x=this.active?!m:!this.selected,w=this.active?!1:this.selected;b=v("div",{ref:"patternInputWrapperRef",class:`${a}-base-selection-label`,title:this.patternInputFocused?void 0:Xh(this.label)},v("input",Object.assign({},this.inputProps,{ref:"patternInputRef",class:`${a}-base-selection-input`,value:this.active?this.pattern:"",placeholder:"",readonly:n,disabled:n,tabindex:-1,autofocus:this.autofocus,onFocus:this.handlePatternInputFocus,onBlur:this.handlePatternInputBlur,onInput:this.handlePatternInputInput,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd})),w?v("div",{class:`${a}-base-selection-label__render-label ${a}-base-selection-overlay`,key:"input"},v("div",{class:`${a}-base-selection-overlay__wrapper`},d?d({option:this.selectedOption,handleClose:()=>{}}):u?u(this.selectedOption,!0):Lt(this.label,this.selectedOption,!0))):null,x?v("div",{class:`${a}-base-selection-placeholder ${a}-base-selection-overlay`,key:"placeholder"},v("div",{class:`${a}-base-selection-overlay__wrapper`},this.filterablePlaceholder)):null,g)}else b=v("div",{ref:"singleElRef",class:`${a}-base-selection-label`,tabindex:this.disabled?void 0:0},this.label!==void 0?v("div",{class:`${a}-base-selection-input`,title:Xh(this.label),key:"input"},v("div",{class:`${a}-base-selection-input__content`},d?d({option:this.selectedOption,handleClose:()=>{}}):u?u(this.selectedOption,!0):Lt(this.label,this.selectedOption,!0))):v("div",{class:`${a}-base-selection-placeholder ${a}-base-selection-overlay`,key:"placeholder"},v("div",{class:`${a}-base-selection-placeholder__inner`},this.placeholder)),g);return v("div",{ref:"selfRef",class:[`${a}-base-selection`,this.rtlEnabled&&`${a}-base-selection--rtl`,this.themeClass,e&&`${a}-base-selection--${e}-status`,{[`${a}-base-selection--active`]:this.active,[`${a}-base-selection--selected`]:this.selected||this.active&&this.pattern,[`${a}-base-selection--disabled`]:this.disabled,[`${a}-base-selection--multiple`]:this.multiple,[`${a}-base-selection--focus`]:this.focused}],style:this.cssVars,onClick:this.onClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onKeydown:this.onKeydown,onFocusin:this.handleFocusin,onFocusout:this.handleFocusout,onMousedown:this.handleMouseDown},b,l?v("div",{class:`${a}-base-selection__border`}):null,l?v("div",{class:`${a}-base-selection__state-border`}):null)}}),{cubicBezierEaseInOut:kn}=Qn;function K_({duration:e=".2s",delay:t=".1s"}={}){return[L("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),L("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",`
|
||
opacity: 0!important;
|
||
margin-left: 0!important;
|
||
margin-right: 0!important;
|
||
`),L("&.fade-in-width-expand-transition-leave-active",`
|
||
overflow: hidden;
|
||
transition:
|
||
opacity ${e} ${kn},
|
||
max-width ${e} ${kn} ${t},
|
||
margin-left ${e} ${kn} ${t},
|
||
margin-right ${e} ${kn} ${t};
|
||
`),L("&.fade-in-width-expand-transition-enter-active",`
|
||
overflow: hidden;
|
||
transition:
|
||
opacity ${e} ${kn} ${t},
|
||
max-width ${e} ${kn},
|
||
margin-left ${e} ${kn},
|
||
margin-right ${e} ${kn};
|
||
`)]}const G_=I("base-wave",`
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
border-radius: inherit;
|
||
`),q_=ve({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){er("-base-wave",G_,Se(e,"clsPrefix"));const t=V(null),o=V(!1);let n=null;return Ft(()=>{n!==null&&window.clearTimeout(n)}),{active:o,selfRef:t,play(){n!==null&&(window.clearTimeout(n),o.value=!1,n=null),so(()=>{var r;(r=t.value)===null||r===void 0||r.offsetHeight,o.value=!0,n=window.setTimeout(()=>{o.value=!1,n=null},1e3)})}}},render(){const{clsPrefix:e}=this;return v("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),{cubicBezierEaseInOut:Lo,cubicBezierEaseOut:X_,cubicBezierEaseIn:Y_}=Qn;function Z_({overflow:e="hidden",duration:t=".3s",originalTransition:o="",leavingDelay:n="0s",foldPadding:r=!1,enterToProps:i=void 0,leaveToProps:l=void 0,reverse:a=!1}={}){const s=a?"leave":"enter",c=a?"enter":"leave";return[L(`&.fade-in-height-expand-transition-${c}-from,
|
||
&.fade-in-height-expand-transition-${s}-to`,Object.assign(Object.assign({},i),{opacity:1})),L(`&.fade-in-height-expand-transition-${c}-to,
|
||
&.fade-in-height-expand-transition-${s}-from`,Object.assign(Object.assign({},l),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:r?"0 !important":void 0,paddingBottom:r?"0 !important":void 0})),L(`&.fade-in-height-expand-transition-${c}-active`,`
|
||
overflow: ${e};
|
||
transition:
|
||
max-height ${t} ${Lo} ${n},
|
||
opacity ${t} ${X_} ${n},
|
||
margin-top ${t} ${Lo} ${n},
|
||
margin-bottom ${t} ${Lo} ${n},
|
||
padding-top ${t} ${Lo} ${n},
|
||
padding-bottom ${t} ${Lo} ${n}
|
||
${o?`,${o}`:""}
|
||
`),L(`&.fade-in-height-expand-transition-${s}-active`,`
|
||
overflow: ${e};
|
||
transition:
|
||
max-height ${t} ${Lo},
|
||
opacity ${t} ${Y_},
|
||
margin-top ${t} ${Lo},
|
||
margin-bottom ${t} ${Lo},
|
||
padding-top ${t} ${Lo},
|
||
padding-bottom ${t} ${Lo}
|
||
${o?`,${o}`:""}
|
||
`)]}const J_=ui&&"chrome"in window;ui&&navigator.userAgent.includes("Firefox");const Tv=ui&&navigator.userAgent.includes("Safari")&&!J_,Q_={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"};function ek(e){const{textColor2:t,textColor3:o,textColorDisabled:n,primaryColor:r,primaryColorHover:i,inputColor:l,inputColorDisabled:a,borderColor:s,warningColor:c,warningColorHover:d,errorColor:u,errorColorHover:f,borderRadius:h,lineHeight:p,fontSizeTiny:g,fontSizeSmall:b,fontSizeMedium:m,fontSizeLarge:x,heightTiny:w,heightSmall:C,heightMedium:P,heightLarge:T,actionColor:y,clearColor:B,clearColorHover:S,clearColorPressed:E,placeholderColor:j,placeholderColorDisabled:_,iconColor:M,iconColorDisabled:W,iconColorHover:D,iconColorPressed:Z,fontWeight:U}=e;return Object.assign(Object.assign({},Q_),{fontWeight:U,countTextColorDisabled:n,countTextColor:o,heightTiny:w,heightSmall:C,heightMedium:P,heightLarge:T,fontSizeTiny:g,fontSizeSmall:b,fontSizeMedium:m,fontSizeLarge:x,lineHeight:p,lineHeightTextarea:p,borderRadius:h,iconSize:"16px",groupLabelColor:y,groupLabelTextColor:t,textColor:t,textColorDisabled:n,textDecorationColor:t,caretColor:r,placeholderColor:j,placeholderColorDisabled:_,color:l,colorDisabled:a,colorFocus:l,groupLabelBorder:`1px solid ${s}`,border:`1px solid ${s}`,borderHover:`1px solid ${i}`,borderDisabled:`1px solid ${s}`,borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 0 2px ${Le(r,{alpha:.2})}`,loadingColor:r,loadingColorWarning:c,borderWarning:`1px solid ${c}`,borderHoverWarning:`1px solid ${d}`,colorFocusWarning:l,borderFocusWarning:`1px solid ${d}`,boxShadowFocusWarning:`0 0 0 2px ${Le(c,{alpha:.2})}`,caretColorWarning:c,loadingColorError:u,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${f}`,colorFocusError:l,borderFocusError:`1px solid ${f}`,boxShadowFocusError:`0 0 0 2px ${Le(u,{alpha:.2})}`,caretColorError:u,clearColor:B,clearColorHover:S,clearColorPressed:E,iconColor:M,iconColorDisabled:W,iconColorHover:D,iconColorPressed:Z,suffixTextColor:t})}const $v={name:"Input",common:xt,peers:{Scrollbar:Er},self:ek},Ev="n-input",tk=I("input",`
|
||
max-width: 100%;
|
||
cursor: text;
|
||
line-height: 1.5;
|
||
z-index: auto;
|
||
outline: none;
|
||
box-sizing: border-box;
|
||
position: relative;
|
||
display: inline-flex;
|
||
border-radius: var(--n-border-radius);
|
||
background-color: var(--n-color);
|
||
transition: background-color .3s var(--n-bezier);
|
||
font-size: var(--n-font-size);
|
||
font-weight: var(--n-font-weight);
|
||
--n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2);
|
||
`,[H("input, textarea",`
|
||
overflow: hidden;
|
||
flex-grow: 1;
|
||
position: relative;
|
||
`),H("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",`
|
||
box-sizing: border-box;
|
||
font-size: inherit;
|
||
line-height: 1.5;
|
||
font-family: inherit;
|
||
border: none;
|
||
outline: none;
|
||
background-color: #0000;
|
||
text-align: inherit;
|
||
transition:
|
||
-webkit-text-fill-color .3s var(--n-bezier),
|
||
caret-color .3s var(--n-bezier),
|
||
color .3s var(--n-bezier),
|
||
text-decoration-color .3s var(--n-bezier);
|
||
`),H("input-el, textarea-el",`
|
||
-webkit-appearance: none;
|
||
scrollbar-width: none;
|
||
width: 100%;
|
||
min-width: 0;
|
||
text-decoration-color: var(--n-text-decoration-color);
|
||
color: var(--n-text-color);
|
||
caret-color: var(--n-caret-color);
|
||
background-color: transparent;
|
||
`,[L("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
|
||
width: 0;
|
||
height: 0;
|
||
display: none;
|
||
`),L("&::placeholder",`
|
||
color: #0000;
|
||
-webkit-text-fill-color: transparent !important;
|
||
`),L("&:-webkit-autofill ~",[H("placeholder","display: none;")])]),Y("round",[Ye("textarea","border-radius: calc(var(--n-height) / 2);")]),H("placeholder",`
|
||
pointer-events: none;
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
overflow: hidden;
|
||
color: var(--n-placeholder-color);
|
||
`,[L("span",`
|
||
width: 100%;
|
||
display: inline-block;
|
||
`)]),Y("textarea",[H("placeholder","overflow: visible;")]),Ye("autosize","width: 100%;"),Y("autosize",[H("textarea-el, input-el",`
|
||
position: absolute;
|
||
top: 0;
|
||
left: 0;
|
||
height: 100%;
|
||
`)]),I("input-wrapper",`
|
||
overflow: hidden;
|
||
display: inline-flex;
|
||
flex-grow: 1;
|
||
position: relative;
|
||
padding-left: var(--n-padding-left);
|
||
padding-right: var(--n-padding-right);
|
||
`),H("input-mirror",`
|
||
padding: 0;
|
||
height: var(--n-height);
|
||
line-height: var(--n-height);
|
||
overflow: hidden;
|
||
visibility: hidden;
|
||
position: static;
|
||
white-space: pre;
|
||
pointer-events: none;
|
||
`),H("input-el",`
|
||
padding: 0;
|
||
height: var(--n-height);
|
||
line-height: var(--n-height);
|
||
`,[L("&[type=password]::-ms-reveal","display: none;"),L("+",[H("placeholder",`
|
||
display: flex;
|
||
align-items: center;
|
||
`)])]),Ye("textarea",[H("placeholder","white-space: nowrap;")]),H("eye",`
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
transition: color .3s var(--n-bezier);
|
||
`),Y("textarea","width: 100%;",[I("input-word-count",`
|
||
position: absolute;
|
||
right: var(--n-padding-right);
|
||
bottom: var(--n-padding-vertical);
|
||
`),Y("resizable",[I("input-wrapper",`
|
||
resize: vertical;
|
||
min-height: var(--n-height);
|
||
`)]),H("textarea-el, textarea-mirror, placeholder",`
|
||
height: 100%;
|
||
padding-left: 0;
|
||
padding-right: 0;
|
||
padding-top: var(--n-padding-vertical);
|
||
padding-bottom: var(--n-padding-vertical);
|
||
word-break: break-word;
|
||
display: inline-block;
|
||
vertical-align: bottom;
|
||
box-sizing: border-box;
|
||
line-height: var(--n-line-height-textarea);
|
||
margin: 0;
|
||
resize: none;
|
||
white-space: pre-wrap;
|
||
scroll-padding-block-end: var(--n-padding-vertical);
|
||
`),H("textarea-mirror",`
|
||
width: 100%;
|
||
pointer-events: none;
|
||
overflow: hidden;
|
||
visibility: hidden;
|
||
position: static;
|
||
white-space: pre-wrap;
|
||
overflow-wrap: break-word;
|
||
`)]),Y("pair",[H("input-el, placeholder","text-align: center;"),H("separator",`
|
||
display: flex;
|
||
align-items: center;
|
||
transition: color .3s var(--n-bezier);
|
||
color: var(--n-text-color);
|
||
white-space: nowrap;
|
||
`,[I("icon",`
|
||
color: var(--n-icon-color);
|
||
`),I("base-icon",`
|
||
color: var(--n-icon-color);
|
||
`)])]),Y("disabled",`
|
||
cursor: not-allowed;
|
||
background-color: var(--n-color-disabled);
|
||
`,[H("border","border: var(--n-border-disabled);"),H("input-el, textarea-el",`
|
||
cursor: not-allowed;
|
||
color: var(--n-text-color-disabled);
|
||
text-decoration-color: var(--n-text-color-disabled);
|
||
`),H("placeholder","color: var(--n-placeholder-color-disabled);"),H("separator","color: var(--n-text-color-disabled);",[I("icon",`
|
||
color: var(--n-icon-color-disabled);
|
||
`),I("base-icon",`
|
||
color: var(--n-icon-color-disabled);
|
||
`)]),I("input-word-count",`
|
||
color: var(--n-count-text-color-disabled);
|
||
`),H("suffix, prefix","color: var(--n-text-color-disabled);",[I("icon",`
|
||
color: var(--n-icon-color-disabled);
|
||
`),I("internal-icon",`
|
||
color: var(--n-icon-color-disabled);
|
||
`)])]),Ye("disabled",[H("eye",`
|
||
color: var(--n-icon-color);
|
||
cursor: pointer;
|
||
`,[L("&:hover",`
|
||
color: var(--n-icon-color-hover);
|
||
`),L("&:active",`
|
||
color: var(--n-icon-color-pressed);
|
||
`)]),L("&:hover",[H("state-border","border: var(--n-border-hover);")]),Y("focus","background-color: var(--n-color-focus);",[H("state-border",`
|
||
border: var(--n-border-focus);
|
||
box-shadow: var(--n-box-shadow-focus);
|
||
`)])]),H("border, state-border",`
|
||
box-sizing: border-box;
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
pointer-events: none;
|
||
border-radius: inherit;
|
||
border: var(--n-border);
|
||
transition:
|
||
box-shadow .3s var(--n-bezier),
|
||
border-color .3s var(--n-bezier);
|
||
`),H("state-border",`
|
||
border-color: #0000;
|
||
z-index: 1;
|
||
`),H("prefix","margin-right: 4px;"),H("suffix",`
|
||
margin-left: 4px;
|
||
`),H("suffix, prefix",`
|
||
transition: color .3s var(--n-bezier);
|
||
flex-wrap: nowrap;
|
||
flex-shrink: 0;
|
||
line-height: var(--n-height);
|
||
white-space: nowrap;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
color: var(--n-suffix-text-color);
|
||
`,[I("base-loading",`
|
||
font-size: var(--n-icon-size);
|
||
margin: 0 2px;
|
||
color: var(--n-loading-color);
|
||
`),I("base-clear",`
|
||
font-size: var(--n-icon-size);
|
||
`,[H("placeholder",[I("base-icon",`
|
||
transition: color .3s var(--n-bezier);
|
||
color: var(--n-icon-color);
|
||
font-size: var(--n-icon-size);
|
||
`)])]),L(">",[I("icon",`
|
||
transition: color .3s var(--n-bezier);
|
||
color: var(--n-icon-color);
|
||
font-size: var(--n-icon-size);
|
||
`)]),I("base-icon",`
|
||
font-size: var(--n-icon-size);
|
||
`)]),I("input-word-count",`
|
||
pointer-events: none;
|
||
line-height: 1.5;
|
||
font-size: .85em;
|
||
color: var(--n-count-text-color);
|
||
transition: color .3s var(--n-bezier);
|
||
margin-left: 4px;
|
||
font-variant: tabular-nums;
|
||
`),["warning","error"].map(e=>Y(`${e}-status`,[Ye("disabled",[I("base-loading",`
|
||
color: var(--n-loading-color-${e})
|
||
`),H("input-el, textarea-el",`
|
||
caret-color: var(--n-caret-color-${e});
|
||
`),H("state-border",`
|
||
border: var(--n-border-${e});
|
||
`),L("&:hover",[H("state-border",`
|
||
border: var(--n-border-hover-${e});
|
||
`)]),L("&:focus",`
|
||
background-color: var(--n-color-focus-${e});
|
||
`,[H("state-border",`
|
||
box-shadow: var(--n-box-shadow-focus-${e});
|
||
border: var(--n-border-focus-${e});
|
||
`)]),Y("focus",`
|
||
background-color: var(--n-color-focus-${e});
|
||
`,[H("state-border",`
|
||
box-shadow: var(--n-box-shadow-focus-${e});
|
||
border: var(--n-border-focus-${e});
|
||
`)])])]))]),ok=I("input",[Y("disabled",[H("input-el, textarea-el",`
|
||
-webkit-text-fill-color: var(--n-text-color-disabled);
|
||
`)])]);function nk(e){let t=0;for(const o of e)t++;return t}function ta(e){return e===""||e==null}function rk(e){const t=V(null);function o(){const{value:i}=e;if(!(i!=null&&i.focus)){r();return}const{selectionStart:l,selectionEnd:a,value:s}=i;if(l==null||a==null){r();return}t.value={start:l,end:a,beforeText:s.slice(0,l),afterText:s.slice(a)}}function n(){var i;const{value:l}=t,{value:a}=e;if(!l||!a)return;const{value:s}=a,{start:c,beforeText:d,afterText:u}=l;let f=s.length;if(s.endsWith(u))f=s.length-u.length;else if(s.startsWith(d))f=d.length;else{const h=d[c-1],p=s.indexOf(h,c-1);p!==-1&&(f=p+1)}(i=a.setSelectionRange)===null||i===void 0||i.call(a,f,f)}function r(){t.value=null}return st(e,r),{recordCursor:o,restoreCursor:n}}const Fv=ve({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:o,maxlengthRef:n,mergedClsPrefixRef:r,countGraphemesRef:i}=$e(Ev),l=F(()=>{const{value:a}=o;return a===null||Array.isArray(a)?0:(i.value||nk)(a)});return()=>{const{value:a}=n,{value:s}=o;return v("span",{class:`${r.value}-input-word-count`},_C(t.default,{value:s===null||Array.isArray(s)?"":s},()=>[a===void 0?l.value:`${l.value} / ${a}`]))}}}),ik=Object.assign(Object.assign({},Ie.props),{bordered:{type:Boolean,default:void 0},type:{type:String,default:"text"},placeholder:[Array,String],defaultValue:{type:[String,Array],default:null},value:[String,Array],disabled:{type:Boolean,default:void 0},size:String,rows:{type:[Number,String],default:3},round:Boolean,minlength:[String,Number],maxlength:[String,Number],clearable:Boolean,autosize:{type:[Boolean,Object],default:!1},pair:Boolean,separator:String,readonly:{type:[String,Boolean],default:!1},passivelyActivated:Boolean,showPasswordOn:String,stateful:{type:Boolean,default:!0},autofocus:Boolean,inputProps:Object,resizable:{type:Boolean,default:!0},showCount:Boolean,loading:{type:Boolean,default:void 0},allowInput:Function,renderCount:Function,onMousedown:Function,onKeydown:Function,onKeyup:[Function,Array],onInput:[Function,Array],onFocus:[Function,Array],onBlur:[Function,Array],onClick:[Function,Array],onChange:[Function,Array],onClear:[Function,Array],countGraphemes:Function,status:String,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],textDecoration:[String,Array],attrSize:{type:Number,default:20},onInputBlur:[Function,Array],onInputFocus:[Function,Array],onDeactivate:[Function,Array],onActivate:[Function,Array],onWrapperFocus:[Function,Array],onWrapperBlur:[Function,Array],internalDeactivateOnEnter:Boolean,internalForceFocus:Boolean,internalLoadingBeforeSuffix:{type:Boolean,default:!0},showPasswordToggle:Boolean}),Av=ve({name:"Input",props:ik,slots:Object,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:o,inlineThemeDisabled:n,mergedRtlRef:r}=Je(e),i=Ie("Input","-input",tk,$v,e,t);Tv&&er("-input-safari",ok,t);const l=V(null),a=V(null),s=V(null),c=V(null),d=V(null),u=V(null),f=V(null),h=rk(f),p=V(null),{localeRef:g}=Pi("Input"),b=V(e.defaultValue),m=Se(e,"value"),x=It(m,b),w=qn(e),{mergedSizeRef:C,mergedDisabledRef:P,mergedStatusRef:T}=w,y=V(!1),B=V(!1),S=V(!1),E=V(!1);let j=null;const _=F(()=>{const{placeholder:G,pair:ue}=e;return ue?Array.isArray(G)?G:G===void 0?["",""]:[G,G]:G===void 0?[g.value.placeholder]:[G]}),M=F(()=>{const{value:G}=S,{value:ue}=x,{value:Fe}=_;return!G&&(ta(ue)||Array.isArray(ue)&&ta(ue[0]))&&Fe[0]}),W=F(()=>{const{value:G}=S,{value:ue}=x,{value:Fe}=_;return!G&&Fe[1]&&(ta(ue)||Array.isArray(ue)&&ta(ue[1]))}),D=Ze(()=>e.internalForceFocus||y.value),Z=Ze(()=>{if(P.value||e.readonly||!e.clearable||!D.value&&!B.value)return!1;const{value:G}=x,{value:ue}=D;return e.pair?!!(Array.isArray(G)&&(G[0]||G[1]))&&(B.value||ue):!!G&&(B.value||ue)}),U=F(()=>{const{showPasswordOn:G}=e;if(G)return G;if(e.showPasswordToggle)return"click"}),J=V(!1),pe=F(()=>{const{textDecoration:G}=e;return G?Array.isArray(G)?G.map(ue=>({textDecoration:ue})):[{textDecoration:G}]:["",""]}),fe=V(void 0),N=()=>{var G,ue;if(e.type==="textarea"){const{autosize:Fe}=e;if(Fe&&(fe.value=(ue=(G=p.value)===null||G===void 0?void 0:G.$el)===null||ue===void 0?void 0:ue.offsetWidth),!a.value||typeof Fe=="boolean")return;const{paddingTop:je,paddingBottom:nt,lineHeight:qe}=window.getComputedStyle(a.value),vt=Number(je.slice(0,-2)),yt=Number(nt.slice(0,-2)),io=Number(qe.slice(0,-2)),{value:nn}=s;if(!nn)return;if(Fe.minRows){const rn=Math.max(Fe.minRows,1),ir=`${vt+yt+io*rn}px`;nn.style.minHeight=ir}if(Fe.maxRows){const rn=`${vt+yt+io*Fe.maxRows}px`;nn.style.maxHeight=rn}}},O=F(()=>{const{maxlength:G}=e;return G===void 0?void 0:Number(G)});Bt(()=>{const{value:G}=x;Array.isArray(G)||Ge(G)});const A=Hn().proxy;function Q(G,ue){const{onUpdateValue:Fe,"onUpdate:value":je,onInput:nt}=e,{nTriggerFormInput:qe}=w;Fe&&ge(Fe,G,ue),je&&ge(je,G,ue),nt&&ge(nt,G,ue),b.value=G,qe()}function he(G,ue){const{onChange:Fe}=e,{nTriggerFormChange:je}=w;Fe&&ge(Fe,G,ue),b.value=G,je()}function we(G){const{onBlur:ue}=e,{nTriggerFormBlur:Fe}=w;ue&&ge(ue,G),Fe()}function X(G){const{onFocus:ue}=e,{nTriggerFormFocus:Fe}=w;ue&&ge(ue,G),Fe()}function de(G){const{onClear:ue}=e;ue&&ge(ue,G)}function R(G){const{onInputBlur:ue}=e;ue&&ge(ue,G)}function ae(G){const{onInputFocus:ue}=e;ue&&ge(ue,G)}function _e(){const{onDeactivate:G}=e;G&&ge(G)}function k(){const{onActivate:G}=e;G&&ge(G)}function $(G){const{onClick:ue}=e;ue&&ge(ue,G)}function K(G){const{onWrapperFocus:ue}=e;ue&&ge(ue,G)}function ie(G){const{onWrapperBlur:ue}=e;ue&&ge(ue,G)}function le(){S.value=!0}function re(G){S.value=!1,G.target===u.value?xe(G,1):xe(G,0)}function xe(G,ue=0,Fe="input"){const je=G.target.value;if(Ge(je),G instanceof InputEvent&&!G.isComposing&&(S.value=!1),e.type==="textarea"){const{value:qe}=p;qe&&qe.syncUnifiedContainer()}if(j=je,S.value)return;h.recordCursor();const nt=ne(je);if(nt)if(!e.pair)Fe==="input"?Q(je,{source:ue}):he(je,{source:ue});else{let{value:qe}=x;Array.isArray(qe)?qe=[qe[0],qe[1]]:qe=["",""],qe[ue]=je,Fe==="input"?Q(qe,{source:ue}):he(qe,{source:ue})}A.$forceUpdate(),nt||so(h.restoreCursor)}function ne(G){const{countGraphemes:ue,maxlength:Fe,minlength:je}=e;if(ue){let qe;if(Fe!==void 0&&(qe===void 0&&(qe=ue(G)),qe>Number(Fe))||je!==void 0&&(qe===void 0&&(qe=ue(G)),qe<Number(Fe)))return!1}const{allowInput:nt}=e;return typeof nt=="function"?nt(G):!0}function te(G){R(G),G.relatedTarget===l.value&&_e(),G.relatedTarget!==null&&(G.relatedTarget===d.value||G.relatedTarget===u.value||G.relatedTarget===a.value)||(E.value=!1),ee(G,"blur"),f.value=null}function oe(G,ue){ae(G),y.value=!0,E.value=!0,k(),ee(G,"focus"),ue===0?f.value=d.value:ue===1?f.value=u.value:ue===2&&(f.value=a.value)}function ye(G){e.passivelyActivated&&(ie(G),ee(G,"blur"))}function be(G){e.passivelyActivated&&(y.value=!0,K(G),ee(G,"focus"))}function ee(G,ue){G.relatedTarget!==null&&(G.relatedTarget===d.value||G.relatedTarget===u.value||G.relatedTarget===a.value||G.relatedTarget===l.value)||(ue==="focus"?(X(G),y.value=!0):ue==="blur"&&(we(G),y.value=!1))}function se(G,ue){xe(G,ue,"change")}function ke(G){$(G)}function Me(G){de(G),He()}function He(){e.pair?(Q(["",""],{source:"clear"}),he(["",""],{source:"clear"})):(Q("",{source:"clear"}),he("",{source:"clear"}))}function Qe(G){const{onMousedown:ue}=e;ue&&ue(G);const{tagName:Fe}=G.target;if(Fe!=="INPUT"&&Fe!=="TEXTAREA"){if(e.resizable){const{value:je}=l;if(je){const{left:nt,top:qe,width:vt,height:yt}=je.getBoundingClientRect(),io=14;if(nt+vt-io<G.clientX&&G.clientX<nt+vt&&qe+yt-io<G.clientY&&G.clientY<qe+yt)return}}G.preventDefault(),y.value||ce()}}function Ve(){var G;B.value=!0,e.type==="textarea"&&((G=p.value)===null||G===void 0||G.handleMouseEnterWrapper())}function We(){var G;B.value=!1,e.type==="textarea"&&((G=p.value)===null||G===void 0||G.handleMouseLeaveWrapper())}function ot(){P.value||U.value==="click"&&(J.value=!J.value)}function Xe(G){if(P.value)return;G.preventDefault();const ue=je=>{je.preventDefault(),ct("mouseup",document,ue)};if(bt("mouseup",document,ue),U.value!=="mousedown")return;J.value=!0;const Fe=()=>{J.value=!1,ct("mouseup",document,Fe)};bt("mouseup",document,Fe)}function Pe(G){e.onKeyup&&ge(e.onKeyup,G)}function ze(G){switch(e.onKeydown&&ge(e.onKeydown,G),G.key){case"Escape":q();break;case"Enter":z(G);break}}function z(G){var ue,Fe;if(e.passivelyActivated){const{value:je}=E;if(je){e.internalDeactivateOnEnter&&q();return}G.preventDefault(),e.type==="textarea"?(ue=a.value)===null||ue===void 0||ue.focus():(Fe=d.value)===null||Fe===void 0||Fe.focus()}}function q(){e.passivelyActivated&&(E.value=!1,so(()=>{var G;(G=l.value)===null||G===void 0||G.focus()}))}function ce(){var G,ue,Fe;P.value||(e.passivelyActivated?(G=l.value)===null||G===void 0||G.focus():((ue=a.value)===null||ue===void 0||ue.focus(),(Fe=d.value)===null||Fe===void 0||Fe.focus()))}function Ce(){var G;!((G=l.value)===null||G===void 0)&&G.contains(document.activeElement)&&document.activeElement.blur()}function Re(){var G,ue;(G=a.value)===null||G===void 0||G.select(),(ue=d.value)===null||ue===void 0||ue.select()}function Te(){P.value||(a.value?a.value.focus():d.value&&d.value.focus())}function Ee(){const{value:G}=l;G!=null&&G.contains(document.activeElement)&&G!==document.activeElement&&q()}function Ae(G){if(e.type==="textarea"){const{value:ue}=a;ue==null||ue.scrollTo(G)}else{const{value:ue}=d;ue==null||ue.scrollTo(G)}}function Ge(G){const{type:ue,pair:Fe,autosize:je}=e;if(!Fe&&je)if(ue==="textarea"){const{value:nt}=s;nt&&(nt.textContent=`${G??""}\r
|
||
`)}else{const{value:nt}=c;nt&&(G?nt.textContent=G:nt.innerHTML=" ")}}function ut(){N()}const et=V({top:"0"});function jt(G){var ue;const{scrollTop:Fe}=G.target;et.value.top=`${-Fe}px`,(ue=p.value)===null||ue===void 0||ue.syncUnifiedContainer()}let Xt=null;Mt(()=>{const{autosize:G,type:ue}=e;G&&ue==="textarea"?Xt=st(x,Fe=>{!Array.isArray(Fe)&&Fe!==j&&Ge(Fe)}):Xt==null||Xt()});let Yt=null;Mt(()=>{e.type==="textarea"?Yt=st(x,G=>{var ue;!Array.isArray(G)&&G!==j&&((ue=p.value)===null||ue===void 0||ue.syncUnifiedContainer())}):Yt==null||Yt()}),tt(Ev,{mergedValueRef:x,maxlengthRef:O,mergedClsPrefixRef:t,countGraphemesRef:Se(e,"countGraphemes")});const Qt={wrapperElRef:l,inputElRef:d,textareaElRef:a,isCompositing:S,clear:He,focus:ce,blur:Ce,select:Re,deactivate:Ee,activate:Te,scrollTo:Ae},eo=qt("Input",r,t),po=F(()=>{const{value:G}=C,{common:{cubicBezierEaseInOut:ue},self:{color:Fe,borderRadius:je,textColor:nt,caretColor:qe,caretColorError:vt,caretColorWarning:yt,textDecorationColor:io,border:nn,borderDisabled:rn,borderHover:ir,borderFocus:$i,placeholderColor:Ei,placeholderColorDisabled:Fi,lineHeightTextarea:Ai,colorDisabled:Ii,colorFocus:zn,textColorDisabled:Tn,boxShadowFocus:qc,iconSize:Xc,colorFocusWarning:Yc,boxShadowFocusWarning:Zc,borderWarning:Jc,borderFocusWarning:Qc,borderHoverWarning:ed,colorFocusError:td,boxShadowFocusError:od,borderError:nd,borderFocusError:rd,borderHoverError:c2,clearSize:d2,clearColor:u2,clearColorHover:f2,clearColorPressed:h2,iconColor:p2,iconColorDisabled:v2,suffixTextColor:g2,countTextColor:m2,countTextColorDisabled:b2,iconColorHover:x2,iconColorPressed:y2,loadingColor:C2,loadingColorError:w2,loadingColorWarning:S2,fontWeight:R2,[me("padding",G)]:P2,[me("fontSize",G)]:_2,[me("height",G)]:k2}}=i.value,{left:z2,right:T2}=no(P2);return{"--n-bezier":ue,"--n-count-text-color":m2,"--n-count-text-color-disabled":b2,"--n-color":Fe,"--n-font-size":_2,"--n-font-weight":R2,"--n-border-radius":je,"--n-height":k2,"--n-padding-left":z2,"--n-padding-right":T2,"--n-text-color":nt,"--n-caret-color":qe,"--n-text-decoration-color":io,"--n-border":nn,"--n-border-disabled":rn,"--n-border-hover":ir,"--n-border-focus":$i,"--n-placeholder-color":Ei,"--n-placeholder-color-disabled":Fi,"--n-icon-size":Xc,"--n-line-height-textarea":Ai,"--n-color-disabled":Ii,"--n-color-focus":zn,"--n-text-color-disabled":Tn,"--n-box-shadow-focus":qc,"--n-loading-color":C2,"--n-caret-color-warning":yt,"--n-color-focus-warning":Yc,"--n-box-shadow-focus-warning":Zc,"--n-border-warning":Jc,"--n-border-focus-warning":Qc,"--n-border-hover-warning":ed,"--n-loading-color-warning":S2,"--n-caret-color-error":vt,"--n-color-focus-error":td,"--n-box-shadow-focus-error":od,"--n-border-error":nd,"--n-border-focus-error":rd,"--n-border-hover-error":c2,"--n-loading-color-error":w2,"--n-clear-color":u2,"--n-clear-size":d2,"--n-clear-color-hover":f2,"--n-clear-color-pressed":h2,"--n-icon-color":p2,"--n-icon-color-hover":x2,"--n-icon-color-pressed":y2,"--n-icon-color-disabled":v2,"--n-suffix-text-color":g2}}),to=n?gt("input",F(()=>{const{value:G}=C;return G[0]}),po,e):void 0;return Object.assign(Object.assign({},Qt),{wrapperElRef:l,inputElRef:d,inputMirrorElRef:c,inputEl2Ref:u,textareaElRef:a,textareaMirrorElRef:s,textareaScrollbarInstRef:p,rtlEnabled:eo,uncontrolledValue:b,mergedValue:x,passwordVisible:J,mergedPlaceholder:_,showPlaceholder1:M,showPlaceholder2:W,mergedFocus:D,isComposing:S,activated:E,showClearButton:Z,mergedSize:C,mergedDisabled:P,textDecorationStyle:pe,mergedClsPrefix:t,mergedBordered:o,mergedShowPasswordOn:U,placeholderStyle:et,mergedStatus:T,textAreaScrollContainerWidth:fe,handleTextAreaScroll:jt,handleCompositionStart:le,handleCompositionEnd:re,handleInput:xe,handleInputBlur:te,handleInputFocus:oe,handleWrapperBlur:ye,handleWrapperFocus:be,handleMouseEnter:Ve,handleMouseLeave:We,handleMouseDown:Qe,handleChange:se,handleClick:ke,handleClear:Me,handlePasswordToggleClick:ot,handlePasswordToggleMousedown:Xe,handleWrapperKeydown:ze,handleWrapperKeyup:Pe,handleTextAreaMirrorResize:ut,getTextareaScrollContainer:()=>a.value,mergedTheme:i,cssVars:n?void 0:po,themeClass:to==null?void 0:to.themeClass,onRender:to==null?void 0:to.onRender})},render(){var e,t,o,n,r,i,l;const{mergedClsPrefix:a,mergedStatus:s,themeClass:c,type:d,countGraphemes:u,onRender:f}=this,h=this.$slots;return f==null||f(),v("div",{ref:"wrapperElRef",class:[`${a}-input`,c,s&&`${a}-input--${s}-status`,{[`${a}-input--rtl`]:this.rtlEnabled,[`${a}-input--disabled`]:this.mergedDisabled,[`${a}-input--textarea`]:d==="textarea",[`${a}-input--resizable`]:this.resizable&&!this.autosize,[`${a}-input--autosize`]:this.autosize,[`${a}-input--round`]:this.round&&d!=="textarea",[`${a}-input--pair`]:this.pair,[`${a}-input--focus`]:this.mergedFocus,[`${a}-input--stateful`]:this.stateful}],style:this.cssVars,tabindex:!this.mergedDisabled&&this.passivelyActivated&&!this.activated?0:void 0,onFocus:this.handleWrapperFocus,onBlur:this.handleWrapperBlur,onClick:this.handleClick,onMousedown:this.handleMouseDown,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onCompositionstart:this.handleCompositionStart,onCompositionend:this.handleCompositionEnd,onKeyup:this.handleWrapperKeyup,onKeydown:this.handleWrapperKeydown},v("div",{class:`${a}-input-wrapper`},pt(h.prefix,p=>p&&v("div",{class:`${a}-input__prefix`},p)),d==="textarea"?v(tr,{ref:"textareaScrollbarInstRef",class:`${a}-input__textarea`,container:this.getTextareaScrollContainer,theme:(t=(e=this.theme)===null||e===void 0?void 0:e.peers)===null||t===void 0?void 0:t.Scrollbar,themeOverrides:(n=(o=this.themeOverrides)===null||o===void 0?void 0:o.peers)===null||n===void 0?void 0:n.Scrollbar,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var p,g;const{textAreaScrollContainerWidth:b}=this,m={width:this.autosize&&b&&`${b}px`};return v(it,null,v("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${a}-input__textarea-el`,(p=this.inputProps)===null||p===void 0?void 0:p.class],autofocus:this.autofocus,rows:Number(this.rows),placeholder:this.placeholder,value:this.mergedValue,disabled:this.mergedDisabled,maxlength:u?void 0:this.maxlength,minlength:u?void 0:this.minlength,readonly:this.readonly,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,style:[this.textDecorationStyle[0],(g=this.inputProps)===null||g===void 0?void 0:g.style,m],onBlur:this.handleInputBlur,onFocus:x=>{this.handleInputFocus(x,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?v("div",{class:`${a}-input__placeholder`,style:[this.placeholderStyle,m],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?v(wn,{onResize:this.handleTextAreaMirrorResize},{default:()=>v("div",{ref:"textareaMirrorElRef",class:`${a}-input__textarea-mirror`,key:"mirror"})}):null)}}):v("div",{class:`${a}-input__input`},v("input",Object.assign({type:d==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":d},this.inputProps,{ref:"inputElRef",class:[`${a}-input__input-el`,(r=this.inputProps)===null||r===void 0?void 0:r.class],style:[this.textDecorationStyle[0],(i=this.inputProps)===null||i===void 0?void 0:i.style],tabindex:this.passivelyActivated&&!this.activated?-1:(l=this.inputProps)===null||l===void 0?void 0:l.tabindex,placeholder:this.mergedPlaceholder[0],disabled:this.mergedDisabled,maxlength:u?void 0:this.maxlength,minlength:u?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[0]:this.mergedValue,readonly:this.readonly,autofocus:this.autofocus,size:this.attrSize,onBlur:this.handleInputBlur,onFocus:p=>{this.handleInputFocus(p,0)},onInput:p=>{this.handleInput(p,0)},onChange:p=>{this.handleChange(p,0)}})),this.showPlaceholder1?v("div",{class:`${a}-input__placeholder`},v("span",null,this.mergedPlaceholder[0])):null,this.autosize?v("div",{class:`${a}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&pt(h.suffix,p=>p||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?v("div",{class:`${a}-input__suffix`},[pt(h["clear-icon-placeholder"],g=>(this.clearable||g)&&v(uc,{clsPrefix:a,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>g,icon:()=>{var b,m;return(m=(b=this.$slots)["clear-icon"])===null||m===void 0?void 0:m.call(b)}})),this.internalLoadingBeforeSuffix?null:p,this.loading!==void 0?v(kv,{clsPrefix:a,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?p:null,this.showCount&&this.type!=="textarea"?v(Fv,null,{default:g=>{var b;const{renderCount:m}=this;return m?m(g):(b=h.count)===null||b===void 0?void 0:b.call(h,g)}}):null,this.mergedShowPasswordOn&&this.type==="password"?v("div",{class:`${a}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?Mo(h["password-visible-icon"],()=>[v(Tt,{clsPrefix:a},{default:()=>v(OP,null)})]):Mo(h["password-invisible-icon"],()=>[v(Tt,{clsPrefix:a},{default:()=>v(MP,null)})])):null]):null)),this.pair?v("span",{class:`${a}-input__separator`},Mo(h.separator,()=>[this.separator])):null,this.pair?v("div",{class:`${a}-input-wrapper`},v("div",{class:`${a}-input__input`},v("input",{ref:"inputEl2Ref",type:this.type,class:`${a}-input__input-el`,tabindex:this.passivelyActivated&&!this.activated?-1:void 0,placeholder:this.mergedPlaceholder[1],disabled:this.mergedDisabled,maxlength:u?void 0:this.maxlength,minlength:u?void 0:this.minlength,value:Array.isArray(this.mergedValue)?this.mergedValue[1]:void 0,readonly:this.readonly,style:this.textDecorationStyle[1],onBlur:this.handleInputBlur,onFocus:p=>{this.handleInputFocus(p,1)},onInput:p=>{this.handleInput(p,1)},onChange:p=>{this.handleChange(p,1)}}),this.showPlaceholder2?v("div",{class:`${a}-input__placeholder`},v("span",null,this.mergedPlaceholder[1])):null),pt(h.suffix,p=>(this.clearable||p)&&v("div",{class:`${a}-input__suffix`},[this.clearable&&v(uc,{clsPrefix:a,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var g;return(g=h["clear-icon"])===null||g===void 0?void 0:g.call(h)},placeholder:()=>{var g;return(g=h["clear-icon-placeholder"])===null||g===void 0?void 0:g.call(h)}}),p]))):null,this.mergedBordered?v("div",{class:`${a}-input__border`}):null,this.mergedBordered?v("div",{class:`${a}-input__state-border`}):null,this.showCount&&d==="textarea"?v(Fv,null,{default:p=>{var g;const{renderCount:b}=this;return b?b(p):(g=h.count)===null||g===void 0?void 0:g.call(h,p)}}):null)}});function oa(e){return e.type==="group"}function Iv(e){return e.type==="ignored"}function Cc(e,t){try{return!!(1+t.toString().toLowerCase().indexOf(e.trim().toLowerCase()))}catch{return!1}}function Ov(e,t){return{getIsGroup:oa,getIgnored:Iv,getKey(n){return oa(n)?n.name||n.key||"key-required":n[e]},getChildren(n){return n[t]}}}function lk(e,t,o,n){if(!t)return e;function r(i){if(!Array.isArray(i))return[];const l=[];for(const a of i)if(oa(a)){const s=r(a[n]);s.length&&l.push(Object.assign({},a,{[n]:s}))}else{if(Iv(a))continue;t(o,a)&&l.push(a)}return l}return r(e)}function ak(e,t,o){const n=new Map;return e.forEach(r=>{oa(r)?r[o].forEach(i=>{n.set(i[t],i)}):n.set(r[t],r)}),n}const sk=ui&&"loading"in document.createElement("img");function ck(e={}){var t;const{root:o=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):(t=e.threshold)!==null&&t!==void 0?t:"0"}`,options:Object.assign(Object.assign({},e),{root:(typeof o=="string"?document.querySelector(o):o)||document.documentElement})}}const wc=new WeakMap,Sc=new WeakMap,Rc=new WeakMap,dk=(e,t,o)=>{if(!e)return()=>{};const n=ck(t),{root:r}=n.options;let i;const l=wc.get(r);l?i=l:(i=new Map,wc.set(r,i));let a,s;i.has(n.hash)?(s=i.get(n.hash),s[1].has(e)||(a=s[0],s[1].add(e),a.observe(e))):(a=new IntersectionObserver(u=>{u.forEach(f=>{if(f.isIntersecting){const h=Sc.get(f.target),p=Rc.get(f.target);h&&h(),p&&(p.value=!0)}})},n.options),a.observe(e),s=[a,new Set([e])],i.set(n.hash,s));let c=!1;const d=()=>{c||(Sc.delete(e),Rc.delete(e),c=!0,s[1].has(e)&&(s[0].unobserve(e),s[1].delete(e)),s[1].size<=0&&i.delete(n.hash),i.size||wc.delete(r))};return Sc.set(e,d),Rc.set(e,o),d};function uk(e){const{borderRadius:t,avatarColor:o,cardColor:n,fontSize:r,heightTiny:i,heightSmall:l,heightMedium:a,heightLarge:s,heightHuge:c,modalColor:d,popoverColor:u}=e;return{borderRadius:t,fontSize:r,border:`2px solid ${n}`,heightTiny:i,heightSmall:l,heightMedium:a,heightLarge:s,heightHuge:c,color:Ue(n,o),colorModal:Ue(d,o),colorPopover:Ue(u,o)}}const fk={common:xt,self:uk},hk="n-avatar-group",pk=I("avatar",`
|
||
width: var(--n-merged-size);
|
||
height: var(--n-merged-size);
|
||
color: #FFF;
|
||
font-size: var(--n-font-size);
|
||
display: inline-flex;
|
||
position: relative;
|
||
overflow: hidden;
|
||
text-align: center;
|
||
border: var(--n-border);
|
||
border-radius: var(--n-border-radius);
|
||
--n-merged-color: var(--n-color);
|
||
background-color: var(--n-merged-color);
|
||
transition:
|
||
border-color .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier),
|
||
color .3s var(--n-bezier);
|
||
`,[Sl(L("&","--n-merged-color: var(--n-color-modal);")),Rl(L("&","--n-merged-color: var(--n-color-popover);")),L("img",`
|
||
width: 100%;
|
||
height: 100%;
|
||
`),H("text",`
|
||
white-space: nowrap;
|
||
display: inline-block;
|
||
position: absolute;
|
||
left: 50%;
|
||
top: 50%;
|
||
`),I("icon",`
|
||
vertical-align: bottom;
|
||
font-size: calc(var(--n-merged-size) - 6px);
|
||
`),H("text","line-height: 1.25")]),vk=Object.assign(Object.assign({},Ie.props),{size:[String,Number],src:String,circle:{type:Boolean,default:void 0},objectFit:String,round:{type:Boolean,default:void 0},bordered:{type:Boolean,default:void 0},onError:Function,fallbackSrc:String,intersectionObserverOptions:Object,lazy:Boolean,onLoad:Function,renderPlaceholder:Function,renderFallback:Function,imgProps:Object,color:String}),gk=ve({name:"Avatar",props:vk,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Je(e),n=V(!1);let r=null;const i=V(null),l=V(null),a=()=>{const{value:x}=i;if(x&&(r===null||r!==x.innerHTML)){r=x.innerHTML;const{value:w}=l;if(w){const{offsetWidth:C,offsetHeight:P}=w,{offsetWidth:T,offsetHeight:y}=x,B=.9,S=Math.min(C/T*B,P/y*B,1);x.style.transform=`translateX(-50%) translateY(-50%) scale(${S})`}}},s=$e(hk,null),c=F(()=>{const{size:x}=e;if(x)return x;const{size:w}=s||{};return w||"medium"}),d=Ie("Avatar","-avatar",pk,fk,e,t),u=$e(_v,null),f=F(()=>{if(s)return!0;const{round:x,circle:w}=e;return x!==void 0||w!==void 0?x||w:u?u.roundRef.value:!1}),h=F(()=>s?!0:e.bordered||!1),p=F(()=>{const x=c.value,w=f.value,C=h.value,{color:P}=e,{self:{borderRadius:T,fontSize:y,color:B,border:S,colorModal:E,colorPopover:j},common:{cubicBezierEaseInOut:_}}=d.value;let M;return typeof x=="number"?M=`${x}px`:M=d.value.self[me("height",x)],{"--n-font-size":y,"--n-border":C?S:"none","--n-border-radius":w?"50%":T,"--n-color":P||B,"--n-color-modal":P||E,"--n-color-popover":P||j,"--n-bezier":_,"--n-merged-size":`var(--n-avatar-size-override, ${M})`}}),g=o?gt("avatar",F(()=>{const x=c.value,w=f.value,C=h.value,{color:P}=e;let T="";return x&&(typeof x=="number"?T+=`a${x}`:T+=x[0]),w&&(T+="b"),C&&(T+="c"),P&&(T+=gi(P)),T}),p,e):void 0,b=V(!e.lazy);Bt(()=>{if(e.lazy&&e.intersectionObserverOptions){let x;const w=Mt(()=>{x==null||x(),x=void 0,e.lazy&&(x=dk(l.value,e.intersectionObserverOptions,b))});Ft(()=>{w(),x==null||x()})}}),st(()=>{var x;return e.src||((x=e.imgProps)===null||x===void 0?void 0:x.src)},()=>{n.value=!1});const m=V(!e.lazy);return{textRef:i,selfRef:l,mergedRoundRef:f,mergedClsPrefix:t,fitTextTransform:a,cssVars:o?void 0:p,themeClass:g==null?void 0:g.themeClass,onRender:g==null?void 0:g.onRender,hasLoadError:n,shouldStartLoading:b,loaded:m,mergedOnError:x=>{if(!b.value)return;n.value=!0;const{onError:w,imgProps:{onError:C}={}}=e;w==null||w(x),C==null||C(x)},mergedOnLoad:x=>{const{onLoad:w,imgProps:{onLoad:C}={}}=e;w==null||w(x),C==null||C(x),m.value=!0}}},render(){var e,t;const{$slots:o,src:n,mergedClsPrefix:r,lazy:i,onRender:l,loaded:a,hasLoadError:s,imgProps:c={}}=this;l==null||l();let d;const u=!a&&!s&&(this.renderPlaceholder?this.renderPlaceholder():(t=(e=this.$slots).placeholder)===null||t===void 0?void 0:t.call(e));return this.hasLoadError?d=this.renderFallback?this.renderFallback():Mo(o.fallback,()=>[v("img",{src:this.fallbackSrc,style:{objectFit:this.objectFit}})]):d=pt(o.default,f=>{if(f)return v(wn,{onResize:this.fitTextTransform},{default:()=>v("span",{ref:"textRef",class:`${r}-avatar__text`},f)});if(n||c.src){const h=this.src||c.src;return v("img",Object.assign(Object.assign({},c),{loading:sk&&!this.intersectionObserverOptions&&i?"lazy":"eager",src:i&&this.intersectionObserverOptions?this.shouldStartLoading?h:void 0:h,"data-image-src":h,onLoad:this.mergedOnLoad,onError:this.mergedOnError,style:[c.style||"",{objectFit:this.objectFit},u?{height:"0",width:"0",visibility:"hidden",position:"absolute"}:""]}))}}),v("span",{ref:"selfRef",class:[`${r}-avatar`,this.themeClass],style:this.cssVars},d,i&&u)}});function nr(e){return Ue(e,[255,255,255,.16])}function na(e){return Ue(e,[0,0,0,.12])}const mk="n-button-group",bk={paddingTiny:"0 6px",paddingSmall:"0 10px",paddingMedium:"0 14px",paddingLarge:"0 18px",paddingRoundTiny:"0 10px",paddingRoundSmall:"0 14px",paddingRoundMedium:"0 18px",paddingRoundLarge:"0 22px",iconMarginTiny:"6px",iconMarginSmall:"6px",iconMarginMedium:"6px",iconMarginLarge:"6px",iconSizeTiny:"14px",iconSizeSmall:"18px",iconSizeMedium:"18px",iconSizeLarge:"20px",rippleDuration:".6s"};function xk(e){const{heightTiny:t,heightSmall:o,heightMedium:n,heightLarge:r,borderRadius:i,fontSizeTiny:l,fontSizeSmall:a,fontSizeMedium:s,fontSizeLarge:c,opacityDisabled:d,textColor2:u,textColor3:f,primaryColorHover:h,primaryColorPressed:p,borderColor:g,primaryColor:b,baseColor:m,infoColor:x,infoColorHover:w,infoColorPressed:C,successColor:P,successColorHover:T,successColorPressed:y,warningColor:B,warningColorHover:S,warningColorPressed:E,errorColor:j,errorColorHover:_,errorColorPressed:M,fontWeight:W,buttonColor2:D,buttonColor2Hover:Z,buttonColor2Pressed:U,fontWeightStrong:J}=e;return Object.assign(Object.assign({},bk),{heightTiny:t,heightSmall:o,heightMedium:n,heightLarge:r,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:l,fontSizeSmall:a,fontSizeMedium:s,fontSizeLarge:c,opacityDisabled:d,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:D,colorSecondaryHover:Z,colorSecondaryPressed:U,colorTertiary:D,colorTertiaryHover:Z,colorTertiaryPressed:U,colorQuaternary:"#0000",colorQuaternaryHover:Z,colorQuaternaryPressed:U,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:u,textColorTertiary:f,textColorHover:h,textColorPressed:p,textColorFocus:h,textColorDisabled:u,textColorText:u,textColorTextHover:h,textColorTextPressed:p,textColorTextFocus:h,textColorTextDisabled:u,textColorGhost:u,textColorGhostHover:h,textColorGhostPressed:p,textColorGhostFocus:h,textColorGhostDisabled:u,border:`1px solid ${g}`,borderHover:`1px solid ${h}`,borderPressed:`1px solid ${p}`,borderFocus:`1px solid ${h}`,borderDisabled:`1px solid ${g}`,rippleColor:b,colorPrimary:b,colorHoverPrimary:h,colorPressedPrimary:p,colorFocusPrimary:h,colorDisabledPrimary:b,textColorPrimary:m,textColorHoverPrimary:m,textColorPressedPrimary:m,textColorFocusPrimary:m,textColorDisabledPrimary:m,textColorTextPrimary:b,textColorTextHoverPrimary:h,textColorTextPressedPrimary:p,textColorTextFocusPrimary:h,textColorTextDisabledPrimary:u,textColorGhostPrimary:b,textColorGhostHoverPrimary:h,textColorGhostPressedPrimary:p,textColorGhostFocusPrimary:h,textColorGhostDisabledPrimary:b,borderPrimary:`1px solid ${b}`,borderHoverPrimary:`1px solid ${h}`,borderPressedPrimary:`1px solid ${p}`,borderFocusPrimary:`1px solid ${h}`,borderDisabledPrimary:`1px solid ${b}`,rippleColorPrimary:b,colorInfo:x,colorHoverInfo:w,colorPressedInfo:C,colorFocusInfo:w,colorDisabledInfo:x,textColorInfo:m,textColorHoverInfo:m,textColorPressedInfo:m,textColorFocusInfo:m,textColorDisabledInfo:m,textColorTextInfo:x,textColorTextHoverInfo:w,textColorTextPressedInfo:C,textColorTextFocusInfo:w,textColorTextDisabledInfo:u,textColorGhostInfo:x,textColorGhostHoverInfo:w,textColorGhostPressedInfo:C,textColorGhostFocusInfo:w,textColorGhostDisabledInfo:x,borderInfo:`1px solid ${x}`,borderHoverInfo:`1px solid ${w}`,borderPressedInfo:`1px solid ${C}`,borderFocusInfo:`1px solid ${w}`,borderDisabledInfo:`1px solid ${x}`,rippleColorInfo:x,colorSuccess:P,colorHoverSuccess:T,colorPressedSuccess:y,colorFocusSuccess:T,colorDisabledSuccess:P,textColorSuccess:m,textColorHoverSuccess:m,textColorPressedSuccess:m,textColorFocusSuccess:m,textColorDisabledSuccess:m,textColorTextSuccess:P,textColorTextHoverSuccess:T,textColorTextPressedSuccess:y,textColorTextFocusSuccess:T,textColorTextDisabledSuccess:u,textColorGhostSuccess:P,textColorGhostHoverSuccess:T,textColorGhostPressedSuccess:y,textColorGhostFocusSuccess:T,textColorGhostDisabledSuccess:P,borderSuccess:`1px solid ${P}`,borderHoverSuccess:`1px solid ${T}`,borderPressedSuccess:`1px solid ${y}`,borderFocusSuccess:`1px solid ${T}`,borderDisabledSuccess:`1px solid ${P}`,rippleColorSuccess:P,colorWarning:B,colorHoverWarning:S,colorPressedWarning:E,colorFocusWarning:S,colorDisabledWarning:B,textColorWarning:m,textColorHoverWarning:m,textColorPressedWarning:m,textColorFocusWarning:m,textColorDisabledWarning:m,textColorTextWarning:B,textColorTextHoverWarning:S,textColorTextPressedWarning:E,textColorTextFocusWarning:S,textColorTextDisabledWarning:u,textColorGhostWarning:B,textColorGhostHoverWarning:S,textColorGhostPressedWarning:E,textColorGhostFocusWarning:S,textColorGhostDisabledWarning:B,borderWarning:`1px solid ${B}`,borderHoverWarning:`1px solid ${S}`,borderPressedWarning:`1px solid ${E}`,borderFocusWarning:`1px solid ${S}`,borderDisabledWarning:`1px solid ${B}`,rippleColorWarning:B,colorError:j,colorHoverError:_,colorPressedError:M,colorFocusError:_,colorDisabledError:j,textColorError:m,textColorHoverError:m,textColorPressedError:m,textColorFocusError:m,textColorDisabledError:m,textColorTextError:j,textColorTextHoverError:_,textColorTextPressedError:M,textColorTextFocusError:_,textColorTextDisabledError:u,textColorGhostError:j,textColorGhostHoverError:_,textColorGhostPressedError:M,textColorGhostFocusError:_,textColorGhostDisabledError:j,borderError:`1px solid ${j}`,borderHoverError:`1px solid ${_}`,borderPressedError:`1px solid ${M}`,borderFocusError:`1px solid ${_}`,borderDisabledError:`1px solid ${j}`,rippleColorError:j,waveOpacity:"0.6",fontWeight:W,fontWeightStrong:J})}const Mv={name:"Button",common:xt,self:xk},yk=L([I("button",`
|
||
margin: 0;
|
||
font-weight: var(--n-font-weight);
|
||
line-height: 1;
|
||
font-family: inherit;
|
||
padding: var(--n-padding);
|
||
height: var(--n-height);
|
||
font-size: var(--n-font-size);
|
||
border-radius: var(--n-border-radius);
|
||
color: var(--n-text-color);
|
||
background-color: var(--n-color);
|
||
width: var(--n-width);
|
||
white-space: nowrap;
|
||
outline: none;
|
||
position: relative;
|
||
z-index: auto;
|
||
border: none;
|
||
display: inline-flex;
|
||
flex-wrap: nowrap;
|
||
flex-shrink: 0;
|
||
align-items: center;
|
||
justify-content: center;
|
||
user-select: none;
|
||
-webkit-user-select: none;
|
||
text-align: center;
|
||
cursor: pointer;
|
||
text-decoration: none;
|
||
transition:
|
||
color .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier),
|
||
opacity .3s var(--n-bezier),
|
||
border-color .3s var(--n-bezier);
|
||
`,[Y("color",[H("border",{borderColor:"var(--n-border-color)"}),Y("disabled",[H("border",{borderColor:"var(--n-border-color-disabled)"})]),Ye("disabled",[L("&:focus",[H("state-border",{borderColor:"var(--n-border-color-focus)"})]),L("&:hover",[H("state-border",{borderColor:"var(--n-border-color-hover)"})]),L("&:active",[H("state-border",{borderColor:"var(--n-border-color-pressed)"})]),Y("pressed",[H("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),Y("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[H("border",{border:"var(--n-border-disabled)"})]),Ye("disabled",[L("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[H("state-border",{border:"var(--n-border-focus)"})]),L("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[H("state-border",{border:"var(--n-border-hover)"})]),L("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[H("state-border",{border:"var(--n-border-pressed)"})]),Y("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[H("state-border",{border:"var(--n-border-pressed)"})])]),Y("loading","cursor: wait;"),I("base-wave",`
|
||
pointer-events: none;
|
||
top: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
left: 0;
|
||
animation-iteration-count: 1;
|
||
animation-duration: var(--n-ripple-duration);
|
||
animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out);
|
||
`,[Y("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),ui&&"MozBoxSizing"in document.createElement("div").style?L("&::moz-focus-inner",{border:0}):null,H("border, state-border",`
|
||
position: absolute;
|
||
left: 0;
|
||
top: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
border-radius: inherit;
|
||
transition: border-color .3s var(--n-bezier);
|
||
pointer-events: none;
|
||
`),H("border",`
|
||
border: var(--n-border);
|
||
`),H("state-border",`
|
||
border: var(--n-border);
|
||
border-color: #0000;
|
||
z-index: 1;
|
||
`),H("icon",`
|
||
margin: var(--n-icon-margin);
|
||
margin-left: 0;
|
||
height: var(--n-icon-size);
|
||
width: var(--n-icon-size);
|
||
max-width: var(--n-icon-size);
|
||
font-size: var(--n-icon-size);
|
||
position: relative;
|
||
flex-shrink: 0;
|
||
`,[I("icon-slot",`
|
||
height: var(--n-icon-size);
|
||
width: var(--n-icon-size);
|
||
position: absolute;
|
||
left: 0;
|
||
top: 50%;
|
||
transform: translateY(-50%);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
`,[Do({top:"50%",originalTransform:"translateY(-50%)"})]),K_()]),H("content",`
|
||
display: flex;
|
||
align-items: center;
|
||
flex-wrap: nowrap;
|
||
min-width: 0;
|
||
`,[L("~",[H("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),Y("block",`
|
||
display: flex;
|
||
width: 100%;
|
||
`),Y("dashed",[H("border, state-border",{borderStyle:"dashed !important"})]),Y("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),L("@keyframes button-wave-spread",{from:{boxShadow:"0 0 0.5px 0 var(--n-ripple-color)"},to:{boxShadow:"0 0 0.5px 4.5px var(--n-ripple-color)"}}),L("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),Ck=Object.assign(Object.assign({},Ie.props),{color:String,textColor:String,text:Boolean,block:Boolean,loading:Boolean,disabled:Boolean,circle:Boolean,size:String,ghost:Boolean,round:Boolean,secondary:Boolean,tertiary:Boolean,quaternary:Boolean,strong:Boolean,focusable:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},tag:{type:String,default:"button"},type:{type:String,default:"default"},dashed:Boolean,renderIcon:Function,iconPlacement:{type:String,default:"left"},attrType:{type:String,default:"button"},bordered:{type:Boolean,default:!0},onClick:[Function,Array],nativeFocusBehavior:{type:Boolean,default:!Tv}}),ra=ve({name:"Button",props:Ck,slots:Object,setup(e){const t=V(null),o=V(null),n=V(!1),r=Ze(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=$e(mk,{}),{mergedSizeRef:l}=qn({},{defaultSize:"medium",mergedSize:C=>{const{size:P}=e;if(P)return P;const{size:T}=i;if(T)return T;const{mergedSize:y}=C||{};return y?y.value:"medium"}}),a=F(()=>e.focusable&&!e.disabled),s=C=>{var P;a.value||C.preventDefault(),!e.nativeFocusBehavior&&(C.preventDefault(),!e.disabled&&a.value&&((P=t.value)===null||P===void 0||P.focus({preventScroll:!0})))},c=C=>{var P;if(!e.disabled&&!e.loading){const{onClick:T}=e;T&&ge(T,C),e.text||(P=o.value)===null||P===void 0||P.play()}},d=C=>{switch(C.key){case"Enter":if(!e.keyboard)return;n.value=!1}},u=C=>{switch(C.key){case"Enter":if(!e.keyboard||e.loading){C.preventDefault();return}n.value=!0}},f=()=>{n.value=!1},{inlineThemeDisabled:h,mergedClsPrefixRef:p,mergedRtlRef:g}=Je(e),b=Ie("Button","-button",yk,Mv,e,p),m=qt("Button",g,p),x=F(()=>{const C=b.value,{common:{cubicBezierEaseInOut:P,cubicBezierEaseOut:T},self:y}=C,{rippleDuration:B,opacityDisabled:S,fontWeight:E,fontWeightStrong:j}=y,_=l.value,{dashed:M,type:W,ghost:D,text:Z,color:U,round:J,circle:pe,textColor:fe,secondary:N,tertiary:O,quaternary:A,strong:Q}=e,he={"--n-font-weight":Q?j:E};let we={"--n-color":"initial","--n-color-hover":"initial","--n-color-pressed":"initial","--n-color-focus":"initial","--n-color-disabled":"initial","--n-ripple-color":"initial","--n-text-color":"initial","--n-text-color-hover":"initial","--n-text-color-pressed":"initial","--n-text-color-focus":"initial","--n-text-color-disabled":"initial"};const X=W==="tertiary",de=W==="default",R=X?"default":W;if(Z){const te=fe||U;we={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":"#0000","--n-text-color":te||y[me("textColorText",R)],"--n-text-color-hover":te?nr(te):y[me("textColorTextHover",R)],"--n-text-color-pressed":te?na(te):y[me("textColorTextPressed",R)],"--n-text-color-focus":te?nr(te):y[me("textColorTextHover",R)],"--n-text-color-disabled":te||y[me("textColorTextDisabled",R)]}}else if(D||M){const te=fe||U;we={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":U||y[me("rippleColor",R)],"--n-text-color":te||y[me("textColorGhost",R)],"--n-text-color-hover":te?nr(te):y[me("textColorGhostHover",R)],"--n-text-color-pressed":te?na(te):y[me("textColorGhostPressed",R)],"--n-text-color-focus":te?nr(te):y[me("textColorGhostHover",R)],"--n-text-color-disabled":te||y[me("textColorGhostDisabled",R)]}}else if(N){const te=de?y.textColor:X?y.textColorTertiary:y[me("color",R)],oe=U||te,ye=W!=="default"&&W!=="tertiary";we={"--n-color":ye?Le(oe,{alpha:Number(y.colorOpacitySecondary)}):y.colorSecondary,"--n-color-hover":ye?Le(oe,{alpha:Number(y.colorOpacitySecondaryHover)}):y.colorSecondaryHover,"--n-color-pressed":ye?Le(oe,{alpha:Number(y.colorOpacitySecondaryPressed)}):y.colorSecondaryPressed,"--n-color-focus":ye?Le(oe,{alpha:Number(y.colorOpacitySecondaryHover)}):y.colorSecondaryHover,"--n-color-disabled":y.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":oe,"--n-text-color-hover":oe,"--n-text-color-pressed":oe,"--n-text-color-focus":oe,"--n-text-color-disabled":oe}}else if(O||A){const te=de?y.textColor:X?y.textColorTertiary:y[me("color",R)],oe=U||te;O?(we["--n-color"]=y.colorTertiary,we["--n-color-hover"]=y.colorTertiaryHover,we["--n-color-pressed"]=y.colorTertiaryPressed,we["--n-color-focus"]=y.colorSecondaryHover,we["--n-color-disabled"]=y.colorTertiary):(we["--n-color"]=y.colorQuaternary,we["--n-color-hover"]=y.colorQuaternaryHover,we["--n-color-pressed"]=y.colorQuaternaryPressed,we["--n-color-focus"]=y.colorQuaternaryHover,we["--n-color-disabled"]=y.colorQuaternary),we["--n-ripple-color"]="#0000",we["--n-text-color"]=oe,we["--n-text-color-hover"]=oe,we["--n-text-color-pressed"]=oe,we["--n-text-color-focus"]=oe,we["--n-text-color-disabled"]=oe}else we={"--n-color":U||y[me("color",R)],"--n-color-hover":U?nr(U):y[me("colorHover",R)],"--n-color-pressed":U?na(U):y[me("colorPressed",R)],"--n-color-focus":U?nr(U):y[me("colorFocus",R)],"--n-color-disabled":U||y[me("colorDisabled",R)],"--n-ripple-color":U||y[me("rippleColor",R)],"--n-text-color":fe||(U?y.textColorPrimary:X?y.textColorTertiary:y[me("textColor",R)]),"--n-text-color-hover":fe||(U?y.textColorHoverPrimary:y[me("textColorHover",R)]),"--n-text-color-pressed":fe||(U?y.textColorPressedPrimary:y[me("textColorPressed",R)]),"--n-text-color-focus":fe||(U?y.textColorFocusPrimary:y[me("textColorFocus",R)]),"--n-text-color-disabled":fe||(U?y.textColorDisabledPrimary:y[me("textColorDisabled",R)])};let ae={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};Z?ae={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:ae={"--n-border":y[me("border",R)],"--n-border-hover":y[me("borderHover",R)],"--n-border-pressed":y[me("borderPressed",R)],"--n-border-focus":y[me("borderFocus",R)],"--n-border-disabled":y[me("borderDisabled",R)]};const{[me("height",_)]:_e,[me("fontSize",_)]:k,[me("padding",_)]:$,[me("paddingRound",_)]:K,[me("iconSize",_)]:ie,[me("borderRadius",_)]:le,[me("iconMargin",_)]:re,waveOpacity:xe}=y,ne={"--n-width":pe&&!Z?_e:"initial","--n-height":Z?"initial":_e,"--n-font-size":k,"--n-padding":pe||Z?"initial":J?K:$,"--n-icon-size":ie,"--n-icon-margin":re,"--n-border-radius":Z?"initial":pe||J?_e:le};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":P,"--n-bezier-ease-out":T,"--n-ripple-duration":B,"--n-opacity-disabled":S,"--n-wave-opacity":xe},he),we),ae),ne)}),w=h?gt("button",F(()=>{let C="";const{dashed:P,type:T,ghost:y,text:B,color:S,round:E,circle:j,textColor:_,secondary:M,tertiary:W,quaternary:D,strong:Z}=e;P&&(C+="a"),y&&(C+="b"),B&&(C+="c"),E&&(C+="d"),j&&(C+="e"),M&&(C+="f"),W&&(C+="g"),D&&(C+="h"),Z&&(C+="i"),S&&(C+=`j${gi(S)}`),_&&(C+=`k${gi(_)}`);const{value:U}=l;return C+=`l${U[0]}`,C+=`m${T[0]}`,C}),x,e):void 0;return{selfElRef:t,waveElRef:o,mergedClsPrefix:p,mergedFocusable:a,mergedSize:l,showBorder:r,enterPressed:n,rtlEnabled:m,handleMousedown:s,handleKeydown:u,handleBlur:f,handleKeyup:d,handleClick:c,customColorCssVars:F(()=>{const{color:C}=e;if(!C)return null;const P=nr(C);return{"--n-border-color":C,"--n-border-color-hover":P,"--n-border-color-pressed":na(C),"--n-border-color-focus":P,"--n-border-color-disabled":C}}),cssVars:h?void 0:x,themeClass:w==null?void 0:w.themeClass,onRender:w==null?void 0:w.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:o}=this;o==null||o();const n=pt(this.$slots.default,r=>r&&v("span",{class:`${e}-button__content`},r));return v(t,{ref:"selfElRef",class:[this.themeClass,`${e}-button`,`${e}-button--${this.type}-type`,`${e}-button--${this.mergedSize}-type`,this.rtlEnabled&&`${e}-button--rtl`,this.disabled&&`${e}-button--disabled`,this.block&&`${e}-button--block`,this.enterPressed&&`${e}-button--pressed`,!this.text&&this.dashed&&`${e}-button--dashed`,this.color&&`${e}-button--color`,this.secondary&&`${e}-button--secondary`,this.loading&&`${e}-button--loading`,this.ghost&&`${e}-button--ghost`],tabindex:this.mergedFocusable?0:-1,type:this.attrType,style:this.cssVars,disabled:this.disabled,onClick:this.handleClick,onBlur:this.handleBlur,onMousedown:this.handleMousedown,onKeyup:this.handleKeyup,onKeydown:this.handleKeydown},this.iconPlacement==="right"&&n,v(cv,{width:!0},{default:()=>pt(this.$slots.icon,r=>(this.loading||this.renderIcon||r)&&v("span",{class:`${e}-button__icon`,style:{margin:Bs(this.$slots.default)?"0":""}},v(_i,null,{default:()=>this.loading?v(ki,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):v("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():r)})))}),this.iconPlacement==="left"&&n,this.text?null:v(q_,{ref:"waveElRef",clsPrefix:e}),this.showBorder?v("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?v("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),wk={paddingSmall:"12px 16px 12px",paddingMedium:"19px 24px 20px",paddingLarge:"23px 32px 24px",paddingHuge:"27px 40px 28px",titleFontSizeSmall:"16px",titleFontSizeMedium:"18px",titleFontSizeLarge:"18px",titleFontSizeHuge:"18px",closeIconSize:"18px",closeSize:"22px"};function Sk(e){const{primaryColor:t,borderRadius:o,lineHeight:n,fontSize:r,cardColor:i,textColor2:l,textColor1:a,dividerColor:s,fontWeightStrong:c,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,closeColorHover:h,closeColorPressed:p,modalColor:g,boxShadow1:b,popoverColor:m,actionColor:x}=e;return Object.assign(Object.assign({},wk),{lineHeight:n,color:i,colorModal:g,colorPopover:m,colorTarget:t,colorEmbedded:x,colorEmbeddedModal:x,colorEmbeddedPopover:x,textColor:l,titleTextColor:a,borderColor:s,actionColor:x,titleFontWeight:c,closeColorHover:h,closeColorPressed:p,closeBorderRadius:o,closeIconColor:d,closeIconColorHover:u,closeIconColorPressed:f,fontSizeSmall:r,fontSizeMedium:r,fontSizeLarge:r,fontSizeHuge:r,boxShadow:b,borderRadius:o})}const Rk={common:xt,self:Sk},Pk=L([I("card",`
|
||
font-size: var(--n-font-size);
|
||
line-height: var(--n-line-height);
|
||
display: flex;
|
||
flex-direction: column;
|
||
width: 100%;
|
||
box-sizing: border-box;
|
||
position: relative;
|
||
border-radius: var(--n-border-radius);
|
||
background-color: var(--n-color);
|
||
color: var(--n-text-color);
|
||
word-break: break-word;
|
||
transition:
|
||
color .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier),
|
||
box-shadow .3s var(--n-bezier),
|
||
border-color .3s var(--n-bezier);
|
||
`,[Zx({background:"var(--n-color-modal)"}),Y("hoverable",[L("&:hover","box-shadow: var(--n-box-shadow);")]),Y("content-segmented",[L(">",[H("content",{paddingTop:"var(--n-padding-bottom)"})])]),Y("content-soft-segmented",[L(">",[H("content",`
|
||
margin: 0 var(--n-padding-left);
|
||
padding: var(--n-padding-bottom) 0;
|
||
`)])]),Y("footer-segmented",[L(">",[H("footer",{paddingTop:"var(--n-padding-bottom)"})])]),Y("footer-soft-segmented",[L(">",[H("footer",`
|
||
padding: var(--n-padding-bottom) 0;
|
||
margin: 0 var(--n-padding-left);
|
||
`)])]),L(">",[I("card-header",`
|
||
box-sizing: border-box;
|
||
display: flex;
|
||
align-items: center;
|
||
font-size: var(--n-title-font-size);
|
||
padding:
|
||
var(--n-padding-top)
|
||
var(--n-padding-left)
|
||
var(--n-padding-bottom)
|
||
var(--n-padding-left);
|
||
`,[H("main",`
|
||
font-weight: var(--n-title-font-weight);
|
||
transition: color .3s var(--n-bezier);
|
||
flex: 1;
|
||
min-width: 0;
|
||
color: var(--n-title-text-color);
|
||
`),H("extra",`
|
||
display: flex;
|
||
align-items: center;
|
||
font-size: var(--n-font-size);
|
||
font-weight: 400;
|
||
transition: color .3s var(--n-bezier);
|
||
color: var(--n-text-color);
|
||
`),H("close",`
|
||
margin: 0 0 0 8px;
|
||
transition:
|
||
background-color .3s var(--n-bezier),
|
||
color .3s var(--n-bezier);
|
||
`)]),H("action",`
|
||
box-sizing: border-box;
|
||
transition:
|
||
background-color .3s var(--n-bezier),
|
||
border-color .3s var(--n-bezier);
|
||
background-clip: padding-box;
|
||
background-color: var(--n-action-color);
|
||
`),H("content","flex: 1; min-width: 0;"),H("content, footer",`
|
||
box-sizing: border-box;
|
||
padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left);
|
||
font-size: var(--n-font-size);
|
||
`,[L("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),H("action",`
|
||
background-color: var(--n-action-color);
|
||
padding: var(--n-padding-bottom) var(--n-padding-left);
|
||
border-bottom-left-radius: var(--n-border-radius);
|
||
border-bottom-right-radius: var(--n-border-radius);
|
||
`)]),I("card-cover",`
|
||
overflow: hidden;
|
||
width: 100%;
|
||
border-radius: var(--n-border-radius) var(--n-border-radius) 0 0;
|
||
`,[L("img",`
|
||
display: block;
|
||
width: 100%;
|
||
`)]),Y("bordered",`
|
||
border: 1px solid var(--n-border-color);
|
||
`,[L("&:target","border-color: var(--n-color-target);")]),Y("action-segmented",[L(">",[H("action",[L("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),Y("content-segmented, content-soft-segmented",[L(">",[H("content",{transition:"border-color 0.3s var(--n-bezier)"},[L("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),Y("footer-segmented, footer-soft-segmented",[L(">",[H("footer",{transition:"border-color 0.3s var(--n-bezier)"},[L("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),Y("embedded",`
|
||
background-color: var(--n-color-embedded);
|
||
`)]),Sl(I("card",`
|
||
background: var(--n-color-modal);
|
||
`,[Y("embedded",`
|
||
background-color: var(--n-color-embedded-modal);
|
||
`)])),Rl(I("card",`
|
||
background: var(--n-color-popover);
|
||
`,[Y("embedded",`
|
||
background-color: var(--n-color-embedded-popover);
|
||
`)]))]),_k={title:[String,Function],contentClass:String,contentStyle:[Object,String],headerClass:String,headerStyle:[Object,String],headerExtraClass:String,headerExtraStyle:[Object,String],footerClass:String,footerStyle:[Object,String],embedded:Boolean,segmented:{type:[Boolean,Object],default:!1},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},closable:Boolean,hoverable:Boolean,role:String,onClose:[Function,Array],tag:{type:String,default:"div"},cover:Function,content:[String,Function],footer:Function,action:Function,headerExtra:Function,closeFocusable:Boolean},kk=Object.assign(Object.assign({},Ie.props),_k),zk=ve({name:"Card",props:kk,slots:Object,setup(e){const t=()=>{const{onClose:c}=e;c&&ge(c)},{inlineThemeDisabled:o,mergedClsPrefixRef:n,mergedRtlRef:r}=Je(e),i=Ie("Card","-card",Pk,Rk,e,n),l=qt("Card",r,n),a=F(()=>{const{size:c}=e,{self:{color:d,colorModal:u,colorTarget:f,textColor:h,titleTextColor:p,titleFontWeight:g,borderColor:b,actionColor:m,borderRadius:x,lineHeight:w,closeIconColor:C,closeIconColorHover:P,closeIconColorPressed:T,closeColorHover:y,closeColorPressed:B,closeBorderRadius:S,closeIconSize:E,closeSize:j,boxShadow:_,colorPopover:M,colorEmbedded:W,colorEmbeddedModal:D,colorEmbeddedPopover:Z,[me("padding",c)]:U,[me("fontSize",c)]:J,[me("titleFontSize",c)]:pe},common:{cubicBezierEaseInOut:fe}}=i.value,{top:N,left:O,bottom:A}=no(U);return{"--n-bezier":fe,"--n-border-radius":x,"--n-color":d,"--n-color-modal":u,"--n-color-popover":M,"--n-color-embedded":W,"--n-color-embedded-modal":D,"--n-color-embedded-popover":Z,"--n-color-target":f,"--n-text-color":h,"--n-line-height":w,"--n-action-color":m,"--n-title-text-color":p,"--n-title-font-weight":g,"--n-close-icon-color":C,"--n-close-icon-color-hover":P,"--n-close-icon-color-pressed":T,"--n-close-color-hover":y,"--n-close-color-pressed":B,"--n-border-color":b,"--n-box-shadow":_,"--n-padding-top":N,"--n-padding-bottom":A,"--n-padding-left":O,"--n-font-size":J,"--n-title-font-size":pe,"--n-close-size":j,"--n-close-icon-size":E,"--n-close-border-radius":S}}),s=o?gt("card",F(()=>e.size[0]),a,e):void 0;return{rtlEnabled:l,mergedClsPrefix:n,mergedTheme:i,handleCloseClick:t,cssVars:o?void 0:a,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{segmented:e,bordered:t,hoverable:o,mergedClsPrefix:n,rtlEnabled:r,onRender:i,embedded:l,tag:a,$slots:s}=this;return i==null||i(),v(a,{class:[`${n}-card`,this.themeClass,l&&`${n}-card--embedded`,{[`${n}-card--rtl`]:r,[`${n}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${n}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${n}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${n}-card--bordered`]:t,[`${n}-card--hoverable`]:o}],style:this.cssVars,role:this.role},pt(s.cover,c=>{const d=this.cover?Co([this.cover()]):c;return d&&v("div",{class:`${n}-card-cover`,role:"none"},d)}),pt(s.header,c=>{const{title:d}=this,u=d?Co(typeof d=="function"?[d()]:[d]):c;return u||this.closable?v("div",{class:[`${n}-card-header`,this.headerClass],style:this.headerStyle,role:"heading"},v("div",{class:`${n}-card-header__main`,role:"heading"},u),pt(s["header-extra"],f=>{const h=this.headerExtra?Co([this.headerExtra()]):f;return h&&v("div",{class:[`${n}-card-header__extra`,this.headerExtraClass],style:this.headerExtraStyle},h)}),this.closable&&v(sv,{clsPrefix:n,class:`${n}-card-header__close`,onClick:this.handleCloseClick,focusable:this.closeFocusable,absolute:!0})):null}),pt(s.default,c=>{const{content:d}=this,u=d?Co(typeof d=="function"?[d()]:[d]):c;return u&&v("div",{class:[`${n}-card__content`,this.contentClass],style:this.contentStyle,role:"none"},u)}),pt(s.footer,c=>{const d=this.footer?Co([this.footer()]):c;return d&&v("div",{class:[`${n}-card__footer`,this.footerClass],style:this.footerStyle,role:"none"},d)}),pt(s.action,c=>{const d=this.action?Co([this.action()]):c;return d&&v("div",{class:`${n}-card__action`,role:"none"},d)}))}}),Tk={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};function $k(e){const{baseColor:t,inputColorDisabled:o,cardColor:n,modalColor:r,popoverColor:i,textColorDisabled:l,borderColor:a,primaryColor:s,textColor2:c,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:f,borderRadiusSmall:h,lineHeight:p}=e;return Object.assign(Object.assign({},Tk),{labelLineHeight:p,fontSizeSmall:d,fontSizeMedium:u,fontSizeLarge:f,borderRadius:h,color:t,colorChecked:s,colorDisabled:o,colorDisabledChecked:o,colorTableHeader:n,colorTableHeaderModal:r,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:l,checkMarkColorDisabledChecked:l,border:`1px solid ${a}`,borderDisabled:`1px solid ${a}`,borderDisabledChecked:`1px solid ${a}`,borderChecked:`1px solid ${s}`,borderFocus:`1px solid ${s}`,boxShadowFocus:`0 0 0 2px ${Le(s,{alpha:.3})}`,textColor:c,textColorDisabled:l})}const Bv={name:"Checkbox",common:xt,self:$k},Hv="n-checkbox-group",Ek=ve({name:"CheckboxGroup",props:{min:Number,max:Number,size:String,value:Array,defaultValue:{type:Array,default:null},disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onChange:[Function,Array]},setup(e){const{mergedClsPrefixRef:t}=Je(e),o=qn(e),{mergedSizeRef:n,mergedDisabledRef:r}=o,i=V(e.defaultValue),l=F(()=>e.value),a=It(l,i),s=F(()=>{var u;return((u=a.value)===null||u===void 0?void 0:u.length)||0}),c=F(()=>Array.isArray(a.value)?new Set(a.value):new Set);function d(u,f){const{nTriggerFormInput:h,nTriggerFormChange:p}=o,{onChange:g,"onUpdate:value":b,onUpdateValue:m}=e;if(Array.isArray(a.value)){const x=Array.from(a.value),w=x.findIndex(C=>C===f);u?~w||(x.push(f),m&&ge(m,x,{actionType:"check",value:f}),b&&ge(b,x,{actionType:"check",value:f}),h(),p(),i.value=x,g&&ge(g,x)):~w&&(x.splice(w,1),m&&ge(m,x,{actionType:"uncheck",value:f}),b&&ge(b,x,{actionType:"uncheck",value:f}),g&&ge(g,x),i.value=x,h(),p())}else u?(m&&ge(m,[f],{actionType:"check",value:f}),b&&ge(b,[f],{actionType:"check",value:f}),g&&ge(g,[f]),i.value=[f],h(),p()):(m&&ge(m,[],{actionType:"uncheck",value:f}),b&&ge(b,[],{actionType:"uncheck",value:f}),g&&ge(g,[]),i.value=[],h(),p())}return tt(Hv,{checkedCountRef:s,maxRef:Se(e,"max"),minRef:Se(e,"min"),valueSetRef:c,disabledRef:r,mergedSizeRef:n,toggleCheckbox:d}),{mergedClsPrefix:t}},render(){return v("div",{class:`${this.mergedClsPrefix}-checkbox-group`,role:"group"},this.$slots)}}),Fk=()=>v("svg",{viewBox:"0 0 64 64",class:"check-icon"},v("path",{d:"M50.42,16.76L22.34,39.45l-8.1-11.46c-1.12-1.58-3.3-1.96-4.88-0.84c-1.58,1.12-1.95,3.3-0.84,4.88l10.26,14.51 c0.56,0.79,1.42,1.31,2.38,1.45c0.16,0.02,0.32,0.03,0.48,0.03c0.8,0,1.57-0.27,2.2-0.78l30.99-25.03c1.5-1.21,1.74-3.42,0.52-4.92 C54.13,15.78,51.93,15.55,50.42,16.76z"})),Ak=()=>v("svg",{viewBox:"0 0 100 100",class:"line-icon"},v("path",{d:"M80.2,55.5H21.4c-2.8,0-5.1-2.5-5.1-5.5l0,0c0-3,2.3-5.5,5.1-5.5h58.7c2.8,0,5.1,2.5,5.1,5.5l0,0C85.2,53.1,82.9,55.5,80.2,55.5z"})),Ik=L([I("checkbox",`
|
||
font-size: var(--n-font-size);
|
||
outline: none;
|
||
cursor: pointer;
|
||
display: inline-flex;
|
||
flex-wrap: nowrap;
|
||
align-items: flex-start;
|
||
word-break: break-word;
|
||
line-height: var(--n-size);
|
||
--n-merged-color-table: var(--n-color-table);
|
||
`,[Y("show-label","line-height: var(--n-label-line-height);"),L("&:hover",[I("checkbox-box",[H("border","border: var(--n-border-checked);")])]),L("&:focus:not(:active)",[I("checkbox-box",[H("border",`
|
||
border: var(--n-border-focus);
|
||
box-shadow: var(--n-box-shadow-focus);
|
||
`)])]),Y("inside-table",[I("checkbox-box",`
|
||
background-color: var(--n-merged-color-table);
|
||
`)]),Y("checked",[I("checkbox-box",`
|
||
background-color: var(--n-color-checked);
|
||
`,[I("checkbox-icon",[L(".check-icon",`
|
||
opacity: 1;
|
||
transform: scale(1);
|
||
`)])])]),Y("indeterminate",[I("checkbox-box",[I("checkbox-icon",[L(".check-icon",`
|
||
opacity: 0;
|
||
transform: scale(.5);
|
||
`),L(".line-icon",`
|
||
opacity: 1;
|
||
transform: scale(1);
|
||
`)])])]),Y("checked, indeterminate",[L("&:focus:not(:active)",[I("checkbox-box",[H("border",`
|
||
border: var(--n-border-checked);
|
||
box-shadow: var(--n-box-shadow-focus);
|
||
`)])]),I("checkbox-box",`
|
||
background-color: var(--n-color-checked);
|
||
border-left: 0;
|
||
border-top: 0;
|
||
`,[H("border",{border:"var(--n-border-checked)"})])]),Y("disabled",{cursor:"not-allowed"},[Y("checked",[I("checkbox-box",`
|
||
background-color: var(--n-color-disabled-checked);
|
||
`,[H("border",{border:"var(--n-border-disabled-checked)"}),I("checkbox-icon",[L(".check-icon, .line-icon",{fill:"var(--n-check-mark-color-disabled-checked)"})])])]),I("checkbox-box",`
|
||
background-color: var(--n-color-disabled);
|
||
`,[H("border",`
|
||
border: var(--n-border-disabled);
|
||
`),I("checkbox-icon",[L(".check-icon, .line-icon",`
|
||
fill: var(--n-check-mark-color-disabled);
|
||
`)])]),H("label",`
|
||
color: var(--n-text-color-disabled);
|
||
`)]),I("checkbox-box-wrapper",`
|
||
position: relative;
|
||
width: var(--n-size);
|
||
flex-shrink: 0;
|
||
flex-grow: 0;
|
||
user-select: none;
|
||
-webkit-user-select: none;
|
||
`),I("checkbox-box",`
|
||
position: absolute;
|
||
left: 0;
|
||
top: 50%;
|
||
transform: translateY(-50%);
|
||
height: var(--n-size);
|
||
width: var(--n-size);
|
||
display: inline-block;
|
||
box-sizing: border-box;
|
||
border-radius: var(--n-border-radius);
|
||
background-color: var(--n-color);
|
||
transition: background-color 0.3s var(--n-bezier);
|
||
`,[H("border",`
|
||
transition:
|
||
border-color .3s var(--n-bezier),
|
||
box-shadow .3s var(--n-bezier);
|
||
border-radius: inherit;
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
border: var(--n-border);
|
||
`),I("checkbox-icon",`
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
position: absolute;
|
||
left: 1px;
|
||
right: 1px;
|
||
top: 1px;
|
||
bottom: 1px;
|
||
`,[L(".check-icon, .line-icon",`
|
||
width: 100%;
|
||
fill: var(--n-check-mark-color);
|
||
opacity: 0;
|
||
transform: scale(0.5);
|
||
transform-origin: center;
|
||
transition:
|
||
fill 0.3s var(--n-bezier),
|
||
transform 0.3s var(--n-bezier),
|
||
opacity 0.3s var(--n-bezier),
|
||
border-color 0.3s var(--n-bezier);
|
||
`),Do({left:"1px",top:"1px"})])]),H("label",`
|
||
color: var(--n-text-color);
|
||
transition: color .3s var(--n-bezier);
|
||
user-select: none;
|
||
-webkit-user-select: none;
|
||
padding: var(--n-label-padding);
|
||
font-weight: var(--n-label-font-weight);
|
||
`,[L("&:empty",{display:"none"})])]),Sl(I("checkbox",`
|
||
--n-merged-color-table: var(--n-color-table-modal);
|
||
`)),Rl(I("checkbox",`
|
||
--n-merged-color-table: var(--n-color-table-popover);
|
||
`))]),Ok=Object.assign(Object.assign({},Ie.props),{size:String,checked:{type:[Boolean,String,Number],default:void 0},defaultChecked:{type:[Boolean,String,Number],default:!1},value:[String,Number],disabled:{type:Boolean,default:void 0},indeterminate:Boolean,label:String,focusable:{type:Boolean,default:!0},checkedValue:{type:[Boolean,String,Number],default:!0},uncheckedValue:{type:[Boolean,String,Number],default:!1},"onUpdate:checked":[Function,Array],onUpdateChecked:[Function,Array],privateInsideTable:Boolean,onChange:[Function,Array]}),Pc=ve({name:"Checkbox",props:Ok,setup(e){const t=$e(Hv,null),o=V(null),{mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:i}=Je(e),l=V(e.defaultChecked),a=Se(e,"checked"),s=It(a,l),c=Ze(()=>{if(t){const T=t.valueSetRef.value;return T&&e.value!==void 0?T.has(e.value):!1}else return s.value===e.checkedValue}),d=qn(e,{mergedSize(T){const{size:y}=e;if(y!==void 0)return y;if(t){const{value:B}=t.mergedSizeRef;if(B!==void 0)return B}if(T){const{mergedSize:B}=T;if(B!==void 0)return B.value}return"medium"},mergedDisabled(T){const{disabled:y}=e;if(y!==void 0)return y;if(t){if(t.disabledRef.value)return!0;const{maxRef:{value:B},checkedCountRef:S}=t;if(B!==void 0&&S.value>=B&&!c.value)return!0;const{minRef:{value:E}}=t;if(E!==void 0&&S.value<=E&&c.value)return!0}return T?T.disabled.value:!1}}),{mergedDisabledRef:u,mergedSizeRef:f}=d,h=Ie("Checkbox","-checkbox",Ik,Bv,e,n);function p(T){if(t&&e.value!==void 0)t.toggleCheckbox(!c.value,e.value);else{const{onChange:y,"onUpdate:checked":B,onUpdateChecked:S}=e,{nTriggerFormInput:E,nTriggerFormChange:j}=d,_=c.value?e.uncheckedValue:e.checkedValue;B&&ge(B,_,T),S&&ge(S,_,T),y&&ge(y,_,T),E(),j(),l.value=_}}function g(T){u.value||p(T)}function b(T){if(!u.value)switch(T.key){case" ":case"Enter":p(T)}}function m(T){switch(T.key){case" ":T.preventDefault()}}const x={focus:()=>{var T;(T=o.value)===null||T===void 0||T.focus()},blur:()=>{var T;(T=o.value)===null||T===void 0||T.blur()}},w=qt("Checkbox",i,n),C=F(()=>{const{value:T}=f,{common:{cubicBezierEaseInOut:y},self:{borderRadius:B,color:S,colorChecked:E,colorDisabled:j,colorTableHeader:_,colorTableHeaderModal:M,colorTableHeaderPopover:W,checkMarkColor:D,checkMarkColorDisabled:Z,border:U,borderFocus:J,borderDisabled:pe,borderChecked:fe,boxShadowFocus:N,textColor:O,textColorDisabled:A,checkMarkColorDisabledChecked:Q,colorDisabledChecked:he,borderDisabledChecked:we,labelPadding:X,labelLineHeight:de,labelFontWeight:R,[me("fontSize",T)]:ae,[me("size",T)]:_e}}=h.value;return{"--n-label-line-height":de,"--n-label-font-weight":R,"--n-size":_e,"--n-bezier":y,"--n-border-radius":B,"--n-border":U,"--n-border-checked":fe,"--n-border-focus":J,"--n-border-disabled":pe,"--n-border-disabled-checked":we,"--n-box-shadow-focus":N,"--n-color":S,"--n-color-checked":E,"--n-color-table":_,"--n-color-table-modal":M,"--n-color-table-popover":W,"--n-color-disabled":j,"--n-color-disabled-checked":he,"--n-text-color":O,"--n-text-color-disabled":A,"--n-check-mark-color":D,"--n-check-mark-color-disabled":Z,"--n-check-mark-color-disabled-checked":Q,"--n-font-size":ae,"--n-label-padding":X}}),P=r?gt("checkbox",F(()=>f.value[0]),C,e):void 0;return Object.assign(d,x,{rtlEnabled:w,selfRef:o,mergedClsPrefix:n,mergedDisabled:u,renderedChecked:c,mergedTheme:h,labelId:Tl(),handleClick:g,handleKeyUp:b,handleKeyDown:m,cssVars:r?void 0:C,themeClass:P==null?void 0:P.themeClass,onRender:P==null?void 0:P.onRender})},render(){var e;const{$slots:t,renderedChecked:o,mergedDisabled:n,indeterminate:r,privateInsideTable:i,cssVars:l,labelId:a,label:s,mergedClsPrefix:c,focusable:d,handleKeyUp:u,handleKeyDown:f,handleClick:h}=this;(e=this.onRender)===null||e===void 0||e.call(this);const p=pt(t.default,g=>s||g?v("span",{class:`${c}-checkbox__label`,id:a},s||g):null);return v("div",{ref:"selfRef",class:[`${c}-checkbox`,this.themeClass,this.rtlEnabled&&`${c}-checkbox--rtl`,o&&`${c}-checkbox--checked`,n&&`${c}-checkbox--disabled`,r&&`${c}-checkbox--indeterminate`,i&&`${c}-checkbox--inside-table`,p&&`${c}-checkbox--show-label`],tabindex:n||!d?void 0:0,role:"checkbox","aria-checked":r?"mixed":o,"aria-labelledby":a,style:l,onKeyup:u,onKeydown:f,onClick:h,onMousedown:()=>{bt("selectstart",window,g=>{g.preventDefault()},{once:!0})}},v("div",{class:`${c}-checkbox-box-wrapper`}," ",v("div",{class:`${c}-checkbox-box`},v(_i,null,{default:()=>this.indeterminate?v("div",{key:"indeterminate",class:`${c}-checkbox-icon`},Ak()):v("div",{key:"check",class:`${c}-checkbox-icon`},Fk())}),v("div",{class:`${c}-checkbox-box__border`}))),p)}});function Mk(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const _c={name:"Popselect",common:xt,peers:{Popover:Fr,InternalSelectMenu:xc},self:Mk},Dv="n-popselect",Bk=I("popselect-menu",`
|
||
box-shadow: var(--n-menu-box-shadow);
|
||
`),kc={multiple:Boolean,value:{type:[String,Number,Array],default:null},cancelable:Boolean,options:{type:Array,default:()=>[]},size:{type:String,default:"medium"},scrollable:Boolean,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onMouseenter:Function,onMouseleave:Function,renderLabel:Function,showCheckmark:{type:Boolean,default:void 0},nodeProps:Function,virtualScroll:Boolean,onChange:[Function,Array]},Lv=Nl(kc),Hk=ve({name:"PopselectPanel",props:kc,setup(e){const t=$e(Dv),{mergedClsPrefixRef:o,inlineThemeDisabled:n}=Je(e),r=Ie("Popselect","-pop-select",Bk,_c,t.props,o),i=F(()=>or(e.options,Ov("value","children")));function l(f,h){const{onUpdateValue:p,"onUpdate:value":g,onChange:b}=e;p&&ge(p,f,h),g&&ge(g,f,h),b&&ge(b,f,h)}function a(f){c(f.key)}function s(f){!uo(f,"action")&&!uo(f,"empty")&&!uo(f,"header")&&f.preventDefault()}function c(f){const{value:{getNode:h}}=i;if(e.multiple)if(Array.isArray(e.value)){const p=[],g=[];let b=!0;e.value.forEach(m=>{if(m===f){b=!1;return}const x=h(m);x&&(p.push(x.key),g.push(x.rawNode))}),b&&(p.push(f),g.push(h(f).rawNode)),l(p,g)}else{const p=h(f);p&&l([f],[p.rawNode])}else if(e.value===f&&e.cancelable)l(null,null);else{const p=h(f);p&&l(f,p.rawNode);const{"onUpdate:show":g,onUpdateShow:b}=t.props;g&&ge(g,!1),b&&ge(b,!1),t.setShow(!1)}so(()=>{t.syncPosition()})}st(Se(e,"options"),()=>{so(()=>{t.syncPosition()})});const d=F(()=>{const{self:{menuBoxShadow:f}}=r.value;return{"--n-menu-box-shadow":f}}),u=n?gt("select",void 0,d,t.props):void 0;return{mergedTheme:t.mergedThemeRef,mergedClsPrefix:o,treeMate:i,handleToggle:a,handleMenuMousedown:s,cssVars:n?void 0:d,themeClass:u==null?void 0:u.themeClass,onRender:u==null?void 0:u.onRender}},render(){var e;return(e=this.onRender)===null||e===void 0||e.call(this),v(Sv,{clsPrefix:this.mergedClsPrefix,focusable:!0,nodeProps:this.nodeProps,class:[`${this.mergedClsPrefix}-popselect-menu`,this.themeClass],style:this.cssVars,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,multiple:this.multiple,treeMate:this.treeMate,size:this.size,value:this.value,virtualScroll:this.virtualScroll,scrollable:this.scrollable,renderLabel:this.renderLabel,onToggle:this.handleToggle,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseenter,onMousedown:this.handleMenuMousedown,showCheckmark:this.showCheckmark},{header:()=>{var t,o;return((o=(t=this.$slots).header)===null||o===void 0?void 0:o.call(t))||[]},action:()=>{var t,o;return((o=(t=this.$slots).action)===null||o===void 0?void 0:o.call(t))||[]},empty:()=>{var t,o;return((o=(t=this.$slots).empty)===null||o===void 0?void 0:o.call(t))||[]}})}}),Dk=Object.assign(Object.assign(Object.assign(Object.assign({},Ie.props),Jh(Ar,["showArrow","arrow"])),{placement:Object.assign(Object.assign({},Ar.placement),{default:"bottom"}),trigger:{type:String,default:"hover"}}),kc),Lk=ve({name:"Popselect",props:Dk,slots:Object,inheritAttrs:!1,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=Je(e),o=Ie("Popselect","-popselect",void 0,_c,e,t),n=V(null);function r(){var a;(a=n.value)===null||a===void 0||a.syncPosition()}function i(a){var s;(s=n.value)===null||s===void 0||s.setShow(a)}return tt(Dv,{props:e,mergedThemeRef:o,syncPosition:r,setShow:i}),Object.assign(Object.assign({},{syncPosition:r,setShow:i}),{popoverInstRef:n,mergedTheme:o})},render(){const{mergedTheme:e}=this,t={theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:{padding:"0"},ref:"popoverInstRef",internalRenderBody:(o,n,r,i,l)=>{const{$attrs:a}=this;return v(Hk,Object.assign({},a,{class:[a.class,o],style:[a.style,...r]},zr(this.$props,Lv),{ref:Zh(n),onMouseenter:mi([i,a.onMouseenter]),onMouseleave:mi([l,a.onMouseleave])}),{header:()=>{var s,c;return(c=(s=this.$slots).header)===null||c===void 0?void 0:c.call(s)},action:()=>{var s,c;return(c=(s=this.$slots).action)===null||c===void 0?void 0:c.call(s)},empty:()=>{var s,c;return(c=(s=this.$slots).empty)===null||c===void 0?void 0:c.call(s)}})}};return v(zi,Object.assign({},Jh(this.$props,Lv),t,{internalDeactivateImmediately:!0}),{trigger:()=>{var o,n;return(n=(o=this.$slots).default)===null||n===void 0?void 0:n.call(o)}})}});function Nk(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const Nv={name:"Select",common:xt,peers:{InternalSelection:zv,InternalSelectMenu:xc},self:Nk},jk=L([I("select",`
|
||
z-index: auto;
|
||
outline: none;
|
||
width: 100%;
|
||
position: relative;
|
||
font-weight: var(--n-font-weight);
|
||
`),I("select-menu",`
|
||
margin: 4px 0;
|
||
box-shadow: var(--n-menu-box-shadow);
|
||
`,[Ql({originalTransition:"background-color .3s var(--n-bezier), box-shadow .3s var(--n-bezier)"})])]),Wk=Object.assign(Object.assign({},Ie.props),{to:Io.propTo,bordered:{type:Boolean,default:void 0},clearable:Boolean,clearFilterAfterSelect:{type:Boolean,default:!0},options:{type:Array,default:()=>[]},defaultValue:{type:[String,Number,Array],default:null},keyboard:{type:Boolean,default:!0},value:[String,Number,Array],placeholder:String,menuProps:Object,multiple:Boolean,size:String,menuSize:{type:String},filterable:Boolean,disabled:{type:Boolean,default:void 0},remote:Boolean,loading:Boolean,filter:Function,placement:{type:String,default:"bottom-start"},widthMode:{type:String,default:"trigger"},tag:Boolean,onCreate:Function,fallbackOption:{type:[Function,Boolean],default:void 0},show:{type:Boolean,default:void 0},showArrow:{type:Boolean,default:!0},maxTagCount:[Number,String],ellipsisTagPopoverProps:Object,consistentMenuWidth:{type:Boolean,default:!0},virtualScroll:{type:Boolean,default:!0},labelField:{type:String,default:"label"},valueField:{type:String,default:"value"},childrenField:{type:String,default:"children"},renderLabel:Function,renderOption:Function,renderTag:Function,"onUpdate:value":[Function,Array],inputProps:Object,nodeProps:Function,ignoreComposition:{type:Boolean,default:!0},showOnFocus:Boolean,onUpdateValue:[Function,Array],onBlur:[Function,Array],onClear:[Function,Array],onFocus:[Function,Array],onScroll:[Function,Array],onSearch:[Function,Array],onUpdateShow:[Function,Array],"onUpdate:show":[Function,Array],displayDirective:{type:String,default:"show"},resetMenuOnOptionsChange:{type:Boolean,default:!0},status:String,showCheckmark:{type:Boolean,default:!0},onChange:[Function,Array],items:Array}),Vk=ve({name:"Select",props:Wk,slots:Object,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:o,namespaceRef:n,inlineThemeDisabled:r}=Je(e),i=Ie("Select","-select",jk,Nv,e,t),l=V(e.defaultValue),a=Se(e,"value"),s=It(a,l),c=V(!1),d=V(""),u=vs(e,["items","options"]),f=V([]),h=V([]),p=F(()=>h.value.concat(f.value).concat(u.value)),g=F(()=>{const{filter:z}=e;if(z)return z;const{labelField:q,valueField:ce}=e;return(Ce,Re)=>{if(!Re)return!1;const Te=Re[q];if(typeof Te=="string")return Cc(Ce,Te);const Ee=Re[ce];return typeof Ee=="string"?Cc(Ce,Ee):typeof Ee=="number"?Cc(Ce,String(Ee)):!1}}),b=F(()=>{if(e.remote)return u.value;{const{value:z}=p,{value:q}=d;return!q.length||!e.filterable?z:lk(z,g.value,q,e.childrenField)}}),m=F(()=>{const{valueField:z,childrenField:q}=e,ce=Ov(z,q);return or(b.value,ce)}),x=F(()=>ak(p.value,e.valueField,e.childrenField)),w=V(!1),C=It(Se(e,"show"),w),P=V(null),T=V(null),y=V(null),{localeRef:B}=Pi("Select"),S=F(()=>{var z;return(z=e.placeholder)!==null&&z!==void 0?z:B.value.placeholder}),E=[],j=V(new Map),_=F(()=>{const{fallbackOption:z}=e;if(z===void 0){const{labelField:q,valueField:ce}=e;return Ce=>({[q]:String(Ce),[ce]:Ce})}return z===!1?!1:q=>Object.assign(z(q),{value:q})});function M(z){const q=e.remote,{value:ce}=j,{value:Ce}=x,{value:Re}=_,Te=[];return z.forEach(Ee=>{if(Ce.has(Ee))Te.push(Ce.get(Ee));else if(q&&ce.has(Ee))Te.push(ce.get(Ee));else if(Re){const Ae=Re(Ee);Ae&&Te.push(Ae)}}),Te}const W=F(()=>{if(e.multiple){const{value:z}=s;return Array.isArray(z)?M(z):[]}return null}),D=F(()=>{const{value:z}=s;return!e.multiple&&!Array.isArray(z)?z===null?null:M([z])[0]||null:null}),Z=qn(e),{mergedSizeRef:U,mergedDisabledRef:J,mergedStatusRef:pe}=Z;function fe(z,q){const{onChange:ce,"onUpdate:value":Ce,onUpdateValue:Re}=e,{nTriggerFormChange:Te,nTriggerFormInput:Ee}=Z;ce&&ge(ce,z,q),Re&&ge(Re,z,q),Ce&&ge(Ce,z,q),l.value=z,Te(),Ee()}function N(z){const{onBlur:q}=e,{nTriggerFormBlur:ce}=Z;q&&ge(q,z),ce()}function O(){const{onClear:z}=e;z&&ge(z)}function A(z){const{onFocus:q,showOnFocus:ce}=e,{nTriggerFormFocus:Ce}=Z;q&&ge(q,z),Ce(),ce&&de()}function Q(z){const{onSearch:q}=e;q&&ge(q,z)}function he(z){const{onScroll:q}=e;q&&ge(q,z)}function we(){var z;const{remote:q,multiple:ce}=e;if(q){const{value:Ce}=j;if(ce){const{valueField:Re}=e;(z=W.value)===null||z===void 0||z.forEach(Te=>{Ce.set(Te[Re],Te)})}else{const Re=D.value;Re&&Ce.set(Re[e.valueField],Re)}}}function X(z){const{onUpdateShow:q,"onUpdate:show":ce}=e;q&&ge(q,z),ce&&ge(ce,z),w.value=z}function de(){J.value||(X(!0),w.value=!0,e.filterable&&We())}function R(){X(!1)}function ae(){d.value="",h.value=E}const _e=V(!1);function k(){e.filterable&&(_e.value=!0)}function $(){e.filterable&&(_e.value=!1,C.value||ae())}function K(){J.value||(C.value?e.filterable?We():R():de())}function ie(z){var q,ce;!((ce=(q=y.value)===null||q===void 0?void 0:q.selfRef)===null||ce===void 0)&&ce.contains(z.relatedTarget)||(c.value=!1,N(z),R())}function le(z){A(z),c.value=!0}function re(){c.value=!0}function xe(z){var q;!((q=P.value)===null||q===void 0)&&q.$el.contains(z.relatedTarget)||(c.value=!1,N(z),R())}function ne(){var z;(z=P.value)===null||z===void 0||z.focus(),R()}function te(z){var q;C.value&&(!((q=P.value)===null||q===void 0)&&q.$el.contains(ci(z))||R())}function oe(z){if(!Array.isArray(z))return[];if(_.value)return Array.from(z);{const{remote:q}=e,{value:ce}=x;if(q){const{value:Ce}=j;return z.filter(Re=>ce.has(Re)||Ce.has(Re))}else return z.filter(Ce=>ce.has(Ce))}}function ye(z){be(z.rawNode)}function be(z){if(J.value)return;const{tag:q,remote:ce,clearFilterAfterSelect:Ce,valueField:Re}=e;if(q&&!ce){const{value:Te}=h,Ee=Te[0]||null;if(Ee){const Ae=f.value;Ae.length?Ae.push(Ee):f.value=[Ee],h.value=E}}if(ce&&j.value.set(z[Re],z),e.multiple){const Te=oe(s.value),Ee=Te.findIndex(Ae=>Ae===z[Re]);if(~Ee){if(Te.splice(Ee,1),q&&!ce){const Ae=ee(z[Re]);~Ae&&(f.value.splice(Ae,1),Ce&&(d.value=""))}}else Te.push(z[Re]),Ce&&(d.value="");fe(Te,M(Te))}else{if(q&&!ce){const Te=ee(z[Re]);~Te?f.value=[f.value[Te]]:f.value=E}Ve(),R(),fe(z[Re],z)}}function ee(z){return f.value.findIndex(ce=>ce[e.valueField]===z)}function se(z){C.value||de();const{value:q}=z.target;d.value=q;const{tag:ce,remote:Ce}=e;if(Q(q),ce&&!Ce){if(!q){h.value=E;return}const{onCreate:Re}=e,Te=Re?Re(q):{[e.labelField]:q,[e.valueField]:q},{valueField:Ee,labelField:Ae}=e;u.value.some(Ge=>Ge[Ee]===Te[Ee]||Ge[Ae]===Te[Ae])||f.value.some(Ge=>Ge[Ee]===Te[Ee]||Ge[Ae]===Te[Ae])?h.value=E:h.value=[Te]}}function ke(z){z.stopPropagation();const{multiple:q}=e;!q&&e.filterable&&R(),O(),q?fe([],[]):fe(null,null)}function Me(z){!uo(z,"action")&&!uo(z,"empty")&&!uo(z,"header")&&z.preventDefault()}function He(z){he(z)}function Qe(z){var q,ce,Ce,Re,Te;if(!e.keyboard){z.preventDefault();return}switch(z.key){case" ":if(e.filterable)break;z.preventDefault();case"Enter":if(!(!((q=P.value)===null||q===void 0)&&q.isComposing)){if(C.value){const Ee=(ce=y.value)===null||ce===void 0?void 0:ce.getPendingTmNode();Ee?ye(Ee):e.filterable||(R(),Ve())}else if(de(),e.tag&&_e.value){const Ee=h.value[0];if(Ee){const Ae=Ee[e.valueField],{value:Ge}=s;e.multiple&&Array.isArray(Ge)&&Ge.includes(Ae)||be(Ee)}}}z.preventDefault();break;case"ArrowUp":if(z.preventDefault(),e.loading)return;C.value&&((Ce=y.value)===null||Ce===void 0||Ce.prev());break;case"ArrowDown":if(z.preventDefault(),e.loading)return;C.value?(Re=y.value)===null||Re===void 0||Re.next():de();break;case"Escape":C.value&&(CC(z),R()),(Te=P.value)===null||Te===void 0||Te.focus();break}}function Ve(){var z;(z=P.value)===null||z===void 0||z.focus()}function We(){var z;(z=P.value)===null||z===void 0||z.focusInput()}function ot(){var z;C.value&&((z=T.value)===null||z===void 0||z.syncPosition())}we(),st(Se(e,"options"),we);const Xe={focus:()=>{var z;(z=P.value)===null||z===void 0||z.focus()},focusInput:()=>{var z;(z=P.value)===null||z===void 0||z.focusInput()},blur:()=>{var z;(z=P.value)===null||z===void 0||z.blur()},blurInput:()=>{var z;(z=P.value)===null||z===void 0||z.blurInput()}},Pe=F(()=>{const{self:{menuBoxShadow:z}}=i.value;return{"--n-menu-box-shadow":z}}),ze=r?gt("select",void 0,Pe,e):void 0;return Object.assign(Object.assign({},Xe),{mergedStatus:pe,mergedClsPrefix:t,mergedBordered:o,namespace:n,treeMate:m,isMounted:El(),triggerRef:P,menuRef:y,pattern:d,uncontrolledShow:w,mergedShow:C,adjustedTo:Io(e),uncontrolledValue:l,mergedValue:s,followerRef:T,localizedPlaceholder:S,selectedOption:D,selectedOptions:W,mergedSize:U,mergedDisabled:J,focused:c,activeWithoutMenuOpen:_e,inlineThemeDisabled:r,onTriggerInputFocus:k,onTriggerInputBlur:$,handleTriggerOrMenuResize:ot,handleMenuFocus:re,handleMenuBlur:xe,handleMenuTabOut:ne,handleTriggerClick:K,handleToggle:ye,handleDeleteOption:be,handlePatternInput:se,handleClear:ke,handleTriggerBlur:ie,handleTriggerFocus:le,handleKeydown:Qe,handleMenuAfterLeave:ae,handleMenuClickOutside:te,handleMenuScroll:He,handleMenuKeydown:Qe,handleMenuMousedown:Me,mergedTheme:i,cssVars:r?void 0:Pe,themeClass:ze==null?void 0:ze.themeClass,onRender:ze==null?void 0:ze.onRender})},render(){return v("div",{class:`${this.mergedClsPrefix}-select`},v(Ss,null,{default:()=>[v(Rs,null,{default:()=>v(U_,{ref:"triggerRef",inlineThemeDisabled:this.inlineThemeDisabled,status:this.mergedStatus,inputProps:this.inputProps,clsPrefix:this.mergedClsPrefix,showArrow:this.showArrow,maxTagCount:this.maxTagCount,ellipsisTagPopoverProps:this.ellipsisTagPopoverProps,bordered:this.mergedBordered,active:this.activeWithoutMenuOpen||this.mergedShow,pattern:this.pattern,placeholder:this.localizedPlaceholder,selectedOption:this.selectedOption,selectedOptions:this.selectedOptions,multiple:this.multiple,renderTag:this.renderTag,renderLabel:this.renderLabel,filterable:this.filterable,clearable:this.clearable,disabled:this.mergedDisabled,size:this.mergedSize,theme:this.mergedTheme.peers.InternalSelection,labelField:this.labelField,valueField:this.valueField,themeOverrides:this.mergedTheme.peerOverrides.InternalSelection,loading:this.loading,focused:this.focused,onClick:this.handleTriggerClick,onDeleteOption:this.handleDeleteOption,onPatternInput:this.handlePatternInput,onClear:this.handleClear,onBlur:this.handleTriggerBlur,onFocus:this.handleTriggerFocus,onKeydown:this.handleKeydown,onPatternBlur:this.onTriggerInputBlur,onPatternFocus:this.onTriggerInputFocus,onResize:this.handleTriggerOrMenuResize,ignoreComposition:this.ignoreComposition},{arrow:()=>{var e,t;return[(t=(e=this.$slots).arrow)===null||t===void 0?void 0:t.call(e)]}})}),v(zs,{ref:"followerRef",show:this.mergedShow,to:this.adjustedTo,teleportDisabled:this.adjustedTo===Io.tdkey,containerClass:this.namespace,width:this.consistentMenuWidth?"target":void 0,minWidth:"target",placement:this.placement},{default:()=>v(Yo,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterLeave:this.handleMenuAfterLeave},{default:()=>{var e,t,o;return this.mergedShow||this.displayDirective==="show"?((e=this.onRender)===null||e===void 0||e.call(this),bo(v(Sv,Object.assign({},this.menuProps,{ref:"menuRef",onResize:this.handleTriggerOrMenuResize,inlineThemeDisabled:this.inlineThemeDisabled,virtualScroll:this.consistentMenuWidth&&this.virtualScroll,class:[`${this.mergedClsPrefix}-select-menu`,this.themeClass,(t=this.menuProps)===null||t===void 0?void 0:t.class],clsPrefix:this.mergedClsPrefix,focusable:!0,labelField:this.labelField,valueField:this.valueField,autoPending:!0,nodeProps:this.nodeProps,theme:this.mergedTheme.peers.InternalSelectMenu,themeOverrides:this.mergedTheme.peerOverrides.InternalSelectMenu,treeMate:this.treeMate,multiple:this.multiple,size:this.menuSize,renderOption:this.renderOption,renderLabel:this.renderLabel,value:this.mergedValue,style:[(o=this.menuProps)===null||o===void 0?void 0:o.style,this.cssVars],onToggle:this.handleToggle,onScroll:this.handleMenuScroll,onFocus:this.handleMenuFocus,onBlur:this.handleMenuBlur,onKeydown:this.handleMenuKeydown,onTabOut:this.handleMenuTabOut,onMousedown:this.handleMenuMousedown,show:this.mergedShow,showCheckmark:this.showCheckmark,resetMenuOnOptionsChange:this.resetMenuOnOptionsChange}),{empty:()=>{var n,r;return[(r=(n=this.$slots).empty)===null||r===void 0?void 0:r.call(n)]},header:()=>{var n,r;return[(r=(n=this.$slots).header)===null||r===void 0?void 0:r.call(n)]},action:()=>{var n,r;return[(r=(n=this.$slots).action)===null||r===void 0?void 0:r.call(n)]}}),this.displayDirective==="show"?[[ef,this.mergedShow],[Al,this.handleMenuClickOutside,void 0,{capture:!0}]]:[[Al,this.handleMenuClickOutside,void 0,{capture:!0}]])):null}})})]}))}}),Uk={itemPaddingSmall:"0 4px",itemMarginSmall:"0 0 0 8px",itemMarginSmallRtl:"0 8px 0 0",itemPaddingMedium:"0 4px",itemMarginMedium:"0 0 0 8px",itemMarginMediumRtl:"0 8px 0 0",itemPaddingLarge:"0 4px",itemMarginLarge:"0 0 0 8px",itemMarginLargeRtl:"0 8px 0 0",buttonIconSizeSmall:"14px",buttonIconSizeMedium:"16px",buttonIconSizeLarge:"18px",inputWidthSmall:"60px",selectWidthSmall:"unset",inputMarginSmall:"0 0 0 8px",inputMarginSmallRtl:"0 8px 0 0",selectMarginSmall:"0 0 0 8px",prefixMarginSmall:"0 8px 0 0",suffixMarginSmall:"0 0 0 8px",inputWidthMedium:"60px",selectWidthMedium:"unset",inputMarginMedium:"0 0 0 8px",inputMarginMediumRtl:"0 8px 0 0",selectMarginMedium:"0 0 0 8px",prefixMarginMedium:"0 8px 0 0",suffixMarginMedium:"0 0 0 8px",inputWidthLarge:"60px",selectWidthLarge:"unset",inputMarginLarge:"0 0 0 8px",inputMarginLargeRtl:"0 8px 0 0",selectMarginLarge:"0 0 0 8px",prefixMarginLarge:"0 8px 0 0",suffixMarginLarge:"0 0 0 8px"};function Kk(e){const{textColor2:t,primaryColor:o,primaryColorHover:n,primaryColorPressed:r,inputColorDisabled:i,textColorDisabled:l,borderColor:a,borderRadius:s,fontSizeTiny:c,fontSizeSmall:d,fontSizeMedium:u,heightTiny:f,heightSmall:h,heightMedium:p}=e;return Object.assign(Object.assign({},Uk),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${a}`,buttonBorderHover:`1px solid ${a}`,buttonBorderPressed:`1px solid ${a}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:n,itemTextColorPressed:r,itemTextColorActive:o,itemTextColorDisabled:l,itemColor:"#0000",itemColorHover:"#0000",itemColorPressed:"#0000",itemColorActive:"#0000",itemColorActiveHover:"#0000",itemColorDisabled:i,itemBorder:"1px solid #0000",itemBorderHover:"1px solid #0000",itemBorderPressed:"1px solid #0000",itemBorderActive:`1px solid ${o}`,itemBorderDisabled:`1px solid ${a}`,itemBorderRadius:s,itemSizeSmall:f,itemSizeMedium:h,itemSizeLarge:p,itemFontSizeSmall:c,itemFontSizeMedium:d,itemFontSizeLarge:u,jumperFontSizeSmall:c,jumperFontSizeMedium:d,jumperFontSizeLarge:u,jumperTextColor:t,jumperTextColorDisabled:l})}const jv={name:"Pagination",common:xt,peers:{Select:Nv,Input:$v,Popselect:_c},self:Kk},Wv=`
|
||
background: var(--n-item-color-hover);
|
||
color: var(--n-item-text-color-hover);
|
||
border: var(--n-item-border-hover);
|
||
`,Vv=[Y("button",`
|
||
background: var(--n-button-color-hover);
|
||
border: var(--n-button-border-hover);
|
||
color: var(--n-button-icon-color-hover);
|
||
`)],Gk=I("pagination",`
|
||
display: flex;
|
||
vertical-align: middle;
|
||
font-size: var(--n-item-font-size);
|
||
flex-wrap: nowrap;
|
||
`,[I("pagination-prefix",`
|
||
display: flex;
|
||
align-items: center;
|
||
margin: var(--n-prefix-margin);
|
||
`),I("pagination-suffix",`
|
||
display: flex;
|
||
align-items: center;
|
||
margin: var(--n-suffix-margin);
|
||
`),L("> *:not(:first-child)",`
|
||
margin: var(--n-item-margin);
|
||
`),I("select",`
|
||
width: var(--n-select-width);
|
||
`),L("&.transition-disabled",[I("pagination-item","transition: none!important;")]),I("pagination-quick-jumper",`
|
||
white-space: nowrap;
|
||
display: flex;
|
||
color: var(--n-jumper-text-color);
|
||
transition: color .3s var(--n-bezier);
|
||
align-items: center;
|
||
font-size: var(--n-jumper-font-size);
|
||
`,[I("input",`
|
||
margin: var(--n-input-margin);
|
||
width: var(--n-input-width);
|
||
`)]),I("pagination-item",`
|
||
position: relative;
|
||
cursor: pointer;
|
||
user-select: none;
|
||
-webkit-user-select: none;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
box-sizing: border-box;
|
||
min-width: var(--n-item-size);
|
||
height: var(--n-item-size);
|
||
padding: var(--n-item-padding);
|
||
background-color: var(--n-item-color);
|
||
color: var(--n-item-text-color);
|
||
border-radius: var(--n-item-border-radius);
|
||
border: var(--n-item-border);
|
||
fill: var(--n-button-icon-color);
|
||
transition:
|
||
color .3s var(--n-bezier),
|
||
border-color .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier),
|
||
fill .3s var(--n-bezier);
|
||
`,[Y("button",`
|
||
background: var(--n-button-color);
|
||
color: var(--n-button-icon-color);
|
||
border: var(--n-button-border);
|
||
padding: 0;
|
||
`,[I("base-icon",`
|
||
font-size: var(--n-button-icon-size);
|
||
`)]),Ye("disabled",[Y("hover",Wv,Vv),L("&:hover",Wv,Vv),L("&:active",`
|
||
background: var(--n-item-color-pressed);
|
||
color: var(--n-item-text-color-pressed);
|
||
border: var(--n-item-border-pressed);
|
||
`,[Y("button",`
|
||
background: var(--n-button-color-pressed);
|
||
border: var(--n-button-border-pressed);
|
||
color: var(--n-button-icon-color-pressed);
|
||
`)]),Y("active",`
|
||
background: var(--n-item-color-active);
|
||
color: var(--n-item-text-color-active);
|
||
border: var(--n-item-border-active);
|
||
`,[L("&:hover",`
|
||
background: var(--n-item-color-active-hover);
|
||
`)])]),Y("disabled",`
|
||
cursor: not-allowed;
|
||
color: var(--n-item-text-color-disabled);
|
||
`,[Y("active, button",`
|
||
background-color: var(--n-item-color-disabled);
|
||
border: var(--n-item-border-disabled);
|
||
`)])]),Y("disabled",`
|
||
cursor: not-allowed;
|
||
`,[I("pagination-quick-jumper",`
|
||
color: var(--n-jumper-text-color-disabled);
|
||
`)]),Y("simple",`
|
||
display: flex;
|
||
align-items: center;
|
||
flex-wrap: nowrap;
|
||
`,[I("pagination-quick-jumper",[I("input",`
|
||
margin: 0;
|
||
`)])])]);function Uv(e){var t;if(!e)return 10;const{defaultPageSize:o}=e;if(o!==void 0)return o;const n=(t=e.pageSizes)===null||t===void 0?void 0:t[0];return typeof n=="number"?n:(n==null?void 0:n.value)||10}function qk(e,t,o,n){let r=!1,i=!1,l=1,a=t;if(t===1)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:a,fastBackwardTo:l,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1}]};if(t===2)return{hasFastBackward:!1,hasFastForward:!1,fastForwardTo:a,fastBackwardTo:l,items:[{type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1},{type:"page",label:2,active:e===2,mayBeFastBackward:!0,mayBeFastForward:!1}]};const s=1,c=t;let d=e,u=e;const f=(o-5)/2;u+=Math.ceil(f),u=Math.min(Math.max(u,s+o-3),c-2),d-=Math.floor(f),d=Math.max(Math.min(d,c-o+3),s+2);let h=!1,p=!1;d>s+2&&(h=!0),u<c-2&&(p=!0);const g=[];g.push({type:"page",label:1,active:e===1,mayBeFastBackward:!1,mayBeFastForward:!1}),h?(r=!0,l=d-1,g.push({type:"fast-backward",active:!1,label:void 0,options:n?Kv(s+1,d-1):null})):c>=s+1&&g.push({type:"page",label:s+1,mayBeFastBackward:!0,mayBeFastForward:!1,active:e===s+1});for(let b=d;b<=u;++b)g.push({type:"page",label:b,mayBeFastBackward:!1,mayBeFastForward:!1,active:e===b});return p?(i=!0,a=u+1,g.push({type:"fast-forward",active:!1,label:void 0,options:n?Kv(u+1,c-1):null})):u===c-2&&g[g.length-1].label!==c-1&&g.push({type:"page",mayBeFastForward:!0,mayBeFastBackward:!1,label:c-1,active:e===c-1}),g[g.length-1].label!==c&&g.push({type:"page",mayBeFastForward:!1,mayBeFastBackward:!1,label:c,active:e===c}),{hasFastBackward:r,hasFastForward:i,fastBackwardTo:l,fastForwardTo:a,items:g}}function Kv(e,t){const o=[];for(let n=e;n<=t;++n)o.push({label:`${n}`,value:n});return o}const Xk=Object.assign(Object.assign({},Ie.props),{simple:Boolean,page:Number,defaultPage:{type:Number,default:1},itemCount:Number,pageCount:Number,defaultPageCount:{type:Number,default:1},showSizePicker:Boolean,pageSize:Number,defaultPageSize:Number,pageSizes:{type:Array,default(){return[10]}},showQuickJumper:Boolean,size:{type:String,default:"medium"},disabled:Boolean,pageSlot:{type:Number,default:9},selectProps:Object,prev:Function,next:Function,goto:Function,prefix:Function,suffix:Function,label:Function,displayOrder:{type:Array,default:["pages","size-picker","quick-jumper"]},to:Io.propTo,showQuickJumpDropdown:{type:Boolean,default:!0},"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],onPageSizeChange:[Function,Array],onChange:[Function,Array]}),Yk=ve({name:"Pagination",props:Xk,slots:Object,setup(e){const{mergedComponentPropsRef:t,mergedClsPrefixRef:o,inlineThemeDisabled:n,mergedRtlRef:r}=Je(e),i=Ie("Pagination","-pagination",Gk,jv,e,o),{localeRef:l}=Pi("Pagination"),a=V(null),s=V(e.defaultPage),c=V(Uv(e)),d=It(Se(e,"page"),s),u=It(Se(e,"pageSize"),c),f=F(()=>{const{itemCount:R}=e;if(R!==void 0)return Math.max(1,Math.ceil(R/u.value));const{pageCount:ae}=e;return ae!==void 0?Math.max(ae,1):1}),h=V("");Mt(()=>{e.simple,h.value=String(d.value)});const p=V(!1),g=V(!1),b=V(!1),m=V(!1),x=()=>{e.disabled||(p.value=!0,D())},w=()=>{e.disabled||(p.value=!1,D())},C=()=>{g.value=!0,D()},P=()=>{g.value=!1,D()},T=R=>{Z(R)},y=F(()=>qk(d.value,f.value,e.pageSlot,e.showQuickJumpDropdown));Mt(()=>{y.value.hasFastBackward?y.value.hasFastForward||(p.value=!1,b.value=!1):(g.value=!1,m.value=!1)});const B=F(()=>{const R=l.value.selectionSuffix;return e.pageSizes.map(ae=>typeof ae=="number"?{label:`${ae} / ${R}`,value:ae}:ae)}),S=F(()=>{var R,ae;return((ae=(R=t==null?void 0:t.value)===null||R===void 0?void 0:R.Pagination)===null||ae===void 0?void 0:ae.inputSize)||Yh(e.size)}),E=F(()=>{var R,ae;return((ae=(R=t==null?void 0:t.value)===null||R===void 0?void 0:R.Pagination)===null||ae===void 0?void 0:ae.selectSize)||Yh(e.size)}),j=F(()=>(d.value-1)*u.value),_=F(()=>{const R=d.value*u.value-1,{itemCount:ae}=e;return ae!==void 0&&R>ae-1?ae-1:R}),M=F(()=>{const{itemCount:R}=e;return R!==void 0?R:(e.pageCount||1)*u.value}),W=qt("Pagination",r,o);function D(){so(()=>{var R;const{value:ae}=a;ae&&(ae.classList.add("transition-disabled"),(R=a.value)===null||R===void 0||R.offsetWidth,ae.classList.remove("transition-disabled"))})}function Z(R){if(R===d.value)return;const{"onUpdate:page":ae,onUpdatePage:_e,onChange:k,simple:$}=e;ae&&ge(ae,R),_e&&ge(_e,R),k&&ge(k,R),s.value=R,$&&(h.value=String(R))}function U(R){if(R===u.value)return;const{"onUpdate:pageSize":ae,onUpdatePageSize:_e,onPageSizeChange:k}=e;ae&&ge(ae,R),_e&&ge(_e,R),k&&ge(k,R),c.value=R,f.value<d.value&&Z(f.value)}function J(){if(e.disabled)return;const R=Math.min(d.value+1,f.value);Z(R)}function pe(){if(e.disabled)return;const R=Math.max(d.value-1,1);Z(R)}function fe(){if(e.disabled)return;const R=Math.min(y.value.fastForwardTo,f.value);Z(R)}function N(){if(e.disabled)return;const R=Math.max(y.value.fastBackwardTo,1);Z(R)}function O(R){U(R)}function A(){const R=Number.parseInt(h.value);Number.isNaN(R)||(Z(Math.max(1,Math.min(R,f.value))),e.simple||(h.value=""))}function Q(){A()}function he(R){if(!e.disabled)switch(R.type){case"page":Z(R.label);break;case"fast-backward":N();break;case"fast-forward":fe();break}}function we(R){h.value=R.replace(/\D+/g,"")}Mt(()=>{d.value,u.value,D()});const X=F(()=>{const{size:R}=e,{self:{buttonBorder:ae,buttonBorderHover:_e,buttonBorderPressed:k,buttonIconColor:$,buttonIconColorHover:K,buttonIconColorPressed:ie,itemTextColor:le,itemTextColorHover:re,itemTextColorPressed:xe,itemTextColorActive:ne,itemTextColorDisabled:te,itemColor:oe,itemColorHover:ye,itemColorPressed:be,itemColorActive:ee,itemColorActiveHover:se,itemColorDisabled:ke,itemBorder:Me,itemBorderHover:He,itemBorderPressed:Qe,itemBorderActive:Ve,itemBorderDisabled:We,itemBorderRadius:ot,jumperTextColor:Xe,jumperTextColorDisabled:Pe,buttonColor:ze,buttonColorHover:z,buttonColorPressed:q,[me("itemPadding",R)]:ce,[me("itemMargin",R)]:Ce,[me("inputWidth",R)]:Re,[me("selectWidth",R)]:Te,[me("inputMargin",R)]:Ee,[me("selectMargin",R)]:Ae,[me("jumperFontSize",R)]:Ge,[me("prefixMargin",R)]:ut,[me("suffixMargin",R)]:et,[me("itemSize",R)]:jt,[me("buttonIconSize",R)]:Xt,[me("itemFontSize",R)]:Yt,[`${me("itemMargin",R)}Rtl`]:Qt,[`${me("inputMargin",R)}Rtl`]:eo},common:{cubicBezierEaseInOut:po}}=i.value;return{"--n-prefix-margin":ut,"--n-suffix-margin":et,"--n-item-font-size":Yt,"--n-select-width":Te,"--n-select-margin":Ae,"--n-input-width":Re,"--n-input-margin":Ee,"--n-input-margin-rtl":eo,"--n-item-size":jt,"--n-item-text-color":le,"--n-item-text-color-disabled":te,"--n-item-text-color-hover":re,"--n-item-text-color-active":ne,"--n-item-text-color-pressed":xe,"--n-item-color":oe,"--n-item-color-hover":ye,"--n-item-color-disabled":ke,"--n-item-color-active":ee,"--n-item-color-active-hover":se,"--n-item-color-pressed":be,"--n-item-border":Me,"--n-item-border-hover":He,"--n-item-border-disabled":We,"--n-item-border-active":Ve,"--n-item-border-pressed":Qe,"--n-item-padding":ce,"--n-item-border-radius":ot,"--n-bezier":po,"--n-jumper-font-size":Ge,"--n-jumper-text-color":Xe,"--n-jumper-text-color-disabled":Pe,"--n-item-margin":Ce,"--n-item-margin-rtl":Qt,"--n-button-icon-size":Xt,"--n-button-icon-color":$,"--n-button-icon-color-hover":K,"--n-button-icon-color-pressed":ie,"--n-button-color-hover":z,"--n-button-color":ze,"--n-button-color-pressed":q,"--n-button-border":ae,"--n-button-border-hover":_e,"--n-button-border-pressed":k}}),de=n?gt("pagination",F(()=>{let R="";const{size:ae}=e;return R+=ae[0],R}),X,e):void 0;return{rtlEnabled:W,mergedClsPrefix:o,locale:l,selfRef:a,mergedPage:d,pageItems:F(()=>y.value.items),mergedItemCount:M,jumperValue:h,pageSizeOptions:B,mergedPageSize:u,inputSize:S,selectSize:E,mergedTheme:i,mergedPageCount:f,startIndex:j,endIndex:_,showFastForwardMenu:b,showFastBackwardMenu:m,fastForwardActive:p,fastBackwardActive:g,handleMenuSelect:T,handleFastForwardMouseenter:x,handleFastForwardMouseleave:w,handleFastBackwardMouseenter:C,handleFastBackwardMouseleave:P,handleJumperInput:we,handleBackwardClick:pe,handleForwardClick:J,handlePageItemClick:he,handleSizePickerChange:O,handleQuickJumperChange:Q,cssVars:n?void 0:X,themeClass:de==null?void 0:de.themeClass,onRender:de==null?void 0:de.onRender}},render(){const{$slots:e,mergedClsPrefix:t,disabled:o,cssVars:n,mergedPage:r,mergedPageCount:i,pageItems:l,showSizePicker:a,showQuickJumper:s,mergedTheme:c,locale:d,inputSize:u,selectSize:f,mergedPageSize:h,pageSizeOptions:p,jumperValue:g,simple:b,prev:m,next:x,prefix:w,suffix:C,label:P,goto:T,handleJumperInput:y,handleSizePickerChange:B,handleBackwardClick:S,handlePageItemClick:E,handleForwardClick:j,handleQuickJumperChange:_,onRender:M}=this;M==null||M();const W=w||e.prefix,D=C||e.suffix,Z=m||e.prev,U=x||e.next,J=P||e.label;return v("div",{ref:"selfRef",class:[`${t}-pagination`,this.themeClass,this.rtlEnabled&&`${t}-pagination--rtl`,o&&`${t}-pagination--disabled`,b&&`${t}-pagination--simple`],style:n},W?v("div",{class:`${t}-pagination-prefix`},W({page:r,pageSize:h,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null,this.displayOrder.map(pe=>{switch(pe){case"pages":return v(it,null,v("div",{class:[`${t}-pagination-item`,!Z&&`${t}-pagination-item--button`,(r<=1||r>i||o)&&`${t}-pagination-item--disabled`],onClick:S},Z?Z({page:r,pageSize:h,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount}):v(Tt,{clsPrefix:t},{default:()=>this.rtlEnabled?v(lv,null):v(ov,null)})),b?v(it,null,v("div",{class:`${t}-pagination-quick-jumper`},v(Av,{value:g,onUpdateValue:y,size:u,placeholder:"",disabled:o,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:_}))," /"," ",i):l.map((fe,N)=>{let O,A,Q;const{type:he}=fe;switch(he){case"page":const X=fe.label;J?O=J({type:"page",node:X,active:fe.active}):O=X;break;case"fast-forward":const de=this.fastForwardActive?v(Tt,{clsPrefix:t},{default:()=>this.rtlEnabled?v(rv,null):v(iv,null)}):v(Tt,{clsPrefix:t},{default:()=>v(av,null)});J?O=J({type:"fast-forward",node:de,active:this.fastForwardActive||this.showFastForwardMenu}):O=de,A=this.handleFastForwardMouseenter,Q=this.handleFastForwardMouseleave;break;case"fast-backward":const R=this.fastBackwardActive?v(Tt,{clsPrefix:t},{default:()=>this.rtlEnabled?v(iv,null):v(rv,null)}):v(Tt,{clsPrefix:t},{default:()=>v(av,null)});J?O=J({type:"fast-backward",node:R,active:this.fastBackwardActive||this.showFastBackwardMenu}):O=R,A=this.handleFastBackwardMouseenter,Q=this.handleFastBackwardMouseleave;break}const we=v("div",{key:N,class:[`${t}-pagination-item`,fe.active&&`${t}-pagination-item--active`,he!=="page"&&(he==="fast-backward"&&this.showFastBackwardMenu||he==="fast-forward"&&this.showFastForwardMenu)&&`${t}-pagination-item--hover`,o&&`${t}-pagination-item--disabled`,he==="page"&&`${t}-pagination-item--clickable`],onClick:()=>{E(fe)},onMouseenter:A,onMouseleave:Q},O);if(he==="page"&&!fe.mayBeFastBackward&&!fe.mayBeFastForward)return we;{const X=fe.type==="page"?fe.mayBeFastBackward?"fast-backward":"fast-forward":fe.type;return fe.type!=="page"&&!fe.options?we:v(Lk,{to:this.to,key:X,disabled:o,trigger:"hover",virtualScroll:!0,style:{width:"60px"},theme:c.peers.Popselect,themeOverrides:c.peerOverrides.Popselect,builtinThemeOverrides:{peers:{InternalSelectMenu:{height:"calc(var(--n-option-height) * 4.6)"}}},nodeProps:()=>({style:{justifyContent:"center"}}),show:he==="page"?!1:he==="fast-backward"?this.showFastBackwardMenu:this.showFastForwardMenu,onUpdateShow:de=>{he!=="page"&&(de?he==="fast-backward"?this.showFastBackwardMenu=de:this.showFastForwardMenu=de:(this.showFastBackwardMenu=!1,this.showFastForwardMenu=!1))},options:fe.type!=="page"&&fe.options?fe.options:[],onUpdateValue:this.handleMenuSelect,scrollable:!0,showCheckmark:!1},{default:()=>we})}}),v("div",{class:[`${t}-pagination-item`,!U&&`${t}-pagination-item--button`,{[`${t}-pagination-item--disabled`]:r<1||r>=i||o}],onClick:j},U?U({page:r,pageSize:h,pageCount:i,itemCount:this.mergedItemCount,startIndex:this.startIndex,endIndex:this.endIndex}):v(Tt,{clsPrefix:t},{default:()=>this.rtlEnabled?v(ov,null):v(lv,null)})));case"size-picker":return!b&&a?v(Vk,Object.assign({consistentMenuWidth:!1,placeholder:"",showCheckmark:!1,to:this.to},this.selectProps,{size:f,options:p,value:h,disabled:o,theme:c.peers.Select,themeOverrides:c.peerOverrides.Select,onUpdateValue:B})):null;case"quick-jumper":return!b&&s?v("div",{class:`${t}-pagination-quick-jumper`},T?T():Mo(this.$slots.goto,()=>[d.goto]),v(Av,{value:g,onUpdateValue:y,size:u,placeholder:"",disabled:o,theme:c.peers.Input,themeOverrides:c.peerOverrides.Input,onChange:_})):null;default:return null}}),D?v("div",{class:`${t}-pagination-suffix`},D({page:r,pageSize:h,pageCount:i,startIndex:this.startIndex,endIndex:this.endIndex,itemCount:this.mergedItemCount})):null)}}),Zk={padding:"4px 0",optionIconSizeSmall:"14px",optionIconSizeMedium:"16px",optionIconSizeLarge:"16px",optionIconSizeHuge:"18px",optionSuffixWidthSmall:"14px",optionSuffixWidthMedium:"14px",optionSuffixWidthLarge:"16px",optionSuffixWidthHuge:"16px",optionIconSuffixWidthSmall:"32px",optionIconSuffixWidthMedium:"32px",optionIconSuffixWidthLarge:"36px",optionIconSuffixWidthHuge:"36px",optionPrefixWidthSmall:"14px",optionPrefixWidthMedium:"14px",optionPrefixWidthLarge:"16px",optionPrefixWidthHuge:"16px",optionIconPrefixWidthSmall:"36px",optionIconPrefixWidthMedium:"36px",optionIconPrefixWidthLarge:"40px",optionIconPrefixWidthHuge:"40px"};function Jk(e){const{primaryColor:t,textColor2:o,dividerColor:n,hoverColor:r,popoverColor:i,invertedColor:l,borderRadius:a,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:u,heightSmall:f,heightMedium:h,heightLarge:p,heightHuge:g,textColor3:b,opacityDisabled:m}=e;return Object.assign(Object.assign({},Zk),{optionHeightSmall:f,optionHeightMedium:h,optionHeightLarge:p,optionHeightHuge:g,borderRadius:a,fontSizeSmall:s,fontSizeMedium:c,fontSizeLarge:d,fontSizeHuge:u,optionTextColor:o,optionTextColorHover:o,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:n,suffixColor:o,prefixColor:o,optionColorHover:r,optionColorActive:Le(t,{alpha:.1}),groupHeaderTextColor:b,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:l,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:m})}const zc={name:"Dropdown",common:xt,peers:{Popover:Fr},self:Jk},Qk={padding:"8px 14px"};function ez(e){const{borderRadius:t,boxShadow2:o,baseColor:n}=e;return Object.assign(Object.assign({},Qk),{borderRadius:t,boxShadow:o,color:Ue(n,"rgba(0, 0, 0, .85)"),textColor:n})}const Tc={name:"Tooltip",common:xt,peers:{Popover:Fr},self:ez},Gv={name:"Ellipsis",common:xt,peers:{Tooltip:Tc}},tz={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};function oz(e){const{borderColor:t,primaryColor:o,baseColor:n,textColorDisabled:r,inputColorDisabled:i,textColor2:l,opacityDisabled:a,borderRadius:s,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:u,heightSmall:f,heightMedium:h,heightLarge:p,lineHeight:g}=e;return Object.assign(Object.assign({},tz),{labelLineHeight:g,buttonHeightSmall:f,buttonHeightMedium:h,buttonHeightLarge:p,fontSizeSmall:c,fontSizeMedium:d,fontSizeLarge:u,boxShadow:`inset 0 0 0 1px ${t}`,boxShadowActive:`inset 0 0 0 1px ${o}`,boxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${Le(o,{alpha:.2})}`,boxShadowHover:`inset 0 0 0 1px ${o}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:n,colorDisabled:i,colorActive:"#0000",textColor:l,textColorDisabled:r,dotColorActive:o,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:o,buttonBorderColorHover:t,buttonColor:n,buttonColorActive:n,buttonTextColor:l,buttonTextColorActive:o,buttonTextColorHover:o,opacityDisabled:a,buttonBoxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${Le(o,{alpha:.3})}`,buttonBoxShadowHover:"inset 0 0 0 1px #0000",buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s})}const $c={name:"Radio",common:xt,self:oz},nz={thPaddingSmall:"8px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"8px",tdPaddingMedium:"12px",tdPaddingLarge:"12px",sorterSize:"15px",resizableContainerSize:"8px",resizableSize:"2px",filterSize:"15px",paginationMargin:"12px 0 0 0",emptyPadding:"48px 0",actionPadding:"8px 12px",actionButtonMargin:"0 8px 0 0"};function rz(e){const{cardColor:t,modalColor:o,popoverColor:n,textColor2:r,textColor1:i,tableHeaderColor:l,tableColorHover:a,iconColor:s,primaryColor:c,fontWeightStrong:d,borderRadius:u,lineHeight:f,fontSizeSmall:h,fontSizeMedium:p,fontSizeLarge:g,dividerColor:b,heightSmall:m,opacityDisabled:x,tableColorStriped:w}=e;return Object.assign(Object.assign({},nz),{actionDividerColor:b,lineHeight:f,borderRadius:u,fontSizeSmall:h,fontSizeMedium:p,fontSizeLarge:g,borderColor:Ue(t,b),tdColorHover:Ue(t,a),tdColorSorting:Ue(t,a),tdColorStriped:Ue(t,w),thColor:Ue(t,l),thColorHover:Ue(Ue(t,l),a),thColorSorting:Ue(Ue(t,l),a),tdColor:t,tdTextColor:r,thTextColor:i,thFontWeight:d,thButtonColorHover:a,thIconColor:s,thIconColorActive:c,borderColorModal:Ue(o,b),tdColorHoverModal:Ue(o,a),tdColorSortingModal:Ue(o,a),tdColorStripedModal:Ue(o,w),thColorModal:Ue(o,l),thColorHoverModal:Ue(Ue(o,l),a),thColorSortingModal:Ue(Ue(o,l),a),tdColorModal:o,borderColorPopover:Ue(n,b),tdColorHoverPopover:Ue(n,a),tdColorSortingPopover:Ue(n,a),tdColorStripedPopover:Ue(n,w),thColorPopover:Ue(n,l),thColorHoverPopover:Ue(Ue(n,l),a),thColorSortingPopover:Ue(Ue(n,l),a),tdColorPopover:n,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:c,loadingSize:m,opacityLoading:x})}const iz={name:"DataTable",common:xt,peers:{Button:Mv,Checkbox:Bv,Radio:$c,Pagination:jv,Scrollbar:Er,Empty:bc,Popover:Fr,Ellipsis:Gv,Dropdown:zc},self:rz},lz=Object.assign(Object.assign({},Ie.props),{onUnstableColumnResize:Function,pagination:{type:[Object,Boolean],default:!1},paginateSinglePage:{type:Boolean,default:!0},minHeight:[Number,String],maxHeight:[Number,String],columns:{type:Array,default:()=>[]},rowClassName:[String,Function],rowProps:Function,rowKey:Function,summary:[Function],data:{type:Array,default:()=>[]},loading:Boolean,bordered:{type:Boolean,default:void 0},bottomBordered:{type:Boolean,default:void 0},striped:Boolean,scrollX:[Number,String],defaultCheckedRowKeys:{type:Array,default:()=>[]},checkedRowKeys:Array,singleLine:{type:Boolean,default:!0},singleColumn:Boolean,size:{type:String,default:"medium"},remote:Boolean,defaultExpandedRowKeys:{type:Array,default:[]},defaultExpandAll:Boolean,expandedRowKeys:Array,stickyExpandedRows:Boolean,virtualScroll:Boolean,virtualScrollX:Boolean,virtualScrollHeader:Boolean,headerHeight:{type:Number,default:28},heightForRow:Function,minRowHeight:{type:Number,default:28},tableLayout:{type:String,default:"auto"},allowCheckingNotLoaded:Boolean,cascade:{type:Boolean,default:!0},childrenKey:{type:String,default:"children"},indent:{type:Number,default:16},flexHeight:Boolean,summaryPlacement:{type:String,default:"bottom"},paginationBehaviorOnFilter:{type:String,default:"current"},filterIconPopoverProps:Object,scrollbarProps:Object,renderCell:Function,renderExpandIcon:Function,spinProps:{type:Object,default:{}},getCsvCell:Function,getCsvHeader:Function,onLoad:Function,"onUpdate:page":[Function,Array],onUpdatePage:[Function,Array],"onUpdate:pageSize":[Function,Array],onUpdatePageSize:[Function,Array],"onUpdate:sorter":[Function,Array],onUpdateSorter:[Function,Array],"onUpdate:filters":[Function,Array],onUpdateFilters:[Function,Array],"onUpdate:checkedRowKeys":[Function,Array],onUpdateCheckedRowKeys:[Function,Array],"onUpdate:expandedRowKeys":[Function,Array],onUpdateExpandedRowKeys:[Function,Array],onScroll:Function,onPageChange:[Function,Array],onPageSizeChange:[Function,Array],onSorterChange:[Function,Array],onFiltersChange:[Function,Array],onCheckedRowKeysChange:[Function,Array]}),wo="n-data-table",qv=40,Xv=40;function Yv(e){if(e.type==="selection")return e.width===void 0?qv:mn(e.width);if(e.type==="expand")return e.width===void 0?Xv:mn(e.width);if(!("children"in e))return typeof e.width=="string"?mn(e.width):e.width}function az(e){var t,o;if(e.type==="selection")return zt((t=e.width)!==null&&t!==void 0?t:qv);if(e.type==="expand")return zt((o=e.width)!==null&&o!==void 0?o:Xv);if(!("children"in e))return zt(e.width)}function So(e){return e.type==="selection"?"__n_selection__":e.type==="expand"?"__n_expand__":e.key}function Zv(e){return e&&(typeof e=="object"?Object.assign({},e):e)}function sz(e){return e==="ascend"?1:e==="descend"?-1:0}function cz(e,t,o){return o!==void 0&&(e=Math.min(e,typeof o=="number"?o:Number.parseFloat(o))),t!==void 0&&(e=Math.max(e,typeof t=="number"?t:Number.parseFloat(t))),e}function dz(e,t){if(t!==void 0)return{width:t,minWidth:t,maxWidth:t};const o=az(e),{minWidth:n,maxWidth:r}=e;return{width:o,minWidth:zt(n)||o,maxWidth:zt(r)}}function uz(e,t,o){return typeof o=="function"?o(e,t):o||""}function Ec(e){return e.filterOptionValues!==void 0||e.filterOptionValue===void 0&&e.defaultFilterOptionValues!==void 0}function Fc(e){return"children"in e?!1:!!e.sorter}function Jv(e){return"children"in e&&e.children.length?!1:!!e.resizable}function Qv(e){return"children"in e?!1:!!e.filter&&(!!e.filterOptions||!!e.renderFilterMenu)}function eg(e){if(e){if(e==="descend")return"ascend"}else return"descend";return!1}function fz(e,t){if(e.sorter===void 0)return null;const{customNextSortOrder:o}=e;return t===null||t.columnKey!==e.key?{columnKey:e.key,sorter:e.sorter,order:eg(!1)}:Object.assign(Object.assign({},t),{order:(o||eg)(t.order)})}function tg(e,t){return t.find(o=>o.columnKey===e.key&&o.order)!==void 0}function hz(e){return typeof e=="string"?e.replace(/,/g,"\\,"):e==null?"":`${e}`.replace(/,/g,"\\,")}function pz(e,t,o,n){const r=e.filter(a=>a.type!=="expand"&&a.type!=="selection"&&a.allowExport!==!1),i=r.map(a=>n?n(a):a.title).join(","),l=t.map(a=>r.map(s=>o?o(a[s.key],a,s):hz(a[s.key])).join(","));return[i,...l].join(`
|
||
`)}const vz=ve({name:"DataTableBodyCheckbox",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,mergedInderminateRowKeySetRef:o}=$e(wo);return()=>{const{rowKey:n}=e;return v(Pc,{privateInsideTable:!0,disabled:e.disabled,indeterminate:o.value.has(n),checked:t.value.has(n),onUpdateChecked:e.onUpdateChecked})}}}),gz=I("radio",`
|
||
line-height: var(--n-label-line-height);
|
||
outline: none;
|
||
position: relative;
|
||
user-select: none;
|
||
-webkit-user-select: none;
|
||
display: inline-flex;
|
||
align-items: flex-start;
|
||
flex-wrap: nowrap;
|
||
font-size: var(--n-font-size);
|
||
word-break: break-word;
|
||
`,[Y("checked",[H("dot",`
|
||
background-color: var(--n-color-active);
|
||
`)]),H("dot-wrapper",`
|
||
position: relative;
|
||
flex-shrink: 0;
|
||
flex-grow: 0;
|
||
width: var(--n-radio-size);
|
||
`),I("radio-input",`
|
||
position: absolute;
|
||
border: 0;
|
||
width: 0;
|
||
height: 0;
|
||
opacity: 0;
|
||
margin: 0;
|
||
`),H("dot",`
|
||
position: absolute;
|
||
top: 50%;
|
||
left: 0;
|
||
transform: translateY(-50%);
|
||
height: var(--n-radio-size);
|
||
width: var(--n-radio-size);
|
||
background: var(--n-color);
|
||
box-shadow: var(--n-box-shadow);
|
||
border-radius: 50%;
|
||
transition:
|
||
background-color .3s var(--n-bezier),
|
||
box-shadow .3s var(--n-bezier);
|
||
`,[L("&::before",`
|
||
content: "";
|
||
opacity: 0;
|
||
position: absolute;
|
||
left: 4px;
|
||
top: 4px;
|
||
height: calc(100% - 8px);
|
||
width: calc(100% - 8px);
|
||
border-radius: 50%;
|
||
transform: scale(.8);
|
||
background: var(--n-dot-color-active);
|
||
transition:
|
||
opacity .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier),
|
||
transform .3s var(--n-bezier);
|
||
`),Y("checked",{boxShadow:"var(--n-box-shadow-active)"},[L("&::before",`
|
||
opacity: 1;
|
||
transform: scale(1);
|
||
`)])]),H("label",`
|
||
color: var(--n-text-color);
|
||
padding: var(--n-label-padding);
|
||
font-weight: var(--n-label-font-weight);
|
||
display: inline-block;
|
||
transition: color .3s var(--n-bezier);
|
||
`),Ye("disabled",`
|
||
cursor: pointer;
|
||
`,[L("&:hover",[H("dot",{boxShadow:"var(--n-box-shadow-hover)"})]),Y("focus",[L("&:not(:active)",[H("dot",{boxShadow:"var(--n-box-shadow-focus)"})])])]),Y("disabled",`
|
||
cursor: not-allowed;
|
||
`,[H("dot",{boxShadow:"var(--n-box-shadow-disabled)",backgroundColor:"var(--n-color-disabled)"},[L("&::before",{backgroundColor:"var(--n-dot-color-disabled)"}),Y("checked",`
|
||
opacity: 1;
|
||
`)]),H("label",{color:"var(--n-text-color-disabled)"}),I("radio-input",`
|
||
cursor: not-allowed;
|
||
`)])]),mz={name:String,value:{type:[String,Number,Boolean],default:"on"},checked:{type:Boolean,default:void 0},defaultChecked:Boolean,disabled:{type:Boolean,default:void 0},label:String,size:String,onUpdateChecked:[Function,Array],"onUpdate:checked":[Function,Array],checkedValue:{type:Boolean,default:void 0}},og="n-radio-group";function bz(e){const t=$e(og,null),o=qn(e,{mergedSize(x){const{size:w}=e;if(w!==void 0)return w;if(t){const{mergedSizeRef:{value:C}}=t;if(C!==void 0)return C}return x?x.mergedSize.value:"medium"},mergedDisabled(x){return!!(e.disabled||t!=null&&t.disabledRef.value||x!=null&&x.disabled.value)}}),{mergedSizeRef:n,mergedDisabledRef:r}=o,i=V(null),l=V(null),a=V(e.defaultChecked),s=Se(e,"checked"),c=It(s,a),d=Ze(()=>t?t.valueRef.value===e.value:c.value),u=Ze(()=>{const{name:x}=e;if(x!==void 0)return x;if(t)return t.nameRef.value}),f=V(!1);function h(){if(t){const{doUpdateValue:x}=t,{value:w}=e;ge(x,w)}else{const{onUpdateChecked:x,"onUpdate:checked":w}=e,{nTriggerFormInput:C,nTriggerFormChange:P}=o;x&&ge(x,!0),w&&ge(w,!0),C(),P(),a.value=!0}}function p(){r.value||d.value||h()}function g(){p(),i.value&&(i.value.checked=d.value)}function b(){f.value=!1}function m(){f.value=!0}return{mergedClsPrefix:t?t.mergedClsPrefixRef:Je(e).mergedClsPrefixRef,inputRef:i,labelRef:l,mergedName:u,mergedDisabled:r,renderSafeChecked:d,focus:f,mergedSize:n,handleRadioInputChange:g,handleRadioInputBlur:b,handleRadioInputFocus:m}}const xz=Object.assign(Object.assign({},Ie.props),mz),ng=ve({name:"Radio",props:xz,setup(e){const t=bz(e),o=Ie("Radio","-radio",gz,$c,e,t.mergedClsPrefix),n=F(()=>{const{mergedSize:{value:c}}=t,{common:{cubicBezierEaseInOut:d},self:{boxShadow:u,boxShadowActive:f,boxShadowDisabled:h,boxShadowFocus:p,boxShadowHover:g,color:b,colorDisabled:m,colorActive:x,textColor:w,textColorDisabled:C,dotColorActive:P,dotColorDisabled:T,labelPadding:y,labelLineHeight:B,labelFontWeight:S,[me("fontSize",c)]:E,[me("radioSize",c)]:j}}=o.value;return{"--n-bezier":d,"--n-label-line-height":B,"--n-label-font-weight":S,"--n-box-shadow":u,"--n-box-shadow-active":f,"--n-box-shadow-disabled":h,"--n-box-shadow-focus":p,"--n-box-shadow-hover":g,"--n-color":b,"--n-color-active":x,"--n-color-disabled":m,"--n-dot-color-active":P,"--n-dot-color-disabled":T,"--n-font-size":E,"--n-radio-size":j,"--n-text-color":w,"--n-text-color-disabled":C,"--n-label-padding":y}}),{inlineThemeDisabled:r,mergedClsPrefixRef:i,mergedRtlRef:l}=Je(e),a=qt("Radio",l,i),s=r?gt("radio",F(()=>t.mergedSize.value[0]),n,e):void 0;return Object.assign(t,{rtlEnabled:a,cssVars:r?void 0:n,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender})},render(){const{$slots:e,mergedClsPrefix:t,onRender:o,label:n}=this;return o==null||o(),v("label",{class:[`${t}-radio`,this.themeClass,this.rtlEnabled&&`${t}-radio--rtl`,this.mergedDisabled&&`${t}-radio--disabled`,this.renderSafeChecked&&`${t}-radio--checked`,this.focus&&`${t}-radio--focus`],style:this.cssVars},v("div",{class:`${t}-radio__dot-wrapper`}," ",v("div",{class:[`${t}-radio__dot`,this.renderSafeChecked&&`${t}-radio__dot--checked`]}),v("input",{ref:"inputRef",type:"radio",class:`${t}-radio-input`,value:this.value,name:this.mergedName,checked:this.renderSafeChecked,disabled:this.mergedDisabled,onChange:this.handleRadioInputChange,onFocus:this.handleRadioInputFocus,onBlur:this.handleRadioInputBlur})),pt(e.default,r=>!r&&!n?null:v("div",{ref:"labelRef",class:`${t}-radio__label`},r||n)))}}),yz=I("radio-group",`
|
||
display: inline-block;
|
||
font-size: var(--n-font-size);
|
||
`,[H("splitor",`
|
||
display: inline-block;
|
||
vertical-align: bottom;
|
||
width: 1px;
|
||
transition:
|
||
background-color .3s var(--n-bezier),
|
||
opacity .3s var(--n-bezier);
|
||
background: var(--n-button-border-color);
|
||
`,[Y("checked",{backgroundColor:"var(--n-button-border-color-active)"}),Y("disabled",{opacity:"var(--n-opacity-disabled)"})]),Y("button-group",`
|
||
white-space: nowrap;
|
||
height: var(--n-height);
|
||
line-height: var(--n-height);
|
||
`,[I("radio-button",{height:"var(--n-height)",lineHeight:"var(--n-height)"}),H("splitor",{height:"var(--n-height)"})]),I("radio-button",`
|
||
vertical-align: bottom;
|
||
outline: none;
|
||
position: relative;
|
||
user-select: none;
|
||
-webkit-user-select: none;
|
||
display: inline-block;
|
||
box-sizing: border-box;
|
||
padding-left: 14px;
|
||
padding-right: 14px;
|
||
white-space: nowrap;
|
||
transition:
|
||
background-color .3s var(--n-bezier),
|
||
opacity .3s var(--n-bezier),
|
||
border-color .3s var(--n-bezier),
|
||
color .3s var(--n-bezier);
|
||
background: var(--n-button-color);
|
||
color: var(--n-button-text-color);
|
||
border-top: 1px solid var(--n-button-border-color);
|
||
border-bottom: 1px solid var(--n-button-border-color);
|
||
`,[I("radio-input",`
|
||
pointer-events: none;
|
||
position: absolute;
|
||
border: 0;
|
||
border-radius: inherit;
|
||
left: 0;
|
||
right: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
opacity: 0;
|
||
z-index: 1;
|
||
`),H("state-border",`
|
||
z-index: 1;
|
||
pointer-events: none;
|
||
position: absolute;
|
||
box-shadow: var(--n-button-box-shadow);
|
||
transition: box-shadow .3s var(--n-bezier);
|
||
left: -1px;
|
||
bottom: -1px;
|
||
right: -1px;
|
||
top: -1px;
|
||
`),L("&:first-child",`
|
||
border-top-left-radius: var(--n-button-border-radius);
|
||
border-bottom-left-radius: var(--n-button-border-radius);
|
||
border-left: 1px solid var(--n-button-border-color);
|
||
`,[H("state-border",`
|
||
border-top-left-radius: var(--n-button-border-radius);
|
||
border-bottom-left-radius: var(--n-button-border-radius);
|
||
`)]),L("&:last-child",`
|
||
border-top-right-radius: var(--n-button-border-radius);
|
||
border-bottom-right-radius: var(--n-button-border-radius);
|
||
border-right: 1px solid var(--n-button-border-color);
|
||
`,[H("state-border",`
|
||
border-top-right-radius: var(--n-button-border-radius);
|
||
border-bottom-right-radius: var(--n-button-border-radius);
|
||
`)]),Ye("disabled",`
|
||
cursor: pointer;
|
||
`,[L("&:hover",[H("state-border",`
|
||
transition: box-shadow .3s var(--n-bezier);
|
||
box-shadow: var(--n-button-box-shadow-hover);
|
||
`),Ye("checked",{color:"var(--n-button-text-color-hover)"})]),Y("focus",[L("&:not(:active)",[H("state-border",{boxShadow:"var(--n-button-box-shadow-focus)"})])])]),Y("checked",`
|
||
background: var(--n-button-color-active);
|
||
color: var(--n-button-text-color-active);
|
||
border-color: var(--n-button-border-color-active);
|
||
`),Y("disabled",`
|
||
cursor: not-allowed;
|
||
opacity: var(--n-opacity-disabled);
|
||
`)])]);function Cz(e,t,o){var n;const r=[];let i=!1;for(let l=0;l<e.length;++l){const a=e[l],s=(n=a.type)===null||n===void 0?void 0:n.name;s==="RadioButton"&&(i=!0);const c=a.props;if(s!=="RadioButton"){r.push(a);continue}if(l===0)r.push(a);else{const d=r[r.length-1].props,u=t===d.value,f=d.disabled,h=t===c.value,p=c.disabled,g=(u?2:0)+(f?0:1),b=(h?2:0)+(p?0:1),m={[`${o}-radio-group__splitor--disabled`]:f,[`${o}-radio-group__splitor--checked`]:u},x={[`${o}-radio-group__splitor--disabled`]:p,[`${o}-radio-group__splitor--checked`]:h},w=g<b?x:m;r.push(v("div",{class:[`${o}-radio-group__splitor`,w]}),a)}}return{children:r,isButtonGroup:i}}const wz=Object.assign(Object.assign({},Ie.props),{name:String,value:[String,Number,Boolean],defaultValue:{type:[String,Number,Boolean],default:null},size:String,disabled:{type:Boolean,default:void 0},"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array]}),Sz=ve({name:"RadioGroup",props:wz,setup(e){const t=V(null),{mergedSizeRef:o,mergedDisabledRef:n,nTriggerFormChange:r,nTriggerFormInput:i,nTriggerFormBlur:l,nTriggerFormFocus:a}=qn(e),{mergedClsPrefixRef:s,inlineThemeDisabled:c,mergedRtlRef:d}=Je(e),u=Ie("Radio","-radio-group",yz,$c,e,s),f=V(e.defaultValue),h=Se(e,"value"),p=It(h,f);function g(P){const{onUpdateValue:T,"onUpdate:value":y}=e;T&&ge(T,P),y&&ge(y,P),f.value=P,r(),i()}function b(P){const{value:T}=t;T&&(T.contains(P.relatedTarget)||a())}function m(P){const{value:T}=t;T&&(T.contains(P.relatedTarget)||l())}tt(og,{mergedClsPrefixRef:s,nameRef:Se(e,"name"),valueRef:p,disabledRef:n,mergedSizeRef:o,doUpdateValue:g});const x=qt("Radio",d,s),w=F(()=>{const{value:P}=o,{common:{cubicBezierEaseInOut:T},self:{buttonBorderColor:y,buttonBorderColorActive:B,buttonBorderRadius:S,buttonBoxShadow:E,buttonBoxShadowFocus:j,buttonBoxShadowHover:_,buttonColor:M,buttonColorActive:W,buttonTextColor:D,buttonTextColorActive:Z,buttonTextColorHover:U,opacityDisabled:J,[me("buttonHeight",P)]:pe,[me("fontSize",P)]:fe}}=u.value;return{"--n-font-size":fe,"--n-bezier":T,"--n-button-border-color":y,"--n-button-border-color-active":B,"--n-button-border-radius":S,"--n-button-box-shadow":E,"--n-button-box-shadow-focus":j,"--n-button-box-shadow-hover":_,"--n-button-color":M,"--n-button-color-active":W,"--n-button-text-color":D,"--n-button-text-color-hover":U,"--n-button-text-color-active":Z,"--n-height":pe,"--n-opacity-disabled":J}}),C=c?gt("radio-group",F(()=>o.value[0]),w,e):void 0;return{selfElRef:t,rtlEnabled:x,mergedClsPrefix:s,mergedValue:p,handleFocusout:m,handleFocusin:b,cssVars:c?void 0:w,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender}},render(){var e;const{mergedValue:t,mergedClsPrefix:o,handleFocusin:n,handleFocusout:r}=this,{children:i,isButtonGroup:l}=Cz(Ll(PC(this)),t,o);return(e=this.onRender)===null||e===void 0||e.call(this),v("div",{onFocusin:n,onFocusout:r,ref:"selfElRef",class:[`${o}-radio-group`,this.rtlEnabled&&`${o}-radio-group--rtl`,this.themeClass,l&&`${o}-radio-group--button-group`],style:this.cssVars},i)}}),Rz=ve({name:"DataTableBodyRadio",props:{rowKey:{type:[String,Number],required:!0},disabled:{type:Boolean,required:!0},onUpdateChecked:{type:Function,required:!0}},setup(e){const{mergedCheckedRowKeySetRef:t,componentId:o}=$e(wo);return()=>{const{rowKey:n}=e;return v(ng,{name:o,disabled:e.disabled,checked:t.value.has(n),onUpdateChecked:e.onUpdateChecked})}}}),Pz=Object.assign(Object.assign({},Ar),Ie.props),rg=ve({name:"Tooltip",props:Pz,slots:Object,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=Je(e),o=Ie("Tooltip","-tooltip",void 0,Tc,e,t),n=V(null);return Object.assign(Object.assign({},{syncPosition(){n.value.syncPosition()},setShow(i){n.value.setShow(i)}}),{popoverRef:n,mergedTheme:o,popoverThemeOverrides:F(()=>o.value.self)})},render(){const{mergedTheme:e,internalExtraClass:t}=this;return v(zi,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),ig=I("ellipsis",{overflow:"hidden"},[Ye("line-clamp",`
|
||
white-space: nowrap;
|
||
display: inline-block;
|
||
vertical-align: bottom;
|
||
max-width: 100%;
|
||
`),Y("line-clamp",`
|
||
display: -webkit-inline-box;
|
||
-webkit-box-orient: vertical;
|
||
`),Y("cursor-pointer",`
|
||
cursor: pointer;
|
||
`)]);function Ac(e){return`${e}-ellipsis--line-clamp`}function Ic(e,t){return`${e}-ellipsis--cursor-${t}`}const lg=Object.assign(Object.assign({},Ie.props),{expandTrigger:String,lineClamp:[Number,String],tooltip:{type:[Boolean,Object],default:!0}}),Oc=ve({name:"Ellipsis",inheritAttrs:!1,props:lg,slots:Object,setup(e,{slots:t,attrs:o}){const n=ep(),r=Ie("Ellipsis","-ellipsis",ig,Gv,e,n),i=V(null),l=V(null),a=V(null),s=V(!1),c=F(()=>{const{lineClamp:b}=e,{value:m}=s;return b!==void 0?{textOverflow:"","-webkit-line-clamp":m?"":b}:{textOverflow:m?"":"ellipsis","-webkit-line-clamp":""}});function d(){let b=!1;const{value:m}=s;if(m)return!0;const{value:x}=i;if(x){const{lineClamp:w}=e;if(h(x),w!==void 0)b=x.scrollHeight<=x.offsetHeight;else{const{value:C}=l;C&&(b=C.getBoundingClientRect().width<=x.getBoundingClientRect().width)}p(x,b)}return b}const u=F(()=>e.expandTrigger==="click"?()=>{var b;const{value:m}=s;m&&((b=a.value)===null||b===void 0||b.setShow(!1)),s.value=!m}:void 0);rl(()=>{var b;e.tooltip&&((b=a.value)===null||b===void 0||b.setShow(!1))});const f=()=>v("span",Object.assign({},xo(o,{class:[`${n.value}-ellipsis`,e.lineClamp!==void 0?Ac(n.value):void 0,e.expandTrigger==="click"?Ic(n.value,"pointer"):void 0],style:c.value}),{ref:"triggerRef",onClick:u.value,onMouseenter:e.expandTrigger==="click"?d:void 0}),e.lineClamp?t:v("span",{ref:"triggerInnerRef"},t));function h(b){if(!b)return;const m=c.value,x=Ac(n.value);e.lineClamp!==void 0?g(b,x,"add"):g(b,x,"remove");for(const w in m)b.style[w]!==m[w]&&(b.style[w]=m[w])}function p(b,m){const x=Ic(n.value,"pointer");e.expandTrigger==="click"&&!m?g(b,x,"add"):g(b,x,"remove")}function g(b,m,x){x==="add"?b.classList.contains(m)||b.classList.add(m):b.classList.contains(m)&&b.classList.remove(m)}return{mergedTheme:r,triggerRef:i,triggerInnerRef:l,tooltipRef:a,handleClick:u,renderTrigger:f,getTooltipDisabled:d}},render(){var e;const{tooltip:t,renderTrigger:o,$slots:n}=this;if(t){const{mergedTheme:r}=this;return v(rg,Object.assign({ref:"tooltipRef",placement:"top"},t,{getDisabled:this.getTooltipDisabled,theme:r.peers.Tooltip,themeOverrides:r.peerOverrides.Tooltip}),{trigger:o,default:(e=n.tooltip)!==null&&e!==void 0?e:n.default})}else return o()}}),_z=ve({name:"PerformantEllipsis",props:lg,inheritAttrs:!1,setup(e,{attrs:t,slots:o}){const n=V(!1),r=ep();return er("-ellipsis",ig,r),{mouseEntered:n,renderTrigger:()=>{const{lineClamp:l}=e,a=r.value;return v("span",Object.assign({},xo(t,{class:[`${a}-ellipsis`,l!==void 0?Ac(a):void 0,e.expandTrigger==="click"?Ic(a,"pointer"):void 0],style:l===void 0?{textOverflow:"ellipsis"}:{"-webkit-line-clamp":l}}),{onMouseenter:()=>{n.value=!0}}),l?o:v("span",null,o))}}},render(){return this.mouseEntered?v(Oc,xo({},this.$attrs,this.$props),this.$slots):this.renderTrigger()}}),kz=ve({name:"DataTableCell",props:{clsPrefix:{type:String,required:!0},row:{type:Object,required:!0},index:{type:Number,required:!0},column:{type:Object,required:!0},isSummary:Boolean,mergedTheme:{type:Object,required:!0},renderCell:Function},render(){var e;const{isSummary:t,column:o,row:n,renderCell:r}=this;let i;const{render:l,key:a,ellipsis:s}=o;if(l&&!t?i=l(n,this.index):t?i=(e=n[a])===null||e===void 0?void 0:e.value:i=r?r(ec(n,a),n,o):ec(n,a),s)if(typeof s=="object"){const{mergedTheme:c}=this;return o.ellipsisComponent==="performant-ellipsis"?v(_z,Object.assign({},s,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>i}):v(Oc,Object.assign({},s,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>i})}else return v("span",{class:`${this.clsPrefix}-data-table-td__ellipsis`},i);return i}}),ag=ve({name:"DataTableExpandTrigger",props:{clsPrefix:{type:String,required:!0},expanded:Boolean,loading:Boolean,onClick:{type:Function,required:!0},renderExpandIcon:{type:Function},rowData:{type:Object,required:!0}},render(){const{clsPrefix:e}=this;return v("div",{class:[`${e}-data-table-expand-trigger`,this.expanded&&`${e}-data-table-expand-trigger--expanded`],onClick:this.onClick,onMousedown:t=>{t.preventDefault()}},v(_i,null,{default:()=>this.loading?v(ki,{key:"loading",clsPrefix:this.clsPrefix,radius:85,strokeWidth:15,scale:.88}):this.renderExpandIcon?this.renderExpandIcon({expanded:this.expanded,rowData:this.rowData}):v(Tt,{clsPrefix:e,key:"base-icon"},{default:()=>v(dc,null)})}))}}),zz=ve({name:"DataTableFilterMenu",props:{column:{type:Object,required:!0},radioGroupName:{type:String,required:!0},multiple:{type:Boolean,required:!0},value:{type:[Array,String,Number],default:null},options:{type:Array,required:!0},onConfirm:{type:Function,required:!0},onClear:{type:Function,required:!0},onChange:{type:Function,required:!0}},setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=Je(e),n=qt("DataTable",o,t),{mergedClsPrefixRef:r,mergedThemeRef:i,localeRef:l}=$e(wo),a=V(e.value),s=F(()=>{const{value:p}=a;return Array.isArray(p)?p:null}),c=F(()=>{const{value:p}=a;return Ec(e.column)?Array.isArray(p)&&p.length&&p[0]||null:Array.isArray(p)?null:p});function d(p){e.onChange(p)}function u(p){e.multiple&&Array.isArray(p)?a.value=p:Ec(e.column)&&!Array.isArray(p)?a.value=[p]:a.value=p}function f(){d(a.value),e.onConfirm()}function h(){e.multiple||Ec(e.column)?d([]):d(null),e.onClear()}return{mergedClsPrefix:r,rtlEnabled:n,mergedTheme:i,locale:l,checkboxGroupValue:s,radioGroupValue:c,handleChange:u,handleConfirmClick:f,handleClearClick:h}},render(){const{mergedTheme:e,locale:t,mergedClsPrefix:o}=this;return v("div",{class:[`${o}-data-table-filter-menu`,this.rtlEnabled&&`${o}-data-table-filter-menu--rtl`]},v(tr,null,{default:()=>{const{checkboxGroupValue:n,handleChange:r}=this;return this.multiple?v(Ek,{value:n,class:`${o}-data-table-filter-menu__group`,onUpdateValue:r},{default:()=>this.options.map(i=>v(Pc,{key:i.value,theme:e.peers.Checkbox,themeOverrides:e.peerOverrides.Checkbox,value:i.value},{default:()=>i.label}))}):v(Sz,{name:this.radioGroupName,class:`${o}-data-table-filter-menu__group`,value:this.radioGroupValue,onUpdateValue:this.handleChange},{default:()=>this.options.map(i=>v(ng,{key:i.value,value:i.value,theme:e.peers.Radio,themeOverrides:e.peerOverrides.Radio},{default:()=>i.label}))})}}),v("div",{class:`${o}-data-table-filter-menu__action`},v(ra,{size:"tiny",theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,onClick:this.handleClearClick},{default:()=>t.clear}),v(ra,{theme:e.peers.Button,themeOverrides:e.peerOverrides.Button,type:"primary",size:"tiny",onClick:this.handleConfirmClick},{default:()=>t.confirm})))}}),Tz=ve({name:"DataTableRenderFilter",props:{render:{type:Function,required:!0},active:{type:Boolean,default:!1},show:{type:Boolean,default:!1}},render(){const{render:e,active:t,show:o}=this;return e({active:t,show:o})}});function $z(e,t,o){const n=Object.assign({},e);return n[t]=o,n}const Ez=ve({name:"DataTableFilterButton",props:{column:{type:Object,required:!0},options:{type:Array,default:()=>[]}},setup(e){const{mergedComponentPropsRef:t}=Je(),{mergedThemeRef:o,mergedClsPrefixRef:n,mergedFilterStateRef:r,filterMenuCssVarsRef:i,paginationBehaviorOnFilterRef:l,doUpdatePage:a,doUpdateFilters:s,filterIconPopoverPropsRef:c}=$e(wo),d=V(!1),u=r,f=F(()=>e.column.filterMultiple!==!1),h=F(()=>{const w=u.value[e.column.key];if(w===void 0){const{value:C}=f;return C?[]:null}return w}),p=F(()=>{const{value:w}=h;return Array.isArray(w)?w.length>0:w!==null}),g=F(()=>{var w,C;return((C=(w=t==null?void 0:t.value)===null||w===void 0?void 0:w.DataTable)===null||C===void 0?void 0:C.renderFilter)||e.column.renderFilter});function b(w){const C=$z(u.value,e.column.key,w);s(C,e.column),l.value==="first"&&a(1)}function m(){d.value=!1}function x(){d.value=!1}return{mergedTheme:o,mergedClsPrefix:n,active:p,showPopover:d,mergedRenderFilter:g,filterIconPopoverProps:c,filterMultiple:f,mergedFilterValue:h,filterMenuCssVars:i,handleFilterChange:b,handleFilterMenuConfirm:x,handleFilterMenuCancel:m}},render(){const{mergedTheme:e,mergedClsPrefix:t,handleFilterMenuCancel:o,filterIconPopoverProps:n}=this;return v(zi,Object.assign({show:this.showPopover,onUpdateShow:r=>this.showPopover=r,trigger:"click",theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,placement:"bottom"},n,{style:{padding:0}}),{trigger:()=>{const{mergedRenderFilter:r}=this;if(r)return v(Tz,{"data-data-table-filter":!0,render:r,active:this.active,show:this.showPopover});const{renderFilterIcon:i}=this.column;return v("div",{"data-data-table-filter":!0,class:[`${t}-data-table-filter`,{[`${t}-data-table-filter--active`]:this.active,[`${t}-data-table-filter--show`]:this.showPopover}]},i?i({active:this.active,show:this.showPopover}):v(Tt,{clsPrefix:t},{default:()=>v(BP,null)}))},default:()=>{const{renderFilterMenu:r}=this.column;return r?r({hide:o}):v(zz,{style:this.filterMenuCssVars,radioGroupName:String(this.column.key),multiple:this.filterMultiple,value:this.mergedFilterValue,options:this.options,column:this.column,onChange:this.handleFilterChange,onClear:this.handleFilterMenuCancel,onConfirm:this.handleFilterMenuConfirm})}})}}),Fz=ve({name:"ColumnResizeButton",props:{onResizeStart:Function,onResize:Function,onResizeEnd:Function},setup(e){const{mergedClsPrefixRef:t}=$e(wo),o=V(!1);let n=0;function r(s){return s.clientX}function i(s){var c;s.preventDefault();const d=o.value;n=r(s),o.value=!0,d||(bt("mousemove",window,l),bt("mouseup",window,a),(c=e.onResizeStart)===null||c===void 0||c.call(e))}function l(s){var c;(c=e.onResize)===null||c===void 0||c.call(e,r(s)-n)}function a(){var s;o.value=!1,(s=e.onResizeEnd)===null||s===void 0||s.call(e),ct("mousemove",window,l),ct("mouseup",window,a)}return Ft(()=>{ct("mousemove",window,l),ct("mouseup",window,a)}),{mergedClsPrefix:t,active:o,handleMousedown:i}},render(){const{mergedClsPrefix:e}=this;return v("span",{"data-data-table-resizable":!0,class:[`${e}-data-table-resize-button`,this.active&&`${e}-data-table-resize-button--active`],onMousedown:this.handleMousedown})}}),Az=ve({name:"DataTableRenderSorter",props:{render:{type:Function,required:!0},order:{type:[String,Boolean],default:!1}},render(){const{render:e,order:t}=this;return e({order:t})}}),Iz=ve({name:"SortIcon",props:{column:{type:Object,required:!0}},setup(e){const{mergedComponentPropsRef:t}=Je(),{mergedSortStateRef:o,mergedClsPrefixRef:n}=$e(wo),r=F(()=>o.value.find(s=>s.columnKey===e.column.key)),i=F(()=>r.value!==void 0),l=F(()=>{const{value:s}=r;return s&&i.value?s.order:!1}),a=F(()=>{var s,c;return((c=(s=t==null?void 0:t.value)===null||s===void 0?void 0:s.DataTable)===null||c===void 0?void 0:c.renderSorter)||e.column.renderSorter});return{mergedClsPrefix:n,active:i,mergedSortOrder:l,mergedRenderSorter:a}},render(){const{mergedRenderSorter:e,mergedSortOrder:t,mergedClsPrefix:o}=this,{renderSorterIcon:n}=this.column;return e?v(Az,{render:e,order:t}):v("span",{class:[`${o}-data-table-sorter`,t==="ascend"&&`${o}-data-table-sorter--asc`,t==="descend"&&`${o}-data-table-sorter--desc`]},n?n({order:t}):v(Tt,{clsPrefix:o},{default:()=>v(TP,null)}))}}),Mc="n-dropdown-menu",ia="n-dropdown",sg="n-dropdown-option",cg=ve({name:"DropdownDivider",props:{clsPrefix:{type:String,required:!0}},render(){return v("div",{class:`${this.clsPrefix}-dropdown-divider`})}}),Oz=ve({name:"DropdownGroupHeader",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0}},setup(){const{showIconRef:e,hasSubmenuRef:t}=$e(Mc),{renderLabelRef:o,labelFieldRef:n,nodePropsRef:r,renderOptionRef:i}=$e(ia);return{labelField:n,showIcon:e,hasSubmenu:t,renderLabel:o,nodeProps:r,renderOption:i}},render(){var e;const{clsPrefix:t,hasSubmenu:o,showIcon:n,nodeProps:r,renderLabel:i,renderOption:l}=this,{rawNode:a}=this.tmNode,s=v("div",Object.assign({class:`${t}-dropdown-option`},r==null?void 0:r(a)),v("div",{class:`${t}-dropdown-option-body ${t}-dropdown-option-body--group`},v("div",{"data-dropdown-option":!0,class:[`${t}-dropdown-option-body__prefix`,n&&`${t}-dropdown-option-body__prefix--show-icon`]},Lt(a.icon)),v("div",{class:`${t}-dropdown-option-body__label`,"data-dropdown-option":!0},i?i(a):Lt((e=a.title)!==null&&e!==void 0?e:a[this.labelField])),v("div",{class:[`${t}-dropdown-option-body__suffix`,o&&`${t}-dropdown-option-body__suffix--has-submenu`],"data-dropdown-option":!0})));return l?l({node:s,option:a}):s}});function Mz(e){const{textColorBase:t,opacity1:o,opacity2:n,opacity3:r,opacity4:i,opacity5:l}=e;return{color:t,opacity1Depth:o,opacity2Depth:n,opacity3Depth:r,opacity4Depth:i,opacity5Depth:l}}const Bz={common:xt,self:Mz},Hz=I("icon",`
|
||
height: 1em;
|
||
width: 1em;
|
||
line-height: 1em;
|
||
text-align: center;
|
||
display: inline-block;
|
||
position: relative;
|
||
fill: currentColor;
|
||
`,[Y("color-transition",{transition:"color .3s var(--n-bezier)"}),Y("depth",{color:"var(--n-color)"},[L("svg",{opacity:"var(--n-opacity)",transition:"opacity .3s var(--n-bezier)"})]),L("svg",{height:"1em",width:"1em"})]),Dz=Object.assign(Object.assign({},Ie.props),{depth:[String,Number],size:[Number,String],color:String,component:[Object,Function]}),dg=ve({_n_icon__:!0,name:"Icon",inheritAttrs:!1,props:Dz,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Je(e),n=Ie("Icon","-icon",Hz,Bz,e,t),r=F(()=>{const{depth:l}=e,{common:{cubicBezierEaseInOut:a},self:s}=n.value;if(l!==void 0){const{color:c,[`opacity${l}Depth`]:d}=s;return{"--n-bezier":a,"--n-color":c,"--n-opacity":d}}return{"--n-bezier":a,"--n-color":"","--n-opacity":""}}),i=o?gt("icon",F(()=>`${e.depth||"d"}`),r,e):void 0;return{mergedClsPrefix:t,mergedStyle:F(()=>{const{size:l,color:a}=e;return{fontSize:zt(l),color:a}}),cssVars:o?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{$parent:t,depth:o,mergedClsPrefix:n,component:r,onRender:i,themeClass:l}=this;return!((e=t==null?void 0:t.$options)===null||e===void 0)&&e._n_icon__&&kr("icon","don't wrap `n-icon` inside `n-icon`"),i==null||i(),v("i",xo(this.$attrs,{role:"img",class:[`${n}-icon`,l,{[`${n}-icon--depth`]:o,[`${n}-icon--color-transition`]:o!==void 0}],style:[this.cssVars,this.mergedStyle]}),r?v(r):this.$slots)}});function Bc(e,t){return e.type==="submenu"||e.type===void 0&&e[t]!==void 0}function Lz(e){return e.type==="group"}function ug(e){return e.type==="divider"}function Nz(e){return e.type==="render"}const fg=ve({name:"DropdownOption",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null},placement:{type:String,default:"right-start"},props:Object,scrollable:Boolean},setup(e){const t=$e(ia),{hoverKeyRef:o,keyboardKeyRef:n,lastToggledSubmenuKeyRef:r,pendingKeyPathRef:i,activeKeyPathRef:l,animatedRef:a,mergedShowRef:s,renderLabelRef:c,renderIconRef:d,labelFieldRef:u,childrenFieldRef:f,renderOptionRef:h,nodePropsRef:p,menuPropsRef:g}=t,b=$e(sg,null),m=$e(Mc),x=$e(Fl),w=F(()=>e.tmNode.rawNode),C=F(()=>{const{value:U}=f;return Bc(e.tmNode.rawNode,U)}),P=F(()=>{const{disabled:U}=e.tmNode;return U}),T=F(()=>{if(!C.value)return!1;const{key:U,disabled:J}=e.tmNode;if(J)return!1;const{value:pe}=o,{value:fe}=n,{value:N}=r,{value:O}=i;return pe!==null?O.includes(U):fe!==null?O.includes(U)&&O[O.length-1]!==U:N!==null?O.includes(U):!1}),y=F(()=>n.value===null&&!a.value),B=Py(T,300,y),S=F(()=>!!(b!=null&&b.enteringSubmenuRef.value)),E=V(!1);tt(sg,{enteringSubmenuRef:E});function j(){E.value=!0}function _(){E.value=!1}function M(){const{parentKey:U,tmNode:J}=e;J.disabled||s.value&&(r.value=U,n.value=null,o.value=J.key)}function W(){const{tmNode:U}=e;U.disabled||s.value&&o.value!==U.key&&M()}function D(U){if(e.tmNode.disabled||!s.value)return;const{relatedTarget:J}=U;J&&!uo({target:J},"dropdownOption")&&!uo({target:J},"scrollbarRail")&&(o.value=null)}function Z(){const{value:U}=C,{tmNode:J}=e;s.value&&!U&&!J.disabled&&(t.doSelect(J.key,J.rawNode),t.doUpdateShow(!1))}return{labelField:u,renderLabel:c,renderIcon:d,siblingHasIcon:m.showIconRef,siblingHasSubmenu:m.hasSubmenuRef,menuProps:g,popoverBody:x,animated:a,mergedShowSubmenu:F(()=>B.value&&!S.value),rawNode:w,hasSubmenu:C,pending:Ze(()=>{const{value:U}=i,{key:J}=e.tmNode;return U.includes(J)}),childActive:Ze(()=>{const{value:U}=l,{key:J}=e.tmNode,pe=U.findIndex(fe=>J===fe);return pe===-1?!1:pe<U.length-1}),active:Ze(()=>{const{value:U}=l,{key:J}=e.tmNode,pe=U.findIndex(fe=>J===fe);return pe===-1?!1:pe===U.length-1}),mergedDisabled:P,renderOption:h,nodeProps:p,handleClick:Z,handleMouseMove:W,handleMouseEnter:M,handleMouseLeave:D,handleSubmenuBeforeEnter:j,handleSubmenuAfterEnter:_}},render(){var e,t;const{animated:o,rawNode:n,mergedShowSubmenu:r,clsPrefix:i,siblingHasIcon:l,siblingHasSubmenu:a,renderLabel:s,renderIcon:c,renderOption:d,nodeProps:u,props:f,scrollable:h}=this;let p=null;if(r){const x=(e=this.menuProps)===null||e===void 0?void 0:e.call(this,n,n.children);p=v(hg,Object.assign({},x,{clsPrefix:i,scrollable:this.scrollable,tmNodes:this.tmNode.children,parentKey:this.tmNode.key}))}const g={class:[`${i}-dropdown-option-body`,this.pending&&`${i}-dropdown-option-body--pending`,this.active&&`${i}-dropdown-option-body--active`,this.childActive&&`${i}-dropdown-option-body--child-active`,this.mergedDisabled&&`${i}-dropdown-option-body--disabled`],onMousemove:this.handleMouseMove,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onClick:this.handleClick},b=u==null?void 0:u(n),m=v("div",Object.assign({class:[`${i}-dropdown-option`,b==null?void 0:b.class],"data-dropdown-option":!0},b),v("div",xo(g,f),[v("div",{class:[`${i}-dropdown-option-body__prefix`,l&&`${i}-dropdown-option-body__prefix--show-icon`]},[c?c(n):Lt(n.icon)]),v("div",{"data-dropdown-option":!0,class:`${i}-dropdown-option-body__label`},s?s(n):Lt((t=n[this.labelField])!==null&&t!==void 0?t:n.title)),v("div",{"data-dropdown-option":!0,class:[`${i}-dropdown-option-body__suffix`,a&&`${i}-dropdown-option-body__suffix--has-submenu`]},this.hasSubmenu?v(dg,null,{default:()=>v(dc,null)}):null)]),this.hasSubmenu?v(Ss,null,{default:()=>[v(Rs,null,{default:()=>v("div",{class:`${i}-dropdown-offset-container`},v(zs,{show:this.mergedShowSubmenu,placement:this.placement,to:h&&this.popoverBody||void 0,teleportDisabled:!h},{default:()=>v("div",{class:`${i}-dropdown-menu-wrapper`},o?v(Yo,{onBeforeEnter:this.handleSubmenuBeforeEnter,onAfterEnter:this.handleSubmenuAfterEnter,name:"fade-in-scale-up-transition",appear:!0},{default:()=>p}):p)}))})]}):null);return d?d({node:m,option:n}):m}}),jz=ve({name:"NDropdownGroup",props:{clsPrefix:{type:String,required:!0},tmNode:{type:Object,required:!0},parentKey:{type:[String,Number],default:null}},render(){const{tmNode:e,parentKey:t,clsPrefix:o}=this,{children:n}=e;return v(it,null,v(Oz,{clsPrefix:o,tmNode:e,key:e.key}),n==null?void 0:n.map(r=>{const{rawNode:i}=r;return i.show===!1?null:ug(i)?v(cg,{clsPrefix:o,key:r.key}):r.isGroup?(kr("dropdown","`group` node is not allowed to be put in `group` node."),null):v(fg,{clsPrefix:o,tmNode:r,parentKey:t,key:r.key})}))}}),Wz=ve({name:"DropdownRenderOption",props:{tmNode:{type:Object,required:!0}},render(){const{rawNode:{render:e,props:t}}=this.tmNode;return v("div",t,[e==null?void 0:e()])}}),hg=ve({name:"DropdownMenu",props:{scrollable:Boolean,showArrow:Boolean,arrowStyle:[String,Object],clsPrefix:{type:String,required:!0},tmNodes:{type:Array,default:()=>[]},parentKey:{type:[String,Number],default:null}},setup(e){const{renderIconRef:t,childrenFieldRef:o}=$e(ia);tt(Mc,{showIconRef:F(()=>{const r=t.value;return e.tmNodes.some(i=>{var l;if(i.isGroup)return(l=i.children)===null||l===void 0?void 0:l.some(({rawNode:s})=>r?r(s):s.icon);const{rawNode:a}=i;return r?r(a):a.icon})}),hasSubmenuRef:F(()=>{const{value:r}=o;return e.tmNodes.some(i=>{var l;if(i.isGroup)return(l=i.children)===null||l===void 0?void 0:l.some(({rawNode:s})=>Bc(s,r));const{rawNode:a}=i;return Bc(a,r)})})});const n=V(null);return tt(bs,null),tt(ms,null),tt(Fl,n),{bodyRef:n}},render(){const{parentKey:e,clsPrefix:t,scrollable:o}=this,n=this.tmNodes.map(r=>{const{rawNode:i}=r;return i.show===!1?null:Nz(i)?v(Wz,{tmNode:r,key:r.key}):ug(i)?v(cg,{clsPrefix:t,key:r.key}):Lz(i)?v(jz,{clsPrefix:t,tmNode:r,parentKey:e,key:r.key}):v(fg,{clsPrefix:t,tmNode:r,parentKey:e,key:r.key,props:i.props,scrollable:o})});return v("div",{class:[`${t}-dropdown-menu`,o&&`${t}-dropdown-menu--scrollable`],ref:"bodyRef"},o?v(hv,{contentClass:`${t}-dropdown-menu__content`},{default:()=>n}):n,this.showArrow?Pv({clsPrefix:t,arrowStyle:this.arrowStyle,arrowClass:void 0,arrowWrapperClass:void 0,arrowWrapperStyle:void 0}):null)}}),Vz=I("dropdown-menu",`
|
||
transform-origin: var(--v-transform-origin);
|
||
background-color: var(--n-color);
|
||
border-radius: var(--n-border-radius);
|
||
box-shadow: var(--n-box-shadow);
|
||
position: relative;
|
||
transition:
|
||
background-color .3s var(--n-bezier),
|
||
box-shadow .3s var(--n-bezier);
|
||
`,[Ql(),I("dropdown-option",`
|
||
position: relative;
|
||
`,[L("a",`
|
||
text-decoration: none;
|
||
color: inherit;
|
||
outline: none;
|
||
`,[L("&::before",`
|
||
content: "";
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
`)]),I("dropdown-option-body",`
|
||
display: flex;
|
||
cursor: pointer;
|
||
position: relative;
|
||
height: var(--n-option-height);
|
||
line-height: var(--n-option-height);
|
||
font-size: var(--n-font-size);
|
||
color: var(--n-option-text-color);
|
||
transition: color .3s var(--n-bezier);
|
||
`,[L("&::before",`
|
||
content: "";
|
||
position: absolute;
|
||
top: 0;
|
||
bottom: 0;
|
||
left: 4px;
|
||
right: 4px;
|
||
transition: background-color .3s var(--n-bezier);
|
||
border-radius: var(--n-border-radius);
|
||
`),Ye("disabled",[Y("pending",`
|
||
color: var(--n-option-text-color-hover);
|
||
`,[H("prefix, suffix",`
|
||
color: var(--n-option-text-color-hover);
|
||
`),L("&::before","background-color: var(--n-option-color-hover);")]),Y("active",`
|
||
color: var(--n-option-text-color-active);
|
||
`,[H("prefix, suffix",`
|
||
color: var(--n-option-text-color-active);
|
||
`),L("&::before","background-color: var(--n-option-color-active);")]),Y("child-active",`
|
||
color: var(--n-option-text-color-child-active);
|
||
`,[H("prefix, suffix",`
|
||
color: var(--n-option-text-color-child-active);
|
||
`)])]),Y("disabled",`
|
||
cursor: not-allowed;
|
||
opacity: var(--n-option-opacity-disabled);
|
||
`),Y("group",`
|
||
font-size: calc(var(--n-font-size) - 1px);
|
||
color: var(--n-group-header-text-color);
|
||
`,[H("prefix",`
|
||
width: calc(var(--n-option-prefix-width) / 2);
|
||
`,[Y("show-icon",`
|
||
width: calc(var(--n-option-icon-prefix-width) / 2);
|
||
`)])]),H("prefix",`
|
||
width: var(--n-option-prefix-width);
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
color: var(--n-prefix-color);
|
||
transition: color .3s var(--n-bezier);
|
||
z-index: 1;
|
||
`,[Y("show-icon",`
|
||
width: var(--n-option-icon-prefix-width);
|
||
`),I("icon",`
|
||
font-size: var(--n-option-icon-size);
|
||
`)]),H("label",`
|
||
white-space: nowrap;
|
||
flex: 1;
|
||
z-index: 1;
|
||
`),H("suffix",`
|
||
box-sizing: border-box;
|
||
flex-grow: 0;
|
||
flex-shrink: 0;
|
||
display: flex;
|
||
justify-content: flex-end;
|
||
align-items: center;
|
||
min-width: var(--n-option-suffix-width);
|
||
padding: 0 8px;
|
||
transition: color .3s var(--n-bezier);
|
||
color: var(--n-suffix-color);
|
||
z-index: 1;
|
||
`,[Y("has-submenu",`
|
||
width: var(--n-option-icon-suffix-width);
|
||
`),I("icon",`
|
||
font-size: var(--n-option-icon-size);
|
||
`)]),I("dropdown-menu","pointer-events: all;")]),I("dropdown-offset-container",`
|
||
pointer-events: none;
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
top: -4px;
|
||
bottom: -4px;
|
||
`)]),I("dropdown-divider",`
|
||
transition: background-color .3s var(--n-bezier);
|
||
background-color: var(--n-divider-color);
|
||
height: 1px;
|
||
margin: 4px 0;
|
||
`),I("dropdown-menu-wrapper",`
|
||
transform-origin: var(--v-transform-origin);
|
||
width: fit-content;
|
||
`),L(">",[I("scrollbar",`
|
||
height: inherit;
|
||
max-height: inherit;
|
||
`)]),Ye("scrollable",`
|
||
padding: var(--n-padding);
|
||
`),Y("scrollable",[H("content",`
|
||
padding: var(--n-padding);
|
||
`)])]),Uz={animated:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},size:{type:String,default:"medium"},inverted:Boolean,placement:{type:String,default:"bottom"},onSelect:[Function,Array],options:{type:Array,default:()=>[]},menuProps:Function,showArrow:Boolean,renderLabel:Function,renderIcon:Function,renderOption:Function,nodeProps:Function,labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},value:[String,Number]},Kz=Object.keys(Ar),Gz=Object.assign(Object.assign(Object.assign({},Ar),Uz),Ie.props),Hc=ve({name:"Dropdown",inheritAttrs:!1,props:Gz,setup(e){const t=V(!1),o=It(Se(e,"show"),t),n=F(()=>{const{keyField:_,childrenField:M}=e;return or(e.options,{getKey(W){return W[_]},getDisabled(W){return W.disabled===!0},getIgnored(W){return W.type==="divider"||W.type==="render"},getChildren(W){return W[M]}})}),r=F(()=>n.value.treeNodes),i=V(null),l=V(null),a=V(null),s=F(()=>{var _,M,W;return(W=(M=(_=i.value)!==null&&_!==void 0?_:l.value)!==null&&M!==void 0?M:a.value)!==null&&W!==void 0?W:null}),c=F(()=>n.value.getPath(s.value).keyPath),d=F(()=>n.value.getPath(e.value).keyPath),u=Ze(()=>e.keyboard&&o.value);Ry({keydown:{ArrowUp:{prevent:!0,handler:P},ArrowRight:{prevent:!0,handler:C},ArrowDown:{prevent:!0,handler:T},ArrowLeft:{prevent:!0,handler:w},Enter:{prevent:!0,handler:y},Escape:x}},u);const{mergedClsPrefixRef:f,inlineThemeDisabled:h}=Je(e),p=Ie("Dropdown","-dropdown",Vz,zc,e,f);tt(ia,{labelFieldRef:Se(e,"labelField"),childrenFieldRef:Se(e,"childrenField"),renderLabelRef:Se(e,"renderLabel"),renderIconRef:Se(e,"renderIcon"),hoverKeyRef:i,keyboardKeyRef:l,lastToggledSubmenuKeyRef:a,pendingKeyPathRef:c,activeKeyPathRef:d,animatedRef:Se(e,"animated"),mergedShowRef:o,nodePropsRef:Se(e,"nodeProps"),renderOptionRef:Se(e,"renderOption"),menuPropsRef:Se(e,"menuProps"),doSelect:g,doUpdateShow:b}),st(o,_=>{!e.animated&&!_&&m()});function g(_,M){const{onSelect:W}=e;W&&ge(W,_,M)}function b(_){const{"onUpdate:show":M,onUpdateShow:W}=e;M&&ge(M,_),W&&ge(W,_),t.value=_}function m(){i.value=null,l.value=null,a.value=null}function x(){b(!1)}function w(){S("left")}function C(){S("right")}function P(){S("up")}function T(){S("down")}function y(){const _=B();_!=null&&_.isLeaf&&o.value&&(g(_.key,_.rawNode),b(!1))}function B(){var _;const{value:M}=n,{value:W}=s;return!M||W===null?null:(_=M.getNode(W))!==null&&_!==void 0?_:null}function S(_){const{value:M}=s,{value:{getFirstAvailableNode:W}}=n;let D=null;if(M===null){const Z=W();Z!==null&&(D=Z.key)}else{const Z=B();if(Z){let U;switch(_){case"down":U=Z.getNext();break;case"up":U=Z.getPrev();break;case"right":U=Z.getChild();break;case"left":U=Z.getParent();break}U&&(D=U.key)}}D!==null&&(i.value=null,l.value=D)}const E=F(()=>{const{size:_,inverted:M}=e,{common:{cubicBezierEaseInOut:W},self:D}=p.value,{padding:Z,dividerColor:U,borderRadius:J,optionOpacityDisabled:pe,[me("optionIconSuffixWidth",_)]:fe,[me("optionSuffixWidth",_)]:N,[me("optionIconPrefixWidth",_)]:O,[me("optionPrefixWidth",_)]:A,[me("fontSize",_)]:Q,[me("optionHeight",_)]:he,[me("optionIconSize",_)]:we}=D,X={"--n-bezier":W,"--n-font-size":Q,"--n-padding":Z,"--n-border-radius":J,"--n-option-height":he,"--n-option-prefix-width":A,"--n-option-icon-prefix-width":O,"--n-option-suffix-width":N,"--n-option-icon-suffix-width":fe,"--n-option-icon-size":we,"--n-divider-color":U,"--n-option-opacity-disabled":pe};return M?(X["--n-color"]=D.colorInverted,X["--n-option-color-hover"]=D.optionColorHoverInverted,X["--n-option-color-active"]=D.optionColorActiveInverted,X["--n-option-text-color"]=D.optionTextColorInverted,X["--n-option-text-color-hover"]=D.optionTextColorHoverInverted,X["--n-option-text-color-active"]=D.optionTextColorActiveInverted,X["--n-option-text-color-child-active"]=D.optionTextColorChildActiveInverted,X["--n-prefix-color"]=D.prefixColorInverted,X["--n-suffix-color"]=D.suffixColorInverted,X["--n-group-header-text-color"]=D.groupHeaderTextColorInverted):(X["--n-color"]=D.color,X["--n-option-color-hover"]=D.optionColorHover,X["--n-option-color-active"]=D.optionColorActive,X["--n-option-text-color"]=D.optionTextColor,X["--n-option-text-color-hover"]=D.optionTextColorHover,X["--n-option-text-color-active"]=D.optionTextColorActive,X["--n-option-text-color-child-active"]=D.optionTextColorChildActive,X["--n-prefix-color"]=D.prefixColor,X["--n-suffix-color"]=D.suffixColor,X["--n-group-header-text-color"]=D.groupHeaderTextColor),X}),j=h?gt("dropdown",F(()=>`${e.size[0]}${e.inverted?"i":""}`),E,e):void 0;return{mergedClsPrefix:f,mergedTheme:p,tmNodes:r,mergedShow:o,handleAfterLeave:()=>{e.animated&&m()},doUpdateShow:b,cssVars:h?void 0:E,themeClass:j==null?void 0:j.themeClass,onRender:j==null?void 0:j.onRender}},render(){const e=(n,r,i,l,a)=>{var s;const{mergedClsPrefix:c,menuProps:d}=this;(s=this.onRender)===null||s===void 0||s.call(this);const u=(d==null?void 0:d(void 0,this.tmNodes.map(h=>h.rawNode)))||{},f={ref:Zh(r),class:[n,`${c}-dropdown`,this.themeClass],clsPrefix:c,tmNodes:this.tmNodes,style:[...i,this.cssVars],showArrow:this.showArrow,arrowStyle:this.arrowStyle,scrollable:this.scrollable,onMouseenter:l,onMouseleave:a};return v(hg,xo(this.$attrs,f,u))},{mergedTheme:t}=this,o={show:this.mergedShow,theme:t.peers.Popover,themeOverrides:t.peerOverrides.Popover,internalOnAfterLeave:this.handleAfterLeave,internalRenderBody:e,onUpdateShow:this.doUpdateShow,"onUpdate:show":void 0};return v(zi,Object.assign({},zr(this.$props,Kz),o),{trigger:()=>{var n,r;return(r=(n=this.$slots).default)===null||r===void 0?void 0:r.call(n)}})}}),pg="_n_all__",vg="_n_none__";function qz(e,t,o,n){return e?r=>{for(const i of e)switch(r){case pg:o(!0);return;case vg:n(!0);return;default:if(typeof i=="object"&&i.key===r){i.onSelect(t.value);return}}}:()=>{}}function Xz(e,t){return e?e.map(o=>{switch(o){case"all":return{label:t.checkTableAll,key:pg};case"none":return{label:t.uncheckTableAll,key:vg};default:return o}}):[]}const Yz=ve({name:"DataTableSelectionMenu",props:{clsPrefix:{type:String,required:!0}},setup(e){const{props:t,localeRef:o,checkOptionsRef:n,rawPaginatedDataRef:r,doCheckAll:i,doUncheckAll:l}=$e(wo),a=F(()=>qz(n.value,r,i,l)),s=F(()=>Xz(n.value,o.value));return()=>{var c,d,u,f;const{clsPrefix:h}=e;return v(Hc,{theme:(d=(c=t.theme)===null||c===void 0?void 0:c.peers)===null||d===void 0?void 0:d.Dropdown,themeOverrides:(f=(u=t.themeOverrides)===null||u===void 0?void 0:u.peers)===null||f===void 0?void 0:f.Dropdown,options:s.value,onSelect:a.value},{default:()=>v(Tt,{clsPrefix:h,class:`${h}-data-table-check-extra`},{default:()=>v(nv,null)})})}}});function Dc(e){return typeof e.title=="function"?e.title(e):e.title}const Zz=ve({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},width:String},render(){const{clsPrefix:e,id:t,cols:o,width:n}=this;return v("table",{style:{tableLayout:"fixed",width:n},class:`${e}-data-table-table`},v("colgroup",null,o.map(r=>v("col",{key:r.key,style:r.style}))),v("thead",{"data-n-id":t,class:`${e}-data-table-thead`},this.$slots))}}),gg=ve({name:"DataTableHeader",props:{discrete:{type:Boolean,default:!0}},setup(){const{mergedClsPrefixRef:e,scrollXRef:t,fixedColumnLeftMapRef:o,fixedColumnRightMapRef:n,mergedCurrentPageRef:r,allRowsCheckedRef:i,someRowsCheckedRef:l,rowsRef:a,colsRef:s,mergedThemeRef:c,checkOptionsRef:d,mergedSortStateRef:u,componentId:f,mergedTableLayoutRef:h,headerCheckboxDisabledRef:p,virtualScrollHeaderRef:g,headerHeightRef:b,onUnstableColumnResize:m,doUpdateResizableWidth:x,handleTableHeaderScroll:w,deriveNextSorter:C,doUncheckAll:P,doCheckAll:T}=$e(wo),y=V(),B=V({});function S(D){const Z=B.value[D];return Z==null?void 0:Z.getBoundingClientRect().width}function E(){i.value?P():T()}function j(D,Z){if(uo(D,"dataTableFilter")||uo(D,"dataTableResizable")||!Fc(Z))return;const U=u.value.find(pe=>pe.columnKey===Z.key)||null,J=fz(Z,U);C(J)}const _=new Map;function M(D){_.set(D.key,S(D.key))}function W(D,Z){const U=_.get(D.key);if(U===void 0)return;const J=U+Z,pe=cz(J,D.minWidth,D.maxWidth);m(J,pe,D,S),x(D,pe)}return{cellElsRef:B,componentId:f,mergedSortState:u,mergedClsPrefix:e,scrollX:t,fixedColumnLeftMap:o,fixedColumnRightMap:n,currentPage:r,allRowsChecked:i,someRowsChecked:l,rows:a,cols:s,mergedTheme:c,checkOptions:d,mergedTableLayout:h,headerCheckboxDisabled:p,headerHeight:b,virtualScrollHeader:g,virtualListRef:y,handleCheckboxUpdateChecked:E,handleColHeaderClick:j,handleTableHeaderScroll:w,handleColumnResizeStart:M,handleColumnResize:W}},render(){const{cellElsRef:e,mergedClsPrefix:t,fixedColumnLeftMap:o,fixedColumnRightMap:n,currentPage:r,allRowsChecked:i,someRowsChecked:l,rows:a,cols:s,mergedTheme:c,checkOptions:d,componentId:u,discrete:f,mergedTableLayout:h,headerCheckboxDisabled:p,mergedSortState:g,virtualScrollHeader:b,handleColHeaderClick:m,handleCheckboxUpdateChecked:x,handleColumnResizeStart:w,handleColumnResize:C}=this,P=(S,E,j)=>S.map(({column:_,colIndex:M,colSpan:W,rowSpan:D,isLast:Z})=>{var U,J;const pe=So(_),{ellipsis:fe}=_,N=()=>_.type==="selection"?_.multiple!==!1?v(it,null,v(Pc,{key:r,privateInsideTable:!0,checked:i,indeterminate:l,disabled:p,onUpdateChecked:x}),d?v(Yz,{clsPrefix:t}):null):null:v(it,null,v("div",{class:`${t}-data-table-th__title-wrapper`},v("div",{class:`${t}-data-table-th__title`},fe===!0||fe&&!fe.tooltip?v("div",{class:`${t}-data-table-th__ellipsis`},Dc(_)):fe&&typeof fe=="object"?v(Oc,Object.assign({},fe,{theme:c.peers.Ellipsis,themeOverrides:c.peerOverrides.Ellipsis}),{default:()=>Dc(_)}):Dc(_)),Fc(_)?v(Iz,{column:_}):null),Qv(_)?v(Ez,{column:_,options:_.filterOptions}):null,Jv(_)?v(Fz,{onResizeStart:()=>{w(_)},onResize:he=>{C(_,he)}}):null),O=pe in o,A=pe in n,Q=E&&!_.fixed?"div":"th";return v(Q,{ref:he=>e[pe]=he,key:pe,style:[E&&!_.fixed?{position:"absolute",left:At(E(M)),top:0,bottom:0}:{left:At((U=o[pe])===null||U===void 0?void 0:U.start),right:At((J=n[pe])===null||J===void 0?void 0:J.start)},{width:At(_.width),textAlign:_.titleAlign||_.align,height:j}],colspan:W,rowspan:D,"data-col-key":pe,class:[`${t}-data-table-th`,(O||A)&&`${t}-data-table-th--fixed-${O?"left":"right"}`,{[`${t}-data-table-th--sorting`]:tg(_,g),[`${t}-data-table-th--filterable`]:Qv(_),[`${t}-data-table-th--sortable`]:Fc(_),[`${t}-data-table-th--selection`]:_.type==="selection",[`${t}-data-table-th--last`]:Z},_.className],onClick:_.type!=="selection"&&_.type!=="expand"&&!("children"in _)?he=>{m(he,_)}:void 0},N())});if(b){const{headerHeight:S}=this;let E=0,j=0;return s.forEach(_=>{_.column.fixed==="left"?E++:_.column.fixed==="right"&&j++}),v(Is,{ref:"virtualListRef",class:`${t}-data-table-base-table-header`,style:{height:At(S)},onScroll:this.handleTableHeaderScroll,columns:s,itemSize:S,showScrollbar:!1,items:[{}],itemResizable:!1,visibleItemsTag:Zz,visibleItemsProps:{clsPrefix:t,id:u,cols:s,width:zt(this.scrollX)},renderItemWithCols:({startColIndex:_,endColIndex:M,getLeft:W})=>{const D=s.map((U,J)=>({column:U.column,isLast:J===s.length-1,colIndex:U.index,colSpan:1,rowSpan:1})).filter(({column:U},J)=>!!(_<=J&&J<=M||U.fixed)),Z=P(D,W,At(S));return Z.splice(E,0,v("th",{colspan:s.length-E-j,style:{pointerEvents:"none",visibility:"hidden",height:0}})),v("tr",{style:{position:"relative"}},Z)}},{default:({renderedItemWithCols:_})=>_})}const T=v("thead",{class:`${t}-data-table-thead`,"data-n-id":u},a.map(S=>v("tr",{class:`${t}-data-table-tr`},P(S,null,void 0))));if(!f)return T;const{handleTableHeaderScroll:y,scrollX:B}=this;return v("div",{class:`${t}-data-table-base-table-header`,onScroll:y},v("table",{class:`${t}-data-table-table`,style:{minWidth:zt(B),tableLayout:h}},v("colgroup",null,s.map(S=>v("col",{key:S.key,style:S.style}))),T))}});function Jz(e,t){const o=[];function n(r,i){r.forEach(l=>{l.children&&t.has(l.key)?(o.push({tmNode:l,striped:!1,key:l.key,index:i}),n(l.children,i)):o.push({key:l.key,tmNode:l,striped:!1,index:i})})}return e.forEach(r=>{o.push(r);const{children:i}=r.tmNode;i&&t.has(r.key)&&n(i,r.index)}),o}const Qz=ve({props:{clsPrefix:{type:String,required:!0},id:{type:String,required:!0},cols:{type:Array,required:!0},onMouseenter:Function,onMouseleave:Function},render(){const{clsPrefix:e,id:t,cols:o,onMouseenter:n,onMouseleave:r}=this;return v("table",{style:{tableLayout:"fixed"},class:`${e}-data-table-table`,onMouseenter:n,onMouseleave:r},v("colgroup",null,o.map(i=>v("col",{key:i.key,style:i.style}))),v("tbody",{"data-n-id":t,class:`${e}-data-table-tbody`},this.$slots))}}),eT=ve({name:"DataTableBody",props:{onResize:Function,showHeader:Boolean,flexHeight:Boolean,bodyStyle:Object},setup(e){const{slots:t,bodyWidthRef:o,mergedExpandedRowKeysRef:n,mergedClsPrefixRef:r,mergedThemeRef:i,scrollXRef:l,colsRef:a,paginatedDataRef:s,rawPaginatedDataRef:c,fixedColumnLeftMapRef:d,fixedColumnRightMapRef:u,mergedCurrentPageRef:f,rowClassNameRef:h,leftActiveFixedColKeyRef:p,leftActiveFixedChildrenColKeysRef:g,rightActiveFixedColKeyRef:b,rightActiveFixedChildrenColKeysRef:m,renderExpandRef:x,hoverKeyRef:w,summaryRef:C,mergedSortStateRef:P,virtualScrollRef:T,virtualScrollXRef:y,heightForRowRef:B,minRowHeightRef:S,componentId:E,mergedTableLayoutRef:j,childTriggerColIndexRef:_,indentRef:M,rowPropsRef:W,maxHeightRef:D,stripedRef:Z,loadingRef:U,onLoadRef:J,loadingKeySetRef:pe,expandableRef:fe,stickyExpandedRowsRef:N,renderExpandIconRef:O,summaryPlacementRef:A,treeMateRef:Q,scrollbarPropsRef:he,setHeaderScrollLeft:we,doUpdateExpandedRowKeys:X,handleTableBodyScroll:de,doCheck:R,doUncheck:ae,renderCell:_e}=$e(wo),k=$e(Qo),$=V(null),K=V(null),ie=V(null),le=Ze(()=>s.value.length===0),re=Ze(()=>e.showHeader||!le.value),xe=Ze(()=>e.showHeader||le.value);let ne="";const te=F(()=>new Set(n.value));function oe(Pe){var ze;return(ze=Q.value.getNode(Pe))===null||ze===void 0?void 0:ze.rawNode}function ye(Pe,ze,z){const q=oe(Pe.key);if(!q){kr("data-table",`fail to get row data with key ${Pe.key}`);return}if(z){const ce=s.value.findIndex(Ce=>Ce.key===ne);if(ce!==-1){const Ce=s.value.findIndex(Ae=>Ae.key===Pe.key),Re=Math.min(ce,Ce),Te=Math.max(ce,Ce),Ee=[];s.value.slice(Re,Te+1).forEach(Ae=>{Ae.disabled||Ee.push(Ae.key)}),ze?R(Ee,!1,q):ae(Ee,q),ne=Pe.key;return}}ze?R(Pe.key,!1,q):ae(Pe.key,q),ne=Pe.key}function be(Pe){const ze=oe(Pe.key);if(!ze){kr("data-table",`fail to get row data with key ${Pe.key}`);return}R(Pe.key,!0,ze)}function ee(){if(!re.value){const{value:ze}=ie;return ze||null}if(T.value)return Me();const{value:Pe}=$;return Pe?Pe.containerRef:null}function se(Pe,ze){var z;if(pe.value.has(Pe))return;const{value:q}=n,ce=q.indexOf(Pe),Ce=Array.from(q);~ce?(Ce.splice(ce,1),X(Ce)):ze&&!ze.isLeaf&&!ze.shallowLoaded?(pe.value.add(Pe),(z=J.value)===null||z===void 0||z.call(J,ze.rawNode).then(()=>{const{value:Re}=n,Te=Array.from(Re);~Te.indexOf(Pe)||Te.push(Pe),X(Te)}).finally(()=>{pe.value.delete(Pe)})):(Ce.push(Pe),X(Ce))}function ke(){w.value=null}function Me(){const{value:Pe}=K;return(Pe==null?void 0:Pe.listElRef)||null}function He(){const{value:Pe}=K;return(Pe==null?void 0:Pe.itemsElRef)||null}function Qe(Pe){var ze;de(Pe),(ze=$.value)===null||ze===void 0||ze.sync()}function Ve(Pe){var ze;const{onResize:z}=e;z&&z(Pe),(ze=$.value)===null||ze===void 0||ze.sync()}const We={getScrollContainer:ee,scrollTo(Pe,ze){var z,q;T.value?(z=K.value)===null||z===void 0||z.scrollTo(Pe,ze):(q=$.value)===null||q===void 0||q.scrollTo(Pe,ze)}},ot=L([({props:Pe})=>{const ze=q=>q===null?null:L(`[data-n-id="${Pe.componentId}"] [data-col-key="${q}"]::after`,{boxShadow:"var(--n-box-shadow-after)"}),z=q=>q===null?null:L(`[data-n-id="${Pe.componentId}"] [data-col-key="${q}"]::before`,{boxShadow:"var(--n-box-shadow-before)"});return L([ze(Pe.leftActiveFixedColKey),z(Pe.rightActiveFixedColKey),Pe.leftActiveFixedChildrenColKeys.map(q=>ze(q)),Pe.rightActiveFixedChildrenColKeys.map(q=>z(q))])}]);let Xe=!1;return Mt(()=>{const{value:Pe}=p,{value:ze}=g,{value:z}=b,{value:q}=m;if(!Xe&&Pe===null&&z===null)return;const ce={leftActiveFixedColKey:Pe,leftActiveFixedChildrenColKeys:ze,rightActiveFixedColKey:z,rightActiveFixedChildrenColKeys:q,componentId:E};ot.mount({id:`n-${E}`,force:!0,props:ce,anchorMetaName:$r,parent:k==null?void 0:k.styleMountTarget}),Xe=!0}),Oa(()=>{ot.unmount({id:`n-${E}`,parent:k==null?void 0:k.styleMountTarget})}),Object.assign({bodyWidth:o,summaryPlacement:A,dataTableSlots:t,componentId:E,scrollbarInstRef:$,virtualListRef:K,emptyElRef:ie,summary:C,mergedClsPrefix:r,mergedTheme:i,scrollX:l,cols:a,loading:U,bodyShowHeaderOnly:xe,shouldDisplaySomeTablePart:re,empty:le,paginatedDataAndInfo:F(()=>{const{value:Pe}=Z;let ze=!1;return{data:s.value.map(Pe?(q,ce)=>(q.isLeaf||(ze=!0),{tmNode:q,key:q.key,striped:ce%2===1,index:ce}):(q,ce)=>(q.isLeaf||(ze=!0),{tmNode:q,key:q.key,striped:!1,index:ce})),hasChildren:ze}}),rawPaginatedData:c,fixedColumnLeftMap:d,fixedColumnRightMap:u,currentPage:f,rowClassName:h,renderExpand:x,mergedExpandedRowKeySet:te,hoverKey:w,mergedSortState:P,virtualScroll:T,virtualScrollX:y,heightForRow:B,minRowHeight:S,mergedTableLayout:j,childTriggerColIndex:_,indent:M,rowProps:W,maxHeight:D,loadingKeySet:pe,expandable:fe,stickyExpandedRows:N,renderExpandIcon:O,scrollbarProps:he,setHeaderScrollLeft:we,handleVirtualListScroll:Qe,handleVirtualListResize:Ve,handleMouseleaveTable:ke,virtualListContainer:Me,virtualListContent:He,handleTableBodyScroll:de,handleCheckboxUpdateChecked:ye,handleRadioUpdateChecked:be,handleUpdateExpanded:se,renderCell:_e},We)},render(){const{mergedTheme:e,scrollX:t,mergedClsPrefix:o,virtualScroll:n,maxHeight:r,mergedTableLayout:i,flexHeight:l,loadingKeySet:a,onResize:s,setHeaderScrollLeft:c}=this,d=t!==void 0||r!==void 0||l,u=!d&&i==="auto",f=t!==void 0||u,h={minWidth:zt(t)||"100%"};t&&(h.width="100%");const p=v(tr,Object.assign({},this.scrollbarProps,{ref:"scrollbarInstRef",scrollable:d||u,class:`${o}-data-table-base-table-body`,style:this.empty?void 0:this.bodyStyle,theme:e.peers.Scrollbar,themeOverrides:e.peerOverrides.Scrollbar,contentStyle:h,container:n?this.virtualListContainer:void 0,content:n?this.virtualListContent:void 0,horizontalRailStyle:{zIndex:3},verticalRailStyle:{zIndex:3},xScrollable:f,onScroll:n?void 0:this.handleTableBodyScroll,internalOnUpdateScrollLeft:c,onResize:s}),{default:()=>{const g={},b={},{cols:m,paginatedDataAndInfo:x,mergedTheme:w,fixedColumnLeftMap:C,fixedColumnRightMap:P,currentPage:T,rowClassName:y,mergedSortState:B,mergedExpandedRowKeySet:S,stickyExpandedRows:E,componentId:j,childTriggerColIndex:_,expandable:M,rowProps:W,handleMouseleaveTable:D,renderExpand:Z,summary:U,handleCheckboxUpdateChecked:J,handleRadioUpdateChecked:pe,handleUpdateExpanded:fe,heightForRow:N,minRowHeight:O,virtualScrollX:A}=this,{length:Q}=m;let he;const{data:we,hasChildren:X}=x,de=X?Jz(we,S):we;if(U){const ne=U(this.rawPaginatedData);if(Array.isArray(ne)){const te=ne.map((oe,ye)=>({isSummaryRow:!0,key:`__n_summary__${ye}`,tmNode:{rawNode:oe,disabled:!0},index:-1}));he=this.summaryPlacement==="top"?[...te,...de]:[...de,...te]}else{const te={isSummaryRow:!0,key:"__n_summary__",tmNode:{rawNode:ne,disabled:!0},index:-1};he=this.summaryPlacement==="top"?[te,...de]:[...de,te]}}else he=de;const R=X?{width:At(this.indent)}:void 0,ae=[];he.forEach(ne=>{Z&&S.has(ne.key)&&(!M||M(ne.tmNode.rawNode))?ae.push(ne,{isExpandedRow:!0,key:`${ne.key}-expand`,tmNode:ne.tmNode,index:ne.index}):ae.push(ne)});const{length:_e}=ae,k={};we.forEach(({tmNode:ne},te)=>{k[te]=ne.key});const $=E?this.bodyWidth:null,K=$===null?void 0:`${$}px`,ie=this.virtualScrollX?"div":"td";let le=0,re=0;A&&m.forEach(ne=>{ne.column.fixed==="left"?le++:ne.column.fixed==="right"&&re++});const xe=({rowInfo:ne,displayedRowIndex:te,isVirtual:oe,isVirtualX:ye,startColIndex:be,endColIndex:ee,getLeft:se})=>{const{index:ke}=ne;if("isExpandedRow"in ne){const{tmNode:{key:Ce,rawNode:Re}}=ne;return v("tr",{class:`${o}-data-table-tr ${o}-data-table-tr--expanded`,key:`${Ce}__expand`},v("td",{class:[`${o}-data-table-td`,`${o}-data-table-td--last-col`,te+1===_e&&`${o}-data-table-td--last-row`],colspan:Q},E?v("div",{class:`${o}-data-table-expand`,style:{width:K}},Z(Re,ke)):Z(Re,ke)))}const Me="isSummaryRow"in ne,He=!Me&&ne.striped,{tmNode:Qe,key:Ve}=ne,{rawNode:We}=Qe,ot=S.has(Ve),Xe=W?W(We,ke):void 0,Pe=typeof y=="string"?y:uz(We,ke,y),ze=ye?m.filter((Ce,Re)=>!!(be<=Re&&Re<=ee||Ce.column.fixed)):m,z=ye?At((N==null?void 0:N(We,ke))||O):void 0,q=ze.map(Ce=>{var Re,Te,Ee,Ae,Ge;const ut=Ce.index;if(te in g){const vt=g[te],yt=vt.indexOf(ut);if(~yt)return vt.splice(yt,1),null}const{column:et}=Ce,jt=So(Ce),{rowSpan:Xt,colSpan:Yt}=et,Qt=Me?((Re=ne.tmNode.rawNode[jt])===null||Re===void 0?void 0:Re.colSpan)||1:Yt?Yt(We,ke):1,eo=Me?((Te=ne.tmNode.rawNode[jt])===null||Te===void 0?void 0:Te.rowSpan)||1:Xt?Xt(We,ke):1,po=ut+Qt===Q,to=te+eo===_e,G=eo>1;if(G&&(b[te]={[ut]:[]}),Qt>1||G)for(let vt=te;vt<te+eo;++vt){G&&b[te][ut].push(k[vt]);for(let yt=ut;yt<ut+Qt;++yt)vt===te&&yt===ut||(vt in g?g[vt].push(yt):g[vt]=[yt])}const ue=G?this.hoverKey:null,{cellProps:Fe}=et,je=Fe==null?void 0:Fe(We,ke),nt={"--indent-offset":""},qe=et.fixed?"td":ie;return v(qe,Object.assign({},je,{key:jt,style:[{textAlign:et.align||void 0,width:At(et.width)},ye&&{height:z},ye&&!et.fixed?{position:"absolute",left:At(se(ut)),top:0,bottom:0}:{left:At((Ee=C[jt])===null||Ee===void 0?void 0:Ee.start),right:At((Ae=P[jt])===null||Ae===void 0?void 0:Ae.start)},nt,(je==null?void 0:je.style)||""],colspan:Qt,rowspan:oe?void 0:eo,"data-col-key":jt,class:[`${o}-data-table-td`,et.className,je==null?void 0:je.class,Me&&`${o}-data-table-td--summary`,ue!==null&&b[te][ut].includes(ue)&&`${o}-data-table-td--hover`,tg(et,B)&&`${o}-data-table-td--sorting`,et.fixed&&`${o}-data-table-td--fixed-${et.fixed}`,et.align&&`${o}-data-table-td--${et.align}-align`,et.type==="selection"&&`${o}-data-table-td--selection`,et.type==="expand"&&`${o}-data-table-td--expand`,po&&`${o}-data-table-td--last-col`,to&&`${o}-data-table-td--last-row`]}),X&&ut===_?[fy(nt["--indent-offset"]=Me?0:ne.tmNode.level,v("div",{class:`${o}-data-table-indent`,style:R})),Me||ne.tmNode.isLeaf?v("div",{class:`${o}-data-table-expand-placeholder`}):v(ag,{class:`${o}-data-table-expand-trigger`,clsPrefix:o,expanded:ot,rowData:We,renderExpandIcon:this.renderExpandIcon,loading:a.has(ne.key),onClick:()=>{fe(Ve,ne.tmNode)}})]:null,et.type==="selection"?Me?null:et.multiple===!1?v(Rz,{key:T,rowKey:Ve,disabled:ne.tmNode.disabled,onUpdateChecked:()=>{pe(ne.tmNode)}}):v(vz,{key:T,rowKey:Ve,disabled:ne.tmNode.disabled,onUpdateChecked:(vt,yt)=>{J(ne.tmNode,vt,yt.shiftKey)}}):et.type==="expand"?Me?null:!et.expandable||!((Ge=et.expandable)===null||Ge===void 0)&&Ge.call(et,We)?v(ag,{clsPrefix:o,rowData:We,expanded:ot,renderExpandIcon:this.renderExpandIcon,onClick:()=>{fe(Ve,null)}}):null:v(kz,{clsPrefix:o,index:ke,row:We,column:et,isSummary:Me,mergedTheme:w,renderCell:this.renderCell}))});return ye&&le&&re&&q.splice(le,0,v("td",{colspan:m.length-le-re,style:{pointerEvents:"none",visibility:"hidden",height:0}})),v("tr",Object.assign({},Xe,{onMouseenter:Ce=>{var Re;this.hoverKey=Ve,(Re=Xe==null?void 0:Xe.onMouseenter)===null||Re===void 0||Re.call(Xe,Ce)},key:Ve,class:[`${o}-data-table-tr`,Me&&`${o}-data-table-tr--summary`,He&&`${o}-data-table-tr--striped`,ot&&`${o}-data-table-tr--expanded`,Pe,Xe==null?void 0:Xe.class],style:[Xe==null?void 0:Xe.style,ye&&{height:z}]}),q)};return n?v(Is,{ref:"virtualListRef",items:ae,itemSize:this.minRowHeight,visibleItemsTag:Qz,visibleItemsProps:{clsPrefix:o,id:j,cols:m,onMouseleave:D},showScrollbar:!1,onResize:this.handleVirtualListResize,onScroll:this.handleVirtualListScroll,itemsStyle:h,itemResizable:!A,columns:m,renderItemWithCols:A?({itemIndex:ne,item:te,startColIndex:oe,endColIndex:ye,getLeft:be})=>xe({displayedRowIndex:ne,isVirtual:!0,isVirtualX:!0,rowInfo:te,startColIndex:oe,endColIndex:ye,getLeft:be}):void 0},{default:({item:ne,index:te,renderedItemWithCols:oe})=>oe||xe({rowInfo:ne,displayedRowIndex:te,isVirtual:!0,isVirtualX:!1,startColIndex:0,endColIndex:0,getLeft(ye){return 0}})}):v("table",{class:`${o}-data-table-table`,onMouseleave:D,style:{tableLayout:this.mergedTableLayout}},v("colgroup",null,m.map(ne=>v("col",{key:ne.key,style:ne.style}))),this.showHeader?v(gg,{discrete:!1}):null,this.empty?null:v("tbody",{"data-n-id":j,class:`${o}-data-table-tbody`},ae.map((ne,te)=>xe({rowInfo:ne,displayedRowIndex:te,isVirtual:!1,isVirtualX:!1,startColIndex:-1,endColIndex:-1,getLeft(oe){return-1}}))))}});if(this.empty){const g=()=>v("div",{class:[`${o}-data-table-empty`,this.loading&&`${o}-data-table-empty--hide`],style:this.bodyStyle,ref:"emptyElRef"},Mo(this.dataTableSlots.empty,()=>[v(bv,{theme:this.mergedTheme.peers.Empty,themeOverrides:this.mergedTheme.peerOverrides.Empty})]));return this.shouldDisplaySomeTablePart?v(it,null,p,g()):v(wn,{onResize:this.onResize},{default:g})}return p}}),tT=ve({name:"MainTable",setup(){const{mergedClsPrefixRef:e,rightFixedColumnsRef:t,leftFixedColumnsRef:o,bodyWidthRef:n,maxHeightRef:r,minHeightRef:i,flexHeightRef:l,virtualScrollHeaderRef:a,syncScrollState:s}=$e(wo),c=V(null),d=V(null),u=V(null),f=V(!(o.value.length||t.value.length)),h=F(()=>({maxHeight:zt(r.value),minHeight:zt(i.value)}));function p(x){n.value=x.contentRect.width,s(),f.value||(f.value=!0)}function g(){var x;const{value:w}=c;return w?a.value?((x=w.virtualListRef)===null||x===void 0?void 0:x.listElRef)||null:w.$el:null}function b(){const{value:x}=d;return x?x.getScrollContainer():null}const m={getBodyElement:b,getHeaderElement:g,scrollTo(x,w){var C;(C=d.value)===null||C===void 0||C.scrollTo(x,w)}};return Mt(()=>{const{value:x}=u;if(!x)return;const w=`${e.value}-data-table-base-table--transition-disabled`;f.value?setTimeout(()=>{x.classList.remove(w)},0):x.classList.add(w)}),Object.assign({maxHeight:r,mergedClsPrefix:e,selfElRef:u,headerInstRef:c,bodyInstRef:d,bodyStyle:h,flexHeight:l,handleBodyResize:p},m)},render(){const{mergedClsPrefix:e,maxHeight:t,flexHeight:o}=this,n=t===void 0&&!o;return v("div",{class:`${e}-data-table-base-table`,ref:"selfElRef"},n?null:v(gg,{ref:"headerInstRef"}),v(eT,{ref:"bodyInstRef",bodyStyle:this.bodyStyle,showHeader:n,flexHeight:o,onResize:this.handleBodyResize}))}}),mg=nT(),oT=L([I("data-table",`
|
||
width: 100%;
|
||
font-size: var(--n-font-size);
|
||
display: flex;
|
||
flex-direction: column;
|
||
position: relative;
|
||
--n-merged-th-color: var(--n-th-color);
|
||
--n-merged-td-color: var(--n-td-color);
|
||
--n-merged-border-color: var(--n-border-color);
|
||
--n-merged-th-color-hover: var(--n-th-color-hover);
|
||
--n-merged-th-color-sorting: var(--n-th-color-sorting);
|
||
--n-merged-td-color-hover: var(--n-td-color-hover);
|
||
--n-merged-td-color-sorting: var(--n-td-color-sorting);
|
||
--n-merged-td-color-striped: var(--n-td-color-striped);
|
||
`,[I("data-table-wrapper",`
|
||
flex-grow: 1;
|
||
display: flex;
|
||
flex-direction: column;
|
||
`),Y("flex-height",[L(">",[I("data-table-wrapper",[L(">",[I("data-table-base-table",`
|
||
display: flex;
|
||
flex-direction: column;
|
||
flex-grow: 1;
|
||
`,[L(">",[I("data-table-base-table-body","flex-basis: 0;",[L("&:last-child","flex-grow: 1;")])])])])])])]),L(">",[I("data-table-loading-wrapper",`
|
||
color: var(--n-loading-color);
|
||
font-size: var(--n-loading-size);
|
||
position: absolute;
|
||
left: 50%;
|
||
top: 50%;
|
||
transform: translateX(-50%) translateY(-50%);
|
||
transition: color .3s var(--n-bezier);
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
`,[Ql({originalTransform:"translateX(-50%) translateY(-50%)"})])]),I("data-table-expand-placeholder",`
|
||
margin-right: 8px;
|
||
display: inline-block;
|
||
width: 16px;
|
||
height: 1px;
|
||
`),I("data-table-indent",`
|
||
display: inline-block;
|
||
height: 1px;
|
||
`),I("data-table-expand-trigger",`
|
||
display: inline-flex;
|
||
margin-right: 8px;
|
||
cursor: pointer;
|
||
font-size: 16px;
|
||
vertical-align: -0.2em;
|
||
position: relative;
|
||
width: 16px;
|
||
height: 16px;
|
||
color: var(--n-td-text-color);
|
||
transition: color .3s var(--n-bezier);
|
||
`,[Y("expanded",[I("icon","transform: rotate(90deg);",[Do({originalTransform:"rotate(90deg)"})]),I("base-icon","transform: rotate(90deg);",[Do({originalTransform:"rotate(90deg)"})])]),I("base-loading",`
|
||
color: var(--n-loading-color);
|
||
transition: color .3s var(--n-bezier);
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
`,[Do()]),I("icon",`
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
`,[Do()]),I("base-icon",`
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
`,[Do()])]),I("data-table-thead",`
|
||
transition: background-color .3s var(--n-bezier);
|
||
background-color: var(--n-merged-th-color);
|
||
`),I("data-table-tr",`
|
||
position: relative;
|
||
box-sizing: border-box;
|
||
background-clip: padding-box;
|
||
transition: background-color .3s var(--n-bezier);
|
||
`,[I("data-table-expand",`
|
||
position: sticky;
|
||
left: 0;
|
||
overflow: hidden;
|
||
margin: calc(var(--n-th-padding) * -1);
|
||
padding: var(--n-th-padding);
|
||
box-sizing: border-box;
|
||
`),Y("striped","background-color: var(--n-merged-td-color-striped);",[I("data-table-td","background-color: var(--n-merged-td-color-striped);")]),Ye("summary",[L("&:hover","background-color: var(--n-merged-td-color-hover);",[L(">",[I("data-table-td","background-color: var(--n-merged-td-color-hover);")])])])]),I("data-table-th",`
|
||
padding: var(--n-th-padding);
|
||
position: relative;
|
||
text-align: start;
|
||
box-sizing: border-box;
|
||
background-color: var(--n-merged-th-color);
|
||
border-color: var(--n-merged-border-color);
|
||
border-bottom: 1px solid var(--n-merged-border-color);
|
||
color: var(--n-th-text-color);
|
||
transition:
|
||
border-color .3s var(--n-bezier),
|
||
color .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier);
|
||
font-weight: var(--n-th-font-weight);
|
||
`,[Y("filterable",`
|
||
padding-right: 36px;
|
||
`,[Y("sortable",`
|
||
padding-right: calc(var(--n-th-padding) + 36px);
|
||
`)]),mg,Y("selection",`
|
||
padding: 0;
|
||
text-align: center;
|
||
line-height: 0;
|
||
z-index: 3;
|
||
`),H("title-wrapper",`
|
||
display: flex;
|
||
align-items: center;
|
||
flex-wrap: nowrap;
|
||
max-width: 100%;
|
||
`,[H("title",`
|
||
flex: 1;
|
||
min-width: 0;
|
||
`)]),H("ellipsis",`
|
||
display: inline-block;
|
||
vertical-align: bottom;
|
||
text-overflow: ellipsis;
|
||
overflow: hidden;
|
||
white-space: nowrap;
|
||
max-width: 100%;
|
||
`),Y("hover",`
|
||
background-color: var(--n-merged-th-color-hover);
|
||
`),Y("sorting",`
|
||
background-color: var(--n-merged-th-color-sorting);
|
||
`),Y("sortable",`
|
||
cursor: pointer;
|
||
`,[H("ellipsis",`
|
||
max-width: calc(100% - 18px);
|
||
`),L("&:hover",`
|
||
background-color: var(--n-merged-th-color-hover);
|
||
`)]),I("data-table-sorter",`
|
||
height: var(--n-sorter-size);
|
||
width: var(--n-sorter-size);
|
||
margin-left: 4px;
|
||
position: relative;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
vertical-align: -0.2em;
|
||
color: var(--n-th-icon-color);
|
||
transition: color .3s var(--n-bezier);
|
||
`,[I("base-icon","transition: transform .3s var(--n-bezier)"),Y("desc",[I("base-icon",`
|
||
transform: rotate(0deg);
|
||
`)]),Y("asc",[I("base-icon",`
|
||
transform: rotate(-180deg);
|
||
`)]),Y("asc, desc",`
|
||
color: var(--n-th-icon-color-active);
|
||
`)]),I("data-table-resize-button",`
|
||
width: var(--n-resizable-container-size);
|
||
position: absolute;
|
||
top: 0;
|
||
right: calc(var(--n-resizable-container-size) / 2);
|
||
bottom: 0;
|
||
cursor: col-resize;
|
||
user-select: none;
|
||
`,[L("&::after",`
|
||
width: var(--n-resizable-size);
|
||
height: 50%;
|
||
position: absolute;
|
||
top: 50%;
|
||
left: calc(var(--n-resizable-container-size) / 2);
|
||
bottom: 0;
|
||
background-color: var(--n-merged-border-color);
|
||
transform: translateY(-50%);
|
||
transition: background-color .3s var(--n-bezier);
|
||
z-index: 1;
|
||
content: '';
|
||
`),Y("active",[L("&::after",`
|
||
background-color: var(--n-th-icon-color-active);
|
||
`)]),L("&:hover::after",`
|
||
background-color: var(--n-th-icon-color-active);
|
||
`)]),I("data-table-filter",`
|
||
position: absolute;
|
||
z-index: auto;
|
||
right: 0;
|
||
width: 36px;
|
||
top: 0;
|
||
bottom: 0;
|
||
cursor: pointer;
|
||
display: flex;
|
||
justify-content: center;
|
||
align-items: center;
|
||
transition:
|
||
background-color .3s var(--n-bezier),
|
||
color .3s var(--n-bezier);
|
||
font-size: var(--n-filter-size);
|
||
color: var(--n-th-icon-color);
|
||
`,[L("&:hover",`
|
||
background-color: var(--n-th-button-color-hover);
|
||
`),Y("show",`
|
||
background-color: var(--n-th-button-color-hover);
|
||
`),Y("active",`
|
||
background-color: var(--n-th-button-color-hover);
|
||
color: var(--n-th-icon-color-active);
|
||
`)])]),I("data-table-td",`
|
||
padding: var(--n-td-padding);
|
||
text-align: start;
|
||
box-sizing: border-box;
|
||
border: none;
|
||
background-color: var(--n-merged-td-color);
|
||
color: var(--n-td-text-color);
|
||
border-bottom: 1px solid var(--n-merged-border-color);
|
||
transition:
|
||
box-shadow .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier),
|
||
border-color .3s var(--n-bezier),
|
||
color .3s var(--n-bezier);
|
||
`,[Y("expand",[I("data-table-expand-trigger",`
|
||
margin-right: 0;
|
||
`)]),Y("last-row",`
|
||
border-bottom: 0 solid var(--n-merged-border-color);
|
||
`,[L("&::after",`
|
||
bottom: 0 !important;
|
||
`),L("&::before",`
|
||
bottom: 0 !important;
|
||
`)]),Y("summary",`
|
||
background-color: var(--n-merged-th-color);
|
||
`),Y("hover",`
|
||
background-color: var(--n-merged-td-color-hover);
|
||
`),Y("sorting",`
|
||
background-color: var(--n-merged-td-color-sorting);
|
||
`),H("ellipsis",`
|
||
display: inline-block;
|
||
text-overflow: ellipsis;
|
||
overflow: hidden;
|
||
white-space: nowrap;
|
||
max-width: 100%;
|
||
vertical-align: bottom;
|
||
max-width: calc(100% - var(--indent-offset, -1.5) * 16px - 24px);
|
||
`),Y("selection, expand",`
|
||
text-align: center;
|
||
padding: 0;
|
||
line-height: 0;
|
||
`),mg]),I("data-table-empty",`
|
||
box-sizing: border-box;
|
||
padding: var(--n-empty-padding);
|
||
flex-grow: 1;
|
||
flex-shrink: 0;
|
||
opacity: 1;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
transition: opacity .3s var(--n-bezier);
|
||
`,[Y("hide",`
|
||
opacity: 0;
|
||
`)]),H("pagination",`
|
||
margin: var(--n-pagination-margin);
|
||
display: flex;
|
||
justify-content: flex-end;
|
||
`),I("data-table-wrapper",`
|
||
position: relative;
|
||
opacity: 1;
|
||
transition: opacity .3s var(--n-bezier), border-color .3s var(--n-bezier);
|
||
border-top-left-radius: var(--n-border-radius);
|
||
border-top-right-radius: var(--n-border-radius);
|
||
line-height: var(--n-line-height);
|
||
`),Y("loading",[I("data-table-wrapper",`
|
||
opacity: var(--n-opacity-loading);
|
||
pointer-events: none;
|
||
`)]),Y("single-column",[I("data-table-td",`
|
||
border-bottom: 0 solid var(--n-merged-border-color);
|
||
`,[L("&::after, &::before",`
|
||
bottom: 0 !important;
|
||
`)])]),Ye("single-line",[I("data-table-th",`
|
||
border-right: 1px solid var(--n-merged-border-color);
|
||
`,[Y("last",`
|
||
border-right: 0 solid var(--n-merged-border-color);
|
||
`)]),I("data-table-td",`
|
||
border-right: 1px solid var(--n-merged-border-color);
|
||
`,[Y("last-col",`
|
||
border-right: 0 solid var(--n-merged-border-color);
|
||
`)])]),Y("bordered",[I("data-table-wrapper",`
|
||
border: 1px solid var(--n-merged-border-color);
|
||
border-bottom-left-radius: var(--n-border-radius);
|
||
border-bottom-right-radius: var(--n-border-radius);
|
||
overflow: hidden;
|
||
`)]),I("data-table-base-table",[Y("transition-disabled",[I("data-table-th",[L("&::after, &::before","transition: none;")]),I("data-table-td",[L("&::after, &::before","transition: none;")])])]),Y("bottom-bordered",[I("data-table-td",[Y("last-row",`
|
||
border-bottom: 1px solid var(--n-merged-border-color);
|
||
`)])]),I("data-table-table",`
|
||
font-variant-numeric: tabular-nums;
|
||
width: 100%;
|
||
word-break: break-word;
|
||
transition: background-color .3s var(--n-bezier);
|
||
border-collapse: separate;
|
||
border-spacing: 0;
|
||
background-color: var(--n-merged-td-color);
|
||
`),I("data-table-base-table-header",`
|
||
border-top-left-radius: calc(var(--n-border-radius) - 1px);
|
||
border-top-right-radius: calc(var(--n-border-radius) - 1px);
|
||
z-index: 3;
|
||
overflow: scroll;
|
||
flex-shrink: 0;
|
||
transition: border-color .3s var(--n-bezier);
|
||
scrollbar-width: none;
|
||
`,[L("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
|
||
display: none;
|
||
width: 0;
|
||
height: 0;
|
||
`)]),I("data-table-check-extra",`
|
||
transition: color .3s var(--n-bezier);
|
||
color: var(--n-th-icon-color);
|
||
position: absolute;
|
||
font-size: 14px;
|
||
right: -4px;
|
||
top: 50%;
|
||
transform: translateY(-50%);
|
||
z-index: 1;
|
||
`)]),I("data-table-filter-menu",[I("scrollbar",`
|
||
max-height: 240px;
|
||
`),H("group",`
|
||
display: flex;
|
||
flex-direction: column;
|
||
padding: 12px 12px 0 12px;
|
||
`,[I("checkbox",`
|
||
margin-bottom: 12px;
|
||
margin-right: 0;
|
||
`),I("radio",`
|
||
margin-bottom: 12px;
|
||
margin-right: 0;
|
||
`)]),H("action",`
|
||
padding: var(--n-action-padding);
|
||
display: flex;
|
||
flex-wrap: nowrap;
|
||
justify-content: space-evenly;
|
||
border-top: 1px solid var(--n-action-divider-color);
|
||
`,[I("button",[L("&:not(:last-child)",`
|
||
margin: var(--n-action-button-margin);
|
||
`),L("&:last-child",`
|
||
margin-right: 0;
|
||
`)])]),I("divider",`
|
||
margin: 0 !important;
|
||
`)]),Sl(I("data-table",`
|
||
--n-merged-th-color: var(--n-th-color-modal);
|
||
--n-merged-td-color: var(--n-td-color-modal);
|
||
--n-merged-border-color: var(--n-border-color-modal);
|
||
--n-merged-th-color-hover: var(--n-th-color-hover-modal);
|
||
--n-merged-td-color-hover: var(--n-td-color-hover-modal);
|
||
--n-merged-th-color-sorting: var(--n-th-color-hover-modal);
|
||
--n-merged-td-color-sorting: var(--n-td-color-hover-modal);
|
||
--n-merged-td-color-striped: var(--n-td-color-striped-modal);
|
||
`)),Rl(I("data-table",`
|
||
--n-merged-th-color: var(--n-th-color-popover);
|
||
--n-merged-td-color: var(--n-td-color-popover);
|
||
--n-merged-border-color: var(--n-border-color-popover);
|
||
--n-merged-th-color-hover: var(--n-th-color-hover-popover);
|
||
--n-merged-td-color-hover: var(--n-td-color-hover-popover);
|
||
--n-merged-th-color-sorting: var(--n-th-color-hover-popover);
|
||
--n-merged-td-color-sorting: var(--n-td-color-hover-popover);
|
||
--n-merged-td-color-striped: var(--n-td-color-striped-popover);
|
||
`))]);function nT(){return[Y("fixed-left",`
|
||
left: 0;
|
||
position: sticky;
|
||
z-index: 2;
|
||
`,[L("&::after",`
|
||
pointer-events: none;
|
||
content: "";
|
||
width: 36px;
|
||
display: inline-block;
|
||
position: absolute;
|
||
top: 0;
|
||
bottom: -1px;
|
||
transition: box-shadow .2s var(--n-bezier);
|
||
right: -36px;
|
||
`)]),Y("fixed-right",`
|
||
right: 0;
|
||
position: sticky;
|
||
z-index: 1;
|
||
`,[L("&::before",`
|
||
pointer-events: none;
|
||
content: "";
|
||
width: 36px;
|
||
display: inline-block;
|
||
position: absolute;
|
||
top: 0;
|
||
bottom: -1px;
|
||
transition: box-shadow .2s var(--n-bezier);
|
||
left: -36px;
|
||
`)])]}function rT(e,t){const{paginatedDataRef:o,treeMateRef:n,selectionColumnRef:r}=t,i=V(e.defaultCheckedRowKeys),l=F(()=>{var P;const{checkedRowKeys:T}=e,y=T===void 0?i.value:T;return((P=r.value)===null||P===void 0?void 0:P.multiple)===!1?{checkedKeys:y.slice(0,1),indeterminateKeys:[]}:n.value.getCheckedKeys(y,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded})}),a=F(()=>l.value.checkedKeys),s=F(()=>l.value.indeterminateKeys),c=F(()=>new Set(a.value)),d=F(()=>new Set(s.value)),u=F(()=>{const{value:P}=c;return o.value.reduce((T,y)=>{const{key:B,disabled:S}=y;return T+(!S&&P.has(B)?1:0)},0)}),f=F(()=>o.value.filter(P=>P.disabled).length),h=F(()=>{const{length:P}=o.value,{value:T}=d;return u.value>0&&u.value<P-f.value||o.value.some(y=>T.has(y.key))}),p=F(()=>{const{length:P}=o.value;return u.value!==0&&u.value===P-f.value}),g=F(()=>o.value.length===0);function b(P,T,y){const{"onUpdate:checkedRowKeys":B,onUpdateCheckedRowKeys:S,onCheckedRowKeysChange:E}=e,j=[],{value:{getNode:_}}=n;P.forEach(M=>{var W;const D=(W=_(M))===null||W===void 0?void 0:W.rawNode;j.push(D)}),B&&ge(B,P,j,{row:T,action:y}),S&&ge(S,P,j,{row:T,action:y}),E&&ge(E,P,j,{row:T,action:y}),i.value=P}function m(P,T=!1,y){if(!e.loading){if(T){b(Array.isArray(P)?P.slice(0,1):[P],y,"check");return}b(n.value.check(P,a.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,y,"check")}}function x(P,T){e.loading||b(n.value.uncheck(P,a.value,{cascade:e.cascade,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,T,"uncheck")}function w(P=!1){const{value:T}=r;if(!T||e.loading)return;const y=[];(P?n.value.treeNodes:o.value).forEach(B=>{B.disabled||y.push(B.key)}),b(n.value.check(y,a.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"checkAll")}function C(P=!1){const{value:T}=r;if(!T||e.loading)return;const y=[];(P?n.value.treeNodes:o.value).forEach(B=>{B.disabled||y.push(B.key)}),b(n.value.uncheck(y,a.value,{cascade:!0,allowNotLoaded:e.allowCheckingNotLoaded}).checkedKeys,void 0,"uncheckAll")}return{mergedCheckedRowKeySetRef:c,mergedCheckedRowKeysRef:a,mergedInderminateRowKeySetRef:d,someRowsCheckedRef:h,allRowsCheckedRef:p,headerCheckboxDisabledRef:g,doUpdateCheckedRowKeys:b,doCheckAll:w,doUncheckAll:C,doCheck:m,doUncheck:x}}function iT(e,t){const o=Ze(()=>{for(const c of e.columns)if(c.type==="expand")return c.renderExpand}),n=Ze(()=>{let c;for(const d of e.columns)if(d.type==="expand"){c=d.expandable;break}return c}),r=V(e.defaultExpandAll?o!=null&&o.value?(()=>{const c=[];return t.value.treeNodes.forEach(d=>{var u;!((u=n.value)===null||u===void 0)&&u.call(n,d.rawNode)&&c.push(d.key)}),c})():t.value.getNonLeafKeys():e.defaultExpandedRowKeys),i=Se(e,"expandedRowKeys"),l=Se(e,"stickyExpandedRows"),a=It(i,r);function s(c){const{onUpdateExpandedRowKeys:d,"onUpdate:expandedRowKeys":u}=e;d&&ge(d,c),u&&ge(u,c),r.value=c}return{stickyExpandedRowsRef:l,mergedExpandedRowKeysRef:a,renderExpandRef:o,expandableRef:n,doUpdateExpandedRowKeys:s}}function lT(e,t){const o=[],n=[],r=[],i=new WeakMap;let l=-1,a=0,s=!1,c=0;function d(f,h){h>l&&(o[h]=[],l=h),f.forEach(p=>{if("children"in p)d(p.children,h+1);else{const g="key"in p?p.key:void 0;n.push({key:So(p),style:dz(p,g!==void 0?zt(t(g)):void 0),column:p,index:c++,width:p.width===void 0?128:Number(p.width)}),a+=1,s||(s=!!p.ellipsis),r.push(p)}})}d(e,0),c=0;function u(f,h){let p=0;f.forEach(g=>{var b;if("children"in g){const m=c,x={column:g,colIndex:c,colSpan:0,rowSpan:1,isLast:!1};u(g.children,h+1),g.children.forEach(w=>{var C,P;x.colSpan+=(P=(C=i.get(w))===null||C===void 0?void 0:C.colSpan)!==null&&P!==void 0?P:0}),m+x.colSpan===a&&(x.isLast=!0),i.set(g,x),o[h].push(x)}else{if(c<p){c+=1;return}let m=1;"titleColSpan"in g&&(m=(b=g.titleColSpan)!==null&&b!==void 0?b:1),m>1&&(p=c+m);const x=c+m===a,w={column:g,colSpan:m,colIndex:c,rowSpan:l-h+1,isLast:x};i.set(g,w),o[h].push(w),c+=1}})}return u(e,0),{hasEllipsis:s,rows:o,cols:n,dataRelatedCols:r}}function aT(e,t){const o=F(()=>lT(e.columns,t));return{rowsRef:F(()=>o.value.rows),colsRef:F(()=>o.value.cols),hasEllipsisRef:F(()=>o.value.hasEllipsis),dataRelatedColsRef:F(()=>o.value.dataRelatedCols)}}function sT(){const e=V({});function t(r){return e.value[r]}function o(r,i){Jv(r)&&"key"in r&&(e.value[r.key]=i)}function n(){e.value={}}return{getResizableWidth:t,doUpdateResizableWidth:o,clearResizableWidth:n}}function cT(e,{mainTableInstRef:t,mergedCurrentPageRef:o,bodyWidthRef:n}){let r=0;const i=V(),l=V(null),a=V([]),s=V(null),c=V([]),d=F(()=>zt(e.scrollX)),u=F(()=>e.columns.filter(S=>S.fixed==="left")),f=F(()=>e.columns.filter(S=>S.fixed==="right")),h=F(()=>{const S={};let E=0;function j(_){_.forEach(M=>{const W={start:E,end:0};S[So(M)]=W,"children"in M?(j(M.children),W.end=E):(E+=Yv(M)||0,W.end=E)})}return j(u.value),S}),p=F(()=>{const S={};let E=0;function j(_){for(let M=_.length-1;M>=0;--M){const W=_[M],D={start:E,end:0};S[So(W)]=D,"children"in W?(j(W.children),D.end=E):(E+=Yv(W)||0,D.end=E)}}return j(f.value),S});function g(){var S,E;const{value:j}=u;let _=0;const{value:M}=h;let W=null;for(let D=0;D<j.length;++D){const Z=So(j[D]);if(r>(((S=M[Z])===null||S===void 0?void 0:S.start)||0)-_)W=Z,_=((E=M[Z])===null||E===void 0?void 0:E.end)||0;else break}l.value=W}function b(){a.value=[];let S=e.columns.find(E=>So(E)===l.value);for(;S&&"children"in S;){const E=S.children.length;if(E===0)break;const j=S.children[E-1];a.value.push(So(j)),S=j}}function m(){var S,E;const{value:j}=f,_=Number(e.scrollX),{value:M}=n;if(M===null)return;let W=0,D=null;const{value:Z}=p;for(let U=j.length-1;U>=0;--U){const J=So(j[U]);if(Math.round(r+(((S=Z[J])===null||S===void 0?void 0:S.start)||0)+M-W)<_)D=J,W=((E=Z[J])===null||E===void 0?void 0:E.end)||0;else break}s.value=D}function x(){c.value=[];let S=e.columns.find(E=>So(E)===s.value);for(;S&&"children"in S&&S.children.length;){const E=S.children[0];c.value.push(So(E)),S=E}}function w(){const S=t.value?t.value.getHeaderElement():null,E=t.value?t.value.getBodyElement():null;return{header:S,body:E}}function C(){const{body:S}=w();S&&(S.scrollTop=0)}function P(){i.value!=="body"?_l(y):i.value=void 0}function T(S){var E;(E=e.onScroll)===null||E===void 0||E.call(e,S),i.value!=="head"?_l(y):i.value=void 0}function y(){const{header:S,body:E}=w();if(!E)return;const{value:j}=n;if(j!==null){if(e.maxHeight||e.flexHeight){if(!S)return;const _=r-S.scrollLeft;i.value=_!==0?"head":"body",i.value==="head"?(r=S.scrollLeft,E.scrollLeft=r):(r=E.scrollLeft,S.scrollLeft=r)}else r=E.scrollLeft;g(),b(),m(),x()}}function B(S){const{header:E}=w();E&&(E.scrollLeft=S,y())}return st(o,()=>{C()}),{styleScrollXRef:d,fixedColumnLeftMapRef:h,fixedColumnRightMapRef:p,leftFixedColumnsRef:u,rightFixedColumnsRef:f,leftActiveFixedColKeyRef:l,leftActiveFixedChildrenColKeysRef:a,rightActiveFixedColKeyRef:s,rightActiveFixedChildrenColKeysRef:c,syncScrollState:y,handleTableBodyScroll:T,handleTableHeaderScroll:P,setHeaderScrollLeft:B}}function la(e){return typeof e=="object"&&typeof e.multiple=="number"?e.multiple:!1}function dT(e,t){return t&&(e===void 0||e==="default"||typeof e=="object"&&e.compare==="default")?uT(t):typeof e=="function"?e:e&&typeof e=="object"&&e.compare&&e.compare!=="default"?e.compare:!1}function uT(e){return(t,o)=>{const n=t[e],r=o[e];return n==null?r==null?0:-1:r==null?1:typeof n=="number"&&typeof r=="number"?n-r:typeof n=="string"&&typeof r=="string"?n.localeCompare(r):0}}function fT(e,{dataRelatedColsRef:t,filteredDataRef:o}){const n=[];t.value.forEach(h=>{var p;h.sorter!==void 0&&f(n,{columnKey:h.key,sorter:h.sorter,order:(p=h.defaultSortOrder)!==null&&p!==void 0?p:!1})});const r=V(n),i=F(()=>{const h=t.value.filter(b=>b.type!=="selection"&&b.sorter!==void 0&&(b.sortOrder==="ascend"||b.sortOrder==="descend"||b.sortOrder===!1)),p=h.filter(b=>b.sortOrder!==!1);if(p.length)return p.map(b=>({columnKey:b.key,order:b.sortOrder,sorter:b.sorter}));if(h.length)return[];const{value:g}=r;return Array.isArray(g)?g:g?[g]:[]}),l=F(()=>{const h=i.value.slice().sort((p,g)=>{const b=la(p.sorter)||0;return(la(g.sorter)||0)-b});return h.length?o.value.slice().sort((g,b)=>{let m=0;return h.some(x=>{const{columnKey:w,sorter:C,order:P}=x,T=dT(C,w);return T&&P&&(m=T(g.rawNode,b.rawNode),m!==0)?(m=m*sz(P),!0):!1}),m}):o.value});function a(h){let p=i.value.slice();return h&&la(h.sorter)!==!1?(p=p.filter(g=>la(g.sorter)!==!1),f(p,h),p):h||null}function s(h){const p=a(h);c(p)}function c(h){const{"onUpdate:sorter":p,onUpdateSorter:g,onSorterChange:b}=e;p&&ge(p,h),g&&ge(g,h),b&&ge(b,h),r.value=h}function d(h,p="ascend"){if(!h)u();else{const g=t.value.find(m=>m.type!=="selection"&&m.type!=="expand"&&m.key===h);if(!(g!=null&&g.sorter))return;const b=g.sorter;s({columnKey:h,sorter:b,order:p})}}function u(){c(null)}function f(h,p){const g=h.findIndex(b=>(p==null?void 0:p.columnKey)&&b.columnKey===p.columnKey);g!==void 0&&g>=0?h[g]=p:h.push(p)}return{clearSorter:u,sort:d,sortedDataRef:l,mergedSortStateRef:i,deriveNextSorter:s}}function hT(e,{dataRelatedColsRef:t}){const o=F(()=>{const N=O=>{for(let A=0;A<O.length;++A){const Q=O[A];if("children"in Q)return N(Q.children);if(Q.type==="selection")return Q}return null};return N(e.columns)}),n=F(()=>{const{childrenKey:N}=e;return or(e.data,{ignoreEmptyChildren:!0,getKey:e.rowKey,getChildren:O=>O[N],getDisabled:O=>{var A,Q;return!!(!((Q=(A=o.value)===null||A===void 0?void 0:A.disabled)===null||Q===void 0)&&Q.call(A,O))}})}),r=Ze(()=>{const{columns:N}=e,{length:O}=N;let A=null;for(let Q=0;Q<O;++Q){const he=N[Q];if(!he.type&&A===null&&(A=Q),"tree"in he&&he.tree)return Q}return A||0}),i=V({}),{pagination:l}=e,a=V(l&&l.defaultPage||1),s=V(Uv(l)),c=F(()=>{const N=t.value.filter(Q=>Q.filterOptionValues!==void 0||Q.filterOptionValue!==void 0),O={};return N.forEach(Q=>{var he;Q.type==="selection"||Q.type==="expand"||(Q.filterOptionValues===void 0?O[Q.key]=(he=Q.filterOptionValue)!==null&&he!==void 0?he:null:O[Q.key]=Q.filterOptionValues)}),Object.assign(Zv(i.value),O)}),d=F(()=>{const N=c.value,{columns:O}=e;function A(we){return(X,de)=>!!~String(de[we]).indexOf(String(X))}const{value:{treeNodes:Q}}=n,he=[];return O.forEach(we=>{we.type==="selection"||we.type==="expand"||"children"in we||he.push([we.key,we])}),Q?Q.filter(we=>{const{rawNode:X}=we;for(const[de,R]of he){let ae=N[de];if(ae==null||(Array.isArray(ae)||(ae=[ae]),!ae.length))continue;const _e=R.filter==="default"?A(de):R.filter;if(R&&typeof _e=="function")if(R.filterMode==="and"){if(ae.some(k=>!_e(k,X)))return!1}else{if(ae.some(k=>_e(k,X)))continue;return!1}}return!0}):[]}),{sortedDataRef:u,deriveNextSorter:f,mergedSortStateRef:h,sort:p,clearSorter:g}=fT(e,{dataRelatedColsRef:t,filteredDataRef:d});t.value.forEach(N=>{var O;if(N.filter){const A=N.defaultFilterOptionValues;N.filterMultiple?i.value[N.key]=A||[]:A!==void 0?i.value[N.key]=A===null?[]:A:i.value[N.key]=(O=N.defaultFilterOptionValue)!==null&&O!==void 0?O:null}});const b=F(()=>{const{pagination:N}=e;if(N!==!1)return N.page}),m=F(()=>{const{pagination:N}=e;if(N!==!1)return N.pageSize}),x=It(b,a),w=It(m,s),C=Ze(()=>{const N=x.value;return e.remote?N:Math.max(1,Math.min(Math.ceil(d.value.length/w.value),N))}),P=F(()=>{const{pagination:N}=e;if(N){const{pageCount:O}=N;if(O!==void 0)return O}}),T=F(()=>{if(e.remote)return n.value.treeNodes;if(!e.pagination)return u.value;const N=w.value,O=(C.value-1)*N;return u.value.slice(O,O+N)}),y=F(()=>T.value.map(N=>N.rawNode));function B(N){const{pagination:O}=e;if(O){const{onChange:A,"onUpdate:page":Q,onUpdatePage:he}=O;A&&ge(A,N),he&&ge(he,N),Q&&ge(Q,N),_(N)}}function S(N){const{pagination:O}=e;if(O){const{onPageSizeChange:A,"onUpdate:pageSize":Q,onUpdatePageSize:he}=O;A&&ge(A,N),he&&ge(he,N),Q&&ge(Q,N),M(N)}}const E=F(()=>{if(e.remote){const{pagination:N}=e;if(N){const{itemCount:O}=N;if(O!==void 0)return O}return}return d.value.length}),j=F(()=>Object.assign(Object.assign({},e.pagination),{onChange:void 0,onUpdatePage:void 0,onUpdatePageSize:void 0,onPageSizeChange:void 0,"onUpdate:page":B,"onUpdate:pageSize":S,page:C.value,pageSize:w.value,pageCount:E.value===void 0?P.value:void 0,itemCount:E.value}));function _(N){const{"onUpdate:page":O,onPageChange:A,onUpdatePage:Q}=e;Q&&ge(Q,N),O&&ge(O,N),A&&ge(A,N),a.value=N}function M(N){const{"onUpdate:pageSize":O,onPageSizeChange:A,onUpdatePageSize:Q}=e;A&&ge(A,N),Q&&ge(Q,N),O&&ge(O,N),s.value=N}function W(N,O){const{onUpdateFilters:A,"onUpdate:filters":Q,onFiltersChange:he}=e;A&&ge(A,N,O),Q&&ge(Q,N,O),he&&ge(he,N,O),i.value=N}function D(N,O,A,Q){var he;(he=e.onUnstableColumnResize)===null||he===void 0||he.call(e,N,O,A,Q)}function Z(N){_(N)}function U(){J()}function J(){pe({})}function pe(N){fe(N)}function fe(N){N?N&&(i.value=Zv(N)):i.value={}}return{treeMateRef:n,mergedCurrentPageRef:C,mergedPaginationRef:j,paginatedDataRef:T,rawPaginatedDataRef:y,mergedFilterStateRef:c,mergedSortStateRef:h,hoverKeyRef:V(null),selectionColumnRef:o,childTriggerColIndexRef:r,doUpdateFilters:W,deriveNextSorter:f,doUpdatePageSize:M,doUpdatePage:_,onUnstableColumnResize:D,filter:fe,filters:pe,clearFilter:U,clearFilters:J,clearSorter:g,page:Z,sort:p}}const pT=ve({name:"DataTable",alias:["AdvancedTable"],props:lz,slots:Object,setup(e,{slots:t}){const{mergedBorderedRef:o,mergedClsPrefixRef:n,inlineThemeDisabled:r,mergedRtlRef:i}=Je(e),l=qt("DataTable",i,n),a=F(()=>{const{bottomBordered:z}=e;return o.value?!1:z!==void 0?z:!0}),s=Ie("DataTable","-data-table",oT,iz,e,n),c=V(null),d=V(null),{getResizableWidth:u,clearResizableWidth:f,doUpdateResizableWidth:h}=sT(),{rowsRef:p,colsRef:g,dataRelatedColsRef:b,hasEllipsisRef:m}=aT(e,u),{treeMateRef:x,mergedCurrentPageRef:w,paginatedDataRef:C,rawPaginatedDataRef:P,selectionColumnRef:T,hoverKeyRef:y,mergedPaginationRef:B,mergedFilterStateRef:S,mergedSortStateRef:E,childTriggerColIndexRef:j,doUpdatePage:_,doUpdateFilters:M,onUnstableColumnResize:W,deriveNextSorter:D,filter:Z,filters:U,clearFilter:J,clearFilters:pe,clearSorter:fe,page:N,sort:O}=hT(e,{dataRelatedColsRef:b}),A=z=>{const{fileName:q="data.csv",keepOriginalData:ce=!1}=z||{},Ce=ce?e.data:P.value,Re=pz(e.columns,Ce,e.getCsvCell,e.getCsvHeader),Te=new Blob([Re],{type:"text/csv;charset=utf-8"}),Ee=URL.createObjectURL(Te);bC(Ee,q.endsWith(".csv")?q:`${q}.csv`),URL.revokeObjectURL(Ee)},{doCheckAll:Q,doUncheckAll:he,doCheck:we,doUncheck:X,headerCheckboxDisabledRef:de,someRowsCheckedRef:R,allRowsCheckedRef:ae,mergedCheckedRowKeySetRef:_e,mergedInderminateRowKeySetRef:k}=rT(e,{selectionColumnRef:T,treeMateRef:x,paginatedDataRef:C}),{stickyExpandedRowsRef:$,mergedExpandedRowKeysRef:K,renderExpandRef:ie,expandableRef:le,doUpdateExpandedRowKeys:re}=iT(e,x),{handleTableBodyScroll:xe,handleTableHeaderScroll:ne,syncScrollState:te,setHeaderScrollLeft:oe,leftActiveFixedColKeyRef:ye,leftActiveFixedChildrenColKeysRef:be,rightActiveFixedColKeyRef:ee,rightActiveFixedChildrenColKeysRef:se,leftFixedColumnsRef:ke,rightFixedColumnsRef:Me,fixedColumnLeftMapRef:He,fixedColumnRightMapRef:Qe}=cT(e,{bodyWidthRef:c,mainTableInstRef:d,mergedCurrentPageRef:w}),{localeRef:Ve}=Pi("DataTable"),We=F(()=>e.virtualScroll||e.flexHeight||e.maxHeight!==void 0||m.value?"fixed":e.tableLayout);tt(wo,{props:e,treeMateRef:x,renderExpandIconRef:Se(e,"renderExpandIcon"),loadingKeySetRef:V(new Set),slots:t,indentRef:Se(e,"indent"),childTriggerColIndexRef:j,bodyWidthRef:c,componentId:Tl(),hoverKeyRef:y,mergedClsPrefixRef:n,mergedThemeRef:s,scrollXRef:F(()=>e.scrollX),rowsRef:p,colsRef:g,paginatedDataRef:C,leftActiveFixedColKeyRef:ye,leftActiveFixedChildrenColKeysRef:be,rightActiveFixedColKeyRef:ee,rightActiveFixedChildrenColKeysRef:se,leftFixedColumnsRef:ke,rightFixedColumnsRef:Me,fixedColumnLeftMapRef:He,fixedColumnRightMapRef:Qe,mergedCurrentPageRef:w,someRowsCheckedRef:R,allRowsCheckedRef:ae,mergedSortStateRef:E,mergedFilterStateRef:S,loadingRef:Se(e,"loading"),rowClassNameRef:Se(e,"rowClassName"),mergedCheckedRowKeySetRef:_e,mergedExpandedRowKeysRef:K,mergedInderminateRowKeySetRef:k,localeRef:Ve,expandableRef:le,stickyExpandedRowsRef:$,rowKeyRef:Se(e,"rowKey"),renderExpandRef:ie,summaryRef:Se(e,"summary"),virtualScrollRef:Se(e,"virtualScroll"),virtualScrollXRef:Se(e,"virtualScrollX"),heightForRowRef:Se(e,"heightForRow"),minRowHeightRef:Se(e,"minRowHeight"),virtualScrollHeaderRef:Se(e,"virtualScrollHeader"),headerHeightRef:Se(e,"headerHeight"),rowPropsRef:Se(e,"rowProps"),stripedRef:Se(e,"striped"),checkOptionsRef:F(()=>{const{value:z}=T;return z==null?void 0:z.options}),rawPaginatedDataRef:P,filterMenuCssVarsRef:F(()=>{const{self:{actionDividerColor:z,actionPadding:q,actionButtonMargin:ce}}=s.value;return{"--n-action-padding":q,"--n-action-button-margin":ce,"--n-action-divider-color":z}}),onLoadRef:Se(e,"onLoad"),mergedTableLayoutRef:We,maxHeightRef:Se(e,"maxHeight"),minHeightRef:Se(e,"minHeight"),flexHeightRef:Se(e,"flexHeight"),headerCheckboxDisabledRef:de,paginationBehaviorOnFilterRef:Se(e,"paginationBehaviorOnFilter"),summaryPlacementRef:Se(e,"summaryPlacement"),filterIconPopoverPropsRef:Se(e,"filterIconPopoverProps"),scrollbarPropsRef:Se(e,"scrollbarProps"),syncScrollState:te,doUpdatePage:_,doUpdateFilters:M,getResizableWidth:u,onUnstableColumnResize:W,clearResizableWidth:f,doUpdateResizableWidth:h,deriveNextSorter:D,doCheck:we,doUncheck:X,doCheckAll:Q,doUncheckAll:he,doUpdateExpandedRowKeys:re,handleTableHeaderScroll:ne,handleTableBodyScroll:xe,setHeaderScrollLeft:oe,renderCell:Se(e,"renderCell")});const ot={filter:Z,filters:U,clearFilters:pe,clearSorter:fe,page:N,sort:O,clearFilter:J,downloadCsv:A,scrollTo:(z,q)=>{var ce;(ce=d.value)===null||ce===void 0||ce.scrollTo(z,q)}},Xe=F(()=>{const{size:z}=e,{common:{cubicBezierEaseInOut:q},self:{borderColor:ce,tdColorHover:Ce,tdColorSorting:Re,tdColorSortingModal:Te,tdColorSortingPopover:Ee,thColorSorting:Ae,thColorSortingModal:Ge,thColorSortingPopover:ut,thColor:et,thColorHover:jt,tdColor:Xt,tdTextColor:Yt,thTextColor:Qt,thFontWeight:eo,thButtonColorHover:po,thIconColor:to,thIconColorActive:G,filterSize:ue,borderRadius:Fe,lineHeight:je,tdColorModal:nt,thColorModal:qe,borderColorModal:vt,thColorHoverModal:yt,tdColorHoverModal:io,borderColorPopover:nn,thColorPopover:rn,tdColorPopover:ir,tdColorHoverPopover:$i,thColorHoverPopover:Ei,paginationMargin:Fi,emptyPadding:Ai,boxShadowAfter:Ii,boxShadowBefore:zn,sorterSize:Tn,resizableContainerSize:qc,resizableSize:Xc,loadingColor:Yc,loadingSize:Zc,opacityLoading:Jc,tdColorStriped:Qc,tdColorStripedModal:ed,tdColorStripedPopover:td,[me("fontSize",z)]:od,[me("thPadding",z)]:nd,[me("tdPadding",z)]:rd}}=s.value;return{"--n-font-size":od,"--n-th-padding":nd,"--n-td-padding":rd,"--n-bezier":q,"--n-border-radius":Fe,"--n-line-height":je,"--n-border-color":ce,"--n-border-color-modal":vt,"--n-border-color-popover":nn,"--n-th-color":et,"--n-th-color-hover":jt,"--n-th-color-modal":qe,"--n-th-color-hover-modal":yt,"--n-th-color-popover":rn,"--n-th-color-hover-popover":Ei,"--n-td-color":Xt,"--n-td-color-hover":Ce,"--n-td-color-modal":nt,"--n-td-color-hover-modal":io,"--n-td-color-popover":ir,"--n-td-color-hover-popover":$i,"--n-th-text-color":Qt,"--n-td-text-color":Yt,"--n-th-font-weight":eo,"--n-th-button-color-hover":po,"--n-th-icon-color":to,"--n-th-icon-color-active":G,"--n-filter-size":ue,"--n-pagination-margin":Fi,"--n-empty-padding":Ai,"--n-box-shadow-before":zn,"--n-box-shadow-after":Ii,"--n-sorter-size":Tn,"--n-resizable-container-size":qc,"--n-resizable-size":Xc,"--n-loading-size":Zc,"--n-loading-color":Yc,"--n-opacity-loading":Jc,"--n-td-color-striped":Qc,"--n-td-color-striped-modal":ed,"--n-td-color-striped-popover":td,"--n-td-color-sorting":Re,"--n-td-color-sorting-modal":Te,"--n-td-color-sorting-popover":Ee,"--n-th-color-sorting":Ae,"--n-th-color-sorting-modal":Ge,"--n-th-color-sorting-popover":ut}}),Pe=r?gt("data-table",F(()=>e.size[0]),Xe,e):void 0,ze=F(()=>{if(!e.pagination)return!1;if(e.paginateSinglePage)return!0;const z=B.value,{pageCount:q}=z;return q!==void 0?q>1:z.itemCount&&z.pageSize&&z.itemCount>z.pageSize});return Object.assign({mainTableInstRef:d,mergedClsPrefix:n,rtlEnabled:l,mergedTheme:s,paginatedData:C,mergedBordered:o,mergedBottomBordered:a,mergedPagination:B,mergedShowPagination:ze,cssVars:r?void 0:Xe,themeClass:Pe==null?void 0:Pe.themeClass,onRender:Pe==null?void 0:Pe.onRender},ot)},render(){const{mergedClsPrefix:e,themeClass:t,onRender:o,$slots:n,spinProps:r}=this;return o==null||o(),v("div",{class:[`${e}-data-table`,this.rtlEnabled&&`${e}-data-table--rtl`,t,{[`${e}-data-table--bordered`]:this.mergedBordered,[`${e}-data-table--bottom-bordered`]:this.mergedBottomBordered,[`${e}-data-table--single-line`]:this.singleLine,[`${e}-data-table--single-column`]:this.singleColumn,[`${e}-data-table--loading`]:this.loading,[`${e}-data-table--flex-height`]:this.flexHeight}],style:this.cssVars},v("div",{class:`${e}-data-table-wrapper`},v(tT,{ref:"mainTableInstRef"})),this.mergedShowPagination?v("div",{class:`${e}-data-table__pagination`},v(Yk,Object.assign({theme:this.mergedTheme.peers.Pagination,themeOverrides:this.mergedTheme.peerOverrides.Pagination,disabled:this.loading},this.mergedPagination))):null,v(Yo,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?v("div",{class:`${e}-data-table-loading-wrapper`},Mo(n.loading,()=>[v(ki,Object.assign({clsPrefix:e,strokeWidth:20},r))])):null}))}});function vT(e){const{baseColor:t,textColor2:o,bodyColor:n,cardColor:r,dividerColor:i,actionColor:l,scrollbarColor:a,scrollbarColorHover:s,invertedColor:c}=e;return{textColor:o,textColorInverted:"#FFF",color:n,colorEmbedded:l,headerColor:r,headerColorInverted:c,footerColor:l,footerColorInverted:c,headerBorderColor:i,headerBorderColorInverted:c,footerBorderColor:i,footerBorderColorInverted:c,siderBorderColor:i,siderBorderColorInverted:c,siderColor:r,siderColorInverted:c,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:o,siderToggleButtonIconColorInverted:o,siderToggleBarColor:Ue(n,a),siderToggleBarColorHover:Ue(n,s),__invertScrollbar:"true"}}const Lc={name:"Layout",common:xt,peers:{Scrollbar:Er},self:vT};function gT(e,t,o,n){return{itemColorHoverInverted:"#0000",itemColorActiveInverted:t,itemColorActiveHoverInverted:t,itemColorActiveCollapsedInverted:t,itemTextColorInverted:e,itemTextColorHoverInverted:o,itemTextColorChildActiveInverted:o,itemTextColorChildActiveHoverInverted:o,itemTextColorActiveInverted:o,itemTextColorActiveHoverInverted:o,itemTextColorHorizontalInverted:e,itemTextColorHoverHorizontalInverted:o,itemTextColorChildActiveHorizontalInverted:o,itemTextColorChildActiveHoverHorizontalInverted:o,itemTextColorActiveHorizontalInverted:o,itemTextColorActiveHoverHorizontalInverted:o,itemIconColorInverted:e,itemIconColorHoverInverted:o,itemIconColorActiveInverted:o,itemIconColorActiveHoverInverted:o,itemIconColorChildActiveInverted:o,itemIconColorChildActiveHoverInverted:o,itemIconColorCollapsedInverted:e,itemIconColorHorizontalInverted:e,itemIconColorHoverHorizontalInverted:o,itemIconColorActiveHorizontalInverted:o,itemIconColorActiveHoverHorizontalInverted:o,itemIconColorChildActiveHorizontalInverted:o,itemIconColorChildActiveHoverHorizontalInverted:o,arrowColorInverted:e,arrowColorHoverInverted:o,arrowColorActiveInverted:o,arrowColorActiveHoverInverted:o,arrowColorChildActiveInverted:o,arrowColorChildActiveHoverInverted:o,groupTextColorInverted:n}}function mT(e){const{borderRadius:t,textColor3:o,primaryColor:n,textColor2:r,textColor1:i,fontSize:l,dividerColor:a,hoverColor:s,primaryColorHover:c}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:o,itemColorHover:s,itemColorActive:Le(n,{alpha:.1}),itemColorActiveHover:Le(n,{alpha:.1}),itemColorActiveCollapsed:Le(n,{alpha:.1}),itemTextColor:r,itemTextColorHover:r,itemTextColorActive:n,itemTextColorActiveHover:n,itemTextColorChildActive:n,itemTextColorChildActiveHover:n,itemTextColorHorizontal:r,itemTextColorHoverHorizontal:c,itemTextColorActiveHorizontal:n,itemTextColorActiveHoverHorizontal:n,itemTextColorChildActiveHorizontal:n,itemTextColorChildActiveHoverHorizontal:n,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:n,itemIconColorActiveHover:n,itemIconColorChildActive:n,itemIconColorChildActiveHover:n,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:c,itemIconColorActiveHorizontal:n,itemIconColorActiveHoverHorizontal:n,itemIconColorChildActiveHorizontal:n,itemIconColorChildActiveHoverHorizontal:n,itemHeight:"42px",arrowColor:r,arrowColorHover:r,arrowColorActive:n,arrowColorActiveHover:n,arrowColorChildActive:n,arrowColorChildActiveHover:n,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:l,dividerColor:a},gT("#BBB",n,"#FFF","#AAA"))}const bT={name:"Menu",common:xt,peers:{Tooltip:Tc,Dropdown:zc},self:mT};function xT(e){const{textColor2:t,textColor3:o,fontSize:n,fontWeight:r}=e;return{labelFontSize:n,labelFontWeight:r,valueFontWeight:r,valueFontSize:"24px",labelTextColor:o,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}const yT={common:xt,self:xT},CT={headerFontSize1:"30px",headerFontSize2:"22px",headerFontSize3:"18px",headerFontSize4:"16px",headerFontSize5:"16px",headerFontSize6:"16px",headerMargin1:"28px 0 20px 0",headerMargin2:"28px 0 20px 0",headerMargin3:"28px 0 20px 0",headerMargin4:"28px 0 18px 0",headerMargin5:"28px 0 18px 0",headerMargin6:"28px 0 18px 0",headerPrefixWidth1:"16px",headerPrefixWidth2:"16px",headerPrefixWidth3:"12px",headerPrefixWidth4:"12px",headerPrefixWidth5:"12px",headerPrefixWidth6:"12px",headerBarWidth1:"4px",headerBarWidth2:"4px",headerBarWidth3:"3px",headerBarWidth4:"3px",headerBarWidth5:"3px",headerBarWidth6:"3px",pMargin:"16px 0 16px 0",liMargin:".25em 0 0 0",olPadding:"0 0 0 2em",ulPadding:"0 0 0 2em"};function wT(e){const{primaryColor:t,textColor2:o,borderColor:n,lineHeight:r,fontSize:i,borderRadiusSmall:l,dividerColor:a,fontWeightStrong:s,textColor1:c,textColor3:d,infoColor:u,warningColor:f,errorColor:h,successColor:p,codeColor:g}=e;return Object.assign(Object.assign({},CT),{aTextColor:t,blockquoteTextColor:o,blockquotePrefixColor:n,blockquoteLineHeight:r,blockquoteFontSize:i,codeBorderRadius:l,liTextColor:o,liLineHeight:r,liFontSize:i,hrColor:a,headerFontWeight:s,headerTextColor:c,pTextColor:o,pTextColor1Depth:c,pTextColor2Depth:o,pTextColor3Depth:d,pLineHeight:r,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:u,headerBarColorError:h,headerBarColorWarning:f,headerBarColorSuccess:p,textColor:o,textColor1Depth:c,textColor2Depth:o,textColor3Depth:d,textColorPrimary:t,textColorInfo:u,textColorSuccess:p,textColorWarning:f,textColorError:h,codeTextColor:o,codeColor:g,codeBorder:"1px solid #0000"})}const ST={common:xt,self:wT},bg="n-layout-sider",Nc={type:String,default:"static"},RT=I("layout",`
|
||
color: var(--n-text-color);
|
||
background-color: var(--n-color);
|
||
box-sizing: border-box;
|
||
position: relative;
|
||
z-index: auto;
|
||
flex: auto;
|
||
overflow: hidden;
|
||
transition:
|
||
box-shadow .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier),
|
||
color .3s var(--n-bezier);
|
||
`,[I("layout-scroll-container",`
|
||
overflow-x: hidden;
|
||
box-sizing: border-box;
|
||
height: 100%;
|
||
`),Y("absolute-positioned",`
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
`)]),PT={embedded:Boolean,position:Nc,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentClass:String,contentStyle:{type:[String,Object],default:""},hasSider:Boolean,siderPlacement:{type:String,default:"left"}},xg="n-layout";function _T(e){return ve({name:"Layout",props:Object.assign(Object.assign({},Ie.props),PT),setup(t){const o=V(null),n=V(null),{mergedClsPrefixRef:r,inlineThemeDisabled:i}=Je(t),l=Ie("Layout","-layout",RT,Lc,t,r);function a(g,b){if(t.nativeScrollbar){const{value:m}=o;m&&(b===void 0?m.scrollTo(g):m.scrollTo(g,b))}else{const{value:m}=n;m&&m.scrollTo(g,b)}}tt(xg,t);let s=0,c=0;const d=g=>{var b;const m=g.target;s=m.scrollLeft,c=m.scrollTop,(b=t.onScroll)===null||b===void 0||b.call(t,g)};xs(()=>{if(t.nativeScrollbar){const g=o.value;g&&(g.scrollTop=c,g.scrollLeft=s)}});const u={display:"flex",flexWrap:"nowrap",width:"100%",flexDirection:"row"},f={scrollTo:a},h=F(()=>{const{common:{cubicBezierEaseInOut:g},self:b}=l.value;return{"--n-bezier":g,"--n-color":t.embedded?b.colorEmbedded:b.color,"--n-text-color":b.textColor}}),p=i?gt("layout",F(()=>t.embedded?"e":""),h,t):void 0;return Object.assign({mergedClsPrefix:r,scrollableElRef:o,scrollbarInstRef:n,hasSiderStyle:u,mergedTheme:l,handleNativeElScroll:d,cssVars:i?void 0:h,themeClass:p==null?void 0:p.themeClass,onRender:p==null?void 0:p.onRender},f)},render(){var t;const{mergedClsPrefix:o,hasSider:n}=this;(t=this.onRender)===null||t===void 0||t.call(this);const r=n?this.hasSiderStyle:void 0,i=[this.themeClass,e,`${o}-layout`,`${o}-layout--${this.position}-positioned`];return v("div",{class:i,style:this.cssVars},this.nativeScrollbar?v("div",{ref:"scrollableElRef",class:[`${o}-layout-scroll-container`,this.contentClass],style:[this.contentStyle,r],onScroll:this.handleNativeElScroll},this.$slots):v(tr,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,contentClass:this.contentClass,contentStyle:[this.contentStyle,r]}),this.$slots))}})}const kT=_T(!1),zT=I("layout-header",`
|
||
transition:
|
||
color .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier),
|
||
box-shadow .3s var(--n-bezier),
|
||
border-color .3s var(--n-bezier);
|
||
box-sizing: border-box;
|
||
width: 100%;
|
||
background-color: var(--n-color);
|
||
color: var(--n-text-color);
|
||
`,[Y("absolute-positioned",`
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
top: 0;
|
||
`),Y("bordered",`
|
||
border-bottom: solid 1px var(--n-border-color);
|
||
`)]),TT={position:Nc,inverted:Boolean,bordered:{type:Boolean,default:!1}},$T=ve({name:"LayoutHeader",props:Object.assign(Object.assign({},Ie.props),TT),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Je(e),n=Ie("Layout","-layout-header",zT,Lc,e,t),r=F(()=>{const{common:{cubicBezierEaseInOut:l},self:a}=n.value,s={"--n-bezier":l};return e.inverted?(s["--n-color"]=a.headerColorInverted,s["--n-text-color"]=a.textColorInverted,s["--n-border-color"]=a.headerBorderColorInverted):(s["--n-color"]=a.headerColor,s["--n-text-color"]=a.textColor,s["--n-border-color"]=a.headerBorderColor),s}),i=o?gt("layout-header",F(()=>e.inverted?"a":"b"),r,e):void 0;return{mergedClsPrefix:t,cssVars:o?void 0:r,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e;const{mergedClsPrefix:t}=this;return(e=this.onRender)===null||e===void 0||e.call(this),v("div",{class:[`${t}-layout-header`,this.themeClass,this.position&&`${t}-layout-header--${this.position}-positioned`,this.bordered&&`${t}-layout-header--bordered`],style:this.cssVars},this.$slots)}}),ET=I("layout-sider",`
|
||
flex-shrink: 0;
|
||
box-sizing: border-box;
|
||
position: relative;
|
||
z-index: 1;
|
||
color: var(--n-text-color);
|
||
transition:
|
||
color .3s var(--n-bezier),
|
||
border-color .3s var(--n-bezier),
|
||
min-width .3s var(--n-bezier),
|
||
max-width .3s var(--n-bezier),
|
||
transform .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier);
|
||
background-color: var(--n-color);
|
||
display: flex;
|
||
justify-content: flex-end;
|
||
`,[Y("bordered",[H("border",`
|
||
content: "";
|
||
position: absolute;
|
||
top: 0;
|
||
bottom: 0;
|
||
width: 1px;
|
||
background-color: var(--n-border-color);
|
||
transition: background-color .3s var(--n-bezier);
|
||
`)]),H("left-placement",[Y("bordered",[H("border",`
|
||
right: 0;
|
||
`)])]),Y("right-placement",`
|
||
justify-content: flex-start;
|
||
`,[Y("bordered",[H("border",`
|
||
left: 0;
|
||
`)]),Y("collapsed",[I("layout-toggle-button",[I("base-icon",`
|
||
transform: rotate(180deg);
|
||
`)]),I("layout-toggle-bar",[L("&:hover",[H("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),H("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])])]),I("layout-toggle-button",`
|
||
left: 0;
|
||
transform: translateX(-50%) translateY(-50%);
|
||
`,[I("base-icon",`
|
||
transform: rotate(0);
|
||
`)]),I("layout-toggle-bar",`
|
||
left: -28px;
|
||
transform: rotate(180deg);
|
||
`,[L("&:hover",[H("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),H("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})])])]),Y("collapsed",[I("layout-toggle-bar",[L("&:hover",[H("top",{transform:"rotate(-12deg) scale(1.15) translateY(-2px)"}),H("bottom",{transform:"rotate(12deg) scale(1.15) translateY(2px)"})])]),I("layout-toggle-button",[I("base-icon",`
|
||
transform: rotate(0);
|
||
`)])]),I("layout-toggle-button",`
|
||
transition:
|
||
color .3s var(--n-bezier),
|
||
right .3s var(--n-bezier),
|
||
left .3s var(--n-bezier),
|
||
border-color .3s var(--n-bezier),
|
||
background-color .3s var(--n-bezier);
|
||
cursor: pointer;
|
||
width: 24px;
|
||
height: 24px;
|
||
position: absolute;
|
||
top: 50%;
|
||
right: 0;
|
||
border-radius: 50%;
|
||
display: flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
font-size: 18px;
|
||
color: var(--n-toggle-button-icon-color);
|
||
border: var(--n-toggle-button-border);
|
||
background-color: var(--n-toggle-button-color);
|
||
box-shadow: 0 2px 4px 0px rgba(0, 0, 0, .06);
|
||
transform: translateX(50%) translateY(-50%);
|
||
z-index: 1;
|
||
`,[I("base-icon",`
|
||
transition: transform .3s var(--n-bezier);
|
||
transform: rotate(180deg);
|
||
`)]),I("layout-toggle-bar",`
|
||
cursor: pointer;
|
||
height: 72px;
|
||
width: 32px;
|
||
position: absolute;
|
||
top: calc(50% - 36px);
|
||
right: -28px;
|
||
`,[H("top, bottom",`
|
||
position: absolute;
|
||
width: 4px;
|
||
border-radius: 2px;
|
||
height: 38px;
|
||
left: 14px;
|
||
transition:
|
||
background-color .3s var(--n-bezier),
|
||
transform .3s var(--n-bezier);
|
||
`),H("bottom",`
|
||
position: absolute;
|
||
top: 34px;
|
||
`),L("&:hover",[H("top",{transform:"rotate(12deg) scale(1.15) translateY(-2px)"}),H("bottom",{transform:"rotate(-12deg) scale(1.15) translateY(2px)"})]),H("top, bottom",{backgroundColor:"var(--n-toggle-bar-color)"}),L("&:hover",[H("top, bottom",{backgroundColor:"var(--n-toggle-bar-color-hover)"})])]),H("border",`
|
||
position: absolute;
|
||
top: 0;
|
||
right: 0;
|
||
bottom: 0;
|
||
width: 1px;
|
||
transition: background-color .3s var(--n-bezier);
|
||
`),I("layout-sider-scroll-container",`
|
||
flex-grow: 1;
|
||
flex-shrink: 0;
|
||
box-sizing: border-box;
|
||
height: 100%;
|
||
opacity: 0;
|
||
transition: opacity .3s var(--n-bezier);
|
||
max-width: 100%;
|
||
`),Y("show-content",[I("layout-sider-scroll-container",{opacity:1})]),Y("absolute-positioned",`
|
||
position: absolute;
|
||
left: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
`)]),FT=ve({props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return v("div",{onClick:this.onClick,class:`${e}-layout-toggle-bar`},v("div",{class:`${e}-layout-toggle-bar__top`}),v("div",{class:`${e}-layout-toggle-bar__bottom`}))}}),AT=ve({name:"LayoutToggleButton",props:{clsPrefix:{type:String,required:!0},onClick:Function},render(){const{clsPrefix:e}=this;return v("div",{class:`${e}-layout-toggle-button`,onClick:this.onClick},v(Tt,{clsPrefix:e},{default:()=>v(dc,null)}))}}),IT={position:Nc,bordered:Boolean,collapsedWidth:{type:Number,default:48},width:{type:[Number,String],default:272},contentClass:String,contentStyle:{type:[String,Object],default:""},collapseMode:{type:String,default:"transform"},collapsed:{type:Boolean,default:void 0},defaultCollapsed:Boolean,showCollapsedContent:{type:Boolean,default:!0},showTrigger:{type:[Boolean,String],default:!1},nativeScrollbar:{type:Boolean,default:!0},inverted:Boolean,scrollbarProps:Object,triggerClass:String,triggerStyle:[String,Object],collapsedTriggerClass:String,collapsedTriggerStyle:[String,Object],"onUpdate:collapsed":[Function,Array],onUpdateCollapsed:[Function,Array],onAfterEnter:Function,onAfterLeave:Function,onExpand:[Function,Array],onCollapse:[Function,Array],onScroll:Function},OT=ve({name:"LayoutSider",props:Object.assign(Object.assign({},Ie.props),IT),setup(e){const t=$e(xg),o=V(null),n=V(null),r=V(e.defaultCollapsed),i=It(Se(e,"collapsed"),r),l=F(()=>zt(i.value?e.collapsedWidth:e.width)),a=F(()=>e.collapseMode!=="transform"?{}:{minWidth:zt(e.width)}),s=F(()=>t?t.siderPlacement:"left");function c(P,T){if(e.nativeScrollbar){const{value:y}=o;y&&(T===void 0?y.scrollTo(P):y.scrollTo(P,T))}else{const{value:y}=n;y&&y.scrollTo(P,T)}}function d(){const{"onUpdate:collapsed":P,onUpdateCollapsed:T,onExpand:y,onCollapse:B}=e,{value:S}=i;T&&ge(T,!S),P&&ge(P,!S),r.value=!S,S?y&&ge(y):B&&ge(B)}let u=0,f=0;const h=P=>{var T;const y=P.target;u=y.scrollLeft,f=y.scrollTop,(T=e.onScroll)===null||T===void 0||T.call(e,P)};xs(()=>{if(e.nativeScrollbar){const P=o.value;P&&(P.scrollTop=f,P.scrollLeft=u)}}),tt(bg,{collapsedRef:i,collapseModeRef:Se(e,"collapseMode")});const{mergedClsPrefixRef:p,inlineThemeDisabled:g}=Je(e),b=Ie("Layout","-layout-sider",ET,Lc,e,p);function m(P){var T,y;P.propertyName==="max-width"&&(i.value?(T=e.onAfterLeave)===null||T===void 0||T.call(e):(y=e.onAfterEnter)===null||y===void 0||y.call(e))}const x={scrollTo:c},w=F(()=>{const{common:{cubicBezierEaseInOut:P},self:T}=b.value,{siderToggleButtonColor:y,siderToggleButtonBorder:B,siderToggleBarColor:S,siderToggleBarColorHover:E}=T,j={"--n-bezier":P,"--n-toggle-button-color":y,"--n-toggle-button-border":B,"--n-toggle-bar-color":S,"--n-toggle-bar-color-hover":E};return e.inverted?(j["--n-color"]=T.siderColorInverted,j["--n-text-color"]=T.textColorInverted,j["--n-border-color"]=T.siderBorderColorInverted,j["--n-toggle-button-icon-color"]=T.siderToggleButtonIconColorInverted,j.__invertScrollbar=T.__invertScrollbar):(j["--n-color"]=T.siderColor,j["--n-text-color"]=T.textColor,j["--n-border-color"]=T.siderBorderColor,j["--n-toggle-button-icon-color"]=T.siderToggleButtonIconColor),j}),C=g?gt("layout-sider",F(()=>e.inverted?"a":"b"),w,e):void 0;return Object.assign({scrollableElRef:o,scrollbarInstRef:n,mergedClsPrefix:p,mergedTheme:b,styleMaxWidth:l,mergedCollapsed:i,scrollContainerStyle:a,siderPlacement:s,handleNativeElScroll:h,handleTransitionend:m,handleTriggerClick:d,inlineThemeDisabled:g,cssVars:w,themeClass:C==null?void 0:C.themeClass,onRender:C==null?void 0:C.onRender},x)},render(){var e;const{mergedClsPrefix:t,mergedCollapsed:o,showTrigger:n}=this;return(e=this.onRender)===null||e===void 0||e.call(this),v("aside",{class:[`${t}-layout-sider`,this.themeClass,`${t}-layout-sider--${this.position}-positioned`,`${t}-layout-sider--${this.siderPlacement}-placement`,this.bordered&&`${t}-layout-sider--bordered`,o&&`${t}-layout-sider--collapsed`,(!o||this.showCollapsedContent)&&`${t}-layout-sider--show-content`],onTransitionend:this.handleTransitionend,style:[this.inlineThemeDisabled?void 0:this.cssVars,{maxWidth:this.styleMaxWidth,width:zt(this.width)}]},this.nativeScrollbar?v("div",{class:[`${t}-layout-sider-scroll-container`,this.contentClass],onScroll:this.handleNativeElScroll,style:[this.scrollContainerStyle,{overflow:"auto"},this.contentStyle],ref:"scrollableElRef"},this.$slots):v(tr,Object.assign({},this.scrollbarProps,{onScroll:this.onScroll,ref:"scrollbarInstRef",style:this.scrollContainerStyle,contentStyle:this.contentStyle,contentClass:this.contentClass,theme:this.mergedTheme.peers.Scrollbar,themeOverrides:this.mergedTheme.peerOverrides.Scrollbar,builtinThemeOverrides:this.inverted&&this.cssVars.__invertScrollbar==="true"?{colorHover:"rgba(255, 255, 255, .4)",color:"rgba(255, 255, 255, .3)"}:void 0}),this.$slots),n?n==="bar"?v(FT,{clsPrefix:t,class:o?this.collapsedTriggerClass:this.triggerClass,style:o?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):v(AT,{clsPrefix:t,class:o?this.collapsedTriggerClass:this.triggerClass,style:o?this.collapsedTriggerStyle:this.triggerStyle,onClick:this.handleTriggerClick}):null,this.bordered?v("div",{class:`${t}-layout-sider__border`}):null)}}),Ti="n-menu",yg="n-submenu",jc="n-menu-item-group",Cg=[L("&::before","background-color: var(--n-item-color-hover);"),H("arrow",`
|
||
color: var(--n-arrow-color-hover);
|
||
`),H("icon",`
|
||
color: var(--n-item-icon-color-hover);
|
||
`),I("menu-item-content-header",`
|
||
color: var(--n-item-text-color-hover);
|
||
`,[L("a",`
|
||
color: var(--n-item-text-color-hover);
|
||
`),H("extra",`
|
||
color: var(--n-item-text-color-hover);
|
||
`)])],wg=[H("icon",`
|
||
color: var(--n-item-icon-color-hover-horizontal);
|
||
`),I("menu-item-content-header",`
|
||
color: var(--n-item-text-color-hover-horizontal);
|
||
`,[L("a",`
|
||
color: var(--n-item-text-color-hover-horizontal);
|
||
`),H("extra",`
|
||
color: var(--n-item-text-color-hover-horizontal);
|
||
`)])],MT=L([I("menu",`
|
||
background-color: var(--n-color);
|
||
color: var(--n-item-text-color);
|
||
overflow: hidden;
|
||
transition: background-color .3s var(--n-bezier);
|
||
box-sizing: border-box;
|
||
font-size: var(--n-font-size);
|
||
padding-bottom: 6px;
|
||
`,[Y("horizontal",`
|
||
max-width: 100%;
|
||
width: 100%;
|
||
display: flex;
|
||
overflow: hidden;
|
||
padding-bottom: 0;
|
||
`,[I("submenu","margin: 0;"),I("menu-item","margin: 0;"),I("menu-item-content",`
|
||
padding: 0 20px;
|
||
border-bottom: 2px solid #0000;
|
||
`,[L("&::before","display: none;"),Y("selected","border-bottom: 2px solid var(--n-border-color-horizontal)")]),I("menu-item-content",[Y("selected",[H("icon","color: var(--n-item-icon-color-active-horizontal);"),I("menu-item-content-header",`
|
||
color: var(--n-item-text-color-active-horizontal);
|
||
`,[L("a","color: var(--n-item-text-color-active-horizontal);"),H("extra","color: var(--n-item-text-color-active-horizontal);")])]),Y("child-active",`
|
||
border-bottom: 2px solid var(--n-border-color-horizontal);
|
||
`,[I("menu-item-content-header",`
|
||
color: var(--n-item-text-color-child-active-horizontal);
|
||
`,[L("a",`
|
||
color: var(--n-item-text-color-child-active-horizontal);
|
||
`),H("extra",`
|
||
color: var(--n-item-text-color-child-active-horizontal);
|
||
`)]),H("icon",`
|
||
color: var(--n-item-icon-color-child-active-horizontal);
|
||
`)]),Ye("disabled",[Ye("selected, child-active",[L("&:focus-within",wg)]),Y("selected",[rr(null,[H("icon","color: var(--n-item-icon-color-active-hover-horizontal);"),I("menu-item-content-header",`
|
||
color: var(--n-item-text-color-active-hover-horizontal);
|
||
`,[L("a","color: var(--n-item-text-color-active-hover-horizontal);"),H("extra","color: var(--n-item-text-color-active-hover-horizontal);")])])]),Y("child-active",[rr(null,[H("icon","color: var(--n-item-icon-color-child-active-hover-horizontal);"),I("menu-item-content-header",`
|
||
color: var(--n-item-text-color-child-active-hover-horizontal);
|
||
`,[L("a","color: var(--n-item-text-color-child-active-hover-horizontal);"),H("extra","color: var(--n-item-text-color-child-active-hover-horizontal);")])])]),rr("border-bottom: 2px solid var(--n-border-color-horizontal);",wg)]),I("menu-item-content-header",[L("a","color: var(--n-item-text-color-horizontal);")])])]),Ye("responsive",[I("menu-item-content-header",`
|
||
overflow: hidden;
|
||
text-overflow: ellipsis;
|
||
`)]),Y("collapsed",[I("menu-item-content",[Y("selected",[L("&::before",`
|
||
background-color: var(--n-item-color-active-collapsed) !important;
|
||
`)]),I("menu-item-content-header","opacity: 0;"),H("arrow","opacity: 0;"),H("icon","color: var(--n-item-icon-color-collapsed);")])]),I("menu-item",`
|
||
height: var(--n-item-height);
|
||
margin-top: 6px;
|
||
position: relative;
|
||
`),I("menu-item-content",`
|
||
box-sizing: border-box;
|
||
line-height: 1.75;
|
||
height: 100%;
|
||
display: grid;
|
||
grid-template-areas: "icon content arrow";
|
||
grid-template-columns: auto 1fr auto;
|
||
align-items: center;
|
||
cursor: pointer;
|
||
position: relative;
|
||
padding-right: 18px;
|
||
transition:
|
||
background-color .3s var(--n-bezier),
|
||
padding-left .3s var(--n-bezier),
|
||
border-color .3s var(--n-bezier);
|
||
`,[L("> *","z-index: 1;"),L("&::before",`
|
||
z-index: auto;
|
||
content: "";
|
||
background-color: #0000;
|
||
position: absolute;
|
||
left: 8px;
|
||
right: 8px;
|
||
top: 0;
|
||
bottom: 0;
|
||
pointer-events: none;
|
||
border-radius: var(--n-border-radius);
|
||
transition: background-color .3s var(--n-bezier);
|
||
`),Y("disabled",`
|
||
opacity: .45;
|
||
cursor: not-allowed;
|
||
`),Y("collapsed",[H("arrow","transform: rotate(0);")]),Y("selected",[L("&::before","background-color: var(--n-item-color-active);"),H("arrow","color: var(--n-arrow-color-active);"),H("icon","color: var(--n-item-icon-color-active);"),I("menu-item-content-header",`
|
||
color: var(--n-item-text-color-active);
|
||
`,[L("a","color: var(--n-item-text-color-active);"),H("extra","color: var(--n-item-text-color-active);")])]),Y("child-active",[I("menu-item-content-header",`
|
||
color: var(--n-item-text-color-child-active);
|
||
`,[L("a",`
|
||
color: var(--n-item-text-color-child-active);
|
||
`),H("extra",`
|
||
color: var(--n-item-text-color-child-active);
|
||
`)]),H("arrow",`
|
||
color: var(--n-arrow-color-child-active);
|
||
`),H("icon",`
|
||
color: var(--n-item-icon-color-child-active);
|
||
`)]),Ye("disabled",[Ye("selected, child-active",[L("&:focus-within",Cg)]),Y("selected",[rr(null,[H("arrow","color: var(--n-arrow-color-active-hover);"),H("icon","color: var(--n-item-icon-color-active-hover);"),I("menu-item-content-header",`
|
||
color: var(--n-item-text-color-active-hover);
|
||
`,[L("a","color: var(--n-item-text-color-active-hover);"),H("extra","color: var(--n-item-text-color-active-hover);")])])]),Y("child-active",[rr(null,[H("arrow","color: var(--n-arrow-color-child-active-hover);"),H("icon","color: var(--n-item-icon-color-child-active-hover);"),I("menu-item-content-header",`
|
||
color: var(--n-item-text-color-child-active-hover);
|
||
`,[L("a","color: var(--n-item-text-color-child-active-hover);"),H("extra","color: var(--n-item-text-color-child-active-hover);")])])]),Y("selected",[rr(null,[L("&::before","background-color: var(--n-item-color-active-hover);")])]),rr(null,Cg)]),H("icon",`
|
||
grid-area: icon;
|
||
color: var(--n-item-icon-color);
|
||
transition:
|
||
color .3s var(--n-bezier),
|
||
font-size .3s var(--n-bezier),
|
||
margin-right .3s var(--n-bezier);
|
||
box-sizing: content-box;
|
||
display: inline-flex;
|
||
align-items: center;
|
||
justify-content: center;
|
||
`),H("arrow",`
|
||
grid-area: arrow;
|
||
font-size: 16px;
|
||
color: var(--n-arrow-color);
|
||
transform: rotate(180deg);
|
||
opacity: 1;
|
||
transition:
|
||
color .3s var(--n-bezier),
|
||
transform 0.2s var(--n-bezier),
|
||
opacity 0.2s var(--n-bezier);
|
||
`),I("menu-item-content-header",`
|
||
grid-area: content;
|
||
transition:
|
||
color .3s var(--n-bezier),
|
||
opacity .3s var(--n-bezier);
|
||
opacity: 1;
|
||
white-space: nowrap;
|
||
color: var(--n-item-text-color);
|
||
`,[L("a",`
|
||
outline: none;
|
||
text-decoration: none;
|
||
transition: color .3s var(--n-bezier);
|
||
color: var(--n-item-text-color);
|
||
`,[L("&::before",`
|
||
content: "";
|
||
position: absolute;
|
||
left: 0;
|
||
right: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
`)]),H("extra",`
|
||
font-size: .93em;
|
||
color: var(--n-group-text-color);
|
||
transition: color .3s var(--n-bezier);
|
||
`)])]),I("submenu",`
|
||
cursor: pointer;
|
||
position: relative;
|
||
margin-top: 6px;
|
||
`,[I("menu-item-content",`
|
||
height: var(--n-item-height);
|
||
`),I("submenu-children",`
|
||
overflow: hidden;
|
||
padding: 0;
|
||
`,[Z_({duration:".2s"})])]),I("menu-item-group",[I("menu-item-group-title",`
|
||
margin-top: 6px;
|
||
color: var(--n-group-text-color);
|
||
cursor: default;
|
||
font-size: .93em;
|
||
height: 36px;
|
||
display: flex;
|
||
align-items: center;
|
||
transition:
|
||
padding-left .3s var(--n-bezier),
|
||
color .3s var(--n-bezier);
|
||
`)])]),I("menu-tooltip",[L("a",`
|
||
color: inherit;
|
||
text-decoration: none;
|
||
`)]),I("menu-divider",`
|
||
transition: background-color .3s var(--n-bezier);
|
||
background-color: var(--n-divider-color);
|
||
height: 1px;
|
||
margin: 6px 18px;
|
||
`)]);function rr(e,t){return[Y("hover",e,t),L("&:hover",e,t)]}const Sg=ve({name:"MenuOptionContent",props:{collapsed:Boolean,disabled:Boolean,title:[String,Function],icon:Function,extra:[String,Function],showArrow:Boolean,childActive:Boolean,hover:Boolean,paddingLeft:Number,selected:Boolean,maxIconSize:{type:Number,required:!0},activeIconSize:{type:Number,required:!0},iconMarginRight:{type:Number,required:!0},clsPrefix:{type:String,required:!0},onClick:Function,tmNode:{type:Object,required:!0},isEllipsisPlaceholder:Boolean},setup(e){const{props:t}=$e(Ti);return{menuProps:t,style:F(()=>{const{paddingLeft:o}=e;return{paddingLeft:o&&`${o}px`}}),iconStyle:F(()=>{const{maxIconSize:o,activeIconSize:n,iconMarginRight:r}=e;return{width:`${o}px`,height:`${o}px`,fontSize:`${n}px`,marginRight:`${r}px`}})}},render(){const{clsPrefix:e,tmNode:t,menuProps:{renderIcon:o,renderLabel:n,renderExtra:r,expandIcon:i}}=this,l=o?o(t.rawNode):Lt(this.icon);return v("div",{onClick:a=>{var s;(s=this.onClick)===null||s===void 0||s.call(this,a)},role:"none",class:[`${e}-menu-item-content`,{[`${e}-menu-item-content--selected`]:this.selected,[`${e}-menu-item-content--collapsed`]:this.collapsed,[`${e}-menu-item-content--child-active`]:this.childActive,[`${e}-menu-item-content--disabled`]:this.disabled,[`${e}-menu-item-content--hover`]:this.hover}],style:this.style},l&&v("div",{class:`${e}-menu-item-content__icon`,style:this.iconStyle,role:"none"},[l]),v("div",{class:`${e}-menu-item-content-header`,role:"none"},this.isEllipsisPlaceholder?this.title:n?n(t.rawNode):Lt(this.title),this.extra||r?v("span",{class:`${e}-menu-item-content-header__extra`}," ",r?r(t.rawNode):Lt(this.extra)):null),this.showArrow?v(Tt,{ariaHidden:!0,class:`${e}-menu-item-content__arrow`,clsPrefix:e},{default:()=>i?i(t.rawNode):v(EP,null)}):null)}}),aa=8;function Wc(e){const t=$e(Ti),{props:o,mergedCollapsedRef:n}=t,r=$e(yg,null),i=$e(jc,null),l=F(()=>o.mode==="horizontal"),a=F(()=>l.value?o.dropdownPlacement:"tmNodes"in e?"right-start":"right"),s=F(()=>{var f;return Math.max((f=o.collapsedIconSize)!==null&&f!==void 0?f:o.iconSize,o.iconSize)}),c=F(()=>{var f;return!l.value&&e.root&&n.value&&(f=o.collapsedIconSize)!==null&&f!==void 0?f:o.iconSize}),d=F(()=>{if(l.value)return;const{collapsedWidth:f,indent:h,rootIndent:p}=o,{root:g,isGroup:b}=e,m=p===void 0?h:p;return g?n.value?f/2-s.value/2:m:i&&typeof i.paddingLeftRef.value=="number"?h/2+i.paddingLeftRef.value:r&&typeof r.paddingLeftRef.value=="number"?(b?h/2:h)+r.paddingLeftRef.value:0}),u=F(()=>{const{collapsedWidth:f,indent:h,rootIndent:p}=o,{value:g}=s,{root:b}=e;return l.value||!b||!n.value?aa:(p===void 0?h:p)+g+aa-(f+g)/2});return{dropdownPlacement:a,activeIconSize:c,maxIconSize:s,paddingLeft:d,iconMarginRight:u,NMenu:t,NSubmenu:r,NMenuOptionGroup:i}}const Vc={internalKey:{type:[String,Number],required:!0},root:Boolean,isGroup:Boolean,level:{type:Number,required:!0},title:[String,Function],extra:[String,Function]},BT=ve({name:"MenuDivider",setup(){const e=$e(Ti),{mergedClsPrefixRef:t,isHorizontalRef:o}=e;return()=>o.value?null:v("div",{class:`${t.value}-menu-divider`})}}),Rg=Object.assign(Object.assign({},Vc),{tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function}),HT=Nl(Rg),DT=ve({name:"MenuOption",props:Rg,setup(e){const t=Wc(e),{NSubmenu:o,NMenu:n,NMenuOptionGroup:r}=t,{props:i,mergedClsPrefixRef:l,mergedCollapsedRef:a}=n,s=o?o.mergedDisabledRef:r?r.mergedDisabledRef:{value:!1},c=F(()=>s.value||e.disabled);function d(f){const{onClick:h}=e;h&&h(f)}function u(f){c.value||(n.doSelect(e.internalKey,e.tmNode.rawNode),d(f))}return{mergedClsPrefix:l,dropdownPlacement:t.dropdownPlacement,paddingLeft:t.paddingLeft,iconMarginRight:t.iconMarginRight,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,mergedTheme:n.mergedThemeRef,menuProps:i,dropdownEnabled:Ze(()=>e.root&&a.value&&i.mode!=="horizontal"&&!c.value),selected:Ze(()=>n.mergedValueRef.value===e.internalKey),mergedDisabled:c,handleClick:u}},render(){const{mergedClsPrefix:e,mergedTheme:t,tmNode:o,menuProps:{renderLabel:n,nodeProps:r}}=this,i=r==null?void 0:r(o.rawNode);return v("div",Object.assign({},i,{role:"menuitem",class:[`${e}-menu-item`,i==null?void 0:i.class]}),v(rg,{theme:t.peers.Tooltip,themeOverrides:t.peerOverrides.Tooltip,trigger:"hover",placement:this.dropdownPlacement,disabled:!this.dropdownEnabled||this.title===void 0,internalExtraClass:["menu-tooltip"]},{default:()=>n?n(o.rawNode):Lt(this.title),trigger:()=>v(Sg,{tmNode:o,clsPrefix:e,paddingLeft:this.paddingLeft,iconMarginRight:this.iconMarginRight,maxIconSize:this.maxIconSize,activeIconSize:this.activeIconSize,selected:this.selected,title:this.title,extra:this.extra,disabled:this.mergedDisabled,icon:this.icon,onClick:this.handleClick})}))}}),Pg=Object.assign(Object.assign({},Vc),{tmNode:{type:Object,required:!0},tmNodes:{type:Array,required:!0}}),LT=Nl(Pg),NT=ve({name:"MenuOptionGroup",props:Pg,setup(e){const t=Wc(e),{NSubmenu:o}=t,n=F(()=>o!=null&&o.mergedDisabledRef.value?!0:e.tmNode.disabled);tt(jc,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:n});const{mergedClsPrefixRef:r,props:i}=$e(Ti);return function(){const{value:l}=r,a=t.paddingLeft.value,{nodeProps:s}=i,c=s==null?void 0:s(e.tmNode.rawNode);return v("div",{class:`${l}-menu-item-group`,role:"group"},v("div",Object.assign({},c,{class:[`${l}-menu-item-group-title`,c==null?void 0:c.class],style:[(c==null?void 0:c.style)||"",a!==void 0?`padding-left: ${a}px;`:""]}),Lt(e.title),e.extra?v(it,null," ",Lt(e.extra)):null),v("div",null,e.tmNodes.map(d=>Kc(d,i))))}}});function Uc(e){return e.type==="divider"||e.type==="render"}function jT(e){return e.type==="divider"}function Kc(e,t){const{rawNode:o}=e,{show:n}=o;if(n===!1)return null;if(Uc(o))return jT(o)?v(BT,Object.assign({key:e.key},o.props)):null;const{labelField:r}=t,{key:i,level:l,isGroup:a}=e,s=Object.assign(Object.assign({},o),{title:o.title||o[r],extra:o.titleExtra||o.extra,key:i,internalKey:i,level:l,root:l===0,isGroup:a});return e.children?e.isGroup?v(NT,zr(s,LT,{tmNode:e,tmNodes:e.children,key:i})):v(Gc,zr(s,WT,{key:i,rawNodes:o[t.childrenField],tmNodes:e.children,tmNode:e})):v(DT,zr(s,HT,{key:i,tmNode:e}))}const _g=Object.assign(Object.assign({},Vc),{rawNodes:{type:Array,default:()=>[]},tmNodes:{type:Array,default:()=>[]},tmNode:{type:Object,required:!0},disabled:Boolean,icon:Function,onClick:Function,domId:String,virtualChildActive:{type:Boolean,default:void 0},isEllipsisPlaceholder:Boolean}),WT=Nl(_g),Gc=ve({name:"Submenu",props:_g,setup(e){const t=Wc(e),{NMenu:o,NSubmenu:n}=t,{props:r,mergedCollapsedRef:i,mergedThemeRef:l}=o,a=F(()=>{const{disabled:f}=e;return n!=null&&n.mergedDisabledRef.value||r.disabled?!0:f}),s=V(!1);tt(yg,{paddingLeftRef:t.paddingLeft,mergedDisabledRef:a}),tt(jc,null);function c(){const{onClick:f}=e;f&&f()}function d(){a.value||(i.value||o.toggleExpand(e.internalKey),c())}function u(f){s.value=f}return{menuProps:r,mergedTheme:l,doSelect:o.doSelect,inverted:o.invertedRef,isHorizontal:o.isHorizontalRef,mergedClsPrefix:o.mergedClsPrefixRef,maxIconSize:t.maxIconSize,activeIconSize:t.activeIconSize,iconMarginRight:t.iconMarginRight,dropdownPlacement:t.dropdownPlacement,dropdownShow:s,paddingLeft:t.paddingLeft,mergedDisabled:a,mergedValue:o.mergedValueRef,childActive:Ze(()=>{var f;return(f=e.virtualChildActive)!==null&&f!==void 0?f:o.activePathRef.value.includes(e.internalKey)}),collapsed:F(()=>r.mode==="horizontal"?!1:i.value?!0:!o.mergedExpandedKeysRef.value.includes(e.internalKey)),dropdownEnabled:F(()=>!a.value&&(r.mode==="horizontal"||i.value)),handlePopoverShowChange:u,handleClick:d}},render(){var e;const{mergedClsPrefix:t,menuProps:{renderIcon:o,renderLabel:n}}=this,r=()=>{const{isHorizontal:l,paddingLeft:a,collapsed:s,mergedDisabled:c,maxIconSize:d,activeIconSize:u,title:f,childActive:h,icon:p,handleClick:g,menuProps:{nodeProps:b},dropdownShow:m,iconMarginRight:x,tmNode:w,mergedClsPrefix:C,isEllipsisPlaceholder:P,extra:T}=this,y=b==null?void 0:b(w.rawNode);return v("div",Object.assign({},y,{class:[`${C}-menu-item`,y==null?void 0:y.class],role:"menuitem"}),v(Sg,{tmNode:w,paddingLeft:a,collapsed:s,disabled:c,iconMarginRight:x,maxIconSize:d,activeIconSize:u,title:f,extra:T,showArrow:!l,childActive:h,clsPrefix:C,icon:p,hover:m,onClick:g,isEllipsisPlaceholder:P}))},i=()=>v(cv,null,{default:()=>{const{tmNodes:l,collapsed:a}=this;return a?null:v("div",{class:`${t}-submenu-children`,role:"menu"},l.map(s=>Kc(s,this.menuProps)))}});return this.root?v(Hc,Object.assign({size:"large",trigger:"hover"},(e=this.menuProps)===null||e===void 0?void 0:e.dropdownProps,{themeOverrides:this.mergedTheme.peerOverrides.Dropdown,theme:this.mergedTheme.peers.Dropdown,builtinThemeOverrides:{fontSizeLarge:"14px",optionIconSizeLarge:"18px"},value:this.mergedValue,disabled:!this.dropdownEnabled,placement:this.dropdownPlacement,keyField:this.menuProps.keyField,labelField:this.menuProps.labelField,childrenField:this.menuProps.childrenField,onUpdateShow:this.handlePopoverShowChange,options:this.rawNodes,onSelect:this.doSelect,inverted:this.inverted,renderIcon:o,renderLabel:n}),{default:()=>v("div",{class:`${t}-submenu`,role:"menu","aria-expanded":!this.collapsed,id:this.domId},r(),this.isHorizontal?null:i())}):v("div",{class:`${t}-submenu`,role:"menu","aria-expanded":!this.collapsed,id:this.domId},r(),i())}}),VT=Object.assign(Object.assign({},Ie.props),{options:{type:Array,default:()=>[]},collapsed:{type:Boolean,default:void 0},collapsedWidth:{type:Number,default:48},iconSize:{type:Number,default:20},collapsedIconSize:{type:Number,default:24},rootIndent:Number,indent:{type:Number,default:32},labelField:{type:String,default:"label"},keyField:{type:String,default:"key"},childrenField:{type:String,default:"children"},disabledField:{type:String,default:"disabled"},defaultExpandAll:Boolean,defaultExpandedKeys:Array,expandedKeys:Array,value:[String,Number],defaultValue:{type:[String,Number],default:null},mode:{type:String,default:"vertical"},watchProps:{type:Array,default:void 0},disabled:Boolean,show:{type:Boolean,default:!0},inverted:Boolean,"onUpdate:expandedKeys":[Function,Array],onUpdateExpandedKeys:[Function,Array],onUpdateValue:[Function,Array],"onUpdate:value":[Function,Array],expandIcon:Function,renderIcon:Function,renderLabel:Function,renderExtra:Function,dropdownProps:Object,accordion:Boolean,nodeProps:Function,dropdownPlacement:{type:String,default:"bottom"},responsive:Boolean,items:Array,onOpenNamesChange:[Function,Array],onSelect:[Function,Array],onExpandedNamesChange:[Function,Array],expandedNames:Array,defaultExpandedNames:Array}),UT=ve({name:"Menu",inheritAttrs:!1,props:VT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=Je(e),n=Ie("Menu","-menu",MT,bT,e,t),r=$e(bg,null),i=F(()=>{var N;const{collapsed:O}=e;if(O!==void 0)return O;if(r){const{collapseModeRef:A,collapsedRef:Q}=r;if(A.value==="width")return(N=Q.value)!==null&&N!==void 0?N:!1}return!1}),l=F(()=>{const{keyField:N,childrenField:O,disabledField:A}=e;return or(e.items||e.options,{getIgnored(Q){return Uc(Q)},getChildren(Q){return Q[O]},getDisabled(Q){return Q[A]},getKey(Q){var he;return(he=Q[N])!==null&&he!==void 0?he:Q.name}})}),a=F(()=>new Set(l.value.treeNodes.map(N=>N.key))),{watchProps:s}=e,c=V(null);s!=null&&s.includes("defaultValue")?Mt(()=>{c.value=e.defaultValue}):c.value=e.defaultValue;const d=Se(e,"value"),u=It(d,c),f=V([]),h=()=>{f.value=e.defaultExpandAll?l.value.getNonLeafKeys():e.defaultExpandedNames||e.defaultExpandedKeys||l.value.getPath(u.value,{includeSelf:!1}).keyPath};s!=null&&s.includes("defaultExpandedKeys")?Mt(h):h();const p=vs(e,["expandedNames","expandedKeys"]),g=It(p,f),b=F(()=>l.value.treeNodes),m=F(()=>l.value.getPath(u.value).keyPath);tt(Ti,{props:e,mergedCollapsedRef:i,mergedThemeRef:n,mergedValueRef:u,mergedExpandedKeysRef:g,activePathRef:m,mergedClsPrefixRef:t,isHorizontalRef:F(()=>e.mode==="horizontal"),invertedRef:Se(e,"inverted"),doSelect:x,toggleExpand:C});function x(N,O){const{"onUpdate:value":A,onUpdateValue:Q,onSelect:he}=e;Q&&ge(Q,N,O),A&&ge(A,N,O),he&&ge(he,N,O),c.value=N}function w(N){const{"onUpdate:expandedKeys":O,onUpdateExpandedKeys:A,onExpandedNamesChange:Q,onOpenNamesChange:he}=e;O&&ge(O,N),A&&ge(A,N),Q&&ge(Q,N),he&&ge(he,N),f.value=N}function C(N){const O=Array.from(g.value),A=O.findIndex(Q=>Q===N);if(~A)O.splice(A,1);else{if(e.accordion&&a.value.has(N)){const Q=O.findIndex(he=>a.value.has(he));Q>-1&&O.splice(Q,1)}O.push(N)}w(O)}const P=N=>{const O=l.value.getPath(N??u.value,{includeSelf:!1}).keyPath;if(!O.length)return;const A=Array.from(g.value),Q=new Set([...A,...O]);e.accordion&&a.value.forEach(he=>{Q.has(he)&&!O.includes(he)&&Q.delete(he)}),w(Array.from(Q))},T=F(()=>{const{inverted:N}=e,{common:{cubicBezierEaseInOut:O},self:A}=n.value,{borderRadius:Q,borderColorHorizontal:he,fontSize:we,itemHeight:X,dividerColor:de}=A,R={"--n-divider-color":de,"--n-bezier":O,"--n-font-size":we,"--n-border-color-horizontal":he,"--n-border-radius":Q,"--n-item-height":X};return N?(R["--n-group-text-color"]=A.groupTextColorInverted,R["--n-color"]=A.colorInverted,R["--n-item-text-color"]=A.itemTextColorInverted,R["--n-item-text-color-hover"]=A.itemTextColorHoverInverted,R["--n-item-text-color-active"]=A.itemTextColorActiveInverted,R["--n-item-text-color-child-active"]=A.itemTextColorChildActiveInverted,R["--n-item-text-color-child-active-hover"]=A.itemTextColorChildActiveInverted,R["--n-item-text-color-active-hover"]=A.itemTextColorActiveHoverInverted,R["--n-item-icon-color"]=A.itemIconColorInverted,R["--n-item-icon-color-hover"]=A.itemIconColorHoverInverted,R["--n-item-icon-color-active"]=A.itemIconColorActiveInverted,R["--n-item-icon-color-active-hover"]=A.itemIconColorActiveHoverInverted,R["--n-item-icon-color-child-active"]=A.itemIconColorChildActiveInverted,R["--n-item-icon-color-child-active-hover"]=A.itemIconColorChildActiveHoverInverted,R["--n-item-icon-color-collapsed"]=A.itemIconColorCollapsedInverted,R["--n-item-text-color-horizontal"]=A.itemTextColorHorizontalInverted,R["--n-item-text-color-hover-horizontal"]=A.itemTextColorHoverHorizontalInverted,R["--n-item-text-color-active-horizontal"]=A.itemTextColorActiveHorizontalInverted,R["--n-item-text-color-child-active-horizontal"]=A.itemTextColorChildActiveHorizontalInverted,R["--n-item-text-color-child-active-hover-horizontal"]=A.itemTextColorChildActiveHoverHorizontalInverted,R["--n-item-text-color-active-hover-horizontal"]=A.itemTextColorActiveHoverHorizontalInverted,R["--n-item-icon-color-horizontal"]=A.itemIconColorHorizontalInverted,R["--n-item-icon-color-hover-horizontal"]=A.itemIconColorHoverHorizontalInverted,R["--n-item-icon-color-active-horizontal"]=A.itemIconColorActiveHorizontalInverted,R["--n-item-icon-color-active-hover-horizontal"]=A.itemIconColorActiveHoverHorizontalInverted,R["--n-item-icon-color-child-active-horizontal"]=A.itemIconColorChildActiveHorizontalInverted,R["--n-item-icon-color-child-active-hover-horizontal"]=A.itemIconColorChildActiveHoverHorizontalInverted,R["--n-arrow-color"]=A.arrowColorInverted,R["--n-arrow-color-hover"]=A.arrowColorHoverInverted,R["--n-arrow-color-active"]=A.arrowColorActiveInverted,R["--n-arrow-color-active-hover"]=A.arrowColorActiveHoverInverted,R["--n-arrow-color-child-active"]=A.arrowColorChildActiveInverted,R["--n-arrow-color-child-active-hover"]=A.arrowColorChildActiveHoverInverted,R["--n-item-color-hover"]=A.itemColorHoverInverted,R["--n-item-color-active"]=A.itemColorActiveInverted,R["--n-item-color-active-hover"]=A.itemColorActiveHoverInverted,R["--n-item-color-active-collapsed"]=A.itemColorActiveCollapsedInverted):(R["--n-group-text-color"]=A.groupTextColor,R["--n-color"]=A.color,R["--n-item-text-color"]=A.itemTextColor,R["--n-item-text-color-hover"]=A.itemTextColorHover,R["--n-item-text-color-active"]=A.itemTextColorActive,R["--n-item-text-color-child-active"]=A.itemTextColorChildActive,R["--n-item-text-color-child-active-hover"]=A.itemTextColorChildActiveHover,R["--n-item-text-color-active-hover"]=A.itemTextColorActiveHover,R["--n-item-icon-color"]=A.itemIconColor,R["--n-item-icon-color-hover"]=A.itemIconColorHover,R["--n-item-icon-color-active"]=A.itemIconColorActive,R["--n-item-icon-color-active-hover"]=A.itemIconColorActiveHover,R["--n-item-icon-color-child-active"]=A.itemIconColorChildActive,R["--n-item-icon-color-child-active-hover"]=A.itemIconColorChildActiveHover,R["--n-item-icon-color-collapsed"]=A.itemIconColorCollapsed,R["--n-item-text-color-horizontal"]=A.itemTextColorHorizontal,R["--n-item-text-color-hover-horizontal"]=A.itemTextColorHoverHorizontal,R["--n-item-text-color-active-horizontal"]=A.itemTextColorActiveHorizontal,R["--n-item-text-color-child-active-horizontal"]=A.itemTextColorChildActiveHorizontal,R["--n-item-text-color-child-active-hover-horizontal"]=A.itemTextColorChildActiveHoverHorizontal,R["--n-item-text-color-active-hover-horizontal"]=A.itemTextColorActiveHoverHorizontal,R["--n-item-icon-color-horizontal"]=A.itemIconColorHorizontal,R["--n-item-icon-color-hover-horizontal"]=A.itemIconColorHoverHorizontal,R["--n-item-icon-color-active-horizontal"]=A.itemIconColorActiveHorizontal,R["--n-item-icon-color-active-hover-horizontal"]=A.itemIconColorActiveHoverHorizontal,R["--n-item-icon-color-child-active-horizontal"]=A.itemIconColorChildActiveHorizontal,R["--n-item-icon-color-child-active-hover-horizontal"]=A.itemIconColorChildActiveHoverHorizontal,R["--n-arrow-color"]=A.arrowColor,R["--n-arrow-color-hover"]=A.arrowColorHover,R["--n-arrow-color-active"]=A.arrowColorActive,R["--n-arrow-color-active-hover"]=A.arrowColorActiveHover,R["--n-arrow-color-child-active"]=A.arrowColorChildActive,R["--n-arrow-color-child-active-hover"]=A.arrowColorChildActiveHover,R["--n-item-color-hover"]=A.itemColorHover,R["--n-item-color-active"]=A.itemColorActive,R["--n-item-color-active-hover"]=A.itemColorActiveHover,R["--n-item-color-active-collapsed"]=A.itemColorActiveCollapsed),R}),y=o?gt("menu",F(()=>e.inverted?"a":"b"),T,e):void 0,B=Tl(),S=V(null),E=V(null);let j=!0;const _=()=>{var N;j?j=!1:(N=S.value)===null||N===void 0||N.sync({showAllItemsBeforeCalculate:!0})};function M(){return document.getElementById(B)}const W=V(-1);function D(N){W.value=e.options.length-N}function Z(N){N||(W.value=-1)}const U=F(()=>{const N=W.value;return{children:N===-1?[]:e.options.slice(N)}}),J=F(()=>{const{childrenField:N,disabledField:O,keyField:A}=e;return or([U.value],{getIgnored(Q){return Uc(Q)},getChildren(Q){return Q[N]},getDisabled(Q){return Q[O]},getKey(Q){var he;return(he=Q[A])!==null&&he!==void 0?he:Q.name}})}),pe=F(()=>or([{}]).treeNodes[0]);function fe(){var N;if(W.value===-1)return v(Gc,{root:!0,level:0,key:"__ellpisisGroupPlaceholder__",internalKey:"__ellpisisGroupPlaceholder__",title:"···",tmNode:pe.value,domId:B,isEllipsisPlaceholder:!0});const O=J.value.treeNodes[0],A=m.value,Q=!!(!((N=O.children)===null||N===void 0)&&N.some(he=>A.includes(he.key)));return v(Gc,{level:0,root:!0,key:"__ellpisisGroup__",internalKey:"__ellpisisGroup__",title:"···",virtualChildActive:Q,tmNode:O,domId:B,rawNodes:O.rawNode.children||[],tmNodes:O.children||[],isEllipsisPlaceholder:!0})}return{mergedClsPrefix:t,controlledExpandedKeys:p,uncontrolledExpanededKeys:f,mergedExpandedKeys:g,uncontrolledValue:c,mergedValue:u,activePath:m,tmNodes:b,mergedTheme:n,mergedCollapsed:i,cssVars:o?void 0:T,themeClass:y==null?void 0:y.themeClass,overflowRef:S,counterRef:E,updateCounter:()=>{},onResize:_,onUpdateOverflow:Z,onUpdateCount:D,renderCounter:fe,getCounter:M,onRender:y==null?void 0:y.onRender,showOption:P,deriveResponsiveState:_}},render(){const{mergedClsPrefix:e,mode:t,themeClass:o,onRender:n}=this;n==null||n();const r=()=>this.tmNodes.map(s=>Kc(s,this.$props)),l=t==="horizontal"&&this.responsive,a=()=>v("div",xo(this.$attrs,{role:t==="horizontal"?"menubar":"menu",class:[`${e}-menu`,o,`${e}-menu--${t}`,l&&`${e}-menu--responsive`,this.mergedCollapsed&&`${e}-menu--collapsed`],style:this.cssVars}),l?v(Os,{ref:"overflowRef",onUpdateOverflow:this.onUpdateOverflow,getCounter:this.getCounter,onUpdateCount:this.onUpdateCount,updateCounter:this.updateCounter,style:{width:"100%",display:"flex",overflow:"hidden"}},{default:r,counter:this.renderCounter}):r());return l?v(wn,{onResize:this.onResize},{default:a}):a()}}),KT=I("statistic",[H("label",`
|
||
font-weight: var(--n-label-font-weight);
|
||
transition: .3s color var(--n-bezier);
|
||
font-size: var(--n-label-font-size);
|
||
color: var(--n-label-text-color);
|
||
`),I("statistic-value",`
|
||
margin-top: 4px;
|
||
font-weight: var(--n-value-font-weight);
|
||
`,[H("prefix",`
|
||
margin: 0 4px 0 0;
|
||
font-size: var(--n-value-font-size);
|
||
transition: .3s color var(--n-bezier);
|
||
color: var(--n-value-prefix-text-color);
|
||
`,[I("icon",{verticalAlign:"-0.125em"})]),H("content",`
|
||
font-size: var(--n-value-font-size);
|
||
transition: .3s color var(--n-bezier);
|
||
color: var(--n-value-text-color);
|
||
`),H("suffix",`
|
||
margin: 0 0 0 4px;
|
||
font-size: var(--n-value-font-size);
|
||
transition: .3s color var(--n-bezier);
|
||
color: var(--n-value-suffix-text-color);
|
||
`,[I("icon",{verticalAlign:"-0.125em"})])])]),GT=Object.assign(Object.assign({},Ie.props),{tabularNums:Boolean,label:String,value:[String,Number]}),qT=ve({name:"Statistic",props:GT,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedRtlRef:n}=Je(e),r=Ie("Statistic","-statistic",KT,yT,e,t),i=qt("Statistic",n,t),l=F(()=>{const{self:{labelFontWeight:s,valueFontSize:c,valueFontWeight:d,valuePrefixTextColor:u,labelTextColor:f,valueSuffixTextColor:h,valueTextColor:p,labelFontSize:g},common:{cubicBezierEaseInOut:b}}=r.value;return{"--n-bezier":b,"--n-label-font-size":g,"--n-label-font-weight":s,"--n-label-text-color":f,"--n-value-font-weight":d,"--n-value-font-size":c,"--n-value-prefix-text-color":u,"--n-value-suffix-text-color":h,"--n-value-text-color":p}}),a=o?gt("statistic",void 0,l,e):void 0;return{rtlEnabled:i,mergedClsPrefix:t,cssVars:o?void 0:l,themeClass:a==null?void 0:a.themeClass,onRender:a==null?void 0:a.onRender}},render(){var e;const{mergedClsPrefix:t,$slots:{default:o,label:n,prefix:r,suffix:i}}=this;return(e=this.onRender)===null||e===void 0||e.call(this),v("div",{class:[`${t}-statistic`,this.themeClass,this.rtlEnabled&&`${t}-statistic--rtl`],style:this.cssVars},pt(n,l=>v("div",{class:`${t}-statistic__label`},this.label||l)),v("div",{class:`${t}-statistic-value`,style:{fontVariantNumeric:this.tabularNums?"tabular-nums":""}},pt(r,l=>l&&v("span",{class:`${t}-statistic-value__prefix`},l)),this.value!==void 0?v("span",{class:`${t}-statistic-value__content`},this.value):pt(o,l=>l&&v("span",{class:`${t}-statistic-value__content`},l)),pt(i,l=>l&&v("span",{class:`${t}-statistic-value__suffix`},l))))}}),XT=I("h",`
|
||
font-size: var(--n-font-size);
|
||
font-weight: var(--n-font-weight);
|
||
margin: var(--n-margin);
|
||
transition: color .3s var(--n-bezier);
|
||
color: var(--n-text-color);
|
||
`,[L("&:first-child",{marginTop:0}),Y("prefix-bar",{position:"relative",paddingLeft:"var(--n-prefix-width)"},[Y("align-text",{paddingLeft:0},[L("&::before",{left:"calc(-1 * var(--n-prefix-width))"})]),L("&::before",`
|
||
content: "";
|
||
width: var(--n-bar-width);
|
||
border-radius: calc(var(--n-bar-width) / 2);
|
||
transition: background-color .3s var(--n-bezier);
|
||
left: 0;
|
||
top: 0;
|
||
bottom: 0;
|
||
position: absolute;
|
||
`),L("&::before",{backgroundColor:"var(--n-bar-color)"})])]),YT=Object.assign(Object.assign({},Ie.props),{type:{type:String,default:"default"},prefix:String,alignText:Boolean}),kg=(e=>ve({name:`H${e}`,props:YT,setup(t){const{mergedClsPrefixRef:o,inlineThemeDisabled:n}=Je(t),r=Ie("Typography","-h",XT,ST,t,o),i=F(()=>{const{type:a}=t,{common:{cubicBezierEaseInOut:s},self:{headerFontWeight:c,headerTextColor:d,[me("headerPrefixWidth",e)]:u,[me("headerFontSize",e)]:f,[me("headerMargin",e)]:h,[me("headerBarWidth",e)]:p,[me("headerBarColor",a)]:g}}=r.value;return{"--n-bezier":s,"--n-font-size":f,"--n-margin":h,"--n-bar-color":g,"--n-bar-width":p,"--n-font-weight":c,"--n-text-color":d,"--n-prefix-width":u}}),l=n?gt(`h${e}`,F(()=>t.type[0]),i,t):void 0;return{mergedClsPrefix:o,cssVars:n?void 0:i,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var t;const{prefix:o,alignText:n,mergedClsPrefix:r,cssVars:i,$slots:l}=this;return(t=this.onRender)===null||t===void 0||t.call(this),v(`h${e}`,{class:[`${r}-h`,`${r}-h${e}`,this.themeClass,{[`${r}-h--prefix-bar`]:o,[`${r}-h--align-text`]:n}],style:i},l)}}))("2"),ZT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},JT=ve({name:"BookOutline",render:function(t,o){return _t(),Kt("svg",ZT,o[0]||(o[0]=[Ne("path",{d:"M256 160c16-63.16 76.43-95.41 208-96a15.94 15.94 0 0 1 16 16v288a16 16 0 0 1-16 16c-128 0-177.45 25.81-208 64c-30.37-38-80-64-208-64c-9.88 0-16-8.05-16-17.93V80a15.94 15.94 0 0 1 16-16c131.57.59 192 32.84 208 96z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),Ne("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M256 160v288"},null,-1)]))}}),QT={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},e2=ve({name:"LogOutOutline",render:function(t,o){return _t(),Kt("svg",QT,o[0]||(o[0]=[Ne("path",{d:"M304 336v40a40 40 0 0 1-40 40H104a40 40 0 0 1-40-40V136a40 40 0 0 1 40-40h152c22.09 0 48 17.91 48 40v40",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),Ne("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M368 336l80-80l-80-80"},null,-1),Ne("path",{fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32",d:"M176 256h256"},null,-1)]))}}),t2={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink",viewBox:"0 0 512 512"},o2=ve({name:"PersonOutline",render:function(t,o){return _t(),Kt("svg",t2,o[0]||(o[0]=[Ne("path",{d:"M344 144c-3.92 52.87-44 96-88 96s-84.15-43.12-88-96c-4-55 35-96 88-96s92 42 88 96z",fill:"none",stroke:"currentColor","stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"32"},null,-1),Ne("path",{d:"M256 304c-87 0-175.3 48-191.64 138.6C62.39 453.52 68.57 464 80 464h352c11.44 0 17.62-10.48 15.65-21.4C431.3 352 343 304 256 304z",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"},null,-1)]))}}),n2={class:"header-content"},r2={class:"header-actions"},i2=[{path:"/",name:"Home",component:ds},{path:"/login",name:"Login",component:ds},{path:"/register",name:"Register",component:Rx},{path:"/update-password",name:"CustomPasswordSetup",component:qf},{path:"/custom-update-password",name:"CustomPasswordSetupAlt",component:qf},{path:"/sundererapp",component:xl({__name:"Applayout",setup(e){const t=bl(),o=V(!1),n=V("dashboard"),r=V("Admin User"),i=V("https://07akioni.oss-cn-beijing.aliyuncs.com/07akioni.jpeg");function l(d){return()=>v(dg,null,{default:()=>v(d)})}const a=[{label:"Dashboard",key:"dashboard",icon:l(JT),props:{onClick:()=>t.push("/app/dashboard")}},{label:"Users",key:"users",icon:l(o2),props:{onClick:()=>t.push("/app/users")}}],s=[{label:"Profile",key:"profile"},{label:"Settings",key:"settings"},{type:"divider",key:"d1"},{label:"Logout",key:"logout",icon:l(e2)}],c=d=>{switch(d){case"profile":console.log("Go to Profile");break;case"settings":console.log("Go to Settings");break;case"logout":localStorage.removeItem("authToken"),t.push("/login");break}};return(d,u)=>{const f=gk,h=ra,p=Hc,g=$T,b=UT,m=OT,x=Bm("router-view"),w=kT;return _t(),cl(w,{position:"absolute"},{default:mo(()=>[lt(g,{class:"header",bordered:""},{default:mo(()=>[Ne("div",n2,[u[3]||(u[3]=Ne("h1",null,"My Admin Panel",-1)),Ne("div",r2,[lt(p,{trigger:"click",options:s,onSelect:c},{default:mo(()=>[lt(h,{text:""},{default:mo(()=>[lt(f,{round:"",size:"small",src:i.value},null,8,["src"]),un(" "+Po(r.value),1)]),_:1})]),_:1})])])]),_:1}),lt(w,{"has-sider":"",position:"absolute",style:{top:"64px"}},{default:mo(()=>[lt(m,{bordered:"","collapse-mode":"width","collapsed-width":64,width:240,"native-scrollbar":!1,"show-trigger":"",collapsed:o.value,onCollapse:u[1]||(u[1]=C=>o.value=!o.value),onExpand:u[2]||(u[2]=C=>o.value=!o.value)},{default:mo(()=>[lt(b,{value:n.value,"onUpdate:value":u[0]||(u[0]=C=>n.value=C),collapsed:o.value,"collapsed-width":64,"collapsed-icon-size":22,options:a,indent:18},null,8,["value","collapsed"])]),_:1},8,["collapsed"]),lt(w,{"content-style":"padding: 24px;"},{default:mo(()=>[lt(x)]),_:1})]),_:1})]),_:1})}}},[["__scopeId","data-v-7853d827"]]),meta:{requiresAuth:!0},children:[{path:"",redirect:"/sundererapp/dashboard"},{path:"dashboard",name:"AppDashboard",component:()=>Gf(()=>Promise.resolve().then(()=>a2),void 0)},{path:"users",name:"AppUsers",component:()=>Gf(()=>Promise.resolve().then(()=>s2),void 0)}]},{path:"/:pathMatch(.*)*",name:"NotFound",component:ds}],l2=ax({history:N0(),routes:i2}),zg=t0(dx);zg.use(l2),zg.mount("#app");const a2=Object.freeze(Object.defineProperty({__proto__:null,default:{__name:"DashboardView",setup(e){return(t,o)=>{const n=kg,r=qT,i=zk;return _t(),Kt("div",null,[lt(n,null,{default:mo(()=>[...o[0]||(o[0]=[un("Dashboard",-1)])]),_:1}),o[1]||(o[1]=Ne("p",null,"Welcome to your admin dashboard!",-1)),lt(i,{title:"Quick Stats",style:{"margin-top":"20px"}},{default:mo(()=>[lt(r,{label:"Total Users",value:"12345"})]),_:1})])}}}},Symbol.toStringTag,{value:"Module"})),s2=Object.freeze(Object.defineProperty({__proto__:null,default:{__name:"UsersView",setup(e){const t=[{title:"Name",key:"name"},{title:"Age",key:"age"},{title:"Tags",key:"tags",render:n=>n.tags.map(r=>v(ea,{type:"info"},{default:()=>r}))},{title:"Actions",key:"actions",render:()=>v(ra,{size:"small",type:"primary"},{default:()=>"Edit"})}],o=[{name:"John Doe",age:32,tags:["admin","dev"]},{name:"Jane Smith",age:28,tags:["user"]}];return(n,r)=>{const i=kg,l=pT;return _t(),Kt("div",null,[lt(i,null,{default:mo(()=>[...r[0]||(r[0]=[un("Users Management",-1)])]),_:1}),r[1]||(r[1]=Ne("p",null,"This is the users management page.",-1)),lt(l,{columns:t,data:o})])}}}},Symbol.toStringTag,{value:"Module"}))});
|