diff --git a/demo/assets/index-94d7f876.css b/demo/assets/index-1f9fdec1.css similarity index 98% rename from demo/assets/index-94d7f876.css rename to demo/assets/index-1f9fdec1.css index 6f35b7b..34eff1d 100644 --- a/demo/assets/index-94d7f876.css +++ b/demo/assets/index-1f9fdec1.css @@ -1,4 +1,4 @@ -@charset "UTF-8";.vue-modal[data-v-75f88310]{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;overflow-y:auto}.vue-modal__inner[data-v-75f88310]{margin-bottom:auto;opacity:0;visibility:hidden;width:100%;display:flex;justify-content:center}.vue-modal__inner.vue-modal__inner--slideDown[data-v-75f88310]{transform:translateY(-40px)}.vue-modal__inner.vue-modal__inner--slideUp[data-v-75f88310]{transform:translateY(40px)}.vue-modal__inner.vue-modal__inner--slideLeft[data-v-75f88310]{transform:translate(-40px)}.vue-modal__inner.vue-modal__inner--slideRight[data-v-75f88310]{transform:translate(40px)}.vue-modal__inner.vue-modal__inner--center[data-v-75f88310]{margin-top:auto}.vue-modal__inner.vue-modal__inner--active[data-v-75f88310]:not(.vue-modal__inner--hide){transform:translate(0);opacity:1;visibility:visible}.vue-modals[data-v-48abfbb2]{width:0}.vue-modals[data-v-48abfbb2] *{box-sizing:border-box}.vue-modals-overlay[data-v-48abfbb2]{position:fixed;top:0;left:0;width:100%;height:100%;opacity:0;visibility:hidden}.vue-modals-overlay.active[data-v-48abfbb2]{opacity:1;visibility:visible}.vue-modal-content[data-v-39a87773]{background:#fff;border-radius:.5rem;font-family:inherit}.vue-modal-content.size-sm[data-v-39a87773]{width:100%;max-width:576px}.vue-modal-content.size-md[data-v-39a87773]{width:100%;max-width:768px}.vue-modal-content.size-lg[data-v-39a87773]{width:100%;max-width:992px}.vue-modal-content.size-xl[data-v-39a87773]{width:100%;max-width:1200px}.vue-modal-content.size-xxl[data-v-39a87773]{width:100%;max-width:1400px}.vue-modal-header[data-v-39a87773]{padding:1rem;display:flex;flex-shrink:0;align-items:center;justify-content:space-between;border-bottom:1px solid #dee2e6;border-top-left-radius:.5rem;border-top-right-radius:.5rem}.vue-modal-title[data-v-39a87773]{font-size:1.25rem;font-weight:500;margin:0}.vue-modal-btn-close[data-v-39a87773]{opacity:.5;width:2rem;height:2rem;background:transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;border:none;padding:0;cursor:pointer;transition:opacity .2s ease}.vue-modal-btn-close[data-v-39a87773]:hover{opacity:1}.vue-modal-body[data-v-39a87773]{padding:1rem}.vue-modal-footer[data-v-39a87773]{padding:1rem;display:flex;flex-wrap:wrap;justify-content:flex-end;border-bottom-left-radius:.5rem;border-bottom-right-radius:.5rem;border-top:1px solid #dee2e6;gap:.25rem}.notifications[data-v-7aa35284]{position:fixed;right:unset!important;left:100vw;transform:translate(-100%);margin-left:-15px}/*! +@charset "UTF-8";.vue-modal[data-v-1421616b]{position:fixed;top:0;left:0;width:100%;height:100%;overflow-y:auto;opacity:0;visibility:hidden;display:flex;justify-content:center;flex-wrap:wrap}.vue-modal.vue-modal--slideDown[data-v-1421616b]{transform:translateY(-40px)}.vue-modal.vue-modal--slideUp[data-v-1421616b]{transform:translateY(40px)}.vue-modal.vue-modal--slideLeft[data-v-1421616b]{transform:translate(-40px)}.vue-modal.vue-modal--slideRight[data-v-1421616b]{transform:translate(40px)}.vue-modal.vue-modal--center[data-v-1421616b]{align-items:center}.vue-modal.vue-modal--top[data-v-1421616b]{align-items:flex-start}.vue-modal.vue-modal--active[data-v-1421616b]:not(.vue-modal--hide){transform:translate(0);opacity:1;visibility:visible}.vue-modals[data-v-48abfbb2]{width:0}.vue-modals[data-v-48abfbb2] *{box-sizing:border-box}.vue-modals-overlay[data-v-48abfbb2]{position:fixed;top:0;left:0;width:100%;height:100%;opacity:0;visibility:hidden}.vue-modals-overlay.active[data-v-48abfbb2]{opacity:1;visibility:visible}.vue-modal-content[data-v-39a87773]{background:#fff;border-radius:.5rem;font-family:inherit}.vue-modal-content.size-sm[data-v-39a87773]{width:100%;max-width:576px}.vue-modal-content.size-md[data-v-39a87773]{width:100%;max-width:768px}.vue-modal-content.size-lg[data-v-39a87773]{width:100%;max-width:992px}.vue-modal-content.size-xl[data-v-39a87773]{width:100%;max-width:1200px}.vue-modal-content.size-xxl[data-v-39a87773]{width:100%;max-width:1400px}.vue-modal-header[data-v-39a87773]{padding:1rem;display:flex;flex-shrink:0;align-items:center;justify-content:space-between;border-bottom:1px solid #dee2e6;border-top-left-radius:.5rem;border-top-right-radius:.5rem}.vue-modal-title[data-v-39a87773]{font-size:1.25rem;font-weight:500;margin:0}.vue-modal-btn-close[data-v-39a87773]{opacity:.5;width:2rem;height:2rem;background:transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;border:none;padding:0;cursor:pointer;transition:opacity .2s ease}.vue-modal-btn-close[data-v-39a87773]:hover{opacity:1}.vue-modal-body[data-v-39a87773]{padding:1rem}.vue-modal-footer[data-v-39a87773]{padding:1rem;display:flex;flex-wrap:wrap;justify-content:flex-end;border-bottom-left-radius:.5rem;border-bottom-right-radius:.5rem;border-top:1px solid #dee2e6;gap:.25rem}.notifications[data-v-7aa35284]{position:fixed;right:unset!important;left:100vw;transform:translate(-100%);margin-left:-15px}/*! * Bootstrap v5.3.0 (https://getbootstrap.com/) * Copyright 2011-2023 The Bootstrap Authors * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) diff --git a/demo/assets/index-83d48bee.js b/demo/assets/index-8a9966b5.js similarity index 52% rename from demo/assets/index-83d48bee.js rename to demo/assets/index-8a9966b5.js index 9b34dfe..f6f8e96 100644 --- a/demo/assets/index-83d48bee.js +++ b/demo/assets/index-8a9966b5.js @@ -1,2 +1,2 @@ -(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const i of r.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();function ns(e,t){const n=Object.create(null),s=e.split(",");for(let o=0;o!!n[o.toLowerCase()]:o=>!!n[o]}const K={},vt=[],Me=()=>{},Fr=()=>!1,Nr=/^on[^a-z]/,hn=e=>Nr.test(e),ss=e=>e.startsWith("onUpdate:"),te=Object.assign,os=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Lr=Object.prototype.hasOwnProperty,L=(e,t)=>Lr.call(e,t),M=Array.isArray,xt=e=>mn(e)==="[object Map]",_o=e=>mn(e)==="[object Set]",$=e=>typeof e=="function",Z=e=>typeof e=="string",rs=e=>typeof e=="symbol",W=e=>e!==null&&typeof e=="object",bo=e=>W(e)&&$(e.then)&&$(e.catch),vo=Object.prototype.toString,mn=e=>vo.call(e),Rr=e=>mn(e).slice(8,-1),xo=e=>mn(e)==="[object Object]",is=e=>Z(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,sn=ns(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),gn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},kr=/-(\w)/g,ke=gn(e=>e.replace(kr,(t,n)=>n?n.toUpperCase():"")),Dr=/\B([A-Z])/g,At=gn(e=>e.replace(Dr,"-$1").toLowerCase()),yn=gn(e=>e.charAt(0).toUpperCase()+e.slice(1)),$n=gn(e=>e?`on${yn(e)}`:""),Ht=(e,t)=>!Object.is(e,t),Fn=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Br=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Hr=e=>{const t=Z(e)?Number(e):NaN;return isNaN(t)?e:t};let Ns;const Un=()=>Ns||(Ns=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function We(e){if(M(e)){const t={};for(let n=0;n{if(n){const s=n.split(Ur);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Ve(e){let t="";if(Z(e))t=e;else if(M(e))for(let n=0;nZ(e)?e:e==null?"":M(e)||W(e)&&(e.toString===vo||!$(e.toString))?JSON.stringify(e,Eo,2):String(e),Eo=(e,t)=>t&&t.__v_isRef?Eo(e,t.value):xt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o])=>(n[`${s} =>`]=o,n),{})}:_o(t)?{[`Set(${t.size})`]:[...t.values()]}:W(t)&&!M(t)&&!xo(t)?String(t):t;let we;class Jr{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=we,!t&&we&&(this.index=(we.scopes||(we.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=we;try{return we=this,t()}finally{we=n}}}on(){we=this}off(){we=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},To=e=>(e.w&st)>0,wo=e=>(e.n&st)>0,Zr=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s{(d==="length"||d>=a)&&l.push(f)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":M(e)?is(n)&&l.push(i.get("length")):(l.push(i.get(ft)),xt(e)&&l.push(i.get(Wn)));break;case"delete":M(e)||(l.push(i.get(ft)),xt(e)&&l.push(i.get(Wn)));break;case"set":xt(e)&&l.push(i.get(ft));break}if(l.length===1)l[0]&&Vn(l[0]);else{const a=[];for(const f of l)f&&a.push(...f);Vn(ls(a))}}function Vn(e,t){const n=M(e)?e:[...e];for(const s of n)s.computed&&Rs(s);for(const s of n)s.computed||Rs(s)}function Rs(e,t){(e!==Se||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Gr=ns("__proto__,__v_isRef,__isVue"),Mo=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(rs)),ei=as(),ti=as(!1,!0),ni=as(!0),ks=si();function si(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=D(this);for(let r=0,i=this.length;r{e[t]=function(...n){Mt();const s=D(this)[t].apply(this,n);return It(),s}}),e}function oi(e){const t=D(this);return me(t,"has",e),t.hasOwnProperty(e)}function as(e=!1,t=!1){return function(s,o,r){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&r===(e?t?vi:Fo:t?$o:Po).get(s))return s;const i=M(s);if(!e){if(i&&L(ks,o))return Reflect.get(ks,o,r);if(o==="hasOwnProperty")return oi}const l=Reflect.get(s,o,r);return(rs(o)?Mo.has(o):Gr(o))||(e||me(s,"get",o),t)?l:ue(l)?i&&is(o)?l:l.value:W(l)?e?No(l):Vt(l):l}}const ri=Io(),ii=Io(!0);function Io(e=!1){return function(n,s,o,r){let i=n[s];if(Tt(i)&&ue(i)&&!ue(o))return!1;if(!e&&(!an(o)&&!Tt(o)&&(i=D(i),o=D(o)),!M(n)&&ue(i)&&!ue(o)))return i.value=o,!0;const l=M(n)&&is(s)?Number(s)e,bn=e=>Reflect.getPrototypeOf(e);function Xt(e,t,n=!1,s=!1){e=e.__v_raw;const o=D(e),r=D(t);n||(t!==r&&me(o,"get",t),me(o,"get",r));const{has:i}=bn(o),l=s?us:n?hs:jt;if(i.call(o,t))return l(e.get(t));if(i.call(o,r))return l(e.get(r));e!==o&&e.get(t)}function Zt(e,t=!1){const n=this.__v_raw,s=D(n),o=D(e);return t||(e!==o&&me(s,"has",e),me(s,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Qt(e,t=!1){return e=e.__v_raw,!t&&me(D(e),"iterate",ft),Reflect.get(e,"size",e)}function Ds(e){e=D(e);const t=D(this);return bn(t).has.call(t,e)||(t.add(e),qe(t,"add",e,e)),this}function Bs(e,t){t=D(t);const n=D(this),{has:s,get:o}=bn(n);let r=s.call(n,e);r||(e=D(e),r=s.call(n,e));const i=o.call(n,e);return n.set(e,t),r?Ht(t,i)&&qe(n,"set",e,t):qe(n,"add",e,t),this}function Hs(e){const t=D(this),{has:n,get:s}=bn(t);let o=n.call(t,e);o||(e=D(e),o=n.call(t,e)),s&&s.call(t,e);const r=t.delete(e);return o&&qe(t,"delete",e,void 0),r}function js(){const e=D(this),t=e.size!==0,n=e.clear();return t&&qe(e,"clear",void 0,void 0),n}function Gt(e,t){return function(s,o){const r=this,i=r.__v_raw,l=D(i),a=t?us:e?hs:jt;return!e&&me(l,"iterate",ft),i.forEach((f,d)=>s.call(o,a(f),a(d),r))}}function en(e,t,n){return function(...s){const o=this.__v_raw,r=D(o),i=xt(r),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,f=o[e](...s),d=n?us:t?hs:jt;return!t&&me(r,"iterate",a?Wn:ft),{next(){const{value:h,done:b}=f.next();return b?{value:h,done:b}:{value:l?[d(h[0]),d(h[1])]:d(h),done:b}},[Symbol.iterator](){return this}}}}function Xe(e){return function(...t){return e==="delete"?!1:this}}function di(){const e={get(r){return Xt(this,r)},get size(){return Qt(this)},has:Zt,add:Ds,set:Bs,delete:Hs,clear:js,forEach:Gt(!1,!1)},t={get(r){return Xt(this,r,!1,!0)},get size(){return Qt(this)},has:Zt,add:Ds,set:Bs,delete:Hs,clear:js,forEach:Gt(!1,!0)},n={get(r){return Xt(this,r,!0)},get size(){return Qt(this,!0)},has(r){return Zt.call(this,r,!0)},add:Xe("add"),set:Xe("set"),delete:Xe("delete"),clear:Xe("clear"),forEach:Gt(!0,!1)},s={get(r){return Xt(this,r,!0,!0)},get size(){return Qt(this,!0)},has(r){return Zt.call(this,r,!0)},add:Xe("add"),set:Xe("set"),delete:Xe("delete"),clear:Xe("clear"),forEach:Gt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=en(r,!1,!1),n[r]=en(r,!0,!1),t[r]=en(r,!1,!0),s[r]=en(r,!0,!0)}),[e,n,t,s]}const[pi,hi,mi,gi]=di();function fs(e,t){const n=t?e?gi:mi:e?hi:pi;return(s,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(L(n,o)&&o in s?n:s,o,r)}const yi={get:fs(!1,!1)},_i={get:fs(!1,!0)},bi={get:fs(!0,!1)},Po=new WeakMap,$o=new WeakMap,Fo=new WeakMap,vi=new WeakMap;function xi(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ci(e){return e.__v_skip||!Object.isExtensible(e)?0:xi(Rr(e))}function Vt(e){return Tt(e)?e:ds(e,!1,Oo,yi,Po)}function Ei(e){return ds(e,!1,fi,_i,$o)}function No(e){return ds(e,!0,ui,bi,Fo)}function ds(e,t,n,s,o){if(!W(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=o.get(e);if(r)return r;const i=Ci(e);if(i===0)return e;const l=new Proxy(e,i===2?s:n);return o.set(e,l),l}function Ct(e){return Tt(e)?Ct(e.__v_raw):!!(e&&e.__v_isReactive)}function Tt(e){return!!(e&&e.__v_isReadonly)}function an(e){return!!(e&&e.__v_isShallow)}function Lo(e){return Ct(e)||Tt(e)}function D(e){const t=e&&e.__v_raw;return t?D(t):e}function ps(e){return cn(e,"__v_skip",!0),e}const jt=e=>W(e)?Vt(e):e,hs=e=>W(e)?No(e):e;function Ro(e){et&&Se&&(e=D(e),Ao(e.dep||(e.dep=ls())))}function ko(e,t){e=D(e);const n=e.dep;n&&Vn(n)}function ue(e){return!!(e&&e.__v_isRef===!0)}function ms(e){return Ti(e,!1)}function Ti(e,t){return ue(e)?e:new wi(e,t)}class wi{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:D(t),this._value=n?t:jt(t)}get value(){return Ro(this),this._value}set value(t){const n=this.__v_isShallow||an(t)||Tt(t);t=n?t:D(t),Ht(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:jt(t),ko(this))}}function be(e){return ue(e)?e.value:e}const Si={get:(e,t,n)=>be(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return ue(o)&&!ue(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function Do(e){return Ct(e)?e:new Proxy(e,Si)}class Ai{constructor(t,n,s,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new cs(t,()=>{this._dirty||(this._dirty=!0,ko(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=s}get value(){const t=D(this);return Ro(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Mi(e,t,n=!1){let s,o;const r=$(e);return r?(s=e,o=Me):(s=e.get,o=e.set),new Ai(s,o,r||!o,n)}function tt(e,t,n,s){let o;try{o=s?e(...s):e()}catch(r){vn(r,t,n)}return o}function Ce(e,t,n,s){if($(e)){const r=tt(e,t,n,s);return r&&bo(r)&&r.catch(i=>{vn(i,t,n)}),r}const o=[];for(let r=0;r>>1;zt(ae[s])Re&&ae.splice(t,1)}function Fi(e){M(e)?Et.push(...e):(!Ue||!Ue.includes(e,e.allowRecurse?at+1:at))&&Et.push(e),Ho()}function Us(e,t=Ut?Re+1:0){for(;tzt(n)-zt(s)),at=0;ate.id==null?1/0:e.id,Ni=(e,t)=>{const n=zt(e)-zt(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Uo(e){qn=!1,Ut=!0,ae.sort(Ni);const t=Me;try{for(Re=0;ReZ(T)?T.trim():T)),h&&(o=n.map(Br))}let l,a=s[l=$n(t)]||s[l=$n(ke(t))];!a&&r&&(a=s[l=$n(At(t))]),a&&Ce(a,e,6,o);const f=s[l+"Once"];if(f){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ce(f,e,6,o)}}function zo(e,t,n=!1){const s=t.emitsCache,o=s.get(e);if(o!==void 0)return o;const r=e.emits;let i={},l=!1;if(!$(e)){const a=f=>{const d=zo(f,t,!0);d&&(l=!0,te(i,d))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!r&&!l?(W(e)&&s.set(e,null),null):(M(r)?r.forEach(a=>i[a]=null):te(i,r),W(e)&&s.set(e,i),i)}function xn(e,t){return!e||!hn(t)?!1:(t=t.slice(2).replace(/Once$/,""),L(e,t[0].toLowerCase()+t.slice(1))||L(e,At(t))||L(e,t))}let fe=null,Cn=null;function un(e){const t=fe;return fe=e,Cn=e&&e.type.__scopeId||null,t}function Ri(e){Cn=e}function ki(){Cn=null}function Ie(e,t=fe,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&Gs(-1);const r=un(t);let i;try{i=e(...o)}finally{un(r),s._d&&Gs(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function Nn(e){const{type:t,vnode:n,proxy:s,withProxy:o,props:r,propsOptions:[i],slots:l,attrs:a,emit:f,render:d,renderCache:h,data:b,setupState:T,ctx:k,inheritAttrs:P}=e;let J,Q;const G=un(e);try{if(n.shapeFlag&4){const I=o||s;J=Le(d.call(I,I,h,r,T,b,k)),Q=a}else{const I=t;J=Le(I.length>1?I(r,{attrs:a,slots:l,emit:f}):I(r,null)),Q=t.props?a:Di(a)}}catch(I){Dt.length=0,vn(I,e,1),J=he(Je)}let ee=J;if(Q&&P!==!1){const I=Object.keys(Q),{shapeFlag:se}=ee;I.length&&se&7&&(i&&I.some(ss)&&(Q=Bi(Q,i)),ee=pt(ee,Q))}return n.dirs&&(ee=pt(ee),ee.dirs=ee.dirs?ee.dirs.concat(n.dirs):n.dirs),n.transition&&(ee.transition=n.transition),J=ee,un(G),J}const Di=e=>{let t;for(const n in e)(n==="class"||n==="style"||hn(n))&&((t||(t={}))[n]=e[n]);return t},Bi=(e,t)=>{const n={};for(const s in e)(!ss(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Hi(e,t,n){const{props:s,children:o,component:r}=e,{props:i,children:l,patchFlag:a}=t,f=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?zs(s,i,f):!!i;if(a&8){const d=t.dynamicProps;for(let h=0;he.__isSuspense;function zi(e,t){t&&t.pendingBranch?M(e)?t.effects.push(...e):t.effects.push(e):Fi(e)}const tn={};function Ln(e,t,n){return Ko(e,t,n)}function Ko(e,t,{immediate:n,deep:s,flush:o,onTrack:r,onTrigger:i}=K){var l;const a=Xr()===((l=ie)==null?void 0:l.scope)?ie:null;let f,d=!1,h=!1;if(ue(e)?(f=()=>e.value,d=an(e)):Ct(e)?(f=()=>e,s=!0):M(e)?(h=!0,d=e.some(I=>Ct(I)||an(I)),f=()=>e.map(I=>{if(ue(I))return I.value;if(Ct(I))return bt(I);if($(I))return tt(I,a,2)})):$(e)?t?f=()=>tt(e,a,2):f=()=>{if(!(a&&a.isUnmounted))return b&&b(),Ce(e,a,3,[T])}:f=Me,t&&s){const I=f;f=()=>bt(I())}let b,T=I=>{b=G.onStop=()=>{tt(I,a,4)}},k;if(Wt)if(T=Me,t?n&&Ce(t,a,3,[f(),h?[]:void 0,T]):f(),o==="sync"){const I=kl();k=I.__watcherHandles||(I.__watcherHandles=[])}else return Me;let P=h?new Array(e.length).fill(tn):tn;const J=()=>{if(G.active)if(t){const I=G.run();(s||d||(h?I.some((se,Oe)=>Ht(se,P[Oe])):Ht(I,P)))&&(b&&b(),Ce(t,a,3,[I,P===tn?void 0:h&&P[0]===tn?[]:P,T]),P=I)}else G.run()};J.allowRecurse=!!t;let Q;o==="sync"?Q=J:o==="post"?Q=()=>pe(J,a&&a.suspense):(J.pre=!0,a&&(J.id=a.uid),Q=()=>ys(J));const G=new cs(f,Q);t?n?J():P=G.run():o==="post"?pe(G.run.bind(G),a&&a.suspense):G.run();const ee=()=>{G.stop(),a&&a.scope&&os(a.scope.effects,G)};return k&&k.push(ee),ee}function Ki(e,t,n){const s=this.proxy,o=Z(e)?e.includes(".")?Wo(s,e):()=>s[e]:e.bind(s,s);let r;$(t)?r=t:(r=t.handler,n=t);const i=ie;St(this);const l=Ko(o,r.bind(s),n);return i?St(i):dt(),l}function Wo(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;o{bt(n,t)});else if(xo(e))for(const n in e)bt(e[n],t);return e}function it(e,t,n,s){const o=e.dirs,r=t&&t.dirs;for(let i=0;i{e.isMounted=!0}),wn(()=>{e.isUnmounting=!0}),e}const ve=[Function,Array],Vi={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:ve,onEnter:ve,onAfterEnter:ve,onEnterCancelled:ve,onBeforeLeave:ve,onLeave:ve,onAfterLeave:ve,onLeaveCancelled:ve,onBeforeAppear:ve,onAppear:ve,onAfterAppear:ve,onAppearCancelled:ve};function qi(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Jn(e,t,n,s){const{appear:o,mode:r,persisted:i=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:f,onEnterCancelled:d,onBeforeLeave:h,onLeave:b,onAfterLeave:T,onLeaveCancelled:k,onBeforeAppear:P,onAppear:J,onAfterAppear:Q,onAppearCancelled:G}=t,ee=String(e.key),I=qi(n,e),se=(F,Y)=>{F&&Ce(F,s,9,Y)},Oe=(F,Y)=>{const U=Y[1];se(F,Y),M(F)?F.every(le=>le.length<=1)&&U():F.length<=1&&U()},Pe={mode:r,persisted:i,beforeEnter(F){let Y=l;if(!n.isMounted)if(o)Y=P||l;else return;F._leaveCb&&F._leaveCb(!0);const U=I[ee];U&&_t(e,U)&&U.el._leaveCb&&U.el._leaveCb(),se(Y,[F])},enter(F){let Y=a,U=f,le=d;if(!n.isMounted)if(o)Y=J||a,U=Q||f,le=G||d;else return;let w=!1;const V=F._enterCb=ge=>{w||(w=!0,ge?se(le,[F]):se(U,[F]),Pe.delayedLeave&&Pe.delayedLeave(),F._enterCb=void 0)};Y?Oe(Y,[F,V]):V()},leave(F,Y){const U=String(e.key);if(F._enterCb&&F._enterCb(!0),n.isUnmounting)return Y();se(h,[F]);let le=!1;const w=F._leaveCb=V=>{le||(le=!0,Y(),V?se(k,[F]):se(T,[F]),F._leaveCb=void 0,I[U]===e&&delete I[U])};I[U]=e,b?Oe(b,[F,w]):w()},clone(F){return Jn(F,t,n,s)}};return Pe}function Yn(e,t){e.shapeFlag&6&&e.component?Yn(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 Vo(e,t=!1,n){let s=[],o=0;for(let r=0;r1)for(let r=0;rte({name:e.name},t,{setup:e}))():e}const Rt=e=>!!e.type.__asyncLoader,qo=e=>e.type.__isKeepAlive;function Ji(e,t){Jo(e,"a",t)}function Yi(e,t){Jo(e,"da",t)}function Jo(e,t,n=ie){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(En(t,s,n),n){let o=n.parent;for(;o&&o.parent;)qo(o.parent.vnode)&&Xi(s,t,n,o),o=o.parent}}function Xi(e,t,n,s){const o=En(t,e,s,!0);Xo(()=>{os(s[t],o)},n)}function En(e,t,n=ie,s=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Mt(),St(n);const l=Ce(t,n,e,i);return dt(),It(),l});return s?o.unshift(r):o.push(r),r}}const Ye=e=>(t,n=ie)=>(!Wt||e==="sp")&&En(e,(...s)=>t(...s),n),Zi=Ye("bm"),Tn=Ye("m"),Qi=Ye("bu"),Yo=Ye("u"),wn=Ye("bum"),Xo=Ye("um"),Gi=Ye("sp"),el=Ye("rtg"),tl=Ye("rtc");function nl(e,t=ie){En("ec",e,t)}const _s="components";function Sn(e,t){return Go(_s,e,!0,t)||e}const Zo=Symbol.for("v-ndc");function Qo(e){return Z(e)?Go(_s,e,!1)||e:e||Zo}function Go(e,t,n=!0,s=!1){const o=fe||ie;if(o){const r=o.type;if(e===_s){const l=Nl(r,!1);if(l&&(l===t||l===ke(t)||l===yn(ke(t))))return r}const i=Ks(o[e]||r[e],t)||Ks(o.appContext[e],t);return!i&&s?r:i}}function Ks(e,t){return e&&(e[t]||e[ke(t)]||e[yn(ke(t))])}function er(e,t,n,s){let o;const r=n&&n[s];if(M(e)||Z(e)){o=new Array(e.length);for(let i=0,l=e.length;it(i,l,void 0,r&&r[l]));else{const i=Object.keys(e);o=new Array(i.length);for(let l=0,a=i.length;lfr(t)?!(t.type===Je||t.type===ce&&!tr(t.children)):!0)?e:null}const Xn=e=>e?mr(e)?Es(e)||e.proxy:Xn(e.parent):null,kt=te(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=>Xn(e.parent),$root:e=>Xn(e.root),$emit:e=>e.emit,$options:e=>bs(e),$forceUpdate:e=>e.f||(e.f=()=>ys(e.update)),$nextTick:e=>e.n||(e.n=Oi.bind(e.proxy)),$watch:e=>Ki.bind(e)}),Rn=(e,t)=>e!==K&&!e.__isScriptSetup&&L(e,t),sl={get({_:e},t){const{ctx:n,setupState:s,data:o,props:r,accessCache:i,type:l,appContext:a}=e;let f;if(t[0]!=="$"){const T=i[t];if(T!==void 0)switch(T){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(Rn(s,t))return i[t]=1,s[t];if(o!==K&&L(o,t))return i[t]=2,o[t];if((f=e.propsOptions[0])&&L(f,t))return i[t]=3,r[t];if(n!==K&&L(n,t))return i[t]=4,n[t];Zn&&(i[t]=0)}}const d=kt[t];let h,b;if(d)return t==="$attrs"&&me(e,"get",t),d(e);if((h=l.__cssModules)&&(h=h[t]))return h;if(n!==K&&L(n,t))return i[t]=4,n[t];if(b=a.config.globalProperties,L(b,t))return b[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:r}=e;return Rn(o,t)?(o[t]=n,!0):s!==K&&L(s,t)?(s[t]=n,!0):L(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,propsOptions:r}},i){let l;return!!n[i]||e!==K&&L(e,i)||Rn(t,i)||(l=r[0])&&L(l,i)||L(s,i)||L(kt,i)||L(o.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:L(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ol(){return rl().slots}function rl(){const e=hr();return e.setupContext||(e.setupContext=yr(e))}function Ws(e){return M(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Zn=!0;function il(e){const t=bs(e),n=e.proxy,s=e.ctx;Zn=!1,t.beforeCreate&&Vs(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:i,watch:l,provide:a,inject:f,created:d,beforeMount:h,mounted:b,beforeUpdate:T,updated:k,activated:P,deactivated:J,beforeDestroy:Q,beforeUnmount:G,destroyed:ee,unmounted:I,render:se,renderTracked:Oe,renderTriggered:Pe,errorCaptured:F,serverPrefetch:Y,expose:U,inheritAttrs:le,components:w,directives:V,filters:ge}=t;if(f&&ll(f,s,null),i)for(const X in i){const H=i[X];$(H)&&(s[X]=H.bind(n))}if(o){const X=o.call(n,n);W(X)&&(e.data=Vt(X))}if(Zn=!0,r)for(const X in r){const H=r[X],ot=$(H)?H.bind(n,n):$(H.get)?H.get.bind(n,n):Me,Jt=!$(H)&&$(H.set)?H.set.bind(n):Me,rt=ze({get:ot,set:Jt});Object.defineProperty(s,X,{enumerable:!0,configurable:!0,get:()=>rt.value,set:$e=>rt.value=$e})}if(l)for(const X in l)nr(l[X],s,n,X);if(a){const X=$(a)?a.call(n):a;Reflect.ownKeys(X).forEach(H=>{pl(H,X[H])})}d&&Vs(d,e,"c");function oe(X,H){M(H)?H.forEach(ot=>X(ot.bind(n))):H&&X(H.bind(n))}if(oe(Zi,h),oe(Tn,b),oe(Qi,T),oe(Yo,k),oe(Ji,P),oe(Yi,J),oe(nl,F),oe(tl,Oe),oe(el,Pe),oe(wn,G),oe(Xo,I),oe(Gi,Y),M(U))if(U.length){const X=e.exposed||(e.exposed={});U.forEach(H=>{Object.defineProperty(X,H,{get:()=>n[H],set:ot=>n[H]=ot})})}else e.exposed||(e.exposed={});se&&e.render===Me&&(e.render=se),le!=null&&(e.inheritAttrs=le),w&&(e.components=w),V&&(e.directives=V)}function ll(e,t,n=Me){M(e)&&(e=Qn(e));for(const s in e){const o=e[s];let r;W(o)?"default"in o?r=on(o.from||s,o.default,!0):r=on(o.from||s):r=on(o),ue(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[s]=r}}function Vs(e,t,n){Ce(M(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function nr(e,t,n,s){const o=s.includes(".")?Wo(n,s):()=>n[s];if(Z(e)){const r=t[e];$(r)&&Ln(o,r)}else if($(e))Ln(o,e.bind(n));else if(W(e))if(M(e))e.forEach(r=>nr(r,t,n,s));else{const r=$(e.handler)?e.handler.bind(n):t[e.handler];$(r)&&Ln(o,r,e)}}function bs(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,l=r.get(t);let a;return l?a=l:!o.length&&!n&&!s?a=t:(a={},o.length&&o.forEach(f=>fn(a,f,i,!0)),fn(a,t,i)),W(t)&&r.set(t,a),a}function fn(e,t,n,s=!1){const{mixins:o,extends:r}=t;r&&fn(e,r,n,!0),o&&o.forEach(i=>fn(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=cl[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const cl={data:qs,props:Js,emits:Js,methods:Nt,computed:Nt,beforeCreate:de,created:de,beforeMount:de,mounted:de,beforeUpdate:de,updated:de,beforeDestroy:de,beforeUnmount:de,destroyed:de,unmounted:de,activated:de,deactivated:de,errorCaptured:de,serverPrefetch:de,components:Nt,directives:Nt,watch:ul,provide:qs,inject:al};function qs(e,t){return t?e?function(){return te($(e)?e.call(this,this):e,$(t)?t.call(this,this):t)}:t:e}function al(e,t){return Nt(Qn(e),Qn(t))}function Qn(e){if(M(e)){const t={};for(let n=0;n1)return n&&$(t)?t.call(s&&s.proxy):t}}function hl(e,t,n,s=!1){const o={},r={};cn(r,Mn,1),e.propsDefaults=Object.create(null),or(e,t,o,r);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=s?o:Ei(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function ml(e,t,n,s){const{props:o,attrs:r,vnode:{patchFlag:i}}=e,l=D(o),[a]=e.propsOptions;let f=!1;if((s||i>0)&&!(i&16)){if(i&8){const d=e.vnode.dynamicProps;for(let h=0;h{a=!0;const[b,T]=rr(h,t,!0);te(i,b),T&&l.push(...T)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!r&&!a)return W(e)&&s.set(e,vt),vt;if(M(r))for(let d=0;d-1,T[1]=P<0||k-1||L(T,"default"))&&l.push(h)}}}const f=[i,l];return W(e)&&s.set(e,f),f}function Ys(e){return e[0]!=="$"}function Xs(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Zs(e,t){return Xs(e)===Xs(t)}function Qs(e,t){return M(t)?t.findIndex(n=>Zs(n,e)):$(t)&&Zs(t,e)?0:-1}const ir=e=>e[0]==="_"||e==="$stable",vs=e=>M(e)?e.map(Le):[Le(e)],gl=(e,t,n)=>{if(t._n)return t;const s=Ie((...o)=>vs(t(...o)),n);return s._c=!1,s},lr=(e,t,n)=>{const s=e._ctx;for(const o in e){if(ir(o))continue;const r=e[o];if($(r))t[o]=gl(o,r,s);else if(r!=null){const i=vs(r);t[o]=()=>i}}},cr=(e,t)=>{const n=vs(t);e.slots.default=()=>n},yl=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=D(t),cn(t,"_",n)):lr(t,e.slots={})}else e.slots={},t&&cr(e,t);cn(e.slots,Mn,1)},_l=(e,t,n)=>{const{vnode:s,slots:o}=e;let r=!0,i=K;if(s.shapeFlag&32){const l=t._;l?n&&l===1?r=!1:(te(o,t),!n&&l===1&&delete o._):(r=!t.$stable,lr(t,o)),i=t}else t&&(cr(e,t),i={default:1});if(r)for(const l in o)!ir(l)&&!(l in i)&&delete o[l]};function es(e,t,n,s,o=!1){if(M(e)){e.forEach((b,T)=>es(b,t&&(M(t)?t[T]:t),n,s,o));return}if(Rt(s)&&!o)return;const r=s.shapeFlag&4?Es(s.component)||s.component.proxy:s.el,i=o?null:r,{i:l,r:a}=e,f=t&&t.r,d=l.refs===K?l.refs={}:l.refs,h=l.setupState;if(f!=null&&f!==a&&(Z(f)?(d[f]=null,L(h,f)&&(h[f]=null)):ue(f)&&(f.value=null)),$(a))tt(a,l,12,[i,d]);else{const b=Z(a),T=ue(a);if(b||T){const k=()=>{if(e.f){const P=b?L(h,a)?h[a]:d[a]:a.value;o?M(P)&&os(P,r):M(P)?P.includes(r)||P.push(r):b?(d[a]=[r],L(h,a)&&(h[a]=d[a])):(a.value=[r],e.k&&(d[e.k]=a.value))}else b?(d[a]=i,L(h,a)&&(h[a]=i)):T&&(a.value=i,e.k&&(d[e.k]=i))};i?(k.id=-1,pe(k,n)):k()}}}const pe=zi;function bl(e){return vl(e)}function vl(e,t){const n=Un();n.__VUE__=!0;const{insert:s,remove:o,patchProp:r,createElement:i,createText:l,createComment:a,setText:f,setElementText:d,parentNode:h,nextSibling:b,setScopeId:T=Me,insertStaticContent:k}=e,P=(c,u,p,g=null,m=null,v=null,C=!1,_=null,x=!!u.dynamicChildren)=>{if(c===u)return;c&&!_t(c,u)&&(g=Yt(c),$e(c,m,v,!0),c=null),u.patchFlag===-2&&(x=!1,u.dynamicChildren=null);const{type:y,ref:S,shapeFlag:E}=u;switch(y){case An:J(c,u,p,g);break;case Je:Q(c,u,p,g);break;case rn:c==null&&G(u,p,g,C);break;case ce:w(c,u,p,g,m,v,C,_,x);break;default:E&1?se(c,u,p,g,m,v,C,_,x):E&6?V(c,u,p,g,m,v,C,_,x):(E&64||E&128)&&y.process(c,u,p,g,m,v,C,_,x,mt)}S!=null&&m&&es(S,c&&c.ref,v,u||c,!u)},J=(c,u,p,g)=>{if(c==null)s(u.el=l(u.children),p,g);else{const m=u.el=c.el;u.children!==c.children&&f(m,u.children)}},Q=(c,u,p,g)=>{c==null?s(u.el=a(u.children||""),p,g):u.el=c.el},G=(c,u,p,g)=>{[c.el,c.anchor]=k(c.children,u,p,g,c.el,c.anchor)},ee=({el:c,anchor:u},p,g)=>{let m;for(;c&&c!==u;)m=b(c),s(c,p,g),c=m;s(u,p,g)},I=({el:c,anchor:u})=>{let p;for(;c&&c!==u;)p=b(c),o(c),c=p;o(u)},se=(c,u,p,g,m,v,C,_,x)=>{C=C||u.type==="svg",c==null?Oe(u,p,g,m,v,C,_,x):Y(c,u,m,v,C,_,x)},Oe=(c,u,p,g,m,v,C,_)=>{let x,y;const{type:S,props:E,shapeFlag:A,transition:O,dirs:N}=c;if(x=c.el=i(c.type,v,E&&E.is,E),A&8?d(x,c.children):A&16&&F(c.children,x,null,g,m,v&&S!=="foreignObject",C,_),N&&it(c,null,g,"created"),Pe(x,c,c.scopeId,C,g),E){for(const B in E)B!=="value"&&!sn(B)&&r(x,B,null,E[B],v,c.children,g,m,He);"value"in E&&r(x,"value",null,E.value),(y=E.onVnodeBeforeMount)&&Ne(y,g,c)}N&&it(c,null,g,"beforeMount");const j=(!m||m&&!m.pendingBranch)&&O&&!O.persisted;j&&O.beforeEnter(x),s(x,u,p),((y=E&&E.onVnodeMounted)||j||N)&&pe(()=>{y&&Ne(y,g,c),j&&O.enter(x),N&&it(c,null,g,"mounted")},m)},Pe=(c,u,p,g,m)=>{if(p&&T(c,p),g)for(let v=0;v{for(let y=x;y{const _=u.el=c.el;let{patchFlag:x,dynamicChildren:y,dirs:S}=u;x|=c.patchFlag&16;const E=c.props||K,A=u.props||K;let O;p&<(p,!1),(O=A.onVnodeBeforeUpdate)&&Ne(O,p,u,c),S&&it(u,c,p,"beforeUpdate"),p&<(p,!0);const N=m&&u.type!=="foreignObject";if(y?U(c.dynamicChildren,y,_,p,g,N,v):C||H(c,u,_,null,p,g,N,v,!1),x>0){if(x&16)le(_,u,E,A,p,g,m);else if(x&2&&E.class!==A.class&&r(_,"class",null,A.class,m),x&4&&r(_,"style",E.style,A.style,m),x&8){const j=u.dynamicProps;for(let B=0;B{O&&Ne(O,p,u,c),S&&it(u,c,p,"updated")},g)},U=(c,u,p,g,m,v,C)=>{for(let _=0;_{if(p!==g){if(p!==K)for(const _ in p)!sn(_)&&!(_ in g)&&r(c,_,p[_],null,C,u.children,m,v,He);for(const _ in g){if(sn(_))continue;const x=g[_],y=p[_];x!==y&&_!=="value"&&r(c,_,y,x,C,u.children,m,v,He)}"value"in g&&r(c,"value",p.value,g.value)}},w=(c,u,p,g,m,v,C,_,x)=>{const y=u.el=c?c.el:l(""),S=u.anchor=c?c.anchor:l("");let{patchFlag:E,dynamicChildren:A,slotScopeIds:O}=u;O&&(_=_?_.concat(O):O),c==null?(s(y,p,g),s(S,p,g),F(u.children,p,S,m,v,C,_,x)):E>0&&E&64&&A&&c.dynamicChildren?(U(c.dynamicChildren,A,p,m,v,C,_),(u.key!=null||m&&u===m.subTree)&&ar(c,u,!0)):H(c,u,p,S,m,v,C,_,x)},V=(c,u,p,g,m,v,C,_,x)=>{u.slotScopeIds=_,c==null?u.shapeFlag&512?m.ctx.activate(u,p,g,C,x):ge(u,p,g,m,v,C,x):Ot(c,u,x)},ge=(c,u,p,g,m,v,C)=>{const _=c.component=Ol(c,g,m);if(qo(c)&&(_.ctx.renderer=mt),Pl(_),_.asyncDep){if(m&&m.registerDep(_,oe),!c.el){const x=_.subTree=he(Je);Q(null,x,u,p)}return}oe(_,c,u,p,m,v,C)},Ot=(c,u,p)=>{const g=u.component=c.component;if(Hi(c,u,p))if(g.asyncDep&&!g.asyncResolved){X(g,u,p);return}else g.next=u,$i(g.update),g.update();else u.el=c.el,g.vnode=u},oe=(c,u,p,g,m,v,C)=>{const _=()=>{if(c.isMounted){let{next:S,bu:E,u:A,parent:O,vnode:N}=c,j=S,B;lt(c,!1),S?(S.el=N.el,X(c,S,C)):S=N,E&&Fn(E),(B=S.props&&S.props.onVnodeBeforeUpdate)&&Ne(B,O,S,N),lt(c,!0);const ne=Nn(c),Te=c.subTree;c.subTree=ne,P(Te,ne,h(Te.el),Yt(Te),c,m,v),S.el=ne.el,j===null&&ji(c,ne.el),A&&pe(A,m),(B=S.props&&S.props.onVnodeUpdated)&&pe(()=>Ne(B,O,S,N),m)}else{let S;const{el:E,props:A}=u,{bm:O,m:N,parent:j}=c,B=Rt(u);if(lt(c,!1),O&&Fn(O),!B&&(S=A&&A.onVnodeBeforeMount)&&Ne(S,j,u),lt(c,!0),E&&Pn){const ne=()=>{c.subTree=Nn(c),Pn(E,c.subTree,c,m,null)};B?u.type.__asyncLoader().then(()=>!c.isUnmounted&&ne()):ne()}else{const ne=c.subTree=Nn(c);P(null,ne,p,g,c,m,v),u.el=ne.el}if(N&&pe(N,m),!B&&(S=A&&A.onVnodeMounted)){const ne=u;pe(()=>Ne(S,j,ne),m)}(u.shapeFlag&256||j&&Rt(j.vnode)&&j.vnode.shapeFlag&256)&&c.a&&pe(c.a,m),c.isMounted=!0,u=p=g=null}},x=c.effect=new cs(_,()=>ys(y),c.scope),y=c.update=()=>x.run();y.id=c.uid,lt(c,!0),y()},X=(c,u,p)=>{u.component=c;const g=c.vnode.props;c.vnode=u,c.next=null,ml(c,u.props,g,p),_l(c,u.children,p),Mt(),Us(),It()},H=(c,u,p,g,m,v,C,_,x=!1)=>{const y=c&&c.children,S=c?c.shapeFlag:0,E=u.children,{patchFlag:A,shapeFlag:O}=u;if(A>0){if(A&128){Jt(y,E,p,g,m,v,C,_,x);return}else if(A&256){ot(y,E,p,g,m,v,C,_,x);return}}O&8?(S&16&&He(y,m,v),E!==y&&d(p,E)):S&16?O&16?Jt(y,E,p,g,m,v,C,_,x):He(y,m,v,!0):(S&8&&d(p,""),O&16&&F(E,p,g,m,v,C,_,x))},ot=(c,u,p,g,m,v,C,_,x)=>{c=c||vt,u=u||vt;const y=c.length,S=u.length,E=Math.min(y,S);let A;for(A=0;AS?He(c,m,v,!0,!1,E):F(u,p,g,m,v,C,_,x,E)},Jt=(c,u,p,g,m,v,C,_,x)=>{let y=0;const S=u.length;let E=c.length-1,A=S-1;for(;y<=E&&y<=A;){const O=c[y],N=u[y]=x?Ge(u[y]):Le(u[y]);if(_t(O,N))P(O,N,p,null,m,v,C,_,x);else break;y++}for(;y<=E&&y<=A;){const O=c[E],N=u[A]=x?Ge(u[A]):Le(u[A]);if(_t(O,N))P(O,N,p,null,m,v,C,_,x);else break;E--,A--}if(y>E){if(y<=A){const O=A+1,N=OA)for(;y<=E;)$e(c[y],m,v,!0),y++;else{const O=y,N=y,j=new Map;for(y=N;y<=A;y++){const ye=u[y]=x?Ge(u[y]):Le(u[y]);ye.key!=null&&j.set(ye.key,y)}let B,ne=0;const Te=A-N+1;let gt=!1,Ps=0;const Pt=new Array(Te);for(y=0;y=Te){$e(ye,m,v,!0);continue}let Fe;if(ye.key!=null)Fe=j.get(ye.key);else for(B=N;B<=A;B++)if(Pt[B-N]===0&&_t(ye,u[B])){Fe=B;break}Fe===void 0?$e(ye,m,v,!0):(Pt[Fe-N]=y+1,Fe>=Ps?Ps=Fe:gt=!0,P(ye,u[Fe],p,null,m,v,C,_,x),ne++)}const $s=gt?xl(Pt):vt;for(B=$s.length-1,y=Te-1;y>=0;y--){const ye=N+y,Fe=u[ye],Fs=ye+1{const{el:v,type:C,transition:_,children:x,shapeFlag:y}=c;if(y&6){rt(c.component.subTree,u,p,g);return}if(y&128){c.suspense.move(u,p,g);return}if(y&64){C.move(c,u,p,mt);return}if(C===ce){s(v,u,p);for(let E=0;E_.enter(v),m);else{const{leave:E,delayLeave:A,afterLeave:O}=_,N=()=>s(v,u,p),j=()=>{E(v,()=>{N(),O&&O()})};A?A(v,N,j):j()}else s(v,u,p)},$e=(c,u,p,g=!1,m=!1)=>{const{type:v,props:C,ref:_,children:x,dynamicChildren:y,shapeFlag:S,patchFlag:E,dirs:A}=c;if(_!=null&&es(_,null,p,c,!0),S&256){u.ctx.deactivate(c);return}const O=S&1&&A,N=!Rt(c);let j;if(N&&(j=C&&C.onVnodeBeforeUnmount)&&Ne(j,u,c),S&6)$r(c.component,p,g);else{if(S&128){c.suspense.unmount(p,g);return}O&&it(c,null,u,"beforeUnmount"),S&64?c.type.remove(c,u,p,m,mt,g):y&&(v!==ce||E>0&&E&64)?He(y,u,p,!1,!0):(v===ce&&E&384||!m&&S&16)&&He(x,u,p),g&&Is(c)}(N&&(j=C&&C.onVnodeUnmounted)||O)&&pe(()=>{j&&Ne(j,u,c),O&&it(c,null,u,"unmounted")},p)},Is=c=>{const{type:u,el:p,anchor:g,transition:m}=c;if(u===ce){Pr(p,g);return}if(u===rn){I(c);return}const v=()=>{o(p),m&&!m.persisted&&m.afterLeave&&m.afterLeave()};if(c.shapeFlag&1&&m&&!m.persisted){const{leave:C,delayLeave:_}=m,x=()=>C(p,v);_?_(c.el,v,x):x()}else v()},Pr=(c,u)=>{let p;for(;c!==u;)p=b(c),o(c),c=p;o(u)},$r=(c,u,p)=>{const{bum:g,scope:m,update:v,subTree:C,um:_}=c;g&&Fn(g),m.stop(),v&&(v.active=!1,$e(C,c,u,p)),_&&pe(_,u),pe(()=>{c.isUnmounted=!0},u),u&&u.pendingBranch&&!u.isUnmounted&&c.asyncDep&&!c.asyncResolved&&c.suspenseId===u.pendingId&&(u.deps--,u.deps===0&&u.resolve())},He=(c,u,p,g=!1,m=!1,v=0)=>{for(let C=v;Cc.shapeFlag&6?Yt(c.component.subTree):c.shapeFlag&128?c.suspense.next():b(c.anchor||c.el),Os=(c,u,p)=>{c==null?u._vnode&&$e(u._vnode,null,null,!0):P(u._vnode||null,c,u,null,null,null,p),Us(),jo(),u._vnode=c},mt={p:P,um:$e,m:rt,r:Is,mt:ge,mc:F,pc:H,pbc:U,n:Yt,o:e};let On,Pn;return t&&([On,Pn]=t(mt)),{render:Os,hydrate:On,createApp:dl(Os,On)}}function lt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ar(e,t,n=!1){const s=e.children,o=t.children;if(M(s)&&M(o))for(let r=0;r>1,e[n[l]]0&&(t[s]=n[r-1]),n[r]=s)}}for(r=n.length,i=n[r-1];r-- >0;)n[r]=i,i=t[i];return n}const Cl=e=>e.__isTeleport,ce=Symbol.for("v-fgt"),An=Symbol.for("v-txt"),Je=Symbol.for("v-cmt"),rn=Symbol.for("v-stc"),Dt=[];let Ae=null;function q(e=!1){Dt.push(Ae=e?null:[])}function El(){Dt.pop(),Ae=Dt[Dt.length-1]||null}let Kt=1;function Gs(e){Kt+=e}function ur(e){return e.dynamicChildren=Kt>0?Ae||vt:null,El(),Kt>0&&Ae&&Ae.push(e),e}function _e(e,t,n,s,o,r){return ur(R(e,t,n,s,o,r,!0))}function De(e,t,n,s,o){return ur(he(e,t,n,s,o,!0))}function fr(e){return e?e.__v_isVNode===!0:!1}function _t(e,t){return e.type===t.type&&e.key===t.key}const Mn="__vInternal",dr=({key:e})=>e??null,ln=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Z(e)||ue(e)||$(e)?{i:fe,r:e,k:t,f:!!n}:e:null);function R(e,t=null,n=null,s=0,o=null,r=e===ce?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&dr(t),ref:t&&ln(t),scopeId:Cn,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:r,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:fe};return l?(xs(a,n),r&128&&e.normalize(a)):n&&(a.shapeFlag|=Z(n)?8:16),Kt>0&&!i&&Ae&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&Ae.push(a),a}const he=Tl;function Tl(e,t=null,n=null,s=0,o=null,r=!1){if((!e||e===Zo)&&(e=Je),fr(e)){const l=pt(e,t,!0);return n&&xs(l,n),Kt>0&&!r&&Ae&&(l.shapeFlag&6?Ae[Ae.indexOf(e)]=l:Ae.push(l)),l.patchFlag|=-2,l}if(Ll(e)&&(e=e.__vccOpts),t){t=pr(t);let{class:l,style:a}=t;l&&!Z(l)&&(t.class=Ve(l)),W(a)&&(Lo(a)&&!M(a)&&(a=te({},a)),t.style=We(a))}const i=Z(e)?1:Ui(e)?128:Cl(e)?64:W(e)?4:$(e)?2:0;return R(e,t,n,s,o,i,r,!0)}function pr(e){return e?Lo(e)||Mn in e?te({},e):e:null}function pt(e,t,n=!1){const{props:s,ref:o,patchFlag:r,children:i}=e,l=t?Al(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&dr(l),ref:t&&t.ref?n&&o?M(o)?o.concat(ln(t)):[o,ln(t)]:ln(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ce?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&pt(e.ssContent),ssFallback:e.ssFallback&&pt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function wl(e=" ",t=0){return he(An,null,e,t)}function Sl(e,t){const n=he(rn,null,e);return n.staticCount=t,n}function Lt(e="",t=!1){return t?(q(),De(Je,null,e)):he(Je,null,e)}function Le(e){return e==null||typeof e=="boolean"?he(Je):M(e)?he(ce,null,e.slice()):typeof e=="object"?Ge(e):he(An,null,String(e))}function Ge(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:pt(e)}function xs(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(M(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),xs(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(Mn in t)?t._ctx=fe:o===3&&fe&&(fe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else $(t)?(t={default:t,_ctx:fe},n=32):(t=String(t),s&64?(n=16,t=[wl(t)]):n=8);e.children=t,e.shapeFlag|=n}function Al(...e){const t={};for(let n=0;nie||fe;let Cs,yt,eo="__VUE_INSTANCE_SETTERS__";(yt=Un()[eo])||(yt=Un()[eo]=[]),yt.push(e=>ie=e),Cs=e=>{yt.length>1?yt.forEach(t=>t(e)):yt[0](e)};const St=e=>{Cs(e),e.scope.on()},dt=()=>{ie&&ie.scope.off(),Cs(null)};function mr(e){return e.vnode.shapeFlag&4}let Wt=!1;function Pl(e,t=!1){Wt=t;const{props:n,children:s}=e.vnode,o=mr(e);hl(e,n,o,t),yl(e,s);const r=o?$l(e,t):void 0;return Wt=!1,r}function $l(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ps(new Proxy(e.ctx,sl));const{setup:s}=n;if(s){const o=e.setupContext=s.length>1?yr(e):null;St(e),Mt();const r=tt(s,e,0,[e.props,o]);if(It(),dt(),bo(r)){if(r.then(dt,dt),t)return r.then(i=>{to(e,i,t)}).catch(i=>{vn(i,e,0)});e.asyncDep=r}else to(e,r,t)}else gr(e,t)}function to(e,t,n){$(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:W(t)&&(e.setupState=Do(t)),gr(e,n)}let no;function gr(e,t,n){const s=e.type;if(!e.render){if(!t&&no&&!s.render){const o=s.template||bs(e).template;if(o){const{isCustomElement:r,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:a}=s,f=te(te({isCustomElement:r,delimiters:l},i),a);s.render=no(o,f)}}e.render=s.render||Me}St(e),Mt(),il(e),It(),dt()}function Fl(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return me(e,"get","$attrs"),t[n]}}))}function yr(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Fl(e)},slots:e.slots,emit:e.emit,expose:t}}function Es(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Do(ps(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in kt)return kt[n](e)},has(t,n){return n in t||n in kt}}))}function Nl(e,t=!0){return $(e)?e.displayName||e.name:e.name||t&&e.__name}function Ll(e){return $(e)&&"__vccOpts"in e}const ze=(e,t)=>Mi(e,t,Wt),Rl=Symbol.for("v-scx"),kl=()=>on(Rl),Dl="3.3.4",Bl="http://www.w3.org/2000/svg",ut=typeof document<"u"?document:null,so=ut&&ut.createElement("template"),Hl={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const o=t?ut.createElementNS(Bl,e):ut.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:e=>ut.createTextNode(e),createComment:e=>ut.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ut.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,o,r){const i=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{so.innerHTML=s?`${e}`:e;const l=so.content;if(s){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function jl(e,t,n){const s=e._vtc;s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Ul(e,t,n){const s=e.style,o=Z(n);if(n&&!o){if(t&&!Z(t))for(const r in t)n[r]==null&&ts(s,r,"");for(const r in n)ts(s,r,n[r])}else{const r=s.display;o?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(s.display=r)}}const oo=/\s*!important$/;function ts(e,t,n){if(M(n))n.forEach(s=>ts(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=zl(e,t);oo.test(n)?e.setProperty(At(s),n.replace(oo,""),"important"):e[s]=n}}const ro=["Webkit","Moz","ms"],kn={};function zl(e,t){const n=kn[t];if(n)return n;let s=ke(t);if(s!=="filter"&&s in e)return kn[t]=s;s=yn(s);for(let o=0;oDn||(Xl.then(()=>Dn=0),Dn=Date.now());function Ql(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Ce(Gl(s,n.value),t,5,[s])};return n.value=e,n.attached=Zl(),n}function Gl(e,t){if(M(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>o=>!o._stopped&&s&&s(o))}else return t}const co=/^on[a-z]/,ec=(e,t,n,s,o=!1,r,i,l,a)=>{t==="class"?jl(e,s,o):t==="style"?Ul(e,n,s):hn(t)?ss(t)||Jl(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):tc(e,t,s,o))?Wl(e,t,s,r,i,l,a):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Kl(e,t,s,o))};function tc(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&co.test(t)&&$(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||co.test(t)&&Z(n)?!1:t in e}const Ze="transition",$t="animation",_r={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},nc=te({},Vi,_r),ct=(e,t=[])=>{M(e)?e.forEach(n=>n(...t)):e&&e(...t)},ao=e=>e?M(e)?e.some(t=>t.length>1):e.length>1:!1;function sc(e){const t={};for(const w in e)w in _r||(t[w]=e[w]);if(e.css===!1)return t;const{name:n="v",type:s,duration:o,enterFromClass:r=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=r,appearActiveClass:f=i,appearToClass:d=l,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:b=`${n}-leave-active`,leaveToClass:T=`${n}-leave-to`}=e,k=oc(o),P=k&&k[0],J=k&&k[1],{onBeforeEnter:Q,onEnter:G,onEnterCancelled:ee,onLeave:I,onLeaveCancelled:se,onBeforeAppear:Oe=Q,onAppear:Pe=G,onAppearCancelled:F=ee}=t,Y=(w,V,ge)=>{Qe(w,V?d:l),Qe(w,V?f:i),ge&&ge()},U=(w,V)=>{w._isLeaving=!1,Qe(w,h),Qe(w,T),Qe(w,b),V&&V()},le=w=>(V,ge)=>{const Ot=w?Pe:G,oe=()=>Y(V,w,ge);ct(Ot,[V,oe]),uo(()=>{Qe(V,w?a:r),je(V,w?d:l),ao(Ot)||fo(V,s,P,oe)})};return te(t,{onBeforeEnter(w){ct(Q,[w]),je(w,r),je(w,i)},onBeforeAppear(w){ct(Oe,[w]),je(w,a),je(w,f)},onEnter:le(!1),onAppear:le(!0),onLeave(w,V){w._isLeaving=!0;const ge=()=>U(w,V);je(w,h),vr(),je(w,b),uo(()=>{w._isLeaving&&(Qe(w,h),je(w,T),ao(I)||fo(w,s,J,ge))}),ct(I,[w,ge])},onEnterCancelled(w){Y(w,!1),ct(ee,[w])},onAppearCancelled(w){Y(w,!0),ct(F,[w])},onLeaveCancelled(w){U(w),ct(se,[w])}})}function oc(e){if(e==null)return null;if(W(e))return[Bn(e.enter),Bn(e.leave)];{const t=Bn(e);return[t,t]}}function Bn(e){return Hr(e)}function je(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Qe(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function uo(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let rc=0;function fo(e,t,n,s){const o=e._endId=++rc,r=()=>{o===e._endId&&s()};if(n)return setTimeout(r,n);const{type:i,timeout:l,propCount:a}=br(e,t);if(!i)return s();const f=i+"end";let d=0;const h=()=>{e.removeEventListener(f,b),r()},b=T=>{T.target===e&&++d>=a&&h()};setTimeout(()=>{d(n[k]||"").split(", "),o=s(`${Ze}Delay`),r=s(`${Ze}Duration`),i=po(o,r),l=s(`${$t}Delay`),a=s(`${$t}Duration`),f=po(l,a);let d=null,h=0,b=0;t===Ze?i>0&&(d=Ze,h=i,b=r.length):t===$t?f>0&&(d=$t,h=f,b=a.length):(h=Math.max(i,f),d=h>0?i>f?Ze:$t:null,b=d?d===Ze?r.length:a.length:0);const T=d===Ze&&/\b(transform|all)(,|$)/.test(s(`${Ze}Property`).toString());return{type:d,timeout:h,propCount:b,hasTransform:T}}function po(e,t){for(;e.lengthho(n)+ho(e[s])))}function ho(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function vr(){return document.body.offsetHeight}const xr=new WeakMap,Cr=new WeakMap,Er={name:"TransitionGroup",props:te({},nc,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=hr(),s=Wi();let o,r;return Yo(()=>{if(!o.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!uc(o[0].el,n.vnode.el,i))return;o.forEach(lc),o.forEach(cc);const l=o.filter(ac);vr(),l.forEach(a=>{const f=a.el,d=f.style;je(f,i),d.transform=d.webkitTransform=d.transitionDuration="";const h=f._moveCb=b=>{b&&b.target!==f||(!b||/transform$/.test(b.propertyName))&&(f.removeEventListener("transitionend",h),f._moveCb=null,Qe(f,i))};f.addEventListener("transitionend",h)})}),()=>{const i=D(e),l=sc(i);let a=i.tag||ce;o=r,r=t.default?Vo(t.default()):[];for(let f=0;fdelete e.mode;Er.props;const Tr=Er;function lc(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function cc(e){Cr.set(e,e.el.getBoundingClientRect())}function ac(e){const t=xr.get(e),n=Cr.get(e),s=t.left-n.left,o=t.top-n.top;if(s||o){const r=e.el.style;return r.transform=r.webkitTransform=`translate(${s}px,${o}px)`,r.transitionDuration="0s",e}}function uc(e,t,n){const s=e.cloneNode();e._vtc&&e._vtc.forEach(i=>{i.split(/\s+/).forEach(l=>l&&s.classList.remove(l))}),n.split(/\s+/).forEach(i=>i&&s.classList.add(i)),s.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(s);const{hasTransform:r}=br(s);return o.removeChild(s),r}const fc=te({patchProp:ec},Hl);let mo;function dc(){return mo||(mo=bl(fc))}const pc=(...e)=>{const t=dc().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=hc(s);if(!o)return;const r=t._component;!$(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t};function hc(e){return Z(e)?document.querySelector(e):e}function mc(e){return{all:e=e||new Map,on:function(t,n){var s=e.get(t);s?s.push(n):e.set(t,[n])},off:function(t,n){var s=e.get(t);s&&(n?s.splice(s.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var s=e.get(t);s&&s.slice().map(function(o){o(n)}),(s=e.get("*"))&&s.slice().map(function(o){o(t,n)})}}}const pn=mc(),wr=new Map,go={x:["left","center","right"],y:["top","bottom"]},gc=(e=>()=>e++)(0),yc=e=>typeof e!="string"?[]:e.split(/\s+/gi).filter(t=>t),_c=e=>{typeof e=="string"&&(e=yc(e));let t=null,n=null;return e.forEach(s=>{go.y.indexOf(s)!==-1&&(n=s),go.x.indexOf(s)!==-1&&(t=s)}),{x:t,y:n}};class bc{constructor(t,n,s){this.remaining=n,this.callback=t,this.notifyItem=s,this.resume()}pause(){clearTimeout(this.notifyItem.timer),this.remaining-=Date.now()-this.start}resume(){this.start=Date.now(),clearTimeout(this.notifyItem.timer),this.notifyItem.timer=setTimeout(this.callback,this.remaining)}}const Hn={position:["top","right"],cssAnimation:"vn-fade",velocityAnimation:{enter:e=>({height:[e.clientHeight,0],opacity:[1,0]}),leave:{height:0,opacity:[0,1]}}},vc=Be({name:"velocity-group",emits:["after-leave","leave","enter"],methods:{enter(e,t){this.$emit("enter",e,t)},leave(e,t){this.$emit("leave",e,t)},afterLeave(){this.$emit("after-leave")}}}),Ts=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n};function xc(e,t,n,s,o,r){return q(),De(Tr,{tag:"span",css:!1,onEnter:e.enter,onLeave:e.leave,onAfterLeave:e.afterLeave},{default:Ie(()=>[wt(e.$slots,"default")]),_:3},8,["onEnter","onLeave","onAfterLeave"])}const Cc=Ts(vc,[["render",xc]]),Ec=Be({name:"css-group",inheritAttrs:!1,props:{name:{type:String,required:!0}}});function Tc(e,t,n,s,o,r){return q(),De(Tr,{tag:"span",name:e.name},{default:Ie(()=>[wt(e.$slots,"default")]),_:3},8,["name"])}const wc=Ts(Ec,[["render",Tc]]),jn="[-+]?[0-9]*.?[0-9]+",yo=[{name:"px",regexp:new RegExp(`^${jn}px$`)},{name:"%",regexp:new RegExp(`^${jn}%$`)},{name:"px",regexp:new RegExp(`^${jn}$`)}],Sc=e=>{if(e==="auto")return{type:e,value:0};for(let t=0;t{switch(typeof e){case"number":return{type:"px",value:e};case"string":return Sc(e);default:return{type:"",value:e}}},nn={IDLE:0,DESTROYED:2},Mc=Be({name:"notifications",components:{VelocityGroup:Cc,CssGroup:wc},props:{group:{type:String,default:""},width:{type:[Number,String],default:300},reverse:{type:Boolean,default:!1},position:{type:[String,Array],default:Hn.position},classes:{type:String,default:"vue-notification"},animationType:{type:String,default:"css"},animation:{type:Object,default:Hn.velocityAnimation},animationName:{type:String,default:Hn.cssAnimation},speed:{type:Number,default:300},cooldown:{type:Number,default:0},duration:{type:Number,default:3e3},delay:{type:Number,default:0},max:{type:Number,default:1/0},ignoreDuplicates:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!0},pauseOnHover:{type:Boolean,default:!1}},emits:["click","destroy","start"],data(){return{list:[],velocity:wr.get("velocity"),timerControl:null}},computed:{actualWidth(){return Ac(this.width)},isVA(){return this.animationType==="velocity"},componentName(){return this.isVA?"velocity-group":"css-group"},styles(){const{x:e,y:t}=_c(this.position),n=this.actualWidth.value,s=this.actualWidth.type,o={width:n+s};return t&&(o[t]="0px"),e&&(e==="center"?o.left=`calc(50% - ${+n/2}${s})`:o[e]="0px"),o},active(){return this.list.filter(e=>e.state!==nn.DESTROYED)},botToTop(){return this.styles.hasOwnProperty("bottom")}},mounted(){pn.on("add",this.addItem),pn.on("close",this.closeItem)},methods:{destroyIfNecessary(e){this.$emit("click",e),this.closeOnClick&&this.destroy(e)},pauseTimeout(){var e;this.pauseOnHover&&((e=this.timerControl)==null||e.pause())},resumeTimeout(){var e;this.pauseOnHover&&((e=this.timerControl)==null||e.resume())},addItem(e={}){if(e.group||(e.group=""),e.data||(e.data={}),this.group!==e.group)return;if(e.clean||e.clear){this.destroyAll();return}const t=typeof e.duration=="number"?e.duration:this.duration,n=typeof e.speed=="number"?e.speed:this.speed,s=typeof e.ignoreDuplicates=="boolean"?e.ignoreDuplicates:this.ignoreDuplicates,{title:o,text:r,type:i,data:l,id:a}=e,f={id:a||gc(),title:o,text:r,type:i,state:nn.IDLE,speed:n,length:t+2*n,data:l};t>=0&&(this.timerControl=new bc(()=>this.destroy(f),f.length,f));const d=this.reverse?!this.botToTop:this.botToTop;let h=-1;const b=this.active.some(T=>T.title===e.title&&T.text===e.text);(!s||!b)&&(d?(this.list.push(f),this.$emit("start",f),this.active.length>this.max&&(h=0)):(this.list.unshift(f),this.$emit("start",f),this.active.length>this.max&&(h=this.active.length-1)),h!==-1&&this.destroy(this.active[h]))},closeItem(e){this.destroyById(e)},notifyClass(e){return["vue-notification-template",this.classes,e.type||""]},notifyWrapperStyle(e){return this.isVA?void 0:{transition:`all ${e.speed}ms`}},destroy(e){clearTimeout(e.timer),e.state=nn.DESTROYED,this.clean(),this.$emit("destroy",e)},destroyById(e){const t=this.list.find(n=>n.id===e);t&&this.destroy(t)},destroyAll(){this.active.forEach(this.destroy)},getAnimation(e,t){var n;const s=(n=this.animation)==null?void 0:n[e];return typeof s=="function"?s.call(this,t):s},enter(e,t){if(!this.isVA)return;const n=this.getAnimation("enter",e);this.velocity(e,n,{duration:this.speed,complete:t})},leave(e,t){if(!this.isVA)return;const n=this.getAnimation("leave",e);this.velocity(e,n,{duration:this.speed,complete:t})},clean(){this.list=this.list.filter(e=>e.state!==nn.DESTROYED)}}}),Ic=["data-id"],Oc=["onClick"],Pc=["innerHTML"],$c=["innerHTML"];function Fc(e,t,n,s,o,r){return q(),_e("div",{class:"vue-notification-group",style:We(e.styles)},[(q(),De(Qo(e.componentName),{name:e.animationName,onEnter:e.enter,onLeave:e.leave,onAfterLeave:e.clean},{default:Ie(()=>[(q(!0),_e(ce,null,er(e.active,i=>(q(),_e("div",{key:i.id,class:"vue-notification-wrapper",style:We(e.notifyWrapperStyle(i)),"data-id":i.id,onMouseenter:t[0]||(t[0]=(...l)=>e.pauseTimeout&&e.pauseTimeout(...l)),onMouseleave:t[1]||(t[1]=(...l)=>e.resumeTimeout&&e.resumeTimeout(...l))},[wt(e.$slots,"body",{class:Ve([e.classes,i.type]),item:i,close:()=>e.destroy(i)},()=>[R("div",{class:Ve(e.notifyClass(i)),onClick:l=>e.destroyIfNecessary(i)},[i.title?(q(),_e("div",{key:0,class:"notification-title",innerHTML:i.title},null,8,Pc)):Lt("",!0),R("div",{class:"notification-content",innerHTML:i.text},null,8,$c)],10,Oc)])],44,Ic))),128))]),_:3},40,["name","onEnter","onLeave","onAfterLeave"]))],4)}const Nc=Ts(Mc,[["render",Fc]]),xe=e=>{typeof e=="string"&&(e={title:"",text:e}),typeof e=="object"&&pn.emit("add",e)};xe.close=e=>{pn.emit("close",e)};function Lc(e,t={}){Object.entries(t).forEach(s=>wr.set(...s));const n=t.name||"notify";e.config.globalProperties["$"+n]=xe,e.component(t.componentName||"Notifications",Nc)}const Rc={install:Lc};(function(){var e;try{if(typeof document<"u"){var t=document.createElement("style");t.nonce=(e=document.head.querySelector("meta[property=csp-nonce]"))==null?void 0:e.content,t.appendChild(document.createTextNode(".vue-notification-group{display:block;position:fixed;z-index:5000}.vue-notification-wrapper{display:block;overflow:hidden;width:100%;margin:0;padding:0}.notification-title{font-weight:600}.vue-notification-template{display:block;box-sizing:border-box;background:white;text-align:left}.vue-notification{display:block;box-sizing:border-box;text-align:left;font-size:12px;padding:10px;margin:0 5px 5px;color:#fff;background:#44A4FC;border-left:5px solid #187FE7}.vue-notification.warn{background:#ffb648;border-left-color:#f48a06}.vue-notification.error{background:#E54D42;border-left-color:#b82e24}.vue-notification.success{background:#68CD86;border-left-color:#42a85f}.vn-fade-enter-active,.vn-fade-leave-active,.vn-fade-move{transition:all .5s}.vn-fade-enter-from,.vn-fade-leave-to{opacity:0}")),document.head.appendChild(t)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}})();const re=Vt({transitionTime:200,animationType:"slideDown",modalStyle:{padding:void 0,align:"center","z-index":201},overlayStyle:{"background-color":"rgba(0, 0, 0, 0.9)","z-index":200}});function kc(e){var t,n,s,o,r;e!=null&&e.transitionTime&&(re.transitionTime=e.transitionTime),e!=null&&e.animationType&&(re.animationType=e.animationType),e!=null&&e.modalStyle&&((t=e.modalStyle)!=null&&t.padding&&(re.modalStyle.padding=e.modalStyle.padding),(n=e.modalStyle)!=null&&n.align&&(re.modalStyle.align=e.modalStyle.align),(s=e.modalStyle)!=null&&s["z-index"]&&(re.modalStyle["z-index"]=e.modalStyle["z-index"])),(o=e==null?void 0:e.overlayStyle)!=null&&o["z-index"]&&(re.overlayStyle["z-index"]=e.overlayStyle["z-index"]),(r=e==null?void 0:e.overlayStyle)!=null&&r["background-color"]&&(re.overlayStyle["background-color"]=e.overlayStyle["background-color"])}const Ee=Vt({modals:[]});ze(()=>Ee.modals.length>0);function Dc(e,t,n){Ee.modals.push(ps({component:e,props:t,options:n}))}function Bc(){Ee.modals.pop()}var Hc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Sr={exports:{}};(function(e,t){(function(n,s){e.exports=s(),e.exports.default=e.exports})(Hc,function(){var n=function(){this.listeners={},this.registerListener=function(o,r,i){var l=o.constructor.name;i=this.validateNumber(i||"any"),l!=="Array"&&(o=[o]),o.forEach(function(a){if(a.constructor.name!=="String")throw new Error("Only `String` and array of `String` are accepted for the event names!");s.listeners[a]=s.listeners[a]||[],s.listeners[a].push({callback:r,number:i})})},this.validateNumber=function(o){var r=o.constructor.name;if(r==="Number")return o;if(r==="String"&&o.toLowerCase()==="any")return"any";throw new Error("Only `Number` and `any` are accepted in the number of possible executions!")},this.toBeRemoved=function(o){var r=o.number;return o.execution=o.execution||0,o.execution++,!(r==="any"||o.execution=0)){var a=l.replace(/\*\*/,"([^.]+.?)+");a=a.replace(/\*/g,"[^.]+");var f=o.match(a);f&&o===f[0]&&Array.prototype.push.apply(i,s.listeners[l])}var d=arguments;r=r||this,i.forEach(function(h,b){var T=h.callback;h.number,r&&(T=T.bind(r));var k=[];Object.keys(d).map(function(P){P>1&&k.push(d[P])}),s.toBeRemoved(h)&&s.listeners[o].splice(b,1),T.apply(null,k)})}}};return n})})(Sr);var Uc=Sr.exports;const zc=jc(Uc),ws=new zc;function ht(e,...t){ws.emit(e,null,...t)}function Ke(e,t){ws.on(e,t)}function nt(e,t){ws.detach(e,t)}var z=(e=>(e.Open="open",e.Opened="opened",e.Close="close",e.Closed="closed",e))(z||{});function Kc(e){return"key"in e?e.key==="Escape"||e.key==="Esc":e.keyCode===27}async function Bt(e,t,n){n!=null&&n.force&&await As(!1);const s=Ee.modals.length;return Dc(e,t),ht(z.Open),new Promise((o,r)=>{function i(l){l.index===s&&(nt(z.Closed,i),l.success?o(l.data):r())}Ke(z.Closed,i)})}function Ss(e){return new Promise(t=>{function n(s){nt(z.Closed,n),t(s.data)}Ke(z.Closed,n),ht(z.Close,{success:!0,data:e})})}function qt(){return new Promise(e=>{function t(){nt(z.Closed,t),e()}Ke(z.Closed,t),ht(z.Close,{success:!1})})}function As(e=!0){return new Promise(t=>{function n(){nt(z.Closed,n);for(let s=Ee.modals.length-1;s>=0;s--)Ee.modals.splice(s,1),ht(z.Closed,{index:s,success:!1});t()}Ke(z.Closed,n),ht(z.Close,{success:!1,forceCloseAll:e})})}const Wc=Be({__name:"BaseModal",props:{index:{type:Number,required:!0}},setup(e){const t=e,n=ms(!1),s=ze(()=>t.index!==Ee.modals.length-1),o=ze(()=>re.animationType!=="none"&&re.transitionTime||0),r=ze(()=>{var d,h;return{padding:(d=re.modalStyle)==null?void 0:d.padding,"z-index":(h=re.modalStyle)==null?void 0:h["z-index"]}}),i=ze(()=>({transition:`opacity ${o.value}ms ease, visibility ${o.value}ms ease, transform ${o.value}ms ease`})),l=ze(()=>{var d;return[{"vue-modal__inner--active":n.value,"vue-modal__inner--hide":s.value,"vue-modal__inner--center":((d=re.modalStyle)==null?void 0:d.align)==="center"},`vue-modal__inner--${re.animationType}`]});function a(d){Ee.modals.length-1===t.index&&(n.value=!1,setTimeout(ht,o.value,z.Closed,{index:t.index,success:d.success,data:d.data}))}function f(d){Kc(d)&&Ee.modals.length-1===t.index&&qt()}return Tn(()=>{setTimeout(()=>{n.value=!0},t.index>0?o.value:0),Ke(z.Close,a),document.addEventListener("keydown",f),ht(z.Opened)}),wn(()=>{nt(z.Close,a),document.removeEventListener("keydown",f)}),(d,h)=>(q(),_e("div",{class:"vue-modal",style:We(r.value)},[R("div",{class:Ve(["vue-modal__inner",l.value]),style:We(i.value)},[wt(d.$slots,"default",{},void 0,!0)],6)],4))}});const In=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n},Vc=In(Wc,[["__scopeId","data-v-75f88310"]]);function qc(){var s;const e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",document.body.appendChild(e);const t=document.createElement("div");e.appendChild(t);const n=e.offsetWidth-t.offsetWidth;return(s=e.parentNode)==null||s.removeChild(e),n}function Jc(){const e=ms(qc());function t(){document.documentElement.style.overflow="hidden",document.documentElement.scrollHeight>document.documentElement.clientHeight&&(document.body.style.paddingRight=`${e.value}px`)}function n(){document.documentElement.style.overflow="auto",document.body.style.paddingRight="0px"}function s(o){o?t():n()}return{paddingSize:e,toggleLock:s}}const Yc={class:"vue-modals"},Xc=Be({__name:"ModalTarget",setup(e){const t=re.animationType!=="none"&&re.transitionTime||0,n=ze(()=>({...re==null?void 0:re.overlayStyle,transition:`opacity ${t}ms ease, visibility ${t}ms ease`})),s=ms(!1),o=ze(()=>Ee.modals.length&&!s.value);function r({forceCloseAll:f}){(Ee.modals.length===1&&f!==!1||f)&&(s.value=!0,setTimeout(()=>{s.value=!1},t))}const i=Jc();function l(){i.toggleLock(!1)}function a(){i.toggleLock(!0)}return Tn(()=>{Ke(z.Close,r),Ke(z.Closed,l),Ke(z.Open,a)}),wn(()=>{nt(z.Close,r),nt(z.Closed,l),nt(z.Open,a)}),(f,d)=>(q(),_e("div",Yc,[(q(!0),_e(ce,null,er(be(Ee).modals,(h,b)=>(q(),De(Vc,{index:b,key:b},{default:Ie(()=>[(q(),De(Qo(h.component),Wr(pr(h.props)),null,16))]),_:2},1032,["index"]))),128)),R("div",{class:Ve(["vue-modals-overlay",{active:o.value}]),style:We(n.value)},null,6)]))}});const Ar=In(Xc,[["__scopeId","data-v-48abfbb2"]]),Zc={key:0,class:"vue-modal-header"},Qc={key:0,class:"vue-modal-title"},Gc={class:"vue-modal-body"},ea={key:1,class:"vue-modal-footer"},ta=Be({__name:"SimpleModal",props:{title:{},showClose:{type:Boolean,default:!0},size:{type:String,default:"sm",validator(e){return["sm","md","lg","xl","xxl"].includes(e)}}},setup(e){const t=e,n=ol();return(s,o)=>(q(),_e("div",{class:Ve(["vue-modal-content",`size-${t.size}`])},[t.title||t.showClose?(q(),_e("div",Zc,[t.title?(q(),_e("h1",Qc,_n(t.title),1)):Lt("",!0),t.showClose?(q(),_e("button",{key:1,onClick:o[0]||(o[0]=r=>be(qt)()),class:"vue-modal-btn-close","aria-label":"Close"})):Lt("",!0)])):Lt("",!0),R("div",Gc,[wt(s.$slots,"default",{},void 0,!0)]),be(n).footer?(q(),_e("div",ea,[wt(s.$slots,"footer",{},void 0,!0)])):Lt("",!0)],2))}});const na=In(ta,[["__scopeId","data-v-39a87773"]]);function sa(e){return{install(t){kc(e||{}),t.component("ModalTarget",Ar),t.component("SimpleModal",na),Ke(z.Closed,Bc)}}}const Mr=Be({__name:"Test3Modal",props:{test:{}},setup(e){const t=e;return(n,s)=>{const o=Sn("SimpleModal");return q(),De(o,{title:"Modal3",size:"sm"},{footer:Ie(()=>[R("button",{onClick:s[0]||(s[0]=r=>be(As)()),class:"btn btn-outline-danger"}," Close All "),R("button",{onClick:s[1]||(s[1]=r=>be(qt)()),class:"btn btn-danger"}," Close "),R("button",{onClick:s[2]||(s[2]=r=>be(Ss)({test:"modal3"})),class:"btn btn-success"}," Confirm ")]),default:Ie(()=>[R("pre",null,"props: "+_n(t),1)]),_:1})}}}),oa={class:"gap-2 d-flex"},Ir=Be({__name:"Test2Modal",props:{test:{}},setup(e){const t=e;function n(s=!1){Bt(Mr,{test:"modal3 from modal2"},{force:s}).then(o=>{xe({type:"success",title:"Success modal3 from modal2",text:JSON.stringify(o)})}).catch(()=>{xe({type:"error",title:"Error modal3 from modal2"})})}return(s,o)=>{const r=Sn("SimpleModal");return q(),De(r,{title:"Modal2",size:"sm"},{footer:Ie(()=>[R("button",{onClick:o[2]||(o[2]=i=>be(As)()),class:"btn btn-outline-danger"}," Close All "),R("button",{onClick:o[3]||(o[3]=i=>be(qt)()),class:"btn btn-danger"}," Close "),R("button",{onClick:o[4]||(o[4]=i=>be(Ss)({test:"modal2"})),class:"btn btn-success"}," Confirm ")]),default:Ie(()=>[R("pre",null,"props: "+_n(t),1),R("div",oa,[R("button",{onClick:o[0]||(o[0]=i=>n(!0)),class:"btn btn-primary"}," Force open modal3 "),R("button",{onClick:o[1]||(o[1]=i=>n()),class:"btn btn-primary"}," Open modal3 ")])]),_:1})}}}),ra={class:"gap-2 d-flex"},ia=Be({__name:"Test1Modal",props:{test:{}},setup(e){const t=e;function n(s=!1){Bt(Ir,{test:"modal2 from modal1"},{force:s}).then(o=>{xe({type:"success",title:"Success modal2 from modal1",text:JSON.stringify(o)})}).catch(()=>{xe({type:"error",title:"Error modal2 from modal1"})})}return(s,o)=>{const r=Sn("SimpleModal");return q(),De(r,{title:"Modal1"},{footer:Ie(()=>[R("button",{onClick:o[2]||(o[2]=i=>be(qt)()),class:"btn btn-danger"}," Close "),R("button",{onClick:o[3]||(o[3]=i=>be(Ss)({test:"modal1"})),class:"btn btn-success"}," Confirm ")]),default:Ie(()=>[R("pre",null,"props: "+_n(t),1),R("div",ra,[R("button",{onClick:o[0]||(o[0]=i=>n(!0)),class:"btn btn-primary"}," Force open modal2 "),R("button",{onClick:o[1]||(o[1]=i=>n()),class:"btn btn-primary"}," Open modal2 ")])]),_:1})}}}),Or=e=>(Ri("data-v-7aa35284"),e=e(),ki(),e),la=Or(()=>R("div",{class:"mb-3 d-grid gap-2 d-sm-flex"},[R("img",{src:"https://img.shields.io/static/v1?label=Made%20with&message=VueJS&color=limegreen&style=for-the-badge&logo=vue.js",alt:"vuejs"})],-1)),ca=Or(()=>R("iframe",{src:"https://ghbtns.com/github-btn.html?user=kolirt&repo=vue-modal&type=star&count=true&size=large",frameborder:"0",scrolling:"0",width:"170",height:"30",title:"GitHub",class:"mb-3"},` - `,-1)),aa=Sl('

Vue3 modal package

Easy to use and highly customizable Vue3 modal package

',3),ua=Be({__name:"App",setup(e){function t(){Bt(ia,{test:"modal1"}).then(o=>{xe({type:"success",title:"Success modal1",text:JSON.stringify(o)})}).catch(()=>{xe({type:"error",title:"Error modal1"})})}function n(){Bt(Ir,{test:"modal2"}).then(o=>{xe({type:"success",title:"Success modal2",text:JSON.stringify(o)})}).catch(()=>{xe({type:"error",title:"Error modal2"})})}function s(){Bt(Mr,{test:"modal3"}).then(o=>{xe({type:"success",title:"Success modal3",text:JSON.stringify(o)})}).catch(()=>{xe({type:"error",title:"Error modal3"})})}return(o,r)=>{const i=Sn("notifications");return q(),_e(ce,null,[R("div",{class:"container py-5"},[R("div",{class:"bg-body-secondary p-5 rounded"},[la,ca,aa,R("div",{class:"d-grid gap-2 d-sm-flex"},[R("button",{onClick:t,class:"btn btn-primary"}," Open modal1 "),R("button",{onClick:n,class:"btn btn-primary"}," Open modal2 "),R("button",{onClick:s,class:"btn btn-primary"}," Open modal3 ")])])]),he(i,{class:"notifications"}),he(be(Ar))],64)}}});const fa=In(ua,[["__scopeId","data-v-7aa35284"]]);const Ms=pc(fa);Ms.use(Rc);Ms.use(sa({transitionTime:200,animationType:"slideUp",modalStyle:{padding:"2rem 1rem"},overlayStyle:{"background-color":"rgba(0,0,0,.3)"}}));Ms.mount("#app"); +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const i of r.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();function ns(e,t){const n=Object.create(null),s=e.split(",");for(let o=0;o!!n[o.toLowerCase()]:o=>!!n[o]}const K={},_t=[],Me=()=>{},Fr=()=>!1,Nr=/^on[^a-z]/,hn=e=>Nr.test(e),ss=e=>e.startsWith("onUpdate:"),te=Object.assign,os=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Lr=Object.prototype.hasOwnProperty,L=(e,t)=>Lr.call(e,t),M=Array.isArray,xt=e=>mn(e)==="[object Map]",bo=e=>mn(e)==="[object Set]",P=e=>typeof e=="function",Z=e=>typeof e=="string",rs=e=>typeof e=="symbol",W=e=>e!==null&&typeof e=="object",vo=e=>W(e)&&P(e.then)&&P(e.catch),_o=Object.prototype.toString,mn=e=>_o.call(e),Rr=e=>mn(e).slice(8,-1),xo=e=>mn(e)==="[object Object]",is=e=>Z(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,sn=ns(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),gn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},kr=/-(\w)/g,ke=gn(e=>e.replace(kr,(t,n)=>n?n.toUpperCase():"")),Dr=/\B([A-Z])/g,At=gn(e=>e.replace(Dr,"-$1").toLowerCase()),yn=gn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Pn=gn(e=>e?`on${yn(e)}`:""),Ht=(e,t)=>!Object.is(e,t),Fn=(e,t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Br=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Hr=e=>{const t=Z(e)?Number(e):NaN;return isNaN(t)?e:t};let Ns;const Un=()=>Ns||(Ns=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function nt(e){if(M(e)){const t={};for(let n=0;n{if(n){const s=n.split(Ur);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Ke(e){let t="";if(Z(e))t=e;else if(M(e))for(let n=0;nZ(e)?e:e==null?"":M(e)||W(e)&&(e.toString===_o||!P(e.toString))?JSON.stringify(e,Eo,2):String(e),Eo=(e,t)=>t&&t.__v_isRef?Eo(e,t.value):xt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,o])=>(n[`${s} =>`]=o,n),{})}:bo(t)?{[`Set(${t.size})`]:[...t.values()]}:W(t)&&!M(t)&&!xo(t)?String(t):t;let we;class Jr{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=we,!t&&we&&(this.index=(we.scopes||(we.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=we;try{return we=this,t()}finally{we=n}}}on(){we=this}off(){we=this.parent}stop(t){if(this._active){let n,s;for(n=0,s=this.effects.length;n{const t=new Set(e);return t.w=0,t.n=0,t},To=e=>(e.w&st)>0,wo=e=>(e.n&st)>0,Zr=({deps:e})=>{if(e.length)for(let t=0;t{const{deps:t}=e;if(t.length){let n=0;for(let s=0;s{(d==="length"||d>=a)&&l.push(u)})}else switch(n!==void 0&&l.push(i.get(n)),t){case"add":M(e)?is(n)&&l.push(i.get("length")):(l.push(i.get(ft)),xt(e)&&l.push(i.get(Wn)));break;case"delete":M(e)||(l.push(i.get(ft)),xt(e)&&l.push(i.get(Wn)));break;case"set":xt(e)&&l.push(i.get(ft));break}if(l.length===1)l[0]&&Vn(l[0]);else{const a=[];for(const u of l)u&&a.push(...u);Vn(ls(a))}}function Vn(e,t){const n=M(e)?e:[...e];for(const s of n)s.computed&&Rs(s);for(const s of n)s.computed||Rs(s)}function Rs(e,t){(e!==Se||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const Gr=ns("__proto__,__v_isRef,__isVue"),Mo=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(rs)),ei=as(),ti=as(!1,!0),ni=as(!0),ks=si();function si(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const s=D(this);for(let r=0,i=this.length;r{e[t]=function(...n){Mt();const s=D(this)[t].apply(this,n);return Ot(),s}}),e}function oi(e){const t=D(this);return me(t,"has",e),t.hasOwnProperty(e)}function as(e=!1,t=!1){return function(s,o,r){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_isShallow")return t;if(o==="__v_raw"&&r===(e?t?_i:Fo:t?Po:$o).get(s))return s;const i=M(s);if(!e){if(i&&L(ks,o))return Reflect.get(ks,o,r);if(o==="hasOwnProperty")return oi}const l=Reflect.get(s,o,r);return(rs(o)?Mo.has(o):Gr(o))||(e||me(s,"get",o),t)?l:ue(l)?i&&is(o)?l:l.value:W(l)?e?No(l):Vt(l):l}}const ri=Oo(),ii=Oo(!0);function Oo(e=!1){return function(n,s,o,r){let i=n[s];if(Tt(i)&&ue(i)&&!ue(o))return!1;if(!e&&(!an(o)&&!Tt(o)&&(i=D(i),o=D(o)),!M(n)&&ue(i)&&!ue(o)))return i.value=o,!0;const l=M(n)&&is(s)?Number(s)e,vn=e=>Reflect.getPrototypeOf(e);function Xt(e,t,n=!1,s=!1){e=e.__v_raw;const o=D(e),r=D(t);n||(t!==r&&me(o,"get",t),me(o,"get",r));const{has:i}=vn(o),l=s?us:n?hs:jt;if(i.call(o,t))return l(e.get(t));if(i.call(o,r))return l(e.get(r));e!==o&&e.get(t)}function Zt(e,t=!1){const n=this.__v_raw,s=D(n),o=D(e);return t||(e!==o&&me(s,"has",e),me(s,"has",o)),e===o?n.has(e):n.has(e)||n.has(o)}function Qt(e,t=!1){return e=e.__v_raw,!t&&me(D(e),"iterate",ft),Reflect.get(e,"size",e)}function Ds(e){e=D(e);const t=D(this);return vn(t).has.call(t,e)||(t.add(e),We(t,"add",e,e)),this}function Bs(e,t){t=D(t);const n=D(this),{has:s,get:o}=vn(n);let r=s.call(n,e);r||(e=D(e),r=s.call(n,e));const i=o.call(n,e);return n.set(e,t),r?Ht(t,i)&&We(n,"set",e,t):We(n,"add",e,t),this}function Hs(e){const t=D(this),{has:n,get:s}=vn(t);let o=n.call(t,e);o||(e=D(e),o=n.call(t,e)),s&&s.call(t,e);const r=t.delete(e);return o&&We(t,"delete",e,void 0),r}function js(){const e=D(this),t=e.size!==0,n=e.clear();return t&&We(e,"clear",void 0,void 0),n}function Gt(e,t){return function(s,o){const r=this,i=r.__v_raw,l=D(i),a=t?us:e?hs:jt;return!e&&me(l,"iterate",ft),i.forEach((u,d)=>s.call(o,a(u),a(d),r))}}function en(e,t,n){return function(...s){const o=this.__v_raw,r=D(o),i=xt(r),l=e==="entries"||e===Symbol.iterator&&i,a=e==="keys"&&i,u=o[e](...s),d=n?us:t?hs:jt;return!t&&me(r,"iterate",a?Wn:ft),{next(){const{value:g,done:v}=u.next();return v?{value:g,done:v}:{value:l?[d(g[0]),d(g[1])]:d(g),done:v}},[Symbol.iterator](){return this}}}}function Je(e){return function(...t){return e==="delete"?!1:this}}function di(){const e={get(r){return Xt(this,r)},get size(){return Qt(this)},has:Zt,add:Ds,set:Bs,delete:Hs,clear:js,forEach:Gt(!1,!1)},t={get(r){return Xt(this,r,!1,!0)},get size(){return Qt(this)},has:Zt,add:Ds,set:Bs,delete:Hs,clear:js,forEach:Gt(!1,!0)},n={get(r){return Xt(this,r,!0)},get size(){return Qt(this,!0)},has(r){return Zt.call(this,r,!0)},add:Je("add"),set:Je("set"),delete:Je("delete"),clear:Je("clear"),forEach:Gt(!0,!1)},s={get(r){return Xt(this,r,!0,!0)},get size(){return Qt(this,!0)},has(r){return Zt.call(this,r,!0)},add:Je("add"),set:Je("set"),delete:Je("delete"),clear:Je("clear"),forEach:Gt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=en(r,!1,!1),n[r]=en(r,!0,!1),t[r]=en(r,!1,!0),s[r]=en(r,!0,!0)}),[e,n,t,s]}const[pi,hi,mi,gi]=di();function fs(e,t){const n=t?e?gi:mi:e?hi:pi;return(s,o,r)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?s:Reflect.get(L(n,o)&&o in s?n:s,o,r)}const yi={get:fs(!1,!1)},bi={get:fs(!1,!0)},vi={get:fs(!0,!1)},$o=new WeakMap,Po=new WeakMap,Fo=new WeakMap,_i=new WeakMap;function xi(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function Ci(e){return e.__v_skip||!Object.isExtensible(e)?0:xi(Rr(e))}function Vt(e){return Tt(e)?e:ds(e,!1,Io,yi,$o)}function Ei(e){return ds(e,!1,fi,bi,Po)}function No(e){return ds(e,!0,ui,vi,Fo)}function ds(e,t,n,s,o){if(!W(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=o.get(e);if(r)return r;const i=Ci(e);if(i===0)return e;const l=new Proxy(e,i===2?s:n);return o.set(e,l),l}function Ct(e){return Tt(e)?Ct(e.__v_raw):!!(e&&e.__v_isReactive)}function Tt(e){return!!(e&&e.__v_isReadonly)}function an(e){return!!(e&&e.__v_isShallow)}function Lo(e){return Ct(e)||Tt(e)}function D(e){const t=e&&e.__v_raw;return t?D(t):e}function ps(e){return cn(e,"__v_skip",!0),e}const jt=e=>W(e)?Vt(e):e,hs=e=>W(e)?No(e):e;function Ro(e){Ge&&Se&&(e=D(e),Ao(e.dep||(e.dep=ls())))}function ko(e,t){e=D(e);const n=e.dep;n&&Vn(n)}function ue(e){return!!(e&&e.__v_isRef===!0)}function ms(e){return Ti(e,!1)}function Ti(e,t){return ue(e)?e:new wi(e,t)}class wi{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:D(t),this._value=n?t:jt(t)}get value(){return Ro(this),this._value}set value(t){const n=this.__v_isShallow||an(t)||Tt(t);t=n?t:D(t),Ht(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:jt(t),ko(this))}}function ve(e){return ue(e)?e.value:e}const Si={get:(e,t,n)=>ve(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const o=e[t];return ue(o)&&!ue(n)?(o.value=n,!0):Reflect.set(e,t,n,s)}};function Do(e){return Ct(e)?e:new Proxy(e,Si)}class Ai{constructor(t,n,s,o){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new cs(t,()=>{this._dirty||(this._dirty=!0,ko(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=s}get value(){const t=D(this);return Ro(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function Mi(e,t,n=!1){let s,o;const r=P(e);return r?(s=e,o=Me):(s=e.get,o=e.set),new Ai(s,o,r||!o,n)}function et(e,t,n,s){let o;try{o=s?e(...s):e()}catch(r){_n(r,t,n)}return o}function Ce(e,t,n,s){if(P(e)){const r=et(e,t,n,s);return r&&vo(r)&&r.catch(i=>{_n(i,t,n)}),r}const o=[];for(let r=0;r>>1;zt(ae[s])Re&&ae.splice(t,1)}function Fi(e){M(e)?Et.push(...e):(!Ue||!Ue.includes(e,e.allowRecurse?at+1:at))&&Et.push(e),Ho()}function Us(e,t=Ut?Re+1:0){for(;tzt(n)-zt(s)),at=0;ate.id==null?1/0:e.id,Ni=(e,t)=>{const n=zt(e)-zt(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Uo(e){qn=!1,Ut=!0,ae.sort(Ni);const t=Me;try{for(Re=0;ReZ(T)?T.trim():T)),g&&(o=n.map(Br))}let l,a=s[l=Pn(t)]||s[l=Pn(ke(t))];!a&&r&&(a=s[l=Pn(At(t))]),a&&Ce(a,e,6,o);const u=s[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Ce(u,e,6,o)}}function zo(e,t,n=!1){const s=t.emitsCache,o=s.get(e);if(o!==void 0)return o;const r=e.emits;let i={},l=!1;if(!P(e)){const a=u=>{const d=zo(u,t,!0);d&&(l=!0,te(i,d))};!n&&t.mixins.length&&t.mixins.forEach(a),e.extends&&a(e.extends),e.mixins&&e.mixins.forEach(a)}return!r&&!l?(W(e)&&s.set(e,null),null):(M(r)?r.forEach(a=>i[a]=null):te(i,r),W(e)&&s.set(e,i),i)}function xn(e,t){return!e||!hn(t)?!1:(t=t.slice(2).replace(/Once$/,""),L(e,t[0].toLowerCase()+t.slice(1))||L(e,At(t))||L(e,t))}let fe=null,Cn=null;function un(e){const t=fe;return fe=e,Cn=e&&e.type.__scopeId||null,t}function Ri(e){Cn=e}function ki(){Cn=null}function Oe(e,t=fe,n){if(!t||e._n)return e;const s=(...o)=>{s._d&&Gs(-1);const r=un(t);let i;try{i=e(...o)}finally{un(r),s._d&&Gs(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function Nn(e){const{type:t,vnode:n,proxy:s,withProxy:o,props:r,propsOptions:[i],slots:l,attrs:a,emit:u,render:d,renderCache:g,data:v,setupState:T,ctx:R,inheritAttrs:$}=e;let J,Q;const G=un(e);try{if(n.shapeFlag&4){const O=o||s;J=Le(d.call(O,O,g,r,T,v,R)),Q=a}else{const O=t;J=Le(O.length>1?O(r,{attrs:a,slots:l,emit:u}):O(r,null)),Q=t.props?a:Di(a)}}catch(O){Dt.length=0,_n(O,e,1),J=he(Ve)}let ee=J;if(Q&&$!==!1){const O=Object.keys(Q),{shapeFlag:se}=ee;O.length&&se&7&&(i&&O.some(ss)&&(Q=Bi(Q,i)),ee=pt(ee,Q))}return n.dirs&&(ee=pt(ee),ee.dirs=ee.dirs?ee.dirs.concat(n.dirs):n.dirs),n.transition&&(ee.transition=n.transition),J=ee,un(G),J}const Di=e=>{let t;for(const n in e)(n==="class"||n==="style"||hn(n))&&((t||(t={}))[n]=e[n]);return t},Bi=(e,t)=>{const n={};for(const s in e)(!ss(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function Hi(e,t,n){const{props:s,children:o,component:r}=e,{props:i,children:l,patchFlag:a}=t,u=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&a>=0){if(a&1024)return!0;if(a&16)return s?zs(s,i,u):!!i;if(a&8){const d=t.dynamicProps;for(let g=0;ge.__isSuspense;function zi(e,t){t&&t.pendingBranch?M(e)?t.effects.push(...e):t.effects.push(e):Fi(e)}const tn={};function Ln(e,t,n){return Ko(e,t,n)}function Ko(e,t,{immediate:n,deep:s,flush:o,onTrack:r,onTrigger:i}=K){var l;const a=Xr()===((l=ie)==null?void 0:l.scope)?ie:null;let u,d=!1,g=!1;if(ue(e)?(u=()=>e.value,d=an(e)):Ct(e)?(u=()=>e,s=!0):M(e)?(g=!0,d=e.some(O=>Ct(O)||an(O)),u=()=>e.map(O=>{if(ue(O))return O.value;if(Ct(O))return vt(O);if(P(O))return et(O,a,2)})):P(e)?t?u=()=>et(e,a,2):u=()=>{if(!(a&&a.isUnmounted))return v&&v(),Ce(e,a,3,[T])}:u=Me,t&&s){const O=u;u=()=>vt(O())}let v,T=O=>{v=G.onStop=()=>{et(O,a,4)}},R;if(Wt)if(T=Me,t?n&&Ce(t,a,3,[u(),g?[]:void 0,T]):u(),o==="sync"){const O=kl();R=O.__watcherHandles||(O.__watcherHandles=[])}else return Me;let $=g?new Array(e.length).fill(tn):tn;const J=()=>{if(G.active)if(t){const O=G.run();(s||d||(g?O.some((se,Ie)=>Ht(se,$[Ie])):Ht(O,$)))&&(v&&v(),Ce(t,a,3,[O,$===tn?void 0:g&&$[0]===tn?[]:$,T]),$=O)}else G.run()};J.allowRecurse=!!t;let Q;o==="sync"?Q=J:o==="post"?Q=()=>pe(J,a&&a.suspense):(J.pre=!0,a&&(J.id=a.uid),Q=()=>ys(J));const G=new cs(u,Q);t?n?J():$=G.run():o==="post"?pe(G.run.bind(G),a&&a.suspense):G.run();const ee=()=>{G.stop(),a&&a.scope&&os(a.scope.effects,G)};return R&&R.push(ee),ee}function Ki(e,t,n){const s=this.proxy,o=Z(e)?e.includes(".")?Wo(s,e):()=>s[e]:e.bind(s,s);let r;P(t)?r=t:(r=t.handler,n=t);const i=ie;St(this);const l=Ko(o,r.bind(s),n);return i?St(i):dt(),l}function Wo(e,t){const n=t.split(".");return()=>{let s=e;for(let o=0;o{vt(n,t)});else if(xo(e))for(const n in e)vt(e[n],t);return e}function it(e,t,n,s){const o=e.dirs,r=t&&t.dirs;for(let i=0;i{e.isMounted=!0}),wn(()=>{e.isUnmounting=!0}),e}const _e=[Function,Array],Vi={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:_e,onEnter:_e,onAfterEnter:_e,onEnterCancelled:_e,onBeforeLeave:_e,onLeave:_e,onAfterLeave:_e,onLeaveCancelled:_e,onBeforeAppear:_e,onAppear:_e,onAfterAppear:_e,onAppearCancelled:_e};function qi(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function Jn(e,t,n,s){const{appear:o,mode:r,persisted:i=!1,onBeforeEnter:l,onEnter:a,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:g,onLeave:v,onAfterLeave:T,onLeaveCancelled:R,onBeforeAppear:$,onAppear:J,onAfterAppear:Q,onAppearCancelled:G}=t,ee=String(e.key),O=qi(n,e),se=(F,Y)=>{F&&Ce(F,s,9,Y)},Ie=(F,Y)=>{const U=Y[1];se(F,Y),M(F)?F.every(le=>le.length<=1)&&U():F.length<=1&&U()},$e={mode:r,persisted:i,beforeEnter(F){let Y=l;if(!n.isMounted)if(o)Y=$||l;else return;F._leaveCb&&F._leaveCb(!0);const U=O[ee];U&&bt(e,U)&&U.el._leaveCb&&U.el._leaveCb(),se(Y,[F])},enter(F){let Y=a,U=u,le=d;if(!n.isMounted)if(o)Y=J||a,U=Q||u,le=G||d;else return;let w=!1;const V=F._enterCb=ge=>{w||(w=!0,ge?se(le,[F]):se(U,[F]),$e.delayedLeave&&$e.delayedLeave(),F._enterCb=void 0)};Y?Ie(Y,[F,V]):V()},leave(F,Y){const U=String(e.key);if(F._enterCb&&F._enterCb(!0),n.isUnmounting)return Y();se(g,[F]);let le=!1;const w=F._leaveCb=V=>{le||(le=!0,Y(),V?se(R,[F]):se(T,[F]),F._leaveCb=void 0,O[U]===e&&delete O[U])};O[U]=e,v?Ie(v,[F,w]):w()},clone(F){return Jn(F,t,n,s)}};return $e}function Yn(e,t){e.shapeFlag&6&&e.component?Yn(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 Vo(e,t=!1,n){let s=[],o=0;for(let r=0;r1)for(let r=0;rte({name:e.name},t,{setup:e}))():e}const Rt=e=>!!e.type.__asyncLoader,qo=e=>e.type.__isKeepAlive;function Ji(e,t){Jo(e,"a",t)}function Yi(e,t){Jo(e,"da",t)}function Jo(e,t,n=ie){const s=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(En(t,s,n),n){let o=n.parent;for(;o&&o.parent;)qo(o.parent.vnode)&&Xi(s,t,n,o),o=o.parent}}function Xi(e,t,n,s){const o=En(t,e,s,!0);Xo(()=>{os(s[t],o)},n)}function En(e,t,n=ie,s=!1){if(n){const o=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;Mt(),St(n);const l=Ce(t,n,e,i);return dt(),Ot(),l});return s?o.unshift(r):o.push(r),r}}const qe=e=>(t,n=ie)=>(!Wt||e==="sp")&&En(e,(...s)=>t(...s),n),Zi=qe("bm"),Tn=qe("m"),Qi=qe("bu"),Yo=qe("u"),wn=qe("bum"),Xo=qe("um"),Gi=qe("sp"),el=qe("rtg"),tl=qe("rtc");function nl(e,t=ie){En("ec",e,t)}const bs="components";function Sn(e,t){return Go(bs,e,!0,t)||e}const Zo=Symbol.for("v-ndc");function Qo(e){return Z(e)?Go(bs,e,!1)||e:e||Zo}function Go(e,t,n=!0,s=!1){const o=fe||ie;if(o){const r=o.type;if(e===bs){const l=Nl(r,!1);if(l&&(l===t||l===ke(t)||l===yn(ke(t))))return r}const i=Ks(o[e]||r[e],t)||Ks(o.appContext[e],t);return!i&&s?r:i}}function Ks(e,t){return e&&(e[t]||e[ke(t)]||e[yn(ke(t))])}function er(e,t,n,s){let o;const r=n&&n[s];if(M(e)||Z(e)){o=new Array(e.length);for(let i=0,l=e.length;it(i,l,void 0,r&&r[l]));else{const i=Object.keys(e);o=new Array(i.length);for(let l=0,a=i.length;lfr(t)?!(t.type===Ve||t.type===ce&&!tr(t.children)):!0)?e:null}const Xn=e=>e?mr(e)?Es(e)||e.proxy:Xn(e.parent):null,kt=te(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=>Xn(e.parent),$root:e=>Xn(e.root),$emit:e=>e.emit,$options:e=>vs(e),$forceUpdate:e=>e.f||(e.f=()=>ys(e.update)),$nextTick:e=>e.n||(e.n=Ii.bind(e.proxy)),$watch:e=>Ki.bind(e)}),Rn=(e,t)=>e!==K&&!e.__isScriptSetup&&L(e,t),sl={get({_:e},t){const{ctx:n,setupState:s,data:o,props:r,accessCache:i,type:l,appContext:a}=e;let u;if(t[0]!=="$"){const T=i[t];if(T!==void 0)switch(T){case 1:return s[t];case 2:return o[t];case 4:return n[t];case 3:return r[t]}else{if(Rn(s,t))return i[t]=1,s[t];if(o!==K&&L(o,t))return i[t]=2,o[t];if((u=e.propsOptions[0])&&L(u,t))return i[t]=3,r[t];if(n!==K&&L(n,t))return i[t]=4,n[t];Zn&&(i[t]=0)}}const d=kt[t];let g,v;if(d)return t==="$attrs"&&me(e,"get",t),d(e);if((g=l.__cssModules)&&(g=g[t]))return g;if(n!==K&&L(n,t))return i[t]=4,n[t];if(v=a.config.globalProperties,L(v,t))return v[t]},set({_:e},t,n){const{data:s,setupState:o,ctx:r}=e;return Rn(o,t)?(o[t]=n,!0):s!==K&&L(s,t)?(s[t]=n,!0):L(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:o,propsOptions:r}},i){let l;return!!n[i]||e!==K&&L(e,i)||Rn(t,i)||(l=r[0])&&L(l,i)||L(s,i)||L(kt,i)||L(o.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:L(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function ol(){return rl().slots}function rl(){const e=hr();return e.setupContext||(e.setupContext=yr(e))}function Ws(e){return M(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let Zn=!0;function il(e){const t=vs(e),n=e.proxy,s=e.ctx;Zn=!1,t.beforeCreate&&Vs(t.beforeCreate,e,"bc");const{data:o,computed:r,methods:i,watch:l,provide:a,inject:u,created:d,beforeMount:g,mounted:v,beforeUpdate:T,updated:R,activated:$,deactivated:J,beforeDestroy:Q,beforeUnmount:G,destroyed:ee,unmounted:O,render:se,renderTracked:Ie,renderTriggered:$e,errorCaptured:F,serverPrefetch:Y,expose:U,inheritAttrs:le,components:w,directives:V,filters:ge}=t;if(u&&ll(u,s,null),i)for(const X in i){const H=i[X];P(H)&&(s[X]=H.bind(n))}if(o){const X=o.call(n,n);W(X)&&(e.data=Vt(X))}if(Zn=!0,r)for(const X in r){const H=r[X],ot=P(H)?H.bind(n,n):P(H.get)?H.get.bind(n,n):Me,Jt=!P(H)&&P(H.set)?H.set.bind(n):Me,rt=Qe({get:ot,set:Jt});Object.defineProperty(s,X,{enumerable:!0,configurable:!0,get:()=>rt.value,set:Pe=>rt.value=Pe})}if(l)for(const X in l)nr(l[X],s,n,X);if(a){const X=P(a)?a.call(n):a;Reflect.ownKeys(X).forEach(H=>{pl(H,X[H])})}d&&Vs(d,e,"c");function oe(X,H){M(H)?H.forEach(ot=>X(ot.bind(n))):H&&X(H.bind(n))}if(oe(Zi,g),oe(Tn,v),oe(Qi,T),oe(Yo,R),oe(Ji,$),oe(Yi,J),oe(nl,F),oe(tl,Ie),oe(el,$e),oe(wn,G),oe(Xo,O),oe(Gi,Y),M(U))if(U.length){const X=e.exposed||(e.exposed={});U.forEach(H=>{Object.defineProperty(X,H,{get:()=>n[H],set:ot=>n[H]=ot})})}else e.exposed||(e.exposed={});se&&e.render===Me&&(e.render=se),le!=null&&(e.inheritAttrs=le),w&&(e.components=w),V&&(e.directives=V)}function ll(e,t,n=Me){M(e)&&(e=Qn(e));for(const s in e){const o=e[s];let r;W(o)?"default"in o?r=on(o.from||s,o.default,!0):r=on(o.from||s):r=on(o),ue(r)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>r.value,set:i=>r.value=i}):t[s]=r}}function Vs(e,t,n){Ce(M(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function nr(e,t,n,s){const o=s.includes(".")?Wo(n,s):()=>n[s];if(Z(e)){const r=t[e];P(r)&&Ln(o,r)}else if(P(e))Ln(o,e.bind(n));else if(W(e))if(M(e))e.forEach(r=>nr(r,t,n,s));else{const r=P(e.handler)?e.handler.bind(n):t[e.handler];P(r)&&Ln(o,r,e)}}function vs(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:o,optionsCache:r,config:{optionMergeStrategies:i}}=e.appContext,l=r.get(t);let a;return l?a=l:!o.length&&!n&&!s?a=t:(a={},o.length&&o.forEach(u=>fn(a,u,i,!0)),fn(a,t,i)),W(t)&&r.set(t,a),a}function fn(e,t,n,s=!1){const{mixins:o,extends:r}=t;r&&fn(e,r,n,!0),o&&o.forEach(i=>fn(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const l=cl[i]||n&&n[i];e[i]=l?l(e[i],t[i]):t[i]}return e}const cl={data:qs,props:Js,emits:Js,methods:Nt,computed:Nt,beforeCreate:de,created:de,beforeMount:de,mounted:de,beforeUpdate:de,updated:de,beforeDestroy:de,beforeUnmount:de,destroyed:de,unmounted:de,activated:de,deactivated:de,errorCaptured:de,serverPrefetch:de,components:Nt,directives:Nt,watch:ul,provide:qs,inject:al};function qs(e,t){return t?e?function(){return te(P(e)?e.call(this,this):e,P(t)?t.call(this,this):t)}:t:e}function al(e,t){return Nt(Qn(e),Qn(t))}function Qn(e){if(M(e)){const t={};for(let n=0;n1)return n&&P(t)?t.call(s&&s.proxy):t}}function hl(e,t,n,s=!1){const o={},r={};cn(r,Mn,1),e.propsDefaults=Object.create(null),or(e,t,o,r);for(const i in e.propsOptions[0])i in o||(o[i]=void 0);n?e.props=s?o:Ei(o):e.type.props?e.props=o:e.props=r,e.attrs=r}function ml(e,t,n,s){const{props:o,attrs:r,vnode:{patchFlag:i}}=e,l=D(o),[a]=e.propsOptions;let u=!1;if((s||i>0)&&!(i&16)){if(i&8){const d=e.vnode.dynamicProps;for(let g=0;g{a=!0;const[v,T]=rr(g,t,!0);te(i,v),T&&l.push(...T)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!r&&!a)return W(e)&&s.set(e,_t),_t;if(M(r))for(let d=0;d-1,T[1]=$<0||R<$,(R>-1||L(T,"default"))&&l.push(g)}}}const u=[i,l];return W(e)&&s.set(e,u),u}function Ys(e){return e[0]!=="$"}function Xs(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function Zs(e,t){return Xs(e)===Xs(t)}function Qs(e,t){return M(t)?t.findIndex(n=>Zs(n,e)):P(t)&&Zs(t,e)?0:-1}const ir=e=>e[0]==="_"||e==="$stable",_s=e=>M(e)?e.map(Le):[Le(e)],gl=(e,t,n)=>{if(t._n)return t;const s=Oe((...o)=>_s(t(...o)),n);return s._c=!1,s},lr=(e,t,n)=>{const s=e._ctx;for(const o in e){if(ir(o))continue;const r=e[o];if(P(r))t[o]=gl(o,r,s);else if(r!=null){const i=_s(r);t[o]=()=>i}}},cr=(e,t)=>{const n=_s(t);e.slots.default=()=>n},yl=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=D(t),cn(t,"_",n)):lr(t,e.slots={})}else e.slots={},t&&cr(e,t);cn(e.slots,Mn,1)},bl=(e,t,n)=>{const{vnode:s,slots:o}=e;let r=!0,i=K;if(s.shapeFlag&32){const l=t._;l?n&&l===1?r=!1:(te(o,t),!n&&l===1&&delete o._):(r=!t.$stable,lr(t,o)),i=t}else t&&(cr(e,t),i={default:1});if(r)for(const l in o)!ir(l)&&!(l in i)&&delete o[l]};function es(e,t,n,s,o=!1){if(M(e)){e.forEach((v,T)=>es(v,t&&(M(t)?t[T]:t),n,s,o));return}if(Rt(s)&&!o)return;const r=s.shapeFlag&4?Es(s.component)||s.component.proxy:s.el,i=o?null:r,{i:l,r:a}=e,u=t&&t.r,d=l.refs===K?l.refs={}:l.refs,g=l.setupState;if(u!=null&&u!==a&&(Z(u)?(d[u]=null,L(g,u)&&(g[u]=null)):ue(u)&&(u.value=null)),P(a))et(a,l,12,[i,d]);else{const v=Z(a),T=ue(a);if(v||T){const R=()=>{if(e.f){const $=v?L(g,a)?g[a]:d[a]:a.value;o?M($)&&os($,r):M($)?$.includes(r)||$.push(r):v?(d[a]=[r],L(g,a)&&(g[a]=d[a])):(a.value=[r],e.k&&(d[e.k]=a.value))}else v?(d[a]=i,L(g,a)&&(g[a]=i)):T&&(a.value=i,e.k&&(d[e.k]=i))};i?(R.id=-1,pe(R,n)):R()}}}const pe=zi;function vl(e){return _l(e)}function _l(e,t){const n=Un();n.__VUE__=!0;const{insert:s,remove:o,patchProp:r,createElement:i,createText:l,createComment:a,setText:u,setElementText:d,parentNode:g,nextSibling:v,setScopeId:T=Me,insertStaticContent:R}=e,$=(c,f,p,m=null,h=null,_=null,C=!1,b=null,x=!!f.dynamicChildren)=>{if(c===f)return;c&&!bt(c,f)&&(m=Yt(c),Pe(c,h,_,!0),c=null),f.patchFlag===-2&&(x=!1,f.dynamicChildren=null);const{type:y,ref:S,shapeFlag:E}=f;switch(y){case An:J(c,f,p,m);break;case Ve:Q(c,f,p,m);break;case rn:c==null&&G(f,p,m,C);break;case ce:w(c,f,p,m,h,_,C,b,x);break;default:E&1?se(c,f,p,m,h,_,C,b,x):E&6?V(c,f,p,m,h,_,C,b,x):(E&64||E&128)&&y.process(c,f,p,m,h,_,C,b,x,mt)}S!=null&&h&&es(S,c&&c.ref,_,f||c,!f)},J=(c,f,p,m)=>{if(c==null)s(f.el=l(f.children),p,m);else{const h=f.el=c.el;f.children!==c.children&&u(h,f.children)}},Q=(c,f,p,m)=>{c==null?s(f.el=a(f.children||""),p,m):f.el=c.el},G=(c,f,p,m)=>{[c.el,c.anchor]=R(c.children,f,p,m,c.el,c.anchor)},ee=({el:c,anchor:f},p,m)=>{let h;for(;c&&c!==f;)h=v(c),s(c,p,m),c=h;s(f,p,m)},O=({el:c,anchor:f})=>{let p;for(;c&&c!==f;)p=v(c),o(c),c=p;o(f)},se=(c,f,p,m,h,_,C,b,x)=>{C=C||f.type==="svg",c==null?Ie(f,p,m,h,_,C,b,x):Y(c,f,h,_,C,b,x)},Ie=(c,f,p,m,h,_,C,b)=>{let x,y;const{type:S,props:E,shapeFlag:A,transition:I,dirs:N}=c;if(x=c.el=i(c.type,_,E&&E.is,E),A&8?d(x,c.children):A&16&&F(c.children,x,null,m,h,_&&S!=="foreignObject",C,b),N&&it(c,null,m,"created"),$e(x,c,c.scopeId,C,m),E){for(const B in E)B!=="value"&&!sn(B)&&r(x,B,null,E[B],_,c.children,m,h,He);"value"in E&&r(x,"value",null,E.value),(y=E.onVnodeBeforeMount)&&Ne(y,m,c)}N&&it(c,null,m,"beforeMount");const j=(!h||h&&!h.pendingBranch)&&I&&!I.persisted;j&&I.beforeEnter(x),s(x,f,p),((y=E&&E.onVnodeMounted)||j||N)&&pe(()=>{y&&Ne(y,m,c),j&&I.enter(x),N&&it(c,null,m,"mounted")},h)},$e=(c,f,p,m,h)=>{if(p&&T(c,p),m)for(let _=0;_{for(let y=x;y{const b=f.el=c.el;let{patchFlag:x,dynamicChildren:y,dirs:S}=f;x|=c.patchFlag&16;const E=c.props||K,A=f.props||K;let I;p&<(p,!1),(I=A.onVnodeBeforeUpdate)&&Ne(I,p,f,c),S&&it(f,c,p,"beforeUpdate"),p&<(p,!0);const N=h&&f.type!=="foreignObject";if(y?U(c.dynamicChildren,y,b,p,m,N,_):C||H(c,f,b,null,p,m,N,_,!1),x>0){if(x&16)le(b,f,E,A,p,m,h);else if(x&2&&E.class!==A.class&&r(b,"class",null,A.class,h),x&4&&r(b,"style",E.style,A.style,h),x&8){const j=f.dynamicProps;for(let B=0;B{I&&Ne(I,p,f,c),S&&it(f,c,p,"updated")},m)},U=(c,f,p,m,h,_,C)=>{for(let b=0;b{if(p!==m){if(p!==K)for(const b in p)!sn(b)&&!(b in m)&&r(c,b,p[b],null,C,f.children,h,_,He);for(const b in m){if(sn(b))continue;const x=m[b],y=p[b];x!==y&&b!=="value"&&r(c,b,y,x,C,f.children,h,_,He)}"value"in m&&r(c,"value",p.value,m.value)}},w=(c,f,p,m,h,_,C,b,x)=>{const y=f.el=c?c.el:l(""),S=f.anchor=c?c.anchor:l("");let{patchFlag:E,dynamicChildren:A,slotScopeIds:I}=f;I&&(b=b?b.concat(I):I),c==null?(s(y,p,m),s(S,p,m),F(f.children,p,S,h,_,C,b,x)):E>0&&E&64&&A&&c.dynamicChildren?(U(c.dynamicChildren,A,p,h,_,C,b),(f.key!=null||h&&f===h.subTree)&&ar(c,f,!0)):H(c,f,p,S,h,_,C,b,x)},V=(c,f,p,m,h,_,C,b,x)=>{f.slotScopeIds=b,c==null?f.shapeFlag&512?h.ctx.activate(f,p,m,C,x):ge(f,p,m,h,_,C,x):It(c,f,x)},ge=(c,f,p,m,h,_,C)=>{const b=c.component=Il(c,m,h);if(qo(c)&&(b.ctx.renderer=mt),$l(b),b.asyncDep){if(h&&h.registerDep(b,oe),!c.el){const x=b.subTree=he(Ve);Q(null,x,f,p)}return}oe(b,c,f,p,h,_,C)},It=(c,f,p)=>{const m=f.component=c.component;if(Hi(c,f,p))if(m.asyncDep&&!m.asyncResolved){X(m,f,p);return}else m.next=f,Pi(m.update),m.update();else f.el=c.el,m.vnode=f},oe=(c,f,p,m,h,_,C)=>{const b=()=>{if(c.isMounted){let{next:S,bu:E,u:A,parent:I,vnode:N}=c,j=S,B;lt(c,!1),S?(S.el=N.el,X(c,S,C)):S=N,E&&Fn(E),(B=S.props&&S.props.onVnodeBeforeUpdate)&&Ne(B,I,S,N),lt(c,!0);const ne=Nn(c),Te=c.subTree;c.subTree=ne,$(Te,ne,g(Te.el),Yt(Te),c,h,_),S.el=ne.el,j===null&&ji(c,ne.el),A&&pe(A,h),(B=S.props&&S.props.onVnodeUpdated)&&pe(()=>Ne(B,I,S,N),h)}else{let S;const{el:E,props:A}=f,{bm:I,m:N,parent:j}=c,B=Rt(f);if(lt(c,!1),I&&Fn(I),!B&&(S=A&&A.onVnodeBeforeMount)&&Ne(S,j,f),lt(c,!0),E&&$n){const ne=()=>{c.subTree=Nn(c),$n(E,c.subTree,c,h,null)};B?f.type.__asyncLoader().then(()=>!c.isUnmounted&&ne()):ne()}else{const ne=c.subTree=Nn(c);$(null,ne,p,m,c,h,_),f.el=ne.el}if(N&&pe(N,h),!B&&(S=A&&A.onVnodeMounted)){const ne=f;pe(()=>Ne(S,j,ne),h)}(f.shapeFlag&256||j&&Rt(j.vnode)&&j.vnode.shapeFlag&256)&&c.a&&pe(c.a,h),c.isMounted=!0,f=p=m=null}},x=c.effect=new cs(b,()=>ys(y),c.scope),y=c.update=()=>x.run();y.id=c.uid,lt(c,!0),y()},X=(c,f,p)=>{f.component=c;const m=c.vnode.props;c.vnode=f,c.next=null,ml(c,f.props,m,p),bl(c,f.children,p),Mt(),Us(),Ot()},H=(c,f,p,m,h,_,C,b,x=!1)=>{const y=c&&c.children,S=c?c.shapeFlag:0,E=f.children,{patchFlag:A,shapeFlag:I}=f;if(A>0){if(A&128){Jt(y,E,p,m,h,_,C,b,x);return}else if(A&256){ot(y,E,p,m,h,_,C,b,x);return}}I&8?(S&16&&He(y,h,_),E!==y&&d(p,E)):S&16?I&16?Jt(y,E,p,m,h,_,C,b,x):He(y,h,_,!0):(S&8&&d(p,""),I&16&&F(E,p,m,h,_,C,b,x))},ot=(c,f,p,m,h,_,C,b,x)=>{c=c||_t,f=f||_t;const y=c.length,S=f.length,E=Math.min(y,S);let A;for(A=0;AS?He(c,h,_,!0,!1,E):F(f,p,m,h,_,C,b,x,E)},Jt=(c,f,p,m,h,_,C,b,x)=>{let y=0;const S=f.length;let E=c.length-1,A=S-1;for(;y<=E&&y<=A;){const I=c[y],N=f[y]=x?Ze(f[y]):Le(f[y]);if(bt(I,N))$(I,N,p,null,h,_,C,b,x);else break;y++}for(;y<=E&&y<=A;){const I=c[E],N=f[A]=x?Ze(f[A]):Le(f[A]);if(bt(I,N))$(I,N,p,null,h,_,C,b,x);else break;E--,A--}if(y>E){if(y<=A){const I=A+1,N=IA)for(;y<=E;)Pe(c[y],h,_,!0),y++;else{const I=y,N=y,j=new Map;for(y=N;y<=A;y++){const ye=f[y]=x?Ze(f[y]):Le(f[y]);ye.key!=null&&j.set(ye.key,y)}let B,ne=0;const Te=A-N+1;let gt=!1,$s=0;const $t=new Array(Te);for(y=0;y=Te){Pe(ye,h,_,!0);continue}let Fe;if(ye.key!=null)Fe=j.get(ye.key);else for(B=N;B<=A;B++)if($t[B-N]===0&&bt(ye,f[B])){Fe=B;break}Fe===void 0?Pe(ye,h,_,!0):($t[Fe-N]=y+1,Fe>=$s?$s=Fe:gt=!0,$(ye,f[Fe],p,null,h,_,C,b,x),ne++)}const Ps=gt?xl($t):_t;for(B=Ps.length-1,y=Te-1;y>=0;y--){const ye=N+y,Fe=f[ye],Fs=ye+1{const{el:_,type:C,transition:b,children:x,shapeFlag:y}=c;if(y&6){rt(c.component.subTree,f,p,m);return}if(y&128){c.suspense.move(f,p,m);return}if(y&64){C.move(c,f,p,mt);return}if(C===ce){s(_,f,p);for(let E=0;Eb.enter(_),h);else{const{leave:E,delayLeave:A,afterLeave:I}=b,N=()=>s(_,f,p),j=()=>{E(_,()=>{N(),I&&I()})};A?A(_,N,j):j()}else s(_,f,p)},Pe=(c,f,p,m=!1,h=!1)=>{const{type:_,props:C,ref:b,children:x,dynamicChildren:y,shapeFlag:S,patchFlag:E,dirs:A}=c;if(b!=null&&es(b,null,p,c,!0),S&256){f.ctx.deactivate(c);return}const I=S&1&&A,N=!Rt(c);let j;if(N&&(j=C&&C.onVnodeBeforeUnmount)&&Ne(j,f,c),S&6)Pr(c.component,p,m);else{if(S&128){c.suspense.unmount(p,m);return}I&&it(c,null,f,"beforeUnmount"),S&64?c.type.remove(c,f,p,h,mt,m):y&&(_!==ce||E>0&&E&64)?He(y,f,p,!1,!0):(_===ce&&E&384||!h&&S&16)&&He(x,f,p),m&&Os(c)}(N&&(j=C&&C.onVnodeUnmounted)||I)&&pe(()=>{j&&Ne(j,f,c),I&&it(c,null,f,"unmounted")},p)},Os=c=>{const{type:f,el:p,anchor:m,transition:h}=c;if(f===ce){$r(p,m);return}if(f===rn){O(c);return}const _=()=>{o(p),h&&!h.persisted&&h.afterLeave&&h.afterLeave()};if(c.shapeFlag&1&&h&&!h.persisted){const{leave:C,delayLeave:b}=h,x=()=>C(p,_);b?b(c.el,_,x):x()}else _()},$r=(c,f)=>{let p;for(;c!==f;)p=v(c),o(c),c=p;o(f)},Pr=(c,f,p)=>{const{bum:m,scope:h,update:_,subTree:C,um:b}=c;m&&Fn(m),h.stop(),_&&(_.active=!1,Pe(C,c,f,p)),b&&pe(b,f),pe(()=>{c.isUnmounted=!0},f),f&&f.pendingBranch&&!f.isUnmounted&&c.asyncDep&&!c.asyncResolved&&c.suspenseId===f.pendingId&&(f.deps--,f.deps===0&&f.resolve())},He=(c,f,p,m=!1,h=!1,_=0)=>{for(let C=_;Cc.shapeFlag&6?Yt(c.component.subTree):c.shapeFlag&128?c.suspense.next():v(c.anchor||c.el),Is=(c,f,p)=>{c==null?f._vnode&&Pe(f._vnode,null,null,!0):$(f._vnode||null,c,f,null,null,null,p),Us(),jo(),f._vnode=c},mt={p:$,um:Pe,m:rt,r:Os,mt:ge,mc:F,pc:H,pbc:U,n:Yt,o:e};let In,$n;return t&&([In,$n]=t(mt)),{render:Is,hydrate:In,createApp:dl(Is,In)}}function lt({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function ar(e,t,n=!1){const s=e.children,o=t.children;if(M(s)&&M(o))for(let r=0;r>1,e[n[l]]0&&(t[s]=n[r-1]),n[r]=s)}}for(r=n.length,i=n[r-1];r-- >0;)n[r]=i,i=t[i];return n}const Cl=e=>e.__isTeleport,ce=Symbol.for("v-fgt"),An=Symbol.for("v-txt"),Ve=Symbol.for("v-cmt"),rn=Symbol.for("v-stc"),Dt=[];let Ae=null;function q(e=!1){Dt.push(Ae=e?null:[])}function El(){Dt.pop(),Ae=Dt[Dt.length-1]||null}let Kt=1;function Gs(e){Kt+=e}function ur(e){return e.dynamicChildren=Kt>0?Ae||_t:null,El(),Kt>0&&Ae&&Ae.push(e),e}function be(e,t,n,s,o,r){return ur(k(e,t,n,s,o,r,!0))}function De(e,t,n,s,o){return ur(he(e,t,n,s,o,!0))}function fr(e){return e?e.__v_isVNode===!0:!1}function bt(e,t){return e.type===t.type&&e.key===t.key}const Mn="__vInternal",dr=({key:e})=>e??null,ln=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Z(e)||ue(e)||P(e)?{i:fe,r:e,k:t,f:!!n}:e:null);function k(e,t=null,n=null,s=0,o=null,r=e===ce?0:1,i=!1,l=!1){const a={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&dr(t),ref:t&&ln(t),scopeId:Cn,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:r,patchFlag:s,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:fe};return l?(xs(a,n),r&128&&e.normalize(a)):n&&(a.shapeFlag|=Z(n)?8:16),Kt>0&&!i&&Ae&&(a.patchFlag>0||r&6)&&a.patchFlag!==32&&Ae.push(a),a}const he=Tl;function Tl(e,t=null,n=null,s=0,o=null,r=!1){if((!e||e===Zo)&&(e=Ve),fr(e)){const l=pt(e,t,!0);return n&&xs(l,n),Kt>0&&!r&&Ae&&(l.shapeFlag&6?Ae[Ae.indexOf(e)]=l:Ae.push(l)),l.patchFlag|=-2,l}if(Ll(e)&&(e=e.__vccOpts),t){t=pr(t);let{class:l,style:a}=t;l&&!Z(l)&&(t.class=Ke(l)),W(a)&&(Lo(a)&&!M(a)&&(a=te({},a)),t.style=nt(a))}const i=Z(e)?1:Ui(e)?128:Cl(e)?64:W(e)?4:P(e)?2:0;return k(e,t,n,s,o,i,r,!0)}function pr(e){return e?Lo(e)||Mn in e?te({},e):e:null}function pt(e,t,n=!1){const{props:s,ref:o,patchFlag:r,children:i}=e,l=t?Al(s||{},t):s;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&dr(l),ref:t&&t.ref?n&&o?M(o)?o.concat(ln(t)):[o,ln(t)]:ln(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==ce?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&pt(e.ssContent),ssFallback:e.ssFallback&&pt(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function wl(e=" ",t=0){return he(An,null,e,t)}function Sl(e,t){const n=he(rn,null,e);return n.staticCount=t,n}function Lt(e="",t=!1){return t?(q(),De(Ve,null,e)):he(Ve,null,e)}function Le(e){return e==null||typeof e=="boolean"?he(Ve):M(e)?he(ce,null,e.slice()):typeof e=="object"?Ze(e):he(An,null,String(e))}function Ze(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:pt(e)}function xs(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(M(t))n=16;else if(typeof t=="object")if(s&65){const o=t.default;o&&(o._c&&(o._d=!1),xs(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!(Mn in t)?t._ctx=fe:o===3&&fe&&(fe.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else P(t)?(t={default:t,_ctx:fe},n=32):(t=String(t),s&64?(n=16,t=[wl(t)]):n=8);e.children=t,e.shapeFlag|=n}function Al(...e){const t={};for(let n=0;nie||fe;let Cs,yt,eo="__VUE_INSTANCE_SETTERS__";(yt=Un()[eo])||(yt=Un()[eo]=[]),yt.push(e=>ie=e),Cs=e=>{yt.length>1?yt.forEach(t=>t(e)):yt[0](e)};const St=e=>{Cs(e),e.scope.on()},dt=()=>{ie&&ie.scope.off(),Cs(null)};function mr(e){return e.vnode.shapeFlag&4}let Wt=!1;function $l(e,t=!1){Wt=t;const{props:n,children:s}=e.vnode,o=mr(e);hl(e,n,o,t),yl(e,s);const r=o?Pl(e,t):void 0;return Wt=!1,r}function Pl(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=ps(new Proxy(e.ctx,sl));const{setup:s}=n;if(s){const o=e.setupContext=s.length>1?yr(e):null;St(e),Mt();const r=et(s,e,0,[e.props,o]);if(Ot(),dt(),vo(r)){if(r.then(dt,dt),t)return r.then(i=>{to(e,i,t)}).catch(i=>{_n(i,e,0)});e.asyncDep=r}else to(e,r,t)}else gr(e,t)}function to(e,t,n){P(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:W(t)&&(e.setupState=Do(t)),gr(e,n)}let no;function gr(e,t,n){const s=e.type;if(!e.render){if(!t&&no&&!s.render){const o=s.template||vs(e).template;if(o){const{isCustomElement:r,compilerOptions:i}=e.appContext.config,{delimiters:l,compilerOptions:a}=s,u=te(te({isCustomElement:r,delimiters:l},i),a);s.render=no(o,u)}}e.render=s.render||Me}St(e),Mt(),il(e),Ot(),dt()}function Fl(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return me(e,"get","$attrs"),t[n]}}))}function yr(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return Fl(e)},slots:e.slots,emit:e.emit,expose:t}}function Es(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Do(ps(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in kt)return kt[n](e)},has(t,n){return n in t||n in kt}}))}function Nl(e,t=!0){return P(e)?e.displayName||e.name:e.name||t&&e.__name}function Ll(e){return P(e)&&"__vccOpts"in e}const Qe=(e,t)=>Mi(e,t,Wt),Rl=Symbol.for("v-scx"),kl=()=>on(Rl),Dl="3.3.4",Bl="http://www.w3.org/2000/svg",ut=typeof document<"u"?document:null,so=ut&&ut.createElement("template"),Hl={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const o=t?ut.createElementNS(Bl,e):ut.createElement(e,n?{is:n}:void 0);return e==="select"&&s&&s.multiple!=null&&o.setAttribute("multiple",s.multiple),o},createText:e=>ut.createTextNode(e),createComment:e=>ut.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ut.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,o,r){const i=n?n.previousSibling:t.lastChild;if(o&&(o===r||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===r||!(o=o.nextSibling)););else{so.innerHTML=s?`${e}`:e;const l=so.content;if(s){const a=l.firstChild;for(;a.firstChild;)l.appendChild(a.firstChild);l.removeChild(a)}t.insertBefore(l,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function jl(e,t,n){const s=e._vtc;s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Ul(e,t,n){const s=e.style,o=Z(n);if(n&&!o){if(t&&!Z(t))for(const r in t)n[r]==null&&ts(s,r,"");for(const r in n)ts(s,r,n[r])}else{const r=s.display;o?t!==n&&(s.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(s.display=r)}}const oo=/\s*!important$/;function ts(e,t,n){if(M(n))n.forEach(s=>ts(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=zl(e,t);oo.test(n)?e.setProperty(At(s),n.replace(oo,""),"important"):e[s]=n}}const ro=["Webkit","Moz","ms"],kn={};function zl(e,t){const n=kn[t];if(n)return n;let s=ke(t);if(s!=="filter"&&s in e)return kn[t]=s;s=yn(s);for(let o=0;oDn||(Xl.then(()=>Dn=0),Dn=Date.now());function Ql(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Ce(Gl(s,n.value),t,5,[s])};return n.value=e,n.attached=Zl(),n}function Gl(e,t){if(M(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>o=>!o._stopped&&s&&s(o))}else return t}const co=/^on[a-z]/,ec=(e,t,n,s,o=!1,r,i,l,a)=>{t==="class"?jl(e,s,o):t==="style"?Ul(e,n,s):hn(t)?ss(t)||Jl(e,t,n,s,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):tc(e,t,s,o))?Wl(e,t,s,r,i,l,a):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),Kl(e,t,s,o))};function tc(e,t,n,s){return s?!!(t==="innerHTML"||t==="textContent"||t in e&&co.test(t)&&P(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||co.test(t)&&Z(n)?!1:t in e}const Ye="transition",Pt="animation",br={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},nc=te({},Vi,br),ct=(e,t=[])=>{M(e)?e.forEach(n=>n(...t)):e&&e(...t)},ao=e=>e?M(e)?e.some(t=>t.length>1):e.length>1:!1;function sc(e){const t={};for(const w in e)w in br||(t[w]=e[w]);if(e.css===!1)return t;const{name:n="v",type:s,duration:o,enterFromClass:r=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:a=r,appearActiveClass:u=i,appearToClass:d=l,leaveFromClass:g=`${n}-leave-from`,leaveActiveClass:v=`${n}-leave-active`,leaveToClass:T=`${n}-leave-to`}=e,R=oc(o),$=R&&R[0],J=R&&R[1],{onBeforeEnter:Q,onEnter:G,onEnterCancelled:ee,onLeave:O,onLeaveCancelled:se,onBeforeAppear:Ie=Q,onAppear:$e=G,onAppearCancelled:F=ee}=t,Y=(w,V,ge)=>{Xe(w,V?d:l),Xe(w,V?u:i),ge&&ge()},U=(w,V)=>{w._isLeaving=!1,Xe(w,g),Xe(w,T),Xe(w,v),V&&V()},le=w=>(V,ge)=>{const It=w?$e:G,oe=()=>Y(V,w,ge);ct(It,[V,oe]),uo(()=>{Xe(V,w?a:r),je(V,w?d:l),ao(It)||fo(V,s,$,oe)})};return te(t,{onBeforeEnter(w){ct(Q,[w]),je(w,r),je(w,i)},onBeforeAppear(w){ct(Ie,[w]),je(w,a),je(w,u)},onEnter:le(!1),onAppear:le(!0),onLeave(w,V){w._isLeaving=!0;const ge=()=>U(w,V);je(w,g),_r(),je(w,v),uo(()=>{w._isLeaving&&(Xe(w,g),je(w,T),ao(O)||fo(w,s,J,ge))}),ct(O,[w,ge])},onEnterCancelled(w){Y(w,!1),ct(ee,[w])},onAppearCancelled(w){Y(w,!0),ct(F,[w])},onLeaveCancelled(w){U(w),ct(se,[w])}})}function oc(e){if(e==null)return null;if(W(e))return[Bn(e.enter),Bn(e.leave)];{const t=Bn(e);return[t,t]}}function Bn(e){return Hr(e)}function je(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Xe(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function uo(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let rc=0;function fo(e,t,n,s){const o=e._endId=++rc,r=()=>{o===e._endId&&s()};if(n)return setTimeout(r,n);const{type:i,timeout:l,propCount:a}=vr(e,t);if(!i)return s();const u=i+"end";let d=0;const g=()=>{e.removeEventListener(u,v),r()},v=T=>{T.target===e&&++d>=a&&g()};setTimeout(()=>{d(n[R]||"").split(", "),o=s(`${Ye}Delay`),r=s(`${Ye}Duration`),i=po(o,r),l=s(`${Pt}Delay`),a=s(`${Pt}Duration`),u=po(l,a);let d=null,g=0,v=0;t===Ye?i>0&&(d=Ye,g=i,v=r.length):t===Pt?u>0&&(d=Pt,g=u,v=a.length):(g=Math.max(i,u),d=g>0?i>u?Ye:Pt:null,v=d?d===Ye?r.length:a.length:0);const T=d===Ye&&/\b(transform|all)(,|$)/.test(s(`${Ye}Property`).toString());return{type:d,timeout:g,propCount:v,hasTransform:T}}function po(e,t){for(;e.lengthho(n)+ho(e[s])))}function ho(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function _r(){return document.body.offsetHeight}const xr=new WeakMap,Cr=new WeakMap,Er={name:"TransitionGroup",props:te({},nc,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=hr(),s=Wi();let o,r;return Yo(()=>{if(!o.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!uc(o[0].el,n.vnode.el,i))return;o.forEach(lc),o.forEach(cc);const l=o.filter(ac);_r(),l.forEach(a=>{const u=a.el,d=u.style;je(u,i),d.transform=d.webkitTransform=d.transitionDuration="";const g=u._moveCb=v=>{v&&v.target!==u||(!v||/transform$/.test(v.propertyName))&&(u.removeEventListener("transitionend",g),u._moveCb=null,Xe(u,i))};u.addEventListener("transitionend",g)})}),()=>{const i=D(e),l=sc(i);let a=i.tag||ce;o=r,r=t.default?Vo(t.default()):[];for(let u=0;udelete e.mode;Er.props;const Tr=Er;function lc(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function cc(e){Cr.set(e,e.el.getBoundingClientRect())}function ac(e){const t=xr.get(e),n=Cr.get(e),s=t.left-n.left,o=t.top-n.top;if(s||o){const r=e.el.style;return r.transform=r.webkitTransform=`translate(${s}px,${o}px)`,r.transitionDuration="0s",e}}function uc(e,t,n){const s=e.cloneNode();e._vtc&&e._vtc.forEach(i=>{i.split(/\s+/).forEach(l=>l&&s.classList.remove(l))}),n.split(/\s+/).forEach(i=>i&&s.classList.add(i)),s.style.display="none";const o=t.nodeType===1?t:t.parentNode;o.appendChild(s);const{hasTransform:r}=vr(s);return o.removeChild(s),r}const fc=te({patchProp:ec},Hl);let mo;function dc(){return mo||(mo=vl(fc))}const pc=(...e)=>{const t=dc().createApp(...e),{mount:n}=t;return t.mount=s=>{const o=hc(s);if(!o)return;const r=t._component;!P(r)&&!r.render&&!r.template&&(r.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t};function hc(e){return Z(e)?document.querySelector(e):e}function mc(e){return{all:e=e||new Map,on:function(t,n){var s=e.get(t);s?s.push(n):e.set(t,[n])},off:function(t,n){var s=e.get(t);s&&(n?s.splice(s.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var s=e.get(t);s&&s.slice().map(function(o){o(n)}),(s=e.get("*"))&&s.slice().map(function(o){o(t,n)})}}}const pn=mc(),wr=new Map,go={x:["left","center","right"],y:["top","bottom"]},gc=(e=>()=>e++)(0),yc=e=>typeof e!="string"?[]:e.split(/\s+/gi).filter(t=>t),bc=e=>{typeof e=="string"&&(e=yc(e));let t=null,n=null;return e.forEach(s=>{go.y.indexOf(s)!==-1&&(n=s),go.x.indexOf(s)!==-1&&(t=s)}),{x:t,y:n}};class vc{constructor(t,n,s){this.remaining=n,this.callback=t,this.notifyItem=s,this.resume()}pause(){clearTimeout(this.notifyItem.timer),this.remaining-=Date.now()-this.start}resume(){this.start=Date.now(),clearTimeout(this.notifyItem.timer),this.notifyItem.timer=setTimeout(this.callback,this.remaining)}}const Hn={position:["top","right"],cssAnimation:"vn-fade",velocityAnimation:{enter:e=>({height:[e.clientHeight,0],opacity:[1,0]}),leave:{height:0,opacity:[0,1]}}},_c=Be({name:"velocity-group",emits:["after-leave","leave","enter"],methods:{enter(e,t){this.$emit("enter",e,t)},leave(e,t){this.$emit("leave",e,t)},afterLeave(){this.$emit("after-leave")}}}),Ts=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n};function xc(e,t,n,s,o,r){return q(),De(Tr,{tag:"span",css:!1,onEnter:e.enter,onLeave:e.leave,onAfterLeave:e.afterLeave},{default:Oe(()=>[wt(e.$slots,"default")]),_:3},8,["onEnter","onLeave","onAfterLeave"])}const Cc=Ts(_c,[["render",xc]]),Ec=Be({name:"css-group",inheritAttrs:!1,props:{name:{type:String,required:!0}}});function Tc(e,t,n,s,o,r){return q(),De(Tr,{tag:"span",name:e.name},{default:Oe(()=>[wt(e.$slots,"default")]),_:3},8,["name"])}const wc=Ts(Ec,[["render",Tc]]),jn="[-+]?[0-9]*.?[0-9]+",yo=[{name:"px",regexp:new RegExp(`^${jn}px$`)},{name:"%",regexp:new RegExp(`^${jn}%$`)},{name:"px",regexp:new RegExp(`^${jn}$`)}],Sc=e=>{if(e==="auto")return{type:e,value:0};for(let t=0;t{switch(typeof e){case"number":return{type:"px",value:e};case"string":return Sc(e);default:return{type:"",value:e}}},nn={IDLE:0,DESTROYED:2},Mc=Be({name:"notifications",components:{VelocityGroup:Cc,CssGroup:wc},props:{group:{type:String,default:""},width:{type:[Number,String],default:300},reverse:{type:Boolean,default:!1},position:{type:[String,Array],default:Hn.position},classes:{type:String,default:"vue-notification"},animationType:{type:String,default:"css"},animation:{type:Object,default:Hn.velocityAnimation},animationName:{type:String,default:Hn.cssAnimation},speed:{type:Number,default:300},cooldown:{type:Number,default:0},duration:{type:Number,default:3e3},delay:{type:Number,default:0},max:{type:Number,default:1/0},ignoreDuplicates:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!0},pauseOnHover:{type:Boolean,default:!1}},emits:["click","destroy","start"],data(){return{list:[],velocity:wr.get("velocity"),timerControl:null}},computed:{actualWidth(){return Ac(this.width)},isVA(){return this.animationType==="velocity"},componentName(){return this.isVA?"velocity-group":"css-group"},styles(){const{x:e,y:t}=bc(this.position),n=this.actualWidth.value,s=this.actualWidth.type,o={width:n+s};return t&&(o[t]="0px"),e&&(e==="center"?o.left=`calc(50% - ${+n/2}${s})`:o[e]="0px"),o},active(){return this.list.filter(e=>e.state!==nn.DESTROYED)},botToTop(){return this.styles.hasOwnProperty("bottom")}},mounted(){pn.on("add",this.addItem),pn.on("close",this.closeItem)},methods:{destroyIfNecessary(e){this.$emit("click",e),this.closeOnClick&&this.destroy(e)},pauseTimeout(){var e;this.pauseOnHover&&((e=this.timerControl)==null||e.pause())},resumeTimeout(){var e;this.pauseOnHover&&((e=this.timerControl)==null||e.resume())},addItem(e={}){if(e.group||(e.group=""),e.data||(e.data={}),this.group!==e.group)return;if(e.clean||e.clear){this.destroyAll();return}const t=typeof e.duration=="number"?e.duration:this.duration,n=typeof e.speed=="number"?e.speed:this.speed,s=typeof e.ignoreDuplicates=="boolean"?e.ignoreDuplicates:this.ignoreDuplicates,{title:o,text:r,type:i,data:l,id:a}=e,u={id:a||gc(),title:o,text:r,type:i,state:nn.IDLE,speed:n,length:t+2*n,data:l};t>=0&&(this.timerControl=new vc(()=>this.destroy(u),u.length,u));const d=this.reverse?!this.botToTop:this.botToTop;let g=-1;const v=this.active.some(T=>T.title===e.title&&T.text===e.text);(!s||!v)&&(d?(this.list.push(u),this.$emit("start",u),this.active.length>this.max&&(g=0)):(this.list.unshift(u),this.$emit("start",u),this.active.length>this.max&&(g=this.active.length-1)),g!==-1&&this.destroy(this.active[g]))},closeItem(e){this.destroyById(e)},notifyClass(e){return["vue-notification-template",this.classes,e.type||""]},notifyWrapperStyle(e){return this.isVA?void 0:{transition:`all ${e.speed}ms`}},destroy(e){clearTimeout(e.timer),e.state=nn.DESTROYED,this.clean(),this.$emit("destroy",e)},destroyById(e){const t=this.list.find(n=>n.id===e);t&&this.destroy(t)},destroyAll(){this.active.forEach(this.destroy)},getAnimation(e,t){var n;const s=(n=this.animation)==null?void 0:n[e];return typeof s=="function"?s.call(this,t):s},enter(e,t){if(!this.isVA)return;const n=this.getAnimation("enter",e);this.velocity(e,n,{duration:this.speed,complete:t})},leave(e,t){if(!this.isVA)return;const n=this.getAnimation("leave",e);this.velocity(e,n,{duration:this.speed,complete:t})},clean(){this.list=this.list.filter(e=>e.state!==nn.DESTROYED)}}}),Oc=["data-id"],Ic=["onClick"],$c=["innerHTML"],Pc=["innerHTML"];function Fc(e,t,n,s,o,r){return q(),be("div",{class:"vue-notification-group",style:nt(e.styles)},[(q(),De(Qo(e.componentName),{name:e.animationName,onEnter:e.enter,onLeave:e.leave,onAfterLeave:e.clean},{default:Oe(()=>[(q(!0),be(ce,null,er(e.active,i=>(q(),be("div",{key:i.id,class:"vue-notification-wrapper",style:nt(e.notifyWrapperStyle(i)),"data-id":i.id,onMouseenter:t[0]||(t[0]=(...l)=>e.pauseTimeout&&e.pauseTimeout(...l)),onMouseleave:t[1]||(t[1]=(...l)=>e.resumeTimeout&&e.resumeTimeout(...l))},[wt(e.$slots,"body",{class:Ke([e.classes,i.type]),item:i,close:()=>e.destroy(i)},()=>[k("div",{class:Ke(e.notifyClass(i)),onClick:l=>e.destroyIfNecessary(i)},[i.title?(q(),be("div",{key:0,class:"notification-title",innerHTML:i.title},null,8,$c)):Lt("",!0),k("div",{class:"notification-content",innerHTML:i.text},null,8,Pc)],10,Ic)])],44,Oc))),128))]),_:3},40,["name","onEnter","onLeave","onAfterLeave"]))],4)}const Nc=Ts(Mc,[["render",Fc]]),xe=e=>{typeof e=="string"&&(e={title:"",text:e}),typeof e=="object"&&pn.emit("add",e)};xe.close=e=>{pn.emit("close",e)};function Lc(e,t={}){Object.entries(t).forEach(s=>wr.set(...s));const n=t.name||"notify";e.config.globalProperties["$"+n]=xe,e.component(t.componentName||"Notifications",Nc)}const Rc={install:Lc};(function(){var e;try{if(typeof document<"u"){var t=document.createElement("style");t.nonce=(e=document.head.querySelector("meta[property=csp-nonce]"))==null?void 0:e.content,t.appendChild(document.createTextNode(".vue-notification-group{display:block;position:fixed;z-index:5000}.vue-notification-wrapper{display:block;overflow:hidden;width:100%;margin:0;padding:0}.notification-title{font-weight:600}.vue-notification-template{display:block;box-sizing:border-box;background:white;text-align:left}.vue-notification{display:block;box-sizing:border-box;text-align:left;font-size:12px;padding:10px;margin:0 5px 5px;color:#fff;background:#44A4FC;border-left:5px solid #187FE7}.vue-notification.warn{background:#ffb648;border-left-color:#f48a06}.vue-notification.error{background:#E54D42;border-left-color:#b82e24}.vue-notification.success{background:#68CD86;border-left-color:#42a85f}.vn-fade-enter-active,.vn-fade-leave-active,.vn-fade-move{transition:all .5s}.vn-fade-enter-from,.vn-fade-leave-to{opacity:0}")),document.head.appendChild(t)}}catch(n){console.error("vite-plugin-css-injected-by-js",n)}})();const re=Vt({transitionTime:200,animationType:"slideDown",modalStyle:{padding:void 0,align:"center","z-index":201},overlayStyle:{"background-color":"rgba(0, 0, 0, 0.9)","z-index":200}});function kc(e){var t,n,s,o,r;e!=null&&e.transitionTime&&(re.transitionTime=e.transitionTime),e!=null&&e.animationType&&(re.animationType=e.animationType),e!=null&&e.modalStyle&&((t=e.modalStyle)!=null&&t.padding&&(re.modalStyle.padding=e.modalStyle.padding),(n=e.modalStyle)!=null&&n.align&&(re.modalStyle.align=e.modalStyle.align),(s=e.modalStyle)!=null&&s["z-index"]&&(re.modalStyle["z-index"]=e.modalStyle["z-index"])),(o=e==null?void 0:e.overlayStyle)!=null&&o["z-index"]&&(re.overlayStyle["z-index"]=e.overlayStyle["z-index"]),(r=e==null?void 0:e.overlayStyle)!=null&&r["background-color"]&&(re.overlayStyle["background-color"]=e.overlayStyle["background-color"])}const Ee=Vt({modals:[]});Qe(()=>Ee.modals.length>0);function Dc(e,t,n){Ee.modals.push(ps({component:e,props:t,options:n}))}function Bc(){Ee.modals.pop()}var Hc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function jc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Sr={exports:{}};(function(e,t){(function(n,s){e.exports=s(),e.exports.default=e.exports})(Hc,function(){var n=function(){this.listeners={},this.registerListener=function(o,r,i){var l=o.constructor.name;i=this.validateNumber(i||"any"),l!=="Array"&&(o=[o]),o.forEach(function(a){if(a.constructor.name!=="String")throw new Error("Only `String` and array of `String` are accepted for the event names!");s.listeners[a]=s.listeners[a]||[],s.listeners[a].push({callback:r,number:i})})},this.validateNumber=function(o){var r=o.constructor.name;if(r==="Number")return o;if(r==="String"&&o.toLowerCase()==="any")return"any";throw new Error("Only `Number` and `any` are accepted in the number of possible executions!")},this.toBeRemoved=function(o){var r=o.number;return o.execution=o.execution||0,o.execution++,!(r==="any"||o.execution=0)){var a=l.replace(/\*\*/,"([^.]+.?)+");a=a.replace(/\*/g,"[^.]+");var u=o.match(a);u&&o===u[0]&&Array.prototype.push.apply(i,s.listeners[l])}var d=arguments;r=r||this,i.forEach(function(g,v){var T=g.callback;g.number,r&&(T=T.bind(r));var R=[];Object.keys(d).map(function($){$>1&&R.push(d[$])}),s.toBeRemoved(g)&&s.listeners[o].splice(v,1),T.apply(null,R)})}}};return n})})(Sr);var Uc=Sr.exports;const zc=jc(Uc),ws=new zc;function ht(e,...t){ws.emit(e,null,...t)}function ze(e,t){ws.on(e,t)}function tt(e,t){ws.detach(e,t)}var z=(e=>(e.Open="open",e.Opened="opened",e.Close="close",e.Closed="closed",e))(z||{});function Kc(e){return"key"in e?e.key==="Escape"||e.key==="Esc":e.keyCode===27}async function Bt(e,t,n){n!=null&&n.force&&await As(!1);const s=Ee.modals.length;return Dc(e,t),ht(z.Open),new Promise((o,r)=>{function i(l){l.index===s&&(tt(z.Closed,i),l.success?o(l.data):r())}ze(z.Closed,i)})}function Ss(e){return new Promise(t=>{function n(s){tt(z.Closed,n),t(s.data)}ze(z.Closed,n),ht(z.Close,{success:!0,data:e})})}function qt(){return new Promise(e=>{function t(){tt(z.Closed,t),e()}ze(z.Closed,t),ht(z.Close,{success:!1})})}function As(e=!0){return new Promise(t=>{function n(){tt(z.Closed,n);for(let s=Ee.modals.length-1;s>=0;s--)Ee.modals.splice(s,1),ht(z.Closed,{index:s,success:!1});t()}ze(z.Closed,n),ht(z.Close,{success:!1,forceCloseAll:e})})}const Wc=Be({__name:"BaseModal",props:{index:{type:Number,required:!0}},setup(e){const t=e,n=ms(!1),s=Qe(()=>t.index!==Ee.modals.length-1),o=Qe(()=>re.animationType!=="none"&&re.transitionTime||0),r=Qe(()=>{var u,d;return{padding:(u=re.modalStyle)==null?void 0:u.padding,"z-index":(d=re.modalStyle)==null?void 0:d["z-index"],transition:`opacity ${o.value}ms ease, visibility ${o.value}ms ease, transform ${o.value}ms ease`}}),i=Qe(()=>{var u;return[{"vue-modal--active":n.value,"vue-modal--hide":s.value},`vue-modal--${(u=re.modalStyle)==null?void 0:u.align}`,`vue-modal--${re.animationType}`]});function l(u){Ee.modals.length-1===t.index&&(n.value=!1,setTimeout(ht,o.value,z.Closed,{index:t.index,success:u.success,data:u.data}))}function a(u){Kc(u)&&Ee.modals.length-1===t.index&&qt()}return Tn(()=>{setTimeout(()=>{n.value=!0},t.index>0?o.value:0),ze(z.Close,l),document.addEventListener("keydown",a),ht(z.Opened)}),wn(()=>{tt(z.Close,l),document.removeEventListener("keydown",a)}),(u,d)=>(q(),be("div",{class:Ke(["vue-modal",i.value]),style:nt(r.value)},[wt(u.$slots,"default",{},void 0,!0)],6))}});const On=(e,t)=>{const n=e.__vccOpts||e;for(const[s,o]of t)n[s]=o;return n},Vc=On(Wc,[["__scopeId","data-v-1421616b"]]);function qc(){var s;const e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",document.body.appendChild(e);const t=document.createElement("div");e.appendChild(t);const n=e.offsetWidth-t.offsetWidth;return(s=e.parentNode)==null||s.removeChild(e),n}function Jc(){const e=ms(qc());function t(){document.documentElement.style.overflow="hidden",document.documentElement.scrollHeight>document.documentElement.clientHeight&&(document.body.style.paddingRight=`${e.value}px`)}function n(){document.documentElement.style.overflow="auto",document.body.style.paddingRight="0px"}function s(o){o?t():n()}return{paddingSize:e,toggleLock:s}}const Yc={class:"vue-modals"},Xc=Be({__name:"ModalTarget",setup(e){const t=re.animationType!=="none"&&re.transitionTime||0,n=Qe(()=>({...re==null?void 0:re.overlayStyle,transition:`opacity ${t}ms ease, visibility ${t}ms ease`})),s=ms(!1),o=Qe(()=>Ee.modals.length&&!s.value);function r({forceCloseAll:u}){(Ee.modals.length===1&&u!==!1||u)&&(s.value=!0,setTimeout(()=>{s.value=!1},t))}const i=Jc();function l(){i.toggleLock(!1)}function a(){i.toggleLock(!0)}return Tn(()=>{ze(z.Close,r),ze(z.Closed,l),ze(z.Open,a)}),wn(()=>{tt(z.Close,r),tt(z.Closed,l),tt(z.Open,a)}),(u,d)=>(q(),be("div",Yc,[(q(!0),be(ce,null,er(ve(Ee).modals,(g,v)=>(q(),De(Vc,{index:v,key:v},{default:Oe(()=>[(q(),De(Qo(g.component),Wr(pr(g.props)),null,16))]),_:2},1032,["index"]))),128)),k("div",{class:Ke(["vue-modals-overlay",{active:o.value}]),style:nt(n.value)},null,6)]))}});const Ar=On(Xc,[["__scopeId","data-v-48abfbb2"]]),Zc={key:0,class:"vue-modal-header"},Qc={key:0,class:"vue-modal-title"},Gc={class:"vue-modal-body"},ea={key:1,class:"vue-modal-footer"},ta=Be({__name:"SimpleModal",props:{title:{},showClose:{type:Boolean,default:!0},size:{type:String,default:"sm",validator(e){return["sm","md","lg","xl","xxl"].includes(e)}}},setup(e){const t=e,n=ol();return(s,o)=>(q(),be("div",{class:Ke(["vue-modal-content",`size-${t.size}`])},[t.title||t.showClose?(q(),be("div",Zc,[t.title?(q(),be("h1",Qc,bn(t.title),1)):Lt("",!0),t.showClose?(q(),be("button",{key:1,onClick:o[0]||(o[0]=r=>ve(qt)()),class:"vue-modal-btn-close","aria-label":"Close"})):Lt("",!0)])):Lt("",!0),k("div",Gc,[wt(s.$slots,"default",{},void 0,!0)]),ve(n).footer?(q(),be("div",ea,[wt(s.$slots,"footer",{},void 0,!0)])):Lt("",!0)],2))}});const na=On(ta,[["__scopeId","data-v-39a87773"]]);function sa(e){return{install(t){kc(e||{}),t.component("ModalTarget",Ar),t.component("SimpleModal",na),ze(z.Closed,Bc)}}}const Mr=Be({__name:"Test3Modal",props:{test:{}},setup(e){const t=e;return(n,s)=>{const o=Sn("SimpleModal");return q(),De(o,{title:"Modal3",size:"sm"},{footer:Oe(()=>[k("button",{onClick:s[0]||(s[0]=r=>ve(As)()),class:"btn btn-outline-danger"}," Close All "),k("button",{onClick:s[1]||(s[1]=r=>ve(qt)()),class:"btn btn-danger"}," Close "),k("button",{onClick:s[2]||(s[2]=r=>ve(Ss)({test:"modal3"})),class:"btn btn-success"}," Confirm ")]),default:Oe(()=>[k("pre",null,"props: "+bn(t),1)]),_:1})}}}),oa={class:"gap-2 d-flex"},Or=Be({__name:"Test2Modal",props:{test:{}},setup(e){const t=e;function n(s=!1){Bt(Mr,{test:"modal3 from modal2"},{force:s}).then(o=>{xe({type:"success",title:"Success modal3 from modal2",text:JSON.stringify(o)})}).catch(()=>{xe({type:"error",title:"Error modal3 from modal2"})})}return(s,o)=>{const r=Sn("SimpleModal");return q(),De(r,{title:"Modal2",size:"sm"},{footer:Oe(()=>[k("button",{onClick:o[2]||(o[2]=i=>ve(As)()),class:"btn btn-outline-danger"}," Close All "),k("button",{onClick:o[3]||(o[3]=i=>ve(qt)()),class:"btn btn-danger"}," Close "),k("button",{onClick:o[4]||(o[4]=i=>ve(Ss)({test:"modal2"})),class:"btn btn-success"}," Confirm ")]),default:Oe(()=>[k("pre",null,"props: "+bn(t),1),k("div",oa,[k("button",{onClick:o[0]||(o[0]=i=>n(!0)),class:"btn btn-primary"}," Force open modal3 "),k("button",{onClick:o[1]||(o[1]=i=>n()),class:"btn btn-primary"}," Open modal3 ")])]),_:1})}}}),ra={class:"gap-2 d-flex"},ia=Be({__name:"Test1Modal",props:{test:{}},setup(e){const t=e;function n(s=!1){Bt(Or,{test:"modal2 from modal1"},{force:s}).then(o=>{xe({type:"success",title:"Success modal2 from modal1",text:JSON.stringify(o)})}).catch(()=>{xe({type:"error",title:"Error modal2 from modal1"})})}return(s,o)=>{const r=Sn("SimpleModal");return q(),De(r,{title:"Modal1"},{footer:Oe(()=>[k("button",{onClick:o[2]||(o[2]=i=>ve(qt)()),class:"btn btn-danger"}," Close "),k("button",{onClick:o[3]||(o[3]=i=>ve(Ss)({test:"modal1"})),class:"btn btn-success"}," Confirm ")]),default:Oe(()=>[k("pre",null,"props: "+bn(t),1),k("div",ra,[k("button",{onClick:o[0]||(o[0]=i=>n(!0)),class:"btn btn-primary"}," Force open modal2 "),k("button",{onClick:o[1]||(o[1]=i=>n()),class:"btn btn-primary"}," Open modal2 ")])]),_:1})}}}),Ir=e=>(Ri("data-v-7aa35284"),e=e(),ki(),e),la=Ir(()=>k("div",{class:"mb-3 d-grid gap-2 d-sm-flex"},[k("img",{src:"https://img.shields.io/static/v1?label=Made%20with&message=VueJS&color=limegreen&style=for-the-badge&logo=vue.js",alt:"vuejs"})],-1)),ca=Ir(()=>k("iframe",{src:"https://ghbtns.com/github-btn.html?user=kolirt&repo=vue-modal&type=star&count=true&size=large",frameborder:"0",scrolling:"0",width:"170",height:"30",title:"GitHub",class:"mb-3"},` + `,-1)),aa=Sl('

Vue3 modal package

Easy to use and highly customizable Vue3 modal package

',3),ua=Be({__name:"App",setup(e){function t(){Bt(ia,{test:"modal1"}).then(o=>{xe({type:"success",title:"Success modal1",text:JSON.stringify(o)})}).catch(()=>{xe({type:"error",title:"Error modal1"})})}function n(){Bt(Or,{test:"modal2"}).then(o=>{xe({type:"success",title:"Success modal2",text:JSON.stringify(o)})}).catch(()=>{xe({type:"error",title:"Error modal2"})})}function s(){Bt(Mr,{test:"modal3"}).then(o=>{xe({type:"success",title:"Success modal3",text:JSON.stringify(o)})}).catch(()=>{xe({type:"error",title:"Error modal3"})})}return(o,r)=>{const i=Sn("notifications");return q(),be(ce,null,[k("div",{class:"container py-5"},[k("div",{class:"bg-body-secondary p-5 rounded"},[la,ca,aa,k("div",{class:"d-grid gap-2 d-sm-flex"},[k("button",{onClick:t,class:"btn btn-primary"}," Open modal1 "),k("button",{onClick:n,class:"btn btn-primary"}," Open modal2 "),k("button",{onClick:s,class:"btn btn-primary"}," Open modal3 ")])])]),he(i,{class:"notifications"}),he(ve(Ar))],64)}}});const fa=On(ua,[["__scopeId","data-v-7aa35284"]]);const Ms=pc(fa);Ms.use(Rc);Ms.use(sa({transitionTime:200,animationType:"slideUp",modalStyle:{padding:"2rem 1rem"},overlayStyle:{"background-color":"rgba(0,0,0,.3)"}}));Ms.mount("#app"); diff --git a/demo/index.html b/demo/index.html index 87e3b6c..3b2ab84 100644 --- a/demo/index.html +++ b/demo/index.html @@ -8,8 +8,8 @@ - - + +
diff --git a/dist/vue-modal.js b/dist/vue-modal.js index ca562ea..b0a9cfa 100644 --- a/dist/vue-modal.js +++ b/dist/vue-modal.js @@ -1,7 +1,7 @@ -(function(){var a;"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.nonce=(a=document.head.querySelector("meta[property=csp-nonce]"))==null?void 0:a.content,e.appendChild(document.createTextNode(`.vue-modal[data-v-75f88310]{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;overflow-y:auto}.vue-modal__inner[data-v-75f88310]{margin-bottom:auto;opacity:0;visibility:hidden;width:100%;display:flex;justify-content:center}.vue-modal__inner.vue-modal__inner--slideDown[data-v-75f88310]{transform:translateY(-40px)}.vue-modal__inner.vue-modal__inner--slideUp[data-v-75f88310]{transform:translateY(40px)}.vue-modal__inner.vue-modal__inner--slideLeft[data-v-75f88310]{transform:translate(-40px)}.vue-modal__inner.vue-modal__inner--slideRight[data-v-75f88310]{transform:translate(40px)}.vue-modal__inner.vue-modal__inner--center[data-v-75f88310]{margin-top:auto}.vue-modal__inner.vue-modal__inner--active[data-v-75f88310]:not(.vue-modal__inner--hide){transform:translate(0);opacity:1;visibility:visible}.vue-modals[data-v-48abfbb2]{width:0}.vue-modals[data-v-48abfbb2] *{box-sizing:border-box}.vue-modals-overlay[data-v-48abfbb2]{position:fixed;top:0;left:0;width:100%;height:100%;opacity:0;visibility:hidden}.vue-modals-overlay.active[data-v-48abfbb2]{opacity:1;visibility:visible}.vue-modal-content[data-v-39a87773]{background:#fff;border-radius:.5rem;font-family:inherit}.vue-modal-content.size-sm[data-v-39a87773]{width:100%;max-width:576px}.vue-modal-content.size-md[data-v-39a87773]{width:100%;max-width:768px}.vue-modal-content.size-lg[data-v-39a87773]{width:100%;max-width:992px}.vue-modal-content.size-xl[data-v-39a87773]{width:100%;max-width:1200px}.vue-modal-content.size-xxl[data-v-39a87773]{width:100%;max-width:1400px}.vue-modal-header[data-v-39a87773]{padding:1rem;display:flex;flex-shrink:0;align-items:center;justify-content:space-between;border-bottom:1px solid #dee2e6;border-top-left-radius:.5rem;border-top-right-radius:.5rem}.vue-modal-title[data-v-39a87773]{font-size:1.25rem;font-weight:500;margin:0}.vue-modal-btn-close[data-v-39a87773]{opacity:.5;width:2rem;height:2rem;background:transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;border:none;padding:0;cursor:pointer;transition:opacity .2s ease}.vue-modal-btn-close[data-v-39a87773]:hover{opacity:1}.vue-modal-body[data-v-39a87773]{padding:1rem}.vue-modal-footer[data-v-39a87773]{padding:1rem;display:flex;flex-wrap:wrap;justify-content:flex-end;border-bottom-left-radius:.5rem;border-bottom-right-radius:.5rem;border-top:1px solid #dee2e6;gap:.25rem}`)),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); -import { reactive as I, computed as v, markRaw as D, defineComponent as T, ref as M, onMounted as N, onBeforeUnmount as R, openBlock as c, createElementBlock as f, normalizeStyle as x, createElementVNode as z, normalizeClass as $, renderSlot as k, Fragment as H, renderList as V, unref as b, createBlock as P, withCtx as q, resolveDynamicComponent as F, normalizeProps as U, guardReactiveProps as j, useSlots as A, toDisplayString as G, createCommentVNode as S } from "vue"; +(function(){var e;"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.nonce=(e=document.head.querySelector("meta[property=csp-nonce]"))==null?void 0:e.content,a.appendChild(document.createTextNode(`.vue-modal[data-v-1421616b]{position:fixed;top:0;left:0;width:100%;height:100%;overflow-y:auto;opacity:0;visibility:hidden;display:flex;justify-content:center;flex-wrap:wrap}.vue-modal.vue-modal--slideDown[data-v-1421616b]{transform:translateY(-40px)}.vue-modal.vue-modal--slideUp[data-v-1421616b]{transform:translateY(40px)}.vue-modal.vue-modal--slideLeft[data-v-1421616b]{transform:translate(-40px)}.vue-modal.vue-modal--slideRight[data-v-1421616b]{transform:translate(40px)}.vue-modal.vue-modal--center[data-v-1421616b]{align-items:center}.vue-modal.vue-modal--top[data-v-1421616b]{align-items:flex-start}.vue-modal.vue-modal--active[data-v-1421616b]:not(.vue-modal--hide){transform:translate(0);opacity:1;visibility:visible}.vue-modals[data-v-48abfbb2]{width:0}.vue-modals[data-v-48abfbb2] *{box-sizing:border-box}.vue-modals-overlay[data-v-48abfbb2]{position:fixed;top:0;left:0;width:100%;height:100%;opacity:0;visibility:hidden}.vue-modals-overlay.active[data-v-48abfbb2]{opacity:1;visibility:visible}.vue-modal-content[data-v-39a87773]{background:#fff;border-radius:.5rem;font-family:inherit}.vue-modal-content.size-sm[data-v-39a87773]{width:100%;max-width:576px}.vue-modal-content.size-md[data-v-39a87773]{width:100%;max-width:768px}.vue-modal-content.size-lg[data-v-39a87773]{width:100%;max-width:992px}.vue-modal-content.size-xl[data-v-39a87773]{width:100%;max-width:1200px}.vue-modal-content.size-xxl[data-v-39a87773]{width:100%;max-width:1400px}.vue-modal-header[data-v-39a87773]{padding:1rem;display:flex;flex-shrink:0;align-items:center;justify-content:space-between;border-bottom:1px solid #dee2e6;border-top-left-radius:.5rem;border-top-right-radius:.5rem}.vue-modal-title[data-v-39a87773]{font-size:1.25rem;font-weight:500;margin:0}.vue-modal-btn-close[data-v-39a87773]{opacity:.5;width:2rem;height:2rem;background:transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;border:none;padding:0;cursor:pointer;transition:opacity .2s ease}.vue-modal-btn-close[data-v-39a87773]:hover{opacity:1}.vue-modal-body[data-v-39a87773]{padding:1rem}.vue-modal-footer[data-v-39a87773]{padding:1rem;display:flex;flex-wrap:wrap;justify-content:flex-end;border-bottom-left-radius:.5rem;border-bottom-right-radius:.5rem;border-top:1px solid #dee2e6;gap:.25rem}`)),document.head.appendChild(a)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); +import { reactive as L, computed as _, markRaw as I, defineComponent as k, ref as b, onMounted as P, onBeforeUnmount as N, openBlock as r, createElementBlock as f, normalizeClass as T, normalizeStyle as R, renderSlot as S, Fragment as H, renderList as V, unref as x, createBlock as B, withCtx as q, resolveDynamicComponent as F, normalizeProps as U, guardReactiveProps as j, createElementVNode as W, useSlots as A, toDisplayString as G, createCommentVNode as h } from "vue"; import J from "js-event-bus"; -const s = I({ +const s = L({ transitionTime: 200, animationType: "slideDown", modalStyle: { @@ -15,66 +15,66 @@ const s = I({ } }); function K(e) { - var o, t, l, a, r; - e != null && e.transitionTime && (s.transitionTime = e.transitionTime), e != null && e.animationType && (s.animationType = e.animationType), e != null && e.modalStyle && ((o = e.modalStyle) != null && o.padding && (s.modalStyle.padding = e.modalStyle.padding), (t = e.modalStyle) != null && t.align && (s.modalStyle.align = e.modalStyle.align), (l = e.modalStyle) != null && l["z-index"] && (s.modalStyle["z-index"] = e.modalStyle["z-index"])), (a = e == null ? void 0 : e.overlayStyle) != null && a["z-index"] && (s.overlayStyle["z-index"] = e.overlayStyle["z-index"]), (r = e == null ? void 0 : e.overlayStyle) != null && r["background-color"] && (s.overlayStyle["background-color"] = e.overlayStyle["background-color"]); + var o, t, l, a, c; + e != null && e.transitionTime && (s.transitionTime = e.transitionTime), e != null && e.animationType && (s.animationType = e.animationType), e != null && e.modalStyle && ((o = e.modalStyle) != null && o.padding && (s.modalStyle.padding = e.modalStyle.padding), (t = e.modalStyle) != null && t.align && (s.modalStyle.align = e.modalStyle.align), (l = e.modalStyle) != null && l["z-index"] && (s.modalStyle["z-index"] = e.modalStyle["z-index"])), (a = e == null ? void 0 : e.overlayStyle) != null && a["z-index"] && (s.overlayStyle["z-index"] = e.overlayStyle["z-index"]), (c = e == null ? void 0 : e.overlayStyle) != null && c["background-color"] && (s.overlayStyle["background-color"] = e.overlayStyle["background-color"]); } -const i = I({ +const i = L({ modals: [] -}), ve = v(() => i.modals.length > 0); +}), fe = _(() => i.modals.length > 0); function Q(e, o, t) { - i.modals.push(D({ component: e, props: o, options: t })); + i.modals.push(I({ component: e, props: o, options: t })); } function X() { i.modals.pop(); } -const E = new J(); +const M = new J(); function g(e, ...o) { - E.emit(e, null, ...o); + M.emit(e, null, ...o); } -function u(e, o) { - E.on(e, o); +function m(e, o) { + M.on(e, o); } -function y(e, o) { - E.detach(e, o); +function v(e, o) { + M.detach(e, o); } var n = /* @__PURE__ */ ((e) => (e.Open = "open", e.Opened = "opened", e.Close = "close", e.Closed = "closed", e))(n || {}); function Y(e) { return "key" in e ? e.key === "Escape" || e.key === "Esc" : e.keyCode === 27; } -async function fe(e, o, t) { +async function ve(e, o, t) { t != null && t.force && await Z(!1); const l = i.modals.length; return Q( e, o /*, options*/ - ), g(n.Open), new Promise((a, r) => { - function _(m) { - m.index === l && (y(n.Closed, _), m.success ? a(m.data) : r()); + ), g(n.Open), new Promise((a, c) => { + function y(u) { + u.index === l && (v(n.Closed, y), u.success ? a(u.data) : c()); } - u(n.Closed, _); + m(n.Closed, y); }); } function ye(e) { return new Promise((o) => { function t(l) { - y(n.Closed, t), o(l.data); + v(n.Closed, t), o(l.data); } - u(n.Closed, t), g(n.Close, { success: !0, data: e }); + m(n.Closed, t), g(n.Close, { success: !0, data: e }); }); } -function W() { +function D() { return new Promise((e) => { function o() { - y(n.Closed, o), e(); + v(n.Closed, o), e(); } - u(n.Closed, o), g(n.Close, { success: !1 }); + m(n.Closed, o), g(n.Close, { success: !1 }); }); } function Z(e = !0) { return new Promise((o) => { function t() { - y(n.Closed, t); + v(n.Closed, t); for (let l = i.modals.length - 1; l >= 0; l--) i.modals.splice(l, 1), g(n.Closed, { index: l, @@ -82,35 +82,34 @@ function Z(e = !0) { }); o(); } - u(n.Closed, t), g(n.Close, { success: !1, forceCloseAll: e }); + m(n.Closed, t), g(n.Close, { success: !1, forceCloseAll: e }); }); } -const w = /* @__PURE__ */ T({ +const w = /* @__PURE__ */ k({ __name: "BaseModal", props: { index: { type: Number, required: !0 } }, setup(e) { - const o = e, t = M(!1), l = v(() => o.index !== i.modals.length - 1), a = v(() => s.animationType !== "none" && s.transitionTime || 0), r = v(() => { + const o = e, t = b(!1), l = _(() => o.index !== i.modals.length - 1), a = _(() => s.animationType !== "none" && s.transitionTime || 0), c = _(() => { var d, C; return { padding: (d = s.modalStyle) == null ? void 0 : d.padding, - "z-index": (C = s.modalStyle) == null ? void 0 : C["z-index"] + "z-index": (C = s.modalStyle) == null ? void 0 : C["z-index"], + transition: `opacity ${a.value}ms ease, visibility ${a.value}ms ease, transform ${a.value}ms ease` }; - }), _ = v(() => ({ - transition: `opacity ${a.value}ms ease, visibility ${a.value}ms ease, transform ${a.value}ms ease` - })), m = v(() => { + }), y = _(() => { var d; return [ { - "vue-modal__inner--active": t.value, - "vue-modal__inner--hide": l.value, - "vue-modal__inner--center": ((d = s.modalStyle) == null ? void 0 : d.align) === "center" + "vue-modal--active": t.value, + "vue-modal--hide": l.value }, - `vue-modal__inner--${s.animationType}` + `vue-modal--${(d = s.modalStyle) == null ? void 0 : d.align}`, + `vue-modal--${s.animationType}` ]; }); - function h(d) { + function u(d) { i.modals.length - 1 === o.index && (t.value = !1, setTimeout(g, a.value, n.Closed, { index: o.index, success: d.success, @@ -118,33 +117,28 @@ const w = /* @__PURE__ */ T({ })); } function p(d) { - Y(d) && i.modals.length - 1 === o.index && W(); + Y(d) && i.modals.length - 1 === o.index && D(); } - return N(() => { + return P(() => { setTimeout(() => { t.value = !0; - }, o.index > 0 ? a.value : 0), u(n.Close, h), document.addEventListener("keydown", p), g(n.Opened); - }), R(() => { - y(n.Close, h), document.removeEventListener("keydown", p); - }), (d, C) => (c(), f("div", { - class: "vue-modal", - style: x(r.value) + }, o.index > 0 ? a.value : 0), m(n.Close, u), document.addEventListener("keydown", p), g(n.Opened); + }), N(() => { + v(n.Close, u), document.removeEventListener("keydown", p); + }), (d, C) => (r(), f("div", { + class: T(["vue-modal", y.value]), + style: R(c.value) }, [ - z("div", { - class: $(["vue-modal__inner", m.value]), - style: x(_.value) - }, [ - k(d.$slots, "default", {}, void 0, !0) - ], 6) - ], 4)); + S(d.$slots, "default", {}, void 0, !0) + ], 6)); } }); -const B = (e, o) => { +const $ = (e, o) => { const t = e.__vccOpts || e; for (const [l, a] of o) t[l] = a; return t; -}, O = /* @__PURE__ */ B(w, [["__scopeId", "data-v-75f88310"]]); +}, O = /* @__PURE__ */ $(w, [["__scopeId", "data-v-1421616b"]]); function ee() { var l; const e = document.createElement("div"); @@ -155,7 +149,7 @@ function ee() { return (l = e.parentNode) == null || l.removeChild(e), t; } function oe() { - const e = M(ee()); + const e = b(ee()); function o() { document.documentElement.style.overflow = "hidden", document.documentElement.scrollHeight > document.documentElement.clientHeight && (document.body.style.paddingRight = `${e.value}px`); } @@ -170,47 +164,47 @@ function oe() { toggleLock: l }; } -const te = { class: "vue-modals" }, le = /* @__PURE__ */ T({ +const te = { class: "vue-modals" }, le = /* @__PURE__ */ k({ __name: "ModalTarget", setup(e) { - const o = s.animationType !== "none" && s.transitionTime || 0, t = v(() => ({ + const o = s.animationType !== "none" && s.transitionTime || 0, t = _(() => ({ ...s == null ? void 0 : s.overlayStyle, transition: `opacity ${o}ms ease, visibility ${o}ms ease` - })), l = M(!1), a = v(() => i.modals.length && !l.value); - function r({ forceCloseAll: p }) { - (i.modals.length === 1 && p !== !1 || p) && (l.value = !0, setTimeout(() => { + })), l = b(!1), a = _(() => i.modals.length && !l.value); + function c({ forceCloseAll: d }) { + (i.modals.length === 1 && d !== !1 || d) && (l.value = !0, setTimeout(() => { l.value = !1; }, o)); } - const _ = oe(); - function m() { - _.toggleLock(!1); + const y = oe(); + function u() { + y.toggleLock(!1); } - function h() { - _.toggleLock(!0); + function p() { + y.toggleLock(!0); } - return N(() => { - u(n.Close, r), u(n.Closed, m), u(n.Open, h); - }), R(() => { - y(n.Close, r), y(n.Closed, m), y(n.Open, h); - }), (p, d) => (c(), f("div", te, [ - (c(!0), f(H, null, V(b(i).modals, (C, L) => (c(), P(O, { - index: L, - key: L + return P(() => { + m(n.Close, c), m(n.Closed, u), m(n.Open, p); + }), N(() => { + v(n.Close, c), v(n.Closed, u), v(n.Open, p); + }), (d, C) => (r(), f("div", te, [ + (r(!0), f(H, null, V(x(i).modals, (z, E) => (r(), B(O, { + index: E, + key: E }, { default: q(() => [ - (c(), P(F(C.component), U(j(C.props)), null, 16)) + (r(), B(F(z.component), U(j(z.props)), null, 16)) ]), _: 2 }, 1032, ["index"]))), 128)), - z("div", { - class: $(["vue-modals-overlay", { active: a.value }]), - style: x(t.value) + W("div", { + class: T(["vue-modals-overlay", { active: a.value }]), + style: R(t.value) }, null, 6) ])); } }); -const ne = /* @__PURE__ */ B(le, [["__scopeId", "data-v-48abfbb2"]]), ae = { +const ne = /* @__PURE__ */ $(le, [["__scopeId", "data-v-48abfbb2"]]), ae = { key: 0, class: "vue-modal-header" }, se = { @@ -219,7 +213,7 @@ const ne = /* @__PURE__ */ B(le, [["__scopeId", "data-v-48abfbb2"]]), ae = { }, de = { class: "vue-modal-body" }, ie = { key: 1, class: "vue-modal-footer" -}, re = /* @__PURE__ */ T({ +}, ce = /* @__PURE__ */ k({ __name: "SimpleModal", props: { title: {}, @@ -234,45 +228,45 @@ const ne = /* @__PURE__ */ B(le, [["__scopeId", "data-v-48abfbb2"]]), ae = { }, setup(e) { const o = e, t = A(); - return (l, a) => (c(), f("div", { - class: $(["vue-modal-content", `size-${o.size}`]) + return (l, a) => (r(), f("div", { + class: T(["vue-modal-content", `size-${o.size}`]) }, [ - o.title || o.showClose ? (c(), f("div", ae, [ - o.title ? (c(), f("h1", se, G(o.title), 1)) : S("", !0), - o.showClose ? (c(), f("button", { + o.title || o.showClose ? (r(), f("div", ae, [ + o.title ? (r(), f("h1", se, G(o.title), 1)) : h("", !0), + o.showClose ? (r(), f("button", { key: 1, - onClick: a[0] || (a[0] = (r) => b(W)()), + onClick: a[0] || (a[0] = (c) => x(D)()), class: "vue-modal-btn-close", "aria-label": "Close" - })) : S("", !0) - ])) : S("", !0), - z("div", de, [ - k(l.$slots, "default", {}, void 0, !0) + })) : h("", !0) + ])) : h("", !0), + W("div", de, [ + S(l.$slots, "default", {}, void 0, !0) ]), - b(t).footer ? (c(), f("div", ie, [ - k(l.$slots, "footer", {}, void 0, !0) - ])) : S("", !0) + x(t).footer ? (r(), f("div", ie, [ + S(l.$slots, "footer", {}, void 0, !0) + ])) : h("", !0) ], 2)); } }); -const ce = /* @__PURE__ */ B(re, [["__scopeId", "data-v-39a87773"]]); +const re = /* @__PURE__ */ $(ce, [["__scopeId", "data-v-39a87773"]]); function _e(e) { return { install(o) { - K(e || {}), o.component("ModalTarget", ne), o.component("SimpleModal", ce), u(n.Closed, X); + K(e || {}), o.component("ModalTarget", ne), o.component("SimpleModal", re), m(n.Closed, X); } }; } export { - y as $off, - u as $on, + v as $off, + m as $on, n as Events, ne as ModalTarget, Z as closeAllModals, - W as closeModal, + D as closeModal, ye as confirmModal, _e as createModal, - ve as isOpened, - fe as openModal, + fe as isOpened, + ve as openModal, oe as useLock }; diff --git a/dist/vue-modal.umd.cjs b/dist/vue-modal.umd.cjs index 3d68c24..fabe4db 100644 --- a/dist/vue-modal.umd.cjs +++ b/dist/vue-modal.umd.cjs @@ -1,2 +1,2 @@ -(function(){var a;"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.nonce=(a=document.head.querySelector("meta[property=csp-nonce]"))==null?void 0:a.content,e.appendChild(document.createTextNode(`.vue-modal[data-v-75f88310]{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;overflow-y:auto}.vue-modal__inner[data-v-75f88310]{margin-bottom:auto;opacity:0;visibility:hidden;width:100%;display:flex;justify-content:center}.vue-modal__inner.vue-modal__inner--slideDown[data-v-75f88310]{transform:translateY(-40px)}.vue-modal__inner.vue-modal__inner--slideUp[data-v-75f88310]{transform:translateY(40px)}.vue-modal__inner.vue-modal__inner--slideLeft[data-v-75f88310]{transform:translate(-40px)}.vue-modal__inner.vue-modal__inner--slideRight[data-v-75f88310]{transform:translate(40px)}.vue-modal__inner.vue-modal__inner--center[data-v-75f88310]{margin-top:auto}.vue-modal__inner.vue-modal__inner--active[data-v-75f88310]:not(.vue-modal__inner--hide){transform:translate(0);opacity:1;visibility:visible}.vue-modals[data-v-48abfbb2]{width:0}.vue-modals[data-v-48abfbb2] *{box-sizing:border-box}.vue-modals-overlay[data-v-48abfbb2]{position:fixed;top:0;left:0;width:100%;height:100%;opacity:0;visibility:hidden}.vue-modals-overlay.active[data-v-48abfbb2]{opacity:1;visibility:visible}.vue-modal-content[data-v-39a87773]{background:#fff;border-radius:.5rem;font-family:inherit}.vue-modal-content.size-sm[data-v-39a87773]{width:100%;max-width:576px}.vue-modal-content.size-md[data-v-39a87773]{width:100%;max-width:768px}.vue-modal-content.size-lg[data-v-39a87773]{width:100%;max-width:992px}.vue-modal-content.size-xl[data-v-39a87773]{width:100%;max-width:1200px}.vue-modal-content.size-xxl[data-v-39a87773]{width:100%;max-width:1400px}.vue-modal-header[data-v-39a87773]{padding:1rem;display:flex;flex-shrink:0;align-items:center;justify-content:space-between;border-bottom:1px solid #dee2e6;border-top-left-radius:.5rem;border-top-right-radius:.5rem}.vue-modal-title[data-v-39a87773]{font-size:1.25rem;font-weight:500;margin:0}.vue-modal-btn-close[data-v-39a87773]{opacity:.5;width:2rem;height:2rem;background:transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;border:none;padding:0;cursor:pointer;transition:opacity .2s ease}.vue-modal-btn-close[data-v-39a87773]:hover{opacity:1}.vue-modal-body[data-v-39a87773]{padding:1rem}.vue-modal-footer[data-v-39a87773]{padding:1rem;display:flex;flex-wrap:wrap;justify-content:flex-end;border-bottom-left-radius:.5rem;border-bottom-right-radius:.5rem;border-top:1px solid #dee2e6;gap:.25rem}`)),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); -(function(s,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue"),require("js-event-bus")):typeof define=="function"&&define.amd?define(["exports","vue","js-event-bus"],o):(s=typeof globalThis<"u"?globalThis:s||self,o(s["vue-modal"]={},s.vue,s.jsEventBus))})(this,function(s,o,x){"use strict";const c=o.reactive({transitionTime:200,animationType:"slideDown",modalStyle:{padding:void 0,align:"center","z-index":201},overlayStyle:{"background-color":"rgba(0, 0, 0, 0.9)","z-index":200}});function E(e){var t,l,n,d,u;e!=null&&e.transitionTime&&(c.transitionTime=e.transitionTime),e!=null&&e.animationType&&(c.animationType=e.animationType),e!=null&&e.modalStyle&&((t=e.modalStyle)!=null&&t.padding&&(c.modalStyle.padding=e.modalStyle.padding),(l=e.modalStyle)!=null&&l.align&&(c.modalStyle.align=e.modalStyle.align),(n=e.modalStyle)!=null&&n["z-index"]&&(c.modalStyle["z-index"]=e.modalStyle["z-index"])),(d=e==null?void 0:e.overlayStyle)!=null&&d["z-index"]&&(c.overlayStyle["z-index"]=e.overlayStyle["z-index"]),(u=e==null?void 0:e.overlayStyle)!=null&&u["background-color"]&&(c.overlayStyle["background-color"]=e.overlayStyle["background-color"])}const r=o.reactive({modals:[]}),z=o.computed(()=>r.modals.length>0);function $(e,t,l){r.modals.push(o.markRaw({component:e,props:t,options:l}))}function N(){r.modals.pop()}const h=new x;function _(e,...t){h.emit(e,null,...t)}function m(e,t){h.on(e,t)}function f(e,t){h.detach(e,t)}var a=(e=>(e.Open="open",e.Opened="opened",e.Close="close",e.Closed="closed",e))(a||{});function L(e){return"key"in e?e.key==="Escape"||e.key==="Esc":e.keyCode===27}async function P(e,t,l){l!=null&&l.force&&await v(!1);const n=r.modals.length;return $(e,t),_(a.Open),new Promise((d,u)=>{function p(y){y.index===n&&(f(a.Closed,p),y.success?d(y.data):u())}m(a.Closed,p)})}function V(e){return new Promise(t=>{function l(n){f(a.Closed,l),t(n.data)}m(a.Closed,l),_(a.Close,{success:!0,data:e})})}function S(){return new Promise(e=>{function t(){f(a.Closed,t),e()}m(a.Closed,t),_(a.Close,{success:!1})})}function v(e=!0){return new Promise(t=>{function l(){f(a.Closed,l);for(let n=r.modals.length-1;n>=0;n--)r.modals.splice(n,1),_(a.Closed,{index:n,success:!1});t()}m(a.Closed,l),_(a.Close,{success:!1,forceCloseAll:e})})}const j=o.defineComponent({__name:"BaseModal",props:{index:{type:Number,required:!0}},setup(e){const t=e,l=o.ref(!1),n=o.computed(()=>t.index!==r.modals.length-1),d=o.computed(()=>c.animationType!=="none"&&c.transitionTime||0),u=o.computed(()=>{var i,C;return{padding:(i=c.modalStyle)==null?void 0:i.padding,"z-index":(C=c.modalStyle)==null?void 0:C["z-index"]}}),p=o.computed(()=>({transition:`opacity ${d.value}ms ease, visibility ${d.value}ms ease, transform ${d.value}ms ease`})),y=o.computed(()=>{var i;return[{"vue-modal__inner--active":l.value,"vue-modal__inner--hide":n.value,"vue-modal__inner--center":((i=c.modalStyle)==null?void 0:i.align)==="center"},`vue-modal__inner--${c.animationType}`]});function k(i){r.modals.length-1===t.index&&(l.value=!1,setTimeout(_,d.value,a.Closed,{index:t.index,success:i.success,data:i.data}))}function g(i){L(i)&&r.modals.length-1===t.index&&S()}return o.onMounted(()=>{setTimeout(()=>{l.value=!0},t.index>0?d.value:0),m(a.Close,k),document.addEventListener("keydown",g),_(a.Opened)}),o.onBeforeUnmount(()=>{f(a.Close,k),document.removeEventListener("keydown",g)}),(i,C)=>(o.openBlock(),o.createElementBlock("div",{class:"vue-modal",style:o.normalizeStyle(u.value)},[o.createElementVNode("div",{class:o.normalizeClass(["vue-modal__inner",y.value]),style:o.normalizeStyle(p.value)},[o.renderSlot(i.$slots,"default",{},void 0,!0)],6)],4))}}),K="",b=(e,t)=>{const l=e.__vccOpts||e;for(const[n,d]of t)l[n]=d;return l},I=b(j,[["__scopeId","data-v-75f88310"]]);function R(){var n;const e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",document.body.appendChild(e);const t=document.createElement("div");e.appendChild(t);const l=e.offsetWidth-t.offsetWidth;return(n=e.parentNode)==null||n.removeChild(e),l}function M(){const e=o.ref(R());function t(){document.documentElement.style.overflow="hidden",document.documentElement.scrollHeight>document.documentElement.clientHeight&&(document.body.style.paddingRight=`${e.value}px`)}function l(){document.documentElement.style.overflow="auto",document.body.style.paddingRight="0px"}function n(d){d?t():l()}return{paddingSize:e,toggleLock:n}}const W={class:"vue-modals"},q=o.defineComponent({__name:"ModalTarget",setup(e){const t=c.animationType!=="none"&&c.transitionTime||0,l=o.computed(()=>({...c==null?void 0:c.overlayStyle,transition:`opacity ${t}ms ease, visibility ${t}ms ease`})),n=o.ref(!1),d=o.computed(()=>r.modals.length&&!n.value);function u({forceCloseAll:g}){(r.modals.length===1&&g!==!1||g)&&(n.value=!0,setTimeout(()=>{n.value=!1},t))}const p=M();function y(){p.toggleLock(!1)}function k(){p.toggleLock(!0)}return o.onMounted(()=>{m(a.Close,u),m(a.Closed,y),m(a.Open,k)}),o.onBeforeUnmount(()=>{f(a.Close,u),f(a.Closed,y),f(a.Open,k)}),(g,i)=>(o.openBlock(),o.createElementBlock("div",W,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(r).modals,(C,T)=>(o.openBlock(),o.createBlock(I,{index:T,key:T},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(C.component),o.normalizeProps(o.guardReactiveProps(C.props)),null,16))]),_:2},1032,["index"]))),128)),o.createElementVNode("div",{class:o.normalizeClass(["vue-modals-overlay",{active:d.value}]),style:o.normalizeStyle(l.value)},null,6)]))}}),Q="",B=b(q,[["__scopeId","data-v-48abfbb2"]]),D={key:0,class:"vue-modal-header"},H={key:0,class:"vue-modal-title"},U={class:"vue-modal-body"},A={key:1,class:"vue-modal-footer"},F=o.defineComponent({__name:"SimpleModal",props:{title:{},showClose:{type:Boolean,default:!0},size:{type:String,default:"sm",validator(e){return["sm","md","lg","xl","xxl"].includes(e)}}},setup(e){const t=e,l=o.useSlots();return(n,d)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["vue-modal-content",`size-${t.size}`])},[t.title||t.showClose?(o.openBlock(),o.createElementBlock("div",D,[t.title?(o.openBlock(),o.createElementBlock("h1",H,o.toDisplayString(t.title),1)):o.createCommentVNode("",!0),t.showClose?(o.openBlock(),o.createElementBlock("button",{key:1,onClick:d[0]||(d[0]=u=>o.unref(S)()),class:"vue-modal-btn-close","aria-label":"Close"})):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),o.createElementVNode("div",U,[o.renderSlot(n.$slots,"default",{},void 0,!0)]),o.unref(l).footer?(o.openBlock(),o.createElementBlock("div",A,[o.renderSlot(n.$slots,"footer",{},void 0,!0)])):o.createCommentVNode("",!0)],2))}}),X="",G=b(F,[["__scopeId","data-v-39a87773"]]);function J(e){return{install(t){E(e||{}),t.component("ModalTarget",B),t.component("SimpleModal",G),m(a.Closed,N)}}}s.$off=f,s.$on=m,s.Events=a,s.ModalTarget=B,s.closeAllModals=v,s.closeModal=S,s.confirmModal=V,s.createModal=J,s.isOpened=z,s.openModal=P,s.useLock=M,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})}); +(function(){var e;"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.nonce=(e=document.head.querySelector("meta[property=csp-nonce]"))==null?void 0:e.content,a.appendChild(document.createTextNode(`.vue-modal[data-v-1421616b]{position:fixed;top:0;left:0;width:100%;height:100%;overflow-y:auto;opacity:0;visibility:hidden;display:flex;justify-content:center;flex-wrap:wrap}.vue-modal.vue-modal--slideDown[data-v-1421616b]{transform:translateY(-40px)}.vue-modal.vue-modal--slideUp[data-v-1421616b]{transform:translateY(40px)}.vue-modal.vue-modal--slideLeft[data-v-1421616b]{transform:translate(-40px)}.vue-modal.vue-modal--slideRight[data-v-1421616b]{transform:translate(40px)}.vue-modal.vue-modal--center[data-v-1421616b]{align-items:center}.vue-modal.vue-modal--top[data-v-1421616b]{align-items:flex-start}.vue-modal.vue-modal--active[data-v-1421616b]:not(.vue-modal--hide){transform:translate(0);opacity:1;visibility:visible}.vue-modals[data-v-48abfbb2]{width:0}.vue-modals[data-v-48abfbb2] *{box-sizing:border-box}.vue-modals-overlay[data-v-48abfbb2]{position:fixed;top:0;left:0;width:100%;height:100%;opacity:0;visibility:hidden}.vue-modals-overlay.active[data-v-48abfbb2]{opacity:1;visibility:visible}.vue-modal-content[data-v-39a87773]{background:#fff;border-radius:.5rem;font-family:inherit}.vue-modal-content.size-sm[data-v-39a87773]{width:100%;max-width:576px}.vue-modal-content.size-md[data-v-39a87773]{width:100%;max-width:768px}.vue-modal-content.size-lg[data-v-39a87773]{width:100%;max-width:992px}.vue-modal-content.size-xl[data-v-39a87773]{width:100%;max-width:1200px}.vue-modal-content.size-xxl[data-v-39a87773]{width:100%;max-width:1400px}.vue-modal-header[data-v-39a87773]{padding:1rem;display:flex;flex-shrink:0;align-items:center;justify-content:space-between;border-bottom:1px solid #dee2e6;border-top-left-radius:.5rem;border-top-right-radius:.5rem}.vue-modal-title[data-v-39a87773]{font-size:1.25rem;font-weight:500;margin:0}.vue-modal-btn-close[data-v-39a87773]{opacity:.5;width:2rem;height:2rem;background:transparent url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e") center/1em auto no-repeat;border:none;padding:0;cursor:pointer;transition:opacity .2s ease}.vue-modal-btn-close[data-v-39a87773]:hover{opacity:1}.vue-modal-body[data-v-39a87773]{padding:1rem}.vue-modal-footer[data-v-39a87773]{padding:1rem;display:flex;flex-wrap:wrap;justify-content:flex-end;border-bottom-left-radius:.5rem;border-bottom-right-radius:.5rem;border-top:1px solid #dee2e6;gap:.25rem}`)),document.head.appendChild(a)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); +(function(s,o){typeof exports=="object"&&typeof module<"u"?o(exports,require("vue"),require("js-event-bus")):typeof define=="function"&&define.amd?define(["exports","vue","js-event-bus"],o):(s=typeof globalThis<"u"?globalThis:s||self,o(s["vue-modal"]={},s.vue,s.jsEventBus))})(this,function(s,o,x){"use strict";const c=o.reactive({transitionTime:200,animationType:"slideDown",modalStyle:{padding:void 0,align:"center","z-index":201},overlayStyle:{"background-color":"rgba(0, 0, 0, 0.9)","z-index":200}});function E(e){var t,l,n,d,u;e!=null&&e.transitionTime&&(c.transitionTime=e.transitionTime),e!=null&&e.animationType&&(c.animationType=e.animationType),e!=null&&e.modalStyle&&((t=e.modalStyle)!=null&&t.padding&&(c.modalStyle.padding=e.modalStyle.padding),(l=e.modalStyle)!=null&&l.align&&(c.modalStyle.align=e.modalStyle.align),(n=e.modalStyle)!=null&&n["z-index"]&&(c.modalStyle["z-index"]=e.modalStyle["z-index"])),(d=e==null?void 0:e.overlayStyle)!=null&&d["z-index"]&&(c.overlayStyle["z-index"]=e.overlayStyle["z-index"]),(u=e==null?void 0:e.overlayStyle)!=null&&u["background-color"]&&(c.overlayStyle["background-color"]=e.overlayStyle["background-color"])}const r=o.reactive({modals:[]}),z=o.computed(()=>r.modals.length>0);function $(e,t,l){r.modals.push(o.markRaw({component:e,props:t,options:l}))}function L(){r.modals.pop()}const k=new x;function _(e,...t){k.emit(e,null,...t)}function m(e,t){k.on(e,t)}function f(e,t){k.detach(e,t)}var a=(e=>(e.Open="open",e.Opened="opened",e.Close="close",e.Closed="closed",e))(a||{});function N(e){return"key"in e?e.key==="Escape"||e.key==="Esc":e.keyCode===27}async function P(e,t,l){l!=null&&l.force&&await b(!1);const n=r.modals.length;return $(e,t),_(a.Open),new Promise((d,u)=>{function p(y){y.index===n&&(f(a.Closed,p),y.success?d(y.data):u())}m(a.Closed,p)})}function V(e){return new Promise(t=>{function l(n){f(a.Closed,l),t(n.data)}m(a.Closed,l),_(a.Close,{success:!0,data:e})})}function h(){return new Promise(e=>{function t(){f(a.Closed,t),e()}m(a.Closed,t),_(a.Close,{success:!1})})}function b(e=!0){return new Promise(t=>{function l(){f(a.Closed,l);for(let n=r.modals.length-1;n>=0;n--)r.modals.splice(n,1),_(a.Closed,{index:n,success:!1});t()}m(a.Closed,l),_(a.Close,{success:!1,forceCloseAll:e})})}const j=o.defineComponent({__name:"BaseModal",props:{index:{type:Number,required:!0}},setup(e){const t=e,l=o.ref(!1),n=o.computed(()=>t.index!==r.modals.length-1),d=o.computed(()=>c.animationType!=="none"&&c.transitionTime||0),u=o.computed(()=>{var i,C;return{padding:(i=c.modalStyle)==null?void 0:i.padding,"z-index":(C=c.modalStyle)==null?void 0:C["z-index"],transition:`opacity ${d.value}ms ease, visibility ${d.value}ms ease, transform ${d.value}ms ease`}}),p=o.computed(()=>{var i;return[{"vue-modal--active":l.value,"vue-modal--hide":n.value},`vue-modal--${(i=c.modalStyle)==null?void 0:i.align}`,`vue-modal--${c.animationType}`]});function y(i){r.modals.length-1===t.index&&(l.value=!1,setTimeout(_,d.value,a.Closed,{index:t.index,success:i.success,data:i.data}))}function g(i){N(i)&&r.modals.length-1===t.index&&h()}return o.onMounted(()=>{setTimeout(()=>{l.value=!0},t.index>0?d.value:0),m(a.Close,y),document.addEventListener("keydown",g),_(a.Opened)}),o.onBeforeUnmount(()=>{f(a.Close,y),document.removeEventListener("keydown",g)}),(i,C)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["vue-modal",p.value]),style:o.normalizeStyle(u.value)},[o.renderSlot(i.$slots,"default",{},void 0,!0)],6))}}),K="",S=(e,t)=>{const l=e.__vccOpts||e;for(const[n,d]of t)l[n]=d;return l},R=S(j,[["__scopeId","data-v-1421616b"]]);function W(){var n;const e=document.createElement("div");e.style.visibility="hidden",e.style.overflow="scroll",document.body.appendChild(e);const t=document.createElement("div");e.appendChild(t);const l=e.offsetWidth-t.offsetWidth;return(n=e.parentNode)==null||n.removeChild(e),l}function v(){const e=o.ref(W());function t(){document.documentElement.style.overflow="hidden",document.documentElement.scrollHeight>document.documentElement.clientHeight&&(document.body.style.paddingRight=`${e.value}px`)}function l(){document.documentElement.style.overflow="auto",document.body.style.paddingRight="0px"}function n(d){d?t():l()}return{paddingSize:e,toggleLock:n}}const q={class:"vue-modals"},D=o.defineComponent({__name:"ModalTarget",setup(e){const t=c.animationType!=="none"&&c.transitionTime||0,l=o.computed(()=>({...c==null?void 0:c.overlayStyle,transition:`opacity ${t}ms ease, visibility ${t}ms ease`})),n=o.ref(!1),d=o.computed(()=>r.modals.length&&!n.value);function u({forceCloseAll:i}){(r.modals.length===1&&i!==!1||i)&&(n.value=!0,setTimeout(()=>{n.value=!1},t))}const p=v();function y(){p.toggleLock(!1)}function g(){p.toggleLock(!0)}return o.onMounted(()=>{m(a.Close,u),m(a.Closed,y),m(a.Open,g)}),o.onBeforeUnmount(()=>{f(a.Close,u),f(a.Closed,y),f(a.Open,g)}),(i,C)=>(o.openBlock(),o.createElementBlock("div",q,[(o.openBlock(!0),o.createElementBlock(o.Fragment,null,o.renderList(o.unref(r).modals,(M,T)=>(o.openBlock(),o.createBlock(R,{index:T,key:T},{default:o.withCtx(()=>[(o.openBlock(),o.createBlock(o.resolveDynamicComponent(M.component),o.normalizeProps(o.guardReactiveProps(M.props)),null,16))]),_:2},1032,["index"]))),128)),o.createElementVNode("div",{class:o.normalizeClass(["vue-modals-overlay",{active:d.value}]),style:o.normalizeStyle(l.value)},null,6)]))}}),Q="",B=S(D,[["__scopeId","data-v-48abfbb2"]]),I={key:0,class:"vue-modal-header"},H={key:0,class:"vue-modal-title"},U={class:"vue-modal-body"},A={key:1,class:"vue-modal-footer"},F=o.defineComponent({__name:"SimpleModal",props:{title:{},showClose:{type:Boolean,default:!0},size:{type:String,default:"sm",validator(e){return["sm","md","lg","xl","xxl"].includes(e)}}},setup(e){const t=e,l=o.useSlots();return(n,d)=>(o.openBlock(),o.createElementBlock("div",{class:o.normalizeClass(["vue-modal-content",`size-${t.size}`])},[t.title||t.showClose?(o.openBlock(),o.createElementBlock("div",I,[t.title?(o.openBlock(),o.createElementBlock("h1",H,o.toDisplayString(t.title),1)):o.createCommentVNode("",!0),t.showClose?(o.openBlock(),o.createElementBlock("button",{key:1,onClick:d[0]||(d[0]=u=>o.unref(h)()),class:"vue-modal-btn-close","aria-label":"Close"})):o.createCommentVNode("",!0)])):o.createCommentVNode("",!0),o.createElementVNode("div",U,[o.renderSlot(n.$slots,"default",{},void 0,!0)]),o.unref(l).footer?(o.openBlock(),o.createElementBlock("div",A,[o.renderSlot(n.$slots,"footer",{},void 0,!0)])):o.createCommentVNode("",!0)],2))}}),X="",G=S(F,[["__scopeId","data-v-39a87773"]]);function J(e){return{install(t){E(e||{}),t.component("ModalTarget",B),t.component("SimpleModal",G),m(a.Closed,L)}}}s.$off=f,s.$on=m,s.Events=a,s.ModalTarget=B,s.closeAllModals=b,s.closeModal=h,s.confirmModal=V,s.createModal=J,s.isOpened=z,s.openModal=P,s.useLock=v,Object.defineProperty(s,Symbol.toStringTag,{value:"Module"})}); diff --git a/lib/components/BaseModal.vue b/lib/components/BaseModal.vue index 07dfbae..3798bde 100644 --- a/lib/components/BaseModal.vue +++ b/lib/components/BaseModal.vue @@ -17,25 +17,21 @@ const hide = computed(() => props.index !== stateData.modals.length - 1) const transitionTime = computed(() => { return stateOptions.animationType !== 'none' ? (stateOptions.transitionTime || 0) : 0 }) -const baseModalStyle = computed(() => { +const getStyle = computed(() => { return { 'padding': stateOptions.modalStyle?.padding, - 'z-index': stateOptions.modalStyle?.['z-index'] - } -}) -const baseModalInnerStyle = computed(() => { - return { + 'z-index': stateOptions.modalStyle?.['z-index'], 'transition': `opacity ${transitionTime.value}ms ease, visibility ${transitionTime.value}ms ease, transform ${transitionTime.value}ms ease` } }) const getClasses = computed(() => { return [ { - 'vue-modal__inner--active': show.value, - 'vue-modal__inner--hide': hide.value, - 'vue-modal__inner--center': stateOptions.modalStyle?.align === 'center' + 'vue-modal--active': show.value, + 'vue-modal--hide': hide.value }, - `vue-modal__inner--${stateOptions.animationType}` + `vue-modal--${stateOptions.modalStyle?.align}`, + `vue-modal--${stateOptions.animationType}` ] }) @@ -72,10 +68,8 @@ onBeforeUnmount(() => { @@ -86,39 +80,38 @@ onBeforeUnmount(() => { left: 0; width: 100%; height: 100%; - display: flex; overflow-y: auto; -} - -.vue-modal__inner { - margin-bottom: auto; opacity: 0; visibility: hidden; - width: 100%; display: flex; justify-content: center; + flex-wrap: wrap; - &.vue-modal__inner--slideDown { + &.vue-modal--slideDown { transform: translate(0, -40px); } - &.vue-modal__inner--slideUp { + &.vue-modal--slideUp { transform: translate(0, 40px); } - &.vue-modal__inner--slideLeft { + &.vue-modal--slideLeft { transform: translate(-40px, 0); } - &.vue-modal__inner--slideRight { + &.vue-modal--slideRight { transform: translate(40px, 0); } - &.vue-modal__inner--center { - margin-top: auto; + &.vue-modal--center { + align-items: center; + } + + &.vue-modal--top { + align-items: flex-start; } - &.vue-modal__inner--active:not(.vue-modal__inner--hide) { + &.vue-modal--active:not(.vue-modal--hide) { transform: translate(0, 0); opacity: 1; visibility: visible; diff --git a/package.json b/package.json index 58f1297..714b053 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@kolirt/vue-modal", - "version": "0.0.7", + "version": "0.0.8", "description": "Simple Vue3 modal package", "author": "kolirt", "license": "MIT",