@aevantec/litevue 0.5.6 → 0.5.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. package/README.md +9 -6
  2. package/dist/litevue-devtools.iife.js +1 -1
  3. package/dist/litevue-devtools.mjs +1 -1
  4. package/dist/litevue-devtools.umd.js +1 -1
  5. package/dist/litevue-plugins.dev.iife.js +898 -0
  6. package/dist/litevue-plugins.dev.mjs +880 -0
  7. package/dist/litevue-plugins.iife.js +1 -1
  8. package/dist/litevue-plugins.mjs +1 -1
  9. package/dist/litevue-plugins.umd.js +1 -1
  10. package/dist/litevue.dev.iife.js +2193 -0
  11. package/dist/litevue.dev.mjs +2182 -0
  12. package/dist/litevue.iife.js +1 -1
  13. package/dist/litevue.mjs +1 -1
  14. package/dist/litevue.umd.js +1 -1
  15. package/dist/plugins/collapse.iife.js +1 -1
  16. package/dist/plugins/collapse.mjs +1 -1
  17. package/dist/plugins/collapse.umd.js +1 -1
  18. package/dist/plugins/media.dev.iife.js +249 -0
  19. package/dist/plugins/media.dev.mjs +243 -0
  20. package/dist/plugins/morph.dev.iife.js +217 -0
  21. package/dist/plugins/morph.dev.mjs +212 -0
  22. package/dist/plugins/persist.dev.iife.js +126 -0
  23. package/dist/plugins/persist.dev.mjs +120 -0
  24. package/dist/types/app.d.mts +7 -0
  25. package/dist/types/app.d.ts +7 -0
  26. package/dist/types/directives/bind.d.mts +1 -1
  27. package/dist/types/directives/bind.d.ts +1 -1
  28. package/dist/types/errors.d.mts +36 -0
  29. package/dist/types/errors.d.ts +36 -0
  30. package/dist/types/eval.d.mts +8 -2
  31. package/dist/types/eval.d.ts +8 -2
  32. package/dist/types/index.d.mts +1 -0
  33. package/dist/types/index.d.ts +1 -0
  34. package/dist/types/lazy.d.mts +15 -0
  35. package/dist/types/lazy.d.ts +15 -0
  36. package/dist/types/plugins/morph/index.d.mts +2 -1
  37. package/dist/types/plugins/morph/index.d.ts +2 -1
  38. package/package.json +10 -2
