/*! For license information please see 5425.246858c429f3f04afdd8.js.LICENSE.txt */ (self.webpackChunklauncher=self.webpackChunklauncher||[]).push([[5425],{6028:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>ce});var n,o=[];function i(){o.forEach((function(t){t.callback.call(t.context,n.ticker.lastTime+n.ticker.elapsedMS)}))}function a(t,e){o=o.filter((function(r){return r.callback!==t||r.context!==e}))}var c=r(455);function s(t){return s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},s(t)}function u(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{};Array.isArray(e)&&(e=e.reduce((function(t,e){return Object.assign(t,e)}),{})),Object.entries(e).forEach((function(e){p[e[0]]&&p[e[0]].call(t,e[1])}))}}],n&&g(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(c.mcf);function x(t){return t.startsWith("rgb")?function(t){var e=t.slice(4,-1).split(",").map((function(t){return parseInt(t,10).toString(16).padStart(2,"0")})).join("");return parseInt(e,16)}(t):function(t){return 3===(t=t.slice(0,6)).length&&(t=t.split("").reduce((function(t,e){return"".concat(t).concat(e).concat(e)}),"")),t=/[0-9|A-F|a-f]{6}/.test(t)?t:"FFFFFF",parseInt(t,16)}(t=t.replace(/#|0x/,""))}function _(t){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},_(t)}function E(t){return function(t){if(Array.isArray(t))return T(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||A(t)||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.")}()}function A(t,e){if(t){if("string"==typeof t)return T(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?T(t,e):void 0}}function T(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:{};Array.isArray(e)&&(e=e.reduce((function(t,e){return Object.assign(t,e)}),{})),Object.entries(e).forEach((function(e){var r,n,o=(n=2,function(t){if(Array.isArray(t))return t}(r=e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],s=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);s=!0);}catch(t){u=!0,o=t}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(r,n)||A(r,n)||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.")}()),i=o[0],a=o[1];if(p[i])p[i].call(t,a);else switch(i){case"tint":t.setTint(a);break;case"animationSpeed":t.animationSpeed=a;break;case"loop":t.loop=a;break;case"animation":t.animationSpeed=a.animationSpeed||1,t.loop=a.loop||!1,t.gotoAndPlay(0)}}))}},{key:"setAnimationTextures",value:function(t,e){var r,n=this;(r=Array.isArray(t)?t.map((function(t){return n.frames[t]})).filter(Boolean):Object.values(this.frames).slice(t,e+1)).length||(r=Object.values(this.frames)),this.textures=r}},{key:"setAnimationTexturesByRegexp",value:function(t,e){var r=this,n=[];return Object.keys(this.frames).forEach((function(e){t.test(e)&&n.push(r.frames[e])})),n.length?(e&&(n=[].concat(E(n),E(n.slice(0,-1).reverse()))),this.textures=n,!0):(this.textures=Object.values(this.frames),!1)}},{key:"getFrameNameOfIndex",value:function(t){return Object.keys(this.frames)[t]}}],n&&L(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(c.Dl5);function D(t){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},D(t)}function W(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{};Array.isArray(e)&&(e=e.reduce((function(t,e){return Object.assign(t,e)}),{})),Object.keys(e).forEach((function(r){var n=e[r];if(p[r])p[r].call(t,n);else switch(r){case"color":t.setColor(n);break;case"font":t.setFont(n);break;case"fontSize":t.setFontSize(n);break;case"fontWeight":t.setFontWeight(n);break;case"wrap":t.setWordWrap(n);break;case"lineSpacing":t.setLineSpacing(n);break;case"letterSpacing":t.setLetterSpacing(n);break;case"align":t.setAlign(n);break;case"shadowOffset":t.setShadowOffset(n);break;case"shadowBlur":t.style.dropShadowBlur=n;break;case"shadowAngle":t.setShadowAngle(n);break;case"lineJoin":t.setLineJoin(n);break;case"shadowFill":t.setShadowFill(n);break;case"shadowColor":t.setShadowColor(n);break;case"strokeThickness":t.setStrokeThickness(n);break;case"stroke":t.setStroke(n);break;case"text":t.setText(n);break;case"resolution":t.resolution=n;break;case"padding":t.setPadding(n);break;case"maxWidth":t.setMaxWidth(n);break;case"fillGradientStops":t.style.fillGradientStops=n}}))}},{key:"setColor",value:function(t){"string"==typeof t&&(t=x(t)),this.style.fill=t}},{key:"setFont",value:function(t){this.style.fontFamily=t}},{key:"setFontSize",value:function(t){this.style.fontSize=t,this._originalFontSize=t,this._correctTextSize()}},{key:"setFontWeight",value:function(t){this.style.fontWeight=t}},{key:"setWordWrap",value:function(t){this.style.wordWrap=!!t,this.style.wordWrapWidth=t}},{key:"setLineSpacing",value:function(t){this.style.leading=t}},{key:"setLetterSpacing",value:function(t){this.style.letterSpacing=t}},{key:"setAlign",value:function(t){this.style.align=t}},{key:"setShadowOffset",value:function(t){this.style.dropShadowDistance=t}},{key:"setPadding",value:function(t){this.style.padding=t}},{key:"setLineJoin",value:function(t){this.style.lineJoin=t}},{key:"setShadowAngle",value:function(t){this.style.dropShadowAngle=t}},{key:"setShadowFill",value:function(t){this.style.dropShadow=t}},{key:"setShadowColor",value:function(t){"string"==typeof t&&(t=x(t)),this.style.dropShadowColor=t}},{key:"setStrokeThickness",value:function(t){this._originalStrokeThickness=t,this.style.strokeThickness=t}},{key:"setStroke",value:function(t){"string"==typeof t&&(t=x(t)),this.style.stroke=t}},{key:"setText",value:function(t){this.text=t,this._originalText=t,this._correctTextSize()}},{key:"_correctTextSize",value:function(){this.style.fontSize=this._originalFontSize;var t=this.width;t>this._maxWidth&&(this.style.fontSize=this._maxWidth/t*this._originalFontSize)}},{key:"setMaxWidth",value:function(t){this._maxWidth=t,this._correctTextSize()}}],n&&W(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(c.EYj);function J(t){return J="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},J(t)}function Y(t,e){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:{};return Array.isArray(e)&&(e=e.reduce((function(t,e){return Object.assign(t,e)}),{})),Object.keys(e).forEach((function(r){var n=e[r];p[r]?p[r].call(t,n):"tint"===r&&t.setTint(n)})),e}},{key:"updateViewForMobile",value:function(t){var e,r="";this.mobileSpecificConfigs[t]&&(this.mobileSpecificConfigs[t].key&&(r=this.mobileSpecificConfigs[t].key),this.mobileSpecificConfigs[t].frame&&(e=this.mobileSpecificConfigs[t].frame)),r&&this.changeTexture(r),e&&this.changeFrame(e)}}],n&&Y(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(c.kxk);function tt(t){return tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tt(t)}function et(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:{};Array.isArray(e)&&(e=e.reduce((function(t,e){return Object.assign(t,e)}),{})),Object.entries(e).forEach((function(e){var r,n,o=(n=2,function(t){if(Array.isArray(t))return t}(r=e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],s=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);s=!0);}catch(t){u=!0,o=t}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(r,n)||function(t,e){if(t){if("string"==typeof t)return et(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?et(t,e):void 0}}(r,n)||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.")}()),i=o[0],a=o[1];if(p[i])p[i].call(t,a);else switch(i){case"mask":t.drawMask(a);break;case"rect":t.drRect(a);break;case"line":t.drLine(a)}}))}},{key:"drawMask",value:function(t){var e=this,r=t.x,n=t.y,o=t.width,i=t.height,a=t.cornerRadius;this.beginFill(16777215),void 0!==a?this.drawRoundedRect(r,n,o,i,a):this.drawRect(r,n,o,i),this.endFill(),this.parent?this.parent.mask=this:(this.visible=!1,this.on("added",(function(){e.parent.mask=e,e.visible=!0})))}}],n&&rt(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(c.A1g),ut=r(6424),lt=r(5315);function ft(t){return ft="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ft(t)}function yt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r0&&void 0!==arguments[0]?arguments[0]:{};Array.isArray(e)&&(e=e.reduce((function(t,e){return Object.assign(t,e)}),{})),Object.entries(e).forEach((function(e){var r,n,o=(n=2,function(t){if(Array.isArray(t))return t}(r=e)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],s=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);s=!0);}catch(t){u=!0,o=t}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(r,n)||function(t,e){if(t){if("string"==typeof t)return yt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?yt(t,e):void 0}}(r,n)||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.")}()),i=o[0],a=o[1];p[i]?p[i].call(t,a):"tint"===i?t.setTint(a):"animation"===i&&t.play(a.name,a.loop,a.timeScale)}))}},{key:"play",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];this.clearAnimationData(n),this.lastTime=0,this.state.hasAnimation(t)&&(this.state.setAnimation(n,t,e),this.state.tracks[n].timeScale=r,o&&this.reverseCurrentAnimation(this.state.tracks[n]))}},{key:"clearAnimationData",value:function(t){if(this.animationPromises.has(t)){var e=this.animationPromises.get(t);e.forceResolve&&e.resolver(),this.removeListener(e.event,e.listener,null,e.animationName),this.animationPromises.delete(t)}}},{key:"stop",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.trackPlace,r=t.animationName;if(void 0===e&&r&&(e=this.state.tracks.findIndex((function(t){return t&&t.animation.name===r}))),e>=0){if(this.clearTrack(e),this.animationPromises.has(e)){var n=this.animationPromises.get(e);n.forceResolve&&n.resolver(),this.animationPromises.delete(e)}}else this.state.clearTracks(),this.skeleton.setToSetupPose(),this.animationPromises.forEach((function(t){t.forceResolve&&t.resolver()})),this.animationPromises.clear()}},{key:"stopAnimation",value:function(t){var e=this.state.tracks.findIndex((function(e){return e&&e.animation.name===t}));e>-1&&(this.state.clearTrack(e),this.state.tracks.splice(e,1))}},{key:"changeTexture",value:function(t){if(this.key!==t){this.key=t,this.removeChildren();var e=this.res[t].spineData;this.spineData=e,this.skeleton=new lt.Skeleton(e),this.skeleton.updateWorldTransform(),this.stateData=new lt.AnimationStateData(e),this.state=new lt.AnimationState(this.stateData),this.slotContainers=[],this.tempClipContainers=[];for(var r=0,n=this.skeleton.slots.length;r3&&void 0!==arguments[3]&&arguments[3],s=arguments.length>4?arguments[4]:void 0,u=["start","complete","end","dispose","interrupted"].indexOf(t)>-1,l=c?function(){a.removeListener(t,e,r,s);for(var n=arguments.length,o=new Array(n),i=0;i-1){var i=this._listeners.splice(o,1)[0];if(n){var a=this.getTrack(n);a&&a.listener&&(delete a.listener[t],0===Object.keys(a.listener).length&&(a.listener=null))}this.state.removeListener(i.l)}}},{key:"clearListeners",value:function(){this._listeners.length=0,this.state.clearListeners(),this.state.tracks.forEach((function(t){t&&(t.listener=null)}))}},{key:"callAllListenersAndStop",value:function(){this._listeners.forEach((function(t){return t.listener.call(t.context)})),this.stop(),this.clearListeners()}},{key:"addChildInSpine",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=this.getSlot(t);return!!n&&((n.children[r]||n).addChild(e),!0)}},{key:"removeChildFromSpine",value:function(t,e){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=this.getSlot(t);return!!n&&((n.children[r]||n).removeChild(e),!0)}}],n&&ht(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(ut.yE);function wt(t){return wt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},wt(t)}function St(){St=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{u({},"")}catch(t){u=function(t,e,r){return t[e]=r}}function l(t,e,r,n){var i=e&&e.prototype instanceof d?e:d,a=Object.create(i.prototype),c=new T(n||[]);return o(a,"_invoke",{value:x(t,r,c)}),a}function f(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=l;var y="suspendedStart",h="suspendedYield",p="executing",b="completed",v={};function d(){}function m(){}function g(){}var w={};u(w,a,(function(){return this}));var S=Object.getPrototypeOf,k=S&&S(S(L([])));k&&k!==r&&n.call(k,a)&&(w=k);var O=g.prototype=d.prototype=Object.create(w);function j(t){["next","throw","return"].forEach((function(e){u(t,e,(function(t){return this._invoke(e,t)}))}))}function P(t,e){function r(o,i,a,c){var s=f(t[o],t,i);if("throw"!==s.type){var u=s.arg,l=u.value;return l&&"object"==wt(l)&&n.call(l,"__await")?e.resolve(l.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(l).then((function(t){u.value=t,a(u)}),(function(t){return r("throw",t,a,c)}))}c(s.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function x(e,r,n){var o=y;return function(i,a){if(o===p)throw Error("Generator is already running");if(o===b){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var s=_(c,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===y)throw o=b,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=p;var u=f(e,r,n);if("normal"===u.type){if(o=n.done?b:h,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=b,n.method="throw",n.arg=u.arg)}}}function _(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,_(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),v;var i=f(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,v;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,v):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,v)}function E(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function A(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function T(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(E,this),this.reset(!0)}function L(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var s=n.call(a,"catchLoc"),u=n.call(a,"finallyLoc");if(s&&u){if(this.prev=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),A(r),v}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:L(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),v}},e}function kt(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function Ot(t){for(var e=1;e0&&void 0!==arguments[0]?arguments[0]:{};Array.isArray(e)&&(e=e.reduce((function(t,e){return Object.assign(t,e)}),{})),Object.keys(e).forEach((function(r){var n=e[r];p[r]&&p[r].call(t,n)}))}}],n&&Tt(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(c.t9Q);function Mt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r2&&void 0!==arguments[2]&&arguments[2],n=this.currentIndex.toString();return this.listeners[n]={callback:t,ctx:e,once:r},this.currentIndex++,this.removeListener.bind(this,n)}},{key:"removeListener",value:function(t){delete this.listeners[t]}},{key:"callListeners",value:function(){for(var t=this,e=arguments.length,r=new Array(e),n=0;n1?r-1:0),o=1;o0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.time=performance.now()+e,this.delay=e,this.callback=r,this.context=n;for(var a=arguments.length,c=new Array(a>5?a-5:0),s=5;s0&&void 0!==arguments[0]?arguments[0]:0;this.time-=this.delay,this.delay=t,this.time+=t}}],e&&qt(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,e}();function Xt(t){return Xt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xt(t)}function Zt(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r5?a-5:0),s=5;s-1&&(this._events.splice(e,1),0===this._events.length&&a(this._update,this))}},{key:"_update",value:function(t){var e=this,r=[];this._events.forEach((function(e){var n,o;t>=e.time&&((n=e.callback).call.apply(n,[e.context].concat(function(t){if(Array.isArray(t))return Zt(t)}(o=e.args)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(o)||function(t,e){if(t){if("string"==typeof t)return Zt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Zt(t,e):void 0}}(o)||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.")}())),e.counter++,e.time=t+e.delay,!1===e.loop&&e.counter>=e.repeatCount&&r.push(e))})),r.forEach((function(t){e._events.indexOf(t)>-1&&e._events.splice(e._events.indexOf(t),1)}))}},{key:"updateEventsTimes",value:function(t){this._events.forEach((function(e,r){void 0!==t[r]&&(e.time=performance.now()+t[r])}))}},{key:"destroy",value:function(){0===this._events.length&&a(this._update,this),this._events.length=0,this.ticker=null}},{key:"accelerate",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.updateEventsTimes(t)}}],n&&te(r.prototype,n),Object.defineProperty(r,"prototype",{writable:!1}),r;var r,n}(Jt);const ce={initLoopManager:function(t){(n=t).ticker.add(i)},initRenderer:function(t,e){f.length=0,f.push(new y(e,null,null,null,null,"app",0,t.renderer,t.stage))},initElemData:function(t,e){return Object.entries(t).forEach((function(r){var n,o,i=(n=r,o=1,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],s=!0,u=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;s=!1}else for(;!(s=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);s=!0);}catch(t){u=!0,o=t}finally{try{if(!s&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return c}}(n,o)||function(t,e){if(t){if("string"==typeof t)return Mt(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Mt(t,e):void 0}}(n,o)||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.")}())[0];!function(t,e){var r,n,o;t.map((function(t){var i,a={parent:e,elementId:t.id,styles:t.styles};switch(t.type){case"sprite":r=a.styles.key,a.key=xt.loadScreenAssets[r],a.frame=a.styles.frame,i=new Z(a);break;case"tillingSprite":r=a.styles.key,a.key=xt.loadScreenAssets[r],i=new Bt(a);break;case"text":i=new $(a);break;case"graphics":i=new st(a);break;case"animation":n=a.styles.key,a.key=xt.loadScreenAssets[n],a.frame=a.styles.frame,a.frames=a.styles.frames,i=new M(a);break;case"spine":o=a.styles.key,console.log(o),console.log(xt),a.key=xt.loadScreenAssets[o],i=new gt(a,xt.loadScreenAssets);break;default:i=new P(a)}return Dt[t.id]=i,i}))}(t[i],Dt[i]||e)})),Dt},refs:Dt,initTimer:function(t){Vt=t,ie=new ae},initAssetsLoader:Et,addTimer:function(t,e,r){return ie.add(t,e,r,!1)},removeTimer:function(t){ie.remove(t)},resources:xt}},2634:()=>{}}]);