2024-06-09 22:20:10 +00:00
|
|
|
function gr(e,t){const n=Object.create(null),r=e.split(",");for(let s=0;s<r.length;s++)n[r[s]]=!0;return s=>!!n[s]}const te={},pt=[],Ne=()=>{},li=()=>!1,ci=/^on[^a-z]/,Wt=e=>ci.test(e),mr=e=>e.startsWith("onUpdate:"),ie=Object.assign,_r=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ai=Object.prototype.hasOwnProperty,Y=(e,t)=>ai.call(e,t),k=Array.isArray,gt=e=>bn(e)==="[object Map]",js=e=>bn(e)==="[object Set]",V=e=>typeof e=="function",re=e=>typeof e=="string",yr=e=>typeof e=="symbol",ee=e=>e!==null&&typeof e=="object",Ds=e=>ee(e)&&V(e.then)&&V(e.catch),Us=Object.prototype.toString,bn=e=>Us.call(e),fi=e=>bn(e).slice(8,-1),Bs=e=>bn(e)==="[object Object]",br=e=>re(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Mt=gr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),vn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ui=/-(\w)/g,Le=vn(e=>e.replace(ui,(t,n)=>n?n.toUpperCase():"")),di=/\B([A-Z])/g,at=vn(e=>e.replace(di,"-$1").toLowerCase()),wn=vn(e=>e.charAt(0).toUpperCase()+e.slice(1)),on=vn(e=>e?`on${wn(e)}`:""),jt=(e,t)=>!Object.is(e,t),ln=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},fn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},er=e=>{const t=parseFloat(e);return isNaN(t)?e:t},hi=e=>{const t=re(e)?Number(e):NaN;return isNaN(t)?e:t};let Vr;const tr=()=>Vr||(Vr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function vr(e){if(k(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=re(r)?_i(r):vr(r);if(s)for(const o in s)t[o]=s[o]}return t}else{if(re(e))return e;if(ee(e))return e}}const pi=/;(?![^(]*\))/g,gi=/:([^]+)/,mi=/\/\*[^]*?\*\//g;function _i(e){const t={};return e.replace(mi,"").split(pi).forEach(n=>{if(n){const r=n.split(gi);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function wr(e){let t="";if(re(e))t=e;else if(k(e))for(let n=0;n<e.length;n++){const r=wr(e[n]);r&&(t+=r+" ")}else if(ee(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const yi="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",bi=gr(yi);function ks(e){return!!e||e===""}const Da=e=>re(e)?e:e==null?"":k(e)||ee(e)&&(e.toString===Us||!V(e.toString))?JSON.stringify(e,Ks,2):String(e),Ks=(e,t)=>t&&t.__v_isRef?Ks(e,t.value):gt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s])=>(n[`${r} =>`]=s,n),{})}:js(t)?{[`Set(${t.size})`]:[...t.values()]}:ee(t)&&!k(t)&&!Bs(t)?String(t):t;let ve;class vi{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ve,!t&&ve&&(this.index=(ve.scopes||(ve.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=ve;try{return ve=this,t()}finally{ve=n}}}on(){ve=this}off(){ve=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.parent=void 0,this._active=!1}}}function wi(e,t=ve){t&&t.active&&t.effects.push(e)}function Ws(){return ve}function Ei(e){ve&&ve.cleanups.push(e)}const Er=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Vs=e=>(e.w&Xe)>0,qs=e=>(e.n&Xe)>0,Ci=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Xe},xi=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const s=t[r];Vs(s)&&!qs(s)?s.delete(e):t[n++]=s,s.w&=~Xe,s.n&=~Xe}t.length=n}},un=new WeakMap;let Rt=0,Xe=1;const nr=30;let Se;const it=Symbol(""),rr=Symbol("");class Cr{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,wi(this,r)}run(){if(!this.active)return this.fn();let t=Se,n=qe;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=Se,Se=this,qe=!0,Xe=1<<++Rt,Rt<=nr?Ci(this):qr(this),this.fn()}finally{Rt<=nr&&xi(this),Xe=1<<--Rt,Se=this.parent,qe=n,this.
|