mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-03-18 12:54:52 +08:00
19 lines
101 KiB
JavaScript
19 lines
101 KiB
JavaScript
|
|
/**
|
||
|
|
* @vue/shared v3.5.16
|
||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
|
|
* @license MIT
|
||
|
|
**//*! #__NO_SIDE_EFFECTS__ */function Vs(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const ne={},It=[],Ke=()=>{},Ko=()=>!1,rn=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),ks=e=>e.startsWith("onUpdate:"),de=Object.assign,Us=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Bo=Object.prototype.hasOwnProperty,Z=(e,t)=>Bo.call(e,t),k=Array.isArray,Pt=e=>on(e)==="[object Map]",Ht=e=>on(e)==="[object Set]",fr=e=>on(e)==="[object Date]",X=e=>typeof e=="function",le=e=>typeof e=="string",$e=e=>typeof e=="symbol",te=e=>e!==null&&typeof e=="object",ri=e=>(te(e)||X(e))&&X(e.then)&&X(e.catch),ii=Object.prototype.toString,on=e=>ii.call(e),qo=e=>on(e).slice(8,-1),oi=e=>on(e)==="[object Object]",Ws=e=>le(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Lt=Vs(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),jn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Go=/-(\w)/g,De=jn(e=>e.replace(Go,(t,n)=>n?n.toUpperCase():"")),Xo=/\B([A-Z])/g,ft=jn(e=>e.replace(Xo,"-$1").toLowerCase()),Vn=jn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Tn=jn(e=>e?`on${Vn(e)}`:""),ot=(e,t)=>!Object.is(e,t),En=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},li=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},Mn=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Yo=e=>{const t=le(e)?Number(e):NaN;return isNaN(t)?e:t};let ur;const kn=()=>ur||(ur=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function Ks(e){if(k(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=le(s)?Zo(s):Ks(s);if(r)for(const i in r)t[i]=r[i]}return t}else if(le(e)||te(e))return e}const Jo=/;(?![^(]*\))/g,zo=/:([^]+)/,Qo=/\/\*[^]*?\*\//g;function Zo(e){const t={};return e.replace(Qo,"").split(Jo).forEach(n=>{if(n){const s=n.split(zo);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Bs(e){let t="";if(le(e))t=e;else if(k(e))for(let n=0;n<e.length;n++){const s=Bs(e[n]);s&&(t+=s+" ")}else if(te(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const el="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",tl=Vs(el);function ci(e){return!!e||e===""}function nl(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Et(e[s],t[s]);return n}function Et(e,t){if(e===t)return!0;let n=fr(e),s=fr(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=$e(e),s=$e(t),n||s)return e===t;if(n=k(e),s=k(t),n||s)return n&&s?nl(e,t):!1;if(n=te(e),s=te(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,i=Object.keys(t).length;if(r!==i)return!1;for(const o in e){const l=e.hasOwnProperty(o),c=t.hasOwnProperty(o);if(l&&!c||!l&&c||!Et(e[o],t[o]))return!1}}return String(e)===String(t)}function qs(e,t){return e.findIndex(n=>Et(n,t))}const ai=e=>!!(e&&e.__v_isRef===!0),sl=e=>le(e)?e:e==null?"":k(e)||te(e)&&(e.toString===ii||!X(e.toString))?ai(e)?sl(e.value):JSON.stringify(e,fi,2):String(e),fi=(e,t)=>ai(t)?fi(e,t.value):Pt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],i)=>(n[rs(s,i)+" =>"]=r,n),{})}:Ht(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>rs(n))}:$e(t)?rs(t):te(t)&&!k(t)&&!oi(t)?String(t):t,rs=(e,t="")=>{var n;return $e(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
|
||
|
|
* @vue/reactivity v3.5.16
|
||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
|
|
* @license MIT
|
||
|
|
**/let ye;class rl{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=ye,!t&&ye&&(this.index=(ye.scopes||(ye.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=ye;try{return ye=this,t()}finally{ye=n}}}on(){++this._on===1&&(this.prevScope=ye,ye=this)}off(){this._on>0&&--this._on===0&&(ye=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function ui(){return ye}function il(e,t=!1){ye&&ye.cleanups.push(e)}let re;const is=new WeakSet;class di{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ye&&ye.active&&ye.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,is.has(this)&&(is.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||pi(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,dr(this),gi(this);const t=re,n=He;re=this,He=!0;try{return this.fn()}finally{mi(this),re=t,He=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Ys(t);this.deps=this.depsTail=void 0,dr(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?is.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){Es(this)&&this.run()}get dirty(){return Es(this)}}let hi=0,Kt,Bt;function pi(e,t=!1){if(e.flags|=8,t){e.next=Bt,Bt=e;return}e.next=Kt,Kt=e}function Gs(){hi++}function Xs(){if(--hi>0)return;if(Bt){let t=Bt;for(Bt=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;Kt;){let t=Kt;for(Kt=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function gi(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function mi(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),Ys(s),ol(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function Es(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(yi(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function yi(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Yt)||(e.globalVersion=Yt,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Es(e))))return;e.flags|=2;const t=e.dep,n=re,s=He;re=e,He=!0;try{gi(e);const r=e.fn(e._value);(t.version===0||ot(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{re=n,He=s,mi(e),e.flags&=-3}}function Ys(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let i=n.computed.deps;i;i=i.nextDep)Ys(i,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function ol(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let He=!0;const vi=[];function ze(){vi.push(He),He=!1}function Qe(){const e=vi.pop();He=e===void 0?!0:e}function dr(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=re;re=void 0;try{t()}finally{re=n}}}let Yt=0;class ll{constructor(t,n){this.sub=t,this.dep=n,this.v
|
||
|
|
* @vue/runtime-core v3.5.16
|
||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
|
|
* @license MIT
|
||
|
|
**/function ln(e,t,n,s){try{return s?e(...s):e()}catch(r){Gn(r,t,n)}}function je(e,t,n,s){if(X(e)){const r=ln(e,t,n,s);return r&&ri(r)&&r.catch(i=>{Gn(i,t,n)}),r}if(k(e)){const r=[];for(let i=0;i<e.length;i++)r.push(je(e[i],t,n,s));return r}}function Gn(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:i,throwUnhandledErrorInProduction:o}=t&&t.appContext.config||ne;if(t){let l=t.parent;const c=t.proxy,f=`https://vuejs.org/error-reference/#runtime-${n}`;for(;l;){const a=l.ec;if(a){for(let h=0;h<a.length;h++)if(a[h](e,c,f)===!1)return}l=l.parent}if(i){ze(),ln(i,null,10,[e,c,f]),Qe();return}}$l(e,n,r,s,o)}function $l(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const we=[];let Ue=-1;const Nt=[];let st=null,Mt=0;const Mi=Promise.resolve();let Nn=null;function cn(e){const t=Nn||Mi;return e?t.then(this?e.bind(this):e):t}function jl(e){let t=Ue+1,n=we.length;for(;t<n;){const s=t+n>>>1,r=we[s],i=zt(r);i<e||i===e&&r.flags&2?t=s+1:n=s}return t}function Qs(e){if(!(e.flags&1)){const t=zt(e),n=we[we.length-1];!n||!(e.flags&2)&&t>=zt(n)?we.push(e):we.splice(jl(t),0,e),e.flags|=1,Ii()}}function Ii(){Nn||(Nn=Mi.then(Pi))}function Vl(e){k(e)?Nt.push(...e):st&&e.id===-1?st.splice(Mt+1,0,e):e.flags&1||(Nt.push(e),e.flags|=1),Ii()}function pr(e,t,n=Ue+1){for(;n<we.length;n++){const s=we[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;we.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function Dn(e){if(Nt.length){const t=[...new Set(Nt)].sort((n,s)=>zt(n)-zt(s));if(Nt.length=0,st){st.push(...t);return}for(st=t,Mt=0;Mt<st.length;Mt++){const n=st[Mt];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}st=null,Mt=0}}const zt=e=>e.id==null?e.flags&2?-1:1/0:e.id;function Pi(e){try{for(Ue=0;Ue<we.length;Ue++){const t=we[Ue];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),ln(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Ue<we.length;Ue++){const t=we[Ue];t&&(t.flags&=-2)}Ue=-1,we.length=0,Dn(),Nn=null,(we.length||Nt.length)&&Pi()}}let ae=null,Li=null;function Fn(e){const t=ae;return ae=e,Li=e&&e.type.__scopeId||null,t}function kl(e,t=ae,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Cr(-1);const i=Fn(t);let o;try{o=e(...r)}finally{Fn(i),s._d&&Cr(1)}return o};return s._n=!0,s._c=!0,s._d=!0,s}function Mf(e,t){if(ae===null)return e;const n=Zn(ae),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[i,o,l,c=ne]=t[r];i&&(X(i)&&(i={mounted:i,updated:i}),i.deep&&Ye(o),s.push({dir:i,instance:n,value:o,oldValue:void 0,arg:l,modifiers:c}))}return e}function We(e,t,n,s){const r=e.dirs,i=t&&t.dirs;for(let o=0;o<r.length;o++){const l=r[o];i&&(l.oldValue=i[o].value);let c=l.dir[s];c&&(ze(),je(c,n,8,[e.el,l,e,t]),Qe())}}const Ul=Symbol("_vte"),Ni=e=>e.__isTeleport,rt=Symbol("_leaveCb"),mn=Symbol("_enterCb");function Wl(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return $t(()=>{e.isMounted=!0}),Wi(()=>{e.isUnmounting=!0}),e}const Re=[Function,Array],Di={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Re,onEnter:Re,onAfterEnter:Re,onEnterCancelled:Re,onBeforeLeave:Re,onLeave:Re,onAfterLeave:Re,onLeaveCancelled:Re,onBeforeAppear:Re,onAppear:Re,onAfterAppear:Re,onAppearCancelled:Re},Fi=e=>{const t=e.subTree;return t.component?Fi(t.component):t},Kl={name:"BaseTransition",props:Di,setup(e,{slots:t}){const n=an(),s=Wl();return()=>{const r=t.default&&ji(t.default(),!0);if(!r||!r.length)return;const i=Hi(r),o=Q(e),{mode:l}=o;if(s.isLeaving)return cs(i);const c=gr(i);if(!c)return cs(i);let f=Rs(c,o,s,n,h=>f=h);c.type!==pe&&Qt(c,f);let a=n.subTree&&gr(n.subTree);if(a&&a.type!==pe&&!mt(c,a)&&Fi(n).type!==pe){let h=Rs(a,o,s,n);if(Qt(a,h),l==="out-in"&&c.type!==pe)return s.isLeaving=!0,h.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete h.afterLeave,a=void 0},cs(i);l==="in-out"&&c.type!==pe?h.delayLeave=(y,v,R)=>{const L=$i(s,a);L[String(a.key)]=a,y[rt]=()=>{v(),y[rt]=void 0,delete f.delayedLeave,a=void 0},f.delayedLeave=()=>{R(),delete f.delayedLeave,a=void 0}}:a=void 0}else a&&(a=void 0);return i}}};function Hi(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==pe){t=n;break}}retu
|
||
|
|
`&&(p.tagName==="PRE"||p.tagName==="TEXTAREA")&&($=$.slice(1)),p.textContent!==$&&(_n(p,0)||Ot(),p.textContent=g.children)}if(M){if(J||!K||V&48){const $=p.tagName.includes("-");for(const oe in M)(J&&(oe.endsWith("value")||oe==="indeterminate")||rn(oe)&&!Lt(oe)||oe[0]==="."||$)&&s(p,oe,null,M[oe],void 0,O)}else if(M.onClick)s(p,"onClick",null,M.onClick,void 0,O);else if(V&4&&vt(M.style))for(const $ in M.style)M.style[$]}let Y;(Y=M&&M.onVnodeBeforeMount)&&Oe(Y,O,g),H&&We(g,null,O,"beforeMount"),((Y=M&&M.onVnodeMounted)||H||D)&&go(()=>{Y&&Oe(Y,O,g),D&&N.enter(p),H&&We(g,null,O,"mounted")},U)}return p.nextSibling},v=(p,g,O,U,C,K,T)=>{T=T||!!g.dynamicChildren;const M=g.children,V=M.length;for(let w=0;w<V;w++){const H=T?M[w]:M[w]=Me(M[w]),N=H.type===xt;p?(N&&!T&&w+1<V&&Me(M[w+1]).type===xt&&(c(r(p.data.slice(H.children.length)),O,i(p)),p.data=H.children),p=h(p,H,U,C,K,T)):N&&!H.children?c(H.el=r(""),O):(_n(O,1)||Ot(),n(null,H,O,null,U,C,yn(O),K))}return p},R=(p,g,O,U,C,K)=>{const{slotScopeIds:T}=g;T&&(C=C?C.concat(T):T);const M=o(p),V=v(i(p),g,M,O,U,C,K);return V&&vn(V)&&V.data==="]"?i(g.anchor=V):(Ot(),c(g.anchor=f("]"),M,V),V)},L=(p,g,O,U,C,K)=>{if(_n(p.parentElement,1)||Ot(),g.el=null,K){const V=q(p);for(;;){const w=i(p);if(w&&w!==V)l(w);else break}}const T=i(p),M=o(p);return l(p),n(null,g,M,T,O,U,yn(M),C),O&&(O.vnode.el=g.el,ho(O,g.el)),T},q=(p,g="[",O="]")=>{let U=0;for(;p;)if(p=i(p),p&&vn(p)&&(p.data===g&&U++,p.data===O)){if(U===0)return i(p);U--}return p},F=(p,g,O)=>{const U=g.parentNode;U&&U.replaceChild(p,g);let C=O;for(;C;)C.vnode.el===g&&(C.vnode.el=C.subTree.el=p),C=C.parent},B=p=>p.nodeType===1&&p.tagName==="TEMPLATE";return[a,h]}const yr="data-allow-mismatch",Yl={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function _n(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(yr);)e=e.parentElement;const n=e&&e.getAttribute(yr);if(n==null)return!1;if(n==="")return!0;{const s=n.split(",");return t===0&&s.includes("children")?!0:n.split(",").includes(Yl[t])}}kn().requestIdleCallback;kn().cancelIdleCallback;const bt=e=>!!e.type.__asyncLoader,Xn=e=>e.type.__isKeepAlive;function Jl(e,t){Ui(e,"a",t)}function zl(e,t){Ui(e,"da",t)}function Ui(e,t,n=ue){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(Yn(t,s,n),n){let r=n.parent;for(;r&&r.parent;)Xn(r.parent.vnode)&&Ql(s,t,n,r),r=r.parent}}function Ql(e,t,n,s){const r=Yn(t,e,s,!0);Jn(()=>{Us(s[t],r)},n)}function Yn(e,t,n=ue,s=!1){if(n){const r=n[e]||(n[e]=[]),i=t.__weh||(t.__weh=(...o)=>{ze();const l=fn(n),c=je(t,n,e,o);return l(),Qe(),c});return s?r.unshift(i):r.push(i),i}}const tt=e=>(t,n=ue)=>{(!nn||e==="sp")&&Yn(e,(...s)=>t(...s),n)},Zl=tt("bm"),$t=tt("m"),ec=tt("bu"),tc=tt("u"),Wi=tt("bum"),Jn=tt("um"),nc=tt("sp"),sc=tt("rtg"),rc=tt("rtc");function ic(e,t=ue){Yn("ec",e,t)}const Ki="components";function If(e,t){return qi(Ki,e,!0,t)||e}const Bi=Symbol.for("v-ndc");function Pf(e){return le(e)?qi(Ki,e,!1)||e:e||Bi}function qi(e,t,n=!0,s=!1){const r=ae||ue;if(r){const i=r.type;{const l=Wc(i,!1);if(l&&(l===t||l===De(t)||l===Vn(De(t))))return i}const o=vr(r[e]||i[e],t)||vr(r.appContext[e],t);return!o&&s?i:o}}function vr(e,t){return e&&(e[t]||e[De(t)]||e[Vn(De(t))])}function Lf(e,t,n,s){let r;const i=n,o=k(e);if(o||le(e)){const l=o&&vt(e);let c=!1,f=!1;l&&(c=!Ie(e),f=lt(e),e=Wn(e)),r=new Array(e.length);for(let a=0,h=e.length;a<h;a++)r[a]=t(c?f?Pn(he(e[a])):he(e[a]):e[a],a,void 0,i)}else if(typeof e=="number"){r=new Array(e);for(let l=0;l<e;l++)r[l]=t(l+1,l,void 0,i)}else if(te(e))if(e[Symbol.iterator])r=Array.from(e,(l,c)=>t(l,c,void 0,i));else{const l=Object.keys(e);r=new Array(l.length);for(let c=0,f=l.length;c<f;c++){const a=l[c];r[c]=t(e[a],a,c,i)}}else r=[];return r}function Nf(e,t,n={},s,r){if(ae.ce||ae.parent&&bt(ae.parent)&&ae.parent.ce)return t!=="default"&&(n.name=t),Ls(),Ns(Se,null,[ge("slot",n,s&&s())],64);let i=e[t];i&&i._c&&(i._d=!1),Ls();const o=i&&Gi(i(n)),l=n.key||o&&o.key,c=Ns(Se,{key:(l&&!$e(l)?l:`_${t}`)+(!o&&s?"_fb":"")},o||(s?s():[]),o&&e._===1?64:-2);return!r&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-
|
||
|
|
* @vue/runtime-dom v3.5.16
|
||
|
|
* (c) 2018-present Yuxi (Evan) You and Vue contributors
|
||
|
|
* @license MIT
|
||
|
|
**/let Hs;const Or=typeof window<"u"&&window.trustedTypes;if(Or)try{Hs=Or.createPolicy("vue",{createHTML:e=>e})}catch{}const xo=Hs?e=>Hs.createHTML(e):e=>e,qc="http://www.w3.org/2000/svg",Gc="http://www.w3.org/1998/Math/MathML",Ge=typeof document<"u"?document:null,Mr=Ge&&Ge.createElement("template"),Xc={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?Ge.createElementNS(qc,e):t==="mathml"?Ge.createElementNS(Gc,e):n?Ge.createElement(e,{is:n}):Ge.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Ge.createTextNode(e),createComment:e=>Ge.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Ge.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,i){const o=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===i||!(r=r.nextSibling)););else{Mr.innerHTML=xo(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const l=Mr.content;if(s==="svg"||s==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[o?o.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},nt="transition",Ut="animation",sn=Symbol("_vtc"),To={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},Yc=de({},Di,To),Jc=e=>(e.displayName="Transition",e.props=Yc,e),kf=Jc((e,{slots:t})=>Fs(Bl,zc(e),t)),ht=(e,t=[])=>{k(e)?e.forEach(n=>n(...t)):e&&e(...t)},Ir=e=>e?k(e)?e.some(t=>t.length>1):e.length>1:!1;function zc(e){const t={};for(const w in e)w in To||(t[w]=e[w]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:o=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=i,appearActiveClass:f=o,appearToClass:a=l,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:y=`${n}-leave-active`,leaveToClass:v=`${n}-leave-to`}=e,R=Qc(r),L=R&&R[0],q=R&&R[1],{onBeforeEnter:F,onEnter:B,onEnterCancelled:p,onLeave:g,onLeaveCancelled:O,onBeforeAppear:U=F,onAppear:C=B,onAppearCancelled:K=p}=t,T=(w,H,N,J)=>{w._enterCancelled=J,pt(w,H?a:l),pt(w,H?f:o),N&&N()},M=(w,H)=>{w._isLeaving=!1,pt(w,h),pt(w,v),pt(w,y),H&&H()},V=w=>(H,N)=>{const J=w?C:B,D=()=>T(H,w,N);ht(J,[H,D]),Pr(()=>{pt(H,w?c:i),qe(H,w?a:l),Ir(J)||Lr(H,s,L,D)})};return de(t,{onBeforeEnter(w){ht(F,[w]),qe(w,i),qe(w,o)},onBeforeAppear(w){ht(U,[w]),qe(w,c),qe(w,f)},onEnter:V(!1),onAppear:V(!0),onLeave(w,H){w._isLeaving=!0;const N=()=>M(w,H);qe(w,h),w._enterCancelled?(qe(w,y),Fr()):(Fr(),qe(w,y)),Pr(()=>{w._isLeaving&&(pt(w,h),qe(w,v),Ir(g)||Lr(w,s,q,N))}),ht(g,[w,N])},onEnterCancelled(w){T(w,!1,void 0,!0),ht(p,[w])},onAppearCancelled(w){T(w,!0,void 0,!0),ht(K,[w])},onLeaveCancelled(w){M(w),ht(O,[w])}})}function Qc(e){if(e==null)return null;if(te(e))return[ds(e.enter),ds(e.leave)];{const t=ds(e);return[t,t]}}function ds(e){return Yo(e)}function qe(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[sn]||(e[sn]=new Set)).add(t)}function pt(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[sn];n&&(n.delete(t),n.size||(e[sn]=void 0))}function Pr(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Zc=0;function Lr(e,t,n,s){const r=e._endId=++Zc,i=()=>{r===e._endId&&s()};if(n!=null)return setTimeout(i,n);const{type:o,timeout:l,propCount:c}=ea(e,t);if(!o)return s();const f=o+"end";let a=0;const h=()=>{e.removeEventListener(f,y),i()},y=v=>{v.target===e&&++a>=c&&h()};setTimeout(()=>{a<c&&h()},l+1),e.addEventListener(f,y)}function ea(e,t){const n=window.getComputedStyle(e),s=R=>(n[R]||"").split(", "),r=s(`${nt}Delay`),i=s(`${nt}Duration`),o=Nr(r,i),l=s(`${Ut}Delay`),c=s(`${Ut}Duration`),
|