br-dionysus 0.0.1
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/.idea/dionysus.iml +12 -0
- package/.idea/modules.xml +8 -0
- package/.idea/vcs.xml +6 -0
- package/LICENSE +21 -0
- package/README.md +0 -0
- package/build/base.config.ts +20 -0
- package/build/doc.config.ts +10 -0
- package/build/lib.config.ts +31 -0
- package/dist/index.css +1 -0
- package/dist/my-kit.es.js +254 -0
- package/dist/my-kit.umd.js +2 -0
- package/dist/packages/Button/index.d.ts +4 -0
- package/dist/packages/Button/src/index.vue.d.ts +4 -0
- package/dist/packages/Foo/index.d.ts +4 -0
- package/dist/packages/TabPage/index.d.ts +4 -0
- package/dist/packages/TabPage/src/index.vue.d.ts +70 -0
- package/dist/packages/index.d.ts +11 -0
- package/dist/src/env.d.ts +11 -0
- package/docs/assets/README.04f9b87a.js +1 -0
- package/docs/assets/README.e027c703.js +1 -0
- package/docs/assets/index.55b9c1a5.js +1 -0
- package/docs/assets/index.f005ac77.css +1 -0
- package/docs/assets/vendor.234e3e3c.js +12 -0
- package/docs/index.html +16 -0
- package/docs/packages/Button/docs/README.md +9 -0
- package/docs/packages/Button/docs/demo.vue +11 -0
- package/docs/packages/Button/index.ts +10 -0
- package/docs/packages/Button/src/index.vue +26 -0
- package/docs/packages/Foo/docs/README.md +28 -0
- package/docs/packages/Foo/docs/demo.vue +5 -0
- package/docs/packages/Foo/index.ts +12 -0
- package/docs/packages/Foo/src/index.vue +15 -0
- package/docs/packages/index.ts +23 -0
- package/docs/packages/list.json +14 -0
- package/index.html +13 -0
- package/package.json +30 -0
- package/packages/Button/docs/README.md +9 -0
- package/packages/Button/docs/demo.vue +11 -0
- package/packages/Button/index.ts +10 -0
- package/packages/Button/src/index.vue +26 -0
- package/packages/Foo/docs/README.md +28 -0
- package/packages/Foo/docs/demo.vue +5 -0
- package/packages/Foo/index.ts +12 -0
- package/packages/Foo/src/index.vue +15 -0
- package/packages/TabPage/index.ts +10 -0
- package/packages/TabPage/src/index.vue +499 -0
- package/packages/index.ts +26 -0
- package/packages/list.json +20 -0
- package/script/copyDir.js +7 -0
- package/script/genNewComp/.template/docs/README.md.tpl +28 -0
- package/script/genNewComp/.template/docs/demo.vue.tpl +5 -0
- package/script/genNewComp/.template/index.ts.tpl +12 -0
- package/script/genNewComp/.template/install.ts.tpl +20 -0
- package/script/genNewComp/.template/router.ts.tpl +25 -0
- package/script/genNewComp/.template/src/index.vue.tpl +15 -0
- package/script/genNewComp/index.js +9 -0
- package/script/genNewComp/infoCollector.js +63 -0
- package/script/genNewComp/tplReplacer.js +95 -0
- package/src/App.vue +46 -0
- package/src/assets/markdown.css +273 -0
- package/src/assets/prism.css +429 -0
- package/src/components/Preview.vue +101 -0
- package/src/env.d.ts +11 -0
- package/src/main.ts +12 -0
- package/src/router.ts +35 -0
- package/tsconfig.json +30 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
function xn(e,t){const n=Object.create(null),r=e.split(",");for(let s=0;s<r.length;s++)n[r[s]]=!0;return t?s=>!!n[s.toLowerCase()]:s=>!!n[s]}const Ri="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Si=xn(Ri);function xr(e){return!!e||e===""}function En(e){if(V(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=pe(r)?Ii(r):En(r);if(s)for(const i in s)t[i]=s[i]}return t}else{if(pe(e))return e;if(de(e))return e}}const Ti=/;(?![^(]*\))/g,Oi=/:(.+)/;function Ii(e){const t={};return e.split(Ti).forEach(n=>{if(n){const r=n.split(Oi);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function An(e){let t="";if(pe(e))t=e;else if(V(e))for(let n=0;n<e.length;n++){const r=An(e[n]);r&&(t+=r+" ")}else if(de(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const rc=e=>e==null?"":V(e)||de(e)&&(e.toString===Pr||!Y(e.toString))?JSON.stringify(e,Er,2):String(e),Er=(e,t)=>t&&t.__v_isRef?Er(e,t.value):dt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s])=>(n[`${r} =>`]=s,n),{})}:Cr(t)?{[`Set(${t.size})`]:[...t.values()]}:de(t)&&!V(t)&&!Rr(t)?String(t):t,se={},ft=[],Me=()=>{},Mi=()=>!1,ki=/^on[^a-z]/,zt=e=>ki.test(e),Cn=e=>e.startsWith("onUpdate:"),ge=Object.assign,Ar=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},$i=Object.prototype.hasOwnProperty,J=(e,t)=>$i.call(e,t),V=Array.isArray,dt=e=>qt(e)==="[object Map]",Cr=e=>qt(e)==="[object Set]",Y=e=>typeof e=="function",pe=e=>typeof e=="string",Fn=e=>typeof e=="symbol",de=e=>e!==null&&typeof e=="object",Fr=e=>de(e)&&Y(e.then)&&Y(e.catch),Pr=Object.prototype.toString,qt=e=>Pr.call(e),Ni=e=>qt(e).slice(8,-1),Rr=e=>qt(e)==="[object Object]",Pn=e=>pe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Wt=xn(",key,ref,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Vt=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Li=/-(\w)/g,$e=Vt(e=>e.replace(Li,(t,n)=>n?n.toUpperCase():"")),Hi=/\B([A-Z])/g,ht=Vt(e=>e.replace(Hi,"-$1").toLowerCase()),Yt=Vt(e=>e.charAt(0).toUpperCase()+e.slice(1)),Rn=Vt(e=>e?`on${Yt(e)}`:""),Rt=(e,t)=>!Object.is(e,t),Sn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Zt=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Bi=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Sr;const ji=()=>Sr||(Sr=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let Xe;const Gt=[];class Ui{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&Xe&&(this.parent=Xe,this.index=(Xe.scopes||(Xe.scopes=[])).push(this)-1)}run(t){if(this.active)try{return this.on(),t()}finally{this.off()}}on(){this.active&&(Gt.push(this),Xe=this)}off(){this.active&&(Gt.pop(),Xe=Gt[Gt.length-1])}stop(t){if(this.active){if(this.effects.forEach(n=>n.stop()),this.cleanups.forEach(n=>n()),this.scopes&&this.scopes.forEach(n=>n.stop(!0)),this.parent&&!t){const n=this.parent.scopes.pop();n&&n!==this&&(this.parent.scopes[this.index]=n,n.index=this.index)}this.active=!1}}}function Di(e,t){t=t||Xe,t&&t.active&&t.effects.push(e)}const Tn=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Tr=e=>(e.w&qe)>0,Or=e=>(e.n&qe)>0,Ki=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=qe},zi=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const s=t[r];Tr(s)&&!Or(s)?s.delete(e):t[n++]=s,s.w&=~qe,s.n&=~qe}t.length=n}},On=new WeakMap;let St=0,qe=1;const In=30,Tt=[];let et;const tt=Symbol(""),Mn=Symbol("");class kn{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],Di(this,r)}run(){if(!this.active)return this.fn();if(!Tt.includes(this))try{return Tt.push(et=this),qi(),qe=1<<++St,St<=In?Ki(this):Ir(this),this.fn()}finally{St<=In&&zi(this),qe=1<<--St,nt(),Tt.pop();const t=Tt.length;et=t>0?Tt[t-1]:void 0}}stop(){this.active&&(Ir(this),this.onStop&&this.onStop(),this.active=!1)}}function Ir(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let pt=!0;const $n=[];function gt(){$n.push(pt),pt=!1}function qi(){$n.push(pt),pt=!0}function nt(){const e=$n.pop();pt=e===void 0?!0:e}function Ae(e,t,n){if(!Mr())return;let r=On.get(e);r||On.set(e,r=new Map);let s=r.get(n);s||r.set(n,s=Tn()),kr(s)}function Mr(){return pt&&et!==void 0}function kr(e,t){let n=!1;St<=In?Or(e)||(e.n|=qe,n=!Tr(e)):n=!e.has(et),n&&(e.add(et),et.deps.push(e))}function je(e,t,n,r,s,i){const l=On.get(e);if(!l)return;let o=[];if(t==="clear")o=[...l.values()];else if(n==="length"&&V(e))l.forEach((a,u)=>{(u==="length"||u>=r)&&o.push(a)});else switch(n!==void 0&&o.push(l.get(n)),t){case"add":V(e)?Pn(n)&&o.push(l.get("length")):(o.push(l.get(tt)),dt(e)&&o.push(l.get(Mn)));break;case"delete":V(e)||(o.push(l.get(tt)),dt(e)&&o.push(l.get(Mn)));break;case"set":dt(e)&&o.push(l.get(tt));break}if(o.length===1)o[0]&&Nn(o[0]);else{const a=[];for(const u of o)u&&a.push(...u);Nn(Tn(a))}}function Nn(e,t){for(const n of V(e)?e:[...e])(n!==et||n.allowRecurse)&&(n.scheduler?n.scheduler():n.run())}const Wi=xn("__proto__,__v_isRef,__isVue"),$r=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(Fn)),Vi=Ln(),Yi=Ln(!1,!0),Zi=Ln(!0),Nr=Gi();function Gi(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=X(this);for(let i=0,l=this.length;i<l;i++)Ae(r,"get",i+"");const s=r[t](...n);return s===-1||s===!1?r[t](...n.map(X)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){gt();const r=X(this)[t].apply(this,n);return nt(),r}}),e}function Ln(e=!1,t=!1){return function(r,s,i){if(s==="__v_isReactive")return!e;if(s==="__v_isReadonly")return e;if(s==="__v_raw"&&i===(e?t?ho:qr:t?zr:Kr).get(r))return r;const l=V(r);if(!e&&l&&J(Nr,s))return Reflect.get(Nr,s,i);const o=Reflect.get(r,s,i);return(Fn(s)?$r.has(s):Wi(s))||(e||Ae(r,"get",s),t)?o:_e(o)?!l||!Pn(s)?o.value:o:de(o)?e?Wr(o):Ot(o):o}}const Ji=Lr(),Qi=Lr(!0);function Lr(e=!1){return function(n,r,s,i){let l=n[r];if(!e&&!Un(s)&&(s=X(s),l=X(l),!V(n)&&_e(l)&&!_e(s)))return l.value=s,!0;const o=V(n)&&Pn(r)?Number(r)<n.length:J(n,r),a=Reflect.set(n,r,s,i);return n===X(i)&&(o?Rt(s,l)&&je(n,"set",r,s):je(n,"add",r,s)),a}}function Xi(e,t){const n=J(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&je(e,"delete",t,void 0),r}function eo(e,t){const n=Reflect.has(e,t);return(!Fn(t)||!$r.has(t))&&Ae(e,"has",t),n}function to(e){return Ae(e,"iterate",V(e)?"length":tt),Reflect.ownKeys(e)}const Hr={get:Vi,set:Ji,deleteProperty:Xi,has:eo,ownKeys:to},no={get:Zi,set(e,t){return!0},deleteProperty(e,t){return!0}},ro=ge({},Hr,{get:Yi,set:Qi}),Hn=e=>e,Jt=e=>Reflect.getPrototypeOf(e);function Qt(e,t,n=!1,r=!1){e=e.__v_raw;const s=X(e),i=X(t);t!==i&&!n&&Ae(s,"get",t),!n&&Ae(s,"get",i);const{has:l}=Jt(s),o=r?Hn:n?Dn:It;if(l.call(s,t))return o(e.get(t));if(l.call(s,i))return o(e.get(i));e!==s&&e.get(t)}function Xt(e,t=!1){const n=this.__v_raw,r=X(n),s=X(e);return e!==s&&!t&&Ae(r,"has",e),!t&&Ae(r,"has",s),e===s?n.has(e):n.has(e)||n.has(s)}function en(e,t=!1){return e=e.__v_raw,!t&&Ae(X(e),"iterate",tt),Reflect.get(e,"size",e)}function Br(e){e=X(e);const t=X(this);return Jt(t).has.call(t,e)||(t.add(e),je(t,"add",e,e)),this}function jr(e,t){t=X(t);const n=X(this),{has:r,get:s}=Jt(n);let i=r.call(n,e);i||(e=X(e),i=r.call(n,e));const l=s.call(n,e);return n.set(e,t),i?Rt(t,l)&&je(n,"set",e,t):je(n,"add",e,t),this}function Ur(e){const t=X(this),{has:n,get:r}=Jt(t);let s=n.call(t,e);s||(e=X(e),s=n.call(t,e)),r&&r.call(t,e);const i=t.delete(e);return s&&je(t,"delete",e,void 0),i}function Dr(){const e=X(this),t=e.size!==0,n=e.clear();return t&&je(e,"clear",void 0,void 0),n}function tn(e,t){return function(r,s){const i=this,l=i.__v_raw,o=X(l),a=t?Hn:e?Dn:It;return!e&&Ae(o,"iterate",tt),l.forEach((u,f)=>r.call(s,a(u),a(f),i))}}function nn(e,t,n){return function(...r){const s=this.__v_raw,i=X(s),l=dt(i),o=e==="entries"||e===Symbol.iterator&&l,a=e==="keys"&&l,u=s[e](...r),f=n?Hn:t?Dn:It;return!t&&Ae(i,"iterate",a?Mn:tt),{next(){const{value:p,done:h}=u.next();return h?{value:p,done:h}:{value:o?[f(p[0]),f(p[1])]:f(p),done:h}},[Symbol.iterator](){return this}}}}function We(e){return function(...t){return e==="delete"?!1:this}}function so(){const e={get(i){return Qt(this,i)},get size(){return en(this)},has:Xt,add:Br,set:jr,delete:Ur,clear:Dr,forEach:tn(!1,!1)},t={get(i){return Qt(this,i,!1,!0)},get size(){return en(this)},has:Xt,add:Br,set:jr,delete:Ur,clear:Dr,forEach:tn(!1,!0)},n={get(i){return Qt(this,i,!0)},get size(){return en(this,!0)},has(i){return Xt.call(this,i,!0)},add:We("add"),set:We("set"),delete:We("delete"),clear:We("clear"),forEach:tn(!0,!1)},r={get(i){return Qt(this,i,!0,!0)},get size(){return en(this,!0)},has(i){return Xt.call(this,i,!0)},add:We("add"),set:We("set"),delete:We("delete"),clear:We("clear"),forEach:tn(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=nn(i,!1,!1),n[i]=nn(i,!0,!1),t[i]=nn(i,!1,!0),r[i]=nn(i,!0,!0)}),[e,n,t,r]}const[io,oo,lo,ao]=so();function Bn(e,t){const n=t?e?ao:lo:e?oo:io;return(r,s,i)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(J(n,s)&&s in r?n:r,s,i)}const co={get:Bn(!1,!1)},uo={get:Bn(!1,!0)},fo={get:Bn(!0,!1)},Kr=new WeakMap,zr=new WeakMap,qr=new WeakMap,ho=new WeakMap;function po(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function go(e){return e.__v_skip||!Object.isExtensible(e)?0:po(Ni(e))}function Ot(e){return e&&e.__v_isReadonly?e:jn(e,!1,Hr,co,Kr)}function mo(e){return jn(e,!1,ro,uo,zr)}function Wr(e){return jn(e,!0,no,fo,qr)}function jn(e,t,n,r,s){if(!de(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const i=s.get(e);if(i)return i;const l=go(e);if(l===0)return e;const o=new Proxy(e,l===2?r:n);return s.set(e,o),o}function mt(e){return Un(e)?mt(e.__v_raw):!!(e&&e.__v_isReactive)}function Un(e){return!!(e&&e.__v_isReadonly)}function Vr(e){return mt(e)||Un(e)}function X(e){const t=e&&e.__v_raw;return t?X(t):e}function Yr(e){return Zt(e,"__v_skip",!0),e}const It=e=>de(e)?Ot(e):e,Dn=e=>de(e)?Wr(e):e;function Zr(e){Mr()&&(e=X(e),e.dep||(e.dep=Tn()),kr(e.dep))}function Gr(e,t){e=X(e),e.dep&&Nn(e.dep)}function _e(e){return Boolean(e&&e.__v_isRef===!0)}function yo(e){return Jr(e,!1)}function bo(e){return Jr(e,!0)}function Jr(e,t){return _e(e)?e:new vo(e,t)}class vo{constructor(t,n){this._shallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:X(t),this._value=n?t:It(t)}get value(){return Zr(this),this._value}set value(t){t=this._shallow?t:X(t),Rt(t,this._rawValue)&&(this._rawValue=t,this._value=this._shallow?t:It(t),Gr(this))}}function Mt(e){return _e(e)?e.value:e}const _o={get:(e,t,n)=>Mt(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return _e(s)&&!_e(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function Qr(e){return mt(e)?e:new Proxy(e,_o)}class wo{constructor(t,n,r){this._setter=n,this.dep=void 0,this._dirty=!0,this.__v_isRef=!0,this.effect=new kn(t,()=>{this._dirty||(this._dirty=!0,Gr(this))}),this.__v_isReadonly=r}get value(){const t=X(this);return Zr(t),t._dirty&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Ne(e,t){let n,r;const s=Y(e);return s?(n=e,r=Me):(n=e.get,r=e.set),new wo(n,r,s||!r)}Promise.resolve();function xo(e,t,...n){const r=e.vnode.props||se;let s=n;const i=t.startsWith("update:"),l=i&&t.slice(7);if(l&&l in r){const f=`${l==="modelValue"?"model":l}Modifiers`,{number:p,trim:h}=r[f]||se;h?s=n.map(C=>C.trim()):p&&(s=n.map(Bi))}let o,a=r[o=Rn(t)]||r[o=Rn($e(t))];!a&&i&&(a=r[o=Rn(ht(t))]),a&&Te(a,e,6,s);const u=r[o+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[o])return;e.emitted[o]=!0,Te(u,e,6,s)}}function Xr(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const i=e.emits;let l={},o=!1;if(!Y(e)){const a=u=>{const f=Xr(u,t,!0);f&&(o=!0,ge(l,f))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!i&&!o?(r.set(e,null),null):(V(i)?i.forEach(a=>l[a]=null):ge(l,i),r.set(e,l),l)}function Kn(e,t){return!e||!zt(t)?!1:(t=t.slice(2).replace(/Once$/,""),J(e,t[0].toLowerCase()+t.slice(1))||J(e,ht(t))||J(e,t))}let Ce=null,es=null;function rn(e){const t=Ce;return Ce=e,es=e&&e.type.__scopeId||null,t}function Eo(e,t=Ce,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Ps(-1);const i=rn(t),l=e(...s);return rn(i),r._d&&Ps(1),l};return r._n=!0,r._c=!0,r._d=!0,r}function zn(e){const{type:t,vnode:n,proxy:r,withProxy:s,props:i,propsOptions:[l],slots:o,attrs:a,emit:u,render:f,renderCache:p,data:h,setupState:C,ctx:k,inheritAttrs:L}=e;let O,I;const g=rn(e);try{if(n.shapeFlag&4){const b=s||r;O=He(f.call(b,b,p,i,C,h,k)),I=a}else{const b=t;O=He(b.length>1?b(i,{attrs:a,slots:o,emit:u}):b(i,null)),I=t.props?a:Ao(a)}}catch(b){kt.length=0,mn(b,e,1),O=we(De)}let m=O;if(I&&L!==!1){const b=Object.keys(I),{shapeFlag:E}=m;b.length&&E&(1|6)&&(l&&b.some(Cn)&&(I=Co(I,l)),m=yt(m,I))}return n.dirs&&(m.dirs=m.dirs?m.dirs.concat(n.dirs):n.dirs),n.transition&&(m.transition=n.transition),O=m,rn(g),O}const Ao=e=>{let t;for(const n in e)(n==="class"||n==="style"||zt(n))&&((t||(t={}))[n]=e[n]);return t},Co=(e,t)=>{const n={};for(const r in e)(!Cn(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function Fo(e,t,n){const{props:r,children:s,component:i}=e,{props:l,children:o,patchFlag:a}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return r?ts(r,l,u):!!l;if(a&8){const f=t.dynamicProps;for(let p=0;p<f.length;p++){const h=f[p];if(l[h]!==r[h]&&!Kn(u,h))return!0}}}else return(s||o)&&(!o||!o.$stable)?!0:r===l?!1:r?l?ts(r,l,u):!0:!!l;return!1}function ts(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const i=r[s];if(t[i]!==e[i]&&!Kn(n,i))return!0}return!1}function Po({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const Ro=e=>e.__isSuspense;function So(e,t){t&&t.pendingBranch?V(e)?t.effects.push(...e):t.effects.push(e):Sl(e)}function sn(e,t){if(he){let n=he.provides;const r=he.parent&&he.parent.provides;r===n&&(n=he.provides=Object.create(r)),n[e]=t}}function Ve(e,t,n=!1){const r=he||Ce;if(r){const s=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(s&&e in s)return s[e];if(arguments.length>1)return n&&Y(t)?t.call(r.proxy):t}}function To(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return ls(()=>{e.isMounted=!0}),as(()=>{e.isUnmounting=!0}),e}const Re=[Function,Array],Oo={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Re,onEnter:Re,onAfterEnter:Re,onEnterCancelled:Re,onBeforeLeave:Re,onLeave:Re,onAfterLeave:Re,onLeaveCancelled:Re,onBeforeAppear:Re,onAppear:Re,onAfterAppear:Re,onAppearCancelled:Re},setup(e,{slots:t}){const n=bl(),r=To();let s;return()=>{const i=t.default&&ss(t.default(),!0);if(!i||!i.length)return;const l=X(e),{mode:o}=l,a=i[0];if(r.isLeaving)return Wn(a);const u=rs(a);if(!u)return Wn(a);const f=qn(u,l,r,n);Vn(u,f);const p=n.subTree,h=p&&rs(p);let C=!1;const{getTransitionKey:k}=u.type;if(k){const L=k();s===void 0?s=L:L!==s&&(s=L,C=!0)}if(h&&h.type!==De&&(!ot(u,h)||C)){const L=qn(h,l,r,n);if(Vn(h,L),o==="out-in")return r.isLeaving=!0,L.afterLeave=()=>{r.isLeaving=!1,n.update()},Wn(a);o==="in-out"&&u.type!==De&&(L.delayLeave=(O,I,g)=>{const m=ns(r,h);m[String(h.key)]=h,O._leaveCb=()=>{I(),O._leaveCb=void 0,delete f.delayedLeave},f.delayedLeave=g})}return a}}},Io=Oo;function ns(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function qn(e,t,n,r){const{appear:s,mode:i,persisted:l=!1,onBeforeEnter:o,onEnter:a,onAfterEnter:u,onEnterCancelled:f,onBeforeLeave:p,onLeave:h,onAfterLeave:C,onLeaveCancelled:k,onBeforeAppear:L,onAppear:O,onAfterAppear:I,onAppearCancelled:g}=t,m=String(e.key),b=ns(n,e),E=(T,D)=>{T&&Te(T,r,9,D)},x={mode:i,persisted:l,beforeEnter(T){let D=o;if(!n.isMounted)if(s)D=L||o;else return;T._leaveCb&&T._leaveCb(!0);const $=b[m];$&&ot(e,$)&&$.el._leaveCb&&$.el._leaveCb(),E(D,[T])},enter(T){let D=a,$=u,Q=f;if(!n.isMounted)if(s)D=O||a,$=I||u,Q=g||f;else return;let Z=!1;const le=T._enterCb=Oe=>{Z||(Z=!0,Oe?E(Q,[T]):E($,[T]),x.delayedLeave&&x.delayedLeave(),T._enterCb=void 0)};D?(D(T,le),D.length<=1&&le()):le()},leave(T,D){const $=String(e.key);if(T._enterCb&&T._enterCb(!0),n.isUnmounting)return D();E(p,[T]);let Q=!1;const Z=T._leaveCb=le=>{Q||(Q=!0,D(),le?E(k,[T]):E(C,[T]),T._leaveCb=void 0,b[$]===e&&delete b[$])};b[$]=e,h?(h(T,Z),h.length<=1&&Z()):Z()},clone(T){return qn(T,t,n,r)}};return x}function Wn(e){if(on(e))return e=yt(e),e.children=null,e}function rs(e){return on(e)?e.children?e.children[0]:void 0:e}function Vn(e,t){e.shapeFlag&6&&e.component?Vn(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function ss(e,t=!1){let n=[],r=0;for(let s=0;s<e.length;s++){const i=e[s];i.type===Se?(i.patchFlag&128&&r++,n=n.concat(ss(i.children,t))):(t||i.type!==De)&&n.push(i)}if(r>1)for(let s=0;s<n.length;s++)n[s].patchFlag=-2;return n}function is(e){return Y(e)?{setup:e,name:e.name}:e}const Yn=e=>!!e.type.__asyncLoader,on=e=>e.type.__isKeepAlive;function Mo(e,t){os(e,"a",t)}function ko(e,t){os(e,"da",t)}function os(e,t,n=he){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(ln(t,r,n),n){let s=n.parent;for(;s&&s.parent;)on(s.parent.vnode)&&$o(r,t,n,s),s=s.parent}}function $o(e,t,n,r){const s=ln(t,e,r,!0);cs(()=>{Ar(r[t],s)},n)}function ln(e,t,n=he,r=!1){if(n){const s=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...l)=>{if(n.isUnmounted)return;gt(),bt(n);const o=Te(t,n,e,l);return lt(),nt(),o});return r?s.unshift(i):s.push(i),i}}const Ue=e=>(t,n=he)=>(!gn||e==="sp")&&ln(e,t,n),No=Ue("bm"),ls=Ue("m"),Lo=Ue("bu"),Ho=Ue("u"),as=Ue("bum"),cs=Ue("um"),Bo=Ue("sp"),jo=Ue("rtg"),Uo=Ue("rtc");function Do(e,t=he){ln("ec",e,t)}let Zn=!0;function Ko(e){const t=ds(e),n=e.proxy,r=e.ctx;Zn=!1,t.beforeCreate&&us(t.beforeCreate,e,"bc");const{data:s,computed:i,methods:l,watch:o,provide:a,inject:u,created:f,beforeMount:p,mounted:h,beforeUpdate:C,updated:k,activated:L,deactivated:O,beforeDestroy:I,beforeUnmount:g,destroyed:m,unmounted:b,render:E,renderTracked:x,renderTriggered:T,errorCaptured:D,serverPrefetch:$,expose:Q,inheritAttrs:Z,components:le,directives:Oe,filters:Be}=t;if(u&&zo(u,r,null,e.appContext.config.unwrapInjectedRef),l)for(const ne in l){const K=l[ne];Y(K)&&(r[ne]=K.bind(n))}if(s){const ne=s.call(n,n);de(ne)&&(e.data=Ot(ne))}if(Zn=!0,i)for(const ne in i){const K=i[ne],ce=Y(K)?K.bind(n,n):Y(K.get)?K.get.bind(n,n):Me,xe=!Y(K)&&Y(K.set)?K.set.bind(n):Me,be=Ne({get:ce,set:xe});Object.defineProperty(r,ne,{enumerable:!0,configurable:!0,get:()=>be.value,set:fe=>be.value=fe})}if(o)for(const ne in o)fs(o[ne],r,n,ne);if(a){const ne=Y(a)?a.call(n):a;Reflect.ownKeys(ne).forEach(K=>{sn(K,ne[K])})}f&&us(f,e,"c");function ue(ne,K){V(K)?K.forEach(ce=>ne(ce.bind(n))):K&&ne(K.bind(n))}if(ue(No,p),ue(ls,h),ue(Lo,C),ue(Ho,k),ue(Mo,L),ue(ko,O),ue(Do,D),ue(Uo,x),ue(jo,T),ue(as,g),ue(cs,b),ue(Bo,$),V(Q))if(Q.length){const ne=e.exposed||(e.exposed={});Q.forEach(K=>{Object.defineProperty(ne,K,{get:()=>n[K],set:ce=>n[K]=ce})})}else e.exposed||(e.exposed={});E&&e.render===Me&&(e.render=E),Z!=null&&(e.inheritAttrs=Z),le&&(e.components=le),Oe&&(e.directives=Oe)}function zo(e,t,n=Me,r=!1){V(e)&&(e=Gn(e));for(const s in e){const i=e[s];let l;de(i)?"default"in i?l=Ve(i.from||s,i.default,!0):l=Ve(i.from||s):l=Ve(i),_e(l)&&r?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>l.value,set:o=>l.value=o}):t[s]=l}}function us(e,t,n){Te(V(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function fs(e,t,n,r){const s=r.includes(".")?qs(n,r):()=>n[r];if(pe(e)){const i=t[e];Y(i)&&bn(s,i)}else if(Y(e))bn(s,e.bind(n));else if(de(e))if(V(e))e.forEach(i=>fs(i,t,n,r));else{const i=Y(e.handler)?e.handler.bind(n):t[e.handler];Y(i)&&bn(s,i,e)}}function ds(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:i,config:{optionMergeStrategies:l}}=e.appContext,o=i.get(t);let a;return o?a=o:!s.length&&!n&&!r?a=t:(a={},s.length&&s.forEach(u=>an(a,u,l,!0)),an(a,t,l)),i.set(t,a),a}function an(e,t,n,r=!1){const{mixins:s,extends:i}=t;i&&an(e,i,n,!0),s&&s.forEach(l=>an(e,l,n,!0));for(const l in t)if(!(r&&l==="expose")){const o=qo[l]||n&&n[l];e[l]=o?o(e[l],t[l]):t[l]}return e}const qo={data:hs,props:rt,emits:rt,methods:rt,computed:rt,beforeCreate:me,created:me,beforeMount:me,mounted:me,beforeUpdate:me,updated:me,beforeDestroy:me,beforeUnmount:me,destroyed:me,unmounted:me,activated:me,deactivated:me,errorCaptured:me,serverPrefetch:me,components:rt,directives:rt,watch:Vo,provide:hs,inject:Wo};function hs(e,t){return t?e?function(){return ge(Y(e)?e.call(this,this):e,Y(t)?t.call(this,this):t)}:t:e}function Wo(e,t){return rt(Gn(e),Gn(t))}function Gn(e){if(V(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function me(e,t){return e?[...new Set([].concat(e,t))]:t}function rt(e,t){return e?ge(ge(Object.create(null),e),t):t}function Vo(e,t){if(!e)return t;if(!t)return e;const n=ge(Object.create(null),e);for(const r in t)n[r]=me(e[r],t[r]);return n}function Yo(e,t,n,r=!1){const s={},i={};Zt(i,dn,1),e.propsDefaults=Object.create(null),ps(e,t,s,i);for(const l in e.propsOptions[0])l in s||(s[l]=void 0);n?e.props=r?s:mo(s):e.type.props?e.props=s:e.props=i,e.attrs=i}function Zo(e,t,n,r){const{props:s,attrs:i,vnode:{patchFlag:l}}=e,o=X(s),[a]=e.propsOptions;let u=!1;if((r||l>0)&&!(l&16)){if(l&8){const f=e.vnode.dynamicProps;for(let p=0;p<f.length;p++){let h=f[p];const C=t[h];if(a)if(J(i,h))C!==i[h]&&(i[h]=C,u=!0);else{const k=$e(h);s[k]=Jn(a,o,k,C,e,!1)}else C!==i[h]&&(i[h]=C,u=!0)}}}else{ps(e,t,s,i)&&(u=!0);let f;for(const p in o)(!t||!J(t,p)&&((f=ht(p))===p||!J(t,f)))&&(a?n&&(n[p]!==void 0||n[f]!==void 0)&&(s[p]=Jn(a,o,p,void 0,e,!0)):delete s[p]);if(i!==o)for(const p in i)(!t||!J(t,p))&&(delete i[p],u=!0)}u&&je(e,"set","$attrs")}function ps(e,t,n,r){const[s,i]=e.propsOptions;let l=!1,o;if(t)for(let a in t){if(Wt(a))continue;const u=t[a];let f;s&&J(s,f=$e(a))?!i||!i.includes(f)?n[f]=u:(o||(o={}))[f]=u:Kn(e.emitsOptions,a)||(!(a in r)||u!==r[a])&&(r[a]=u,l=!0)}if(i){const a=X(n),u=o||se;for(let f=0;f<i.length;f++){const p=i[f];n[p]=Jn(s,a,p,u[p],e,!J(u,p))}}return l}function Jn(e,t,n,r,s,i){const l=e[n];if(l!=null){const o=J(l,"default");if(o&&r===void 0){const a=l.default;if(l.type!==Function&&Y(a)){const{propsDefaults:u}=s;n in u?r=u[n]:(bt(s),r=u[n]=a.call(null,t),lt())}else r=a}l[0]&&(i&&!o?r=!1:l[1]&&(r===""||r===ht(n))&&(r=!0))}return r}function gs(e,t,n=!1){const r=t.propsCache,s=r.get(e);if(s)return s;const i=e.props,l={},o=[];let a=!1;if(!Y(e)){const f=p=>{a=!0;const[h,C]=gs(p,t,!0);ge(l,h),C&&o.push(...C)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!i&&!a)return r.set(e,ft),ft;if(V(i))for(let f=0;f<i.length;f++){const p=$e(i[f]);ms(p)&&(l[p]=se)}else if(i)for(const f in i){const p=$e(f);if(ms(p)){const h=i[f],C=l[p]=V(h)||Y(h)?{type:h}:h;if(C){const k=vs(Boolean,C.type),L=vs(String,C.type);C[0]=k>-1,C[1]=L<0||k<L,(k>-1||J(C,"default"))&&o.push(p)}}}const u=[l,o];return r.set(e,u),u}function ms(e){return e[0]!=="$"}function ys(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function bs(e,t){return ys(e)===ys(t)}function vs(e,t){return V(t)?t.findIndex(n=>bs(n,e)):Y(t)&&bs(t,e)?0:-1}const _s=e=>e[0]==="_"||e==="$stable",Qn=e=>V(e)?e.map(He):[He(e)],Go=(e,t,n)=>{const r=Eo((...s)=>Qn(t(...s)),n);return r._c=!1,r},ws=(e,t,n)=>{const r=e._ctx;for(const s in e){if(_s(s))continue;const i=e[s];if(Y(i))t[s]=Go(s,i,r);else if(i!=null){const l=Qn(i);t[s]=()=>l}}},xs=(e,t)=>{const n=Qn(t);e.slots.default=()=>n},Jo=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=X(t),Zt(t,"_",n)):ws(t,e.slots={})}else e.slots={},t&&xs(e,t);Zt(e.slots,dn,1)},Qo=(e,t,n)=>{const{vnode:r,slots:s}=e;let i=!0,l=se;if(r.shapeFlag&32){const o=t._;o?n&&o===1?i=!1:(ge(s,t),!n&&o===1&&delete s._):(i=!t.$stable,ws(t,s)),l=t}else t&&(xs(e,t),l={default:1});if(i)for(const o in s)!_s(o)&&!(o in l)&&delete s[o]};function sc(e,t){const n=Ce;if(n===null)return e;const r=n.proxy,s=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[l,o,a,u=se]=t[i];Y(l)&&(l={mounted:l,updated:l}),l.deep&&at(o),s.push({dir:l,instance:r,value:o,oldValue:void 0,arg:a,modifiers:u})}return e}function st(e,t,n,r){const s=e.dirs,i=t&&t.dirs;for(let l=0;l<s.length;l++){const o=s[l];i&&(o.oldValue=i[l].value);let a=o.dir[r];a&&(gt(),Te(a,n,8,[e.el,o,e,t]),nt())}}function Es(){return{app:null,config:{isNativeTag:Mi,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Xo=0;function el(e,t){return function(r,s=null){s!=null&&!de(s)&&(s=null);const i=Es(),l=new Set;let o=!1;const a=i.app={_uid:Xo++,_component:r,_props:s,_container:null,_context:i,_instance:null,version:Ol,get config(){return i.config},set config(u){},use(u,...f){return l.has(u)||(u&&Y(u.install)?(l.add(u),u.install(a,...f)):Y(u)&&(l.add(u),u(a,...f))),a},mixin(u){return i.mixins.includes(u)||i.mixins.push(u),a},component(u,f){return f?(i.components[u]=f,a):i.components[u]},directive(u,f){return f?(i.directives[u]=f,a):i.directives[u]},mount(u,f,p){if(!o){const h=we(r,s);return h.appContext=i,f&&t?t(h,u):e(h,u,p),o=!0,a._container=u,u.__vue_app__=a,rr(h.component)||h.component.proxy}},unmount(){o&&(e(null,a._container),delete a._container.__vue_app__)},provide(u,f){return i.provides[u]=f,a}};return a}}const ye=So;function tl(e){return nl(e)}function nl(e,t){const n=ji();n.__VUE__=!0;const{insert:r,remove:s,patchProp:i,createElement:l,createText:o,createComment:a,setText:u,setElementText:f,parentNode:p,nextSibling:h,setScopeId:C=Me,cloneNode:k,insertStaticContent:L}=e,O=(c,d,y,w=null,_=null,S=null,M=!1,F=null,P=!!d.dynamicChildren)=>{if(c===d)return;c&&!ot(c,d)&&(w=B(c),ve(c,_,S,!0),c=null),d.patchFlag===-2&&(P=!1,d.dynamicChildren=null);const{type:A,ref:j,shapeFlag:H}=d;switch(A){case er:I(c,d,y,w);break;case De:g(c,d,y,w);break;case cn:c==null&&m(d,y,w,M);break;case Se:Oe(c,d,y,w,_,S,M,F,P);break;default:H&1?x(c,d,y,w,_,S,M,F,P):H&6?Be(c,d,y,w,_,S,M,F,P):(H&64||H&128)&&A.process(c,d,y,w,_,S,M,F,P,te)}j!=null&&_&&Xn(j,c&&c.ref,S,d||c,!d)},I=(c,d,y,w)=>{if(c==null)r(d.el=o(d.children),y,w);else{const _=d.el=c.el;d.children!==c.children&&u(_,d.children)}},g=(c,d,y,w)=>{c==null?r(d.el=a(d.children||""),y,w):d.el=c.el},m=(c,d,y,w)=>{[c.el,c.anchor]=L(c.children,d,y,w)},b=({el:c,anchor:d},y,w)=>{let _;for(;c&&c!==d;)_=h(c),r(c,y,w),c=_;r(d,y,w)},E=({el:c,anchor:d})=>{let y;for(;c&&c!==d;)y=h(c),s(c),c=y;s(d)},x=(c,d,y,w,_,S,M,F,P)=>{M=M||d.type==="svg",c==null?T(d,y,w,_,S,M,F,P):Q(c,d,_,S,M,F,P)},T=(c,d,y,w,_,S,M,F)=>{let P,A;const{type:j,props:H,shapeFlag:U,transition:z,patchFlag:G,dirs:ae}=c;if(c.el&&k!==void 0&&G===-1)P=c.el=k(c.el);else{if(P=c.el=l(c.type,S,H&&H.is,H),U&8?f(P,c.children):U&16&&$(c.children,P,null,w,_,S&&j!=="foreignObject",M,F),ae&&st(c,null,w,"created"),H){for(const oe in H)oe!=="value"&&!Wt(oe)&&i(P,oe,null,H[oe],S,c.children,w,_,R);"value"in H&&i(P,"value",null,H.value),(A=H.onVnodeBeforeMount)&&Le(A,w,c)}D(P,c,c.scopeId,M,w)}ae&&st(c,null,w,"beforeMount");const re=(!_||_&&!_.pendingBranch)&&z&&!z.persisted;re&&z.beforeEnter(P),r(P,d,y),((A=H&&H.onVnodeMounted)||re||ae)&&ye(()=>{A&&Le(A,w,c),re&&z.enter(P),ae&&st(c,null,w,"mounted")},_)},D=(c,d,y,w,_)=>{if(y&&C(c,y),w)for(let S=0;S<w.length;S++)C(c,w[S]);if(_){let S=_.subTree;if(d===S){const M=_.vnode;D(c,M,M.scopeId,M.slotScopeIds,_.parent)}}},$=(c,d,y,w,_,S,M,F,P=0)=>{for(let A=P;A<c.length;A++){const j=c[A]=F?Ye(c[A]):He(c[A]);O(null,j,d,y,w,_,S,M,F)}},Q=(c,d,y,w,_,S,M)=>{const F=d.el=c.el;let{patchFlag:P,dynamicChildren:A,dirs:j}=d;P|=c.patchFlag&16;const H=c.props||se,U=d.props||se;let z;(z=U.onVnodeBeforeUpdate)&&Le(z,y,d,c),j&&st(d,c,y,"beforeUpdate");const G=_&&d.type!=="foreignObject";if(A?Z(c.dynamicChildren,A,F,y,w,G,S):M||ce(c,d,F,null,y,w,G,S,!1),P>0){if(P&16)le(F,d,H,U,y,w,_);else if(P&2&&H.class!==U.class&&i(F,"class",null,U.class,_),P&4&&i(F,"style",H.style,U.style,_),P&8){const ae=d.dynamicProps;for(let re=0;re<ae.length;re++){const oe=ae[re],Ie=H[oe],ut=U[oe];(ut!==Ie||oe==="value")&&i(F,oe,Ie,ut,_,c.children,y,w,R)}}P&1&&c.children!==d.children&&f(F,d.children)}else!M&&A==null&&le(F,d,H,U,y,w,_);((z=U.onVnodeUpdated)||j)&&ye(()=>{z&&Le(z,y,d,c),j&&st(d,c,y,"updated")},w)},Z=(c,d,y,w,_,S,M)=>{for(let F=0;F<d.length;F++){const P=c[F],A=d[F],j=P.el&&(P.type===Se||!ot(P,A)||P.shapeFlag&(6|64))?p(P.el):y;O(P,A,j,null,w,_,S,M,!0)}},le=(c,d,y,w,_,S,M)=>{if(y!==w){for(const F in w){if(Wt(F))continue;const P=w[F],A=y[F];P!==A&&F!=="value"&&i(c,F,A,P,M,d.children,_,S,R)}if(y!==se)for(const F in y)!Wt(F)&&!(F in w)&&i(c,F,y[F],null,M,d.children,_,S,R);"value"in w&&i(c,"value",y.value,w.value)}},Oe=(c,d,y,w,_,S,M,F,P)=>{const A=d.el=c?c.el:o(""),j=d.anchor=c?c.anchor:o("");let{patchFlag:H,dynamicChildren:U,slotScopeIds:z}=d;z&&(F=F?F.concat(z):z),c==null?(r(A,y,w),r(j,y,w),$(d.children,y,j,_,S,M,F,P)):H>0&&H&64&&U&&c.dynamicChildren?(Z(c.dynamicChildren,U,y,_,S,M,F),(d.key!=null||_&&d===_.subTree)&&As(c,d,!0)):ce(c,d,y,j,_,S,M,F,P)},Be=(c,d,y,w,_,S,M,F,P)=>{d.slotScopeIds=F,c==null?d.shapeFlag&512?_.ctx.activate(d,y,w,M,P):ze(d,y,w,_,S,M,P):ue(c,d,P)},ze=(c,d,y,w,_,S,M)=>{const F=c.component=yl(c,w,_);if(on(c)&&(F.ctx.renderer=te),vl(F),F.asyncDep){if(_&&_.registerDep(F,ne),!c.el){const P=F.subTree=we(De);g(null,P,d,y)}return}ne(F,c,d,y,_,S,M)},ue=(c,d,y)=>{const w=d.component=c.component;if(Fo(c,d,y))if(w.asyncDep&&!w.asyncResolved){K(w,d,y);return}else w.next=d,Pl(w.update),w.update();else d.component=c.component,d.el=c.el,w.vnode=d},ne=(c,d,y,w,_,S,M)=>{const F=()=>{if(c.isMounted){let{next:j,bu:H,u:U,parent:z,vnode:G}=c,ae=j,re;P.allowRecurse=!1,j?(j.el=G.el,K(c,j,M)):j=G,H&&Sn(H),(re=j.props&&j.props.onVnodeBeforeUpdate)&&Le(re,z,j,G),P.allowRecurse=!0;const oe=zn(c),Ie=c.subTree;c.subTree=oe,O(Ie,oe,p(Ie.el),B(Ie),c,_,S),j.el=oe.el,ae===null&&Po(c,oe.el),U&&ye(U,_),(re=j.props&&j.props.onVnodeUpdated)&&ye(()=>Le(re,z,j,G),_)}else{let j;const{el:H,props:U}=d,{bm:z,m:G,parent:ae}=c,re=Yn(d);if(P.allowRecurse=!1,z&&Sn(z),!re&&(j=U&&U.onVnodeBeforeMount)&&Le(j,ae,d),P.allowRecurse=!0,H&&W){const oe=()=>{c.subTree=zn(c),W(H,c.subTree,c,_,null)};re?d.type.__asyncLoader().then(()=>!c.isUnmounted&&oe()):oe()}else{const oe=c.subTree=zn(c);O(null,oe,y,w,c,_,S),d.el=oe.el}if(G&&ye(G,_),!re&&(j=U&&U.onVnodeMounted)){const oe=d;ye(()=>Le(j,ae,oe),_)}d.shapeFlag&256&&c.a&&ye(c.a,_),c.isMounted=!0,d=y=w=null}},P=new kn(F,()=>Hs(c.update),c.scope),A=c.update=P.run.bind(P);A.id=c.uid,P.allowRecurse=A.allowRecurse=!0,A()},K=(c,d,y)=>{d.component=c;const w=c.vnode.props;c.vnode=d,c.next=null,Zo(c,d.props,w,y),Qo(c,d.children,y),gt(),lr(void 0,c.update),nt()},ce=(c,d,y,w,_,S,M,F,P=!1)=>{const A=c&&c.children,j=c?c.shapeFlag:0,H=d.children,{patchFlag:U,shapeFlag:z}=d;if(U>0){if(U&128){be(A,H,y,w,_,S,M,F,P);return}else if(U&256){xe(A,H,y,w,_,S,M,F,P);return}}z&8?(j&16&&R(A,_,S),H!==A&&f(y,H)):j&16?z&16?be(A,H,y,w,_,S,M,F,P):R(A,_,S,!0):(j&8&&f(y,""),z&16&&$(H,y,w,_,S,M,F,P))},xe=(c,d,y,w,_,S,M,F,P)=>{c=c||ft,d=d||ft;const A=c.length,j=d.length,H=Math.min(A,j);let U;for(U=0;U<H;U++){const z=d[U]=P?Ye(d[U]):He(d[U]);O(c[U],z,y,null,_,S,M,F,P)}A>j?R(c,_,S,!0,!1,H):$(d,y,w,_,S,M,F,P,H)},be=(c,d,y,w,_,S,M,F,P)=>{let A=0;const j=d.length;let H=c.length-1,U=j-1;for(;A<=H&&A<=U;){const z=c[A],G=d[A]=P?Ye(d[A]):He(d[A]);if(ot(z,G))O(z,G,y,null,_,S,M,F,P);else break;A++}for(;A<=H&&A<=U;){const z=c[H],G=d[U]=P?Ye(d[U]):He(d[U]);if(ot(z,G))O(z,G,y,null,_,S,M,F,P);else break;H--,U--}if(A>H){if(A<=U){const z=U+1,G=z<j?d[z].el:w;for(;A<=U;)O(null,d[A]=P?Ye(d[A]):He(d[A]),y,G,_,S,M,F,P),A++}}else if(A>U)for(;A<=H;)ve(c[A],_,S,!0),A++;else{const z=A,G=A,ae=new Map;for(A=G;A<=U;A++){const Ee=d[A]=P?Ye(d[A]):He(d[A]);Ee.key!=null&&ae.set(Ee.key,A)}let re,oe=0;const Ie=U-G+1;let ut=!1,vr=0;const Pt=new Array(Ie);for(A=0;A<Ie;A++)Pt[A]=0;for(A=z;A<=H;A++){const Ee=c[A];if(oe>=Ie){ve(Ee,_,S,!0);continue}let ke;if(Ee.key!=null)ke=ae.get(Ee.key);else for(re=G;re<=U;re++)if(Pt[re-G]===0&&ot(Ee,d[re])){ke=re;break}ke===void 0?ve(Ee,_,S,!0):(Pt[ke-G]=A+1,ke>=vr?vr=ke:ut=!0,O(Ee,d[ke],y,null,_,S,M,F,P),oe++)}const _r=ut?rl(Pt):ft;for(re=_r.length-1,A=Ie-1;A>=0;A--){const Ee=G+A,ke=d[Ee],wr=Ee+1<j?d[Ee+1].el:w;Pt[A]===0?O(null,ke,y,wr,_,S,M,F,P):ut&&(re<0||A!==_r[re]?fe(ke,y,wr,2):re--)}}},fe=(c,d,y,w,_=null)=>{const{el:S,type:M,transition:F,children:P,shapeFlag:A}=c;if(A&6){fe(c.component.subTree,d,y,w);return}if(A&128){c.suspense.move(d,y,w);return}if(A&64){M.move(c,d,y,te);return}if(M===Se){r(S,d,y);for(let H=0;H<P.length;H++)fe(P[H],d,y,w);r(c.anchor,d,y);return}if(M===cn){b(c,d,y);return}if(w!==2&&A&1&&F)if(w===0)F.beforeEnter(S),r(S,d,y),ye(()=>F.enter(S),_);else{const{leave:H,delayLeave:U,afterLeave:z}=F,G=()=>r(S,d,y),ae=()=>{H(S,()=>{G(),z&&z()})};U?U(S,G,ae):ae()}else r(S,d,y)},ve=(c,d,y,w=!1,_=!1)=>{const{type:S,props:M,ref:F,children:P,dynamicChildren:A,shapeFlag:j,patchFlag:H,dirs:U}=c;if(F!=null&&Xn(F,null,y,c,!0),j&256){d.ctx.deactivate(c);return}const z=j&1&&U,G=!Yn(c);let ae;if(G&&(ae=M&&M.onVnodeBeforeUnmount)&&Le(ae,d,c),j&6)N(c.component,y,w);else{if(j&128){c.suspense.unmount(y,w);return}z&&st(c,null,d,"beforeUnmount"),j&64?c.type.remove(c,d,y,_,te,w):A&&(S!==Se||H>0&&H&64)?R(A,d,y,!1,!0):(S===Se&&H&(128|256)||!_&&j&16)&&R(P,d,y),w&&Pe(c)}(G&&(ae=M&&M.onVnodeUnmounted)||z)&&ye(()=>{ae&&Le(ae,d,c),z&&st(c,null,d,"unmounted")},y)},Pe=c=>{const{type:d,el:y,anchor:w,transition:_}=c;if(d===Se){v(y,w);return}if(d===cn){E(c);return}const S=()=>{s(y),_&&!_.persisted&&_.afterLeave&&_.afterLeave()};if(c.shapeFlag&1&&_&&!_.persisted){const{leave:M,delayLeave:F}=_,P=()=>M(y,S);F?F(c.el,S,P):P()}else S()},v=(c,d)=>{let y;for(;c!==d;)y=h(c),s(c),c=y;s(d)},N=(c,d,y)=>{const{bum:w,scope:_,update:S,subTree:M,um:F}=c;w&&Sn(w),_.stop(),S&&(S.active=!1,ve(M,c,d,y)),F&&ye(F,d),ye(()=>{c.isUnmounted=!0},d),d&&d.pendingBranch&&!d.isUnmounted&&c.asyncDep&&!c.asyncResolved&&c.suspenseId===d.pendingId&&(d.deps--,d.deps===0&&d.resolve())},R=(c,d,y,w=!1,_=!1,S=0)=>{for(let M=S;M<c.length;M++)ve(c[M],d,y,w,_)},B=c=>c.shapeFlag&6?B(c.component.subTree):c.shapeFlag&128?c.suspense.next():h(c.anchor||c.el),ee=(c,d,y)=>{c==null?d._vnode&&ve(d._vnode,null,null,!0):O(d._vnode||null,c,d,null,null,null,y),Us(),d._vnode=c},te={p:O,um:ve,m:fe,r:Pe,mt:ze,mc:$,pc:ce,pbc:Z,n:B,o:e};let q,W;return t&&([q,W]=t(te)),{render:ee,hydrate:q,createApp:el(ee,q)}}function Xn(e,t,n,r,s=!1){if(V(e)){e.forEach((h,C)=>Xn(h,t&&(V(t)?t[C]:t),n,r,s));return}if(Yn(r)&&!s)return;const i=r.shapeFlag&4?rr(r.component)||r.component.proxy:r.el,l=s?null:i,{i:o,r:a}=e,u=t&&t.r,f=o.refs===se?o.refs={}:o.refs,p=o.setupState;if(u!=null&&u!==a&&(pe(u)?(f[u]=null,J(p,u)&&(p[u]=null)):_e(u)&&(u.value=null)),pe(a)){const h=()=>{f[a]=l,J(p,a)&&(p[a]=l)};l?(h.id=-1,ye(h,n)):h()}else if(_e(a)){const h=()=>{a.value=l};l?(h.id=-1,ye(h,n)):h()}else Y(a)&&Ze(a,o,12,[l,f])}function Le(e,t,n,r=null){Te(e,t,7,[n,r])}function As(e,t,n=!1){const r=e.children,s=t.children;if(V(r)&&V(s))for(let i=0;i<r.length;i++){const l=r[i];let o=s[i];o.shapeFlag&1&&!o.dynamicChildren&&((o.patchFlag<=0||o.patchFlag===32)&&(o=s[i]=Ye(s[i]),o.el=l.el),n||As(l,o))}}function rl(e){const t=e.slice(),n=[0];let r,s,i,l,o;const a=e.length;for(r=0;r<a;r++){const u=e[r];if(u!==0){if(s=n[n.length-1],e[s]<u){t[r]=s,n.push(r);continue}for(i=0,l=n.length-1;i<l;)o=i+l>>1,e[n[o]]<u?i=o+1:l=o;u<e[n[i]]&&(i>0&&(t[r]=n[i-1]),n[i]=r)}}for(i=n.length,l=n[i-1];i-- >0;)n[i]=l,l=t[l];return n}const sl=e=>e.__isTeleport,Cs="components";function ic(e,t){return ol(Cs,e,!0,t)||e}const il=Symbol();function ol(e,t,n=!0,r=!1){const s=Ce||he;if(s){const i=s.type;if(e===Cs){const o=El(i);if(o&&(o===t||o===$e(t)||o===Yt($e(t))))return i}const l=Fs(s[e]||i[e],t)||Fs(s.appContext[e],t);return!l&&r?i:l}}function Fs(e,t){return e&&(e[t]||e[$e(t)]||e[Yt($e(t))])}const Se=Symbol(void 0),er=Symbol(void 0),De=Symbol(void 0),cn=Symbol(void 0),kt=[];let it=null;function ll(e=!1){kt.push(it=e?null:[])}function al(){kt.pop(),it=kt[kt.length-1]||null}let un=1;function Ps(e){un+=e}function Rs(e){return e.dynamicChildren=un>0?it||ft:null,al(),un>0&&it&&it.push(e),e}function oc(e,t,n,r,s,i){return Rs(Ts(e,t,n,r,s,i,!0))}function cl(e,t,n,r,s){return Rs(we(e,t,n,r,s,!0))}function fn(e){return e?e.__v_isVNode===!0:!1}function ot(e,t){return e.type===t.type&&e.key===t.key}const dn="__vInternal",Ss=({key:e})=>e!=null?e:null,hn=({ref:e})=>e!=null?pe(e)||_e(e)||Y(e)?{i:Ce,r:e}:e:null;function Ts(e,t=null,n=null,r=0,s=null,i=e===Se?0:1,l=!1,o=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Ss(t),ref:t&&hn(t),scopeId:es,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null};return o?(tr(a,n),i&128&&e.normalize(a)):n&&(a.shapeFlag|=pe(n)?8:16),un>0&&!l&&it&&(a.patchFlag>0||i&6)&&a.patchFlag!==32&&it.push(a),a}const we=ul;function ul(e,t=null,n=null,r=0,s=null,i=!1){if((!e||e===il)&&(e=De),fn(e)){const o=yt(e,t,!0);return n&&tr(o,n),o}if(Al(e)&&(e=e.__vccOpts),t){t=fl(t);let{class:o,style:a}=t;o&&!pe(o)&&(t.class=An(o)),de(a)&&(Vr(a)&&!V(a)&&(a=ge({},a)),t.style=En(a))}const l=pe(e)?1:Ro(e)?128:sl(e)?64:de(e)?4:Y(e)?2:0;return Ts(e,t,n,r,s,l,i,!0)}function fl(e){return e?Vr(e)||dn in e?ge({},e):e:null}function yt(e,t,n=!1){const{props:r,ref:s,patchFlag:i,children:l}=e,o=t?hl(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:o,key:o&&Ss(o),ref:t&&t.ref?n&&s?V(s)?s.concat(hn(t)):[s,hn(t)]:hn(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Se?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&yt(e.ssContent),ssFallback:e.ssFallback&&yt(e.ssFallback),el:e.el,anchor:e.anchor}}function dl(e=" ",t=0){return we(er,null,e,t)}function lc(e,t){const n=we(cn,null,e);return n.staticCount=t,n}function He(e){return e==null||typeof e=="boolean"?we(De):V(e)?we(Se,null,e.slice()):typeof e=="object"?Ye(e):we(er,null,String(e))}function Ye(e){return e.el===null||e.memo?e:yt(e)}function tr(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(V(t))n=16;else if(typeof t=="object")if(r&(1|64)){const s=t.default;s&&(s._c&&(s._d=!1),tr(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!(dn in t)?t._ctx=Ce:s===3&&Ce&&(Ce.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Y(t)?(t={default:t,_ctx:Ce},n=32):(t=String(t),r&64?(n=16,t=[dl(t)]):n=8);e.children=t,e.shapeFlag|=n}function hl(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=An([t.class,r.class]));else if(s==="style")t.style=En([t.style,r.style]);else if(zt(s)){const i=t[s],l=r[s];i!==l&&!(V(i)&&i.includes(l))&&(t[s]=i?[].concat(i,l):l)}else s!==""&&(t[s]=r[s])}return t}function ac(e,t,n,r){let s;const i=n&&n[r];if(V(e)||pe(e)){s=new Array(e.length);for(let l=0,o=e.length;l<o;l++)s[l]=t(e[l],l,void 0,i&&i[l])}else if(typeof e=="number"){s=new Array(e);for(let l=0;l<e;l++)s[l]=t(l+1,l,void 0,i&&i[l])}else if(de(e))if(e[Symbol.iterator])s=Array.from(e,(l,o)=>t(l,o,void 0,i&&i[o]));else{const l=Object.keys(e);s=new Array(l.length);for(let o=0,a=l.length;o<a;o++){const u=l[o];s[o]=t(e[u],u,o,i&&i[o])}}else s=[];return n&&(n[r]=s),s}function cc(e,t,n={},r,s){if(Ce.isCE)return we("slot",t==="default"?null:{name:t},r&&r());let i=e[t];i&&i._c&&(i._d=!1),ll();const l=i&&Os(i(n)),o=cl(Se,{key:n.key||`_${t}`},l||(r?r():[]),l&&e._===1?64:-2);return!s&&o.scopeId&&(o.slotScopeIds=[o.scopeId+"-s"]),i&&i._c&&(i._d=!0),o}function Os(e){return e.some(t=>fn(t)?!(t.type===De||t.type===Se&&!Os(t.children)):!0)?e:null}const nr=e=>e?Is(e)?rr(e)||e.proxy:nr(e.parent):null,pn=ge(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>nr(e.parent),$root:e=>nr(e.root),$emit:e=>e.emit,$options:e=>ds(e),$forceUpdate:e=>()=>Hs(e.update),$nextTick:e=>Ls.bind(e.proxy),$watch:e=>Tl.bind(e)}),pl={get({_:e},t){const{ctx:n,setupState:r,data:s,props:i,accessCache:l,type:o,appContext:a}=e;let u;if(t[0]!=="$"){const C=l[t];if(C!==void 0)switch(C){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return i[t]}else{if(r!==se&&J(r,t))return l[t]=1,r[t];if(s!==se&&J(s,t))return l[t]=2,s[t];if((u=e.propsOptions[0])&&J(u,t))return l[t]=3,i[t];if(n!==se&&J(n,t))return l[t]=4,n[t];Zn&&(l[t]=0)}}const f=pn[t];let p,h;if(f)return t==="$attrs"&&Ae(e,"get",t),f(e);if((p=o.__cssModules)&&(p=p[t]))return p;if(n!==se&&J(n,t))return l[t]=4,n[t];if(h=a.config.globalProperties,J(h,t))return h[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:i}=e;if(s!==se&&J(s,t))s[t]=n;else if(r!==se&&J(r,t))r[t]=n;else if(J(e.props,t))return!1;return t[0]==="$"&&t.slice(1)in e?!1:(i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:i}},l){let o;return!!n[l]||e!==se&&J(e,l)||t!==se&&J(t,l)||(o=i[0])&&J(o,l)||J(r,l)||J(pn,l)||J(s.config.globalProperties,l)}},gl=Es();let ml=0;function yl(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||gl,i={uid:ml++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,update:null,scope:new Ui(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:gs(r,s),emitsOptions:Xr(r,s),emit:null,emitted:null,propsDefaults:se,inheritAttrs:r.inheritAttrs,ctx:se,data:se,props:se,attrs:se,slots:se,refs:se,setupState:se,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return i.ctx={_:i},i.root=t?t.root:i,i.emit=xo.bind(null,i),e.ce&&e.ce(i),i}let he=null;const bl=()=>he||Ce,bt=e=>{he=e,e.scope.on()},lt=()=>{he&&he.scope.off(),he=null};function Is(e){return e.vnode.shapeFlag&4}let gn=!1;function vl(e,t=!1){gn=t;const{props:n,children:r}=e.vnode,s=Is(e);Yo(e,n,s,t),Jo(e,r);const i=s?_l(e,t):void 0;return gn=!1,i}function _l(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Yr(new Proxy(e.ctx,pl));const{setup:r}=n;if(r){const s=e.setupContext=r.length>1?xl(e):null;bt(e),gt();const i=Ze(r,e,0,[e.props,s]);if(nt(),lt(),Fr(i)){if(i.then(lt,lt),t)return i.then(l=>{Ms(e,l,t)}).catch(l=>{mn(l,e,0)});e.asyncDep=i}else Ms(e,i,t)}else $s(e,t)}function Ms(e,t,n){Y(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:de(t)&&(e.setupState=Qr(t)),$s(e,n)}let ks;function $s(e,t,n){const r=e.type;if(!e.render){if(!t&&ks&&!r.render){const s=r.template;if(s){const{isCustomElement:i,compilerOptions:l}=e.appContext.config,{delimiters:o,compilerOptions:a}=r,u=ge(ge({isCustomElement:i,delimiters:o},l),a);r.render=ks(s,u)}}e.render=r.render||Me}bt(e),gt(),Ko(e),nt(),lt()}function wl(e){return new Proxy(e.attrs,{get(t,n){return Ae(e,"get","$attrs"),t[n]}})}function xl(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=wl(e))},slots:e.slots,emit:e.emit,expose:t}}function rr(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Qr(Yr(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in pn)return pn[n](e)}}))}function El(e){return Y(e)&&e.displayName||e.name}function Al(e){return Y(e)&&"__vccOpts"in e}function Ze(e,t,n,r){let s;try{s=r?e(...r):e()}catch(i){mn(i,t,n)}return s}function Te(e,t,n,r){if(Y(e)){const i=Ze(e,t,n,r);return i&&Fr(i)&&i.catch(l=>{mn(l,t,n)}),i}const s=[];for(let i=0;i<e.length;i++)s.push(Te(e[i],t,n,r));return s}function mn(e,t,n,r=!0){const s=t?t.vnode:null;if(t){let i=t.parent;const l=t.proxy,o=n;for(;i;){const u=i.ec;if(u){for(let f=0;f<u.length;f++)if(u[f](e,l,o)===!1)return}i=i.parent}const a=t.appContext.config.errorHandler;if(a){Ze(a,null,10,[e,l,o]);return}}Cl(e,n,s,r)}function Cl(e,t,n,r=!0){console.error(e)}let yn=!1,sr=!1;const Fe=[];let Ke=0;const $t=[];let Nt=null,vt=0;const Lt=[];let Ge=null,_t=0;const Ns=Promise.resolve();let ir=null,or=null;function Ls(e){const t=ir||Ns;return e?t.then(this?e.bind(this):e):t}function Fl(e){let t=Ke+1,n=Fe.length;for(;t<n;){const r=t+n>>>1;Ht(Fe[r])<e?t=r+1:n=r}return t}function Hs(e){(!Fe.length||!Fe.includes(e,yn&&e.allowRecurse?Ke+1:Ke))&&e!==or&&(e.id==null?Fe.push(e):Fe.splice(Fl(e.id),0,e),Bs())}function Bs(){!yn&&!sr&&(sr=!0,ir=Ns.then(Ds))}function Pl(e){const t=Fe.indexOf(e);t>Ke&&Fe.splice(t,1)}function js(e,t,n,r){V(e)?n.push(...e):(!t||!t.includes(e,e.allowRecurse?r+1:r))&&n.push(e),Bs()}function Rl(e){js(e,Nt,$t,vt)}function Sl(e){js(e,Ge,Lt,_t)}function lr(e,t=null){if($t.length){for(or=t,Nt=[...new Set($t)],$t.length=0,vt=0;vt<Nt.length;vt++)Nt[vt]();Nt=null,vt=0,or=null,lr(e,t)}}function Us(e){if(Lt.length){const t=[...new Set(Lt)];if(Lt.length=0,Ge){Ge.push(...t);return}for(Ge=t,Ge.sort((n,r)=>Ht(n)-Ht(r)),_t=0;_t<Ge.length;_t++)Ge[_t]();Ge=null,_t=0}}const Ht=e=>e.id==null?1/0:e.id;function Ds(e){sr=!1,yn=!0,lr(e),Fe.sort((n,r)=>Ht(n)-Ht(r));const t=Me;try{for(Ke=0;Ke<Fe.length;Ke++){const n=Fe[Ke];n&&n.active!==!1&&Ze(n,null,14)}}finally{Ke=0,Fe.length=0,Us(),yn=!1,ir=null,(Fe.length||$t.length||Lt.length)&&Ds(e)}}const Ks={};function bn(e,t,n){return zs(e,t,n)}function zs(e,t,{immediate:n,deep:r,flush:s,onTrack:i,onTrigger:l}=se){const o=he;let a,u=!1,f=!1;if(_e(e)?(a=()=>e.value,u=!!e._shallow):mt(e)?(a=()=>e,r=!0):V(e)?(f=!0,u=e.some(mt),a=()=>e.map(I=>{if(_e(I))return I.value;if(mt(I))return at(I);if(Y(I))return Ze(I,o,2)})):Y(e)?t?a=()=>Ze(e,o,2):a=()=>{if(!(o&&o.isUnmounted))return p&&p(),Te(e,o,3,[h])}:a=Me,t&&r){const I=a;a=()=>at(I())}let p,h=I=>{p=O.onStop=()=>{Ze(I,o,4)}};if(gn)return h=Me,t?n&&Te(t,o,3,[a(),f?[]:void 0,h]):a(),Me;let C=f?[]:Ks;const k=()=>{if(!!O.active)if(t){const I=O.run();(r||u||(f?I.some((g,m)=>Rt(g,C[m])):Rt(I,C)))&&(p&&p(),Te(t,o,3,[I,C===Ks?void 0:C,h]),C=I)}else O.run()};k.allowRecurse=!!t;let L;s==="sync"?L=k:s==="post"?L=()=>ye(k,o&&o.suspense):L=()=>{!o||o.isMounted?Rl(k):k()};const O=new kn(a,L);return t?n?k():C=O.run():s==="post"?ye(O.run.bind(O),o&&o.suspense):O.run(),()=>{O.stop(),o&&o.scope&&Ar(o.scope.effects,O)}}function Tl(e,t,n){const r=this.proxy,s=pe(e)?e.includes(".")?qs(r,e):()=>r[e]:e.bind(r,r);let i;Y(t)?i=t:(i=t.handler,n=t);const l=he;bt(this);const o=zs(s,i.bind(r),n);return l?bt(l):lt(),o}function qs(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}function at(e,t){if(!de(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),_e(e))at(e.value,t);else if(V(e))for(let n=0;n<e.length;n++)at(e[n],t);else if(Cr(e)||dt(e))e.forEach(n=>{at(n,t)});else if(Rr(e))for(const n in e)at(e[n],t);return e}function Ws(e,t,n){const r=arguments.length;return r===2?de(t)&&!V(t)?fn(t)?we(e,null,[t]):we(e,t):we(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&fn(n)&&(n=[n]),we(e,t,n))}const Ol="3.2.24",Il="http://www.w3.org/2000/svg",wt=typeof document!="undefined"?document:null,Vs=new Map,Ml={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t?wt.createElementNS(Il,e):wt.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>wt.createTextNode(e),createComment:e=>wt.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>wt.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,r){const s=n?n.previousSibling:t.lastChild;let i=Vs.get(e);if(!i){const l=wt.createElement("template");if(l.innerHTML=r?`<svg>${e}</svg>`:e,i=l.content,r){const o=i.firstChild;for(;o.firstChild;)i.appendChild(o.firstChild);i.removeChild(o)}Vs.set(e,i)}return t.insertBefore(i.cloneNode(!0),n),[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function kl(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function $l(e,t,n){const r=e.style,s=pe(n);if(n&&!s){for(const i in n)ar(r,i,n[i]);if(t&&!pe(t))for(const i in t)n[i]==null&&ar(r,i,"")}else{const i=r.display;s?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=i)}}const Ys=/\s*!important$/;function ar(e,t,n){if(V(n))n.forEach(r=>ar(e,t,r));else if(t.startsWith("--"))e.setProperty(t,n);else{const r=Nl(e,t);Ys.test(n)?e.setProperty(ht(r),n.replace(Ys,""),"important"):e[r]=n}}const Zs=["Webkit","Moz","ms"],cr={};function Nl(e,t){const n=cr[t];if(n)return n;let r=$e(t);if(r!=="filter"&&r in e)return cr[t]=r;r=Yt(r);for(let s=0;s<Zs.length;s++){const i=Zs[s]+r;if(i in e)return cr[t]=i}return t}const Gs="http://www.w3.org/1999/xlink";function Ll(e,t,n,r,s){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Gs,t.slice(6,t.length)):e.setAttributeNS(Gs,t,n);else{const i=Si(t);n==null||i&&!xr(n)?e.removeAttribute(t):e.setAttribute(t,i?"":n)}}function Hl(e,t,n,r,s,i,l){if(t==="innerHTML"||t==="textContent"){r&&l(r,s,i),e[t]=n==null?"":n;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const o=n==null?"":n;(e.value!==o||e.tagName==="OPTION")&&(e.value=o),n==null&&e.removeAttribute(t);return}if(n===""||n==null){const o=typeof e[t];if(o==="boolean"){e[t]=xr(n);return}else if(n==null&&o==="string"){e[t]="",e.removeAttribute(t);return}else if(o==="number"){try{e[t]=0}catch{}e.removeAttribute(t);return}}try{e[t]=n}catch{}}let vn=Date.now,Js=!1;if(typeof window!="undefined"){vn()>document.createEvent("Event").timeStamp&&(vn=()=>performance.now());const e=navigator.userAgent.match(/firefox\/(\d+)/i);Js=!!(e&&Number(e[1])<=53)}let ur=0;const Bl=Promise.resolve(),jl=()=>{ur=0},Ul=()=>ur||(Bl.then(jl),ur=vn());function Dl(e,t,n,r){e.addEventListener(t,n,r)}function Kl(e,t,n,r){e.removeEventListener(t,n,r)}function zl(e,t,n,r,s=null){const i=e._vei||(e._vei={}),l=i[t];if(r&&l)l.value=r;else{const[o,a]=ql(t);if(r){const u=i[t]=Wl(r,s);Dl(e,o,u,a)}else l&&(Kl(e,o,l,a),i[t]=void 0)}}const Qs=/(?:Once|Passive|Capture)$/;function ql(e){let t;if(Qs.test(e)){t={};let n;for(;n=e.match(Qs);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[ht(e.slice(2)),t]}function Wl(e,t){const n=r=>{const s=r.timeStamp||vn();(Js||s>=n.attached-1)&&Te(Vl(r,n.value),t,5,[r])};return n.value=e,n.attached=Ul(),n}function Vl(e,t){if(V(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r(s))}else return t}const Xs=/^on[a-z]/,Yl=(e,t,n,r,s=!1,i,l,o,a)=>{t==="class"?kl(e,r,s):t==="style"?$l(e,n,r):zt(t)?Cn(t)||zl(e,t,n,r,l):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Zl(e,t,r,s))?Hl(e,t,r,i,l,o,a):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Ll(e,t,r,s))};function Zl(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&Xs.test(t)&&Y(n)):t==="spellcheck"||t==="draggable"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Xs.test(t)&&pe(n)?!1:t in e}const Gl={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};Io.props;const uc={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Bt(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),Bt(e,!0),r.enter(e)):r.leave(e,()=>{Bt(e,!1)}):Bt(e,t))},beforeUnmount(e,{value:t}){Bt(e,t)}};function Bt(e,t){e.style.display=t?e._vod:"none"}const Jl=ge({patchProp:Yl},Ml);let ei;function Ql(){return ei||(ei=tl(Jl))}const fc=(...e)=>{const t=Ql().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=Xl(r);if(!s)return;const i=t._component;!Y(i)&&!i.render&&!i.template&&(i.template=s.innerHTML),s.innerHTML="";const l=n(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),l},t};function Xl(e){return pe(e)?document.querySelector(e):e}/*!
|
|
2
|
+
* vue-router v4.0.12
|
|
3
|
+
* (c) 2021 Eduardo San Martin Morote
|
|
4
|
+
* @license MIT
|
|
5
|
+
*/const ti=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",xt=e=>ti?Symbol(e):"_vr_"+e,ea=xt("rvlm"),ni=xt("rvd"),fr=xt("r"),ri=xt("rl"),dr=xt("rvl"),Et=typeof window!="undefined";function ta(e){return e.__esModule||ti&&e[Symbol.toStringTag]==="Module"}const ie=Object.assign;function hr(e,t){const n={};for(const r in t){const s=t[r];n[r]=Array.isArray(s)?s.map(e):e(s)}return n}const jt=()=>{},na=/\/$/,ra=e=>e.replace(na,"");function pr(e,t,n="/"){let r,s={},i="",l="";const o=t.indexOf("?"),a=t.indexOf("#",o>-1?o:0);return o>-1&&(r=t.slice(0,o),i=t.slice(o+1,a>-1?a:t.length),s=e(i)),a>-1&&(r=r||t.slice(0,a),l=t.slice(a,t.length)),r=la(r!=null?r:t,n),{fullPath:r+(i&&"?")+i+l,path:r,query:s,hash:l}}function sa(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function si(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function ia(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&At(t.matched[r],n.matched[s])&&ii(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function At(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function ii(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!oa(e[n],t[n]))return!1;return!0}function oa(e,t){return Array.isArray(e)?oi(e,t):Array.isArray(t)?oi(t,e):e===t}function oi(e,t){return Array.isArray(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function la(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let s=n.length-1,i,l;for(i=0;i<r.length;i++)if(l=r[i],!(s===1||l==="."))if(l==="..")s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(i-(i===r.length?1:0)).join("/")}var Ut;(function(e){e.pop="pop",e.push="push"})(Ut||(Ut={}));var Dt;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Dt||(Dt={}));function aa(e){if(!e)if(Et){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),ra(e)}const ca=/^[^#]+#/;function ua(e,t){return e.replace(ca,"#")+t}function fa(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const _n=()=>({left:window.pageXOffset,top:window.pageYOffset});function da(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=fa(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function li(e,t){return(history.state?history.state.position-t:-1)+e}const gr=new Map;function ha(e,t){gr.set(e,t)}function pa(e){const t=gr.get(e);return gr.delete(e),t}let ga=()=>location.protocol+"//"+location.host;function ai(e,t){const{pathname:n,search:r,hash:s}=t,i=e.indexOf("#");if(i>-1){let o=s.includes(e.slice(i))?e.slice(i).length:1,a=s.slice(o);return a[0]!=="/"&&(a="/"+a),si(a,"")}return si(n,e)+r+s}function ma(e,t,n,r){let s=[],i=[],l=null;const o=({state:h})=>{const C=ai(e,location),k=n.value,L=t.value;let O=0;if(h){if(n.value=C,t.value=h,l&&l===k){l=null;return}O=L?h.position-L.position:0}else r(C);s.forEach(I=>{I(n.value,k,{delta:O,type:Ut.pop,direction:O?O>0?Dt.forward:Dt.back:Dt.unknown})})};function a(){l=n.value}function u(h){s.push(h);const C=()=>{const k=s.indexOf(h);k>-1&&s.splice(k,1)};return i.push(C),C}function f(){const{history:h}=window;!h.state||h.replaceState(ie({},h.state,{scroll:_n()}),"")}function p(){for(const h of i)h();i=[],window.removeEventListener("popstate",o),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",o),window.addEventListener("beforeunload",f),{pauseListeners:a,listen:u,destroy:p}}function ci(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?_n():null}}function ya(e){const{history:t,location:n}=window,r={value:ai(e,n)},s={value:t.state};s.value||i(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function i(a,u,f){const p=e.indexOf("#"),h=p>-1?(n.host&&document.querySelector("base")?e:e.slice(p))+a:ga()+e+a;try{t[f?"replaceState":"pushState"](u,"",h),s.value=u}catch(C){console.error(C),n[f?"replace":"assign"](h)}}function l(a,u){const f=ie({},t.state,ci(s.value.back,a,s.value.forward,!0),u,{position:s.value.position});i(a,f,!0),r.value=a}function o(a,u){const f=ie({},s.value,t.state,{forward:a,scroll:_n()});i(f.current,f,!0);const p=ie({},ci(r.value,a,null),{position:f.position+1},u);i(a,p,!1),r.value=a}return{location:r,state:s,push:o,replace:l}}function ba(e){e=aa(e);const t=ya(e),n=ma(e,t.state,t.location,t.replace);function r(i,l=!0){l||n.pauseListeners(),history.go(i)}const s=ie({location:"",base:e,go:r,createHref:ua.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function dc(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),ba(e)}function va(e){return typeof e=="string"||e&&typeof e=="object"}function ui(e){return typeof e=="string"||typeof e=="symbol"}const Je={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},fi=xt("nf");var di;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(di||(di={}));function Ct(e,t){return ie(new Error,{type:e,[fi]:!0},t)}function ct(e,t){return e instanceof Error&&fi in e&&(t==null||!!(e.type&t))}const hi="[^/]+?",_a={sensitive:!1,strict:!1,start:!0,end:!0},wa=/[.+*?^${}()[\]/\\]/g;function xa(e,t){const n=ie({},_a,t),r=[];let s=n.start?"^":"";const i=[];for(const u of e){const f=u.length?[]:[90];n.strict&&!u.length&&(s+="/");for(let p=0;p<u.length;p++){const h=u[p];let C=40+(n.sensitive?.25:0);if(h.type===0)p||(s+="/"),s+=h.value.replace(wa,"\\$&"),C+=40;else if(h.type===1){const{value:k,repeatable:L,optional:O,regexp:I}=h;i.push({name:k,repeatable:L,optional:O});const g=I||hi;if(g!==hi){C+=10;try{new RegExp(`(${g})`)}catch(b){throw new Error(`Invalid custom RegExp for param "${k}" (${g}): `+b.message)}}let m=L?`((?:${g})(?:/(?:${g}))*)`:`(${g})`;p||(m=O&&u.length<2?`(?:/${m})`:"/"+m),O&&(m+="?"),s+=m,C+=20,O&&(C+=-8),L&&(C+=-20),g===".*"&&(C+=-50)}f.push(C)}r.push(f)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=.7000000000000001}n.strict||(s+="/?"),n.end?s+="$":n.strict&&(s+="(?:/|$)");const l=new RegExp(s,n.sensitive?"":"i");function o(u){const f=u.match(l),p={};if(!f)return null;for(let h=1;h<f.length;h++){const C=f[h]||"",k=i[h-1];p[k.name]=C&&k.repeatable?C.split("/"):C}return p}function a(u){let f="",p=!1;for(const h of e){(!p||!f.endsWith("/"))&&(f+="/"),p=!1;for(const C of h)if(C.type===0)f+=C.value;else if(C.type===1){const{value:k,repeatable:L,optional:O}=C,I=k in u?u[k]:"";if(Array.isArray(I)&&!L)throw new Error(`Provided param "${k}" is an array but it is not repeatable (* or + modifiers)`);const g=Array.isArray(I)?I.join("/"):I;if(!g)if(O)h.length<2&&(f.endsWith("/")?f=f.slice(0,-1):p=!0);else throw new Error(`Missing required param "${k}"`);f+=g}}return f}return{re:l,score:r,keys:i,parse:o,stringify:a}}function Ea(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function Aa(e,t){let n=0;const r=e.score,s=t.score;for(;n<r.length&&n<s.length;){const i=Ea(r[n],s[n]);if(i)return i;n++}return s.length-r.length}const Ca={type:0,value:""},Fa=/[a-zA-Z0-9_]/;function Pa(e){if(!e)return[[]];if(e==="/")return[[Ca]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(C){throw new Error(`ERR (${n})/"${u}": ${C}`)}let n=0,r=n;const s=[];let i;function l(){i&&s.push(i),i=[]}let o=0,a,u="",f="";function p(){!u||(n===0?i.push({type:0,value:u}):n===1||n===2||n===3?(i.length>1&&(a==="*"||a==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:f,repeatable:a==="*"||a==="+",optional:a==="*"||a==="?"})):t("Invalid state to consume buffer"),u="")}function h(){u+=a}for(;o<e.length;){if(a=e[o++],a==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:a==="/"?(u&&p(),l()):a===":"?(p(),n=1):h();break;case 4:h(),n=r;break;case 1:a==="("?n=2:Fa.test(a)?h():(p(),n=0,a!=="*"&&a!=="?"&&a!=="+"&&o--);break;case 2:a===")"?f[f.length-1]=="\\"?f=f.slice(0,-1)+a:n=3:f+=a;break;case 3:p(),n=0,a!=="*"&&a!=="?"&&a!=="+"&&o--,f="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),p(),l(),s}function Ra(e,t,n){const r=xa(Pa(e.path),n),s=ie(r,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function Sa(e,t){const n=[],r=new Map;t=gi({strict:!1,end:!0,sensitive:!1},t);function s(f){return r.get(f)}function i(f,p,h){const C=!h,k=Oa(f);k.aliasOf=h&&h.record;const L=gi(t,f),O=[k];if("alias"in f){const m=typeof f.alias=="string"?[f.alias]:f.alias;for(const b of m)O.push(ie({},k,{components:h?h.record.components:k.components,path:b,aliasOf:h?h.record:k}))}let I,g;for(const m of O){const{path:b}=m;if(p&&b[0]!=="/"){const E=p.record.path,x=E[E.length-1]==="/"?"":"/";m.path=p.record.path+(b&&x+b)}if(I=Ra(m,p,L),h?h.alias.push(I):(g=g||I,g!==I&&g.alias.push(I),C&&f.name&&!pi(I)&&l(f.name)),"children"in k){const E=k.children;for(let x=0;x<E.length;x++)i(E[x],I,h&&h.children[x])}h=h||I,a(I)}return g?()=>{l(g)}:jt}function l(f){if(ui(f)){const p=r.get(f);p&&(r.delete(f),n.splice(n.indexOf(p),1),p.children.forEach(l),p.alias.forEach(l))}else{const p=n.indexOf(f);p>-1&&(n.splice(p,1),f.record.name&&r.delete(f.record.name),f.children.forEach(l),f.alias.forEach(l))}}function o(){return n}function a(f){let p=0;for(;p<n.length&&Aa(f,n[p])>=0;)p++;n.splice(p,0,f),f.record.name&&!pi(f)&&r.set(f.record.name,f)}function u(f,p){let h,C={},k,L;if("name"in f&&f.name){if(h=r.get(f.name),!h)throw Ct(1,{location:f});L=h.record.name,C=ie(Ta(p.params,h.keys.filter(g=>!g.optional).map(g=>g.name)),f.params),k=h.stringify(C)}else if("path"in f)k=f.path,h=n.find(g=>g.re.test(k)),h&&(C=h.parse(k),L=h.record.name);else{if(h=p.name?r.get(p.name):n.find(g=>g.re.test(p.path)),!h)throw Ct(1,{location:f,currentLocation:p});L=h.record.name,C=ie({},p.params,f.params),k=h.stringify(C)}const O=[];let I=h;for(;I;)O.unshift(I.record),I=I.parent;return{name:L,path:k,params:C,matched:O,meta:Ma(O)}}return e.forEach(f=>i(f)),{addRoute:i,resolve:u,removeRoute:l,getRoutes:o,getRecordMatcher:s}}function Ta(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Oa(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Ia(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||{}:{default:e.component}}}function Ia(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="boolean"?n:n[r];return t}function pi(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Ma(e){return e.reduce((t,n)=>ie(t,n.meta),{})}function gi(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}const mi=/#/g,ka=/&/g,$a=/\//g,Na=/=/g,La=/\?/g,yi=/\+/g,Ha=/%5B/g,Ba=/%5D/g,bi=/%5E/g,ja=/%60/g,vi=/%7B/g,Ua=/%7C/g,_i=/%7D/g,Da=/%20/g;function mr(e){return encodeURI(""+e).replace(Ua,"|").replace(Ha,"[").replace(Ba,"]")}function Ka(e){return mr(e).replace(vi,"{").replace(_i,"}").replace(bi,"^")}function yr(e){return mr(e).replace(yi,"%2B").replace(Da,"+").replace(mi,"%23").replace(ka,"%26").replace(ja,"`").replace(vi,"{").replace(_i,"}").replace(bi,"^")}function za(e){return yr(e).replace(Na,"%3D")}function qa(e){return mr(e).replace(mi,"%23").replace(La,"%3F")}function Wa(e){return e==null?"":qa(e).replace($a,"%2F")}function wn(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function Va(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<r.length;++s){const i=r[s].replace(yi," "),l=i.indexOf("="),o=wn(l<0?i:i.slice(0,l)),a=l<0?null:wn(i.slice(l+1));if(o in t){let u=t[o];Array.isArray(u)||(u=t[o]=[u]),u.push(a)}else t[o]=a}return t}function wi(e){let t="";for(let n in e){const r=e[n];if(n=za(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Array.isArray(r)?r.map(i=>i&&yr(i)):[r&&yr(r)]).forEach(i=>{i!==void 0&&(t+=(t.length?"&":"")+n,i!=null&&(t+="="+i))})}return t}function Ya(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Array.isArray(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}function Kt(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function Qe(e,t,n,r,s){const i=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((l,o)=>{const a=p=>{p===!1?o(Ct(4,{from:n,to:t})):p instanceof Error?o(p):va(p)?o(Ct(2,{from:t,to:p})):(i&&r.enterCallbacks[s]===i&&typeof p=="function"&&i.push(p),l())},u=e.call(r&&r.instances[s],t,n,a);let f=Promise.resolve(u);e.length<3&&(f=f.then(a)),f.catch(p=>o(p))})}function br(e,t,n,r){const s=[];for(const i of e)for(const l in i.components){let o=i.components[l];if(!(t!=="beforeRouteEnter"&&!i.instances[l]))if(Za(o)){const u=(o.__vccOpts||o)[t];u&&s.push(Qe(u,n,r,i,l))}else{let a=o();s.push(()=>a.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${l}" at "${i.path}"`));const f=ta(u)?u.default:u;i.components[l]=f;const h=(f.__vccOpts||f)[t];return h&&Qe(h,n,r,i,l)()}))}}return s}function Za(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function xi(e){const t=Ve(fr),n=Ve(ri),r=Ne(()=>t.resolve(Mt(e.to))),s=Ne(()=>{const{matched:a}=r.value,{length:u}=a,f=a[u-1],p=n.matched;if(!f||!p.length)return-1;const h=p.findIndex(At.bind(null,f));if(h>-1)return h;const C=Ei(a[u-2]);return u>1&&Ei(f)===C&&p[p.length-1].path!==C?p.findIndex(At.bind(null,a[u-2])):h}),i=Ne(()=>s.value>-1&&Xa(n.params,r.value.params)),l=Ne(()=>s.value>-1&&s.value===n.matched.length-1&&ii(n.params,r.value.params));function o(a={}){return Qa(a)?t[Mt(e.replace)?"replace":"push"](Mt(e.to)).catch(jt):Promise.resolve()}return{route:r,href:Ne(()=>r.value.href),isActive:i,isExactActive:l,navigate:o}}const Ga=is({name:"RouterLink",props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:xi,setup(e,{slots:t}){const n=Ot(xi(e)),{options:r}=Ve(fr),s=Ne(()=>({[Ai(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Ai(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const i=t.default&&t.default(n);return e.custom?i:Ws("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},i)}}}),Ja=Ga;function Qa(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Xa(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!Array.isArray(s)||s.length!==r.length||r.some((i,l)=>i!==s[l]))return!1}return!0}function Ei(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Ai=(e,t,n)=>e!=null?e:t!=null?t:n,ec=is({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},setup(e,{attrs:t,slots:n}){const r=Ve(dr),s=Ne(()=>e.route||r.value),i=Ve(ni,0),l=Ne(()=>s.value.matched[i]);sn(ni,i+1),sn(ea,l),sn(dr,s);const o=yo();return bn(()=>[o.value,l.value,e.name],([a,u,f],[p,h,C])=>{u&&(u.instances[f]=a,h&&h!==u&&a&&a===p&&(u.leaveGuards.size||(u.leaveGuards=h.leaveGuards),u.updateGuards.size||(u.updateGuards=h.updateGuards))),a&&u&&(!h||!At(u,h)||!p)&&(u.enterCallbacks[f]||[]).forEach(k=>k(a))},{flush:"post"}),()=>{const a=s.value,u=l.value,f=u&&u.components[e.name],p=e.name;if(!f)return Ci(n.default,{Component:f,route:a});const h=u.props[e.name],C=h?h===!0?a.params:typeof h=="function"?h(a):h:null,L=Ws(f,ie({},C,t,{onVnodeUnmounted:O=>{O.component.isUnmounted&&(u.instances[p]=null)},ref:o}));return Ci(n.default,{Component:L,route:a})||L}}});function Ci(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const tc=ec;function hc(e){const t=Sa(e.routes,e),n=e.parseQuery||Va,r=e.stringifyQuery||wi,s=e.history,i=Kt(),l=Kt(),o=Kt(),a=bo(Je);let u=Je;Et&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=hr.bind(null,v=>""+v),p=hr.bind(null,Wa),h=hr.bind(null,wn);function C(v,N){let R,B;return ui(v)?(R=t.getRecordMatcher(v),B=N):B=v,t.addRoute(B,R)}function k(v){const N=t.getRecordMatcher(v);N&&t.removeRoute(N)}function L(){return t.getRoutes().map(v=>v.record)}function O(v){return!!t.getRecordMatcher(v)}function I(v,N){if(N=ie({},N||a.value),typeof v=="string"){const W=pr(n,v,N.path),c=t.resolve({path:W.path},N),d=s.createHref(W.fullPath);return ie(W,c,{params:h(c.params),hash:wn(W.hash),redirectedFrom:void 0,href:d})}let R;if("path"in v)R=ie({},v,{path:pr(n,v.path,N.path).path});else{const W=ie({},v.params);for(const c in W)W[c]==null&&delete W[c];R=ie({},v,{params:p(v.params)}),N.params=p(N.params)}const B=t.resolve(R,N),ee=v.hash||"";B.params=f(h(B.params));const te=sa(r,ie({},v,{hash:Ka(ee),path:B.path})),q=s.createHref(te);return ie({fullPath:te,hash:ee,query:r===wi?Ya(v.query):v.query||{}},B,{redirectedFrom:void 0,href:q})}function g(v){return typeof v=="string"?pr(n,v,a.value.path):ie({},v)}function m(v,N){if(u!==v)return Ct(8,{from:N,to:v})}function b(v){return T(v)}function E(v){return b(ie(g(v),{replace:!0}))}function x(v){const N=v.matched[v.matched.length-1];if(N&&N.redirect){const{redirect:R}=N;let B=typeof R=="function"?R(v):R;return typeof B=="string"&&(B=B.includes("?")||B.includes("#")?B=g(B):{path:B},B.params={}),ie({query:v.query,hash:v.hash,params:v.params},B)}}function T(v,N){const R=u=I(v),B=a.value,ee=v.state,te=v.force,q=v.replace===!0,W=x(R);if(W)return T(ie(g(W),{state:ee,force:te,replace:q}),N||R);const c=R;c.redirectedFrom=N;let d;return!te&&ia(r,B,R)&&(d=Ct(16,{to:c,from:B}),xe(B,B,!0,!1)),(d?Promise.resolve(d):$(c,B)).catch(y=>ct(y)?y:ne(y,c,B)).then(y=>{if(y){if(ct(y,2))return T(ie(g(y.to),{state:ee,force:te,replace:q}),N||c)}else y=Z(c,B,!0,q,ee);return Q(c,B,y),y})}function D(v,N){const R=m(v,N);return R?Promise.reject(R):Promise.resolve()}function $(v,N){let R;const[B,ee,te]=nc(v,N);R=br(B.reverse(),"beforeRouteLeave",v,N);for(const W of B)W.leaveGuards.forEach(c=>{R.push(Qe(c,v,N))});const q=D.bind(null,v,N);return R.push(q),Ft(R).then(()=>{R=[];for(const W of i.list())R.push(Qe(W,v,N));return R.push(q),Ft(R)}).then(()=>{R=br(ee,"beforeRouteUpdate",v,N);for(const W of ee)W.updateGuards.forEach(c=>{R.push(Qe(c,v,N))});return R.push(q),Ft(R)}).then(()=>{R=[];for(const W of v.matched)if(W.beforeEnter&&!N.matched.includes(W))if(Array.isArray(W.beforeEnter))for(const c of W.beforeEnter)R.push(Qe(c,v,N));else R.push(Qe(W.beforeEnter,v,N));return R.push(q),Ft(R)}).then(()=>(v.matched.forEach(W=>W.enterCallbacks={}),R=br(te,"beforeRouteEnter",v,N),R.push(q),Ft(R))).then(()=>{R=[];for(const W of l.list())R.push(Qe(W,v,N));return R.push(q),Ft(R)}).catch(W=>ct(W,8)?W:Promise.reject(W))}function Q(v,N,R){for(const B of o.list())B(v,N,R)}function Z(v,N,R,B,ee){const te=m(v,N);if(te)return te;const q=N===Je,W=Et?history.state:{};R&&(B||q?s.replace(v.fullPath,ie({scroll:q&&W&&W.scroll},ee)):s.push(v.fullPath,ee)),a.value=v,xe(v,N,R,q),ce()}let le;function Oe(){le=s.listen((v,N,R)=>{const B=I(v),ee=x(B);if(ee){T(ie(ee,{replace:!0}),B).catch(jt);return}u=B;const te=a.value;Et&&ha(li(te.fullPath,R.delta),_n()),$(B,te).catch(q=>ct(q,4|8)?q:ct(q,2)?(T(q.to,B).then(W=>{ct(W,4|16)&&!R.delta&&R.type===Ut.pop&&s.go(-1,!1)}).catch(jt),Promise.reject()):(R.delta&&s.go(-R.delta,!1),ne(q,B,te))).then(q=>{q=q||Z(B,te,!1),q&&(R.delta?s.go(-R.delta,!1):R.type===Ut.pop&&ct(q,4|16)&&s.go(-1,!1)),Q(B,te,q)}).catch(jt)})}let Be=Kt(),ze=Kt(),ue;function ne(v,N,R){ce(v);const B=ze.list();return B.length?B.forEach(ee=>ee(v,N,R)):console.error(v),Promise.reject(v)}function K(){return ue&&a.value!==Je?Promise.resolve():new Promise((v,N)=>{Be.add([v,N])})}function ce(v){ue||(ue=!0,Oe(),Be.list().forEach(([N,R])=>v?R(v):N()),Be.reset())}function xe(v,N,R,B){const{scrollBehavior:ee}=e;if(!Et||!ee)return Promise.resolve();const te=!R&&pa(li(v.fullPath,0))||(B||!R)&&history.state&&history.state.scroll||null;return Ls().then(()=>ee(v,N,te)).then(q=>q&&da(q)).catch(q=>ne(q,v,N))}const be=v=>s.go(v);let fe;const ve=new Set;return{currentRoute:a,addRoute:C,removeRoute:k,hasRoute:O,getRoutes:L,resolve:I,options:e,push:b,replace:E,go:be,back:()=>be(-1),forward:()=>be(1),beforeEach:i.add,beforeResolve:l.add,afterEach:o.add,onError:ze.add,isReady:K,install(v){const N=this;v.component("RouterLink",Ja),v.component("RouterView",tc),v.config.globalProperties.$router=N,Object.defineProperty(v.config.globalProperties,"$route",{enumerable:!0,get:()=>Mt(a)}),Et&&!fe&&a.value===Je&&(fe=!0,b(s.location).catch(ee=>{}));const R={};for(const ee in Je)R[ee]=Ne(()=>a.value[ee]);v.provide(fr,N),v.provide(ri,Ot(R)),v.provide(dr,a);const B=v.unmount;ve.add(v),v.unmount=function(){ve.delete(v),ve.size<1&&(u=Je,le&&le(),a.value=Je,fe=!1,ue=!1),B()}}}}function Ft(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function nc(e,t){const n=[],r=[],s=[],i=Math.max(t.matched.length,e.matched.length);for(let l=0;l<i;l++){const o=t.matched[l];o&&(e.matched.find(u=>At(u,o))?r.push(o):n.push(o));const a=e.matched[l];a&&(t.matched.find(u=>At(u,a))||s.push(a))}return[n,r,s]}var Fi=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{},Pi={exports:{}};(function(e){var t=typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{};/**
|
|
6
|
+
* Prism: Lightweight, robust, elegant syntax highlighting
|
|
7
|
+
*
|
|
8
|
+
* @license MIT <https://opensource.org/licenses/MIT>
|
|
9
|
+
* @author Lea Verou <https://lea.verou.me>
|
|
10
|
+
* @namespace
|
|
11
|
+
* @public
|
|
12
|
+
*/var n=function(r){var s=/\blang(?:uage)?-([\w-]+)\b/i,i=0,l={},o={manual:r.Prism&&r.Prism.manual,disableWorkerMessageHandler:r.Prism&&r.Prism.disableWorkerMessageHandler,util:{encode:function g(m){return m instanceof a?new a(m.type,g(m.content),m.alias):Array.isArray(m)?m.map(g):m.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(g){return Object.prototype.toString.call(g).slice(8,-1)},objId:function(g){return g.__id||Object.defineProperty(g,"__id",{value:++i}),g.__id},clone:function g(m,b){b=b||{};var E,x;switch(o.util.type(m)){case"Object":if(x=o.util.objId(m),b[x])return b[x];E={},b[x]=E;for(var T in m)m.hasOwnProperty(T)&&(E[T]=g(m[T],b));return E;case"Array":return x=o.util.objId(m),b[x]?b[x]:(E=[],b[x]=E,m.forEach(function(D,$){E[$]=g(D,b)}),E);default:return m}},getLanguage:function(g){for(;g&&!s.test(g.className);)g=g.parentElement;return g?(g.className.match(s)||[,"none"])[1].toLowerCase():"none"},currentScript:function(){if(typeof document=="undefined")return null;if("currentScript"in document&&1<2)return document.currentScript;try{throw new Error}catch(E){var g=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(E.stack)||[])[1];if(g){var m=document.getElementsByTagName("script");for(var b in m)if(m[b].src==g)return m[b]}return null}},isActive:function(g,m,b){for(var E="no-"+m;g;){var x=g.classList;if(x.contains(m))return!0;if(x.contains(E))return!1;g=g.parentElement}return!!b}},languages:{plain:l,plaintext:l,text:l,txt:l,extend:function(g,m){var b=o.util.clone(o.languages[g]);for(var E in m)b[E]=m[E];return b},insertBefore:function(g,m,b,E){E=E||o.languages;var x=E[g],T={};for(var D in x)if(x.hasOwnProperty(D)){if(D==m)for(var $ in b)b.hasOwnProperty($)&&(T[$]=b[$]);b.hasOwnProperty(D)||(T[D]=x[D])}var Q=E[g];return E[g]=T,o.languages.DFS(o.languages,function(Z,le){le===Q&&Z!=g&&(this[Z]=T)}),T},DFS:function g(m,b,E,x){x=x||{};var T=o.util.objId;for(var D in m)if(m.hasOwnProperty(D)){b.call(m,D,m[D],E||D);var $=m[D],Q=o.util.type($);Q==="Object"&&!x[T($)]?(x[T($)]=!0,g($,b,null,x)):Q==="Array"&&!x[T($)]&&(x[T($)]=!0,g($,b,D,x))}}},plugins:{},highlightAll:function(g,m){o.highlightAllUnder(document,g,m)},highlightAllUnder:function(g,m,b){var E={callback:b,container:g,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",E),E.elements=Array.prototype.slice.apply(E.container.querySelectorAll(E.selector)),o.hooks.run("before-all-elements-highlight",E);for(var x=0,T;T=E.elements[x++];)o.highlightElement(T,m===!0,E.callback)},highlightElement:function(g,m,b){var E=o.util.getLanguage(g),x=o.languages[E];g.className=g.className.replace(s,"").replace(/\s+/g," ")+" language-"+E;var T=g.parentElement;T&&T.nodeName.toLowerCase()==="pre"&&(T.className=T.className.replace(s,"").replace(/\s+/g," ")+" language-"+E);var D=g.textContent,$={element:g,language:E,grammar:x,code:D};function Q(le){$.highlightedCode=le,o.hooks.run("before-insert",$),$.element.innerHTML=$.highlightedCode,o.hooks.run("after-highlight",$),o.hooks.run("complete",$),b&&b.call($.element)}if(o.hooks.run("before-sanity-check",$),T=$.element.parentElement,T&&T.nodeName.toLowerCase()==="pre"&&!T.hasAttribute("tabindex")&&T.setAttribute("tabindex","0"),!$.code){o.hooks.run("complete",$),b&&b.call($.element);return}if(o.hooks.run("before-highlight",$),!$.grammar){Q(o.util.encode($.code));return}if(m&&r.Worker){var Z=new Worker(o.filename);Z.onmessage=function(le){Q(le.data)},Z.postMessage(JSON.stringify({language:$.language,code:$.code,immediateClose:!0}))}else Q(o.highlight($.code,$.grammar,$.language))},highlight:function(g,m,b){var E={code:g,grammar:m,language:b};return o.hooks.run("before-tokenize",E),E.tokens=o.tokenize(E.code,E.grammar),o.hooks.run("after-tokenize",E),a.stringify(o.util.encode(E.tokens),E.language)},tokenize:function(g,m){var b=m.rest;if(b){for(var E in b)m[E]=b[E];delete m.rest}var x=new p;return h(x,x.head,g),f(g,x,m,x.head,0),k(x)},hooks:{all:{},add:function(g,m){var b=o.hooks.all;b[g]=b[g]||[],b[g].push(m)},run:function(g,m){var b=o.hooks.all[g];if(!(!b||!b.length))for(var E=0,x;x=b[E++];)x(m)}},Token:a};r.Prism=o;function a(g,m,b,E){this.type=g,this.content=m,this.alias=b,this.length=(E||"").length|0}a.stringify=function g(m,b){if(typeof m=="string")return m;if(Array.isArray(m)){var E="";return m.forEach(function(Q){E+=g(Q,b)}),E}var x={type:m.type,content:g(m.content,b),tag:"span",classes:["token",m.type],attributes:{},language:b},T=m.alias;T&&(Array.isArray(T)?Array.prototype.push.apply(x.classes,T):x.classes.push(T)),o.hooks.run("wrap",x);var D="";for(var $ in x.attributes)D+=" "+$+'="'+(x.attributes[$]||"").replace(/"/g,""")+'"';return"<"+x.tag+' class="'+x.classes.join(" ")+'"'+D+">"+x.content+"</"+x.tag+">"};function u(g,m,b,E){g.lastIndex=m;var x=g.exec(b);if(x&&E&&x[1]){var T=x[1].length;x.index+=T,x[0]=x[0].slice(T)}return x}function f(g,m,b,E,x,T){for(var D in b)if(!(!b.hasOwnProperty(D)||!b[D])){var $=b[D];$=Array.isArray($)?$:[$];for(var Q=0;Q<$.length;++Q){if(T&&T.cause==D+","+Q)return;var Z=$[Q],le=Z.inside,Oe=!!Z.lookbehind,Be=!!Z.greedy,ze=Z.alias;if(Be&&!Z.pattern.global){var ue=Z.pattern.toString().match(/[imsuy]*$/)[0];Z.pattern=RegExp(Z.pattern.source,ue+"g")}for(var ne=Z.pattern||Z,K=E.next,ce=x;K!==m.tail&&!(T&&ce>=T.reach);ce+=K.value.length,K=K.next){var xe=K.value;if(m.length>g.length)return;if(!(xe instanceof a)){var be=1,fe;if(Be){if(fe=u(ne,ce,g,Oe),!fe)break;var N=fe.index,ve=fe.index+fe[0].length,Pe=ce;for(Pe+=K.value.length;N>=Pe;)K=K.next,Pe+=K.value.length;if(Pe-=K.value.length,ce=Pe,K.value instanceof a)continue;for(var v=K;v!==m.tail&&(Pe<ve||typeof v.value=="string");v=v.next)be++,Pe+=v.value.length;be--,xe=g.slice(ce,Pe),fe.index-=ce}else if(fe=u(ne,0,xe,Oe),!fe)continue;var N=fe.index,R=fe[0],B=xe.slice(0,N),ee=xe.slice(N+R.length),te=ce+xe.length;T&&te>T.reach&&(T.reach=te);var q=K.prev;B&&(q=h(m,q,B),ce+=B.length),C(m,q,be);var W=new a(D,le?o.tokenize(R,le):R,ze,R);if(K=h(m,q,W),ee&&h(m,K,ee),be>1){var c={cause:D+","+Q,reach:te};f(g,m,b,K.prev,ce,c),T&&c.reach>T.reach&&(T.reach=c.reach)}}}}}}function p(){var g={value:null,prev:null,next:null},m={value:null,prev:g,next:null};g.next=m,this.head=g,this.tail=m,this.length=0}function h(g,m,b){var E=m.next,x={value:b,prev:m,next:E};return m.next=x,E.prev=x,g.length++,x}function C(g,m,b){for(var E=m.next,x=0;x<b&&E!==g.tail;x++)E=E.next;m.next=E,E.prev=m,g.length-=x}function k(g){for(var m=[],b=g.head.next;b!==g.tail;)m.push(b.value),b=b.next;return m}if(!r.document)return r.addEventListener&&(o.disableWorkerMessageHandler||r.addEventListener("message",function(g){var m=JSON.parse(g.data),b=m.language,E=m.code,x=m.immediateClose;r.postMessage(o.highlight(E,o.languages[b],b)),x&&r.close()},!1)),o;var L=o.util.currentScript();L&&(o.filename=L.src,L.hasAttribute("data-manual")&&(o.manual=!0));function O(){o.manual||o.highlightAll()}if(!o.manual){var I=document.readyState;I==="loading"||I==="interactive"&&L&&L.defer?document.addEventListener("DOMContentLoaded",O):window.requestAnimationFrame?window.requestAnimationFrame(O):window.setTimeout(O,16)}return o}(t);e.exports&&(e.exports=n),typeof Fi!="undefined"&&(Fi.Prism=n),n.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},n.languages.markup.tag.inside["attr-value"].inside.entity=n.languages.markup.entity,n.languages.markup.doctype.inside["internal-subset"].inside=n.languages.markup,n.hooks.add("wrap",function(r){r.type==="entity"&&(r.attributes.title=r.content.replace(/&/,"&"))}),Object.defineProperty(n.languages.markup.tag,"addInlined",{value:function(s,i){var l={};l["language-"+i]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:n.languages[i]},l.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:l}};o["language-"+i]={pattern:/[\s\S]+/,inside:n.languages[i]};var a={};a[s]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return s}),"i"),lookbehind:!0,greedy:!0,inside:o},n.languages.insertBefore("markup","cdata",a)}}),Object.defineProperty(n.languages.markup.tag,"addAttribute",{value:function(r,s){n.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+r+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[s,"language-"+s],inside:n.languages[s]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),n.languages.html=n.languages.markup,n.languages.mathml=n.languages.markup,n.languages.svg=n.languages.markup,n.languages.xml=n.languages.extend("markup",{}),n.languages.ssml=n.languages.xml,n.languages.atom=n.languages.xml,n.languages.rss=n.languages.xml,function(r){var s=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;r.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+s.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+s.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+s.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:s,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},r.languages.css.atrule.inside.rest=r.languages.css;var i=r.languages.markup;i&&(i.tag.addInlined("style","css"),i.tag.addAttribute("style","css"))}(n),n.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|interface|extends|implements|trait|instanceof|new)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:if|else|while|do|for|return|in|instanceof|function|new|try|throw|catch|finally|null|break|continue)\b/,boolean:/\b(?:true|false)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/},n.languages.javascript=n.languages.extend("clike",{"class-name":[n.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:prototype|constructor))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:/\b(?:(?:0[xX](?:[\dA-Fa-f](?:_[\dA-Fa-f])?)+|0[bB](?:[01](?:_[01])?)+|0[oO](?:[0-7](?:_[0-7])?)+)n?|(?:\d(?:_\d)?)+n|NaN|Infinity)\b|(?:\b(?:\d(?:_\d)?)+\.?(?:\d(?:_\d)?)*|\B\.(?:\d(?:_\d)?)+)(?:[Ee][+-]?(?:\d(?:_\d)?)+)?/,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),n.languages.javascript["class-name"][0].pattern=/(\b(?:class|interface|extends|implements|instanceof|new)\s+)[\w.\\]+/,n.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:n.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:n.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:n.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:n.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:n.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),n.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:n.languages.javascript}},string:/[\s\S]+/}}}),n.languages.markup&&(n.languages.markup.tag.addInlined("script","javascript"),n.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),n.languages.js=n.languages.javascript,function(){if(typeof n=="undefined"||typeof document=="undefined")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var r="Loading\u2026",s=function(L,O){return"\u2716 Error "+L+" while fetching file: "+O},i="\u2716 Error: File does not exist or is empty",l={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},o="data-src-status",a="loading",u="loaded",f="failed",p="pre[data-src]:not(["+o+'="'+u+'"]):not(['+o+'="'+a+'"])',h=/\blang(?:uage)?-([\w-]+)\b/i;function C(L,O){var I=L.className;I=I.replace(h," ")+" language-"+O,L.className=I.replace(/\s+/g," ").trim()}n.hooks.add("before-highlightall",function(L){L.selector+=", "+p}),n.hooks.add("before-sanity-check",function(L){var O=L.element;if(O.matches(p)){L.code="",O.setAttribute(o,a);var I=O.appendChild(document.createElement("CODE"));I.textContent=r;var g=O.getAttribute("data-src"),m=L.language;if(m==="none"){var b=(/\.(\w+)$/.exec(g)||[,"none"])[1];m=l[b]||b}C(I,m),C(O,m);var E=n.plugins.autoloader;E&&E.loadLanguages(m);var x=new XMLHttpRequest;x.open("GET",g,!0),x.onreadystatechange=function(){x.readyState==4&&(x.status<400&&x.responseText?(O.setAttribute(o,u),I.textContent=x.responseText,n.highlightElement(I)):(O.setAttribute(o,f),x.status>=400?I.textContent=s(x.status,x.statusText):I.textContent=i))},x.send(null)}}),n.plugins.fileHighlight={highlight:function(O){for(var I=(O||document).querySelectorAll(p),g=0,m;m=I[g++];)n.highlightElement(m)}};var k=!1;n.fileHighlight=function(){k||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),k=!0),n.plugins.fileHighlight.highlight.apply(this,arguments)}}()})(Pi);var pc=Pi.exports;export{Se as F,pc as P,ic as a,Ts as b,oc as c,ac as d,we as e,cl as f,dl as g,dc as h,hc as i,is as j,cc as k,sc as l,fc as m,lc as n,ll as o,Ot as r,rc as t,Mt as u,uc as v,Eo as w};
|
package/docs/index.html
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" href="/favicon.ico" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<title>Vite App</title>
|
|
8
|
+
<script type="module" crossorigin src="/MY-Kit/assets/index.55b9c1a5.js"></script>
|
|
9
|
+
<link rel="modulepreload" href="/MY-Kit/assets/vendor.234e3e3c.js">
|
|
10
|
+
<link rel="stylesheet" href="/MY-Kit/assets/index.f005ac77.css">
|
|
11
|
+
</head>
|
|
12
|
+
<body>
|
|
13
|
+
<div id="app"></div>
|
|
14
|
+
|
|
15
|
+
</body>
|
|
16
|
+
</html>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<my-button @click="onClick(1)">第一个</my-button>
|
|
4
|
+
<my-button @click="onClick(2)">第二个</my-button>
|
|
5
|
+
<my-button @click="onClick(3)">第三个</my-button>
|
|
6
|
+
</div>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<script setup>
|
|
10
|
+
const onClick = (num) => { console.log(`我是第 ${num} 个自定义按钮`) }
|
|
11
|
+
</script>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<button class="my-button" @click="$emit('click', $event)">
|
|
3
|
+
<slot></slot>
|
|
4
|
+
</button>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script lang="ts" setup>
|
|
8
|
+
defineEmits(['click'])
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<style scoped lang="less">
|
|
12
|
+
.my-button {
|
|
13
|
+
appearance: none;
|
|
14
|
+
padding: 5px 10px;
|
|
15
|
+
background: lightskyblue;
|
|
16
|
+
border: none;
|
|
17
|
+
border-radius: 4px;
|
|
18
|
+
color: #fff;
|
|
19
|
+
&:active {
|
|
20
|
+
background: rgb(92, 185, 243);
|
|
21
|
+
}
|
|
22
|
+
&:not(:last-child) {
|
|
23
|
+
margin-right: 15px;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
</style>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<!-- 加载 demo 组件 start -->
|
|
2
|
+
<script setup>
|
|
3
|
+
import demo from './demo.vue'
|
|
4
|
+
</script>
|
|
5
|
+
<!-- 加载 demo 组件 end -->
|
|
6
|
+
|
|
7
|
+
<!-- 正文开始 -->
|
|
8
|
+
|
|
9
|
+
# 测试组件
|
|
10
|
+
|
|
11
|
+
默认:这是一个新组件
|
|
12
|
+
|
|
13
|
+
## 基础用法
|
|
14
|
+
<Preview comp-name="Foo" demo-name="demo">
|
|
15
|
+
<demo />
|
|
16
|
+
</Preview>
|
|
17
|
+
|
|
18
|
+
## 属性
|
|
19
|
+
参数 | 说明 | 类型 | 可选值 | 默认值 | 是否必填
|
|
20
|
+
:-: | :-: | :-: | :-: | :-: | :-:
|
|
21
|
+
`arg1` | 第一个参数 | string | - | `default` | 否
|
|
22
|
+
`arg2` | 第二个参数 | string | - | `default` | 否
|
|
23
|
+
|
|
24
|
+
## 事件
|
|
25
|
+
事件名 | 说明 | 参数列表 | 参数说明
|
|
26
|
+
:-: | :-: | :-: | :-:
|
|
27
|
+
`click` | 点击事件 | $event | 原生的 dom event
|
|
28
|
+
`customEvent` | 自定义事件 | [a, b, c] | a:参数一;b:参数二;c:参数三
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* !--------- FBI WARNING ----------!
|
|
5
|
+
*
|
|
6
|
+
* 根据 /packages 目录下的组件所生成的模块导出,请勿手动修改
|
|
7
|
+
*/
|
|
8
|
+
import { App, Plugin } from 'vue';
|
|
9
|
+
|
|
10
|
+
import { ButtonPlugin } from './Button';
|
|
11
|
+
import { FooPlugin } from './Foo';
|
|
12
|
+
|
|
13
|
+
const MYKitPlugin: Plugin = {
|
|
14
|
+
install(app: App) {
|
|
15
|
+
ButtonPlugin.install?.(app);
|
|
16
|
+
FooPlugin.install?.(app);
|
|
17
|
+
},
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export default MYKitPlugin;
|
|
21
|
+
|
|
22
|
+
export * from './Button'
|
|
23
|
+
export * from './Foo'
|
package/index.html
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="UTF-8" />
|
|
5
|
+
<link rel="icon" href="/favicon.ico" />
|
|
6
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
7
|
+
<title>Vite App</title>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<div id="app"></div>
|
|
11
|
+
<script type="module" src="/src/main.ts"></script>
|
|
12
|
+
</body>
|
|
13
|
+
</html>
|
package/package.json
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "br-dionysus",
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"scripts": {
|
|
5
|
+
"dev": "vite --config ./build/base.config.ts",
|
|
6
|
+
"build:doc": "vue-tsc --noEmit && vite build --config ./build/doc.config.ts && node script/copyDir.js",
|
|
7
|
+
"build:lib": "vue-tsc --noEmit && vite build --config ./build/lib.config.ts",
|
|
8
|
+
"gen": "node ./script/genNewComp/index.js"
|
|
9
|
+
},
|
|
10
|
+
"main": "./dist/dionysus.umd.js",
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"prismjs": "^1.25.0",
|
|
13
|
+
"vue": "^3.2.23"
|
|
14
|
+
},
|
|
15
|
+
"devDependencies": {
|
|
16
|
+
"@types/node": "^16.11.12",
|
|
17
|
+
"@vitejs/plugin-vue": "^1.10.2",
|
|
18
|
+
"fs-extra": "^10.0.0",
|
|
19
|
+
"handlebars": "^4.7.7",
|
|
20
|
+
"inquirer": "^8.2.0",
|
|
21
|
+
"less": "^4.1.2",
|
|
22
|
+
"typescript": "^4.4.4",
|
|
23
|
+
"vite": "^2.7.0",
|
|
24
|
+
"vite-plugin-copy": "^0.1.6",
|
|
25
|
+
"vite-plugin-dts": "^0.9.6",
|
|
26
|
+
"vite-plugin-md": "^0.11.4",
|
|
27
|
+
"vue-router": "^4.0.12",
|
|
28
|
+
"vue-tsc": "^0.28.10"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div>
|
|
3
|
+
<my-button @click="onClick(1)">第一个</my-button>
|
|
4
|
+
<my-button @click="onClick(2)">第二个</my-button>
|
|
5
|
+
<my-button @click="onClick(3)">第三个</my-button>
|
|
6
|
+
</div>
|
|
7
|
+
</template>
|
|
8
|
+
|
|
9
|
+
<script setup>
|
|
10
|
+
const onClick = (num) => { console.log(`我是第 ${num} 个自定义按钮`) }
|
|
11
|
+
</script>
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<button class="my-button" @click="$emit('click', $event)">
|
|
3
|
+
<slot></slot>
|
|
4
|
+
</button>
|
|
5
|
+
</template>
|
|
6
|
+
|
|
7
|
+
<script lang="ts" setup>
|
|
8
|
+
defineEmits(['click'])
|
|
9
|
+
</script>
|
|
10
|
+
|
|
11
|
+
<style scoped lang="less">
|
|
12
|
+
.my-button {
|
|
13
|
+
appearance: none;
|
|
14
|
+
padding: 5px 10px;
|
|
15
|
+
background: lightskyblue;
|
|
16
|
+
border: none;
|
|
17
|
+
border-radius: 4px;
|
|
18
|
+
color: #fff;
|
|
19
|
+
&:active {
|
|
20
|
+
background: rgb(92, 185, 243);
|
|
21
|
+
}
|
|
22
|
+
&:not(:last-child) {
|
|
23
|
+
margin-right: 15px;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
</style>
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
<!-- 加载 demo 组件 start -->
|
|
2
|
+
<script setup>
|
|
3
|
+
import demo from './demo.vue'
|
|
4
|
+
</script>
|
|
5
|
+
<!-- 加载 demo 组件 end -->
|
|
6
|
+
|
|
7
|
+
<!-- 正文开始 -->
|
|
8
|
+
|
|
9
|
+
# 测试组件
|
|
10
|
+
|
|
11
|
+
默认:这是一个新组件
|
|
12
|
+
|
|
13
|
+
## 基础用法
|
|
14
|
+
<Preview comp-name="Foo" demo-name="demo">
|
|
15
|
+
<demo />
|
|
16
|
+
</Preview>
|
|
17
|
+
|
|
18
|
+
## 属性
|
|
19
|
+
参数 | 说明 | 类型 | 可选值 | 默认值 | 是否必填
|
|
20
|
+
:-: | :-: | :-: | :-: | :-: | :-:
|
|
21
|
+
`arg1` | 第一个参数 | string | - | `default` | 否
|
|
22
|
+
`arg2` | 第二个参数 | string | - | `default` | 否
|
|
23
|
+
|
|
24
|
+
## 事件
|
|
25
|
+
事件名 | 说明 | 参数列表 | 参数说明
|
|
26
|
+
:-: | :-: | :-: | :-:
|
|
27
|
+
`click` | 点击事件 | $event | 原生的 dom event
|
|
28
|
+
`customEvent` | 自定义事件 | [a, b, c] | a:参数一;b:参数二;c:参数三
|