@@ -1 +1 @@
1
- var LiteVue=function(e){function t(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});var n=()=>{},s=Object.assign,r=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},i=Object.prototype.hasOwnProperty,o=(e,t)=>i.call(e,t),c=Array.isArray,l=e=>"[object Map]"===h(e),u=e=>"[object Date]"===h(e),a=e=>"string"==typeof e,f=e=>"symbol"==typeof e,p=e=>null!==e&&"object"==typeof e,d=Object.prototype.toString,h=e=>d.call(e),m=e=>a(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,g=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},v=/-(\w)/g,_=g(e=>e.replace(v,(e,t)=>t?t.toUpperCase():"")),y=/\B([A-Z])/g,w=g(e=>e.replace(y,"-$1").toLowerCase()),b=g(e=>e.charAt(0).toUpperCase()+e.slice(1)),x=(g(e=>e?`on${b(e)}`:""),(e,t)=>!Object.is(e,t)),S=e=>{const t=a(e)?Number(e):NaN;return isNaN(t)?e:t};function $(e){if(c(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=a(s)?L(s):$(s);if(r)for(const e in r)t[e]=r[e]}return t}if(a(e)||p(e))return e}var k=/;(?![^(]*\))/g,E=/:([^]+)/,O=/\/\*[^]*?\*\//g;function L(e){const t={};return e.replace(O,"").split(k).forEach(e=>{if(e){const n=e.split(E);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function j(e){let t="";if(a(e))t=e;else if(c(e))for(let n=0;n<e.length;n++){const s=j(e[n]);s&&(t+=s+" ")}else if(p(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}var T;function N(e,t){if(e===t)return!0;let n=u(e),s=u(t);if(n||s)return!(!n||!s)&&e.getTime()===t.getTime();if(n=f(e),s=f(t),n||s)return e===t;if(n=c(e),s=c(t),n||s)return!(!n||!s)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=N(e[s],t[s]);return n}(e,t);if(n=p(e),s=p(t),n||s){if(!n||!s)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const s=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(s&&!r||!s&&r||!N(e[n],t[n]))return!1}}return String(e)===String(t)}function A(e,t){return e.findIndex(e=>N(e,t))}function C(e,t=void 0){t&&t.active&&t.effects.push(e)}var R=class{constructor(e,t,n,s){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,C(this,s)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,D();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(M(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),F()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=B,t=T;try{return B=!0,T=this,this._runnings++,P(this),this.fn()}finally{I(this),this._runnings--,T=t,B=e}}stop(){this.active&&(P(this),I(this),this.onStop&&this.onStop(),this.active=!1)}};function M(e){return e.value}function P(e){e._trackId++,e._depsLength=0}function I(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)V(e.deps[t],e);e.deps.length=e._depsLength}}function V(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}function W(e,t){e.effect instanceof R&&(e=e.effect.fn);const r=new R(e,n,()=>{r.dirty&&r.run()});t&&(s(r,t),t.scope&&C(r,t.scope)),t&&t.lazy||r.run();const i=r.run.bind(r);return i.effect=r,i}var B=!0,z=0,K=[];function D(){K.push(B),B=!1}function F(){const e=K.pop();B=void 0===e||e}function U(){z++}function q(){for(z--;!z&&J.length;)J.shift()()}function H(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&V(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}var J=[];function Z(e,t,n){U();for(const s of e.keys()){let n;s._dirtyLevel<t&&(null!=n?n:n=e.get(s)===s._trackId)&&(s._shouldSchedule||(s._shouldSchedule=0===s._dirtyLevel),s._dirtyLevel=t),s._shouldSchedule&&(null!=n?n:n=e.get(s)===s._trackId)&&(s.trigger(),s._runnings&&!s.allowRecurse||2===s._dirtyLevel||(s._shouldSchedule=!1,s.scheduler&&J.push(s.scheduler)))}q()}var G=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Q=new WeakMap,X=Symbol(""),Y=Symbol("");function ee(e,t,n){if(B&&T){let t=Q.get(e);t||Q.set(e,t=new Map);let s=t.get(n);s||t.set(n,s=G(()=>t.delete(n))),H(T,s)}}function te(e,t,n,s,r,i){const o=Q.get(e);if(!o)return;let u=[];if("clear"===t)u=[...o.values()];else if("length"===n&&c(e)){const e=Number(s);o.forEach((t,n)=>{("length"===n||!f(n)&&n>=e)&&u.push(t)})}else switch(void 0!==n&&u.push(o.get(n)),t){case"add":c(e)?m(n)&&u.push(o.get("length")):(u.push(o.get(X)),l(e)&&u.push(o.get(Y)));break;case"delete":c(e)||(u.push(o.get(X)),l(e)&&u.push(o.get(Y)));break;case"set":l(e)&&u.push(o.get(X))}U();for(const c of u)c&&Z(c,4);q()}var ne=t("__proto__,__v_isRef,__isVue"),se=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(f)),re=ie();function ie(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=we(this);for(let t=0,r=this.length;t<r;t++)ee(n,0,t+"");const s=n[t](...e);return-1===s||!1===s?n[t](...e.map(we)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){D(),U();const n=we(this)[t].apply(this,e);return q(),F(),n}}),e}function oe(e){f(e)||(e=String(e));const t=we(this);return ee(t,0,e),t.hasOwnProperty(e)}var ce=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(s?r?me:he:r?de:pe).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const i=c(e);if(!s){if(i&&o(re,t))return Reflect.get(re,t,n);if("hasOwnProperty"===t)return oe}const l=Reflect.get(e,t,n);return(f(t)?se.has(t):ne(t))?l:(s||ee(e,0,t),r?l:Se(l)?i&&m(t)?l:l.value:p(l)?s?function(e){return _e(e,!0,fe,null,he)}(l):ve(l):l)}},le=class extends ce{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];if(!this._isShallow){const t=ye(r);if(function(e){return!(!e||!e.__v_isShallow)}(n)||ye(n)||(r=we(r),n=we(n)),!c(e)&&Se(r)&&!Se(n))return!t&&(r.value=n,!0)}const i=c(e)&&m(t)?Number(t)<e.length:o(e,t),l=Reflect.set(e,t,n,s);return e===we(s)&&(i?x(n,r)&&te(e,"set",t,n):te(e,"add",t,n)),l}deleteProperty(e,t){const n=o(e,t),s=(e[t],Reflect.deleteProperty(e,t));return s&&n&&te(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return f(t)&&se.has(t)||ee(e,0,t),n}ownKeys(e){return ee(e,0,c(e)?"length":X),Reflect.ownKeys(e)}},ue=class extends ce{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},ae=new le,fe=new ue,pe=new WeakMap,de=new WeakMap,he=new WeakMap,me=new WeakMap;function ge(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>h(e).slice(8,-1))(e))}function ve(e){return ye(e)?e:_e(e,!1,ae,null,pe)}function _e(e,t,n,s,r){if(!p(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=ge(e);if(0===o)return e;const c=new Proxy(e,2===o?s:n);return r.set(e,c),c}function ye(e){return!(!e||!e.__v_isReadonly)}function we(e){const t=e&&e.__v_raw;return t?we(t):e}var be=class{constructor(e,t,n,s){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new R(()=>e(this._value),()=>xe(this,2===this.effect._dirtyLevel?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const e=we(this);var t,n;return e._cacheable&&!e.effect.dirty||!x(e._value,e._value=e.effect.run())||xe(e,4),t=e,B&&T&&(t=we(t),H(T,null!=(n=t.dep)?n:t.dep=G(()=>t.dep=void 0,t instanceof be?t:void 0))),e.effect._dirtyLevel>=2&&xe(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}};function xe(e,t=4,n,s){const r=(e=we(e)).dep;r&&Z(r,t)}function Se(e){return!(!e||!0!==e.__v_isRef)}var $e=0,ke=()=>{const e=Object.create(null);return(t="id")=>e[t]||(e[t]=`${t}-${++$e}`)},Ee=e=>(t,n)=>{const s="function"==typeof t?t:()=>t.split(".").reduce((e,t)=>null==e?e:e[t],e.scope);let r,i=!1;e.effect(()=>{const e=s();i&&e!==r&&(D(),n(e,r),F()),i=!0,r=e})},Oe=new Map,Le=new Map,je=new Map,Te=new Map,Ne=new Set,Ae=!1,Ce=()=>Ae||"undefined"!=typeof window&&!1===window.__LITE_VUE_DEVTOOLS__,Re={"scope:mount":new Set,"scope:unmount":new Set,"store:register":new Set,flush:new Set},Me=(e,...t)=>{Re[e].forEach(e=>e(...t))},Pe=()=>{},Ie=(e,t,n,s)=>Ce()?Pe:(Oe.set(e,t),n&&Le.set(e,n),s&&je.set(e,s),Me("scope:mount",e,t),()=>{Oe.delete(e)&&(Le.delete(e),je.delete(e),Me("scope:unmount",e))}),Ve={scopes:Oe,exps:Le,names:je,stores:Te,components:Ne,getScopeByName(e){for(const[t,n]of je)if(n===e)return Oe.get(t)},getScope(e){let t=1===e.nodeType?e:e.parentElement;for(;t;){const e=Oe.get(t);if(e)return e;t=t.parentElement}},on:(e,t)=>(Re[e].add(t),()=>Re[e].delete(t)),off(e,t){Re[e].delete(t)}};"undefined"==typeof window||Ce()||(window.__LITE_VUE__=Ve);var We,Be=new WeakSet,ze=e=>{Be.add(e),function(e){e.effect.stop()}(e)},Ke=!1,De=[],Fe=Promise.resolve(),Ue=e=>Fe.then(e),qe=e=>{De.includes(e)||De.push(e),Ke||(Ke=!0,Ue(He))},He=()=>{for(const e of De)Be.has(e)||e();De.length=0,Ke=!1,Re.flush.size&&!Ce()&&Me("flush")},Je=/^(spellcheck|draggable|form|list|type)$/,Ze=({el:e,get:t,effect:n,arg:s,modifiers:r})=>{let i;"class"===s&&(e._class=e.className),n(()=>{let n=t();if(s)r?.camel&&(s=_(s)),Ge(e,s,n,i);else{for(const t in n)Ge(e,t,n[t],i&&i[t]);for(const t in i)n&&t in n||Ge(e,t,null)}i=n})},Ge=(e,t,n,s)=>{if("class"===t)e.setAttribute("class",j(e._class?[e._class,n]:n)||"");else if("style"===t){n=$(n);const{style:t}=e;if(n)if(a(n))n!==s&&(t.cssText=n);else{for(const e in n)Xe(t,e,n[e]);if(s&&!a(s))for(const e in s)null==n[e]&&Xe(t,e,"")}else e.removeAttribute("style")}else e instanceof SVGElement||!(t in e)||Je.test(t)?"true-value"===t?e._trueValue=n:"false-value"===t?e._falseValue=n:null!=n?e.setAttribute(t,n):e.removeAttribute(t):(e[t]=n,"value"===t&&(e._value=n))},Qe=/\s*!important$/,Xe=(e,t,n)=>{c(n)?n.forEach(n=>Xe(e,t,n)):t.startsWith("--")?e.setProperty(t,n):Qe.test(n)?e.setProperty(w(t),n.replace(Qe,""),"important"):e[t]=n},Ye=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,et=["ctrl","shift","alt","meta"],tt={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>et.some(n=>e[`${n}Key`]&&!t[n])},nt=/^(stop|prevent|self|ctrl|shift|alt|meta|left|middle|right|exact|once|capture|passive|window|document|outside|debounce(-\d+)?|throttle(-\d+)?|prop-.+|name-.+)$/,st=({el:e,get:t,exp:n,arg:s,modifiers:r})=>{if(!s)return;let i,o=Ye.test(n)?t(`(e => ${n}(e))`):t(`($event => { ${n} })`);if("mounted"===s||"vue:mounted"===s){let e=!0;return Ue(()=>{e&&o()}),()=>{e=!1}}if("unmounted"===s||"vue:unmounted"===s)return()=>o();if(r){"click"===s&&(r.right&&(s="contextmenu"),r.middle&&(s="mouseup"));let t=o;for(const e in r){let n=/^debounce(?:-(\d+))?$/.exec(e);if(n){const e=t,s=n[1]?+n[1]:250;t=t=>{clearTimeout(i),i=setTimeout(e,s,t)};continue}if(n=/^throttle(?:-(\d+))?$/.exec(e),n){const e=t,s=n[1]?+n[1]:250;let r=0;t=t=>{const n=Date.now();n-r>=s&&(r=n,e(t))}}}const n=Object.keys(r).filter(e=>!nt.test(e));o=s=>{if(!(r.outside&&e.contains(s.target)||"key"in s&&n.length&&!(w(s.key)in r))){for(const e in r){const t=tt[e];if(t&&t(s,r))return;if(e.startsWith("prop-")&&"propertyName"in s&&s.propertyName!==e.slice(5))return;if(e.startsWith("name-")&&"animationName"in s&&s.animationName!==e.slice(5))return}return t(s)}}}const c=r?.window?window:r?.document||r?.outside?document:e,l=s;return c.addEventListener(l,o,r),()=>{clearTimeout(i),c.removeEventListener(l,o,r)}},rt=({el:e,get:t,effect:n})=>{n(()=>{e.textContent=it(t())})},it=e=>null==e?"":p(e)?JSON.stringify(e,null,2):String(e),ot=(e,t)=>{const n=e.getAttribute(t);return null!=n&&e.removeAttribute(t),n},ct=e=>"_value"in e?e._value:e.value,lt=(e,t)=>{const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t},ut=e=>{e.target.composing=!0},at=e=>{const t=e.target;t.composing&&(t.composing=!1,ft(t,"input"))},ft=(e,t)=>{const n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)},pt=Object.create(null),dt=(e,t,n)=>ht(e,`return(${t})`,n),ht=(e,t,n)=>{const s=pt[t]||(pt[t]=mt(t));try{return s(e,n,n&&(e=>(t,n)=>e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0})))(n))}catch(r){console.error(r)}},mt=e=>{try{return new Function("$data","$el","$dispatch",`with($data){${e}}`)}catch(t){return console.error(`${t.message} in expression: ${e}`),()=>{}}},gt=new WeakMap,vt=e=>{const t=We;return We=e,t},_t=(e,t=We)=>{if(!t)return;const n=gt.get(t);n?n.push(e):gt.set(t,[e])},yt=e=>{const t=gt.get(e);if(t){gt.delete(e);for(const e of t)e()}let n=e.firstChild;for(;n;){const e=n.nextSibling;yt(n),n=e}},wt={bind:Ze,on:st,show:({el:e,get:t,effect:n})=>{const s=e.style.display;n(()=>{e.style.display=t()?s:"none"})},text:rt,html:({el:e,get:t,effect:n})=>{n(()=>{e.innerHTML=t()})},model:({el:e,exp:t,get:n,effect:s,modifiers:r})=>{const i=e.type,o=n(`(val) => { ${t} = val }`),{trim:l,number:u="number"===i,lazy:a,fill:f}=r||{},p=[],d=(t,n)=>p.push(((e,t,n,s)=>(e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)))(e,t,n));if("SELECT"===e.tagName){const t=e;d("change",()=>{const e=Array.prototype.filter.call(t.options,e=>e.selected).map(e=>u?S(ct(e)):ct(e));o(t.multiple?e:e[0])}),s(()=>{const e=n(),s=t.multiple;for(let n=0,r=t.options.length;n<r;n++){const r=t.options[n],i=ct(r);if(s)c(e)?r.selected=A(e,i)>-1:r.selected=e.has(i);else if(N(ct(r),e))return void(t.selectedIndex!==n&&(t.selectedIndex=n))}s||-1===t.selectedIndex||(t.selectedIndex=-1)})}else if("checkbox"===i){let t;d("change",()=>{const t=n(),s=e.checked;if(c(t)){const n=ct(e),r=A(t,n),i=-1!==r;if(s&&!i)o(t.concat(n));else if(!s&&i){const e=[...t];e.splice(r,1),o(e)}}else o(lt(e,s))}),s(()=>{const s=n();c(s)?e.checked=A(s,ct(e))>-1:s!==t&&(e.checked=N(s,lt(e,!0))),t=s})}else if("radio"===i){let t;d("change",()=>{o(ct(e))}),s(()=>{const s=n();s!==t&&(e.checked=N(s,ct(e)))})}else{const t=e=>l?e.trim():u?S(e):e;let i,c=o;for(const e in r||{}){const t=/^debounce(?:-(\d+))?$/.exec(e);if(t){const e=t[1]?+t[1]:250;c=t=>{clearTimeout(i),i=setTimeout(o,e,t)},p.push(()=>clearTimeout(i))}}if(d("compositionstart",ut),d("compositionend",at),d(a?"change":"input",()=>{e.composing||c(t(e.value))}),l&&d("change",()=>{e.value=e.value.trim()}),f){const s=n();null!=s&&""!==s||!e.value||o(t(e.value))}s(()=>{if(e.composing)return;const s=e.value,r=n();document.activeElement===e&&t(s)===r||s!==r&&(e.value=r)})}return()=>p.forEach(e=>e())},effect:({el:e,ctx:t,exp:n,effect:s})=>{let r=!0;return Ue(()=>{if(!r)return;const i=vt(e);try{s(()=>ht(t.scope,n,e))}finally{vt(i)}}),()=>{r=!1}}},bt=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,xt=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,St=/^\(|\)$/g,$t=/^[{[]\s*((?:[\w_$]+\s*,?\s*)+)[\]}]$/,kt=(e,t,n)=>{const s=t.match(bt);if(!s)return;const r=e.nextSibling,i=e.parentElement,o=new Text("");i.insertBefore(o,e),i.removeChild(e),vt(o);const l=s[2].trim();let u,a,f,d,h=s[1].trim().replace(St,"").trim(),m=!1,g="key",v=e.getAttribute(g)||e.getAttribute(g=":key")||e.getAttribute(g="v-bind:key");v&&(e.removeAttribute(g),"key"===g&&(v=JSON.stringify(v))),(d=h.match(xt))&&(h=h.replace(xt,"").trim(),a=d[1].trim(),d[2]&&(f=d[2].trim())),(d=h.match($t))&&(u=d[1].split(",").map(e=>e.trim()),m="["===h[0]);let _,y,w,b=!1;const x=(e,t,s,r)=>{const i={};u?u.forEach((e,n)=>i[e]=t[m?n:e]):i[h]=t,r?(a&&(i[a]=r),f&&(i[f]=s)):a&&(i[a]=s);const o=Vt(n,i),c=v?dt(o.scope,v):s;return e.set(c,s),o.key=c,o},S=(t,n)=>{const s=new Bt(e,t);return s.key=t.key,s.insert(i,n),s};return n.effect(()=>{const e=dt(n.scope,l),t=w;if([y,w]=(e=>{const t=new Map,n=[];if(c(e))for(let s=0;s<e.length;s++)n.push(x(t,e[s],s));else if("number"==typeof e)for(let s=0;s<e;s++)n.push(x(t,s+1,s));else if(p(e)){let s=0;for(const r in e)n.push(x(t,e[r],s++,r))}return[n,t]})(e),b){for(let t=0;t<_.length;t++)w.has(_[t].key)||_[t].remove();const e=[];let n,s,r=y.length;for(;r--;){const c=y[r],l=t.get(c.key);let u;null==l?u=S(c,n?n.el:o):(u=_[l],Object.assign(u.ctx.scope,c.scope),l!==r&&(_[l+1]===n&&s!==n||(s=u,u.insert(i,n?n.el:o)))),e.unshift(n=u)}_=e}else _=y.map(e=>S(e,o)),b=!0}),r},Et=({el:e,ctx:{scope:{$refs:t}},get:n,effect:s})=>{let r;return s(()=>{const s=n();t[s]=e,r&&s!==r&&delete t[r],r=s}),()=>{r&&delete t[r]}},Ot=/^(?:v-|:|@)/,Lt=/\.([\w-]+)/g,jt=!1,Tt=(e,t)=>{e.cleanups.push(t),_t(()=>{const n=e.cleanups.indexOf(t);n>-1&&(e.cleanups.splice(n,1),t())})},Nt=(e,t)=>{const n=vt(e);try{return At(e,t)}finally{vt(n)}},At=(e,t)=>{const n=e.nodeType;if(1===n){const n=e;if(n.hasAttribute("v-pre"))return;let s;if(ot(n,"v-cloak"),s=ot(n,"v-if"))return((e,t,n)=>{const s=e.parentElement,r=new Comment("v-if");s.insertBefore(r,e);const i=[{exp:t,el:e}];let o,c;for(;(o=e.nextElementSibling)&&(c=null,""===ot(o,"v-else")||(c=ot(o,"v-else-if")));)s.removeChild(o),i.push({exp:c,el:o});const l=e.nextSibling;let u;s.removeChild(e),vt(r);let a=-1;const f=()=>{u&&(u.el.parentNode===s&&s.insertBefore(r,u.el),u.remove(),u=void 0)};let p;const d=()=>ze(p);return p=n.effect(()=>{for(let e=0;e<i.length;e++){const{exp:t,el:o}=i[e];if(!t||dt(n.scope,t))return void(e!==a&&(f(),u=new Bt(o,n),u.insert(s,r),_t(d,u.el),u.el.parentNode===s&&s.removeChild(r),a=e))}a=-1,f()}),_t(d,r),l})(n,s,t);if(s=ot(n,"v-for"))return kt(n,s,t);const r=ot(n,"v-name");let i;if(s=ot(n,"v-teleport")){const e=document.querySelector(s);e&&(i=n.nextSibling,n.__teleported=!0,e.appendChild(n),t.cleanups.push(()=>n.remove()))}if((s=ot(n,"v-scope"))||""===s){const e=s?dt(t.scope,s):{};t=Vt(t,e),n.__ctx=t,Tt(t,Ie(n,t.scope,s||void 0,r||void 0)),e.$template&&Pt(n,e.$template)}const o=null!=ot(n,"v-once");o&&(jt=!0),(s=ot(n,"ref"))&&Mt(n,Et,`"${s}"`,t),Ct(n,t);const c=[];for(const{name:e,value:l}of[...n.attributes])Ot.test(e)&&"v-cloak"!==e&&("v-model"===e?c.unshift([e,l]):"@"===e[0]||/^v-on\b/.test(e)?c.push([e,l]):Rt(n,e,l,t));for(const[e,l]of c)Rt(n,e,l,t);return o&&(jt=!1),i}if(3===n){const n=e.data;if(n.includes(t.delimiters[0])){let s,r=[],i=0;for(;s=t.delimitersRE.exec(n);){const e=n.slice(i,s.index);e&&r.push(JSON.stringify(e)),r.push(`$s(${s[1]})`),i=s.index+s[0].length}i<n.length&&r.push(JSON.stringify(n.slice(i))),Mt(e,rt,r.join("+"),t)}}else 11===n&&Ct(e,t)},Ct=(e,t)=>{let n=e.firstChild;for(;n;)n=Nt(n,t)||n.nextSibling},Rt=(e,t,n,s)=>{let r,i,o;if(":"===(t=t.replace(Lt,(e,t)=>((o||(o={}))[t]=!0,"")))[0])r=Ze,i=t.slice(1);else if("@"===t[0])r=st,i=t.slice(1);else{const e=t.indexOf(":"),n=e>0?t.slice(2,e):t.slice(2);r=wt[n]||s.dirs[n],i=e>0?t.slice(e+1):void 0}r&&(r===Ze&&"ref"===i&&(r=Et),Mt(e,r,n,s,i,o),e.removeAttribute(t))},Mt=(e,t,n,s,r,i)=>{const o=t({el:e,get:(t=n)=>dt(s.scope,t,e),effect:s.effect,ctx:s,exp:n,arg:r,modifiers:i});o&&Tt(s,o)},Pt=(e,t)=>{if("#"===t[0]){const n=document.querySelector(t);return void e.appendChild(n.content.cloneNode(!0))}e.innerHTML=t},It=e=>{const t={delimiters:["{{","}}"],delimitersRE:/\{\{([^]+?)\}\}/g,...e,scope:e?e.scope:ve({}),dirs:e?e.dirs:{},effects:[],blocks:[],cleanups:[],effect:e=>{if(jt)return qe(e),e;const n=W(e,{scheduler:()=>qe(n)});return t.effects.push(n),_t(()=>{ze(n),r(t.effects,n)}),n}};return t},Vt=(e,t={})=>{const n=e.scope,s=Object.create(n);Object.defineProperties(s,Object.getOwnPropertyDescriptors(t)),s.$refs=Object.create(n.$refs);const r=ve(new Proxy(s,{set:(e,t,s,i)=>i!==r||o(e,t)?Reflect.set(e,t,s,i):Reflect.set(n,t,s)})),i={...e,scope:r};return s.$watch=Ee(i),s.$id=ke(),Wt(r),i},Wt=e=>{for(const t of Object.keys(e))"function"==typeof e[t]&&(e[t]=e[t].bind(e))},Bt=class{template;ctx;key;parentCtx;isFragment;start;end;owned=!1;get el(){return this.start||this.template}constructor(e,t,n=!1){this.isFragment=e instanceof HTMLTemplateElement,n?this.template=e:this.isFragment?this.template=e.content.cloneNode(!0):this.template=e.cloneNode(!0),n||(this.parentCtx=t,t.blocks.push(this)),this.ctx=It(t),Nt(this.template,this.ctx)}insert(e,t=null){if(this.isFragment)if(this.start){let n,s=this.start;for(;s&&(n=s.nextSibling,e.insertBefore(s,t),s!==this.end);)s=n}else this.start=new Text(""),this.end=new Text(""),e.insertBefore(this.end,t),e.insertBefore(this.start,this.end),e.insertBefore(this.template,this.end);else this.template.__teleported||e.insertBefore(this.template,t);this.owned||(this.owned=!0,_t(()=>this.discard(),this.el))}remove(){this.parentCtx&&r(this.parentCtx.blocks,this);const e=()=>{const e=this.start?this.start.parentNode:this.template.parentNode;if(e)if(this.start){let t,n=this.start;for(;n&&(t=n.nextSibling,e.removeChild(n),n!==this.end);)n=t}else e.removeChild(this.template);this.teardown()},t=this.isFragment?void 0:this.template.__leave;t?t().then(e):e()}discard(){this.parentCtx&&r(this.parentCtx.blocks,this),this.teardown()}teardown(){this.ctx.blocks.splice(0).forEach(e=>{e.teardown()}),this.ctx.effects.splice(0).forEach(ze),this.ctx.cleanups.splice(0).forEach(e=>e())}},zt=ve(Object.create(null)),Kt=e=>e.replace(/[-.*+?^${}()|[\]\/\\]/g,"\\$&"),Dt=e=>{const t=It();if("function"==typeof e&&(e=e()),e&&(t.scope=ve(e),Wt(t.scope),e.$delimiters)){const[n,s]=t.delimiters=e.$delimiters;t.delimitersRE=new RegExp(Kt(n)+"([^]+?)"+Kt(s),"g")}t.scope.$s=it,t.scope.$nextTick=Ue,t.scope.$refs=Object.create(null),t.scope.$store=zt,t.scope.$watch=Ee(t),t.scope.$id=ke(),Object.defineProperty(t.scope,"$root",{value:t.scope,enumerable:!1});const n=Object.create(null);let s=[];const r=new Set,i=[],o={get scope(){return t.scope},directive(e,n){return n?(t.dirs[e]=n,this):t.dirs[e]},component(e,s){return s?(!(e in n)&&e in t.scope||(n[e]=s,(e=>{Ce()||Ne.add(e)})(e),t.scope[e]=s),this):n[e]},use(e,t){if(!r.has(e)){r.add(e);const n=("function"==typeof e?e:e.install)(o,t);"function"==typeof n&&i.push(n)}return o},mount(e){if("string"==typeof e&&!(e=document.querySelector(e)))return;let n;n=(e=e||document.documentElement).hasAttribute("v-scope")?[e]:[...e.querySelectorAll("[v-scope]")].filter(e=>!e.matches("[v-scope] [v-scope]")),n.length||(n=[e]),t.walk??=Nt,t.dispose??=yt;for(const r of n){const e=r.getAttribute("v-name"),n=new Bt(r,t,!0);r.__ctx??=n.ctx,Ve.scopes.has(r)||n.ctx.cleanups.push(Ie(r,n.ctx.scope,void 0,e||void 0)),s.push(n)}return this},unmount(e){if(null==e)return s.forEach(e=>e.teardown()),s=[],i.splice(0).forEach(e=>{try{e()}catch(t){}}),void r.clear();const t="string"==typeof e?document.querySelector(e):e;if(!t)return;const n=[];for(const r of s){const e=r.template;t.contains(e)?r.teardown():n.push(r)}s=n}};return o},Ft=document.currentScript;return Ft&&Ft.hasAttribute("init")&&Dt().mount(),e.computed=function(e,t,s=!1){let r,i;const o="function"==typeof e;return o?(r=e,i=n):(r=e.get,i=e.set),new be(r,i,o||!i,s)},e.createApp=Dt,e.devtools=Ve,e.disableDevtools=()=>{Ae=!0,Oe.clear(),Le.clear(),je.clear(),Te.clear(),Ne.clear();for(const e in Re)Re[e].clear();"undefined"!=typeof window&&window.__LITE_VUE__===Ve&&delete window.__LITE_VUE__},e.nextTick=Ue,e.reactive=ve,e.store=(e,t)=>(void 0!==t&&(zt[e]=t,"function"==typeof zt[e].init&&zt[e].init(),((e,t)=>{Ce()||(Te.set(e,t),Me("store:register",e,t))})(e,zt[e])),zt[e]),e.watchEffect=e=>{let t;return t=W(e,{scheduler:()=>qe(t)}),()=>ze(t)},e}({});
1
+ var LiteVue=function(e){function t(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});var n=()=>{},s=Object.assign,r=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},o=Object.prototype.hasOwnProperty,i=(e,t)=>o.call(e,t),c=Array.isArray,l=e=>"[object Map]"===h(e),u=e=>"[object Date]"===h(e),a=e=>"string"==typeof e,f=e=>"symbol"==typeof e,p=e=>null!==e&&"object"==typeof e,d=Object.prototype.toString,h=e=>d.call(e),m=e=>a(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,v=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},g=/-(\w)/g,_=v(e=>e.replace(g,(e,t)=>t?t.toUpperCase():"")),y=/\B([A-Z])/g,w=v(e=>e.replace(y,"-$1").toLowerCase()),b=v(e=>e.charAt(0).toUpperCase()+e.slice(1)),x=(v(e=>e?`on${b(e)}`:""),(e,t)=>!Object.is(e,t)),$=e=>{const t=a(e)?Number(e):NaN;return isNaN(t)?e:t};function k(e){if(c(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=a(s)?L(s):k(s);if(r)for(const e in r)t[e]=r[e]}return t}if(a(e)||p(e))return e}var S=/;(?![^(]*\))/g,O=/:([^]+)/,E=/\/\*[^]*?\*\//g;function L(e){const t={};return e.replace(E,"").split(S).forEach(e=>{if(e){const n=e.split(O);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function j(e){let t="";if(a(e))t=e;else if(c(e))for(let n=0;n<e.length;n++){const s=j(e[n]);s&&(t+=s+" ")}else if(p(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}var A;function T(e,t){if(e===t)return!0;let n=u(e),s=u(t);if(n||s)return!(!n||!s)&&e.getTime()===t.getTime();if(n=f(e),s=f(t),n||s)return e===t;if(n=c(e),s=c(t),n||s)return!(!n||!s)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=T(e[s],t[s]);return n}(e,t);if(n=p(e),s=p(t),n||s){if(!n||!s)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const s=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(s&&!r||!s&&r||!T(e[n],t[n]))return!1}}return String(e)===String(t)}function N(e,t){return e.findIndex(e=>T(e,t))}function P(e,t=void 0){t&&t.active&&t.effects.push(e)}var R=class{constructor(e,t,n,s){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,P(this,s)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,F();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(I(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),K()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=z,t=A;try{return z=!0,A=this,this._runnings++,C(this),this.fn()}finally{M(this),this._runnings--,A=t,z=e}}stop(){this.active&&(C(this),M(this),this.onStop&&this.onStop(),this.active=!1)}};function I(e){return e.value}function C(e){e._trackId++,e._depsLength=0}function M(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)V(e.deps[t],e);e.deps.length=e._depsLength}}function V(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}function W(e,t){e.effect instanceof R&&(e=e.effect.fn);const r=new R(e,n,()=>{r.dirty&&r.run()});t&&(s(r,t),t.scope&&P(r,t.scope)),t&&t.lazy||r.run();const o=r.run.bind(r);return o.effect=r,o}var z=!0,B=0,D=[];function F(){D.push(z),z=!1}function K(){const e=D.pop();z=void 0===e||e}function q(){B++}function U(){for(B--;!B&&J.length;)J.shift()()}function H(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&V(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}var J=[];function Z(e,t,n){q();for(const s of e.keys()){let n;s._dirtyLevel<t&&(null!=n?n:n=e.get(s)===s._trackId)&&(s._shouldSchedule||(s._shouldSchedule=0===s._dirtyLevel),s._dirtyLevel=t),s._shouldSchedule&&(null!=n?n:n=e.get(s)===s._trackId)&&(s.trigger(),s._runnings&&!s.allowRecurse||2===s._dirtyLevel||(s._shouldSchedule=!1,s.scheduler&&J.push(s.scheduler)))}U()}var G=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Q=new WeakMap,X=Symbol(""),Y=Symbol("");function ee(e,t,n){if(z&&A){let t=Q.get(e);t||Q.set(e,t=new Map);let s=t.get(n);s||t.set(n,s=G(()=>t.delete(n))),H(A,s)}}function te(e,t,n,s,r,o){const i=Q.get(e);if(!i)return;let u=[];if("clear"===t)u=[...i.values()];else if("length"===n&&c(e)){const e=Number(s);i.forEach((t,n)=>{("length"===n||!f(n)&&n>=e)&&u.push(t)})}else switch(void 0!==n&&u.push(i.get(n)),t){case"add":c(e)?m(n)&&u.push(i.get("length")):(u.push(i.get(X)),l(e)&&u.push(i.get(Y)));break;case"delete":c(e)||(u.push(i.get(X)),l(e)&&u.push(i.get(Y)));break;case"set":l(e)&&u.push(i.get(X))}q();for(const c of u)c&&Z(c,4);U()}var ne=t("__proto__,__v_isRef,__isVue"),se=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(f)),re=oe();function oe(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=we(this);for(let t=0,r=this.length;t<r;t++)ee(n,0,t+"");const s=n[t](...e);return-1===s||!1===s?n[t](...e.map(we)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){F(),q();const n=we(this)[t].apply(this,e);return U(),K(),n}}),e}function ie(e){f(e)||(e=String(e));const t=we(this);return ee(t,0,e),t.hasOwnProperty(e)}var ce=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(s?r?me:he:r?de:pe).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=c(e);if(!s){if(o&&i(re,t))return Reflect.get(re,t,n);if("hasOwnProperty"===t)return ie}const l=Reflect.get(e,t,n);return(f(t)?se.has(t):ne(t))?l:(s||ee(e,0,t),r?l:$e(l)?o&&m(t)?l:l.value:p(l)?s?function(e){return _e(e,!0,fe,null,he)}(l):ge(l):l)}},le=class extends ce{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];if(!this._isShallow){const t=ye(r);if(function(e){return!(!e||!e.__v_isShallow)}(n)||ye(n)||(r=we(r),n=we(n)),!c(e)&&$e(r)&&!$e(n))return!t&&(r.value=n,!0)}const o=c(e)&&m(t)?Number(t)<e.length:i(e,t),l=Reflect.set(e,t,n,s);return e===we(s)&&(o?x(n,r)&&te(e,"set",t,n):te(e,"add",t,n)),l}deleteProperty(e,t){const n=i(e,t),s=(e[t],Reflect.deleteProperty(e,t));return s&&n&&te(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return f(t)&&se.has(t)||ee(e,0,t),n}ownKeys(e){return ee(e,0,c(e)?"length":X),Reflect.ownKeys(e)}},ue=class extends ce{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},ae=new le,fe=new ue,pe=new WeakMap,de=new WeakMap,he=new WeakMap,me=new WeakMap;function ve(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;default:return 0}}((e=>h(e).slice(8,-1))(e))}function ge(e){return ye(e)?e:_e(e,!1,ae,null,pe)}function _e(e,t,n,s,r){if(!p(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=ve(e);if(0===i)return e;const c=new Proxy(e,2===i?s:n);return r.set(e,c),c}function ye(e){return!(!e||!e.__v_isReadonly)}function we(e){const t=e&&e.__v_raw;return t?we(t):e}var be=class{constructor(e,t,n,s){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new R(()=>e(this._value),()=>xe(this,2===this.effect._dirtyLevel?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const e=we(this);var t,n;return e._cacheable&&!e.effect.dirty||!x(e._value,e._value=e.effect.run())||xe(e,4),t=e,z&&A&&(t=we(t),H(A,null!=(n=t.dep)?n:t.dep=G(()=>t.dep=void 0,t instanceof be?t:void 0))),e.effect._dirtyLevel>=2&&xe(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}};function xe(e,t=4,n,s){const r=(e=we(e)).dep;r&&Z(r,t)}function $e(e){return!(!e||!0!==e.__v_isRef)}var ke=0,Se=()=>{const e=Object.create(null);return(t="id")=>e[t]||(e[t]=`${t}-${++ke}`)},Oe=e=>(t,n)=>{const s="function"==typeof t?t:()=>t.split(".").reduce((e,t)=>null==e?e:e[t],e.scope);let r,o=!1;e.effect(()=>{const e=s(),t=r;if(r=e,o&&e!==t){F();try{n(e,t)}finally{K()}}o=!0})},Ee=new Map,Le=new Map,je=new Map,Ae=new Map,Te=new Set,Ne=!1,Pe=()=>Ne||"undefined"!=typeof window&&!1===window.__LITE_VUE_DEVTOOLS__,Re={"scope:mount":new Set,"scope:unmount":new Set,"store:register":new Set,flush:new Set},Ie=(e,...t)=>{Re[e].forEach(e=>e(...t))},Ce=()=>{},Me=(e,t,n,s)=>Pe()?Ce:(Ee.set(e,t),n&&Le.set(e,n),s&&je.set(e,s),Ie("scope:mount",e,t),()=>{Ee.delete(e)&&(Le.delete(e),je.delete(e),Ie("scope:unmount",e))}),Ve={scopes:Ee,exps:Le,names:je,stores:Ae,components:Te,getScopeByName(e){for(const[t,n]of je)if(n===e)return Ee.get(t)},getScope(e){let t=1===e.nodeType?e:e.parentElement;for(;t;){const e=Ee.get(t);if(e)return e;t=t.parentElement}},on:(e,t)=>(Re[e].add(t),()=>Re[e].delete(t)),off(e,t){Re[e].delete(t)}};"undefined"==typeof window||Pe()||(window.__LITE_VUE__=Ve);var We,ze=[],Be=(e,t)=>{for(const s of ze)try{s(e,t)}catch(n){}ze.length||console.error(e)},De=new WeakSet,Fe=e=>{De.add(e),function(e){e.effect.stop()}(e)},Ke=!1,qe=[],Ue=Promise.resolve(),He=-1,Je=e=>Ue.then(e),Ze=e=>{qe.includes(e,He+1)||qe.push(e),Ke||(Ke=!0,Je(Ge))},Ge=()=>{const e=new Map;for(He=0;He<qe.length;He++){const n=qe[He];if(De.has(n))continue;const s=(e.get(n)||0)+1;if(e.set(n,s),s>100)Be(Error("update loop"),{phase:"effect"});else try{n()}catch(t){Be(t,{phase:"effect"})}}qe.length=0,He=-1,Ke=!1,Re.flush.size&&!Pe()&&Ie("flush")},Qe=/^(spellcheck|draggable|form|list|type)$/,Xe=({el:e,get:t,effect:n,arg:s,modifiers:r})=>{let o;"class"===s&&(e._class=e.getAttribute("class")),n(()=>{let n=t();if(s)r?.camel&&(s=_(s)),Ye(e,s,n,o);else{for(const t in n)Ye(e,t,n[t],o&&o[t]);for(const t in o)n&&t in n||Ye(e,t,null)}o="[object Object]"===h(n)?{...n}:n})},Ye=(e,t,n,s)=>{if("class"===t)e.setAttribute("class",j(e._class?[e._class,n]:n)||"");else if("style"===t){n=k(n);const{style:t}=e;if(n)if(a(n))n!==s&&(t.cssText=n);else{for(const e in n)tt(t,e,n[e]);if(s&&!a(s))for(const e in s)null==n[e]&&tt(t,e,"")}else e.removeAttribute("style")}else e instanceof SVGElement||!(t in e)||Qe.test(t)?"true-value"===t?e._trueValue=n:"false-value"===t?e._falseValue=n:null!=n?e.setAttribute(t,n):e.removeAttribute(t):(e[t]=null==n&&"string"==typeof e[t]?"":n,null==n&&e.removeAttribute(t),"value"===t&&(e._value=n))},et=/\s*!important$/,tt=(e,t,n)=>{c(n)?n.forEach(n=>tt(e,t,n)):t.startsWith("--")?e.setProperty(t,n):et.test(n)?e.setProperty(w(t),n.replace(et,""),"important"):e[t]=n},nt=Object.create(null),st=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,rt=["ctrl","shift","alt","meta"],ot={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>rt.some(n=>e[`${n}Key`]&&!t[n])},it={esc:"escape",space:" ",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",delete:"backspace"},ct=/^(stop|prevent|self|ctrl|shift|alt|meta|left|middle|right|exact|once|capture|passive|window|document|outside|debounce(-\d+)?|throttle(-\d+)?|prop-.+|name-.+)$/,lt=({el:e,get:t,ctx:n,exp:s,arg:r,modifiers:o})=>{if(!r)return;const i=st.test(s)?t(`(e => ${s}(e))`):(e=>{const t=nt[e];if(void 0!==t)return t;try{return new Function(`return (${e})`),nt[e]=!0}catch{return nt[e]=!1}})(s)?t(`($event => (${s}))`):t(`($event => { ${s} })`);let c,l=(...e)=>{try{const t=i(...e);return t instanceof Promise&&t.catch(u),t}catch(t){u(t)}};function u(t){Be(t,{phase:"handler",source:`@${r}`,expression:s,el:e,scope:n.scope})}if("mounted"===r||"vue:mounted"===r){let e=!0;return Je(()=>{e&&l()}),()=>{e=!1}}if("unmounted"===r||"vue:unmounted"===r)return()=>l();if(o){"click"===r&&(o.right&&(r="contextmenu"),o.middle&&(r="mouseup"));let t=l;for(const e in o){let n=/^debounce(?:-(\d+))?$/.exec(e);if(n){const e=t,s=n[1]?+n[1]:250;t=t=>{clearTimeout(c),c=setTimeout(e,s,t)};continue}if(n=/^throttle(?:-(\d+))?$/.exec(e),n){const e=t,s=n[1]?+n[1]:250;let r=0;t=t=>{const n=Date.now();n-r>=s&&(r=n,e(t))}}}const n=Object.keys(o).filter(e=>!ct.test(e)||e in it);l=s=>{if(!o.outside||!e.contains(s.target)){if("key"in s&&n.length){const e=w(s.key);if(!n.some(t=>t===e||it[t]===e))return}for(const e in o){const t=ot[e];if(t&&t(s,o))return;if(e.startsWith("prop-")&&"propertyName"in s&&s.propertyName!==e.slice(5))return;if(e.startsWith("name-")&&"animationName"in s&&s.animationName!==e.slice(5))return}return t(s)}}}const a=o?.window?window:o?.document||o?.outside?document:e,f=r;return a.addEventListener(f,l,o),()=>{clearTimeout(c),a.removeEventListener(f,l,o)}},ut=({el:e,get:t,effect:n})=>{n(()=>{e.textContent=at(t())})},at=e=>null==e?"":p(e)?JSON.stringify(e,null,2):String(e),ft=(e,t)=>{const n=e.getAttribute(t);return null!=n&&e.removeAttribute(t),n},pt=e=>"_value"in e?e._value:e.value,dt=(e,t)=>{const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t},ht=e=>{e.target.composing=!0},mt=e=>{const t=e.target;t.composing&&(t.composing=!1,vt(t,"input"))},vt=(e,t)=>{const n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)},gt=Object.create(null),_t=e=>e.replace(/^return\(([^]*)\)$/,"$1"),yt=(e,t,n,s)=>wt(e,`return(${t})`,n,s),wt=(e,t,n,s)=>{const r=gt[t]||(gt[t]=bt(t,n,s));try{return r(e,n,n&&(e=>(t,n)=>e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0})))(n))}catch(o){Be(o,{phase:"expression",expression:s?.expression??_t(t),source:s?.source,el:s?.el??n,scope:e})}},bt=(e,t,n)=>{try{return new Function("$data","$el","$dispatch",`with($data){${e}}`)}catch(s){return Be(s,{phase:"compile",expression:n?.expression??_t(e),source:n?.source,el:n?.el??t}),()=>{}}},xt=new WeakMap,$t=e=>{const t=We;return We=e,t},kt=(e,t=We)=>{if(!t)return;const n=xt.get(t);n?n.push(e):xt.set(t,[e])},St=e=>{const t=xt.get(e);if(t){xt.delete(e);for(const e of t)e()}let n=e.firstChild;for(;n;){const e=n.nextSibling;St(n),n=e}},Ot={bind:Xe,on:lt,show:({el:e,get:t,effect:n})=>{const s=e.style.display;n(()=>{e.style.display=t()?s:"none"})},text:ut,html:({el:e,get:t,effect:n})=>{n(()=>{e.innerHTML=t()??""})},model:({el:e,exp:t,get:n,effect:s,modifiers:r})=>{const o=e.type,i=n(`(val) => { ${t} = val }`),{trim:l,number:u="number"===o,lazy:a,fill:f}=r||{},p=[],d=(t,n)=>p.push(((e,t,n,s)=>(e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)))(e,t,n));if("SELECT"===e.tagName){const t=e;d("change",()=>{const e=Array.prototype.filter.call(t.options,e=>e.selected).map(e=>u?$(pt(e)):pt(e));i(t.multiple?e:e[0])}),s(()=>{const e=n(),s=t.multiple;for(let n=0,r=t.options.length;n<r;n++){const r=t.options[n],o=pt(r);if(s)r.selected=c(e)&&N(e,o)>-1;else if(T(pt(r),e))return void(t.selectedIndex!==n&&(t.selectedIndex=n))}s||-1===t.selectedIndex||(t.selectedIndex=-1)})}else if("checkbox"===o)d("change",()=>{const t=n(),s=e.checked;if(c(t)){const n=pt(e),r=N(t,n),o=-1!==r;if(s&&!o)i(t.concat(n));else if(!s&&o){const e=[...t];e.splice(r,1),i(e)}}else i(dt(e,s))}),s(()=>{const t=n();c(t)?e.checked=N(t,pt(e))>-1:e.checked=T(t,dt(e,!0))});else if("radio"===o)d("change",()=>{i(pt(e))}),s(()=>{e.checked=T(n(),pt(e))});else{const t=e=>(l&&(e=e.trim()),u?$(e):e);let o,c=i;for(const e in r||{}){const t=/^debounce(?:-(\d+))?$/.exec(e);if(t){const e=t[1]?+t[1]:250;c=t=>{clearTimeout(o),o=setTimeout(i,e,t)},p.push(()=>clearTimeout(o))}}if(d("compositionstart",ht),d("compositionend",mt),d(a?"change":"input",()=>{e.composing||c(t(e.value))}),l&&d("change",()=>{e.value=e.value.trim()}),f){const s=n();null!=s&&""!==s||!e.value||i(t(e.value))}s(()=>{if(e.composing)return;const s=e.value,r=n();document.activeElement===e&&t(s)===r||s!==r&&(e.value=r)})}return()=>p.forEach(e=>e())},effect:({el:e,ctx:t,exp:n,effect:s})=>{let r=!0;return Je(()=>{if(!r)return;const o=$t(e);try{s(()=>wt(t.scope,n,e,{source:"v-effect",el:e}))}finally{$t(o)}}),()=>{r=!1}}},Et=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Lt=/,([^,}\]]*)(?:,([^,}\]]*))?$/,jt=/^\(|\)$/g,At=/^[{[]\s*((?:[\w_$]+\s*,?\s*)+)[\]}]$/,Tt=(e,t,n)=>{const s=t.match(Et);if(!s)return;const r=e.nextSibling,o=new Text("");e.replaceWith(o);const i=()=>o.parentNode;$t(o);const l=s[2].trim();let u,a,f,d,h=s[1].trim().replace(jt,"").trim(),m=!1,v="key",g=e.getAttribute(v)||e.getAttribute(v=":key")||e.getAttribute(v="v-bind:key");g&&(e.removeAttribute(v),"key"===v&&(g=JSON.stringify(g))),(d=h.match(Lt))&&(h=h.replace(Lt,"").trim(),a=d[1].trim(),d[2]&&(f=d[2].trim())),(d=h.match(At))&&(u=d[1].split(",").map(e=>e.trim()),m="["===h[0]);let _,y,w,b=!1;const x=(t,s,r,o)=>{const i={};u?u.forEach((e,t)=>i[e]=s[m?t:e]):i[h]=s,o?(a&&(i[a]=o),f&&(i[f]=r)):a&&(i[a]=r);const c=Gt(n,i),l=g?yt(c.scope,g,e,{source:":key",el:e}):r;return t.set(l,r),c.key=l,c},$=(t,n)=>{const s=new Xt(e,t);return s.key=t.key,s.insert(i(),n),s};return n.effect(()=>{const t=yt(n.scope,l,e,{source:"v-for",el:e}),s=w;if([y,w]=(e=>{const t=new Map,n=[];if(c(e))for(let s=0;s<e.length;s++)n.push(x(t,e[s],s));else if("number"==typeof e)for(let s=0;s<e;s++)n.push(x(t,s+1,s));else if(p(e)){let s=0;for(const r in e)n.push(x(t,e[r],s++,r))}return[n,t]})(t),b){for(let s=0;s<_.length;s++)w.has(_[s].key)||_[s].remove();const e=[];let t,n,r=y.length;for(;r--;){const c=y[r],l=s.get(c.key);let u;null==l?u=$(c,t?t.el:o):(u=_[l],Object.assign(u.ctx.scope,c.scope),l!==r&&(_[l+1]===t&&n!==t||(n=u,u.insert(i(),t?t.el:o)))),e.unshift(t=u)}_=e}else _=y.map(e=>$(e,o)),b=!0}),r},Nt=({el:e,ctx:{scope:{$refs:t}},get:n,effect:s})=>{let r;return s(()=>{const s=n();t[s]=e,r&&s!==r&&delete t[r],r=s}),()=>{r&&delete t[r]}},Pt=["visible","idle","interaction"],Rt=["[v-scope]",...Pt.map(e=>`[v-scope\\.${e}]`)].join(","),It=["pointerdown","keydown","focusin"],Ct=(e,t,n,s)=>{const r=Pt.find(t=>e.hasAttribute(`v-scope.${t}`));if(!r)return!1;const o=`v-scope.${r}`,i=((e,t,n)=>{let s=!1;const r=()=>{s||(s=!0,o(),n())};let o=()=>{};if("visible"===t&&"function"==typeof IntersectionObserver){const t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&r()});t.observe(e),o=()=>t.disconnect()}else if("interaction"!==t){const e=window.requestIdleCallback,t=e?e(r):setTimeout(r);o=()=>e?window.cancelIdleCallback(t):clearTimeout(t)}else{for(const t of It)e.addEventListener(t,r);o=()=>{for(const t of It)e.removeEventListener(t,r)}}return()=>{s=!0,o()}})(e,r,()=>{e.hasAttribute(o)&&(e.setAttribute("v-scope",e.getAttribute(o)),e.removeAttribute(o),n(e,t,s))});return t.cleanups.push(i),kt(i),!0},Mt=/^(?:v-|:|@)/,Vt=/\.([\w-]+)/g,Wt=!1,zt=(e,t)=>{e.cleanups.push(t),kt(()=>{const n=e.cleanups.indexOf(t);n>-1&&(e.cleanups.splice(n,1),t())})},Bt=(e,t,n)=>{const s=Wt;Wt=n;try{Dt(e,t)}finally{Wt=s}},Dt=(e,t)=>{const n=$t(e);try{return Ft(e,t)}finally{$t(n)}},Ft=(e,t)=>{const n=e.nodeType;if(1===n){const n=e;if(n.hasAttribute("v-pre"))return;if(Ct(n,t,Bt,Wt))return;let s;if(ft(n,"v-cloak"),s=ft(n,"v-if"))return((e,t,n)=>{const s=new Comment("v-if");e.before(s);const r=[{exp:t,el:e}];let o,i;for(;(o=e.nextElementSibling)&&(i=null,""===ft(o,"v-else")||(i=ft(o,"v-else-if")));)o.remove(),r.push({exp:i,el:o});const c=e.nextSibling;let l;e.remove(),$t(s);let u=-1;const a=()=>{l&&(s.parentNode||l.el.before(s),l.remove(),l=void 0)};let f;const p=()=>Fe(f);return f=n.effect(()=>{for(let e=0;e<r.length;e++){const{exp:t,el:o}=r[e];if(!t||yt(n.scope,t,o,{source:"v-if",el:o})){if(e!==u){a();const t=s.parentNode;l=new Xt(o,n),l.insert(t,s),kt(p,l.el),l.el.parentNode===t&&s.remove(),u=e}return}}u=-1,a()}),kt(p,s),c})(n,s,t);if(s=ft(n,"v-for"))return Tt(n,s,t);const r=ft(n,"v-name");let o;if(s=ft(n,"v-teleport")){const e=document.querySelector(s);e&&(o=n.nextSibling,n.__teleported=!0,e.appendChild(n),t.cleanups.push(()=>n.remove()))}if((s=ft(n,"v-scope"))||""===s){const e=(s?yt(t.scope,s,n,{source:"v-scope",el:n}):{})||{};t=Gt(t,e),n.__ctx=t,zt(t,Me(n,t.scope,s||void 0,r||void 0)),e.$template&&Ht(n,e.$template)}const i=null!=ft(n,"v-once");i&&(Wt=!0),(s=ft(n,"ref"))&&Ut(n,Nt,`"${s}"`,t),Kt(n,t);const c=[];for(const{name:e,value:l}of[...n.attributes])Mt.test(e)&&"v-cloak"!==e&&("v-model"===e||e.startsWith("v-model.")?c.unshift([e,l]):"@"===e[0]||/^v-on\b/.test(e)?c.push([e,l]):qt(n,e,l,t));for(const[e,l]of c)qt(n,e,l,t);return i&&(Wt=!1),o}if(3===n){const n=e.data;if(n.includes(t.delimiters[0])){let s,r=[],o=0;for(;s=t.delimitersRE.exec(n);){const e=n.slice(o,s.index);e&&r.push(JSON.stringify(e)),r.push(`$s(${s[1]})`),o=s.index+s[0].length}o<n.length&&r.push(JSON.stringify(n.slice(o))),Ut(e,ut,r.join("+"),t,void 0,void 0,"{{ }}",n.trim())}}else 11===n&&Kt(e,t)},Kt=(e,t)=>{let n=e.firstChild;for(;n;)n=Dt(n,t)||n.nextSibling},qt=(e,t,n,s)=>{let r,o,i;const c=t;if(":"===(t=t.replace(Vt,(e,t)=>((i||(i={}))[t]=!0,"")))[0])r=Xe,o=t.slice(1);else if("@"===t[0])r=lt,o=t.slice(1);else{const e=t.indexOf(":"),n=e>0?t.slice(2,e):t.slice(2);r=Ot[n]||s.dirs[n],o=e>0?t.slice(e+1):void 0}r&&(r===Xe&&"ref"===o&&(r=Nt),Ut(e,r,n,s,o,i,c),e.removeAttribute(c))},Ut=(e,t,n,s,r,o,i,c)=>{const l={source:i,el:e,expression:c},u=(t=n)=>yt(s.scope,t,e,l);let a;try{a=t({el:e,get:u,effect:s.effect,ctx:s,exp:n,arg:r,modifiers:o})}catch(f){return void Be(f,{phase:"directive",source:i,el:e,expression:n})}a&&zt(s,a)},Ht=(e,t)=>{if("#"===t[0]){const n=document.querySelector(t);if(!n)return;return void e.appendChild(n.content.cloneNode(!0))}e.innerHTML=t},Jt=e=>{const t={delimiters:["{{","}}"],delimitersRE:/\{\{([^]+?)\}\}/g,...e,scope:e?e.scope:ge({}),dirs:e?e.dirs:{},effects:[],blocks:[],cleanups:[],effect:e=>{if(Wt)return Ze(e),e;const n=W(e,{scheduler:()=>Ze(n)});return t.effects.push(n),kt(()=>{Fe(n),r(t.effects,n)}),n}};return t},Zt=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Gt=(e,t={})=>{const n=e.scope,s=Object.create(n);Object.defineProperties(s,Object.getOwnPropertyDescriptors(t)),Zt(s,"$refs",Object.create(n.$refs));const r=ge(new Proxy(s,{set:(e,t,s,o)=>o!==r||i(e,t)?Reflect.set(e,t,s,o):Reflect.set(n,t,s)})),o={...e,scope:r};return Zt(s,"$watch",Oe(o)),Zt(s,"$id",Se()),Qt(r),o},Qt=e=>{for(const t of Object.keys(e)){const n=Object.getOwnPropertyDescriptor(e,t).value;"function"==typeof n&&(e[t]=n.bind(e))}},Xt=class{template;ctx;key;parentCtx;isFragment;start;end;owned=!1;get el(){return this.start||this.template}constructor(e,t,n=!1){this.isFragment=e instanceof HTMLTemplateElement,n?this.template=e:this.isFragment?this.template=e.content.cloneNode(!0):this.template=e.cloneNode(!0),n||(this.parentCtx=t,t.blocks.push(this)),this.ctx=Jt(t),Dt(this.template,this.ctx)}insert(e,t=null){if(this.isFragment)if(this.start){let n,s=this.start;for(;s&&(n=s.nextSibling,e.insertBefore(s,t),s!==this.end);)s=n}else this.start=new Text(""),this.end=new Text(""),e.insertBefore(this.end,t),e.insertBefore(this.start,this.end),e.insertBefore(this.template,this.end);else this.template.__teleported||e.insertBefore(this.template,t);this.owned||(this.owned=!0,kt(()=>this.discard(),this.el))}remove(){this.parentCtx&&r(this.parentCtx.blocks,this);const e=()=>{const e=this.start?this.start.parentNode:this.template.parentNode;if(e)if(this.start){let t,n=this.start;for(;n&&(t=n.nextSibling,e.removeChild(n),n!==this.end);)n=t}else e.removeChild(this.template);this.teardown()},t=this.isFragment?void 0:this.template.__leave;t?t().then(e):e()}discard(){this.parentCtx&&r(this.parentCtx.blocks,this),this.teardown()}teardown(){this.ctx.blocks.splice(0).forEach(e=>{e.teardown()}),this.ctx.effects.splice(0).forEach(Fe),this.ctx.cleanups.splice(0).forEach(e=>e())}},Yt=ge(Object.create(null)),en=e=>e.replace(/[-.*+?^${}()|[\]/\\]/g,"\\$&"),tn=e=>{const t=Jt();if("function"==typeof e&&(e=e()),e&&(t.scope=ge(e),Qt(t.scope),e.$delimiters)){const[n,s]=t.delimiters=e.$delimiters;t.delimitersRE=new RegExp(en(n)+"([^]+?)"+en(s),"g")}t.scope.$s=at,t.scope.$nextTick=Je,t.scope.$refs=Object.create(null),t.scope.$store=Yt,t.scope.$watch=Oe(t),t.scope.$id=Se(),Object.defineProperty(t.scope,"$root",{value:t.scope,enumerable:!1});const n=Object.create(null);let s=[];const r=new Set,o=[],i=[],c={get scope(){return t.scope},directive(e,n){return n?(t.dirs[e]=n,this):t.dirs[e]},component(e,s){return s?(!(e in n)&&e in t.scope||(n[e]=s,(e=>{Pe()||Te.add(e)})(e),t.scope[e]=s),this):n[e]},onError(e){const t=(n=e,ze.push(n),()=>{const e=ze.indexOf(n);e>-1&&ze.splice(e,1)});var n;return i.push(t),()=>{const e=i.indexOf(t);e>-1&&i.splice(e,1),t()}},use(e,t){if(!r.has(e)){r.add(e);const n=("function"==typeof e?e:e.install)(c,t);"function"==typeof n&&o.push(n)}return c},mount(e){if("string"==typeof e){const t=document.querySelector(e);if(!t)return;e=t}let n;n=(e=e||document.documentElement).matches(Rt)?[e]:[...e.querySelectorAll(Rt)].filter(e=>!e.matches(`:where(${Rt}) *`)),n.length||(n=[e]),t.walk??=Dt,t.dispose??=St;for(const r of n){const e=r.getAttribute("v-name"),n=new Xt(r,t,!0);r.__ctx??=n.ctx,Ve.scopes.has(r)||r.matches(Rt)||n.ctx.cleanups.push(Me(r,n.ctx.scope,void 0,e||void 0)),s.push(n)}return this},unmount(e){if(null==e)return s.forEach(e=>e.teardown()),s=[],o.splice(0).forEach(e=>{try{e()}catch(t){Be(t,{phase:"teardown",source:"plugin"})}}),r.clear(),void i.splice(0).forEach(e=>e());const t="string"==typeof e?document.querySelector(e):e;if(!t)return;const n=[];for(const r of s){const e=r.template;t.contains(e)?r.teardown():n.push(r)}s=n}};return c},nn=document.currentScript;return nn&&nn.hasAttribute("init")&&tn().mount(),e.computed=function(e,t,s=!1){let r,o;const i="function"==typeof e;return i?(r=e,o=n):(r=e.get,o=e.set),new be(r,o,i||!o,s)},e.createApp=tn,e.devtools=Ve,e.disableDevtools=()=>{Ne=!0,Ee.clear(),Le.clear(),je.clear(),Ae.clear(),Te.clear();for(const e in Re)Re[e].clear();"undefined"!=typeof window&&window.__LITE_VUE__===Ve&&delete window.__LITE_VUE__},e.nextTick=Je,e.reactive=ge,e.store=(e,t)=>(void 0!==t&&(Yt[e]=t,"function"==typeof Yt[e].init&&Yt[e].init(),((e,t)=>{Pe()||(Ae.set(e,t),Ie("store:register",e,t))})(e,Yt[e])),Yt[e]),e.watchEffect=e=>{let t;return t=W(e,{scheduler:()=>Ze(t)}),()=>Fe(t)},e}({});
package/dist/litevue.mjs CHANGED
@@ -1 +1 @@
1
- function e(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}var t=()=>{},n=Object.assign,s=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},r=Object.prototype.hasOwnProperty,i=(e,t)=>r.call(e,t),o=Array.isArray,c=e=>"[object Map]"===h(e),l=e=>"[object Date]"===h(e),u=e=>"string"==typeof e,a=e=>"symbol"==typeof e,f=e=>null!==e&&"object"==typeof e,p=Object.prototype.toString,h=e=>p.call(e),d=e=>u(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,m=e=>{const t=/* @__PURE__ */Object.create(null);return n=>t[n]||(t[n]=e(n))},g=/-(\w)/g,v=m(e=>e.replace(g,(e,t)=>t?t.toUpperCase():"")),_=/\B([A-Z])/g,y=m(e=>e.replace(_,"-$1").toLowerCase()),w=m(e=>e.charAt(0).toUpperCase()+e.slice(1)),b=(m(e=>e?`on${w(e)}`:""),(e,t)=>!Object.is(e,t)),x=e=>{const t=u(e)?Number(e):NaN;return isNaN(t)?e:t};function S(e){if(o(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=u(s)?O(s):S(s);if(r)for(const e in r)t[e]=r[e]}return t}if(u(e)||f(e))return e}var $=/;(?![^(]*\))/g,k=/:([^]+)/,E=/\/\*[^]*?\*\//g;function O(e){const t={};return e.replace(E,"").split($).forEach(e=>{if(e){const n=e.split(k);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function L(e){let t="";if(u(e))t=e;else if(o(e))for(let n=0;n<e.length;n++){const s=L(e[n]);s&&(t+=s+" ")}else if(f(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}var j;function N(e,t){if(e===t)return!0;let n=l(e),s=l(t);if(n||s)return!(!n||!s)&&e.getTime()===t.getTime();if(n=a(e),s=a(t),n||s)return e===t;if(n=o(e),s=o(t),n||s)return!(!n||!s)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=N(e[s],t[s]);return n}(e,t);if(n=f(e),s=f(t),n||s){if(!n||!s)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const s=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(s&&!r||!s&&r||!N(e[n],t[n]))return!1}}return String(e)===String(t)}function T(e,t){return e.findIndex(e=>N(e,t))}function A(e,t=void 0){t&&t.active&&t.effects.push(e)}var C=class{constructor(e,t,n,s){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,A(this,s)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,K();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(R(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),F()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=V,t=j;try{return V=!0,j=this,this._runnings++,M(this),this.fn()}finally{P(this),this._runnings--,j=t,V=e}}stop(){this.active&&(M(this),P(this),this.onStop&&this.onStop(),this.active=!1)}};function R(e){return e.value}function M(e){e._trackId++,e._depsLength=0}function P(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)I(e.deps[t],e);e.deps.length=e._depsLength}}function I(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}function W(e,s){e.effect instanceof C&&(e=e.effect.fn);const r=new C(e,t,()=>{r.dirty&&r.run()});s&&(n(r,s),s.scope&&A(r,s.scope)),s&&s.lazy||r.run();const i=r.run.bind(r);return i.effect=r,i}var V=!0,B=0,z=[];function K(){z.push(V),V=!1}function F(){const e=z.pop();V=void 0===e||e}function U(){B++}function q(){for(B--;!B&&H.length;)H.shift()()}function D(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&I(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}var H=[];function J(e,t,n){U();for(const s of e.keys()){let n;s._dirtyLevel<t&&(null!=n?n:n=e.get(s)===s._trackId)&&(s._shouldSchedule||(s._shouldSchedule=0===s._dirtyLevel),s._dirtyLevel=t),s._shouldSchedule&&(null!=n?n:n=e.get(s)===s._trackId)&&(s.trigger(),s._runnings&&!s.allowRecurse||2===s._dirtyLevel||(s._shouldSchedule=!1,s.scheduler&&H.push(s.scheduler)))}q()}var Z=(e,t)=>{const n=/* @__PURE__ */new Map;return n.cleanup=e,n.computed=t,n},G=/* @__PURE__ */new WeakMap,Q=Symbol(""),X=Symbol("");function Y(e,t,n){if(V&&j){let t=G.get(e);t||G.set(e,t=/* @__PURE__ */new Map);let s=t.get(n);s||t.set(n,s=Z(()=>t.delete(n))),D(j,s)}}function ee(e,t,n,s,r,i){const l=G.get(e);if(!l)return;let u=[];if("clear"===t)u=[...l.values()];else if("length"===n&&o(e)){const e=Number(s);l.forEach((t,n)=>{("length"===n||!a(n)&&n>=e)&&u.push(t)})}else switch(void 0!==n&&u.push(l.get(n)),t){case"add":o(e)?d(n)&&u.push(l.get("length")):(u.push(l.get(Q)),c(e)&&u.push(l.get(X)));break;case"delete":o(e)||(u.push(l.get(Q)),c(e)&&u.push(l.get(X)));break;case"set":c(e)&&u.push(l.get(Q))}U();for(const o of u)o&&J(o,4);q()}var te=/* @__PURE__ */e("__proto__,__v_isRef,__isVue"),ne=new Set(/* @__PURE__ */Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(a)),se=/* @__PURE__ */re();function re(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=ye(this);for(let t=0,r=this.length;t<r;t++)Y(n,0,t+"");const s=n[t](...e);return-1===s||!1===s?n[t](...e.map(ye)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){K(),U();const n=ye(this)[t].apply(this,e);return q(),F(),n}}),e}function ie(e){a(e)||(e=String(e));const t=ye(this);return Y(t,0,e),t.hasOwnProperty(e)}var oe=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(s?r?de:he:r?pe:fe).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const c=o(e);if(!s){if(c&&i(se,t))return Reflect.get(se,t,n);if("hasOwnProperty"===t)return ie}const l=Reflect.get(e,t,n);return(a(t)?ne.has(t):te(t))?l:(s||Y(e,0,t),r?l:Se(l)?c&&d(t)?l:l.value:f(l)?s?function(e){return ve(e,!0,ae,null,he)}(l):ge(l):l)}},ce=class extends oe{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];if(!this._isShallow){const t=_e(r);if(function(e){return!(!e||!e.__v_isShallow)}(n)||_e(n)||(r=ye(r),n=ye(n)),!o(e)&&Se(r)&&!Se(n))return!t&&(r.value=n,!0)}const c=o(e)&&d(t)?Number(t)<e.length:i(e,t),l=Reflect.set(e,t,n,s);return e===ye(s)&&(c?b(n,r)&&ee(e,"set",t,n):ee(e,"add",t,n)),l}deleteProperty(e,t){const n=i(e,t),s=(e[t],Reflect.deleteProperty(e,t));return s&&n&&ee(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return a(t)&&ne.has(t)||Y(e,0,t),n}ownKeys(e){return Y(e,0,o(e)?"length":Q),Reflect.ownKeys(e)}},le=class extends oe{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},ue=/* @__PURE__ */new ce,ae=/* @__PURE__ */new le,fe=/* @__PURE__ */new WeakMap,pe=/* @__PURE__ */new WeakMap,he=/* @__PURE__ */new WeakMap,de=/* @__PURE__ */new WeakMap;function me(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>h(e).slice(8,-1))(e))}function ge(e){return _e(e)?e:ve(e,!1,ue,null,fe)}function ve(e,t,n,s,r){if(!f(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=me(e);if(0===o)return e;const c=new Proxy(e,2===o?s:n);return r.set(e,c),c}function _e(e){return!(!e||!e.__v_isReadonly)}function ye(e){const t=e&&e.__v_raw;return t?ye(t):e}var we=class{constructor(e,t,n,s){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new C(()=>e(this._value),()=>xe(this,2===this.effect._dirtyLevel?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const e=ye(this);var t,n;return e._cacheable&&!e.effect.dirty||!b(e._value,e._value=e.effect.run())||xe(e,4),t=e,V&&j&&(t=ye(t),D(j,null!=(n=t.dep)?n:t.dep=Z(()=>t.dep=void 0,t instanceof we?t:void 0))),e.effect._dirtyLevel>=2&&xe(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}};function be(e,n,s=!1){let r,i;const o="function"==typeof e;return o?(r=e,i=t):(r=e.get,i=e.set),new we(r,i,o||!i,s)}function xe(e,t=4,n,s){const r=(e=ye(e)).dep;r&&J(r,t)}function Se(e){return!(!e||!0!==e.__v_isRef)}var $e=0,ke=()=>{const e=Object.create(null);return(t="id")=>e[t]||(e[t]=`${t}-${++$e}`)},Ee=e=>(t,n)=>{const s="function"==typeof t?t:()=>t.split(".").reduce((e,t)=>null==e?e:e[t],e.scope);let r,i=!1;e.effect(()=>{const e=s();i&&e!==r&&(K(),n(e,r),F()),i=!0,r=e})},Oe=/* @__PURE__ */new Map,Le=/* @__PURE__ */new Map,je=/* @__PURE__ */new Map,Ne=/* @__PURE__ */new Map,Te=/* @__PURE__ */new Set,Ae=!1,Ce=()=>Ae||"undefined"!=typeof window&&!1===window.__LITE_VUE_DEVTOOLS__,Re={"scope:mount":/* @__PURE__ */new Set,"scope:unmount":/* @__PURE__ */new Set,"store:register":/* @__PURE__ */new Set,flush:/* @__PURE__ */new Set},Me=(e,...t)=>{Re[e].forEach(e=>e(...t))},Pe=()=>{},Ie=(e,t,n,s)=>Ce()?Pe:(Oe.set(e,t),n&&Le.set(e,n),s&&je.set(e,s),Me("scope:mount",e,t),()=>{Oe.delete(e)&&(Le.delete(e),je.delete(e),Me("scope:unmount",e))}),We={scopes:Oe,exps:Le,names:je,stores:Ne,components:Te,getScopeByName(e){for(const[t,n]of je)if(n===e)return Oe.get(t)},getScope(e){let t=1===e.nodeType?e:e.parentElement;for(;t;){const e=Oe.get(t);if(e)return e;t=t.parentElement}},on:(e,t)=>(Re[e].add(t),()=>Re[e].delete(t)),off(e,t){Re[e].delete(t)}},Ve=()=>{Ae=!0,Oe.clear(),Le.clear(),je.clear(),Ne.clear(),Te.clear();for(const e in Re)Re[e].clear();"undefined"!=typeof window&&window.__LITE_VUE__===We&&delete window.__LITE_VUE__};"undefined"==typeof window||Ce()||(window.__LITE_VUE__=We);var Be,ze=/* @__PURE__ */new WeakSet,Ke=e=>{ze.add(e),function(e){e.effect.stop()}(e)},Fe=!1,Ue=[],qe=Promise.resolve(),De=e=>qe.then(e),He=e=>{Ue.includes(e)||Ue.push(e),Fe||(Fe=!0,De(Je))},Je=()=>{for(const e of Ue)ze.has(e)||e();Ue.length=0,Fe=!1,Re.flush.size&&!Ce()&&Me("flush")},Ze=/^(spellcheck|draggable|form|list|type)$/,Ge=({el:e,get:t,effect:n,arg:s,modifiers:r})=>{let i;"class"===s&&(e._class=e.className),n(()=>{let n=t();if(s)r?.camel&&(s=v(s)),Qe(e,s,n,i);else{for(const t in n)Qe(e,t,n[t],i&&i[t]);for(const t in i)n&&t in n||Qe(e,t,null)}i=n})},Qe=(e,t,n,s)=>{if("class"===t)e.setAttribute("class",L(e._class?[e._class,n]:n)||"");else if("style"===t){n=S(n);const{style:t}=e;if(n)if(u(n))n!==s&&(t.cssText=n);else{for(const e in n)Ye(t,e,n[e]);if(s&&!u(s))for(const e in s)null==n[e]&&Ye(t,e,"")}else e.removeAttribute("style")}else e instanceof SVGElement||!(t in e)||Ze.test(t)?"true-value"===t?e._trueValue=n:"false-value"===t?e._falseValue=n:null!=n?e.setAttribute(t,n):e.removeAttribute(t):(e[t]=n,"value"===t&&(e._value=n))},Xe=/\s*!important$/,Ye=(e,t,n)=>{o(n)?n.forEach(n=>Ye(e,t,n)):t.startsWith("--")?e.setProperty(t,n):Xe.test(n)?e.setProperty(y(t),n.replace(Xe,""),"important"):e[t]=n},et=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,tt=["ctrl","shift","alt","meta"],nt={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>tt.some(n=>e[`${n}Key`]&&!t[n])},st=/^(stop|prevent|self|ctrl|shift|alt|meta|left|middle|right|exact|once|capture|passive|window|document|outside|debounce(-\d+)?|throttle(-\d+)?|prop-.+|name-.+)$/,rt=({el:e,get:t,exp:n,arg:s,modifiers:r})=>{if(!s)return;let i,o=et.test(n)?t(`(e => ${n}(e))`):t(`($event => { ${n} })`);if("mounted"===s||"vue:mounted"===s){let e=!0;return De(()=>{e&&o()}),()=>{e=!1}}if("unmounted"===s||"vue:unmounted"===s)return()=>o();if(r){"click"===s&&(r.right&&(s="contextmenu"),r.middle&&(s="mouseup"));let t=o;for(const e in r){let n=/^debounce(?:-(\d+))?$/.exec(e);if(n){const e=t,s=n[1]?+n[1]:250;t=t=>{clearTimeout(i),i=setTimeout(e,s,t)};continue}if(n=/^throttle(?:-(\d+))?$/.exec(e),n){const e=t,s=n[1]?+n[1]:250;let r=0;t=t=>{const n=Date.now();n-r>=s&&(r=n,e(t))}}}const n=Object.keys(r).filter(e=>!st.test(e));o=s=>{if(!(r.outside&&e.contains(s.target)||"key"in s&&n.length&&!(y(s.key)in r))){for(const e in r){const t=nt[e];if(t&&t(s,r))return;if(e.startsWith("prop-")&&"propertyName"in s&&s.propertyName!==e.slice(5))return;if(e.startsWith("name-")&&"animationName"in s&&s.animationName!==e.slice(5))return}return t(s)}}}const c=r?.window?window:r?.document||r?.outside?document:e,l=s;return c.addEventListener(l,o,r),()=>{clearTimeout(i),c.removeEventListener(l,o,r)}},it=({el:e,get:t,effect:n})=>{n(()=>{e.textContent=ot(t())})},ot=e=>null==e?"":f(e)?JSON.stringify(e,null,2):String(e),ct=(e,t)=>{const n=e.getAttribute(t);return null!=n&&e.removeAttribute(t),n},lt=e=>"_value"in e?e._value:e.value,ut=(e,t)=>{const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t},at=e=>{e.target.composing=!0},ft=e=>{const t=e.target;t.composing&&(t.composing=!1,pt(t,"input"))},pt=(e,t)=>{const n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)},ht=Object.create(null),dt=(e,t,n)=>mt(e,`return(${t})`,n),mt=(e,t,n)=>{const s=ht[t]||(ht[t]=gt(t));try{return s(e,n,n&&(e=>(t,n)=>e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0})))(n))}catch(r){console.error(r)}},gt=e=>{try{return new Function("$data","$el","$dispatch",`with($data){${e}}`)}catch(t){return console.error(`${t.message} in expression: ${e}`),()=>{}}},vt=/* @__PURE__ */new WeakMap,_t=e=>{const t=Be;return Be=e,t},yt=(e,t=Be)=>{if(!t)return;const n=vt.get(t);n?n.push(e):vt.set(t,[e])},wt=e=>{const t=vt.get(e);if(t){vt.delete(e);for(const e of t)e()}let n=e.firstChild;for(;n;){const e=n.nextSibling;wt(n),n=e}},bt={bind:Ge,on:rt,show:({el:e,get:t,effect:n})=>{const s=e.style.display;n(()=>{e.style.display=t()?s:"none"})},text:it,html:({el:e,get:t,effect:n})=>{n(()=>{e.innerHTML=t()})},model:({el:e,exp:t,get:n,effect:s,modifiers:r})=>{const i=e.type,c=n(`(val) => { ${t} = val }`),{trim:l,number:u="number"===i,lazy:a,fill:f}=r||{},p=[],h=(t,n)=>p.push(((e,t,n,s)=>(e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)))(e,t,n));if("SELECT"===e.tagName){const t=e;h("change",()=>{const e=Array.prototype.filter.call(t.options,e=>e.selected).map(e=>u?x(lt(e)):lt(e));c(t.multiple?e:e[0])}),s(()=>{const e=n(),s=t.multiple;for(let n=0,r=t.options.length;n<r;n++){const r=t.options[n],i=lt(r);if(s)o(e)?r.selected=T(e,i)>-1:r.selected=e.has(i);else if(N(lt(r),e))return void(t.selectedIndex!==n&&(t.selectedIndex=n))}s||-1===t.selectedIndex||(t.selectedIndex=-1)})}else if("checkbox"===i){let t;h("change",()=>{const t=n(),s=e.checked;if(o(t)){const n=lt(e),r=T(t,n),i=-1!==r;if(s&&!i)c(t.concat(n));else if(!s&&i){const e=[...t];e.splice(r,1),c(e)}}else c(ut(e,s))}),s(()=>{const s=n();o(s)?e.checked=T(s,lt(e))>-1:s!==t&&(e.checked=N(s,ut(e,!0))),t=s})}else if("radio"===i){let t;h("change",()=>{c(lt(e))}),s(()=>{const s=n();s!==t&&(e.checked=N(s,lt(e)))})}else{const t=e=>l?e.trim():u?x(e):e;let i,o=c;for(const e in r||{}){const t=/^debounce(?:-(\d+))?$/.exec(e);if(t){const e=t[1]?+t[1]:250;o=t=>{clearTimeout(i),i=setTimeout(c,e,t)},p.push(()=>clearTimeout(i))}}if(h("compositionstart",at),h("compositionend",ft),h(a?"change":"input",()=>{e.composing||o(t(e.value))}),l&&h("change",()=>{e.value=e.value.trim()}),f){const s=n();null!=s&&""!==s||!e.value||c(t(e.value))}s(()=>{if(e.composing)return;const s=e.value,r=n();document.activeElement===e&&t(s)===r||s!==r&&(e.value=r)})}return()=>p.forEach(e=>e())},effect:({el:e,ctx:t,exp:n,effect:s})=>{let r=!0;return De(()=>{if(!r)return;const i=_t(e);try{s(()=>mt(t.scope,n,e))}finally{_t(i)}}),()=>{r=!1}}},xt=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,St=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,$t=/^\(|\)$/g,kt=/^[{[]\s*((?:[\w_$]+\s*,?\s*)+)[\]}]$/,Et=(e,t,n)=>{const s=t.match(xt);if(!s)return;const r=e.nextSibling,i=e.parentElement,c=new Text("");i.insertBefore(c,e),i.removeChild(e),_t(c);const l=s[2].trim();let u,a,p,h,d=s[1].trim().replace($t,"").trim(),m=!1,g="key",v=e.getAttribute(g)||e.getAttribute(g=":key")||e.getAttribute(g="v-bind:key");v&&(e.removeAttribute(g),"key"===g&&(v=JSON.stringify(v))),(h=d.match(St))&&(d=d.replace(St,"").trim(),a=h[1].trim(),h[2]&&(p=h[2].trim())),(h=d.match(kt))&&(u=h[1].split(",").map(e=>e.trim()),m="["===d[0]);let _,y,w,b=!1;const x=(e,t,s,r)=>{const i={};u?u.forEach((e,n)=>i[e]=t[m?n:e]):i[d]=t,r?(a&&(i[a]=r),p&&(i[p]=s)):a&&(i[a]=s);const o=Vt(n,i),c=v?dt(o.scope,v):s;return e.set(c,s),o.key=c,o},S=(t,n)=>{const s=new zt(e,t);return s.key=t.key,s.insert(i,n),s};return n.effect(()=>{const e=dt(n.scope,l),t=w;if([y,w]=(e=>{const t=/* @__PURE__ */new Map,n=[];if(o(e))for(let s=0;s<e.length;s++)n.push(x(t,e[s],s));else if("number"==typeof e)for(let s=0;s<e;s++)n.push(x(t,s+1,s));else if(f(e)){let s=0;for(const r in e)n.push(x(t,e[r],s++,r))}return[n,t]})(e),b){for(let t=0;t<_.length;t++)w.has(_[t].key)||_[t].remove();const e=[];let n,s,r=y.length;for(;r--;){const o=y[r],l=t.get(o.key);let u;null==l?u=S(o,n?n.el:c):(u=_[l],Object.assign(u.ctx.scope,o.scope),l!==r&&(_[l+1]===n&&s!==n||(s=u,u.insert(i,n?n.el:c)))),e.unshift(n=u)}_=e}else _=y.map(e=>S(e,c)),b=!0}),r},Ot=({el:e,ctx:{scope:{$refs:t}},get:n,effect:s})=>{let r;return s(()=>{const s=n();t[s]=e,r&&s!==r&&delete t[r],r=s}),()=>{r&&delete t[r]}},Lt=/^(?:v-|:|@)/,jt=/\.([\w-]+)/g,Nt=!1,Tt=(e,t)=>{e.cleanups.push(t),yt(()=>{const n=e.cleanups.indexOf(t);n>-1&&(e.cleanups.splice(n,1),t())})},At=(e,t)=>{const n=_t(e);try{return Ct(e,t)}finally{_t(n)}},Ct=(e,t)=>{const n=e.nodeType;if(1===n){const n=e;if(n.hasAttribute("v-pre"))return;let s;if(ct(n,"v-cloak"),s=ct(n,"v-if"))return((e,t,n)=>{const s=e.parentElement,r=new Comment("v-if");s.insertBefore(r,e);const i=[{exp:t,el:e}];let o,c;for(;(o=e.nextElementSibling)&&(c=null,""===ct(o,"v-else")||(c=ct(o,"v-else-if")));)s.removeChild(o),i.push({exp:c,el:o});const l=e.nextSibling;let u;s.removeChild(e),_t(r);let a=-1;const f=()=>{u&&(u.el.parentNode===s&&s.insertBefore(r,u.el),u.remove(),u=void 0)};let p;const h=()=>Ke(p);return p=n.effect(()=>{for(let e=0;e<i.length;e++){const{exp:t,el:o}=i[e];if(!t||dt(n.scope,t))return void(e!==a&&(f(),u=new zt(o,n),u.insert(s,r),yt(h,u.el),u.el.parentNode===s&&s.removeChild(r),a=e))}a=-1,f()}),yt(h,r),l})(n,s,t);if(s=ct(n,"v-for"))return Et(n,s,t);const r=ct(n,"v-name");let i;if(s=ct(n,"v-teleport")){const e=document.querySelector(s);e&&(i=n.nextSibling,n.__teleported=!0,e.appendChild(n),t.cleanups.push(()=>n.remove()))}if((s=ct(n,"v-scope"))||""===s){const e=s?dt(t.scope,s):{};t=Vt(t,e),n.__ctx=t,Tt(t,Ie(n,t.scope,s||void 0,r||void 0)),e.$template&&It(n,e.$template)}const o=null!=ct(n,"v-once");o&&(Nt=!0),(s=ct(n,"ref"))&&Pt(n,Ot,`"${s}"`,t),Rt(n,t);const c=[];for(const{name:e,value:l}of[...n.attributes])Lt.test(e)&&"v-cloak"!==e&&("v-model"===e?c.unshift([e,l]):"@"===e[0]||/^v-on\b/.test(e)?c.push([e,l]):Mt(n,e,l,t));for(const[e,l]of c)Mt(n,e,l,t);return o&&(Nt=!1),i}if(3===n){const n=e.data;if(n.includes(t.delimiters[0])){let s,r=[],i=0;for(;s=t.delimitersRE.exec(n);){const e=n.slice(i,s.index);e&&r.push(JSON.stringify(e)),r.push(`$s(${s[1]})`),i=s.index+s[0].length}i<n.length&&r.push(JSON.stringify(n.slice(i))),Pt(e,it,r.join("+"),t)}}else 11===n&&Rt(e,t)},Rt=(e,t)=>{let n=e.firstChild;for(;n;)n=At(n,t)||n.nextSibling},Mt=(e,t,n,s)=>{let r,i,o;if(":"===(t=t.replace(jt,(e,t)=>((o||(o={}))[t]=!0,"")))[0])r=Ge,i=t.slice(1);else if("@"===t[0])r=rt,i=t.slice(1);else{const e=t.indexOf(":"),n=e>0?t.slice(2,e):t.slice(2);r=bt[n]||s.dirs[n],i=e>0?t.slice(e+1):void 0}r&&(r===Ge&&"ref"===i&&(r=Ot),Pt(e,r,n,s,i,o),e.removeAttribute(t))},Pt=(e,t,n,s,r,i)=>{const o=t({el:e,get:(t=n)=>dt(s.scope,t,e),effect:s.effect,ctx:s,exp:n,arg:r,modifiers:i});o&&Tt(s,o)},It=(e,t)=>{if("#"===t[0]){const n=document.querySelector(t);return void e.appendChild(n.content.cloneNode(!0))}e.innerHTML=t},Wt=e=>{const t={delimiters:["{{","}}"],delimitersRE:/\{\{([^]+?)\}\}/g,...e,scope:e?e.scope:ge({}),dirs:e?e.dirs:{},effects:[],blocks:[],cleanups:[],effect:e=>{if(Nt)return He(e),e;const n=W(e,{scheduler:()=>He(n)});return t.effects.push(n),yt(()=>{Ke(n),s(t.effects,n)}),n}};return t},Vt=(e,t={})=>{const n=e.scope,s=Object.create(n);Object.defineProperties(s,Object.getOwnPropertyDescriptors(t)),s.$refs=Object.create(n.$refs);const r=ge(new Proxy(s,{set:(e,t,s,o)=>o!==r||i(e,t)?Reflect.set(e,t,s,o):Reflect.set(n,t,s)})),o={...e,scope:r};return s.$watch=Ee(o),s.$id=ke(),Bt(r),o},Bt=e=>{for(const t of Object.keys(e))"function"==typeof e[t]&&(e[t]=e[t].bind(e))},zt=class{template;ctx;key;parentCtx;isFragment;start;end;owned=!1;get el(){return this.start||this.template}constructor(e,t,n=!1){this.isFragment=e instanceof HTMLTemplateElement,n?this.template=e:this.isFragment?this.template=e.content.cloneNode(!0):this.template=e.cloneNode(!0),n||(this.parentCtx=t,t.blocks.push(this)),this.ctx=Wt(t),At(this.template,this.ctx)}insert(e,t=null){if(this.isFragment)if(this.start){let n,s=this.start;for(;s&&(n=s.nextSibling,e.insertBefore(s,t),s!==this.end);)s=n}else this.start=new Text(""),this.end=new Text(""),e.insertBefore(this.end,t),e.insertBefore(this.start,this.end),e.insertBefore(this.template,this.end);else this.template.__teleported||e.insertBefore(this.template,t);this.owned||(this.owned=!0,yt(()=>this.discard(),this.el))}remove(){this.parentCtx&&s(this.parentCtx.blocks,this);const e=()=>{const e=this.start?this.start.parentNode:this.template.parentNode;if(e)if(this.start){let t,n=this.start;for(;n&&(t=n.nextSibling,e.removeChild(n),n!==this.end);)n=t}else e.removeChild(this.template);this.teardown()},t=this.isFragment?void 0:this.template.__leave;t?t().then(e):e()}discard(){this.parentCtx&&s(this.parentCtx.blocks,this),this.teardown()}teardown(){this.ctx.blocks.splice(0).forEach(e=>{e.teardown()}),this.ctx.effects.splice(0).forEach(Ke),this.ctx.cleanups.splice(0).forEach(e=>e())}},Kt=ge(Object.create(null)),Ft=(e,t)=>(void 0!==t&&(Kt[e]=t,"function"==typeof Kt[e].init&&Kt[e].init(),((e,t)=>{Ce()||(Ne.set(e,t),Me("store:register",e,t))})(e,Kt[e])),Kt[e]),Ut=e=>e.replace(/[-.*+?^${}()|[\]\/\\]/g,"\\$&"),qt=e=>{const t=Wt();if("function"==typeof e&&(e=e()),e&&(t.scope=ge(e),Bt(t.scope),e.$delimiters)){const[n,s]=t.delimiters=e.$delimiters;t.delimitersRE=new RegExp(Ut(n)+"([^]+?)"+Ut(s),"g")}t.scope.$s=ot,t.scope.$nextTick=De,t.scope.$refs=Object.create(null),t.scope.$store=Kt,t.scope.$watch=Ee(t),t.scope.$id=ke(),Object.defineProperty(t.scope,"$root",{value:t.scope,enumerable:!1});const n=Object.create(null);let s=[];const r=/* @__PURE__ */new Set,i=[],o={get scope(){return t.scope},directive(e,n){return n?(t.dirs[e]=n,this):t.dirs[e]},component(e,s){return s?(!(e in n)&&e in t.scope||(n[e]=s,(e=>{Ce()||Te.add(e)})(e),t.scope[e]=s),this):n[e]},use(e,t){if(!r.has(e)){r.add(e);const n=("function"==typeof e?e:e.install)(o,t);"function"==typeof n&&i.push(n)}return o},mount(e){if("string"==typeof e&&!(e=document.querySelector(e)))return;let n;n=(e=e||document.documentElement).hasAttribute("v-scope")?[e]:[...e.querySelectorAll("[v-scope]")].filter(e=>!e.matches("[v-scope] [v-scope]")),n.length||(n=[e]),t.walk??=At,t.dispose??=wt;for(const r of n){const e=r.getAttribute("v-name"),n=new zt(r,t,!0);r.__ctx??=n.ctx,We.scopes.has(r)||n.ctx.cleanups.push(Ie(r,n.ctx.scope,void 0,e||void 0)),s.push(n)}return this},unmount(e){if(null==e)return s.forEach(e=>e.teardown()),s=[],i.splice(0).forEach(e=>{try{e()}catch(t){}}),void r.clear();const t="string"==typeof e?document.querySelector(e):e;if(!t)return;const n=[];for(const r of s){const e=r.template;t.contains(e)?r.teardown():n.push(r)}s=n}};return o},Dt=e=>{let t;return t=W(e,{scheduler:()=>He(t)}),()=>Ke(t)},Ht=document.currentScript;Ht&&Ht.hasAttribute("init")&&qt().mount();export{be as computed,qt as createApp,We as devtools,Ve as disableDevtools,De as nextTick,ge as reactive,Ft as store,Dt as watchEffect};
1
+ function e(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}var t=()=>{},n=Object.assign,s=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},r=Object.prototype.hasOwnProperty,i=(e,t)=>r.call(e,t),o=Array.isArray,c=e=>"[object Map]"===h(e),l=e=>"[object Date]"===h(e),u=e=>"string"==typeof e,a=e=>"symbol"==typeof e,f=e=>null!==e&&"object"==typeof e,p=Object.prototype.toString,h=e=>p.call(e),d=e=>u(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,m=e=>{const t=/* @__PURE__ */Object.create(null);return n=>t[n]||(t[n]=e(n))},v=/-(\w)/g,g=m(e=>e.replace(v,(e,t)=>t?t.toUpperCase():"")),_=/\B([A-Z])/g,y=m(e=>e.replace(_,"-$1").toLowerCase()),w=m(e=>e.charAt(0).toUpperCase()+e.slice(1)),b=(m(e=>e?`on${w(e)}`:""),(e,t)=>!Object.is(e,t)),x=e=>{const t=u(e)?Number(e):NaN;return isNaN(t)?e:t};function $(e){if(o(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=u(s)?E(s):$(s);if(r)for(const e in r)t[e]=r[e]}return t}if(u(e)||f(e))return e}var k=/;(?![^(]*\))/g,S=/:([^]+)/,O=/\/\*[^]*?\*\//g;function E(e){const t={};return e.replace(O,"").split(k).forEach(e=>{if(e){const n=e.split(S);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function L(e){let t="";if(u(e))t=e;else if(o(e))for(let n=0;n<e.length;n++){const s=L(e[n]);s&&(t+=s+" ")}else if(f(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}var j;function A(e,t){if(e===t)return!0;let n=l(e),s=l(t);if(n||s)return!(!n||!s)&&e.getTime()===t.getTime();if(n=a(e),s=a(t),n||s)return e===t;if(n=o(e),s=o(t),n||s)return!(!n||!s)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=A(e[s],t[s]);return n}(e,t);if(n=f(e),s=f(t),n||s){if(!n||!s)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const s=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(s&&!r||!s&&r||!A(e[n],t[n]))return!1}}return String(e)===String(t)}function N(e,t){return e.findIndex(e=>A(e,t))}function T(e,t=void 0){t&&t.active&&t.effects.push(e)}var R=class{constructor(e,t,n,s){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,T(this,s)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,F();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(I(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),K()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=V,t=j;try{return V=!0,j=this,this._runnings++,P(this),this.fn()}finally{C(this),this._runnings--,j=t,V=e}}stop(){this.active&&(P(this),C(this),this.onStop&&this.onStop(),this.active=!1)}};function I(e){return e.value}function P(e){e._trackId++,e._depsLength=0}function C(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)M(e.deps[t],e);e.deps.length=e._depsLength}}function M(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}function W(e,s){e.effect instanceof R&&(e=e.effect.fn);const r=new R(e,t,()=>{r.dirty&&r.run()});s&&(n(r,s),s.scope&&T(r,s.scope)),s&&s.lazy||r.run();const i=r.run.bind(r);return i.effect=r,i}var V=!0,z=0,B=[];function F(){B.push(V),V=!1}function K(){const e=B.pop();V=void 0===e||e}function q(){z++}function D(){for(z--;!z&&H.length;)H.shift()()}function U(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&M(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}var H=[];function J(e,t,n){q();for(const s of e.keys()){let n;s._dirtyLevel<t&&(null!=n?n:n=e.get(s)===s._trackId)&&(s._shouldSchedule||(s._shouldSchedule=0===s._dirtyLevel),s._dirtyLevel=t),s._shouldSchedule&&(null!=n?n:n=e.get(s)===s._trackId)&&(s.trigger(),s._runnings&&!s.allowRecurse||2===s._dirtyLevel||(s._shouldSchedule=!1,s.scheduler&&H.push(s.scheduler)))}D()}var Z=(e,t)=>{const n=/* @__PURE__ */new Map;return n.cleanup=e,n.computed=t,n},G=/* @__PURE__ */new WeakMap,Q=Symbol(""),X=Symbol("");function Y(e,t,n){if(V&&j){let t=G.get(e);t||G.set(e,t=/* @__PURE__ */new Map);let s=t.get(n);s||t.set(n,s=Z(()=>t.delete(n))),U(j,s)}}function ee(e,t,n,s,r,i){const l=G.get(e);if(!l)return;let u=[];if("clear"===t)u=[...l.values()];else if("length"===n&&o(e)){const e=Number(s);l.forEach((t,n)=>{("length"===n||!a(n)&&n>=e)&&u.push(t)})}else switch(void 0!==n&&u.push(l.get(n)),t){case"add":o(e)?d(n)&&u.push(l.get("length")):(u.push(l.get(Q)),c(e)&&u.push(l.get(X)));break;case"delete":o(e)||(u.push(l.get(Q)),c(e)&&u.push(l.get(X)));break;case"set":c(e)&&u.push(l.get(Q))}q();for(const o of u)o&&J(o,4);D()}var te=/* @__PURE__ */e("__proto__,__v_isRef,__isVue"),ne=new Set(/* @__PURE__ */Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(a)),se=/* @__PURE__ */re();function re(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=ye(this);for(let t=0,r=this.length;t<r;t++)Y(n,0,t+"");const s=n[t](...e);return-1===s||!1===s?n[t](...e.map(ye)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){F(),q();const n=ye(this)[t].apply(this,e);return D(),K(),n}}),e}function ie(e){a(e)||(e=String(e));const t=ye(this);return Y(t,0,e),t.hasOwnProperty(e)}var oe=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(s?r?de:he:r?pe:fe).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const c=o(e);if(!s){if(c&&i(se,t))return Reflect.get(se,t,n);if("hasOwnProperty"===t)return ie}const l=Reflect.get(e,t,n);return(a(t)?ne.has(t):te(t))?l:(s||Y(e,0,t),r?l:$e(l)?c&&d(t)?l:l.value:f(l)?s?function(e){return ge(e,!0,ae,null,he)}(l):ve(l):l)}},ce=class extends oe{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];if(!this._isShallow){const t=_e(r);if(function(e){return!(!e||!e.__v_isShallow)}(n)||_e(n)||(r=ye(r),n=ye(n)),!o(e)&&$e(r)&&!$e(n))return!t&&(r.value=n,!0)}const c=o(e)&&d(t)?Number(t)<e.length:i(e,t),l=Reflect.set(e,t,n,s);return e===ye(s)&&(c?b(n,r)&&ee(e,"set",t,n):ee(e,"add",t,n)),l}deleteProperty(e,t){const n=i(e,t),s=(e[t],Reflect.deleteProperty(e,t));return s&&n&&ee(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return a(t)&&ne.has(t)||Y(e,0,t),n}ownKeys(e){return Y(e,0,o(e)?"length":Q),Reflect.ownKeys(e)}},le=class extends oe{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},ue=/* @__PURE__ */new ce,ae=/* @__PURE__ */new le,fe=/* @__PURE__ */new WeakMap,pe=/* @__PURE__ */new WeakMap,he=/* @__PURE__ */new WeakMap,de=/* @__PURE__ */new WeakMap;function me(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;default:return 0}}((e=>h(e).slice(8,-1))(e))}function ve(e){return _e(e)?e:ge(e,!1,ue,null,fe)}function ge(e,t,n,s,r){if(!f(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=me(e);if(0===o)return e;const c=new Proxy(e,2===o?s:n);return r.set(e,c),c}function _e(e){return!(!e||!e.__v_isReadonly)}function ye(e){const t=e&&e.__v_raw;return t?ye(t):e}var we=class{constructor(e,t,n,s){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new R(()=>e(this._value),()=>xe(this,2===this.effect._dirtyLevel?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const e=ye(this);var t,n;return e._cacheable&&!e.effect.dirty||!b(e._value,e._value=e.effect.run())||xe(e,4),t=e,V&&j&&(t=ye(t),U(j,null!=(n=t.dep)?n:t.dep=Z(()=>t.dep=void 0,t instanceof we?t:void 0))),e.effect._dirtyLevel>=2&&xe(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}};function be(e,n,s=!1){let r,i;const o="function"==typeof e;return o?(r=e,i=t):(r=e.get,i=e.set),new we(r,i,o||!i,s)}function xe(e,t=4,n,s){const r=(e=ye(e)).dep;r&&J(r,t)}function $e(e){return!(!e||!0!==e.__v_isRef)}var ke=0,Se=()=>{const e=Object.create(null);return(t="id")=>e[t]||(e[t]=`${t}-${++ke}`)},Oe=e=>(t,n)=>{const s="function"==typeof t?t:()=>t.split(".").reduce((e,t)=>null==e?e:e[t],e.scope);let r,i=!1;e.effect(()=>{const e=s(),t=r;if(r=e,i&&e!==t){F();try{n(e,t)}finally{K()}}i=!0})},Ee=/* @__PURE__ */new Map,Le=/* @__PURE__ */new Map,je=/* @__PURE__ */new Map,Ae=/* @__PURE__ */new Map,Ne=/* @__PURE__ */new Set,Te=!1,Re=()=>Te||"undefined"!=typeof window&&!1===window.__LITE_VUE_DEVTOOLS__,Ie={"scope:mount":/* @__PURE__ */new Set,"scope:unmount":/* @__PURE__ */new Set,"store:register":/* @__PURE__ */new Set,flush:/* @__PURE__ */new Set},Pe=(e,...t)=>{Ie[e].forEach(e=>e(...t))},Ce=()=>{},Me=(e,t,n,s)=>Re()?Ce:(Ee.set(e,t),n&&Le.set(e,n),s&&je.set(e,s),Pe("scope:mount",e,t),()=>{Ee.delete(e)&&(Le.delete(e),je.delete(e),Pe("scope:unmount",e))}),We={scopes:Ee,exps:Le,names:je,stores:Ae,components:Ne,getScopeByName(e){for(const[t,n]of je)if(n===e)return Ee.get(t)},getScope(e){let t=1===e.nodeType?e:e.parentElement;for(;t;){const e=Ee.get(t);if(e)return e;t=t.parentElement}},on:(e,t)=>(Ie[e].add(t),()=>Ie[e].delete(t)),off(e,t){Ie[e].delete(t)}},Ve=()=>{Te=!0,Ee.clear(),Le.clear(),je.clear(),Ae.clear(),Ne.clear();for(const e in Ie)Ie[e].clear();"undefined"!=typeof window&&window.__LITE_VUE__===We&&delete window.__LITE_VUE__};"undefined"==typeof window||Re()||(window.__LITE_VUE__=We);var ze,Be=[],Fe=(e,t)=>{for(const s of Be)try{s(e,t)}catch(n){}Be.length||console.error(e)},Ke=/* @__PURE__ */new WeakSet,qe=e=>{Ke.add(e),function(e){e.effect.stop()}(e)},De=!1,Ue=[],He=Promise.resolve(),Je=-1,Ze=e=>He.then(e),Ge=e=>{Ue.includes(e,Je+1)||Ue.push(e),De||(De=!0,Ze(Qe))},Qe=()=>{const e=/* @__PURE__ */new Map;for(Je=0;Je<Ue.length;Je++){const n=Ue[Je];if(Ke.has(n))continue;const s=(e.get(n)||0)+1;if(e.set(n,s),s>100)Fe(Error("update loop"),{phase:"effect"});else try{n()}catch(t){Fe(t,{phase:"effect"})}}Ue.length=0,Je=-1,De=!1,Ie.flush.size&&!Re()&&Pe("flush")},Xe=/^(spellcheck|draggable|form|list|type)$/,Ye=({el:e,get:t,effect:n,arg:s,modifiers:r})=>{let i;"class"===s&&(e._class=e.getAttribute("class")),n(()=>{let n=t();if(s)r?.camel&&(s=g(s)),et(e,s,n,i);else{for(const t in n)et(e,t,n[t],i&&i[t]);for(const t in i)n&&t in n||et(e,t,null)}i="[object Object]"===h(n)?{...n}:n})},et=(e,t,n,s)=>{if("class"===t)e.setAttribute("class",L(e._class?[e._class,n]:n)||"");else if("style"===t){n=$(n);const{style:t}=e;if(n)if(u(n))n!==s&&(t.cssText=n);else{for(const e in n)nt(t,e,n[e]);if(s&&!u(s))for(const e in s)null==n[e]&&nt(t,e,"")}else e.removeAttribute("style")}else e instanceof SVGElement||!(t in e)||Xe.test(t)?"true-value"===t?e._trueValue=n:"false-value"===t?e._falseValue=n:null!=n?e.setAttribute(t,n):e.removeAttribute(t):(e[t]=null==n&&"string"==typeof e[t]?"":n,null==n&&e.removeAttribute(t),"value"===t&&(e._value=n))},tt=/\s*!important$/,nt=(e,t,n)=>{o(n)?n.forEach(n=>nt(e,t,n)):t.startsWith("--")?e.setProperty(t,n):tt.test(n)?e.setProperty(y(t),n.replace(tt,""),"important"):e[t]=n},st=Object.create(null),rt=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,it=["ctrl","shift","alt","meta"],ot={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>it.some(n=>e[`${n}Key`]&&!t[n])},ct={esc:"escape",space:" ",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",delete:"backspace"},lt=/^(stop|prevent|self|ctrl|shift|alt|meta|left|middle|right|exact|once|capture|passive|window|document|outside|debounce(-\d+)?|throttle(-\d+)?|prop-.+|name-.+)$/,ut=({el:e,get:t,ctx:n,exp:s,arg:r,modifiers:i})=>{if(!r)return;const o=rt.test(s)?t(`(e => ${s}(e))`):(e=>{const t=st[e];if(void 0!==t)return t;try{return new Function(`return (${e})`),st[e]=!0}catch{return st[e]=!1}})(s)?t(`($event => (${s}))`):t(`($event => { ${s} })`);let c,l=(...e)=>{try{const t=o(...e);return t instanceof Promise&&t.catch(u),t}catch(t){u(t)}};function u(t){Fe(t,{phase:"handler",source:`@${r}`,expression:s,el:e,scope:n.scope})}if("mounted"===r||"vue:mounted"===r){let e=!0;return Ze(()=>{e&&l()}),()=>{e=!1}}if("unmounted"===r||"vue:unmounted"===r)return()=>l();if(i){"click"===r&&(i.right&&(r="contextmenu"),i.middle&&(r="mouseup"));let t=l;for(const e in i){let n=/^debounce(?:-(\d+))?$/.exec(e);if(n){const e=t,s=n[1]?+n[1]:250;t=t=>{clearTimeout(c),c=setTimeout(e,s,t)};continue}if(n=/^throttle(?:-(\d+))?$/.exec(e),n){const e=t,s=n[1]?+n[1]:250;let r=0;t=t=>{const n=Date.now();n-r>=s&&(r=n,e(t))}}}const n=Object.keys(i).filter(e=>!lt.test(e)||e in ct);l=s=>{if(!i.outside||!e.contains(s.target)){if("key"in s&&n.length){const e=y(s.key);if(!n.some(t=>t===e||ct[t]===e))return}for(const e in i){const t=ot[e];if(t&&t(s,i))return;if(e.startsWith("prop-")&&"propertyName"in s&&s.propertyName!==e.slice(5))return;if(e.startsWith("name-")&&"animationName"in s&&s.animationName!==e.slice(5))return}return t(s)}}}const a=i?.window?window:i?.document||i?.outside?document:e,f=r;return a.addEventListener(f,l,i),()=>{clearTimeout(c),a.removeEventListener(f,l,i)}},at=({el:e,get:t,effect:n})=>{n(()=>{e.textContent=ft(t())})},ft=e=>null==e?"":f(e)?JSON.stringify(e,null,2):String(e),pt=(e,t)=>{const n=e.getAttribute(t);return null!=n&&e.removeAttribute(t),n},ht=e=>"_value"in e?e._value:e.value,dt=(e,t)=>{const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t},mt=e=>{e.target.composing=!0},vt=e=>{const t=e.target;t.composing&&(t.composing=!1,gt(t,"input"))},gt=(e,t)=>{const n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)},_t=Object.create(null),yt=e=>e.replace(/^return\(([^]*)\)$/,"$1"),wt=(e,t,n,s)=>bt(e,`return(${t})`,n,s),bt=(e,t,n,s)=>{const r=_t[t]||(_t[t]=xt(t,n,s));try{return r(e,n,n&&(e=>(t,n)=>e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0})))(n))}catch(i){Fe(i,{phase:"expression",expression:s?.expression??yt(t),source:s?.source,el:s?.el??n,scope:e})}},xt=(e,t,n)=>{try{return new Function("$data","$el","$dispatch",`with($data){${e}}`)}catch(s){return Fe(s,{phase:"compile",expression:n?.expression??yt(e),source:n?.source,el:n?.el??t}),()=>{}}},$t=/* @__PURE__ */new WeakMap,kt=e=>{const t=ze;return ze=e,t},St=(e,t=ze)=>{if(!t)return;const n=$t.get(t);n?n.push(e):$t.set(t,[e])},Ot=e=>{const t=$t.get(e);if(t){$t.delete(e);for(const e of t)e()}let n=e.firstChild;for(;n;){const e=n.nextSibling;Ot(n),n=e}},Et={bind:Ye,on:ut,show:({el:e,get:t,effect:n})=>{const s=e.style.display;n(()=>{e.style.display=t()?s:"none"})},text:at,html:({el:e,get:t,effect:n})=>{n(()=>{e.innerHTML=t()??""})},model:({el:e,exp:t,get:n,effect:s,modifiers:r})=>{const i=e.type,c=n(`(val) => { ${t} = val }`),{trim:l,number:u="number"===i,lazy:a,fill:f}=r||{},p=[],h=(t,n)=>p.push(((e,t,n,s)=>(e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)))(e,t,n));if("SELECT"===e.tagName){const t=e;h("change",()=>{const e=Array.prototype.filter.call(t.options,e=>e.selected).map(e=>u?x(ht(e)):ht(e));c(t.multiple?e:e[0])}),s(()=>{const e=n(),s=t.multiple;for(let n=0,r=t.options.length;n<r;n++){const r=t.options[n],i=ht(r);if(s)r.selected=o(e)&&N(e,i)>-1;else if(A(ht(r),e))return void(t.selectedIndex!==n&&(t.selectedIndex=n))}s||-1===t.selectedIndex||(t.selectedIndex=-1)})}else if("checkbox"===i)h("change",()=>{const t=n(),s=e.checked;if(o(t)){const n=ht(e),r=N(t,n),i=-1!==r;if(s&&!i)c(t.concat(n));else if(!s&&i){const e=[...t];e.splice(r,1),c(e)}}else c(dt(e,s))}),s(()=>{const t=n();o(t)?e.checked=N(t,ht(e))>-1:e.checked=A(t,dt(e,!0))});else if("radio"===i)h("change",()=>{c(ht(e))}),s(()=>{e.checked=A(n(),ht(e))});else{const t=e=>(l&&(e=e.trim()),u?x(e):e);let i,o=c;for(const e in r||{}){const t=/^debounce(?:-(\d+))?$/.exec(e);if(t){const e=t[1]?+t[1]:250;o=t=>{clearTimeout(i),i=setTimeout(c,e,t)},p.push(()=>clearTimeout(i))}}if(h("compositionstart",mt),h("compositionend",vt),h(a?"change":"input",()=>{e.composing||o(t(e.value))}),l&&h("change",()=>{e.value=e.value.trim()}),f){const s=n();null!=s&&""!==s||!e.value||c(t(e.value))}s(()=>{if(e.composing)return;const s=e.value,r=n();document.activeElement===e&&t(s)===r||s!==r&&(e.value=r)})}return()=>p.forEach(e=>e())},effect:({el:e,ctx:t,exp:n,effect:s})=>{let r=!0;return Ze(()=>{if(!r)return;const i=kt(e);try{s(()=>bt(t.scope,n,e,{source:"v-effect",el:e}))}finally{kt(i)}}),()=>{r=!1}}},Lt=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,jt=/,([^,}\]]*)(?:,([^,}\]]*))?$/,At=/^\(|\)$/g,Nt=/^[{[]\s*((?:[\w_$]+\s*,?\s*)+)[\]}]$/,Tt=(e,t,n)=>{const s=t.match(Lt);if(!s)return;const r=e.nextSibling,i=new Text("");e.replaceWith(i);const c=()=>i.parentNode;kt(i);const l=s[2].trim();let u,a,p,h,d=s[1].trim().replace(At,"").trim(),m=!1,v="key",g=e.getAttribute(v)||e.getAttribute(v=":key")||e.getAttribute(v="v-bind:key");g&&(e.removeAttribute(v),"key"===v&&(g=JSON.stringify(g))),(h=d.match(jt))&&(d=d.replace(jt,"").trim(),a=h[1].trim(),h[2]&&(p=h[2].trim())),(h=d.match(Nt))&&(u=h[1].split(",").map(e=>e.trim()),m="["===d[0]);let _,y,w,b=!1;const x=(t,s,r,i)=>{const o={};u?u.forEach((e,t)=>o[e]=s[m?t:e]):o[d]=s,i?(a&&(o[a]=i),p&&(o[p]=r)):a&&(o[a]=r);const c=Qt(n,o),l=g?wt(c.scope,g,e,{source:":key",el:e}):r;return t.set(l,r),c.key=l,c},$=(t,n)=>{const s=new Yt(e,t);return s.key=t.key,s.insert(c(),n),s};return n.effect(()=>{const t=wt(n.scope,l,e,{source:"v-for",el:e}),s=w;if([y,w]=(e=>{const t=/* @__PURE__ */new Map,n=[];if(o(e))for(let s=0;s<e.length;s++)n.push(x(t,e[s],s));else if("number"==typeof e)for(let s=0;s<e;s++)n.push(x(t,s+1,s));else if(f(e)){let s=0;for(const r in e)n.push(x(t,e[r],s++,r))}return[n,t]})(t),b){for(let s=0;s<_.length;s++)w.has(_[s].key)||_[s].remove();const e=[];let t,n,r=y.length;for(;r--;){const o=y[r],l=s.get(o.key);let u;null==l?u=$(o,t?t.el:i):(u=_[l],Object.assign(u.ctx.scope,o.scope),l!==r&&(_[l+1]===t&&n!==t||(n=u,u.insert(c(),t?t.el:i)))),e.unshift(t=u)}_=e}else _=y.map(e=>$(e,i)),b=!0}),r},Rt=({el:e,ctx:{scope:{$refs:t}},get:n,effect:s})=>{let r;return s(()=>{const s=n();t[s]=e,r&&s!==r&&delete t[r],r=s}),()=>{r&&delete t[r]}},It=["visible","idle","interaction"],Pt=["[v-scope]",...It.map(e=>`[v-scope\\.${e}]`)].join(","),Ct=["pointerdown","keydown","focusin"],Mt=(e,t,n,s)=>{const r=It.find(t=>e.hasAttribute(`v-scope.${t}`));if(!r)return!1;const i=`v-scope.${r}`,o=((e,t,n)=>{let s=!1;const r=()=>{s||(s=!0,i(),n())};let i=()=>{};if("visible"===t&&"function"==typeof IntersectionObserver){const t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&r()});t.observe(e),i=()=>t.disconnect()}else if("interaction"!==t){const e=window.requestIdleCallback,t=e?e(r):setTimeout(r);i=()=>e?window.cancelIdleCallback(t):clearTimeout(t)}else{for(const t of Ct)e.addEventListener(t,r);i=()=>{for(const t of Ct)e.removeEventListener(t,r)}}return()=>{s=!0,i()}})(e,r,()=>{e.hasAttribute(i)&&(e.setAttribute("v-scope",e.getAttribute(i)),e.removeAttribute(i),n(e,t,s))});return t.cleanups.push(o),St(o),!0},Wt=/^(?:v-|:|@)/,Vt=/\.([\w-]+)/g,zt=!1,Bt=(e,t)=>{e.cleanups.push(t),St(()=>{const n=e.cleanups.indexOf(t);n>-1&&(e.cleanups.splice(n,1),t())})},Ft=(e,t,n)=>{const s=zt;zt=n;try{Kt(e,t)}finally{zt=s}},Kt=(e,t)=>{const n=kt(e);try{return qt(e,t)}finally{kt(n)}},qt=(e,t)=>{const n=e.nodeType;if(1===n){const n=e;if(n.hasAttribute("v-pre"))return;if(Mt(n,t,Ft,zt))return;let s;if(pt(n,"v-cloak"),s=pt(n,"v-if"))return((e,t,n)=>{const s=new Comment("v-if");e.before(s);const r=[{exp:t,el:e}];let i,o;for(;(i=e.nextElementSibling)&&(o=null,""===pt(i,"v-else")||(o=pt(i,"v-else-if")));)i.remove(),r.push({exp:o,el:i});const c=e.nextSibling;let l;e.remove(),kt(s);let u=-1;const a=()=>{l&&(s.parentNode||l.el.before(s),l.remove(),l=void 0)};let f;const p=()=>qe(f);return f=n.effect(()=>{for(let e=0;e<r.length;e++){const{exp:t,el:i}=r[e];if(!t||wt(n.scope,t,i,{source:"v-if",el:i})){if(e!==u){a();const t=s.parentNode;l=new Yt(i,n),l.insert(t,s),St(p,l.el),l.el.parentNode===t&&s.remove(),u=e}return}}u=-1,a()}),St(p,s),c})(n,s,t);if(s=pt(n,"v-for"))return Tt(n,s,t);const r=pt(n,"v-name");let i;if(s=pt(n,"v-teleport")){const e=document.querySelector(s);e&&(i=n.nextSibling,n.__teleported=!0,e.appendChild(n),t.cleanups.push(()=>n.remove()))}if((s=pt(n,"v-scope"))||""===s){const e=(s?wt(t.scope,s,n,{source:"v-scope",el:n}):{})||{};t=Qt(t,e),n.__ctx=t,Bt(t,Me(n,t.scope,s||void 0,r||void 0)),e.$template&&Jt(n,e.$template)}const o=null!=pt(n,"v-once");o&&(zt=!0),(s=pt(n,"ref"))&&Ht(n,Rt,`"${s}"`,t),Dt(n,t);const c=[];for(const{name:e,value:l}of[...n.attributes])Wt.test(e)&&"v-cloak"!==e&&("v-model"===e||e.startsWith("v-model.")?c.unshift([e,l]):"@"===e[0]||/^v-on\b/.test(e)?c.push([e,l]):Ut(n,e,l,t));for(const[e,l]of c)Ut(n,e,l,t);return o&&(zt=!1),i}if(3===n){const n=e.data;if(n.includes(t.delimiters[0])){let s,r=[],i=0;for(;s=t.delimitersRE.exec(n);){const e=n.slice(i,s.index);e&&r.push(JSON.stringify(e)),r.push(`$s(${s[1]})`),i=s.index+s[0].length}i<n.length&&r.push(JSON.stringify(n.slice(i))),Ht(e,at,r.join("+"),t,void 0,void 0,"{{ }}",n.trim())}}else 11===n&&Dt(e,t)},Dt=(e,t)=>{let n=e.firstChild;for(;n;)n=Kt(n,t)||n.nextSibling},Ut=(e,t,n,s)=>{let r,i,o;const c=t;if(":"===(t=t.replace(Vt,(e,t)=>((o||(o={}))[t]=!0,"")))[0])r=Ye,i=t.slice(1);else if("@"===t[0])r=ut,i=t.slice(1);else{const e=t.indexOf(":"),n=e>0?t.slice(2,e):t.slice(2);r=Et[n]||s.dirs[n],i=e>0?t.slice(e+1):void 0}r&&(r===Ye&&"ref"===i&&(r=Rt),Ht(e,r,n,s,i,o,c),e.removeAttribute(c))},Ht=(e,t,n,s,r,i,o,c)=>{const l={source:o,el:e,expression:c},u=(t=n)=>wt(s.scope,t,e,l);let a;try{a=t({el:e,get:u,effect:s.effect,ctx:s,exp:n,arg:r,modifiers:i})}catch(f){return void Fe(f,{phase:"directive",source:o,el:e,expression:n})}a&&Bt(s,a)},Jt=(e,t)=>{if("#"===t[0]){const n=document.querySelector(t);if(!n)return;return void e.appendChild(n.content.cloneNode(!0))}e.innerHTML=t},Zt=e=>{const t={delimiters:["{{","}}"],delimitersRE:/\{\{([^]+?)\}\}/g,...e,scope:e?e.scope:ve({}),dirs:e?e.dirs:{},effects:[],blocks:[],cleanups:[],effect:e=>{if(zt)return Ge(e),e;const n=W(e,{scheduler:()=>Ge(n)});return t.effects.push(n),St(()=>{qe(n),s(t.effects,n)}),n}};return t},Gt=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Qt=(e,t={})=>{const n=e.scope,s=Object.create(n);Object.defineProperties(s,Object.getOwnPropertyDescriptors(t)),Gt(s,"$refs",Object.create(n.$refs));const r=ve(new Proxy(s,{set:(e,t,s,o)=>o!==r||i(e,t)?Reflect.set(e,t,s,o):Reflect.set(n,t,s)})),o={...e,scope:r};return Gt(s,"$watch",Oe(o)),Gt(s,"$id",Se()),Xt(r),o},Xt=e=>{for(const t of Object.keys(e)){const n=Object.getOwnPropertyDescriptor(e,t).value;"function"==typeof n&&(e[t]=n.bind(e))}},Yt=class{template;ctx;key;parentCtx;isFragment;start;end;owned=!1;get el(){return this.start||this.template}constructor(e,t,n=!1){this.isFragment=e instanceof HTMLTemplateElement,n?this.template=e:this.isFragment?this.template=e.content.cloneNode(!0):this.template=e.cloneNode(!0),n||(this.parentCtx=t,t.blocks.push(this)),this.ctx=Zt(t),Kt(this.template,this.ctx)}insert(e,t=null){if(this.isFragment)if(this.start){let n,s=this.start;for(;s&&(n=s.nextSibling,e.insertBefore(s,t),s!==this.end);)s=n}else this.start=new Text(""),this.end=new Text(""),e.insertBefore(this.end,t),e.insertBefore(this.start,this.end),e.insertBefore(this.template,this.end);else this.template.__teleported||e.insertBefore(this.template,t);this.owned||(this.owned=!0,St(()=>this.discard(),this.el))}remove(){this.parentCtx&&s(this.parentCtx.blocks,this);const e=()=>{const e=this.start?this.start.parentNode:this.template.parentNode;if(e)if(this.start){let t,n=this.start;for(;n&&(t=n.nextSibling,e.removeChild(n),n!==this.end);)n=t}else e.removeChild(this.template);this.teardown()},t=this.isFragment?void 0:this.template.__leave;t?t().then(e):e()}discard(){this.parentCtx&&s(this.parentCtx.blocks,this),this.teardown()}teardown(){this.ctx.blocks.splice(0).forEach(e=>{e.teardown()}),this.ctx.effects.splice(0).forEach(qe),this.ctx.cleanups.splice(0).forEach(e=>e())}},en=ve(Object.create(null)),tn=(e,t)=>(void 0!==t&&(en[e]=t,"function"==typeof en[e].init&&en[e].init(),((e,t)=>{Re()||(Ae.set(e,t),Pe("store:register",e,t))})(e,en[e])),en[e]),nn=e=>e.replace(/[-.*+?^${}()|[\]/\\]/g,"\\$&"),sn=e=>{const t=Zt();if("function"==typeof e&&(e=e()),e&&(t.scope=ve(e),Xt(t.scope),e.$delimiters)){const[n,s]=t.delimiters=e.$delimiters;t.delimitersRE=new RegExp(nn(n)+"([^]+?)"+nn(s),"g")}t.scope.$s=ft,t.scope.$nextTick=Ze,t.scope.$refs=Object.create(null),t.scope.$store=en,t.scope.$watch=Oe(t),t.scope.$id=Se(),Object.defineProperty(t.scope,"$root",{value:t.scope,enumerable:!1});const n=Object.create(null);let s=[];const r=/* @__PURE__ */new Set,i=[],o=[],c={get scope(){return t.scope},directive(e,n){return n?(t.dirs[e]=n,this):t.dirs[e]},component(e,s){return s?(!(e in n)&&e in t.scope||(n[e]=s,(e=>{Re()||Ne.add(e)})(e),t.scope[e]=s),this):n[e]},onError(e){const t=(n=e,Be.push(n),()=>{const e=Be.indexOf(n);e>-1&&Be.splice(e,1)});var n;return o.push(t),()=>{const e=o.indexOf(t);e>-1&&o.splice(e,1),t()}},use(e,t){if(!r.has(e)){r.add(e);const n=("function"==typeof e?e:e.install)(c,t);"function"==typeof n&&i.push(n)}return c},mount(e){if("string"==typeof e){const t=document.querySelector(e);if(!t)return;e=t}let n;n=(e=e||document.documentElement).matches(Pt)?[e]:[...e.querySelectorAll(Pt)].filter(e=>!e.matches(`:where(${Pt}) *`)),n.length||(n=[e]),t.walk??=Kt,t.dispose??=Ot;for(const r of n){const e=r.getAttribute("v-name"),n=new Yt(r,t,!0);r.__ctx??=n.ctx,We.scopes.has(r)||r.matches(Pt)||n.ctx.cleanups.push(Me(r,n.ctx.scope,void 0,e||void 0)),s.push(n)}return this},unmount(e){if(null==e)return s.forEach(e=>e.teardown()),s=[],i.splice(0).forEach(e=>{try{e()}catch(t){Fe(t,{phase:"teardown",source:"plugin"})}}),r.clear(),void o.splice(0).forEach(e=>e());const t="string"==typeof e?document.querySelector(e):e;if(!t)return;const n=[];for(const r of s){const e=r.template;t.contains(e)?r.teardown():n.push(r)}s=n}};return c},rn=e=>{let t;return t=W(e,{scheduler:()=>Ge(t)}),()=>qe(t)},on=document.currentScript;on&&on.hasAttribute("init")&&sn().mount();export{be as computed,sn as createApp,We as devtools,Ve as disableDevtools,Ze as nextTick,ve as reactive,tn as store,rn as watchEffect};
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).LiteVue={})}(this,function(e){function t(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});var n=()=>{},s=Object.assign,r=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},i=Object.prototype.hasOwnProperty,o=(e,t)=>i.call(e,t),c=Array.isArray,l=e=>"[object Map]"===h(e),u=e=>"[object Date]"===h(e),a=e=>"string"==typeof e,f=e=>"symbol"==typeof e,p=e=>null!==e&&"object"==typeof e,d=Object.prototype.toString,h=e=>d.call(e),m=e=>a(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,g=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},v=/-(\w)/g,_=g(e=>e.replace(v,(e,t)=>t?t.toUpperCase():"")),y=/\B([A-Z])/g,w=g(e=>e.replace(y,"-$1").toLowerCase()),b=g(e=>e.charAt(0).toUpperCase()+e.slice(1)),x=(g(e=>e?`on${b(e)}`:""),(e,t)=>!Object.is(e,t)),S=e=>{const t=a(e)?Number(e):NaN;return isNaN(t)?e:t};function $(e){if(c(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=a(s)?L(s):$(s);if(r)for(const e in r)t[e]=r[e]}return t}if(a(e)||p(e))return e}var k=/;(?![^(]*\))/g,E=/:([^]+)/,O=/\/\*[^]*?\*\//g;function L(e){const t={};return e.replace(O,"").split(k).forEach(e=>{if(e){const n=e.split(E);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function j(e){let t="";if(a(e))t=e;else if(c(e))for(let n=0;n<e.length;n++){const s=j(e[n]);s&&(t+=s+" ")}else if(p(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}var T;function N(e,t){if(e===t)return!0;let n=u(e),s=u(t);if(n||s)return!(!n||!s)&&e.getTime()===t.getTime();if(n=f(e),s=f(t),n||s)return e===t;if(n=c(e),s=c(t),n||s)return!(!n||!s)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=N(e[s],t[s]);return n}(e,t);if(n=p(e),s=p(t),n||s){if(!n||!s)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const s=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(s&&!r||!s&&r||!N(e[n],t[n]))return!1}}return String(e)===String(t)}function A(e,t){return e.findIndex(e=>N(e,t))}function C(e,t=void 0){t&&t.active&&t.effects.push(e)}var R=class{constructor(e,t,n,s){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,C(this,s)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,D();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(M(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),F()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=B,t=T;try{return B=!0,T=this,this._runnings++,P(this),this.fn()}finally{I(this),this._runnings--,T=t,B=e}}stop(){this.active&&(P(this),I(this),this.onStop&&this.onStop(),this.active=!1)}};function M(e){return e.value}function P(e){e._trackId++,e._depsLength=0}function I(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)V(e.deps[t],e);e.deps.length=e._depsLength}}function V(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}function W(e,t){e.effect instanceof R&&(e=e.effect.fn);const r=new R(e,n,()=>{r.dirty&&r.run()});t&&(s(r,t),t.scope&&C(r,t.scope)),t&&t.lazy||r.run();const i=r.run.bind(r);return i.effect=r,i}var B=!0,z=0,K=[];function D(){K.push(B),B=!1}function F(){const e=K.pop();B=void 0===e||e}function U(){z++}function q(){for(z--;!z&&J.length;)J.shift()()}function H(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&V(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}var J=[];function Z(e,t,n){U();for(const s of e.keys()){let n;s._dirtyLevel<t&&(null!=n?n:n=e.get(s)===s._trackId)&&(s._shouldSchedule||(s._shouldSchedule=0===s._dirtyLevel),s._dirtyLevel=t),s._shouldSchedule&&(null!=n?n:n=e.get(s)===s._trackId)&&(s.trigger(),s._runnings&&!s.allowRecurse||2===s._dirtyLevel||(s._shouldSchedule=!1,s.scheduler&&J.push(s.scheduler)))}q()}var G=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Q=new WeakMap,X=Symbol(""),Y=Symbol("");function ee(e,t,n){if(B&&T){let t=Q.get(e);t||Q.set(e,t=new Map);let s=t.get(n);s||t.set(n,s=G(()=>t.delete(n))),H(T,s)}}function te(e,t,n,s,r,i){const o=Q.get(e);if(!o)return;let u=[];if("clear"===t)u=[...o.values()];else if("length"===n&&c(e)){const e=Number(s);o.forEach((t,n)=>{("length"===n||!f(n)&&n>=e)&&u.push(t)})}else switch(void 0!==n&&u.push(o.get(n)),t){case"add":c(e)?m(n)&&u.push(o.get("length")):(u.push(o.get(X)),l(e)&&u.push(o.get(Y)));break;case"delete":c(e)||(u.push(o.get(X)),l(e)&&u.push(o.get(Y)));break;case"set":l(e)&&u.push(o.get(X))}U();for(const c of u)c&&Z(c,4);q()}var ne=t("__proto__,__v_isRef,__isVue"),se=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(f)),re=ie();function ie(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=we(this);for(let t=0,r=this.length;t<r;t++)ee(n,0,t+"");const s=n[t](...e);return-1===s||!1===s?n[t](...e.map(we)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){D(),U();const n=we(this)[t].apply(this,e);return q(),F(),n}}),e}function oe(e){f(e)||(e=String(e));const t=we(this);return ee(t,0,e),t.hasOwnProperty(e)}var ce=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(s?r?me:he:r?de:pe).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const i=c(e);if(!s){if(i&&o(re,t))return Reflect.get(re,t,n);if("hasOwnProperty"===t)return oe}const l=Reflect.get(e,t,n);return(f(t)?se.has(t):ne(t))?l:(s||ee(e,0,t),r?l:Se(l)?i&&m(t)?l:l.value:p(l)?s?function(e){return _e(e,!0,fe,null,he)}(l):ve(l):l)}},le=class extends ce{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];if(!this._isShallow){const t=ye(r);if(function(e){return!(!e||!e.__v_isShallow)}(n)||ye(n)||(r=we(r),n=we(n)),!c(e)&&Se(r)&&!Se(n))return!t&&(r.value=n,!0)}const i=c(e)&&m(t)?Number(t)<e.length:o(e,t),l=Reflect.set(e,t,n,s);return e===we(s)&&(i?x(n,r)&&te(e,"set",t,n):te(e,"add",t,n)),l}deleteProperty(e,t){const n=o(e,t),s=(e[t],Reflect.deleteProperty(e,t));return s&&n&&te(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return f(t)&&se.has(t)||ee(e,0,t),n}ownKeys(e){return ee(e,0,c(e)?"length":X),Reflect.ownKeys(e)}},ue=class extends ce{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},ae=new le,fe=new ue,pe=new WeakMap,de=new WeakMap,he=new WeakMap,me=new WeakMap;function ge(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>h(e).slice(8,-1))(e))}function ve(e){return ye(e)?e:_e(e,!1,ae,null,pe)}function _e(e,t,n,s,r){if(!p(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const o=ge(e);if(0===o)return e;const c=new Proxy(e,2===o?s:n);return r.set(e,c),c}function ye(e){return!(!e||!e.__v_isReadonly)}function we(e){const t=e&&e.__v_raw;return t?we(t):e}var be=class{constructor(e,t,n,s){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new R(()=>e(this._value),()=>xe(this,2===this.effect._dirtyLevel?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const e=we(this);var t,n;return e._cacheable&&!e.effect.dirty||!x(e._value,e._value=e.effect.run())||xe(e,4),t=e,B&&T&&(t=we(t),H(T,null!=(n=t.dep)?n:t.dep=G(()=>t.dep=void 0,t instanceof be?t:void 0))),e.effect._dirtyLevel>=2&&xe(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}};function xe(e,t=4,n,s){const r=(e=we(e)).dep;r&&Z(r,t)}function Se(e){return!(!e||!0!==e.__v_isRef)}var $e=0,ke=()=>{const e=Object.create(null);return(t="id")=>e[t]||(e[t]=`${t}-${++$e}`)},Ee=e=>(t,n)=>{const s="function"==typeof t?t:()=>t.split(".").reduce((e,t)=>null==e?e:e[t],e.scope);let r,i=!1;e.effect(()=>{const e=s();i&&e!==r&&(D(),n(e,r),F()),i=!0,r=e})},Oe=new Map,Le=new Map,je=new Map,Te=new Map,Ne=new Set,Ae=!1,Ce=()=>Ae||"undefined"!=typeof window&&!1===window.__LITE_VUE_DEVTOOLS__,Re={"scope:mount":new Set,"scope:unmount":new Set,"store:register":new Set,flush:new Set},Me=(e,...t)=>{Re[e].forEach(e=>e(...t))},Pe=()=>{},Ie=(e,t,n,s)=>Ce()?Pe:(Oe.set(e,t),n&&Le.set(e,n),s&&je.set(e,s),Me("scope:mount",e,t),()=>{Oe.delete(e)&&(Le.delete(e),je.delete(e),Me("scope:unmount",e))}),Ve={scopes:Oe,exps:Le,names:je,stores:Te,components:Ne,getScopeByName(e){for(const[t,n]of je)if(n===e)return Oe.get(t)},getScope(e){let t=1===e.nodeType?e:e.parentElement;for(;t;){const e=Oe.get(t);if(e)return e;t=t.parentElement}},on:(e,t)=>(Re[e].add(t),()=>Re[e].delete(t)),off(e,t){Re[e].delete(t)}};"undefined"==typeof window||Ce()||(window.__LITE_VUE__=Ve);var We,Be=new WeakSet,ze=e=>{Be.add(e),function(e){e.effect.stop()}(e)},Ke=!1,De=[],Fe=Promise.resolve(),Ue=e=>Fe.then(e),qe=e=>{De.includes(e)||De.push(e),Ke||(Ke=!0,Ue(He))},He=()=>{for(const e of De)Be.has(e)||e();De.length=0,Ke=!1,Re.flush.size&&!Ce()&&Me("flush")},Je=/^(spellcheck|draggable|form|list|type)$/,Ze=({el:e,get:t,effect:n,arg:s,modifiers:r})=>{let i;"class"===s&&(e._class=e.className),n(()=>{let n=t();if(s)r?.camel&&(s=_(s)),Ge(e,s,n,i);else{for(const t in n)Ge(e,t,n[t],i&&i[t]);for(const t in i)n&&t in n||Ge(e,t,null)}i=n})},Ge=(e,t,n,s)=>{if("class"===t)e.setAttribute("class",j(e._class?[e._class,n]:n)||"");else if("style"===t){n=$(n);const{style:t}=e;if(n)if(a(n))n!==s&&(t.cssText=n);else{for(const e in n)Xe(t,e,n[e]);if(s&&!a(s))for(const e in s)null==n[e]&&Xe(t,e,"")}else e.removeAttribute("style")}else e instanceof SVGElement||!(t in e)||Je.test(t)?"true-value"===t?e._trueValue=n:"false-value"===t?e._falseValue=n:null!=n?e.setAttribute(t,n):e.removeAttribute(t):(e[t]=n,"value"===t&&(e._value=n))},Qe=/\s*!important$/,Xe=(e,t,n)=>{c(n)?n.forEach(n=>Xe(e,t,n)):t.startsWith("--")?e.setProperty(t,n):Qe.test(n)?e.setProperty(w(t),n.replace(Qe,""),"important"):e[t]=n},Ye=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,et=["ctrl","shift","alt","meta"],tt={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>et.some(n=>e[`${n}Key`]&&!t[n])},nt=/^(stop|prevent|self|ctrl|shift|alt|meta|left|middle|right|exact|once|capture|passive|window|document|outside|debounce(-\d+)?|throttle(-\d+)?|prop-.+|name-.+)$/,st=({el:e,get:t,exp:n,arg:s,modifiers:r})=>{if(!s)return;let i,o=Ye.test(n)?t(`(e => ${n}(e))`):t(`($event => { ${n} })`);if("mounted"===s||"vue:mounted"===s){let e=!0;return Ue(()=>{e&&o()}),()=>{e=!1}}if("unmounted"===s||"vue:unmounted"===s)return()=>o();if(r){"click"===s&&(r.right&&(s="contextmenu"),r.middle&&(s="mouseup"));let t=o;for(const e in r){let n=/^debounce(?:-(\d+))?$/.exec(e);if(n){const e=t,s=n[1]?+n[1]:250;t=t=>{clearTimeout(i),i=setTimeout(e,s,t)};continue}if(n=/^throttle(?:-(\d+))?$/.exec(e),n){const e=t,s=n[1]?+n[1]:250;let r=0;t=t=>{const n=Date.now();n-r>=s&&(r=n,e(t))}}}const n=Object.keys(r).filter(e=>!nt.test(e));o=s=>{if(!(r.outside&&e.contains(s.target)||"key"in s&&n.length&&!(w(s.key)in r))){for(const e in r){const t=tt[e];if(t&&t(s,r))return;if(e.startsWith("prop-")&&"propertyName"in s&&s.propertyName!==e.slice(5))return;if(e.startsWith("name-")&&"animationName"in s&&s.animationName!==e.slice(5))return}return t(s)}}}const c=r?.window?window:r?.document||r?.outside?document:e,l=s;return c.addEventListener(l,o,r),()=>{clearTimeout(i),c.removeEventListener(l,o,r)}},rt=({el:e,get:t,effect:n})=>{n(()=>{e.textContent=it(t())})},it=e=>null==e?"":p(e)?JSON.stringify(e,null,2):String(e),ot=(e,t)=>{const n=e.getAttribute(t);return null!=n&&e.removeAttribute(t),n},ct=e=>"_value"in e?e._value:e.value,lt=(e,t)=>{const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t},ut=e=>{e.target.composing=!0},at=e=>{const t=e.target;t.composing&&(t.composing=!1,ft(t,"input"))},ft=(e,t)=>{const n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)},pt=Object.create(null),dt=(e,t,n)=>ht(e,`return(${t})`,n),ht=(e,t,n)=>{const s=pt[t]||(pt[t]=mt(t));try{return s(e,n,n&&(e=>(t,n)=>e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0})))(n))}catch(r){console.error(r)}},mt=e=>{try{return new Function("$data","$el","$dispatch",`with($data){${e}}`)}catch(t){return console.error(`${t.message} in expression: ${e}`),()=>{}}},gt=new WeakMap,vt=e=>{const t=We;return We=e,t},_t=(e,t=We)=>{if(!t)return;const n=gt.get(t);n?n.push(e):gt.set(t,[e])},yt=e=>{const t=gt.get(e);if(t){gt.delete(e);for(const e of t)e()}let n=e.firstChild;for(;n;){const e=n.nextSibling;yt(n),n=e}},wt={bind:Ze,on:st,show:({el:e,get:t,effect:n})=>{const s=e.style.display;n(()=>{e.style.display=t()?s:"none"})},text:rt,html:({el:e,get:t,effect:n})=>{n(()=>{e.innerHTML=t()})},model:({el:e,exp:t,get:n,effect:s,modifiers:r})=>{const i=e.type,o=n(`(val) => { ${t} = val }`),{trim:l,number:u="number"===i,lazy:a,fill:f}=r||{},p=[],d=(t,n)=>p.push(((e,t,n,s)=>(e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)))(e,t,n));if("SELECT"===e.tagName){const t=e;d("change",()=>{const e=Array.prototype.filter.call(t.options,e=>e.selected).map(e=>u?S(ct(e)):ct(e));o(t.multiple?e:e[0])}),s(()=>{const e=n(),s=t.multiple;for(let n=0,r=t.options.length;n<r;n++){const r=t.options[n],i=ct(r);if(s)c(e)?r.selected=A(e,i)>-1:r.selected=e.has(i);else if(N(ct(r),e))return void(t.selectedIndex!==n&&(t.selectedIndex=n))}s||-1===t.selectedIndex||(t.selectedIndex=-1)})}else if("checkbox"===i){let t;d("change",()=>{const t=n(),s=e.checked;if(c(t)){const n=ct(e),r=A(t,n),i=-1!==r;if(s&&!i)o(t.concat(n));else if(!s&&i){const e=[...t];e.splice(r,1),o(e)}}else o(lt(e,s))}),s(()=>{const s=n();c(s)?e.checked=A(s,ct(e))>-1:s!==t&&(e.checked=N(s,lt(e,!0))),t=s})}else if("radio"===i){let t;d("change",()=>{o(ct(e))}),s(()=>{const s=n();s!==t&&(e.checked=N(s,ct(e)))})}else{const t=e=>l?e.trim():u?S(e):e;let i,c=o;for(const e in r||{}){const t=/^debounce(?:-(\d+))?$/.exec(e);if(t){const e=t[1]?+t[1]:250;c=t=>{clearTimeout(i),i=setTimeout(o,e,t)},p.push(()=>clearTimeout(i))}}if(d("compositionstart",ut),d("compositionend",at),d(a?"change":"input",()=>{e.composing||c(t(e.value))}),l&&d("change",()=>{e.value=e.value.trim()}),f){const s=n();null!=s&&""!==s||!e.value||o(t(e.value))}s(()=>{if(e.composing)return;const s=e.value,r=n();document.activeElement===e&&t(s)===r||s!==r&&(e.value=r)})}return()=>p.forEach(e=>e())},effect:({el:e,ctx:t,exp:n,effect:s})=>{let r=!0;return Ue(()=>{if(!r)return;const i=vt(e);try{s(()=>ht(t.scope,n,e))}finally{vt(i)}}),()=>{r=!1}}},bt=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,xt=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,St=/^\(|\)$/g,$t=/^[{[]\s*((?:[\w_$]+\s*,?\s*)+)[\]}]$/,kt=(e,t,n)=>{const s=t.match(bt);if(!s)return;const r=e.nextSibling,i=e.parentElement,o=new Text("");i.insertBefore(o,e),i.removeChild(e),vt(o);const l=s[2].trim();let u,a,f,d,h=s[1].trim().replace(St,"").trim(),m=!1,g="key",v=e.getAttribute(g)||e.getAttribute(g=":key")||e.getAttribute(g="v-bind:key");v&&(e.removeAttribute(g),"key"===g&&(v=JSON.stringify(v))),(d=h.match(xt))&&(h=h.replace(xt,"").trim(),a=d[1].trim(),d[2]&&(f=d[2].trim())),(d=h.match($t))&&(u=d[1].split(",").map(e=>e.trim()),m="["===h[0]);let _,y,w,b=!1;const x=(e,t,s,r)=>{const i={};u?u.forEach((e,n)=>i[e]=t[m?n:e]):i[h]=t,r?(a&&(i[a]=r),f&&(i[f]=s)):a&&(i[a]=s);const o=Vt(n,i),c=v?dt(o.scope,v):s;return e.set(c,s),o.key=c,o},S=(t,n)=>{const s=new Bt(e,t);return s.key=t.key,s.insert(i,n),s};return n.effect(()=>{const e=dt(n.scope,l),t=w;if([y,w]=(e=>{const t=new Map,n=[];if(c(e))for(let s=0;s<e.length;s++)n.push(x(t,e[s],s));else if("number"==typeof e)for(let s=0;s<e;s++)n.push(x(t,s+1,s));else if(p(e)){let s=0;for(const r in e)n.push(x(t,e[r],s++,r))}return[n,t]})(e),b){for(let t=0;t<_.length;t++)w.has(_[t].key)||_[t].remove();const e=[];let n,s,r=y.length;for(;r--;){const c=y[r],l=t.get(c.key);let u;null==l?u=S(c,n?n.el:o):(u=_[l],Object.assign(u.ctx.scope,c.scope),l!==r&&(_[l+1]===n&&s!==n||(s=u,u.insert(i,n?n.el:o)))),e.unshift(n=u)}_=e}else _=y.map(e=>S(e,o)),b=!0}),r},Et=({el:e,ctx:{scope:{$refs:t}},get:n,effect:s})=>{let r;return s(()=>{const s=n();t[s]=e,r&&s!==r&&delete t[r],r=s}),()=>{r&&delete t[r]}},Ot=/^(?:v-|:|@)/,Lt=/\.([\w-]+)/g,jt=!1,Tt=(e,t)=>{e.cleanups.push(t),_t(()=>{const n=e.cleanups.indexOf(t);n>-1&&(e.cleanups.splice(n,1),t())})},Nt=(e,t)=>{const n=vt(e);try{return At(e,t)}finally{vt(n)}},At=(e,t)=>{const n=e.nodeType;if(1===n){const n=e;if(n.hasAttribute("v-pre"))return;let s;if(ot(n,"v-cloak"),s=ot(n,"v-if"))return((e,t,n)=>{const s=e.parentElement,r=new Comment("v-if");s.insertBefore(r,e);const i=[{exp:t,el:e}];let o,c;for(;(o=e.nextElementSibling)&&(c=null,""===ot(o,"v-else")||(c=ot(o,"v-else-if")));)s.removeChild(o),i.push({exp:c,el:o});const l=e.nextSibling;let u;s.removeChild(e),vt(r);let a=-1;const f=()=>{u&&(u.el.parentNode===s&&s.insertBefore(r,u.el),u.remove(),u=void 0)};let p;const d=()=>ze(p);return p=n.effect(()=>{for(let e=0;e<i.length;e++){const{exp:t,el:o}=i[e];if(!t||dt(n.scope,t))return void(e!==a&&(f(),u=new Bt(o,n),u.insert(s,r),_t(d,u.el),u.el.parentNode===s&&s.removeChild(r),a=e))}a=-1,f()}),_t(d,r),l})(n,s,t);if(s=ot(n,"v-for"))return kt(n,s,t);const r=ot(n,"v-name");let i;if(s=ot(n,"v-teleport")){const e=document.querySelector(s);e&&(i=n.nextSibling,n.__teleported=!0,e.appendChild(n),t.cleanups.push(()=>n.remove()))}if((s=ot(n,"v-scope"))||""===s){const e=s?dt(t.scope,s):{};t=Vt(t,e),n.__ctx=t,Tt(t,Ie(n,t.scope,s||void 0,r||void 0)),e.$template&&Pt(n,e.$template)}const o=null!=ot(n,"v-once");o&&(jt=!0),(s=ot(n,"ref"))&&Mt(n,Et,`"${s}"`,t),Ct(n,t);const c=[];for(const{name:e,value:l}of[...n.attributes])Ot.test(e)&&"v-cloak"!==e&&("v-model"===e?c.unshift([e,l]):"@"===e[0]||/^v-on\b/.test(e)?c.push([e,l]):Rt(n,e,l,t));for(const[e,l]of c)Rt(n,e,l,t);return o&&(jt=!1),i}if(3===n){const n=e.data;if(n.includes(t.delimiters[0])){let s,r=[],i=0;for(;s=t.delimitersRE.exec(n);){const e=n.slice(i,s.index);e&&r.push(JSON.stringify(e)),r.push(`$s(${s[1]})`),i=s.index+s[0].length}i<n.length&&r.push(JSON.stringify(n.slice(i))),Mt(e,rt,r.join("+"),t)}}else 11===n&&Ct(e,t)},Ct=(e,t)=>{let n=e.firstChild;for(;n;)n=Nt(n,t)||n.nextSibling},Rt=(e,t,n,s)=>{let r,i,o;if(":"===(t=t.replace(Lt,(e,t)=>((o||(o={}))[t]=!0,"")))[0])r=Ze,i=t.slice(1);else if("@"===t[0])r=st,i=t.slice(1);else{const e=t.indexOf(":"),n=e>0?t.slice(2,e):t.slice(2);r=wt[n]||s.dirs[n],i=e>0?t.slice(e+1):void 0}r&&(r===Ze&&"ref"===i&&(r=Et),Mt(e,r,n,s,i,o),e.removeAttribute(t))},Mt=(e,t,n,s,r,i)=>{const o=t({el:e,get:(t=n)=>dt(s.scope,t,e),effect:s.effect,ctx:s,exp:n,arg:r,modifiers:i});o&&Tt(s,o)},Pt=(e,t)=>{if("#"===t[0]){const n=document.querySelector(t);return void e.appendChild(n.content.cloneNode(!0))}e.innerHTML=t},It=e=>{const t={delimiters:["{{","}}"],delimitersRE:/\{\{([^]+?)\}\}/g,...e,scope:e?e.scope:ve({}),dirs:e?e.dirs:{},effects:[],blocks:[],cleanups:[],effect:e=>{if(jt)return qe(e),e;const n=W(e,{scheduler:()=>qe(n)});return t.effects.push(n),_t(()=>{ze(n),r(t.effects,n)}),n}};return t},Vt=(e,t={})=>{const n=e.scope,s=Object.create(n);Object.defineProperties(s,Object.getOwnPropertyDescriptors(t)),s.$refs=Object.create(n.$refs);const r=ve(new Proxy(s,{set:(e,t,s,i)=>i!==r||o(e,t)?Reflect.set(e,t,s,i):Reflect.set(n,t,s)})),i={...e,scope:r};return s.$watch=Ee(i),s.$id=ke(),Wt(r),i},Wt=e=>{for(const t of Object.keys(e))"function"==typeof e[t]&&(e[t]=e[t].bind(e))},Bt=class{template;ctx;key;parentCtx;isFragment;start;end;owned=!1;get el(){return this.start||this.template}constructor(e,t,n=!1){this.isFragment=e instanceof HTMLTemplateElement,n?this.template=e:this.isFragment?this.template=e.content.cloneNode(!0):this.template=e.cloneNode(!0),n||(this.parentCtx=t,t.blocks.push(this)),this.ctx=It(t),Nt(this.template,this.ctx)}insert(e,t=null){if(this.isFragment)if(this.start){let n,s=this.start;for(;s&&(n=s.nextSibling,e.insertBefore(s,t),s!==this.end);)s=n}else this.start=new Text(""),this.end=new Text(""),e.insertBefore(this.end,t),e.insertBefore(this.start,this.end),e.insertBefore(this.template,this.end);else this.template.__teleported||e.insertBefore(this.template,t);this.owned||(this.owned=!0,_t(()=>this.discard(),this.el))}remove(){this.parentCtx&&r(this.parentCtx.blocks,this);const e=()=>{const e=this.start?this.start.parentNode:this.template.parentNode;if(e)if(this.start){let t,n=this.start;for(;n&&(t=n.nextSibling,e.removeChild(n),n!==this.end);)n=t}else e.removeChild(this.template);this.teardown()},t=this.isFragment?void 0:this.template.__leave;t?t().then(e):e()}discard(){this.parentCtx&&r(this.parentCtx.blocks,this),this.teardown()}teardown(){this.ctx.blocks.splice(0).forEach(e=>{e.teardown()}),this.ctx.effects.splice(0).forEach(ze),this.ctx.cleanups.splice(0).forEach(e=>e())}},zt=ve(Object.create(null)),Kt=e=>e.replace(/[-.*+?^${}()|[\]\/\\]/g,"\\$&"),Dt=e=>{const t=It();if("function"==typeof e&&(e=e()),e&&(t.scope=ve(e),Wt(t.scope),e.$delimiters)){const[n,s]=t.delimiters=e.$delimiters;t.delimitersRE=new RegExp(Kt(n)+"([^]+?)"+Kt(s),"g")}t.scope.$s=it,t.scope.$nextTick=Ue,t.scope.$refs=Object.create(null),t.scope.$store=zt,t.scope.$watch=Ee(t),t.scope.$id=ke(),Object.defineProperty(t.scope,"$root",{value:t.scope,enumerable:!1});const n=Object.create(null);let s=[];const r=new Set,i=[],o={get scope(){return t.scope},directive(e,n){return n?(t.dirs[e]=n,this):t.dirs[e]},component(e,s){return s?(!(e in n)&&e in t.scope||(n[e]=s,(e=>{Ce()||Ne.add(e)})(e),t.scope[e]=s),this):n[e]},use(e,t){if(!r.has(e)){r.add(e);const n=("function"==typeof e?e:e.install)(o,t);"function"==typeof n&&i.push(n)}return o},mount(e){if("string"==typeof e&&!(e=document.querySelector(e)))return;let n;n=(e=e||document.documentElement).hasAttribute("v-scope")?[e]:[...e.querySelectorAll("[v-scope]")].filter(e=>!e.matches("[v-scope] [v-scope]")),n.length||(n=[e]),t.walk??=Nt,t.dispose??=yt;for(const r of n){const e=r.getAttribute("v-name"),n=new Bt(r,t,!0);r.__ctx??=n.ctx,Ve.scopes.has(r)||n.ctx.cleanups.push(Ie(r,n.ctx.scope,void 0,e||void 0)),s.push(n)}return this},unmount(e){if(null==e)return s.forEach(e=>e.teardown()),s=[],i.splice(0).forEach(e=>{try{e()}catch(t){}}),void r.clear();const t="string"==typeof e?document.querySelector(e):e;if(!t)return;const n=[];for(const r of s){const e=r.template;t.contains(e)?r.teardown():n.push(r)}s=n}};return o},Ft=document.currentScript;Ft&&Ft.hasAttribute("init")&&Dt().mount(),e.computed=function(e,t,s=!1){let r,i;const o="function"==typeof e;return o?(r=e,i=n):(r=e.get,i=e.set),new be(r,i,o||!i,s)},e.createApp=Dt,e.devtools=Ve,e.disableDevtools=()=>{Ae=!0,Oe.clear(),Le.clear(),je.clear(),Te.clear(),Ne.clear();for(const e in Re)Re[e].clear();"undefined"!=typeof window&&window.__LITE_VUE__===Ve&&delete window.__LITE_VUE__},e.nextTick=Ue,e.reactive=ve,e.store=(e,t)=>(void 0!==t&&(zt[e]=t,"function"==typeof zt[e].init&&zt[e].init(),((e,t)=>{Ce()||(Te.set(e,t),Me("store:register",e,t))})(e,zt[e])),zt[e]),e.watchEffect=e=>{let t;return t=W(e,{scheduler:()=>qe(t)}),()=>ze(t)}});
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).LiteVue={})}(this,function(e){function t(e,t){const n=new Set(e.split(","));return t?e=>n.has(e.toLowerCase()):e=>n.has(e)}Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});var n=()=>{},s=Object.assign,r=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},o=Object.prototype.hasOwnProperty,i=(e,t)=>o.call(e,t),c=Array.isArray,l=e=>"[object Map]"===h(e),u=e=>"[object Date]"===h(e),a=e=>"string"==typeof e,f=e=>"symbol"==typeof e,p=e=>null!==e&&"object"==typeof e,d=Object.prototype.toString,h=e=>d.call(e),m=e=>a(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,v=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},g=/-(\w)/g,y=v(e=>e.replace(g,(e,t)=>t?t.toUpperCase():"")),_=/\B([A-Z])/g,b=v(e=>e.replace(_,"-$1").toLowerCase()),w=v(e=>e.charAt(0).toUpperCase()+e.slice(1)),x=(v(e=>e?`on${w(e)}`:""),(e,t)=>!Object.is(e,t)),$=e=>{const t=a(e)?Number(e):NaN;return isNaN(t)?e:t};function k(e){if(c(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=a(s)?L(s):k(s);if(r)for(const e in r)t[e]=r[e]}return t}if(a(e)||p(e))return e}var S=/;(?![^(]*\))/g,O=/:([^]+)/,E=/\/\*[^]*?\*\//g;function L(e){const t={};return e.replace(E,"").split(S).forEach(e=>{if(e){const n=e.split(O);n.length>1&&(t[n[0].trim()]=n[1].trim())}}),t}function j(e){let t="";if(a(e))t=e;else if(c(e))for(let n=0;n<e.length;n++){const s=j(e[n]);s&&(t+=s+" ")}else if(p(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}var T;function A(e,t){if(e===t)return!0;let n=u(e),s=u(t);if(n||s)return!(!n||!s)&&e.getTime()===t.getTime();if(n=f(e),s=f(t),n||s)return e===t;if(n=c(e),s=c(t),n||s)return!(!n||!s)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=A(e[s],t[s]);return n}(e,t);if(n=p(e),s=p(t),n||s){if(!n||!s)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const s=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(s&&!r||!s&&r||!A(e[n],t[n]))return!1}}return String(e)===String(t)}function N(e,t){return e.findIndex(e=>A(e,t))}function P(e,t=void 0){t&&t.active&&t.effects.push(e)}var R=class{constructor(e,t,n,s){this.fn=e,this.trigger=t,this.scheduler=n,this.active=!0,this.deps=[],this._dirtyLevel=4,this._trackId=0,this._runnings=0,this._shouldSchedule=!1,this._depsLength=0,P(this,s)}get dirty(){if(2===this._dirtyLevel||3===this._dirtyLevel){this._dirtyLevel=1,F();for(let e=0;e<this._depsLength;e++){const t=this.deps[e];if(t.computed&&(I(t.computed),this._dirtyLevel>=4))break}1===this._dirtyLevel&&(this._dirtyLevel=0),K()}return this._dirtyLevel>=4}set dirty(e){this._dirtyLevel=e?4:0}run(){if(this._dirtyLevel=0,!this.active)return this.fn();let e=z,t=T;try{return z=!0,T=this,this._runnings++,C(this),this.fn()}finally{M(this),this._runnings--,T=t,z=e}}stop(){this.active&&(C(this),M(this),this.onStop&&this.onStop(),this.active=!1)}};function I(e){return e.value}function C(e){e._trackId++,e._depsLength=0}function M(e){if(e.deps.length>e._depsLength){for(let t=e._depsLength;t<e.deps.length;t++)V(e.deps[t],e);e.deps.length=e._depsLength}}function V(e,t){const n=e.get(t);void 0!==n&&t._trackId!==n&&(e.delete(t),0===e.size&&e.cleanup())}function W(e,t){e.effect instanceof R&&(e=e.effect.fn);const r=new R(e,n,()=>{r.dirty&&r.run()});t&&(s(r,t),t.scope&&P(r,t.scope)),t&&t.lazy||r.run();const o=r.run.bind(r);return o.effect=r,o}var z=!0,B=0,D=[];function F(){D.push(z),z=!1}function K(){const e=D.pop();z=void 0===e||e}function q(){B++}function U(){for(B--;!B&&J.length;)J.shift()()}function H(e,t,n){if(t.get(e)!==e._trackId){t.set(e,e._trackId);const n=e.deps[e._depsLength];n!==t?(n&&V(n,e),e.deps[e._depsLength++]=t):e._depsLength++}}var J=[];function Z(e,t,n){q();for(const s of e.keys()){let n;s._dirtyLevel<t&&(null!=n?n:n=e.get(s)===s._trackId)&&(s._shouldSchedule||(s._shouldSchedule=0===s._dirtyLevel),s._dirtyLevel=t),s._shouldSchedule&&(null!=n?n:n=e.get(s)===s._trackId)&&(s.trigger(),s._runnings&&!s.allowRecurse||2===s._dirtyLevel||(s._shouldSchedule=!1,s.scheduler&&J.push(s.scheduler)))}U()}var G=(e,t)=>{const n=new Map;return n.cleanup=e,n.computed=t,n},Q=new WeakMap,X=Symbol(""),Y=Symbol("");function ee(e,t,n){if(z&&T){let t=Q.get(e);t||Q.set(e,t=new Map);let s=t.get(n);s||t.set(n,s=G(()=>t.delete(n))),H(T,s)}}function te(e,t,n,s,r,o){const i=Q.get(e);if(!i)return;let u=[];if("clear"===t)u=[...i.values()];else if("length"===n&&c(e)){const e=Number(s);i.forEach((t,n)=>{("length"===n||!f(n)&&n>=e)&&u.push(t)})}else switch(void 0!==n&&u.push(i.get(n)),t){case"add":c(e)?m(n)&&u.push(i.get("length")):(u.push(i.get(X)),l(e)&&u.push(i.get(Y)));break;case"delete":c(e)||(u.push(i.get(X)),l(e)&&u.push(i.get(Y)));break;case"set":l(e)&&u.push(i.get(X))}q();for(const c of u)c&&Z(c,4);U()}var ne=t("__proto__,__v_isRef,__isVue"),se=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>"arguments"!==e&&"caller"!==e).map(e=>Symbol[e]).filter(f)),re=oe();function oe(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...e){const n=be(this);for(let t=0,r=this.length;t<r;t++)ee(n,0,t+"");const s=n[t](...e);return-1===s||!1===s?n[t](...e.map(be)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...e){F(),q();const n=be(this)[t].apply(this,e);return U(),K(),n}}),e}function ie(e){f(e)||(e=String(e));const t=be(this);return ee(t,0,e),t.hasOwnProperty(e)}var ce=class{constructor(e=!1,t=!1){this._isReadonly=e,this._isShallow=t}get(e,t,n){const s=this._isReadonly,r=this._isShallow;if("__v_isReactive"===t)return!s;if("__v_isReadonly"===t)return s;if("__v_isShallow"===t)return r;if("__v_raw"===t)return n===(s?r?me:he:r?de:pe).get(e)||Object.getPrototypeOf(e)===Object.getPrototypeOf(n)?e:void 0;const o=c(e);if(!s){if(o&&i(re,t))return Reflect.get(re,t,n);if("hasOwnProperty"===t)return ie}const l=Reflect.get(e,t,n);return(f(t)?se.has(t):ne(t))?l:(s||ee(e,0,t),r?l:$e(l)?o&&m(t)?l:l.value:p(l)?s?function(e){return ye(e,!0,fe,null,he)}(l):ge(l):l)}},le=class extends ce{constructor(e=!1){super(!1,e)}set(e,t,n,s){let r=e[t];if(!this._isShallow){const t=_e(r);if(function(e){return!(!e||!e.__v_isShallow)}(n)||_e(n)||(r=be(r),n=be(n)),!c(e)&&$e(r)&&!$e(n))return!t&&(r.value=n,!0)}const o=c(e)&&m(t)?Number(t)<e.length:i(e,t),l=Reflect.set(e,t,n,s);return e===be(s)&&(o?x(n,r)&&te(e,"set",t,n):te(e,"add",t,n)),l}deleteProperty(e,t){const n=i(e,t),s=(e[t],Reflect.deleteProperty(e,t));return s&&n&&te(e,"delete",t,void 0),s}has(e,t){const n=Reflect.has(e,t);return f(t)&&se.has(t)||ee(e,0,t),n}ownKeys(e){return ee(e,0,c(e)?"length":X),Reflect.ownKeys(e)}},ue=class extends ce{constructor(e=!1){super(!0,e)}set(e,t){return!0}deleteProperty(e,t){return!0}},ae=new le,fe=new ue,pe=new WeakMap,de=new WeakMap,he=new WeakMap,me=new WeakMap;function ve(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;default:return 0}}((e=>h(e).slice(8,-1))(e))}function ge(e){return _e(e)?e:ye(e,!1,ae,null,pe)}function ye(e,t,n,s,r){if(!p(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const o=r.get(e);if(o)return o;const i=ve(e);if(0===i)return e;const c=new Proxy(e,2===i?s:n);return r.set(e,c),c}function _e(e){return!(!e||!e.__v_isReadonly)}function be(e){const t=e&&e.__v_raw;return t?be(t):e}var we=class{constructor(e,t,n,s){this.getter=e,this._setter=t,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this.effect=new R(()=>e(this._value),()=>xe(this,2===this.effect._dirtyLevel?2:3)),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=n}get value(){const e=be(this);var t,n;return e._cacheable&&!e.effect.dirty||!x(e._value,e._value=e.effect.run())||xe(e,4),t=e,z&&T&&(t=be(t),H(T,null!=(n=t.dep)?n:t.dep=G(()=>t.dep=void 0,t instanceof we?t:void 0))),e.effect._dirtyLevel>=2&&xe(e,2),e._value}set value(e){this._setter(e)}get _dirty(){return this.effect.dirty}set _dirty(e){this.effect.dirty=e}};function xe(e,t=4,n,s){const r=(e=be(e)).dep;r&&Z(r,t)}function $e(e){return!(!e||!0!==e.__v_isRef)}var ke=0,Se=()=>{const e=Object.create(null);return(t="id")=>e[t]||(e[t]=`${t}-${++ke}`)},Oe=e=>(t,n)=>{const s="function"==typeof t?t:()=>t.split(".").reduce((e,t)=>null==e?e:e[t],e.scope);let r,o=!1;e.effect(()=>{const e=s(),t=r;if(r=e,o&&e!==t){F();try{n(e,t)}finally{K()}}o=!0})},Ee=new Map,Le=new Map,je=new Map,Te=new Map,Ae=new Set,Ne=!1,Pe=()=>Ne||"undefined"!=typeof window&&!1===window.__LITE_VUE_DEVTOOLS__,Re={"scope:mount":new Set,"scope:unmount":new Set,"store:register":new Set,flush:new Set},Ie=(e,...t)=>{Re[e].forEach(e=>e(...t))},Ce=()=>{},Me=(e,t,n,s)=>Pe()?Ce:(Ee.set(e,t),n&&Le.set(e,n),s&&je.set(e,s),Ie("scope:mount",e,t),()=>{Ee.delete(e)&&(Le.delete(e),je.delete(e),Ie("scope:unmount",e))}),Ve={scopes:Ee,exps:Le,names:je,stores:Te,components:Ae,getScopeByName(e){for(const[t,n]of je)if(n===e)return Ee.get(t)},getScope(e){let t=1===e.nodeType?e:e.parentElement;for(;t;){const e=Ee.get(t);if(e)return e;t=t.parentElement}},on:(e,t)=>(Re[e].add(t),()=>Re[e].delete(t)),off(e,t){Re[e].delete(t)}};"undefined"==typeof window||Pe()||(window.__LITE_VUE__=Ve);var We,ze=[],Be=(e,t)=>{for(const s of ze)try{s(e,t)}catch(n){}ze.length||console.error(e)},De=new WeakSet,Fe=e=>{De.add(e),function(e){e.effect.stop()}(e)},Ke=!1,qe=[],Ue=Promise.resolve(),He=-1,Je=e=>Ue.then(e),Ze=e=>{qe.includes(e,He+1)||qe.push(e),Ke||(Ke=!0,Je(Ge))},Ge=()=>{const e=new Map;for(He=0;He<qe.length;He++){const n=qe[He];if(De.has(n))continue;const s=(e.get(n)||0)+1;if(e.set(n,s),s>100)Be(Error("update loop"),{phase:"effect"});else try{n()}catch(t){Be(t,{phase:"effect"})}}qe.length=0,He=-1,Ke=!1,Re.flush.size&&!Pe()&&Ie("flush")},Qe=/^(spellcheck|draggable|form|list|type)$/,Xe=({el:e,get:t,effect:n,arg:s,modifiers:r})=>{let o;"class"===s&&(e._class=e.getAttribute("class")),n(()=>{let n=t();if(s)r?.camel&&(s=y(s)),Ye(e,s,n,o);else{for(const t in n)Ye(e,t,n[t],o&&o[t]);for(const t in o)n&&t in n||Ye(e,t,null)}o="[object Object]"===h(n)?{...n}:n})},Ye=(e,t,n,s)=>{if("class"===t)e.setAttribute("class",j(e._class?[e._class,n]:n)||"");else if("style"===t){n=k(n);const{style:t}=e;if(n)if(a(n))n!==s&&(t.cssText=n);else{for(const e in n)tt(t,e,n[e]);if(s&&!a(s))for(const e in s)null==n[e]&&tt(t,e,"")}else e.removeAttribute("style")}else e instanceof SVGElement||!(t in e)||Qe.test(t)?"true-value"===t?e._trueValue=n:"false-value"===t?e._falseValue=n:null!=n?e.setAttribute(t,n):e.removeAttribute(t):(e[t]=null==n&&"string"==typeof e[t]?"":n,null==n&&e.removeAttribute(t),"value"===t&&(e._value=n))},et=/\s*!important$/,tt=(e,t,n)=>{c(n)?n.forEach(n=>tt(e,t,n)):t.startsWith("--")?e.setProperty(t,n):et.test(n)?e.setProperty(b(t),n.replace(et,""),"important"):e[t]=n},nt=Object.create(null),st=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,rt=["ctrl","shift","alt","meta"],ot={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>rt.some(n=>e[`${n}Key`]&&!t[n])},it={esc:"escape",space:" ",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",delete:"backspace"},ct=/^(stop|prevent|self|ctrl|shift|alt|meta|left|middle|right|exact|once|capture|passive|window|document|outside|debounce(-\d+)?|throttle(-\d+)?|prop-.+|name-.+)$/,lt=({el:e,get:t,ctx:n,exp:s,arg:r,modifiers:o})=>{if(!r)return;const i=st.test(s)?t(`(e => ${s}(e))`):(e=>{const t=nt[e];if(void 0!==t)return t;try{return new Function(`return (${e})`),nt[e]=!0}catch{return nt[e]=!1}})(s)?t(`($event => (${s}))`):t(`($event => { ${s} })`);let c,l=(...e)=>{try{const t=i(...e);return t instanceof Promise&&t.catch(u),t}catch(t){u(t)}};function u(t){Be(t,{phase:"handler",source:`@${r}`,expression:s,el:e,scope:n.scope})}if("mounted"===r||"vue:mounted"===r){let e=!0;return Je(()=>{e&&l()}),()=>{e=!1}}if("unmounted"===r||"vue:unmounted"===r)return()=>l();if(o){"click"===r&&(o.right&&(r="contextmenu"),o.middle&&(r="mouseup"));let t=l;for(const e in o){let n=/^debounce(?:-(\d+))?$/.exec(e);if(n){const e=t,s=n[1]?+n[1]:250;t=t=>{clearTimeout(c),c=setTimeout(e,s,t)};continue}if(n=/^throttle(?:-(\d+))?$/.exec(e),n){const e=t,s=n[1]?+n[1]:250;let r=0;t=t=>{const n=Date.now();n-r>=s&&(r=n,e(t))}}}const n=Object.keys(o).filter(e=>!ct.test(e)||e in it);l=s=>{if(!o.outside||!e.contains(s.target)){if("key"in s&&n.length){const e=b(s.key);if(!n.some(t=>t===e||it[t]===e))return}for(const e in o){const t=ot[e];if(t&&t(s,o))return;if(e.startsWith("prop-")&&"propertyName"in s&&s.propertyName!==e.slice(5))return;if(e.startsWith("name-")&&"animationName"in s&&s.animationName!==e.slice(5))return}return t(s)}}}const a=o?.window?window:o?.document||o?.outside?document:e,f=r;return a.addEventListener(f,l,o),()=>{clearTimeout(c),a.removeEventListener(f,l,o)}},ut=({el:e,get:t,effect:n})=>{n(()=>{e.textContent=at(t())})},at=e=>null==e?"":p(e)?JSON.stringify(e,null,2):String(e),ft=(e,t)=>{const n=e.getAttribute(t);return null!=n&&e.removeAttribute(t),n},pt=e=>"_value"in e?e._value:e.value,dt=(e,t)=>{const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t},ht=e=>{e.target.composing=!0},mt=e=>{const t=e.target;t.composing&&(t.composing=!1,vt(t,"input"))},vt=(e,t)=>{const n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)},gt=Object.create(null),yt=e=>e.replace(/^return\(([^]*)\)$/,"$1"),_t=(e,t,n,s)=>bt(e,`return(${t})`,n,s),bt=(e,t,n,s)=>{const r=gt[t]||(gt[t]=wt(t,n,s));try{return r(e,n,n&&(e=>(t,n)=>e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0})))(n))}catch(o){Be(o,{phase:"expression",expression:s?.expression??yt(t),source:s?.source,el:s?.el??n,scope:e})}},wt=(e,t,n)=>{try{return new Function("$data","$el","$dispatch",`with($data){${e}}`)}catch(s){return Be(s,{phase:"compile",expression:n?.expression??yt(e),source:n?.source,el:n?.el??t}),()=>{}}},xt=new WeakMap,$t=e=>{const t=We;return We=e,t},kt=(e,t=We)=>{if(!t)return;const n=xt.get(t);n?n.push(e):xt.set(t,[e])},St=e=>{const t=xt.get(e);if(t){xt.delete(e);for(const e of t)e()}let n=e.firstChild;for(;n;){const e=n.nextSibling;St(n),n=e}},Ot={bind:Xe,on:lt,show:({el:e,get:t,effect:n})=>{const s=e.style.display;n(()=>{e.style.display=t()?s:"none"})},text:ut,html:({el:e,get:t,effect:n})=>{n(()=>{e.innerHTML=t()??""})},model:({el:e,exp:t,get:n,effect:s,modifiers:r})=>{const o=e.type,i=n(`(val) => { ${t} = val }`),{trim:l,number:u="number"===o,lazy:a,fill:f}=r||{},p=[],d=(t,n)=>p.push(((e,t,n,s)=>(e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)))(e,t,n));if("SELECT"===e.tagName){const t=e;d("change",()=>{const e=Array.prototype.filter.call(t.options,e=>e.selected).map(e=>u?$(pt(e)):pt(e));i(t.multiple?e:e[0])}),s(()=>{const e=n(),s=t.multiple;for(let n=0,r=t.options.length;n<r;n++){const r=t.options[n],o=pt(r);if(s)r.selected=c(e)&&N(e,o)>-1;else if(A(pt(r),e))return void(t.selectedIndex!==n&&(t.selectedIndex=n))}s||-1===t.selectedIndex||(t.selectedIndex=-1)})}else if("checkbox"===o)d("change",()=>{const t=n(),s=e.checked;if(c(t)){const n=pt(e),r=N(t,n),o=-1!==r;if(s&&!o)i(t.concat(n));else if(!s&&o){const e=[...t];e.splice(r,1),i(e)}}else i(dt(e,s))}),s(()=>{const t=n();c(t)?e.checked=N(t,pt(e))>-1:e.checked=A(t,dt(e,!0))});else if("radio"===o)d("change",()=>{i(pt(e))}),s(()=>{e.checked=A(n(),pt(e))});else{const t=e=>(l&&(e=e.trim()),u?$(e):e);let o,c=i;for(const e in r||{}){const t=/^debounce(?:-(\d+))?$/.exec(e);if(t){const e=t[1]?+t[1]:250;c=t=>{clearTimeout(o),o=setTimeout(i,e,t)},p.push(()=>clearTimeout(o))}}if(d("compositionstart",ht),d("compositionend",mt),d(a?"change":"input",()=>{e.composing||c(t(e.value))}),l&&d("change",()=>{e.value=e.value.trim()}),f){const s=n();null!=s&&""!==s||!e.value||i(t(e.value))}s(()=>{if(e.composing)return;const s=e.value,r=n();document.activeElement===e&&t(s)===r||s!==r&&(e.value=r)})}return()=>p.forEach(e=>e())},effect:({el:e,ctx:t,exp:n,effect:s})=>{let r=!0;return Je(()=>{if(!r)return;const o=$t(e);try{s(()=>bt(t.scope,n,e,{source:"v-effect",el:e}))}finally{$t(o)}}),()=>{r=!1}}},Et=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Lt=/,([^,}\]]*)(?:,([^,}\]]*))?$/,jt=/^\(|\)$/g,Tt=/^[{[]\s*((?:[\w_$]+\s*,?\s*)+)[\]}]$/,At=(e,t,n)=>{const s=t.match(Et);if(!s)return;const r=e.nextSibling,o=new Text("");e.replaceWith(o);const i=()=>o.parentNode;$t(o);const l=s[2].trim();let u,a,f,d,h=s[1].trim().replace(jt,"").trim(),m=!1,v="key",g=e.getAttribute(v)||e.getAttribute(v=":key")||e.getAttribute(v="v-bind:key");g&&(e.removeAttribute(v),"key"===v&&(g=JSON.stringify(g))),(d=h.match(Lt))&&(h=h.replace(Lt,"").trim(),a=d[1].trim(),d[2]&&(f=d[2].trim())),(d=h.match(Tt))&&(u=d[1].split(",").map(e=>e.trim()),m="["===h[0]);let y,_,b,w=!1;const x=(t,s,r,o)=>{const i={};u?u.forEach((e,t)=>i[e]=s[m?t:e]):i[h]=s,o?(a&&(i[a]=o),f&&(i[f]=r)):a&&(i[a]=r);const c=Gt(n,i),l=g?_t(c.scope,g,e,{source:":key",el:e}):r;return t.set(l,r),c.key=l,c},$=(t,n)=>{const s=new Xt(e,t);return s.key=t.key,s.insert(i(),n),s};return n.effect(()=>{const t=_t(n.scope,l,e,{source:"v-for",el:e}),s=b;if([_,b]=(e=>{const t=new Map,n=[];if(c(e))for(let s=0;s<e.length;s++)n.push(x(t,e[s],s));else if("number"==typeof e)for(let s=0;s<e;s++)n.push(x(t,s+1,s));else if(p(e)){let s=0;for(const r in e)n.push(x(t,e[r],s++,r))}return[n,t]})(t),w){for(let s=0;s<y.length;s++)b.has(y[s].key)||y[s].remove();const e=[];let t,n,r=_.length;for(;r--;){const c=_[r],l=s.get(c.key);let u;null==l?u=$(c,t?t.el:o):(u=y[l],Object.assign(u.ctx.scope,c.scope),l!==r&&(y[l+1]===t&&n!==t||(n=u,u.insert(i(),t?t.el:o)))),e.unshift(t=u)}y=e}else y=_.map(e=>$(e,o)),w=!0}),r},Nt=({el:e,ctx:{scope:{$refs:t}},get:n,effect:s})=>{let r;return s(()=>{const s=n();t[s]=e,r&&s!==r&&delete t[r],r=s}),()=>{r&&delete t[r]}},Pt=["visible","idle","interaction"],Rt=["[v-scope]",...Pt.map(e=>`[v-scope\\.${e}]`)].join(","),It=["pointerdown","keydown","focusin"],Ct=(e,t,n,s)=>{const r=Pt.find(t=>e.hasAttribute(`v-scope.${t}`));if(!r)return!1;const o=`v-scope.${r}`,i=((e,t,n)=>{let s=!1;const r=()=>{s||(s=!0,o(),n())};let o=()=>{};if("visible"===t&&"function"==typeof IntersectionObserver){const t=new IntersectionObserver(e=>{e.some(e=>e.isIntersecting)&&r()});t.observe(e),o=()=>t.disconnect()}else if("interaction"!==t){const e=window.requestIdleCallback,t=e?e(r):setTimeout(r);o=()=>e?window.cancelIdleCallback(t):clearTimeout(t)}else{for(const t of It)e.addEventListener(t,r);o=()=>{for(const t of It)e.removeEventListener(t,r)}}return()=>{s=!0,o()}})(e,r,()=>{e.hasAttribute(o)&&(e.setAttribute("v-scope",e.getAttribute(o)),e.removeAttribute(o),n(e,t,s))});return t.cleanups.push(i),kt(i),!0},Mt=/^(?:v-|:|@)/,Vt=/\.([\w-]+)/g,Wt=!1,zt=(e,t)=>{e.cleanups.push(t),kt(()=>{const n=e.cleanups.indexOf(t);n>-1&&(e.cleanups.splice(n,1),t())})},Bt=(e,t,n)=>{const s=Wt;Wt=n;try{Dt(e,t)}finally{Wt=s}},Dt=(e,t)=>{const n=$t(e);try{return Ft(e,t)}finally{$t(n)}},Ft=(e,t)=>{const n=e.nodeType;if(1===n){const n=e;if(n.hasAttribute("v-pre"))return;if(Ct(n,t,Bt,Wt))return;let s;if(ft(n,"v-cloak"),s=ft(n,"v-if"))return((e,t,n)=>{const s=new Comment("v-if");e.before(s);const r=[{exp:t,el:e}];let o,i;for(;(o=e.nextElementSibling)&&(i=null,""===ft(o,"v-else")||(i=ft(o,"v-else-if")));)o.remove(),r.push({exp:i,el:o});const c=e.nextSibling;let l;e.remove(),$t(s);let u=-1;const a=()=>{l&&(s.parentNode||l.el.before(s),l.remove(),l=void 0)};let f;const p=()=>Fe(f);return f=n.effect(()=>{for(let e=0;e<r.length;e++){const{exp:t,el:o}=r[e];if(!t||_t(n.scope,t,o,{source:"v-if",el:o})){if(e!==u){a();const t=s.parentNode;l=new Xt(o,n),l.insert(t,s),kt(p,l.el),l.el.parentNode===t&&s.remove(),u=e}return}}u=-1,a()}),kt(p,s),c})(n,s,t);if(s=ft(n,"v-for"))return At(n,s,t);const r=ft(n,"v-name");let o;if(s=ft(n,"v-teleport")){const e=document.querySelector(s);e&&(o=n.nextSibling,n.__teleported=!0,e.appendChild(n),t.cleanups.push(()=>n.remove()))}if((s=ft(n,"v-scope"))||""===s){const e=(s?_t(t.scope,s,n,{source:"v-scope",el:n}):{})||{};t=Gt(t,e),n.__ctx=t,zt(t,Me(n,t.scope,s||void 0,r||void 0)),e.$template&&Ht(n,e.$template)}const i=null!=ft(n,"v-once");i&&(Wt=!0),(s=ft(n,"ref"))&&Ut(n,Nt,`"${s}"`,t),Kt(n,t);const c=[];for(const{name:e,value:l}of[...n.attributes])Mt.test(e)&&"v-cloak"!==e&&("v-model"===e||e.startsWith("v-model.")?c.unshift([e,l]):"@"===e[0]||/^v-on\b/.test(e)?c.push([e,l]):qt(n,e,l,t));for(const[e,l]of c)qt(n,e,l,t);return i&&(Wt=!1),o}if(3===n){const n=e.data;if(n.includes(t.delimiters[0])){let s,r=[],o=0;for(;s=t.delimitersRE.exec(n);){const e=n.slice(o,s.index);e&&r.push(JSON.stringify(e)),r.push(`$s(${s[1]})`),o=s.index+s[0].length}o<n.length&&r.push(JSON.stringify(n.slice(o))),Ut(e,ut,r.join("+"),t,void 0,void 0,"{{ }}",n.trim())}}else 11===n&&Kt(e,t)},Kt=(e,t)=>{let n=e.firstChild;for(;n;)n=Dt(n,t)||n.nextSibling},qt=(e,t,n,s)=>{let r,o,i;const c=t;if(":"===(t=t.replace(Vt,(e,t)=>((i||(i={}))[t]=!0,"")))[0])r=Xe,o=t.slice(1);else if("@"===t[0])r=lt,o=t.slice(1);else{const e=t.indexOf(":"),n=e>0?t.slice(2,e):t.slice(2);r=Ot[n]||s.dirs[n],o=e>0?t.slice(e+1):void 0}r&&(r===Xe&&"ref"===o&&(r=Nt),Ut(e,r,n,s,o,i,c),e.removeAttribute(c))},Ut=(e,t,n,s,r,o,i,c)=>{const l={source:i,el:e,expression:c},u=(t=n)=>_t(s.scope,t,e,l);let a;try{a=t({el:e,get:u,effect:s.effect,ctx:s,exp:n,arg:r,modifiers:o})}catch(f){return void Be(f,{phase:"directive",source:i,el:e,expression:n})}a&&zt(s,a)},Ht=(e,t)=>{if("#"===t[0]){const n=document.querySelector(t);if(!n)return;return void e.appendChild(n.content.cloneNode(!0))}e.innerHTML=t},Jt=e=>{const t={delimiters:["{{","}}"],delimitersRE:/\{\{([^]+?)\}\}/g,...e,scope:e?e.scope:ge({}),dirs:e?e.dirs:{},effects:[],blocks:[],cleanups:[],effect:e=>{if(Wt)return Ze(e),e;const n=W(e,{scheduler:()=>Ze(n)});return t.effects.push(n),kt(()=>{Fe(n),r(t.effects,n)}),n}};return t},Zt=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Gt=(e,t={})=>{const n=e.scope,s=Object.create(n);Object.defineProperties(s,Object.getOwnPropertyDescriptors(t)),Zt(s,"$refs",Object.create(n.$refs));const r=ge(new Proxy(s,{set:(e,t,s,o)=>o!==r||i(e,t)?Reflect.set(e,t,s,o):Reflect.set(n,t,s)})),o={...e,scope:r};return Zt(s,"$watch",Oe(o)),Zt(s,"$id",Se()),Qt(r),o},Qt=e=>{for(const t of Object.keys(e)){const n=Object.getOwnPropertyDescriptor(e,t).value;"function"==typeof n&&(e[t]=n.bind(e))}},Xt=class{template;ctx;key;parentCtx;isFragment;start;end;owned=!1;get el(){return this.start||this.template}constructor(e,t,n=!1){this.isFragment=e instanceof HTMLTemplateElement,n?this.template=e:this.isFragment?this.template=e.content.cloneNode(!0):this.template=e.cloneNode(!0),n||(this.parentCtx=t,t.blocks.push(this)),this.ctx=Jt(t),Dt(this.template,this.ctx)}insert(e,t=null){if(this.isFragment)if(this.start){let n,s=this.start;for(;s&&(n=s.nextSibling,e.insertBefore(s,t),s!==this.end);)s=n}else this.start=new Text(""),this.end=new Text(""),e.insertBefore(this.end,t),e.insertBefore(this.start,this.end),e.insertBefore(this.template,this.end);else this.template.__teleported||e.insertBefore(this.template,t);this.owned||(this.owned=!0,kt(()=>this.discard(),this.el))}remove(){this.parentCtx&&r(this.parentCtx.blocks,this);const e=()=>{const e=this.start?this.start.parentNode:this.template.parentNode;if(e)if(this.start){let t,n=this.start;for(;n&&(t=n.nextSibling,e.removeChild(n),n!==this.end);)n=t}else e.removeChild(this.template);this.teardown()},t=this.isFragment?void 0:this.template.__leave;t?t().then(e):e()}discard(){this.parentCtx&&r(this.parentCtx.blocks,this),this.teardown()}teardown(){this.ctx.blocks.splice(0).forEach(e=>{e.teardown()}),this.ctx.effects.splice(0).forEach(Fe),this.ctx.cleanups.splice(0).forEach(e=>e())}},Yt=ge(Object.create(null)),en=e=>e.replace(/[-.*+?^${}()|[\]/\\]/g,"\\$&"),tn=e=>{const t=Jt();if("function"==typeof e&&(e=e()),e&&(t.scope=ge(e),Qt(t.scope),e.$delimiters)){const[n,s]=t.delimiters=e.$delimiters;t.delimitersRE=new RegExp(en(n)+"([^]+?)"+en(s),"g")}t.scope.$s=at,t.scope.$nextTick=Je,t.scope.$refs=Object.create(null),t.scope.$store=Yt,t.scope.$watch=Oe(t),t.scope.$id=Se(),Object.defineProperty(t.scope,"$root",{value:t.scope,enumerable:!1});const n=Object.create(null);let s=[];const r=new Set,o=[],i=[],c={get scope(){return t.scope},directive(e,n){return n?(t.dirs[e]=n,this):t.dirs[e]},component(e,s){return s?(!(e in n)&&e in t.scope||(n[e]=s,(e=>{Pe()||Ae.add(e)})(e),t.scope[e]=s),this):n[e]},onError(e){const t=(n=e,ze.push(n),()=>{const e=ze.indexOf(n);e>-1&&ze.splice(e,1)});var n;return i.push(t),()=>{const e=i.indexOf(t);e>-1&&i.splice(e,1),t()}},use(e,t){if(!r.has(e)){r.add(e);const n=("function"==typeof e?e:e.install)(c,t);"function"==typeof n&&o.push(n)}return c},mount(e){if("string"==typeof e){const t=document.querySelector(e);if(!t)return;e=t}let n;n=(e=e||document.documentElement).matches(Rt)?[e]:[...e.querySelectorAll(Rt)].filter(e=>!e.matches(`:where(${Rt}) *`)),n.length||(n=[e]),t.walk??=Dt,t.dispose??=St;for(const r of n){const e=r.getAttribute("v-name"),n=new Xt(r,t,!0);r.__ctx??=n.ctx,Ve.scopes.has(r)||r.matches(Rt)||n.ctx.cleanups.push(Me(r,n.ctx.scope,void 0,e||void 0)),s.push(n)}return this},unmount(e){if(null==e)return s.forEach(e=>e.teardown()),s=[],o.splice(0).forEach(e=>{try{e()}catch(t){Be(t,{phase:"teardown",source:"plugin"})}}),r.clear(),void i.splice(0).forEach(e=>e());const t="string"==typeof e?document.querySelector(e):e;if(!t)return;const n=[];for(const r of s){const e=r.template;t.contains(e)?r.teardown():n.push(r)}s=n}};return c},nn=document.currentScript;nn&&nn.hasAttribute("init")&&tn().mount(),e.computed=function(e,t,s=!1){let r,o;const i="function"==typeof e;return i?(r=e,o=n):(r=e.get,o=e.set),new we(r,o,i||!o,s)},e.createApp=tn,e.devtools=Ve,e.disableDevtools=()=>{Ne=!0,Ee.clear(),Le.clear(),je.clear(),Te.clear(),Ae.clear();for(const e in Re)Re[e].clear();"undefined"!=typeof window&&window.__LITE_VUE__===Ve&&delete window.__LITE_VUE__},e.nextTick=Je,e.reactive=ge,e.store=(e,t)=>(void 0!==t&&(Yt[e]=t,"function"==typeof Yt[e].init&&Yt[e].init(),((e,t)=>{Pe()||(Te.set(e,t),Ie("store:register",e,t))})(e,Yt[e])),Yt[e]),e.watchEffect=e=>{let t;return t=W(e,{scheduler:()=>Ze(t)}),()=>Fe(t)}});
@@ -1 +1 @@
1
- var LiteVueCollapse=function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});return e.collapse=e=>{e.directive("collapse",({el:e,get:t,effect:o,modifiers:i})=>{const l=e;let s=250;for(const a in i||{}){const e=/^duration-(\d+)$/.exec(a);e&&(s=+e[1])}l.style.overflow="hidden";let r=!0,n=0;const c=new Set,h=(e,t)=>{const o=setTimeout(()=>{c.delete(o),e()},t);c.add(o)};return o(()=>{const e=!!t(),o=++n;if(r)return r=!1,e||(l.style.height="0px"),void h(()=>{l.style.transition=`height ${s}ms ease`});e?(l.style.height=l.scrollHeight+"px",h(()=>{o===n&&(l.style.height="")},s)):(l.style.height=l.scrollHeight+"px",l.offsetHeight,l.style.height="0px")}),()=>c.forEach(clearTimeout)})},e}({});
1
+ var LiteVueCollapse=function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});return e.collapse=e=>{e.directive("collapse",({el:e,get:t,effect:o,modifiers:i})=>{const l=e;let s=250;for(const g in i||{}){const e=/^duration-(\d+)$/.exec(g);e&&(s=+e[1])}const r=["overflow","height","transition"],n=r.map(e=>l.style[e]);l.style.overflow="hidden";let h=!0,c=0;const a=new Set,f=(e,t)=>{const o=setTimeout(()=>{a.delete(o),e()},t);a.add(o)};return o(()=>{const e=!!t(),o=++c;if(h)return h=!1,e||(l.style.height="0px"),void f(()=>{l.style.transition=`height ${s}ms ease`});e?(l.style.height=l.scrollHeight+"px",f(()=>{o===c&&(l.style.height="")},s)):(l.style.height=l.scrollHeight+"px",l.offsetHeight,l.style.height="0px")}),()=>{a.forEach(clearTimeout),r.forEach((e,t)=>l.style[e]=n[t])}})},e}({});
@@ -1 +1 @@
1
- var e=e=>{e.directive("collapse",({el:e,get:t,effect:i,modifiers:s})=>{const o=e;let l=250;for(const d in s||{}){const e=/^duration-(\d+)$/.exec(d);e&&(l=+e[1])}o.style.overflow="hidden";let h=!0,r=0;const c=/* @__PURE__ */new Set,n=(e,t)=>{const i=setTimeout(()=>{c.delete(i),e()},t);c.add(i)};return i(()=>{const e=!!t(),i=++r;if(h)return h=!1,e||(o.style.height="0px"),void n(()=>{o.style.transition=`height ${l}ms ease`});e?(o.style.height=o.scrollHeight+"px",n(()=>{i===r&&(o.style.height="")},l)):(o.style.height=o.scrollHeight+"px",o.offsetHeight,o.style.height="0px")}),()=>c.forEach(clearTimeout)})};export{e as collapse};
1
+ var e=e=>{e.directive("collapse",({el:e,get:t,effect:o,modifiers:s})=>{const i=e;let l=250;for(const g in s||{}){const e=/^duration-(\d+)$/.exec(g);e&&(l=+e[1])}const h=["overflow","height","transition"],r=h.map(e=>i.style[e]);i.style.overflow="hidden";let n=!0,c=0;const a=/* @__PURE__ */new Set,f=(e,t)=>{const o=setTimeout(()=>{a.delete(o),e()},t);a.add(o)};return o(()=>{const e=!!t(),o=++c;if(n)return n=!1,e||(i.style.height="0px"),void f(()=>{i.style.transition=`height ${l}ms ease`});e?(i.style.height=i.scrollHeight+"px",f(()=>{o===c&&(i.style.height="")},l)):(i.style.height=i.scrollHeight+"px",i.offsetHeight,i.style.height="0px")}),()=>{a.forEach(clearTimeout),h.forEach((e,t)=>i.style[e]=r[t])}})};export{e as collapse};
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).LiteVueCollapse={})}(this,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});e.collapse=e=>{e.directive("collapse",({el:e,get:t,effect:o,modifiers:i})=>{const l=e;let s=250;for(const h in i||{}){const e=/^duration-(\d+)$/.exec(h);e&&(s=+e[1])}l.style.overflow="hidden";let n=!0,f=0;const d=new Set,c=(e,t)=>{const o=setTimeout(()=>{d.delete(o),e()},t);d.add(o)};return o(()=>{const e=!!t(),o=++f;if(n)return n=!1,e||(l.style.height="0px"),void c(()=>{l.style.transition=`height ${s}ms ease`});e?(l.style.height=l.scrollHeight+"px",c(()=>{o===f&&(l.style.height="")},s)):(l.style.height=l.scrollHeight+"px",l.offsetHeight,l.style.height="0px")}),()=>d.forEach(clearTimeout)})}});
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).LiteVueCollapse={})}(this,function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});e.collapse=e=>{e.directive("collapse",({el:e,get:t,effect:o,modifiers:i})=>{const l=e;let s=250;for(const a in i||{}){const e=/^duration-(\d+)$/.exec(a);e&&(s=+e[1])}const n=["overflow","height","transition"],f=n.map(e=>l.style[e]);l.style.overflow="hidden";let h=!0,r=0;const c=new Set,d=(e,t)=>{const o=setTimeout(()=>{c.delete(o),e()},t);c.add(o)};return o(()=>{const e=!!t(),o=++r;if(h)return h=!1,e||(l.style.height="0px"),void d(()=>{l.style.transition=`height ${s}ms ease`});e?(l.style.height=l.scrollHeight+"px",d(()=>{o===r&&(l.style.height="")},s)):(l.style.height=l.scrollHeight+"px",l.offsetHeight,l.style.height="0px")}),()=>{c.forEach(clearTimeout),n.forEach((e,t)=>l.style[e]=f[t])}})}});