@gkits/collect 0.0.13 → 0.0.14

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 +2 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -352,7 +352,7 @@ ${ht("flex")}
352
352
  <div class="ArrowWrap">
353
353
  <span class="Arrow"></span>
354
354
  </div>
355
- `;let xt=class extends i{constructor(){super(),this.dir="top"}colorChanged(o,t){Mo(this)({color:t})}connectedCallback(){super.connectedCallback()}};mo([t],xt.prototype,"dir",void 0),mo([t],xt.prototype,"color",void 0),xt=mo([e({name:"h-arrow",styles:kt,template:gt,shadowOptions:{mode:"closed"}})],xt);var vt=function(o,t,e,i){o.addEventListener?o.addEventListener(t,e,!1):o.attachEvent?o.attachEvent("on"+t,e):o["on"+t]=e},Ut=function(o,t,e,i){o.removeEventListener?o.removeEventListener(t,e,!1):o.detachEvent?o.detachEvent("on"+t,e):o["on"+t]=null},Jt=function(){function o(){var t=this;if(F(this,o),this.hasPassiveEvents=!1,this.isIosDevice="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),this.locks=[],this.documentListenerAdded=!1,this.initialClientY=-1,this.restoreOverflowSetting=function(){void 0!==t.previousBodyPaddingRight&&(document.body.style.paddingRight=t.previousBodyPaddingRight,t.previousBodyPaddingRight=void 0),void 0!==t.previousBodyOverflowSetting&&(document.body.style.overflow=t.previousBodyOverflowSetting,document.documentElement.style.overflow=t.previousBodyOverflowSetting,t.previousBodyOverflowSetting=void 0)},this.handleScroll=function(o,e){var i=o.targetTouches[0].clientY-t.initialClientY;return!t.allowTouchMove(o.target)&&(e&&0===e.scrollTop&&i>0||t.isTargetElementTotallyScrolled(e)&&i<0?t.preventDefault(o):(o.stopPropagation(),!0))},"undefined"!=typeof window){var e={get passive(){this.hasPassiveEvents=!0}};vt(window,"testPassive",null,e),Ut(window,"testPassive",null,e)}}return O(o,[{key:"isTargetElementTotallyScrolled",value:function(o){return!!o&&o.scrollHeight-o.scrollTop<=o.clientHeight}},{key:"allowTouchMove",value:function(o){this.locks.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(o))}))}},{key:"preventDefault",value:function(o){var t=o||window.event;return!!this.allowTouchMove(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))}},{key:"setOverflowHidden",value:function(o){if(void 0===this.previousBodyPaddingRight){var t=!!o&&!0===o.reserveScrollBarGap,e=window.innerWidth-document.documentElement.clientWidth;t&&e>0&&(this.previousBodyPaddingRight=document.body.style.paddingRight,document.body.style.paddingRight="".concat(e,"px"))}void 0===this.previousBodyOverflowSetting&&(this.previousBodyOverflowSetting=document.body.style.overflow,document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden")}},{key:"disable",value:function(o,t){var e=this;if(o){if(!this.locks.some((function(t){return t.targetElement===o}))){var i={targetElement:o,options:t||{}};this.locks=[].concat(L(this.locks),[i]),this.isIosDevice?(o.ontouchstart=function(o){1===o.targetTouches.length&&(e.initialClientY=o.targetTouches[0].clientY)},o.ontouchmove=function(t){1===t.targetTouches.length&&e.handleScroll(t,o)},this.documentListenerAdded||(document.addEventListener("touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!0)):this.setOverflowHidden(t)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")}},{key:"clearAll",value:function(){this.isIosDevice?(this.locks.forEach((function(o){o.targetElement.ontouchstart=null,o.targetElement.ontouchmove=null})),this.documentListenerAdded&&(Ut(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1),this.initialClientY=-1):this.restoreOverflowSetting(),this.locks=[]}},{key:"enable",value:function(o){o?(this.locks=this.locks.filter((function(t){return t.targetElement!==o})),this.isIosDevice?(o.ontouchstart=null,o.ontouchmove=null,this.documentListenerAdded&&0===this.locks.length&&(Ut(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1)):this.locks.length||this.restoreOverflowSetting()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")}}]),o}(),mt=new Jt;function Ct(o,t,e){var i=e.value;return e.value=function(o,t){return null===t||!1===t?mt.enable(document.body):mt.disable(document.body),i.apply(this,arguments)},e}function Kt(o){return o?function(t,e){if(1===arguments.length&&"string"==typeof t)o.setAttribute(t,"");else if(2===arguments.length)o.setAttribute(t,e);else for(var i in t)o[i]=t[i],o.setAttribute(i,t[i])}:function(){}}function Nt(o){return o?function(t){if("string"==typeof t)o.removeAttribute(t);else for(var e=0;e<t.length;e++){var i=t[e];o.removeAttribute(i)}}:function(){}}var bt,Mt,Qt=function(){function o(){var t=this;F(this,o),"classList"in document.documentElement?(this.has=function(o,t){return o.classList.contains(t)},this.add=function(o,t){for(var e=t.split(" "),i=0;i<e.length;i++)void 0!==o.classList&&o.classList.add(e[i])},this.remove=function(o,t){if(o)for(var e=t.split(" "),i=0;i<e.length;i++)void 0!==o.classList&&o.classList.remove(e[i])}):(this.has=function(o,e){return t.classReg(e).test(o.className)},this.add=function(o,e){t.has(o,e)||(o.className=o.className+" "+e)},this.remove=function(o,e){o.className=o.className.replace(t.classReg(e)," ")})}return O(o,[{key:"classReg",value:function(o){return new RegExp("(^|\\s+)"+o+"(\\s+|$)")}},{key:"toggle",value:function(o,t){(this.has(o,t)?this.remove:this.add)(o,t)}}],[{key:"instance",get:function(){return this._instance||(this._instance=new o),this._instance}}]),o}();function yt(o){var t=null;return function(e,i,n){var a=n.value;return n.value=function(){for(var e=this,i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];t&&clearTimeout(t),t=setTimeout((function(){a.apply(e,n)}),o)},n}}function Yt(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 e,i=g(o);if(t){var n=g(this).constructor;e=Reflect.construct(i,arguments,n)}else e=i.apply(this,arguments);return K(this,e)}}var Ft,Ht=n(bt||(bt=b(["\n<h-overlay ",' mode=\'handle\' style="backdrop-filter: blur(5px)" >\n<div class="ConflateWrap">\n <div class="Bg"></div>\n <div class="VideoWrap">\n <video ',' autoplay muted preload="auto" x5-video-orientation="portraint"\n playsinline="true" x5-video-player-type="h5" x5-video-player-fullscreen="true"\n ><source src="','/download/img/collect/conflate.mp4" type="video/mp4"/></video>\n </div>\n <div ',' class="Content transit">\n <div class="Title">\n <img src="','/download/img/collect/title03.png"/>\n </div>\n <div class="Icon">\n <div><img src="','/download/img/collect/icon03.png"/><p class="TEll">2.18抽奖次数+1</p></div>\n <span class="','">\n ','\n </span>\n <div><img src="','/download/img/collect/icon02.png"/><p class="TEll">ihaier新年头像框</p></div>\n </div>\n <div class="Button">\n <img @click="','" src="','/download/img/collect/button.png"/>\n </div>\n <div class="Notes">\n <p>奖品可在【我的奖品-活动实物】中查看</p><p>ihaier新年头像框将通过您的ihaier发放</p>\n </div>\n </div>\n </div>\n</h-overlay>\n'])),a("Overlay"),a("video"),location.href.indexOf("eXMtempycw==")>-1?Uo.pathys:Uo.path,a("contentWrap"),Uo.path,Uo.path,(function(o){return o.isCoupon?"Coupon":""}),s((function(o){return o.isCoupon}),n(Mt||(Mt=b(['<div><img src="','/download/img/collect/icon04.png"/><p class="TEll">三翼鸟定制洗衣液</p></div>\n '])),Uo.path)),Uo.path,(function(o){return o.accept()}),Uo.path),Bt=function(o){J(e,i);var t=Yt(e);function e(){var o;return d(this,e),(o=t.call(this)).isCoupon=!1,o.isClick=!1,go.case.install([ut]),o}return S(e,[{key:"showChanged",value:function(o,t){null===t||!1===t?Nt(this.Overlay)("show"):Kt(this.Overlay)("show")}},{key:"connectedCallback",value:function(){var o=this;x(g(e.prototype),"connectedCallback",this).call(this),this.video.addEventListener("loadeddata",(function(){o.resize(),setTimeout((function(){Qt.instance.add(o.contentWrap,"show")}),1e3),setTimeout((function(){o.isClick=!0}),3e3)}))}},{key:"resize",value:function(){window.outerWidth/window.outerHeight>=.4614121510673235?(this.video.style.width="100%",this.video.style.height=""):(this.video.style.height="100%",this.video.style.width="")}},{key:"accept",value:function(){this.isClick&&(this.$emit("change","accept"),this.close())}},{key:"close",value:function(){this.show=!1}},{key:"update",value:function(o){o&&o.prizeId&&(this.isCoupon=!0)}}]),e}();y([r],Bt.prototype,"Overlay",void 0),y([r],Bt.prototype,"video",void 0),y([r],Bt.prototype,"contentWrap",void 0),y([r],Bt.prototype,"isCoupon",void 0),y([t({mode:"boolean"})],Bt.prototype,"show",void 0),y([Ct],Bt.prototype,"showChanged",null),y([yt(300)],Bt.prototype,"accept",null),Bt=y([e({name:"g-collect-conflate",template:Ht,styles:Jo,shadowOptions:{mode:"closed"}})],Bt);var Pt=o(Ft||(Ft=b(["\n","\n.ListWrap{\ndisplay:flex;\nwidth:100%;\npadding:0 0 0 3.2vw;\nmargin:0 auto;\n}\n.CardWrap{display:flex}\n.CardWrap div.Card{\nwidth:14.9333333333vw;\nheight:20.266666666vw;\nmargin: 0 2.666666666vw 0 0;\n}\n.CardWrap div.Card img {height:100%;width:100%}\n.Synthesis{\nposition:relative;\nwidth:22.4vw;height:22.4vw;margin:0 1vw 0 -1vw;\n}\n.Synthesis .Tips{position:absolute;left:0;top:-6.5vw;z-index:6; width:35.2vw;}\n.Synthesis .Svga,\n.Synthesis .Img,\n.Synthesis video {\nposition: absolute;left:0;top:0;\nwidth:22.4vw;height:22.4vw;\nmargin:-2vw 0 0;\n}\n.Synthesis .Img {z-index:2; opacity: 0.8;}\n.Synthesis .Svga{z-index:3;","}\n.Synthesis video{z-index:3;","}\nh-badge{right:6px;top:6px;}\n"])),xo(),ko(["PoiNo"]),ko(["PoiNo"]));class Ot extends i{constructor(){super(...arguments),this.disabled=!1}colorChanged(o,t){Mo(this)({color:t})}sizeChanged(o,t){for(let o=0;o<this.children.length;o++){Oo(this.children[o])("size",this.size)}}connectedCallback(){super.connectedCallback()}injection(o){o&&o(this)}setValueFn(o,t){this[o+"Changed"]("",t)}update(o,t){t&&t(o)}childrenFn(o){const t=this.children.length;if(t>0){for(let o=0;o<t;o++){const e=this.children[o];0==o?Oo(e)("first"):o+1==t&&Oo(e)("last"),Oo(e)("index",String(o))}o&&o()}}}mo([t],Ot.prototype,"color",void 0),mo([t],Ot.prototype,"size",void 0),mo([t({mode:"boolean"})],Ot.prototype,"disabled",void 0);const qt=o`
355
+ `;let xt=class extends i{constructor(){super(),this.dir="top"}colorChanged(o,t){Mo(this)({color:t})}connectedCallback(){super.connectedCallback()}};mo([t],xt.prototype,"dir",void 0),mo([t],xt.prototype,"color",void 0),xt=mo([e({name:"h-arrow",styles:kt,template:gt,shadowOptions:{mode:"closed"}})],xt);var vt=function(o,t,e,i){o.addEventListener?o.addEventListener(t,e,!1):o.attachEvent?o.attachEvent("on"+t,e):o["on"+t]=e},Ut=function(o,t,e,i){o.removeEventListener?o.removeEventListener(t,e,!1):o.detachEvent?o.detachEvent("on"+t,e):o["on"+t]=null},Jt=function(){function o(){var t=this;if(F(this,o),this.hasPassiveEvents=!1,this.isIosDevice="undefined"!=typeof window&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||"MacIntel"===window.navigator.platform&&window.navigator.maxTouchPoints>1),this.locks=[],this.documentListenerAdded=!1,this.initialClientY=-1,this.restoreOverflowSetting=function(){void 0!==t.previousBodyPaddingRight&&(document.body.style.paddingRight=t.previousBodyPaddingRight,t.previousBodyPaddingRight=void 0),void 0!==t.previousBodyOverflowSetting&&(document.body.style.overflow=t.previousBodyOverflowSetting,document.documentElement.style.overflow=t.previousBodyOverflowSetting,t.previousBodyOverflowSetting=void 0)},this.handleScroll=function(o,e){var i=o.targetTouches[0].clientY-t.initialClientY;return!t.allowTouchMove(o.target)&&(e&&0===e.scrollTop&&i>0||t.isTargetElementTotallyScrolled(e)&&i<0?t.preventDefault(o):(o.stopPropagation(),!0))},"undefined"!=typeof window){var e={get passive(){this.hasPassiveEvents=!0}};vt(window,"testPassive",null,e),Ut(window,"testPassive",null,e)}}return O(o,[{key:"isTargetElementTotallyScrolled",value:function(o){return!!o&&o.scrollHeight-o.scrollTop<=o.clientHeight}},{key:"allowTouchMove",value:function(o){this.locks.some((function(t){return!(!t.options.allowTouchMove||!t.options.allowTouchMove(o))}))}},{key:"preventDefault",value:function(o){var t=o||window.event;return!!this.allowTouchMove(t.target)||(t.touches.length>1||(t.preventDefault&&t.preventDefault(),!1))}},{key:"setOverflowHidden",value:function(o){if(void 0===this.previousBodyPaddingRight){var t=!!o&&!0===o.reserveScrollBarGap,e=window.innerWidth-document.documentElement.clientWidth;t&&e>0&&(this.previousBodyPaddingRight=document.body.style.paddingRight,document.body.style.paddingRight="".concat(e,"px"))}void 0===this.previousBodyOverflowSetting&&(this.previousBodyOverflowSetting=document.body.style.overflow,document.body.style.overflow="hidden",document.documentElement.style.overflow="hidden")}},{key:"disable",value:function(o,t){var e=this;if(o){if(!this.locks.some((function(t){return t.targetElement===o}))){var i={targetElement:o,options:t||{}};this.locks=[].concat(L(this.locks),[i]),this.isIosDevice?(o.ontouchstart=function(o){1===o.targetTouches.length&&(e.initialClientY=o.targetTouches[0].clientY)},o.ontouchmove=function(t){1===t.targetTouches.length&&e.handleScroll(t,o)},this.documentListenerAdded||(document.addEventListener("touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!0)):this.setOverflowHidden(t)}}else console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.")}},{key:"clearAll",value:function(){this.isIosDevice?(this.locks.forEach((function(o){o.targetElement.ontouchstart=null,o.targetElement.ontouchmove=null})),this.documentListenerAdded&&(Ut(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1),this.initialClientY=-1):this.restoreOverflowSetting(),this.locks=[]}},{key:"enable",value:function(o){o?(this.locks=this.locks.filter((function(t){return t.targetElement!==o})),this.isIosDevice?(o.ontouchstart=null,o.ontouchmove=null,this.documentListenerAdded&&0===this.locks.length&&(Ut(document,"touchmove",this.preventDefault,this.hasPassiveEvents?{passive:!1}:void 0),this.documentListenerAdded=!1)):this.locks.length||this.restoreOverflowSetting()):console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.")}}]),o}(),mt=new Jt;function Ct(o,t,e){var i=e.value;return e.value=function(o,t){return null===t||!1===t?mt.enable(document.body):mt.disable(document.body),i.apply(this,arguments)},e}function Kt(o){return o?function(t,e){if(1===arguments.length&&"string"==typeof t)o.setAttribute(t,"");else if(2===arguments.length)o.setAttribute(t,e);else for(var i in t)o[i]=t[i],o.setAttribute(i,t[i])}:function(){}}function Nt(o){return o?function(t){if("string"==typeof t)o.removeAttribute(t);else for(var e=0;e<t.length;e++){var i=t[e];o.removeAttribute(i)}}:function(){}}var bt,Mt,Qt=function(){function o(){var t=this;F(this,o),"classList"in document.documentElement?(this.has=function(o,t){return o.classList.contains(t)},this.add=function(o,t){for(var e=t.split(" "),i=0;i<e.length;i++)void 0!==o.classList&&o.classList.add(e[i])},this.remove=function(o,t){if(o)for(var e=t.split(" "),i=0;i<e.length;i++)void 0!==o.classList&&o.classList.remove(e[i])}):(this.has=function(o,e){return t.classReg(e).test(o.className)},this.add=function(o,e){t.has(o,e)||(o.className=o.className+" "+e)},this.remove=function(o,e){o.className=o.className.replace(t.classReg(e)," ")})}return O(o,[{key:"classReg",value:function(o){return new RegExp("(^|\\s+)"+o+"(\\s+|$)")}},{key:"toggle",value:function(o,t){(this.has(o,t)?this.remove:this.add)(o,t)}}],[{key:"instance",get:function(){return this._instance||(this._instance=new o),this._instance}}]),o}();function yt(o){var t=null;return function(e,i,n){var a=n.value;return n.value=function(){for(var e=this,i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];t&&clearTimeout(t),t=setTimeout((function(){a.apply(e,n)}),o)},n}}function Yt(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 e,i=g(o);if(t){var n=g(this).constructor;e=Reflect.construct(i,arguments,n)}else e=i.apply(this,arguments);return K(this,e)}}var Ft,Ht=n(bt||(bt=b(["\n<h-overlay ",' mode=\'handle\' style="backdrop-filter: blur(5px)" >\n<div class="ConflateWrap">\n <div class="Bg"></div>\n <div class="VideoWrap">\n <video ',' autoplay muted preload="auto" x5-video-orientation="portraint"\n playsinline="true" x5-video-player-type="h5" x5-video-player-fullscreen="true"\n ><source src="','/download/img/collect/conflate.mp4" type="video/mp4"/></video>\n </div>\n <div ',' class="Content transit">\n <div class="Title">\n <img src="','/download/img/collect/title03.png"/>\n </div>\n <div class="Icon">\n <div><img src="','/download/img/collect/icon03.png"/><p class="TEll">2.18抽奖次数+1</p></div>\n <span class="','">\n ','\n </span>\n <div><img src="','/download/img/collect/icon02.png"/><p class="TEll">ihaier新年头像框</p></div>\n </div>\n <div class="Button">\n <img @click="','" src="','/download/img/collect/button.png"/>\n </div>\n <div class="Notes">\n <p>奖品可在【我的奖品-活动实物】中查看</p><p>ihaier新年头像框将通过您的ihaier发放</p>\n </div>\n </div>\n </div>\n</h-overlay>\n'])),a("Overlay"),a("video"),location.href.indexOf(atob("eXMtempycw=="))>-1?Uo.pathys:Uo.path,a("contentWrap"),Uo.path,Uo.path,(function(o){return o.isCoupon?"Coupon":""}),s((function(o){return o.isCoupon}),n(Mt||(Mt=b(['<div><img src="','/download/img/collect/icon04.png"/><p class="TEll">三翼鸟定制洗衣液</p></div>\n '])),Uo.path)),Uo.path,(function(o){return o.accept()}),Uo.path),Bt=function(o){J(e,i);var t=Yt(e);function e(){var o;return d(this,e),(o=t.call(this)).isCoupon=!1,o.isClick=!1,go.case.install([ut]),o}return S(e,[{key:"showChanged",value:function(o,t){null===t||!1===t?Nt(this.Overlay)("show"):Kt(this.Overlay)("show")}},{key:"connectedCallback",value:function(){var o=this;x(g(e.prototype),"connectedCallback",this).call(this),this.video.addEventListener("loadeddata",(function(){o.resize(),setTimeout((function(){Qt.instance.add(o.contentWrap,"show")}),1e3),setTimeout((function(){o.isClick=!0}),3e3)}))}},{key:"resize",value:function(){window.outerWidth/window.outerHeight>=.4614121510673235?(this.video.style.width="100%",this.video.style.height=""):(this.video.style.height="100%",this.video.style.width="")}},{key:"accept",value:function(){this.isClick&&(this.$emit("change","accept"),this.close())}},{key:"close",value:function(){this.show=!1}},{key:"update",value:function(o){o&&o.prizeId&&(this.isCoupon=!0)}}]),e}();y([r],Bt.prototype,"Overlay",void 0),y([r],Bt.prototype,"video",void 0),y([r],Bt.prototype,"contentWrap",void 0),y([r],Bt.prototype,"isCoupon",void 0),y([t({mode:"boolean"})],Bt.prototype,"show",void 0),y([Ct],Bt.prototype,"showChanged",null),y([yt(300)],Bt.prototype,"accept",null),Bt=y([e({name:"g-collect-conflate",template:Ht,styles:Jo,shadowOptions:{mode:"closed"}})],Bt);var Pt=o(Ft||(Ft=b(["\n","\n.ListWrap{\ndisplay:flex;\nwidth:100%;\npadding:0 0 0 3.2vw;\nmargin:0 auto;\n}\n.CardWrap{display:flex}\n.CardWrap div.Card{\nwidth:14.9333333333vw;\nheight:20.266666666vw;\nmargin: 0 2.666666666vw 0 0;\n}\n.CardWrap div.Card img {height:100%;width:100%}\n.Synthesis{\nposition:relative;\nwidth:22.4vw;height:22.4vw;margin:0 1vw 0 -1vw;\n}\n.Synthesis .Tips{position:absolute;left:0;top:-6.5vw;z-index:6; width:35.2vw;}\n.Synthesis .Svga,\n.Synthesis .Img,\n.Synthesis video {\nposition: absolute;left:0;top:0;\nwidth:22.4vw;height:22.4vw;\nmargin:-2vw 0 0;\n}\n.Synthesis .Img {z-index:2; opacity: 0.8;}\n.Synthesis .Svga{z-index:3;","}\n.Synthesis video{z-index:3;","}\nh-badge{right:6px;top:6px;}\n"])),xo(),ko(["PoiNo"]),ko(["PoiNo"]));class Ot extends i{constructor(){super(...arguments),this.disabled=!1}colorChanged(o,t){Mo(this)({color:t})}sizeChanged(o,t){for(let o=0;o<this.children.length;o++){Oo(this.children[o])("size",this.size)}}connectedCallback(){super.connectedCallback()}injection(o){o&&o(this)}setValueFn(o,t){this[o+"Changed"]("",t)}update(o,t){t&&t(o)}childrenFn(o){const t=this.children.length;if(t>0){for(let o=0;o<t;o++){const e=this.children[o];0==o?Oo(e)("first"):o+1==t&&Oo(e)("last"),Oo(e)("index",String(o))}o&&o()}}}mo([t],Ot.prototype,"color",void 0),mo([t],Ot.prototype,"size",void 0),mo([t({mode:"boolean"})],Ot.prototype,"disabled",void 0);const qt=o`
356
356
  ${rt()}
