5 lines
85 KiB
JavaScript
5 lines
85 KiB
JavaScript
![]() |
function Fn(e,t){const n=Object.create(null),s=e.split(",");for(let r=0;r<s.length;r++)n[s[r]]=!0;return t?r=>!!n[r.toLowerCase()]:r=>!!n[r]}const go="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",mo=Fn(go),_o="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",bo=Fn(_o);function Dr(e){return!!e||e===""}function Sn(e){if(N(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=se(s)?xo(s):Sn(s);if(r)for(const i in r)t[i]=r[i]}return t}else{if(se(e))return e;if(oe(e))return e}}const yo=/;(?![^(]*\))/g,Co=/:(.+)/;function xo(e){const t={};return e.split(yo).forEach(n=>{if(n){const s=n.split(Co);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function In(e){let t="";if(se(e))t=e;else if(N(e))for(let n=0;n<e.length;n++){const s=In(e[n]);s&&(t+=s+" ")}else if(oe(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function Cf(e){if(!e)return null;let{class:t,style:n}=e;return t&&!se(t)&&(e.class=In(t)),n&&(e.style=Sn(n)),e}function Eo(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=ze(e[s],t[s]);return n}function ze(e,t){if(e===t)return!0;let n=Gs(e),s=Gs(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=qt(e),s=qt(t),n||s)return e===t;if(n=N(e),s=N(t),n||s)return n&&s?Eo(e,t):!1;if(n=oe(e),s=oe(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||!ze(e[o],t[o]))return!1}}return String(e)===String(t)}function Rn(e,t){return e.findIndex(n=>ze(n,t))}const xf=e=>se(e)?e:e==null?"":N(e)||oe(e)&&(e.toString===$r||!V(e.toString))?JSON.stringify(e,Ur,2):String(e),Ur=(e,t)=>t&&t.__v_isRef?Ur(e,t.value):xt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r])=>(n[`${s} =>`]=r,n),{})}:ut(t)?{[`Set(${t.size})`]:[...t.values()]}:oe(t)&&!N(t)&&!jr(t)?String(t):t,z={},Ct=[],ve=()=>{},wo=()=>!1,To=/^on[^a-z]/,en=e=>To.test(e),Ts=e=>e.startsWith("onUpdate:"),ie=Object.assign,As=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ao=Object.prototype.hasOwnProperty,J=(e,t)=>Ao.call(e,t),N=Array.isArray,xt=e=>tn(e)==="[object Map]",ut=e=>tn(e)==="[object Set]",Gs=e=>tn(e)==="[object Date]",V=e=>typeof e=="function",se=e=>typeof e=="string",qt=e=>typeof e=="symbol",oe=e=>e!==null&&typeof e=="object",Ps=e=>oe(e)&&V(e.then)&&V(e.catch),$r=Object.prototype.toString,tn=e=>$r.call(e),Po=e=>tn(e).slice(8,-1),jr=e=>tn(e)==="[object Object]",vs=e=>se(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Dt=Fn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Mn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},vo=/-(\w)/g,Te=Mn(e=>e.replace(vo,(t,n)=>n?n.toUpperCase():"")),Oo=/\B([A-Z])/g,Ie=Mn(e=>e.replace(Oo,"-$1").toLowerCase()),Nn=Mn(e=>e.charAt(0).toUpperCase()+e.slice(1)),mn=Mn(e=>e?`on${Nn(e)}`:""),Pt=(e,t)=>!Object.is(e,t),Et=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},xn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Xe=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let er;const Fo=()=>er||(er=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let be;class Kr{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&be&&(this.parent=be,this.index=(be.scopes||(be.scopes=[])).push(this)-1)}run(t){if(this.active){const n=be;try{return be=this,t()}finally{be=n}}}on(){be=this}off(){be=this.parent}stop(t){if(this.active){let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.scopes)for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);if(this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.active=!1}}}function Ef(e){return new Kr(e)}function Vr(e,t=be){t&&t.active&&t.eff
|
||
|
`),r]);else{const i=[`[Vue warn]: ${e}`,...t];r.length&&i.push(`
|
||
|
`,...hl(r)),console.warn(...i)}dt()}function dl(){let e=Ut[Ut.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const s=e.component&&e.component.parent;e=s&&s.vnode}return t}function hl(e){const t=[];return e.forEach((n,s)=>{t.push(...s===0?[]:[`
|
||
|
`],...pl(n))}),t}function pl({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",s=e.component?e.component.parent==null:!1,r=` at <${Ji(e.component,e.type,s)}`,i=">"+n;return e.props?[r,...gl(e.props),i]:[r+i]}function gl(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(s=>{t.push(...ci(s,e[s]))}),n.length>3&&t.push(" ..."),t}function ci(e,t,n){return se(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:ce(t)?(t=ci(e,Y(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):V(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Y(t),n?t:[`${e}=`,t])}function ke(e,t,n,s){let r;try{r=s?e(...s):e()}catch(i){St(i,t,n)}return r}function we(e,t,n,s){if(V(e)){const i=ke(e,t,n,s);return i&&Ps(i)&&i.catch(o=>{St(o,t,n)}),i}const r=[];for(let i=0;i<e.length;i++)r.push(we(e[i],t,n,s));return r}function St(e,t,n,s=!0){const r=t?t.vnode:null;if(t){let i=t.parent;const o=t.proxy,l=n;for(;i;){const u=i.ec;if(u){for(let p=0;p<u.length;p++)if(u[p](e,o,l)===!1)return}i=i.parent}const c=t.appContext.config.errorHandler;if(c){ke(c,null,10,[e,o,l]);return}}ml(e,n,r,s)}function ml(e,t,n,s=!0){console.error(e)}let En=!1,fs=!1;const Ce=[];let Le=0;const $t=[];let kt=null,bt=0;const jt=[];let We=null,yt=0;const fi=Promise.resolve();let Ms=null,us=null;function ui(e){const t=Ms||fi;return e?t.then(this?e.bind(this):e):t}function _l(e){let t=Le+1,n=Ce.length;for(;t<n;){const s=t+n>>>1;Qt(Ce[s])<e?t=s+1:n=s}return t}function Ns(e){(!Ce.length||!Ce.includes(e,En&&e.allowRecurse?Le+1:Le))&&e!==us&&(e.id==null?Ce.push(e):Ce.splice(_l(e.id),0,e),ai())}function ai(){!En&&!fs&&(fs=!0,Ms=fi.then(pi))}function bl(e){const t=Ce.indexOf(e);t>Le&&Ce.splice(t,1)}function di(e,t,n,s){N(e)?n.push(...e):(!t||!t.includes(e,e.allowRecurse?s+1:s))&&n.push(e),ai()}function yl(e){di(e,kt,$t,bt)}function hi(e){di(e,We,jt,yt)}function $n(e,t=null){if($t.length){for(us=t,kt=[...new Set($t)],$t.length=0,bt=0;bt<kt.length;bt++)kt[bt]();kt=null,bt=0,us=null,$n(e,t)}}function wn(e){if($n(),jt.length){const t=[...new Set(jt)];if(jt.length=0,We){We.push(...t);return}for(We=t,We.sort((n,s)=>Qt(n)-Qt(s)),yt=0;yt<We.length;yt++)We[yt]();We=null,yt=0}}const Qt=e=>e.id==null?1/0:e.id;function pi(e){fs=!1,En=!0,$n(e),Ce.sort((n,s)=>Qt(n)-Qt(s));const t=ve;try{for(Le=0;Le<Ce.length;Le++){const n=Ce[Le];n&&n.active!==!1&&ke(n,null,14)}}finally{Le=0,Ce.length=0,wn(),En=!1,Ms=null,(Ce.length||$t.length||jt.length)&&pi(e)}}let Mt,an=[];function Cl(e,t){var n,s;Mt=e,Mt?(Mt.enabled=!0,an.forEach(({event:r,args:i})=>Mt.emit(r,...i)),an=[]):typeof window<"u"&&window.HTMLElement&&!(!((s=(n=window.navigator)===null||n===void 0?void 0:n.userAgent)===null||s===void 0)&&s.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(i=>{Cl(i,t)}),setTimeout(()=>{Mt||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,an=[])},3e3)):an=[]}function xl(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||z;let r=n;const i=t.startsWith("update:"),o=i&&t.slice(7);if(o&&o in s){const p=`${o==="modelValue"?"model":o}Modifiers`,{number:h,trim:g}=s[p]||z;g&&(r=n.map(E=>E.trim())),h&&(r=n.map(Xe))}let l,c=s[l=mn(t)]||s[l=mn(Te(t))];!c&&i&&(c=s[l=mn(Ie(t))]),c&&we(c,e,6,r);const u=s[l+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,we(u,e,6,r)}}function gi(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const i=e.emits;let o={},l=!1;if(!V(e)){const c=u=>{const p=gi(u,t,!0);p&&(l=!0,ie(o,p))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!i&&!l?(s.set(e,null),null):(N(i)?i.forEach(c=>o[c]=null):ie(o,i),s.set(e,o),o)}function jn(e,t){return!e||!en(t)?!1:(t=t.slice(2).replace(/Once$/,""),J(e,t[0].toLowerCase()+t.slice(1))||J(e,Ie(t))||J(e,t))}let ae=null,Kn=null;function zt(e){const t=ae;return ae=e,Kn=e&&e.type.__scopeId||null,t}function Rf(e){Kn=e}function Mf(){Kn=null}const Nf=e=>mi;function mi(e,t=ae,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&Cr(-1);const i=zt(t),o=e(...r);return zt(i),s._d&&Cr(1),o};return s._n=!0,
|