sheep/dist/assets/index.ded8c5da.js

3 lines
78 KiB
JavaScript
Raw Normal View History

2022-09-30 09:55:16 +08:00
var So=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Bu=So((Ve,Ye)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerpolicy&&(o.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?o.credentials="include":s.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();function Qn(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 Ro="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",Lo=Qn(Ro);function bs(e){return!!e||e===""}function un(e){if(B(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=pe(r)?Bo(r):un(r);if(s)for(const o in s)t[o]=s[o]}return t}else{if(pe(e))return e;if(le(e))return e}}const $o=/;(?![^(]*\))/g,ko=/:(.+)/;function Bo(e){const t={};return e.split($o).forEach(n=>{if(n){const r=n.split(ko);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Gn(e){let t="";if(pe(e))t=e;else if(B(e))for(let n=0;n<e.length;n++){const r=Gn(e[n]);r&&(t+=r+" ")}else if(le(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const Do=e=>pe(e)?e:e==null?"":B(e)||le(e)&&(e.toString===xs||!z(e.toString))?JSON.stringify(e,_s,2):String(e),_s=(e,t)=>t&&t.__v_isRef?_s(e,t.value):Ct(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s])=>(n[`${r} =>`]=s,n),{})}:ys(t)?{[`Set(${t.size})`]:[...t.values()]}:le(t)&&!B(t)&&!Ts(t)?String(t):t,se={},Tt=[],$e=()=>{},Ho=()=>!1,Uo=/^on[^a-z]/,an=e=>Uo.test(e),er=e=>e.startsWith("onUpdate:"),me=Object.assign,tr=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Ko=Object.prototype.hasOwnProperty,X=(e,t)=>Ko.call(e,t),B=Array.isArray,Ct=e=>dn(e)==="[object Map]",ys=e=>dn(e)==="[object Set]",z=e=>typeof e=="function",pe=e=>typeof e=="string",nr=e=>typeof e=="symbol",le=e=>e!==null&&typeof e=="object",vs=e=>le(e)&&z(e.then)&&z(e.catch),xs=Object.prototype.toString,dn=e=>xs.call(e),Wo=e=>dn(e).slice(8,-1),Ts=e=>dn(e)==="[object Object]",rr=e=>pe(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,en=Qn(",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))},zo=/-(\w)/g,At=hn(e=>e.replace(zo,(t,n)=>n?n.toUpperCase():"")),qo=/\B([A-Z])/g,Ot=hn(e=>e.replace(qo,"-$1").toLowerCase()),Cs=hn(e=>e.charAt(0).toUpperCase()+e.slice(1)),Tn=hn(e=>e?`on${Cs(e)}`:""),Ht=(e,t)=>!Object.is(e,t),Cn=(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})},ws=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Ar;const Vo=()=>Ar||(Ar=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});let Ue;class Yo{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&Ue&&(this.parent=Ue,this.index=(Ue.scopes||(Ue.scopes=[])).push(this)-1)}run(t){if(this.active){const n=Ue;try{return Ue=this,t()}finally{Ue=n}}}on(){Ue=this}off(){Ue=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 Xo(e,t=Ue){t&&t.active&&t.effects.push(e)}const sr=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Es=e=>(e.w&it)>0,As=e=>(e.n&it)>0,Jo=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=it},Zo=e=>{const{deps:t}=
`);try{p=new Worker(URL.createObjectURL(new Blob([P])))}catch(W){return typeof console!==void 0&&typeof console.warn=="function"&&console.warn("\u{1F38A} Could not load worker",W),null}O(p)}return p}}(),g={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 y(p,d){return d?d(p):p}function x(p){return p!=null}function v(p,d,S){return y(p&&x(p[d])?p[d]:g[d],S)}function R(p){return p<0?0:Math.floor(p)}function K(p,d){return Math.floor(Math.random()*(d-p))+p}function L(p){return parseInt(p,16)}function D(p){return p.map(ae)}function ae(p){var d=String(p).replace(/[^0-9a-f]/gi,"");return d.length<6&&(d=d[0]+d[0]+d[1]+d[1]+d[2]+d[2]),{r:L(d.substring(0,2)),g:L(d.substring(2,4)),b:L(d.substring(4,6))}}function Q(p){var d=v(p,"origin",Object);return d.x=v(d,"x",Number),d.y=v(d,"y",Number),d}function G(p){p.width=document.documentElement.clientWidth,p.height=document.documentElement.clientHeight}function fe(p){var d=p.getBoundingClientRect();p.width=d.width,p.height=d.height}function q(p){var d=document.createElement("canvas");return d.style.position="fixed",d.style.top="0px",d.style.left="0px",d.style.pointerEvents="none",d.style.zIndex=p,d}function ee(p,d,S,O,P,W,$,H,Y){p.save(),p.translate(d,S),p.rotate(W),p.scale(O,P),p.arc(0,0,1,$,H,Y),p.restore()}function I(p){var d=p.angle*(Math.PI/180),S=p.spread*(Math.PI/180);return{x:p.x,y:p.y,wobble:Math.random()*10,wobbleSpeed:Math.min(.11,Math.random()*.1+.05),velocity:p.startVelocity*.5+Math.random()*p.startVelocity,angle2D:-d+(.5*S-Math.random()*S),tiltAngle:(Math.random()*(.75-.25)+.25)*Math.PI,color:p.color,shape:p.shape,tick:0,totalTicks:p.ticks,decay:p.decay,drift:p.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:p.gravity*3,ovalScalar:.6,scalar:p.scalar}}function k(p,d){d.x+=Math.cos(d.angle2D)*d.velocity+d.drift,d.y+=Math.sin(d.angle2D)*d.velocity+d.gravity,d.wobble+=d.wobbleSpeed,d.velocity*=d.decay,d.tiltAngle+=.1,d.tiltSin=Math.sin(d.tiltAngle),d.tiltCos=Math.cos(d.tiltAngle),d.random=Math.random()+2,d.wobbleX=d.x+10*d.scalar*Math.cos(d.wobble),d.wobbleY=d.y+10*d.scalar*Math.sin(d.wobble);var S=d.tick++/d.totalTicks,O=d.x+d.random*d.tiltCos,P=d.y+d.random*d.tiltSin,W=d.wobbleX+d.random*d.tiltCos,$=d.wobbleY+d.random*d.tiltSin;return p.fillStyle="rgba("+d.color.r+", "+d.color.g+", "+d.color.b+", "+(1-S)+")",p.beginPath(),d.shape==="circle"?p.ellipse?p.ellipse(d.x,d.y,Math.abs(W-O)*d.ovalScalar,Math.abs($-P)*d.ovalScalar,Math.PI/10*d.wobble,0,2*Math.PI):ee(p,d.x,d.y,Math.abs(W-O)*d.ovalScalar,Math.abs($-P)*d.ovalScalar,Math.PI/10*d.wobble,0,2*Math.PI):(p.moveTo(Math.floor(d.x),Math.floor(d.y)),p.lineTo(Math.floor(d.wobbleX),Math.floor(P)),p.lineTo(Math.floor(W),Math.floor($)),p.lineTo(Math.floor(O),Math.floor(d.wobbleY))),p.closePath(),p.fill(),d.tick<d.totalTicks}function j(p,d,S,O,P){var W=d.slice(),$=p.getContext("2d"),H,Y,he=l(function(ce){function Pe(){H=Y=null,$.clearRect(0,0,O.width,O.height),P(),ce()}function Te(){r&&!(O.width===s.width&&O.height===s.height)&&(O.width=p.width=s.width,O.height=p.height=s.height),!O.width&&!O.height&&(S(p),O.width=p.width,O.height=p.height),$.clearRect(0,0,O.width,O.height),W=W.filter(function(V){return k($,V)}),W.length?H=f.frame(Te):Pe()}H=f.frame(Te),Y=Pe});return{addFettis:function(ce){return W=W.concat(ce),he},canvas:p,promise:he,reset:function(){H&&f.cancel(H),Y&&Y()}}}function ue(p,d){var S=!p,O=!!v(d||{},"resize"),P=v(d,"disableForReducedMotion",Boolean),W=o&&!!v(d||{},"useWorker"),$=W?a():null,H=S?G:fe,Y=p&&$?!!p.__confetti_initialized:!1,he=typeof matchMedia=="function"&&matchMedia("(prefers-reduced-motion)").matches,ce;function Pe(V,je,Be){for(var Ae=v(V,"particleCount",R),Ze=v(V,"angle",Number),Qe=v(V,"spread",Number),c=v(V,"startVelocity",Number),u=v(V,"decay",Number),h=v(V,"gravity",Number),b=v(V,"drift",Number),m=v(V,"colors",D),C=v(V,"ticks",Number),E=v(V,"shapes"),T=v(V,"scalar"),w=