@gkits/collect 0.0.19 → 0.0.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +2 -2
package/dist/index.js CHANGED
@@ -470,4 +470,4 @@ ${ht("flex")}
470
470
  <span class="Badge PosA TC" style="${o=>o.badgeStyle}">${o=>o.count}</span>
471
471
  ${l((o=>o.text),n`<span class="BadgeText">${o=>o.text}</span>`)}
472
472
  </template>
473
- `;let Xt=class extends vt{countChanged(o,t){String(t).length>1?wo(this)("suit"):Oo(this)("suit")}connectedCallback(){if(super.connectedCallback(),null!=this.count&&null!=this.count||this.dot)Oo(this)("invalid");else switch(wo(this)("invalid"),this.status){case"success":this.badgeStyle=`background: ${et["--successColor"]}`;break;case"error":this.badgeStyle=`background: ${et["--errorColor"]}`;break;case"warning":this.badgeStyle=`background: ${et["--warningColor"]}`;break;case"processing":this.badgeStyle=`background: ${et["--primaryColor"]}`;break;case"default":return void(this.badgeStyle=`background: ${et["--colorNeutral5"]}`)}}};var _t,$t,oi,ti;function ii(o){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(o){return!1}}();return function(){var i,e=g(o);if(t){var n=g(this).constructor;i=Reflect.construct(e,arguments,n)}else i=e.apply(this,arguments);return K(this,i)}}Jo([t],Xt.prototype,"count",void 0),Jo([t({mode:"boolean"})],Xt.prototype,"dot",void 0),Jo([t],Xt.prototype,"badgeStyle",void 0),Jo([t({mode:"boolean"})],Xt.prototype,"standAlone",void 0),Jo([t],Xt.prototype,"status",void 0),Jo([t],Xt.prototype,"text",void 0),Xt=Jo([i({name:"h-badge",styles:Lt,template:Wt,shadowOptions:{mode:"closed"}})],Xt);var ei,ni=n(_t||(_t=N(['\n<section class="ListWrap">\n <div class="Synthesis">\n <span>\n ','\n </span>\n <img class="Img ','" src="','/download/img/collect/synthesis.png" />\n </div>\n <span class="CardWrap">\n ',"\n </span>\n</section>\n"])),l((function(o){return o.isVideo}),n($t||($t=N(['<div style="position:absolute; z-index:4; display: block;height: 100%;width: 100%;" @click="','"> <h-svga class="Svga" path="','/download/img/collect/hecheng.svga"></h-svga><img class="Tips" src="','/download/img/collect/tips.png" /></div>'])),(function(o){return o.SynthesisFn()}),location.href.indexOf(atob("eXMtempycw=="))>-1?Uo.pathys:Uo.path,Uo.path)),(function(o){return o.isVideo?"hide":""}),Uo.path,s((function(o){return o.cardItem}),n(oi||(oi=N(['<div class="Card">\n ','\n <img src="','"/></div>'])),l((function(o){return o.total>0}),n(ti||(ti=N(['<h-badge count="','"></h-badge>'])),(function(o){return o.total}))),(function(o){return o.total>0?o.card:o.grey})),{positioning:!0})),ai=function(o){m(i,e);var t=ii(i);function i(){var o;return c(this,i),(o=t.call(this)).isVideo=!1,o.cardItem=Array.from({length:4},(function(o,t){return{card:"".concat(Uo.path,"/download/img/collect/small0").concat(t+1,".png"),grey:"".concat(Uo.path,"/download/img/collect/small0").concat(t+1,"-1.png")}})),go.case.install([Xt,Ct]),o}return S(i,[{key:"connectedCallback",value:function(){x(g(i.prototype),"connectedCallback",this).call(this)}},{key:"SynthesisFn",value:function(){this.$emit("change","synthesis")}},{key:"revert",value:function(){this.isVideo=!1,this.cardItem=Array.from({length:4},(function(o,t){return{card:"".concat(Uo.path,"/download/img/collect/small0").concat(t+1,".png"),grey:"".concat(Uo.path,"/download/img/collect/small0").concat(t+1,"-1.png")}}))}},{key:"update",value:function(o){if(o&&o.isRevert)this.revert();else if(o&&o.cardList){for(var t=Array.from({length:4}),i=0;i<o.cardList.length;i++){var e=o.cardList[i];t[e.cardType-1]={total:e.cardNum,card:"".concat(Uo.path,"/download/img/collect/small0").concat(e.cardType,".png"),grey:"".concat(Uo.path,"/download/img/collect/small0").concat(e.cardType,"-1.png")}}this.cardItem=t,this.isVideo=o.isCanCompose}}}]),i}();y([r],ai.prototype,"isVideo",void 0),y([r],ai.prototype,"cardItem",void 0),y([Tt(300)],ai.prototype,"SynthesisFn",null),ai=y([i({name:"g-collect-list",template:ni,styles:Vt,shadowOptions:{mode:"closed"}})],ai);var ri=o(ei||(ei=N(["\n","\n:host{text-align:center;}\n.VideoWrap{position:absolute;display:flex;width:100vw;height:100vh;justify-content:center;align-items:center}\n.PrizeWrap {position:fixed;top:0;left:0;width:100vw;height:100vh;display:block;}\n.PrizeWrap .Content{position:relative; z-index:60;height:100%;\n padding-top: 20vw;text-align:center;","\n}\n.PrizeWrap .Title img{\n height:17.0666666666vw\n}\n.PrizeWrap .Subtitle{\nfont-size: 14px;font-weight: 400;line-height: 14px;\ncolor: #FFFFFF;\n}\n.PrizeWrap .Notes{\nposition:absolute;bottom:5vw;width:100%;\nfont-size: 12px;\ncolor: #FFF1D8;\nline-height: 18px;\nfont-weight: 400;\n}\n\n\n.Conten{position:fixed;top:0;left:0;width:100vw;height:100vh; z-index:2;display:block;}\n.Conten .Bg{position:fixed;top:0;left:0;width:100%;height:100%;\n background:url(","/download/img/collect/bg.png) no-repeat center;\n background-size: cover;\n}\n.Conten .Img{position: absolute; overflow:hidden;\nz-index:99;left:20vw;top:50vw; \nwidth:60vw;\nheight:70vw;}\n.Conten .Light{position: absolute;top: 0;",'\n bottom: 0;width:100%; overflow:hidden;\n left: 0;z-index:30;\n border-radius:8vw;}\n.Conten .Light::after{\n content: "";\n background-color: #fff9;\n opacity: 0.6;\n top: -25%;\n bottom: 0;\n left: -100%;\n position: absolute;\n width: 13vw;\n height:150%;\n box-shadow: 0 0 10vmin 2.5vmin #fff;\n transform:rotateZ(145deg);\n transition: all 05s ease;\n animation-duration: 0.5s;\n animation-delay: 1s;\n animation-name: Light\n}\n\n.Conten .Img .Card {width:100%;height:100%}\n@keyframes Light{\n to{\n left: 400px;\n transition: left 0.5s ease 0s;\n }\n}\n\n@keyframes zoomInUp {\n from {opacity: 0;transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0);animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.49)}\n 60% {opacity: 1;transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -20px, 0);animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.5)}\n}\n.zoomInUp {animation-duration: 1s;\n animation-fill-mode: both;animation-name: zoomInUp}\n\n.CouponWrap {position:relative;}\n.CouponWrap .Info{position:absolute;width:100%;top:14.4vw;left:0;z-index:20;text-align:center;}\n.VideoWrap .Bg,\n.CouponWrap .Bg{position:fixed;top:0;left:0;width:100%;height:100%;\n background:url(',"/download/img/collect/bg.png) no-repeat center;\n background-size: cover;\n}\n.Coupon{width:100%;height:70vw;position:relative;z-index:9;}\n\n.Button{position:absolute;width:100%;bottom:30vw;text-align:center;","}\n.Button img{height:20.26666666vw}\n\n.transit{opacity: 0;transition: opacity 1s ease-in-out;}\n.show.transit{opacity: 1;transition-delay: 1s;}\n\n@media screen and (max-height : 210vw) {\n .Button{bottom:27vw;}\n}\n@media screen and (max-height : 200vw) {\n .Button{bottom:25vw;}\n}\n@media screen and (max-height : 190vw) {\n .Button{bottom:22vw;}\n}\n@media screen and (max-height : 180vw) {\n .VideoWrap video{margin-top:10vw;}\n .Button{bottom:20vw;}\n}\n@media screen and (max-height : 170vw) {\n .VideoWrap video{margin-top:15vw;}\n .Button{bottom:15vw;}\n}\n"])),xo(),ko(["PoiNo"]),Uo.path,ko(["PoiNo"]),Uo.path,ko(["PoiAll"]));function Ri(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var si,li={exports:{}};(si=li).exports=function(o,t){if(!(o instanceof t))throw new TypeError("Cannot call a class as a function")},si.exports.__esModule=!0,si.exports.default=si.exports;var Ii=Ri(li.exports),hi={exports:{}},pi={exports:{}},ci={exports:{}};!function(o){function t(i){return o.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},o.exports.__esModule=!0,o.exports.default=o.exports,t(i)}o.exports=t,o.exports.__esModule=!0,o.exports.default=o.exports}(ci);var di=Ri(ci.exports),ji={exports:{}};!function(o){var t=ci.exports.default;o.exports=function(o,i){if("object"!==t(o)||null===o)return o;var e=o[Symbol.toPrimitive];if(void 0!==e){var n=e.call(o,i||"default");if("object"!==t(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(o)},o.exports.__esModule=!0,o.exports.default=o.exports}(ji),function(o){var t=ci.exports.default,i=ji.exports;o.exports=function(o){var e=i(o,"string");return"symbol"===t(e)?e:String(e)},o.exports.__esModule=!0,o.exports.default=o.exports}(pi),function(o){var t=pi.exports;function i(o,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(o,t(n.key),n)}}o.exports=function(o,t,e){return t&&i(o.prototype,t),e&&i(o,e),Object.defineProperty(o,"prototype",{writable:!1}),o},o.exports.__esModule=!0,o.exports.default=o.exports}(hi);var fi=Ri(hi.exports),Ei={exports:{}},Si={exports:{}},Gi={exports:{}};!function(o){function t(i){return o.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},o.exports.__esModule=!0,o.exports.default=o.exports,t(i)}o.exports=t,o.exports.__esModule=!0,o.exports.default=o.exports}(Gi);var ui=Ri(Gi.exports);!function(o){var t=Gi.exports;o.exports=function(o,i){for(;!Object.prototype.hasOwnProperty.call(o,i)&&null!==(o=t(o)););return o},o.exports.__esModule=!0,o.exports.default=o.exports}(Si),function(o){var t=Si.exports;function i(){return"undefined"!=typeof Reflect&&Reflect.get?(o.exports=i=Reflect.get.bind(),o.exports.__esModule=!0,o.exports.default=o.exports):(o.exports=i=function(o,i,e){var n=t(o,i);if(n){var a=Object.getOwnPropertyDescriptor(n,i);return a.get?a.get.call(arguments.length<3?o:e):a.value}},o.exports.__esModule=!0,o.exports.default=o.exports),i.apply(this,arguments)}o.exports=i,o.exports.__esModule=!0,o.exports.default=o.exports}(Ei);var ki=Ri(Ei.exports),gi={exports:{}},xi={exports:{}};!function(o){function t(i,e){return o.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,t){return o.__proto__=t,o},o.exports.__esModule=!0,o.exports.default=o.exports,t(i,e)}o.exports=t,o.exports.__esModule=!0,o.exports.default=o.exports}(xi),function(o){var t=xi.exports;o.exports=function(o,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(i&&i.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),i&&t(o,i)},o.exports.__esModule=!0,o.exports.default=o.exports}(gi);var vi=Ri(gi.exports),Ui={exports:{}},mi={exports:{}};!function(o){o.exports=function(o){if(void 0===o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o},o.exports.__esModule=!0,o.exports.default=o.exports}(mi),function(o){var t=ci.exports.default,i=mi.exports;o.exports=function(o,e){if(e&&("object"===t(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return i(o)},o.exports.__esModule=!0,o.exports.default=o.exports}(Ui);var Ji,Ci,Ki=Ri(Ui.exports);function bi(o,t,i,e){var n,a=arguments.length,r=a<3?t:null===e?e=Object.getOwnPropertyDescriptor(t,i):e;if("object"===("undefined"==typeof Reflect?"undefined":di(Reflect))&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,i,e);else for(var R=o.length-1;R>=0;R--)(n=o[R])&&(r=(a<3?n(r):a>3?n(t,i,r):n(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r}Ji=window,Ci={},function o(t,i,e,n){var a=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL),r="function"==typeof Path2D&&"function"==typeof DOMMatrix,R=function(){if(!t.OffscreenCanvas)return!1;var o=new OffscreenCanvas(1,1),i=o.getContext("2d");i.fillRect(0,0,1,1);var e=o.transferToImageBitmap();try{i.createPattern(e,"no-repeat")}catch(o){return!1}return!0}();function s(){}function l(o){var e=i.exports.Promise,n=void 0!==e?e:t.Promise;return"function"==typeof n?new n(o):(o(s,s),null)}var I,h,p,c,d,j,f,E,S,G,u,k=(I=R,h=new Map,{transform:function(o){if(I)return o;if(h.has(o))return h.get(o);var t=new OffscreenCanvas(o.width,o.height);return t.getContext("2d").drawImage(o,0,0),h.set(o,t),t},clear:function(){h.clear()}}),g=(d=Math.floor(1e3/60),j={},f=0,"function"==typeof requestAnimationFrame&&"function"==typeof cancelAnimationFrame?(p=function(o){var t=Math.random();return j[t]=requestAnimationFrame((function i(e){f===e||f+d-1<e?(f=e,delete j[t],o()):j[t]=requestAnimationFrame(i)})),t},c=function(o){j[o]&&cancelAnimationFrame(j[o])}):(p=function(o){return setTimeout(o,d)},c=function(o){return clearTimeout(o)}),{frame:p,cancel:c}),x=(G={},function(){if(E)return E;if(!e&&a){var t=["var CONFETTI, SIZE = {}, module = {};","("+o.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI && CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join("\n");try{E=new Worker(URL.createObjectURL(new Blob([t])))}catch(o){return void 0!==("undefined"==typeof console?"undefined":di(console))&&"function"==typeof console.warn&&console.warn("🎊 Could not load worker",o),null}!function(o){function t(t,i){o.postMessage({options:t||{},callback:i})}o.init=function(t){var i=t.transferControlToOffscreen();o.postMessage({canvas:i},[i])},o.fire=function(i,e,n){if(S)return t(i,null),S;var a=Math.random().toString(36).slice(2);return S=l((function(e){function r(t){t.data.callback===a&&(delete G[a],o.removeEventListener("message",r),S=null,k.clear(),n(),e())}o.addEventListener("message",r),t(i,a),G[a]=r.bind(null,{data:{callback:a}})}))},o.reset=function(){for(var t in o.postMessage({reset:!0}),G)G[t](),delete G[t]}}(E)}return E}),v={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 U(o,t,i){return function(o,t){return t?t(o):o}(o&&null!=o[t]?o[t]:v[t],i)}function m(o){return o<0?0:Math.floor(o)}function J(o){return parseInt(o,16)}function C(o){return o.map(K)}function K(o){var t=String(o).replace(/[^0-9a-f]/gi,"");return t.length<6&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),{r:J(t.substring(0,2)),g:J(t.substring(2,4)),b:J(t.substring(4,6))}}function b(o){o.width=document.documentElement.clientWidth,o.height=document.documentElement.clientHeight}function N(o){var t=o.getBoundingClientRect();o.width=t.width,o.height=t.height}function M(o,t){t.x+=Math.cos(t.angle2D)*t.velocity+t.drift,t.y+=Math.sin(t.angle2D)*t.velocity+t.gravity,t.velocity*=t.decay,t.flat?(t.wobble=0,t.wobbleX=t.x+10*t.scalar,t.wobbleY=t.y+10*t.scalar,t.tiltSin=0,t.tiltCos=0,t.random=1):(t.wobble+=t.wobbleSpeed,t.wobbleX=t.x+10*t.scalar*Math.cos(t.wobble),t.wobbleY=t.y+10*t.scalar*Math.sin(t.wobble),t.tiltAngle+=.1,t.tiltSin=Math.sin(t.tiltAngle),t.tiltCos=Math.cos(t.tiltAngle),t.random=Math.random()+2);var i=t.tick++/t.totalTicks,e=t.x+t.random*t.tiltCos,n=t.y+t.random*t.tiltSin,a=t.wobbleX+t.random*t.tiltCos,R=t.wobbleY+t.random*t.tiltSin;if(o.fillStyle="rgba("+t.color.r+", "+t.color.g+", "+t.color.b+", "+(1-i)+")",o.beginPath(),r&&"path"===t.shape.type&&"string"==typeof t.shape.path&&Array.isArray(t.shape.matrix))o.fill(function(o,t,i,e,n,a,r){var R=new Path2D(o),s=new Path2D;s.addPath(R,new DOMMatrix(t));var l=new Path2D;return l.addPath(s,new DOMMatrix([Math.cos(r)*n,Math.sin(r)*n,-Math.sin(r)*a,Math.cos(r)*a,i,e])),l}(t.shape.path,t.shape.matrix,t.x,t.y,.1*Math.abs(a-e),.1*Math.abs(R-n),Math.PI/10*t.wobble));else if("bitmap"===t.shape.type){var s=Math.PI/10*t.wobble,l=.1*Math.abs(a-e),I=.1*Math.abs(R-n),h=t.shape.bitmap.width*t.scalar,p=t.shape.bitmap.height*t.scalar,c=new DOMMatrix([Math.cos(s)*l,Math.sin(s)*l,-Math.sin(s)*I,Math.cos(s)*I,t.x,t.y]);c.multiplySelf(new DOMMatrix(t.shape.matrix));var d=o.createPattern(k.transform(t.shape.bitmap),"no-repeat");d.setTransform(c),o.globalAlpha=1-i,o.fillStyle=d,o.fillRect(t.x-h/2,t.y-p/2,h,p),o.globalAlpha=1}else if("circle"===t.shape)o.ellipse?o.ellipse(t.x,t.y,Math.abs(a-e)*t.ovalScalar,Math.abs(R-n)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):function(o,t,i,e,n,a,r,R,s){o.save(),o.translate(t,i),o.rotate(a),o.scale(e,n),o.arc(0,0,1,0,R,void 0),o.restore()}(o,t.x,t.y,Math.abs(a-e)*t.ovalScalar,Math.abs(R-n)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI);else if("star"===t.shape)for(var j=Math.PI/2*3,f=4*t.scalar,E=8*t.scalar,S=t.x,G=t.y,u=5,g=Math.PI/u;u--;)S=t.x+Math.cos(j)*E,G=t.y+Math.sin(j)*E,o.lineTo(S,G),j+=g,S=t.x+Math.cos(j)*f,G=t.y+Math.sin(j)*f,o.lineTo(S,G),j+=g;else o.moveTo(Math.floor(t.x),Math.floor(t.y)),o.lineTo(Math.floor(t.wobbleX),Math.floor(n)),o.lineTo(Math.floor(a),Math.floor(R)),o.lineTo(Math.floor(e),Math.floor(t.wobbleY));return o.closePath(),o.fill(),t.tick<t.totalTicks}function Q(o,i){var r,R=!o,s=!!U(i||{},"resize"),I=!1,h=U(i,"disableForReducedMotion",Boolean),p=a&&U(i||{},"useWorker")?x():null,c=R?b:N,d=!(!o||!p||!o.__confetti_initialized),j="function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function f(t,i,a){for(var R,s,I,h,p=U(t,"particleCount",m),d=U(t,"angle",Number),j=U(t,"spread",Number),f=U(t,"startVelocity",Number),E=U(t,"decay",Number),S=U(t,"gravity",Number),G=U(t,"drift",Number),u=U(t,"colors",C),x=U(t,"ticks",Number),v=U(t,"shapes"),J=U(t,"scalar"),K=!!U(t,"flat"),b=function(o){var t=U(o,"origin",Object);return t.x=U(t,"x",Number),t.y=U(t,"y",Number),t}(t),N=p,Q=[],y=o.width*b.x,Y=o.height*b.y;N--;)Q.push((s=(R={x:y,y:Y,angle:d,spread:j,startVelocity:f,color:u[N%u.length],shape:v[(h=v.length,Math.floor(Math.random()*(h-0))+0)],ticks:x,decay:E,gravity:S,drift:G,scalar:J,flat:K}).angle*(Math.PI/180),I=R.spread*(Math.PI/180),{x:R.x,y:R.y,wobble:10*Math.random(),wobbleSpeed:Math.min(.11,.1*Math.random()+.05),velocity:.5*R.startVelocity+Math.random()*R.startVelocity,angle2D:-s+(.5*I-Math.random()*I),tiltAngle:(.5*Math.random()+.25)*Math.PI,color:R.color,shape:R.shape,tick:0,totalTicks:R.ticks,decay:R.decay,drift:R.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:3*R.gravity,ovalScalar:.6,scalar:R.scalar,flat:R.flat}));return r?r.addFettis(Q):(r=function(o,t,i,a,r){var R,s,I=t.slice(),h=o.getContext("2d"),p=l((function(t){function l(){R=s=null,h.clearRect(0,0,a.width,a.height),k.clear(),r(),t()}R=g.frame((function t(){!e||a.width===n.width&&a.height===n.height||(a.width=o.width=n.width,a.height=o.height=n.height),a.width||a.height||(i(o),a.width=o.width,a.height=o.height),h.clearRect(0,0,a.width,a.height),(I=I.filter((function(o){return M(h,o)}))).length?R=g.frame(t):l()})),s=l}));return{addFettis:function(o){return I=I.concat(o),p},canvas:o,promise:p,reset:function(){R&&g.cancel(R),s&&s()}}}(o,Q,c,i,a),r.promise)}function E(i){var e=h||U(i,"disableForReducedMotion",Boolean),n=U(i,"zIndex",Number);if(e&&j)return l((function(o){o()}));R&&r?o=r.canvas:R&&!o&&(o=function(o){var t=document.createElement("canvas");return t.style.position="fixed",t.style.top="0px",t.style.left="0px",t.style.pointerEvents="none",t.style.zIndex=o,t}(n),document.body.appendChild(o)),s&&!d&&c(o);var a={width:o.width,height:o.height};function E(){if(p){var t={getBoundingClientRect:function(){if(!R)return o.getBoundingClientRect()}};return c(t),void p.postMessage({resize:{width:t.width,height:t.height}})}a.width=a.height=null}function S(){r=null,s&&(I=!1,t.removeEventListener("resize",E)),R&&o&&(document.body.removeChild(o),o=null,d=!1)}return p&&!d&&p.init(o),d=!0,p&&(o.__confetti_initialized=!0),s&&!I&&(I=!0,t.addEventListener("resize",E,!1)),p?p.fire(i,a,S):f(i,a,S)}return E.reset=function(){p&&p.reset(),r&&r.reset()},E}function y(){return u||(u=Q(null,{useWorker:!0,resize:!0})),u}i.exports=function(){return y().apply(this,arguments)},i.exports.reset=function(){y().reset()},i.exports.create=Q,i.exports.shapeFromPath=function(o){if(!r)throw new Error("path confetti are not supported in this browser");var t,i;"string"==typeof o?t=o:(t=o.path,i=o.matrix);var e=new Path2D(t),n=document.createElement("canvas").getContext("2d");if(!i){for(var a,R,s=1e3,l=s,I=s,h=0,p=0,c=0;c<s;c+=2)for(var d=0;d<s;d+=2)n.isPointInPath(e,c,d,"nonzero")&&(l=Math.min(l,c),I=Math.min(I,d),h=Math.max(h,c),p=Math.max(p,d));a=h-l,R=p-I;var j=Math.min(10/a,10/R);i=[j,0,0,j,-Math.round(a/2+l)*j,-Math.round(R/2+I)*j]}return{type:"path",path:t,matrix:i}},i.exports.shapeFromText=function(o){var t,i=1,e="#000000",n='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';"string"==typeof o?t=o:(t=o.text,i="scalar"in o?o.scalar:i,n="fontFamily"in o?o.fontFamily:n,e="color"in o?o.color:e);var a=10*i,r=a+"px "+n,R=new OffscreenCanvas(a,a),s=R.getContext("2d");s.font=r;var l=s.measureText(t),I=Math.ceil(l.actualBoundingBoxRight+l.actualBoundingBoxLeft),h=Math.ceil(l.actualBoundingBoxAscent+l.actualBoundingBoxDescent),p=l.actualBoundingBoxLeft+2,c=l.actualBoundingBoxAscent+2;I+=4,h+=4,(s=(R=new OffscreenCanvas(I,h)).getContext("2d")).font=r,s.fillStyle=e,s.fillText(t,p,c);var d=1/i;return{type:"bitmap",bitmap:R.transferToImageBitmap(),matrix:[d,0,0,d,-I*d/2,-h*d/2]}}}(function(){return void 0!==Ji?Ji:"undefined"!=typeof self?self:this||{}}(),Ci,!1),Ji.confetti=Ci.exports;var Ni=function(o){vi(i,e);var t=function(o){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(o){return!1}}();return function(){var i,e=ui(o);if(t){var n=ui(this).constructor;i=Reflect.construct(e,arguments,n)}else i=e.apply(this,arguments);return Ki(this,i)}}(i);function i(){var o;return Ii(this,i),(o=t.call(this)).defaults={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,origin:{x:.5,y:.5},shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],scalar:1},o.zindex=100,o}return fi(i,[{key:"connectedCallback",value:function(){ki(ui(i.prototype),"connectedCallback",this).call(this),this.load()}},{key:"load",value:function(){confetti({particleCount:170,spread:120,scalar:1.4,zIndex:this.zindex,origin:{y:.35}})}}]),i}();bi([r],Ni.prototype,"game",void 0),bi([t({converter:R})],Ni.prototype,"zindex",void 0),Ni=bi([i({name:"g-confetti",shadowOptions:{mode:"closed"}})],Ni);var Mi={init:function(){confetti({particleCount:200,spread:70,zIndex:4e3,origin:{y:.4}})}};function Qi(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}window.Effects=window.Effects||{},window.Effects.confetti=Mi;var yi,Yi={exports:{}};(yi=Yi).exports=function(o,t){if(!(o instanceof t))throw new TypeError("Cannot call a class as a function")},yi.exports.__esModule=!0,yi.exports.default=yi.exports;var Fi=Qi(Yi.exports),Hi={exports:{}},Bi={exports:{}},Pi={exports:{}};!function(o){function t(i){return o.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},o.exports.__esModule=!0,o.exports.default=o.exports,t(i)}o.exports=t,o.exports.__esModule=!0,o.exports.default=o.exports}(Pi);var wi=Qi(Pi.exports),Oi={exports:{}};!function(o){var t=Pi.exports.default;o.exports=function(o,i){if("object"!==t(o)||null===o)return o;var e=o[Symbol.toPrimitive];if(void 0!==e){var n=e.call(o,i||"default");if("object"!==t(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(o)},o.exports.__esModule=!0,o.exports.default=o.exports}(Oi),function(o){var t=Pi.exports.default,i=Oi.exports;o.exports=function(o){var e=i(o,"string");return"symbol"===t(e)?e:String(e)},o.exports.__esModule=!0,o.exports.default=o.exports}(Bi),function(o){var t=Bi.exports;function i(o,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(o,t(n.key),n)}}o.exports=function(o,t,e){return t&&i(o.prototype,t),e&&i(o,e),Object.defineProperty(o,"prototype",{writable:!1}),o},o.exports.__esModule=!0,o.exports.default=o.exports}(Hi);var qi=Qi(Hi.exports),Ti={exports:{}},Ai={exports:{}},Zi={exports:{}};!function(o){function t(i){return o.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},o.exports.__esModule=!0,o.exports.default=o.exports,t(i)}o.exports=t,o.exports.__esModule=!0,o.exports.default=o.exports}(Zi);var Di=Qi(Zi.exports);!function(o){var t=Zi.exports;o.exports=function(o,i){for(;!Object.prototype.hasOwnProperty.call(o,i)&&null!==(o=t(o)););return o},o.exports.__esModule=!0,o.exports.default=o.exports}(Ai),function(o){var t=Ai.exports;function i(){return"undefined"!=typeof Reflect&&Reflect.get?(o.exports=i=Reflect.get.bind(),o.exports.__esModule=!0,o.exports.default=o.exports):(o.exports=i=function(o,i,e){var n=t(o,i);if(n){var a=Object.getOwnPropertyDescriptor(n,i);return a.get?a.get.call(arguments.length<3?o:e):a.value}},o.exports.__esModule=!0,o.exports.default=o.exports),i.apply(this,arguments)}o.exports=i,o.exports.__esModule=!0,o.exports.default=o.exports}(Ti);var zi=Qi(Ti.exports),Vi={exports:{}},Li={exports:{}};!function(o){function t(i,e){return o.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,t){return o.__proto__=t,o},o.exports.__esModule=!0,o.exports.default=o.exports,t(i,e)}o.exports=t,o.exports.__esModule=!0,o.exports.default=o.exports}(Li),function(o){var t=Li.exports;o.exports=function(o,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(i&&i.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),i&&t(o,i)},o.exports.__esModule=!0,o.exports.default=o.exports}(Vi);var Wi=Qi(Vi.exports),Xi={exports:{}},_i={exports:{}};!function(o){o.exports=function(o){if(void 0===o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o},o.exports.__esModule=!0,o.exports.default=o.exports}(_i),function(o){var t=Pi.exports.default,i=_i.exports;o.exports=function(o,e){if(e&&("object"===t(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return i(o)},o.exports.__esModule=!0,o.exports.default=o.exports}(Xi);var $i=Qi(Xi.exports),oe={exports:{}};!function(o){o.exports=function(o,t){return t||(t=o.slice(0)),Object.freeze(Object.defineProperties(o,{raw:{value:Object.freeze(t)}}))},o.exports.__esModule=!0,o.exports.default=o.exports}(oe);var te,ie=Qi(oe.exports);function ee(o,t,i,e){var n,a=arguments.length,r=a<3?t:null===e?e=Object.getOwnPropertyDescriptor(t,i):e;if("object"===("undefined"==typeof Reflect?"undefined":wi(Reflect))&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,i,e);else for(var R=o.length-1;R>=0;R--)(n=o[R])&&(r=(a<3?n(r):a>3?n(t,i,r):n(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r}var ne=o(te||(te=ie(["\n.LightWrap {position:fixed;width:500vw;height:500vw;top:50%;left:50%;transform: translate(-50%, -50%);filter: blur(6px);}\n:host([dir='top']) .LightWrap{top:0;}\n:host([dir='topleft']) .LightWrap{top:0;left:0;}\n:host([dir='topright']) .LightWrap{top:0;left:100%;}\n:host([dir='bottom']) .LightWrap{top:100%;}\n:host([dir='bottomleft']) .LightWrap{top:100%;left:0;}\n:host([dir='bottomright']) .LightWrap{top:100%;left:100%;}\n:host([dir='left']) .LightWrap{left:0;}\n:host([dir='right']) .LightWrap{left:100%;}\n.LightWrap .Circle {position:absolute;inset:0;border-radius:50%;}\n.LightWrap .Circle1 {\n background:repeating-conic-gradient(from 0deg at 50% 50%,transparent 0%,var(--color) 1%,transparent 6%);\n -webkit-animation: 13s linear rotate infinite reverse;\n animation: 13s linear rotate infinite reverse;\n}\n.LightWrap .Circle2 {\n background:repeating-conic-gradient(from 19deg at 50% 50%,transparent 0%, var(--color) 1.2%,var(--color),transparent 4.8%,transparent 7.6%);\n -webkit-animation: 9s linear -2s rotate infinite;\n animation: 9s linear -2s rotate infinite;\n}\n.LightWrap .Circle3 {\n background:repeating-conic-gradient(from 37deg at 50% 50%,transparent 0%,var(--color) 4%,transparent 7.9%,transparent 12%);\n -webkit-animation: 17s linear rotate infinite reverse;\n animation: 17s linear rotate infinite reverse;\n}\n.LightWrap .Circle4 {\n background:repeating-conic-gradient(from 103deg at 50% 50%,transparent 0%,var(--color)) 5%,var(--color) 7%,transparent 12%);\n -webkit-animation:7s linear rotate infinite;\n animation:7s linear rotate infinite;\n}\n@-webkit-keyframes rotate{from{transform:rotate(0deg);}to{transform:rotate(359deg);}}\n@keyframes rotate{from{transform:rotate(0deg);}to{transform:rotate(359deg);}}\n"]))),ae={exports:{}},re={exports:{}},Re={exports:{}};!function(o){o.exports=function(o,t){(null==t||t>o.length)&&(t=o.length);for(var i=0,e=new Array(t);i<t;i++)e[i]=o[i];return e},o.exports.__esModule=!0,o.exports.default=o.exports}(Re),function(o){var t=Re.exports;o.exports=function(o){if(Array.isArray(o))return t(o)},o.exports.__esModule=!0,o.exports.default=o.exports}(re);var se={exports:{}};!function(o){o.exports=function(o){if("undefined"!=typeof Symbol&&null!=o[Symbol.iterator]||null!=o["@@iterator"])return Array.from(o)},o.exports.__esModule=!0,o.exports.default=o.exports}(se);var le={exports:{}};!function(o){var t=Re.exports;o.exports=function(o,i){if(o){if("string"==typeof o)return t(o,i);var e=Object.prototype.toString.call(o).slice(8,-1);return"Object"===e&&o.constructor&&(e=o.constructor.name),"Map"===e||"Set"===e?Array.from(o):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?t(o,i):void 0}},o.exports.__esModule=!0,o.exports.default=o.exports}(le);var Ie={exports:{}};!function(o){o.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},o.exports.__esModule=!0,o.exports.default=o.exports}(Ie),function(o){var t=re.exports,i=se.exports,e=le.exports,n=Ie.exports;o.exports=function(o){return t(o)||i(o)||e(o)||n()},o.exports.__esModule=!0,o.exports.default=o.exports}(ae);var he=Qi(ae.exports),pe={exports:{}},ce={exports:{}};!function(o){o.exports=function(o){if(Array.isArray(o))return o},o.exports.__esModule=!0,o.exports.default=o.exports}(ce);var de={exports:{}};!function(o){o.exports=function(o,t){var i=null==o?null:"undefined"!=typeof Symbol&&o[Symbol.iterator]||o["@@iterator"];if(null!=i){var e,n,a,r,R=[],s=!0,l=!1;try{if(a=(i=i.call(o)).next,0===t){if(Object(i)!==i)return;s=!1}else for(;!(s=(e=a.call(i)).done)&&(R.push(e.value),R.length!==t);s=!0);}catch(o){l=!0,n=o}finally{try{if(!s&&null!=i.return&&(r=i.return(),Object(r)!==r))return}finally{if(l)throw n}}return R}},o.exports.__esModule=!0,o.exports.default=o.exports}(de);var je={exports:{}};!function(o){o.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},o.exports.__esModule=!0,o.exports.default=o.exports}(je),function(o){var t=ce.exports,i=de.exports,e=le.exports,n=je.exports;o.exports=function(o,a){return t(o)||i(o,a)||e(o,a)||n()},o.exports.__esModule=!0,o.exports.default=o.exports}(pe);var fe,Ee=Qi(pe.exports),Se=Math.min,Ge=Math.max,ue=Math.floor,ke=Math.round;function ge(o,t,i){t/=100,i/=100;var e=ue(o=o/360*6),n=o-e,a=i*(1-t),r=i*(1-n*t),R=i*(1-(1-n)*t),s=e%6;return[255*[i,r,a,a,R,i][s],255*[R,i,i,r,a,a][s],255*[a,a,R,i,i,r][s]]}function xe(o,t,i){var e,n,a=Se(o/=255,t/=255,i/=255),r=Ge(o,t,i),R=r-a;if(0===R)e=n=0;else{n=R/r;var s=((r-o)/6+R/2)/R,l=((r-t)/6+R/2)/R,I=((r-i)/6+R/2)/R;o===r?e=I-l:t===r?e=1/3+s-I:i===r&&(e=2/3+l-s),e<0?e+=1:e>1&&(e-=1)}return[360*e,100*n,100*r]}function ve(o,t,i,e){t/=100,i/=100;var n=255*(1-Se(1,(o/=100)*(1-(e/=100))+e)),a=255*(1-Se(1,t*(1-e)+e)),r=255*(1-Se(1,i*(1-e)+e));return he(xe(n,a,r))}function Ue(o,t,i){return t/=100,[o,(i/=100)+(t*=i<.5?i:1-i)?2*t/(i+t)*100:0,100*(i+t)]}function me(o){return xe.apply(void 0,he(o.match(/.{2}/g).map((function(o){return parseInt(o,16)}))))}function Je(){var o=function(o,t){return function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t(~i?o.map((function(o){return Number(o.toFixed(i))})):o)}},t={h:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,s:arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,v:arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a:arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,toHSVA:function(){var i=[t.h,t.s,t.v,t.a];return i.toString=o(i,(function(o){return"hsva(".concat(o[0],", ").concat(o[1],"%, ").concat(o[2],"%, ").concat(t.a,")")})),i},toHSLA:function(){var i=[].concat(he(function(o,t,i){var e=(2-(t/=100))*(i/=100)/2;return 0!==e&&(t=1===e?0:e<.5?t*i/(2*e):t*i/(2-2*e)),[o,100*t,100*e]}(t.h,t.s,t.v)),[t.a]);return i.toString=o(i,(function(o){return"hsla(".concat(o[0],", ").concat(o[1],"%, ").concat(o[2],"%, ").concat(t.a,")")})),i},toRGBA:function(){var i=[].concat(he(ge(t.h,t.s,t.v)),[t.a]);return i.toString=o(i,(function(o){return"rgba(".concat(o[0],", ").concat(o[1],", ").concat(o[2],", ").concat(t.a,")")})),i},toCMYK:function(){var i=function(o,t,i){var e,n=ge(o,t,i),a=n[0]/255,r=n[1]/255,R=n[2]/255;return[100*(1===(e=Se(1-a,1-r,1-R))?0:(1-a-e)/(1-e)),100*(1===e?0:(1-r-e)/(1-e)),100*(1===e?0:(1-R-e)/(1-e)),100*e]}(t.h,t.s,t.v);return i.toString=o(i,(function(o){return"cmyk(".concat(o[0],"%, ").concat(o[1],"%, ").concat(o[2],"%, ").concat(o[3],"%)")})),i},toHEXA:function(){var o=function(o,t,i){return ge(o,t,i).map((function(o){return ke(o).toString(16).padStart(2,"0")}))}(t.h,t.s,t.v),i=t.a>=1?"":Number((255*t.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return i&&o.push(i),o.toString=function(){return"#".concat(o.join("").toUpperCase())},o},clone:function(){return Je(t.h,t.s,t.v,t.a)}};return t}var Ce,Ke,be,Ne,Me,Qe,ye=n(fe||(fe=ie(['\n<section class="LightWrap">\n <div class="Circle Circle1"></div>\n <div class="Circle Circle2"></div>\n <div class="Circle Circle3"></div>\n <div class="Circle Circle4"></div>\n</section>\n']))),Ye=function(o){Wi(i,e);var t=function(o){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(o){return!1}}();return function(){var i,e=Di(o);if(t){var n=Di(this).constructor;i=Reflect.construct(e,arguments,n)}else i=e.apply(this,arguments);return $i(this,i)}}(i);function i(){var o;return Fi(this,i),(o=t.call(this)).color="#faf014",o}return qi(i,[{key:"colorChanged",value:function(o,t){var i,e;t&&this.style.setProperty("--color",(.2,i=function(o){o=o.match(/^[a-zA-Z]+$/)?function(o){if("black"===o.toLowerCase())return"#000000";var t=document.createElement("canvas").getContext("2d");return t.fillStyle=o,"#000000"===t.fillStyle?null:t.fillStyle}(o):o;var t,i={cmyk:/^cmyk[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)/i,rgba:/^((rgba)|rgb)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsla:/^((hsla)|hsl)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsva:/^((hsva)|hsv)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i},e=function(o){return o.map((function(o){return/^(|\d+)\.\d+|\d+$/.test(o)?Number(o):void 0}))};o:for(var n in i)if(t=i[n].exec(o))switch(n){case"cmyk":var a=e(t),r=Ee(a,5),R=r[1],s=r[2],l=r[3],I=r[4];if(R>100||s>100||l>100||I>100)break o;return{values:ve(R,s,l,I),type:n};case"rgba":var h=e(t),p=Ee(h,7),c=p[3],d=p[4],j=p[5],f=p[6];if(c>255||d>255||j>255||f<0||f>1)break o;return{values:[].concat(he(xe(c,d,j)),[f]),a:f,type:n};case"hexa":var E=Ee(t,2)[1];4!==E.length&&3!==E.length||(E=E.split("").map((function(o){return o+o})).join(""));var S=E.substring(0,6),G=E.substring(6);return G=G?parseInt(G,16)/255:void 0,{values:[].concat(he(me(S)),[G]),a:G,type:n};case"hsla":var u=e(t),k=Ee(u,7),g=k[3],x=k[4],v=k[5],U=k[6];if(g>360||x>100||v>100||U<0||U>1)break o;return{values:[].concat(he(Ue(g,x,v)),[U]),a:U,type:n};case"hsva":var m=e(t),J=Ee(m,7),C=J[3],K=J[4],b=J[5],N=J[6];if(C>360||K>100||b>100||N<0||N>1)break o;return{values:[C,K,b,N],a:N,type:n}}return{values:null,type:null}}(t),e=Je.apply(void 0,he(i.values)).toRGBA(),"rgba(".concat(e[0].toFixed(0),",").concat(e[1].toFixed(0),",").concat(e[2].toFixed(0),",").concat(.2*Number(e[3].toFixed(2)),")")))}},{key:"connectedCallback",value:function(){zi(Di(i.prototype),"connectedCallback",this).call(this)}}]),i}();function Fe(o){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(o){return!1}}();return function(){var i,e=g(o);if(t){var n=g(this).constructor;i=Reflect.construct(e,arguments,n)}else i=e.apply(this,arguments);return K(this,i)}}ee([t],Ye.prototype,"dir",void 0),ee([t],Ye.prototype,"color",void 0),Ye=ee([i({name:"h-spotlight",template:ye,styles:ne,shadowOptions:{mode:"closed"}})],Ye);var He,Be=n(Ce||(Ce=N(["\n<h-overlay ",' mode=\'handle\' style="backdrop-filter: blur(5px)">\n <div class="PrizeWrap">\n <div class="VideoWrap">\n <div class="Conten">\n <div class="Bg"></div>\n <g-confetti zindex="3200"></g-confetti>\n <h-spotlight color="#000"></h-spotlight>\n <div class="Img zoomInUp">\n <span>\n ',"\n </span>\n \n <span>\n ",'\n </span>\n <div class="Light"></div>\n </div>\n </div>\n </div>\n\n <div ',' class="Content transit">\n <div class="Title">\n <span>\n ',"\n </span>\n <span>\n ",'\n </span> \n </div>\n <div class="Button">\n <img @click="','" src="','/download/img/collect/button.png"/>\n </div>\n </div>\n </div>\n</h-overlay>\n'])),a("Overlay"),l((function(o){return 1==o.type}),n(Ke||(Ke=N(['<img src="','" class="Card" draggable="false"/>'])),(function(o){return o.imgSrc}))),l((function(o){return 2==o.type}),n(be||(be=N(['<div class="CouponWrap">\n <img class="Coupon" src="','"/>\n <div class="Info">\n <p style="color:#FF3B0A;font-size:9.6vw;font-weight:600;line-height:9.6vw">','</p>\n <p style="color:#EB330E;font-size:3.733vw;font-weight:600;margin:2vw 0 7vw">',"</p>\n </div>\n </div>"])),Uo.coupon,(function(o){return o.prizeQuota}),(function(o){return o.prizeName}))),a("contentWrap"),l((function(o){return 1==o.type}),n(Ne||(Ne=N(['<img src="','/download/img/collect/title01.png"/>\n <p class="Subtitle">',"</p>"])),Uo.path,(function(o){return o.number>0?n(Me||(Me=N(["再集","张不同卡面即可合成场景卡"])),(function(o){return o.number})):"可以去合成三翼鸟场景品牌卡啦!"}))),l((function(o){return 2==o.type}),n(Qe||(Qe=N(['<img src="','/download/img/collect/title02.png"/><p class="Subtitle">',"</p>"])),Uo.path,(function(o){return o.prizeQuota+o.prizeName}))),(function(o){return o.accept()}),Uo.path),Pe=function(o){m(i,e);var t=Fe(i);function i(){var o;return c(this,i),(o=t.call(this)).prizeName="",o.prizeQuota="",o.isClick=!1,o.imgSrc="",o.type=2,o.index=1,o.number=3,go.case.install([ut,Ni,Ye]),o}return S(i,[{key:"indexChanged",value:function(o,t){var i=this;setTimeout((function(){i.imgSrc=Uo["card"+t]}),10)}},{key:"showChanged",value:function(o,t){null===t||!1===t?Yt(this.Overlay)("show"):yt(this.Overlay)("show")}},{key:"connectedCallback",value:function(){var o=this;x(g(i.prototype),"connectedCallback",this).call(this),1==this.type?(setTimeout((function(){Pt.instance.add(o.contentWrap,"show")}),1e3),setTimeout((function(){o.isClick=!0}),3e3)):(Pt.instance.add(this.contentWrap,"show"),this.isClick=!0)}},{key:"accept",value:function(){this.isClick&&(this.$emit("change","accept"),this.close())}},{key:"look",value:function(){console.log(1111),this.isClick&&(this.$emit("change","look"),this.close())}},{key:"close",value:function(){this.show=!1}},{key:"update",value:function(o){o&&2==this.type&&(this.prizeName=o.prizeName,this.prizeQuota=o.prizeQuota)}}]),i}();y([r],Pe.prototype,"Overlay",void 0),y([r],Pe.prototype,"video",void 0),y([r],Pe.prototype,"contentWrap",void 0),y([r],Pe.prototype,"prizeName",void 0),y([r],Pe.prototype,"prizeQuota",void 0),y([r],Pe.prototype,"imgSrc",void 0),y([t({converter:R})],Pe.prototype,"type",void 0),y([t({converter:R})],Pe.prototype,"index",void 0),y([t({converter:R})],Pe.prototype,"number",void 0),y([t({mode:"boolean"})],Pe.prototype,"show",void 0),y([Qt],Pe.prototype,"showChanged",null),y([Tt(300)],Pe.prototype,"accept",null),y([Tt(300)],Pe.prototype,"look",null),Pe=y([i({name:"g-collect-prize",template:Be,styles:ri,shadowOptions:{mode:"closed"}})],Pe);var we,Oe,qe,Te,Ae=o(He||(He=N(["\n:host{\ndisplay:inline-block;\nwidth:51.73333333vw;\nheight:60vw;\n}\n.SwipeWrap {\nposition: relative;\nwidth:51.73333333vw;\nheight:60vw;\nperspective: 500px;\ntransform-style: preserve-3d;\n}\n.CardContainer {\nposition: absolute;\nz-index:99;\nwidth:51.73333333vw;\nheight:60vw;\ntransform: \n rotateY(calc(var(--offset) * 50deg)) \n scaleY(calc(1 + var(--abs-offset) * -0.4))\n translateZ(calc(var(--abs-offset) * -30rem))\n translateX(calc(var(--direction) * -5rem));\nfilter: blur(calc(var(--abs-offset) * 1rem));\ntransition: all 0.3s ease-out;\n}\n.CardContainer img{\n width:100%;height:100%;\n}\n\n.Nav {\n position: absolute;\n display: none;\n align-items: center;\n justify-content: center;\n top: 44%;\n z-index: 299;\n cursor: pointer;\n user-select: none;\n background: unset;\n border: unset;\n width:10.666666666vw;\n height:10.666666666vw;\n}\n.Nav img {\n width:100%;height:100%;\n}\n.Nav.Left {\n left: -4.266666666vw;\n transform: translateX(-100%) translatey(-50%);\n}\n.Nav.Right {\n right: -4.266666666vw;\n transform: translateX(100%) translatey(-50%);\n}\n:host(.isArrow) .Nav{display: flex;}\n"])));function Ze(o){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(o){return!1}}();return function(){var i,e=g(o);if(t){var n=g(this).constructor;i=Reflect.construct(e,arguments,n)}else i=e.apply(this,arguments);return K(this,i)}}var De=n(we||(we=N(['\n<section class="SwipeWrap">\n <span>\n ',"\n </span>\n <span>\n ","\n </span>\n <span>\n ","\n </span>\n</section>\n"])),l((function(o){return o.active>0}),n(Oe||(Oe=N(['<img class="Nav Left" @click="','" src="','/download/img/collect/arrowL.png" draggable="false"/>'])),(function(o){return o.setActive("l")}),Uo.path)),s((function(o){return o.cardItem}),n(qe||(qe=N(['<div class="CardContainer ','" style="','">\n <img src="','" draggable="false"/>\n </div>'])),(function(o,t){return t.parent.classFn(t.index)}),(function(o,t){return t.parent.styleFn(t.index)}),(function(o){return o.total>0?o.card:o.grey})),{positioning:!0}),l((function(o){return o.active<o.cardItem.length-1}),n(Te||(Te=N(['<img class="Nav Right" @click="','" src="','/download/img/collect/arrowR.png" draggable="false"/>'])),(function(o){return o.setActive("r")}),Uo.path))),ze=function(o){m(i,e);var t=Ze(i);function i(){var o;return c(this,i),(o=t.call(this)).cardItem=Array.from({length:5},(function(o,t){return{card:"".concat(Uo.path,"/download/img/collect/card0").concat(t+1,".png"),grey:"".concat(Uo.path,"/download/img/collect/card0").concat(t+1,"-1.png")}})),o.MAX_VISIBILITY=1,o.active=0,o.arrow=!0,o}return S(i,[{key:"arrowChanged",value:function(o,t){null===t||!1===t||this.isComposed?Pt.instance.remove(this,"isArrow"):Pt.instance.add(this,"isArrow")}},{key:"connectedCallback",value:function(){x(g(i.prototype),"connectedCallback",this).call(this)}},{key:"setActive",value:function(o){"l"==o?--this.active:++this.active}},{key:"classFn",value:function(o){return o==this.active?"active":""}},{key:"styleFn",value:function(o){var t="--active:".concat(o===this.active?1:0,";");return t+="--offset:".concat((this.active-o)/3,";"),t+="--direction:".concat(Math.sign(this.active-o),";"),t+="--abs-offset:".concat(Math.abs(this.active-o)/3,";"),t+="pointer-events:".concat(this.active===o?"auto":"none",";"),t+="opacity:".concat(Math.abs(this.active-o)>=this.MAX_VISIBILITY?"0":"1",";"),t+="display:".concat(Math.abs(this.active-o)>this.MAX_VISIBILITY?"none":"block",";")}},{key:"revert",value:function(){this.isComposed=!1,this.arrow=!0,this.active=0,this.cardItem=Array.from({length:5},(function(o,t){return{card:"".concat(Uo.path,"/download/img/collect/card0").concat(t+1,".png"),grey:"".concat(Uo.path,"/download/img/collect/card0").concat(t+1,"-1.png")}}))}},{key:"update",value:function(o){if(o&&o.isRevert)this.revert();else if(o&&o.cardList){for(var t=Array.from({length:4}),i=0;i<o.cardList.length;i++){var e=o.cardList[i];t[e.cardType-1]={total:e.cardNum,card:"".concat(Uo.path,"/download/img/collect/card0").concat(e.cardType,".png"),grey:"".concat(Uo.path,"/download/img/collect/card0").concat(e.cardType,"-1.png")}}t.push({total:o.isComposed?1:0,card:"".concat(Uo.path,"/download/img/collect/card05.png"),grey:"".concat(Uo.path,"/download/img/collect/card05-1.png")}),this.cardItem=t,o.isComposed&&(this.active=4,this.arrow=!1,this.isComposed=o.isComposed)}}}]),i}();y([r],ze.prototype,"cardItem",void 0),y([r],ze.prototype,"isComposed",void 0),y([t({converter:R})],ze.prototype,"active",void 0),y([t({mode:"boolean"})],ze.prototype,"arrow",void 0),ze=y([i({name:"g-collect-swipe",template:De,styles:Ae,shadowOptions:{mode:"closed"}})],ze);export{zt as HiCollectConflate,ai as HiCollectList,Pe as HiCollectPrize,ze as HiCollectSwipe};
473
+ `;let Xt=class extends vt{countChanged(o,t){String(t).length>1?wo(this)("suit"):Oo(this)("suit")}connectedCallback(){if(super.connectedCallback(),null!=this.count&&null!=this.count||this.dot)Oo(this)("invalid");else switch(wo(this)("invalid"),this.status){case"success":this.badgeStyle=`background: ${et["--successColor"]}`;break;case"error":this.badgeStyle=`background: ${et["--errorColor"]}`;break;case"warning":this.badgeStyle=`background: ${et["--warningColor"]}`;break;case"processing":this.badgeStyle=`background: ${et["--primaryColor"]}`;break;case"default":return void(this.badgeStyle=`background: ${et["--colorNeutral5"]}`)}}};var _t,$t,oi,ti;function ii(o){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(o){return!1}}();return function(){var i,e=g(o);if(t){var n=g(this).constructor;i=Reflect.construct(e,arguments,n)}else i=e.apply(this,arguments);return K(this,i)}}Jo([t],Xt.prototype,"count",void 0),Jo([t({mode:"boolean"})],Xt.prototype,"dot",void 0),Jo([t],Xt.prototype,"badgeStyle",void 0),Jo([t({mode:"boolean"})],Xt.prototype,"standAlone",void 0),Jo([t],Xt.prototype,"status",void 0),Jo([t],Xt.prototype,"text",void 0),Xt=Jo([i({name:"h-badge",styles:Lt,template:Wt,shadowOptions:{mode:"closed"}})],Xt);var ei,ni=n(_t||(_t=N(['\n<section class="ListWrap">\n <div class="Synthesis">\n <span>\n ','\n </span>\n <img class="Img ','" src="','/download/img/collect/synthesis.png" />\n </div>\n <span class="CardWrap">\n ',"\n </span>\n</section>\n"])),l((function(o){return o.isVideo}),n($t||($t=N(['<div style="position:absolute; z-index:4; display: block;height: 100%;width: 100%;" @click="','"> <h-svga class="Svga" path="','/download/img/collect/hecheng.svga"></h-svga><img class="Tips" src="','/download/img/collect/tips.png" /></div>'])),(function(o){return o.SynthesisFn()}),location.href.indexOf(atob("eXMtempycw=="))>-1?Uo.pathys:Uo.path,Uo.path)),(function(o){return o.isVideo?"hide":""}),Uo.path,s((function(o){return o.cardItem}),n(oi||(oi=N(['<div class="Card">\n ','\n <img src="','"/></div>'])),l((function(o){return o.total>0}),n(ti||(ti=N(['<h-badge count="','"></h-badge>'])),(function(o){return o.total}))),(function(o){return o.total>0?o.card:o.grey})),{positioning:!0})),ai=function(o){m(i,e);var t=ii(i);function i(){var o;return c(this,i),(o=t.call(this)).isVideo=!1,o.cardItem=Array.from({length:4},(function(o,t){return{card:"".concat(Uo.path,"/download/img/collect/small0").concat(t+1,".png"),grey:"".concat(Uo.path,"/download/img/collect/small0").concat(t+1,"-1.png")}})),go.case.install([Xt,Ct]),o}return S(i,[{key:"connectedCallback",value:function(){x(g(i.prototype),"connectedCallback",this).call(this)}},{key:"SynthesisFn",value:function(){this.$emit("change","synthesis")}},{key:"revert",value:function(){this.isVideo=!1,this.cardItem=Array.from({length:4},(function(o,t){return{card:"".concat(Uo.path,"/download/img/collect/small0").concat(t+1,".png"),grey:"".concat(Uo.path,"/download/img/collect/small0").concat(t+1,"-1.png")}}))}},{key:"update",value:function(o){if(o&&o.isRevert)this.revert();else if(o&&o.cardList){for(var t=Array.from({length:4}),i=0;i<o.cardList.length;i++){var e=o.cardList[i];t[e.cardType-1]={total:e.cardNum,card:"".concat(Uo.path,"/download/img/collect/small0").concat(e.cardType,".png"),grey:"".concat(Uo.path,"/download/img/collect/small0").concat(e.cardType,"-1.png")}}this.cardItem=t,this.isVideo=o.isCanCompose}}}]),i}();y([r],ai.prototype,"isVideo",void 0),y([r],ai.prototype,"cardItem",void 0),y([Tt(300)],ai.prototype,"SynthesisFn",null),ai=y([i({name:"g-collect-list",template:ni,styles:Vt,shadowOptions:{mode:"closed"}})],ai);var ri=o(ei||(ei=N(["\n","\n:host{text-align:center;}\n.VideoWrap{position:absolute;display:flex;width:100vw;height:100vh;justify-content:center;align-items:center}\n.PrizeWrap {position:fixed;top:0;left:0;width:100vw;height:100vh;display:block;}\n.PrizeWrap .Content{position:relative; z-index:60;height:100%;\n padding-top: 20vw;text-align:center;","\n}\n.PrizeWrap .Title img{\n height:17.0666666666vw\n}\n.PrizeWrap .Subtitle{\nfont-size: 14px;font-weight: 400;line-height: 14px;\ncolor: #FFFFFF;\n}\n.PrizeWrap .Notes{\nposition:absolute;bottom:5vw;width:100%;\nfont-size: 12px;\ncolor: #FFF1D8;\nline-height: 18px;\nfont-weight: 400;\n}\n\n\n.Conten{position:fixed;top:0;left:0;width:100vw;height:100vh; z-index:2;display:block;}\n.Conten .Bg{position:fixed;top:0;left:0;width:100%;height:100%;\n background:url(","/download/img/collect/bg.png) no-repeat center;\n background-size: cover;\n}\n.Conten .Img{position: absolute; overflow:hidden;\nz-index:99;left:20vw;top:50vw; \nwidth:60vw;\nheight:70vw;}\n.Conten .Light{position: absolute;top: 0;",'\n bottom: 0;width:100%; overflow:hidden;\n left: 0;z-index:30;\n border-radius:8vw;}\n.Conten .Light::after{\n content: "";\n background-color: #fff9;\n opacity: 0.6;\n top: -25%;\n bottom: 0;\n left: -100%;\n position: absolute;\n width: 13vw;\n height:150%;\n box-shadow: 0 0 10vmin 2.5vmin #fff;\n transform:rotateZ(145deg);\n transition: all 05s ease;\n animation-duration: 0.5s;\n animation-delay: 1s;\n animation-name: Light\n}\n\n.Conten .Img .Card {width:100%;height:100%}\n@keyframes Light{\n to{\n left: 400px;\n transition: left 0.5s ease 0s;\n }\n}\n\n@keyframes zoomInUp {\n from {opacity: 0;transform: scale3d(0.1, 0.1, 0.1) translate3d(0, 1000px, 0);animation-timing-function: cubic-bezier(0.55, 0.055, 0.675, 0.49)}\n 60% {opacity: 1;transform: scale3d(0.475, 0.475, 0.475) translate3d(0, -20px, 0);animation-timing-function: cubic-bezier(0.175, 0.885, 0.32, 1.5)}\n}\n.zoomInUp {animation-duration: 1s;\n animation-fill-mode: both;animation-name: zoomInUp}\n\n.CouponWrap {position:relative;}\n.CouponWrap .Info{position:absolute;width:100%;top:14.4vw;left:0;z-index:20;text-align:center;}\n.VideoWrap .Bg,\n.CouponWrap .Bg{position:fixed;top:0;left:0;width:100%;height:100%;\n background:url(',"/download/img/collect/bg.png) no-repeat center;\n background-size: cover;\n}\n.Coupon{width:100%;height:70vw;position:relative;z-index:9;}\n\n.Button{position:absolute;width:100%;bottom:30vw;text-align:center;","}\n.Button img{height:20.26666666vw}\n\n.transit{opacity:0;transition: opacity 0.5s ease-in-out;","}\n.show.transit{opacity:1;transition-delay: 0.5s;","}\n\n@media screen and (max-height : 210vw) {\n .Button{bottom:27vw;}\n}\n@media screen and (max-height : 200vw) {\n .Button{bottom:25vw;}\n}\n@media screen and (max-height : 190vw) {\n .Button{bottom:22vw;}\n}\n@media screen and (max-height : 180vw) {\n .VideoWrap video{margin-top:10vw;}\n .Button{bottom:20vw;}\n}\n@media screen and (max-height : 170vw) {\n .VideoWrap video{margin-top:15vw;}\n .Button{bottom:15vw;}\n}\n"])),xo(),ko(["PoiNo"]),Uo.path,ko(["PoiNo"]),Uo.path,ko(["PoiAll"]),ko(["PoiNo"]),ko(["PoiAll"]));function Ri(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var si,li={exports:{}};(si=li).exports=function(o,t){if(!(o instanceof t))throw new TypeError("Cannot call a class as a function")},si.exports.__esModule=!0,si.exports.default=si.exports;var Ii=Ri(li.exports),hi={exports:{}},pi={exports:{}},ci={exports:{}};!function(o){function t(i){return o.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},o.exports.__esModule=!0,o.exports.default=o.exports,t(i)}o.exports=t,o.exports.__esModule=!0,o.exports.default=o.exports}(ci);var di=Ri(ci.exports),ji={exports:{}};!function(o){var t=ci.exports.default;o.exports=function(o,i){if("object"!==t(o)||null===o)return o;var e=o[Symbol.toPrimitive];if(void 0!==e){var n=e.call(o,i||"default");if("object"!==t(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(o)},o.exports.__esModule=!0,o.exports.default=o.exports}(ji),function(o){var t=ci.exports.default,i=ji.exports;o.exports=function(o){var e=i(o,"string");return"symbol"===t(e)?e:String(e)},o.exports.__esModule=!0,o.exports.default=o.exports}(pi),function(o){var t=pi.exports;function i(o,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(o,t(n.key),n)}}o.exports=function(o,t,e){return t&&i(o.prototype,t),e&&i(o,e),Object.defineProperty(o,"prototype",{writable:!1}),o},o.exports.__esModule=!0,o.exports.default=o.exports}(hi);var fi=Ri(hi.exports),Ei={exports:{}},Si={exports:{}},Gi={exports:{}};!function(o){function t(i){return o.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},o.exports.__esModule=!0,o.exports.default=o.exports,t(i)}o.exports=t,o.exports.__esModule=!0,o.exports.default=o.exports}(Gi);var ui=Ri(Gi.exports);!function(o){var t=Gi.exports;o.exports=function(o,i){for(;!Object.prototype.hasOwnProperty.call(o,i)&&null!==(o=t(o)););return o},o.exports.__esModule=!0,o.exports.default=o.exports}(Si),function(o){var t=Si.exports;function i(){return"undefined"!=typeof Reflect&&Reflect.get?(o.exports=i=Reflect.get.bind(),o.exports.__esModule=!0,o.exports.default=o.exports):(o.exports=i=function(o,i,e){var n=t(o,i);if(n){var a=Object.getOwnPropertyDescriptor(n,i);return a.get?a.get.call(arguments.length<3?o:e):a.value}},o.exports.__esModule=!0,o.exports.default=o.exports),i.apply(this,arguments)}o.exports=i,o.exports.__esModule=!0,o.exports.default=o.exports}(Ei);var ki=Ri(Ei.exports),gi={exports:{}},xi={exports:{}};!function(o){function t(i,e){return o.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,t){return o.__proto__=t,o},o.exports.__esModule=!0,o.exports.default=o.exports,t(i,e)}o.exports=t,o.exports.__esModule=!0,o.exports.default=o.exports}(xi),function(o){var t=xi.exports;o.exports=function(o,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(i&&i.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),i&&t(o,i)},o.exports.__esModule=!0,o.exports.default=o.exports}(gi);var vi=Ri(gi.exports),Ui={exports:{}},mi={exports:{}};!function(o){o.exports=function(o){if(void 0===o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o},o.exports.__esModule=!0,o.exports.default=o.exports}(mi),function(o){var t=ci.exports.default,i=mi.exports;o.exports=function(o,e){if(e&&("object"===t(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return i(o)},o.exports.__esModule=!0,o.exports.default=o.exports}(Ui);var Ji,Ci,Ki=Ri(Ui.exports);function bi(o,t,i,e){var n,a=arguments.length,r=a<3?t:null===e?e=Object.getOwnPropertyDescriptor(t,i):e;if("object"===("undefined"==typeof Reflect?"undefined":di(Reflect))&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,i,e);else for(var R=o.length-1;R>=0;R--)(n=o[R])&&(r=(a<3?n(r):a>3?n(t,i,r):n(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r}Ji=window,Ci={},function o(t,i,e,n){var a=!!(t.Worker&&t.Blob&&t.Promise&&t.OffscreenCanvas&&t.OffscreenCanvasRenderingContext2D&&t.HTMLCanvasElement&&t.HTMLCanvasElement.prototype.transferControlToOffscreen&&t.URL&&t.URL.createObjectURL),r="function"==typeof Path2D&&"function"==typeof DOMMatrix,R=function(){if(!t.OffscreenCanvas)return!1;var o=new OffscreenCanvas(1,1),i=o.getContext("2d");i.fillRect(0,0,1,1);var e=o.transferToImageBitmap();try{i.createPattern(e,"no-repeat")}catch(o){return!1}return!0}();function s(){}function l(o){var e=i.exports.Promise,n=void 0!==e?e:t.Promise;return"function"==typeof n?new n(o):(o(s,s),null)}var I,h,p,c,d,j,f,E,S,G,u,k=(I=R,h=new Map,{transform:function(o){if(I)return o;if(h.has(o))return h.get(o);var t=new OffscreenCanvas(o.width,o.height);return t.getContext("2d").drawImage(o,0,0),h.set(o,t),t},clear:function(){h.clear()}}),g=(d=Math.floor(1e3/60),j={},f=0,"function"==typeof requestAnimationFrame&&"function"==typeof cancelAnimationFrame?(p=function(o){var t=Math.random();return j[t]=requestAnimationFrame((function i(e){f===e||f+d-1<e?(f=e,delete j[t],o()):j[t]=requestAnimationFrame(i)})),t},c=function(o){j[o]&&cancelAnimationFrame(j[o])}):(p=function(o){return setTimeout(o,d)},c=function(o){return clearTimeout(o)}),{frame:p,cancel:c}),x=(G={},function(){if(E)return E;if(!e&&a){var t=["var CONFETTI, SIZE = {}, module = {};","("+o.toString()+")(this, module, true, SIZE);","onmessage = function(msg) {"," if (msg.data.options) {"," CONFETTI(msg.data.options).then(function () {"," if (msg.data.callback) {"," postMessage({ callback: msg.data.callback });"," }"," });"," } else if (msg.data.reset) {"," CONFETTI && CONFETTI.reset();"," } else if (msg.data.resize) {"," SIZE.width = msg.data.resize.width;"," SIZE.height = msg.data.resize.height;"," } else if (msg.data.canvas) {"," SIZE.width = msg.data.canvas.width;"," SIZE.height = msg.data.canvas.height;"," CONFETTI = module.exports.create(msg.data.canvas);"," }","}"].join("\n");try{E=new Worker(URL.createObjectURL(new Blob([t])))}catch(o){return void 0!==("undefined"==typeof console?"undefined":di(console))&&"function"==typeof console.warn&&console.warn("🎊 Could not load worker",o),null}!function(o){function t(t,i){o.postMessage({options:t||{},callback:i})}o.init=function(t){var i=t.transferControlToOffscreen();o.postMessage({canvas:i},[i])},o.fire=function(i,e,n){if(S)return t(i,null),S;var a=Math.random().toString(36).slice(2);return S=l((function(e){function r(t){t.data.callback===a&&(delete G[a],o.removeEventListener("message",r),S=null,k.clear(),n(),e())}o.addEventListener("message",r),t(i,a),G[a]=r.bind(null,{data:{callback:a}})}))},o.reset=function(){for(var t in o.postMessage({reset:!0}),G)G[t](),delete G[t]}}(E)}return E}),v={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 U(o,t,i){return function(o,t){return t?t(o):o}(o&&null!=o[t]?o[t]:v[t],i)}function m(o){return o<0?0:Math.floor(o)}function J(o){return parseInt(o,16)}function C(o){return o.map(K)}function K(o){var t=String(o).replace(/[^0-9a-f]/gi,"");return t.length<6&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),{r:J(t.substring(0,2)),g:J(t.substring(2,4)),b:J(t.substring(4,6))}}function b(o){o.width=document.documentElement.clientWidth,o.height=document.documentElement.clientHeight}function N(o){var t=o.getBoundingClientRect();o.width=t.width,o.height=t.height}function M(o,t){t.x+=Math.cos(t.angle2D)*t.velocity+t.drift,t.y+=Math.sin(t.angle2D)*t.velocity+t.gravity,t.velocity*=t.decay,t.flat?(t.wobble=0,t.wobbleX=t.x+10*t.scalar,t.wobbleY=t.y+10*t.scalar,t.tiltSin=0,t.tiltCos=0,t.random=1):(t.wobble+=t.wobbleSpeed,t.wobbleX=t.x+10*t.scalar*Math.cos(t.wobble),t.wobbleY=t.y+10*t.scalar*Math.sin(t.wobble),t.tiltAngle+=.1,t.tiltSin=Math.sin(t.tiltAngle),t.tiltCos=Math.cos(t.tiltAngle),t.random=Math.random()+2);var i=t.tick++/t.totalTicks,e=t.x+t.random*t.tiltCos,n=t.y+t.random*t.tiltSin,a=t.wobbleX+t.random*t.tiltCos,R=t.wobbleY+t.random*t.tiltSin;if(o.fillStyle="rgba("+t.color.r+", "+t.color.g+", "+t.color.b+", "+(1-i)+")",o.beginPath(),r&&"path"===t.shape.type&&"string"==typeof t.shape.path&&Array.isArray(t.shape.matrix))o.fill(function(o,t,i,e,n,a,r){var R=new Path2D(o),s=new Path2D;s.addPath(R,new DOMMatrix(t));var l=new Path2D;return l.addPath(s,new DOMMatrix([Math.cos(r)*n,Math.sin(r)*n,-Math.sin(r)*a,Math.cos(r)*a,i,e])),l}(t.shape.path,t.shape.matrix,t.x,t.y,.1*Math.abs(a-e),.1*Math.abs(R-n),Math.PI/10*t.wobble));else if("bitmap"===t.shape.type){var s=Math.PI/10*t.wobble,l=.1*Math.abs(a-e),I=.1*Math.abs(R-n),h=t.shape.bitmap.width*t.scalar,p=t.shape.bitmap.height*t.scalar,c=new DOMMatrix([Math.cos(s)*l,Math.sin(s)*l,-Math.sin(s)*I,Math.cos(s)*I,t.x,t.y]);c.multiplySelf(new DOMMatrix(t.shape.matrix));var d=o.createPattern(k.transform(t.shape.bitmap),"no-repeat");d.setTransform(c),o.globalAlpha=1-i,o.fillStyle=d,o.fillRect(t.x-h/2,t.y-p/2,h,p),o.globalAlpha=1}else if("circle"===t.shape)o.ellipse?o.ellipse(t.x,t.y,Math.abs(a-e)*t.ovalScalar,Math.abs(R-n)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):function(o,t,i,e,n,a,r,R,s){o.save(),o.translate(t,i),o.rotate(a),o.scale(e,n),o.arc(0,0,1,0,R,void 0),o.restore()}(o,t.x,t.y,Math.abs(a-e)*t.ovalScalar,Math.abs(R-n)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI);else if("star"===t.shape)for(var j=Math.PI/2*3,f=4*t.scalar,E=8*t.scalar,S=t.x,G=t.y,u=5,g=Math.PI/u;u--;)S=t.x+Math.cos(j)*E,G=t.y+Math.sin(j)*E,o.lineTo(S,G),j+=g,S=t.x+Math.cos(j)*f,G=t.y+Math.sin(j)*f,o.lineTo(S,G),j+=g;else o.moveTo(Math.floor(t.x),Math.floor(t.y)),o.lineTo(Math.floor(t.wobbleX),Math.floor(n)),o.lineTo(Math.floor(a),Math.floor(R)),o.lineTo(Math.floor(e),Math.floor(t.wobbleY));return o.closePath(),o.fill(),t.tick<t.totalTicks}function Q(o,i){var r,R=!o,s=!!U(i||{},"resize"),I=!1,h=U(i,"disableForReducedMotion",Boolean),p=a&&U(i||{},"useWorker")?x():null,c=R?b:N,d=!(!o||!p||!o.__confetti_initialized),j="function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function f(t,i,a){for(var R,s,I,h,p=U(t,"particleCount",m),d=U(t,"angle",Number),j=U(t,"spread",Number),f=U(t,"startVelocity",Number),E=U(t,"decay",Number),S=U(t,"gravity",Number),G=U(t,"drift",Number),u=U(t,"colors",C),x=U(t,"ticks",Number),v=U(t,"shapes"),J=U(t,"scalar"),K=!!U(t,"flat"),b=function(o){var t=U(o,"origin",Object);return t.x=U(t,"x",Number),t.y=U(t,"y",Number),t}(t),N=p,Q=[],y=o.width*b.x,Y=o.height*b.y;N--;)Q.push((s=(R={x:y,y:Y,angle:d,spread:j,startVelocity:f,color:u[N%u.length],shape:v[(h=v.length,Math.floor(Math.random()*(h-0))+0)],ticks:x,decay:E,gravity:S,drift:G,scalar:J,flat:K}).angle*(Math.PI/180),I=R.spread*(Math.PI/180),{x:R.x,y:R.y,wobble:10*Math.random(),wobbleSpeed:Math.min(.11,.1*Math.random()+.05),velocity:.5*R.startVelocity+Math.random()*R.startVelocity,angle2D:-s+(.5*I-Math.random()*I),tiltAngle:(.5*Math.random()+.25)*Math.PI,color:R.color,shape:R.shape,tick:0,totalTicks:R.ticks,decay:R.decay,drift:R.drift,random:Math.random()+2,tiltSin:0,tiltCos:0,wobbleX:0,wobbleY:0,gravity:3*R.gravity,ovalScalar:.6,scalar:R.scalar,flat:R.flat}));return r?r.addFettis(Q):(r=function(o,t,i,a,r){var R,s,I=t.slice(),h=o.getContext("2d"),p=l((function(t){function l(){R=s=null,h.clearRect(0,0,a.width,a.height),k.clear(),r(),t()}R=g.frame((function t(){!e||a.width===n.width&&a.height===n.height||(a.width=o.width=n.width,a.height=o.height=n.height),a.width||a.height||(i(o),a.width=o.width,a.height=o.height),h.clearRect(0,0,a.width,a.height),(I=I.filter((function(o){return M(h,o)}))).length?R=g.frame(t):l()})),s=l}));return{addFettis:function(o){return I=I.concat(o),p},canvas:o,promise:p,reset:function(){R&&g.cancel(R),s&&s()}}}(o,Q,c,i,a),r.promise)}function E(i){var e=h||U(i,"disableForReducedMotion",Boolean),n=U(i,"zIndex",Number);if(e&&j)return l((function(o){o()}));R&&r?o=r.canvas:R&&!o&&(o=function(o){var t=document.createElement("canvas");return t.style.position="fixed",t.style.top="0px",t.style.left="0px",t.style.pointerEvents="none",t.style.zIndex=o,t}(n),document.body.appendChild(o)),s&&!d&&c(o);var a={width:o.width,height:o.height};function E(){if(p){var t={getBoundingClientRect:function(){if(!R)return o.getBoundingClientRect()}};return c(t),void p.postMessage({resize:{width:t.width,height:t.height}})}a.width=a.height=null}function S(){r=null,s&&(I=!1,t.removeEventListener("resize",E)),R&&o&&(document.body.removeChild(o),o=null,d=!1)}return p&&!d&&p.init(o),d=!0,p&&(o.__confetti_initialized=!0),s&&!I&&(I=!0,t.addEventListener("resize",E,!1)),p?p.fire(i,a,S):f(i,a,S)}return E.reset=function(){p&&p.reset(),r&&r.reset()},E}function y(){return u||(u=Q(null,{useWorker:!0,resize:!0})),u}i.exports=function(){return y().apply(this,arguments)},i.exports.reset=function(){y().reset()},i.exports.create=Q,i.exports.shapeFromPath=function(o){if(!r)throw new Error("path confetti are not supported in this browser");var t,i;"string"==typeof o?t=o:(t=o.path,i=o.matrix);var e=new Path2D(t),n=document.createElement("canvas").getContext("2d");if(!i){for(var a,R,s=1e3,l=s,I=s,h=0,p=0,c=0;c<s;c+=2)for(var d=0;d<s;d+=2)n.isPointInPath(e,c,d,"nonzero")&&(l=Math.min(l,c),I=Math.min(I,d),h=Math.max(h,c),p=Math.max(p,d));a=h-l,R=p-I;var j=Math.min(10/a,10/R);i=[j,0,0,j,-Math.round(a/2+l)*j,-Math.round(R/2+I)*j]}return{type:"path",path:t,matrix:i}},i.exports.shapeFromText=function(o){var t,i=1,e="#000000",n='"Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", "system emoji", sans-serif';"string"==typeof o?t=o:(t=o.text,i="scalar"in o?o.scalar:i,n="fontFamily"in o?o.fontFamily:n,e="color"in o?o.color:e);var a=10*i,r=a+"px "+n,R=new OffscreenCanvas(a,a),s=R.getContext("2d");s.font=r;var l=s.measureText(t),I=Math.ceil(l.actualBoundingBoxRight+l.actualBoundingBoxLeft),h=Math.ceil(l.actualBoundingBoxAscent+l.actualBoundingBoxDescent),p=l.actualBoundingBoxLeft+2,c=l.actualBoundingBoxAscent+2;I+=4,h+=4,(s=(R=new OffscreenCanvas(I,h)).getContext("2d")).font=r,s.fillStyle=e,s.fillText(t,p,c);var d=1/i;return{type:"bitmap",bitmap:R.transferToImageBitmap(),matrix:[d,0,0,d,-I*d/2,-h*d/2]}}}(function(){return void 0!==Ji?Ji:"undefined"!=typeof self?self:this||{}}(),Ci,!1),Ji.confetti=Ci.exports;var Ni=function(o){vi(i,e);var t=function(o){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(o){return!1}}();return function(){var i,e=ui(o);if(t){var n=ui(this).constructor;i=Reflect.construct(e,arguments,n)}else i=e.apply(this,arguments);return Ki(this,i)}}(i);function i(){var o;return Ii(this,i),(o=t.call(this)).defaults={particleCount:50,angle:90,spread:45,startVelocity:45,decay:.9,gravity:1,drift:0,ticks:200,origin:{x:.5,y:.5},shapes:["square","circle"],zIndex:100,colors:["#26ccff","#a25afd","#ff5e7e","#88ff5a","#fcff42","#ffa62d","#ff36ff"],scalar:1},o.zindex=100,o}return fi(i,[{key:"connectedCallback",value:function(){ki(ui(i.prototype),"connectedCallback",this).call(this),this.load()}},{key:"load",value:function(){confetti({particleCount:150,spread:90,ticks:130,scalar:1.3,zIndex:this.zindex,origin:{y:.35}})}}]),i}();bi([r],Ni.prototype,"game",void 0),bi([t({converter:R})],Ni.prototype,"zindex",void 0),Ni=bi([i({name:"g-confetti",shadowOptions:{mode:"closed"}})],Ni);var Mi={init:function(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};confetti(Object.assign({particleCount:200,spread:70,zIndex:3e3,origin:{y:.4}},o))}};function Qi(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}window.Effects=window.Effects||{},window.Effects.confetti=Mi;var yi,Yi={exports:{}};(yi=Yi).exports=function(o,t){if(!(o instanceof t))throw new TypeError("Cannot call a class as a function")},yi.exports.__esModule=!0,yi.exports.default=yi.exports;var Fi=Qi(Yi.exports),Hi={exports:{}},Bi={exports:{}},Pi={exports:{}};!function(o){function t(i){return o.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o},o.exports.__esModule=!0,o.exports.default=o.exports,t(i)}o.exports=t,o.exports.__esModule=!0,o.exports.default=o.exports}(Pi);var wi=Qi(Pi.exports),Oi={exports:{}};!function(o){var t=Pi.exports.default;o.exports=function(o,i){if("object"!==t(o)||null===o)return o;var e=o[Symbol.toPrimitive];if(void 0!==e){var n=e.call(o,i||"default");if("object"!==t(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===i?String:Number)(o)},o.exports.__esModule=!0,o.exports.default=o.exports}(Oi),function(o){var t=Pi.exports.default,i=Oi.exports;o.exports=function(o){var e=i(o,"string");return"symbol"===t(e)?e:String(e)},o.exports.__esModule=!0,o.exports.default=o.exports}(Bi),function(o){var t=Bi.exports;function i(o,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(o,t(n.key),n)}}o.exports=function(o,t,e){return t&&i(o.prototype,t),e&&i(o,e),Object.defineProperty(o,"prototype",{writable:!1}),o},o.exports.__esModule=!0,o.exports.default=o.exports}(Hi);var qi=Qi(Hi.exports),Ti={exports:{}},Ai={exports:{}},Zi={exports:{}};!function(o){function t(i){return o.exports=t=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(o){return o.__proto__||Object.getPrototypeOf(o)},o.exports.__esModule=!0,o.exports.default=o.exports,t(i)}o.exports=t,o.exports.__esModule=!0,o.exports.default=o.exports}(Zi);var Di=Qi(Zi.exports);!function(o){var t=Zi.exports;o.exports=function(o,i){for(;!Object.prototype.hasOwnProperty.call(o,i)&&null!==(o=t(o)););return o},o.exports.__esModule=!0,o.exports.default=o.exports}(Ai),function(o){var t=Ai.exports;function i(){return"undefined"!=typeof Reflect&&Reflect.get?(o.exports=i=Reflect.get.bind(),o.exports.__esModule=!0,o.exports.default=o.exports):(o.exports=i=function(o,i,e){var n=t(o,i);if(n){var a=Object.getOwnPropertyDescriptor(n,i);return a.get?a.get.call(arguments.length<3?o:e):a.value}},o.exports.__esModule=!0,o.exports.default=o.exports),i.apply(this,arguments)}o.exports=i,o.exports.__esModule=!0,o.exports.default=o.exports}(Ti);var zi=Qi(Ti.exports),Vi={exports:{}},Li={exports:{}};!function(o){function t(i,e){return o.exports=t=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,t){return o.__proto__=t,o},o.exports.__esModule=!0,o.exports.default=o.exports,t(i,e)}o.exports=t,o.exports.__esModule=!0,o.exports.default=o.exports}(Li),function(o){var t=Li.exports;o.exports=function(o,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(i&&i.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),i&&t(o,i)},o.exports.__esModule=!0,o.exports.default=o.exports}(Vi);var Wi=Qi(Vi.exports),Xi={exports:{}},_i={exports:{}};!function(o){o.exports=function(o){if(void 0===o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return o},o.exports.__esModule=!0,o.exports.default=o.exports}(_i),function(o){var t=Pi.exports.default,i=_i.exports;o.exports=function(o,e){if(e&&("object"===t(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return i(o)},o.exports.__esModule=!0,o.exports.default=o.exports}(Xi);var $i=Qi(Xi.exports),oe={exports:{}};!function(o){o.exports=function(o,t){return t||(t=o.slice(0)),Object.freeze(Object.defineProperties(o,{raw:{value:Object.freeze(t)}}))},o.exports.__esModule=!0,o.exports.default=o.exports}(oe);var te,ie=Qi(oe.exports);function ee(o,t,i,e){var n,a=arguments.length,r=a<3?t:null===e?e=Object.getOwnPropertyDescriptor(t,i):e;if("object"===("undefined"==typeof Reflect?"undefined":wi(Reflect))&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,i,e);else for(var R=o.length-1;R>=0;R--)(n=o[R])&&(r=(a<3?n(r):a>3?n(t,i,r):n(t,i))||r);return a>3&&r&&Object.defineProperty(t,i,r),r}var ne=o(te||(te=ie(["\n.LightWrap {position:fixed;width:500vw;height:500vw;top:50%;left:50%;transform: translate(-50%, -50%);filter: blur(6px);}\n:host([dir='top']) .LightWrap{top:0;}\n:host([dir='topleft']) .LightWrap{top:0;left:0;}\n:host([dir='topright']) .LightWrap{top:0;left:100%;}\n:host([dir='bottom']) .LightWrap{top:100%;}\n:host([dir='bottomleft']) .LightWrap{top:100%;left:0;}\n:host([dir='bottomright']) .LightWrap{top:100%;left:100%;}\n:host([dir='left']) .LightWrap{left:0;}\n:host([dir='right']) .LightWrap{left:100%;}\n.LightWrap .Circle {position:absolute;inset:0;border-radius:50%;}\n.LightWrap .Circle1 {\n background:repeating-conic-gradient(from 0deg at 50% 50%,transparent 0%,var(--color) 1%,transparent 6%);\n -webkit-animation: 13s linear rotate infinite reverse;\n animation: 13s linear rotate infinite reverse;\n}\n.LightWrap .Circle2 {\n background:repeating-conic-gradient(from 19deg at 50% 50%,transparent 0%, var(--color) 1.2%,var(--color),transparent 4.8%,transparent 7.6%);\n -webkit-animation: 9s linear -2s rotate infinite;\n animation: 9s linear -2s rotate infinite;\n}\n.LightWrap .Circle3 {\n background:repeating-conic-gradient(from 37deg at 50% 50%,transparent 0%,var(--color) 4%,transparent 7.9%,transparent 12%);\n -webkit-animation: 17s linear rotate infinite reverse;\n animation: 17s linear rotate infinite reverse;\n}\n.LightWrap .Circle4 {\n background:repeating-conic-gradient(from 103deg at 50% 50%,transparent 0%,var(--color)) 5%,var(--color) 7%,transparent 12%);\n -webkit-animation:7s linear rotate infinite;\n animation:7s linear rotate infinite;\n}\n@-webkit-keyframes rotate{from{transform:rotate(0deg);}to{transform:rotate(359deg);}}\n@keyframes rotate{from{transform:rotate(0deg);}to{transform:rotate(359deg);}}\n"]))),ae={exports:{}},re={exports:{}},Re={exports:{}};!function(o){o.exports=function(o,t){(null==t||t>o.length)&&(t=o.length);for(var i=0,e=new Array(t);i<t;i++)e[i]=o[i];return e},o.exports.__esModule=!0,o.exports.default=o.exports}(Re),function(o){var t=Re.exports;o.exports=function(o){if(Array.isArray(o))return t(o)},o.exports.__esModule=!0,o.exports.default=o.exports}(re);var se={exports:{}};!function(o){o.exports=function(o){if("undefined"!=typeof Symbol&&null!=o[Symbol.iterator]||null!=o["@@iterator"])return Array.from(o)},o.exports.__esModule=!0,o.exports.default=o.exports}(se);var le={exports:{}};!function(o){var t=Re.exports;o.exports=function(o,i){if(o){if("string"==typeof o)return t(o,i);var e=Object.prototype.toString.call(o).slice(8,-1);return"Object"===e&&o.constructor&&(e=o.constructor.name),"Map"===e||"Set"===e?Array.from(o):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?t(o,i):void 0}},o.exports.__esModule=!0,o.exports.default=o.exports}(le);var Ie={exports:{}};!function(o){o.exports=function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},o.exports.__esModule=!0,o.exports.default=o.exports}(Ie),function(o){var t=re.exports,i=se.exports,e=le.exports,n=Ie.exports;o.exports=function(o){return t(o)||i(o)||e(o)||n()},o.exports.__esModule=!0,o.exports.default=o.exports}(ae);var he=Qi(ae.exports),pe={exports:{}},ce={exports:{}};!function(o){o.exports=function(o){if(Array.isArray(o))return o},o.exports.__esModule=!0,o.exports.default=o.exports}(ce);var de={exports:{}};!function(o){o.exports=function(o,t){var i=null==o?null:"undefined"!=typeof Symbol&&o[Symbol.iterator]||o["@@iterator"];if(null!=i){var e,n,a,r,R=[],s=!0,l=!1;try{if(a=(i=i.call(o)).next,0===t){if(Object(i)!==i)return;s=!1}else for(;!(s=(e=a.call(i)).done)&&(R.push(e.value),R.length!==t);s=!0);}catch(o){l=!0,n=o}finally{try{if(!s&&null!=i.return&&(r=i.return(),Object(r)!==r))return}finally{if(l)throw n}}return R}},o.exports.__esModule=!0,o.exports.default=o.exports}(de);var je={exports:{}};!function(o){o.exports=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")},o.exports.__esModule=!0,o.exports.default=o.exports}(je),function(o){var t=ce.exports,i=de.exports,e=le.exports,n=je.exports;o.exports=function(o,a){return t(o)||i(o,a)||e(o,a)||n()},o.exports.__esModule=!0,o.exports.default=o.exports}(pe);var fe,Ee=Qi(pe.exports),Se=Math.min,Ge=Math.max,ue=Math.floor,ke=Math.round;function ge(o,t,i){t/=100,i/=100;var e=ue(o=o/360*6),n=o-e,a=i*(1-t),r=i*(1-n*t),R=i*(1-(1-n)*t),s=e%6;return[255*[i,r,a,a,R,i][s],255*[R,i,i,r,a,a][s],255*[a,a,R,i,i,r][s]]}function xe(o,t,i){var e,n,a=Se(o/=255,t/=255,i/=255),r=Ge(o,t,i),R=r-a;if(0===R)e=n=0;else{n=R/r;var s=((r-o)/6+R/2)/R,l=((r-t)/6+R/2)/R,I=((r-i)/6+R/2)/R;o===r?e=I-l:t===r?e=1/3+s-I:i===r&&(e=2/3+l-s),e<0?e+=1:e>1&&(e-=1)}return[360*e,100*n,100*r]}function ve(o,t,i,e){t/=100,i/=100;var n=255*(1-Se(1,(o/=100)*(1-(e/=100))+e)),a=255*(1-Se(1,t*(1-e)+e)),r=255*(1-Se(1,i*(1-e)+e));return he(xe(n,a,r))}function Ue(o,t,i){return t/=100,[o,(i/=100)+(t*=i<.5?i:1-i)?2*t/(i+t)*100:0,100*(i+t)]}function me(o){return xe.apply(void 0,he(o.match(/.{2}/g).map((function(o){return parseInt(o,16)}))))}function Je(){var o=function(o,t){return function(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t(~i?o.map((function(o){return Number(o.toFixed(i))})):o)}},t={h:arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,s:arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,v:arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,a:arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,toHSVA:function(){var i=[t.h,t.s,t.v,t.a];return i.toString=o(i,(function(o){return"hsva(".concat(o[0],", ").concat(o[1],"%, ").concat(o[2],"%, ").concat(t.a,")")})),i},toHSLA:function(){var i=[].concat(he(function(o,t,i){var e=(2-(t/=100))*(i/=100)/2;return 0!==e&&(t=1===e?0:e<.5?t*i/(2*e):t*i/(2-2*e)),[o,100*t,100*e]}(t.h,t.s,t.v)),[t.a]);return i.toString=o(i,(function(o){return"hsla(".concat(o[0],", ").concat(o[1],"%, ").concat(o[2],"%, ").concat(t.a,")")})),i},toRGBA:function(){var i=[].concat(he(ge(t.h,t.s,t.v)),[t.a]);return i.toString=o(i,(function(o){return"rgba(".concat(o[0],", ").concat(o[1],", ").concat(o[2],", ").concat(t.a,")")})),i},toCMYK:function(){var i=function(o,t,i){var e,n=ge(o,t,i),a=n[0]/255,r=n[1]/255,R=n[2]/255;return[100*(1===(e=Se(1-a,1-r,1-R))?0:(1-a-e)/(1-e)),100*(1===e?0:(1-r-e)/(1-e)),100*(1===e?0:(1-R-e)/(1-e)),100*e]}(t.h,t.s,t.v);return i.toString=o(i,(function(o){return"cmyk(".concat(o[0],"%, ").concat(o[1],"%, ").concat(o[2],"%, ").concat(o[3],"%)")})),i},toHEXA:function(){var o=function(o,t,i){return ge(o,t,i).map((function(o){return ke(o).toString(16).padStart(2,"0")}))}(t.h,t.s,t.v),i=t.a>=1?"":Number((255*t.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return i&&o.push(i),o.toString=function(){return"#".concat(o.join("").toUpperCase())},o},clone:function(){return Je(t.h,t.s,t.v,t.a)}};return t}var Ce,Ke,be,Ne,Me,Qe,ye=n(fe||(fe=ie(['\n<section class="LightWrap">\n <div class="Circle Circle1"></div>\n <div class="Circle Circle2"></div>\n <div class="Circle Circle3"></div>\n <div class="Circle Circle4"></div>\n</section>\n']))),Ye=function(o){Wi(i,e);var t=function(o){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(o){return!1}}();return function(){var i,e=Di(o);if(t){var n=Di(this).constructor;i=Reflect.construct(e,arguments,n)}else i=e.apply(this,arguments);return $i(this,i)}}(i);function i(){var o;return Fi(this,i),(o=t.call(this)).color="#faf014",o}return qi(i,[{key:"colorChanged",value:function(o,t){var i,e;t&&this.style.setProperty("--color",(.2,i=function(o){o=o.match(/^[a-zA-Z]+$/)?function(o){if("black"===o.toLowerCase())return"#000000";var t=document.createElement("canvas").getContext("2d");return t.fillStyle=o,"#000000"===t.fillStyle?null:t.fillStyle}(o):o;var t,i={cmyk:/^cmyk[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)/i,rgba:/^((rgba)|rgb)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsla:/^((hsla)|hsl)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hsva:/^((hsva)|hsv)[\D]+([\d.]+)[\D]+([\d.]+)[\D]+([\d.]+)[\D]*?([\d.]+|$)/i,hexa:/^#?(([\dA-Fa-f]{3,4})|([\dA-Fa-f]{6})|([\dA-Fa-f]{8}))$/i},e=function(o){return o.map((function(o){return/^(|\d+)\.\d+|\d+$/.test(o)?Number(o):void 0}))};o:for(var n in i)if(t=i[n].exec(o))switch(n){case"cmyk":var a=e(t),r=Ee(a,5),R=r[1],s=r[2],l=r[3],I=r[4];if(R>100||s>100||l>100||I>100)break o;return{values:ve(R,s,l,I),type:n};case"rgba":var h=e(t),p=Ee(h,7),c=p[3],d=p[4],j=p[5],f=p[6];if(c>255||d>255||j>255||f<0||f>1)break o;return{values:[].concat(he(xe(c,d,j)),[f]),a:f,type:n};case"hexa":var E=Ee(t,2)[1];4!==E.length&&3!==E.length||(E=E.split("").map((function(o){return o+o})).join(""));var S=E.substring(0,6),G=E.substring(6);return G=G?parseInt(G,16)/255:void 0,{values:[].concat(he(me(S)),[G]),a:G,type:n};case"hsla":var u=e(t),k=Ee(u,7),g=k[3],x=k[4],v=k[5],U=k[6];if(g>360||x>100||v>100||U<0||U>1)break o;return{values:[].concat(he(Ue(g,x,v)),[U]),a:U,type:n};case"hsva":var m=e(t),J=Ee(m,7),C=J[3],K=J[4],b=J[5],N=J[6];if(C>360||K>100||b>100||N<0||N>1)break o;return{values:[C,K,b,N],a:N,type:n}}return{values:null,type:null}}(t),e=Je.apply(void 0,he(i.values)).toRGBA(),"rgba(".concat(e[0].toFixed(0),",").concat(e[1].toFixed(0),",").concat(e[2].toFixed(0),",").concat(.2*Number(e[3].toFixed(2)),")")))}},{key:"connectedCallback",value:function(){zi(Di(i.prototype),"connectedCallback",this).call(this)}}]),i}();function Fe(o){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(o){return!1}}();return function(){var i,e=g(o);if(t){var n=g(this).constructor;i=Reflect.construct(e,arguments,n)}else i=e.apply(this,arguments);return K(this,i)}}ee([t],Ye.prototype,"dir",void 0),ee([t],Ye.prototype,"color",void 0),Ye=ee([i({name:"h-spotlight",template:ye,styles:ne,shadowOptions:{mode:"closed"}})],Ye);var He,Be=n(Ce||(Ce=N(["\n<h-overlay ",' mode=\'handle\' style="backdrop-filter: blur(5px)">\n <div class="PrizeWrap">\n <div class="VideoWrap">\n <div class="Conten">\n <div class="Bg"></div>\n <g-confetti zindex="3200"></g-confetti>\n <h-spotlight color="#000"></h-spotlight>\n <div class="Img zoomInUp">\n <span>\n ',"\n </span>\n \n <span>\n ",'\n </span>\n <div class="Light"></div>\n </div>\n </div>\n </div>\n\n <div ',' class="Content transit">\n <div class="Title">\n <span>\n ',"\n </span>\n <span>\n ",'\n </span> \n </div>\n <div class="Button">\n <img @click="','" src="','/download/img/collect/button.png"/>\n </div>\n </div>\n </div>\n</h-overlay>\n'])),a("Overlay"),l((function(o){return 1==o.type}),n(Ke||(Ke=N(['<img src="','" class="Card" draggable="false"/>'])),(function(o){return o.imgSrc}))),l((function(o){return 2==o.type}),n(be||(be=N(['<div class="CouponWrap">\n <img class="Coupon" src="','"/>\n <div class="Info">\n <p style="color:#FF3B0A;font-size:9.6vw;font-weight:600;line-height:9.6vw">','</p>\n <p style="color:#EB330E;font-size:3.733vw;font-weight:600;margin:2vw 0 7vw">',"</p>\n </div>\n </div>"])),Uo.coupon,(function(o){return o.prizeQuota}),(function(o){return o.prizeName}))),a("contentWrap"),l((function(o){return 1==o.type}),n(Ne||(Ne=N(['<img src="','/download/img/collect/title01.png"/>\n <p class="Subtitle">',"</p>"])),Uo.path,(function(o){return o.number>0?n(Me||(Me=N(["再集","张不同卡面即可合成场景卡"])),(function(o){return o.number})):"可以去合成三翼鸟场景品牌卡啦!"}))),l((function(o){return 2==o.type}),n(Qe||(Qe=N(['<img src="','/download/img/collect/title02.png"/><p class="Subtitle">',"</p>"])),Uo.path,(function(o){return o.prizeQuota+o.prizeName}))),(function(o){return o.accept()}),Uo.path),Pe=function(o){m(i,e);var t=Fe(i);function i(){var o;return c(this,i),(o=t.call(this)).prizeName="",o.prizeQuota="",o.isClick=!1,o.imgSrc="",o.type=1,o.index=1,o.number=3,go.case.install([ut,Ni,Ye]),o}return S(i,[{key:"indexChanged",value:function(o,t){var i=this;setTimeout((function(){i.imgSrc=Uo["card"+t]}),10)}},{key:"showChanged",value:function(o,t){null===t||!1===t?Yt(this.Overlay)("show"):yt(this.Overlay)("show")}},{key:"connectedCallback",value:function(){var o=this;x(g(i.prototype),"connectedCallback",this).call(this),setTimeout((function(){Pt.instance.add(o.contentWrap,"show"),setTimeout((function(){o.isClick=!0}),1e3)}),1e3)}},{key:"accept",value:function(){this.isClick&&(this.$emit("change","accept"),this.close())}},{key:"look",value:function(){this.isClick&&(this.$emit("change","look"),this.close())}},{key:"close",value:function(){this.show=!1}},{key:"update",value:function(o){o&&2==this.type&&(this.prizeName=o.prizeName,this.prizeQuota=o.prizeQuota)}}]),i}();y([r],Pe.prototype,"Overlay",void 0),y([r],Pe.prototype,"video",void 0),y([r],Pe.prototype,"contentWrap",void 0),y([r],Pe.prototype,"prizeName",void 0),y([r],Pe.prototype,"prizeQuota",void 0),y([r],Pe.prototype,"imgSrc",void 0),y([t({converter:R})],Pe.prototype,"type",void 0),y([t({converter:R})],Pe.prototype,"index",void 0),y([t({converter:R})],Pe.prototype,"number",void 0),y([t({mode:"boolean"})],Pe.prototype,"show",void 0),y([Qt],Pe.prototype,"showChanged",null),y([Tt(300)],Pe.prototype,"accept",null),y([Tt(300)],Pe.prototype,"look",null),Pe=y([i({name:"g-collect-prize",template:Be,styles:ri,shadowOptions:{mode:"closed"}})],Pe);var we,Oe,qe,Te,Ae=o(He||(He=N(["\n:host{\ndisplay:inline-block;\nwidth:51.73333333vw;\nheight:60vw;\n}\n.SwipeWrap {\nposition: relative;\nwidth:51.73333333vw;\nheight:60vw;\nperspective: 500px;\ntransform-style: preserve-3d;\n}\n.CardContainer {\nposition: absolute;\nz-index:99;\nwidth:51.73333333vw;\nheight:60vw;\ntransform: \n rotateY(calc(var(--offset) * 50deg)) \n scaleY(calc(1 + var(--abs-offset) * -0.4))\n translateZ(calc(var(--abs-offset) * -30rem))\n translateX(calc(var(--direction) * -5rem));\nfilter: blur(calc(var(--abs-offset) * 1rem));\ntransition: all 0.3s ease-out;\n}\n.CardContainer img{\n width:100%;height:100%;\n}\n\n.Nav {\n position: absolute;\n display: none;\n align-items: center;\n justify-content: center;\n top: 44%;\n z-index: 299;\n cursor: pointer;\n user-select: none;\n background: unset;\n border: unset;\n width:10.666666666vw;\n height:10.666666666vw;\n}\n.Nav img {\n width:100%;height:100%;\n}\n.Nav.Left {\n left: -4.266666666vw;\n transform: translateX(-100%) translatey(-50%);\n}\n.Nav.Right {\n right: -4.266666666vw;\n transform: translateX(100%) translatey(-50%);\n}\n:host(.isArrow) .Nav{display: flex;}\n"])));function Ze(o){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(o){return!1}}();return function(){var i,e=g(o);if(t){var n=g(this).constructor;i=Reflect.construct(e,arguments,n)}else i=e.apply(this,arguments);return K(this,i)}}var De=n(we||(we=N(['\n<section class="SwipeWrap">\n <span>\n ',"\n </span>\n <span>\n ","\n </span>\n <span>\n ","\n </span>\n</section>\n"])),l((function(o){return o.active>0}),n(Oe||(Oe=N(['<img class="Nav Left" @click="','" src="','/download/img/collect/arrowL.png" draggable="false"/>'])),(function(o){return o.setActive("l")}),Uo.path)),s((function(o){return o.cardItem}),n(qe||(qe=N(['<div class="CardContainer ','" style="','">\n <img src="','" draggable="false"/>\n </div>'])),(function(o,t){return t.parent.classFn(t.index)}),(function(o,t){return t.parent.styleFn(t.index)}),(function(o){return o.total>0?o.card:o.grey})),{positioning:!0}),l((function(o){return o.active<o.cardItem.length-1}),n(Te||(Te=N(['<img class="Nav Right" @click="','" src="','/download/img/collect/arrowR.png" draggable="false"/>'])),(function(o){return o.setActive("r")}),Uo.path))),ze=function(o){m(i,e);var t=Ze(i);function i(){var o;return c(this,i),(o=t.call(this)).cardItem=Array.from({length:5},(function(o,t){return{card:"".concat(Uo.path,"/download/img/collect/card0").concat(t+1,".png"),grey:"".concat(Uo.path,"/download/img/collect/card0").concat(t+1,"-1.png")}})),o.MAX_VISIBILITY=1,o.active=0,o.arrow=!0,o}return S(i,[{key:"arrowChanged",value:function(o,t){null===t||!1===t||this.isComposed?Pt.instance.remove(this,"isArrow"):Pt.instance.add(this,"isArrow")}},{key:"connectedCallback",value:function(){x(g(i.prototype),"connectedCallback",this).call(this)}},{key:"setActive",value:function(o){"l"==o?--this.active:++this.active}},{key:"classFn",value:function(o){return o==this.active?"active":""}},{key:"styleFn",value:function(o){var t="--active:".concat(o===this.active?1:0,";");return t+="--offset:".concat((this.active-o)/3,";"),t+="--direction:".concat(Math.sign(this.active-o),";"),t+="--abs-offset:".concat(Math.abs(this.active-o)/3,";"),t+="pointer-events:".concat(this.active===o?"auto":"none",";"),t+="opacity:".concat(Math.abs(this.active-o)>=this.MAX_VISIBILITY?"0":"1",";"),t+="display:".concat(Math.abs(this.active-o)>this.MAX_VISIBILITY?"none":"block",";")}},{key:"revert",value:function(){this.isComposed=!1,this.arrow=!0,this.active=0,this.cardItem=Array.from({length:5},(function(o,t){return{card:"".concat(Uo.path,"/download/img/collect/card0").concat(t+1,".png"),grey:"".concat(Uo.path,"/download/img/collect/card0").concat(t+1,"-1.png")}}))}},{key:"update",value:function(o){if(o&&o.isRevert)this.revert();else if(o&&o.cardList){for(var t=Array.from({length:4}),i=0;i<o.cardList.length;i++){var e=o.cardList[i];t[e.cardType-1]={total:e.cardNum,card:"".concat(Uo.path,"/download/img/collect/card0").concat(e.cardType,".png"),grey:"".concat(Uo.path,"/download/img/collect/card0").concat(e.cardType,"-1.png")}}t.push({total:o.isComposed?1:0,card:"".concat(Uo.path,"/download/img/collect/card05.png"),grey:"".concat(Uo.path,"/download/img/collect/card05-1.png")}),this.cardItem=t,o.isComposed&&(this.active=4,this.arrow=!1,this.isComposed=o.isComposed)}}}]),i}();y([r],ze.prototype,"cardItem",void 0),y([r],ze.prototype,"isComposed",void 0),y([t({converter:R})],ze.prototype,"active",void 0),y([t({mode:"boolean"})],ze.prototype,"arrow",void 0),ze=y([i({name:"g-collect-swipe",template:De,styles:Ae,shadowOptions:{mode:"closed"}})],ze);export{zt as HiCollectConflate,ai as HiCollectList,Pe as HiCollectPrize,ze as HiCollectSwipe};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gkits/collect",
3
- "version": "0.0.19",
3
+ "version": "0.0.20",
4
4
  "description": "> TODO: description",
5
5
  "author": "liulina0228",
6
6
  "homepage": "",
@@ -25,7 +25,7 @@
25
25
  "test": ""
26
26
  },
27
27
  "dependencies": {
28
- "@gkits/confetti": "^0.0.1",
28
+ "@gkits/confetti": "^0.0.2",
29
29
  "@gkits/spotlight": "^0.0.2",
30
30
  "@hikits/ui": "0.0.30",
31
31
  "hi-element": "^0.0.35"