357
357
  ${ht("flex")}
358
358
  :host {
@@ -470,4 +470,4 @@ div{
470
470
  <div ${a("SVGAPlayer")}></div>
471
471
  </span>
472
472
  </template>
473
- `;let zt=class extends Ot{pathChanged(o,t){t&&this.loadSvga()}connectedCallback(){super.connectedCallback(),this.loadSvga()}loadSvga(){return function(o,t,e,i){return new(e||(e=Promise))((function(n,a){function r(o){try{s(i.next(o))}catch(o){a(o)}}function R(o){try{s(i.throw(o))}catch(o){a(o)}}function s(o){var t;o.done?n(o.value):(t=o.value,t instanceof e?t:new e((function(o){o(t)}))).then(r,R)}s((i=i.apply(o,t||[])).next())}))}(this,void 0,void 0,(function*(){var o;yield(o=atob("aHR0cHM6Ly96anJzLmhhaWVyLm5ldA==")+"/download/cdn/svga.min.js","SVGA",new Promise(((t,e)=>{if(void 0!==o){const e=new At,i=o.substring(o.lastIndexOf(".")+1),n=document.getElementsByTagName("head")[0];if(document.querySelectorAll('script[src*="'+o+'"]').length<=0){if("js"===i){const e=document.createElement("script");e.src=o,e.type="text/javascript",n.appendChild(e),e.onload=e.onreadystatechange=function(){this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||t(!0)}}else if("css"===i){const t=document.createElement("link");t.href=o,t.rel="stylesheet",t.type="text/css",n.appendChild(t)}}else e.init({front:String("SVGA"),callback:()=>{t(!0)}})}else e(!1)})));let t=new SVGA.Player(this.SVGAPlayer);new SVGA.Parser(this.SVGAPlayer).load(this.path,(o=>{this.height=o.videoSize.height,this.width=o.videoSize.width,this.$emit("change",{height:o.videoSize.height,width:o.videoSize.width}),t.setVideoItem(o),t.startAnimation()}))}))}};var Vt,Lt,Wt,Xt;function _t(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 e,i=g(o);if(t){var n=g(this).constructor;e=Reflect.construct(i,arguments,n)}else e=i.apply(this,arguments);return K(this,e)}}mo([r],zt.prototype,"SVGAPlayer",void 0),mo([t],zt.prototype,"path",void 0),mo([t({converter:R})],zt.prototype,"width",void 0),mo([t({converter:R})],zt.prototype,"height",void 0),zt=mo([e({name:"h-svga",styles:Zt,template:Dt})],zt);var $t,oe=n(Vt||(Vt=b(['\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"])),s((function(o){return o.isVideo}),n(Lt||(Lt=b(['<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("eXMtempycw==")>-1?Uo.pathys:Uo.path,Uo.path)),(function(o){return o.isVideo?"hide":""}),Uo.path,l((function(o){return o.cardItem}),n(Wt||(Wt=b(['<div class="Card">\n ','\n <img src="','"/></div>'])),s((function(o){return o.total>0}),n(Xt||(Xt=b(['<h-badge count="','"></h-badge>'])),(function(o){return o.total}))),(function(o){return o.total>0?o.card:o.grey})),{positioning:!0})),te=function(o){J(e,i);var t=_t(e);function e(){var o;return d(this,e),(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([Tt,zt]),o}return S(e,[{key:"connectedCallback",value:function(){x(g(e.prototype),"connectedCallback",this).call(this)}},{key:"SynthesisFn",value:function(){this.$emit("change","synthesis")}},{key:"update",value:function(o){if(o&&o.cardList){for(var t=Array.from({length:4}),e=0;e<o.cardList.length;e++){var i=o.cardList[e];t[i.cardType-1]={total:i.cardNum,card:"".concat(Uo.path,"/download/img/collect/small0").concat(i.cardType,".png"),grey:"".concat(Uo.path,"/download/img/collect/small0").concat(i.cardType,"-1.png")}}this.cardItem=t,this.isVideo=o.isCanCompose}}}]),e}();y([r],te.prototype,"isVideo",void 0),y([r],te.prototype,"cardItem",void 0),y([yt(300)],te.prototype,"SynthesisFn",null),te=y([e({name:"g-collect-list",template:oe,styles:Pt,shadowOptions:{mode:"closed"}})],te);var ee=o($t||($t=b(["\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 ie(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var ne,ae={exports:{}};(ne=ae).exports=function(o,t){if(!(o instanceof t))throw new TypeError("Cannot call a class as a function")},ne.exports.__esModule=!0,ne.exports.default=ne.exports;var re=ie(ae.exports),Re={exports:{}},se={exports:{}},le={exports:{}};!function(o){function t(e){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(e)}o.exports=t,o.exports.__esModule=!0,o.exports.default=o.exports}(le);var Ie=ie(le.exports),he={exports:{}};!function(o){var t=le.exports.default;o.exports=function(o,e){if("object"!==t(o)||null===o)return o;var i=o[Symbol.toPrimitive];if(void 0!==i){var n=i.call(o,e||"default");if("object"!==t(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(o)},o.exports.__esModule=!0,o.exports.default=o.exports}(he),function(o){var t=le.exports.default,e=he.exports;o.exports=function(o){var i=e(o,"string");return"symbol"===t(i)?i:String(i)},o.exports.__esModule=!0,o.exports.default=o.exports}(se),function(o){var t=se.exports;function e(o,e){for(var i=0;i<e.length;i++){var n=e[i];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,i){return t&&e(o.prototype,t),i&&e(o,i),Object.defineProperty(o,"prototype",{writable:!1}),o},o.exports.__esModule=!0,o.exports.default=o.exports}(Re);var pe=ie(Re.exports),de={exports:{}},ce={exports:{}},je={exports:{}};!function(o){function t(e){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(e)}o.exports=t,o.exports.__esModule=!0,o.exports.default=o.exports}(je);var Ee=ie(je.exports);!function(o){var t=je.exports;o.exports=function(o,e){for(;!Object.prototype.hasOwnProperty.call(o,e)&&null!==(o=t(o)););return o},o.exports.__esModule=!0,o.exports.default=o.exports}(ce),function(o){var t=ce.exports;function e(){return"undefined"!=typeof Reflect&&Reflect.get?(o.exports=e=Reflect.get.bind(),o.exports.__esModule=!0,o.exports.default=o.exports):(o.exports=e=function(o,e,i){var n=t(o,e);if(n){var a=Object.getOwnPropertyDescriptor(n,e);return a.get?a.get.call(arguments.length<3?o:i):a.value}},o.exports.__esModule=!0,o.exports.default=o.exports),e.apply(this,arguments)}o.exports=e,o.exports.__esModule=!0,o.exports.default=o.exports}(de);var fe=ie(de.exports),Se={exports:{}},Ge={exports:{}};!function(o){function t(e,i){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(e,i)}o.exports=t,o.exports.__esModule=!0,o.exports.default=o.exports}(Ge),function(o){var t=Ge.exports;o.exports=function(o,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),e&&t(o,e)},o.exports.__esModule=!0,o.exports.default=o.exports}(Se);var ue=ie(Se.exports),ke={exports:{}},ge={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}(ge),function(o){var t=le.exports.default,e=ge.exports;o.exports=function(o,i){if(i&&("object"===t(i)||"function"==typeof i))return i;if(void 0!==i)throw new TypeError("Derived constructors may only return object or undefined");return e(o)},o.exports.__esModule=!0,o.exports.default=o.exports}(ke);var xe,ve,Ue=ie(ke.exports);function Je(o,t,e,i){var n,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"===("undefined"==typeof Reflect?"undefined":Ie(Reflect))&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var R=o.length-1;R>=0;R--)(n=o[R])&&(r=(a<3?n(r):a>3?n(t,e,r):n(t,e))||r);return a>3&&r&&Object.defineProperty(t,e,r),r}xe=window,ve={},function o(t,e,i,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),e=o.getContext("2d");e.fillRect(0,0,1,1);var i=o.transferToImageBitmap();try{e.createPattern(i,"no-repeat")}catch(o){return!1}return!0}();function s(){}function l(o){var i=e.exports.Promise,n=void 0!==i?i:t.Promise;return"function"==typeof n?new n(o):(o(s,s),null)}var I,h,p,d,c,j,E,f,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=(c=Math.floor(1e3/60),j={},E=0,"function"==typeof requestAnimationFrame&&"function"==typeof cancelAnimationFrame?(p=function(o){var t=Math.random();return j[t]=requestAnimationFrame((function e(i){E===i||E+c-1<i?(E=i,delete j[t],o()):j[t]=requestAnimationFrame(e)})),t},d=function(o){j[o]&&cancelAnimationFrame(j[o])}):(p=function(o){return setTimeout(o,c)},d=function(o){return clearTimeout(o)}),{frame:p,cancel:d}),x=(G={},function(){if(f)return f;if(!i&&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{f=new Worker(URL.createObjectURL(new Blob([t])))}catch(o){return void 0!==("undefined"==typeof console?"undefined":Ie(console))&&"function"==typeof console.warn&&console.warn("🎊 Could not load worker",o),null}!function(o){function t(t,e){o.postMessage({options:t||{},callback:e})}o.init=function(t){var e=t.transferControlToOffscreen();o.postMessage({canvas:e},[e])},o.fire=function(e,i,n){if(S)return t(e,null),S;var a=Math.random().toString(36).slice(2);return S=l((function(i){function r(t){t.data.callback===a&&(delete G[a],o.removeEventListener("message",r),S=null,k.clear(),n(),i())}o.addEventListener("message",r),t(e,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]}}(f)}return f}),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,e){return function(o,t){return t?t(o):o}(o&&null!=o[t]?o[t]:v[t],e)}function J(o){return o<0?0:Math.floor(o)}function m(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:m(t.substring(0,2)),g:m(t.substring(2,4)),b:m(t.substring(4,6))}}function N(o){o.width=document.documentElement.clientWidth,o.height=document.documentElement.clientHeight}function b(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 e=t.tick++/t.totalTicks,i=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-e)+")",o.beginPath(),r&&"path"===t.shape.type&&"string"==typeof t.shape.path&&Array.isArray(t.shape.matrix))o.fill(function(o,t,e,i,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,e,i])),l}(t.shape.path,t.shape.matrix,t.x,t.y,.1*Math.abs(a-i),.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-i),I=.1*Math.abs(R-n),h=t.shape.bitmap.width*t.scalar,p=t.shape.bitmap.height*t.scalar,d=new DOMMatrix([Math.cos(s)*l,Math.sin(s)*l,-Math.sin(s)*I,Math.cos(s)*I,t.x,t.y]);d.multiplySelf(new DOMMatrix(t.shape.matrix));var c=o.createPattern(k.transform(t.shape.bitmap),"no-repeat");c.setTransform(d),o.globalAlpha=1-e,o.fillStyle=c,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-i)*t.ovalScalar,Math.abs(R-n)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):function(o,t,e,i,n,a,r,R,s){o.save(),o.translate(t,e),o.rotate(a),o.scale(i,n),o.arc(0,0,1,0,R,void 0),o.restore()}(o,t.x,t.y,Math.abs(a-i)*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,E=4*t.scalar,f=8*t.scalar,S=t.x,G=t.y,u=5,g=Math.PI/u;u--;)S=t.x+Math.cos(j)*f,G=t.y+Math.sin(j)*f,o.lineTo(S,G),j+=g,S=t.x+Math.cos(j)*E,G=t.y+Math.sin(j)*E,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(i),Math.floor(t.wobbleY));return o.closePath(),o.fill(),t.tick<t.totalTicks}function Q(o,e){var r,R=!o,s=!!U(e||{},"resize"),I=!1,h=U(e,"disableForReducedMotion",Boolean),p=a&&U(e||{},"useWorker")?x():null,d=R?N:b,c=!(!o||!p||!o.__confetti_initialized),j="function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function E(t,e,a){for(var R,s,I,h,p=U(t,"particleCount",J),c=U(t,"angle",Number),j=U(t,"spread",Number),E=U(t,"startVelocity",Number),f=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"),m=U(t,"scalar"),K=!!U(t,"flat"),N=function(o){var t=U(o,"origin",Object);return t.x=U(t,"x",Number),t.y=U(t,"y",Number),t}(t),b=p,Q=[],y=o.width*N.x,Y=o.height*N.y;b--;)Q.push((s=(R={x:y,y:Y,angle:c,spread:j,startVelocity:E,color:u[b%u.length],shape:v[(h=v.length,Math.floor(Math.random()*(h-0))+0)],ticks:x,decay:f,gravity:S,drift:G,scalar:m,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,e,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(){!i||a.width===n.width&&a.height===n.height||(a.width=o.width=n.width,a.height=o.height=n.height),a.width||a.height||(e(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,d,e,a),r.promise)}function f(e){var i=h||U(e,"disableForReducedMotion",Boolean),n=U(e,"zIndex",Number);if(i&&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&&!c&&d(o);var a={width:o.width,height:o.height};function f(){if(p){var t={getBoundingClientRect:function(){if(!R)return o.getBoundingClientRect()}};return d(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",f)),R&&o&&(document.body.removeChild(o),o=null,c=!1)}return p&&!c&&p.init(o),c=!0,p&&(o.__confetti_initialized=!0),s&&!I&&(I=!0,t.addEventListener("resize",f,!1)),p?p.fire(e,a,S):E(e,a,S)}return f.reset=function(){p&&p.reset(),r&&r.reset()},f}function y(){return u||(u=Q(null,{useWorker:!0,resize:!0})),u}e.exports=function(){return y().apply(this,arguments)},e.exports.reset=function(){y().reset()},e.exports.create=Q,e.exports.shapeFromPath=function(o){if(!r)throw new Error("path confetti are not supported in this browser");var t,e;"string"==typeof o?t=o:(t=o.path,e=o.matrix);var i=new Path2D(t),n=document.createElement("canvas").getContext("2d");if(!e){for(var a,R,s=1e3,l=s,I=s,h=0,p=0,d=0;d<s;d+=2)for(var c=0;c<s;c+=2)n.isPointInPath(i,d,c,"nonzero")&&(l=Math.min(l,d),I=Math.min(I,c),h=Math.max(h,d),p=Math.max(p,c));a=h-l,R=p-I;var j=Math.min(10/a,10/R);e=[j,0,0,j,-Math.round(a/2+l)*j,-Math.round(R/2+I)*j]}return{type:"path",path:t,matrix:e}},e.exports.shapeFromText=function(o){var t,e=1,i="#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,e="scalar"in o?o.scalar:e,n="fontFamily"in o?o.fontFamily:n,i="color"in o?o.color:i);var a=10*e,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,d=l.actualBoundingBoxAscent+2;I+=4,h+=4,(s=(R=new OffscreenCanvas(I,h)).getContext("2d")).font=r,s.fillStyle=i,s.fillText(t,p,d);var c=1/e;return{type:"bitmap",bitmap:R.transferToImageBitmap(),matrix:[c,0,0,c,-I*c/2,-h*c/2]}}}(function(){return void 0!==xe?xe:"undefined"!=typeof self?self:this||{}}(),ve,!1),xe.confetti=ve.exports;var me=function(o){ue(e,i);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 e,i=Ee(o);if(t){var n=Ee(this).constructor;e=Reflect.construct(i,arguments,n)}else e=i.apply(this,arguments);return Ue(this,e)}}(e);function e(){var o;return re(this,e),(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 pe(e,[{key:"connectedCallback",value:function(){fe(Ee(e.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}})}}]),e}();Je([r],me.prototype,"game",void 0),Je([t({converter:R})],me.prototype,"zindex",void 0),me=Je([e({name:"g-confetti",shadowOptions:{mode:"closed"}})],me);var Ce={init:function(){confetti({particleCount:200,spread:70,zIndex:4e3,origin:{y:.4}})}};function Ke(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}window.Effects=window.Effects||{},window.Effects.confetti=Ce;var Ne,be={exports:{}};(Ne=be).exports=function(o,t){if(!(o instanceof t))throw new TypeError("Cannot call a class as a function")},Ne.exports.__esModule=!0,Ne.exports.default=Ne.exports;var Me=Ke(be.exports),Qe={exports:{}},ye={exports:{}},Ye={exports:{}};!function(o){function t(e){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(e)}o.exports=t,o.exports.__esModule=!0,o.exports.default=o.exports}(Ye);var Fe=Ke(Ye.exports),He={exports:{}};!function(o){var t=Ye.exports.default;o.exports=function(o,e){if("object"!==t(o)||null===o)return o;var i=o[Symbol.toPrimitive];if(void 0!==i){var n=i.call(o,e||"default");if("object"!==t(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(o)},o.exports.__esModule=!0,o.exports.default=o.exports}(He),function(o){var t=Ye.exports.default,e=He.exports;o.exports=function(o){var i=e(o,"string");return"symbol"===t(i)?i:String(i)},o.exports.__esModule=!0,o.exports.default=o.exports}(ye),function(o){var t=ye.exports;function e(o,e){for(var i=0;i<e.length;i++){var n=e[i];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,i){return t&&e(o.prototype,t),i&&e(o,i),Object.defineProperty(o,"prototype",{writable:!1}),o},o.exports.__esModule=!0,o.exports.default=o.exports}(Qe);var Be=Ke(Qe.exports),Pe={exports:{}},Oe={exports:{}},qe={exports:{}};!function(o){function t(e){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(e)}o.exports=t,o.exports.__esModule=!0,o.exports.default=o.exports}(qe);var we=Ke(qe.exports);!function(o){var t=qe.exports;o.exports=function(o,e){for(;!Object.prototype.hasOwnProperty.call(o,e)&&null!==(o=t(o)););return o},o.exports.__esModule=!0,o.exports.default=o.exports}(Oe),function(o){var t=Oe.exports;function e(){return"undefined"!=typeof Reflect&&Reflect.get?(o.exports=e=Reflect.get.bind(),o.exports.__esModule=!0,o.exports.default=o.exports):(o.exports=e=function(o,e,i){var n=t(o,e);if(n){var a=Object.getOwnPropertyDescriptor(n,e);return a.get?a.get.call(arguments.length<3?o:i):a.value}},o.exports.__esModule=!0,o.exports.default=o.exports),e.apply(this,arguments)}o.exports=e,o.exports.__esModule=!0,o.exports.default=o.exports}(Pe);var Te=Ke(Pe.exports),Ae={exports:{}},Ze={exports:{}};!function(o){function t(e,i){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(e,i)}o.exports=t,o.exports.__esModule=!0,o.exports.default=o.exports}(Ze),function(o){var t=Ze.exports;o.exports=function(o,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),e&&t(o,e)},o.exports.__esModule=!0,o.exports.default=o.exports}(Ae);var De=Ke(Ae.exports),ze={exports:{}},Ve={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}(Ve),function(o){var t=Ye.exports.default,e=Ve.exports;o.exports=function(o,i){if(i&&("object"===t(i)||"function"==typeof i))return i;if(void 0!==i)throw new TypeError("Derived constructors may only return object or undefined");return e(o)},o.exports.__esModule=!0,o.exports.default=o.exports}(ze);var Le=Ke(ze.exports),We={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}(We);var Xe,_e=Ke(We.exports);function $e(o,t,e,i){var n,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"===("undefined"==typeof Reflect?"undefined":Fe(Reflect))&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var R=o.length-1;R>=0;R--)(n=o[R])&&(r=(a<3?n(r):a>3?n(t,e,r):n(t,e))||r);return a>3&&r&&Object.defineProperty(t,e,r),r}var oi=o(Xe||(Xe=_e(["\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"]))),ti={exports:{}},ei={exports:{}},ii={exports:{}};!function(o){o.exports=function(o,t){(null==t||t>o.length)&&(t=o.length);for(var e=0,i=new Array(t);e<t;e++)i[e]=o[e];return i},o.exports.__esModule=!0,o.exports.default=o.exports}(ii),function(o){var t=ii.exports;o.exports=function(o){if(Array.isArray(o))return t(o)},o.exports.__esModule=!0,o.exports.default=o.exports}(ei);var ni={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}(ni);var ai={exports:{}};!function(o){var t=ii.exports;o.exports=function(o,e){if(o){if("string"==typeof o)return t(o,e);var i=Object.prototype.toString.call(o).slice(8,-1);return"Object"===i&&o.constructor&&(i=o.constructor.name),"Map"===i||"Set"===i?Array.from(o):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?t(o,e):void 0}},o.exports.__esModule=!0,o.exports.default=o.exports}(ai);var ri={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}(ri),function(o){var t=ei.exports,e=ni.exports,i=ai.exports,n=ri.exports;o.exports=function(o){return t(o)||e(o)||i(o)||n()},o.exports.__esModule=!0,o.exports.default=o.exports}(ti);var Ri=Ke(ti.exports),si={exports:{}},li={exports:{}};!function(o){o.exports=function(o){if(Array.isArray(o))return o},o.exports.__esModule=!0,o.exports.default=o.exports}(li);var Ii={exports:{}};!function(o){o.exports=function(o,t){var e=null==o?null:"undefined"!=typeof Symbol&&o[Symbol.iterator]||o["@@iterator"];if(null!=e){var i,n,a,r,R=[],s=!0,l=!1;try{if(a=(e=e.call(o)).next,0===t){if(Object(e)!==e)return;s=!1}else for(;!(s=(i=a.call(e)).done)&&(R.push(i.value),R.length!==t);s=!0);}catch(o){l=!0,n=o}finally{try{if(!s&&null!=e.return&&(r=e.return(),Object(r)!==r))return}finally{if(l)throw n}}return R}},o.exports.__esModule=!0,o.exports.default=o.exports}(Ii);var hi={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}(hi),function(o){var t=li.exports,e=Ii.exports,i=ai.exports,n=hi.exports;o.exports=function(o,a){return t(o)||e(o,a)||i(o,a)||n()},o.exports.__esModule=!0,o.exports.default=o.exports}(si);var pi,di=Ke(si.exports),ci=Math.min,ji=Math.max,Ei=Math.floor,fi=Math.round;function Si(o,t,e){t/=100,e/=100;var i=Ei(o=o/360*6),n=o-i,a=e*(1-t),r=e*(1-n*t),R=e*(1-(1-n)*t),s=i%6;return[255*[e,r,a,a,R,e][s],255*[R,e,e,r,a,a][s],255*[a,a,R,e,e,r][s]]}function Gi(o,t,e){var i,n,a=ci(o/=255,t/=255,e/=255),r=ji(o,t,e),R=r-a;if(0===R)i=n=0;else{n=R/r;var s=((r-o)/6+R/2)/R,l=((r-t)/6+R/2)/R,I=((r-e)/6+R/2)/R;o===r?i=I-l:t===r?i=1/3+s-I:e===r&&(i=2/3+l-s),i<0?i+=1:i>1&&(i-=1)}return[360*i,100*n,100*r]}function ui(o,t,e,i){t/=100,e/=100;var n=255*(1-ci(1,(o/=100)*(1-(i/=100))+i)),a=255*(1-ci(1,t*(1-i)+i)),r=255*(1-ci(1,e*(1-i)+i));return Ri(Gi(n,a,r))}function ki(o,t,e){return t/=100,[o,(e/=100)+(t*=e<.5?e:1-e)?2*t/(e+t)*100:0,100*(e+t)]}function gi(o){return Gi.apply(void 0,Ri(o.match(/.{2}/g).map((function(o){return parseInt(o,16)}))))}function xi(){var o=function(o,t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t(~e?o.map((function(o){return Number(o.toFixed(e))})):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 e=[t.h,t.s,t.v,t.a];return e.toString=o(e,(function(o){return"hsva(".concat(o[0],", ").concat(o[1],"%, ").concat(o[2],"%, ").concat(t.a,")")})),e},toHSLA:function(){var e=[].concat(Ri(function(o,t,e){var i=(2-(t/=100))*(e/=100)/2;return 0!==i&&(t=1===i?0:i<.5?t*e/(2*i):t*e/(2-2*i)),[o,100*t,100*i]}(t.h,t.s,t.v)),[t.a]);return e.toString=o(e,(function(o){return"hsla(".concat(o[0],", ").concat(o[1],"%, ").concat(o[2],"%, ").concat(t.a,")")})),e},toRGBA:function(){var e=[].concat(Ri(Si(t.h,t.s,t.v)),[t.a]);return e.toString=o(e,(function(o){return"rgba(".concat(o[0],", ").concat(o[1],", ").concat(o[2],", ").concat(t.a,")")})),e},toCMYK:function(){var e=function(o,t,e){var i,n=Si(o,t,e),a=n[0]/255,r=n[1]/255,R=n[2]/255;return[100*(1===(i=ci(1-a,1-r,1-R))?0:(1-a-i)/(1-i)),100*(1===i?0:(1-r-i)/(1-i)),100*(1===i?0:(1-R-i)/(1-i)),100*i]}(t.h,t.s,t.v);return e.toString=o(e,(function(o){return"cmyk(".concat(o[0],"%, ").concat(o[1],"%, ").concat(o[2],"%, ").concat(o[3],"%)")})),e},toHEXA:function(){var o=function(o,t,e){return Si(o,t,e).map((function(o){return fi(o).toString(16).padStart(2,"0")}))}(t.h,t.s,t.v),e=t.a>=1?"":Number((255*t.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return e&&o.push(e),o.toString=function(){return"#".concat(o.join("").toUpperCase())},o},clone:function(){return xi(t.h,t.s,t.v,t.a)}};return t}var vi,Ui,Ji,mi,Ci,Ki,Ni=n(pi||(pi=_e(['\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']))),bi=function(o){De(e,i);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 e,i=we(o);if(t){var n=we(this).constructor;e=Reflect.construct(i,arguments,n)}else e=i.apply(this,arguments);return Le(this,e)}}(e);function e(){var o;return Me(this,e),(o=t.call(this)).color="#faf014",o}return Be(e,[{key:"colorChanged",value:function(o,t){var e,i;t&&this.style.setProperty("--color",(.2,e=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,e={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},i=function(o){return o.map((function(o){return/^(|\d+)\.\d+|\d+$/.test(o)?Number(o):void 0}))};o:for(var n in e)if(t=e[n].exec(o))switch(n){case"cmyk":var a=i(t),r=di(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:ui(R,s,l,I),type:n};case"rgba":var h=i(t),p=di(h,7),d=p[3],c=p[4],j=p[5],E=p[6];if(d>255||c>255||j>255||E<0||E>1)break o;return{values:[].concat(Ri(Gi(d,c,j)),[E]),a:E,type:n};case"hexa":var f=di(t,2)[1];4!==f.length&&3!==f.length||(f=f.split("").map((function(o){return o+o})).join(""));var S=f.substring(0,6),G=f.substring(6);return G=G?parseInt(G,16)/255:void 0,{values:[].concat(Ri(gi(S)),[G]),a:G,type:n};case"hsla":var u=i(t),k=di(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(Ri(ki(g,x,v)),[U]),a:U,type:n};case"hsva":var J=i(t),m=di(J,7),C=m[3],K=m[4],N=m[5],b=m[6];if(C>360||K>100||N>100||b<0||b>1)break o;return{values:[C,K,N,b],a:b,type:n}}return{values:null,type:null}}(t),i=xi.apply(void 0,Ri(e.values)).toRGBA(),"rgba(".concat(i[0].toFixed(0),",").concat(i[1].toFixed(0),",").concat(i[2].toFixed(0),",").concat(.2*Number(i[3].toFixed(2)),")")))}},{key:"connectedCallback",value:function(){Te(we(e.prototype),"connectedCallback",this).call(this)}}]),e}();function Mi(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 e,i=g(o);if(t){var n=g(this).constructor;e=Reflect.construct(i,arguments,n)}else e=i.apply(this,arguments);return K(this,e)}}$e([t],bi.prototype,"dir",void 0),$e([t],bi.prototype,"color",void 0),bi=$e([e({name:"h-spotlight",template:Ni,styles:oi,shadowOptions:{mode:"closed"}})],bi);var Qi,yi=n(vi||(vi=b(["\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"),s((function(o){return 1==o.type}),n(Ui||(Ui=b(['<img src="','" class="Card" draggable="false"/>'])),(function(o){return o.imgSrc}))),s((function(o){return 2==o.type}),n(Ji||(Ji=b(['<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"),s((function(o){return 1==o.type}),n(mi||(mi=b(['<img src="','/download/img/collect/title01.png"/>\n <p class="Subtitle">',"</p>"])),Uo.path,(function(o){return o.number>0?n(Ci||(Ci=b(["再集","张不同卡面即可合成场景卡"])),(function(o){return o.number})):"可以去合成三翼鸟场景品牌卡啦!"}))),s((function(o){return 2==o.type}),n(Ki||(Ki=b(['<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),Yi=function(o){J(e,i);var t=Mi(e);function e(){var o;return d(this,e),(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,me,bi]),o}return S(e,[{key:"indexChanged",value:function(o,t){var e=this;setTimeout((function(){e.imgSrc=Uo["card"+t]}),10)}},{key:"showChanged",value:function(o,t){null===t||!1===t?Nt(this.Overlay)("show"):Kt(this.Overlay)("show")}},{key:"connectedCallback",value:function(){var o=this;x(g(e.prototype),"connectedCallback",this).call(this),1==this.type?(setTimeout((function(){Qt.instance.add(o.contentWrap,"show")}),1e3),setTimeout((function(){o.isClick=!0}),3e3)):(Qt.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)}}]),e}();y([r],Yi.prototype,"Overlay",void 0),y([r],Yi.prototype,"video",void 0),y([r],Yi.prototype,"contentWrap",void 0),y([r],Yi.prototype,"prizeName",void 0),y([r],Yi.prototype,"prizeQuota",void 0),y([r],Yi.prototype,"imgSrc",void 0),y([t({converter:R})],Yi.prototype,"type",void 0),y([t({converter:R})],Yi.prototype,"index",void 0),y([t({converter:R})],Yi.prototype,"number",void 0),y([t({mode:"boolean"})],Yi.prototype,"show",void 0),y([Ct],Yi.prototype,"showChanged",null),y([yt(300)],Yi.prototype,"accept",null),y([yt(300)],Yi.prototype,"look",null),Yi=y([e({name:"g-collect-prize",template:yi,styles:ee,shadowOptions:{mode:"closed"}})],Yi);var Fi,Hi,Bi,Pi,Oi=o(Qi||(Qi=b(["\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 qi(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 e,i=g(o);if(t){var n=g(this).constructor;e=Reflect.construct(i,arguments,n)}else e=i.apply(this,arguments);return K(this,e)}}var wi=n(Fi||(Fi=b(['\n<section class="SwipeWrap">\n <span>\n ',"\n </span>\n <span>\n ","\n </span>\n <span>\n ","\n </span>\n</section>\n"])),s((function(o){return o.active>0}),n(Hi||(Hi=b(['<img class="Nav Left" @click="','" src="','/download/img/collect/arrowL.png" draggable="false"/>'])),(function(o){return o.setActive("l")}),Uo.path)),l((function(o){return o.cardItem}),n(Bi||(Bi=b(['<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}),s((function(o){return o.active<o.cardItem.length-1}),n(Pi||(Pi=b(['<img class="Nav Right" @click="','" src="','/download/img/collect/arrowR.png" draggable="false"/>'])),(function(o){return o.setActive("r")}),Uo.path))),Ti=function(o){J(e,i);var t=qi(e);function e(){var o;return d(this,e),(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(e,[{key:"arrowChanged",value:function(o,t){null===t||!1===t?Qt.instance.remove(this,"isArrow"):Qt.instance.add(this,"isArrow")}},{key:"connectedCallback",value:function(){x(g(e.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:"update",value:function(o){if(o&&o.cardList){for(var t=Array.from({length:4}),e=0;e<o.cardList.length;e++){var i=o.cardList[e];t[i.cardType-1]={total:i.cardNum,card:"".concat(Uo.path,"/download/img/collect/card0").concat(i.cardType,".png"),grey:"".concat(Uo.path,"/download/img/collect/card0").concat(i.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)}}}]),e}();y([r],Ti.prototype,"cardItem",void 0),y([r],Ti.prototype,"isComposed",void 0),y([t({converter:R})],Ti.prototype,"active",void 0),y([t({mode:"boolean"})],Ti.prototype,"arrow",void 0),Ti=y([e({name:"g-collect-swipe",template:wi,styles:Oi,shadowOptions:{mode:"closed"}})],Ti);export{Bt as HiCollectConflate,te as HiCollectList,Yi as HiCollectPrize,Ti as HiCollectSwipe};
473
+ `;let zt=class extends Ot{pathChanged(o,t){t&&this.loadSvga()}connectedCallback(){super.connectedCallback(),this.loadSvga()}loadSvga(){return function(o,t,e,i){return new(e||(e=Promise))((function(n,a){function r(o){try{s(i.next(o))}catch(o){a(o)}}function R(o){try{s(i.throw(o))}catch(o){a(o)}}function s(o){var t;o.done?n(o.value):(t=o.value,t instanceof e?t:new e((function(o){o(t)}))).then(r,R)}s((i=i.apply(o,t||[])).next())}))}(this,void 0,void 0,(function*(){var o;yield(o=atob("aHR0cHM6Ly96anJzLmhhaWVyLm5ldA==")+"/download/cdn/svga.min.js","SVGA",new Promise(((t,e)=>{if(void 0!==o){const e=new At,i=o.substring(o.lastIndexOf(".")+1),n=document.getElementsByTagName("head")[0];if(document.querySelectorAll('script[src*="'+o+'"]').length<=0){if("js"===i){const e=document.createElement("script");e.src=o,e.type="text/javascript",n.appendChild(e),e.onload=e.onreadystatechange=function(){this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||t(!0)}}else if("css"===i){const t=document.createElement("link");t.href=o,t.rel="stylesheet",t.type="text/css",n.appendChild(t)}}else e.init({front:String("SVGA"),callback:()=>{t(!0)}})}else e(!1)})));let t=new SVGA.Player(this.SVGAPlayer);new SVGA.Parser(this.SVGAPlayer).load(this.path,(o=>{this.height=o.videoSize.height,this.width=o.videoSize.width,this.$emit("change",{height:o.videoSize.height,width:o.videoSize.width}),t.setVideoItem(o),t.startAnimation()}))}))}};var Vt,Lt,Wt,Xt;function _t(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 e,i=g(o);if(t){var n=g(this).constructor;e=Reflect.construct(i,arguments,n)}else e=i.apply(this,arguments);return K(this,e)}}mo([r],zt.prototype,"SVGAPlayer",void 0),mo([t],zt.prototype,"path",void 0),mo([t({converter:R})],zt.prototype,"width",void 0),mo([t({converter:R})],zt.prototype,"height",void 0),zt=mo([e({name:"h-svga",styles:Zt,template:Dt})],zt);var $t,oe=n(Vt||(Vt=b(['\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"])),s((function(o){return o.isVideo}),n(Lt||(Lt=b(['<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,l((function(o){return o.cardItem}),n(Wt||(Wt=b(['<div class="Card">\n ','\n <img src="','"/></div>'])),s((function(o){return o.total>0}),n(Xt||(Xt=b(['<h-badge count="','"></h-badge>'])),(function(o){return o.total}))),(function(o){return o.total>0?o.card:o.grey})),{positioning:!0})),te=function(o){J(e,i);var t=_t(e);function e(){var o;return d(this,e),(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([Tt,zt]),o}return S(e,[{key:"connectedCallback",value:function(){x(g(e.prototype),"connectedCallback",this).call(this)}},{key:"SynthesisFn",value:function(){this.$emit("change","synthesis")}},{key:"update",value:function(o){if(o&&o.cardList){for(var t=Array.from({length:4}),e=0;e<o.cardList.length;e++){var i=o.cardList[e];t[i.cardType-1]={total:i.cardNum,card:"".concat(Uo.path,"/download/img/collect/small0").concat(i.cardType,".png"),grey:"".concat(Uo.path,"/download/img/collect/small0").concat(i.cardType,"-1.png")}}this.cardItem=t,this.isVideo=o.isCanCompose}}}]),e}();y([r],te.prototype,"isVideo",void 0),y([r],te.prototype,"cardItem",void 0),y([yt(300)],te.prototype,"SynthesisFn",null),te=y([e({name:"g-collect-list",template:oe,styles:Pt,shadowOptions:{mode:"closed"}})],te);var ee=o($t||($t=b(["\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 ie(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var ne,ae={exports:{}};(ne=ae).exports=function(o,t){if(!(o instanceof t))throw new TypeError("Cannot call a class as a function")},ne.exports.__esModule=!0,ne.exports.default=ne.exports;var re=ie(ae.exports),Re={exports:{}},se={exports:{}},le={exports:{}};!function(o){function t(e){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(e)}o.exports=t,o.exports.__esModule=!0,o.exports.default=o.exports}(le);var Ie=ie(le.exports),he={exports:{}};!function(o){var t=le.exports.default;o.exports=function(o,e){if("object"!==t(o)||null===o)return o;var i=o[Symbol.toPrimitive];if(void 0!==i){var n=i.call(o,e||"default");if("object"!==t(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(o)},o.exports.__esModule=!0,o.exports.default=o.exports}(he),function(o){var t=le.exports.default,e=he.exports;o.exports=function(o){var i=e(o,"string");return"symbol"===t(i)?i:String(i)},o.exports.__esModule=!0,o.exports.default=o.exports}(se),function(o){var t=se.exports;function e(o,e){for(var i=0;i<e.length;i++){var n=e[i];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,i){return t&&e(o.prototype,t),i&&e(o,i),Object.defineProperty(o,"prototype",{writable:!1}),o},o.exports.__esModule=!0,o.exports.default=o.exports}(Re);var pe=ie(Re.exports),de={exports:{}},ce={exports:{}},je={exports:{}};!function(o){function t(e){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(e)}o.exports=t,o.exports.__esModule=!0,o.exports.default=o.exports}(je);var Ee=ie(je.exports);!function(o){var t=je.exports;o.exports=function(o,e){for(;!Object.prototype.hasOwnProperty.call(o,e)&&null!==(o=t(o)););return o},o.exports.__esModule=!0,o.exports.default=o.exports}(ce),function(o){var t=ce.exports;function e(){return"undefined"!=typeof Reflect&&Reflect.get?(o.exports=e=Reflect.get.bind(),o.exports.__esModule=!0,o.exports.default=o.exports):(o.exports=e=function(o,e,i){var n=t(o,e);if(n){var a=Object.getOwnPropertyDescriptor(n,e);return a.get?a.get.call(arguments.length<3?o:i):a.value}},o.exports.__esModule=!0,o.exports.default=o.exports),e.apply(this,arguments)}o.exports=e,o.exports.__esModule=!0,o.exports.default=o.exports}(de);var fe=ie(de.exports),Se={exports:{}},Ge={exports:{}};!function(o){function t(e,i){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(e,i)}o.exports=t,o.exports.__esModule=!0,o.exports.default=o.exports}(Ge),function(o){var t=Ge.exports;o.exports=function(o,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),e&&t(o,e)},o.exports.__esModule=!0,o.exports.default=o.exports}(Se);var ue=ie(Se.exports),ke={exports:{}},ge={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}(ge),function(o){var t=le.exports.default,e=ge.exports;o.exports=function(o,i){if(i&&("object"===t(i)||"function"==typeof i))return i;if(void 0!==i)throw new TypeError("Derived constructors may only return object or undefined");return e(o)},o.exports.__esModule=!0,o.exports.default=o.exports}(ke);var xe,ve,Ue=ie(ke.exports);function Je(o,t,e,i){var n,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"===("undefined"==typeof Reflect?"undefined":Ie(Reflect))&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var R=o.length-1;R>=0;R--)(n=o[R])&&(r=(a<3?n(r):a>3?n(t,e,r):n(t,e))||r);return a>3&&r&&Object.defineProperty(t,e,r),r}xe=window,ve={},function o(t,e,i,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),e=o.getContext("2d");e.fillRect(0,0,1,1);var i=o.transferToImageBitmap();try{e.createPattern(i,"no-repeat")}catch(o){return!1}return!0}();function s(){}function l(o){var i=e.exports.Promise,n=void 0!==i?i:t.Promise;return"function"==typeof n?new n(o):(o(s,s),null)}var I,h,p,d,c,j,E,f,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=(c=Math.floor(1e3/60),j={},E=0,"function"==typeof requestAnimationFrame&&"function"==typeof cancelAnimationFrame?(p=function(o){var t=Math.random();return j[t]=requestAnimationFrame((function e(i){E===i||E+c-1<i?(E=i,delete j[t],o()):j[t]=requestAnimationFrame(e)})),t},d=function(o){j[o]&&cancelAnimationFrame(j[o])}):(p=function(o){return setTimeout(o,c)},d=function(o){return clearTimeout(o)}),{frame:p,cancel:d}),x=(G={},function(){if(f)return f;if(!i&&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{f=new Worker(URL.createObjectURL(new Blob([t])))}catch(o){return void 0!==("undefined"==typeof console?"undefined":Ie(console))&&"function"==typeof console.warn&&console.warn("🎊 Could not load worker",o),null}!function(o){function t(t,e){o.postMessage({options:t||{},callback:e})}o.init=function(t){var e=t.transferControlToOffscreen();o.postMessage({canvas:e},[e])},o.fire=function(e,i,n){if(S)return t(e,null),S;var a=Math.random().toString(36).slice(2);return S=l((function(i){function r(t){t.data.callback===a&&(delete G[a],o.removeEventListener("message",r),S=null,k.clear(),n(),i())}o.addEventListener("message",r),t(e,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]}}(f)}return f}),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,e){return function(o,t){return t?t(o):o}(o&&null!=o[t]?o[t]:v[t],e)}function J(o){return o<0?0:Math.floor(o)}function m(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:m(t.substring(0,2)),g:m(t.substring(2,4)),b:m(t.substring(4,6))}}function N(o){o.width=document.documentElement.clientWidth,o.height=document.documentElement.clientHeight}function b(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 e=t.tick++/t.totalTicks,i=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-e)+")",o.beginPath(),r&&"path"===t.shape.type&&"string"==typeof t.shape.path&&Array.isArray(t.shape.matrix))o.fill(function(o,t,e,i,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,e,i])),l}(t.shape.path,t.shape.matrix,t.x,t.y,.1*Math.abs(a-i),.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-i),I=.1*Math.abs(R-n),h=t.shape.bitmap.width*t.scalar,p=t.shape.bitmap.height*t.scalar,d=new DOMMatrix([Math.cos(s)*l,Math.sin(s)*l,-Math.sin(s)*I,Math.cos(s)*I,t.x,t.y]);d.multiplySelf(new DOMMatrix(t.shape.matrix));var c=o.createPattern(k.transform(t.shape.bitmap),"no-repeat");c.setTransform(d),o.globalAlpha=1-e,o.fillStyle=c,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-i)*t.ovalScalar,Math.abs(R-n)*t.ovalScalar,Math.PI/10*t.wobble,0,2*Math.PI):function(o,t,e,i,n,a,r,R,s){o.save(),o.translate(t,e),o.rotate(a),o.scale(i,n),o.arc(0,0,1,0,R,void 0),o.restore()}(o,t.x,t.y,Math.abs(a-i)*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,E=4*t.scalar,f=8*t.scalar,S=t.x,G=t.y,u=5,g=Math.PI/u;u--;)S=t.x+Math.cos(j)*f,G=t.y+Math.sin(j)*f,o.lineTo(S,G),j+=g,S=t.x+Math.cos(j)*E,G=t.y+Math.sin(j)*E,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(i),Math.floor(t.wobbleY));return o.closePath(),o.fill(),t.tick<t.totalTicks}function Q(o,e){var r,R=!o,s=!!U(e||{},"resize"),I=!1,h=U(e,"disableForReducedMotion",Boolean),p=a&&U(e||{},"useWorker")?x():null,d=R?N:b,c=!(!o||!p||!o.__confetti_initialized),j="function"==typeof matchMedia&&matchMedia("(prefers-reduced-motion)").matches;function E(t,e,a){for(var R,s,I,h,p=U(t,"particleCount",J),c=U(t,"angle",Number),j=U(t,"spread",Number),E=U(t,"startVelocity",Number),f=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"),m=U(t,"scalar"),K=!!U(t,"flat"),N=function(o){var t=U(o,"origin",Object);return t.x=U(t,"x",Number),t.y=U(t,"y",Number),t}(t),b=p,Q=[],y=o.width*N.x,Y=o.height*N.y;b--;)Q.push((s=(R={x:y,y:Y,angle:c,spread:j,startVelocity:E,color:u[b%u.length],shape:v[(h=v.length,Math.floor(Math.random()*(h-0))+0)],ticks:x,decay:f,gravity:S,drift:G,scalar:m,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,e,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(){!i||a.width===n.width&&a.height===n.height||(a.width=o.width=n.width,a.height=o.height=n.height),a.width||a.height||(e(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,d,e,a),r.promise)}function f(e){var i=h||U(e,"disableForReducedMotion",Boolean),n=U(e,"zIndex",Number);if(i&&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&&!c&&d(o);var a={width:o.width,height:o.height};function f(){if(p){var t={getBoundingClientRect:function(){if(!R)return o.getBoundingClientRect()}};return d(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",f)),R&&o&&(document.body.removeChild(o),o=null,c=!1)}return p&&!c&&p.init(o),c=!0,p&&(o.__confetti_initialized=!0),s&&!I&&(I=!0,t.addEventListener("resize",f,!1)),p?p.fire(e,a,S):E(e,a,S)}return f.reset=function(){p&&p.reset(),r&&r.reset()},f}function y(){return u||(u=Q(null,{useWorker:!0,resize:!0})),u}e.exports=function(){return y().apply(this,arguments)},e.exports.reset=function(){y().reset()},e.exports.create=Q,e.exports.shapeFromPath=function(o){if(!r)throw new Error("path confetti are not supported in this browser");var t,e;"string"==typeof o?t=o:(t=o.path,e=o.matrix);var i=new Path2D(t),n=document.createElement("canvas").getContext("2d");if(!e){for(var a,R,s=1e3,l=s,I=s,h=0,p=0,d=0;d<s;d+=2)for(var c=0;c<s;c+=2)n.isPointInPath(i,d,c,"nonzero")&&(l=Math.min(l,d),I=Math.min(I,c),h=Math.max(h,d),p=Math.max(p,c));a=h-l,R=p-I;var j=Math.min(10/a,10/R);e=[j,0,0,j,-Math.round(a/2+l)*j,-Math.round(R/2+I)*j]}return{type:"path",path:t,matrix:e}},e.exports.shapeFromText=function(o){var t,e=1,i="#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,e="scalar"in o?o.scalar:e,n="fontFamily"in o?o.fontFamily:n,i="color"in o?o.color:i);var a=10*e,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,d=l.actualBoundingBoxAscent+2;I+=4,h+=4,(s=(R=new OffscreenCanvas(I,h)).getContext("2d")).font=r,s.fillStyle=i,s.fillText(t,p,d);var c=1/e;return{type:"bitmap",bitmap:R.transferToImageBitmap(),matrix:[c,0,0,c,-I*c/2,-h*c/2]}}}(function(){return void 0!==xe?xe:"undefined"!=typeof self?self:this||{}}(),ve,!1),xe.confetti=ve.exports;var me=function(o){ue(e,i);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 e,i=Ee(o);if(t){var n=Ee(this).constructor;e=Reflect.construct(i,arguments,n)}else e=i.apply(this,arguments);return Ue(this,e)}}(e);function e(){var o;return re(this,e),(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 pe(e,[{key:"connectedCallback",value:function(){fe(Ee(e.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}})}}]),e}();Je([r],me.prototype,"game",void 0),Je([t({converter:R})],me.prototype,"zindex",void 0),me=Je([e({name:"g-confetti",shadowOptions:{mode:"closed"}})],me);var Ce={init:function(){confetti({particleCount:200,spread:70,zIndex:4e3,origin:{y:.4}})}};function Ke(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}window.Effects=window.Effects||{},window.Effects.confetti=Ce;var Ne,be={exports:{}};(Ne=be).exports=function(o,t){if(!(o instanceof t))throw new TypeError("Cannot call a class as a function")},Ne.exports.__esModule=!0,Ne.exports.default=Ne.exports;var Me=Ke(be.exports),Qe={exports:{}},ye={exports:{}},Ye={exports:{}};!function(o){function t(e){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(e)}o.exports=t,o.exports.__esModule=!0,o.exports.default=o.exports}(Ye);var Fe=Ke(Ye.exports),He={exports:{}};!function(o){var t=Ye.exports.default;o.exports=function(o,e){if("object"!==t(o)||null===o)return o;var i=o[Symbol.toPrimitive];if(void 0!==i){var n=i.call(o,e||"default");if("object"!==t(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(o)},o.exports.__esModule=!0,o.exports.default=o.exports}(He),function(o){var t=Ye.exports.default,e=He.exports;o.exports=function(o){var i=e(o,"string");return"symbol"===t(i)?i:String(i)},o.exports.__esModule=!0,o.exports.default=o.exports}(ye),function(o){var t=ye.exports;function e(o,e){for(var i=0;i<e.length;i++){var n=e[i];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,i){return t&&e(o.prototype,t),i&&e(o,i),Object.defineProperty(o,"prototype",{writable:!1}),o},o.exports.__esModule=!0,o.exports.default=o.exports}(Qe);var Be=Ke(Qe.exports),Pe={exports:{}},Oe={exports:{}},qe={exports:{}};!function(o){function t(e){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(e)}o.exports=t,o.exports.__esModule=!0,o.exports.default=o.exports}(qe);var we=Ke(qe.exports);!function(o){var t=qe.exports;o.exports=function(o,e){for(;!Object.prototype.hasOwnProperty.call(o,e)&&null!==(o=t(o)););return o},o.exports.__esModule=!0,o.exports.default=o.exports}(Oe),function(o){var t=Oe.exports;function e(){return"undefined"!=typeof Reflect&&Reflect.get?(o.exports=e=Reflect.get.bind(),o.exports.__esModule=!0,o.exports.default=o.exports):(o.exports=e=function(o,e,i){var n=t(o,e);if(n){var a=Object.getOwnPropertyDescriptor(n,e);return a.get?a.get.call(arguments.length<3?o:i):a.value}},o.exports.__esModule=!0,o.exports.default=o.exports),e.apply(this,arguments)}o.exports=e,o.exports.__esModule=!0,o.exports.default=o.exports}(Pe);var Te=Ke(Pe.exports),Ae={exports:{}},Ze={exports:{}};!function(o){function t(e,i){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(e,i)}o.exports=t,o.exports.__esModule=!0,o.exports.default=o.exports}(Ze),function(o){var t=Ze.exports;o.exports=function(o,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,writable:!0,configurable:!0}}),Object.defineProperty(o,"prototype",{writable:!1}),e&&t(o,e)},o.exports.__esModule=!0,o.exports.default=o.exports}(Ae);var De=Ke(Ae.exports),ze={exports:{}},Ve={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}(Ve),function(o){var t=Ye.exports.default,e=Ve.exports;o.exports=function(o,i){if(i&&("object"===t(i)||"function"==typeof i))return i;if(void 0!==i)throw new TypeError("Derived constructors may only return object or undefined");return e(o)},o.exports.__esModule=!0,o.exports.default=o.exports}(ze);var Le=Ke(ze.exports),We={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}(We);var Xe,_e=Ke(We.exports);function $e(o,t,e,i){var n,a=arguments.length,r=a<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,e):i;if("object"===("undefined"==typeof Reflect?"undefined":Fe(Reflect))&&"function"==typeof Reflect.decorate)r=Reflect.decorate(o,t,e,i);else for(var R=o.length-1;R>=0;R--)(n=o[R])&&(r=(a<3?n(r):a>3?n(t,e,r):n(t,e))||r);return a>3&&r&&Object.defineProperty(t,e,r),r}var oi=o(Xe||(Xe=_e(["\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"]))),ti={exports:{}},ei={exports:{}},ii={exports:{}};!function(o){o.exports=function(o,t){(null==t||t>o.length)&&(t=o.length);for(var e=0,i=new Array(t);e<t;e++)i[e]=o[e];return i},o.exports.__esModule=!0,o.exports.default=o.exports}(ii),function(o){var t=ii.exports;o.exports=function(o){if(Array.isArray(o))return t(o)},o.exports.__esModule=!0,o.exports.default=o.exports}(ei);var ni={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}(ni);var ai={exports:{}};!function(o){var t=ii.exports;o.exports=function(o,e){if(o){if("string"==typeof o)return t(o,e);var i=Object.prototype.toString.call(o).slice(8,-1);return"Object"===i&&o.constructor&&(i=o.constructor.name),"Map"===i||"Set"===i?Array.from(o):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?t(o,e):void 0}},o.exports.__esModule=!0,o.exports.default=o.exports}(ai);var ri={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}(ri),function(o){var t=ei.exports,e=ni.exports,i=ai.exports,n=ri.exports;o.exports=function(o){return t(o)||e(o)||i(o)||n()},o.exports.__esModule=!0,o.exports.default=o.exports}(ti);var Ri=Ke(ti.exports),si={exports:{}},li={exports:{}};!function(o){o.exports=function(o){if(Array.isArray(o))return o},o.exports.__esModule=!0,o.exports.default=o.exports}(li);var Ii={exports:{}};!function(o){o.exports=function(o,t){var e=null==o?null:"undefined"!=typeof Symbol&&o[Symbol.iterator]||o["@@iterator"];if(null!=e){var i,n,a,r,R=[],s=!0,l=!1;try{if(a=(e=e.call(o)).next,0===t){if(Object(e)!==e)return;s=!1}else for(;!(s=(i=a.call(e)).done)&&(R.push(i.value),R.length!==t);s=!0);}catch(o){l=!0,n=o}finally{try{if(!s&&null!=e.return&&(r=e.return(),Object(r)!==r))return}finally{if(l)throw n}}return R}},o.exports.__esModule=!0,o.exports.default=o.exports}(Ii);var hi={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}(hi),function(o){var t=li.exports,e=Ii.exports,i=ai.exports,n=hi.exports;o.exports=function(o,a){return t(o)||e(o,a)||i(o,a)||n()},o.exports.__esModule=!0,o.exports.default=o.exports}(si);var pi,di=Ke(si.exports),ci=Math.min,ji=Math.max,Ei=Math.floor,fi=Math.round;function Si(o,t,e){t/=100,e/=100;var i=Ei(o=o/360*6),n=o-i,a=e*(1-t),r=e*(1-n*t),R=e*(1-(1-n)*t),s=i%6;return[255*[e,r,a,a,R,e][s],255*[R,e,e,r,a,a][s],255*[a,a,R,e,e,r][s]]}function Gi(o,t,e){var i,n,a=ci(o/=255,t/=255,e/=255),r=ji(o,t,e),R=r-a;if(0===R)i=n=0;else{n=R/r;var s=((r-o)/6+R/2)/R,l=((r-t)/6+R/2)/R,I=((r-e)/6+R/2)/R;o===r?i=I-l:t===r?i=1/3+s-I:e===r&&(i=2/3+l-s),i<0?i+=1:i>1&&(i-=1)}return[360*i,100*n,100*r]}function ui(o,t,e,i){t/=100,e/=100;var n=255*(1-ci(1,(o/=100)*(1-(i/=100))+i)),a=255*(1-ci(1,t*(1-i)+i)),r=255*(1-ci(1,e*(1-i)+i));return Ri(Gi(n,a,r))}function ki(o,t,e){return t/=100,[o,(e/=100)+(t*=e<.5?e:1-e)?2*t/(e+t)*100:0,100*(e+t)]}function gi(o){return Gi.apply(void 0,Ri(o.match(/.{2}/g).map((function(o){return parseInt(o,16)}))))}function xi(){var o=function(o,t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return t(~e?o.map((function(o){return Number(o.toFixed(e))})):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 e=[t.h,t.s,t.v,t.a];return e.toString=o(e,(function(o){return"hsva(".concat(o[0],", ").concat(o[1],"%, ").concat(o[2],"%, ").concat(t.a,")")})),e},toHSLA:function(){var e=[].concat(Ri(function(o,t,e){var i=(2-(t/=100))*(e/=100)/2;return 0!==i&&(t=1===i?0:i<.5?t*e/(2*i):t*e/(2-2*i)),[o,100*t,100*i]}(t.h,t.s,t.v)),[t.a]);return e.toString=o(e,(function(o){return"hsla(".concat(o[0],", ").concat(o[1],"%, ").concat(o[2],"%, ").concat(t.a,")")})),e},toRGBA:function(){var e=[].concat(Ri(Si(t.h,t.s,t.v)),[t.a]);return e.toString=o(e,(function(o){return"rgba(".concat(o[0],", ").concat(o[1],", ").concat(o[2],", ").concat(t.a,")")})),e},toCMYK:function(){var e=function(o,t,e){var i,n=Si(o,t,e),a=n[0]/255,r=n[1]/255,R=n[2]/255;return[100*(1===(i=ci(1-a,1-r,1-R))?0:(1-a-i)/(1-i)),100*(1===i?0:(1-r-i)/(1-i)),100*(1===i?0:(1-R-i)/(1-i)),100*i]}(t.h,t.s,t.v);return e.toString=o(e,(function(o){return"cmyk(".concat(o[0],"%, ").concat(o[1],"%, ").concat(o[2],"%, ").concat(o[3],"%)")})),e},toHEXA:function(){var o=function(o,t,e){return Si(o,t,e).map((function(o){return fi(o).toString(16).padStart(2,"0")}))}(t.h,t.s,t.v),e=t.a>=1?"":Number((255*t.a).toFixed(0)).toString(16).toUpperCase().padStart(2,"0");return e&&o.push(e),o.toString=function(){return"#".concat(o.join("").toUpperCase())},o},clone:function(){return xi(t.h,t.s,t.v,t.a)}};return t}var vi,Ui,Ji,mi,Ci,Ki,Ni=n(pi||(pi=_e(['\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']))),bi=function(o){De(e,i);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 e,i=we(o);if(t){var n=we(this).constructor;e=Reflect.construct(i,arguments,n)}else e=i.apply(this,arguments);return Le(this,e)}}(e);function e(){var o;return Me(this,e),(o=t.call(this)).color="#faf014",o}return Be(e,[{key:"colorChanged",value:function(o,t){var e,i;t&&this.style.setProperty("--color",(.2,e=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,e={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},i=function(o){return o.map((function(o){return/^(|\d+)\.\d+|\d+$/.test(o)?Number(o):void 0}))};o:for(var n in e)if(t=e[n].exec(o))switch(n){case"cmyk":var a=i(t),r=di(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:ui(R,s,l,I),type:n};case"rgba":var h=i(t),p=di(h,7),d=p[3],c=p[4],j=p[5],E=p[6];if(d>255||c>255||j>255||E<0||E>1)break o;return{values:[].concat(Ri(Gi(d,c,j)),[E]),a:E,type:n};case"hexa":var f=di(t,2)[1];4!==f.length&&3!==f.length||(f=f.split("").map((function(o){return o+o})).join(""));var S=f.substring(0,6),G=f.substring(6);return G=G?parseInt(G,16)/255:void 0,{values:[].concat(Ri(gi(S)),[G]),a:G,type:n};case"hsla":var u=i(t),k=di(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(Ri(ki(g,x,v)),[U]),a:U,type:n};case"hsva":var J=i(t),m=di(J,7),C=m[3],K=m[4],N=m[5],b=m[6];if(C>360||K>100||N>100||b<0||b>1)break o;return{values:[C,K,N,b],a:b,type:n}}return{values:null,type:null}}(t),i=xi.apply(void 0,Ri(e.values)).toRGBA(),"rgba(".concat(i[0].toFixed(0),",").concat(i[1].toFixed(0),",").concat(i[2].toFixed(0),",").concat(.2*Number(i[3].toFixed(2)),")")))}},{key:"connectedCallback",value:function(){Te(we(e.prototype),"connectedCallback",this).call(this)}}]),e}();function Mi(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 e,i=g(o);if(t){var n=g(this).constructor;e=Reflect.construct(i,arguments,n)}else e=i.apply(this,arguments);return K(this,e)}}$e([t],bi.prototype,"dir",void 0),$e([t],bi.prototype,"color",void 0),bi=$e([e({name:"h-spotlight",template:Ni,styles:oi,shadowOptions:{mode:"closed"}})],bi);var Qi,yi=n(vi||(vi=b(["\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"),s((function(o){return 1==o.type}),n(Ui||(Ui=b(['<img src="','" class="Card" draggable="false"/>'])),(function(o){return o.imgSrc}))),s((function(o){return 2==o.type}),n(Ji||(Ji=b(['<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"),s((function(o){return 1==o.type}),n(mi||(mi=b(['<img src="','/download/img/collect/title01.png"/>\n <p class="Subtitle">',"</p>"])),Uo.path,(function(o){return o.number>0?n(Ci||(Ci=b(["再集","张不同卡面即可合成场景卡"])),(function(o){return o.number})):"可以去合成三翼鸟场景品牌卡啦!"}))),s((function(o){return 2==o.type}),n(Ki||(Ki=b(['<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),Yi=function(o){J(e,i);var t=Mi(e);function e(){var o;return d(this,e),(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,me,bi]),o}return S(e,[{key:"indexChanged",value:function(o,t){var e=this;setTimeout((function(){e.imgSrc=Uo["card"+t]}),10)}},{key:"showChanged",value:function(o,t){null===t||!1===t?Nt(this.Overlay)("show"):Kt(this.Overlay)("show")}},{key:"connectedCallback",value:function(){var o=this;x(g(e.prototype),"connectedCallback",this).call(this),1==this.type?(setTimeout((function(){Qt.instance.add(o.contentWrap,"show")}),1e3),setTimeout((function(){o.isClick=!0}),3e3)):(Qt.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)}}]),e}();y([r],Yi.prototype,"Overlay",void 0),y([r],Yi.prototype,"video",void 0),y([r],Yi.prototype,"contentWrap",void 0),y([r],Yi.prototype,"prizeName",void 0),y([r],Yi.prototype,"prizeQuota",void 0),y([r],Yi.prototype,"imgSrc",void 0),y([t({converter:R})],Yi.prototype,"type",void 0),y([t({converter:R})],Yi.prototype,"index",void 0),y([t({converter:R})],Yi.prototype,"number",void 0),y([t({mode:"boolean"})],Yi.prototype,"show",void 0),y([Ct],Yi.prototype,"showChanged",null),y([yt(300)],Yi.prototype,"accept",null),y([yt(300)],Yi.prototype,"look",null),Yi=y([e({name:"g-collect-prize",template:yi,styles:ee,shadowOptions:{mode:"closed"}})],Yi);var Fi,Hi,Bi,Pi,Oi=o(Qi||(Qi=b(["\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 qi(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 e,i=g(o);if(t){var n=g(this).constructor;e=Reflect.construct(i,arguments,n)}else e=i.apply(this,arguments);return K(this,e)}}var wi=n(Fi||(Fi=b(['\n<section class="SwipeWrap">\n <span>\n ',"\n </span>\n <span>\n ","\n </span>\n <span>\n ","\n </span>\n</section>\n"])),s((function(o){return o.active>0}),n(Hi||(Hi=b(['<img class="Nav Left" @click="','" src="','/download/img/collect/arrowL.png" draggable="false"/>'])),(function(o){return o.setActive("l")}),Uo.path)),l((function(o){return o.cardItem}),n(Bi||(Bi=b(['<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}),s((function(o){return o.active<o.cardItem.length-1}),n(Pi||(Pi=b(['<img class="Nav Right" @click="','" src="','/download/img/collect/arrowR.png" draggable="false"/>'])),(function(o){return o.setActive("r")}),Uo.path))),Ti=function(o){J(e,i);var t=qi(e);function e(){var o;return d(this,e),(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(e,[{key:"arrowChanged",value:function(o,t){null===t||!1===t?Qt.instance.remove(this,"isArrow"):Qt.instance.add(this,"isArrow")}},{key:"connectedCallback",value:function(){x(g(e.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:"update",value:function(o){if(o&&o.cardList){for(var t=Array.from({length:4}),e=0;e<o.cardList.length;e++){var i=o.cardList[e];t[i.cardType-1]={total:i.cardNum,card:"".concat(Uo.path,"/download/img/collect/card0").concat(i.cardType,".png"),grey:"".concat(Uo.path,"/download/img/collect/card0").concat(i.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)}}}]),e}();y([r],Ti.prototype,"cardItem",void 0),y([r],Ti.prototype,"isComposed",void 0),y([t({converter:R})],Ti.prototype,"active",void 0),y([t({mode:"boolean"})],Ti.prototype,"arrow",void 0),Ti=y([e({name:"g-collect-swipe",template:wi,styles:Oi,shadowOptions:{mode:"closed"}})],Ti);export{Bt as HiCollectConflate,te as HiCollectList,Yi as HiCollectPrize,Ti as HiCollectSwipe};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gkits/collect",
3
- "version": "0.0.13",
3
+ "version": "0.0.14",
4
4
  "description": "> TODO: description",
5
5
  "author": "liulina0228",
6
6
  "homepage": "",