sitoctt/Assets/vuesweeper-core/vendor.js

7 lines
88 KiB
JavaScript
Raw Normal View History

function tr(e,t){const n=Object.create(null),r=e.split(",");for(let s=0;s<r.length;s++)n[r[s]]=!0;return t?s=>!!n[s.toLowerCase()]:s=>!!n[s]}const Vo="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Yo=tr(Vo);function As(e){return!!e||e===""}function nr(e){if(z(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=_e(r)?Xo(r):nr(r);if(s)for(const o in s)t[o]=s[o]}return t}else{if(_e(e))return e;if(ve(e))return e}}const Jo=/;(?![^(]*\))/g,Qo=/:(.+)/;function Xo(e){const t={};return e.split(Jo).forEach(n=>{if(n){const r=n.split(Qo);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function rr(e){let t="";if(_e(e))t=e;else if(z(e))for(let n=0;n<e.length;n++){const r=rr(e[n]);r&&(t+=r+" ")}else if(ve(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Zu=e=>_e(e)?e:e==null?"":z(e)||ve(e)&&(e.toString===Ts||!V(e.toString))?JSON.stringify(e,Os,2):String(e),Os=(e,t)=>t&&t.__v_isRef?Os(e,t.value):Et(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s])=>(n[`${r} =>`]=s,n),{})}:Ms(t)?{[`Set(${t.size})`]:[...t.values()]}:ve(t)&&!z(t)&&!Is(t)?String(t):t,le={},wt=[],ke=()=>{},Zo=()=>!1,Go=/^on[^a-z]/,hn=e=>Go.test(e),sr=e=>e.startsWith("onUpdate:"),Ee=Object.assign,or=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},ei=Object.prototype.hasOwnProperty,ee=(e,t)=>ei.call(e,t),z=Array.isArray,Et=e=>pn(e)==="[object Map]",Ms=e=>pn(e)==="[object Set]",V=e=>typeof e=="function",_e=e=>typeof e=="string",ir=e=>typeof e=="symbol",ve=e=>e!==null&&typeof e=="object",Ss=e=>ve(e)&&V(e.then)&&V(e.catch),Ts=Object.prototype.toString,pn=e=>Ts.call(e),ti=e=>pn(e).slice(8,-1),Is=e=>pn(e)==="[object Object]",lr=e=>_e(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,en=tr(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),gn=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},ni=/-(\w)/g,Ue=gn(e=>e.replace(ni,(t,n)=>n?n.toUpperCase():"")),ri=/\B([A-Z])/g,Ot=gn(e=>e.replace(ri,"-$1").toLowerCase()),mn=gn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Cn=gn(e=>e?`on${mn(e)}`:""),Dt=(e,t)=>!Object.is(e,t),xn=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},rn=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},si=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Tr;const oi=()=>Tr||(Tr=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let Te;class ii{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&Te&&(this.parent=Te,this.index=(Te.scopes||(Te.scopes=[])).push(this)-1)}run(t){if(this.active)try{return Te=this,t()}finally{Te=this.parent}}on(){Te=this}off(){Te=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.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.active=!1}}}function li(e,t=Te){t&&t.active&&t.effects.push(e)}function ci(){return Te}function ui(e){Te&&Te.cleanups.push(e)}const cr=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Fs=e=>(e.w&st)>0,Ns=e=>(e.n&st)>0,ai=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=st},fi=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const s=t[r];Fs(s)&&!Ns(s)?s.delete(e):t[n++]=s,s.w&=~st,s.n&=~st}t.length=n}},Fn=new WeakMap;let Nt=0,st=1;const Nn=30;let De;const ft=Symbol(""),Ln=Symbol("");class ur{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,li(this,r)}run(){if(!this.active)return this.fn();let t=De,n=Ge;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=De,De=this,Ge=!0,st=1<<++Nt,Nt<=Nn?ai(this):Ir(this),this.fn()}finally{Nt<=Nn&&fi(this),st=1<<--Nt,De=this.parent,Ge=n,this.parent=void 0}}stop(){this.active&&(Ir(this),this.onStop&&this.onStop(),this.active=!1)}}function Ir(e){const{deps:t}=e;if(t.le
* vue-router v4.0.14
* (c) 2022 Eduardo San Martin Morote
* @license MIT
*/const Io=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Tt=e=>Io?Symbol(e):"_vr_"+e,bc=Tt("rvlm"),ss=Tt("rvd"),Pr=Tt("r"),Fo=Tt("rl"),Qn=Tt("rvl"),bt=typeof window!="undefined";function _c(e){return e.__esModule||Io&&e[Symbol.toStringTag]==="Module"}const ie=Object.assign;function Mn(e,t){const n={};for(const r in t){const s=t[r];n[r]=Array.isArray(s)?s.map(e):e(s)}return n}const Bt=()=>{},wc=/\/$/,Ec=e=>e.replace(wc,"");function Sn(e,t,n="/"){let r,s={},o="",i="";const l=t.indexOf("?"),c=t.indexOf("#",l>-1?l:0);return l>-1&&(r=t.slice(0,l),o=t.slice(l+1,c>-1?c:t.length),s=e(o)),c>-1&&(r=r||t.slice(0,c),i=t.slice(c,t.length)),r=Rc(r!=null?r:t,n),{fullPath:r+(o&&"?")+o+i,path:r,query:s,hash:i}}function Cc(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function os(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function xc(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&Rt(t.matched[r],n.matched[s])&&No(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Rt(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function No(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Pc(e[n],t[n]))return!1;return!0}function Pc(e,t){return Array.isArray(e)?is(e,t):Array.isArray(t)?is(t,e):e===t}function is(e,t){return Array.isArray(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function Rc(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let s=n.length-1,o,i;for(o=0;o<r.length;o++)if(i=r[o],!(s===1||i==="."))if(i==="..")s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}var qt;(function(e){e.pop="pop",e.push="push"})(qt||(qt={}));var Ht;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Ht||(Ht={}));function Ac(e){if(!e)if(bt){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),Ec(e)}const Oc=/^[^#]+#/;function Mc(e,t){return e.replace(Oc,"#")+t}function Sc(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const En=()=>({left:window.pageXOffset,top:window.pageYOffset});function Tc(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=Sc(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function ls(e,t){return(history.state?history.state.position-t:-1)+e}const Xn=new Map;function Ic(e,t){Xn.set(e,t)}function Fc(e){const t=Xn.get(e);return Xn.delete(e),t}let Nc=()=>location.protocol+"//"+location.host;function Lo(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let l=s.includes(e.slice(o))?e.slice(o).length:1,c=s.slice(l);return c[0]!=="/"&&(c="/"+c),os(c,"")}return os(n,e)+r+s}function Lc(e,t,n,r){let s=[],o=[],i=null;const l=({state:h})=>{const y=Lo(e,location),O=n.value,F=t.value;let A=0;if(h){if(n.value=y,t.value=h,i&&i===O){i=null;return}A=F?h.position-F.position:0}else r(y);s.forEach(S=>{S(n.value,O,{delta:A,type:qt.pop,direction:A?A>0?Ht.forward:Ht.back:Ht.unknown})})};function c(){i=n.value}function a(h){s.push(h);const y=()=>{const O=s.indexOf(h);O>-1&&s.splice(O,1)};return o.push(y),y}function f(){const{history:h}=window;!h.state||h.replaceState(ie({},h.state,{scroll:En()}),"")}function p(){for(const h of o)h();o=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",f),{pauseListeners:c,listen:a,destroy:p}}function cs(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?En():null}}function kc(e){const{history:t,locat
`);try{v=new Worker(URL.createObjectURL(new Blob([B])))}catch(q){return typeof console!==void 0&&typeof console.warn=="function"&&console.warn("\u{1F38A} Could not load worker",q),null}k(v)}return v}}(),f={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,x:.5,y:.5,shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],disableForReducedMotion:!1,scalar:1};function p(v,m){return m?m(v):v}function h(v){return v!=null}function y(v,m,H){return p(v&&h(v[m])?v[m]:f[m],H)}function O(v){return v<0?0:Math.floor(v)}function F(v,m){return Math.floor(Math.random()*(m-v))+v}function A(v){return parseInt(v,16)}function S(v){return v.map(I)}function I(v){var m=String(v).replace(/[^0-9a-f]/gi,"");return m.length<6&&(m=m[0]+m[0]+m[1]+m[1]+m[2]+m[2]),{r:A(m.substring(0,2)),g:A(m.substring(2,4)),b:A(m.substring(4,6))}}function D(v){var m=y(v,"origin",Object);return m.x=y(m,"x",Number),m.y=y(m,"y",Number),m}function J(v){v.width=document.documentElement.clientWidth,v.height=document.documentElement.clientHeight}function se(v){var m=v.getBoundingClientRect();v.width=m.width,v.height=m.height}function he(v){var m=document.createElement("canvas");return m.style.position="fixed",m.style.top="0px",m.style.left="0px",m.style.pointerEvents="none",m.style.zIndex=v,m}function Q(v,m,H,k,B,q,Y,X,re){v.save(),v.translate(m,H),v.rotate(q),v.scale(k,B),v.arc(0,0,1,Y,X,re),v.restore()}function de(v){var m=v.angle*(Math.PI/180),H=v.spread*(Math.PI/180);return{x:v.x,y:v.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:v.startVelocity*.5+Math.random()*v.startVelocity,angle2D:-m+(.5*H-Math.random()*H),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:v.color,shape:v.shape,tick:0,totalTicks:v.ticks,decay:v.decay,drift:v.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:v.gravity*3,ovalScalar:.6,scalar:v.scalar}}function ue(v,m){m.x+=Math.cos(m.angle2D)*m.velocity+m.drift,m.y+=Math.sin(m.angle2D)*m.velocity+m.gravity,m.wobble+=m.wobbleSpeed,m.velocity*=m.decay,m.tiltAngle+=.1,m.tiltSin=Math.sin(m.tiltAngle),m.tiltCos=Math.cos(m.tiltAngle),m.random=Math.random()+2,m.wobbleX=m.x+10*m.scalar*Math.cos(m.wobble),m.wobbleY=m.y+10*m.scalar*Math.sin(m.wobble);var H=m.tick++/m.totalTicks,k=m.x+m.random*m.tiltCos,B=m.y+m.random*m.tiltSin,q=m.wobbleX+m.random*m.tiltCos,Y=m.wobbleY+m.random*m.tiltSin;return v.fillStyle="rgba("+m.color.r+", "+m.color.g+", "+m.color.b+", "+(1-H)+")",v.beginPath(),m.shape==="circle"?v.ellipse?v.ellipse(m.x,m.y,Math.abs(q-k)*m.ovalScalar,Math.abs(Y-B)*m.ovalScalar,Math.PI/10*m.wobble,0,2*Math.PI):Q(v,m.x,m.y,Math.abs(q-k)*m.ovalScalar,Math.abs(Y-B)*m.ovalScalar,Math.PI/10*m.wobble,0,2*Math.PI):(v.moveTo(Math.floor(m.x),Math.floor(m.y)),v.lineTo(Math.floor(m.wobbleX),Math.floor(B)),v.lineTo(Math.floor(q),Math.floor(Y)),v.lineTo(Math.floor(k),Math.floor(m.wobbleY))),v.closePath(),v.fill(),m.tick<m.totalTicks}function we(v,m,H,k,B){var q=m.slice(),Y=v.getContext("2d"),X,re,me=l(function(fe){function b(){X=re=null,Y.clearRect(0,0,k.width,k.height),B(),fe()}function T(){r&&!(k.width===s.width&&k.height===s.height)&&(k.width=v.width=s.width,k.height=v.height=s.height),!k.width&&!k.height&&(H(v),k.width=v.width,k.height=v.height),Y.clearRect(0,0,k.width,k.height),q=q.filter(function(E){return ue(Y,E)}),q.length?X=c.frame(T):b()}X=c.frame(T),re=b});return{addFettis:function(fe){return q=q.concat(fe),me},canvas:v,promise:me,reset:function(){X&&c.cancel(X),re&&re()}}}function pe(v,m){var H=!v,k=!!y(m||{},"resize"),B=y(m,"disableForReducedMotion",Boolean),q=o&&!!y(m||{},"useWorker"),Y=q?a():null,X=H?J:se,re=v&&Y?!!v.__confetti_initialized:!1,me=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,fe;function b(E,L,te){for(var Z=y(E,"particleCount",O),W=y(E,"angle",Number),U=y(E,"spread",Number),u=y(E,"startVelocity",Number),d=y(E,"decay",Number),g=y(E,"gravity",Number),w=y(E,"drift",Number),_=y(E,"colors",S),P=y(E,"ticks",Number),M=y(E,"shapes"),x=y(E,"scalar"),R=D(