koishi-plugin-hereditas 0.0.0 → 0.0.2
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/dist/index.js +45 -0
- package/dist/style.css +1 -0
- package/lib/index.d.ts +18 -0
- package/lib/index.js +122 -0
- package/package.json +29 -3
- package/readme.md +1 -1
package/dist/index.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import{resolveComponent as G,createElementBlock as k,openBlock as _,createVNode as A,withCtx as O,createTextVNode as Z,defineComponent as z,createElementVNode as S,warn as Oi,computed as w,getCurrentInstance as Oe,watch as fe,unref as m,onMounted as _e,watchEffect as Mi,onBeforeUnmount as We,inject as ae,ref as F,isRef as Jr,onScopeDispose as Fi,shallowRef as Rn,provide as Lt,renderSlot as re,mergeProps as rn,toRef as Vn,onUnmounted as Ni,useAttrs as Li,useSlots as Qr,nextTick as se,createCommentVNode as L,Fragment as ue,normalizeClass as $,createBlock as j,resolveDynamicComponent as me,withModifiers as Ie,toDisplayString as H,normalizeStyle as vn,Transition as gn,withDirectives as pn,vShow as hn,Text as $i,reactive as $t,h as Bi,shallowReactive as Ri,isVNode as et,render as Hn,toRefs as Pi,withKeys as On,mergeModels as eo,useModel as no,renderList as Di}from"vue";import{store as to,send as Vi}from"@koishijs/client";import{isClient as xe,useEventListener as ro,useResizeObserver as oo,useTimeoutFn as Hi}from"@vueuse/core";const Tn=(e,n)=>{const t=e.__vccOpts||e;for(const[r,o]of n)t[r]=o;return t},zi={},ji={class:"mt-6 flex justify-center"};function Ui(e,n){const t=G("el-button");return _(),k("div",ji,[A(t,{type:"primary",size:"large",round:"",onClick:n[0]||(n[0]=r=>e.$emit("hereditasNext",1))},{default:O(()=>[...n[1]||(n[1]=[Z("开始使用",-1)])]),_:1})])}const Ki=Tn(zi,[["render",Ui]]),Yi='a[href],button:not([disabled]),button:not([hidden]),:not([tabindex="-1"]),input:not([disabled]),input:not([type="hidden"]),select:not([disabled]),textarea:not([disabled])',Gi=e=>getComputedStyle(e).position==="fixed"?false:e.offsetParent!==null,lr=e=>Array.from(e.querySelectorAll(Yi)).filter(n=>Wi(n)&&Gi(n)),Wi=e=>{if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return true;if(e.disabled)return false;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return!(e.type==="hidden"||e.type==="file");case"BUTTON":case"SELECT":case"TEXTAREA":return true;default:return false}},qi=()=>xe&&/firefox/i.test(window.navigator.userAgent);/**
|
|
2
|
+
* @vue/shared v3.5.26
|
|
3
|
+
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
|
4
|
+
* @license MIT
|
|
5
|
+
**/const mn=()=>{},Xi=Object.prototype.hasOwnProperty,zn=(e,n)=>Xi.call(e,n),Ke=e=>typeof e=="function",Se=e=>typeof e=="string",yn=e=>e!==null&&typeof e=="object",Zi=e=>{const n=Object.create(null);return t=>n[t]||(n[t]=e(t))},Ji=/-\w/g,Qi=Zi(e=>e.replace(Ji,n=>n.slice(1).toUpperCase()));var ea=typeof global=="object"&&global&&global.Object===Object&&global,na=typeof self=="object"&&self&&self.Object===Object&&self,Bt=ea||na||Function("return this")(),Pe=Bt.Symbol,io=Object.prototype,ta=io.hasOwnProperty,ra=io.toString,dn=Pe?Pe.toStringTag:void 0;function oa(e){var n=ta.call(e,dn),t=e[dn];try{e[dn]=void 0;var r=true}catch{}var o=ra.call(e);return r&&(n?e[dn]=t:delete e[dn]),o}var ia=Object.prototype,aa=ia.toString;function la(e){return aa.call(e)}var sa="[object Null]",ua="[object Undefined]",sr=Pe?Pe.toStringTag:void 0;function Rt(e){return e==null?e===void 0?ua:sa:sr&&sr in Object(e)?oa(e):la(e)}function Pt(e){return e!=null&&typeof e=="object"}var ca="[object Symbol]";function Dt(e){return typeof e=="symbol"||Pt(e)&&Rt(e)==ca}function da(e,n){for(var t=-1,r=e==null?0:e.length,o=Array(r);++t<r;)o[t]=n(e[t],t,e);return o}var kn=Array.isArray,ur=Pe?Pe.prototype:void 0,cr=ur?ur.toString:void 0;function ao(e){if(typeof e=="string")return e;if(kn(e))return da(e,ao)+"";if(Dt(e))return cr?cr.call(e):"";var n=e+"";return n=="0"&&1/e==-1/0?"-0":n}function jn(e){var n=typeof e;return e!=null&&(n=="object"||n=="function")}function fa(e){return e}var pa="[object AsyncFunction]",ha="[object Function]",ma="[object GeneratorFunction]",va="[object Proxy]";function ga(e){if(!jn(e))return false;var n=Rt(e);return n==ha||n==ma||n==pa||n==va}var dt=Bt["__core-js_shared__"],dr=function(){var e=/[^.]+$/.exec(dt&&dt.keys&&dt.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function ya(e){return!!dr&&dr in e}var ba=Function.prototype,xa=ba.toString;function _a(e){if(e!=null){try{return xa.call(e)}catch{}try{return e+""}catch{}}return""}var wa=/[\\^$.*+?()[\]{}|]/g,Ca=/^\[object .+?Constructor\]$/,Sa=Function.prototype,Ea=Object.prototype,Aa=Sa.toString,Ta=Ea.hasOwnProperty,ka=RegExp("^"+Aa.call(Ta).replace(wa,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Ia(e){if(!jn(e)||ya(e))return false;var n=ga(e)?ka:Ca;return n.test(_a(e))}function Oa(e,n){return e==null?void 0:e[n]}function Vt(e,n){var t=Oa(e,n);return Ia(t)?t:void 0}function Ma(e,n,t){switch(t.length){case 0:return e.call(n);case 1:return e.call(n,t[0]);case 2:return e.call(n,t[0],t[1]);case 3:return e.call(n,t[0],t[1],t[2])}return e.apply(n,t)}var Fa=800,Na=16,La=Date.now;function $a(e){var n=0,t=0;return function(){var r=La(),o=Na-(r-t);if(t=r,o>0){if(++n>=Fa)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}function Ba(e){return function(){return e}}var Un=function(){try{var e=Vt(Object,"defineProperty");return e({},"",{}),e}catch{}}(),Ra=Un?function(e,n){return Un(e,"toString",{configurable:true,enumerable:false,value:Ba(n),writable:true})}:fa,Pa=$a(Ra),Da=9007199254740991,Va=/^(?:0|[1-9]\d*)$/;function lo(e,n){var t=typeof e;return n=n??Da,!!n&&(t=="number"||t!="symbol"&&Va.test(e))&&e>-1&&e%1==0&&e<n}function Ha(e,n,t){n=="__proto__"&&Un?Un(e,n,{configurable:true,enumerable:true,value:t,writable:true}):e[n]=t}function so(e,n){return e===n||e!==e&&n!==n}var za=Object.prototype,ja=za.hasOwnProperty;function Ua(e,n,t){var r=e[n];(!(ja.call(e,n)&&so(r,t))||t===void 0&&!(n in e))&&Ha(e,n,t)}var fr=Math.max;function Ka(e,n,t){return n=fr(n===void 0?e.length-1:n,0),function(){for(var r=arguments,o=-1,i=fr(r.length-n,0),a=Array(i);++o<i;)a[o]=r[n+o];o=-1;for(var l=Array(n+1);++o<n;)l[o]=r[o];return l[n]=t(a),Ma(e,this,l)}}var Ya=9007199254740991;function Ga(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=Ya}var Wa="[object Arguments]";function pr(e){return Pt(e)&&Rt(e)==Wa}var uo=Object.prototype,qa=uo.hasOwnProperty,Xa=uo.propertyIsEnumerable,co=pr(function(){return arguments}())?pr:function(e){return Pt(e)&&qa.call(e,"callee")&&!Xa.call(e,"callee")},Za=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ja=/^\w*$/;function Qa(e,n){if(kn(e))return false;var t=typeof e;return t=="number"||t=="symbol"||t=="boolean"||e==null||Dt(e)?true:Ja.test(e)||!Za.test(e)||n!=null&&e in Object(n)}var bn=Vt(Object,"create");function el(){this.__data__=bn?bn(null):{},this.size=0}function nl(e){var n=this.has(e)&&delete this.__data__[e];return this.size-=n?1:0,n}var tl="__lodash_hash_undefined__",rl=Object.prototype,ol=rl.hasOwnProperty;function il(e){var n=this.__data__;if(bn){var t=n[e];return t===tl?void 0:t}return ol.call(n,e)?n[e]:void 0}var al=Object.prototype,ll=al.hasOwnProperty;function sl(e){var n=this.__data__;return bn?n[e]!==void 0:ll.call(n,e)}var ul="__lodash_hash_undefined__";function cl(e,n){var t=this.__data__;return this.size+=this.has(e)?0:1,t[e]=bn&&n===void 0?ul:n,this}function Ye(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}Ye.prototype.clear=el;Ye.prototype.delete=nl;Ye.prototype.get=il;Ye.prototype.has=sl;Ye.prototype.set=cl;function dl(){this.__data__=[],this.size=0}function nt(e,n){for(var t=e.length;t--;)if(so(e[t][0],n))return t;return-1}var fl=Array.prototype,pl=fl.splice;function hl(e){var n=this.__data__,t=nt(n,e);if(t<0)return false;var r=n.length-1;return t==r?n.pop():pl.call(n,t,1),--this.size,true}function ml(e){var n=this.__data__,t=nt(n,e);return t<0?void 0:n[t][1]}function vl(e){return nt(this.__data__,e)>-1}function gl(e,n){var t=this.__data__,r=nt(t,e);return r<0?(++this.size,t.push([e,n])):t[r][1]=n,this}function ln(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}ln.prototype.clear=dl;ln.prototype.delete=hl;ln.prototype.get=ml;ln.prototype.has=vl;ln.prototype.set=gl;var yl=Vt(Bt,"Map");function bl(){this.size=0,this.__data__={hash:new Ye,map:new(yl||ln),string:new Ye}}function xl(e){var n=typeof e;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?e!=="__proto__":e===null}function tt(e,n){var t=e.__data__;return xl(n)?t[typeof n=="string"?"string":"hash"]:t.map}function _l(e){var n=tt(this,e).delete(e);return this.size-=n?1:0,n}function wl(e){return tt(this,e).get(e)}function Cl(e){return tt(this,e).has(e)}function Sl(e,n){var t=tt(this,e),r=t.size;return t.set(e,n),this.size+=t.size==r?0:1,this}function qe(e){var n=-1,t=e==null?0:e.length;for(this.clear();++n<t;){var r=e[n];this.set(r[0],r[1])}}qe.prototype.clear=bl;qe.prototype.delete=_l;qe.prototype.get=wl;qe.prototype.has=Cl;qe.prototype.set=Sl;var El="Expected a function";function Ht(e,n){if(typeof e!="function"||n!=null&&typeof n!="function")throw new TypeError(El);var t=function(){var r=arguments,o=n?n.apply(this,r):r[0],i=t.cache;if(i.has(o))return i.get(o);var a=e.apply(this,r);return t.cache=i.set(o,a)||i,a};return t.cache=new(Ht.Cache||qe),t}Ht.Cache=qe;var Al=500;function Tl(e){var n=Ht(e,function(r){return t.size===Al&&t.clear(),r}),t=n.cache;return n}var kl=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Il=/\\(\\)?/g,Ol=Tl(function(e){var n=[];return e.charCodeAt(0)===46&&n.push(""),e.replace(kl,function(t,r,o,i){n.push(o?i.replace(Il,"$1"):r||t)}),n});function Ml(e){return e==null?"":ao(e)}function rt(e,n){return kn(e)?e:Qa(e,n)?[e]:Ol(Ml(e))}function zt(e){if(typeof e=="string"||Dt(e))return e;var n=e+"";return n=="0"&&1/e==-1/0?"-0":n}function fo(e,n){n=rt(n,e);for(var t=0,r=n.length;e!=null&&t<r;)e=e[zt(n[t++])];return t&&t==r?e:void 0}function Fl(e,n,t){var r=e==null?void 0:fo(e,n);return r===void 0?t:r}function Nl(e,n){for(var t=-1,r=n.length,o=e.length;++t<r;)e[o+t]=n[t];return e}var hr=Pe?Pe.isConcatSpreadable:void 0;function Ll(e){return kn(e)||co(e)||!!(hr&&e&&e[hr])}function $l(e,n,t,r,o){var i=-1,a=e.length;for(t||(t=Ll),o||(o=[]);++i<a;){var l=e[i];t(l)?Nl(o,l):o[o.length]=l}return o}function Bl(e){var n=e==null?0:e.length;return n?$l(e):[]}function Rl(e){return Pa(Ka(e,void 0,Bl),e+"")}function Pl(e,n){return e!=null&&n in Object(e)}function Dl(e,n,t){n=rt(n,e);for(var r=-1,o=n.length,i=false;++r<o;){var a=zt(n[r]);if(!(i=e!=null&&t(e,a)))break;e=e[a]}return i||++r!=o?i:(o=e==null?0:e.length,!!o&&Ga(o)&&lo(a,o)&&(kn(e)||co(e)))}function Vl(e,n){return e!=null&&Dl(e,n,Pl)}function po(e){for(var n=-1,t=e==null?0:e.length,r={};++n<t;){var o=e[n];r[o[0]]=o[1]}return r}function ho(e){return e==null}function Hl(e,n,t,r){if(!jn(e))return e;n=rt(n,e);for(var o=-1,i=n.length,a=i-1,l=e;l!=null&&++o<i;){var s=zt(n[o]),u=t;if(s==="__proto__"||s==="constructor"||s==="prototype")return e;if(o!=a){var p=l[s];u=void 0,u===void 0&&(u=jn(p)?p:lo(n[o+1])?[]:{})}Ua(l,s,u),l=l[s]}return e}function zl(e,n,t){for(var r=-1,o=n.length,i={};++r<o;){var a=n[r],l=fo(e,a);t(l,a)&&Hl(i,rt(a,e),l)}return i}function jl(e,n){return zl(e,n,function(t,r){return Vl(e,r)})}var Ul=Rl(function(e,n){return e==null?{}:jl(e,n)});const mo=e=>e===void 0,Ge=e=>typeof e=="number",_t=e=>typeof Element>"u"?false:e instanceof Element,Kl=e=>Se(e)?!Number.isNaN(Number(e)):false,mr=e=>Object.keys(e);class Yl extends Error{constructor(n){super(n),this.name="ElementPlusError"}}function Gl(e,n){throw new Yl(`[${e}] ${n}`)}const vo=(e="")=>e.split(" ").filter(n=>!!n.trim()),vr=(e,n)=>{if(!e||!n)return false;if(n.includes(" "))throw new Error("className should not contain space.");return e.classList.contains(n)},Wl=(e,n)=>{!e||!n.trim()||e.classList.add(...vo(n))},ql=(e,n)=>{!e||!n.trim()||e.classList.remove(...vo(n))},Xl=(e,n)=>{var t;if(!xe||!e||!n)return"";let r=Qi(n);r==="float"&&(r="cssFloat");try{const o=e.style[r];if(o)return o;const i=(t=document.defaultView)==null?void 0:t.getComputedStyle(e,"");return i?i[r]:""}catch{return e.style[r]}};function xn(e,n="px"){if(!e)return"";if(Ge(e)||Kl(e))return`${e}${n}`;if(Se(e))return e}let Mn;const Zl=e=>{var n;if(!xe)return 0;if(Mn!==void 0)return Mn;const t=document.createElement("div");t.className=`${e}-scrollbar__wrap`,t.style.visibility="hidden",t.style.width="100px",t.style.position="absolute",t.style.top="-9999px",document.body.appendChild(t);const r=t.offsetWidth;t.style.overflow="scroll";const o=document.createElement("div");o.style.width="100%",t.appendChild(o);const i=o.offsetWidth;return(n=t.parentNode)==null||n.removeChild(t),Mn=r-i,Mn};/*! Element Plus Icons Vue v2.3.2 */var Jl=z({name:"CircleCheck",__name:"circle-check",setup(e){return(n,t)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[S("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"}),S("path",{fill:"currentColor",d:"M745.344 361.344a32 32 0 0 1 45.312 45.312l-288 288a32 32 0 0 1-45.312 0l-160-160a32 32 0 1 1 45.312-45.312L480 626.752z"})]))}}),Ql=Jl,es=z({name:"CircleCloseFilled",__name:"circle-close-filled",setup(e){return(n,t)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[S("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 393.664L407.936 353.6a38.4 38.4 0 1 0-54.336 54.336L457.664 512 353.6 616.064a38.4 38.4 0 1 0 54.336 54.336L512 566.336 616.064 670.4a38.4 38.4 0 1 0 54.336-54.336L566.336 512 670.4 407.936a38.4 38.4 0 1 0-54.336-54.336z"})]))}}),go=es,ns=z({name:"CircleClose",__name:"circle-close",setup(e){return(n,t)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[S("path",{fill:"currentColor",d:"m466.752 512-90.496-90.496a32 32 0 0 1 45.248-45.248L512 466.752l90.496-90.496a32 32 0 1 1 45.248 45.248L557.248 512l90.496 90.496a32 32 0 1 1-45.248 45.248L512 557.248l-90.496 90.496a32 32 0 0 1-45.248-45.248z"}),S("path",{fill:"currentColor",d:"M512 896a384 384 0 1 0 0-768 384 384 0 0 0 0 768m0 64a448 448 0 1 1 0-896 448 448 0 0 1 0 896"})]))}}),yo=ns,ts=z({name:"Close",__name:"close",setup(e){return(n,t)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[S("path",{fill:"currentColor",d:"M764.288 214.592 512 466.88 259.712 214.592a31.936 31.936 0 0 0-45.12 45.12L466.752 512 214.528 764.224a31.936 31.936 0 1 0 45.12 45.184L512 557.184l252.288 252.288a31.936 31.936 0 0 0 45.12-45.12L557.12 512.064l252.288-252.352a31.936 31.936 0 1 0-45.12-45.184z"})]))}}),rs=ts,os=z({name:"Hide",__name:"hide",setup(e){return(n,t)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[S("path",{fill:"currentColor",d:"M876.8 156.8c0-9.6-3.2-16-9.6-22.4s-12.8-9.6-22.4-9.6-16 3.2-22.4 9.6L736 220.8c-64-32-137.6-51.2-224-60.8-160 16-288 73.6-377.6 176S0 496 0 512s48 73.6 134.4 176c22.4 25.6 44.8 48 73.6 67.2l-86.4 89.6c-6.4 6.4-9.6 12.8-9.6 22.4s3.2 16 9.6 22.4 12.8 9.6 22.4 9.6 16-3.2 22.4-9.6l704-710.4c3.2-6.4 6.4-12.8 6.4-22.4m-646.4 528Q115.2 579.2 76.8 512q43.2-72 153.6-172.8C304 272 400 230.4 512 224c64 3.2 124.8 19.2 176 44.8l-54.4 54.4C598.4 300.8 560 288 512 288c-64 0-115.2 22.4-160 64s-64 96-64 160c0 48 12.8 89.6 35.2 124.8L256 707.2c-9.6-6.4-19.2-16-25.6-22.4m140.8-96Q352 555.2 352 512c0-44.8 16-83.2 48-112s67.2-48 112-48c28.8 0 54.4 6.4 73.6 19.2zM889.599 336c-12.8-16-28.8-28.8-41.6-41.6l-48 48c73.6 67.2 124.8 124.8 150.4 169.6q-43.2 72-153.6 172.8c-73.6 67.2-172.8 108.8-284.8 115.2-51.2-3.2-99.2-12.8-140.8-28.8l-48 48c57.6 22.4 118.4 38.4 188.8 44.8 160-16 288-73.6 377.6-176S1024 528 1024 512s-48.001-73.6-134.401-176"}),S("path",{fill:"currentColor",d:"M511.998 672c-12.8 0-25.6-3.2-38.4-6.4l-51.2 51.2c28.8 12.8 57.6 19.2 89.6 19.2 64 0 115.2-22.4 160-64 41.6-41.6 64-96 64-160 0-32-6.4-64-19.2-89.6l-51.2 51.2c3.2 12.8 6.4 25.6 6.4 38.4 0 44.8-16 83.2-48 112s-67.2 48-112 48"})]))}}),is=os,as=z({name:"InfoFilled",__name:"info-filled",setup(e){return(n,t)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[S("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896.064A448 448 0 0 1 512 64m67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344M590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.99 12.99 0 0 1-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 0 1 7.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"})]))}}),bo=as,ls=z({name:"Loading",__name:"loading",setup(e){return(n,t)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[S("path",{fill:"currentColor",d:"M512 64a32 32 0 0 1 32 32v192a32 32 0 0 1-64 0V96a32 32 0 0 1 32-32m0 640a32 32 0 0 1 32 32v192a32 32 0 1 1-64 0V736a32 32 0 0 1 32-32m448-192a32 32 0 0 1-32 32H736a32 32 0 1 1 0-64h192a32 32 0 0 1 32 32m-640 0a32 32 0 0 1-32 32H96a32 32 0 0 1 0-64h192a32 32 0 0 1 32 32M195.2 195.2a32 32 0 0 1 45.248 0L376.32 331.008a32 32 0 0 1-45.248 45.248L195.2 240.448a32 32 0 0 1 0-45.248m452.544 452.544a32 32 0 0 1 45.248 0L828.8 783.552a32 32 0 0 1-45.248 45.248L647.744 692.992a32 32 0 0 1 0-45.248M828.8 195.264a32 32 0 0 1 0 45.184L692.992 376.32a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0m-452.544 452.48a32 32 0 0 1 0 45.248L240.448 828.8a32 32 0 0 1-45.248-45.248l135.808-135.808a32 32 0 0 1 45.248 0"})]))}}),Kn=ls,ss=z({name:"SuccessFilled",__name:"success-filled",setup(e){return(n,t)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[S("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m-55.808 536.384-99.52-99.584a38.4 38.4 0 1 0-54.336 54.336l126.72 126.72a38.27 38.27 0 0 0 54.336 0l262.4-262.464a38.4 38.4 0 1 0-54.272-54.336z"})]))}}),xo=ss,us=z({name:"View",__name:"view",setup(e){return(n,t)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[S("path",{fill:"currentColor",d:"M512 160c320 0 512 352 512 352S832 864 512 864 0 512 0 512s192-352 512-352m0 64c-225.28 0-384.128 208.064-436.8 288 52.608 79.872 211.456 288 436.8 288 225.28 0 384.128-208.064 436.8-288-52.608-79.872-211.456-288-436.8-288m0 64a224 224 0 1 1 0 448 224 224 0 0 1 0-448m0 64a160.19 160.19 0 0 0-160 160c0 88.192 71.744 160 160 160s160-71.808 160-160-71.744-160-160-160"})]))}}),cs=us,ds=z({name:"WarningFilled",__name:"warning-filled",setup(e){return(n,t)=>(_(),k("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 1024 1024"},[S("path",{fill:"currentColor",d:"M512 64a448 448 0 1 1 0 896 448 448 0 0 1 0-896m0 192a58.43 58.43 0 0 0-58.24 63.744l23.36 256.384a35.072 35.072 0 0 0 69.76 0l23.296-256.384A58.43 58.43 0 0 0 512 256m0 512a51.2 51.2 0 1 0 0-102.4 51.2 51.2 0 0 0 0 102.4"})]))}}),_o=ds;const wo="__epPropKey",ee=e=>e,fs=e=>yn(e)&&!!e[wo],Co=(e,n)=>{if(!yn(e)||fs(e))return e;const{values:t,required:r,default:o,type:i,validator:a}=e,s={type:i,required:!!r,validator:t||a?u=>{let p=false,c=[];if(t&&(c=Array.from(t),zn(e,"default")&&c.push(o),p||(p=c.includes(u))),a&&(p||(p=a(u))),!p&&c.length>0){const f=[...new Set(c)].map(b=>JSON.stringify(b)).join(", ");Oi(`Invalid prop: validation failed${n?` for prop "${n}"`:""}. Expected one of [${f}], got value ${JSON.stringify(u)}.`)}return p}:void 0,[wo]:true};return zn(e,"default")&&(s.default=o),s},Fe=e=>po(Object.entries(e).map(([n,t])=>[n,Co(t,n)])),_n=ee([String,Object,Function]),So={Close:rs,SuccessFilled:xo,InfoFilled:bo,WarningFilled:_o,CircleCloseFilled:go},Yn={success:xo,warning:_o,error:go,info:bo},ps={validating:Kn,success:Ql,error:yo},ot=(e,n)=>{if(e.install=t=>{for(const r of[e,...Object.values(n??{})])t.component(r.name,r)},n)for(const[t,r]of Object.entries(n))e[t]=r;return e},hs=(e,n)=>(e.install=t=>{e._context=t._context,t.config.globalProperties[n]=e},e),ms=e=>(e.install=mn,e),it={tab:"Tab",esc:"Escape"},wt="update:modelValue",Eo=["","default","small","large"],vs=e=>["",...Eo].includes(e);var Pn=(e=>(e[e.TEXT=1]="TEXT",e[e.CLASS=2]="CLASS",e[e.STYLE=4]="STYLE",e[e.PROPS=8]="PROPS",e[e.FULL_PROPS=16]="FULL_PROPS",e[e.HYDRATE_EVENTS=32]="HYDRATE_EVENTS",e[e.STABLE_FRAGMENT=64]="STABLE_FRAGMENT",e[e.KEYED_FRAGMENT=128]="KEYED_FRAGMENT",e[e.UNKEYED_FRAGMENT=256]="UNKEYED_FRAGMENT",e[e.NEED_PATCH=512]="NEED_PATCH",e[e.DYNAMIC_SLOTS=1024]="DYNAMIC_SLOTS",e[e.HOISTED=-1]="HOISTED",e[e.BAIL=-2]="BAIL",e))(Pn||{});const gs=e=>/([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(e),Ao=e=>e,ys=["class","style"],bs=/^on[A-Z]/,xs=(e={})=>{const{excludeListeners:n=false,excludeKeys:t}=e,r=w(()=>((t==null?void 0:t.value)||[]).concat(ys)),o=Oe();return o?w(()=>{var i;return po(Object.entries((i=o.proxy)==null?void 0:i.$attrs).filter(([a])=>!r.value.includes(a)&&!(n&&bs.test(a))))}):w(()=>({}))},Gn=({from:e,replacement:n,scope:t,version:r,ref:o,type:i="API"},a)=>{fe(()=>m(a),l=>{},{immediate:true})},_s=(e,n,t,r)=>{let o={offsetX:0,offsetY:0};const i=s=>{const u=s.clientX,p=s.clientY,{offsetX:c,offsetY:f}=o,b=e.value.getBoundingClientRect(),h=b.left,d=b.top,v=b.width,g=b.height,C=document.documentElement.clientWidth,D=document.documentElement.clientHeight,U=-h+c,Y=-d+f,q=C-h-v+c,M=D-d-g+f,y=B=>{let R=c+B.clientX-u,N=f+B.clientY-p;r!=null&&r.value||(R=Math.min(Math.max(R,U),q),N=Math.min(Math.max(N,Y),M)),o={offsetX:R,offsetY:N},e.value&&(e.value.style.transform=`translate(${xn(R)}, ${xn(N)})`)},E=()=>{document.removeEventListener("mousemove",y),document.removeEventListener("mouseup",E)};document.addEventListener("mousemove",y),document.addEventListener("mouseup",E)},a=()=>{n.value&&e.value&&n.value.addEventListener("mousedown",i)},l=()=>{n.value&&e.value&&n.value.removeEventListener("mousedown",i)};_e(()=>{Mi(()=>{t.value?a():l()})}),We(()=>{l()})};var ws={name:"en",el:{breadcrumb:{label:"Breadcrumb"},colorpicker:{confirm:"OK",clear:"Clear",defaultLabel:"color picker",description:"current color is {color}. press enter to select a new color."},datepicker:{now:"Now",today:"Today",cancel:"Cancel",clear:"Clear",confirm:"OK",dateTablePrompt:"Use the arrow keys and enter to select the day of the month",monthTablePrompt:"Use the arrow keys and enter to select the month",yearTablePrompt:"Use the arrow keys and enter to select the year",selectedDate:"Selected date",selectDate:"Select date",selectTime:"Select time",startDate:"Start Date",startTime:"Start Time",endDate:"End Date",endTime:"End Time",prevYear:"Previous Year",nextYear:"Next Year",prevMonth:"Previous Month",nextMonth:"Next Month",year:"",month1:"January",month2:"February",month3:"March",month4:"April",month5:"May",month6:"June",month7:"July",month8:"August",month9:"September",month10:"October",month11:"November",month12:"December",week:"week",weeks:{sun:"Sun",mon:"Mon",tue:"Tue",wed:"Wed",thu:"Thu",fri:"Fri",sat:"Sat"},weeksFull:{sun:"Sunday",mon:"Monday",tue:"Tuesday",wed:"Wednesday",thu:"Thursday",fri:"Friday",sat:"Saturday"},months:{jan:"Jan",feb:"Feb",mar:"Mar",apr:"Apr",may:"May",jun:"Jun",jul:"Jul",aug:"Aug",sep:"Sep",oct:"Oct",nov:"Nov",dec:"Dec"}},inputNumber:{decrease:"decrease number",increase:"increase number"},select:{loading:"Loading",noMatch:"No matching data",noData:"No data",placeholder:"Select"},dropdown:{toggleDropdown:"Toggle Dropdown"},cascader:{noMatch:"No matching data",loading:"Loading",placeholder:"Select",noData:"No data"},pagination:{goto:"Go to",pagesize:"/page",total:"Total {total}",pageClassifier:"",page:"Page",prev:"Go to previous page",next:"Go to next page",currentPage:"page {pager}",prevPages:"Previous {pager} pages",nextPages:"Next {pager} pages",deprecationWarning:"Deprecated usages detected, please refer to the el-pagination documentation for more details"},dialog:{close:"Close this dialog"},drawer:{close:"Close this dialog"},messagebox:{title:"Message",confirm:"OK",cancel:"Cancel",error:"Illegal input",close:"Close this dialog"},upload:{deleteTip:"press delete to remove",delete:"Delete",preview:"Preview",continue:"Continue"},slider:{defaultLabel:"slider between {min} and {max}",defaultRangeStartLabel:"pick start value",defaultRangeEndLabel:"pick end value"},table:{emptyText:"No Data",confirmFilter:"Confirm",resetFilter:"Reset",clearFilter:"All",sumText:"Sum"},tour:{next:"Next",previous:"Previous",finish:"Finish"},tree:{emptyText:"No Data"},transfer:{noMatch:"No matching data",noData:"No data",titles:["List 1","List 2"],filterPlaceholder:"Enter keyword",noCheckedFormat:"{total} items",hasCheckedFormat:"{checked}/{total} checked"},image:{error:"FAILED"},pageHeader:{title:"Back"},popconfirm:{confirmButtonText:"Yes",cancelButtonText:"No"},carousel:{leftArrow:"Carousel arrow left",rightArrow:"Carousel arrow right",indicator:"Carousel switch to index {index}"}}};const Cs=e=>(n,t)=>Ss(n,t,m(e)),Ss=(e,n,t)=>Fl(t,e,e).replace(/\{(\w+)\}/g,(r,o)=>{var i;return`${(i=n==null?void 0:n[o])!=null?i:`{${o}}`}`}),Es=e=>{const n=w(()=>m(e).name),t=Jr(e)?e:F(e);return{lang:n,locale:t,t:Cs(e)}},To=Symbol("localeContextKey"),As=e=>{const n=e||ae(To,F());return Es(w(()=>n.value||ws))},Dn="el",Ts="is-",He=(e,n,t,r,o)=>{let i=`${e}-${n}`;return t&&(i+=`-${t}`),r&&(i+=`__${r}`),o&&(i+=`--${o}`),i},ko=Symbol("namespaceContextKey"),Io=e=>{const n=e||(Oe()?ae(ko,F(Dn)):F(Dn));return w(()=>m(n)||Dn)},Ae=(e,n)=>{const t=Io(n);return{namespace:t,b:(d="")=>He(t.value,e,d,"",""),e:d=>d?He(t.value,e,"",d,""):"",m:d=>d?He(t.value,e,"","",d):"",be:(d,v)=>d&&v?He(t.value,e,d,v,""):"",em:(d,v)=>d&&v?He(t.value,e,"",d,v):"",bm:(d,v)=>d&&v?He(t.value,e,d,"",v):"",bem:(d,v,g)=>d&&v&&g?He(t.value,e,d,v,g):"",is:(d,...v)=>{const g=v.length>=1?v[0]:true;return d&&g?`${Ts}${d}`:""},cssVar:d=>{const v={};for(const g in d)d[g]&&(v[`--${t.value}-${g}`]=d[g]);return v},cssVarName:d=>`--${t.value}-${d}`,cssVarBlock:d=>{const v={};for(const g in d)d[g]&&(v[`--${t.value}-${e}-${g}`]=d[g]);return v},cssVarBlockName:d=>`--${t.value}-${e}-${d}`}},ks=(e,n={})=>{Jr(e)||Gl("[useLockscreen]","You need to pass a ref param to this function");const t=n.ns||Ae("popup"),r=w(()=>t.bm("parent","hidden"));if(!xe||vr(document.body,r.value))return;let o=0,i=false,a="0";const l=()=>{setTimeout(()=>{ql(document==null?void 0:document.body,r.value),i&&document&&(document.body.style.width=a)},200)};fe(e,s=>{if(!s){l();return}i=!vr(document.body,r.value),i&&(a=document.body.style.width),o=Zl(t.namespace.value);const u=document.documentElement.clientHeight<document.body.scrollHeight,p=Xl(document.body,"overflowY");o>0&&(u||p==="scroll")&&i&&(document.body.style.width=`calc(100% - ${o}px)`),Wl(document.body,r.value)}),Fi(()=>l())},Oo=e=>{const n=Oe();return w(()=>{var t,r;return(r=(t=n==null?void 0:n.proxy)==null?void 0:t.$props)==null?void 0:r[e]})},Mo=e=>{if(!e)return{onClick:mn,onMousedown:mn,onMouseup:mn};let n=false,t=false;return{onClick:a=>{n&&t&&e(a),n=t=false},onMousedown:a=>{n=a.target===a.currentTarget},onMouseup:a=>{t=a.target===a.currentTarget}}},gr={prefix:Math.floor(Math.random()*1e4),current:0},Is=Symbol("elIdInjection"),Os=()=>Oe()?ae(Is,gr):gr,Ct=e=>{const n=Os(),t=Io();return w(()=>m(e)||`${t.value}-id-${n.prefix}-${n.current++}`)};let Qe=[];const yr=e=>{const n=e;n.key===it.esc&&Qe.forEach(t=>t(n))},Ms=e=>{_e(()=>{Qe.length===0&&document.addEventListener("keydown",yr),xe&&Qe.push(e)}),We(()=>{Qe=Qe.filter(n=>n!==e),Qe.length===0&&xe&&document.removeEventListener("keydown",yr)})},br={current:0},xr=F(0),Fo=2e3,_r=Symbol("elZIndexContextKey"),No=Symbol("zIndexContextKey"),Fs=e=>{const n=Oe()?ae(_r,br):br,t=e||(Oe()?ae(No,void 0):void 0),r=w(()=>{const a=m(t);return Ge(a)?a:Fo}),o=w(()=>r.value+xr.value),i=()=>(n.current++,xr.value=n.current,o.value);return!xe&&ae(_r),{initialZIndex:r,currentZIndex:o,nextZIndex:i}};function Ns(e){const n=F();function t(){if(e.value==null)return;const{selectionStart:o,selectionEnd:i,value:a}=e.value;if(o==null||i==null)return;const l=a.slice(0,Math.max(0,o)),s=a.slice(Math.max(0,i));n.value={selectionStart:o,selectionEnd:i,value:a,beforeTxt:l,afterTxt:s}}function r(){if(e.value==null||n.value==null)return;const{value:o}=e.value,{beforeTxt:i,afterTxt:a,selectionStart:l}=n.value;if(i==null||a==null||l==null)return;let s=o.length;if(o.endsWith(a))s=o.length-a.length;else if(o.startsWith(i))s=i.length;else{const u=i[l-1],p=o.indexOf(u,l-1);p!==-1&&(s=p+1)}e.value.setSelectionRange(s,s)}return[t,r]}const jt=Co({type:String,values:Eo,required:false}),Lo=Symbol("size"),Ls=()=>{const e=ae(Lo,{});return w(()=>m(e.size)||"")};function $s(e,{afterFocus:n,beforeBlur:t,afterBlur:r}={}){const o=Oe(),{emit:i}=o,a=Rn(),l=F(false),s=c=>{l.value||(l.value=true,i("focus",c),n==null||n())},u=c=>{var f;Ke(t)&&t(c)||c.relatedTarget&&((f=a.value)!=null&&f.contains(c.relatedTarget))||(l.value=false,i("blur",c),r==null||r())},p=()=>{var c;(c=e.value)==null||c.focus()};return fe(a,c=>{c&&c.setAttribute("tabindex","-1")}),ro(a,"click",p),{wrapperRef:a,isFocused:l,handleFocus:s,handleBlur:u}}const Bs=Symbol("emptyValuesContextKey"),Rs=Fe({emptyValues:Array,valueOnClear:{type:[String,Number,Boolean,Function],default:void 0,validator:e=>Ke(e)?!e():!e}}),Ps=Fe({ariaLabel:String,ariaOrientation:{type:String,values:["horizontal","vertical","undefined"]},ariaControls:String}),Ds=e=>Ul(Ps,e),$o=Symbol(),Wn=F();function Ut(e,n=void 0){const t=Oe()?ae($o,Wn):Wn;return e?w(()=>{var r,o;return(o=(r=t.value)==null?void 0:r[e])!=null?o:n}):t}function Bo(e,n){const t=Ut(),r=Ae(e,w(()=>{var l;return((l=t.value)==null?void 0:l.namespace)||Dn})),o=As(w(()=>{var l;return(l=t.value)==null?void 0:l.locale})),i=Fs(w(()=>{var l;return((l=t.value)==null?void 0:l.zIndex)||Fo})),a=w(()=>{var l;return m(n)||((l=t.value)==null?void 0:l.size)||""});return Ro(w(()=>m(t)||{})),{ns:r,locale:o,zIndex:i,size:a}}const Ro=(e,n,t=false)=>{var r;const o=!!Oe(),i=o?Ut():void 0,a=(r=void 0)!=null?r:o?Lt:void 0;if(!a)return;const l=w(()=>{const s=m(e);return i!=null&&i.value?Vs(i.value,s):s});return a($o,l),a(To,w(()=>l.value.locale)),a(ko,w(()=>l.value.namespace)),a(No,w(()=>l.value.zIndex)),a(Lo,{size:w(()=>l.value.size||"")}),a(Bs,w(()=>({emptyValues:l.value.emptyValues,valueOnClear:l.value.valueOnClear}))),(t||!Wn.value)&&(Wn.value=l.value),l},Vs=(e,n)=>{const t=[...new Set([...mr(e),...mr(n)])],r={};for(const o of t)r[o]=n[o]!==void 0?n[o]:e[o];return r},Hs=Fe({a11y:{type:Boolean,default:true},locale:{type:ee(Object)},size:jt,button:{type:ee(Object)},experimentalFeatures:{type:ee(Object)},keyboardNavigation:{type:Boolean,default:true},message:{type:ee(Object)},zIndex:Number,namespace:{type:String,default:"el"},...Rs}),St={};z({name:"ElConfigProvider",props:Hs,setup(e,{slots:n}){fe(()=>e.message,r=>{Object.assign(St,r??{})},{immediate:true,deep:true});const t=Ro(e);return()=>re(n,"default",{config:t==null?void 0:t.value})}});var Ve=(e,n)=>{const t=e.__vccOpts||e;for(const[r,o]of n)t[r]=o;return t};const zs=Fe({size:{type:ee([Number,String])},color:{type:String}}),js=z({name:"ElIcon",inheritAttrs:false}),Us=z({...js,props:zs,setup(e){const n=e,t=Ae("icon"),r=w(()=>{const{size:o,color:i}=n;return!o&&!i?{}:{fontSize:mo(o)?void 0:xn(o),"--color":i}});return(o,i)=>(_(),k("i",rn({class:m(t).b(),style:m(r)},o.$attrs),[re(o.$slots,"default")],16))}});var Ks=Ve(Us,[["__file","icon.vue"]]);const we=ot(Ks),Kt=Symbol("formContextKey"),Po=Symbol("formItemContextKey"),Do=(e,n={})=>{const t=F(void 0),r=n.prop?t:Oo("size"),o=n.global?t:Ls(),i=n.form?{size:void 0}:ae(Kt,void 0),a=n.formItem?{size:void 0}:ae(Po,void 0);return w(()=>r.value||m(e)||(a==null?void 0:a.size)||(i==null?void 0:i.size)||o.value||"")},Yt=e=>{const n=Oo("disabled"),t=ae(Kt,void 0);return w(()=>n.value||m(e)||(t==null?void 0:t.disabled)||false)},Vo=()=>{const e=ae(Kt,void 0),n=ae(Po,void 0);return{form:e,formItem:n}},Ys=(e,{formItemContext:n,disableIdGeneration:t,disableIdManagement:r})=>{t||(t=F(false)),r||(r=F(false));const o=F();let i;const a=w(()=>{var l;return!!(!(e.label||e.ariaLabel)&&n&&n.inputIds&&((l=n.inputIds)==null?void 0:l.length)<=1)});return _e(()=>{i=fe([Vn(e,"id"),t],([l,s])=>{const u=l??(s?void 0:Ct().value);u!==o.value&&(n!=null&&n.removeInputId&&(o.value&&n.removeInputId(o.value),!(r!=null&&r.value)&&!s&&u&&n.addInputId(u)),o.value=u)},{immediate:true})}),Ni(()=>{i&&i(),n!=null&&n.removeInputId&&o.value&&n.removeInputId(o.value)}),{isLabeledByFormItem:a,inputId:o}};let ge;const Gs=`
|
|
6
|
+
height:0 !important;
|
|
7
|
+
visibility:hidden !important;
|
|
8
|
+
${qi()?"":"overflow:hidden !important;"}
|
|
9
|
+
position:absolute !important;
|
|
10
|
+
z-index:-1000 !important;
|
|
11
|
+
top:0 !important;
|
|
12
|
+
right:0 !important;
|
|
13
|
+
`,Ws=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing"];function qs(e){const n=window.getComputedStyle(e),t=n.getPropertyValue("box-sizing"),r=Number.parseFloat(n.getPropertyValue("padding-bottom"))+Number.parseFloat(n.getPropertyValue("padding-top")),o=Number.parseFloat(n.getPropertyValue("border-bottom-width"))+Number.parseFloat(n.getPropertyValue("border-top-width"));return{contextStyle:Ws.map(a=>`${a}:${n.getPropertyValue(a)}`).join(";"),paddingSize:r,borderSize:o,boxSizing:t}}function wr(e,n=1,t){var r;ge||(ge=document.createElement("textarea"),document.body.appendChild(ge));const{paddingSize:o,borderSize:i,boxSizing:a,contextStyle:l}=qs(e);ge.setAttribute("style",`${l};${Gs}`),ge.value=e.value||e.placeholder||"";let s=ge.scrollHeight;const u={};a==="border-box"?s=s+i:a==="content-box"&&(s=s-o),ge.value="";const p=ge.scrollHeight-o;if(Ge(n)){let c=p*n;a==="border-box"&&(c=c+o+i),s=Math.max(c,s),u.minHeight=`${c}px`}if(Ge(t)){let c=p*t;a==="border-box"&&(c=c+o+i),s=Math.min(c,s)}return u.height=`${s}px`,(r=ge.parentNode)==null||r.removeChild(ge),ge=void 0,u}const Xs=Fe({id:{type:String,default:void 0},size:jt,disabled:Boolean,modelValue:{type:ee([String,Number,Object]),default:""},maxlength:{type:[String,Number]},minlength:{type:[String,Number]},type:{type:String,default:"text"},resize:{type:String,values:["none","both","horizontal","vertical"]},autosize:{type:ee([Boolean,Object]),default:false},autocomplete:{type:String,default:"off"},formatter:{type:Function},parser:{type:Function},placeholder:{type:String},form:{type:String},readonly:{type:Boolean,default:false},clearable:{type:Boolean,default:false},showPassword:{type:Boolean,default:false},showWordLimit:{type:Boolean,default:false},suffixIcon:{type:_n},prefixIcon:{type:_n},containerRole:{type:String,default:void 0},label:{type:String,default:void 0},tabindex:{type:[String,Number],default:0},validateEvent:{type:Boolean,default:true},inputStyle:{type:ee([Object,Array,String]),default:()=>Ao({})},autofocus:{type:Boolean,default:false},...Ds(["ariaLabel"])}),Zs={[wt]:e=>Se(e),input:e=>Se(e),change:e=>Se(e),focus:e=>e instanceof FocusEvent,blur:e=>e instanceof FocusEvent,clear:()=>true,mouseleave:e=>e instanceof MouseEvent,mouseenter:e=>e instanceof MouseEvent,keydown:e=>e instanceof Event,compositionstart:e=>e instanceof CompositionEvent,compositionupdate:e=>e instanceof CompositionEvent,compositionend:e=>e instanceof CompositionEvent},Js=["role"],Qs=["id","minlength","maxlength","type","disabled","readonly","autocomplete","tabindex","aria-label","placeholder","form","autofocus"],eu=["id","minlength","maxlength","tabindex","disabled","readonly","autocomplete","aria-label","placeholder","form","autofocus"],nu=z({name:"ElInput",inheritAttrs:false}),tu=z({...nu,props:Xs,emits:Zs,setup(e,{expose:n,emit:t}){const r=e,o=Li(),i=Qr(),a=w(()=>{const x={};return r.containerRole==="combobox"&&(x["aria-haspopup"]=o["aria-haspopup"],x["aria-owns"]=o["aria-owns"],x["aria-expanded"]=o["aria-expanded"]),x}),l=w(()=>[r.type==="textarea"?v.b():d.b(),d.m(b.value),d.is("disabled",h.value),d.is("exceed",xi.value),{[d.b("group")]:i.prepend||i.append,[d.m("prefix")]:i.prefix||r.prefixIcon,[d.m("suffix")]:i.suffix||r.suffixIcon||r.clearable||r.showPassword,[d.bm("suffix","password-clear")]:Xe.value&&st.value,[d.b("hidden")]:r.type==="hidden"},o.class]),s=w(()=>[d.e("wrapper"),d.is("focus",B.value)]),u=xs({excludeKeys:w(()=>Object.keys(a.value))}),{form:p,formItem:c}=Vo(),{inputId:f}=Ys(r,{formItemContext:c}),b=Do(),h=Yt(),d=Ae("input"),v=Ae("textarea"),g=Rn(),C=Rn(),D=F(false),U=F(false),Y=F(false),q=F(),M=Rn(r.inputStyle),y=w(()=>g.value||C.value),{wrapperRef:E,isFocused:B,handleFocus:R,handleBlur:N}=$s(y,{afterBlur(){var x;r.validateEvent&&((x=c==null?void 0:c.validate)==null||x.call(c,"blur").catch(V=>void 0))}}),Te=w(()=>{var x;return(x=p==null?void 0:p.statusIcon)!=null?x:false}),ve=w(()=>(c==null?void 0:c.validateState)||""),J=w(()=>ve.value&&ps[ve.value]),K=w(()=>Y.value?cs:is),pe=w(()=>[o.style]),T=w(()=>[r.inputStyle,M.value,{resize:r.resize}]),P=w(()=>ho(r.modelValue)?"":String(r.modelValue)),Xe=w(()=>r.clearable&&!h.value&&!r.readonly&&!!P.value&&(B.value||D.value)),st=w(()=>r.showPassword&&!h.value&&!r.readonly&&!!P.value&&(!!P.value||B.value)),Ze=w(()=>r.showWordLimit&&!!r.maxlength&&(r.type==="text"||r.type==="textarea")&&!h.value&&!r.readonly&&!r.showPassword),ut=w(()=>P.value.length),xi=w(()=>!!Ze.value&&ut.value>Number(r.maxlength)),_i=w(()=>!!i.suffix||!!r.suffixIcon||Xe.value||r.showPassword||Ze.value||!!ve.value&&Te.value),[wi,Ci]=Ns(g);oo(C,x=>{if(Si(),!Ze.value||r.resize!=="both")return;const V=x[0],{width:Q}=V.contentRect;q.value={right:`calc(100% - ${Q+15+6}px)`}});const un=()=>{const{type:x,autosize:V}=r;if(!(!xe||x!=="textarea"||!C.value))if(V){const Q=yn(V)?V.minRows:void 0,In=yn(V)?V.maxRows:void 0,ar=wr(C.value,Q,In);M.value={overflowY:"hidden",...ar},se(()=>{C.value.offsetHeight,M.value=ar})}else M.value={minHeight:wr(C.value).minHeight}},Si=(x=>{let V=false;return()=>{var Q;if(V||!r.autosize)return;((Q=C.value)==null?void 0:Q.offsetParent)===null||(x(),V=true)}})(un),cn=()=>{const x=y.value,V=r.formatter?r.formatter(P.value):P.value;!x||x.value===V||(x.value=V)},ct=async x=>{wi();let{value:V}=x.target;if(r.formatter&&(V=r.parser?r.parser(V):V),!U.value){if(V===P.value){cn();return}t(wt,V),t("input",V),await se(),cn(),Ci()}},Qt=x=>{t("change",x.target.value)},er=x=>{t("compositionstart",x),U.value=true},nr=x=>{var V;t("compositionupdate",x);const Q=(V=x.target)==null?void 0:V.value,In=Q[Q.length-1]||"";U.value=!gs(In)},tr=x=>{t("compositionend",x),U.value&&(U.value=false,ct(x))},Ei=()=>{Y.value=!Y.value,rr()},rr=async()=>{var x;await se(),(x=y.value)==null||x.focus()},Ai=()=>{var x;return(x=y.value)==null?void 0:x.blur()},Ti=x=>{D.value=false,t("mouseleave",x)},ki=x=>{D.value=true,t("mouseenter",x)},or=x=>{t("keydown",x)},Ii=()=>{var x;(x=y.value)==null||x.select()},ir=()=>{t(wt,""),t("change",""),t("clear"),t("input","")};return fe(()=>r.modelValue,()=>{var x;se(()=>un()),r.validateEvent&&((x=c==null?void 0:c.validate)==null||x.call(c,"change").catch(V=>void 0))}),fe(P,()=>cn()),fe(()=>r.type,async()=>{await se(),cn(),un()}),_e(()=>{!r.formatter&&r.parser,cn(),se(un)}),Gn({from:"label",replacement:"aria-label",version:"2.8.0",scope:"el-input",ref:"https://element-plus.org/en-US/component/input.html"},w(()=>!!r.label)),n({input:g,textarea:C,ref:y,textareaStyle:T,autosize:Vn(r,"autosize"),focus:rr,blur:Ai,select:Ii,clear:ir,resizeTextarea:un}),(x,V)=>(_(),k("div",rn(m(a),{class:[m(l),{[m(d).bm("group","append")]:x.$slots.append,[m(d).bm("group","prepend")]:x.$slots.prepend}],style:m(pe),role:x.containerRole,onMouseenter:ki,onMouseleave:Ti}),[L(" input "),x.type!=="textarea"?(_(),k(ue,{key:0},[L(" prepend slot "),x.$slots.prepend?(_(),k("div",{key:0,class:$(m(d).be("group","prepend"))},[re(x.$slots,"prepend")],2)):L("v-if",true),S("div",{ref_key:"wrapperRef",ref:E,class:$(m(s))},[L(" prefix slot "),x.$slots.prefix||x.prefixIcon?(_(),k("span",{key:0,class:$(m(d).e("prefix"))},[S("span",{class:$(m(d).e("prefix-inner"))},[re(x.$slots,"prefix"),x.prefixIcon?(_(),j(m(we),{key:0,class:$(m(d).e("icon"))},{default:O(()=>[(_(),j(me(x.prefixIcon)))]),_:1},8,["class"])):L("v-if",true)],2)],2)):L("v-if",true),S("input",rn({id:m(f),ref_key:"input",ref:g,class:m(d).e("inner")},m(u),{minlength:x.minlength,maxlength:x.maxlength,type:x.showPassword?Y.value?"text":"password":x.type,disabled:m(h),readonly:x.readonly,autocomplete:x.autocomplete,tabindex:x.tabindex,"aria-label":x.label||x.ariaLabel,placeholder:x.placeholder,style:x.inputStyle,form:x.form,autofocus:x.autofocus,onCompositionstart:er,onCompositionupdate:nr,onCompositionend:tr,onInput:ct,onFocus:V[0]||(V[0]=(...Q)=>m(R)&&m(R)(...Q)),onBlur:V[1]||(V[1]=(...Q)=>m(N)&&m(N)(...Q)),onChange:Qt,onKeydown:or}),null,16,Qs),L(" suffix slot "),m(_i)?(_(),k("span",{key:1,class:$(m(d).e("suffix"))},[S("span",{class:$(m(d).e("suffix-inner"))},[!m(Xe)||!m(st)||!m(Ze)?(_(),k(ue,{key:0},[re(x.$slots,"suffix"),x.suffixIcon?(_(),j(m(we),{key:0,class:$(m(d).e("icon"))},{default:O(()=>[(_(),j(me(x.suffixIcon)))]),_:1},8,["class"])):L("v-if",true)],64)):L("v-if",true),m(Xe)?(_(),j(m(we),{key:1,class:$([m(d).e("icon"),m(d).e("clear")]),onMousedown:Ie(m(mn),["prevent"]),onClick:ir},{default:O(()=>[A(m(yo))]),_:1},8,["class","onMousedown"])):L("v-if",true),m(st)?(_(),j(m(we),{key:2,class:$([m(d).e("icon"),m(d).e("password")]),onClick:Ei},{default:O(()=>[(_(),j(me(m(K))))]),_:1},8,["class"])):L("v-if",true),m(Ze)?(_(),k("span",{key:3,class:$(m(d).e("count"))},[S("span",{class:$(m(d).e("count-inner"))},H(m(ut))+" / "+H(x.maxlength),3)],2)):L("v-if",true),m(ve)&&m(J)&&m(Te)?(_(),j(m(we),{key:4,class:$([m(d).e("icon"),m(d).e("validateIcon"),m(d).is("loading",m(ve)==="validating")])},{default:O(()=>[(_(),j(me(m(J))))]),_:1},8,["class"])):L("v-if",true)],2)],2)):L("v-if",true)],2),L(" append slot "),x.$slots.append?(_(),k("div",{key:1,class:$(m(d).be("group","append"))},[re(x.$slots,"append")],2)):L("v-if",true)],64)):(_(),k(ue,{key:1},[L(" textarea "),S("textarea",rn({id:m(f),ref_key:"textarea",ref:C,class:[m(v).e("inner"),m(d).is("focus",m(B))]},m(u),{minlength:x.minlength,maxlength:x.maxlength,tabindex:x.tabindex,disabled:m(h),readonly:x.readonly,autocomplete:x.autocomplete,style:m(T),"aria-label":x.label||x.ariaLabel,placeholder:x.placeholder,form:x.form,autofocus:x.autofocus,onCompositionstart:er,onCompositionupdate:nr,onCompositionend:tr,onInput:ct,onFocus:V[2]||(V[2]=(...Q)=>m(R)&&m(R)(...Q)),onBlur:V[3]||(V[3]=(...Q)=>m(N)&&m(N)(...Q)),onChange:Qt,onKeydown:or}),null,16,eu),m(Ze)?(_(),k("span",{key:0,style:vn(q.value),class:$(m(d).e("count"))},H(m(ut))+" / "+H(x.maxlength),7)):L("v-if",true)],64))],16,Js))}});var ru=Ve(tu,[["__file","input.vue"]]);const ou=ot(ru),ft="focus-trap.focus-after-trapped",pt="focus-trap.focus-after-released",iu="focus-trap.focusout-prevented",Cr={cancelable:true,bubbles:false},au={cancelable:true,bubbles:false},Sr="focusAfterTrapped",Er="focusAfterReleased",lu=Symbol("elFocusTrap"),Gt=F(),at=F(0),Wt=F(0);let Fn=0;const Ho=e=>{const n=[],t=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:r=>{const o=r.tagName==="INPUT"&&r.type==="hidden";return r.disabled||r.hidden||o?NodeFilter.FILTER_SKIP:r.tabIndex>=0||r===document.activeElement?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;t.nextNode();)n.push(t.currentNode);return n},Ar=(e,n)=>{for(const t of e)if(!su(t,n))return t},su=(e,n)=>{if(getComputedStyle(e).visibility==="hidden")return true;for(;e;){if(n&&e===n)return false;if(getComputedStyle(e).display==="none")return true;e=e.parentElement}return false},uu=e=>{const n=Ho(e),t=Ar(n,e),r=Ar(n.reverse(),e);return[t,r]},cu=e=>e instanceof HTMLInputElement&&"select"in e,Le=(e,n)=>{if(e&&e.focus){const t=document.activeElement;e.focus({preventScroll:true}),Wt.value=window.performance.now(),e!==t&&cu(e)&&n&&e.select()}};function Tr(e,n){const t=[...e],r=e.indexOf(n);return r!==-1&&t.splice(r,1),t}const du=()=>{let e=[];return{push:r=>{const o=e[0];o&&r!==o&&o.pause(),e=Tr(e,r),e.unshift(r)},remove:r=>{var o,i;e=Tr(e,r),(i=(o=e[0])==null?void 0:o.resume)==null||i.call(o)}}},fu=(e,n=false)=>{const t=document.activeElement;for(const r of e)if(Le(r,n),document.activeElement!==t)return},kr=du(),pu=()=>at.value>Wt.value,Nn=()=>{Gt.value="pointer",at.value=window.performance.now()},Ir=()=>{Gt.value="keyboard",at.value=window.performance.now()},hu=()=>(_e(()=>{Fn===0&&(document.addEventListener("mousedown",Nn),document.addEventListener("touchstart",Nn),document.addEventListener("keydown",Ir)),Fn++}),We(()=>{Fn--,Fn<=0&&(document.removeEventListener("mousedown",Nn),document.removeEventListener("touchstart",Nn),document.removeEventListener("keydown",Ir))}),{focusReason:Gt,lastUserFocusTimestamp:at,lastAutomatedFocusTimestamp:Wt}),Ln=e=>new CustomEvent(iu,{...au,detail:e}),mu=z({name:"ElFocusTrap",inheritAttrs:false,props:{loop:Boolean,trapped:Boolean,focusTrapEl:Object,focusStartEl:{type:[Object,String],default:"first"}},emits:[Sr,Er,"focusin","focusout","focusout-prevented","release-requested"],setup(e,{emit:n}){const t=F();let r,o;const{focusReason:i}=hu();Ms(h=>{e.trapped&&!a.paused&&n("release-requested",h)});const a={paused:false,pause(){this.paused=true},resume(){this.paused=false}},l=h=>{if(!e.loop&&!e.trapped||a.paused)return;const{key:d,altKey:v,ctrlKey:g,metaKey:C,currentTarget:D,shiftKey:U}=h,{loop:Y}=e,q=d===it.tab&&!v&&!g&&!C,M=document.activeElement;if(q&&M){const y=D,[E,B]=uu(y);if(E&&B){if(!U&&M===B){const N=Ln({focusReason:i.value});n("focusout-prevented",N),N.defaultPrevented||(h.preventDefault(),Y&&Le(E,true))}else if(U&&[E,y].includes(M)){const N=Ln({focusReason:i.value});n("focusout-prevented",N),N.defaultPrevented||(h.preventDefault(),Y&&Le(B,true))}}else if(M===y){const N=Ln({focusReason:i.value});n("focusout-prevented",N),N.defaultPrevented||h.preventDefault()}}};Lt(lu,{focusTrapRef:t,onKeydown:l}),fe(()=>e.focusTrapEl,h=>{h&&(t.value=h)},{immediate:true}),fe([t],([h],[d])=>{h&&(h.addEventListener("keydown",l),h.addEventListener("focusin",p),h.addEventListener("focusout",c)),d&&(d.removeEventListener("keydown",l),d.removeEventListener("focusin",p),d.removeEventListener("focusout",c))});const s=h=>{n(Sr,h)},u=h=>n(Er,h),p=h=>{const d=m(t);if(!d)return;const v=h.target,g=h.relatedTarget,C=v&&d.contains(v);e.trapped||g&&d.contains(g)||(r=g),C&&n("focusin",h),!a.paused&&e.trapped&&(C?o=v:Le(o,true))},c=h=>{const d=m(t);if(!(a.paused||!d))if(e.trapped){const v=h.relatedTarget;!ho(v)&&!d.contains(v)&&setTimeout(()=>{if(!a.paused&&e.trapped){const g=Ln({focusReason:i.value});n("focusout-prevented",g),g.defaultPrevented||Le(o,true)}},0)}else{const v=h.target;v&&d.contains(v)||n("focusout",h)}};async function f(){await se();const h=m(t);if(h){kr.push(a);const d=h.contains(document.activeElement)?r:document.activeElement;if(r=d,!h.contains(d)){const g=new Event(ft,Cr);h.addEventListener(ft,s),h.dispatchEvent(g),g.defaultPrevented||se(()=>{let C=e.focusStartEl;Se(C)||(Le(C),document.activeElement!==C&&(C="first")),C==="first"&&fu(Ho(h),true),(document.activeElement===d||C==="container")&&Le(h)})}}}function b(){const h=m(t);if(h){h.removeEventListener(ft,s);const d=new CustomEvent(pt,{...Cr,detail:{focusReason:i.value}});h.addEventListener(pt,u),h.dispatchEvent(d),!d.defaultPrevented&&(i.value=="keyboard"||!pu()||h.contains(document.activeElement))&&Le(r??document.body),h.removeEventListener(pt,u),kr.remove(a)}}return _e(()=>{e.trapped&&f(),fe(()=>e.trapped,h=>{h?f():b()})}),We(()=>{e.trapped&&b()}),{onKeydown:l}}});function vu(e,n,t,r,o,i){return re(e.$slots,"default",{handleKeydown:e.onKeydown})}var gu=Ve(mu,[["render",vu],["__file","focus-trap.vue"]]);const yu=Fe({value:{type:[String,Number],default:""},max:{type:Number,default:99},isDot:Boolean,hidden:Boolean,type:{type:String,values:["primary","success","warning","info","danger"],default:"danger"},showZero:{type:Boolean,default:true},color:String,dotStyle:{type:ee([String,Object,Array])},badgeStyle:{type:ee([String,Object,Array])},offset:{type:ee(Array),default:[0,0]},dotClass:{type:String},badgeClass:{type:String}}),bu=["textContent"],xu=z({name:"ElBadge"}),_u=z({...xu,props:yu,setup(e,{expose:n}){const t=e,r=Ae("badge"),o=w(()=>t.isDot?"":Ge(t.value)&&Ge(t.max)?t.max<t.value?`${t.max}+`:t.value===0&&!t.showZero?"":`${t.value}`:`${t.value}`),i=w(()=>{var a,l,s,u,p,c;return[{backgroundColor:t.color,marginRight:xn(-((l=(a=t.offset)==null?void 0:a[0])!=null?l:0)),marginTop:xn((u=(s=t.offset)==null?void 0:s[1])!=null?u:0)},(p=t.dotStyle)!=null?p:{},(c=t.badgeStyle)!=null?c:{}]});return Gn({from:"dot-style",replacement:"badge-style",version:"2.8.0",scope:"el-badge",ref:"https://element-plus.org/en-US/component/badge.html"},w(()=>!!t.dotStyle)),Gn({from:"dot-class",replacement:"badge-class",version:"2.8.0",scope:"el-badge",ref:"https://element-plus.org/en-US/component/badge.html"},w(()=>!!t.dotClass)),n({content:o}),(a,l)=>(_(),k("div",{class:$(m(r).b())},[re(a.$slots,"default"),A(gn,{name:`${m(r).namespace.value}-zoom-in-center`,persisted:""},{default:O(()=>[pn(S("sup",{class:$([m(r).e("content"),m(r).em("content",a.type),m(r).is("fixed",!!a.$slots.default),m(r).is("dot",a.isDot),a.dotClass,a.badgeClass]),style:vn(m(i)),textContent:H(m(o))},null,14,bu),[[hn,!a.hidden&&(m(o)||a.isDot)]])]),_:1},8,["name"])],2))}});var wu=Ve(_u,[["__file","badge.vue"]]);const Cu=ot(wu),zo=Symbol("buttonGroupContextKey"),Su=(e,n)=>{Gn({from:"type.text",replacement:"link",version:"3.0.0",scope:"props",ref:"https://element-plus.org/en-US/component/button.html#button-attributes"},w(()=>e.type==="text"));const t=ae(zo,void 0),r=Ut("button"),{form:o}=Vo(),i=Do(w(()=>t==null?void 0:t.size)),a=Yt(),l=F(),s=Qr(),u=w(()=>e.type||(t==null?void 0:t.type)||""),p=w(()=>{var h,d,v;return(v=(d=e.autoInsertSpace)!=null?d:(h=r.value)==null?void 0:h.autoInsertSpace)!=null?v:false}),c=w(()=>e.tag==="button"?{ariaDisabled:a.value||e.loading,disabled:a.value||e.loading,autofocus:e.autofocus,type:e.nativeType}:{}),f=w(()=>{var h;const d=(h=s.default)==null?void 0:h.call(s);if(p.value&&(d==null?void 0:d.length)===1){const v=d[0];if((v==null?void 0:v.type)===$i){const g=v.children;return new RegExp("^\\p{Unified_Ideograph}{2}$","u").test(g.trim())}}return false});return{_disabled:a,_size:i,_type:u,_ref:l,_props:c,shouldAddSpace:f,handleClick:h=>{e.nativeType==="reset"&&(o==null||o.resetFields()),n("click",h)}}},Eu=["default","primary","success","warning","info","danger","text",""],Au=["button","submit","reset"],Et=Fe({size:jt,disabled:Boolean,type:{type:String,values:Eu,default:""},icon:{type:_n},nativeType:{type:String,values:Au,default:"button"},loading:Boolean,loadingIcon:{type:_n,default:()=>Kn},plain:Boolean,text:Boolean,link:Boolean,bg:Boolean,autofocus:Boolean,round:Boolean,circle:Boolean,color:String,dark:Boolean,autoInsertSpace:{type:Boolean,default:void 0},tag:{type:ee([String,Object]),default:"button"}}),Tu={click:e=>e instanceof MouseEvent};function ne(e,n){ku(e)&&(e="100%");var t=Iu(e);return e=n===360?e:Math.min(n,Math.max(0,parseFloat(e))),t&&(e=parseInt(String(e*n),10)/100),Math.abs(e-n)<1e-6?1:(n===360?e=(e<0?e%n+n:e%n)/parseFloat(String(n)):e=e%n/parseFloat(String(n)),e)}function $n(e){return Math.min(1,Math.max(0,e))}function ku(e){return typeof e=="string"&&e.indexOf(".")!==-1&&parseFloat(e)===1}function Iu(e){return typeof e=="string"&&e.indexOf("%")!==-1}function jo(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Bn(e){return e<=1?"".concat(Number(e)*100,"%"):e}function ze(e){return e.length===1?"0"+e:String(e)}function Ou(e,n,t){return{r:ne(e,255)*255,g:ne(n,255)*255,b:ne(t,255)*255}}function Or(e,n,t){e=ne(e,255),n=ne(n,255),t=ne(t,255);var r=Math.max(e,n,t),o=Math.min(e,n,t),i=0,a=0,l=(r+o)/2;if(r===o)a=0,i=0;else{var s=r-o;switch(a=l>.5?s/(2-r-o):s/(r+o),r){case e:i=(n-t)/s+(n<t?6:0);break;case n:i=(t-e)/s+2;break;case t:i=(e-n)/s+4;break}i/=6}return{h:i,s:a,l}}function ht(e,n,t){return t<0&&(t+=1),t>1&&(t-=1),t<1/6?e+(n-e)*(6*t):t<1/2?n:t<2/3?e+(n-e)*(2/3-t)*6:e}function Mu(e,n,t){var r,o,i;if(e=ne(e,360),n=ne(n,100),t=ne(t,100),n===0)o=t,i=t,r=t;else{var a=t<.5?t*(1+n):t+n-t*n,l=2*t-a;r=ht(l,a,e+1/3),o=ht(l,a,e),i=ht(l,a,e-1/3)}return{r:r*255,g:o*255,b:i*255}}function Mr(e,n,t){e=ne(e,255),n=ne(n,255),t=ne(t,255);var r=Math.max(e,n,t),o=Math.min(e,n,t),i=0,a=r,l=r-o,s=r===0?0:l/r;if(r===o)i=0;else{switch(r){case e:i=(n-t)/l+(n<t?6:0);break;case n:i=(t-e)/l+2;break;case t:i=(e-n)/l+4;break}i/=6}return{h:i,s,v:a}}function Fu(e,n,t){e=ne(e,360)*6,n=ne(n,100),t=ne(t,100);var r=Math.floor(e),o=e-r,i=t*(1-n),a=t*(1-o*n),l=t*(1-(1-o)*n),s=r%6,u=[t,a,i,i,l,t][s],p=[l,t,t,a,i,i][s],c=[i,i,l,t,t,a][s];return{r:u*255,g:p*255,b:c*255}}function Fr(e,n,t,r){var o=[ze(Math.round(e).toString(16)),ze(Math.round(n).toString(16)),ze(Math.round(t).toString(16))];return r&&o[0].startsWith(o[0].charAt(1))&&o[1].startsWith(o[1].charAt(1))&&o[2].startsWith(o[2].charAt(1))?o[0].charAt(0)+o[1].charAt(0)+o[2].charAt(0):o.join("")}function Nu(e,n,t,r,o){var i=[ze(Math.round(e).toString(16)),ze(Math.round(n).toString(16)),ze(Math.round(t).toString(16)),ze(Lu(r))];return o&&i[0].startsWith(i[0].charAt(1))&&i[1].startsWith(i[1].charAt(1))&&i[2].startsWith(i[2].charAt(1))&&i[3].startsWith(i[3].charAt(1))?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0)+i[3].charAt(0):i.join("")}function Lu(e){return Math.round(parseFloat(e)*255).toString(16)}function Nr(e){return he(e)/255}function he(e){return parseInt(e,16)}function $u(e){return{r:e>>16,g:(e&65280)>>8,b:e&255}}var At={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",goldenrod:"#daa520",gold:"#ffd700",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavenderblush:"#fff0f5",lavender:"#e6e6fa",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"};function Bu(e){var n={r:0,g:0,b:0},t=1,r=null,o=null,i=null,a=false,l=false;return typeof e=="string"&&(e=Du(e)),typeof e=="object"&&(ke(e.r)&&ke(e.g)&&ke(e.b)?(n=Ou(e.r,e.g,e.b),a=true,l=String(e.r).substr(-1)==="%"?"prgb":"rgb"):ke(e.h)&&ke(e.s)&&ke(e.v)?(r=Bn(e.s),o=Bn(e.v),n=Fu(e.h,r,o),a=true,l="hsv"):ke(e.h)&&ke(e.s)&&ke(e.l)&&(r=Bn(e.s),i=Bn(e.l),n=Mu(e.h,r,i),a=true,l="hsl"),Object.prototype.hasOwnProperty.call(e,"a")&&(t=e.a)),t=jo(t),{ok:a,format:e.format||l,r:Math.min(255,Math.max(n.r,0)),g:Math.min(255,Math.max(n.g,0)),b:Math.min(255,Math.max(n.b,0)),a:t}}var Ru="[-\\+]?\\d+%?",Pu="[-\\+]?\\d*\\.\\d+%?",Be="(?:".concat(Pu,")|(?:").concat(Ru,")"),mt="[\\s|\\(]+(".concat(Be,")[,|\\s]+(").concat(Be,")[,|\\s]+(").concat(Be,")\\s*\\)?"),vt="[\\s|\\(]+(".concat(Be,")[,|\\s]+(").concat(Be,")[,|\\s]+(").concat(Be,")[,|\\s]+(").concat(Be,")\\s*\\)?"),ye={CSS_UNIT:new RegExp(Be),rgb:new RegExp("rgb"+mt),rgba:new RegExp("rgba"+vt),hsl:new RegExp("hsl"+mt),hsla:new RegExp("hsla"+vt),hsv:new RegExp("hsv"+mt),hsva:new RegExp("hsva"+vt),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/};function Du(e){if(e=e.trim().toLowerCase(),e.length===0)return false;var n=false;if(At[e])e=At[e],n=true;else if(e==="transparent")return{r:0,g:0,b:0,a:0,format:"name"};var t=ye.rgb.exec(e);return t?{r:t[1],g:t[2],b:t[3]}:(t=ye.rgba.exec(e),t?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=ye.hsl.exec(e),t?{h:t[1],s:t[2],l:t[3]}:(t=ye.hsla.exec(e),t?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=ye.hsv.exec(e),t?{h:t[1],s:t[2],v:t[3]}:(t=ye.hsva.exec(e),t?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=ye.hex8.exec(e),t?{r:he(t[1]),g:he(t[2]),b:he(t[3]),a:Nr(t[4]),format:n?"name":"hex8"}:(t=ye.hex6.exec(e),t?{r:he(t[1]),g:he(t[2]),b:he(t[3]),format:n?"name":"hex"}:(t=ye.hex4.exec(e),t?{r:he(t[1]+t[1]),g:he(t[2]+t[2]),b:he(t[3]+t[3]),a:Nr(t[4]+t[4]),format:n?"name":"hex8"}:(t=ye.hex3.exec(e),t?{r:he(t[1]+t[1]),g:he(t[2]+t[2]),b:he(t[3]+t[3]),format:n?"name":"hex"}:false)))))))))}function ke(e){return!!ye.CSS_UNIT.exec(String(e))}var Vu=function(){function e(n,t){n===void 0&&(n=""),t===void 0&&(t={});var r;if(n instanceof e)return n;typeof n=="number"&&(n=$u(n)),this.originalInput=n;var o=Bu(n);this.originalInput=n,this.r=o.r,this.g=o.g,this.b=o.b,this.a=o.a,this.roundA=Math.round(100*this.a)/100,this.format=(r=t.format)!==null&&r!==void 0?r:o.format,this.gradientType=t.gradientType,this.r<1&&(this.r=Math.round(this.r)),this.g<1&&(this.g=Math.round(this.g)),this.b<1&&(this.b=Math.round(this.b)),this.isValid=o.ok}return e.prototype.isDark=function(){return this.getBrightness()<128},e.prototype.isLight=function(){return!this.isDark()},e.prototype.getBrightness=function(){var n=this.toRgb();return(n.r*299+n.g*587+n.b*114)/1e3},e.prototype.getLuminance=function(){var n=this.toRgb(),t,r,o,i=n.r/255,a=n.g/255,l=n.b/255;return i<=.03928?t=i/12.92:t=Math.pow((i+.055)/1.055,2.4),a<=.03928?r=a/12.92:r=Math.pow((a+.055)/1.055,2.4),l<=.03928?o=l/12.92:o=Math.pow((l+.055)/1.055,2.4),.2126*t+.7152*r+.0722*o},e.prototype.getAlpha=function(){return this.a},e.prototype.setAlpha=function(n){return this.a=jo(n),this.roundA=Math.round(100*this.a)/100,this},e.prototype.isMonochrome=function(){var n=this.toHsl().s;return n===0},e.prototype.toHsv=function(){var n=Mr(this.r,this.g,this.b);return{h:n.h*360,s:n.s,v:n.v,a:this.a}},e.prototype.toHsvString=function(){var n=Mr(this.r,this.g,this.b),t=Math.round(n.h*360),r=Math.round(n.s*100),o=Math.round(n.v*100);return this.a===1?"hsv(".concat(t,", ").concat(r,"%, ").concat(o,"%)"):"hsva(".concat(t,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHsl=function(){var n=Or(this.r,this.g,this.b);return{h:n.h*360,s:n.s,l:n.l,a:this.a}},e.prototype.toHslString=function(){var n=Or(this.r,this.g,this.b),t=Math.round(n.h*360),r=Math.round(n.s*100),o=Math.round(n.l*100);return this.a===1?"hsl(".concat(t,", ").concat(r,"%, ").concat(o,"%)"):"hsla(".concat(t,", ").concat(r,"%, ").concat(o,"%, ").concat(this.roundA,")")},e.prototype.toHex=function(n){return n===void 0&&(n=false),Fr(this.r,this.g,this.b,n)},e.prototype.toHexString=function(n){return n===void 0&&(n=false),"#"+this.toHex(n)},e.prototype.toHex8=function(n){return n===void 0&&(n=false),Nu(this.r,this.g,this.b,this.a,n)},e.prototype.toHex8String=function(n){return n===void 0&&(n=false),"#"+this.toHex8(n)},e.prototype.toHexShortString=function(n){return n===void 0&&(n=false),this.a===1?this.toHexString(n):this.toHex8String(n)},e.prototype.toRgb=function(){return{r:Math.round(this.r),g:Math.round(this.g),b:Math.round(this.b),a:this.a}},e.prototype.toRgbString=function(){var n=Math.round(this.r),t=Math.round(this.g),r=Math.round(this.b);return this.a===1?"rgb(".concat(n,", ").concat(t,", ").concat(r,")"):"rgba(".concat(n,", ").concat(t,", ").concat(r,", ").concat(this.roundA,")")},e.prototype.toPercentageRgb=function(){var n=function(t){return"".concat(Math.round(ne(t,255)*100),"%")};return{r:n(this.r),g:n(this.g),b:n(this.b),a:this.a}},e.prototype.toPercentageRgbString=function(){var n=function(t){return Math.round(ne(t,255)*100)};return this.a===1?"rgb(".concat(n(this.r),"%, ").concat(n(this.g),"%, ").concat(n(this.b),"%)"):"rgba(".concat(n(this.r),"%, ").concat(n(this.g),"%, ").concat(n(this.b),"%, ").concat(this.roundA,")")},e.prototype.toName=function(){if(this.a===0)return"transparent";if(this.a<1)return false;for(var n="#"+Fr(this.r,this.g,this.b,false),t=0,r=Object.entries(At);t<r.length;t++){var o=r[t],i=o[0],a=o[1];if(n===a)return i}return false},e.prototype.toString=function(n){var t=!!n;n=n??this.format;var r=false,o=this.a<1&&this.a>=0,i=!t&&o&&(n.startsWith("hex")||n==="name");return i?n==="name"&&this.a===0?this.toName():this.toRgbString():(n==="rgb"&&(r=this.toRgbString()),n==="prgb"&&(r=this.toPercentageRgbString()),(n==="hex"||n==="hex6")&&(r=this.toHexString()),n==="hex3"&&(r=this.toHexString(true)),n==="hex4"&&(r=this.toHex8String(true)),n==="hex8"&&(r=this.toHex8String()),n==="name"&&(r=this.toName()),n==="hsl"&&(r=this.toHslString()),n==="hsv"&&(r=this.toHsvString()),r||this.toHexString())},e.prototype.toNumber=function(){return(Math.round(this.r)<<16)+(Math.round(this.g)<<8)+Math.round(this.b)},e.prototype.clone=function(){return new e(this.toString())},e.prototype.lighten=function(n){n===void 0&&(n=10);var t=this.toHsl();return t.l+=n/100,t.l=$n(t.l),new e(t)},e.prototype.brighten=function(n){n===void 0&&(n=10);var t=this.toRgb();return t.r=Math.max(0,Math.min(255,t.r-Math.round(255*-(n/100)))),t.g=Math.max(0,Math.min(255,t.g-Math.round(255*-(n/100)))),t.b=Math.max(0,Math.min(255,t.b-Math.round(255*-(n/100)))),new e(t)},e.prototype.darken=function(n){n===void 0&&(n=10);var t=this.toHsl();return t.l-=n/100,t.l=$n(t.l),new e(t)},e.prototype.tint=function(n){return n===void 0&&(n=10),this.mix("white",n)},e.prototype.shade=function(n){return n===void 0&&(n=10),this.mix("black",n)},e.prototype.desaturate=function(n){n===void 0&&(n=10);var t=this.toHsl();return t.s-=n/100,t.s=$n(t.s),new e(t)},e.prototype.saturate=function(n){n===void 0&&(n=10);var t=this.toHsl();return t.s+=n/100,t.s=$n(t.s),new e(t)},e.prototype.greyscale=function(){return this.desaturate(100)},e.prototype.spin=function(n){var t=this.toHsl(),r=(t.h+n)%360;return t.h=r<0?360+r:r,new e(t)},e.prototype.mix=function(n,t){t===void 0&&(t=50);var r=this.toRgb(),o=new e(n).toRgb(),i=t/100,a={r:(o.r-r.r)*i+r.r,g:(o.g-r.g)*i+r.g,b:(o.b-r.b)*i+r.b,a:(o.a-r.a)*i+r.a};return new e(a)},e.prototype.analogous=function(n,t){n===void 0&&(n=6),t===void 0&&(t=30);var r=this.toHsl(),o=360/t,i=[this];for(r.h=(r.h-(o*n>>1)+720)%360;--n;)r.h=(r.h+o)%360,i.push(new e(r));return i},e.prototype.complement=function(){var n=this.toHsl();return n.h=(n.h+180)%360,new e(n)},e.prototype.monochromatic=function(n){n===void 0&&(n=6);for(var t=this.toHsv(),r=t.h,o=t.s,i=t.v,a=[],l=1/n;n--;)a.push(new e({h:r,s:o,v:i})),i=(i+l)%1;return a},e.prototype.splitcomplement=function(){var n=this.toHsl(),t=n.h;return[this,new e({h:(t+72)%360,s:n.s,l:n.l}),new e({h:(t+216)%360,s:n.s,l:n.l})]},e.prototype.onBackground=function(n){var t=this.toRgb(),r=new e(n).toRgb(),o=t.a+r.a*(1-t.a);return new e({r:(t.r*t.a+r.r*r.a*(1-t.a))/o,g:(t.g*t.a+r.g*r.a*(1-t.a))/o,b:(t.b*t.a+r.b*r.a*(1-t.a))/o,a:o})},e.prototype.triad=function(){return this.polyad(3)},e.prototype.tetrad=function(){return this.polyad(4)},e.prototype.polyad=function(n){for(var t=this.toHsl(),r=t.h,o=[this],i=360/n,a=1;a<n;a++)o.push(new e({h:(r+a*i)%360,s:t.s,l:t.l}));return o},e.prototype.equals=function(n){return this.toRgbString()===new e(n).toRgbString()},e}();function Ne(e,n=20){return e.mix("#141414",n).toString()}function Hu(e){const n=Yt(),t=Ae("button");return w(()=>{let r={},o=e.color;if(o){const i=o.match(/var\((.*?)\)/);i&&(o=window.getComputedStyle(window.document.documentElement).getPropertyValue(i[1]));const a=new Vu(o),l=e.dark?a.tint(20).toString():Ne(a,20);if(e.plain)r=t.cssVarBlock({"bg-color":e.dark?Ne(a,90):a.tint(90).toString(),"text-color":o,"border-color":e.dark?Ne(a,50):a.tint(50).toString(),"hover-text-color":`var(${t.cssVarName("color-white")})`,"hover-bg-color":o,"hover-border-color":o,"active-bg-color":l,"active-text-color":`var(${t.cssVarName("color-white")})`,"active-border-color":l}),n.value&&(r[t.cssVarBlockName("disabled-bg-color")]=e.dark?Ne(a,90):a.tint(90).toString(),r[t.cssVarBlockName("disabled-text-color")]=e.dark?Ne(a,50):a.tint(50).toString(),r[t.cssVarBlockName("disabled-border-color")]=e.dark?Ne(a,80):a.tint(80).toString());else{const s=e.dark?Ne(a,30):a.tint(30).toString(),u=a.isDark()?`var(${t.cssVarName("color-white")})`:`var(${t.cssVarName("color-black")})`;if(r=t.cssVarBlock({"bg-color":o,"text-color":u,"border-color":o,"hover-bg-color":s,"hover-text-color":u,"hover-border-color":s,"active-bg-color":l,"active-border-color":l}),n.value){const p=e.dark?Ne(a,50):a.tint(50).toString();r[t.cssVarBlockName("disabled-bg-color")]=p,r[t.cssVarBlockName("disabled-text-color")]=e.dark?"rgba(255, 255, 255, 0.5)":`var(${t.cssVarName("color-white")})`,r[t.cssVarBlockName("disabled-border-color")]=p}}}return r})}const zu=z({name:"ElButton"}),ju=z({...zu,props:Et,emits:Tu,setup(e,{expose:n,emit:t}){const r=e,o=Hu(r),i=Ae("button"),{_ref:a,_size:l,_type:s,_disabled:u,_props:p,shouldAddSpace:c,handleClick:f}=Su(r,t),b=w(()=>[i.b(),i.m(s.value),i.m(l.value),i.is("disabled",u.value),i.is("loading",r.loading),i.is("plain",r.plain),i.is("round",r.round),i.is("circle",r.circle),i.is("text",r.text),i.is("link",r.link),i.is("has-bg",r.bg)]);return n({ref:a,size:l,type:s,disabled:u,shouldAddSpace:c}),(h,d)=>(_(),j(me(h.tag),rn({ref_key:"_ref",ref:a},m(p),{class:m(b),style:m(o),onClick:m(f)}),{default:O(()=>[h.loading?(_(),k(ue,{key:0},[h.$slots.loading?re(h.$slots,"loading",{key:0}):(_(),j(m(we),{key:1,class:$(m(i).is("loading"))},{default:O(()=>[(_(),j(me(h.loadingIcon)))]),_:1},8,["class"]))],64)):h.icon||h.$slots.icon?(_(),j(m(we),{key:1},{default:O(()=>[h.icon?(_(),j(me(h.icon),{key:0})):re(h.$slots,"icon",{key:1})]),_:3})):L("v-if",true),h.$slots.default?(_(),k("span",{key:2,class:$({[m(i).em("text","expand")]:m(c)})},[re(h.$slots,"default")],2)):L("v-if",true)]),_:3},16,["class","style","onClick"]))}});var Uu=Ve(ju,[["__file","button.vue"]]);const Ku={size:Et.size,type:Et.type},Yu=z({name:"ElButtonGroup"}),Gu=z({...Yu,props:Ku,setup(e){const n=e;Lt(zo,$t({size:Vn(n,"size"),type:Vn(n,"type")}));const t=Ae("button");return(r,o)=>(_(),k("div",{class:$(`${m(t).b("group")}`)},[re(r.$slots,"default")],2))}});var Uo=Ve(Gu,[["__file","button-group.vue"]]);const Wu=ot(Uu,{ButtonGroup:Uo});ms(Uo);const Tt="_trap-focus-children",je=[],Lr=e=>{if(je.length===0)return;const n=je[je.length-1][Tt];if(n.length>0&&e.code===it.tab){if(n.length===1){e.preventDefault(),document.activeElement!==n[0]&&n[0].focus();return}const t=e.shiftKey,r=e.target===n[0],o=e.target===n[n.length-1];r&&t&&(e.preventDefault(),n[n.length-1].focus()),o&&!t&&(e.preventDefault(),n[0].focus())}},qu={beforeMount(e){e[Tt]=lr(e),je.push(e),je.length<=1&&document.addEventListener("keydown",Lr)},updated(e){se(()=>{e[Tt]=lr(e)})},unmounted(){je.shift(),je.length===0&&document.removeEventListener("keydown",Lr)}},Xu=Fe({mask:{type:Boolean,default:true},customMaskEvent:{type:Boolean,default:false},overlayClass:{type:ee([String,Array,Object])},zIndex:{type:ee([String,Number])}}),Zu={click:e=>e instanceof MouseEvent},Ju="overlay";var Qu=z({name:"ElOverlay",props:Xu,emits:Zu,setup(e,{slots:n,emit:t}){const r=Ae(Ju),o=s=>{t("click",s)},{onClick:i,onMousedown:a,onMouseup:l}=Mo(e.customMaskEvent?void 0:o);return()=>e.mask?A("div",{class:[r.b(),e.overlayClass],style:{zIndex:e.zIndex},onClick:i,onMousedown:a,onMouseup:l},[re(n,"default")],Pn.STYLE|Pn.CLASS|Pn.PROPS,["onClick","onMouseup","onMousedown"]):Bi("div",{class:e.overlayClass,style:{zIndex:e.zIndex,position:"fixed",top:"0px",right:"0px",bottom:"0px",left:"0px"}},[re(n,"default")])}});const ec=Qu,Ko=["success","info","warning","error"],te=Ao({customClass:"",center:false,dangerouslyUseHTMLString:false,duration:3e3,icon:void 0,id:"",message:"",onClose:void 0,showClose:false,type:"info",plain:false,offset:16,zIndex:0,grouping:false,repeatNum:1,appendTo:xe?document.body:void 0}),nc=Fe({customClass:{type:String,default:te.customClass},center:{type:Boolean,default:te.center},dangerouslyUseHTMLString:{type:Boolean,default:te.dangerouslyUseHTMLString},duration:{type:Number,default:te.duration},icon:{type:_n,default:te.icon},id:{type:String,default:te.id},message:{type:ee([String,Object,Function]),default:te.message},onClose:{type:ee(Function),default:te.onClose},showClose:{type:Boolean,default:te.showClose},type:{type:String,values:Ko,default:te.type},plain:{type:Boolean,default:te.plain},offset:{type:Number,default:te.offset},zIndex:{type:Number,default:te.zIndex},grouping:{type:Boolean,default:te.grouping},repeatNum:{type:Number,default:te.repeatNum}}),tc={destroy:()=>true},be=Ri([]),rc=e=>{const n=be.findIndex(o=>o.id===e),t=be[n];let r;return n>0&&(r=be[n-1]),{current:t,prev:r}},oc=e=>{const{prev:n}=rc(e);return n?n.vm.exposed.bottom.value:0},ic=(e,n)=>be.findIndex(r=>r.id===e)>0?16:n,ac=["id"],lc=["innerHTML"],sc=z({name:"ElMessage"}),uc=z({...sc,props:nc,emits:tc,setup(e,{expose:n}){const t=e,{Close:r}=So,{ns:o,zIndex:i}=Bo("message"),{currentZIndex:a,nextZIndex:l}=i,s=F(),u=F(false),p=F(0);let c;const f=w(()=>t.type?t.type==="error"?"danger":t.type:"info"),b=w(()=>{const M=t.type;return{[o.bm("icon",M)]:M&&Yn[M]}}),h=w(()=>t.icon||Yn[t.type]||""),d=w(()=>oc(t.id)),v=w(()=>ic(t.id,t.offset)+d.value),g=w(()=>p.value+v.value),C=w(()=>({top:`${v.value}px`,zIndex:a.value}));function D(){t.duration!==0&&({stop:c}=Hi(()=>{Y()},t.duration))}function U(){c==null||c()}function Y(){u.value=false}function q({code:M}){M===it.esc&&Y()}return _e(()=>{D(),l(),u.value=true}),fe(()=>t.repeatNum,()=>{U(),D()}),ro(document,"keydown",q),oo(s,()=>{p.value=s.value.getBoundingClientRect().height}),n({visible:u,bottom:g,close:Y}),(M,y)=>(_(),j(gn,{name:m(o).b("fade"),onBeforeLeave:M.onClose,onAfterLeave:y[0]||(y[0]=E=>M.$emit("destroy")),persisted:""},{default:O(()=>[pn(S("div",{id:M.id,ref_key:"messageRef",ref:s,class:$([m(o).b(),{[m(o).m(M.type)]:M.type},m(o).is("center",M.center),m(o).is("closable",M.showClose),m(o).is("plain",M.plain),M.customClass]),style:vn(m(C)),role:"alert",onMouseenter:U,onMouseleave:D},[M.repeatNum>1?(_(),j(m(Cu),{key:0,value:M.repeatNum,type:m(f),class:$(m(o).e("badge"))},null,8,["value","type","class"])):L("v-if",true),m(h)?(_(),j(m(we),{key:1,class:$([m(o).e("icon"),m(b)])},{default:O(()=>[(_(),j(me(m(h))))]),_:1},8,["class"])):L("v-if",true),re(M.$slots,"default",{},()=>[M.dangerouslyUseHTMLString?(_(),k(ue,{key:1},[L(" Caution here, message could've been compromised, never use user's input as message "),S("p",{class:$(m(o).e("content")),innerHTML:M.message},null,10,lc)],2112)):(_(),k("p",{key:0,class:$(m(o).e("content"))},H(M.message),3))]),M.showClose?(_(),j(m(we),{key:2,class:$(m(o).e("closeBtn")),onClick:Ie(Y,["stop"])},{default:O(()=>[A(m(r))]),_:1},8,["class","onClick"])):L("v-if",true)],46,ac),[[hn,u.value]])]),_:3},8,["name","onBeforeLeave"]))}});var cc=Ve(uc,[["__file","message.vue"]]);let dc=1;const Yo=e=>{const n=!e||Se(e)||et(e)||Ke(e)?{message:e}:e,t={...te,...n};if(!t.appendTo)t.appendTo=document.body;else if(Se(t.appendTo)){let r=document.querySelector(t.appendTo);_t(r)||(r=document.body),t.appendTo=r}return t},fc=e=>{const n=be.indexOf(e);if(n===-1)return;be.splice(n,1);const{handler:t}=e;t.close()},pc=({appendTo:e,...n},t)=>{const r=`message_${dc++}`,o=n.onClose,i=document.createElement("div"),a={...n,id:r,onClose:()=>{o==null||o(),fc(p)},onDestroy:()=>{Hn(null,i)}},l=A(cc,a,Ke(a.message)||et(a.message)?{default:Ke(a.message)?a.message:()=>a.message}:null);l.appContext=t||on._context,Hn(l,i),e.appendChild(i.firstElementChild);const s=l.component,p={id:r,vnode:l,vm:s,handler:{close:()=>{s.exposed.visible.value=false}},props:l.component.props};return p},on=(e={},n)=>{if(!xe)return{close:()=>{}};if(Ge(St.max)&&be.length>=St.max)return{close:()=>{}};const t=Yo(e);if(t.grouping&&be.length){const o=be.find(({vnode:i})=>{var a;return((a=i.props)==null?void 0:a.message)===t.message});if(o)return o.props.repeatNum+=1,o.props.type=t.type,o.handler}const r=pc(t,n);return be.push(r),r.handler};Ko.forEach(e=>{on[e]=(n={},t)=>{const r=Yo(n);return on({...r,type:e},t)}});function hc(e){for(const n of be)(!e||e===n.props.type)&&n.handler.close()}on.closeAll=hc;on._context=null;const Ce=hs(on,"$message"),mc=z({name:"ElMessageBox",directives:{TrapFocus:qu},components:{ElButton:Wu,ElFocusTrap:gu,ElInput:ou,ElOverlay:ec,ElIcon:we,...So},inheritAttrs:false,props:{buttonSize:{type:String,validator:vs},modal:{type:Boolean,default:true},lockScroll:{type:Boolean,default:true},showClose:{type:Boolean,default:true},closeOnClickModal:{type:Boolean,default:true},closeOnPressEscape:{type:Boolean,default:true},closeOnHashChange:{type:Boolean,default:true},center:Boolean,draggable:Boolean,overflow:Boolean,roundButton:{default:false,type:Boolean},container:{type:String,default:"body"},boxType:{type:String,default:""}},emits:["vanish","action"],setup(e,{emit:n}){const{locale:t,zIndex:r,ns:o,size:i}=Bo("message-box",w(()=>e.buttonSize)),{t:a}=t,{nextZIndex:l}=r,s=F(false),u=$t({autofocus:true,beforeClose:null,callback:null,cancelButtonText:"",cancelButtonClass:"",confirmButtonText:"",confirmButtonClass:"",customClass:"",customStyle:{},dangerouslyUseHTMLString:false,distinguishCancelAndClose:false,icon:"",inputPattern:null,inputPlaceholder:"",inputType:"text",inputValue:null,inputValidator:null,inputErrorMessage:"",message:null,modalFade:true,modalClass:"",showCancelButton:false,showConfirmButton:true,type:"",title:void 0,showInput:false,action:"",confirmButtonLoading:false,cancelButtonLoading:false,confirmButtonLoadingIcon:Kn,cancelButtonLoadingIcon:Kn,confirmButtonDisabled:false,editorErrorMessage:"",validateError:false,zIndex:l()}),p=w(()=>{const K=u.type;return{[o.bm("icon",K)]:K&&Yn[K]}}),c=Ct(),f=Ct(),b=w(()=>u.icon||Yn[u.type]||""),h=w(()=>!!u.message),d=F(),v=F(),g=F(),C=F(),D=F(),U=w(()=>u.confirmButtonClass);fe(()=>u.inputValue,async K=>{await se(),e.boxType==="prompt"&&K!==null&&N()},{immediate:true}),fe(()=>s.value,K=>{var pe,T;K&&(e.boxType!=="prompt"&&(u.autofocus?g.value=(T=(pe=D.value)==null?void 0:pe.$el)!=null?T:d.value:g.value=d.value),u.zIndex=l()),e.boxType==="prompt"&&(K?se().then(()=>{var P;C.value&&C.value.$el&&(u.autofocus?g.value=(P=Te())!=null?P:d.value:g.value=d.value)}):(u.editorErrorMessage="",u.validateError=false))});const Y=w(()=>e.draggable),q=w(()=>e.overflow);_s(d,v,Y,q),_e(async()=>{await se(),e.closeOnHashChange&&window.addEventListener("hashchange",M)}),We(()=>{e.closeOnHashChange&&window.removeEventListener("hashchange",M)});function M(){s.value&&(s.value=false,se(()=>{u.action&&n("action",u.action)}))}const y=()=>{e.closeOnClickModal&&R(u.distinguishCancelAndClose?"close":"cancel")},E=Mo(y),B=K=>{if(u.inputType!=="textarea")return K.preventDefault(),R("confirm")},R=K=>{var pe;e.boxType==="prompt"&&K==="confirm"&&!N()||(u.action=K,u.beforeClose?(pe=u.beforeClose)==null||pe.call(u,K,u,M):M())},N=()=>{if(e.boxType==="prompt"){const K=u.inputPattern;if(K&&!K.test(u.inputValue||""))return u.editorErrorMessage=u.inputErrorMessage||a("el.messagebox.error"),u.validateError=true,false;const pe=u.inputValidator;if(typeof pe=="function"){const T=pe(u.inputValue);if(T===false)return u.editorErrorMessage=u.inputErrorMessage||a("el.messagebox.error"),u.validateError=true,false;if(typeof T=="string")return u.editorErrorMessage=T,u.validateError=true,false}}return u.editorErrorMessage="",u.validateError=false,true},Te=()=>{const K=C.value.$refs;return K.input||K.textarea},ve=()=>{R("close")},J=()=>{e.closeOnPressEscape&&ve()};return e.lockScroll&&ks(s),{...Pi(u),ns:o,overlayEvent:E,visible:s,hasMessage:h,typeClass:p,contentId:c,inputId:f,btnSize:i,iconComponent:b,confirmButtonClasses:U,rootRef:d,focusStartRef:g,headerRef:v,inputRef:C,confirmRef:D,doClose:M,handleClose:ve,onCloseRequested:J,handleWrapperClick:y,handleInputEnter:B,handleAction:R,t:a}}}),vc=["aria-label","aria-describedby"],gc=["aria-label"],yc=["id"];function bc(e,n,t,r,o,i){const a=G("el-icon"),l=G("close"),s=G("el-input"),u=G("el-button"),p=G("el-focus-trap"),c=G("el-overlay");return _(),j(gn,{name:"fade-in-linear",onAfterLeave:n[11]||(n[11]=f=>e.$emit("vanish")),persisted:""},{default:O(()=>[pn(A(c,{"z-index":e.zIndex,"overlay-class":[e.ns.is("message-box"),e.modalClass],mask:e.modal},{default:O(()=>[S("div",{role:"dialog","aria-label":e.title,"aria-modal":"true","aria-describedby":e.showInput?void 0:e.contentId,class:$(`${e.ns.namespace.value}-overlay-message-box`),onClick:n[8]||(n[8]=(...f)=>e.overlayEvent.onClick&&e.overlayEvent.onClick(...f)),onMousedown:n[9]||(n[9]=(...f)=>e.overlayEvent.onMousedown&&e.overlayEvent.onMousedown(...f)),onMouseup:n[10]||(n[10]=(...f)=>e.overlayEvent.onMouseup&&e.overlayEvent.onMouseup(...f))},[A(p,{loop:"",trapped:e.visible,"focus-trap-el":e.rootRef,"focus-start-el":e.focusStartRef,onReleaseRequested:e.onCloseRequested},{default:O(()=>[S("div",{ref:"rootRef",class:$([e.ns.b(),e.customClass,e.ns.is("draggable",e.draggable),{[e.ns.m("center")]:e.center}]),style:vn(e.customStyle),tabindex:"-1",onClick:n[7]||(n[7]=Ie(()=>{},["stop"]))},[e.title!==null&&e.title!==void 0?(_(),k("div",{key:0,ref:"headerRef",class:$([e.ns.e("header"),{"show-close":e.showClose}])},[S("div",{class:$(e.ns.e("title"))},[e.iconComponent&&e.center?(_(),j(a,{key:0,class:$([e.ns.e("status"),e.typeClass])},{default:O(()=>[(_(),j(me(e.iconComponent)))]),_:1},8,["class"])):L("v-if",true),S("span",null,H(e.title),1)],2),e.showClose?(_(),k("button",{key:0,type:"button",class:$(e.ns.e("headerbtn")),"aria-label":e.t("el.messagebox.close"),onClick:n[0]||(n[0]=f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel")),onKeydown:n[1]||(n[1]=On(Ie(f=>e.handleAction(e.distinguishCancelAndClose?"close":"cancel"),["prevent"]),["enter"]))},[A(a,{class:$(e.ns.e("close"))},{default:O(()=>[A(l)]),_:1},8,["class"])],42,gc)):L("v-if",true)],2)):L("v-if",true),S("div",{id:e.contentId,class:$(e.ns.e("content"))},[S("div",{class:$(e.ns.e("container"))},[e.iconComponent&&!e.center&&e.hasMessage?(_(),j(a,{key:0,class:$([e.ns.e("status"),e.typeClass])},{default:O(()=>[(_(),j(me(e.iconComponent)))]),_:1},8,["class"])):L("v-if",true),e.hasMessage?(_(),k("div",{key:1,class:$(e.ns.e("message"))},[re(e.$slots,"default",{},()=>[e.dangerouslyUseHTMLString?(_(),j(me(e.showInput?"label":"p"),{key:1,for:e.showInput?e.inputId:void 0,innerHTML:e.message},null,8,["for","innerHTML"])):(_(),j(me(e.showInput?"label":"p"),{key:0,for:e.showInput?e.inputId:void 0},{default:O(()=>[Z(H(e.dangerouslyUseHTMLString?"":e.message),1)]),_:1},8,["for"]))])],2)):L("v-if",true)],2),pn(S("div",{class:$(e.ns.e("input"))},[A(s,{id:e.inputId,ref:"inputRef",modelValue:e.inputValue,"onUpdate:modelValue":n[2]||(n[2]=f=>e.inputValue=f),type:e.inputType,placeholder:e.inputPlaceholder,"aria-invalid":e.validateError,class:$({invalid:e.validateError}),onKeydown:On(e.handleInputEnter,["enter"])},null,8,["id","modelValue","type","placeholder","aria-invalid","class","onKeydown"]),S("div",{class:$(e.ns.e("errormsg")),style:vn({visibility:e.editorErrorMessage?"visible":"hidden"})},H(e.editorErrorMessage),7)],2),[[hn,e.showInput]])],10,yc),S("div",{class:$(e.ns.e("btns"))},[e.showCancelButton?(_(),j(u,{key:0,loading:e.cancelButtonLoading,"loading-icon":e.cancelButtonLoadingIcon,class:$([e.cancelButtonClass]),round:e.roundButton,size:e.btnSize,onClick:n[3]||(n[3]=f=>e.handleAction("cancel")),onKeydown:n[4]||(n[4]=On(Ie(f=>e.handleAction("cancel"),["prevent"]),["enter"]))},{default:O(()=>[Z(H(e.cancelButtonText||e.t("el.messagebox.cancel")),1)]),_:1},8,["loading","loading-icon","class","round","size"])):L("v-if",true),pn(A(u,{ref:"confirmRef",type:"primary",loading:e.confirmButtonLoading,"loading-icon":e.confirmButtonLoadingIcon,class:$([e.confirmButtonClasses]),round:e.roundButton,disabled:e.confirmButtonDisabled,size:e.btnSize,onClick:n[5]||(n[5]=f=>e.handleAction("confirm")),onKeydown:n[6]||(n[6]=On(Ie(f=>e.handleAction("confirm"),["prevent"]),["enter"]))},{default:O(()=>[Z(H(e.confirmButtonText||e.t("el.messagebox.confirm")),1)]),_:1},8,["loading","loading-icon","class","round","disabled","size"]),[[hn,e.showConfirmButton]])],2)],6)]),_:3},8,["trapped","focus-trap-el","focus-start-el","onReleaseRequested"])],42,vc)]),_:3},8,["z-index","overlay-class","mask"]),[[hn,e.visible]])]),_:3})}var xc=Ve(mc,[["render",bc],["__file","index.vue"]]);const wn=new Map,_c=e=>{let n=document.body;return e.appendTo&&(Se(e.appendTo)&&(n=document.querySelector(e.appendTo)),_t(e.appendTo)&&(n=e.appendTo),_t(n)||(n=document.body)),n},wc=(e,n,t=null)=>{const r=A(xc,e,Ke(e.message)||et(e.message)?{default:Ke(e.message)?e.message:()=>e.message}:null);return r.appContext=t,Hn(r,n),_c(e).appendChild(n.firstElementChild),r.component},Cc=()=>document.createElement("div"),Sc=(e,n)=>{const t=Cc();e.onVanish=()=>{Hn(null,t),wn.delete(o)},e.onAction=i=>{const a=wn.get(o);let l;e.showInput?l={value:o.inputValue,action:i}:l=i,e.callback?e.callback(l,r.proxy):i==="cancel"||i==="close"?e.distinguishCancelAndClose&&i!=="cancel"?a.reject("close"):a.reject("cancel"):a.resolve(l)};const r=wc(e,t,n),o=r.proxy;for(const i in e)zn(e,i)&&!zn(o.$props,i)&&(o[i]=e[i]);return o.visible=true,o};function sn(e,n=null){if(!xe)return Promise.reject();let t;return Se(e)||et(e)?e={message:e}:t=e.callback,new Promise((r,o)=>{const i=Sc(e,n??sn._context);wn.set(i,{options:e,callback:t,resolve:r,reject:o})})}const Ec=["alert","confirm","prompt"],Ac={alert:{closeOnPressEscape:false,closeOnClickModal:false},confirm:{showCancelButton:true},prompt:{showCancelButton:true,showInput:true}};Ec.forEach(e=>{sn[e]=Tc(e)});function Tc(e){return(n,t,r,o)=>{let i="";return yn(t)?(r=t,i=""):mo(t)?i="":i=t,sn(Object.assign({title:i,message:n,type:"",...Ac[e]},r,{boxType:e}),o)}}sn.close=()=>{wn.forEach((e,n)=>{n.doClose()}),wn.clear()};sn._context=null;const $e=sn;$e.install=e=>{$e._context=e._context,e.config.globalProperties.$msgbox=$e,e.config.globalProperties.$messageBox=$e,e.config.globalProperties.$alert=$e.alert,e.config.globalProperties.$confirm=$e.confirm,e.config.globalProperties.$prompt=$e.prompt};const kc=$e,Ic={},Oc={xmlns:"http://www.w3.org/2000/svg",height:"48px",viewBox:"0 -960 960 960",width:"48px"};function Mc(e,n){return _(),k("svg",Oc,[...n[0]||(n[0]=[S("path",{d:"M325.65-197.2 225.83-97.13q-10.2 10.2-23.99 9.7-13.8-.5-24.38-10.7-9.81-10.2-9.81-23.87 0-13.67 10.2-23.87l100.06-100.06h-90.02q-14.42 0-24.24-9.88-9.82-9.87-9.82-24.37 0-14.49 9.82-24.19 9.82-9.7 24.24-9.7h171.83q14.42 0 24.24 9.83 9.82 9.82 9.82 24.24v171.83q0 14.42-9.87 24.24-9.87 9.82-24.37 9.82-14.5 0-24.19-9.82-9.7-9.82-9.7-24.24v-89.03ZM488.09-74.02q-14.67 0-24.49-9.82-9.82-9.82-9.82-24.25v-163.78q0-42.52-29.83-72.36-29.84-29.84-72.36-29.84h-163.5q-14.43 0-24.25-9.82t-9.82-24.48v-409.48q0-28.33 19.9-48.35 19.9-20.02 48.23-20.02h340.48l243.59 243.59v500.48q0 28.33-20.02 48.23t-48.35 19.9H488.09Zm29.76-523.83h220l-220-220 220 220-220-220v220Z"},null,-1)])])}const Fc=Tn(Ic,[["render",Mc]]),Nc={class:"space-y-6"},Lc={class:"relative mb-6",key:"input"},$c={class:"text-center text-gray-400 dark:text-gray-500 py-8",key:"hint"},Bc={class:"text-sm"},Rc={class:"flex justify-end gap-4"},Pc=z({__name:"file",props:{modelValue:{},modelModifiers:{}},emits:eo(["hereditasNext"],["update:modelValue"]),setup(e,{emit:n}){const t=F(false),r=F(null),o=F(navigator.userAgent.includes("Mac")?"⌘":"Ctrl"),i=no(e,"modelValue"),a=c=>{if(!c.name.endsWith(".yml")&&!c.name.endsWith(".yaml")){Ce.error("请确保文件格式为 .yml 或 .yaml");return}const f=new FileReader;f.onload=b=>{i.value=b.target.result,Ce.success("文件已成功加载!")},f.onerror=()=>{Ce.error("读取文件时发生错误。")},f.readAsText(c)},l=c=>{var h;const f=c.target,b=(h=f.files)==null?void 0:h[0];b&&(a(b),f.value="")},s=c=>{var h;t.value=false;const b=Array.from(((h=c.dataTransfer)==null?void 0:h.files)||[]).find(d=>d.name.endsWith(".yml")||d.name.endsWith(".yaml"));if(!b){Ce.error("未在拖拽的文件中找到 .yml 或 .yaml 文件");return}a(b)},u=()=>{i.value="",r.value&&(r.value.value="")},p=c=>{var b;const f=(b=c.clipboardData)==null?void 0:b.getData("text");f&&(f.includes("plugins:")||f.includes("plugin:"))&&(c.preventDefault(),i.value=f,Ce.success("配置已成功粘贴!"))};return _e(()=>{document.addEventListener("paste",p)}),We(()=>{document.removeEventListener("paste",p)}),(c,f)=>{const b=G("el-icon"),h=G("el-input"),d=G("el-button");return _(),k("div",Nc,[S("input",{type:"file",ref_key:"fileInput",ref:r,onChange:l,class:"hidden",accept:".yml,.yaml"},null,544),A(gn,{name:"fade",mode:"out-in"},{default:O(()=>[i.value?L("v-if",true):(_(),k("div",{key:0,onDragover:f[0]||(f[0]=Ie(v=>t.value=true,["prevent"])),onDragleave:f[1]||(f[1]=Ie(v=>t.value=false,["prevent"])),onDrop:Ie(s,["prevent"]),onClick:f[2]||(f[2]=v=>{var g;return(g=r.value)==null?void 0:g.click()}),class:$(["el-card border-4 border-dashed rounded-xl p-8 flex flex-col items-center justify-center transition-all duration-300 cursor-pointer",t.value?"bg-blue-50 dark:bg-gray-800 border-blue-400 scale-105":"border-gray-300 dark:border-gray-600"])},[A(b,{size:64,class:$(["mb-4 light:text-gray-400 dark:text-gray-50 transition-transform duration-300",{"scale-110 text-blue-500":t.value}])},{default:O(()=>[A(Fc)]),_:1},8,["class"]),f[5]||(f[5]=S("p",{class:"text-lg text-gray-500 text-center font-medium"},"拖拽 koishi.yml 文件到这里,或点击以选择。",-1))],34))]),_:1}),A(gn,{name:"expand",mode:"out-in"},{default:O(()=>[i.value?(_(),k("div",Lc,[f[6]||(f[6]=S("div",{class:"flex items-center justify-between mb-2"},[S("label",{class:"text-sm font-medium text-gray-700 dark:text-gray-300"},"导入的配置内容")],-1)),A(h,rn(c.$attrs,{modelValue:i.value,"onUpdate:modelValue":f[3]||(f[3]=v=>i.value=v),type:"textarea",rows:8,placeholder:"plugins: ...",class:"w-full",readonly:""}),null,16,["modelValue"])])):(_(),k("div",$c,[S("p",Bc,H(o.value)+" + V 粘贴配置或使用上面的方式上传文件",1)]))]),_:1}),S("div",Rc,[A(d,{size:"large",round:"",onClick:u,disabled:!i.value},{default:O(()=>[...f[7]||(f[7]=[Z("清除结果",-1)])]),_:1},8,["disabled"]),A(d,{type:"primary",size:"large",round:"",onClick:f[4]||(f[4]=v=>c.$emit("hereditasNext",2)),disabled:!i.value},{default:O(()=>[...f[8]||(f[8]=[Z("下一步",-1)])]),_:1},8,["disabled"])])])}}}),Dc=Tn(Pc,[["__scopeId","data-v-01f39aad"]]);/*! js-yaml 4.1.1 https://github.com/nodeca/js-yaml @license MIT */function Go(e){return typeof e>"u"||e===null}function Vc(e){return typeof e=="object"&&e!==null}function Hc(e){return Array.isArray(e)?e:Go(e)?[]:[e]}function zc(e,n){var t,r,o,i;if(n)for(i=Object.keys(n),t=0,r=i.length;t<r;t+=1)o=i[t],e[o]=n[o];return e}function jc(e,n){var t="",r;for(r=0;r<n;r+=1)t+=e;return t}function Uc(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}var Kc=Go,Yc=Vc,Gc=Hc,Wc=jc,qc=Uc,Xc=zc,X={isNothing:Kc,isObject:Yc,toArray:Gc,repeat:Wc,isNegativeZero:qc,extend:Xc};function Wo(e,n){var t="",r=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(t+='in "'+e.mark.name+'" '),t+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!n&&e.mark.snippet&&(t+=`
|
|
14
|
+
|
|
15
|
+
`+e.mark.snippet),r+" "+t):r}function Cn(e,n){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=n,this.message=Wo(this,false),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack||""}Cn.prototype=Object.create(Error.prototype);Cn.prototype.constructor=Cn;Cn.prototype.toString=function(n){return this.name+": "+Wo(this,n)};var ce=Cn;function gt(e,n,t,r,o){var i="",a="",l=Math.floor(o/2)-1;return r-n>l&&(i=" ... ",n=r-l+i.length),t-r>l&&(a=" ...",t=r+l-a.length),{str:i+e.slice(n,t).replace(/\t/g,"→")+a,pos:r-n+i.length}}function yt(e,n){return X.repeat(" ",n-e.length)+e}function Zc(e,n){if(n=Object.create(n||null),!e.buffer)return null;n.maxLength||(n.maxLength=79),typeof n.indent!="number"&&(n.indent=1),typeof n.linesBefore!="number"&&(n.linesBefore=3),typeof n.linesAfter!="number"&&(n.linesAfter=2);for(var t=/\r?\n|\r|\0/g,r=[0],o=[],i,a=-1;i=t.exec(e.buffer);)o.push(i.index),r.push(i.index+i[0].length),e.position<=i.index&&a<0&&(a=r.length-2);a<0&&(a=r.length-1);var l="",s,u,p=Math.min(e.line+n.linesAfter,o.length).toString().length,c=n.maxLength-(n.indent+p+3);for(s=1;s<=n.linesBefore&&!(a-s<0);s++)u=gt(e.buffer,r[a-s],o[a-s],e.position-(r[a]-r[a-s]),c),l=X.repeat(" ",n.indent)+yt((e.line-s+1).toString(),p)+" | "+u.str+`
|
|
16
|
+
`+l;for(u=gt(e.buffer,r[a],o[a],e.position,c),l+=X.repeat(" ",n.indent)+yt((e.line+1).toString(),p)+" | "+u.str+`
|
|
17
|
+
`,l+=X.repeat("-",n.indent+p+3+u.pos)+`^
|
|
18
|
+
`,s=1;s<=n.linesAfter&&!(a+s>=o.length);s++)u=gt(e.buffer,r[a+s],o[a+s],e.position-(r[a]-r[a+s]),c),l+=X.repeat(" ",n.indent)+yt((e.line+s+1).toString(),p)+" | "+u.str+`
|
|
19
|
+
`;return l.replace(/\n$/,"")}var Jc=Zc,Qc=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],ed=["scalar","sequence","mapping"];function nd(e){var n={};return e!==null&&Object.keys(e).forEach(function(t){e[t].forEach(function(r){n[String(r)]=t})}),n}function td(e,n){if(n=n||{},Object.keys(n).forEach(function(t){if(Qc.indexOf(t)===-1)throw new ce('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')}),this.options=n,this.tag=e,this.kind=n.kind||null,this.resolve=n.resolve||function(){return true},this.construct=n.construct||function(t){return t},this.instanceOf=n.instanceOf||null,this.predicate=n.predicate||null,this.represent=n.represent||null,this.representName=n.representName||null,this.defaultStyle=n.defaultStyle||null,this.multi=n.multi||false,this.styleAliases=nd(n.styleAliases||null),ed.indexOf(this.kind)===-1)throw new ce('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')}var oe=td;function $r(e,n){var t=[];return e[n].forEach(function(r){var o=t.length;t.forEach(function(i,a){i.tag===r.tag&&i.kind===r.kind&&i.multi===r.multi&&(o=a)}),t[o]=r}),t}function rd(){var e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}},n,t;function r(o){o.multi?(e.multi[o.kind].push(o),e.multi.fallback.push(o)):e[o.kind][o.tag]=e.fallback[o.tag]=o}for(n=0,t=arguments.length;n<t;n+=1)arguments[n].forEach(r);return e}function kt(e){return this.extend(e)}kt.prototype.extend=function(n){var t=[],r=[];if(n instanceof oe)r.push(n);else if(Array.isArray(n))r=r.concat(n);else if(n&&(Array.isArray(n.implicit)||Array.isArray(n.explicit)))n.implicit&&(t=t.concat(n.implicit)),n.explicit&&(r=r.concat(n.explicit));else throw new ce("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");t.forEach(function(i){if(!(i instanceof oe))throw new ce("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(i.loadKind&&i.loadKind!=="scalar")throw new ce("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(i.multi)throw new ce("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")}),r.forEach(function(i){if(!(i instanceof oe))throw new ce("Specified list of YAML types (or a single Type object) contains a non-Type object.")});var o=Object.create(kt.prototype);return o.implicit=(this.implicit||[]).concat(t),o.explicit=(this.explicit||[]).concat(r),o.compiledImplicit=$r(o,"implicit"),o.compiledExplicit=$r(o,"explicit"),o.compiledTypeMap=rd(o.compiledImplicit,o.compiledExplicit),o};var od=kt,id=new oe("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}}),ad=new oe("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}}),ld=new oe("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}}),qo=new od({explicit:[id,ad,ld]});function sd(e){if(e===null)return true;var n=e.length;return n===1&&e==="~"||n===4&&(e==="null"||e==="Null"||e==="NULL")}function ud(){return null}function cd(e){return e===null}var dd=new oe("tag:yaml.org,2002:null",{kind:"scalar",resolve:sd,construct:ud,predicate:cd,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});function fd(e){if(e===null)return false;var n=e.length;return n===4&&(e==="true"||e==="True"||e==="TRUE")||n===5&&(e==="false"||e==="False"||e==="FALSE")}function pd(e){return e==="true"||e==="True"||e==="TRUE"}function hd(e){return Object.prototype.toString.call(e)==="[object Boolean]"}var md=new oe("tag:yaml.org,2002:bool",{kind:"scalar",resolve:fd,construct:pd,predicate:hd,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function vd(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function gd(e){return 48<=e&&e<=55}function yd(e){return 48<=e&&e<=57}function bd(e){if(e===null)return false;var n=e.length,t=0,r=false,o;if(!n)return false;if(o=e[t],(o==="-"||o==="+")&&(o=e[++t]),o==="0"){if(t+1===n)return true;if(o=e[++t],o==="b"){for(t++;t<n;t++)if(o=e[t],o!=="_"){if(o!=="0"&&o!=="1")return false;r=true}return r&&o!=="_"}if(o==="x"){for(t++;t<n;t++)if(o=e[t],o!=="_"){if(!vd(e.charCodeAt(t)))return false;r=true}return r&&o!=="_"}if(o==="o"){for(t++;t<n;t++)if(o=e[t],o!=="_"){if(!gd(e.charCodeAt(t)))return false;r=true}return r&&o!=="_"}}if(o==="_")return false;for(;t<n;t++)if(o=e[t],o!=="_"){if(!yd(e.charCodeAt(t)))return false;r=true}return!(!r||o==="_")}function xd(e){var n=e,t=1,r;if(n.indexOf("_")!==-1&&(n=n.replace(/_/g,"")),r=n[0],(r==="-"||r==="+")&&(r==="-"&&(t=-1),n=n.slice(1),r=n[0]),n==="0")return 0;if(r==="0"){if(n[1]==="b")return t*parseInt(n.slice(2),2);if(n[1]==="x")return t*parseInt(n.slice(2),16);if(n[1]==="o")return t*parseInt(n.slice(2),8)}return t*parseInt(n,10)}function _d(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!X.isNegativeZero(e)}var wd=new oe("tag:yaml.org,2002:int",{kind:"scalar",resolve:bd,construct:xd,predicate:_d,represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),Cd=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function Sd(e){return!(e===null||!Cd.test(e)||e[e.length-1]==="_")}function Ed(e){var n,t;return n=e.replace(/_/g,"").toLowerCase(),t=n[0]==="-"?-1:1,"+-".indexOf(n[0])>=0&&(n=n.slice(1)),n===".inf"?t===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:n===".nan"?NaN:t*parseFloat(n,10)}var Ad=/^[-+]?[0-9]+e/;function Td(e,n){var t;if(isNaN(e))switch(n){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(n){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(n){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(X.isNegativeZero(e))return"-0.0";return t=e.toString(10),Ad.test(t)?t.replace("e",".e"):t}function kd(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||X.isNegativeZero(e))}var Id=new oe("tag:yaml.org,2002:float",{kind:"scalar",resolve:Sd,construct:Ed,predicate:kd,represent:Td,defaultStyle:"lowercase"}),Od=qo.extend({implicit:[dd,md,wd,Id]}),Md=Od,Xo=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),Zo=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");function Fd(e){return e===null?false:Xo.exec(e)!==null||Zo.exec(e)!==null}function Nd(e){var n,t,r,o,i,a,l,s=0,u=null,p,c,f;if(n=Xo.exec(e),n===null&&(n=Zo.exec(e)),n===null)throw new Error("Date resolve error");if(t=+n[1],r=+n[2]-1,o=+n[3],!n[4])return new Date(Date.UTC(t,r,o));if(i=+n[4],a=+n[5],l=+n[6],n[7]){for(s=n[7].slice(0,3);s.length<3;)s+="0";s=+s}return n[9]&&(p=+n[10],c=+(n[11]||0),u=(p*60+c)*6e4,n[9]==="-"&&(u=-u)),f=new Date(Date.UTC(t,r,o,i,a,l,s)),u&&f.setTime(f.getTime()-u),f}function Ld(e){return e.toISOString()}var $d=new oe("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:Fd,construct:Nd,instanceOf:Date,represent:Ld});function Bd(e){return e==="<<"||e===null}var Rd=new oe("tag:yaml.org,2002:merge",{kind:"scalar",resolve:Bd}),qt=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
20
|
+
\r`;function Pd(e){if(e===null)return false;var n,t,r=0,o=e.length,i=qt;for(t=0;t<o;t++)if(n=i.indexOf(e.charAt(t)),!(n>64)){if(n<0)return false;r+=6}return r%8===0}function Dd(e){var n,t,r=e.replace(/[\r\n=]/g,""),o=r.length,i=qt,a=0,l=[];for(n=0;n<o;n++)n%4===0&&n&&(l.push(a>>16&255),l.push(a>>8&255),l.push(a&255)),a=a<<6|i.indexOf(r.charAt(n));return t=o%4*6,t===0?(l.push(a>>16&255),l.push(a>>8&255),l.push(a&255)):t===18?(l.push(a>>10&255),l.push(a>>2&255)):t===12&&l.push(a>>4&255),new Uint8Array(l)}function Vd(e){var n="",t=0,r,o,i=e.length,a=qt;for(r=0;r<i;r++)r%3===0&&r&&(n+=a[t>>18&63],n+=a[t>>12&63],n+=a[t>>6&63],n+=a[t&63]),t=(t<<8)+e[r];return o=i%3,o===0?(n+=a[t>>18&63],n+=a[t>>12&63],n+=a[t>>6&63],n+=a[t&63]):o===2?(n+=a[t>>10&63],n+=a[t>>4&63],n+=a[t<<2&63],n+=a[64]):o===1&&(n+=a[t>>2&63],n+=a[t<<4&63],n+=a[64],n+=a[64]),n}function Hd(e){return Object.prototype.toString.call(e)==="[object Uint8Array]"}var zd=new oe("tag:yaml.org,2002:binary",{kind:"scalar",resolve:Pd,construct:Dd,predicate:Hd,represent:Vd}),jd=Object.prototype.hasOwnProperty,Ud=Object.prototype.toString;function Kd(e){if(e===null)return true;var n=[],t,r,o,i,a,l=e;for(t=0,r=l.length;t<r;t+=1){if(o=l[t],a=false,Ud.call(o)!=="[object Object]")return false;for(i in o)if(jd.call(o,i))if(!a)a=true;else return false;if(!a)return false;if(n.indexOf(i)===-1)n.push(i);else return false}return true}function Yd(e){return e!==null?e:[]}var Gd=new oe("tag:yaml.org,2002:omap",{kind:"sequence",resolve:Kd,construct:Yd}),Wd=Object.prototype.toString;function qd(e){if(e===null)return true;var n,t,r,o,i,a=e;for(i=new Array(a.length),n=0,t=a.length;n<t;n+=1){if(r=a[n],Wd.call(r)!=="[object Object]"||(o=Object.keys(r),o.length!==1))return false;i[n]=[o[0],r[o[0]]]}return true}function Xd(e){if(e===null)return[];var n,t,r,o,i,a=e;for(i=new Array(a.length),n=0,t=a.length;n<t;n+=1)r=a[n],o=Object.keys(r),i[n]=[o[0],r[o[0]]];return i}var Zd=new oe("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:qd,construct:Xd}),Jd=Object.prototype.hasOwnProperty;function Qd(e){if(e===null)return true;var n,t=e;for(n in t)if(Jd.call(t,n)&&t[n]!==null)return false;return true}function ef(e){return e!==null?e:{}}var nf=new oe("tag:yaml.org,2002:set",{kind:"mapping",resolve:Qd,construct:ef}),Jo=Md.extend({implicit:[$d,Rd],explicit:[zd,Gd,Zd,nf]}),De=Object.prototype.hasOwnProperty,qn=1,Qo=2,ei=3,Xn=4,bt=1,tf=2,Br=3,rf=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,of=/[\x85\u2028\u2029]/,af=/[,\[\]\{\}]/,ni=/^(?:!|!!|![a-z\-]+!)$/i,ti=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Rr(e){return Object.prototype.toString.call(e)}function Ee(e){return e===10||e===13}function Ue(e){return e===9||e===32}function de(e){return e===9||e===32||e===10||e===13}function nn(e){return e===44||e===91||e===93||e===123||e===125}function lf(e){var n;return 48<=e&&e<=57?e-48:(n=e|32,97<=n&&n<=102?n-97+10:-1)}function sf(e){return e===120?2:e===117?4:e===85?8:0}function uf(e){return 48<=e&&e<=57?e-48:-1}function Pr(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
21
|
+
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"
":e===95?" ":e===76?"\u2028":e===80?"\u2029":""}function cf(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function ri(e,n,t){n==="__proto__"?Object.defineProperty(e,n,{configurable:true,enumerable:true,writable:true,value:t}):e[n]=t}var oi=new Array(256),ii=new Array(256);for(var Je=0;Je<256;Je++)oi[Je]=Pr(Je)?1:0,ii[Je]=Pr(Je);function df(e,n){this.input=e,this.filename=n.filename||null,this.schema=n.schema||Jo,this.onWarning=n.onWarning||null,this.legacy=n.legacy||false,this.json=n.json||false,this.listener=n.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function ai(e,n){var t={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return t.snippet=Jc(t),new ce(n,t)}function I(e,n){throw ai(e,n)}function Zn(e,n){e.onWarning&&e.onWarning.call(null,ai(e,n))}var Dr={YAML:function(n,t,r){var o,i,a;n.version!==null&&I(n,"duplication of %YAML directive"),r.length!==1&&I(n,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(r[0]),o===null&&I(n,"ill-formed argument of the YAML directive"),i=parseInt(o[1],10),a=parseInt(o[2],10),i!==1&&I(n,"unacceptable YAML version of the document"),n.version=r[0],n.checkLineBreaks=a<2,a!==1&&a!==2&&Zn(n,"unsupported YAML version of the document")},TAG:function(n,t,r){var o,i;r.length!==2&&I(n,"TAG directive accepts exactly two arguments"),o=r[0],i=r[1],ni.test(o)||I(n,"ill-formed tag handle (first argument) of the TAG directive"),De.call(n.tagMap,o)&&I(n,'there is a previously declared suffix for "'+o+'" tag handle'),ti.test(i)||I(n,"ill-formed tag prefix (second argument) of the TAG directive");try{i=decodeURIComponent(i)}catch{I(n,"tag prefix is malformed: "+i)}n.tagMap[o]=i}};function Re(e,n,t,r){var o,i,a,l;if(n<t){if(l=e.input.slice(n,t),r)for(o=0,i=l.length;o<i;o+=1)a=l.charCodeAt(o),a===9||32<=a&&a<=1114111||I(e,"expected valid JSON character");else rf.test(l)&&I(e,"the stream contains non-printable characters");e.result+=l}}function Vr(e,n,t,r){var o,i,a,l;for(X.isObject(t)||I(e,"cannot merge mappings; the provided source object is unacceptable"),o=Object.keys(t),a=0,l=o.length;a<l;a+=1)i=o[a],De.call(n,i)||(ri(n,i,t[i]),r[i]=true)}function tn(e,n,t,r,o,i,a,l,s){var u,p;if(Array.isArray(o))for(o=Array.prototype.slice.call(o),u=0,p=o.length;u<p;u+=1)Array.isArray(o[u])&&I(e,"nested arrays are not supported inside keys"),typeof o=="object"&&Rr(o[u])==="[object Object]"&&(o[u]="[object Object]");if(typeof o=="object"&&Rr(o)==="[object Object]"&&(o="[object Object]"),o=String(o),n===null&&(n={}),r==="tag:yaml.org,2002:merge")if(Array.isArray(i))for(u=0,p=i.length;u<p;u+=1)Vr(e,n,i[u],t);else Vr(e,n,i,t);else!e.json&&!De.call(t,o)&&De.call(n,o)&&(e.line=a||e.line,e.lineStart=l||e.lineStart,e.position=s||e.position,I(e,"duplicated mapping key")),ri(n,o,i),delete t[o];return n}function Xt(e){var n;n=e.input.charCodeAt(e.position),n===10?e.position++:n===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):I(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function W(e,n,t){for(var r=0,o=e.input.charCodeAt(e.position);o!==0;){for(;Ue(o);)o===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),o=e.input.charCodeAt(++e.position);if(n&&o===35)do o=e.input.charCodeAt(++e.position);while(o!==10&&o!==13&&o!==0);if(Ee(o))for(Xt(e),o=e.input.charCodeAt(e.position),r++,e.lineIndent=0;o===32;)e.lineIndent++,o=e.input.charCodeAt(++e.position);else break}return t!==-1&&r!==0&&e.lineIndent<t&&Zn(e,"deficient indentation"),r}function lt(e){var n=e.position,t;return t=e.input.charCodeAt(n),!!((t===45||t===46)&&t===e.input.charCodeAt(n+1)&&t===e.input.charCodeAt(n+2)&&(n+=3,t=e.input.charCodeAt(n),t===0||de(t)))}function Zt(e,n){n===1?e.result+=" ":n>1&&(e.result+=X.repeat(`
|
|
22
|
+
`,n-1))}function ff(e,n,t){var r,o,i,a,l,s,u,p,c=e.kind,f=e.result,b;if(b=e.input.charCodeAt(e.position),de(b)||nn(b)||b===35||b===38||b===42||b===33||b===124||b===62||b===39||b===34||b===37||b===64||b===96||(b===63||b===45)&&(o=e.input.charCodeAt(e.position+1),de(o)||t&&nn(o)))return false;for(e.kind="scalar",e.result="",i=a=e.position,l=false;b!==0;){if(b===58){if(o=e.input.charCodeAt(e.position+1),de(o)||t&&nn(o))break}else if(b===35){if(r=e.input.charCodeAt(e.position-1),de(r))break}else{if(e.position===e.lineStart&<(e)||t&&nn(b))break;if(Ee(b))if(s=e.line,u=e.lineStart,p=e.lineIndent,W(e,false,-1),e.lineIndent>=n){l=true,b=e.input.charCodeAt(e.position);continue}else{e.position=a,e.line=s,e.lineStart=u,e.lineIndent=p;break}}l&&(Re(e,i,a,false),Zt(e,e.line-s),i=a=e.position,l=false),Ue(b)||(a=e.position+1),b=e.input.charCodeAt(++e.position)}return Re(e,i,a,false),e.result?true:(e.kind=c,e.result=f,false)}function pf(e,n){var t,r,o;if(t=e.input.charCodeAt(e.position),t!==39)return false;for(e.kind="scalar",e.result="",e.position++,r=o=e.position;(t=e.input.charCodeAt(e.position))!==0;)if(t===39)if(Re(e,r,e.position,true),t=e.input.charCodeAt(++e.position),t===39)r=e.position,e.position++,o=e.position;else return true;else Ee(t)?(Re(e,r,o,true),Zt(e,W(e,false,n)),r=o=e.position):e.position===e.lineStart&<(e)?I(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position);I(e,"unexpected end of the stream within a single quoted scalar")}function hf(e,n){var t,r,o,i,a,l;if(l=e.input.charCodeAt(e.position),l!==34)return false;for(e.kind="scalar",e.result="",e.position++,t=r=e.position;(l=e.input.charCodeAt(e.position))!==0;){if(l===34)return Re(e,t,e.position,true),e.position++,true;if(l===92){if(Re(e,t,e.position,true),l=e.input.charCodeAt(++e.position),Ee(l))W(e,false,n);else if(l<256&&oi[l])e.result+=ii[l],e.position++;else if((a=sf(l))>0){for(o=a,i=0;o>0;o--)l=e.input.charCodeAt(++e.position),(a=lf(l))>=0?i=(i<<4)+a:I(e,"expected hexadecimal character");e.result+=cf(i),e.position++}else I(e,"unknown escape sequence");t=r=e.position}else Ee(l)?(Re(e,t,r,true),Zt(e,W(e,false,n)),t=r=e.position):e.position===e.lineStart&<(e)?I(e,"unexpected end of the document within a double quoted scalar"):(e.position++,r=e.position)}I(e,"unexpected end of the stream within a double quoted scalar")}function mf(e,n){var t=true,r,o,i,a=e.tag,l,s=e.anchor,u,p,c,f,b,h=Object.create(null),d,v,g,C;if(C=e.input.charCodeAt(e.position),C===91)p=93,b=false,l=[];else if(C===123)p=125,b=true,l={};else return false;for(e.anchor!==null&&(e.anchorMap[e.anchor]=l),C=e.input.charCodeAt(++e.position);C!==0;){if(W(e,true,n),C=e.input.charCodeAt(e.position),C===p)return e.position++,e.tag=a,e.anchor=s,e.kind=b?"mapping":"sequence",e.result=l,true;t?C===44&&I(e,"expected the node content, but found ','"):I(e,"missed comma between flow collection entries"),v=d=g=null,c=f=false,C===63&&(u=e.input.charCodeAt(e.position+1),de(u)&&(c=f=true,e.position++,W(e,true,n))),r=e.line,o=e.lineStart,i=e.position,an(e,n,qn,false,true),v=e.tag,d=e.result,W(e,true,n),C=e.input.charCodeAt(e.position),(f||e.line===r)&&C===58&&(c=true,C=e.input.charCodeAt(++e.position),W(e,true,n),an(e,n,qn,false,true),g=e.result),b?tn(e,l,h,v,d,g,r,o,i):c?l.push(tn(e,null,h,v,d,g,r,o,i)):l.push(d),W(e,true,n),C=e.input.charCodeAt(e.position),C===44?(t=true,C=e.input.charCodeAt(++e.position)):t=false}I(e,"unexpected end of the stream within a flow collection")}function vf(e,n){var t,r,o=bt,i=false,a=false,l=n,s=0,u=false,p,c;if(c=e.input.charCodeAt(e.position),c===124)r=false;else if(c===62)r=true;else return false;for(e.kind="scalar",e.result="";c!==0;)if(c=e.input.charCodeAt(++e.position),c===43||c===45)bt===o?o=c===43?Br:tf:I(e,"repeat of a chomping mode identifier");else if((p=uf(c))>=0)p===0?I(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):a?I(e,"repeat of an indentation width identifier"):(l=n+p-1,a=true);else break;if(Ue(c)){do c=e.input.charCodeAt(++e.position);while(Ue(c));if(c===35)do c=e.input.charCodeAt(++e.position);while(!Ee(c)&&c!==0)}for(;c!==0;){for(Xt(e),e.lineIndent=0,c=e.input.charCodeAt(e.position);(!a||e.lineIndent<l)&&c===32;)e.lineIndent++,c=e.input.charCodeAt(++e.position);if(!a&&e.lineIndent>l&&(l=e.lineIndent),Ee(c)){s++;continue}if(e.lineIndent<l){o===Br?e.result+=X.repeat(`
|
|
23
|
+
`,i?1+s:s):o===bt&&i&&(e.result+=`
|
|
24
|
+
`);break}for(r?Ue(c)?(u=true,e.result+=X.repeat(`
|
|
25
|
+
`,i?1+s:s)):u?(u=false,e.result+=X.repeat(`
|
|
26
|
+
`,s+1)):s===0?i&&(e.result+=" "):e.result+=X.repeat(`
|
|
27
|
+
`,s):e.result+=X.repeat(`
|
|
28
|
+
`,i?1+s:s),i=true,a=true,s=0,t=e.position;!Ee(c)&&c!==0;)c=e.input.charCodeAt(++e.position);Re(e,t,e.position,false)}return true}function Hr(e,n){var t,r=e.tag,o=e.anchor,i=[],a,l=false,s;if(e.firstTabInLine!==-1)return false;for(e.anchor!==null&&(e.anchorMap[e.anchor]=i),s=e.input.charCodeAt(e.position);s!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,I(e,"tab characters must not be used in indentation")),!(s!==45||(a=e.input.charCodeAt(e.position+1),!de(a))));){if(l=true,e.position++,W(e,true,-1)&&e.lineIndent<=n){i.push(null),s=e.input.charCodeAt(e.position);continue}if(t=e.line,an(e,n,ei,false,true),i.push(e.result),W(e,true,-1),s=e.input.charCodeAt(e.position),(e.line===t||e.lineIndent>n)&&s!==0)I(e,"bad indentation of a sequence entry");else if(e.lineIndent<n)break}return l?(e.tag=r,e.anchor=o,e.kind="sequence",e.result=i,true):false}function gf(e,n,t){var r,o,i,a,l,s,u=e.tag,p=e.anchor,c={},f=Object.create(null),b=null,h=null,d=null,v=false,g=false,C;if(e.firstTabInLine!==-1)return false;for(e.anchor!==null&&(e.anchorMap[e.anchor]=c),C=e.input.charCodeAt(e.position);C!==0;){if(!v&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,I(e,"tab characters must not be used in indentation")),r=e.input.charCodeAt(e.position+1),i=e.line,(C===63||C===58)&&de(r))C===63?(v&&(tn(e,c,f,b,h,null,a,l,s),b=h=d=null),g=true,v=true,o=true):v?(v=false,o=true):I(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,C=r;else{if(a=e.line,l=e.lineStart,s=e.position,!an(e,t,Qo,false,true))break;if(e.line===i){for(C=e.input.charCodeAt(e.position);Ue(C);)C=e.input.charCodeAt(++e.position);if(C===58)C=e.input.charCodeAt(++e.position),de(C)||I(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(tn(e,c,f,b,h,null,a,l,s),b=h=d=null),g=true,v=false,o=false,b=e.tag,h=e.result;else if(g)I(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=u,e.anchor=p,true}else if(g)I(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return e.tag=u,e.anchor=p,true}if((e.line===i||e.lineIndent>n)&&(v&&(a=e.line,l=e.lineStart,s=e.position),an(e,n,Xn,true,o)&&(v?h=e.result:d=e.result),v||(tn(e,c,f,b,h,d,a,l,s),b=h=d=null),W(e,true,-1),C=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>n)&&C!==0)I(e,"bad indentation of a mapping entry");else if(e.lineIndent<n)break}return v&&tn(e,c,f,b,h,null,a,l,s),g&&(e.tag=u,e.anchor=p,e.kind="mapping",e.result=c),g}function yf(e){var n,t=false,r=false,o,i,a;if(a=e.input.charCodeAt(e.position),a!==33)return false;if(e.tag!==null&&I(e,"duplication of a tag property"),a=e.input.charCodeAt(++e.position),a===60?(t=true,a=e.input.charCodeAt(++e.position)):a===33?(r=true,o="!!",a=e.input.charCodeAt(++e.position)):o="!",n=e.position,t){do a=e.input.charCodeAt(++e.position);while(a!==0&&a!==62);e.position<e.length?(i=e.input.slice(n,e.position),a=e.input.charCodeAt(++e.position)):I(e,"unexpected end of the stream within a verbatim tag")}else{for(;a!==0&&!de(a);)a===33&&(r?I(e,"tag suffix cannot contain exclamation marks"):(o=e.input.slice(n-1,e.position+1),ni.test(o)||I(e,"named tag handle cannot contain such characters"),r=true,n=e.position+1)),a=e.input.charCodeAt(++e.position);i=e.input.slice(n,e.position),af.test(i)&&I(e,"tag suffix cannot contain flow indicator characters")}i&&!ti.test(i)&&I(e,"tag name cannot contain such characters: "+i);try{i=decodeURIComponent(i)}catch{I(e,"tag name is malformed: "+i)}return t?e.tag=i:De.call(e.tagMap,o)?e.tag=e.tagMap[o]+i:o==="!"?e.tag="!"+i:o==="!!"?e.tag="tag:yaml.org,2002:"+i:I(e,'undeclared tag handle "'+o+'"'),true}function bf(e){var n,t;if(t=e.input.charCodeAt(e.position),t!==38)return false;for(e.anchor!==null&&I(e,"duplication of an anchor property"),t=e.input.charCodeAt(++e.position),n=e.position;t!==0&&!de(t)&&!nn(t);)t=e.input.charCodeAt(++e.position);return e.position===n&&I(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(n,e.position),true}function xf(e){var n,t,r;if(r=e.input.charCodeAt(e.position),r!==42)return false;for(r=e.input.charCodeAt(++e.position),n=e.position;r!==0&&!de(r)&&!nn(r);)r=e.input.charCodeAt(++e.position);return e.position===n&&I(e,"name of an alias node must contain at least one character"),t=e.input.slice(n,e.position),De.call(e.anchorMap,t)||I(e,'unidentified alias "'+t+'"'),e.result=e.anchorMap[t],W(e,true,-1),true}function an(e,n,t,r,o){var i,a,l,s=1,u=false,p=false,c,f,b,h,d,v;if(e.listener!==null&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=a=l=Xn===t||ei===t,r&&W(e,true,-1)&&(u=true,e.lineIndent>n?s=1:e.lineIndent===n?s=0:e.lineIndent<n&&(s=-1)),s===1)for(;yf(e)||bf(e);)W(e,true,-1)?(u=true,l=i,e.lineIndent>n?s=1:e.lineIndent===n?s=0:e.lineIndent<n&&(s=-1)):l=false;if(l&&(l=u||o),(s===1||Xn===t)&&(qn===t||Qo===t?d=n:d=n+1,v=e.position-e.lineStart,s===1?l&&(Hr(e,v)||gf(e,v,d))||mf(e,d)?p=true:(a&&vf(e,d)||pf(e,d)||hf(e,d)?p=true:xf(e)?(p=true,(e.tag!==null||e.anchor!==null)&&I(e,"alias node should not have any properties")):ff(e,d,qn===t)&&(p=true,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):s===0&&(p=l&&Hr(e,v))),e.tag===null)e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);else if(e.tag==="?"){for(e.result!==null&&e.kind!=="scalar"&&I(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),c=0,f=e.implicitTypes.length;c<f;c+=1)if(h=e.implicitTypes[c],h.resolve(e.result)){e.result=h.construct(e.result),e.tag=h.tag,e.anchor!==null&&(e.anchorMap[e.anchor]=e.result);break}}else if(e.tag!=="!"){if(De.call(e.typeMap[e.kind||"fallback"],e.tag))h=e.typeMap[e.kind||"fallback"][e.tag];else for(h=null,b=e.typeMap.multi[e.kind||"fallback"],c=0,f=b.length;c<f;c+=1)if(e.tag.slice(0,b[c].tag.length)===b[c].tag){h=b[c];break}h||I(e,"unknown tag !<"+e.tag+">"),e.result!==null&&h.kind!==e.kind&&I(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+h.kind+'", not "'+e.kind+'"'),h.resolve(e.result,e.tag)?(e.result=h.construct(e.result,e.tag),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result)):I(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return e.listener!==null&&e.listener("close",e),e.tag!==null||e.anchor!==null||p}function _f(e){var n=e.position,t,r,o,i=false,a;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(a=e.input.charCodeAt(e.position))!==0&&(W(e,true,-1),a=e.input.charCodeAt(e.position),!(e.lineIndent>0||a!==37));){for(i=true,a=e.input.charCodeAt(++e.position),t=e.position;a!==0&&!de(a);)a=e.input.charCodeAt(++e.position);for(r=e.input.slice(t,e.position),o=[],r.length<1&&I(e,"directive name must not be less than one character in length");a!==0;){for(;Ue(a);)a=e.input.charCodeAt(++e.position);if(a===35){do a=e.input.charCodeAt(++e.position);while(a!==0&&!Ee(a));break}if(Ee(a))break;for(t=e.position;a!==0&&!de(a);)a=e.input.charCodeAt(++e.position);o.push(e.input.slice(t,e.position))}a!==0&&Xt(e),De.call(Dr,r)?Dr[r](e,r,o):Zn(e,'unknown document directive "'+r+'"')}if(W(e,true,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,W(e,true,-1)):i&&I(e,"directives end mark is expected"),an(e,e.lineIndent-1,Xn,false,true),W(e,true,-1),e.checkLineBreaks&&of.test(e.input.slice(n,e.position))&&Zn(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&<(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,W(e,true,-1));return}if(e.position<e.length-1)I(e,"end of the stream or a document separator is expected");else return}function wf(e,n){e=String(e),n=n||{},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
|
|
29
|
+
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var t=new df(e,n),r=e.indexOf("\0");for(r!==-1&&(t.position=r,I(t,"null byte is not allowed in input")),t.input+="\0";t.input.charCodeAt(t.position)===32;)t.lineIndent+=1,t.position+=1;for(;t.position<t.length-1;)_f(t);return t.documents}function Cf(e,n){var t=wf(e,n);if(t.length!==0){if(t.length===1)return t[0];throw new ce("expected a single document in the stream, but found more")}}var Sf=Cf,Ef={load:Sf},li=Object.prototype.toString,si=Object.prototype.hasOwnProperty,Jt=65279,Af=9,Sn=10,Tf=13,kf=32,If=33,Of=34,It=35,Mf=37,Ff=38,Nf=39,Lf=42,ui=44,$f=45,Jn=58,Bf=61,Rf=62,Pf=63,Df=64,ci=91,di=93,Vf=96,fi=123,Hf=124,pi=125,ie={};ie[0]="\\0";ie[7]="\\a";ie[8]="\\b";ie[9]="\\t";ie[10]="\\n";ie[11]="\\v";ie[12]="\\f";ie[13]="\\r";ie[27]="\\e";ie[34]='\\"';ie[92]="\\\\";ie[133]="\\N";ie[160]="\\_";ie[8232]="\\L";ie[8233]="\\P";var zf=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],jf=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Uf(e,n){var t,r,o,i,a,l,s;if(n===null)return{};for(t={},r=Object.keys(n),o=0,i=r.length;o<i;o+=1)a=r[o],l=String(n[a]),a.slice(0,2)==="!!"&&(a="tag:yaml.org,2002:"+a.slice(2)),s=e.compiledTypeMap.fallback[a],s&&si.call(s.styleAliases,l)&&(l=s.styleAliases[l]),t[a]=l;return t}function Kf(e){var n,t,r;if(n=e.toString(16).toUpperCase(),e<=255)t="x",r=2;else if(e<=65535)t="u",r=4;else if(e<=4294967295)t="U",r=8;else throw new ce("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+t+X.repeat("0",r-n.length)+n}var Yf=1,En=2;function Gf(e){this.schema=e.schema||Jo,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||false,this.skipInvalid=e.skipInvalid||false,this.flowLevel=X.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Uf(this.schema,e.styles||null),this.sortKeys=e.sortKeys||false,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||false,this.noCompatMode=e.noCompatMode||false,this.condenseFlow=e.condenseFlow||false,this.quotingType=e.quotingType==='"'?En:Yf,this.forceQuotes=e.forceQuotes||false,this.replacer=typeof e.replacer=="function"?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function zr(e,n){for(var t=X.repeat(" ",n),r=0,o=-1,i="",a,l=e.length;r<l;)o=e.indexOf(`
|
|
30
|
+
`,r),o===-1?(a=e.slice(r),r=l):(a=e.slice(r,o+1),r=o+1),a.length&&a!==`
|
|
31
|
+
`&&(i+=t),i+=a;return i}function Ot(e,n){return`
|
|
32
|
+
`+X.repeat(" ",e.indent*n)}function Wf(e,n){var t,r,o;for(t=0,r=e.implicitTypes.length;t<r;t+=1)if(o=e.implicitTypes[t],o.resolve(n))return true;return false}function Qn(e){return e===kf||e===Af}function An(e){return 32<=e&&e<=126||161<=e&&e<=55295&&e!==8232&&e!==8233||57344<=e&&e<=65533&&e!==Jt||65536<=e&&e<=1114111}function jr(e){return An(e)&&e!==Jt&&e!==Tf&&e!==Sn}function Ur(e,n,t){var r=jr(e),o=r&&!Qn(e);return(t?r:r&&e!==ui&&e!==ci&&e!==di&&e!==fi&&e!==pi)&&e!==It&&!(n===Jn&&!o)||jr(n)&&!Qn(n)&&e===It||n===Jn&&o}function qf(e){return An(e)&&e!==Jt&&!Qn(e)&&e!==$f&&e!==Pf&&e!==Jn&&e!==ui&&e!==ci&&e!==di&&e!==fi&&e!==pi&&e!==It&&e!==Ff&&e!==Lf&&e!==If&&e!==Hf&&e!==Bf&&e!==Rf&&e!==Nf&&e!==Of&&e!==Mf&&e!==Df&&e!==Vf}function Xf(e){return!Qn(e)&&e!==Jn}function fn(e,n){var t=e.charCodeAt(n),r;return t>=55296&&t<=56319&&n+1<e.length&&(r=e.charCodeAt(n+1),r>=56320&&r<=57343)?(t-55296)*1024+r-56320+65536:t}function hi(e){var n=/^\n* /;return n.test(e)}var mi=1,Mt=2,vi=3,gi=4,en=5;function Zf(e,n,t,r,o,i,a,l){var s,u=0,p=null,c=false,f=false,b=r!==-1,h=-1,d=qf(fn(e,0))&&Xf(fn(e,e.length-1));if(n||a)for(s=0;s<e.length;u>=65536?s+=2:s++){if(u=fn(e,s),!An(u))return en;d=d&&Ur(u,p,l),p=u}else{for(s=0;s<e.length;u>=65536?s+=2:s++){if(u=fn(e,s),u===Sn)c=true,b&&(f=f||s-h-1>r&&e[h+1]!==" ",h=s);else if(!An(u))return en;d=d&&Ur(u,p,l),p=u}f=f||b&&s-h-1>r&&e[h+1]!==" "}return!c&&!f?d&&!a&&!o(e)?mi:i===En?en:Mt:t>9&&hi(e)?en:a?i===En?en:Mt:f?gi:vi}function Jf(e,n,t,r,o){e.dump=function(){if(n.length===0)return e.quotingType===En?'""':"''";if(!e.noCompatMode&&(zf.indexOf(n)!==-1||jf.test(n)))return e.quotingType===En?'"'+n+'"':"'"+n+"'";var i=e.indent*Math.max(1,t),a=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),l=r||e.flowLevel>-1&&t>=e.flowLevel;function s(u){return Wf(e,u)}switch(Zf(n,l,e.indent,a,s,e.quotingType,e.forceQuotes&&!r,o)){case mi:return n;case Mt:return"'"+n.replace(/'/g,"''")+"'";case vi:return"|"+Kr(n,e.indent)+Yr(zr(n,i));case gi:return">"+Kr(n,e.indent)+Yr(zr(Qf(n,a),i));case en:return'"'+ep(n)+'"';default:throw new ce("impossible error: invalid scalar style")}}()}function Kr(e,n){var t=hi(e)?String(n):"",r=e[e.length-1]===`
|
|
33
|
+
`,o=r&&(e[e.length-2]===`
|
|
34
|
+
`||e===`
|
|
35
|
+
`),i=o?"+":r?"":"-";return t+i+`
|
|
36
|
+
`}function Yr(e){return e[e.length-1]===`
|
|
37
|
+
`?e.slice(0,-1):e}function Qf(e,n){for(var t=/(\n+)([^\n]*)/g,r=function(){var u=e.indexOf(`
|
|
38
|
+
`);return u=u!==-1?u:e.length,t.lastIndex=u,Gr(e.slice(0,u),n)}(),o=e[0]===`
|
|
39
|
+
`||e[0]===" ",i,a;a=t.exec(e);){var l=a[1],s=a[2];i=s[0]===" ",r+=l+(!o&&!i&&s!==""?`
|
|
40
|
+
`:"")+Gr(s,n),o=i}return r}function Gr(e,n){if(e===""||e[0]===" ")return e;for(var t=/ [^ ]/g,r,o=0,i,a=0,l=0,s="";r=t.exec(e);)l=r.index,l-o>n&&(i=a>o?a:l,s+=`
|
|
41
|
+
`+e.slice(o,i),o=i+1),a=l;return s+=`
|
|
42
|
+
`,e.length-o>n&&a>o?s+=e.slice(o,a)+`
|
|
43
|
+
`+e.slice(a+1):s+=e.slice(o),s.slice(1)}function ep(e){for(var n="",t=0,r,o=0;o<e.length;t>=65536?o+=2:o++)t=fn(e,o),r=ie[t],!r&&An(t)?(n+=e[o],t>=65536&&(n+=e[o+1])):n+=r||Kf(t);return n}function np(e,n,t){var r="",o=e.tag,i,a,l;for(i=0,a=t.length;i<a;i+=1)l=t[i],e.replacer&&(l=e.replacer.call(t,String(i),l)),(Me(e,n,l,false,false)||typeof l>"u"&&Me(e,n,null,false,false))&&(r!==""&&(r+=","+(e.condenseFlow?"":" ")),r+=e.dump);e.tag=o,e.dump="["+r+"]"}function Wr(e,n,t,r){var o="",i=e.tag,a,l,s;for(a=0,l=t.length;a<l;a+=1)s=t[a],e.replacer&&(s=e.replacer.call(t,String(a),s)),(Me(e,n+1,s,true,true,false,true)||typeof s>"u"&&Me(e,n+1,null,true,true,false,true))&&((!r||o!=="")&&(o+=Ot(e,n)),e.dump&&Sn===e.dump.charCodeAt(0)?o+="-":o+="- ",o+=e.dump);e.tag=i,e.dump=o||"[]"}function tp(e,n,t){var r="",o=e.tag,i=Object.keys(t),a,l,s,u,p;for(a=0,l=i.length;a<l;a+=1)p="",r!==""&&(p+=", "),e.condenseFlow&&(p+='"'),s=i[a],u=t[s],e.replacer&&(u=e.replacer.call(t,s,u)),Me(e,n,s,false,false)&&(e.dump.length>1024&&(p+="? "),p+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Me(e,n,u,false,false)&&(p+=e.dump,r+=p));e.tag=o,e.dump="{"+r+"}"}function rp(e,n,t,r){var o="",i=e.tag,a=Object.keys(t),l,s,u,p,c,f;if(e.sortKeys===true)a.sort();else if(typeof e.sortKeys=="function")a.sort(e.sortKeys);else if(e.sortKeys)throw new ce("sortKeys must be a boolean or a function");for(l=0,s=a.length;l<s;l+=1)f="",(!r||o!=="")&&(f+=Ot(e,n)),u=a[l],p=t[u],e.replacer&&(p=e.replacer.call(t,u,p)),Me(e,n+1,u,true,true,true)&&(c=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,c&&(e.dump&&Sn===e.dump.charCodeAt(0)?f+="?":f+="? "),f+=e.dump,c&&(f+=Ot(e,n)),Me(e,n+1,p,true,c)&&(e.dump&&Sn===e.dump.charCodeAt(0)?f+=":":f+=": ",f+=e.dump,o+=f));e.tag=i,e.dump=o||"{}"}function qr(e,n,t){var r,o,i,a,l,s;for(o=t?e.explicitTypes:e.implicitTypes,i=0,a=o.length;i<a;i+=1)if(l=o[i],(l.instanceOf||l.predicate)&&(!l.instanceOf||typeof n=="object"&&n instanceof l.instanceOf)&&(!l.predicate||l.predicate(n))){if(t?l.multi&&l.representName?e.tag=l.representName(n):e.tag=l.tag:e.tag="?",l.represent){if(s=e.styleMap[l.tag]||l.defaultStyle,li.call(l.represent)==="[object Function]")r=l.represent(n,s);else if(si.call(l.represent,s))r=l.represent[s](n,s);else throw new ce("!<"+l.tag+'> tag resolver accepts not "'+s+'" style');e.dump=r}return true}return false}function Me(e,n,t,r,o,i,a){e.tag=null,e.dump=t,qr(e,t,false)||qr(e,t,true);var l=li.call(e.dump),s=r,u;r&&(r=e.flowLevel<0||e.flowLevel>n);var p=l==="[object Object]"||l==="[object Array]",c,f;if(p&&(c=e.duplicates.indexOf(t),f=c!==-1),(e.tag!==null&&e.tag!=="?"||f||e.indent!==2&&n>0)&&(o=false),f&&e.usedDuplicates[c])e.dump="*ref_"+c;else{if(p&&f&&!e.usedDuplicates[c]&&(e.usedDuplicates[c]=true),l==="[object Object]")r&&Object.keys(e.dump).length!==0?(rp(e,n,e.dump,o),f&&(e.dump="&ref_"+c+e.dump)):(tp(e,n,e.dump),f&&(e.dump="&ref_"+c+" "+e.dump));else if(l==="[object Array]")r&&e.dump.length!==0?(e.noArrayIndent&&!a&&n>0?Wr(e,n-1,e.dump,o):Wr(e,n,e.dump,o),f&&(e.dump="&ref_"+c+e.dump)):(np(e,n,e.dump),f&&(e.dump="&ref_"+c+" "+e.dump));else if(l==="[object String]")e.tag!=="?"&&Jf(e,e.dump,n,i,s);else{if(l==="[object Undefined]")return false;if(e.skipInvalid)return false;throw new ce("unacceptable kind of an object to dump "+l)}e.tag!==null&&e.tag!=="?"&&(u=encodeURI(e.tag[0]==="!"?e.tag.slice(1):e.tag).replace(/!/g,"%21"),e.tag[0]==="!"?u="!"+u:u.slice(0,18)==="tag:yaml.org,2002:"?u="!!"+u.slice(18):u="!<"+u+">",e.dump=u+" "+e.dump)}return true}function op(e,n){var t=[],r=[],o,i;for(Ft(e,t,r),o=0,i=r.length;o<i;o+=1)n.duplicates.push(t[r[o]]);n.usedDuplicates=new Array(i)}function Ft(e,n,t){var r,o,i;if(e!==null&&typeof e=="object")if(o=n.indexOf(e),o!==-1)t.indexOf(o)===-1&&t.push(o);else if(n.push(e),Array.isArray(e))for(o=0,i=e.length;o<i;o+=1)Ft(e[o],n,t);else for(r=Object.keys(e),o=0,i=r.length;o<i;o+=1)Ft(e[r[o]],n,t)}function ip(e,n){n=n||{};var t=new Gf(n);t.noRefs||op(e,t);var r=e;return t.replacer&&(r=t.replacer.call({"":r},"",r)),Me(t,0,r,true,true)?t.dump+`
|
|
44
|
+
`:""}var ap=ip,lp={dump:ap},sp=qo,up=Ef.load,Xr=lp.dump;function yi(e,n){if(e===n)return true;if(typeof e!=typeof n||typeof e!="object"||e===null||n===null||Array.isArray(e)!==Array.isArray(n))return false;const t=new Set([...Object.keys(e||{}),...Object.keys(n||{})]);for(const r of t)if(!yi(e[r],n[r]))return false;return true}function le(e){if(e===null||typeof e!="object")return e;if(Array.isArray(e))return e.map(le);const n={};for(const[t,r]of Object.entries(e))n[t]=le(r);return n}function cp(e){const n=!e.startsWith("~"),t=n?e:e.slice(1),r=t.split(":");if(r.length>1&&r[r.length-1]!=="group"){const o=r[r.length-1];return{name:r.slice(0,-1).join(":"),instanceId:o,enabled:n}}return{name:t,instanceId:"default",enabled:n}}function dp(e,n,t){const r=n==="default"?e:`${e}:${n}`;return t?r:`~${r}`}function Nt(e,n=[]){const t=[];for(const[r,o]of Object.entries(e))if(!r.startsWith("$"))if(r.startsWith("group:")){const i=r.slice(6),l=(typeof o=="object"&&o&&typeof o.$label=="string"?o.$label:i)||i,s=Nt(o,[...n,l]);t.push(...s)}else{const{name:i,instanceId:a,enabled:l}=cp(r),s=n.length?n.join("/"):void 0;t.push({id:a==="default"?i:`${i}:${a}`,name:i,instanceId:a,originalGroup:s,groupPath:n.length?[...n]:void 0,enabled:l,current:o,status:"unchanged",decision:null})}return t}function fp(e,n){const t=Nt(e),r=Nt(n),o=Zr(t),i=Zr(r),a=new Set([...o.keys(),...i.keys()]);return Array.from(a).map(s=>{var d,v;const u=o.get(s),p=i.get(s);if(!u&&p)return{...p,importedGroup:p.originalGroup,imported:p.current,current:void 0,status:"added",decision:null,fieldDiffs:xt(void 0,p.current),importedEnabled:p.enabled};if(u&&!p)return{...u,imported:void 0,status:"deleted",decision:null,fieldDiffs:xt(u.current,void 0),importedEnabled:void 0};const c=(d=u.groupPath)!=null&&d.length?u.groupPath:p.groupPath,f=c&&c.length?c.join("/"):void 0,b=xt(u.current,p.current),h=pp(b);return{...u,originalGroup:f,importedGroup:(v=p.groupPath)!=null&&v.length?p.groupPath.join("/"):void 0,groupPath:c,imported:p.current,status:h,decision:null,fieldDiffs:b,instanceId:u.instanceId||p.instanceId,importedEnabled:p.enabled}})}function Zr(e){const n=new Map;for(const t of e)n.has(t.name)||n.set(t.name,t);return n}function xt(e,n){if(!e&&!n)return[];const t=new Set([...Object.keys(e||{}),...Object.keys(n||{})]),r=[];for(const o of t){const i=e==null?void 0:e[o],a=n==null?void 0:n[o];let l;i===void 0?l="added":a===void 0?l="removed":yi(i,a)?l="unchanged":l="modified",r.push({field:o,currentValue:i,importedValue:a,status:l,decision:void 0})}return r}function pp(e){return e.every(t=>t.status==="unchanged")?"unchanged":e.some(t=>{const r=t.currentValue,o=t.importedValue;return r===void 0||o===void 0?false:(typeof r=="object"&&r!==null)!==(typeof o=="object"&&o!==null)||Array.isArray(r)!==Array.isArray(o)})?"conflict":"modified"}function hp(e,n,t="local"){const r={};for(const o of n){const{decision:i,status:a,current:l,imported:s,name:u,instanceId:p,groupPath:c,fieldDiffs:f,advancedMode:b,finalEnabled:h}=o;if(!(a==="added"&&i==="add"||a==="deleted"&&i==="keep"||a==="modified"&&(i==="keep"||i==="replace"||i==="merge"||i==="smart")||a==="conflict"&&(i==="keep"||i==="replace"||i==="merge"||i==="smart")||a==="unchanged"))continue;let v;a==="added"||i==="replace"?v=le(s):i==="merge"||b&&f?v=mp(l,s,f):i==="smart"?v=bi(l,s,t):v=le(l),vp(r,c,u,p,v,h??true)}return r}function mp(e,n,t){if(!t||!e)return n||e;const r=le(e);for(const o of t)o.decision==="use-imported"&&(r[o.field]=le(o.importedValue));return r}function bi(e,n,t){if(!e)return le(n);if(!n)return le(e);const r=le(e),o=new Set([...Object.keys(e),...Object.keys(n)]);for(const i of o){const a=e[i],l=n[i];if(a===void 0){r[i]=le(l);continue}if(l===void 0){r[i]=le(a);continue}typeof a=="object"&&a!==null&&typeof l=="object"&&l!==null&&!Array.isArray(a)&&!Array.isArray(l)?r[i]=bi(a,l,t):r[i]=le(t==="import"?l:a)}return r}function vp(e,n,t,r,o,i){let a=e;if(n&&n.length)for(const s of n){const u=`group:${s}`;a[u]||(a[u]={}),a=a[u]}const l=dp(t,r,i);a[l]=o}const gp={class:"space-y-6"},yp={class:"p-4 flex flex-wrap gap-4 items-center"},bp={class:"flex items-center gap-2"},xp={class:"flex items-center gap-2"},_p={class:"flex-1"},wp={class:"font-semibold"},Cp={key:0,class:"text-xs text-gray-400"},Sp={key:1,style:{width:"0.5rem",display:"inline-block"}},Ep={key:2,class:"text-xs text-gray-200"},Ap={class:"flex items-center gap-2"},Tp={key:0,class:"p-4 space-y-4"},kp={key:0,class:"text-sm bg-blue-50 p-2 rounded dark:bg-gray-800"},Ip={key:0},Op={key:1,class:"ml-2"},Mp={class:"flex items-center justify-between mb-4"},Fp={class:"text-sm text-gray-500"},Np={key:0,class:"text-gray-400 italic"},Lp={key:1,class:"text-xs"},$p={key:0,class:"text-gray-400 italic"},Bp={key:1,class:"text-xs"},Rp={key:0,class:"text-gray-400 italic"},Pp={key:1,class:"text-xs"},Dp={key:0,class:"text-gray-400 italic"},Vp={key:1,class:"text-xs"},Hp={class:"flex justify-end gap-4 mt-6"},zp=z({__name:"confirm",props:{modelValue:{},modelModifiers:{}},emits:eo(["hereditasNext","hereditasData"],["update:modelValue"]),setup(e,{emit:n}){const t=n,r=no(e,"modelValue"),o=F([]),i=F(""),a=F("name"),l=F(true),s=F("local"),u=F([]),p=F(true),c=F(false);_e(()=>{var y,E;try{const B=((E=(y=to)==null?void 0:y.config)==null?void 0:E.plugins)||{},R=up(r.value,{schema:sp,json:true,onWarning:N=>{Ce.warning(N)}});if(!R||typeof R!="object"||!(R!=null&&R.plugins))throw new Error("配置文件格式有误,请重新导入");o.value=fp(B,R.plugins),v(),g()}catch(B){t("hereditasNext",1),Ce.error(B.message)}});const f=w(()=>{let y=o.value;if(l.value&&(y=y.filter(E=>E.status!=="unchanged")),i.value&&(y=y.filter(E=>E.status===i.value)),a.value==="name")y=[...y].sort((E,B)=>E.name.localeCompare(B.name));else if(a.value==="group")y=[...y].sort((E,B)=>{const R=E.originalGroup||"",N=B.originalGroup||"";return R.localeCompare(N)||E.name.localeCompare(B.name)});else if(a.value==="status"){const E={added:0,modified:1,conflict:2,deleted:3,unchanged:4};y=[...y].sort((B,R)=>{const N=(E[B.status]||999)-(E[R.status]||999);return N!==0?N:B.name.localeCompare(R.name)})}return y}),b=y=>{switch(y){case"added":return"新增";case"deleted":return"本地";case"modified":return"修改";case"conflict":return"冲突";case"unchanged":return"未变动";default:return"未知"}},h=y=>{switch(y){case"added":return"success";case"deleted":return"primary";case"modified":return"warning";case"conflict":return"warning";default:return"info"}},d=y=>{y.advancedMode&&(y.decision==="keep"||y.decision==="replace")&&(y.advancedMode=false)},v=()=>{for(const y of o.value)if(y.status!=="unchanged"&&(y.status==="added"?y.decision=s.value==="import"?"add":"skip":y.status==="deleted"?s.value==="import"&&p.value?y.decision="keep":y.decision=s.value==="import"?"remove":"keep":(y.status==="modified"||y.status==="conflict")&&(y.decision=s.value==="import"?"smart":"keep"),y.fieldDiffs))for(const E of y.fieldDiffs)E.status!=="unchanged"&&(E.decision=s.value==="import"?"use-imported":"keep");g()},g=()=>{for(const y of o.value)y.status==="added"?y.finalEnabled=y.importedEnabled??true:y.decision==="replace"?y.finalEnabled=y.importedEnabled??y.enabled:y.decision==="smart"||y.decision==="merge"?y.finalEnabled=s.value==="import"?y.importedEnabled??y.enabled:y.enabled:y.finalEnabled=y.enabled},C=y=>{u.value.includes(y.name)||u.value.push(y.name)},D=(y,E)=>{u.value=E.map(B=>B.name)},U=y=>y===null?"null":y===void 0?"undefined":typeof y=="object"?JSON.stringify(y,null,2):String(y),Y=y=>{switch(y){case"added":return"新增";case"removed":return"移除";case"modified":return"修改";case"unchanged":return"未变";default:return y}},q=y=>{switch(y){case"added":return"success";case"removed":return"danger";case"modified":return"warning";default:return"info"}},M=()=>{t("hereditasData",o.value,s.value,c.value),t("hereditasNext",3)};return(y,E)=>{const B=G("el-switch"),R=G("el-tag"),N=G("el-option"),Te=G("el-select"),ve=G("el-checkbox"),J=G("el-table-column"),K=G("el-table"),pe=G("el-button");return _(),k(ue,null,[S("div",gp,[L(" 批量操作栏 "),S("div",yp,[S("div",bp,[A(B,{modelValue:s.value,"onUpdate:modelValue":E[0]||(E[0]=T=>s.value=T),"active-value":"import","inactive-value":"local","active-text":"导入优先","inactive-text":"本地优先",onChange:v},null,8,["modelValue"]),A(R,{size:"small",type:s.value==="import"?"success":"info"},{default:O(()=>[Z(H(s.value==="import"?"导入优先":"本地优先"),1)]),_:1},8,["type"])]),A(Te,{modelValue:i.value,"onUpdate:modelValue":E[1]||(E[1]=T=>i.value=T),placeholder:"按状态筛选",clearable:"",class:"w-40"},{default:O(()=>[A(N,{label:"全部",value:""}),A(N,{label:"新增",value:"added"}),A(N,{label:"修改",value:"modified"}),A(N,{label:"冲突",value:"conflict"}),A(N,{label:"删除",value:"deleted"}),A(N,{label:"未变动",value:"unchanged"})]),_:1},8,["modelValue"]),A(Te,{modelValue:a.value,"onUpdate:modelValue":E[2]||(E[2]=T=>a.value=T),placeholder:"排序",class:"w-40"},{default:O(()=>[A(N,{label:"按名称",value:"name"}),A(N,{label:"按分组",value:"group"}),A(N,{label:"按状态",value:"status"})]),_:1},8,["modelValue"]),E[11]||(E[11]=S("div",{class:"flex-1"},null,-1)),A(ve,{modelValue:l.value,"onUpdate:modelValue":E[3]||(E[3]=T=>l.value=T)},{default:O(()=>[...E[8]||(E[8]=[Z("隐藏未变动",-1)])]),_:1},8,["modelValue"]),A(ve,{modelValue:p.value,"onUpdate:modelValue":E[4]||(E[4]=T=>p.value=T)},{default:O(()=>[...E[9]||(E[9]=[Z("总是保留本地",-1)])]),_:1},8,["modelValue"]),A(ve,{modelValue:c.value,"onUpdate:modelValue":E[5]||(E[5]=T=>c.value=T)},{default:O(()=>[...E[10]||(E[10]=[Z("强制更新所有插件",-1)])]),_:1},8,["modelValue"])]),L(" 差异列表 "),A(K,{data:f.value,style:{width:"100%"},"row-key":T=>T.name,"expand-row-keys":u.value,"onUpdate:expandRowKeys":E[6]||(E[6]=T=>u.value=T),onExpandChange:D},{default:O(()=>[A(J,{type:"selection",width:"50",selectable:T=>T.status!=="unchanged"},null,8,["selectable"]),A(J,{label:"插件","min-width":"200"},{default:O(({row:T})=>[S("div",xp,[S("div",_p,[S("div",wp,[T.originalGroup?(_(),k("div",Cp,"group:"+H(T.originalGroup),1)):L("v-if",true),T.originalGroup?(_(),k("span",Sp)):L("v-if",true),Z(H(T.name)+" ",1),T.instanceId!=="default"?(_(),k("span",Ep,":"+H(T.instanceId),1)):L("v-if",true)])])])]),_:1}),A(J,{label:"状态",width:"100",align:"center"},{default:O(({row:T})=>[A(R,{type:h(T.status)},{default:O(()=>[Z(H(b(T.status)),1)]),_:2},1032,["type"])]),_:1}),A(J,{label:"操作",width:"280"},{default:O(({row:T})=>[S("div",Ap,[A(Te,{modelValue:T.decision,"onUpdate:modelValue":P=>T.decision=P,size:"small",onChange:P=>d(T),class:"flex-1"},{default:O(()=>[T.status==="added"?(_(),k(ue,{key:0},[A(N,{label:"添加",value:"add"}),A(N,{label:"跳过",value:"skip"})],64)):T.status==="deleted"?(_(),k(ue,{key:1},[A(N,{label:"保留",value:"keep"}),A(N,{label:"删除",value:"remove"})],64)):(_(),k(ue,{key:2},[A(N,{label:"跳过",value:"keep"}),A(N,{label:"覆盖",value:"replace"}),A(N,{label:"合并",value:"smart"})],64))]),_:2},1032,["modelValue","onUpdate:modelValue","onChange"]),A(B,{modelValue:T.finalEnabled,"onUpdate:modelValue":P=>T.finalEnabled=P,size:"small","active-text":T.finalEnabled?"启用":"禁用",disabled:T.status==="deleted"&&T.decision==="remove"},null,8,["modelValue","onUpdate:modelValue","active-text","disabled"])])]),_:1}),A(J,{type:"expand",width:"50"},{default:O(({row:T})=>[T.fieldDiffs&&T.fieldDiffs.length>0?(_(),k("div",Tp,[L(" 分组信息 "),T.originalGroup||T.importedGroup?(_(),k("div",kp,[E[12]||(E[12]=S("strong",null,"分组:",-1)),T.originalGroup?(_(),k("span",Ip,"本地: "+H(T.originalGroup),1)):L("v-if",true),T.importedGroup&&T.importedGroup!==T.originalGroup?(_(),k("span",Op," 导入: "+H(T.importedGroup)+" → 将使用本地分组 ",1)):L("v-if",true)])):L("v-if",true),L(" 模式切换 "),S("div",Mp,[A(B,{modelValue:T.advancedMode,"onUpdate:modelValue":P=>T.advancedMode=P,"active-text":"高级模式",onChange:()=>C(T)},null,8,["modelValue","onUpdate:modelValue","onChange"]),S("span",Fp,H(T.advancedMode?"配置单一字段":"整体配置"),1)]),L(" 字段级对比 "),A(K,{data:T.fieldDiffs,stripe:"",size:"small",border:""},{default:O(()=>[A(J,{label:"字段名",prop:"field",width:"150"}),s.value==="local"?(_(),k(ue,{key:0},[A(J,{label:"本地值","min-width":"150"},{default:O(({row:P})=>[P.currentValue===void 0?(_(),k("span",Np,"未设置")):(_(),k("code",Lp,H(U(P.currentValue)),1))]),_:1}),A(J,{label:"导入值","min-width":"200"},{default:O(({row:P})=>[P.importedValue===void 0?(_(),k("span",$p,"未设置")):(_(),k("code",Bp,H(U(P.importedValue)),1))]),_:1})],64)):(_(),k(ue,{key:1},[A(J,{label:"导入值","min-width":"200"},{default:O(({row:P})=>[P.importedValue===void 0?(_(),k("span",Rp,"未设置")):(_(),k("code",Pp,H(U(P.importedValue)),1))]),_:1}),A(J,{label:"本地值","min-width":"200"},{default:O(({row:P})=>[P.currentValue===void 0?(_(),k("span",Dp,"未设置")):(_(),k("code",Vp,H(U(P.currentValue)),1))]),_:1})],64)),A(J,{label:"状态",width:"80",align:"center"},{default:O(({row:P})=>[A(R,{type:q(P.status),size:"small"},{default:O(()=>[Z(H(Y(P.status)),1)]),_:2},1032,["type"])]),_:1}),T.advancedMode?(_(),j(J,{key:2,label:"操作",width:"100"},{default:O(({row:P})=>[A(Te,{modelValue:P.decision,"onUpdate:modelValue":Xe=>P.decision=Xe,size:"small",disabled:P.status==="unchanged"},{default:O(()=>[A(N,{label:"跳过",value:"keep"}),A(N,{label:"覆盖",value:"use-imported"})]),_:1},8,["modelValue","onUpdate:modelValue","disabled"])]),_:1})):L("v-if",true)]),_:2},1032,["data"])])):L("v-if",true)]),_:1})]),_:1},8,["data","row-key","expand-row-keys"])]),S("div",Hp,[A(pe,{size:"large",round:"",onClick:E[7]||(E[7]=T=>y.$emit("hereditasNext",1))},{default:O(()=>[...E[13]||(E[13]=[Z("上一步",-1)])]),_:1}),A(pe,{type:"primary",size:"large",round:"",onClick:M,disabled:!o.value},{default:O(()=>[...E[14]||(E[14]=[Z("下一步",-1)])]),_:1},8,["disabled"])])],64)}}}),jp=Tn(zp,[["__scopeId","data-v-31c4e95e"]]),Up={class:"space-y-6"},Kp={class:"space-y-3"},Yp={class:"grid grid-cols-2 gap-4"},Gp={class:"el-card p-3 text-center"},Wp={class:"text-2xl font-bold text-green-600"},qp={class:"el-card p-3 text-center"},Xp={class:"text-2xl font-bold text-orange-600"},Zp={class:"el-card p-3 text-center"},Jp={class:"text-2xl font-bold text-red-600"},Qp={class:"el-card p-3 text-center"},e0={class:"text-2xl font-bold text-blue-600"},n0={class:"el-card p-4 space-y-3"},t0=["innerHTML"],r0={class:"flex justify-end gap-4 mt-6"},o0=z({__name:"ready",emits:["hereditasNext"],setup(e,{expose:n,emit:t}){const r=t,o=F([]),i=F({}),a=F({}),l=F(false),s=F(false),u=w(()=>{const v=["replace","smart","merge"];return{added:o.value.filter(g=>g.status==="added"&&g.decision==="add").length,modified:o.value.filter(g=>g.status==="modified"&&v.includes(g.decision)).length,deleted:o.value.filter(g=>g.status==="deleted"&&g.decision==="remove").length,unchanged:o.value.filter(g=>g.status==="unchanged").length}});w(()=>o.value.filter(v=>v.status!=="unchanged").map(v=>({name:v.name,group:v.originalGroup,status:v.status,decision:v.decision})));const p=w(()=>{try{return Xr(i.value,{lineWidth:200})}catch{return""}}),c=w(()=>{try{return Xr(a.value,{lineWidth:200})}catch{return"无法显示配置"}}),f=w(()=>{const v=b(p.value,c.value);return v.length?v.map(g=>{const C=g.type==="insert"?"+":g.type==="delete"?"-":" ";return`<span style="color:${g.type==="insert"?"#3fb950":g.type==="delete"?"#f85149":"#8b949e"}">${C} ${h(g.line)}</span>`}).join(`
|
|
45
|
+
`):"无变更"}),b=(v,g)=>{const C=v.split(/\r?\n/),D=g.split(/\r?\n/),U=C.length,Y=D.length,q=Array.from({length:U+1},()=>Array(Y+1).fill(0));for(let B=U-1;B>=0;B--)for(let R=Y-1;R>=0;R--)q[B][R]=C[B]===D[R]?q[B+1][R+1]+1:Math.max(q[B+1][R],q[B][R+1]);const M=[];let y=0,E=0;for(;y<U&&E<Y;)C[y]===D[E]?(M.push({type:"equal",line:C[y]}),y++,E++):q[y+1][E]>=q[y][E+1]?(M.push({type:"delete",line:C[y]}),y++):(M.push({type:"insert",line:D[E]}),E++);for(;y<U;)M.push({type:"delete",line:C[y++]});for(;E<Y;)M.push({type:"insert",line:D[E++]});return M},h=v=>v.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'");n({setData(v,g,C,D=false){o.value=v,i.value=g,a.value=hp(g,v,C),s.value=D}});const d=async()=>{var v;console.log("mergedConfig",a.value);try{await kc.confirm("即将应用配置更改。此操作将更新 Koishi 配置文件。确认继续?","确认应用",{confirmButtonText:"确认",cancelButtonText:"取消",type:"warning"}),l.value=true;const g=o.value.filter(D=>D.status==="deleted"&&D.decision==="remove").map(D=>D.name);await Vi("hereditas/apply",a.value,{forceUpdate:s.value,toRemove:g})?(Ce.success("配置已成功应用!"),setTimeout(()=>{r("hereditasNext",0)},1e3)):Ce.error("配置应用被取消。")}catch(g){(v=g.response)!=null&&v.config&&Ce.error("应用配置失败,请重试。")}finally{l.value=false}};return(v,g)=>{const C=G("el-alert"),D=G("el-button");return _(),k(ue,null,[S("div",Up,[S("div",Kp,[g[5]||(g[5]=S("h3",{class:"text-lg font-semibold"},"变更摘要",-1)),S("div",Yp,[S("div",Gp,[S("div",Wp,H(u.value.added),1),g[1]||(g[1]=S("div",{class:"text-sm text-gray-600"},"新增插件",-1))]),S("div",qp,[S("div",Xp,H(u.value.modified),1),g[2]||(g[2]=S("div",{class:"text-sm text-gray-600"},"修改/合并",-1))]),S("div",Zp,[S("div",Jp,H(u.value.deleted),1),g[3]||(g[3]=S("div",{class:"text-sm text-gray-600"},"删除插件",-1))]),S("div",Qp,[S("div",e0,H(u.value.unchanged),1),g[4]||(g[4]=S("div",{class:"text-sm text-gray-600"},"保留未变动",-1))])])]),S("div",n0,[g[6]||(g[6]=S("h3",{class:"text-lg font-semibold"},"变更预览",-1)),S("pre",{class:"text-xs diff-block",innerHTML:f.value},null,8,t0)]),A(C,{title:"确认信息",type:"info",closable:false},{default:O(()=>[...g[7]||(g[7]=[Z(' 合并配置已准备就绪。点击"应用"按钮以保存更改到 Koishi 配置中。 ',-1)])]),_:1})]),S("div",r0,[A(D,{size:"large",round:"",onClick:g[0]||(g[0]=U=>v.$emit("hereditasNext",2))},{default:O(()=>[...g[8]||(g[8]=[Z("上一步",-1)])]),_:1}),A(D,{type:"primary",size:"large",round:"",onClick:d,loading:l.value},{default:O(()=>[...g[9]||(g[9]=[Z(" 应用 ",-1)])]),_:1},8,["loading"])])],64)}}}),i0=Tn(o0,[["__scopeId","data-v-866fa42d"]]),a0={class:"mb-6 text-center"},l0={class:"text-3xl font-bold"},s0={class:"mt-2 text-gray-600"},u0=z({__name:"main",setup(e){var u,p;const n=((p=(u=ae("manager.settings.local"))==null?void 0:u.value)==null?void 0:p.name)==="koishi-plugin-hereditas",t=F(0),r=F(""),o=F(null),i=$t({currentConfig:{},importedConfig:{},flatList:[],priority:"local"}),a=[{title:"Hereditas",description:"欢迎使用 Hereditas,快速导入和应用旧配置项并保持最新。",component:Ki},{title:"导入",description:"粘贴、拖拽或选择文件来导入 koishi.yml",component:Dc},{title:"确认",description:"修改、跳过或覆盖现有配置项。",component:jp},{title:"就绪",description:"一切已经准备就绪,点击应用以保存更改。",component:i0}];_e(()=>{var f,b;if(!n)return;i.currentConfig=((b=(f=to)==null?void 0:f.config)==null?void 0:b.plugins)||{};const c=document.querySelector(".usage");c&&c.classList.add("hidden")}),We(()=>{if(!n)return;const c=document.querySelector(".usage");c&&c.classList.remove("hidden")});const l=async c=>{if(t.value=c,c===3){await se();const f=o.value;f!=null&&f.setData&&f.setData(i.flatList,i.currentConfig,i.priority)}},s=(c,f)=>{i.flatList=c,i.priority=f};return(c,f)=>{const b=G("el-step"),h=G("el-steps");return n?(_(),k(ue,{key:0},[A(h,{active:t.value,"finish-status":"success",space:200,class:"mb-6",simple:""},{default:O(()=>[(_(),k(ue,null,Di(a,(d,v)=>A(b,{key:v,title:d.title},null,8,["title"])),64))]),_:1},8,["active"]),S("div",a0,[S("h1",l0,H(a[t.value].title),1),S("p",s0,H(a[t.value].description),1)]),(_(),j(me(a[t.value].component),{modelValue:r.value,"onUpdate:modelValue":f[0]||(f[0]=d=>r.value=d),ref_key:"currentComponent",ref:o,onHereditasNext:l,onHereditasData:s},null,40,["modelValue"]))],64)):L("v-if",true)}}}),h0=e=>{e.slot({type:"plugin-details",component:u0,order:-800})};export{h0 as default};
|
package/dist/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
kbd[data-v-01f39aad]{font-family:SF Pro Text,Segoe UI Symbol,Noto Sans Symbols,sans-serif;padding:.3rem .6rem;margin:0 6px}.expand-enter-active[data-v-01f39aad],.expand-leave-active[data-v-01f39aad]{transition:all .3s ease}.expand-enter-from[data-v-01f39aad],.expand-leave-to[data-v-01f39aad]{opacity:0;transform:scaleY(.8)}.expand-enter-from .el-input[data-v-01f39aad],.expand-leave-to .el-input[data-v-01f39aad]{transform-origin:top}[data-v-31c4e95e] .el-select{width:100%}pre[data-v-31c4e95e],pre[data-v-866fa42d]{font-family:Monaco,Menlo,Ubuntu Mono,monospace}.diff-block[data-v-866fa42d]{background:#0d1117;color:#c9d1d9;border-radius:6px;padding:12px;border:1px solid #30363d;max-height:420px;overflow:auto;line-height:1.5}.diff-block[data-v-866fa42d]::selection{background:#264f78}
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Context, Schema } from 'koishi';
|
|
2
|
+
declare module '@koishijs/plugin-console' {
|
|
3
|
+
interface Events {
|
|
4
|
+
'hereditas/apply': (config: Context.Config, options?: {
|
|
5
|
+
forceUpdate?: boolean;
|
|
6
|
+
toRemove?: string[];
|
|
7
|
+
}) => Promise<boolean>;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
export declare const name = "hereditas";
|
|
11
|
+
export declare const filter = false;
|
|
12
|
+
export declare const inject: string[];
|
|
13
|
+
export declare const usage = "<center><h2>\u542F\u7528 Hereditas \u4EE5\u5F00\u59CB\u6062\u590D\u4F60\u7684\u914D\u7F6E\u3002</h2></center>";
|
|
14
|
+
export interface Config {
|
|
15
|
+
}
|
|
16
|
+
export declare const Config: Schema<Config>;
|
|
17
|
+
export declare function flattenPluginNames(plugins: Record<string, any>): string[];
|
|
18
|
+
export declare function apply(ctx: Context): Promise<void>;
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
var __defProp = Object.defineProperty;
|
|
2
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
+
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name2 in all)
|
|
8
|
+
__defProp(target, name2, { get: all[name2], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var src_exports = {};
|
|
22
|
+
__export(src_exports, {
|
|
23
|
+
Config: () => Config,
|
|
24
|
+
apply: () => apply,
|
|
25
|
+
filter: () => filter,
|
|
26
|
+
flattenPluginNames: () => flattenPluginNames,
|
|
27
|
+
inject: () => inject,
|
|
28
|
+
name: () => name,
|
|
29
|
+
usage: () => usage
|
|
30
|
+
});
|
|
31
|
+
module.exports = __toCommonJS(src_exports);
|
|
32
|
+
var import_promises = require("node:fs/promises");
|
|
33
|
+
var import_node_path = require("node:path");
|
|
34
|
+
var import_koishi = require("koishi");
|
|
35
|
+
var name = "hereditas";
|
|
36
|
+
var filter = false;
|
|
37
|
+
var inject = ["console", "installer"];
|
|
38
|
+
var usage = "<center><h2>启用 Hereditas 以开始恢复你的配置。</h2></center>";
|
|
39
|
+
var Config = import_koishi.Schema.object({});
|
|
40
|
+
function flattenPluginNames(plugins) {
|
|
41
|
+
const names = /* @__PURE__ */ new Set();
|
|
42
|
+
const walk = /* @__PURE__ */ __name((node) => {
|
|
43
|
+
if (!node || typeof node !== "object")
|
|
44
|
+
return;
|
|
45
|
+
for (const [key, value] of Object.entries(node)) {
|
|
46
|
+
if (key.startsWith("$"))
|
|
47
|
+
continue;
|
|
48
|
+
if (key.startsWith("group:")) {
|
|
49
|
+
walk(value);
|
|
50
|
+
continue;
|
|
51
|
+
}
|
|
52
|
+
const normalized = key.startsWith("~") ? key.slice(1) : key;
|
|
53
|
+
const parts = normalized.split(":");
|
|
54
|
+
const name2 = parts.length > 1 ? parts.slice(0, -1).join(":") : normalized;
|
|
55
|
+
names.add(name2);
|
|
56
|
+
}
|
|
57
|
+
}, "walk");
|
|
58
|
+
walk(plugins);
|
|
59
|
+
return [...names];
|
|
60
|
+
}
|
|
61
|
+
__name(flattenPluginNames, "flattenPluginNames");
|
|
62
|
+
async function apply(ctx) {
|
|
63
|
+
ctx.console.addEntry({
|
|
64
|
+
dev: (0, import_node_path.resolve)(__dirname, "../client/index.ts"),
|
|
65
|
+
prod: (0, import_node_path.resolve)(__dirname, "../dist")
|
|
66
|
+
});
|
|
67
|
+
ctx.console.addListener("hereditas/apply", async (config, options = {}) => {
|
|
68
|
+
const { forceUpdate = false, toRemove = [] } = options;
|
|
69
|
+
const workspace = ctx.baseDir;
|
|
70
|
+
const currentCfgPath = (0, import_node_path.resolve)(workspace, "koishi.yml");
|
|
71
|
+
const backupDir = (0, import_node_path.resolve)(workspace, "data/hereditas/backup");
|
|
72
|
+
const currentPlugins = ctx.root.scope.config.plugins || {};
|
|
73
|
+
const currentNames = new Set(flattenPluginNames(currentPlugins));
|
|
74
|
+
const newNames = flattenPluginNames(config || {});
|
|
75
|
+
const toInstall = forceUpdate ? newNames : newNames.filter((name2) => !currentNames.has(name2));
|
|
76
|
+
try {
|
|
77
|
+
await (0, import_promises.mkdir)(backupDir, { recursive: true });
|
|
78
|
+
await (0, import_promises.copyFile)(currentCfgPath, (0, import_node_path.resolve)(backupDir, `koishi.yml`));
|
|
79
|
+
const deps = {};
|
|
80
|
+
const toRemoveSet = new Set(toRemove);
|
|
81
|
+
const allNames = [.../* @__PURE__ */ new Set([...toInstall, ...toRemove])];
|
|
82
|
+
if (allNames.length > 0) {
|
|
83
|
+
const entries = await Promise.all(allNames.map(async (name2) => {
|
|
84
|
+
const pkgName = name2.startsWith("@") ? [name2.replace(/^(@[^/]+)\/(.+)$/, "$1/koishi-plugin-$2")] : [`@koishijs/plugin-${name2}`, `koishi-plugin-${name2}`];
|
|
85
|
+
const result = await ctx.installer.findVersion(pkgName);
|
|
86
|
+
if (!result)
|
|
87
|
+
return null;
|
|
88
|
+
if (toRemoveSet.has(name2)) {
|
|
89
|
+
return Object.fromEntries(Object.keys(result).map((pkg) => [pkg, ""]));
|
|
90
|
+
}
|
|
91
|
+
return result;
|
|
92
|
+
}));
|
|
93
|
+
for (const entry of entries) {
|
|
94
|
+
if (entry)
|
|
95
|
+
Object.assign(deps, entry);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
if (Object.keys(deps).length > 0) {
|
|
99
|
+
const code = await ctx.installer.install(deps, true);
|
|
100
|
+
console.log("Installation code:", code);
|
|
101
|
+
}
|
|
102
|
+
const updatedConfig = { ...ctx.root.scope.config, plugins: config || {} };
|
|
103
|
+
ctx.root.scope.update(updatedConfig);
|
|
104
|
+
ctx.loader.fullReload();
|
|
105
|
+
return true;
|
|
106
|
+
} catch (error) {
|
|
107
|
+
console.error(error);
|
|
108
|
+
return false;
|
|
109
|
+
}
|
|
110
|
+
}, { authority: 4 });
|
|
111
|
+
}
|
|
112
|
+
__name(apply, "apply");
|
|
113
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
114
|
+
0 && (module.exports = {
|
|
115
|
+
Config,
|
|
116
|
+
apply,
|
|
117
|
+
filter,
|
|
118
|
+
flattenPluginNames,
|
|
119
|
+
inject,
|
|
120
|
+
name,
|
|
121
|
+
usage
|
|
122
|
+
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "koishi-plugin-hereditas",
|
|
3
3
|
"description": "New beginnings from your old koishi configurations",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.2",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -9,15 +9,41 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"license": "MIT",
|
|
12
|
+
"repository": {
|
|
13
|
+
"type": "git",
|
|
14
|
+
"url": "https://github.com/Lipraty/koishi-plugin-hereditas.git"
|
|
15
|
+
},
|
|
16
|
+
"publishConfig": {
|
|
17
|
+
"registry": "https://registry.npmjs.org"
|
|
18
|
+
},
|
|
19
|
+
"packageManager": "yarn@4.3.1",
|
|
12
20
|
"keywords": [
|
|
13
21
|
"chatbot",
|
|
14
22
|
"koishi",
|
|
15
23
|
"plugin"
|
|
16
24
|
],
|
|
17
|
-
"
|
|
18
|
-
"
|
|
25
|
+
"scripts": {
|
|
26
|
+
"build": "tsc",
|
|
27
|
+
"lint": "eslint .",
|
|
28
|
+
"lint:fix": "eslint . --fix"
|
|
19
29
|
},
|
|
20
30
|
"peerDependencies": {
|
|
31
|
+
"@koishijs/plugin-console": "^5.30.1",
|
|
21
32
|
"koishi": "^4.18.3"
|
|
33
|
+
},
|
|
34
|
+
"devDependencies": {
|
|
35
|
+
"@antfu/eslint-config": "^2.21.0",
|
|
36
|
+
"@koishijs/client": "^5.30.1",
|
|
37
|
+
"@koishijs/plugin-console": "^5.30.1",
|
|
38
|
+
"@koishijs/plugin-market": "^2.11.2",
|
|
39
|
+
"@types/js-yaml": "^4",
|
|
40
|
+
"@types/node": "^22",
|
|
41
|
+
"eslint": "^9.0.0",
|
|
42
|
+
"koishi": "^4.18.3",
|
|
43
|
+
"typescript": "^5.7.2",
|
|
44
|
+
"vite": "^7.3.0"
|
|
45
|
+
},
|
|
46
|
+
"dependencies": {
|
|
47
|
+
"js-yaml": "^4.1.0"
|
|
22
48
|
}
|
|
23
49
|
}
|
package/readme.md
CHANGED