2 lines
864 KiB
JavaScript
2 lines
864 KiB
JavaScript
|
function e(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return e=>e in t}const t={},n=[],r=()=>{},o=()=>!1,i=e=>111===e.charCodeAt(0)&&110===e.charCodeAt(1)&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),a=e=>e.startsWith("onUpdate:"),u=Object.assign,s=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},l=Object.prototype.hasOwnProperty,c=(e,t)=>l.call(e,t),f=Array.isArray,d=e=>"[object Map]"===E(e),p=e=>"[object Set]"===E(e),h=e=>"[object Date]"===E(e),g=e=>"function"==typeof e,v=e=>"string"==typeof e,y=e=>"symbol"==typeof e,m=e=>null!==e&&"object"==typeof e,b=e=>(m(e)||g(e))&&g(e.then)&&g(e.catch),w=Object.prototype.toString,E=e=>w.call(e),x=e=>"[object Object]"===E(e),C=e=>v(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,S=e(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),D=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},A=/-(\w)/g,O=D((e=>e.replace(A,((e,t)=>t?t.toUpperCase():"")))),_=/\B([A-Z])/g,k=D((e=>e.replace(_,"-$1").toLowerCase())),B=D((e=>e.charAt(0).toUpperCase()+e.slice(1))),F=D((e=>e?`on${B(e)}`:"")),T=(e,t)=>!Object.is(e,t),P=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},j=(e,t,n,r=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},N=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let I;const L=()=>I||(I="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function R(e){if(f(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],o=v(r)?H(r):R(r);if(o)for(const e in o)t[e]=o[e]}return t}if(v(e)||m(e))return e}const M=/;(?![^(]*\))/g,z=/:([^]+)/,$=/\/\*[^]*?\*\//g;function H(e){const t={};return e.replace($,"").split(M).forEach((e=>{if(e){const n=e.split(z);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function V(e){let t="";if(v(e))t=e;else if(f(e))for(let n=0;n<e.length;n++){const r=V(e[n]);r&&(t+=r+" ")}else if(m(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function U(e){if(!e)return null;let{class:t,style:n}=e;return t&&!v(t)&&(e.class=V(t)),n&&(e.style=R(n)),e}const W=e("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function G(e){return!!e||""===e}function q(e,t){if(e===t)return!0;let n=h(e),r=h(t);if(n||r)return!(!n||!r)&&e.getTime()===t.getTime();if(n=y(e),r=y(t),n||r)return e===t;if(n=f(e),r=f(t),n||r)return!(!n||!r)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=q(e[r],t[r]);return n}(e,t);if(n=m(e),r=m(t),n||r){if(!n||!r)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const r=e.hasOwnProperty(n),o=t.hasOwnProperty(n);if(r&&!o||!r&&o||!q(e[n],t[n]))return!1}}return String(e)===String(t)}function K(e,t){return e.findIndex((e=>q(e,t)))}const Y=e=>!(!e||!0!==e.__v_isRef),X=e=>v(e)?e:null==e?"":f(e)||m(e)&&(e.toString===w||!g(e.toString))?Y(e)?X(e.value):JSON.stringify(e,Z,2):String(e),Z=(e,t)=>Y(t)?Z(e,t.value):d(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n],r)=>(e[J(t,r)+" =>"]=n,e)),{})}:p(t)?{[`Set(${t.size})`]:[...t.values()].map((e=>J(e)))}:y(t)?J(t):!m(t)||f(t)||x(t)?t:String(t),J=(e,t="")=>{var n;return y(e)?`Symbol(${null!=(n=e.description)?n:t})`:e};let Q,ee;class te{constructor(e=!1){this.detached=e,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=Q,!e&&Q&&(this.index=(Q.scopes||(Q.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){let e,t;if(this._isPaused=!0,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].pause();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].pause()}}resume(){if(this._active&&this._isPaused){let e,t;if(this._isPaused=!1,this.scopes)for(e=0,t=this.scopes.length;e<t;e++)this.scopes[e].resume();for(e=0,t=this.effects.length;e<t;e++)this.effects[e].resume()}}run(e){if(this._active){const t=Q;try{return Q=this,e()}finally{Q=t}}}on(){1===++this._on&&(this.prevScope=Q,Q=this)}off(){this._on>0&&0===--this._on&&(Q=
|