2 lines
85 KiB
JavaScript
2 lines
85 KiB
JavaScript
|
function kn(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 G={},bt=[],Oe=()=>{},vo=()=>!1,wo=/^on[^a-z]/,on=e=>wo.test(e),Fs=e=>e.startsWith("onUpdate:"),re=Object.assign,Os=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},To=Object.prototype.hasOwnProperty,Z=(e,t)=>To.call(e,t),B=Array.isArray,yt=e=>St(e)==="[object Map]",pt=e=>St(e)==="[object Set]",or=e=>St(e)==="[object Date]",Ao=e=>St(e)==="[object RegExp]",V=e=>typeof e=="function",ie=e=>typeof e=="string",At=e=>typeof e=="symbol",ee=e=>e!==null&&typeof e=="object",Ms=e=>(ee(e)||V(e))&&V(e.then)&&V(e.catch),zr=Object.prototype.toString,St=e=>zr.call(e),Po=e=>St(e).slice(8,-1),Xr=e=>St(e)==="[object Object]",Is=e=>ie(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Vt=kn(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Hn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ro=/-(\w)/g,Ee=Hn(e=>e.replace(Ro,(t,n)=>n?n.toUpperCase():"")),Fo=/\B([A-Z])/g,we=Hn(e=>e.replace(Fo,"-$1").toLowerCase()),Dn=Hn(e=>e.charAt(0).toUpperCase()+e.slice(1)),vn=Hn(e=>e?`on${Dn(e)}`:""),Qe=(e,t)=>!Object.is(e,t),xt=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},Pn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Rn=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Fn=e=>{const t=ie(e)?Number(e):NaN;return isNaN(t)?e:t};let lr;const us=()=>lr||(lr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),Oo="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console",Mo=kn(Oo);function Un(e){if(B(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=ie(s)?Bo(s):Un(s);if(r)for(const i in r)t[i]=r[i]}return t}else if(ie(e)||ee(e))return e}const Io=/;(?![^(]*\))/g,So=/:([^]+)/,No=/\/\*[^]*?\*\//g;function Bo(e){const t={};return e.replace(No,"").split(Io).forEach(n=>{if(n){const s=n.split(So);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function Kn(e){let t="";if(ie(e))t=e;else if(B(e))for(let n=0;n<e.length;n++){const s=Kn(e[n]);s&&(t+=s+" ")}else if(ee(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function af(e){if(!e)return null;let{class:t,style:n}=e;return t&&!ie(t)&&(e.class=Kn(t)),n&&(e.style=Un(n)),e}const Lo="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",ko=kn(Lo);function Zr(e){return!!e||e===""}function Ho(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=Ge(e[s],t[s]);return n}function Ge(e,t){if(e===t)return!0;let n=or(e),s=or(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=At(e),s=At(t),n||s)return e===t;if(n=B(e),s=B(t),n||s)return n&&s?Ho(e,t):!1;if(n=ee(e),s=ee(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||!Ge(e[o],t[o]))return!1}}return String(e)===String(t)}function jn(e,t){return e.findIndex(n=>Ge(n,t))}const df=e=>ie(e)?e:e==null?"":B(e)||ee(e)&&(e.toString===zr||!V(e.toString))?JSON.stringify(e,Qr,2):String(e),Qr=(e,t)=>t&&t.__v_isRef?Qr(e,t.value):yt(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r])=>(n[`${s} =>`]=r,n),{})}:pt(t)?{[`Set(${t.size})`]:[...t.values()]}:ee(t)&&!B(t)&&!Xr(t)?String(t):t;let xe;class Gr{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=xe,!t&&xe&&(this.index=(xe.scopes||(xe.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=xe;try{return xe=this,t()}finally{xe=n}}}on(){xe=this}off(){xe=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.detached&&t
|