@ruck-plugins/nvm-manager 1.0.2 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/index-D_JyzYjB.js +1722 -0
- package/index.html +1 -1
- package/package.json +8 -1
- package/plugin.json +1 -1
- package/assets/index-D8aXoS7e.js +0 -1720
|
@@ -0,0 +1,1722 @@
|
|
|
1
|
+
var ag=Object.defineProperty;var sg=(e,t,o)=>t in e?ag(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o;var cg=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var yi=(e,t,o)=>sg(e,typeof t!="symbol"?t+"":t,o);var Y3=cg((Gt,Kt)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const n of document.querySelectorAll('link[rel="modulepreload"]'))r(n);new MutationObserver(n=>{for(const i of n)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function o(n){const i={};return n.integrity&&(i.integrity=n.integrity),n.referrerPolicy&&(i.referrerPolicy=n.referrerPolicy),n.crossOrigin==="use-credentials"?i.credentials="include":n.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(n){if(n.ep)return;n.ep=!0;const i=o(n);fetch(n.href,i)}})();/**
|
|
2
|
+
* @vue/shared v3.5.29
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/function Wa(e){const t=Object.create(null);for(const o of e.split(","))t[o]=1;return o=>o in t}const Ye={},Zr=[],yo=()=>{},wd=()=>!1,al=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ja=e=>e.startsWith("onUpdate:"),ft=Object.assign,Va=(e,t)=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)},dg=Object.prototype.hasOwnProperty,Ve=(e,t)=>dg.call(e,t),we=Array.isArray,Jr=e=>ci(e)==="[object Map]",Sd=e=>ci(e)==="[object Set]",Ps=e=>ci(e)==="[object Date]",Te=e=>typeof e=="function",nt=e=>typeof e=="string",ao=e=>typeof e=="symbol",De=e=>e!==null&&typeof e=="object",$d=e=>(De(e)||Te(e))&&Te(e.then)&&Te(e.catch),Pd=Object.prototype.toString,ci=e=>Pd.call(e),ug=e=>ci(e).slice(8,-1),Td=e=>ci(e)==="[object Object]",sl=e=>nt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,An=Wa(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),cl=e=>{const t=Object.create(null);return(o=>t[o]||(t[o]=e(o)))},fg=/-\w/g,ar=cl(e=>e.replace(fg,t=>t.slice(1).toUpperCase())),hg=/\B([A-Z])/g,Rr=cl(e=>e.replace(hg,"-$1").toLowerCase()),_d=cl(e=>e.charAt(0).toUpperCase()+e.slice(1)),Bl=cl(e=>e?`on${_d(e)}`:""),nr=(e,t)=>!Object.is(e,t),Al=(e,...t)=>{for(let o=0;o<e.length;o++)e[o](...t)},zd=(e,t,o,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:o})},pg=e=>{const t=parseFloat(e);return isNaN(t)?e:t},gg=e=>{const t=nt(e)?Number(e):NaN;return isNaN(t)?e:t};let Ts;const dl=()=>Ts||(Ts=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Na(e){if(we(e)){const t={};for(let o=0;o<e.length;o++){const r=e[o],n=nt(r)?xg(r):Na(r);if(n)for(const i in n)t[i]=n[i]}return t}else if(nt(e)||De(e))return e}const mg=/;(?![^(]*\))/g,vg=/:([^]+)/,bg=/\/\*[^]*?\*\//g;function xg(e){const t={};return e.replace(bg,"").split(mg).forEach(o=>{if(o){const r=o.split(vg);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Ua(e){let t="";if(nt(e))t=e;else if(we(e))for(let o=0;o<e.length;o++){const r=Ua(e[o]);r&&(t+=r+" ")}else if(De(e))for(const o in e)e[o]&&(t+=o+" ");return t.trim()}const Cg="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",yg=Wa(Cg);function Ed(e){return!!e||e===""}function wg(e,t){if(e.length!==t.length)return!1;let o=!0;for(let r=0;o&&r<e.length;r++)o=Ga(e[r],t[r]);return o}function Ga(e,t){if(e===t)return!0;let o=Ps(e),r=Ps(t);if(o||r)return o&&r?e.getTime()===t.getTime():!1;if(o=ao(e),r=ao(t),o||r)return e===t;if(o=we(e),r=we(t),o||r)return o&&r?wg(e,t):!1;if(o=De(e),r=De(t),o||r){if(!o||!r)return!1;const n=Object.keys(e).length,i=Object.keys(t).length;if(n!==i)return!1;for(const a in e){const l=e.hasOwnProperty(a),s=t.hasOwnProperty(a);if(l&&!s||!l&&s||!Ga(e[a],t[a]))return!1}}return String(e)===String(t)}const Id=e=>!!(e&&e.__v_isRef===!0),At=e=>nt(e)?e:e==null?"":we(e)||De(e)&&(e.toString===Pd||!Te(e.toString))?Id(e)?At(e.value):JSON.stringify(e,Rd,2):String(e),Rd=(e,t)=>Id(t)?Rd(e,t.value):Jr(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((o,[r,n],i)=>(o[Hl(r,i)+" =>"]=n,o),{})}:Sd(t)?{[`Set(${t.size})`]:[...t.values()].map(o=>Hl(o))}:ao(t)?Hl(t):De(t)&&!we(t)&&!Td(t)?String(t):t,Hl=(e,t="")=>{var o;return ao(e)?`Symbol(${(o=e.description)!=null?o:t})`:e};/**
|
|
6
|
+
* @vue/reactivity v3.5.29
|
|
7
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
8
|
+
* @license MIT
|
|
9
|
+
**/let Wt;class Sg{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.__v_skip=!0,this.parent=Wt,!t&&Wt&&(this.index=(Wt.scopes||(Wt.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=Wt;try{return Wt=this,t()}finally{Wt=o}}}on(){++this._on===1&&(this.prevScope=Wt,Wt=this)}off(){this._on>0&&--this._on===0&&(Wt=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let o,r;for(o=0,r=this.effects.length;o<r;o++)this.effects[o].stop();for(this.effects.length=0,o=0,r=this.cleanups.length;o<r;o++)this.cleanups[o]();if(this.cleanups.length=0,this.scopes){for(o=0,r=this.scopes.length;o<r;o++)this.scopes[o].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const n=this.parent.scopes.pop();n&&n!==this&&(this.parent.scopes[this.index]=n,n.index=this.index)}this.parent=void 0}}}function $g(){return Wt}let Ze;const kl=new WeakSet;class Md{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,Wt&&Wt.active&&Wt.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,kl.has(this)&&(kl.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||Ad(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,_s(this),Hd(this);const t=Ze,o=io;Ze=this,io=!0;try{return this.fn()}finally{kd(this),Ze=t,io=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,_s(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?kl.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){ua(this)&&this.run()}get dirty(){return ua(this)}}let Bd=0,Hn,kn;function Ad(e,t=!1){if(e.flags|=8,t){e.next=kn,kn=e;return}e.next=Hn,Hn=e}function Ka(){Bd++}function qa(){if(--Bd>0)return;if(kn){let t=kn;for(kn=void 0;t;){const o=t.next;t.next=void 0,t.flags&=-9,t=o}}let e;for(;Hn;){let t=Hn;for(Hn=void 0;t;){const o=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=o}}if(e)throw e}function Hd(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function kd(e){let t,o=e.depsTail,r=o;for(;r;){const n=r.prevDep;r.version===-1?(r===o&&(o=n),Ya(r),Pg(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=n}e.deps=t,e.depsTail=o}function ua(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Fd(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Fd(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Un)||(e.globalVersion=Un,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!ua(e))))return;e.flags|=2;const t=e.dep,o=Ze,r=io;Ze=e,io=!0;try{Hd(e);const n=e.fn(e._value);(t.version===0||nr(n,e._value))&&(e.flags|=128,e._value=n,t.version++)}catch(n){throw t.version++,n}finally{Ze=o,io=r,kd(e),e.flags&=-3}}function Ya(e,t=!1){const{dep:o,prevSub:r,nextSub:n}=e;if(r&&(r.nextSub=n,e.prevSub=void 0),n&&(n.prevSub=r,e.nextSub=void 0),o.subs===e&&(o.subs=r,!r&&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 Pg(e){const{prevDep:t,nextDep:o}=e;t&&(t.nextDep=o,e.prevDep=void 0),o&&(o.prevDep=t,e.nextDep=void 0)}let io=!0;const Od=[];function Lo(){Od.push(io),io=!1}function Do(){const e=Od.pop();io=e===void 0?!0:e}function _s(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const o=Ze;Ze=void 0;try{t()}finally{Ze=o}}}let Un=0;class Tg{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 Xa{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(!Ze||!io||Ze===this.computed)return;let o=this.activeLink;if(o===void 0||o.sub!==Ze)o=this.activeLink=new Tg(Ze,this),Ze.deps?(o.prevDep=Ze.depsTail,Ze.depsTail.nextDep=o,Ze.depsTail=o):Ze.deps=Ze.depsTail=o,Ld(o);else if(o.version===-1&&(o.version=this.version,o.nextDep)){const r=o.nextDep;r.prevDep=o.prevDep,o.prevDep&&(o.prevDep.nextDep=r),o.prevDep=Ze.depsTail,o.nextDep=void 0,Ze.depsTail.nextDep=o,Ze.depsTail=o,Ze.deps===o&&(Ze.deps=r)}return o}trigger(t){this.version++,Un++,this.notify(t)}notify(t){Ka();try{for(let o=this.subs;o;o=o.prevSub)o.sub.notify()&&o.sub.dep.notify()}finally{qa()}}}function Ld(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Ld(r)}const o=e.dep.subs;o!==e&&(e.prevSub=o,o&&(o.nextSub=e)),e.dep.subs=e}}const Di=new WeakMap,wr=Symbol(""),fa=Symbol(""),Gn=Symbol("");function Mt(e,t,o){if(io&&Ze){let r=Di.get(e);r||Di.set(e,r=new Map);let n=r.get(o);n||(r.set(o,n=new Xa),n.map=r,n.key=o),n.track()}}function Fo(e,t,o,r,n,i){const a=Di.get(e);if(!a){Un++;return}const l=s=>{s&&s.trigger()};if(Ka(),t==="clear")a.forEach(l);else{const s=we(e),d=s&&sl(o);if(s&&o==="length"){const c=Number(r);a.forEach((u,h)=>{(h==="length"||h===Gn||!ao(h)&&h>=c)&&l(u)})}else switch((o!==void 0||a.has(void 0))&&l(a.get(o)),d&&l(a.get(Gn)),t){case"add":s?d&&l(a.get("length")):(l(a.get(wr)),Jr(e)&&l(a.get(fa)));break;case"delete":s||(l(a.get(wr)),Jr(e)&&l(a.get(fa)));break;case"set":Jr(e)&&l(a.get(wr));break}}qa()}function _g(e,t){const o=Di.get(e);return o&&o.get(t)}function Dr(e){const t=ke(e);return t===e?t:(Mt(t,"iterate",Gn),qt(e)?t:t.map(so))}function ul(e){return Mt(e=ke(e),"iterate",Gn),e}function er(e,t){return Wo(e)?sn(Sr(e)?so(t):t):so(t)}const zg={__proto__:null,[Symbol.iterator](){return Fl(this,Symbol.iterator,e=>er(this,e))},concat(...e){return Dr(this).concat(...e.map(t=>we(t)?Dr(t):t))},entries(){return Fl(this,"entries",e=>(e[1]=er(this,e[1]),e))},every(e,t){return Bo(this,"every",e,t,void 0,arguments)},filter(e,t){return Bo(this,"filter",e,t,o=>o.map(r=>er(this,r)),arguments)},find(e,t){return Bo(this,"find",e,t,o=>er(this,o),arguments)},findIndex(e,t){return Bo(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return Bo(this,"findLast",e,t,o=>er(this,o),arguments)},findLastIndex(e,t){return Bo(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return Bo(this,"forEach",e,t,void 0,arguments)},includes(...e){return Ol(this,"includes",e)},indexOf(...e){return Ol(this,"indexOf",e)},join(e){return Dr(this).join(e)},lastIndexOf(...e){return Ol(this,"lastIndexOf",e)},map(e,t){return Bo(this,"map",e,t,void 0,arguments)},pop(){return Sn(this,"pop")},push(...e){return Sn(this,"push",e)},reduce(e,...t){return zs(this,"reduce",e,t)},reduceRight(e,...t){return zs(this,"reduceRight",e,t)},shift(){return Sn(this,"shift")},some(e,t){return Bo(this,"some",e,t,void 0,arguments)},splice(...e){return Sn(this,"splice",e)},toReversed(){return Dr(this).toReversed()},toSorted(e){return Dr(this).toSorted(e)},toSpliced(...e){return Dr(this).toSpliced(...e)},unshift(...e){return Sn(this,"unshift",e)},values(){return Fl(this,"values",e=>er(this,e))}};function Fl(e,t,o){const r=ul(e),n=r[t]();return r!==e&&!qt(e)&&(n._next=n.next,n.next=()=>{const i=n._next();return i.done||(i.value=o(i.value)),i}),n}const Eg=Array.prototype;function Bo(e,t,o,r,n,i){const a=ul(e),l=a!==e&&!qt(e),s=a[t];if(s!==Eg[t]){const u=s.apply(e,i);return l?so(u):u}let d=o;a!==e&&(l?d=function(u,h){return o.call(this,er(e,u),h,e)}:o.length>2&&(d=function(u,h){return o.call(this,u,h,e)}));const c=s.call(a,d,r);return l&&n?n(c):c}function zs(e,t,o,r){const n=ul(e);let i=o;return n!==e&&(qt(e)?o.length>3&&(i=function(a,l,s){return o.call(this,a,l,s,e)}):i=function(a,l,s){return o.call(this,a,er(e,l),s,e)}),n[t](i,...r)}function Ol(e,t,o){const r=ke(e);Mt(r,"iterate",Gn);const n=r[t](...o);return(n===-1||n===!1)&&hl(o[0])?(o[0]=ke(o[0]),r[t](...o)):n}function Sn(e,t,o=[]){Lo(),Ka();const r=ke(e)[t].apply(e,o);return qa(),Do(),r}const Ig=Wa("__proto__,__v_isRef,__isVue"),Dd=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(ao));function Rg(e){ao(e)||(e=String(e));const t=ke(this);return Mt(t,"has",e),t.hasOwnProperty(e)}class Wd{constructor(t=!1,o=!1){this._isReadonly=t,this._isShallow=o}get(t,o,r){if(o==="__v_skip")return t.__v_skip;const n=this._isReadonly,i=this._isShallow;if(o==="__v_isReactive")return!n;if(o==="__v_isReadonly")return n;if(o==="__v_isShallow")return i;if(o==="__v_raw")return r===(n?i?Wg:Ud:i?Nd:Vd).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const a=we(t);if(!n){let s;if(a&&(s=zg[o]))return s;if(o==="hasOwnProperty")return Rg}const l=Reflect.get(t,o,gt(t)?t:r);if((ao(o)?Dd.has(o):Ig(o))||(n||Mt(t,"get",o),i))return l;if(gt(l)){const s=a&&sl(o)?l:l.value;return n&&De(s)?an(s):s}return De(l)?n?an(l):fl(l):l}}class jd extends Wd{constructor(t=!1){super(!1,t)}set(t,o,r,n){let i=t[o];const a=we(t)&&sl(o);if(!this._isShallow){const d=Wo(i);if(!qt(r)&&!Wo(r)&&(i=ke(i),r=ke(r)),!a&>(i)&&!gt(r))return d||(i.value=r),!0}const l=a?Number(o)<t.length:Ve(t,o),s=Reflect.set(t,o,r,gt(t)?t:n);return t===ke(n)&&(l?nr(r,i)&&Fo(t,"set",o,r):Fo(t,"add",o,r)),s}deleteProperty(t,o){const r=Ve(t,o);t[o];const n=Reflect.deleteProperty(t,o);return n&&r&&Fo(t,"delete",o,void 0),n}has(t,o){const r=Reflect.has(t,o);return(!ao(o)||!Dd.has(o))&&Mt(t,"has",o),r}ownKeys(t){return Mt(t,"iterate",we(t)?"length":wr),Reflect.ownKeys(t)}}class Mg extends Wd{constructor(t=!1){super(!0,t)}set(t,o){return!0}deleteProperty(t,o){return!0}}const Bg=new jd,Ag=new Mg,Hg=new jd(!0),ha=e=>e,wi=e=>Reflect.getPrototypeOf(e);function kg(e,t,o){return function(...r){const n=this.__v_raw,i=ke(n),a=Jr(i),l=e==="entries"||e===Symbol.iterator&&a,s=e==="keys"&&a,d=n[e](...r),c=o?ha:t?sn:so;return!t&&Mt(i,"iterate",s?fa:wr),ft(Object.create(d),{next(){const{value:u,done:h}=d.next();return h?{value:u,done:h}:{value:l?[c(u[0]),c(u[1])]:c(u),done:h}}})}}function Si(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function Fg(e,t){const o={get(n){const i=this.__v_raw,a=ke(i),l=ke(n);e||(nr(n,l)&&Mt(a,"get",n),Mt(a,"get",l));const{has:s}=wi(a),d=t?ha:e?sn:so;if(s.call(a,n))return d(i.get(n));if(s.call(a,l))return d(i.get(l));i!==a&&i.get(n)},get size(){const n=this.__v_raw;return!e&&Mt(ke(n),"iterate",wr),n.size},has(n){const i=this.__v_raw,a=ke(i),l=ke(n);return e||(nr(n,l)&&Mt(a,"has",n),Mt(a,"has",l)),n===l?i.has(n):i.has(n)||i.has(l)},forEach(n,i){const a=this,l=a.__v_raw,s=ke(l),d=t?ha:e?sn:so;return!e&&Mt(s,"iterate",wr),l.forEach((c,u)=>n.call(i,d(c),d(u),a))}};return ft(o,e?{add:Si("add"),set:Si("set"),delete:Si("delete"),clear:Si("clear")}:{add(n){!t&&!qt(n)&&!Wo(n)&&(n=ke(n));const i=ke(this);return wi(i).has.call(i,n)||(i.add(n),Fo(i,"add",n,n)),this},set(n,i){!t&&!qt(i)&&!Wo(i)&&(i=ke(i));const a=ke(this),{has:l,get:s}=wi(a);let d=l.call(a,n);d||(n=ke(n),d=l.call(a,n));const c=s.call(a,n);return a.set(n,i),d?nr(i,c)&&Fo(a,"set",n,i):Fo(a,"add",n,i),this},delete(n){const i=ke(this),{has:a,get:l}=wi(i);let s=a.call(i,n);s||(n=ke(n),s=a.call(i,n)),l&&l.call(i,n);const d=i.delete(n);return s&&Fo(i,"delete",n,void 0),d},clear(){const n=ke(this),i=n.size!==0,a=n.clear();return i&&Fo(n,"clear",void 0,void 0),a}}),["keys","values","entries",Symbol.iterator].forEach(n=>{o[n]=kg(n,e,t)}),o}function Za(e,t){const o=Fg(e,t);return(r,n,i)=>n==="__v_isReactive"?!e:n==="__v_isReadonly"?e:n==="__v_raw"?r:Reflect.get(Ve(o,n)&&n in r?o:r,n,i)}const Og={get:Za(!1,!1)},Lg={get:Za(!1,!0)},Dg={get:Za(!0,!1)},Vd=new WeakMap,Nd=new WeakMap,Ud=new WeakMap,Wg=new WeakMap;function jg(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Vg(e){return e.__v_skip||!Object.isExtensible(e)?0:jg(ug(e))}function fl(e){return Wo(e)?e:Ja(e,!1,Bg,Og,Vd)}function Ng(e){return Ja(e,!1,Hg,Lg,Nd)}function an(e){return Ja(e,!0,Ag,Dg,Ud)}function Ja(e,t,o,r,n){if(!De(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=Vg(e);if(i===0)return e;const a=n.get(e);if(a)return a;const l=new Proxy(e,i===2?r:o);return n.set(e,l),l}function Sr(e){return Wo(e)?Sr(e.__v_raw):!!(e&&e.__v_isReactive)}function Wo(e){return!!(e&&e.__v_isReadonly)}function qt(e){return!!(e&&e.__v_isShallow)}function hl(e){return e?!!e.__v_raw:!1}function ke(e){const t=e&&e.__v_raw;return t?ke(t):e}function pa(e){return!Ve(e,"__v_skip")&&Object.isExtensible(e)&&zd(e,"__v_skip",!0),e}const so=e=>De(e)?fl(e):e,sn=e=>De(e)?an(e):e;function gt(e){return e?e.__v_isRef===!0:!1}function W(e){return Gd(e,!1)}function Ug(e){return Gd(e,!0)}function Gd(e,t){return gt(e)?e:new Gg(e,t)}class Gg{constructor(t,o){this.dep=new Xa,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=o?t:ke(t),this._value=o?t:so(t),this.__v_isShallow=o}get value(){return this.dep.track(),this._value}set value(t){const o=this._rawValue,r=this.__v_isShallow||qt(t)||Wo(t);t=r?t:ke(t),nr(t,o)&&(this._rawValue=t,this._value=r?t:so(t),this.dep.trigger())}}function Kn(e){return gt(e)?e.value:e}const Kg={get:(e,t,o)=>t==="__v_raw"?e:Kn(Reflect.get(e,t,o)),set:(e,t,o,r)=>{const n=e[t];return gt(n)&&!gt(o)?(n.value=o,!0):Reflect.set(e,t,o,r)}};function Kd(e){return Sr(e)?e:new Proxy(e,Kg)}class qg{constructor(t,o,r){this._object=t,this._key=o,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0,this._raw=ke(t);let n=!0,i=t;if(!we(t)||!sl(String(o)))do n=!hl(i)||qt(i);while(n&&(i=i.__v_raw));this._shallow=n}get value(){let t=this._object[this._key];return this._shallow&&(t=Kn(t)),this._value=t===void 0?this._defaultValue:t}set value(t){if(this._shallow&>(this._raw[this._key])){const o=this._object[this._key];if(gt(o)){o.value=t;return}}this._object[this._key]=t}get dep(){return _g(this._raw,this._key)}}class Yg{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 Be(e,t,o){return gt(e)?e:Te(e)?new Yg(e):De(e)&&arguments.length>1?Xg(e,t,o):W(e)}function Xg(e,t,o){return new qg(e,t,o)}class Zg{constructor(t,o,r){this.fn=t,this.setter=o,this._value=void 0,this.dep=new Xa(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Un-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!o,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Ze!==this)return Ad(this,!0),!0}get value(){const t=this.dep.track();return Fd(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function Jg(e,t,o=!1){let r,n;return Te(e)?r=e:(r=e.get,n=e.set),new Zg(r,n,o)}const $i={},Wi=new WeakMap;let br;function Qg(e,t=!1,o=br){if(o){let r=Wi.get(o);r||Wi.set(o,r=[]),r.push(e)}}function em(e,t,o=Ye){const{immediate:r,deep:n,once:i,scheduler:a,augmentJob:l,call:s}=o,d=$=>n?$:qt($)||n===!1||n===0?Oo($,1):Oo($);let c,u,h,f,p=!1,g=!1;if(gt(e)?(u=()=>e.value,p=qt(e)):Sr(e)?(u=()=>d(e),p=!0):we(e)?(g=!0,p=e.some($=>Sr($)||qt($)),u=()=>e.map($=>{if(gt($))return $.value;if(Sr($))return d($);if(Te($))return s?s($,2):$()})):Te(e)?t?u=s?()=>s(e,2):e:u=()=>{if(h){Lo();try{h()}finally{Do()}}const $=br;br=c;try{return s?s(e,3,[f]):e(f)}finally{br=$}}:u=yo,t&&n){const $=u,E=n===!0?1/0:n;u=()=>Oo($(),E)}const x=$g(),v=()=>{c.stop(),x&&x.active&&Va(x.effects,c)};if(i&&t){const $=t;t=(...E)=>{$(...E),v()}}let y=g?new Array(e.length).fill($i):$i;const I=$=>{if(!(!(c.flags&1)||!c.dirty&&!$))if(t){const E=c.run();if(n||p||(g?E.some((P,b)=>nr(P,y[b])):nr(E,y))){h&&h();const P=br;br=c;try{const b=[E,y===$i?void 0:g&&y[0]===$i?[]:y,f];y=E,s?s(t,3,b):t(...b)}finally{br=P}}}else c.run()};return l&&l(I),c=new Md(u),c.scheduler=a?()=>a(I,!1):I,f=$=>Qg($,!1,c),h=c.onStop=()=>{const $=Wi.get(c);if($){if(s)s($,4);else for(const E of $)E();Wi.delete(c)}},t?r?I(!0):y=c.run():a?a(I.bind(null,!0),!0):c.run(),v.pause=c.pause.bind(c),v.resume=c.resume.bind(c),v.stop=v,v}function Oo(e,t=1/0,o){if(t<=0||!De(e)||e.__v_skip||(o=o||new Map,(o.get(e)||0)>=t))return e;if(o.set(e,t),t--,gt(e))Oo(e.value,t,o);else if(we(e))for(let r=0;r<e.length;r++)Oo(e[r],t,o);else if(Sd(e)||Jr(e))e.forEach(r=>{Oo(r,t,o)});else if(Td(e)){for(const r in e)Oo(e[r],t,o);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&Oo(e[r],t,o)}return e}/**
|
|
10
|
+
* @vue/runtime-core v3.5.29
|
|
11
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
12
|
+
* @license MIT
|
|
13
|
+
**/function di(e,t,o,r){try{return r?e(...r):e()}catch(n){pl(n,t,o)}}function co(e,t,o,r){if(Te(e)){const n=di(e,t,o,r);return n&&$d(n)&&n.catch(i=>{pl(i,t,o)}),n}if(we(e)){const n=[];for(let i=0;i<e.length;i++)n.push(co(e[i],t,o,r));return n}}function pl(e,t,o,r=!0){const n=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:a}=t&&t.appContext.config||Ye;if(t){let l=t.parent;const s=t.proxy,d=`https://vuejs.org/error-reference/#runtime-${o}`;for(;l;){const c=l.ec;if(c){for(let u=0;u<c.length;u++)if(c[u](e,s,d)===!1)return}l=l.parent}if(i){Lo(),di(i,null,10,[e,s,d]),Do();return}}tm(e,o,n,r,a)}function tm(e,t,o,r=!0,n=!1){if(n)throw e;console.error(e)}const Ot=[];let vo=-1;const Qr=[];let tr=null,Yr=0;const qd=Promise.resolve();let ji=null;function lo(e){const t=ji||qd;return e?t.then(this?e.bind(this):e):t}function om(e){let t=vo+1,o=Ot.length;for(;t<o;){const r=t+o>>>1,n=Ot[r],i=qn(n);i<e||i===e&&n.flags&2?t=r+1:o=r}return t}function Qa(e){if(!(e.flags&1)){const t=qn(e),o=Ot[Ot.length-1];!o||!(e.flags&2)&&t>=qn(o)?Ot.push(e):Ot.splice(om(t),0,e),e.flags|=1,Yd()}}function Yd(){ji||(ji=qd.then(Zd))}function rm(e){we(e)?Qr.push(...e):tr&&e.id===-1?tr.splice(Yr+1,0,e):e.flags&1||(Qr.push(e),e.flags|=1),Yd()}function Es(e,t,o=vo+1){for(;o<Ot.length;o++){const r=Ot[o];if(r&&r.flags&2){if(e&&r.id!==e.uid)continue;Ot.splice(o,1),o--,r.flags&4&&(r.flags&=-2),r(),r.flags&4||(r.flags&=-2)}}}function Xd(e){if(Qr.length){const t=[...new Set(Qr)].sort((o,r)=>qn(o)-qn(r));if(Qr.length=0,tr){tr.push(...t);return}for(tr=t,Yr=0;Yr<tr.length;Yr++){const o=tr[Yr];o.flags&4&&(o.flags&=-2),o.flags&8||o(),o.flags&=-2}tr=null,Yr=0}}const qn=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Zd(e){try{for(vo=0;vo<Ot.length;vo++){const t=Ot[vo];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),di(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;vo<Ot.length;vo++){const t=Ot[vo];t&&(t.flags&=-2)}vo=-1,Ot.length=0,Xd(),ji=null,(Ot.length||Qr.length)&&Zd()}}let Ht=null,Jd=null;function Vi(e){const t=Ht;return Ht=e,Jd=e&&e.type.__scopeId||null,t}function J(e,t=Ht,o){if(!t||e._n)return e;const r=(...n)=>{r._d&&Gi(-1);const i=Vi(t);let a;try{a=e(...n)}finally{Vi(i),r._d&&Gi(1)}return a};return r._n=!0,r._c=!0,r._d=!0,r}function ui(e,t){if(Ht===null)return e;const o=xl(Ht),r=e.dirs||(e.dirs=[]);for(let n=0;n<t.length;n++){let[i,a,l,s=Ye]=t[n];i&&(Te(i)&&(i={mounted:i,updated:i}),i.deep&&Oo(a),r.push({dir:i,instance:o,value:a,oldValue:void 0,arg:l,modifiers:s}))}return e}function pr(e,t,o,r){const n=e.dirs,i=t&&t.dirs;for(let a=0;a<n.length;a++){const l=n[a];i&&(l.oldValue=i[a].value);let s=l.dir[r];s&&(Lo(),co(s,o,8,[e.el,l,e,t]),Do())}}function $t(e,t){if(Lt){let o=Lt.provides;const r=Lt.parent&&Lt.parent.provides;r===o&&(o=Lt.provides=Object.create(r)),o[e]=t}}function Le(e,t,o=!1){const r=fn();if(r||tn){let n=tn?tn._context.provides:r?r.parent==null||r.ce?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:void 0;if(n&&e in n)return n[e];if(arguments.length>1)return o&&Te(t)?t.call(r&&r.proxy):t}}const nm=Symbol.for("v-scx"),im=()=>Le(nm);function So(e,t){return es(e,null,t)}function Xe(e,t,o){return es(e,t,o)}function es(e,t,o=Ye){const{immediate:r,deep:n,flush:i,once:a}=o,l=ft({},o),s=t&&r||!t&&i!=="post";let d;if(Zn){if(i==="sync"){const f=im();d=f.__watcherHandles||(f.__watcherHandles=[])}else if(!s){const f=()=>{};return f.stop=yo,f.resume=yo,f.pause=yo,f}}const c=Lt;l.call=(f,p,g)=>co(f,c,p,g);let u=!1;i==="post"?l.scheduler=f=>{Rt(f,c&&c.suspense)}:i!=="sync"&&(u=!0,l.scheduler=(f,p)=>{p?f():Qa(f)}),l.augmentJob=f=>{t&&(f.flags|=4),u&&(f.flags|=2,c&&(f.id=c.uid,f.i=c))};const h=em(e,t,l);return Zn&&(d?d.push(h):s&&h()),h}function lm(e,t,o){const r=this.proxy,n=nt(e)?e.includes(".")?Qd(r,e):()=>r[e]:e.bind(r,r);let i;Te(t)?i=t:(i=t.handler,o=t);const a=pi(this),l=es(n,i.bind(r),o);return a(),l}function Qd(e,t){const o=t.split(".");return()=>{let r=e;for(let n=0;n<o.length&&r;n++)r=r[o[n]];return r}}const eu=Symbol("_vte"),tu=e=>e.__isTeleport,Fn=e=>e&&(e.disabled||e.disabled===""),Is=e=>e&&(e.defer||e.defer===""),Rs=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ms=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,ga=(e,t)=>{const o=e&&e.to;return nt(o)?t?t(o):null:o},ou={name:"Teleport",__isTeleport:!0,process(e,t,o,r,n,i,a,l,s,d){const{mc:c,pc:u,pbc:h,o:{insert:f,querySelector:p,createText:g,createComment:x}}=d,v=Fn(t.props);let{shapeFlag:y,children:I,dynamicChildren:$}=t;if(e==null){const E=t.el=g(""),P=t.anchor=g("");f(E,o,r),f(P,o,r);const b=(_,k)=>{y&16&&c(I,_,k,n,i,a,l,s)},A=()=>{const _=t.target=ga(t.props,p),k=ma(_,t,g,f);_&&(a!=="svg"&&Rs(_)?a="svg":a!=="mathml"&&Ms(_)&&(a="mathml"),n&&n.isCE&&(n.ce._teleportTargets||(n.ce._teleportTargets=new Set)).add(_),v||(b(_,k),Hi(t,!1)))};v&&(b(o,P),Hi(t,!0)),Is(t.props)?(t.el.__isMounted=!1,Rt(()=>{A(),delete t.el.__isMounted},i)):A()}else{if(Is(t.props)&&e.el.__isMounted===!1){Rt(()=>{ou.process(e,t,o,r,n,i,a,l,s,d)},i);return}t.el=e.el,t.targetStart=e.targetStart;const E=t.anchor=e.anchor,P=t.target=e.target,b=t.targetAnchor=e.targetAnchor,A=Fn(e.props),_=A?o:P,k=A?E:b;if(a==="svg"||Rs(P)?a="svg":(a==="mathml"||Ms(P))&&(a="mathml"),$?(h(e.dynamicChildren,$,_,n,i,a,l),ns(e,t,!0)):s||u(e,t,_,k,n,i,a,l,!1),v)A?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Pi(t,o,E,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const L=t.target=ga(t.props,p);L&&Pi(t,L,null,d,0)}else A&&Pi(t,P,b,d,1);Hi(t,v)}},remove(e,t,o,{um:r,o:{remove:n}},i){const{shapeFlag:a,children:l,anchor:s,targetStart:d,targetAnchor:c,target:u,props:h}=e;if(u&&(n(d),n(c)),i&&n(s),a&16){const f=i||!Fn(h);for(let p=0;p<l.length;p++){const g=l[p];r(g,t,o,f,!!g.dynamicChildren)}}},move:Pi,hydrate:am};function Pi(e,t,o,{o:{insert:r},m:n},i=2){i===0&&r(e.targetAnchor,t,o);const{el:a,anchor:l,shapeFlag:s,children:d,props:c}=e,u=i===2;if(u&&r(a,t,o),(!u||Fn(c))&&s&16)for(let h=0;h<d.length;h++)n(d[h],t,o,2);u&&r(l,t,o)}function am(e,t,o,r,n,i,{o:{nextSibling:a,parentNode:l,querySelector:s,insert:d,createText:c}},u){function h(x,v){let y=v;for(;y;){if(y&&y.nodeType===8){if(y.data==="teleport start anchor")t.targetStart=y;else if(y.data==="teleport anchor"){t.targetAnchor=y,x._lpa=t.targetAnchor&&a(t.targetAnchor);break}}y=a(y)}}function f(x,v){v.anchor=u(a(x),v,l(x),o,r,n,i)}const p=t.target=ga(t.props,s),g=Fn(t.props);if(p){const x=p._lpa||p.firstChild;t.shapeFlag&16&&(g?(f(e,t),h(p,x),t.targetAnchor||ma(p,t,c,d,l(e)===p?e:null)):(t.anchor=a(e),h(p,x),t.targetAnchor||ma(p,t,c,d),u(x&&a(x),t,p,o,r,n,i))),Hi(t,g)}else g&&t.shapeFlag&16&&(f(e,t),t.targetStart=e,t.targetAnchor=a(e));return t.anchor&&a(t.anchor)}const ru=ou;function Hi(e,t){const o=e.ctx;if(o&&o.ut){let r,n;for(t?(r=e.el,n=e.anchor):(r=e.targetStart,n=e.targetAnchor);r&&r!==n;)r.nodeType===1&&r.setAttribute("data-v-owner",o.uid),r=r.nextSibling;o.ut()}}function ma(e,t,o,r,n=null){const i=t.targetStart=o(""),a=t.targetAnchor=o("");return i[eu]=a,e&&(r(i,e,n),r(a,e,n)),a}const bo=Symbol("_leaveCb"),$n=Symbol("_enterCb");function nu(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Et(()=>{e.isMounted=!0}),Yt(()=>{e.isUnmounting=!0}),e}const Qt=[Function,Array],iu={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Qt,onEnter:Qt,onAfterEnter:Qt,onEnterCancelled:Qt,onBeforeLeave:Qt,onLeave:Qt,onAfterLeave:Qt,onLeaveCancelled:Qt,onBeforeAppear:Qt,onAppear:Qt,onAfterAppear:Qt,onAppearCancelled:Qt},lu=e=>{const t=e.subTree;return t.component?lu(t.component):t},sm={name:"BaseTransition",props:iu,setup(e,{slots:t}){const o=fn(),r=nu();return()=>{const n=t.default&&ts(t.default(),!0);if(!n||!n.length)return;const i=au(n),a=ke(e),{mode:l}=a;if(r.isLeaving)return Ll(i);const s=Bs(i);if(!s)return Ll(i);let d=Yn(s,a,r,o,u=>d=u);s.type!==ut&&Er(s,d);let c=o.subTree&&Bs(o.subTree);if(c&&c.type!==ut&&!xr(c,s)&&lu(o).type!==ut){let u=Yn(c,a,r,o);if(Er(c,u),l==="out-in"&&s.type!==ut)return r.isLeaving=!0,u.afterLeave=()=>{r.isLeaving=!1,o.job.flags&8||o.update(),delete u.afterLeave,c=void 0},Ll(i);l==="in-out"&&s.type!==ut?u.delayLeave=(h,f,p)=>{const g=su(r,c);g[String(c.key)]=c,h[bo]=()=>{f(),h[bo]=void 0,delete d.delayedLeave,c=void 0},d.delayedLeave=()=>{p(),delete d.delayedLeave,c=void 0}}:c=void 0}else c&&(c=void 0);return i}}};function au(e){let t=e[0];if(e.length>1){for(const o of e)if(o.type!==ut){t=o;break}}return t}const cm=sm;function su(e,t){const{leavingVNodes:o}=e;let r=o.get(t.type);return r||(r=Object.create(null),o.set(t.type,r)),r}function Yn(e,t,o,r,n){const{appear:i,mode:a,persisted:l=!1,onBeforeEnter:s,onEnter:d,onAfterEnter:c,onEnterCancelled:u,onBeforeLeave:h,onLeave:f,onAfterLeave:p,onLeaveCancelled:g,onBeforeAppear:x,onAppear:v,onAfterAppear:y,onAppearCancelled:I}=t,$=String(e.key),E=su(o,e),P=(_,k)=>{_&&co(_,r,9,k)},b=(_,k)=>{const L=k[1];P(_,k),we(_)?_.every(R=>R.length<=1)&&L():_.length<=1&&L()},A={mode:a,persisted:l,beforeEnter(_){let k=s;if(!o.isMounted)if(i)k=x||s;else return;_[bo]&&_[bo](!0);const L=E[$];L&&xr(e,L)&&L.el[bo]&&L.el[bo](),P(k,[_])},enter(_){if(E[$]===e)return;let k=d,L=c,R=u;if(!o.isMounted)if(i)k=v||d,L=y||c,R=I||u;else return;let ie=!1;_[$n]=U=>{ie||(ie=!0,U?P(R,[_]):P(L,[_]),A.delayedLeave&&A.delayedLeave(),_[$n]=void 0)};const ce=_[$n].bind(null,!1);k?b(k,[_,ce]):ce()},leave(_,k){const L=String(e.key);if(_[$n]&&_[$n](!0),o.isUnmounting)return k();P(h,[_]);let R=!1;_[bo]=ce=>{R||(R=!0,k(),ce?P(g,[_]):P(p,[_]),_[bo]=void 0,E[L]===e&&delete E[L])};const ie=_[bo].bind(null,!1);E[L]=e,f?b(f,[_,ie]):ie()},clone(_){const k=Yn(_,t,o,r,n);return n&&n(k),k}};return A}function Ll(e){if(gl(e))return e=$o(e),e.children=null,e}function Bs(e){if(!gl(e))return tu(e.type)&&e.children?au(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&&Te(o.default))return o.default()}}function Er(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Er(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 ts(e,t=!1,o){let r=[],n=0;for(let i=0;i<e.length;i++){let a=e[i];const l=o==null?a.key:String(o)+String(a.key!=null?a.key:i);a.type===Me?(a.patchFlag&128&&n++,r=r.concat(ts(a.children,t,l))):(t||a.type!==ut)&&r.push(l!=null?$o(a,{key:l}):a)}if(n>1)for(let i=0;i<r.length;i++)r[i].patchFlag=-2;return r}function ge(e,t){return Te(e)?ft({name:e.name},t,{setup:e}):e}function cu(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function As(e,t){let o;return!!((o=Object.getOwnPropertyDescriptor(e,t))&&!o.configurable)}const Ni=new WeakMap;function On(e,t,o,r,n=!1){if(we(e)){e.forEach((g,x)=>On(g,t&&(we(t)?t[x]:t),o,r,n));return}if(en(r)&&!n){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&On(e,t,o,r.component.subTree);return}const i=r.shapeFlag&4?xl(r.component):r.el,a=n?null:i,{i:l,r:s}=e,d=t&&t.r,c=l.refs===Ye?l.refs={}:l.refs,u=l.setupState,h=ke(u),f=u===Ye?wd:g=>As(c,g)?!1:Ve(h,g),p=(g,x)=>!(x&&As(c,x));if(d!=null&&d!==s){if(Hs(t),nt(d))c[d]=null,f(d)&&(u[d]=null);else if(gt(d)){const g=t;p(d,g.k)&&(d.value=null),g.k&&(c[g.k]=null)}}if(Te(s))di(s,l,12,[a,c]);else{const g=nt(s),x=gt(s);if(g||x){const v=()=>{if(e.f){const y=g?f(s)?u[s]:c[s]:p()||!e.k?s.value:c[e.k];if(n)we(y)&&Va(y,i);else if(we(y))y.includes(i)||y.push(i);else if(g)c[s]=[i],f(s)&&(u[s]=c[s]);else{const I=[i];p(s,e.k)&&(s.value=I),e.k&&(c[e.k]=I)}}else g?(c[s]=a,f(s)&&(u[s]=a)):x&&(p(s,e.k)&&(s.value=a),e.k&&(c[e.k]=a))};if(a){const y=()=>{v(),Ni.delete(e)};y.id=-1,Ni.set(e,y),Rt(y,o)}else Hs(e),v()}}}function Hs(e){const t=Ni.get(e);t&&(t.flags|=8,Ni.delete(e))}dl().requestIdleCallback;dl().cancelIdleCallback;const en=e=>!!e.type.__asyncLoader,gl=e=>e.type.__isKeepAlive;function du(e,t){fu(e,"a",t)}function uu(e,t){fu(e,"da",t)}function fu(e,t,o=Lt){const r=e.__wdc||(e.__wdc=()=>{let n=o;for(;n;){if(n.isDeactivated)return;n=n.parent}return e()});if(ml(t,r,o),o){let n=o.parent;for(;n&&n.parent;)gl(n.parent.vnode)&&dm(r,t,o,n),n=n.parent}}function dm(e,t,o,r){const n=ml(t,e,r,!0);pu(()=>{Va(r[t],n)},o)}function ml(e,t,o=Lt,r=!1){if(o){const n=o[e]||(o[e]=[]),i=t.__weh||(t.__weh=(...a)=>{Lo();const l=pi(o),s=co(t,o,e,a);return l(),Do(),s});return r?n.unshift(i):n.push(i),i}}const Vo=e=>(t,o=Lt)=>{(!Zn||e==="sp")&&ml(e,(...r)=>t(...r),o)},vl=Vo("bm"),Et=Vo("m"),um=Vo("bu"),hu=Vo("u"),Yt=Vo("bum"),pu=Vo("um"),fm=Vo("sp"),hm=Vo("rtg"),pm=Vo("rtc");function gm(e,t=Lt){ml("ec",e,t)}const mm=Symbol.for("v-ndc");function $r(e,t,o,r){let n;const i=o,a=we(e);if(a||nt(e)){const l=a&&Sr(e);let s=!1,d=!1;l&&(s=!qt(e),d=Wo(e),e=ul(e)),n=new Array(e.length);for(let c=0,u=e.length;c<u;c++)n[c]=t(s?d?sn(so(e[c])):so(e[c]):e[c],c,void 0,i)}else if(typeof e=="number"){n=new Array(e);for(let l=0;l<e;l++)n[l]=t(l+1,l,void 0,i)}else if(De(e))if(e[Symbol.iterator])n=Array.from(e,(l,s)=>t(l,s,void 0,i));else{const l=Object.keys(e);n=new Array(l.length);for(let s=0,d=l.length;s<d;s++){const c=l[s];n[s]=t(e[c],c,s,i)}}else n=[];return n}function gu(e,t){for(let o=0;o<t.length;o++){const r=t[o];if(we(r))for(let n=0;n<r.length;n++)e[r[n].name]=r[n].fn;else r&&(e[r.name]=r.key?(...n)=>{const i=r.fn(...n);return i&&(i.key=r.key),i}:r.fn)}return e}function vm(e,t,o={},r,n){if(Ht.ce||Ht.parent&&en(Ht.parent)&&Ht.parent.ce){const d=Object.keys(o).length>0;return Se(),Fe(Me,null,[se("slot",o,r)],d?-2:64)}let i=e[t];i&&i._c&&(i._d=!1),Se();const a=i&&mu(i(o)),l=o.key||a&&a.key,s=Fe(Me,{key:(l&&!ao(l)?l:`_${t}`)+(!a&&r?"_fb":"")},a||[],a&&e._===1?64:-2);return s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),i&&i._c&&(i._d=!0),s}function mu(e){return e.some(t=>cn(t)?!(t.type===ut||t.type===Me&&!mu(t.children)):!0)?e:null}const va=e=>e?Hu(e)?xl(e):va(e.parent):null,Ln=ft(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=>va(e.parent),$root:e=>va(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>bu(e),$forceUpdate:e=>e.f||(e.f=()=>{Qa(e.update)}),$nextTick:e=>e.n||(e.n=lo.bind(e.proxy)),$watch:e=>lm.bind(e)}),Dl=(e,t)=>e!==Ye&&!e.__isScriptSetup&&Ve(e,t),bm={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:o,setupState:r,data:n,props:i,accessCache:a,type:l,appContext:s}=e;if(t[0]!=="$"){const h=a[t];if(h!==void 0)switch(h){case 1:return r[t];case 2:return n[t];case 4:return o[t];case 3:return i[t]}else{if(Dl(r,t))return a[t]=1,r[t];if(n!==Ye&&Ve(n,t))return a[t]=2,n[t];if(Ve(i,t))return a[t]=3,i[t];if(o!==Ye&&Ve(o,t))return a[t]=4,o[t];ba&&(a[t]=0)}}const d=Ln[t];let c,u;if(d)return t==="$attrs"&&Mt(e.attrs,"get",""),d(e);if((c=l.__cssModules)&&(c=c[t]))return c;if(o!==Ye&&Ve(o,t))return a[t]=4,o[t];if(u=s.config.globalProperties,Ve(u,t))return u[t]},set({_:e},t,o){const{data:r,setupState:n,ctx:i}=e;return Dl(n,t)?(n[t]=o,!0):r!==Ye&&Ve(r,t)?(r[t]=o,!0):Ve(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(i[t]=o,!0)},has({_:{data:e,setupState:t,accessCache:o,ctx:r,appContext:n,props:i,type:a}},l){let s;return!!(o[l]||e!==Ye&&l[0]!=="$"&&Ve(e,l)||Dl(t,l)||Ve(i,l)||Ve(r,l)||Ve(Ln,l)||Ve(n.config.globalProperties,l)||(s=a.__cssModules)&&s[l])},defineProperty(e,t,o){return o.get!=null?e._.accessCache[t]=0:Ve(o,"value")&&this.set(e,t,o.value,null),Reflect.defineProperty(e,t,o)}};function ks(e){return we(e)?e.reduce((t,o)=>(t[o]=null,t),{}):e}let ba=!0;function xm(e){const t=bu(e),o=e.proxy,r=e.ctx;ba=!1,t.beforeCreate&&Fs(t.beforeCreate,e,"bc");const{data:n,computed:i,methods:a,watch:l,provide:s,inject:d,created:c,beforeMount:u,mounted:h,beforeUpdate:f,updated:p,activated:g,deactivated:x,beforeDestroy:v,beforeUnmount:y,destroyed:I,unmounted:$,render:E,renderTracked:P,renderTriggered:b,errorCaptured:A,serverPrefetch:_,expose:k,inheritAttrs:L,components:R,directives:ie,filters:ce}=t;if(d&&Cm(d,r,null),a)for(const Q in a){const H=a[Q];Te(H)&&(r[Q]=H.bind(o))}if(n){const Q=n.call(o,o);De(Q)&&(e.data=fl(Q))}if(ba=!0,i)for(const Q in i){const H=i[Q],ne=Te(H)?H.bind(o,o):Te(H.get)?H.get.bind(o,o):yo,ue=!Te(H)&&Te(H.set)?H.set.bind(o):yo,me=N({get:ne,set:ue});Object.defineProperty(r,Q,{enumerable:!0,configurable:!0,get:()=>me.value,set:xe=>me.value=xe})}if(l)for(const Q in l)vu(l[Q],r,o,Q);if(s){const Q=Te(s)?s.call(o):s;Reflect.ownKeys(Q).forEach(H=>{$t(H,Q[H])})}c&&Fs(c,e,"c");function oe(Q,H){we(H)?H.forEach(ne=>Q(ne.bind(o))):H&&Q(H.bind(o))}if(oe(vl,u),oe(Et,h),oe(um,f),oe(hu,p),oe(du,g),oe(uu,x),oe(gm,A),oe(pm,P),oe(hm,b),oe(Yt,y),oe(pu,$),oe(fm,_),we(k))if(k.length){const Q=e.exposed||(e.exposed={});k.forEach(H=>{Object.defineProperty(Q,H,{get:()=>o[H],set:ne=>o[H]=ne,enumerable:!0})})}else e.exposed||(e.exposed={});E&&e.render===yo&&(e.render=E),L!=null&&(e.inheritAttrs=L),R&&(e.components=R),ie&&(e.directives=ie),_&&cu(e)}function Cm(e,t,o=yo){we(e)&&(e=xa(e));for(const r in e){const n=e[r];let i;De(n)?"default"in n?i=Le(n.from||r,n.default,!0):i=Le(n.from||r):i=Le(n),gt(i)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[r]=i}}function Fs(e,t,o){co(we(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,o)}function vu(e,t,o,r){let n=r.includes(".")?Qd(o,r):()=>o[r];if(nt(e)){const i=t[e];Te(i)&&Xe(n,i)}else if(Te(e))Xe(n,e.bind(o));else if(De(e))if(we(e))e.forEach(i=>vu(i,t,o,r));else{const i=Te(e.handler)?e.handler.bind(o):t[e.handler];Te(i)&&Xe(n,i,e)}}function bu(e){const t=e.type,{mixins:o,extends:r}=t,{mixins:n,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,l=i.get(t);let s;return l?s=l:!n.length&&!o&&!r?s=t:(s={},n.length&&n.forEach(d=>Ui(s,d,a,!0)),Ui(s,t,a)),De(t)&&i.set(t,s),s}function Ui(e,t,o,r=!1){const{mixins:n,extends:i}=t;i&&Ui(e,i,o,!0),n&&n.forEach(a=>Ui(e,a,o,!0));for(const a in t)if(!(r&&a==="expose")){const l=ym[a]||o&&o[a];e[a]=l?l(e[a],t[a]):t[a]}return e}const ym={data:Os,props:Ls,emits:Ls,methods:Mn,computed:Mn,beforeCreate:Ft,created:Ft,beforeMount:Ft,mounted:Ft,beforeUpdate:Ft,updated:Ft,beforeDestroy:Ft,beforeUnmount:Ft,destroyed:Ft,unmounted:Ft,activated:Ft,deactivated:Ft,errorCaptured:Ft,serverPrefetch:Ft,components:Mn,directives:Mn,watch:Sm,provide:Os,inject:wm};function Os(e,t){return t?e?function(){return ft(Te(e)?e.call(this,this):e,Te(t)?t.call(this,this):t)}:t:e}function wm(e,t){return Mn(xa(e),xa(t))}function xa(e){if(we(e)){const t={};for(let o=0;o<e.length;o++)t[e[o]]=e[o];return t}return e}function Ft(e,t){return e?[...new Set([].concat(e,t))]:t}function Mn(e,t){return e?ft(Object.create(null),e,t):t}function Ls(e,t){return e?we(e)&&we(t)?[...new Set([...e,...t])]:ft(Object.create(null),ks(e),ks(t??{})):t}function Sm(e,t){if(!e)return t;if(!t)return e;const o=ft(Object.create(null),e);for(const r in t)o[r]=Ft(e[r],t[r]);return o}function xu(){return{app:null,config:{isNativeTag:wd,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 $m=0;function Pm(e,t){return function(r,n=null){Te(r)||(r=ft({},r)),n!=null&&!De(n)&&(n=null);const i=xu(),a=new WeakSet,l=[];let s=!1;const d=i.app={_uid:$m++,_component:r,_props:n,_container:null,_context:i,_instance:null,version:tv,get config(){return i.config},set config(c){},use(c,...u){return a.has(c)||(c&&Te(c.install)?(a.add(c),c.install(d,...u)):Te(c)&&(a.add(c),c(d,...u))),d},mixin(c){return i.mixins.includes(c)||i.mixins.push(c),d},component(c,u){return u?(i.components[c]=u,d):i.components[c]},directive(c,u){return u?(i.directives[c]=u,d):i.directives[c]},mount(c,u,h){if(!s){const f=d._ceVNode||se(r,n);return f.appContext=i,h===!0?h="svg":h===!1&&(h=void 0),e(f,c,h),s=!0,d._container=c,c.__vue_app__=d,xl(f.component)}},onUnmount(c){l.push(c)},unmount(){s&&(co(l,d._instance,16),e(null,d._container),delete d._container.__vue_app__)},provide(c,u){return i.provides[c]=u,d},runWithContext(c){const u=tn;tn=d;try{return c()}finally{tn=u}}};return d}}let tn=null;const Tm=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${ar(t)}Modifiers`]||e[`${Rr(t)}Modifiers`];function _m(e,t,...o){if(e.isUnmounted)return;const r=e.vnode.props||Ye;let n=o;const i=t.startsWith("update:"),a=i&&Tm(r,t.slice(7));a&&(a.trim&&(n=o.map(c=>nt(c)?c.trim():c)),a.number&&(n=o.map(pg)));let l,s=r[l=Bl(t)]||r[l=Bl(ar(t))];!s&&i&&(s=r[l=Bl(Rr(t))]),s&&co(s,e,6,n);const d=r[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,co(d,e,6,n)}}const zm=new WeakMap;function Cu(e,t,o=!1){const r=o?zm:t.emitsCache,n=r.get(e);if(n!==void 0)return n;const i=e.emits;let a={},l=!1;if(!Te(e)){const s=d=>{const c=Cu(d,t,!0);c&&(l=!0,ft(a,c))};!o&&t.mixins.length&&t.mixins.forEach(s),e.extends&&s(e.extends),e.mixins&&e.mixins.forEach(s)}return!i&&!l?(De(e)&&r.set(e,null),null):(we(i)?i.forEach(s=>a[s]=null):ft(a,i),De(e)&&r.set(e,a),a)}function bl(e,t){return!e||!al(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ve(e,t[0].toLowerCase()+t.slice(1))||Ve(e,Rr(t))||Ve(e,t))}function Ds(e){const{type:t,vnode:o,proxy:r,withProxy:n,propsOptions:[i],slots:a,attrs:l,emit:s,render:d,renderCache:c,props:u,data:h,setupState:f,ctx:p,inheritAttrs:g}=e,x=Vi(e);let v,y;try{if(o.shapeFlag&4){const $=n||r,E=$;v=xo(d.call(E,$,c,u,f,h,p)),y=l}else{const $=t;v=xo($.length>1?$(u,{attrs:l,slots:a,emit:s}):$(u,null)),y=t.props?l:Em(l)}}catch($){Dn.length=0,pl($,e,1),v=se(ut)}let I=v;if(y&&g!==!1){const $=Object.keys(y),{shapeFlag:E}=I;$.length&&E&7&&(i&&$.some(ja)&&(y=Im(y,i)),I=$o(I,y,!1,!0))}return o.dirs&&(I=$o(I,null,!1,!0),I.dirs=I.dirs?I.dirs.concat(o.dirs):o.dirs),o.transition&&Er(I,o.transition),v=I,Vi(x),v}const Em=e=>{let t;for(const o in e)(o==="class"||o==="style"||al(o))&&((t||(t={}))[o]=e[o]);return t},Im=(e,t)=>{const o={};for(const r in e)(!ja(r)||!(r.slice(9)in t))&&(o[r]=e[r]);return o};function Rm(e,t,o){const{props:r,children:n,component:i}=e,{props:a,children:l,patchFlag:s}=t,d=i.emitsOptions;if(t.dirs||t.transition)return!0;if(o&&s>=0){if(s&1024)return!0;if(s&16)return r?Ws(r,a,d):!!a;if(s&8){const c=t.dynamicProps;for(let u=0;u<c.length;u++){const h=c[u];if(yu(a,r,h)&&!bl(d,h))return!0}}}else return(n||l)&&(!l||!l.$stable)?!0:r===a?!1:r?a?Ws(r,a,d):!0:!!a;return!1}function Ws(e,t,o){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let n=0;n<r.length;n++){const i=r[n];if(yu(t,e,i)&&!bl(o,i))return!0}return!1}function yu(e,t,o){const r=e[o],n=t[o];return o==="style"&&De(r)&&De(n)?!Ga(r,n):r!==n}function Mm({vnode:e,parent:t},o){for(;t;){const r=t.subTree;if(r.suspense&&r.suspense.activeBranch===e&&(r.el=e.el),r===e)(e=t.vnode).el=o,t=t.parent;else break}}const wu={},Su=()=>Object.create(wu),$u=e=>Object.getPrototypeOf(e)===wu;function Bm(e,t,o,r=!1){const n={},i=Su();e.propsDefaults=Object.create(null),Pu(e,t,n,i);for(const a in e.propsOptions[0])a in n||(n[a]=void 0);o?e.props=r?n:Ng(n):e.type.props?e.props=n:e.props=i,e.attrs=i}function Am(e,t,o,r){const{props:n,attrs:i,vnode:{patchFlag:a}}=e,l=ke(n),[s]=e.propsOptions;let d=!1;if((r||a>0)&&!(a&16)){if(a&8){const c=e.vnode.dynamicProps;for(let u=0;u<c.length;u++){let h=c[u];if(bl(e.emitsOptions,h))continue;const f=t[h];if(s)if(Ve(i,h))f!==i[h]&&(i[h]=f,d=!0);else{const p=ar(h);n[p]=Ca(s,l,p,f,e,!1)}else f!==i[h]&&(i[h]=f,d=!0)}}}else{Pu(e,t,n,i)&&(d=!0);let c;for(const u in l)(!t||!Ve(t,u)&&((c=Rr(u))===u||!Ve(t,c)))&&(s?o&&(o[u]!==void 0||o[c]!==void 0)&&(n[u]=Ca(s,l,u,void 0,e,!0)):delete n[u]);if(i!==l)for(const u in i)(!t||!Ve(t,u))&&(delete i[u],d=!0)}d&&Fo(e.attrs,"set","")}function Pu(e,t,o,r){const[n,i]=e.propsOptions;let a=!1,l;if(t)for(let s in t){if(An(s))continue;const d=t[s];let c;n&&Ve(n,c=ar(s))?!i||!i.includes(c)?o[c]=d:(l||(l={}))[c]=d:bl(e.emitsOptions,s)||(!(s in r)||d!==r[s])&&(r[s]=d,a=!0)}if(i){const s=ke(o),d=l||Ye;for(let c=0;c<i.length;c++){const u=i[c];o[u]=Ca(n,s,u,d[u],e,!Ve(d,u))}}return a}function Ca(e,t,o,r,n,i){const a=e[o];if(a!=null){const l=Ve(a,"default");if(l&&r===void 0){const s=a.default;if(a.type!==Function&&!a.skipFactory&&Te(s)){const{propsDefaults:d}=n;if(o in d)r=d[o];else{const c=pi(n);r=d[o]=s.call(null,t),c()}}else r=s;n.ce&&n.ce._setProp(o,r)}a[0]&&(i&&!l?r=!1:a[1]&&(r===""||r===Rr(o))&&(r=!0))}return r}const Hm=new WeakMap;function Tu(e,t,o=!1){const r=o?Hm:t.propsCache,n=r.get(e);if(n)return n;const i=e.props,a={},l=[];let s=!1;if(!Te(e)){const c=u=>{s=!0;const[h,f]=Tu(u,t,!0);ft(a,h),f&&l.push(...f)};!o&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!i&&!s)return De(e)&&r.set(e,Zr),Zr;if(we(i))for(let c=0;c<i.length;c++){const u=ar(i[c]);js(u)&&(a[u]=Ye)}else if(i)for(const c in i){const u=ar(c);if(js(u)){const h=i[c],f=a[u]=we(h)||Te(h)?{type:h}:ft({},h),p=f.type;let g=!1,x=!0;if(we(p))for(let v=0;v<p.length;++v){const y=p[v],I=Te(y)&&y.name;if(I==="Boolean"){g=!0;break}else I==="String"&&(x=!1)}else g=Te(p)&&p.name==="Boolean";f[0]=g,f[1]=x,(g||Ve(f,"default"))&&l.push(u)}}const d=[a,l];return De(e)&&r.set(e,d),d}function js(e){return e[0]!=="$"&&!An(e)}const os=e=>e==="_"||e==="_ctx"||e==="$stable",rs=e=>we(e)?e.map(xo):[xo(e)],km=(e,t,o)=>{if(t._n)return t;const r=J((...n)=>rs(t(...n)),o);return r._c=!1,r},_u=(e,t,o)=>{const r=e._ctx;for(const n in e){if(os(n))continue;const i=e[n];if(Te(i))t[n]=km(n,i,r);else if(i!=null){const a=rs(i);t[n]=()=>a}}},zu=(e,t)=>{const o=rs(t);e.slots.default=()=>o},Eu=(e,t,o)=>{for(const r in t)(o||!os(r))&&(e[r]=t[r])},Fm=(e,t,o)=>{const r=e.slots=Su();if(e.vnode.shapeFlag&32){const n=t._;n?(Eu(r,t,o),o&&zd(r,"_",n,!0)):_u(t,r)}else t&&zu(e,t)},Om=(e,t,o)=>{const{vnode:r,slots:n}=e;let i=!0,a=Ye;if(r.shapeFlag&32){const l=t._;l?o&&l===1?i=!1:Eu(n,t,o):(i=!t.$stable,_u(t,n)),a=t}else t&&(zu(e,t),a={default:1});if(i)for(const l in n)!os(l)&&a[l]==null&&delete n[l]},Rt=Vm;function Lm(e){return Dm(e)}function Dm(e,t){const o=dl();o.__VUE__=!0;const{insert:r,remove:n,patchProp:i,createElement:a,createText:l,createComment:s,setText:d,setElementText:c,parentNode:u,nextSibling:h,setScopeId:f=yo,insertStaticContent:p}=e,g=(C,w,F,Y=null,G=null,q=null,re=void 0,ee=null,T=!!w.dynamicChildren)=>{if(C===w)return;C&&!xr(C,w)&&(Y=it(C),xe(C,G,q,!0),C=null),w.patchFlag===-2&&(T=!1,w.dynamicChildren=null);const{type:S,ref:j,shapeFlag:V}=w;switch(S){case fi:x(C,w,F,Y);break;case ut:v(C,w,F,Y);break;case jl:C==null&&y(w,F,Y,re);break;case Me:R(C,w,F,Y,G,q,re,ee,T);break;default:V&1?E(C,w,F,Y,G,q,re,ee,T):V&6?ie(C,w,F,Y,G,q,re,ee,T):(V&64||V&128)&&S.process(C,w,F,Y,G,q,re,ee,T,Qe)}j!=null&&G?On(j,C&&C.ref,q,w||C,!w):j==null&&C&&C.ref!=null&&On(C.ref,null,q,C,!0)},x=(C,w,F,Y)=>{if(C==null)r(w.el=l(w.children),F,Y);else{const G=w.el=C.el;w.children!==C.children&&d(G,w.children)}},v=(C,w,F,Y)=>{C==null?r(w.el=s(w.children||""),F,Y):w.el=C.el},y=(C,w,F,Y)=>{[C.el,C.anchor]=p(C.children,w,F,Y,C.el,C.anchor)},I=({el:C,anchor:w},F,Y)=>{let G;for(;C&&C!==w;)G=h(C),r(C,F,Y),C=G;r(w,F,Y)},$=({el:C,anchor:w})=>{let F;for(;C&&C!==w;)F=h(C),n(C),C=F;n(w)},E=(C,w,F,Y,G,q,re,ee,T)=>{if(w.type==="svg"?re="svg":w.type==="math"&&(re="mathml"),C==null)P(w,F,Y,G,q,re,ee,T);else{const S=C.el&&C.el._isVueCE?C.el:null;try{S&&S._beginPatch(),_(C,w,G,q,re,ee,T)}finally{S&&S._endPatch()}}},P=(C,w,F,Y,G,q,re,ee)=>{let T,S;const{props:j,shapeFlag:V,transition:le,dirs:fe}=C;if(T=C.el=a(C.type,q,j&&j.is,j),V&8?c(T,C.children):V&16&&A(C.children,T,null,Y,G,Wl(C,q),re,ee),fe&&pr(C,null,Y,"created"),b(T,C,C.scopeId,re,Y),j){for(const Re in j)Re!=="value"&&!An(Re)&&i(T,Re,null,j[Re],q,Y);"value"in j&&i(T,"value",null,j.value,q),(S=j.onVnodeBeforeMount)&&ho(S,Y,C)}fe&&pr(C,null,Y,"beforeMount");const ye=Wm(G,le);ye&&le.beforeEnter(T),r(T,w,F),((S=j&&j.onVnodeMounted)||ye||fe)&&Rt(()=>{S&&ho(S,Y,C),ye&&le.enter(T),fe&&pr(C,null,Y,"mounted")},G)},b=(C,w,F,Y,G)=>{if(F&&f(C,F),Y)for(let q=0;q<Y.length;q++)f(C,Y[q]);if(G){let q=G.subTree;if(w===q||Mu(q.type)&&(q.ssContent===w||q.ssFallback===w)){const re=G.vnode;b(C,re,re.scopeId,re.slotScopeIds,G.parent)}}},A=(C,w,F,Y,G,q,re,ee,T=0)=>{for(let S=T;S<C.length;S++){const j=C[S]=ee?ko(C[S]):xo(C[S]);g(null,j,w,F,Y,G,q,re,ee)}},_=(C,w,F,Y,G,q,re)=>{const ee=w.el=C.el;let{patchFlag:T,dynamicChildren:S,dirs:j}=w;T|=C.patchFlag&16;const V=C.props||Ye,le=w.props||Ye;let fe;if(F&&gr(F,!1),(fe=le.onVnodeBeforeUpdate)&&ho(fe,F,w,C),j&&pr(w,C,F,"beforeUpdate"),F&&gr(F,!0),(V.innerHTML&&le.innerHTML==null||V.textContent&&le.textContent==null)&&c(ee,""),S?k(C.dynamicChildren,S,ee,F,Y,Wl(w,G),q):re||H(C,w,ee,null,F,Y,Wl(w,G),q,!1),T>0){if(T&16)L(ee,V,le,F,G);else if(T&2&&V.class!==le.class&&i(ee,"class",null,le.class,G),T&4&&i(ee,"style",V.style,le.style,G),T&8){const ye=w.dynamicProps;for(let Re=0;Re<ye.length;Re++){const Ie=ye[Re],lt=V[Ie],ct=le[Ie];(ct!==lt||Ie==="value")&&i(ee,Ie,lt,ct,G,F)}}T&1&&C.children!==w.children&&c(ee,w.children)}else!re&&S==null&&L(ee,V,le,F,G);((fe=le.onVnodeUpdated)||j)&&Rt(()=>{fe&&ho(fe,F,w,C),j&&pr(w,C,F,"updated")},Y)},k=(C,w,F,Y,G,q,re)=>{for(let ee=0;ee<w.length;ee++){const T=C[ee],S=w[ee],j=T.el&&(T.type===Me||!xr(T,S)||T.shapeFlag&198)?u(T.el):F;g(T,S,j,null,Y,G,q,re,!0)}},L=(C,w,F,Y,G)=>{if(w!==F){if(w!==Ye)for(const q in w)!An(q)&&!(q in F)&&i(C,q,w[q],null,G,Y);for(const q in F){if(An(q))continue;const re=F[q],ee=w[q];re!==ee&&q!=="value"&&i(C,q,ee,re,G,Y)}"value"in F&&i(C,"value",w.value,F.value,G)}},R=(C,w,F,Y,G,q,re,ee,T)=>{const S=w.el=C?C.el:l(""),j=w.anchor=C?C.anchor:l("");let{patchFlag:V,dynamicChildren:le,slotScopeIds:fe}=w;fe&&(ee=ee?ee.concat(fe):fe),C==null?(r(S,F,Y),r(j,F,Y),A(w.children||[],F,j,G,q,re,ee,T)):V>0&&V&64&&le&&C.dynamicChildren&&C.dynamicChildren.length===le.length?(k(C.dynamicChildren,le,F,G,q,re,ee),(w.key!=null||G&&w===G.subTree)&&ns(C,w,!0)):H(C,w,F,j,G,q,re,ee,T)},ie=(C,w,F,Y,G,q,re,ee,T)=>{w.slotScopeIds=ee,C==null?w.shapeFlag&512?G.ctx.activate(w,F,Y,re,T):ce(w,F,Y,G,q,re,T):U(C,w,T)},ce=(C,w,F,Y,G,q,re)=>{const ee=C.component=Ym(C,Y,G);if(gl(C)&&(ee.ctx.renderer=Qe),Xm(ee,!1,re),ee.asyncDep){if(G&&G.registerDep(ee,oe,re),!C.el){const T=ee.subTree=se(ut);v(null,T,w,F),C.placeholder=T.el}}else oe(ee,C,w,F,G,q,re)},U=(C,w,F)=>{const Y=w.component=C.component;if(Rm(C,w,F))if(Y.asyncDep&&!Y.asyncResolved){Q(Y,w,F);return}else Y.next=w,Y.update();else w.el=C.el,Y.vnode=w},oe=(C,w,F,Y,G,q,re)=>{const ee=()=>{if(C.isMounted){let{next:V,bu:le,u:fe,parent:ye,vnode:Re}=C;{const bt=Iu(C);if(bt){V&&(V.el=Re.el,Q(C,V,re)),bt.asyncDep.then(()=>{Rt(()=>{C.isUnmounted||S()},G)});return}}let Ie=V,lt;gr(C,!1),V?(V.el=Re.el,Q(C,V,re)):V=Re,le&&Al(le),(lt=V.props&&V.props.onVnodeBeforeUpdate)&&ho(lt,ye,V,Re),gr(C,!0);const ct=Ds(C),vt=C.subTree;C.subTree=ct,g(vt,ct,u(vt.el),it(vt),C,G,q),V.el=ct.el,Ie===null&&Mm(C,ct.el),fe&&Rt(fe,G),(lt=V.props&&V.props.onVnodeUpdated)&&Rt(()=>ho(lt,ye,V,Re),G)}else{let V;const{el:le,props:fe}=w,{bm:ye,m:Re,parent:Ie,root:lt,type:ct}=C,vt=en(w);gr(C,!1),ye&&Al(ye),!vt&&(V=fe&&fe.onVnodeBeforeMount)&&ho(V,Ie,w),gr(C,!0);{lt.ce&<.ce._hasShadowRoot()&<.ce._injectChildStyle(ct);const bt=C.subTree=Ds(C);g(null,bt,F,Y,C,G,q),w.el=bt.el}if(Re&&Rt(Re,G),!vt&&(V=fe&&fe.onVnodeMounted)){const bt=w;Rt(()=>ho(V,Ie,bt),G)}(w.shapeFlag&256||Ie&&en(Ie.vnode)&&Ie.vnode.shapeFlag&256)&&C.a&&Rt(C.a,G),C.isMounted=!0,w=F=Y=null}};C.scope.on();const T=C.effect=new Md(ee);C.scope.off();const S=C.update=T.run.bind(T),j=C.job=T.runIfDirty.bind(T);j.i=C,j.id=C.uid,T.scheduler=()=>Qa(j),gr(C,!0),S()},Q=(C,w,F)=>{w.component=C;const Y=C.vnode.props;C.vnode=w,C.next=null,Am(C,w.props,Y,F),Om(C,w.children,F),Lo(),Es(C),Do()},H=(C,w,F,Y,G,q,re,ee,T=!1)=>{const S=C&&C.children,j=C?C.shapeFlag:0,V=w.children,{patchFlag:le,shapeFlag:fe}=w;if(le>0){if(le&128){ue(S,V,F,Y,G,q,re,ee,T);return}else if(le&256){ne(S,V,F,Y,G,q,re,ee,T);return}}fe&8?(j&16&&$e(S,G,q),V!==S&&c(F,V)):j&16?fe&16?ue(S,V,F,Y,G,q,re,ee,T):$e(S,G,q,!0):(j&8&&c(F,""),fe&16&&A(V,F,Y,G,q,re,ee,T))},ne=(C,w,F,Y,G,q,re,ee,T)=>{C=C||Zr,w=w||Zr;const S=C.length,j=w.length,V=Math.min(S,j);let le;for(le=0;le<V;le++){const fe=w[le]=T?ko(w[le]):xo(w[le]);g(C[le],fe,F,null,G,q,re,ee,T)}S>j?$e(C,G,q,!0,!1,V):A(w,F,Y,G,q,re,ee,T,V)},ue=(C,w,F,Y,G,q,re,ee,T)=>{let S=0;const j=w.length;let V=C.length-1,le=j-1;for(;S<=V&&S<=le;){const fe=C[S],ye=w[S]=T?ko(w[S]):xo(w[S]);if(xr(fe,ye))g(fe,ye,F,null,G,q,re,ee,T);else break;S++}for(;S<=V&&S<=le;){const fe=C[V],ye=w[le]=T?ko(w[le]):xo(w[le]);if(xr(fe,ye))g(fe,ye,F,null,G,q,re,ee,T);else break;V--,le--}if(S>V){if(S<=le){const fe=le+1,ye=fe<j?w[fe].el:Y;for(;S<=le;)g(null,w[S]=T?ko(w[S]):xo(w[S]),F,ye,G,q,re,ee,T),S++}}else if(S>le)for(;S<=V;)xe(C[S],G,q,!0),S++;else{const fe=S,ye=S,Re=new Map;for(S=ye;S<=le;S++){const xt=w[S]=T?ko(w[S]):xo(w[S]);xt.key!=null&&Re.set(xt.key,S)}let Ie,lt=0;const ct=le-ye+1;let vt=!1,bt=0;const Zt=new Array(ct);for(S=0;S<ct;S++)Zt[S]=0;for(S=fe;S<=V;S++){const xt=C[S];if(lt>=ct){xe(xt,G,q,!0);continue}let X;if(xt.key!=null)X=Re.get(xt.key);else for(Ie=ye;Ie<=le;Ie++)if(Zt[Ie-ye]===0&&xr(xt,w[Ie])){X=Ie;break}X===void 0?xe(xt,G,q,!0):(Zt[X-ye]=S+1,X>=bt?bt=X:vt=!0,g(xt,w[X],F,null,G,q,re,ee,T),lt++)}const Vt=vt?jm(Zt):Zr;for(Ie=Vt.length-1,S=ct-1;S>=0;S--){const xt=ye+S,X=w[xt],he=w[xt+1],Ce=xt+1<j?he.el||Ru(he):Y;Zt[S]===0?g(null,X,F,Ce,G,q,re,ee,T):vt&&(Ie<0||S!==Vt[Ie]?me(X,F,Ce,2):Ie--)}}},me=(C,w,F,Y,G=null)=>{const{el:q,type:re,transition:ee,children:T,shapeFlag:S}=C;if(S&6){me(C.component.subTree,w,F,Y);return}if(S&128){C.suspense.move(w,F,Y);return}if(S&64){re.move(C,w,F,Qe);return}if(re===Me){r(q,w,F);for(let V=0;V<T.length;V++)me(T[V],w,F,Y);r(C.anchor,w,F);return}if(re===jl){I(C,w,F);return}if(Y!==2&&S&1&&ee)if(Y===0)ee.beforeEnter(q),r(q,w,F),Rt(()=>ee.enter(q),G);else{const{leave:V,delayLeave:le,afterLeave:fe}=ee,ye=()=>{C.ctx.isUnmounted?n(q):r(q,w,F)},Re=()=>{q._isLeaving&&q[bo](!0),V(q,()=>{ye(),fe&&fe()})};le?le(q,ye,Re):Re()}else r(q,w,F)},xe=(C,w,F,Y=!1,G=!1)=>{const{type:q,props:re,ref:ee,children:T,dynamicChildren:S,shapeFlag:j,patchFlag:V,dirs:le,cacheIndex:fe}=C;if(V===-2&&(G=!1),ee!=null&&(Lo(),On(ee,null,F,C,!0),Do()),fe!=null&&(w.renderCache[fe]=void 0),j&256){w.ctx.deactivate(C);return}const ye=j&1&&le,Re=!en(C);let Ie;if(Re&&(Ie=re&&re.onVnodeBeforeUnmount)&&ho(Ie,w,C),j&6)We(C.component,F,Y);else{if(j&128){C.suspense.unmount(F,Y);return}ye&&pr(C,null,w,"beforeUnmount"),j&64?C.type.remove(C,w,F,Qe,Y):S&&!S.hasOnce&&(q!==Me||V>0&&V&64)?$e(S,w,F,!1,!0):(q===Me&&V&384||!G&&j&16)&&$e(T,w,F),Y&&Ee(C)}(Re&&(Ie=re&&re.onVnodeUnmounted)||ye)&&Rt(()=>{Ie&&ho(Ie,w,C),ye&&pr(C,null,w,"unmounted")},F)},Ee=C=>{const{type:w,el:F,anchor:Y,transition:G}=C;if(w===Me){Ae(F,Y);return}if(w===jl){$(C);return}const q=()=>{n(F),G&&!G.persisted&&G.afterLeave&&G.afterLeave()};if(C.shapeFlag&1&&G&&!G.persisted){const{leave:re,delayLeave:ee}=G,T=()=>re(F,q);ee?ee(C.el,q,T):T()}else q()},Ae=(C,w)=>{let F;for(;C!==w;)F=h(C),n(C),C=F;n(w)},We=(C,w,F)=>{const{bum:Y,scope:G,job:q,subTree:re,um:ee,m:T,a:S}=C;Vs(T),Vs(S),Y&&Al(Y),G.stop(),q&&(q.flags|=8,xe(re,C,w,F)),ee&&Rt(ee,w),Rt(()=>{C.isUnmounted=!0},w)},$e=(C,w,F,Y=!1,G=!1,q=0)=>{for(let re=q;re<C.length;re++)xe(C[re],w,F,Y,G)},it=C=>{if(C.shapeFlag&6)return it(C.component.subTree);if(C.shapeFlag&128)return C.suspense.next();const w=h(C.anchor||C.el),F=w&&w[eu];return F?h(F):w};let Pt=!1;const ze=(C,w,F)=>{let Y;C==null?w._vnode&&(xe(w._vnode,null,null,!0),Y=w._vnode.component):g(w._vnode||null,C,w,null,null,null,F),w._vnode=C,Pt||(Pt=!0,Es(Y),Xd(),Pt=!1)},Qe={p:g,um:xe,m:me,r:Ee,mt:ce,mc:A,pc:H,pbc:k,n:it,o:e};return{render:ze,hydrate:void 0,createApp:Pm(ze)}}function Wl({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 gr({effect:e,job:t},o){o?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Wm(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function ns(e,t,o=!1){const r=e.children,n=t.children;if(we(r)&&we(n))for(let i=0;i<r.length;i++){const a=r[i];let l=n[i];l.shapeFlag&1&&!l.dynamicChildren&&((l.patchFlag<=0||l.patchFlag===32)&&(l=n[i]=ko(n[i]),l.el=a.el),!o&&l.patchFlag!==-2&&ns(a,l)),l.type===fi&&(l.patchFlag===-1&&(l=n[i]=ko(l)),l.el=a.el),l.type===ut&&!l.el&&(l.el=a.el)}}function jm(e){const t=e.slice(),o=[0];let r,n,i,a,l;const s=e.length;for(r=0;r<s;r++){const d=e[r];if(d!==0){if(n=o[o.length-1],e[n]<d){t[r]=n,o.push(r);continue}for(i=0,a=o.length-1;i<a;)l=i+a>>1,e[o[l]]<d?i=l+1:a=l;d<e[o[i]]&&(i>0&&(t[r]=o[i-1]),o[i]=r)}}for(i=o.length,a=o[i-1];i-- >0;)o[i]=a,a=t[a];return o}function Iu(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Iu(t)}function Vs(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}function Ru(e){if(e.placeholder)return e.placeholder;const t=e.component;return t?Ru(t.subTree):null}const Mu=e=>e.__isSuspense;function Vm(e,t){t&&t.pendingBranch?we(e)?t.effects.push(...e):t.effects.push(e):rm(e)}const Me=Symbol.for("v-fgt"),fi=Symbol.for("v-txt"),ut=Symbol.for("v-cmt"),jl=Symbol.for("v-stc"),Dn=[];let Nt=null;function Se(e=!1){Dn.push(Nt=e?null:[])}function Nm(){Dn.pop(),Nt=Dn[Dn.length-1]||null}let Xn=1;function Gi(e,t=!1){Xn+=e,e<0&&Nt&&t&&(Nt.hasOnce=!0)}function Bu(e){return e.dynamicChildren=Xn>0?Nt||Zr:null,Nm(),Xn>0&&Nt&&Nt.push(e),e}function _t(e,t,o,r,n,i){return Bu(ir(e,t,o,r,n,i,!0))}function Fe(e,t,o,r,n){return Bu(se(e,t,o,r,n,!0))}function cn(e){return e?e.__v_isVNode===!0:!1}function xr(e,t){return e.type===t.type&&e.key===t.key}const Au=({key:e})=>e??null,ki=({ref:e,ref_key:t,ref_for:o})=>(typeof e=="number"&&(e=""+e),e!=null?nt(e)||gt(e)||Te(e)?{i:Ht,r:e,k:t,f:!!o}:e:null);function ir(e,t=null,o=null,r=0,n=null,i=e===Me?0:1,a=!1,l=!1){const s={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Au(t),ref:t&&ki(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:r,dynamicProps:n,dynamicChildren:null,appContext:null,ctx:Ht};return l?(is(s,o),i&128&&e.normalize(s)):o&&(s.shapeFlag|=nt(o)?8:16),Xn>0&&!a&&Nt&&(s.patchFlag>0||i&6)&&s.patchFlag!==32&&Nt.push(s),s}const se=Um;function Um(e,t=null,o=null,r=0,n=null,i=!1){if((!e||e===mm)&&(e=ut),cn(e)){const l=$o(e,t,!0);return o&&is(l,o),Xn>0&&!i&&Nt&&(l.shapeFlag&6?Nt[Nt.indexOf(e)]=l:Nt.push(l)),l.patchFlag=-2,l}if(ev(e)&&(e=e.__vccOpts),t){t=Gm(t);let{class:l,style:s}=t;l&&!nt(l)&&(t.class=Ua(l)),De(s)&&(hl(s)&&!we(s)&&(s=ft({},s)),t.style=Na(s))}const a=nt(e)?1:Mu(e)?128:tu(e)?64:De(e)?4:Te(e)?2:0;return ir(e,t,o,r,n,a,i,!0)}function Gm(e){return e?hl(e)||$u(e)?ft({},e):e:null}function $o(e,t,o=!1,r=!1){const{props:n,ref:i,patchFlag:a,children:l,transition:s}=e,d=t?hi(n||{},t):n,c={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Au(d),ref:t&&t.ref?o&&i?we(i)?i.concat(ki(t)):[i,ki(t)]:ki(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Me?a===-1?16:a|16:a,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:s,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&$o(e.ssContent),ssFallback:e.ssFallback&&$o(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return s&&r&&Er(c,s.clone(c)),c}function Pe(e=" ",t=0){return se(fi,null,e,t)}function Co(e="",t=!1){return t?(Se(),Fe(ut,null,e)):se(ut,null,e)}function xo(e){return e==null||typeof e=="boolean"?se(ut):we(e)?se(Me,null,e.slice()):cn(e)?ko(e):se(fi,null,String(e))}function ko(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:$o(e)}function is(e,t){let o=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(we(t))o=16;else if(typeof t=="object")if(r&65){const n=t.default;n&&(n._c&&(n._d=!1),is(e,n()),n._c&&(n._d=!0));return}else{o=32;const n=t._;!n&&!$u(t)?t._ctx=Ht:n===3&&Ht&&(Ht.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Te(t)?(t={default:t,_ctx:Ht},o=32):(t=String(t),r&64?(o=16,t=[Pe(t)]):o=8);e.children=t,e.shapeFlag|=o}function hi(...e){const t={};for(let o=0;o<e.length;o++){const r=e[o];for(const n in r)if(n==="class")t.class!==r.class&&(t.class=Ua([t.class,r.class]));else if(n==="style")t.style=Na([t.style,r.style]);else if(al(n)){const i=t[n],a=r[n];a&&i!==a&&!(we(i)&&i.includes(a))&&(t[n]=i?[].concat(i,a):a)}else n!==""&&(t[n]=r[n])}return t}function ho(e,t,o,r=null){co(e,t,7,[o,r])}const Km=xu();let qm=0;function Ym(e,t,o){const r=e.type,n=(t?t.appContext:e.appContext)||Km,i={uid:qm++,vnode:e,type:r,parent:t,appContext:n,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new Sg(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(n.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Tu(r,n),emitsOptions:Cu(r,n),emit:null,emitted:null,propsDefaults:Ye,inheritAttrs:r.inheritAttrs,ctx:Ye,data:Ye,props:Ye,attrs:Ye,slots:Ye,refs:Ye,setupState:Ye,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=_m.bind(null,i),e.ce&&e.ce(i),i}let Lt=null;const fn=()=>Lt||Ht;let Ki,ya;{const e=dl(),t=(o,r)=>{let n;return(n=e[o])||(n=e[o]=[]),n.push(r),i=>{n.length>1?n.forEach(a=>a(i)):n[0](i)}};Ki=t("__VUE_INSTANCE_SETTERS__",o=>Lt=o),ya=t("__VUE_SSR_SETTERS__",o=>Zn=o)}const pi=e=>{const t=Lt;return Ki(e),e.scope.on(),()=>{e.scope.off(),Ki(t)}},Ns=()=>{Lt&&Lt.scope.off(),Ki(null)};function Hu(e){return e.vnode.shapeFlag&4}let Zn=!1;function Xm(e,t=!1,o=!1){t&&ya(t);const{props:r,children:n}=e.vnode,i=Hu(e);Bm(e,r,i,t),Fm(e,n,o||t);const a=i?Zm(e,t):void 0;return t&&ya(!1),a}function Zm(e,t){const o=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,bm);const{setup:r}=o;if(r){Lo();const n=e.setupContext=r.length>1?Qm(e):null,i=pi(e),a=di(r,e,0,[e.props,n]),l=$d(a);if(Do(),i(),(l||e.sp)&&!en(e)&&cu(e),l){if(a.then(Ns,Ns),t)return a.then(s=>{Us(e,s)}).catch(s=>{pl(s,e,0)});e.asyncDep=a}else Us(e,a)}else ku(e)}function Us(e,t,o){Te(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:De(t)&&(e.setupState=Kd(t)),ku(e)}function ku(e,t,o){const r=e.type;e.render||(e.render=r.render||yo);{const n=pi(e);Lo();try{xm(e)}finally{Do(),n()}}}const Jm={get(e,t){return Mt(e,"get",""),e[t]}};function Qm(e){const t=o=>{e.exposed=o||{}};return{attrs:new Proxy(e.attrs,Jm),slots:e.slots,emit:e.emit,expose:t}}function xl(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(Kd(pa(e.exposed)),{get(t,o){if(o in t)return t[o];if(o in Ln)return Ln[o](e)},has(t,o){return o in t||o in Ln}})):e.proxy}function ev(e){return Te(e)&&"__vccOpts"in e}const N=(e,t)=>Jg(e,t,Zn);function m(e,t,o){try{Gi(-1);const r=arguments.length;return r===2?De(t)&&!we(t)?cn(t)?se(e,null,[t]):se(e,t):se(e,null,t):(r>3?o=Array.prototype.slice.call(arguments,2):r===3&&cn(o)&&(o=[o]),se(e,t,o))}finally{Gi(1)}}const tv="3.5.29";/**
|
|
14
|
+
* @vue/runtime-dom v3.5.29
|
|
15
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
16
|
+
* @license MIT
|
|
17
|
+
**/let wa;const Gs=typeof window<"u"&&window.trustedTypes;if(Gs)try{wa=Gs.createPolicy("vue",{createHTML:e=>e})}catch{}const Fu=wa?e=>wa.createHTML(e):e=>e,ov="http://www.w3.org/2000/svg",rv="http://www.w3.org/1998/Math/MathML",Ho=typeof document<"u"?document:null,Ks=Ho&&Ho.createElement("template"),nv={insert:(e,t,o)=>{t.insertBefore(e,o||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,o,r)=>{const n=t==="svg"?Ho.createElementNS(ov,e):t==="mathml"?Ho.createElementNS(rv,e):o?Ho.createElement(e,{is:o}):Ho.createElement(e);return e==="select"&&r&&r.multiple!=null&&n.setAttribute("multiple",r.multiple),n},createText:e=>Ho.createTextNode(e),createComment:e=>Ho.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ho.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,o,r,n,i){const a=o?o.previousSibling:t.lastChild;if(n&&(n===i||n.nextSibling))for(;t.insertBefore(n.cloneNode(!0),o),!(n===i||!(n=n.nextSibling)););else{Ks.innerHTML=Fu(r==="svg"?`<svg>${e}</svg>`:r==="mathml"?`<math>${e}</math>`:e);const l=Ks.content;if(r==="svg"||r==="mathml"){const s=l.firstChild;for(;s.firstChild;)l.appendChild(s.firstChild);l.removeChild(s)}t.insertBefore(l,o)}return[a?a.nextSibling:t.firstChild,o?o.previousSibling:t.lastChild]}},Xo="transition",Pn="animation",dn=Symbol("_vtc"),Ou={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},Lu=ft({},iu,Ou),iv=e=>(e.displayName="Transition",e.props=Lu,e),sr=iv((e,{slots:t})=>m(cm,Du(e),t)),mr=(e,t=[])=>{we(e)?e.forEach(o=>o(...t)):e&&e(...t)},qs=e=>e?we(e)?e.some(t=>t.length>1):e.length>1:!1;function Du(e){const t={};for(const R in e)R in Ou||(t[R]=e[R]);if(e.css===!1)return t;const{name:o="v",type:r,duration:n,enterFromClass:i=`${o}-enter-from`,enterActiveClass:a=`${o}-enter-active`,enterToClass:l=`${o}-enter-to`,appearFromClass:s=i,appearActiveClass:d=a,appearToClass:c=l,leaveFromClass:u=`${o}-leave-from`,leaveActiveClass:h=`${o}-leave-active`,leaveToClass:f=`${o}-leave-to`}=e,p=lv(n),g=p&&p[0],x=p&&p[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:I,onLeave:$,onLeaveCancelled:E,onBeforeAppear:P=v,onAppear:b=y,onAppearCancelled:A=I}=t,_=(R,ie,ce,U)=>{R._enterCancelled=U,Qo(R,ie?c:l),Qo(R,ie?d:a),ce&&ce()},k=(R,ie)=>{R._isLeaving=!1,Qo(R,u),Qo(R,f),Qo(R,h),ie&&ie()},L=R=>(ie,ce)=>{const U=R?b:y,oe=()=>_(ie,R,ce);mr(U,[ie,oe]),Ys(()=>{Qo(ie,R?s:i),mo(ie,R?c:l),qs(U)||Xs(ie,r,g,oe)})};return ft(t,{onBeforeEnter(R){mr(v,[R]),mo(R,i),mo(R,a)},onBeforeAppear(R){mr(P,[R]),mo(R,s),mo(R,d)},onEnter:L(!1),onAppear:L(!0),onLeave(R,ie){R._isLeaving=!0;const ce=()=>k(R,ie);mo(R,u),R._enterCancelled?(mo(R,h),Sa(R)):(Sa(R),mo(R,h)),Ys(()=>{R._isLeaving&&(Qo(R,u),mo(R,f),qs($)||Xs(R,r,x,ce))}),mr($,[R,ce])},onEnterCancelled(R){_(R,!1,void 0,!0),mr(I,[R])},onAppearCancelled(R){_(R,!0,void 0,!0),mr(A,[R])},onLeaveCancelled(R){k(R),mr(E,[R])}})}function lv(e){if(e==null)return null;if(De(e))return[Vl(e.enter),Vl(e.leave)];{const t=Vl(e);return[t,t]}}function Vl(e){return gg(e)}function mo(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.add(o)),(e[dn]||(e[dn]=new Set)).add(t)}function Qo(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const o=e[dn];o&&(o.delete(t),o.size||(e[dn]=void 0))}function Ys(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let av=0;function Xs(e,t,o,r){const n=e._endId=++av,i=()=>{n===e._endId&&r()};if(o!=null)return setTimeout(i,o);const{type:a,timeout:l,propCount:s}=Wu(e,t);if(!a)return r();const d=a+"end";let c=0;const u=()=>{e.removeEventListener(d,h),i()},h=f=>{f.target===e&&++c>=s&&u()};setTimeout(()=>{c<s&&u()},l+1),e.addEventListener(d,h)}function Wu(e,t){const o=window.getComputedStyle(e),r=p=>(o[p]||"").split(", "),n=r(`${Xo}Delay`),i=r(`${Xo}Duration`),a=Zs(n,i),l=r(`${Pn}Delay`),s=r(`${Pn}Duration`),d=Zs(l,s);let c=null,u=0,h=0;t===Xo?a>0&&(c=Xo,u=a,h=i.length):t===Pn?d>0&&(c=Pn,u=d,h=s.length):(u=Math.max(a,d),c=u>0?a>d?Xo:Pn:null,h=c?c===Xo?i.length:s.length:0);const f=c===Xo&&/\b(?:transform|all)(?:,|$)/.test(r(`${Xo}Property`).toString());return{type:c,timeout:u,propCount:h,hasTransform:f}}function Zs(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((o,r)=>Js(o)+Js(e[r])))}function Js(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function Sa(e){return(e?e.ownerDocument:document).body.offsetHeight}function sv(e,t,o){const r=e[dn];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):o?e.setAttribute("class",t):e.className=t}const qi=Symbol("_vod"),ju=Symbol("_vsh"),Vu={name:"show",beforeMount(e,{value:t},{transition:o}){e[qi]=e.style.display==="none"?"":e.style.display,o&&t?o.beforeEnter(e):Tn(e,t)},mounted(e,{value:t},{transition:o}){o&&t&&o.enter(e)},updated(e,{value:t,oldValue:o},{transition:r}){!t!=!o&&(r?t?(r.beforeEnter(e),Tn(e,!0),r.enter(e)):r.leave(e,()=>{Tn(e,!1)}):Tn(e,t))},beforeUnmount(e,{value:t}){Tn(e,t)}};function Tn(e,t){e.style.display=t?e[qi]:"none",e[ju]=!t}const cv=Symbol(""),dv=/(?:^|;)\s*display\s*:/;function uv(e,t,o){const r=e.style,n=nt(o);let i=!1;if(o&&!n){if(t)if(nt(t))for(const a of t.split(";")){const l=a.slice(0,a.indexOf(":")).trim();o[l]==null&&Fi(r,l,"")}else for(const a in t)o[a]==null&&Fi(r,a,"");for(const a in o)a==="display"&&(i=!0),Fi(r,a,o[a])}else if(n){if(t!==o){const a=r[cv];a&&(o+=";"+a),r.cssText=o,i=dv.test(o)}}else t&&e.removeAttribute("style");qi in e&&(e[qi]=i?r.display:"",e[ju]&&(r.display="none"))}const Qs=/\s*!important$/;function Fi(e,t,o){if(we(o))o.forEach(r=>Fi(e,t,r));else if(o==null&&(o=""),t.startsWith("--"))e.setProperty(t,o);else{const r=fv(e,t);Qs.test(o)?e.setProperty(Rr(r),o.replace(Qs,""),"important"):e[r]=o}}const ec=["Webkit","Moz","ms"],Nl={};function fv(e,t){const o=Nl[t];if(o)return o;let r=ar(t);if(r!=="filter"&&r in e)return Nl[t]=r;r=_d(r);for(let n=0;n<ec.length;n++){const i=ec[n]+r;if(i in e)return Nl[t]=i}return t}const tc="http://www.w3.org/1999/xlink";function oc(e,t,o,r,n,i=yg(t)){r&&t.startsWith("xlink:")?o==null?e.removeAttributeNS(tc,t.slice(6,t.length)):e.setAttributeNS(tc,t,o):o==null||i&&!Ed(o)?e.removeAttribute(t):e.setAttribute(t,i?"":ao(o)?String(o):o)}function rc(e,t,o,r,n){if(t==="innerHTML"||t==="textContent"){o!=null&&(e[t]=t==="innerHTML"?Fu(o):o);return}const i=e.tagName;if(t==="value"&&i!=="PROGRESS"&&!i.includes("-")){const l=i==="OPTION"?e.getAttribute("value")||"":e.value,s=o==null?e.type==="checkbox"?"on":"":String(o);(l!==s||!("_value"in e))&&(e.value=s),o==null&&e.removeAttribute(t),e._value=o;return}let a=!1;if(o===""||o==null){const l=typeof e[t];l==="boolean"?o=Ed(o):o==null&&l==="string"?(o="",a=!0):l==="number"&&(o=0,a=!0)}try{e[t]=o}catch{}a&&e.removeAttribute(n||t)}function hv(e,t,o,r){e.addEventListener(t,o,r)}function pv(e,t,o,r){e.removeEventListener(t,o,r)}const nc=Symbol("_vei");function gv(e,t,o,r,n=null){const i=e[nc]||(e[nc]={}),a=i[t];if(r&&a)a.value=r;else{const[l,s]=mv(t);if(r){const d=i[t]=xv(r,n);hv(e,l,d,s)}else a&&(pv(e,l,a,s),i[t]=void 0)}}const ic=/(?:Once|Passive|Capture)$/;function mv(e){let t;if(ic.test(e)){t={};let r;for(;r=e.match(ic);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Rr(e.slice(2)),t]}let Ul=0;const vv=Promise.resolve(),bv=()=>Ul||(vv.then(()=>Ul=0),Ul=Date.now());function xv(e,t){const o=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=o.attached)return;co(Cv(r,o.value),t,5,[r])};return o.value=e,o.attached=bv(),o}function Cv(e,t){if(we(t)){const o=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{o.call(e),e._stopped=!0},t.map(r=>n=>!n._stopped&&r&&r(n))}else return t}const lc=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,yv=(e,t,o,r,n,i)=>{const a=n==="svg";t==="class"?sv(e,r,a):t==="style"?uv(e,o,r):al(t)?ja(t)||gv(e,t,o,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):wv(e,t,r,a))?(rc(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&oc(e,t,r,a,i,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!nt(r))?rc(e,ar(t),r,i,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),oc(e,t,r,a))};function wv(e,t,o,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&lc(t)&&Te(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 n=e.tagName;if(n==="IMG"||n==="VIDEO"||n==="CANVAS"||n==="SOURCE")return!1}return lc(t)&&nt(o)?!1:t in e}const Nu=new WeakMap,Uu=new WeakMap,Yi=Symbol("_moveCb"),ac=Symbol("_enterCb"),Sv=e=>(delete e.props.mode,e),$v=Sv({name:"TransitionGroup",props:ft({},Lu,{tag:String,moveClass:String}),setup(e,{slots:t}){const o=fn(),r=nu();let n,i;return hu(()=>{if(!n.length)return;const a=e.moveClass||`${e.name||"v"}-move`;if(!zv(n[0].el,o.vnode.el,a)){n=[];return}n.forEach(Pv),n.forEach(Tv);const l=n.filter(_v);Sa(o.vnode.el),l.forEach(s=>{const d=s.el,c=d.style;mo(d,a),c.transform=c.webkitTransform=c.transitionDuration="";const u=d[Yi]=h=>{h&&h.target!==d||(!h||h.propertyName.endsWith("transform"))&&(d.removeEventListener("transitionend",u),d[Yi]=null,Qo(d,a))};d.addEventListener("transitionend",u)}),n=[]}),()=>{const a=ke(e),l=Du(a);let s=a.tag||Me;if(n=[],i)for(let d=0;d<i.length;d++){const c=i[d];c.el&&c.el instanceof Element&&(n.push(c),Er(c,Yn(c,l,r,o)),Nu.set(c,Ku(c.el)))}i=t.default?ts(t.default()):[];for(let d=0;d<i.length;d++){const c=i[d];c.key!=null&&Er(c,Yn(c,l,r,o))}return se(s,null,i)}}}),Gu=$v;function Pv(e){const t=e.el;t[Yi]&&t[Yi](),t[ac]&&t[ac]()}function Tv(e){Uu.set(e,Ku(e.el))}function _v(e){const t=Nu.get(e),o=Uu.get(e),r=t.left-o.left,n=t.top-o.top;if(r||n){const i=e.el,a=i.style,l=i.getBoundingClientRect();let s=1,d=1;return i.offsetWidth&&(s=l.width/i.offsetWidth),i.offsetHeight&&(d=l.height/i.offsetHeight),(!Number.isFinite(s)||s===0)&&(s=1),(!Number.isFinite(d)||d===0)&&(d=1),Math.abs(s-1)<.01&&(s=1),Math.abs(d-1)<.01&&(d=1),a.transform=a.webkitTransform=`translate(${r/s}px,${n/d}px)`,a.transitionDuration="0s",e}}function Ku(e){const t=e.getBoundingClientRect();return{left:t.left,top:t.top}}function zv(e,t,o){const r=e.cloneNode(),n=e[dn];n&&n.forEach(l=>{l.split(/\s+/).forEach(s=>s&&r.classList.remove(s))}),o.split(/\s+/).forEach(l=>l&&r.classList.add(l)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:a}=Wu(r);return i.removeChild(r),a}const Ev=ft({patchProp:yv},nv);let sc;function Iv(){return sc||(sc=Lm(Ev))}const Rv=((...e)=>{const t=Iv().createApp(...e),{mount:o}=t;return t.mount=r=>{const n=Bv(r);if(!n)return;const i=t._component;!Te(i)&&!i.render&&!i.template&&(i.template=n.innerHTML),n.nodeType===1&&(n.textContent="");const a=o(n,!1,Mv(n));return n instanceof Element&&(n.removeAttribute("v-cloak"),n.setAttribute("data-v-app","")),a},t});function Mv(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function Bv(e){return nt(e)?document.querySelector(e):e}function Av(e){let t=".",o="__",r="--",n;if(e){let p=e.blockPrefix;p&&(t=p),p=e.elementPrefix,p&&(o=p),p=e.modifierPrefix,p&&(r=p)}const i={install(p){n=p.c;const g=p.context;g.bem={},g.bem.b=null,g.bem.els=null}};function a(p){let g,x;return{before(v){g=v.bem.b,x=v.bem.els,v.bem.els=null},after(v){v.bem.b=g,v.bem.els=x},$({context:v,props:y}){return p=typeof p=="string"?p:p({context:v,props:y}),v.bem.b=p,`${(y==null?void 0:y.bPrefix)||t}${v.bem.b}`}}}function l(p){let g;return{before(x){g=x.bem.els},after(x){x.bem.els=g},$({context:x,props:v}){return p=typeof p=="string"?p:p({context:x,props:v}),x.bem.els=p.split(",").map(y=>y.trim()),x.bem.els.map(y=>`${(v==null?void 0:v.bPrefix)||t}${x.bem.b}${o}${y}`).join(", ")}}}function s(p){return{$({context:g,props:x}){p=typeof p=="string"?p:p({context:g,props:x});const v=p.split(",").map($=>$.trim());function y($){return v.map(E=>`&${(x==null?void 0:x.bPrefix)||t}${g.bem.b}${$!==void 0?`${o}${$}`:""}${r}${E}`).join(", ")}const I=g.bem.els;return I!==null?y(I[0]):y()}}}function d(p){return{$({context:g,props:x}){p=typeof p=="string"?p:p({context:g,props:x});const v=g.bem.els;return`&:not(${(x==null?void 0:x.bPrefix)||t}${g.bem.b}${v!==null&&v.length>0?`${o}${v[0]}`:""}${r}${p})`}}}return Object.assign(i,{cB:((...p)=>n(a(p[0]),p[1],p[2])),cE:((...p)=>n(l(p[0]),p[1],p[2])),cM:((...p)=>n(s(p[0]),p[1],p[2])),cNotM:((...p)=>n(d(p[0]),p[1],p[2]))}),i}function Hv(e){let t=0;for(let o=0;o<e.length;++o)e[o]==="&"&&++t;return t}const qu=/\s*,(?![^(]*\))\s*/g,kv=/\s+/g;function Fv(e,t){const o=[];return t.split(qu).forEach(r=>{let n=Hv(r);if(n){if(n===1){e.forEach(a=>{o.push(r.replace("&",a))});return}}else{e.forEach(a=>{o.push((a&&a+" ")+r)});return}let i=[r];for(;n--;){const a=[];i.forEach(l=>{e.forEach(s=>{a.push(l.replace("&",s))})}),i=a}i.forEach(a=>o.push(a))}),o}function Ov(e,t){const o=[];return t.split(qu).forEach(r=>{e.forEach(n=>{o.push((n&&n+" ")+r)})}),o}function Lv(e){let t=[""];return e.forEach(o=>{o=o&&o.trim(),o&&(o.includes("&")?t=Fv(t,o):t=Ov(t,o))}),t.join(", ").replace(kv," ")}function cc(e){if(!e)return;const t=e.parentElement;t&&t.removeChild(e)}function Cl(e,t){return(t??document.head).querySelector(`style[cssr-id="${e}"]`)}function Dv(e){const t=document.createElement("style");return t.setAttribute("cssr-id",e),t}function Ti(e){return e?/^\s*@(s|m)/.test(e):!1}const Wv=/[A-Z]/g;function Yu(e){return e.replace(Wv,t=>"-"+t.toLowerCase())}function jv(e,t=" "){return typeof e=="object"&&e!==null?` {
|
|
18
|
+
`+Object.entries(e).map(o=>t+` ${Yu(o[0])}: ${o[1]};`).join(`
|
|
19
|
+
`)+`
|
|
20
|
+
`+t+"}":`: ${e};`}function Vv(e,t,o){return typeof e=="function"?e({context:t.context,props:o}):e}function dc(e,t,o,r){if(!t)return"";const n=Vv(t,o,r);if(!n)return"";if(typeof n=="string")return`${e} {
|
|
21
|
+
${n}
|
|
22
|
+
}`;const i=Object.keys(n);if(i.length===0)return o.config.keepEmptyBlock?e+` {
|
|
23
|
+
}`:"";const a=e?[e+" {"]:[];return i.forEach(l=>{const s=n[l];if(l==="raw"){a.push(`
|
|
24
|
+
`+s+`
|
|
25
|
+
`);return}l=Yu(l),s!=null&&a.push(` ${l}${jv(s)}`)}),e&&a.push("}"),a.join(`
|
|
26
|
+
`)}function $a(e,t,o){e&&e.forEach(r=>{if(Array.isArray(r))$a(r,t,o);else if(typeof r=="function"){const n=r(t);Array.isArray(n)?$a(n,t,o):n&&o(n)}else r&&o(r)})}function Xu(e,t,o,r,n){const i=e.$;let a="";if(!i||typeof i=="string")Ti(i)?a=i:t.push(i);else if(typeof i=="function"){const d=i({context:r.context,props:n});Ti(d)?a=d:t.push(d)}else if(i.before&&i.before(r.context),!i.$||typeof i.$=="string")Ti(i.$)?a=i.$:t.push(i.$);else if(i.$){const d=i.$({context:r.context,props:n});Ti(d)?a=d:t.push(d)}const l=Lv(t),s=dc(l,e.props,r,n);a?o.push(`${a} {`):s.length&&o.push(s),e.children&&$a(e.children,{context:r.context,props:n},d=>{if(typeof d=="string"){const c=dc(l,{raw:d},r,n);o.push(c)}else Xu(d,t,o,r,n)}),t.pop(),a&&o.push("}"),i&&i.after&&i.after(r.context)}function Nv(e,t,o){const r=[];return Xu(e,[],r,t,o),r.join(`
|
|
27
|
+
|
|
28
|
+
`)}function Jn(e){for(var t=0,o,r=0,n=e.length;n>=4;++r,n-=4)o=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&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(n){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&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 Uv(e,t,o,r){const{els:n}=t;if(o===void 0)n.forEach(cc),t.els=[];else{const i=Cl(o,r);i&&n.includes(i)&&(cc(i),t.els=n.filter(a=>a!==i))}}function uc(e,t){e.push(t)}function Gv(e,t,o,r,n,i,a,l,s){let d;if(o===void 0&&(d=t.render(r),o=Jn(d)),s){s.adapter(o,d??t.render(r));return}l===void 0&&(l=document.head);const c=Cl(o,l);if(c!==null&&!i)return c;const u=c??Dv(o);if(d===void 0&&(d=t.render(r)),u.textContent=d,c!==null)return c;if(a){const h=l.querySelector(`meta[name="${a}"]`);if(h)return l.insertBefore(u,h),uc(t.els,u),u}return n?l.insertBefore(u,l.querySelector("style, link")):l.appendChild(u),uc(t.els,u),u}function Kv(e){return Nv(this,this.instance,e)}function qv(e={}){const{id:t,ssr:o,props:r,head:n=!1,force:i=!1,anchorMetaName:a,parent:l}=e;return Gv(this.instance,this,t,r,n,i,a,l,o)}function Yv(e={}){const{id:t,parent:o}=e;Uv(this.instance,this,t,o)}const _i=function(e,t,o,r){return{instance:e,$:t,props:o,children:r,els:[],render:Kv,mount:qv,unmount:Yv}},Xv=function(e,t,o,r){return Array.isArray(t)?_i(e,{$:null},null,t):Array.isArray(o)?_i(e,t,null,o):Array.isArray(r)?_i(e,t,o,r):_i(e,t,o,null)};function Zu(e={}){const t={c:((...o)=>Xv(t,...o)),use:(o,...r)=>o.install(t,...r),find:Cl,context:{},config:e};return t}function Zv(e,t){if(e===void 0)return!1;if(t){const{context:{ids:o}}=t;return o.has(e)}return Cl(e)!==null}const Jv="n",Qn=`.${Jv}-`,Qv="__",eb="--",Ju=Zu(),Qu=Av({blockPrefix:Qn,elementPrefix:Qv,modifierPrefix:eb});Ju.use(Qu);const{c:B,find:Z3}=Ju,{cB:M,cE:O,cM:D,cNotM:St}=Qu;function ef(e){return B(({props:{bPrefix:t}})=>`${t||Qn}modal, ${t||Qn}drawer`,[e])}function tf(e){return B(({props:{bPrefix:t}})=>`${t||Qn}popover`,[e])}function tb(e){return B(({props:{bPrefix:t}})=>`&${t||Qn}modal`,e)}const ob=(...e)=>B(">",[M(...e)]);function ae(e,t){return e+(t==="default"?"":t.replace(/^[a-z]/,o=>o.toUpperCase()))}let Xi=[];const of=new WeakMap;function rb(){Xi.forEach(e=>e(...of.get(e))),Xi=[]}function nb(e,...t){of.set(e,t),!Xi.includes(e)&&Xi.push(e)===1&&requestAnimationFrame(rb)}function ib(e){return e.nodeType===9?null:e.parentNode}function rf(e){if(e===null)return null;const t=ib(e);if(t===null)return null;if(t.nodeType===9)return document.documentElement;if(t.nodeType===1){const{overflow:o,overflowX:r,overflowY:n}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(o+n+r))return t}return rf(t)}function lb(e){return typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e}function Zi(e){return e.composedPath()[0]||null}function ei(e){return typeof e=="string"?e.endsWith("px")?Number(e.slice(0,e.length-2)):Number(e):e}function ab(e){if(e!=null)return typeof e=="number"?`${e}px`:e.endsWith("px")?e:`${e}px`}function to(e,t){const o=e.trim().split(/\s+/g),r={top:o[0]};switch(o.length){case 1:r.right=o[0],r.bottom=o[0],r.left=o[0];break;case 2:r.right=o[1],r.left=o[1],r.bottom=o[0];break;case 3:r.right=o[1],r.bottom=o[2],r.left=o[1];break;case 4:r.right=o[1],r.bottom=o[2],r.left=o[3];break;default:throw new Error("[seemly/getMargin]:"+e+" is not a valid value.")}return t===void 0?r:r[t]}function sb(e,t){const[o,r]=e.split(" ");return{row:o,col:r||o}}const fc={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 cb(e,t,o){t/=100,o/=100;let r=(n,i=(n+e/60)%6)=>o-o*t*Math.max(Math.min(i,4-i,1),0);return[r(5)*255,r(3)*255,r(1)*255]}function db(e,t,o){t/=100,o/=100;let r=t*Math.min(o,1-o),n=(i,a=(i+e/30)%12)=>o-r*Math.max(Math.min(a-3,9-a,1),-1);return[n(0)*255,n(8)*255,n(4)*255]}const zo="^\\s*",Eo="\\s*$",cr="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))%\\s*",Ut="\\s*((\\.\\d+)|(\\d+(\\.\\d*)?))\\s*",Cr="([0-9A-Fa-f])",yr="([0-9A-Fa-f]{2})",nf=new RegExp(`${zo}hsl\\s*\\(${Ut},${cr},${cr}\\)${Eo}`),lf=new RegExp(`${zo}hsv\\s*\\(${Ut},${cr},${cr}\\)${Eo}`),af=new RegExp(`${zo}hsla\\s*\\(${Ut},${cr},${cr},${Ut}\\)${Eo}`),sf=new RegExp(`${zo}hsva\\s*\\(${Ut},${cr},${cr},${Ut}\\)${Eo}`),ub=new RegExp(`${zo}rgb\\s*\\(${Ut},${Ut},${Ut}\\)${Eo}`),fb=new RegExp(`${zo}rgba\\s*\\(${Ut},${Ut},${Ut},${Ut}\\)${Eo}`),hb=new RegExp(`${zo}#${Cr}${Cr}${Cr}${Eo}`),pb=new RegExp(`${zo}#${yr}${yr}${yr}${Eo}`),gb=new RegExp(`${zo}#${Cr}${Cr}${Cr}${Cr}${Eo}`),mb=new RegExp(`${zo}#${yr}${yr}${yr}${yr}${Eo}`);function Dt(e){return parseInt(e,16)}function vb(e){try{let t;if(t=af.exec(e))return[Ji(t[1]),rr(t[5]),rr(t[9]),Pr(t[13])];if(t=nf.exec(e))return[Ji(t[1]),rr(t[5]),rr(t[9]),1];throw new Error(`[seemly/hsla]: Invalid color value ${e}.`)}catch(t){throw t}}function bb(e){try{let t;if(t=sf.exec(e))return[Ji(t[1]),rr(t[5]),rr(t[9]),Pr(t[13])];if(t=lf.exec(e))return[Ji(t[1]),rr(t[5]),rr(t[9]),1];throw new Error(`[seemly/hsva]: Invalid color value ${e}.`)}catch(t){throw t}}function jo(e){try{let t;if(t=pb.exec(e))return[Dt(t[1]),Dt(t[2]),Dt(t[3]),1];if(t=ub.exec(e))return[Bt(t[1]),Bt(t[5]),Bt(t[9]),1];if(t=fb.exec(e))return[Bt(t[1]),Bt(t[5]),Bt(t[9]),Pr(t[13])];if(t=hb.exec(e))return[Dt(t[1]+t[1]),Dt(t[2]+t[2]),Dt(t[3]+t[3]),1];if(t=mb.exec(e))return[Dt(t[1]),Dt(t[2]),Dt(t[3]),Pr(Dt(t[4])/255)];if(t=gb.exec(e))return[Dt(t[1]+t[1]),Dt(t[2]+t[2]),Dt(t[3]+t[3]),Pr(Dt(t[4]+t[4])/255)];if(e in fc)return jo(fc[e]);if(nf.test(e)||af.test(e)){const[o,r,n,i]=vb(e);return[...db(o,r,n),i]}else if(lf.test(e)||sf.test(e)){const[o,r,n,i]=bb(e);return[...cb(o,r,n),i]}throw new Error(`[seemly/rgba]: Invalid color value ${e}.`)}catch(t){throw t}}function xb(e){return e>1?1:e<0?0:e}function Pa(e,t,o,r){return`rgba(${Bt(e)}, ${Bt(t)}, ${Bt(o)}, ${xb(r)})`}function Gl(e,t,o,r,n){return Bt((e*t*(1-r)+o*r)/n)}function pe(e,t){Array.isArray(e)||(e=jo(e)),Array.isArray(t)||(t=jo(t));const o=e[3],r=t[3],n=Pr(o+r-o*r);return Pa(Gl(e[0],o,t[0],r,n),Gl(e[1],o,t[1],r,n),Gl(e[2],o,t[2],r,n),n)}function Z(e,t){const[o,r,n,i=1]=Array.isArray(e)?e:jo(e);return typeof t.alpha=="number"?Pa(o,r,n,t.alpha):Pa(o,r,n,i)}function at(e,t){const[o,r,n,i=1]=Array.isArray(e)?e:jo(e),{lightness:a=1,alpha:l=1}=t;return Cb([o*a,r*a,n*a,i*l])}function Pr(e){const t=Math.round(Number(e)*100)/100;return t>1?1:t<0?0:t}function Ji(e){const t=Math.round(Number(e));return t>=360||t<0?0:t}function Bt(e){const t=Math.round(Number(e));return t>255?255:t<0?0:t}function rr(e){const t=Math.round(Number(e));return t>100?100:t<0?0:t}function Cb(e){const[t,o,r]=e;return 3 in e?`rgba(${Bt(t)}, ${Bt(o)}, ${Bt(r)}, ${Pr(e[3])})`:`rgba(${Bt(t)}, ${Bt(o)}, ${Bt(r)}, 1)`}function cf(e=8){return Math.random().toString(16).slice(2,2+e)}function Oi(e){return e.composedPath()[0]}const yb={mousemoveoutside:new WeakMap,clickoutside:new WeakMap};function wb(e,t,o){if(e==="mousemoveoutside"){const r=n=>{t.contains(Oi(n))||o(n)};return{mousemove:r,touchstart:r}}else if(e==="clickoutside"){let r=!1;const n=a=>{r=!t.contains(Oi(a))},i=a=>{r&&(t.contains(Oi(a))||o(a))};return{mousedown:n,mouseup:i,touchstart:n,touchend:i}}return console.error(`[evtd/create-trap-handler]: name \`${e}\` is invalid. This could be a bug of evtd.`),{}}function df(e,t,o){const r=yb[e];let n=r.get(t);n===void 0&&r.set(t,n=new WeakMap);let i=n.get(o);return i===void 0&&n.set(o,i=wb(e,t,o)),i}function Sb(e,t,o,r){if(e==="mousemoveoutside"||e==="clickoutside"){const n=df(e,t,o);return Object.keys(n).forEach(i=>{zt(i,document,n[i],r)}),!0}return!1}function $b(e,t,o,r){if(e==="mousemoveoutside"||e==="clickoutside"){const n=df(e,t,o);return Object.keys(n).forEach(i=>{st(i,document,n[i],r)}),!0}return!1}function Pb(){if(typeof window>"u")return{on:()=>{},off:()=>{}};const e=new WeakMap,t=new WeakMap;function o(){e.set(this,!0)}function r(){e.set(this,!0),t.set(this,!0)}function n(b,A,_){const k=b[A];return b[A]=function(){return _.apply(b,arguments),k.apply(b,arguments)},b}function i(b,A){b[A]=Event.prototype[A]}const a=new WeakMap,l=Object.getOwnPropertyDescriptor(Event.prototype,"currentTarget");function s(){var b;return(b=a.get(this))!==null&&b!==void 0?b:null}function d(b,A){l!==void 0&&Object.defineProperty(b,"currentTarget",{configurable:!0,enumerable:!0,get:A??l.get})}const c={bubble:{},capture:{}},u={};function h(){const b=function(A){const{type:_,eventPhase:k,bubbles:L}=A,R=Oi(A);if(k===2)return;const ie=k===1?"capture":"bubble";let ce=R;const U=[];for(;ce===null&&(ce=window),U.push(ce),ce!==window;)ce=ce.parentNode||null;const oe=c.capture[_],Q=c.bubble[_];if(n(A,"stopPropagation",o),n(A,"stopImmediatePropagation",r),d(A,s),ie==="capture"){if(oe===void 0)return;for(let H=U.length-1;H>=0&&!e.has(A);--H){const ne=U[H],ue=oe.get(ne);if(ue!==void 0){a.set(A,ne);for(const me of ue){if(t.has(A))break;me(A)}}if(H===0&&!L&&Q!==void 0){const me=Q.get(ne);if(me!==void 0)for(const xe of me){if(t.has(A))break;xe(A)}}}}else if(ie==="bubble"){if(Q===void 0)return;for(let H=0;H<U.length&&!e.has(A);++H){const ne=U[H],ue=Q.get(ne);if(ue!==void 0){a.set(A,ne);for(const me of ue){if(t.has(A))break;me(A)}}}}i(A,"stopPropagation"),i(A,"stopImmediatePropagation"),d(A)};return b.displayName="evtdUnifiedHandler",b}function f(){const b=function(A){const{type:_,eventPhase:k}=A;if(k!==2)return;const L=u[_];L!==void 0&&L.forEach(R=>R(A))};return b.displayName="evtdUnifiedWindowEventHandler",b}const p=h(),g=f();function x(b,A){const _=c[b];return _[A]===void 0&&(_[A]=new Map,window.addEventListener(A,p,b==="capture")),_[A]}function v(b){return u[b]===void 0&&(u[b]=new Set,window.addEventListener(b,g)),u[b]}function y(b,A){let _=b.get(A);return _===void 0&&b.set(A,_=new Set),_}function I(b,A,_,k){const L=c[A][_];if(L!==void 0){const R=L.get(b);if(R!==void 0&&R.has(k))return!0}return!1}function $(b,A){const _=u[b];return!!(_!==void 0&&_.has(A))}function E(b,A,_,k){let L;if(typeof k=="object"&&k.once===!0?L=oe=>{P(b,A,L,k),_(oe)}:L=_,Sb(b,A,L,k))return;const ie=k===!0||typeof k=="object"&&k.capture===!0?"capture":"bubble",ce=x(ie,b),U=y(ce,A);if(U.has(L)||U.add(L),A===window){const oe=v(b);oe.has(L)||oe.add(L)}}function P(b,A,_,k){if($b(b,A,_,k))return;const R=k===!0||typeof k=="object"&&k.capture===!0,ie=R?"capture":"bubble",ce=x(ie,b),U=y(ce,A);if(A===window&&!I(A,R?"bubble":"capture",b,_)&&$(b,_)){const Q=u[b];Q.delete(_),Q.size===0&&(window.removeEventListener(b,g),u[b]=void 0)}U.has(_)&&U.delete(_),U.size===0&&ce.delete(A),ce.size===0&&(window.removeEventListener(b,p,ie==="capture"),c[ie][b]=void 0)}return{on:E,off:P}}const{on:zt,off:st}=Pb();function Tb(e){const t=W(!!e.value);if(t.value)return an(t);const o=Xe(e,r=>{r&&(t.value=!0,o())});return an(t)}function Po(e){const t=N(e),o=W(t.value);return Xe(t,r=>{o.value=r}),typeof e=="function"?o:{__v_isRef:!0,get value(){return o.value},set value(r){e.set(r)}}}const _b=typeof window<"u";let on,Wn;const zb=()=>{var e,t;on=_b?(t=(e=document)===null||e===void 0?void 0:e.fonts)===null||t===void 0?void 0:t.ready:void 0,Wn=!1,on!==void 0?on.then(()=>{Wn=!0}):Wn=!0};zb();function uf(e){if(Wn)return;let t=!1;Et(()=>{Wn||on==null||on.then(()=>{t||e()})}),Yt(()=>{t=!0})}function yl(e,t){return Xe(e,o=>{o!==void 0&&(t.value=o)}),N(()=>e.value===void 0?t.value:e.value)}function wl(){const e=W(!1);return Et(()=>{e.value=!0}),an(e)}function ti(e,t){return N(()=>{for(const o of t)if(e[o]!==void 0)return e[o];return e[t[t.length-1]]})}const Eb=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function Ib(){return Eb}const Rb="n-internal-select-menu-body",ff="n-drawer-body",hf="n-modal-body",pf="n-popover-body",gf="__disabled__";function un(e){const t=Le(hf,null),o=Le(ff,null),r=Le(pf,null),n=Le(Rb,null),i=W();if(typeof document<"u"){i.value=document.fullscreenElement;const a=()=>{i.value=document.fullscreenElement};Et(()=>{zt("fullscreenchange",document,a)}),Yt(()=>{st("fullscreenchange",document,a)})}return Po(()=>{var a;const{to:l}=e;return l!==void 0?l===!1?gf:l===!0?i.value||"body":l:t!=null&&t.value?(a=t.value.$el)!==null&&a!==void 0?a:t.value:o!=null&&o.value?o.value:r!=null&&r.value?r.value:n!=null&&n.value?n.value:l??(i.value||"body")})}un.tdkey=gf;un.propTo={type:[String,Object,Boolean],default:void 0};const hn=typeof document<"u"&&typeof window<"u";let hc=!1;function Mb(){if(hn&&window.CSS&&!hc&&(hc=!0,"registerProperty"in(window==null?void 0:window.CSS)))try{CSS.registerProperty({name:"--n-color-start",syntax:"<color>",inherits:!1,initialValue:"#0000"}),CSS.registerProperty({name:"--n-color-end",syntax:"<color>",inherits:!1,initialValue:"#0000"})}catch{}}const Bb=W("0px");function mf(e){const t={isDeactivated:!1};let o=!1;return du(()=>{if(t.isDeactivated=!1,!o){o=!0;return}e()}),uu(()=>{t.isDeactivated=!0,o||(o=!0)}),t}function Ta(e,t,o="default"){const r=t[o];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${o}] is empty.`);return r()}function _a(e,t=!0,o=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&o.push(Pe(String(r)));return}if(Array.isArray(r)){_a(r,t,o);return}if(r.type===Me){if(r.children===null)return;Array.isArray(r.children)&&_a(r.children,t,o)}else r.type!==ut&&o.push(r)}}),o}function pc(e,t,o="default"){const r=t[o];if(r===void 0)throw new Error(`[vueuc/${e}]: slot[${o}] is empty.`);const n=_a(r());if(n.length===1)return n[0];throw new Error(`[vueuc/${e}]: slot[${o}] should have exactly one child.`)}let Zo=null;function vf(){if(Zo===null&&(Zo=document.getElementById("v-binder-view-measurer"),Zo===null)){Zo=document.createElement("div"),Zo.id="v-binder-view-measurer";const{style:e}=Zo;e.position="fixed",e.left="0",e.right="0",e.top="0",e.bottom="0",e.pointerEvents="none",e.visibility="hidden",document.body.appendChild(Zo)}return Zo.getBoundingClientRect()}function Ab(e,t){const o=vf();return{top:t,left:e,height:0,width:0,right:o.width-e,bottom:o.height-t}}function Kl(e){const t=e.getBoundingClientRect(),o=vf();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 Hb(e){return e.nodeType===9?null:e.parentNode}function bf(e){if(e===null)return null;const t=Hb(e);if(t===null)return null;if(t.nodeType===9)return document;if(t.nodeType===1){const{overflow:o,overflowX:r,overflowY:n}=getComputedStyle(t);if(/(auto|scroll|overlay)/.test(o+n+r))return t}return bf(t)}const kb=ge({name:"Binder",props:{syncTargetWithParent:Boolean,syncTarget:{type:Boolean,default:!0}},setup(e){var t;$t("VBinder",(t=fn())===null||t===void 0?void 0:t.proxy);const o=Le("VBinder",null),r=W(null),n=v=>{r.value=v,o&&e.syncTargetWithParent&&o.setTargetRef(v)};let i=[];const a=()=>{let v=r.value;for(;v=bf(v),v!==null;)i.push(v);for(const y of i)zt("scroll",y,u,!0)},l=()=>{for(const v of i)st("scroll",v,u,!0);i=[]},s=new Set,d=v=>{s.size===0&&a(),s.has(v)||s.add(v)},c=v=>{s.has(v)&&s.delete(v),s.size===0&&l()},u=()=>{nb(h)},h=()=>{s.forEach(v=>v())},f=new Set,p=v=>{f.size===0&&zt("resize",window,x),f.has(v)||f.add(v)},g=v=>{f.has(v)&&f.delete(v),f.size===0&&st("resize",window,x)},x=()=>{f.forEach(v=>v())};return Yt(()=>{st("resize",window,x),l()}),{targetRef:r,setTargetRef:n,addScrollListener:d,removeScrollListener:c,addResizeListener:p,removeResizeListener:g}},render(){return Ta("binder",this.$slots)}}),Fb=ge({name:"Target",setup(){const{setTargetRef:e,syncTarget:t}=Le("VBinder");return{syncTarget:t,setTargetDirective:{mounted:e,updated:e}}},render(){const{syncTarget:e,setTargetDirective:t}=this;return e?ui(pc("follower",this.$slots),[[t]]):pc("follower",this.$slots)}}),Wr="@@mmoContext",Ob={mounted(e,{value:t}){e[Wr]={handler:void 0},typeof t=="function"&&(e[Wr].handler=t,zt("mousemoveoutside",e,t))},updated(e,{value:t}){const o=e[Wr];typeof t=="function"?o.handler?o.handler!==t&&(st("mousemoveoutside",e,o.handler),o.handler=t,zt("mousemoveoutside",e,t)):(e[Wr].handler=t,zt("mousemoveoutside",e,t)):o.handler&&(st("mousemoveoutside",e,o.handler),o.handler=void 0)},unmounted(e){const{handler:t}=e[Wr];t&&st("mousemoveoutside",e,t),e[Wr].handler=void 0}},jr="@@coContext",gc={mounted(e,{value:t,modifiers:o}){e[jr]={handler:void 0},typeof t=="function"&&(e[jr].handler=t,zt("clickoutside",e,t,{capture:o.capture}))},updated(e,{value:t,modifiers:o}){const r=e[jr];typeof t=="function"?r.handler?r.handler!==t&&(st("clickoutside",e,r.handler,{capture:o.capture}),r.handler=t,zt("clickoutside",e,t,{capture:o.capture})):(e[jr].handler=t,zt("clickoutside",e,t,{capture:o.capture})):r.handler&&(st("clickoutside",e,r.handler,{capture:o.capture}),r.handler=void 0)},unmounted(e,{modifiers:t}){const{handler:o}=e[jr];o&&st("clickoutside",e,o,{capture:t.capture}),e[jr].handler=void 0}};function Lb(e,t){console.error(`[vdirs/${e}]: ${t}`)}class Db{constructor(){this.elementZIndex=new Map,this.nextZIndex=2e3}get elementCount(){return this.elementZIndex.size}ensureZIndex(t,o){const{elementZIndex:r}=this;if(o!==void 0){t.style.zIndex=`${o}`,r.delete(t);return}const{nextZIndex:n}=this;r.has(t)&&r.get(t)+1===this.nextZIndex||(t.style.zIndex=`${n}`,r.set(t,n),this.nextZIndex=n+1,this.squashState())}unregister(t,o){const{elementZIndex:r}=this;r.has(t)?r.delete(t):o===void 0&&Lb("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,r)=>o[1]-r[1]),this.nextZIndex=2e3,t.forEach(o=>{const r=o[0],n=this.nextZIndex++;`${n}`!==r.style.zIndex&&(r.style.zIndex=`${n}`)})}}const ql=new Db,Vr="@@ziContext",xf={mounted(e,t){const{value:o={}}=t,{zIndex:r,enabled:n}=o;e[Vr]={enabled:!!n,initialized:!1},n&&(ql.ensureZIndex(e,r),e[Vr].initialized=!0)},updated(e,t){const{value:o={}}=t,{zIndex:r,enabled:n}=o,i=e[Vr].enabled;n&&!i&&(ql.ensureZIndex(e,r),e[Vr].initialized=!0),e[Vr].enabled=!!n},unmounted(e,t){if(!e[Vr].initialized)return;const{value:o={}}=t,{zIndex:r}=o;ql.unregister(e,r)}},Wb="@css-render/vue3-ssr";function jb(e,t){return`<style cssr-id="${e}">
|
|
29
|
+
${t}
|
|
30
|
+
</style>`}function Vb(e,t,o){const{styles:r,ids:n}=o;n.has(e)||r!==null&&(n.add(e),r.push(jb(e,t)))}const Nb=typeof document<"u";function pn(){if(Nb)return;const e=Le(Wb,null);if(e!==null)return{adapter:(t,o)=>Vb(t,o,e),context:e}}function mc(e,t){console.error(`[vueuc/${e}]: ${t}`)}const{c:Xr}=Zu(),Cf="vueuc-style";function vc(e){return typeof e=="string"?document.querySelector(e):e()||null}const yf=ge({name:"LazyTeleport",props:{to:{type:[String,Object],default:void 0},disabled:Boolean,show:{type:Boolean,required:!0}},setup(e){return{showTeleport:Tb(Be(e,"show")),mergedTo:N(()=>{const{to:t}=e;return t??"body"})}},render(){return this.showTeleport?this.disabled?Ta("lazy-teleport",this.$slots):m(ru,{disabled:this.disabled,to:this.mergedTo},Ta("lazy-teleport",this.$slots)):null}}),zi={top:"bottom",bottom:"top",left:"right",right:"left"},bc={start:"end",center:"center",end:"start"},Yl={top:"height",bottom:"height",left:"width",right:"width"},Ub={"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"},Gb={"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"},Kb={"bottom-start":"right","bottom-end":"left","top-start":"right","top-end":"left","right-start":"bottom","right-end":"top","left-start":"bottom","left-end":"top"},xc={top:!0,bottom:!1,left:!0,right:!1},Cc={top:"end",bottom:"start",left:"end",right:"start"};function qb(e,t,o,r,n,i){if(!n||i)return{placement:e,top:0,left:0};const[a,l]=e.split("-");let s=l??"center",d={top:0,left:0};const c=(f,p,g)=>{let x=0,v=0;const y=o[f]-t[p]-t[f];return y>0&&r&&(g?v=xc[p]?y:-y:x=xc[p]?y:-y),{left:x,top:v}},u=a==="left"||a==="right";if(s!=="center"){const f=Kb[e],p=zi[f],g=Yl[f];if(o[g]>t[g]){if(t[f]+t[g]<o[g]){const x=(o[g]-t[g])/2;t[f]<x||t[p]<x?t[f]<t[p]?(s=bc[l],d=c(g,p,u)):d=c(g,f,u):s="center"}}else o[g]<t[g]&&t[p]<0&&t[f]>t[p]&&(s=bc[l])}else{const f=a==="bottom"||a==="top"?"left":"top",p=zi[f],g=Yl[f],x=(o[g]-t[g])/2;(t[f]<x||t[p]<x)&&(t[f]>t[p]?(s=Cc[f],d=c(g,f,u)):(s=Cc[p],d=c(g,p,u)))}let h=a;return t[a]<o[Yl[a]]&&t[a]<t[zi[a]]&&(h=zi[a]),{placement:s!=="center"?`${h}-${s}`:h,left:d.left,top:d.top}}function Yb(e,t){return t?Gb[e]:Ub[e]}function Xb(e,t,o,r,n,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+r)}px`,left:`${Math.round(o.left-t.left+n)}px`,transform:""};case"bottom-end":return{top:`${Math.round(o.top-t.top+o.height+r)}px`,left:`${Math.round(o.left-t.left+o.width+n)}px`,transform:"translateX(-100%)"};case"top-start":return{top:`${Math.round(o.top-t.top+r)}px`,left:`${Math.round(o.left-t.left+n)}px`,transform:"translateY(-100%)"};case"top-end":return{top:`${Math.round(o.top-t.top+r)}px`,left:`${Math.round(o.left-t.left+o.width+n)}px`,transform:"translateX(-100%) translateY(-100%)"};case"right-start":return{top:`${Math.round(o.top-t.top+r)}px`,left:`${Math.round(o.left-t.left+o.width+n)}px`,transform:""};case"right-end":return{top:`${Math.round(o.top-t.top+o.height+r)}px`,left:`${Math.round(o.left-t.left+o.width+n)}px`,transform:"translateY(-100%)"};case"left-start":return{top:`${Math.round(o.top-t.top+r)}px`,left:`${Math.round(o.left-t.left+n)}px`,transform:"translateX(-100%)"};case"left-end":return{top:`${Math.round(o.top-t.top+o.height+r)}px`,left:`${Math.round(o.left-t.left+n)}px`,transform:"translateX(-100%) translateY(-100%)"};case"top":return{top:`${Math.round(o.top-t.top+r)}px`,left:`${Math.round(o.left-t.left+o.width/2+n)}px`,transform:"translateY(-100%) translateX(-50%)"};case"right":return{top:`${Math.round(o.top-t.top+o.height/2+r)}px`,left:`${Math.round(o.left-t.left+o.width+n)}px`,transform:"translateY(-50%)"};case"left":return{top:`${Math.round(o.top-t.top+o.height/2+r)}px`,left:`${Math.round(o.left-t.left+n)}px`,transform:"translateY(-50%) translateX(-100%)"};case"bottom":default:return{top:`${Math.round(o.top-t.top+o.height+r)}px`,left:`${Math.round(o.left-t.left+o.width/2+n)}px`,transform:"translateX(-50%)"}}}const Zb=Xr([Xr(".v-binder-follower-container",{position:"absolute",left:"0",right:"0",top:"0",height:"0",pointerEvents:"none",zIndex:"auto"}),Xr(".v-binder-follower-content",{position:"absolute",zIndex:"auto"},[Xr("> *",{pointerEvents:"all"})])]),Jb=ge({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=Le("VBinder"),o=Po(()=>e.enabled!==void 0?e.enabled:e.show),r=W(null),n=W(null),i=()=>{const{syncTrigger:h}=e;h.includes("scroll")&&t.addScrollListener(s),h.includes("resize")&&t.addResizeListener(s)},a=()=>{t.removeScrollListener(s),t.removeResizeListener(s)};Et(()=>{o.value&&(s(),i())});const l=pn();Zb.mount({id:"vueuc/binder",head:!0,anchorMetaName:Cf,ssr:l}),Yt(()=>{a()}),uf(()=>{o.value&&s()});const s=()=>{if(!o.value)return;const h=r.value;if(h===null)return;const f=t.targetRef,{x:p,y:g,overlap:x}=e,v=p!==void 0&&g!==void 0?Ab(p,g):Kl(f);h.style.setProperty("--v-target-width",`${Math.round(v.width)}px`),h.style.setProperty("--v-target-height",`${Math.round(v.height)}px`);const{width:y,minWidth:I,placement:$,internalShift:E,flip:P}=e;h.setAttribute("v-placement",$),x?h.setAttribute("v-overlap",""):h.removeAttribute("v-overlap");const{style:b}=h;y==="target"?b.width=`${v.width}px`:y!==void 0?b.width=y:b.width="",I==="target"?b.minWidth=`${v.width}px`:I!==void 0?b.minWidth=I:b.minWidth="";const A=Kl(h),_=Kl(n.value),{left:k,top:L,placement:R}=qb($,v,A,E,P,x),ie=Yb(R,x),{left:ce,top:U,transform:oe}=Xb(R,_,v,L,k,x);h.setAttribute("v-placement",R),h.style.setProperty("--v-offset-left",`${Math.round(k)}px`),h.style.setProperty("--v-offset-top",`${Math.round(L)}px`),h.style.transform=`translateX(${ce}) translateY(${U}) ${oe}`,h.style.setProperty("--v-transform-origin",ie),h.style.transformOrigin=ie};Xe(o,h=>{h?(i(),d()):a()});const d=()=>{lo().then(s).catch(h=>console.error(h))};["placement","x","y","internalShift","flip","width","overlap","minWidth"].forEach(h=>{Xe(Be(e,h),s)}),["teleportDisabled"].forEach(h=>{Xe(Be(e,h),d)}),Xe(Be(e,"syncTrigger"),h=>{h.includes("resize")?t.addResizeListener(s):t.removeResizeListener(s),h.includes("scroll")?t.addScrollListener(s):t.removeScrollListener(s)});const c=wl(),u=Po(()=>{const{to:h}=e;if(h!==void 0)return h;c.value});return{VBinder:t,mergedEnabled:o,offsetContainerRef:n,followerRef:r,mergedTo:u,syncPosition:s}},render(){return m(yf,{show:this.show,to:this.mergedTo,disabled:this.teleportDisabled},{default:()=>{var e,t;const o=m("div",{class:["v-binder-follower-container",this.containerClass],ref:"offsetContainerRef"},[m("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?ui(o,[[xf,{enabled:this.mergedEnabled,zIndex:this.zIndex}]]):o}})}});var Tr=[],Qb=function(){return Tr.some(function(e){return e.activeTargets.length>0})},e0=function(){return Tr.some(function(e){return e.skippedTargets.length>0})},yc="ResizeObserver loop completed with undelivered notifications.",t0=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:yc}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=yc),window.dispatchEvent(e)},oi;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(oi||(oi={}));var _r=function(e){return Object.freeze(e)},o0=(function(){function e(t,o){this.inlineSize=t,this.blockSize=o,_r(this)}return e})(),wf=(function(){function e(t,o,r,n){return this.x=t,this.y=o,this.width=r,this.height=n,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,_r(this)}return e.prototype.toJSON=function(){var t=this,o=t.x,r=t.y,n=t.top,i=t.right,a=t.bottom,l=t.left,s=t.width,d=t.height;return{x:o,y:r,top:n,right:i,bottom:a,left:l,width:s,height:d}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e})(),ls=function(e){return e instanceof SVGElement&&"getBBox"in e},Sf=function(e){if(ls(e)){var t=e.getBBox(),o=t.width,r=t.height;return!o&&!r}var n=e,i=n.offsetWidth,a=n.offsetHeight;return!(i||a||e.getClientRects().length)},wc=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)},r0=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},jn=typeof window<"u"?window:{},Ei=new WeakMap,Sc=/auto|scroll/,n0=/^tb|vertical/,i0=/msie|trident/i.test(jn.navigator&&jn.navigator.userAgent),po=function(e){return parseFloat(e||"0")},rn=function(e,t,o){return e===void 0&&(e=0),t===void 0&&(t=0),o===void 0&&(o=!1),new o0((o?t:e)||0,(o?e:t)||0)},$c=_r({devicePixelContentBoxSize:rn(),borderBoxSize:rn(),contentBoxSize:rn(),contentRect:new wf(0,0,0,0)}),$f=function(e,t){if(t===void 0&&(t=!1),Ei.has(e)&&!t)return Ei.get(e);if(Sf(e))return Ei.set(e,$c),$c;var o=getComputedStyle(e),r=ls(e)&&e.ownerSVGElement&&e.getBBox(),n=!i0&&o.boxSizing==="border-box",i=n0.test(o.writingMode||""),a=!r&&Sc.test(o.overflowY||""),l=!r&&Sc.test(o.overflowX||""),s=r?0:po(o.paddingTop),d=r?0:po(o.paddingRight),c=r?0:po(o.paddingBottom),u=r?0:po(o.paddingLeft),h=r?0:po(o.borderTopWidth),f=r?0:po(o.borderRightWidth),p=r?0:po(o.borderBottomWidth),g=r?0:po(o.borderLeftWidth),x=u+d,v=s+c,y=g+f,I=h+p,$=l?e.offsetHeight-I-e.clientHeight:0,E=a?e.offsetWidth-y-e.clientWidth:0,P=n?x+y:0,b=n?v+I:0,A=r?r.width:po(o.width)-P-E,_=r?r.height:po(o.height)-b-$,k=A+x+E+y,L=_+v+$+I,R=_r({devicePixelContentBoxSize:rn(Math.round(A*devicePixelRatio),Math.round(_*devicePixelRatio),i),borderBoxSize:rn(k,L,i),contentBoxSize:rn(A,_,i),contentRect:new wf(u,s,A,_)});return Ei.set(e,R),R},Pf=function(e,t,o){var r=$f(e,o),n=r.borderBoxSize,i=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case oi.DEVICE_PIXEL_CONTENT_BOX:return a;case oi.BORDER_BOX:return n;default:return i}},l0=(function(){function e(t){var o=$f(t);this.target=t,this.contentRect=o.contentRect,this.borderBoxSize=_r([o.borderBoxSize]),this.contentBoxSize=_r([o.contentBoxSize]),this.devicePixelContentBoxSize=_r([o.devicePixelContentBoxSize])}return e})(),Tf=function(e){if(Sf(e))return 1/0;for(var t=0,o=e.parentNode;o;)t+=1,o=o.parentNode;return t},a0=function(){var e=1/0,t=[];Tr.forEach(function(a){if(a.activeTargets.length!==0){var l=[];a.activeTargets.forEach(function(d){var c=new l0(d.target),u=Tf(d.target);l.push(c),d.lastReportedSize=Pf(d.target,d.observedBox),u<e&&(e=u)}),t.push(function(){a.callback.call(a.observer,l,a.observer)}),a.activeTargets.splice(0,a.activeTargets.length)}});for(var o=0,r=t;o<r.length;o++){var n=r[o];n()}return e},Pc=function(e){Tr.forEach(function(o){o.activeTargets.splice(0,o.activeTargets.length),o.skippedTargets.splice(0,o.skippedTargets.length),o.observationTargets.forEach(function(n){n.isActive()&&(Tf(n.target)>e?o.activeTargets.push(n):o.skippedTargets.push(n))})})},s0=function(){var e=0;for(Pc(e);Qb();)e=a0(),Pc(e);return e0()&&t0(),e>0},Xl,_f=[],c0=function(){return _f.splice(0).forEach(function(e){return e()})},d0=function(e){if(!Xl){var t=0,o=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return c0()}).observe(o,r),Xl=function(){o.textContent="".concat(t?t--:t++)}}_f.push(e),Xl()},u0=function(e){d0(function(){requestAnimationFrame(e)})},Li=0,f0=function(){return!!Li},h0=250,p0={attributes:!0,characterData:!0,childList:!0,subtree:!0},Tc=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],_c=function(e){return e===void 0&&(e=0),Date.now()+e},Zl=!1,g0=(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=h0),!Zl){Zl=!0;var r=_c(t);u0(function(){var n=!1;try{n=s0()}finally{if(Zl=!1,t=r-_c(),!f0())return;n?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,p0)};document.body?o():jn.addEventListener("DOMContentLoaded",o)},e.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Tc.forEach(function(o){return jn.addEventListener(o,t.listener,!0)}))},e.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),Tc.forEach(function(o){return jn.removeEventListener(o,t.listener,!0)}),this.stopped=!0)},e})(),za=new g0,zc=function(e){!Li&&e>0&&za.start(),Li+=e,!Li&&za.stop()},m0=function(e){return!ls(e)&&!r0(e)&&getComputedStyle(e).display==="inline"},v0=(function(){function e(t,o){this.target=t,this.observedBox=o||oi.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var t=Pf(this.target,this.observedBox,!0);return m0(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e})(),b0=(function(){function e(t,o){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=o}return e})(),Ii=new WeakMap,Ec=function(e,t){for(var o=0;o<e.length;o+=1)if(e[o].target===t)return o;return-1},Ri=(function(){function e(){}return e.connect=function(t,o){var r=new b0(t,o);Ii.set(t,r)},e.observe=function(t,o,r){var n=Ii.get(t),i=n.observationTargets.length===0;Ec(n.observationTargets,o)<0&&(i&&Tr.push(n),n.observationTargets.push(new v0(o,r&&r.box)),zc(1),za.schedule())},e.unobserve=function(t,o){var r=Ii.get(t),n=Ec(r.observationTargets,o),i=r.observationTargets.length===1;n>=0&&(i&&Tr.splice(Tr.indexOf(r),1),r.observationTargets.splice(n,1),zc(-1))},e.disconnect=function(t){var o=this,r=Ii.get(t);r.observationTargets.slice().forEach(function(n){return o.unobserve(t,n.target)}),r.activeTargets.splice(0,r.activeTargets.length)},e})(),x0=(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.");Ri.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(!wc(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Ri.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(!wc(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Ri.unobserve(this,t)},e.prototype.disconnect=function(){Ri.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e})();class C0{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||x0)(this.handleResize),this.elHandlersMap=new Map}handleResize(t){for(const o of t){const r=this.elHandlersMap.get(o.target);r!==void 0&&r(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 Ic=new C0,nn=ge({name:"ResizeObserver",props:{onResize:Function},setup(e){let t=!1;const o=fn().proxy;function r(n){const{onResize:i}=e;i!==void 0&&i(n)}Et(()=>{const n=o.$el;if(n===void 0){mc("resize-observer","$el does not exist.");return}if(n.nextElementSibling!==n.nextSibling&&n.nodeType===3&&n.nodeValue!==""){mc("resize-observer","$el can not be observed (it may be a text node).");return}n.nextElementSibling!==null&&(Ic.registerHandler(n.nextElementSibling,r),t=!0)}),Yt(()=>{t&&Ic.unregisterHandler(o.$el.nextElementSibling)})},render(){return vm(this.$slots,"default")}}),y0=Xr(".v-x-scroll",{overflow:"auto",scrollbarWidth:"none"},[Xr("&::-webkit-scrollbar",{width:0,height:0})]),w0=ge({name:"XScroll",props:{disabled:Boolean,onScroll:Function},setup(){const e=W(null);function t(n){!(n.currentTarget.offsetWidth<n.currentTarget.scrollWidth)||n.deltaY===0||(n.currentTarget.scrollLeft+=n.deltaY+n.deltaX,n.preventDefault())}const o=pn();return y0.mount({id:"vueuc/x-scroll",head:!0,anchorMetaName:Cf,ssr:o}),Object.assign({selfRef:e,handleWheel:t},{scrollTo(...n){var i;(i=e.value)===null||i===void 0||i.scrollTo(...n)}})},render(){return m("div",{ref:"selfRef",onScroll:this.onScroll,onWheel:this.disabled?void 0:this.handleWheel,class:"v-x-scroll"},this.$slots)}});function zf(e){return e instanceof HTMLElement}function Ef(e){for(let t=0;t<e.childNodes.length;t++){const o=e.childNodes[t];if(zf(o)&&(Rf(o)||Ef(o)))return!0}return!1}function If(e){for(let t=e.childNodes.length-1;t>=0;t--){const o=e.childNodes[t];if(zf(o)&&(Rf(o)||If(o)))return!0}return!1}function Rf(e){if(!S0(e))return!1;try{e.focus({preventScroll:!0})}catch{}return document.activeElement===e}function S0(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 _n=[];const $0=ge({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=cf(),o=W(null),r=W(null);let n=!1,i=!1;const a=typeof document>"u"?null:document.activeElement;function l(){return _n[_n.length-1]===t}function s(x){var v;x.code==="Escape"&&l()&&((v=e.onEsc)===null||v===void 0||v.call(e,x))}Et(()=>{Xe(()=>e.active,x=>{x?(u(),zt("keydown",document,s)):(st("keydown",document,s),n&&h())},{immediate:!0})}),Yt(()=>{st("keydown",document,s),n&&h()});function d(x){if(!i&&l()){const v=c();if(v===null||v.contains(Zi(x)))return;f("first")}}function c(){const x=o.value;if(x===null)return null;let v=x;for(;v=v.nextSibling,!(v===null||v instanceof Element&&v.tagName==="DIV"););return v}function u(){var x;if(!e.disabled){if(_n.push(t),e.autoFocus){const{initialFocusTo:v}=e;v===void 0?f("first"):(x=vc(v))===null||x===void 0||x.focus({preventScroll:!0})}n=!0,document.addEventListener("focus",d,!0)}}function h(){var x;if(e.disabled||(document.removeEventListener("focus",d,!0),_n=_n.filter(y=>y!==t),l()))return;const{finalFocusTo:v}=e;v!==void 0?(x=vc(v))===null||x===void 0||x.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&a instanceof HTMLElement&&(i=!0,a.focus({preventScroll:!0}),i=!1)}function f(x){if(l()&&e.active){const v=o.value,y=r.value;if(v!==null&&y!==null){const I=c();if(I==null||I===y){i=!0,v.focus({preventScroll:!0}),i=!1;return}i=!0;const $=x==="first"?Ef(I):If(I);i=!1,$||(i=!0,v.focus({preventScroll:!0}),i=!1)}}}function p(x){if(i)return;const v=c();v!==null&&(x.relatedTarget!==null&&v.contains(x.relatedTarget)?f("last"):f("first"))}function g(x){i||(x.relatedTarget!==null&&x.relatedTarget===o.value?f("last"):f("first"))}return{focusableStartRef:o,focusableEndRef:r,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 m(Me,null,[m("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:o,onFocus:this.handleStartFocus}),e(),m("div",{"aria-hidden":"true",style:o,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});function Qi(e){return e.replace(/#|\(|\)|,|\s|\./g,"_")}const P0=/^(\d|\.)+$/,Rc=/(\d|\.)+/;function ln(e,{c:t=1,offset:o=0,attachPx:r=!0}={}){if(typeof e=="number"){const n=(e+o)*t;return n===0?"0":`${n}px`}else if(typeof e=="string")if(P0.test(e)){const n=(Number(e)+o)*t;return r?n===0?"0":`${n}px`:`${n}`}else{const n=Rc.exec(e);return n?e.replace(Rc,String((Number(n[0])+o)*t)):e}return e}function Mc(e){const{left:t,right:o,top:r,bottom:n}=to(e);return`${r} ${t} ${n} ${o}`}function Bc(e){return e.nodeName==="#document"}let Jl;function T0(){return Jl===void 0&&(Jl=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),Jl}function ri(e,t){console.error(`[naive/${e}]: ${t}`)}function as(e,t){throw new Error(`[naive/${e}]: ${t}`)}function je(e,...t){if(Array.isArray(e))e.forEach(o=>je(o,...t));else return e(...t)}function zr(e,t=!0,o=[]){return e.forEach(r=>{if(r!==null){if(typeof r!="object"){(typeof r=="string"||typeof r=="number")&&o.push(Pe(String(r)));return}if(Array.isArray(r)){zr(r,t,o);return}if(r.type===Me){if(r.children===null)return;Array.isArray(r.children)&&zr(r.children,t,o)}else{if(r.type===ut&&t)return;o.push(r)}}}),o}function _0(e,t="default",o=void 0){const r=e[t];if(!r)return ri("getFirstSlotVNode",`slot[${t}] is empty`),null;const n=zr(r(o));return n.length===1?n[0]:(ri("getFirstSlotVNode",`slot[${t}] should have exactly one child`),null)}function z0(e,t="default",o=[]){const n=e.$slots[t];return n===void 0?o:n()}function Mf(e,t=[],o){const r={};return t.forEach(n=>{r[n]=e[n]}),Object.assign(r,o)}function E0(e){return Object.keys(e)}function ss(e,t=[],o){const r={};return Object.getOwnPropertyNames(e).forEach(i=>{t.includes(i)||(r[i]=e[i])}),Object.assign(r,o)}function Bf(e,...t){return typeof e=="function"?e(...t):typeof e=="string"?Pe(e):typeof e=="number"?Pe(String(e)):null}function no(e){return e.some(t=>cn(t)?!(t.type===ut||t.type===Me&&!no(t.children)):!0)?e:null}function lr(e,t){return e&&no(e())||t()}function I0(e,t,o){return e&&no(e(t))||o(t)}function dt(e,t){const o=e&&no(e());return t(o||null)}function Ea(e){return!(e&&no(e()))}const Ac=ge({render(){var e,t;return(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)}}),To="n-config-provider",Ia="n";function tt(e={},t={defaultBordered:!0}){const o=Le(To,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:N(()=>{var r,n;const{bordered:i}=e;return i!==void 0?i:(n=(r=o==null?void 0:o.mergedBorderedRef.value)!==null&&r!==void 0?r:t.defaultBordered)!==null&&n!==void 0?n:!0}),mergedClsPrefixRef:o?o.mergedClsPrefixRef:Ug(Ia),namespaceRef:N(()=>o==null?void 0:o.mergedNamespaceRef.value)}}function ht(e,t,o,r){o||as("useThemeClass","cssVarsRef is not passed");const n=Le(To,null),i=n==null?void 0:n.mergedThemeHashRef,a=n==null?void 0:n.styleMountTarget,l=W(""),s=pn();let d;const c=`__${e}`,u=()=>{let h=c;const f=t?t.value:void 0,p=i==null?void 0:i.value;p&&(h+=`-${p}`),f&&(h+=`-${f}`);const{themeOverrides:g,builtinThemeOverrides:x}=r;g&&(h+=`-${Jn(JSON.stringify(g))}`),x&&(h+=`-${Jn(JSON.stringify(x))}`),l.value=h,d=()=>{const v=o.value;let y="";for(const I in v)y+=`${I}: ${v[I]};`;B(`.${h}`,y).mount({id:h,ssr:s,parent:a}),d=void 0}};return So(()=>{u()}),{themeClass:l,onRender:()=>{d==null||d()}}}const Hc="n-form-item";function Af(e,{defaultSize:t="medium",mergedSize:o,mergedDisabled:r}={}){const n=Le(Hc,null);$t(Hc,null);const i=N(o?()=>o(n):()=>{const{size:s}=e;if(s)return s;if(n){const{mergedSize:d}=n;if(d.value!==void 0)return d.value}return t}),a=N(r?()=>r(n):()=>{const{disabled:s}=e;return s!==void 0?s:n?n.disabled.value:!1}),l=N(()=>{const{status:s}=e;return s||(n==null?void 0:n.mergedValidationStatus.value)});return Yt(()=>{n&&n.restoreValidation()}),{mergedSizeRef:i,mergedDisabledRef:a,mergedStatusRef:l,nTriggerFormBlur(){n&&n.handleContentBlur()},nTriggerFormChange(){n&&n.handleContentChange()},nTriggerFormFocus(){n&&n.handleContentFocus()},nTriggerFormInput(){n&&n.handleContentInput()}}}function Hf(e,t){const o=Le(To,null);return N(()=>e.hljs||(o==null?void 0:o.mergedHljsRef.value))}const R0={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 Ql(e){return(t={})=>{const o=t.width?String(t.width):e.defaultWidth;return e.formats[o]||e.formats[e.defaultWidth]}}function zn(e){return(t,o)=>{const r=o!=null&&o.context?String(o.context):"standalone";let n;if(r==="formatting"&&e.formattingValues){const a=e.defaultFormattingWidth||e.defaultWidth,l=o!=null&&o.width?String(o.width):a;n=e.formattingValues[l]||e.formattingValues[a]}else{const a=e.defaultWidth,l=o!=null&&o.width?String(o.width):e.defaultWidth;n=e.values[l]||e.values[a]}const i=e.argumentCallback?e.argumentCallback(t):t;return n[i]}}function En(e){return(t,o={})=>{const r=o.width,n=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(n);if(!i)return null;const a=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],s=Array.isArray(l)?B0(l,u=>u.test(a)):M0(l,u=>u.test(a));let d;d=e.valueCallback?e.valueCallback(s):s,d=o.valueCallback?o.valueCallback(d):d;const c=t.slice(a.length);return{value:d,rest:c}}}function M0(e,t){for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)&&t(e[o]))return o}function B0(e,t){for(let o=0;o<e.length;o++)if(t(e[o]))return o}function A0(e){return(t,o={})=>{const r=t.match(e.matchPattern);if(!r)return null;const n=r[0],i=t.match(e.parsePattern);if(!i)return null;let a=e.valueCallback?e.valueCallback(i[0]):i[0];a=o.valueCallback?o.valueCallback(a):a;const l=t.slice(n.length);return{value:a,rest:l}}}const H0={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"}},k0=(e,t,o)=>{let r;const n=H0[e];return typeof n=="string"?r=n:t===1?r=n.one:r=n.other.replace("{{count}}",t.toString()),o!=null&&o.addSuffix?o.comparison&&o.comparison>0?"in "+r:r+" ago":r},F0={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},O0=(e,t,o,r)=>F0[e],L0={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},D0={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},W0={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"]},j0={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"]},V0={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"}},N0={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"}},U0=(e,t)=>{const o=Number(e),r=o%100;if(r>20||r<10)switch(r%10){case 1:return o+"st";case 2:return o+"nd";case 3:return o+"rd"}return o+"th"},G0={ordinalNumber:U0,era:zn({values:L0,defaultWidth:"wide"}),quarter:zn({values:D0,defaultWidth:"wide",argumentCallback:e=>e-1}),month:zn({values:W0,defaultWidth:"wide"}),day:zn({values:j0,defaultWidth:"wide"}),dayPeriod:zn({values:V0,defaultWidth:"wide",formattingValues:N0,defaultFormattingWidth:"wide"})},K0=/^(\d+)(th|st|nd|rd)?/i,q0=/\d+/i,Y0={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},X0={any:[/^b/i,/^(a|c)/i]},Z0={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},J0={any:[/1/i,/2/i,/3/i,/4/i]},Q0={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},ex={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]},tx={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},ox={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]},rx={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},nx={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}},ix={ordinalNumber:A0({matchPattern:K0,parsePattern:q0,valueCallback:e=>parseInt(e,10)}),era:En({matchPatterns:Y0,defaultMatchWidth:"wide",parsePatterns:X0,defaultParseWidth:"any"}),quarter:En({matchPatterns:Z0,defaultMatchWidth:"wide",parsePatterns:J0,defaultParseWidth:"any",valueCallback:e=>e+1}),month:En({matchPatterns:Q0,defaultMatchWidth:"wide",parsePatterns:ex,defaultParseWidth:"any"}),day:En({matchPatterns:tx,defaultMatchWidth:"wide",parsePatterns:ox,defaultParseWidth:"any"}),dayPeriod:En({matchPatterns:rx,defaultMatchWidth:"any",parsePatterns:nx,defaultParseWidth:"any"})},lx={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ax={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},sx={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},cx={date:Ql({formats:lx,defaultWidth:"full"}),time:Ql({formats:ax,defaultWidth:"full"}),dateTime:Ql({formats:sx,defaultWidth:"full"})},dx={code:"en-US",formatDistance:k0,formatLong:cx,formatRelative:O0,localize:G0,match:ix,options:{weekStartsOn:0,firstWeekContainsDate:1}},ux={name:"en-US",locale:dx};var kf=typeof global=="object"&&global&&global.Object===Object&&global,fx=typeof self=="object"&&self&&self.Object===Object&&self,uo=kf||fx||Function("return this")(),dr=uo.Symbol,Ff=Object.prototype,hx=Ff.hasOwnProperty,px=Ff.toString,In=dr?dr.toStringTag:void 0;function gx(e){var t=hx.call(e,In),o=e[In];try{e[In]=void 0;var r=!0}catch{}var n=px.call(e);return r&&(t?e[In]=o:delete e[In]),n}var mx=Object.prototype,vx=mx.toString;function bx(e){return vx.call(e)}var xx="[object Null]",Cx="[object Undefined]",kc=dr?dr.toStringTag:void 0;function Mr(e){return e==null?e===void 0?Cx:xx:kc&&kc in Object(e)?gx(e):bx(e)}function ur(e){return e!=null&&typeof e=="object"}var yx="[object Symbol]";function Sl(e){return typeof e=="symbol"||ur(e)&&Mr(e)==yx}function Of(e,t){for(var o=-1,r=e==null?0:e.length,n=Array(r);++o<r;)n[o]=t(e[o],o,e);return n}var oo=Array.isArray,Fc=dr?dr.prototype:void 0,Oc=Fc?Fc.toString:void 0;function Lf(e){if(typeof e=="string")return e;if(oo(e))return Of(e,Lf)+"";if(Sl(e))return Oc?Oc.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var wx=/\s/;function Sx(e){for(var t=e.length;t--&&wx.test(e.charAt(t)););return t}var $x=/^\s+/;function Px(e){return e&&e.slice(0,Sx(e)+1).replace($x,"")}function ro(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Lc=NaN,Tx=/^[-+]0x[0-9a-f]+$/i,_x=/^0b[01]+$/i,zx=/^0o[0-7]+$/i,Ex=parseInt;function Dc(e){if(typeof e=="number")return e;if(Sl(e))return Lc;if(ro(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ro(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Px(e);var o=_x.test(e);return o||zx.test(e)?Ex(e.slice(2),o?2:8):Tx.test(e)?Lc:+e}function cs(e){return e}var Ix="[object AsyncFunction]",Rx="[object Function]",Mx="[object GeneratorFunction]",Bx="[object Proxy]";function ds(e){if(!ro(e))return!1;var t=Mr(e);return t==Rx||t==Mx||t==Ix||t==Bx}var ea=uo["__core-js_shared__"],Wc=(function(){var e=/[^.]+$/.exec(ea&&ea.keys&&ea.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""})();function Ax(e){return!!Wc&&Wc in e}var Hx=Function.prototype,kx=Hx.toString;function Br(e){if(e!=null){try{return kx.call(e)}catch{}try{return e+""}catch{}}return""}var Fx=/[\\^$.*+?()[\]{}|]/g,Ox=/^\[object .+?Constructor\]$/,Lx=Function.prototype,Dx=Object.prototype,Wx=Lx.toString,jx=Dx.hasOwnProperty,Vx=RegExp("^"+Wx.call(jx).replace(Fx,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Nx(e){if(!ro(e)||Ax(e))return!1;var t=ds(e)?Vx:Ox;return t.test(Br(e))}function Ux(e,t){return e==null?void 0:e[t]}function Ar(e,t){var o=Ux(e,t);return Nx(o)?o:void 0}var Ra=Ar(uo,"WeakMap"),jc=Object.create,Gx=(function(){function e(){}return function(t){if(!ro(t))return{};if(jc)return jc(t);e.prototype=t;var o=new e;return e.prototype=void 0,o}})();function Kx(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 qx(e,t){var o=-1,r=e.length;for(t||(t=Array(r));++o<r;)t[o]=e[o];return t}var Yx=800,Xx=16,Zx=Date.now;function Jx(e){var t=0,o=0;return function(){var r=Zx(),n=Xx-(r-o);if(o=r,n>0){if(++t>=Yx)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function Qx(e){return function(){return e}}var el=(function(){try{var e=Ar(Object,"defineProperty");return e({},"",{}),e}catch{}})(),eC=el?function(e,t){return el(e,"toString",{configurable:!0,enumerable:!1,value:Qx(t),writable:!0})}:cs,tC=Jx(eC),oC=9007199254740991,rC=/^(?:0|[1-9]\d*)$/;function us(e,t){var o=typeof e;return t=t??oC,!!t&&(o=="number"||o!="symbol"&&rC.test(e))&&e>-1&&e%1==0&&e<t}function fs(e,t,o){t=="__proto__"&&el?el(e,t,{configurable:!0,enumerable:!0,value:o,writable:!0}):e[t]=o}function gi(e,t){return e===t||e!==e&&t!==t}var nC=Object.prototype,iC=nC.hasOwnProperty;function lC(e,t,o){var r=e[t];(!(iC.call(e,t)&&gi(r,o))||o===void 0&&!(t in e))&&fs(e,t,o)}function aC(e,t,o,r){var n=!o;o||(o={});for(var i=-1,a=t.length;++i<a;){var l=t[i],s=void 0;s===void 0&&(s=e[l]),n?fs(o,l,s):lC(o,l,s)}return o}var Vc=Math.max;function sC(e,t,o){return t=Vc(t===void 0?e.length-1:t,0),function(){for(var r=arguments,n=-1,i=Vc(r.length-t,0),a=Array(i);++n<i;)a[n]=r[t+n];n=-1;for(var l=Array(t+1);++n<t;)l[n]=r[n];return l[t]=o(a),Kx(e,this,l)}}function cC(e,t){return tC(sC(e,t,cs),e+"")}var dC=9007199254740991;function hs(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=dC}function gn(e){return e!=null&&hs(e.length)&&!ds(e)}function uC(e,t,o){if(!ro(o))return!1;var r=typeof t;return(r=="number"?gn(o)&&us(t,o.length):r=="string"&&t in o)?gi(o[t],e):!1}function fC(e){return cC(function(t,o){var r=-1,n=o.length,i=n>1?o[n-1]:void 0,a=n>2?o[2]:void 0;for(i=e.length>3&&typeof i=="function"?(n--,i):void 0,a&&uC(o[0],o[1],a)&&(i=n<3?void 0:i,n=1),t=Object(t);++r<n;){var l=o[r];l&&e(t,l,r,i)}return t})}var hC=Object.prototype;function ps(e){var t=e&&e.constructor,o=typeof t=="function"&&t.prototype||hC;return e===o}function pC(e,t){for(var o=-1,r=Array(e);++o<e;)r[o]=t(o);return r}var gC="[object Arguments]";function Nc(e){return ur(e)&&Mr(e)==gC}var Df=Object.prototype,mC=Df.hasOwnProperty,vC=Df.propertyIsEnumerable,tl=Nc((function(){return arguments})())?Nc:function(e){return ur(e)&&mC.call(e,"callee")&&!vC.call(e,"callee")};function bC(){return!1}var Wf=typeof Gt=="object"&&Gt&&!Gt.nodeType&&Gt,Uc=Wf&&typeof Kt=="object"&&Kt&&!Kt.nodeType&&Kt,xC=Uc&&Uc.exports===Wf,Gc=xC?uo.Buffer:void 0,CC=Gc?Gc.isBuffer:void 0,ol=CC||bC,yC="[object Arguments]",wC="[object Array]",SC="[object Boolean]",$C="[object Date]",PC="[object Error]",TC="[object Function]",_C="[object Map]",zC="[object Number]",EC="[object Object]",IC="[object RegExp]",RC="[object Set]",MC="[object String]",BC="[object WeakMap]",AC="[object ArrayBuffer]",HC="[object DataView]",kC="[object Float32Array]",FC="[object Float64Array]",OC="[object Int8Array]",LC="[object Int16Array]",DC="[object Int32Array]",WC="[object Uint8Array]",jC="[object Uint8ClampedArray]",VC="[object Uint16Array]",NC="[object Uint32Array]",Je={};Je[kC]=Je[FC]=Je[OC]=Je[LC]=Je[DC]=Je[WC]=Je[jC]=Je[VC]=Je[NC]=!0;Je[yC]=Je[wC]=Je[AC]=Je[SC]=Je[HC]=Je[$C]=Je[PC]=Je[TC]=Je[_C]=Je[zC]=Je[EC]=Je[IC]=Je[RC]=Je[MC]=Je[BC]=!1;function UC(e){return ur(e)&&hs(e.length)&&!!Je[Mr(e)]}function GC(e){return function(t){return e(t)}}var jf=typeof Gt=="object"&&Gt&&!Gt.nodeType&&Gt,Vn=jf&&typeof Kt=="object"&&Kt&&!Kt.nodeType&&Kt,KC=Vn&&Vn.exports===jf,ta=KC&&kf.process,Kc=(function(){try{var e=Vn&&Vn.require&&Vn.require("util").types;return e||ta&&ta.binding&&ta.binding("util")}catch{}})(),qc=Kc&&Kc.isTypedArray,gs=qc?GC(qc):UC,qC=Object.prototype,YC=qC.hasOwnProperty;function Vf(e,t){var o=oo(e),r=!o&&tl(e),n=!o&&!r&&ol(e),i=!o&&!r&&!n&&gs(e),a=o||r||n||i,l=a?pC(e.length,String):[],s=l.length;for(var d in e)(t||YC.call(e,d))&&!(a&&(d=="length"||n&&(d=="offset"||d=="parent")||i&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||us(d,s)))&&l.push(d);return l}function Nf(e,t){return function(o){return e(t(o))}}var XC=Nf(Object.keys,Object),ZC=Object.prototype,JC=ZC.hasOwnProperty;function QC(e){if(!ps(e))return XC(e);var t=[];for(var o in Object(e))JC.call(e,o)&&o!="constructor"&&t.push(o);return t}function ms(e){return gn(e)?Vf(e):QC(e)}function ey(e){var t=[];if(e!=null)for(var o in Object(e))t.push(o);return t}var ty=Object.prototype,oy=ty.hasOwnProperty;function ry(e){if(!ro(e))return ey(e);var t=ps(e),o=[];for(var r in e)r=="constructor"&&(t||!oy.call(e,r))||o.push(r);return o}function Uf(e){return gn(e)?Vf(e,!0):ry(e)}var ny=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,iy=/^\w*$/;function vs(e,t){if(oo(e))return!1;var o=typeof e;return o=="number"||o=="symbol"||o=="boolean"||e==null||Sl(e)?!0:iy.test(e)||!ny.test(e)||t!=null&&e in Object(t)}var ni=Ar(Object,"create");function ly(){this.__data__=ni?ni(null):{},this.size=0}function ay(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var sy="__lodash_hash_undefined__",cy=Object.prototype,dy=cy.hasOwnProperty;function uy(e){var t=this.__data__;if(ni){var o=t[e];return o===sy?void 0:o}return dy.call(t,e)?t[e]:void 0}var fy=Object.prototype,hy=fy.hasOwnProperty;function py(e){var t=this.__data__;return ni?t[e]!==void 0:hy.call(t,e)}var gy="__lodash_hash_undefined__";function my(e,t){var o=this.__data__;return this.size+=this.has(e)?0:1,o[e]=ni&&t===void 0?gy:t,this}function Ir(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var r=e[t];this.set(r[0],r[1])}}Ir.prototype.clear=ly;Ir.prototype.delete=ay;Ir.prototype.get=uy;Ir.prototype.has=py;Ir.prototype.set=my;function vy(){this.__data__=[],this.size=0}function $l(e,t){for(var o=e.length;o--;)if(gi(e[o][0],t))return o;return-1}var by=Array.prototype,xy=by.splice;function Cy(e){var t=this.__data__,o=$l(t,e);if(o<0)return!1;var r=t.length-1;return o==r?t.pop():xy.call(t,o,1),--this.size,!0}function yy(e){var t=this.__data__,o=$l(t,e);return o<0?void 0:t[o][1]}function wy(e){return $l(this.__data__,e)>-1}function Sy(e,t){var o=this.__data__,r=$l(o,e);return r<0?(++this.size,o.push([e,t])):o[r][1]=t,this}function No(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var r=e[t];this.set(r[0],r[1])}}No.prototype.clear=vy;No.prototype.delete=Cy;No.prototype.get=yy;No.prototype.has=wy;No.prototype.set=Sy;var ii=Ar(uo,"Map");function $y(){this.size=0,this.__data__={hash:new Ir,map:new(ii||No),string:new Ir}}function Py(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function Pl(e,t){var o=e.__data__;return Py(t)?o[typeof t=="string"?"string":"hash"]:o.map}function Ty(e){var t=Pl(this,e).delete(e);return this.size-=t?1:0,t}function _y(e){return Pl(this,e).get(e)}function zy(e){return Pl(this,e).has(e)}function Ey(e,t){var o=Pl(this,e),r=o.size;return o.set(e,t),this.size+=o.size==r?0:1,this}function Uo(e){var t=-1,o=e==null?0:e.length;for(this.clear();++t<o;){var r=e[t];this.set(r[0],r[1])}}Uo.prototype.clear=$y;Uo.prototype.delete=Ty;Uo.prototype.get=_y;Uo.prototype.has=zy;Uo.prototype.set=Ey;var Iy="Expected a function";function bs(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(Iy);var o=function(){var r=arguments,n=t?t.apply(this,r):r[0],i=o.cache;if(i.has(n))return i.get(n);var a=e.apply(this,r);return o.cache=i.set(n,a)||i,a};return o.cache=new(bs.Cache||Uo),o}bs.Cache=Uo;var Ry=500;function My(e){var t=bs(e,function(r){return o.size===Ry&&o.clear(),r}),o=t.cache;return t}var By=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ay=/\\(\\)?/g,Hy=My(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(By,function(o,r,n,i){t.push(n?i.replace(Ay,"$1"):r||o)}),t});function Gf(e){return e==null?"":Lf(e)}function Kf(e,t){return oo(e)?e:vs(e,t)?[e]:Hy(Gf(e))}function Tl(e){if(typeof e=="string"||Sl(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}function qf(e,t){t=Kf(t,e);for(var o=0,r=t.length;e!=null&&o<r;)e=e[Tl(t[o++])];return o&&o==r?e:void 0}function ky(e,t,o){var r=e==null?void 0:qf(e,t);return r===void 0?o:r}function Fy(e,t){for(var o=-1,r=t.length,n=e.length;++o<r;)e[n+o]=t[o];return e}var Yf=Nf(Object.getPrototypeOf,Object),Oy="[object Object]",Ly=Function.prototype,Dy=Object.prototype,Xf=Ly.toString,Wy=Dy.hasOwnProperty,jy=Xf.call(Object);function Vy(e){if(!ur(e)||Mr(e)!=Oy)return!1;var t=Yf(e);if(t===null)return!0;var o=Wy.call(t,"constructor")&&t.constructor;return typeof o=="function"&&o instanceof o&&Xf.call(o)==jy}function Ny(e,t,o){var r=-1,n=e.length;t<0&&(t=-t>n?0:n+t),o=o>n?n:o,o<0&&(o+=n),n=t>o?0:o-t>>>0,t>>>=0;for(var i=Array(n);++r<n;)i[r]=e[r+t];return i}function Uy(e,t,o){var r=e.length;return o=o===void 0?r:o,!t&&o>=r?e:Ny(e,t,o)}var Gy="\\ud800-\\udfff",Ky="\\u0300-\\u036f",qy="\\ufe20-\\ufe2f",Yy="\\u20d0-\\u20ff",Xy=Ky+qy+Yy,Zy="\\ufe0e\\ufe0f",Jy="\\u200d",Qy=RegExp("["+Jy+Gy+Xy+Zy+"]");function Zf(e){return Qy.test(e)}function e1(e){return e.split("")}var Jf="\\ud800-\\udfff",t1="\\u0300-\\u036f",o1="\\ufe20-\\ufe2f",r1="\\u20d0-\\u20ff",n1=t1+o1+r1,i1="\\ufe0e\\ufe0f",l1="["+Jf+"]",Ma="["+n1+"]",Ba="\\ud83c[\\udffb-\\udfff]",a1="(?:"+Ma+"|"+Ba+")",Qf="[^"+Jf+"]",eh="(?:\\ud83c[\\udde6-\\uddff]){2}",th="[\\ud800-\\udbff][\\udc00-\\udfff]",s1="\\u200d",oh=a1+"?",rh="["+i1+"]?",c1="(?:"+s1+"(?:"+[Qf,eh,th].join("|")+")"+rh+oh+")*",d1=rh+oh+c1,u1="(?:"+[Qf+Ma+"?",Ma,eh,th,l1].join("|")+")",f1=RegExp(Ba+"(?="+Ba+")|"+u1+d1,"g");function h1(e){return e.match(f1)||[]}function p1(e){return Zf(e)?h1(e):e1(e)}function g1(e){return function(t){t=Gf(t);var o=Zf(t)?p1(t):void 0,r=o?o[0]:t.charAt(0),n=o?Uy(o,1).join(""):t.slice(1);return r[e]()+n}}var m1=g1("toUpperCase");function v1(){this.__data__=new No,this.size=0}function b1(e){var t=this.__data__,o=t.delete(e);return this.size=t.size,o}function x1(e){return this.__data__.get(e)}function C1(e){return this.__data__.has(e)}var y1=200;function w1(e,t){var o=this.__data__;if(o instanceof No){var r=o.__data__;if(!ii||r.length<y1-1)return r.push([e,t]),this.size=++o.size,this;o=this.__data__=new Uo(r)}return o.set(e,t),this.size=o.size,this}function wo(e){var t=this.__data__=new No(e);this.size=t.size}wo.prototype.clear=v1;wo.prototype.delete=b1;wo.prototype.get=x1;wo.prototype.has=C1;wo.prototype.set=w1;var nh=typeof Gt=="object"&&Gt&&!Gt.nodeType&&Gt,Yc=nh&&typeof Kt=="object"&&Kt&&!Kt.nodeType&&Kt,S1=Yc&&Yc.exports===nh,Xc=S1?uo.Buffer:void 0;Xc&&Xc.allocUnsafe;function $1(e,t){return e.slice()}function P1(e,t){for(var o=-1,r=e==null?0:e.length,n=0,i=[];++o<r;){var a=e[o];t(a,o,e)&&(i[n++]=a)}return i}function T1(){return[]}var _1=Object.prototype,z1=_1.propertyIsEnumerable,Zc=Object.getOwnPropertySymbols,E1=Zc?function(e){return e==null?[]:(e=Object(e),P1(Zc(e),function(t){return z1.call(e,t)}))}:T1;function I1(e,t,o){var r=t(e);return oo(e)?r:Fy(r,o(e))}function Jc(e){return I1(e,ms,E1)}var Aa=Ar(uo,"DataView"),Ha=Ar(uo,"Promise"),ka=Ar(uo,"Set"),Qc="[object Map]",R1="[object Object]",ed="[object Promise]",td="[object Set]",od="[object WeakMap]",rd="[object DataView]",M1=Br(Aa),B1=Br(ii),A1=Br(Ha),H1=Br(ka),k1=Br(Ra),or=Mr;(Aa&&or(new Aa(new ArrayBuffer(1)))!=rd||ii&&or(new ii)!=Qc||Ha&&or(Ha.resolve())!=ed||ka&&or(new ka)!=td||Ra&&or(new Ra)!=od)&&(or=function(e){var t=Mr(e),o=t==R1?e.constructor:void 0,r=o?Br(o):"";if(r)switch(r){case M1:return rd;case B1:return Qc;case A1:return ed;case H1:return td;case k1:return od}return t});var rl=uo.Uint8Array;function F1(e){var t=new e.constructor(e.byteLength);return new rl(t).set(new rl(e)),t}function O1(e,t){var o=F1(e.buffer);return new e.constructor(o,e.byteOffset,e.length)}function L1(e){return typeof e.constructor=="function"&&!ps(e)?Gx(Yf(e)):{}}var D1="__lodash_hash_undefined__";function W1(e){return this.__data__.set(e,D1),this}function j1(e){return this.__data__.has(e)}function nl(e){var t=-1,o=e==null?0:e.length;for(this.__data__=new Uo;++t<o;)this.add(e[t])}nl.prototype.add=nl.prototype.push=W1;nl.prototype.has=j1;function V1(e,t){for(var o=-1,r=e==null?0:e.length;++o<r;)if(t(e[o],o,e))return!0;return!1}function N1(e,t){return e.has(t)}var U1=1,G1=2;function ih(e,t,o,r,n,i){var a=o&U1,l=e.length,s=t.length;if(l!=s&&!(a&&s>l))return!1;var d=i.get(e),c=i.get(t);if(d&&c)return d==t&&c==e;var u=-1,h=!0,f=o&G1?new nl:void 0;for(i.set(e,t),i.set(t,e);++u<l;){var p=e[u],g=t[u];if(r)var x=a?r(g,p,u,t,e,i):r(p,g,u,e,t,i);if(x!==void 0){if(x)continue;h=!1;break}if(f){if(!V1(t,function(v,y){if(!N1(f,y)&&(p===v||n(p,v,o,r,i)))return f.push(y)})){h=!1;break}}else if(!(p===g||n(p,g,o,r,i))){h=!1;break}}return i.delete(e),i.delete(t),h}function K1(e){var t=-1,o=Array(e.size);return e.forEach(function(r,n){o[++t]=[n,r]}),o}function q1(e){var t=-1,o=Array(e.size);return e.forEach(function(r){o[++t]=r}),o}var Y1=1,X1=2,Z1="[object Boolean]",J1="[object Date]",Q1="[object Error]",ew="[object Map]",tw="[object Number]",ow="[object RegExp]",rw="[object Set]",nw="[object String]",iw="[object Symbol]",lw="[object ArrayBuffer]",aw="[object DataView]",nd=dr?dr.prototype:void 0,oa=nd?nd.valueOf:void 0;function sw(e,t,o,r,n,i,a){switch(o){case aw:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case lw:return!(e.byteLength!=t.byteLength||!i(new rl(e),new rl(t)));case Z1:case J1:case tw:return gi(+e,+t);case Q1:return e.name==t.name&&e.message==t.message;case ow:case nw:return e==t+"";case ew:var l=K1;case rw:var s=r&Y1;if(l||(l=q1),e.size!=t.size&&!s)return!1;var d=a.get(e);if(d)return d==t;r|=X1,a.set(e,t);var c=ih(l(e),l(t),r,n,i,a);return a.delete(e),c;case iw:if(oa)return oa.call(e)==oa.call(t)}return!1}var cw=1,dw=Object.prototype,uw=dw.hasOwnProperty;function fw(e,t,o,r,n,i){var a=o&cw,l=Jc(e),s=l.length,d=Jc(t),c=d.length;if(s!=c&&!a)return!1;for(var u=s;u--;){var h=l[u];if(!(a?h in t:uw.call(t,h)))return!1}var f=i.get(e),p=i.get(t);if(f&&p)return f==t&&p==e;var g=!0;i.set(e,t),i.set(t,e);for(var x=a;++u<s;){h=l[u];var v=e[h],y=t[h];if(r)var I=a?r(y,v,h,t,e,i):r(v,y,h,e,t,i);if(!(I===void 0?v===y||n(v,y,o,r,i):I)){g=!1;break}x||(x=h=="constructor")}if(g&&!x){var $=e.constructor,E=t.constructor;$!=E&&"constructor"in e&&"constructor"in t&&!(typeof $=="function"&&$ instanceof $&&typeof E=="function"&&E instanceof E)&&(g=!1)}return i.delete(e),i.delete(t),g}var hw=1,id="[object Arguments]",ld="[object Array]",Mi="[object Object]",pw=Object.prototype,ad=pw.hasOwnProperty;function gw(e,t,o,r,n,i){var a=oo(e),l=oo(t),s=a?ld:or(e),d=l?ld:or(t);s=s==id?Mi:s,d=d==id?Mi:d;var c=s==Mi,u=d==Mi,h=s==d;if(h&&ol(e)){if(!ol(t))return!1;a=!0,c=!1}if(h&&!c)return i||(i=new wo),a||gs(e)?ih(e,t,o,r,n,i):sw(e,t,s,o,r,n,i);if(!(o&hw)){var f=c&&ad.call(e,"__wrapped__"),p=u&&ad.call(t,"__wrapped__");if(f||p){var g=f?e.value():e,x=p?t.value():t;return i||(i=new wo),n(g,x,o,r,i)}}return h?(i||(i=new wo),fw(e,t,o,r,n,i)):!1}function xs(e,t,o,r,n){return e===t?!0:e==null||t==null||!ur(e)&&!ur(t)?e!==e&&t!==t:gw(e,t,o,r,xs,n)}var mw=1,vw=2;function bw(e,t,o,r){var n=o.length,i=n;if(e==null)return!i;for(e=Object(e);n--;){var a=o[n];if(a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++n<i;){a=o[n];var l=a[0],s=e[l],d=a[1];if(a[2]){if(s===void 0&&!(l in e))return!1}else{var c=new wo,u;if(!(u===void 0?xs(d,s,mw|vw,r,c):u))return!1}}return!0}function lh(e){return e===e&&!ro(e)}function xw(e){for(var t=ms(e),o=t.length;o--;){var r=t[o],n=e[r];t[o]=[r,n,lh(n)]}return t}function ah(e,t){return function(o){return o==null?!1:o[e]===t&&(t!==void 0||e in Object(o))}}function Cw(e){var t=xw(e);return t.length==1&&t[0][2]?ah(t[0][0],t[0][1]):function(o){return o===e||bw(o,e,t)}}function yw(e,t){return e!=null&&t in Object(e)}function ww(e,t,o){t=Kf(t,e);for(var r=-1,n=t.length,i=!1;++r<n;){var a=Tl(t[r]);if(!(i=e!=null&&o(e,a)))break;e=e[a]}return i||++r!=n?i:(n=e==null?0:e.length,!!n&&hs(n)&&us(a,n)&&(oo(e)||tl(e)))}function Sw(e,t){return e!=null&&ww(e,t,yw)}var $w=1,Pw=2;function Tw(e,t){return vs(e)&&lh(t)?ah(Tl(e),t):function(o){var r=ky(o,e);return r===void 0&&r===t?Sw(o,e):xs(t,r,$w|Pw)}}function _w(e){return function(t){return t==null?void 0:t[e]}}function zw(e){return function(t){return qf(t,e)}}function Ew(e){return vs(e)?_w(Tl(e)):zw(e)}function Iw(e){return typeof e=="function"?e:e==null?cs:typeof e=="object"?oo(e)?Tw(e[0],e[1]):Cw(e):Ew(e)}function Rw(e){return function(t,o,r){for(var n=-1,i=Object(t),a=r(t),l=a.length;l--;){var s=a[++n];if(o(i[s],s,i)===!1)break}return t}}var sh=Rw();function Mw(e,t){return e&&sh(e,t,ms)}function Bw(e,t){return function(o,r){if(o==null)return o;if(!gn(o))return e(o,r);for(var n=o.length,i=-1,a=Object(o);++i<n&&r(a[i],i,a)!==!1;);return o}}var Aw=Bw(Mw),ra=function(){return uo.Date.now()},Hw="Expected a function",kw=Math.max,Fw=Math.min;function Ow(e,t,o){var r,n,i,a,l,s,d=0,c=!1,u=!1,h=!0;if(typeof e!="function")throw new TypeError(Hw);t=Dc(t)||0,ro(o)&&(c=!!o.leading,u="maxWait"in o,i=u?kw(Dc(o.maxWait)||0,t):i,h="trailing"in o?!!o.trailing:h);function f(P){var b=r,A=n;return r=n=void 0,d=P,a=e.apply(A,b),a}function p(P){return d=P,l=setTimeout(v,t),c?f(P):a}function g(P){var b=P-s,A=P-d,_=t-b;return u?Fw(_,i-A):_}function x(P){var b=P-s,A=P-d;return s===void 0||b>=t||b<0||u&&A>=i}function v(){var P=ra();if(x(P))return y(P);l=setTimeout(v,g(P))}function y(P){return l=void 0,h&&r?f(P):(r=n=void 0,a)}function I(){l!==void 0&&clearTimeout(l),d=0,r=s=n=l=void 0}function $(){return l===void 0?a:y(ra())}function E(){var P=ra(),b=x(P);if(r=arguments,n=this,s=P,b){if(l===void 0)return p(s);if(u)return clearTimeout(l),l=setTimeout(v,t),f(s)}return l===void 0&&(l=setTimeout(v,t)),a}return E.cancel=I,E.flush=$,E}function Fa(e,t,o){(o!==void 0&&!gi(e[t],o)||o===void 0&&!(t in e))&&fs(e,t,o)}function Lw(e){return ur(e)&&gn(e)}function Oa(e,t){if(!(t==="constructor"&&typeof e[t]=="function")&&t!="__proto__")return e[t]}function Dw(e){return aC(e,Uf(e))}function Ww(e,t,o,r,n,i,a){var l=Oa(e,o),s=Oa(t,o),d=a.get(s);if(d){Fa(e,o,d);return}var c=i?i(l,s,o+"",e,t,a):void 0,u=c===void 0;if(u){var h=oo(s),f=!h&&ol(s),p=!h&&!f&&gs(s);c=s,h||f||p?oo(l)?c=l:Lw(l)?c=qx(l):f?(u=!1,c=$1(s)):p?(u=!1,c=O1(s)):c=[]:Vy(s)||tl(s)?(c=l,tl(l)?c=Dw(l):(!ro(l)||ds(l))&&(c=L1(s))):u=!1}u&&(a.set(s,c),n(c,s,r,i,a),a.delete(s)),Fa(e,o,c)}function ch(e,t,o,r,n){e!==t&&sh(t,function(i,a){if(n||(n=new wo),ro(i))Ww(e,t,a,o,ch,r,n);else{var l=r?r(Oa(e,a),i,a+"",e,t,n):void 0;l===void 0&&(l=i),Fa(e,a,l)}},Uf)}function jw(e,t){var o=-1,r=gn(e)?Array(e.length):[];return Aw(e,function(n,i,a){r[++o]=t(n,i,a)}),r}function Vw(e,t){var o=oo(e)?Of:jw;return o(e,Iw(t))}var Bn=fC(function(e,t,o){ch(e,t,o)}),Nw="Expected a function";function dh(e,t,o){var r=!0,n=!0;if(typeof e!="function")throw new TypeError(Nw);return ro(o)&&(r="leading"in o?!!o.leading:r,n="trailing"in o?!!o.trailing:n),Ow(e,t,{leading:r,maxWait:t,trailing:n})}function li(e){const{mergedLocaleRef:t,mergedDateLocaleRef:o}=Le(To,null)||{},r=N(()=>{var i,a;return(a=(i=t==null?void 0:t.value)===null||i===void 0?void 0:i[e])!==null&&a!==void 0?a:R0[e]});return{dateLocaleRef:N(()=>{var i;return(i=o==null?void 0:o.value)!==null&&i!==void 0?i:ux}),localeRef:r}}const ai="naive-ui-style";function fo(e,t,o){if(!t)return;const r=pn(),n=N(()=>{const{value:l}=t;if(!l)return;const s=l[e];if(s)return s}),i=Le(To,null),a=()=>{So(()=>{const{value:l}=o,s=`${l}${e}Rtl`;if(Zv(s,r))return;const{value:d}=n;d&&d.style.mount({id:s,head:!0,anchorMetaName:ai,props:{bPrefix:l?`.${l}-`:void 0},ssr:r,parent:i==null?void 0:i.styleMountTarget})})};return r?a():vl(a),n}const hr={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:Uw,fontFamily:Gw,lineHeight:Kw}=hr,uh=B("body",`
|
|
31
|
+
margin: 0;
|
|
32
|
+
font-size: ${Uw};
|
|
33
|
+
font-family: ${Gw};
|
|
34
|
+
line-height: ${Kw};
|
|
35
|
+
-webkit-text-size-adjust: 100%;
|
|
36
|
+
-webkit-tap-highlight-color: transparent;
|
|
37
|
+
`,[B("input",`
|
|
38
|
+
font-family: inherit;
|
|
39
|
+
font-size: inherit;
|
|
40
|
+
`)]);function Hr(e,t,o){if(!t)return;const r=pn(),n=Le(To,null),i=()=>{const a=o.value;t.mount({id:a===void 0?e:a+e,head:!0,anchorMetaName:ai,props:{bPrefix:a?`.${a}-`:void 0},ssr:r,parent:n==null?void 0:n.styleMountTarget}),n!=null&&n.preflightStyleDisabled||uh.mount({id:"n-global",head:!0,anchorMetaName:ai,ssr:r,parent:n==null?void 0:n.styleMountTarget})};r?i():vl(i)}function _e(e,t,o,r,n,i){const a=pn(),l=Le(To,null);if(o){const d=()=>{const c=i==null?void 0:i.value;o.mount({id:c===void 0?t:c+t,head:!0,props:{bPrefix:c?`.${c}-`:void 0},anchorMetaName:ai,ssr:a,parent:l==null?void 0:l.styleMountTarget}),l!=null&&l.preflightStyleDisabled||uh.mount({id:"n-global",head:!0,anchorMetaName:ai,ssr:a,parent:l==null?void 0:l.styleMountTarget})};a?d():vl(d)}return N(()=>{var d;const{theme:{common:c,self:u,peers:h={}}={},themeOverrides:f={},builtinThemeOverrides:p={}}=n,{common:g,peers:x}=f,{common:v=void 0,[e]:{common:y=void 0,self:I=void 0,peers:$={}}={}}=(l==null?void 0:l.mergedThemeRef.value)||{},{common:E=void 0,[e]:P={}}=(l==null?void 0:l.mergedThemeOverridesRef.value)||{},{common:b,peers:A={}}=P,_=Bn({},c||y||v||r.common,E,b,g),k=Bn((d=u||I||r.self)===null||d===void 0?void 0:d(_),p,P,f);return{common:_,self:k,peers:Bn({},r.peers,$,h),peerOverrides:Bn({},p.peers,A,x)}})}_e.props={theme:Object,themeOverrides:Object,builtinThemeOverrides:Object};const qw=M("base-icon",`
|
|
41
|
+
height: 1em;
|
|
42
|
+
width: 1em;
|
|
43
|
+
line-height: 1em;
|
|
44
|
+
text-align: center;
|
|
45
|
+
display: inline-block;
|
|
46
|
+
position: relative;
|
|
47
|
+
fill: currentColor;
|
|
48
|
+
`,[B("svg",`
|
|
49
|
+
height: 1em;
|
|
50
|
+
width: 1em;
|
|
51
|
+
`)]),_o=ge({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){Hr("-base-icon",qw,Be(e,"clsPrefix"))},render(){return m("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)}}),_l=ge({name:"BaseIconSwitchTransition",setup(e,{slots:t}){const o=wl();return()=>m(sr,{name:"icon-switch-transition",appear:o.value},t)}}),Yw=ge({name:"Add",render(){return m("svg",{width:"512",height:"512",viewBox:"0 0 512 512",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m("path",{d:"M256 112V400M400 256H112",stroke:"currentColor","stroke-width":"32","stroke-linecap":"round","stroke-linejoin":"round"}))}});function mn(e,t){const o=ge({render(){return t()}});return ge({name:m1(e),setup(){var r;const n=(r=Le(To,null))===null||r===void 0?void 0:r.mergedIconsRef;return()=>{var i;const a=(i=n==null?void 0:n.value)===null||i===void 0?void 0:i[e];return a?a():m(o,null)}}})}const Xw=ge({name:"ChevronDown",render(){return m("svg",{viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m("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"}))}}),Zw=mn("clear",()=>m("svg",{viewBox:"0 0 16 16",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},m("g",{fill:"currentColor","fill-rule":"nonzero"},m("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"}))))),Jw=mn("close",()=>m("svg",{viewBox:"0 0 12 12",version:"1.1",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0},m("g",{stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},m("g",{fill:"currentColor","fill-rule":"nonzero"},m("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"}))))),Qw=ge({name:"Empty",render(){return m("svg",{viewBox:"0 0 28 28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},m("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"}),m("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"}))}}),eS=mn("error",()=>m("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},m("g",{"fill-rule":"nonzero"},m("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M17.8838835,16.1161165 L17.7823881,16.0249942 C17.3266086,15.6583353 16.6733914,15.6583353 16.2176119,16.0249942 L16.1161165,16.1161165 L16.0249942,16.2176119 C15.6583353,16.6733914 15.6583353,17.3266086 16.0249942,17.7823881 L16.1161165,17.8838835 L22.233,24 L16.1161165,30.1161165 L16.0249942,30.2176119 C15.6583353,30.6733914 15.6583353,31.3266086 16.0249942,31.7823881 L16.1161165,31.8838835 L16.2176119,31.9750058 C16.6733914,32.3416647 17.3266086,32.3416647 17.7823881,31.9750058 L17.8838835,31.8838835 L24,25.767 L30.1161165,31.8838835 L30.2176119,31.9750058 C30.6733914,32.3416647 31.3266086,32.3416647 31.7823881,31.9750058 L31.8838835,31.8838835 L31.9750058,31.7823881 C32.3416647,31.3266086 32.3416647,30.6733914 31.9750058,30.2176119 L31.8838835,30.1161165 L25.767,24 L31.8838835,17.8838835 L31.9750058,17.7823881 C32.3416647,17.3266086 32.3416647,16.6733914 31.9750058,16.2176119 L31.8838835,16.1161165 L31.7823881,16.0249942 C31.3266086,15.6583353 30.6733914,15.6583353 30.2176119,16.0249942 L30.1161165,16.1161165 L24,22.233 L17.8838835,16.1161165 L17.7823881,16.0249942 L17.8838835,16.1161165 Z"}))))),tS=ge({name:"Eye",render(){return m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},m("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"}),m("circle",{cx:"256",cy:"256",r:"80",fill:"none",stroke:"currentColor","stroke-miterlimit":"10","stroke-width":"32"}))}}),oS=ge({name:"EyeOff",render(){return m("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512"},m("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"}),m("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"}),m("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"}),m("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"}),m("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"}))}}),rS=mn("info",()=>m("svg",{viewBox:"0 0 28 28",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},m("g",{"fill-rule":"nonzero"},m("path",{d:"M14,2 C20.6274,2 26,7.37258 26,14 C26,20.6274 20.6274,26 14,26 C7.37258,26 2,20.6274 2,14 C2,7.37258 7.37258,2 14,2 Z M14,11 C13.4477,11 13,11.4477 13,12 L13,12 L13,20 C13,20.5523 13.4477,21 14,21 C14.5523,21 15,20.5523 15,20 L15,20 L15,12 C15,11.4477 14.5523,11 14,11 Z M14,6.75 C13.3096,6.75 12.75,7.30964 12.75,8 C12.75,8.69036 13.3096,9.25 14,9.25 C14.6904,9.25 15.25,8.69036 15.25,8 C15.25,7.30964 14.6904,6.75 14,6.75 Z"}))))),nS=mn("success",()=>m("svg",{viewBox:"0 0 48 48",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},m("g",{"fill-rule":"nonzero"},m("path",{d:"M24,4 C35.045695,4 44,12.954305 44,24 C44,35.045695 35.045695,44 24,44 C12.954305,44 4,35.045695 4,24 C4,12.954305 12.954305,4 24,4 Z M32.6338835,17.6161165 C32.1782718,17.1605048 31.4584514,17.1301307 30.9676119,17.5249942 L30.8661165,17.6161165 L20.75,27.732233 L17.1338835,24.1161165 C16.6457281,23.6279612 15.8542719,23.6279612 15.3661165,24.1161165 C14.9105048,24.5717282 14.8801307,25.2915486 15.2749942,25.7823881 L15.3661165,25.8838835 L19.8661165,30.3838835 C20.3217282,30.8394952 21.0415486,30.8698693 21.5323881,30.4750058 L21.6338835,30.3838835 L32.6338835,19.3838835 C33.1220388,18.8957281 33.1220388,18.1042719 32.6338835,17.6161165 Z"}))))),fh=mn("warning",()=>m("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},m("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},m("g",{"fill-rule":"nonzero"},m("path",{d:"M12,2 C17.523,2 22,6.478 22,12 C22,17.522 17.523,22 12,22 C6.477,22 2,17.522 2,12 C2,6.478 6.477,2 12,2 Z M12.0018002,15.0037242 C11.450254,15.0037242 11.0031376,15.4508407 11.0031376,16.0023869 C11.0031376,16.553933 11.450254,17.0010495 12.0018002,17.0010495 C12.5533463,17.0010495 13.0004628,16.553933 13.0004628,16.0023869 C13.0004628,15.4508407 12.5533463,15.0037242 12.0018002,15.0037242 Z M11.99964,7 C11.4868042,7.00018474 11.0642719,7.38637706 11.0066858,7.8837365 L11,8.00036004 L11.0018003,13.0012393 L11.00857,13.117858 C11.0665141,13.6151758 11.4893244,14.0010638 12.0021602,14.0008793 C12.514996,14.0006946 12.9375283,13.6145023 12.9951144,13.1171428 L13.0018002,13.0005193 L13,7.99964009 L12.9932303,7.8830214 C12.9352861,7.38570354 12.5124758,6.99981552 11.99964,7 Z"}))))),{cubicBezierEaseInOut:iS}=hr;function si({originalTransform:e="",left:t=0,top:o=0,transition:r=`all .3s ${iS} !important`}={}){return[B("&.icon-switch-transition-enter-from, &.icon-switch-transition-leave-to",{transform:`${e} scale(0.75)`,left:t,top:o,opacity:0}),B("&.icon-switch-transition-enter-to, &.icon-switch-transition-leave-from",{transform:`scale(1) ${e}`,left:t,top:o,opacity:1}),B("&.icon-switch-transition-enter-active, &.icon-switch-transition-leave-active",{transformOrigin:"center",position:"absolute",left:t,top:o,transition:r})]}const lS=M("base-clear",`
|
|
52
|
+
flex-shrink: 0;
|
|
53
|
+
height: 1em;
|
|
54
|
+
width: 1em;
|
|
55
|
+
position: relative;
|
|
56
|
+
`,[B(">",[O("clear",`
|
|
57
|
+
font-size: var(--n-clear-size);
|
|
58
|
+
height: 1em;
|
|
59
|
+
width: 1em;
|
|
60
|
+
cursor: pointer;
|
|
61
|
+
color: var(--n-clear-color);
|
|
62
|
+
transition: color .3s var(--n-bezier);
|
|
63
|
+
display: flex;
|
|
64
|
+
`,[B("&:hover",`
|
|
65
|
+
color: var(--n-clear-color-hover)!important;
|
|
66
|
+
`),B("&:active",`
|
|
67
|
+
color: var(--n-clear-color-pressed)!important;
|
|
68
|
+
`)]),O("placeholder",`
|
|
69
|
+
display: flex;
|
|
70
|
+
`),O("clear, placeholder",`
|
|
71
|
+
position: absolute;
|
|
72
|
+
left: 50%;
|
|
73
|
+
top: 50%;
|
|
74
|
+
transform: translateX(-50%) translateY(-50%);
|
|
75
|
+
`,[si({originalTransform:"translateX(-50%) translateY(-50%)",left:"50%",top:"50%"})])])]),La=ge({name:"BaseClear",props:{clsPrefix:{type:String,required:!0},show:Boolean,onClear:Function},setup(e){return Hr("-base-clear",lS,Be(e,"clsPrefix")),{handleMouseDown(t){t.preventDefault()}}},render(){const{clsPrefix:e}=this;return m("div",{class:`${e}-base-clear`},m(_l,null,{default:()=>{var t,o;return this.show?m("div",{key:"dismiss",class:`${e}-base-clear__clear`,onClick:this.onClear,onMousedown:this.handleMouseDown,"data-clear":!0},lr(this.$slots.icon,()=>[m(_o,{clsPrefix:e},{default:()=>m(Zw,null)})])):m("div",{key:"icon",class:`${e}-base-clear__placeholder`},(o=(t=this.$slots).placeholder)===null||o===void 0?void 0:o.call(t))}}))}}),aS=M("base-close",`
|
|
76
|
+
display: flex;
|
|
77
|
+
align-items: center;
|
|
78
|
+
justify-content: center;
|
|
79
|
+
cursor: pointer;
|
|
80
|
+
background-color: transparent;
|
|
81
|
+
color: var(--n-close-icon-color);
|
|
82
|
+
border-radius: var(--n-close-border-radius);
|
|
83
|
+
height: var(--n-close-size);
|
|
84
|
+
width: var(--n-close-size);
|
|
85
|
+
font-size: var(--n-close-icon-size);
|
|
86
|
+
outline: none;
|
|
87
|
+
border: none;
|
|
88
|
+
position: relative;
|
|
89
|
+
padding: 0;
|
|
90
|
+
`,[D("absolute",`
|
|
91
|
+
height: var(--n-close-icon-size);
|
|
92
|
+
width: var(--n-close-icon-size);
|
|
93
|
+
`),B("&::before",`
|
|
94
|
+
content: "";
|
|
95
|
+
position: absolute;
|
|
96
|
+
width: var(--n-close-size);
|
|
97
|
+
height: var(--n-close-size);
|
|
98
|
+
left: 50%;
|
|
99
|
+
top: 50%;
|
|
100
|
+
transform: translateY(-50%) translateX(-50%);
|
|
101
|
+
transition: inherit;
|
|
102
|
+
border-radius: inherit;
|
|
103
|
+
`),St("disabled",[B("&:hover",`
|
|
104
|
+
color: var(--n-close-icon-color-hover);
|
|
105
|
+
`),B("&:hover::before",`
|
|
106
|
+
background-color: var(--n-close-color-hover);
|
|
107
|
+
`),B("&:focus::before",`
|
|
108
|
+
background-color: var(--n-close-color-hover);
|
|
109
|
+
`),B("&:active",`
|
|
110
|
+
color: var(--n-close-icon-color-pressed);
|
|
111
|
+
`),B("&:active::before",`
|
|
112
|
+
background-color: var(--n-close-color-pressed);
|
|
113
|
+
`)]),D("disabled",`
|
|
114
|
+
cursor: not-allowed;
|
|
115
|
+
color: var(--n-close-icon-color-disabled);
|
|
116
|
+
background-color: transparent;
|
|
117
|
+
`),D("round",[B("&::before",`
|
|
118
|
+
border-radius: 50%;
|
|
119
|
+
`)])]),zl=ge({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 Hr("-base-close",aS,Be(e,"clsPrefix")),()=>{const{clsPrefix:t,disabled:o,absolute:r,round:n,isButtonTag:i}=e;return m(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`,r&&`${t}-base-close--absolute`,o&&`${t}-base-close--disabled`,n&&`${t}-base-close--round`],onMousedown:l=>{e.focusable||l.preventDefault()},onClick:e.onClick},m(_o,{clsPrefix:t},{default:()=>m(Jw,null)}))}}}),hh=ge({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(l){e.width?l.style.maxWidth=`${l.offsetWidth}px`:l.style.maxHeight=`${l.offsetHeight}px`,l.offsetWidth}function r(l){e.width?l.style.maxWidth="0":l.style.maxHeight="0",l.offsetWidth;const{onLeave:s}=e;s&&s()}function n(l){e.width?l.style.maxWidth="":l.style.maxHeight="";const{onAfterLeave:s}=e;s&&s()}function i(l){if(l.style.transition="none",e.width){const s=l.offsetWidth;l.style.maxWidth="0",l.offsetWidth,l.style.transition="",l.style.maxWidth=`${s}px`}else if(e.reverse)l.style.maxHeight=`${l.offsetHeight}px`,l.offsetHeight,l.style.transition="",l.style.maxHeight="0";else{const s=l.offsetHeight;l.style.maxHeight="0",l.offsetWidth,l.style.transition="",l.style.maxHeight=`${s}px`}l.offsetWidth}function a(l){var s;e.width?l.style.maxWidth="":e.reverse||(l.style.maxHeight=""),(s=e.onAfterEnter)===null||s===void 0||s.call(e)}return()=>{const{group:l,width:s,appear:d,mode:c}=e,u=l?Gu:sr,h={name:s?"fade-in-width-expand-transition":"fade-in-height-expand-transition",appear:d,onEnter:i,onAfterEnter:a,onBeforeLeave:o,onLeave:r,onAfterLeave:n};return l||(h.mode=c),m(u,h,t)}}}),sS=B([B("@keyframes rotator",`
|
|
120
|
+
0% {
|
|
121
|
+
-webkit-transform: rotate(0deg);
|
|
122
|
+
transform: rotate(0deg);
|
|
123
|
+
}
|
|
124
|
+
100% {
|
|
125
|
+
-webkit-transform: rotate(360deg);
|
|
126
|
+
transform: rotate(360deg);
|
|
127
|
+
}`),M("base-loading",`
|
|
128
|
+
position: relative;
|
|
129
|
+
line-height: 0;
|
|
130
|
+
width: 1em;
|
|
131
|
+
height: 1em;
|
|
132
|
+
`,[O("transition-wrapper",`
|
|
133
|
+
position: absolute;
|
|
134
|
+
width: 100%;
|
|
135
|
+
height: 100%;
|
|
136
|
+
`,[si()]),O("placeholder",`
|
|
137
|
+
position: absolute;
|
|
138
|
+
left: 50%;
|
|
139
|
+
top: 50%;
|
|
140
|
+
transform: translateX(-50%) translateY(-50%);
|
|
141
|
+
`,[si({left:"50%",top:"50%",originalTransform:"translateX(-50%) translateY(-50%)"})]),O("container",`
|
|
142
|
+
animation: rotator 3s linear infinite both;
|
|
143
|
+
`,[O("icon",`
|
|
144
|
+
height: 1em;
|
|
145
|
+
width: 1em;
|
|
146
|
+
`)])])]),na="1.6s",cS={strokeWidth:{type:Number,default:28},stroke:{type:String,default:void 0}},mi=ge({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}},cS),setup(e){Hr("-base-loading",sS,Be(e,"clsPrefix"))},render(){const{clsPrefix:e,radius:t,strokeWidth:o,stroke:r,scale:n}=this,i=t/n;return m("div",{class:`${e}-base-loading`,role:"img","aria-label":"loading"},m(_l,null,{default:()=>this.show?m("div",{key:"icon",class:`${e}-base-loading__transition-wrapper`},m("div",{class:`${e}-base-loading__container`},m("svg",{class:`${e}-base-loading__icon`,viewBox:`0 0 ${2*i} ${2*i}`,xmlns:"http://www.w3.org/2000/svg",style:{color:r}},m("g",null,m("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};270 ${i} ${i}`,begin:"0s",dur:na,fill:"freeze",repeatCount:"indefinite"}),m("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},m("animateTransform",{attributeName:"transform",type:"rotate",values:`0 ${i} ${i};135 ${i} ${i};450 ${i} ${i}`,begin:"0s",dur:na,fill:"freeze",repeatCount:"indefinite"}),m("animate",{attributeName:"stroke-dashoffset",values:`${5.67*t};${1.42*t};${5.67*t}`,begin:"0s",dur:na,fill:"freeze",repeatCount:"indefinite"})))))):m("div",{key:"placeholder",class:`${e}-base-loading__placeholder`},this.$slots)}))}}),{cubicBezierEaseInOut:sd}=hr;function ph({name:e="fade-in",enterDuration:t="0.2s",leaveDuration:o="0.2s",enterCubicBezier:r=sd,leaveCubicBezier:n=sd}={}){return[B(`&.${e}-transition-enter-active`,{transition:`all ${t} ${r}!important`}),B(`&.${e}-transition-leave-active`,{transition:`all ${o} ${n}!important`}),B(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),B(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const de={neutralBase:"#000",neutralInvertBase:"#fff",neutralTextBase:"#fff",neutralPopover:"rgb(72, 72, 78)",neutralCard:"rgb(24, 24, 28)",neutralModal:"rgb(44, 44, 50)",neutralBody:"rgb(16, 16, 20)",alpha1:"0.9",alpha2:"0.82",alpha3:"0.52",alpha4:"0.38",alpha5:"0.28",alphaClose:"0.52",alphaDisabled:"0.38",alphaDisabledInput:"0.06",alphaPending:"0.09",alphaTablePending:"0.06",alphaTableStriped:"0.05",alphaPressed:"0.05",alphaAvatar:"0.18",alphaRail:"0.2",alphaProgressRail:"0.12",alphaBorder:"0.24",alphaDivider:"0.09",alphaInput:"0.1",alphaAction:"0.06",alphaTab:"0.04",alphaScrollbar:"0.2",alphaScrollbarHover:"0.3",alphaCode:"0.12",alphaTag:"0.2",primaryHover:"#7fe7c4",primaryDefault:"#63e2b7",primaryActive:"#5acea7",primarySuppl:"rgb(42, 148, 125)",infoHover:"#8acbec",infoDefault:"#70c0e8",infoActive:"#66afd3",infoSuppl:"rgb(56, 137, 197)",errorHover:"#e98b8b",errorDefault:"#e88080",errorActive:"#e57272",errorSuppl:"rgb(208, 58, 82)",warningHover:"#f5d599",warningDefault:"#f2c97d",warningActive:"#e6c260",warningSuppl:"rgb(240, 138, 0)",successHover:"#7fe7c4",successDefault:"#63e2b7",successActive:"#5acea7",successSuppl:"rgb(42, 148, 125)"},dS=jo(de.neutralBase),gh=jo(de.neutralInvertBase),uS=`rgba(${gh.slice(0,3).join(", ")}, `;function He(e){return`${uS+String(e)})`}function fS(e){const t=Array.from(gh);return t[3]=Number(e),pe(dS,t)}const te=Object.assign(Object.assign({name:"common"},hr),{baseColor:de.neutralBase,primaryColor:de.primaryDefault,primaryColorHover:de.primaryHover,primaryColorPressed:de.primaryActive,primaryColorSuppl:de.primarySuppl,infoColor:de.infoDefault,infoColorHover:de.infoHover,infoColorPressed:de.infoActive,infoColorSuppl:de.infoSuppl,successColor:de.successDefault,successColorHover:de.successHover,successColorPressed:de.successActive,successColorSuppl:de.successSuppl,warningColor:de.warningDefault,warningColorHover:de.warningHover,warningColorPressed:de.warningActive,warningColorSuppl:de.warningSuppl,errorColor:de.errorDefault,errorColorHover:de.errorHover,errorColorPressed:de.errorActive,errorColorSuppl:de.errorSuppl,textColorBase:de.neutralTextBase,textColor1:He(de.alpha1),textColor2:He(de.alpha2),textColor3:He(de.alpha3),textColorDisabled:He(de.alpha4),placeholderColor:He(de.alpha4),placeholderColorDisabled:He(de.alpha5),iconColor:He(de.alpha4),iconColorDisabled:He(de.alpha5),iconColorHover:He(Number(de.alpha4)*1.25),iconColorPressed:He(Number(de.alpha4)*.8),opacity1:de.alpha1,opacity2:de.alpha2,opacity3:de.alpha3,opacity4:de.alpha4,opacity5:de.alpha5,dividerColor:He(de.alphaDivider),borderColor:He(de.alphaBorder),closeIconColorHover:He(Number(de.alphaClose)),closeIconColor:He(Number(de.alphaClose)),closeIconColorPressed:He(Number(de.alphaClose)),closeColorHover:"rgba(255, 255, 255, .12)",closeColorPressed:"rgba(255, 255, 255, .08)",clearColor:He(de.alpha4),clearColorHover:at(He(de.alpha4),{alpha:1.25}),clearColorPressed:at(He(de.alpha4),{alpha:.8}),scrollbarColor:He(de.alphaScrollbar),scrollbarColorHover:He(de.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:He(de.alphaProgressRail),railColor:He(de.alphaRail),popoverColor:de.neutralPopover,tableColor:de.neutralCard,cardColor:de.neutralCard,modalColor:de.neutralModal,bodyColor:de.neutralBody,tagColor:fS(de.alphaTag),avatarColor:He(de.alphaAvatar),invertedColor:de.neutralBase,inputColor:He(de.alphaInput),codeColor:He(de.alphaCode),tabColor:He(de.alphaTab),actionColor:He(de.alphaAction),tableHeaderColor:He(de.alphaAction),hoverColor:He(de.alphaPending),tableColorHover:He(de.alphaTablePending),tableColorStriped:He(de.alphaTableStriped),pressedColor:He(de.alphaPressed),opacityDisabled:de.alphaDisabled,inputColorDisabled:He(de.alphaDisabledInput),buttonColor2:"rgba(255, 255, 255, .08)",buttonColor2Hover:"rgba(255, 255, 255, .12)",buttonColor2Pressed:"rgba(255, 255, 255, .08)",boxShadow1:"0 1px 2px -2px rgba(0, 0, 0, .24), 0 3px 6px 0 rgba(0, 0, 0, .18), 0 5px 12px 4px rgba(0, 0, 0, .12)",boxShadow2:"0 3px 6px -4px rgba(0, 0, 0, .24), 0 6px 12px 0 rgba(0, 0, 0, .16), 0 9px 18px 8px rgba(0, 0, 0, .10)",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)"}),be={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"},hS=jo(be.neutralBase),mh=jo(be.neutralInvertBase),pS=`rgba(${mh.slice(0,3).join(", ")}, `;function cd(e){return`${pS+String(e)})`}function It(e){const t=Array.from(mh);return t[3]=Number(e),pe(hS,t)}const mt=Object.assign(Object.assign({name:"common"},hr),{baseColor:be.neutralBase,primaryColor:be.primaryDefault,primaryColorHover:be.primaryHover,primaryColorPressed:be.primaryActive,primaryColorSuppl:be.primarySuppl,infoColor:be.infoDefault,infoColorHover:be.infoHover,infoColorPressed:be.infoActive,infoColorSuppl:be.infoSuppl,successColor:be.successDefault,successColorHover:be.successHover,successColorPressed:be.successActive,successColorSuppl:be.successSuppl,warningColor:be.warningDefault,warningColorHover:be.warningHover,warningColorPressed:be.warningActive,warningColorSuppl:be.warningSuppl,errorColor:be.errorDefault,errorColorHover:be.errorHover,errorColorPressed:be.errorActive,errorColorSuppl:be.errorSuppl,textColorBase:be.neutralTextBase,textColor1:"rgb(31, 34, 37)",textColor2:"rgb(51, 54, 57)",textColor3:"rgb(118, 124, 130)",textColorDisabled:It(be.alpha4),placeholderColor:It(be.alpha4),placeholderColorDisabled:It(be.alpha5),iconColor:It(be.alpha4),iconColorHover:at(It(be.alpha4),{lightness:.75}),iconColorPressed:at(It(be.alpha4),{lightness:.9}),iconColorDisabled:It(be.alpha5),opacity1:be.alpha1,opacity2:be.alpha2,opacity3:be.alpha3,opacity4:be.alpha4,opacity5:be.alpha5,dividerColor:"rgb(239, 239, 245)",borderColor:"rgb(224, 224, 230)",closeIconColor:It(Number(be.alphaClose)),closeIconColorHover:It(Number(be.alphaClose)),closeIconColorPressed:It(Number(be.alphaClose)),closeColorHover:"rgba(0, 0, 0, .09)",closeColorPressed:"rgba(0, 0, 0, .13)",clearColor:It(be.alpha4),clearColorHover:at(It(be.alpha4),{lightness:.75}),clearColorPressed:at(It(be.alpha4),{lightness:.9}),scrollbarColor:cd(be.alphaScrollbar),scrollbarColorHover:cd(be.alphaScrollbarHover),scrollbarWidth:"5px",scrollbarHeight:"5px",scrollbarBorderRadius:"5px",progressRailColor:It(be.alphaProgressRail),railColor:"rgb(219, 219, 223)",popoverColor:be.neutralPopover,tableColor:be.neutralCard,cardColor:be.neutralCard,modalColor:be.neutralModal,bodyColor:be.neutralBody,tagColor:"#eee",avatarColor:It(be.alphaAvatar),invertedColor:"rgb(0, 20, 40)",inputColor:It(be.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:be.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)"}),gS={railInsetHorizontalBottom:"auto 2px 4px 2px",railInsetHorizontalTop:"4px 2px auto 2px",railInsetVerticalRight:"2px 4px 2px auto",railInsetVerticalLeft:"2px auto 2px 4px",railColor:"transparent"};function vh(e){const{scrollbarColor:t,scrollbarColorHover:o,scrollbarHeight:r,scrollbarWidth:n,scrollbarBorderRadius:i}=e;return Object.assign(Object.assign({},gS),{height:r,width:n,borderRadius:i,color:t,colorHover:o})}const vi={name:"Scrollbar",common:mt,self:vh},kt={name:"Scrollbar",common:te,self:vh},mS=M("scrollbar",`
|
|
147
|
+
overflow: hidden;
|
|
148
|
+
position: relative;
|
|
149
|
+
z-index: auto;
|
|
150
|
+
height: 100%;
|
|
151
|
+
width: 100%;
|
|
152
|
+
`,[B(">",[M("scrollbar-container",`
|
|
153
|
+
width: 100%;
|
|
154
|
+
overflow: scroll;
|
|
155
|
+
height: 100%;
|
|
156
|
+
min-height: inherit;
|
|
157
|
+
max-height: inherit;
|
|
158
|
+
scrollbar-width: none;
|
|
159
|
+
`,[B("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
|
|
160
|
+
width: 0;
|
|
161
|
+
height: 0;
|
|
162
|
+
display: none;
|
|
163
|
+
`),B(">",[M("scrollbar-content",`
|
|
164
|
+
box-sizing: border-box;
|
|
165
|
+
min-width: 100%;
|
|
166
|
+
`)])])]),B(">, +",[M("scrollbar-rail",`
|
|
167
|
+
position: absolute;
|
|
168
|
+
pointer-events: none;
|
|
169
|
+
user-select: none;
|
|
170
|
+
background: var(--n-scrollbar-rail-color);
|
|
171
|
+
-webkit-user-select: none;
|
|
172
|
+
`,[D("horizontal",`
|
|
173
|
+
height: var(--n-scrollbar-height);
|
|
174
|
+
`,[B(">",[O("scrollbar",`
|
|
175
|
+
height: var(--n-scrollbar-height);
|
|
176
|
+
border-radius: var(--n-scrollbar-border-radius);
|
|
177
|
+
right: 0;
|
|
178
|
+
`)])]),D("horizontal--top",`
|
|
179
|
+
top: var(--n-scrollbar-rail-top-horizontal-top);
|
|
180
|
+
right: var(--n-scrollbar-rail-right-horizontal-top);
|
|
181
|
+
bottom: var(--n-scrollbar-rail-bottom-horizontal-top);
|
|
182
|
+
left: var(--n-scrollbar-rail-left-horizontal-top);
|
|
183
|
+
`),D("horizontal--bottom",`
|
|
184
|
+
top: var(--n-scrollbar-rail-top-horizontal-bottom);
|
|
185
|
+
right: var(--n-scrollbar-rail-right-horizontal-bottom);
|
|
186
|
+
bottom: var(--n-scrollbar-rail-bottom-horizontal-bottom);
|
|
187
|
+
left: var(--n-scrollbar-rail-left-horizontal-bottom);
|
|
188
|
+
`),D("vertical",`
|
|
189
|
+
width: var(--n-scrollbar-width);
|
|
190
|
+
`,[B(">",[O("scrollbar",`
|
|
191
|
+
width: var(--n-scrollbar-width);
|
|
192
|
+
border-radius: var(--n-scrollbar-border-radius);
|
|
193
|
+
bottom: 0;
|
|
194
|
+
`)])]),D("vertical--left",`
|
|
195
|
+
top: var(--n-scrollbar-rail-top-vertical-left);
|
|
196
|
+
right: var(--n-scrollbar-rail-right-vertical-left);
|
|
197
|
+
bottom: var(--n-scrollbar-rail-bottom-vertical-left);
|
|
198
|
+
left: var(--n-scrollbar-rail-left-vertical-left);
|
|
199
|
+
`),D("vertical--right",`
|
|
200
|
+
top: var(--n-scrollbar-rail-top-vertical-right);
|
|
201
|
+
right: var(--n-scrollbar-rail-right-vertical-right);
|
|
202
|
+
bottom: var(--n-scrollbar-rail-bottom-vertical-right);
|
|
203
|
+
left: var(--n-scrollbar-rail-left-vertical-right);
|
|
204
|
+
`),D("disabled",[B(">",[O("scrollbar","pointer-events: none;")])]),B(">",[O("scrollbar",`
|
|
205
|
+
z-index: 1;
|
|
206
|
+
position: absolute;
|
|
207
|
+
cursor: pointer;
|
|
208
|
+
pointer-events: all;
|
|
209
|
+
background-color: var(--n-scrollbar-color);
|
|
210
|
+
transition: background-color .2s var(--n-scrollbar-bezier);
|
|
211
|
+
`,[ph(),B("&:hover","background-color: var(--n-scrollbar-color-hover);")])])])])]),vS=Object.assign(Object.assign({},_e.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"}}),El=ge({name:"Scrollbar",props:vS,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedRtlRef:r}=tt(e),n=fo("Scrollbar",r,t),i=W(null),a=W(null),l=W(null),s=W(null),d=W(null),c=W(null),u=W(null),h=W(null),f=W(null),p=W(null),g=W(null),x=W(0),v=W(0),y=W(!1),I=W(!1);let $=!1,E=!1,P,b,A=0,_=0,k=0,L=0;const R=Ib(),ie=_e("Scrollbar","-scrollbar",mS,vi,e,t),ce=N(()=>{const{value:X}=h,{value:he}=c,{value:Ce}=p;return X===null||he===null||Ce===null?0:Math.min(X,Ce*X/he+ei(ie.value.self.width)*1.5)}),U=N(()=>`${ce.value}px`),oe=N(()=>{const{value:X}=f,{value:he}=u,{value:Ce}=g;return X===null||he===null||Ce===null?0:Ce*X/he+ei(ie.value.self.height)*1.5}),Q=N(()=>`${oe.value}px`),H=N(()=>{const{value:X}=h,{value:he}=x,{value:Ce}=c,{value:Ue}=p;if(X===null||Ce===null||Ue===null)return 0;{const ot=Ce-X;return ot?he/ot*(Ue-ce.value):0}}),ne=N(()=>`${H.value}px`),ue=N(()=>{const{value:X}=f,{value:he}=v,{value:Ce}=u,{value:Ue}=g;if(X===null||Ce===null||Ue===null)return 0;{const ot=Ce-X;return ot?he/ot*(Ue-oe.value):0}}),me=N(()=>`${ue.value}px`),xe=N(()=>{const{value:X}=h,{value:he}=c;return X!==null&&he!==null&&he>X}),Ee=N(()=>{const{value:X}=f,{value:he}=u;return X!==null&&he!==null&&he>X}),Ae=N(()=>{const{trigger:X}=e;return X==="none"||y.value}),We=N(()=>{const{trigger:X}=e;return X==="none"||I.value}),$e=N(()=>{const{container:X}=e;return X?X():a.value}),it=N(()=>{const{content:X}=e;return X?X():l.value}),Pt=(X,he)=>{if(!e.scrollable)return;if(typeof X=="number"){w(X,he??0,0,!1,"auto");return}const{left:Ce,top:Ue,index:ot,elSize:Ct,position:yt,behavior:qe,el:wt,debounce:Jt=!0}=X;(Ce!==void 0||Ue!==void 0)&&w(Ce??0,Ue??0,0,!1,qe),wt!==void 0?w(0,wt.offsetTop,wt.offsetHeight,Jt,qe):ot!==void 0&&Ct!==void 0?w(0,ot*Ct,Ct,Jt,qe):yt==="bottom"?w(0,Number.MAX_SAFE_INTEGER,0,!1,qe):yt==="top"&&w(0,0,0,!1,qe)},ze=mf(()=>{e.container||Pt({top:x.value,left:v.value})}),Qe=()=>{ze.isDeactivated||fe()},Tt=X=>{if(ze.isDeactivated)return;const{onResize:he}=e;he&&he(X),fe()},C=(X,he)=>{if(!e.scrollable)return;const{value:Ce}=$e;Ce&&(typeof X=="object"?Ce.scrollBy(X):Ce.scrollBy(X,he||0))};function w(X,he,Ce,Ue,ot){const{value:Ct}=$e;if(Ct){if(Ue){const{scrollTop:yt,offsetHeight:qe}=Ct;if(he>yt){he+Ce<=yt+qe||Ct.scrollTo({left:X,top:he+Ce-qe,behavior:ot});return}}Ct.scrollTo({left:X,top:he,behavior:ot})}}function F(){ee(),T(),fe()}function Y(){G()}function G(){q(),re()}function q(){b!==void 0&&window.clearTimeout(b),b=window.setTimeout(()=>{I.value=!1},e.duration)}function re(){P!==void 0&&window.clearTimeout(P),P=window.setTimeout(()=>{y.value=!1},e.duration)}function ee(){P!==void 0&&window.clearTimeout(P),y.value=!0}function T(){b!==void 0&&window.clearTimeout(b),I.value=!0}function S(X){const{onScroll:he}=e;he&&he(X),j()}function j(){const{value:X}=$e;X&&(x.value=X.scrollTop,v.value=X.scrollLeft*(n!=null&&n.value?-1:1))}function V(){const{value:X}=it;X&&(c.value=X.offsetHeight,u.value=X.offsetWidth);const{value:he}=$e;he&&(h.value=he.offsetHeight,f.value=he.offsetWidth);const{value:Ce}=d,{value:Ue}=s;Ce&&(g.value=Ce.offsetWidth),Ue&&(p.value=Ue.offsetHeight)}function le(){const{value:X}=$e;X&&(x.value=X.scrollTop,v.value=X.scrollLeft*(n!=null&&n.value?-1:1),h.value=X.offsetHeight,f.value=X.offsetWidth,c.value=X.scrollHeight,u.value=X.scrollWidth);const{value:he}=d,{value:Ce}=s;he&&(g.value=he.offsetWidth),Ce&&(p.value=Ce.offsetHeight)}function fe(){e.scrollable&&(e.useUnifiedContainer?le():(V(),j()))}function ye(X){var he;return!(!((he=i.value)===null||he===void 0)&&he.contains(Zi(X)))}function Re(X){X.preventDefault(),X.stopPropagation(),E=!0,zt("mousemove",window,Ie,!0),zt("mouseup",window,lt,!0),_=v.value,k=n!=null&&n.value?window.innerWidth-X.clientX:X.clientX}function Ie(X){if(!E)return;P!==void 0&&window.clearTimeout(P),b!==void 0&&window.clearTimeout(b);const{value:he}=f,{value:Ce}=u,{value:Ue}=oe;if(he===null||Ce===null)return;const Ct=(n!=null&&n.value?window.innerWidth-X.clientX-k:X.clientX-k)*(Ce-he)/(he-Ue),yt=Ce-he;let qe=_+Ct;qe=Math.min(yt,qe),qe=Math.max(qe,0);const{value:wt}=$e;if(wt){wt.scrollLeft=qe*(n!=null&&n.value?-1:1);const{internalOnUpdateScrollLeft:Jt}=e;Jt&&Jt(qe)}}function lt(X){X.preventDefault(),X.stopPropagation(),st("mousemove",window,Ie,!0),st("mouseup",window,lt,!0),E=!1,fe(),ye(X)&&G()}function ct(X){X.preventDefault(),X.stopPropagation(),$=!0,zt("mousemove",window,vt,!0),zt("mouseup",window,bt,!0),A=x.value,L=X.clientY}function vt(X){if(!$)return;P!==void 0&&window.clearTimeout(P),b!==void 0&&window.clearTimeout(b);const{value:he}=h,{value:Ce}=c,{value:Ue}=ce;if(he===null||Ce===null)return;const Ct=(X.clientY-L)*(Ce-he)/(he-Ue),yt=Ce-he;let qe=A+Ct;qe=Math.min(yt,qe),qe=Math.max(qe,0);const{value:wt}=$e;wt&&(wt.scrollTop=qe)}function bt(X){X.preventDefault(),X.stopPropagation(),st("mousemove",window,vt,!0),st("mouseup",window,bt,!0),$=!1,fe(),ye(X)&&G()}So(()=>{const{value:X}=Ee,{value:he}=xe,{value:Ce}=t,{value:Ue}=d,{value:ot}=s;Ue&&(X?Ue.classList.remove(`${Ce}-scrollbar-rail--disabled`):Ue.classList.add(`${Ce}-scrollbar-rail--disabled`)),ot&&(he?ot.classList.remove(`${Ce}-scrollbar-rail--disabled`):ot.classList.add(`${Ce}-scrollbar-rail--disabled`))}),Et(()=>{e.container||fe()}),Yt(()=>{P!==void 0&&window.clearTimeout(P),b!==void 0&&window.clearTimeout(b),st("mousemove",window,vt,!0),st("mouseup",window,bt,!0)});const Zt=N(()=>{const{common:{cubicBezierEaseInOut:X},self:{color:he,colorHover:Ce,height:Ue,width:ot,borderRadius:Ct,railInsetHorizontalTop:yt,railInsetHorizontalBottom:qe,railInsetVerticalRight:wt,railInsetVerticalLeft:Jt,railColor:Or}}=ie.value,{top:bn,right:Ko,bottom:qo,left:xn}=to(yt),{top:Cn,right:Lr,bottom:Yo,left:z}=to(qe),{top:K,right:ve,bottom:Ke,left:et}=to(n!=null&&n.value?Mc(wt):wt),{top:Ge,right:Io,bottom:Ro,left:Mo}=to(n!=null&&n.value?Mc(Jt):Jt);return{"--n-scrollbar-bezier":X,"--n-scrollbar-color":he,"--n-scrollbar-color-hover":Ce,"--n-scrollbar-border-radius":Ct,"--n-scrollbar-width":ot,"--n-scrollbar-height":Ue,"--n-scrollbar-rail-top-horizontal-top":bn,"--n-scrollbar-rail-right-horizontal-top":Ko,"--n-scrollbar-rail-bottom-horizontal-top":qo,"--n-scrollbar-rail-left-horizontal-top":xn,"--n-scrollbar-rail-top-horizontal-bottom":Cn,"--n-scrollbar-rail-right-horizontal-bottom":Lr,"--n-scrollbar-rail-bottom-horizontal-bottom":Yo,"--n-scrollbar-rail-left-horizontal-bottom":z,"--n-scrollbar-rail-top-vertical-right":K,"--n-scrollbar-rail-right-vertical-right":ve,"--n-scrollbar-rail-bottom-vertical-right":Ke,"--n-scrollbar-rail-left-vertical-right":et,"--n-scrollbar-rail-top-vertical-left":Ge,"--n-scrollbar-rail-right-vertical-left":Io,"--n-scrollbar-rail-bottom-vertical-left":Ro,"--n-scrollbar-rail-left-vertical-left":Mo,"--n-scrollbar-rail-color":Or}}),Vt=o?ht("scrollbar",void 0,Zt,e):void 0;return Object.assign(Object.assign({},{scrollTo:Pt,scrollBy:C,sync:fe,syncUnifiedContainer:le,handleMouseEnterWrapper:F,handleMouseLeaveWrapper:Y}),{mergedClsPrefix:t,rtlEnabled:n,containerScrollTop:x,wrapperRef:i,containerRef:a,contentRef:l,yRailRef:s,xRailRef:d,needYBar:xe,needXBar:Ee,yBarSizePx:U,xBarSizePx:Q,yBarTopPx:ne,xBarLeftPx:me,isShowXBar:Ae,isShowYBar:We,isIos:R,handleScroll:S,handleContentResize:Qe,handleContainerResize:Tt,handleYScrollMouseDown:ct,handleXScrollMouseDown:Re,cssVars:o?void 0:Zt,themeClass:Vt==null?void 0:Vt.themeClass,onRender:Vt==null?void 0:Vt.onRender})},render(){var e;const{$slots:t,mergedClsPrefix:o,triggerDisplayManually:r,rtlEnabled:n,internalHoistYRail:i,yPlacement:a,xPlacement:l,xScrollable:s}=this;if(!this.scrollable)return(e=t.default)===null||e===void 0?void 0:e.call(t);const d=this.trigger==="none",c=(f,p)=>m("div",{ref:"yRailRef",class:[`${o}-scrollbar-rail`,`${o}-scrollbar-rail--vertical`,`${o}-scrollbar-rail--vertical--${a}`,f],"data-scrollbar-rail":!0,style:[p||"",this.verticalRailStyle],"aria-hidden":!0},m(d?Ac:sr,d?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?m("div",{class:`${o}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),u=()=>{var f,p;return(f=this.onRender)===null||f===void 0||f.call(this),m("div",hi(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${o}-scrollbar`,this.themeClass,n&&`${o}-scrollbar--rtl`],style:this.cssVars,onMouseenter:r?void 0:this.handleMouseEnterWrapper,onMouseleave:r?void 0:this.handleMouseLeaveWrapper}),[this.container?(p=t.default)===null||p===void 0?void 0:p.call(t):m("div",{role:"none",ref:"containerRef",class:[`${o}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},m(nn,{onResize:this.handleContentResize},{default:()=>m("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${o}-scrollbar-content`,this.contentClass]},t)})),i?null:c(void 0,void 0),s&&m("div",{ref:"xRailRef",class:[`${o}-scrollbar-rail`,`${o}-scrollbar-rail--horizontal`,`${o}-scrollbar-rail--horizontal--${l}`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},m(d?Ac:sr,d?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?m("div",{class:`${o}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:n?this.xBarLeftPx:void 0,left:n?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},h=this.container?u():m(nn,{onResize:this.handleContainerResize},{default:u});return i?m(Me,null,h,c(this.themeClass,this.cssVars)):h}}),bS=El,xS={iconSizeTiny:"28px",iconSizeSmall:"34px",iconSizeMedium:"40px",iconSizeLarge:"46px",iconSizeHuge:"52px"};function bh(e){const{textColorDisabled:t,iconColor:o,textColor2:r,fontSizeTiny:n,fontSizeSmall:i,fontSizeMedium:a,fontSizeLarge:l,fontSizeHuge:s}=e;return Object.assign(Object.assign({},xS),{fontSizeTiny:n,fontSizeSmall:i,fontSizeMedium:a,fontSizeLarge:l,fontSizeHuge:s,textColor:t,iconColor:o,extraTextColor:r})}const xh={name:"Empty",common:mt,self:bh},kr={name:"Empty",common:te,self:bh},CS=M("empty",`
|
|
212
|
+
display: flex;
|
|
213
|
+
flex-direction: column;
|
|
214
|
+
align-items: center;
|
|
215
|
+
font-size: var(--n-font-size);
|
|
216
|
+
`,[O("icon",`
|
|
217
|
+
width: var(--n-icon-size);
|
|
218
|
+
height: var(--n-icon-size);
|
|
219
|
+
font-size: var(--n-icon-size);
|
|
220
|
+
line-height: var(--n-icon-size);
|
|
221
|
+
color: var(--n-icon-color);
|
|
222
|
+
transition:
|
|
223
|
+
color .3s var(--n-bezier);
|
|
224
|
+
`,[B("+",[O("description",`
|
|
225
|
+
margin-top: 8px;
|
|
226
|
+
`)])]),O("description",`
|
|
227
|
+
transition: color .3s var(--n-bezier);
|
|
228
|
+
color: var(--n-text-color);
|
|
229
|
+
`),O("extra",`
|
|
230
|
+
text-align: center;
|
|
231
|
+
transition: color .3s var(--n-bezier);
|
|
232
|
+
margin-top: 12px;
|
|
233
|
+
color: var(--n-extra-text-color);
|
|
234
|
+
`)]),yS=Object.assign(Object.assign({},_e.props),{description:String,showDescription:{type:Boolean,default:!0},showIcon:{type:Boolean,default:!0},size:{type:String,default:"medium"},renderIcon:Function}),wS=ge({name:"Empty",props:yS,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedComponentPropsRef:r}=tt(e),n=_e("Empty","-empty",CS,xh,e,t),{localeRef:i}=li("Empty"),a=N(()=>{var c,u,h;return(c=e.description)!==null&&c!==void 0?c:(h=(u=r==null?void 0:r.value)===null||u===void 0?void 0:u.Empty)===null||h===void 0?void 0:h.description}),l=N(()=>{var c,u;return((u=(c=r==null?void 0:r.value)===null||c===void 0?void 0:c.Empty)===null||u===void 0?void 0:u.renderIcon)||(()=>m(Qw,null))}),s=N(()=>{const{size:c}=e,{common:{cubicBezierEaseInOut:u},self:{[ae("iconSize",c)]:h,[ae("fontSize",c)]:f,textColor:p,iconColor:g,extraTextColor:x}}=n.value;return{"--n-icon-size":h,"--n-font-size":f,"--n-bezier":u,"--n-text-color":p,"--n-icon-color":g,"--n-extra-text-color":x}}),d=o?ht("empty",N(()=>{let c="";const{size:u}=e;return c+=u[0],c}),s,e):void 0;return{mergedClsPrefix:t,mergedRenderIcon:l,localizedDescription:N(()=>a.value||i.value.description),cssVars:o?void 0:s,themeClass:d==null?void 0:d.themeClass,onRender:d==null?void 0:d.onRender}},render(){const{$slots:e,mergedClsPrefix:t,onRender:o}=this;return o==null||o(),m("div",{class:[`${t}-empty`,this.themeClass],style:this.cssVars},this.showIcon?m("div",{class:`${t}-empty__icon`},e.icon?e.icon():m(_o,{clsPrefix:t},{default:this.mergedRenderIcon})):null,this.showDescription?m("div",{class:`${t}-empty__description`},e.default?e.default():this.localizedDescription):null,e.extra?m("div",{class:`${t}-empty__extra`},e.extra()):null)}}),SS={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 $S(e){const{borderRadius:t,popoverColor:o,textColor3:r,dividerColor:n,textColor2:i,primaryColorPressed:a,textColorDisabled:l,primaryColor:s,opacityDisabled:d,hoverColor:c,fontSizeTiny:u,fontSizeSmall:h,fontSizeMedium:f,fontSizeLarge:p,fontSizeHuge:g,heightTiny:x,heightSmall:v,heightMedium:y,heightLarge:I,heightHuge:$}=e;return Object.assign(Object.assign({},SS),{optionFontSizeTiny:u,optionFontSizeSmall:h,optionFontSizeMedium:f,optionFontSizeLarge:p,optionFontSizeHuge:g,optionHeightTiny:x,optionHeightSmall:v,optionHeightMedium:y,optionHeightLarge:I,optionHeightHuge:$,borderRadius:t,color:o,groupHeaderTextColor:r,actionDividerColor:n,optionTextColor:i,optionTextColorPressed:a,optionTextColorDisabled:l,optionTextColorActive:s,optionOpacityDisabled:d,optionCheckColor:s,optionColorPending:c,optionColorActive:"rgba(0, 0, 0, 0)",optionColorActivePending:c,actionTextColor:i,loadingColor:s})}const bi={name:"InternalSelectMenu",common:te,peers:{Scrollbar:kt,Empty:kr},self:$S},{cubicBezierEaseIn:dd,cubicBezierEaseOut:ud}=hr;function Ch({transformOrigin:e="inherit",duration:t=".2s",enterScale:o=".9",originalTransform:r="",originalTransition:n=""}={}){return[B("&.fade-in-scale-up-transition-leave-active",{transformOrigin:e,transition:`opacity ${t} ${dd}, transform ${t} ${dd} ${n&&`,${n}`}`}),B("&.fade-in-scale-up-transition-enter-active",{transformOrigin:e,transition:`opacity ${t} ${ud}, transform ${t} ${ud} ${n&&`,${n}`}`}),B("&.fade-in-scale-up-transition-enter-from, &.fade-in-scale-up-transition-leave-to",{opacity:0,transform:`${r} scale(${o})`}),B("&.fade-in-scale-up-transition-leave-from, &.fade-in-scale-up-transition-enter-to",{opacity:1,transform:`${r} scale(1)`})]}const PS={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"};function yh(e){const{boxShadow2:t,popoverColor:o,textColor2:r,borderRadius:n,fontSize:i,dividerColor:a}=e;return Object.assign(Object.assign({},PS),{fontSize:i,borderRadius:n,color:o,dividerColor:a,textColor:r,boxShadow:t})}const wh={name:"Popover",common:mt,peers:{Scrollbar:vi},self:yh},Fr={name:"Popover",common:te,peers:{Scrollbar:kt},self:yh},ia={top:"bottom",bottom:"top",left:"right",right:"left"},pt="var(--n-arrow-height) * 1.414",TS=B([M("popover",`
|
|
235
|
+
transition:
|
|
236
|
+
box-shadow .3s var(--n-bezier),
|
|
237
|
+
background-color .3s var(--n-bezier),
|
|
238
|
+
color .3s var(--n-bezier);
|
|
239
|
+
position: relative;
|
|
240
|
+
font-size: var(--n-font-size);
|
|
241
|
+
color: var(--n-text-color);
|
|
242
|
+
box-shadow: var(--n-box-shadow);
|
|
243
|
+
word-break: break-word;
|
|
244
|
+
`,[B(">",[M("scrollbar",`
|
|
245
|
+
height: inherit;
|
|
246
|
+
max-height: inherit;
|
|
247
|
+
`)]),St("raw",`
|
|
248
|
+
background-color: var(--n-color);
|
|
249
|
+
border-radius: var(--n-border-radius);
|
|
250
|
+
`,[St("scrollable",[St("show-header-or-footer","padding: var(--n-padding);")])]),O("header",`
|
|
251
|
+
padding: var(--n-padding);
|
|
252
|
+
border-bottom: 1px solid var(--n-divider-color);
|
|
253
|
+
transition: border-color .3s var(--n-bezier);
|
|
254
|
+
`),O("footer",`
|
|
255
|
+
padding: var(--n-padding);
|
|
256
|
+
border-top: 1px solid var(--n-divider-color);
|
|
257
|
+
transition: border-color .3s var(--n-bezier);
|
|
258
|
+
`),D("scrollable, show-header-or-footer",[O("content",`
|
|
259
|
+
padding: var(--n-padding);
|
|
260
|
+
`)])]),M("popover-shared",`
|
|
261
|
+
transform-origin: inherit;
|
|
262
|
+
`,[M("popover-arrow-wrapper",`
|
|
263
|
+
position: absolute;
|
|
264
|
+
overflow: hidden;
|
|
265
|
+
pointer-events: none;
|
|
266
|
+
`,[M("popover-arrow",`
|
|
267
|
+
transition: background-color .3s var(--n-bezier);
|
|
268
|
+
position: absolute;
|
|
269
|
+
display: block;
|
|
270
|
+
width: calc(${pt});
|
|
271
|
+
height: calc(${pt});
|
|
272
|
+
box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);
|
|
273
|
+
transform: rotate(45deg);
|
|
274
|
+
background-color: var(--n-color);
|
|
275
|
+
pointer-events: all;
|
|
276
|
+
`)]),B("&.popover-transition-enter-from, &.popover-transition-leave-to",`
|
|
277
|
+
opacity: 0;
|
|
278
|
+
transform: scale(.85);
|
|
279
|
+
`),B("&.popover-transition-enter-to, &.popover-transition-leave-from",`
|
|
280
|
+
transform: scale(1);
|
|
281
|
+
opacity: 1;
|
|
282
|
+
`),B("&.popover-transition-enter-active",`
|
|
283
|
+
transition:
|
|
284
|
+
box-shadow .3s var(--n-bezier),
|
|
285
|
+
background-color .3s var(--n-bezier),
|
|
286
|
+
color .3s var(--n-bezier),
|
|
287
|
+
opacity .15s var(--n-bezier-ease-out),
|
|
288
|
+
transform .15s var(--n-bezier-ease-out);
|
|
289
|
+
`),B("&.popover-transition-leave-active",`
|
|
290
|
+
transition:
|
|
291
|
+
box-shadow .3s var(--n-bezier),
|
|
292
|
+
background-color .3s var(--n-bezier),
|
|
293
|
+
color .3s var(--n-bezier),
|
|
294
|
+
opacity .15s var(--n-bezier-ease-in),
|
|
295
|
+
transform .15s var(--n-bezier-ease-in);
|
|
296
|
+
`)]),eo("top-start",`
|
|
297
|
+
top: calc(${pt} / -2);
|
|
298
|
+
left: calc(${Ao("top-start")} - var(--v-offset-left));
|
|
299
|
+
`),eo("top",`
|
|
300
|
+
top: calc(${pt} / -2);
|
|
301
|
+
transform: translateX(calc(${pt} / -2)) rotate(45deg);
|
|
302
|
+
left: 50%;
|
|
303
|
+
`),eo("top-end",`
|
|
304
|
+
top: calc(${pt} / -2);
|
|
305
|
+
right: calc(${Ao("top-end")} + var(--v-offset-left));
|
|
306
|
+
`),eo("bottom-start",`
|
|
307
|
+
bottom: calc(${pt} / -2);
|
|
308
|
+
left: calc(${Ao("bottom-start")} - var(--v-offset-left));
|
|
309
|
+
`),eo("bottom",`
|
|
310
|
+
bottom: calc(${pt} / -2);
|
|
311
|
+
transform: translateX(calc(${pt} / -2)) rotate(45deg);
|
|
312
|
+
left: 50%;
|
|
313
|
+
`),eo("bottom-end",`
|
|
314
|
+
bottom: calc(${pt} / -2);
|
|
315
|
+
right: calc(${Ao("bottom-end")} + var(--v-offset-left));
|
|
316
|
+
`),eo("left-start",`
|
|
317
|
+
left: calc(${pt} / -2);
|
|
318
|
+
top: calc(${Ao("left-start")} - var(--v-offset-top));
|
|
319
|
+
`),eo("left",`
|
|
320
|
+
left: calc(${pt} / -2);
|
|
321
|
+
transform: translateY(calc(${pt} / -2)) rotate(45deg);
|
|
322
|
+
top: 50%;
|
|
323
|
+
`),eo("left-end",`
|
|
324
|
+
left: calc(${pt} / -2);
|
|
325
|
+
bottom: calc(${Ao("left-end")} + var(--v-offset-top));
|
|
326
|
+
`),eo("right-start",`
|
|
327
|
+
right: calc(${pt} / -2);
|
|
328
|
+
top: calc(${Ao("right-start")} - var(--v-offset-top));
|
|
329
|
+
`),eo("right",`
|
|
330
|
+
right: calc(${pt} / -2);
|
|
331
|
+
transform: translateY(calc(${pt} / -2)) rotate(45deg);
|
|
332
|
+
top: 50%;
|
|
333
|
+
`),eo("right-end",`
|
|
334
|
+
right: calc(${pt} / -2);
|
|
335
|
+
bottom: calc(${Ao("right-end")} + var(--v-offset-top));
|
|
336
|
+
`),...Vw({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),r=o?"width":"height";return e.map(n=>{const i=n.split("-")[1]==="end",l=`calc((${`var(--v-target-${r}, 0px)`} - ${pt}) / 2)`,s=Ao(n);return B(`[v-placement="${n}"] >`,[M("popover-shared",[D("center-arrow",[M("popover-arrow",`${t}: calc(max(${l}, ${s}) ${i?"+":"-"} var(--v-offset-${o?"left":"top"}));`)])])])})})]);function Ao(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function eo(e,t){const o=e.split("-")[0],r=["top","bottom"].includes(o)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return B(`[v-placement="${e}"] >`,[M("popover-shared",`
|
|
337
|
+
margin-${ia[o]}: var(--n-space);
|
|
338
|
+
`,[D("show-arrow",`
|
|
339
|
+
margin-${ia[o]}: var(--n-space-arrow);
|
|
340
|
+
`),D("overlap",`
|
|
341
|
+
margin: 0;
|
|
342
|
+
`),ob("popover-arrow-wrapper",`
|
|
343
|
+
right: 0;
|
|
344
|
+
left: 0;
|
|
345
|
+
top: 0;
|
|
346
|
+
bottom: 0;
|
|
347
|
+
${o}: 100%;
|
|
348
|
+
${ia[o]}: auto;
|
|
349
|
+
${r}
|
|
350
|
+
`,[M("popover-arrow",t)])])])}const Sh=Object.assign(Object.assign({},_e.props),{to:un.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 _S({arrowClass:e,arrowStyle:t,arrowWrapperClass:o,arrowWrapperStyle:r,clsPrefix:n}){return m("div",{key:"__popover-arrow__",style:r,class:[`${n}-popover-arrow-wrapper`,o]},m("div",{class:[`${n}-popover-arrow`,e],style:t}))}const zS=ge({name:"PopoverBody",inheritAttrs:!1,props:Sh,setup(e,{slots:t,attrs:o}){const{namespaceRef:r,mergedClsPrefixRef:n,inlineThemeDisabled:i,mergedRtlRef:a}=tt(e),l=_e("Popover","-popover",TS,wh,e,n),s=fo("Popover",a,n),d=W(null),c=Le("NPopover"),u=W(null),h=W(e.show),f=W(!1);So(()=>{const{show:_}=e;_&&!T0()&&!e.internalDeactivateImmediately&&(f.value=!0)});const p=N(()=>{const{trigger:_,onClickoutside:k}=e,L=[],{positionManuallyRef:{value:R}}=c;return R||(_==="click"&&!k&&L.push([gc,P,void 0,{capture:!0}]),_==="hover"&&L.push([Ob,E])),k&&L.push([gc,P,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&f.value)&&L.push([Vu,e.show]),L}),g=N(()=>{const{common:{cubicBezierEaseInOut:_,cubicBezierEaseIn:k,cubicBezierEaseOut:L},self:{space:R,spaceArrow:ie,padding:ce,fontSize:U,textColor:oe,dividerColor:Q,color:H,boxShadow:ne,borderRadius:ue,arrowHeight:me,arrowOffset:xe,arrowOffsetVertical:Ee}}=l.value;return{"--n-box-shadow":ne,"--n-bezier":_,"--n-bezier-ease-in":k,"--n-bezier-ease-out":L,"--n-font-size":U,"--n-text-color":oe,"--n-color":H,"--n-divider-color":Q,"--n-border-radius":ue,"--n-arrow-height":me,"--n-arrow-offset":xe,"--n-arrow-offset-vertical":Ee,"--n-padding":ce,"--n-space":R,"--n-space-arrow":ie}}),x=N(()=>{const _=e.width==="trigger"?void 0:ln(e.width),k=[];_&&k.push({width:_});const{maxWidth:L,minWidth:R}=e;return L&&k.push({maxWidth:ln(L)}),R&&k.push({maxWidth:ln(R)}),i||k.push(g.value),k}),v=i?ht("popover",void 0,g,e):void 0;c.setBodyInstance({syncPosition:y}),Yt(()=>{c.setBodyInstance(null)}),Xe(Be(e,"show"),_=>{e.animated||(_?h.value=!0:h.value=!1)});function y(){var _;(_=d.value)===null||_===void 0||_.syncPosition()}function I(_){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&c.handleMouseEnter(_)}function $(_){e.trigger==="hover"&&e.keepAliveOnHover&&c.handleMouseLeave(_)}function E(_){e.trigger==="hover"&&!b().contains(Zi(_))&&c.handleMouseMoveOutside(_)}function P(_){(e.trigger==="click"&&!b().contains(Zi(_))||e.onClickoutside)&&c.handleClickOutside(_)}function b(){return c.getTriggerElement()}$t(pf,u),$t(ff,null),$t(hf,null);function A(){if(v==null||v.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&f.value))return null;let k;const L=c.internalRenderBodyRef.value,{value:R}=n;if(L)k=L([`${R}-popover-shared`,(s==null?void 0:s.value)&&`${R}-popover--rtl`,v==null?void 0:v.themeClass.value,e.overlap&&`${R}-popover-shared--overlap`,e.showArrow&&`${R}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${R}-popover-shared--center-arrow`],u,x.value,I,$);else{const{value:ie}=c.extraClassRef,{internalTrapFocus:ce}=e,U=!Ea(t.header)||!Ea(t.footer),oe=()=>{var Q,H;const ne=U?m(Me,null,dt(t.header,xe=>xe?m("div",{class:[`${R}-popover__header`,e.headerClass],style:e.headerStyle},xe):null),dt(t.default,xe=>xe?m("div",{class:[`${R}-popover__content`,e.contentClass],style:e.contentStyle},t):null),dt(t.footer,xe=>xe?m("div",{class:[`${R}-popover__footer`,e.footerClass],style:e.footerStyle},xe):null)):e.scrollable?(Q=t.default)===null||Q===void 0?void 0:Q.call(t):m("div",{class:[`${R}-popover__content`,e.contentClass],style:e.contentStyle},t),ue=e.scrollable?m(bS,{themeOverrides:l.value.peerOverrides.Scrollbar,theme:l.value.peers.Scrollbar,contentClass:U?void 0:`${R}-popover__content ${(H=e.contentClass)!==null&&H!==void 0?H:""}`,contentStyle:U?void 0:e.contentStyle},{default:()=>ne}):ne,me=e.showArrow?_S({arrowClass:e.arrowClass,arrowStyle:e.arrowStyle,arrowWrapperClass:e.arrowWrapperClass,arrowWrapperStyle:e.arrowWrapperStyle,clsPrefix:R}):null;return[ue,me]};k=m("div",hi({class:[`${R}-popover`,`${R}-popover-shared`,(s==null?void 0:s.value)&&`${R}-popover--rtl`,v==null?void 0:v.themeClass.value,ie.map(Q=>`${R}-${Q}`),{[`${R}-popover--scrollable`]:e.scrollable,[`${R}-popover--show-header-or-footer`]:U,[`${R}-popover--raw`]:e.raw,[`${R}-popover-shared--overlap`]:e.overlap,[`${R}-popover-shared--show-arrow`]:e.showArrow,[`${R}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:u,style:x.value,onKeydown:c.handleKeydown,onMouseenter:I,onMouseleave:$},o),ce?m($0,{active:e.show,autoFocus:!0},{default:oe}):oe())}return ui(k,p.value)}return{displayed:f,namespace:r,isMounted:c.isMountedRef,zIndex:c.zIndexRef,followerRef:d,adjustedTo:un(e),followerEnabled:h,renderContentNode:A}},render(){return m(Jb,{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===un.tdkey},{default:()=>this.animated?m(sr,{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()})}}),ES=Object.keys(Sh),IS={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function RS(e,t,o){IS[t].forEach(r=>{e.props?e.props=Object.assign({},e.props):e.props={};const n=e.props[r],i=o[r];n?e.props[r]=(...a)=>{n(...a),i(...a)}:e.props[r]=i})}const $h={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:un.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},MS=Object.assign(Object.assign(Object.assign({},_e.props),$h),{internalOnAfterLeave:Function,internalRenderBody:Function}),BS=ge({name:"Popover",inheritAttrs:!1,props:MS,slots:Object,__popover__:!0,setup(e){const t=wl(),o=W(null),r=N(()=>e.show),n=W(e.defaultShow),i=yl(r,n),a=Po(()=>e.disabled?!1:i.value),l=()=>{if(e.disabled)return!0;const{getDisabled:U}=e;return!!(U!=null&&U())},s=()=>l()?!1:i.value,d=ti(e,["arrow","showArrow"]),c=N(()=>e.overlap?!1:d.value);let u=null;const h=W(null),f=W(null),p=Po(()=>e.x!==void 0&&e.y!==void 0);function g(U){const{"onUpdate:show":oe,onUpdateShow:Q,onShow:H,onHide:ne}=e;n.value=U,oe&&je(oe,U),Q&&je(Q,U),U&&H&&je(H,!0),U&&ne&&je(ne,!1)}function x(){u&&u.syncPosition()}function v(){const{value:U}=h;U&&(window.clearTimeout(U),h.value=null)}function y(){const{value:U}=f;U&&(window.clearTimeout(U),f.value=null)}function I(){const U=l();if(e.trigger==="focus"&&!U){if(s())return;g(!0)}}function $(){const U=l();if(e.trigger==="focus"&&!U){if(!s())return;g(!1)}}function E(){const U=l();if(e.trigger==="hover"&&!U){if(y(),h.value!==null||s())return;const oe=()=>{g(!0),h.value=null},{delay:Q}=e;Q===0?oe():h.value=window.setTimeout(oe,Q)}}function P(){const U=l();if(e.trigger==="hover"&&!U){if(v(),f.value!==null||!s())return;const oe=()=>{g(!1),f.value=null},{duration:Q}=e;Q===0?oe():f.value=window.setTimeout(oe,Q)}}function b(){P()}function A(U){var oe;s()&&(e.trigger==="click"&&(v(),y(),g(!1)),(oe=e.onClickoutside)===null||oe===void 0||oe.call(e,U))}function _(){if(e.trigger==="click"&&!l()){v(),y();const U=!s();g(U)}}function k(U){e.internalTrapFocus&&U.key==="Escape"&&(v(),y(),g(!1))}function L(U){n.value=U}function R(){var U;return(U=o.value)===null||U===void 0?void 0:U.targetRef}function ie(U){u=U}return $t("NPopover",{getTriggerElement:R,handleKeydown:k,handleMouseEnter:E,handleMouseLeave:P,handleClickOutside:A,handleMouseMoveOutside:b,setBodyInstance:ie,positionManuallyRef:p,isMountedRef:t,zIndexRef:Be(e,"zIndex"),extraClassRef:Be(e,"internalExtraClass"),internalRenderBodyRef:Be(e,"internalRenderBody")}),So(()=>{i.value&&l()&&g(!1)}),{binderInstRef:o,positionManually:p,mergedShowConsideringDisabledProp:a,uncontrolledShow:n,mergedShowArrow:c,getMergedShow:s,setShow:L,handleClick:_,handleMouseEnter:E,handleMouseLeave:P,handleFocus:I,handleBlur:$,syncPosition:x}},render(){var e;const{positionManually:t,$slots:o}=this;let r,n=!1;if(!t&&(r=_0(o,"trigger"),r)){r=$o(r),r=r.type===fi?m("span",[r]):r;const i={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=r.type)===null||e===void 0)&&e.__popover__)n=!0,r.props||(r.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),r.props.internalSyncTargetWithParent=!0,r.props.internalInheritedEventHandlers?r.props.internalInheritedEventHandlers=[i,...r.props.internalInheritedEventHandlers]:r.props.internalInheritedEventHandlers=[i];else{const{internalInheritedEventHandlers:a}=this,l=[i,...a],s={onBlur:d=>{l.forEach(c=>{c.onBlur(d)})},onFocus:d=>{l.forEach(c=>{c.onFocus(d)})},onClick:d=>{l.forEach(c=>{c.onClick(d)})},onMouseenter:d=>{l.forEach(c=>{c.onMouseenter(d)})},onMouseleave:d=>{l.forEach(c=>{c.onMouseleave(d)})}};RS(r,a?"nested":t?"manual":this.trigger,s)}}return m(kb,{ref:"binderInstRef",syncTarget:!n,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const i=this.getMergedShow();return[this.internalTrapFocus&&i?ui(m("div",{style:{position:"fixed",top:0,right:0,bottom:0,left:0}}),[[xf,{enabled:i,zIndex:this.zIndex}]]):null,t?null:m(Fb,null,{default:()=>r}),m(zS,Mf(this.$props,ES,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:i})),{default:()=>{var a,l;return(l=(a=this.$slots).default)===null||l===void 0?void 0:l.call(a)},header:()=>{var a,l;return(l=(a=this.$slots).header)===null||l===void 0?void 0:l.call(a)},footer:()=>{var a,l;return(l=(a=this.$slots).footer)===null||l===void 0?void 0:l.call(a)}})]}})}}),Ph={closeIconSizeTiny:"12px",closeIconSizeSmall:"12px",closeIconSizeMedium:"14px",closeIconSizeLarge:"14px",closeSizeTiny:"16px",closeSizeSmall:"16px",closeSizeMedium:"18px",closeSizeLarge:"18px",padding:"0 7px",closeMargin:"0 0 0 4px"},Th={name:"Tag",common:te,self(e){const{textColor2:t,primaryColorHover:o,primaryColorPressed:r,primaryColor:n,infoColor:i,successColor:a,warningColor:l,errorColor:s,baseColor:d,borderColor:c,tagColor:u,opacityDisabled:h,closeIconColor:f,closeIconColorHover:p,closeIconColorPressed:g,closeColorHover:x,closeColorPressed:v,borderRadiusSmall:y,fontSizeMini:I,fontSizeTiny:$,fontSizeSmall:E,fontSizeMedium:P,heightMini:b,heightTiny:A,heightSmall:_,heightMedium:k,buttonColor2Hover:L,buttonColor2Pressed:R,fontWeightStrong:ie}=e;return Object.assign(Object.assign({},Ph),{closeBorderRadius:y,heightTiny:b,heightSmall:A,heightMedium:_,heightLarge:k,borderRadius:y,opacityDisabled:h,fontSizeTiny:I,fontSizeSmall:$,fontSizeMedium:E,fontSizeLarge:P,fontWeightStrong:ie,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:d,colorCheckable:"#0000",colorHoverCheckable:L,colorPressedCheckable:R,colorChecked:n,colorCheckedHover:o,colorCheckedPressed:r,border:`1px solid ${c}`,textColor:t,color:u,colorBordered:"#0000",closeIconColor:f,closeIconColorHover:p,closeIconColorPressed:g,closeColorHover:x,closeColorPressed:v,borderPrimary:`1px solid ${Z(n,{alpha:.3})}`,textColorPrimary:n,colorPrimary:Z(n,{alpha:.16}),colorBorderedPrimary:"#0000",closeIconColorPrimary:at(n,{lightness:.7}),closeIconColorHoverPrimary:at(n,{lightness:.7}),closeIconColorPressedPrimary:at(n,{lightness:.7}),closeColorHoverPrimary:Z(n,{alpha:.16}),closeColorPressedPrimary:Z(n,{alpha:.12}),borderInfo:`1px solid ${Z(i,{alpha:.3})}`,textColorInfo:i,colorInfo:Z(i,{alpha:.16}),colorBorderedInfo:"#0000",closeIconColorInfo:at(i,{alpha:.7}),closeIconColorHoverInfo:at(i,{alpha:.7}),closeIconColorPressedInfo:at(i,{alpha:.7}),closeColorHoverInfo:Z(i,{alpha:.16}),closeColorPressedInfo:Z(i,{alpha:.12}),borderSuccess:`1px solid ${Z(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:Z(a,{alpha:.16}),colorBorderedSuccess:"#0000",closeIconColorSuccess:at(a,{alpha:.7}),closeIconColorHoverSuccess:at(a,{alpha:.7}),closeIconColorPressedSuccess:at(a,{alpha:.7}),closeColorHoverSuccess:Z(a,{alpha:.16}),closeColorPressedSuccess:Z(a,{alpha:.12}),borderWarning:`1px solid ${Z(l,{alpha:.3})}`,textColorWarning:l,colorWarning:Z(l,{alpha:.16}),colorBorderedWarning:"#0000",closeIconColorWarning:at(l,{alpha:.7}),closeIconColorHoverWarning:at(l,{alpha:.7}),closeIconColorPressedWarning:at(l,{alpha:.7}),closeColorHoverWarning:Z(l,{alpha:.16}),closeColorPressedWarning:Z(l,{alpha:.11}),borderError:`1px solid ${Z(s,{alpha:.3})}`,textColorError:s,colorError:Z(s,{alpha:.16}),colorBorderedError:"#0000",closeIconColorError:at(s,{alpha:.7}),closeIconColorHoverError:at(s,{alpha:.7}),closeIconColorPressedError:at(s,{alpha:.7}),closeColorHoverError:Z(s,{alpha:.16}),closeColorPressedError:Z(s,{alpha:.12})})}};function AS(e){const{textColor2:t,primaryColorHover:o,primaryColorPressed:r,primaryColor:n,infoColor:i,successColor:a,warningColor:l,errorColor:s,baseColor:d,borderColor:c,opacityDisabled:u,tagColor:h,closeIconColor:f,closeIconColorHover:p,closeIconColorPressed:g,borderRadiusSmall:x,fontSizeMini:v,fontSizeTiny:y,fontSizeSmall:I,fontSizeMedium:$,heightMini:E,heightTiny:P,heightSmall:b,heightMedium:A,closeColorHover:_,closeColorPressed:k,buttonColor2Hover:L,buttonColor2Pressed:R,fontWeightStrong:ie}=e;return Object.assign(Object.assign({},Ph),{closeBorderRadius:x,heightTiny:E,heightSmall:P,heightMedium:b,heightLarge:A,borderRadius:x,opacityDisabled:u,fontSizeTiny:v,fontSizeSmall:y,fontSizeMedium:I,fontSizeLarge:$,fontWeightStrong:ie,textColorCheckable:t,textColorHoverCheckable:t,textColorPressedCheckable:t,textColorChecked:d,colorCheckable:"#0000",colorHoverCheckable:L,colorPressedCheckable:R,colorChecked:n,colorCheckedHover:o,colorCheckedPressed:r,border:`1px solid ${c}`,textColor:t,color:h,colorBordered:"rgb(250, 250, 252)",closeIconColor:f,closeIconColorHover:p,closeIconColorPressed:g,closeColorHover:_,closeColorPressed:k,borderPrimary:`1px solid ${Z(n,{alpha:.3})}`,textColorPrimary:n,colorPrimary:Z(n,{alpha:.12}),colorBorderedPrimary:Z(n,{alpha:.1}),closeIconColorPrimary:n,closeIconColorHoverPrimary:n,closeIconColorPressedPrimary:n,closeColorHoverPrimary:Z(n,{alpha:.12}),closeColorPressedPrimary:Z(n,{alpha:.18}),borderInfo:`1px solid ${Z(i,{alpha:.3})}`,textColorInfo:i,colorInfo:Z(i,{alpha:.12}),colorBorderedInfo:Z(i,{alpha:.1}),closeIconColorInfo:i,closeIconColorHoverInfo:i,closeIconColorPressedInfo:i,closeColorHoverInfo:Z(i,{alpha:.12}),closeColorPressedInfo:Z(i,{alpha:.18}),borderSuccess:`1px solid ${Z(a,{alpha:.3})}`,textColorSuccess:a,colorSuccess:Z(a,{alpha:.12}),colorBorderedSuccess:Z(a,{alpha:.1}),closeIconColorSuccess:a,closeIconColorHoverSuccess:a,closeIconColorPressedSuccess:a,closeColorHoverSuccess:Z(a,{alpha:.12}),closeColorPressedSuccess:Z(a,{alpha:.18}),borderWarning:`1px solid ${Z(l,{alpha:.35})}`,textColorWarning:l,colorWarning:Z(l,{alpha:.15}),colorBorderedWarning:Z(l,{alpha:.12}),closeIconColorWarning:l,closeIconColorHoverWarning:l,closeIconColorPressedWarning:l,closeColorHoverWarning:Z(l,{alpha:.12}),closeColorPressedWarning:Z(l,{alpha:.18}),borderError:`1px solid ${Z(s,{alpha:.23})}`,textColorError:s,colorError:Z(s,{alpha:.1}),colorBorderedError:Z(s,{alpha:.08}),closeIconColorError:s,closeIconColorHoverError:s,closeIconColorPressedError:s,closeColorHoverError:Z(s,{alpha:.12}),closeColorPressedError:Z(s,{alpha:.18})})}const HS={common:mt,self:AS},kS={color:Object,type:{type:String,default:"default"},round:Boolean,size:{type:String,default:"medium"},closable:Boolean,disabled:{type:Boolean,default:void 0}},FS=M("tag",`
|
|
351
|
+
--n-close-margin: var(--n-close-margin-top) var(--n-close-margin-right) var(--n-close-margin-bottom) var(--n-close-margin-left);
|
|
352
|
+
white-space: nowrap;
|
|
353
|
+
position: relative;
|
|
354
|
+
box-sizing: border-box;
|
|
355
|
+
cursor: default;
|
|
356
|
+
display: inline-flex;
|
|
357
|
+
align-items: center;
|
|
358
|
+
flex-wrap: nowrap;
|
|
359
|
+
padding: var(--n-padding);
|
|
360
|
+
border-radius: var(--n-border-radius);
|
|
361
|
+
color: var(--n-text-color);
|
|
362
|
+
background-color: var(--n-color);
|
|
363
|
+
transition:
|
|
364
|
+
border-color .3s var(--n-bezier),
|
|
365
|
+
background-color .3s var(--n-bezier),
|
|
366
|
+
color .3s var(--n-bezier),
|
|
367
|
+
box-shadow .3s var(--n-bezier),
|
|
368
|
+
opacity .3s var(--n-bezier);
|
|
369
|
+
line-height: 1;
|
|
370
|
+
height: var(--n-height);
|
|
371
|
+
font-size: var(--n-font-size);
|
|
372
|
+
`,[D("strong",`
|
|
373
|
+
font-weight: var(--n-font-weight-strong);
|
|
374
|
+
`),O("border",`
|
|
375
|
+
pointer-events: none;
|
|
376
|
+
position: absolute;
|
|
377
|
+
left: 0;
|
|
378
|
+
right: 0;
|
|
379
|
+
top: 0;
|
|
380
|
+
bottom: 0;
|
|
381
|
+
border-radius: inherit;
|
|
382
|
+
border: var(--n-border);
|
|
383
|
+
transition: border-color .3s var(--n-bezier);
|
|
384
|
+
`),O("icon",`
|
|
385
|
+
display: flex;
|
|
386
|
+
margin: 0 4px 0 0;
|
|
387
|
+
color: var(--n-text-color);
|
|
388
|
+
transition: color .3s var(--n-bezier);
|
|
389
|
+
font-size: var(--n-avatar-size-override);
|
|
390
|
+
`),O("avatar",`
|
|
391
|
+
display: flex;
|
|
392
|
+
margin: 0 6px 0 0;
|
|
393
|
+
`),O("close",`
|
|
394
|
+
margin: var(--n-close-margin);
|
|
395
|
+
transition:
|
|
396
|
+
background-color .3s var(--n-bezier),
|
|
397
|
+
color .3s var(--n-bezier);
|
|
398
|
+
`),D("round",`
|
|
399
|
+
padding: 0 calc(var(--n-height) / 3);
|
|
400
|
+
border-radius: calc(var(--n-height) / 2);
|
|
401
|
+
`,[O("icon",`
|
|
402
|
+
margin: 0 4px 0 calc((var(--n-height) - 8px) / -2);
|
|
403
|
+
`),O("avatar",`
|
|
404
|
+
margin: 0 6px 0 calc((var(--n-height) - 8px) / -2);
|
|
405
|
+
`),D("closable",`
|
|
406
|
+
padding: 0 calc(var(--n-height) / 4) 0 calc(var(--n-height) / 3);
|
|
407
|
+
`)]),D("icon, avatar",[D("round",`
|
|
408
|
+
padding: 0 calc(var(--n-height) / 3) 0 calc(var(--n-height) / 2);
|
|
409
|
+
`)]),D("disabled",`
|
|
410
|
+
cursor: not-allowed !important;
|
|
411
|
+
opacity: var(--n-opacity-disabled);
|
|
412
|
+
`),D("checkable",`
|
|
413
|
+
cursor: pointer;
|
|
414
|
+
box-shadow: none;
|
|
415
|
+
color: var(--n-text-color-checkable);
|
|
416
|
+
background-color: var(--n-color-checkable);
|
|
417
|
+
`,[St("disabled",[B("&:hover","background-color: var(--n-color-hover-checkable);",[St("checked","color: var(--n-text-color-hover-checkable);")]),B("&:active","background-color: var(--n-color-pressed-checkable);",[St("checked","color: var(--n-text-color-pressed-checkable);")])]),D("checked",`
|
|
418
|
+
color: var(--n-text-color-checked);
|
|
419
|
+
background-color: var(--n-color-checked);
|
|
420
|
+
`,[St("disabled",[B("&:hover","background-color: var(--n-color-checked-hover);"),B("&:active","background-color: var(--n-color-checked-pressed);")])])])]),OS=Object.assign(Object.assign(Object.assign({},_e.props),kS),{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}),LS="n-tag",Il=ge({name:"Tag",props:OS,slots:Object,setup(e){const t=W(null),{mergedBorderedRef:o,mergedClsPrefixRef:r,inlineThemeDisabled:n,mergedRtlRef:i}=tt(e),a=_e("Tag","-tag",FS,HS,e,r);$t(LS,{roundRef:Be(e,"round")});function l(){if(!e.disabled&&e.checkable){const{checked:f,onCheckedChange:p,onUpdateChecked:g,"onUpdate:checked":x}=e;g&&g(!f),x&&x(!f),p&&p(!f)}}function s(f){if(e.triggerClickOnClose||f.stopPropagation(),!e.disabled){const{onClose:p}=e;p&&je(p,f)}}const d={setTextContent(f){const{value:p}=t;p&&(p.textContent=f)}},c=fo("Tag",i,r),u=N(()=>{const{type:f,size:p,color:{color:g,textColor:x}={}}=e,{common:{cubicBezierEaseInOut:v},self:{padding:y,closeMargin:I,borderRadius:$,opacityDisabled:E,textColorCheckable:P,textColorHoverCheckable:b,textColorPressedCheckable:A,textColorChecked:_,colorCheckable:k,colorHoverCheckable:L,colorPressedCheckable:R,colorChecked:ie,colorCheckedHover:ce,colorCheckedPressed:U,closeBorderRadius:oe,fontWeightStrong:Q,[ae("colorBordered",f)]:H,[ae("closeSize",p)]:ne,[ae("closeIconSize",p)]:ue,[ae("fontSize",p)]:me,[ae("height",p)]:xe,[ae("color",f)]:Ee,[ae("textColor",f)]:Ae,[ae("border",f)]:We,[ae("closeIconColor",f)]:$e,[ae("closeIconColorHover",f)]:it,[ae("closeIconColorPressed",f)]:Pt,[ae("closeColorHover",f)]:ze,[ae("closeColorPressed",f)]:Qe}}=a.value,Tt=to(I);return{"--n-font-weight-strong":Q,"--n-avatar-size-override":`calc(${xe} - 8px)`,"--n-bezier":v,"--n-border-radius":$,"--n-border":We,"--n-close-icon-size":ue,"--n-close-color-pressed":Qe,"--n-close-color-hover":ze,"--n-close-border-radius":oe,"--n-close-icon-color":$e,"--n-close-icon-color-hover":it,"--n-close-icon-color-pressed":Pt,"--n-close-icon-color-disabled":$e,"--n-close-margin-top":Tt.top,"--n-close-margin-right":Tt.right,"--n-close-margin-bottom":Tt.bottom,"--n-close-margin-left":Tt.left,"--n-close-size":ne,"--n-color":g||(o.value?H:Ee),"--n-color-checkable":k,"--n-color-checked":ie,"--n-color-checked-hover":ce,"--n-color-checked-pressed":U,"--n-color-hover-checkable":L,"--n-color-pressed-checkable":R,"--n-font-size":me,"--n-height":xe,"--n-opacity-disabled":E,"--n-padding":y,"--n-text-color":x||Ae,"--n-text-color-checkable":P,"--n-text-color-checked":_,"--n-text-color-hover-checkable":b,"--n-text-color-pressed-checkable":A}}),h=n?ht("tag",N(()=>{let f="";const{type:p,size:g,color:{color:x,textColor:v}={}}=e;return f+=p[0],f+=g[0],x&&(f+=`a${Qi(x)}`),v&&(f+=`b${Qi(v)}`),o.value&&(f+="c"),f}),u,e):void 0;return Object.assign(Object.assign({},d),{rtlEnabled:c,mergedClsPrefix:r,contentRef:t,mergedBordered:o,handleClick:l,handleCloseClick:s,cssVars:n?void 0:u,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender})},render(){var e,t;const{mergedClsPrefix:o,rtlEnabled:r,closable:n,color:{borderColor:i}={},round:a,onRender:l,$slots:s}=this;l==null||l();const d=dt(s.avatar,u=>u&&m("div",{class:`${o}-tag__avatar`},u)),c=dt(s.icon,u=>u&&m("div",{class:`${o}-tag__icon`},u));return m("div",{class:[`${o}-tag`,this.themeClass,{[`${o}-tag--rtl`]:r,[`${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`]:a,[`${o}-tag--avatar`]:d,[`${o}-tag--icon`]:c,[`${o}-tag--closable`]:n}],style:this.cssVars,onClick:this.handleClick,onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave},c||d,m("span",{class:`${o}-tag__content`,ref:"contentRef"},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e)),!this.checkable&&n?m(zl,{clsPrefix:o,class:`${o}-tag__close`,disabled:this.disabled,onClick:this.handleCloseClick,focusable:this.internalCloseFocusable,round:a,isButtonTag:this.internalCloseIsButtonTag,absolute:!0}):null,!this.checkable&&this.mergedBordered?m("div",{class:`${o}-tag__border`,style:{borderColor:i}}):null)}}),DS=ge({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 m(mi,{clsPrefix:o,class:`${o}-base-suffix`,strokeWidth:24,scale:.85,show:e.loading},{default:()=>e.showArrow?m(La,{clsPrefix:o,show:e.showClear,onClear:e.onClear},{placeholder:()=>m(_o,{clsPrefix:o,class:`${o}-base-suffix__arrow`},{default:()=>lr(t.default,()=>[m(Xw,null)])})}):null})}}}),WS={paddingSingle:"0 26px 0 12px",paddingMultiple:"3px 26px 0 12px",clearSize:"16px",arrowSize:"16px"},Cs={name:"InternalSelection",common:te,peers:{Popover:Fr},self(e){const{borderRadius:t,textColor2:o,textColorDisabled:r,inputColor:n,inputColorDisabled:i,primaryColor:a,primaryColorHover:l,warningColor:s,warningColorHover:d,errorColor:c,errorColorHover:u,iconColor:h,iconColorDisabled:f,clearColor:p,clearColorHover:g,clearColorPressed:x,placeholderColor:v,placeholderColorDisabled:y,fontSizeTiny:I,fontSizeSmall:$,fontSizeMedium:E,fontSizeLarge:P,heightTiny:b,heightSmall:A,heightMedium:_,heightLarge:k,fontWeight:L}=e;return Object.assign(Object.assign({},WS),{fontWeight:L,fontSizeTiny:I,fontSizeSmall:$,fontSizeMedium:E,fontSizeLarge:P,heightTiny:b,heightSmall:A,heightMedium:_,heightLarge:k,borderRadius:t,textColor:o,textColorDisabled:r,placeholderColor:v,placeholderColorDisabled:y,color:n,colorDisabled:i,colorActive:Z(a,{alpha:.1}),border:"1px solid #0000",borderHover:`1px solid ${l}`,borderActive:`1px solid ${a}`,borderFocus:`1px solid ${l}`,boxShadowHover:"none",boxShadowActive:`0 0 8px 0 ${Z(a,{alpha:.4})}`,boxShadowFocus:`0 0 8px 0 ${Z(a,{alpha:.4})}`,caretColor:a,arrowColor:h,arrowColorDisabled:f,loadingColor:a,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${d}`,borderActiveWarning:`1px solid ${s}`,borderFocusWarning:`1px solid ${d}`,boxShadowHoverWarning:"none",boxShadowActiveWarning:`0 0 8px 0 ${Z(s,{alpha:.4})}`,boxShadowFocusWarning:`0 0 8px 0 ${Z(s,{alpha:.4})}`,colorActiveWarning:Z(s,{alpha:.1}),caretColorWarning:s,borderError:`1px solid ${c}`,borderHoverError:`1px solid ${u}`,borderActiveError:`1px solid ${c}`,borderFocusError:`1px solid ${u}`,boxShadowHoverError:"none",boxShadowActiveError:`0 0 8px 0 ${Z(c,{alpha:.4})}`,boxShadowFocusError:`0 0 8px 0 ${Z(c,{alpha:.4})}`,colorActiveError:Z(c,{alpha:.1}),caretColorError:c,clearColor:p,clearColorHover:g,clearColorPressed:x})}},{cubicBezierEaseInOut:Jo}=hr;function jS({duration:e=".2s",delay:t=".1s"}={}){return[B("&.fade-in-width-expand-transition-leave-from, &.fade-in-width-expand-transition-enter-to",{opacity:1}),B("&.fade-in-width-expand-transition-leave-to, &.fade-in-width-expand-transition-enter-from",`
|
|
421
|
+
opacity: 0!important;
|
|
422
|
+
margin-left: 0!important;
|
|
423
|
+
margin-right: 0!important;
|
|
424
|
+
`),B("&.fade-in-width-expand-transition-leave-active",`
|
|
425
|
+
overflow: hidden;
|
|
426
|
+
transition:
|
|
427
|
+
opacity ${e} ${Jo},
|
|
428
|
+
max-width ${e} ${Jo} ${t},
|
|
429
|
+
margin-left ${e} ${Jo} ${t},
|
|
430
|
+
margin-right ${e} ${Jo} ${t};
|
|
431
|
+
`),B("&.fade-in-width-expand-transition-enter-active",`
|
|
432
|
+
overflow: hidden;
|
|
433
|
+
transition:
|
|
434
|
+
opacity ${e} ${Jo} ${t},
|
|
435
|
+
max-width ${e} ${Jo},
|
|
436
|
+
margin-left ${e} ${Jo},
|
|
437
|
+
margin-right ${e} ${Jo};
|
|
438
|
+
`)]}const VS=M("base-wave",`
|
|
439
|
+
position: absolute;
|
|
440
|
+
left: 0;
|
|
441
|
+
right: 0;
|
|
442
|
+
top: 0;
|
|
443
|
+
bottom: 0;
|
|
444
|
+
border-radius: inherit;
|
|
445
|
+
`),NS=ge({name:"BaseWave",props:{clsPrefix:{type:String,required:!0}},setup(e){Hr("-base-wave",VS,Be(e,"clsPrefix"));const t=W(null),o=W(!1);let r=null;return Yt(()=>{r!==null&&window.clearTimeout(r)}),{active:o,selfRef:t,play(){r!==null&&(window.clearTimeout(r),o.value=!1,r=null),lo(()=>{var n;(n=t.value)===null||n===void 0||n.offsetHeight,o.value=!0,r=window.setTimeout(()=>{o.value=!1,r=null},1e3)})}}},render(){const{clsPrefix:e}=this;return m("div",{ref:"selfRef","aria-hidden":!0,class:[`${e}-base-wave`,this.active&&`${e}-base-wave--active`]})}}),US={iconMargin:"11px 8px 0 12px",iconMarginRtl:"11px 12px 0 8px",iconSize:"24px",closeIconSize:"16px",closeSize:"20px",closeMargin:"13px 14px 0 0",closeMarginRtl:"13px 0 0 14px",padding:"13px"},GS={name:"Alert",common:te,self(e){const{lineHeight:t,borderRadius:o,fontWeightStrong:r,dividerColor:n,inputColor:i,textColor1:a,textColor2:l,closeColorHover:s,closeColorPressed:d,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:h,infoColorSuppl:f,successColorSuppl:p,warningColorSuppl:g,errorColorSuppl:x,fontSize:v}=e;return Object.assign(Object.assign({},US),{fontSize:v,lineHeight:t,titleFontWeight:r,borderRadius:o,border:`1px solid ${n}`,color:i,titleTextColor:a,iconColor:l,contentTextColor:l,closeBorderRadius:o,closeColorHover:s,closeColorPressed:d,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:h,borderInfo:`1px solid ${Z(f,{alpha:.35})}`,colorInfo:Z(f,{alpha:.25}),titleTextColorInfo:a,iconColorInfo:f,contentTextColorInfo:l,closeColorHoverInfo:s,closeColorPressedInfo:d,closeIconColorInfo:c,closeIconColorHoverInfo:u,closeIconColorPressedInfo:h,borderSuccess:`1px solid ${Z(p,{alpha:.35})}`,colorSuccess:Z(p,{alpha:.25}),titleTextColorSuccess:a,iconColorSuccess:p,contentTextColorSuccess:l,closeColorHoverSuccess:s,closeColorPressedSuccess:d,closeIconColorSuccess:c,closeIconColorHoverSuccess:u,closeIconColorPressedSuccess:h,borderWarning:`1px solid ${Z(g,{alpha:.35})}`,colorWarning:Z(g,{alpha:.25}),titleTextColorWarning:a,iconColorWarning:g,contentTextColorWarning:l,closeColorHoverWarning:s,closeColorPressedWarning:d,closeIconColorWarning:c,closeIconColorHoverWarning:u,closeIconColorPressedWarning:h,borderError:`1px solid ${Z(x,{alpha:.35})}`,colorError:Z(x,{alpha:.25}),titleTextColorError:a,iconColorError:x,contentTextColorError:l,closeColorHoverError:s,closeColorPressedError:d,closeIconColorError:c,closeIconColorHoverError:u,closeIconColorPressedError:h})}},{cubicBezierEaseInOut:go,cubicBezierEaseOut:KS,cubicBezierEaseIn:qS}=hr;function YS({overflow:e="hidden",duration:t=".3s",originalTransition:o="",leavingDelay:r="0s",foldPadding:n=!1,enterToProps:i=void 0,leaveToProps:a=void 0,reverse:l=!1}={}){const s=l?"leave":"enter",d=l?"enter":"leave";return[B(`&.fade-in-height-expand-transition-${d}-from,
|
|
446
|
+
&.fade-in-height-expand-transition-${s}-to`,Object.assign(Object.assign({},i),{opacity:1})),B(`&.fade-in-height-expand-transition-${d}-to,
|
|
447
|
+
&.fade-in-height-expand-transition-${s}-from`,Object.assign(Object.assign({},a),{opacity:0,marginTop:"0 !important",marginBottom:"0 !important",paddingTop:n?"0 !important":void 0,paddingBottom:n?"0 !important":void 0})),B(`&.fade-in-height-expand-transition-${d}-active`,`
|
|
448
|
+
overflow: ${e};
|
|
449
|
+
transition:
|
|
450
|
+
max-height ${t} ${go} ${r},
|
|
451
|
+
opacity ${t} ${KS} ${r},
|
|
452
|
+
margin-top ${t} ${go} ${r},
|
|
453
|
+
margin-bottom ${t} ${go} ${r},
|
|
454
|
+
padding-top ${t} ${go} ${r},
|
|
455
|
+
padding-bottom ${t} ${go} ${r}
|
|
456
|
+
${o?`,${o}`:""}
|
|
457
|
+
`),B(`&.fade-in-height-expand-transition-${s}-active`,`
|
|
458
|
+
overflow: ${e};
|
|
459
|
+
transition:
|
|
460
|
+
max-height ${t} ${go},
|
|
461
|
+
opacity ${t} ${qS},
|
|
462
|
+
margin-top ${t} ${go},
|
|
463
|
+
margin-bottom ${t} ${go},
|
|
464
|
+
padding-top ${t} ${go},
|
|
465
|
+
padding-bottom ${t} ${go}
|
|
466
|
+
${o?`,${o}`:""}
|
|
467
|
+
`)]}const XS={linkFontSize:"13px",linkPadding:"0 0 0 16px",railWidth:"4px"};function ZS(e){const{borderRadius:t,railColor:o,primaryColor:r,primaryColorHover:n,primaryColorPressed:i,textColor2:a}=e;return Object.assign(Object.assign({},XS),{borderRadius:t,railColor:o,railColorActive:r,linkColor:Z(r,{alpha:.15}),linkTextColor:a,linkTextColorHover:n,linkTextColorPressed:i,linkTextColorActive:r})}const JS={name:"Anchor",common:te,self:ZS},QS=hn&&"chrome"in window;hn&&navigator.userAgent.includes("Firefox");const _h=hn&&navigator.userAgent.includes("Safari")&&!QS,zh={paddingTiny:"0 8px",paddingSmall:"0 10px",paddingMedium:"0 12px",paddingLarge:"0 14px",clearSize:"16px"};function e2(e){const{textColor2:t,textColor3:o,textColorDisabled:r,primaryColor:n,primaryColorHover:i,inputColor:a,inputColorDisabled:l,warningColor:s,warningColorHover:d,errorColor:c,errorColorHover:u,borderRadius:h,lineHeight:f,fontSizeTiny:p,fontSizeSmall:g,fontSizeMedium:x,fontSizeLarge:v,heightTiny:y,heightSmall:I,heightMedium:$,heightLarge:E,clearColor:P,clearColorHover:b,clearColorPressed:A,placeholderColor:_,placeholderColorDisabled:k,iconColor:L,iconColorDisabled:R,iconColorHover:ie,iconColorPressed:ce,fontWeight:U}=e;return Object.assign(Object.assign({},zh),{fontWeight:U,countTextColorDisabled:r,countTextColor:o,heightTiny:y,heightSmall:I,heightMedium:$,heightLarge:E,fontSizeTiny:p,fontSizeSmall:g,fontSizeMedium:x,fontSizeLarge:v,lineHeight:f,lineHeightTextarea:f,borderRadius:h,iconSize:"16px",groupLabelColor:a,textColor:t,textColorDisabled:r,textDecorationColor:t,groupLabelTextColor:t,caretColor:n,placeholderColor:_,placeholderColorDisabled:k,color:a,colorDisabled:l,colorFocus:Z(n,{alpha:.1}),groupLabelBorder:"1px solid #0000",border:"1px solid #0000",borderHover:`1px solid ${i}`,borderDisabled:"1px solid #0000",borderFocus:`1px solid ${i}`,boxShadowFocus:`0 0 8px 0 ${Z(n,{alpha:.3})}`,loadingColor:n,loadingColorWarning:s,borderWarning:`1px solid ${s}`,borderHoverWarning:`1px solid ${d}`,colorFocusWarning:Z(s,{alpha:.1}),borderFocusWarning:`1px solid ${d}`,boxShadowFocusWarning:`0 0 8px 0 ${Z(s,{alpha:.3})}`,caretColorWarning:s,loadingColorError:c,borderError:`1px solid ${c}`,borderHoverError:`1px solid ${u}`,colorFocusError:Z(c,{alpha:.1}),borderFocusError:`1px solid ${u}`,boxShadowFocusError:`0 0 8px 0 ${Z(c,{alpha:.3})}`,caretColorError:c,clearColor:P,clearColorHover:b,clearColorPressed:A,iconColor:L,iconColorDisabled:R,iconColorHover:ie,iconColorPressed:ce,suffixTextColor:t})}const Xt={name:"Input",common:te,peers:{Scrollbar:kt},self:e2};function t2(e){const{textColor2:t,textColor3:o,textColorDisabled:r,primaryColor:n,primaryColorHover:i,inputColor:a,inputColorDisabled:l,borderColor:s,warningColor:d,warningColorHover:c,errorColor:u,errorColorHover:h,borderRadius:f,lineHeight:p,fontSizeTiny:g,fontSizeSmall:x,fontSizeMedium:v,fontSizeLarge:y,heightTiny:I,heightSmall:$,heightMedium:E,heightLarge:P,actionColor:b,clearColor:A,clearColorHover:_,clearColorPressed:k,placeholderColor:L,placeholderColorDisabled:R,iconColor:ie,iconColorDisabled:ce,iconColorHover:U,iconColorPressed:oe,fontWeight:Q}=e;return Object.assign(Object.assign({},zh),{fontWeight:Q,countTextColorDisabled:r,countTextColor:o,heightTiny:I,heightSmall:$,heightMedium:E,heightLarge:P,fontSizeTiny:g,fontSizeSmall:x,fontSizeMedium:v,fontSizeLarge:y,lineHeight:p,lineHeightTextarea:p,borderRadius:f,iconSize:"16px",groupLabelColor:b,groupLabelTextColor:t,textColor:t,textColorDisabled:r,textDecorationColor:t,caretColor:n,placeholderColor:L,placeholderColorDisabled:R,color:a,colorDisabled:l,colorFocus:a,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 ${Z(n,{alpha:.2})}`,loadingColor:n,loadingColorWarning:d,borderWarning:`1px solid ${d}`,borderHoverWarning:`1px solid ${c}`,colorFocusWarning:a,borderFocusWarning:`1px solid ${c}`,boxShadowFocusWarning:`0 0 0 2px ${Z(d,{alpha:.2})}`,caretColorWarning:d,loadingColorError:u,borderError:`1px solid ${u}`,borderHoverError:`1px solid ${h}`,colorFocusError:a,borderFocusError:`1px solid ${h}`,boxShadowFocusError:`0 0 0 2px ${Z(u,{alpha:.2})}`,caretColorError:u,clearColor:A,clearColorHover:_,clearColorPressed:k,iconColor:ie,iconColorDisabled:ce,iconColorHover:U,iconColorPressed:oe,suffixTextColor:t})}const o2={name:"Input",common:mt,peers:{Scrollbar:vi},self:t2},Eh="n-input",r2=M("input",`
|
|
468
|
+
max-width: 100%;
|
|
469
|
+
cursor: text;
|
|
470
|
+
line-height: 1.5;
|
|
471
|
+
z-index: auto;
|
|
472
|
+
outline: none;
|
|
473
|
+
box-sizing: border-box;
|
|
474
|
+
position: relative;
|
|
475
|
+
display: inline-flex;
|
|
476
|
+
border-radius: var(--n-border-radius);
|
|
477
|
+
background-color: var(--n-color);
|
|
478
|
+
transition: background-color .3s var(--n-bezier);
|
|
479
|
+
font-size: var(--n-font-size);
|
|
480
|
+
font-weight: var(--n-font-weight);
|
|
481
|
+
--n-padding-vertical: calc((var(--n-height) - 1.5 * var(--n-font-size)) / 2);
|
|
482
|
+
`,[O("input, textarea",`
|
|
483
|
+
overflow: hidden;
|
|
484
|
+
flex-grow: 1;
|
|
485
|
+
position: relative;
|
|
486
|
+
`),O("input-el, textarea-el, input-mirror, textarea-mirror, separator, placeholder",`
|
|
487
|
+
box-sizing: border-box;
|
|
488
|
+
font-size: inherit;
|
|
489
|
+
line-height: 1.5;
|
|
490
|
+
font-family: inherit;
|
|
491
|
+
border: none;
|
|
492
|
+
outline: none;
|
|
493
|
+
background-color: #0000;
|
|
494
|
+
text-align: inherit;
|
|
495
|
+
transition:
|
|
496
|
+
-webkit-text-fill-color .3s var(--n-bezier),
|
|
497
|
+
caret-color .3s var(--n-bezier),
|
|
498
|
+
color .3s var(--n-bezier),
|
|
499
|
+
text-decoration-color .3s var(--n-bezier);
|
|
500
|
+
`),O("input-el, textarea-el",`
|
|
501
|
+
-webkit-appearance: none;
|
|
502
|
+
scrollbar-width: none;
|
|
503
|
+
width: 100%;
|
|
504
|
+
min-width: 0;
|
|
505
|
+
text-decoration-color: var(--n-text-decoration-color);
|
|
506
|
+
color: var(--n-text-color);
|
|
507
|
+
caret-color: var(--n-caret-color);
|
|
508
|
+
background-color: transparent;
|
|
509
|
+
`,[B("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
|
|
510
|
+
width: 0;
|
|
511
|
+
height: 0;
|
|
512
|
+
display: none;
|
|
513
|
+
`),B("&::placeholder",`
|
|
514
|
+
color: #0000;
|
|
515
|
+
-webkit-text-fill-color: transparent !important;
|
|
516
|
+
`),B("&:-webkit-autofill ~",[O("placeholder","display: none;")])]),D("round",[St("textarea","border-radius: calc(var(--n-height) / 2);")]),O("placeholder",`
|
|
517
|
+
pointer-events: none;
|
|
518
|
+
position: absolute;
|
|
519
|
+
left: 0;
|
|
520
|
+
right: 0;
|
|
521
|
+
top: 0;
|
|
522
|
+
bottom: 0;
|
|
523
|
+
overflow: hidden;
|
|
524
|
+
color: var(--n-placeholder-color);
|
|
525
|
+
`,[B("span",`
|
|
526
|
+
width: 100%;
|
|
527
|
+
display: inline-block;
|
|
528
|
+
`)]),D("textarea",[O("placeholder","overflow: visible;")]),St("autosize","width: 100%;"),D("autosize",[O("textarea-el, input-el",`
|
|
529
|
+
position: absolute;
|
|
530
|
+
top: 0;
|
|
531
|
+
left: 0;
|
|
532
|
+
height: 100%;
|
|
533
|
+
`)]),M("input-wrapper",`
|
|
534
|
+
overflow: hidden;
|
|
535
|
+
display: inline-flex;
|
|
536
|
+
flex-grow: 1;
|
|
537
|
+
position: relative;
|
|
538
|
+
padding-left: var(--n-padding-left);
|
|
539
|
+
padding-right: var(--n-padding-right);
|
|
540
|
+
`),O("input-mirror",`
|
|
541
|
+
padding: 0;
|
|
542
|
+
height: var(--n-height);
|
|
543
|
+
line-height: var(--n-height);
|
|
544
|
+
overflow: hidden;
|
|
545
|
+
visibility: hidden;
|
|
546
|
+
position: static;
|
|
547
|
+
white-space: pre;
|
|
548
|
+
pointer-events: none;
|
|
549
|
+
`),O("input-el",`
|
|
550
|
+
padding: 0;
|
|
551
|
+
height: var(--n-height);
|
|
552
|
+
line-height: var(--n-height);
|
|
553
|
+
`,[B("&[type=password]::-ms-reveal","display: none;"),B("+",[O("placeholder",`
|
|
554
|
+
display: flex;
|
|
555
|
+
align-items: center;
|
|
556
|
+
`)])]),St("textarea",[O("placeholder","white-space: nowrap;")]),O("eye",`
|
|
557
|
+
display: flex;
|
|
558
|
+
align-items: center;
|
|
559
|
+
justify-content: center;
|
|
560
|
+
transition: color .3s var(--n-bezier);
|
|
561
|
+
`),D("textarea","width: 100%;",[M("input-word-count",`
|
|
562
|
+
position: absolute;
|
|
563
|
+
right: var(--n-padding-right);
|
|
564
|
+
bottom: var(--n-padding-vertical);
|
|
565
|
+
`),D("resizable",[M("input-wrapper",`
|
|
566
|
+
resize: vertical;
|
|
567
|
+
min-height: var(--n-height);
|
|
568
|
+
`)]),O("textarea-el, textarea-mirror, placeholder",`
|
|
569
|
+
height: 100%;
|
|
570
|
+
padding-left: 0;
|
|
571
|
+
padding-right: 0;
|
|
572
|
+
padding-top: var(--n-padding-vertical);
|
|
573
|
+
padding-bottom: var(--n-padding-vertical);
|
|
574
|
+
word-break: break-word;
|
|
575
|
+
display: inline-block;
|
|
576
|
+
vertical-align: bottom;
|
|
577
|
+
box-sizing: border-box;
|
|
578
|
+
line-height: var(--n-line-height-textarea);
|
|
579
|
+
margin: 0;
|
|
580
|
+
resize: none;
|
|
581
|
+
white-space: pre-wrap;
|
|
582
|
+
scroll-padding-block-end: var(--n-padding-vertical);
|
|
583
|
+
`),O("textarea-mirror",`
|
|
584
|
+
width: 100%;
|
|
585
|
+
pointer-events: none;
|
|
586
|
+
overflow: hidden;
|
|
587
|
+
visibility: hidden;
|
|
588
|
+
position: static;
|
|
589
|
+
white-space: pre-wrap;
|
|
590
|
+
overflow-wrap: break-word;
|
|
591
|
+
`)]),D("pair",[O("input-el, placeholder","text-align: center;"),O("separator",`
|
|
592
|
+
display: flex;
|
|
593
|
+
align-items: center;
|
|
594
|
+
transition: color .3s var(--n-bezier);
|
|
595
|
+
color: var(--n-text-color);
|
|
596
|
+
white-space: nowrap;
|
|
597
|
+
`,[M("icon",`
|
|
598
|
+
color: var(--n-icon-color);
|
|
599
|
+
`),M("base-icon",`
|
|
600
|
+
color: var(--n-icon-color);
|
|
601
|
+
`)])]),D("disabled",`
|
|
602
|
+
cursor: not-allowed;
|
|
603
|
+
background-color: var(--n-color-disabled);
|
|
604
|
+
`,[O("border","border: var(--n-border-disabled);"),O("input-el, textarea-el",`
|
|
605
|
+
cursor: not-allowed;
|
|
606
|
+
color: var(--n-text-color-disabled);
|
|
607
|
+
text-decoration-color: var(--n-text-color-disabled);
|
|
608
|
+
`),O("placeholder","color: var(--n-placeholder-color-disabled);"),O("separator","color: var(--n-text-color-disabled);",[M("icon",`
|
|
609
|
+
color: var(--n-icon-color-disabled);
|
|
610
|
+
`),M("base-icon",`
|
|
611
|
+
color: var(--n-icon-color-disabled);
|
|
612
|
+
`)]),M("input-word-count",`
|
|
613
|
+
color: var(--n-count-text-color-disabled);
|
|
614
|
+
`),O("suffix, prefix","color: var(--n-text-color-disabled);",[M("icon",`
|
|
615
|
+
color: var(--n-icon-color-disabled);
|
|
616
|
+
`),M("internal-icon",`
|
|
617
|
+
color: var(--n-icon-color-disabled);
|
|
618
|
+
`)])]),St("disabled",[O("eye",`
|
|
619
|
+
color: var(--n-icon-color);
|
|
620
|
+
cursor: pointer;
|
|
621
|
+
`,[B("&:hover",`
|
|
622
|
+
color: var(--n-icon-color-hover);
|
|
623
|
+
`),B("&:active",`
|
|
624
|
+
color: var(--n-icon-color-pressed);
|
|
625
|
+
`)]),B("&:hover",[O("state-border","border: var(--n-border-hover);")]),D("focus","background-color: var(--n-color-focus);",[O("state-border",`
|
|
626
|
+
border: var(--n-border-focus);
|
|
627
|
+
box-shadow: var(--n-box-shadow-focus);
|
|
628
|
+
`)])]),O("border, state-border",`
|
|
629
|
+
box-sizing: border-box;
|
|
630
|
+
position: absolute;
|
|
631
|
+
left: 0;
|
|
632
|
+
right: 0;
|
|
633
|
+
top: 0;
|
|
634
|
+
bottom: 0;
|
|
635
|
+
pointer-events: none;
|
|
636
|
+
border-radius: inherit;
|
|
637
|
+
border: var(--n-border);
|
|
638
|
+
transition:
|
|
639
|
+
box-shadow .3s var(--n-bezier),
|
|
640
|
+
border-color .3s var(--n-bezier);
|
|
641
|
+
`),O("state-border",`
|
|
642
|
+
border-color: #0000;
|
|
643
|
+
z-index: 1;
|
|
644
|
+
`),O("prefix","margin-right: 4px;"),O("suffix",`
|
|
645
|
+
margin-left: 4px;
|
|
646
|
+
`),O("suffix, prefix",`
|
|
647
|
+
transition: color .3s var(--n-bezier);
|
|
648
|
+
flex-wrap: nowrap;
|
|
649
|
+
flex-shrink: 0;
|
|
650
|
+
line-height: var(--n-height);
|
|
651
|
+
white-space: nowrap;
|
|
652
|
+
display: inline-flex;
|
|
653
|
+
align-items: center;
|
|
654
|
+
justify-content: center;
|
|
655
|
+
color: var(--n-suffix-text-color);
|
|
656
|
+
`,[M("base-loading",`
|
|
657
|
+
font-size: var(--n-icon-size);
|
|
658
|
+
margin: 0 2px;
|
|
659
|
+
color: var(--n-loading-color);
|
|
660
|
+
`),M("base-clear",`
|
|
661
|
+
font-size: var(--n-icon-size);
|
|
662
|
+
`,[O("placeholder",[M("base-icon",`
|
|
663
|
+
transition: color .3s var(--n-bezier);
|
|
664
|
+
color: var(--n-icon-color);
|
|
665
|
+
font-size: var(--n-icon-size);
|
|
666
|
+
`)])]),B(">",[M("icon",`
|
|
667
|
+
transition: color .3s var(--n-bezier);
|
|
668
|
+
color: var(--n-icon-color);
|
|
669
|
+
font-size: var(--n-icon-size);
|
|
670
|
+
`)]),M("base-icon",`
|
|
671
|
+
font-size: var(--n-icon-size);
|
|
672
|
+
`)]),M("input-word-count",`
|
|
673
|
+
pointer-events: none;
|
|
674
|
+
line-height: 1.5;
|
|
675
|
+
font-size: .85em;
|
|
676
|
+
color: var(--n-count-text-color);
|
|
677
|
+
transition: color .3s var(--n-bezier);
|
|
678
|
+
margin-left: 4px;
|
|
679
|
+
font-variant: tabular-nums;
|
|
680
|
+
`),["warning","error"].map(e=>D(`${e}-status`,[St("disabled",[M("base-loading",`
|
|
681
|
+
color: var(--n-loading-color-${e})
|
|
682
|
+
`),O("input-el, textarea-el",`
|
|
683
|
+
caret-color: var(--n-caret-color-${e});
|
|
684
|
+
`),O("state-border",`
|
|
685
|
+
border: var(--n-border-${e});
|
|
686
|
+
`),B("&:hover",[O("state-border",`
|
|
687
|
+
border: var(--n-border-hover-${e});
|
|
688
|
+
`)]),B("&:focus",`
|
|
689
|
+
background-color: var(--n-color-focus-${e});
|
|
690
|
+
`,[O("state-border",`
|
|
691
|
+
box-shadow: var(--n-box-shadow-focus-${e});
|
|
692
|
+
border: var(--n-border-focus-${e});
|
|
693
|
+
`)]),D("focus",`
|
|
694
|
+
background-color: var(--n-color-focus-${e});
|
|
695
|
+
`,[O("state-border",`
|
|
696
|
+
box-shadow: var(--n-box-shadow-focus-${e});
|
|
697
|
+
border: var(--n-border-focus-${e});
|
|
698
|
+
`)])])]))]),n2=M("input",[D("disabled",[O("input-el, textarea-el",`
|
|
699
|
+
-webkit-text-fill-color: var(--n-text-color-disabled);
|
|
700
|
+
`)])]);function i2(e){let t=0;for(const o of e)t++;return t}function Bi(e){return e===""||e==null}function l2(e){const t=W(null);function o(){const{value:i}=e;if(!(i!=null&&i.focus)){n();return}const{selectionStart:a,selectionEnd:l,value:s}=i;if(a==null||l==null){n();return}t.value={start:a,end:l,beforeText:s.slice(0,a),afterText:s.slice(l)}}function r(){var i;const{value:a}=t,{value:l}=e;if(!a||!l)return;const{value:s}=l,{start:d,beforeText:c,afterText:u}=a;let h=s.length;if(s.endsWith(u))h=s.length-u.length;else if(s.startsWith(c))h=c.length;else{const f=c[d-1],p=s.indexOf(f,d-1);p!==-1&&(h=p+1)}(i=l.setSelectionRange)===null||i===void 0||i.call(l,h,h)}function n(){t.value=null}return Xe(e,n),{recordCursor:o,restoreCursor:r}}const fd=ge({name:"InputWordCount",setup(e,{slots:t}){const{mergedValueRef:o,maxlengthRef:r,mergedClsPrefixRef:n,countGraphemesRef:i}=Le(Eh),a=N(()=>{const{value:l}=o;return l===null||Array.isArray(l)?0:(i.value||i2)(l)});return()=>{const{value:l}=r,{value:s}=o;return m("span",{class:`${n.value}-input-word-count`},I0(t.default,{value:s===null||Array.isArray(s)?"":s},()=>[l===void 0?a.value:`${a.value} / ${l}`]))}}}),a2=Object.assign(Object.assign({},_e.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}),Ih=ge({name:"Input",props:a2,slots:Object,setup(e){const{mergedClsPrefixRef:t,mergedBorderedRef:o,inlineThemeDisabled:r,mergedRtlRef:n}=tt(e),i=_e("Input","-input",r2,o2,e,t);_h&&Hr("-input-safari",n2,t);const a=W(null),l=W(null),s=W(null),d=W(null),c=W(null),u=W(null),h=W(null),f=l2(h),p=W(null),{localeRef:g}=li("Input"),x=W(e.defaultValue),y=yl(Be(e,"value"),x),I=Af(e),{mergedSizeRef:$,mergedDisabledRef:E,mergedStatusRef:P}=I,b=W(!1),A=W(!1),_=W(!1),k=W(!1);let L=null;const R=N(()=>{const{placeholder:z,pair:K}=e;return K?Array.isArray(z)?z:z===void 0?["",""]:[z,z]:z===void 0?[g.value.placeholder]:[z]}),ie=N(()=>{const{value:z}=_,{value:K}=y,{value:ve}=R;return!z&&(Bi(K)||Array.isArray(K)&&Bi(K[0]))&&ve[0]}),ce=N(()=>{const{value:z}=_,{value:K}=y,{value:ve}=R;return!z&&ve[1]&&(Bi(K)||Array.isArray(K)&&Bi(K[1]))}),U=Po(()=>e.internalForceFocus||b.value),oe=Po(()=>{if(E.value||e.readonly||!e.clearable||!U.value&&!A.value)return!1;const{value:z}=y,{value:K}=U;return e.pair?!!(Array.isArray(z)&&(z[0]||z[1]))&&(A.value||K):!!z&&(A.value||K)}),Q=N(()=>{const{showPasswordOn:z}=e;if(z)return z;if(e.showPasswordToggle)return"click"}),H=W(!1),ne=N(()=>{const{textDecoration:z}=e;return z?Array.isArray(z)?z.map(K=>({textDecoration:K})):[{textDecoration:z}]:["",""]}),ue=W(void 0),me=()=>{var z,K;if(e.type==="textarea"){const{autosize:ve}=e;if(ve&&(ue.value=(K=(z=p.value)===null||z===void 0?void 0:z.$el)===null||K===void 0?void 0:K.offsetWidth),!l.value||typeof ve=="boolean")return;const{paddingTop:Ke,paddingBottom:et,lineHeight:Ge}=window.getComputedStyle(l.value),Io=Number(Ke.slice(0,-2)),Ro=Number(et.slice(0,-2)),Mo=Number(Ge.slice(0,-2)),{value:yn}=s;if(!yn)return;if(ve.minRows){const wn=Math.max(ve.minRows,1),Ml=`${Io+Ro+Mo*wn}px`;yn.style.minHeight=Ml}if(ve.maxRows){const wn=`${Io+Ro+Mo*ve.maxRows}px`;yn.style.maxHeight=wn}}},xe=N(()=>{const{maxlength:z}=e;return z===void 0?void 0:Number(z)});Et(()=>{const{value:z}=y;Array.isArray(z)||wt(z)});const Ee=fn().proxy;function Ae(z,K){const{onUpdateValue:ve,"onUpdate:value":Ke,onInput:et}=e,{nTriggerFormInput:Ge}=I;ve&&je(ve,z,K),Ke&&je(Ke,z,K),et&&je(et,z,K),x.value=z,Ge()}function We(z,K){const{onChange:ve}=e,{nTriggerFormChange:Ke}=I;ve&&je(ve,z,K),x.value=z,Ke()}function $e(z){const{onBlur:K}=e,{nTriggerFormBlur:ve}=I;K&&je(K,z),ve()}function it(z){const{onFocus:K}=e,{nTriggerFormFocus:ve}=I;K&&je(K,z),ve()}function Pt(z){const{onClear:K}=e;K&&je(K,z)}function ze(z){const{onInputBlur:K}=e;K&&je(K,z)}function Qe(z){const{onInputFocus:K}=e;K&&je(K,z)}function Tt(){const{onDeactivate:z}=e;z&&je(z)}function C(){const{onActivate:z}=e;z&&je(z)}function w(z){const{onClick:K}=e;K&&je(K,z)}function F(z){const{onWrapperFocus:K}=e;K&&je(K,z)}function Y(z){const{onWrapperBlur:K}=e;K&&je(K,z)}function G(){_.value=!0}function q(z){_.value=!1,z.target===u.value?re(z,1):re(z,0)}function re(z,K=0,ve="input"){const Ke=z.target.value;if(wt(Ke),z instanceof InputEvent&&!z.isComposing&&(_.value=!1),e.type==="textarea"){const{value:Ge}=p;Ge&&Ge.syncUnifiedContainer()}if(L=Ke,_.value)return;f.recordCursor();const et=ee(Ke);if(et)if(!e.pair)ve==="input"?Ae(Ke,{source:K}):We(Ke,{source:K});else{let{value:Ge}=y;Array.isArray(Ge)?Ge=[Ge[0],Ge[1]]:Ge=["",""],Ge[K]=Ke,ve==="input"?Ae(Ge,{source:K}):We(Ge,{source:K})}Ee.$forceUpdate(),et||lo(f.restoreCursor)}function ee(z){const{countGraphemes:K,maxlength:ve,minlength:Ke}=e;if(K){let Ge;if(ve!==void 0&&(Ge===void 0&&(Ge=K(z)),Ge>Number(ve))||Ke!==void 0&&(Ge===void 0&&(Ge=K(z)),Ge<Number(ve)))return!1}const{allowInput:et}=e;return typeof et=="function"?et(z):!0}function T(z){ze(z),z.relatedTarget===a.value&&Tt(),z.relatedTarget!==null&&(z.relatedTarget===c.value||z.relatedTarget===u.value||z.relatedTarget===l.value)||(k.value=!1),le(z,"blur"),h.value=null}function S(z,K){Qe(z),b.value=!0,k.value=!0,C(),le(z,"focus"),K===0?h.value=c.value:K===1?h.value=u.value:K===2&&(h.value=l.value)}function j(z){e.passivelyActivated&&(Y(z),le(z,"blur"))}function V(z){e.passivelyActivated&&(b.value=!0,F(z),le(z,"focus"))}function le(z,K){z.relatedTarget!==null&&(z.relatedTarget===c.value||z.relatedTarget===u.value||z.relatedTarget===l.value||z.relatedTarget===a.value)||(K==="focus"?(it(z),b.value=!0):K==="blur"&&($e(z),b.value=!1))}function fe(z,K){re(z,K,"change")}function ye(z){w(z)}function Re(z){Pt(z),Ie()}function Ie(){e.pair?(Ae(["",""],{source:"clear"}),We(["",""],{source:"clear"})):(Ae("",{source:"clear"}),We("",{source:"clear"}))}function lt(z){const{onMousedown:K}=e;K&&K(z);const{tagName:ve}=z.target;if(ve!=="INPUT"&&ve!=="TEXTAREA"){if(e.resizable){const{value:Ke}=a;if(Ke){const{left:et,top:Ge,width:Io,height:Ro}=Ke.getBoundingClientRect(),Mo=14;if(et+Io-Mo<z.clientX&&z.clientX<et+Io&&Ge+Ro-Mo<z.clientY&&z.clientY<Ge+Ro)return}}z.preventDefault(),b.value||Ce()}}function ct(){var z;A.value=!0,e.type==="textarea"&&((z=p.value)===null||z===void 0||z.handleMouseEnterWrapper())}function vt(){var z;A.value=!1,e.type==="textarea"&&((z=p.value)===null||z===void 0||z.handleMouseLeaveWrapper())}function bt(){E.value||Q.value==="click"&&(H.value=!H.value)}function Zt(z){if(E.value)return;z.preventDefault();const K=Ke=>{Ke.preventDefault(),st("mouseup",document,K)};if(zt("mouseup",document,K),Q.value!=="mousedown")return;H.value=!0;const ve=()=>{H.value=!1,st("mouseup",document,ve)};zt("mouseup",document,ve)}function Vt(z){e.onKeyup&&je(e.onKeyup,z)}function xt(z){switch(e.onKeydown&&je(e.onKeydown,z),z.key){case"Escape":he();break;case"Enter":X(z);break}}function X(z){var K,ve;if(e.passivelyActivated){const{value:Ke}=k;if(Ke){e.internalDeactivateOnEnter&&he();return}z.preventDefault(),e.type==="textarea"?(K=l.value)===null||K===void 0||K.focus():(ve=c.value)===null||ve===void 0||ve.focus()}}function he(){e.passivelyActivated&&(k.value=!1,lo(()=>{var z;(z=a.value)===null||z===void 0||z.focus()}))}function Ce(){var z,K,ve;E.value||(e.passivelyActivated?(z=a.value)===null||z===void 0||z.focus():((K=l.value)===null||K===void 0||K.focus(),(ve=c.value)===null||ve===void 0||ve.focus()))}function Ue(){var z;!((z=a.value)===null||z===void 0)&&z.contains(document.activeElement)&&document.activeElement.blur()}function ot(){var z,K;(z=l.value)===null||z===void 0||z.select(),(K=c.value)===null||K===void 0||K.select()}function Ct(){E.value||(l.value?l.value.focus():c.value&&c.value.focus())}function yt(){const{value:z}=a;z!=null&&z.contains(document.activeElement)&&z!==document.activeElement&&he()}function qe(z){if(e.type==="textarea"){const{value:K}=l;K==null||K.scrollTo(z)}else{const{value:K}=c;K==null||K.scrollTo(z)}}function wt(z){const{type:K,pair:ve,autosize:Ke}=e;if(!ve&&Ke)if(K==="textarea"){const{value:et}=s;et&&(et.textContent=`${z??""}\r
|
|
701
|
+
`)}else{const{value:et}=d;et&&(z?et.textContent=z:et.innerHTML=" ")}}function Jt(){me()}const Or=W({top:"0"});function bn(z){var K;const{scrollTop:ve}=z.target;Or.value.top=`${-ve}px`,(K=p.value)===null||K===void 0||K.syncUnifiedContainer()}let Ko=null;So(()=>{const{autosize:z,type:K}=e;z&&K==="textarea"?Ko=Xe(y,ve=>{!Array.isArray(ve)&&ve!==L&&wt(ve)}):Ko==null||Ko()});let qo=null;So(()=>{e.type==="textarea"?qo=Xe(y,z=>{var K;!Array.isArray(z)&&z!==L&&((K=p.value)===null||K===void 0||K.syncUnifiedContainer())}):qo==null||qo()}),$t(Eh,{mergedValueRef:y,maxlengthRef:xe,mergedClsPrefixRef:t,countGraphemesRef:Be(e,"countGraphemes")});const xn={wrapperElRef:a,inputElRef:c,textareaElRef:l,isCompositing:_,clear:Ie,focus:Ce,blur:Ue,select:ot,deactivate:yt,activate:Ct,scrollTo:qe},Cn=fo("Input",n,t),Lr=N(()=>{const{value:z}=$,{common:{cubicBezierEaseInOut:K},self:{color:ve,borderRadius:Ke,textColor:et,caretColor:Ge,caretColorError:Io,caretColorWarning:Ro,textDecorationColor:Mo,border:yn,borderDisabled:wn,borderHover:Ml,borderFocus:wp,placeholderColor:Sp,placeholderColorDisabled:$p,lineHeightTextarea:Pp,colorDisabled:Tp,colorFocus:_p,textColorDisabled:zp,boxShadowFocus:Ep,iconSize:Ip,colorFocusWarning:Rp,boxShadowFocusWarning:Mp,borderWarning:Bp,borderFocusWarning:Ap,borderHoverWarning:Hp,colorFocusError:kp,boxShadowFocusError:Fp,borderError:Op,borderFocusError:Lp,borderHoverError:Dp,clearSize:Wp,clearColor:jp,clearColorHover:Vp,clearColorPressed:Np,iconColor:Up,iconColorDisabled:Gp,suffixTextColor:Kp,countTextColor:qp,countTextColorDisabled:Yp,iconColorHover:Xp,iconColorPressed:Zp,loadingColor:Jp,loadingColorError:Qp,loadingColorWarning:eg,fontWeight:tg,[ae("padding",z)]:og,[ae("fontSize",z)]:rg,[ae("height",z)]:ng}}=i.value,{left:ig,right:lg}=to(og);return{"--n-bezier":K,"--n-count-text-color":qp,"--n-count-text-color-disabled":Yp,"--n-color":ve,"--n-font-size":rg,"--n-font-weight":tg,"--n-border-radius":Ke,"--n-height":ng,"--n-padding-left":ig,"--n-padding-right":lg,"--n-text-color":et,"--n-caret-color":Ge,"--n-text-decoration-color":Mo,"--n-border":yn,"--n-border-disabled":wn,"--n-border-hover":Ml,"--n-border-focus":wp,"--n-placeholder-color":Sp,"--n-placeholder-color-disabled":$p,"--n-icon-size":Ip,"--n-line-height-textarea":Pp,"--n-color-disabled":Tp,"--n-color-focus":_p,"--n-text-color-disabled":zp,"--n-box-shadow-focus":Ep,"--n-loading-color":Jp,"--n-caret-color-warning":Ro,"--n-color-focus-warning":Rp,"--n-box-shadow-focus-warning":Mp,"--n-border-warning":Bp,"--n-border-focus-warning":Ap,"--n-border-hover-warning":Hp,"--n-loading-color-warning":eg,"--n-caret-color-error":Io,"--n-color-focus-error":kp,"--n-box-shadow-focus-error":Fp,"--n-border-error":Op,"--n-border-focus-error":Lp,"--n-border-hover-error":Dp,"--n-loading-color-error":Qp,"--n-clear-color":jp,"--n-clear-size":Wp,"--n-clear-color-hover":Vp,"--n-clear-color-pressed":Np,"--n-icon-color":Up,"--n-icon-color-hover":Xp,"--n-icon-color-pressed":Zp,"--n-icon-color-disabled":Gp,"--n-suffix-text-color":Kp}}),Yo=r?ht("input",N(()=>{const{value:z}=$;return z[0]}),Lr,e):void 0;return Object.assign(Object.assign({},xn),{wrapperElRef:a,inputElRef:c,inputMirrorElRef:d,inputEl2Ref:u,textareaElRef:l,textareaMirrorElRef:s,textareaScrollbarInstRef:p,rtlEnabled:Cn,uncontrolledValue:x,mergedValue:y,passwordVisible:H,mergedPlaceholder:R,showPlaceholder1:ie,showPlaceholder2:ce,mergedFocus:U,isComposing:_,activated:k,showClearButton:oe,mergedSize:$,mergedDisabled:E,textDecorationStyle:ne,mergedClsPrefix:t,mergedBordered:o,mergedShowPasswordOn:Q,placeholderStyle:Or,mergedStatus:P,textAreaScrollContainerWidth:ue,handleTextAreaScroll:bn,handleCompositionStart:G,handleCompositionEnd:q,handleInput:re,handleInputBlur:T,handleInputFocus:S,handleWrapperBlur:j,handleWrapperFocus:V,handleMouseEnter:ct,handleMouseLeave:vt,handleMouseDown:lt,handleChange:fe,handleClick:ye,handleClear:Re,handlePasswordToggleClick:bt,handlePasswordToggleMousedown:Zt,handleWrapperKeydown:xt,handleWrapperKeyup:Vt,handleTextAreaMirrorResize:Jt,getTextareaScrollContainer:()=>l.value,mergedTheme:i,cssVars:r?void 0:Lr,themeClass:Yo==null?void 0:Yo.themeClass,onRender:Yo==null?void 0:Yo.onRender})},render(){var e,t,o,r,n,i,a;const{mergedClsPrefix:l,mergedStatus:s,themeClass:d,type:c,countGraphemes:u,onRender:h}=this,f=this.$slots;return h==null||h(),m("div",{ref:"wrapperElRef",class:[`${l}-input`,d,s&&`${l}-input--${s}-status`,{[`${l}-input--rtl`]:this.rtlEnabled,[`${l}-input--disabled`]:this.mergedDisabled,[`${l}-input--textarea`]:c==="textarea",[`${l}-input--resizable`]:this.resizable&&!this.autosize,[`${l}-input--autosize`]:this.autosize,[`${l}-input--round`]:this.round&&c!=="textarea",[`${l}-input--pair`]:this.pair,[`${l}-input--focus`]:this.mergedFocus,[`${l}-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},m("div",{class:`${l}-input-wrapper`},dt(f.prefix,p=>p&&m("div",{class:`${l}-input__prefix`},p)),c==="textarea"?m(El,{ref:"textareaScrollbarInstRef",class:`${l}-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:(r=(o=this.themeOverrides)===null||o===void 0?void 0:o.peers)===null||r===void 0?void 0:r.Scrollbar,triggerDisplayManually:!0,useUnifiedContainer:!0,internalHoistYRail:!0},{default:()=>{var p,g;const{textAreaScrollContainerWidth:x}=this,v={width:this.autosize&&x&&`${x}px`};return m(Me,null,m("textarea",Object.assign({},this.inputProps,{ref:"textareaElRef",class:[`${l}-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,v],onBlur:this.handleInputBlur,onFocus:y=>{this.handleInputFocus(y,2)},onInput:this.handleInput,onChange:this.handleChange,onScroll:this.handleTextAreaScroll})),this.showPlaceholder1?m("div",{class:`${l}-input__placeholder`,style:[this.placeholderStyle,v],key:"placeholder"},this.mergedPlaceholder[0]):null,this.autosize?m(nn,{onResize:this.handleTextAreaMirrorResize},{default:()=>m("div",{ref:"textareaMirrorElRef",class:`${l}-input__textarea-mirror`,key:"mirror"})}):null)}}):m("div",{class:`${l}-input__input`},m("input",Object.assign({type:c==="password"&&this.mergedShowPasswordOn&&this.passwordVisible?"text":c},this.inputProps,{ref:"inputElRef",class:[`${l}-input__input-el`,(n=this.inputProps)===null||n===void 0?void 0:n.class],style:[this.textDecorationStyle[0],(i=this.inputProps)===null||i===void 0?void 0:i.style],tabindex:this.passivelyActivated&&!this.activated?-1:(a=this.inputProps)===null||a===void 0?void 0:a.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?m("div",{class:`${l}-input__placeholder`},m("span",null,this.mergedPlaceholder[0])):null,this.autosize?m("div",{class:`${l}-input__input-mirror`,key:"mirror",ref:"inputMirrorElRef"}," "):null),!this.pair&&dt(f.suffix,p=>p||this.clearable||this.showCount||this.mergedShowPasswordOn||this.loading!==void 0?m("div",{class:`${l}-input__suffix`},[dt(f["clear-icon-placeholder"],g=>(this.clearable||g)&&m(La,{clsPrefix:l,show:this.showClearButton,onClear:this.handleClear},{placeholder:()=>g,icon:()=>{var x,v;return(v=(x=this.$slots)["clear-icon"])===null||v===void 0?void 0:v.call(x)}})),this.internalLoadingBeforeSuffix?null:p,this.loading!==void 0?m(DS,{clsPrefix:l,loading:this.loading,showArrow:!1,showClear:!1,style:this.cssVars}):null,this.internalLoadingBeforeSuffix?p:null,this.showCount&&this.type!=="textarea"?m(fd,null,{default:g=>{var x;const{renderCount:v}=this;return v?v(g):(x=f.count)===null||x===void 0?void 0:x.call(f,g)}}):null,this.mergedShowPasswordOn&&this.type==="password"?m("div",{class:`${l}-input__eye`,onMousedown:this.handlePasswordToggleMousedown,onClick:this.handlePasswordToggleClick},this.passwordVisible?lr(f["password-visible-icon"],()=>[m(_o,{clsPrefix:l},{default:()=>m(tS,null)})]):lr(f["password-invisible-icon"],()=>[m(_o,{clsPrefix:l},{default:()=>m(oS,null)})])):null]):null)),this.pair?m("span",{class:`${l}-input__separator`},lr(f.separator,()=>[this.separator])):null,this.pair?m("div",{class:`${l}-input-wrapper`},m("div",{class:`${l}-input__input`},m("input",{ref:"inputEl2Ref",type:this.type,class:`${l}-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?m("div",{class:`${l}-input__placeholder`},m("span",null,this.mergedPlaceholder[1])):null),dt(f.suffix,p=>(this.clearable||p)&&m("div",{class:`${l}-input__suffix`},[this.clearable&&m(La,{clsPrefix:l,show:this.showClearButton,onClear:this.handleClear},{icon:()=>{var g;return(g=f["clear-icon"])===null||g===void 0?void 0:g.call(f)},placeholder:()=>{var g;return(g=f["clear-icon-placeholder"])===null||g===void 0?void 0:g.call(f)}}),p]))):null,this.mergedBordered?m("div",{class:`${l}-input__border`}):null,this.mergedBordered?m("div",{class:`${l}-input__state-border`}):null,this.showCount&&c==="textarea"?m(fd,null,{default:p=>{var g;const{renderCount:x}=this;return x?x(p):(g=f.count)===null||g===void 0?void 0:g.call(f,p)}}):null)}});function s2(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const c2={name:"AutoComplete",common:te,peers:{InternalSelectMenu:bi,Input:Xt},self:s2};function d2(e){const{borderRadius:t,avatarColor:o,cardColor:r,fontSize:n,heightTiny:i,heightSmall:a,heightMedium:l,heightLarge:s,heightHuge:d,modalColor:c,popoverColor:u}=e;return{borderRadius:t,fontSize:n,border:`2px solid ${r}`,heightTiny:i,heightSmall:a,heightMedium:l,heightLarge:s,heightHuge:d,color:pe(r,o),colorModal:pe(c,o),colorPopover:pe(u,o)}}const Rh={name:"Avatar",common:te,self:d2};function u2(){return{gap:"-12px"}}const f2={name:"AvatarGroup",common:te,peers:{Avatar:Rh},self:u2},Mh={width:"44px",height:"44px",borderRadius:"22px",iconSize:"26px"},h2={name:"BackTop",common:te,self(e){const{popoverColor:t,textColor2:o,primaryColorHover:r,primaryColorPressed:n}=e;return Object.assign(Object.assign({},Mh),{color:t,textColor:o,iconColor:o,iconColorHover:r,iconColorPressed:n,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})}};function p2(e){const{popoverColor:t,textColor2:o,primaryColorHover:r,primaryColorPressed:n}=e;return Object.assign(Object.assign({},Mh),{color:t,textColor:o,iconColor:o,iconColorHover:r,iconColorPressed:n,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)"})}const g2={common:mt,self:p2},m2=()=>m("svg",{viewBox:"0 0 24 24",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xlinkHref:"http://www.w3.org/1999/xlink"},m("g",{stroke:"none","stroke-width":"1","fill-rule":"evenodd"},m("g",{transform:"translate(-139.000000, -4423.000000)","fill-rule":"nonzero"},m("g",{transform:"translate(120.000000, 4285.000000)"},m("g",{transform:"translate(7.000000, 126.000000)"},m("g",{transform:"translate(24.000000, 24.000000) scale(1, -1) translate(-24.000000, -24.000000) translate(12.000000, 12.000000)"},m("g",{transform:"translate(4.000000, 2.000000)"},m("path",{d:"M8,0 C8.51283584,0 8.93550716,0.38604019 8.99327227,0.883378875 L9,1 L9,10.584 L12.2928932,7.29289322 C12.6834175,6.90236893 13.3165825,6.90236893 13.7071068,7.29289322 C14.0675907,7.65337718 14.0953203,8.22060824 13.7902954,8.61289944 L13.7071068,8.70710678 L8.70710678,13.7071068 L8.62544899,13.7803112 L8.618,13.784 L8.59530661,13.8036654 L8.4840621,13.8753288 L8.37133602,13.9287745 L8.22929083,13.9735893 L8.14346259,13.9897165 L8.03324678,13.9994506 L7.9137692,13.9962979 L7.77070917,13.9735893 L7.6583843,13.9401293 L7.57677845,13.9063266 L7.47929125,13.8540045 L7.4048407,13.8036865 L7.38131006,13.7856883 C7.35030318,13.7612383 7.32077858,13.7349921 7.29289322,13.7071068 L2.29289322,8.70710678 L2.20970461,8.61289944 C1.90467972,8.22060824 1.93240926,7.65337718 2.29289322,7.29289322 C2.65337718,6.93240926 3.22060824,6.90467972 3.61289944,7.20970461 L3.70710678,7.29289322 L7,10.585 L7,1 L7.00672773,0.883378875 C7.06449284,0.38604019 7.48716416,0 8,0 Z"}),m("path",{d:"M14.9333333,15.9994506 C15.5224371,15.9994506 16,16.4471659 16,16.9994506 C16,17.5122865 15.5882238,17.9349578 15.0577292,17.9927229 L14.9333333,17.9994506 L1.06666667,17.9994506 C0.477562934,17.9994506 0,17.5517354 0,16.9994506 C0,16.4866148 0.411776203,16.0639435 0.9422708,16.0061783 L1.06666667,15.9994506 L14.9333333,15.9994506 Z"})))))))),v2=M("back-top",`
|
|
702
|
+
position: fixed;
|
|
703
|
+
right: 40px;
|
|
704
|
+
bottom: 40px;
|
|
705
|
+
cursor: pointer;
|
|
706
|
+
display: flex;
|
|
707
|
+
align-items: center;
|
|
708
|
+
justify-content: center;
|
|
709
|
+
color: var(--n-text-color);
|
|
710
|
+
transition:
|
|
711
|
+
color .3s var(--n-bezier),
|
|
712
|
+
box-shadow .3s var(--n-bezier),
|
|
713
|
+
background-color .3s var(--n-bezier);
|
|
714
|
+
border-radius: var(--n-border-radius);
|
|
715
|
+
height: var(--n-height);
|
|
716
|
+
min-width: var(--n-width);
|
|
717
|
+
box-shadow: var(--n-box-shadow);
|
|
718
|
+
background-color: var(--n-color);
|
|
719
|
+
`,[Ch(),D("transition-disabled",{transition:"none !important"}),M("base-icon",`
|
|
720
|
+
font-size: var(--n-icon-size);
|
|
721
|
+
color: var(--n-icon-color);
|
|
722
|
+
transition: color .3s var(--n-bezier);
|
|
723
|
+
`),B("svg",{pointerEvents:"none"}),B("&:hover",{boxShadow:"var(--n-box-shadow-hover)"},[M("base-icon",{color:"var(--n-icon-color-hover)"})]),B("&:active",{boxShadow:"var(--n-box-shadow-pressed)"},[M("base-icon",{color:"var(--n-icon-color-pressed)"})])]),b2=Object.assign(Object.assign({},_e.props),{show:{type:Boolean,default:void 0},right:{type:[Number,String],default:40},bottom:{type:[Number,String],default:40},to:{type:[String,Object],default:"body"},visibilityHeight:{type:Number,default:180},listenTo:[String,Object,Function],"onUpdate:show":{type:Function,default:()=>{}},target:Function,onShow:Function,onHide:Function}),x2=ge({name:"BackTop",inheritAttrs:!1,props:b2,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=tt(e),r=W(null),n=W(!1);So(()=>{const{value:$}=r;if($===null){n.value=!1;return}n.value=$>=e.visibilityHeight});const i=W(!1);Xe(n,$=>{var E;i.value&&((E=e["onUpdate:show"])===null||E===void 0||E.call(e,$))});const l=yl(Be(e,"show"),n),s=W(!0),d=W(null),c=N(()=>({right:`calc(${ln(e.right)} + ${Bb.value})`,bottom:ln(e.bottom)}));let u,h;Xe(l,$=>{var E,P;i.value&&($&&((E=e.onShow)===null||E===void 0||E.call(e)),(P=e.onHide)===null||P===void 0||P.call(e))});const f=_e("BackTop","-back-top",v2,g2,e,t);function p(){var $;if(h)return;h=!0;const E=(($=e.target)===null||$===void 0?void 0:$.call(e))||lb(e.listenTo)||rf(d.value);if(!E)return;u=E===document.documentElement?document:E;const{to:P}=e;typeof P=="string"&&document.querySelector(P),u.addEventListener("scroll",x),x()}function g(){(Bc(u)?document.documentElement:u).scrollTo({top:0,behavior:"smooth"})}function x(){r.value=(Bc(u)?document.documentElement:u).scrollTop,i.value||lo(()=>{i.value=!0})}function v(){s.value=!1}Et(()=>{p(),s.value=l.value}),Yt(()=>{u&&u.removeEventListener("scroll",x)});const y=N(()=>{const{self:{color:$,boxShadow:E,boxShadowHover:P,boxShadowPressed:b,iconColor:A,iconColorHover:_,iconColorPressed:k,width:L,height:R,iconSize:ie,borderRadius:ce,textColor:U},common:{cubicBezierEaseInOut:oe}}=f.value;return{"--n-bezier":oe,"--n-border-radius":ce,"--n-height":R,"--n-width":L,"--n-box-shadow":E,"--n-box-shadow-hover":P,"--n-box-shadow-pressed":b,"--n-color":$,"--n-icon-size":ie,"--n-icon-color":A,"--n-icon-color-hover":_,"--n-icon-color-pressed":k,"--n-text-color":U}}),I=o?ht("back-top",void 0,y,e):void 0;return{placeholderRef:d,style:c,mergedShow:l,isMounted:wl(),scrollElement:W(null),scrollTop:r,DomInfoReady:i,transitionDisabled:s,mergedClsPrefix:t,handleAfterEnter:v,handleScroll:x,handleClick:g,cssVars:o?void 0:y,themeClass:I==null?void 0:I.themeClass,onRender:I==null?void 0:I.onRender}},render(){const{mergedClsPrefix:e}=this;return m("div",{ref:"placeholderRef",class:`${e}-back-top-placeholder`,style:"display: none","aria-hidden":!0},m(yf,{to:this.to,show:this.mergedShow},{default:()=>m(sr,{name:"fade-in-scale-up-transition",appear:this.isMounted,onAfterEnter:this.handleAfterEnter},{default:()=>{var t;return(t=this.onRender)===null||t===void 0||t.call(this),this.mergedShow?m("div",hi(this.$attrs,{class:[`${e}-back-top`,this.themeClass,this.transitionDisabled&&`${e}-back-top--transition-disabled`],style:[this.style,this.cssVars],onClick:this.handleClick}),lr(this.$slots.default,()=>[m(_o,{clsPrefix:e},{default:m2})])):null}})}))}}),C2={name:"Badge",common:te,self(e){const{errorColorSuppl:t,infoColorSuppl:o,successColorSuppl:r,warningColorSuppl:n,fontFamily:i}=e;return{color:t,colorInfo:o,colorSuccess:r,colorError:t,colorWarning:n,fontSize:"12px",fontFamily:i}}},y2={fontWeightActive:"400"};function w2(e){const{fontSize:t,textColor3:o,textColor2:r,borderRadius:n,buttonColor2Hover:i,buttonColor2Pressed:a}=e;return Object.assign(Object.assign({},y2),{fontSize:t,itemLineHeight:"1.25",itemTextColor:o,itemTextColorHover:r,itemTextColorPressed:r,itemTextColorActive:r,itemBorderRadius:n,itemColorHover:i,itemColorPressed:a,separatorColor:o})}const S2={name:"Breadcrumb",common:te,self:w2};function vr(e){return pe(e,[255,255,255,.16])}function Ai(e){return pe(e,[0,0,0,.12])}const Bh="n-button-group",$2={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 Ah(e){const{heightTiny:t,heightSmall:o,heightMedium:r,heightLarge:n,borderRadius:i,fontSizeTiny:a,fontSizeSmall:l,fontSizeMedium:s,fontSizeLarge:d,opacityDisabled:c,textColor2:u,textColor3:h,primaryColorHover:f,primaryColorPressed:p,borderColor:g,primaryColor:x,baseColor:v,infoColor:y,infoColorHover:I,infoColorPressed:$,successColor:E,successColorHover:P,successColorPressed:b,warningColor:A,warningColorHover:_,warningColorPressed:k,errorColor:L,errorColorHover:R,errorColorPressed:ie,fontWeight:ce,buttonColor2:U,buttonColor2Hover:oe,buttonColor2Pressed:Q,fontWeightStrong:H}=e;return Object.assign(Object.assign({},$2),{heightTiny:t,heightSmall:o,heightMedium:r,heightLarge:n,borderRadiusTiny:i,borderRadiusSmall:i,borderRadiusMedium:i,borderRadiusLarge:i,fontSizeTiny:a,fontSizeSmall:l,fontSizeMedium:s,fontSizeLarge:d,opacityDisabled:c,colorOpacitySecondary:"0.16",colorOpacitySecondaryHover:"0.22",colorOpacitySecondaryPressed:"0.28",colorSecondary:U,colorSecondaryHover:oe,colorSecondaryPressed:Q,colorTertiary:U,colorTertiaryHover:oe,colorTertiaryPressed:Q,colorQuaternary:"#0000",colorQuaternaryHover:oe,colorQuaternaryPressed:Q,color:"#0000",colorHover:"#0000",colorPressed:"#0000",colorFocus:"#0000",colorDisabled:"#0000",textColor:u,textColorTertiary:h,textColorHover:f,textColorPressed:p,textColorFocus:f,textColorDisabled:u,textColorText:u,textColorTextHover:f,textColorTextPressed:p,textColorTextFocus:f,textColorTextDisabled:u,textColorGhost:u,textColorGhostHover:f,textColorGhostPressed:p,textColorGhostFocus:f,textColorGhostDisabled:u,border:`1px solid ${g}`,borderHover:`1px solid ${f}`,borderPressed:`1px solid ${p}`,borderFocus:`1px solid ${f}`,borderDisabled:`1px solid ${g}`,rippleColor:x,colorPrimary:x,colorHoverPrimary:f,colorPressedPrimary:p,colorFocusPrimary:f,colorDisabledPrimary:x,textColorPrimary:v,textColorHoverPrimary:v,textColorPressedPrimary:v,textColorFocusPrimary:v,textColorDisabledPrimary:v,textColorTextPrimary:x,textColorTextHoverPrimary:f,textColorTextPressedPrimary:p,textColorTextFocusPrimary:f,textColorTextDisabledPrimary:u,textColorGhostPrimary:x,textColorGhostHoverPrimary:f,textColorGhostPressedPrimary:p,textColorGhostFocusPrimary:f,textColorGhostDisabledPrimary:x,borderPrimary:`1px solid ${x}`,borderHoverPrimary:`1px solid ${f}`,borderPressedPrimary:`1px solid ${p}`,borderFocusPrimary:`1px solid ${f}`,borderDisabledPrimary:`1px solid ${x}`,rippleColorPrimary:x,colorInfo:y,colorHoverInfo:I,colorPressedInfo:$,colorFocusInfo:I,colorDisabledInfo:y,textColorInfo:v,textColorHoverInfo:v,textColorPressedInfo:v,textColorFocusInfo:v,textColorDisabledInfo:v,textColorTextInfo:y,textColorTextHoverInfo:I,textColorTextPressedInfo:$,textColorTextFocusInfo:I,textColorTextDisabledInfo:u,textColorGhostInfo:y,textColorGhostHoverInfo:I,textColorGhostPressedInfo:$,textColorGhostFocusInfo:I,textColorGhostDisabledInfo:y,borderInfo:`1px solid ${y}`,borderHoverInfo:`1px solid ${I}`,borderPressedInfo:`1px solid ${$}`,borderFocusInfo:`1px solid ${I}`,borderDisabledInfo:`1px solid ${y}`,rippleColorInfo:y,colorSuccess:E,colorHoverSuccess:P,colorPressedSuccess:b,colorFocusSuccess:P,colorDisabledSuccess:E,textColorSuccess:v,textColorHoverSuccess:v,textColorPressedSuccess:v,textColorFocusSuccess:v,textColorDisabledSuccess:v,textColorTextSuccess:E,textColorTextHoverSuccess:P,textColorTextPressedSuccess:b,textColorTextFocusSuccess:P,textColorTextDisabledSuccess:u,textColorGhostSuccess:E,textColorGhostHoverSuccess:P,textColorGhostPressedSuccess:b,textColorGhostFocusSuccess:P,textColorGhostDisabledSuccess:E,borderSuccess:`1px solid ${E}`,borderHoverSuccess:`1px solid ${P}`,borderPressedSuccess:`1px solid ${b}`,borderFocusSuccess:`1px solid ${P}`,borderDisabledSuccess:`1px solid ${E}`,rippleColorSuccess:E,colorWarning:A,colorHoverWarning:_,colorPressedWarning:k,colorFocusWarning:_,colorDisabledWarning:A,textColorWarning:v,textColorHoverWarning:v,textColorPressedWarning:v,textColorFocusWarning:v,textColorDisabledWarning:v,textColorTextWarning:A,textColorTextHoverWarning:_,textColorTextPressedWarning:k,textColorTextFocusWarning:_,textColorTextDisabledWarning:u,textColorGhostWarning:A,textColorGhostHoverWarning:_,textColorGhostPressedWarning:k,textColorGhostFocusWarning:_,textColorGhostDisabledWarning:A,borderWarning:`1px solid ${A}`,borderHoverWarning:`1px solid ${_}`,borderPressedWarning:`1px solid ${k}`,borderFocusWarning:`1px solid ${_}`,borderDisabledWarning:`1px solid ${A}`,rippleColorWarning:A,colorError:L,colorHoverError:R,colorPressedError:ie,colorFocusError:R,colorDisabledError:L,textColorError:v,textColorHoverError:v,textColorPressedError:v,textColorFocusError:v,textColorDisabledError:v,textColorTextError:L,textColorTextHoverError:R,textColorTextPressedError:ie,textColorTextFocusError:R,textColorTextDisabledError:u,textColorGhostError:L,textColorGhostHoverError:R,textColorGhostPressedError:ie,textColorGhostFocusError:R,textColorGhostDisabledError:L,borderError:`1px solid ${L}`,borderHoverError:`1px solid ${R}`,borderPressedError:`1px solid ${ie}`,borderFocusError:`1px solid ${R}`,borderDisabledError:`1px solid ${L}`,rippleColorError:L,waveOpacity:"0.6",fontWeight:ce,fontWeightStrong:H})}const Hh={name:"Button",common:mt,self:Ah},jt={name:"Button",common:te,self(e){const t=Ah(e);return t.waveOpacity="0.8",t.colorOpacitySecondary="0.16",t.colorOpacitySecondaryHover="0.2",t.colorOpacitySecondaryPressed="0.12",t}},P2=B([M("button",`
|
|
724
|
+
margin: 0;
|
|
725
|
+
font-weight: var(--n-font-weight);
|
|
726
|
+
line-height: 1;
|
|
727
|
+
font-family: inherit;
|
|
728
|
+
padding: var(--n-padding);
|
|
729
|
+
height: var(--n-height);
|
|
730
|
+
font-size: var(--n-font-size);
|
|
731
|
+
border-radius: var(--n-border-radius);
|
|
732
|
+
color: var(--n-text-color);
|
|
733
|
+
background-color: var(--n-color);
|
|
734
|
+
width: var(--n-width);
|
|
735
|
+
white-space: nowrap;
|
|
736
|
+
outline: none;
|
|
737
|
+
position: relative;
|
|
738
|
+
z-index: auto;
|
|
739
|
+
border: none;
|
|
740
|
+
display: inline-flex;
|
|
741
|
+
flex-wrap: nowrap;
|
|
742
|
+
flex-shrink: 0;
|
|
743
|
+
align-items: center;
|
|
744
|
+
justify-content: center;
|
|
745
|
+
user-select: none;
|
|
746
|
+
-webkit-user-select: none;
|
|
747
|
+
text-align: center;
|
|
748
|
+
cursor: pointer;
|
|
749
|
+
text-decoration: none;
|
|
750
|
+
transition:
|
|
751
|
+
color .3s var(--n-bezier),
|
|
752
|
+
background-color .3s var(--n-bezier),
|
|
753
|
+
opacity .3s var(--n-bezier),
|
|
754
|
+
border-color .3s var(--n-bezier);
|
|
755
|
+
`,[D("color",[O("border",{borderColor:"var(--n-border-color)"}),D("disabled",[O("border",{borderColor:"var(--n-border-color-disabled)"})]),St("disabled",[B("&:focus",[O("state-border",{borderColor:"var(--n-border-color-focus)"})]),B("&:hover",[O("state-border",{borderColor:"var(--n-border-color-hover)"})]),B("&:active",[O("state-border",{borderColor:"var(--n-border-color-pressed)"})]),D("pressed",[O("state-border",{borderColor:"var(--n-border-color-pressed)"})])])]),D("disabled",{backgroundColor:"var(--n-color-disabled)",color:"var(--n-text-color-disabled)"},[O("border",{border:"var(--n-border-disabled)"})]),St("disabled",[B("&:focus",{backgroundColor:"var(--n-color-focus)",color:"var(--n-text-color-focus)"},[O("state-border",{border:"var(--n-border-focus)"})]),B("&:hover",{backgroundColor:"var(--n-color-hover)",color:"var(--n-text-color-hover)"},[O("state-border",{border:"var(--n-border-hover)"})]),B("&:active",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[O("state-border",{border:"var(--n-border-pressed)"})]),D("pressed",{backgroundColor:"var(--n-color-pressed)",color:"var(--n-text-color-pressed)"},[O("state-border",{border:"var(--n-border-pressed)"})])]),D("loading","cursor: wait;"),M("base-wave",`
|
|
756
|
+
pointer-events: none;
|
|
757
|
+
top: 0;
|
|
758
|
+
right: 0;
|
|
759
|
+
bottom: 0;
|
|
760
|
+
left: 0;
|
|
761
|
+
animation-iteration-count: 1;
|
|
762
|
+
animation-duration: var(--n-ripple-duration);
|
|
763
|
+
animation-timing-function: var(--n-bezier-ease-out), var(--n-bezier-ease-out);
|
|
764
|
+
`,[D("active",{zIndex:1,animationName:"button-wave-spread, button-wave-opacity"})]),hn&&"MozBoxSizing"in document.createElement("div").style?B("&::moz-focus-inner",{border:0}):null,O("border, state-border",`
|
|
765
|
+
position: absolute;
|
|
766
|
+
left: 0;
|
|
767
|
+
top: 0;
|
|
768
|
+
right: 0;
|
|
769
|
+
bottom: 0;
|
|
770
|
+
border-radius: inherit;
|
|
771
|
+
transition: border-color .3s var(--n-bezier);
|
|
772
|
+
pointer-events: none;
|
|
773
|
+
`),O("border",`
|
|
774
|
+
border: var(--n-border);
|
|
775
|
+
`),O("state-border",`
|
|
776
|
+
border: var(--n-border);
|
|
777
|
+
border-color: #0000;
|
|
778
|
+
z-index: 1;
|
|
779
|
+
`),O("icon",`
|
|
780
|
+
margin: var(--n-icon-margin);
|
|
781
|
+
margin-left: 0;
|
|
782
|
+
height: var(--n-icon-size);
|
|
783
|
+
width: var(--n-icon-size);
|
|
784
|
+
max-width: var(--n-icon-size);
|
|
785
|
+
font-size: var(--n-icon-size);
|
|
786
|
+
position: relative;
|
|
787
|
+
flex-shrink: 0;
|
|
788
|
+
`,[M("icon-slot",`
|
|
789
|
+
height: var(--n-icon-size);
|
|
790
|
+
width: var(--n-icon-size);
|
|
791
|
+
position: absolute;
|
|
792
|
+
left: 0;
|
|
793
|
+
top: 50%;
|
|
794
|
+
transform: translateY(-50%);
|
|
795
|
+
display: flex;
|
|
796
|
+
align-items: center;
|
|
797
|
+
justify-content: center;
|
|
798
|
+
`,[si({top:"50%",originalTransform:"translateY(-50%)"})]),jS()]),O("content",`
|
|
799
|
+
display: flex;
|
|
800
|
+
align-items: center;
|
|
801
|
+
flex-wrap: nowrap;
|
|
802
|
+
min-width: 0;
|
|
803
|
+
`,[B("~",[O("icon",{margin:"var(--n-icon-margin)",marginRight:0})])]),D("block",`
|
|
804
|
+
display: flex;
|
|
805
|
+
width: 100%;
|
|
806
|
+
`),D("dashed",[O("border, state-border",{borderStyle:"dashed !important"})]),D("disabled",{cursor:"not-allowed",opacity:"var(--n-opacity-disabled)"})]),B("@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)"}}),B("@keyframes button-wave-opacity",{from:{opacity:"var(--n-wave-opacity)"},to:{opacity:0}})]),T2=Object.assign(Object.assign({},_e.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:!_h}}),fr=ge({name:"Button",props:T2,slots:Object,setup(e){const t=W(null),o=W(null),r=W(!1),n=Po(()=>!e.quaternary&&!e.tertiary&&!e.secondary&&!e.text&&(!e.color||e.ghost||e.dashed)&&e.bordered),i=Le(Bh,{}),{mergedSizeRef:a}=Af({},{defaultSize:"medium",mergedSize:$=>{const{size:E}=e;if(E)return E;const{size:P}=i;if(P)return P;const{mergedSize:b}=$||{};return b?b.value:"medium"}}),l=N(()=>e.focusable&&!e.disabled),s=$=>{var E;l.value||$.preventDefault(),!e.nativeFocusBehavior&&($.preventDefault(),!e.disabled&&l.value&&((E=t.value)===null||E===void 0||E.focus({preventScroll:!0})))},d=$=>{var E;if(!e.disabled&&!e.loading){const{onClick:P}=e;P&&je(P,$),e.text||(E=o.value)===null||E===void 0||E.play()}},c=$=>{switch($.key){case"Enter":if(!e.keyboard)return;r.value=!1}},u=$=>{switch($.key){case"Enter":if(!e.keyboard||e.loading){$.preventDefault();return}r.value=!0}},h=()=>{r.value=!1},{inlineThemeDisabled:f,mergedClsPrefixRef:p,mergedRtlRef:g}=tt(e),x=_e("Button","-button",P2,Hh,e,p),v=fo("Button",g,p),y=N(()=>{const $=x.value,{common:{cubicBezierEaseInOut:E,cubicBezierEaseOut:P},self:b}=$,{rippleDuration:A,opacityDisabled:_,fontWeight:k,fontWeightStrong:L}=b,R=a.value,{dashed:ie,type:ce,ghost:U,text:oe,color:Q,round:H,circle:ne,textColor:ue,secondary:me,tertiary:xe,quaternary:Ee,strong:Ae}=e,We={"--n-font-weight":Ae?L:k};let $e={"--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 it=ce==="tertiary",Pt=ce==="default",ze=it?"default":ce;if(oe){const T=ue||Q;$e={"--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":T||b[ae("textColorText",ze)],"--n-text-color-hover":T?vr(T):b[ae("textColorTextHover",ze)],"--n-text-color-pressed":T?Ai(T):b[ae("textColorTextPressed",ze)],"--n-text-color-focus":T?vr(T):b[ae("textColorTextHover",ze)],"--n-text-color-disabled":T||b[ae("textColorTextDisabled",ze)]}}else if(U||ie){const T=ue||Q;$e={"--n-color":"#0000","--n-color-hover":"#0000","--n-color-pressed":"#0000","--n-color-focus":"#0000","--n-color-disabled":"#0000","--n-ripple-color":Q||b[ae("rippleColor",ze)],"--n-text-color":T||b[ae("textColorGhost",ze)],"--n-text-color-hover":T?vr(T):b[ae("textColorGhostHover",ze)],"--n-text-color-pressed":T?Ai(T):b[ae("textColorGhostPressed",ze)],"--n-text-color-focus":T?vr(T):b[ae("textColorGhostHover",ze)],"--n-text-color-disabled":T||b[ae("textColorGhostDisabled",ze)]}}else if(me){const T=Pt?b.textColor:it?b.textColorTertiary:b[ae("color",ze)],S=Q||T,j=ce!=="default"&&ce!=="tertiary";$e={"--n-color":j?Z(S,{alpha:Number(b.colorOpacitySecondary)}):b.colorSecondary,"--n-color-hover":j?Z(S,{alpha:Number(b.colorOpacitySecondaryHover)}):b.colorSecondaryHover,"--n-color-pressed":j?Z(S,{alpha:Number(b.colorOpacitySecondaryPressed)}):b.colorSecondaryPressed,"--n-color-focus":j?Z(S,{alpha:Number(b.colorOpacitySecondaryHover)}):b.colorSecondaryHover,"--n-color-disabled":b.colorSecondary,"--n-ripple-color":"#0000","--n-text-color":S,"--n-text-color-hover":S,"--n-text-color-pressed":S,"--n-text-color-focus":S,"--n-text-color-disabled":S}}else if(xe||Ee){const T=Pt?b.textColor:it?b.textColorTertiary:b[ae("color",ze)],S=Q||T;xe?($e["--n-color"]=b.colorTertiary,$e["--n-color-hover"]=b.colorTertiaryHover,$e["--n-color-pressed"]=b.colorTertiaryPressed,$e["--n-color-focus"]=b.colorSecondaryHover,$e["--n-color-disabled"]=b.colorTertiary):($e["--n-color"]=b.colorQuaternary,$e["--n-color-hover"]=b.colorQuaternaryHover,$e["--n-color-pressed"]=b.colorQuaternaryPressed,$e["--n-color-focus"]=b.colorQuaternaryHover,$e["--n-color-disabled"]=b.colorQuaternary),$e["--n-ripple-color"]="#0000",$e["--n-text-color"]=S,$e["--n-text-color-hover"]=S,$e["--n-text-color-pressed"]=S,$e["--n-text-color-focus"]=S,$e["--n-text-color-disabled"]=S}else $e={"--n-color":Q||b[ae("color",ze)],"--n-color-hover":Q?vr(Q):b[ae("colorHover",ze)],"--n-color-pressed":Q?Ai(Q):b[ae("colorPressed",ze)],"--n-color-focus":Q?vr(Q):b[ae("colorFocus",ze)],"--n-color-disabled":Q||b[ae("colorDisabled",ze)],"--n-ripple-color":Q||b[ae("rippleColor",ze)],"--n-text-color":ue||(Q?b.textColorPrimary:it?b.textColorTertiary:b[ae("textColor",ze)]),"--n-text-color-hover":ue||(Q?b.textColorHoverPrimary:b[ae("textColorHover",ze)]),"--n-text-color-pressed":ue||(Q?b.textColorPressedPrimary:b[ae("textColorPressed",ze)]),"--n-text-color-focus":ue||(Q?b.textColorFocusPrimary:b[ae("textColorFocus",ze)]),"--n-text-color-disabled":ue||(Q?b.textColorDisabledPrimary:b[ae("textColorDisabled",ze)])};let Qe={"--n-border":"initial","--n-border-hover":"initial","--n-border-pressed":"initial","--n-border-focus":"initial","--n-border-disabled":"initial"};oe?Qe={"--n-border":"none","--n-border-hover":"none","--n-border-pressed":"none","--n-border-focus":"none","--n-border-disabled":"none"}:Qe={"--n-border":b[ae("border",ze)],"--n-border-hover":b[ae("borderHover",ze)],"--n-border-pressed":b[ae("borderPressed",ze)],"--n-border-focus":b[ae("borderFocus",ze)],"--n-border-disabled":b[ae("borderDisabled",ze)]};const{[ae("height",R)]:Tt,[ae("fontSize",R)]:C,[ae("padding",R)]:w,[ae("paddingRound",R)]:F,[ae("iconSize",R)]:Y,[ae("borderRadius",R)]:G,[ae("iconMargin",R)]:q,waveOpacity:re}=b,ee={"--n-width":ne&&!oe?Tt:"initial","--n-height":oe?"initial":Tt,"--n-font-size":C,"--n-padding":ne||oe?"initial":H?F:w,"--n-icon-size":Y,"--n-icon-margin":q,"--n-border-radius":oe?"initial":ne||H?Tt:G};return Object.assign(Object.assign(Object.assign(Object.assign({"--n-bezier":E,"--n-bezier-ease-out":P,"--n-ripple-duration":A,"--n-opacity-disabled":_,"--n-wave-opacity":re},We),$e),Qe),ee)}),I=f?ht("button",N(()=>{let $="";const{dashed:E,type:P,ghost:b,text:A,color:_,round:k,circle:L,textColor:R,secondary:ie,tertiary:ce,quaternary:U,strong:oe}=e;E&&($+="a"),b&&($+="b"),A&&($+="c"),k&&($+="d"),L&&($+="e"),ie&&($+="f"),ce&&($+="g"),U&&($+="h"),oe&&($+="i"),_&&($+=`j${Qi(_)}`),R&&($+=`k${Qi(R)}`);const{value:Q}=a;return $+=`l${Q[0]}`,$+=`m${P[0]}`,$}),y,e):void 0;return{selfElRef:t,waveElRef:o,mergedClsPrefix:p,mergedFocusable:l,mergedSize:a,showBorder:n,enterPressed:r,rtlEnabled:v,handleMousedown:s,handleKeydown:u,handleBlur:h,handleKeyup:c,handleClick:d,customColorCssVars:N(()=>{const{color:$}=e;if(!$)return null;const E=vr($);return{"--n-border-color":$,"--n-border-color-hover":E,"--n-border-color-pressed":Ai($),"--n-border-color-focus":E,"--n-border-color-disabled":$}}),cssVars:f?void 0:y,themeClass:I==null?void 0:I.themeClass,onRender:I==null?void 0:I.onRender}},render(){const{mergedClsPrefix:e,tag:t,onRender:o}=this;o==null||o();const r=dt(this.$slots.default,n=>n&&m("span",{class:`${e}-button__content`},n));return m(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"&&r,m(hh,{width:!0},{default:()=>dt(this.$slots.icon,n=>(this.loading||this.renderIcon||n)&&m("span",{class:`${e}-button__icon`,style:{margin:Ea(this.$slots.default)?"0":""}},m(_l,null,{default:()=>this.loading?m(mi,{clsPrefix:e,key:"loading",class:`${e}-icon-slot`,strokeWidth:20}):m("div",{key:"icon",class:`${e}-icon-slot`,role:"none"},this.renderIcon?this.renderIcon():n)})))}),this.iconPlacement==="left"&&r,this.text?null:m(NS,{ref:"waveElRef",clsPrefix:e}),this.showBorder?m("div",{"aria-hidden":!0,class:`${e}-button__border`,style:this.customColorCssVars}):null,this.showBorder?m("div",{"aria-hidden":!0,class:`${e}-button__state-border`,style:this.customColorCssVars}):null)}}),rt="0!important",kh="-1px!important";function Nr(e){return D(`${e}-type`,[B("& +",[M("button",{},[D(`${e}-type`,[O("border",{borderLeftWidth:rt}),O("state-border",{left:kh})])])])])}function Ur(e){return D(`${e}-type`,[B("& +",[M("button",[D(`${e}-type`,[O("border",{borderTopWidth:rt}),O("state-border",{top:kh})])])])])}const _2=M("button-group",`
|
|
807
|
+
flex-wrap: nowrap;
|
|
808
|
+
display: inline-flex;
|
|
809
|
+
position: relative;
|
|
810
|
+
`,[St("vertical",{flexDirection:"row"},[St("rtl",[M("button",[B("&:first-child:not(:last-child)",`
|
|
811
|
+
margin-right: ${rt};
|
|
812
|
+
border-top-right-radius: ${rt};
|
|
813
|
+
border-bottom-right-radius: ${rt};
|
|
814
|
+
`),B("&:last-child:not(:first-child)",`
|
|
815
|
+
margin-left: ${rt};
|
|
816
|
+
border-top-left-radius: ${rt};
|
|
817
|
+
border-bottom-left-radius: ${rt};
|
|
818
|
+
`),B("&:not(:first-child):not(:last-child)",`
|
|
819
|
+
margin-left: ${rt};
|
|
820
|
+
margin-right: ${rt};
|
|
821
|
+
border-radius: ${rt};
|
|
822
|
+
`),Nr("default"),D("ghost",[Nr("primary"),Nr("info"),Nr("success"),Nr("warning"),Nr("error")])])])]),D("vertical",{flexDirection:"column"},[M("button",[B("&:first-child:not(:last-child)",`
|
|
823
|
+
margin-bottom: ${rt};
|
|
824
|
+
margin-left: ${rt};
|
|
825
|
+
margin-right: ${rt};
|
|
826
|
+
border-bottom-left-radius: ${rt};
|
|
827
|
+
border-bottom-right-radius: ${rt};
|
|
828
|
+
`),B("&:last-child:not(:first-child)",`
|
|
829
|
+
margin-top: ${rt};
|
|
830
|
+
margin-left: ${rt};
|
|
831
|
+
margin-right: ${rt};
|
|
832
|
+
border-top-left-radius: ${rt};
|
|
833
|
+
border-top-right-radius: ${rt};
|
|
834
|
+
`),B("&:not(:first-child):not(:last-child)",`
|
|
835
|
+
margin: ${rt};
|
|
836
|
+
border-radius: ${rt};
|
|
837
|
+
`),Ur("default"),D("ghost",[Ur("primary"),Ur("info"),Ur("success"),Ur("warning"),Ur("error")])])])]),z2={size:{type:String,default:void 0},vertical:Boolean},Fh=ge({name:"ButtonGroup",props:z2,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=tt(e);return Hr("-button-group",_2,t),$t(Bh,e),{rtlEnabled:fo("ButtonGroup",o,t),mergedClsPrefix:t}},render(){const{mergedClsPrefix:e}=this;return m("div",{class:[`${e}-button-group`,this.rtlEnabled&&`${e}-button-group--rtl`,this.vertical&&`${e}-button-group--vertical`],role:"group"},this.$slots)}}),E2={titleFontSize:"22px"};function I2(e){const{borderRadius:t,fontSize:o,lineHeight:r,textColor2:n,textColor1:i,textColorDisabled:a,dividerColor:l,fontWeightStrong:s,primaryColor:d,baseColor:c,hoverColor:u,cardColor:h,modalColor:f,popoverColor:p}=e;return Object.assign(Object.assign({},E2),{borderRadius:t,borderColor:pe(h,l),borderColorModal:pe(f,l),borderColorPopover:pe(p,l),textColor:n,titleFontWeight:s,titleTextColor:i,dayTextColor:a,fontSize:o,lineHeight:r,dateColorCurrent:d,dateTextColorCurrent:c,cellColorHover:pe(h,u),cellColorHoverModal:pe(f,u),cellColorHoverPopover:pe(p,u),cellColor:h,cellColorModal:f,cellColorPopover:p,barColor:d})}const R2={name:"Calendar",common:te,peers:{Button:jt},self:I2},M2={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 Oh(e){const{primaryColor:t,borderRadius:o,lineHeight:r,fontSize:n,cardColor:i,textColor2:a,textColor1:l,dividerColor:s,fontWeightStrong:d,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:h,closeColorHover:f,closeColorPressed:p,modalColor:g,boxShadow1:x,popoverColor:v,actionColor:y}=e;return Object.assign(Object.assign({},M2),{lineHeight:r,color:i,colorModal:g,colorPopover:v,colorTarget:t,colorEmbedded:y,colorEmbeddedModal:y,colorEmbeddedPopover:y,textColor:a,titleTextColor:l,borderColor:s,actionColor:y,titleFontWeight:d,closeColorHover:f,closeColorPressed:p,closeBorderRadius:o,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:h,fontSizeSmall:n,fontSizeMedium:n,fontSizeLarge:n,fontSizeHuge:n,boxShadow:x,borderRadius:o})}const B2={common:mt,self:Oh},Lh={name:"Card",common:te,self(e){const t=Oh(e),{cardColor:o,modalColor:r,popoverColor:n}=e;return t.colorEmbedded=o,t.colorEmbeddedModal=r,t.colorEmbeddedPopover=n,t}},A2=B([M("card",`
|
|
838
|
+
font-size: var(--n-font-size);
|
|
839
|
+
line-height: var(--n-line-height);
|
|
840
|
+
display: flex;
|
|
841
|
+
flex-direction: column;
|
|
842
|
+
width: 100%;
|
|
843
|
+
box-sizing: border-box;
|
|
844
|
+
position: relative;
|
|
845
|
+
border-radius: var(--n-border-radius);
|
|
846
|
+
background-color: var(--n-color);
|
|
847
|
+
color: var(--n-text-color);
|
|
848
|
+
word-break: break-word;
|
|
849
|
+
transition:
|
|
850
|
+
color .3s var(--n-bezier),
|
|
851
|
+
background-color .3s var(--n-bezier),
|
|
852
|
+
box-shadow .3s var(--n-bezier),
|
|
853
|
+
border-color .3s var(--n-bezier);
|
|
854
|
+
`,[tb({background:"var(--n-color-modal)"}),D("hoverable",[B("&:hover","box-shadow: var(--n-box-shadow);")]),D("content-segmented",[B(">",[O("content",{paddingTop:"var(--n-padding-bottom)"})])]),D("content-soft-segmented",[B(">",[O("content",`
|
|
855
|
+
margin: 0 var(--n-padding-left);
|
|
856
|
+
padding: var(--n-padding-bottom) 0;
|
|
857
|
+
`)])]),D("footer-segmented",[B(">",[O("footer",{paddingTop:"var(--n-padding-bottom)"})])]),D("footer-soft-segmented",[B(">",[O("footer",`
|
|
858
|
+
padding: var(--n-padding-bottom) 0;
|
|
859
|
+
margin: 0 var(--n-padding-left);
|
|
860
|
+
`)])]),B(">",[M("card-header",`
|
|
861
|
+
box-sizing: border-box;
|
|
862
|
+
display: flex;
|
|
863
|
+
align-items: center;
|
|
864
|
+
font-size: var(--n-title-font-size);
|
|
865
|
+
padding:
|
|
866
|
+
var(--n-padding-top)
|
|
867
|
+
var(--n-padding-left)
|
|
868
|
+
var(--n-padding-bottom)
|
|
869
|
+
var(--n-padding-left);
|
|
870
|
+
`,[O("main",`
|
|
871
|
+
font-weight: var(--n-title-font-weight);
|
|
872
|
+
transition: color .3s var(--n-bezier);
|
|
873
|
+
flex: 1;
|
|
874
|
+
min-width: 0;
|
|
875
|
+
color: var(--n-title-text-color);
|
|
876
|
+
`),O("extra",`
|
|
877
|
+
display: flex;
|
|
878
|
+
align-items: center;
|
|
879
|
+
font-size: var(--n-font-size);
|
|
880
|
+
font-weight: 400;
|
|
881
|
+
transition: color .3s var(--n-bezier);
|
|
882
|
+
color: var(--n-text-color);
|
|
883
|
+
`),O("close",`
|
|
884
|
+
margin: 0 0 0 8px;
|
|
885
|
+
transition:
|
|
886
|
+
background-color .3s var(--n-bezier),
|
|
887
|
+
color .3s var(--n-bezier);
|
|
888
|
+
`)]),O("action",`
|
|
889
|
+
box-sizing: border-box;
|
|
890
|
+
transition:
|
|
891
|
+
background-color .3s var(--n-bezier),
|
|
892
|
+
border-color .3s var(--n-bezier);
|
|
893
|
+
background-clip: padding-box;
|
|
894
|
+
background-color: var(--n-action-color);
|
|
895
|
+
`),O("content","flex: 1; min-width: 0;"),O("content, footer",`
|
|
896
|
+
box-sizing: border-box;
|
|
897
|
+
padding: 0 var(--n-padding-left) var(--n-padding-bottom) var(--n-padding-left);
|
|
898
|
+
font-size: var(--n-font-size);
|
|
899
|
+
`,[B("&:first-child",{paddingTop:"var(--n-padding-bottom)"})]),O("action",`
|
|
900
|
+
background-color: var(--n-action-color);
|
|
901
|
+
padding: var(--n-padding-bottom) var(--n-padding-left);
|
|
902
|
+
border-bottom-left-radius: var(--n-border-radius);
|
|
903
|
+
border-bottom-right-radius: var(--n-border-radius);
|
|
904
|
+
`)]),M("card-cover",`
|
|
905
|
+
overflow: hidden;
|
|
906
|
+
width: 100%;
|
|
907
|
+
border-radius: var(--n-border-radius) var(--n-border-radius) 0 0;
|
|
908
|
+
`,[B("img",`
|
|
909
|
+
display: block;
|
|
910
|
+
width: 100%;
|
|
911
|
+
`)]),D("bordered",`
|
|
912
|
+
border: 1px solid var(--n-border-color);
|
|
913
|
+
`,[B("&:target","border-color: var(--n-color-target);")]),D("action-segmented",[B(">",[O("action",[B("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),D("content-segmented, content-soft-segmented",[B(">",[O("content",{transition:"border-color 0.3s var(--n-bezier)"},[B("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),D("footer-segmented, footer-soft-segmented",[B(">",[O("footer",{transition:"border-color 0.3s var(--n-bezier)"},[B("&:not(:first-child)",{borderTop:"1px solid var(--n-border-color)"})])])]),D("embedded",`
|
|
914
|
+
background-color: var(--n-color-embedded);
|
|
915
|
+
`)]),ef(M("card",`
|
|
916
|
+
background: var(--n-color-modal);
|
|
917
|
+
`,[D("embedded",`
|
|
918
|
+
background-color: var(--n-color-embedded-modal);
|
|
919
|
+
`)])),tf(M("card",`
|
|
920
|
+
background: var(--n-color-popover);
|
|
921
|
+
`,[D("embedded",`
|
|
922
|
+
background-color: var(--n-color-embedded-popover);
|
|
923
|
+
`)]))]),H2={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},k2=Object.assign(Object.assign({},_e.props),H2),ys=ge({name:"Card",props:k2,slots:Object,setup(e){const t=()=>{const{onClose:d}=e;d&&je(d)},{inlineThemeDisabled:o,mergedClsPrefixRef:r,mergedRtlRef:n}=tt(e),i=_e("Card","-card",A2,B2,e,r),a=fo("Card",n,r),l=N(()=>{const{size:d}=e,{self:{color:c,colorModal:u,colorTarget:h,textColor:f,titleTextColor:p,titleFontWeight:g,borderColor:x,actionColor:v,borderRadius:y,lineHeight:I,closeIconColor:$,closeIconColorHover:E,closeIconColorPressed:P,closeColorHover:b,closeColorPressed:A,closeBorderRadius:_,closeIconSize:k,closeSize:L,boxShadow:R,colorPopover:ie,colorEmbedded:ce,colorEmbeddedModal:U,colorEmbeddedPopover:oe,[ae("padding",d)]:Q,[ae("fontSize",d)]:H,[ae("titleFontSize",d)]:ne},common:{cubicBezierEaseInOut:ue}}=i.value,{top:me,left:xe,bottom:Ee}=to(Q);return{"--n-bezier":ue,"--n-border-radius":y,"--n-color":c,"--n-color-modal":u,"--n-color-popover":ie,"--n-color-embedded":ce,"--n-color-embedded-modal":U,"--n-color-embedded-popover":oe,"--n-color-target":h,"--n-text-color":f,"--n-line-height":I,"--n-action-color":v,"--n-title-text-color":p,"--n-title-font-weight":g,"--n-close-icon-color":$,"--n-close-icon-color-hover":E,"--n-close-icon-color-pressed":P,"--n-close-color-hover":b,"--n-close-color-pressed":A,"--n-border-color":x,"--n-box-shadow":R,"--n-padding-top":me,"--n-padding-bottom":Ee,"--n-padding-left":xe,"--n-font-size":H,"--n-title-font-size":ne,"--n-close-size":L,"--n-close-icon-size":k,"--n-close-border-radius":_}}),s=o?ht("card",N(()=>e.size[0]),l,e):void 0;return{rtlEnabled:a,mergedClsPrefix:r,mergedTheme:i,handleCloseClick:t,cssVars:o?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{segmented:e,bordered:t,hoverable:o,mergedClsPrefix:r,rtlEnabled:n,onRender:i,embedded:a,tag:l,$slots:s}=this;return i==null||i(),m(l,{class:[`${r}-card`,this.themeClass,a&&`${r}-card--embedded`,{[`${r}-card--rtl`]:n,[`${r}-card--content${typeof e!="boolean"&&e.content==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.content,[`${r}-card--footer${typeof e!="boolean"&&e.footer==="soft"?"-soft":""}-segmented`]:e===!0||e!==!1&&e.footer,[`${r}-card--action-segmented`]:e===!0||e!==!1&&e.action,[`${r}-card--bordered`]:t,[`${r}-card--hoverable`]:o}],style:this.cssVars,role:this.role},dt(s.cover,d=>{const c=this.cover?no([this.cover()]):d;return c&&m("div",{class:`${r}-card-cover`,role:"none"},c)}),dt(s.header,d=>{const{title:c}=this,u=c?no(typeof c=="function"?[c()]:[c]):d;return u||this.closable?m("div",{class:[`${r}-card-header`,this.headerClass],style:this.headerStyle,role:"heading"},m("div",{class:`${r}-card-header__main`,role:"heading"},u),dt(s["header-extra"],h=>{const f=this.headerExtra?no([this.headerExtra()]):h;return f&&m("div",{class:[`${r}-card-header__extra`,this.headerExtraClass],style:this.headerExtraStyle},f)}),this.closable&&m(zl,{clsPrefix:r,class:`${r}-card-header__close`,onClick:this.handleCloseClick,focusable:this.closeFocusable,absolute:!0})):null}),dt(s.default,d=>{const{content:c}=this,u=c?no(typeof c=="function"?[c()]:[c]):d;return u&&m("div",{class:[`${r}-card__content`,this.contentClass],style:this.contentStyle,role:"none"},u)}),dt(s.footer,d=>{const c=this.footer?no([this.footer()]):d;return c&&m("div",{class:[`${r}-card__footer`,this.footerClass],style:this.footerStyle,role:"none"},c)}),dt(s.action,d=>{const c=this.action?no([this.action()]):d;return c&&m("div",{class:`${r}-card__action`,role:"none"},c)}))}});function F2(){return{dotSize:"8px",dotColor:"rgba(255, 255, 255, .3)",dotColorActive:"rgba(255, 255, 255, 1)",dotColorFocus:"rgba(255, 255, 255, .5)",dotLineWidth:"16px",dotLineWidthActive:"24px",arrowColor:"#eee"}}const O2={name:"Carousel",common:te,self:F2},L2={sizeSmall:"14px",sizeMedium:"16px",sizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"};function D2(e){const{baseColor:t,inputColorDisabled:o,cardColor:r,modalColor:n,popoverColor:i,textColorDisabled:a,borderColor:l,primaryColor:s,textColor2:d,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:h,borderRadiusSmall:f,lineHeight:p}=e;return Object.assign(Object.assign({},L2),{labelLineHeight:p,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:h,borderRadius:f,color:t,colorChecked:s,colorDisabled:o,colorDisabledChecked:o,colorTableHeader:r,colorTableHeaderModal:n,colorTableHeaderPopover:i,checkMarkColor:t,checkMarkColorDisabled:a,checkMarkColorDisabledChecked:a,border:`1px solid ${l}`,borderDisabled:`1px solid ${l}`,borderDisabledChecked:`1px solid ${l}`,borderChecked:`1px solid ${s}`,borderFocus:`1px solid ${s}`,boxShadowFocus:`0 0 0 2px ${Z(s,{alpha:.3})}`,textColor:d,textColorDisabled:a})}const vn={name:"Checkbox",common:te,self(e){const{cardColor:t}=e,o=D2(e);return o.color="#0000",o.checkMarkColor=t,o}};function W2(e){const{borderRadius:t,boxShadow2:o,popoverColor:r,textColor2:n,textColor3:i,primaryColor:a,textColorDisabled:l,dividerColor:s,hoverColor:d,fontSizeMedium:c,heightMedium:u}=e;return{menuBorderRadius:t,menuColor:r,menuBoxShadow:o,menuDividerColor:s,menuHeight:"calc(var(--n-option-height) * 6.6)",optionArrowColor:i,optionHeight:u,optionFontSize:c,optionColorHover:d,optionTextColor:n,optionTextColorActive:a,optionTextColorDisabled:l,optionCheckMarkColor:a,loadingColor:a,columnWidth:"180px"}}const j2={name:"Cascader",common:te,peers:{InternalSelectMenu:bi,InternalSelection:Cs,Scrollbar:kt,Checkbox:vn,Empty:xh},self:W2},Dh={name:"Code",common:te,self(e){const{textColor2:t,fontSize:o,fontWeightStrong:r,textColor3:n}=e;return{textColor:t,fontSize:o,fontWeightStrong:r,"mono-3":"#5c6370","hue-1":"#56b6c2","hue-2":"#61aeee","hue-3":"#c678dd","hue-4":"#98c379","hue-5":"#e06c75","hue-5-2":"#be5046","hue-6":"#d19a66","hue-6-2":"#e6c07b",lineNumberTextColor:n}}};function V2(e){const{textColor2:t,fontSize:o,fontWeightStrong:r,textColor3:n}=e;return{textColor:t,fontSize:o,fontWeightStrong:r,"mono-3":"#a0a1a7","hue-1":"#0184bb","hue-2":"#4078f2","hue-3":"#a626a4","hue-4":"#50a14f","hue-5":"#e45649","hue-5-2":"#c91243","hue-6":"#986801","hue-6-2":"#c18401",lineNumberTextColor:n}}const Wh={name:"Code",common:mt,self:V2},N2=B([M("code",`
|
|
924
|
+
font-size: var(--n-font-size);
|
|
925
|
+
font-family: var(--n-font-family);
|
|
926
|
+
`,[D("show-line-numbers",`
|
|
927
|
+
display: flex;
|
|
928
|
+
`),O("line-numbers",`
|
|
929
|
+
user-select: none;
|
|
930
|
+
padding-right: 12px;
|
|
931
|
+
text-align: right;
|
|
932
|
+
transition: color .3s var(--n-bezier);
|
|
933
|
+
color: var(--n-line-number-text-color);
|
|
934
|
+
`),D("word-wrap",[B("pre",`
|
|
935
|
+
white-space: pre-wrap;
|
|
936
|
+
word-break: break-all;
|
|
937
|
+
`)]),B("pre",`
|
|
938
|
+
margin: 0;
|
|
939
|
+
line-height: inherit;
|
|
940
|
+
font-size: inherit;
|
|
941
|
+
font-family: inherit;
|
|
942
|
+
`),B("[class^=hljs]",`
|
|
943
|
+
color: var(--n-text-color);
|
|
944
|
+
transition:
|
|
945
|
+
color .3s var(--n-bezier),
|
|
946
|
+
background-color .3s var(--n-bezier);
|
|
947
|
+
`)]),({props:e})=>{const t=`${e.bPrefix}code`;return[`${t} .hljs-comment,
|
|
948
|
+
${t} .hljs-quote {
|
|
949
|
+
color: var(--n-mono-3);
|
|
950
|
+
font-style: italic;
|
|
951
|
+
}`,`${t} .hljs-doctag,
|
|
952
|
+
${t} .hljs-keyword,
|
|
953
|
+
${t} .hljs-formula {
|
|
954
|
+
color: var(--n-hue-3);
|
|
955
|
+
}`,`${t} .hljs-section,
|
|
956
|
+
${t} .hljs-name,
|
|
957
|
+
${t} .hljs-selector-tag,
|
|
958
|
+
${t} .hljs-deletion,
|
|
959
|
+
${t} .hljs-subst {
|
|
960
|
+
color: var(--n-hue-5);
|
|
961
|
+
}`,`${t} .hljs-literal {
|
|
962
|
+
color: var(--n-hue-1);
|
|
963
|
+
}`,`${t} .hljs-string,
|
|
964
|
+
${t} .hljs-regexp,
|
|
965
|
+
${t} .hljs-addition,
|
|
966
|
+
${t} .hljs-attribute,
|
|
967
|
+
${t} .hljs-meta-string {
|
|
968
|
+
color: var(--n-hue-4);
|
|
969
|
+
}`,`${t} .hljs-built_in,
|
|
970
|
+
${t} .hljs-class .hljs-title {
|
|
971
|
+
color: var(--n-hue-6-2);
|
|
972
|
+
}`,`${t} .hljs-attr,
|
|
973
|
+
${t} .hljs-variable,
|
|
974
|
+
${t} .hljs-template-variable,
|
|
975
|
+
${t} .hljs-type,
|
|
976
|
+
${t} .hljs-selector-class,
|
|
977
|
+
${t} .hljs-selector-attr,
|
|
978
|
+
${t} .hljs-selector-pseudo,
|
|
979
|
+
${t} .hljs-number {
|
|
980
|
+
color: var(--n-hue-6);
|
|
981
|
+
}`,`${t} .hljs-symbol,
|
|
982
|
+
${t} .hljs-bullet,
|
|
983
|
+
${t} .hljs-link,
|
|
984
|
+
${t} .hljs-meta,
|
|
985
|
+
${t} .hljs-selector-id,
|
|
986
|
+
${t} .hljs-title {
|
|
987
|
+
color: var(--n-hue-2);
|
|
988
|
+
}`,`${t} .hljs-emphasis {
|
|
989
|
+
font-style: italic;
|
|
990
|
+
}`,`${t} .hljs-strong {
|
|
991
|
+
font-weight: var(--n-font-weight-strong);
|
|
992
|
+
}`,`${t} .hljs-link {
|
|
993
|
+
text-decoration: underline;
|
|
994
|
+
}`]}]),U2=Object.assign(Object.assign({},_e.props),{language:String,code:{type:String,default:""},trim:{type:Boolean,default:!0},hljs:Object,uri:Boolean,inline:Boolean,wordWrap:Boolean,showLineNumbers:Boolean,internalFontSize:Number,internalNoHighlight:Boolean}),G2=ge({name:"Code",props:U2,setup(e,{slots:t}){const{internalNoHighlight:o}=e,{mergedClsPrefixRef:r,inlineThemeDisabled:n}=tt(),i=W(null),a=o?{value:void 0}:Hf(e),l=(f,p,g)=>{const{value:x}=a;return!x||!(f&&x.getLanguage(f))?null:x.highlight(g?p.trim():p,{language:f}).value},s=N(()=>e.inline||e.wordWrap?!1:e.showLineNumbers),d=()=>{if(t.default)return;const{value:f}=i;if(!f)return;const{language:p}=e,g=e.uri?window.decodeURIComponent(e.code):e.code;if(p){const v=l(p,g,e.trim);if(v!==null){if(e.inline)f.innerHTML=v;else{const y=f.querySelector(".__code__");y&&f.removeChild(y);const I=document.createElement("pre");I.className="__code__",I.innerHTML=v,f.appendChild(I)}return}}if(e.inline){f.textContent=g;return}const x=f.querySelector(".__code__");if(x)x.textContent=g;else{const v=document.createElement("pre");v.className="__code__",v.textContent=g,f.innerHTML="",f.appendChild(v)}};Et(d),Xe(Be(e,"language"),d),Xe(Be(e,"code"),d),o||Xe(a,d);const c=_e("Code","-code",N2,Wh,e,r),u=N(()=>{const{common:{cubicBezierEaseInOut:f,fontFamilyMono:p},self:{textColor:g,fontSize:x,fontWeightStrong:v,lineNumberTextColor:y,"mono-3":I,"hue-1":$,"hue-2":E,"hue-3":P,"hue-4":b,"hue-5":A,"hue-5-2":_,"hue-6":k,"hue-6-2":L}}=c.value,{internalFontSize:R}=e;return{"--n-font-size":R?`${R}px`:x,"--n-font-family":p,"--n-font-weight-strong":v,"--n-bezier":f,"--n-text-color":g,"--n-mono-3":I,"--n-hue-1":$,"--n-hue-2":E,"--n-hue-3":P,"--n-hue-4":b,"--n-hue-5":A,"--n-hue-5-2":_,"--n-hue-6":k,"--n-hue-6-2":L,"--n-line-number-text-color":y}}),h=n?ht("code",N(()=>`${e.internalFontSize||"a"}`),u,e):void 0;return{mergedClsPrefix:r,codeRef:i,mergedShowLineNumbers:s,lineNumbers:N(()=>{let f=1;const p=[];let g=!1;for(const x of e.code)x===`
|
|
995
|
+
`?(g=!0,p.push(f++)):g=!1;return g||p.push(f++),p.join(`
|
|
996
|
+
`)}),cssVars:n?void 0:u,themeClass:h==null?void 0:h.themeClass,onRender:h==null?void 0:h.onRender}},render(){var e,t;const{mergedClsPrefix:o,wordWrap:r,mergedShowLineNumbers:n,onRender:i}=this;return i==null||i(),m("code",{class:[`${o}-code`,this.themeClass,r&&`${o}-code--word-wrap`,n&&`${o}-code--show-line-numbers`],style:this.cssVars,ref:"codeRef"},n?m("pre",{class:`${o}-code__line-numbers`},this.lineNumbers):null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}});function K2(e){const{fontWeight:t,textColor1:o,textColor2:r,textColorDisabled:n,dividerColor:i,fontSize:a}=e;return{titleFontSize:a,titleFontWeight:t,dividerColor:i,titleTextColor:o,titleTextColorDisabled:n,fontSize:a,textColor:r,arrowColor:r,arrowColorDisabled:n,itemMargin:"16px 0 0 0",titlePadding:"16px 0 0 0"}}const q2={name:"Collapse",common:te,self:K2};function Y2(e){const{cubicBezierEaseInOut:t}=e;return{bezier:t}}const X2={name:"CollapseTransition",common:te,self:Y2};function Z2(e){const{fontSize:t,boxShadow2:o,popoverColor:r,textColor2:n,borderRadius:i,borderColor:a,heightSmall:l,heightMedium:s,heightLarge:d,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:h,dividerColor:f}=e;return{panelFontSize:t,boxShadow:o,color:r,textColor:n,borderRadius:i,border:`1px solid ${a}`,heightSmall:l,heightMedium:s,heightLarge:d,fontSizeSmall:c,fontSizeMedium:u,fontSizeLarge:h,dividerColor:f}}const J2={name:"ColorPicker",common:te,peers:{Input:Xt,Button:jt},self:Z2},Q2={abstract:Boolean,bordered:{type:Boolean,default:void 0},clsPrefix:String,locale:Object,dateLocale:Object,namespace:String,rtl:Array,tag:{type:String,default:"div"},hljs:Object,katex:Object,theme:Object,themeOverrides:Object,componentOptions:Object,icons:Object,breakpoints:Object,preflightStyleDisabled:Boolean,styleMountTarget:Object,inlineThemeDisabled:{type:Boolean,default:void 0},as:{type:String,validator:()=>(ri("config-provider","`as` is deprecated, please use `tag` instead."),!0),default:void 0}},e$=ge({name:"ConfigProvider",alias:["App"],props:Q2,setup(e){const t=Le(To,null),o=N(()=>{const{theme:g}=e;if(g===null)return;const x=t==null?void 0:t.mergedThemeRef.value;return g===void 0?x:x===void 0?g:Object.assign({},x,g)}),r=N(()=>{const{themeOverrides:g}=e;if(g!==null){if(g===void 0)return t==null?void 0:t.mergedThemeOverridesRef.value;{const x=t==null?void 0:t.mergedThemeOverridesRef.value;return x===void 0?g:Bn({},x,g)}}}),n=Po(()=>{const{namespace:g}=e;return g===void 0?t==null?void 0:t.mergedNamespaceRef.value:g}),i=Po(()=>{const{bordered:g}=e;return g===void 0?t==null?void 0:t.mergedBorderedRef.value:g}),a=N(()=>{const{icons:g}=e;return g===void 0?t==null?void 0:t.mergedIconsRef.value:g}),l=N(()=>{const{componentOptions:g}=e;return g!==void 0?g:t==null?void 0:t.mergedComponentPropsRef.value}),s=N(()=>{const{clsPrefix:g}=e;return g!==void 0?g:t?t.mergedClsPrefixRef.value:Ia}),d=N(()=>{var g;const{rtl:x}=e;if(x===void 0)return t==null?void 0:t.mergedRtlRef.value;const v={};for(const y of x)v[y.name]=pa(y),(g=y.peers)===null||g===void 0||g.forEach(I=>{I.name in v||(v[I.name]=pa(I))});return v}),c=N(()=>e.breakpoints||(t==null?void 0:t.mergedBreakpointsRef.value)),u=e.inlineThemeDisabled||(t==null?void 0:t.inlineThemeDisabled),h=e.preflightStyleDisabled||(t==null?void 0:t.preflightStyleDisabled),f=e.styleMountTarget||(t==null?void 0:t.styleMountTarget),p=N(()=>{const{value:g}=o,{value:x}=r,v=x&&Object.keys(x).length!==0,y=g==null?void 0:g.name;return y?v?`${y}-${Jn(JSON.stringify(r.value))}`:y:v?Jn(JSON.stringify(r.value)):""});return $t(To,{mergedThemeHashRef:p,mergedBreakpointsRef:c,mergedRtlRef:d,mergedIconsRef:a,mergedComponentPropsRef:l,mergedBorderedRef:i,mergedNamespaceRef:n,mergedClsPrefixRef:s,mergedLocaleRef:N(()=>{const{locale:g}=e;if(g!==null)return g===void 0?t==null?void 0:t.mergedLocaleRef.value:g}),mergedDateLocaleRef:N(()=>{const{dateLocale:g}=e;if(g!==null)return g===void 0?t==null?void 0:t.mergedDateLocaleRef.value:g}),mergedHljsRef:N(()=>{const{hljs:g}=e;return g===void 0?t==null?void 0:t.mergedHljsRef.value:g}),mergedKatexRef:N(()=>{const{katex:g}=e;return g===void 0?t==null?void 0:t.mergedKatexRef.value:g}),mergedThemeRef:o,mergedThemeOverridesRef:r,inlineThemeDisabled:u||!1,preflightStyleDisabled:h||!1,styleMountTarget:f}),{mergedClsPrefix:s,mergedBordered:i,mergedNamespace:n,mergedTheme:o,mergedThemeOverrides:r}},render(){var e,t,o,r;return this.abstract?(r=(o=this.$slots).default)===null||r===void 0?void 0:r.call(o):m(this.as||this.tag,{class:`${this.mergedClsPrefix||Ia}-config-provider`},(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e))}}),jh={name:"Popselect",common:te,peers:{Popover:Fr,InternalSelectMenu:bi}};function t$(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}const Vh={name:"Select",common:te,peers:{InternalSelection:Cs,InternalSelectMenu:bi},self:t$},o$={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 r$(e){const{textColor2:t,primaryColor:o,primaryColorHover:r,primaryColorPressed:n,inputColorDisabled:i,textColorDisabled:a,borderColor:l,borderRadius:s,fontSizeTiny:d,fontSizeSmall:c,fontSizeMedium:u,heightTiny:h,heightSmall:f,heightMedium:p}=e;return Object.assign(Object.assign({},o$),{buttonColor:"#0000",buttonColorHover:"#0000",buttonColorPressed:"#0000",buttonBorder:`1px solid ${l}`,buttonBorderHover:`1px solid ${l}`,buttonBorderPressed:`1px solid ${l}`,buttonIconColor:t,buttonIconColorHover:t,buttonIconColorPressed:t,itemTextColor:t,itemTextColorHover:r,itemTextColorPressed:n,itemTextColorActive:o,itemTextColorDisabled:a,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 ${l}`,itemBorderRadius:s,itemSizeSmall:h,itemSizeMedium:f,itemSizeLarge:p,itemFontSizeSmall:d,itemFontSizeMedium:c,itemFontSizeLarge:u,jumperFontSizeSmall:d,jumperFontSizeMedium:c,jumperFontSizeLarge:u,jumperTextColor:t,jumperTextColorDisabled:a})}const Nh={name:"Pagination",common:te,peers:{Select:Vh,Input:Xt,Popselect:jh},self(e){const{primaryColor:t,opacity3:o}=e,r=Z(t,{alpha:Number(o)}),n=r$(e);return n.itemBorderActive=`1px solid ${r}`,n.itemBorderDisabled="1px solid #0000",n}},n$={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 i$(e){const{primaryColor:t,textColor2:o,dividerColor:r,hoverColor:n,popoverColor:i,invertedColor:a,borderRadius:l,fontSizeSmall:s,fontSizeMedium:d,fontSizeLarge:c,fontSizeHuge:u,heightSmall:h,heightMedium:f,heightLarge:p,heightHuge:g,textColor3:x,opacityDisabled:v}=e;return Object.assign(Object.assign({},n$),{optionHeightSmall:h,optionHeightMedium:f,optionHeightLarge:p,optionHeightHuge:g,borderRadius:l,fontSizeSmall:s,fontSizeMedium:d,fontSizeLarge:c,fontSizeHuge:u,optionTextColor:o,optionTextColorHover:o,optionTextColorActive:t,optionTextColorChildActive:t,color:i,dividerColor:r,suffixColor:o,prefixColor:o,optionColorHover:n,optionColorActive:Z(t,{alpha:.1}),groupHeaderTextColor:x,optionTextColorInverted:"#BBB",optionTextColorHoverInverted:"#FFF",optionTextColorActiveInverted:"#FFF",optionTextColorChildActiveInverted:"#FFF",colorInverted:a,dividerColorInverted:"#BBB",suffixColorInverted:"#BBB",prefixColorInverted:"#BBB",optionColorHoverInverted:t,optionColorActiveInverted:t,groupHeaderTextColorInverted:"#AAA",optionOpacityDisabled:v})}const ws={name:"Dropdown",common:te,peers:{Popover:Fr},self(e){const{primaryColorSuppl:t,primaryColor:o,popoverColor:r}=e,n=i$(e);return n.colorInverted=r,n.optionColorActive=Z(o,{alpha:.15}),n.optionColorActiveInverted=t,n.optionColorHoverInverted=t,n}},l$={padding:"8px 14px"},Rl={name:"Tooltip",common:te,peers:{Popover:Fr},self(e){const{borderRadius:t,boxShadow2:o,popoverColor:r,textColor2:n}=e;return Object.assign(Object.assign({},l$),{borderRadius:t,boxShadow:o,color:r,textColor:n})}},Uh={name:"Ellipsis",common:te,peers:{Tooltip:Rl}},a$={radioSizeSmall:"14px",radioSizeMedium:"16px",radioSizeLarge:"18px",labelPadding:"0 8px",labelFontWeight:"400"},Gh={name:"Radio",common:te,self(e){const{borderColor:t,primaryColor:o,baseColor:r,textColorDisabled:n,inputColorDisabled:i,textColor2:a,opacityDisabled:l,borderRadius:s,fontSizeSmall:d,fontSizeMedium:c,fontSizeLarge:u,heightSmall:h,heightMedium:f,heightLarge:p,lineHeight:g}=e;return Object.assign(Object.assign({},a$),{labelLineHeight:g,buttonHeightSmall:h,buttonHeightMedium:f,buttonHeightLarge:p,fontSizeSmall:d,fontSizeMedium:c,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 ${Z(o,{alpha:.3})}`,boxShadowHover:`inset 0 0 0 1px ${o}`,boxShadowDisabled:`inset 0 0 0 1px ${t}`,color:"#0000",colorDisabled:i,colorActive:"#0000",textColor:a,textColorDisabled:n,dotColorActive:o,dotColorDisabled:t,buttonBorderColor:t,buttonBorderColorActive:o,buttonBorderColorHover:o,buttonColor:"#0000",buttonColorActive:o,buttonTextColor:a,buttonTextColorActive:r,buttonTextColorHover:o,opacityDisabled:l,buttonBoxShadowFocus:`inset 0 0 0 1px ${o}, 0 0 0 2px ${Z(o,{alpha:.3})}`,buttonBoxShadowHover:`inset 0 0 0 1px ${o}`,buttonBoxShadow:"inset 0 0 0 1px #0000",buttonBorderRadius:s})}},s$={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 c$(e){const{cardColor:t,modalColor:o,popoverColor:r,textColor2:n,textColor1:i,tableHeaderColor:a,tableColorHover:l,iconColor:s,primaryColor:d,fontWeightStrong:c,borderRadius:u,lineHeight:h,fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:g,dividerColor:x,heightSmall:v,opacityDisabled:y,tableColorStriped:I}=e;return Object.assign(Object.assign({},s$),{actionDividerColor:x,lineHeight:h,borderRadius:u,fontSizeSmall:f,fontSizeMedium:p,fontSizeLarge:g,borderColor:pe(t,x),tdColorHover:pe(t,l),tdColorSorting:pe(t,l),tdColorStriped:pe(t,I),thColor:pe(t,a),thColorHover:pe(pe(t,a),l),thColorSorting:pe(pe(t,a),l),tdColor:t,tdTextColor:n,thTextColor:i,thFontWeight:c,thButtonColorHover:l,thIconColor:s,thIconColorActive:d,borderColorModal:pe(o,x),tdColorHoverModal:pe(o,l),tdColorSortingModal:pe(o,l),tdColorStripedModal:pe(o,I),thColorModal:pe(o,a),thColorHoverModal:pe(pe(o,a),l),thColorSortingModal:pe(pe(o,a),l),tdColorModal:o,borderColorPopover:pe(r,x),tdColorHoverPopover:pe(r,l),tdColorSortingPopover:pe(r,l),tdColorStripedPopover:pe(r,I),thColorPopover:pe(r,a),thColorHoverPopover:pe(pe(r,a),l),thColorSortingPopover:pe(pe(r,a),l),tdColorPopover:r,boxShadowBefore:"inset -12px 0 8px -12px rgba(0, 0, 0, .18)",boxShadowAfter:"inset 12px 0 8px -12px rgba(0, 0, 0, .18)",loadingColor:d,loadingSize:v,opacityLoading:y})}const d$={name:"DataTable",common:te,peers:{Button:jt,Checkbox:vn,Radio:Gh,Pagination:Nh,Scrollbar:kt,Empty:kr,Popover:Fr,Ellipsis:Uh,Dropdown:ws},self(e){const t=c$(e);return t.boxShadowAfter="inset 12px 0 8px -12px rgba(0, 0, 0, .36)",t.boxShadowBefore="inset -12px 0 8px -12px rgba(0, 0, 0, .36)",t}};function u$(e){const{textColorBase:t,opacity1:o,opacity2:r,opacity3:n,opacity4:i,opacity5:a}=e;return{color:t,opacity1Depth:o,opacity2Depth:r,opacity3Depth:n,opacity4Depth:i,opacity5Depth:a}}const f$={name:"Icon",common:te,self:u$},h$={itemFontSize:"12px",itemHeight:"36px",itemWidth:"52px",panelActionPadding:"8px 0"};function p$(e){const{popoverColor:t,textColor2:o,primaryColor:r,hoverColor:n,dividerColor:i,opacityDisabled:a,boxShadow2:l,borderRadius:s,iconColor:d,iconColorDisabled:c}=e;return Object.assign(Object.assign({},h$),{panelColor:t,panelBoxShadow:l,panelDividerColor:i,itemTextColor:o,itemTextColorActive:r,itemColorHover:n,itemOpacityDisabled:a,itemBorderRadius:s,borderRadius:s,iconColor:d,iconColorDisabled:c})}const Kh={name:"TimePicker",common:te,peers:{Scrollbar:kt,Button:jt,Input:Xt},self:p$},g$={itemSize:"24px",itemCellWidth:"38px",itemCellHeight:"32px",scrollItemWidth:"80px",scrollItemHeight:"40px",panelExtraFooterPadding:"8px 12px",panelActionPadding:"8px 12px",calendarTitlePadding:"0",calendarTitleHeight:"28px",arrowSize:"14px",panelHeaderPadding:"8px 12px",calendarDaysHeight:"32px",calendarTitleGridTempateColumns:"28px 28px 1fr 28px 28px",calendarLeftPaddingDate:"6px 12px 4px 12px",calendarLeftPaddingDatetime:"4px 12px",calendarLeftPaddingDaterange:"6px 12px 4px 12px",calendarLeftPaddingDatetimerange:"4px 12px",calendarLeftPaddingMonth:"0",calendarLeftPaddingYear:"0",calendarLeftPaddingQuarter:"0",calendarLeftPaddingMonthrange:"0",calendarLeftPaddingQuarterrange:"0",calendarLeftPaddingYearrange:"0",calendarLeftPaddingWeek:"6px 12px 4px 12px",calendarRightPaddingDate:"6px 12px 4px 12px",calendarRightPaddingDatetime:"4px 12px",calendarRightPaddingDaterange:"6px 12px 4px 12px",calendarRightPaddingDatetimerange:"4px 12px",calendarRightPaddingMonth:"0",calendarRightPaddingYear:"0",calendarRightPaddingQuarter:"0",calendarRightPaddingMonthrange:"0",calendarRightPaddingQuarterrange:"0",calendarRightPaddingYearrange:"0",calendarRightPaddingWeek:"0"};function m$(e){const{hoverColor:t,fontSize:o,textColor2:r,textColorDisabled:n,popoverColor:i,primaryColor:a,borderRadiusSmall:l,iconColor:s,iconColorDisabled:d,textColor1:c,dividerColor:u,boxShadow2:h,borderRadius:f,fontWeightStrong:p}=e;return Object.assign(Object.assign({},g$),{itemFontSize:o,calendarDaysFontSize:o,calendarTitleFontSize:o,itemTextColor:r,itemTextColorDisabled:n,itemTextColorActive:i,itemTextColorCurrent:a,itemColorIncluded:Z(a,{alpha:.1}),itemColorHover:t,itemColorDisabled:t,itemColorActive:a,itemBorderRadius:l,panelColor:i,panelTextColor:r,arrowColor:s,calendarTitleTextColor:c,calendarTitleColorHover:t,calendarDaysTextColor:r,panelHeaderDividerColor:u,calendarDaysDividerColor:u,calendarDividerColor:u,panelActionDividerColor:u,panelBoxShadow:h,panelBorderRadius:f,calendarTitleFontWeight:p,scrollItemBorderRadius:f,iconColor:s,iconColorDisabled:d})}const v$={name:"DatePicker",common:te,peers:{Input:Xt,Button:jt,TimePicker:Kh,Scrollbar:kt},self(e){const{popoverColor:t,hoverColor:o,primaryColor:r}=e,n=m$(e);return n.itemColorDisabled=pe(t,o),n.itemColorIncluded=Z(r,{alpha:.15}),n.itemColorHover=pe(t,o),n}},b$={thPaddingBorderedSmall:"8px 12px",thPaddingBorderedMedium:"12px 16px",thPaddingBorderedLarge:"16px 24px",thPaddingSmall:"0",thPaddingMedium:"0",thPaddingLarge:"0",tdPaddingBorderedSmall:"8px 12px",tdPaddingBorderedMedium:"12px 16px",tdPaddingBorderedLarge:"16px 24px",tdPaddingSmall:"0 0 8px 0",tdPaddingMedium:"0 0 12px 0",tdPaddingLarge:"0 0 16px 0"};function x$(e){const{tableHeaderColor:t,textColor2:o,textColor1:r,cardColor:n,modalColor:i,popoverColor:a,dividerColor:l,borderRadius:s,fontWeightStrong:d,lineHeight:c,fontSizeSmall:u,fontSizeMedium:h,fontSizeLarge:f}=e;return Object.assign(Object.assign({},b$),{lineHeight:c,fontSizeSmall:u,fontSizeMedium:h,fontSizeLarge:f,titleTextColor:r,thColor:pe(n,t),thColorModal:pe(i,t),thColorPopover:pe(a,t),thTextColor:r,thFontWeight:d,tdTextColor:o,tdColor:n,tdColorModal:i,tdColorPopover:a,borderColor:pe(n,l),borderColorModal:pe(i,l),borderColorPopover:pe(a,l),borderRadius:s})}const C$={name:"Descriptions",common:te,self:x$},y$={titleFontSize:"18px",padding:"16px 28px 20px 28px",iconSize:"28px",actionSpace:"12px",contentMargin:"8px 0 16px 0",iconMargin:"0 4px 0 0",iconMarginIconTop:"4px 0 8px 0",closeSize:"22px",closeIconSize:"18px",closeMargin:"20px 26px 0 0",closeMarginIconTop:"10px 16px 0 0"};function w$(e){const{textColor1:t,textColor2:o,modalColor:r,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,infoColor:d,successColor:c,warningColor:u,errorColor:h,primaryColor:f,dividerColor:p,borderRadius:g,fontWeightStrong:x,lineHeight:v,fontSize:y}=e;return Object.assign(Object.assign({},y$),{fontSize:y,lineHeight:v,border:`1px solid ${p}`,titleTextColor:t,textColor:o,color:r,closeColorHover:l,closeColorPressed:s,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:a,closeBorderRadius:g,iconColor:f,iconColorInfo:d,iconColorSuccess:c,iconColorWarning:u,iconColorError:h,borderRadius:g,titleFontWeight:x})}const qh={name:"Dialog",common:te,peers:{Button:jt},self:w$};function S$(e){const{modalColor:t,textColor2:o,boxShadow3:r}=e;return{color:t,textColor:o,boxShadow:r}}const $$={name:"Modal",common:te,peers:{Scrollbar:kt,Dialog:qh,Card:Lh},self:S$},P$={name:"LoadingBar",common:te,self(e){const{primaryColor:t}=e;return{colorError:"red",colorLoading:t,height:"2px"}}},Yh="n-message-api",Xh="n-message-provider",T$={margin:"0 0 8px 0",padding:"10px 20px",maxWidth:"720px",minWidth:"420px",iconMargin:"0 10px 0 0",closeMargin:"0 0 0 10px",closeSize:"20px",closeIconSize:"16px",iconSize:"20px",fontSize:"14px"};function Zh(e){const{textColor2:t,closeIconColor:o,closeIconColorHover:r,closeIconColorPressed:n,infoColor:i,successColor:a,errorColor:l,warningColor:s,popoverColor:d,boxShadow2:c,primaryColor:u,lineHeight:h,borderRadius:f,closeColorHover:p,closeColorPressed:g}=e;return Object.assign(Object.assign({},T$),{closeBorderRadius:f,textColor:t,textColorInfo:t,textColorSuccess:t,textColorError:t,textColorWarning:t,textColorLoading:t,color:d,colorInfo:d,colorSuccess:d,colorError:d,colorWarning:d,colorLoading:d,boxShadow:c,boxShadowInfo:c,boxShadowSuccess:c,boxShadowError:c,boxShadowWarning:c,boxShadowLoading:c,iconColor:t,iconColorInfo:i,iconColorSuccess:a,iconColorWarning:s,iconColorError:l,iconColorLoading:u,closeColorHover:p,closeColorPressed:g,closeIconColor:o,closeIconColorHover:r,closeIconColorPressed:n,closeColorHoverInfo:p,closeColorPressedInfo:g,closeIconColorInfo:o,closeIconColorHoverInfo:r,closeIconColorPressedInfo:n,closeColorHoverSuccess:p,closeColorPressedSuccess:g,closeIconColorSuccess:o,closeIconColorHoverSuccess:r,closeIconColorPressedSuccess:n,closeColorHoverError:p,closeColorPressedError:g,closeIconColorError:o,closeIconColorHoverError:r,closeIconColorPressedError:n,closeColorHoverWarning:p,closeColorPressedWarning:g,closeIconColorWarning:o,closeIconColorHoverWarning:r,closeIconColorPressedWarning:n,closeColorHoverLoading:p,closeColorPressedLoading:g,closeIconColorLoading:o,closeIconColorHoverLoading:r,closeIconColorPressedLoading:n,loadingColor:u,lineHeight:h,borderRadius:f,border:"0"})}const _$={common:mt,self:Zh},z$={name:"Message",common:te,self:Zh},Jh={icon:Function,type:{type:String,default:"info"},content:[String,Number,Function],showIcon:{type:Boolean,default:!0},closable:Boolean,keepAliveOnHover:Boolean,onClose:Function,onMouseenter:Function,onMouseleave:Function},E$=B([M("message-wrapper",`
|
|
997
|
+
margin: var(--n-margin);
|
|
998
|
+
z-index: 0;
|
|
999
|
+
transform-origin: top center;
|
|
1000
|
+
display: flex;
|
|
1001
|
+
`,[YS({overflow:"visible",originalTransition:"transform .3s var(--n-bezier)",enterToProps:{transform:"scale(1)"},leaveToProps:{transform:"scale(0.85)"}})]),M("message",`
|
|
1002
|
+
box-sizing: border-box;
|
|
1003
|
+
display: flex;
|
|
1004
|
+
align-items: center;
|
|
1005
|
+
transition:
|
|
1006
|
+
color .3s var(--n-bezier),
|
|
1007
|
+
box-shadow .3s var(--n-bezier),
|
|
1008
|
+
background-color .3s var(--n-bezier),
|
|
1009
|
+
opacity .3s var(--n-bezier),
|
|
1010
|
+
transform .3s var(--n-bezier),
|
|
1011
|
+
margin-bottom .3s var(--n-bezier);
|
|
1012
|
+
padding: var(--n-padding);
|
|
1013
|
+
border-radius: var(--n-border-radius);
|
|
1014
|
+
border: var(--n-border);
|
|
1015
|
+
flex-wrap: nowrap;
|
|
1016
|
+
overflow: hidden;
|
|
1017
|
+
max-width: var(--n-max-width);
|
|
1018
|
+
color: var(--n-text-color);
|
|
1019
|
+
background-color: var(--n-color);
|
|
1020
|
+
box-shadow: var(--n-box-shadow);
|
|
1021
|
+
`,[O("content",`
|
|
1022
|
+
display: inline-block;
|
|
1023
|
+
line-height: var(--n-line-height);
|
|
1024
|
+
font-size: var(--n-font-size);
|
|
1025
|
+
`),O("icon",`
|
|
1026
|
+
position: relative;
|
|
1027
|
+
margin: var(--n-icon-margin);
|
|
1028
|
+
height: var(--n-icon-size);
|
|
1029
|
+
width: var(--n-icon-size);
|
|
1030
|
+
font-size: var(--n-icon-size);
|
|
1031
|
+
flex-shrink: 0;
|
|
1032
|
+
`,[["default","info","success","warning","error","loading"].map(e=>D(`${e}-type`,[B("> *",`
|
|
1033
|
+
color: var(--n-icon-color-${e});
|
|
1034
|
+
transition: color .3s var(--n-bezier);
|
|
1035
|
+
`)])),B("> *",`
|
|
1036
|
+
position: absolute;
|
|
1037
|
+
left: 0;
|
|
1038
|
+
top: 0;
|
|
1039
|
+
right: 0;
|
|
1040
|
+
bottom: 0;
|
|
1041
|
+
`,[si()])]),O("close",`
|
|
1042
|
+
margin: var(--n-close-margin);
|
|
1043
|
+
transition:
|
|
1044
|
+
background-color .3s var(--n-bezier),
|
|
1045
|
+
color .3s var(--n-bezier);
|
|
1046
|
+
flex-shrink: 0;
|
|
1047
|
+
`,[B("&:hover",`
|
|
1048
|
+
color: var(--n-close-icon-color-hover);
|
|
1049
|
+
`),B("&:active",`
|
|
1050
|
+
color: var(--n-close-icon-color-pressed);
|
|
1051
|
+
`)])]),M("message-container",`
|
|
1052
|
+
z-index: 6000;
|
|
1053
|
+
position: fixed;
|
|
1054
|
+
height: 0;
|
|
1055
|
+
overflow: visible;
|
|
1056
|
+
display: flex;
|
|
1057
|
+
flex-direction: column;
|
|
1058
|
+
align-items: center;
|
|
1059
|
+
`,[D("top",`
|
|
1060
|
+
top: 12px;
|
|
1061
|
+
left: 0;
|
|
1062
|
+
right: 0;
|
|
1063
|
+
`),D("top-left",`
|
|
1064
|
+
top: 12px;
|
|
1065
|
+
left: 12px;
|
|
1066
|
+
right: 0;
|
|
1067
|
+
align-items: flex-start;
|
|
1068
|
+
`),D("top-right",`
|
|
1069
|
+
top: 12px;
|
|
1070
|
+
left: 0;
|
|
1071
|
+
right: 12px;
|
|
1072
|
+
align-items: flex-end;
|
|
1073
|
+
`),D("bottom",`
|
|
1074
|
+
bottom: 4px;
|
|
1075
|
+
left: 0;
|
|
1076
|
+
right: 0;
|
|
1077
|
+
justify-content: flex-end;
|
|
1078
|
+
`),D("bottom-left",`
|
|
1079
|
+
bottom: 4px;
|
|
1080
|
+
left: 12px;
|
|
1081
|
+
right: 0;
|
|
1082
|
+
justify-content: flex-end;
|
|
1083
|
+
align-items: flex-start;
|
|
1084
|
+
`),D("bottom-right",`
|
|
1085
|
+
bottom: 4px;
|
|
1086
|
+
left: 0;
|
|
1087
|
+
right: 12px;
|
|
1088
|
+
justify-content: flex-end;
|
|
1089
|
+
align-items: flex-end;
|
|
1090
|
+
`)])]),I$={info:()=>m(rS,null),success:()=>m(nS,null),warning:()=>m(fh,null),error:()=>m(eS,null),default:()=>null},R$=ge({name:"Message",props:Object.assign(Object.assign({},Jh),{render:Function}),setup(e){const{inlineThemeDisabled:t,mergedRtlRef:o}=tt(e),{props:r,mergedClsPrefixRef:n}=Le(Xh),i=fo("Message",o,n),a=_e("Message","-message",E$,_$,r,n),l=N(()=>{const{type:d}=e,{common:{cubicBezierEaseInOut:c},self:{padding:u,margin:h,maxWidth:f,iconMargin:p,closeMargin:g,closeSize:x,iconSize:v,fontSize:y,lineHeight:I,borderRadius:$,border:E,iconColorInfo:P,iconColorSuccess:b,iconColorWarning:A,iconColorError:_,iconColorLoading:k,closeIconSize:L,closeBorderRadius:R,[ae("textColor",d)]:ie,[ae("boxShadow",d)]:ce,[ae("color",d)]:U,[ae("closeColorHover",d)]:oe,[ae("closeColorPressed",d)]:Q,[ae("closeIconColor",d)]:H,[ae("closeIconColorPressed",d)]:ne,[ae("closeIconColorHover",d)]:ue}}=a.value;return{"--n-bezier":c,"--n-margin":h,"--n-padding":u,"--n-max-width":f,"--n-font-size":y,"--n-icon-margin":p,"--n-icon-size":v,"--n-close-icon-size":L,"--n-close-border-radius":R,"--n-close-size":x,"--n-close-margin":g,"--n-text-color":ie,"--n-color":U,"--n-box-shadow":ce,"--n-icon-color-info":P,"--n-icon-color-success":b,"--n-icon-color-warning":A,"--n-icon-color-error":_,"--n-icon-color-loading":k,"--n-close-color-hover":oe,"--n-close-color-pressed":Q,"--n-close-icon-color":H,"--n-close-icon-color-pressed":ne,"--n-close-icon-color-hover":ue,"--n-line-height":I,"--n-border-radius":$,"--n-border":E}}),s=t?ht("message",N(()=>e.type[0]),l,{}):void 0;return{mergedClsPrefix:n,rtlEnabled:i,messageProviderProps:r,handleClose(){var d;(d=e.onClose)===null||d===void 0||d.call(e)},cssVars:t?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender,placement:r.placement}},render(){const{render:e,type:t,closable:o,content:r,mergedClsPrefix:n,cssVars:i,themeClass:a,onRender:l,icon:s,handleClose:d,showIcon:c}=this;l==null||l();let u;return m("div",{class:[`${n}-message-wrapper`,a],onMouseenter:this.onMouseenter,onMouseleave:this.onMouseleave,style:[{alignItems:this.placement.startsWith("top")?"flex-start":"flex-end"},i]},e?e(this.$props):m("div",{class:[`${n}-message ${n}-message--${t}-type`,this.rtlEnabled&&`${n}-message--rtl`]},(u=M$(s,t,n))&&c?m("div",{class:`${n}-message__icon ${n}-message__icon--${t}-type`},m(_l,null,{default:()=>u})):null,m("div",{class:`${n}-message__content`},Bf(r)),o?m(zl,{clsPrefix:n,class:`${n}-message__close`,onClick:d,absolute:!0}):null))}});function M$(e,t,o){if(typeof e=="function")return e();{const r=t==="loading"?m(mi,{clsPrefix:o,strokeWidth:24,scale:.85}):I$[t]();return r?m(_o,{clsPrefix:o,key:t},{default:()=>r}):null}}const B$=ge({name:"MessageEnvironment",props:Object.assign(Object.assign({},Jh),{duration:{type:Number,default:3e3},onAfterLeave:Function,onLeave:Function,internalKey:{type:String,required:!0},onInternalAfterLeave:Function,onHide:Function,onAfterHide:Function}),setup(e){let t=null;const o=W(!0);Et(()=>{r()});function r(){const{duration:c}=e;c&&(t=window.setTimeout(a,c))}function n(c){c.currentTarget===c.target&&t!==null&&(window.clearTimeout(t),t=null)}function i(c){c.currentTarget===c.target&&r()}function a(){const{onHide:c}=e;o.value=!1,t&&(window.clearTimeout(t),t=null),c&&c()}function l(){const{onClose:c}=e;c&&c(),a()}function s(){const{onAfterLeave:c,onInternalAfterLeave:u,onAfterHide:h,internalKey:f}=e;c&&c(),u&&u(f),h&&h()}function d(){a()}return{show:o,hide:a,handleClose:l,handleAfterLeave:s,handleMouseleave:i,handleMouseenter:n,deactivate:d}},render(){return m(hh,{appear:!0,onAfterLeave:this.handleAfterLeave,onLeave:this.onLeave},{default:()=>[this.show?m(R$,{content:this.content,type:this.type,icon:this.icon,showIcon:this.showIcon,closable:this.closable,onClose:this.handleClose,onMouseenter:this.keepAliveOnHover?this.handleMouseenter:void 0,onMouseleave:this.keepAliveOnHover?this.handleMouseleave:void 0}):null]})}}),A$=Object.assign(Object.assign({},_e.props),{to:[String,Object],duration:{type:Number,default:3e3},keepAliveOnHover:Boolean,max:Number,placement:{type:String,default:"top"},closable:Boolean,containerClass:String,containerStyle:[String,Object]}),H$=ge({name:"MessageProvider",props:A$,setup(e){const{mergedClsPrefixRef:t}=tt(e),o=W([]),r=W({}),n={create(s,d){return i(s,Object.assign({type:"default"},d))},info(s,d){return i(s,Object.assign(Object.assign({},d),{type:"info"}))},success(s,d){return i(s,Object.assign(Object.assign({},d),{type:"success"}))},warning(s,d){return i(s,Object.assign(Object.assign({},d),{type:"warning"}))},error(s,d){return i(s,Object.assign(Object.assign({},d),{type:"error"}))},loading(s,d){return i(s,Object.assign(Object.assign({},d),{type:"loading"}))},destroyAll:l};$t(Xh,{props:e,mergedClsPrefixRef:t}),$t(Yh,n);function i(s,d){const c=cf(),u=fl(Object.assign(Object.assign({},d),{content:s,key:c,destroy:()=>{var f;(f=r.value[c])===null||f===void 0||f.hide()}})),{max:h}=e;return h&&o.value.length>=h&&o.value.shift(),o.value.push(u),u}function a(s){o.value.splice(o.value.findIndex(d=>d.key===s),1),delete r.value[s]}function l(){Object.values(r.value).forEach(s=>{s.hide()})}return Object.assign({mergedClsPrefix:t,messageRefs:r,messageList:o,handleAfterLeave:a},n)},render(){var e,t,o;return m(Me,null,(t=(e=this.$slots).default)===null||t===void 0?void 0:t.call(e),this.messageList.length?m(ru,{to:(o=this.to)!==null&&o!==void 0?o:"body"},m("div",{class:[`${this.mergedClsPrefix}-message-container`,`${this.mergedClsPrefix}-message-container--${this.placement}`,this.containerClass],key:"message-container",style:this.containerStyle},this.messageList.map(r=>m(B$,Object.assign({ref:n=>{n&&(this.messageRefs[r.key]=n)},internalKey:r.key,onInternalAfterLeave:this.handleAfterLeave},ss(r,["destroy"],void 0),{duration:r.duration===void 0?this.duration:r.duration,keepAliveOnHover:r.keepAliveOnHover===void 0?this.keepAliveOnHover:r.keepAliveOnHover,closable:r.closable===void 0?this.closable:r.closable}))))):null)}});function k$(){const e=Le(Yh,null);return e===null&&as("use-message","No outer <n-message-provider /> founded. See prerequisite in https://www.naiveui.com/en-US/os-theme/components/message for more details. If you want to use `useMessage` outside setup, please check https://www.naiveui.com/zh-CN/os-theme/components/message#Q-&-A."),e}const F$={closeMargin:"16px 12px",closeSize:"20px",closeIconSize:"16px",width:"365px",padding:"16px",titleFontSize:"16px",metaFontSize:"12px",descriptionFontSize:"12px"};function O$(e){const{textColor2:t,successColor:o,infoColor:r,warningColor:n,errorColor:i,popoverColor:a,closeIconColor:l,closeIconColorHover:s,closeIconColorPressed:d,closeColorHover:c,closeColorPressed:u,textColor1:h,textColor3:f,borderRadius:p,fontWeightStrong:g,boxShadow2:x,lineHeight:v,fontSize:y}=e;return Object.assign(Object.assign({},F$),{borderRadius:p,lineHeight:v,fontSize:y,headerFontWeight:g,iconColor:t,iconColorSuccess:o,iconColorInfo:r,iconColorWarning:n,iconColorError:i,color:a,textColor:t,closeIconColor:l,closeIconColorHover:s,closeIconColorPressed:d,closeBorderRadius:p,closeColorHover:c,closeColorPressed:u,headerTextColor:h,descriptionTextColor:f,actionTextColor:t,boxShadow:x})}const L$={name:"Notification",common:te,peers:{Scrollbar:kt},self:O$};function D$(e){const{textColor1:t,dividerColor:o,fontWeightStrong:r}=e;return{textColor:t,color:o,fontWeight:r}}const W$={name:"Divider",common:te,self:D$};function j$(e){const{modalColor:t,textColor1:o,textColor2:r,boxShadow3:n,lineHeight:i,fontWeightStrong:a,dividerColor:l,closeColorHover:s,closeColorPressed:d,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:h,borderRadius:f,primaryColorHover:p}=e;return{bodyPadding:"16px 24px",borderRadius:f,headerPadding:"16px 24px",footerPadding:"16px 24px",color:t,textColor:r,titleTextColor:o,titleFontSize:"18px",titleFontWeight:a,boxShadow:n,lineHeight:i,headerBorderBottom:`1px solid ${l}`,footerBorderTop:`1px solid ${l}`,closeIconColor:c,closeIconColorHover:u,closeIconColorPressed:h,closeSize:"22px",closeIconSize:"18px",closeColorHover:s,closeColorPressed:d,closeBorderRadius:f,resizableTriggerColorHover:p}}const V$={name:"Drawer",common:te,peers:{Scrollbar:kt},self:j$},N$={actionMargin:"0 0 0 20px",actionMarginRtl:"0 20px 0 0"},U$={name:"DynamicInput",common:te,peers:{Input:Xt,Button:jt},self(){return N$}},Qh={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},ep={name:"Space",self(){return Qh}};function G$(){return Qh}const K$={self:G$};let la;function q$(){if(!hn)return!0;if(la===void 0){const e=document.createElement("div");e.style.display="flex",e.style.flexDirection="column",e.style.rowGap="1px",e.appendChild(document.createElement("div")),e.appendChild(document.createElement("div")),document.body.appendChild(e);const t=e.scrollHeight===1;return document.body.removeChild(e),la=t}return la}const Y$=Object.assign(Object.assign({},_e.props),{align:String,justify:{type:String,default:"start"},inline:Boolean,vertical:Boolean,reverse:Boolean,size:{type:[String,Number,Array],default:"medium"},wrapItem:{type:Boolean,default:!0},itemClass:String,itemStyle:[String,Object],wrap:{type:Boolean,default:!0},internalUseGap:{type:Boolean,default:void 0}}),xi=ge({name:"Space",props:Y$,setup(e){const{mergedClsPrefixRef:t,mergedRtlRef:o}=tt(e),r=_e("Space","-space",void 0,K$,e,t),n=fo("Space",o,t);return{useGap:q$(),rtlEnabled:n,mergedClsPrefix:t,margin:N(()=>{const{size:i}=e;if(Array.isArray(i))return{horizontal:i[0],vertical:i[1]};if(typeof i=="number")return{horizontal:i,vertical:i};const{self:{[ae("gap",i)]:a}}=r.value,{row:l,col:s}=sb(a);return{horizontal:ei(s),vertical:ei(l)}})}},render(){const{vertical:e,reverse:t,align:o,inline:r,justify:n,itemClass:i,itemStyle:a,margin:l,wrap:s,mergedClsPrefix:d,rtlEnabled:c,useGap:u,wrapItem:h,internalUseGap:f}=this,p=zr(z0(this),!1);if(!p.length)return null;const g=`${l.horizontal}px`,x=`${l.horizontal/2}px`,v=`${l.vertical}px`,y=`${l.vertical/2}px`,I=p.length-1,$=n.startsWith("space-");return m("div",{role:"none",class:[`${d}-space`,c&&`${d}-space--rtl`],style:{display:r?"inline-flex":"flex",flexDirection:e&&!t?"column":e&&t?"column-reverse":!e&&t?"row-reverse":"row",justifyContent:["start","end"].includes(n)?`flex-${n}`:n,flexWrap:!s||e?"nowrap":"wrap",marginTop:u||e?"":`-${y}`,marginBottom:u||e?"":`-${y}`,alignItems:o,gap:u?`${l.vertical}px ${l.horizontal}px`:""}},!h&&(u||f)?p:p.map((E,P)=>E.type===ut?E:m("div",{role:"none",class:i,style:[a,{maxWidth:"100%"},u?"":e?{marginBottom:P!==I?v:""}:c?{marginLeft:$?n==="space-between"&&P===I?"":x:P!==I?g:"",marginRight:$?n==="space-between"&&P===0?"":x:"",paddingTop:y,paddingBottom:y}:{marginRight:$?n==="space-between"&&P===I?"":x:P!==I?g:"",marginLeft:$?n==="space-between"&&P===0?"":x:"",paddingTop:y,paddingBottom:y}]},E)))}}),X$={name:"DynamicTags",common:te,peers:{Input:Xt,Button:jt,Tag:Th,Space:ep},self(){return{inputWidth:"64px"}}},Z$={name:"Element",common:te},J$={gapSmall:"4px 8px",gapMedium:"8px 12px",gapLarge:"12px 16px"},Q$={name:"Flex",self(){return J$}},eP={name:"ButtonGroup",common:te},tP={feedbackPadding:"4px 0 0 2px",feedbackHeightSmall:"24px",feedbackHeightMedium:"24px",feedbackHeightLarge:"26px",feedbackFontSizeSmall:"13px",feedbackFontSizeMedium:"14px",feedbackFontSizeLarge:"14px",labelFontSizeLeftSmall:"14px",labelFontSizeLeftMedium:"14px",labelFontSizeLeftLarge:"15px",labelFontSizeTopSmall:"13px",labelFontSizeTopMedium:"14px",labelFontSizeTopLarge:"14px",labelHeightSmall:"24px",labelHeightMedium:"26px",labelHeightLarge:"28px",labelPaddingVertical:"0 0 6px 2px",labelPaddingHorizontal:"0 12px 0 0",labelTextAlignVertical:"left",labelTextAlignHorizontal:"right",labelFontWeight:"400"};function oP(e){const{heightSmall:t,heightMedium:o,heightLarge:r,textColor1:n,errorColor:i,warningColor:a,lineHeight:l,textColor3:s}=e;return Object.assign(Object.assign({},tP),{blankHeightSmall:t,blankHeightMedium:o,blankHeightLarge:r,lineHeight:l,labelTextColor:n,asteriskColor:i,feedbackTextColorError:i,feedbackTextColorWarning:a,feedbackTextColor:s})}const rP={name:"Form",common:te,self:oP},nP={name:"GradientText",common:te,self(e){const{primaryColor:t,successColor:o,warningColor:r,errorColor:n,infoColor:i,primaryColorSuppl:a,successColorSuppl:l,warningColorSuppl:s,errorColorSuppl:d,infoColorSuppl:c,fontWeightStrong:u}=e;return{fontWeight:u,rotate:"252deg",colorStartPrimary:t,colorEndPrimary:a,colorStartInfo:i,colorEndInfo:c,colorStartWarning:r,colorEndWarning:s,colorStartError:n,colorEndError:d,colorStartSuccess:o,colorEndSuccess:l}}};function iP(e){const{primaryColor:t,successColor:o,warningColor:r,errorColor:n,infoColor:i,fontWeightStrong:a}=e;return{fontWeight:a,rotate:"252deg",colorStartPrimary:Z(t,{alpha:.6}),colorEndPrimary:t,colorStartInfo:Z(i,{alpha:.6}),colorEndInfo:i,colorStartWarning:Z(r,{alpha:.6}),colorEndWarning:r,colorStartError:Z(n,{alpha:.6}),colorEndError:n,colorStartSuccess:Z(o,{alpha:.6}),colorEndSuccess:o}}const lP={common:mt,self:iP},aP={name:"InputNumber",common:te,peers:{Button:jt,Input:Xt},self(e){const{textColorDisabled:t}=e;return{iconColorDisabled:t}}};function sP(){return{inputWidthSmall:"24px",inputWidthMedium:"30px",inputWidthLarge:"36px",gapSmall:"8px",gapMedium:"8px",gapLarge:"8px"}}const cP={name:"InputOtp",common:te,peers:{Input:Xt},self:sP},dP={name:"Layout",common:te,peers:{Scrollbar:kt},self(e){const{textColor2:t,bodyColor:o,popoverColor:r,cardColor:n,dividerColor:i,scrollbarColor:a,scrollbarColorHover:l}=e;return{textColor:t,textColorInverted:t,color:o,colorEmbedded:o,headerColor:n,headerColorInverted:n,footerColor:n,footerColorInverted:n,headerBorderColor:i,headerBorderColorInverted:i,footerBorderColor:i,footerBorderColorInverted:i,siderBorderColor:i,siderBorderColorInverted:i,siderColor:n,siderColorInverted:n,siderToggleButtonBorder:"1px solid transparent",siderToggleButtonColor:r,siderToggleButtonIconColor:t,siderToggleButtonIconColorInverted:t,siderToggleBarColor:pe(o,a),siderToggleBarColorHover:pe(o,l),__invertScrollbar:"false"}}};function uP(e){const{baseColor:t,textColor2:o,bodyColor:r,cardColor:n,dividerColor:i,actionColor:a,scrollbarColor:l,scrollbarColorHover:s,invertedColor:d}=e;return{textColor:o,textColorInverted:"#FFF",color:r,colorEmbedded:a,headerColor:n,headerColorInverted:d,footerColor:a,footerColorInverted:d,headerBorderColor:i,headerBorderColorInverted:d,footerBorderColor:i,footerBorderColorInverted:d,siderBorderColor:i,siderBorderColorInverted:d,siderColor:n,siderColorInverted:d,siderToggleButtonBorder:`1px solid ${i}`,siderToggleButtonColor:t,siderToggleButtonIconColor:o,siderToggleButtonIconColorInverted:o,siderToggleBarColor:pe(r,l),siderToggleBarColorHover:pe(r,s),__invertScrollbar:"true"}}const tp={name:"Layout",common:mt,peers:{Scrollbar:vi},self:uP},fP={name:"Row",common:te};function op(e){const{textColor2:t,cardColor:o,modalColor:r,popoverColor:n,dividerColor:i,borderRadius:a,fontSize:l,hoverColor:s}=e;return{textColor:t,color:o,colorHover:s,colorModal:r,colorHoverModal:pe(r,s),colorPopover:n,colorHoverPopover:pe(n,s),borderColor:i,borderColorModal:pe(r,i),borderColorPopover:pe(n,i),borderRadius:a,fontSize:l}}const hP={common:mt,self:op},pP={name:"List",common:te,self:op},gP={name:"Log",common:te,peers:{Scrollbar:kt,Code:Dh},self(e){const{textColor2:t,inputColor:o,fontSize:r,primaryColor:n}=e;return{loaderFontSize:r,loaderTextColor:t,loaderColor:o,loaderBorder:"1px solid #0000",loadingColor:n}}};function mP(e){const{textColor2:t,modalColor:o,borderColor:r,fontSize:n,primaryColor:i}=e;return{loaderFontSize:n,loaderTextColor:t,loaderColor:o,loaderBorder:`1px solid ${r}`,loadingColor:i}}const vP={name:"Log",common:mt,peers:{Scrollbar:vi,Code:Wh},self:mP},bP={name:"Mention",common:te,peers:{InternalSelectMenu:bi,Input:Xt},self(e){const{boxShadow2:t}=e;return{menuBoxShadow:t}}};function xP(e,t,o,r){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:r}}function CP(e){const{borderRadius:t,textColor3:o,primaryColor:r,textColor2:n,textColor1:i,fontSize:a,dividerColor:l,hoverColor:s,primaryColorHover:d}=e;return Object.assign({borderRadius:t,color:"#0000",groupTextColor:o,itemColorHover:s,itemColorActive:Z(r,{alpha:.1}),itemColorActiveHover:Z(r,{alpha:.1}),itemColorActiveCollapsed:Z(r,{alpha:.1}),itemTextColor:n,itemTextColorHover:n,itemTextColorActive:r,itemTextColorActiveHover:r,itemTextColorChildActive:r,itemTextColorChildActiveHover:r,itemTextColorHorizontal:n,itemTextColorHoverHorizontal:d,itemTextColorActiveHorizontal:r,itemTextColorActiveHoverHorizontal:r,itemTextColorChildActiveHorizontal:r,itemTextColorChildActiveHoverHorizontal:r,itemIconColor:i,itemIconColorHover:i,itemIconColorActive:r,itemIconColorActiveHover:r,itemIconColorChildActive:r,itemIconColorChildActiveHover:r,itemIconColorCollapsed:i,itemIconColorHorizontal:i,itemIconColorHoverHorizontal:d,itemIconColorActiveHorizontal:r,itemIconColorActiveHoverHorizontal:r,itemIconColorChildActiveHorizontal:r,itemIconColorChildActiveHoverHorizontal:r,itemHeight:"42px",arrowColor:n,arrowColorHover:n,arrowColorActive:r,arrowColorActiveHover:r,arrowColorChildActive:r,arrowColorChildActiveHover:r,colorInverted:"#0000",borderColorHorizontal:"#0000",fontSize:a,dividerColor:l},xP("#BBB",r,"#FFF","#AAA"))}const yP={name:"Menu",common:te,peers:{Tooltip:Rl,Dropdown:ws},self(e){const{primaryColor:t,primaryColorSuppl:o}=e,r=CP(e);return r.itemColorActive=Z(t,{alpha:.15}),r.itemColorActiveHover=Z(t,{alpha:.15}),r.itemColorActiveCollapsed=Z(t,{alpha:.15}),r.itemColorActiveInverted=o,r.itemColorActiveHoverInverted=o,r.itemColorActiveCollapsedInverted=o,r}},wP={titleFontSize:"18px",backSize:"22px"};function SP(e){const{textColor1:t,textColor2:o,textColor3:r,fontSize:n,fontWeightStrong:i,primaryColorHover:a,primaryColorPressed:l}=e;return Object.assign(Object.assign({},wP),{titleFontWeight:i,fontSize:n,titleTextColor:t,backColor:o,backColorHover:a,backColorPressed:l,subtitleTextColor:r})}const $P={name:"PageHeader",common:te,self:SP},PP={iconSize:"22px"};function rp(e){const{fontSize:t,warningColor:o}=e;return Object.assign(Object.assign({},PP),{fontSize:t,iconColor:o})}const TP={name:"Popconfirm",common:mt,peers:{Button:Hh,Popover:wh},self:rp},_P={name:"Popconfirm",common:te,peers:{Button:jt,Popover:Fr},self:rp};function zP(e){const{infoColor:t,successColor:o,warningColor:r,errorColor:n,textColor2:i,progressRailColor:a,fontSize:l,fontWeight:s}=e;return{fontSize:l,fontSizeCircle:"28px",fontWeightCircle:s,railColor:a,railHeight:"8px",iconSizeCircle:"36px",iconSizeLine:"18px",iconColor:t,iconColorInfo:t,iconColorSuccess:o,iconColorWarning:r,iconColorError:n,textColorCircle:i,textColorLineInner:"rgb(255, 255, 255)",textColorLineOuter:i,fillColor:t,fillColorInfo:t,fillColorSuccess:o,fillColorWarning:r,fillColorError:n,lineBgProcessing:"linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)"}}const np={name:"Progress",common:te,self(e){const t=zP(e);return t.textColorLineInner="rgb(0, 0, 0)",t.lineBgProcessing="linear-gradient(90deg, rgba(255, 255, 255, .3) 0%, rgba(255, 255, 255, .5) 100%)",t}},EP={name:"Rate",common:te,self(e){const{railColor:t}=e;return{itemColor:t,itemColorActive:"#CCAA33",itemSize:"20px",sizeSmall:"16px",sizeMedium:"20px",sizeLarge:"24px"}}},IP={titleFontSizeSmall:"26px",titleFontSizeMedium:"32px",titleFontSizeLarge:"40px",titleFontSizeHuge:"48px",fontSizeSmall:"14px",fontSizeMedium:"14px",fontSizeLarge:"15px",fontSizeHuge:"16px",iconSizeSmall:"64px",iconSizeMedium:"80px",iconSizeLarge:"100px",iconSizeHuge:"125px",iconColor418:void 0,iconColor404:void 0,iconColor403:void 0,iconColor500:void 0};function RP(e){const{textColor2:t,textColor1:o,errorColor:r,successColor:n,infoColor:i,warningColor:a,lineHeight:l,fontWeightStrong:s}=e;return Object.assign(Object.assign({},IP),{lineHeight:l,titleFontWeight:s,titleTextColor:o,textColor:t,iconColorError:r,iconColorSuccess:n,iconColorInfo:i,iconColorWarning:a})}const MP={name:"Result",common:te,self:RP},BP={railHeight:"4px",railWidthVertical:"4px",handleSize:"18px",dotHeight:"8px",dotWidth:"8px",dotBorderRadius:"4px"},AP={name:"Slider",common:te,self(e){const t="0 2px 8px 0 rgba(0, 0, 0, 0.12)",{railColor:o,modalColor:r,primaryColorSuppl:n,popoverColor:i,textColor2:a,cardColor:l,borderRadius:s,fontSize:d,opacityDisabled:c}=e;return Object.assign(Object.assign({},BP),{fontSize:d,markFontSize:d,railColor:o,railColorHover:o,fillColor:n,fillColorHover:n,opacityDisabled:c,handleColor:"#FFF",dotColor:l,dotColorModal:r,dotColorPopover:i,handleBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowHover:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowActive:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",handleBoxShadowFocus:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",indicatorColor:i,indicatorBoxShadow:t,indicatorTextColor:a,indicatorBorderRadius:s,dotBorder:`2px solid ${o}`,dotBorderActive:`2px solid ${n}`,dotBoxShadow:""})}};function ip(e){const{opacityDisabled:t,heightTiny:o,heightSmall:r,heightMedium:n,heightLarge:i,heightHuge:a,primaryColor:l,fontSize:s}=e;return{fontSize:s,textColor:l,sizeTiny:o,sizeSmall:r,sizeMedium:n,sizeLarge:i,sizeHuge:a,color:l,opacitySpinning:t}}const HP={common:mt,self:ip},kP={name:"Spin",common:te,self:ip};function FP(e){const{textColor2:t,textColor3:o,fontSize:r,fontWeight:n}=e;return{labelFontSize:r,labelFontWeight:n,valueFontWeight:n,valueFontSize:"24px",labelTextColor:o,valuePrefixTextColor:t,valueSuffixTextColor:t,valueTextColor:t}}const OP={name:"Statistic",common:te,self:FP},LP={stepHeaderFontSizeSmall:"14px",stepHeaderFontSizeMedium:"16px",indicatorIndexFontSizeSmall:"14px",indicatorIndexFontSizeMedium:"16px",indicatorSizeSmall:"22px",indicatorSizeMedium:"28px",indicatorIconSizeSmall:"14px",indicatorIconSizeMedium:"18px"};function DP(e){const{fontWeightStrong:t,baseColor:o,textColorDisabled:r,primaryColor:n,errorColor:i,textColor1:a,textColor2:l}=e;return Object.assign(Object.assign({},LP),{stepHeaderFontWeight:t,indicatorTextColorProcess:o,indicatorTextColorWait:r,indicatorTextColorFinish:n,indicatorTextColorError:i,indicatorBorderColorProcess:n,indicatorBorderColorWait:r,indicatorBorderColorFinish:n,indicatorBorderColorError:i,indicatorColorProcess:n,indicatorColorWait:"#0000",indicatorColorFinish:"#0000",indicatorColorError:"#0000",splitorColorProcess:r,splitorColorWait:r,splitorColorFinish:n,splitorColorError:r,headerTextColorProcess:a,headerTextColorWait:r,headerTextColorFinish:r,headerTextColorError:i,descriptionTextColorProcess:l,descriptionTextColorWait:r,descriptionTextColorFinish:r,descriptionTextColorError:i})}const WP={name:"Steps",common:te,self:DP},jP={buttonHeightSmall:"14px",buttonHeightMedium:"18px",buttonHeightLarge:"22px",buttonWidthSmall:"14px",buttonWidthMedium:"18px",buttonWidthLarge:"22px",buttonWidthPressedSmall:"20px",buttonWidthPressedMedium:"24px",buttonWidthPressedLarge:"28px",railHeightSmall:"18px",railHeightMedium:"22px",railHeightLarge:"26px",railWidthSmall:"32px",railWidthMedium:"40px",railWidthLarge:"48px"},VP={name:"Switch",common:te,self(e){const{primaryColorSuppl:t,opacityDisabled:o,borderRadius:r,primaryColor:n,textColor2:i,baseColor:a}=e;return Object.assign(Object.assign({},jP),{iconColor:a,textColor:i,loadingColor:t,opacityDisabled:o,railColor:"rgba(255, 255, 255, .20)",railColorActive:t,buttonBoxShadow:"0px 2px 4px 0 rgba(0, 0, 0, 0.4)",buttonColor:"#FFF",railBorderRadiusSmall:r,railBorderRadiusMedium:r,railBorderRadiusLarge:r,buttonBorderRadiusSmall:r,buttonBorderRadiusMedium:r,buttonBorderRadiusLarge:r,boxShadowFocus:`0 0 8px 0 ${Z(n,{alpha:.3})}`})}},NP={thPaddingSmall:"6px",thPaddingMedium:"12px",thPaddingLarge:"12px",tdPaddingSmall:"6px",tdPaddingMedium:"12px",tdPaddingLarge:"12px"};function UP(e){const{dividerColor:t,cardColor:o,modalColor:r,popoverColor:n,tableHeaderColor:i,tableColorStriped:a,textColor1:l,textColor2:s,borderRadius:d,fontWeightStrong:c,lineHeight:u,fontSizeSmall:h,fontSizeMedium:f,fontSizeLarge:p}=e;return Object.assign(Object.assign({},NP),{fontSizeSmall:h,fontSizeMedium:f,fontSizeLarge:p,lineHeight:u,borderRadius:d,borderColor:pe(o,t),borderColorModal:pe(r,t),borderColorPopover:pe(n,t),tdColor:o,tdColorModal:r,tdColorPopover:n,tdColorStriped:pe(o,a),tdColorStripedModal:pe(r,a),tdColorStripedPopover:pe(n,a),thColor:pe(o,i),thColorModal:pe(r,i),thColorPopover:pe(n,i),thTextColor:l,tdTextColor:s,thFontWeight:c})}const GP={name:"Table",common:te,self:UP},KP={tabFontSizeSmall:"14px",tabFontSizeMedium:"14px",tabFontSizeLarge:"16px",tabGapSmallLine:"36px",tabGapMediumLine:"36px",tabGapLargeLine:"36px",tabGapSmallLineVertical:"8px",tabGapMediumLineVertical:"8px",tabGapLargeLineVertical:"8px",tabPaddingSmallLine:"6px 0",tabPaddingMediumLine:"10px 0",tabPaddingLargeLine:"14px 0",tabPaddingVerticalSmallLine:"6px 12px",tabPaddingVerticalMediumLine:"8px 16px",tabPaddingVerticalLargeLine:"10px 20px",tabGapSmallBar:"36px",tabGapMediumBar:"36px",tabGapLargeBar:"36px",tabGapSmallBarVertical:"8px",tabGapMediumBarVertical:"8px",tabGapLargeBarVertical:"8px",tabPaddingSmallBar:"4px 0",tabPaddingMediumBar:"6px 0",tabPaddingLargeBar:"10px 0",tabPaddingVerticalSmallBar:"6px 12px",tabPaddingVerticalMediumBar:"8px 16px",tabPaddingVerticalLargeBar:"10px 20px",tabGapSmallCard:"4px",tabGapMediumCard:"4px",tabGapLargeCard:"4px",tabGapSmallCardVertical:"4px",tabGapMediumCardVertical:"4px",tabGapLargeCardVertical:"4px",tabPaddingSmallCard:"8px 16px",tabPaddingMediumCard:"10px 20px",tabPaddingLargeCard:"12px 24px",tabPaddingSmallSegment:"4px 0",tabPaddingMediumSegment:"6px 0",tabPaddingLargeSegment:"8px 0",tabPaddingVerticalLargeSegment:"0 8px",tabPaddingVerticalSmallCard:"8px 12px",tabPaddingVerticalMediumCard:"10px 16px",tabPaddingVerticalLargeCard:"12px 20px",tabPaddingVerticalSmallSegment:"0 4px",tabPaddingVerticalMediumSegment:"0 6px",tabGapSmallSegment:"0",tabGapMediumSegment:"0",tabGapLargeSegment:"0",tabGapSmallSegmentVertical:"0",tabGapMediumSegmentVertical:"0",tabGapLargeSegmentVertical:"0",panePaddingSmall:"8px 0 0 0",panePaddingMedium:"12px 0 0 0",panePaddingLarge:"16px 0 0 0",closeSize:"18px",closeIconSize:"14px"};function lp(e){const{textColor2:t,primaryColor:o,textColorDisabled:r,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,tabColor:d,baseColor:c,dividerColor:u,fontWeight:h,textColor1:f,borderRadius:p,fontSize:g,fontWeightStrong:x}=e;return Object.assign(Object.assign({},KP),{colorSegment:d,tabFontSizeCard:g,tabTextColorLine:f,tabTextColorActiveLine:o,tabTextColorHoverLine:o,tabTextColorDisabledLine:r,tabTextColorSegment:f,tabTextColorActiveSegment:t,tabTextColorHoverSegment:t,tabTextColorDisabledSegment:r,tabTextColorBar:f,tabTextColorActiveBar:o,tabTextColorHoverBar:o,tabTextColorDisabledBar:r,tabTextColorCard:f,tabTextColorHoverCard:f,tabTextColorActiveCard:o,tabTextColorDisabledCard:r,barColor:o,closeIconColor:n,closeIconColorHover:i,closeIconColorPressed:a,closeColorHover:l,closeColorPressed:s,closeBorderRadius:p,tabColor:d,tabColorSegment:c,tabBorderColor:u,tabFontWeightActive:h,tabFontWeight:h,tabBorderRadius:p,paneTextColor:t,fontWeightStrong:x})}const qP={common:mt,self:lp},YP={name:"Tabs",common:te,self(e){const t=lp(e),{inputColor:o}=e;return t.colorSegment=o,t.tabColorSegment=o,t}};function ap(e){const{textColor1:t,textColor2:o,fontWeightStrong:r,fontSize:n}=e;return{fontSize:n,titleTextColor:t,textColor:o,titleFontWeight:r}}const XP={common:mt,self:ap},ZP={name:"Thing",common:te,self:ap},JP={titleMarginMedium:"0 0 6px 0",titleMarginLarge:"-2px 0 6px 0",titleFontSizeMedium:"14px",titleFontSizeLarge:"16px",iconSizeMedium:"14px",iconSizeLarge:"14px"},QP={name:"Timeline",common:te,self(e){const{textColor3:t,infoColorSuppl:o,errorColorSuppl:r,successColorSuppl:n,warningColorSuppl:i,textColor1:a,textColor2:l,railColor:s,fontWeightStrong:d,fontSize:c}=e;return Object.assign(Object.assign({},JP),{contentFontSize:c,titleFontWeight:d,circleBorder:`2px solid ${t}`,circleBorderInfo:`2px solid ${o}`,circleBorderError:`2px solid ${r}`,circleBorderSuccess:`2px solid ${n}`,circleBorderWarning:`2px solid ${i}`,iconColor:t,iconColorInfo:o,iconColorError:r,iconColorSuccess:n,iconColorWarning:i,titleTextColor:a,contentTextColor:l,metaTextColor:t,lineColor:s})}},eT={extraFontSizeSmall:"12px",extraFontSizeMedium:"12px",extraFontSizeLarge:"14px",titleFontSizeSmall:"14px",titleFontSizeMedium:"16px",titleFontSizeLarge:"16px",closeSize:"20px",closeIconSize:"16px",headerHeightSmall:"44px",headerHeightMedium:"44px",headerHeightLarge:"50px"},tT={name:"Transfer",common:te,peers:{Checkbox:vn,Scrollbar:kt,Input:Xt,Empty:kr,Button:jt},self(e){const{fontWeight:t,fontSizeLarge:o,fontSizeMedium:r,fontSizeSmall:n,heightLarge:i,heightMedium:a,borderRadius:l,inputColor:s,tableHeaderColor:d,textColor1:c,textColorDisabled:u,textColor2:h,textColor3:f,hoverColor:p,closeColorHover:g,closeColorPressed:x,closeIconColor:v,closeIconColorHover:y,closeIconColorPressed:I,dividerColor:$}=e;return Object.assign(Object.assign({},eT),{itemHeightSmall:a,itemHeightMedium:a,itemHeightLarge:i,fontSizeSmall:n,fontSizeMedium:r,fontSizeLarge:o,borderRadius:l,dividerColor:$,borderColor:"#0000",listColor:s,headerColor:d,titleTextColor:c,titleTextColorDisabled:u,extraTextColor:f,extraTextColorDisabled:u,itemTextColor:h,itemTextColorDisabled:u,itemColorPending:p,titleFontWeight:t,closeColorHover:g,closeColorPressed:x,closeIconColor:v,closeIconColorHover:y,closeIconColorPressed:I})}};function oT(e){const{borderRadiusSmall:t,dividerColor:o,hoverColor:r,pressedColor:n,primaryColor:i,textColor3:a,textColor2:l,textColorDisabled:s,fontSize:d}=e;return{fontSize:d,lineHeight:"1.5",nodeHeight:"30px",nodeWrapperPadding:"3px 0",nodeBorderRadius:t,nodeColorHover:r,nodeColorPressed:n,nodeColorActive:Z(i,{alpha:.1}),arrowColor:a,nodeTextColor:l,nodeTextColorDisabled:s,loadingColor:i,dropMarkColor:i,lineColor:o}}const sp={name:"Tree",common:te,peers:{Checkbox:vn,Scrollbar:kt,Empty:kr},self(e){const{primaryColor:t}=e,o=oT(e);return o.nodeColorActive=Z(t,{alpha:.15}),o}},rT={name:"TreeSelect",common:te,peers:{Tree:sp,Empty:kr,InternalSelection:Cs}},nT={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 cp(e){const{primaryColor:t,textColor2:o,borderColor:r,lineHeight:n,fontSize:i,borderRadiusSmall:a,dividerColor:l,fontWeightStrong:s,textColor1:d,textColor3:c,infoColor:u,warningColor:h,errorColor:f,successColor:p,codeColor:g}=e;return Object.assign(Object.assign({},nT),{aTextColor:t,blockquoteTextColor:o,blockquotePrefixColor:r,blockquoteLineHeight:n,blockquoteFontSize:i,codeBorderRadius:a,liTextColor:o,liLineHeight:n,liFontSize:i,hrColor:l,headerFontWeight:s,headerTextColor:d,pTextColor:o,pTextColor1Depth:d,pTextColor2Depth:o,pTextColor3Depth:c,pLineHeight:n,pFontSize:i,headerBarColor:t,headerBarColorPrimary:t,headerBarColorInfo:u,headerBarColorError:f,headerBarColorWarning:h,headerBarColorSuccess:p,textColor:o,textColor1Depth:d,textColor2Depth:o,textColor3Depth:c,textColorPrimary:t,textColorInfo:u,textColorSuccess:p,textColorWarning:h,textColorError:f,codeTextColor:o,codeColor:g,codeBorder:"1px solid #0000"})}const iT={common:mt,self:cp},lT={name:"Typography",common:te,self:cp};function aT(e){const{iconColor:t,primaryColor:o,errorColor:r,textColor2:n,successColor:i,opacityDisabled:a,actionColor:l,borderColor:s,hoverColor:d,lineHeight:c,borderRadius:u,fontSize:h}=e;return{fontSize:h,lineHeight:c,borderRadius:u,draggerColor:l,draggerBorder:`1px dashed ${s}`,draggerBorderHover:`1px dashed ${o}`,itemColorHover:d,itemColorHoverError:Z(r,{alpha:.06}),itemTextColor:n,itemTextColorError:r,itemTextColorSuccess:i,itemIconColor:t,itemDisabledOpacity:a,itemBorderImageCardError:`1px solid ${r}`,itemBorderImageCard:`1px solid ${s}`}}const sT={name:"Upload",common:te,peers:{Button:jt,Progress:np},self(e){const{errorColor:t}=e,o=aT(e);return o.itemColorHoverError=Z(t,{alpha:.09}),o}},cT={name:"Watermark",common:te,self(e){const{fontFamily:t}=e;return{fontFamily:t}}},dT={name:"FloatButton",common:te,self(e){const{popoverColor:t,textColor2:o,buttonColor2Hover:r,buttonColor2Pressed:n,primaryColor:i,primaryColorHover:a,primaryColorPressed:l,baseColor:s,borderRadius:d}=e;return{color:t,textColor:o,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)",boxShadowHover:"0 2px 12px 0px rgba(0, 0, 0, .18)",boxShadowPressed:"0 2px 12px 0px rgba(0, 0, 0, .18)",colorHover:r,colorPressed:n,colorPrimary:i,colorPrimaryHover:a,colorPrimaryPressed:l,textColorPrimary:s,borderRadiusSquare:d}}},uT=M("gradient-text",`
|
|
1091
|
+
display: inline-block;
|
|
1092
|
+
font-weight: var(--n-font-weight);
|
|
1093
|
+
-webkit-background-clip: text;
|
|
1094
|
+
background-clip: text;
|
|
1095
|
+
color: #0000;
|
|
1096
|
+
white-space: nowrap;
|
|
1097
|
+
background-image: linear-gradient(var(--n-rotate), var(--n-color-start) 0%, var(--n-color-end) 100%);
|
|
1098
|
+
transition:
|
|
1099
|
+
--n-color-start .3s var(--n-bezier),
|
|
1100
|
+
--n-color-end .3s var(--n-bezier);
|
|
1101
|
+
`),fT=Object.assign(Object.assign({},_e.props),{size:[String,Number],fontSize:[String,Number],type:{type:String,default:"primary"},color:[Object,String],gradient:[Object,String]}),hT=ge({name:"GradientText",props:fT,setup(e){Mb();const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=tt(e),r=N(()=>{const{type:d}=e;return d==="danger"?"error":d}),n=N(()=>{let d=e.size||e.fontSize;return d&&(d=ln(d)),d||void 0}),i=N(()=>{const d=e.color||e.gradient;if(typeof d=="string")return d;if(d){const c=d.deg||0,u=d.from,h=d.to;return`linear-gradient(${c}deg, ${u} 0%, ${h} 100%)`}}),a=_e("GradientText","-gradient-text",uT,lP,e,t),l=N(()=>{const{value:d}=r,{common:{cubicBezierEaseInOut:c},self:{rotate:u,[ae("colorStart",d)]:h,[ae("colorEnd",d)]:f,fontWeight:p}}=a.value;return{"--n-bezier":c,"--n-rotate":u,"--n-color-start":h,"--n-color-end":f,"--n-font-weight":p}}),s=o?ht("gradient-text",N(()=>r.value[0]),l,e):void 0;return{mergedClsPrefix:t,compatibleType:r,styleFontSize:n,styleBgImage:i,cssVars:o?void 0:l,themeClass:s==null?void 0:s.themeClass,onRender:s==null?void 0:s.onRender}},render(){const{mergedClsPrefix:e,onRender:t}=this;return t==null||t(),m("span",{class:[`${e}-gradient-text`,`${e}-gradient-text--${this.compatibleType}-type`,this.themeClass],style:[{fontSize:this.styleFontSize,backgroundImage:this.styleBgImage},this.cssVars]},this.$slots)}});function pT(e){const{borderRadius:t,fontSizeMini:o,fontSizeTiny:r,fontSizeSmall:n,fontWeight:i,textColor2:a,cardColor:l,buttonColor2Hover:s}=e;return{activeColors:["#9be9a8","#40c463","#30a14e","#216e39"],borderRadius:t,borderColor:l,textColor:a,mininumColor:s,fontWeight:i,loadingColorStart:"rgba(0, 0, 0, 0.06)",loadingColorEnd:"rgba(0, 0, 0, 0.12)",rectSizeSmall:"10px",rectSizeMedium:"11px",rectSizeLarge:"12px",borderRadiusSmall:"2px",borderRadiusMedium:"2px",borderRadiusLarge:"2px",xGapSmall:"2px",xGapMedium:"3px",xGapLarge:"3px",yGapSmall:"2px",yGapMedium:"3px",yGapLarge:"3px",fontSizeSmall:r,fontSizeMedium:o,fontSizeLarge:n}}const gT={name:"Heatmap",common:te,self(e){const t=pT(e);return Object.assign(Object.assign({},t),{activeColors:["#0d4429","#006d32","#26a641","#39d353"],mininumColor:"rgba(255, 255, 255, 0.1)",loadingColorStart:"rgba(255, 255, 255, 0.12)",loadingColorEnd:"rgba(255, 255, 255, 0.18)"})}};function mT(e){const{primaryColor:t,baseColor:o}=e;return{color:t,iconColor:o}}const vT={name:"IconWrapper",common:te,self:mT},bT={name:"Image",common:te,peers:{Tooltip:Rl},self:e=>{const{textColor2:t}=e;return{toolbarIconColor:t,toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}},dp={type:String,default:"static"},xT=M("layout",`
|
|
1102
|
+
color: var(--n-text-color);
|
|
1103
|
+
background-color: var(--n-color);
|
|
1104
|
+
box-sizing: border-box;
|
|
1105
|
+
position: relative;
|
|
1106
|
+
z-index: auto;
|
|
1107
|
+
flex: auto;
|
|
1108
|
+
overflow: hidden;
|
|
1109
|
+
transition:
|
|
1110
|
+
box-shadow .3s var(--n-bezier),
|
|
1111
|
+
background-color .3s var(--n-bezier),
|
|
1112
|
+
color .3s var(--n-bezier);
|
|
1113
|
+
`,[M("layout-scroll-container",`
|
|
1114
|
+
overflow-x: hidden;
|
|
1115
|
+
box-sizing: border-box;
|
|
1116
|
+
height: 100%;
|
|
1117
|
+
`),D("absolute-positioned",`
|
|
1118
|
+
position: absolute;
|
|
1119
|
+
left: 0;
|
|
1120
|
+
right: 0;
|
|
1121
|
+
top: 0;
|
|
1122
|
+
bottom: 0;
|
|
1123
|
+
`)]),CT={embedded:Boolean,position:dp,nativeScrollbar:{type:Boolean,default:!0},scrollbarProps:Object,onScroll:Function,contentClass:String,contentStyle:{type:[String,Object],default:""},hasSider:Boolean,siderPlacement:{type:String,default:"left"}},yT="n-layout";function up(e){return ge({name:e?"LayoutContent":"Layout",props:Object.assign(Object.assign({},_e.props),CT),setup(t){const o=W(null),r=W(null),{mergedClsPrefixRef:n,inlineThemeDisabled:i}=tt(t),a=_e("Layout","-layout",xT,tp,t,n);function l(g,x){if(t.nativeScrollbar){const{value:v}=o;v&&(x===void 0?v.scrollTo(g):v.scrollTo(g,x))}else{const{value:v}=r;v&&v.scrollTo(g,x)}}$t(yT,t);let s=0,d=0;const c=g=>{var x;const v=g.target;s=v.scrollLeft,d=v.scrollTop,(x=t.onScroll)===null||x===void 0||x.call(t,g)};mf(()=>{if(t.nativeScrollbar){const g=o.value;g&&(g.scrollTop=d,g.scrollLeft=s)}});const u={display:"flex",flexWrap:"nowrap",width:"100%",flexDirection:"row"},h={scrollTo:l},f=N(()=>{const{common:{cubicBezierEaseInOut:g},self:x}=a.value;return{"--n-bezier":g,"--n-color":t.embedded?x.colorEmbedded:x.color,"--n-text-color":x.textColor}}),p=i?ht("layout",N(()=>t.embedded?"e":""),f,t):void 0;return Object.assign({mergedClsPrefix:n,scrollableElRef:o,scrollbarInstRef:r,hasSiderStyle:u,mergedTheme:a,handleNativeElScroll:c,cssVars:i?void 0:f,themeClass:p==null?void 0:p.themeClass,onRender:p==null?void 0:p.onRender},h)},render(){var t;const{mergedClsPrefix:o,hasSider:r}=this;(t=this.onRender)===null||t===void 0||t.call(this);const n=r?this.hasSiderStyle:void 0,i=[this.themeClass,e&&`${o}-layout-content`,`${o}-layout`,`${o}-layout--${this.position}-positioned`];return m("div",{class:i,style:this.cssVars},this.nativeScrollbar?m("div",{ref:"scrollableElRef",class:[`${o}-layout-scroll-container`,this.contentClass],style:[this.contentStyle,n],onScroll:this.handleNativeElScroll},this.$slots):m(El,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,n]}),this.$slots))}})}const wT=up(!1),ST=up(!0),$T=M("layout-header",`
|
|
1124
|
+
transition:
|
|
1125
|
+
color .3s var(--n-bezier),
|
|
1126
|
+
background-color .3s var(--n-bezier),
|
|
1127
|
+
box-shadow .3s var(--n-bezier),
|
|
1128
|
+
border-color .3s var(--n-bezier);
|
|
1129
|
+
box-sizing: border-box;
|
|
1130
|
+
width: 100%;
|
|
1131
|
+
background-color: var(--n-color);
|
|
1132
|
+
color: var(--n-text-color);
|
|
1133
|
+
`,[D("absolute-positioned",`
|
|
1134
|
+
position: absolute;
|
|
1135
|
+
left: 0;
|
|
1136
|
+
right: 0;
|
|
1137
|
+
top: 0;
|
|
1138
|
+
`),D("bordered",`
|
|
1139
|
+
border-bottom: solid 1px var(--n-border-color);
|
|
1140
|
+
`)]),PT={position:dp,inverted:Boolean,bordered:{type:Boolean,default:!1}},TT=ge({name:"LayoutHeader",props:Object.assign(Object.assign({},_e.props),PT),setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=tt(e),r=_e("Layout","-layout-header",$T,tp,e,t),n=N(()=>{const{common:{cubicBezierEaseInOut:a},self:l}=r.value,s={"--n-bezier":a};return e.inverted?(s["--n-color"]=l.headerColorInverted,s["--n-text-color"]=l.textColorInverted,s["--n-border-color"]=l.headerBorderColorInverted):(s["--n-color"]=l.headerColor,s["--n-text-color"]=l.textColor,s["--n-border-color"]=l.headerBorderColor),s}),i=o?ht("layout-header",N(()=>e.inverted?"a":"b"),n,e):void 0;return{mergedClsPrefix:t,cssVars:o?void 0:n,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),m("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)}}),_T={extraFontSize:"12px",width:"440px"},zT={name:"Transfer",common:te,peers:{Checkbox:vn,Scrollbar:kt,Input:Xt,Empty:kr,Button:jt},self(e){const{iconColorDisabled:t,iconColor:o,fontWeight:r,fontSizeLarge:n,fontSizeMedium:i,fontSizeSmall:a,heightLarge:l,heightMedium:s,heightSmall:d,borderRadius:c,inputColor:u,tableHeaderColor:h,textColor1:f,textColorDisabled:p,textColor2:g,hoverColor:x}=e;return Object.assign(Object.assign({},_T),{itemHeightSmall:d,itemHeightMedium:s,itemHeightLarge:l,fontSizeSmall:a,fontSizeMedium:i,fontSizeLarge:n,borderRadius:c,borderColor:"#0000",listColor:u,headerColor:h,titleTextColor:f,titleTextColorDisabled:p,extraTextColor:g,filterDividerColor:"#0000",itemTextColor:g,itemTextColorDisabled:p,itemColorPending:x,titleFontWeight:r,iconColor:o,iconColorDisabled:t})}},ET=B([M("list",`
|
|
1141
|
+
--n-merged-border-color: var(--n-border-color);
|
|
1142
|
+
--n-merged-color: var(--n-color);
|
|
1143
|
+
--n-merged-color-hover: var(--n-color-hover);
|
|
1144
|
+
margin: 0;
|
|
1145
|
+
font-size: var(--n-font-size);
|
|
1146
|
+
transition:
|
|
1147
|
+
background-color .3s var(--n-bezier),
|
|
1148
|
+
color .3s var(--n-bezier),
|
|
1149
|
+
border-color .3s var(--n-bezier);
|
|
1150
|
+
padding: 0;
|
|
1151
|
+
list-style-type: none;
|
|
1152
|
+
color: var(--n-text-color);
|
|
1153
|
+
background-color: var(--n-merged-color);
|
|
1154
|
+
`,[D("show-divider",[M("list-item",[B("&:not(:last-child)",[O("divider",`
|
|
1155
|
+
background-color: var(--n-merged-border-color);
|
|
1156
|
+
`)])])]),D("clickable",[M("list-item",`
|
|
1157
|
+
cursor: pointer;
|
|
1158
|
+
`)]),D("bordered",`
|
|
1159
|
+
border: 1px solid var(--n-merged-border-color);
|
|
1160
|
+
border-radius: var(--n-border-radius);
|
|
1161
|
+
`),D("hoverable",[M("list-item",`
|
|
1162
|
+
border-radius: var(--n-border-radius);
|
|
1163
|
+
`,[B("&:hover",`
|
|
1164
|
+
background-color: var(--n-merged-color-hover);
|
|
1165
|
+
`,[O("divider",`
|
|
1166
|
+
background-color: transparent;
|
|
1167
|
+
`)])])]),D("bordered, hoverable",[M("list-item",`
|
|
1168
|
+
padding: 12px 20px;
|
|
1169
|
+
`),O("header, footer",`
|
|
1170
|
+
padding: 12px 20px;
|
|
1171
|
+
`)]),O("header, footer",`
|
|
1172
|
+
padding: 12px 0;
|
|
1173
|
+
box-sizing: border-box;
|
|
1174
|
+
transition: border-color .3s var(--n-bezier);
|
|
1175
|
+
`,[B("&:not(:last-child)",`
|
|
1176
|
+
border-bottom: 1px solid var(--n-merged-border-color);
|
|
1177
|
+
`)]),M("list-item",`
|
|
1178
|
+
position: relative;
|
|
1179
|
+
padding: 12px 0;
|
|
1180
|
+
box-sizing: border-box;
|
|
1181
|
+
display: flex;
|
|
1182
|
+
flex-wrap: nowrap;
|
|
1183
|
+
align-items: center;
|
|
1184
|
+
transition:
|
|
1185
|
+
background-color .3s var(--n-bezier),
|
|
1186
|
+
border-color .3s var(--n-bezier);
|
|
1187
|
+
`,[O("prefix",`
|
|
1188
|
+
margin-right: 20px;
|
|
1189
|
+
flex: 0;
|
|
1190
|
+
`),O("suffix",`
|
|
1191
|
+
margin-left: 20px;
|
|
1192
|
+
flex: 0;
|
|
1193
|
+
`),O("main",`
|
|
1194
|
+
flex: 1;
|
|
1195
|
+
`),O("divider",`
|
|
1196
|
+
height: 1px;
|
|
1197
|
+
position: absolute;
|
|
1198
|
+
bottom: 0;
|
|
1199
|
+
left: 0;
|
|
1200
|
+
right: 0;
|
|
1201
|
+
background-color: transparent;
|
|
1202
|
+
transition: background-color .3s var(--n-bezier);
|
|
1203
|
+
pointer-events: none;
|
|
1204
|
+
`)])]),ef(M("list",`
|
|
1205
|
+
--n-merged-color-hover: var(--n-color-hover-modal);
|
|
1206
|
+
--n-merged-color: var(--n-color-modal);
|
|
1207
|
+
--n-merged-border-color: var(--n-border-color-modal);
|
|
1208
|
+
`)),tf(M("list",`
|
|
1209
|
+
--n-merged-color-hover: var(--n-color-hover-popover);
|
|
1210
|
+
--n-merged-color: var(--n-color-popover);
|
|
1211
|
+
--n-merged-border-color: var(--n-border-color-popover);
|
|
1212
|
+
`))]),IT=Object.assign(Object.assign({},_e.props),{size:{type:String,default:"medium"},bordered:Boolean,clickable:Boolean,hoverable:Boolean,showDivider:{type:Boolean,default:!0}}),fp="n-list",hp=ge({name:"List",props:IT,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o,mergedRtlRef:r}=tt(e),n=fo("List",r,t),i=_e("List","-list",ET,hP,e,t);$t(fp,{showDividerRef:Be(e,"showDivider"),mergedClsPrefixRef:t});const a=N(()=>{const{common:{cubicBezierEaseInOut:s},self:{fontSize:d,textColor:c,color:u,colorModal:h,colorPopover:f,borderColor:p,borderColorModal:g,borderColorPopover:x,borderRadius:v,colorHover:y,colorHoverModal:I,colorHoverPopover:$}}=i.value;return{"--n-font-size":d,"--n-bezier":s,"--n-text-color":c,"--n-color":u,"--n-border-radius":v,"--n-border-color":p,"--n-border-color-modal":g,"--n-border-color-popover":x,"--n-color-modal":h,"--n-color-popover":f,"--n-color-hover":y,"--n-color-hover-modal":I,"--n-color-hover-popover":$}}),l=o?ht("list",void 0,a,e):void 0;return{mergedClsPrefix:t,rtlEnabled:n,cssVars:o?void 0:a,themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender}},render(){var e;const{$slots:t,mergedClsPrefix:o,onRender:r}=this;return r==null||r(),m("ul",{class:[`${o}-list`,this.rtlEnabled&&`${o}-list--rtl`,this.bordered&&`${o}-list--bordered`,this.showDivider&&`${o}-list--show-divider`,this.hoverable&&`${o}-list--hoverable`,this.clickable&&`${o}-list--clickable`,this.themeClass],style:this.cssVars},t.header?m("div",{class:`${o}-list__header`},t.header()):null,(e=t.default)===null||e===void 0?void 0:e.call(t),t.footer?m("div",{class:`${o}-list__footer`},t.footer()):null)}}),pp=ge({name:"ListItem",slots:Object,setup(){const e=Le(fp,null);return e||as("list-item","`n-list-item` must be placed in `n-list`."),{showDivider:e.showDividerRef,mergedClsPrefix:e.mergedClsPrefixRef}},render(){const{$slots:e,mergedClsPrefix:t}=this;return m("li",{class:`${t}-list-item`},e.prefix?m("div",{class:`${t}-list-item__prefix`},e.prefix()):null,e.default?m("div",{class:`${t}-list-item__main`},e):null,e.suffix?m("div",{class:`${t}-list-item__suffix`},e.suffix()):null,this.showDivider&&m("div",{class:`${t}-list-item__divider`}))}}),gp="n-log",RT=ge({props:{line:{type:String,default:""}},setup(e){const{trimRef:t,highlightRef:o,languageRef:r,mergedHljsRef:n}=Le(gp),i=W(null),a=N(()=>t.value?e.line.trim():e.line);function l(){i.value&&(i.value.innerHTML=s(r.value,a.value))}function s(d,c){const{value:u}=n;return u&&d&&u.getLanguage(d)?u.highlight(c,{language:d}).value:c}return Et(()=>{o.value&&l()}),Xe(Be(e,"line"),()=>{o.value&&l()}),{highlight:o,selfRef:i,maybeTrimmedLines:a}},render(){const{highlight:e,maybeTrimmedLines:t}=this;return m("pre",{ref:"selfRef"},e?null:t)}}),MT=ge({name:"LogLoader",props:{clsPrefix:{type:String,required:!0}},setup(){return{locale:li("Log").localeRef}},render(){const{clsPrefix:e}=this;return m("div",{class:`${e}-log-loader`},m(mi,{clsPrefix:e,strokeWidth:24,scale:.85}),m("span",{class:`${e}-log-loader__content`},this.locale.loading))}}),BT=M("log",`
|
|
1213
|
+
position: relative;
|
|
1214
|
+
box-sizing: border-box;
|
|
1215
|
+
transition: border-color .3s var(--n-bezier);
|
|
1216
|
+
`,[B("pre",`
|
|
1217
|
+
white-space: pre-wrap;
|
|
1218
|
+
word-break: break-word;
|
|
1219
|
+
margin: 0;
|
|
1220
|
+
`),M("log-loader",`
|
|
1221
|
+
transition:
|
|
1222
|
+
color .3s var(--n-bezier),
|
|
1223
|
+
background-color .3s var(--n-bezier),
|
|
1224
|
+
border-color .3s var(--n-bezier);
|
|
1225
|
+
box-sizing: border-box;
|
|
1226
|
+
position: absolute;
|
|
1227
|
+
right: 16px;
|
|
1228
|
+
top: 8px;
|
|
1229
|
+
height: 34px;
|
|
1230
|
+
border-radius: 17px;
|
|
1231
|
+
line-height: 34px;
|
|
1232
|
+
white-space: nowrap;
|
|
1233
|
+
overflow: hidden;
|
|
1234
|
+
border: var(--n-loader-border);
|
|
1235
|
+
color: var(--n-loader-text-color);
|
|
1236
|
+
background-color: var(--n-loader-color);
|
|
1237
|
+
font-size: var(--n-loader-font-size);
|
|
1238
|
+
`,[Ch(),O("content",`
|
|
1239
|
+
display: inline-block;
|
|
1240
|
+
vertical-align: bottom;
|
|
1241
|
+
line-height: 34px;
|
|
1242
|
+
padding-left: 40px;
|
|
1243
|
+
padding-right: 20px;
|
|
1244
|
+
white-space: nowrap;
|
|
1245
|
+
`),M("base-loading",`
|
|
1246
|
+
color: var(--n-loading-color);
|
|
1247
|
+
position: absolute;
|
|
1248
|
+
left: 12px;
|
|
1249
|
+
top: calc(50% - 10px);
|
|
1250
|
+
font-size: 20px;
|
|
1251
|
+
width: 20px;
|
|
1252
|
+
height: 20px;
|
|
1253
|
+
display: inline-block;
|
|
1254
|
+
`)])]),AT=dh,HT=Object.assign(Object.assign({},_e.props),{loading:Boolean,trim:Boolean,log:String,fontSize:{type:Number,default:14},lines:{type:Array,default:()=>[]},lineHeight:{type:Number,default:1.25},language:String,rows:{type:Number,default:15},offsetTop:{type:Number,default:0},offsetBottom:{type:Number,default:0},hljs:Object,onReachTop:Function,onReachBottom:Function,onRequireMore:Function}),kT=ge({name:"Log",props:HT,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=tt(e),r=W(!1),n=N(()=>e.language!==void 0),i=N(()=>`calc(${Math.round(e.rows*e.lineHeight*e.fontSize)}px)`),a=N(()=>{const{log:y}=e;return y?y.split(`
|
|
1255
|
+
`):e.lines}),l=W(null),s=_e("Log","-log",BT,vP,e,t);function d(y){const I=y.target,$=I.firstElementChild;if(r.value){lo(()=>{r.value=!1});return}const E=I.offsetHeight,P=I.scrollTop,b=$.offsetHeight,A=P,_=b-P-E;if(A<=e.offsetTop){const{onReachTop:k,onRequireMore:L}=e;L&&L("top"),k&&k()}if(_<=e.offsetBottom){const{onReachBottom:k,onRequireMore:L}=e;L&&L("bottom"),k&&k()}}const c=AT(u,300);function u(y){if(r.value){lo(()=>{r.value=!1});return}if(l.value){const{containerRef:I,contentRef:$}=l.value;if(I&&$){const E=I.offsetHeight,P=I.scrollTop,b=$.offsetHeight,A=P,_=b-P-E,k=y.deltaY;if(A===0&&k<0){const{onRequireMore:L}=e;L&&L("top")}if(_<=0&&k>0){const{onRequireMore:L}=e;L&&L("bottom")}}}}function h(y){const{value:I}=l;if(!I)return;const{silent:$,top:E,position:P}=y;$&&(r.value=!0),E!==void 0?I.scrollTo({left:0,top:E}):(P==="bottom"||P==="top")&&I.scrollTo({position:P})}function f(y=!1){ri("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'top'})` instead."),h({position:"top",silent:y})}function p(y=!1){ri("log","`scrollToTop` is deprecated, please use `scrollTo({ position: 'bottom'})` instead."),h({position:"bottom",silent:y})}$t(gp,{languageRef:Be(e,"language"),mergedHljsRef:Hf(e),trimRef:Be(e,"trim"),highlightRef:n});const g={scrollTo:h},x=N(()=>{const{self:{loaderFontSize:y,loaderTextColor:I,loaderColor:$,loaderBorder:E,loadingColor:P},common:{cubicBezierEaseInOut:b}}=s.value;return{"--n-bezier":b,"--n-loader-font-size":y,"--n-loader-border":E,"--n-loader-color":$,"--n-loader-text-color":I,"--n-loading-color":P}}),v=o?ht("log",void 0,x,e):void 0;return Object.assign(Object.assign({},g),{mergedClsPrefix:t,scrollbarRef:l,mergedTheme:s,styleHeight:i,mergedLines:a,scrollToTop:f,scrollToBottom:p,handleWheel:c,handleScroll:d,cssVars:o?void 0:x,themeClass:v==null?void 0:v.themeClass,onRender:v==null?void 0:v.onRender})},render(){const{mergedClsPrefix:e,mergedTheme:t,onRender:o}=this;return o==null||o(),m("div",{class:[`${e}-log`,this.themeClass],style:[{lineHeight:this.lineHeight,height:this.styleHeight},this.cssVars],onWheelPassive:this.handleWheel},[m(El,{ref:"scrollbarRef",theme:t.peers.Scrollbar,themeOverrides:t.peerOverrides.Scrollbar,onScroll:this.handleScroll},{default:()=>m(G2,{internalNoHighlight:!0,internalFontSize:this.fontSize,theme:t.peers.Code,themeOverrides:t.peerOverrides.Code},{default:()=>this.mergedLines.map((r,n)=>m(RT,{key:n,line:r}))})}),m(sr,{name:"fade-in-scale-up-transition"},{default:()=>this.loading?m(MT,{clsPrefix:e}):null})])}});function FT(){return{}}const OT={name:"Marquee",common:te,self:FT},mp="n-popconfirm",vp={positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},onPositiveClick:{type:Function,required:!0},onNegativeClick:{type:Function,required:!0}},hd=E0(vp),LT=ge({name:"NPopconfirmPanel",props:vp,setup(e){const{localeRef:t}=li("Popconfirm"),{inlineThemeDisabled:o}=tt(),{mergedClsPrefixRef:r,mergedThemeRef:n,props:i}=Le(mp),a=N(()=>{const{common:{cubicBezierEaseInOut:s},self:{fontSize:d,iconSize:c,iconColor:u}}=n.value;return{"--n-bezier":s,"--n-font-size":d,"--n-icon-size":c,"--n-icon-color":u}}),l=o?ht("popconfirm-panel",void 0,a,i):void 0;return Object.assign(Object.assign({},li("Popconfirm")),{mergedClsPrefix:r,cssVars:o?void 0:a,localizedPositiveText:N(()=>e.positiveText||t.value.positiveText),localizedNegativeText:N(()=>e.negativeText||t.value.negativeText),positiveButtonProps:Be(i,"positiveButtonProps"),negativeButtonProps:Be(i,"negativeButtonProps"),handlePositiveClick(s){e.onPositiveClick(s)},handleNegativeClick(s){e.onNegativeClick(s)},themeClass:l==null?void 0:l.themeClass,onRender:l==null?void 0:l.onRender})},render(){var e;const{mergedClsPrefix:t,showIcon:o,$slots:r}=this,n=lr(r.action,()=>this.negativeText===null&&this.positiveText===null?[]:[this.negativeText!==null&&m(fr,Object.assign({size:"small",onClick:this.handleNegativeClick},this.negativeButtonProps),{default:()=>this.localizedNegativeText}),this.positiveText!==null&&m(fr,Object.assign({size:"small",type:"primary",onClick:this.handlePositiveClick},this.positiveButtonProps),{default:()=>this.localizedPositiveText})]);return(e=this.onRender)===null||e===void 0||e.call(this),m("div",{class:[`${t}-popconfirm__panel`,this.themeClass],style:this.cssVars},dt(r.default,i=>o||i?m("div",{class:`${t}-popconfirm__body`},o?m("div",{class:`${t}-popconfirm__icon`},lr(r.icon,()=>[m(_o,{clsPrefix:t},{default:()=>m(fh,null)})])):null,i):null),n?m("div",{class:[`${t}-popconfirm__action`]},n):null)}}),DT=M("popconfirm",[O("body",`
|
|
1256
|
+
font-size: var(--n-font-size);
|
|
1257
|
+
display: flex;
|
|
1258
|
+
align-items: center;
|
|
1259
|
+
flex-wrap: nowrap;
|
|
1260
|
+
position: relative;
|
|
1261
|
+
`,[O("icon",`
|
|
1262
|
+
display: flex;
|
|
1263
|
+
font-size: var(--n-icon-size);
|
|
1264
|
+
color: var(--n-icon-color);
|
|
1265
|
+
transition: color .3s var(--n-bezier);
|
|
1266
|
+
margin: 0 8px 0 0;
|
|
1267
|
+
`)]),O("action",`
|
|
1268
|
+
display: flex;
|
|
1269
|
+
justify-content: flex-end;
|
|
1270
|
+
`,[B("&:not(:first-child)","margin-top: 8px"),M("button",[B("&:not(:last-child)","margin-right: 8px;")])])]),WT=Object.assign(Object.assign(Object.assign({},_e.props),$h),{positiveText:String,negativeText:String,showIcon:{type:Boolean,default:!0},trigger:{type:String,default:"click"},positiveButtonProps:Object,negativeButtonProps:Object,onPositiveClick:Function,onNegativeClick:Function}),jT=ge({name:"Popconfirm",props:WT,slots:Object,__popover__:!0,setup(e){const{mergedClsPrefixRef:t}=tt(),o=_e("Popconfirm","-popconfirm",DT,TP,e,t),r=W(null);function n(l){var s;if(!(!((s=r.value)===null||s===void 0)&&s.getMergedShow()))return;const{onPositiveClick:d,"onUpdate:show":c}=e;Promise.resolve(d?d(l):!0).then(u=>{var h;u!==!1&&((h=r.value)===null||h===void 0||h.setShow(!1),c&&je(c,!1))})}function i(l){var s;if(!(!((s=r.value)===null||s===void 0)&&s.getMergedShow()))return;const{onNegativeClick:d,"onUpdate:show":c}=e;Promise.resolve(d?d(l):!0).then(u=>{var h;u!==!1&&((h=r.value)===null||h===void 0||h.setShow(!1),c&&je(c,!1))})}return $t(mp,{mergedThemeRef:o,mergedClsPrefixRef:t,props:e}),{setShow(l){var s;(s=r.value)===null||s===void 0||s.setShow(l)},syncPosition(){var l;(l=r.value)===null||l===void 0||l.syncPosition()},mergedTheme:o,popoverInstRef:r,handlePositiveClick:n,handleNegativeClick:i}},render(){const{$slots:e,$props:t,mergedTheme:o}=this;return m(BS,Object.assign({},ss(t,hd),{theme:o.peers.Popover,themeOverrides:o.peerOverrides.Popover,internalExtraClass:["popconfirm"],ref:"popoverInstRef"}),{trigger:e.trigger,default:()=>{const r=Mf(t,hd);return m(LT,Object.assign({},r,{onPositiveClick:this.handlePositiveClick,onNegativeClick:this.handleNegativeClick}),e)}})}}),VT={name:"QrCode",common:te,self:e=>({borderRadius:e.borderRadius})},NT={name:"Skeleton",common:te,self(e){const{heightSmall:t,heightMedium:o,heightLarge:r,borderRadius:n}=e;return{color:"rgba(255, 255, 255, 0.12)",colorEnd:"rgba(255, 255, 255, 0.18)",borderRadius:n,heightSmall:t,heightMedium:o,heightLarge:r}}},UT=B([B("@keyframes spin-rotate",`
|
|
1271
|
+
from {
|
|
1272
|
+
transform: rotate(0);
|
|
1273
|
+
}
|
|
1274
|
+
to {
|
|
1275
|
+
transform: rotate(360deg);
|
|
1276
|
+
}
|
|
1277
|
+
`),M("spin-container",`
|
|
1278
|
+
position: relative;
|
|
1279
|
+
`,[M("spin-body",`
|
|
1280
|
+
position: absolute;
|
|
1281
|
+
top: 50%;
|
|
1282
|
+
left: 50%;
|
|
1283
|
+
transform: translateX(-50%) translateY(-50%);
|
|
1284
|
+
`,[ph()])]),M("spin-body",`
|
|
1285
|
+
display: inline-flex;
|
|
1286
|
+
align-items: center;
|
|
1287
|
+
justify-content: center;
|
|
1288
|
+
flex-direction: column;
|
|
1289
|
+
`),M("spin",`
|
|
1290
|
+
display: inline-flex;
|
|
1291
|
+
height: var(--n-size);
|
|
1292
|
+
width: var(--n-size);
|
|
1293
|
+
font-size: var(--n-size);
|
|
1294
|
+
color: var(--n-color);
|
|
1295
|
+
`,[D("rotate",`
|
|
1296
|
+
animation: spin-rotate 2s linear infinite;
|
|
1297
|
+
`)]),M("spin-description",`
|
|
1298
|
+
display: inline-block;
|
|
1299
|
+
font-size: var(--n-font-size);
|
|
1300
|
+
color: var(--n-text-color);
|
|
1301
|
+
transition: color .3s var(--n-bezier);
|
|
1302
|
+
margin-top: 8px;
|
|
1303
|
+
`),M("spin-content",`
|
|
1304
|
+
opacity: 1;
|
|
1305
|
+
transition: opacity .3s var(--n-bezier);
|
|
1306
|
+
pointer-events: all;
|
|
1307
|
+
`,[D("spinning",`
|
|
1308
|
+
user-select: none;
|
|
1309
|
+
-webkit-user-select: none;
|
|
1310
|
+
pointer-events: none;
|
|
1311
|
+
opacity: var(--n-opacity-spinning);
|
|
1312
|
+
`)])]),GT={small:20,medium:18,large:16},KT=Object.assign(Object.assign({},_e.props),{contentClass:String,contentStyle:[Object,String],description:String,stroke:String,size:{type:[String,Number],default:"medium"},show:{type:Boolean,default:!0},strokeWidth:Number,rotate:{type:Boolean,default:!0},spinning:{type:Boolean,validator:()=>!0,default:void 0},delay:Number}),bp=ge({name:"Spin",props:KT,slots:Object,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=tt(e),r=_e("Spin","-spin",UT,HP,e,t),n=N(()=>{const{size:s}=e,{common:{cubicBezierEaseInOut:d},self:c}=r.value,{opacitySpinning:u,color:h,textColor:f}=c,p=typeof s=="number"?ab(s):c[ae("size",s)];return{"--n-bezier":d,"--n-opacity-spinning":u,"--n-size":p,"--n-color":h,"--n-text-color":f}}),i=o?ht("spin",N(()=>{const{size:s}=e;return typeof s=="number"?String(s):s[0]}),n,e):void 0,a=ti(e,["spinning","show"]),l=W(!1);return So(s=>{let d;if(a.value){const{delay:c}=e;if(c){d=window.setTimeout(()=>{l.value=!0},c),s(()=>{clearTimeout(d)});return}}l.value=a.value}),{mergedClsPrefix:t,active:l,mergedStrokeWidth:N(()=>{const{strokeWidth:s}=e;if(s!==void 0)return s;const{size:d}=e;return GT[typeof d=="number"?"medium":d]}),cssVars:o?void 0:n,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t;const{$slots:o,mergedClsPrefix:r,description:n}=this,i=o.icon&&this.rotate,a=(n||o.description)&&m("div",{class:`${r}-spin-description`},n||((e=o.description)===null||e===void 0?void 0:e.call(o))),l=o.icon?m("div",{class:[`${r}-spin-body`,this.themeClass]},m("div",{class:[`${r}-spin`,i&&`${r}-spin--rotate`],style:o.default?"":this.cssVars},o.icon()),a):m("div",{class:[`${r}-spin-body`,this.themeClass]},m(mi,{clsPrefix:r,style:o.default?"":this.cssVars,stroke:this.stroke,"stroke-width":this.mergedStrokeWidth,class:`${r}-spin`}),a);return(t=this.onRender)===null||t===void 0||t.call(this),o.default?m("div",{class:[`${r}-spin-container`,this.themeClass],style:this.cssVars},m("div",{class:[`${r}-spin-content`,this.active&&`${r}-spin-content--spinning`,this.contentClass],style:this.contentStyle},o),m(sr,{name:"fade-in-transition"},{default:()=>this.active?l:null})):l}}),qT={name:"Split",common:te},xp="n-tabs",YT={tab:[String,Number,Object,Function],name:{type:[String,Number],required:!0},disabled:Boolean,displayDirective:{type:String,default:"if"},closable:{type:Boolean,default:void 0},tabProps:Object,label:[String,Number,Object,Function]},XT=Object.assign({internalLeftPadded:Boolean,internalAddable:Boolean,internalCreatedByPane:Boolean},ss(YT,["displayDirective"])),il=ge({__TAB__:!0,inheritAttrs:!1,name:"Tab",props:XT,setup(e){const{mergedClsPrefixRef:t,valueRef:o,typeRef:r,closableRef:n,tabStyleRef:i,addTabStyleRef:a,tabClassRef:l,addTabClassRef:s,tabChangeIdRef:d,onBeforeLeaveRef:c,triggerRef:u,handleAdd:h,activateTab:f,handleClose:p}=Le(xp);return{trigger:u,mergedClosable:N(()=>{if(e.internalAddable)return!1;const{closable:g}=e;return g===void 0?n.value:g}),style:i,addStyle:a,tabClass:l,addTabClass:s,clsPrefix:t,value:o,type:r,handleClose(g){g.stopPropagation(),!e.disabled&&p(e.name)},activateTab(){if(e.disabled)return;if(e.internalAddable){h();return}const{name:g}=e,x=++d.id;if(g!==o.value){const{value:v}=c;v?Promise.resolve(v(e.name,o.value)).then(y=>{y&&d.id===x&&f(g)}):f(g)}}}},render(){const{internalAddable:e,clsPrefix:t,name:o,disabled:r,label:n,tab:i,value:a,mergedClosable:l,trigger:s,$slots:{default:d}}=this,c=n??i;return m("div",{class:`${t}-tabs-tab-wrapper`},this.internalLeftPadded?m("div",{class:`${t}-tabs-tab-pad`}):null,m("div",Object.assign({key:o,"data-name":o,"data-disabled":r?!0:void 0},hi({class:[`${t}-tabs-tab`,a===o&&`${t}-tabs-tab--active`,r&&`${t}-tabs-tab--disabled`,l&&`${t}-tabs-tab--closable`,e&&`${t}-tabs-tab--addable`,e?this.addTabClass:this.tabClass],onClick:s==="click"?this.activateTab:void 0,onMouseenter:s==="hover"?this.activateTab:void 0,style:e?this.addStyle:this.style},this.internalCreatedByPane?this.tabProps||{}:this.$attrs)),m("span",{class:`${t}-tabs-tab__label`},e?m(Me,null,m("div",{class:`${t}-tabs-tab__height-placeholder`}," "),m(_o,{clsPrefix:t},{default:()=>m(Yw,null)})):d?d():typeof c=="object"?c:Bf(c??o)),l&&this.type==="card"?m(zl,{clsPrefix:t,class:`${t}-tabs-tab__close`,onClick:this.handleClose,disabled:r}):null))}}),ZT=M("tabs",`
|
|
1313
|
+
box-sizing: border-box;
|
|
1314
|
+
width: 100%;
|
|
1315
|
+
display: flex;
|
|
1316
|
+
flex-direction: column;
|
|
1317
|
+
transition:
|
|
1318
|
+
background-color .3s var(--n-bezier),
|
|
1319
|
+
border-color .3s var(--n-bezier);
|
|
1320
|
+
`,[D("segment-type",[M("tabs-rail",[B("&.transition-disabled",[M("tabs-capsule",`
|
|
1321
|
+
transition: none;
|
|
1322
|
+
`)])])]),D("top",[M("tab-pane",`
|
|
1323
|
+
padding: var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left);
|
|
1324
|
+
`)]),D("left",[M("tab-pane",`
|
|
1325
|
+
padding: var(--n-pane-padding-right) var(--n-pane-padding-bottom) var(--n-pane-padding-left) var(--n-pane-padding-top);
|
|
1326
|
+
`)]),D("left, right",`
|
|
1327
|
+
flex-direction: row;
|
|
1328
|
+
`,[M("tabs-bar",`
|
|
1329
|
+
width: 2px;
|
|
1330
|
+
right: 0;
|
|
1331
|
+
transition:
|
|
1332
|
+
top .2s var(--n-bezier),
|
|
1333
|
+
max-height .2s var(--n-bezier),
|
|
1334
|
+
background-color .3s var(--n-bezier);
|
|
1335
|
+
`),M("tabs-tab",`
|
|
1336
|
+
padding: var(--n-tab-padding-vertical);
|
|
1337
|
+
`)]),D("right",`
|
|
1338
|
+
flex-direction: row-reverse;
|
|
1339
|
+
`,[M("tab-pane",`
|
|
1340
|
+
padding: var(--n-pane-padding-left) var(--n-pane-padding-top) var(--n-pane-padding-right) var(--n-pane-padding-bottom);
|
|
1341
|
+
`),M("tabs-bar",`
|
|
1342
|
+
left: 0;
|
|
1343
|
+
`)]),D("bottom",`
|
|
1344
|
+
flex-direction: column-reverse;
|
|
1345
|
+
justify-content: flex-end;
|
|
1346
|
+
`,[M("tab-pane",`
|
|
1347
|
+
padding: var(--n-pane-padding-bottom) var(--n-pane-padding-right) var(--n-pane-padding-top) var(--n-pane-padding-left);
|
|
1348
|
+
`),M("tabs-bar",`
|
|
1349
|
+
top: 0;
|
|
1350
|
+
`)]),M("tabs-rail",`
|
|
1351
|
+
position: relative;
|
|
1352
|
+
padding: 3px;
|
|
1353
|
+
border-radius: var(--n-tab-border-radius);
|
|
1354
|
+
width: 100%;
|
|
1355
|
+
background-color: var(--n-color-segment);
|
|
1356
|
+
transition: background-color .3s var(--n-bezier);
|
|
1357
|
+
display: flex;
|
|
1358
|
+
align-items: center;
|
|
1359
|
+
`,[M("tabs-capsule",`
|
|
1360
|
+
border-radius: var(--n-tab-border-radius);
|
|
1361
|
+
position: absolute;
|
|
1362
|
+
pointer-events: none;
|
|
1363
|
+
background-color: var(--n-tab-color-segment);
|
|
1364
|
+
box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .08);
|
|
1365
|
+
transition: transform 0.3s var(--n-bezier);
|
|
1366
|
+
`),M("tabs-tab-wrapper",`
|
|
1367
|
+
flex-basis: 0;
|
|
1368
|
+
flex-grow: 1;
|
|
1369
|
+
display: flex;
|
|
1370
|
+
align-items: center;
|
|
1371
|
+
justify-content: center;
|
|
1372
|
+
`,[M("tabs-tab",`
|
|
1373
|
+
overflow: hidden;
|
|
1374
|
+
border-radius: var(--n-tab-border-radius);
|
|
1375
|
+
width: 100%;
|
|
1376
|
+
display: flex;
|
|
1377
|
+
align-items: center;
|
|
1378
|
+
justify-content: center;
|
|
1379
|
+
`,[D("active",`
|
|
1380
|
+
font-weight: var(--n-font-weight-strong);
|
|
1381
|
+
color: var(--n-tab-text-color-active);
|
|
1382
|
+
`),B("&:hover",`
|
|
1383
|
+
color: var(--n-tab-text-color-hover);
|
|
1384
|
+
`)])])]),D("flex",[M("tabs-nav",`
|
|
1385
|
+
width: 100%;
|
|
1386
|
+
position: relative;
|
|
1387
|
+
`,[M("tabs-wrapper",`
|
|
1388
|
+
width: 100%;
|
|
1389
|
+
`,[M("tabs-tab",`
|
|
1390
|
+
margin-right: 0;
|
|
1391
|
+
`)])])]),M("tabs-nav",`
|
|
1392
|
+
box-sizing: border-box;
|
|
1393
|
+
line-height: 1.5;
|
|
1394
|
+
display: flex;
|
|
1395
|
+
transition: border-color .3s var(--n-bezier);
|
|
1396
|
+
`,[O("prefix, suffix",`
|
|
1397
|
+
display: flex;
|
|
1398
|
+
align-items: center;
|
|
1399
|
+
`),O("prefix","padding-right: 16px;"),O("suffix","padding-left: 16px;")]),D("top, bottom",[B(">",[M("tabs-nav",[M("tabs-nav-scroll-wrapper",[B("&::before",`
|
|
1400
|
+
top: 0;
|
|
1401
|
+
bottom: 0;
|
|
1402
|
+
left: 0;
|
|
1403
|
+
width: 20px;
|
|
1404
|
+
`),B("&::after",`
|
|
1405
|
+
top: 0;
|
|
1406
|
+
bottom: 0;
|
|
1407
|
+
right: 0;
|
|
1408
|
+
width: 20px;
|
|
1409
|
+
`),D("shadow-start",[B("&::before",`
|
|
1410
|
+
box-shadow: inset 10px 0 8px -8px rgba(0, 0, 0, .12);
|
|
1411
|
+
`)]),D("shadow-end",[B("&::after",`
|
|
1412
|
+
box-shadow: inset -10px 0 8px -8px rgba(0, 0, 0, .12);
|
|
1413
|
+
`)])])])])]),D("left, right",[M("tabs-nav-scroll-content",`
|
|
1414
|
+
flex-direction: column;
|
|
1415
|
+
`),B(">",[M("tabs-nav",[M("tabs-nav-scroll-wrapper",[B("&::before",`
|
|
1416
|
+
top: 0;
|
|
1417
|
+
left: 0;
|
|
1418
|
+
right: 0;
|
|
1419
|
+
height: 20px;
|
|
1420
|
+
`),B("&::after",`
|
|
1421
|
+
bottom: 0;
|
|
1422
|
+
left: 0;
|
|
1423
|
+
right: 0;
|
|
1424
|
+
height: 20px;
|
|
1425
|
+
`),D("shadow-start",[B("&::before",`
|
|
1426
|
+
box-shadow: inset 0 10px 8px -8px rgba(0, 0, 0, .12);
|
|
1427
|
+
`)]),D("shadow-end",[B("&::after",`
|
|
1428
|
+
box-shadow: inset 0 -10px 8px -8px rgba(0, 0, 0, .12);
|
|
1429
|
+
`)])])])])]),M("tabs-nav-scroll-wrapper",`
|
|
1430
|
+
flex: 1;
|
|
1431
|
+
position: relative;
|
|
1432
|
+
overflow: hidden;
|
|
1433
|
+
`,[M("tabs-nav-y-scroll",`
|
|
1434
|
+
height: 100%;
|
|
1435
|
+
width: 100%;
|
|
1436
|
+
overflow-y: auto;
|
|
1437
|
+
scrollbar-width: none;
|
|
1438
|
+
`,[B("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
|
|
1439
|
+
width: 0;
|
|
1440
|
+
height: 0;
|
|
1441
|
+
display: none;
|
|
1442
|
+
`)]),B("&::before, &::after",`
|
|
1443
|
+
transition: box-shadow .3s var(--n-bezier);
|
|
1444
|
+
pointer-events: none;
|
|
1445
|
+
content: "";
|
|
1446
|
+
position: absolute;
|
|
1447
|
+
z-index: 1;
|
|
1448
|
+
`)]),M("tabs-nav-scroll-content",`
|
|
1449
|
+
display: flex;
|
|
1450
|
+
position: relative;
|
|
1451
|
+
min-width: 100%;
|
|
1452
|
+
min-height: 100%;
|
|
1453
|
+
width: fit-content;
|
|
1454
|
+
box-sizing: border-box;
|
|
1455
|
+
`),M("tabs-wrapper",`
|
|
1456
|
+
display: inline-flex;
|
|
1457
|
+
flex-wrap: nowrap;
|
|
1458
|
+
position: relative;
|
|
1459
|
+
`),M("tabs-tab-wrapper",`
|
|
1460
|
+
display: flex;
|
|
1461
|
+
flex-wrap: nowrap;
|
|
1462
|
+
flex-shrink: 0;
|
|
1463
|
+
flex-grow: 0;
|
|
1464
|
+
`),M("tabs-tab",`
|
|
1465
|
+
cursor: pointer;
|
|
1466
|
+
white-space: nowrap;
|
|
1467
|
+
flex-wrap: nowrap;
|
|
1468
|
+
display: inline-flex;
|
|
1469
|
+
align-items: center;
|
|
1470
|
+
color: var(--n-tab-text-color);
|
|
1471
|
+
font-size: var(--n-tab-font-size);
|
|
1472
|
+
background-clip: padding-box;
|
|
1473
|
+
padding: var(--n-tab-padding);
|
|
1474
|
+
transition:
|
|
1475
|
+
box-shadow .3s var(--n-bezier),
|
|
1476
|
+
color .3s var(--n-bezier),
|
|
1477
|
+
background-color .3s var(--n-bezier),
|
|
1478
|
+
border-color .3s var(--n-bezier);
|
|
1479
|
+
`,[D("disabled",{cursor:"not-allowed"}),O("close",`
|
|
1480
|
+
margin-left: 6px;
|
|
1481
|
+
transition:
|
|
1482
|
+
background-color .3s var(--n-bezier),
|
|
1483
|
+
color .3s var(--n-bezier);
|
|
1484
|
+
`),O("label",`
|
|
1485
|
+
display: flex;
|
|
1486
|
+
align-items: center;
|
|
1487
|
+
z-index: 1;
|
|
1488
|
+
`)]),M("tabs-bar",`
|
|
1489
|
+
position: absolute;
|
|
1490
|
+
bottom: 0;
|
|
1491
|
+
height: 2px;
|
|
1492
|
+
border-radius: 1px;
|
|
1493
|
+
background-color: var(--n-bar-color);
|
|
1494
|
+
transition:
|
|
1495
|
+
left .2s var(--n-bezier),
|
|
1496
|
+
max-width .2s var(--n-bezier),
|
|
1497
|
+
opacity .3s var(--n-bezier),
|
|
1498
|
+
background-color .3s var(--n-bezier);
|
|
1499
|
+
`,[B("&.transition-disabled",`
|
|
1500
|
+
transition: none;
|
|
1501
|
+
`),D("disabled",`
|
|
1502
|
+
background-color: var(--n-tab-text-color-disabled)
|
|
1503
|
+
`)]),M("tabs-pane-wrapper",`
|
|
1504
|
+
position: relative;
|
|
1505
|
+
overflow: hidden;
|
|
1506
|
+
transition: max-height .2s var(--n-bezier);
|
|
1507
|
+
`),M("tab-pane",`
|
|
1508
|
+
color: var(--n-pane-text-color);
|
|
1509
|
+
width: 100%;
|
|
1510
|
+
transition:
|
|
1511
|
+
color .3s var(--n-bezier),
|
|
1512
|
+
background-color .3s var(--n-bezier),
|
|
1513
|
+
opacity .2s var(--n-bezier);
|
|
1514
|
+
left: 0;
|
|
1515
|
+
right: 0;
|
|
1516
|
+
top: 0;
|
|
1517
|
+
`,[B("&.next-transition-leave-active, &.prev-transition-leave-active, &.next-transition-enter-active, &.prev-transition-enter-active",`
|
|
1518
|
+
transition:
|
|
1519
|
+
color .3s var(--n-bezier),
|
|
1520
|
+
background-color .3s var(--n-bezier),
|
|
1521
|
+
transform .2s var(--n-bezier),
|
|
1522
|
+
opacity .2s var(--n-bezier);
|
|
1523
|
+
`),B("&.next-transition-leave-active, &.prev-transition-leave-active",`
|
|
1524
|
+
position: absolute;
|
|
1525
|
+
`),B("&.next-transition-enter-from, &.prev-transition-leave-to",`
|
|
1526
|
+
transform: translateX(32px);
|
|
1527
|
+
opacity: 0;
|
|
1528
|
+
`),B("&.next-transition-leave-to, &.prev-transition-enter-from",`
|
|
1529
|
+
transform: translateX(-32px);
|
|
1530
|
+
opacity: 0;
|
|
1531
|
+
`),B("&.next-transition-leave-from, &.next-transition-enter-to, &.prev-transition-leave-from, &.prev-transition-enter-to",`
|
|
1532
|
+
transform: translateX(0);
|
|
1533
|
+
opacity: 1;
|
|
1534
|
+
`)]),M("tabs-tab-pad",`
|
|
1535
|
+
box-sizing: border-box;
|
|
1536
|
+
width: var(--n-tab-gap);
|
|
1537
|
+
flex-grow: 0;
|
|
1538
|
+
flex-shrink: 0;
|
|
1539
|
+
`),D("line-type, bar-type",[M("tabs-tab",`
|
|
1540
|
+
font-weight: var(--n-tab-font-weight);
|
|
1541
|
+
box-sizing: border-box;
|
|
1542
|
+
vertical-align: bottom;
|
|
1543
|
+
`,[B("&:hover",{color:"var(--n-tab-text-color-hover)"}),D("active",`
|
|
1544
|
+
color: var(--n-tab-text-color-active);
|
|
1545
|
+
font-weight: var(--n-tab-font-weight-active);
|
|
1546
|
+
`),D("disabled",{color:"var(--n-tab-text-color-disabled)"})])]),M("tabs-nav",[D("line-type",[D("top",[O("prefix, suffix",`
|
|
1547
|
+
border-bottom: 1px solid var(--n-tab-border-color);
|
|
1548
|
+
`),M("tabs-nav-scroll-content",`
|
|
1549
|
+
border-bottom: 1px solid var(--n-tab-border-color);
|
|
1550
|
+
`),M("tabs-bar",`
|
|
1551
|
+
bottom: -1px;
|
|
1552
|
+
`)]),D("left",[O("prefix, suffix",`
|
|
1553
|
+
border-right: 1px solid var(--n-tab-border-color);
|
|
1554
|
+
`),M("tabs-nav-scroll-content",`
|
|
1555
|
+
border-right: 1px solid var(--n-tab-border-color);
|
|
1556
|
+
`),M("tabs-bar",`
|
|
1557
|
+
right: -1px;
|
|
1558
|
+
`)]),D("right",[O("prefix, suffix",`
|
|
1559
|
+
border-left: 1px solid var(--n-tab-border-color);
|
|
1560
|
+
`),M("tabs-nav-scroll-content",`
|
|
1561
|
+
border-left: 1px solid var(--n-tab-border-color);
|
|
1562
|
+
`),M("tabs-bar",`
|
|
1563
|
+
left: -1px;
|
|
1564
|
+
`)]),D("bottom",[O("prefix, suffix",`
|
|
1565
|
+
border-top: 1px solid var(--n-tab-border-color);
|
|
1566
|
+
`),M("tabs-nav-scroll-content",`
|
|
1567
|
+
border-top: 1px solid var(--n-tab-border-color);
|
|
1568
|
+
`),M("tabs-bar",`
|
|
1569
|
+
top: -1px;
|
|
1570
|
+
`)]),O("prefix, suffix",`
|
|
1571
|
+
transition: border-color .3s var(--n-bezier);
|
|
1572
|
+
`),M("tabs-nav-scroll-content",`
|
|
1573
|
+
transition: border-color .3s var(--n-bezier);
|
|
1574
|
+
`),M("tabs-bar",`
|
|
1575
|
+
border-radius: 0;
|
|
1576
|
+
`)]),D("card-type",[O("prefix, suffix",`
|
|
1577
|
+
transition: border-color .3s var(--n-bezier);
|
|
1578
|
+
`),M("tabs-pad",`
|
|
1579
|
+
flex-grow: 1;
|
|
1580
|
+
transition: border-color .3s var(--n-bezier);
|
|
1581
|
+
`),M("tabs-tab-pad",`
|
|
1582
|
+
transition: border-color .3s var(--n-bezier);
|
|
1583
|
+
`),M("tabs-tab",`
|
|
1584
|
+
font-weight: var(--n-tab-font-weight);
|
|
1585
|
+
border: 1px solid var(--n-tab-border-color);
|
|
1586
|
+
background-color: var(--n-tab-color);
|
|
1587
|
+
box-sizing: border-box;
|
|
1588
|
+
position: relative;
|
|
1589
|
+
vertical-align: bottom;
|
|
1590
|
+
display: flex;
|
|
1591
|
+
justify-content: space-between;
|
|
1592
|
+
font-size: var(--n-tab-font-size);
|
|
1593
|
+
color: var(--n-tab-text-color);
|
|
1594
|
+
`,[D("addable",`
|
|
1595
|
+
padding-left: 8px;
|
|
1596
|
+
padding-right: 8px;
|
|
1597
|
+
font-size: 16px;
|
|
1598
|
+
justify-content: center;
|
|
1599
|
+
`,[O("height-placeholder",`
|
|
1600
|
+
width: 0;
|
|
1601
|
+
font-size: var(--n-tab-font-size);
|
|
1602
|
+
`),St("disabled",[B("&:hover",`
|
|
1603
|
+
color: var(--n-tab-text-color-hover);
|
|
1604
|
+
`)])]),D("closable","padding-right: 8px;"),D("active",`
|
|
1605
|
+
background-color: #0000;
|
|
1606
|
+
font-weight: var(--n-tab-font-weight-active);
|
|
1607
|
+
color: var(--n-tab-text-color-active);
|
|
1608
|
+
`),D("disabled","color: var(--n-tab-text-color-disabled);")])]),D("left, right",`
|
|
1609
|
+
flex-direction: column;
|
|
1610
|
+
`,[O("prefix, suffix",`
|
|
1611
|
+
padding: var(--n-tab-padding-vertical);
|
|
1612
|
+
`),M("tabs-wrapper",`
|
|
1613
|
+
flex-direction: column;
|
|
1614
|
+
`),M("tabs-tab-wrapper",`
|
|
1615
|
+
flex-direction: column;
|
|
1616
|
+
`,[M("tabs-tab-pad",`
|
|
1617
|
+
height: var(--n-tab-gap-vertical);
|
|
1618
|
+
width: 100%;
|
|
1619
|
+
`)])]),D("top",[D("card-type",[M("tabs-scroll-padding","border-bottom: 1px solid var(--n-tab-border-color);"),O("prefix, suffix",`
|
|
1620
|
+
border-bottom: 1px solid var(--n-tab-border-color);
|
|
1621
|
+
`),M("tabs-tab",`
|
|
1622
|
+
border-top-left-radius: var(--n-tab-border-radius);
|
|
1623
|
+
border-top-right-radius: var(--n-tab-border-radius);
|
|
1624
|
+
`,[D("active",`
|
|
1625
|
+
border-bottom: 1px solid #0000;
|
|
1626
|
+
`)]),M("tabs-tab-pad",`
|
|
1627
|
+
border-bottom: 1px solid var(--n-tab-border-color);
|
|
1628
|
+
`),M("tabs-pad",`
|
|
1629
|
+
border-bottom: 1px solid var(--n-tab-border-color);
|
|
1630
|
+
`)])]),D("left",[D("card-type",[M("tabs-scroll-padding","border-right: 1px solid var(--n-tab-border-color);"),O("prefix, suffix",`
|
|
1631
|
+
border-right: 1px solid var(--n-tab-border-color);
|
|
1632
|
+
`),M("tabs-tab",`
|
|
1633
|
+
border-top-left-radius: var(--n-tab-border-radius);
|
|
1634
|
+
border-bottom-left-radius: var(--n-tab-border-radius);
|
|
1635
|
+
`,[D("active",`
|
|
1636
|
+
border-right: 1px solid #0000;
|
|
1637
|
+
`)]),M("tabs-tab-pad",`
|
|
1638
|
+
border-right: 1px solid var(--n-tab-border-color);
|
|
1639
|
+
`),M("tabs-pad",`
|
|
1640
|
+
border-right: 1px solid var(--n-tab-border-color);
|
|
1641
|
+
`)])]),D("right",[D("card-type",[M("tabs-scroll-padding","border-left: 1px solid var(--n-tab-border-color);"),O("prefix, suffix",`
|
|
1642
|
+
border-left: 1px solid var(--n-tab-border-color);
|
|
1643
|
+
`),M("tabs-tab",`
|
|
1644
|
+
border-top-right-radius: var(--n-tab-border-radius);
|
|
1645
|
+
border-bottom-right-radius: var(--n-tab-border-radius);
|
|
1646
|
+
`,[D("active",`
|
|
1647
|
+
border-left: 1px solid #0000;
|
|
1648
|
+
`)]),M("tabs-tab-pad",`
|
|
1649
|
+
border-left: 1px solid var(--n-tab-border-color);
|
|
1650
|
+
`),M("tabs-pad",`
|
|
1651
|
+
border-left: 1px solid var(--n-tab-border-color);
|
|
1652
|
+
`)])]),D("bottom",[D("card-type",[M("tabs-scroll-padding","border-top: 1px solid var(--n-tab-border-color);"),O("prefix, suffix",`
|
|
1653
|
+
border-top: 1px solid var(--n-tab-border-color);
|
|
1654
|
+
`),M("tabs-tab",`
|
|
1655
|
+
border-bottom-left-radius: var(--n-tab-border-radius);
|
|
1656
|
+
border-bottom-right-radius: var(--n-tab-border-radius);
|
|
1657
|
+
`,[D("active",`
|
|
1658
|
+
border-top: 1px solid #0000;
|
|
1659
|
+
`)]),M("tabs-tab-pad",`
|
|
1660
|
+
border-top: 1px solid var(--n-tab-border-color);
|
|
1661
|
+
`),M("tabs-pad",`
|
|
1662
|
+
border-top: 1px solid var(--n-tab-border-color);
|
|
1663
|
+
`)])])])]),aa=dh,JT=Object.assign(Object.assign({},_e.props),{value:[String,Number],defaultValue:[String,Number],trigger:{type:String,default:"click"},type:{type:String,default:"bar"},closable:Boolean,justifyContent:String,size:{type:String,default:"medium"},placement:{type:String,default:"top"},tabStyle:[String,Object],tabClass:String,addTabStyle:[String,Object],addTabClass:String,barWidth:Number,paneClass:String,paneStyle:[String,Object],paneWrapperClass:String,paneWrapperStyle:[String,Object],addable:[Boolean,Object],tabsPadding:{type:Number,default:0},animated:Boolean,onBeforeLeave:Function,onAdd:Function,"onUpdate:value":[Function,Array],onUpdateValue:[Function,Array],onClose:[Function,Array],labelSize:String,activeName:[String,Number],onActiveNameChange:[Function,Array]}),QT=ge({name:"Tabs",props:JT,slots:Object,setup(e,{slots:t}){var o,r,n,i;const{mergedClsPrefixRef:a,inlineThemeDisabled:l}=tt(e),s=_e("Tabs","-tabs",ZT,qP,e,a),d=W(null),c=W(null),u=W(null),h=W(null),f=W(null),p=W(null),g=W(!0),x=W(!0),v=ti(e,["labelSize","size"]),y=ti(e,["activeName","value"]),I=W((r=(o=y.value)!==null&&o!==void 0?o:e.defaultValue)!==null&&r!==void 0?r:t.default?(i=(n=zr(t.default())[0])===null||n===void 0?void 0:n.props)===null||i===void 0?void 0:i.name:null),$=yl(y,I),E={id:0},P=N(()=>{if(!(!e.justifyContent||e.type==="card"))return{display:"flex",justifyContent:e.justifyContent}});Xe($,()=>{E.id=0,L(),R()});function b(){var T;const{value:S}=$;return S===null?null:(T=d.value)===null||T===void 0?void 0:T.querySelector(`[data-name="${S}"]`)}function A(T){if(e.type==="card")return;const{value:S}=c;if(!S)return;const j=S.style.opacity==="0";if(T){const V=`${a.value}-tabs-bar--disabled`,{barWidth:le,placement:fe}=e;if(T.dataset.disabled==="true"?S.classList.add(V):S.classList.remove(V),["top","bottom"].includes(fe)){if(k(["top","maxHeight","height"]),typeof le=="number"&&T.offsetWidth>=le){const ye=Math.floor((T.offsetWidth-le)/2)+T.offsetLeft;S.style.left=`${ye}px`,S.style.maxWidth=`${le}px`}else S.style.left=`${T.offsetLeft}px`,S.style.maxWidth=`${T.offsetWidth}px`;S.style.width="8192px",j&&(S.style.transition="none"),S.offsetWidth,j&&(S.style.transition="",S.style.opacity="1")}else{if(k(["left","maxWidth","width"]),typeof le=="number"&&T.offsetHeight>=le){const ye=Math.floor((T.offsetHeight-le)/2)+T.offsetTop;S.style.top=`${ye}px`,S.style.maxHeight=`${le}px`}else S.style.top=`${T.offsetTop}px`,S.style.maxHeight=`${T.offsetHeight}px`;S.style.height="8192px",j&&(S.style.transition="none"),S.offsetHeight,j&&(S.style.transition="",S.style.opacity="1")}}}function _(){if(e.type==="card")return;const{value:T}=c;T&&(T.style.opacity="0")}function k(T){const{value:S}=c;if(S)for(const j of T)S.style[j]=""}function L(){if(e.type==="card")return;const T=b();T?A(T):_()}function R(){var T;const S=(T=f.value)===null||T===void 0?void 0:T.$el;if(!S)return;const j=b();if(!j)return;const{scrollLeft:V,offsetWidth:le}=S,{offsetLeft:fe,offsetWidth:ye}=j;V>fe?S.scrollTo({top:0,left:fe,behavior:"smooth"}):fe+ye>V+le&&S.scrollTo({top:0,left:fe+ye-le,behavior:"smooth"})}const ie=W(null);let ce=0,U=null;function oe(T){const S=ie.value;if(S){ce=T.getBoundingClientRect().height;const j=`${ce}px`,V=()=>{S.style.height=j,S.style.maxHeight=j};U?(V(),U(),U=null):U=V}}function Q(T){const S=ie.value;if(S){const j=T.getBoundingClientRect().height,V=()=>{document.body.offsetHeight,S.style.maxHeight=`${j}px`,S.style.height=`${Math.max(ce,j)}px`};U?(U(),U=null,V()):U=V}}function H(){const T=ie.value;if(T){T.style.maxHeight="",T.style.height="";const{paneWrapperStyle:S}=e;if(typeof S=="string")T.style.cssText=S;else if(S){const{maxHeight:j,height:V}=S;j!==void 0&&(T.style.maxHeight=j),V!==void 0&&(T.style.height=V)}}}const ne={value:[]},ue=W("next");function me(T){const S=$.value;let j="next";for(const V of ne.value){if(V===S)break;if(V===T){j="prev";break}}ue.value=j,xe(T)}function xe(T){const{onActiveNameChange:S,onUpdateValue:j,"onUpdate:value":V}=e;S&&je(S,T),j&&je(j,T),V&&je(V,T),I.value=T}function Ee(T){const{onClose:S}=e;S&&je(S,T)}function Ae(){const{value:T}=c;if(!T)return;const S="transition-disabled";T.classList.add(S),L(),T.classList.remove(S)}const We=W(null);function $e({transitionDisabled:T}){const S=d.value;if(!S)return;T&&S.classList.add("transition-disabled");const j=b();j&&We.value&&(We.value.style.width=`${j.offsetWidth}px`,We.value.style.height=`${j.offsetHeight}px`,We.value.style.transform=`translateX(${j.offsetLeft-ei(getComputedStyle(S).paddingLeft)}px)`,T&&We.value.offsetWidth),T&&S.classList.remove("transition-disabled")}Xe([$],()=>{e.type==="segment"&&lo(()=>{$e({transitionDisabled:!1})})}),Et(()=>{e.type==="segment"&&$e({transitionDisabled:!0})});let it=0;function Pt(T){var S;if(T.contentRect.width===0&&T.contentRect.height===0||it===T.contentRect.width)return;it=T.contentRect.width;const{type:j}=e;if((j==="line"||j==="bar")&&Ae(),j!=="segment"){const{placement:V}=e;F((V==="top"||V==="bottom"?(S=f.value)===null||S===void 0?void 0:S.$el:p.value)||null)}}const ze=aa(Pt,64);Xe([()=>e.justifyContent,()=>e.size],()=>{lo(()=>{const{type:T}=e;(T==="line"||T==="bar")&&Ae()})});const Qe=W(!1);function Tt(T){var S;const{target:j,contentRect:{width:V,height:le}}=T,fe=j.parentElement.parentElement.offsetWidth,ye=j.parentElement.parentElement.offsetHeight,{placement:Re}=e;if(!Qe.value)Re==="top"||Re==="bottom"?fe<V&&(Qe.value=!0):ye<le&&(Qe.value=!0);else{const{value:Ie}=h;if(!Ie)return;Re==="top"||Re==="bottom"?fe-V>Ie.$el.offsetWidth&&(Qe.value=!1):ye-le>Ie.$el.offsetHeight&&(Qe.value=!1)}F(((S=f.value)===null||S===void 0?void 0:S.$el)||null)}const C=aa(Tt,64);function w(){const{onAdd:T}=e;T&&T(),lo(()=>{const S=b(),{value:j}=f;!S||!j||j.scrollTo({left:S.offsetLeft,top:0,behavior:"smooth"})})}function F(T){if(!T)return;const{placement:S}=e;if(S==="top"||S==="bottom"){const{scrollLeft:j,scrollWidth:V,offsetWidth:le}=T;g.value=j<=0,x.value=j+le>=V}else{const{scrollTop:j,scrollHeight:V,offsetHeight:le}=T;g.value=j<=0,x.value=j+le>=V}}const Y=aa(T=>{F(T.target)},64);$t(xp,{triggerRef:Be(e,"trigger"),tabStyleRef:Be(e,"tabStyle"),tabClassRef:Be(e,"tabClass"),addTabStyleRef:Be(e,"addTabStyle"),addTabClassRef:Be(e,"addTabClass"),paneClassRef:Be(e,"paneClass"),paneStyleRef:Be(e,"paneStyle"),mergedClsPrefixRef:a,typeRef:Be(e,"type"),closableRef:Be(e,"closable"),valueRef:$,tabChangeIdRef:E,onBeforeLeaveRef:Be(e,"onBeforeLeave"),activateTab:me,handleClose:Ee,handleAdd:w}),uf(()=>{L(),R()}),So(()=>{const{value:T}=u;if(!T)return;const{value:S}=a,j=`${S}-tabs-nav-scroll-wrapper--shadow-start`,V=`${S}-tabs-nav-scroll-wrapper--shadow-end`;g.value?T.classList.remove(j):T.classList.add(j),x.value?T.classList.remove(V):T.classList.add(V)});const G={syncBarPosition:()=>{L()}},q=()=>{$e({transitionDisabled:!0})},re=N(()=>{const{value:T}=v,{type:S}=e,j={card:"Card",bar:"Bar",line:"Line",segment:"Segment"}[S],V=`${T}${j}`,{self:{barColor:le,closeIconColor:fe,closeIconColorHover:ye,closeIconColorPressed:Re,tabColor:Ie,tabBorderColor:lt,paneTextColor:ct,tabFontWeight:vt,tabBorderRadius:bt,tabFontWeightActive:Zt,colorSegment:Vt,fontWeightStrong:xt,tabColorSegment:X,closeSize:he,closeIconSize:Ce,closeColorHover:Ue,closeColorPressed:ot,closeBorderRadius:Ct,[ae("panePadding",T)]:yt,[ae("tabPadding",V)]:qe,[ae("tabPaddingVertical",V)]:wt,[ae("tabGap",V)]:Jt,[ae("tabGap",`${V}Vertical`)]:Or,[ae("tabTextColor",S)]:bn,[ae("tabTextColorActive",S)]:Ko,[ae("tabTextColorHover",S)]:qo,[ae("tabTextColorDisabled",S)]:xn,[ae("tabFontSize",T)]:Cn},common:{cubicBezierEaseInOut:Lr}}=s.value;return{"--n-bezier":Lr,"--n-color-segment":Vt,"--n-bar-color":le,"--n-tab-font-size":Cn,"--n-tab-text-color":bn,"--n-tab-text-color-active":Ko,"--n-tab-text-color-disabled":xn,"--n-tab-text-color-hover":qo,"--n-pane-text-color":ct,"--n-tab-border-color":lt,"--n-tab-border-radius":bt,"--n-close-size":he,"--n-close-icon-size":Ce,"--n-close-color-hover":Ue,"--n-close-color-pressed":ot,"--n-close-border-radius":Ct,"--n-close-icon-color":fe,"--n-close-icon-color-hover":ye,"--n-close-icon-color-pressed":Re,"--n-tab-color":Ie,"--n-tab-font-weight":vt,"--n-tab-font-weight-active":Zt,"--n-tab-padding":qe,"--n-tab-padding-vertical":wt,"--n-tab-gap":Jt,"--n-tab-gap-vertical":Or,"--n-pane-padding-left":to(yt,"left"),"--n-pane-padding-right":to(yt,"right"),"--n-pane-padding-top":to(yt,"top"),"--n-pane-padding-bottom":to(yt,"bottom"),"--n-font-weight-strong":xt,"--n-tab-color-segment":X}}),ee=l?ht("tabs",N(()=>`${v.value[0]}${e.type[0]}`),re,e):void 0;return Object.assign({mergedClsPrefix:a,mergedValue:$,renderedNames:new Set,segmentCapsuleElRef:We,tabsPaneWrapperRef:ie,tabsElRef:d,barElRef:c,addTabInstRef:h,xScrollInstRef:f,scrollWrapperElRef:u,addTabFixed:Qe,tabWrapperStyle:P,handleNavResize:ze,mergedSize:v,handleScroll:Y,handleTabsResize:C,cssVars:l?void 0:re,themeClass:ee==null?void 0:ee.themeClass,animationDirection:ue,renderNameListRef:ne,yScrollElRef:p,handleSegmentResize:q,onAnimationBeforeLeave:oe,onAnimationEnter:Q,onAnimationAfterEnter:H,onRender:ee==null?void 0:ee.onRender},G)},render(){const{mergedClsPrefix:e,type:t,placement:o,addTabFixed:r,addable:n,mergedSize:i,renderNameListRef:a,onRender:l,paneWrapperClass:s,paneWrapperStyle:d,$slots:{default:c,prefix:u,suffix:h}}=this;l==null||l();const f=c?zr(c()).filter(E=>E.type.__TAB_PANE__===!0):[],p=c?zr(c()).filter(E=>E.type.__TAB__===!0):[],g=!p.length,x=t==="card",v=t==="segment",y=!x&&!v&&this.justifyContent;a.value=[];const I=()=>{const E=m("div",{style:this.tabWrapperStyle,class:`${e}-tabs-wrapper`},y?null:m("div",{class:`${e}-tabs-scroll-padding`,style:o==="top"||o==="bottom"?{width:`${this.tabsPadding}px`}:{height:`${this.tabsPadding}px`}}),g?f.map((P,b)=>(a.value.push(P.props.name),sa(m(il,Object.assign({},P.props,{internalCreatedByPane:!0,internalLeftPadded:b!==0&&(!y||y==="center"||y==="start"||y==="end")}),P.children?{default:P.children.tab}:void 0)))):p.map((P,b)=>(a.value.push(P.props.name),sa(b!==0&&!y?md(P):P))),!r&&n&&x?gd(n,(g?f.length:p.length)!==0):null,y?null:m("div",{class:`${e}-tabs-scroll-padding`,style:{width:`${this.tabsPadding}px`}}));return m("div",{ref:"tabsElRef",class:`${e}-tabs-nav-scroll-content`},x&&n?m(nn,{onResize:this.handleTabsResize},{default:()=>E}):E,x?m("div",{class:`${e}-tabs-pad`}):null,x?null:m("div",{ref:"barElRef",class:`${e}-tabs-bar`}))},$=v?"top":o;return m("div",{class:[`${e}-tabs`,this.themeClass,`${e}-tabs--${t}-type`,`${e}-tabs--${i}-size`,y&&`${e}-tabs--flex`,`${e}-tabs--${$}`],style:this.cssVars},m("div",{class:[`${e}-tabs-nav--${t}-type`,`${e}-tabs-nav--${$}`,`${e}-tabs-nav`]},dt(u,E=>E&&m("div",{class:`${e}-tabs-nav__prefix`},E)),v?m(nn,{onResize:this.handleSegmentResize},{default:()=>m("div",{class:`${e}-tabs-rail`,ref:"tabsElRef"},m("div",{class:`${e}-tabs-capsule`,ref:"segmentCapsuleElRef"},m("div",{class:`${e}-tabs-wrapper`},m("div",{class:`${e}-tabs-tab`}))),g?f.map((E,P)=>(a.value.push(E.props.name),m(il,Object.assign({},E.props,{internalCreatedByPane:!0,internalLeftPadded:P!==0}),E.children?{default:E.children.tab}:void 0))):p.map((E,P)=>(a.value.push(E.props.name),P===0?E:md(E))))}):m(nn,{onResize:this.handleNavResize},{default:()=>m("div",{class:`${e}-tabs-nav-scroll-wrapper`,ref:"scrollWrapperElRef"},["top","bottom"].includes($)?m(w0,{ref:"xScrollInstRef",onScroll:this.handleScroll},{default:I}):m("div",{class:`${e}-tabs-nav-y-scroll`,onScroll:this.handleScroll,ref:"yScrollElRef"},I()))}),r&&n&&x?gd(n,!0):null,dt(h,E=>E&&m("div",{class:`${e}-tabs-nav__suffix`},E))),g&&(this.animated&&($==="top"||$==="bottom")?m("div",{ref:"tabsPaneWrapperRef",style:d,class:[`${e}-tabs-pane-wrapper`,s]},pd(f,this.mergedValue,this.renderedNames,this.onAnimationBeforeLeave,this.onAnimationEnter,this.onAnimationAfterEnter,this.animationDirection)):pd(f,this.mergedValue,this.renderedNames)))}});function pd(e,t,o,r,n,i,a){const l=[];return e.forEach(s=>{const{name:d,displayDirective:c,"display-directive":u}=s.props,h=p=>c===p||u===p,f=t===d;if(s.key!==void 0&&(s.key=d),f||h("show")||h("show:lazy")&&o.has(d)){o.has(d)||o.add(d);const p=!h("if");l.push(p?ui(s,[[Vu,f]]):s)}}),a?m(Gu,{name:`${a}-transition`,onBeforeLeave:r,onEnter:n,onAfterEnter:i},{default:()=>l}):l}function gd(e,t){return m(il,{ref:"addTabInstRef",key:"__addable",name:"__addable",internalCreatedByPane:!0,internalAddable:!0,internalLeftPadded:t,disabled:typeof e=="object"&&e.disabled})}function md(e){const t=$o(e);return t.props?t.props.internalLeftPadded=!0:t.props={internalLeftPadded:!0},t}function sa(e){return Array.isArray(e.dynamicProps)?e.dynamicProps.includes("internalLeftPadded")||e.dynamicProps.push("internalLeftPadded"):e.dynamicProps=["internalLeftPadded"],e}const e3=M("thing",`
|
|
1664
|
+
display: flex;
|
|
1665
|
+
transition: color .3s var(--n-bezier);
|
|
1666
|
+
font-size: var(--n-font-size);
|
|
1667
|
+
color: var(--n-text-color);
|
|
1668
|
+
`,[M("thing-avatar",`
|
|
1669
|
+
margin-right: 12px;
|
|
1670
|
+
margin-top: 2px;
|
|
1671
|
+
`),M("thing-avatar-header-wrapper",`
|
|
1672
|
+
display: flex;
|
|
1673
|
+
flex-wrap: nowrap;
|
|
1674
|
+
`,[M("thing-header-wrapper",`
|
|
1675
|
+
flex: 1;
|
|
1676
|
+
`)]),M("thing-main",`
|
|
1677
|
+
flex-grow: 1;
|
|
1678
|
+
`,[M("thing-header",`
|
|
1679
|
+
display: flex;
|
|
1680
|
+
margin-bottom: 4px;
|
|
1681
|
+
justify-content: space-between;
|
|
1682
|
+
align-items: center;
|
|
1683
|
+
`,[O("title",`
|
|
1684
|
+
font-size: 16px;
|
|
1685
|
+
font-weight: var(--n-title-font-weight);
|
|
1686
|
+
transition: color .3s var(--n-bezier);
|
|
1687
|
+
color: var(--n-title-text-color);
|
|
1688
|
+
`)]),O("description",[B("&:not(:last-child)",`
|
|
1689
|
+
margin-bottom: 4px;
|
|
1690
|
+
`)]),O("content",[B("&:not(:first-child)",`
|
|
1691
|
+
margin-top: 12px;
|
|
1692
|
+
`)]),O("footer",[B("&:not(:first-child)",`
|
|
1693
|
+
margin-top: 12px;
|
|
1694
|
+
`)]),O("action",[B("&:not(:first-child)",`
|
|
1695
|
+
margin-top: 12px;
|
|
1696
|
+
`)])])]),t3=Object.assign(Object.assign({},_e.props),{title:String,titleExtra:String,description:String,descriptionClass:String,descriptionStyle:[String,Object],content:String,contentClass:String,contentStyle:[String,Object],contentIndented:Boolean}),Ss=ge({name:"Thing",props:t3,slots:Object,setup(e,{slots:t}){const{mergedClsPrefixRef:o,inlineThemeDisabled:r,mergedRtlRef:n}=tt(e),i=_e("Thing","-thing",e3,XP,e,o),a=fo("Thing",n,o),l=N(()=>{const{self:{titleTextColor:d,textColor:c,titleFontWeight:u,fontSize:h},common:{cubicBezierEaseInOut:f}}=i.value;return{"--n-bezier":f,"--n-font-size":h,"--n-text-color":c,"--n-title-font-weight":u,"--n-title-text-color":d}}),s=r?ht("thing",void 0,l,e):void 0;return()=>{var d;const{value:c}=o,u=a?a.value:!1;return(d=s==null?void 0:s.onRender)===null||d===void 0||d.call(s),m("div",{class:[`${c}-thing`,s==null?void 0:s.themeClass,u&&`${c}-thing--rtl`],style:r?void 0:l.value},t.avatar&&e.contentIndented?m("div",{class:`${c}-thing-avatar`},t.avatar()):null,m("div",{class:`${c}-thing-main`},!e.contentIndented&&(t.header||e.title||t["header-extra"]||e.titleExtra||t.avatar)?m("div",{class:`${c}-thing-avatar-header-wrapper`},t.avatar?m("div",{class:`${c}-thing-avatar`},t.avatar()):null,t.header||e.title||t["header-extra"]||e.titleExtra?m("div",{class:`${c}-thing-header-wrapper`},m("div",{class:`${c}-thing-header`},t.header||e.title?m("div",{class:`${c}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?m("div",{class:`${c}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null),t.description||e.description?m("div",{class:[`${c}-thing-main__description`,e.descriptionClass],style:e.descriptionStyle},t.description?t.description():e.description):null):null):m(Me,null,t.header||e.title||t["header-extra"]||e.titleExtra?m("div",{class:`${c}-thing-header`},t.header||e.title?m("div",{class:`${c}-thing-header__title`},t.header?t.header():e.title):null,t["header-extra"]||e.titleExtra?m("div",{class:`${c}-thing-header__extra`},t["header-extra"]?t["header-extra"]():e.titleExtra):null):null,t.description||e.description?m("div",{class:[`${c}-thing-main__description`,e.descriptionClass],style:e.descriptionStyle},t.description?t.description():e.description):null),t.default||e.content?m("div",{class:[`${c}-thing-main__content`,e.contentClass],style:e.contentStyle},t.default?t.default():e.content):null,t.footer?m("div",{class:`${c}-thing-main__footer`},t.footer()):null,t.action?m("div",{class:`${c}-thing-main__action`},t.action()):null))}}}),o3=M("text",`
|
|
1697
|
+
transition: color .3s var(--n-bezier);
|
|
1698
|
+
color: var(--n-text-color);
|
|
1699
|
+
`,[D("strong",`
|
|
1700
|
+
font-weight: var(--n-font-weight-strong);
|
|
1701
|
+
`),D("italic",{fontStyle:"italic"}),D("underline",{textDecoration:"underline"}),D("code",`
|
|
1702
|
+
line-height: 1.4;
|
|
1703
|
+
display: inline-block;
|
|
1704
|
+
font-family: var(--n-font-famliy-mono);
|
|
1705
|
+
transition:
|
|
1706
|
+
color .3s var(--n-bezier),
|
|
1707
|
+
border-color .3s var(--n-bezier),
|
|
1708
|
+
background-color .3s var(--n-bezier);
|
|
1709
|
+
box-sizing: border-box;
|
|
1710
|
+
padding: .05em .35em 0 .35em;
|
|
1711
|
+
border-radius: var(--n-code-border-radius);
|
|
1712
|
+
font-size: .9em;
|
|
1713
|
+
color: var(--n-code-text-color);
|
|
1714
|
+
background-color: var(--n-code-color);
|
|
1715
|
+
border: var(--n-code-border);
|
|
1716
|
+
`)]),r3=Object.assign(Object.assign({},_e.props),{code:Boolean,type:{type:String,default:"default"},delete:Boolean,strong:Boolean,italic:Boolean,underline:Boolean,depth:[String,Number],tag:String,as:{type:String,validator:()=>!0,default:void 0}}),Ci=ge({name:"Text",props:r3,setup(e){const{mergedClsPrefixRef:t,inlineThemeDisabled:o}=tt(e),r=_e("Typography","-text",o3,iT,e,t),n=N(()=>{const{depth:a,type:l}=e,s=l==="default"?a===void 0?"textColor":`textColor${a}Depth`:ae("textColor",l),{common:{fontWeightStrong:d,fontFamilyMono:c,cubicBezierEaseInOut:u},self:{codeTextColor:h,codeBorderRadius:f,codeColor:p,codeBorder:g,[s]:x}}=r.value;return{"--n-bezier":u,"--n-text-color":x,"--n-font-weight-strong":d,"--n-font-famliy-mono":c,"--n-code-border-radius":f,"--n-code-text-color":h,"--n-code-color":p,"--n-code-border":g}}),i=o?ht("text",N(()=>`${e.type[0]}${e.depth||""}`),n,e):void 0;return{mergedClsPrefix:t,compitableTag:ti(e,["as","tag"]),cssVars:o?void 0:n,themeClass:i==null?void 0:i.themeClass,onRender:i==null?void 0:i.onRender}},render(){var e,t,o;const{mergedClsPrefix:r}=this;(e=this.onRender)===null||e===void 0||e.call(this);const n=[`${r}-text`,this.themeClass,{[`${r}-text--code`]:this.code,[`${r}-text--delete`]:this.delete,[`${r}-text--strong`]:this.strong,[`${r}-text--italic`]:this.italic,[`${r}-text--underline`]:this.underline}],i=(o=(t=this.$slots).default)===null||o===void 0?void 0:o.call(t);return this.code?m("code",{class:n,style:this.cssVars},this.delete?m("del",null,i):i):this.delete?m("del",{class:n,style:this.cssVars},i):m(this.compitableTag||"span",{class:n,style:this.cssVars},i)}}),n3=()=>({}),i3={name:"Equation",common:te,self:n3},l3={name:"FloatButtonGroup",common:te,self(e){const{popoverColor:t,dividerColor:o,borderRadius:r}=e;return{color:t,buttonBorderColor:o,borderRadiusSquare:r,boxShadow:"0 2px 8px 0px rgba(0, 0, 0, .12)"}}},a3={name:"dark",common:te,Alert:GS,Anchor:JS,AutoComplete:c2,Avatar:Rh,AvatarGroup:f2,BackTop:h2,Badge:C2,Breadcrumb:S2,Button:jt,ButtonGroup:eP,Calendar:R2,Card:Lh,Carousel:O2,Cascader:j2,Checkbox:vn,Code:Dh,Collapse:q2,CollapseTransition:X2,ColorPicker:J2,DataTable:d$,DatePicker:v$,Descriptions:C$,Dialog:qh,Divider:W$,Drawer:V$,Dropdown:ws,DynamicInput:U$,DynamicTags:X$,Element:Z$,Empty:kr,Ellipsis:Uh,Equation:i3,Flex:Q$,Form:rP,GradientText:nP,Heatmap:gT,Icon:f$,IconWrapper:vT,Image:bT,Input:Xt,InputNumber:aP,InputOtp:cP,LegacyTransfer:zT,Layout:dP,List:pP,LoadingBar:P$,Log:gP,Menu:yP,Mention:bP,Message:z$,Modal:$$,Notification:L$,PageHeader:$P,Pagination:Nh,Popconfirm:_P,Popover:Fr,Popselect:jh,Progress:np,QrCode:VT,Radio:Gh,Rate:EP,Result:MP,Row:fP,Scrollbar:kt,Select:Vh,Skeleton:NT,Slider:AP,Space:ep,Spin:kP,Statistic:OP,Steps:WP,Switch:VP,Table:GP,Tabs:YP,Tag:Th,Thing:ZP,TimePicker:Kh,Timeline:QP,Tooltip:Rl,Transfer:tT,Tree:sp,TreeSelect:rT,Typography:lT,Upload:sT,Watermark:cT,Split:qT,FloatButton:dT,FloatButtonGroup:l3,Marquee:OT},s3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAABmJLR0QA/wD/AP+gvaeTAAAEH0lEQVRYhbWW32scVRTHv+fOzO4m2XUrCWrRB42PfQiCNvQlRqtSK9VWSKxF0PqgrWBABPXNQgT7XvwRbFEiFmn9USkSzEuSBv+Agg+C0gerqYkm0f09M/ec48PsJju7mx+brAeGnZ2595zP/Z57zxzCDmzk0kgiLK5MJhPOSLlkS35FX/3h9ZmLO/FF7U44NnlwLJk0Zx3HdAkrxCryOYaK3mCjz0yfnv3pfwF49tODDyW7zJeJLqdfWCECCCuEFX5ZEQYCMqTCck1t6umpsalcRwCOTAz3dWe9ye60ewhQEq4GrgMQBkoFBhFgDAHQMLT6/tRrM+/uCmD0i8fG01nvHceFKwKIRMGaAAQIfIENFMYQjAOQITDrimX70tSpuattAYxefPz57oz5KJlysiqAajXgJgDCikpJ1lQgp/prABvKdTLuke9enr65KcDRzx69P5P1vk5n3QEVhSrQDoANo6sW2DgEYwAyAAjqV+RKV7b3+OXRy0EtpqndHL/0xId33pP6JbPHHdgsLZsZGQIhAoYCtUVAAQJRd7dzTMsrK4cnHhmMAQyfGU5xIK84DrV9LJshaqo1XhEMOdQT+ngzBoA00n/fCh0b6m7jg4hiAetVUAVKRUFQsck4AKIcLv0RtHTaNkSjClUIZkGxEMbGmrppWF0M4ZelIxAq64Frm7lcZCjHx5nGiYs3/c4ANECwVZSLzYsz8RlAfpVRzHHTwJ2Y8LoC5ZKtPiXUn/4mBaDA0m+d2QtR7QA4VIQbCLsOYHQNrFxk5FZs6xltmg0UlQpDoWsqtwbwBHAFcAQgxdLvYXR8dmkiCm5cS53fCCCTh7oCdbkKoQh9wepSiE5Yc55bvasGV08AjXKxvBCCuQMyAE3SNwN4AngCUgI4AmBWLP/ZGRWgtMkeyCCS3hXAd2MD/lmyCIMOqVCzunKwpoC6AgQOYOPfI1XF8kKHVGjRfsSOIeWTTQMAILdqO1OiFdX91VCIuvb8m6dcwtZy38r+WuhMcQIAY8xaWTIAMHX4V1+Bc+rIhsmuFASl3O5VUGjOkj1b+x9b8tAn+++jivkWxeRAq2PjJQl396ei1qxFS8YMiFVwtVPm2r1VqBCr0Qtzb82dBq1vw5aaD58/cEjy5nOquH2N73r3eui5zdk2gGWBCq5bV56cf2P+VqO/TVuwoY8Hx6mQeBuh8WrPHIewtz8BgLYECFkWmfi5mbH5uY1ibNkD7vtgX7oXmUkqJI5Cop4x2+cic7u7IUAoEjB4fPrUtfe28r/tJvTA+Qcf8IqJr6jk9RMR7ro3AaJ4i25Z1NfgSsW4J2ZPzla247ftLnhoYv+LVPTO9aSSmWxvpAKLwkdwA8Y8dfXE7M/t+NtZG34G7sN3DF7oTWdeEOJCmApOfj/y4zc7cfUfbufDUBEpo1YAAAAASUVORK5CYII=",c3="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAklEQVR4AewaftIAAACiSURBVMXBsQmDUABF0evLrwISy2yQ1g3UzpHcyBXs9HeCE2SJgEhq0waxEBTeOckEK0bCTJgJM2EW2PGoa9Ki4EpLjMxdx1ZgR1oUPJuGq81dx5YwE2bCLHDSMgxs3fOcW5ZxROCkd1Wx9ep70rLkCGEmzISZMBNmwkyYCTNhJsyEmTATZsIssGOJkTM+bct3HPm3xMieZIIVI2EmzISZMPsBPLUeCZWhvyQAAAAASUVORK5CYII=";function d3(){return typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?"worker":typeof window<"u"?"main":"unknown"}d3();const Nn=new Map;function u3(){return`${Date.now()}-${Math.random().toString(36).substring(2,9)}`}const Da=new Map;typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self.addEventListener("message",e=>{const{type:t,requestId:o,result:r,error:n,name:i,payload:a}=e.data;if(t==="api-response"){const l=Nn.get(o);l&&(n?l.reject(new Error(n)):l.resolve(r),Nn.delete(o))}if(t==="event-fire"){const l=Da.get(i);l&&l(a)}});async function ca(e,t){if(typeof window<"u"&&window.ruck&&window.ruck.event)return await window.ruck.event.listen(e,t);if(typeof self<"u"&&typeof WorkerGlobalScope<"u")return Da.set(e,t),self.postMessage({type:"event-subscribe",name:e}),()=>{Da.delete(e),self.postMessage({type:"event-unsubscribe",name:e})};throw new Error(`Event listening for ${e} is only available in Ruck plugin environment`)}async function Oe(e,t,o=2e4){if(typeof window<"u"&&window.ruck){const r=window.ruck,n=e.split(".");let i=r;for(const a of n)if(i&&i[a])i=i[a];else{i=null;break}if(typeof i=="function")try{return await i(...t)}catch(a){const l=a&&typeof a=="object"&&a.message?a.message:typeof a=="string"?a:JSON.stringify(a);throw new Error(`Ruck API call failed: ${e} - ${l}`)}console.warn(`[RuckSDK] Method ${e} not found in window.ruck`)}if(typeof self<"u"&&typeof WorkerGlobalScope<"u"){const r=u3();return new Promise((n,i)=>{Nn.set(r,{resolve:n,reject:i}),self.postMessage({type:"api-call",requestId:r,method:e,args:t}),setTimeout(()=>{Nn.has(r)&&(Nn.delete(r),i(new Error(`API call timeout: ${e}`)))},o)})}throw new Error(`Ruck API ${e} is only available in Ruck plugin environment`)}const Gr={async exists(e){return await Oe("fs.exists",[e])},async readFile(e,t={}){return await Oe("fs.readFile",[e,t])},async writeFile(e,t,o={}){return await Oe("fs.writeFile",[e,t,o])},async readDir(e,t={}){return await Oe("fs.readDir",[e,t])},async createDir(e,t=!1,o={}){const r={...o,recursive:t};return await Oe("fs.createDir",[e,r])},async remove(e,t=!1,o={}){const r={...o,recursive:t};return await Oe("fs.remove",[e,r])},async stat(e){return await Oe("fs.stat",[e])},async copyFile(e,t){return await Oe("fs.copyFile",[e,t])},async createReadStream(e){const{streamId:t}=await Oe("fs.openReadStream",[e]);return new p3(t)},async createWriteStream(e,t=!1){const{streamId:o}=await Oe("fs.openWriteStream",[e,t]);return new f3(o)}};class f3{constructor(t){this.streamId=t}async write(t){let o;typeof t=="string"?o=btoa(t):o=h3(t),await Oe("fs.writeStreamChunk",[this.streamId,o])}async close(){await Oe("fs.closeStream",[this.streamId])}}function h3(e){let t="";const o=new Uint8Array(e),r=o.byteLength;for(let n=0;n<r;n++){const i=o[n];i!==void 0&&(t+=String.fromCharCode(i))}return btoa(t)}class p3{constructor(t){this.streamId=t}async read(t=65536){const o=await Oe("fs.readStreamChunk",[this.streamId,t]);return g3(o)}async close(){await Oe("fs.closeStream",[this.streamId])}}function g3(e){const t=atob(e),o=t.length,r=new Uint8Array(o);for(let n=0;n<o;n++)r[n]=t.charCodeAt(n);return r}const Kr={async system(e){await Oe("notification.system",[e])},async message(e){await Oe("notification.message",[e])},async notify(e,t){return this.system({title:e,body:t})},async success(e){return this.message({content:e,type:"success"})},async error(e){return this.message({content:e,type:"error"})},async warning(e){return this.message({content:e,type:"warning"})},async info(e){return this.message({content:e,type:"info"})}},da={onPluginEnter(e){Oe("onPluginEnter",[e])},onPluginOut(e){Oe("onPluginOut",[e])},onPluginDetach(e){Oe("onPluginDetach",[e])},onThemeChanged(e){Oe("onThemeChanged",[e])},onMainPush(e,t){Oe("onMainPush",[e,t])}},m3={useDesignSystem(){Oe("useDesignSystem",[])},async isDarkTheme(){return await Oe("isDarkTheme",[])},async getAccentColor(){return await Oe("getAccentColor",[])}};class v3{constructor(t){this.unlisteners=[],this.pid=t,this.onClose(()=>{setTimeout(()=>this.cleanup(),0)})}cleanup(){this.unlisteners.forEach(t=>t()),this.unlisteners=[]}get id(){return this.pid}async onStdout(t){const o=await ca("ruck://shell/stdout",r=>{r.pid===this.pid&&t(r.data)});return this.unlisteners.push(o),o}async onStderr(t){const o=await ca("ruck://shell/stderr",r=>{r.pid===this.pid&&t(r.data)});return this.unlisteners.push(o),o}async onClose(t){const o=await ca("ruck://shell/close",r=>{r.pid===this.pid&&t(r.exitCode)});return this.unlisteners.push(o),o}async wait(){return new Promise(t=>{this.onClose(o=>{t(o)})})}async kill(){return await Ne.kill(this.pid)}async writeStdin(t){return await Ne.writeStdin(this.pid,t)}}const Ne={async open(e){return await Oe("shell.open",[e])},async openPath(e){return await Oe("shell.openPath",[e])},async showInFolder(e){return await Oe("shell.showInFolder",[e])},async execute(e,t=[],o={}){return await Oe("shell.execute",[e,t,o])},async spawn(e,t=[],o={}){const{pid:r}=await Oe("shell.spawn",[e,t,o]),n=new v3(r);return o.onStdout&&await n.onStdout(o.onStdout),o.onStderr&&await n.onStderr(o.onStderr),o.onClose&&await n.onClose(o.onClose),n},async kill(e){return(await Oe("shell.kill",[e])).success},async writeStdin(e,t){return(await Oe("shell.writeStdin",[e,t])).success}};let qr=null;async function ll(e=!1){if(!e&&qr)return qr;try{const r=((await Ne.execute("nvm",["version"])).stdout||"").trim().match(/(\d+)\.(\d+)\.(\d+)/);if(r){const n=parseInt(r[1],10);return qr={version:r[0],major:n,isV2:n>=2},qr}}catch(t){console.warn("[nvm-detector] 执行 nvm version 异常:",t)}return qr={version:"1.x",major:1,isV2:!1},qr}class b3{constructor(t){yi(this,"engineInfo");yi(this,"cachedSettingsPath",null);this.engineInfo=t}getEngineInfo(){return this.engineInfo}async getCurrentNodeVersion(){try{const o=(await this.getInstalledVersions()).find(n=>n.active);if(o)return o.version;const r=await Ne.execute("node",["--version"]);return r.exitCode===0?r.stdout.trim().replace(/^v/,""):"N/A"}catch{return"N/A"}}async getInstalledVersions(){try{const t=await Ne.execute("nvm",["list"]);if(t.exitCode!==0)return[];let o="";try{const i=await Ne.execute("node",["--version"]);i.exitCode===0&&(o=i.stdout.trim().replace(/^v/,""))}catch{}const n=t.stdout.split(/\r?\n/).filter(i=>i.trim()).map(i=>{const a=i.includes("*")||i.includes("(Currently"),l=i.match(/(\d+\.\d+\.\d+)/);return l?{version:l[1],active:a}:null}).filter(i=>i!==null);if(o&&!n.some(i=>i.active)){const i=n.find(a=>a.version===o);i&&(i.active=!0)}return n}catch{return[]}}async getAvailableVersions(){try{const t=await Ne.execute("nvm",["list","available"]);if(t.exitCode!==0)return[];const o=t.stdout.split(/\r?\n/).filter(d=>d.trim()),r=[],n=o.findIndex(d=>d.includes("CURRENT")&&d.includes("LTS"));if(n===-1)return[];const a=o[n].split("|").map(d=>d.trim()).filter(Boolean),l={CURRENT:"current",LTS:"lts","OLD STABLE":"old","OLD UNSTABLE":"unstable"},s=a.map(d=>l[d]||d.toLowerCase());for(let d=n+1;d<o.length;d++){const c=o[d];if(c.includes("---"))continue;if(c.includes("download/releases"))break;if(!c.includes("|"))continue;c.split("|").map(h=>h.trim()).filter(Boolean).forEach((h,f)=>{if(f<s.length){const p=h.match(/\d+\.\d+\.\d+/);p&&r.push({version:p[0],type:s[f]})}})}return r}catch(t){return console.error("[V1Provider] getAvailableVersions 异常:",t),[]}}async getSettingsPath(){if(this.cachedSettingsPath)return this.cachedSettingsPath;const t=[];try{const n=await Ne.execute("where",["nvm"]);if(n.exitCode===0&&n.stdout){const i=n.stdout.trim().split(/\r?\n/);for(const a of i){const l=a.trim();l.toLowerCase().endsWith(".exe")?t.push(`${l.replace(/\\nvm\.exe$/i,"")}\\settings.txt`):l&&t.push(`${l}\\settings.txt`)}}}catch{}try{const n=await Ne.execute("nvm",["root"]);if(n.exitCode===0&&n.stdout){const i=n.stdout.replace(/Current Root:\s*/i,"").trim();if(i){t.push(`${i}\\settings.txt`);const a=i.replace(/\\nodejs$/i,"");t.push(`${a}\\settings.txt`),t.push(`${a.replace(/\\persist\\nvm$/i,"\\apps\\nvm\\current")}\\settings.txt`)}}}catch{}t.push("D:\\scoop\\apps\\nvm\\current\\settings.txt"),t.push("D:\\scoop\\persist\\nvm\\settings.txt"),t.push("C:\\scoop\\apps\\nvm\\current\\settings.txt"),t.push("C:\\scoop\\persist\\nvm\\settings.txt");const o=Array.from(new Set(t.filter(Boolean)));for(const n of o)try{if(await Gr.exists(n))return this.cachedSettingsPath=n,n}catch{}const r=o[0]||"D:\\scoop\\apps\\nvm\\current\\settings.txt";return this.cachedSettingsPath=r,r}async getSettings(){try{const t=await this.getSettingsPath();if(!await Gr.exists(t))return{root:"",proxy:"",node_mirror:"",npm_mirror:"",error:"settings.txt 不存在"};const o=await Gr.readFile(t,{encoding:"utf8"}),r=typeof o=="string"?o:new TextDecoder("utf-8").decode(o),n={root:"",proxy:"",node_mirror:"",npm_mirror:""};for(const i of r.split(/\r?\n/)){const a=i.trim();if(!a||a.startsWith("#")||a.startsWith(";"))continue;const l=a.indexOf(":");if(l===-1)continue;const s=a.slice(0,l).trim().toLowerCase(),d=a.slice(l+1).trim();s==="root"?n.root=d:s==="proxy"?n.proxy=d==="none"?"":d:s==="node_mirror"?n.node_mirror=d:s==="npm_mirror"&&(n.npm_mirror=d)}return n}catch(t){return{error:(t==null?void 0:t.message)||"读取失败"}}}async setSetting(t,o){const r=await this.getSettingsPath();let n="";try{if(await Gr.exists(r)){const c=await Gr.readFile(r,{encoding:"utf8"});n=typeof c=="string"?c:new TextDecoder("utf-8").decode(c)}}catch{}const i=n.split(/\r?\n/).filter(Boolean),a=t.toLowerCase(),l=o===""?"none":o;let s=!1;const d=i.map(c=>{const u=c.indexOf(":");return u===-1?c:c.slice(0,u).trim().toLowerCase()===a?(s=!0,`${t}: ${l}`):c});return s||d.push(`${t}: ${l}`),await Gr.writeFile(r,d.join(`\r
|
|
1717
|
+
`)+`\r
|
|
1718
|
+
`,{encoding:"utf8"}),!0}async switchVersion(t){const o=await Ne.execute("nvm",["use",t]);if(o.exitCode!==0)throw new Error(o.stderr||`切换到 v${t} 失败`);return o.stdout.trim()}async installVersion(t){return await Ne.spawn("nvm",["install",t])}async uninstallVersion(t){const o=await Ne.execute("nvm",["uninstall",t]);if(o.exitCode!==0)throw new Error(o.stderr||`删除 v${t} 失败`);return o.stdout.trim()}}class x3{constructor(t){yi(this,"engineInfo");this.engineInfo=t}getEngineInfo(){return this.engineInfo}async getCurrentNodeVersion(){try{const o=(await this.getInstalledVersions()).find(n=>n.active);if(o)return o.version;const r=await Ne.execute("node",["--version"]);return r.exitCode===0?r.stdout.trim().replace(/^v/,""):"N/A"}catch{return"N/A"}}async getInstalledVersions(){try{const t=await Ne.execute("nvm",["list","--json"]);if(t.exitCode===0){const r=t.stdout.trim().match(/\[[\s\S]*\]/);if(r)return JSON.parse(r[0]).map(i=>({version:i.version,active:!!i.default,lts:i.lts,npm:i.npm}))}}catch(t){console.warn("[V2Provider] nvm list --json 解析失败,降级纯文本解析:",t)}try{return(await Ne.execute("nvm",["list"])).stdout.split(/\r?\n/).filter(Boolean).map(r=>{const n=r.includes("*")||r.includes("(default)"),i=r.match(/(\d+\.\d+\.\d+)/);return i?{version:i[1],active:n}:null}).filter(r=>r!==null)}catch{return[]}}async getAvailableVersions(){try{const t=await Ne.execute("nvm",["list","releases","--no-limit","--json"]);if(t.exitCode===0){const o=t.stdout.match(/\[[\s\S]*\]/);if(o)return JSON.parse(o[0]).map(n=>({version:n.version,type:n.lts?"lts":"current",date:n.date,npm:n.npm}))}}catch(t){console.warn("[V2Provider] nvm list releases --json 解析失败:",t)}try{const o=(await Ne.execute("nvm",["list","releases","--no-limit"])).stdout.split(/\r?\n/).filter(Boolean),r=[];for(const n of o){const i=n.match(/v?(\d+\.\d+\.\d+)\s+([\d-]+)/);i&&r.push({version:i[1],date:i[2],type:n.toLowerCase().includes("lts")?"lts":"current"})}return r}catch{return[]}}async getSettings(){const t={root:"",node_mirror:"",npm_mirror:"",proxy:"",mode:"link"};try{const o=await Ne.execute("nvm",["config","list"]);if(o.exitCode===0){const r=o.stdout.split(/\r?\n/);for(const n of r){const i=n.indexOf(":");if(i===-1)continue;const a=n.slice(0,i).trim().toLowerCase(),l=n.slice(i+1).trim();a==="node_mirror"?t.node_mirror=l==="(empty)"?"":l:a==="npm_mirror"?t.npm_mirror=l==="(empty)"?"":l:a==="proxy"?t.proxy=l==="none"||l==="(empty)"?"":l:a==="mode"&&(t.mode=l==="shim"?"shim":"link",this.engineInfo.mode=t.mode)}}}catch(o){t.error=(o==null?void 0:o.message)||"读取配置失败"}try{const o=await Ne.execute("nvm",["env"]);if(o.exitCode===0){const r=o.stdout.match(/Installed Versions[\s\S]*?Path\s*:\s*([^\r\n]+)/i)||o.stdout.match(/NVM For Windows[\s\S]*?Path\s*:\s*([^\r\n]+)/i);r&&(t.root=r[1].trim())}}catch{}return t}async resetSetting(t){const o=await Ne.execute("nvm",["config","reset",t]);if(o.exitCode!==0)throw new Error(o.stderr||`重置 ${t} 失败`);return!0}async setSetting(t,o){const r=o.trim();if(!r||r.toLowerCase()==="none")return await this.resetSetting(t);const n=await Ne.execute("nvm",["config","set",`${t}=${r}`]);if(n.exitCode!==0)throw new Error(n.stderr||`配置 ${t} 失败`);return!0}async switchMode(t){const o=await Ne.execute("nvm",["use",t]);if(o.exitCode!==0)throw new Error(o.stderr||`切换到 ${t} 模式失败`);return this.engineInfo.mode=t,o.stdout.trim()}async switchVersion(t){const o=await Ne.execute("nvm",["use",t]);if(o.exitCode!==0)throw new Error(o.stderr||`切换到 v${t} 失败`);return o.stdout.trim()}async installVersion(t){return await Ne.spawn("nvm",["install",t])}async uninstallVersion(t){const o=await Ne.execute("nvm",["uninstall",t]);if(o.exitCode!==0)throw new Error(o.stderr||`卸载 v${t} 失败`);return o.stdout.trim()}}let Rn=null;async function Go(e=!1){if(!e&&Rn)return Rn;const t=await ll(e);return t.isV2?Rn=new x3(t):Rn=new b3(t),Rn}const Cp={official:{label:"npm 官方",url:"https://registry.npmjs.org"},taobao:{label:"淘宝镜像",url:"https://registry.npmmirror.com"},tencent:{label:"腾讯镜像",url:"https://mirrors.cloud.tencent.com/npm"},cnpm:{label:"cnpm",url:"https://r.cnpmjs.org"},yarn:{label:"Yarn 官方",url:"https://registry.yarnpkg.com"}};async function C3(){try{const e=await Ne.execute("npm",["config","get","registry"]);return e.exitCode!==0?"https://registry.npmjs.org":e.stdout.trim().replace(/\/$/,"")}catch{return"https://registry.npmjs.org"}}async function vd(e){const t=await Ne.execute("npm",["config","set","registry",e]);if(t.exitCode!==0)throw new Error("切换源失败: "+(t.stderr||"未知错误"));return!0}function bd(e,t=null){const o=e.replace(/\/$/,""),r=t||Cp;for(const[n,i]of Object.entries(r))if(i.url===o)return n;return"custom"}async function y3(){return await(await Go()).getCurrentNodeVersion()}async function xd(){return await(await Go()).getInstalledVersions()}async function w3(){return await(await Go()).getAvailableVersions()}async function Cd(e){return await(await Go()).switchVersion(e)}async function S3(e){return await(await Go()).installVersion(e)}async function $3(e){return await(await Go()).uninstallVersion(e)}const P3=[{label:"官方默认",url:"https://nodejs.org/dist/"},{label:"淘宝镜像",url:"https://npmmirror.com/mirrors/node/"}],T3=[{label:"官方默认",url:"https://github.com/npm/cli/archive/"},{label:"淘宝镜像",url:"https://npmmirror.com/mirrors/npm/"}];async function yp(){return await(await Go()).getSettings()}async function $s(e,t){return await(await Go()).setSetting(e,t)}async function _3(e){return await $s("proxy",e.trim())}async function z3(e){return await $s("node_mirror",e.trim())}async function E3(e){return await $s("npm_mirror",e.trim())}async function I3(e){const t=await Go();if(t.switchMode)return await t.switchMode(e);throw new Error("当前 NVM 版本不支持切换工作模式")}async function R3(){try{return(await Ne.execute("nrm",["--version"])).exitCode===0}catch{return!1}}async function M3(){try{const e=await Ne.execute("nrm",["ls"]);if(e.exitCode!==0)return{registries:null,current:null};const t=new RegExp("\x1B\\[[0-9;]*[mK]","g"),r=e.stdout.replace(t,"").split(/\r?\n/).filter(l=>l.trim()),n={};let i=null;for(const l of r){const s=l.trim(),d=s.startsWith("*"),u=s.replace(/^\*/,"").trim().match(/^(\S+)\s+[-. ]+\s+(https?:\/\/\S+)/);if(u){const h=u[1],f=u[2].trim().replace(/\/$/,"");n[h]={label:h,url:f},d&&(i=h)}}return{registries:Object.keys(n).length>0?n:null,current:i}}catch(e){return console.error("getNrmRegistries error:",e),{registries:null,current:null}}}async function B3(e){const t=await Ne.execute("nrm",["use",e]);if(t.exitCode!==0)throw new Error("nrm 切换失败: "+t.stderr);return!0}const A3={viewBox:"0 0 448 512",style:{width:"12px",height:"12px",fill:"currentColor"}},H3=ge({__name:"Header",props:{version:{},loading:{type:Boolean},engineInfo:{}},emits:["refresh"],setup(e){return(t,o)=>{const r=Il,n=Ci,i=xi,a=fr;return Se(),Fe(i,{justify:"space-between",align:"center",wrap:!1,style:{width:"100%"}},{default:J(()=>[se(i,{align:"center",size:8,wrap:!1},{default:J(()=>[se(r,{bordered:!1,type:"primary",round:"",style:{padding:"0 10px"}},{icon:J(()=>[(Se(),_t("svg",A3,[...o[1]||(o[1]=[ir("path",{d:"M448 369.3c0 7-3.7 13.5-9.7 17l-192 110.1c-6.1 3.5-13.6 3.5-19.7 0L34.7 386.3c-6-3.5-9.7-10-9.7-17V144.7c0-7 3.7-13.5 9.7-17L226.7 17.6c6.1-3.5 13.6-3.5 19.7 0l192 110.1c6 3.5 9.7 10 9.7 17v224.6zM224 44.8L64 136.7v184.2l160 91.9 160-91.9V136.7L224 44.8z"},null,-1)])]))]),default:J(()=>[Pe(" v"+At(e.version||"..."),1)]),_:1}),se(n,{depth:"3",strong:"",style:{"font-size":"13px"}},{default:J(()=>[...o[2]||(o[2]=[Pe("Node.js 版本管理器",-1)])]),_:1}),e.engineInfo?(Se(),Fe(r,{key:0,size:"tiny",round:"",bordered:!1,type:e.engineInfo.isV2?"info":"default",style:{"font-size":"11px","margin-left":"4px"}},{default:J(()=>[Pe(" nvm "+At(e.engineInfo.version)+" ",1),e.engineInfo.mode?(Se(),_t(Me,{key:0},[Pe(" ("+At(e.engineInfo.mode)+") ",1)],64)):Co("",!0)]),_:1},8,["type"])):Co("",!0)]),_:1}),se(a,{quaternary:"",circle:"",size:"small",onClick:o[0]||(o[0]=l=>t.$emit("refresh")),loading:e.loading},gu({_:2},[e.loading?void 0:{name:"icon",fn:J(()=>[o[3]||(o[3]=Pe("↺",-1))]),key:"0"}]),1032,["loading"])]),_:1})}}}),k3={class:"tabs-container"},F3=ge({__name:"Tabs",props:{modelValue:{},tabs:{}},emits:["update:modelValue"],setup(e){return(t,o)=>{const r=il,n=QT;return Se(),_t("div",k3,[se(n,{type:"line",value:e.modelValue,"onUpdate:value":o[0]||(o[0]=i=>t.$emit("update:modelValue",i)),animated:""},{default:J(()=>[(Se(!0),_t(Me,null,$r(e.tabs,i=>(Se(),Fe(r,{key:i.id,name:i.id},{default:J(()=>[Pe(At(i.label),1)]),_:2},1032,["name"]))),128))]),_:1},8,["value"])])}}}),yd=ge({__name:"VersionItem",props:{version:{},isInstalled:{type:Boolean},disabled:{type:Boolean},isInstalling:{type:Boolean},isAlreadyInstalled:{type:Boolean}},emits:["switch","uninstall","install"],setup(e){const t=e,o=N(()=>t.version.type&&{lts:"primary",current:"success",old:"default",unstable:"warning"}[t.version.type]||"default"),r=N(()=>t.version.type?{lts:"LTS",current:"最新",old:"旧版本",unstable:"不稳定"}[t.version.type]||t.version.type:"");return(n,i)=>{const a=Ci,l=Il,s=xi,d=Ss,c=fr,u=jT,h=pp;return Se(),Fe(h,null,gu({suffix:J(()=>[e.isInstalled?(Se(),_t(Me,{key:0},[e.version.active?(Se(),Fe(a,{key:1,type:"success",strong:"",style:{"font-size":"12px"}},{default:J(()=>[...i[6]||(i[6]=[Pe(" ✓ 使用中 ",-1)])]),_:1})):(Se(),Fe(s,{key:0,size:8,align:"center",wrap:!1},{default:J(()=>[se(c,{type:"primary",size:"tiny",onClick:i[0]||(i[0]=f=>n.$emit("switch",e.version.version)),disabled:e.disabled},{default:J(()=>[...i[4]||(i[4]=[Pe("切换",-1)])]),_:1},8,["disabled"]),se(u,{onPositiveClick:i[1]||(i[1]=f=>n.$emit("uninstall",e.version.version))},{trigger:J(()=>[se(c,{type:"error",size:"tiny",quaternary:"",disabled:e.disabled},{default:J(()=>[...i[5]||(i[5]=[Pe("删除",-1)])]),_:1},8,["disabled"])]),default:J(()=>[Pe(" 确定要卸载 Node v"+At(e.version.version)+" 吗? ",1)]),_:1})]),_:1}))],64)):(Se(),_t(Me,{key:1},[e.isAlreadyInstalled?(Se(),Fe(l,{key:0,type:"success",size:"tiny",bordered:!1,round:""},{default:J(()=>[...i[7]||(i[7]=[Pe("已安装",-1)])]),_:1})):(Se(),Fe(c,{key:1,type:"primary",size:"tiny",secondary:"",onClick:i[2]||(i[2]=f=>n.$emit("install",e.version.version)),loading:e.isInstalling},{default:J(()=>[Pe(At(e.isInstalling?"安装中":"安装"),1)]),_:1},8,["loading"]))],64))]),default:J(()=>[se(d,null,{header:J(()=>[se(s,{size:8,align:"baseline",wrap:!1},{default:J(()=>[se(a,{strong:""},{default:J(()=>[Pe("v"+At(e.version.version),1)]),_:1}),e.version.type?(Se(),Fe(l,{key:0,type:o.value,size:"tiny",bordered:!1},{default:J(()=>[Pe(At(r.value),1)]),_:1},8,["type"])):Co("",!0)]),_:1})]),_:1})]),_:2},[e.version.active?{name:"prefix",fn:J(()=>[se(a,{type:"success",style:{"font-size":"14px"}},{default:J(()=>[...i[3]||(i[3]=[Pe("●",-1)])]),_:1})]),key:"0"}:void 0]),1024)}}}),O3=ge({__name:"RegistryCard",props:{currentUrl:{},currentKey:{},currentLabel:{},registries:{}},emits:["switch"],setup(e){return(t,o)=>{const r=Ci,n=Il,i=hT,a=Ss,l=ys,s=fr,d=pp,c=hp,u=xi;return Se(),Fe(u,{vertical:"",size:20},{default:J(()=>[se(l,{size:"small",bordered:!1,segmented:"",style:{background:"rgba(66, 185, 131, 0.05)","margin-bottom":"0"}},{default:J(()=>[se(a,null,{header:J(()=>[se(r,{depth:"3",style:{"font-size":"12px"}},{default:J(()=>[...o[0]||(o[0]=[Pe("当前使用源",-1)])]),_:1})]),"header-extra":J(()=>[se(n,{type:"primary",size:"small",round:"",bordered:!1},{default:J(()=>[Pe(At(e.currentLabel),1)]),_:1})]),default:J(()=>[se(i,{type:"primary",size:18},{default:J(()=>[Pe(At(e.currentUrl||"加载中..."),1)]),_:1})]),_:1})]),_:1}),se(c,{bordered:"",size:"small"},{header:J(()=>[se(r,{strong:"",style:{"font-size":"12px"}},{default:J(()=>[...o[1]||(o[1]=[Pe("可用源列表",-1)])]),_:1})]),default:J(()=>[(Se(!0),_t(Me,null,$r(e.registries,(h,f)=>(Se(),Fe(d,{key:f},{suffix:J(()=>[e.currentKey===f?(Se(),Fe(r,{key:0,type:"success",strong:""},{default:J(()=>[...o[2]||(o[2]=[Pe(" ✓ 正在使用 ",-1)])]),_:1})):(Se(),Fe(s,{key:1,quaternary:"",size:"tiny",type:"primary",onClick:p=>t.$emit("switch",f,h.url)},{default:J(()=>[...o[3]||(o[3]=[Pe(" 切换 ",-1)])]),_:1},8,["onClick"]))]),default:J(()=>[se(a,{title:h.label},{description:J(()=>[se(r,{depth:"3",style:{"word-break":"break-all"}},{default:J(()=>[Pe(At(h.url),1)]),_:2},1024)]),_:2},1032,["title"])]),_:2},1024))),128))]),_:1})]),_:1})}}}),L3=ge({__name:"InstallLog",props:{log:{}},emits:["clear"],setup(e){return(t,o)=>{const r=Ci,n=fr,i=kT,a=ys;return e.log?(Se(),Fe(a,{key:0,size:"small",bordered:!1,segmented:"",style:{background:"rgba(0, 0, 0, 0.02)"}},{header:J(()=>[se(r,{depth:"3",strong:"",style:{"font-size":"12px"}},{default:J(()=>[...o[1]||(o[1]=[Pe("安装日志输出",-1)])]),_:1})]),"header-extra":J(()=>[se(n,{quaternary:"",circle:"",size:"tiny",onClick:o[0]||(o[0]=l=>t.$emit("clear")),title:"清空日志"},{icon:J(()=>[...o[2]||(o[2]=[Pe("✕",-1)])]),_:1})]),default:J(()=>[se(i,{log:e.log,trim:"","font-size":"12","line-height":"1.5",rows:8},null,8,["log"])]),_:1})):Co("",!0)}}}),D3={key:0,style:{"text-align":"center",padding:"20px"}},W3={style:{"margin-top":"10px"}},j3=ge({__name:"NvmSettings",props:{active:{type:Boolean},initialSettings:{}},emits:["settings-changed"],setup(e,{expose:t,emit:o}){const r=e,n=o,i=k$(),a=W(!1),l=W({}),s=W(null),d=W(""),c=W(""),u=W(""),h=W(null),f=N(()=>{var P;return l.value.mode||((P=s.value)==null?void 0:P.mode)||"link"}),p=W({proxy:!1,node_mirror:!1,npm_mirror:!1}),g=P3,x=T3;async function v(){a.value=!0;try{const[P,b]=await Promise.all([yp(),ll()]);s.value=b,y(P)}catch(P){i.error("读取 NVM 配置失败:"+P.message)}finally{a.value=!1}}function y(P){l.value=P,d.value=P.proxy&&P.proxy!=="none"?P.proxy:"",c.value=P.node_mirror||"",u.value=P.npm_mirror||""}async function I(P,b){p.value[P]=!0;try{P==="proxy"?await _3(b):P==="node_mirror"?await z3(b):P==="npm_mirror"&&await E3(b),l.value[P]=b,i.success(`${P} 已更新`),n("settings-changed")}catch(A){i.error("保存失败:"+A.message)}finally{p.value[P]=!1}}async function $(P,b){P==="node_mirror"?c.value=b:u.value=b,await I(P,b)}async function E(P){if(f.value!==P){h.value=P;try{await I3(P),l.value.mode=P,s.value&&(s.value.mode=P),i.success(`已切换至 ${P.toUpperCase()} 工作模式`),n("settings-changed")}catch(b){i.error("切换工作模式失败: "+((b==null?void 0:b.message)||b))}finally{h.value=null}}}return Et(()=>{ll().then(P=>{s.value=P})}),Xe(()=>r.initialSettings,P=>{P&&y(P)},{deep:!0,immediate:!0}),Xe(()=>r.active,P=>{var b;P&&!l.value.root&&!((b=r.initialSettings)!=null&&b.root)&&v()},{immediate:!0}),t({load:v}),(P,b)=>{const A=bp,_=Ci,k=Ih,L=Ss,R=ys,ie=Il,ce=xi,U=fr,oe=Fh;return Se(),Fe(ce,{vertical:"",size:16},{default:J(()=>{var Q;return[a.value?(Se(),_t("div",D3,[se(A,{size:"small"})])):(Se(),_t(Me,{key:1},[se(R,{size:"small",bordered:!1},{default:J(()=>[se(L,null,{header:J(()=>[...b[8]||(b[8]=[Pe("NVM 根目录",-1)])]),description:J(()=>[se(_,{depth:"3",style:{"font-size":"12px"}},{default:J(()=>[...b[9]||(b[9]=[Pe("NVM for Windows 的安装或管理路径(只读)",-1)])]),_:1})]),default:J(()=>[se(k,{value:l.value.root||"未能读取",readonly:"",size:"small",style:{"margin-top":"8px","font-family":"monospace",width:"100%"}},null,8,["value"])]),_:1})]),_:1}),(Q=s.value)!=null&&Q.isV2?(Se(),Fe(R,{key:0,size:"small",bordered:!1},{default:J(()=>[se(L,null,{header:J(()=>[se(ce,{align:"center",size:8},{default:J(()=>[b[11]||(b[11]=ir("span",null,"工作模式 (Operating Mode)",-1)),se(ie,{size:"small",type:"success",round:"",bordered:!1},{default:J(()=>[...b[10]||(b[10]=[Pe("v2.x 特性",-1)])]),_:1})]),_:1})]),description:J(()=>[se(_,{depth:"3",style:{"font-size":"12px"}},{default:J(()=>[Pe(At(f.value==="shim"?"Shim 模式:使用轻量拦截器,无需管理员提权,支持 .nvmrc 目录级自动感知(推荐)。":"Link 模式:传统软链接模式,提供极致零延迟,但可能受限于 Windows 权限策略。"),1)]),_:1})]),default:J(()=>[ir("div",W3,[se(oe,{size:"small"},{default:J(()=>[se(U,{type:f.value==="shim"?"primary":"default",secondary:f.value!=="shim",loading:h.value==="shim",onClick:b[0]||(b[0]=H=>E("shim"))},{default:J(()=>[...b[12]||(b[12]=[Pe(" Shim 模式 (免提权) ",-1)])]),_:1},8,["type","secondary","loading"]),se(U,{type:f.value==="link"?"primary":"default",secondary:f.value!=="link",loading:h.value==="link",onClick:b[1]||(b[1]=H=>E("link"))},{default:J(()=>[...b[13]||(b[13]=[Pe(" Link 模式 (零延迟) ",-1)])]),_:1},8,["type","secondary","loading"])]),_:1})])]),_:1})]),_:1})):Co("",!0),se(R,{size:"small",bordered:!1},{default:J(()=>[se(L,null,{header:J(()=>[...b[14]||(b[14]=[Pe("代理地址 (proxy)",-1)])]),description:J(()=>[se(_,{depth:"3",style:{"font-size":"12px"}},{default:J(()=>[...b[15]||(b[15]=[Pe("设置代理服务器,清空内容失焦即可清除代理",-1)])]),_:1})]),default:J(()=>[se(k,{value:d.value,"onUpdate:value":b[2]||(b[2]=H=>d.value=H),placeholder:"例:http://127.0.0.1:7890(留空为清除代理)",size:"small",clearable:"",loading:p.value.proxy,style:{"margin-top":"8px","font-family":"monospace",width:"100%"},onBlur:b[3]||(b[3]=H=>I("proxy",d.value))},null,8,["value","loading"])]),_:1})]),_:1}),se(R,{size:"small",bordered:!1},{default:J(()=>[se(L,null,{header:J(()=>[...b[16]||(b[16]=[Pe("Node 下载镜像 (node_mirror)",-1)])]),description:J(()=>[se(_,{depth:"3",style:{"font-size":"12px"}},{default:J(()=>[...b[17]||(b[17]=[Pe("安装 Node 时的下载地址,失焦自动保存",-1)])]),_:1})]),default:J(()=>[se(ce,{vertical:"",size:8,style:{"margin-top":"8px",width:"100%"}},{default:J(()=>[se(oe,null,{default:J(()=>[(Se(!0),_t(Me,null,$r(Kn(g),H=>(Se(),Fe(U,{key:H.url,size:"small",type:c.value===H.url?"primary":"default",secondary:c.value!==H.url,onClick:ne=>$("node_mirror",H.url)},{default:J(()=>[Pe(At(H.label),1)]),_:2},1032,["type","secondary","onClick"]))),128))]),_:1}),se(k,{value:c.value,"onUpdate:value":b[4]||(b[4]=H=>c.value=H),placeholder:"自定义镜像 URL",size:"small",clearable:"",loading:p.value.node_mirror,style:{"font-family":"monospace",width:"100%"},onBlur:b[5]||(b[5]=H=>I("node_mirror",c.value))},null,8,["value","loading"])]),_:1})]),_:1})]),_:1}),se(R,{size:"small",bordered:!1},{default:J(()=>[se(L,null,{header:J(()=>[...b[18]||(b[18]=[Pe("NPM 下载镜像 (npm_mirror)",-1)])]),description:J(()=>[se(_,{depth:"3",style:{"font-size":"12px"}},{default:J(()=>[...b[19]||(b[19]=[Pe("安装 npm 时的下载地址,失焦自动保存",-1)])]),_:1})]),default:J(()=>[se(ce,{vertical:"",size:8,style:{"margin-top":"8px",width:"100%"}},{default:J(()=>[se(oe,null,{default:J(()=>[(Se(!0),_t(Me,null,$r(Kn(x),H=>(Se(),Fe(U,{key:H.url,size:"small",type:u.value===H.url?"primary":"default",secondary:u.value!==H.url,onClick:ne=>$("npm_mirror",H.url)},{default:J(()=>[Pe(At(H.label),1)]),_:2},1032,["type","secondary","onClick"]))),128))]),_:1}),se(k,{value:u.value,"onUpdate:value":b[6]||(b[6]=H=>u.value=H),placeholder:"自定义镜像 URL",size:"small",clearable:"",loading:p.value.npm_mirror,style:{"font-family":"monospace",width:"100%"},onBlur:b[7]||(b[7]=H=>I("npm_mirror",u.value))},null,8,["value","loading"])]),_:1})]),_:1})]),_:1})],64))]}),_:1})}}}),V3={class:"nvm-header-top"},N3={class:"nvm-header-tabs"},U3={class:"tab-content-container"},G3={key:0,style:{padding:"40px","text-align":"center"}},K3={key:1,style:{padding:"40px","text-align":"center"}},q3=ge({__name:"App",setup(e){const t=W(!1),o=W(""),r=W(null),n=W([]),i=W([]),a=W(""),l=W(""),s=W("installed"),d=W(!1),c=W(!1),u=W(!1),h=W(""),f=W(""),p=W(null),g=W({}),x=W(null),v=W(""),y=W("all"),I=W(!1),$=W(null),E=N(()=>I.value&&$.value?$.value:Cp),P=[{id:"installed",label:"已安装版本"},{id:"available",label:"可用版本"},{id:"registry",label:"NPM 源"},{id:"nvm-settings",label:"NVM 配置"}];async function b(H,ne="success"){ne==="success"?Kr.success(H):ne==="error"?Kr.error(H):Kr.warning(H)}const A=N(()=>{var H;return l.value?l.value==="custom"?"自定义源":((H=E.value[l.value])==null?void 0:H.label)||l.value:""}),_=N(()=>i.value.filter(H=>{const ne=y.value==="all"||H.type===y.value,ue=!v.value||H.version.includes(v.value);return ne&&ue}));async function k(){d.value=!0;try{const[H,ne,ue,me,xe,Ee]=await Promise.all([R3(),y3().catch(()=>"N/A"),xd().catch(()=>[]),C3().catch(()=>"https://registry.npmjs.org"),yp().catch(()=>({})),ll().catch(()=>null)]);if(o.value=ne,n.value=ue,a.value=me,I.value=H,g.value=xe,Ee&&(r.value=Ee),H){const{registries:Ae,current:We}=await M3();$.value=Ae,l.value=We||bd(me,Ae)}else l.value=bd(me)}catch{b("加载失败,请检查环境配置","error")}finally{d.value=!1}}async function L(){if(!(i.value.length>0)){c.value=!0;try{i.value=await w3()}catch{b("获取可用版本失败","error")}finally{c.value=!1}}}async function R(H){u.value=!0;try{await Cd(H),b(`已切换到 v${H}`),await new Promise(ne=>setTimeout(ne,800)),await k()}catch(ne){b(ne.message||"切换失败","error")}finally{u.value=!1}}async function ie(H){if(confirm(`确定删除 Node v${H}?`)){u.value=!0;try{await $3(H),b(`已删除 v${H}`),await k()}catch(ne){b(ne.message||"删除失败","error")}finally{u.value=!1}}}async function ce(H){h.value=H,f.value=`开始安装 Node v${H}...
|
|
1719
|
+
`;try{const ne=await S3(H);p.value=ne,ne.onStdout(me=>{me&&(f.value+=me)}),ne.onStderr(me=>{me&&(f.value+=me)});const ue=await ne.wait();ue===0?(f.value+=`
|
|
1720
|
+
[完成] v${H} 安装成功!`,b(`v${H} 安装成功!`),await k()):ue!==null&&(f.value+=`
|
|
1721
|
+
[错误] 安装退出,错误码: ${ue}`,b(`安装失败 (exit: ${ue})`,"error"))}catch(ne){p.value&&(f.value+=`
|
|
1722
|
+
[异常] ${ne.message||ne}`,b(ne.message||"安装失败","error"))}finally{h.value="",p.value=null}}async function U(){if(p.value){try{await p.value.kill()}catch{}p.value=null}f.value="",h.value=""}async function oe(H,ne){var ue,me;if(l.value!==H)try{I.value?await B3(H):await vd(ne),a.value=ne,l.value=H;const xe=((me=(ue=E.value)==null?void 0:ue[H])==null?void 0:me.label)||H;b(`npm 源已切换至 ${xe}`)}catch(xe){b(xe.message||"切换失败","error")}}async function Q(){var H;await k(),(H=x.value)!=null&&H.load&&await x.value.load()}return Xe(s,H=>{H==="available"&&L()}),Et(async()=>{k(),t.value=await m3.isDarkTheme(),da.onThemeChanged(H=>{t.value=(H==null?void 0:H.isDark)??!1}),da.onMainPush(async({code:H,payload:ne})=>{let ue="";if(typeof ne=="string"?ue=ne.replace(/^(node\s*version|切换node|换源|npm源|node|nvm|npm)\s*/i,"").trim().toLowerCase():ne&&typeof ne=="object"&&(ue=(ne.searchWord??ne.text??"").trim().toLowerCase()),H==="node"){const me=await xd();return(ue?me.filter(Ee=>Ee.version.toLowerCase().includes(ue)):me).map(Ee=>({title:`切换到 Node v${Ee.version}`,description:Ee.active?"当前正在使用":"点击立即切换",icon:s3,payload:{action:"switch-node",version:Ee.version}}))}else if(H==="npm"){const me=Object.entries(E.value||{});return(ue?me.filter(([Ee,Ae])=>Ee.toLowerCase().includes(ue)||Ae.label.toLowerCase().includes(ue)||Ae.url.toLowerCase().includes(ue)):me).map(([Ee,Ae])=>({title:`使用 ${Ae.label}`,description:Ae.url,icon:c3,payload:{action:"switch-npm",key:Ee,url:Ae.url}}))}return[]},async({option:H})=>{var Ee,Ae;if(!(H!=null&&H.payload))return!1;const{action:ne,version:ue,key:me,url:xe}=H.payload;try{if(ne==="switch-node")return await Cd(ue),Kr.success(`已切换到 Node v${ue}`),!1;if(ne==="switch-npm"){await vd(xe);const We=((Ae=(Ee=E.value)==null?void 0:Ee[me])==null?void 0:Ae.label)||me;return Kr.success(`npm 源已切换至 ${We}`),!1}}catch(We){return Kr.error(We.message||"操作失败"),!1}return!1}),da.onPluginEnter(H=>{var xe;if(!H)return;const{code:ne,payload:ue}=H,me=(typeof ue=="string"?ue:(ue==null?void 0:ue.searchWord)||"").trim();if(ne==="node"){s.value="installed";const Ee=me.match(/([\d.]+|lts)/i);Ee&&R(Ee[1])}else if(ne==="npm"){s.value="registry";const Ee=me.match(/(taobao|tencent|cnpm|official|yarn)/i);if(Ee){const Ae=Ee[1].toLowerCase(),We=(xe=E.value)==null?void 0:xe[Ae];We&&oe(Ae,We.url)}}})}),(H,ne)=>{const ue=TT,me=bp,xe=wS,Ee=hp,Ae=Ih,We=fr,$e=Fh,it=xi,Pt=x2,ze=ST,Qe=wT,Tt=H$,C=e$;return Se(),Fe(C,{theme:t.value?Kn(a3):null},{default:J(()=>[se(Tt,null,{default:J(()=>[se(Qe,{position:"absolute",class:"nvm-manager"},{default:J(()=>[se(ue,{bordered:"",position:"absolute",class:"nvm-header-area"},{default:J(()=>[ir("div",V3,[se(H3,{version:o.value,loading:d.value,"engine-info":r.value,onRefresh:Q},null,8,["version","loading","engine-info"])]),ir("div",N3,[se(F3,{modelValue:s.value,"onUpdate:modelValue":ne[0]||(ne[0]=w=>s.value=w),tabs:P},null,8,["modelValue"])])]),_:1}),se(ze,{position:"absolute","native-scrollbar":!1,style:{top:"104px"},class:"nvm-content-area","content-style":{padding:"12px"}},{default:J(()=>[ir("div",U3,[s.value==="installed"?(Se(),_t(Me,{key:0},[d.value?(Se(),_t("div",G3,[se(me,{size:"large"})])):n.value.length===0?(Se(),Fe(xe,{key:1,description:"未检测到已安装的 Node 版本"})):(Se(),Fe(Ee,{key:2,bordered:"",size:"small"},{default:J(()=>[(Se(!0),_t(Me,null,$r(n.value,w=>(Se(),Fe(yd,{key:w.version,version:w,"is-installed":!0,disabled:u.value,onSwitch:R,onUninstall:ie},null,8,["version","disabled"]))),128))]),_:1}))],64)):Co("",!0),s.value==="available"?(Se(),Fe(it,{key:1,vertical:"",size:12},{default:J(()=>[se(it,{align:"center"},{default:J(()=>[se(Ae,{value:v.value,"onUpdate:value":ne[1]||(ne[1]=w=>v.value=w),placeholder:"搜索版本...",round:"",style:{width:"200px"},size:"small"},null,8,["value"]),se($e,{round:""},{default:J(()=>[(Se(),_t(Me,null,$r(["all","lts","current"],w=>se(We,{key:w,size:"small",secondary:y.value!==w,type:y.value===w?"primary":"default",onClick:F=>y.value=w},{default:J(()=>[Pe(At(w==="all"?"全部":w==="lts"?"LTS":"最新"),1)]),_:2},1032,["secondary","type","onClick"])),64))]),_:1})]),_:1}),f.value?(Se(),Fe(L3,{key:0,log:f.value,onClear:U},null,8,["log"])):Co("",!0),c.value?(Se(),_t("div",K3,[se(me,{size:"large"})])):(Se(),Fe(Ee,{key:2,bordered:"",size:"small"},{default:J(()=>[(Se(!0),_t(Me,null,$r(_.value,w=>(Se(),Fe(yd,{key:w.version,version:w,"is-installing":h.value===w.version,"is-already-installed":n.value.some(F=>F.version===w.version),onInstall:ce},null,8,["version","is-installing","is-already-installed"]))),128))]),_:1})),se(Pt,{right:30,bottom:30,"visibility-height":300})]),_:1})):Co("",!0),s.value==="registry"?(Se(),Fe(O3,{key:2,"current-url":a.value,"current-key":l.value,"current-label":A.value,registries:E.value,onSwitch:oe},null,8,["current-url","current-key","current-label","registries"])):Co("",!0),s.value==="nvm-settings"?(Se(),Fe(j3,{key:3,ref_key:"nvmSettingsRef",ref:x,active:s.value==="nvm-settings","initial-settings":g.value,onSettingsChanged:k},null,8,["active","initial-settings"])):Co("",!0)])]),_:1})]),_:1})]),_:1})]),_:1},8,["theme"])}}});Rv(q3).mount("#app")});export default Y3();
|