From e9b965a7d8b03b8f428aed4eabb088ffd8a1f6d3 Mon Sep 17 00:00:00 2001 From: Memelite70 Date: Tue, 30 Apr 2024 19:25:38 -0400 Subject: [PATCH] Add files via upload --- vex8/404.html | 1 + vex8/408.html | 1 + ...0c016b4fcd7b0c55de8ae4d7dc4c83d5d0761520b3 | 1 + vex8/favicon.ico | Bin 0 -> 25214 bytes vex8/frame.html | 1 + vex8/games235.html | 1 + vex8/index.html | 69 + vex8/manifest.json | 3 + vex8/patch/cdn/bootstrap.4.5.0.bundle.min.js | 7 + vex8/patch/cdn/bootstrap.4.5.0.min.css | 12 + vex8/patch/cdn/createjs.1.0.0.min.js | 19 + vex8/patch/cdn/devtodevsdk-v2.js | 4 + vex8/patch/cdn/fontawesome.5.12.0.all.css | 5 + vex8/patch/cdn/ionicons.2.0.1.min.css | 11 + vex8/patch/cdn/jquery.3.5.1.min.js | 2 + .../kizi/images/branding_logo_kizi_small.png | Bin 0 -> 3783 bytes vex8/patch/cdn/kizi/images/close_btn.png | Bin 0 -> 443 bytes vex8/patch/cdn/kizi/images/kizi_button.png | Bin 0 -> 4787 bytes vex8/patch/cdn/kizi/images/kizi_logo.png | Bin 0 -> 32955 bytes vex8/patch/cdn/kizi/images/kizi_twist.png | Bin 0 -> 25600 bytes vex8/patch/cdn/kizi/json/contracted.json | 1 + vex8/patch/cdn/kizi/json/domains.json | 1 + vex8/patch/cdn/kizi/json/games.json | 1 + vex8/patch/cdn/kizi/json/internal.json | 1 + vex8/patch/cdn/kizi/json/sitelock.json | 1 + vex8/patch/cdn/kizi/json/special.json | 1 + vex8/patch/cdn/kizi/spine/kizi_skeleton.atlas | 125 + vex8/patch/cdn/kizi/spine/kizi_skeleton.json | 733 + vex8/patch/cdn/kizi/spine/kizi_skeleton.png | Bin 0 -> 72000 bytes vex8/patch/cdn/kizi/splash.js | 4446 +++ vex8/patch/cdn/kizi/splash.min.js | 12 + vex8/patch/cdn/phaser-ce/filters/BlurX.js | 53 + vex8/patch/cdn/phaser-ce/filters/BlurY.js | 54 + .../phaser/1.0/phaser-super-storage.min.js | 10 + .../cdn/phaser/2.0/phaser-cachebuster.min.js | 18 + vex8/patch/cdn/phaser/2.0/phaser-input.min.js | 10 + .../cdn/phaser/2.0/phaser-nineslice.min.js | 10 + vex8/patch/cdn/phaser/2.2/phaser-ads.min.js | 18 + vex8/patch/cdn/phaser/3.0/phaser-spine.min.js | 19 + vex8/patch/cdn/phaser/3.5/splash.min.js | 12 + vex8/patch/cdn/phaser/phaser-ads.min.js | 10 + .../cdn/phaser/phaser-cachebuster.min.js | 10 + vex8/patch/cdn/phaser/phaser-i18next.min.js | 11 + vex8/patch/cdn/phaser/phaser-spine.min.js | 11 + .../cdn/phaser/phaser-super-storage.min.js | 10 + vex8/patch/cdn/raygun/raygun.min.js | 6 + vex8/patch/css/null.css | 0 vex8/patch/images/games235-banner.png | Bin 0 -> 10339 bytes vex8/patch/images/games235-logo-small.png | Bin 0 -> 1179 bytes vex8/patch/images/games235-logo.png | Bin 0 -> 4929 bytes vex8/patch/images/null.png | Bin 0 -> 1014 bytes vex8/patch/js/AzerionWrapper.js | 1 + vex8/patch/js/AzerionWrapper_v2.7.7.js | 1 + vex8/patch/js/YYGGames-o.js | 12428 +++++++++ vex8/patch/js/YYGGames.js | 183 + vex8/patch/js/YYGGamesBundle-o.js | 1 + vex8/patch/js/YYGGamesBundle.js | 6 + vex8/patch/js/YYGSDK.js | 129 + vex8/patch/js/azerion-libs-m.js | 3654 +++ vex8/patch/js/azerion-libs-o.js | 3650 +++ vex8/patch/js/azerion-libs.js | 101 + vex8/patch/js/eponesh-game-score.js | 2 + vex8/patch/js/eponesh-gamepush.js | 25 + vex8/patch/js/eponesh-platform.gp.v1.js | 1 + vex8/patch/js/eponesh-platform.gp.v2.js | 1 + vex8/patch/js/gameplayer-io-api.js | 39 + vex8/patch/js/gd-api.js | 22919 ++++++++++++++++ vex8/patch/js/gd-main-o.js | 10982 ++++++++ vex8/patch/js/gd-main.js | 10985 ++++++++ vex8/patch/js/gd-sdk.js | 228 + vex8/patch/js/null.js | 2 + vex8/patch/js/tweenjs-1.0.0.min.js | 12 + vex8/patch/json/config.json | 1 + vex8/patch/json/eponesh.json | 1 + vex8/patch/json/null.json | 1 + vex8/patch/json/ping.json | 1 + vex8/sw.js | 2 + vex8/ubg235.html | 3 + vex8/version.js | 2 + vex8/vex8.min.js | 1 + 80 files changed, 71083 insertions(+) create mode 100644 vex8/404.html create mode 100644 vex8/408.html create mode 100644 vex8/ahrefs_585f4691b0e399a160cb6e0c016b4fcd7b0c55de8ae4d7dc4c83d5d0761520b3 create mode 100644 vex8/favicon.ico create mode 100644 vex8/frame.html create mode 100644 vex8/games235.html create mode 100644 vex8/index.html create mode 100644 vex8/manifest.json create mode 100644 vex8/patch/cdn/bootstrap.4.5.0.bundle.min.js create mode 100644 vex8/patch/cdn/bootstrap.4.5.0.min.css create mode 100644 vex8/patch/cdn/createjs.1.0.0.min.js create mode 100644 vex8/patch/cdn/devtodevsdk-v2.js create mode 100644 vex8/patch/cdn/fontawesome.5.12.0.all.css create mode 100644 vex8/patch/cdn/ionicons.2.0.1.min.css create mode 100644 vex8/patch/cdn/jquery.3.5.1.min.js create mode 100644 vex8/patch/cdn/kizi/images/branding_logo_kizi_small.png create mode 100644 vex8/patch/cdn/kizi/images/close_btn.png create mode 100644 vex8/patch/cdn/kizi/images/kizi_button.png create mode 100644 vex8/patch/cdn/kizi/images/kizi_logo.png create mode 100644 vex8/patch/cdn/kizi/images/kizi_twist.png create mode 100644 vex8/patch/cdn/kizi/json/contracted.json create mode 100644 vex8/patch/cdn/kizi/json/domains.json create mode 100644 vex8/patch/cdn/kizi/json/games.json create mode 100644 vex8/patch/cdn/kizi/json/internal.json create mode 100644 vex8/patch/cdn/kizi/json/sitelock.json create mode 100644 vex8/patch/cdn/kizi/json/special.json create mode 100644 vex8/patch/cdn/kizi/spine/kizi_skeleton.atlas create mode 100644 vex8/patch/cdn/kizi/spine/kizi_skeleton.json create mode 100644 vex8/patch/cdn/kizi/spine/kizi_skeleton.png create mode 100644 vex8/patch/cdn/kizi/splash.js create mode 100644 vex8/patch/cdn/kizi/splash.min.js create mode 100644 vex8/patch/cdn/phaser-ce/filters/BlurX.js create mode 100644 vex8/patch/cdn/phaser-ce/filters/BlurY.js create mode 100644 vex8/patch/cdn/phaser/1.0/phaser-super-storage.min.js create mode 100644 vex8/patch/cdn/phaser/2.0/phaser-cachebuster.min.js create mode 100644 vex8/patch/cdn/phaser/2.0/phaser-input.min.js create mode 100644 vex8/patch/cdn/phaser/2.0/phaser-nineslice.min.js create mode 100644 vex8/patch/cdn/phaser/2.2/phaser-ads.min.js create mode 100644 vex8/patch/cdn/phaser/3.0/phaser-spine.min.js create mode 100644 vex8/patch/cdn/phaser/3.5/splash.min.js create mode 100644 vex8/patch/cdn/phaser/phaser-ads.min.js create mode 100644 vex8/patch/cdn/phaser/phaser-cachebuster.min.js create mode 100644 vex8/patch/cdn/phaser/phaser-i18next.min.js create mode 100644 vex8/patch/cdn/phaser/phaser-spine.min.js create mode 100644 vex8/patch/cdn/phaser/phaser-super-storage.min.js create mode 100644 vex8/patch/cdn/raygun/raygun.min.js create mode 100644 vex8/patch/css/null.css create mode 100644 vex8/patch/images/games235-banner.png create mode 100644 vex8/patch/images/games235-logo-small.png create mode 100644 vex8/patch/images/games235-logo.png create mode 100644 vex8/patch/images/null.png create mode 100644 vex8/patch/js/AzerionWrapper.js create mode 100644 vex8/patch/js/AzerionWrapper_v2.7.7.js create mode 100644 vex8/patch/js/YYGGames-o.js create mode 100644 vex8/patch/js/YYGGames.js create mode 100644 vex8/patch/js/YYGGamesBundle-o.js create mode 100644 vex8/patch/js/YYGGamesBundle.js create mode 100644 vex8/patch/js/YYGSDK.js create mode 100644 vex8/patch/js/azerion-libs-m.js create mode 100644 vex8/patch/js/azerion-libs-o.js create mode 100644 vex8/patch/js/azerion-libs.js create mode 100644 vex8/patch/js/eponesh-game-score.js create mode 100644 vex8/patch/js/eponesh-gamepush.js create mode 100644 vex8/patch/js/eponesh-platform.gp.v1.js create mode 100644 vex8/patch/js/eponesh-platform.gp.v2.js create mode 100644 vex8/patch/js/gameplayer-io-api.js create mode 100644 vex8/patch/js/gd-api.js create mode 100644 vex8/patch/js/gd-main-o.js create mode 100644 vex8/patch/js/gd-main.js create mode 100644 vex8/patch/js/gd-sdk.js create mode 100644 vex8/patch/js/null.js create mode 100644 vex8/patch/js/tweenjs-1.0.0.min.js create mode 100644 vex8/patch/json/config.json create mode 100644 vex8/patch/json/eponesh.json create mode 100644 vex8/patch/json/null.json create mode 100644 vex8/patch/json/ping.json create mode 100644 vex8/sw.js create mode 100644 vex8/ubg235.html create mode 100644 vex8/version.js create mode 100644 vex8/vex8.min.js diff --git a/vex8/404.html b/vex8/404.html new file mode 100644 index 000000000..9c9200ad2 --- /dev/null +++ b/vex8/404.html @@ -0,0 +1 @@ +PS 404 Not Found! diff --git a/vex8/408.html b/vex8/408.html new file mode 100644 index 000000000..5d2151454 --- /dev/null +++ b/vex8/408.html @@ -0,0 +1 @@ +PS 408 Request Time Out! diff --git a/vex8/ahrefs_585f4691b0e399a160cb6e0c016b4fcd7b0c55de8ae4d7dc4c83d5d0761520b3 b/vex8/ahrefs_585f4691b0e399a160cb6e0c016b4fcd7b0c55de8ae4d7dc4c83d5d0761520b3 new file mode 100644 index 000000000..08c92a651 --- /dev/null +++ b/vex8/ahrefs_585f4691b0e399a160cb6e0c016b4fcd7b0c55de8ae4d7dc4c83d5d0761520b3 @@ -0,0 +1 @@ +ahrefs-site-verification_585f4691b0e399a160cb6e0c016b4fcd7b0c55de8ae4d7dc4c83d5d0761520b3 \ No newline at end of file diff --git a/vex8/favicon.ico b/vex8/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..ccbe3d11cc19cb79e14cd3ef21fc2ca568672d0d GIT binary patch literal 25214 zcmeHP4R}@MegEg)BsYPOgwG%eJWD;yeph!YNi&bhL#XZHM1VjpG<*Ji_R&ps- z+ts!8={oA#xvd`#pY~bp=v>#%5?U33(yvW7i*9kF;`Z#ZFxqEvi@E##-j8$NbM84e z--$fSoBZ$p{rG?U-v4>eIq&`Hh%JH|i=Yb$MQa z$m^v7d4YV194r?pA4_>tE)jY9BFgLXwjz;RW?K2A9IO|4ey){A8FF{7wem^XRwy#% z7Lj?t02k5%A}*%1W-9OhNTU%o>9l6}L>82m_V#u(WYoW8GR%SS$0~k|WJ|%F|Gb6yuDLN7q-%n3Ozn<|qnC*5#f9pOccbd`8)4C54d^2Q)il>?=%G zNi~VIDhD1~Q>*p(+2W6DLKg!@TrGcunte^Vg%Cp?7N^at^P{0XPs%}xAll=Uu)zrW zZb3z=HIcgKwz;cZGeJ39_WY=d!bV#k$+MV6ntj?98!k|;b_)u{QWz_gq&a|Y>p=3j z2C2(X4nHeW!E00p;z-^u5_fqTV~J(U1qtQuf=niDd7DUAJdSMOv!Ltdka+o#~nVA z?G|b45@{lJiqv*Cb=972>#iVmWHO2NOeTILli9yNlR2{g$8|>%4{hoo?f>a(=TLVJ zZC`>6Wt9%~XrmK<)-HX}mrWe!m7pZZj`K9~;VF$ljTQ`U#qf#jz{a^3O=J*I9n%)C zR#J(Q-5mv(fM9Z&;`mU>9BLjwt*4I}it3oQC?WTQ0an*DI5>I+glo@d&x!o$TO!k@ zid4UX{M)EIuiGfo0a@x$*FWzp(WU{(OGIYS6&J@Pktmdsk|G&9wnWOxN~NNrOvaBd zmx&WAWzwYaGIi=?nLd4*)YjHujyzrJ>u1W`xwB>d{JFAV!92O-k_Dg!S+r=OTzYAv zEMEL>S-SLcS+;D6EMLA%R;*Yq&CM%h)vA@Udi8tds;gGZ)mOhyKKQ{8$hvjc%S|_Z zNN%}hgKXa1B3rg>maSX2$hK`;<@VdR%N=*@kexd}Dyh_+vTN7x$^G~5kyYQ_F021` zhg|dhl-&Hoy>k3ZjdJ44i{$4|u9ev{4oiJ)yDVS)ysTV)R8}{=AXhdYlkKZ~J8?e=GB;Hdw=1Uex@vl^ycX6#w5F5K6)z_on5?Sy zr7Ghx7^5bGCD)KP6Rb~Y^VPw6+<0_9aI10B%t-T?&FVkwon(`O9+%KK*PAY6rDY0z zO2l!LQtiRTO7zf(N`clg%EsfBQR0;v?l{xlpgN0>=tKpH|Be+Oo1m%;;fygAf5wE{X*DKsV2Lm>!oT6wDB4V26#fpkZBB0@aAm+D)czEv{s zpX1c{wOOihyH@Dk0rlNa*~tn_X6>XIUYZDTHRm)UbXb-Z$4;}dXKN~`?oZUfj-O5} zOt1ybCn&%=U+m;PDX5rv+%&3Jc?~AR1*J@50U0%o4M?cf4eInfJJ6_#u#3qit*gFW zjIGJKWO9Mbnl-B)0_A9mi`Tb{=gfgXEoR3vXU?2W14K|+LH8`ppEC!`#yU*EZ9Ah_ zsqCv&FYT*j?9(+gCn`Ip$aTI#z*3KOF$*H|6uYSgN}F1 zn9V&tUbA?8^t4syopmX!`Nl_?V;xF*d}Xz9Onl=@1&J!=kKnTIp@;F!Dnk_Wk8ebR z3Wm^}vj)(^L7RYFNIE#`EaS$F!TTfQynXZ8 zv+I2O;vfF-dfBkyCfU7vmz?~wWwPX5&&fxge@J$|@QB)*{@JlV?n{V9Wk(}08i5gv zK-4@Xh6nNZvyWI4F_k2y_ar8WS?-uCabe6Xn8)EY4Uw_>2_d^x6vGQ@o*CA}aQ(&2 zsX{8pPsGiyRK|>n;o78T1iTr>uvE8hDG&XzG4GmOq;iE~{b?W*Vg^XuXacY9fZapU z_#aZypMNb`Z_v-(3F73@1)i)ZAg!8739Gt)@7>ewfBg*x0;rAbkMtv7mpou@8y= z+o(GUndiV2^)Y`EdT&D~YApT>+WcD|edrKu?{jUV>|I|>{jGg47b*&yTU{R^`3FK3 zd#Hq+TG;-rYcGKR*&a;vsu}hRKu2lYweRH5Bk$W?>WyL8JV@*j)P;Kegts@wdXRyw z%Ry=!Mfm$#4<>xguyFWbgHV9|Kc^4ZpOa_bmi5LBAxAzB0yxaRE=w-a; z`a73jgiarsZ|j-z)*lXcq_CtYocdYUL z)!@nxWgb}U{fqZnbzH&K+>98J_uapU1$FhH;4yN?)3D7Sfa4jE^?k_33U!H1U-@SG-->3Z(_6^6N7NqvC!0oln<TXp z=X!fco?jEcO}OXq-GM9r$c`UoAm9D8B?BInOPu zJ?PvWqVocD`g|VadcpO@@t{5U2;J{Nd?!Qp*8zF1;qZm}{w3%xg*|W2&e(nvzT9tj zE8}Q;Ea01C{ww|SoYjJjuZ7q>kd;tlt`RcoJvc{}*RE-QsjlX!C3v3mGte()P5s02=Zr&7S$&M(Quycy`hoB3QTI|v{Y_Sv9DYyod6J8Wv-)vuh_gxKR;oE!mi2RQzXA^w=ZqN_PFZS1e!+lpK;Qtkn@^jk>1x*Vf(c5+qbQ4`sQZ!J|+B*abnNo;Kd);f>PKkhA-bZ zXZ#JWAsv74!|`{o@nz3*HU3x^#06QN3+Hj}4CeWF4)&@*yw362pLhNRaJlE5({DwG5?75dj5fa^lScM zV}Tfj&cA@Itv3Yy;B|&$x>xfr6N3?*e-Z=mj@bO0{&7Bz==y^gaI6Po{dEIv^*3=I z*}t`?TC?_f-r8TB{nfME2H1b_|5hlrYtGhoR&+FVB}naU-SKw(UT8X#DcG0E>?=qY zq~o6`XpetlWkh13t6Q@J=)+F1*yyY7Abvki-Tz%fOA_S39|bX&5!u&6E-5!e-jDhZJAXh#t-vQa2cl2>yrHyVU ze5}LRTImw7am;s82IGIP+YRi6Oh^51P1~p3Ha8Ew-=_@dH`K9hsQ(L7e+Jkh-*-h@ zIpp4;EOefrK5#8ZS*>NzhaR8rLFQKDs~fuSfgQCL13!sl7n?lcu9cY2zA?A?^H*aI z`4hZP^uw=w;qo-*ZRa1{n!K4Zlr \ No newline at end of file diff --git a/vex8/games235.html b/vex8/games235.html new file mode 100644 index 000000000..69cd7bff2 --- /dev/null +++ b/vex8/games235.html @@ -0,0 +1 @@ + diff --git a/vex8/index.html b/vex8/index.html new file mode 100644 index 000000000..5d7267e0c --- /dev/null +++ b/vex8/index.html @@ -0,0 +1,69 @@ + + + + + + + + + + + + Vex 8 Unblocked - ubg235 GameDistribution + + + + + + + + + + + + + + + + + + +
+
Loading...
+
+ + + + + + + \ No newline at end of file diff --git a/vex8/manifest.json b/vex8/manifest.json new file mode 100644 index 000000000..077404aaa --- /dev/null +++ b/vex8/manifest.json @@ -0,0 +1,3 @@ +{ + +} \ No newline at end of file diff --git a/vex8/patch/cdn/bootstrap.4.5.0.bundle.min.js b/vex8/patch/cdn/bootstrap.4.5.0.bundle.min.js new file mode 100644 index 000000000..525069def --- /dev/null +++ b/vex8/patch/cdn/bootstrap.4.5.0.bundle.min.js @@ -0,0 +1,7 @@ +/*! + * Bootstrap v4.5.0 (https://getbootstrap.com/) + * Copyright 2011-2020 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors) + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + */ +!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("jquery")):"function"==typeof define&&define.amd?define(["exports","jquery"],e):e((t=t||self).bootstrap={},t.jQuery)}(this,(function(t,e){"use strict";function n(t,e){for(var n=0;n=4)throw new Error("Bootstrap's JavaScript requires at least jQuery v1.9.1 but less than v4.0.0")}};l.jQueryDetection(),e.fn.emulateTransitionEnd=a,e.event.special[l.TRANSITION_END]={bindType:"transitionend",delegateType:"transitionend",handle:function(t){if(e(t.target).is(this))return t.handleObj.handler.apply(this,arguments)}};var c="alert",u=e.fn[c],h=function(){function t(t){this._element=t}var n=t.prototype;return n.close=function(t){var e=this._element;t&&(e=this._getRootElement(t)),this._triggerCloseEvent(e).isDefaultPrevented()||this._removeElement(e)},n.dispose=function(){e.removeData(this._element,"bs.alert"),this._element=null},n._getRootElement=function(t){var n=l.getSelectorFromElement(t),i=!1;return n&&(i=document.querySelector(n)),i||(i=e(t).closest(".alert")[0]),i},n._triggerCloseEvent=function(t){var n=e.Event("close.bs.alert");return e(t).trigger(n),n},n._removeElement=function(t){var n=this;if(e(t).removeClass("show"),e(t).hasClass("fade")){var i=l.getTransitionDurationFromElement(t);e(t).one(l.TRANSITION_END,(function(e){return n._destroyElement(t,e)})).emulateTransitionEnd(i)}else this._destroyElement(t)},n._destroyElement=function(t){e(t).detach().trigger("closed.bs.alert").remove()},t._jQueryInterface=function(n){return this.each((function(){var i=e(this),o=i.data("bs.alert");o||(o=new t(this),i.data("bs.alert",o)),"close"===n&&o[n](this)}))},t._handleDismiss=function(t){return function(e){e&&e.preventDefault(),t.close(this)}},i(t,null,[{key:"VERSION",get:function(){return"4.5.0"}}]),t}();e(document).on("click.bs.alert.data-api",'[data-dismiss="alert"]',h._handleDismiss(new h)),e.fn[c]=h._jQueryInterface,e.fn[c].Constructor=h,e.fn[c].noConflict=function(){return e.fn[c]=u,h._jQueryInterface};var f=e.fn.button,d=function(){function t(t){this._element=t}var n=t.prototype;return n.toggle=function(){var t=!0,n=!0,i=e(this._element).closest('[data-toggle="buttons"]')[0];if(i){var o=this._element.querySelector('input:not([type="hidden"])');if(o){if("radio"===o.type)if(o.checked&&this._element.classList.contains("active"))t=!1;else{var r=i.querySelector(".active");r&&e(r).removeClass("active")}t&&("checkbox"!==o.type&&"radio"!==o.type||(o.checked=!this._element.classList.contains("active")),e(o).trigger("change")),o.focus(),n=!1}}this._element.hasAttribute("disabled")||this._element.classList.contains("disabled")||(n&&this._element.setAttribute("aria-pressed",!this._element.classList.contains("active")),t&&e(this._element).toggleClass("active"))},n.dispose=function(){e.removeData(this._element,"bs.button"),this._element=null},t._jQueryInterface=function(n){return this.each((function(){var i=e(this).data("bs.button");i||(i=new t(this),e(this).data("bs.button",i)),"toggle"===n&&i[n]()}))},i(t,null,[{key:"VERSION",get:function(){return"4.5.0"}}]),t}();e(document).on("click.bs.button.data-api",'[data-toggle^="button"]',(function(t){var n=t.target,i=n;if(e(n).hasClass("btn")||(n=e(n).closest(".btn")[0]),!n||n.hasAttribute("disabled")||n.classList.contains("disabled"))t.preventDefault();else{var o=n.querySelector('input:not([type="hidden"])');if(o&&(o.hasAttribute("disabled")||o.classList.contains("disabled")))return void t.preventDefault();"LABEL"===i.tagName&&o&&"checkbox"===o.type&&t.preventDefault(),d._jQueryInterface.call(e(n),"toggle")}})).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',(function(t){var n=e(t.target).closest(".btn")[0];e(n).toggleClass("focus",/^focus(in)?$/.test(t.type))})),e(window).on("load.bs.button.data-api",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-toggle="buttons"] .btn')),e=0,n=t.length;e0,this._pointerEvent=Boolean(window.PointerEvent||window.MSPointerEvent),this._addEventListeners()}var n=t.prototype;return n.next=function(){this._isSliding||this._slide("next")},n.nextWhenVisible=function(){!document.hidden&&e(this._element).is(":visible")&&"hidden"!==e(this._element).css("visibility")&&this.next()},n.prev=function(){this._isSliding||this._slide("prev")},n.pause=function(t){t||(this._isPaused=!0),this._element.querySelector(".carousel-item-next, .carousel-item-prev")&&(l.triggerTransitionEnd(this._element),this.cycle(!0)),clearInterval(this._interval),this._interval=null},n.cycle=function(t){t||(this._isPaused=!1),this._interval&&(clearInterval(this._interval),this._interval=null),this._config.interval&&!this._isPaused&&(this._interval=setInterval((document.visibilityState?this.nextWhenVisible:this.next).bind(this),this._config.interval))},n.to=function(t){var n=this;this._activeElement=this._element.querySelector(".active.carousel-item");var i=this._getItemIndex(this._activeElement);if(!(t>this._items.length-1||t<0))if(this._isSliding)e(this._element).one("slid.bs.carousel",(function(){return n.to(t)}));else{if(i===t)return this.pause(),void this.cycle();var o=t>i?"next":"prev";this._slide(o,this._items[t])}},n.dispose=function(){e(this._element).off(m),e.removeData(this._element,"bs.carousel"),this._items=null,this._config=null,this._element=null,this._interval=null,this._isPaused=null,this._isSliding=null,this._activeElement=null,this._indicatorsElement=null},n._getConfig=function(t){return t=s(s({},v),t),l.typeCheckConfig(p,t,_),t},n._handleSwipe=function(){var t=Math.abs(this.touchDeltaX);if(!(t<=40)){var e=t/this.touchDeltaX;this.touchDeltaX=0,e>0&&this.prev(),e<0&&this.next()}},n._addEventListeners=function(){var t=this;this._config.keyboard&&e(this._element).on("keydown.bs.carousel",(function(e){return t._keydown(e)})),"hover"===this._config.pause&&e(this._element).on("mouseenter.bs.carousel",(function(e){return t.pause(e)})).on("mouseleave.bs.carousel",(function(e){return t.cycle(e)})),this._config.touch&&this._addTouchEventListeners()},n._addTouchEventListeners=function(){var t=this;if(this._touchSupported){var n=function(e){t._pointerEvent&&b[e.originalEvent.pointerType.toUpperCase()]?t.touchStartX=e.originalEvent.clientX:t._pointerEvent||(t.touchStartX=e.originalEvent.touches[0].clientX)},i=function(e){t._pointerEvent&&b[e.originalEvent.pointerType.toUpperCase()]&&(t.touchDeltaX=e.originalEvent.clientX-t.touchStartX),t._handleSwipe(),"hover"===t._config.pause&&(t.pause(),t.touchTimeout&&clearTimeout(t.touchTimeout),t.touchTimeout=setTimeout((function(e){return t.cycle(e)}),500+t._config.interval))};e(this._element.querySelectorAll(".carousel-item img")).on("dragstart.bs.carousel",(function(t){return t.preventDefault()})),this._pointerEvent?(e(this._element).on("pointerdown.bs.carousel",(function(t){return n(t)})),e(this._element).on("pointerup.bs.carousel",(function(t){return i(t)})),this._element.classList.add("pointer-event")):(e(this._element).on("touchstart.bs.carousel",(function(t){return n(t)})),e(this._element).on("touchmove.bs.carousel",(function(e){return function(e){e.originalEvent.touches&&e.originalEvent.touches.length>1?t.touchDeltaX=0:t.touchDeltaX=e.originalEvent.touches[0].clientX-t.touchStartX}(e)})),e(this._element).on("touchend.bs.carousel",(function(t){return i(t)})))}},n._keydown=function(t){if(!/input|textarea/i.test(t.target.tagName))switch(t.which){case 37:t.preventDefault(),this.prev();break;case 39:t.preventDefault(),this.next()}},n._getItemIndex=function(t){return this._items=t&&t.parentNode?[].slice.call(t.parentNode.querySelectorAll(".carousel-item")):[],this._items.indexOf(t)},n._getItemByDirection=function(t,e){var n="next"===t,i="prev"===t,o=this._getItemIndex(e),r=this._items.length-1;if((i&&0===o||n&&o===r)&&!this._config.wrap)return e;var s=(o+("prev"===t?-1:1))%this._items.length;return-1===s?this._items[this._items.length-1]:this._items[s]},n._triggerSlideEvent=function(t,n){var i=this._getItemIndex(t),o=this._getItemIndex(this._element.querySelector(".active.carousel-item")),r=e.Event("slide.bs.carousel",{relatedTarget:t,direction:n,from:o,to:i});return e(this._element).trigger(r),r},n._setActiveIndicatorElement=function(t){if(this._indicatorsElement){var n=[].slice.call(this._indicatorsElement.querySelectorAll(".active"));e(n).removeClass("active");var i=this._indicatorsElement.children[this._getItemIndex(t)];i&&e(i).addClass("active")}},n._slide=function(t,n){var i,o,r,s=this,a=this._element.querySelector(".active.carousel-item"),c=this._getItemIndex(a),u=n||a&&this._getItemByDirection(t,a),h=this._getItemIndex(u),f=Boolean(this._interval);if("next"===t?(i="carousel-item-left",o="carousel-item-next",r="left"):(i="carousel-item-right",o="carousel-item-prev",r="right"),u&&e(u).hasClass("active"))this._isSliding=!1;else if(!this._triggerSlideEvent(u,r).isDefaultPrevented()&&a&&u){this._isSliding=!0,f&&this.pause(),this._setActiveIndicatorElement(u);var d=e.Event("slid.bs.carousel",{relatedTarget:u,direction:r,from:c,to:h});if(e(this._element).hasClass("slide")){e(u).addClass(o),l.reflow(u),e(a).addClass(i),e(u).addClass(i);var p=parseInt(u.getAttribute("data-interval"),10);p?(this._config.defaultInterval=this._config.defaultInterval||this._config.interval,this._config.interval=p):this._config.interval=this._config.defaultInterval||this._config.interval;var m=l.getTransitionDurationFromElement(a);e(a).one(l.TRANSITION_END,(function(){e(u).removeClass(i+" "+o).addClass("active"),e(a).removeClass("active "+o+" "+i),s._isSliding=!1,setTimeout((function(){return e(s._element).trigger(d)}),0)})).emulateTransitionEnd(m)}else e(a).removeClass("active"),e(u).addClass("active"),this._isSliding=!1,e(this._element).trigger(d);f&&this.cycle()}},t._jQueryInterface=function(n){return this.each((function(){var i=e(this).data("bs.carousel"),o=s(s({},v),e(this).data());"object"==typeof n&&(o=s(s({},o),n));var r="string"==typeof n?n:o.slide;if(i||(i=new t(this,o),e(this).data("bs.carousel",i)),"number"==typeof n)i.to(n);else if("string"==typeof r){if("undefined"==typeof i[r])throw new TypeError('No method named "'+r+'"');i[r]()}else o.interval&&o.ride&&(i.pause(),i.cycle())}))},t._dataApiClickHandler=function(n){var i=l.getSelectorFromElement(this);if(i){var o=e(i)[0];if(o&&e(o).hasClass("carousel")){var r=s(s({},e(o).data()),e(this).data()),a=this.getAttribute("data-slide-to");a&&(r.interval=!1),t._jQueryInterface.call(e(o),r),a&&e(o).data("bs.carousel").to(a),n.preventDefault()}}},i(t,null,[{key:"VERSION",get:function(){return"4.5.0"}},{key:"Default",get:function(){return v}}]),t}();e(document).on("click.bs.carousel.data-api","[data-slide], [data-slide-to]",y._dataApiClickHandler),e(window).on("load.bs.carousel.data-api",(function(){for(var t=[].slice.call(document.querySelectorAll('[data-ride="carousel"]')),n=0,i=t.length;n0&&(this._selector=s,this._triggerArray.push(r))}this._parent=this._config.parent?this._getParent():null,this._config.parent||this._addAriaAndCollapsedClass(this._element,this._triggerArray),this._config.toggle&&this.toggle()}var n=t.prototype;return n.toggle=function(){e(this._element).hasClass("show")?this.hide():this.show()},n.show=function(){var n,i,o=this;if(!this._isTransitioning&&!e(this._element).hasClass("show")&&(this._parent&&0===(n=[].slice.call(this._parent.querySelectorAll(".show, .collapsing")).filter((function(t){return"string"==typeof o._config.parent?t.getAttribute("data-parent")===o._config.parent:t.classList.contains("collapse")}))).length&&(n=null),!(n&&(i=e(n).not(this._selector).data("bs.collapse"))&&i._isTransitioning))){var r=e.Event("show.bs.collapse");if(e(this._element).trigger(r),!r.isDefaultPrevented()){n&&(t._jQueryInterface.call(e(n).not(this._selector),"hide"),i||e(n).data("bs.collapse",null));var s=this._getDimension();e(this._element).removeClass("collapse").addClass("collapsing"),this._element.style[s]=0,this._triggerArray.length&&e(this._triggerArray).removeClass("collapsed").attr("aria-expanded",!0),this.setTransitioning(!0);var a="scroll"+(s[0].toUpperCase()+s.slice(1)),c=l.getTransitionDurationFromElement(this._element);e(this._element).one(l.TRANSITION_END,(function(){e(o._element).removeClass("collapsing").addClass("collapse show"),o._element.style[s]="",o.setTransitioning(!1),e(o._element).trigger("shown.bs.collapse")})).emulateTransitionEnd(c),this._element.style[s]=this._element[a]+"px"}}},n.hide=function(){var t=this;if(!this._isTransitioning&&e(this._element).hasClass("show")){var n=e.Event("hide.bs.collapse");if(e(this._element).trigger(n),!n.isDefaultPrevented()){var i=this._getDimension();this._element.style[i]=this._element.getBoundingClientRect()[i]+"px",l.reflow(this._element),e(this._element).addClass("collapsing").removeClass("collapse show");var o=this._triggerArray.length;if(o>0)for(var r=0;r=0)return 1;return 0}();var N=D&&window.Promise?function(t){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then((function(){e=!1,t()})))}}:function(t){var e=!1;return function(){e||(e=!0,setTimeout((function(){e=!1,t()}),k))}};function O(t){return t&&"[object Function]"==={}.toString.call(t)}function A(t,e){if(1!==t.nodeType)return[];var n=t.ownerDocument.defaultView.getComputedStyle(t,null);return e?n[e]:n}function I(t){return"HTML"===t.nodeName?t:t.parentNode||t.host}function x(t){if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}var e=A(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return/(auto|scroll|overlay)/.test(n+o+i)?t:x(I(t))}function j(t){return t&&t.referenceNode?t.referenceNode:t}var L=D&&!(!window.MSInputMethodContext||!document.documentMode),P=D&&/MSIE 10/.test(navigator.userAgent);function F(t){return 11===t?L:10===t?P:L||P}function R(t){if(!t)return document.documentElement;for(var e=F(10)?document.body:null,n=t.offsetParent||null;n===e&&t.nextElementSibling;)n=(t=t.nextElementSibling).offsetParent;var i=n&&n.nodeName;return i&&"BODY"!==i&&"HTML"!==i?-1!==["TH","TD","TABLE"].indexOf(n.nodeName)&&"static"===A(n,"position")?R(n):n:t?t.ownerDocument.documentElement:document.documentElement}function M(t){return null!==t.parentNode?M(t.parentNode):t}function B(t,e){if(!(t&&t.nodeType&&e&&e.nodeType))return document.documentElement;var n=t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,i=n?t:e,o=n?e:t,r=document.createRange();r.setStart(i,0),r.setEnd(o,0);var s,a,l=r.commonAncestorContainer;if(t!==l&&e!==l||i.contains(o))return"BODY"===(a=(s=l).nodeName)||"HTML"!==a&&R(s.firstElementChild)!==s?R(l):l;var c=M(t);return c.host?B(c.host,e):B(t,M(e).host)}function q(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"top",n="top"===e?"scrollTop":"scrollLeft",i=t.nodeName;if("BODY"===i||"HTML"===i){var o=t.ownerDocument.documentElement,r=t.ownerDocument.scrollingElement||o;return r[n]}return t[n]}function H(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=q(e,"top"),o=q(e,"left"),r=n?-1:1;return t.top+=i*r,t.bottom+=i*r,t.left+=o*r,t.right+=o*r,t}function Q(t,e){var n="x"===e?"Left":"Top",i="Left"===n?"Right":"Bottom";return parseFloat(t["border"+n+"Width"],10)+parseFloat(t["border"+i+"Width"],10)}function W(t,e,n,i){return Math.max(e["offset"+t],e["scroll"+t],n["client"+t],n["offset"+t],n["scroll"+t],F(10)?parseInt(n["offset"+t])+parseInt(i["margin"+("Height"===t?"Top":"Left")])+parseInt(i["margin"+("Height"===t?"Bottom":"Right")]):0)}function U(t){var e=t.body,n=t.documentElement,i=F(10)&&getComputedStyle(n);return{height:W("Height",e,n,i),width:W("Width",e,n,i)}}var V=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},Y=function(){function t(t,e){for(var n=0;n2&&void 0!==arguments[2]&&arguments[2],i=F(10),o="HTML"===e.nodeName,r=G(t),s=G(e),a=x(t),l=A(e),c=parseFloat(l.borderTopWidth,10),u=parseFloat(l.borderLeftWidth,10);n&&o&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var h=K({top:r.top-s.top-c,left:r.left-s.left-u,width:r.width,height:r.height});if(h.marginTop=0,h.marginLeft=0,!i&&o){var f=parseFloat(l.marginTop,10),d=parseFloat(l.marginLeft,10);h.top-=c-f,h.bottom-=c-f,h.left-=u-d,h.right-=u-d,h.marginTop=f,h.marginLeft=d}return(i&&!n?e.contains(a):e===a&&"BODY"!==a.nodeName)&&(h=H(h,e)),h}function J(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.ownerDocument.documentElement,i=$(t,n),o=Math.max(n.clientWidth,window.innerWidth||0),r=Math.max(n.clientHeight,window.innerHeight||0),s=e?0:q(n),a=e?0:q(n,"left"),l={top:s-i.top+i.marginTop,left:a-i.left+i.marginLeft,width:o,height:r};return K(l)}function Z(t){var e=t.nodeName;if("BODY"===e||"HTML"===e)return!1;if("fixed"===A(t,"position"))return!0;var n=I(t);return!!n&&Z(n)}function tt(t){if(!t||!t.parentElement||F())return document.documentElement;for(var e=t.parentElement;e&&"none"===A(e,"transform");)e=e.parentElement;return e||document.documentElement}function et(t,e,n,i){var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r={top:0,left:0},s=o?tt(t):B(t,j(e));if("viewport"===i)r=J(s,o);else{var a=void 0;"scrollParent"===i?"BODY"===(a=x(I(e))).nodeName&&(a=t.ownerDocument.documentElement):a="window"===i?t.ownerDocument.documentElement:i;var l=$(a,s,o);if("HTML"!==a.nodeName||Z(s))r=l;else{var c=U(t.ownerDocument),u=c.height,h=c.width;r.top+=l.top-l.marginTop,r.bottom=u+l.top,r.left+=l.left-l.marginLeft,r.right=h+l.left}}var f="number"==typeof(n=n||0);return r.left+=f?n:n.left||0,r.top+=f?n:n.top||0,r.right-=f?n:n.right||0,r.bottom-=f?n:n.bottom||0,r}function nt(t){return t.width*t.height}function it(t,e,n,i,o){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;if(-1===t.indexOf("auto"))return t;var s=et(n,i,r,o),a={top:{width:s.width,height:e.top-s.top},right:{width:s.right-e.right,height:s.height},bottom:{width:s.width,height:s.bottom-e.bottom},left:{width:e.left-s.left,height:s.height}},l=Object.keys(a).map((function(t){return X({key:t},a[t],{area:nt(a[t])})})).sort((function(t,e){return e.area-t.area})),c=l.filter((function(t){var e=t.width,i=t.height;return e>=n.clientWidth&&i>=n.clientHeight})),u=c.length>0?c[0].key:l[0].key,h=t.split("-")[1];return u+(h?"-"+h:"")}function ot(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=i?tt(e):B(e,j(n));return $(n,o,i)}function rt(t){var e=t.ownerDocument.defaultView.getComputedStyle(t),n=parseFloat(e.marginTop||0)+parseFloat(e.marginBottom||0),i=parseFloat(e.marginLeft||0)+parseFloat(e.marginRight||0);return{width:t.offsetWidth+i,height:t.offsetHeight+n}}function st(t){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return t.replace(/left|right|bottom|top/g,(function(t){return e[t]}))}function at(t,e,n){n=n.split("-")[0];var i=rt(t),o={width:i.width,height:i.height},r=-1!==["right","left"].indexOf(n),s=r?"top":"left",a=r?"left":"top",l=r?"height":"width",c=r?"width":"height";return o[s]=e[s]+e[l]/2-i[l]/2,o[a]=n===a?e[a]-i[c]:e[st(a)],o}function lt(t,e){return Array.prototype.find?t.find(e):t.filter(e)[0]}function ct(t,e,n){return(void 0===n?t:t.slice(0,function(t,e,n){if(Array.prototype.findIndex)return t.findIndex((function(t){return t[e]===n}));var i=lt(t,(function(t){return t[e]===n}));return t.indexOf(i)}(t,"name",n))).forEach((function(t){t.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var n=t.function||t.fn;t.enabled&&O(n)&&(e.offsets.popper=K(e.offsets.popper),e.offsets.reference=K(e.offsets.reference),e=n(e,t))})),e}function ut(){if(!this.state.isDestroyed){var t={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};t.offsets.reference=ot(this.state,this.popper,this.reference,this.options.positionFixed),t.placement=it(this.options.placement,t.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),t.originalPlacement=t.placement,t.positionFixed=this.options.positionFixed,t.offsets.popper=at(this.popper,t.offsets.reference,t.placement),t.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",t=ct(this.modifiers,t),this.state.isCreated?this.options.onUpdate(t):(this.state.isCreated=!0,this.options.onCreate(t))}}function ht(t,e){return t.some((function(t){var n=t.name;return t.enabled&&n===e}))}function ft(t){for(var e=[!1,"ms","Webkit","Moz","O"],n=t.charAt(0).toUpperCase()+t.slice(1),i=0;i1&&void 0!==arguments[1]&&arguments[1],n=Tt.indexOf(t),i=Tt.slice(n+1).concat(Tt.slice(0,n));return e?i.reverse():i}var St="flip",Dt="clockwise",kt="counterclockwise";function Nt(t,e,n,i){var o=[0,0],r=-1!==["right","left"].indexOf(i),s=t.split(/(\+|\-)/).map((function(t){return t.trim()})),a=s.indexOf(lt(s,(function(t){return-1!==t.search(/,|\s/)})));s[a]&&-1===s[a].indexOf(",")&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,c=-1!==a?[s.slice(0,a).concat([s[a].split(l)[0]]),[s[a].split(l)[1]].concat(s.slice(a+1))]:[s];return(c=c.map((function(t,i){var o=(1===i?!r:r)?"height":"width",s=!1;return t.reduce((function(t,e){return""===t[t.length-1]&&-1!==["+","-"].indexOf(e)?(t[t.length-1]=e,s=!0,t):s?(t[t.length-1]+=e,s=!1,t):t.concat(e)}),[]).map((function(t){return function(t,e,n,i){var o=t.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),r=+o[1],s=o[2];if(!r)return t;if(0===s.indexOf("%")){var a=void 0;switch(s){case"%p":a=n;break;case"%":case"%r":default:a=i}return K(a)[e]/100*r}if("vh"===s||"vw"===s){return("vh"===s?Math.max(document.documentElement.clientHeight,window.innerHeight||0):Math.max(document.documentElement.clientWidth,window.innerWidth||0))/100*r}return r}(t,o,e,n)}))}))).forEach((function(t,e){t.forEach((function(n,i){_t(n)&&(o[e]+=n*("-"===t[i-1]?-1:1))}))})),o}var Ot={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:{shift:{order:100,enabled:!0,fn:function(t){var e=t.placement,n=e.split("-")[0],i=e.split("-")[1];if(i){var o=t.offsets,r=o.reference,s=o.popper,a=-1!==["bottom","top"].indexOf(n),l=a?"left":"top",c=a?"width":"height",u={start:z({},l,r[l]),end:z({},l,r[l]+r[c]-s[c])};t.offsets.popper=X({},s,u[i])}return t}},offset:{order:200,enabled:!0,fn:function(t,e){var n=e.offset,i=t.placement,o=t.offsets,r=o.popper,s=o.reference,a=i.split("-")[0],l=void 0;return l=_t(+n)?[+n,0]:Nt(n,r,s,a),"left"===a?(r.top+=l[0],r.left-=l[1]):"right"===a?(r.top+=l[0],r.left+=l[1]):"top"===a?(r.left+=l[0],r.top-=l[1]):"bottom"===a&&(r.left+=l[0],r.top+=l[1]),t.popper=r,t},offset:0},preventOverflow:{order:300,enabled:!0,fn:function(t,e){var n=e.boundariesElement||R(t.instance.popper);t.instance.reference===n&&(n=R(n));var i=ft("transform"),o=t.instance.popper.style,r=o.top,s=o.left,a=o[i];o.top="",o.left="",o[i]="";var l=et(t.instance.popper,t.instance.reference,e.padding,n,t.positionFixed);o.top=r,o.left=s,o[i]=a,e.boundaries=l;var c=e.priority,u=t.offsets.popper,h={primary:function(t){var n=u[t];return u[t]l[t]&&!e.escapeWithReference&&(i=Math.min(u[n],l[t]-("right"===t?u.width:u.height))),z({},n,i)}};return c.forEach((function(t){var e=-1!==["left","top"].indexOf(t)?"primary":"secondary";u=X({},u,h[e](t))})),t.offsets.popper=u,t},priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:function(t){var e=t.offsets,n=e.popper,i=e.reference,o=t.placement.split("-")[0],r=Math.floor,s=-1!==["top","bottom"].indexOf(o),a=s?"right":"bottom",l=s?"left":"top",c=s?"width":"height";return n[a]r(i[a])&&(t.offsets.popper[l]=r(i[a])),t}},arrow:{order:500,enabled:!0,fn:function(t,e){var n;if(!wt(t.instance.modifiers,"arrow","keepTogether"))return t;var i=e.element;if("string"==typeof i){if(!(i=t.instance.popper.querySelector(i)))return t}else if(!t.instance.popper.contains(i))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),t;var o=t.placement.split("-")[0],r=t.offsets,s=r.popper,a=r.reference,l=-1!==["left","right"].indexOf(o),c=l?"height":"width",u=l?"Top":"Left",h=u.toLowerCase(),f=l?"left":"top",d=l?"bottom":"right",p=rt(i)[c];a[d]-ps[d]&&(t.offsets.popper[h]+=a[h]+p-s[d]),t.offsets.popper=K(t.offsets.popper);var m=a[h]+a[c]/2-p/2,g=A(t.instance.popper),v=parseFloat(g["margin"+u],10),_=parseFloat(g["border"+u+"Width"],10),b=m-t.offsets.popper[h]-v-_;return b=Math.max(Math.min(s[c]-p,b),0),t.arrowElement=i,t.offsets.arrow=(z(n={},h,Math.round(b)),z(n,f,""),n),t},element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:function(t,e){if(ht(t.instance.modifiers,"inner"))return t;if(t.flipped&&t.placement===t.originalPlacement)return t;var n=et(t.instance.popper,t.instance.reference,e.padding,e.boundariesElement,t.positionFixed),i=t.placement.split("-")[0],o=st(i),r=t.placement.split("-")[1]||"",s=[];switch(e.behavior){case St:s=[i,o];break;case Dt:s=Ct(i);break;case kt:s=Ct(i,!0);break;default:s=e.behavior}return s.forEach((function(a,l){if(i!==a||s.length===l+1)return t;i=t.placement.split("-")[0],o=st(i);var c=t.offsets.popper,u=t.offsets.reference,h=Math.floor,f="left"===i&&h(c.right)>h(u.left)||"right"===i&&h(c.left)h(u.top)||"bottom"===i&&h(c.top)h(n.right),m=h(c.top)h(n.bottom),v="left"===i&&d||"right"===i&&p||"top"===i&&m||"bottom"===i&&g,_=-1!==["top","bottom"].indexOf(i),b=!!e.flipVariations&&(_&&"start"===r&&d||_&&"end"===r&&p||!_&&"start"===r&&m||!_&&"end"===r&&g),y=!!e.flipVariationsByContent&&(_&&"start"===r&&p||_&&"end"===r&&d||!_&&"start"===r&&g||!_&&"end"===r&&m),w=b||y;(f||v||w)&&(t.flipped=!0,(f||v)&&(i=s[l+1]),w&&(r=function(t){return"end"===t?"start":"start"===t?"end":t}(r)),t.placement=i+(r?"-"+r:""),t.offsets.popper=X({},t.offsets.popper,at(t.instance.popper,t.offsets.reference,t.placement)),t=ct(t.instance.modifiers,t,"flip"))})),t},behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:function(t){var e=t.placement,n=e.split("-")[0],i=t.offsets,o=i.popper,r=i.reference,s=-1!==["left","right"].indexOf(n),a=-1===["top","left"].indexOf(n);return o[s?"left":"top"]=r[n]-(a?o[s?"width":"height"]:0),t.placement=st(e),t.offsets.popper=K(o),t}},hide:{order:800,enabled:!0,fn:function(t){if(!wt(t.instance.modifiers,"hide","preventOverflow"))return t;var e=t.offsets.reference,n=lt(t.instance.modifiers,(function(t){return"preventOverflow"===t.name})).boundaries;if(e.bottomn.right||e.top>n.bottom||e.right2&&void 0!==arguments[2]?arguments[2]:{};V(this,t),this.scheduleUpdate=function(){return requestAnimationFrame(i.update)},this.update=N(this.update.bind(this)),this.options=X({},t.Defaults,o),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=n&&n.jquery?n[0]:n,this.options.modifiers={},Object.keys(X({},t.Defaults.modifiers,o.modifiers)).forEach((function(e){i.options.modifiers[e]=X({},t.Defaults.modifiers[e]||{},o.modifiers?o.modifiers[e]:{})})),this.modifiers=Object.keys(this.options.modifiers).map((function(t){return X({name:t},i.options.modifiers[t])})).sort((function(t,e){return t.order-e.order})),this.modifiers.forEach((function(t){t.enabled&&O(t.onLoad)&&t.onLoad(i.reference,i.popper,i.options,t,i.state)})),this.update();var r=this.options.eventsEnabled;r&&this.enableEventListeners(),this.state.eventsEnabled=r}return Y(t,[{key:"update",value:function(){return ut.call(this)}},{key:"destroy",value:function(){return dt.call(this)}},{key:"enableEventListeners",value:function(){return gt.call(this)}},{key:"disableEventListeners",value:function(){return vt.call(this)}}]),t}();At.Utils=("undefined"!=typeof window?window:global).PopperUtils,At.placements=Et,At.Defaults=Ot;var It="dropdown",xt=e.fn[It],jt=new RegExp("38|40|27"),Lt={offset:0,flip:!0,boundary:"scrollParent",reference:"toggle",display:"dynamic",popperConfig:null},Pt={offset:"(number|string|function)",flip:"boolean",boundary:"(string|element)",reference:"(string|element)",display:"string",popperConfig:"(null|object)"},Ft=function(){function t(t,e){this._element=t,this._popper=null,this._config=this._getConfig(e),this._menu=this._getMenuElement(),this._inNavbar=this._detectNavbar(),this._addEventListeners()}var n=t.prototype;return n.toggle=function(){if(!this._element.disabled&&!e(this._element).hasClass("disabled")){var n=e(this._menu).hasClass("show");t._clearMenus(),n||this.show(!0)}},n.show=function(n){if(void 0===n&&(n=!1),!(this._element.disabled||e(this._element).hasClass("disabled")||e(this._menu).hasClass("show"))){var i={relatedTarget:this._element},o=e.Event("show.bs.dropdown",i),r=t._getParentFromElement(this._element);if(e(r).trigger(o),!o.isDefaultPrevented()){if(!this._inNavbar&&n){if("undefined"==typeof At)throw new TypeError("Bootstrap's dropdowns require Popper.js (https://popper.js.org/)");var s=this._element;"parent"===this._config.reference?s=r:l.isElement(this._config.reference)&&(s=this._config.reference,"undefined"!=typeof this._config.reference.jquery&&(s=this._config.reference[0])),"scrollParent"!==this._config.boundary&&e(r).addClass("position-static"),this._popper=new At(s,this._menu,this._getPopperConfig())}"ontouchstart"in document.documentElement&&0===e(r).closest(".navbar-nav").length&&e(document.body).children().on("mouseover",null,e.noop),this._element.focus(),this._element.setAttribute("aria-expanded",!0),e(this._menu).toggleClass("show"),e(r).toggleClass("show").trigger(e.Event("shown.bs.dropdown",i))}}},n.hide=function(){if(!this._element.disabled&&!e(this._element).hasClass("disabled")&&e(this._menu).hasClass("show")){var n={relatedTarget:this._element},i=e.Event("hide.bs.dropdown",n),o=t._getParentFromElement(this._element);e(o).trigger(i),i.isDefaultPrevented()||(this._popper&&this._popper.destroy(),e(this._menu).toggleClass("show"),e(o).toggleClass("show").trigger(e.Event("hidden.bs.dropdown",n)))}},n.dispose=function(){e.removeData(this._element,"bs.dropdown"),e(this._element).off(".bs.dropdown"),this._element=null,this._menu=null,null!==this._popper&&(this._popper.destroy(),this._popper=null)},n.update=function(){this._inNavbar=this._detectNavbar(),null!==this._popper&&this._popper.scheduleUpdate()},n._addEventListeners=function(){var t=this;e(this._element).on("click.bs.dropdown",(function(e){e.preventDefault(),e.stopPropagation(),t.toggle()}))},n._getConfig=function(t){return t=s(s(s({},this.constructor.Default),e(this._element).data()),t),l.typeCheckConfig(It,t,this.constructor.DefaultType),t},n._getMenuElement=function(){if(!this._menu){var e=t._getParentFromElement(this._element);e&&(this._menu=e.querySelector(".dropdown-menu"))}return this._menu},n._getPlacement=function(){var t=e(this._element.parentNode),n="bottom-start";return t.hasClass("dropup")?n=e(this._menu).hasClass("dropdown-menu-right")?"top-end":"top-start":t.hasClass("dropright")?n="right-start":t.hasClass("dropleft")?n="left-start":e(this._menu).hasClass("dropdown-menu-right")&&(n="bottom-end"),n},n._detectNavbar=function(){return e(this._element).closest(".navbar").length>0},n._getOffset=function(){var t=this,e={};return"function"==typeof this._config.offset?e.fn=function(e){return e.offsets=s(s({},e.offsets),t._config.offset(e.offsets,t._element)||{}),e}:e.offset=this._config.offset,e},n._getPopperConfig=function(){var t={placement:this._getPlacement(),modifiers:{offset:this._getOffset(),flip:{enabled:this._config.flip},preventOverflow:{boundariesElement:this._config.boundary}}};return"static"===this._config.display&&(t.modifiers.applyStyle={enabled:!1}),s(s({},t),this._config.popperConfig)},t._jQueryInterface=function(n){return this.each((function(){var i=e(this).data("bs.dropdown");if(i||(i=new t(this,"object"==typeof n?n:null),e(this).data("bs.dropdown",i)),"string"==typeof n){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}}))},t._clearMenus=function(n){if(!n||3!==n.which&&("keyup"!==n.type||9===n.which))for(var i=[].slice.call(document.querySelectorAll('[data-toggle="dropdown"]')),o=0,r=i.length;o0&&s--,40===n.which&&sdocument.documentElement.clientHeight;!this._isBodyOverflowing&&t&&(this._element.style.paddingLeft=this._scrollbarWidth+"px"),this._isBodyOverflowing&&!t&&(this._element.style.paddingRight=this._scrollbarWidth+"px")},n._resetAdjustments=function(){this._element.style.paddingLeft="",this._element.style.paddingRight=""},n._checkScrollbar=function(){var t=document.body.getBoundingClientRect();this._isBodyOverflowing=Math.round(t.left+t.right)
',trigger:"hover focus",title:"",delay:0,html:!1,selector:!1,placement:"top",offset:0,container:!1,fallbackPlacement:"flip",boundary:"scrollParent",sanitize:!0,sanitizeFn:null,whiteList:Qt,popperConfig:null},Zt={HIDE:"hide.bs.tooltip",HIDDEN:"hidden.bs.tooltip",SHOW:"show.bs.tooltip",SHOWN:"shown.bs.tooltip",INSERTED:"inserted.bs.tooltip",CLICK:"click.bs.tooltip",FOCUSIN:"focusin.bs.tooltip",FOCUSOUT:"focusout.bs.tooltip",MOUSEENTER:"mouseenter.bs.tooltip",MOUSELEAVE:"mouseleave.bs.tooltip"},te=function(){function t(t,e){if("undefined"==typeof At)throw new TypeError("Bootstrap's tooltips require Popper.js (https://popper.js.org/)");this._isEnabled=!0,this._timeout=0,this._hoverState="",this._activeTrigger={},this._popper=null,this.element=t,this.config=this._getConfig(e),this.tip=null,this._setListeners()}var n=t.prototype;return n.enable=function(){this._isEnabled=!0},n.disable=function(){this._isEnabled=!1},n.toggleEnabled=function(){this._isEnabled=!this._isEnabled},n.toggle=function(t){if(this._isEnabled)if(t){var n=this.constructor.DATA_KEY,i=e(t.currentTarget).data(n);i||(i=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(n,i)),i._activeTrigger.click=!i._activeTrigger.click,i._isWithActiveTrigger()?i._enter(null,i):i._leave(null,i)}else{if(e(this.getTipElement()).hasClass("show"))return void this._leave(null,this);this._enter(null,this)}},n.dispose=function(){clearTimeout(this._timeout),e.removeData(this.element,this.constructor.DATA_KEY),e(this.element).off(this.constructor.EVENT_KEY),e(this.element).closest(".modal").off("hide.bs.modal",this._hideModalHandler),this.tip&&e(this.tip).remove(),this._isEnabled=null,this._timeout=null,this._hoverState=null,this._activeTrigger=null,this._popper&&this._popper.destroy(),this._popper=null,this.element=null,this.config=null,this.tip=null},n.show=function(){var t=this;if("none"===e(this.element).css("display"))throw new Error("Please use show on visible elements");var n=e.Event(this.constructor.Event.SHOW);if(this.isWithContent()&&this._isEnabled){e(this.element).trigger(n);var i=l.findShadowRoot(this.element),o=e.contains(null!==i?i:this.element.ownerDocument.documentElement,this.element);if(n.isDefaultPrevented()||!o)return;var r=this.getTipElement(),s=l.getUID(this.constructor.NAME);r.setAttribute("id",s),this.element.setAttribute("aria-describedby",s),this.setContent(),this.config.animation&&e(r).addClass("fade");var a="function"==typeof this.config.placement?this.config.placement.call(this,r,this.element):this.config.placement,c=this._getAttachment(a);this.addAttachmentClass(c);var u=this._getContainer();e(r).data(this.constructor.DATA_KEY,this),e.contains(this.element.ownerDocument.documentElement,this.tip)||e(r).appendTo(u),e(this.element).trigger(this.constructor.Event.INSERTED),this._popper=new At(this.element,r,this._getPopperConfig(c)),e(r).addClass("show"),"ontouchstart"in document.documentElement&&e(document.body).children().on("mouseover",null,e.noop);var h=function(){t.config.animation&&t._fixTransition();var n=t._hoverState;t._hoverState=null,e(t.element).trigger(t.constructor.Event.SHOWN),"out"===n&&t._leave(null,t)};if(e(this.tip).hasClass("fade")){var f=l.getTransitionDurationFromElement(this.tip);e(this.tip).one(l.TRANSITION_END,h).emulateTransitionEnd(f)}else h()}},n.hide=function(t){var n=this,i=this.getTipElement(),o=e.Event(this.constructor.Event.HIDE),r=function(){"show"!==n._hoverState&&i.parentNode&&i.parentNode.removeChild(i),n._cleanTipClass(),n.element.removeAttribute("aria-describedby"),e(n.element).trigger(n.constructor.Event.HIDDEN),null!==n._popper&&n._popper.destroy(),t&&t()};if(e(this.element).trigger(o),!o.isDefaultPrevented()){if(e(i).removeClass("show"),"ontouchstart"in document.documentElement&&e(document.body).children().off("mouseover",null,e.noop),this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,e(this.tip).hasClass("fade")){var s=l.getTransitionDurationFromElement(i);e(i).one(l.TRANSITION_END,r).emulateTransitionEnd(s)}else r();this._hoverState=""}},n.update=function(){null!==this._popper&&this._popper.scheduleUpdate()},n.isWithContent=function(){return Boolean(this.getTitle())},n.addAttachmentClass=function(t){e(this.getTipElement()).addClass("bs-tooltip-"+t)},n.getTipElement=function(){return this.tip=this.tip||e(this.config.template)[0],this.tip},n.setContent=function(){var t=this.getTipElement();this.setElementContent(e(t.querySelectorAll(".tooltip-inner")),this.getTitle()),e(t).removeClass("fade show")},n.setElementContent=function(t,n){"object"!=typeof n||!n.nodeType&&!n.jquery?this.config.html?(this.config.sanitize&&(n=Vt(n,this.config.whiteList,this.config.sanitizeFn)),t.html(n)):t.text(n):this.config.html?e(n).parent().is(t)||t.empty().append(n):t.text(e(n).text())},n.getTitle=function(){var t=this.element.getAttribute("data-original-title");return t||(t="function"==typeof this.config.title?this.config.title.call(this.element):this.config.title),t},n._getPopperConfig=function(t){var e=this;return s(s({},{placement:t,modifiers:{offset:this._getOffset(),flip:{behavior:this.config.fallbackPlacement},arrow:{element:".arrow"},preventOverflow:{boundariesElement:this.config.boundary}},onCreate:function(t){t.originalPlacement!==t.placement&&e._handlePopperPlacementChange(t)},onUpdate:function(t){return e._handlePopperPlacementChange(t)}}),this.config.popperConfig)},n._getOffset=function(){var t=this,e={};return"function"==typeof this.config.offset?e.fn=function(e){return e.offsets=s(s({},e.offsets),t.config.offset(e.offsets,t.element)||{}),e}:e.offset=this.config.offset,e},n._getContainer=function(){return!1===this.config.container?document.body:l.isElement(this.config.container)?e(this.config.container):e(document).find(this.config.container)},n._getAttachment=function(t){return $t[t.toUpperCase()]},n._setListeners=function(){var t=this;this.config.trigger.split(" ").forEach((function(n){if("click"===n)e(t.element).on(t.constructor.Event.CLICK,t.config.selector,(function(e){return t.toggle(e)}));else if("manual"!==n){var i="hover"===n?t.constructor.Event.MOUSEENTER:t.constructor.Event.FOCUSIN,o="hover"===n?t.constructor.Event.MOUSELEAVE:t.constructor.Event.FOCUSOUT;e(t.element).on(i,t.config.selector,(function(e){return t._enter(e)})).on(o,t.config.selector,(function(e){return t._leave(e)}))}})),this._hideModalHandler=function(){t.element&&t.hide()},e(this.element).closest(".modal").on("hide.bs.modal",this._hideModalHandler),this.config.selector?this.config=s(s({},this.config),{},{trigger:"manual",selector:""}):this._fixTitle()},n._fixTitle=function(){var t=typeof this.element.getAttribute("data-original-title");(this.element.getAttribute("title")||"string"!==t)&&(this.element.setAttribute("data-original-title",this.element.getAttribute("title")||""),this.element.setAttribute("title",""))},n._enter=function(t,n){var i=this.constructor.DATA_KEY;(n=n||e(t.currentTarget).data(i))||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(i,n)),t&&(n._activeTrigger["focusin"===t.type?"focus":"hover"]=!0),e(n.getTipElement()).hasClass("show")||"show"===n._hoverState?n._hoverState="show":(clearTimeout(n._timeout),n._hoverState="show",n.config.delay&&n.config.delay.show?n._timeout=setTimeout((function(){"show"===n._hoverState&&n.show()}),n.config.delay.show):n.show())},n._leave=function(t,n){var i=this.constructor.DATA_KEY;(n=n||e(t.currentTarget).data(i))||(n=new this.constructor(t.currentTarget,this._getDelegateConfig()),e(t.currentTarget).data(i,n)),t&&(n._activeTrigger["focusout"===t.type?"focus":"hover"]=!1),n._isWithActiveTrigger()||(clearTimeout(n._timeout),n._hoverState="out",n.config.delay&&n.config.delay.hide?n._timeout=setTimeout((function(){"out"===n._hoverState&&n.hide()}),n.config.delay.hide):n.hide())},n._isWithActiveTrigger=function(){for(var t in this._activeTrigger)if(this._activeTrigger[t])return!0;return!1},n._getConfig=function(t){var n=e(this.element).data();return Object.keys(n).forEach((function(t){-1!==Kt.indexOf(t)&&delete n[t]})),"number"==typeof(t=s(s(s({},this.constructor.Default),n),"object"==typeof t&&t?t:{})).delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),l.typeCheckConfig(Yt,t,this.constructor.DefaultType),t.sanitize&&(t.template=Vt(t.template,t.whiteList,t.sanitizeFn)),t},n._getDelegateConfig=function(){var t={};if(this.config)for(var e in this.config)this.constructor.Default[e]!==this.config[e]&&(t[e]=this.config[e]);return t},n._cleanTipClass=function(){var t=e(this.getTipElement()),n=t.attr("class").match(Xt);null!==n&&n.length&&t.removeClass(n.join(""))},n._handlePopperPlacementChange=function(t){this.tip=t.instance.popper,this._cleanTipClass(),this.addAttachmentClass(this._getAttachment(t.placement))},n._fixTransition=function(){var t=this.getTipElement(),n=this.config.animation;null===t.getAttribute("x-placement")&&(e(t).removeClass("fade"),this.config.animation=!1,this.hide(),this.show(),this.config.animation=n)},t._jQueryInterface=function(n){return this.each((function(){var i=e(this).data("bs.tooltip"),o="object"==typeof n&&n;if((i||!/dispose|hide/.test(n))&&(i||(i=new t(this,o),e(this).data("bs.tooltip",i)),"string"==typeof n)){if("undefined"==typeof i[n])throw new TypeError('No method named "'+n+'"');i[n]()}}))},i(t,null,[{key:"VERSION",get:function(){return"4.5.0"}},{key:"Default",get:function(){return Jt}},{key:"NAME",get:function(){return Yt}},{key:"DATA_KEY",get:function(){return"bs.tooltip"}},{key:"Event",get:function(){return Zt}},{key:"EVENT_KEY",get:function(){return".bs.tooltip"}},{key:"DefaultType",get:function(){return Gt}}]),t}();e.fn[Yt]=te._jQueryInterface,e.fn[Yt].Constructor=te,e.fn[Yt].noConflict=function(){return e.fn[Yt]=zt,te._jQueryInterface};var ee="popover",ne=e.fn[ee],ie=new RegExp("(^|\\s)bs-popover\\S+","g"),oe=s(s({},te.Default),{},{placement:"right",trigger:"click",content:"",template:''}),re=s(s({},te.DefaultType),{},{content:"(string|element|function)"}),se={HIDE:"hide.bs.popover",HIDDEN:"hidden.bs.popover",SHOW:"show.bs.popover",SHOWN:"shown.bs.popover",INSERTED:"inserted.bs.popover",CLICK:"click.bs.popover",FOCUSIN:"focusin.bs.popover",FOCUSOUT:"focusout.bs.popover",MOUSEENTER:"mouseenter.bs.popover",MOUSELEAVE:"mouseleave.bs.popover"},ae=function(t){var n,o;function r(){return t.apply(this,arguments)||this}o=t,(n=r).prototype=Object.create(o.prototype),n.prototype.constructor=n,n.__proto__=o;var s=r.prototype;return s.isWithContent=function(){return this.getTitle()||this._getContent()},s.addAttachmentClass=function(t){e(this.getTipElement()).addClass("bs-popover-"+t)},s.getTipElement=function(){return this.tip=this.tip||e(this.config.template)[0],this.tip},s.setContent=function(){var t=e(this.getTipElement());this.setElementContent(t.find(".popover-header"),this.getTitle());var n=this._getContent();"function"==typeof n&&(n=n.call(this.element)),this.setElementContent(t.find(".popover-body"),n),t.removeClass("fade show")},s._getContent=function(){return this.element.getAttribute("data-content")||this.config.content},s._cleanTipClass=function(){var t=e(this.getTipElement()),n=t.attr("class").match(ie);null!==n&&n.length>0&&t.removeClass(n.join(""))},r._jQueryInterface=function(t){return this.each((function(){var n=e(this).data("bs.popover"),i="object"==typeof t?t:null;if((n||!/dispose|hide/.test(t))&&(n||(n=new r(this,i),e(this).data("bs.popover",n)),"string"==typeof t)){if("undefined"==typeof n[t])throw new TypeError('No method named "'+t+'"');n[t]()}}))},i(r,null,[{key:"VERSION",get:function(){return"4.5.0"}},{key:"Default",get:function(){return oe}},{key:"NAME",get:function(){return ee}},{key:"DATA_KEY",get:function(){return"bs.popover"}},{key:"Event",get:function(){return se}},{key:"EVENT_KEY",get:function(){return".bs.popover"}},{key:"DefaultType",get:function(){return re}}]),r}(te);e.fn[ee]=ae._jQueryInterface,e.fn[ee].Constructor=ae,e.fn[ee].noConflict=function(){return e.fn[ee]=ne,ae._jQueryInterface};var le="scrollspy",ce=e.fn[le],ue={offset:10,method:"auto",target:""},he={offset:"number",method:"string",target:"(string|element)"},fe=function(){function t(t,n){var i=this;this._element=t,this._scrollElement="BODY"===t.tagName?window:t,this._config=this._getConfig(n),this._selector=this._config.target+" .nav-link,"+this._config.target+" .list-group-item,"+this._config.target+" .dropdown-item",this._offsets=[],this._targets=[],this._activeTarget=null,this._scrollHeight=0,e(this._scrollElement).on("scroll.bs.scrollspy",(function(t){return i._process(t)})),this.refresh(),this._process()}var n=t.prototype;return n.refresh=function(){var t=this,n=this._scrollElement===this._scrollElement.window?"offset":"position",i="auto"===this._config.method?n:this._config.method,o="position"===i?this._getScrollTop():0;this._offsets=[],this._targets=[],this._scrollHeight=this._getScrollHeight(),[].slice.call(document.querySelectorAll(this._selector)).map((function(t){var n,r=l.getSelectorFromElement(t);if(r&&(n=document.querySelector(r)),n){var s=n.getBoundingClientRect();if(s.width||s.height)return[e(n)[i]().top+o,r]}return null})).filter((function(t){return t})).sort((function(t,e){return t[0]-e[0]})).forEach((function(e){t._offsets.push(e[0]),t._targets.push(e[1])}))},n.dispose=function(){e.removeData(this._element,"bs.scrollspy"),e(this._scrollElement).off(".bs.scrollspy"),this._element=null,this._scrollElement=null,this._config=null,this._selector=null,this._offsets=null,this._targets=null,this._activeTarget=null,this._scrollHeight=null},n._getConfig=function(t){if("string"!=typeof(t=s(s({},ue),"object"==typeof t&&t?t:{})).target&&l.isElement(t.target)){var n=e(t.target).attr("id");n||(n=l.getUID(le),e(t.target).attr("id",n)),t.target="#"+n}return l.typeCheckConfig(le,t,he),t},n._getScrollTop=function(){return this._scrollElement===window?this._scrollElement.pageYOffset:this._scrollElement.scrollTop},n._getScrollHeight=function(){return this._scrollElement.scrollHeight||Math.max(document.body.scrollHeight,document.documentElement.scrollHeight)},n._getOffsetHeight=function(){return this._scrollElement===window?window.innerHeight:this._scrollElement.getBoundingClientRect().height},n._process=function(){var t=this._getScrollTop()+this._config.offset,e=this._getScrollHeight(),n=this._config.offset+e-this._getOffsetHeight();if(this._scrollHeight!==e&&this.refresh(),t>=n){var i=this._targets[this._targets.length-1];this._activeTarget!==i&&this._activate(i)}else{if(this._activeTarget&&t0)return this._activeTarget=null,void this._clear();for(var o=this._offsets.length;o--;){this._activeTarget!==this._targets[o]&&t>=this._offsets[o]&&("undefined"==typeof this._offsets[o+1]||t li > .active":".active";i=(i=e.makeArray(e(o).find(s)))[i.length-1]}var a=e.Event("hide.bs.tab",{relatedTarget:this._element}),c=e.Event("show.bs.tab",{relatedTarget:i});if(i&&e(i).trigger(a),e(this._element).trigger(c),!c.isDefaultPrevented()&&!a.isDefaultPrevented()){r&&(n=document.querySelector(r)),this._activate(this._element,o);var u=function(){var n=e.Event("hidden.bs.tab",{relatedTarget:t._element}),o=e.Event("shown.bs.tab",{relatedTarget:i});e(i).trigger(n),e(t._element).trigger(o)};n?this._activate(n,n.parentNode,u):u()}}},n.dispose=function(){e.removeData(this._element,"bs.tab"),this._element=null},n._activate=function(t,n,i){var o=this,r=(!n||"UL"!==n.nodeName&&"OL"!==n.nodeName?e(n).children(".active"):e(n).find("> li > .active"))[0],s=i&&r&&e(r).hasClass("fade"),a=function(){return o._transitionComplete(t,r,i)};if(r&&s){var c=l.getTransitionDurationFromElement(r);e(r).removeClass("show").one(l.TRANSITION_END,a).emulateTransitionEnd(c)}else a()},n._transitionComplete=function(t,n,i){if(n){e(n).removeClass("active");var o=e(n.parentNode).find("> .dropdown-menu .active")[0];o&&e(o).removeClass("active"),"tab"===n.getAttribute("role")&&n.setAttribute("aria-selected",!1)}if(e(t).addClass("active"),"tab"===t.getAttribute("role")&&t.setAttribute("aria-selected",!0),l.reflow(t),t.classList.contains("fade")&&t.classList.add("show"),t.parentNode&&e(t.parentNode).hasClass("dropdown-menu")){var r=e(t).closest(".dropdown")[0];if(r){var s=[].slice.call(r.querySelectorAll(".dropdown-toggle"));e(s).addClass("active")}t.setAttribute("aria-expanded",!0)}i&&i()},t._jQueryInterface=function(n){return this.each((function(){var i=e(this),o=i.data("bs.tab");if(o||(o=new t(this),i.data("bs.tab",o)),"string"==typeof n){if("undefined"==typeof o[n])throw new TypeError('No method named "'+n+'"');o[n]()}}))},i(t,null,[{key:"VERSION",get:function(){return"4.5.0"}}]),t}();e(document).on("click.bs.tab.data-api",'[data-toggle="tab"], [data-toggle="pill"], [data-toggle="list"]',(function(t){t.preventDefault(),pe._jQueryInterface.call(e(this),"show")})),e.fn.tab=pe._jQueryInterface,e.fn.tab.Constructor=pe,e.fn.tab.noConflict=function(){return e.fn.tab=de,pe._jQueryInterface};var me=e.fn.toast,ge={animation:"boolean",autohide:"boolean",delay:"number"},ve={animation:!0,autohide:!0,delay:500},_e=function(){function t(t,e){this._element=t,this._config=this._getConfig(e),this._timeout=null,this._setListeners()}var n=t.prototype;return n.show=function(){var t=this,n=e.Event("show.bs.toast");if(e(this._element).trigger(n),!n.isDefaultPrevented()){this._config.animation&&this._element.classList.add("fade");var i=function(){t._element.classList.remove("showing"),t._element.classList.add("show"),e(t._element).trigger("shown.bs.toast"),t._config.autohide&&(t._timeout=setTimeout((function(){t.hide()}),t._config.delay))};if(this._element.classList.remove("hide"),l.reflow(this._element),this._element.classList.add("showing"),this._config.animation){var o=l.getTransitionDurationFromElement(this._element);e(this._element).one(l.TRANSITION_END,i).emulateTransitionEnd(o)}else i()}},n.hide=function(){if(this._element.classList.contains("show")){var t=e.Event("hide.bs.toast");e(this._element).trigger(t),t.isDefaultPrevented()||this._close()}},n.dispose=function(){clearTimeout(this._timeout),this._timeout=null,this._element.classList.contains("show")&&this._element.classList.remove("show"),e(this._element).off("click.dismiss.bs.toast"),e.removeData(this._element,"bs.toast"),this._element=null,this._config=null},n._getConfig=function(t){return t=s(s(s({},ve),e(this._element).data()),"object"==typeof t&&t?t:{}),l.typeCheckConfig("toast",t,this.constructor.DefaultType),t},n._setListeners=function(){var t=this;e(this._element).on("click.dismiss.bs.toast",'[data-dismiss="toast"]',(function(){return t.hide()}))},n._close=function(){var t=this,n=function(){t._element.classList.add("hide"),e(t._element).trigger("hidden.bs.toast")};if(this._element.classList.remove("show"),this._config.animation){var i=l.getTransitionDurationFromElement(this._element);e(this._element).one(l.TRANSITION_END,n).emulateTransitionEnd(i)}else n()},t._jQueryInterface=function(n){return this.each((function(){var i=e(this),o=i.data("bs.toast");if(o||(o=new t(this,"object"==typeof n&&n),i.data("bs.toast",o)),"string"==typeof n){if("undefined"==typeof o[n])throw new TypeError('No method named "'+n+'"');o[n](this)}}))},i(t,null,[{key:"VERSION",get:function(){return"4.5.0"}},{key:"DefaultType",get:function(){return ge}},{key:"Default",get:function(){return ve}}]),t}();e.fn.toast=_e._jQueryInterface,e.fn.toast.Constructor=_e,e.fn.toast.noConflict=function(){return e.fn.toast=me,_e._jQueryInterface},t.Alert=h,t.Button=d,t.Carousel=y,t.Collapse=S,t.Dropdown=Ft,t.Modal=qt,t.Popover=ae,t.Scrollspy=fe,t.Tab=pe,t.Toast=_e,t.Tooltip=te,t.Util=l,Object.defineProperty(t,"__esModule",{value:!0})})); +//# sourceMappingURL=bootstrap.bundle.min.js.map \ No newline at end of file diff --git a/vex8/patch/cdn/bootstrap.4.5.0.min.css b/vex8/patch/cdn/bootstrap.4.5.0.min.css new file mode 100644 index 000000000..734ecb141 --- /dev/null +++ b/vex8/patch/cdn/bootstrap.4.5.0.min.css @@ -0,0 +1,12 @@ +/*! + * Bootswatch v4.5.0 + * Homepage: https://bootswatch.com + * Copyright 2012-2020 Thomas Park + * Licensed under MIT + * Based on Bootstrap +*//*! + * Bootstrap v4.5.0 (https://getbootstrap.com/) + * Copyright 2011-2020 The Bootstrap Authors + * Copyright 2011-2020 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + */@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700&display=swap");:root{--blue: #2780E3;--indigo: #6610f2;--purple: #613d7c;--pink: #e83e8c;--red: #FF0039;--orange: #f0ad4e;--yellow: #FF7518;--green: #3FB618;--teal: #20c997;--cyan: #9954BB;--white: #fff;--gray: #868e96;--gray-dark: #373a3c;--primary: #2780E3;--secondary: #373a3c;--success: #3FB618;--info: #9954BB;--warning: #FF7518;--danger: #FF0039;--light: #f8f9fa;--dark: #373a3c;--breakpoint-xs: 0;--breakpoint-sm: 576px;--breakpoint-md: 768px;--breakpoint-lg: 992px;--breakpoint-xl: 1200px;--font-family-sans-serif: "Segoe UI", "Source Sans Pro", Calibri, Candara, Arial, sans-serif;--font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace}*,*::before,*::after{-webkit-box-sizing:border-box;box-sizing:border-box}html{font-family:sans-serif;line-height:1.15;-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}article,aside,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}body{margin:0;font-family:"Segoe UI", "Source Sans Pro", Calibri, Candara, Arial, sans-serif;font-size:0.9375rem;font-weight:400;line-height:1.5;color:#373a3c;text-align:left;background-color:#fff}[tabindex="-1"]:focus:not(:focus-visible){outline:0 !important}hr{-webkit-box-sizing:content-box;box-sizing:content-box;height:0;overflow:visible}h1,h2,h3,h4,h5,h6{margin-top:0;margin-bottom:0.5rem}p{margin-top:0;margin-bottom:1rem}abbr[title],abbr[data-original-title]{text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;border-bottom:0;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul,dl{margin-top:0;margin-bottom:1rem}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:#2780E3;text-decoration:none;background-color:transparent}a:hover{color:#165ba8;text-decoration:underline}a:not([href]){color:inherit;text-decoration:none}a:not([href]):hover{color:inherit;text-decoration:none}pre,code,kbd,samp{font-family:SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;font-size:1em}pre{margin-top:0;margin-bottom:1rem;overflow:auto;-ms-overflow-style:scrollbar}figure{margin:0 0 1rem}img{vertical-align:middle;border-style:none}svg{overflow:hidden;vertical-align:middle}table{border-collapse:collapse}caption{padding-top:0.75rem;padding-bottom:0.75rem;color:#868e96;text-align:left;caption-side:bottom}th{text-align:inherit}label{display:inline-block;margin-bottom:0.5rem}button{border-radius:0}button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}input,button,select,optgroup,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,input{overflow:visible}button,select{text-transform:none}[role="button"]{cursor:pointer}select{word-wrap:normal}button,[type="button"],[type="reset"],[type="submit"]{-webkit-appearance:button}button:not(:disabled),[type="button"]:not(:disabled),[type="reset"]:not(:disabled),[type="submit"]:not(:disabled){cursor:pointer}button::-moz-focus-inner,[type="button"]::-moz-focus-inner,[type="reset"]::-moz-focus-inner,[type="submit"]::-moz-focus-inner{padding:0;border-style:none}input[type="radio"],input[type="checkbox"]{-webkit-box-sizing:border-box;box-sizing:border-box;padding:0}textarea{overflow:auto;resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;max-width:100%;padding:0;margin-bottom:.5rem;font-size:1.5rem;line-height:inherit;color:inherit;white-space:normal}progress{vertical-align:baseline}[type="number"]::-webkit-inner-spin-button,[type="number"]::-webkit-outer-spin-button{height:auto}[type="search"]{outline-offset:-2px;-webkit-appearance:none}[type="search"]::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}output{display:inline-block}summary{display:list-item;cursor:pointer}template{display:none}[hidden]{display:none !important}h1,h2,h3,h4,h5,h6,.h1,.h2,.h3,.h4,.h5,.h6{margin-bottom:0.5rem;font-weight:300;line-height:1.2}h1,.h1{font-size:2.34375rem}h2,.h2{font-size:1.875rem}h3,.h3{font-size:1.640625rem}h4,.h4{font-size:1.40625rem}h5,.h5{font-size:1.171875rem}h6,.h6{font-size:0.9375rem}.lead{font-size:1.171875rem;font-weight:300}.display-1{font-size:6rem;font-weight:300;line-height:1.2}.display-2{font-size:5.5rem;font-weight:300;line-height:1.2}.display-3{font-size:4.5rem;font-weight:300;line-height:1.2}.display-4{font-size:3.5rem;font-weight:300;line-height:1.2}hr{margin-top:1rem;margin-bottom:1rem;border:0;border-top:1px solid rgba(0,0,0,0.1)}small,.small{font-size:80%;font-weight:400}mark,.mark{padding:0.2em;background-color:#fcf8e3}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:0.5rem}.initialism{font-size:90%;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.171875rem}.blockquote-footer{display:block;font-size:80%;color:#868e96}.blockquote-footer::before{content:"\2014\00A0"}.img-fluid{max-width:100%;height:auto}.img-thumbnail{padding:0.25rem;background-color:#fff;border:1px solid #dee2e6;max-width:100%;height:auto}.figure{display:inline-block}.figure-img{margin-bottom:0.5rem;line-height:1}.figure-caption{font-size:90%;color:#868e96}code{font-size:87.5%;color:#e83e8c;word-wrap:break-word}a>code{color:inherit}kbd{padding:0.2rem 0.4rem;font-size:87.5%;color:#fff;background-color:#212529}kbd kbd{padding:0;font-size:100%;font-weight:700}pre{display:block;font-size:87.5%;color:#212529}pre code{font-size:inherit;color:inherit;word-break:normal}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width: 576px){.container{max-width:540px}}@media (min-width: 768px){.container{max-width:720px}}@media (min-width: 992px){.container{max-width:960px}}@media (min-width: 1200px){.container{max-width:1140px}}.container-fluid,.container-sm,.container-md,.container-lg,.container-xl{width:100%;padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width: 576px){.container,.container-sm{max-width:540px}}@media (min-width: 768px){.container,.container-sm,.container-md{max-width:720px}}@media (min-width: 992px){.container,.container-sm,.container-md,.container-lg{max-width:960px}}@media (min-width: 1200px){.container,.container-sm,.container-md,.container-lg,.container-xl{max-width:1140px}}.row{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-15px;margin-left:-15px}.no-gutters{margin-right:0;margin-left:0}.no-gutters>.col,.no-gutters>[class*="col-"]{padding-right:0;padding-left:0}.col-1,.col-2,.col-3,.col-4,.col-5,.col-6,.col-7,.col-8,.col-9,.col-10,.col-11,.col-12,.col,.col-auto,.col-sm-1,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm,.col-sm-auto,.col-md-1,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-md-10,.col-md-11,.col-md-12,.col-md,.col-md-auto,.col-lg-1,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg,.col-lg-auto,.col-xl-1,.col-xl-2,.col-xl-3,.col-xl-4,.col-xl-5,.col-xl-6,.col-xl-7,.col-xl-8,.col-xl-9,.col-xl-10,.col-xl-11,.col-xl-12,.col-xl,.col-xl-auto{position:relative;width:100%;padding-right:15px;padding-left:15px}.col{-ms-flex-preferred-size:0;flex-basis:0;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;min-width:0;max-width:100%}.row-cols-1>*{-webkit-box-flex:0;-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.row-cols-2>*{-webkit-box-flex:0;-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.row-cols-3>*{-webkit-box-flex:0;-ms-flex:0 0 33.3333333333%;flex:0 0 33.3333333333%;max-width:33.3333333333%}.row-cols-4>*{-webkit-box-flex:0;-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.row-cols-5>*{-webkit-box-flex:0;-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}.row-cols-6>*{-webkit-box-flex:0;-ms-flex:0 0 16.6666666667%;flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-auto{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-1{-webkit-box-flex:0;-ms-flex:0 0 8.3333333333%;flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-2{-webkit-box-flex:0;-ms-flex:0 0 16.6666666667%;flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-3{-webkit-box-flex:0;-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-4{-webkit-box-flex:0;-ms-flex:0 0 33.3333333333%;flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-5{-webkit-box-flex:0;-ms-flex:0 0 41.6666666667%;flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-6{-webkit-box-flex:0;-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-7{-webkit-box-flex:0;-ms-flex:0 0 58.3333333333%;flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-8{-webkit-box-flex:0;-ms-flex:0 0 66.6666666667%;flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-9{-webkit-box-flex:0;-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-10{-webkit-box-flex:0;-ms-flex:0 0 83.3333333333%;flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-11{-webkit-box-flex:0;-ms-flex:0 0 91.6666666667%;flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-12{-webkit-box-flex:0;-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-first{-webkit-box-ordinal-group:0;-ms-flex-order:-1;order:-1}.order-last{-webkit-box-ordinal-group:14;-ms-flex-order:13;order:13}.order-0{-webkit-box-ordinal-group:1;-ms-flex-order:0;order:0}.order-1{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}.order-2{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2}.order-3{-webkit-box-ordinal-group:4;-ms-flex-order:3;order:3}.order-4{-webkit-box-ordinal-group:5;-ms-flex-order:4;order:4}.order-5{-webkit-box-ordinal-group:6;-ms-flex-order:5;order:5}.order-6{-webkit-box-ordinal-group:7;-ms-flex-order:6;order:6}.order-7{-webkit-box-ordinal-group:8;-ms-flex-order:7;order:7}.order-8{-webkit-box-ordinal-group:9;-ms-flex-order:8;order:8}.order-9{-webkit-box-ordinal-group:10;-ms-flex-order:9;order:9}.order-10{-webkit-box-ordinal-group:11;-ms-flex-order:10;order:10}.order-11{-webkit-box-ordinal-group:12;-ms-flex-order:11;order:11}.order-12{-webkit-box-ordinal-group:13;-ms-flex-order:12;order:12}.offset-1{margin-left:8.3333333333%}.offset-2{margin-left:16.6666666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.3333333333%}.offset-5{margin-left:41.6666666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.3333333333%}.offset-8{margin-left:66.6666666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.3333333333%}.offset-11{margin-left:91.6666666667%}@media (min-width: 576px){.col-sm{-ms-flex-preferred-size:0;flex-basis:0;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;min-width:0;max-width:100%}.row-cols-sm-1>*{-webkit-box-flex:0;-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.row-cols-sm-2>*{-webkit-box-flex:0;-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.row-cols-sm-3>*{-webkit-box-flex:0;-ms-flex:0 0 33.3333333333%;flex:0 0 33.3333333333%;max-width:33.3333333333%}.row-cols-sm-4>*{-webkit-box-flex:0;-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.row-cols-sm-5>*{-webkit-box-flex:0;-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}.row-cols-sm-6>*{-webkit-box-flex:0;-ms-flex:0 0 16.6666666667%;flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-sm-auto{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-sm-1{-webkit-box-flex:0;-ms-flex:0 0 8.3333333333%;flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-sm-2{-webkit-box-flex:0;-ms-flex:0 0 16.6666666667%;flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-sm-3{-webkit-box-flex:0;-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-sm-4{-webkit-box-flex:0;-ms-flex:0 0 33.3333333333%;flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-sm-5{-webkit-box-flex:0;-ms-flex:0 0 41.6666666667%;flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-sm-6{-webkit-box-flex:0;-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-sm-7{-webkit-box-flex:0;-ms-flex:0 0 58.3333333333%;flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-sm-8{-webkit-box-flex:0;-ms-flex:0 0 66.6666666667%;flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-sm-9{-webkit-box-flex:0;-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-sm-10{-webkit-box-flex:0;-ms-flex:0 0 83.3333333333%;flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-sm-11{-webkit-box-flex:0;-ms-flex:0 0 91.6666666667%;flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-sm-12{-webkit-box-flex:0;-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-sm-first{-webkit-box-ordinal-group:0;-ms-flex-order:-1;order:-1}.order-sm-last{-webkit-box-ordinal-group:14;-ms-flex-order:13;order:13}.order-sm-0{-webkit-box-ordinal-group:1;-ms-flex-order:0;order:0}.order-sm-1{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}.order-sm-2{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2}.order-sm-3{-webkit-box-ordinal-group:4;-ms-flex-order:3;order:3}.order-sm-4{-webkit-box-ordinal-group:5;-ms-flex-order:4;order:4}.order-sm-5{-webkit-box-ordinal-group:6;-ms-flex-order:5;order:5}.order-sm-6{-webkit-box-ordinal-group:7;-ms-flex-order:6;order:6}.order-sm-7{-webkit-box-ordinal-group:8;-ms-flex-order:7;order:7}.order-sm-8{-webkit-box-ordinal-group:9;-ms-flex-order:8;order:8}.order-sm-9{-webkit-box-ordinal-group:10;-ms-flex-order:9;order:9}.order-sm-10{-webkit-box-ordinal-group:11;-ms-flex-order:10;order:10}.order-sm-11{-webkit-box-ordinal-group:12;-ms-flex-order:11;order:11}.order-sm-12{-webkit-box-ordinal-group:13;-ms-flex-order:12;order:12}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.3333333333%}.offset-sm-2{margin-left:16.6666666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.3333333333%}.offset-sm-5{margin-left:41.6666666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.3333333333%}.offset-sm-8{margin-left:66.6666666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.3333333333%}.offset-sm-11{margin-left:91.6666666667%}}@media (min-width: 768px){.col-md{-ms-flex-preferred-size:0;flex-basis:0;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;min-width:0;max-width:100%}.row-cols-md-1>*{-webkit-box-flex:0;-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.row-cols-md-2>*{-webkit-box-flex:0;-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.row-cols-md-3>*{-webkit-box-flex:0;-ms-flex:0 0 33.3333333333%;flex:0 0 33.3333333333%;max-width:33.3333333333%}.row-cols-md-4>*{-webkit-box-flex:0;-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.row-cols-md-5>*{-webkit-box-flex:0;-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}.row-cols-md-6>*{-webkit-box-flex:0;-ms-flex:0 0 16.6666666667%;flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-md-auto{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-md-1{-webkit-box-flex:0;-ms-flex:0 0 8.3333333333%;flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-md-2{-webkit-box-flex:0;-ms-flex:0 0 16.6666666667%;flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-md-3{-webkit-box-flex:0;-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-md-4{-webkit-box-flex:0;-ms-flex:0 0 33.3333333333%;flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-md-5{-webkit-box-flex:0;-ms-flex:0 0 41.6666666667%;flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-md-6{-webkit-box-flex:0;-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-md-7{-webkit-box-flex:0;-ms-flex:0 0 58.3333333333%;flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-md-8{-webkit-box-flex:0;-ms-flex:0 0 66.6666666667%;flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-md-9{-webkit-box-flex:0;-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-md-10{-webkit-box-flex:0;-ms-flex:0 0 83.3333333333%;flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-md-11{-webkit-box-flex:0;-ms-flex:0 0 91.6666666667%;flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-md-12{-webkit-box-flex:0;-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-md-first{-webkit-box-ordinal-group:0;-ms-flex-order:-1;order:-1}.order-md-last{-webkit-box-ordinal-group:14;-ms-flex-order:13;order:13}.order-md-0{-webkit-box-ordinal-group:1;-ms-flex-order:0;order:0}.order-md-1{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}.order-md-2{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2}.order-md-3{-webkit-box-ordinal-group:4;-ms-flex-order:3;order:3}.order-md-4{-webkit-box-ordinal-group:5;-ms-flex-order:4;order:4}.order-md-5{-webkit-box-ordinal-group:6;-ms-flex-order:5;order:5}.order-md-6{-webkit-box-ordinal-group:7;-ms-flex-order:6;order:6}.order-md-7{-webkit-box-ordinal-group:8;-ms-flex-order:7;order:7}.order-md-8{-webkit-box-ordinal-group:9;-ms-flex-order:8;order:8}.order-md-9{-webkit-box-ordinal-group:10;-ms-flex-order:9;order:9}.order-md-10{-webkit-box-ordinal-group:11;-ms-flex-order:10;order:10}.order-md-11{-webkit-box-ordinal-group:12;-ms-flex-order:11;order:11}.order-md-12{-webkit-box-ordinal-group:13;-ms-flex-order:12;order:12}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.3333333333%}.offset-md-2{margin-left:16.6666666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.3333333333%}.offset-md-5{margin-left:41.6666666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.3333333333%}.offset-md-8{margin-left:66.6666666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.3333333333%}.offset-md-11{margin-left:91.6666666667%}}@media (min-width: 992px){.col-lg{-ms-flex-preferred-size:0;flex-basis:0;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;min-width:0;max-width:100%}.row-cols-lg-1>*{-webkit-box-flex:0;-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.row-cols-lg-2>*{-webkit-box-flex:0;-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.row-cols-lg-3>*{-webkit-box-flex:0;-ms-flex:0 0 33.3333333333%;flex:0 0 33.3333333333%;max-width:33.3333333333%}.row-cols-lg-4>*{-webkit-box-flex:0;-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.row-cols-lg-5>*{-webkit-box-flex:0;-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}.row-cols-lg-6>*{-webkit-box-flex:0;-ms-flex:0 0 16.6666666667%;flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-lg-auto{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-lg-1{-webkit-box-flex:0;-ms-flex:0 0 8.3333333333%;flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-lg-2{-webkit-box-flex:0;-ms-flex:0 0 16.6666666667%;flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-lg-3{-webkit-box-flex:0;-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-lg-4{-webkit-box-flex:0;-ms-flex:0 0 33.3333333333%;flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-lg-5{-webkit-box-flex:0;-ms-flex:0 0 41.6666666667%;flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-lg-6{-webkit-box-flex:0;-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-lg-7{-webkit-box-flex:0;-ms-flex:0 0 58.3333333333%;flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-lg-8{-webkit-box-flex:0;-ms-flex:0 0 66.6666666667%;flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-lg-9{-webkit-box-flex:0;-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-lg-10{-webkit-box-flex:0;-ms-flex:0 0 83.3333333333%;flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-lg-11{-webkit-box-flex:0;-ms-flex:0 0 91.6666666667%;flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-lg-12{-webkit-box-flex:0;-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-lg-first{-webkit-box-ordinal-group:0;-ms-flex-order:-1;order:-1}.order-lg-last{-webkit-box-ordinal-group:14;-ms-flex-order:13;order:13}.order-lg-0{-webkit-box-ordinal-group:1;-ms-flex-order:0;order:0}.order-lg-1{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}.order-lg-2{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2}.order-lg-3{-webkit-box-ordinal-group:4;-ms-flex-order:3;order:3}.order-lg-4{-webkit-box-ordinal-group:5;-ms-flex-order:4;order:4}.order-lg-5{-webkit-box-ordinal-group:6;-ms-flex-order:5;order:5}.order-lg-6{-webkit-box-ordinal-group:7;-ms-flex-order:6;order:6}.order-lg-7{-webkit-box-ordinal-group:8;-ms-flex-order:7;order:7}.order-lg-8{-webkit-box-ordinal-group:9;-ms-flex-order:8;order:8}.order-lg-9{-webkit-box-ordinal-group:10;-ms-flex-order:9;order:9}.order-lg-10{-webkit-box-ordinal-group:11;-ms-flex-order:10;order:10}.order-lg-11{-webkit-box-ordinal-group:12;-ms-flex-order:11;order:11}.order-lg-12{-webkit-box-ordinal-group:13;-ms-flex-order:12;order:12}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.3333333333%}.offset-lg-2{margin-left:16.6666666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.3333333333%}.offset-lg-5{margin-left:41.6666666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.3333333333%}.offset-lg-8{margin-left:66.6666666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.3333333333%}.offset-lg-11{margin-left:91.6666666667%}}@media (min-width: 1200px){.col-xl{-ms-flex-preferred-size:0;flex-basis:0;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;min-width:0;max-width:100%}.row-cols-xl-1>*{-webkit-box-flex:0;-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.row-cols-xl-2>*{-webkit-box-flex:0;-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.row-cols-xl-3>*{-webkit-box-flex:0;-ms-flex:0 0 33.3333333333%;flex:0 0 33.3333333333%;max-width:33.3333333333%}.row-cols-xl-4>*{-webkit-box-flex:0;-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.row-cols-xl-5>*{-webkit-box-flex:0;-ms-flex:0 0 20%;flex:0 0 20%;max-width:20%}.row-cols-xl-6>*{-webkit-box-flex:0;-ms-flex:0 0 16.6666666667%;flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-xl-auto{-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;width:auto;max-width:100%}.col-xl-1{-webkit-box-flex:0;-ms-flex:0 0 8.3333333333%;flex:0 0 8.3333333333%;max-width:8.3333333333%}.col-xl-2{-webkit-box-flex:0;-ms-flex:0 0 16.6666666667%;flex:0 0 16.6666666667%;max-width:16.6666666667%}.col-xl-3{-webkit-box-flex:0;-ms-flex:0 0 25%;flex:0 0 25%;max-width:25%}.col-xl-4{-webkit-box-flex:0;-ms-flex:0 0 33.3333333333%;flex:0 0 33.3333333333%;max-width:33.3333333333%}.col-xl-5{-webkit-box-flex:0;-ms-flex:0 0 41.6666666667%;flex:0 0 41.6666666667%;max-width:41.6666666667%}.col-xl-6{-webkit-box-flex:0;-ms-flex:0 0 50%;flex:0 0 50%;max-width:50%}.col-xl-7{-webkit-box-flex:0;-ms-flex:0 0 58.3333333333%;flex:0 0 58.3333333333%;max-width:58.3333333333%}.col-xl-8{-webkit-box-flex:0;-ms-flex:0 0 66.6666666667%;flex:0 0 66.6666666667%;max-width:66.6666666667%}.col-xl-9{-webkit-box-flex:0;-ms-flex:0 0 75%;flex:0 0 75%;max-width:75%}.col-xl-10{-webkit-box-flex:0;-ms-flex:0 0 83.3333333333%;flex:0 0 83.3333333333%;max-width:83.3333333333%}.col-xl-11{-webkit-box-flex:0;-ms-flex:0 0 91.6666666667%;flex:0 0 91.6666666667%;max-width:91.6666666667%}.col-xl-12{-webkit-box-flex:0;-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%}.order-xl-first{-webkit-box-ordinal-group:0;-ms-flex-order:-1;order:-1}.order-xl-last{-webkit-box-ordinal-group:14;-ms-flex-order:13;order:13}.order-xl-0{-webkit-box-ordinal-group:1;-ms-flex-order:0;order:0}.order-xl-1{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}.order-xl-2{-webkit-box-ordinal-group:3;-ms-flex-order:2;order:2}.order-xl-3{-webkit-box-ordinal-group:4;-ms-flex-order:3;order:3}.order-xl-4{-webkit-box-ordinal-group:5;-ms-flex-order:4;order:4}.order-xl-5{-webkit-box-ordinal-group:6;-ms-flex-order:5;order:5}.order-xl-6{-webkit-box-ordinal-group:7;-ms-flex-order:6;order:6}.order-xl-7{-webkit-box-ordinal-group:8;-ms-flex-order:7;order:7}.order-xl-8{-webkit-box-ordinal-group:9;-ms-flex-order:8;order:8}.order-xl-9{-webkit-box-ordinal-group:10;-ms-flex-order:9;order:9}.order-xl-10{-webkit-box-ordinal-group:11;-ms-flex-order:10;order:10}.order-xl-11{-webkit-box-ordinal-group:12;-ms-flex-order:11;order:11}.order-xl-12{-webkit-box-ordinal-group:13;-ms-flex-order:12;order:12}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.3333333333%}.offset-xl-2{margin-left:16.6666666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.3333333333%}.offset-xl-5{margin-left:41.6666666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.3333333333%}.offset-xl-8{margin-left:66.6666666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.3333333333%}.offset-xl-11{margin-left:91.6666666667%}}.table{width:100%;margin-bottom:1rem;color:#373a3c}.table th,.table td{padding:0.75rem;vertical-align:top;border-top:1px solid #dee2e6}.table thead th{vertical-align:bottom;border-bottom:2px solid #dee2e6}.table tbody+tbody{border-top:2px solid #dee2e6}.table-sm th,.table-sm td{padding:0.3rem}.table-bordered{border:1px solid #dee2e6}.table-bordered th,.table-bordered td{border:1px solid #dee2e6}.table-bordered thead th,.table-bordered thead td{border-bottom-width:2px}.table-borderless th,.table-borderless td,.table-borderless thead th,.table-borderless tbody+tbody{border:0}.table-striped tbody tr:nth-of-type(odd){background-color:rgba(0,0,0,0.05)}.table-hover tbody tr:hover{color:#373a3c;background-color:rgba(0,0,0,0.075)}.table-primary,.table-primary>th,.table-primary>td{background-color:#c3dbf7}.table-primary th,.table-primary td,.table-primary thead th,.table-primary tbody+tbody{border-color:#8fbdf0}.table-hover .table-primary:hover{background-color:#adcef4}.table-hover .table-primary:hover>td,.table-hover .table-primary:hover>th{background-color:#adcef4}.table-secondary,.table-secondary>th,.table-secondary>td{background-color:#c7c8c8}.table-secondary th,.table-secondary td,.table-secondary thead th,.table-secondary tbody+tbody{border-color:#97999a}.table-hover .table-secondary:hover{background-color:#babbbb}.table-hover .table-secondary:hover>td,.table-hover .table-secondary:hover>th{background-color:#babbbb}.table-success,.table-success>th,.table-success>td{background-color:#c9ebbe}.table-success th,.table-success td,.table-success thead th,.table-success tbody+tbody{border-color:#9bd987}.table-hover .table-success:hover{background-color:#b9e5ab}.table-hover .table-success:hover>td,.table-hover .table-success:hover>th{background-color:#b9e5ab}.table-info,.table-info>th,.table-info>td{background-color:#e2cfec}.table-info th,.table-info td,.table-info thead th,.table-info tbody+tbody{border-color:#caa6dc}.table-hover .table-info:hover{background-color:#d7bde5}.table-hover .table-info:hover>td,.table-hover .table-info:hover>th{background-color:#d7bde5}.table-warning,.table-warning>th,.table-warning>td{background-color:#ffd8be}.table-warning th,.table-warning td,.table-warning thead th,.table-warning tbody+tbody{border-color:#ffb787}.table-hover .table-warning:hover{background-color:#ffc9a5}.table-hover .table-warning:hover>td,.table-hover .table-warning:hover>th{background-color:#ffc9a5}.table-danger,.table-danger>th,.table-danger>td{background-color:#ffb8c8}.table-danger th,.table-danger td,.table-danger thead th,.table-danger tbody+tbody{border-color:#ff7a98}.table-hover .table-danger:hover{background-color:#ff9fb4}.table-hover .table-danger:hover>td,.table-hover .table-danger:hover>th{background-color:#ff9fb4}.table-light,.table-light>th,.table-light>td{background-color:#fdfdfe}.table-light th,.table-light td,.table-light thead th,.table-light tbody+tbody{border-color:#fbfcfc}.table-hover .table-light:hover{background-color:#ececf6}.table-hover .table-light:hover>td,.table-hover .table-light:hover>th{background-color:#ececf6}.table-dark,.table-dark>th,.table-dark>td{background-color:#c7c8c8}.table-dark th,.table-dark td,.table-dark thead th,.table-dark tbody+tbody{border-color:#97999a}.table-hover .table-dark:hover{background-color:#babbbb}.table-hover .table-dark:hover>td,.table-hover .table-dark:hover>th{background-color:#babbbb}.table-active,.table-active>th,.table-active>td{background-color:rgba(0,0,0,0.075)}.table-hover .table-active:hover{background-color:rgba(0,0,0,0.075)}.table-hover .table-active:hover>td,.table-hover .table-active:hover>th{background-color:rgba(0,0,0,0.075)}.table .thead-dark th{color:#fff;background-color:#373a3c;border-color:#494d50}.table .thead-light th{color:#495057;background-color:#e9ecef;border-color:#dee2e6}.table-dark{color:#fff;background-color:#373a3c}.table-dark th,.table-dark td,.table-dark thead th{border-color:#494d50}.table-dark.table-bordered{border:0}.table-dark.table-striped tbody tr:nth-of-type(odd){background-color:rgba(255,255,255,0.05)}.table-dark.table-hover tbody tr:hover{color:#fff;background-color:rgba(255,255,255,0.075)}@media (max-width: 575.98px){.table-responsive-sm{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-sm>.table-bordered{border:0}}@media (max-width: 767.98px){.table-responsive-md{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-md>.table-bordered{border:0}}@media (max-width: 991.98px){.table-responsive-lg{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-lg>.table-bordered{border:0}}@media (max-width: 1199.98px){.table-responsive-xl{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive-xl>.table-bordered{border:0}}.table-responsive{display:block;width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.table-responsive>.table-bordered{border:0}.form-control{display:block;width:100%;height:calc(1.5em + 0.75rem + 2px);padding:0.375rem 0.75rem;font-size:0.9375rem;font-weight:400;line-height:1.5;color:#495057;background-color:#fff;background-clip:padding-box;border:1px solid #ced4da;border-radius:0;-webkit-transition:border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;transition:border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;transition:border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;transition:border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-control{-webkit-transition:none;transition:none}}.form-control::-ms-expand{background-color:transparent;border:0}.form-control:-moz-focusring{color:transparent;text-shadow:0 0 0 #495057}.form-control:focus{color:#495057;background-color:#fff;border-color:#98c2f2;outline:0;-webkit-box-shadow:0 0 0 0.2rem rgba(39,128,227,0.25);box-shadow:0 0 0 0.2rem rgba(39,128,227,0.25)}.form-control::-webkit-input-placeholder{color:#868e96;opacity:1}.form-control::-ms-input-placeholder{color:#868e96;opacity:1}.form-control::placeholder{color:#868e96;opacity:1}.form-control:disabled,.form-control[readonly]{background-color:#e9ecef;opacity:1}input[type="date"].form-control,input[type="time"].form-control,input[type="datetime-local"].form-control,input[type="month"].form-control{-webkit-appearance:none;-moz-appearance:none;appearance:none}select.form-control:focus::-ms-value{color:#495057;background-color:#fff}.form-control-file,.form-control-range{display:block;width:100%}.col-form-label{padding-top:calc(0.375rem + 1px);padding-bottom:calc(0.375rem + 1px);margin-bottom:0;font-size:inherit;line-height:1.5}.col-form-label-lg{padding-top:calc(0.5rem + 1px);padding-bottom:calc(0.5rem + 1px);font-size:1.171875rem;line-height:1.5}.col-form-label-sm{padding-top:calc(0.25rem + 1px);padding-bottom:calc(0.25rem + 1px);font-size:0.8203125rem;line-height:1.5}.form-control-plaintext{display:block;width:100%;padding:0.375rem 0;margin-bottom:0;font-size:0.9375rem;line-height:1.5;color:#373a3c;background-color:transparent;border:solid transparent;border-width:1px 0}.form-control-plaintext.form-control-sm,.form-control-plaintext.form-control-lg{padding-right:0;padding-left:0}.form-control-sm{height:calc(1.5em + 0.5rem + 2px);padding:0.25rem 0.5rem;font-size:0.8203125rem;line-height:1.5}.form-control-lg{height:calc(1.5em + 1rem + 2px);padding:0.5rem 1rem;font-size:1.171875rem;line-height:1.5}select.form-control[size],select.form-control[multiple]{height:auto}textarea.form-control{height:auto}.form-group{margin-bottom:1rem}.form-text{display:block;margin-top:0.25rem}.form-row{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:-5px;margin-left:-5px}.form-row>.col,.form-row>[class*="col-"]{padding-right:5px;padding-left:5px}.form-check{position:relative;display:block;padding-left:1.25rem}.form-check-input{position:absolute;margin-top:0.3rem;margin-left:-1.25rem}.form-check-input[disabled] ~ .form-check-label,.form-check-input:disabled ~ .form-check-label{color:#868e96}.form-check-label{margin-bottom:0}.form-check-inline{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding-left:0;margin-right:0.75rem}.form-check-inline .form-check-input{position:static;margin-top:0;margin-right:0.3125rem;margin-left:0}.valid-feedback{display:none;width:100%;margin-top:0.25rem;font-size:80%;color:#3FB618}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:0.25rem 0.5rem;margin-top:.1rem;font-size:0.8203125rem;line-height:1.5;color:#fff;background-color:rgba(63,182,24,0.9)}.was-validated :valid ~ .valid-feedback,.was-validated :valid ~ .valid-tooltip,.is-valid ~ .valid-feedback,.is-valid ~ .valid-tooltip{display:block}.was-validated .form-control:valid,.form-control.is-valid{border-color:#3FB618;padding-right:calc(1.5em + 0.75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%233FB618' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(0.375em + 0.1875rem) center;background-size:calc(0.75em + 0.375rem) calc(0.75em + 0.375rem)}.was-validated .form-control:valid:focus,.form-control.is-valid:focus{border-color:#3FB618;-webkit-box-shadow:0 0 0 0.2rem rgba(63,182,24,0.25);box-shadow:0 0 0 0.2rem rgba(63,182,24,0.25)}.was-validated textarea.form-control:valid,textarea.form-control.is-valid{padding-right:calc(1.5em + 0.75rem);background-position:top calc(0.375em + 0.1875rem) right calc(0.375em + 0.1875rem)}.was-validated .custom-select:valid,.custom-select.is-valid{border-color:#3FB618;padding-right:calc(0.75em + 2.3125rem);background:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23373a3c' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 0.75rem center/8px 10px,url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%233FB618' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") #fff no-repeat center right 1.75rem/calc(0.75em + 0.375rem) calc(0.75em + 0.375rem)}.was-validated .custom-select:valid:focus,.custom-select.is-valid:focus{border-color:#3FB618;-webkit-box-shadow:0 0 0 0.2rem rgba(63,182,24,0.25);box-shadow:0 0 0 0.2rem rgba(63,182,24,0.25)}.was-validated .form-check-input:valid ~ .form-check-label,.form-check-input.is-valid ~ .form-check-label{color:#3FB618}.was-validated .form-check-input:valid ~ .valid-feedback,.was-validated .form-check-input:valid ~ .valid-tooltip,.form-check-input.is-valid ~ .valid-feedback,.form-check-input.is-valid ~ .valid-tooltip{display:block}.was-validated .custom-control-input:valid ~ .custom-control-label,.custom-control-input.is-valid ~ .custom-control-label{color:#3FB618}.was-validated .custom-control-input:valid ~ .custom-control-label::before,.custom-control-input.is-valid ~ .custom-control-label::before{border-color:#3FB618}.was-validated .custom-control-input:valid:checked ~ .custom-control-label::before,.custom-control-input.is-valid:checked ~ .custom-control-label::before{border-color:#4fe21f;background-color:#4fe21f}.was-validated .custom-control-input:valid:focus ~ .custom-control-label::before,.custom-control-input.is-valid:focus ~ .custom-control-label::before{-webkit-box-shadow:0 0 0 0.2rem rgba(63,182,24,0.25);box-shadow:0 0 0 0.2rem rgba(63,182,24,0.25)}.was-validated .custom-control-input:valid:focus:not(:checked) ~ .custom-control-label::before,.custom-control-input.is-valid:focus:not(:checked) ~ .custom-control-label::before{border-color:#3FB618}.was-validated .custom-file-input:valid ~ .custom-file-label,.custom-file-input.is-valid ~ .custom-file-label{border-color:#3FB618}.was-validated .custom-file-input:valid:focus ~ .custom-file-label,.custom-file-input.is-valid:focus ~ .custom-file-label{border-color:#3FB618;-webkit-box-shadow:0 0 0 0.2rem rgba(63,182,24,0.25);box-shadow:0 0 0 0.2rem rgba(63,182,24,0.25)}.invalid-feedback{display:none;width:100%;margin-top:0.25rem;font-size:80%;color:#FF0039}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:0.25rem 0.5rem;margin-top:.1rem;font-size:0.8203125rem;line-height:1.5;color:#fff;background-color:rgba(255,0,57,0.9)}.was-validated :invalid ~ .invalid-feedback,.was-validated :invalid ~ .invalid-tooltip,.is-invalid ~ .invalid-feedback,.is-invalid ~ .invalid-tooltip{display:block}.was-validated .form-control:invalid,.form-control.is-invalid{border-color:#FF0039;padding-right:calc(1.5em + 0.75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23FF0039' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23FF0039' stroke='none'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(0.375em + 0.1875rem) center;background-size:calc(0.75em + 0.375rem) calc(0.75em + 0.375rem)}.was-validated .form-control:invalid:focus,.form-control.is-invalid:focus{border-color:#FF0039;-webkit-box-shadow:0 0 0 0.2rem rgba(255,0,57,0.25);box-shadow:0 0 0 0.2rem rgba(255,0,57,0.25)}.was-validated textarea.form-control:invalid,textarea.form-control.is-invalid{padding-right:calc(1.5em + 0.75rem);background-position:top calc(0.375em + 0.1875rem) right calc(0.375em + 0.1875rem)}.was-validated .custom-select:invalid,.custom-select.is-invalid{border-color:#FF0039;padding-right:calc(0.75em + 2.3125rem);background:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23373a3c' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 0.75rem center/8px 10px,url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23FF0039' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23FF0039' stroke='none'/%3e%3c/svg%3e") #fff no-repeat center right 1.75rem/calc(0.75em + 0.375rem) calc(0.75em + 0.375rem)}.was-validated .custom-select:invalid:focus,.custom-select.is-invalid:focus{border-color:#FF0039;-webkit-box-shadow:0 0 0 0.2rem rgba(255,0,57,0.25);box-shadow:0 0 0 0.2rem rgba(255,0,57,0.25)}.was-validated .form-check-input:invalid ~ .form-check-label,.form-check-input.is-invalid ~ .form-check-label{color:#FF0039}.was-validated .form-check-input:invalid ~ .invalid-feedback,.was-validated .form-check-input:invalid ~ .invalid-tooltip,.form-check-input.is-invalid ~ .invalid-feedback,.form-check-input.is-invalid ~ .invalid-tooltip{display:block}.was-validated .custom-control-input:invalid ~ .custom-control-label,.custom-control-input.is-invalid ~ .custom-control-label{color:#FF0039}.was-validated .custom-control-input:invalid ~ .custom-control-label::before,.custom-control-input.is-invalid ~ .custom-control-label::before{border-color:#FF0039}.was-validated .custom-control-input:invalid:checked ~ .custom-control-label::before,.custom-control-input.is-invalid:checked ~ .custom-control-label::before{border-color:#ff3361;background-color:#ff3361}.was-validated .custom-control-input:invalid:focus ~ .custom-control-label::before,.custom-control-input.is-invalid:focus ~ .custom-control-label::before{-webkit-box-shadow:0 0 0 0.2rem rgba(255,0,57,0.25);box-shadow:0 0 0 0.2rem rgba(255,0,57,0.25)}.was-validated .custom-control-input:invalid:focus:not(:checked) ~ .custom-control-label::before,.custom-control-input.is-invalid:focus:not(:checked) ~ .custom-control-label::before{border-color:#FF0039}.was-validated .custom-file-input:invalid ~ .custom-file-label,.custom-file-input.is-invalid ~ .custom-file-label{border-color:#FF0039}.was-validated .custom-file-input:invalid:focus ~ .custom-file-label,.custom-file-input.is-invalid:focus ~ .custom-file-label{border-color:#FF0039;-webkit-box-shadow:0 0 0 0.2rem rgba(255,0,57,0.25);box-shadow:0 0 0 0.2rem rgba(255,0,57,0.25)}.form-inline{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.form-inline .form-check{width:100%}@media (min-width: 576px){.form-inline label{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin-bottom:0}.form-inline .form-group{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-flex:0;-ms-flex:0 0 auto;flex:0 0 auto;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:0}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-plaintext{display:inline-block}.form-inline .input-group,.form-inline .custom-select{width:auto}.form-inline .form-check{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:auto;padding-left:0}.form-inline .form-check-input{position:relative;-ms-flex-negative:0;flex-shrink:0;margin-top:0;margin-right:0.25rem;margin-left:0}.form-inline .custom-control{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.form-inline .custom-control-label{margin-bottom:0}}.btn{display:inline-block;font-weight:400;color:#373a3c;text-align:center;vertical-align:middle;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-color:transparent;border:1px solid transparent;padding:0.375rem 0.75rem;font-size:0.9375rem;line-height:1.5;border-radius:0;-webkit-transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out}@media (prefers-reduced-motion: reduce){.btn{-webkit-transition:none;transition:none}}.btn:hover{color:#373a3c;text-decoration:none}.btn:focus,.btn.focus{outline:0;-webkit-box-shadow:0 0 0 0.2rem rgba(39,128,227,0.25);box-shadow:0 0 0 0.2rem rgba(39,128,227,0.25)}.btn.disabled,.btn:disabled{opacity:0.65}.btn:not(:disabled):not(.disabled){cursor:pointer}a.btn.disabled,fieldset:disabled a.btn{pointer-events:none}.btn-primary{color:#fff;background-color:#2780E3;border-color:#2780E3}.btn-primary:hover{color:#fff;background-color:#1a6dca;border-color:#1967be}.btn-primary:focus,.btn-primary.focus{color:#fff;background-color:#1a6dca;border-color:#1967be;-webkit-box-shadow:0 0 0 0.2rem rgba(71,147,231,0.5);box-shadow:0 0 0 0.2rem rgba(71,147,231,0.5)}.btn-primary.disabled,.btn-primary:disabled{color:#fff;background-color:#2780E3;border-color:#2780E3}.btn-primary:not(:disabled):not(.disabled):active,.btn-primary:not(:disabled):not(.disabled).active,.show>.btn-primary.dropdown-toggle{color:#fff;background-color:#1967be;border-color:#1761b3}.btn-primary:not(:disabled):not(.disabled):active:focus,.btn-primary:not(:disabled):not(.disabled).active:focus,.show>.btn-primary.dropdown-toggle:focus{-webkit-box-shadow:0 0 0 0.2rem rgba(71,147,231,0.5);box-shadow:0 0 0 0.2rem rgba(71,147,231,0.5)}.btn-secondary{color:#fff;background-color:#373a3c;border-color:#373a3c}.btn-secondary:hover{color:#fff;background-color:#252728;border-color:#1f2021}.btn-secondary:focus,.btn-secondary.focus{color:#fff;background-color:#252728;border-color:#1f2021;-webkit-box-shadow:0 0 0 0.2rem rgba(85,88,89,0.5);box-shadow:0 0 0 0.2rem rgba(85,88,89,0.5)}.btn-secondary.disabled,.btn-secondary:disabled{color:#fff;background-color:#373a3c;border-color:#373a3c}.btn-secondary:not(:disabled):not(.disabled):active,.btn-secondary:not(:disabled):not(.disabled).active,.show>.btn-secondary.dropdown-toggle{color:#fff;background-color:#1f2021;border-color:#191a1b}.btn-secondary:not(:disabled):not(.disabled):active:focus,.btn-secondary:not(:disabled):not(.disabled).active:focus,.show>.btn-secondary.dropdown-toggle:focus{-webkit-box-shadow:0 0 0 0.2rem rgba(85,88,89,0.5);box-shadow:0 0 0 0.2rem rgba(85,88,89,0.5)}.btn-success{color:#fff;background-color:#3FB618;border-color:#3FB618}.btn-success:hover{color:#fff;background-color:#339414;border-color:#2f8912}.btn-success:focus,.btn-success.focus{color:#fff;background-color:#339414;border-color:#2f8912;-webkit-box-shadow:0 0 0 0.2rem rgba(92,193,59,0.5);box-shadow:0 0 0 0.2rem rgba(92,193,59,0.5)}.btn-success.disabled,.btn-success:disabled{color:#fff;background-color:#3FB618;border-color:#3FB618}.btn-success:not(:disabled):not(.disabled):active,.btn-success:not(:disabled):not(.disabled).active,.show>.btn-success.dropdown-toggle{color:#fff;background-color:#2f8912;border-color:#2c7e11}.btn-success:not(:disabled):not(.disabled):active:focus,.btn-success:not(:disabled):not(.disabled).active:focus,.show>.btn-success.dropdown-toggle:focus{-webkit-box-shadow:0 0 0 0.2rem rgba(92,193,59,0.5);box-shadow:0 0 0 0.2rem rgba(92,193,59,0.5)}.btn-info{color:#fff;background-color:#9954BB;border-color:#9954BB}.btn-info:hover{color:#fff;background-color:#8542a7;border-color:#7e3f9d}.btn-info:focus,.btn-info.focus{color:#fff;background-color:#8542a7;border-color:#7e3f9d;-webkit-box-shadow:0 0 0 0.2rem rgba(168,110,197,0.5);box-shadow:0 0 0 0.2rem rgba(168,110,197,0.5)}.btn-info.disabled,.btn-info:disabled{color:#fff;background-color:#9954BB;border-color:#9954BB}.btn-info:not(:disabled):not(.disabled):active,.btn-info:not(:disabled):not(.disabled).active,.show>.btn-info.dropdown-toggle{color:#fff;background-color:#7e3f9d;border-color:#773b94}.btn-info:not(:disabled):not(.disabled):active:focus,.btn-info:not(:disabled):not(.disabled).active:focus,.show>.btn-info.dropdown-toggle:focus{-webkit-box-shadow:0 0 0 0.2rem rgba(168,110,197,0.5);box-shadow:0 0 0 0.2rem rgba(168,110,197,0.5)}.btn-warning{color:#fff;background-color:#FF7518;border-color:#FF7518}.btn-warning:hover{color:#fff;background-color:#f16100;border-color:#e45c00}.btn-warning:focus,.btn-warning.focus{color:#fff;background-color:#f16100;border-color:#e45c00;-webkit-box-shadow:0 0 0 0.2rem rgba(255,138,59,0.5);box-shadow:0 0 0 0.2rem rgba(255,138,59,0.5)}.btn-warning.disabled,.btn-warning:disabled{color:#fff;background-color:#FF7518;border-color:#FF7518}.btn-warning:not(:disabled):not(.disabled):active,.btn-warning:not(:disabled):not(.disabled).active,.show>.btn-warning.dropdown-toggle{color:#fff;background-color:#e45c00;border-color:#d75700}.btn-warning:not(:disabled):not(.disabled):active:focus,.btn-warning:not(:disabled):not(.disabled).active:focus,.show>.btn-warning.dropdown-toggle:focus{-webkit-box-shadow:0 0 0 0.2rem rgba(255,138,59,0.5);box-shadow:0 0 0 0.2rem rgba(255,138,59,0.5)}.btn-danger{color:#fff;background-color:#FF0039;border-color:#FF0039}.btn-danger:hover{color:#fff;background-color:#d90030;border-color:#cc002e}.btn-danger:focus,.btn-danger.focus{color:#fff;background-color:#d90030;border-color:#cc002e;-webkit-box-shadow:0 0 0 0.2rem rgba(255,38,87,0.5);box-shadow:0 0 0 0.2rem rgba(255,38,87,0.5)}.btn-danger.disabled,.btn-danger:disabled{color:#fff;background-color:#FF0039;border-color:#FF0039}.btn-danger:not(:disabled):not(.disabled):active,.btn-danger:not(:disabled):not(.disabled).active,.show>.btn-danger.dropdown-toggle{color:#fff;background-color:#cc002e;border-color:#bf002b}.btn-danger:not(:disabled):not(.disabled):active:focus,.btn-danger:not(:disabled):not(.disabled).active:focus,.show>.btn-danger.dropdown-toggle:focus{-webkit-box-shadow:0 0 0 0.2rem rgba(255,38,87,0.5);box-shadow:0 0 0 0.2rem rgba(255,38,87,0.5)}.btn-light{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-light:hover{color:#212529;background-color:#e2e6ea;border-color:#dae0e5}.btn-light:focus,.btn-light.focus{color:#212529;background-color:#e2e6ea;border-color:#dae0e5;-webkit-box-shadow:0 0 0 0.2rem rgba(216,217,219,0.5);box-shadow:0 0 0 0.2rem rgba(216,217,219,0.5)}.btn-light.disabled,.btn-light:disabled{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-light:not(:disabled):not(.disabled):active,.btn-light:not(:disabled):not(.disabled).active,.show>.btn-light.dropdown-toggle{color:#212529;background-color:#dae0e5;border-color:#d3d9df}.btn-light:not(:disabled):not(.disabled):active:focus,.btn-light:not(:disabled):not(.disabled).active:focus,.show>.btn-light.dropdown-toggle:focus{-webkit-box-shadow:0 0 0 0.2rem rgba(216,217,219,0.5);box-shadow:0 0 0 0.2rem rgba(216,217,219,0.5)}.btn-dark{color:#fff;background-color:#373a3c;border-color:#373a3c}.btn-dark:hover{color:#fff;background-color:#252728;border-color:#1f2021}.btn-dark:focus,.btn-dark.focus{color:#fff;background-color:#252728;border-color:#1f2021;-webkit-box-shadow:0 0 0 0.2rem rgba(85,88,89,0.5);box-shadow:0 0 0 0.2rem rgba(85,88,89,0.5)}.btn-dark.disabled,.btn-dark:disabled{color:#fff;background-color:#373a3c;border-color:#373a3c}.btn-dark:not(:disabled):not(.disabled):active,.btn-dark:not(:disabled):not(.disabled).active,.show>.btn-dark.dropdown-toggle{color:#fff;background-color:#1f2021;border-color:#191a1b}.btn-dark:not(:disabled):not(.disabled):active:focus,.btn-dark:not(:disabled):not(.disabled).active:focus,.show>.btn-dark.dropdown-toggle:focus{-webkit-box-shadow:0 0 0 0.2rem rgba(85,88,89,0.5);box-shadow:0 0 0 0.2rem rgba(85,88,89,0.5)}.btn-outline-primary{color:#2780E3;border-color:#2780E3}.btn-outline-primary:hover{color:#fff;background-color:#2780E3;border-color:#2780E3}.btn-outline-primary:focus,.btn-outline-primary.focus{-webkit-box-shadow:0 0 0 0.2rem rgba(39,128,227,0.5);box-shadow:0 0 0 0.2rem rgba(39,128,227,0.5)}.btn-outline-primary.disabled,.btn-outline-primary:disabled{color:#2780E3;background-color:transparent}.btn-outline-primary:not(:disabled):not(.disabled):active,.btn-outline-primary:not(:disabled):not(.disabled).active,.show>.btn-outline-primary.dropdown-toggle{color:#fff;background-color:#2780E3;border-color:#2780E3}.btn-outline-primary:not(:disabled):not(.disabled):active:focus,.btn-outline-primary:not(:disabled):not(.disabled).active:focus,.show>.btn-outline-primary.dropdown-toggle:focus{-webkit-box-shadow:0 0 0 0.2rem rgba(39,128,227,0.5);box-shadow:0 0 0 0.2rem rgba(39,128,227,0.5)}.btn-outline-secondary{color:#373a3c;border-color:#373a3c}.btn-outline-secondary:hover{color:#fff;background-color:#373a3c;border-color:#373a3c}.btn-outline-secondary:focus,.btn-outline-secondary.focus{-webkit-box-shadow:0 0 0 0.2rem rgba(55,58,60,0.5);box-shadow:0 0 0 0.2rem rgba(55,58,60,0.5)}.btn-outline-secondary.disabled,.btn-outline-secondary:disabled{color:#373a3c;background-color:transparent}.btn-outline-secondary:not(:disabled):not(.disabled):active,.btn-outline-secondary:not(:disabled):not(.disabled).active,.show>.btn-outline-secondary.dropdown-toggle{color:#fff;background-color:#373a3c;border-color:#373a3c}.btn-outline-secondary:not(:disabled):not(.disabled):active:focus,.btn-outline-secondary:not(:disabled):not(.disabled).active:focus,.show>.btn-outline-secondary.dropdown-toggle:focus{-webkit-box-shadow:0 0 0 0.2rem rgba(55,58,60,0.5);box-shadow:0 0 0 0.2rem rgba(55,58,60,0.5)}.btn-outline-success{color:#3FB618;border-color:#3FB618}.btn-outline-success:hover{color:#fff;background-color:#3FB618;border-color:#3FB618}.btn-outline-success:focus,.btn-outline-success.focus{-webkit-box-shadow:0 0 0 0.2rem rgba(63,182,24,0.5);box-shadow:0 0 0 0.2rem rgba(63,182,24,0.5)}.btn-outline-success.disabled,.btn-outline-success:disabled{color:#3FB618;background-color:transparent}.btn-outline-success:not(:disabled):not(.disabled):active,.btn-outline-success:not(:disabled):not(.disabled).active,.show>.btn-outline-success.dropdown-toggle{color:#fff;background-color:#3FB618;border-color:#3FB618}.btn-outline-success:not(:disabled):not(.disabled):active:focus,.btn-outline-success:not(:disabled):not(.disabled).active:focus,.show>.btn-outline-success.dropdown-toggle:focus{-webkit-box-shadow:0 0 0 0.2rem rgba(63,182,24,0.5);box-shadow:0 0 0 0.2rem rgba(63,182,24,0.5)}.btn-outline-info{color:#9954BB;border-color:#9954BB}.btn-outline-info:hover{color:#fff;background-color:#9954BB;border-color:#9954BB}.btn-outline-info:focus,.btn-outline-info.focus{-webkit-box-shadow:0 0 0 0.2rem rgba(153,84,187,0.5);box-shadow:0 0 0 0.2rem rgba(153,84,187,0.5)}.btn-outline-info.disabled,.btn-outline-info:disabled{color:#9954BB;background-color:transparent}.btn-outline-info:not(:disabled):not(.disabled):active,.btn-outline-info:not(:disabled):not(.disabled).active,.show>.btn-outline-info.dropdown-toggle{color:#fff;background-color:#9954BB;border-color:#9954BB}.btn-outline-info:not(:disabled):not(.disabled):active:focus,.btn-outline-info:not(:disabled):not(.disabled).active:focus,.show>.btn-outline-info.dropdown-toggle:focus{-webkit-box-shadow:0 0 0 0.2rem rgba(153,84,187,0.5);box-shadow:0 0 0 0.2rem rgba(153,84,187,0.5)}.btn-outline-warning{color:#FF7518;border-color:#FF7518}.btn-outline-warning:hover{color:#fff;background-color:#FF7518;border-color:#FF7518}.btn-outline-warning:focus,.btn-outline-warning.focus{-webkit-box-shadow:0 0 0 0.2rem rgba(255,117,24,0.5);box-shadow:0 0 0 0.2rem rgba(255,117,24,0.5)}.btn-outline-warning.disabled,.btn-outline-warning:disabled{color:#FF7518;background-color:transparent}.btn-outline-warning:not(:disabled):not(.disabled):active,.btn-outline-warning:not(:disabled):not(.disabled).active,.show>.btn-outline-warning.dropdown-toggle{color:#fff;background-color:#FF7518;border-color:#FF7518}.btn-outline-warning:not(:disabled):not(.disabled):active:focus,.btn-outline-warning:not(:disabled):not(.disabled).active:focus,.show>.btn-outline-warning.dropdown-toggle:focus{-webkit-box-shadow:0 0 0 0.2rem rgba(255,117,24,0.5);box-shadow:0 0 0 0.2rem rgba(255,117,24,0.5)}.btn-outline-danger{color:#FF0039;border-color:#FF0039}.btn-outline-danger:hover{color:#fff;background-color:#FF0039;border-color:#FF0039}.btn-outline-danger:focus,.btn-outline-danger.focus{-webkit-box-shadow:0 0 0 0.2rem rgba(255,0,57,0.5);box-shadow:0 0 0 0.2rem rgba(255,0,57,0.5)}.btn-outline-danger.disabled,.btn-outline-danger:disabled{color:#FF0039;background-color:transparent}.btn-outline-danger:not(:disabled):not(.disabled):active,.btn-outline-danger:not(:disabled):not(.disabled).active,.show>.btn-outline-danger.dropdown-toggle{color:#fff;background-color:#FF0039;border-color:#FF0039}.btn-outline-danger:not(:disabled):not(.disabled):active:focus,.btn-outline-danger:not(:disabled):not(.disabled).active:focus,.show>.btn-outline-danger.dropdown-toggle:focus{-webkit-box-shadow:0 0 0 0.2rem rgba(255,0,57,0.5);box-shadow:0 0 0 0.2rem rgba(255,0,57,0.5)}.btn-outline-light{color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light:hover{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light:focus,.btn-outline-light.focus{-webkit-box-shadow:0 0 0 0.2rem rgba(248,249,250,0.5);box-shadow:0 0 0 0.2rem rgba(248,249,250,0.5)}.btn-outline-light.disabled,.btn-outline-light:disabled{color:#f8f9fa;background-color:transparent}.btn-outline-light:not(:disabled):not(.disabled):active,.btn-outline-light:not(:disabled):not(.disabled).active,.show>.btn-outline-light.dropdown-toggle{color:#212529;background-color:#f8f9fa;border-color:#f8f9fa}.btn-outline-light:not(:disabled):not(.disabled):active:focus,.btn-outline-light:not(:disabled):not(.disabled).active:focus,.show>.btn-outline-light.dropdown-toggle:focus{-webkit-box-shadow:0 0 0 0.2rem rgba(248,249,250,0.5);box-shadow:0 0 0 0.2rem rgba(248,249,250,0.5)}.btn-outline-dark{color:#373a3c;border-color:#373a3c}.btn-outline-dark:hover{color:#fff;background-color:#373a3c;border-color:#373a3c}.btn-outline-dark:focus,.btn-outline-dark.focus{-webkit-box-shadow:0 0 0 0.2rem rgba(55,58,60,0.5);box-shadow:0 0 0 0.2rem rgba(55,58,60,0.5)}.btn-outline-dark.disabled,.btn-outline-dark:disabled{color:#373a3c;background-color:transparent}.btn-outline-dark:not(:disabled):not(.disabled):active,.btn-outline-dark:not(:disabled):not(.disabled).active,.show>.btn-outline-dark.dropdown-toggle{color:#fff;background-color:#373a3c;border-color:#373a3c}.btn-outline-dark:not(:disabled):not(.disabled):active:focus,.btn-outline-dark:not(:disabled):not(.disabled).active:focus,.show>.btn-outline-dark.dropdown-toggle:focus{-webkit-box-shadow:0 0 0 0.2rem rgba(55,58,60,0.5);box-shadow:0 0 0 0.2rem rgba(55,58,60,0.5)}.btn-link{font-weight:400;color:#2780E3;text-decoration:none}.btn-link:hover{color:#165ba8;text-decoration:underline}.btn-link:focus,.btn-link.focus{text-decoration:underline}.btn-link:disabled,.btn-link.disabled{color:#868e96;pointer-events:none}.btn-lg,.btn-group-lg>.btn{padding:0.5rem 1rem;font-size:1.171875rem;line-height:1.5;border-radius:0}.btn-sm,.btn-group-sm>.btn{padding:0.25rem 0.5rem;font-size:0.8203125rem;line-height:1.5;border-radius:0}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:0.5rem}input[type="submit"].btn-block,input[type="reset"].btn-block,input[type="button"].btn-block{width:100%}.fade{-webkit-transition:opacity 0.15s linear;transition:opacity 0.15s linear}@media (prefers-reduced-motion: reduce){.fade{-webkit-transition:none;transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition:height 0.35s ease;transition:height 0.35s ease}@media (prefers-reduced-motion: reduce){.collapsing{-webkit-transition:none;transition:none}}.dropup,.dropright,.dropdown,.dropleft{position:relative}.dropdown-toggle{white-space:nowrap}.dropdown-toggle::after{display:inline-block;margin-left:0.255em;vertical-align:0.255em;content:"";border-top:0.3em solid;border-right:0.3em solid transparent;border-bottom:0;border-left:0.3em solid transparent}.dropdown-toggle:empty::after{margin-left:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:10rem;padding:0.5rem 0;margin:0.125rem 0 0;font-size:0.9375rem;color:#373a3c;text-align:left;list-style:none;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,0.15)}.dropdown-menu-left{right:auto;left:0}.dropdown-menu-right{right:0;left:auto}@media (min-width: 576px){.dropdown-menu-sm-left{right:auto;left:0}.dropdown-menu-sm-right{right:0;left:auto}}@media (min-width: 768px){.dropdown-menu-md-left{right:auto;left:0}.dropdown-menu-md-right{right:0;left:auto}}@media (min-width: 992px){.dropdown-menu-lg-left{right:auto;left:0}.dropdown-menu-lg-right{right:0;left:auto}}@media (min-width: 1200px){.dropdown-menu-xl-left{right:auto;left:0}.dropdown-menu-xl-right{right:0;left:auto}}.dropup .dropdown-menu{top:auto;bottom:100%;margin-top:0;margin-bottom:0.125rem}.dropup .dropdown-toggle::after{display:inline-block;margin-left:0.255em;vertical-align:0.255em;content:"";border-top:0;border-right:0.3em solid transparent;border-bottom:0.3em solid;border-left:0.3em solid transparent}.dropup .dropdown-toggle:empty::after{margin-left:0}.dropright .dropdown-menu{top:0;right:auto;left:100%;margin-top:0;margin-left:0.125rem}.dropright .dropdown-toggle::after{display:inline-block;margin-left:0.255em;vertical-align:0.255em;content:"";border-top:0.3em solid transparent;border-right:0;border-bottom:0.3em solid transparent;border-left:0.3em solid}.dropright .dropdown-toggle:empty::after{margin-left:0}.dropright .dropdown-toggle::after{vertical-align:0}.dropleft .dropdown-menu{top:0;right:100%;left:auto;margin-top:0;margin-right:0.125rem}.dropleft .dropdown-toggle::after{display:inline-block;margin-left:0.255em;vertical-align:0.255em;content:""}.dropleft .dropdown-toggle::after{display:none}.dropleft .dropdown-toggle::before{display:inline-block;margin-right:0.255em;vertical-align:0.255em;content:"";border-top:0.3em solid transparent;border-right:0.3em solid;border-bottom:0.3em solid transparent}.dropleft .dropdown-toggle:empty::after{margin-left:0}.dropleft .dropdown-toggle::before{vertical-align:0}.dropdown-menu[x-placement^="top"],.dropdown-menu[x-placement^="right"],.dropdown-menu[x-placement^="bottom"],.dropdown-menu[x-placement^="left"]{right:auto;bottom:auto}.dropdown-divider{height:0;margin:0.5rem 0;overflow:hidden;border-top:1px solid #e9ecef}.dropdown-item{display:block;width:100%;padding:0.25rem 1.5rem;clear:both;font-weight:400;color:#212529;text-align:inherit;white-space:nowrap;background-color:transparent;border:0}.dropdown-item:hover,.dropdown-item:focus{color:#16181b;text-decoration:none;background-color:#f8f9fa}.dropdown-item.active,.dropdown-item:active{color:#fff;text-decoration:none;background-color:#2780E3}.dropdown-item.disabled,.dropdown-item:disabled{color:#868e96;pointer-events:none;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:0.5rem 1.5rem;margin-bottom:0;font-size:0.8203125rem;color:#868e96;white-space:nowrap}.dropdown-item-text{display:block;padding:0.25rem 1.5rem;color:#212529}.btn-group,.btn-group-vertical{position:relative;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;vertical-align:middle}.btn-group>.btn,.btn-group-vertical>.btn{position:relative;-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto}.btn-group>.btn:hover,.btn-group-vertical>.btn:hover{z-index:1}.btn-group>.btn:focus,.btn-group>.btn:active,.btn-group>.btn.active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn.active{z-index:1}.btn-toolbar{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.btn-toolbar .input-group{width:auto}.btn-group>.btn:not(:first-child),.btn-group>.btn-group:not(:first-child){margin-left:-1px}.dropdown-toggle-split{padding-right:0.5625rem;padding-left:0.5625rem}.dropdown-toggle-split::after,.dropup .dropdown-toggle-split::after,.dropright .dropdown-toggle-split::after{margin-left:0}.dropleft .dropdown-toggle-split::before{margin-right:0}.btn-sm+.dropdown-toggle-split,.btn-group-sm>.btn+.dropdown-toggle-split{padding-right:0.375rem;padding-left:0.375rem}.btn-lg+.dropdown-toggle-split,.btn-group-lg>.btn+.dropdown-toggle-split{padding-right:0.75rem;padding-left:0.75rem}.btn-group-vertical{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group{width:100%}.btn-group-vertical>.btn:not(:first-child),.btn-group-vertical>.btn-group:not(:first-child){margin-top:-1px}.btn-group-toggle>.btn,.btn-group-toggle>.btn-group>.btn{margin-bottom:0}.btn-group-toggle>.btn input[type="radio"],.btn-group-toggle>.btn input[type="checkbox"],.btn-group-toggle>.btn-group>.btn input[type="radio"],.btn-group-toggle>.btn-group>.btn input[type="checkbox"]{position:absolute;clip:rect(0, 0, 0, 0);pointer-events:none}.input-group{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:stretch;-ms-flex-align:stretch;align-items:stretch;width:100%}.input-group>.form-control,.input-group>.form-control-plaintext,.input-group>.custom-select,.input-group>.custom-file{position:relative;-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;width:1%;min-width:0;margin-bottom:0}.input-group>.form-control+.form-control,.input-group>.form-control+.custom-select,.input-group>.form-control+.custom-file,.input-group>.form-control-plaintext+.form-control,.input-group>.form-control-plaintext+.custom-select,.input-group>.form-control-plaintext+.custom-file,.input-group>.custom-select+.form-control,.input-group>.custom-select+.custom-select,.input-group>.custom-select+.custom-file,.input-group>.custom-file+.form-control,.input-group>.custom-file+.custom-select,.input-group>.custom-file+.custom-file{margin-left:-1px}.input-group>.form-control:focus,.input-group>.custom-select:focus,.input-group>.custom-file .custom-file-input:focus ~ .custom-file-label{z-index:3}.input-group>.custom-file .custom-file-input:focus{z-index:4}.input-group>.custom-file{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.input-group-prepend,.input-group-append{display:-webkit-box;display:-ms-flexbox;display:flex}.input-group-prepend .btn,.input-group-append .btn{position:relative;z-index:2}.input-group-prepend .btn:focus,.input-group-append .btn:focus{z-index:3}.input-group-prepend .btn+.btn,.input-group-prepend .btn+.input-group-text,.input-group-prepend .input-group-text+.input-group-text,.input-group-prepend .input-group-text+.btn,.input-group-append .btn+.btn,.input-group-append .btn+.input-group-text,.input-group-append .input-group-text+.input-group-text,.input-group-append .input-group-text+.btn{margin-left:-1px}.input-group-prepend{margin-right:-1px}.input-group-append{margin-left:-1px}.input-group-text{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:0.375rem 0.75rem;margin-bottom:0;font-size:0.9375rem;font-weight:400;line-height:1.5;color:#495057;text-align:center;white-space:nowrap;background-color:#e9ecef;border:1px solid #ced4da}.input-group-text input[type="radio"],.input-group-text input[type="checkbox"]{margin-top:0}.input-group-lg>.form-control:not(textarea),.input-group-lg>.custom-select{height:calc(1.5em + 1rem + 2px)}.input-group-lg>.form-control,.input-group-lg>.custom-select,.input-group-lg>.input-group-prepend>.input-group-text,.input-group-lg>.input-group-append>.input-group-text,.input-group-lg>.input-group-prepend>.btn,.input-group-lg>.input-group-append>.btn{padding:0.5rem 1rem;font-size:1.171875rem;line-height:1.5}.input-group-sm>.form-control:not(textarea),.input-group-sm>.custom-select{height:calc(1.5em + 0.5rem + 2px)}.input-group-sm>.form-control,.input-group-sm>.custom-select,.input-group-sm>.input-group-prepend>.input-group-text,.input-group-sm>.input-group-append>.input-group-text,.input-group-sm>.input-group-prepend>.btn,.input-group-sm>.input-group-append>.btn{padding:0.25rem 0.5rem;font-size:0.8203125rem;line-height:1.5}.input-group-lg>.custom-select,.input-group-sm>.custom-select{padding-right:1.75rem}.custom-control{position:relative;display:block;min-height:1.40625rem;padding-left:1.5rem}.custom-control-inline{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;margin-right:1rem}.custom-control-input{position:absolute;left:0;z-index:-1;width:1rem;height:1.203125rem;opacity:0}.custom-control-input:checked ~ .custom-control-label::before{color:#fff;border-color:#2780E3;background-color:#2780E3}.custom-control-input:focus ~ .custom-control-label::before{-webkit-box-shadow:0 0 0 0.2rem rgba(39,128,227,0.25);box-shadow:0 0 0 0.2rem rgba(39,128,227,0.25)}.custom-control-input:focus:not(:checked) ~ .custom-control-label::before{border-color:#98c2f2}.custom-control-input:not(:disabled):active ~ .custom-control-label::before{color:#fff;background-color:#c5ddf7;border-color:#c5ddf7}.custom-control-input[disabled] ~ .custom-control-label,.custom-control-input:disabled ~ .custom-control-label{color:#868e96}.custom-control-input[disabled] ~ .custom-control-label::before,.custom-control-input:disabled ~ .custom-control-label::before{background-color:#e9ecef}.custom-control-label{position:relative;margin-bottom:0;vertical-align:top}.custom-control-label::before{position:absolute;top:0.203125rem;left:-1.5rem;display:block;width:1rem;height:1rem;pointer-events:none;content:"";background-color:#fff;border:#adb5bd solid 1px}.custom-control-label::after{position:absolute;top:0.203125rem;left:-1.5rem;display:block;width:1rem;height:1rem;content:"";background:no-repeat 50% / 50% 50%}.custom-checkbox .custom-control-input:checked ~ .custom-control-label::after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%23fff' d='M6.564.75l-3.59 3.612-1.538-1.55L0 4.26l2.974 2.99L8 2.193z'/%3e%3c/svg%3e")}.custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::before{border-color:#2780E3;background-color:#2780E3}.custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4' viewBox='0 0 4 4'%3e%3cpath stroke='%23fff' d='M0 2h4'/%3e%3c/svg%3e")}.custom-checkbox .custom-control-input:disabled:checked ~ .custom-control-label::before{background-color:rgba(39,128,227,0.5)}.custom-checkbox .custom-control-input:disabled:indeterminate ~ .custom-control-label::before{background-color:rgba(39,128,227,0.5)}.custom-radio .custom-control-label::before{border-radius:50%}.custom-radio .custom-control-input:checked ~ .custom-control-label::after{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e")}.custom-radio .custom-control-input:disabled:checked ~ .custom-control-label::before{background-color:rgba(39,128,227,0.5)}.custom-switch{padding-left:2.25rem}.custom-switch .custom-control-label::before{left:-2.25rem;width:1.75rem;pointer-events:all;border-radius:0.5rem}.custom-switch .custom-control-label::after{top:calc(0.203125rem + 2px);left:calc(-2.25rem + 2px);width:calc(1rem - 4px);height:calc(1rem - 4px);background-color:#adb5bd;border-radius:0.5rem;-webkit-transition:background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-transform 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;transition:background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-transform 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;transition:transform 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;transition:transform 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-transform 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out}@media (prefers-reduced-motion: reduce){.custom-switch .custom-control-label::after{-webkit-transition:none;transition:none}}.custom-switch .custom-control-input:checked ~ .custom-control-label::after{background-color:#fff;-webkit-transform:translateX(0.75rem);transform:translateX(0.75rem)}.custom-switch .custom-control-input:disabled:checked ~ .custom-control-label::before{background-color:rgba(39,128,227,0.5)}.custom-select{display:inline-block;width:100%;height:calc(1.5em + 0.75rem + 2px);padding:0.375rem 1.75rem 0.375rem 0.75rem;font-size:0.9375rem;font-weight:400;line-height:1.5;color:#495057;vertical-align:middle;background:#fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23373a3c' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 0.75rem center/8px 10px;border:1px solid #ced4da;border-radius:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.custom-select:focus{border-color:#98c2f2;outline:0;-webkit-box-shadow:0 0 0 0.2rem rgba(39,128,227,0.25);box-shadow:0 0 0 0.2rem rgba(39,128,227,0.25)}.custom-select:focus::-ms-value{color:#495057;background-color:#fff}.custom-select[multiple],.custom-select[size]:not([size="1"]){height:auto;padding-right:0.75rem;background-image:none}.custom-select:disabled{color:#868e96;background-color:#e9ecef}.custom-select::-ms-expand{display:none}.custom-select:-moz-focusring{color:transparent;text-shadow:0 0 0 #495057}.custom-select-sm{height:calc(1.5em + 0.5rem + 2px);padding-top:0.25rem;padding-bottom:0.25rem;padding-left:0.5rem;font-size:0.8203125rem}.custom-select-lg{height:calc(1.5em + 1rem + 2px);padding-top:0.5rem;padding-bottom:0.5rem;padding-left:1rem;font-size:1.171875rem}.custom-file{position:relative;display:inline-block;width:100%;height:calc(1.5em + 0.75rem + 2px);margin-bottom:0}.custom-file-input{position:relative;z-index:2;width:100%;height:calc(1.5em + 0.75rem + 2px);margin:0;opacity:0}.custom-file-input:focus ~ .custom-file-label{border-color:#98c2f2;-webkit-box-shadow:0 0 0 0.2rem rgba(39,128,227,0.25);box-shadow:0 0 0 0.2rem rgba(39,128,227,0.25)}.custom-file-input[disabled] ~ .custom-file-label,.custom-file-input:disabled ~ .custom-file-label{background-color:#e9ecef}.custom-file-input:lang(en) ~ .custom-file-label::after{content:"Browse"}.custom-file-input ~ .custom-file-label[data-browse]::after{content:attr(data-browse)}.custom-file-label{position:absolute;top:0;right:0;left:0;z-index:1;height:calc(1.5em + 0.75rem + 2px);padding:0.375rem 0.75rem;font-weight:400;line-height:1.5;color:#495057;background-color:#fff;border:1px solid #ced4da}.custom-file-label::after{position:absolute;top:0;right:0;bottom:0;z-index:3;display:block;height:calc(1.5em + 0.75rem);padding:0.375rem 0.75rem;line-height:1.5;color:#495057;content:"Browse";background-color:#e9ecef;border-left:inherit}.custom-range{width:100%;height:1.4rem;padding:0;background-color:transparent;-webkit-appearance:none;-moz-appearance:none;appearance:none}.custom-range:focus{outline:none}.custom-range:focus::-webkit-slider-thumb{-webkit-box-shadow:0 0 0 1px #fff,0 0 0 0.2rem rgba(39,128,227,0.25);box-shadow:0 0 0 1px #fff,0 0 0 0.2rem rgba(39,128,227,0.25)}.custom-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 0.2rem rgba(39,128,227,0.25)}.custom-range:focus::-ms-thumb{box-shadow:0 0 0 1px #fff,0 0 0 0.2rem rgba(39,128,227,0.25)}.custom-range::-moz-focus-outer{border:0}.custom-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-0.25rem;background-color:#2780E3;border:0;-webkit-transition:background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;transition:background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;transition:background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;transition:background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;-webkit-appearance:none;appearance:none}@media (prefers-reduced-motion: reduce){.custom-range::-webkit-slider-thumb{-webkit-transition:none;transition:none}}.custom-range::-webkit-slider-thumb:active{background-color:#c5ddf7}.custom-range::-webkit-slider-runnable-track{width:100%;height:0.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent}.custom-range::-moz-range-thumb{width:1rem;height:1rem;background-color:#2780E3;border:0;-webkit-transition:background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;transition:background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;transition:background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;transition:background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;-moz-appearance:none;appearance:none}@media (prefers-reduced-motion: reduce){.custom-range::-moz-range-thumb{-webkit-transition:none;transition:none}}.custom-range::-moz-range-thumb:active{background-color:#c5ddf7}.custom-range::-moz-range-track{width:100%;height:0.5rem;color:transparent;cursor:pointer;background-color:#dee2e6;border-color:transparent}.custom-range::-ms-thumb{width:1rem;height:1rem;margin-top:0;margin-right:0.2rem;margin-left:0.2rem;background-color:#2780E3;border:0;-webkit-transition:background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;transition:background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;transition:background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;transition:background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;appearance:none}@media (prefers-reduced-motion: reduce){.custom-range::-ms-thumb{-webkit-transition:none;transition:none}}.custom-range::-ms-thumb:active{background-color:#c5ddf7}.custom-range::-ms-track{width:100%;height:0.5rem;color:transparent;cursor:pointer;background-color:transparent;border-color:transparent;border-width:0.5rem}.custom-range::-ms-fill-lower{background-color:#dee2e6}.custom-range::-ms-fill-upper{margin-right:15px;background-color:#dee2e6}.custom-range:disabled::-webkit-slider-thumb{background-color:#adb5bd}.custom-range:disabled::-webkit-slider-runnable-track{cursor:default}.custom-range:disabled::-moz-range-thumb{background-color:#adb5bd}.custom-range:disabled::-moz-range-track{cursor:default}.custom-range:disabled::-ms-thumb{background-color:#adb5bd}.custom-control-label::before,.custom-file-label,.custom-select{-webkit-transition:background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;transition:background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;transition:background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;transition:background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out}@media (prefers-reduced-motion: reduce){.custom-control-label::before,.custom-file-label,.custom-select{-webkit-transition:none;transition:none}}.nav{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.nav-link{display:block;padding:0.5rem 1rem}.nav-link:hover,.nav-link:focus{text-decoration:none}.nav-link.disabled{color:#868e96;pointer-events:none;cursor:default}.nav-tabs{border-bottom:1px solid #dee2e6}.nav-tabs .nav-item{margin-bottom:-1px}.nav-tabs .nav-link{border:1px solid transparent}.nav-tabs .nav-link:hover,.nav-tabs .nav-link:focus{border-color:#e9ecef #e9ecef #dee2e6}.nav-tabs .nav-link.disabled{color:#868e96;background-color:transparent;border-color:transparent}.nav-tabs .nav-link.active,.nav-tabs .nav-item.show .nav-link{color:#495057;background-color:#fff;border-color:#dee2e6 #dee2e6 #fff}.nav-tabs .dropdown-menu{margin-top:-1px}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{color:#fff;background-color:#2780E3}.nav-fill .nav-item{-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;text-align:center}.nav-justified .nav-item{-ms-flex-preferred-size:0;flex-basis:0;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;text-align:center}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.navbar{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:0.5rem 1rem}.navbar .container,.navbar .container-fluid,.navbar .container-sm,.navbar .container-md,.navbar .container-lg,.navbar .container-xl{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between}.navbar-brand{display:inline-block;padding-top:0.32421875rem;padding-bottom:0.32421875rem;margin-right:1rem;font-size:1.171875rem;line-height:inherit;white-space:nowrap}.navbar-brand:hover,.navbar-brand:focus{text-decoration:none}.navbar-nav{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding-left:0;margin-bottom:0;list-style:none}.navbar-nav .nav-link{padding-right:0;padding-left:0}.navbar-nav .dropdown-menu{position:static;float:none}.navbar-text{display:inline-block;padding-top:0.5rem;padding-bottom:0.5rem}.navbar-collapse{-ms-flex-preferred-size:100%;flex-basis:100%;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;-webkit-box-align:center;-ms-flex-align:center;align-items:center}.navbar-toggler{padding:0.25rem 0.75rem;font-size:1.171875rem;line-height:1;background-color:transparent;border:1px solid transparent}.navbar-toggler:hover,.navbar-toggler:focus{text-decoration:none}.navbar-toggler-icon{display:inline-block;width:1.5em;height:1.5em;vertical-align:middle;content:"";background:no-repeat center center;background-size:100% 100%}@media (max-width: 575.98px){.navbar-expand-sm>.container,.navbar-expand-sm>.container-fluid,.navbar-expand-sm>.container-sm,.navbar-expand-sm>.container-md,.navbar-expand-sm>.container-lg,.navbar-expand-sm>.container-xl{padding-right:0;padding-left:0}}@media (min-width: 576px){.navbar-expand-sm{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.navbar-expand-sm .navbar-nav{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-sm .navbar-nav .nav-link{padding-right:0.5rem;padding-left:0.5rem}.navbar-expand-sm>.container,.navbar-expand-sm>.container-fluid,.navbar-expand-sm>.container-sm,.navbar-expand-sm>.container-md,.navbar-expand-sm>.container-lg,.navbar-expand-sm>.container-xl{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.navbar-expand-sm .navbar-collapse{display:-webkit-box !important;display:-ms-flexbox !important;display:flex !important;-ms-flex-preferred-size:auto;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}}@media (max-width: 767.98px){.navbar-expand-md>.container,.navbar-expand-md>.container-fluid,.navbar-expand-md>.container-sm,.navbar-expand-md>.container-md,.navbar-expand-md>.container-lg,.navbar-expand-md>.container-xl{padding-right:0;padding-left:0}}@media (min-width: 768px){.navbar-expand-md{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.navbar-expand-md .navbar-nav{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-md .navbar-nav .nav-link{padding-right:0.5rem;padding-left:0.5rem}.navbar-expand-md>.container,.navbar-expand-md>.container-fluid,.navbar-expand-md>.container-sm,.navbar-expand-md>.container-md,.navbar-expand-md>.container-lg,.navbar-expand-md>.container-xl{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.navbar-expand-md .navbar-collapse{display:-webkit-box !important;display:-ms-flexbox !important;display:flex !important;-ms-flex-preferred-size:auto;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}}@media (max-width: 991.98px){.navbar-expand-lg>.container,.navbar-expand-lg>.container-fluid,.navbar-expand-lg>.container-sm,.navbar-expand-lg>.container-md,.navbar-expand-lg>.container-lg,.navbar-expand-lg>.container-xl{padding-right:0;padding-left:0}}@media (min-width: 992px){.navbar-expand-lg{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.navbar-expand-lg .navbar-nav{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-lg .navbar-nav .nav-link{padding-right:0.5rem;padding-left:0.5rem}.navbar-expand-lg>.container,.navbar-expand-lg>.container-fluid,.navbar-expand-lg>.container-sm,.navbar-expand-lg>.container-md,.navbar-expand-lg>.container-lg,.navbar-expand-lg>.container-xl{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.navbar-expand-lg .navbar-collapse{display:-webkit-box !important;display:-ms-flexbox !important;display:flex !important;-ms-flex-preferred-size:auto;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}}@media (max-width: 1199.98px){.navbar-expand-xl>.container,.navbar-expand-xl>.container-fluid,.navbar-expand-xl>.container-sm,.navbar-expand-xl>.container-md,.navbar-expand-xl>.container-lg,.navbar-expand-xl>.container-xl{padding-right:0;padding-left:0}}@media (min-width: 1200px){.navbar-expand-xl{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.navbar-expand-xl .navbar-nav{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xl .navbar-nav .nav-link{padding-right:0.5rem;padding-left:0.5rem}.navbar-expand-xl>.container,.navbar-expand-xl>.container-fluid,.navbar-expand-xl>.container-sm,.navbar-expand-xl>.container-md,.navbar-expand-xl>.container-lg,.navbar-expand-xl>.container-xl{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.navbar-expand-xl .navbar-collapse{display:-webkit-box !important;display:-ms-flexbox !important;display:flex !important;-ms-flex-preferred-size:auto;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}}.navbar-expand{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row nowrap;flex-flow:row nowrap;-webkit-box-pack:start;-ms-flex-pack:start;justify-content:flex-start}.navbar-expand>.container,.navbar-expand>.container-fluid,.navbar-expand>.container-sm,.navbar-expand>.container-md,.navbar-expand>.container-lg,.navbar-expand>.container-xl{padding-right:0;padding-left:0}.navbar-expand .navbar-nav{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.navbar-expand .navbar-nav .nav-link{padding-right:0.5rem;padding-left:0.5rem}.navbar-expand>.container,.navbar-expand>.container-fluid,.navbar-expand>.container-sm,.navbar-expand>.container-md,.navbar-expand>.container-lg,.navbar-expand>.container-xl{-ms-flex-wrap:nowrap;flex-wrap:nowrap}.navbar-expand .navbar-collapse{display:-webkit-box !important;display:-ms-flexbox !important;display:flex !important;-ms-flex-preferred-size:auto;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}.navbar-light .navbar-brand{color:rgba(0,0,0,0.9)}.navbar-light .navbar-brand:hover,.navbar-light .navbar-brand:focus{color:rgba(0,0,0,0.9)}.navbar-light .navbar-nav .nav-link{color:rgba(0,0,0,0.5)}.navbar-light .navbar-nav .nav-link:hover,.navbar-light .navbar-nav .nav-link:focus{color:rgba(0,0,0,0.9)}.navbar-light .navbar-nav .nav-link.disabled{color:rgba(0,0,0,0.3)}.navbar-light .navbar-nav .show>.nav-link,.navbar-light .navbar-nav .active>.nav-link,.navbar-light .navbar-nav .nav-link.show,.navbar-light .navbar-nav .nav-link.active{color:rgba(0,0,0,0.9)}.navbar-light .navbar-toggler{color:rgba(0,0,0,0.5);border-color:rgba(0,0,0,0.1)}.navbar-light .navbar-toggler-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.5%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")}.navbar-light .navbar-text{color:rgba(0,0,0,0.5)}.navbar-light .navbar-text a{color:rgba(0,0,0,0.9)}.navbar-light .navbar-text a:hover,.navbar-light .navbar-text a:focus{color:rgba(0,0,0,0.9)}.navbar-dark .navbar-brand{color:#fff}.navbar-dark .navbar-brand:hover,.navbar-dark .navbar-brand:focus{color:#fff}.navbar-dark .navbar-nav .nav-link{color:rgba(255,255,255,0.5)}.navbar-dark .navbar-nav .nav-link:hover,.navbar-dark .navbar-nav .nav-link:focus{color:white}.navbar-dark .navbar-nav .nav-link.disabled{color:rgba(255,255,255,0.25)}.navbar-dark .navbar-nav .show>.nav-link,.navbar-dark .navbar-nav .active>.nav-link,.navbar-dark .navbar-nav .nav-link.show,.navbar-dark .navbar-nav .nav-link.active{color:#fff}.navbar-dark .navbar-toggler{color:rgba(255,255,255,0.5);border-color:rgba(255,255,255,0.1)}.navbar-dark .navbar-toggler-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.5%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")}.navbar-dark .navbar-text{color:rgba(255,255,255,0.5)}.navbar-dark .navbar-text a{color:#fff}.navbar-dark .navbar-text a:hover,.navbar-dark .navbar-text a:focus{color:#fff}.card{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;min-width:0;word-wrap:break-word;background-color:#fff;background-clip:border-box;border:1px solid rgba(0,0,0,0.125)}.card>hr{margin-right:0;margin-left:0}.card>.list-group{border-top:inherit;border-bottom:inherit}.card>.list-group:first-child{border-top-width:0}.card>.list-group:last-child{border-bottom-width:0}.card-body{-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;min-height:1px;padding:1.25rem}.card-title{margin-bottom:0.75rem}.card-subtitle{margin-top:-0.375rem;margin-bottom:0}.card-text:last-child{margin-bottom:0}.card-link:hover{text-decoration:none}.card-link+.card-link{margin-left:1.25rem}.card-header{padding:0.75rem 1.25rem;margin-bottom:0;background-color:rgba(0,0,0,0.03);border-bottom:1px solid rgba(0,0,0,0.125)}.card-header+.list-group .list-group-item:first-child{border-top:0}.card-footer{padding:0.75rem 1.25rem;background-color:rgba(0,0,0,0.03);border-top:1px solid rgba(0,0,0,0.125)}.card-header-tabs{margin-right:-0.625rem;margin-bottom:-0.75rem;margin-left:-0.625rem;border-bottom:0}.card-header-pills{margin-right:-0.625rem;margin-left:-0.625rem}.card-img-overlay{position:absolute;top:0;right:0;bottom:0;left:0;padding:1.25rem}.card-img,.card-img-top,.card-img-bottom{-ms-flex-negative:0;flex-shrink:0;width:100%}.card-deck .card{margin-bottom:15px}@media (min-width: 576px){.card-deck{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap;margin-right:-15px;margin-left:-15px}.card-deck .card{-webkit-box-flex:1;-ms-flex:1 0 0%;flex:1 0 0%;margin-right:15px;margin-bottom:0;margin-left:15px}}.card-group>.card{margin-bottom:15px}@media (min-width: 576px){.card-group{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-flow:row wrap;flex-flow:row wrap}.card-group>.card{-webkit-box-flex:1;-ms-flex:1 0 0%;flex:1 0 0%;margin-bottom:0}.card-group>.card+.card{margin-left:0;border-left:0}}.card-columns .card{margin-bottom:0.75rem}@media (min-width: 576px){.card-columns{-webkit-column-count:3;column-count:3;-webkit-column-gap:1.25rem;column-gap:1.25rem;orphans:1;widows:1}.card-columns .card{display:inline-block;width:100%}}.accordion>.card{overflow:hidden}.accordion>.card:not(:last-of-type){border-bottom:0}.accordion>.card>.card-header{margin-bottom:-1px}.breadcrumb{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;padding:0.75rem 1rem;margin-bottom:1rem;list-style:none;background-color:#e9ecef}.breadcrumb-item{display:-webkit-box;display:-ms-flexbox;display:flex}.breadcrumb-item+.breadcrumb-item{padding-left:0.5rem}.breadcrumb-item+.breadcrumb-item::before{display:inline-block;padding-right:0.5rem;color:#868e96;content:"/"}.breadcrumb-item+.breadcrumb-item:hover::before{text-decoration:underline}.breadcrumb-item+.breadcrumb-item:hover::before{text-decoration:none}.breadcrumb-item.active{color:#868e96}.pagination{display:-webkit-box;display:-ms-flexbox;display:flex;padding-left:0;list-style:none}.page-link{position:relative;display:block;padding:0.5rem 0.75rem;margin-left:-1px;line-height:1.25;color:#2780E3;background-color:#fff;border:1px solid #dee2e6}.page-link:hover{z-index:2;color:#165ba8;text-decoration:none;background-color:#e9ecef;border-color:#dee2e6}.page-link:focus{z-index:3;outline:0;-webkit-box-shadow:0 0 0 0.2rem rgba(39,128,227,0.25);box-shadow:0 0 0 0.2rem rgba(39,128,227,0.25)}.page-item:first-child .page-link{margin-left:0}.page-item.active .page-link{z-index:3;color:#fff;background-color:#2780E3;border-color:#2780E3}.page-item.disabled .page-link{color:#868e96;pointer-events:none;cursor:auto;background-color:#fff;border-color:#dee2e6}.pagination-lg .page-link{padding:0.75rem 1.5rem;font-size:1.171875rem;line-height:1.5}.pagination-sm .page-link{padding:0.25rem 0.5rem;font-size:0.8203125rem;line-height:1.5}.badge{display:inline-block;padding:0.25em 0.4em;font-size:75%;font-weight:700;line-height:1;text-align:center;white-space:nowrap;vertical-align:baseline;-webkit-transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;transition:color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out, -webkit-box-shadow 0.15s ease-in-out}@media (prefers-reduced-motion: reduce){.badge{-webkit-transition:none;transition:none}}a.badge:hover,a.badge:focus{text-decoration:none}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.badge-pill{padding-right:0.6em;padding-left:0.6em}.badge-primary{color:#fff;background-color:#2780E3}a.badge-primary:hover,a.badge-primary:focus{color:#fff;background-color:#1967be}a.badge-primary:focus,a.badge-primary.focus{outline:0;-webkit-box-shadow:0 0 0 0.2rem rgba(39,128,227,0.5);box-shadow:0 0 0 0.2rem rgba(39,128,227,0.5)}.badge-secondary{color:#fff;background-color:#373a3c}a.badge-secondary:hover,a.badge-secondary:focus{color:#fff;background-color:#1f2021}a.badge-secondary:focus,a.badge-secondary.focus{outline:0;-webkit-box-shadow:0 0 0 0.2rem rgba(55,58,60,0.5);box-shadow:0 0 0 0.2rem rgba(55,58,60,0.5)}.badge-success{color:#fff;background-color:#3FB618}a.badge-success:hover,a.badge-success:focus{color:#fff;background-color:#2f8912}a.badge-success:focus,a.badge-success.focus{outline:0;-webkit-box-shadow:0 0 0 0.2rem rgba(63,182,24,0.5);box-shadow:0 0 0 0.2rem rgba(63,182,24,0.5)}.badge-info{color:#fff;background-color:#9954BB}a.badge-info:hover,a.badge-info:focus{color:#fff;background-color:#7e3f9d}a.badge-info:focus,a.badge-info.focus{outline:0;-webkit-box-shadow:0 0 0 0.2rem rgba(153,84,187,0.5);box-shadow:0 0 0 0.2rem rgba(153,84,187,0.5)}.badge-warning{color:#fff;background-color:#FF7518}a.badge-warning:hover,a.badge-warning:focus{color:#fff;background-color:#e45c00}a.badge-warning:focus,a.badge-warning.focus{outline:0;-webkit-box-shadow:0 0 0 0.2rem rgba(255,117,24,0.5);box-shadow:0 0 0 0.2rem rgba(255,117,24,0.5)}.badge-danger{color:#fff;background-color:#FF0039}a.badge-danger:hover,a.badge-danger:focus{color:#fff;background-color:#cc002e}a.badge-danger:focus,a.badge-danger.focus{outline:0;-webkit-box-shadow:0 0 0 0.2rem rgba(255,0,57,0.5);box-shadow:0 0 0 0.2rem rgba(255,0,57,0.5)}.badge-light{color:#212529;background-color:#f8f9fa}a.badge-light:hover,a.badge-light:focus{color:#212529;background-color:#dae0e5}a.badge-light:focus,a.badge-light.focus{outline:0;-webkit-box-shadow:0 0 0 0.2rem rgba(248,249,250,0.5);box-shadow:0 0 0 0.2rem rgba(248,249,250,0.5)}.badge-dark{color:#fff;background-color:#373a3c}a.badge-dark:hover,a.badge-dark:focus{color:#fff;background-color:#1f2021}a.badge-dark:focus,a.badge-dark.focus{outline:0;-webkit-box-shadow:0 0 0 0.2rem rgba(55,58,60,0.5);box-shadow:0 0 0 0.2rem rgba(55,58,60,0.5)}.jumbotron{padding:2rem 1rem;margin-bottom:2rem;background-color:#e9ecef}@media (min-width: 576px){.jumbotron{padding:4rem 2rem}}.jumbotron-fluid{padding-right:0;padding-left:0}.alert{position:relative;padding:0.75rem 1.25rem;margin-bottom:1rem;border:0 solid transparent}.alert-heading{color:inherit}.alert-link{font-weight:700}.alert-dismissible{padding-right:3.90625rem}.alert-dismissible .close{position:absolute;top:0;right:0;padding:0.75rem 1.25rem;color:inherit}.alert-primary{color:#144376;background-color:#d4e6f9;border-color:#c3dbf7}.alert-primary hr{border-top-color:#adcef4}.alert-primary .alert-link{color:#0d2a4a}.alert-secondary{color:#1d1e1f;background-color:#d7d8d8;border-color:#c7c8c8}.alert-secondary hr{border-top-color:#babbbb}.alert-secondary .alert-link{color:#040505}.alert-success{color:#215f0c;background-color:#d9f0d1;border-color:#c9ebbe}.alert-success hr{border-top-color:#b9e5ab}.alert-success .alert-link{color:#113206}.alert-info{color:#502c61;background-color:#ebddf1;border-color:#e2cfec}.alert-info hr{border-top-color:#d7bde5}.alert-info .alert-link{color:#331c3e}.alert-warning{color:#853d0c;background-color:#ffe3d1;border-color:#ffd8be}.alert-warning hr{border-top-color:#ffc9a5}.alert-warning .alert-link{color:#562808}.alert-danger{color:#85001e;background-color:#ffccd7;border-color:#ffb8c8}.alert-danger hr{border-top-color:#ff9fb4}.alert-danger .alert-link{color:#520012}.alert-light{color:#818182;background-color:#fefefe;border-color:#fdfdfe}.alert-light hr{border-top-color:#ececf6}.alert-light .alert-link{color:#686868}.alert-dark{color:#1d1e1f;background-color:#d7d8d8;border-color:#c7c8c8}.alert-dark hr{border-top-color:#babbbb}.alert-dark .alert-link{color:#040505}@-webkit-keyframes progress-bar-stripes{from{background-position:0.5rem 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:0.5rem 0}to{background-position:0 0}}.progress{display:-webkit-box;display:-ms-flexbox;display:flex;height:0.5rem;overflow:hidden;line-height:0;font-size:0.703125rem;background-color:#e9ecef}.progress-bar{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;overflow:hidden;color:#fff;text-align:center;white-space:nowrap;background-color:#2780E3;-webkit-transition:width 0.6s ease;transition:width 0.6s ease}@media (prefers-reduced-motion: reduce){.progress-bar{-webkit-transition:none;transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg, rgba(255,255,255,0.15) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.15) 50%, rgba(255,255,255,0.15) 75%, transparent 75%, transparent);background-size:0.5rem 0.5rem}.progress-bar-animated{-webkit-animation:progress-bar-stripes 1s linear infinite;animation:progress-bar-stripes 1s linear infinite}@media (prefers-reduced-motion: reduce){.progress-bar-animated{-webkit-animation:none;animation:none}}.media{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start}.media-body{-webkit-box-flex:1;-ms-flex:1;flex:1}.list-group{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;padding-left:0;margin-bottom:0}.list-group-item-action{width:100%;color:#495057;text-align:inherit}.list-group-item-action:hover,.list-group-item-action:focus{z-index:1;color:#495057;text-decoration:none;background-color:#f8f9fa}.list-group-item-action:active{color:#373a3c;background-color:#e9ecef}.list-group-item{position:relative;display:block;padding:0.75rem 1.25rem;background-color:#fff;border:1px solid rgba(0,0,0,0.125)}.list-group-item.disabled,.list-group-item:disabled{color:#868e96;pointer-events:none;background-color:#fff}.list-group-item.active{z-index:2;color:#fff;background-color:#2780E3;border-color:#2780E3}.list-group-item+.list-group-item{border-top-width:0}.list-group-item+.list-group-item.active{margin-top:-1px;border-top-width:1px}.list-group-horizontal{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.list-group-horizontal>.list-group-item.active{margin-top:0}.list-group-horizontal>.list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal>.list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}@media (min-width: 576px){.list-group-horizontal-sm{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.list-group-horizontal-sm>.list-group-item.active{margin-top:0}.list-group-horizontal-sm>.list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-sm>.list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}@media (min-width: 768px){.list-group-horizontal-md{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.list-group-horizontal-md>.list-group-item.active{margin-top:0}.list-group-horizontal-md>.list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-md>.list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}@media (min-width: 992px){.list-group-horizontal-lg{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.list-group-horizontal-lg>.list-group-item.active{margin-top:0}.list-group-horizontal-lg>.list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-lg>.list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}@media (min-width: 1200px){.list-group-horizontal-xl{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}.list-group-horizontal-xl>.list-group-item.active{margin-top:0}.list-group-horizontal-xl>.list-group-item+.list-group-item{border-top-width:1px;border-left-width:0}.list-group-horizontal-xl>.list-group-item+.list-group-item.active{margin-left:-1px;border-left-width:1px}}.list-group-flush>.list-group-item{border-width:0 0 1px}.list-group-flush>.list-group-item:last-child{border-bottom-width:0}.list-group-item-primary{color:#144376;background-color:#c3dbf7}.list-group-item-primary.list-group-item-action:hover,.list-group-item-primary.list-group-item-action:focus{color:#144376;background-color:#adcef4}.list-group-item-primary.list-group-item-action.active{color:#fff;background-color:#144376;border-color:#144376}.list-group-item-secondary{color:#1d1e1f;background-color:#c7c8c8}.list-group-item-secondary.list-group-item-action:hover,.list-group-item-secondary.list-group-item-action:focus{color:#1d1e1f;background-color:#babbbb}.list-group-item-secondary.list-group-item-action.active{color:#fff;background-color:#1d1e1f;border-color:#1d1e1f}.list-group-item-success{color:#215f0c;background-color:#c9ebbe}.list-group-item-success.list-group-item-action:hover,.list-group-item-success.list-group-item-action:focus{color:#215f0c;background-color:#b9e5ab}.list-group-item-success.list-group-item-action.active{color:#fff;background-color:#215f0c;border-color:#215f0c}.list-group-item-info{color:#502c61;background-color:#e2cfec}.list-group-item-info.list-group-item-action:hover,.list-group-item-info.list-group-item-action:focus{color:#502c61;background-color:#d7bde5}.list-group-item-info.list-group-item-action.active{color:#fff;background-color:#502c61;border-color:#502c61}.list-group-item-warning{color:#853d0c;background-color:#ffd8be}.list-group-item-warning.list-group-item-action:hover,.list-group-item-warning.list-group-item-action:focus{color:#853d0c;background-color:#ffc9a5}.list-group-item-warning.list-group-item-action.active{color:#fff;background-color:#853d0c;border-color:#853d0c}.list-group-item-danger{color:#85001e;background-color:#ffb8c8}.list-group-item-danger.list-group-item-action:hover,.list-group-item-danger.list-group-item-action:focus{color:#85001e;background-color:#ff9fb4}.list-group-item-danger.list-group-item-action.active{color:#fff;background-color:#85001e;border-color:#85001e}.list-group-item-light{color:#818182;background-color:#fdfdfe}.list-group-item-light.list-group-item-action:hover,.list-group-item-light.list-group-item-action:focus{color:#818182;background-color:#ececf6}.list-group-item-light.list-group-item-action.active{color:#fff;background-color:#818182;border-color:#818182}.list-group-item-dark{color:#1d1e1f;background-color:#c7c8c8}.list-group-item-dark.list-group-item-action:hover,.list-group-item-dark.list-group-item-action:focus{color:#1d1e1f;background-color:#babbbb}.list-group-item-dark.list-group-item-action.active{color:#fff;background-color:#1d1e1f;border-color:#1d1e1f}.close{float:right;font-size:1.40625rem;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;opacity:.5}.close:hover{color:#000;text-decoration:none}.close:not(:disabled):not(.disabled):hover,.close:not(:disabled):not(.disabled):focus{opacity:.75}button.close{padding:0;background-color:transparent;border:0}a.close.disabled{pointer-events:none}.toast{max-width:350px;overflow:hidden;font-size:0.875rem;background-color:rgba(255,255,255,0.85);background-clip:padding-box;border:1px solid rgba(0,0,0,0.1);-webkit-box-shadow:0 0.25rem 0.75rem rgba(0,0,0,0.1);box-shadow:0 0.25rem 0.75rem rgba(0,0,0,0.1);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);opacity:0}.toast:not(:last-child){margin-bottom:0.75rem}.toast.showing{opacity:1}.toast.show{display:block;opacity:1}.toast.hide{display:none}.toast-header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;padding:0.25rem 0.75rem;color:#868e96;background-color:rgba(255,255,255,0.85);background-clip:padding-box;border-bottom:1px solid rgba(0,0,0,0.05)}.toast-body{padding:0.75rem}.modal-open{overflow:hidden}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal{position:fixed;top:0;left:0;z-index:1050;display:none;width:100%;height:100%;overflow:hidden;outline:0}.modal-dialog{position:relative;width:auto;margin:0.5rem;pointer-events:none}.modal.fade .modal-dialog{-webkit-transition:-webkit-transform 0.3s ease-out;transition:-webkit-transform 0.3s ease-out;transition:transform 0.3s ease-out;transition:transform 0.3s ease-out, -webkit-transform 0.3s ease-out;-webkit-transform:translate(0, -50px);transform:translate(0, -50px)}@media (prefers-reduced-motion: reduce){.modal.fade .modal-dialog{-webkit-transition:none;transition:none}}.modal.show .modal-dialog{-webkit-transform:none;transform:none}.modal.modal-static .modal-dialog{-webkit-transform:scale(1.02);transform:scale(1.02)}.modal-dialog-scrollable{display:-webkit-box;display:-ms-flexbox;display:flex;max-height:calc(100% - 1rem)}.modal-dialog-scrollable .modal-content{max-height:calc(100vh - 1rem);overflow:hidden}.modal-dialog-scrollable .modal-header,.modal-dialog-scrollable .modal-footer{-ms-flex-negative:0;flex-shrink:0}.modal-dialog-scrollable .modal-body{overflow-y:auto}.modal-dialog-centered{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;min-height:calc(100% - 1rem)}.modal-dialog-centered::before{display:block;height:calc(100vh - 1rem);height:-webkit-min-content;height:-moz-min-content;height:min-content;content:""}.modal-dialog-centered.modal-dialog-scrollable{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;height:100%}.modal-dialog-centered.modal-dialog-scrollable .modal-content{max-height:none}.modal-dialog-centered.modal-dialog-scrollable::before{content:none}.modal-content{position:relative;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;width:100%;pointer-events:auto;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,0.2);outline:0}.modal-backdrop{position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background-color:#000}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:0.5}.modal-header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:1rem 1rem;border-bottom:1px solid #dee2e6}.modal-header .close{padding:1rem 1rem;margin:-1rem -1rem -1rem auto}.modal-title{margin-bottom:0;line-height:1.5}.modal-body{position:relative;-webkit-box-flex:1;-ms-flex:1 1 auto;flex:1 1 auto;padding:1rem}.modal-footer{display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:end;-ms-flex-pack:end;justify-content:flex-end;padding:0.75rem;border-top:1px solid #dee2e6}.modal-footer>*{margin:0.25rem}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width: 576px){.modal-dialog{max-width:500px;margin:1.75rem auto}.modal-dialog-scrollable{max-height:calc(100% - 3.5rem)}.modal-dialog-scrollable .modal-content{max-height:calc(100vh - 3.5rem)}.modal-dialog-centered{min-height:calc(100% - 3.5rem)}.modal-dialog-centered::before{height:calc(100vh - 3.5rem);height:-webkit-min-content;height:-moz-min-content;height:min-content}.modal-sm{max-width:300px}}@media (min-width: 992px){.modal-lg,.modal-xl{max-width:800px}}@media (min-width: 1200px){.modal-xl{max-width:1140px}}.tooltip{position:absolute;z-index:1070;display:block;margin:0;font-family:"Segoe UI", "Source Sans Pro", Calibri, Candara, Arial, sans-serif;font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;white-space:normal;line-break:auto;font-size:0.8203125rem;word-wrap:break-word;opacity:0}.tooltip.show{opacity:0.9}.tooltip .arrow{position:absolute;display:block;width:0.8rem;height:0.4rem}.tooltip .arrow::before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-top,.bs-tooltip-auto[x-placement^="top"]{padding:0.4rem 0}.bs-tooltip-top .arrow,.bs-tooltip-auto[x-placement^="top"] .arrow{bottom:0}.bs-tooltip-top .arrow::before,.bs-tooltip-auto[x-placement^="top"] .arrow::before{top:0;border-width:0.4rem 0.4rem 0;border-top-color:#000}.bs-tooltip-right,.bs-tooltip-auto[x-placement^="right"]{padding:0 0.4rem}.bs-tooltip-right .arrow,.bs-tooltip-auto[x-placement^="right"] .arrow{left:0;width:0.4rem;height:0.8rem}.bs-tooltip-right .arrow::before,.bs-tooltip-auto[x-placement^="right"] .arrow::before{right:0;border-width:0.4rem 0.4rem 0.4rem 0;border-right-color:#000}.bs-tooltip-bottom,.bs-tooltip-auto[x-placement^="bottom"]{padding:0.4rem 0}.bs-tooltip-bottom .arrow,.bs-tooltip-auto[x-placement^="bottom"] .arrow{top:0}.bs-tooltip-bottom .arrow::before,.bs-tooltip-auto[x-placement^="bottom"] .arrow::before{bottom:0;border-width:0 0.4rem 0.4rem;border-bottom-color:#000}.bs-tooltip-left,.bs-tooltip-auto[x-placement^="left"]{padding:0 0.4rem}.bs-tooltip-left .arrow,.bs-tooltip-auto[x-placement^="left"] .arrow{right:0;width:0.4rem;height:0.8rem}.bs-tooltip-left .arrow::before,.bs-tooltip-auto[x-placement^="left"] .arrow::before{left:0;border-width:0.4rem 0 0.4rem 0.4rem;border-left-color:#000}.tooltip-inner{max-width:200px;padding:0.25rem 0.5rem;color:#fff;text-align:center;background-color:#000}.popover{position:absolute;top:0;left:0;z-index:1060;display:block;max-width:276px;font-family:"Segoe UI", "Source Sans Pro", Calibri, Candara, Arial, sans-serif;font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;white-space:normal;line-break:auto;font-size:0.8203125rem;word-wrap:break-word;background-color:#fff;background-clip:padding-box;border:1px solid rgba(0,0,0,0.2)}.popover .arrow{position:absolute;display:block;width:1rem;height:0.5rem;margin:0 0.3rem}.popover .arrow::before,.popover .arrow::after{position:absolute;display:block;content:"";border-color:transparent;border-style:solid}.bs-popover-top,.bs-popover-auto[x-placement^="top"]{margin-bottom:0.5rem}.bs-popover-top>.arrow,.bs-popover-auto[x-placement^="top"]>.arrow{bottom:calc(-0.5rem - 1px)}.bs-popover-top>.arrow::before,.bs-popover-auto[x-placement^="top"]>.arrow::before{bottom:0;border-width:0.5rem 0.5rem 0;border-top-color:rgba(0,0,0,0.25)}.bs-popover-top>.arrow::after,.bs-popover-auto[x-placement^="top"]>.arrow::after{bottom:1px;border-width:0.5rem 0.5rem 0;border-top-color:#fff}.bs-popover-right,.bs-popover-auto[x-placement^="right"]{margin-left:0.5rem}.bs-popover-right>.arrow,.bs-popover-auto[x-placement^="right"]>.arrow{left:calc(-0.5rem - 1px);width:0.5rem;height:1rem;margin:0.3rem 0}.bs-popover-right>.arrow::before,.bs-popover-auto[x-placement^="right"]>.arrow::before{left:0;border-width:0.5rem 0.5rem 0.5rem 0;border-right-color:rgba(0,0,0,0.25)}.bs-popover-right>.arrow::after,.bs-popover-auto[x-placement^="right"]>.arrow::after{left:1px;border-width:0.5rem 0.5rem 0.5rem 0;border-right-color:#fff}.bs-popover-bottom,.bs-popover-auto[x-placement^="bottom"]{margin-top:0.5rem}.bs-popover-bottom>.arrow,.bs-popover-auto[x-placement^="bottom"]>.arrow{top:calc(-0.5rem - 1px)}.bs-popover-bottom>.arrow::before,.bs-popover-auto[x-placement^="bottom"]>.arrow::before{top:0;border-width:0 0.5rem 0.5rem 0.5rem;border-bottom-color:rgba(0,0,0,0.25)}.bs-popover-bottom>.arrow::after,.bs-popover-auto[x-placement^="bottom"]>.arrow::after{top:1px;border-width:0 0.5rem 0.5rem 0.5rem;border-bottom-color:#fff}.bs-popover-bottom .popover-header::before,.bs-popover-auto[x-placement^="bottom"] .popover-header::before{position:absolute;top:0;left:50%;display:block;width:1rem;margin-left:-0.5rem;content:"";border-bottom:1px solid #f7f7f7}.bs-popover-left,.bs-popover-auto[x-placement^="left"]{margin-right:0.5rem}.bs-popover-left>.arrow,.bs-popover-auto[x-placement^="left"]>.arrow{right:calc(-0.5rem - 1px);width:0.5rem;height:1rem;margin:0.3rem 0}.bs-popover-left>.arrow::before,.bs-popover-auto[x-placement^="left"]>.arrow::before{right:0;border-width:0.5rem 0 0.5rem 0.5rem;border-left-color:rgba(0,0,0,0.25)}.bs-popover-left>.arrow::after,.bs-popover-auto[x-placement^="left"]>.arrow::after{right:1px;border-width:0.5rem 0 0.5rem 0.5rem;border-left-color:#fff}.popover-header{padding:0.5rem 0.75rem;margin-bottom:0;font-size:0.9375rem;background-color:#f7f7f7;border-bottom:1px solid #ebebeb}.popover-header:empty{display:none}.popover-body{padding:0.5rem 0.75rem;color:#373a3c}.carousel{position:relative}.carousel.pointer-event{-ms-touch-action:pan-y;touch-action:pan-y}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner::after{display:block;clear:both;content:""}.carousel-item{position:relative;display:none;float:left;width:100%;margin-right:-100%;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-transition:-webkit-transform 0.6s ease-in-out;transition:-webkit-transform 0.6s ease-in-out;transition:transform 0.6s ease-in-out;transition:transform 0.6s ease-in-out, -webkit-transform 0.6s ease-in-out}@media (prefers-reduced-motion: reduce){.carousel-item{-webkit-transition:none;transition:none}}.carousel-item.active,.carousel-item-next,.carousel-item-prev{display:block}.carousel-item-next:not(.carousel-item-left),.active.carousel-item-right{-webkit-transform:translateX(100%);transform:translateX(100%)}.carousel-item-prev:not(.carousel-item-right),.active.carousel-item-left{-webkit-transform:translateX(-100%);transform:translateX(-100%)}.carousel-fade .carousel-item{opacity:0;-webkit-transition-property:opacity;transition-property:opacity;-webkit-transform:none;transform:none}.carousel-fade .carousel-item.active,.carousel-fade .carousel-item-next.carousel-item-left,.carousel-fade .carousel-item-prev.carousel-item-right{z-index:1;opacity:1}.carousel-fade .active.carousel-item-left,.carousel-fade .active.carousel-item-right{z-index:0;opacity:0;-webkit-transition:opacity 0s 0.6s;transition:opacity 0s 0.6s}@media (prefers-reduced-motion: reduce){.carousel-fade .active.carousel-item-left,.carousel-fade .active.carousel-item-right{-webkit-transition:none;transition:none}}.carousel-control-prev,.carousel-control-next{position:absolute;top:0;bottom:0;z-index:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:15%;color:#fff;text-align:center;opacity:0.5;-webkit-transition:opacity 0.15s ease;transition:opacity 0.15s ease}@media (prefers-reduced-motion: reduce){.carousel-control-prev,.carousel-control-next{-webkit-transition:none;transition:none}}.carousel-control-prev:hover,.carousel-control-prev:focus,.carousel-control-next:hover,.carousel-control-next:focus{color:#fff;text-decoration:none;outline:0;opacity:0.9}.carousel-control-prev{left:0}.carousel-control-next{right:0}.carousel-control-prev-icon,.carousel-control-next-icon{display:inline-block;width:20px;height:20px;background:no-repeat 50% / 100% 100%}.carousel-control-prev-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5L4.25 4l2.5-2.5L5.25 0z'/%3e%3c/svg%3e")}.carousel-control-next-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23fff' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5L3.75 4l-2.5 2.5L2.75 8l4-4-4-4z'/%3e%3c/svg%3e")}.carousel-indicators{position:absolute;right:0;bottom:0;left:0;z-index:15;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;padding-left:0;margin-right:15%;margin-left:15%;list-style:none}.carousel-indicators li{-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-box-flex:0;-ms-flex:0 1 auto;flex:0 1 auto;width:30px;height:3px;margin-right:3px;margin-left:3px;text-indent:-999px;cursor:pointer;background-color:#fff;background-clip:padding-box;border-top:10px solid transparent;border-bottom:10px solid transparent;opacity:.5;-webkit-transition:opacity 0.6s ease;transition:opacity 0.6s ease}@media (prefers-reduced-motion: reduce){.carousel-indicators li{-webkit-transition:none;transition:none}}.carousel-indicators .active{opacity:1}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center}@-webkit-keyframes spinner-border{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes spinner-border{to{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.spinner-border{display:inline-block;width:2rem;height:2rem;vertical-align:text-bottom;border:0.25em solid currentColor;border-right-color:transparent;border-radius:50%;-webkit-animation:spinner-border .75s linear infinite;animation:spinner-border .75s linear infinite}.spinner-border-sm{width:1rem;height:1rem;border-width:0.2em}@-webkit-keyframes spinner-grow{0%{-webkit-transform:scale(0);transform:scale(0)}50%{opacity:1;-webkit-transform:none;transform:none}}@keyframes spinner-grow{0%{-webkit-transform:scale(0);transform:scale(0)}50%{opacity:1;-webkit-transform:none;transform:none}}.spinner-grow{display:inline-block;width:2rem;height:2rem;vertical-align:text-bottom;background-color:currentColor;border-radius:50%;opacity:0;-webkit-animation:spinner-grow .75s linear infinite;animation:spinner-grow .75s linear infinite}.spinner-grow-sm{width:1rem;height:1rem}.align-baseline{vertical-align:baseline !important}.align-top{vertical-align:top !important}.align-middle{vertical-align:middle !important}.align-bottom{vertical-align:bottom !important}.align-text-bottom{vertical-align:text-bottom !important}.align-text-top{vertical-align:text-top !important}.bg-primary{background-color:#2780E3 !important}a.bg-primary:hover,a.bg-primary:focus,button.bg-primary:hover,button.bg-primary:focus{background-color:#1967be !important}.bg-secondary{background-color:#373a3c !important}a.bg-secondary:hover,a.bg-secondary:focus,button.bg-secondary:hover,button.bg-secondary:focus{background-color:#1f2021 !important}.bg-success{background-color:#3FB618 !important}a.bg-success:hover,a.bg-success:focus,button.bg-success:hover,button.bg-success:focus{background-color:#2f8912 !important}.bg-info{background-color:#9954BB !important}a.bg-info:hover,a.bg-info:focus,button.bg-info:hover,button.bg-info:focus{background-color:#7e3f9d !important}.bg-warning{background-color:#FF7518 !important}a.bg-warning:hover,a.bg-warning:focus,button.bg-warning:hover,button.bg-warning:focus{background-color:#e45c00 !important}.bg-danger{background-color:#FF0039 !important}a.bg-danger:hover,a.bg-danger:focus,button.bg-danger:hover,button.bg-danger:focus{background-color:#cc002e !important}.bg-light{background-color:#f8f9fa !important}a.bg-light:hover,a.bg-light:focus,button.bg-light:hover,button.bg-light:focus{background-color:#dae0e5 !important}.bg-dark{background-color:#373a3c !important}a.bg-dark:hover,a.bg-dark:focus,button.bg-dark:hover,button.bg-dark:focus{background-color:#1f2021 !important}.bg-white{background-color:#fff !important}.bg-transparent{background-color:transparent !important}.border{border:1px solid #dee2e6 !important}.border-top{border-top:1px solid #dee2e6 !important}.border-right{border-right:1px solid #dee2e6 !important}.border-bottom{border-bottom:1px solid #dee2e6 !important}.border-left{border-left:1px solid #dee2e6 !important}.border-0{border:0 !important}.border-top-0{border-top:0 !important}.border-right-0{border-right:0 !important}.border-bottom-0{border-bottom:0 !important}.border-left-0{border-left:0 !important}.border-primary{border-color:#2780E3 !important}.border-secondary{border-color:#373a3c !important}.border-success{border-color:#3FB618 !important}.border-info{border-color:#9954BB !important}.border-warning{border-color:#FF7518 !important}.border-danger{border-color:#FF0039 !important}.border-light{border-color:#f8f9fa !important}.border-dark{border-color:#373a3c !important}.border-white{border-color:#fff !important}.rounded-sm{border-radius:0.2rem !important}.rounded{border-radius:0.25rem !important}.rounded-top{border-top-left-radius:0.25rem !important;border-top-right-radius:0.25rem !important}.rounded-right{border-top-right-radius:0.25rem !important;border-bottom-right-radius:0.25rem !important}.rounded-bottom{border-bottom-right-radius:0.25rem !important;border-bottom-left-radius:0.25rem !important}.rounded-left{border-top-left-radius:0.25rem !important;border-bottom-left-radius:0.25rem !important}.rounded-lg{border-radius:0.3rem !important}.rounded-circle{border-radius:50% !important}.rounded-pill{border-radius:50rem !important}.rounded-0{border-radius:0 !important}.clearfix::after{display:block;clear:both;content:""}.d-none{display:none !important}.d-inline{display:inline !important}.d-inline-block{display:inline-block !important}.d-block{display:block !important}.d-table{display:table !important}.d-table-row{display:table-row !important}.d-table-cell{display:table-cell !important}.d-flex{display:-webkit-box !important;display:-ms-flexbox !important;display:flex !important}.d-inline-flex{display:-webkit-inline-box !important;display:-ms-inline-flexbox !important;display:inline-flex !important}@media (min-width: 576px){.d-sm-none{display:none !important}.d-sm-inline{display:inline !important}.d-sm-inline-block{display:inline-block !important}.d-sm-block{display:block !important}.d-sm-table{display:table !important}.d-sm-table-row{display:table-row !important}.d-sm-table-cell{display:table-cell !important}.d-sm-flex{display:-webkit-box !important;display:-ms-flexbox !important;display:flex !important}.d-sm-inline-flex{display:-webkit-inline-box !important;display:-ms-inline-flexbox !important;display:inline-flex !important}}@media (min-width: 768px){.d-md-none{display:none !important}.d-md-inline{display:inline !important}.d-md-inline-block{display:inline-block !important}.d-md-block{display:block !important}.d-md-table{display:table !important}.d-md-table-row{display:table-row !important}.d-md-table-cell{display:table-cell !important}.d-md-flex{display:-webkit-box !important;display:-ms-flexbox !important;display:flex !important}.d-md-inline-flex{display:-webkit-inline-box !important;display:-ms-inline-flexbox !important;display:inline-flex !important}}@media (min-width: 992px){.d-lg-none{display:none !important}.d-lg-inline{display:inline !important}.d-lg-inline-block{display:inline-block !important}.d-lg-block{display:block !important}.d-lg-table{display:table !important}.d-lg-table-row{display:table-row !important}.d-lg-table-cell{display:table-cell !important}.d-lg-flex{display:-webkit-box !important;display:-ms-flexbox !important;display:flex !important}.d-lg-inline-flex{display:-webkit-inline-box !important;display:-ms-inline-flexbox !important;display:inline-flex !important}}@media (min-width: 1200px){.d-xl-none{display:none !important}.d-xl-inline{display:inline !important}.d-xl-inline-block{display:inline-block !important}.d-xl-block{display:block !important}.d-xl-table{display:table !important}.d-xl-table-row{display:table-row !important}.d-xl-table-cell{display:table-cell !important}.d-xl-flex{display:-webkit-box !important;display:-ms-flexbox !important;display:flex !important}.d-xl-inline-flex{display:-webkit-inline-box !important;display:-ms-inline-flexbox !important;display:inline-flex !important}}@media print{.d-print-none{display:none !important}.d-print-inline{display:inline !important}.d-print-inline-block{display:inline-block !important}.d-print-block{display:block !important}.d-print-table{display:table !important}.d-print-table-row{display:table-row !important}.d-print-table-cell{display:table-cell !important}.d-print-flex{display:-webkit-box !important;display:-ms-flexbox !important;display:flex !important}.d-print-inline-flex{display:-webkit-inline-box !important;display:-ms-inline-flexbox !important;display:inline-flex !important}}.embed-responsive{position:relative;display:block;width:100%;padding:0;overflow:hidden}.embed-responsive::before{display:block;content:""}.embed-responsive .embed-responsive-item,.embed-responsive iframe,.embed-responsive embed,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-21by9::before{padding-top:42.8571428571%}.embed-responsive-16by9::before{padding-top:56.25%}.embed-responsive-4by3::before{padding-top:75%}.embed-responsive-1by1::before{padding-top:100%}.flex-row{-webkit-box-orient:horizontal !important;-webkit-box-direction:normal !important;-ms-flex-direction:row !important;flex-direction:row !important}.flex-column{-webkit-box-orient:vertical !important;-webkit-box-direction:normal !important;-ms-flex-direction:column !important;flex-direction:column !important}.flex-row-reverse{-webkit-box-orient:horizontal !important;-webkit-box-direction:reverse !important;-ms-flex-direction:row-reverse !important;flex-direction:row-reverse !important}.flex-column-reverse{-webkit-box-orient:vertical !important;-webkit-box-direction:reverse !important;-ms-flex-direction:column-reverse !important;flex-direction:column-reverse !important}.flex-wrap{-ms-flex-wrap:wrap !important;flex-wrap:wrap !important}.flex-nowrap{-ms-flex-wrap:nowrap !important;flex-wrap:nowrap !important}.flex-wrap-reverse{-ms-flex-wrap:wrap-reverse !important;flex-wrap:wrap-reverse !important}.flex-fill{-webkit-box-flex:1 !important;-ms-flex:1 1 auto !important;flex:1 1 auto !important}.flex-grow-0{-webkit-box-flex:0 !important;-ms-flex-positive:0 !important;flex-grow:0 !important}.flex-grow-1{-webkit-box-flex:1 !important;-ms-flex-positive:1 !important;flex-grow:1 !important}.flex-shrink-0{-ms-flex-negative:0 !important;flex-shrink:0 !important}.flex-shrink-1{-ms-flex-negative:1 !important;flex-shrink:1 !important}.justify-content-start{-webkit-box-pack:start !important;-ms-flex-pack:start !important;justify-content:flex-start !important}.justify-content-end{-webkit-box-pack:end !important;-ms-flex-pack:end !important;justify-content:flex-end !important}.justify-content-center{-webkit-box-pack:center !important;-ms-flex-pack:center !important;justify-content:center !important}.justify-content-between{-webkit-box-pack:justify !important;-ms-flex-pack:justify !important;justify-content:space-between !important}.justify-content-around{-ms-flex-pack:distribute !important;justify-content:space-around !important}.align-items-start{-webkit-box-align:start !important;-ms-flex-align:start !important;align-items:flex-start !important}.align-items-end{-webkit-box-align:end !important;-ms-flex-align:end !important;align-items:flex-end !important}.align-items-center{-webkit-box-align:center !important;-ms-flex-align:center !important;align-items:center !important}.align-items-baseline{-webkit-box-align:baseline !important;-ms-flex-align:baseline !important;align-items:baseline !important}.align-items-stretch{-webkit-box-align:stretch !important;-ms-flex-align:stretch !important;align-items:stretch !important}.align-content-start{-ms-flex-line-pack:start !important;align-content:flex-start !important}.align-content-end{-ms-flex-line-pack:end !important;align-content:flex-end !important}.align-content-center{-ms-flex-line-pack:center !important;align-content:center !important}.align-content-between{-ms-flex-line-pack:justify !important;align-content:space-between !important}.align-content-around{-ms-flex-line-pack:distribute !important;align-content:space-around !important}.align-content-stretch{-ms-flex-line-pack:stretch !important;align-content:stretch !important}.align-self-auto{-ms-flex-item-align:auto !important;align-self:auto !important}.align-self-start{-ms-flex-item-align:start !important;align-self:flex-start !important}.align-self-end{-ms-flex-item-align:end !important;align-self:flex-end !important}.align-self-center{-ms-flex-item-align:center !important;align-self:center !important}.align-self-baseline{-ms-flex-item-align:baseline !important;align-self:baseline !important}.align-self-stretch{-ms-flex-item-align:stretch !important;align-self:stretch !important}@media (min-width: 576px){.flex-sm-row{-webkit-box-orient:horizontal !important;-webkit-box-direction:normal !important;-ms-flex-direction:row !important;flex-direction:row !important}.flex-sm-column{-webkit-box-orient:vertical !important;-webkit-box-direction:normal !important;-ms-flex-direction:column !important;flex-direction:column !important}.flex-sm-row-reverse{-webkit-box-orient:horizontal !important;-webkit-box-direction:reverse !important;-ms-flex-direction:row-reverse !important;flex-direction:row-reverse !important}.flex-sm-column-reverse{-webkit-box-orient:vertical !important;-webkit-box-direction:reverse !important;-ms-flex-direction:column-reverse !important;flex-direction:column-reverse !important}.flex-sm-wrap{-ms-flex-wrap:wrap !important;flex-wrap:wrap !important}.flex-sm-nowrap{-ms-flex-wrap:nowrap !important;flex-wrap:nowrap !important}.flex-sm-wrap-reverse{-ms-flex-wrap:wrap-reverse !important;flex-wrap:wrap-reverse !important}.flex-sm-fill{-webkit-box-flex:1 !important;-ms-flex:1 1 auto !important;flex:1 1 auto !important}.flex-sm-grow-0{-webkit-box-flex:0 !important;-ms-flex-positive:0 !important;flex-grow:0 !important}.flex-sm-grow-1{-webkit-box-flex:1 !important;-ms-flex-positive:1 !important;flex-grow:1 !important}.flex-sm-shrink-0{-ms-flex-negative:0 !important;flex-shrink:0 !important}.flex-sm-shrink-1{-ms-flex-negative:1 !important;flex-shrink:1 !important}.justify-content-sm-start{-webkit-box-pack:start !important;-ms-flex-pack:start !important;justify-content:flex-start !important}.justify-content-sm-end{-webkit-box-pack:end !important;-ms-flex-pack:end !important;justify-content:flex-end !important}.justify-content-sm-center{-webkit-box-pack:center !important;-ms-flex-pack:center !important;justify-content:center !important}.justify-content-sm-between{-webkit-box-pack:justify !important;-ms-flex-pack:justify !important;justify-content:space-between !important}.justify-content-sm-around{-ms-flex-pack:distribute !important;justify-content:space-around !important}.align-items-sm-start{-webkit-box-align:start !important;-ms-flex-align:start !important;align-items:flex-start !important}.align-items-sm-end{-webkit-box-align:end !important;-ms-flex-align:end !important;align-items:flex-end !important}.align-items-sm-center{-webkit-box-align:center !important;-ms-flex-align:center !important;align-items:center !important}.align-items-sm-baseline{-webkit-box-align:baseline !important;-ms-flex-align:baseline !important;align-items:baseline !important}.align-items-sm-stretch{-webkit-box-align:stretch !important;-ms-flex-align:stretch !important;align-items:stretch !important}.align-content-sm-start{-ms-flex-line-pack:start !important;align-content:flex-start !important}.align-content-sm-end{-ms-flex-line-pack:end !important;align-content:flex-end !important}.align-content-sm-center{-ms-flex-line-pack:center !important;align-content:center !important}.align-content-sm-between{-ms-flex-line-pack:justify !important;align-content:space-between !important}.align-content-sm-around{-ms-flex-line-pack:distribute !important;align-content:space-around !important}.align-content-sm-stretch{-ms-flex-line-pack:stretch !important;align-content:stretch !important}.align-self-sm-auto{-ms-flex-item-align:auto !important;align-self:auto !important}.align-self-sm-start{-ms-flex-item-align:start !important;align-self:flex-start !important}.align-self-sm-end{-ms-flex-item-align:end !important;align-self:flex-end !important}.align-self-sm-center{-ms-flex-item-align:center !important;align-self:center !important}.align-self-sm-baseline{-ms-flex-item-align:baseline !important;align-self:baseline !important}.align-self-sm-stretch{-ms-flex-item-align:stretch !important;align-self:stretch !important}}@media (min-width: 768px){.flex-md-row{-webkit-box-orient:horizontal !important;-webkit-box-direction:normal !important;-ms-flex-direction:row !important;flex-direction:row !important}.flex-md-column{-webkit-box-orient:vertical !important;-webkit-box-direction:normal !important;-ms-flex-direction:column !important;flex-direction:column !important}.flex-md-row-reverse{-webkit-box-orient:horizontal !important;-webkit-box-direction:reverse !important;-ms-flex-direction:row-reverse !important;flex-direction:row-reverse !important}.flex-md-column-reverse{-webkit-box-orient:vertical !important;-webkit-box-direction:reverse !important;-ms-flex-direction:column-reverse !important;flex-direction:column-reverse !important}.flex-md-wrap{-ms-flex-wrap:wrap !important;flex-wrap:wrap !important}.flex-md-nowrap{-ms-flex-wrap:nowrap !important;flex-wrap:nowrap !important}.flex-md-wrap-reverse{-ms-flex-wrap:wrap-reverse !important;flex-wrap:wrap-reverse !important}.flex-md-fill{-webkit-box-flex:1 !important;-ms-flex:1 1 auto !important;flex:1 1 auto !important}.flex-md-grow-0{-webkit-box-flex:0 !important;-ms-flex-positive:0 !important;flex-grow:0 !important}.flex-md-grow-1{-webkit-box-flex:1 !important;-ms-flex-positive:1 !important;flex-grow:1 !important}.flex-md-shrink-0{-ms-flex-negative:0 !important;flex-shrink:0 !important}.flex-md-shrink-1{-ms-flex-negative:1 !important;flex-shrink:1 !important}.justify-content-md-start{-webkit-box-pack:start !important;-ms-flex-pack:start !important;justify-content:flex-start !important}.justify-content-md-end{-webkit-box-pack:end !important;-ms-flex-pack:end !important;justify-content:flex-end !important}.justify-content-md-center{-webkit-box-pack:center !important;-ms-flex-pack:center !important;justify-content:center !important}.justify-content-md-between{-webkit-box-pack:justify !important;-ms-flex-pack:justify !important;justify-content:space-between !important}.justify-content-md-around{-ms-flex-pack:distribute !important;justify-content:space-around !important}.align-items-md-start{-webkit-box-align:start !important;-ms-flex-align:start !important;align-items:flex-start !important}.align-items-md-end{-webkit-box-align:end !important;-ms-flex-align:end !important;align-items:flex-end !important}.align-items-md-center{-webkit-box-align:center !important;-ms-flex-align:center !important;align-items:center !important}.align-items-md-baseline{-webkit-box-align:baseline !important;-ms-flex-align:baseline !important;align-items:baseline !important}.align-items-md-stretch{-webkit-box-align:stretch !important;-ms-flex-align:stretch !important;align-items:stretch !important}.align-content-md-start{-ms-flex-line-pack:start !important;align-content:flex-start !important}.align-content-md-end{-ms-flex-line-pack:end !important;align-content:flex-end !important}.align-content-md-center{-ms-flex-line-pack:center !important;align-content:center !important}.align-content-md-between{-ms-flex-line-pack:justify !important;align-content:space-between !important}.align-content-md-around{-ms-flex-line-pack:distribute !important;align-content:space-around !important}.align-content-md-stretch{-ms-flex-line-pack:stretch !important;align-content:stretch !important}.align-self-md-auto{-ms-flex-item-align:auto !important;align-self:auto !important}.align-self-md-start{-ms-flex-item-align:start !important;align-self:flex-start !important}.align-self-md-end{-ms-flex-item-align:end !important;align-self:flex-end !important}.align-self-md-center{-ms-flex-item-align:center !important;align-self:center !important}.align-self-md-baseline{-ms-flex-item-align:baseline !important;align-self:baseline !important}.align-self-md-stretch{-ms-flex-item-align:stretch !important;align-self:stretch !important}}@media (min-width: 992px){.flex-lg-row{-webkit-box-orient:horizontal !important;-webkit-box-direction:normal !important;-ms-flex-direction:row !important;flex-direction:row !important}.flex-lg-column{-webkit-box-orient:vertical !important;-webkit-box-direction:normal !important;-ms-flex-direction:column !important;flex-direction:column !important}.flex-lg-row-reverse{-webkit-box-orient:horizontal !important;-webkit-box-direction:reverse !important;-ms-flex-direction:row-reverse !important;flex-direction:row-reverse !important}.flex-lg-column-reverse{-webkit-box-orient:vertical !important;-webkit-box-direction:reverse !important;-ms-flex-direction:column-reverse !important;flex-direction:column-reverse !important}.flex-lg-wrap{-ms-flex-wrap:wrap !important;flex-wrap:wrap !important}.flex-lg-nowrap{-ms-flex-wrap:nowrap !important;flex-wrap:nowrap !important}.flex-lg-wrap-reverse{-ms-flex-wrap:wrap-reverse !important;flex-wrap:wrap-reverse !important}.flex-lg-fill{-webkit-box-flex:1 !important;-ms-flex:1 1 auto !important;flex:1 1 auto !important}.flex-lg-grow-0{-webkit-box-flex:0 !important;-ms-flex-positive:0 !important;flex-grow:0 !important}.flex-lg-grow-1{-webkit-box-flex:1 !important;-ms-flex-positive:1 !important;flex-grow:1 !important}.flex-lg-shrink-0{-ms-flex-negative:0 !important;flex-shrink:0 !important}.flex-lg-shrink-1{-ms-flex-negative:1 !important;flex-shrink:1 !important}.justify-content-lg-start{-webkit-box-pack:start !important;-ms-flex-pack:start !important;justify-content:flex-start !important}.justify-content-lg-end{-webkit-box-pack:end !important;-ms-flex-pack:end !important;justify-content:flex-end !important}.justify-content-lg-center{-webkit-box-pack:center !important;-ms-flex-pack:center !important;justify-content:center !important}.justify-content-lg-between{-webkit-box-pack:justify !important;-ms-flex-pack:justify !important;justify-content:space-between !important}.justify-content-lg-around{-ms-flex-pack:distribute !important;justify-content:space-around !important}.align-items-lg-start{-webkit-box-align:start !important;-ms-flex-align:start !important;align-items:flex-start !important}.align-items-lg-end{-webkit-box-align:end !important;-ms-flex-align:end !important;align-items:flex-end !important}.align-items-lg-center{-webkit-box-align:center !important;-ms-flex-align:center !important;align-items:center !important}.align-items-lg-baseline{-webkit-box-align:baseline !important;-ms-flex-align:baseline !important;align-items:baseline !important}.align-items-lg-stretch{-webkit-box-align:stretch !important;-ms-flex-align:stretch !important;align-items:stretch !important}.align-content-lg-start{-ms-flex-line-pack:start !important;align-content:flex-start !important}.align-content-lg-end{-ms-flex-line-pack:end !important;align-content:flex-end !important}.align-content-lg-center{-ms-flex-line-pack:center !important;align-content:center !important}.align-content-lg-between{-ms-flex-line-pack:justify !important;align-content:space-between !important}.align-content-lg-around{-ms-flex-line-pack:distribute !important;align-content:space-around !important}.align-content-lg-stretch{-ms-flex-line-pack:stretch !important;align-content:stretch !important}.align-self-lg-auto{-ms-flex-item-align:auto !important;align-self:auto !important}.align-self-lg-start{-ms-flex-item-align:start !important;align-self:flex-start !important}.align-self-lg-end{-ms-flex-item-align:end !important;align-self:flex-end !important}.align-self-lg-center{-ms-flex-item-align:center !important;align-self:center !important}.align-self-lg-baseline{-ms-flex-item-align:baseline !important;align-self:baseline !important}.align-self-lg-stretch{-ms-flex-item-align:stretch !important;align-self:stretch !important}}@media (min-width: 1200px){.flex-xl-row{-webkit-box-orient:horizontal !important;-webkit-box-direction:normal !important;-ms-flex-direction:row !important;flex-direction:row !important}.flex-xl-column{-webkit-box-orient:vertical !important;-webkit-box-direction:normal !important;-ms-flex-direction:column !important;flex-direction:column !important}.flex-xl-row-reverse{-webkit-box-orient:horizontal !important;-webkit-box-direction:reverse !important;-ms-flex-direction:row-reverse !important;flex-direction:row-reverse !important}.flex-xl-column-reverse{-webkit-box-orient:vertical !important;-webkit-box-direction:reverse !important;-ms-flex-direction:column-reverse !important;flex-direction:column-reverse !important}.flex-xl-wrap{-ms-flex-wrap:wrap !important;flex-wrap:wrap !important}.flex-xl-nowrap{-ms-flex-wrap:nowrap !important;flex-wrap:nowrap !important}.flex-xl-wrap-reverse{-ms-flex-wrap:wrap-reverse !important;flex-wrap:wrap-reverse !important}.flex-xl-fill{-webkit-box-flex:1 !important;-ms-flex:1 1 auto !important;flex:1 1 auto !important}.flex-xl-grow-0{-webkit-box-flex:0 !important;-ms-flex-positive:0 !important;flex-grow:0 !important}.flex-xl-grow-1{-webkit-box-flex:1 !important;-ms-flex-positive:1 !important;flex-grow:1 !important}.flex-xl-shrink-0{-ms-flex-negative:0 !important;flex-shrink:0 !important}.flex-xl-shrink-1{-ms-flex-negative:1 !important;flex-shrink:1 !important}.justify-content-xl-start{-webkit-box-pack:start !important;-ms-flex-pack:start !important;justify-content:flex-start !important}.justify-content-xl-end{-webkit-box-pack:end !important;-ms-flex-pack:end !important;justify-content:flex-end !important}.justify-content-xl-center{-webkit-box-pack:center !important;-ms-flex-pack:center !important;justify-content:center !important}.justify-content-xl-between{-webkit-box-pack:justify !important;-ms-flex-pack:justify !important;justify-content:space-between !important}.justify-content-xl-around{-ms-flex-pack:distribute !important;justify-content:space-around !important}.align-items-xl-start{-webkit-box-align:start !important;-ms-flex-align:start !important;align-items:flex-start !important}.align-items-xl-end{-webkit-box-align:end !important;-ms-flex-align:end !important;align-items:flex-end !important}.align-items-xl-center{-webkit-box-align:center !important;-ms-flex-align:center !important;align-items:center !important}.align-items-xl-baseline{-webkit-box-align:baseline !important;-ms-flex-align:baseline !important;align-items:baseline !important}.align-items-xl-stretch{-webkit-box-align:stretch !important;-ms-flex-align:stretch !important;align-items:stretch !important}.align-content-xl-start{-ms-flex-line-pack:start !important;align-content:flex-start !important}.align-content-xl-end{-ms-flex-line-pack:end !important;align-content:flex-end !important}.align-content-xl-center{-ms-flex-line-pack:center !important;align-content:center !important}.align-content-xl-between{-ms-flex-line-pack:justify !important;align-content:space-between !important}.align-content-xl-around{-ms-flex-line-pack:distribute !important;align-content:space-around !important}.align-content-xl-stretch{-ms-flex-line-pack:stretch !important;align-content:stretch !important}.align-self-xl-auto{-ms-flex-item-align:auto !important;align-self:auto !important}.align-self-xl-start{-ms-flex-item-align:start !important;align-self:flex-start !important}.align-self-xl-end{-ms-flex-item-align:end !important;align-self:flex-end !important}.align-self-xl-center{-ms-flex-item-align:center !important;align-self:center !important}.align-self-xl-baseline{-ms-flex-item-align:baseline !important;align-self:baseline !important}.align-self-xl-stretch{-ms-flex-item-align:stretch !important;align-self:stretch !important}}.float-left{float:left !important}.float-right{float:right !important}.float-none{float:none !important}@media (min-width: 576px){.float-sm-left{float:left !important}.float-sm-right{float:right !important}.float-sm-none{float:none !important}}@media (min-width: 768px){.float-md-left{float:left !important}.float-md-right{float:right !important}.float-md-none{float:none !important}}@media (min-width: 992px){.float-lg-left{float:left !important}.float-lg-right{float:right !important}.float-lg-none{float:none !important}}@media (min-width: 1200px){.float-xl-left{float:left !important}.float-xl-right{float:right !important}.float-xl-none{float:none !important}}.user-select-all{-webkit-user-select:all !important;-moz-user-select:all !important;-ms-user-select:all !important;user-select:all !important}.user-select-auto{-webkit-user-select:auto !important;-moz-user-select:auto !important;-ms-user-select:auto !important;user-select:auto !important}.user-select-none{-webkit-user-select:none !important;-moz-user-select:none !important;-ms-user-select:none !important;user-select:none !important}.overflow-auto{overflow:auto !important}.overflow-hidden{overflow:hidden !important}.position-static{position:static !important}.position-relative{position:relative !important}.position-absolute{position:absolute !important}.position-fixed{position:fixed !important}.position-sticky{position:-webkit-sticky !important;position:sticky !important}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}@supports (position: -webkit-sticky) or (position: sticky){.sticky-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;overflow:visible;clip:auto;white-space:normal}.shadow-sm{-webkit-box-shadow:0 0.125rem 0.25rem rgba(0,0,0,0.075) !important;box-shadow:0 0.125rem 0.25rem rgba(0,0,0,0.075) !important}.shadow{-webkit-box-shadow:0 0.5rem 1rem rgba(0,0,0,0.15) !important;box-shadow:0 0.5rem 1rem rgba(0,0,0,0.15) !important}.shadow-lg{-webkit-box-shadow:0 1rem 3rem rgba(0,0,0,0.175) !important;box-shadow:0 1rem 3rem rgba(0,0,0,0.175) !important}.shadow-none{-webkit-box-shadow:none !important;box-shadow:none !important}.w-25{width:25% !important}.w-50{width:50% !important}.w-75{width:75% !important}.w-100{width:100% !important}.w-auto{width:auto !important}.h-25{height:25% !important}.h-50{height:50% !important}.h-75{height:75% !important}.h-100{height:100% !important}.h-auto{height:auto !important}.mw-100{max-width:100% !important}.mh-100{max-height:100% !important}.min-vw-100{min-width:100vw !important}.min-vh-100{min-height:100vh !important}.vw-100{width:100vw !important}.vh-100{height:100vh !important}.m-0{margin:0 !important}.mt-0,.my-0{margin-top:0 !important}.mr-0,.mx-0{margin-right:0 !important}.mb-0,.my-0{margin-bottom:0 !important}.ml-0,.mx-0{margin-left:0 !important}.m-1{margin:0.25rem !important}.mt-1,.my-1{margin-top:0.25rem !important}.mr-1,.mx-1{margin-right:0.25rem !important}.mb-1,.my-1{margin-bottom:0.25rem !important}.ml-1,.mx-1{margin-left:0.25rem !important}.m-2{margin:0.5rem !important}.mt-2,.my-2{margin-top:0.5rem !important}.mr-2,.mx-2{margin-right:0.5rem !important}.mb-2,.my-2{margin-bottom:0.5rem !important}.ml-2,.mx-2{margin-left:0.5rem !important}.m-3{margin:1rem !important}.mt-3,.my-3{margin-top:1rem !important}.mr-3,.mx-3{margin-right:1rem !important}.mb-3,.my-3{margin-bottom:1rem !important}.ml-3,.mx-3{margin-left:1rem !important}.m-4{margin:1.5rem !important}.mt-4,.my-4{margin-top:1.5rem !important}.mr-4,.mx-4{margin-right:1.5rem !important}.mb-4,.my-4{margin-bottom:1.5rem !important}.ml-4,.mx-4{margin-left:1.5rem !important}.m-5{margin:3rem !important}.mt-5,.my-5{margin-top:3rem !important}.mr-5,.mx-5{margin-right:3rem !important}.mb-5,.my-5{margin-bottom:3rem !important}.ml-5,.mx-5{margin-left:3rem !important}.p-0{padding:0 !important}.pt-0,.py-0{padding-top:0 !important}.pr-0,.px-0{padding-right:0 !important}.pb-0,.py-0{padding-bottom:0 !important}.pl-0,.px-0{padding-left:0 !important}.p-1{padding:0.25rem !important}.pt-1,.py-1{padding-top:0.25rem !important}.pr-1,.px-1{padding-right:0.25rem !important}.pb-1,.py-1{padding-bottom:0.25rem !important}.pl-1,.px-1{padding-left:0.25rem !important}.p-2{padding:0.5rem !important}.pt-2,.py-2{padding-top:0.5rem !important}.pr-2,.px-2{padding-right:0.5rem !important}.pb-2,.py-2{padding-bottom:0.5rem !important}.pl-2,.px-2{padding-left:0.5rem !important}.p-3{padding:1rem !important}.pt-3,.py-3{padding-top:1rem !important}.pr-3,.px-3{padding-right:1rem !important}.pb-3,.py-3{padding-bottom:1rem !important}.pl-3,.px-3{padding-left:1rem !important}.p-4{padding:1.5rem !important}.pt-4,.py-4{padding-top:1.5rem !important}.pr-4,.px-4{padding-right:1.5rem !important}.pb-4,.py-4{padding-bottom:1.5rem !important}.pl-4,.px-4{padding-left:1.5rem !important}.p-5{padding:3rem !important}.pt-5,.py-5{padding-top:3rem !important}.pr-5,.px-5{padding-right:3rem !important}.pb-5,.py-5{padding-bottom:3rem !important}.pl-5,.px-5{padding-left:3rem !important}.m-n1{margin:-0.25rem !important}.mt-n1,.my-n1{margin-top:-0.25rem !important}.mr-n1,.mx-n1{margin-right:-0.25rem !important}.mb-n1,.my-n1{margin-bottom:-0.25rem !important}.ml-n1,.mx-n1{margin-left:-0.25rem !important}.m-n2{margin:-0.5rem !important}.mt-n2,.my-n2{margin-top:-0.5rem !important}.mr-n2,.mx-n2{margin-right:-0.5rem !important}.mb-n2,.my-n2{margin-bottom:-0.5rem !important}.ml-n2,.mx-n2{margin-left:-0.5rem !important}.m-n3{margin:-1rem !important}.mt-n3,.my-n3{margin-top:-1rem !important}.mr-n3,.mx-n3{margin-right:-1rem !important}.mb-n3,.my-n3{margin-bottom:-1rem !important}.ml-n3,.mx-n3{margin-left:-1rem !important}.m-n4{margin:-1.5rem !important}.mt-n4,.my-n4{margin-top:-1.5rem !important}.mr-n4,.mx-n4{margin-right:-1.5rem !important}.mb-n4,.my-n4{margin-bottom:-1.5rem !important}.ml-n4,.mx-n4{margin-left:-1.5rem !important}.m-n5{margin:-3rem !important}.mt-n5,.my-n5{margin-top:-3rem !important}.mr-n5,.mx-n5{margin-right:-3rem !important}.mb-n5,.my-n5{margin-bottom:-3rem !important}.ml-n5,.mx-n5{margin-left:-3rem !important}.m-auto{margin:auto !important}.mt-auto,.my-auto{margin-top:auto !important}.mr-auto,.mx-auto{margin-right:auto !important}.mb-auto,.my-auto{margin-bottom:auto !important}.ml-auto,.mx-auto{margin-left:auto !important}@media (min-width: 576px){.m-sm-0{margin:0 !important}.mt-sm-0,.my-sm-0{margin-top:0 !important}.mr-sm-0,.mx-sm-0{margin-right:0 !important}.mb-sm-0,.my-sm-0{margin-bottom:0 !important}.ml-sm-0,.mx-sm-0{margin-left:0 !important}.m-sm-1{margin:0.25rem !important}.mt-sm-1,.my-sm-1{margin-top:0.25rem !important}.mr-sm-1,.mx-sm-1{margin-right:0.25rem !important}.mb-sm-1,.my-sm-1{margin-bottom:0.25rem !important}.ml-sm-1,.mx-sm-1{margin-left:0.25rem !important}.m-sm-2{margin:0.5rem !important}.mt-sm-2,.my-sm-2{margin-top:0.5rem !important}.mr-sm-2,.mx-sm-2{margin-right:0.5rem !important}.mb-sm-2,.my-sm-2{margin-bottom:0.5rem !important}.ml-sm-2,.mx-sm-2{margin-left:0.5rem !important}.m-sm-3{margin:1rem !important}.mt-sm-3,.my-sm-3{margin-top:1rem !important}.mr-sm-3,.mx-sm-3{margin-right:1rem !important}.mb-sm-3,.my-sm-3{margin-bottom:1rem !important}.ml-sm-3,.mx-sm-3{margin-left:1rem !important}.m-sm-4{margin:1.5rem !important}.mt-sm-4,.my-sm-4{margin-top:1.5rem !important}.mr-sm-4,.mx-sm-4{margin-right:1.5rem !important}.mb-sm-4,.my-sm-4{margin-bottom:1.5rem !important}.ml-sm-4,.mx-sm-4{margin-left:1.5rem !important}.m-sm-5{margin:3rem !important}.mt-sm-5,.my-sm-5{margin-top:3rem !important}.mr-sm-5,.mx-sm-5{margin-right:3rem !important}.mb-sm-5,.my-sm-5{margin-bottom:3rem !important}.ml-sm-5,.mx-sm-5{margin-left:3rem !important}.p-sm-0{padding:0 !important}.pt-sm-0,.py-sm-0{padding-top:0 !important}.pr-sm-0,.px-sm-0{padding-right:0 !important}.pb-sm-0,.py-sm-0{padding-bottom:0 !important}.pl-sm-0,.px-sm-0{padding-left:0 !important}.p-sm-1{padding:0.25rem !important}.pt-sm-1,.py-sm-1{padding-top:0.25rem !important}.pr-sm-1,.px-sm-1{padding-right:0.25rem !important}.pb-sm-1,.py-sm-1{padding-bottom:0.25rem !important}.pl-sm-1,.px-sm-1{padding-left:0.25rem !important}.p-sm-2{padding:0.5rem !important}.pt-sm-2,.py-sm-2{padding-top:0.5rem !important}.pr-sm-2,.px-sm-2{padding-right:0.5rem !important}.pb-sm-2,.py-sm-2{padding-bottom:0.5rem !important}.pl-sm-2,.px-sm-2{padding-left:0.5rem !important}.p-sm-3{padding:1rem !important}.pt-sm-3,.py-sm-3{padding-top:1rem !important}.pr-sm-3,.px-sm-3{padding-right:1rem !important}.pb-sm-3,.py-sm-3{padding-bottom:1rem !important}.pl-sm-3,.px-sm-3{padding-left:1rem !important}.p-sm-4{padding:1.5rem !important}.pt-sm-4,.py-sm-4{padding-top:1.5rem !important}.pr-sm-4,.px-sm-4{padding-right:1.5rem !important}.pb-sm-4,.py-sm-4{padding-bottom:1.5rem !important}.pl-sm-4,.px-sm-4{padding-left:1.5rem !important}.p-sm-5{padding:3rem !important}.pt-sm-5,.py-sm-5{padding-top:3rem !important}.pr-sm-5,.px-sm-5{padding-right:3rem !important}.pb-sm-5,.py-sm-5{padding-bottom:3rem !important}.pl-sm-5,.px-sm-5{padding-left:3rem !important}.m-sm-n1{margin:-0.25rem !important}.mt-sm-n1,.my-sm-n1{margin-top:-0.25rem !important}.mr-sm-n1,.mx-sm-n1{margin-right:-0.25rem !important}.mb-sm-n1,.my-sm-n1{margin-bottom:-0.25rem !important}.ml-sm-n1,.mx-sm-n1{margin-left:-0.25rem !important}.m-sm-n2{margin:-0.5rem !important}.mt-sm-n2,.my-sm-n2{margin-top:-0.5rem !important}.mr-sm-n2,.mx-sm-n2{margin-right:-0.5rem !important}.mb-sm-n2,.my-sm-n2{margin-bottom:-0.5rem !important}.ml-sm-n2,.mx-sm-n2{margin-left:-0.5rem !important}.m-sm-n3{margin:-1rem !important}.mt-sm-n3,.my-sm-n3{margin-top:-1rem !important}.mr-sm-n3,.mx-sm-n3{margin-right:-1rem !important}.mb-sm-n3,.my-sm-n3{margin-bottom:-1rem !important}.ml-sm-n3,.mx-sm-n3{margin-left:-1rem !important}.m-sm-n4{margin:-1.5rem !important}.mt-sm-n4,.my-sm-n4{margin-top:-1.5rem !important}.mr-sm-n4,.mx-sm-n4{margin-right:-1.5rem !important}.mb-sm-n4,.my-sm-n4{margin-bottom:-1.5rem !important}.ml-sm-n4,.mx-sm-n4{margin-left:-1.5rem !important}.m-sm-n5{margin:-3rem !important}.mt-sm-n5,.my-sm-n5{margin-top:-3rem !important}.mr-sm-n5,.mx-sm-n5{margin-right:-3rem !important}.mb-sm-n5,.my-sm-n5{margin-bottom:-3rem !important}.ml-sm-n5,.mx-sm-n5{margin-left:-3rem !important}.m-sm-auto{margin:auto !important}.mt-sm-auto,.my-sm-auto{margin-top:auto !important}.mr-sm-auto,.mx-sm-auto{margin-right:auto !important}.mb-sm-auto,.my-sm-auto{margin-bottom:auto !important}.ml-sm-auto,.mx-sm-auto{margin-left:auto !important}}@media (min-width: 768px){.m-md-0{margin:0 !important}.mt-md-0,.my-md-0{margin-top:0 !important}.mr-md-0,.mx-md-0{margin-right:0 !important}.mb-md-0,.my-md-0{margin-bottom:0 !important}.ml-md-0,.mx-md-0{margin-left:0 !important}.m-md-1{margin:0.25rem !important}.mt-md-1,.my-md-1{margin-top:0.25rem !important}.mr-md-1,.mx-md-1{margin-right:0.25rem !important}.mb-md-1,.my-md-1{margin-bottom:0.25rem !important}.ml-md-1,.mx-md-1{margin-left:0.25rem !important}.m-md-2{margin:0.5rem !important}.mt-md-2,.my-md-2{margin-top:0.5rem !important}.mr-md-2,.mx-md-2{margin-right:0.5rem !important}.mb-md-2,.my-md-2{margin-bottom:0.5rem !important}.ml-md-2,.mx-md-2{margin-left:0.5rem !important}.m-md-3{margin:1rem !important}.mt-md-3,.my-md-3{margin-top:1rem !important}.mr-md-3,.mx-md-3{margin-right:1rem !important}.mb-md-3,.my-md-3{margin-bottom:1rem !important}.ml-md-3,.mx-md-3{margin-left:1rem !important}.m-md-4{margin:1.5rem !important}.mt-md-4,.my-md-4{margin-top:1.5rem !important}.mr-md-4,.mx-md-4{margin-right:1.5rem !important}.mb-md-4,.my-md-4{margin-bottom:1.5rem !important}.ml-md-4,.mx-md-4{margin-left:1.5rem !important}.m-md-5{margin:3rem !important}.mt-md-5,.my-md-5{margin-top:3rem !important}.mr-md-5,.mx-md-5{margin-right:3rem !important}.mb-md-5,.my-md-5{margin-bottom:3rem !important}.ml-md-5,.mx-md-5{margin-left:3rem !important}.p-md-0{padding:0 !important}.pt-md-0,.py-md-0{padding-top:0 !important}.pr-md-0,.px-md-0{padding-right:0 !important}.pb-md-0,.py-md-0{padding-bottom:0 !important}.pl-md-0,.px-md-0{padding-left:0 !important}.p-md-1{padding:0.25rem !important}.pt-md-1,.py-md-1{padding-top:0.25rem !important}.pr-md-1,.px-md-1{padding-right:0.25rem !important}.pb-md-1,.py-md-1{padding-bottom:0.25rem !important}.pl-md-1,.px-md-1{padding-left:0.25rem !important}.p-md-2{padding:0.5rem !important}.pt-md-2,.py-md-2{padding-top:0.5rem !important}.pr-md-2,.px-md-2{padding-right:0.5rem !important}.pb-md-2,.py-md-2{padding-bottom:0.5rem !important}.pl-md-2,.px-md-2{padding-left:0.5rem !important}.p-md-3{padding:1rem !important}.pt-md-3,.py-md-3{padding-top:1rem !important}.pr-md-3,.px-md-3{padding-right:1rem !important}.pb-md-3,.py-md-3{padding-bottom:1rem !important}.pl-md-3,.px-md-3{padding-left:1rem !important}.p-md-4{padding:1.5rem !important}.pt-md-4,.py-md-4{padding-top:1.5rem !important}.pr-md-4,.px-md-4{padding-right:1.5rem !important}.pb-md-4,.py-md-4{padding-bottom:1.5rem !important}.pl-md-4,.px-md-4{padding-left:1.5rem !important}.p-md-5{padding:3rem !important}.pt-md-5,.py-md-5{padding-top:3rem !important}.pr-md-5,.px-md-5{padding-right:3rem !important}.pb-md-5,.py-md-5{padding-bottom:3rem !important}.pl-md-5,.px-md-5{padding-left:3rem !important}.m-md-n1{margin:-0.25rem !important}.mt-md-n1,.my-md-n1{margin-top:-0.25rem !important}.mr-md-n1,.mx-md-n1{margin-right:-0.25rem !important}.mb-md-n1,.my-md-n1{margin-bottom:-0.25rem !important}.ml-md-n1,.mx-md-n1{margin-left:-0.25rem !important}.m-md-n2{margin:-0.5rem !important}.mt-md-n2,.my-md-n2{margin-top:-0.5rem !important}.mr-md-n2,.mx-md-n2{margin-right:-0.5rem !important}.mb-md-n2,.my-md-n2{margin-bottom:-0.5rem !important}.ml-md-n2,.mx-md-n2{margin-left:-0.5rem !important}.m-md-n3{margin:-1rem !important}.mt-md-n3,.my-md-n3{margin-top:-1rem !important}.mr-md-n3,.mx-md-n3{margin-right:-1rem !important}.mb-md-n3,.my-md-n3{margin-bottom:-1rem !important}.ml-md-n3,.mx-md-n3{margin-left:-1rem !important}.m-md-n4{margin:-1.5rem !important}.mt-md-n4,.my-md-n4{margin-top:-1.5rem !important}.mr-md-n4,.mx-md-n4{margin-right:-1.5rem !important}.mb-md-n4,.my-md-n4{margin-bottom:-1.5rem !important}.ml-md-n4,.mx-md-n4{margin-left:-1.5rem !important}.m-md-n5{margin:-3rem !important}.mt-md-n5,.my-md-n5{margin-top:-3rem !important}.mr-md-n5,.mx-md-n5{margin-right:-3rem !important}.mb-md-n5,.my-md-n5{margin-bottom:-3rem !important}.ml-md-n5,.mx-md-n5{margin-left:-3rem !important}.m-md-auto{margin:auto !important}.mt-md-auto,.my-md-auto{margin-top:auto !important}.mr-md-auto,.mx-md-auto{margin-right:auto !important}.mb-md-auto,.my-md-auto{margin-bottom:auto !important}.ml-md-auto,.mx-md-auto{margin-left:auto !important}}@media (min-width: 992px){.m-lg-0{margin:0 !important}.mt-lg-0,.my-lg-0{margin-top:0 !important}.mr-lg-0,.mx-lg-0{margin-right:0 !important}.mb-lg-0,.my-lg-0{margin-bottom:0 !important}.ml-lg-0,.mx-lg-0{margin-left:0 !important}.m-lg-1{margin:0.25rem !important}.mt-lg-1,.my-lg-1{margin-top:0.25rem !important}.mr-lg-1,.mx-lg-1{margin-right:0.25rem !important}.mb-lg-1,.my-lg-1{margin-bottom:0.25rem !important}.ml-lg-1,.mx-lg-1{margin-left:0.25rem !important}.m-lg-2{margin:0.5rem !important}.mt-lg-2,.my-lg-2{margin-top:0.5rem !important}.mr-lg-2,.mx-lg-2{margin-right:0.5rem !important}.mb-lg-2,.my-lg-2{margin-bottom:0.5rem !important}.ml-lg-2,.mx-lg-2{margin-left:0.5rem !important}.m-lg-3{margin:1rem !important}.mt-lg-3,.my-lg-3{margin-top:1rem !important}.mr-lg-3,.mx-lg-3{margin-right:1rem !important}.mb-lg-3,.my-lg-3{margin-bottom:1rem !important}.ml-lg-3,.mx-lg-3{margin-left:1rem !important}.m-lg-4{margin:1.5rem !important}.mt-lg-4,.my-lg-4{margin-top:1.5rem !important}.mr-lg-4,.mx-lg-4{margin-right:1.5rem !important}.mb-lg-4,.my-lg-4{margin-bottom:1.5rem !important}.ml-lg-4,.mx-lg-4{margin-left:1.5rem !important}.m-lg-5{margin:3rem !important}.mt-lg-5,.my-lg-5{margin-top:3rem !important}.mr-lg-5,.mx-lg-5{margin-right:3rem !important}.mb-lg-5,.my-lg-5{margin-bottom:3rem !important}.ml-lg-5,.mx-lg-5{margin-left:3rem !important}.p-lg-0{padding:0 !important}.pt-lg-0,.py-lg-0{padding-top:0 !important}.pr-lg-0,.px-lg-0{padding-right:0 !important}.pb-lg-0,.py-lg-0{padding-bottom:0 !important}.pl-lg-0,.px-lg-0{padding-left:0 !important}.p-lg-1{padding:0.25rem !important}.pt-lg-1,.py-lg-1{padding-top:0.25rem !important}.pr-lg-1,.px-lg-1{padding-right:0.25rem !important}.pb-lg-1,.py-lg-1{padding-bottom:0.25rem !important}.pl-lg-1,.px-lg-1{padding-left:0.25rem !important}.p-lg-2{padding:0.5rem !important}.pt-lg-2,.py-lg-2{padding-top:0.5rem !important}.pr-lg-2,.px-lg-2{padding-right:0.5rem !important}.pb-lg-2,.py-lg-2{padding-bottom:0.5rem !important}.pl-lg-2,.px-lg-2{padding-left:0.5rem !important}.p-lg-3{padding:1rem !important}.pt-lg-3,.py-lg-3{padding-top:1rem !important}.pr-lg-3,.px-lg-3{padding-right:1rem !important}.pb-lg-3,.py-lg-3{padding-bottom:1rem !important}.pl-lg-3,.px-lg-3{padding-left:1rem !important}.p-lg-4{padding:1.5rem !important}.pt-lg-4,.py-lg-4{padding-top:1.5rem !important}.pr-lg-4,.px-lg-4{padding-right:1.5rem !important}.pb-lg-4,.py-lg-4{padding-bottom:1.5rem !important}.pl-lg-4,.px-lg-4{padding-left:1.5rem !important}.p-lg-5{padding:3rem !important}.pt-lg-5,.py-lg-5{padding-top:3rem !important}.pr-lg-5,.px-lg-5{padding-right:3rem !important}.pb-lg-5,.py-lg-5{padding-bottom:3rem !important}.pl-lg-5,.px-lg-5{padding-left:3rem !important}.m-lg-n1{margin:-0.25rem !important}.mt-lg-n1,.my-lg-n1{margin-top:-0.25rem !important}.mr-lg-n1,.mx-lg-n1{margin-right:-0.25rem !important}.mb-lg-n1,.my-lg-n1{margin-bottom:-0.25rem !important}.ml-lg-n1,.mx-lg-n1{margin-left:-0.25rem !important}.m-lg-n2{margin:-0.5rem !important}.mt-lg-n2,.my-lg-n2{margin-top:-0.5rem !important}.mr-lg-n2,.mx-lg-n2{margin-right:-0.5rem !important}.mb-lg-n2,.my-lg-n2{margin-bottom:-0.5rem !important}.ml-lg-n2,.mx-lg-n2{margin-left:-0.5rem !important}.m-lg-n3{margin:-1rem !important}.mt-lg-n3,.my-lg-n3{margin-top:-1rem !important}.mr-lg-n3,.mx-lg-n3{margin-right:-1rem !important}.mb-lg-n3,.my-lg-n3{margin-bottom:-1rem !important}.ml-lg-n3,.mx-lg-n3{margin-left:-1rem !important}.m-lg-n4{margin:-1.5rem !important}.mt-lg-n4,.my-lg-n4{margin-top:-1.5rem !important}.mr-lg-n4,.mx-lg-n4{margin-right:-1.5rem !important}.mb-lg-n4,.my-lg-n4{margin-bottom:-1.5rem !important}.ml-lg-n4,.mx-lg-n4{margin-left:-1.5rem !important}.m-lg-n5{margin:-3rem !important}.mt-lg-n5,.my-lg-n5{margin-top:-3rem !important}.mr-lg-n5,.mx-lg-n5{margin-right:-3rem !important}.mb-lg-n5,.my-lg-n5{margin-bottom:-3rem !important}.ml-lg-n5,.mx-lg-n5{margin-left:-3rem !important}.m-lg-auto{margin:auto !important}.mt-lg-auto,.my-lg-auto{margin-top:auto !important}.mr-lg-auto,.mx-lg-auto{margin-right:auto !important}.mb-lg-auto,.my-lg-auto{margin-bottom:auto !important}.ml-lg-auto,.mx-lg-auto{margin-left:auto !important}}@media (min-width: 1200px){.m-xl-0{margin:0 !important}.mt-xl-0,.my-xl-0{margin-top:0 !important}.mr-xl-0,.mx-xl-0{margin-right:0 !important}.mb-xl-0,.my-xl-0{margin-bottom:0 !important}.ml-xl-0,.mx-xl-0{margin-left:0 !important}.m-xl-1{margin:0.25rem !important}.mt-xl-1,.my-xl-1{margin-top:0.25rem !important}.mr-xl-1,.mx-xl-1{margin-right:0.25rem !important}.mb-xl-1,.my-xl-1{margin-bottom:0.25rem !important}.ml-xl-1,.mx-xl-1{margin-left:0.25rem !important}.m-xl-2{margin:0.5rem !important}.mt-xl-2,.my-xl-2{margin-top:0.5rem !important}.mr-xl-2,.mx-xl-2{margin-right:0.5rem !important}.mb-xl-2,.my-xl-2{margin-bottom:0.5rem !important}.ml-xl-2,.mx-xl-2{margin-left:0.5rem !important}.m-xl-3{margin:1rem !important}.mt-xl-3,.my-xl-3{margin-top:1rem !important}.mr-xl-3,.mx-xl-3{margin-right:1rem !important}.mb-xl-3,.my-xl-3{margin-bottom:1rem !important}.ml-xl-3,.mx-xl-3{margin-left:1rem !important}.m-xl-4{margin:1.5rem !important}.mt-xl-4,.my-xl-4{margin-top:1.5rem !important}.mr-xl-4,.mx-xl-4{margin-right:1.5rem !important}.mb-xl-4,.my-xl-4{margin-bottom:1.5rem !important}.ml-xl-4,.mx-xl-4{margin-left:1.5rem !important}.m-xl-5{margin:3rem !important}.mt-xl-5,.my-xl-5{margin-top:3rem !important}.mr-xl-5,.mx-xl-5{margin-right:3rem !important}.mb-xl-5,.my-xl-5{margin-bottom:3rem !important}.ml-xl-5,.mx-xl-5{margin-left:3rem !important}.p-xl-0{padding:0 !important}.pt-xl-0,.py-xl-0{padding-top:0 !important}.pr-xl-0,.px-xl-0{padding-right:0 !important}.pb-xl-0,.py-xl-0{padding-bottom:0 !important}.pl-xl-0,.px-xl-0{padding-left:0 !important}.p-xl-1{padding:0.25rem !important}.pt-xl-1,.py-xl-1{padding-top:0.25rem !important}.pr-xl-1,.px-xl-1{padding-right:0.25rem !important}.pb-xl-1,.py-xl-1{padding-bottom:0.25rem !important}.pl-xl-1,.px-xl-1{padding-left:0.25rem !important}.p-xl-2{padding:0.5rem !important}.pt-xl-2,.py-xl-2{padding-top:0.5rem !important}.pr-xl-2,.px-xl-2{padding-right:0.5rem !important}.pb-xl-2,.py-xl-2{padding-bottom:0.5rem !important}.pl-xl-2,.px-xl-2{padding-left:0.5rem !important}.p-xl-3{padding:1rem !important}.pt-xl-3,.py-xl-3{padding-top:1rem !important}.pr-xl-3,.px-xl-3{padding-right:1rem !important}.pb-xl-3,.py-xl-3{padding-bottom:1rem !important}.pl-xl-3,.px-xl-3{padding-left:1rem !important}.p-xl-4{padding:1.5rem !important}.pt-xl-4,.py-xl-4{padding-top:1.5rem !important}.pr-xl-4,.px-xl-4{padding-right:1.5rem !important}.pb-xl-4,.py-xl-4{padding-bottom:1.5rem !important}.pl-xl-4,.px-xl-4{padding-left:1.5rem !important}.p-xl-5{padding:3rem !important}.pt-xl-5,.py-xl-5{padding-top:3rem !important}.pr-xl-5,.px-xl-5{padding-right:3rem !important}.pb-xl-5,.py-xl-5{padding-bottom:3rem !important}.pl-xl-5,.px-xl-5{padding-left:3rem !important}.m-xl-n1{margin:-0.25rem !important}.mt-xl-n1,.my-xl-n1{margin-top:-0.25rem !important}.mr-xl-n1,.mx-xl-n1{margin-right:-0.25rem !important}.mb-xl-n1,.my-xl-n1{margin-bottom:-0.25rem !important}.ml-xl-n1,.mx-xl-n1{margin-left:-0.25rem !important}.m-xl-n2{margin:-0.5rem !important}.mt-xl-n2,.my-xl-n2{margin-top:-0.5rem !important}.mr-xl-n2,.mx-xl-n2{margin-right:-0.5rem !important}.mb-xl-n2,.my-xl-n2{margin-bottom:-0.5rem !important}.ml-xl-n2,.mx-xl-n2{margin-left:-0.5rem !important}.m-xl-n3{margin:-1rem !important}.mt-xl-n3,.my-xl-n3{margin-top:-1rem !important}.mr-xl-n3,.mx-xl-n3{margin-right:-1rem !important}.mb-xl-n3,.my-xl-n3{margin-bottom:-1rem !important}.ml-xl-n3,.mx-xl-n3{margin-left:-1rem !important}.m-xl-n4{margin:-1.5rem !important}.mt-xl-n4,.my-xl-n4{margin-top:-1.5rem !important}.mr-xl-n4,.mx-xl-n4{margin-right:-1.5rem !important}.mb-xl-n4,.my-xl-n4{margin-bottom:-1.5rem !important}.ml-xl-n4,.mx-xl-n4{margin-left:-1.5rem !important}.m-xl-n5{margin:-3rem !important}.mt-xl-n5,.my-xl-n5{margin-top:-3rem !important}.mr-xl-n5,.mx-xl-n5{margin-right:-3rem !important}.mb-xl-n5,.my-xl-n5{margin-bottom:-3rem !important}.ml-xl-n5,.mx-xl-n5{margin-left:-3rem !important}.m-xl-auto{margin:auto !important}.mt-xl-auto,.my-xl-auto{margin-top:auto !important}.mr-xl-auto,.mx-xl-auto{margin-right:auto !important}.mb-xl-auto,.my-xl-auto{margin-bottom:auto !important}.ml-xl-auto,.mx-xl-auto{margin-left:auto !important}}.stretched-link::after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:1;pointer-events:auto;content:"";background-color:rgba(0,0,0,0)}.text-monospace{font-family:SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace !important}.text-justify{text-align:justify !important}.text-wrap{white-space:normal !important}.text-nowrap{white-space:nowrap !important}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.text-left{text-align:left !important}.text-right{text-align:right !important}.text-center{text-align:center !important}@media (min-width: 576px){.text-sm-left{text-align:left !important}.text-sm-right{text-align:right !important}.text-sm-center{text-align:center !important}}@media (min-width: 768px){.text-md-left{text-align:left !important}.text-md-right{text-align:right !important}.text-md-center{text-align:center !important}}@media (min-width: 992px){.text-lg-left{text-align:left !important}.text-lg-right{text-align:right !important}.text-lg-center{text-align:center !important}}@media (min-width: 1200px){.text-xl-left{text-align:left !important}.text-xl-right{text-align:right !important}.text-xl-center{text-align:center !important}}.text-lowercase{text-transform:lowercase !important}.text-uppercase{text-transform:uppercase !important}.text-capitalize{text-transform:capitalize !important}.font-weight-light{font-weight:300 !important}.font-weight-lighter{font-weight:lighter !important}.font-weight-normal{font-weight:400 !important}.font-weight-bold{font-weight:700 !important}.font-weight-bolder{font-weight:bolder !important}.font-italic{font-style:italic !important}.text-white{color:#fff !important}.text-primary{color:#2780E3 !important}a.text-primary:hover,a.text-primary:focus{color:#165ba8 !important}.text-secondary{color:#373a3c !important}a.text-secondary:hover,a.text-secondary:focus{color:#121314 !important}.text-success{color:#3FB618 !important}a.text-success:hover,a.text-success:focus{color:#28720f !important}.text-info{color:#9954BB !important}a.text-info:hover,a.text-info:focus{color:#6f378b !important}.text-warning{color:#FF7518 !important}a.text-warning:hover,a.text-warning:focus{color:#cb5200 !important}.text-danger{color:#FF0039 !important}a.text-danger:hover,a.text-danger:focus{color:#b30028 !important}.text-light{color:#f8f9fa !important}a.text-light:hover,a.text-light:focus{color:#cbd3da !important}.text-dark{color:#373a3c !important}a.text-dark:hover,a.text-dark:focus{color:#121314 !important}.text-body{color:#373a3c !important}.text-muted{color:#868e96 !important}.text-black-50{color:rgba(0,0,0,0.5) !important}.text-white-50{color:rgba(255,255,255,0.5) !important}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.text-decoration-none{text-decoration:none !important}.text-break{word-wrap:break-word !important}.text-reset{color:inherit !important}.visible{visibility:visible !important}.invisible{visibility:hidden !important}@media print{*,*::before,*::after{text-shadow:none !important;-webkit-box-shadow:none !important;box-shadow:none !important}a:not(.btn){text-decoration:underline}abbr[title]::after{content:" (" attr(title) ")"}pre{white-space:pre-wrap !important}pre,blockquote{border:1px solid #adb5bd;page-break-inside:avoid}thead{display:table-header-group}tr,img{page-break-inside:avoid}p,h2,h3{orphans:3;widows:3}h2,h3{page-break-after:avoid}@page{size:a3}body{min-width:992px !important}.container{min-width:992px !important}.navbar{display:none}.badge{border:1px solid #000}.table{border-collapse:collapse !important}.table td,.table th{background-color:#fff !important}.table-bordered th,.table-bordered td{border:1px solid #dee2e6 !important}.table-dark{color:inherit}.table-dark th,.table-dark td,.table-dark thead th,.table-dark tbody+tbody{border-color:#dee2e6}.table .thead-dark th{color:inherit;border-color:#dee2e6}}body{-webkit-font-smoothing:antialiased}.progress .progress-bar{font-size:8px;line-height:8px} \ No newline at end of file diff --git a/vex8/patch/cdn/createjs.1.0.0.min.js b/vex8/patch/cdn/createjs.1.0.0.min.js new file mode 100644 index 000000000..c355f136e --- /dev/null +++ b/vex8/patch/cdn/createjs.1.0.0.min.js @@ -0,0 +1,19 @@ +/*! +* @license createjs +* Visit http://createjs.com/ for documentation, updates and examples. +* +* Copyright (c) 2011-2015 gskinner.com, inc. +* +* Distributed under the terms of the MIT license. +* http://www.opensource.org/licenses/mit-license.html +* +* This notice shall be included in all copies or substantial portions of the Software. +*/ +this.createjs=this.createjs||{},createjs.extend=function(a,b){"use strict";function c(){this.constructor=a}return c.prototype=b.prototype,a.prototype=new c},this.createjs=this.createjs||{},createjs.promote=function(a,b){"use strict";var c=a.prototype,d=Object.getPrototypeOf&&Object.getPrototypeOf(c)||c.__proto__;if(d){c[(b+="_")+"constructor"]=d.constructor;for(var e in d)c.hasOwnProperty(e)&&"function"==typeof d[e]&&(c[b+e]=d[e])}return a},this.createjs=this.createjs||{},createjs.indexOf=function(a,b){"use strict";for(var c=0,d=a.length;d>c;c++)if(b===a[c])return c;return-1},this.createjs=this.createjs||{},function(){"use strict";function a(){throw"UID cannot be instantiated"}a._nextID=0,a.get=function(){return a._nextID++},createjs.UID=a}(),this.createjs=this.createjs||{},createjs.deprecate=function(a,b){"use strict";return function(){var c="Deprecated property or method '"+b+"'. See docs for info.";return console&&(console.warn?console.warn(c):console.log(c)),a&&a.apply(this,arguments)}},this.createjs=this.createjs||{},function(){"use strict";function a(a,b,c){this.type=a,this.target=null,this.currentTarget=null,this.eventPhase=0,this.bubbles=!!b,this.cancelable=!!c,this.timeStamp=(new Date).getTime(),this.defaultPrevented=!1,this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.removed=!1}var b=a.prototype;b.preventDefault=function(){this.defaultPrevented=this.cancelable&&!0},b.stopPropagation=function(){this.propagationStopped=!0},b.stopImmediatePropagation=function(){this.immediatePropagationStopped=this.propagationStopped=!0},b.remove=function(){this.removed=!0},b.clone=function(){return new a(this.type,this.bubbles,this.cancelable)},b.set=function(a){for(var b in a)this[b]=a[b];return this},b.toString=function(){return"[Event (type="+this.type+")]"},createjs.Event=a}(),this.createjs=this.createjs||{},function(){"use strict";function a(){this._listeners=null,this._captureListeners=null}var b=a.prototype;a.initialize=function(a){a.addEventListener=b.addEventListener,a.on=b.on,a.removeEventListener=a.off=b.removeEventListener,a.removeAllEventListeners=b.removeAllEventListeners,a.hasEventListener=b.hasEventListener,a.dispatchEvent=b.dispatchEvent,a._dispatchEvent=b._dispatchEvent,a.willTrigger=b.willTrigger},b.addEventListener=function(a,b,c){var d;d=c?this._captureListeners=this._captureListeners||{}:this._listeners=this._listeners||{};var e=d[a];return e&&this.removeEventListener(a,b,c),e=d[a],e?e.push(b):d[a]=[b],b},b.on=function(a,b,c,d,e,f){return b.handleEvent&&(c=c||b,b=b.handleEvent),c=c||this,this.addEventListener(a,function(a){b.call(c,a,e),d&&a.remove()},f)},b.removeEventListener=function(a,b,c){var d=c?this._captureListeners:this._listeners;if(d){var e=d[a];if(e)for(var f=0,g=e.length;g>f;f++)if(e[f]==b){1==g?delete d[a]:e.splice(f,1);break}}},b.off=b.removeEventListener,b.removeAllEventListeners=function(a){a?(this._listeners&&delete this._listeners[a],this._captureListeners&&delete this._captureListeners[a]):this._listeners=this._captureListeners=null},b.dispatchEvent=function(a,b,c){if("string"==typeof a){var d=this._listeners;if(!(b||d&&d[a]))return!0;a=new createjs.Event(a,b,c)}else a.target&&a.clone&&(a=a.clone());try{a.target=this}catch(e){}if(a.bubbles&&this.parent){for(var f=this,g=[f];f.parent;)g.push(f=f.parent);var h,i=g.length;for(h=i-1;h>=0&&!a.propagationStopped;h--)g[h]._dispatchEvent(a,1+(0==h));for(h=1;i>h&&!a.propagationStopped;h++)g[h]._dispatchEvent(a,3)}else this._dispatchEvent(a,2);return!a.defaultPrevented},b.hasEventListener=function(a){var b=this._listeners,c=this._captureListeners;return!!(b&&b[a]||c&&c[a])},b.willTrigger=function(a){for(var b=this;b;){if(b.hasEventListener(a))return!0;b=b.parent}return!1},b.toString=function(){return"[EventDispatcher]"},b._dispatchEvent=function(a,b){var c,d,e=2>=b?this._captureListeners:this._listeners;if(a&&e&&(d=e[a.type])&&(c=d.length)){try{a.currentTarget=this}catch(f){}try{a.eventPhase=0|b}catch(f){}a.removed=!1,d=d.slice();for(var g=0;c>g&&!a.immediatePropagationStopped;g++){var h=d[g];h.handleEvent?h.handleEvent(a):h(a),a.removed&&(this.off(a.type,h,1==b),a.removed=!1)}}2===b&&this._dispatchEvent(a,2.1)},createjs.EventDispatcher=a}(),this.createjs=this.createjs||{},function(){"use strict";function a(){throw"Ticker cannot be instantiated."}a.RAF_SYNCHED="synched",a.RAF="raf",a.TIMEOUT="timeout",a.timingMode=null,a.maxDelta=0,a.paused=!1,a.removeEventListener=null,a.removeAllEventListeners=null,a.dispatchEvent=null,a.hasEventListener=null,a._listeners=null,createjs.EventDispatcher.initialize(a),a._addEventListener=a.addEventListener,a.addEventListener=function(){return!a._inited&&a.init(),a._addEventListener.apply(a,arguments)},a._inited=!1,a._startTime=0,a._pausedTime=0,a._ticks=0,a._pausedTicks=0,a._interval=50,a._lastTime=0,a._times=null,a._tickTimes=null,a._timerId=null,a._raf=!0,a._setInterval=function(b){a._interval=b,a._inited&&a._setupTick()},a.setInterval=createjs.deprecate(a._setInterval,"Ticker.setInterval"),a._getInterval=function(){return a._interval},a.getInterval=createjs.deprecate(a._getInterval,"Ticker.getInterval"),a._setFPS=function(b){a._setInterval(1e3/b)},a.setFPS=createjs.deprecate(a._setFPS,"Ticker.setFPS"),a._getFPS=function(){return 1e3/a._interval},a.getFPS=createjs.deprecate(a._getFPS,"Ticker.getFPS");try{Object.defineProperties(a,{interval:{get:a._getInterval,set:a._setInterval},framerate:{get:a._getFPS,set:a._setFPS}})}catch(b){console.log(b)}a.init=function(){a._inited||(a._inited=!0,a._times=[],a._tickTimes=[],a._startTime=a._getTime(),a._times.push(a._lastTime=0),a.interval=a._interval)},a.reset=function(){if(a._raf){var b=window.cancelAnimationFrame||window.webkitCancelAnimationFrame||window.mozCancelAnimationFrame||window.oCancelAnimationFrame||window.msCancelAnimationFrame;b&&b(a._timerId)}else clearTimeout(a._timerId);a.removeAllEventListeners("tick"),a._timerId=a._times=a._tickTimes=null,a._startTime=a._lastTime=a._ticks=a._pausedTime=0,a._inited=!1},a.getMeasuredTickTime=function(b){var c=0,d=a._tickTimes;if(!d||d.length<1)return-1;b=Math.min(d.length,b||0|a._getFPS());for(var e=0;b>e;e++)c+=d[e];return c/b},a.getMeasuredFPS=function(b){var c=a._times;return!c||c.length<2?-1:(b=Math.min(c.length-1,b||0|a._getFPS()),1e3/((c[0]-c[b])/b))},a.getTime=function(b){return a._startTime?a._getTime()-(b?a._pausedTime:0):-1},a.getEventTime=function(b){return a._startTime?(a._lastTime||a._startTime)-(b?a._pausedTime:0):-1},a.getTicks=function(b){return a._ticks-(b?a._pausedTicks:0)},a._handleSynch=function(){a._timerId=null,a._setupTick(),a._getTime()-a._lastTime>=.97*(a._interval-1)&&a._tick()},a._handleRAF=function(){a._timerId=null,a._setupTick(),a._tick()},a._handleTimeout=function(){a._timerId=null,a._setupTick(),a._tick()},a._setupTick=function(){if(null==a._timerId){var b=a.timingMode;if(b==a.RAF_SYNCHED||b==a.RAF){var c=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame;if(c)return a._timerId=c(b==a.RAF?a._handleRAF:a._handleSynch),void(a._raf=!0)}a._raf=!1,a._timerId=setTimeout(a._handleTimeout,a._interval)}},a._tick=function(){var b=a.paused,c=a._getTime(),d=c-a._lastTime;if(a._lastTime=c,a._ticks++,b&&(a._pausedTicks++,a._pausedTime+=d),a.hasEventListener("tick")){var e=new createjs.Event("tick"),f=a.maxDelta;e.delta=f&&d>f?f:d,e.paused=b,e.time=c,e.runTime=c-a._pausedTime,a.dispatchEvent(e)}for(a._tickTimes.unshift(a._getTime()-c);a._tickTimes.length>100;)a._tickTimes.pop();for(a._times.unshift(c);a._times.length>100;)a._times.pop()};var c=window,d=c.performance.now||c.performance.mozNow||c.performance.msNow||c.performance.oNow||c.performance.webkitNow;a._getTime=function(){return(d&&d.call(c.performance)||(new Date).getTime())-a._startTime},createjs.Ticker=a}(),this.createjs=this.createjs||{},function(){"use strict";function a(a){this.readyState=a.readyState,this._video=a,this._canvas=null,this._lastTime=-1,this.readyState<2&&a.addEventListener("canplaythrough",this._videoReady.bind(this))}var b=a.prototype;b.getImage=function(){if(!(this.readyState<2)){var a=this._canvas,b=this._video;if(a||(a=this._canvas=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas"),a.width=b.videoWidth,a.height=b.videoHeight),b.readyState>=2&&b.currentTime!==this._lastTime){var c=a.getContext("2d");c.clearRect(0,0,a.width,a.height),c.drawImage(b,0,0,a.width,a.height),this._lastTime=b.currentTime}return a}},b._videoReady=function(){this.readyState=2},createjs.VideoBuffer=a}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b,c,d,e,f,g,h,i,j,k){this.Event_constructor(a,b,c),this.stageX=d,this.stageY=e,this.rawX=null==i?d:i,this.rawY=null==j?e:j,this.nativeEvent=f,this.pointerID=g,this.primary=!!h,this.relatedTarget=k}var b=createjs.extend(a,createjs.Event);b._get_localX=function(){return this.currentTarget.globalToLocal(this.rawX,this.rawY).x},b._get_localY=function(){return this.currentTarget.globalToLocal(this.rawX,this.rawY).y},b._get_isTouch=function(){return-1!==this.pointerID};try{Object.defineProperties(b,{localX:{get:b._get_localX},localY:{get:b._get_localY},isTouch:{get:b._get_isTouch}})}catch(c){}b.clone=function(){return new a(this.type,this.bubbles,this.cancelable,this.stageX,this.stageY,this.nativeEvent,this.pointerID,this.primary,this.rawX,this.rawY)},b.toString=function(){return"[MouseEvent (type="+this.type+" stageX="+this.stageX+" stageY="+this.stageY+")]"},createjs.MouseEvent=createjs.promote(a,"Event")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b,c,d,e,f){this.setValues(a,b,c,d,e,f)}var b=a.prototype;a.DEG_TO_RAD=Math.PI/180,a.identity=null,b.setValues=function(a,b,c,d,e,f){return this.a=null==a?1:a,this.b=b||0,this.c=c||0,this.d=null==d?1:d,this.tx=e||0,this.ty=f||0,this},b.append=function(a,b,c,d,e,f){var g=this.a,h=this.b,i=this.c,j=this.d;return(1!=a||0!=b||0!=c||1!=d)&&(this.a=g*a+i*b,this.b=h*a+j*b,this.c=g*c+i*d,this.d=h*c+j*d),this.tx=g*e+i*f+this.tx,this.ty=h*e+j*f+this.ty,this},b.prepend=function(a,b,c,d,e,f){var g=this.a,h=this.c,i=this.tx;return this.a=a*g+c*this.b,this.b=b*g+d*this.b,this.c=a*h+c*this.d,this.d=b*h+d*this.d,this.tx=a*i+c*this.ty+e,this.ty=b*i+d*this.ty+f,this},b.appendMatrix=function(a){return this.append(a.a,a.b,a.c,a.d,a.tx,a.ty)},b.prependMatrix=function(a){return this.prepend(a.a,a.b,a.c,a.d,a.tx,a.ty)},b.appendTransform=function(b,c,d,e,f,g,h,i,j){if(f%360)var k=f*a.DEG_TO_RAD,l=Math.cos(k),m=Math.sin(k);else l=1,m=0;return g||h?(g*=a.DEG_TO_RAD,h*=a.DEG_TO_RAD,this.append(Math.cos(h),Math.sin(h),-Math.sin(g),Math.cos(g),b,c),this.append(l*d,m*d,-m*e,l*e,0,0)):this.append(l*d,m*d,-m*e,l*e,b,c),(i||j)&&(this.tx-=i*this.a+j*this.c,this.ty-=i*this.b+j*this.d),this},b.prependTransform=function(b,c,d,e,f,g,h,i,j){if(f%360)var k=f*a.DEG_TO_RAD,l=Math.cos(k),m=Math.sin(k);else l=1,m=0;return(i||j)&&(this.tx-=i,this.ty-=j),g||h?(g*=a.DEG_TO_RAD,h*=a.DEG_TO_RAD,this.prepend(l*d,m*d,-m*e,l*e,0,0),this.prepend(Math.cos(h),Math.sin(h),-Math.sin(g),Math.cos(g),b,c)):this.prepend(l*d,m*d,-m*e,l*e,b,c),this},b.rotate=function(b){b*=a.DEG_TO_RAD;var c=Math.cos(b),d=Math.sin(b),e=this.a,f=this.b;return this.a=e*c+this.c*d,this.b=f*c+this.d*d,this.c=-e*d+this.c*c,this.d=-f*d+this.d*c,this},b.skew=function(b,c){return b*=a.DEG_TO_RAD,c*=a.DEG_TO_RAD,this.append(Math.cos(c),Math.sin(c),-Math.sin(b),Math.cos(b),0,0),this},b.scale=function(a,b){return this.a*=a,this.b*=a,this.c*=b,this.d*=b,this},b.translate=function(a,b){return this.tx+=this.a*a+this.c*b,this.ty+=this.b*a+this.d*b,this},b.identity=function(){return this.a=this.d=1,this.b=this.c=this.tx=this.ty=0,this},b.invert=function(){var a=this.a,b=this.b,c=this.c,d=this.d,e=this.tx,f=a*d-b*c;return this.a=d/f,this.b=-b/f,this.c=-c/f,this.d=a/f,this.tx=(c*this.ty-d*e)/f,this.ty=-(a*this.ty-b*e)/f,this},b.isIdentity=function(){return 0===this.tx&&0===this.ty&&1===this.a&&0===this.b&&0===this.c&&1===this.d},b.equals=function(a){return this.tx===a.tx&&this.ty===a.ty&&this.a===a.a&&this.b===a.b&&this.c===a.c&&this.d===a.d},b.transformPoint=function(a,b,c){return c=c||{},c.x=a*this.a+b*this.c+this.tx,c.y=a*this.b+b*this.d+this.ty,c},b.decompose=function(b){null==b&&(b={}),b.x=this.tx,b.y=this.ty,b.scaleX=Math.sqrt(this.a*this.a+this.b*this.b),b.scaleY=Math.sqrt(this.c*this.c+this.d*this.d);var c=Math.atan2(-this.c,this.d),d=Math.atan2(this.b,this.a),e=Math.abs(1-c/d);return 1e-5>e?(b.rotation=d/a.DEG_TO_RAD,this.a<0&&this.d>=0&&(b.rotation+=b.rotation<=0?180:-180),b.skewX=b.skewY=0):(b.skewX=c/a.DEG_TO_RAD,b.skewY=d/a.DEG_TO_RAD),b},b.copy=function(a){return this.setValues(a.a,a.b,a.c,a.d,a.tx,a.ty)},b.clone=function(){return new a(this.a,this.b,this.c,this.d,this.tx,this.ty)},b.toString=function(){return"[Matrix2D (a="+this.a+" b="+this.b+" c="+this.c+" d="+this.d+" tx="+this.tx+" ty="+this.ty+")]"},a.identity=new a,createjs.Matrix2D=a}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b,c,d,e){this.setValues(a,b,c,d,e)}var b=a.prototype;b.setValues=function(a,b,c,d,e){return this.visible=null==a?!0:!!a,this.alpha=null==b?1:b,this.shadow=c,this.compositeOperation=d,this.matrix=e||this.matrix&&this.matrix.identity()||new createjs.Matrix2D,this},b.append=function(a,b,c,d,e){return this.alpha*=b,this.shadow=c||this.shadow,this.compositeOperation=d||this.compositeOperation,this.visible=this.visible&&a,e&&this.matrix.appendMatrix(e),this},b.prepend=function(a,b,c,d,e){return this.alpha*=b,this.shadow=this.shadow||c,this.compositeOperation=this.compositeOperation||d,this.visible=this.visible&&a,e&&this.matrix.prependMatrix(e),this},b.identity=function(){return this.visible=!0,this.alpha=1,this.shadow=this.compositeOperation=null,this.matrix.identity(),this},b.clone=function(){return new a(this.alpha,this.shadow,this.compositeOperation,this.visible,this.matrix.clone())},createjs.DisplayProps=a}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b){this.setValues(a,b)}var b=a.prototype;b.setValues=function(a,b){return this.x=a||0,this.y=b||0,this},b.copy=function(a){return this.x=a.x,this.y=a.y,this},b.clone=function(){return new a(this.x,this.y)},b.toString=function(){return"[Point (x="+this.x+" y="+this.y+")]"},createjs.Point=a}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b,c,d){this.setValues(a,b,c,d)}var b=a.prototype;b.setValues=function(a,b,c,d){return this.x=a||0,this.y=b||0,this.width=c||0,this.height=d||0,this},b.extend=function(a,b,c,d){return c=c||0,d=d||0,a+c>this.x+this.width&&(this.width=a+c-this.x),b+d>this.y+this.height&&(this.height=b+d-this.y),a=this.x&&a+c<=this.x+this.width&&b>=this.y&&b+d<=this.y+this.height},b.union=function(a){return this.clone().extend(a.x,a.y,a.width,a.height)},b.intersection=function(b){var c=b.x,d=b.y,e=c+b.width,f=d+b.height;return this.x>c&&(c=this.x),this.y>d&&(d=this.y),this.x+this.width=e||d>=f?null:new a(c,d,e-c,f-d)},b.intersects=function(a){return a.x<=this.x+this.width&&this.x<=a.x+a.width&&a.y<=this.y+this.height&&this.y<=a.y+a.height},b.isEmpty=function(){return this.width<=0||this.height<=0},b.clone=function(){return new a(this.x,this.y,this.width,this.height)},b.toString=function(){return"[Rectangle (x="+this.x+" y="+this.y+" width="+this.width+" height="+this.height+")]"},createjs.Rectangle=a}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b,c,d,e,f,g){a.addEventListener&&(this.target=a,this.overLabel=null==c?"over":c,this.outLabel=null==b?"out":b,this.downLabel=null==d?"down":d,this.play=e,this._isPressed=!1,this._isOver=!1,this._enabled=!1,a.mouseChildren=!1,this.enabled=!0,this.handleEvent({}),f&&(g&&(f.actionsEnabled=!1,f.gotoAndStop&&f.gotoAndStop(g)),a.hitArea=f))}var b=a.prototype;b._setEnabled=function(a){if(a!=this._enabled){var b=this.target;this._enabled=a,a?(b.cursor="pointer",b.addEventListener("rollover",this),b.addEventListener("rollout",this),b.addEventListener("mousedown",this),b.addEventListener("pressup",this),b._reset&&(b.__reset=b._reset,b._reset=this._reset)):(b.cursor=null,b.removeEventListener("rollover",this),b.removeEventListener("rollout",this),b.removeEventListener("mousedown",this),b.removeEventListener("pressup",this),b.__reset&&(b._reset=b.__reset,delete b.__reset))}},b.setEnabled=createjs.deprecate(b._setEnabled,"ButtonHelper.setEnabled"),b._getEnabled=function(){return this._enabled},b.getEnabled=createjs.deprecate(b._getEnabled,"ButtonHelper.getEnabled");try{Object.defineProperties(b,{enabled:{get:b._getEnabled,set:b._setEnabled}})}catch(c){}b.toString=function(){return"[ButtonHelper]"},b.handleEvent=function(a){var b,c=this.target,d=a.type;"mousedown"==d?(this._isPressed=!0,b=this.downLabel):"pressup"==d?(this._isPressed=!1,b=this._isOver?this.overLabel:this.outLabel):"rollover"==d?(this._isOver=!0,b=this._isPressed?this.downLabel:this.overLabel):(this._isOver=!1,b=this._isPressed?this.overLabel:this.outLabel),this.play?c.gotoAndPlay&&c.gotoAndPlay(b):c.gotoAndStop&&c.gotoAndStop(b)},b._reset=function(){var a=this.paused;this.__reset(),this.paused=a},createjs.ButtonHelper=a}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b,c,d){this.color=a||"black",this.offsetX=b||0,this.offsetY=c||0,this.blur=d||0}var b=a.prototype;a.identity=new a("transparent",0,0,0),b.toString=function(){return"[Shadow]"},b.clone=function(){return new a(this.color,this.offsetX,this.offsetY,this.blur)},createjs.Shadow=a}(),this.createjs=this.createjs||{},function(){"use strict";function a(a){this.EventDispatcher_constructor(),this.complete=!0,this.framerate=0,this._animations=null,this._frames=null,this._images=null,this._data=null,this._loadCount=0,this._frameHeight=0,this._frameWidth=0,this._numFrames=0,this._regX=0,this._regY=0,this._spacing=0,this._margin=0,this._parseData(a)}var b=createjs.extend(a,createjs.EventDispatcher);b._getAnimations=function(){return this._animations.slice()},b.getAnimations=createjs.deprecate(b._getAnimations,"SpriteSheet.getAnimations");try{Object.defineProperties(b,{animations:{get:b._getAnimations}})}catch(c){}b.getNumFrames=function(a){if(null==a)return this._frames?this._frames.length:this._numFrames||0;var b=this._data[a];return null==b?0:b.frames.length},b.getAnimation=function(a){return this._data[a]},b.getFrame=function(a){var b;return this._frames&&(b=this._frames[a])?b:null},b.getFrameBounds=function(a,b){var c=this.getFrame(a);return c?(b||new createjs.Rectangle).setValues(-c.regX,-c.regY,c.rect.width,c.rect.height):null},b.toString=function(){return"[SpriteSheet]"},b.clone=function(){throw"SpriteSheet cannot be cloned."},b._parseData=function(a){var b,c,d,e;if(null!=a){if(this.framerate=a.framerate||0,a.images&&(c=a.images.length)>0)for(e=this._images=[],b=0;c>b;b++){var f=a.images[b];if("string"==typeof f){var g=f;f=document.createElement("img"),f.src=g}e.push(f),f.getContext||f.naturalWidth||(this._loadCount++,this.complete=!1,function(a,b){f.onload=function(){a._handleImageLoad(b)}}(this,g),function(a,b){f.onerror=function(){a._handleImageError(b)}}(this,g))}if(null==a.frames);else if(Array.isArray(a.frames))for(this._frames=[],e=a.frames,b=0,c=e.length;c>b;b++){var h=e[b];this._frames.push({image:this._images[h[4]?h[4]:0],rect:new createjs.Rectangle(h[0],h[1],h[2],h[3]),regX:h[5]||0,regY:h[6]||0})}else d=a.frames,this._frameWidth=d.width,this._frameHeight=d.height,this._regX=d.regX||0,this._regY=d.regY||0,this._spacing=d.spacing||0,this._margin=d.margin||0,this._numFrames=d.count,0==this._loadCount&&this._calculateFrames();if(this._animations=[],null!=(d=a.animations)){this._data={};var i;for(i in d){var j={name:i},k=d[i];if("number"==typeof k)e=j.frames=[k];else if(Array.isArray(k))if(1==k.length)j.frames=[k[0]];else for(j.speed=k[3],j.next=k[2],e=j.frames=[],b=k[0];b<=k[1];b++)e.push(b);else{j.speed=k.speed,j.next=k.next;var l=k.frames;e=j.frames="number"==typeof l?[l]:l.slice(0)}(j.next===!0||void 0===j.next)&&(j.next=i),(j.next===!1||e.length<2&&j.next==i)&&(j.next=null),j.speed||(j.speed=1),this._animations.push(i),this._data[i]=j}}}},b._handleImageLoad=function(a){0==--this._loadCount&&(this._calculateFrames(),this.complete=!0,this.dispatchEvent("complete"))},b._handleImageError=function(a){var b=new createjs.Event("error");b.src=a,this.dispatchEvent(b),0==--this._loadCount&&this.dispatchEvent("complete")},b._calculateFrames=function(){if(!this._frames&&0!=this._frameWidth){this._frames=[];var a=this._numFrames||1e5,b=0,c=this._frameWidth,d=this._frameHeight,e=this._spacing,f=this._margin;a:for(var g=0,h=this._images;g=l;){for(var m=f;j-f-c>=m;){if(b>=a)break a;b++,this._frames.push({image:i,rect:new createjs.Rectangle(m,l,c,d),regX:this._regX,regY:this._regY}),m+=c+e}l+=d+e}this._numFrames=b}},createjs.SpriteSheet=createjs.promote(a,"EventDispatcher")}(),this.createjs=this.createjs||{},function(){"use strict";function a(){this.command=null,this._stroke=null,this._strokeStyle=null,this._oldStrokeStyle=null,this._strokeDash=null,this._oldStrokeDash=null,this._strokeIgnoreScale=!1,this._fill=null,this._instructions=[],this._commitIndex=0,this._activeInstructions=[],this._dirty=!1,this._storeIndex=0,this.clear()}var b=a.prototype,c=a;a.getRGB=function(a,b,c,d){return null!=a&&null==c&&(d=b,c=255&a,b=a>>8&255,a=a>>16&255),null==d?"rgb("+a+","+b+","+c+")":"rgba("+a+","+b+","+c+","+d+")"},a.getHSL=function(a,b,c,d){return null==d?"hsl("+a%360+","+b+"%,"+c+"%)":"hsla("+a%360+","+b+"%,"+c+"%,"+d+")"},a.BASE_64={A:0,B:1,C:2,D:3,E:4,F:5,G:6,H:7,I:8,J:9,K:10,L:11,M:12,N:13,O:14,P:15,Q:16,R:17,S:18,T:19,U:20,V:21,W:22,X:23,Y:24,Z:25,a:26,b:27,c:28,d:29,e:30,f:31,g:32,h:33,i:34,j:35,k:36,l:37,m:38,n:39,o:40,p:41,q:42,r:43,s:44,t:45,u:46,v:47,w:48,x:49,y:50,z:51,0:52,1:53,2:54,3:55,4:56,5:57,6:58,7:59,8:60,9:61,"+":62,"/":63},a.STROKE_CAPS_MAP=["butt","round","square"],a.STROKE_JOINTS_MAP=["miter","round","bevel"];var d=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");d.getContext&&(a._ctx=d.getContext("2d"),d.width=d.height=1),b._getInstructions=function(){return this._updateInstructions(),this._instructions},b.getInstructions=createjs.deprecate(b._getInstructions,"Graphics.getInstructions");try{Object.defineProperties(b,{instructions:{get:b._getInstructions}})}catch(e){}b.isEmpty=function(){return!(this._instructions.length||this._activeInstructions.length)},b.draw=function(a,b){this._updateInstructions();for(var c=this._instructions,d=this._storeIndex,e=c.length;e>d;d++)c[d].exec(a,b)},b.drawAsPath=function(a){this._updateInstructions();for(var b,c=this._instructions,d=this._storeIndex,e=c.length;e>d;d++)(b=c[d]).path!==!1&&b.exec(a)},b.moveTo=function(a,b){return this.append(new c.MoveTo(a,b),!0)},b.lineTo=function(a,b){return this.append(new c.LineTo(a,b))},b.arcTo=function(a,b,d,e,f){return this.append(new c.ArcTo(a,b,d,e,f))},b.arc=function(a,b,d,e,f,g){return this.append(new c.Arc(a,b,d,e,f,g))},b.quadraticCurveTo=function(a,b,d,e){return this.append(new c.QuadraticCurveTo(a,b,d,e))},b.bezierCurveTo=function(a,b,d,e,f,g){return this.append(new c.BezierCurveTo(a,b,d,e,f,g))},b.rect=function(a,b,d,e){return this.append(new c.Rect(a,b,d,e))},b.closePath=function(){return this._activeInstructions.length?this.append(new c.ClosePath):this},b.clear=function(){return this._instructions.length=this._activeInstructions.length=this._commitIndex=0,this._strokeStyle=this._oldStrokeStyle=this._stroke=this._fill=this._strokeDash=this._oldStrokeDash=null,this._dirty=this._strokeIgnoreScale=!1,this},b.beginFill=function(a){return this._setFill(a?new c.Fill(a):null)},b.beginLinearGradientFill=function(a,b,d,e,f,g){return this._setFill((new c.Fill).linearGradient(a,b,d,e,f,g))},b.beginRadialGradientFill=function(a,b,d,e,f,g,h,i){return this._setFill((new c.Fill).radialGradient(a,b,d,e,f,g,h,i))},b.beginBitmapFill=function(a,b,d){return this._setFill(new c.Fill(null,d).bitmap(a,b))},b.endFill=function(){return this.beginFill()},b.setStrokeStyle=function(a,b,d,e,f){return this._updateInstructions(!0),this._strokeStyle=this.command=new c.StrokeStyle(a,b,d,e,f),this._stroke&&(this._stroke.ignoreScale=f),this._strokeIgnoreScale=f,this},b.setStrokeDash=function(a,b){return this._updateInstructions(!0),this._strokeDash=this.command=new c.StrokeDash(a,b),this},b.beginStroke=function(a){return this._setStroke(a?new c.Stroke(a):null)},b.beginLinearGradientStroke=function(a,b,d,e,f,g){return this._setStroke((new c.Stroke).linearGradient(a,b,d,e,f,g))},b.beginRadialGradientStroke=function(a,b,d,e,f,g,h,i){return this._setStroke((new c.Stroke).radialGradient(a,b,d,e,f,g,h,i))},b.beginBitmapStroke=function(a,b){return this._setStroke((new c.Stroke).bitmap(a,b))},b.endStroke=function(){return this.beginStroke()},b.curveTo=b.quadraticCurveTo,b.drawRect=b.rect,b.drawRoundRect=function(a,b,c,d,e){return this.drawRoundRectComplex(a,b,c,d,e,e,e,e)},b.drawRoundRectComplex=function(a,b,d,e,f,g,h,i){return this.append(new c.RoundRect(a,b,d,e,f,g,h,i))},b.drawCircle=function(a,b,d){return this.append(new c.Circle(a,b,d))},b.drawEllipse=function(a,b,d,e){return this.append(new c.Ellipse(a,b,d,e))},b.drawPolyStar=function(a,b,d,e,f,g){return this.append(new c.PolyStar(a,b,d,e,f,g))},b.append=function(a,b){return this._activeInstructions.push(a),this.command=a,b||(this._dirty=!0),this},b.decodePath=function(b){for(var c=[this.moveTo,this.lineTo,this.quadraticCurveTo,this.bezierCurveTo,this.closePath],d=[2,2,4,6,0],e=0,f=b.length,g=[],h=0,i=0,j=a.BASE_64;f>e;){var k=b.charAt(e),l=j[k],m=l>>3,n=c[m];if(!n||3&l)throw"bad path data (@"+e+"): "+k;var o=d[m];m||(h=i=0),g.length=0,e++;for(var p=(l>>2&1)+2,q=0;o>q;q++){var r=j[b.charAt(e)],s=r>>5?-1:1;r=(31&r)<<6|j[b.charAt(e+1)],3==p&&(r=r<<6|j[b.charAt(e+2)]),r=s*r/10,q%2?h=r+=h:i=r+=i,g[q]=r,e+=p}n.apply(this,g)}return this},b.store=function(){return this._updateInstructions(!0),this._storeIndex=this._instructions.length,this},b.unstore=function(){return this._storeIndex=0,this},b.clone=function(){var b=new a;return b.command=this.command,b._stroke=this._stroke,b._strokeStyle=this._strokeStyle,b._strokeDash=this._strokeDash,b._strokeIgnoreScale=this._strokeIgnoreScale,b._fill=this._fill,b._instructions=this._instructions.slice(),b._commitIndex=this._commitIndex,b._activeInstructions=this._activeInstructions.slice(),b._dirty=this._dirty,b._storeIndex=this._storeIndex,b},b.toString=function(){return"[Graphics]"},b.mt=b.moveTo,b.lt=b.lineTo,b.at=b.arcTo,b.bt=b.bezierCurveTo,b.qt=b.quadraticCurveTo,b.a=b.arc,b.r=b.rect,b.cp=b.closePath,b.c=b.clear,b.f=b.beginFill,b.lf=b.beginLinearGradientFill,b.rf=b.beginRadialGradientFill,b.bf=b.beginBitmapFill,b.ef=b.endFill,b.ss=b.setStrokeStyle,b.sd=b.setStrokeDash,b.s=b.beginStroke,b.ls=b.beginLinearGradientStroke,b.rs=b.beginRadialGradientStroke,b.bs=b.beginBitmapStroke,b.es=b.endStroke,b.dr=b.drawRect,b.rr=b.drawRoundRect,b.rc=b.drawRoundRectComplex,b.dc=b.drawCircle,b.de=b.drawEllipse,b.dp=b.drawPolyStar,b.p=b.decodePath,b._updateInstructions=function(b){var c=this._instructions,d=this._activeInstructions,e=this._commitIndex;if(this._dirty&&d.length){c.length=e,c.push(a.beginCmd);var f=d.length,g=c.length;c.length=g+f;for(var h=0;f>h;h++)c[h+g]=d[h];this._fill&&c.push(this._fill),this._stroke&&(this._strokeDash!==this._oldStrokeDash&&c.push(this._strokeDash),this._strokeStyle!==this._oldStrokeStyle&&c.push(this._strokeStyle),b&&(this._oldStrokeStyle=this._strokeStyle,this._oldStrokeDash=this._strokeDash),c.push(this._stroke)),this._dirty=!1}b&&(d.length=0,this._commitIndex=c.length)},b._setFill=function(a){return this._updateInstructions(!0),this.command=this._fill=a,this},b._setStroke=function(a){return this._updateInstructions(!0),(this.command=this._stroke=a)&&(a.ignoreScale=this._strokeIgnoreScale),this},(c.LineTo=function(a,b){this.x=a,this.y=b}).prototype.exec=function(a){a.lineTo(this.x,this.y)},(c.MoveTo=function(a,b){this.x=a,this.y=b}).prototype.exec=function(a){a.moveTo(this.x,this.y)},(c.ArcTo=function(a,b,c,d,e){this.x1=a,this.y1=b,this.x2=c,this.y2=d,this.radius=e}).prototype.exec=function(a){a.arcTo(this.x1,this.y1,this.x2,this.y2,this.radius)},(c.Arc=function(a,b,c,d,e,f){this.x=a,this.y=b,this.radius=c,this.startAngle=d,this.endAngle=e,this.anticlockwise=!!f}).prototype.exec=function(a){a.arc(this.x,this.y,this.radius,this.startAngle,this.endAngle,this.anticlockwise)},(c.QuadraticCurveTo=function(a,b,c,d){this.cpx=a,this.cpy=b,this.x=c,this.y=d}).prototype.exec=function(a){a.quadraticCurveTo(this.cpx,this.cpy,this.x,this.y)},(c.BezierCurveTo=function(a,b,c,d,e,f){this.cp1x=a,this.cp1y=b,this.cp2x=c,this.cp2y=d,this.x=e,this.y=f}).prototype.exec=function(a){a.bezierCurveTo(this.cp1x,this.cp1y,this.cp2x,this.cp2y,this.x,this.y)},(c.Rect=function(a,b,c,d){this.x=a,this.y=b,this.w=c,this.h=d}).prototype.exec=function(a){a.rect(this.x,this.y,this.w,this.h)},(c.ClosePath=function(){}).prototype.exec=function(a){a.closePath()},(c.BeginPath=function(){}).prototype.exec=function(a){a.beginPath()},b=(c.Fill=function(a,b){this.style=a,this.matrix=b}).prototype,b.exec=function(a){if(this.style){a.fillStyle=this.style;var b=this.matrix;b&&(a.save(),a.transform(b.a,b.b,b.c,b.d,b.tx,b.ty)),a.fill(),b&&a.restore()}},b.linearGradient=function(b,c,d,e,f,g){for(var h=this.style=a._ctx.createLinearGradient(d,e,f,g),i=0,j=b.length;j>i;i++)h.addColorStop(c[i],b[i]);return h.props={colors:b,ratios:c,x0:d,y0:e,x1:f,y1:g,type:"linear"},this},b.radialGradient=function(b,c,d,e,f,g,h,i){for(var j=this.style=a._ctx.createRadialGradient(d,e,f,g,h,i),k=0,l=b.length;l>k;k++)j.addColorStop(c[k],b[k]);return j.props={colors:b,ratios:c,x0:d,y0:e,r0:f,x1:g,y1:h,r1:i,type:"radial"},this},b.bitmap=function(b,c){if(b.naturalWidth||b.getContext||b.readyState>=2){var d=this.style=a._ctx.createPattern(b,c||"");d.props={image:b,repetition:c,type:"bitmap"}}return this},b.path=!1,b=(c.Stroke=function(a,b){this.style=a,this.ignoreScale=b}).prototype,b.exec=function(a){this.style&&(a.strokeStyle=this.style,this.ignoreScale&&(a.save(),a.setTransform(1,0,0,1,0,0)),a.stroke(),this.ignoreScale&&a.restore())},b.linearGradient=c.Fill.prototype.linearGradient,b.radialGradient=c.Fill.prototype.radialGradient,b.bitmap=c.Fill.prototype.bitmap,b.path=!1,b=(c.StrokeStyle=function(a,b,c,d,e){this.width=a,this.caps=b,this.joints=c,this.miterLimit=d,this.ignoreScale=e}).prototype,b.exec=function(b){b.lineWidth=null==this.width?"1":this.width,b.lineCap=null==this.caps?"butt":isNaN(this.caps)?this.caps:a.STROKE_CAPS_MAP[this.caps],b.lineJoin=null==this.joints?"miter":isNaN(this.joints)?this.joints:a.STROKE_JOINTS_MAP[this.joints],b.miterLimit=null==this.miterLimit?"10":this.miterLimit,b.ignoreScale=null==this.ignoreScale?!1:this.ignoreScale},b.path=!1,(c.StrokeDash=function(a,b){this.segments=a,this.offset=b||0}).prototype.exec=function(a){a.setLineDash&&(a.setLineDash(this.segments||c.StrokeDash.EMPTY_SEGMENTS),a.lineDashOffset=this.offset||0)},c.StrokeDash.EMPTY_SEGMENTS=[],(c.RoundRect=function(a,b,c,d,e,f,g,h){this.x=a,this.y=b,this.w=c,this.h=d,this.radiusTL=e,this.radiusTR=f,this.radiusBR=g,this.radiusBL=h}).prototype.exec=function(a){var b=(j>i?i:j)/2,c=0,d=0,e=0,f=0,g=this.x,h=this.y,i=this.w,j=this.h,k=this.radiusTL,l=this.radiusTR,m=this.radiusBR,n=this.radiusBL;0>k&&(k*=c=-1),k>b&&(k=b),0>l&&(l*=d=-1),l>b&&(l=b),0>m&&(m*=e=-1),m>b&&(m=b),0>n&&(n*=f=-1),n>b&&(n=b),a.moveTo(g+i-l,h),a.arcTo(g+i+l*d,h-l*d,g+i,h+l,l),a.lineTo(g+i,h+j-m),a.arcTo(g+i+m*e,h+j+m*e,g+i-m,h+j,m),a.lineTo(g+n,h+j),a.arcTo(g-n*f,h+j+n*f,g,h+j-n,n), +a.lineTo(g,h+k),a.arcTo(g-k*c,h-k*c,g+k,h,k),a.closePath()},(c.Circle=function(a,b,c){this.x=a,this.y=b,this.radius=c}).prototype.exec=function(a){a.arc(this.x,this.y,this.radius,0,2*Math.PI)},(c.Ellipse=function(a,b,c,d){this.x=a,this.y=b,this.w=c,this.h=d}).prototype.exec=function(a){var b=this.x,c=this.y,d=this.w,e=this.h,f=.5522848,g=d/2*f,h=e/2*f,i=b+d,j=c+e,k=b+d/2,l=c+e/2;a.moveTo(b,l),a.bezierCurveTo(b,l-h,k-g,c,k,c),a.bezierCurveTo(k+g,c,i,l-h,i,l),a.bezierCurveTo(i,l+h,k+g,j,k,j),a.bezierCurveTo(k-g,j,b,l+h,b,l)},(c.PolyStar=function(a,b,c,d,e,f){this.x=a,this.y=b,this.radius=c,this.sides=d,this.pointSize=e,this.angle=f}).prototype.exec=function(a){var b=this.x,c=this.y,d=this.radius,e=(this.angle||0)/180*Math.PI,f=this.sides,g=1-(this.pointSize||0),h=Math.PI/f;a.moveTo(b+Math.cos(e)*d,c+Math.sin(e)*d);for(var i=0;f>i;i++)e+=h,1!=g&&a.lineTo(b+Math.cos(e)*d*g,c+Math.sin(e)*d*g),e+=h,a.lineTo(b+Math.cos(e)*d,c+Math.sin(e)*d);a.closePath()},a.beginCmd=new c.BeginPath,createjs.Graphics=a}(),this.createjs=this.createjs||{},function(){"use strict";function a(){this.EventDispatcher_constructor(),this.alpha=1,this.cacheCanvas=null,this.bitmapCache=null,this.id=createjs.UID.get(),this.mouseEnabled=!0,this.tickEnabled=!0,this.name=null,this.parent=null,this.regX=0,this.regY=0,this.rotation=0,this.scaleX=1,this.scaleY=1,this.skewX=0,this.skewY=0,this.shadow=null,this.visible=!0,this.x=0,this.y=0,this.transformMatrix=null,this.compositeOperation=null,this.snapToPixel=!0,this.filters=null,this.mask=null,this.hitArea=null,this.cursor=null,this._props=new createjs.DisplayProps,this._rectangle=new createjs.Rectangle,this._bounds=null,this._webGLRenderStyle=a._StageGL_NONE}var b=createjs.extend(a,createjs.EventDispatcher);a._MOUSE_EVENTS=["click","dblclick","mousedown","mouseout","mouseover","pressmove","pressup","rollout","rollover"],a.suppressCrossDomainErrors=!1,a._snapToPixelEnabled=!1,a._StageGL_NONE=0,a._StageGL_SPRITE=1,a._StageGL_BITMAP=2;var c=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");c.getContext&&(a._hitTestCanvas=c,a._hitTestContext=c.getContext("2d"),c.width=c.height=1),b._getStage=function(){for(var a=this,b=createjs.Stage;a.parent;)a=a.parent;return a instanceof b?a:null},b.getStage=createjs.deprecate(b._getStage,"DisplayObject.getStage");try{Object.defineProperties(b,{stage:{get:b._getStage},cacheID:{get:function(){return this.bitmapCache&&this.bitmapCache.cacheID},set:function(a){this.bitmapCache&&(this.bitmapCache.cacheID=a)}},scale:{get:function(){return this.scaleX},set:function(a){this.scaleX=this.scaleY=a}}})}catch(d){}b.isVisible=function(){return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY)},b.draw=function(a,b){var c=this.bitmapCache;return c&&!b?c.draw(a):!1},b.updateContext=function(b){var c=this,d=c.mask,e=c._props.matrix;d&&d.graphics&&!d.graphics.isEmpty()&&(d.getMatrix(e),b.transform(e.a,e.b,e.c,e.d,e.tx,e.ty),d.graphics.drawAsPath(b),b.clip(),e.invert(),b.transform(e.a,e.b,e.c,e.d,e.tx,e.ty)),this.getMatrix(e);var f=e.tx,g=e.ty;a._snapToPixelEnabled&&c.snapToPixel&&(f=f+(0>f?-.5:.5)|0,g=g+(0>g?-.5:.5)|0),b.transform(e.a,e.b,e.c,e.d,f,g),b.globalAlpha*=c.alpha,c.compositeOperation&&(b.globalCompositeOperation=c.compositeOperation),c.shadow&&this._applyShadow(b,c.shadow)},b.cache=function(a,b,c,d,e,f){this.bitmapCache||(this.bitmapCache=new createjs.BitmapCache),this.bitmapCache.define(this,a,b,c,d,e,f)},b.updateCache=function(a){if(!this.bitmapCache)throw"cache() must be called before updateCache()";this.bitmapCache.update(a)},b.uncache=function(){this.bitmapCache&&(this.bitmapCache.release(),this.bitmapCache=void 0)},b.getCacheDataURL=function(){return this.bitmapCache?this.bitmapCache.getDataURL():null},b.localToGlobal=function(a,b,c){return this.getConcatenatedMatrix(this._props.matrix).transformPoint(a,b,c||new createjs.Point)},b.globalToLocal=function(a,b,c){return this.getConcatenatedMatrix(this._props.matrix).invert().transformPoint(a,b,c||new createjs.Point)},b.localToLocal=function(a,b,c,d){return d=this.localToGlobal(a,b,d),c.globalToLocal(d.x,d.y,d)},b.setTransform=function(a,b,c,d,e,f,g,h,i){return this.x=a||0,this.y=b||0,this.scaleX=null==c?1:c,this.scaleY=null==d?1:d,this.rotation=e||0,this.skewX=f||0,this.skewY=g||0,this.regX=h||0,this.regY=i||0,this},b.getMatrix=function(a){var b=this,c=a&&a.identity()||new createjs.Matrix2D;return b.transformMatrix?c.copy(b.transformMatrix):c.appendTransform(b.x,b.y,b.scaleX,b.scaleY,b.rotation,b.skewX,b.skewY,b.regX,b.regY)},b.getConcatenatedMatrix=function(a){for(var b=this,c=this.getMatrix(a);b=b.parent;)c.prependMatrix(b.getMatrix(b._props.matrix));return c},b.getConcatenatedDisplayProps=function(a){a=a?a.identity():new createjs.DisplayProps;var b=this,c=b.getMatrix(a.matrix);do a.prepend(b.visible,b.alpha,b.shadow,b.compositeOperation),b!=this&&c.prependMatrix(b.getMatrix(b._props.matrix));while(b=b.parent);return a},b.hitTest=function(b,c){var d=a._hitTestContext;d.setTransform(1,0,0,1,-b,-c),this.draw(d);var e=this._testHit(d);return d.setTransform(1,0,0,1,0,0),d.clearRect(0,0,2,2),e},b.set=function(a){for(var b in a)this[b]=a[b];return this},b.getBounds=function(){if(this._bounds)return this._rectangle.copy(this._bounds);var a=this.cacheCanvas;if(a){var b=this._cacheScale;return this._rectangle.setValues(this._cacheOffsetX,this._cacheOffsetY,a.width/b,a.height/b)}return null},b.getTransformedBounds=function(){return this._getBounds()},b.setBounds=function(a,b,c,d){return null==a?void(this._bounds=a):void(this._bounds=(this._bounds||new createjs.Rectangle).setValues(a,b,c,d))},b.clone=function(){return this._cloneProps(new a)},b.toString=function(){return"[DisplayObject (name="+this.name+")]"},b._updateState=null,b._cloneProps=function(a){return a.alpha=this.alpha,a.mouseEnabled=this.mouseEnabled,a.tickEnabled=this.tickEnabled,a.name=this.name,a.regX=this.regX,a.regY=this.regY,a.rotation=this.rotation,a.scaleX=this.scaleX,a.scaleY=this.scaleY,a.shadow=this.shadow,a.skewX=this.skewX,a.skewY=this.skewY,a.visible=this.visible,a.x=this.x,a.y=this.y,a.compositeOperation=this.compositeOperation,a.snapToPixel=this.snapToPixel,a.filters=null==this.filters?null:this.filters.slice(0),a.mask=this.mask,a.hitArea=this.hitArea,a.cursor=this.cursor,a._bounds=this._bounds,a},b._applyShadow=function(a,b){b=b||Shadow.identity,a.shadowColor=b.color,a.shadowOffsetX=b.offsetX,a.shadowOffsetY=b.offsetY,a.shadowBlur=b.blur},b._tick=function(a){var b=this._listeners;b&&b.tick&&(a.target=null,a.propagationStopped=a.immediatePropagationStopped=!1,this.dispatchEvent(a))},b._testHit=function(b){try{var c=b.getImageData(0,0,1,1).data[3]>1}catch(d){if(!a.suppressCrossDomainErrors)throw"An error has occurred. This is most likely due to security restrictions on reading canvas pixel data with local or cross-domain images."}return c},b._getBounds=function(a,b){return this._transformBounds(this.getBounds(),a,b)},b._transformBounds=function(a,b,c){if(!a)return a;var d=a.x,e=a.y,f=a.width,g=a.height,h=this._props.matrix;h=c?h.identity():this.getMatrix(h),(d||e)&&h.appendTransform(0,0,1,1,0,0,0,-d,-e),b&&h.prependMatrix(b);var i=f*h.a,j=f*h.b,k=g*h.c,l=g*h.d,m=h.tx,n=h.ty,o=m,p=m,q=n,r=n;return(d=i+m)p&&(p=d),(d=i+k+m)p&&(p=d),(d=k+m)p&&(p=d),(e=j+n)r&&(r=e),(e=j+l+n)r&&(r=e),(e=l+n)r&&(r=e),a.setValues(o,q,p-o,r-q)},b._hasMouseEventListener=function(){for(var b=a._MOUSE_EVENTS,c=0,d=b.length;d>c;c++)if(this.hasEventListener(b[c]))return!0;return!!this.cursor},createjs.DisplayObject=createjs.promote(a,"EventDispatcher")}(),this.createjs=this.createjs||{},function(){"use strict";function a(){this.DisplayObject_constructor(),this.children=[],this.mouseChildren=!0,this.tickChildren=!0}var b=createjs.extend(a,createjs.DisplayObject);b._getNumChildren=function(){return this.children.length},b.getNumChildren=createjs.deprecate(b._getNumChildren,"Container.getNumChildren");try{Object.defineProperties(b,{numChildren:{get:b._getNumChildren}})}catch(c){}b.initialize=a,b.isVisible=function(){var a=this.cacheCanvas||this.children.length;return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY&&a)},b.draw=function(a,b){if(this.DisplayObject_draw(a,b))return!0;for(var c=this.children.slice(),d=0,e=c.length;e>d;d++){var f=c[d];f.isVisible()&&(a.save(),f.updateContext(a),f.draw(a),a.restore())}return!0},b.addChild=function(a){if(null==a)return a;var b=arguments.length;if(b>1){for(var c=0;b>c;c++)this.addChild(arguments[c]);return arguments[b-1]}var d=a.parent,e=d===this;return d&&d._removeChildAt(createjs.indexOf(d.children,a),e),a.parent=this,this.children.push(a),e||a.dispatchEvent("added"),a},b.addChildAt=function(a,b){var c=arguments.length,d=arguments[c-1];if(0>d||d>this.children.length)return arguments[c-2];if(c>2){for(var e=0;c-1>e;e++)this.addChildAt(arguments[e],d+e);return arguments[c-2]}var f=a.parent,g=f===this;return f&&f._removeChildAt(createjs.indexOf(f.children,a),g),a.parent=this,this.children.splice(b,0,a),g||a.dispatchEvent("added"),a},b.removeChild=function(a){var b=arguments.length;if(b>1){for(var c=!0,d=0;b>d;d++)c=c&&this.removeChild(arguments[d]);return c}return this._removeChildAt(createjs.indexOf(this.children,a))},b.removeChildAt=function(a){var b=arguments.length;if(b>1){for(var c=[],d=0;b>d;d++)c[d]=arguments[d];c.sort(function(a,b){return b-a});for(var e=!0,d=0;b>d;d++)e=e&&this._removeChildAt(c[d]);return e}return this._removeChildAt(a)},b.removeAllChildren=function(){for(var a=this.children;a.length;)this._removeChildAt(0)},b.getChildAt=function(a){return this.children[a]},b.getChildByName=function(a){for(var b=this.children,c=0,d=b.length;d>c;c++)if(b[c].name==a)return b[c];return null},b.sortChildren=function(a){this.children.sort(a)},b.getChildIndex=function(a){return createjs.indexOf(this.children,a)},b.swapChildrenAt=function(a,b){var c=this.children,d=c[a],e=c[b];d&&e&&(c[a]=e,c[b]=d)},b.swapChildren=function(a,b){for(var c,d,e=this.children,f=0,g=e.length;g>f&&(e[f]==a&&(c=f),e[f]==b&&(d=f),null==c||null==d);f++);f!=g&&(e[c]=b,e[d]=a)},b.setChildIndex=function(a,b){var c=this.children,d=c.length;if(!(a.parent!=this||0>b||b>=d)){for(var e=0;d>e&&c[e]!=a;e++);e!=d&&e!=b&&(c.splice(e,1),c.splice(b,0,a))}},b.contains=function(a){for(;a;){if(a==this)return!0;a=a.parent}return!1},b.hitTest=function(a,b){return null!=this.getObjectUnderPoint(a,b)},b.getObjectsUnderPoint=function(a,b,c){var d=[],e=this.localToGlobal(a,b);return this._getObjectsUnderPoint(e.x,e.y,d,c>0,1==c),d},b.getObjectUnderPoint=function(a,b,c){var d=this.localToGlobal(a,b);return this._getObjectsUnderPoint(d.x,d.y,null,c>0,1==c)},b.getBounds=function(){return this._getBounds(null,!0)},b.getTransformedBounds=function(){return this._getBounds()},b.clone=function(b){var c=this._cloneProps(new a);return b&&this._cloneChildren(c),c},b.toString=function(){return"[Container (name="+this.name+")]"},b._tick=function(a){if(this.tickChildren)for(var b=this.children.length-1;b>=0;b--){var c=this.children[b];c.tickEnabled&&c._tick&&c._tick(a)}this.DisplayObject__tick(a)},b._cloneChildren=function(a){a.children.length&&a.removeAllChildren();for(var b=a.children,c=0,d=this.children.length;d>c;c++){var e=this.children[c].clone(!0);e.parent=a,b.push(e)}},b._removeChildAt=function(a,b){if(0>a||a>this.children.length-1)return!1;var c=this.children[a];return c&&(c.parent=null),this.children.splice(a,1),b||c.dispatchEvent("removed"),!0},b._getObjectsUnderPoint=function(b,c,d,e,f,g){if(g=g||0,!g&&!this._testMask(this,b,c))return null;var h,i=createjs.DisplayObject._hitTestContext;f=f||e&&this._hasMouseEventListener();for(var j=this.children,k=j.length,l=k-1;l>=0;l--){var m=j[l],n=m.hitArea;if(m.visible&&(n||m.isVisible())&&(!e||m.mouseEnabled)&&(n||this._testMask(m,b,c)))if(!n&&m instanceof a){var o=m._getObjectsUnderPoint(b,c,d,e,f,g+1);if(!d&&o)return e&&!this.mouseChildren?this:o}else{if(e&&!f&&!m._hasMouseEventListener())continue;var p=m.getConcatenatedDisplayProps(m._props);if(h=p.matrix,n&&(h.appendMatrix(n.getMatrix(n._props.matrix)),p.alpha=n.alpha),i.globalAlpha=p.alpha,i.setTransform(h.a,h.b,h.c,h.d,h.tx-b,h.ty-c),(n||m).draw(i),!this._testHit(i))continue;if(i.setTransform(1,0,0,1,0,0),i.clearRect(0,0,2,2),!d)return e&&!this.mouseChildren?this:m;d.push(m)}}return null},b._testMask=function(a,b,c){var d=a.mask;if(!d||!d.graphics||d.graphics.isEmpty())return!0;var e=this._props.matrix,f=a.parent;e=f?f.getConcatenatedMatrix(e):e.identity(),e=d.getMatrix(d._props.matrix).prependMatrix(e);var g=createjs.DisplayObject._hitTestContext;return g.setTransform(e.a,e.b,e.c,e.d,e.tx-b,e.ty-c),d.graphics.drawAsPath(g),g.fillStyle="#000",g.fill(),this._testHit(g)?(g.setTransform(1,0,0,1,0,0),g.clearRect(0,0,2,2),!0):!1},b._getBounds=function(a,b){var c=this.DisplayObject_getBounds();if(c)return this._transformBounds(c,a,b);var d=this._props.matrix;d=b?d.identity():this.getMatrix(d),a&&d.prependMatrix(a);for(var e=this.children.length,f=null,g=0;e>g;g++){var h=this.children[g];h.visible&&(c=h._getBounds(d))&&(f?f.extend(c.x,c.y,c.width,c.height):f=c.clone())}return f},createjs.Container=createjs.promote(a,"DisplayObject")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a){this.Container_constructor(),this.autoClear=!0,this.canvas="string"==typeof a?document.getElementById(a):a,this.mouseX=0,this.mouseY=0,this.drawRect=null,this.snapToPixelEnabled=!1,this.mouseInBounds=!1,this.tickOnUpdate=!0,this.mouseMoveOutside=!1,this.preventSelection=!0,this._pointerData={},this._pointerCount=0,this._primaryPointerID=null,this._mouseOverIntervalID=null,this._nextStage=null,this._prevStage=null,this.enableDOMEvents(!0)}var b=createjs.extend(a,createjs.Container);b._get_nextStage=function(){return this._nextStage},b._set_nextStage=function(a){this._nextStage&&(this._nextStage._prevStage=null),a&&(a._prevStage=this),this._nextStage=a};try{Object.defineProperties(b,{nextStage:{get:b._get_nextStage,set:b._set_nextStage}})}catch(c){}b.update=function(a){if(this.canvas&&(this.tickOnUpdate&&this.tick(a),this.dispatchEvent("drawstart",!1,!0)!==!1)){createjs.DisplayObject._snapToPixelEnabled=this.snapToPixelEnabled;var b=this.drawRect,c=this.canvas.getContext("2d");c.setTransform(1,0,0,1,0,0),this.autoClear&&(b?c.clearRect(b.x,b.y,b.width,b.height):c.clearRect(0,0,this.canvas.width+1,this.canvas.height+1)),c.save(),this.drawRect&&(c.beginPath(),c.rect(b.x,b.y,b.width,b.height),c.clip()),this.updateContext(c),this.draw(c,!1),c.restore(),this.dispatchEvent("drawend")}},b.tick=function(a){if(this.tickEnabled&&this.dispatchEvent("tickstart",!1,!0)!==!1){var b=new createjs.Event("tick");if(a)for(var c in a)a.hasOwnProperty(c)&&(b[c]=a[c]);this._tick(b),this.dispatchEvent("tickend")}},b.handleEvent=function(a){"tick"==a.type&&this.update(a)},b.clear=function(){if(this.canvas){var a=this.canvas.getContext("2d");a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,this.canvas.width+1,this.canvas.height+1)}},b.toDataURL=function(a,b){var c,d=this.canvas.getContext("2d"),e=this.canvas.width,f=this.canvas.height;if(a){c=d.getImageData(0,0,e,f);var g=d.globalCompositeOperation;d.globalCompositeOperation="destination-over",d.fillStyle=a,d.fillRect(0,0,e,f)}var h=this.canvas.toDataURL(b||"image/png");return a&&(d.putImageData(c,0,0),d.globalCompositeOperation=g),h},b.enableMouseOver=function(a){if(this._mouseOverIntervalID&&(clearInterval(this._mouseOverIntervalID),this._mouseOverIntervalID=null,0==a&&this._testMouseOver(!0)),null==a)a=20;else if(0>=a)return;var b=this;this._mouseOverIntervalID=setInterval(function(){b._testMouseOver()},1e3/Math.min(50,a))},b.enableDOMEvents=function(a){null==a&&(a=!0);var b,c,d=this._eventListeners;if(!a&&d){for(b in d)c=d[b],c.t.removeEventListener(b,c.f,!1);this._eventListeners=null}else if(a&&!d&&this.canvas){var e=window.addEventListener?window:document,f=this;d=this._eventListeners={},d.mouseup={t:e,f:function(a){f._handleMouseUp(a)}},d.mousemove={t:e,f:function(a){f._handleMouseMove(a)}},d.dblclick={t:this.canvas,f:function(a){f._handleDoubleClick(a)}},d.mousedown={t:this.canvas,f:function(a){f._handleMouseDown(a)}};for(b in d)c=d[b],c.t.addEventListener(b,c.f,!1)}},b.clone=function(){throw"Stage cannot be cloned."},b.toString=function(){return"[Stage (name="+this.name+")]"},b._getElementRect=function(a){var b;try{b=a.getBoundingClientRect()}catch(c){b={top:a.offsetTop,left:a.offsetLeft,width:a.offsetWidth,height:a.offsetHeight}}var d=(window.pageXOffset||document.scrollLeft||0)-(document.clientLeft||document.body.clientLeft||0),e=(window.pageYOffset||document.scrollTop||0)-(document.clientTop||document.body.clientTop||0),f=window.getComputedStyle?getComputedStyle(a,null):a.currentStyle,g=parseInt(f.paddingLeft)+parseInt(f.borderLeftWidth),h=parseInt(f.paddingTop)+parseInt(f.borderTopWidth),i=parseInt(f.paddingRight)+parseInt(f.borderRightWidth),j=parseInt(f.paddingBottom)+parseInt(f.borderBottomWidth);return{left:b.left+d+g,right:b.right+d-i,top:b.top+e+h,bottom:b.bottom+e-j}},b._getPointerData=function(a){var b=this._pointerData[a];return b||(b=this._pointerData[a]={x:0,y:0}),b},b._handleMouseMove=function(a){a||(a=window.event),this._handlePointerMove(-1,a,a.pageX,a.pageY)},b._handlePointerMove=function(a,b,c,d,e){if((!this._prevStage||void 0!==e)&&this.canvas){var f=this._nextStage,g=this._getPointerData(a),h=g.inBounds;this._updatePointerPosition(a,b,c,d),(h||g.inBounds||this.mouseMoveOutside)&&(-1===a&&g.inBounds==!h&&this._dispatchMouseEvent(this,h?"mouseleave":"mouseenter",!1,a,g,b),this._dispatchMouseEvent(this,"stagemousemove",!1,a,g,b),this._dispatchMouseEvent(g.target,"pressmove",!0,a,g,b)),f&&f._handlePointerMove(a,b,c,d,null)}},b._updatePointerPosition=function(a,b,c,d){var e=this._getElementRect(this.canvas);c-=e.left,d-=e.top;var f=this.canvas.width,g=this.canvas.height;c/=(e.right-e.left)/f,d/=(e.bottom-e.top)/g;var h=this._getPointerData(a);(h.inBounds=c>=0&&d>=0&&f-1>=c&&g-1>=d)?(h.x=c,h.y=d):this.mouseMoveOutside&&(h.x=0>c?0:c>f-1?f-1:c,h.y=0>d?0:d>g-1?g-1:d),h.posEvtObj=b,h.rawX=c,h.rawY=d,(a===this._primaryPointerID||-1===a)&&(this.mouseX=h.x,this.mouseY=h.y,this.mouseInBounds=h.inBounds)},b._handleMouseUp=function(a){this._handlePointerUp(-1,a,!1)},b._handlePointerUp=function(a,b,c,d){var e=this._nextStage,f=this._getPointerData(a);if(!this._prevStage||void 0!==d){var g=null,h=f.target;d||!h&&!e||(g=this._getObjectsUnderPoint(f.x,f.y,null,!0)),f.down&&(this._dispatchMouseEvent(this,"stagemouseup",!1,a,f,b,g),f.down=!1),g==h&&this._dispatchMouseEvent(h,"click",!0,a,f,b),this._dispatchMouseEvent(h,"pressup",!0,a,f,b),c?(a==this._primaryPointerID&&(this._primaryPointerID=null),delete this._pointerData[a]):f.target=null,e&&e._handlePointerUp(a,b,c,d||g&&this)}},b._handleMouseDown=function(a){this._handlePointerDown(-1,a,a.pageX,a.pageY)},b._handlePointerDown=function(a,b,c,d,e){this.preventSelection&&b.preventDefault(),(null==this._primaryPointerID||-1===a)&&(this._primaryPointerID=a),null!=d&&this._updatePointerPosition(a,b,c,d);var f=null,g=this._nextStage,h=this._getPointerData(a);e||(f=h.target=this._getObjectsUnderPoint(h.x,h.y,null,!0)),h.inBounds&&(this._dispatchMouseEvent(this,"stagemousedown",!1,a,h,b,f),h.down=!0),this._dispatchMouseEvent(f,"mousedown",!0,a,h,b),g&&g._handlePointerDown(a,b,c,d,e||f&&this)},b._testMouseOver=function(a,b,c){if(!this._prevStage||void 0!==b){var d=this._nextStage;if(!this._mouseOverIntervalID)return void(d&&d._testMouseOver(a,b,c));var e=this._getPointerData(-1);if(e&&(a||this.mouseX!=this._mouseOverX||this.mouseY!=this._mouseOverY||!this.mouseInBounds)){var f,g,h,i=e.posEvtObj,j=c||i&&i.target==this.canvas,k=null,l=-1,m="";!b&&(a||this.mouseInBounds&&j)&&(k=this._getObjectsUnderPoint(this.mouseX,this.mouseY,null,!0),this._mouseOverX=this.mouseX,this._mouseOverY=this.mouseY);var n=this._mouseOverTarget||[],o=n[n.length-1],p=this._mouseOverTarget=[];for(f=k;f;)p.unshift(f),m||(m=f.cursor),f=f.parent;for(this.canvas.style.cursor=m,!b&&c&&(c.canvas.style.cursor=m),g=0,h=p.length;h>g&&p[g]==n[g];g++)l=g;for(o!=k&&this._dispatchMouseEvent(o,"mouseout",!0,-1,e,i,k),g=n.length-1;g>l;g--)this._dispatchMouseEvent(n[g],"rollout",!1,-1,e,i,k);for(g=p.length-1;g>l;g--)this._dispatchMouseEvent(p[g],"rollover",!1,-1,e,i,o);o!=k&&this._dispatchMouseEvent(k,"mouseover",!0,-1,e,i,o),d&&d._testMouseOver(a,b||k&&this,c||j&&this)}}},b._handleDoubleClick=function(a,b){var c=null,d=this._nextStage,e=this._getPointerData(-1);b||(c=this._getObjectsUnderPoint(e.x,e.y,null,!0),this._dispatchMouseEvent(c,"dblclick",!0,-1,e,a)),d&&d._handleDoubleClick(a,b||c&&this)},b._dispatchMouseEvent=function(a,b,c,d,e,f,g){if(a&&(c||a.hasEventListener(b))){var h=new createjs.MouseEvent(b,c,!1,e.x,e.y,f,d,d===this._primaryPointerID||-1===d,e.rawX,e.rawY,g);a.dispatchEvent(h)}},createjs.Stage=createjs.promote(a,"Container")}(),this.createjs=this.createjs||{},function(){"use strict";function a(b,c){if(this.Stage_constructor(b),void 0!==c){if("object"!=typeof c)throw"Invalid options object";var d=c.premultiply,e=c.transparent,f=c.antialias,g=c.preserveBuffer,h=c.autoPurge}this.vocalDebug=!1,this._preserveBuffer=g||!1,this._antialias=f||!1,this._transparent=e||!1,this._premultiply=d||!1,this._autoPurge=void 0,this.autoPurge=h,this._viewportWidth=0,this._viewportHeight=0,this._projectionMatrix=null,this._webGLContext=null,this._clearColor={r:.5,g:.5,b:.5,a:0},this._maxCardsPerBatch=a.DEFAULT_MAX_BATCH_SIZE,this._activeShader=null,this._vertices=null,this._vertexPositionBuffer=null,this._uvs=null,this._uvPositionBuffer=null,this._indices=null,this._textureIndexBuffer=null,this._alphas=null,this._alphaBuffer=null,this._textureDictionary=[],this._textureIDs={},this._batchTextures=[],this._baseTextures=[],this._batchTextureCount=8,this._lastTextureInsert=-1,this._batchID=0,this._drawID=0,this._slotBlacklist=[],this._isDrawing=0,this._lastTrackedCanvas=0,this.isCacheControlled=!1,this._cacheContainer=new createjs.Container,this._initializeWebGL()}var b=createjs.extend(a,createjs.Stage);a.buildUVRects=function(a,b,c){if(!a||!a._frames)return null;void 0===b&&(b=-1),void 0===c&&(c=!1);for(var d=-1!=b&&c?b:0,e=-1!=b&&c?b+1:a._frames.length,f=d;e>f;f++){var g=a._frames[f];if(!(g.uvRect||g.image.width<=0||g.image.height<=0)){var h=g.rect;g.uvRect={t:h.y/g.image.height,l:h.x/g.image.width,b:(h.y+h.height)/g.image.height,r:(h.x+h.width)/g.image.width}}}return a._frames[-1!=b?b:0].uvRect||{t:0,l:0,b:1,r:1}},a.isWebGLActive=function(a){return a&&a instanceof WebGLRenderingContext&&"undefined"!=typeof WebGLRenderingContext},a.VERTEX_PROPERTY_COUNT=6,a.INDICIES_PER_CARD=6,a.DEFAULT_MAX_BATCH_SIZE=1e4,a.WEBGL_MAX_INDEX_NUM=Math.pow(2,16),a.UV_RECT={t:0,l:0,b:1,r:1};try{a.COVER_VERT=new Float32Array([-1,1,1,1,-1,-1,1,1,1,-1,-1,-1]),a.COVER_UV=new Float32Array([0,0,1,0,0,1,1,0,1,1,0,1]),a.COVER_UV_FLIP=new Float32Array([0,1,1,1,0,0,1,1,1,0,0,0])}catch(c){}a.REGULAR_VARYING_HEADER="precision mediump float;varying vec2 vTextureCoord;varying lowp float indexPicker;varying lowp float alphaValue;",a.REGULAR_VERTEX_HEADER=a.REGULAR_VARYING_HEADER+"attribute vec2 vertexPosition;attribute vec2 uvPosition;attribute lowp float textureIndex;attribute lowp float objectAlpha;uniform mat4 pMatrix;",a.REGULAR_FRAGMENT_HEADER=a.REGULAR_VARYING_HEADER+"uniform sampler2D uSampler[{{count}}];",a.REGULAR_VERTEX_BODY="void main(void) {gl_Position = vec4((vertexPosition.x * pMatrix[0][0]) + pMatrix[3][0],(vertexPosition.y * pMatrix[1][1]) + pMatrix[3][1],pMatrix[3][2],1.0);alphaValue = objectAlpha;indexPicker = textureIndex;vTextureCoord = uvPosition;}",a.REGULAR_FRAGMENT_BODY="void main(void) {vec4 color = vec4(1.0, 0.0, 0.0, 1.0);if (indexPicker <= 0.5) {color = texture2D(uSampler[0], vTextureCoord);{{alternates}}}{{fragColor}}}",a.REGULAR_FRAG_COLOR_NORMAL="gl_FragColor = vec4(color.rgb, color.a * alphaValue);",a.REGULAR_FRAG_COLOR_PREMULTIPLY="if(color.a > 0.0035) {gl_FragColor = vec4(color.rgb/color.a, color.a * alphaValue);} else {gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0);}",a.PARTICLE_VERTEX_BODY=a.REGULAR_VERTEX_BODY,a.PARTICLE_FRAGMENT_BODY=a.REGULAR_FRAGMENT_BODY,a.COVER_VARYING_HEADER="precision mediump float;varying highp vec2 vRenderCoord;varying highp vec2 vTextureCoord;",a.COVER_VERTEX_HEADER=a.COVER_VARYING_HEADER+"attribute vec2 vertexPosition;attribute vec2 uvPosition;uniform float uUpright;",a.COVER_FRAGMENT_HEADER=a.COVER_VARYING_HEADER+"uniform sampler2D uSampler;",a.COVER_VERTEX_BODY="void main(void) {gl_Position = vec4(vertexPosition.x, vertexPosition.y, 0.0, 1.0);vRenderCoord = uvPosition;vTextureCoord = vec2(uvPosition.x, abs(uUpright - uvPosition.y));}",a.COVER_FRAGMENT_BODY="void main(void) {vec4 color = texture2D(uSampler, vRenderCoord);gl_FragColor = color;}",b._get_isWebGL=function(){return!!this._webGLContext},b._set_autoPurge=function(a){a=isNaN(a)?1200:a,-1!=a&&(a=10>a?10:a),this._autoPurge=a},b._get_autoPurge=function(){return Number(this._autoPurge)};try{Object.defineProperties(b,{isWebGL:{get:b._get_isWebGL},autoPurge:{get:b._get_autoPurge,set:b._set_autoPurge}})}catch(c){}b._initializeWebGL=function(){if(this.canvas){if(!this._webGLContext||this._webGLContext.canvas!==this.canvas){var a={depth:!1,alpha:this._transparent,stencil:!0,antialias:this._antialias,premultipliedAlpha:this._premultiply,preserveDrawingBuffer:this._preserveBuffer},b=this._webGLContext=this._fetchWebGLContext(this.canvas,a);if(!b)return null;this.updateSimultaneousTextureCount(b.getParameter(b.MAX_TEXTURE_IMAGE_UNITS)),this._maxTextureSlots=b.getParameter(b.MAX_COMBINED_TEXTURE_IMAGE_UNITS),this._createBuffers(b),this._initTextures(b),b.disable(b.DEPTH_TEST),b.enable(b.BLEND),b.blendFuncSeparate(b.SRC_ALPHA,b.ONE_MINUS_SRC_ALPHA,b.ONE,b.ONE_MINUS_SRC_ALPHA),b.pixelStorei(b.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this._premultiply),this._webGLContext.clearColor(this._clearColor.r,this._clearColor.g,this._clearColor.b,this._clearColor.a),this.updateViewport(this._viewportWidth||this.canvas.width,this._viewportHeight||this.canvas.height)}}else this._webGLContext=null;return this._webGLContext},b.update=function(a){if(this.canvas){if(this.tickOnUpdate&&this.tick(a),this.dispatchEvent("drawstart"),this.autoClear&&this.clear(),this._webGLContext)this._batchDraw(this,this._webGLContext),-1==this._autoPurge||this._drawID%(this._autoPurge/2|0)||this.purgeTextures(this._autoPurge);else{var b=this.canvas.getContext("2d");b.save(),this.updateContext(b),this.draw(b,!1),b.restore()}this.dispatchEvent("drawend")}},b.clear=function(){if(this.canvas)if(a.isWebGLActive(this._webGLContext)){var b=this._webGLContext,c=this._clearColor,d=this._transparent?c.a:1;this._webGLContext.clearColor(c.r*d,c.g*d,c.b*d,d),b.clear(b.COLOR_BUFFER_BIT),this._webGLContext.clearColor(c.r,c.g,c.b,c.a)}else this.Stage_clear()},b.draw=function(b,c){if(b===this._webGLContext&&a.isWebGLActive(this._webGLContext)){var d=this._webGLContext;return this._batchDraw(this,d,c),!0}return this.Stage_draw(b,c)},b.cacheDraw=function(b,c,d){if(a.isWebGLActive(this._webGLContext)){var e=this._webGLContext;return this._cacheDraw(e,b,c,d),!0}return!1},b.protectTextureSlot=function(a,b){if(a>this._maxTextureSlots||0>a)throw"Slot outside of acceptable range";this._slotBlacklist[a]=!!b},b.getTargetRenderTexture=function(a,b,c){var d,e=!1,f=this._webGLContext;if(void 0!==a.__lastRT&&a.__lastRT===a.__rtA&&(e=!0),e?(void 0===a.__rtB?a.__rtB=this.getRenderBufferTexture(b,c):((b!=a.__rtB._width||c!=a.__rtB._height)&&this.resizeTexture(a.__rtB,b,c),this.setTextureParams(f)),d=a.__rtB):(void 0===a.__rtA?a.__rtA=this.getRenderBufferTexture(b,c):((b!=a.__rtA._width||c!=a.__rtA._height)&&this.resizeTexture(a.__rtA,b,c),this.setTextureParams(f)),d=a.__rtA),!d)throw"Problems creating render textures, known causes include using too much VRAM by not releasing WebGL texture instances";return a.__lastRT=d,d},b.releaseTexture=function(a){var b,c;if(a){if(a.children)for(b=0,c=a.children.length;c>b;b++)this.releaseTexture(a.children[b]);a.cacheCanvas&&a.uncache();var d=void 0;if(void 0!==a._storeID){if(a===this._textureDictionary[a._storeID])return this._killTextureObject(a),void(a._storeID=void 0);d=a}else if(2===a._webGLRenderStyle)d=a.image;else if(1===a._webGLRenderStyle){for(b=0,c=a.spriteSheet._images.length;c>b;b++)this.releaseTexture(a.spriteSheet._images[b]);return}if(void 0===d)return void(this.vocalDebug&&console.log("No associated texture found on release"));this._killTextureObject(this._textureDictionary[d._storeID]),d._storeID=void 0}},b.purgeTextures=function(a){void 0==a&&(a=100);for(var b=this._textureDictionary,c=b.length,d=0;c>d;d++){var e=b[d];e&&e._drawID+a<=this._drawID&&this._killTextureObject(e)}},b.updateSimultaneousTextureCount=function(a){var b=this._webGLContext,c=!1;for((1>a||isNaN(a))&&(a=1),this._batchTextureCount=a;!c;)try{this._activeShader=this._fetchShaderProgram(b),c=!0}catch(d){if(1==this._batchTextureCount)throw"Cannot compile shader "+d;this._batchTextureCount-=4,this._batchTextureCount<1&&(this._batchTextureCount=1),this.vocalDebug&&console.log("Reducing desired texture count due to errors: "+this._batchTextureCount)}},b.updateViewport=function(a,b){this._viewportWidth=0|a,this._viewportHeight=0|b;var c=this._webGLContext;c&&(c.viewport(0,0,this._viewportWidth,this._viewportHeight),this._projectionMatrix=new Float32Array([2/this._viewportWidth,0,0,0,0,-2/this._viewportHeight,1,0,0,0,1,0,-1,1,.1,0]),this._projectionMatrixFlip=new Float32Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),this._projectionMatrixFlip.set(this._projectionMatrix),this._projectionMatrixFlip[5]*=-1,this._projectionMatrixFlip[13]*=-1)},b.getFilterShader=function(a){a||(a=this);var b=this._webGLContext,c=this._activeShader;if(a._builtShader)c=a._builtShader,a.shaderParamSetup&&(b.useProgram(c),a.shaderParamSetup(b,this,c));else try{c=this._fetchShaderProgram(b,"filter",a.VTX_SHADER_BODY,a.FRAG_SHADER_BODY,a.shaderParamSetup&&a.shaderParamSetup.bind(a)),a._builtShader=c,c._name=a.toString()}catch(d){console&&console.log("SHADER SWITCH FAILURE",d)}return c},b.getBaseTexture=function(a,b){var c=Math.ceil(a>0?a:1)||1,d=Math.ceil(b>0?b:1)||1,e=this._webGLContext,f=e.createTexture();return this.resizeTexture(f,c,d),this.setTextureParams(e,!1),f},b.resizeTexture=function(a,b,c){var d=this._webGLContext;d.bindTexture(d.TEXTURE_2D,a),d.texImage2D(d.TEXTURE_2D,0,d.RGBA,b,c,0,d.RGBA,d.UNSIGNED_BYTE,null),a.width=b,a.height=c},b.getRenderBufferTexture=function(a,b){var c=this._webGLContext,d=this.getBaseTexture(a,b);if(!d)return null;var e=c.createFramebuffer();return e?(d.width=a,d.height=b,c.bindFramebuffer(c.FRAMEBUFFER,e),c.framebufferTexture2D(c.FRAMEBUFFER,c.COLOR_ATTACHMENT0,c.TEXTURE_2D,d,0),e._renderTexture=d,d._frameBuffer=e,d._storeID=this._textureDictionary.length,this._textureDictionary[d._storeID]=d,c.bindFramebuffer(c.FRAMEBUFFER,null),d):null},b.setTextureParams=function(a,b){b&&this._antialias?(a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.LINEAR),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.LINEAR)):(a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MIN_FILTER,a.NEAREST),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_MAG_FILTER,a.NEAREST)),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_S,a.CLAMP_TO_EDGE),a.texParameteri(a.TEXTURE_2D,a.TEXTURE_WRAP_T,a.CLAMP_TO_EDGE)},b.setClearColor=function(a){var b,c,d,e,f;"string"==typeof a?0==a.indexOf("#")?(4==a.length&&(a="#"+a.charAt(1)+a.charAt(1)+a.charAt(2)+a.charAt(2)+a.charAt(3)+a.charAt(3)),b=Number("0x"+a.slice(1,3))/255,c=Number("0x"+a.slice(3,5))/255,d=Number("0x"+a.slice(5,7))/255,e=Number("0x"+a.slice(7,9))/255):0==a.indexOf("rgba(")&&(f=a.slice(5,-1).split(","),b=Number(f[0])/255,c=Number(f[1])/255,d=Number(f[2])/255,e=Number(f[3])):(b=((4278190080&a)>>>24)/255,c=((16711680&a)>>>16)/255,d=((65280&a)>>>8)/255,e=(255&a)/255),this._clearColor.r=b||0,this._clearColor.g=c||0,this._clearColor.b=d||0,this._clearColor.a=e||0,this._webGLContext&&this._webGLContext.clearColor(this._clearColor.r,this._clearColor.g,this._clearColor.b,this._clearColor.a); +},b.toString=function(){return"[StageGL (name="+this.name+")]"},b._fetchWebGLContext=function(a,b){var c;try{c=a.getContext("webgl",b)||a.getContext("experimental-webgl",b)}catch(d){}if(c)c.viewportWidth=a.width,c.viewportHeight=a.height;else{var e="Could not initialize WebGL";console.error?console.error(e):console.log(e)}return c},b._fetchShaderProgram=function(b,c,d,e,f){b.useProgram(null);var g,h;switch(c){case"filter":h=a.COVER_VERTEX_HEADER+(d||a.COVER_VERTEX_BODY),g=a.COVER_FRAGMENT_HEADER+(e||a.COVER_FRAGMENT_BODY);break;case"particle":h=a.REGULAR_VERTEX_HEADER+a.PARTICLE_VERTEX_BODY,g=a.REGULAR_FRAGMENT_HEADER+a.PARTICLE_FRAGMENT_BODY;break;case"override":h=a.REGULAR_VERTEX_HEADER+(d||a.REGULAR_VERTEX_BODY),g=a.REGULAR_FRAGMENT_HEADER+(e||a.REGULAR_FRAGMENT_BODY);break;case"regular":default:h=a.REGULAR_VERTEX_HEADER+a.REGULAR_VERTEX_BODY,g=a.REGULAR_FRAGMENT_HEADER+a.REGULAR_FRAGMENT_BODY}var i=this._createShader(b,b.VERTEX_SHADER,h),j=this._createShader(b,b.FRAGMENT_SHADER,g),k=b.createProgram();if(b.attachShader(k,i),b.attachShader(k,j),b.linkProgram(k),k._type=c,!b.getProgramParameter(k,b.LINK_STATUS))throw b.useProgram(this._activeShader),b.getProgramInfoLog(k);switch(b.useProgram(k),c){case"filter":k.vertexPositionAttribute=b.getAttribLocation(k,"vertexPosition"),b.enableVertexAttribArray(k.vertexPositionAttribute),k.uvPositionAttribute=b.getAttribLocation(k,"uvPosition"),b.enableVertexAttribArray(k.uvPositionAttribute),k.samplerUniform=b.getUniformLocation(k,"uSampler"),b.uniform1i(k.samplerUniform,0),k.uprightUniform=b.getUniformLocation(k,"uUpright"),b.uniform1f(k.uprightUniform,0),f&&f(b,this,k);break;case"override":case"particle":case"regular":default:k.vertexPositionAttribute=b.getAttribLocation(k,"vertexPosition"),b.enableVertexAttribArray(k.vertexPositionAttribute),k.uvPositionAttribute=b.getAttribLocation(k,"uvPosition"),b.enableVertexAttribArray(k.uvPositionAttribute),k.textureIndexAttribute=b.getAttribLocation(k,"textureIndex"),b.enableVertexAttribArray(k.textureIndexAttribute),k.alphaAttribute=b.getAttribLocation(k,"objectAlpha"),b.enableVertexAttribArray(k.alphaAttribute);for(var l=[],m=0;md;d+=c)h[d]=h[d+1]=0;b.bufferData(b.ARRAY_BUFFER,h,b.DYNAMIC_DRAW),g.itemSize=c,g.numItems=f;var i=this._uvPositionBuffer=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,i),c=2;var j=this._uvs=new Float32Array(f*c);for(d=0,e=j.length;e>d;d+=c)j[d]=j[d+1]=0;b.bufferData(b.ARRAY_BUFFER,j,b.DYNAMIC_DRAW),i.itemSize=c,i.numItems=f;var k=this._textureIndexBuffer=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,k),c=1;var l=this._indices=new Float32Array(f*c);for(d=0,e=l.length;e>d;d++)l[d]=0;b.bufferData(b.ARRAY_BUFFER,l,b.DYNAMIC_DRAW),k.itemSize=c,k.numItems=f;var m=this._alphaBuffer=b.createBuffer();b.bindBuffer(b.ARRAY_BUFFER,m),c=1;var n=this._alphas=new Float32Array(f*c);for(d=0,e=n.length;e>d;d++)n[d]=1;b.bufferData(b.ARRAY_BUFFER,n,b.DYNAMIC_DRAW),m.itemSize=c,m.numItems=f},b._initTextures=function(){this._lastTextureInsert=-1,this._textureDictionary=[],this._textureIDs={},this._baseTextures=[],this._batchTextures=[];for(var a=0;aa.MAX_TEXTURE_SIZE||b.height>a.MAX_TEXTURE_SIZE)&&console&&console.error("Oversized Texture: "+b.width+"x"+b.height+" vs "+a.MAX_TEXTURE_SIZE+"max"))},b._insertTextureInBatch=function(a,b){if(this._batchTextures[b._activeIndex]!==b){var c=-1,d=(this._lastTextureInsert+1)%this._batchTextureCount,e=d;do{if(this._batchTextures[e]._batchID!=this._batchID&&!this._slotBlacklist[e]){c=e;break}e=(e+1)%this._batchTextureCount}while(e!==d);-1===c&&(this.batchReason="textureOverflow",this._drawBuffers(a),this.batchCardCount=0,c=d),this._batchTextures[c]=b,b._activeIndex=c;var f=b._imageData;f&&f._invalid&&void 0!==b._drawID?this._updateTextureImageData(a,f):(a.activeTexture(a.TEXTURE0+c),a.bindTexture(a.TEXTURE_2D,b),this.setTextureParams(a)),this._lastTextureInsert=c}else{var f=b._imageData;void 0!=b._storeID&&f&&f._invalid&&this._updateTextureImageData(a,f)}b._drawID=this._drawID,b._batchID=this._batchID},b._killTextureObject=function(a){if(a){var b=this._webGLContext;if(void 0!==a._storeID&&a._storeID>=0){this._textureDictionary[a._storeID]=void 0;for(var c in this._textureIDs)this._textureIDs[c]==a._storeID&&delete this._textureIDs[c];a._imageData&&(a._imageData._storeID=void 0),a._imageData=a._storeID=void 0}void 0!==a._activeIndex&&this._batchTextures[a._activeIndex]===a&&(this._batchTextures[a._activeIndex]=this._baseTextures[a._activeIndex]);try{a._frameBuffer&&b.deleteFramebuffer(a._frameBuffer),a._frameBuffer=void 0}catch(d){this.vocalDebug&&console.log(d)}try{b.deleteTexture(a)}catch(d){this.vocalDebug&&console.log(d)}}},b._backupBatchTextures=function(a,b){var c=this._webGLContext;this._backupTextures||(this._backupTextures=[]),void 0===b&&(b=this._backupTextures);for(var d=0;d0&&this._drawBuffers(b),this._isDrawing++,this._drawID++,this.batchCardCount=0,this.depth=0,this._appendToBatchGroup(a,b,new createjs.Matrix2D,this.alpha,c),this.batchReason="drawFinish",this._drawBuffers(b),this._isDrawing--},b._cacheDraw=function(a,b,c,d){var e,f=this._activeShader,g=this._slotBlacklist,h=this._maxTextureSlots-1,i=this._viewportWidth,j=this._viewportHeight;this.protectTextureSlot(h,!0);var k=b.getMatrix();k=k.clone(),k.scale(1/d.scale,1/d.scale),k=k.invert(),k.translate(-d.offX/d.scale*b.scaleX,-d.offY/d.scale*b.scaleY);var l=this._cacheContainer;l.children=[b],l.transformMatrix=k,this._backupBatchTextures(!1),c&&c.length?this._drawFilters(b,c,d):this.isCacheControlled?(a.clear(a.COLOR_BUFFER_BIT),this._batchDraw(l,a,!0)):(a.activeTexture(a.TEXTURE0+h),b.cacheCanvas=this.getTargetRenderTexture(b,d._drawWidth,d._drawHeight),e=b.cacheCanvas,a.bindFramebuffer(a.FRAMEBUFFER,e._frameBuffer),this.updateViewport(d._drawWidth,d._drawHeight),this._projectionMatrix=this._projectionMatrixFlip,a.clear(a.COLOR_BUFFER_BIT),this._batchDraw(l,a,!0),a.bindFramebuffer(a.FRAMEBUFFER,null),this.updateViewport(i,j)),this._backupBatchTextures(!0),this.protectTextureSlot(h,!1),this._activeShader=f,this._slotBlacklist=g},b._drawFilters=function(a,b,c){var d,e=this._webGLContext,f=this._maxTextureSlots-1,g=this._viewportWidth,h=this._viewportHeight,i=this._cacheContainer,j=b.length;e.activeTexture(e.TEXTURE0+f),d=this.getTargetRenderTexture(a,c._drawWidth,c._drawHeight),e.bindFramebuffer(e.FRAMEBUFFER,d._frameBuffer),this.updateViewport(c._drawWidth,c._drawHeight),e.clear(e.COLOR_BUFFER_BIT),this._batchDraw(i,e,!0),e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,d),this.setTextureParams(e);var k=!1,l=0,m=b[l];do this._activeShader=this.getFilterShader(m),this._activeShader&&(e.activeTexture(e.TEXTURE0+f),d=this.getTargetRenderTexture(a,c._drawWidth,c._drawHeight),e.bindFramebuffer(e.FRAMEBUFFER,d._frameBuffer),e.viewport(0,0,c._drawWidth,c._drawHeight),e.clear(e.COLOR_BUFFER_BIT),this._drawCover(e,k),e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,d),this.setTextureParams(e),(j>1||b[0]._multiPass)&&(k=!k),m=null!==m._multiPass?m._multiPass:b[++l]);while(m);this.isCacheControlled?(e.bindFramebuffer(e.FRAMEBUFFER,null),this.updateViewport(g,h),this._activeShader=this.getFilterShader(this),e.clear(e.COLOR_BUFFER_BIT),this._drawCover(e,k)):(k&&(e.activeTexture(e.TEXTURE0+f),d=this.getTargetRenderTexture(a,c._drawWidth,c._drawHeight),e.bindFramebuffer(e.FRAMEBUFFER,d._frameBuffer),this._activeShader=this.getFilterShader(this),e.viewport(0,0,c._drawWidth,c._drawHeight),e.clear(e.COLOR_BUFFER_BIT),this._drawCover(e,!k)),e.bindFramebuffer(e.FRAMEBUFFER,null),this.updateViewport(g,h),a.cacheCanvas=d)},b._appendToBatchGroup=function(b,c,d,e,f){b._glMtx||(b._glMtx=new createjs.Matrix2D);var g=b._glMtx;g.copy(d),b.transformMatrix?g.appendMatrix(b.transformMatrix):g.appendTransform(b.x,b.y,b.scaleX,b.scaleY,b.rotation,b.skewX,b.skewY,b.regX,b.regY);for(var h,i,j,k,l=b.children.length,m=0;l>m;m++){var n=b.children[m];if(n.visible&&e)if(n.cacheCanvas&&!f||(n._updateState&&n._updateState(),!n.children)){this.batchCardCount+1>this._maxCardsPerBatch&&(this.batchReason="vertexOverflow",this._drawBuffers(c),this.batchCardCount=0),n._glMtx||(n._glMtx=new createjs.Matrix2D);var o=n._glMtx;o.copy(g),n.transformMatrix?o.appendMatrix(n.transformMatrix):o.appendTransform(n.x,n.y,n.scaleX,n.scaleY,n.rotation,n.skewX,n.skewY,n.regX,n.regY);var p,q,r,s,t,u,v=n.cacheCanvas&&!f;if(2===n._webGLRenderStyle||v)r=(f?!1:n.cacheCanvas)||n.image;else{if(1!==n._webGLRenderStyle)continue;if(s=n.spriteSheet.getFrame(n.currentFrame),null===s)continue;r=s.image}var w=this._uvs,x=this._vertices,y=this._indices,z=this._alphas;if(r){if(void 0===r._storeID)t=this._loadTextureImage(c,r),this._insertTextureInBatch(c,t);else{if(t=this._textureDictionary[r._storeID],!t){this.vocalDebug&&console.log("Texture should not be looked up while not being stored.");continue}t._batchID!==this._batchID&&this._insertTextureInBatch(c,t)}if(q=t._activeIndex,2===n._webGLRenderStyle||v)!v&&n.sourceRect?(n._uvRect||(n._uvRect={}),u=n.sourceRect,p=n._uvRect,p.t=u.y/r.height,p.l=u.x/r.width,p.b=(u.y+u.height)/r.height,p.r=(u.x+u.width)/r.width,h=0,i=0,j=u.width+h,k=u.height+i):(p=a.UV_RECT,v?(u=n.bitmapCache,h=u.x+u._filterOffX/u.scale,i=u.y+u._filterOffY/u.scale,j=u._drawWidth/u.scale+h,k=u._drawHeight/u.scale+i):(h=0,i=0,j=r.width+h,k=r.height+i));else if(1===n._webGLRenderStyle){var A=s.rect;p=s.uvRect,p||(p=a.buildUVRects(n.spriteSheet,n.currentFrame,!1)),h=-s.regX,i=-s.regY,j=A.width-s.regX,k=A.height-s.regY}var B=this.batchCardCount*a.INDICIES_PER_CARD,C=2*B;x[C]=h*o.a+i*o.c+o.tx,x[C+1]=h*o.b+i*o.d+o.ty,x[C+2]=h*o.a+k*o.c+o.tx,x[C+3]=h*o.b+k*o.d+o.ty,x[C+4]=j*o.a+i*o.c+o.tx,x[C+5]=j*o.b+i*o.d+o.ty,x[C+6]=x[C+2],x[C+7]=x[C+3],x[C+8]=x[C+4],x[C+9]=x[C+5],x[C+10]=j*o.a+k*o.c+o.tx,x[C+11]=j*o.b+k*o.d+o.ty,w[C]=p.l,w[C+1]=p.t,w[C+2]=p.l,w[C+3]=p.b,w[C+4]=p.r,w[C+5]=p.t,w[C+6]=p.l,w[C+7]=p.b,w[C+8]=p.r,w[C+9]=p.t,w[C+10]=p.r,w[C+11]=p.b,y[B]=y[B+1]=y[B+2]=y[B+3]=y[B+4]=y[B+5]=q,z[B]=z[B+1]=z[B+2]=z[B+3]=z[B+4]=z[B+5]=n.alpha*e,this.batchCardCount++}}else this._appendToBatchGroup(n,c,g,n.alpha*e)}},b._drawBuffers=function(b){if(!(this.batchCardCount<=0)){this.vocalDebug&&console.log("Draw["+this._drawID+":"+this._batchID+"] : "+this.batchReason);var c=this._activeShader,d=this._vertexPositionBuffer,e=this._textureIndexBuffer,f=this._uvPositionBuffer,g=this._alphaBuffer;b.useProgram(c),b.bindBuffer(b.ARRAY_BUFFER,d),b.vertexAttribPointer(c.vertexPositionAttribute,d.itemSize,b.FLOAT,!1,0,0),b.bufferSubData(b.ARRAY_BUFFER,0,this._vertices),b.bindBuffer(b.ARRAY_BUFFER,e),b.vertexAttribPointer(c.textureIndexAttribute,e.itemSize,b.FLOAT,!1,0,0),b.bufferSubData(b.ARRAY_BUFFER,0,this._indices),b.bindBuffer(b.ARRAY_BUFFER,f),b.vertexAttribPointer(c.uvPositionAttribute,f.itemSize,b.FLOAT,!1,0,0),b.bufferSubData(b.ARRAY_BUFFER,0,this._uvs),b.bindBuffer(b.ARRAY_BUFFER,g),b.vertexAttribPointer(c.alphaAttribute,g.itemSize,b.FLOAT,!1,0,0),b.bufferSubData(b.ARRAY_BUFFER,0,this._alphas),b.uniformMatrix4fv(c.pMatrixUniform,b.FALSE,this._projectionMatrix);for(var h=0;h0&&this._drawBuffers(b),this.vocalDebug&&console.log("Draw["+this._drawID+":"+this._batchID+"] : Cover");var d=this._activeShader,e=this._vertexPositionBuffer,f=this._uvPositionBuffer;b.clear(b.COLOR_BUFFER_BIT),b.useProgram(d),b.bindBuffer(b.ARRAY_BUFFER,e),b.vertexAttribPointer(d.vertexPositionAttribute,e.itemSize,b.FLOAT,!1,0,0),b.bufferSubData(b.ARRAY_BUFFER,0,a.COVER_VERT),b.bindBuffer(b.ARRAY_BUFFER,f),b.vertexAttribPointer(d.uvPositionAttribute,f.itemSize,b.FLOAT,!1,0,0),b.bufferSubData(b.ARRAY_BUFFER,0,c?a.COVER_UV_FLIP:a.COVER_UV),b.uniform1i(d.samplerUniform,0),b.uniform1f(d.uprightUniform,c?0:1),b.drawArrays(b.TRIANGLES,0,a.INDICIES_PER_CARD)},createjs.StageGL=createjs.promote(a,"Stage")}(),this.createjs=this.createjs||{},function(){function a(a){this.DisplayObject_constructor(),"string"==typeof a?(this.image=document.createElement("img"),this.image.src=a):this.image=a,this.sourceRect=null,this._webGLRenderStyle=createjs.DisplayObject._StageGL_BITMAP}var b=createjs.extend(a,createjs.DisplayObject);b.initialize=a,b.isVisible=function(){var a=this.image,b=this.cacheCanvas||a&&(a.naturalWidth||a.getContext||a.readyState>=2);return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY&&b)},b.draw=function(a,b){if(this.DisplayObject_draw(a,b))return!0;var c=this.image,d=this.sourceRect;if(c.getImage&&(c=c.getImage()),!c)return!0;if(d){var e=d.x,f=d.y,g=e+d.width,h=f+d.height,i=0,j=0,k=c.width,l=c.height;0>e&&(i-=e,e=0),g>k&&(g=k),0>f&&(j-=f,f=0),h>l&&(h=l),a.drawImage(c,e,f,g-e,h-f,i,j,g-e,h-f)}else a.drawImage(c,0,0);return!0},b.getBounds=function(){var a=this.DisplayObject_getBounds();if(a)return a;var b=this.image,c=this.sourceRect||b,d=b&&(b.naturalWidth||b.getContext||b.readyState>=2);return d?this._rectangle.setValues(0,0,c.width,c.height):null},b.clone=function(b){var c=this.image;c&&b&&(c=c.cloneNode());var d=new a(c);return this.sourceRect&&(d.sourceRect=this.sourceRect.clone()),this._cloneProps(d),d},b.toString=function(){return"[Bitmap (name="+this.name+")]"},createjs.Bitmap=createjs.promote(a,"DisplayObject")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b){this.DisplayObject_constructor(),this.currentFrame=0,this.currentAnimation=null,this.paused=!0,this.spriteSheet=a,this.currentAnimationFrame=0,this.framerate=0,this._animation=null,this._currentFrame=null,this._skipAdvance=!1,this._webGLRenderStyle=createjs.DisplayObject._StageGL_SPRITE,null!=b&&this.gotoAndPlay(b)}var b=createjs.extend(a,createjs.DisplayObject);b.initialize=a,b.isVisible=function(){var a=this.cacheCanvas||this.spriteSheet.complete;return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY&&a)},b.draw=function(a,b){if(this.DisplayObject_draw(a,b))return!0;this._normalizeFrame();var c=this.spriteSheet.getFrame(0|this._currentFrame);if(!c)return!1;var d=c.rect;return d.width&&d.height&&a.drawImage(c.image,d.x,d.y,d.width,d.height,-c.regX,-c.regY,d.width,d.height),!0},b.play=function(){this.paused=!1},b.stop=function(){this.paused=!0},b.gotoAndPlay=function(a){this.paused=!1,this._skipAdvance=!0,this._goto(a)},b.gotoAndStop=function(a){this.paused=!0,this._goto(a)},b.advance=function(a){var b=this.framerate||this.spriteSheet.framerate,c=b&&null!=a?a/(1e3/b):1;this._normalizeFrame(c)},b.getBounds=function(){return this.DisplayObject_getBounds()||this.spriteSheet.getFrameBounds(this.currentFrame,this._rectangle)},b.clone=function(){return this._cloneProps(new a(this.spriteSheet))},b.toString=function(){return"[Sprite (name="+this.name+")]"},b._cloneProps=function(a){return this.DisplayObject__cloneProps(a),a.currentFrame=this.currentFrame,a.currentAnimation=this.currentAnimation,a.paused=this.paused,a.currentAnimationFrame=this.currentAnimationFrame,a.framerate=this.framerate,a._animation=this._animation,a._currentFrame=this._currentFrame,a._skipAdvance=this._skipAdvance,a},b._tick=function(a){this.paused||(this._skipAdvance||this.advance(a&&a.delta),this._skipAdvance=!1),this.DisplayObject__tick(a)},b._normalizeFrame=function(a){a=a||0;var b,c=this._animation,d=this.paused,e=this._currentFrame;if(c){var f=c.speed||1,g=this.currentAnimationFrame;if(b=c.frames.length,g+a*f>=b){var h=c.next;if(this._dispatchAnimationEnd(c,e,d,h,b-1))return;if(h)return this._goto(h,a-(b-g)/f);this.paused=!0,g=c.frames.length-1}else g+=a*f;this.currentAnimationFrame=g,this._currentFrame=c.frames[0|g]}else if(e=this._currentFrame+=a,b=this.spriteSheet.getNumFrames(),e>=b&&b>0&&!this._dispatchAnimationEnd(c,e,d,b-1)&&(this._currentFrame-=b)>=b)return this._normalizeFrame();e=0|this._currentFrame,this.currentFrame!=e&&(this.currentFrame=e,this.dispatchEvent("change"))},b._dispatchAnimationEnd=function(a,b,c,d,e){var f=a?a.name:null;if(this.hasEventListener("animationend")){var g=new createjs.Event("animationend");g.name=f,g.next=d,this.dispatchEvent(g)}var h=this._animation!=a||this._currentFrame!=b;return h||c||!this.paused||(this.currentAnimationFrame=e,h=!0),h},b._goto=function(a,b){if(this.currentAnimationFrame=0,isNaN(a)){var c=this.spriteSheet.getAnimation(a);c&&(this._animation=c,this.currentAnimation=a,this._normalizeFrame(b))}else this.currentAnimation=this._animation=null,this._currentFrame=a,this._normalizeFrame()},createjs.Sprite=createjs.promote(a,"DisplayObject")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a){this.DisplayObject_constructor(),this.graphics=a?a:new createjs.Graphics}var b=createjs.extend(a,createjs.DisplayObject);b.isVisible=function(){var a=this.cacheCanvas||this.graphics&&!this.graphics.isEmpty();return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY&&a)},b.draw=function(a,b){return this.DisplayObject_draw(a,b)?!0:(this.graphics.draw(a,this),!0)},b.clone=function(b){var c=b&&this.graphics?this.graphics.clone():this.graphics;return this._cloneProps(new a(c))},b.toString=function(){return"[Shape (name="+this.name+")]"},createjs.Shape=createjs.promote(a,"DisplayObject")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b,c){this.DisplayObject_constructor(),this.text=a,this.font=b,this.color=c,this.textAlign="left",this.textBaseline="top",this.maxWidth=null,this.outline=0,this.lineHeight=0,this.lineWidth=null}var b=createjs.extend(a,createjs.DisplayObject),c=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");c.getContext&&(a._workingContext=c.getContext("2d"),c.width=c.height=1),a.H_OFFSETS={start:0,left:0,center:-.5,end:-1,right:-1},a.V_OFFSETS={top:0,hanging:-.01,middle:-.4,alphabetic:-.8,ideographic:-.85,bottom:-1},b.isVisible=function(){var a=this.cacheCanvas||null!=this.text&&""!==this.text;return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY&&a)},b.draw=function(a,b){if(this.DisplayObject_draw(a,b))return!0;var c=this.color||"#000";return this.outline?(a.strokeStyle=c,a.lineWidth=1*this.outline):a.fillStyle=c,this._drawText(this._prepContext(a)),!0},b.getMeasuredWidth=function(){return this._getMeasuredWidth(this.text)},b.getMeasuredLineHeight=function(){return 1.2*this._getMeasuredWidth("M")},b.getMeasuredHeight=function(){return this._drawText(null,{}).height},b.getBounds=function(){var b=this.DisplayObject_getBounds();if(b)return b;if(null==this.text||""===this.text)return null;var c=this._drawText(null,{}),d=this.maxWidth&&this.maxWidthj;j++){var l=i[j],m=null;if(null!=this.lineWidth&&(m=b.measureText(l).width)>this.lineWidth){var n=l.split(/(\s)/);l=n[0],m=b.measureText(l).width;for(var o=1,p=n.length;p>o;o+=2){var q=b.measureText(n[o]+n[o+1]).width;m+q>this.lineWidth?(e&&this._drawTextLine(b,l,h*f),d&&d.push(l),m>g&&(g=m),l=n[o+1],m=b.measureText(l).width,h++):(l+=n[o]+n[o+1],m+=q)}}e&&this._drawTextLine(b,l,h*f),d&&d.push(l),c&&null==m&&(m=b.measureText(l).width),m>g&&(g=m),h++}return c&&(c.width=g,c.height=h*f),e||b.restore(),c},b._drawTextLine=function(a,b,c){this.outline?a.strokeText(b,0,c,this.maxWidth||65535):a.fillText(b,0,c,this.maxWidth||65535)},b._getMeasuredWidth=function(b){var c=a._workingContext;c.save();var d=this._prepContext(c).measureText(b).width;return c.restore(),d},createjs.Text=createjs.promote(a,"DisplayObject")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b){this.Container_constructor(),this.text=a||"",this.spriteSheet=b,this.lineHeight=0,this.letterSpacing=0,this.spaceWidth=0,this._oldProps={text:0,spriteSheet:0,lineHeight:0,letterSpacing:0,spaceWidth:0},this._oldStage=null,this._drawAction=null}var b=createjs.extend(a,createjs.Container);a.maxPoolSize=100,a._spritePool=[],b.draw=function(a,b){this.DisplayObject_draw(a,b)||(this._updateState(),this.Container_draw(a,b))},b.getBounds=function(){return this._updateText(),this.Container_getBounds()},b.isVisible=function(){var a=this.cacheCanvas||this.spriteSheet&&this.spriteSheet.complete&&this.text;return!!(this.visible&&this.alpha>0&&0!==this.scaleX&&0!==this.scaleY&&a)},b.clone=function(){return this._cloneProps(new a(this.text,this.spriteSheet))},b.addChild=b.addChildAt=b.removeChild=b.removeChildAt=b.removeAllChildren=function(){},b._updateState=function(){this._updateText()},b._cloneProps=function(a){return this.Container__cloneProps(a),a.lineHeight=this.lineHeight,a.letterSpacing=this.letterSpacing,a.spaceWidth=this.spaceWidth,a},b._getFrameIndex=function(a,b){var c,d=b.getAnimation(a);return d||(a!=(c=a.toUpperCase())||a!=(c=a.toLowerCase())||(c=null),c&&(d=b.getAnimation(c))),d&&d.frames[0]},b._getFrame=function(a,b){var c=this._getFrameIndex(a,b);return null==c?c:b.getFrame(c)},b._getLineHeight=function(a){var b=this._getFrame("1",a)||this._getFrame("T",a)||this._getFrame("L",a)||a.getFrame(0);return b?b.rect.height:1},b._getSpaceWidth=function(a){var b=this._getFrame("1",a)||this._getFrame("l",a)||this._getFrame("e",a)||this._getFrame("a",a)||a.getFrame(0);return b?b.rect.width:1},b._updateText=function(){var b,c=0,d=0,e=this._oldProps,f=!1,g=this.spaceWidth,h=this.lineHeight,i=this.spriteSheet,j=a._spritePool,k=this.children,l=0,m=k.length;for(var n in e)e[n]!=this[n]&&(e[n]=this[n],f=!0);if(f){var o=!!this._getFrame(" ",i);o||g||(g=this._getSpaceWidth(i)),h||(h=this._getLineHeight(i));for(var p=0,q=this.text.length;q>p;p++){var r=this.text.charAt(p);if(" "!=r||o)if("\n"!=r&&"\r"!=r){var s=this._getFrameIndex(r,i);null!=s&&(m>l?b=k[l]:(k.push(b=j.length?j.pop():new createjs.Sprite),b.parent=this,m++),b.spriteSheet=i,b.gotoAndStop(s),b.x=c,b.y=d,l++,c+=b.getBounds().width+this.letterSpacing)}else"\r"==r&&"\n"==this.text.charAt(p+1)&&p++,c=0,d+=h;else c+=g}for(;m>l;)j.push(b=k.pop()),b.parent=null,m--;j.length>a.maxPoolSize&&(j.length=a.maxPoolSize)}},createjs.BitmapText=createjs.promote(a,"Container")}(),this.createjs=this.createjs||{},function(){"use strict";function a(b){this.Container_constructor(),!a.inited&&a.init();var c,d,e,f;b instanceof String||arguments.length>1?(c=b,d=arguments[1],e=arguments[2],f=arguments[3],null==e&&(e=-1),b=null):b&&(c=b.mode,d=b.startPosition,e=b.loop,f=b.labels),b||(b={labels:f}),this.mode=c||a.INDEPENDENT,this.startPosition=d||0,this.loop=e===!0?-1:e||0,this.currentFrame=0,this.paused=b.paused||!1,this.actionsEnabled=!0,this.autoReset=!0,this.frameBounds=this.frameBounds||b.frameBounds,this.framerate=null,b.useTicks=b.paused=!0,this.timeline=new createjs.Timeline(b),this._synchOffset=0,this._rawPosition=-1,this._bound_resolveState=this._resolveState.bind(this),this._t=0,this._managed={}}function b(){throw"MovieClipPlugin cannot be instantiated."}var c=createjs.extend(a,createjs.Container);a.INDEPENDENT="independent",a.SINGLE_FRAME="single",a.SYNCHED="synched",a.inited=!1,a.init=function(){a.inited||(b.install(),a.inited=!0)},c._getLabels=function(){return this.timeline.getLabels()},c.getLabels=createjs.deprecate(c._getLabels,"MovieClip.getLabels"),c._getCurrentLabel=function(){return this.timeline.currentLabel},c.getCurrentLabel=createjs.deprecate(c._getCurrentLabel,"MovieClip.getCurrentLabel"),c._getDuration=function(){return this.timeline.duration},c.getDuration=createjs.deprecate(c._getDuration,"MovieClip.getDuration");try{Object.defineProperties(c,{labels:{get:c._getLabels},currentLabel:{get:c._getCurrentLabel},totalFrames:{get:c._getDuration},duration:{get:c._getDuration}})}catch(d){}c.initialize=a,c.isVisible=function(){return!!(this.visible&&this.alpha>0&&0!=this.scaleX&&0!=this.scaleY)},c.draw=function(a,b){return this.DisplayObject_draw(a,b)?!0:(this._updateState(),this.Container_draw(a,b),!0)},c.play=function(){this.paused=!1},c.stop=function(){this.paused=!0},c.gotoAndPlay=function(a){this.paused=!1,this._goto(a)},c.gotoAndStop=function(a){this.paused=!0,this._goto(a)},c.advance=function(b){var c=a.INDEPENDENT;if(this.mode===c){for(var d=this,e=d.framerate;(d=d.parent)&&null===e;)d.mode===c&&(e=d._framerate);if(this._framerate=e,!this.paused){var f=null!==e&&-1!==e&&null!==b?b/(1e3/e)+this._t:1,g=0|f;for(this._t=f-g;g--;)this._updateTimeline(this._rawPosition+1,!1)}}},c.clone=function(){throw"MovieClip cannot be cloned."},c.toString=function(){return"[MovieClip (name="+this.name+")]"},c._updateState=function(){(-1===this._rawPosition||this.mode!==a.INDEPENDENT)&&this._updateTimeline(-1)},c._tick=function(a){this.advance(a&&a.delta),this.Container__tick(a)},c._goto=function(a){var b=this.timeline.resolve(a);null!=b&&(this._t=0,this._updateTimeline(b,!0))},c._reset=function(){this._rawPosition=-1,this._t=this.currentFrame=0,this.paused=!1},c._updateTimeline=function(b,c){var d=this.mode!==a.INDEPENDENT,e=this.timeline;d&&(b=this.startPosition+(this.mode===a.SINGLE_FRAME?0:this._synchOffset)),0>b&&(b=0),(this._rawPosition!==b||d)&&(this._rawPosition=b,e.loop=this.loop,e.setPosition(b,d||!this.actionsEnabled,c,this._bound_resolveState))},c._renderFirstFrame=function(){var a=this.timeline,b=a.rawPosition;a.setPosition(0,!0,!0,this._bound_resolveState),a.rawPosition=b},c._resolveState=function(){var a=this.timeline;this.currentFrame=a.position;for(var b in this._managed)this._managed[b]=1;for(var c=a.tweens,d=0,e=c.length;e>d;d++){var f=c[d],g=f.target;if(g!==this&&!f.passive){var h=f._stepPosition;g instanceof createjs.DisplayObject?this._addManagedChild(g,h):this._setState(g.state,h)}}var i=this.children;for(d=i.length-1;d>=0;d--){var j=i[d].id;1===this._managed[j]&&(this.removeChildAt(d),delete this._managed[j])}},c._setState=function(a,b){if(a)for(var c=a.length-1;c>=0;c--){var d=a[c],e=d.t,f=d.p;for(var g in f)e[g]=f[g];this._addManagedChild(e,b)}},c._addManagedChild=function(b,c){b._off||(this.addChildAt(b,0),b instanceof a&&(b._synchOffset=c,b.mode===a.INDEPENDENT&&b.autoReset&&!this._managed[b.id]&&b._reset()),this._managed[b.id]=2)},c._getBounds=function(a,b){var c=this.DisplayObject_getBounds();return c||this.frameBounds&&(c=this._rectangle.copy(this.frameBounds[this.currentFrame])),c?this._transformBounds(c,a,b):this.Container__getBounds(a,b)},createjs.MovieClip=createjs.promote(a,"Container"),b.priority=100,b.ID="MovieClip",b.install=function(){createjs.Tween._installPlugin(b)},b.init=function(c,d,e){"startPosition"===d&&c.target instanceof a&&c._addPlugin(b)},b.step=function(a,b,c){},b.change=function(a,b,c,d,e,f){return"startPosition"===c?1===e?b.props[c]:b.prev.props[c]:void 0}}(),this.createjs=this.createjs||{},function(){"use strict";function a(){throw"SpriteSheetUtils cannot be instantiated"}var b=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");b.getContext&&(a._workingCanvas=b,a._workingContext=b.getContext("2d"),b.width=b.height=1),a.extractFrame=function(b,c){isNaN(c)&&(c=b.getAnimation(c).frames[0]);var d=b.getFrame(c);if(!d)return null;var e=d.rect,f=a._workingCanvas;f.width=e.width,f.height=e.height,a._workingContext.drawImage(d.image,e.x,e.y,e.width,e.height,0,0,e.width,e.height);var g=document.createElement("img");return g.src=f.toDataURL("image/png"),g},a.addFlippedFrames=createjs.deprecate(null,"SpriteSheetUtils.addFlippedFrames"),a.mergeAlpha=createjs.deprecate(null,"SpriteSheetUtils.mergeAlpha"),a._flip=function(b,c,d,e){for(var f=b._images,g=a._workingCanvas,h=a._workingContext,i=f.length/c,j=0;i>j;j++){var k=f[j];k.__tmp=j,h.setTransform(1,0,0,1,0,0),h.clearRect(0,0,g.width+1,g.height+1),g.width=k.width,g.height=k.height,h.setTransform(d?-1:1,0,0,e?-1:1,d?k.width:0,e?k.height:0),h.drawImage(k,0,0);var l=document.createElement("img");l.src=g.toDataURL("image/png"),l.width=k.width||k.naturalWidth,l.height=k.height||k.naturalHeight, +f.push(l)}var m=b._frames,n=m.length/c;for(j=0;n>j;j++){k=m[j];var o=k.rect.clone();l=f[k.image.__tmp+i*c];var p={image:l,rect:o,regX:k.regX,regY:k.regY};d&&(o.x=(l.width||l.naturalWidth)-o.x-o.width,p.regX=o.width-k.regX),e&&(o.y=(l.height||l.naturalHeight)-o.y-o.height,p.regY=o.height-k.regY),m.push(p)}var q="_"+(d?"h":"")+(e?"v":""),r=b._animations,s=b._data,t=r.length/c;for(j=0;t>j;j++){var u=r[j];k=s[u];var v={name:u+q,speed:k.speed,next:k.next,frames:[]};k.next&&(v.next+=q),m=k.frames;for(var w=0,x=m.length;x>w;w++)v.frames.push(m[w]+n*c);s[v.name]=v,r.push(v.name)}},createjs.SpriteSheetUtils=a}(),this.createjs=this.createjs||{},function(){"use strict";function a(a){this.EventDispatcher_constructor(),this.maxWidth=2048,this.maxHeight=2048,this.spriteSheet=null,this.scale=1,this.padding=1,this.timeSlice=.3,this.progress=-1,this.framerate=a||0,this._frames=[],this._animations={},this._data=null,this._nextFrameIndex=0,this._index=0,this._timerID=null,this._scale=1}var b=createjs.extend(a,createjs.EventDispatcher);a.ERR_DIMENSIONS="frame dimensions exceed max spritesheet dimensions",a.ERR_RUNNING="a build is already running",b.addFrame=function(b,c,d,e,f){if(this._data)throw a.ERR_RUNNING;var g=c||b.bounds||b.nominalBounds;return!g&&b.getBounds&&(g=b.getBounds()),g?(d=d||1,this._frames.push({source:b,sourceRect:g,scale:d,funct:e,data:f,index:this._frames.length,height:g.height*d})-1):null},b.addAnimation=function(b,c,d,e){if(this._data)throw a.ERR_RUNNING;this._animations[b]={frames:c,next:d,speed:e}},b.addMovieClip=function(b,c,d,e,f,g){if(this._data)throw a.ERR_RUNNING;var h=b.frameBounds,i=c||b.bounds||b.nominalBounds;if(!i&&b.getBounds&&(i=b.getBounds()),i||h){var j,k,l=this._frames.length,m=b.timeline.duration;for(j=0;m>j;j++){var n=h&&h[j]?h[j]:i;this.addFrame(b,n,d,this._setupMovieClipFrame,{i:j,f:e,d:f})}var o=b.timeline._labels,p=[];for(var q in o)p.push({index:o[q],label:q});if(p.length)for(p.sort(function(a,b){return a.index-b.index}),j=0,k=p.length;k>j;j++){for(var r=p[j].label,s=l+p[j].index,t=l+(j==k-1?m:p[j+1].index),u=[],v=s;t>v;v++)u.push(v);(!g||(r=g(r,b,s,t)))&&this.addAnimation(r,u,!0)}}},b.build=function(){if(this._data)throw a.ERR_RUNNING;for(this._startBuild();this._drawNext(););return this._endBuild(),this.spriteSheet},b.buildAsync=function(b){if(this._data)throw a.ERR_RUNNING;this.timeSlice=b,this._startBuild();var c=this;this._timerID=setTimeout(function(){c._run()},50-50*Math.max(.01,Math.min(.99,this.timeSlice||.3)))},b.stopAsync=function(){clearTimeout(this._timerID),this._data=null},b.clone=function(){throw"SpriteSheetBuilder cannot be cloned."},b.toString=function(){return"[SpriteSheetBuilder]"},b._startBuild=function(){var b=this.padding||0;this.progress=0,this.spriteSheet=null,this._index=0,this._scale=this.scale;var c=[];this._data={images:[],frames:c,framerate:this.framerate,animations:this._animations};var d=this._frames.slice();if(d.sort(function(a,b){return a.height<=b.height?-1:1}),d[d.length-1].height+2*b>this.maxHeight)throw a.ERR_DIMENSIONS;for(var e=0,f=0,g=0;d.length;){var h=this._fillRow(d,e,g,c,b);if(h.w>f&&(f=h.w),e+=h.h,!h.h||!d.length){var i=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas");i.width=this._getSize(f,this.maxWidth),i.height=this._getSize(e,this.maxHeight),this._data.images[g]=i,h.h||(f=e=0,g++)}}},b._setupMovieClipFrame=function(a,b){var c=a.actionsEnabled;a.actionsEnabled=!1,a.gotoAndStop(b.i),a.actionsEnabled=c,b.f&&b.f(a,b.d,b.i)},b._getSize=function(a,b){for(var c=4;Math.pow(2,++c)=0;l--){var m=b[l],n=this._scale*m.scale,o=m.sourceRect,p=m.source,q=Math.floor(n*o.x-f),r=Math.floor(n*o.y-f),s=Math.ceil(n*o.height+2*f),t=Math.ceil(n*o.width+2*f);if(t>g)throw a.ERR_DIMENSIONS;s>i||j+t>g||(m.img=d,m.rect=new createjs.Rectangle(j,c,t,s),k=k||s,b.splice(l,1),e[m.index]=[j,c,t,s,d,Math.round(-q+n*p.regX-f),Math.round(-r+n*p.regY-f)],j+=t)}return{w:j,h:k}},b._endBuild=function(){this.spriteSheet=new createjs.SpriteSheet(this._data),this._data=null,this.progress=1,this.dispatchEvent("complete")},b._run=function(){for(var a=50*Math.max(.01,Math.min(.99,this.timeSlice||.3)),b=(new Date).getTime()+a,c=!1;b>(new Date).getTime();)if(!this._drawNext()){c=!0;break}if(c)this._endBuild();else{var d=this;this._timerID=setTimeout(function(){d._run()},50-a)}var e=this.progress=this._index/this._frames.length;if(this.hasEventListener("progress")){var f=new createjs.Event("progress");f.progress=e,this.dispatchEvent(f)}},b._drawNext=function(){var a=this._frames[this._index],b=a.scale*this._scale,c=a.rect,d=a.sourceRect,e=this._data.images[a.img],f=e.getContext("2d");return a.funct&&a.funct(a.source,a.data),f.save(),f.beginPath(),f.rect(c.x,c.y,c.width,c.height),f.clip(),f.translate(Math.ceil(c.x-d.x*b),Math.ceil(c.y-d.y*b)),f.scale(b,b),a.source.draw(f),f.restore(),++this._index=!!d)return b;for(var e=0;d>e;e++){var f=c[e];if(f&&f.getBounds){var g=f.getBounds();g&&(0==e?b.setValues(g.x,g.y,g.width,g.height):b.extend(g.x,g.y,g.width,g.height))}}return b},b.toString=function(){return"[BitmapCache]"},b.define=function(a,b,c,d,e,f,g){if(!a)throw"No symbol to cache";this._options=g,this.target=a,this.width=d>=1?d:1,this.height=e>=1?e:1,this.x=b||0,this.y=c||0,this.scale=f||1,this.update()},b.update=function(b){if(!this.target)throw"define() must be called before update()";var c=a.getFilterBounds(this.target),d=this.target.cacheCanvas;this._drawWidth=Math.ceil(this.width*this.scale)+c.width,this._drawHeight=Math.ceil(this.height*this.scale)+c.height,d&&this._drawWidth==d.width&&this._drawHeight==d.height||this._updateSurface(),this._filterOffX=c.x,this._filterOffY=c.y,this.offX=this.x*this.scale+this._filterOffX,this.offY=this.y*this.scale+this._filterOffY,this._drawToCache(b),this.cacheID=this.cacheID?this.cacheID+1:1},b.release=function(){if(this._webGLCache)this._webGLCache.isCacheControlled||(this.__lastRT&&(this.__lastRT=void 0),this.__rtA&&this._webGLCache._killTextureObject(this.__rtA),this.__rtB&&this._webGLCache._killTextureObject(this.__rtB),this.target&&this.target.cacheCanvas&&this._webGLCache._killTextureObject(this.target.cacheCanvas)),this._webGLCache=!1;else{var a=this.target.stage;a instanceof createjs.StageGL&&a.releaseTexture(this.target.cacheCanvas)}this.target=this.target.cacheCanvas=null,this.cacheID=this._cacheDataURLID=this._cacheDataURL=void 0,this.width=this.height=this.x=this.y=this.offX=this.offY=0,this.scale=1},b.getCacheDataURL=function(){var a=this.target&&this.target.cacheCanvas;return a?(this.cacheID!=this._cacheDataURLID&&(this._cacheDataURLID=this.cacheID,this._cacheDataURL=a.toDataURL?a.toDataURL():null),this._cacheDataURL):null},b.draw=function(a){return this.target?(a.drawImage(this.target.cacheCanvas,this.x+this._filterOffX/this.scale,this.y+this._filterOffY/this.scale,this._drawWidth/this.scale,this._drawHeight/this.scale),!0):!1},b._updateSurface=function(){if(!this._options||!this._options.useGL){var a=this.target.cacheCanvas;return a||(a=this.target.cacheCanvas=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas")),a.width=this._drawWidth,void(a.height=this._drawHeight)}if(!this._webGLCache)if("stage"===this._options.useGL){if(!this.target.stage||!this.target.stage.isWebGL){var b="Cannot use 'stage' for cache because the object's parent stage is ";throw b+=this.target.stage?"non WebGL.":"not set, please addChild to the correct stage."}this.target.cacheCanvas=!0,this._webGLCache=this.target.stage}else if("new"===this._options.useGL)this.target.cacheCanvas=document.createElement("canvas"),this._webGLCache=new createjs.StageGL(this.target.cacheCanvas,{antialias:!0,transparent:!0,autoPurge:-1}),this._webGLCache.isCacheControlled=!0;else{if(!(this._options.useGL instanceof createjs.StageGL))throw"Invalid option provided to useGL, expected ['stage', 'new', StageGL, undefined], got "+this._options.useGL;this.target.cacheCanvas=!0,this._webGLCache=this._options.useGL,this._webGLCache.isCacheControlled=!0}var a=this.target.cacheCanvas,c=this._webGLCache;c.isCacheControlled&&(a.width=this._drawWidth,a.height=this._drawHeight,c.updateViewport(this._drawWidth,this._drawHeight)),this.target.filters?(c.getTargetRenderTexture(this.target,this._drawWidth,this._drawHeight),c.getTargetRenderTexture(this.target,this._drawWidth,this._drawHeight)):c.isCacheControlled||c.getTargetRenderTexture(this.target,this._drawWidth,this._drawHeight)},b._drawToCache=function(a){var b=this.target.cacheCanvas,c=this.target,d=this._webGLCache;if(d)d.cacheDraw(c,c.filters,this),b=this.target.cacheCanvas,b.width=this._drawWidth,b.height=this._drawHeight;else{var e=b.getContext("2d");a||e.clearRect(0,0,this._drawWidth+1,this._drawHeight+1),e.save(),e.globalCompositeOperation=a,e.setTransform(this.scale,0,0,this.scale,-this._filterOffX,-this._filterOffY),e.translate(-this.x,-this.y),c.draw(e,!0),e.restore(),c.filters&&c.filters.length&&this._applyFilters(e)}b._invalid=!0},b._applyFilters=function(a){var b,c=this.target.filters,d=this._drawWidth,e=this._drawHeight,f=0,g=c[f];do g.usesContext?(b&&(a.putImageData(b,0,0),b=null),g.applyFilter(a,0,0,d,e)):(b||(b=a.getImageData(0,0,d,e)),g._applyFilter(b)),g=null!==g._multiPass?g._multiPass:c[++f];while(g);b&&a.putImageData(b,0,0)},createjs.BitmapCache=a}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b,c){this.Filter_constructor(),this._blurX=a,this._blurXTable=[],this._lastBlurX=null,this._blurY=b,this._blurYTable=[],this._lastBlurY=null,this._quality,this._lastQuality=null,this.FRAG_SHADER_TEMPLATE="uniform float xWeight[{{blurX}}];uniform float yWeight[{{blurY}}];uniform vec2 textureOffset;void main(void) {vec4 color = vec4(0.0);float xAdj = ({{blurX}}.0-1.0)/2.0;float yAdj = ({{blurY}}.0-1.0)/2.0;vec2 sampleOffset;for(int i=0; i<{{blurX}}; i++) {for(int j=0; j<{{blurY}}; j++) {sampleOffset = vRenderCoord + (textureOffset * vec2(float(i)-xAdj, float(j)-yAdj));color += texture2D(uSampler, sampleOffset) * (xWeight[i] * yWeight[j]);}}gl_FragColor = color.rgba;}",(isNaN(c)||1>c)&&(c=1),this.setQuality(0|c)}var b=createjs.extend(a,createjs.Filter);b.getBlurX=function(){return this._blurX},b.getBlurY=function(){return this._blurY},b.setBlurX=function(a){(isNaN(a)||0>a)&&(a=0),this._blurX=a},b.setBlurY=function(a){(isNaN(a)||0>a)&&(a=0),this._blurY=a},b.getQuality=function(){return this._quality},b.setQuality=function(a){(isNaN(a)||0>a)&&(a=0),this._quality=0|a},b._getShader=function(){var a=this._lastBlurX!==this._blurX,b=this._lastBlurY!==this._blurY,c=this._lastQuality!==this._quality;return a||b||c?((a||c)&&(this._blurXTable=this._getTable(this._blurX*this._quality)),(b||c)&&(this._blurYTable=this._getTable(this._blurY*this._quality)),this._updateShader(),this._lastBlurX=this._blurX,this._lastBlurY=this._blurY,void(this._lastQuality=this._quality)):this._compiledShader},b._setShader=function(){this._compiledShader};try{Object.defineProperties(b,{blurX:{get:b.getBlurX,set:b.setBlurX},blurY:{get:b.getBlurY,set:b.setBlurY},quality:{get:b.getQuality,set:b.setQuality},_builtShader:{get:b._getShader,set:b._setShader}})}catch(c){console.log(c)}b._getTable=function(a){var b=4.2;if(1>=a)return[1];var c=[],d=Math.ceil(2*a);d+=d%2?0:1;for(var e=d/2|0,f=-e;e>=f;f++){var g=f/e*b;c.push(1/Math.sqrt(2*Math.PI)*Math.pow(Math.E,-(Math.pow(g,2)/4)))}var h=c.reduce(function(a,b){return a+b});return c.map(function(a,b,c){return a/h})},b._updateShader=function(){if(void 0!==this._blurX&&void 0!==this._blurY){var a=this.FRAG_SHADER_TEMPLATE;a=a.replace(/\{\{blurX\}\}/g,this._blurXTable.length.toFixed(0)),a=a.replace(/\{\{blurY\}\}/g,this._blurYTable.length.toFixed(0)),this.FRAG_SHADER_BODY=a}},b.shaderParamSetup=function(a,b,c){a.uniform1fv(a.getUniformLocation(c,"xWeight"),this._blurXTable),a.uniform1fv(a.getUniformLocation(c,"yWeight"),this._blurYTable),a.uniform2f(a.getUniformLocation(c,"textureOffset"),2/(b._viewportWidth*this._quality),2/(b._viewportHeight*this._quality))},a.MUL_TABLE=[1,171,205,293,57,373,79,137,241,27,391,357,41,19,283,265,497,469,443,421,25,191,365,349,335,161,155,149,9,278,269,261,505,245,475,231,449,437,213,415,405,395,193,377,369,361,353,345,169,331,325,319,313,307,301,37,145,285,281,69,271,267,263,259,509,501,493,243,479,118,465,459,113,446,55,435,429,423,209,413,51,403,199,393,97,3,379,375,371,367,363,359,355,351,347,43,85,337,333,165,327,323,5,317,157,311,77,305,303,75,297,294,73,289,287,71,141,279,277,275,68,135,67,133,33,262,260,129,511,507,503,499,495,491,61,121,481,477,237,235,467,232,115,457,227,451,7,445,221,439,218,433,215,427,425,211,419,417,207,411,409,203,202,401,399,396,197,49,389,387,385,383,95,189,47,187,93,185,23,183,91,181,45,179,89,177,11,175,87,173,345,343,341,339,337,21,167,83,331,329,327,163,81,323,321,319,159,79,315,313,39,155,309,307,153,305,303,151,75,299,149,37,295,147,73,291,145,289,287,143,285,71,141,281,35,279,139,69,275,137,273,17,271,135,269,267,133,265,33,263,131,261,130,259,129,257,1],a.SHG_TABLE=[0,9,10,11,9,12,10,11,12,9,13,13,10,9,13,13,14,14,14,14,10,13,14,14,14,13,13,13,9,14,14,14,15,14,15,14,15,15,14,15,15,15,14,15,15,15,15,15,14,15,15,15,15,15,15,12,14,15,15,13,15,15,15,15,16,16,16,15,16,14,16,16,14,16,13,16,16,16,15,16,13,16,15,16,14,9,16,16,16,16,16,16,16,16,16,13,14,16,16,15,16,16,10,16,15,16,14,16,16,14,16,16,14,16,16,14,15,16,16,16,14,15,14,15,13,16,16,15,17,17,17,17,17,17,14,15,17,17,16,16,17,16,15,17,16,17,11,17,16,17,16,17,16,17,17,16,17,17,16,17,17,16,16,17,17,17,16,14,17,17,17,17,15,16,14,16,15,16,13,16,15,16,14,16,15,16,12,16,15,16,17,17,17,17,17,13,16,15,17,17,17,16,15,17,17,17,16,15,17,17,14,16,17,17,16,17,17,16,15,17,16,14,17,16,15,17,16,17,17,16,17,15,16,17,14,17,16,15,17,16,17,13,17,16,17,17,16,17,14,17,16,17,16,17,16,17,9],b.getBounds=function(a){var b=0|this.blurX,c=0|this.blurY;if(0>=b&&0>=c)return a;var d=Math.pow(this.quality,.2);return(a||new createjs.Rectangle).pad(c*d+1,b*d+1,c*d+1,b*d+1)},b.clone=function(){return new a(this.blurX,this.blurY,this.quality)},b.toString=function(){return"[BlurFilter]"},b._applyFilter=function(b){var c=this._blurX>>1;if(isNaN(c)||0>c)return!1;var d=this._blurY>>1;if(isNaN(d)||0>d)return!1;if(0==c&&0==d)return!1;var e=this.quality;(isNaN(e)||1>e)&&(e=1),e|=0,e>3&&(e=3),1>e&&(e=1);var f=b.data,g=0,h=0,i=0,j=0,k=0,l=0,m=0,n=0,o=0,p=0,q=0,r=0,s=0,t=0,u=0,v=c+c+1|0,w=d+d+1|0,x=0|b.width,y=0|b.height,z=x-1|0,A=y-1|0,B=c+1|0,C=d+1|0,D={r:0,b:0,g:0,a:0},E=D;for(i=1;v>i;i++)E=E.n={r:0,b:0,g:0,a:0};E.n=D;var F={r:0,b:0,g:0,a:0},G=F;for(i=1;w>i;i++)G=G.n={r:0,b:0,g:0,a:0};G.n=F;for(var H=null,I=0|a.MUL_TABLE[c],J=0|a.SHG_TABLE[c],K=0|a.MUL_TABLE[d],L=0|a.SHG_TABLE[d];e-->0;){m=l=0;var M=I,N=J;for(h=y;--h>-1;){for(n=B*(r=f[0|l]),o=B*(s=f[l+1|0]),p=B*(t=f[l+2|0]),q=B*(u=f[l+3|0]),E=D,i=B;--i>-1;)E.r=r,E.g=s,E.b=t,E.a=u,E=E.n;for(i=1;B>i;i++)j=l+((i>z?z:i)<<2)|0,n+=E.r=f[j],o+=E.g=f[j+1],p+=E.b=f[j+2],q+=E.a=f[j+3],E=E.n;for(H=D,g=0;x>g;g++)f[l++]=n*M>>>N,f[l++]=o*M>>>N,f[l++]=p*M>>>N,f[l++]=q*M>>>N,j=m+((j=g+c+1)g;g++){for(l=g<<2|0,n=C*(r=f[l])|0,o=C*(s=f[l+1|0])|0,p=C*(t=f[l+2|0])|0,q=C*(u=f[l+3|0])|0,G=F,i=0;C>i;i++)G.r=r,G.g=s,G.b=t,G.a=u,G=G.n;for(k=x,i=1;d>=i;i++)l=k+g<<2,n+=G.r=f[l],o+=G.g=f[l+1],p+=G.b=f[l+2],q+=G.a=f[l+3],G=G.n,A>i&&(k+=x);if(l=g,H=F,e>0)for(h=0;y>h;h++)j=l<<2,f[j+3]=u=q*M>>>N,u>0?(f[j]=n*M>>>N,f[j+1]=o*M>>>N,f[j+2]=p*M>>>N):f[j]=f[j+1]=f[j+2]=0,j=g+((j=h+C)h;h++)j=l<<2,f[j+3]=u=q*M>>>N,u>0?(u=255/u,f[j]=(n*M>>>N)*u,f[j+1]=(o*M>>>N)*u,f[j+2]=(p*M>>>N)*u):f[j]=f[j+1]=f[j+2]=0,j=g+((j=h+C)d;d+=4)b[d+3]=c[d]||0;return!0},b._prepAlphaMap=function(){if(!this.alphaMap)return!1;if(this.alphaMap==this._alphaMap&&this._mapData)return!0;this._mapData=null;var a,b=this._alphaMap=this.alphaMap,c=b;b instanceof HTMLCanvasElement?a=c.getContext("2d"):(c=createjs.createCanvas?createjs.createCanvas():document.createElement("canvas"),c.width=b.width,c.height=b.height,a=c.getContext("2d"),a.drawImage(b,0,0));try{var d=a.getImageData(0,0,b.width,b.height)}catch(e){return!1}return this._mapData=d.data,!0},createjs.AlphaMapFilter=createjs.promote(a,"Filter")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a){this.Filter_constructor(),this.mask=a,this.usesContext=!0,this.FRAG_SHADER_BODY="uniform sampler2D uAlphaSampler;void main(void) {vec4 color = texture2D(uSampler, vRenderCoord);vec4 alphaMap = texture2D(uAlphaSampler, vTextureCoord);gl_FragColor = vec4(color.rgb, color.a * alphaMap.a);}"}var b=createjs.extend(a,createjs.Filter);b.shaderParamSetup=function(a,b,c){this._mapTexture||(this._mapTexture=a.createTexture()),a.activeTexture(a.TEXTURE1),a.bindTexture(a.TEXTURE_2D,this._mapTexture),b.setTextureParams(a),a.texImage2D(a.TEXTURE_2D,0,a.RGBA,a.RGBA,a.UNSIGNED_BYTE,this.mask),a.uniform1i(a.getUniformLocation(c,"uAlphaSampler"),1)},b.applyFilter=function(a,b,c,d,e,f,g,h){return this.mask?(f=f||a,null==g&&(g=b),null==h&&(h=c),f.save(),a!=f?!1:(f.globalCompositeOperation="destination-in",f.drawImage(this.mask,g,h),f.restore(),!0)):!0},b.clone=function(){return new a(this.mask)},b.toString=function(){return"[AlphaMaskFilter]"},createjs.AlphaMaskFilter=createjs.promote(a,"Filter")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b,c,d,e,f,g,h){this.Filter_constructor(),this.redMultiplier=null!=a?a:1,this.greenMultiplier=null!=b?b:1,this.blueMultiplier=null!=c?c:1,this.alphaMultiplier=null!=d?d:1,this.redOffset=e||0,this.greenOffset=f||0,this.blueOffset=g||0,this.alphaOffset=h||0,this.FRAG_SHADER_BODY="uniform vec4 uColorMultiplier;uniform vec4 uColorOffset;void main(void) {vec4 color = texture2D(uSampler, vRenderCoord);gl_FragColor = (color * uColorMultiplier) + uColorOffset;}"}var b=createjs.extend(a,createjs.Filter);b.shaderParamSetup=function(a,b,c){a.uniform4f(a.getUniformLocation(c,"uColorMultiplier"),this.redMultiplier,this.greenMultiplier,this.blueMultiplier,this.alphaMultiplier),a.uniform4f(a.getUniformLocation(c,"uColorOffset"),this.redOffset/255,this.greenOffset/255,this.blueOffset/255,this.alphaOffset/255)},b.toString=function(){return"[ColorFilter]"},b.clone=function(){return new a(this.redMultiplier,this.greenMultiplier,this.blueMultiplier,this.alphaMultiplier,this.redOffset,this.greenOffset,this.blueOffset,this.alphaOffset)},b._applyFilter=function(a){for(var b=a.data,c=b.length,d=0;c>d;d+=4)b[d]=b[d]*this.redMultiplier+this.redOffset,b[d+1]=b[d+1]*this.greenMultiplier+this.greenOffset,b[d+2]=b[d+2]*this.blueMultiplier+this.blueOffset,b[d+3]=b[d+3]*this.alphaMultiplier+this.alphaOffset;return!0},createjs.ColorFilter=createjs.promote(a,"Filter")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b,c,d){this.setColor(a,b,c,d)}var b=a.prototype;a.DELTA_INDEX=[0,.01,.02,.04,.05,.06,.07,.08,.1,.11,.12,.14,.15,.16,.17,.18,.2,.21,.22,.24,.25,.27,.28,.3,.32,.34,.36,.38,.4,.42,.44,.46,.48,.5,.53,.56,.59,.62,.65,.68,.71,.74,.77,.8,.83,.86,.89,.92,.95,.98,1,1.06,1.12,1.18,1.24,1.3,1.36,1.42,1.48,1.54,1.6,1.66,1.72,1.78,1.84,1.9,1.96,2,2.12,2.25,2.37,2.5,2.62,2.75,2.87,3,3.2,3.4,3.6,3.8,4,4.3,4.7,4.9,5,5.5,6,6.5,6.8,7,7.3,7.5,7.8,8,8.4,8.7,9,9.4,9.6,9.8,10],a.IDENTITY_MATRIX=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1],a.LENGTH=a.IDENTITY_MATRIX.length,b.setColor=function(a,b,c,d){return this.reset().adjustColor(a,b,c,d)},b.reset=function(){return this.copy(a.IDENTITY_MATRIX)},b.adjustColor=function(a,b,c,d){return this.adjustHue(d),this.adjustContrast(b),this.adjustBrightness(a),this.adjustSaturation(c)},b.adjustBrightness=function(a){return 0==a||isNaN(a)?this:(a=this._cleanValue(a,255),this._multiplyMatrix([1,0,0,0,a,0,1,0,0,a,0,0,1,0,a,0,0,0,1,0,0,0,0,0,1]),this)},b.adjustContrast=function(b){if(0==b||isNaN(b))return this;b=this._cleanValue(b,100);var c;return 0>b?c=127+b/100*127:(c=b%1,c=0==c?a.DELTA_INDEX[b]:a.DELTA_INDEX[b<<0]*(1-c)+a.DELTA_INDEX[(b<<0)+1]*c,c=127*c+127),this._multiplyMatrix([c/127,0,0,0,.5*(127-c),0,c/127,0,0,.5*(127-c),0,0,c/127,0,.5*(127-c),0,0,0,1,0,0,0,0,0,1]),this},b.adjustSaturation=function(a){if(0==a||isNaN(a))return this;a=this._cleanValue(a,100);var b=1+(a>0?3*a/100:a/100),c=.3086,d=.6094,e=.082;return this._multiplyMatrix([c*(1-b)+b,d*(1-b),e*(1-b),0,0,c*(1-b),d*(1-b)+b,e*(1-b),0,0,c*(1-b),d*(1-b),e*(1-b)+b,0,0,0,0,0,1,0,0,0,0,0,1]),this},b.adjustHue=function(a){if(0==a||isNaN(a))return this;a=this._cleanValue(a,180)/180*Math.PI;var b=Math.cos(a),c=Math.sin(a),d=.213,e=.715,f=.072;return this._multiplyMatrix([d+b*(1-d)+c*-d,e+b*-e+c*-e,f+b*-f+c*(1-f),0,0,d+b*-d+.143*c,e+b*(1-e)+.14*c,f+b*-f+c*-.283,0,0,d+b*-d+c*-(1-d),e+b*-e+c*e,f+b*(1-f)+c*f,0,0,0,0,0,1,0,0,0,0,0,1]),this},b.concat=function(b){return b=this._fixMatrix(b),b.length!=a.LENGTH?this:(this._multiplyMatrix(b),this)},b.clone=function(){return(new a).copy(this)},b.toArray=function(){for(var b=[],c=0,d=a.LENGTH;d>c;c++)b[c]=this[c];return b},b.copy=function(b){for(var c=a.LENGTH,d=0;c>d;d++)this[d]=b[d];return this},b.toString=function(){return"[ColorMatrix]"},b._multiplyMatrix=function(a){var b,c,d,e=[];for(b=0;5>b;b++){for(c=0;5>c;c++)e[c]=this[c+5*b];for(c=0;5>c;c++){var f=0;for(d=0;5>d;d++)f+=a[c+5*d]*e[d];this[c+5*b]=f}}},b._cleanValue=function(a,b){return Math.min(b,Math.max(-b,a))},b._fixMatrix=function(b){return b instanceof a&&(b=b.toArray()),b.lengtha.LENGTH&&(b=b.slice(0,a.LENGTH)),b},createjs.ColorMatrix=a}(),this.createjs=this.createjs||{},function(){"use strict";function a(a){this.Filter_constructor(),this.matrix=a,this.FRAG_SHADER_BODY="uniform mat4 uColorMatrix;uniform vec4 uColorMatrixOffset;void main(void) {vec4 color = texture2D(uSampler, vRenderCoord);mat4 m = uColorMatrix;vec4 newColor = vec4(0,0,0,0);newColor.r = color.r*m[0][0] + color.g*m[0][1] + color.b*m[0][2] + color.a*m[0][3];newColor.g = color.r*m[1][0] + color.g*m[1][1] + color.b*m[1][2] + color.a*m[1][3];newColor.b = color.r*m[2][0] + color.g*m[2][1] + color.b*m[2][2] + color.a*m[2][3];newColor.a = color.r*m[3][0] + color.g*m[3][1] + color.b*m[3][2] + color.a*m[3][3];gl_FragColor = newColor + uColorMatrixOffset;}"}var b=createjs.extend(a,createjs.Filter);b.shaderParamSetup=function(a,b,c){var d=this.matrix,e=new Float32Array([d[0],d[1],d[2],d[3],d[5],d[6],d[7],d[8],d[10],d[11],d[12],d[13],d[15],d[16],d[17],d[18]]);a.uniformMatrix4fv(a.getUniformLocation(c,"uColorMatrix"),!1,e),a.uniform4f(a.getUniformLocation(c,"uColorMatrixOffset"),d[4]/255,d[9]/255,d[14]/255,d[19]/255)},b.toString=function(){return"[ColorMatrixFilter]"},b.clone=function(){return new a(this.matrix)},b._applyFilter=function(a){for(var b,c,d,e,f=a.data,g=f.length,h=this.matrix,i=h[0],j=h[1],k=h[2],l=h[3],m=h[4],n=h[5],o=h[6],p=h[7],q=h[8],r=h[9],s=h[10],t=h[11],u=h[12],v=h[13],w=h[14],x=h[15],y=h[16],z=h[17],A=h[18],B=h[19],C=0;g>C;C+=4)b=f[C],c=f[C+1],d=f[C+2],e=f[C+3],f[C]=b*i+c*j+d*k+e*l+m,f[C+1]=b*n+c*o+d*p+e*q+r,f[C+2]=b*s+c*t+d*u+e*v+w,f[C+3]=b*x+c*y+d*z+e*A+B;return!0},createjs.ColorMatrixFilter=createjs.promote(a,"Filter")}(),this.createjs=this.createjs||{},function(){"use strict";function a(){throw"Touch cannot be instantiated"}a.isSupported=function(){return!!("ontouchstart"in window||window.navigator.msPointerEnabled&&window.navigator.msMaxTouchPoints>0||window.navigator.pointerEnabled&&window.navigator.maxTouchPoints>0)},a.enable=function(b,c,d){return b&&b.canvas&&a.isSupported()?b.__touch?!0:(b.__touch={pointers:{},multitouch:!c,preventDefault:!d,count:0},"ontouchstart"in window?a._IOS_enable(b):(window.navigator.msPointerEnabled||window.navigator.pointerEnabled)&&a._IE_enable(b),!0):!1},a.disable=function(b){b&&("ontouchstart"in window?a._IOS_disable(b):(window.navigator.msPointerEnabled||window.navigator.pointerEnabled)&&a._IE_disable(b),delete b.__touch)},a._IOS_enable=function(b){var c=b.canvas,d=b.__touch.f=function(c){a._IOS_handleEvent(b,c)};c.addEventListener("touchstart",d,!1),c.addEventListener("touchmove",d,!1),c.addEventListener("touchend",d,!1),c.addEventListener("touchcancel",d,!1)},a._IOS_disable=function(a){var b=a.canvas;if(b){var c=a.__touch.f;b.removeEventListener("touchstart",c,!1),b.removeEventListener("touchmove",c,!1),b.removeEventListener("touchend",c,!1),b.removeEventListener("touchcancel",c,!1)}},a._IOS_handleEvent=function(a,b){if(a){a.__touch.preventDefault&&b.preventDefault&&b.preventDefault();for(var c=b.changedTouches,d=b.type,e=0,f=c.length;f>e;e++){var g=c[e],h=g.identifier;g.target==a.canvas&&("touchstart"==d?this._handleStart(a,h,b,g.pageX,g.pageY):"touchmove"==d?this._handleMove(a,h,b,g.pageX,g.pageY):("touchend"==d||"touchcancel"==d)&&this._handleEnd(a,h,b))}}},a._IE_enable=function(b){var c=b.canvas,d=b.__touch.f=function(c){a._IE_handleEvent(b,c)};void 0===window.navigator.pointerEnabled?(c.addEventListener("MSPointerDown",d,!1),window.addEventListener("MSPointerMove",d,!1),window.addEventListener("MSPointerUp",d,!1),window.addEventListener("MSPointerCancel",d,!1),b.__touch.preventDefault&&(c.style.msTouchAction="none")):(c.addEventListener("pointerdown",d,!1),window.addEventListener("pointermove",d,!1),window.addEventListener("pointerup",d,!1),window.addEventListener("pointercancel",d,!1),b.__touch.preventDefault&&(c.style.touchAction="none")),b.__touch.activeIDs={}},a._IE_disable=function(a){var b=a.__touch.f;void 0===window.navigator.pointerEnabled?(window.removeEventListener("MSPointerMove",b,!1),window.removeEventListener("MSPointerUp",b,!1),window.removeEventListener("MSPointerCancel",b,!1),a.canvas&&a.canvas.removeEventListener("MSPointerDown",b,!1)):(window.removeEventListener("pointermove",b,!1),window.removeEventListener("pointerup",b,!1),window.removeEventListener("pointercancel",b,!1),a.canvas&&a.canvas.removeEventListener("pointerdown",b,!1))},a._IE_handleEvent=function(a,b){if(a){a.__touch.preventDefault&&b.preventDefault&&b.preventDefault();var c=b.type,d=b.pointerId,e=a.__touch.activeIDs;if("MSPointerDown"==c||"pointerdown"==c){if(b.srcElement!=a.canvas)return;e[d]=!0,this._handleStart(a,d,b,b.pageX,b.pageY)}else e[d]&&("MSPointerMove"==c||"pointermove"==c?this._handleMove(a,d,b,b.pageX,b.pageY):("MSPointerUp"==c||"MSPointerCancel"==c||"pointerup"==c||"pointercancel"==c)&&(delete e[d],this._handleEnd(a,d,b)))}},a._handleStart=function(a,b,c,d,e){var f=a.__touch;if(f.multitouch||!f.count){var g=f.pointers;g[b]||(g[b]=!0,f.count++,a._handlePointerDown(b,c,d,e))}},a._handleMove=function(a,b,c,d,e){a.__touch.pointers[b]&&a._handlePointerMove(b,c,d,e)},a._handleEnd=function(a,b,c){var d=a.__touch,e=d.pointers;e[b]&&(d.count--,a._handlePointerUp(b,c,!0),delete e[b])},createjs.Touch=a}(),this.createjs=this.createjs||{},function(){"use strict";var a=createjs.EaselJS=createjs.EaselJS||{};a.version="1.0.0",a.buildDate="Thu, 12 Oct 2017 16:34:10 GMT"}(),this.createjs=this.createjs||{},function(){"use strict";var a=createjs.PreloadJS=createjs.PreloadJS||{};a.version="1.0.0",a.buildDate="Thu, 12 Oct 2017 16:34:05 GMT"}(),this.createjs=this.createjs||{},function(){"use strict";createjs.proxy=function(a,b){var c=Array.prototype.slice.call(arguments,2);return function(){return a.apply(b,Array.prototype.slice.call(arguments,0).concat(c))}}}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b,c){this.Event_constructor("error"),this.title=a,this.message=b,this.data=c}var b=createjs.extend(a,createjs.Event);b.clone=function(){return new createjs.ErrorEvent(this.title,this.message,this.data)},createjs.ErrorEvent=createjs.promote(a,"Event")}(),this.createjs=this.createjs||{},function(a){"use strict";function b(a,b){this.Event_constructor("progress"),this.loaded=a,this.total=null==b?1:b,this.progress=0==b?0:this.loaded/this.total; +}var c=createjs.extend(b,createjs.Event);c.clone=function(){return new createjs.ProgressEvent(this.loaded,this.total)},createjs.ProgressEvent=createjs.promote(b,"Event")}(window),function(){function a(b,d){function f(a){if(f[a]!==q)return f[a];var b;if("bug-string-char-index"==a)b="a"!="a"[0];else if("json"==a)b=f("json-stringify")&&f("json-parse");else{var c,e='{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';if("json-stringify"==a){var i=d.stringify,k="function"==typeof i&&t;if(k){(c=function(){return 1}).toJSON=c;try{k="0"===i(0)&&"0"===i(new g)&&'""'==i(new h)&&i(s)===q&&i(q)===q&&i()===q&&"1"===i(c)&&"[1]"==i([c])&&"[null]"==i([q])&&"null"==i(null)&&"[null,null,null]"==i([q,s,null])&&i({a:[c,!0,!1,null,"\x00\b\n\f\r "]})==e&&"1"===i(null,c)&&"[\n 1,\n 2\n]"==i([1,2],null,1)&&'"-271821-04-20T00:00:00.000Z"'==i(new j(-864e13))&&'"+275760-09-13T00:00:00.000Z"'==i(new j(864e13))&&'"-000001-01-01T00:00:00.000Z"'==i(new j(-621987552e5))&&'"1969-12-31T23:59:59.999Z"'==i(new j(-1))}catch(l){k=!1}}b=k}if("json-parse"==a){var m=d.parse;if("function"==typeof m)try{if(0===m("0")&&!m(!1)){c=m(e);var n=5==c.a.length&&1===c.a[0];if(n){try{n=!m('" "')}catch(l){}if(n)try{n=1!==m("01")}catch(l){}if(n)try{n=1!==m("1.")}catch(l){}}}}catch(l){n=!1}b=n}}return f[a]=!!b}b||(b=e.Object()),d||(d=e.Object());var g=b.Number||e.Number,h=b.String||e.String,i=b.Object||e.Object,j=b.Date||e.Date,k=b.SyntaxError||e.SyntaxError,l=b.TypeError||e.TypeError,m=b.Math||e.Math,n=b.JSON||e.JSON;"object"==typeof n&&n&&(d.stringify=n.stringify,d.parse=n.parse);var o,p,q,r=i.prototype,s=r.toString,t=new j(-0xc782b5b800cec);try{t=-109252==t.getUTCFullYear()&&0===t.getUTCMonth()&&1===t.getUTCDate()&&10==t.getUTCHours()&&37==t.getUTCMinutes()&&6==t.getUTCSeconds()&&708==t.getUTCMilliseconds()}catch(u){}if(!f("json")){var v="[object Function]",w="[object Date]",x="[object Number]",y="[object String]",z="[object Array]",A="[object Boolean]",B=f("bug-string-char-index");if(!t)var C=m.floor,D=[0,31,59,90,120,151,181,212,243,273,304,334],E=function(a,b){return D[b]+365*(a-1970)+C((a-1969+(b=+(b>1)))/4)-C((a-1901+b)/100)+C((a-1601+b)/400)};if((o=r.hasOwnProperty)||(o=function(a){var b,c={};return(c.__proto__=null,c.__proto__={toString:1},c).toString!=s?o=function(a){var b=this.__proto__,c=a in(this.__proto__=null,this);return this.__proto__=b,c}:(b=c.constructor,o=function(a){var c=(this.constructor||b).prototype;return a in this&&!(a in c&&this[a]===c[a])}),c=null,o.call(this,a)}),p=function(a,b){var d,e,f,g=0;(d=function(){this.valueOf=0}).prototype.valueOf=0,e=new d;for(f in e)o.call(e,f)&&g++;return d=e=null,g?p=2==g?function(a,b){var c,d={},e=s.call(a)==v;for(c in a)e&&"prototype"==c||o.call(d,c)||!(d[c]=1)||!o.call(a,c)||b(c)}:function(a,b){var c,d,e=s.call(a)==v;for(c in a)e&&"prototype"==c||!o.call(a,c)||(d="constructor"===c)||b(c);(d||o.call(a,c="constructor"))&&b(c)}:(e=["valueOf","toString","toLocaleString","propertyIsEnumerable","isPrototypeOf","hasOwnProperty","constructor"],p=function(a,b){var d,f,g=s.call(a)==v,h=!g&&"function"!=typeof a.constructor&&c[typeof a.hasOwnProperty]&&a.hasOwnProperty||o;for(d in a)g&&"prototype"==d||!h.call(a,d)||b(d);for(f=e.length;d=e[--f];h.call(a,d)&&b(d));}),p(a,b)},!f("json-stringify")){var F={92:"\\\\",34:'\\"',8:"\\b",12:"\\f",10:"\\n",13:"\\r",9:"\\t"},G="000000",H=function(a,b){return(G+(b||0)).slice(-a)},I="\\u00",J=function(a){for(var b='"',c=0,d=a.length,e=!B||d>10,f=e&&(B?a.split(""):a);d>c;c++){var g=a.charCodeAt(c);switch(g){case 8:case 9:case 10:case 12:case 13:case 34:case 92:b+=F[g];break;default:if(32>g){b+=I+H(2,g.toString(16));break}b+=e?f[c]:a.charAt(c)}}return b+'"'},K=function(a,b,c,d,e,f,g){var h,i,j,k,m,n,r,t,u,v,B,D,F,G,I,L;try{h=b[a]}catch(M){}if("object"==typeof h&&h)if(i=s.call(h),i!=w||o.call(h,"toJSON"))"function"==typeof h.toJSON&&(i!=x&&i!=y&&i!=z||o.call(h,"toJSON"))&&(h=h.toJSON(a));else if(h>-1/0&&1/0>h){if(E){for(m=C(h/864e5),j=C(m/365.2425)+1970-1;E(j+1,0)<=m;j++);for(k=C((m-E(j,0))/30.42);E(j,k+1)<=m;k++);m=1+m-E(j,k),n=(h%864e5+864e5)%864e5,r=C(n/36e5)%24,t=C(n/6e4)%60,u=C(n/1e3)%60,v=n%1e3}else j=h.getUTCFullYear(),k=h.getUTCMonth(),m=h.getUTCDate(),r=h.getUTCHours(),t=h.getUTCMinutes(),u=h.getUTCSeconds(),v=h.getUTCMilliseconds();h=(0>=j||j>=1e4?(0>j?"-":"+")+H(6,0>j?-j:j):H(4,j))+"-"+H(2,k+1)+"-"+H(2,m)+"T"+H(2,r)+":"+H(2,t)+":"+H(2,u)+"."+H(3,v)+"Z"}else h=null;if(c&&(h=c.call(b,a,h)),null===h)return"null";if(i=s.call(h),i==A)return""+h;if(i==x)return h>-1/0&&1/0>h?""+h:"null";if(i==y)return J(""+h);if("object"==typeof h){for(G=g.length;G--;)if(g[G]===h)throw l();if(g.push(h),B=[],I=f,f+=e,i==z){for(F=0,G=h.length;G>F;F++)D=K(F,h,c,d,e,f,g),B.push(D===q?"null":D);L=B.length?e?"[\n"+f+B.join(",\n"+f)+"\n"+I+"]":"["+B.join(",")+"]":"[]"}else p(d||h,function(a){var b=K(a,h,c,d,e,f,g);b!==q&&B.push(J(a)+":"+(e?" ":"")+b)}),L=B.length?e?"{\n"+f+B.join(",\n"+f)+"\n"+I+"}":"{"+B.join(",")+"}":"{}";return g.pop(),L}};d.stringify=function(a,b,d){var e,f,g,h;if(c[typeof b]&&b)if((h=s.call(b))==v)f=b;else if(h==z){g={};for(var i,j=0,k=b.length;k>j;i=b[j++],h=s.call(i),(h==y||h==x)&&(g[i]=1));}if(d)if((h=s.call(d))==x){if((d-=d%1)>0)for(e="",d>10&&(d=10);e.lengthL;)switch(e=f.charCodeAt(L)){case 9:case 10:case 13:case 32:L++;break;case 123:case 125:case 91:case 93:case 58:case 44:return a=B?f.charAt(L):f[L],L++,a;case 34:for(a="@",L++;g>L;)if(e=f.charCodeAt(L),32>e)P();else if(92==e)switch(e=f.charCodeAt(++L)){case 92:case 34:case 47:case 98:case 116:case 110:case 102:case 114:a+=O[e],L++;break;case 117:for(b=++L,c=L+4;c>L;L++)e=f.charCodeAt(L),e>=48&&57>=e||e>=97&&102>=e||e>=65&&70>=e||P();a+=N("0x"+f.slice(b,L));break;default:P()}else{if(34==e)break;for(e=f.charCodeAt(L),b=L;e>=32&&92!=e&&34!=e;)e=f.charCodeAt(++L);a+=f.slice(b,L)}if(34==f.charCodeAt(L))return L++,a;P();default:if(b=L,45==e&&(d=!0,e=f.charCodeAt(++L)),e>=48&&57>=e){for(48==e&&(e=f.charCodeAt(L+1),e>=48&&57>=e)&&P(),d=!1;g>L&&(e=f.charCodeAt(L),e>=48&&57>=e);L++);if(46==f.charCodeAt(L)){for(c=++L;g>c&&(e=f.charCodeAt(c),e>=48&&57>=e);c++);c==L&&P(),L=c}if(e=f.charCodeAt(L),101==e||69==e){for(e=f.charCodeAt(++L),(43==e||45==e)&&L++,c=L;g>c&&(e=f.charCodeAt(c),e>=48&&57>=e);c++);c==L&&P(),L=c}return+f.slice(b,L)}if(d&&P(),"true"==f.slice(L,L+4))return L+=4,!0;if("false"==f.slice(L,L+5))return L+=5,!1;if("null"==f.slice(L,L+4))return L+=4,null;P()}return"$"},R=function(a){var b,c;if("$"==a&&P(),"string"==typeof a){if("@"==(B?a.charAt(0):a[0]))return a.slice(1);if("["==a){for(b=[];a=Q(),"]"!=a;c||(c=!0))c&&(","==a?(a=Q(),"]"==a&&P()):P()),","==a&&P(),b.push(R(a));return b}if("{"==a){for(b={};a=Q(),"}"!=a;c||(c=!0))c&&(","==a?(a=Q(),"}"==a&&P()):P()),(","==a||"string"!=typeof a||"@"!=(B?a.charAt(0):a[0])||":"!=Q())&&P(),b[a.slice(1)]=R(Q());return b}P()}return a},S=function(a,b,c){var d=T(a,b,c);d===q?delete a[b]:a[b]=d},T=function(a,b,c){var d,e=a[b];if("object"==typeof e&&e)if(s.call(e)==z)for(d=e.length;d--;)S(e,d,c);else p(e,function(a){S(e,a,c)});return c.call(a,b,e)};d.parse=function(a,b){var c,d;return L=0,M=""+a,c=R(Q()),"$"!=Q()&&P(),L=M=null,b&&s.call(b)==v?T((d={},d[""]=c,d),"",b):c}}}return d.runInContext=a,d}var b="function"==typeof define&&define.amd,c={"function":!0,object:!0},d=c[typeof exports]&&exports&&!exports.nodeType&&exports,e=c[typeof window]&&window||this,f=d&&c[typeof module]&&module&&!module.nodeType&&"object"==typeof global&&global;if(!f||f.global!==f&&f.window!==f&&f.self!==f||(e=f),d&&!b)a(e,d);else{var g=e.JSON,h=e.JSON3,i=!1,j=a(e,e.JSON3={noConflict:function(){return i||(i=!0,e.JSON=g,e.JSON3=h,g=h=null),j}});e.JSON={parse:j.parse,stringify:j.stringify}}b&&define(function(){return j})}.call(this),function(){var a={};a.a=function(){return a.el("a")},a.svg=function(){return a.el("svg")},a.object=function(){return a.el("object")},a.image=function(){return a.el("image")},a.img=function(){return a.el("img")},a.style=function(){return a.el("style")},a.link=function(){return a.el("link")},a.script=function(){return a.el("script")},a.audio=function(){return a.el("audio")},a.video=function(){return a.el("video")},a.text=function(a){return document.createTextNode(a)},a.el=function(a){return document.createElement(a)},createjs.Elements=a}(),function(){var a={};a.ABSOLUTE_PATT=/^(?:\w+:)?\/{2}/i,a.RELATIVE_PATT=/^[.\/]*?\//i,a.EXTENSION_PATT=/\/?[^\/]+\.(\w{1,5})$/i,a.parseURI=function(b){var c={absolute:!1,relative:!1,protocol:null,hostname:null,port:null,pathname:null,search:null,hash:null,host:null};if(null==b)return c;var d=createjs.Elements.a();d.href=b;for(var e in c)e in d&&(c[e]=d[e]);var f=b.indexOf("?");f>-1&&(b=b.substr(0,f));var g;return a.ABSOLUTE_PATT.test(b)?c.absolute=!0:a.RELATIVE_PATT.test(b)&&(c.relative=!0),(g=b.match(a.EXTENSION_PATT))&&(c.extension=g[1].toLowerCase()),c},a.formatQueryString=function(a,b){if(null==a)throw new Error("You must specify data.");var c=[];for(var d in a)c.push(d+"="+escape(a[d]));return b&&(c=c.concat(b)),c.join("&")},a.buildURI=function(a,b){if(null==b)return a;var c=[],d=a.indexOf("?");if(-1!=d){var e=a.slice(d+1);c=c.concat(e.split("&"))}return-1!=d?a.slice(0,d)+"?"+this.formatQueryString(b,c):a+"?"+this.formatQueryString(b,c)},a.isCrossDomain=function(a){var b=createjs.Elements.a();b.href=a.src;var c=createjs.Elements.a();c.href=location.href;var d=""!=b.hostname&&(b.port!=c.port||b.protocol!=c.protocol||b.hostname!=c.hostname);return d},a.isLocal=function(a){var b=createjs.Elements.a();return b.href=a.src,""==b.hostname&&"file:"==b.protocol},createjs.URLUtils=a}(),function(){var a={container:null};a.appendToHead=function(b){a.getHead().appendChild(b)},a.appendToBody=function(b){if(null==a.container){a.container=document.createElement("div"),a.container.id="preloadjs-container";var c=a.container.style;c.visibility="hidden",c.position="absolute",c.width=a.container.style.height="10px",c.overflow="hidden",c.transform=c.msTransform=c.webkitTransform=c.oTransform="translate(-10px, -10px)",a.getBody().appendChild(a.container)}a.container.appendChild(b)},a.getHead=function(){return document.head||document.getElementsByTagName("head")[0]},a.getBody=function(){return document.body||document.getElementsByTagName("body")[0]},a.removeChild=function(a){a.parent&&a.parent.removeChild(a)},a.isImageTag=function(a){return a instanceof HTMLImageElement},a.isAudioTag=function(a){return window.HTMLAudioElement?a instanceof HTMLAudioElement:!1},a.isVideoTag=function(a){return window.HTMLVideoElement?a instanceof HTMLVideoElement:!1},createjs.DomUtils=a}(),function(){var a={};a.parseXML=function(a){var b=null;try{if(window.DOMParser){var c=new DOMParser;b=c.parseFromString(a,"text/xml")}}catch(d){}if(!b)try{b=new ActiveXObject("Microsoft.XMLDOM"),b.async=!1,b.loadXML(a)}catch(d){b=null}return b},a.parseJSON=function(a){if(null==a)return null;try{return JSON.parse(a)}catch(b){throw b}},createjs.DataUtils=a}(),this.createjs=this.createjs||{},function(){var a={};a.BINARY="binary",a.CSS="css",a.FONT="font",a.FONTCSS="fontcss",a.IMAGE="image",a.JAVASCRIPT="javascript",a.JSON="json",a.JSONP="jsonp",a.MANIFEST="manifest",a.SOUND="sound",a.VIDEO="video",a.SPRITESHEET="spritesheet",a.SVG="svg",a.TEXT="text",a.XML="xml",createjs.Types=a}(),this.createjs=this.createjs||{},function(){var a={};a.POST="POST",a.GET="GET",createjs.Methods=a}(),this.createjs=this.createjs||{},function(){"use strict";function a(){this.src=null,this.type=null,this.id=null,this.maintainOrder=!1,this.callback=null,this.data=null,this.method=createjs.Methods.GET,this.values=null,this.headers=null,this.withCredentials=!1,this.mimeType=null,this.crossOrigin=null,this.loadTimeout=c.LOAD_TIMEOUT_DEFAULT}var b=a.prototype={},c=a;c.LOAD_TIMEOUT_DEFAULT=8e3,c.create=function(b){if("string"==typeof b){var d=new a;return d.src=b,d}if(b instanceof c)return b;if(b instanceof Object&&b.src)return null==b.loadTimeout&&(b.loadTimeout=c.LOAD_TIMEOUT_DEFAULT),b;throw new Error("Type not recognized.")},b.set=function(a){for(var b in a)this[b]=a[b];return this},createjs.LoadItem=c}(),function(){var a={};a.isBinary=function(a){switch(a){case createjs.Types.IMAGE:case createjs.Types.BINARY:return!0;default:return!1}},a.isText=function(a){switch(a){case createjs.Types.TEXT:case createjs.Types.JSON:case createjs.Types.MANIFEST:case createjs.Types.XML:case createjs.Types.CSS:case createjs.Types.SVG:case createjs.Types.JAVASCRIPT:case createjs.Types.SPRITESHEET:return!0;default:return!1}},a.getTypeByExtension=function(a){if(null==a)return createjs.Types.TEXT;switch(a.toLowerCase()){case"jpeg":case"jpg":case"gif":case"png":case"webp":case"bmp":return createjs.Types.IMAGE;case"ogg":case"mp3":case"webm":return createjs.Types.SOUND;case"mp4":case"webm":case"ts":return createjs.Types.VIDEO;case"json":return createjs.Types.JSON;case"xml":return createjs.Types.XML;case"css":return createjs.Types.CSS;case"js":return createjs.Types.JAVASCRIPT;case"svg":return createjs.Types.SVG;default:return createjs.Types.TEXT}},createjs.RequestUtils=a}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b,c){this.EventDispatcher_constructor(),this.loaded=!1,this.canceled=!1,this.progress=0,this.type=c,this.resultFormatter=null,a?this._item=createjs.LoadItem.create(a):this._item=null,this._preferXHR=b,this._result=null,this._rawResult=null,this._loadedItems=null,this._tagSrcAttribute=null,this._tag=null}var b=createjs.extend(a,createjs.EventDispatcher),c=a;try{Object.defineProperties(c,{POST:{get:createjs.deprecate(function(){return createjs.Methods.POST},"AbstractLoader.POST")},GET:{get:createjs.deprecate(function(){return createjs.Methods.GET},"AbstractLoader.GET")},BINARY:{get:createjs.deprecate(function(){return createjs.Types.BINARY},"AbstractLoader.BINARY")},CSS:{get:createjs.deprecate(function(){return createjs.Types.CSS},"AbstractLoader.CSS")},FONT:{get:createjs.deprecate(function(){return createjs.Types.FONT},"AbstractLoader.FONT")},FONTCSS:{get:createjs.deprecate(function(){return createjs.Types.FONTCSS},"AbstractLoader.FONTCSS")},IMAGE:{get:createjs.deprecate(function(){return createjs.Types.IMAGE},"AbstractLoader.IMAGE")},JAVASCRIPT:{get:createjs.deprecate(function(){return createjs.Types.JAVASCRIPT},"AbstractLoader.JAVASCRIPT")},JSON:{get:createjs.deprecate(function(){return createjs.Types.JSON},"AbstractLoader.JSON")},JSONP:{get:createjs.deprecate(function(){return createjs.Types.JSONP},"AbstractLoader.JSONP")},MANIFEST:{get:createjs.deprecate(function(){return createjs.Types.MANIFEST},"AbstractLoader.MANIFEST")},SOUND:{get:createjs.deprecate(function(){return createjs.Types.SOUND},"AbstractLoader.SOUND")},VIDEO:{get:createjs.deprecate(function(){return createjs.Types.VIDEO},"AbstractLoader.VIDEO")},SPRITESHEET:{get:createjs.deprecate(function(){return createjs.Types.SPRITESHEET},"AbstractLoader.SPRITESHEET")},SVG:{get:createjs.deprecate(function(){return createjs.Types.SVG},"AbstractLoader.SVG")},TEXT:{get:createjs.deprecate(function(){return createjs.Types.TEXT},"AbstractLoader.TEXT")},XML:{get:createjs.deprecate(function(){return createjs.Types.XML},"AbstractLoader.XML")}})}catch(d){}b.getItem=function(){return this._item},b.getResult=function(a){return a?this._rawResult:this._result},b.getTag=function(){return this._tag},b.setTag=function(a){this._tag=a},b.load=function(){this._createRequest(),this._request.on("complete",this,this),this._request.on("progress",this,this),this._request.on("loadStart",this,this),this._request.on("abort",this,this),this._request.on("timeout",this,this),this._request.on("error",this,this);var a=new createjs.Event("initialize");a.loader=this._request,this.dispatchEvent(a),this._request.load()},b.cancel=function(){this.canceled=!0,this.destroy()},b.destroy=function(){this._request&&(this._request.removeAllEventListeners(),this._request.destroy()),this._request=null,this._item=null,this._rawResult=null,this._result=null,this._loadItems=null,this.removeAllEventListeners()},b.getLoadedItems=function(){return this._loadedItems},b._createRequest=function(){this._preferXHR?this._request=new createjs.XHRRequest(this._item):this._request=new createjs.TagRequest(this._item,this._tag||this._createTag(),this._tagSrcAttribute)},b._createTag=function(a){return null},b._sendLoadStart=function(){this._isCanceled()||this.dispatchEvent("loadstart")},b._sendProgress=function(a){if(!this._isCanceled()){var b=null;"number"==typeof a?(this.progress=a,b=new createjs.ProgressEvent(this.progress)):(b=a,this.progress=a.loaded/a.total,b.progress=this.progress,(isNaN(this.progress)||this.progress==1/0)&&(this.progress=0)),this.hasEventListener("progress")&&this.dispatchEvent(b)}},b._sendComplete=function(){if(!this._isCanceled()){this.loaded=!0;var a=new createjs.Event("complete");a.rawResult=this._rawResult,null!=this._result&&(a.result=this._result),this.dispatchEvent(a)}},b._sendError=function(a){!this._isCanceled()&&this.hasEventListener("error")&&(null==a&&(a=new createjs.ErrorEvent("PRELOAD_ERROR_EMPTY")),this.dispatchEvent(a))},b._isCanceled=function(){return null==window.createjs||this.canceled?!0:!1},b.resultFormatter=null,b.handleEvent=function(a){switch(a.type){case"complete":this._rawResult=a.target._response;var b=this.resultFormatter&&this.resultFormatter(this);b instanceof Function?b.call(this,createjs.proxy(this._resultFormatSuccess,this),createjs.proxy(this._resultFormatFailed,this)):(this._result=b||this._rawResult,this._sendComplete());break;case"progress":this._sendProgress(a);break;case"error":this._sendError(a);break;case"loadstart":this._sendLoadStart();break;case"abort":case"timeout":this._isCanceled()||this.dispatchEvent(new createjs.ErrorEvent("PRELOAD_"+a.type.toUpperCase()+"_ERROR"))}},b._resultFormatSuccess=function(a){this._result=a,this._sendComplete()},b._resultFormatFailed=function(a){this._sendError(a)},b.toString=function(){return"[PreloadJS AbstractLoader]"},createjs.AbstractLoader=createjs.promote(a,"EventDispatcher")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b,c){this.AbstractLoader_constructor(a,b,c),this.resultFormatter=this._formatResult,this._tagSrcAttribute="src",this.on("initialize",this._updateXHR,this)}var b=createjs.extend(a,createjs.AbstractLoader);b.load=function(){this._tag||(this._tag=this._createTag(this._item.src)),this._tag.preload="auto",this._tag.load(),this.AbstractLoader_load()},b._createTag=function(){},b._createRequest=function(){this._preferXHR?this._request=new createjs.XHRRequest(this._item):this._request=new createjs.MediaTagRequest(this._item,this._tag||this._createTag(),this._tagSrcAttribute)},b._updateXHR=function(a){a.loader.setResponseType&&a.loader.setResponseType("blob")},b._formatResult=function(a){if(this._tag.removeEventListener&&this._tag.removeEventListener("canplaythrough",this._loadedHandler),this._tag.onstalled=null,this._preferXHR){var b=window.URL||window.webkitURL,c=a.getResult(!0);a.getTag().src=b.createObjectURL(c)}return a.getTag()},createjs.AbstractMediaLoader=createjs.promote(a,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";var a=function(a){this._item=a},b=createjs.extend(a,createjs.EventDispatcher);b.load=function(){},b.destroy=function(){},b.cancel=function(){},createjs.AbstractRequest=createjs.promote(a,"EventDispatcher")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b,c){this.AbstractRequest_constructor(a),this._tag=b,this._tagSrcAttribute=c,this._loadedHandler=createjs.proxy(this._handleTagComplete,this),this._addedToDOM=!1}var b=createjs.extend(a,createjs.AbstractRequest);b.load=function(){this._tag.onload=createjs.proxy(this._handleTagComplete,this),this._tag.onreadystatechange=createjs.proxy(this._handleReadyStateChange,this),this._tag.onerror=createjs.proxy(this._handleError,this);var a=new createjs.Event("initialize");a.loader=this._tag,this.dispatchEvent(a),this._loadTimeout=setTimeout(createjs.proxy(this._handleTimeout,this),this._item.loadTimeout),this._tag[this._tagSrcAttribute]=this._item.src,null==this._tag.parentNode&&(createjs.DomUtils.appendToBody(this._tag),this._addedToDOM=!0)},b.destroy=function(){this._clean(),this._tag=null,this.AbstractRequest_destroy()},b._handleReadyStateChange=function(){clearTimeout(this._loadTimeout);var a=this._tag;("loaded"==a.readyState||"complete"==a.readyState)&&this._handleTagComplete()},b._handleError=function(){this._clean(),this.dispatchEvent("error")},b._handleTagComplete=function(){this._rawResult=this._tag,this._result=this.resultFormatter&&this.resultFormatter(this)||this._rawResult,this._clean(),this.dispatchEvent("complete")},b._handleTimeout=function(){this._clean(),this.dispatchEvent(new createjs.Event("timeout"))},b._clean=function(){this._tag.onload=null,this._tag.onreadystatechange=null,this._tag.onerror=null,this._addedToDOM&&null!=this._tag.parentNode&&this._tag.parentNode.removeChild(this._tag),clearTimeout(this._loadTimeout)},b._handleStalled=function(){},createjs.TagRequest=createjs.promote(a,"AbstractRequest")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b,c){this.AbstractRequest_constructor(a),this._tag=b,this._tagSrcAttribute=c,this._loadedHandler=createjs.proxy(this._handleTagComplete,this)}var b=createjs.extend(a,createjs.TagRequest);b.load=function(){var a=createjs.proxy(this._handleStalled,this);this._stalledCallback=a;var b=createjs.proxy(this._handleProgress,this);this._handleProgress=b,this._tag.addEventListener("stalled",a),this._tag.addEventListener("progress",b),this._tag.addEventListener&&this._tag.addEventListener("canplaythrough",this._loadedHandler,!1),this.TagRequest_load()},b._handleReadyStateChange=function(){clearTimeout(this._loadTimeout);var a=this._tag;("loaded"==a.readyState||"complete"==a.readyState)&&this._handleTagComplete()},b._handleStalled=function(){},b._handleProgress=function(a){if(a&&!(a.loaded>0&&0==a.total)){var b=new createjs.ProgressEvent(a.loaded,a.total);this.dispatchEvent(b)}},b._clean=function(){this._tag.removeEventListener&&this._tag.removeEventListener("canplaythrough",this._loadedHandler),this._tag.removeEventListener("stalled",this._stalledCallback),this._tag.removeEventListener("progress",this._progressCallback),this.TagRequest__clean()},createjs.MediaTagRequest=createjs.promote(a,"TagRequest")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a){this.AbstractRequest_constructor(a),this._request=null,this._loadTimeout=null,this._xhrLevel=1,this._response=null,this._rawResponse=null,this._canceled=!1,this._handleLoadStartProxy=createjs.proxy(this._handleLoadStart,this),this._handleProgressProxy=createjs.proxy(this._handleProgress,this),this._handleAbortProxy=createjs.proxy(this._handleAbort,this),this._handleErrorProxy=createjs.proxy(this._handleError,this),this._handleTimeoutProxy=createjs.proxy(this._handleTimeout,this),this._handleLoadProxy=createjs.proxy(this._handleLoad,this),this._handleReadyStateChangeProxy=createjs.proxy(this._handleReadyStateChange,this),!this._createXHR(a)}var b=createjs.extend(a,createjs.AbstractRequest);a.ACTIVEX_VERSIONS=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.5.0","Msxml2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","Microsoft.XMLHTTP"],b.getResult=function(a){return a&&this._rawResponse?this._rawResponse:this._response},b.cancel=function(){this.canceled=!0,this._clean(),this._request.abort()},b.load=function(){if(null==this._request)return void this._handleError();null!=this._request.addEventListener?(this._request.addEventListener("loadstart",this._handleLoadStartProxy,!1),this._request.addEventListener("progress",this._handleProgressProxy,!1),this._request.addEventListener("abort",this._handleAbortProxy,!1),this._request.addEventListener("error",this._handleErrorProxy,!1),this._request.addEventListener("timeout",this._handleTimeoutProxy,!1),this._request.addEventListener("load",this._handleLoadProxy,!1),this._request.addEventListener("readystatechange",this._handleReadyStateChangeProxy,!1)):(this._request.onloadstart=this._handleLoadStartProxy,this._request.onprogress=this._handleProgressProxy,this._request.onabort=this._handleAbortProxy,this._request.onerror=this._handleErrorProxy,this._request.ontimeout=this._handleTimeoutProxy,this._request.onload=this._handleLoadProxy,this._request.onreadystatechange=this._handleReadyStateChangeProxy),1==this._xhrLevel&&(this._loadTimeout=setTimeout(createjs.proxy(this._handleTimeout,this),this._item.loadTimeout));try{this._item.values?this._request.send(createjs.URLUtils.formatQueryString(this._item.values)):this._request.send()}catch(a){this.dispatchEvent(new createjs.ErrorEvent("XHR_SEND",null,a))}},b.setResponseType=function(a){"blob"===a&&(a=window.URL?"blob":"arraybuffer",this._responseType=a),this._request.responseType=a},b.getAllResponseHeaders=function(){return this._request.getAllResponseHeaders instanceof Function?this._request.getAllResponseHeaders():null},b.getResponseHeader=function(a){return this._request.getResponseHeader instanceof Function?this._request.getResponseHeader(a):null},b._handleProgress=function(a){if(a&&!(a.loaded>0&&0==a.total)){var b=new createjs.ProgressEvent(a.loaded,a.total);this.dispatchEvent(b)}},b._handleLoadStart=function(a){clearTimeout(this._loadTimeout),this.dispatchEvent("loadstart")},b._handleAbort=function(a){this._clean(),this.dispatchEvent(new createjs.ErrorEvent("XHR_ABORTED",null,a))},b._handleError=function(a){this._clean(),this.dispatchEvent(new createjs.ErrorEvent(a.message))},b._handleReadyStateChange=function(a){4==this._request.readyState&&this._handleLoad()},b._handleLoad=function(a){if(!this.loaded){this.loaded=!0;var b=this._checkError();if(b)return void this._handleError(b);if(this._response=this._getResponse(),"arraybuffer"===this._responseType)try{this._response=new Blob([this._response])}catch(c){if(window.BlobBuilder=window.BlobBuilder||window.WebKitBlobBuilder||window.MozBlobBuilder||window.MSBlobBuilder,"TypeError"===c.name&&window.BlobBuilder){var d=new BlobBuilder;d.append(this._response),this._response=d.getBlob()}}this._clean(),this.dispatchEvent(new createjs.Event("complete"))}},b._handleTimeout=function(a){this._clean(),this.dispatchEvent(new createjs.ErrorEvent("PRELOAD_TIMEOUT",null,a))},b._checkError=function(){var a=parseInt(this._request.status);return a>=400&&599>=a?new Error(a):0==a&&/^https?:/.test(location.protocol)?new Error(0):null},b._getResponse=function(){if(null!=this._response)return this._response;if(null!=this._request.response)return this._request.response;try{if(null!=this._request.responseText)return this._request.responseText}catch(a){}try{if(null!=this._request.responseXML)return this._request.responseXML}catch(a){}return null},b._createXHR=function(a){var b=createjs.URLUtils.isCrossDomain(a),c={},d=null;if(window.XMLHttpRequest)d=new XMLHttpRequest,b&&void 0===d.withCredentials&&window.XDomainRequest&&(d=new XDomainRequest);else{for(var e=0,f=s.ACTIVEX_VERSIONS.length;f>e;e++){var g=s.ACTIVEX_VERSIONS[e];try{d=new ActiveXObject(g);break}catch(h){}}if(null==d)return!1}null==a.mimeType&&createjs.RequestUtils.isText(a.type)&&(a.mimeType="text/plain; charset=utf-8"),a.mimeType&&d.overrideMimeType&&d.overrideMimeType(a.mimeType),this._xhrLevel="string"==typeof d.responseType?2:1;var i=null;if(i=a.method==createjs.Methods.GET?createjs.URLUtils.buildURI(a.src,a.values):a.src,d.open(a.method||createjs.Methods.GET,i,!0),b&&d instanceof XMLHttpRequest&&1==this._xhrLevel&&(c.Origin=location.origin),a.values&&a.method==createjs.Methods.POST&&(c["Content-Type"]="application/x-www-form-urlencoded"),b||c["X-Requested-With"]||(c["X-Requested-With"]="XMLHttpRequest"),a.headers)for(var j in a.headers)c[j]=a.headers[j];for(j in c)d.setRequestHeader(j,c[j]);return d instanceof XMLHttpRequest&&void 0!==a.withCredentials&&(d.withCredentials=a.withCredentials),this._request=d,!0},b._clean=function(){clearTimeout(this._loadTimeout),null!=this._request.removeEventListener?(this._request.removeEventListener("loadstart",this._handleLoadStartProxy),this._request.removeEventListener("progress",this._handleProgressProxy),this._request.removeEventListener("abort",this._handleAbortProxy),this._request.removeEventListener("error",this._handleErrorProxy),this._request.removeEventListener("timeout",this._handleTimeoutProxy),this._request.removeEventListener("load",this._handleLoadProxy),this._request.removeEventListener("readystatechange",this._handleReadyStateChangeProxy)):(this._request.onloadstart=null,this._request.onprogress=null,this._request.onabort=null,this._request.onerror=null,this._request.ontimeout=null,this._request.onload=null,this._request.onreadystatechange=null)},b.toString=function(){return"[PreloadJS XHRRequest]"},createjs.XHRRequest=createjs.promote(a,"AbstractRequest")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b,c){this.AbstractLoader_constructor(),this._plugins=[],this._typeCallbacks={},this._extensionCallbacks={},this.next=null,this.maintainScriptOrder=!0,this.stopOnError=!1,this._maxConnections=1,this._availableLoaders=[createjs.FontLoader,createjs.ImageLoader,createjs.JavaScriptLoader,createjs.CSSLoader,createjs.JSONLoader,createjs.JSONPLoader,createjs.SoundLoader,createjs.ManifestLoader,createjs.SpriteSheetLoader,createjs.XMLLoader,createjs.SVGLoader,createjs.BinaryLoader,createjs.VideoLoader,createjs.TextLoader],this._defaultLoaderLength=this._availableLoaders.length,this.init(a,b,c)}var b=createjs.extend(a,createjs.AbstractLoader),c=a;try{Object.defineProperties(c,{POST:{get:createjs.deprecate(function(){return createjs.Methods.POST},"AbstractLoader.POST")},GET:{get:createjs.deprecate(function(){return createjs.Methods.GET},"AbstractLoader.GET")},BINARY:{get:createjs.deprecate(function(){return createjs.Types.BINARY},"AbstractLoader.BINARY")},CSS:{get:createjs.deprecate(function(){return createjs.Types.CSS},"AbstractLoader.CSS")},FONT:{get:createjs.deprecate(function(){return createjs.Types.FONT},"AbstractLoader.FONT")},FONTCSS:{get:createjs.deprecate(function(){return createjs.Types.FONTCSS},"AbstractLoader.FONTCSS")},IMAGE:{get:createjs.deprecate(function(){return createjs.Types.IMAGE},"AbstractLoader.IMAGE")},JAVASCRIPT:{get:createjs.deprecate(function(){return createjs.Types.JAVASCRIPT},"AbstractLoader.JAVASCRIPT")},JSON:{get:createjs.deprecate(function(){return createjs.Types.JSON},"AbstractLoader.JSON")},JSONP:{get:createjs.deprecate(function(){return createjs.Types.JSONP},"AbstractLoader.JSONP")},MANIFEST:{get:createjs.deprecate(function(){return createjs.Types.MANIFEST},"AbstractLoader.MANIFEST")},SOUND:{get:createjs.deprecate(function(){return createjs.Types.SOUND},"AbstractLoader.SOUND")},VIDEO:{get:createjs.deprecate(function(){return createjs.Types.VIDEO},"AbstractLoader.VIDEO")},SPRITESHEET:{get:createjs.deprecate(function(){return createjs.Types.SPRITESHEET},"AbstractLoader.SPRITESHEET")},SVG:{get:createjs.deprecate(function(){return createjs.Types.SVG},"AbstractLoader.SVG")},TEXT:{get:createjs.deprecate(function(){return createjs.Types.TEXT},"AbstractLoader.TEXT")},XML:{get:createjs.deprecate(function(){return createjs.Types.XML},"AbstractLoader.XML")}})}catch(d){}b.init=function(a,b,c){this.preferXHR=!0,this._preferXHR=!0,this.setPreferXHR(a),this._paused=!1,this._basePath=b,this._crossOrigin=c,this._loadStartWasDispatched=!1,this._currentlyLoadingScript=null,this._currentLoads=[],this._loadQueue=[],this._loadQueueBackup=[],this._loadItemsById={},this._loadItemsBySrc={},this._loadedResults={},this._loadedRawResults={},this._numItems=0,this._numItemsLoaded=0,this._scriptOrder=[],this._loadedScripts=[],this._lastProgress=NaN},b.registerLoader=function(a){if(!a||!a.canLoadItem)throw new Error("loader is of an incorrect type.");if(-1!=this._availableLoaders.indexOf(a))throw new Error("loader already exists."); +this._availableLoaders.unshift(a)},b.unregisterLoader=function(a){var b=this._availableLoaders.indexOf(a);-1!=b&&b0)return;var c=!1;if(b){for(;b.length;){var d=b.pop(),e=this.getResult(d);for(f=this._loadQueue.length-1;f>=0;f--)if(g=this._loadQueue[f].getItem(),g.id==d||g.src==d){this._loadQueue.splice(f,1)[0].cancel();break}for(f=this._loadQueueBackup.length-1;f>=0;f--)if(g=this._loadQueueBackup[f].getItem(),g.id==d||g.src==d){this._loadQueueBackup.splice(f,1)[0].cancel();break}if(e)this._disposeItem(this.getItem(d));else for(var f=this._currentLoads.length-1;f>=0;f--){var g=this._currentLoads[f].getItem();if(g.id==d||g.src==d){this._currentLoads.splice(f,1)[0].cancel(),c=!0;break}}}c&&this._loadNext()}else{this.close();for(var h in this._loadItemsById)this._disposeItem(this._loadItemsById[h]);this.init(this.preferXHR,this._basePath)}},b.reset=function(){this.close();for(var a in this._loadItemsById)this._disposeItem(this._loadItemsById[a]);for(var b=[],c=0,d=this._loadQueueBackup.length;d>c;c++)b.push(this._loadQueueBackup[c].getItem());this.loadManifest(b,!1)},b.installPlugin=function(a){if(null!=a&&null!=a.getPreloadHandlers){this._plugins.push(a);var b=a.getPreloadHandlers();if(b.scope=a,null!=b.types)for(var c=0,d=b.types.length;d>c;c++)this._typeCallbacks[b.types[c]]=b;if(null!=b.extensions)for(c=0,d=b.extensions.length;d>c;c++)this._extensionCallbacks[b.extensions[c]]=b}},b.setMaxConnections=function(a){this._maxConnections=a,!this._paused&&this._loadQueue.length>0&&this._loadNext()},b.loadFile=function(a,b,c){if(null==a){var d=new createjs.ErrorEvent("PRELOAD_NO_FILE");return void this._sendError(d)}this._addItem(a,null,c),b!==!1?this.setPaused(!1):this.setPaused(!0)},b.loadManifest=function(a,b,d){var e=null,f=null;if(Array.isArray(a)){if(0==a.length){var g=new createjs.ErrorEvent("PRELOAD_MANIFEST_EMPTY");return void this._sendError(g)}e=a}else if("string"==typeof a)e=[{src:a,type:c.MANIFEST}];else{if("object"!=typeof a){var g=new createjs.ErrorEvent("PRELOAD_MANIFEST_NULL");return void this._sendError(g)}if(void 0!==a.src){if(null==a.type)a.type=c.MANIFEST;else if(a.type!=c.MANIFEST){var g=new createjs.ErrorEvent("PRELOAD_MANIFEST_TYPE");this._sendError(g)}e=[a]}else void 0!==a.manifest&&(e=a.manifest,f=a.path)}for(var h=0,i=e.length;i>h;h++)this._addItem(e[h],f,d);b!==!1?this.setPaused(!1):this.setPaused(!0)},b.load=function(){this.setPaused(!1)},b.getItem=function(a){return this._loadItemsById[a]||this._loadItemsBySrc[a]},b.getResult=function(a,b){var c=this._loadItemsById[a]||this._loadItemsBySrc[a];if(null==c)return null;var d=c.id;return b&&this._loadedRawResults[d]?this._loadedRawResults[d]:this._loadedResults[d]},b.getItems=function(a){var b=[];for(var c in this._loadItemsById){var d=this._loadItemsById[c],e=this.getResult(c);(a!==!0||null!=e)&&b.push({item:d,result:e,rawResult:this.getResult(c,!0)})}return b},b.setPaused=function(a){this._paused=a,this._paused||this._loadNext()},b.close=function(){for(;this._currentLoads.length;)this._currentLoads.pop().cancel();this._scriptOrder.length=0,this._loadedScripts.length=0,this.loadStartWasDispatched=!1,this._itemCount=0,this._lastProgress=NaN},b._addItem=function(a,b,c){var d=this._createLoadItem(a,b,c);if(null!=d){var e=this._createLoader(d);null!=e&&("plugins"in e&&(e.plugins=this._plugins),d._loader=e,this._loadQueue.push(e),this._loadQueueBackup.push(e),this._numItems++,this._updateProgress(),(this.maintainScriptOrder&&d.type==createjs.Types.JAVASCRIPT||d.maintainOrder===!0)&&(this._scriptOrder.push(d),this._loadedScripts.push(null)))}},b._createLoadItem=function(a,b,c){var d=createjs.LoadItem.create(a);if(null==d)return null;var e="",f=c||this._basePath;if(d.src instanceof Object){if(!d.type)return null;if(b){e=b;var g=createjs.URLUtils.parseURI(b);null==f||g.absolute||g.relative||(e=f+e)}else null!=f&&(e=f)}else{var h=createjs.URLUtils.parseURI(d.src);h.extension&&(d.ext=h.extension),null==d.type&&(d.type=createjs.RequestUtils.getTypeByExtension(d.ext));var i=d.src;if(!h.absolute&&!h.relative)if(b){e=b;var g=createjs.URLUtils.parseURI(b);i=b+i,null==f||g.absolute||g.relative||(e=f+e)}else null!=f&&(e=f);d.src=e+d.src}d.path=e,(void 0===d.id||null===d.id||""===d.id)&&(d.id=i);var j=this._typeCallbacks[d.type]||this._extensionCallbacks[d.ext];if(j){var k=j.callback.call(j.scope,d,this);if(k===!1)return null;k===!0||null!=k&&(d._loader=k),h=createjs.URLUtils.parseURI(d.src),null!=h.extension&&(d.ext=h.extension)}return this._loadItemsById[d.id]=d,this._loadItemsBySrc[d.src]=d,null==d.crossOrigin&&(d.crossOrigin=this._crossOrigin),d},b._createLoader=function(a){if(null!=a._loader)return a._loader;for(var b=this.preferXHR,c=0;c=this._maxConnections);a++){var b=this._loadQueue[a];this._canStartLoad(b)&&(this._loadQueue.splice(a,1),a--,this._loadItem(b))}}},b._loadItem=function(a){a.on("fileload",this._handleFileLoad,this),a.on("progress",this._handleProgress,this),a.on("complete",this._handleFileComplete,this),a.on("error",this._handleError,this),a.on("fileerror",this._handleFileError,this),this._currentLoads.push(a),this._sendFileStart(a.getItem()),a.load()},b._handleFileLoad=function(a){a.target=null,this.dispatchEvent(a)},b._handleFileError=function(a){var b=new createjs.ErrorEvent("FILE_LOAD_ERROR",null,a.item);this._sendError(b)},b._handleError=function(a){var b=a.target;this._numItemsLoaded++,this._finishOrderedItem(b,!0),this._updateProgress();var c=new createjs.ErrorEvent("FILE_LOAD_ERROR",null,b.getItem());this._sendError(c),this.stopOnError?this.setPaused(!0):(this._removeLoadItem(b),this._cleanLoadItem(b),this._loadNext())},b._handleFileComplete=function(a){var b=a.target,c=b.getItem(),d=b.getResult();this._loadedResults[c.id]=d;var e=b.getResult(!0);null!=e&&e!==d&&(this._loadedRawResults[c.id]=e),this._saveLoadedItems(b),this._removeLoadItem(b),this._finishOrderedItem(b)||this._processFinishedLoad(c,b),this._cleanLoadItem(b)},b._saveLoadedItems=function(a){var b=a.getLoadedItems();if(null!==b)for(var c=0;cb;b++){var c=this._loadedScripts[b];if(null===c)break;if(c!==!0){var d=this._loadedResults[c.id];c.type==createjs.Types.JAVASCRIPT&&createjs.DomUtils.appendToHead(d);var e=c._loader;this._processFinishedLoad(c,e),this._loadedScripts[b]=!0}}},b._processFinishedLoad=function(a,b){if(this._numItemsLoaded++,!this.maintainScriptOrder&&a.type==createjs.Types.JAVASCRIPT){var c=b.getTag();createjs.DomUtils.appendToHead(c)}this._updateProgress(),this._sendFileComplete(a,b),this._loadNext()},b._canStartLoad=function(a){if(!this.maintainScriptOrder||a.preferXHR)return!0;var b=a.getItem();if(b.type!=createjs.Types.JAVASCRIPT)return!0;if(this._currentlyLoadingScript)return!1;for(var c=this._scriptOrder.indexOf(b),d=0;c>d;){var e=this._loadedScripts[d];if(null==e)return!1;d++}return this._currentlyLoadingScript=!0,!0},b._removeLoadItem=function(a){for(var b=this._currentLoads.length,c=0;b>c;c++)if(this._currentLoads[c]==a){this._currentLoads.splice(c,1);break}},b._cleanLoadItem=function(a){var b=a.getItem();b&&delete b._loader},b._handleProgress=function(a){var b=a.target;this._sendFileProgress(b.getItem(),b.progress),this._updateProgress()},b._updateProgress=function(){var a=this._numItemsLoaded/this._numItems,b=this._numItems-this._numItemsLoaded;if(b>0){for(var c=0,d=0,e=this._currentLoads.length;e>d;d++)c+=this._currentLoads[d].progress;a+=c/b*(b/this._numItems)}this._lastProgress!=a&&(this._sendProgress(a),this._lastProgress=a)},b._disposeItem=function(a){delete this._loadedResults[a.id],delete this._loadedRawResults[a.id],delete this._loadItemsById[a.id],delete this._loadItemsBySrc[a.src]},b._sendFileProgress=function(a,b){if(!this._isCanceled()&&!this._paused&&this.hasEventListener("fileprogress")){var c=new createjs.Event("fileprogress");c.progress=b,c.loaded=b,c.total=1,c.item=a,this.dispatchEvent(c)}},b._sendFileComplete=function(a,b){if(!this._isCanceled()&&!this._paused){var c=new createjs.Event("fileload");c.loader=b,c.item=a,c.result=this._loadedResults[a.id],c.rawResult=this._loadedRawResults[a.id],a.completeHandler&&a.completeHandler(c),this.hasEventListener("fileload")&&this.dispatchEvent(c)}},b._sendFileStart=function(a){var b=new createjs.Event("filestart");b.item=a,this.hasEventListener("filestart")&&this.dispatchEvent(b)},b.toString=function(){return"[PreloadJS LoadQueue]"},createjs.LoadQueue=createjs.promote(a,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a){this.AbstractLoader_constructor(a,!0,createjs.Types.TEXT)}var b=(createjs.extend(a,createjs.AbstractLoader),a);b.canLoadItem=function(a){return a.type==createjs.Types.TEXT},createjs.TextLoader=createjs.promote(a,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a){this.AbstractLoader_constructor(a,!0,createjs.Types.BINARY),this.on("initialize",this._updateXHR,this)}var b=createjs.extend(a,createjs.AbstractLoader),c=a;c.canLoadItem=function(a){return a.type==createjs.Types.BINARY},b._updateXHR=function(a){a.loader.setResponseType("arraybuffer")},createjs.BinaryLoader=createjs.promote(a,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b){this.AbstractLoader_constructor(a,b,createjs.Types.CSS),this.resultFormatter=this._formatResult,this._tagSrcAttribute="href",b?this._tag=createjs.Elements.style():this._tag=createjs.Elements.link(),this._tag.rel="stylesheet",this._tag.type="text/css"}var b=createjs.extend(a,createjs.AbstractLoader),c=a;c.canLoadItem=function(a){return a.type==createjs.Types.CSS},b._formatResult=function(a){if(this._preferXHR){var b=a.getTag();if(b.styleSheet)b.styleSheet.cssText=a.getResult(!0);else{var c=createjs.Elements.text(a.getResult(!0));b.appendChild(c)}}else b=this._tag;return createjs.DomUtils.appendToHead(b),b},createjs.CSSLoader=createjs.promote(a,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b){this.AbstractLoader_constructor(a,b,a.type),this._faces={},this._watched=[],this._count=0,this._watchInterval=null,this._loadTimeout=null,this._injectCSS=void 0===a.injectCSS?!0:a.injectCSS,this.dispatchEvent("initialize")}var b=createjs.extend(a,createjs.AbstractLoader);a.canLoadItem=function(a){return a.type==createjs.Types.FONT||a.type==createjs.Types.FONTCSS},a.sampleText="abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ",a._ctx=document.createElement("canvas").getContext("2d"),a._referenceFonts=["serif","monospace"],a.WEIGHT_REGEX=/[- ._]*(thin|normal|book|regular|medium|black|heavy|[1-9]00|(?:extra|ultra|semi|demi)?[- ._]*(?:light|bold))[- ._]*/gi,a.STYLE_REGEX=/[- ._]*(italic|oblique)[- ._]*/gi,a.FONT_FORMAT={woff2:"woff2",woff:"woff",ttf:"truetype",otf:"truetype"},a.FONT_WEIGHT={thin:100,extralight:200,ultralight:200,light:300,semilight:300,demilight:300,book:"normal",regular:"normal",semibold:600,demibold:600,extrabold:800,ultrabold:800,black:900,heavy:900},a.WATCH_DURATION=10,b.load=function(){if(this.type==createjs.Types.FONTCSS){var a=this._watchCSS();if(!a)return void this.AbstractLoader_load()}else if(this._item.src instanceof Array)this._watchFontArray();else{var b=this._defFromSrc(this._item.src);this._watchFont(b),this._injectStyleTag(this._cssFromDef(b))}this._loadTimeout=setTimeout(createjs.proxy(this._handleTimeout,this),this._item.loadTimeout),this.dispatchEvent("loadstart")},b._handleTimeout=function(){this._stopWatching(),this.dispatchEvent(new createjs.ErrorEvent("PRELOAD_TIMEOUT"))},b._createRequest=function(){return this._request},b.handleEvent=function(a){switch(a.type){case"complete":this._rawResult=a.target._response,this._result=!0,this._parseCSS(this._rawResult);break;case"error":this._stopWatching(),this.AbstractLoader_handleEvent(a)}},b._watchCSS=function(){var a=this._item.src;return a instanceof HTMLStyleElement&&(this._injectCSS&&!a.parentNode&&(document.head||document.getElementsByTagName("head")[0]).appendChild(a),this._injectCSS=!1,a="\n"+a.textContent),-1!==a.search(/\n|\r|@font-face/i)?(this._parseCSS(a),!0):(this._request=new createjs.XHRRequest(this._item),!1)},b._parseCSS=function(a){for(var b=/@font-face\s*\{([^}]+)}/g;;){var c=b.exec(a);if(!c)break;this._watchFont(this._parseFontFace(c[1]))}this._injectStyleTag(a)},b._watchFontArray=function(){for(var a,b=this._item.src,c="",d=b.length-1;d>=0;d--){var e=b[d];a="string"==typeof e?this._defFromSrc(e):this._defFromObj(e),this._watchFont(a),c+=this._cssFromDef(a)+"\n"}this._injectStyleTag(c)},b._injectStyleTag=function(a){if(this._injectCSS){var b=document.head||document.getElementsByTagName("head")[0],c=document.createElement("style");c.type="text/css",c.styleSheet?c.styleSheet.cssText=a:c.appendChild(document.createTextNode(a)),b.appendChild(c)}},b._parseFontFace=function(a){var b=this._getCSSValue(a,"font-family"),c=this._getCSSValue(a,"src");return b&&c?this._defFromObj({family:b,src:c,style:this._getCSSValue(a,"font-style"),weight:this._getCSSValue(a,"font-weight")}):null},b._watchFont=function(a){a&&!this._faces[a.id]&&(this._faces[a.id]=a,this._watched.push(a),this._count++,this._calculateReferenceSizes(a),this._startWatching())},b._startWatching=function(){null==this._watchInterval&&(this._watchInterval=setInterval(createjs.proxy(this._watch,this),a.WATCH_DURATION))},b._stopWatching=function(){clearInterval(this._watchInterval),clearTimeout(this._loadTimeout),this._watchInterval=null},b._watch=function(){for(var b=this._watched,c=a._referenceFonts,d=b.length,e=d-1;e>=0;e--)for(var f=b[e],g=f.refs,h=g.length-1;h>=0;h--){var i=this._getTextWidth(f.family+","+c[h],f.weight,f.style);if(i!=g[h]){var j=new createjs.Event("fileload");f.type="font-family",j.item=f,this.dispatchEvent(j),b.splice(e,1);break}}if(d!==b.length){var j=new createjs.ProgressEvent(this._count-b.length,this._count);this.dispatchEvent(j)}0===d&&(this._stopWatching(),this._sendComplete())},b._calculateReferenceSizes=function(b){for(var c=a._referenceFonts,d=b.refs=[],e=0;ec;c++)b.installPlugin(this.plugins[c]);b.loadManifest(a)}else this._sendComplete()},b._handleManifestFileLoad=function(a){a.target=null,this.dispatchEvent(a)},b._handleManifestComplete=function(a){this._loadedItems=this._manifestQueue.getItems(!0),this._sendComplete()},b._handleManifestProgress=function(a){this.progress=a.progress*(1-c.MANIFEST_PROGRESS)+c.MANIFEST_PROGRESS,this._sendProgress(this.progress)},b._handleManifestError=function(a){var b=new createjs.Event("fileerror");b.item=a.data,this.dispatchEvent(b)},createjs.ManifestLoader=createjs.promote(a,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b){this.AbstractMediaLoader_constructor(a,b,createjs.Types.SOUND),createjs.DomUtils.isAudioTag(a)?this._tag=a:createjs.DomUtils.isAudioTag(a.src)?this._tag=a:createjs.DomUtils.isAudioTag(a.tag)&&(this._tag=createjs.DomUtils.isAudioTag(a)?a:a.src),null!=this._tag&&(this._preferXHR=!1)}var b=createjs.extend(a,createjs.AbstractMediaLoader),c=a;c.canLoadItem=function(a){return a.type==createjs.Types.SOUND},b._createTag=function(a){var b=createjs.Elements.audio();return b.autoplay=!1,b.preload="none",b.src=a,b},createjs.SoundLoader=createjs.promote(a,"AbstractMediaLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b){this.AbstractMediaLoader_constructor(a,b,createjs.Types.VIDEO),createjs.DomUtils.isVideoTag(a)||createjs.DomUtils.isVideoTag(a.src)?(this.setTag(createjs.DomUtils.isVideoTag(a)?a:a.src),this._preferXHR=!1):this.setTag(this._createTag())}var b=createjs.extend(a,createjs.AbstractMediaLoader),c=a;b._createTag=function(){return createjs.Elements.video()},c.canLoadItem=function(a){return a.type==createjs.Types.VIDEO},createjs.VideoLoader=createjs.promote(a,"AbstractMediaLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b){this.AbstractLoader_constructor(a,b,createjs.Types.SPRITESHEET),this._manifestQueue=null}var b=createjs.extend(a,createjs.AbstractLoader),c=a;c.SPRITESHEET_PROGRESS=.25,c.canLoadItem=function(a){return a.type==createjs.Types.SPRITESHEET},b.destroy=function(){this.AbstractLoader_destroy(),this._manifestQueue.close()},b._createRequest=function(){var a=this._item.callback;null!=a?this._request=new createjs.JSONPLoader(this._item):this._request=new createjs.JSONLoader(this._item)},b.handleEvent=function(a){switch(a.type){case"complete":return this._rawResult=a.target.getResult(!0),this._result=a.target.getResult(),this._sendProgress(c.SPRITESHEET_PROGRESS),void this._loadManifest(this._result);case"progress":return a.loaded*=c.SPRITESHEET_PROGRESS,this.progress=a.loaded/a.total,(isNaN(this.progress)||this.progress==1/0)&&(this.progress=0),void this._sendProgress(a)}this.AbstractLoader_handleEvent(a)},b._loadManifest=function(a){if(a&&a.images){var b=this._manifestQueue=new createjs.LoadQueue(this._preferXHR,this._item.path,this._item.crossOrigin);b.on("complete",this._handleManifestComplete,this,!0),b.on("fileload",this._handleManifestFileLoad,this),b.on("progress",this._handleManifestProgress,this),b.on("error",this._handleManifestError,this,!0),b.loadManifest(a.images)}},b._handleManifestFileLoad=function(a){var b=a.result;if(null!=b){var c=this.getResult().images,d=c.indexOf(a.item.src);c[d]=b}},b._handleManifestComplete=function(a){this._result=new createjs.SpriteSheet(this._result),this._loadedItems=this._manifestQueue.getItems(!0),this._sendComplete()},b._handleManifestProgress=function(a){this.progress=a.progress*(1-c.SPRITESHEET_PROGRESS)+c.SPRITESHEET_PROGRESS,this._sendProgress(this.progress)},b._handleManifestError=function(a){var b=new createjs.Event("fileerror");b.item=a.data,this.dispatchEvent(b)},createjs.SpriteSheetLoader=createjs.promote(a,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b){this.AbstractLoader_constructor(a,b,createjs.Types.SVG),this.resultFormatter=this._formatResult,this._tagSrcAttribute="data",b?this.setTag(createjs.Elements.svg()):(this.setTag(createjs.Elements.object()),this.getTag().type="image/svg+xml")}var b=createjs.extend(a,createjs.AbstractLoader),c=a;c.canLoadItem=function(a){return a.type==createjs.Types.SVG},b._formatResult=function(a){var b=createjs.DataUtils.parseXML(a.getResult(!0)),c=a.getTag();if(!this._preferXHR&&document.body.contains(c)&&document.body.removeChild(c),null!=b.documentElement){var d=b.documentElement;return document.importNode&&(d=document.importNode(d,!0)),c.appendChild(d),c}return b},createjs.SVGLoader=createjs.promote(a,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a){this.AbstractLoader_constructor(a,!0,createjs.Types.XML),this.resultFormatter=this._formatResult}var b=createjs.extend(a,createjs.AbstractLoader),c=a;c.canLoadItem=function(a){return a.type==createjs.Types.XML},b._formatResult=function(a){return createjs.DataUtils.parseXML(a.getResult(!0))},createjs.XMLLoader=createjs.promote(a,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){var a=createjs.SoundJS=createjs.SoundJS||{};a.version="1.0.0",a.buildDate="Thu, 12 Oct 2017 16:34:05 GMT"}(),this.createjs=this.createjs||{},function(){"use strict";function a(){throw"BrowserDetect cannot be instantiated"}var b=a.agent=window.navigator.userAgent;a.isWindowPhone=b.indexOf("IEMobile")>-1||b.indexOf("Windows Phone")>-1,a.isFirefox=b.indexOf("Firefox")>-1,a.isOpera=null!=window.opera,a.isChrome=b.indexOf("Chrome")>-1,a.isIOS=(b.indexOf("iPod")>-1||b.indexOf("iPhone")>-1||b.indexOf("iPad")>-1)&&!a.isWindowPhone,a.isAndroid=b.indexOf("Android")>-1&&!a.isWindowPhone,a.isBlackberry=b.indexOf("Blackberry")>-1,createjs.BrowserDetect=a}(),this.createjs=this.createjs||{},function(){"use strict";var a=function(){this.interrupt=null,this.delay=null,this.offset=null,this.loop=null,this.volume=null,this.pan=null,this.startTime=null,this.duration=null},b=a.prototype={},c=a;c.create=function(a){if("string"==typeof a)return console&&(console.warn||console.log)("Deprecated behaviour. Sound.play takes a configuration object instead of individual arguments. See docs for info."),(new createjs.PlayPropsConfig).set({interrupt:a});if(null==a||a instanceof c||a instanceof Object)return(new createjs.PlayPropsConfig).set(a);if(null==a)throw new Error("PlayProps configuration not recognized.")},b.set=function(a){if(null!=a)for(var b in a)this[b]=a[b];return this},b.toString=function(){return"[PlayPropsConfig]"},createjs.PlayPropsConfig=c}(),this.createjs=this.createjs||{},function(){"use strict";function a(){throw"Sound cannot be instantiated"}function b(a,b){this.init(a,b)}var c=a;c.INTERRUPT_ANY="any",c.INTERRUPT_EARLY="early",c.INTERRUPT_LATE="late",c.INTERRUPT_NONE="none",c.PLAY_INITED="playInited",c.PLAY_SUCCEEDED="playSucceeded",c.PLAY_INTERRUPTED="playInterrupted",c.PLAY_FINISHED="playFinished",c.PLAY_FAILED="playFailed",c.SUPPORTED_EXTENSIONS=["mp3","ogg","opus","mpeg","wav","m4a","mp4","aiff","wma","mid"],c.EXTENSION_MAP={m4a:"mp4"},c.FILE_PATTERN=/^(?:(\w+:)\/{2}(\w+(?:\.\w+)*\/?))?([\/.]*?(?:[^?]+)?\/)?((?:[^\/?]+)\.(\w+))(?:\?(\S+)?)?$/,c.defaultInterruptBehavior=c.INTERRUPT_NONE,c.alternateExtensions=[],c.activePlugin=null,c._masterVolume=1,c._getMasterVolume=function(){return this._masterVolume},c.getVolume=createjs.deprecate(c._getMasterVolume,"Sound.getVolume"),c._setMasterVolume=function(a){if(null!=Number(a)&&(a=Math.max(0,Math.min(1,a)),c._masterVolume=a,!this.activePlugin||!this.activePlugin.setVolume||!this.activePlugin.setVolume(a)))for(var b=this._instances,d=0,e=b.length;e>d;d++)b[d].setMasterVolume(a)},c.setVolume=createjs.deprecate(c._setMasterVolume,"Sound.setVolume"),c._masterMute=!1,c._getMute=function(){return this._masterMute},c.getMute=createjs.deprecate(c._getMute,"Sound.getMute"),c._setMute=function(a){if(null!=a&&(this._masterMute=a,!this.activePlugin||!this.activePlugin.setMute||!this.activePlugin.setMute(a)))for(var b=this._instances,c=0,d=b.length;d>c;c++)b[c].setMasterMute(a)},c.setMute=createjs.deprecate(c._setMute,"Sound.setMute"),c._getCapabilities=function(){return null==c.activePlugin?null:c.activePlugin._capabilities},c.getCapabilities=createjs.deprecate(c._getCapabilities,"Sound.getCapabilities"),Object.defineProperties(c,{volume:{get:c._getMasterVolume,set:c._setMasterVolume},muted:{get:c._getMute,set:c._setMute},capabilities:{get:c._getCapabilities}}),c._pluginsRegistered=!1,c._lastID=0,c._instances=[],c._idHash={},c._preloadHash={},c._defaultPlayPropsHash={},c.addEventListener=null,c.removeEventListener=null,c.removeAllEventListeners=null,c.dispatchEvent=null,c.hasEventListener=null,c._listeners=null,createjs.EventDispatcher.initialize(c),c.getPreloadHandlers=function(){return{callback:createjs.proxy(c.initLoad,c),types:["sound"],extensions:c.SUPPORTED_EXTENSIONS}},c._handleLoadComplete=function(a){var b=a.target.getItem().src;if(c._preloadHash[b])for(var d=0,e=c._preloadHash[b].length;e>d;d++){var f=c._preloadHash[b][d];if(c._preloadHash[b][d]=!0,c.hasEventListener("fileload")){var a=new createjs.Event("fileload");a.src=f.src,a.id=f.id,a.data=f.data,a.sprite=f.sprite,c.dispatchEvent(a)}}},c._handleLoadError=function(a){var b=a.target.getItem().src;if(c._preloadHash[b])for(var d=0,e=c._preloadHash[b].length;e>d;d++){var f=c._preloadHash[b][d];if(c._preloadHash[b][d]=!1,c.hasEventListener("fileerror")){var a=new createjs.Event("fileerror");a.src=f.src,a.id=f.id,a.data=f.data,a.sprite=f.sprite,c.dispatchEvent(a)}}},c._registerPlugin=function(a){return a.isSupported()?(c.activePlugin=new a,!0):!1},c.registerPlugins=function(a){c._pluginsRegistered=!0;for(var b=0,d=a.length;d>b;b++)if(c._registerPlugin(a[b]))return!0;return!1},c.initializeDefaultPlugins=function(){return null!=c.activePlugin?!0:c._pluginsRegistered?!1:c.registerPlugins([createjs.WebAudioPlugin,createjs.HTMLAudioPlugin])?!0:!1},c.isReady=function(){return null!=c.activePlugin},c.initLoad=function(a){return"video"==a.type?!0:c._registerSound(a)},c._registerSound=function(a){if(!c.initializeDefaultPlugins())return!1;var d;if(a.src instanceof Object?(d=c._parseSrc(a.src), +d.src=a.path+d.src):d=c._parsePath(a.src),null==d)return!1;a.src=d.src,a.type="sound";var e=a.data,f=null;if(null!=e&&(isNaN(e.channels)?isNaN(e)||(f=parseInt(e)):f=parseInt(e.channels),e.audioSprite))for(var g,h=e.audioSprite.length;h--;)g=e.audioSprite[h],c._idHash[g.id]={src:a.src,startTime:parseInt(g.startTime),duration:parseInt(g.duration)},g.defaultPlayProps&&(c._defaultPlayPropsHash[g.id]=createjs.PlayPropsConfig.create(g.defaultPlayProps));null!=a.id&&(c._idHash[a.id]={src:a.src});var i=c.activePlugin.register(a);return b.create(a.src,f),null!=e&&isNaN(e)?a.data.channels=f||b.maxPerChannel():a.data=f||b.maxPerChannel(),i.type&&(a.type=i.type),a.defaultPlayProps&&(c._defaultPlayPropsHash[a.src]=createjs.PlayPropsConfig.create(a.defaultPlayProps)),i},c.registerSound=function(a,b,d,e,f){var g={src:a,id:b,data:d,defaultPlayProps:f};a instanceof Object&&a.src&&(e=b,g=a),g=createjs.LoadItem.create(g),g.path=e,null==e||g.src instanceof Object||(g.src=e+g.src);var h=c._registerSound(g);if(!h)return!1;if(c._preloadHash[g.src]||(c._preloadHash[g.src]=[]),c._preloadHash[g.src].push(g),1==c._preloadHash[g.src].length)h.on("complete",this._handleLoadComplete,this),h.on("error",this._handleLoadError,this),c.activePlugin.preload(h);else if(1==c._preloadHash[g.src][0])return!0;return g},c.registerSounds=function(a,b){var c=[];a.path&&(b?b+=a.path:b=a.path,a=a.manifest);for(var d=0,e=a.length;e>d;d++)c[d]=createjs.Sound.registerSound(a[d].src,a[d].id,a[d].data,b,a[d].defaultPlayProps);return c},c.removeSound=function(a,d){if(null==c.activePlugin)return!1;a instanceof Object&&a.src&&(a=a.src);var e;if(a instanceof Object?e=c._parseSrc(a):(a=c._getSrcById(a).src,e=c._parsePath(a)),null==e)return!1;a=e.src,null!=d&&(a=d+a);for(var f in c._idHash)c._idHash[f].src==a&&delete c._idHash[f];return b.removeSrc(a),delete c._preloadHash[a],c.activePlugin.removeSound(a),!0},c.removeSounds=function(a,b){var c=[];a.path&&(b?b+=a.path:b=a.path,a=a.manifest);for(var d=0,e=a.length;e>d;d++)c[d]=createjs.Sound.removeSound(a[d].src,b);return c},c.removeAllSounds=function(){c._idHash={},c._preloadHash={},b.removeAll(),c.activePlugin&&c.activePlugin.removeAllSounds()},c.loadComplete=function(a){if(!c.isReady())return!1;var b=c._parsePath(a);return a=b?c._getSrcById(b.src).src:c._getSrcById(a).src,void 0==c._preloadHash[a]?!1:1==c._preloadHash[a][0]},c._parsePath=function(a){"string"!=typeof a&&(a=a.toString());var b=a.match(c.FILE_PATTERN);if(null==b)return!1;for(var d=b[4],e=b[5],f=c.capabilities,g=0;!f[e];)if(e=c.alternateExtensions[g++],g>c.alternateExtensions.length)return null;a=a.replace("."+b[5],"."+e);var h={name:d,src:a,extension:e};return h},c._parseSrc=function(a){var b={name:void 0,src:void 0,extension:void 0},d=c.capabilities;for(var e in a)if(a.hasOwnProperty(e)&&d[e]){b.src=a[e],b.extension=e;break}if(!b.src)return!1;var f=b.src.lastIndexOf("/");return-1!=f?b.name=b.src.slice(f+1):b.name=b.src,b},c.play=function(a,b){var d=createjs.PlayPropsConfig.create(b),e=c.createInstance(a,d.startTime,d.duration),f=c._playInstance(e,d);return f||e._playFailed(),e},c.createInstance=function(a,d,e){if(!c.initializeDefaultPlugins())return new createjs.DefaultSoundInstance(a,d,e);var f=c._defaultPlayPropsHash[a];a=c._getSrcById(a);var g=c._parsePath(a.src),h=null;return null!=g&&null!=g.src?(b.create(g.src),null==d&&(d=a.startTime),h=c.activePlugin.create(g.src,d,e||a.duration),f=f||c._defaultPlayPropsHash[g.src],f&&h.applyPlayProps(f)):h=new createjs.DefaultSoundInstance(a,d,e),h.uniqueId=c._lastID++,h},c.stop=function(){for(var a=this._instances,b=a.length;b--;)a[b].stop()},c.setDefaultPlayProps=function(a,b){a=c._getSrcById(a),c._defaultPlayPropsHash[c._parsePath(a.src).src]=createjs.PlayPropsConfig.create(b)},c.getDefaultPlayProps=function(a){return a=c._getSrcById(a),c._defaultPlayPropsHash[c._parsePath(a.src).src]},c._playInstance=function(a,b){var d=c._defaultPlayPropsHash[a.src]||{};if(null==b.interrupt&&(b.interrupt=d.interrupt||c.defaultInterruptBehavior),null==b.delay&&(b.delay=d.delay||0),null==b.offset&&(b.offset=a.position),null==b.loop&&(b.loop=a.loop),null==b.volume&&(b.volume=a.volume),null==b.pan&&(b.pan=a.pan),0==b.delay){var e=c._beginPlaying(a,b);if(!e)return!1}else{var f=setTimeout(function(){c._beginPlaying(a,b)},b.delay);a.delayTimeoutId=f}return this._instances.push(a),!0},c._beginPlaying=function(a,c){if(!b.add(a,c.interrupt))return!1;var d=a._beginPlaying(c);if(!d){var e=createjs.indexOf(this._instances,a);return e>-1&&this._instances.splice(e,1),!1}return!0},c._getSrcById=function(a){return c._idHash[a]||{src:a}},c._playFinished=function(a){b.remove(a);var c=createjs.indexOf(this._instances,a);c>-1&&this._instances.splice(c,1)},createjs.Sound=a,b.channels={},b.create=function(a,c){var d=b.get(a);return null==d?(b.channels[a]=new b(a,c),!0):!1},b.removeSrc=function(a){var c=b.get(a);return null==c?!1:(c._removeAll(),delete b.channels[a],!0)},b.removeAll=function(){for(var a in b.channels)b.channels[a]._removeAll();b.channels={}},b.add=function(a,c){var d=b.get(a.src);return null==d?!1:d._add(a,c)},b.remove=function(a){var c=b.get(a.src);return null==c?!1:(c._remove(a),!0)},b.maxPerChannel=function(){return d.maxDefault},b.get=function(a){return b.channels[a]};var d=b.prototype;d.constructor=b,d.src=null,d.max=null,d.maxDefault=100,d.length=0,d.init=function(a,b){this.src=a,this.max=b||this.maxDefault,-1==this.max&&(this.max=this.maxDefault),this._instances=[]},d._get=function(a){return this._instances[a]},d._add=function(a,b){return this._getSlot(b,a)?(this._instances.push(a),this.length++,!0):!1},d._remove=function(a){var b=createjs.indexOf(this._instances,a);return-1==b?!1:(this._instances.splice(b,1),this.length--,!0)},d._removeAll=function(){for(var a=this.length-1;a>=0;a--)this._instances[a].stop()},d._getSlot=function(b,c){var d,e;if(b!=a.INTERRUPT_NONE&&(e=this._get(0),null==e))return!0;for(var f=0,g=this.max;g>f;f++){if(d=this._get(f),null==d)return!0;if(d.playState==a.PLAY_FINISHED||d.playState==a.PLAY_INTERRUPTED||d.playState==a.PLAY_FAILED){e=d;break}b!=a.INTERRUPT_NONE&&(b==a.INTERRUPT_EARLY&&d.positione.position)&&(e=d)}return null!=e?(e._interrupt(),this._remove(e),!0):!1},d.toString=function(){return"[Sound SoundChannel]"}}(),this.createjs=this.createjs||{},function(){"use strict";var a=function(a,b,c,d){this.EventDispatcher_constructor(),this.src=a,this.uniqueId=-1,this.playState=null,this.delayTimeoutId=null,this._volume=1,Object.defineProperty(this,"volume",{get:this._getVolume,set:this._setVolume}),this.getVolume=createjs.deprecate(this._getVolume,"AbstractSoundInstance.getVolume"),this.setVolume=createjs.deprecate(this._setVolume,"AbstractSoundInstance.setVolume"),this._pan=0,Object.defineProperty(this,"pan",{get:this._getPan,set:this._setPan}),this.getPan=createjs.deprecate(this._getPan,"AbstractSoundInstance.getPan"),this.setPan=createjs.deprecate(this._setPan,"AbstractSoundInstance.setPan"),this._startTime=Math.max(0,b||0),Object.defineProperty(this,"startTime",{get:this._getStartTime,set:this._setStartTime}),this.getStartTime=createjs.deprecate(this._getStartTime,"AbstractSoundInstance.getStartTime"),this.setStartTime=createjs.deprecate(this._setStartTime,"AbstractSoundInstance.setStartTime"),this._duration=Math.max(0,c||0),Object.defineProperty(this,"duration",{get:this._getDuration,set:this._setDuration}),this.getDuration=createjs.deprecate(this._getDuration,"AbstractSoundInstance.getDuration"),this.setDuration=createjs.deprecate(this._setDuration,"AbstractSoundInstance.setDuration"),this._playbackResource=null,Object.defineProperty(this,"playbackResource",{get:this._getPlaybackResource,set:this._setPlaybackResource}),d!==!1&&d!==!0&&this._setPlaybackResource(d),this.getPlaybackResource=createjs.deprecate(this._getPlaybackResource,"AbstractSoundInstance.getPlaybackResource"),this.setPlaybackResource=createjs.deprecate(this._setPlaybackResource,"AbstractSoundInstance.setPlaybackResource"),this._position=0,Object.defineProperty(this,"position",{get:this._getPosition,set:this._setPosition}),this.getPosition=createjs.deprecate(this._getPosition,"AbstractSoundInstance.getPosition"),this.setPosition=createjs.deprecate(this._setPosition,"AbstractSoundInstance.setPosition"),this._loop=0,Object.defineProperty(this,"loop",{get:this._getLoop,set:this._setLoop}),this.getLoop=createjs.deprecate(this._getLoop,"AbstractSoundInstance.getLoop"),this.setLoop=createjs.deprecate(this._setLoop,"AbstractSoundInstance.setLoop"),this._muted=!1,Object.defineProperty(this,"muted",{get:this._getMuted,set:this._setMuted}),this.getMuted=createjs.deprecate(this._getMuted,"AbstractSoundInstance.getMuted"),this.setMuted=createjs.deprecate(this._setMuted,"AbstractSoundInstance.setMuted"),this._paused=!1,Object.defineProperty(this,"paused",{get:this._getPaused,set:this._setPaused}),this.getPaused=createjs.deprecate(this._getPaused,"AbstractSoundInstance.getPaused"),this.setPaused=createjs.deprecate(this._setPaused,"AbstractSoundInstance.setPaused")},b=createjs.extend(a,createjs.EventDispatcher);b.play=function(a){var b=createjs.PlayPropsConfig.create(a);return this.playState==createjs.Sound.PLAY_SUCCEEDED?(this.applyPlayProps(b),void(this._paused&&this._setPaused(!1))):(this._cleanUp(),createjs.Sound._playInstance(this,b),this)},b.stop=function(){return this._position=0,this._paused=!1,this._handleStop(),this._cleanUp(),this.playState=createjs.Sound.PLAY_FINISHED,this},b.destroy=function(){this._cleanUp(),this.src=null,this.playbackResource=null,this.removeAllEventListeners()},b.applyPlayProps=function(a){return null!=a.offset&&this._setPosition(a.offset),null!=a.loop&&this._setLoop(a.loop),null!=a.volume&&this._setVolume(a.volume),null!=a.pan&&this._setPan(a.pan),null!=a.startTime&&(this._setStartTime(a.startTime),this._setDuration(a.duration)),this},b.toString=function(){return"[AbstractSoundInstance]"},b._getPaused=function(){return this._paused},b._setPaused=function(a){return a!==!0&&a!==!1||this._paused==a||1==a&&this.playState!=createjs.Sound.PLAY_SUCCEEDED?void 0:(this._paused=a,a?this._pause():this._resume(),clearTimeout(this.delayTimeoutId),this)},b._setVolume=function(a){return a==this._volume?this:(this._volume=Math.max(0,Math.min(1,a)),this._muted||this._updateVolume(),this)},b._getVolume=function(){return this._volume},b._setMuted=function(a){return a===!0||a===!1?(this._muted=a,this._updateVolume(),this):void 0},b._getMuted=function(){return this._muted},b._setPan=function(a){return a==this._pan?this:(this._pan=Math.max(-1,Math.min(1,a)),this._updatePan(),this)},b._getPan=function(){return this._pan},b._getPosition=function(){return this._paused||this.playState!=createjs.Sound.PLAY_SUCCEEDED||(this._position=this._calculateCurrentPosition()),this._position},b._setPosition=function(a){return this._position=Math.max(0,a),this.playState==createjs.Sound.PLAY_SUCCEEDED&&this._updatePosition(),this},b._getStartTime=function(){return this._startTime},b._setStartTime=function(a){return a==this._startTime?this:(this._startTime=Math.max(0,a||0),this._updateStartTime(),this)},b._getDuration=function(){return this._duration},b._setDuration=function(a){return a==this._duration?this:(this._duration=Math.max(0,a||0),this._updateDuration(),this)},b._setPlaybackResource=function(a){return this._playbackResource=a,0==this._duration&&this._playbackResource&&this._setDurationFromSource(),this},b._getPlaybackResource=function(){return this._playbackResource},b._getLoop=function(){return this._loop},b._setLoop=function(a){null!=this._playbackResource&&(0!=this._loop&&0==a?this._removeLooping(a):0==this._loop&&0!=a&&this._addLooping(a)),this._loop=a},b._sendEvent=function(a){var b=new createjs.Event(a);this.dispatchEvent(b)},b._cleanUp=function(){clearTimeout(this.delayTimeoutId),this._handleCleanUp(),this._paused=!1,createjs.Sound._playFinished(this)},b._interrupt=function(){this._cleanUp(),this.playState=createjs.Sound.PLAY_INTERRUPTED,this._sendEvent("interrupted")},b._beginPlaying=function(a){return this._setPosition(a.offset),this._setLoop(a.loop),this._setVolume(a.volume),this._setPan(a.pan),null!=a.startTime&&(this._setStartTime(a.startTime),this._setDuration(a.duration)),null!=this._playbackResource&&this._positionc;c++){var e=this._soundInstances[b][c];e.playbackResource=this._audioSources[b],this._soundInstances[b]=null}},b._handlePreloadError=function(a){},b._updateVolume=function(){},createjs.AbstractPlugin=a}(),this.createjs=this.createjs||{},function(){"use strict";function a(a){this.AbstractLoader_constructor(a,!0,createjs.Types.SOUND)}var b=createjs.extend(a,createjs.AbstractLoader);a.context=null,b.toString=function(){return"[WebAudioLoader]"},b._createRequest=function(){this._request=new createjs.XHRRequest(this._item,!1),this._request.setResponseType("arraybuffer")},b._sendComplete=function(b){a.context.decodeAudioData(this._rawResult,createjs.proxy(this._handleAudioDecoded,this),createjs.proxy(this._sendError,this))},b._handleAudioDecoded=function(a){this._result=a,this.AbstractLoader__sendComplete()},createjs.WebAudioLoader=createjs.promote(a,"AbstractLoader")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b,d,e){this.AbstractSoundInstance_constructor(a,b,d,e),this.gainNode=c.context.createGain(),this.panNode=c.context.createPanner(),this.panNode.panningModel=c._panningModel,this.panNode.connect(this.gainNode),this._updatePan(),this.sourceNode=null,this._soundCompleteTimeout=null,this._sourceNodeNext=null,this._playbackStartTime=0,this._endedHandler=createjs.proxy(this._handleSoundComplete,this)}var b=createjs.extend(a,createjs.AbstractSoundInstance),c=a;c.context=null,c._scratchBuffer=null,c.destinationNode=null,c._panningModel="equalpower",b.destroy=function(){this.AbstractSoundInstance_destroy(),this.panNode.disconnect(0),this.panNode=null,this.gainNode.disconnect(0),this.gainNode=null},b.toString=function(){return"[WebAudioSoundInstance]"},b._updatePan=function(){this.panNode.setPosition(this._pan,0,-.5)},b._removeLooping=function(a){this._sourceNodeNext=this._cleanUpAudioNode(this._sourceNodeNext)},b._addLooping=function(a){this.playState==createjs.Sound.PLAY_SUCCEEDED&&(this._sourceNodeNext=this._createAndPlayAudioNode(this._playbackStartTime,0))},b._setDurationFromSource=function(){this._duration=1e3*this.playbackResource.duration},b._handleCleanUp=function(){this.sourceNode&&this.playState==createjs.Sound.PLAY_SUCCEEDED&&(this.sourceNode=this._cleanUpAudioNode(this.sourceNode),this._sourceNodeNext=this._cleanUpAudioNode(this._sourceNodeNext)),0!=this.gainNode.numberOfOutputs&&this.gainNode.disconnect(0),clearTimeout(this._soundCompleteTimeout),this._playbackStartTime=0},b._cleanUpAudioNode=function(a){if(a){if(a.stop(0),a.disconnect(0),createjs.BrowserDetect.isIOS)try{a.buffer=c._scratchBuffer}catch(b){}a=null}return a},b._handleSoundReady=function(a){this.gainNode.connect(c.destinationNode);var b=.001*this._duration,d=Math.min(.001*Math.max(0,this._position),b);this.sourceNode=this._createAndPlayAudioNode(c.context.currentTime-b,d),this._playbackStartTime=this.sourceNode.startTime-d,this._soundCompleteTimeout=setTimeout(this._endedHandler,1e3*(b-d)),0!=this._loop&&(this._sourceNodeNext=this._createAndPlayAudioNode(this._playbackStartTime,0))},b._createAndPlayAudioNode=function(a,b){var d=c.context.createBufferSource();d.buffer=this.playbackResource,d.connect(this.panNode);var e=.001*this._duration;return d.startTime=a+e,d.start(d.startTime,b+.001*this._startTime,e-b),d},b._pause=function(){this._position=1e3*(c.context.currentTime-this._playbackStartTime),this.sourceNode=this._cleanUpAudioNode(this.sourceNode),this._sourceNodeNext=this._cleanUpAudioNode(this._sourceNodeNext),0!=this.gainNode.numberOfOutputs&&this.gainNode.disconnect(0),clearTimeout(this._soundCompleteTimeout)},b._resume=function(){this._handleSoundReady()},b._updateVolume=function(){var a=this._muted?0:this._volume;a!=this.gainNode.gain.value&&(this.gainNode.gain.value=a)},b._calculateCurrentPosition=function(){return 1e3*(c.context.currentTime-this._playbackStartTime)},b._updatePosition=function(){this.sourceNode=this._cleanUpAudioNode(this.sourceNode),this._sourceNodeNext=this._cleanUpAudioNode(this._sourceNodeNext),clearTimeout(this._soundCompleteTimeout),this._paused||this._handleSoundReady()},b._handleLoop=function(){this._cleanUpAudioNode(this.sourceNode),this.sourceNode=this._sourceNodeNext,this._playbackStartTime=this.sourceNode.startTime,this._sourceNodeNext=this._createAndPlayAudioNode(this._playbackStartTime,0),this._soundCompleteTimeout=setTimeout(this._endedHandler,this._duration)},b._updateDuration=function(){this.playState==createjs.Sound.PLAY_SUCCEEDED&&(this._pause(),this._resume())},createjs.WebAudioSoundInstance=createjs.promote(a,"AbstractSoundInstance")}(),this.createjs=this.createjs||{},function(){"use strict";function a(){this.AbstractPlugin_constructor(),this._panningModel=c._panningModel,this.context=c.context,this.dynamicsCompressorNode=this.context.createDynamicsCompressor(),this.dynamicsCompressorNode.connect(this.context.destination),this.gainNode=this.context.createGain(),this.gainNode.connect(this.dynamicsCompressorNode),createjs.WebAudioSoundInstance.destinationNode=this.gainNode,this._capabilities=c._capabilities,this._loaderClass=createjs.WebAudioLoader,this._soundInstanceClass=createjs.WebAudioSoundInstance,this._addPropsToClasses()}var b=createjs.extend(a,createjs.AbstractPlugin),c=a;c._capabilities=null,c._panningModel="equalpower",c.context=null,c._scratchBuffer=null,c._unlocked=!1,c.DEFAULT_SAMPLE_RATE=44100,c.isSupported=function(){var a=createjs.BrowserDetect.isIOS||createjs.BrowserDetect.isAndroid||createjs.BrowserDetect.isBlackberry;return"file:"!=location.protocol||a||this._isFileXHRSupported()?(c._generateCapabilities(),null==c.context?!1:!0):!1},c.playEmptySound=function(){if(null!=c.context){var a=c.context.createBufferSource();a.buffer=c._scratchBuffer,a.connect(c.context.destination),a.start(0,0,0)}},c._isFileXHRSupported=function(){var a=!0,b=new XMLHttpRequest;try{b.open("GET","WebAudioPluginTest.fail",!1)}catch(c){return a=!1}b.onerror=function(){a=!1},b.onload=function(){a=404==this.status||200==this.status||0==this.status&&""!=this.response};try{b.send()}catch(c){a=!1}return a},c._generateCapabilities=function(){if(null==c._capabilities){var a=document.createElement("audio");if(null==a.canPlayType)return null;if(null==c.context&&(c.context=c._createAudioContext(),null==c.context))return null;null==c._scratchBuffer&&(c._scratchBuffer=c.context.createBuffer(1,1,22050)),c._compatibilitySetUp(),"ontouchstart"in window&&"running"!=c.context.state&&(c._unlock(),document.addEventListener("mousedown",c._unlock,!0),document.addEventListener("touchstart",c._unlock,!0),document.addEventListener("touchend",c._unlock,!0)),c._capabilities={panning:!0,volume:!0,tracks:-1};for(var b=createjs.Sound.SUPPORTED_EXTENSIONS,d=createjs.Sound.EXTENSION_MAP,e=0,f=b.length;f>e;e++){var g=b[e],h=d[g]||g;c._capabilities[g]="no"!=a.canPlayType("audio/"+g)&&""!=a.canPlayType("audio/"+g)||"no"!=a.canPlayType("audio/"+h)&&""!=a.canPlayType("audio/"+h)}c.context.destination.numberOfChannels<2&&(c._capabilities.panning=!1)}},c._createAudioContext=function(){var a=window.AudioContext||window.webkitAudioContext;if(null==a)return null;var b=new a;if(/(iPhone|iPad)/i.test(navigator.userAgent)&&b.sampleRate!==c.DEFAULT_SAMPLE_RATE){var d=b.createBuffer(1,1,c.DEFAULT_SAMPLE_RATE),e=b.createBufferSource();e.buffer=d,e.connect(b.destination),e.start(0),e.disconnect(),b.close(),b=new a}return b},c._compatibilitySetUp=function(){if(c._panningModel="equalpower",!c.context.createGain){c.context.createGain=c.context.createGainNode;var a=c.context.createBufferSource();a.__proto__.start=a.__proto__.noteGrainOn,a.__proto__.stop=a.__proto__.noteOff,c._panningModel=0}},c._unlock=function(){c._unlocked||(c.playEmptySound(),"running"==c.context.state&&(document.removeEventListener("mousedown",c._unlock,!0),document.removeEventListener("touchend",c._unlock,!0),document.removeEventListener("touchstart",c._unlock,!0),c._unlocked=!0))},b.toString=function(){return"[WebAudioPlugin]"},b._addPropsToClasses=function(){var a=this._soundInstanceClass;a.context=this.context,a._scratchBuffer=c._scratchBuffer,a.destinationNode=this.gainNode,a._panningModel=this._panningModel,this._loaderClass.context=this.context},b._updateVolume=function(){var a=createjs.Sound._masterMute?0:this._volume;a!=this.gainNode.gain.value&&(this.gainNode.gain.value=a)},createjs.WebAudioPlugin=createjs.promote(a,"AbstractPlugin")}(),this.createjs=this.createjs||{},function(){"use strict";function a(){throw"HTMLAudioTagPool cannot be instantiated"}function b(a){this._tags=[]}var c=a;c._tags={},c._tagPool=new b,c._tagUsed={},c.get=function(a){var b=c._tags[a];return null==b?(b=c._tags[a]=c._tagPool.get(),b.src=a):c._tagUsed[a]?(b=c._tagPool.get(),b.src=a):c._tagUsed[a]=!0,b},c.set=function(a,b){b==c._tags[a]?c._tagUsed[a]=!1:c._tagPool.set(b)},c.remove=function(a){var b=c._tags[a];return null==b?!1:(c._tagPool.set(b),delete c._tags[a],delete c._tagUsed[a],!0)},c.getDuration=function(a){var b=c._tags[a];return null!=b&&b.duration?1e3*b.duration:0},createjs.HTMLAudioTagPool=a;var d=b.prototype;d.constructor=b,d.get=function(){var a;return a=0==this._tags.length?this._createTag():this._tags.pop(),null==a.parentNode&&document.body.appendChild(a),a},d.set=function(a){var b=createjs.indexOf(this._tags,a);-1==b&&(this._tags.src=null,this._tags.push(a))},d.toString=function(){return"[TagPool]"},d._createTag=function(){var a=document.createElement("audio");return a.autoplay=!1,a.preload="none",a}}(),this.createjs=this.createjs||{},function(){"use strict";function a(a,b,c,d){this.AbstractSoundInstance_constructor(a,b,c,d),this._audioSpriteStopTime=null,this._delayTimeoutId=null,this._endedHandler=createjs.proxy(this._handleSoundComplete,this),this._readyHandler=createjs.proxy(this._handleTagReady,this),this._stalledHandler=createjs.proxy(this._playFailed,this),this._audioSpriteEndHandler=createjs.proxy(this._handleAudioSpriteLoop,this),this._loopHandler=createjs.proxy(this._handleSoundComplete,this),c?this._audioSpriteStopTime=.001*(b+c):this._duration=createjs.HTMLAudioTagPool.getDuration(this.src)}var b=createjs.extend(a,createjs.AbstractSoundInstance);b.setMasterVolume=function(a){this._updateVolume()},b.setMasterMute=function(a){this._updateVolume()},b.toString=function(){return"[HTMLAudioSoundInstance]"},b._removeLooping=function(){null!=this._playbackResource&&(this._playbackResource.loop=!1,this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1))},b._addLooping=function(){null==this._playbackResource||this._audioSpriteStopTime||(this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1),this._playbackResource.loop=!0)},b._handleCleanUp=function(){var a=this._playbackResource;if(null!=a){a.pause(),a.loop=!1,a.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_ENDED,this._endedHandler,!1),a.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_READY,this._readyHandler,!1),a.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_STALLED,this._stalledHandler,!1),a.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1),a.removeEventListener(createjs.HTMLAudioPlugin._TIME_UPDATE,this._audioSpriteEndHandler,!1);try{a.currentTime=this._startTime}catch(b){}createjs.HTMLAudioTagPool.set(this.src,a),this._playbackResource=null}},b._beginPlaying=function(a){return this._playbackResource=createjs.HTMLAudioTagPool.get(this.src),this.AbstractSoundInstance__beginPlaying(a)},b._handleSoundReady=function(a){if(4!==this._playbackResource.readyState){var b=this._playbackResource;return b.addEventListener(createjs.HTMLAudioPlugin._AUDIO_READY,this._readyHandler,!1),b.addEventListener(createjs.HTMLAudioPlugin._AUDIO_STALLED,this._stalledHandler,!1),b.preload="auto",void b.load()}this._updateVolume(),this._playbackResource.currentTime=.001*(this._startTime+this._position),this._audioSpriteStopTime?this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._TIME_UPDATE,this._audioSpriteEndHandler,!1):(this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_ENDED,this._endedHandler,!1),0!=this._loop&&(this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1),this._playbackResource.loop=!0)),this._playbackResource.play()},b._handleTagReady=function(a){this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_READY,this._readyHandler,!1),this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_STALLED,this._stalledHandler,!1),this._handleSoundReady()},b._pause=function(){this._playbackResource.pause()},b._resume=function(){this._playbackResource.play()},b._updateVolume=function(){if(null!=this._playbackResource){var a=this._muted||createjs.Sound._masterMute?0:this._volume*createjs.Sound._masterVolume;a!=this._playbackResource.volume&&(this._playbackResource.volume=a)}},b._calculateCurrentPosition=function(){return 1e3*this._playbackResource.currentTime-this._startTime},b._updatePosition=function(){this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1),this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._handleSetPositionSeek,!1);try{this._playbackResource.currentTime=.001*(this._position+this._startTime)}catch(a){this._handleSetPositionSeek(null)}},b._handleSetPositionSeek=function(a){null!=this._playbackResource&&(this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._handleSetPositionSeek,!1),this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1))},b._handleAudioSpriteLoop=function(a){this._playbackResource.currentTime<=this._audioSpriteStopTime||(this._playbackResource.pause(),0==this._loop?this._handleSoundComplete(null):(this._position=0,this._loop--,this._playbackResource.currentTime=.001*this._startTime,this._paused||this._playbackResource.play(),this._sendEvent("loop")))},b._handleLoop=function(a){0==this._loop&&(this._playbackResource.loop=!1,this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED,this._loopHandler,!1))},b._updateStartTime=function(){this._audioSpriteStopTime=.001*(this._startTime+this._duration),this.playState==createjs.Sound.PLAY_SUCCEEDED&&(this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_ENDED,this._endedHandler,!1),this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._TIME_UPDATE,this._audioSpriteEndHandler,!1))},b._updateDuration=function(){this._audioSpriteStopTime=.001*(this._startTime+this._duration),this.playState==createjs.Sound.PLAY_SUCCEEDED&&(this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_ENDED,this._endedHandler,!1),this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._TIME_UPDATE,this._audioSpriteEndHandler,!1))},b._setDurationFromSource=function(){this._duration=createjs.HTMLAudioTagPool.getDuration(this.src),this._playbackResource=null},createjs.HTMLAudioSoundInstance=createjs.promote(a,"AbstractSoundInstance")}(),this.createjs=this.createjs||{},function(){"use strict";function a(){this.AbstractPlugin_constructor(),this._capabilities=c._capabilities,this._loaderClass=createjs.SoundLoader,this._soundInstanceClass=createjs.HTMLAudioSoundInstance}var b=createjs.extend(a,createjs.AbstractPlugin),c=a;c.MAX_INSTANCES=30,c._AUDIO_READY="canplaythrough",c._AUDIO_ENDED="ended",c._AUDIO_SEEKED="seeked",c._AUDIO_STALLED="stalled",c._TIME_UPDATE="timeupdate",c._capabilities=null,c.isSupported=function(){return c._generateCapabilities(),null!=c._capabilities},c._generateCapabilities=function(){if(null==c._capabilities){var a=document.createElement("audio");if(null==a.canPlayType)return null;c._capabilities={panning:!1,volume:!0,tracks:-1};for(var b=createjs.Sound.SUPPORTED_EXTENSIONS,d=createjs.Sound.EXTENSION_MAP,e=0,f=b.length;f>e;e++){var g=b[e],h=d[g]||g;c._capabilities[g]="no"!=a.canPlayType("audio/"+g)&&""!=a.canPlayType("audio/"+g)||"no"!=a.canPlayType("audio/"+h)&&""!=a.canPlayType("audio/"+h)}}},b.register=function(a){var b=createjs.HTMLAudioTagPool.get(a.src),c=this.AbstractPlugin_register(a);return c.setTag(b),c},b.removeSound=function(a){this.AbstractPlugin_removeSound(a),createjs.HTMLAudioTagPool.remove(a)},b.create=function(a,b,c){var d=this.AbstractPlugin_create(a,b,c);return d.playbackResource=null,d},b.toString=function(){return"[HTMLAudioPlugin]"},b.setVolume=b.getVolume=b.setMute=null,createjs.HTMLAudioPlugin=createjs.promote(a,"AbstractPlugin")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a){this.EventDispatcher_constructor(),this.ignoreGlobalPause=!1,this.loop=0,this.useTicks=!1,this.reversed=!1,this.bounce=!1,this.timeScale=1,this.duration=0,this.position=0,this.rawPosition=-1,this._paused=!0,this._next=null, +this._prev=null,this._parent=null,this._labels=null,this._labelList=null,a&&(this.useTicks=!!a.useTicks,this.ignoreGlobalPause=!!a.ignoreGlobalPause,this.loop=a.loop===!0?-1:a.loop||0,this.reversed=!!a.reversed,this.bounce=!!a.bounce,this.timeScale=a.timeScale||1,a.onChange&&this.addEventListener("change",a.onChange),a.onComplete&&this.addEventListener("complete",a.onComplete))}var b=createjs.extend(a,createjs.EventDispatcher);b._setPaused=function(a){return createjs.Tween._register(this,a),this},b.setPaused=createjs.deprecate(b._setPaused,"AbstractTween.setPaused"),b._getPaused=function(){return this._paused},b.getPaused=createjs.deprecate(b._getPaused,"AbstactTween.getPaused"),b._getCurrentLabel=function(a){var b=this.getLabels();null==a&&(a=this.position);for(var c=0,d=b.length;d>c&&!(aa&&(a=0),0===e){if(j=!0,-1!==g)return j}else{if(h=a/e|0,i=a-h*e,j=-1!==f&&a>=f*e+e,j&&(a=(i=e)*(h=f)+e),a===g)return j;var k=!this.reversed!=!(this.bounce&&h%2);k&&(i=e-i)}this.position=i,this.rawPosition=a,this._updatePosition(c,j),j&&(this.paused=!0),d&&d(this),b||this._runActions(g,a,c,!c&&-1===g),this.dispatchEvent("change"),j&&this.dispatchEvent("complete")},b.calculatePosition=function(a){var b=this.duration,c=this.loop,d=0,e=0;if(0===b)return 0;-1!==c&&a>=c*b+b?(e=b,d=c):0>a?e=0:(d=a/b|0,e=a-d*b);var f=!this.reversed!=!(this.bounce&&d%2);return f?b-e:e},b.getLabels=function(){var a=this._labelList;if(!a){a=this._labelList=[];var b=this._labels;for(var c in b)a.push({label:c,position:b[c]});a.sort(function(a,b){return a.position-b.position})}return a},b.setLabels=function(a){this._labels=a,this._labelList=null},b.addLabel=function(a,b){this._labels||(this._labels={}),this._labels[a]=b;var c=this._labelList;if(c){for(var d=0,e=c.length;e>d&&!(bl&&(h=i,f=l),e>l&&(g=i,e=l)),c)return this._runActionsRange(h,h,c,d);if(e!==f||g!==h||c||d){-1===e&&(e=g=0);var m=b>=a,n=e;do{var o=!j!=!(k&&n%2),p=n===e?g:m?0:i,q=n===f?h:m?i:0;if(o&&(p=i-p,q=i-q),k&&n!==e&&p===q);else if(this._runActionsRange(p,q,c,d||n!==e&&!k))return!0;d=!1}while(m&&++n<=f||!m&&--n>=f)}}},b._runActionsRange=function(a,b,c,d){},createjs.AbstractTween=createjs.promote(a,"EventDispatcher")}(),this.createjs=this.createjs||{},function(){"use strict";function a(c,d){this.AbstractTween_constructor(d),this.pluginData=null,this.target=c,this.passive=!1,this._stepHead=new b(null,0,0,{},null,!0),this._stepTail=this._stepHead,this._stepPosition=0,this._actionHead=null,this._actionTail=null,this._plugins=null,this._pluginIds=null,this._injected=null,d&&(this.pluginData=d.pluginData,d.override&&a.removeTweens(c)),this.pluginData||(this.pluginData={}),this._init(d)}function b(a,b,c,d,e,f){this.next=null,this.prev=a,this.t=b,this.d=c,this.props=d,this.ease=e,this.passive=f,this.index=a?a.index+1:0}function c(a,b,c,d,e){this.next=null,this.prev=a,this.t=b,this.d=0,this.scope=c,this.funct=d,this.params=e}var d=createjs.extend(a,createjs.AbstractTween);a.IGNORE={},a._tweens=[],a._plugins=null,a._tweenHead=null,a._tweenTail=null,a.get=function(b,c){return new a(b,c)},a.tick=function(b,c){for(var d=a._tweenHead;d;){var e=d._next;c&&!d.ignoreGlobalPause||d._paused||d.advance(d.useTicks?1:b),d=e}},a.handleEvent=function(a){"tick"===a.type&&this.tick(a.delta,a.paused)},a.removeTweens=function(b){if(b.tweenjs_count){for(var c=a._tweenHead;c;){var d=c._next;c.target===b&&a._register(c,!0),c=d}b.tweenjs_count=0}},a.removeAllTweens=function(){for(var b=a._tweenHead;b;){var c=b._next;b._paused=!0,b.target&&(b.target.tweenjs_count=0),b._next=b._prev=null,b=c}a._tweenHead=a._tweenTail=null},a.hasActiveTweens=function(b){return b?!!b.tweenjs_count:!!a._tweenHead},a._installPlugin=function(b){for(var c=b.priority=b.priority||0,d=a._plugins=a._plugins||[],e=0,f=d.length;f>e&&!(c0&&this._addStep(+a,this._stepTail.props,null,b),this},d.to=function(a,b,c){(null==b||0>b)&&(b=0);var d=this._addStep(+b,null,c);return this._appendProps(a,d),this},d.label=function(a){return this.addLabel(a,this.duration),this},d.call=function(a,b,c){return this._addAction(c||this.target,a,b||[this])},d.set=function(a,b){return this._addAction(b||this.target,this._set,[a])},d.play=function(a){return this._addAction(a||this,this._set,[{paused:!1}])},d.pause=function(a){return this._addAction(a||this,this._set,[{paused:!0}])},d.w=d.wait,d.t=d.to,d.c=d.call,d.s=d.set,d.toString=function(){return"[Tween]"},d.clone=function(){throw"Tween can not be cloned."},d._addPlugin=function(a){var b=this._pluginIds||(this._pluginIds={}),c=a.ID;if(c&&!b[c]){b[c]=!0;for(var d=this._plugins||(this._plugins=[]),e=a.priority||0,f=0,g=d.length;g>f;f++)if(e=1?g:f,k)for(var m=0,n=k.length;n>m;m++){var o=k[m].change(this,b,l,e,c,d);if(o===a.IGNORE)continue a;void 0!==o&&(e=o)}this.target[l]=e}}},d._runActionsRange=function(a,b,c,d){var e=a>b,f=e?this._actionTail:this._actionHead,g=b,h=a;e&&(g=a,h=b);for(var i=this.position;f;){var j=f.t;if((j===b||j>h&&g>j||d&&j===a)&&(f.funct.apply(f.scope,f.params),i!==this.position))return!0;f=e?f.prev:f.next}},d._appendProps=function(b,c,d){var e,f,g,h,i,j=this._stepHead.props,k=this.target,l=a._plugins,m=c.prev,n=m.props,o=c.props||(c.props=this._cloneProps(n)),p={};for(e in b)if(b.hasOwnProperty(e)&&(p[e]=o[e]=b[e],void 0===j[e])){if(h=void 0,l)for(f=l.length-1;f>=0;f--)if(g=l[f].init(this,e,h),void 0!==g&&(h=g),h===a.IGNORE){delete o[e],delete p[e];break}h!==a.IGNORE&&(void 0===h&&(h=k[e]),n[e]=void 0===h?null:h)}for(e in p){g=b[e];for(var q,r=m;(q=r)&&(r=q.prev);)if(r.props!==q.props){if(void 0!==r.props[e])break;r.props[e]=n[e]}}if(d!==!1&&(l=this._plugins))for(f=l.length-1;f>=0;f--)l[f].step(this,c,p);(i=this._injected)&&(this._injected=null,this._appendProps(i,c,!1))},d._injectProp=function(a,b){var c=this._injected||(this._injected={});c[a]=b},d._addStep=function(a,c,d,e){var f=new b(this._stepTail,this.duration,a,c,d,e||!1);return this.duration+=a,this._stepTail=this._stepTail.next=f},d._addAction=function(a,b,d){var e=new c(this._actionTail,this.duration,a,b,d);return this._actionTail?this._actionTail.next=e:this._actionHead=e,this._actionTail=e,this},d._set=function(a){for(var b in a)this[b]=a[b]},d._cloneProps=function(a){var b={};for(var c in a)b[c]=a[c];return b},createjs.Tween=createjs.promote(a,"AbstractTween")}(),this.createjs=this.createjs||{},function(){"use strict";function a(a){var b,c;a instanceof Array||null==a&&arguments.length>1?(b=a,c=arguments[1],a=arguments[2]):a&&(b=a.tweens,c=a.labels),this.AbstractTween_constructor(a),this.tweens=[],b&&this.addTween.apply(this,b),this.setLabels(c),this._init(a)}var b=createjs.extend(a,createjs.AbstractTween);b.addTween=function(a){a._parent&&a._parent.removeTween(a);var b=arguments.length;if(b>1){for(var c=0;b>c;c++)this.addTween(arguments[c]);return arguments[b-1]}if(0===b)return null;this.tweens.push(a),a._parent=this,a.paused=!0;var d=a.duration;return a.loop>0&&(d*=a.loop+1),d>this.duration&&(this.duration=d),this.rawPosition>=0&&a.setPosition(this.rawPosition),a},b.removeTween=function(a){var b=arguments.length;if(b>1){for(var c=!0,d=0;b>d;d++)c=c&&this.removeTween(arguments[d]);return c}if(0===b)return!0;for(var e=this.tweens,d=e.length;d--;)if(e[d]===a)return e.splice(d,1),a._parent=null,a.duration>=this.duration&&this.updateDuration(),!0;return!1},b.updateDuration=function(){this.duration=0;for(var a=0,b=this.tweens.length;b>a;a++){var c=this.tweens[a],d=c.duration;c.loop>0&&(d*=c.loop+1),d>this.duration&&(this.duration=d)}},b.toString=function(){return"[Timeline]"},b.clone=function(){throw"Timeline can not be cloned."},b._updatePosition=function(a,b){for(var c=this.position,d=0,e=this.tweens.length;e>d;d++)this.tweens[d].setPosition(c,!0,a)},b._runActionsRange=function(a,b,c,d){for(var e=this.position,f=0,g=this.tweens.length;g>f;f++)if(this.tweens[f]._runActions(a,b,c,d),e!==this.position)return!0},createjs.Timeline=createjs.promote(a,"AbstractTween")}(),this.createjs=this.createjs||{},function(){"use strict";function a(){throw"Ease cannot be instantiated."}a.linear=function(a){return a},a.none=a.linear,a.get=function(a){return-1>a?a=-1:a>1&&(a=1),function(b){return 0==a?b:0>a?b*(b*-a+1+a):b*((2-b)*a+(1-a))}},a.getPowIn=function(a){return function(b){return Math.pow(b,a)}},a.getPowOut=function(a){return function(b){return 1-Math.pow(1-b,a)}},a.getPowInOut=function(a){return function(b){return(b*=2)<1?.5*Math.pow(b,a):1-.5*Math.abs(Math.pow(2-b,a))}},a.quadIn=a.getPowIn(2),a.quadOut=a.getPowOut(2),a.quadInOut=a.getPowInOut(2),a.cubicIn=a.getPowIn(3),a.cubicOut=a.getPowOut(3),a.cubicInOut=a.getPowInOut(3),a.quartIn=a.getPowIn(4),a.quartOut=a.getPowOut(4),a.quartInOut=a.getPowInOut(4),a.quintIn=a.getPowIn(5),a.quintOut=a.getPowOut(5),a.quintInOut=a.getPowInOut(5),a.sineIn=function(a){return 1-Math.cos(a*Math.PI/2)},a.sineOut=function(a){return Math.sin(a*Math.PI/2)},a.sineInOut=function(a){return-.5*(Math.cos(Math.PI*a)-1)},a.getBackIn=function(a){return function(b){return b*b*((a+1)*b-a)}},a.backIn=a.getBackIn(1.7),a.getBackOut=function(a){return function(b){return--b*b*((a+1)*b+a)+1}},a.backOut=a.getBackOut(1.7),a.getBackInOut=function(a){return a*=1.525,function(b){return(b*=2)<1?.5*(b*b*((a+1)*b-a)):.5*((b-=2)*b*((a+1)*b+a)+2)}},a.backInOut=a.getBackInOut(1.7),a.circIn=function(a){return-(Math.sqrt(1-a*a)-1)},a.circOut=function(a){return Math.sqrt(1- --a*a)},a.circInOut=function(a){return(a*=2)<1?-.5*(Math.sqrt(1-a*a)-1):.5*(Math.sqrt(1-(a-=2)*a)+1)},a.bounceIn=function(b){return 1-a.bounceOut(1-b)},a.bounceOut=function(a){return 1/2.75>a?7.5625*a*a:2/2.75>a?7.5625*(a-=1.5/2.75)*a+.75:2.5/2.75>a?7.5625*(a-=2.25/2.75)*a+.9375:7.5625*(a-=2.625/2.75)*a+.984375},a.bounceInOut=function(b){return.5>b?.5*a.bounceIn(2*b):.5*a.bounceOut(2*b-1)+.5},a.getElasticIn=function(a,b){var c=2*Math.PI;return function(d){if(0==d||1==d)return d;var e=b/c*Math.asin(1/a);return-(a*Math.pow(2,10*(d-=1))*Math.sin((d-e)*c/b))}},a.elasticIn=a.getElasticIn(1,.3),a.getElasticOut=function(a,b){var c=2*Math.PI;return function(d){if(0==d||1==d)return d;var e=b/c*Math.asin(1/a);return a*Math.pow(2,-10*d)*Math.sin((d-e)*c/b)+1}},a.elasticOut=a.getElasticOut(1,.3),a.getElasticInOut=function(a,b){var c=2*Math.PI;return function(d){var e=b/c*Math.asin(1/a);return(d*=2)<1?-.5*(a*Math.pow(2,10*(d-=1))*Math.sin((d-e)*c/b)):a*Math.pow(2,-10*(d-=1))*Math.sin((d-e)*c/b)*.5+1}},a.elasticInOut=a.getElasticInOut(1,.3*1.5),createjs.Ease=a}(),this.createjs=this.createjs||{},function(){"use strict";function a(){throw"MotionGuidePlugin cannot be instantiated."}var b=a;b.priority=0,b.ID="MotionGuide",b.install=function(){return createjs.Tween._installPlugin(a),createjs.Tween.IGNORE},b.init=function(a,c,d){"guide"==c&&a._addPlugin(b)},b.step=function(a,c,d){for(var e in d)if("guide"===e){var f=c.props.guide,g=b._solveGuideData(d.guide,f);f.valid=!g;var h=f.endData;if(a._injectProp("x",h.x),a._injectProp("y",h.y),g||!f.orient)break;var i=void 0===c.prev.props.rotation?a.target.rotation||0:c.prev.props.rotation;if(f.startOffsetRot=i-f.startData.rotation,"fixed"==f.orient)f.endAbsRot=h.rotation+f.startOffsetRot,f.deltaRotation=0;else{var j=void 0===d.rotation?a.target.rotation||0:d.rotation,k=j-f.endData.rotation-f.startOffsetRot,l=k%360;switch(f.endAbsRot=j,f.orient){case"auto":f.deltaRotation=k;break;case"cw":f.deltaRotation=(l+360)%360+360*Math.abs(k/360|0);break;case"ccw":f.deltaRotation=(l-360)%360+-360*Math.abs(k/360|0)}}a._injectProp("rotation",f.endAbsRot)}},b.change=function(a,c,d,e,f,g){var h=c.props.guide;if(h&&c.props!==c.prev.props&&h!==c.prev.props.guide)return"guide"===d&&!h.valid||"x"==d||"y"==d||"rotation"===d&&h.orient?createjs.Tween.IGNORE:void b._ratioToPositionData(f,h,a.target)},b.debug=function(a,c,d){a=a.guide||a;var e=b._findPathProblems(a);if(e&&console.error("MotionGuidePlugin Error found: \n"+e),!c)return e;var f,g=a.path,h=g.length,i=3,j=9;for(c.save(),c.lineCap="round",c.lineJoin="miter",c.beginPath(),c.moveTo(g[0],g[1]),f=2;h>f;f+=4)c.quadraticCurveTo(g[f],g[f+1],g[f+2],g[f+3]);c.strokeStyle="black",c.lineWidth=1.5*i,c.stroke(),c.strokeStyle="white",c.lineWidth=i,c.stroke(),c.closePath();var k=d.length;if(d&&k){var l={},m={};b._solveGuideData(a,l);for(var f=0;k>f;f++)l.orient="fixed",b._ratioToPositionData(d[f],l,m),c.beginPath(),c.moveTo(m.x,m.y),c.lineTo(m.x+Math.cos(.0174533*m.rotation)*j,m.y+Math.sin(.0174533*m.rotation)*j),c.strokeStyle="black",c.lineWidth=1.5*i,c.stroke(),c.strokeStyle="red",c.lineWidth=i,c.stroke(),c.closePath()}return c.restore(),e},b._solveGuideData=function(a,c){var d=void 0;if(d=b.debug(a))return d;var e=c.path=a.path;c.orient=a.orient;c.subLines=[],c.totalLength=0,c.startOffsetRot=0,c.deltaRotation=0,c.startData={ratio:0},c.endData={ratio:1},c.animSpan=1;var f,g,h,i,j,k,l,m,n,o=e.length,p=10,q={};for(f=e[0],g=e[1],l=2;o>l;l+=4){h=e[l],i=e[l+1],j=e[l+2],k=e[l+3];var r={weightings:[],estLength:0,portion:0},s=f,t=g;for(m=1;p>=m;m++){b._getParamsForCurve(f,g,h,i,j,k,m/p,!1,q);var u=q.x-s,v=q.y-t;n=Math.sqrt(u*u+v*v),r.weightings.push(n),r.estLength+=n,s=q.x,t=q.y}for(c.totalLength+=r.estLength,m=0;p>m;m++)n=r.estLength,r.weightings[m]=r.weightings[m]/n;c.subLines.push(r),f=j,g=k}n=c.totalLength;var w=c.subLines.length;for(l=0;w>l;l++)c.subLines[l].portion=c.subLines[l].estLength/n;var x=isNaN(a.start)?0:a.start,y=isNaN(a.end)?1:a.end;b._ratioToPositionData(x,c,c.startData),b._ratioToPositionData(y,c,c.endData),c.startData.ratio=x,c.endData.ratio=y,c.animSpan=c.endData.ratio-c.startData.ratio},b._ratioToPositionData=function(a,c,d){var e,f,g,h,i,j=c.subLines,k=0,l=10,m=a*c.animSpan+c.startData.ratio;for(f=j.length,e=0;f>e;e++){if(h=j[e].portion,k+h>=m){i=e;break}k+=h}void 0===i&&(i=f-1,k-=h);var n=j[i].weightings,o=h;for(f=n.length,e=0;f>e&&(h=n[e]*o,!(k+h>=m));e++)k+=h;i=4*i+2,g=e/l+(m-k)/h*(1/l);var p=c.path;return b._getParamsForCurve(p[i-2],p[i-1],p[i],p[i+1],p[i+2],p[i+3],g,c.orient,d),c.orient&&(a>=.99999&&1.00001>=a&&void 0!==c.endAbsRot?d.rotation=c.endAbsRot:d.rotation+=c.startOffsetRot+a*c.deltaRotation),d},b._getParamsForCurve=function(a,b,c,d,e,f,g,h,i){var j=1-g;i.x=j*j*a+2*j*g*c+g*g*e,i.y=j*j*b+2*j*g*d+g*g*f,h&&(i.rotation=57.2957795*Math.atan2((d-b)*j+(f-d)*g,(c-a)*j+(e-c)*g))},b._findPathProblems=function(a){var b=a.path,c=b&&b.length||0;if(6>c||(c-2)%4){var d=" Cannot parse 'path' array due to invalid number of entries in path. ";return d+="There should be an odd number of points, at least 3 points, and 2 entries per point (x & y). ",d+="See 'CanvasRenderingContext2D.quadraticCurveTo' for details as 'path' models a quadratic bezier.\n\n",d+="Only [ "+c+" ] values found. Expected: "+Math.max(4*Math.ceil((c-2)/4)+2,6)}for(var e=0;c>e;e++)if(isNaN(b[e]))return"All data in path array must be numeric";var f=a.start;if(isNaN(f)&&void 0!==f)return"'start' out of bounds. Expected 0 to 1, got: "+f;var g=a.end;if(isNaN(g)&&void 0!==g)return"'end' out of bounds. Expected 0 to 1, got: "+g;var h=a.orient;return h&&"fixed"!=h&&"auto"!=h&&"cw"!=h&&"ccw"!=h?'Invalid orientation value. Expected ["fixed", "auto", "cw", "ccw", undefined], got: '+h:void 0},createjs.MotionGuidePlugin=a}(),this.createjs=this.createjs||{},function(){"use strict";var a=createjs.TweenJS=createjs.TweenJS||{};a.version="1.0.0",a.buildDate="Thu, 12 Oct 2017 16:34:05 GMT"}(); \ No newline at end of file diff --git a/vex8/patch/cdn/devtodevsdk-v2.js b/vex8/patch/cdn/devtodevsdk-v2.js new file mode 100644 index 000000000..201526d82 --- /dev/null +++ b/vex8/patch/cdn/devtodevsdk-v2.js @@ -0,0 +1,4 @@ +(function(scope){ +function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}!function(e){"object"===("undefined"==typeof exports?"undefined":_typeof(exports))&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).iampakopako=e()}(function(){return function n(i,a,o){function s(t,e){if(!a[t]){if(!i[t]){var r="function"==typeof require&&require;if(!e&&r)return r(t,!0);if(u)return u(t,!0);throw(r=new Error("Cannot find module '"+t+"'")).code="MODULE_NOT_FOUND",r}r=a[t]={exports:{}},i[t][0].call(r.exports,function(e){return s(i[t][1][e]||e)},r,r.exports,n,i,a,o)}return a[t].exports}for(var u="function"==typeof require&&require,e=0;e>>6:(r<65536?t[i++]=224|r>>>12:(t[i++]=240|r>>>18,t[i++]=128|r>>>12&63),t[i++]=128|r>>>6&63),t[i++]=128|63&r);return t},r.buf2binstring=function(e){return c(e,e.length)},r.binstring2buf=function(e){for(var t=new u.Buf8(e.length),r=0,n=t.length;r>10&1023,a[o++]=56320|1023&r)}return c(a,o)},r.utf8border=function(e,t){for(var r=(t=(t=t||e.length)>e.length?e.length:t)-1;0<=r&&128==(192&e[r]);)r--;return!(r<0)&&0!==r&&r+d[e[r]]>t?r:t}},{"./common":1}],3:[function(e,t,r){"use strict";t.exports=function(e,t,r,n){for(var i=65535&e|0,a=e>>>16&65535|0,o=0;0!==r;){for(r-=o=2e3>>1:r>>>1;e[t]=r}return e}();t.exports=function(e,t,r,n){var i=s,a=n+r;e^=-1;for(var o=n;o>>8^i[255&(e^t[o])];return-1^e}},{}],5:[function(e,t,r){"use strict";var s,l=e("../utils/common"),u=e("./trees"),f=e("./adler32"),p=e("./crc32"),n=e("./messages"),d=0,c=4,h=0,g=-2,_=-1,v=4,i=2,y=8,m=9,a=286,o=30,D=19,T=2*a+1,E=15,C=3,I=258,b=I+C+1,A=42,P=113,w=1,k=2,S=3,U=4;function O(e,t){return e.msg=n[t],t}function x(e){return(e<<1)-(4e.avail_out?e.avail_out:r)&&(l.arraySet(e.output,t.pending_buf,t.pending_out,r,e.next_out),e.next_out+=r,t.pending_out+=r,e.total_out+=r,e.avail_out-=r,t.pending-=r,0===t.pending&&(t.pending_out=0))}function V(e,t){u._tr_flush_block(e,0<=e.block_start?e.block_start:-1,e.strstart-e.block_start,t),e.block_start=e.strstart,N(e.strm)}function L(e,t){e.pending_buf[e.pending++]=t}function M(e,t){e.pending_buf[e.pending++]=t>>>8&255,e.pending_buf[e.pending++]=255&t}function B(e,t){var r,n,i=e.max_chain_length,a=e.strstart,o=e.prev_length,s=e.nice_match,u=e.strstart>e.w_size-b?e.strstart-(e.w_size-b):0,d=e.window,c=e.w_mask,l=e.prev,f=e.strstart+I,p=d[a+o-1],h=d[a+o];e.prev_length>=e.good_match&&(i>>=2),s>e.lookahead&&(s=e.lookahead);do{if(d[(r=t)+o]===h&&d[r+o-1]===p&&d[r]===d[a]&&d[++r]===d[a+1]){for(a+=2,r++;d[++a]===d[++r]&&d[++a]===d[++r]&&d[++a]===d[++r]&&d[++a]===d[++r]&&d[++a]===d[++r]&&d[++a]===d[++r]&&d[++a]===d[++r]&&d[++a]===d[++r]&&au&&0!=--i);return o<=e.lookahead?o:e.lookahead}function z(e){var t,r,n,i,a,o,s,u,d,c=e.w_size;do{if(d=e.window_size-e.lookahead-e.strstart,e.strstart>=c+(c-b)){for(l.arraySet(e.window,e.window,c,c,0),e.match_start-=c,e.strstart-=c,e.block_start-=c,t=r=e.hash_size;n=e.head[--t],e.head[t]=c<=n?n-c:0,--r;);for(t=r=c;n=e.prev[--t],e.prev[t]=c<=n?n-c:0,--r;);d+=c}if(0===e.strm.avail_in)break;if(a=e.strm,o=e.window,s=e.strstart+e.lookahead,u=d,d=void 0,d=a.avail_in,r=0===(d=u=C)for(i=e.strstart-e.insert,e.ins_h=e.window[i],e.ins_h=(e.ins_h<=C&&(e.ins_h=(e.ins_h<=C)if(n=u._tr_tally(e,e.strstart-e.match_start,e.match_length-C),e.lookahead-=e.match_length,e.match_length<=e.max_lazy_match&&e.lookahead>=C){for(e.match_length--;e.strstart++,e.ins_h=(e.ins_h<=C&&(e.ins_h=(e.ins_h<=C&&e.match_length<=e.prev_length){for(i=e.strstart+e.lookahead-C,n=u._tr_tally(e,e.strstart-1-e.prev_match,e.prev_length-C),e.lookahead-=e.prev_length-1,e.prev_length-=2;++e.strstart<=i&&(e.ins_h=(e.ins_h<e.pending_buf_size-5&&(r=e.pending_buf_size-5);;){if(e.lookahead<=1){if(z(e),0===e.lookahead&&t===d)return w;if(0===e.lookahead)break}e.strstart+=e.lookahead,e.lookahead=0;var n=e.block_start+r;if((0===e.strstart||e.strstart>=n)&&(e.lookahead=e.strstart-n,e.strstart=n,V(e,!1),0===e.strm.avail_out))return w;if(e.strstart-e.block_start>=e.w_size-b&&(V(e,!1),0===e.strm.avail_out))return w}return e.insert=0,t===c?(V(e,!0),0===e.strm.avail_out?S:U):(e.strstart>e.block_start&&(V(e,!1),e.strm.avail_out),w)}),new j(4,4,8,4,F),new j(4,5,16,8,F),new j(4,6,32,32,F),new j(4,4,16,16,H),new j(8,16,32,32,H),new j(8,16,128,128,H),new j(8,32,128,256,H),new j(32,128,258,1024,H),new j(32,258,258,4096,H)],r.deflateInit=function(e,t){return G(e,t,y,15,8,0)},r.deflateInit2=G,r.deflateReset=K,r.deflateResetKeep=Y,r.deflateSetHeader=function(e,t){return!e||!e.state||2!==e.state.wrap?g:(e.state.gzhead=t,h)},r.deflate=function(e,t){var r,n,i,a;if(!e||!e.state||5>8&255),L(r,r.gzhead.time>>16&255),L(r,r.gzhead.time>>24&255),L(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),L(r,255&r.gzhead.os),r.gzhead.extra&&r.gzhead.extra.length&&(L(r,255&r.gzhead.extra.length),L(r,r.gzhead.extra.length>>8&255)),r.gzhead.hcrc&&(e.adler=p(e.adler,r.pending_buf,r.pending,0)),r.gzindex=0,r.status=69):(L(r,0),L(r,0),L(r,0),L(r,0),L(r,0),L(r,9===r.level?2:2<=r.strategy||r.level<2?4:0),L(r,3),r.status=P)):(a=y+(r.w_bits-8<<4)<<8,a|=(2<=r.strategy||r.level<2?0:r.level<6?1:6===r.level?2:3)<<6,0!==r.strstart&&(a|=32),a+=31-a%31,r.status=P,M(r,a),0!==r.strstart&&(M(r,e.adler>>>16),M(r,65535&e.adler)),e.adler=1)),69===r.status)if(r.gzhead.extra){for(n=r.pending;r.gzindex<(65535&r.gzhead.extra.length)&&(r.pending!==r.pending_buf_size||(r.gzhead.hcrc&&r.pending>n&&(e.adler=p(e.adler,r.pending_buf,r.pending-n,n)),N(e),n=r.pending,r.pending!==r.pending_buf_size));)L(r,255&r.gzhead.extra[r.gzindex]),r.gzindex++;r.gzhead.hcrc&&r.pending>n&&(e.adler=p(e.adler,r.pending_buf,r.pending-n,n)),r.gzindex===r.gzhead.extra.length&&(r.gzindex=0,r.status=73)}else r.status=73;if(73===r.status)if(r.gzhead.name){n=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>n&&(e.adler=p(e.adler,r.pending_buf,r.pending-n,n)),N(e),n=r.pending,r.pending===r.pending_buf_size)){i=1;break}}while(i=r.gzindexn&&(e.adler=p(e.adler,r.pending_buf,r.pending-n,n)),0===i&&(r.gzindex=0,r.status=91)}else r.status=91;if(91===r.status)if(r.gzhead.comment){n=r.pending;do{if(r.pending===r.pending_buf_size&&(r.gzhead.hcrc&&r.pending>n&&(e.adler=p(e.adler,r.pending_buf,r.pending-n,n)),N(e),n=r.pending,r.pending===r.pending_buf_size)){i=1;break}}while(i=r.gzindexn&&(e.adler=p(e.adler,r.pending_buf,r.pending-n,n)),0===i&&(r.status=103)}else r.status=103;if(103===r.status&&(r.gzhead.hcrc?(r.pending+2>r.pending_buf_size&&N(e),r.pending+2<=r.pending_buf_size&&(L(r,255&e.adler),L(r,e.adler>>8&255),e.adler=0,r.status=P)):r.status=P),0!==r.pending){if(N(e),0===e.avail_out)return r.last_flush=-1,h}else if(0===e.avail_in&&x(t)<=x(o)&&t!==c)return O(e,-5);if(666===r.status&&0!==e.avail_in)return O(e,-5);if(0!==e.avail_in||0!==r.lookahead||t!==d&&666!==r.status){var o=2===r.strategy?function(e,t){for(var r;;){if(0===e.lookahead&&(z(e),0===e.lookahead)){if(t===d)return w;break}if(e.match_length=0,r=u._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++,r&&(V(e,!1),0===e.strm.avail_out))return w}return e.insert=0,t===c?(V(e,!0),0===e.strm.avail_out?S:U):e.last_lit&&(V(e,!1),0===e.strm.avail_out)?w:k}(r,t):3===r.strategy?function(e,t){for(var r,n,i,a,o=e.window;;){if(e.lookahead<=I){if(z(e),e.lookahead<=I&&t===d)return w;if(0===e.lookahead)break}if(e.match_length=0,e.lookahead>=C&&0e.lookahead&&(e.match_length=e.lookahead)}if(e.match_length>=C?(r=u._tr_tally(e,1,e.match_length-C),e.lookahead-=e.match_length,e.strstart+=e.match_length,e.match_length=0):(r=u._tr_tally(e,0,e.window[e.strstart]),e.lookahead--,e.strstart++),r&&(V(e,!1),0===e.strm.avail_out))return w}return e.insert=0,t===c?(V(e,!0),0===e.strm.avail_out?S:U):e.last_lit&&(V(e,!1),0===e.strm.avail_out)?w:k}(r,t):s[r.level].func(r,t);if(o!==S&&o!==U||(r.status=666),o===w||o===S)return 0===e.avail_out&&(r.last_flush=-1),h;if(o===k&&(1===t?u._tr_align(r):5!==t&&(u._tr_stored_block(r,0,0,!1),3===t&&(R(r.head),0===r.lookahead&&(r.strstart=0,r.block_start=0,r.insert=0))),N(e),0===e.avail_out))return r.last_flush=-1,h}return t!==c?h:r.wrap<=0?1:(2===r.wrap?(L(r,255&e.adler),L(r,e.adler>>8&255),L(r,e.adler>>16&255),L(r,e.adler>>24&255),L(r,255&e.total_in),L(r,e.total_in>>8&255),L(r,e.total_in>>16&255),L(r,e.total_in>>24&255)):(M(r,e.adler>>>16),M(r,65535&e.adler)),N(e),0=r.w_size&&(0===a&&(R(r.head),r.strstart=0,r.block_start=0,r.insert=0),u=new l.Buf8(r.w_size),l.arraySet(u,t,d-r.w_size,r.w_size,0),t=u,d=r.w_size),o=e.avail_in,s=e.next_in,u=e.input,e.avail_in=d,e.next_in=0,e.input=t,z(r);r.lookahead>=C;){for(n=r.strstart,i=r.lookahead-(C-1);r.ins_h=(r.ins_h<>>7)]}function V(e,t){e.pending_buf[e.pending++]=255&t,e.pending_buf[e.pending++]=t>>>8&255}function L(e,t,r){e.bi_valid>a-r?(e.bi_buf|=t<>a-e.bi_valid,e.bi_valid+=r-a):(e.bi_buf|=t<>>=1,r<<=1,0<--t;);return r>>>1}function z(e,t,r){for(var n,i=new Array(v+1),a=0,o=1;o<=v;o++)i[o]=a=a+r[o-1]<<1;for(n=0;n<=t;n++){var s=e[2*n+1];0!==s&&(e[2*n]=B(i[s]++,s))}}function F(e){for(var t=0;t>1;1<=r;r--)q(e,a,r);for(i=u;r=e.heap[1],e.heap[1]=e.heap[e.heap_len--],q(e,a,1),n=e.heap[1],e.heap[--e.heap_max]=r,e.heap[--e.heap_max]=n,a[2*i]=a[2*r]+a[2*n],e.depth[i]=(e.depth[r]>=e.depth[n]?e.depth[r]:e.depth[n])+1,a[2*r+1]=a[2*n+1]=i,e.heap[1]=i++,q(e,a,1),2<=e.heap_len;);e.heap[--e.heap_max]=e.heap[1],function(e,t){for(var r,n,i,a,o,s=t.dyn_tree,u=t.max_code,d=t.stat_desc.static_tree,c=t.stat_desc.has_stree,l=t.stat_desc.extra_bits,f=t.stat_desc.extra_base,p=t.stat_desc.max_length,h=0,g=0;g<=v;g++)e.bl_count[g]=0;for(s[2*e.heap[e.heap_max]+1]=0,r=e.heap_max+1;r<_;r++)p<(g=s[2*s[2*(n=e.heap[r])+1]+1]+1)&&(g=p,h++),s[2*n+1]=g,u>=7;a>>=1)if(1&t&&0!==e.dyn_ltree[2*r])return s;if(0!==e.dyn_ltree[18]||0!==e.dyn_ltree[20]||0!==e.dyn_ltree[26])return u;for(r=32;r>>3,(a=e.static_len+3+7>>>3)<=i&&(i=a)):i=a=r+5,r+4<=i&&-1!==t?W(e,t,r,n):4===e.strategy||a===i?(L(e,2+(n?1:0),3),Y(e,I,b)):(L(e,4+(n?1:0),3),function(e,t,r,n){var i;for(L(e,t-257,5),L(e,r-1,5),L(e,n-4,4),i=0;i>>8&255,e.pending_buf[e.d_buf+2*e.last_lit+1]=255&t,e.pending_buf[e.l_buf+e.last_lit]=255&r,e.last_lit++,0===t?e.dyn_ltree[2*r]++:(e.matches++,t--,e.dyn_ltree[2*(P[r]+d+1)]++,e.dyn_dtree[2*N(t)]++),e.last_lit===e.lit_bufsize-1},r._tr_align=function(e){L(e,2,3),M(e,h,I),16===(e=e).bi_valid?(V(e,e.bi_buf),e.bi_buf=0,e.bi_valid=0):8<=e.bi_valid&&(e.pending_buf[e.pending++]=255&e.bi_buf,e.bi_buf>>=8,e.bi_valid-=8)}},{"../utils/common":1}],8:[function(e,t,r){"use strict";t.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],"/lib/deflate.js":[function(e,t,r){"use strict";var o=e("./zlib/deflate"),s=e("./utils/common"),u=e("./utils/strings"),n=e("./zlib/messages"),i=e("./zlib/zstream"),d=Object.prototype.toString;function a(e){if(!(this instanceof a))return new a(e);this.options=s.assign({level:-1,method:8,chunkSize:16384,windowBits:15,memLevel:8,strategy:0,to:""},e||{});var t=this.options;if(t.raw&&0>2,i=(3&o)<<4|(t=e.charCodeAt(u++))>>4,a=(15&t)<<2|(r=e.charCodeAt(u++))>>6,o=63&r,isNaN(t)?a=o=64:isNaN(r)&&(o=64),s=s+this._keyStr.charAt(n)+this._keyStr.charAt(i)+this._keyStr.charAt(a)+this._keyStr.charAt(o);return s},isEncode:function(e){if(null===e||""===e||""===e.trim())return!1;try{return btoa(atob(e))==e}catch(e){return!1}},decode:function(e){var t,r,n,i,a,o,s="",u=0;for(e=e.replace(/[^A-Za-z0-9\+\/\=]/g,"");u>2,r=(3&a)<<6|(o=this._keyStr.indexOf(e.charAt(u++))),s+=String.fromCharCode(n<<2|i>>4),64!=a&&(s+=String.fromCharCode(t)),64!=o&&(s+=String.fromCharCode(r));return s=Base64._utf8_decode(s)},_utf8_encode:function(e){e=e.replace(/\r\n/g,"\n");for(var t="",r=0;r>6|192):(t+=String.fromCharCode(n>>12|224),t+=String.fromCharCode(n>>6&63|128)),t+=String.fromCharCode(63&n|128))}return t},_utf8_decode:function(e){var t,r="",n=0;for(c1=c2=0;nInt32Max&&M("{amountArg} is overflowed",{amountArg:s,method:e},!0),d[CA_TYPE]=i,d},e.prototype.validLevel=function(e,t){return z(e,"The level argument value",t,1,Int32Max-1)},e.prototype.validTraking=function(e,t){return d(e,"status",t,!0)},e.prototype.validAppVer=function(e,t){var r="The app version argument value",t=N.delNotValidChars(t);return B(e,r,t)?t=F(e,r,t,255):null},e.prototype.validSdkCode=function(e,t){return z(e,"The sdk code argument value",t,1,Int32Max-1)},e.prototype.validStartPe=function(e,t,r){var n="The event name argument value",i="The source parameter value",a=N.delNotValidChars(t),t={};return B(e,n,a)&&(t.name=F(e,n,a,40)),V.isNullOrEmpty(r)||(void 0!==r[PE_SOURCE]&&(a=N.delNotValidChars(r[PE_SOURCE]),B(e,i,a)&&(t[PE_SOURCE]=F(e,i,a,40))),void 0!==r[PE_DIFFICULTY]&&z(e,"The difficulty parameter value",r[PE_DIFFICULTY],Int32Min,Int32Max)&&(t[PE_DIFFICULTY]=r[PE_DIFFICULTY])),t},e.prototype.validStopPe=function(e,t,r){var n,i,a="The event name argument value",t=N.delNotValidChars(t),o=[PE_SPENT,PE_EARND],s=_defineProperty({},PE_SUCCESS,!1);if(B(e,a,t)&&(s.name=F(e,a,t,40)),!V.isNullOrEmpty(r)){void 0!==r[PE_DURATION]&&z(e,"The duration parameter value",r[PE_DURATION],0,Int32Max)&&(s[PE_DURATION]=r[PE_DURATION]),void 0!==r[PE_SUCCESS]&&d(e,"The success parameter value",r[PE_SUCCESS],!0)&&(s[PE_SUCCESS]=r[PE_SUCCESS]);for(var u=o.length-1;0<=u;u--)if(void 0!==r[n=o[u]]){switch(n){case PE_EARND:i="Earn",s[n]=S(e,"earn dictionary",r[n],24,1,Int64Max);break;case PE_SPENT:i="Spent",s[n]=S(e,"spent dictionary",r[n],24,1,Int64Max)}V.isNullOrEmpty(s[n])&&(M("{arg} dictionary is empty !",{method:e,arg:i},!1),delete s[n])}}return s},e.prototype.validPlKey=function(e,t){var r=!(2=s.time()&&s.time()+E.getAbTimeout()=s.time()&&-1===[DI_CODE].indexOf(_)&&(p[_DTDEventStorage.Params][_DTDEventParams.InExperiments]=s.experimentIds()),p[_DTDEventStorage.Params][_DTDEventParams.Code]=_,r[h].events.push(p[_DTDEventStorage.Params])}T.removeByPrimaryIds({}),a||(reports=(_defineProperty(l={},"registrationDate",D.getRg()),_defineProperty(l,"packages",[]),l),_forEach(function(e,t){reports.packages.push(r[e])},i),o.body={reports:[reports]},o.auxiliary["Content UUID"]=c,_logger.info("Trying to send a report [{id}]",{id:c}),I.run(_key,o,function(e,t,r){!function(e,t,r){r={id:r,status:e};_isNullOrEmpty(t)&&200===e?(T.removeByPrimaryIds(u),setTimeout(function(){d._run(!0)},0),_logger.info("Report [{id}] has been sent successfully",r)):(C(15e3,n),d._status=0,_logger.error("Report [{id}] submission failed. Status code: {status}",r),_logger.debug("The network queue is stopped"))}(e,r,c)})),2!==this._status&&(this._status=a?0:1)}}}return _forEach=b.forEach,_isNullOrEmpty=DTDTypeValidator.isNullOrEmpty,_DTDEventStorage=DTDEventStorage,_DTDEventParams=DTDEventParams,_key="events",_DTDRequestHeader=DTDRequestHeader,_logger=DTDLogger.getInstance(),_getHash=function(r){var n=[];return _forEach(function(e,t){_DTDEventStorage.hasOwnProperty(e)&&n.push(r[_DTDEventStorage[e]])},e),n.join("_")},_createPackage=function(n){var i={events:[]};return _forEach(function(e,t){var r=_DTDEventStorage[e];_isNullOrEmpty(n[r])||(i[e]=n[r])},e),i},t.prototype={start:function(){this._status=0},stop:function(){this._tempEvents={},this._status=3},add:function(e,t){this._tempEvents[e]=t},send:function(){0==this._status?this._run():2==this._status&&this._checkedAbFreez()}},t},ConfigManager=function(h,g){function e(i,n,a,o,s,t){function r(e,t,r){if(f=(new Date).getTime(),_isNullOrEmpty(r)&&200===e)c=3,_isFunction(s)&&s(t),_attempt=0;else if(422===e)c=3,_attempt=0;else{var n=d;switch(202===e?(c=5,_retryTimeOutBack=t.retryAfter,n=_retryTimeOutBack,_attempt++):(_attempt=0,c=2),i){case"sdk":_logger.debug("Failed to get analytics configuration, using the default configuration and retrying after "+parseInt(n/1e3)+" seconds");break;case"d2dId":_logger.error("BackendIdentifiers unknown status code "+e)}p(n)}}function u(){var e=function(){var e=(_defineProperty(e={},_DTDRequestHeader.DeviceId,a.getDeviceId()),_defineProperty(e,_DTDRequestHeader.PreviousDeviceId,a.getPrevDeviceId()),_defineProperty(e,_DTDRequestHeader.UserId,a.getId()),_defineProperty(e,_DTDRequestHeader.PreviousUserId,a.getPrevUserId()),e);a.haveBackendId()&&(null!==a.getD2dCrossId()&&(e[_DTDRequestHeader.CrossPlatformDevtodevId]=a.getD2dCrossId()),e[_DTDRequestHeader.DevtodevId]=a.getD2dId());var t={headers:e,toBase64:[_DTDRequestHeader.DeviceId,_DTDRequestHeader.PreviousDeviceId,_DTDRequestHeader.UserId,_DTDRequestHeader.PreviousUserId]},r=[];switch(i){case"sdk":t.body={sdkVersion:n.getSdkVer(),appVersion:o.getAppVer(),excludeVersion:o.getExcludeVer(),sdkCodeVersion:n.getSdkVerCode()},r=["v2","analytics","config"];break;case"exp":r=["v2","remoteconfig","experiments"];break;case"offer":r=["v2","remoteconfig","offer"];break;case"d2dId":r=["v2","analytics","identification"],t.body={attempt:l}}return t.url=n.buildUrl(r,{appId:n.getAppId()}),t}();c=1,_isFunction(t)&&t(),g.run(i,e,r)}function e(){h.removeTaskByKey(i),g.stop(i)}var d=6e4,c=0,l=1,f=0,p=function(e){e=new DTDTimeManagerTask(u,e,i);h.removeTaskByKey(i),h.addTask(e)};this._pause=function(){-1!=[1,2].indexOf(c)&&(e(),c=4)},this._start=function(){var e;-1!=[0,4].indexOf(c)?u():5==c&&(0<(e=f+_retryTimeOutBack-(new Date).getTime())?p(e):u())},this._clear=function(){e(),c=0}}return _DTDRequestHeader=DTDRequestHeader,_isNullOrEmpty=DTDTypeValidator.isNullOrEmpty,_isFunction=DTDTypeValidator.isFunction,_logger=DTDLogger.getInstance(),e.prototype={start:function(){this._start()},clear:function(){this._clear()},pause:function(){this._pause()}},e},ManagerProgression=function(){function e(){}var i={},a=null,o=DTDLogger.getInstance();return e.prototype.start=function(e,t){return this.clear(),a=e,i={startTime:Date.now(),startBundle:t},o.info("Progression event '{name}' is started",{name:e}),!0},e.prototype.finish=function(e,t){if(null===a)o.warning("Progression event can't be finished! Doesn't have any started progression events");else{if(a==e){o.info("Progression event '{name}' is finished",{name:e});var r,n={name:e,parameters:{}};return void 0!==i.startBundle[PE_SOURCE]&&(n.parameters[PE_SOURCE]=i.startBundle[PE_SOURCE]),n.parameters.success=t[PE_SUCCESS],void 0===t[PE_DURATION]?0<(r=Math.ceil((Date.now()-i.startTime)/1e3))&&(n.parameters[PE_DURATION]=r):n.parameters[PE_DURATION]=t[PE_DURATION],void 0!==i.startBundle[PE_DIFFICULTY]&&(n.parameters[PE_DIFFICULTY]=i.startBundle[PE_DIFFICULTY]),void 0!==t[PE_EARND]&&(n[PE_EARND]=t[PE_EARND]),void 0!==t[PE_SPENT]&&(n[PE_SPENT]=t[PE_SPENT]),i={},a=null,n}o.warning("Progression event can't be finished!\n\tStarted progression event name is [{currentName}]\n\tCurrent event name is [{name}]",{currentName:a,name:e})}return!1},e.prototype.getLocation=function(){return a},e.prototype.clear=function(){i={},null!==a&&o.info("Info Progression event [{name}] is cleared",{name:a}),a=null},e}(),SchedulerIntervel=function(n){function e(e,t,r){this._delay=r,this._callback=t,this._key=e,this._status=0,this._abort=function(){0!==this._status&&n.removeTaskByKey(this._key)},this._run=function(){var e=new DTDTimeManagerTask(this._onResponse.bind(this),this._delay,this._key);n.addTask(e),this._status=1},this._onResponse=function(){this._run(),this._callback()}}return e.prototype={start:function(){0==this._status&&this._run()},reset:function(){this._abort(),this._status=0,this.start()},pause:function(){this._abort(),this._status=0},setDelay:function(e){this._delay=e,this.reset()}},e},DTDCookies2=function(){function e(){}var a={};return e.prototype.isAvailable=function(){return void 0!==window.navigator&&void 0!==window.navigator.cookieEnabled?window.navigator.cookieEnabled:(window.document.cookie="testcookie=test; max-age=10000",1!==(a=window.document.cookie).indexOf("testcookie=test")&&(window.document.cookie="testcookie=test; max-age=1",!0))},e.prototype.setItem=function(e,t){var r=new Date;r.setTime(Date.now()+31536e7),window.document.cookie=e+"="+t+"; expires="+r.toGMTString()+"; path=/"},e.prototype.getItem=function(e){var t,r,n,i=null;for(a=window.document.cookie.split(";"),t=0;t=e+144e5},refreshBalanceSentTime:function(){this._setAttr(a.TimeSentBalance,(new Date).getTime())},turnOffRef:function(){this._setAttr(a.ReferralSatus,0)},isTurnOnRef:function(){return this._getAttr(a.ReferralSatus,1)},getTutorialSteps:function(){return this._getAttr(a.TutorialSteps,[])},insertTutorStep:function(e){var t=this._getAttr(a.TutorialSteps,[]);t.push(e),this._setAttr(a.TutorialSteps,t)},setCA:function(e){var t=e[CA_SOURCE],r=AccrualTypes[e[CA_TYPE]],n=e[CA_CURRENCY_AMOUNT],i=e[CA_CURRENCY_NAME],e=this.getCA();o.isNullOrEmpty(e[r])&&(e[r]={}),o.isNullOrEmpty(e[r][t])&&(e[r][t]={}),o.isNullOrEmpty(e[r][t][i])&&(e[r][t][i]=0),e[r][t][i]+=n,this._setAttr(a.CurrencyAccrual,e)},getCA:function(){return this._getAttr(a.CurrencyAccrual,{})},clearCA:function(){this._removeAttribute(a.CurrencyAccrual)},isTracking:function(){return!!this._getAttr(a.Tracking,1)},setTracking:function(e){this._setAttr(a.Tracking,e?1:0)},getCard:function(){return this._getAttr(a.Profile,{})},getCardField:function(e){return this._getAttr([a.Profile,e],null)},clearCard:function(){this._removeAttribute(a.Profile)},clearCardChanges:function(){this._removeAttribute(a.UpdateProfile)},unsetCardField:function(e){var t=this.getCard(),r=this.getCardChanges();delete t[e],r[e]=null,this._setAttrs((_defineProperty(e={},a.UpdateProfile,r),_defineProperty(e,a.Profile,t),e))},setCardField:function(e,t){var r=this.getCard(),n=this.getCardChanges();r[e]=t,n[e]=t,this._setAttrs((_defineProperty(t={},a.UpdateProfile,n),_defineProperty(t,a.Profile,r),t))},isPayingUser:function(){return this._getAttr(a.IsPayingUser,!1)},getCardChanges:function(){return this._getAttr(a.UpdateProfile,{})},setAbConfig:function(e){var t;this._setAttrs((_defineProperty(t={},a.Experiments,e.experiments),_defineProperty(t,a.UserProperties,e.userProperties),t))},getUserPropery:function(){return this._getAttr(a.UserProperties,{})},setExperimentsForUser:function(e){return this._setAttr(a.UserExperiments,e)},removeExperimentsForUser:function(){this._removeAttribute(a.UserExperiments)},experiments:function(){return this._getExperiment()},setDefaultConfig:function(e){return this._setAttr(a.DefaultConfig,e)},getDefaultConfig:function(){return this._getAttr(a.DefaultConfig)},getRemoteConfig:function(){var e,t=this._getAttr(a.DefaultConfig);for(e in abConfig=this._getExperiment().getConfig(),abConfig)abConfig.hasOwnProperty(e)&&(t[e]=abConfig[e]);return t},getRemoteValue:function(e){return this.getRemoteConfig()[e]}},e}(),UsersModel=function(){"use strict";function e(e,t){r.call(this,e,t,2n&&(n=t[r=e][i.LastActive]));return r},e}(),EventsModel=function(){"use strict";function e(e,t,r){n.call(this,e,t,r)}var n=BaseAdapter("events"),i=DTDEventStorage;return((e.prototype=Object.create(n.prototype)).constructor=e).prototype.get=function(){return this._get([])},e.prototype.add=function(e){var t=this._get([]),r=1;0!==t.length&&(r=t[t.length-1][i.PrimaryId]+1),e[i.PrimaryId]=r,t.push(e),this._set(t)},e.prototype.removeByPrimaryIds=function(e){for(var t=this._get([]),r=[],n=t.length-1;0<=n;n--)void 0===e[t[n][i.PrimaryId]]&&r.unshift(t[n]);this._set(r)},e.prototype.removeByPrimaryUserId=function(e){for(var t=this._get([]),r=[],n=t.length-1;0<=n;n--)t[n][i.PrimaryUserId]!==e&&r.unshift(t[n]);this._set(r)},e.prototype.getCountEventsByUser=function(e){for(var t=this._get([]),r=0,n=t.length-1;0<=n;n--)t[n][i.PrimaryUserId]===e&&r++;return r},e.prototype.getEventsByUser=function(e){for(var t=this._get([]),r=[],n=t.length-1;0<=n;n--)t[n][i.PrimaryUserId]===e&&r.unshift(t[n]);return r},e}(),Storage=function(){"use strict";function e(){}return e.prototype.setItem=function(e,t){this._driver.setItem(e,t)},e.prototype.getItem=function(e){return this._driver.getItem(e)},e.prototype.setDriver=function(e){this._driver=e},e.prototype.isAvailable=function(){return!!this._driver&&this._driver.isAvailable()},e.prototype.removeItem=function(e){return this._driver.removeItem(e)},e}(),StorageManager2=function(){function e(e){var r=new Storage,n={};r.setDriver(e),this._init=function(e,t){n.app=new AppsModel(e,r,t),n.user=new UsersModel(e,r,t),n.event=new EventsModel(e,r)},this._getAdaper=function(e){return n[e]},this._isAvailable=function(){return r.isAvailable()}}return e.prototype.init=function(e){this._init(e,1Date.now()||t[e].isTesting)};return(e=function(e,t,r){n=new a("exp",o=r,l=e,f=t,function(e){_remoteManager.setAbConfig(e)})}).prototype={fetch:function(e){n.clear(),n.start(),i=e},checkingCondition:function(e){t(e)},start:function(){var e;l.experiments().isExist()||l.experiments().isOffer()?(e=(new Date).getTime()-l.experiments().time())>=f.getAbTimeout()?d():(e=new DTDTimeManagerTask(d,f.getAbTimeout()-e,"clearAbTest"),s.addTask(e)):l.experiments().isActivated()},activated:function(){var e;r(),l.experiments().isOffer()?(e=l.experiments(),s.removeTaskByKey("clearAbTest"),e.setAttrs(_defineProperty({},h.Status,3)),l.setExperimentsForUser(e.get()),m.info("Start experiment "+JSON.stringify(_userModel.getExpiriments()))):l.experiments().isActivated()&&m.info("Experiment already started")},setAbConfig:function(e){_userModel.setAbConfig(e),r(),t()}},e};DTDVerificationCondition=function(){var n="NOT IN",i=">",a="<",o="!=",s=">=",u="<=",o="!=",t=DTDHelpers,d=DTDTypeValidator;function e(){}function r(e,r){return d.isObject(e)?!t.findObj(function(e,t){switch(t){case"IN":case n:return!function(e,t,r){if(!d.isArray(t))return!1;if(!d.isString(r)&&!d.isInteger(r))return!1;r=-1=m.getCountForRequest())&&re())},Q=function(){var e;0li{position:relative}.fa-li{left:-2em;position:absolute;text-align:center;width:2em;line-height:inherit}.fa-border{border:.08em solid #eee;border-radius:.1em;padding:.2em .25em .15em}.fa-pull-left{float:left}.fa-pull-right{float:right}.fa.fa-pull-left,.fab.fa-pull-left,.fal.fa-pull-left,.far.fa-pull-left,.fas.fa-pull-left{margin-right:.3em}.fa.fa-pull-right,.fab.fa-pull-right,.fal.fa-pull-right,.far.fa-pull-right,.fas.fa-pull-right{margin-left:.3em}.fa-spin{-webkit-animation:fa-spin 2s linear infinite;animation:fa-spin 2s linear infinite}.fa-pulse{-webkit-animation:fa-spin 1s steps(8) infinite;animation:fa-spin 1s steps(8) infinite}@-webkit-keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}@keyframes fa-spin{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}to{-webkit-transform:rotate(1turn);transform:rotate(1turn)}}.fa-rotate-90{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=1)";-webkit-transform:rotate(90deg);transform:rotate(90deg)}.fa-rotate-180{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2)";-webkit-transform:rotate(180deg);transform:rotate(180deg)}.fa-rotate-270{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=3)";-webkit-transform:rotate(270deg);transform:rotate(270deg)}.fa-flip-horizontal{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=0, mirror=1)";-webkit-transform:scaleX(-1);transform:scaleX(-1)}.fa-flip-vertical{-webkit-transform:scaleY(-1);transform:scaleY(-1)}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical,.fa-flip-vertical{-ms-filter:"progid:DXImageTransform.Microsoft.BasicImage(rotation=2, mirror=1)"}.fa-flip-both,.fa-flip-horizontal.fa-flip-vertical{-webkit-transform:scale(-1);transform:scale(-1)}:root .fa-flip-both,:root .fa-flip-horizontal,:root .fa-flip-vertical,:root .fa-rotate-90,:root .fa-rotate-180,:root .fa-rotate-270{-webkit-filter:none;filter:none}.fa-stack{display:inline-block;height:2em;line-height:2em;position:relative;vertical-align:middle;width:2.5em}.fa-stack-1x,.fa-stack-2x{left:0;position:absolute;text-align:center;width:100%}.fa-stack-1x{line-height:inherit}.fa-stack-2x{font-size:2em}.fa-inverse{color:#fff}.fa-500px:before{content:"\f26e"}.fa-accessible-icon:before{content:"\f368"}.fa-accusoft:before{content:"\f369"}.fa-acquisitions-incorporated:before{content:"\f6af"}.fa-ad:before{content:"\f641"}.fa-address-book:before{content:"\f2b9"}.fa-address-card:before{content:"\f2bb"}.fa-adjust:before{content:"\f042"}.fa-adn:before{content:"\f170"}.fa-adobe:before{content:"\f778"}.fa-adversal:before{content:"\f36a"}.fa-affiliatetheme:before{content:"\f36b"}.fa-air-freshener:before{content:"\f5d0"}.fa-airbnb:before{content:"\f834"}.fa-algolia:before{content:"\f36c"}.fa-align-center:before{content:"\f037"}.fa-align-justify:before{content:"\f039"}.fa-align-left:before{content:"\f036"}.fa-align-right:before{content:"\f038"}.fa-alipay:before{content:"\f642"}.fa-allergies:before{content:"\f461"}.fa-amazon:before{content:"\f270"}.fa-amazon-pay:before{content:"\f42c"}.fa-ambulance:before{content:"\f0f9"}.fa-american-sign-language-interpreting:before{content:"\f2a3"}.fa-amilia:before{content:"\f36d"}.fa-anchor:before{content:"\f13d"}.fa-android:before{content:"\f17b"}.fa-angellist:before{content:"\f209"}.fa-angle-double-down:before{content:"\f103"}.fa-angle-double-left:before{content:"\f100"}.fa-angle-double-right:before{content:"\f101"}.fa-angle-double-up:before{content:"\f102"}.fa-angle-down:before{content:"\f107"}.fa-angle-left:before{content:"\f104"}.fa-angle-right:before{content:"\f105"}.fa-angle-up:before{content:"\f106"}.fa-angry:before{content:"\f556"}.fa-angrycreative:before{content:"\f36e"}.fa-angular:before{content:"\f420"}.fa-ankh:before{content:"\f644"}.fa-app-store:before{content:"\f36f"}.fa-app-store-ios:before{content:"\f370"}.fa-apper:before{content:"\f371"}.fa-apple:before{content:"\f179"}.fa-apple-alt:before{content:"\f5d1"}.fa-apple-pay:before{content:"\f415"}.fa-archive:before{content:"\f187"}.fa-archway:before{content:"\f557"}.fa-arrow-alt-circle-down:before{content:"\f358"}.fa-arrow-alt-circle-left:before{content:"\f359"}.fa-arrow-alt-circle-right:before{content:"\f35a"}.fa-arrow-alt-circle-up:before{content:"\f35b"}.fa-arrow-circle-down:before{content:"\f0ab"}.fa-arrow-circle-left:before{content:"\f0a8"}.fa-arrow-circle-right:before{content:"\f0a9"}.fa-arrow-circle-up:before{content:"\f0aa"}.fa-arrow-down:before{content:"\f063"}.fa-arrow-left:before{content:"\f060"}.fa-arrow-right:before{content:"\f061"}.fa-arrow-up:before{content:"\f062"}.fa-arrows-alt:before{content:"\f0b2"}.fa-arrows-alt-h:before{content:"\f337"}.fa-arrows-alt-v:before{content:"\f338"}.fa-artstation:before{content:"\f77a"}.fa-assistive-listening-systems:before{content:"\f2a2"}.fa-asterisk:before{content:"\f069"}.fa-asymmetrik:before{content:"\f372"}.fa-at:before{content:"\f1fa"}.fa-atlas:before{content:"\f558"}.fa-atlassian:before{content:"\f77b"}.fa-atom:before{content:"\f5d2"}.fa-audible:before{content:"\f373"}.fa-audio-description:before{content:"\f29e"}.fa-autoprefixer:before{content:"\f41c"}.fa-avianex:before{content:"\f374"}.fa-aviato:before{content:"\f421"}.fa-award:before{content:"\f559"}.fa-aws:before{content:"\f375"}.fa-baby:before{content:"\f77c"}.fa-baby-carriage:before{content:"\f77d"}.fa-backspace:before{content:"\f55a"}.fa-backward:before{content:"\f04a"}.fa-bacon:before{content:"\f7e5"}.fa-bahai:before{content:"\f666"}.fa-balance-scale:before{content:"\f24e"}.fa-balance-scale-left:before{content:"\f515"}.fa-balance-scale-right:before{content:"\f516"}.fa-ban:before{content:"\f05e"}.fa-band-aid:before{content:"\f462"}.fa-bandcamp:before{content:"\f2d5"}.fa-barcode:before{content:"\f02a"}.fa-bars:before{content:"\f0c9"}.fa-baseball-ball:before{content:"\f433"}.fa-basketball-ball:before{content:"\f434"}.fa-bath:before{content:"\f2cd"}.fa-battery-empty:before{content:"\f244"}.fa-battery-full:before{content:"\f240"}.fa-battery-half:before{content:"\f242"}.fa-battery-quarter:before{content:"\f243"}.fa-battery-three-quarters:before{content:"\f241"}.fa-battle-net:before{content:"\f835"}.fa-bed:before{content:"\f236"}.fa-beer:before{content:"\f0fc"}.fa-behance:before{content:"\f1b4"}.fa-behance-square:before{content:"\f1b5"}.fa-bell:before{content:"\f0f3"}.fa-bell-slash:before{content:"\f1f6"}.fa-bezier-curve:before{content:"\f55b"}.fa-bible:before{content:"\f647"}.fa-bicycle:before{content:"\f206"}.fa-biking:before{content:"\f84a"}.fa-bimobject:before{content:"\f378"}.fa-binoculars:before{content:"\f1e5"}.fa-biohazard:before{content:"\f780"}.fa-birthday-cake:before{content:"\f1fd"}.fa-bitbucket:before{content:"\f171"}.fa-bitcoin:before{content:"\f379"}.fa-bity:before{content:"\f37a"}.fa-black-tie:before{content:"\f27e"}.fa-blackberry:before{content:"\f37b"}.fa-blender:before{content:"\f517"}.fa-blender-phone:before{content:"\f6b6"}.fa-blind:before{content:"\f29d"}.fa-blog:before{content:"\f781"}.fa-blogger:before{content:"\f37c"}.fa-blogger-b:before{content:"\f37d"}.fa-bluetooth:before{content:"\f293"}.fa-bluetooth-b:before{content:"\f294"}.fa-bold:before{content:"\f032"}.fa-bolt:before{content:"\f0e7"}.fa-bomb:before{content:"\f1e2"}.fa-bone:before{content:"\f5d7"}.fa-bong:before{content:"\f55c"}.fa-book:before{content:"\f02d"}.fa-book-dead:before{content:"\f6b7"}.fa-book-medical:before{content:"\f7e6"}.fa-book-open:before{content:"\f518"}.fa-book-reader:before{content:"\f5da"}.fa-bookmark:before{content:"\f02e"}.fa-bootstrap:before{content:"\f836"}.fa-border-all:before{content:"\f84c"}.fa-border-none:before{content:"\f850"}.fa-border-style:before{content:"\f853"}.fa-bowling-ball:before{content:"\f436"}.fa-box:before{content:"\f466"}.fa-box-open:before{content:"\f49e"}.fa-boxes:before{content:"\f468"}.fa-braille:before{content:"\f2a1"}.fa-brain:before{content:"\f5dc"}.fa-bread-slice:before{content:"\f7ec"}.fa-briefcase:before{content:"\f0b1"}.fa-briefcase-medical:before{content:"\f469"}.fa-broadcast-tower:before{content:"\f519"}.fa-broom:before{content:"\f51a"}.fa-brush:before{content:"\f55d"}.fa-btc:before{content:"\f15a"}.fa-buffer:before{content:"\f837"}.fa-bug:before{content:"\f188"}.fa-building:before{content:"\f1ad"}.fa-bullhorn:before{content:"\f0a1"}.fa-bullseye:before{content:"\f140"}.fa-burn:before{content:"\f46a"}.fa-buromobelexperte:before{content:"\f37f"}.fa-bus:before{content:"\f207"}.fa-bus-alt:before{content:"\f55e"}.fa-business-time:before{content:"\f64a"}.fa-buy-n-large:before{content:"\f8a6"}.fa-buysellads:before{content:"\f20d"}.fa-calculator:before{content:"\f1ec"}.fa-calendar:before{content:"\f133"}.fa-calendar-alt:before{content:"\f073"}.fa-calendar-check:before{content:"\f274"}.fa-calendar-day:before{content:"\f783"}.fa-calendar-minus:before{content:"\f272"}.fa-calendar-plus:before{content:"\f271"}.fa-calendar-times:before{content:"\f273"}.fa-calendar-week:before{content:"\f784"}.fa-camera:before{content:"\f030"}.fa-camera-retro:before{content:"\f083"}.fa-campground:before{content:"\f6bb"}.fa-canadian-maple-leaf:before{content:"\f785"}.fa-candy-cane:before{content:"\f786"}.fa-cannabis:before{content:"\f55f"}.fa-capsules:before{content:"\f46b"}.fa-car:before{content:"\f1b9"}.fa-car-alt:before{content:"\f5de"}.fa-car-battery:before{content:"\f5df"}.fa-car-crash:before{content:"\f5e1"}.fa-car-side:before{content:"\f5e4"}.fa-caravan:before{content:"\f8ff"}.fa-caret-down:before{content:"\f0d7"}.fa-caret-left:before{content:"\f0d9"}.fa-caret-right:before{content:"\f0da"}.fa-caret-square-down:before{content:"\f150"}.fa-caret-square-left:before{content:"\f191"}.fa-caret-square-right:before{content:"\f152"}.fa-caret-square-up:before{content:"\f151"}.fa-caret-up:before{content:"\f0d8"}.fa-carrot:before{content:"\f787"}.fa-cart-arrow-down:before{content:"\f218"}.fa-cart-plus:before{content:"\f217"}.fa-cash-register:before{content:"\f788"}.fa-cat:before{content:"\f6be"}.fa-cc-amazon-pay:before{content:"\f42d"}.fa-cc-amex:before{content:"\f1f3"}.fa-cc-apple-pay:before{content:"\f416"}.fa-cc-diners-club:before{content:"\f24c"}.fa-cc-discover:before{content:"\f1f2"}.fa-cc-jcb:before{content:"\f24b"}.fa-cc-mastercard:before{content:"\f1f1"}.fa-cc-paypal:before{content:"\f1f4"}.fa-cc-stripe:before{content:"\f1f5"}.fa-cc-visa:before{content:"\f1f0"}.fa-centercode:before{content:"\f380"}.fa-centos:before{content:"\f789"}.fa-certificate:before{content:"\f0a3"}.fa-chair:before{content:"\f6c0"}.fa-chalkboard:before{content:"\f51b"}.fa-chalkboard-teacher:before{content:"\f51c"}.fa-charging-station:before{content:"\f5e7"}.fa-chart-area:before{content:"\f1fe"}.fa-chart-bar:before{content:"\f080"}.fa-chart-line:before{content:"\f201"}.fa-chart-pie:before{content:"\f200"}.fa-check:before{content:"\f00c"}.fa-check-circle:before{content:"\f058"}.fa-check-double:before{content:"\f560"}.fa-check-square:before{content:"\f14a"}.fa-cheese:before{content:"\f7ef"}.fa-chess:before{content:"\f439"}.fa-chess-bishop:before{content:"\f43a"}.fa-chess-board:before{content:"\f43c"}.fa-chess-king:before{content:"\f43f"}.fa-chess-knight:before{content:"\f441"}.fa-chess-pawn:before{content:"\f443"}.fa-chess-queen:before{content:"\f445"}.fa-chess-rook:before{content:"\f447"}.fa-chevron-circle-down:before{content:"\f13a"}.fa-chevron-circle-left:before{content:"\f137"}.fa-chevron-circle-right:before{content:"\f138"}.fa-chevron-circle-up:before{content:"\f139"}.fa-chevron-down:before{content:"\f078"}.fa-chevron-left:before{content:"\f053"}.fa-chevron-right:before{content:"\f054"}.fa-chevron-up:before{content:"\f077"}.fa-child:before{content:"\f1ae"}.fa-chrome:before{content:"\f268"}.fa-chromecast:before{content:"\f838"}.fa-church:before{content:"\f51d"}.fa-circle:before{content:"\f111"}.fa-circle-notch:before{content:"\f1ce"}.fa-city:before{content:"\f64f"}.fa-clinic-medical:before{content:"\f7f2"}.fa-clipboard:before{content:"\f328"}.fa-clipboard-check:before{content:"\f46c"}.fa-clipboard-list:before{content:"\f46d"}.fa-clock:before{content:"\f017"}.fa-clone:before{content:"\f24d"}.fa-closed-captioning:before{content:"\f20a"}.fa-cloud:before{content:"\f0c2"}.fa-cloud-download-alt:before{content:"\f381"}.fa-cloud-meatball:before{content:"\f73b"}.fa-cloud-moon:before{content:"\f6c3"}.fa-cloud-moon-rain:before{content:"\f73c"}.fa-cloud-rain:before{content:"\f73d"}.fa-cloud-showers-heavy:before{content:"\f740"}.fa-cloud-sun:before{content:"\f6c4"}.fa-cloud-sun-rain:before{content:"\f743"}.fa-cloud-upload-alt:before{content:"\f382"}.fa-cloudscale:before{content:"\f383"}.fa-cloudsmith:before{content:"\f384"}.fa-cloudversify:before{content:"\f385"}.fa-cocktail:before{content:"\f561"}.fa-code:before{content:"\f121"}.fa-code-branch:before{content:"\f126"}.fa-codepen:before{content:"\f1cb"}.fa-codiepie:before{content:"\f284"}.fa-coffee:before{content:"\f0f4"}.fa-cog:before{content:"\f013"}.fa-cogs:before{content:"\f085"}.fa-coins:before{content:"\f51e"}.fa-columns:before{content:"\f0db"}.fa-comment:before{content:"\f075"}.fa-comment-alt:before{content:"\f27a"}.fa-comment-dollar:before{content:"\f651"}.fa-comment-dots:before{content:"\f4ad"}.fa-comment-medical:before{content:"\f7f5"}.fa-comment-slash:before{content:"\f4b3"}.fa-comments:before{content:"\f086"}.fa-comments-dollar:before{content:"\f653"}.fa-compact-disc:before{content:"\f51f"}.fa-compass:before{content:"\f14e"}.fa-compress:before{content:"\f066"}.fa-compress-alt:before{content:"\f422"}.fa-compress-arrows-alt:before{content:"\f78c"}.fa-concierge-bell:before{content:"\f562"}.fa-confluence:before{content:"\f78d"}.fa-connectdevelop:before{content:"\f20e"}.fa-contao:before{content:"\f26d"}.fa-cookie:before{content:"\f563"}.fa-cookie-bite:before{content:"\f564"}.fa-copy:before{content:"\f0c5"}.fa-copyright:before{content:"\f1f9"}.fa-cotton-bureau:before{content:"\f89e"}.fa-couch:before{content:"\f4b8"}.fa-cpanel:before{content:"\f388"}.fa-creative-commons:before{content:"\f25e"}.fa-creative-commons-by:before{content:"\f4e7"}.fa-creative-commons-nc:before{content:"\f4e8"}.fa-creative-commons-nc-eu:before{content:"\f4e9"}.fa-creative-commons-nc-jp:before{content:"\f4ea"}.fa-creative-commons-nd:before{content:"\f4eb"}.fa-creative-commons-pd:before{content:"\f4ec"}.fa-creative-commons-pd-alt:before{content:"\f4ed"}.fa-creative-commons-remix:before{content:"\f4ee"}.fa-creative-commons-sa:before{content:"\f4ef"}.fa-creative-commons-sampling:before{content:"\f4f0"}.fa-creative-commons-sampling-plus:before{content:"\f4f1"}.fa-creative-commons-share:before{content:"\f4f2"}.fa-creative-commons-zero:before{content:"\f4f3"}.fa-credit-card:before{content:"\f09d"}.fa-critical-role:before{content:"\f6c9"}.fa-crop:before{content:"\f125"}.fa-crop-alt:before{content:"\f565"}.fa-cross:before{content:"\f654"}.fa-crosshairs:before{content:"\f05b"}.fa-crow:before{content:"\f520"}.fa-crown:before{content:"\f521"}.fa-crutch:before{content:"\f7f7"}.fa-css3:before{content:"\f13c"}.fa-css3-alt:before{content:"\f38b"}.fa-cube:before{content:"\f1b2"}.fa-cubes:before{content:"\f1b3"}.fa-cut:before{content:"\f0c4"}.fa-cuttlefish:before{content:"\f38c"}.fa-d-and-d:before{content:"\f38d"}.fa-d-and-d-beyond:before{content:"\f6ca"}.fa-dashcube:before{content:"\f210"}.fa-database:before{content:"\f1c0"}.fa-deaf:before{content:"\f2a4"}.fa-delicious:before{content:"\f1a5"}.fa-democrat:before{content:"\f747"}.fa-deploydog:before{content:"\f38e"}.fa-deskpro:before{content:"\f38f"}.fa-desktop:before{content:"\f108"}.fa-dev:before{content:"\f6cc"}.fa-deviantart:before{content:"\f1bd"}.fa-dharmachakra:before{content:"\f655"}.fa-dhl:before{content:"\f790"}.fa-diagnoses:before{content:"\f470"}.fa-diaspora:before{content:"\f791"}.fa-dice:before{content:"\f522"}.fa-dice-d20:before{content:"\f6cf"}.fa-dice-d6:before{content:"\f6d1"}.fa-dice-five:before{content:"\f523"}.fa-dice-four:before{content:"\f524"}.fa-dice-one:before{content:"\f525"}.fa-dice-six:before{content:"\f526"}.fa-dice-three:before{content:"\f527"}.fa-dice-two:before{content:"\f528"}.fa-digg:before{content:"\f1a6"}.fa-digital-ocean:before{content:"\f391"}.fa-digital-tachograph:before{content:"\f566"}.fa-directions:before{content:"\f5eb"}.fa-discord:before{content:"\f392"}.fa-discourse:before{content:"\f393"}.fa-divide:before{content:"\f529"}.fa-dizzy:before{content:"\f567"}.fa-dna:before{content:"\f471"}.fa-dochub:before{content:"\f394"}.fa-docker:before{content:"\f395"}.fa-dog:before{content:"\f6d3"}.fa-dollar-sign:before{content:"\f155"}.fa-dolly:before{content:"\f472"}.fa-dolly-flatbed:before{content:"\f474"}.fa-donate:before{content:"\f4b9"}.fa-door-closed:before{content:"\f52a"}.fa-door-open:before{content:"\f52b"}.fa-dot-circle:before{content:"\f192"}.fa-dove:before{content:"\f4ba"}.fa-download:before{content:"\f019"}.fa-draft2digital:before{content:"\f396"}.fa-drafting-compass:before{content:"\f568"}.fa-dragon:before{content:"\f6d5"}.fa-draw-polygon:before{content:"\f5ee"}.fa-dribbble:before{content:"\f17d"}.fa-dribbble-square:before{content:"\f397"}.fa-dropbox:before{content:"\f16b"}.fa-drum:before{content:"\f569"}.fa-drum-steelpan:before{content:"\f56a"}.fa-drumstick-bite:before{content:"\f6d7"}.fa-drupal:before{content:"\f1a9"}.fa-dumbbell:before{content:"\f44b"}.fa-dumpster:before{content:"\f793"}.fa-dumpster-fire:before{content:"\f794"}.fa-dungeon:before{content:"\f6d9"}.fa-dyalog:before{content:"\f399"}.fa-earlybirds:before{content:"\f39a"}.fa-ebay:before{content:"\f4f4"}.fa-edge:before{content:"\f282"}.fa-edit:before{content:"\f044"}.fa-egg:before{content:"\f7fb"}.fa-eject:before{content:"\f052"}.fa-elementor:before{content:"\f430"}.fa-ellipsis-h:before{content:"\f141"}.fa-ellipsis-v:before{content:"\f142"}.fa-ello:before{content:"\f5f1"}.fa-ember:before{content:"\f423"}.fa-empire:before{content:"\f1d1"}.fa-envelope:before{content:"\f0e0"}.fa-envelope-open:before{content:"\f2b6"}.fa-envelope-open-text:before{content:"\f658"}.fa-envelope-square:before{content:"\f199"}.fa-envira:before{content:"\f299"}.fa-equals:before{content:"\f52c"}.fa-eraser:before{content:"\f12d"}.fa-erlang:before{content:"\f39d"}.fa-ethereum:before{content:"\f42e"}.fa-ethernet:before{content:"\f796"}.fa-etsy:before{content:"\f2d7"}.fa-euro-sign:before{content:"\f153"}.fa-evernote:before{content:"\f839"}.fa-exchange-alt:before{content:"\f362"}.fa-exclamation:before{content:"\f12a"}.fa-exclamation-circle:before{content:"\f06a"}.fa-exclamation-triangle:before{content:"\f071"}.fa-expand:before{content:"\f065"}.fa-expand-alt:before{content:"\f424"}.fa-expand-arrows-alt:before{content:"\f31e"}.fa-expeditedssl:before{content:"\f23e"}.fa-external-link-alt:before{content:"\f35d"}.fa-external-link-square-alt:before{content:"\f360"}.fa-eye:before{content:"\f06e"}.fa-eye-dropper:before{content:"\f1fb"}.fa-eye-slash:before{content:"\f070"}.fa-facebook:before{content:"\f09a"}.fa-facebook-f:before{content:"\f39e"}.fa-facebook-messenger:before{content:"\f39f"}.fa-facebook-square:before{content:"\f082"}.fa-fan:before{content:"\f863"}.fa-fantasy-flight-games:before{content:"\f6dc"}.fa-fast-backward:before{content:"\f049"}.fa-fast-forward:before{content:"\f050"}.fa-fax:before{content:"\f1ac"}.fa-feather:before{content:"\f52d"}.fa-feather-alt:before{content:"\f56b"}.fa-fedex:before{content:"\f797"}.fa-fedora:before{content:"\f798"}.fa-female:before{content:"\f182"}.fa-fighter-jet:before{content:"\f0fb"}.fa-figma:before{content:"\f799"}.fa-file:before{content:"\f15b"}.fa-file-alt:before{content:"\f15c"}.fa-file-archive:before{content:"\f1c6"}.fa-file-audio:before{content:"\f1c7"}.fa-file-code:before{content:"\f1c9"}.fa-file-contract:before{content:"\f56c"}.fa-file-csv:before{content:"\f6dd"}.fa-file-download:before{content:"\f56d"}.fa-file-excel:before{content:"\f1c3"}.fa-file-export:before{content:"\f56e"}.fa-file-image:before{content:"\f1c5"}.fa-file-import:before{content:"\f56f"}.fa-file-invoice:before{content:"\f570"}.fa-file-invoice-dollar:before{content:"\f571"}.fa-file-medical:before{content:"\f477"}.fa-file-medical-alt:before{content:"\f478"}.fa-file-pdf:before{content:"\f1c1"}.fa-file-powerpoint:before{content:"\f1c4"}.fa-file-prescription:before{content:"\f572"}.fa-file-signature:before{content:"\f573"}.fa-file-upload:before{content:"\f574"}.fa-file-video:before{content:"\f1c8"}.fa-file-word:before{content:"\f1c2"}.fa-fill:before{content:"\f575"}.fa-fill-drip:before{content:"\f576"}.fa-film:before{content:"\f008"}.fa-filter:before{content:"\f0b0"}.fa-fingerprint:before{content:"\f577"}.fa-fire:before{content:"\f06d"}.fa-fire-alt:before{content:"\f7e4"}.fa-fire-extinguisher:before{content:"\f134"}.fa-firefox:before{content:"\f269"}.fa-firefox-browser:before{content:"\f907"}.fa-first-aid:before{content:"\f479"}.fa-first-order:before{content:"\f2b0"}.fa-first-order-alt:before{content:"\f50a"}.fa-firstdraft:before{content:"\f3a1"}.fa-fish:before{content:"\f578"}.fa-fist-raised:before{content:"\f6de"}.fa-flag:before{content:"\f024"}.fa-flag-checkered:before{content:"\f11e"}.fa-flag-usa:before{content:"\f74d"}.fa-flask:before{content:"\f0c3"}.fa-flickr:before{content:"\f16e"}.fa-flipboard:before{content:"\f44d"}.fa-flushed:before{content:"\f579"}.fa-fly:before{content:"\f417"}.fa-folder:before{content:"\f07b"}.fa-folder-minus:before{content:"\f65d"}.fa-folder-open:before{content:"\f07c"}.fa-folder-plus:before{content:"\f65e"}.fa-font:before{content:"\f031"}.fa-font-awesome:before{content:"\f2b4"}.fa-font-awesome-alt:before{content:"\f35c"}.fa-font-awesome-flag:before{content:"\f425"}.fa-font-awesome-logo-full:before{content:"\f4e6"}.fa-fonticons:before{content:"\f280"}.fa-fonticons-fi:before{content:"\f3a2"}.fa-football-ball:before{content:"\f44e"}.fa-fort-awesome:before{content:"\f286"}.fa-fort-awesome-alt:before{content:"\f3a3"}.fa-forumbee:before{content:"\f211"}.fa-forward:before{content:"\f04e"}.fa-foursquare:before{content:"\f180"}.fa-free-code-camp:before{content:"\f2c5"}.fa-freebsd:before{content:"\f3a4"}.fa-frog:before{content:"\f52e"}.fa-frown:before{content:"\f119"}.fa-frown-open:before{content:"\f57a"}.fa-fulcrum:before{content:"\f50b"}.fa-funnel-dollar:before{content:"\f662"}.fa-futbol:before{content:"\f1e3"}.fa-galactic-republic:before{content:"\f50c"}.fa-galactic-senate:before{content:"\f50d"}.fa-gamepad:before{content:"\f11b"}.fa-gas-pump:before{content:"\f52f"}.fa-gavel:before{content:"\f0e3"}.fa-gem:before{content:"\f3a5"}.fa-genderless:before{content:"\f22d"}.fa-get-pocket:before{content:"\f265"}.fa-gg:before{content:"\f260"}.fa-gg-circle:before{content:"\f261"}.fa-ghost:before{content:"\f6e2"}.fa-gift:before{content:"\f06b"}.fa-gifts:before{content:"\f79c"}.fa-git:before{content:"\f1d3"}.fa-git-alt:before{content:"\f841"}.fa-git-square:before{content:"\f1d2"}.fa-github:before{content:"\f09b"}.fa-github-alt:before{content:"\f113"}.fa-github-square:before{content:"\f092"}.fa-gitkraken:before{content:"\f3a6"}.fa-gitlab:before{content:"\f296"}.fa-gitter:before{content:"\f426"}.fa-glass-cheers:before{content:"\f79f"}.fa-glass-martini:before{content:"\f000"}.fa-glass-martini-alt:before{content:"\f57b"}.fa-glass-whiskey:before{content:"\f7a0"}.fa-glasses:before{content:"\f530"}.fa-glide:before{content:"\f2a5"}.fa-glide-g:before{content:"\f2a6"}.fa-globe:before{content:"\f0ac"}.fa-globe-africa:before{content:"\f57c"}.fa-globe-americas:before{content:"\f57d"}.fa-globe-asia:before{content:"\f57e"}.fa-globe-europe:before{content:"\f7a2"}.fa-gofore:before{content:"\f3a7"}.fa-golf-ball:before{content:"\f450"}.fa-goodreads:before{content:"\f3a8"}.fa-goodreads-g:before{content:"\f3a9"}.fa-google:before{content:"\f1a0"}.fa-google-drive:before{content:"\f3aa"}.fa-google-play:before{content:"\f3ab"}.fa-google-plus:before{content:"\f2b3"}.fa-google-plus-g:before{content:"\f0d5"}.fa-google-plus-square:before{content:"\f0d4"}.fa-google-wallet:before{content:"\f1ee"}.fa-gopuram:before{content:"\f664"}.fa-graduation-cap:before{content:"\f19d"}.fa-gratipay:before{content:"\f184"}.fa-grav:before{content:"\f2d6"}.fa-greater-than:before{content:"\f531"}.fa-greater-than-equal:before{content:"\f532"}.fa-grimace:before{content:"\f57f"}.fa-grin:before{content:"\f580"}.fa-grin-alt:before{content:"\f581"}.fa-grin-beam:before{content:"\f582"}.fa-grin-beam-sweat:before{content:"\f583"}.fa-grin-hearts:before{content:"\f584"}.fa-grin-squint:before{content:"\f585"}.fa-grin-squint-tears:before{content:"\f586"}.fa-grin-stars:before{content:"\f587"}.fa-grin-tears:before{content:"\f588"}.fa-grin-tongue:before{content:"\f589"}.fa-grin-tongue-squint:before{content:"\f58a"}.fa-grin-tongue-wink:before{content:"\f58b"}.fa-grin-wink:before{content:"\f58c"}.fa-grip-horizontal:before{content:"\f58d"}.fa-grip-lines:before{content:"\f7a4"}.fa-grip-lines-vertical:before{content:"\f7a5"}.fa-grip-vertical:before{content:"\f58e"}.fa-gripfire:before{content:"\f3ac"}.fa-grunt:before{content:"\f3ad"}.fa-guitar:before{content:"\f7a6"}.fa-gulp:before{content:"\f3ae"}.fa-h-square:before{content:"\f0fd"}.fa-hacker-news:before{content:"\f1d4"}.fa-hacker-news-square:before{content:"\f3af"}.fa-hackerrank:before{content:"\f5f7"}.fa-hamburger:before{content:"\f805"}.fa-hammer:before{content:"\f6e3"}.fa-hamsa:before{content:"\f665"}.fa-hand-holding:before{content:"\f4bd"}.fa-hand-holding-heart:before{content:"\f4be"}.fa-hand-holding-usd:before{content:"\f4c0"}.fa-hand-lizard:before{content:"\f258"}.fa-hand-middle-finger:before{content:"\f806"}.fa-hand-paper:before{content:"\f256"}.fa-hand-peace:before{content:"\f25b"}.fa-hand-point-down:before{content:"\f0a7"}.fa-hand-point-left:before{content:"\f0a5"}.fa-hand-point-right:before{content:"\f0a4"}.fa-hand-point-up:before{content:"\f0a6"}.fa-hand-pointer:before{content:"\f25a"}.fa-hand-rock:before{content:"\f255"}.fa-hand-scissors:before{content:"\f257"}.fa-hand-spock:before{content:"\f259"}.fa-hands:before{content:"\f4c2"}.fa-hands-helping:before{content:"\f4c4"}.fa-handshake:before{content:"\f2b5"}.fa-hanukiah:before{content:"\f6e6"}.fa-hard-hat:before{content:"\f807"}.fa-hashtag:before{content:"\f292"}.fa-hat-cowboy:before{content:"\f8c0"}.fa-hat-cowboy-side:before{content:"\f8c1"}.fa-hat-wizard:before{content:"\f6e8"}.fa-hdd:before{content:"\f0a0"}.fa-heading:before{content:"\f1dc"}.fa-headphones:before{content:"\f025"}.fa-headphones-alt:before{content:"\f58f"}.fa-headset:before{content:"\f590"}.fa-heart:before{content:"\f004"}.fa-heart-broken:before{content:"\f7a9"}.fa-heartbeat:before{content:"\f21e"}.fa-helicopter:before{content:"\f533"}.fa-highlighter:before{content:"\f591"}.fa-hiking:before{content:"\f6ec"}.fa-hippo:before{content:"\f6ed"}.fa-hips:before{content:"\f452"}.fa-hire-a-helper:before{content:"\f3b0"}.fa-history:before{content:"\f1da"}.fa-hockey-puck:before{content:"\f453"}.fa-holly-berry:before{content:"\f7aa"}.fa-home:before{content:"\f015"}.fa-hooli:before{content:"\f427"}.fa-hornbill:before{content:"\f592"}.fa-horse:before{content:"\f6f0"}.fa-horse-head:before{content:"\f7ab"}.fa-hospital:before{content:"\f0f8"}.fa-hospital-alt:before{content:"\f47d"}.fa-hospital-symbol:before{content:"\f47e"}.fa-hot-tub:before{content:"\f593"}.fa-hotdog:before{content:"\f80f"}.fa-hotel:before{content:"\f594"}.fa-hotjar:before{content:"\f3b1"}.fa-hourglass:before{content:"\f254"}.fa-hourglass-end:before{content:"\f253"}.fa-hourglass-half:before{content:"\f252"}.fa-hourglass-start:before{content:"\f251"}.fa-house-damage:before{content:"\f6f1"}.fa-houzz:before{content:"\f27c"}.fa-hryvnia:before{content:"\f6f2"}.fa-html5:before{content:"\f13b"}.fa-hubspot:before{content:"\f3b2"}.fa-i-cursor:before{content:"\f246"}.fa-ice-cream:before{content:"\f810"}.fa-icicles:before{content:"\f7ad"}.fa-icons:before{content:"\f86d"}.fa-id-badge:before{content:"\f2c1"}.fa-id-card:before{content:"\f2c2"}.fa-id-card-alt:before{content:"\f47f"}.fa-ideal:before{content:"\f913"}.fa-igloo:before{content:"\f7ae"}.fa-image:before{content:"\f03e"}.fa-images:before{content:"\f302"}.fa-imdb:before{content:"\f2d8"}.fa-inbox:before{content:"\f01c"}.fa-indent:before{content:"\f03c"}.fa-industry:before{content:"\f275"}.fa-infinity:before{content:"\f534"}.fa-info:before{content:"\f129"}.fa-info-circle:before{content:"\f05a"}.fa-instagram:before{content:"\f16d"}.fa-intercom:before{content:"\f7af"}.fa-internet-explorer:before{content:"\f26b"}.fa-invision:before{content:"\f7b0"}.fa-ioxhost:before{content:"\f208"}.fa-italic:before{content:"\f033"}.fa-itch-io:before{content:"\f83a"}.fa-itunes:before{content:"\f3b4"}.fa-itunes-note:before{content:"\f3b5"}.fa-java:before{content:"\f4e4"}.fa-jedi:before{content:"\f669"}.fa-jedi-order:before{content:"\f50e"}.fa-jenkins:before{content:"\f3b6"}.fa-jira:before{content:"\f7b1"}.fa-joget:before{content:"\f3b7"}.fa-joint:before{content:"\f595"}.fa-joomla:before{content:"\f1aa"}.fa-journal-whills:before{content:"\f66a"}.fa-js:before{content:"\f3b8"}.fa-js-square:before{content:"\f3b9"}.fa-jsfiddle:before{content:"\f1cc"}.fa-kaaba:before{content:"\f66b"}.fa-kaggle:before{content:"\f5fa"}.fa-key:before{content:"\f084"}.fa-keybase:before{content:"\f4f5"}.fa-keyboard:before{content:"\f11c"}.fa-keycdn:before{content:"\f3ba"}.fa-khanda:before{content:"\f66d"}.fa-kickstarter:before{content:"\f3bb"}.fa-kickstarter-k:before{content:"\f3bc"}.fa-kiss:before{content:"\f596"}.fa-kiss-beam:before{content:"\f597"}.fa-kiss-wink-heart:before{content:"\f598"}.fa-kiwi-bird:before{content:"\f535"}.fa-korvue:before{content:"\f42f"}.fa-landmark:before{content:"\f66f"}.fa-language:before{content:"\f1ab"}.fa-laptop:before{content:"\f109"}.fa-laptop-code:before{content:"\f5fc"}.fa-laptop-medical:before{content:"\f812"}.fa-laravel:before{content:"\f3bd"}.fa-lastfm:before{content:"\f202"}.fa-lastfm-square:before{content:"\f203"}.fa-laugh:before{content:"\f599"}.fa-laugh-beam:before{content:"\f59a"}.fa-laugh-squint:before{content:"\f59b"}.fa-laugh-wink:before{content:"\f59c"}.fa-layer-group:before{content:"\f5fd"}.fa-leaf:before{content:"\f06c"}.fa-leanpub:before{content:"\f212"}.fa-lemon:before{content:"\f094"}.fa-less:before{content:"\f41d"}.fa-less-than:before{content:"\f536"}.fa-less-than-equal:before{content:"\f537"}.fa-level-down-alt:before{content:"\f3be"}.fa-level-up-alt:before{content:"\f3bf"}.fa-life-ring:before{content:"\f1cd"}.fa-lightbulb:before{content:"\f0eb"}.fa-line:before{content:"\f3c0"}.fa-link:before{content:"\f0c1"}.fa-linkedin:before{content:"\f08c"}.fa-linkedin-in:before{content:"\f0e1"}.fa-linode:before{content:"\f2b8"}.fa-linux:before{content:"\f17c"}.fa-lira-sign:before{content:"\f195"}.fa-list:before{content:"\f03a"}.fa-list-alt:before{content:"\f022"}.fa-list-ol:before{content:"\f0cb"}.fa-list-ul:before{content:"\f0ca"}.fa-location-arrow:before{content:"\f124"}.fa-lock:before{content:"\f023"}.fa-lock-open:before{content:"\f3c1"}.fa-long-arrow-alt-down:before{content:"\f309"}.fa-long-arrow-alt-left:before{content:"\f30a"}.fa-long-arrow-alt-right:before{content:"\f30b"}.fa-long-arrow-alt-up:before{content:"\f30c"}.fa-low-vision:before{content:"\f2a8"}.fa-luggage-cart:before{content:"\f59d"}.fa-lyft:before{content:"\f3c3"}.fa-magento:before{content:"\f3c4"}.fa-magic:before{content:"\f0d0"}.fa-magnet:before{content:"\f076"}.fa-mail-bulk:before{content:"\f674"}.fa-mailchimp:before{content:"\f59e"}.fa-male:before{content:"\f183"}.fa-mandalorian:before{content:"\f50f"}.fa-map:before{content:"\f279"}.fa-map-marked:before{content:"\f59f"}.fa-map-marked-alt:before{content:"\f5a0"}.fa-map-marker:before{content:"\f041"}.fa-map-marker-alt:before{content:"\f3c5"}.fa-map-pin:before{content:"\f276"}.fa-map-signs:before{content:"\f277"}.fa-markdown:before{content:"\f60f"}.fa-marker:before{content:"\f5a1"}.fa-mars:before{content:"\f222"}.fa-mars-double:before{content:"\f227"}.fa-mars-stroke:before{content:"\f229"}.fa-mars-stroke-h:before{content:"\f22b"}.fa-mars-stroke-v:before{content:"\f22a"}.fa-mask:before{content:"\f6fa"}.fa-mastodon:before{content:"\f4f6"}.fa-maxcdn:before{content:"\f136"}.fa-mdb:before{content:"\f8ca"}.fa-medal:before{content:"\f5a2"}.fa-medapps:before{content:"\f3c6"}.fa-medium:before{content:"\f23a"}.fa-medium-m:before{content:"\f3c7"}.fa-medkit:before{content:"\f0fa"}.fa-medrt:before{content:"\f3c8"}.fa-meetup:before{content:"\f2e0"}.fa-megaport:before{content:"\f5a3"}.fa-meh:before{content:"\f11a"}.fa-meh-blank:before{content:"\f5a4"}.fa-meh-rolling-eyes:before{content:"\f5a5"}.fa-memory:before{content:"\f538"}.fa-mendeley:before{content:"\f7b3"}.fa-menorah:before{content:"\f676"}.fa-mercury:before{content:"\f223"}.fa-meteor:before{content:"\f753"}.fa-microblog:before{content:"\f91a"}.fa-microchip:before{content:"\f2db"}.fa-microphone:before{content:"\f130"}.fa-microphone-alt:before{content:"\f3c9"}.fa-microphone-alt-slash:before{content:"\f539"}.fa-microphone-slash:before{content:"\f131"}.fa-microscope:before{content:"\f610"}.fa-microsoft:before{content:"\f3ca"}.fa-minus:before{content:"\f068"}.fa-minus-circle:before{content:"\f056"}.fa-minus-square:before{content:"\f146"}.fa-mitten:before{content:"\f7b5"}.fa-mix:before{content:"\f3cb"}.fa-mixcloud:before{content:"\f289"}.fa-mizuni:before{content:"\f3cc"}.fa-mobile:before{content:"\f10b"}.fa-mobile-alt:before{content:"\f3cd"}.fa-modx:before{content:"\f285"}.fa-monero:before{content:"\f3d0"}.fa-money-bill:before{content:"\f0d6"}.fa-money-bill-alt:before{content:"\f3d1"}.fa-money-bill-wave:before{content:"\f53a"}.fa-money-bill-wave-alt:before{content:"\f53b"}.fa-money-check:before{content:"\f53c"}.fa-money-check-alt:before{content:"\f53d"}.fa-monument:before{content:"\f5a6"}.fa-moon:before{content:"\f186"}.fa-mortar-pestle:before{content:"\f5a7"}.fa-mosque:before{content:"\f678"}.fa-motorcycle:before{content:"\f21c"}.fa-mountain:before{content:"\f6fc"}.fa-mouse:before{content:"\f8cc"}.fa-mouse-pointer:before{content:"\f245"}.fa-mug-hot:before{content:"\f7b6"}.fa-music:before{content:"\f001"}.fa-napster:before{content:"\f3d2"}.fa-neos:before{content:"\f612"}.fa-network-wired:before{content:"\f6ff"}.fa-neuter:before{content:"\f22c"}.fa-newspaper:before{content:"\f1ea"}.fa-nimblr:before{content:"\f5a8"}.fa-node:before{content:"\f419"}.fa-node-js:before{content:"\f3d3"}.fa-not-equal:before{content:"\f53e"}.fa-notes-medical:before{content:"\f481"}.fa-npm:before{content:"\f3d4"}.fa-ns8:before{content:"\f3d5"}.fa-nutritionix:before{content:"\f3d6"}.fa-object-group:before{content:"\f247"}.fa-object-ungroup:before{content:"\f248"}.fa-odnoklassniki:before{content:"\f263"}.fa-odnoklassniki-square:before{content:"\f264"}.fa-oil-can:before{content:"\f613"}.fa-old-republic:before{content:"\f510"}.fa-om:before{content:"\f679"}.fa-opencart:before{content:"\f23d"}.fa-openid:before{content:"\f19b"}.fa-opera:before{content:"\f26a"}.fa-optin-monster:before{content:"\f23c"}.fa-orcid:before{content:"\f8d2"}.fa-osi:before{content:"\f41a"}.fa-otter:before{content:"\f700"}.fa-outdent:before{content:"\f03b"}.fa-page4:before{content:"\f3d7"}.fa-pagelines:before{content:"\f18c"}.fa-pager:before{content:"\f815"}.fa-paint-brush:before{content:"\f1fc"}.fa-paint-roller:before{content:"\f5aa"}.fa-palette:before{content:"\f53f"}.fa-palfed:before{content:"\f3d8"}.fa-pallet:before{content:"\f482"}.fa-paper-plane:before{content:"\f1d8"}.fa-paperclip:before{content:"\f0c6"}.fa-parachute-box:before{content:"\f4cd"}.fa-paragraph:before{content:"\f1dd"}.fa-parking:before{content:"\f540"}.fa-passport:before{content:"\f5ab"}.fa-pastafarianism:before{content:"\f67b"}.fa-paste:before{content:"\f0ea"}.fa-patreon:before{content:"\f3d9"}.fa-pause:before{content:"\f04c"}.fa-pause-circle:before{content:"\f28b"}.fa-paw:before{content:"\f1b0"}.fa-paypal:before{content:"\f1ed"}.fa-peace:before{content:"\f67c"}.fa-pen:before{content:"\f304"}.fa-pen-alt:before{content:"\f305"}.fa-pen-fancy:before{content:"\f5ac"}.fa-pen-nib:before{content:"\f5ad"}.fa-pen-square:before{content:"\f14b"}.fa-pencil-alt:before{content:"\f303"}.fa-pencil-ruler:before{content:"\f5ae"}.fa-penny-arcade:before{content:"\f704"}.fa-people-carry:before{content:"\f4ce"}.fa-pepper-hot:before{content:"\f816"}.fa-percent:before{content:"\f295"}.fa-percentage:before{content:"\f541"}.fa-periscope:before{content:"\f3da"}.fa-person-booth:before{content:"\f756"}.fa-phabricator:before{content:"\f3db"}.fa-phoenix-framework:before{content:"\f3dc"}.fa-phoenix-squadron:before{content:"\f511"}.fa-phone:before{content:"\f095"}.fa-phone-alt:before{content:"\f879"}.fa-phone-slash:before{content:"\f3dd"}.fa-phone-square:before{content:"\f098"}.fa-phone-square-alt:before{content:"\f87b"}.fa-phone-volume:before{content:"\f2a0"}.fa-photo-video:before{content:"\f87c"}.fa-php:before{content:"\f457"}.fa-pied-piper:before{content:"\f2ae"}.fa-pied-piper-alt:before{content:"\f1a8"}.fa-pied-piper-hat:before{content:"\f4e5"}.fa-pied-piper-pp:before{content:"\f1a7"}.fa-pied-piper-square:before{content:"\f91e"}.fa-piggy-bank:before{content:"\f4d3"}.fa-pills:before{content:"\f484"}.fa-pinterest:before{content:"\f0d2"}.fa-pinterest-p:before{content:"\f231"}.fa-pinterest-square:before{content:"\f0d3"}.fa-pizza-slice:before{content:"\f818"}.fa-place-of-worship:before{content:"\f67f"}.fa-plane:before{content:"\f072"}.fa-plane-arrival:before{content:"\f5af"}.fa-plane-departure:before{content:"\f5b0"}.fa-play:before{content:"\f04b"}.fa-play-circle:before{content:"\f144"}.fa-playstation:before{content:"\f3df"}.fa-plug:before{content:"\f1e6"}.fa-plus:before{content:"\f067"}.fa-plus-circle:before{content:"\f055"}.fa-plus-square:before{content:"\f0fe"}.fa-podcast:before{content:"\f2ce"}.fa-poll:before{content:"\f681"}.fa-poll-h:before{content:"\f682"}.fa-poo:before{content:"\f2fe"}.fa-poo-storm:before{content:"\f75a"}.fa-poop:before{content:"\f619"}.fa-portrait:before{content:"\f3e0"}.fa-pound-sign:before{content:"\f154"}.fa-power-off:before{content:"\f011"}.fa-pray:before{content:"\f683"}.fa-praying-hands:before{content:"\f684"}.fa-prescription:before{content:"\f5b1"}.fa-prescription-bottle:before{content:"\f485"}.fa-prescription-bottle-alt:before{content:"\f486"}.fa-print:before{content:"\f02f"}.fa-procedures:before{content:"\f487"}.fa-product-hunt:before{content:"\f288"}.fa-project-diagram:before{content:"\f542"}.fa-pushed:before{content:"\f3e1"}.fa-puzzle-piece:before{content:"\f12e"}.fa-python:before{content:"\f3e2"}.fa-qq:before{content:"\f1d6"}.fa-qrcode:before{content:"\f029"}.fa-question:before{content:"\f128"}.fa-question-circle:before{content:"\f059"}.fa-quidditch:before{content:"\f458"}.fa-quinscape:before{content:"\f459"}.fa-quora:before{content:"\f2c4"}.fa-quote-left:before{content:"\f10d"}.fa-quote-right:before{content:"\f10e"}.fa-quran:before{content:"\f687"}.fa-r-project:before{content:"\f4f7"}.fa-radiation:before{content:"\f7b9"}.fa-radiation-alt:before{content:"\f7ba"}.fa-rainbow:before{content:"\f75b"}.fa-random:before{content:"\f074"}.fa-raspberry-pi:before{content:"\f7bb"}.fa-ravelry:before{content:"\f2d9"}.fa-react:before{content:"\f41b"}.fa-reacteurope:before{content:"\f75d"}.fa-readme:before{content:"\f4d5"}.fa-rebel:before{content:"\f1d0"}.fa-receipt:before{content:"\f543"}.fa-record-vinyl:before{content:"\f8d9"}.fa-recycle:before{content:"\f1b8"}.fa-red-river:before{content:"\f3e3"}.fa-reddit:before{content:"\f1a1"}.fa-reddit-alien:before{content:"\f281"}.fa-reddit-square:before{content:"\f1a2"}.fa-redhat:before{content:"\f7bc"}.fa-redo:before{content:"\f01e"}.fa-redo-alt:before{content:"\f2f9"}.fa-registered:before{content:"\f25d"}.fa-remove-format:before{content:"\f87d"}.fa-renren:before{content:"\f18b"}.fa-reply:before{content:"\f3e5"}.fa-reply-all:before{content:"\f122"}.fa-replyd:before{content:"\f3e6"}.fa-republican:before{content:"\f75e"}.fa-researchgate:before{content:"\f4f8"}.fa-resolving:before{content:"\f3e7"}.fa-restroom:before{content:"\f7bd"}.fa-retweet:before{content:"\f079"}.fa-rev:before{content:"\f5b2"}.fa-ribbon:before{content:"\f4d6"}.fa-ring:before{content:"\f70b"}.fa-road:before{content:"\f018"}.fa-robot:before{content:"\f544"}.fa-rocket:before{content:"\f135"}.fa-rocketchat:before{content:"\f3e8"}.fa-rockrms:before{content:"\f3e9"}.fa-route:before{content:"\f4d7"}.fa-rss:before{content:"\f09e"}.fa-rss-square:before{content:"\f143"}.fa-ruble-sign:before{content:"\f158"}.fa-ruler:before{content:"\f545"}.fa-ruler-combined:before{content:"\f546"}.fa-ruler-horizontal:before{content:"\f547"}.fa-ruler-vertical:before{content:"\f548"}.fa-running:before{content:"\f70c"}.fa-rupee-sign:before{content:"\f156"}.fa-sad-cry:before{content:"\f5b3"}.fa-sad-tear:before{content:"\f5b4"}.fa-safari:before{content:"\f267"}.fa-salesforce:before{content:"\f83b"}.fa-sass:before{content:"\f41e"}.fa-satellite:before{content:"\f7bf"}.fa-satellite-dish:before{content:"\f7c0"}.fa-save:before{content:"\f0c7"}.fa-schlix:before{content:"\f3ea"}.fa-school:before{content:"\f549"}.fa-screwdriver:before{content:"\f54a"}.fa-scribd:before{content:"\f28a"}.fa-scroll:before{content:"\f70e"}.fa-sd-card:before{content:"\f7c2"}.fa-search:before{content:"\f002"}.fa-search-dollar:before{content:"\f688"}.fa-search-location:before{content:"\f689"}.fa-search-minus:before{content:"\f010"}.fa-search-plus:before{content:"\f00e"}.fa-searchengin:before{content:"\f3eb"}.fa-seedling:before{content:"\f4d8"}.fa-sellcast:before{content:"\f2da"}.fa-sellsy:before{content:"\f213"}.fa-server:before{content:"\f233"}.fa-servicestack:before{content:"\f3ec"}.fa-shapes:before{content:"\f61f"}.fa-share:before{content:"\f064"}.fa-share-alt:before{content:"\f1e0"}.fa-share-alt-square:before{content:"\f1e1"}.fa-share-square:before{content:"\f14d"}.fa-shekel-sign:before{content:"\f20b"}.fa-shield-alt:before{content:"\f3ed"}.fa-ship:before{content:"\f21a"}.fa-shipping-fast:before{content:"\f48b"}.fa-shirtsinbulk:before{content:"\f214"}.fa-shoe-prints:before{content:"\f54b"}.fa-shopping-bag:before{content:"\f290"}.fa-shopping-basket:before{content:"\f291"}.fa-shopping-cart:before{content:"\f07a"}.fa-shopware:before{content:"\f5b5"}.fa-shower:before{content:"\f2cc"}.fa-shuttle-van:before{content:"\f5b6"}.fa-sign:before{content:"\f4d9"}.fa-sign-in-alt:before{content:"\f2f6"}.fa-sign-language:before{content:"\f2a7"}.fa-sign-out-alt:before{content:"\f2f5"}.fa-signal:before{content:"\f012"}.fa-signature:before{content:"\f5b7"}.fa-sim-card:before{content:"\f7c4"}.fa-simplybuilt:before{content:"\f215"}.fa-sistrix:before{content:"\f3ee"}.fa-sitemap:before{content:"\f0e8"}.fa-sith:before{content:"\f512"}.fa-skating:before{content:"\f7c5"}.fa-sketch:before{content:"\f7c6"}.fa-skiing:before{content:"\f7c9"}.fa-skiing-nordic:before{content:"\f7ca"}.fa-skull:before{content:"\f54c"}.fa-skull-crossbones:before{content:"\f714"}.fa-skyatlas:before{content:"\f216"}.fa-skype:before{content:"\f17e"}.fa-slack:before{content:"\f198"}.fa-slack-hash:before{content:"\f3ef"}.fa-slash:before{content:"\f715"}.fa-sleigh:before{content:"\f7cc"}.fa-sliders-h:before{content:"\f1de"}.fa-slideshare:before{content:"\f1e7"}.fa-smile:before{content:"\f118"}.fa-smile-beam:before{content:"\f5b8"}.fa-smile-wink:before{content:"\f4da"}.fa-smog:before{content:"\f75f"}.fa-smoking:before{content:"\f48d"}.fa-smoking-ban:before{content:"\f54d"}.fa-sms:before{content:"\f7cd"}.fa-snapchat:before{content:"\f2ab"}.fa-snapchat-ghost:before{content:"\f2ac"}.fa-snapchat-square:before{content:"\f2ad"}.fa-snowboarding:before{content:"\f7ce"}.fa-snowflake:before{content:"\f2dc"}.fa-snowman:before{content:"\f7d0"}.fa-snowplow:before{content:"\f7d2"}.fa-socks:before{content:"\f696"}.fa-solar-panel:before{content:"\f5ba"}.fa-sort:before{content:"\f0dc"}.fa-sort-alpha-down:before{content:"\f15d"}.fa-sort-alpha-down-alt:before{content:"\f881"}.fa-sort-alpha-up:before{content:"\f15e"}.fa-sort-alpha-up-alt:before{content:"\f882"}.fa-sort-amount-down:before{content:"\f160"}.fa-sort-amount-down-alt:before{content:"\f884"}.fa-sort-amount-up:before{content:"\f161"}.fa-sort-amount-up-alt:before{content:"\f885"}.fa-sort-down:before{content:"\f0dd"}.fa-sort-numeric-down:before{content:"\f162"}.fa-sort-numeric-down-alt:before{content:"\f886"}.fa-sort-numeric-up:before{content:"\f163"}.fa-sort-numeric-up-alt:before{content:"\f887"}.fa-sort-up:before{content:"\f0de"}.fa-soundcloud:before{content:"\f1be"}.fa-sourcetree:before{content:"\f7d3"}.fa-spa:before{content:"\f5bb"}.fa-space-shuttle:before{content:"\f197"}.fa-speakap:before{content:"\f3f3"}.fa-speaker-deck:before{content:"\f83c"}.fa-spell-check:before{content:"\f891"}.fa-spider:before{content:"\f717"}.fa-spinner:before{content:"\f110"}.fa-splotch:before{content:"\f5bc"}.fa-spotify:before{content:"\f1bc"}.fa-spray-can:before{content:"\f5bd"}.fa-square:before{content:"\f0c8"}.fa-square-full:before{content:"\f45c"}.fa-square-root-alt:before{content:"\f698"}.fa-squarespace:before{content:"\f5be"}.fa-stack-exchange:before{content:"\f18d"}.fa-stack-overflow:before{content:"\f16c"}.fa-stackpath:before{content:"\f842"}.fa-stamp:before{content:"\f5bf"}.fa-star:before{content:"\f005"}.fa-star-and-crescent:before{content:"\f699"}.fa-star-half:before{content:"\f089"}.fa-star-half-alt:before{content:"\f5c0"}.fa-star-of-david:before{content:"\f69a"}.fa-star-of-life:before{content:"\f621"}.fa-staylinked:before{content:"\f3f5"}.fa-steam:before{content:"\f1b6"}.fa-steam-square:before{content:"\f1b7"}.fa-steam-symbol:before{content:"\f3f6"}.fa-step-backward:before{content:"\f048"}.fa-step-forward:before{content:"\f051"}.fa-stethoscope:before{content:"\f0f1"}.fa-sticker-mule:before{content:"\f3f7"}.fa-sticky-note:before{content:"\f249"}.fa-stop:before{content:"\f04d"}.fa-stop-circle:before{content:"\f28d"}.fa-stopwatch:before{content:"\f2f2"}.fa-store:before{content:"\f54e"}.fa-store-alt:before{content:"\f54f"}.fa-strava:before{content:"\f428"}.fa-stream:before{content:"\f550"}.fa-street-view:before{content:"\f21d"}.fa-strikethrough:before{content:"\f0cc"}.fa-stripe:before{content:"\f429"}.fa-stripe-s:before{content:"\f42a"}.fa-stroopwafel:before{content:"\f551"}.fa-studiovinari:before{content:"\f3f8"}.fa-stumbleupon:before{content:"\f1a4"}.fa-stumbleupon-circle:before{content:"\f1a3"}.fa-subscript:before{content:"\f12c"}.fa-subway:before{content:"\f239"}.fa-suitcase:before{content:"\f0f2"}.fa-suitcase-rolling:before{content:"\f5c1"}.fa-sun:before{content:"\f185"}.fa-superpowers:before{content:"\f2dd"}.fa-superscript:before{content:"\f12b"}.fa-supple:before{content:"\f3f9"}.fa-surprise:before{content:"\f5c2"}.fa-suse:before{content:"\f7d6"}.fa-swatchbook:before{content:"\f5c3"}.fa-swift:before{content:"\f8e1"}.fa-swimmer:before{content:"\f5c4"}.fa-swimming-pool:before{content:"\f5c5"}.fa-symfony:before{content:"\f83d"}.fa-synagogue:before{content:"\f69b"}.fa-sync:before{content:"\f021"}.fa-sync-alt:before{content:"\f2f1"}.fa-syringe:before{content:"\f48e"}.fa-table:before{content:"\f0ce"}.fa-table-tennis:before{content:"\f45d"}.fa-tablet:before{content:"\f10a"}.fa-tablet-alt:before{content:"\f3fa"}.fa-tablets:before{content:"\f490"}.fa-tachometer-alt:before{content:"\f3fd"}.fa-tag:before{content:"\f02b"}.fa-tags:before{content:"\f02c"}.fa-tape:before{content:"\f4db"}.fa-tasks:before{content:"\f0ae"}.fa-taxi:before{content:"\f1ba"}.fa-teamspeak:before{content:"\f4f9"}.fa-teeth:before{content:"\f62e"}.fa-teeth-open:before{content:"\f62f"}.fa-telegram:before{content:"\f2c6"}.fa-telegram-plane:before{content:"\f3fe"}.fa-temperature-high:before{content:"\f769"}.fa-temperature-low:before{content:"\f76b"}.fa-tencent-weibo:before{content:"\f1d5"}.fa-tenge:before{content:"\f7d7"}.fa-terminal:before{content:"\f120"}.fa-text-height:before{content:"\f034"}.fa-text-width:before{content:"\f035"}.fa-th:before{content:"\f00a"}.fa-th-large:before{content:"\f009"}.fa-th-list:before{content:"\f00b"}.fa-the-red-yeti:before{content:"\f69d"}.fa-theater-masks:before{content:"\f630"}.fa-themeco:before{content:"\f5c6"}.fa-themeisle:before{content:"\f2b2"}.fa-thermometer:before{content:"\f491"}.fa-thermometer-empty:before{content:"\f2cb"}.fa-thermometer-full:before{content:"\f2c7"}.fa-thermometer-half:before{content:"\f2c9"}.fa-thermometer-quarter:before{content:"\f2ca"}.fa-thermometer-three-quarters:before{content:"\f2c8"}.fa-think-peaks:before{content:"\f731"}.fa-thumbs-down:before{content:"\f165"}.fa-thumbs-up:before{content:"\f164"}.fa-thumbtack:before{content:"\f08d"}.fa-ticket-alt:before{content:"\f3ff"}.fa-times:before{content:"\f00d"}.fa-times-circle:before{content:"\f057"}.fa-tint:before{content:"\f043"}.fa-tint-slash:before{content:"\f5c7"}.fa-tired:before{content:"\f5c8"}.fa-toggle-off:before{content:"\f204"}.fa-toggle-on:before{content:"\f205"}.fa-toilet:before{content:"\f7d8"}.fa-toilet-paper:before{content:"\f71e"}.fa-toolbox:before{content:"\f552"}.fa-tools:before{content:"\f7d9"}.fa-tooth:before{content:"\f5c9"}.fa-torah:before{content:"\f6a0"}.fa-torii-gate:before{content:"\f6a1"}.fa-tractor:before{content:"\f722"}.fa-trade-federation:before{content:"\f513"}.fa-trademark:before{content:"\f25c"}.fa-traffic-light:before{content:"\f637"}.fa-trailer:before{content:"\f941"}.fa-train:before{content:"\f238"}.fa-tram:before{content:"\f7da"}.fa-transgender:before{content:"\f224"}.fa-transgender-alt:before{content:"\f225"}.fa-trash:before{content:"\f1f8"}.fa-trash-alt:before{content:"\f2ed"}.fa-trash-restore:before{content:"\f829"}.fa-trash-restore-alt:before{content:"\f82a"}.fa-tree:before{content:"\f1bb"}.fa-trello:before{content:"\f181"}.fa-tripadvisor:before{content:"\f262"}.fa-trophy:before{content:"\f091"}.fa-truck:before{content:"\f0d1"}.fa-truck-loading:before{content:"\f4de"}.fa-truck-monster:before{content:"\f63b"}.fa-truck-moving:before{content:"\f4df"}.fa-truck-pickup:before{content:"\f63c"}.fa-tshirt:before{content:"\f553"}.fa-tty:before{content:"\f1e4"}.fa-tumblr:before{content:"\f173"}.fa-tumblr-square:before{content:"\f174"}.fa-tv:before{content:"\f26c"}.fa-twitch:before{content:"\f1e8"}.fa-twitter:before{content:"\f099"}.fa-twitter-square:before{content:"\f081"}.fa-typo3:before{content:"\f42b"}.fa-uber:before{content:"\f402"}.fa-ubuntu:before{content:"\f7df"}.fa-uikit:before{content:"\f403"}.fa-umbraco:before{content:"\f8e8"}.fa-umbrella:before{content:"\f0e9"}.fa-umbrella-beach:before{content:"\f5ca"}.fa-underline:before{content:"\f0cd"}.fa-undo:before{content:"\f0e2"}.fa-undo-alt:before{content:"\f2ea"}.fa-uniregistry:before{content:"\f404"}.fa-unity:before{content:"\f949"}.fa-universal-access:before{content:"\f29a"}.fa-university:before{content:"\f19c"}.fa-unlink:before{content:"\f127"}.fa-unlock:before{content:"\f09c"}.fa-unlock-alt:before{content:"\f13e"}.fa-untappd:before{content:"\f405"}.fa-upload:before{content:"\f093"}.fa-ups:before{content:"\f7e0"}.fa-usb:before{content:"\f287"}.fa-user:before{content:"\f007"}.fa-user-alt:before{content:"\f406"}.fa-user-alt-slash:before{content:"\f4fa"}.fa-user-astronaut:before{content:"\f4fb"}.fa-user-check:before{content:"\f4fc"}.fa-user-circle:before{content:"\f2bd"}.fa-user-clock:before{content:"\f4fd"}.fa-user-cog:before{content:"\f4fe"}.fa-user-edit:before{content:"\f4ff"}.fa-user-friends:before{content:"\f500"}.fa-user-graduate:before{content:"\f501"}.fa-user-injured:before{content:"\f728"}.fa-user-lock:before{content:"\f502"}.fa-user-md:before{content:"\f0f0"}.fa-user-minus:before{content:"\f503"}.fa-user-ninja:before{content:"\f504"}.fa-user-nurse:before{content:"\f82f"}.fa-user-plus:before{content:"\f234"}.fa-user-secret:before{content:"\f21b"}.fa-user-shield:before{content:"\f505"}.fa-user-slash:before{content:"\f506"}.fa-user-tag:before{content:"\f507"}.fa-user-tie:before{content:"\f508"}.fa-user-times:before{content:"\f235"}.fa-users:before{content:"\f0c0"}.fa-users-cog:before{content:"\f509"}.fa-usps:before{content:"\f7e1"}.fa-ussunnah:before{content:"\f407"}.fa-utensil-spoon:before{content:"\f2e5"}.fa-utensils:before{content:"\f2e7"}.fa-vaadin:before{content:"\f408"}.fa-vector-square:before{content:"\f5cb"}.fa-venus:before{content:"\f221"}.fa-venus-double:before{content:"\f226"}.fa-venus-mars:before{content:"\f228"}.fa-viacoin:before{content:"\f237"}.fa-viadeo:before{content:"\f2a9"}.fa-viadeo-square:before{content:"\f2aa"}.fa-vial:before{content:"\f492"}.fa-vials:before{content:"\f493"}.fa-viber:before{content:"\f409"}.fa-video:before{content:"\f03d"}.fa-video-slash:before{content:"\f4e2"}.fa-vihara:before{content:"\f6a7"}.fa-vimeo:before{content:"\f40a"}.fa-vimeo-square:before{content:"\f194"}.fa-vimeo-v:before{content:"\f27d"}.fa-vine:before{content:"\f1ca"}.fa-vk:before{content:"\f189"}.fa-vnv:before{content:"\f40b"}.fa-voicemail:before{content:"\f897"}.fa-volleyball-ball:before{content:"\f45f"}.fa-volume-down:before{content:"\f027"}.fa-volume-mute:before{content:"\f6a9"}.fa-volume-off:before{content:"\f026"}.fa-volume-up:before{content:"\f028"}.fa-vote-yea:before{content:"\f772"}.fa-vr-cardboard:before{content:"\f729"}.fa-vuejs:before{content:"\f41f"}.fa-walking:before{content:"\f554"}.fa-wallet:before{content:"\f555"}.fa-warehouse:before{content:"\f494"}.fa-water:before{content:"\f773"}.fa-wave-square:before{content:"\f83e"}.fa-waze:before{content:"\f83f"}.fa-weebly:before{content:"\f5cc"}.fa-weibo:before{content:"\f18a"}.fa-weight:before{content:"\f496"}.fa-weight-hanging:before{content:"\f5cd"}.fa-weixin:before{content:"\f1d7"}.fa-whatsapp:before{content:"\f232"}.fa-whatsapp-square:before{content:"\f40c"}.fa-wheelchair:before{content:"\f193"}.fa-whmcs:before{content:"\f40d"}.fa-wifi:before{content:"\f1eb"}.fa-wikipedia-w:before{content:"\f266"}.fa-wind:before{content:"\f72e"}.fa-window-close:before{content:"\f410"}.fa-window-maximize:before{content:"\f2d0"}.fa-window-minimize:before{content:"\f2d1"}.fa-window-restore:before{content:"\f2d2"}.fa-windows:before{content:"\f17a"}.fa-wine-bottle:before{content:"\f72f"}.fa-wine-glass:before{content:"\f4e3"}.fa-wine-glass-alt:before{content:"\f5ce"}.fa-wix:before{content:"\f5cf"}.fa-wizards-of-the-coast:before{content:"\f730"}.fa-wolf-pack-battalion:before{content:"\f514"}.fa-won-sign:before{content:"\f159"}.fa-wordpress:before{content:"\f19a"}.fa-wordpress-simple:before{content:"\f411"}.fa-wpbeginner:before{content:"\f297"}.fa-wpexplorer:before{content:"\f2de"}.fa-wpforms:before{content:"\f298"}.fa-wpressr:before{content:"\f3e4"}.fa-wrench:before{content:"\f0ad"}.fa-x-ray:before{content:"\f497"}.fa-xbox:before{content:"\f412"}.fa-xing:before{content:"\f168"}.fa-xing-square:before{content:"\f169"}.fa-y-combinator:before{content:"\f23b"}.fa-yahoo:before{content:"\f19e"}.fa-yammer:before{content:"\f840"}.fa-yandex:before{content:"\f413"}.fa-yandex-international:before{content:"\f414"}.fa-yarn:before{content:"\f7e3"}.fa-yelp:before{content:"\f1e9"}.fa-yen-sign:before{content:"\f157"}.fa-yin-yang:before{content:"\f6ad"}.fa-yoast:before{content:"\f2b1"}.fa-youtube:before{content:"\f167"}.fa-youtube-square:before{content:"\f431"}.fa-zhihu:before{content:"\f63f"}.sr-only{border:0;clip:rect(0,0,0,0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px}.sr-only-focusable:active,.sr-only-focusable:focus{clip:auto;height:auto;margin:0;overflow:visible;position:static;width:auto}@font-face{font-family:"Font Awesome 5 Brands";font-style:normal;font-weight:normal;font-display:auto;src:url(../webfonts/fa-brands-400.eot);src:url(../webfonts/fa-brands-400.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-brands-400.woff2) format("woff2"),url(../webfonts/fa-brands-400.woff) format("woff"),url(../webfonts/fa-brands-400.ttf) format("truetype"),url(../webfonts/fa-brands-400.svg#fontawesome) format("svg")}.fab{font-family:"Font Awesome 5 Brands"}@font-face{font-family:"Font Awesome 5 Free";font-style:normal;font-weight:400;font-display:auto;src:url(../webfonts/fa-regular-400.eot);src:url(../webfonts/fa-regular-400.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-regular-400.woff2) format("woff2"),url(../webfonts/fa-regular-400.woff) format("woff"),url(../webfonts/fa-regular-400.ttf) format("truetype"),url(../webfonts/fa-regular-400.svg#fontawesome) format("svg")}.far{font-weight:400}@font-face{font-family:"Font Awesome 5 Free";font-style:normal;font-weight:900;font-display:auto;src:url(../webfonts/fa-solid-900.eot);src:url(../webfonts/fa-solid-900.eot?#iefix) format("embedded-opentype"),url(../webfonts/fa-solid-900.woff2) format("woff2"),url(../webfonts/fa-solid-900.woff) format("woff"),url(../webfonts/fa-solid-900.ttf) format("truetype"),url(../webfonts/fa-solid-900.svg#fontawesome) format("svg")}.fa,.far,.fas{font-family:"Font Awesome 5 Free"}.fa,.fas{font-weight:900} \ No newline at end of file diff --git a/vex8/patch/cdn/ionicons.2.0.1.min.css b/vex8/patch/cdn/ionicons.2.0.1.min.css new file mode 100644 index 000000000..049b64865 --- /dev/null +++ b/vex8/patch/cdn/ionicons.2.0.1.min.css @@ -0,0 +1,11 @@ +@charset "UTF-8";/*! + Ionicons, v2.0.0 + Created by Ben Sperry for the Ionic Framework, http://ionicons.com/ + https://twitter.com/benjsperry https://twitter.com/ionicframework + MIT License: https://github.com/driftyco/ionicons + + Android-style icons originally built by Google’s + Material Design Icons: https://github.com/google/material-design-icons + used under CC BY http://creativecommons.org/licenses/by/4.0/ + Modified icons to fit ionicon’s grid from original. +*/@font-face{font-family:"Ionicons";src:url("../fonts/ionicons.eot?v=2.0.0");src:url("../fonts/ionicons.eot?v=2.0.0#iefix") format("embedded-opentype"),url("../fonts/ionicons.ttf?v=2.0.0") format("truetype"),url("../fonts/ionicons.woff?v=2.0.0") format("woff"),url("../fonts/ionicons.svg?v=2.0.0#Ionicons") format("svg");font-weight:normal;font-style:normal}.ion,.ionicons,.ion-alert:before,.ion-alert-circled:before,.ion-android-add:before,.ion-android-add-circle:before,.ion-android-alarm-clock:before,.ion-android-alert:before,.ion-android-apps:before,.ion-android-archive:before,.ion-android-arrow-back:before,.ion-android-arrow-down:before,.ion-android-arrow-dropdown:before,.ion-android-arrow-dropdown-circle:before,.ion-android-arrow-dropleft:before,.ion-android-arrow-dropleft-circle:before,.ion-android-arrow-dropright:before,.ion-android-arrow-dropright-circle:before,.ion-android-arrow-dropup:before,.ion-android-arrow-dropup-circle:before,.ion-android-arrow-forward:before,.ion-android-arrow-up:before,.ion-android-attach:before,.ion-android-bar:before,.ion-android-bicycle:before,.ion-android-boat:before,.ion-android-bookmark:before,.ion-android-bulb:before,.ion-android-bus:before,.ion-android-calendar:before,.ion-android-call:before,.ion-android-camera:before,.ion-android-cancel:before,.ion-android-car:before,.ion-android-cart:before,.ion-android-chat:before,.ion-android-checkbox:before,.ion-android-checkbox-blank:before,.ion-android-checkbox-outline:before,.ion-android-checkbox-outline-blank:before,.ion-android-checkmark-circle:before,.ion-android-clipboard:before,.ion-android-close:before,.ion-android-cloud:before,.ion-android-cloud-circle:before,.ion-android-cloud-done:before,.ion-android-cloud-outline:before,.ion-android-color-palette:before,.ion-android-compass:before,.ion-android-contact:before,.ion-android-contacts:before,.ion-android-contract:before,.ion-android-create:before,.ion-android-delete:before,.ion-android-desktop:before,.ion-android-document:before,.ion-android-done:before,.ion-android-done-all:before,.ion-android-download:before,.ion-android-drafts:before,.ion-android-exit:before,.ion-android-expand:before,.ion-android-favorite:before,.ion-android-favorite-outline:before,.ion-android-film:before,.ion-android-folder:before,.ion-android-folder-open:before,.ion-android-funnel:before,.ion-android-globe:before,.ion-android-hand:before,.ion-android-hangout:before,.ion-android-happy:before,.ion-android-home:before,.ion-android-image:before,.ion-android-laptop:before,.ion-android-list:before,.ion-android-locate:before,.ion-android-lock:before,.ion-android-mail:before,.ion-android-map:before,.ion-android-menu:before,.ion-android-microphone:before,.ion-android-microphone-off:before,.ion-android-more-horizontal:before,.ion-android-more-vertical:before,.ion-android-navigate:before,.ion-android-notifications:before,.ion-android-notifications-none:before,.ion-android-notifications-off:before,.ion-android-open:before,.ion-android-options:before,.ion-android-people:before,.ion-android-person:before,.ion-android-person-add:before,.ion-android-phone-landscape:before,.ion-android-phone-portrait:before,.ion-android-pin:before,.ion-android-plane:before,.ion-android-playstore:before,.ion-android-print:before,.ion-android-radio-button-off:before,.ion-android-radio-button-on:before,.ion-android-refresh:before,.ion-android-remove:before,.ion-android-remove-circle:before,.ion-android-restaurant:before,.ion-android-sad:before,.ion-android-search:before,.ion-android-send:before,.ion-android-settings:before,.ion-android-share:before,.ion-android-share-alt:before,.ion-android-star:before,.ion-android-star-half:before,.ion-android-star-outline:before,.ion-android-stopwatch:before,.ion-android-subway:before,.ion-android-sunny:before,.ion-android-sync:before,.ion-android-textsms:before,.ion-android-time:before,.ion-android-train:before,.ion-android-unlock:before,.ion-android-upload:before,.ion-android-volume-down:before,.ion-android-volume-mute:before,.ion-android-volume-off:before,.ion-android-volume-up:before,.ion-android-walk:before,.ion-android-warning:before,.ion-android-watch:before,.ion-android-wifi:before,.ion-aperture:before,.ion-archive:before,.ion-arrow-down-a:before,.ion-arrow-down-b:before,.ion-arrow-down-c:before,.ion-arrow-expand:before,.ion-arrow-graph-down-left:before,.ion-arrow-graph-down-right:before,.ion-arrow-graph-up-left:before,.ion-arrow-graph-up-right:before,.ion-arrow-left-a:before,.ion-arrow-left-b:before,.ion-arrow-left-c:before,.ion-arrow-move:before,.ion-arrow-resize:before,.ion-arrow-return-left:before,.ion-arrow-return-right:before,.ion-arrow-right-a:before,.ion-arrow-right-b:before,.ion-arrow-right-c:before,.ion-arrow-shrink:before,.ion-arrow-swap:before,.ion-arrow-up-a:before,.ion-arrow-up-b:before,.ion-arrow-up-c:before,.ion-asterisk:before,.ion-at:before,.ion-backspace:before,.ion-backspace-outline:before,.ion-bag:before,.ion-battery-charging:before,.ion-battery-empty:before,.ion-battery-full:before,.ion-battery-half:before,.ion-battery-low:before,.ion-beaker:before,.ion-beer:before,.ion-bluetooth:before,.ion-bonfire:before,.ion-bookmark:before,.ion-bowtie:before,.ion-briefcase:before,.ion-bug:before,.ion-calculator:before,.ion-calendar:before,.ion-camera:before,.ion-card:before,.ion-cash:before,.ion-chatbox:before,.ion-chatbox-working:before,.ion-chatboxes:before,.ion-chatbubble:before,.ion-chatbubble-working:before,.ion-chatbubbles:before,.ion-checkmark:before,.ion-checkmark-circled:before,.ion-checkmark-round:before,.ion-chevron-down:before,.ion-chevron-left:before,.ion-chevron-right:before,.ion-chevron-up:before,.ion-clipboard:before,.ion-clock:before,.ion-close:before,.ion-close-circled:before,.ion-close-round:before,.ion-closed-captioning:before,.ion-cloud:before,.ion-code:before,.ion-code-download:before,.ion-code-working:before,.ion-coffee:before,.ion-compass:before,.ion-compose:before,.ion-connection-bars:before,.ion-contrast:before,.ion-crop:before,.ion-cube:before,.ion-disc:before,.ion-document:before,.ion-document-text:before,.ion-drag:before,.ion-earth:before,.ion-easel:before,.ion-edit:before,.ion-egg:before,.ion-eject:before,.ion-email:before,.ion-email-unread:before,.ion-erlenmeyer-flask:before,.ion-erlenmeyer-flask-bubbles:before,.ion-eye:before,.ion-eye-disabled:before,.ion-female:before,.ion-filing:before,.ion-film-marker:before,.ion-fireball:before,.ion-flag:before,.ion-flame:before,.ion-flash:before,.ion-flash-off:before,.ion-folder:before,.ion-fork:before,.ion-fork-repo:before,.ion-forward:before,.ion-funnel:before,.ion-gear-a:before,.ion-gear-b:before,.ion-grid:before,.ion-hammer:before,.ion-happy:before,.ion-happy-outline:before,.ion-headphone:before,.ion-heart:before,.ion-heart-broken:before,.ion-help:before,.ion-help-buoy:before,.ion-help-circled:before,.ion-home:before,.ion-icecream:before,.ion-image:before,.ion-images:before,.ion-information:before,.ion-information-circled:before,.ion-ionic:before,.ion-ios-alarm:before,.ion-ios-alarm-outline:before,.ion-ios-albums:before,.ion-ios-albums-outline:before,.ion-ios-americanfootball:before,.ion-ios-americanfootball-outline:before,.ion-ios-analytics:before,.ion-ios-analytics-outline:before,.ion-ios-arrow-back:before,.ion-ios-arrow-down:before,.ion-ios-arrow-forward:before,.ion-ios-arrow-left:before,.ion-ios-arrow-right:before,.ion-ios-arrow-thin-down:before,.ion-ios-arrow-thin-left:before,.ion-ios-arrow-thin-right:before,.ion-ios-arrow-thin-up:before,.ion-ios-arrow-up:before,.ion-ios-at:before,.ion-ios-at-outline:before,.ion-ios-barcode:before,.ion-ios-barcode-outline:before,.ion-ios-baseball:before,.ion-ios-baseball-outline:before,.ion-ios-basketball:before,.ion-ios-basketball-outline:before,.ion-ios-bell:before,.ion-ios-bell-outline:before,.ion-ios-body:before,.ion-ios-body-outline:before,.ion-ios-bolt:before,.ion-ios-bolt-outline:before,.ion-ios-book:before,.ion-ios-book-outline:before,.ion-ios-bookmarks:before,.ion-ios-bookmarks-outline:before,.ion-ios-box:before,.ion-ios-box-outline:before,.ion-ios-briefcase:before,.ion-ios-briefcase-outline:before,.ion-ios-browsers:before,.ion-ios-browsers-outline:before,.ion-ios-calculator:before,.ion-ios-calculator-outline:before,.ion-ios-calendar:before,.ion-ios-calendar-outline:before,.ion-ios-camera:before,.ion-ios-camera-outline:before,.ion-ios-cart:before,.ion-ios-cart-outline:before,.ion-ios-chatboxes:before,.ion-ios-chatboxes-outline:before,.ion-ios-chatbubble:before,.ion-ios-chatbubble-outline:before,.ion-ios-checkmark:before,.ion-ios-checkmark-empty:before,.ion-ios-checkmark-outline:before,.ion-ios-circle-filled:before,.ion-ios-circle-outline:before,.ion-ios-clock:before,.ion-ios-clock-outline:before,.ion-ios-close:before,.ion-ios-close-empty:before,.ion-ios-close-outline:before,.ion-ios-cloud:before,.ion-ios-cloud-download:before,.ion-ios-cloud-download-outline:before,.ion-ios-cloud-outline:before,.ion-ios-cloud-upload:before,.ion-ios-cloud-upload-outline:before,.ion-ios-cloudy:before,.ion-ios-cloudy-night:before,.ion-ios-cloudy-night-outline:before,.ion-ios-cloudy-outline:before,.ion-ios-cog:before,.ion-ios-cog-outline:before,.ion-ios-color-filter:before,.ion-ios-color-filter-outline:before,.ion-ios-color-wand:before,.ion-ios-color-wand-outline:before,.ion-ios-compose:before,.ion-ios-compose-outline:before,.ion-ios-contact:before,.ion-ios-contact-outline:before,.ion-ios-copy:before,.ion-ios-copy-outline:before,.ion-ios-crop:before,.ion-ios-crop-strong:before,.ion-ios-download:before,.ion-ios-download-outline:before,.ion-ios-drag:before,.ion-ios-email:before,.ion-ios-email-outline:before,.ion-ios-eye:before,.ion-ios-eye-outline:before,.ion-ios-fastforward:before,.ion-ios-fastforward-outline:before,.ion-ios-filing:before,.ion-ios-filing-outline:before,.ion-ios-film:before,.ion-ios-film-outline:before,.ion-ios-flag:before,.ion-ios-flag-outline:before,.ion-ios-flame:before,.ion-ios-flame-outline:before,.ion-ios-flask:before,.ion-ios-flask-outline:before,.ion-ios-flower:before,.ion-ios-flower-outline:before,.ion-ios-folder:before,.ion-ios-folder-outline:before,.ion-ios-football:before,.ion-ios-football-outline:before,.ion-ios-game-controller-a:before,.ion-ios-game-controller-a-outline:before,.ion-ios-game-controller-b:before,.ion-ios-game-controller-b-outline:before,.ion-ios-gear:before,.ion-ios-gear-outline:before,.ion-ios-glasses:before,.ion-ios-glasses-outline:before,.ion-ios-grid-view:before,.ion-ios-grid-view-outline:before,.ion-ios-heart:before,.ion-ios-heart-outline:before,.ion-ios-help:before,.ion-ios-help-empty:before,.ion-ios-help-outline:before,.ion-ios-home:before,.ion-ios-home-outline:before,.ion-ios-infinite:before,.ion-ios-infinite-outline:before,.ion-ios-information:before,.ion-ios-information-empty:before,.ion-ios-information-outline:before,.ion-ios-ionic-outline:before,.ion-ios-keypad:before,.ion-ios-keypad-outline:before,.ion-ios-lightbulb:before,.ion-ios-lightbulb-outline:before,.ion-ios-list:before,.ion-ios-list-outline:before,.ion-ios-location:before,.ion-ios-location-outline:before,.ion-ios-locked:before,.ion-ios-locked-outline:before,.ion-ios-loop:before,.ion-ios-loop-strong:before,.ion-ios-medical:before,.ion-ios-medical-outline:before,.ion-ios-medkit:before,.ion-ios-medkit-outline:before,.ion-ios-mic:before,.ion-ios-mic-off:before,.ion-ios-mic-outline:before,.ion-ios-minus:before,.ion-ios-minus-empty:before,.ion-ios-minus-outline:before,.ion-ios-monitor:before,.ion-ios-monitor-outline:before,.ion-ios-moon:before,.ion-ios-moon-outline:before,.ion-ios-more:before,.ion-ios-more-outline:before,.ion-ios-musical-note:before,.ion-ios-musical-notes:before,.ion-ios-navigate:before,.ion-ios-navigate-outline:before,.ion-ios-nutrition:before,.ion-ios-nutrition-outline:before,.ion-ios-paper:before,.ion-ios-paper-outline:before,.ion-ios-paperplane:before,.ion-ios-paperplane-outline:before,.ion-ios-partlysunny:before,.ion-ios-partlysunny-outline:before,.ion-ios-pause:before,.ion-ios-pause-outline:before,.ion-ios-paw:before,.ion-ios-paw-outline:before,.ion-ios-people:before,.ion-ios-people-outline:before,.ion-ios-person:before,.ion-ios-person-outline:before,.ion-ios-personadd:before,.ion-ios-personadd-outline:before,.ion-ios-photos:before,.ion-ios-photos-outline:before,.ion-ios-pie:before,.ion-ios-pie-outline:before,.ion-ios-pint:before,.ion-ios-pint-outline:before,.ion-ios-play:before,.ion-ios-play-outline:before,.ion-ios-plus:before,.ion-ios-plus-empty:before,.ion-ios-plus-outline:before,.ion-ios-pricetag:before,.ion-ios-pricetag-outline:before,.ion-ios-pricetags:before,.ion-ios-pricetags-outline:before,.ion-ios-printer:before,.ion-ios-printer-outline:before,.ion-ios-pulse:before,.ion-ios-pulse-strong:before,.ion-ios-rainy:before,.ion-ios-rainy-outline:before,.ion-ios-recording:before,.ion-ios-recording-outline:before,.ion-ios-redo:before,.ion-ios-redo-outline:before,.ion-ios-refresh:before,.ion-ios-refresh-empty:before,.ion-ios-refresh-outline:before,.ion-ios-reload:before,.ion-ios-reverse-camera:before,.ion-ios-reverse-camera-outline:before,.ion-ios-rewind:before,.ion-ios-rewind-outline:before,.ion-ios-rose:before,.ion-ios-rose-outline:before,.ion-ios-search:before,.ion-ios-search-strong:before,.ion-ios-settings:before,.ion-ios-settings-strong:before,.ion-ios-shuffle:before,.ion-ios-shuffle-strong:before,.ion-ios-skipbackward:before,.ion-ios-skipbackward-outline:before,.ion-ios-skipforward:before,.ion-ios-skipforward-outline:before,.ion-ios-snowy:before,.ion-ios-speedometer:before,.ion-ios-speedometer-outline:before,.ion-ios-star:before,.ion-ios-star-half:before,.ion-ios-star-outline:before,.ion-ios-stopwatch:before,.ion-ios-stopwatch-outline:before,.ion-ios-sunny:before,.ion-ios-sunny-outline:before,.ion-ios-telephone:before,.ion-ios-telephone-outline:before,.ion-ios-tennisball:before,.ion-ios-tennisball-outline:before,.ion-ios-thunderstorm:before,.ion-ios-thunderstorm-outline:before,.ion-ios-time:before,.ion-ios-time-outline:before,.ion-ios-timer:before,.ion-ios-timer-outline:before,.ion-ios-toggle:before,.ion-ios-toggle-outline:before,.ion-ios-trash:before,.ion-ios-trash-outline:before,.ion-ios-undo:before,.ion-ios-undo-outline:before,.ion-ios-unlocked:before,.ion-ios-unlocked-outline:before,.ion-ios-upload:before,.ion-ios-upload-outline:before,.ion-ios-videocam:before,.ion-ios-videocam-outline:before,.ion-ios-volume-high:before,.ion-ios-volume-low:before,.ion-ios-wineglass:before,.ion-ios-wineglass-outline:before,.ion-ios-world:before,.ion-ios-world-outline:before,.ion-ipad:before,.ion-iphone:before,.ion-ipod:before,.ion-jet:before,.ion-key:before,.ion-knife:before,.ion-laptop:before,.ion-leaf:before,.ion-levels:before,.ion-lightbulb:before,.ion-link:before,.ion-load-a:before,.ion-load-b:before,.ion-load-c:before,.ion-load-d:before,.ion-location:before,.ion-lock-combination:before,.ion-locked:before,.ion-log-in:before,.ion-log-out:before,.ion-loop:before,.ion-magnet:before,.ion-male:before,.ion-man:before,.ion-map:before,.ion-medkit:before,.ion-merge:before,.ion-mic-a:before,.ion-mic-b:before,.ion-mic-c:before,.ion-minus:before,.ion-minus-circled:before,.ion-minus-round:before,.ion-model-s:before,.ion-monitor:before,.ion-more:before,.ion-mouse:before,.ion-music-note:before,.ion-navicon:before,.ion-navicon-round:before,.ion-navigate:before,.ion-network:before,.ion-no-smoking:before,.ion-nuclear:before,.ion-outlet:before,.ion-paintbrush:before,.ion-paintbucket:before,.ion-paper-airplane:before,.ion-paperclip:before,.ion-pause:before,.ion-person:before,.ion-person-add:before,.ion-person-stalker:before,.ion-pie-graph:before,.ion-pin:before,.ion-pinpoint:before,.ion-pizza:before,.ion-plane:before,.ion-planet:before,.ion-play:before,.ion-playstation:before,.ion-plus:before,.ion-plus-circled:before,.ion-plus-round:before,.ion-podium:before,.ion-pound:before,.ion-power:before,.ion-pricetag:before,.ion-pricetags:before,.ion-printer:before,.ion-pull-request:before,.ion-qr-scanner:before,.ion-quote:before,.ion-radio-waves:before,.ion-record:before,.ion-refresh:before,.ion-reply:before,.ion-reply-all:before,.ion-ribbon-a:before,.ion-ribbon-b:before,.ion-sad:before,.ion-sad-outline:before,.ion-scissors:before,.ion-search:before,.ion-settings:before,.ion-share:before,.ion-shuffle:before,.ion-skip-backward:before,.ion-skip-forward:before,.ion-social-android:before,.ion-social-android-outline:before,.ion-social-angular:before,.ion-social-angular-outline:before,.ion-social-apple:before,.ion-social-apple-outline:before,.ion-social-bitcoin:before,.ion-social-bitcoin-outline:before,.ion-social-buffer:before,.ion-social-buffer-outline:before,.ion-social-chrome:before,.ion-social-chrome-outline:before,.ion-social-codepen:before,.ion-social-codepen-outline:before,.ion-social-css3:before,.ion-social-css3-outline:before,.ion-social-designernews:before,.ion-social-designernews-outline:before,.ion-social-dribbble:before,.ion-social-dribbble-outline:before,.ion-social-dropbox:before,.ion-social-dropbox-outline:before,.ion-social-euro:before,.ion-social-euro-outline:before,.ion-social-facebook:before,.ion-social-facebook-outline:before,.ion-social-foursquare:before,.ion-social-foursquare-outline:before,.ion-social-freebsd-devil:before,.ion-social-github:before,.ion-social-github-outline:before,.ion-social-google:before,.ion-social-google-outline:before,.ion-social-googleplus:before,.ion-social-googleplus-outline:before,.ion-social-hackernews:before,.ion-social-hackernews-outline:before,.ion-social-html5:before,.ion-social-html5-outline:before,.ion-social-instagram:before,.ion-social-instagram-outline:before,.ion-social-javascript:before,.ion-social-javascript-outline:before,.ion-social-linkedin:before,.ion-social-linkedin-outline:before,.ion-social-markdown:before,.ion-social-nodejs:before,.ion-social-octocat:before,.ion-social-pinterest:before,.ion-social-pinterest-outline:before,.ion-social-python:before,.ion-social-reddit:before,.ion-social-reddit-outline:before,.ion-social-rss:before,.ion-social-rss-outline:before,.ion-social-sass:before,.ion-social-skype:before,.ion-social-skype-outline:before,.ion-social-snapchat:before,.ion-social-snapchat-outline:before,.ion-social-tumblr:before,.ion-social-tumblr-outline:before,.ion-social-tux:before,.ion-social-twitch:before,.ion-social-twitch-outline:before,.ion-social-twitter:before,.ion-social-twitter-outline:before,.ion-social-usd:before,.ion-social-usd-outline:before,.ion-social-vimeo:before,.ion-social-vimeo-outline:before,.ion-social-whatsapp:before,.ion-social-whatsapp-outline:before,.ion-social-windows:before,.ion-social-windows-outline:before,.ion-social-wordpress:before,.ion-social-wordpress-outline:before,.ion-social-yahoo:before,.ion-social-yahoo-outline:before,.ion-social-yen:before,.ion-social-yen-outline:before,.ion-social-youtube:before,.ion-social-youtube-outline:before,.ion-soup-can:before,.ion-soup-can-outline:before,.ion-speakerphone:before,.ion-speedometer:before,.ion-spoon:before,.ion-star:before,.ion-stats-bars:before,.ion-steam:before,.ion-stop:before,.ion-thermometer:before,.ion-thumbsdown:before,.ion-thumbsup:before,.ion-toggle:before,.ion-toggle-filled:before,.ion-transgender:before,.ion-trash-a:before,.ion-trash-b:before,.ion-trophy:before,.ion-tshirt:before,.ion-tshirt-outline:before,.ion-umbrella:before,.ion-university:before,.ion-unlocked:before,.ion-upload:before,.ion-usb:before,.ion-videocamera:before,.ion-volume-high:before,.ion-volume-low:before,.ion-volume-medium:before,.ion-volume-mute:before,.ion-wand:before,.ion-waterdrop:before,.ion-wifi:before,.ion-wineglass:before,.ion-woman:before,.ion-wrench:before,.ion-xbox:before{display:inline-block;font-family:"Ionicons";speak:none;font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;text-rendering:auto;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ion-alert:before{content:"\f101"}.ion-alert-circled:before{content:"\f100"}.ion-android-add:before{content:"\f2c7"}.ion-android-add-circle:before{content:"\f359"}.ion-android-alarm-clock:before{content:"\f35a"}.ion-android-alert:before{content:"\f35b"}.ion-android-apps:before{content:"\f35c"}.ion-android-archive:before{content:"\f2c9"}.ion-android-arrow-back:before{content:"\f2ca"}.ion-android-arrow-down:before{content:"\f35d"}.ion-android-arrow-dropdown:before{content:"\f35f"}.ion-android-arrow-dropdown-circle:before{content:"\f35e"}.ion-android-arrow-dropleft:before{content:"\f361"}.ion-android-arrow-dropleft-circle:before{content:"\f360"}.ion-android-arrow-dropright:before{content:"\f363"}.ion-android-arrow-dropright-circle:before{content:"\f362"}.ion-android-arrow-dropup:before{content:"\f365"}.ion-android-arrow-dropup-circle:before{content:"\f364"}.ion-android-arrow-forward:before{content:"\f30f"}.ion-android-arrow-up:before{content:"\f366"}.ion-android-attach:before{content:"\f367"}.ion-android-bar:before{content:"\f368"}.ion-android-bicycle:before{content:"\f369"}.ion-android-boat:before{content:"\f36a"}.ion-android-bookmark:before{content:"\f36b"}.ion-android-bulb:before{content:"\f36c"}.ion-android-bus:before{content:"\f36d"}.ion-android-calendar:before{content:"\f2d1"}.ion-android-call:before{content:"\f2d2"}.ion-android-camera:before{content:"\f2d3"}.ion-android-cancel:before{content:"\f36e"}.ion-android-car:before{content:"\f36f"}.ion-android-cart:before{content:"\f370"}.ion-android-chat:before{content:"\f2d4"}.ion-android-checkbox:before{content:"\f374"}.ion-android-checkbox-blank:before{content:"\f371"}.ion-android-checkbox-outline:before{content:"\f373"}.ion-android-checkbox-outline-blank:before{content:"\f372"}.ion-android-checkmark-circle:before{content:"\f375"}.ion-android-clipboard:before{content:"\f376"}.ion-android-close:before{content:"\f2d7"}.ion-android-cloud:before{content:"\f37a"}.ion-android-cloud-circle:before{content:"\f377"}.ion-android-cloud-done:before{content:"\f378"}.ion-android-cloud-outline:before{content:"\f379"}.ion-android-color-palette:before{content:"\f37b"}.ion-android-compass:before{content:"\f37c"}.ion-android-contact:before{content:"\f2d8"}.ion-android-contacts:before{content:"\f2d9"}.ion-android-contract:before{content:"\f37d"}.ion-android-create:before{content:"\f37e"}.ion-android-delete:before{content:"\f37f"}.ion-android-desktop:before{content:"\f380"}.ion-android-document:before{content:"\f381"}.ion-android-done:before{content:"\f383"}.ion-android-done-all:before{content:"\f382"}.ion-android-download:before{content:"\f2dd"}.ion-android-drafts:before{content:"\f384"}.ion-android-exit:before{content:"\f385"}.ion-android-expand:before{content:"\f386"}.ion-android-favorite:before{content:"\f388"}.ion-android-favorite-outline:before{content:"\f387"}.ion-android-film:before{content:"\f389"}.ion-android-folder:before{content:"\f2e0"}.ion-android-folder-open:before{content:"\f38a"}.ion-android-funnel:before{content:"\f38b"}.ion-android-globe:before{content:"\f38c"}.ion-android-hand:before{content:"\f2e3"}.ion-android-hangout:before{content:"\f38d"}.ion-android-happy:before{content:"\f38e"}.ion-android-home:before{content:"\f38f"}.ion-android-image:before{content:"\f2e4"}.ion-android-laptop:before{content:"\f390"}.ion-android-list:before{content:"\f391"}.ion-android-locate:before{content:"\f2e9"}.ion-android-lock:before{content:"\f392"}.ion-android-mail:before{content:"\f2eb"}.ion-android-map:before{content:"\f393"}.ion-android-menu:before{content:"\f394"}.ion-android-microphone:before{content:"\f2ec"}.ion-android-microphone-off:before{content:"\f395"}.ion-android-more-horizontal:before{content:"\f396"}.ion-android-more-vertical:before{content:"\f397"}.ion-android-navigate:before{content:"\f398"}.ion-android-notifications:before{content:"\f39b"}.ion-android-notifications-none:before{content:"\f399"}.ion-android-notifications-off:before{content:"\f39a"}.ion-android-open:before{content:"\f39c"}.ion-android-options:before{content:"\f39d"}.ion-android-people:before{content:"\f39e"}.ion-android-person:before{content:"\f3a0"}.ion-android-person-add:before{content:"\f39f"}.ion-android-phone-landscape:before{content:"\f3a1"}.ion-android-phone-portrait:before{content:"\f3a2"}.ion-android-pin:before{content:"\f3a3"}.ion-android-plane:before{content:"\f3a4"}.ion-android-playstore:before{content:"\f2f0"}.ion-android-print:before{content:"\f3a5"}.ion-android-radio-button-off:before{content:"\f3a6"}.ion-android-radio-button-on:before{content:"\f3a7"}.ion-android-refresh:before{content:"\f3a8"}.ion-android-remove:before{content:"\f2f4"}.ion-android-remove-circle:before{content:"\f3a9"}.ion-android-restaurant:before{content:"\f3aa"}.ion-android-sad:before{content:"\f3ab"}.ion-android-search:before{content:"\f2f5"}.ion-android-send:before{content:"\f2f6"}.ion-android-settings:before{content:"\f2f7"}.ion-android-share:before{content:"\f2f8"}.ion-android-share-alt:before{content:"\f3ac"}.ion-android-star:before{content:"\f2fc"}.ion-android-star-half:before{content:"\f3ad"}.ion-android-star-outline:before{content:"\f3ae"}.ion-android-stopwatch:before{content:"\f2fd"}.ion-android-subway:before{content:"\f3af"}.ion-android-sunny:before{content:"\f3b0"}.ion-android-sync:before{content:"\f3b1"}.ion-android-textsms:before{content:"\f3b2"}.ion-android-time:before{content:"\f3b3"}.ion-android-train:before{content:"\f3b4"}.ion-android-unlock:before{content:"\f3b5"}.ion-android-upload:before{content:"\f3b6"}.ion-android-volume-down:before{content:"\f3b7"}.ion-android-volume-mute:before{content:"\f3b8"}.ion-android-volume-off:before{content:"\f3b9"}.ion-android-volume-up:before{content:"\f3ba"}.ion-android-walk:before{content:"\f3bb"}.ion-android-warning:before{content:"\f3bc"}.ion-android-watch:before{content:"\f3bd"}.ion-android-wifi:before{content:"\f305"}.ion-aperture:before{content:"\f313"}.ion-archive:before{content:"\f102"}.ion-arrow-down-a:before{content:"\f103"}.ion-arrow-down-b:before{content:"\f104"}.ion-arrow-down-c:before{content:"\f105"}.ion-arrow-expand:before{content:"\f25e"}.ion-arrow-graph-down-left:before{content:"\f25f"}.ion-arrow-graph-down-right:before{content:"\f260"}.ion-arrow-graph-up-left:before{content:"\f261"}.ion-arrow-graph-up-right:before{content:"\f262"}.ion-arrow-left-a:before{content:"\f106"}.ion-arrow-left-b:before{content:"\f107"}.ion-arrow-left-c:before{content:"\f108"}.ion-arrow-move:before{content:"\f263"}.ion-arrow-resize:before{content:"\f264"}.ion-arrow-return-left:before{content:"\f265"}.ion-arrow-return-right:before{content:"\f266"}.ion-arrow-right-a:before{content:"\f109"}.ion-arrow-right-b:before{content:"\f10a"}.ion-arrow-right-c:before{content:"\f10b"}.ion-arrow-shrink:before{content:"\f267"}.ion-arrow-swap:before{content:"\f268"}.ion-arrow-up-a:before{content:"\f10c"}.ion-arrow-up-b:before{content:"\f10d"}.ion-arrow-up-c:before{content:"\f10e"}.ion-asterisk:before{content:"\f314"}.ion-at:before{content:"\f10f"}.ion-backspace:before{content:"\f3bf"}.ion-backspace-outline:before{content:"\f3be"}.ion-bag:before{content:"\f110"}.ion-battery-charging:before{content:"\f111"}.ion-battery-empty:before{content:"\f112"}.ion-battery-full:before{content:"\f113"}.ion-battery-half:before{content:"\f114"}.ion-battery-low:before{content:"\f115"}.ion-beaker:before{content:"\f269"}.ion-beer:before{content:"\f26a"}.ion-bluetooth:before{content:"\f116"}.ion-bonfire:before{content:"\f315"}.ion-bookmark:before{content:"\f26b"}.ion-bowtie:before{content:"\f3c0"}.ion-briefcase:before{content:"\f26c"}.ion-bug:before{content:"\f2be"}.ion-calculator:before{content:"\f26d"}.ion-calendar:before{content:"\f117"}.ion-camera:before{content:"\f118"}.ion-card:before{content:"\f119"}.ion-cash:before{content:"\f316"}.ion-chatbox:before{content:"\f11b"}.ion-chatbox-working:before{content:"\f11a"}.ion-chatboxes:before{content:"\f11c"}.ion-chatbubble:before{content:"\f11e"}.ion-chatbubble-working:before{content:"\f11d"}.ion-chatbubbles:before{content:"\f11f"}.ion-checkmark:before{content:"\f122"}.ion-checkmark-circled:before{content:"\f120"}.ion-checkmark-round:before{content:"\f121"}.ion-chevron-down:before{content:"\f123"}.ion-chevron-left:before{content:"\f124"}.ion-chevron-right:before{content:"\f125"}.ion-chevron-up:before{content:"\f126"}.ion-clipboard:before{content:"\f127"}.ion-clock:before{content:"\f26e"}.ion-close:before{content:"\f12a"}.ion-close-circled:before{content:"\f128"}.ion-close-round:before{content:"\f129"}.ion-closed-captioning:before{content:"\f317"}.ion-cloud:before{content:"\f12b"}.ion-code:before{content:"\f271"}.ion-code-download:before{content:"\f26f"}.ion-code-working:before{content:"\f270"}.ion-coffee:before{content:"\f272"}.ion-compass:before{content:"\f273"}.ion-compose:before{content:"\f12c"}.ion-connection-bars:before{content:"\f274"}.ion-contrast:before{content:"\f275"}.ion-crop:before{content:"\f3c1"}.ion-cube:before{content:"\f318"}.ion-disc:before{content:"\f12d"}.ion-document:before{content:"\f12f"}.ion-document-text:before{content:"\f12e"}.ion-drag:before{content:"\f130"}.ion-earth:before{content:"\f276"}.ion-easel:before{content:"\f3c2"}.ion-edit:before{content:"\f2bf"}.ion-egg:before{content:"\f277"}.ion-eject:before{content:"\f131"}.ion-email:before{content:"\f132"}.ion-email-unread:before{content:"\f3c3"}.ion-erlenmeyer-flask:before{content:"\f3c5"}.ion-erlenmeyer-flask-bubbles:before{content:"\f3c4"}.ion-eye:before{content:"\f133"}.ion-eye-disabled:before{content:"\f306"}.ion-female:before{content:"\f278"}.ion-filing:before{content:"\f134"}.ion-film-marker:before{content:"\f135"}.ion-fireball:before{content:"\f319"}.ion-flag:before{content:"\f279"}.ion-flame:before{content:"\f31a"}.ion-flash:before{content:"\f137"}.ion-flash-off:before{content:"\f136"}.ion-folder:before{content:"\f139"}.ion-fork:before{content:"\f27a"}.ion-fork-repo:before{content:"\f2c0"}.ion-forward:before{content:"\f13a"}.ion-funnel:before{content:"\f31b"}.ion-gear-a:before{content:"\f13d"}.ion-gear-b:before{content:"\f13e"}.ion-grid:before{content:"\f13f"}.ion-hammer:before{content:"\f27b"}.ion-happy:before{content:"\f31c"}.ion-happy-outline:before{content:"\f3c6"}.ion-headphone:before{content:"\f140"}.ion-heart:before{content:"\f141"}.ion-heart-broken:before{content:"\f31d"}.ion-help:before{content:"\f143"}.ion-help-buoy:before{content:"\f27c"}.ion-help-circled:before{content:"\f142"}.ion-home:before{content:"\f144"}.ion-icecream:before{content:"\f27d"}.ion-image:before{content:"\f147"}.ion-images:before{content:"\f148"}.ion-information:before{content:"\f14a"}.ion-information-circled:before{content:"\f149"}.ion-ionic:before{content:"\f14b"}.ion-ios-alarm:before{content:"\f3c8"}.ion-ios-alarm-outline:before{content:"\f3c7"}.ion-ios-albums:before{content:"\f3ca"}.ion-ios-albums-outline:before{content:"\f3c9"}.ion-ios-americanfootball:before{content:"\f3cc"}.ion-ios-americanfootball-outline:before{content:"\f3cb"}.ion-ios-analytics:before{content:"\f3ce"}.ion-ios-analytics-outline:before{content:"\f3cd"}.ion-ios-arrow-back:before{content:"\f3cf"}.ion-ios-arrow-down:before{content:"\f3d0"}.ion-ios-arrow-forward:before{content:"\f3d1"}.ion-ios-arrow-left:before{content:"\f3d2"}.ion-ios-arrow-right:before{content:"\f3d3"}.ion-ios-arrow-thin-down:before{content:"\f3d4"}.ion-ios-arrow-thin-left:before{content:"\f3d5"}.ion-ios-arrow-thin-right:before{content:"\f3d6"}.ion-ios-arrow-thin-up:before{content:"\f3d7"}.ion-ios-arrow-up:before{content:"\f3d8"}.ion-ios-at:before{content:"\f3da"}.ion-ios-at-outline:before{content:"\f3d9"}.ion-ios-barcode:before{content:"\f3dc"}.ion-ios-barcode-outline:before{content:"\f3db"}.ion-ios-baseball:before{content:"\f3de"}.ion-ios-baseball-outline:before{content:"\f3dd"}.ion-ios-basketball:before{content:"\f3e0"}.ion-ios-basketball-outline:before{content:"\f3df"}.ion-ios-bell:before{content:"\f3e2"}.ion-ios-bell-outline:before{content:"\f3e1"}.ion-ios-body:before{content:"\f3e4"}.ion-ios-body-outline:before{content:"\f3e3"}.ion-ios-bolt:before{content:"\f3e6"}.ion-ios-bolt-outline:before{content:"\f3e5"}.ion-ios-book:before{content:"\f3e8"}.ion-ios-book-outline:before{content:"\f3e7"}.ion-ios-bookmarks:before{content:"\f3ea"}.ion-ios-bookmarks-outline:before{content:"\f3e9"}.ion-ios-box:before{content:"\f3ec"}.ion-ios-box-outline:before{content:"\f3eb"}.ion-ios-briefcase:before{content:"\f3ee"}.ion-ios-briefcase-outline:before{content:"\f3ed"}.ion-ios-browsers:before{content:"\f3f0"}.ion-ios-browsers-outline:before{content:"\f3ef"}.ion-ios-calculator:before{content:"\f3f2"}.ion-ios-calculator-outline:before{content:"\f3f1"}.ion-ios-calendar:before{content:"\f3f4"}.ion-ios-calendar-outline:before{content:"\f3f3"}.ion-ios-camera:before{content:"\f3f6"}.ion-ios-camera-outline:before{content:"\f3f5"}.ion-ios-cart:before{content:"\f3f8"}.ion-ios-cart-outline:before{content:"\f3f7"}.ion-ios-chatboxes:before{content:"\f3fa"}.ion-ios-chatboxes-outline:before{content:"\f3f9"}.ion-ios-chatbubble:before{content:"\f3fc"}.ion-ios-chatbubble-outline:before{content:"\f3fb"}.ion-ios-checkmark:before{content:"\f3ff"}.ion-ios-checkmark-empty:before{content:"\f3fd"}.ion-ios-checkmark-outline:before{content:"\f3fe"}.ion-ios-circle-filled:before{content:"\f400"}.ion-ios-circle-outline:before{content:"\f401"}.ion-ios-clock:before{content:"\f403"}.ion-ios-clock-outline:before{content:"\f402"}.ion-ios-close:before{content:"\f406"}.ion-ios-close-empty:before{content:"\f404"}.ion-ios-close-outline:before{content:"\f405"}.ion-ios-cloud:before{content:"\f40c"}.ion-ios-cloud-download:before{content:"\f408"}.ion-ios-cloud-download-outline:before{content:"\f407"}.ion-ios-cloud-outline:before{content:"\f409"}.ion-ios-cloud-upload:before{content:"\f40b"}.ion-ios-cloud-upload-outline:before{content:"\f40a"}.ion-ios-cloudy:before{content:"\f410"}.ion-ios-cloudy-night:before{content:"\f40e"}.ion-ios-cloudy-night-outline:before{content:"\f40d"}.ion-ios-cloudy-outline:before{content:"\f40f"}.ion-ios-cog:before{content:"\f412"}.ion-ios-cog-outline:before{content:"\f411"}.ion-ios-color-filter:before{content:"\f414"}.ion-ios-color-filter-outline:before{content:"\f413"}.ion-ios-color-wand:before{content:"\f416"}.ion-ios-color-wand-outline:before{content:"\f415"}.ion-ios-compose:before{content:"\f418"}.ion-ios-compose-outline:before{content:"\f417"}.ion-ios-contact:before{content:"\f41a"}.ion-ios-contact-outline:before{content:"\f419"}.ion-ios-copy:before{content:"\f41c"}.ion-ios-copy-outline:before{content:"\f41b"}.ion-ios-crop:before{content:"\f41e"}.ion-ios-crop-strong:before{content:"\f41d"}.ion-ios-download:before{content:"\f420"}.ion-ios-download-outline:before{content:"\f41f"}.ion-ios-drag:before{content:"\f421"}.ion-ios-email:before{content:"\f423"}.ion-ios-email-outline:before{content:"\f422"}.ion-ios-eye:before{content:"\f425"}.ion-ios-eye-outline:before{content:"\f424"}.ion-ios-fastforward:before{content:"\f427"}.ion-ios-fastforward-outline:before{content:"\f426"}.ion-ios-filing:before{content:"\f429"}.ion-ios-filing-outline:before{content:"\f428"}.ion-ios-film:before{content:"\f42b"}.ion-ios-film-outline:before{content:"\f42a"}.ion-ios-flag:before{content:"\f42d"}.ion-ios-flag-outline:before{content:"\f42c"}.ion-ios-flame:before{content:"\f42f"}.ion-ios-flame-outline:before{content:"\f42e"}.ion-ios-flask:before{content:"\f431"}.ion-ios-flask-outline:before{content:"\f430"}.ion-ios-flower:before{content:"\f433"}.ion-ios-flower-outline:before{content:"\f432"}.ion-ios-folder:before{content:"\f435"}.ion-ios-folder-outline:before{content:"\f434"}.ion-ios-football:before{content:"\f437"}.ion-ios-football-outline:before{content:"\f436"}.ion-ios-game-controller-a:before{content:"\f439"}.ion-ios-game-controller-a-outline:before{content:"\f438"}.ion-ios-game-controller-b:before{content:"\f43b"}.ion-ios-game-controller-b-outline:before{content:"\f43a"}.ion-ios-gear:before{content:"\f43d"}.ion-ios-gear-outline:before{content:"\f43c"}.ion-ios-glasses:before{content:"\f43f"}.ion-ios-glasses-outline:before{content:"\f43e"}.ion-ios-grid-view:before{content:"\f441"}.ion-ios-grid-view-outline:before{content:"\f440"}.ion-ios-heart:before{content:"\f443"}.ion-ios-heart-outline:before{content:"\f442"}.ion-ios-help:before{content:"\f446"}.ion-ios-help-empty:before{content:"\f444"}.ion-ios-help-outline:before{content:"\f445"}.ion-ios-home:before{content:"\f448"}.ion-ios-home-outline:before{content:"\f447"}.ion-ios-infinite:before{content:"\f44a"}.ion-ios-infinite-outline:before{content:"\f449"}.ion-ios-information:before{content:"\f44d"}.ion-ios-information-empty:before{content:"\f44b"}.ion-ios-information-outline:before{content:"\f44c"}.ion-ios-ionic-outline:before{content:"\f44e"}.ion-ios-keypad:before{content:"\f450"}.ion-ios-keypad-outline:before{content:"\f44f"}.ion-ios-lightbulb:before{content:"\f452"}.ion-ios-lightbulb-outline:before{content:"\f451"}.ion-ios-list:before{content:"\f454"}.ion-ios-list-outline:before{content:"\f453"}.ion-ios-location:before{content:"\f456"}.ion-ios-location-outline:before{content:"\f455"}.ion-ios-locked:before{content:"\f458"}.ion-ios-locked-outline:before{content:"\f457"}.ion-ios-loop:before{content:"\f45a"}.ion-ios-loop-strong:before{content:"\f459"}.ion-ios-medical:before{content:"\f45c"}.ion-ios-medical-outline:before{content:"\f45b"}.ion-ios-medkit:before{content:"\f45e"}.ion-ios-medkit-outline:before{content:"\f45d"}.ion-ios-mic:before{content:"\f461"}.ion-ios-mic-off:before{content:"\f45f"}.ion-ios-mic-outline:before{content:"\f460"}.ion-ios-minus:before{content:"\f464"}.ion-ios-minus-empty:before{content:"\f462"}.ion-ios-minus-outline:before{content:"\f463"}.ion-ios-monitor:before{content:"\f466"}.ion-ios-monitor-outline:before{content:"\f465"}.ion-ios-moon:before{content:"\f468"}.ion-ios-moon-outline:before{content:"\f467"}.ion-ios-more:before{content:"\f46a"}.ion-ios-more-outline:before{content:"\f469"}.ion-ios-musical-note:before{content:"\f46b"}.ion-ios-musical-notes:before{content:"\f46c"}.ion-ios-navigate:before{content:"\f46e"}.ion-ios-navigate-outline:before{content:"\f46d"}.ion-ios-nutrition:before{content:"\f470"}.ion-ios-nutrition-outline:before{content:"\f46f"}.ion-ios-paper:before{content:"\f472"}.ion-ios-paper-outline:before{content:"\f471"}.ion-ios-paperplane:before{content:"\f474"}.ion-ios-paperplane-outline:before{content:"\f473"}.ion-ios-partlysunny:before{content:"\f476"}.ion-ios-partlysunny-outline:before{content:"\f475"}.ion-ios-pause:before{content:"\f478"}.ion-ios-pause-outline:before{content:"\f477"}.ion-ios-paw:before{content:"\f47a"}.ion-ios-paw-outline:before{content:"\f479"}.ion-ios-people:before{content:"\f47c"}.ion-ios-people-outline:before{content:"\f47b"}.ion-ios-person:before{content:"\f47e"}.ion-ios-person-outline:before{content:"\f47d"}.ion-ios-personadd:before{content:"\f480"}.ion-ios-personadd-outline:before{content:"\f47f"}.ion-ios-photos:before{content:"\f482"}.ion-ios-photos-outline:before{content:"\f481"}.ion-ios-pie:before{content:"\f484"}.ion-ios-pie-outline:before{content:"\f483"}.ion-ios-pint:before{content:"\f486"}.ion-ios-pint-outline:before{content:"\f485"}.ion-ios-play:before{content:"\f488"}.ion-ios-play-outline:before{content:"\f487"}.ion-ios-plus:before{content:"\f48b"}.ion-ios-plus-empty:before{content:"\f489"}.ion-ios-plus-outline:before{content:"\f48a"}.ion-ios-pricetag:before{content:"\f48d"}.ion-ios-pricetag-outline:before{content:"\f48c"}.ion-ios-pricetags:before{content:"\f48f"}.ion-ios-pricetags-outline:before{content:"\f48e"}.ion-ios-printer:before{content:"\f491"}.ion-ios-printer-outline:before{content:"\f490"}.ion-ios-pulse:before{content:"\f493"}.ion-ios-pulse-strong:before{content:"\f492"}.ion-ios-rainy:before{content:"\f495"}.ion-ios-rainy-outline:before{content:"\f494"}.ion-ios-recording:before{content:"\f497"}.ion-ios-recording-outline:before{content:"\f496"}.ion-ios-redo:before{content:"\f499"}.ion-ios-redo-outline:before{content:"\f498"}.ion-ios-refresh:before{content:"\f49c"}.ion-ios-refresh-empty:before{content:"\f49a"}.ion-ios-refresh-outline:before{content:"\f49b"}.ion-ios-reload:before{content:"\f49d"}.ion-ios-reverse-camera:before{content:"\f49f"}.ion-ios-reverse-camera-outline:before{content:"\f49e"}.ion-ios-rewind:before{content:"\f4a1"}.ion-ios-rewind-outline:before{content:"\f4a0"}.ion-ios-rose:before{content:"\f4a3"}.ion-ios-rose-outline:before{content:"\f4a2"}.ion-ios-search:before{content:"\f4a5"}.ion-ios-search-strong:before{content:"\f4a4"}.ion-ios-settings:before{content:"\f4a7"}.ion-ios-settings-strong:before{content:"\f4a6"}.ion-ios-shuffle:before{content:"\f4a9"}.ion-ios-shuffle-strong:before{content:"\f4a8"}.ion-ios-skipbackward:before{content:"\f4ab"}.ion-ios-skipbackward-outline:before{content:"\f4aa"}.ion-ios-skipforward:before{content:"\f4ad"}.ion-ios-skipforward-outline:before{content:"\f4ac"}.ion-ios-snowy:before{content:"\f4ae"}.ion-ios-speedometer:before{content:"\f4b0"}.ion-ios-speedometer-outline:before{content:"\f4af"}.ion-ios-star:before{content:"\f4b3"}.ion-ios-star-half:before{content:"\f4b1"}.ion-ios-star-outline:before{content:"\f4b2"}.ion-ios-stopwatch:before{content:"\f4b5"}.ion-ios-stopwatch-outline:before{content:"\f4b4"}.ion-ios-sunny:before{content:"\f4b7"}.ion-ios-sunny-outline:before{content:"\f4b6"}.ion-ios-telephone:before{content:"\f4b9"}.ion-ios-telephone-outline:before{content:"\f4b8"}.ion-ios-tennisball:before{content:"\f4bb"}.ion-ios-tennisball-outline:before{content:"\f4ba"}.ion-ios-thunderstorm:before{content:"\f4bd"}.ion-ios-thunderstorm-outline:before{content:"\f4bc"}.ion-ios-time:before{content:"\f4bf"}.ion-ios-time-outline:before{content:"\f4be"}.ion-ios-timer:before{content:"\f4c1"}.ion-ios-timer-outline:before{content:"\f4c0"}.ion-ios-toggle:before{content:"\f4c3"}.ion-ios-toggle-outline:before{content:"\f4c2"}.ion-ios-trash:before{content:"\f4c5"}.ion-ios-trash-outline:before{content:"\f4c4"}.ion-ios-undo:before{content:"\f4c7"}.ion-ios-undo-outline:before{content:"\f4c6"}.ion-ios-unlocked:before{content:"\f4c9"}.ion-ios-unlocked-outline:before{content:"\f4c8"}.ion-ios-upload:before{content:"\f4cb"}.ion-ios-upload-outline:before{content:"\f4ca"}.ion-ios-videocam:before{content:"\f4cd"}.ion-ios-videocam-outline:before{content:"\f4cc"}.ion-ios-volume-high:before{content:"\f4ce"}.ion-ios-volume-low:before{content:"\f4cf"}.ion-ios-wineglass:before{content:"\f4d1"}.ion-ios-wineglass-outline:before{content:"\f4d0"}.ion-ios-world:before{content:"\f4d3"}.ion-ios-world-outline:before{content:"\f4d2"}.ion-ipad:before{content:"\f1f9"}.ion-iphone:before{content:"\f1fa"}.ion-ipod:before{content:"\f1fb"}.ion-jet:before{content:"\f295"}.ion-key:before{content:"\f296"}.ion-knife:before{content:"\f297"}.ion-laptop:before{content:"\f1fc"}.ion-leaf:before{content:"\f1fd"}.ion-levels:before{content:"\f298"}.ion-lightbulb:before{content:"\f299"}.ion-link:before{content:"\f1fe"}.ion-load-a:before{content:"\f29a"}.ion-load-b:before{content:"\f29b"}.ion-load-c:before{content:"\f29c"}.ion-load-d:before{content:"\f29d"}.ion-location:before{content:"\f1ff"}.ion-lock-combination:before{content:"\f4d4"}.ion-locked:before{content:"\f200"}.ion-log-in:before{content:"\f29e"}.ion-log-out:before{content:"\f29f"}.ion-loop:before{content:"\f201"}.ion-magnet:before{content:"\f2a0"}.ion-male:before{content:"\f2a1"}.ion-man:before{content:"\f202"}.ion-map:before{content:"\f203"}.ion-medkit:before{content:"\f2a2"}.ion-merge:before{content:"\f33f"}.ion-mic-a:before{content:"\f204"}.ion-mic-b:before{content:"\f205"}.ion-mic-c:before{content:"\f206"}.ion-minus:before{content:"\f209"}.ion-minus-circled:before{content:"\f207"}.ion-minus-round:before{content:"\f208"}.ion-model-s:before{content:"\f2c1"}.ion-monitor:before{content:"\f20a"}.ion-more:before{content:"\f20b"}.ion-mouse:before{content:"\f340"}.ion-music-note:before{content:"\f20c"}.ion-navicon:before{content:"\f20e"}.ion-navicon-round:before{content:"\f20d"}.ion-navigate:before{content:"\f2a3"}.ion-network:before{content:"\f341"}.ion-no-smoking:before{content:"\f2c2"}.ion-nuclear:before{content:"\f2a4"}.ion-outlet:before{content:"\f342"}.ion-paintbrush:before{content:"\f4d5"}.ion-paintbucket:before{content:"\f4d6"}.ion-paper-airplane:before{content:"\f2c3"}.ion-paperclip:before{content:"\f20f"}.ion-pause:before{content:"\f210"}.ion-person:before{content:"\f213"}.ion-person-add:before{content:"\f211"}.ion-person-stalker:before{content:"\f212"}.ion-pie-graph:before{content:"\f2a5"}.ion-pin:before{content:"\f2a6"}.ion-pinpoint:before{content:"\f2a7"}.ion-pizza:before{content:"\f2a8"}.ion-plane:before{content:"\f214"}.ion-planet:before{content:"\f343"}.ion-play:before{content:"\f215"}.ion-playstation:before{content:"\f30a"}.ion-plus:before{content:"\f218"}.ion-plus-circled:before{content:"\f216"}.ion-plus-round:before{content:"\f217"}.ion-podium:before{content:"\f344"}.ion-pound:before{content:"\f219"}.ion-power:before{content:"\f2a9"}.ion-pricetag:before{content:"\f2aa"}.ion-pricetags:before{content:"\f2ab"}.ion-printer:before{content:"\f21a"}.ion-pull-request:before{content:"\f345"}.ion-qr-scanner:before{content:"\f346"}.ion-quote:before{content:"\f347"}.ion-radio-waves:before{content:"\f2ac"}.ion-record:before{content:"\f21b"}.ion-refresh:before{content:"\f21c"}.ion-reply:before{content:"\f21e"}.ion-reply-all:before{content:"\f21d"}.ion-ribbon-a:before{content:"\f348"}.ion-ribbon-b:before{content:"\f349"}.ion-sad:before{content:"\f34a"}.ion-sad-outline:before{content:"\f4d7"}.ion-scissors:before{content:"\f34b"}.ion-search:before{content:"\f21f"}.ion-settings:before{content:"\f2ad"}.ion-share:before{content:"\f220"}.ion-shuffle:before{content:"\f221"}.ion-skip-backward:before{content:"\f222"}.ion-skip-forward:before{content:"\f223"}.ion-social-android:before{content:"\f225"}.ion-social-android-outline:before{content:"\f224"}.ion-social-angular:before{content:"\f4d9"}.ion-social-angular-outline:before{content:"\f4d8"}.ion-social-apple:before{content:"\f227"}.ion-social-apple-outline:before{content:"\f226"}.ion-social-bitcoin:before{content:"\f2af"}.ion-social-bitcoin-outline:before{content:"\f2ae"}.ion-social-buffer:before{content:"\f229"}.ion-social-buffer-outline:before{content:"\f228"}.ion-social-chrome:before{content:"\f4db"}.ion-social-chrome-outline:before{content:"\f4da"}.ion-social-codepen:before{content:"\f4dd"}.ion-social-codepen-outline:before{content:"\f4dc"}.ion-social-css3:before{content:"\f4df"}.ion-social-css3-outline:before{content:"\f4de"}.ion-social-designernews:before{content:"\f22b"}.ion-social-designernews-outline:before{content:"\f22a"}.ion-social-dribbble:before{content:"\f22d"}.ion-social-dribbble-outline:before{content:"\f22c"}.ion-social-dropbox:before{content:"\f22f"}.ion-social-dropbox-outline:before{content:"\f22e"}.ion-social-euro:before{content:"\f4e1"}.ion-social-euro-outline:before{content:"\f4e0"}.ion-social-facebook:before{content:"\f231"}.ion-social-facebook-outline:before{content:"\f230"}.ion-social-foursquare:before{content:"\f34d"}.ion-social-foursquare-outline:before{content:"\f34c"}.ion-social-freebsd-devil:before{content:"\f2c4"}.ion-social-github:before{content:"\f233"}.ion-social-github-outline:before{content:"\f232"}.ion-social-google:before{content:"\f34f"}.ion-social-google-outline:before{content:"\f34e"}.ion-social-googleplus:before{content:"\f235"}.ion-social-googleplus-outline:before{content:"\f234"}.ion-social-hackernews:before{content:"\f237"}.ion-social-hackernews-outline:before{content:"\f236"}.ion-social-html5:before{content:"\f4e3"}.ion-social-html5-outline:before{content:"\f4e2"}.ion-social-instagram:before{content:"\f351"}.ion-social-instagram-outline:before{content:"\f350"}.ion-social-javascript:before{content:"\f4e5"}.ion-social-javascript-outline:before{content:"\f4e4"}.ion-social-linkedin:before{content:"\f239"}.ion-social-linkedin-outline:before{content:"\f238"}.ion-social-markdown:before{content:"\f4e6"}.ion-social-nodejs:before{content:"\f4e7"}.ion-social-octocat:before{content:"\f4e8"}.ion-social-pinterest:before{content:"\f2b1"}.ion-social-pinterest-outline:before{content:"\f2b0"}.ion-social-python:before{content:"\f4e9"}.ion-social-reddit:before{content:"\f23b"}.ion-social-reddit-outline:before{content:"\f23a"}.ion-social-rss:before{content:"\f23d"}.ion-social-rss-outline:before{content:"\f23c"}.ion-social-sass:before{content:"\f4ea"}.ion-social-skype:before{content:"\f23f"}.ion-social-skype-outline:before{content:"\f23e"}.ion-social-snapchat:before{content:"\f4ec"}.ion-social-snapchat-outline:before{content:"\f4eb"}.ion-social-tumblr:before{content:"\f241"}.ion-social-tumblr-outline:before{content:"\f240"}.ion-social-tux:before{content:"\f2c5"}.ion-social-twitch:before{content:"\f4ee"}.ion-social-twitch-outline:before{content:"\f4ed"}.ion-social-twitter:before{content:"\f243"}.ion-social-twitter-outline:before{content:"\f242"}.ion-social-usd:before{content:"\f353"}.ion-social-usd-outline:before{content:"\f352"}.ion-social-vimeo:before{content:"\f245"}.ion-social-vimeo-outline:before{content:"\f244"}.ion-social-whatsapp:before{content:"\f4f0"}.ion-social-whatsapp-outline:before{content:"\f4ef"}.ion-social-windows:before{content:"\f247"}.ion-social-windows-outline:before{content:"\f246"}.ion-social-wordpress:before{content:"\f249"}.ion-social-wordpress-outline:before{content:"\f248"}.ion-social-yahoo:before{content:"\f24b"}.ion-social-yahoo-outline:before{content:"\f24a"}.ion-social-yen:before{content:"\f4f2"}.ion-social-yen-outline:before{content:"\f4f1"}.ion-social-youtube:before{content:"\f24d"}.ion-social-youtube-outline:before{content:"\f24c"}.ion-soup-can:before{content:"\f4f4"}.ion-soup-can-outline:before{content:"\f4f3"}.ion-speakerphone:before{content:"\f2b2"}.ion-speedometer:before{content:"\f2b3"}.ion-spoon:before{content:"\f2b4"}.ion-star:before{content:"\f24e"}.ion-stats-bars:before{content:"\f2b5"}.ion-steam:before{content:"\f30b"}.ion-stop:before{content:"\f24f"}.ion-thermometer:before{content:"\f2b6"}.ion-thumbsdown:before{content:"\f250"}.ion-thumbsup:before{content:"\f251"}.ion-toggle:before{content:"\f355"}.ion-toggle-filled:before{content:"\f354"}.ion-transgender:before{content:"\f4f5"}.ion-trash-a:before{content:"\f252"}.ion-trash-b:before{content:"\f253"}.ion-trophy:before{content:"\f356"}.ion-tshirt:before{content:"\f4f7"}.ion-tshirt-outline:before{content:"\f4f6"}.ion-umbrella:before{content:"\f2b7"}.ion-university:before{content:"\f357"}.ion-unlocked:before{content:"\f254"}.ion-upload:before{content:"\f255"}.ion-usb:before{content:"\f2b8"}.ion-videocamera:before{content:"\f256"}.ion-volume-high:before{content:"\f257"}.ion-volume-low:before{content:"\f258"}.ion-volume-medium:before{content:"\f259"}.ion-volume-mute:before{content:"\f25a"}.ion-wand:before{content:"\f358"}.ion-waterdrop:before{content:"\f25b"}.ion-wifi:before{content:"\f25c"}.ion-wineglass:before{content:"\f2b9"}.ion-woman:before{content:"\f25d"}.ion-wrench:before{content:"\f2ba"}.ion-xbox:before{content:"\f30c"} \ No newline at end of file diff --git a/vex8/patch/cdn/jquery.3.5.1.min.js b/vex8/patch/cdn/jquery.3.5.1.min.js new file mode 100644 index 000000000..d467083b6 --- /dev/null +++ b/vex8/patch/cdn/jquery.3.5.1.min.js @@ -0,0 +1,2 @@ +/*! jQuery v3.5.1 | (c) JS Foundation and other contributors | jquery.org/license */ +!function(e,t){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=e.document?t(e,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return t(e)}:t(e)}("undefined"!=typeof window?window:this,function(C,e){"use strict";var t=[],r=Object.getPrototypeOf,s=t.slice,g=t.flat?function(e){return t.flat.call(e)}:function(e){return t.concat.apply([],e)},u=t.push,i=t.indexOf,n={},o=n.toString,v=n.hasOwnProperty,a=v.toString,l=a.call(Object),y={},m=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType},x=function(e){return null!=e&&e===e.window},E=C.document,c={type:!0,src:!0,nonce:!0,noModule:!0};function b(e,t,n){var r,i,o=(n=n||E).createElement("script");if(o.text=e,t)for(r in c)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function w(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?n[o.call(e)]||"object":typeof e}var f="3.5.1",S=function(e,t){return new S.fn.init(e,t)};function p(e){var t=!!e&&"length"in e&&e.length,n=w(e);return!m(e)&&!x(e)&&("array"===n||0===t||"number"==typeof t&&0+~]|"+M+")"+M+"*"),U=new RegExp(M+"|>"),X=new RegExp(F),V=new RegExp("^"+I+"$"),G={ID:new RegExp("^#("+I+")"),CLASS:new RegExp("^\\.("+I+")"),TAG:new RegExp("^("+I+"|[*])"),ATTR:new RegExp("^"+W),PSEUDO:new RegExp("^"+F),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+M+"*(even|odd|(([+-]|)(\\d*)n|)"+M+"*(?:([+-]|)"+M+"*(\\d+)|))"+M+"*\\)|)","i"),bool:new RegExp("^(?:"+R+")$","i"),needsContext:new RegExp("^"+M+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+M+"*((?:-\\d)?\\d*)"+M+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,Q=/^(?:input|select|textarea|button)$/i,J=/^h\d$/i,K=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,ee=/[+~]/,te=new RegExp("\\\\[\\da-fA-F]{1,6}"+M+"?|\\\\([^\\r\\n\\f])","g"),ne=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},re=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,ie=function(e,t){return t?"\0"===e?"\ufffd":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e},oe=function(){T()},ae=be(function(e){return!0===e.disabled&&"fieldset"===e.nodeName.toLowerCase()},{dir:"parentNode",next:"legend"});try{H.apply(t=O.call(p.childNodes),p.childNodes),t[p.childNodes.length].nodeType}catch(e){H={apply:t.length?function(e,t){L.apply(e,O.call(t))}:function(e,t){var n=e.length,r=0;while(e[n++]=t[r++]);e.length=n-1}}}function se(t,e,n,r){var i,o,a,s,u,l,c,f=e&&e.ownerDocument,p=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==p&&9!==p&&11!==p)return n;if(!r&&(T(e),e=e||C,E)){if(11!==p&&(u=Z.exec(t)))if(i=u[1]){if(9===p){if(!(a=e.getElementById(i)))return n;if(a.id===i)return n.push(a),n}else if(f&&(a=f.getElementById(i))&&y(e,a)&&a.id===i)return n.push(a),n}else{if(u[2])return H.apply(n,e.getElementsByTagName(t)),n;if((i=u[3])&&d.getElementsByClassName&&e.getElementsByClassName)return H.apply(n,e.getElementsByClassName(i)),n}if(d.qsa&&!N[t+" "]&&(!v||!v.test(t))&&(1!==p||"object"!==e.nodeName.toLowerCase())){if(c=t,f=e,1===p&&(U.test(t)||z.test(t))){(f=ee.test(t)&&ye(e.parentNode)||e)===e&&d.scope||((s=e.getAttribute("id"))?s=s.replace(re,ie):e.setAttribute("id",s=S)),o=(l=h(t)).length;while(o--)l[o]=(s?"#"+s:":scope")+" "+xe(l[o]);c=l.join(",")}try{return H.apply(n,f.querySelectorAll(c)),n}catch(e){N(t,!0)}finally{s===S&&e.removeAttribute("id")}}}return g(t.replace($,"$1"),e,n,r)}function ue(){var r=[];return function e(t,n){return r.push(t+" ")>b.cacheLength&&delete e[r.shift()],e[t+" "]=n}}function le(e){return e[S]=!0,e}function ce(e){var t=C.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function fe(e,t){var n=e.split("|"),r=n.length;while(r--)b.attrHandle[n[r]]=t}function pe(e,t){var n=t&&e,r=n&&1===e.nodeType&&1===t.nodeType&&e.sourceIndex-t.sourceIndex;if(r)return r;if(n)while(n=n.nextSibling)if(n===t)return-1;return e?1:-1}function de(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function he(n){return function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&e.type===n}}function ge(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&ae(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ve(a){return le(function(o){return o=+o,le(function(e,t){var n,r=a([],e.length,o),i=r.length;while(i--)e[n=r[i]]&&(e[n]=!(t[n]=e[n]))})})}function ye(e){return e&&"undefined"!=typeof e.getElementsByTagName&&e}for(e in d=se.support={},i=se.isXML=function(e){var t=e.namespaceURI,n=(e.ownerDocument||e).documentElement;return!Y.test(t||n&&n.nodeName||"HTML")},T=se.setDocument=function(e){var t,n,r=e?e.ownerDocument||e:p;return r!=C&&9===r.nodeType&&r.documentElement&&(a=(C=r).documentElement,E=!i(C),p!=C&&(n=C.defaultView)&&n.top!==n&&(n.addEventListener?n.addEventListener("unload",oe,!1):n.attachEvent&&n.attachEvent("onunload",oe)),d.scope=ce(function(e){return a.appendChild(e).appendChild(C.createElement("div")),"undefined"!=typeof e.querySelectorAll&&!e.querySelectorAll(":scope fieldset div").length}),d.attributes=ce(function(e){return e.className="i",!e.getAttribute("className")}),d.getElementsByTagName=ce(function(e){return e.appendChild(C.createComment("")),!e.getElementsByTagName("*").length}),d.getElementsByClassName=K.test(C.getElementsByClassName),d.getById=ce(function(e){return a.appendChild(e).id=S,!C.getElementsByName||!C.getElementsByName(S).length}),d.getById?(b.filter.ID=function(e){var t=e.replace(te,ne);return function(e){return e.getAttribute("id")===t}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n=t.getElementById(e);return n?[n]:[]}}):(b.filter.ID=function(e){var n=e.replace(te,ne);return function(e){var t="undefined"!=typeof e.getAttributeNode&&e.getAttributeNode("id");return t&&t.value===n}},b.find.ID=function(e,t){if("undefined"!=typeof t.getElementById&&E){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];i=t.getElementsByName(e),r=0;while(o=i[r++])if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),b.find.TAG=d.getElementsByTagName?function(e,t){return"undefined"!=typeof t.getElementsByTagName?t.getElementsByTagName(e):d.qsa?t.querySelectorAll(e):void 0}:function(e,t){var n,r=[],i=0,o=t.getElementsByTagName(e);if("*"===e){while(n=o[i++])1===n.nodeType&&r.push(n);return r}return o},b.find.CLASS=d.getElementsByClassName&&function(e,t){if("undefined"!=typeof t.getElementsByClassName&&E)return t.getElementsByClassName(e)},s=[],v=[],(d.qsa=K.test(C.querySelectorAll))&&(ce(function(e){var t;a.appendChild(e).innerHTML="",e.querySelectorAll("[msallowcapture^='']").length&&v.push("[*^$]="+M+"*(?:''|\"\")"),e.querySelectorAll("[selected]").length||v.push("\\["+M+"*(?:value|"+R+")"),e.querySelectorAll("[id~="+S+"-]").length||v.push("~="),(t=C.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||v.push("\\["+M+"*name"+M+"*="+M+"*(?:''|\"\")"),e.querySelectorAll(":checked").length||v.push(":checked"),e.querySelectorAll("a#"+S+"+*").length||v.push(".#.+[+~]"),e.querySelectorAll("\\\f"),v.push("[\\r\\n\\f]")}),ce(function(e){e.innerHTML="";var t=C.createElement("input");t.setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),e.querySelectorAll("[name=d]").length&&v.push("name"+M+"*[*^$|!~]?="),2!==e.querySelectorAll(":enabled").length&&v.push(":enabled",":disabled"),a.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&v.push(":enabled",":disabled"),e.querySelectorAll("*,:x"),v.push(",.*:")})),(d.matchesSelector=K.test(c=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector||a.msMatchesSelector))&&ce(function(e){d.disconnectedMatch=c.call(e,"*"),c.call(e,"[s!='']:x"),s.push("!=",F)}),v=v.length&&new RegExp(v.join("|")),s=s.length&&new RegExp(s.join("|")),t=K.test(a.compareDocumentPosition),y=t||K.test(a.contains)?function(e,t){var n=9===e.nodeType?e.documentElement:e,r=t&&t.parentNode;return e===r||!(!r||1!==r.nodeType||!(n.contains?n.contains(r):e.compareDocumentPosition&&16&e.compareDocumentPosition(r)))}:function(e,t){if(t)while(t=t.parentNode)if(t===e)return!0;return!1},D=t?function(e,t){if(e===t)return l=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!d.sortDetached&&t.compareDocumentPosition(e)===n?e==C||e.ownerDocument==p&&y(p,e)?-1:t==C||t.ownerDocument==p&&y(p,t)?1:u?P(u,e)-P(u,t):0:4&n?-1:1)}:function(e,t){if(e===t)return l=!0,0;var n,r=0,i=e.parentNode,o=t.parentNode,a=[e],s=[t];if(!i||!o)return e==C?-1:t==C?1:i?-1:o?1:u?P(u,e)-P(u,t):0;if(i===o)return pe(e,t);n=e;while(n=n.parentNode)a.unshift(n);n=t;while(n=n.parentNode)s.unshift(n);while(a[r]===s[r])r++;return r?pe(a[r],s[r]):a[r]==p?-1:s[r]==p?1:0}),C},se.matches=function(e,t){return se(e,null,null,t)},se.matchesSelector=function(e,t){if(T(e),d.matchesSelector&&E&&!N[t+" "]&&(!s||!s.test(t))&&(!v||!v.test(t)))try{var n=c.call(e,t);if(n||d.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){N(t,!0)}return 0":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(te,ne),e[3]=(e[3]||e[4]||e[5]||"").replace(te,ne),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||se.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&se.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return G.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&X.test(n)&&(t=h(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(te,ne).toLowerCase();return"*"===e?function(){return!0}:function(e){return e.nodeName&&e.nodeName.toLowerCase()===t}},CLASS:function(e){var t=m[e+" "];return t||(t=new RegExp("(^|"+M+")"+e+"("+M+"|$)"))&&m(e,function(e){return t.test("string"==typeof e.className&&e.className||"undefined"!=typeof e.getAttribute&&e.getAttribute("class")||"")})},ATTR:function(n,r,i){return function(e){var t=se.attr(e,n);return null==t?"!="===r:!r||(t+="","="===r?t===i:"!="===r?t!==i:"^="===r?i&&0===t.indexOf(i):"*="===r?i&&-1:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function D(e,n,r){return m(n)?S.grep(e,function(e,t){return!!n.call(e,t,e)!==r}):n.nodeType?S.grep(e,function(e){return e===n!==r}):"string"!=typeof n?S.grep(e,function(e){return-1)[^>]*|#([\w-]+))$/;(S.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||j,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&3<=e.length?[null,e,null]:q.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof S?t[0]:t,S.merge(this,S.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:E,!0)),N.test(r[1])&&S.isPlainObject(t))for(r in t)m(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=E.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):m(e)?void 0!==n.ready?n.ready(e):e(S):S.makeArray(e,this)}).prototype=S.fn,j=S(E);var L=/^(?:parents|prev(?:Until|All))/,H={children:!0,contents:!0,next:!0,prev:!0};function O(e,t){while((e=e[t])&&1!==e.nodeType);return e}S.fn.extend({has:function(e){var t=S(e,this),n=t.length;return this.filter(function(){for(var e=0;e\x20\t\r\n\f]*)/i,he=/^$|^module$|\/(?:java|ecma)script/i;ce=E.createDocumentFragment().appendChild(E.createElement("div")),(fe=E.createElement("input")).setAttribute("type","radio"),fe.setAttribute("checked","checked"),fe.setAttribute("name","t"),ce.appendChild(fe),y.checkClone=ce.cloneNode(!0).cloneNode(!0).lastChild.checked,ce.innerHTML="",y.noCloneChecked=!!ce.cloneNode(!0).lastChild.defaultValue,ce.innerHTML="",y.option=!!ce.lastChild;var ge={thead:[1,"","
"],col:[2,"","
"],tr:[2,"","
"],td:[3,"","
"],_default:[0,"",""]};function ve(e,t){var n;return n="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?S.merge([e],n):n}function ye(e,t){for(var n=0,r=e.length;n",""]);var me=/<|&#?\w+;/;function xe(e,t,n,r,i){for(var o,a,s,u,l,c,f=t.createDocumentFragment(),p=[],d=0,h=e.length;d\s*$/g;function qe(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&S(e).children("tbody")[0]||e}function Le(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function He(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Oe(e,t){var n,r,i,o,a,s;if(1===t.nodeType){if(Y.hasData(e)&&(s=Y.get(e).events))for(i in Y.remove(t,"handle events"),s)for(n=0,r=s[i].length;n").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",i=function(e){r.remove(),i=null,e&&t("error"===e.type?404:200,e.type)}),E.head.appendChild(r[0])},abort:function(){i&&i()}}});var Ut,Xt=[],Vt=/(=)\?(?=&|$)|\?\?/;S.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=Xt.pop()||S.expando+"_"+Ct.guid++;return this[e]=!0,e}}),S.ajaxPrefilter("json jsonp",function(e,t,n){var r,i,o,a=!1!==e.jsonp&&(Vt.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&Vt.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(Vt,"$1"+r):!1!==e.jsonp&&(e.url+=(Et.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return o||S.error(r+" was not called"),o[0]},e.dataTypes[0]="json",i=C[r],C[r]=function(){o=arguments},n.always(function(){void 0===i?S(C).removeProp(r):C[r]=i,e[r]&&(e.jsonpCallback=t.jsonpCallback,Xt.push(r)),o&&m(i)&&i(o[0]),o=i=void 0}),"script"}),y.createHTMLDocument=((Ut=E.implementation.createHTMLDocument("").body).innerHTML="
",2===Ut.childNodes.length),S.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(y.createHTMLDocument?((r=(t=E.implementation.createHTMLDocument("")).createElement("base")).href=E.location.href,t.head.appendChild(r)):t=E),o=!n&&[],(i=N.exec(e))?[t.createElement(i[1])]:(i=xe([e],t,o),o&&o.length&&S(o).remove(),S.merge([],i.childNodes)));var r,i,o},S.fn.load=function(e,t,n){var r,i,o,a=this,s=e.indexOf(" ");return-1").append(S.parseHTML(e)).find(r):e)}).always(n&&function(e,t){a.each(function(){n.apply(this,o||[e.responseText,t,e])})}),this},S.expr.pseudos.animated=function(t){return S.grep(S.timers,function(e){return t===e.elem}).length},S.offset={setOffset:function(e,t,n){var r,i,o,a,s,u,l=S.css(e,"position"),c=S(e),f={};"static"===l&&(e.style.position="relative"),s=c.offset(),o=S.css(e,"top"),u=S.css(e,"left"),("absolute"===l||"fixed"===l)&&-1<(o+u).indexOf("auto")?(a=(r=c.position()).top,i=r.left):(a=parseFloat(o)||0,i=parseFloat(u)||0),m(t)&&(t=t.call(e,n,S.extend({},s))),null!=t.top&&(f.top=t.top-s.top+a),null!=t.left&&(f.left=t.left-s.left+i),"using"in t?t.using.call(e,f):("number"==typeof f.top&&(f.top+="px"),"number"==typeof f.left&&(f.left+="px"),c.css(f))}},S.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each(function(e){S.offset.setOffset(this,t,e)});var e,n,r=this[0];return r?r.getClientRects().length?(e=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:e.top+n.pageYOffset,left:e.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===S.css(r,"position"))t=r.getBoundingClientRect();else{t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;while(e&&(e===n.body||e===n.documentElement)&&"static"===S.css(e,"position"))e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=S(e).offset()).top+=S.css(e,"borderTopWidth",!0),i.left+=S.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-S.css(r,"marginTop",!0),left:t.left-i.left-S.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){var e=this.offsetParent;while(e&&"static"===S.css(e,"position"))e=e.offsetParent;return e||re})}}),S.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(t,i){var o="pageYOffset"===i;S.fn[t]=function(e){return $(this,function(e,t,n){var r;if(x(e)?r=e:9===e.nodeType&&(r=e.defaultView),void 0===n)return r?r[i]:e[t];r?r.scrollTo(o?r.pageXOffset:n,o?n:r.pageYOffset):e[t]=n},t,e,arguments.length)}}),S.each(["top","left"],function(e,n){S.cssHooks[n]=$e(y.pixelPosition,function(e,t){if(t)return t=Be(e,n),Me.test(t)?S(e).position()[n]+"px":t})}),S.each({Height:"height",Width:"width"},function(a,s){S.each({padding:"inner"+a,content:s,"":"outer"+a},function(r,o){S.fn[o]=function(e,t){var n=arguments.length&&(r||"boolean"!=typeof e),i=r||(!0===e||!0===t?"margin":"border");return $(this,function(e,t,n){var r;return x(e)?0===o.indexOf("outer")?e["inner"+a]:e.document.documentElement["client"+a]:9===e.nodeType?(r=e.documentElement,Math.max(e.body["scroll"+a],r["scroll"+a],e.body["offset"+a],r["offset"+a],r["client"+a])):void 0===n?S.css(e,t,i):S.style(e,t,n,i)},s,n?e:void 0,n)}})}),S.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(e,t){S.fn[t]=function(e){return this.on(t,e)}}),S.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.mouseenter(e).mouseleave(t||e)}}),S.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),function(e,n){S.fn[n]=function(e,t){return 08B6{RlX{FP zCj{-E5#^5z@T3#;tQMs&3HPxW|Jo(!l@9;^|IOLl{{R5_wi#ZHEC2S+@~9R6_}c&U z!~gTS|M9Q?=5PP~_y6T(=aLTp@1+0ZTmS8u|Ll+ayc_?*9{=ci|J_CZ+%f<9e9g03U4RS9sMAphDX|K2;9JO%;-0eh$;cA_BPjSts@4aRN^pf3rU zEC;Uu0JKXMs7eTRq9@L}n<)Y$g24B3OVNR&yEZp%%(?439Mj+5!OX!h7krYNyLq){HsKcq_ib!?Dz2 z@4QIsvOQB_9=~52Q%Ml`008{z!Q!fJ)s9x?tx}f1J==;E?(p#8&D=74v7ZsDLpzhN!>?#lMpnDo+&`PqbkhlG26fWb3If~z>}u_w-XAKLPo zqAEMynJ8y`9sTgsql=HlmnzJ$9iRjOE|}D%0001IbW%=J08KAH2M+!i{tz1_K`h69 zN-*zpDE_i$TOj`U)j8t+{5k&q>5KfImu2wM!Yqr$+V7wO&8g$Bs>tGlLRGBHEtZoYsH^)R zTPZgNgGFUcGzh9RYn!8@ge+g))D*OFx^_W!5^~oC38JL5@HTOCV;=lX?kcfKB=u>Q zz&wG(s9dZPKxWI6my(k~-c)#{?c=?UTLs(JuUiBQl88pT-`qW0Q`0Sid7{ytp5fVY zjY4nC7ec05EN|+vmCEn58#palikH_ujUp3+)N!vPM|g?st*J{JhWIW&HW=T z&-OLI%av({L$4iJ!Z*QL<}Q}OJd@6G_BW2H?pcvBQ?gK26qWwC?Ln(ij(_BVh3Sh0 zI@WJxXM$ojROxUyDzTB4vQY;wj8pEGRrrnLkM4GxGvhUGcWIZ+w$^KJXhhFPn(20k zJtQC2*p+STfXFw$J;Hf|^J%T6B~|Gbk^N!Nsz6{$TNqkDyu?f5|IHDj1_EN1p3x$UOBxrB)SuP z8OBD)!|%9pE$tdH*7>m1BsPjQI8vSB9Tr0dAn%+dU%4RKX=gkd81VaDt{4g8RmX+{ zpopAcYPmZ?)H_$|Gy=%SkGbL!Jc_C+I69o9pVKs0kIMHDM!;#C>(EKy8@a3bXV zU?Cp4hz}%(7hY6w2-Lk7n8#QM68AJKrsuZ10aFG@p@>{anvPATgpJ6&NfToi#B3KEOQr8-dMq61bj3Ig^=~ydPNISWK z0n*&=5?i4s2Q}DRkaMuv(%kpJ%IU91sAI<>96!c%N0`tgA>W=N3ZpM!@ajj7Mgbjy$TGsRV_#`*s z76VU~pfkLa2@+Ty?&OLY5u`QY#;d{Smz@pvdPF$KCaqL#XCp0d*|$x^Pcm_>{xd%u zN|=D7#B9PR14gNPQdd_uG{k<*%^jjz_c>a1sv*4=)xNrOa}w;DkYQHNU62yr(bK%^mp=KhjHQ*JfA}TcgMi#EZ4E6gBna<{ z)lT$_f|Umf*I!#-M?J+)>yi>&Gl+ex!mR(7sBfH}cOR?StXPfl=P#eJ0@B{kYR#>+ zi6DyO)0(E6*s9TDG?EL0j!bRIE3=-`z}GFA)-a^reEZ3)$$BCfR7z zgg`G)qDciGe5o&1L=YdmQ1uh2C?Y;Nb7qq?HG&F4_V>_}IXm-k{yB5b%r?iYBl^HF zA9(eAY^;7z&r^JUJ^y6WY&06Mc*kDexN+m!=Nr?w2DNYQc^C{S^I(@Po6PADQ|4D7 z%9>l(UWXM$S+*DzKidxTl(A=*o;}|^MzB>|21!D+v~RTWeEp}F*M1>6zlsV$J`E-N z6^MDEa5qa>S!P1OoJlh0bz+V--eK-<;|Z3j7vDcTrALWTdMkgkXAzWytp zm*|KP7n64f22u(QdcktfK!&igL`?vl61VhF1xO1RYIs6m;^WtKQ&Vr>j(Ug5 za8n)HAMlg1;T^hI0AVhgt3cT92oa)6No942MV6E!hADEHIFdt>21*3w1SoO;?Z=N_ zr=~`sl|I>zkgj@|Y>|!G;FGbOCZ0&uT*X7VLWI!GNqaI(Ms}4Wm9-IYU5FI@$x@}Y zns$tDqa+>PLGSof-DEv>d=JT!rh{1>lt>hm7)lO!Ji@}&5mkuAXhHOXM8O};yj2LX}+Si!+sT z!3!$qqTIBgYb9`oIZYJH6IKwx@AuKa_xyoD(mNkD`FO~Ucjwd)6Py{RwD`%02y@^ZBgpk2RCY>+0dsI*Q`{o%O2+Bp zoH~?aR~Wo<57Gdw^-O{p$4bixHNJN#HAIP{EzvB7vP#HIh<0Gs&*RZfs*m3$TxO(1JDeXy>2ijI$Sfzua=zRqfY~9o){HcO!Ah^-R_{n& zPCPtW-PB}l#_4{>q{z<9J>&fuVj{D$*qikQ$uvOMZSO2Ii9zPn#&2-W&}6XOqsPe{ zPqw#i+h#zb(9dw=6^LTS!CcVH#-m^uA-Tg`v7(~$loXOW=3y83ur~fPuB-8rl&JRl z^NU0sA~Z<7D&s7@O*ozLxG=Ml04767kR&PW?(GfYS`j=ktc^GN$Y3LZ&lG~Z%qKYG zy(&>VQw`_B7TsWkSZ`ru$2izD*2HUUgc@zIH*V)=L?a^DWtWQ3fPk%%D}&evCLMAW zM#5}$7$a?9C4FPq<`3xeGNKs~xs2(ufdGnx}3#Gb@lg-PQ$(@-Nq%v*n7KVloy zdjokw>`-f?TSYAr9dUOCF##qlhuj4T;wV_H2yx`W`3alFtJmk(h?9s=fn!%xqCJRh z78vz~!V=CR%JHZqq(gmI@{lDkS`lK=%?A@ci`U2J3$YUs%CXR=A~+DG6AR%)RK^5H z1Ey^4+=?@d#}naTUj|76qYWXB?A>r^!pFlsJWq(zh~l8J0P1O=3Ih&jt+^bPm8t!p z+*D!ivOAeFvZRWUPH0Go&5sW?w~_A2&tTPI#QJBSN)UI0XGN{OYu;j1n6edSJE##) zgvb)jWJJ~Gz3V0p@B|A#gOx3aQY&T>B98y`puE^@chGGTjmxl91MRbG{riJFpb9Zq zZM8x3c=M$ZQMz%OW`hvN*oppvicUxjIYxyj{sUDr$S^%4T2KqmgxF$$TzAN!aFm49 z(4|9vhskVq5-GxcLh%bxv!#s(eDyrz@az`#9=`Gz+Z#|C?f-ax?1qNYfQlVs>(R!2 zH8t(+?M-?fXs_G1rA^PbwQbqaiYU6;tsUmsgv!cN!ct(??}6u~l*&r7%Glk39o?wd zF_zAnRRWwPdbG4O?yoB;siU-(EH$cgDobhLCI0{jQ##v#iXWZ9U^E)x+XmDx(r7do xblEvNGKj8$ZGT-_z5td$bOsnLYe>o002ovPDHLkV1nC!7g7KK literal 0 HcmV?d00001 diff --git a/vex8/patch/cdn/kizi/images/close_btn.png b/vex8/patch/cdn/kizi/images/close_btn.png new file mode 100644 index 0000000000000000000000000000000000000000..7e52d13d79c64076c71c129d27b281c776eff08f GIT binary patch literal 443 zcmV;s0Yv_ZP){-84>gS8R;G z$J52k*H2}J&(+?@&)Jfow2qvyKv;aq(AvYx);v^sLt1{z(%VyLiI$_cV|SD~Q+O&x zZCP%Od5WWekf?%@snXcsZ-Jb_$<&*tx^{=5gp;a}p0itTj(m)zbA_M1#?q{}#&Uz6 zMqPl4nXg}SkxgTTY<`-Ysk^JS#b|n$hLx->%b7j^006s5L_t(|+H{fU7J@Jgg%gGX zGDHOjD(*es|K)5FJuM*pL2tg3lH>-U{%+ph(TE*G?8U2CCQeh#Tv4Q ztPv?oWKH&Yb^7%F&->xM&vVXmFV}V5_kGUu>4`Bhy1<4KK!HFYHi90W1OhP~`b_Ky z=EKbS$f6|>2)u7XG}Ao{|6@%5iT~f>KcXJb-=>Fc+MnAS0xVJ5@P7ij+{k|pHx&HO zxhDG;`5*fy@*x2BFaLiI^Pl9u(3qFS2nWjk!D&x8690wV$_ zBLHO#uxM~1_dvUh=y6|HNhyaYa+6n5RB6M37en>eaYH=cxuBza< zkOn-czzd>>+z1PqLlGPo@=)#Y5O`3BrTiQ4_pZ=X1DL-8qAAZ-i4CsK@wdfcNf6Hb zz1wH9$=nTtJk;5k3|b#CE3}1=He7r2*rGDoDBeLRD-d@m#SQ_BA|ZO*sL2+Wx1O-K zp)ik=$fhjChAfRtf7zl){i6s78#8!eAYis#d#d5grz)4nZt(pg_~8~keh|hl%E5am zV^WYY!Oa*)F-DmggUpOR$U!IMpbdJ^1U;yO9lVC^m%;Xn;f!y}jA=#2lpJG9hVfO3 zF)79vgD__Bj2SJ)H+9AjBICOreHn{4 z8A~CIeh6bJl<^62&<#20f*iC%4qBiG4bX!((1U8&*j?y;C2YSOwqF9@e+hf#iXa_f zu@GR{D})aQL$>MgvJm)s7Hr`m?Av`=tmnFII2q8^(gqY215Z^UF2 zbodU$T^8kh9F=5(9DM*^c?|pZ3c52J7H}H%DH5?%1Y1mlwO)tZR!3#qAVba}N2rL- zP()86JkuTCk^~D$2&k143@2H&*0?&^EXm=kcgEG$2(BJlg%${nFvL#YcV$s6L=4ES`ec-<#lGLy4vo}@5=`VyMKNy&d+AvazDTGXLDn1_2-Y%U^Jr%QuC?0p10 z&Ma_r@pFg1paW3v-Q_HmSi%#{Nr^_>EoP<!p9dqGL;W;`| zxeqXaRGowLfFAX%VWjL3s=nLNIyJt1&XVeX))H(GtVg}miRVuv?K{f_8=HcwDv(Jz zuVWJO#Qaj*mVbFz7RX)n51Ca-zNUSFQh}E{Z;Vmv#>*;Jn!Zl?@!1=!)@vuBdrC2p z5>Vq_e*J=Nx}s}taGRZ9mSgBE&E{{lo|?m+4-)e*&F9+G2>PcY+DVnyuRRZv@6b;w z7RN@CRm|nvhZpgFCh<(XhKWFuZu!f&>K&XOmFUVsww^duqRtz&o*P|VLb%B@WxuTq;-gwu4Hrf_F z!EG2~gT<5ca>Jb8DOSL&((_Bt@=VBz#CP2g`p(q%=8`~@4~jQo_p)`4Q({>LIE$$3 z{l!k=(KL&(YMH2) zVPEYibHUR3 z(f}gidC*qWOEh}=Y*vS^WwQ=dLFB>2S_&vaDq)&IkA4VJ4QjPyXQk*hTXA(@HtW3t z8m)v`O$`qDkO;yaWi~ExNJ(gOyOU#qf|<6j-VevV0ybQ0?Ra>uD-%|eUa5zTdu6@U z`-8cJl}Zg4?t1?dt7S}j;}Vx=RU^y_1J8J&@&g;w^iVtfM^W3irdGzsc@443>IR|Z zc(TS7q6SnmBRTozOK0k}Y|_docWASFw>JGW%85lB}WocwvG}#Wbql0y|5~7s)UZ7(0I32A)FE5XYOmOs$Mq(~C zJ7EuK69j6fwU)p2MJ0A4QDLh^OnfT^FzvcBpWwy6c-g)$qEdnPba}@kMO^I%SXaHSzbup1q{+yrj3FPCiHO_u|(I6hTlL( z8sEkKMTXrb$$-cev(i7NOMPTbjD;NQDH9I3Isy{K7c1z`= zGQpP${-6rAB{a~c^cyTly^Xi1Y{bXtcKtJ~eKfIn2TUIO{r>Z;4ye(2pg%2<&|r}S zOE-QMGliKsF*2}JGXdzvCFoQo*_gh}HpErjw1J?FO`9qR?FHX5&S#Jx%6pQ^drKZw z)Lh1><+(2xLgdpOS#mSOUpO0ZbYT|Ibl{fc_geNtBo=iz_`}oa7{EjFN?0N=md0LF z=`}nI)BOB6=k9z$NY(=ZbQeY@?RDhvGs(m^bSQOQ z7gd#XvntM*#CbdPhQXE;<(A|D0XMMkqP|K-x!{p#q}3Elqrqe#-;x0gVJ zc6g7=N*e6Ag;yZ_y;Fnn&aurUw4|dnwQ(iWh3&&f9|228hh-Fdxs;$GYqGoo&RGEg z!`feQyZJL{`N?rw$Nr<0hP#}jUD)LxCHY+d2eWFrk9)q(_rHt8=8sqQt46Jgc)^ zU(?4{ba2B_9Mpb}kL%jF(I{r>B-6tgjLYbmX3XfWxRo2((iwL4|)3 z=Us14gmC8yHX!xproXmz4=jgBNzF+&uai49+I>EOQ;yyqz64+RP01 zy-crP)Y6@_bZgizc-npPgps)J;t4<@9x$u+zE4!c#Jy9tZuTRU9^0yoB%YvDX*G5AtF?hR~=z4QTZe`eM;YR7C2QJWk>SA9LE;=q(MfV zKBv7^dQyx{@pRr`)S#FC6t1vWAw4ubUJPY!_0kAa%XyvPu8PL#xv7Pj`{?&YtaSP( zcYZ+VG@a%}94!E9c0M2ybAtG8_KY+~=?REr+EPOh#^d%m^5jsBh;4}<`O1hR*D-3G z?nIaA>MSO2kF;WBcA~FAAH{@5DiDZFa-!PtH>#Uw@QDVNV7f)eP3X3Wp|>wEsY#^3 z1Q|0|8_G(8uc0?7%49Imwn8L`9kaIm5}+K>JNc|%NT)DMg05mUnmN6})mTdK98FN8 zXwg+Ph|^AH0U)B);%>R;42DY`Ph&ejwk*=(1s`cWk_=gH2tnV`GBlW%sKRC&-YN;x zn7Tc=e26}<6dd<)w!a{Z%Nce(AinSrbtC?r`D_xnCp4T=?Up&@sakSf$v80+)}${$(Uj>&e9^WXYmQpo(KK5N9F_5 zFZQ&yQO(=$qTXwz9`m9h(HUZ9GOV@toiynTdl1MXwd0~Gi+EC^2GU07ZX`xJ@stXvD)ulISTgK*1q zi;Lj~XwOUKjH0%q+a9wH@+e3>uNG-`OpL|~n`G>t)#c}qot4qS`Oj~rCFpAaK6#BA z1t}<@$zc4-Qyu?z?JAabdxL3h?wok5mL{u=%h`^x`Lcu=weztl0^`$q6n}5hfIWz- zrZ)TnzgdACvu}yanh&lvyoGcLV*@))Y$GBkW-R8|~v}1AAcTbr++;3|~{>6Ue z@dK?!lp->`ckUt|S~lWB$^YQs5K zgxNH5j)|=(#?AVw?pgM>Cfs?xMML@GSGK<_pYvbS$TUN=zu#QEUTG?gYFZ(7glSRa zBkWT)@Gj!fuXxPjV&2yS@eH(?w)M`6saTlu z7^Hsa`x7?291A|qvu;mamma`-sogaN3efkH^Hs7+>c-+lB6CiG(Od!QLoG_52E3=y z@MMul`7U~LJ3yT-N8h-C$}LHDu4~yQl36L*+TnNHS&ZRKqV{Mv{aFRVLNF@ZNQz7| zcojLdYwa?2o3RFFZ%sUI7NGL5Y^Y`Y@kXr`MqS9_1Wmt{iMgBZc{P1m+0c}xL+g&f z~NV?0WTWi&zgwP?3TWbDuT#%ICDLpO2nzcSh-YvquFN zRlVTceY;#{Po%;8=p2}LK3VIWSBLpi^(B)I8t#C%}LH}3dD?cVwv z&Asht&JX08=6Ya=407tmi9{-tx^iTNgAfkgAVj`O_Le(4STyP00zX$HnE6oJ)=Qdu zV~=wxSvs7-pQd9v9vz|QvfukD*+)R2w+sh!RCwD4~# bzZMR_Gkjp0C16AN`^iJlHNuzZ*oXfQ0eM9e literal 0 HcmV?d00001 diff --git a/vex8/patch/cdn/kizi/images/kizi_logo.png b/vex8/patch/cdn/kizi/images/kizi_logo.png new file mode 100644 index 0000000000000000000000000000000000000000..40a9ad571b7d615e7222ef80768197834072ccdb GIT binary patch literal 32955 zcmb?>^;29;&@S!{!GgOku7Tk0ZVSO30*mwF?!jGy+v2iFg1ZD=ED&H92o^MGvR}S? z>;4D#{BX`p*YwoWeV(4`>YhYhZ54bRY8)gaBz!ehMSUbBR3H)(iWC;=Kgn{hIpseA zlCGwq(!c5deUSg(;Q#Lz6&a}tfD^@rMuCAGz=ZZ0fbGMGp3aHoM2nWffmy_ZT?N4Y zC*;9Lt^i6ZeA81fbsL&!=G5ncO6WKBUW5)a^S`EG{e#T$F$6)^E|0IM7o$u*!I`{h2VV-=b%8VM-FA z{M)3O4=0u#?dTI8VvF@S3;(Qu@MkW;c`?yFnEbZ!&2kZ(@4ZwGU7B2agl|%X-C|2BX%VbuQ!PEPl%Tb#B~c|PX=)kfY{eX zTva1(A;}!*h<(k!Uuh8cV~CUg5I;i^KhzLElo5Lhh^sopfx);Z-g*?lxBm!+oN#A- z@%yZCJI!%Y0BDUm*tJ5q74n$-X#_Run5{*aA?=NPAa#X2=e`b{XmMJw)=NDWx9zf91NIPuT=vOqI*R$@3d z(*;V!u>P)y<_lsz?`6Ku@*R}3zOKr@!b-0fa(=Hy{u=W=s4;`rE54izzHC@r4VgbK z8r)ART@6T_bUNIxS8W&DA|_dnI)h$!KAv@Jo)5>}FSy=*W!@PkJs~vMm87 zZotu_KgEo?<0hLWKIW^nFwluq_W9h{yUjFOKRAAh>C*udRMLWH&$uF`7JkbXN|p8q zDcj~uz^kDV@zJzk&mdUyeL3=;a-N*JpZwMV#7`e-F#h!F@q&hSI;wS$WYnA1P!tFM zmX>ka_-0HL=qxzf9pB8=NgX|8kMEJkKbAx&vh+OJ&(uuG8H88hXJ(f51hD+`gJM>e zOoTpb=`5cXm0&<0g5r?5PF&olM7o_$d5yT@ms|3o~RE!St{UkKuJgz#-C+j)f zXfL_f{J?BAje=%gyWblHus(EYH~rgf%96z{%e6o`uC)7@VDrk?T)XKh4Kvw@oO0FJ z1q@isVd%9#9e)@*nGEaN^=y9v;izs>;W8_?2t*y?{CAbhqS1K%CO2xzLll6k*nx~F z8~)2W&ux)X@p+H_4JVjT>owPL=!|^xIRk2wy7=K8yAasGRAR!HNHgpzIVCR0esLDt zuyWIr1_Q@qV{%o}hHb$1ruh9$UlS5`VG1|eQf{8mMoZ6Tldaw9e$8XKE|6a1?9)mX znudQP@uFJN?9Zv4|AmRRl+H}@b~F*a(}q5dC=b_(t^duUTFRM4w095}7D-snuxrWQ zo3aK=GJI}*4sbs^-B-$1hvzKlC3^a=vUjwvdI}SJ6QGN3^v@D4cwZ;|Z>zQv#)&KO z`<>*0gj@;ae84yn2IXk)eVc{AP>h!(p_=}-Lp@*swq=of$nP)^r@ri5OWEzf)wr%Q z@B&D$_%>}-$S%jqPSRsTn&hxu_HK@KbB70<#w7xHrM5_!-6g^2F7Lg>>=W(sBVs`X zs9_{L!8@vw_n$od=wv;C8_wbRZJgN^1!1Z(l6#nB6m;P1S;2lY;Ma|JWzf!H{^~wH>5Py}?LVIPQEI)I*AkZ3(O1xQwt7oB_=JYPMcLpEYW)vp+z--IRn_ zA%7k>)A}QCHjZ~p`;eTYKa@3_=sdYfLBnl71S1)?7JlyGznkZOcy@I4P)r2UUON8B z88q#&5k9IjMBT+X5>5d2ta!x&CR5&9zu(OV;wN^H^(Elfk%-%lFE>g3|L%ew!~xORfwz3CRwr=ra{e2HjWjXOcAx--75wfED)%k zQm^xKr_`AHO<>n~v$bgKjM3P;P_=`NfhuBa0^V%yTogP$wc-*h zpKME0Qr~HlwAWH#x1G(Y(l3kqw}bfki$z5l30!&Rl!X)%d}CKjx*X)QNRAAfd0E4) zcI6apKWGmfg~(we{TUTwX>8WJrkqelYqre6dd?`SdZNLAVRy8`V4Niy&#jy)$x3gO z7>c4Ij%91+JaaNOri{f17fuS-?Y0=}`pJi^nSIPwOf&1AyAbjL~0r}=(dm^X;F)-XH zqrg@PK;6&k0@0#W)BqczCs<#tmj#Ht13^E*W`Ffr2@woA+%HE>y_<+6W?{cC0=9TD zkD6f9IUpoNNcYTugJg4OCk!Vh?7QBp(RruLYxP@ivH<`AJ_N-mRfVLsk!@NjxD3tz z4k>H1%NPumJ;5eWrt6`8CXR=Wdt+}py!owPu68*ib}32vOJ_PpM>h{WM>3gkgl~w( zoYjP>VkT!t3;9U1IMkcq)hE%M@lz>VEYaNE&lQ(F^s!cXjRS+Ksao zy|v<;pth$UM3soIwGuynHEj(vh$e5~gr78VNpga4S`VaSTN0>O_844R4odT;THo-Jt{dS;c{&R|Qj*`KuczL_dC+N@FD29m|?lf`q*Hcd&V-B9i?4l0JFi^Q|WEbz$u+Z{Pi@ z35sB}s*e4oXKLa^N5H19m0}18# zMywHZUpwrJBMEbzlh4y5uUP1G4kj#rgU0ERZCLtpaK9%oXZh^ec+_DkoRu6b3{b+B zhNflxSs~6wQ$lZ<8EAH5fS8Cn+#vQ(h(X0SRy~ViS?@r}z|N0EeqzLZ%moNS%R531 zJGRaBVuXXdmjBzoI zn27G&-NWN!BdAT>+#{^y_Rs|Y-`d)eK$FkhI-Mg zik&stQIy0L-PUb5%JF;jAR2qGX^8!_eIB0U6s%MrT|Q0~i_su%7FSy?CQ4U|H1*++ zbl&Xu`%<=wCm`_5(r54e!)s~Y3$vfSK_wwOIcf(vzd`r8I%QYcp2314)_EX-2^u1% z7WSkxH*;e@;&(_OFrMOlT_1W5;Y;b{Ma|ywc^vm`-_Dt@Y5J)2li@RHq6;I< zE?(5&m%yxH#N}CS_{@*}9B#pyi-Vj4LBwnxBF4=!1W+865cqO@fh)v9*ch8}U6`?s ztK4ZTtbQHesLX7@aJ6gK`{0#R`UZBg}-H*^wFQq4s4OCn4Z{9wU>-F3n069E~3b2a!Nx})w?BRbst!FIw z3_6v?%wt_=|A=khZ~}WVAi09}RWzJkigP9K#8|hI-t{tW89$Z1hYt?zMBhtyy$b#_ zkL-F8MKz})47>5V|6mulYv!9Rc#VN_0VD-Rx|D#dK1tOUMkL=Y za4Bm9t!liQV^t_Hg?0_GL$4^ol${k%DN=6^y4ffI*O2rtPTF0+z9z9GOw{rNzqww# zXVMtI)SKuKB!mW4X3r;4YuCJwEjKC4I8GS*NyQ(-^F>y59gX8G*oMz%hBZ7lvHz=B zs5GBJZ+E3VynIW4WfzVW3kbwDiJ2>O3F;eb))53+Fxt-iG|-VIJLqbE=de$WF`I76 zh51ESxRDu*M8hOA}%BE zlBo8rNq7Tc^cE*c7M7;b;;gVeO-C4wCOwo;o^LP~7ZVcf5=4;L-yyu@)l33aU94Vt z`hYIKSi=U~*zQw_Qs*vs|Ao3DK-*KdEtx(RqzvHIDd}BvC}OlnEq*Z7j?1W^q{k!n zN!MAVN;{RZ#5Ew{^XV-mHaVrM5Bru7bjAsM^n7XH`lJoyIN=0FJ}&IW*?eTD6F2V7 zr6&ofTe$zjL!_#y)H^rW9IIuUB&{S;^(nND*VbwXq!7sO`}!QqR$SN;Z_awTFGzMU z?q&9+1n)UvU!`c#-v+%o+ID~#EGH0_)0@;#a~$vbZ5GX+0wpvnnIg_jK>1`SA@@Vy z81OdT{43lcmIG#z_5E8lmqM06lCgi*;U0CHa*|;s&ZhGN z4`AQJdaaUWB#MgPo?5T0@rmDS0e~BM^+%yl#-rGHuVx$C_k23BXcoWslRjqVM636# zyf(mJI$P$od-R#OmwG$A%<%mDZhaJH#7_K5LVEel<17UmU4r&Ru$oOjVt*HFFTPID zREG=*Yf)P+{BV*^fLi4%-j{-5=t;Yc=^O*Z{CMEakhR|7t>tB2fuYUUe`e#xC6Azq zJY7}ruJlwn1%^vA6p&!)DLH!fICx;yg}xv;2tBH;mvdLyQ>u zzd9XqJ2mxJ&V8Q7%e`8_=>+evuscHZGTdJ!Z~I;PcDycPewZm|l&j78JnY+|P9;eh zku+_`xCwA6YM9V`YaCOgpp9`0-Sve${`Pl>pZ)UP_8|_e`i+^aefwy96RDjkRh!)J z(MIBMuf}!M3)?`@O>4ZuF;&-{c*MbI*|hJA{LZk+IEDG|Mz9!u-(Qyx1$u!kO4fCV zvC%GX6khr0Zyx{54|Qq4$=vb!j+2H*QI=_T0w z^uO-8zD|1~k2n}CU+q6!SATagOtP=l{pJ6~RY-Bti6EJ^S=P0;b^p{=&_2=3j~0B( zuV}FZb4mZPf1k0RbY&!2s8QC4COR2+_DqYi8^&0+#Se3AS@*bf6JpZ%5pCI9r92xU z(#uzfr)Asi6)gxnSrnr>3pn#WGO+juX6dc*!XrHxEmB$Ar$vLIjlZ+k*=*UARd4dU z((hB4e*MydONVvY5Vd<@So{8nzKufGXO)vn{GNTuPeNrZVe>{LJJ@MBQ01vl{$EwB z?STKHLRI$_#$+aPQ?;?yMJ3AsTHY6w_HPAiYA113!jJpfL4 zIM>l$mUwpEAUd1vH@k6Oa%!j)rPh@{HT%^kbzP2Y=pwa>Qe#-+&uDxdP9-EAF z_9Z6!*qWiEwc1<_4EAlWKaQ6nRz+B!#lx-xy0+GxU*EiS&tz*R7f@V{HY5wDNM_)Q zI(e}ep+kiVVdr>5yxIA~YbhjGQHI zcRJSZQN9$tesY)I5X}8887D~8m4z6W3r>MeORG9MO##{%%x}pc7U5@%fKR#fy99T-y>;fka#JQqI}wRV40k`{G)Ons~M_gFrEJygwBc zBk8^ELV!CFNa;DEQ3Yh#@slBB+W26{8f2qnFzc;n%AROn9uLIyj{J6iE&(e41dPnz z0$g*7Hjb$bX5Uh={uHu12h}?PRh(K!<`v`9doPx1^||+Ke{i){-~n|PHmC^jAY(aV z4+up3k;Q|tnjLiia654yS6|on+$Q>&ZW;}&q`$?t5XjrDlUrbD%a?``ks#I zC~-d~vLz10g&mau#h*n5HM6mUB-4T7e40+ZQ^u-HRHv*IjWZJZuer1Ea*<&#$M)=WwYH{-e3osb>JGwQdIP!Y?_ncXDgtl3tgaD1jZTMV! zzO_c;=T<^JU6i1D4eCho3u&W2yP-Z^s`kcD!Qx+m;_wECd}k7pcLM)vI-8%l+YQ+g zP0MS6LNxR0E1r(ev-g7Xm&9rl2L?+gccM%6^`=ak+Nw?=3T^640fU*iS@Pmm`2qt0 zW7}P3^2%MlV?*N;)YEf`xKp{nkJuazJCR7C(S7JVEDE;bQi&U@cdu}bLz1k#Azy&$X(B-b}UVap%l)XNOn$N}j#_dg)Buo+VLr%~k9m>;9OO=8!l{P|ikO z#vCp;=Z={;Kifnc@R|N31Og*5jqPpVGq8qbl8z>_{NYQi5AvFcoAeJ8(Fm(hCc&L( z?ZpJ8T4OG$OOcsiLBu0~CepzvTA7KM!LxqzxDZdtbnZLx*Kh&uFId+N^jXOUHeYAg z7z@~~rmDpW$i&o|DGDAnr&2)4GIb7JAiS@&#`bnO_H+mhoPOM?c+ClLB~U4E$onJ- z!f7zc<5EX58bn>J>id9qR>ga02~c9LDlg`Jj-J3#Q`F{UXLtqKNZU0}DQ2ZVB7v|Y z8>f_#?e!VoLL9L<`V^_+8C5`9nuHa(%n%;7T2dB0?q}3yZNY$r|CsVZs;Fy3FPKR6 z+jM_{C)eUrx5KeItzb+qsVpOW^Hr_y$lUXUG}B_SyR}0_yBc<`HgTmG%A@-LxMM)9+7Aqtz}V@^l+KjCT5gSSZkjnx1s{^T1~u z;5)VbMAD=xuXAZe-hjexrKy+b1(MMvN(mN$k1nz5S{!oIn&V!XJvLIg(qB6lXRCg2 z-iZ*xNhGJ7QWLotA82P|Bi%F(57?&_6{4r^qnV>5^V|-qIyT;k+L1dE$bIDx#UIU|UgnRU@BR zKRvKQ{4;ypur-IUKp`lX__J}Y4r5k?($v_hd!DtajEmcsADH!l*3%+KZNQdiKf=-= z#ho@F9Xj}&Yg!ZY9F9Y}{Nu6Sd8`dcTB*lQRe=lQjjPzM5|OzoGOSv-o~;Hrr3?;7 zHSErsf_ddHw|E#8^b@K_?s*JQa|qcgG;s(|Db*@=Ax>B>{Y!lWjKpVRr)89BX#nMC z`xu5?&Ky=lT{V-=@F+|51O+SqMZRV;Revyy}~7BR6zvikPwhm>HgoMxK(`YqXr+Q%d>vuUyNMB4HQc z)2#U)gVWCoR9QaT#R8Bz($zLJg>dMK8GUP~Iv0uD*%jW;dv<>af5%ga!)N6wgLshi z9h;Yk+OX{h$Zqt%T+#!W@(=QU= z)I5Z-Gc;Mr=PtBP4&9fyC1^s`*a*}Z-9?dlQq#$WukBlj9ajG1sv@k>%0Zsr(;oH%lT*#I6GnXv1P7oAulzfn^ZhuW z3Mq{)Y}pPqlYijB+Dx-$D++CftQp4$#=JI4zaU9!XhG6~3?0;43v9t6MJDr&ku@>B z7G%R124h4nTb2r8u$LQba*7ZF-~ly5n$k6Kx(kPn{(3ULUR`4)zG@Q2N+GGFjYgi| zV9NK$?-#VlnFS+rwed9f$(L*$Nm;+nra9JF`=Gt5zeMut+lK9b2o>kA8)t%YqvS42 zspbSafr7|-*HzhGmm`7k6soqfaP4-l4HM8H7Oq_){bPr`y1v{;*vM#qbLRoZg4PPs zhh0AfBbqKL}>!(p9;NUa}%N8M#uM8ZO4NO@7Wfak{0yg&AVW#yX9CNOk%UKv%<1I(@Iq(Qwnc z$_7hhh74c>%Nkj-^1WD~p_%nz&%f^O-c9d3WC6qL-(~IAL~^7hhjLfAZsuiTEeluc z8YPui%h%O4@fOMI5+#3o;Q@+g_~dF3NJ#FLPpX4sSV^K13i*gcq$OwY-}a;-vZ%z8 z*+swJ$;%DTzDg~A+?|se7p}^Ep+*u^Iv_EVgtO({DM|_H8%(QzR-Yoh;@P9U!MhozL;kr@n_-rxR~9vJ%%J%f)zH0{GgTUgFjRx=S1)ukfX?7SC7vt<&R zvz3_Y&jF?J{wBCd2i7xZCh$SdJbT5TOX2b={QLUDVN?S4WyV1`owLbqTKxbM+2AS( z8-(3Mk+lm}7S$#Q-;$SiS(6ipZeQYCJ8 zo{nwFFDHMQFw#7(DsQ^=oWtpN(AD52tp(~N=!d+RcZC5cNURX~X+$e<-62jPK zaika!G&^9XBv{frA+;o`oCwEh8x~B$hz!>RGYdMLckh^lw+_b))aT`7?h()F&egoZ zE3~~};V(8flfRjI7a2UF-4?)%#K7*AkUZkCdKYElB?}s4mtCB$(4MON4iA<} zpj6a*8fBJ;5OmLq45%`#nqvk#xN;@-O3;u&=tyYcJen|)06l8a@*$Vs=c4bODp?eHe}UBQ+tuYi>jZ%k@7ncmnvp*!2)w=3 zG3Ljz-88@8@Iz`P6GHqY^)mWISyvM~K=5!)eTQQ0qE#dwreis5Ni zK$vYqSzUUrLTm)*!htY(lo(jk93x4chCHyx!C93D8tdZ?QfU;~M&lNCqlS>a3qXb+ zV1Cmc^p8^L|FJ&uZAN>b(lpojH{>GVo8&yPn@bIwkdlu(v4O_{AT3|{S-0uQ+&Z$S#br*Pii#*n_T zvFUKh9J+G=nxn&Q@7pQn1vUVtAg_s` z)X3w34D9L3gsF?meaE<`rglY-ud!w`rgXM;bEtMIjs&Q#l>#7I+UrGB(VdGj!Fqw4 znqA7rq%h^Xe^mymkIZU-^Xsk@8ejQbOZZ3^j)NZ%|DbKP5ojlHlRaiC3$qnnbazCN z{fmj6kV;7lRm}E>Z_Qblfi@%YeTkQ0t|T{TNoBGCAgz_vWR4-Ef)Y>KHg_5+Yp<8Z zi9?Pq)6|B&E}7y__otb1BR%iAq1Cy}89E+}w&IE(RzqLj24L4Yp~&i=7~7&5d-xvz zb~_my$V;aEnyyfi9)Ag%{?&^nw{Kq;0GTiz0*8I4#*G6Cp$Q8j%W`H!OmkOMQ~E8W zZVn2 zAT#32OxgHa9*H(O!egt5%%jrA9h#u3avr!AGJiO@6=c4VVcdYierc zYElPwBT<%`MiwCK?klq-y$>vs+>-D!bO((H)*M+L>t735yIFUtQ#!i{i`p zpi)oRG49_ip2Y7slUTZM)gzPJjVk;vcQGMS`CLITY2?%>8g;a}4Pf#+?g~M)(^3p{fV2`+WROy!@xI{U zaNjnILuOL6)$Ay4wS~K11)(6gKCGOibuRa=vvAbuq*s*e*OJlS9izWjZO-)`Jdq%b zI1SP^tote0m>L$&z9cqVT{Jm{ZlD{Ie&YB@`PF-irpCule-+M+A04W;5ZvT?aLjU9GYk{Aq55`mSt0;kC*ibSxjMY1zbuD^!|>uX+t?eYFiABjf0 z-i6M>Irhxx5`b#*rIOV6+VI|JRPLk);kxL3J8#{D(JOaraT&ExQj4GV1iU+DZzly% z7~VLKU-bO`XPZS5;zWs}M|t8uH?bmCd8Q7pP^p~8(!40`DTNB))ffoa!8J zE^LJHV&FK0?_M}$E_ddjla`x*!0VF~li)?J@&2B_?%11E?6uB?RNnRZm&GIM#Dv(< zd`{r^^V1@Y;!cbccn;7ah|`?}WX?h{pxn53TWav8iDC0A@c0l$yOIgpT1f=Dw|VY{ ziyF0An2hY_*?&6|k}zX~UB3SWdzKxth9!LliefrB?5#;cw1oHZ=_}3oi9TXN5u(HW za&#m?t3kR650v{4#vAS%Vafjo#d=?|#W(N!JHfW3)$XI(rvh``wt-tXi|tkAZ# zvD_ah74otCF_{)4)^>dC>hEBksn|~$Ka(Cjexu%k^U{xRP~OY$tu+E4FqohpP8X`i z6B&{Yqh7u!Ou;mgP26Pd&Cu`XG5Pzgu5#ZsM5So$unP3qa9Gx=vpBUTtp;#ryf-)36< zR;=}%#tWJa%WkwlN@cZ>%cf1iZK)GA?6}=69|9iAuDJkct@JHOA|iz}L%Iiq15u`_1ab3yH$V`uhY zeINZc?i!Ow_atDFw&ZV^&}eAVfuJ_elfr3%W{VX#7m>9%Ka{Z(V#5SY=g9kr-UXyJ zCOF(;6~b2{|AMfOlN<<(2@2f9Ls8D!0MlyL~Xz6XcB)p=DO{V zAWs{;ft^+n1Y>SV&1{EsCt*WvECm&6$!A1Hf)QBawikH+JDM zz_LDK020y?M$c37&N3PDTEoseK2M!o&R;0QOQZG9ANUD%j*?o^iRbA|H25v1-WOPCl zo02X92>tZq>YL_s&un9jAGZ>CFlH={cSzhV(25O0&ZnKh-5Mni*0xUgw;)cnX=kN4=dWhFbDWF^b@{_4WUz62fa(b{eR@$V>_)D1?SiCiY z1)B5|#QQzIOrrIGlMVP_EHoWE4sISw2_&+q@N}|-dWtlf_x!v3r7(rb$FDFof%pjW zcxHyqd>+TBJ9sDx4QHq)#Mvj(jH3wGNY~)n5y{i&@9?DQt(MSM#}V@hA2Sz9En)eF zgI6E1q9F`-3WhB7rn{{OL+FkLjK*iOPfZO05IW*-Fppoz+aOx9|Eeu~9jIdeNW=nb zRm*3#J<@)2L(ez0Vb2V+U0yaSEpFt;AxXRte+Lc6DY=SA2zCJmOBotOpK#DlUt{;5 zFT9e$Ja)g}Y37z~>sp5diDOMmPiig#ERDd@H>#WzjzZLQ?A6{%o1|qxidg5pbV+0t z_Ze0SvS3e_jLVM0Vtuek5J_FWKaD2$pN}AXd_R~u+GffF>!++j+mRfB0>)X^bq}Kg zixA%Xa&NjW*moJ}o{;6fHC!yxw(f2-L^3S=jKOkhIaQ$f#`&4_Uw$JQC-AlT!}u>v zO87{O?7UEw`jE?iAT{(@zeQgB<9rf4@@%(^^!cm6`s()_ z9)b!jxgmrt*Z$uGP?Emq+L(^q?vmi*Xq0NG|Kk;VA{HVcN42X>#ezTIx9!d@Bsr~4 z0k3)>hPyKIfG3O3_y7H{-@0@nlwfff&$ zQ>L3j6|q6p1-ukB2e)dq+WORlJeYr~<2++E-uueQcxb(gv7ub?D5Y|c2lK=z;&!I^ z#gDjd`lvw~c-PRoNZK-;pf;m%iY=pP`Iy84zoAe3SB`m&_UPG--*ViZ-qX0NziO(z zjC9O&Wj|bM5#7i#QUolmJl}LT5tCjesDSH9tc}3%apYHDDK@aT zOPbSodFvpM@q{x9aw4zCjaxoY!h@%{O_I|mb77K+jXvJftj#^tJ)TF;nPAK%vSrc>_TaqvX0pnW7N(up!obFepbTaZK94RyKwBc}89;qfMU z(SwbR%}OfVIPTJw(`ynmBHWd^+wnwEBA}bMHDBOa%V5 z5imh|plD;f(d_3vm{TV(!i@C0_D*k-$3RQ*E7(ccMR) zgw~pX&|HTESHCf8YV%zOXXo1^#g^2!e7e-lO&6}j{3xhEN644lX59?9WOPr3drk`) z8GwJ;!Sv4fkuEgSsI zK{JKrzaJN#wHSS0#t5zz&93$sjWD1Tu}c5y6=W(Y#j ztcz?+0JeGxycGiRu@32tANkOBJCvKJE+=j^RFz}ZoUCEteI&^Ax1WEFw<~2>(VcJKqDH6jEQg(UhpwvpBfE<>fLl^MeMOcSrjBeBx2@f;eBF+Ya!KU^f zxow;o!&F7M8aSDV%<{)%178HAc~(`3ZNMG$hlUx`|@O z;VnNSQ!uf{hg~VT1q&XiH(oxShJSQiwJmRhqK`!!6{MS%fhOtJ_E46sDTAA~1NkCA zA}c{cfoUS<>F`{YqtH* z8XsAD0!x1Rnqzpb8sSd5t#< z8S4ZY0%~p_JI~O;7}pPy{b_oa_2FPU2JS3+x^`^uQBZoUrm*firWUP_u;wD!BV$74{_Tz+~Rg%-# zEoUA0X|>^%FkrV6_y;Xf(WAnWrzov&5(Qb?&e~ZYAim3Br=?-yOm+KDem?8oO!byLP4L0bvv4K-w}jBf{Qa6HFMLG z6)mgOBbaMog{{V5GZalzCJLXjN0n*TQs=y$kk243^aN=dqI9=(l$<(VLrz>xB?^wA zTB?C=_ks+&HR}B-G<3zUdW9$q6fw*gqG$f8qe7P4UW0$-pJbr|?yKlsg|?i`)u+`p z!q05=T4=%Oup5J+f5{=oto*8j;Fb5QnC6sUJj!R#8%}IDGZAbASuaR;OF;pRk#mtT{7k?cnwAQiX$7)# z>Lw;+R1SG~L%=rQei@UzS9s#d?NNjWJC|A9onsI~;y83aZJ@@X3la0_4sV7yOMop) zVCG#jwvhG_P}@5kl^>B*)3nRkpT7E8i-;;WV0K5D&tL1oT^A0$UEgMHizURwj*_)% z00M`r)yGJuf*vn1Q)kc-$>e#-Ovg%a$=I(afQy*$+l(9R^IPoMakOKIt7Y!lns08B zkf^mHpqS1B_Dt0l&*gEw#_XxY zY(}-PXr|+89`b?{;}{|a7J`*m`4ICLNkCmiQ5I;Y5NK`i#F*uV^uv*W7`#E(KDr#3 zKQ|?lxAP+??S^U#PMYiX9ZTj02l1+^)cc-+1Iof2wm}zV$ZCT9Ujj-E9-o~6L_t?t zE3%cc2^jhnu1^>q%_c2<*IayJVoJpA(X|2?;N^iOG!@(Q#1nGZ zQ2)1E24t1V{aPxTf1PcS;YDo_XStiv_(2gMT2Mh#KpgP8Xg7b8dyrcPeAv&RAMtoJ z`|OBCyTQW(JzbNQ{`bGIwiShtG%!bZnG#z5ieCz@0)`1KxbifS!*z5t0NVdaAms1B z-h?bd!WxtRJ*H-abY=g-1nncZC1iH|NSADWLzE!0Eur0(<2h^j*F86@%}&VSOz=4(ThalnP=2ShH*2rR5?uHvp$GU-CxjsNLk&oIpVTi~ zc!LeRHe-USKbF!Sfs2<0-7Poll>zRBy0AhV6XPr%S&5)SLcQO$m z$|XQ2%)<5Ab^wb+mN1q0o1*;L(h3W{&-R_2mjf|Yetwh76x;R>8y(;yPN}MB8+z_V zcz4Hz@3vXyWebfI#H03WLG9w)O3=#MciMWOg5(Wz!TE`&XSZC(1e3|Sxnh0-Tun!( z96x5m`|RHDyOxcfByN#p8TSqf>4z?Uj!sBR|1`#zTlf~K=2yr!her6+I7V!aafD)s zIHVmLeKPegKga={A3?<37Pih$F`~Kre2-shR9g5|M+m1r!n>&}P3YYYm$T)Lp z2Fj2G+ILX$NcDWQ3jr0dMzan8DS2$_?o>ol#+8D?e`mBDl7|9&hS1hP;0+7jMW78M zchtRsQ@Kf_tDG(toGsn>Cg-d(Eq^n{HgpmSMgmp)i4{ez6$%ZQu0_UIz=C7GEN*#D z|Ct^2P^{VYRryylxU4CDQwdz90{F$|%~lwLJ0xu#vecV2g=L~u9J}EziSq2KV~&}Y3TCZ{+LI3GithT1hf^-)nUZ4zw`c?6#+c9 z02!H1Y=XsMBPP7CkB1XW}Hu6nv(RBbKWj7&xTy`-zk^J-7&~D zO5Lm(wFK6yv`O8(3@?{WWmmpExt>rUrzD#Kbu$iWVf;e*@g9GOG?7Abm}7W z+T-*8?d<{NvgR}gBk(~HpFQN68Lmm{W@83^IQC<9lk)K2Gm@v4&*p=dshcm}7i<$K zcW6;JgH942k{N6oKBQc$O48Y(Zu$k}!a++EikudaD|M6U$E7k;q&)18>c%722MWw< zbtsu)@k;u1RB{bdU|mT(tJKW{*VZ+d3}WSiK}#HpoUJDpyCiEIJ4j6`^L)2%bN7rC zRf}CXJ%;yQt53-kiVF`W@OjCM&~p7!5|6bF-Pmg}xy+Ilimw#u6_9HJPvom6lld*m z1FDXrl?wx|-x# zhFgB|9359RnXFJASA4g%gJc1!*W)te`W99$ zT$-^xtH~rsd0g#|Q?8E`n9%~loB7I9U^pVVdMRQlEffWVor$)#idxk|(}?Aor9h_F zdm9E;Ep}-}PLoNV@0Q@Ub~tfdf4g^kmJ9E_&Ks=*=QfroFtB%yY)~jJSI-m$l3Xpx z%NS--M^`Qk3fDA=s0-VCx8jv+w6R-XqgOE|xza7Ue5aD{v>jqkVjO&yE=svnZGi%P zo^qjD9zo%Z{a;BtW;VHQaS9{-7wQIla>pC(QcC!eO_6a(B|%UqCRc_6$u8*PtudUe z+7**rU&6`ts(DK@z83jz#Vyw>CKE3V<~GU{8Hh@*J_01WpsR{SiHrNGHiycx-F>+T zP*fY@GXeTI+c2=1LgHpsmB||6a3y?UB*HKA#fNrT4MkP296<&+#r?u^T_Zrk3%aW0 ziJRx~%B6*qYh;SJ*q%`(vP3vsIu*ZM1SqH>Sv=6INRZ)Ba@nwQ-D6HvX|c~bagiQz zZgtA0y*-wZ>k|R4)yid4lPP4LF^S~3Zgn?S7#U=i>jME6)X?m$+pq}37-#DRVYvng zkobbGLw1Rq!IG5>M!D+pXB;Vs8Ds3JB}9Ll{0ZE>~x#Bi9oG{8U;T zutMBSq#Qarnkg41GbSM@+?-bBv9L|NvE33ZjO2^O-$G=Vz?G{FvQChx6DJ~)>mdQw zlp}^&&gIIc(gaL+g8DibxrUl6S2Kgc=^|&`y4!V1hFk;itLtiG%o2va$mF_3fTD7w zFqbK@*)A*cVZw#cjt)ny%BOvLKtsg&FP@wJ~bC zis4A)I&q?>=NUniql4*g#bQa3P6=}w?GDa;YqnfY3t~{1S7pIZ6i&UURZFNaGH{V^ z8h$sYHpDa~3~yocCY#W5y(GxdSr%{Mi>Ca=BWCG8b7#}qL=eXDi}-G=8hoq8K&7#Q zREvsI6fHu1M-fDuOY)Lcf&Ob38^S z*CV)a!}5k28>U<~a^aEV`_ssXEQ@cug%k*a)>{3&-+`4OU}%LmGANYKZG&9C6-K!r zkZMot&tv(-rz2-tm;q`H_hBSrK5qDe>j#gF{eAXZcB&t$4lY+J4UERJ_@B+Rmh}+q z!Xe8?Fd~0E8ggwp16}vBPsWO|cuXkQJa#Q^dkc{~;7+b1XGU;Ye7%u2Py)ML&$9dt zU>GEx?V^@THn6%e>0?~6=9BTtkj$8kgIWWA7&&OXg_-!QZ^eds_}oOWIS?GyI;>nt z0gS@R-C9E!3B@kCbCa*90$0D!3oWw1MJU%9xVT;4k`XF5 zT*`G$03)z+xAtB103yRsVnL(;SHCaS+P1Cr+#-={Q;VI@9X2yQ8S6qz>ZXNSgUhu| z0AGC@R)xZuvA=TdaUs`L0YrZkL$xG&Qgj*%f>=5-P4SQPbo6qahM&y)WMqY&dofbE z?h7E}w!fISkPD}VQm%OcM89&kApS$n-6U)9ck0%5Dc6AmzE7k(3c@FT1_Rv&Ts1sN1hOzfwWt3`V|?dv#* z`&2N)MEF!3mOMFA%e*Rw$fvE7vW7M7y}~hvCrl}vKsv4cr>2^}x3-p^6Da@`OJ z`Qkz>aP`Sr)qNyr28XU^?&V^A%5^cC5*K^Z6k4vt=;cbe>t8BDVS3!HTnhq;aB*Sv zyXc$jAOjY&1RG(#6%_6tQ{`ed^p-2oOYZD84b$V-j0n%rFjF#_0iT$-Qp^0#J{LfR zS&$bBbB^UYVw%p-QxpU6BV4bLbr`x9+{?Axmt2_5$TBK&hGa%80=e!BV3}F4E);GL zESGtRm2yp_1d#t+i)h-F7XwkJ@k*i&T}PbDwbWa#fVs8m3iG zQOI>cDWY5OS}07}%B3DTJ~1tTA`9?oM=*1u@Yrm>wd893%Lf(?6>NmDvBPfV@>IFH zLz95bxL|jk5#g1DmV2F}?b=(>I8@8LWN+TxQ&XBNx7|Ic7mlApD>Mxo|`4 zDGrpG!u!v4f+4KH^&Cqi5|gL6mPR$u>OBje3S4>W@c1+lm< zMnpw$9j7`+iT^ul!J%4axstq_JhPz0k>sJntztrOA2KRzr!y?%n&Uu|wL!ze9m6VS zw|dxBAka$N5~&5(a*6-Rwe<}2D@%-qr3TlrxHl@fQoNfLWax7O9<(lY{E8v3iQV~()T5h)0l8bd=>rW?YnV0Q8 z>m^rsFh16nOWubIxgKyN!vGS+*0`40$wY6v8q17~?=W;74OOni4RSq&9=pVd zSm9c(#G;bxJ_l^tf0Zj7w2;fNq4hOBOlRQBK(XpbGD8zCPVVh6xu_2e85#IX&OLN1 zSHmDzpx4fwSCuxRA=A_c>-dogZdvU@E%R{jNSVV}kmJbgIFyi`$aRAwgVj&`4`1pv z%aQCS*OEG!_$OE5WQyykFe&c+L(8?FBU#UuR?H|(ldjdO5>stUQmYw) z!n1o7E^!@skBX%xykc(UTI(qnrr~oQ1G9)=;;A}47&)`i!_ zH?HNf^eNs!{!N>ZZ!UXOWVxA!XGh5-mt<=a?)aTY!FDYZXI>nVwX}s z_DFasxQ356anVz-ST`KCG;*nBE^l}W9GQ}G$Fi%Rp7uvklg;G*N(*~`o6qAT8BkXuvpinTIR30aK7zX(BQ~zc|QkqTUp!4 zHOCQ;kgxhgVcaAa)RO4~+11eG%9-U-7Cw0-yw*n)@rdQR;4H{mRy*|ZP~@87NXDaM zP1`;G6>A?5{M*?`hpwe&SaM}KaO1CBEuN>KZ0galZkTYXi=IHO7EaVMzpw7fTosPY z{$}o6cAJQyFuX$oq);fNT#|wyDq)o<3nTWLIwJVI{ix--3CFYN@eE78vdfmV%#J-Q*LdTsxf(t z59@kUD}CzdIvh~Dnf-#d1yWuX;-Q@3DA%??x=kwj!ouC$ALYv37bYq{U?g9|RJq*f zq{w9iF4iQ#8lYcZJ9@bU;4=Ok2&CdDm%@~*m={Q!Dh#~;DNL$~Scz8Wf1`do5Ugqq zT{H*X>;#HjQ?04zCGHu=A#i!ASN zvFzyWc)`0|$rd#=0Sp*xQhc;*_v!DqJ-YUSCbJi78ahYuYg>5IYthbLvO}XD7kJ5V4o&(Sp(N@qE;f- zr5P9JsGkzS=6aPaH+PHXs2LjtiCjzoxIL;&ZSYUT5VLUB%^kk2c< zRC1{FT7M!8hKz`Q5V^3mYby2HfGp@+i&4OB8AT3?@QY>r86J9adu;cWzx#9~011V7 zpK?7ENSB4DZ>?thvs~*{VbEYSw1UX>1#f31*S0poAfanb3Rgp}r~33uc0LH87ECT^ zM4J2~`XLNT_(Gaw)UjY=LkYG>4L3I}p{u9y-jlPf>SC*a65-EF<%iI<;Uzfmu1!p7;N-#;8l%iF^SD}8| z*eDhkdd-R&Po%+=g(lIfAp*$NmcaH}{x<2!rT2PeTxQ}hdF;HJ3yy2dveS`BU?NL5mTRmzAtEcez(@;OHgF&Ynab=PjG6`H^c&0zad`yt5?sXa85OTwUsP zqZusFwTLbxLLT0FT1b zwk7sS6E4*{*q&w1>C@^+7kVWH`OUJ_84^XVXyjk6i3BQ-;n%&0hK?Dyl4PB(2%lbj zJ0*cmlo7K5>oA4vSFVag-bO*;X6_N^{$H-=Qb)XtXz2Nut0jTk*mX=I8hU2nS{=Eb zO5k&p6(jqt`jrc}sFBDt3Q9*B+%q@!Pm+%XNk^c{8frQ@DQZCCL^?8=NP{<#BLX9N z9ZO6^45Y^WL&^GL=KlrWhy0$Tu_at zy$OFx={wqEXIiIf5M*p*6e}dxBTQ4G>@*}&4k*_)X#lWH6Ky3;sBP@OcxkD+xJ$i~ zg1kx$E!B9cyl~)Ou8{<&%Nh2AxQE3IdlBBhTK1PP-1b(}{w$Hontck{hg`-Z8ayOz zOW?{R*SWHp7jn*{U|&nRrd-^Sp-g4Kso0mu?kdT(g;@&EPDdioyvl`}s}<^$jcIn# zrDZWgskJQjsuNWxy^;%@9PdG5xE@Q5p>iP5$6>u1QfI;)8OT&Vb1J?{pl&H z7o6Pic9Zrc^7tU-wM`*A%T?8H(SS^(!S0{sI%dd~TG9|L9x85O=o)z!U{9to;$&dt zic2dcSIt{`)sx7!t6cU&P7GWF=jK5!{SgfwkdZl0nOUyQt4B3FnM#c* zccd%RXmB#VNZ|P@$@NMC9e;gDEs$IXyJ*D7dmfCpu}&R}8Ms06f<&*RsIg28&u_&V zUpW!qV#HalPMpG!)6t88&13 zH0Y{XqnSjvho*-fpPR>il-_A6ErC)92l-A4i1a_u6`2<>{!V*a+RlIG=|iVrvzOn_ zFm~#vjKZ+6sxqoBd$Dh>K~>0o3aU(tLY(v@{@_9e{^x_vmZjZW`!0Gme)vgMxJoW) zS*kQ#&U3+V&D4d7rH99bOWLVH152*~E?sLBF2YK|T3*dXH)Vt?`xP~LT?4f4qB0hR z*z8T2G&N@0@z--Mr)Ozlev=%o`uwU;H(WrgqoQ!qW|G;=I05$GY;C=KI{q6+>E!n1 zlM6g+c?}ojhOM;Jj|btyPvYS!a9sgQ6@CO2MZizcKepa}ixu9(=uj7KUns80uqCx1$Qlv)c?cAaeFX73NtitdyaXOYB zA*G3j%cD6wOFO(oqK{c!BPf2J;6TTfh?wf%BlxNwL@LNy10y!>$CTQmsy zmLeX30v3g{&EBzN3&Rp|+LjgrN((JfCIMK5wK_^DE%#2^gHI>Yo*tBGKKJ0%Y!eHM ztHctJ5GZ6kwks=K&j{5lHJmnq#}dL-Bt0LV=R}fY(5D%`wF-lXz@u~W!}aEaOWC%c z&V;K#X|W}MKRm_Zx;yi!13r6p;h8EEj?P2!__68YgjAcxdckD zpq;TqxK4mmhY#p@cVFT|Z|BaHq%G+tq5IPxY(1kQT(@(&%8^KVxbEZ#C6*qc(#$T|yfdcI@6ivV)q2n&fj~{3u<$ZkQP2QOq5URjqy9&aUCy+R*;PhOO z5w6F?2^=j3lBc6O@!HPH4En?=9i9;m*Qtk@^FC$!cHVJhdJrcS9(-W8^6fi@Y z@qXhYA1>i0M%46dXRL;+*I_DL?+6?@%c~K(tsq>u(Vx)3Rs;*)-0;EB>@DO_&Srm+ zoF|T9Ytf{s#1_^gj&HA)-=|sk4qigMvf!%qCTr13>PPASh*7>geJ#-o0=9rUfz5Ha z_{Vl7hO4UUx_%{aM@G0F6UVc)XvhthNt`2l#lAFYo_iZxr~W2f`v>=EzSy@B4*Vz6 za6Q60(iRXBC`$@g_D25-p_;7<&W5|wr>--K!g+-uevy2mLY%s-0nW3LEiNI@wO4Pt zc%j^bgTsATzcSaX%w$Dj+ny0)VK^M2qi{WucWRmhN~70HoL3mG9YPIT6+C`l;16O=^g6_3iW+S@)7OZllqTWYWNAW+dcr_aNw{#MKLd%aN}HwSeufKw z=ouGf{M=a3PFosp8OO7=h}o2cDAZWmI^1$ie5v=DEZxAc5yC0v)rAYA>&!sS7SLzl z5x-SZez*z@M5ZzkOWTnVt~)t~>ZTSUo9dauJeC%kYb9tA6BmU8^AEnj|9LPD*A4@| zDIj8?Dl1&s8~uw6eKl2S;h`P>1>S-!jS@pmQ;Qm#YMa7vQ4h>D)2nxx5NZX6`Daa* z_UZiaF^6Xic;@m9hIVnQq>6AoVrXEh65^sPC0s>@x~3Ms+!JOHgS4)nL4Eo4D`_lv zL_Q9XQMh&)5IHwr7^gGUS`8U`HcAe1&yZJ7a;C#`qDaDnn#y(Uv?L^`S6d zPe(x~SteNnb762(RQ?&Qix=-RV3^BmGxTf}t_v!|waZY=R0R)iQ%blhOxMDTpi&Wq z6?1H^uU-(gBDSa~uC>j@@wLsnVYnX2>j(@O+EEfN{6&9;8m2N4*3=8Wjxl@7#Dw% zK#cd3Qo@zjH8-HH+;G*QF8?PS4g6X?Y{so_zaNeC`$;!$b{aL`J2IEkhuUTsF1)@i zQ$WB#?yCB5-QHxNWh&Fa8&-H#GKLGyZ)uF1@kNGWQ;VkDwK7=qeugd`uH$g~c1hmM zUt?f%xXE92xJnH4O=W!SXh;cHm7&DcB9wcR>aBl2LyG|G!fX80ADRN{43rdw3pe^R zK!!3$xGWFDHQH_hHP$t0#Tx5jnR!-B$M?PF|aS@vcjsF>rke#bL3>h71&7lfR;HRT&BlWomeI zQo>bWK-1vtF}X`koSNJIX913oOS=qs|5~^z4Al)~zGF$faJWX`6>HOncVXexS5`^> zhheI${hzgQguvAmJvmJVisNuyRvNAyhB}5ieU|oFM!0qviVZFLGS63PO^=NK+Yk26 zU&m=62;&_Ef5g#%Ktf0eAvz)oBy<%tAS49*Y7rLV!U)ik9t3qunHkAJ6-ZcxU+MPi=nL`a-YTc2_exm1ex+oKO0x#JDje` zSE`Ut>pMGF^1k!yX}skk6HmQiQV1j8))3drK%oR=37@!}?bUM9z(Kbhuc}r;69b=mqtQLz{gTt$0aok26;@EG#){x>z#(U zCIoDaKTr&+S90mG@q;HOCl~*qxa@RE;}J}leCtS6J83cAj?5^=`VLM%S6vXw45H=yek6cbh1-Tj76QXsEK*&RZxFqS4 z#viuRb;1o$t{-GL57c}l1y4Xua`bmcGI9|a34}a_uLSibu5T;p@O(R2O1lY9Tn)!Hor!3wZ|>Rbzoau&jX3;W6&^cj!u^&jC{h+ z_dRKa8hwMlV{TMPN1yA+h5(fq(T$1gjF27sWPwhXTwD*I6OeESa&2?%{)mf5_>#KG zS;AT%F2!`oJ+m>!(}U*7ODozz5NsN8K^2m6793%AI9*GYAP|>oy5xbGjkhgBr>i|N3xnV} zwBFaYw9F-bTpnjZHiO@m)Jeh;1K*UmT7j;z7d7It+v$2I7uQPyR&YpP-AJ0|G79pV zQ$f@`)KJR~r)wcHus~d*bjfe+UKE(}PorG#8$Q@MUD8zlSC+Wo@LsxsLqx1Hb464z zZysu(WsYXl#ijPlb^D%wakcXe*(-Z$az`w#a{{&;f>_gn36@T(E?2;=(0? zkA&px6?D43cPz%Ab_3Mw8y43}(T&e}ggK!u=E~x_9YkDqq-e)piK)rCSX|%iNP>5; z6Dg~(A|jftd4w;hi^IPouI7c+8v;`H3U+hSkuWK`eJkY{34Q;7>nI{ARMd&Hox9;K^0S7!6Zv9L6h`YPy$?5h7i)xO0RR9u)Y*$#BoV?BMq=>nCx0s#kc-- zQ{wtU$fmyjEvQ@RsK2h)Re^DgA3|}R5pt-G22GT8sdzv)mS8XF>8YiXm@0PbsA)WC z&VOHjv`0=YvIst^YudNAFaZ;RxMUe!c~rp>H#%OI-1T5S*s1%P^hrB$hZ3F>FfSYK zXkw3g)LZ$Sfv>%eYI+K+;lpnamb&WQA=DRt3u>`xT9{9;Z@Jegt_K0cW&Z%)w(11@ zTQ${Pk7cf&T3leRzq+_8u!({$72qpzJu89k@wH0G9K;%<1+h8*c|Dk;%f{T#()!{; zoZ^}gkVb7wa8=`~$8z;5oWm-tv=fQA?%%f)x-OuF(5xO^s=ENvOUXTTHM{FB;pwy^ zU^U0Vscqr^ynatM3){SZwKQ6|!{@TSeLv!Q(Q;e-V&(e(X7Aj3+D4){uDz69+TE62 zN(-bE6i~%W1geyWRU<^jL(#T<*sOx~wbHTjCGxrA+#Ka*DG&Kj>q#)?Klb>-T(F@( zYahx&gxmSeIdkTWty(Vq*r7yPjwx}phIaEYGbEmNQwHsFiI2)3liBeZd+a20>+UH5 zy{3Np;iN@|DMjFR7tKdYmq_iH(6HG>^cPX#xbQm!L@m}{p)VTR-89kA@KOL4T^Y1g)zkB&L1 zU8?YMc}FD;$@Mj~r=S_G14^k}{ibfLNFSVOhnK(_j~5HuwmY3(uh;H&`~AUSIvoxt zlhMeX&E|8bMX8v(!+yJGFCLF&L*kIVbw{sU;$rp&A#PJMTnCh}B$~Vl9+qp+)XhK~ zXKo-pI5T%L9Q3=rj{UG#WNkuPP2F+{)RI5ZRpV>%n&CR2bpK=V9Z+GpGHil#a*di=>9~|boY`nHWtroH(QHP*Os!mH z@vHB&pXlmXn!(xsiK-`!(u_xi&b6$oZo-%A-SMze5Nn}CVrJ@9hDtMBy6bwWsA^WU6hac?_O zDVMEgEHRc+bq5pIp~BLd-$+&<&#VOjQ>owF!=zkz=;V@+p`{acw_FEQs-mbst`kDK zic-K%cRHHWgP}DWd8@L5q>J7N!8BpOzII29M=q3WpAc8?1n0qZK*`8;6`mR7!WGK^ ziyW)sSq3tDobNCeT6Fbgep`virQy(tW9f!_@UFNRpZqF`ucWM^v0w|U7Ci>$E_2Mv zFKxBy2<9MVc!7{+xlRdLSi0e!0VN^VCsI)B9D7ON!;MyA=959Ulgm^Qr{A_(xkxOR z{zE4nOE6R#%fk zZCmLD6UBV2#bEli3oO?qArnhG*z533Lat-t86>2Ec`dP*&+3#5ydZY(OEH*!7sZkb z4xM}=WM*k6{uxkN{CIka7Kfk!5k5%-+AHWitCH-TiVI+3@Gu`0JToTls&f?XObF}>(#?Q zBRH&{U*s!-u^iD*tsbY}nc}7edM#*wGSU}6w6w!L14=@!PjnyDf?!k07-q`lTCH|* zaZ#@~&a0J!KgAqWs^^V-DK;}A7*4;gYPt4I%5_PI_-?dyKzVZU&AaK7TJxNv6H5s$ zm@+Hso;Z!hIpd5`tyU`@haS-yy#)9mR;gCc&KvcMT0T58BbZG-qe9EILx^K(hwp%r zkjs2tSg*uHn-HFdpkhY3@UssqmFigzOq&gL3Wf`%Ng?I(51nv*@djFVvF|zj45%z} zm1<;^22)FtmmJRlp=yX{+I2*udq7_V!|7LtTyV@^w_K+Lm?#(GqU*hcT)Q9180GpI zBz7`#p4RRt_=l z$lHZ}ZTc6gm0B)@#WItjtTlp-X0_ArRP98rOfH0%%RjcUaYcx0X$SkB@flFrk%U!>&Pm#!GHBoLxiX1V+&(`MAANG|XzA(|z`F)vpnO|T4cp>EMNReO9;k6hvw zqF3(-8CcrEiiUWnE4duQ>|e9vv46w%lJMuJkCn-? z9q3CHl@#d*s^ppw@Grc!Rl8jL(41KM!2^@0l5%bRQ>N^cFV4^WEbt-86&20Id(pZS zYmK_Lf}O5mVdYxBwmbBC$+@MUE&<+|uK35)pj@|;+TGoqo$c+4x1U{-1W1_@d$GCM%a5$s!axuh&R9vq4X`<|QxJkbqB~T)%UZxkkCZ z5@4bMikIt~tXyw5&nX=jkOqq7dMP2-wtwY9uC#q0hZTt+rhWxBSCmFg3HV#PT(}WS zfQbeulnb6-h=E#MjtPqKOs=i1&Chj8fK@FHlA{$W#Y^R@!C)F>0aWtXxaQS08#mmR zE%lPo!qJo%W!`!}o=X7qQMXujX$;EdU8fk#)6YxcWT$|57H$5;JjX@JkwOV0pvn zPyUQNlr1twE0k)b6sQ3zhzY(QWqPw@Z^`Q=drR0?ecABSON>O};$@4CVrbZz(h%kh z+vDuX&AjMxotUp^%n10PNG>*14wpwUJR0ZF6)0L;DVM7hT)CGkDT-CjR6fzenPl** zxB3y)Nz$bjxy0q{OXC#{n-G-CBh5B4lr&a}p@(Rgh%1386kq2HiVuMxz8XHS5w#ztOdCbY@w%aG@v0?jcA!o$XWB_CS6i`MS4+8A0nLzH zM})YRUZ%uxVnVK$-{q2!OSNG0ft{*FV<3O188{KjrKxrIBO$G^rIQ}m$}d~oP6C-!z8+5_S?55JP^RCP{ITTM8&-d2|0fWQfoY>y zxilqxNEs7F(-^^KeLHyu9w{DeC$HDd%5`OQ8`*Y<=kM=w6-O>^4W?;-dF;>P@}v}>=Z0kN;Fy4Eo-7j_pOnOby>rxd}FCs*<|vM4cJ6*btPVS@z+ z2_EwZ3x(wh6v|f$r2;uX1`#5a)?z@_Fl_|o1j3ID*GEH(uJ)XwIC=DPJy~6alxx{4rDh4{%v{%O9IFim1V0^hL*=4`<7JCi z4bw%jW?{)NL)1cBWjD|}Cf75Qa_y4#ovv|rMgmS>JU+SBlH^(|np}_}Dy7vchFqe< z@~4Ef7M4=%sY60eUI?2hlM+Lw7aKsUvPLjS@Dx>6p|DsUq;-KLPo(%c#7|4`YvG?m zK~XsrP9PhohN6iz%OF|uE|__{76crbm+M$(d*Qe}q8Q2>#gmJL9%L=y3i$a6Cl3^pLN3Ok>Hya27Fn(<;+W_RTFCL6Y;vvcAkfQC4cSl$AJhmR^N14)%jLHV5E!q1 z&JOC72&#sSORU!uk3g?ga)^n}N+#S2 z#^O4bE5btI3hUMiiTx+Vj|qfbgJ>43oIo~EO)MH{mQk{B7e}K^YH+%RmFt)|hSKTa zU`{D`U&_B+zFle4x}@;*BfApqitr1fnQ(2EBe|3&h$CBpT&F_0^ff?Tsm%+=-4UhZ zayPA9cn6@DH(-3h*Z@JIi|dT!XoXUxi#+f>iTn^E=~L0SG;6as)dJB_Ge1>)QOj)7<*&0csUOBSCbs`P8#9T!ioW8!EnbW{hC`hLFTTFWBW4-pp-^?g~vPfi)n z_)rFM%(Pq>zhc&3n)I@b%Y~0uW5xLYh^L=@vv|^?EY!D3rEGGcUO`FT7t9|b0F*0I zM=OBSMKO4H$z+XXsG2B>i8aGgM<7{H=tz?!-t_pENs@U#!^Gdofm}PGTb^ZHXiXi; zMq_I`2Xcv`6##MQ-sQr0mK@8(am>72%rE)+yfd})D3|b6JV(USQ@zkaj<@#r1Gxkb zS4*dtM>x?5WC|&jS|}Y6E5pB62I3+a+7=(hP&1HBkS0Q@J~2u3{gQ2vYE3#;DtdX4 z>x6h*wF@nz{Lj{X$;C)17euUF%O#3s;Xo#cV&>#h<=3n`&XHWP+sHc&vyb$8I-^T&Pzd7XREzQ0`4)+fhVh?HDj#4XXQ zL@vBWhP*H-)42M2De~birtOf)1mg^TC}?`Yh}f^F0JB;(O{raUi?3oR8IeXZzDdN8 zgI5f3oVftuP2*A8E52MM}~S4Hxp?3*{T@XvedBF z1|4+pF-Ka(2!0*9w-iX`i{(!OIjcynM`w}e#jD)0I~J{Js8-2x@!wE2@@!R*T&ZhV zt6aH=^an4zSmsy36)P8BBX5WCZ<))4&A)tgku7$|=*R15wKidfY6>CFK)DiupGazs zMX2nmWvO7Km?;_GBt8mZE|~#CGtUqfc?R+wD4qZx`z}PT`U=8NVQZ9 zAJr5RyZuBCD_SpuT`CyH91zn($bpLCYf>m02KF6i?uvcj4yu!DxO3^kcF@Yz9GD7L z54k#>>0%#xJu6i%4C7DVi+$iyJ4jlgSd$5=H5jN@cIi>~F<#gTRh(wLWSAjhlNhfU zw?A(i4Q^`qzA>4*2t1#Aeb{-id}eFsa(UA$d9`@ zXj!=q1g3&jDOZTM-r>mA=jAFWjMtGyDAzF9;h=?Dp;)>hqzL}xM5(324Ed;5t@>d~ zmV5%kkb_YS);^$WQnDz)@(+-DD&@LYnOt2z|3S;jb(mzAt5uv_`43<2xOlnv0c#X# z^xnJKZ?xD5Ly0BV&~a+12enOMy~%e1;}tVkXP9G0BL&NM_&V#8TzBqOC|B=|oBc-1 z%5@BwufxR4)hbG^T!%0Bv@E&!NMkr*?cyU0)JipjGI}Siv{+P_>FQXkWt+mLk+n(W zFPZse=sK=v1@i)tg%>nb;^a=na!oupeS~4+N&tKe6lbYs}l4)gCrJdrNp8ab?M>c<5{&1h3tx%t21zDn-)y!#a}FwVh&%v z+!y~xr=Q%Wr60ABEBvQDISF;S4(2neSynDf$`e?rauL&clwa<=-77~fj5P3*$?e84 z3^hWq^eUF8!ci zo|Vhe5UQ1naHigDPRu;mOHi;}e58SmA?Ou?Qel9hwKAJQDVEkMN-V3^A(Bope!Hbq zObTYUhyTNkkf`z4>MtBY+wb!q`CGXxjUkU*t;3NE8$*iY)k{z^)WFgUQn8`?_1Ha5 zEUVTrz$=EDao>V*g6WH8^H-|0GDpy=D`frhlai3my-Czw3WxF?_ef zm%-~qe37-v%b;r|vA7%ojx}pcFOTM5?AK!piKXgvUkZ^6re|WgN~n?bDn}Q8UMO;J zhwgb9L@fB}J7Ig#d>wCCJ+`n%b){Cl6e1Tqgo)&8>7~KzrHxW54ticIA`JL0$LnDo z&c7=bltG{|@bx9NnoA*a!Td}pm+O^F8>LhoU*rITWe|SPS;1VfG7O|uUFH{mL24lv zJd)w%GQI5Rd!>!>T}V}H73^unmEUlIV0Jz1`!KLUa7HcUg6A-}T&`D;YV!?A)e10J z2I0zZ!xhso5b<*^n7Cc86}g}T2A8Yo<;&s5YDg-yf(vMt+*QLI z3vTCFuC-se{2#|$6(XdRq#|^O>u|x^_1Jk7e6xfWx!`G>k!$TyF4xPeLL8Th&>gO! z9dERUfuy>KPQ4qGh!$Q3LJw1OV_+}hja zYZkd+3>L?Ctv=-vC8knnhhlnY=i{=o*l2B&CNKQU(zz>F(|pkRFB(X{4K(AtVHe0jWVi z;Q4=F-uHLcx_9k!?mqkMv+s_3e(OZ*Xn}|cX$i5gu!z-EmGrQ%9wGm`@gM)|5r6#z z8w(4YK}W+t`Cn763M2RBLaypkrVuS(b0t%Rmiuxk`>*HAg>=E8OyQAq{()T8g;dTj zsjQz;*?aO8$5L6l|K3Vv{*)~{l`TK}kH7S{OzCggigVf0Q<>spxyp0tyaVanU%=E& zVA>YNYgI~N4PeI3f3%>Qe8nGN`nF{15BaJa$>fcHwEUNAN?}c2uPVL|bu#%UvW2Jo z9~)(h&nRB2@jxnN3x3NMpG&6v5b%S`6|8*=3sUbip*BuHl+a@k}^CjSr$=@SaT9r`!pKi&Af8|kS7MgAGc>b;(pJ{B$!!K)`+#P}rqyn>IV zROGM~pQ+KkAY){wVrHcfl`t}R@+H6ol>EDzLC@gw>Sf4L%@`zJ>go7c02v zu8O+q(SPLs?|O$hW**UeLAd<^i)9OkXq+}FY30Y`chPh^_mS0)MJR0I3bVt4ukT~s zs&!EpV%nsR%=j!}&lLXeQ5kb+H+3%6P2HV=`PrV9XY~vj;5+@s$HJH4jb&_n%Fai~ zrSVIgpWw(f5bU7j*UbXC%eJq|Piaql5O7okQVow@dK=}kN!~x(N~>dKm7|Pqa80v+ zOMgg{K#%}PIRBKlpi4Q~3@=USo}-}endS5>S6QT3(pnUh_71iUWOF`@y!>M7=%}fv zDKJ08H!L<65a(mp1g}Zhp!raGHPU|Y7HD3tldqd|*7I5H9nU-LIR}chmCj_Ix;b!8<>7P=;I^L5I33Jg_1uDMyslLN z0yr49`OF&|<^OK}t+3wb=h=S@EuQ6Y&i^XEtTXltO!fM@29|7KTkeCSSs1H_fXxpq zFV;p^8oKcS$t|yMzIc4wA~6%&O3)1Z^)dY*rJ&MXx}z~O4_E+FZ?Ii6T^5k>%xf*xy>6}?T-G_2`yg7`ZK?QqkcuuS--;VL{Z#XAZ8(OA^4*& zU@5O5m8Ij5W>#7vV-1OLYrT&R{Mn1T+J60vYi%zYA6TH|Ax&t@>w>D&*WCW7MUvU% zlv6i9b23`vA4GTL-G$R><5kE?0ksR!^tzL)-Lw6w>@vfn%|f@>A_l;J7{9kUcuupF z^83)bGOz(%2U_5ruV7%yp*;zY#ctzsUuTUC2L2K!20-3zyuC`zd0lxIA_h79ZQ*}9 zyh9>U@PG{$ti_21E`Cajb(O3<$*BVlNcd(+SnG?Cp-t@|SKNygCm18i56enxA1Js6 zKdw~y@d|~Y->=<*)4N>h+$F_MkdvL1f?AIrt5@i+NCvGSRp1;hslFDq3>&>|r=j{R zL-W_kkfRmcBksfc-s^9!LMfoFa3hhsWhtAu8tkTrJ}|Mqha`gM{Y>K*Fl+7Yu2 zu~|)34K3l_Yw1IVW=7Mqexz{qud5@80s{#Q4dE;MYY|tIw}-j>y^OL7SwF=;l}5_|9i&?wiP$Y(Tpe($(i{&sX0j2`J%vUX98S9}yh) zhtL_P0=09RApZ@c!3el@x>5Lkt{J;aH_ITq9VJ0;c{2K*Mt$yd_}0q~imkMT+YhcP zYhm45Zbx?Vd+IgS@Qz0X*a>Ik?e^-V%MP(|9e211fW_WwsT{H0+A+PDSyKMDf>w8^ z(Q$iR!@Tr;LMs)S*z;qCp?SeQA+I_PR9ivWcAa|Oqhn^LWC$IC%e1Ld^zQpzF2g@A zi?Y8NWEuG%7+VbG2jav1@qPx5kB-USD6A8*y78`BC8TC13m3#rEH26pvELf$#m@Jd zu0sTXhXan5zdo4hcy8OAxu^*so|2{s@^j_4S^JM`AnNRQE;1AATX4w4NZ$156(m^O z`E!jku^toRaV!9UwBJTC^sC`RfKW6kd%v3vIwq+&P?(-qtDBy zO#XXK+agcHt-W>IVa%*)TS>1~6LwUSk<3&kN>#KRu1$pGYs~8p(jJO5rt~N$XW-by zrzjkt!^M8#13ij?1v43O-AKg3!y)wp>U)$+>|6XXgWS?hJPX#(6^_tRxk)3ZUS*^Y zM-rXbdt(rIO?u5v%f<@Z?aU41* zP9A@AK=6yT@eKqz3{0JPjo$LR4UjZ^t3&8C*AMzdrhA2=h@q1aIRVn;w|E|A2^P)8 z4lcBu>EDQb%W(zi;0WU;&qUR=g5i_8Lj1xVhXJfA_pHG;t(*67m42=NntL5-l5HFP ztq3?`n#|*_WbiI_1x<}V0|qEs1HP(U z6iNw_uC`e}=y!dB_^pD>rJ;{cKXcXTxS6<{3HcjLy zPff57m{_iTlS(B%zX$7z8BO1qOj4)6Smsa;ErQY+1>+_-t2hDXZ=NlkYJBw(=-p-( zh*Up$68kekbj)x(IXX-8dpDDCt>}kI!Nii4`qYpMt=C5F(gpnD44gIqK6CBLC8_hw z*;nhN^O_58y>wDaTxK;Whxj#ppGKdc*&7r~Mke*;4 z@i+27=~Tw<9nQy-le07lr7fpBJ#BpDljw8Z244CJZt|of;;0kxgn+yjCvWQa?!;Fn zKl(=T>U~+g$0{w$AoKdr?8IQcdHMHaNxHGVU1BR?Yo^DmD%256e?Rxy`fXCXObHb~ z`uYO9)6v6CRz+@u%!}P266cs^#e1zQ?sFV7Q2fN+O>ymbs>Z*C!$G#$9Z+>E>e^mn z@obdggu6+hEv>UVER_zzwu4na^lSZaR!P!-Rs9rfujaP(YBewxi(~5Lq*g|z@llWh zD9A)`i(*B#lr1*!b2H>!4l|K!*?+>7GRfxPh-iOL3W=N%lcDu`k?9z(?uxXenQO%t zP4F+F>_zbShjTO3d+|H z9`!zq=Ihzz^k;SuXR6&$qi+FcPY|I?1qQB`hlY6$%RNaf6DMu6ow*wmkn_jo=a$K+ z25f^xvL0|@V$yR`mVukkwWIPb0(@Ue$JjeG9pl%D-;8CiKA{QcEq5EhZSb9iyFCqXaQfk<5t3043F+VIe@C|>}6$Fy5%oU&y^O}wq#9z0#I)V*CAinsTavSXW=5% z;^EZ3Wd2iU$h76IHK0T5n-gdIrgZU>pKiU1azt8@B@ibx$il}?%)8XMK3NouHtZZy zDEFn*v3t68=BCJ@yG(Y8AMM)5+8Mfn*?97L>DJJvvdN!pkwj<+_q>_iAf?Vn$pFR| z@W$ZtTRWb?-QzS?4K5*-2ZD zHd$C3F`k%>f;B^<3&3Za#O8#XmQrteMU}e+c&35l`wQMioL;5~CY4mEX7gtp5>*bR zaC1yIKUPj-5q52Wxl`l+(g7V6D5Tg=Oc+IL&WOK!%-K44tQ<}tq_C;J7I9chy_Ebc zoAZ>)-j2}^)fg2}bn(;6xcLdqWpkIw9hhk#b=6oUx(U5Ul$_~`hzw7B|Oc(pSwUm55MU`rV# zQCVkHGhI_#T?eWH35NOH2G|kp2_^_I1-(CcbE!DpL+sKZ5Jn!dp+e}pslEyY72uHb zE|T%kq1m(4CJI2Me26{Qz0PpeV`sQZhi69ZKMCB#5Fds{qvp~gC5n(TO^;R-1C^>6 zozJg^bP;CJcqQzoCA>I#PrX`V?Ug8!`p0AoBceiS`_v5d#Z~ld zF4x5F!DUtBc)QTMwK4QUuhp153Ud0?sWO3Grj^$3o;>A=X-$qEM$qK&8HLNVVmaCcY}Ke z&Utz5YdNdF!jo~{ocylBNucMgE8Z7j(G;vgtj1c?zm1Yx%p~&;)0}=-+?*Hp?E$83C!g^4ZMnT} z0k&o@kbmEx3J~`Oq|D*sSyacVJ3S}tFZOM>Z~Hr>5yBRaizg?OFcX2VAMbEqXQQqJ zJge#VOG!RiyUKovsB}DaRBdK2AegY^8+p+9`cSgNNO9E~E$|&p*M&724lhrKZbeTd zcwNYiLBD#O$9I0e7y+DMCWqiZa^R;lUTh-%=`2LgI_{fl&!sfy>#g)v3LH@aF3tc% zjBsnNme(J%^qU@j-e`2B$vI^)Bq)O21PtGFEw*a9IJ^S4-kze*A3oil+ENERE&mXW$ZwlIqC_&*(V0z*OJBZl?hq%4x+xML9X0>~{^OZz^1? z;RdnfQO{n^+Ayw&=yIbT+uYq-*-qWV#Fy2KZ)vM{44iM5V(veFJZ?{*E06S*_?d-k z(kzznyQ_8O7VZWQn$Ms34WVmV<3zz-G|aZsCF_AyEgK-d`tCwTs6=^-Mzh$xe#K|^ z4xp>_dpOIg+D8&ppe;=0vSRXyhM7z89oa_n8rWVsL=+@$@Iv2(%E`Vn*uQnS8T|&1 zYKGJUsmtsCbV}19pwQKy=_cn!7L~g6m}mP_<#NNV~G;JixzxXP>hheQDolQhs~6 z>q4n)wR|XI!PjG=ruD#V>9S_6P2+~5Y{>uGz}T9dzT&pX?1w!MAF*kwZ44=OZg{AB z_hKR1ke>W>HO77RwDi4a=FG<)P@~Xlf--(E9gkb@tLC)|`MC&i>>=5mJW8QsRZ!UJ z(kQ~3fz!9a+k`Z3*u4l z$-+Eu3WqV2KPUb?8>)pM`K243n%1a!p_DQ`@1;JMBj02*LNcYi{}dTjlcSl4iGGGo zdUZ0|jb^Z452(g#t50XWGVjAo4eUPzLt1}=YhEYzmDLJ^w-*B~K~FKSpQf_?Fimi) zQRRGgqPu!ZiFNePTfRlJ`@ci+Rl(8CTxe94ctThI2ZJu{sF?;*Iy}z-KdV0C-;6T` zPHA?JlApLF?I7GhtP-70ofLuyVKW+uR8080(EPUQyjm(ewl8fw?yKD4t|wA3`IJO< z$QO7l%UM@NcQ2V6i@TI`hV)Z^GX_n$_gL*=(KM~5tGk<=-V^fVNKDz-B2@VtPlL|y zTY{{Dq&|{51Oj9|`?;u6%7c_*^zV8NzZO52343Q9- z)SV4aT(v&vHpQ5J1%yuH29-?LB61Y2=oWV-%knyY^4A<-SD|dXT|fSwNY6QzXmEhr?xfFa2-Vk*fFX zn*qR$cLpf$7iu}563U#Tp5T?fPHgI5C-n`c-*wr3yQ0>132wKDm>&?LF zJ~g$BvXM_R9Y=Hnb+-tfCKd0~Wa`pd5{q|)R)w)4*8&l(sg!)la&WGA4fYZi@~uYdd?u~X?|;|M#!N53|NhIUvAf=+Uh2SrV| zDS6r*zv;A<#}LIJ5}QcJzj3dAySNs3-u%x;n2(Bv72tF{UzHeG(Pd{p;LiCn z1WEHAZr$I(7J>xGNsX)jU$3UTU8&EqN|LPe$5Zx`Hm02ZEO)Pz_A_sj$nN&%BU{7k z2pbcbWV#*(DZ^w*%r=r{B5ZGCK9IvF?aAkK3wOf7V*IWs@^V0vlVg*(seJJFzQdK1H-y@{)py67gRvMW6Geh*b6~aYWFOAzHp+rezH?y`N`ogwj^}@ zv2Da9RUd8j>)(Ie4yDCXpU|T~1gKqBwH}442WBKO5sEo6SkJ7}NgcQAYlE*cAX}Z0FaS$Di@l``ZO}A z?=!EX%Q%07OOy*G_KD>$lj3*pln}?(xG_K5NI>M%oIT$8anQzo=tsulhw^}+jai^n zzs2xq&$pm4L(!Br+|bgpBMvn^u4uQ#MUu6(Pxt&k>eyM5uYx}DWuq1H5mTdV3-!zR zqA?ZSv;%hA_b#Zz#0YdIOGL;1?K)S_`krO0j4Wc1`vw?(V$xbu@ZO4N!`-vmguR;|%FiW!J?3^c3VNiXITCW6 zfqa95Xm5YB&}!Jlx)Fndx3ZF=#$2gi{;TWBSyXefXTE+WYwZ5d5Q~I~S5Vrg@WjiH zHZJB%|1exAaV4L;2VGrU4)%)CC}xk}h>+sDE2Zo2_=~?A(=U+4gv~Gsdq$dBVF)$} z(olOiTQ>96Q@}5&U3eU9d3IT_gW>TdHd8HLV7)XdGb@vC8xGMWL50K!g9?Na%`;Op zbEUwEObxF?B1RHQrXXZBxW;+VQ7G!I$*8E>C|t77HS`?{W3*!pOh#`_By&x$$?j*v zsfds-vPP*MYq1s$51c&p*FALO;ZMYbTm&74vX1S>Q>ji%EjCzmNeJEj#lMp}`v|IG z+~hebZrLbWjtS7FK5a0G=7itt+k@ovLLeO zW#NV;5b7Osmn=|1K(C61snQaO|2CO33^aPOro`(nH_v!6)5Z`+UGjZyFTanyN^o?m z(1iJ8v{F}evBj4dcCN&~B|$oL07&e&Wvm3YfCcP1d_I3ZVFP=<32D?dB>u%x;s=}` zro#$5T#vEGrev3|J6}q4o zg+*=?@F4uMaqAaoRzvp6n)|>x=X;~=$6HZUDSVf%yZDca?eJQ!^T%(^>V5kctcKOu zpP{scPJ_zSz{@c@$$51*x89)2>rm3amqu-NJYOg1l}S~a*D(74@A^yAVQYAI90D%J zY$3vqgw|qFjqO*<-kWh-N7?=M(T^WaK9OQX6wyc^qslC@(eYTQb}jQ{40yW?Eo-p? z@8(csl^}x@2}~e(c$^;-z|f>X9j&^ z`}G!D%lTNF*WNRFHObli+)!kaxUpEGE^i31cte14+_>LVhMcA9?&OXVJ@*}$GV~bT z{W_)~IH}Uy&LLu83lNDHvrw@|C7rwaPs3+N{(whjEXk)ZW6@<$47xB8qgLH}NPaCG zT41Nwb?9FD;cT#@Xht%M>GQ-9Q_#< zL_d|0|F;Zqy?phuvCV%JTN1Hk9__IPp3o>Nu7As>;ER#AI<0PuMY+{M@LcJBslOG= zP%W@KtLIJ&#vpo|0-C-^m*_huN{zz&!U~IzZ;yyL^`Q(epusIplFnD?fD(5RzaX4=ff!(DkAR}9i`Q5|X z;G-ka7(?Gjb(;EbHE?rY1VQP-es3N@9oJ%bDo)&>y#{PtZuRANiX*>5%K#Cxj8|%v zw;x!!l^O$@jB@Kkdgaerx0DlyL?B{OYo2b2ka3-O z0o{8g22i*&XpiFZV_L^ahrmw0_vOLpCE8L%#4M*7@)KWxDtq`#cr$6z-xB}8uuo%C zver596;$D+|7b_?4-wyY^^i2xAFs^X9ILKK{?x>`xU)uQ-QmA;Ve5*w>m@?LK_VcM z9}Nsm7D}+hXD#jZ24_*y!$+|3+oD>>vZI=Od!WlgfdVvtbE$2a`$=5ht_nIkcm4qf z%rlydh$)s1WERc;XOF(AT{~SfjgDg;CXaSb10UWJtA&(T=DTkVf;n|*V#~|3RX9x>cDMp&X zz*QvX^SCCv z+zT^028G<;#SEu)JI!}i#e6!o_oLIzrnX()$aJG;ph4Fry6x3TXLYdI|ysmXl20>dCOUu=}OThW#vixd_ z0~y3_dLGGo?Ao$Vw|noXInuq^`gR?b(sSbcdcp}fRAL;y!blpmoGhoTNaty- z*kjLSrF&OM6sNFaB8U2r(+ZY&x>L1&xs8 z5eNFi_P&V7jLa<2JX(BH{?C>CqSz5!Qywv4C72;2u}Aj|VLFR%?p^Tx91l2wP1j0w zTtSl~h )m37m;y{44%=atwNOh7MDj_2|Hw_Ctl{HeY`VTTZap4wpT`p>!jS0ud zVy3z!AZ#&Ps4I=Rjwm(99JPvX{a>EFvv3xD{ z+dI}Vm(XIRiwPTlMl^g|CFNf>Q|+GU%EUUF>j6<@fulv4mk=`MFa|Q1AC` z(3@6tn$~SebF}lul;^>fH}EJy*l*^Gh+LWGCuF93>va|Dk=!tc#??~MuT?D%o~kg9 zPKZgootR3ZaRFPqmbxt#x)-quR>Ya*WW4Y!wpis&fg`UgkLYBP({saYwfxj>#?!B| zj!4i0?djrQL~!59Py*iRJ=IU+jE{!xR_#wbK|%PvR{39fI&}UlsVxtndjeBuL^+!|+ zpFE^Jft#C#{|(U^@?x(MZ(j3SsoSX3eE3^U4BjJz%c>OJ9d4@tkAJUZraLDJT_;1A z<3ats=Zbq$7e_We{9?Zup|H`Wev|MFp%*n@*^?j=?6HE>S?IR4C1~q$(b_?y6Lr~} zFt+xe-aZN&kvV9ESrYr(QwXddxpUQC3-^%gOk-ubuHTNrNDU_#EPZPwaf{~wS_8&v zcgBj^f2wT>^rdKg*HFDT{^lA=miTHHemn}T8Ltc=;vs7a@K0xge9;Hp{%Ivuq^4m8 zb}l*;i_5k0B(-P{m`+0JrF`1OpEiI1wvTpxIRAnQ=|AQ)Pqdy6}RS*%TBf+V6x+*M-; zReu3ERG}FDlxykn%0`|#@brM_8aev*og;x=A}GYV^XoyiVMpC}vv@_z5Vsn~G}rM9 z_CV=|ne`!h&=-j&iw7=p>wdG8p7^HA3Y!^gtf?l=QIoFG*l`W>&15v8Orauo1e(%f7isR2Y0Px!GE>~MR zbPs!$kiQ{KP%5V#fS)5R?<^)G0Sg4Bn)X3Bxa?xtouf~ehr9#m&^G}F6l#3gJv4uoYyFtbexq-l zI`b=juX8RO6`e#N4XAdg#8U|JlfinAOCc&KB0RLwLH6W=E?N&8tSEg3IMcTeT6RCj zV>cdrq()m4uV};KJj^IX`#Oa#lw{9^lr)uE3-zYsm0C4F1ZTXX8*PHomSQAU^|X8ekcZ`) zy4_FNbYg~+vMt|$A(WA};-M6o_ow+e15n3Q9Q5`FG#xd>oGT8{eU&MDOB91SU-olI zzSE5{pi7ipSK47)_=cr)2pcetkv$stZ zVTseJ76pj3Q^Z;ST5ZkEMY6`EkB`pq^=RB}jIwC05O_4m8@nQzu~TBL^SzjSSLjsoIVsvyfXC}vmoE8w1>R@=d$)NqWG42 zp+tmqjm15%>gW5}f(SQOY-GCVPtX(hgRM9UQKGGCZkGgUL3?aEzW}@I>!0hBw+?dG z#ZTnS%I`HHe6aFIGcv=Yy9eGycNFoM(%cn#wxyn)OC_M^M4g0%T`L1^bG|;8<&unS zzw08OZH;Gs_yezPs1()iqjyg4D*MMWT8!Rjdr!iT{o7cIG%JJr#}sZQ8POkcVIaIk z{+}whw&KWd{;G@uNV~6hb)zP?iO}7n>1JdAi_>$&qo&e~UvQW-WF^-nDSd3sb_`c9nRMY-%BO28#Oj-)T|YLfAIz z4ne)|72U`oRT8=_TeA_DFMAQkP9ySk-y;F9zGkJ$-5N{Yj(>XX6?o_jD7q75(cHH% z0Vnzv1EImt@FUj9z#2$3!xDg=R>g~St?ZjjF404+%9|?W@Nl_9vMYc7h}gwjE)L}U z%5PG_ndf>viOJP#s2%0p1l7?)-ohD@?3Ed?W6#(ewM%A7M(LkAZ;E-&SIi+HnhmiA zB<(O~_1{{BHodjX-;}PF2TsHu?pG{nzyes6qK9-D6_1-`T&{@;RDdpYW4=wLn$^&P z$94lAFe|Q~CK9v!2@p=G&G}xYNTc-w<|}lIEO-BB?5}~%MH!V&rmQCaMsxq8xUnlQ zy87IP(Y#l=o2|c*k^S$(CnO3MgactzIuJs1+$PgeQX805-&91q#k=(G0Hp)7y4hf4 zqCyrrzaY@uIpqWdV`R~TCcqnK)w);#ZsEsn)~}&VsaE3B?;Oo>q}_|13+JEyxY-@C zYS|~r1`?uK1QQG{94KU;_}r1Cje>d{8jl;Kd!~ZnT&Qkqk_k(Fup&0{J__Sm!tmVX z!2_n63gkp`!~rsY&|APj#dowMsuRIwAI*aF$97W~mIZtK2QhCoukUZKgQhJBhUw8_ zD@h+LbDh~DUqHfXVYaaDAUOkKX&9(Vz@=ea8b2TOiFF18f^mgG1-&tU2S)X_UVE*0 zc40&o7W5hc=QcvcGj)%U8P26b?)Z`_6_&M_ zofdD&8l;&B+>>UjS=VW0yokh>*AF{(g^zhFWo#H6G?4%|llP~uNB(FL9SJ^%DhQ!H=39zi>Z9ZAPdzc| zG5h)%tg)_#UX?sOymm`@@#qbf);1PqMClhK!_2YQej0{Jp~c%mVKpLnkjYiHIKRma z3~R1Wx{&&pOzuX(w)N6(cogIirakrvwOGK=$E6iU*lHPrsqt~@}?<`-b$iDMOX|kNvDR|x+YW_=I;kJ73EqaG4 zB`)F#7klJU$;bWRs$UhCHIGt0I@L7k0&Rm8)L{~S`>HJsT_|#j+zKt0E`7W{I4pYM zM_nvtMZ@2xD-zIW@!flLmy;g7TpzQV@QNI=OHmv^^%s*sRbtT{dB2$MMru|uA7W}=ttM)t~@@IfQc3cE1ZgJm8KCEFkuMDuiD~! z?;lX<-Jx1>zzdb0Th>{b0kDh2Qvx}IVlRkPJpIRYY<$>e3)EELmDKa?czCu=hA&_Q zLhv`nuFu*8Y(@7RT8vMQ%=m#()6|Ke{;5RrX_#uB9PST}KH zy1xG!AZIoPXbkx->zF8q>Qy*fnYlmqE?(m|Xxa8cJ5!h5eI{1&PHpkcnjjVr`w5Tf zZP1%;;T~z~YFx&Pn78eCGpXjQ9+Ibgz#Szmts>HW;B&wLW%=<-ApH?j=p=KP9qj0h*Q=Zs8Hs@L~3?SCQh zmx7KKV)NoU4616uL<-?WjYnQNbcrd zw`jTB6RFTheArm@Bn5J)Xwttrze};-3hoMP`JG2x8MLBwoBRZ1^QWT+v4owUT{Dj3 zs@zUm+mbP!vn3kud#o|Hwp!qKPPa7&+0YDrk2Z(7ICYM)gg|?aPF~TYZEVq8u*X1l z0MfOe&UHf`XuydW$5mp_hw2#T+8177EOf_m5A;T;lfj(7TWY>G*uUid2+VqHc>GtFHaYEMA3lmtC4qYv;?3{V&hZ^Ga zj}w*wR-Cg_sq@_*wTjS9cPVi#Ok&85Py1lA>ioZ_M^`>rz%yHGfRKtmb=)34hSCYp zc_k~Wr7B|k{bs05o)$8=BsE)cPG+dugbaqiEJ_>KeS-9;;5WvAiY-21d^^A!cCz-{ zRnSE37NxnEl>?^ez4Y%kW*ogQlMCf-u~3I5-tWHn`m&GIa6pky@8UC<$VwmN>z?x? z^PQ0VDN6tLGCa4B;RLY#qZ0!3Z*!n5^2oo?`3h7uoUF?QM$}yr;9y6si{MQXW!QDr zDfKeHSX`~b4at>!JX`TF+944=4O(#<5@fH!0}Nmxr@aD_h{FN-chY*W-dE4jHEczb zf6@Brz^%RF4zLRuD*+hgOOnc@PrPA3RzhtWkoqZnp5=}-&j!yJ@$`%hjMQk_~ z1yFp3?)DPa?&(9YIh5Ibh|nK1W1}7#*aRP0K|(mHTGVzgfEEC%1Rd+zh;JETeMEzH zkt<}DZZ+s2JW%jW(?#mk+D@d^$sYoBw*q9(?P~5L%mqo%NIfm25cby-#7zO1%f7hfOcP ztX<@snOanCno*7@(fmG5fmALI_-D_v+p@yZ3fofY=dADg6O>52WQ{}6!I7KBL=3+o z<_sAEhs*`27b3BEUUB-5hs6NWI$};IiKrpEsxB>RFz-p$c3Cith*VYU37V7zOggLB zYAT3S6Q(N@2QMG9RRj_7qOKM)L(p%3*W@))Fa9iEh;eGTxSwaRhpn}9a&~gVx6jC^ z(Ikcc0A`JnfP9dj!c4`Z6fT(J;hNyguDkT276}}+mJyHPpl0+KEpD2$_>x-jQM>es z*5IllS|pS-u`T4NA>UA0lMjA;9ABfH43{+$kbg`7rIf8;NE}GLcJ60;YU+tP=PZSh~2f91PlU_+nF@+O*%1|6>8>aF7D{{@DhY}e+?^m zy*}ky2^s8~8UKzA!71k{KP=8iId6m&TfC>fUaOR+t2TjU8&e|x*yj8b*p^48%=)1w zAr$kVYnj$U)?LV^E>0q=N_|a6QJv7XAf@p;xUVl*;4er%cKCs z$ywekbI5hF)bg7BHvP!O4oRgl@R|sdJUqvQ@wsM z%hYktYw-_3WN1=4I}-h9!jvsZ8H|>tL!bLoI;p)zr5XYAJ_Y;ZdQ88!u!^%Lj~-ub zeSR?a)70HBMY}c0NUhXvb{K5DUKDwg?2_h-PE@(IPrf2GmK8?I8W5SVj#0PsGf84TF+NA@Ny}Lg>4p&;sCsQJPS`DIjpwZ{3+W~ ze)=-|$nfjObUOZj`{~r@!)9}dX@z@w`5ObXf&Sq!HL}`x5F2{6Jg4cvnTj-|Ybg^0 z%=Y=g(`=jE60?;=j(~lEhK+s^=me<@!!j?UiM)(2krHse3-{n<;Ep6A+V@M_&6pyc z#HGosgCzsoii%=?a-7atL$`f1gZGwBDldHT&%ohd1FTF)dOJmhRH%*1UP{2Xp&nu% zsaYBI2hzWer0CVauy0j>cxa;$-EH#cS(Q`pLv(^sZ&*>jg{#UFq{3O^?|3%U<(&^MLA-+~!x5XDh%Gcbzn7!x5Mfb)K!y|vO zDAG+QuL{5PW8E(b2xJ=QorIp-ye}Irk@6l((DqcZ8RGEwOq^Q^`u7I`wHiyexMPfg z&N#~!GrTnxK~7r(K8^&TRbsiIg2R@qsr-U?y*e(7J?q zP}4~x+Ze1;iV4_caX1(V>`lit(p)%=nEa}wVo~_dzG+HI!1%|=GtPm|rSeGVJtw(^ z@}Fb{-6A>_lNEP>v}Y5XOcm)2#?3o~h6y?^sC}Y20+H&e!A=wTmYr zbq&b>R3xz@l(A1fZ*GpVg1MDVHAo9iafG3aIr)vQZY~%)=e%tMf>=H&+5k8b{ z7Kw|HoKpw#QFM@gX)NhqO4UkfGYKYEo1hOe<4vsZb9xp1br+e1yGg15Q?q#iVMb z1N*3#9nT*BRetAV;OefW?0-W=P7n)CxWuo5FFqCwC?kC&zX`8~{~3a(yaoxSL+;{F z-WS|42@$>;BkSO^NAA{Iz<@i-lD|Z?@@RU=ec~N%pJ>1J4hK}hdzrSnmtA`k`_K)XMsb|-DTD97k9(?Me89O1g5r@ zR$47bwNEGSYoX1yawNN}#hSfL#fw_UY!5#uvn$|HRMCNQ)5+yreIlwVFIz9-{PuC2 z9le0&Cl+pbEP$i`Y3sY=+4}zfX^pCCZPge>s6E~)R%vU;s8yr2_ex?1wKug#DKTo# zqQNy{SJf!0MkTRVi^QmsqV((Y`}_CreVzL}&+~enanIvCU+1R9Oox$*+EH(aW}zC* z-Ih1$MA?NTTWsuIr`>7y`Ks_nput7hPqbd0SYgwbKkKH?iOF!#?_Uhj`2IAP&uPQoEaZ))A8Yd3xCTwckS<{R>OFqk2%lTjR4n=@>7~BtpTwo4E4Bhlk;Ny zC4VlFLDCAWI{E?+NmkJ8!Ij`ozy3xB?@S|hg(YpX%bYQgja8HQ8}Q5Hgjc*)dfXiX z?#l*hxkO*vcb}Q@k`O+`q}^DHNDOxWC~>})-raY-1YEl1kp}02J1WgX*d(wIur;FHDAe6nrL@MSOB5vrw_PjpE3AZz58TyUcpL#ABpgz#DMq zIeo%OajlZJAiknX*Jg>50l!(BucQ=?v1$y0z$hKYogkKeYbD)PUUxE#d|Zp8wVu_~ zilsZY#@1`i#Gu7w{D66Z89+ROr)}5YMW6EU%a=CS6HiM;Pq3eeRI3Hw3McRMOc)I> z)^7fS<|S-d==YuQ?B~E^a@ub3Rb*Y^XE@j^n1@z^f9IQ0Qhs6ZesxHwK$iRYzsw+s zj1iMyQX%OQHXId zY-TGAL(sj~)+O$VtT^_non#omIn{g=t8td@N1p#Es^1eHynzG#>Ufc>82;xoZ-nGU zNOW~n4=D`|3w#j=r8BkOleJh{mr?Q5N_0=Mc6Z>mGfz)=neoTByibEy${LoVDciiF|zYBcab)PtCwhP{CwhLNzirP&&0CDo``M%tzp2lO;mW)+YRybRKs?)sTCds1<0 zp#K01VhE_?RW$@)bis;0C%kY9)X2ADmkvo;)D~^oRHc(URXffg>sJMzFu1>Fe*Nn+ z3-p5%NVyRFFq3Jh7N2C2smlL75J2uQw0Y1r%5}_QsXnFVFZ$Ifs4}lCNxW-UDCNpE zno<7x6pZsXK$&MGc!EQ1Rg`YcI{#^WNv91}$__Ts5}ShCz%KubDy-w9ruUCIx6Jyc z$rWwzjD3c+gSW$wz@0OrrL7;C@-)c+13Ttnb2!!X`mWkhc&tmQjPqssl&X#lBD?ja z$(5SfOtWRt=rt}%B4hM+!0eVyMuG@_UQ4j`Me#o#o6Zt^Kb0ig*|$3NMU9TdiICCh zE77441a13>mabm=(4T^ePN*V{kmRrDU|{j{^~O@o{8d~U0fvk8WTN)ooBehIb%2rz zQyCs19i(KQ|A*$c)CW|(EKiw9hJ(9>bXfmwBh_=68=Jpx&Ma+l)DV_$&Tesm?Y^d% zWG?WbZ0bKi>Y-77BxKJS}x z%1(I{X!inn|Hh4+b1@h8DvFz<4cB7dDx=j~+g<{zQ}4^?xybi($~oE>?LWA6Rc>nJ z>wWjv^YC};%?IdAXjA4=fPWuyc2lKqwWcOnagvE3YN6ii|c0H9n>g-?re5jpb%Jee+W7&}m zGm6;rtQNkSU^)0q@qOCQ``ObXh88?Cm0QD6W5BB?GK^O%o}f{l0f^H!#IrSd%!SZYzl$cZ0NNKm!)gv3J7~kp`^8mz)oW8k zo}6Uq%=&p?H=Z5gEK^K+_>D;HcE~>s8UIFX@^NWTMXLgisxKOI;2hwrnLTo8wx^5Y z8>=pO>)^d8=-yUZY&&_M2gIsH;@#V?&vyAFo{B04u-5{Tt%+!{uyokZKI=BswvWe< z+{H>vLR`R5*U9ADuH+ldn@#rKWwKYDjUj>Z{6-RPZ497_E#>^`PW>G@K}6 zzWrLLUJeIvHj$IJR(|*=K`fM?myi_^pxL8HKkmgN_>*`iZBItZ;Yf>B|z{RCMm=03q2aJTakI>oE0gx-BRWkZ}f>D3ob z{8hduZUHe}{JtBlJE=*z2V^Pa? z{^z_AZILc_EMrDsk5sia&&l6=1T>g;M_10YD)j_t3gQ6{SgKHVvl=^bM*-~!X}?%!T1Zz9yPXS;0(%0BVLUU zq?MyOy32jX@+#T#_APmp8Rw2aW%0wjt>Xrm1h|jpfFeFgMsRI*Oz&Gre+s0MuB{EK zsM74x_D)*!^^|zsB8C#_E?hJI>OwOqCLF*R8w|FUGL;h`MFQjZ_N0oq)txo3_E>y2 zTAFwTN+ja;G9TGQ>U*&bi+Hx4EpbN6VLa_)~Z*1RtQYbi5z z5H(WhZ|gT{EAloUx;xhRE3*1;yA}uc-Cp|3soW|BV3T4plUy*V&{Ew%28OnbXUGHL z!+2~TOFnT(-qo>_J`I95bNIbA8Nns5oAE^FKfH%nz)*%)`}DdzN9O6_JHEsW_>Fsq zq819cZkdClr35Y>cWD-yZn6z+Mn}F|i0t6t_6;u259*G2#K>n8Z2nhtLnEGO;uE;A z{ui1(m$S&sa(6apDaV4|4&)n@_;I*!e!Eo!f=_u6;o42gN;?rd@O98idv5t}st$gc zRlazQlj2zGCxB1fF`k!Q6}}+w{*{W-#Q=US@Adocqyp?pyovCoc;c|CzE@j{pRdy6 z=knV5{2e6B!iey_cB5ul<@+yHuL!el-FPg!Roz{t_4an=We5MWOoYvM)!u~83mru8 zUSH8&e2pb6074!0E9DA2*m&i04SN=jMSUPBeK4y$5P*+Ox7g@o6V(up3{tPHd`5Xn zsc&S#Dc|M!GvFLsf*;ANXyUVHa+qoMpJoa`%e>AxA_CeOWK)V6SNMZoQ-4Q%a@3D_ z7Z#J93e29^-kG_zlVPPk;FnI(3xA=~#&(Ac7l#q@25qJSIz8JbTjsolH$SiofX=Ki z_ATdqR zgqQulI%vICTKSvdyMJ$kVUFWy{LEeu*{d5vbuV5r1Lf+loG+dxd7&(Q%GG(Ze3`sL zOME=V|IiOcN+}bDgln=v#0lVIu)cpo)|7)rm&S*&@?75)TXa)}yRTAQc^TY1EuGg+ zLCa{)sLl6lf^5EeES{OUDSG`vuJhkA{3vs3%+evAz^Lf_>bg|p!*eD=Y`&Y)wH1PJ zWb6)^@kY+j=pLUouH{-#JJYgn#`u)g15qD!+2j|zK zx0|5?|K%(~f{_}_5u~Th3y04-GA8PlCqF_N_hxvshRQIXUp&0;A;zLe!8M@W+<4Z+ z=Du~DP_OmJ1?1zM`Bk5PmZo^E8oE%4>^)P`YQ~kmjC&@X?siMp?wdFc31 zt;!+0^RCC53`6i6GNwo;yiaq73Mv%{x?*l-1Lspd@WL_Gq=@2f->>&EUWj`3Ae8?# zS}xV4anPGpeS782Zszo$2YQ~yYcP18pw1F6lQ^deEVf5vCt*`K@-VB^8-fGX}0nSraPn2z*l2MNA$e^v8{5m zhAvX{#rs;jotTgX_sgq<<-rZoh8uy?s}|a2rnf;`R?~L9)ix@tUsz=)D3Kzv<^~!@ zGlU57r2Q|1jNUvr^;-^Y-*I{Gf0T1!uzA?8}to*^%5Fb``+`bQ; z*$Ty_2D;GYgFhWZXqN(Gr}YRqhMO%5yKfzuwpF#Rr=~x~Dq^fFBJbb2^Ns^1RXOEw zpI#hSu9x3J|NNmIlxCK;t6!~4a_A~+t^gNpK%JxhtP1nqb1hatLz%0%OBypv?N&Fh zNf8Z>2C9^2ks~mN1(R@nQj+GR$RkXeil9zLF`>LhaI$T z+Ss>7Oi{}So-40?4+e7>*d!IZ?w|JNrjrtmf9UIWRyrEHCFSzzWdbX9sQ+5^G@+wN zNy^mrv7cjRGo-(>tqn!tf6m|^L_r?fkgZ2p#g*5y#z6^>-0@-v__X1-@+IfjENk$d zV)hj_hVWQjz8UT;i6s4f*vdrrTi8+2o!TnSH}S*E47V~jJwW#S^Ou~8A#DTawIgO- zbp8t5OJRS{m?Wsgmpcs9>&baA5rDi`ga~Wqdn9)TJ9vLIq@q!e953{o9zTv~T4R~} zM4G(wLX>q%7_+^jU|>~nsHTOKL`RBwD%6q~$daJ=UmlF>eJA%We@ObV4MP%|24Dlx?^B@WiM8VaUww7fOPF%-^yWe~Lw?A7sOl zA7SaTPc|>O(R!^`-)^R(-|vNYOytd|qNUu^iGC07@;1xKx}qY9k=Il7yS8bE#sAS~ zPNcgRt67&3*|YQf@7o8%RGS@$;+f+Lo|CwIEej32gyIt;ar_Vi-ij@s!zEi#9hmj- zkWwp}LB@IFj6#gJ}N{;MPqn$I8OFV%R(E!(O#HE6p$b{PD?MW5=IvS z;;Q9Zcp@Ks+81OB1k{E)ZpPkDw?{kJ>ghjlqiqp;)VAt?srgvW1V3|^2RXlj1~(Gt z~~CiOlf;$wW)Sp{g|?Eq+-Lchoz*mPM+2 z)&RAhF#jpULKi5$=II;`wIGfc#{iUBU=e)Q9&!M!Rmmo?`9M(ck}ajN|gPuiQ3S{<5f}aT; z{79MjM%5(lfgx-{x()0z)uBZjBaAz5o>#-NL@(r|$A;%jad$rer@}M>0x)Cmw4L97 zQb2G4M#tbc3y>xSIQ%)@j2| z^NZ&!WuV$HvOFE=?Y3vFF%e?Ie8$zn@0-7cHE`o{%<+!b&BN;9wu}JHLXg;$!@Cv= z+v)#&CjV5rPBo;p@IQb)%69zX_mf6vgnaKwG(54H;B2dt!|<4@#{lgCh9^QZOAynW zo(C(ECGAHh?{H>11R@g$m(v>}op6Y(X_d0{hRmCd)VBGCP*shEw~j}ui|ZuGUxM@Q z!k~8n0X?aLmv_(gvcPljxp@+LO`{!S!4jO<%;9+up%F*ec|&)w)nF{`<}ircs>MHF zSYm>e{ zXHppMJgJ~Dvl50$VdDZkRa>{2ceFyw#jK#O`iiy_5-cc4VC-{M+0BINnE`lN5dnA+VK7xE5 zEoA7fR!L?8wx@23v(jNQI|4Nt+^%gUD1mIh@ct^3!b5>iV_Et1>QB+GFx-$|XpRVZ z&L}b=(gs}-@MG%2O#SD#GPPbQGMNAKB^Lp{$*=eTW1zY708XZ337yx3zM9hFLc9(* zxPDB0R8+rSy~|JG!81>ZR$|dchWVCnU0oIAtAejh&O8q?x_4D@B7mcF4sK9op>jNH z3yKtGV+{^yZRGp0gFI1X2l`q1^|mWRene>EANnWdl=3+dg=1Dho z(|V5t_%K(vjbJevxNie=W3|#RiF`SboVN$pu*|aoP*&N?1G{lr}0v~Vr%QZ$lv8#80Pl%a{mXGd7*%JCMdre>cnezIrajCy>&M;-YCp6>cZZMfyp zd}S5=JUcd}nlDOQWgemW#ydbc7WGZ6m_~r7-v<0-xzGRh$+MDhEb$K3zmZQK|9&lJ z!*X$t-1jFiIK0|Zh>+^}St7TZnlfGF#M z=r+6I2u{LG9_Nv{7Sem)Y+vD56{79g44ef!Wc}ah4BV*G?QIj}i+z`E_17{uCHkmz zF>@$u~!t&I~UI|h`KM32n?r9DQXK@`N{GeQAX(0iSiv|>86~B|j5@^GMuMP*}h1+%q<{Gi; z=dPId^7t1EexTFreSGxu;LE_)xxP8GbgM}Rttr78Dg0gPV@^8ho|Ml~3QuZfGLD7N zAd8lxFFPNR6QqaMDF!QdKmKv4WZ1E5vGP#&4@)|JjAfexpP?_v0u!jX>7)l~Hm<#6 z*iPOyDd_BcdJ#|f$G5?w|4F3p8va%2-QIajG-s8aT2A|MmpXzkESw`yH7CIe! zo-HTlxc#VU;g@aa&mHZcDDYx&GYeDS5Hs3`nZHmPr;mz zb~fW>MvCSzXAbgjw+KwpYyo5RMY8{8bS|G_5#K>n9qe2SA6uC_&bP53()X#?^mQI@ z@V;vB@0(3IFt)=WsPo&28pr*H7PnxcyyeIi17id9;dgw4)#W+#?JD1}2=i(YE$)EjC1CP2_zONAwa69@PaV^i`KkTZr6en-6h>hXX5 zMo4A+BVF;_=w>vmiv!zAXkQko$WpsTMhcl28E)X@P7zooFG@uLGSYpY&*!g*!y_ zt^`cQSfNKxCbSH0Aw>58htMxNlDTi*=Zud|_`V%999Z92_@jERtPv=~3qD%ONkY{* z`s7ald#{oWAmB21M>`W@>CKmUUVA5FWGcm?V86)#TgU8SYf_VZb8(?TjRp;?tXbk& z)?4;c)ORf!@pkO<1bG2@TBwl`Co zq6jLZ;r|r$RSGId{7W3Z>eAgUHscEy25d1l9 zIhwtXRRkr=H<@a=AiSW+x!A*GXCr(Cx*FI{#UX*9A*E`xJ(i0I#h`_Pu`%w9i1_w2 z!~+aiEJOL^gw@U|m+5g&yMH^$c(KR0@6yxhNGL`5G|3|V+*LNzhS5E~=>>L^`ZXvu zD*_ZSf~-?y0T>}7m?m3q+V&5fvR$1h14T;M2eh#{cJdahYy+drUQ1`2jP5|c#&=&k zvluHi6&YGt(*O@hsUjT%0|dcfii~uNF)97n&A-^~AqF!=9v*W0XMw!S5N*zj*T4S< zGdu}9=((_&yZQav|41_lGsv2@83n9y?&2j5cRkPO)>6ODNtp@~ zcwmT(H&s(BbGt~fvx$Y}`PreTFQRu32LuRuPRz1TziW znuctqs4SLCf^t*u-h0;8A1vopD&WzHcsw6<0aV;t$Uy+6AkX|-_;*U+@+h$C8=`10 z)^`4^T&l7rzurSt?T-51_l#&A*-+^!ms(&_#?r%nxkYV(KZ4wojGM_YOU5cUDrdM* zM;`K1VE>i0Zq{-5cZKuQmN$bt6qFN_feGVqbBLl<1Vsq}Vgnrz8 z>FW!agjc}di*qd>DAhc!^{=1Rm)KX#iF#hgUg4)pcIlxoC_3xzN^yDPr_r=Go4bs} z&B;UFZ$BnqRL;66`opeC(qDfnX+&PTdhgF=UGvkL{zxWvXLoaCBJ{7tx{SI<{+muk t`LdnRnIAc7U;pYomUj97`~#H0NGelWMB zbQsm4F(!CKd&DE&ls+Swp?cA8I`Drl7s}aOKuguM=KL$wj5?b1BliD@R=D?%6CGtU z`}6)OM6vy4I{1J8faY$3ag(u2R+s}8i?DI6Q>>9EO~TGC@p@|#F`&R>Mc#~Y`$7`) z5o-;z1Z^;pe1GEuYA@y*4`hrq7sDP^|5mT zip}{o|NbWSr`RB*B7R1w^-)+g1uxSj{Yd$bvlC{&{0Qm3SDPhC zJE6ja|ltkGer#?P2U^|8+FNERanM^aFkq{zV#5+)fZ|rw#=$VU0$+((E0pjgb*es9JC=ol1U?L&||Bh%}BE#niAP84uftazn zc93$O#T|CaT96)!g2G=Tr{D_s*qJiw4V;3=s3)4 z3QHL^JDl1IMG)PX;0TQn^=kxApG894EK^ZVSk=F0s?RjHn73HB7)vjBF^18f!X?Xa ziE*qnxTeWK4ShjeE`;YII)hpx)i3Hjs!^_~Z8R9=IB%ko*ro@R_AlZ#rS`T82mkV; zf0fXoP)D=Zyzt3qburCEGso`DivG+pL&-%5iglkpW}7CGjI8*An-xvcfTq=Zg!t$pPN+PN^ROpb6>1|k|NU~ zhjSlOhY~!Zf|?6X-O(PxnZ3V~IP-RY-5#XuGRHhHB%gb7L0}e#V6Kcx*DkFzSygPGnXu)P)3*R!`JxWJ$~NB*Ls6Njb%FwtFGM^ zL${1Kyl{gXU+|ifC&5m`1$te39$ff0{-fb1RN=Gm>Jzq=<3yM@_O{498b%%2^)6%q_`HUQ_&Wr z?9=FO+p#pkYdrSran1u>t(YzcXN*q1UVR|wV8Y8 z)P4=J0#;StjFW#f#x`b?^s)M#Bt_!~wF%kf6gF$VYu#_U<_dXCud)Sr>DQ6_mSjc^ zzJ0-bO8A1!P6nw4K2Xtuv75RB)|d^I3Pfpn?)diRi_cF!+S6P^1lLUj$I@!is{oaV zAXy<(dqGI0ES6!CT@z|=fJsQ!ZgmNU?Bb{X*yp0i6TJXSy`ANdS{A?eWZb_Y5o^LLdE%RwgQ8FHh)eR zpTq*K8FP+whfzEAntHcYG*k|e>JP-3r1Zzc_|*NC{5#**|;ceG8l zUjWw6>6)b@@h$1{yO-uX45@2pCpQ)yX4-C>sJs4JX1Gnk+SN?qhM%ICBWhP0D?4_C ztCk=iw{y6F-vx`lQ!~7+^SV@B%y2sw$2dDmvjG|r3RuDu=TyOEs3GUgKJtwV z0!5sGS$qnHM-g>^5~9zF+Ourf57{Rii*)39-AU?x=Pr}y z4EC|h(u>)j=Ev$$idxi83es>nq861q8<&=?2TnQwrFK#P#1gTd5L7$GD=fGAh=ICC zvuk??{iMu%KUGOV96dFuzTv^XHd-MAu1ko*ag;!)X(_(h439kyh|*--d1;0DPv$k| z#YgAcCV^QU?vO0=?_AKSxbOM28p9_#y=U`wZiHqdO|5jb7na#>&@WsqTdKbz^#s)Y z>(&y=QtDO*&gP|Gkscn$pUI`ev;=*|}Tb8|&yDERb?zOQ8 zeMP|!b^f_+han!%b{b8mUJ`Tp*8q(E{k6`;TX)U;dfUn3>XnD|!8)fLN0eYF3q+F=W1CvF{8NZ?`^P)|9b&gqnI?7-tHAc) z>v5bxP%MN*ZcG=2Xr3n%w8#QkGZ^-Kp2AxlW}ZieyvrghF%g zlXN^X->As(333w?3_rPXwP?}HxGu8X8tm4+q$SZ29D zKDpSa?R&PTu2Ph)3bo~!h-^DeOUF$d?TdEw={21TUV6%=gOqDQ2oI+Ow^Cy-DqFz& ztoLcw&@HE;Qh9?W3dt$Mp&i$gY+Car8sFq9hxweE`7=J>Xtyq9_x-@m?Hw$}GFh6` zB-PFYyr*&bkZ`}icLG02mkSeU9o}C=MjXmQO|WG>ZICyZWMnZ2BRb%XSvo(<>o&1} z(92WPW6{}9ETFSbv01XT52?dhil|2&U)~tWR}XYByg2_3iGcmhdgE6nNt4-# zmG56tb?h}c460N{aJlO2bs}BwQYa)-Hjw8kwNSHUB8kSWSV##s6a<(mGIF=FauVll z+}*X*^h_+_)X>geS~c8(;-Tw{>vWrIH&sgk7EYcuI=ohc^59yECc?4_Sb5>0?^ZXQ zh(>Gm5savqI)`}`9dF5bP7~wQ8Fw(7O?ZRs*7Yw~!o55r8G8Oo(#Sa(FctKKteOa9 z8yk6Zq)_&G zB={GhSMA>Ylj@xY=j~WF*!lZqXUjGi%lr+%ldc!T5_+!uUCQ+(5ACUY8eG@D683}) z^l`^FCG$r&3Xrz5a^q{-?u_jps3j`}bDt<*{dn_bN%PV6rqkz1t3NI%G34mn4tPp}u`2=udZE*hAwecY$+TSF3POlH1~6jS>&{{n=(-VWXQI zG?R7p3taSR-Q+dGf&uRFl4H{h>(gP6L@6PX}`K6D}^Quz>XbhScj ze9?+V=Q3&WUoiPYhwu{eUYjy!^Lu}CN$F!?hlO_IpRHc0Rw+tT_+J3{v)GCz5QYWX z#{%Y(NXF`Iw;wI+56g;pMQ~6=GjD|udcCEx- zx~S-{Nl2ZwUOa2X4a$oP1qctDbgmy7<|%tGMbp8RP~J8)FN@Q4(m*t}$#QS?K&~r8 z5UZ!+O;nY)$v$I^F$T*?73W;YBoW0ORy08qkbHyFV z{VO#ukTNGQZyWroSimN6T#d_j|CY)aLIo~V@QqSu)N;74Y*Z!)OnZiYGA2H~+wfAU zPTe)IC*5uE+0fzT@f=$otL6#fKu@$3)<_=_G3sJ9y)#k%+hx{``d9K2Qvh17x2FEd&8gYRggQBhkcY1EiiMynJ zNvLKBGq}WlEO%hD6iVL?K=soNmyHbyFHPmBHTUFyO_6-gtfku9sDEu35Wl@ZQas)h z@n&SFR#L3s#OSKb9mI-Tt_Nx)qUnZFFLz2$5pG@mvoSStB6xPPlpIS(=6b*MzZa{z zmPaVNla8g02$`snW#oK42)}s=f-W>|+k=l{e_w@Kbh2qf;6f* z5-+y$S38kWFy8jG%5wU!U-_T(XS$e?%FE5becOTir~n*R*?4^%91hI-O94d#b^MIB z?A0Lx_G!A?Vopx^G7$IQ7=MFP;j_dkwkGK&?RogI`{1ri6D_r~7}6Z_-f=XJzfDNOWfKd2qwcdotXF{%b_MzbdYMp?uErL) z(OnMb8_{`n;Ask~qpBBy%1j;LiS`Vp|Hv2y9lh|XWmImW@)8_aZD-U@8~Vcntz6ZU z^5zH-#T!;3XGq)gW2z_Q;M>i}^Xx*`Q<;7fV;-^Axc0~g24w0En04K)sbADxL`M(D zJYZK(p3rqhb_RZpNS4k3b%XA{z!bJPT-0Io)p*dt@xbu=C?PVe3*Q4Nt%xJOxqSG7 zGDMNh^w8?B^w3&2ALBC+t_wGGdp13yK&)wjM|&Q1fT7+FN^uZiEq`I!> z%ZG*W#bc>ObnlX=WkF&QaLz7y;{o_983Yfdq;iwVaNFyAd&s;zujeBv003Yv+~s5O ziS+zJ)~lz|)g=VDA6>`jzuIB#iANoxuFoI!PE)L-;N0QD?ketMb+*>rRJ}5Qzlk{j&LF!> ztn{^%t|$Wjz|{aWPf|=Rv2Teg?mzGz05pCUla=@uBNX5sQ-jYaO_6G@ z32*uppDX{>y@1wPN-)I3eshVd(|$wCM{opgA@TO&&hv&JBt6Gt-!=_4wPP{M1?3MP zdSQ-M}h-(lGl()i^-Ql1UHdjEvdE^A0EKBi`0U;hsz=qwpB~(&=c7-=c zJKTtXD37bHev?UvbH_Jtx$%i;!cc9Fz~S#Np7Y{d4NYIhnG_2Pb-dq5X&UQoTaWq@PNzz)Uh}IK);?8-dj%_Uy!{#mti@@pHZo7}v^J z7AO!#P8Xdo6vddjBf8>Gl?c-%r;YwafqZbRu236)=352u{i7FvST1Z@0h>}KjIK?! zCXm<`n9I=F-xKcf63Nm#69A)Kl)r(1>aXYXcJi)>3{2L(bUlecGyS@%+{U*Z zDQ05vFP)n{H=J&q{dA{QM_^spZb^>iJI&CI%gn{Ye66@YAPAk8XxB8RA?R95(MgWpy=KJpWT zv$=%h30`|;z}M}rGOH3A?Gj*_YH8}3HNg|Sv>-g%K2@g5DHV5eZQ-f1qS|4f)NS4N z1Qqw#`qUKNKt8D2rw*K+NgiK~A$~qP>CaJRH#646V;Hh_a(#UZBwS)IZs^}U=d1xZ z7BMUQFjcTx`dK#(sN!KFySLIkJQ-%g-%pF)A$U7HF6VDN$220m0q%_HC>T;7#ZCz| z1s74Lb!YVd(3~YGAh_ypEBx?A4+cXsC_1N{dhBGnuUWX{Y$QHwDIXZR3?vKo4D$1- z{O#m9JrJNO=c~q_MLSrs2|0D-4bbHhiho=8i8o+5V5`1JBrvDd`$+i4oUl^BY6+q=*{f!#FCJ7$F3)P$TE(>HUzV7WhzEACoXm zLkk?UjyW*Muy>k5PNQoL71XQl=R78L%W!}~)bNIj4-58L;i6T8S#~yIC=frjfwsd= zy#!P7c~u)pxYy>#GD{1rcD34c+x=xLKM-Nu0IOq2TS{QAsC;K>im!ZZA`dd>OfHX$ z-|u;o_ptau30jzd7By;{G+dEe_*+d?fRV`zK^S(Hp@Y!#+M@jPt$70@lHrljE<(+) zGyrwf<|~|i)2YNOfPaW7izhHrlZIQNhU{L&!18B&KJj1KuGRb`{80HwHa^ifS&uJk zCUf4lf=%u)s1p8v6Y=Qu2v8Ta34_F>HO$dge8}U}xH8=?oQqk?a)CRU&p=PN`mRB9O+G*x`;X zUH;){*KUgzthLT+v!!r?rQ2mz*0^S()E4yle&@F-fwHqP(F{I5IVN^X^Mg5>iEmY4 zci0E1gdn@%_SgzPB1|mZJ~P@xOY{=>|Wu#av-#*St14mI(^=K$IZTSf3^z=MM`19s${)CTK6+C-f7qZlL3M^ z`2M}N@ZlUwh4Q3m_2eOKyd?oSl```=Z6b^bR@Hv8W!I{5dN}<$moHG9-@)8-n$ut=>sOlh171o|96(l>)b#9f@|X+INaq?+|=6@REJfO8~rzu z%QiW-LL!bcu!qRi@F}@OY)I3qBWbth3=E|12-;|24z%#+QSH#3r;mi`KM$Zn+L{Xl z0&@)xh%6Rfq`&R3->=5?Vq6xqAd@rn-x60(QhZ?pXKuawb28xFn%mud^F*!J!e;p%WtVBu2TW5kRKuv|6^uSr8cQF>lwaV}%%O z!<(=afdncWbxZ-m)&~?uk`v0XY73wPb z9>F!juWci?T}&Gfd*I@afAe}#2hqEm09#JlfKY<9#a#?}1G5rI6hVO9D%_6Gt0Ge< zs-A2D^h$M-abB+gC7Au!$CB8qniQ5Fh}UuQxGWmfMf(mIE?KbTM~=lCvC94BzPwaK zKwvL>JXF&3#F^Dr+7WSB6@Dl~n7X5WNZp=-Ajd0>^{p!IBfuTsgpw4#HD&CdW|YG> zg~KFZOWpuuj$%Hgk8No$^>bwDRy!ORTm%YDj?=%)+8#5dE|>6#89K+Ae2gUr{nINQ z@^tSfT67|&?GFqu2oa2B1eT<1h*Kq6#sLhBQ>4Zq6@HZe5w=Si{@oDSCbbRSibGPq z+TQm~vK0Gg1?*tFq(64u436RrxW%xWbPM&4+=eXmPTD!h;Oy)K zzoXM*M;22L>}GtWUnKqI^2m(dyR7@f9;j(TG-InwoJasny&*IpPlSEvb2UkkT0|13 z_>Z^+lDImI>BDy)E?vD{0>+OWaNV)pE!Y6V>84+B;dws$ta=I2StL85e0lTo5GE&} zBzd(1{m6yW#y{la*~;kr442Yx723a^F{HHke@do<&_H$B@Q|^<_*)3I5)oiJEA1k^ z^h97M5f=AVt%Vj5%$WoW`R_7mi_w1IIp^q*Uf1L%1p^Y~7)a$bB4{W0s=`p@v48I6 zI=*fTqJ=sS0As5=U7e{Mins!V+uezlx`x6s7l>Z@U9zJ8R!)D{_G?Y!%(iG+re@)s zB#nbgQ+1r@sjBk#s2I3!@kM$dL5U~R8UmPn{9Tl_EMdy@Pv}WES+RuiU zqz*Y>k%H~J@M>8CBMrdMgu&CvdQ)cO4o^<(0Zo@vdrzrooJkLa_Mm1e#gkPU+!a-F zfhN}!7^)k%z^F~)#{B3*YOJ{4tkifbBg+RoWMDiq3H|;>2eB9eOC*J zY8U2|yWc*Xp32Tz1y2s(aVp;JJ_;>Y_+5?}7^pOvGoENDxnlRazdW37B?X`Gnk=P~ zI$X-a9I0?hVkZ9{o5|C-M#fTg4>>v8N#A$>*#1$%gkL{vstL8>SpBv*_c8{H#PfQ} zrToYMPM*W!9)TP9k#7>P=S1|Rc_O8qRO&a;E&nm^Yw0f9gy z%D8r2sjGwQYGm2QhWO)y{`BGQ{!DIME#}pgOnH-=O3wXllb-=uWX}$U((zSl9Xb5? z_eKcjhCG*^Xll^vbrilSBlAtL+(nQ#;PooI|s8?jgV}Nar{S}s2 zccJXqL_D1GaDdU zqw4yEEG@x|iWY=SD$1Uz^p84sq2mkzbQE*+X^d||CCISjgZUsr4*2^VLQYyJT4 zxf6k#G{vI7t%5MMiK=oI8Wq-jHy&&`6us;Z?H|kd$et1^aL=&6+#$X-u~EE;+K3m} zRsQ;g**eU=>&um4Z)F#MZRd{rerG47THox_@Y|b&4^92I-5EC%PxiigY=N1XfwlaB zS&u*R>j|BaZ1K#-8lf_GLP%reb&$O-tRhU`1Dy+(Dy1IRO1`(-mIHa)uw219?=37q zd(hBYMg*Mj@Z&x2bb@fy3zM?|lX7@*r;u73yR)=o8;4gnP}wML?7LC>@!pGof_$T| zxXOhpKnb&2}+)vXIyJ zMKPxNrDiGFVti%O79DAK46EF2nMl=yZOi=wX=PF*ST_05$*3SSvaH^zhphxXP(E7< z?29ZKC%{5-xE@o0YN6=Y2l{8cE@U4@<2S!Y8Tsc6j&de55s`Tm)skzGK> zotU;)h|~^?MELHP-)KzGDUMxJ@Q62+aHt;;u9Zz@UwOrKslh-&&pL{KAw2YVV)f#f zv#!-?c@nZ!4?tMFzVqy0fjZ|m)x1}3vSyR`Vkso^(@$*wl+!eU@jdBDQ1j*!4*g8m zrb%0tK;RF_FM%$QpvSZF_iWRi58{5TyCT;= zE`uHbVe)Bw(4ftTNIz^zd#3(O59Z1q;N`!Q5**emQdQX-(&1^*=FY{65&HPV!NAHv zrq(6DmRvb1VOl9gM4hDc`P{9OC>EW?dF5(>sp}PsqubUGVRwlRYWvr$@IkNm=XZ=B z;?8?*GV+L3B;3Me1ID<4M!zMJ@h42u=f5%3`Q~M7&sE9WXbi{^k%20)$Yt?PFIC*d zx1QoqrcGRbA}b6XIUo+!Nad~7GJI32+j5+SIPQ%hB6h5dp`6Ud=!%YK^)N%5ms=Q6 zJa1K1%)pjPOZm&?_Q*z^fg*O_?4CRU(9Fy$S_|>J_fh9Q*rzfbw0dgL_G3;u@%mT( zlW3km$I~pfQp$Q2!t5HQK!fR#z^Np{;2Tn8nB>3;k8BlEzU;Y(8-27Xue+dj5St7fu>AYQ3Cs@CN#@yTWT2wQ*eK71&Y4_riNY zz`n}l8IGCwhAS*lpl*h)RTQ7lqUBI_$gU$%e$grzJT=MM+xe3PY9{Mc^eXcAlDw?J z86kO7@hgAIFGjB*fm2kX^%1l_sKRF=nxvsV@B1I9ZkJWM9E*okk%7$S`%`IN#}?Vz z1F32fbRhi|o=9g!ACcu)VA&T4H7`xZ2m*{5Q=!IPNc;^Di=PLQ_l^-|dnYmCTFIk_ z*yRB)B-V%Ro{1rR1+t}S@2l4Ry+$dEqtgJs7fZCS>gd>|+#G2r=Z2a4>v8Z?xey!3 z*__3k#=)RP(5nQP11~^w$3D`J?$*$uKUGXU<~pdL{X@y`6FPhxZ)Yga(1%IQav@9$ z_P`($A_{paa-{Mm_vIa4s0g@un;8DO@rs0}%)h6X4(#O(ZIIffPZ=>{hX%Lw6&s@N zOQ{BC#Kb0+12v=c=L#o_zaG4PXQjoN)~Ka?b$#hhMV?@34i)y*w44hs+I~W#$Vbk+ zWCFzkrtiOLRNOFXl3sU3tU>YE8+`T@T@a(|89`SO9aWbK-*a8onUgp5!hQAnqkgcIe?CF#3j|sQ<58RE(NO1)QYb_aCiR z$cWQTcIM++pcoRNyo5SgG8-kr(Cr7WDgM*#^obV(@*eoRlh&UTc}K#*SdWLk%iLcI z1-QR6I8gq|`Sq_fKhplV?9OUGvAigJOteq%sZD=LPb3syyfnLVk8uBhHAP!(deWzG zXR&tq^=~T|xhXPmJ1ZTx>7 zt$rw86D;D?+uJQyK9-+w#?}Zj$rE6UF`DF>uxRrkJG_#ZgR6Wq?Mh^MC%MlZX<-%b zyLvb+Y9tAd&ULynyDDy$>W;&Poo|pSbrmC?mjtA8gF8&qjWT(UU#5@~oE`}>^B}t^ z12J9Xcl^xKL4@802|-q6*V|_>ITK)l;q!nG=hFw@i>;K7oBDOOVSxZ zCoTCz0f^gjWL)_0rPT$ZnaXROyRAzLDvY|CXfq%Odx9E&ZqaJ2vjPr6bKFKxkd2oi ztX}w&)x!0!sv{!vyYhUYijmF{ael2Gj@xe?DDFl{mPU)e4Bie}LE`UgXQbaYOdPym zFaBQVhZ=+RM^G=S<%;e^sybqU0$_Qdg8x&{1o&Hyx2ZxTz_HduV6e7=69SXqH7N_w z|7WPX%ZMI^`a8TdoUBiAEz&1mEEu|4{N-si3k;eBt5<$hjNNGEBR*y)1rySkTWm59 zw=jNt7lyn)TzhS$LCDJUM8PLRHTBOxc#2ZFqU5&6Mdtx)qoD})zkO#_9#Ujg*A2q?|Hkt$6$Gy)eLOLo7_P+1ntMeEWsoV6Ibuwuz`@S;d z3alqW_})83WW#q<%N42V7p=@)`3sg(i(l8MBg7{PkOKk-x3R#UQg`j<3!f;$>|0Ye>xVaaHiGLL^y+R%GPU! z6WIjV*<(agCwQ_zOJ!W1&C0HED(=qtuRwtM5|IPkZL3)IYeRs?s?K+FItlk|;|nfy zJ4Dh%ADWcnilfesxb##B6j@D#%)RyJKUK1DSvECzc3q6Rwn*&;#t$kJ49{0o09=N?VJ0e{&fdLr`L^50rvv#2shnuiiM?67D`pE^ z4ku$tFlK4wa8=u%B{$u0uD{J}YVx*5T>c=Mb2ne0G!z zr?HR&Sc=1b5pEDC%tkH^<^ER1Q4w&&5-GLU;{0}?rO>Zf<-*-hn_T}(g>0$mw*WF% zT^~2XV{bA_4X#sXwEML12DCS|+i;Htc!BM zD&e!9q6ILn#iM$|yQvc~T1H!E_ETmZ$*2-sSsn7zh>_E=nE&V_i#zQZ7!U0uKH2&$bQa`FQ%en*XpGqw#m*!J7MNy5SKI~0maj2q#|^n%7P#7 zh=(eE*C}{>gJ0nZlof2_T&%gxS-(be9A$MyAInLp1|nPs8!d)hG7Qxz#)@N{6&xw< z@#H!r^vDxO3(y)tdNG>gI=l#Lr>?19<>5<$(XtUVBFah7?pi-p3}#DVbzD8Jiu=D9 zoQ8K7DVZt)^hQ^*1(>ucwd*RG{pW3Q6aZM$M$+`2s{wOSVvMU@-9<@Io}m}%Xp}^= zTT94A#w)&4&A)MGAc4}3Ro;a4S022wQZA^E`X>?;;Ypsh(?Ekt!;Nr#9Ipez;~Az~ z6PRa-qbC-a(!cX{L)^EOUoZbV1x*lMq8AKi@%BPg^LN0BOb_^%?N8#E5!Qg3p=DXe zw>unO0(0V20ndNCSfH!jpK**Xx}$dueZ<^@cdS8xhKfZmvUp|m%`xkdXtpc!jaU16 z{i^$q`J6>9t89REC+@g2YadC1d0*>|a%N+Dh{by4%%!L32rrna{L3a(a-e!;+;nKJ zV;evr6LYnBg^gL!%tYvMJw=a9+S7 z9ad9J7yxJZbh}E}-l2I^NCv#Rshq7qM68*03&CoW^buda$(i+t8jGw`^23JJAkz$a zil>;2o_vRY%#w#2sN-$uANWkT0)<%fKhitN^i2M$k|!P-sqDl6)j|DNltj7d@7+pS zAP+YXGCcvdMDBo;r(ckWzdsBzLEvg9U~o!)2ade&l`K2XORaog+ZHe7*nn&IF1Dz8 zcIMy@z=10uwHt8za}tGF<5CIM;XnH)KXJ{{ABy)!KC{!NtWQVTvpER8l-`~}8!IxM z1r;}70@gm(v;M2#oa|mw*AVq=x6s;sb4TJ`%F0NbbH&+V-?55?~$JgdRqhv1*k6S%EplNxQ3&+@uK;V?YG7FJ@>ZF^%&Kxdxz)@>bd- zOClWFCl?ew4JbmpuoKjXhy(ZCvjFe}d9eOc7rL&2ihr<1EJWmdf}VW5Xi7!fCUKeh z%u7I}MR@J9%1Mh|9bR48xYj>ElVDHA&D zPPG^!%ENd(e$yX>pX_1(7T{n2Ltmsi=nzJ;!}N%^Q>#P9+skvshEzn1q3cUFE2+eE zvrEp+ra#8g%A$bakdqo~sPp>@`u7(FSljvr7lv6p(?KU-)%@|Q;Csd!mLQy}=ILBkMK(Bb)4U(0Rv z8@Ex$&6cIEY}mx6qKd}O z{WtQ0ouVkuT(n>u#QbFoCVTe#m@5^$j{h!*sf4>4uF;j#)x`M0rvlgo8h2i@^|oO! z5$Magv9zUVfH~+s${KoT+)MlZ!U?UEyuP*oE>=f(a=`?VChI>^VAC-K_P^^xv7#5G zLJs0%5Ndo><44V{rug1N`tJqCaqmKD569E`xL$I%QXjun3ZiWoAiP5I2~{5jhH5z; zt}_2JDqMAzJvF88cc0H@g26+mhF^NP$ZR{W+`r!_XC576R`x?&b0lrnOb2I>wDlNd zneGkyB1UFS3)~JhwT!6?^CkjBn^q}`KWI?0Ek>uK)v|2?z7_EkYx2>_aso=U>2a5A zLmLGJ^pP7o$pV2B`f>(6Hir1h4DCh9B#E$iib>{L>siDgpN=L7&P62u7)F;quEq{61mFW>X7&#=ToYu9jciP2vtke=fMbfH;yP1M z(Mh8Nr|rLgnydS)n2^sQKqVR%^5|kaS)zC^aop@zqC-xiYDQME28M zuMIEuwALRw6eCfrmtHG+e?R+r`_l*D)!-##T%-JSo+r|)dMnsdUAnF_POM~%;0}~A zVUY8+exZR|K`XyzF-ig6GID6;pq2Kp_x-~phcN`v3C6eeg;KA4`0g5XFoIlkfc@3o z>I53CO3eTH?l3-{%Nej-JH_?jVgKEEVwA0MF$F6XZQ5s1jeq7tY` z-^68vux0?ow^YBS&?^e#Py3RW*q5)Hv1Wj_izs5yfca2BYSg%Z7g21-ysc7HvZ_)sWWZf7p(6fToZ4BFcD+p$j@(fgyXpZGQZclBQX! zJ(_&eGP|A+`i*?`tS0rpi{TkZXI1VT&_>g!Qv@@+CrdU3ZnfZQN_M!1-w8EV%-*DDK92fS}rJjr7M9unJIZPUY@T^61ee;&EMw z=+u2g_coa?(9VS6rxnlJu-KaM`Lqipth|bVHQ>Oh7ziJag{De0%Uec-53G(RSgPM! zkG(&2Jf_fuWsal)GR^N?6JhrGVudDu`{m)8C5i;LND1**GMtmrXqf z>$Sj-P40TNAeF&7-@COSW(METYW3ttkqcc({(mINdgnVnpmY2c@EV{F(L^;z6;Frz zd?Y~020rS%C0>vU^uaJfyjv^!RhZ1;EzPWq%IUHBJNmR=An@H1ch3Em8n7^S?tC9 z301gtWX;qF6)<|W1G6&!&UT&uj;L(vAQlB^I+hkEyP0 z$Cf9^df!K|PZ?@DrkjBNv-=}s_u(H|Mw_+mSbazFGTN4}-i@YaIq-#>@pItjv4Bb8 z+XnNZEO%lqwKFa-Le#h}`0-(PM1btUU`hjpUS#)DCdBNHMV@0E0sYRG>u0hGh93f{+wDT3Y0 z5~7Az50mSId@qS+j07?K&ig@k`!{9hhZQRaJ4x6k><Dz7y$Tv#oq%LaBV3a~V zG5eY|;E)?AGe%J+HRZj3zuU32Q8Y%RfYC1ggl|h_g04(7;guwrklFFYL&g0Z#?F0_1=$l-h2{S24_aPz)#%l|D(BUQHqqWPPSe z|0JHR(&p1HYtfG7L7J#IjN-_v;4>LlY~#C^QOgXA3eb;+)cZe$IcYjMBJo#=0mClS zF~G>0fefBsT@@Y2^~|6Ip27&u+_ws5n-27kAO1RU-+J2@r>1ySwckV`{dE`%s$VV9S+l_z@UF?>>ba~#YmKbes}#K0O@Ud%~p8R$m}KY zmL+PJ4cPhTN_{9Av|T*Rp;k3j(9_4pMC~AEzfsS>{#W(RbMpA^U4s(Bk{Xt_r`CDHfQr;YbQc@q~irrZdq*?sDX}&$PC|!7dBW z_JF?KBu{ek5_!T!B$xFFvyH-dg;4V5Z!U7$~x32SR(c_HosHLTot zANZcyL3=fVH%DwV>(gPSF@g)MdyPcLy>gj6f$R2*)>^@({_yA>)@mcO>R+1ldsUBR zli?EUpM#I;BWC2#LovkBqQXrPN1{{j2(M_uHjT(%t?!LY#y1)iMl{GcpK-53fAd2t z@r_efJL6qbpTvPYfe@a;HjcrU%_CplS(hW1nqM^&bv8o#g0*OiMl|A9pJc6q5ojkO zE7pmT#=f~#Wr&xv298$3Gc+}*%4khi^@cyfY|&FI)M+9~maKo!i~>#2^@qM)Coy6Q zd}3<9MSLwWhZeTgqdU)n(&P*~BNYXFzGo`CBxJ?H=^X90ayDDBQ@nhXG!CBGn+c3x z;A2~dla_!c(T?51nJg{T09YYaj~$3o56!V3As;Dlvp$xM=sA6?_jzU#FBFS6I6m1! zMwB83)#1|tnrOjK|4n{O59Pff_|tZM7;6q)_434U*PDz3QzqdJLmK)#BaWU3MTZJJ zYqu$|OOWe6K%y2*89$U&2yN#90`D_YQ;@<+9VcQA&EA>;3h=L7j!TaDl_lqYhdu5n zViC-JwEOf+2AdnA*iTL9*wt+x4FpBwlzd=$xpd~%62$Rh)m__Qeg-)OM`8Zr7Iqo; z&6R1|W*7r?O(NW!UETq-PG5`9~!oqZ%3K&TNRmfwF-na0J>3$j2(h65e|8 z=_cqCMneTvbi-f)mi}{UqQoL_7uohm1pc|hj_+GMDpEX@bQZ3WH)cTEz(zck2(h?4 z?887d_)X)Z2~c?8*S&*kSwj})pV+aFa<4~7i2qx*mdj%6_=D~Ooyu3AYUPMP?#bzs zfxlgP7!ZB*x>)r71~&jq3;{E5WUD@4X-fPRkP!+s^P)#>p*FvO0o{@-*}90dn(gZ4 z%LO@sUm*Q;35<5zl(O}4ReNxEh&j|*wE2bRyX(%o0|q&-4lQZ3z3)t5WdHZeANbz6 zO&GIPGkHzEo8rH04)2L+y`!Hb3N$OPeYgTIksCRwJblhfN(;wFVJ#eyl$8q7SMok!Uh*XhZ@S?D{gd4v!kN`<8aV|FVN_0?__cd$ESRN{2YbYFz71y$PvEW# zO=n0FXd>3V@Re57^(eu;1tpU%ZcK%L1t005RzdO$mUXI_%>T#HRffgUG(jXl5`w$C zySqbh_n^UpyBtn}ySp8h1PiW*ySrP0yB%)dzTd;|qi1J!duqC?YFvbNk!Z-;sPG7C zS#Qkd@_`s*`1vv;i@uW|%6p-dCXRTK#=a>OP1dltrXGl}Y{qnP`NY3l4{o|o4X9B@ zO+;^^JSUABs(C8LJz{|$L5y*SJ6Vwx{;lV0^04JA19{*S5WIPTH5kZfH&&iFgEP~YX znKgxI=S}H>o$ukWTch;AK|nNtuO@|O>Gy~V4VHBWu5t0@1v#gC?(9ER$G+)Fhe7vN zTVWYT117@#mp?k4K_&)qA6iJo1fa%k-wG#9b5sEFF;w)q&931I(U28;`$cVUpXM96 zk8zg~HZTB&AiP0hVr+#vLHl4Er?SY6h*)nGG@neaCTk9v^W^IyA1nnbcxdHG7ypJO z9WH`_Px3(xMcOFlgav9`fTKWOC*n!M>;mv&KnS=*chEAoJr%CiyE}0rZ_?@{msW&u#Ns<}<~iG&2eh1>X}mQ5P8KwQM)~Ehl$x{lYXFY* z(&#A}ah5Y8d|4#vz^v4a>-~{)$%A9~VZ9gvoWagV<6xWWIUHdSk6jom$2)HLj$Lk@yh2MMQjEX|&hk%RR~8Z3nNBaNFvy(!@3 ziMU(%?j%14r*%|BT2!GvY2;v=DCwLC5t3R$8x5;|UxR@49>>oE>>mcAF0l|+>uYTg z^3$tB7u~ui*Q;uG019VV&vwnTq&b~ge3Mgx&E!#W2_~Q~_P)lI$K!r5^sPEb{g(fo zC(?dSo$Mp{+wxA;zj;6h6luAypa7%`+-*LHca8kqMpVOP%c_;a0lan0?zFj-VV zthPGzpPHv|-s93S3MGidIvfyTu+>~jy8#L8JT03i*snDCbr%0#Gj1!@W?u@#jJl|p zyUoIThu^s$u|gcP9oU$S`#7g>E>Hr{iPfjh#bA;Zz+RtZ2Dg`^AR8UQV6^h@X@^^i zIeh#-!2kX4D?Nv*10F)PA3VW1&Muuk@OqT87dAgBvs9d)s|-QEukHCC2?9>}oaqeo$lQ~d=kkkc%=>U&6FFjfB7!DH7hDhbh@aEH<#uSE?z`t*y#>0ZXE zVP?Ysk$wJ7y6}*9_Fd;rmfX_^T1>G8>3^TI<=kr{>xmsH$HT57Nx#0jRmyg65}Cg~ z<(6j1{rlAPJ3oh?@W2o%IM#E~lSdB$w=N+y!ev*%d7|%(U z;G1_I+dIpOyVP&TAu$A^9|5wF^X5;|#&aPuXEVJZQd^XP`C3DpVM$mP4& z@-*u_pxf^WmC!9~+ZwXYxXiSI@YCCd0~@B%d^E83o6C1-6W6Z_--VgbAu^z}Hq_*T zSENkcPH2b5eoSiT%&GFuddHrF4W9i2?biE3^XcPGPPl$V`N2rBQg#`q*_wd%?$R2p zN2$-IrIiv@TE1i=7EOQB!+>=*v!AeMa&ldV4Q@?tpM%r&$J&#@hY?O22vi+Lfye3dlfzyzN3{RjR8cKM=(KTxFYb?%ztws zNC#3TM$kr;o_O5K419L@+51r|U*}0*I}gh9qxKA!C+nAn zq8mA>MMFeZxHA5n)YnhDRqnJiG&AYdEe~KM$is18YKKt9lg=QR&(WF{5NweQ1`rKn z{|6&45mPo86*mM8;PrqV#Nr=m@1h5FoL?(hdU)i@*N2IY&R)GNu=RAg7=MD7&kkvV za@fI*bIBHs5_k35w83wcgu=iew=SeEKZa3x*#c5E%m|qF1Jv)|Pw9~%FjW4eFKdG0 zIVtpCKmNhJC%*r1zeq5ni+)tC;&dHrOxIq9$^T`@?)_{%Hbf<3ANQ~G#iE4L^waGC z^9DJm0@HBOzWN$HvzjOIgS!YVa-DIC{l1&*Xa(Nw43K`Mx=UhcIi;P-7hD(p(;~Tv z%sNQQlMbew`SW4xf~v%E$kobDS+Nqn=lLTF%0-Jm1s&VUlc7*Z={{)rS-&{xVGmrmYF$TXo78^&Ek{CmILX;tZcd)^n%^jg#i!l5eCh()=gK%^%w(Fo=5}m_l6zv-)+;p_( z?L*s$5q30*QTL-l7S|{!YiZb~w_2_|z&v=n3wfEz&xID#?k&v`f1x8z8m-9z1EXz% z##yFXT+w9j0S{@#-)LHVr!+}+c`rDLPmKnMiLZw=_l|RU8MjwjpY4kKTHzay=#E#B zd|v232ftSx&;Ty&`S1j~Fo;6DaBCX*BN=S&4X9CN(D5%yeM;QGTC#80WSk<=wBBl? z$pCq!G@Fkb_D2*-bjYpYG}9slot>%o*U3umEJ5WJ&#z924Xy^mMa)<1!**NJ!-}Ia z-%`)D5gew`_}NWn9Um>thbJM0WaFyaBOrX^v0crQh}rK z96f2-Sc-(@u8a`^X4Rm~�f^H|nQxP0}0TWDakt2=%Y%Iku&|^*Ikpk{1QQUQ(6# z-pYuxl}`F0UY|!IzB74Ec%Twql@N%Sv#e+{U^r2p(v5&7eQR_abOo;&0}tPM$T;19 zZvPRy#0G-wYwx2>XyY{Ay@I<%hhMJQ=|Bkw{n0<{g)UH>VVmI$;aOp=gNwRIO-sys zypRuI+k0%n^-HF3!bU-bDF9vsJ_hTS7d+atrn!W6Pb{V4;!}18?(`eR0_>F_#b>Jb z|94Na-Z&y1C$Zl)G8xROH=4dw%68l@+OXY#GaQ#9#)3p{W#DuAG=3a z{kd;NN)0;JhifFh$06sGgFS;O3o`1$eEM-tSJ0s?RO~|3^s%lQI^(r~T#}-4(bE4= zB}D+%otf72<`%Dxb@EbVAtPhw+D9ufJ61y{uMA3YyE#Wxk|(4m+$T| zmK^dgD)X~xs6+}nw5WZ65_DBtGC=RTLvHSS=uZ&WD0?BCQ5*;klHdj6*)-?s z!)m*DJ@hIR>4ozu4k>cOA$6rk^?0@1Q)7sxu72fI;>{M$q$%C0+hU%%M1_(3ZypY^PW4uW`StHu;gh9^h= zPON(vqk0V?N7?lKzslD1s)y+Wlh06>JGrA=MPluv^`&D`L=JjZYjIqw0Ji>1;7qz? zDs?5;k*w@(T%qNgzxr9u!3vE#JAA7xych!_pg>(c%8kX4-SuKmIE8;*NVuvVg51dI z0P|O|W=+~DHK&Rsrauc)*Gxj?gf?7|H&=M@Y$z1aDq0O@@&a{}M`hIwaZ%mRL}k`s z$3L$DnQwj?~P(I+YR}S>`kCsDZ33TwBXl zMN2lToxsz-$Q1;a)ET*aF#ReY)z>nG3U(+|&><`)Zo1IY5u5E^{%<8i_qn7EM}BL) z(oSNE&;?jPI|N#=z8?s+plBhwrm42cx%ZZvXsyryT0^xvy13~f_V%+ z5s52$<<3e0xi|1$J;`6JVK7jdt^CLk_;Kqe1_CUl`o;0>drxc=%o4r?xbenoCa(jIZ)lNVDbc zc;q@#_HVzArd?nk#MWH=F;%Apk<|&BREomJpb}*XO57R{NDSBy8Z<=k0t|B-zKwU& zvY(%u1Rt<0O?3vf4+2S z0V;WETm?HnPEP0XHU`fbnMQ7Wk%xNnXE5|;k!_ABDJ*U)l0s-QggKy{cbxA2#ec!_l;ZVoYr^kz#MN;FQKOCVfT+1!+ZPs6lZ8`% zm|P|6Vm3pqU)7*XV7|8^ejp;;@%ex%s>f<;%7m1D;HFzwHfgiR6YWI|4Txx_;>e%A zzeAJKC*5RHnsLEjvu0kpe4jX2~* zaG7nRjjeU|%Qr?h3+1hc1b4p^h!n)kY-bWbdywlw!>TKKvz1myZ8o_weH?|Fb@L2B z(anHgPyOaKgW7uXAYVdjUi;~)!>8p{_%-(nCDM{R@>e!YNZJqI;)4$%v}E<|)dSy^ zLS1wQLS+1>iH45+ZV&|<|0ULoKM-IOrlXY%ay|UJLI+5Kfz`jMz<7h%G3yl4=pt8B zX70{M!GQx__WOt1MDLBz0m&xlm;mtg`tS@>yu{!GL5vujP^okCEV0=5K0%nyxT}+sVvWws z115`w*CPH3$9YbOi$Q<$_4JEsT)s7hr^XP8%KCbjPE`MfMtRvVvR(Hrb#vVO!x8Fx zi!iCfCeE^ouHg?{sc7#$aH&CsQ=Obt+)EF}zrMWq0ai7-dNEq6-1jb*Q0vQz!WRLq zID588Qi#8AJ`JecGGc>ybF5emevl@9W)OaRUq2$B7?iFV=v9+yR#OIiW>)zYo;wp<@I=|}bNnl(oo780teeXx;gw+-W5OEd5JAlYdO)`9 zHKIm)H%9dHLp^*e%(OU7*J$u$PQStYDq}+XFCb4pqs%9^&pkJ~xp~(fTymNhZz;v} zqk8$YNw*)S7Zcn^hvbYr=FC43qN3FMxJcI5hBrB4(Bwe4!kIud=1~{4%eI`W-n3hS z$6O8 zWoji0x9*<(0=n2jJWz^iQWx3*a4|q>wauvxJ^Z@r@(Z>xu#2!pE>$R3AVR{ z#r?1oH;7{T37zqJ|Ky+l!X9@LAGftmQd>>)2GS>F4X9|iQw-F7+BXIq-Y;R|!=uUt z_!{AT4u4I@^ATH!IgJwPIr0Yf&Sg%CzH`pMY8exTEebn51+<_osEyH^3VOVIl5xM5w>RgNV8OI!fn;xg3)_p9Nym zjVU8||Fz0s(&}*|L~`1WlbXzFhUM3v%D|y)8$<|M;b?22zZAM;=uFSnYJ&rDim)9i zd@^kE*8b`C%gY^?75V8$Ydi%~C2otQCG@rpn(=Dj(ZS&|HAU?RV|CA9W0pgj;i6AH zUtDVsJW?}>^FES^IB~lwYB2)6xpLgXv6qS;YS1I-@J$Yv1h)3lg53pe79pxthzqR< zZg}+0c9Oa-RJ@847Ec>n1i2}w%Do}sl1uT=#L@U-^>K@u-4M5Dw@o+ z)O0UpV0)=`xe#0v^J%fGE>Kw$$~~ALTmc54uC|0OtLI(N4n(~5c`76X(>2^VwY12m z@6S1qXrEHFyR0r2fOW&@>=a8J<{&d~Rex0PQDG8e^4r!PC&x$9619FkhpAnCY`CB_ zCw_mB*Um6fL^Ju>8wXp2`P<;3?YF_BqxD%pimO(^fdZU#jWJ~PK+RcdP)0A5z>!Sy ztEK6U<4fA?D5Dp516jbmG6Ifz6Y&!sH#W5${WoSPod5&CV+0`e!<_iXJW@Hvq+a@%eK3kcI+L|T&W zgch^JK*Im`NWHu_39<0zyMW z9CqW#TX+m~m2iIzklP(^>PFGtPh8FE#I%2`gberL#N}@mb4ZF9LCxsG*8a_1d*nol zY)Bo{WI-yTRb!D{0Dc>a9hwXp2Mm#FJ$jV!Uwp9*X<`fOY_`$tCFI^dmC5*{n!F@F z*%GVkE#W6B@+DL7U^~9cOxS_G8~hTj$?XJOOL3hTl~2>3H=!nib1B+i=&Q-34u|Yq zW7{(Shkg7W{;<|&@$T`uL3&&7xZKp;u)c{X08A)Rz2qy#)w2smTz2k{|K1Bt^dZZr zvJ?0UOr14di#7p`p7jN7faVK+%rIx47V5{W-To*&*`wO^g`k#?$zVVz^a$dy1{lkv zk-Q8QI~>K>LGh4O(}fkF83}edkFSJ4RM$A-E}JdJ>NlKduEe-x2L;j+{Dq(G3Sxk_ znXfki{B#If$N5-lJJ~rKhVsxdiOpSNm$`9H{VUTAfn(_2UP*ae&SQZ!K`#n5NUYZ4 zgiA;|{))|6n%oCqPb8RmY}OM5wYt4^4JO~V=Yki6>gW^`gl4z}4misuIJPRSD>isw zZ(-P^U#dZTSckltX*=uhIL%H+d|`c;44Nd;cioM%+Ashn?+<@GUl*D4r%t?L{^L?o zzk&A~*6H^9MXRZ{L=q{RTnPt8Rv(r<4~a=@lI^;(xC=GE;DF`BNq@a7N%Y@$}|13v))rEF5jYv?U~3iI)m`XdhSG> z;o5g-@HDHJoSv?Y)dAX6rko*5|1MGs|LZ?53g;b&XcwMZ!?Ru?=2>}Kh)pp@xL)## zhMCMKUoDhkL1Md_HQdAMc4Dv^yE)Qay2>nQ!=TMWU$Gey++3`_Di>_=mKh- zQoZdflQBY_em-Jb1E@_Sa(hHD|HvZW05DU~Q~h?+VJ~glw+887RZv2Mc+xYz$KRyq zF{C&UHWF-zU9}~ph$4j6DM|k731#OYt?mlP7gS(@tljo>-RKzZD(zHnsZoZhR@M}` z<3vF+=k)avY3E#RW3M#$;!P1=-yqyFH>BU6Txg-=IlVsW z2JQ$AwcVn8`*v_%SQ=qsBNJfl17swT?N6A2KbHWZ5+eA&Rxr>LYc-r_ng@8AcxEuu zLOqy}n;F|Rc%gUa)fEK8eIeCJAt<}b+#lfK-ohUJjwRl@*DaE(*_RT4^LKkU{N{=nJ<50so28i8 zv?6YMi#lbw?va-)#ho$18+71c_5X8-3O#yzn?7e!i;oG73{g9c9hhNlCOQV6>>t#N z+ZpA*;R3xQ(S859e+?KJQ*2kXPxlm%QyQdt%k>381+3xICrzO{~*rD^__6QluR2wa1Sj9DA&f zV6Pv!wA=PRoSgW%hW0xW@h5PyzVXqiX7SRFU&zkKqG9cCotm6_~M1OyciznK(_@n2*PJGR!_0jIF{`F0#EWRKXbsy`Q;vL@K^M zP7Wd!cl%};JrFc%JJllko*sc49;6s8>|1=g7&wpKT0g~=%I&Y8{_Xesyij!;#}ShN z&SQjzJoGCT6sUl$9X0`kxI6C(A6Pg%K=PUWEf ze=X&pCgMn*A#^SihPEGTO4ysQmI(QaKW^^Q0J-~a2+fWDz^5IxEv914mPMRuTKB_4 zRa%FrndkL_oy>1MtUH4HFNO{CXQpOvL!=Z1uwFz^zC;a&c|81t?r<29vr8VJ)USg{ zNBF*3Yzij=o=~wolqLu)o>K3ck&Nhw(EXi-tUW^e?4x)Gy+ZkJ?5}>Jmm<&Sa=G#p+AX|vG6=l2^!p7)Zwtr>) zLJxWhAokAY$~bY+2rOWzJ#%r(_q?24uL->$?r8=^GDdC4MyKwkmlVTr1y#gMjt)Ng zu2x7p!HWc@GZFn#KUVI?QmI4ju;|fPtmvb4>WRk3wP|LZ5L#i9f)esGzIT`Tb%>7j zYi{?A&kMt2cy$dhImwjEuK7Kh%VRLLa+1A-DFB;oxGH zZ$m>kb%gS1&ZsfwKbM&N33vkSg!TbXxjddtxWC^-xsWf|jwhYqaI-j*o6VNx0}%Gl zUq?@pw-g7)-5l7x+9NIlfr?bK*?9>?#u^ta-ds{BY27&Il_MDz!)#t)CVXPk7vq}b z|F>h;tpv0$*mpC(Cx7wXv*4w_AdY(f&mPs7kRBUiROY*}^NF)OXN}D&0KY+q#D)ZtO#Bs+n&|jGsYwoPw9Mp1Me&zizLP9(;0tUvykLd`lk%p{*uAeh zA#}`K_R{@sb6NjNT*|NS`~Cd6HRY~g@xXypWL;u6*cKcq9q&8>xH>^>?CC)f6yIs$ z0oTFO>edU)!pX%g+?9aopt3S(AoQfb)Y2^cdlDX{Lw9L%Q?3SnivP^AAVKZjdz+No zy;E;ZD@-GPAqKrSmNp%n6^~1*ZM?AK-wx)VW8RXhL-E);ztLoZ(@~nMLe-{lI#B^P zlLz)|nUI;&@zta}Mo%rjUof-Rai_F4jGo^Z;s*c-kDqWIIF1#y@tbYMX!nzNGWP*d z2lyW3lkJ-*Itq2eYVz!aIa8LDo%tLb;bAGiipemau}gbGwe=Hv?l82W$>DPPkts-TqKP0#TX{2zh90Q#)fmkus2)cJo$?%S4ydq(~%$z}tM1czlsh#*lcM zc2#1JBz@up+`Ki>dJLqHcnPn1;83a)n#qw48`*Q9U$VGTVaut8{&V#2E2Woo;`RN# zqx{6*sdhzwEf&`SrgliedX$xz-i?8qHnx}|^p8MHRp}-d9f6%*?ZIpm$yxIB3aW&g zCbAw;`hq?DN~vl-OXW*jqyRwEEeZ*XnKb(KMhC)57@A3?*&Xr?HpQ}(dZ~<)IyhZ- zauT*_pWl&val9tC1^cf*sZ*8N%kE~5AH+ZuCEo21t{?sPaC^tfJp>bh>~$d+I=w)g zJ=DrE+4>1ha94gNk@JKCD&q+hDJ6#LzZ^b-aP-!96_-DjfHNIc)R*OCY z8t{LPIB3#E+P!{)m8Y|tOJG%@t#(VYM=+Bu4}{z8!xyoMtv_cuN&I{qPIP_QEQ4}h zCNO!`_oDW@@V-rK+ze%=F13MVbqT?L+hR+C%Tdq=-G)}=QiLOqAkRMKSJ5erG8q@! z9`uxwHnCaf9Ep;ZW2>bV+P&@L zV{fsNZ^SRx+@7YxZ#7<|rs{?UFu1;vs09UP2r*{okULy+cvu7s34|K+?y#jAyA#M= z6^CsMOXL8luTzazjn|ow7lB_&OI=+X7x1?qu=%zNkxtJQYIvx_oM9D9*L#l%>s|w4nL& zxTYy45C-z`n&n)0XXcYUUX7O~YnOUcl=-3H4H+AuZAlzPQhIU&rII?n?$5O?+8QCl%9yk1v(x0M*KEDj!7;dl zQ{_ZtdR|Ylx^ZS}kFtD5F%}&XR&njar&sRd$uM*-FpK{7J2S=@QgnGvIk-b<&XZ+Z zbIjZxA@NO2bP?%Ml;FIzfa3+7_VpvZIImP-J+}{SwU1;jySr5$mA8ID(Ag&=m`{2Q ztpb@I2I*Ep_daT<>zSfv#=?ZibS+bd+)-ANWNNaL{90zOQ+Md7Xc9SG7|o2)&oa4o5VH9QoL96h zR2CXfu{0kk-*@??keBZ>@71R|T|H|5q`EauImeGOc0I&;IMvF-mvJ~54#KJ8RnIRY zjbCH}p@3RC&F8egA>X9Wb)im=!WAwvXK}LIdm7j9E{us!XOmNd6d$;}wJy#q6y(7Q z7UVQB@9mYIG_SiVEDmh&I6ccfD)i!4qJB;O`?WkDnfhqo5(&0;s&ZzEkh%YuA|;jV z^iPm>4g;y$MFh~y;e!-)E=^O&L5*tZ+W}0{RULU{x===UQ$#q=Ce!@k_r$oq@leiK zn(NIdixEA?f`dwIOvtYL6R(@XOp`t0zv;E+`8M`eP!oUWe1ikwEIJKa9C+i_WJfTc zj@)-#J)$Bl(Z>2p5mHS9o1KKCcNd43Vo)@A(WFDNe z#y(ePjmLMOz;#Y5A`3xhmSw0FjD!6)HL;UjF>@uslSdvSIygcm3W%h2S*@0l`TX)*o3g;V@3p~kom+~S8=I(dwjEuABy$Utxl!`o{P-UeZTgDhl~me!U7|q4FO-jVJ_UCJkB* zMs9rr$cs3s*TF-L4#q7{l z(Y$MFc_uO0mWkoNHHtUg9a;l|U8hgoG0jg%;M^#Ex2tRHI1I)7FsWOvH_Mz~GDLzR zGAGm*`OL|duN;rTo#6ws*G!|`W?`N?`K0*k^*xv!%~HPZ4z;p|H zeH2XU_qtld>VeO5{xpS?A^De6E5|Np`8-es(%nTj5i+hLU&zNt70_1l)Scbbpgzvc zTA)t=hd_D7{zHg2#T=72iBxT(OZ3%W{6b{CQ^)Hhq)yXzoDWhs#RUh`hRsjvS=@sN zK~hwjj6g{Sshw6}`w$kZ_At5}f z7^OW=<@DM9vP*OW8A<1{XpJ!DsjBf}ijX0&QG8!CwMh;0&vD{f86zrj8vV}B52vf1 z$K5MJ&bE?Ko2(t979O*5;7RabxI2$~YF$+Id!c}sdGhk=r_MJbW_jq|>vS59_8ZN` zcY>!#Dm4@v*m^`l7&kq*;!?vtZf~w_UlnsDbXw^N=aVBhFRSN=$Z& z#dJ#JF-3g0@oAI8O65?-p``Lse^{DMyYacl7yE=xhIa*VpKSFV(%!!f{6&UK^ei4qgn2ZtTaQ z(Tvdh3yR{1FyaNj?j!r_9E=IeRHjb=+)CNDh2!{p_z$2aAJx*oj!rlZHQLTweXT$_ZG1`_ovf})LTcm~TeJa{Gf zuY5KQ<-d=zRk|=`oG6bo5!r?VQJy-v1yvf?vl~N2GSlbd^jxdpYv^Itq=#$y}8mIdet|UKsEj!i+N`O11uR4laK9( zlpOTQpE(uhPu5A+VpP!mEVKz1*e3|op1QF$OP7Uu)jzRAeR0N(^nDnY^E=B?Gebnf z>5efb(5^m5jcM0o#P>#ZJkCe_d(?MSgYiJRU&lSV9D>jTj-od=elry&6bm%LftDwD z%6iGEvUa{2HRd`R4Q{+y5b2A_lv_776W`PRvA7!M;W}i;MA<5@-mODSf{tNc^8+80 zNd{UUp?S{pU>l2fI)(0;B!sI|7~`YQ;6;O+%#!#cpPE@Bk6`u1ZT1GN|lig5n zYb8dmo#jYmMn?OFh*zk3Nym+cfeF;h*Rt6az!n=^Zs?!_{q1gMg$!2GI3|97rH;`2 zow5|44OX?DWi%>pOMn{x=fyzfD>A{IG6Z<=s-IKVDfY(~!)ZsZD|wtdSLFgpmQKCH zQ{j}!3N!?d{kDaZjx%g+)YHe{+U#HQy2Mx)tlw-1@89-AU+quNRQUeZZJ2MSr@2m) zIxgP=j>^8Whs^k#L!{&28q5+UPgEG6sd{E6pHS!QfgLRy6Qz~}iMO1o&1(FVo0`h` z-9}^*n&=H6AJpIo?pVmIZ_-L_X4uKu3+Jmxn$Lx@4OeG@P9gO9OST)B!PfcRkJr0G z{2lo9D>uxy{w|NKH6+t^IGNW~a-s&>hF$F9_w7Nl^ft8Dga?Sl(zCVg2MxXA!=>ug zW!F5KtQHppcu6lWU%s}^V`cvy{U8*b;5Jz%p9ZlEM2I4JX0xCbs4+e1 zB{p&@+g(!v7ZkE1MaX>RiW<+T(=h_`$^3L{Bu&F=a-acnXSzHd=hmc$nLWme1${IR z-4{h%2r^sgV4BTwUzSB$_7dN34$Z)qBtHXQ8{4yDyl-0S`SQAi{XM_s^rx{~b4{w# zuW$Yc_{9GQkB|p{@Po#h0;aE{l7(whf(BDY^vr4hGQkr|yCjbZ6p&`6K1w^qt09GM z&T**KX0lpzh|M}T9 zrirIosQuWeEY$v&Hipk@Oc#aJHc}dZ2j+?cZ;_3xb_4|7b5|b#xYXX*@44m>=TRnR z2jqGZ5hkB_<-&7AYmGW5s(n*{TIrPc_rnc2+o zJv9VHwy56f=e$YJeQt^-4`QoqK?$FzU4dHHpn!xnr>`dtW4+529AqZ5U`4wKu-ncJ zky>HCO_$EGfb#M2IE)MWhFvL&T7P(%$HcD)CSdU286@(}m zIqtrV{Rza}%os)(P2M)~NvFhpwExP)bs{~)w}la}1H*?tD1%HyxK{&N!uR;Ggjpsp zFK8ZAKUaAPsRsIl?B7@H-mdn4yk2XJ_Vm$b?Yhj&yHjA3d$F%{qm_##nS!}r4?{R- z-$E&tj0PGnA3SyNe|8jh{WrGoA6`>I|V=nu!OY-SW$U9N_b>MccTI2HbhUVm>US|RSs6s*YxYHJCm1{NTPa)YyNPa zunxhWY?M}TM7n$T;B{N`B!ZK7B?k~boOh`noX==W8dNXJw?!vMvsuewLW=HW>onLf z2p)$i6R)kIO67zB%Tx04dBff~>rtsL&qLyx6R=p{^1cQ%B>c?n$-6Dq5(@W94XG9V zg|p{g{NEAhMi_o;oP*ViP6P0VkR66Hp!v!@nWI2Jp&cWva+s>O!v zg?x29t)RPQF2?=!BLM8l>2*K7j$*6fSZn1%UtsDHb!^;A*btXs?%|0$)Q{02kQjr| zEHNr`6~t;6p+S5YCwXtA5ZGkJCxQ0#-)6~3ce=ho?hrt6!qzspYChxsp`XJMC}c*#<>Y2WWvE+h(^ z*OR7QqsGc3t=*BFUe%xCr_%|?uf%%zoZ;m%(ZaH=#seHA3U^=a{I1KuTl44ru1TL0 z9^w7|vp$(ywq+<)&AkgYW(4vX;kN8rCdq}D7lVz=FO8Iynf8O� zsR@0o6J-CSuvqb8m1Ec??VHNeqTr3BQsKq!8vW#8P`&CR^f56oUuljBRQ~z_)TPi# zt!eU&g7@$I`KeO8a7Kfpja>T7Yn%q{wnJK!^}whJ&uawSc(V(Px6L@54VB+6TT&su z9A2lExIFp$j1R>BuDi0XbJj6lD~#T&;mUn?8hDgp6AI)?#KAiDuSR%K=_$U#35`o+ z4p7-hru_c(N8cT}cP4zm>Hv$o>2hKzIO)IRk(bOWd#H70%!_5*(#~Q*e4W0|Ett3U z(Dh6qCn5b8hYgEgnUc7RaY1izX4g6QD|LP#o}~hWxR`Io1u<0_rtZ4@+bN(kH8e#I zY`bB+fbpiGban~~@50%l{}cNbLoeE4q&&tKUCU=^GRV5R!GZW=kKcGk&U5QAWk@G{ zCkS$}U;5D>@#UmL@ya|6b1UDs_Z^MXsc^myZ0uBVWxF zEg|UR8!+7OR$y|21G;Qpng42tG7XW6;;el$#?AjpQ4!NKRe5bBPQMjW`T4SPwL;vI z90vabGhzUI9K6><_8%vL)kf}|QOzw}XUrv(3P1-ea{q^oCJ3rGt9JmC5!Vn(ul@Yn zW7u=kw|I2e82OrnsImJriO2qCrl3M(e_u$aDSTEr(&Lhl-a-0hAJJGL?S#GTDLC16 z_5yAHvy-ONmL9>87_C|8F@ue6nZkoW2bU=hIJM`cq&dYN!^2k)!&?^7X?lj=K2^w) zrxSdjNtdL!(Y{KSJ&Qun0P zREAXTDYEXNvr)tnw!^PkXs%=4Bck^Al0(yk;r%n+?vT`Vx4@98NDp4ihH|^h zRQ`igtAAt>9xn55EFnU(l8=EL|D3kUM|#Q)_niKMVB_uw>=kb{u2u=?QZ{Jm_Z;3T z%?2w}znw5-ti6@|>J(I&@TYdS+MwdD^?$Q`P@Nhk+qs~Obwmrf589_dF(izS;11Y% z8&kX&@{$OsLe)R^Op8)mI%$`E0lSen36eiOFy_{YTwK)i?dl)EUXoe0F#k#3&7C;T-T(?M@dkv zdh<06VMarJey=ap50&?=M_-1={QE=2idhdu<_@xA@8c(BKx|`WSe+56Rqr-ngKybr zwrZx>a4Eb!KO*DK4;y)y3I>|%Fm)##{@yeZ=T9KpEOwAL!7+s;wXnJh-UM#-GS7X3 zQR+1aO?nu!wjQ!C6itdmGdG*yXhMy*E{9O$UYQH66#ic z=6Ej7a!z^~vDRoF$RA%BiIxoP!lDo9w%2}pb%XhS&!S-`7yNnqITVh6VkzOGWZ%t@ z^{?hefnnbV=KzFbVLWyO@6em^v1$RLq4Ffrndu-m&4G;|!_u_;QYs^a{U-$BIuvu7^Ls1b8uP!6fPm)h6Oq0us; zWM71ML_5}?qIenFtFdRsb@Er37c41Sh0U+Tzt$3k#KlI7c<>Bo(tQcASyri^L&Qus z3A(f__8jnHgTL!AdNJS5j#A&>I_SP$&1T27zjN50RP?XIY~e>%0!Oy7_>)G7iRs66 zj>~TUFq&83^ua2aB>Vd=0|q7tMqXM%s~P`2XPIgCeIDUe6P>cpnf0^sI5B@uh6kML zxHT63ur(d~A&md2TJC{E^xJa?OAAKm7nl6@a7IpyS%=N9Fvb(=RsLH0s|Yn;;|eam zM&_R!csj`!@J!)l^bcA;rfpmIF-`>P1l4cM26$F%T zn5z}l;N(k&0=kXTl*(A_zq;-pu5$gw1?)-m`e=K!{D^Y33 zamD9PC$E|teaBJQ#~S6Qbg>UqGR=PtRqjrDP2=l!_+4mOGgVqMt~oyUXIZtQhh2Dx zBvl{NJo7%|8grvkZ((-|;!Lug?6a(N|d*BZF8fdY@AYFnRH?vIkP=7TG?blH8AbfkP>!I;$?yflh_y)1***b^?>F+#M^<6Nxdd}iZ{u>5) zI=xHyC`-+(_X(>#t84S~NG?8<>m?YfH>$@itnLd#G|xWWK#)W}Z%$NIzI3<8R^b13 zJ^o~{BQ&c$DcZ=-agE2SQ;@^Zg9<7qk)>nSgCZN_nr6av=lfiYZWIG{1qE^{n&XK)xB;OBMr*+}XpOo9Q~33#aj&43U(Q1i&gg+z%r?$p zA)(F#BHKh~cz(FUXg6W41F{xf9)q0>cozux@$ z#`h?l>~Qp&$63*P;WNGq%U5V)1Pd)yMlS_d@DhjrMX2q7V8WjcfqWF-|OlvtgrAl~a*>Bh`@YS4vh5>=|(^ zZV%biXO2rR`H6+$3vWh~SwOuxcN^HHFFWJgzpMWA`7cqkcztU>EE?4FhKBdL#5qwt;KmfAfd zbRFvg8DJpj1yQQ>gmW%PfB~9ooqf3oFTK5P;uMs)`Cj(R*)5>HE~F*4J+^d~IOO1_ zJYB@RP{>-=EXZtG!A0~oNqc~=y^W|Fz9w40l8GUqUzK?`to`D$#~||bl02|;K!^&F z?EJBefyy~s+P!+c{r5vd$}U@E0}X##u$ur;pBk^Q=2Ug)ySBij8i#Y&4in`Vh)5}3 zu3LXK>g_2qaFE+g z+N+(nQ+<7&Ov7!mgKj+a9DOZSii&cZRvMS5FYh67baYscB)&av)1B8JX1^ycq;#5^ zt0eGvw7E5BbIQ3L>P{J-n%1fFtCR)Rk^KxdHVM%wjqS7~UX;1FMIo4JT%x=)uK2-;AXB54WBPM#JPg zkvx%5^iTm^%J;ZtXaQjzX{nC^jB>i94)|VJ(U`Si=>yIZk+Wsq8v^wBcw3FHn5~-G z5tBI5ws`YS(Lk(4JSQjk4K^v+o0NA8oCLFKPB`ABJU1dG>=;42Q%Wu#$R^P05WS4X zFaAf&m>9MGhJ8D)t0*^`yPDD}Z953-5iJ^xDC|gmi8!#2ej8I0=P7!z7Fl0W-0<l*8TeE=zQf_YJMQQjG3_6D0)YM37W&%?E(ZGh$<$Oh9uo9Lts@g= z>QE{8ZP3*zscUWnX~@UoJ_A9AIrgBv#IGLBQAA)D-$j(y}F<0iNNZ;}BjEmTPE2 z{G4y0C@<&7or&_3&AKJr%&Jm(A+Z~^+u)I~<^dwbsK&qmz_f6iil0hLqv-irGE=Dm z**Q-!BD^YecEHDxT2zpcJ*zzZLyXw|@A6#2T?(1t^F%vr_^~7?^Gbd`fl|aXU;;y0 zS5i}bRD!%(&dPt~L`m7$h#FU3xYqzrHyH`EoZ-=>>jTkZVqOCngr;oR&=m`1ZiO$&^mJCzJ$aAL1f4 z>70K$v3FqPXZJo+Z|nu9?QEXMGsvyt7Zr2=`gHgw$Ei}>@O3pW_hm~Idh;1SdRVC8 zqdviGCfyn4j2gTS2~9zqGLori@tTmsNwS{sWit9_P;*nj{Z`jY-(6Q)@iaLiS}}c0 zYj^cfyOk*@EeoxxW0mR-*{VQ8Pi9GFI<%NyuRK>qdue#AST%HbK zEXFwI)}J|D4Yo1Ud?l0SYtV4x7&T~2_=?vk#EYlbJVWo){^^n+)ifZcp9VnbrRYdy zCY&w0J|BG>?)@yz0xhgFKj%D-=HZ9dza@8==C5fiHWcpU3Sd-jI8_0ymSt}0a((x* zr3`3upw~ideGL+z3a^+ZiP%EgGZF(otktmZDjxchj!b6ajYa9_qhqZ1+ih+L&)xJ) zQ#cBV(6B^$+OV~J;$h?7>Z{1eY&HiWvN{_2H!18y4Ofy^@`;>kBW9Ym5 za*5-eK#loAcP{BITA;8rqVHLcleE@Nnc#MmRx>uDtc|X!4)vQHg}1c(lf3$m-2b?$l>B2>h|@todBh``^$GT@5iXDy=Ym!FTL$x%mTVXy&0x?nQiRMMZ|pZ-+bv z4$N(0)#K6gs%r1p+iHg@AC8paO74q0q-1-x$##o0+?P)s9O&ud^#=nsLd9Z1e6UVM zRl9w9l9vKZr*(jl@6D|yBXi3#zG?D4ph|Q0Wl5>gC}vg3y*hfRj-=1kMhs?7DYSPW z{%bN&jyP0!#dDfF&^1f|@!{pYXZbH1wNj%NOFpaSwp~h_*eQG#R`=RWRfsePu)eTU z=uJ~AK>~A2tjYRfD=si<_N*XzmaE0F7$31kRBwAk&gnkkb~tMvcIqlEejyyo!WM-6%YkjP&am)^61OWL7ey1Uvmr&{ zKZe<~-vm~_oOu#E$;`r*`~jg3plh=~9~I)vS=7!Y>>?AeU$`1xPTUHC8etgZKX9^8 zhWHDbg)$|kf63Miakkr;iodx!naMm^m{rJ-UYvknr@(!23YMi3+M`Fv(u}nl&=7cC zt|Ks&AHV7;v*DaBZ}UiH-$$$(QJ;JmWXHB@}ChFNWhl$!D`1WFPhjbjeJ!*_GVO z_~IF+H7%8q7ojE&X(u@oq2P@UwYsy?zrLb-~$lBLcg=3vaL~c!~?k#H+Vz0Ye2fp(F1{ zm(yd8qO5t|w4)Z=Z4qUHZob@X(A*KFM%&2B!-i1R9&WqwuHN(G^u-ZvM!sv^W6I>E zjmXH;w1x%z-W&Uzd#ZQ|&}mFc39q=`x%dT{l1u2pgZN9u%T3INl{o_*D7o(C6bH2T zNXBZj_qepW`xoZu049zPRXB<1RFIH3to~mKC zgy}#FODjbbBCnaiG~Wqy${AO*3OaqFami{&txMnxT3f{7D*pbG*+bXncFXvC@!Mv5 zC&;yM_|dmHa>*yHHWoraUbM6wT(N=#Eq05r!(LlV)_-*S)})knlUuns z2yry8i1~EF-f;4K`6#W9XyXgrAgm3wXsL#fq*Zb+CW>SDKHnERzRBw1Uqc2D=7dfK z)~Lrpe47b?l^7m3oq{$M@NS$WjlmJi|wf zW6-j?ixf)?Qh`p%Ut}q>c0ep$f@(gkK7~wr7kgh#C%tKjlhUbl zToFjAu{#IlO;c9==ia=;{FoGOyZ-Cn>>)C5o#5ZFAiWU;zkTQYOHbwcMfc(c*0CkV z(o?DmrN&hK<_q1+ofUrmfazvR6SH%D%woMuUS=pZ5PipjuJ6XTJ-_2W-j$#}N8I)9 z%7lhUTDZ3*>Mte#;%=(>NJ`tp$qprm!m=sV1Q1Et;k_g}$v&6^7FAi4@NnR6O)e84 zguI}u>yq?R{o2qH^LMr8%T}jz|A3r^g-%<&e)sbmfuMhnEPb7^JzySiMvC-Erz@bU z_lmWzW*OJC3APHV0=6Rre6clj#x?-Skw}04V z9`3U@sqSgieSAYA9MFWj=2lHHepPbJc=pd;uhy#GBGvSgiWBataYqi)8N&v^n?}fZ zWyCx^1f+)S86|^{!o`d~Vv@JjqAP?%Pw)hFFc)nQbbBYteC^P98*&0IY}i^?QK=*4 z{h-c3l=h&iDrq#q3%%Dp@3Wr*Pg22WTub{;M$2auynKJFjBw+r_X z{eP!>9(p+dyB?Ys9cPZfb`zsw4N6Lu%8NT0! zaJCg;K4z#CAb!FP#RbER8}or*^9=XN#3EzSG8LY<^DNv^Vq&>1tn z0QOP=!HB?H4GYhXsdqu%<4}BAa`Zt;C8gQxA@3IfLnYmCpDW|Re@nKolO1fXlj(1t z!aSP~EMo;IrQZMK!T!)#Quq+t9tP4z-W#imXYnvXP4!L)5fMFjrk{X>fumjo0=bs~ z-X|ki$A@Nv|BU(rHnLpx1R5x=C3)2}rb*oVdcJSC*5UoPvfZ*A>I{M7!8_eEvStml zYjtZLv09XjGNQE##b+4{sVA9U{5}NyklRE5sWcP+s}FDGPN zGJFInT|P8ZHI1`D*CVm4W5Z!L&-VBM+2fib6D0sXj%zba275Uc*WqTJ-cg&P)~(Ck zytmGiZjSX|bu>*K;)_bP6{VlG10r6(yH#zL=xx%>is6EsMPY~ z8nqWm2B^@m)MlV6DvPWgPK!^(kJ~h)kWw_hvIu}aqm`>fdCMb3%q|Bj-u!ro3@Q5?n7z_>uD#1G`GFWhkRc4Yub{ zQ?})o@R0&o=dzilA=!r~6-fxU-!8OWO^Yy8ZhYMH92m6|9-%*)IQ^#&_6t63t4z|b8R`}j=)MwSi;2qb_5;H+!DP?5^m`DIdJw$VdIJOw*( z0)Q?Tc#01i?l?=8`}$mPIPR72u0mf^d>81{SEFDy{(uULRc+WLUBOm8FJ}(xr0Q?#ORXAR4BPbuYD>lp25804spvNDrLASC8}I zHJAXb36w$p#{w{}gOTrYlAs%bOd<%bAjNgvgEFz@*Lib>C06)ps1l_m&h%poECWWT!K_ ze+Mf;eIxmk%TO=&_T!35GmW`4t_MA^U~-tD_K~}mnYp0T0!@WWoX8WKB?FrZXA@z< z^2tspyM9;mZ!&xCy*xW4!p5ulQu3~>Hgr^Wz0n0JmH6KfwQ*_GA8&N+=(m6&MxH!c zEgGeJ$9P;c(HKtr@wf_yb+v-Y!3mkYZ3D(k{$P7M=k=oqYj!nyJaw&Qv^XU<*Z_;(RD&$VRfz+tK0<)!tyKwq@+!EP${CtkD2H`e( zQA1IMkmQX6zL!vi5oagW+AIXfLZfjIJPjOm?Fkhb*u^5h_K_W>y2_gIv{Ky5Nf@*_ zz2$hlEKs?H&zJ68GV#`F%h*E5ZbGp0NJbg?L-nK3lz5;#6VlV_ik5C($NK69TQvfX z7hhUoq0!KLz<9#YRty5ugA*ua-Z43X9ncYF8+I-uC*zsQomR#j)z>5130Bju=IDzq z1P&IaG#EkvPi>qI2au9GZX5$}2D0y1C&!P4FxeHYZ|2qZYpkR<(Y#Ub{Ndx1U*oL! zw^_W2h6h>}Rc;v@rF1GNAaeRN+2+2Au)Hig%upbT4Jbu_ij9F{^b z;suA5^q!f{(n??_N}z=EDGW9ZVx*~b#&Jkium?@rF|tu?r17oH6&alFs+%ZhuosRl zvqw<1vAz+2gh%IDhXuGf(J?9-&bmY539@x^`LNKTTy<&C5jNU zy~6uPnpfK+``_HGJRZmSd5kHt2e~VDH5vUkJIj2zq!BHE(mtNAjz-ORU}`wNd0~TG z+BV9>=92qei&u!w`PiP`?%ZTo8msoxq>Wrnqen{ZXud1vdgh4~=AyS+P?Wix*{76wD22CwOD2`37tO_v)WC!;{~o=&Km7ZBd_cPNgvuJY zKalXS64FmG`o)WsvmR^MF@i$U?5`S3nrgKV+1;KnuK#7e-p%sY zyEeu^Au(vF!%#StlSDT9$aZXrujlA*B5W-6{5aQDxE+K18@ROCa6!ZK>Y7wF8U7?5 z-Bm7K#rY)o0B>uZWc2HhRU3-Zs_;r*|BMPCw)J(1F>Ab(LjP-9-NR)|G>Ge8BWPq{-*MxMj(h^3ZTcK1Jkb zWr#EX1v|>&?ubcq#Dag;;CIcB-EK*Ht$#6{^=15cs+`8txcl~MJur~uH?Y-~bUPbx zS-UK*$?XnN@%J2QwRj_)X}`GmdhZsUg$jhfbW?GvnQ>@3&Zs-MWSFpZMix6K!U+hr zPI>~`b~dB5)fb`#b%m+Yff`T>iZA>1IhCEdTAsnQP1E+`;l7fB{XUy@2ldy;?bz6@ zogpG`o?!bTZQ-}KK1GSlvWh&a4Py$^UB+iR(zP6osMUw-dL7o*X@7+D_dTjUwHMU0 zI*Q&Mx?8O{3H#T^zlIG*80;?64sed|U0eG$KC!x1u>rT1H%jh3DX4nk*Jt8u6^wBF zauyI_OvJ%|*f08=2tt#+8pkej>;1Zm3`7Rkp=0P&W zQ>(OAs`C5!@{}&WTgD+Frc^TB6~hkJ5jI7)gLRB!$K;Hek>ZANk9W{-pG5#ngMV}O zYB`GN)A715xJA6}nKN#DHOv>Hdbvc$@PzQr@>Xh^ zEcofSO8z5+OoV-7vdqjOYh#65X1Calmc?XN3xhLWe03tPh@hv!XvVNElD?27ar0R_ z5O&>~RGg0IExX0ay9?w$zrWo-!Dj=(TMpCV?(!-}l*)+B7ag3?OS=+zsXv@QZYh`- zj4+j*E0dsft3~=4#$>@%L3Szd<+F#^D?jS&9{GrR%UstyNm_|4Cq#JJ#aa#r_}0cp z9~pU}b*7yxW|tZe+7K18K32K7Tr2xq{4}CZL5PuT5msE22C|HI6Ne1!)8c_v{Ny1G z6Im$Hq}AwWHgskC98wrN6}cDw#9FZdI3b;HT2`X09qRPH9o{=Y8wdi5Di5}L2ZGir zoj(e%f90>^;vE%l5*>IIjIHw0FR4ifR6dF<^apl?5D56|qIKyM{iK8b1?_0< zxx$@mI;+1i&$O+Rj$@cq`1<}23H`b3dqQu8vCHU{dr=`=d#vk`PTM?zJY+CRD1{7c z4JLFn^Q!fUTZud|<%O4^_;%RbH;K7Gt>ys1kONL-;Ue8GcrS0LmMvy?jN)b6WSA(r zjFk|3zm%oa==kD`_`FWE2hS=fA?~@T9!LM=M&$!oj>m>sWdau^{B0N`;`c_8IBW9x zo6ipPCZRx4Hf1yu^VW20VtTec_?8s_9E4Ij9;@y_k6!t+txKc;P(V&FxAou*v(0Qf z1Ju_2YAZ+$DZYA%*knA?O5@m%3q0b|(fBU?AbL>jz-bj0`usAhzxigY_D{dwR21G_4!Oq}v@doig z5;G)?Z{eo{2~q(p5d!wDK36?)O!Xp4!60}459fMqRY!lJlKRC*NYl0YCSSF@oS#%D zLZ+!Q&?;#)Qwgh`+e{J1d!ApP{y<+nDc5h(nqKbdmW*U!sPAh$nI1IlqALFA_#`ua zE13Z+ZnKH)p_zEfF&?Dey5B9RB|?X`Z#h2WoB5 z{jz(~x~h-8(q771tM3!7|F;XD>JvuR8FrYX9BPhaaLt;>)ba}Q*Bxd|yZ_{mMmD=B z&-sk05?4@3PcIaisNTtzGEyu`vO%fILoZiYrp2iPM(le_GTa4zcHDB-N$~!mGs3ZG zl|@{{&v?_Z-@EhT-Bt*x?5|WXde_)mx!w2_=Tk?i{iu`NOfw_J`_l4zMPC1Ndl}fY zTmHvu%h_~MiR2a^sN4wFY+3u?P5>FJ^OHOjCFaKZ8SCB*GKT2V%czS4 zef*WKA=H}N(&^_;tlv}t&pC4agh_ub4=4BJwx|^YzzD2NUu6$zB#LZ*3`GV0tE2jB zcz@&-u5G`6odGz^T}jQ=ZwLp+ZcaK4UanQ%}XKcD{*r0*(L=(`A#t zH`6=^2t0l-+L6a`8HkVpd}C;i@tG&Uu?!2hv7P$c8jVWas5X^6?1_~k3n(o|NU#WC z8*xD|sY(Z;5|WgY9Q)LKNxL--_B`b<&rPaiGO=Z8&x7f%6A0!ex2A$-$G#06oB8j5 zj~*zCJkE;NP0dMPB>*Nt79qtUPHOyQ>QCT;(alGF_P+qXD}}o->PPkBlWApTcSWHV zWxL}>&6)n3nGEY@Bb`X)Jd?cf3Nb%!4v#@3E_# zzh5s5eLeja%&Iccrjg;eD|c%z#mIK8TefycJg`x|YDyS$^NQ4&G+r&u7~oPpPwC9o z=Xe-U>w3!*ZnJ{(GJ}~u6JFbRkY0ky`@?U)I|AWy{J@X4(V9v~JDK=w{eO>8DLf9ydEtr&tfIVs1a# zo$_--nRH*CrnxPOA9CGEGkiC`^uWa;Xe~vqx2ue>&U%7pG_1bAiKOYCNu;>e4DM;s ze{Uq6Z6CoaZIDb0-AkS-+Te}ZvI5q)?#mHe?5WA>P-F=C&?qE=9X-fp*y^C zu49*p zWk9nwMh%ir%5R^TyYioE1C2oAmM~$QOOMC3iJ*Xe-EC_pc!d%Q5um>YBgnnnwtL%S zAY~B5nxa4E=x3L}_wT-K)jzMPv6sTP(f2on)eh@unP*lU+{F2@nSKu-o~ktcB`$v8 z^Res9a?T^EVFwUpwtPca^Dd9=6LS(23?@p#vD_$++(nAosdbp{7~zz?pIlm6{m>xu z=32S#jB0)GTQYp91aA#}#lGU;a*bAS2Aln%C(PQA&A&i-Ee+A~iM$Wt!F7<^KWzalf?6 zW~8jCo-}-#Y)pbK`6yySq2}4b;k4@G!-1B>uL#Im$*GY8?vuxFojaQwTqON{XaBy5 z33uvu)tc53b>aj|_)q3pS8un|IefK^kCaAN-yV+!)iFWi)F6K$Gs_mjk1j{7{9f}N zZaN$k&sa(4A2}xpds;4BD7cOgQ?d7iZ^~)K)Qr(i91Jh>ZgjksZaRjWXAbU@6aoyT z$LtsZPt#P9_ev+-Kc$OUw4k2lk;DOR+&d#98E#|8{6A~gcf8*q3-Sp1e05Sf6&ZbB z4DTi1JzywP2herYL!}E^wdfv2>DA?c2(=>l5Di+biKoCZ+vi8aLfc_^}PDVh|AFU zkwrqkG5_pspVH0&B8d0Ln0d`gn5nT)$}esA zpLze3bB-FdB@t?NyPlU#0N}OFIC&zDUbjk)(~@>UvUUMs)RmeWg_V113?lBFkOBD> zmwu8d>Ba-8I@k)@8c{$ylH8l*%*46Hcu4?xFHm9MTV`1%JAzx-zJ2qE#_ab8bB*z&o6E_I)!V@>?Utcwx!2kN57LtTG2l6f@#g|OV-T=jTvo*fK2ef;p_`zc@JQtUdBzVFlEM-dW) zfPSCi1JT;VbBQ_Oa2BR?o9bkQywfvyQw$OG=PfU0cw)=v#-WdTrr%!VNIDu5s1?k2 zIM4@>wUf>lFu9B#bE+n7z5vqh*r`sGnq>BhKTtmINh~TiZ};Kp^bq*@(*1kCukIJ8 zO@flt%+50IeMz#fj%FKO9VSdWroCC=mE4%k3F%UIR$_fv(jLQu%%IEt_`f(5U7N>g z)#N?^ktjW=<3^P_gH}mk{wB-XZU%g3|DyTJRo{~P{#(Da4$QTSk3EJ0P|*jaa9=r- z*__VV!CL>Z&_Ho7R*MR@j*E4|*h$9M0$!-~!%TW;DNH&0vnCIE8D-DsbX*l~UVT;p z-MZ#zKyyJq3DJGkG@LCMcmE3Y;Tvq6Q6KDELv+y#S;_cgg?VB(@HC(sL4IWxoUgao zLj58wBD#)*_Tv2F;Fi~W-lxT+)tqx9sh77fT)>M=b-C&@0dZo0XSw$B=Z&6AVQmk0 z^Pbdh>^gFlwM~ZvsqQ#cx#R}UKgluicvah;U#%&>p=nZn1f}g}s?$IixzNc!{N)*A zm9Yyz*RL_((V%f1+je5GqWO42NJ;?*iWdVGh3{M}PQu{kS+RMe>gyGD$g-Cr-mvAo z0CwRM(43qiho4ADe~-L5y}RP|!$>-~{Xn;Jz4ptG9h5NB3Gefffhh|0jj7Rsb}*|3 zLn4!RqL_p@p>H44GS)Zi;69~d^QmRF_J@LPz@}suO=Mrk71LqHka7mz^0txqY1ZMUW71 z<<%@TG<6*`gR$7uF1W7ixlI`NEPY)bw^uKIga$zXi2FprpY>sD2|P5#gj1Nv{pp1mqcYvQXX?W6#b%L8u78jyysp5H{|;E|7l}OAn9l{hbsRt3 zWxjWT4|Q^+Sh*Gq+qknQ;n?LjnTIm$%T8u*>nr;NA5Cr}^WyO`{$Y%QN_ay1r8(z= z=gtpqmoQ({sh-IGez~&lB-1ZM<*f#3zRi$Bd^m3J;CS6n@t9(8zVlPGwMj4i_g8PX z*kJADRewEwlGT;KrQ)s{YWR}Q7L^;{Gs-Dh#{(QmbkopIb)CvZDUb3%wB^jlBN)W2 z7|4pg!fvzt7*1c0l>=MtoaN-u>cc1>@N1TK`Trww{~&VVRaXUC(pb)OzXZDmg0gl; z=0iZQBRF=ptGoWaVCyZ6II+UP$7iPgZxgmJ(xRe(PYPYAerpQ1g84>OJ`N$jz}9;V zGNRD}GDzg|5=-&fn|2?Qpzf2`E*05W`bEw<Y%m{NDewOI zS3Fxw8J#UivIq97Vt8};*ey{+aW%os9?<`TGYtDbm_Zx2zib^|1LU*-N3E!|7FsIu z@5Se=qD4if*BQHw|8RtD1wJ%?>f_tUdSznqB^-FBUJb&&T{OiOG3I==EmWc8> zAs)<3gqJ_*ZP|N!Kp~a)S?^*oR{+6{*L-KqOBxlT_{@w@+^-Bd=+Ceigm<;@PB5g< z@`UTfwj&#ryoGNtb*av9mC=8NvJ5DazHJpXpn8G+DRj$^>xf7cQ@W~TCx65$Zujqa zT&@Zxi$<3%kMdWqzaCd{_rrUgMEMcT7bF*gp6}QyQF_5A#`>Crx2?_944TIg3ZiCIX@g%^dG34~I z3dHciw3L4unAs925k zg`rck)Sa&DFQq1Mt&HrB>g54tyx9x@nh5iM-;aUqL6KTtzGpm)>gw*KOP8YB3f)3; zN1OGgF~r?X*p&NE`w@ZJN)V-JnYdSGY_{DR}}Oa>7@xu> z2eh`Io{@xZ$&T}Ei_PM0zaiUXzdaSW>sRa|-oR);I|wBou(XhCA`jgnLwvZ<*b-yJ zAFmC4^XgpcdE*@lOEmM)%|c8t!j2lF8@*3n5in>kR{lG%)R?eaf%!sViiO#C(zdRex09YkXt-OKLiYKf)7*j8b7%;+%d=A2!m=2Q`pF zkPJwz=I$=Z>u!BN`djLiAp*b!=H}jvcI`z%M2{wkjG`a@gGLBqKk7Z>Hm(8s83x5a z;aA(ay4Xg<(~p{Xh%KKq-n$c6`6L2lL*AcvwGj=NZF%jTVh99lB(Bf6+J(8A zdXi4M6E`0Cit(UT*Xx}Jqd}e+Dn!Wg>ttj|tKYT^9{?6gUTm()pGzDVYqp2Wns;iU zvanhx{nul!D13E}ZEW>?wTGfXbvM-9B_vS(hd}hiH`+(D=jsLDzqZCChq65Ek;h(X zzxgad`<+Tklo6`XiKU_O4B2>g3$*+M$@CCzr3 zdnJvfugpBg-avcK#p3B)NvB9PQjETOMTm!Mbt%lRt;0C~@)$kN+5BAi>?2LOj73>6 zKXGQ3bg7p^5LMYO)8T)uw%v^jN8o>C16CwonssqCt-R82~(N_Ty z={1F|slty*!$b2f`nPX?!Ime}YW*qlUiwa5|LeEW^pCDe11YKzaHV>Y$_J;Lx%B<=Um+&=H*WTD8cThn4@x|mmK=y19~?iwj}T|lPmyWg!yH$ zw~wEAipl>s;no8SJ~qsR{gnSTe}CQ(1^mB`98l69#);#kPXlJ(Lo7yjB7;kS=rg6H@dy!A1-F)Z00Mq zY?kWYvPw%Ah`MhUQ1F>#lxyWLrOn=vo-K#&w*Mf$j>qAX9o~8d`q}b~e)ZHLPpPw{ z(^Zb+Ic`2EN3Md)T#2q_De=-QMTaB2{^K5NdyiD=TyRo!%%&q>Jfvh?Ykhg20{+FB z0H(`WV+XWEfG-(AEk;StS@bn@SDevbEc8=WS`h{|e#*dr{Q0Cne~RMAr>QU9H%UA* z1m5+fh}h4hjKou?pM2{{Z?T;`G{T#Hc=!=&z?~^A5R}&W)Gs`(0$;mjYyNet8!2;J z-b=s4ZiPzZ;s8*%R=fY*r8@N9UVmdOOf1-az6DiC3a#pfe~^9oX;%-YP6?^FFkKL_ zs02ElN~bN)=|s85h8gkuyN2rQXXKl8eMsHjwrH`NraMO=Szwjthl@Ndo(I}%iMbiC#-R1`ni5+>Y{Rm@cAf0oj*eK}KCOC$>`YyAK(rBCqxiiG zq?CG}3SQ1+M52`VEI?3Q8uz5F1~};s#<4XfckMQSo2_hyV@P)|f6gmu?2RVU+W;T7 z90<1InHg<_q-0f=1|1{L^?-SE{aQSyQB6Y6n4f(y+h@>bx%CUUnv_@JA9BX88Vm`| zJ^g@cV(nK@ITn!u6naAdTakpT@X>`~dHVJhn+hBhCxx*+`LQJSH z`^?tu+aCwL^NqV(2!f&NN85`RCJL9`0%!86@&>cFTloKpO#!^4e^omj6iy%^L>V<# zo|v<8hx?XxU(mgBUHh|F??Z3@{NeT}{ZYVXOI%)3x}wgYUerBbmCFb{AW!laEp%K^ z_FYUq9uoij);OBwc5XhB0mtRq6F5jVXOY0&F7z%*T+i0`Nc52F{=uRAoSfDJekz!; zu-#@vjt~nT0l~bh_nLl}?kMP-sJ(0(e&jyQ7QBb&dJUU^%fvVd~(J59A$ zOO!X>U%$B+UifJbHAVswe?8ulG>z^~9%4FzCSvAcs8{u8#u~8@)H7f}jcj4%xVX*1 zzkNWkDE&yIX8p8nJCPBqq@=XcyUoTY>hpqfYbsY{Qg8M?tj&%BZmj@oijn&lC0yag z03i3eV@%62i`bt1dKlZ&zj`I>RZss@ScdqgpwP=|hKb&oW>7rLR~KcO_jJm&c~RO7 z2$j*bHxK~D`hCPp|5HyZ*ubZLzyB}ZE&Io9WIg~6>EyUM-BPI~=Mr_%)YThd7zGJ0VH^b)L%3Q_pGC}f#~2Tn#hwE+37 z_-5r&P#eIN$Vg%39ZjIl`~J%G(kS+JWHZv*Y&=1_hPJVK1$n&MwCb-0h@i$|B`aXE z#~0LIFXW*Tsi7$?&s+M+?(Bf5QTp$0A0M~*#gw$%EYzCU8m)_*nnOW8HCzi#J-xM;^waMUgZTiRu9inyno+X&3(w^c{ zLs#ploV4wTz!oS1RKiArxn?Wa5E_`$WYCmQwUZlOE`PsYR7mFdr;F5-|Fv;ax49au z9KCCtZEi~xy2lI|XPJy&b{|(Gk(u~e`%=~7J%{zyNI*%3LfQ=`&*G{K z1?O~A7#~!Yu%8Af6a4C7?dKLSSE}=3D{Vbb0op}mv5>!;Q}Hx6Z5?^bk+yZuLz*|( z68xaNK-OymT{g<40m6@Q6Ps~m^{UlAPn#3^UanKQtyF4cCu!!1;%QAU1a`mc52l9u ziMwr;_Dop~2XtYt0Kj@mu*bzFOx`hEAW+ab8kI@$K7L^!;@0DsgQ#4xY))mCIB8?2 zp$sBWiE{m#hvNGmM^_mTRkuZHBqRkSMWj2F?(ULK>Fyr7yM~g6p;SP+89=&+L8ZHq z?uK{2_m>}YIC0O}d+oK>29{hl(6~U);G8iq^NTgMbU4=)yB9tYRLUnB48+|5R@gLZ zd(_|0i%aa|TIcj-6-Y*9U6z87relnIi+-g>SNr__^H#O2<|`jhu7+v#z@$IRCH1fFH(HT$A;C2()Mg?e zvWtTDVOCIJ1g#lHEh&F2O&LhF0T3hgaU=!cR&a}E?F_nt6r{ESOa$0s3$mu9-duae z9C7~T&gKLY)cv52Lxv~-9<_|j{s%8t^aUCMVs@?%-d$W_a-Xx{A>DfEA{7k%8$^}Z zfu`>ea7krcz5+*kTPE2Z*-G*6p>_O<88AMp2sx%;EYftiFG=h&CusrDED__nZDB zcjV|UhpDtoa{a@aDXnq)WmG30S&vYLGGtcC5%?>rZ-iu-qPZWFO^k^UV#^#sp=O>-;*jFM@qI-H;Cyr zhiYf~-0j^D%lGG{!xnsggZG+U+uEMY&ozRAh}g!lx9_3RAYd6cHmo+lELrd0>n;IN)(?OLl$%zIbsOSd z#;i)3a*sV&P3iggV~UG~wCS&L+9t0`F#S2!ZL$FY^phkm9ONtd*KrXI#+XnaVw>Yc zA{ZA(_4?a4MlmWeKT2^0>VGrUHLh0x1+nR0Zdk!W zGN6T4DbQTW`dURmz!GdRN2GnKARJ^;S$aY`2*nPcZS9)+_f=(c5AMpDaORr_uwbY* zo7phFLXsAn)4Rqv8!;h)0D*A)4HPKv54Wyj2C@L=UWr__o*KVWG+Bv^viI zSG!HO0I>1)+u$M2uIj|!`N zUT>PPuf@~1IQ3;OHYb0~h^FW|bXs>Z^g>ZcviYNvjw1a46nNFNF0YLaBtRUaK5<;F zolUNp2{Ta<>H^+}Z^^Py$Mz5S62VZhXVI#7k8it_LkLOqF(x?FI`U*X@iA1}!kAeD z(*=l+Nt$jGqu{V1!AY)YSijA#0W2`GV0cdn^NO;(>_T_`N%r+ z0mSH^xnAz8N8}>{(Uowp@B(NU1I4hom;SR&HZ&H@FMcAsj7B!R|ZdbkhHm-xni z4NrZH0jua4k_1HSn8>L39ZlVf!6eG~%(5`|qvOC5nPdV{YDvYxggjtgYEsUtkVE~< zK*tdwmhHg4IUhZxP0z$BN7j*!Oi3j=QFAZNM~3#73VL|oADfs@b^m;^fOyO8JC7Y7 z?<~e3b;GJ;-vB-ncz1t4HmVHlez0zlCY`)9SZ&f!-sL0u7X|LIgL}r17QIa%jcWz# zTx^a9de~|~_WT^I5{|o#KDHdGvjKt#YrPCoDwjXBps)DIb@b(rCYml^GXPdqm8b2y z&`WD7c6<5M&fZ9@v=*0Dh?yN{W`W*Z1}jAcM~pi!p`}X$R~EPW_4wGQGbcmbSV$IG zYh@%?`+N_DIb`<-9lVn95>IAugEhecJ~7BVDq*Q4yot!Qk!r2$VY2Y^xb}E z-8@ZnL@A4%QXugD<3dK?7q+ccFR4)dm((p7Kn-u}|&nv1@gT*K_$w zl!GC~IqboApZnlJ)enm4q7QVB|JaXw9M#SC}I@AF5F|Zf8TYQ#JepL z*O@$bil}>PyXcIY^>L~thtF=B_9HVnzDQhFaUWnX`8uV=nw?Elv3c3oEg}w+ynv^BqQucC;EeZ`A=Z&PnYUp;Y;gN)b*^|x-}?)N zW-&U@*A=q))$Ee_v8Ms@5HhS3ihM~2)UHeJ;%JPoTR(FioAa&L0K9SeKN?ek2MAd{ z?RlPq8?9gj6PHj7;iO;M1qfDbKl9Rq((4ErVo}wbbOwnrSb`s&jO_MN&(;@a}IvR!6_%tJ?1@0>fDIEI<%*& zE?xc$-3{1%O4e)krdz)I$a6Cp($wl0&)+8sjf6a03c}9t?ehZ02kjuSU$;KlP9dm_ zD#&mM-_wue^3_cFmsGM@Uu7EbSK3e$u((g`fN$%MDrV^44u>wMgX41(*uJ&R3*-K} za0<_G>tb7G;16PmLx2P(EmN`!R`La&WX+u|AvP<>pL5$xDnlTUsnR!8$(tr~ z(wB_!nKeM0mEbDB-*9hAN%y)LOyC*rr+M8l$I9xryDiU|^5TvNqs$MNb7WUVig?(8 zA`1Uy1g+Mw?~UOUaGW_BqSSE+vB#eLUUY3s^9uSYzSgv|al7HVW9l0IzM zsWa@dC5J#c}dB_9%=xy0hjS zSA6rykPCc+XHY-AJ@Qv$f{?rklX)BCQM*;>0)P)|O;n{u9<$P+w11{#?I1}hTUI0B zNC2h5VpBwYKZI{<&T7KK!M|b#{|J zrX=~tFrykdZBj84!Vs)cg!e%L1Hxw>FNTS*p_S*yX`+4!3cq2w7E>U-G7QvWgRU$hvrcsV||cIgreokjhI&o(09QuTIW=eySJej;oi* zVWg(@1EwYEuc=`K^lr-q@M3)Mz|Bfp`k)+KMg!?il~dpL(v zwv{U3M1-`8x;9W#ULfvU5${wt8`R0RN+z}!c5{bgk(f3= zjYdIcdkeIit#aGrVpnMMbCB7KP!D?TaT&Kxfej^jV1Un1Q|v2O zK;{&P1%jbl8pX?utbR8kRo-|axNFtb?v7&$k^QvE+s*69B#KD*V* zoLCSSsVcSSXl?izDQujc)wqkSjt_UdOMzKAZ0py>@>y969EgYAQ5w%|++ep>1e2h6iP+ia+FJ;2hC_@L3`^ zf0js5*(C#zn#TO5pRZ`Y1#*|i{A7ib3%Jw%H_%LYv^SARd%&3Q$x@car8`o~AvD54 znGp}I6JE6EM3~vhaM?&86lWsP=HbwC*Hx;8tTEDo+G;0reqP58c0Mon->OAGmY^7d zbaxXIK@%$sG1!)6N59e&*GY4*vSLptSmC=J{4@rfQUdb@S?5`(OAZ5BXhF>;z1xLV z5|Jkvva}}!w~j07{vDWGePV}$%p9Y z9QG>dTAR1cg$V*X4j!~{YxsNq?(J7_=bJUT{7fYFJ>8js8B)Ey&=1lsbM!{_GI$of zRBC{BdGkh=K8}_ZH+#CD@L7DhT!s82Lx#*_E)q9yaq~cty*cN}9K*=T)yZ~Yf1r2C@)&*eFa-XhBEpAhdiHqA~ zYOiZH^UGgjJL$6{x&14g@JIILAJwIPcU?~#owT}d^CL1Y^t~V(n$aA}3~EdMx{WUU zpq@HKc_}emFzj@m2o79^Kj~QMO&@ojWvT7{roNX6m?VJi?b!ko9BA_A!U0UJ_*R3) zf^m%-27J*7xcjJV)(!gJ8M(CkdQI-23QYr}?VxQ;j1>0q5`V}LYFA3_G!v{wGg`v* z9;gnk5;6RqfHg2U{K|Yp!}cmVBL-jI=*UVQU*!(GyS^SeQ(7;tpzz)d&PPcP+N4+6 zi8sManLzum?ISHMb0rZq=yCHeJ7S%9z2yB)?D!58>0D?*pPFGZB}YhToLO0s&pVaI zFWk!jr?m(9kP1{*Fn@3vpX!^*7WS%sYxN%la`OOT=5xG#-Sp1%GU$Gv;lGJtp&!9` zYAsHJW<;Tyyg7ea&^tXW$B2|Fyu;r;}Mz61w3xc zH%hJFsWFAgVR5wYHBz~zjz?8e?xJ-LZeXFf3G?7)0>~MuP;er#ytzATgYqWslvEV9 zgomd7lK*9YF~mohHIEMD<@D)iX!<3gLtDLeas80ZyHgIl$xj?f+t+v5ETNYPD_K2K zYxI2azFcg^XsJdXnDJj7`ZW`Gzx8g)biz8hp=sa0P8%wN6EkZ^90z zSp7~x>B1pU*A6b>wZlw9($nan=~hnTcDQ~vjiUs^XrQv? zgo4=*&3$KlgarD%nPO2~b*c42FZ;Y+aT~(Gpasf`D-26Dv^z%f<8r)g-nb_f=0QoW z#~9vJ2504aeX!+`0A{9v6TD1D%?OGvLC5^0BKkophkuL&dVA~J$Ur1Bo>mcu2ZeRt zhH-!#oJ0mgiym?1H4TDA%IZ`Dcx!41p326I3V+d5m+8?WIC)JHyTVcR_(~)cTOE;IqpAtS)&m7g!BE$>eO*HV;1B`ac4x#%paq|u)shn0bVgB8* zEL`ALbDRG)){JJ*Xg@&$4ZnW7E3SnWBac15wFPd;Uug(|3Fx~(nF%8Bosqz#TO(piBPtnZBYs6jD3)rurbP*3cbz%)FK}Xy(hoVs zuunxDB~OnL6TK!WT#=uL+6Dgl`-x?KK3{-g&`K<_6?&1sPR^*eNtrw@enV|wxx8Np z+&||H^CP^%C)bf@YetniY{0q>rDZE-RE$e1DBU)>Q$0G)b5*N0wu;-o;C%~Psi@Jj~v$FqE(-1(~GSj+OjbAvC8{%Ec26q@DqsU3(04*-XEr_xxj&xZHdX{t# zG{lv(n2ixh8yfivtEgWFk*OQVUp@i`IYmX(KmuSp=BAVF>eF&?bTnT2EIrrIU}L zB_jW9QCXMyY-&O$$lwP}*#7_CPkLY*L^Elx%*kI;k>XAQn5Ar*rfX-wg-$9EKh(Pu znO;&YDx3%53th~-Vfjeozu2$VQ#3Y*NLDx@WEHhVI%eYBWXkWc-+ZQ5_$|~yDRn*f zX=IKvY4PCt!Tya13YRNqdqvTnSMFV6we(5JhpB}ohiKliwU~C25$ZvW%Ij4S}g9Iy+ zrw~D6MY=WYh1q$I@L~@Cbb~9kSPI#F9`p3O6z_klgN|(QEj6tLr8B=k*s`(WgsGP3 zm3rdd6E|x&jkJrhyh6N;%bEdD`7=Ch{R2>I+m&mqS>Qrng!y&9YoaD9hNkA^DAG8u zYBvJ1tc3&)P=_P6@8!3KD@~MSb_*)x6~t3Zd1lw1ev27fmyyi#ra`(IIl&=P^-yUB zRyyF!rv#tid|)_EE@i;p_t;MbE{BG|&LPj;pjo~i7Q!*8S=^7MNQU1rSJDSK=Sk|L zYcpofMKTaR%*9G-G7Cdrk984HS|$Cw{H4xY+{vJzAX{zBggG0xxJ+S1@h^5=dlOmu z=RcH|<68)QCou}R6vV#`TEhCdY_Rf+GDf9>OqM_(ym?SDX?Ew$ONYlezj`JG^pkp_ z8aeJuLZO^g$l%gpK{_<>Bovn6j{KFu;*oPo$bcz4m+s-R){J|@5i%R3scqP#n{5d^ z62qy;)rw|kqFf3ZHVgHy!gq&ktGV^)e~rCL0BdR}Wto<|4YL_H{0-gF^3YlkJUeJr zsZ9OE?x%e#a8~iWJ$!EQX`TV^h)rg4K$SL}_@x(Ca-$E{E$I;ZK3)7x{WuWamua2; zaTpZ#U$z3QhOGZ3JScD{X63{eg$yFm9Pz16`ZCTSn;vwEzBf0g*T{l8koaOwB$i7; z?3GUkQn5@C*8N;z^p<~Ifg-hs<+sf*<{)cWL{&M`s^Blj6^tO&L(yFm>$1HXsv+yE?s-yC-pgAmXrD`WMem**+=P!03wi zS%V`}sw%agz+Hpub`A*4^?pF+;&42Cd$>qOEM9SChtN)`Gpk^dM&k@iY-?ShL$DrG zfLrKZHr>j2c=u?jfYB-Cpo?D|ya!h_PDkpW2Ta={Y9a{Inv~GH9uYw!U^-hp%$WXC zOZT%uHtm>|`|8D8a2ASXljM09`i6?aN)V6rnO?ugSfhO!RJ+`UUri`AA;3Sae<$aKT!kf#$(38DaN_)oC;2oRb*R9GQi=5m+J0?Tkcy#pukxZTqmTyp z((2}mT%PN;*J0U-G^GT2t6=a1cybgF6kvt%gZ7)9yX(z!qtimK#ET;B%&EH1c?ASW zoyH{2c9w+#i7E|fPmp@%3TKy*M##+-O>EzF-f$}wgz{rFSdFzkxnUk<4OQes$++0G zFNCvGfzKVoQ}0OAOn;Wb2!5w2e7?@0iO2Qa7JC+Z58F7KvL33&pgez2AaAkUeChTM z=HRw>aHDX=mkx#KcBt7gLG$-)K!|H*);YF)@4of*_D;1@-~k~G?Z%9;_QcMU+aZe5 zCG#i%%D0sd^+)w9rHHgUcK$^iAQ>AMTd2;Dk~yIid+{<{V{w{qRtoiOyBIwocG;ft-jh>zI5&#`|NmzXZCJ5GFup9D|B>rKluoM6aTb<)DH3{xTrwDgWiCo zSu?f2RUz#ToP}V?Ep;v!hk;ei4z;%U#X~P4c|auC&^)gSCNYOF)ep0-awaO8I0Q{% z+3wK@z%uO)pWzlteBM0z-yM|Wi#Vh&P8g~&QxLI&Y1m|SiSM&bo!mYry%H%VgNhu9 z#>?G2!=JoAG~cGd7Zn8^IjF*WLbhryH@L1Lmb zC?x?OV$CP2Dv#Ys6#_y+c-P?@nAS8$GOTTwai-phBo<79KpR6OChQrqMJkVSt(YQW zsI!&BjE87JjokEMT%Qwc2s%mcY)iWsC z1X3Q|N;m{AzAQyAEwcs=Mew;VCmi-@&ZK>xo6fj2)&JuhP9kzAX`kGA?SXV9851tL zk#Lw`JCxoz+!{IFKW(AI_7p5e&J+JAT-5pX5bi<2lOs>=bccLhEEPS~bBM>W+Nq&^ z7Rgn~>u4Ekf)BJ-KyGE_P1}_p;YmTFNTv24YfWR`O7HwcV12$mUR>D}IVlh}Mss02!4OA&pZQHrOa|`>E|G2YLT8)t2|{CE&L5sPq)$&^_to zoJqSgmGj|tkAKRvABxJPrQAWw3Cwg_&G79f-3U1BnoeZ`kx-%Xq>W9LU5P#__cx%H z!fVwAEM4+q|E#|*CBvOF?(mkuYLJR_y1g>|0q{yQerVr;eM~kSR|x7v{J1bvge@lJ zSwr*~`VLKEBDNRQsbl?}aU+A-b$<2gAbcBKcN*Mu=1lTzGE91|sy1w2GAM52BW(^n z(zdZ+NI`vQA7%laVkx?++)qDkxU~C&-HL;}m*Z#M3hux*MZ41o6p#278|t2FhpsgwY+Hdsv>lSJ2$izqX%&9P|c%r{eEXt416P>@s3Ho6j6GhZ*2be~v;J0^7 z_^r}dY|>OGgZ38F{tEaV0!o$%Y08h4wl>%@)mF?yh zP=YrUxtR6$3mE`M^Z3W`xL?kQm+u{Q2(>#5xvGl4`9WoO98?H#?py-;)%bgwVAIrPk1QaivWZGRT|W?_O^WiWE%%qHeq z;Kh~u^Af$2{iJe4u#DQ9s_7%{>L~SdY`#?0=e0sG{=0X{-t<{pP~C2zhX94xNY2Co zbuq#R9ose@2~@DnI2}*!+uzI^uZ%UtYRZ)QAWl?(TxMRUN!ng;HKRYxLcD92%Sv@~0^pXFR=* zQmzK3vww88D61pJJEO7nq$r(ZUm8R`T;Uyg+|4_dH(urHW@V%77YM(HKk(Rx>77?m zgEb9K(N6(ZC8T%+uV%ID1Igb`23X9XN^V^a?JoCw&~k({y^$5zCP4O>_d>0TGybSk z#E-T4l~`9)IBgBBgBYdLCrMbGNMJC18(GWOyjGq>R-vWvk5tduOzZJhO|cC=N##7g zVz1BWGlag1>iYD}gJ`*(@i82~PS)_|`t$H0!>h=Ddm2fksac-3o8PB#=_S9k=URP+ zAkSukjV~D`-t$*R+vWnUJlWGT-T~S>HlE93PbdI$w}3(l*t+^ zL#iYDcrd#a7FX$zDBy92>A>q!9AUMXCaDBwVkQz%$#o5n}Cn~$-smr>8Dc#PmsYwdQsWmt`sJm2cgQ3R9R8B znKHq;L~oko*v_$nRE1Q&v){Jn??z*Zu#ZaH7r%B%OGLl0|NEo3E}PVo_;RI$AqQVr zM7Km?FoEC!VvyTwXVmCdKru1mxz0;TA=k-i9iH zA^zpNH8<|$(}hRn`D+iumgpAmX^XTO#93`+{PJ@91!7H$FXey$zgu@}kC6#7@ z2=p_V)`GWX08<3Dj~Hz8Wf-lhN2YOP;kOu<)zNfX+c?ZRlKAIRixr9cu>|KuUB&Ul zn|ntFMR_j6+XhfH?mJokw6_W)BeeI=!3$vFqSYRWDyzjG1kx^SO485Mz}!|53swXpg{{eKGl z;+d*fF$8?=GZ{fHdNk*MFr;Br6vV_(YV=r>7tclIunCvQX&-%jeI4?ni8KEX!yCxU zda&h*C33%5FXX5y7VDYfPOIED@IUBzT46K^y$b!C_Y?F)bSezQbg#n#6gJ(u?n9-S zAacJ7KrzGu-ah=FX9lYsm~-}QYs$afMvf0r#ZfTOf^ccevppL?Wr`Uz|CJxT5}tiE zd@Me)_yy++Pk=k~HHTP=w?}mu?Q~$o1tcdWyLj+TitSh3+d#hl?>1jzl-En!lfAIB zg|_Y9{QbVr4SLXuO6?YXmo=T+=iPa-IL^KC*-fxkww3ME&HOIRynN!-~JGRD6B?)9ZN!dMiaCeQpI}E(a}rhNe4=HIfhYR zYyUkjp4I7+MD5yw>#rlc5g8&5JlxF;myza}`^8{k#4{<|wI8p``CZ2USKx;~U?v;ikmOz(AyM0MO}=x;sz~a=bEI zwMME3l+1wJGgDxb=#?Cjk~CFGt-f%)O+Z3Um<%kEI9T6GvR zX;8cPs!mjv&yb!w@@G~if#>>gp}U`^hzh`0JC0*VBLC7{EtAY^DJvk}*dJD+jbc@; zOqlFhcxDQCn4U85NYf>sJGFoTBE$T+Cr_r>6rbbVlpQLEfIuWrG|{^V%hCyP%dnix z%jWP~vuO{ojx%Y^^xvD0e@U=D`$G-Nt5kk!P3n1sf*Nz>a~O9%2Z)NfH*|NoP=7eN z*LS}ts0ZKHCT{S!is61zJ7*Nhl3%@@3-T^fk#XrE`wz&f61!me{6}?2*&=QsosCUJ zai!o?!(2vphn@n|_}94WFfuAiFk`K(v>Y4_+Z-MsZ^@H9w@us4Y3j0>*lFVQ=_IhP zkxa(*k49qnPI|!=1uSDpj|fQiCm7xuT2IGd@aOO-qd5mYB6W5r{5aytZKErvWMIJM zvZAd+aKa56>K7Fhn-*>Tst=hBaM$4G)mo65CT3&=y`ss7rsf0R=W*eRvc_VN^*06h zfgrRzWh=jy({y$n_jYAvW$SEnNELp2YZrjj7I2aD`Bg!vUwl?AtxGbU3l&~cv*g3& zH=yOou|ut2eN*R7rk#`wZF0TAFUZi{sI|l7w<9QR^?mb|mQ`UC*MT}};PX>pP`eY) z4J*{GLofDm_x%dEU~1}hQ0Z@@{oYxNx<-8w!+bA?FH@kUl4#p_!W%hmE2q6_kg`5j z@JC&(a~$ae`~&9Ig}4A{f!OKG?PhWgu`nn=AHc#@>3q{S&DN_3Ic@(IB}YPbF=#RK zlg#jlL6CmCbkV@nQPgAXMM?rZe5eK{J`_CY_ic#AwBdr5P4e^ozFwu;-@m(SXi}o< zyUWO#E3L)j7aX}AIbJ-2k(vT5s_ks7vO&4p%3}TuwEiV6**|+IJNlYYN&EOp_TB@! z^?`u$S}ri^U3q2Uw=J1LHgj!%(pDVHCK^+J1l-$tKATC3#C-cyh$#fRWy#|^sNEbC zM5ou_$5u^xC?VL4Iq|RBY#1vekFbYrEivuY3Zb*NM|5_T&fLgbq{;KSlz96azHayC zMI_UK-E-iH#-ub9n48YkF*&VWWy(}@neOt_dj9q&5lPnN2HB6rOh*hldEwNemK;Yr ziU=Xvp}Y%Ya%{wG3E-*mEOc6MmQlXEAHS1ubTJ7eJ@<0zLa?03$;cD-(|poyJXuK< z!hL7gt{s;i==YlJleNN%pu;LZHRX1w*86!w2TAKBgsjkL@%pH($T3$$EguJ<`>+9B0CYKFtBVHV!!fVgF({V9n3xlZSXik=V4BB|CN5}O6 zVkX8`#%3b&2AA$(r>-Cm5sieSx4T@N@peClMx;{1Y+K2g_izv9y8nW#1Vne?7KL3Y z%WNq6p2;18b{Lwy7Cpqla405~p=`gj6I5|jY`Fl!G3`XOy+<9zOmeVxKBovB6y2ydjQRzh0&U zD;y{2vj>O;Pct!6;|>^l(2@bw#CPX*UUm3XOo zSk3fEe!_x*5l;iCRSefHlaQ-jxia#-(9*`sdR zWkYK1`(#_*V8_HuAb9Uj*c#-c+tv$y;>8mZRf;^>*2N@*R!1#qL8B`M{L(}-pOXeH zFuyick7pjn|6^`!0Tom59Xn9#Gs1s+Y)~}CYD_{wlsjwnY!Eiykqcr*3d~kbViLD(#acWSWlkwvW78UPdyIdc z-ykOY_c%Gve*)(g3r##x`M=7?Q;Ik-E9#Z5p?P7HQ!082LnbftBL4P!RSCad?qOF( z*id}*qxbHvS#X>4$_dSgXthC22g6;Ul}3lj?bj4==@F}+vV*lRkj-?ER)RF@G*EA^11KiyU^5Paa+K1D#ulu|IupTo!@QQ5}!*w z(|k$5-}&&yLj5`Chnpy;`XG#!F(iOf);Lti7i<%^@`tTDyU^IcZR|(?_8IY8RLcg7 zW2!MQ^r+(o6I1p!(U5lI+8Fw3CB{$OS;SZVxL0q@Y;cLMYByusL?Mr3&*6G%_kcyCiFS zti_W!`95LYr^)RL&-T=q(^Xr?P?f=B0EKxxIluHCwvlL~kk?f~LFsm>Wa-N>yw9 zv~kjX-hm{6O&jls%g;r@oz5BXaL7q~43odZ=E<~UKtiQR>DV8KF?(3yx*aMPbVQ>o zo%ecK7g(@_A8w=QD5Z+DOSd6zAAjJ*TCG7BL`B>BmKSwo-FQEfgY!Oomgsj!!Y?~z zN<;^iUMdwj-2ygRq8$H=3wJuh<$l0r)dM{)B#Qlh=zUWuLt$fr?b%I zgWR5xM$-5=l+M|a3z9&{ZbPMX^7x|dc^w#ZYB1UL2T#e0sgQuCOQ}?SmIKhgPo#!x zQmR#dXUC4)0@mR_?w6pK>bOBcNljNOITKHv|0G2!-iTd2WgctNfnnMp>cer=xjShvzc>hn ziaw!#L9Ig8@A9TpI>jDqDp2%84lS}o03o}SVy-GO5R0a6!swZeE;~bXql9%QFy~9s zRHIg<41dnCB&&(3M@bKG(0267o_bshQI~vh{(&|1_AAOE`cF6VmU;hMvi8z|nVG~t zdq)cYlE>8qC$Ha2@eR9-dcG|09nmSM%PS0A_DSFw*6*GCK-&Gou8gnOyj=QOcPe`@ zgZ2Bj&o^=eREg78Ck+nhuPNzi{TPm*3^43<7NiLI4Cug;#+OO@0GbMOPaO~>WN8Ok zm}je9&7dQd>;2Bje95u6F6CA4+(e&qTY$eWR^YKS|3~AKP65RZ_z=)>23oNzLXnQ& zPdwI4IX~7MeA&27+LXjN_4OARYn4W3cmyj;z4y?~+ez!=-F@yqNiYfKmexHvMnoAe zo>kImb;|ekdNREIVqN3cu}J5J&TDaQP;r<{7cuN#;KIy=vs{635N~ePON*G8X*VJ_ z%Mm>mRS7Tq9}YBhYn0Tw1#dM4_p^QF>-wYHA5}23&bUk`efVqnbtT!I@$8X>2}Aj} z?Ar?oQo%1QTKY=-7_ibzK71!aBy1#;uO9-&+RP*Ib{(rX%FCq@{n+2if7=m!|wFK`6U@;D^x8R)nweFXy4459fP_qW{##edTaKBZ~6E-o&CpBNQ$t|){^WJfbu z7-;=&LOGgFt&vih5Ll7G6ZoQ1n^x6_n}#0(^56eZCB8a;&HD$>Gk@0u!`-GHe12=% zf|jBkd}T)T#h2->JQL5L>qvNZmlYV)T!aTFolfH{ep~2)SR$o(xs|uxJ z=`m2hFEx%%+Cm!58EEkBlT9KZ5FUL`r#&;u7(f>?AP#BkZOL=!s@l=-+U}j@)4N*5 zKG+_^ZY+NxKd-==dZmZM@2NB&)o?YuKI~TN_*re!NF^(e{M&jt6#)20X8x>M-ym=+ zlEpiiBVNf9$Za{gT+<5WFp%i*AXva3PMbIo?#4h^>1iMQsc@JmkamWg6W}fE122N-6*& zU3gr5X`1seF4l*x>Jq>13ni1N+U(u5+qs-n(z@ghxzfPqXa9(-{WAdde7BB}(Su&K z^_xL;&KxV%QL?Vdt~6rUro_V#B5a&Uw9llgsYiz>W(95iAjYr?B1ukK%7J^zQj6DW z(eXRsM;aRgdhH~6VM$J|Ojb;Y5-a?n9{NC7R-O7GCP&W?!u$C=X*D~CU}`FZ4s?)D zEeDX@prKik_2)`Y_xFJ|jNUJ>@25(oeq%c3VRANSdycNe`DtiALCz%9(*)~0tVch0 znGG`-K`fDl4?6jT=v#{jMI5epz6>yTrw;^;bqC%v%Wn}1sAS0r6^Tx3!`_`iIJ zvC3-|i(>)>?mSX!MQF^&x;Jpt8cG|X%%hk)?*L_u0Y3%%7@!Q)}R!ywh( zIIcm*h^*4@V$*4+=R)7Gg&*J{;VG&1-sUj*?OKF?R^)THQCM+fm>3iLH$7=Y^d_5Z zHL#*)$}3YOz!P`n-3t|i*T0!hbiRBcApXX9#dmB=UonLnb?#>bTita_7p^H&NKBn1 z&RB3RQM{3BvIYEgWw`B^TS|8ib4t%$M5`VHOs*E~*O1z=CjJ3v0Lsn3_c7Uzf&QGI zFQZuRv~787LJ4=x+n44@e3|KaMZ3Bz&qlRr4;Q?gFsY1YH;7miQXw)b7*tR-WKTOA zYzuk9E>>}=HM|u2#7nkqOab17I?!ytb_?Y?5FhAW{|Xnz8BBKfWKGCZK3wZ zc`3fv7rlSIku(#IeJ`S-Y^kC*y;hEzq8F~Dw;@Pe`k*Rk4GD9q! zl1R%3}I|nQFG1!5eBy_ z?(I$tpmFd~S!+z_kL^$r9+04rU|r1h**N}KygBL2c+BazjbfbRh-(CmkVY$ zxZ(?d{$XS24m-XRIX)VW{cJgy*R~a`-9@8WgUVl{bRZU^)OfAG@D$4)?q01JlgGMg zy*=ZK)Eb-C<3#bEVzG^vBezu~bWHi>nC$kS*;f{Sl?dxAvIJ&VQgn9|{9Q|Byw8_{ zsz2F3=FTGVB$pOVe9=X88ONhLx7r@HyxpU&r}HEcz$bS8&Ewq%aoMvWO3v>VpK)1M zMZ=*~9M%2yC23B>b}^f-r{WeYq;>xfVJu|GU8yjks#o_wYAUdcsFfosEi|#GyNA+v zAv0Q6wy;j?c=Z?&A25sJokG7gx!~C~GKG3nA&zthi4rs}p9tdYyy~^S`u^@K*oT^i zF#{eSOOWJ$F`g7)#4UzEo6DpDa^Id*>8ie?+`sS-=5|;KsCORIslQ47uvL>*G2)i; zizlll-R%$car5RT7<&nEKY|7EZm_o4{bK$s%5D&96lMB8W&hI=ET5zx* z$5CeApG?&;gZ~O~gOb({msrSVRT^}TK9Qa4g*3#p5aY8{_3o+4dKP?GO$3IT#0S=K zB1`y2m^k;PceZs1Vk)diQ1DtMI*PM7&qrO;Dr)a`hZ%tL>&H8wAlKTZurBD&Zpf-+OTVB zO*)Bvcd8cybZsTKMqY%sVvSvZK#bUhEQp*IG65K_(WmsJv{#6u)Dpf$4S@0=CD__v zz#12==c$Z@r06_ocL!<<a~aZi)E+I(z)EwI&XjQ1|I7ic`MmDRkYcyn-z9Ez~Ks+SagJ^5o; zLm_J>c#;A;x%$hc(EbU>#1mWavCD%SY#__u85Pmx_^#b;B){2gxLC=-HDQ4G?b~Tc z#$=avWAhHZx{ebhD_>|XOTgC)`?@UxS!}~G!pLzTy;EN(h!EUK64G$EI@*Ilk->+n z8W-o<`=)2)4+F7$Hre-KV-BJr%{n~+wTOU5Oyy=b#7u!%C$}?8d1FN1t#}%Y#me&CtY?|Oj<5rv2^_^|= z?9ANT`O<5SDyYuZsgsP;Iyj93(uk_q`yv(E1Nu`$oLXf63+oXS?sOJ^zeXj`xKKk~ z=a|DlHCkv^uVPEr*AsV_c!m;yXq_1c%aMyuXQq?9%TMR0eAC5GNbn%$STw*Y@%c~!F=P%}pmfm5B+tNeUD_UH)yQ50AU`y6NN;N7H5puT>J{k0iqS={`m#7_#))&kd(kiZbFi`3sCxCNS9_Spv)jv2q0Yw zrbQwyIxG&s5RPU}E_nu~s7dtbe!cxdvR9^wOXAoaez#E)5VbRPUjVrhH#eQ+{TVeb zxnc`%A<2tU_~{pP7Oy1A3Zk>kUceIE>>rgsY!`z;w*zRYPoA}B5H+&q)Q{;T@7#k~$s%o35`mg3_~?Fu@_{&b z){h=}<&Mj}nvaH#kf{tAbtH543?y6Lj3kF!CX&-LGs)$hMoy1RBs=_D);t+WrfeA; zC3~uCrd*2~;FyEo|2nzHg6zFSaX{3>%!B1gWZb-uB=5Yq>;XJvb{aXT*(Vk(ML8Dw~q=X15p~Zz=Jk?#=U*&kM{PErYyNKl01dXlRGi#qqBb* zGuvgRue=&%Zv@I7q6IdcZ}gGmor#%|WJ2=hsWcJORvFkc4^e7WFJ0cviN2)DpdAMy zZ7E80Y1Z7?JITW5msLMI2v=cC(VMBtR~81m`4VIg_v|5xW!|4(kgG2ievrJQ*C!-? z+0I8y^48NTbd@J$4;}W=LzGK#9q#2*TU581Ac1`4aL;5D!Q+$HHw(#>)n>DM_th$T z8GwaiviD^N_eT?Um3V|wfhe(+%GuZnA0%&g`0yl=7AlktDwjNdHX{M2Q6) zIJ>8wSZ)hB%8*HCvspZ`<=o6UGTKV^%BfZMGI6sUf&=6yZQSCY};p@FW zNZy*Gy^}?nAyYzutQt+ybbl0WrW}ZZfhbJ&@I(&f2kq1OOn%ABK=Ku_ujCmo<=RO0 zx~uk8mLhxQnz_CkwYB(F6bwWOY&P1L7qq%js>rcsT3D_%Cuk)kt%xj*qJby??8B%0 z_*`d$b}4ij)e(|sJhMkDdu6`16{>!vrN~}DLzmS4tBPJk(Lfx@vST&KwS>haGHzi? z>#<*n2_9vc6Gp(W4X}zsoIpwEc-ACGW$YJ)bOc7igSN{i_WF zVn$PY_9*RV7QTeSfjH(I+t10B=X1%a`_tZk*Q1mv$(yKx^K0$7yi2QgX=Nmymy6h| z5;q$sdwl4>=VXvw;OA*^MA0<$jdD& zXW{m!IdhyfB{*5LW+g|C93jSW`}S?(?(Uv$$=0PLqLHm8SzGH(&}5 zsI~ihy+qkV>{DSINKV`zozgS7mZ@31*TApna%KgcCCLZ)=x}cz;=IyGWsw#%mEMNK?J3+3@3zi#xOr8gSm9->>rpc zCN^ctlp)E<$wVj`Hf;FeXB}ODAw;hHnNjpi$lj+wtk?istDhGN31TzJ8^5J?azH~@ zQ<8TK$d8U@Gx2lbW;k%E7eP$#O{8CtXphT6+;VX)ZsuHxAu2X&*RCaE5fc+b^5)H} zZ&a*A$FN|M%-0!#@WWv+&MeL}pA~iLYeEof8MT=fWd3x%db&6~b18aNWt>7|lUoSFY7m5mEIrRNgvyZ1K$-4lQ zM88t>tX~dp;PT}LGFN6+M~G zz+LM!85{=K^1xN0LHL^{4Y{rH9k!syN!~`!Dn1V~Snvg%7`9l!t1t2B4 z?Gkd&_?-|Eo8aJJVon4vo~GOxy-c!*-tSJ8v0*y{fdAEUY(3dn9*|}xkg4~|JayYOfh$!W_FH3o3`24L95}Oq(R+uGvDJdzW;cq`G zuNcEGt6aqxpF3rSrajAmN34OlQY$wyXl+rH7{nw)))ga_TDyr!-h3c8I+4=^tx%+| zw6k}_3`DMs|NyU213+Hy?4X~I_@_>VtW``6D$nvN@oQiG(U)#O6@ z_Xk7p-T@YcWS*?u(I>xX+TCUw-+8SQ>Zk z-zJ~d40OEc`N_6F4<{UqWG^2u4@l+@-rx4}BthG;NCPQB#_#kabq9G1&Ekau#qraG zAyZ`GmbDBLNRPJ)>*AF8fK2#_!LVcaqW~aI1npz#De`&vnwqN<}-Xby)w(yQl%lLOY?-!1qcFO7zX>m zMlSjd`6xr$rO&b={MISYfuYzg1;fG1wm9e`&Wg}7?msNq89jP5kvm?!eo2^*t(|i5>+t->Rkg9eKomR-1q9t# zjeYqLXQhO|=YsB8O?UQfu3Wjuy?ghFt>R4BNz!9bM^d0{K6z&HGRPu%3A(fvP8e1S zp9e6?&~TaV-D@zifL;(#l+;a+MZTm`D_7$pi%vjxeAi47YmmTN`T%lr6p@l1HKdUeblL{HJ zxj6a$cQ3=4w0nVC0G6d=C^dX>&_{I6S(qUdw0CJ3OMa$Jn?~#rq5HNGx02bILf53@ zFJ$i0nPke`@#M?ewqcKzx-rT^40)RLR{w6*XbZPfFUw|@Y%0%|;*<%;ktNPQY9|;~6zs;fR zKl+)Zq$JX^ZF4yV&#*5KJ3!b;`U-I;Bi#D7rzaV(3it0Rl}@vL$QQr4AA{Gb36K@v zy%;JCTKQcH1psjpr0kQf0VMK8C}+-`-RpMClACCQgB zpInl63do7+&@r=oHT>)6TVJc6*V}=sQTUWX-(^K!e&5e)F1$WP@tumHk#Nzaotl9% zfM^v@Gd>SZfE2zEWzU|SgoK3HO!T(x+D!8LW+8cfvXI;bGLxJhnaHwLO9g+vPMtb( zNZx56AErRZOCRmW*RbwD@4x#lFOrP1OP#&>4?nxTK3{hzi^n z8FQm0Yi2J)h74rXs8J*(B}G=ryMFz;{^&LS-&?e3k>F!!p@@}|w_hiIatMZ_q_4rK z0z-Q*EpmIpE|f2O5VXDcU+{k`1A?b$AZjkWC<0`*;&VWoDZgS#Qsv5( zNn~WCERq)$6-5dcF3glMI%~&@r%#{i+rL;LdGoBiHyHK^5RgKH))rklc86aA3YqM@ z0Tu#*_)f!c@}Pr(8&Fh-J@^oHv{3QUrB%_&5%j#=n=Dz%oH;Y;-n~1CiHWgT^46|h zYjUsM%$YOO?a%w+haarzlh+E>cChjhQOS{%_9T*6>;yViigBf(w zb^*G;pi65si*kV|VfK!`AKihBHh9m|J#3qWCCCQAe_}F4t8;7BsznA49H`%4w`I!~5*ivx zR;^k^#*Q6J>eZ{q+>2*p;(%T{Y@eb@=_?5I;-oJTh3+HX1G|CNKwf;eU|`4=bTFYs z9bVi(9H_(M4#axOa9<|qmx^o-e1FsNVy=!+sG&gUv2IIr=2aYHs95^)0u6u_zyl|h zJGz%Kgp)fgC&$3BU(lIydK4h7e$3Ae*a13R`bF4#>;k#>h&T78A)^A{)AUQsDjnmD zTm?WSbg54GY+no~5x)SS3$PA|(WuzbrR#8DI#2`1g0DOVhTKo>u#o z#hE}&@2R6RbaY>xFE{&3XUf#rc)mC=19++c!Fxc5cU@XB3I;|x@$=3w$L1TH&@#)qKyqmeFc`7{zpl~L^8180FLKy?j^Glqi&khXL20lwlSYXC3_SPX3A zgpe+o-r>aX1vlGfs`B+Aa09r&{SNxO<^jWi_COuL55Ojm7#JAVMn-Os%+3j7UQSx* z60#>ZdsvW@8edLu{5aY1=LqB^s0=4Wy zu#uCx_T2jb#SQ}l0|NsC0|NsC0|NsC0|NsCLt^|NoJxSiGo$dE00000NkvXXu0mjf D9v*al literal 0 HcmV?d00001 diff --git a/vex8/patch/cdn/kizi/splash.js b/vex8/patch/cdn/kizi/splash.js new file mode 100644 index 000000000..38e2feb0f --- /dev/null +++ b/vex8/patch/cdn/kizi/splash.js @@ -0,0 +1,4446 @@ +console.l0g= console.log; +/*! + * splash - version 3.5.47 + * This is the Splash Screen for Orange Games + * + * OrangeGames + * Build at 30-01-2019 + */ + +function addScript(a, b, c) { + var d = document.createElement("script"); + d.setAttribute("src", a + "?v=" + b), + "function" == typeof c && (d.onload = c), + document.body.appendChild(d) +} +var __extends = this && this.__extends || function() { + var a = Object.setPrototypeOf || { + __proto__: [] + }instanceof Array && function(a, b) { + a.__proto__ = b + } + || function(a, b) { + for (var c in b) + b.hasOwnProperty(c) && (a[c] = b[c]) + } + ; + return function(b, c) { + function d() { + this.constructor = b + } + a(b, c), + b.prototype = null === c ? Object.create(c) : (d.prototype = c.prototype, + new d) + } +}(), Fabrique; +!function(a) { + var b; + !function(a) { + var b = function(a) { + function b(b, c) { + var d = a.call(this, b, null, "splash-background") || this; + return d.back = d.game.make.graphics(0, 0), + d.add(d.back), + d.resize(c), + d + } + return __extends(b, a), + b.prototype.resize = function(a) { + var b = this.game.width < 1 ? 1 : this.game.width + , c = this.game.height < 1 ? 1 : this.game.height; + this.back.clear().beginFill(4351922).drawRect(0, 0, b, c) + } + , + b.prototype.destroy = function(b) { + a.prototype.destroy.call(this, b), + this.back.destroy(!0), + this.back = null + } + , + b + }(Phaser.Group); + a.Admeen = b + }(b = a.SplashScreenBackgrounds || (a.SplashScreenBackgrounds = {})) +}(Fabrique || (Fabrique = {})); +var Fabrique; +!function(a) { + var b; + !function(a) { + var b = function(a) { + function b(b, c) { + var d = a.call(this, b, null, "splash-background") || this; + return d.back = d.game.make.graphics(0, 0), + d.add(d.back), + d.resize(c), + d + } + return __extends(b, a), + b.prototype.resize = function(a) { + this.back.clear().beginFill(14548992).drawRect(0, 0, this.game.width, this.game.height) + } + , + b.prototype.update = function() {} + , + b.prototype.destroy = function(b) { + a.prototype.destroy.call(this, b), + this.back.destroy(!0), + this.back = null + } + , + b + }(Phaser.Group); + a.Bild = b + }(b = a.SplashScreenBackgrounds || (a.SplashScreenBackgrounds = {})) +}(Fabrique || (Fabrique = {})); +var Fabrique; +!function(a) { + var b; + !function(a) { + var b = function(a) { + function b(b, c) { + var d = a.call(this, b, null, "splash-background") || this; + return d.triangles = [], + d.triangleSizes = [350, 650, 950, 1250], + d.back = d.game.make.graphics(0, 0), + d.t = d.game.make.graphics(0, 0), + d.gradientBitmap = d.game.make.bitmapData(1, 1), + d.gradient = d.game.make.sprite(0, 0, d.gradientBitmap), + d.add(d.back), + d.add(d.t), + d.add(d.gradient), + d.resize(c), + d + } + return __extends(b, a), + b.prototype.resize = function(a) { + var b = this + , c = this.game.width < 1 ? 1 : this.game.width + , d = this.game.height < 1 ? 1 : this.game.height; + this.back.clear().beginFill(3387647).drawRect(0, 0, c, d), + this.updateTrinagles(a), + this.t.x = c / 2, + this.t.y = d / 2, + this.t.clear(), + this.t.lineStyle(80 * a, 16777215, .3), + this.triangles.forEach(function(a) { + b.t.drawPolygon(a) + }), + this.t.angle = 30, + this.gradientBitmap.resize(c, d); + var e = this.gradientBitmap.context.createLinearGradient(0, 0, 0, d - 200); + e.addColorStop(0, "rgba(51, 176, 255, 0)"), + e.addColorStop(1, "rgba(51, 176, 255, 1)"), + this.gradientBitmap.context.fillStyle = e, + this.gradientBitmap.context.clearRect(0, 0, c, d), + this.gradientBitmap.context.fillRect(0, 0, c, d) + } + , + b.prototype.updateTrinagles = function(a) { + var b = this; + new Phaser.Point(this.game.width / 2,this.game.height / 2); + this.triangles = [], + this.triangleSizes.forEach(function(c, d) { + c *= a, + b.triangles.push(new Phaser.Polygon([new Phaser.Point(c * Math.cos(0),c * Math.sin(0)), new Phaser.Point(c * Math.cos(1 / 3 * (2 * Math.PI)),c * Math.sin(1 / 3 * (2 * Math.PI))), new Phaser.Point(c * Math.cos(2 / 3 * (2 * Math.PI)),c * Math.sin(2 / 3 * (2 * Math.PI))), new Phaser.Point(c * Math.cos(0),c * Math.sin(0))])) + }) + } + , + b.prototype.update = function() { + this.t.angle += .3 + } + , + b.prototype.destroy = function(b) { + a.prototype.destroy.call(this, b), + this.back.destroy(!0), + this.gradientBitmap.destroy(), + this.gradient.destroy(!0), + this.t.destroy(!0), + this.back = null, + this.gradientBitmap = null, + this.gradient = null, + this.t = null, + this.triangles = null, + this.triangleSizes = null + } + , + b + }(Phaser.Group); + a.FunnyGames = b + }(b = a.SplashScreenBackgrounds || (a.SplashScreenBackgrounds = {})) +}(Fabrique || (Fabrique = {})); +var Fabrique; +!function(a) { + var b; + !function(a) { + var b = function(a) { + function b(b, c) { + var d = a.call(this, b, null, "splash-background") || this; + return d.gradientBitmap = d.game.make.bitmapData(1, 1), + d.gradient = d.game.make.sprite(0, 0, d.gradientBitmap), + d.add(d.gradient), + d.resize(c), + d + } + return __extends(b, a), + b.prototype.resize = function(a) { + var b = this.game.width < 1 ? 1 : this.game.width + , c = this.game.height < 1 ? 1 : this.game.height; + this.gradientBitmap.resize(b, c), + this.gradientBitmap.context.clearRect(0, 0, b, c); + var d = this.gradientBitmap.context.createRadialGradient(b / 2, c / 2, 0, b / 2, c / 2, c / 2); + d.addColorStop(0, "rgb(0, 38, 84)"), + d.addColorStop(1, "rgb(96, 3, 190)"), + this.gradientBitmap.context.fillStyle = d, + this.gradientBitmap.context.fillRect(0, 0, b, c) + } + , + b.prototype.update = function() {} + , + b.prototype.destroy = function(b) { + a.prototype.destroy.call(this, b), + this.gradientBitmap.destroy(), + this.gradient.destroy(!0), + this.gradientBitmap = null, + this.gradient = null + } + , + b + }(Phaser.Group); + a.GameCell = b + }(b = a.SplashScreenBackgrounds || (a.SplashScreenBackgrounds = {})) +}(Fabrique || (Fabrique = {})); +var Fabrique; +!function(a) { + var b; + !function(a) { + var b = function(a) { + function b(b, c) { + var d = a.call(this, b, null, "splash-background") || this; + return d.back = d.game.make.graphics(0, 0), + d.gradientBitmap = d.game.make.bitmapData(1, 1), + d.gradient = d.game.make.sprite(0, 0, d.gradientBitmap), + d.add(d.back), + d.add(d.gradient), + d.resize(c), + d + } + return __extends(b, a), + b.prototype.resize = function(a) { + var b = this.game.width < 1 ? 1 : this.game.width + , c = this.game.height < 1 ? 1 : this.game.height; + this.back.clear().beginFill(663352).drawRect(0, 0, b, c), + this.gradientBitmap.resize(b, c), + this.gradientBitmap.context.clearRect(0, 0, b, c); + var d = this.gradientBitmap.context.createRadialGradient(b / 2, c / 2, 0, b / 2, c / 2, c / 2); + d.addColorStop(0, "rgb(17, 60, 117)"), + d.addColorStop(1, "rgb(10, 31, 56)"), + this.gradientBitmap.context.fillStyle = d, + this.gradientBitmap.context.fillRect(0, 0, b, c) + } + , + b.prototype.update = function() {} + , + b.prototype.destroy = function(b) { + a.prototype.destroy.call(this, b), + this.back.destroy(!0), + this.gradientBitmap.destroy(), + this.gradient.destroy(!0), + this.back = null, + this.gradientBitmap = null, + this.gradient = null + } + , + b + }(Phaser.Group); + a.Kizi = b + }(b = a.SplashScreenBackgrounds || (a.SplashScreenBackgrounds = {})) +}(Fabrique || (Fabrique = {})); +var Fabrique; +!function(a) { + var b; + !function(a) { + var b = function(a) { + function b(b, c) { + var d = a.call(this, b, null, "splash-background") || this; + return d.back = d.game.make.graphics(0, 0), + d.gradientBitmap = d.game.make.bitmapData(1, 1), + d.gradient = d.game.make.sprite(0, 0, d.gradientBitmap), + d.add(d.back), + d.add(d.gradient), + d.resize(c), + d + } + return __extends(b, a), + b.prototype.resize = function(a) { + var b = this.game.width < 1 ? 1 : this.game.width + , c = this.game.height < 1 ? 1 : this.game.height; + this.back.clear().beginFill(5415393).drawRect(0, 0, b, c), + this.gradientBitmap.resize(b, c), + this.gradientBitmap.context.clearRect(0, 0, b, c); + var d = this.gradientBitmap.context.createRadialGradient(b / 2, c / 2, 0, b / 2, c / 2, 1.5 * c); + d.addColorStop(0, "rgba(244, 250, 252, 1)"), + d.addColorStop(1, "rgba(244, 250, 252, 0)"), + this.gradientBitmap.context.fillStyle = d, + this.gradientBitmap.context.fillRect(0, 0, b, c) + } + , + b.prototype.destroy = function(b) { + a.prototype.destroy.call(this, b), + this.back.destroy(!0), + this.gradientBitmap.destroy(), + this.gradient.destroy(!0), + this.back = null, + this.gradientBitmap = null, + this.gradient = null + } + , + b + }(Phaser.Group); + a.PlayCell = b + }(b = a.SplashScreenBackgrounds || (a.SplashScreenBackgrounds = {})) +}(Fabrique || (Fabrique = {})); +var Fabrique; +!function(a) { + var b; + !function(a) { + var b = function(a) { + function b(b, c) { + var d = a.call(this, b, null, "splash-background") || this; + return d.back = d.game.make.graphics(0, 0), + d.add(d.back), + d.resize(c), + d + } + return __extends(b, a), + b.prototype.resize = function(a) { + var b = this.game.width < 1 ? 1 : this.game.width + , c = this.game.height < 1 ? 1 : this.game.height; + this.back.clear().beginFill(4879021).drawRect(0, 0, b, c) + } + , + b.prototype.update = function() {} + , + b.prototype.destroy = function(b) { + a.prototype.destroy.call(this, b), + this.back.destroy(!0), + this.back = null + } + , + b + }(Phaser.Group); + a.Spele = b + }(b = a.SplashScreenBackgrounds || (a.SplashScreenBackgrounds = {})) +}(Fabrique || (Fabrique = {})); +var Fabrique; +!function(a) { + var b; + !function(a) { + var b = function(a) { + function b(b, c) { + var d = a.call(this, b, null, "splash-background") || this; + return d.back = d.game.make.graphics(0, 0), + d.add(d.back), + d.resize(c), + d + } + return __extends(b, a), + b.prototype.resize = function(a) { + var b = this.game.width < 1 ? 1 : this.game.width + , c = this.game.height < 1 ? 1 : this.game.height; + this.back.clear().beginFill(804972).drawRect(0, 0, b, c) + } + , + b.prototype.destroy = function(b) { + a.prototype.destroy.call(this, b), + this.back.destroy(!0), + this.back = null + } + , + b + }(Phaser.Group); + a.Spil = b + }(b = a.SplashScreenBackgrounds || (a.SplashScreenBackgrounds = {})) +}(Fabrique || (Fabrique = {})); +var Fabrique; +!function(a) { + var b; + !function(a) { + var b = function(a) { + function b(b, c) { + var d = a.call(this, b, null, "splash-background") || this; + return d.back = d.game.make.graphics(0, 0), + d.gradientBitmap = d.game.make.bitmapData(1, 1), + d.gradient = d.game.make.sprite(0, 0, d.gradientBitmap), + d.add(d.back), + d.add(d.gradient), + d.resize(c), + d + } + return __extends(b, a), + b.prototype.resize = function(a) { + var b = this.game.width < 1 ? 1 : this.game.width + , c = this.game.height < 1 ? 1 : this.game.height; + this.back.clear().beginFill(357287).drawRect(0, 0, b, c), + this.gradientBitmap.resize(b, c), + this.gradientBitmap.context.clearRect(0, 0, b, c); + var d = this.gradientBitmap.context.createRadialGradient(b / 2, c / 2, 0, b / 2, c / 2, c / 2); + d.addColorStop(0, "rgba(0, 81, 125, 0)"), + d.addColorStop(1, "rgba(0, 81, 125, 1)"), + this.gradientBitmap.context.fillStyle = d, + this.gradientBitmap.context.fillRect(0, 0, b, c); + var e = this.gradientBitmap.context.createRadialGradient(b / 2, c / 2, 0, b / 2, c / 2, c / 2); + e.addColorStop(0, "rgba(4, 176, 240, 1)"), + e.addColorStop(1, "rgba(4, 176, 240, 0)"), + this.gradientBitmap.context.fillStyle = e, + this.gradientBitmap.context.fillRect(0, 0, b, c) + } + , + b.prototype.update = function() {} + , + b.prototype.destroy = function(b) { + a.prototype.destroy.call(this, b), + this.back.destroy(!0), + this.gradientBitmap.destroy(), + this.gradient.destroy(!0), + this.back = null, + this.gradientBitmap = null, + this.gradient = null + } + , + b + }(Phaser.Group); + a.Yepi = b + }(b = a.SplashScreenBackgrounds || (a.SplashScreenBackgrounds = {})) +}(Fabrique || (Fabrique = {})); +var Fabrique; +!function(a) { + var b; + !function(a) { + a[a.splashscreen = 0] = "splashscreen", + a[a.logo = 1] = "logo", + a[a.facebook = 2] = "facebook", + a[a.twitter = 3] = "twitter", + a[a.playstore = 4] = "playstore", + a[a.appstore = 5] = "appstore", + a[a.more_games = 6] = "more_games", + a[a.download_game = 7] = "download_game", + a[a.walkthrough = 8] = "walkthrough", + a[a.disclaimer = 9] = "disclaimer", + a[a.highscores = 10] = "highscores" + }(b = a.UtmTargets || (a.UtmTargets = {})); + var c = function() { + function c() {} + return c.setSiteLock = function(a) { + c.siteLocks = a + } + , + c.preloadImages = function(b) { + var d; + switch (a.Utils.isOnDevice(b) || c.isAirfi() ? a.Utils.ASSET_LOCATION = "assets/" : a.Utils.isTc() ? a.Utils.ASSET_LOCATION = "/repository/download/Fabrique_FunnyGamesSplash/.lastSuccessful/build/assets/" : "fbrq.io" === a.Utils.getSourceSite(!0) && (a.Utils.ASSET_LOCATION = "https://" + window.location.host + "/orange-games-splash/assets/"), + a.Utils.getBrandingDomain()) { + case a.BrandingDomain.Spele: + d = "spele"; + break; + case a.BrandingDomain.PlayCell: + d = "playcell"; + break; + case a.BrandingDomain.GameCell: + d = "gamecell"; + break; + case a.BrandingDomain.Yepi: + d = "yepi"; + break; + case a.BrandingDomain.Spil: + d = "spil"; + break; + case a.BrandingDomain.Admeen: + d = "admeen"; + break; + case a.BrandingDomain.Bild: + d = "bild"; + break; + default: + case a.BrandingDomain.Kizi: + d = "kizi"; + break; + case a.BrandingDomain.Funnygames: + d = "funnygames" + } + a.Utils.isTc() || (b.load.crossOrigin = "anonymous"), + b.load.image(c.LOGO_KEY, a.Utils.ASSET_LOCATION + "images/branding_logo_" + d + "_small.png") + } + , + c.openCampaignLink = function(d, e, f) { + if (a.Utils.isOnDevice(d) || c.isContracted(d) || c.isSpecial(d) || !c.outGoingLinksAllowed()) + return null; + var g, h, i = a.Utils.getSourceSite(), j = a.Utils.isOnDevice(d) ? "https://" : "//"; + switch (a.Utils.getBrandingDomain()) { + case a.BrandingDomain.Spele: + g = j + "www.spele.nl"; + break; + case a.BrandingDomain.Yepi: + g = j + "www.yepi.com"; + break; + case a.BrandingDomain.Admeen: + return g = "https://media.admeen.com/branding/link.php", + h = window.open(g, "_blank"), + void (h && h.focus && h.focus()); + case a.BrandingDomain.PlayCell: + g = j + "www.playcell.com"; + break; + case a.BrandingDomain.GameCell: + g = j + "www.gamecell.com"; + break; + default: + case a.BrandingDomain.Kizi: + g = "http://www.kizi.com"; + break; + case a.BrandingDomain.Bild: + return h = window.open(j + "www.bildspielt.de", "_blank"), + void (h && h.focus && h.focus()); + case a.BrandingDomain.Funnygames: + g = j + "www.funnygames.nu" + } + var k = "string" == typeof f ? f : b[f]; + h = window.open(g + "/?utm_source=" + i + "&utm_medium=html5&utm_term=" + e + "&utm_content=" + k + "&utm_campaign=Gamedistribution", "_blank"), + h && h.focus && h.focus() + } + , + c.getLogoWithLink = function(b, d) { + var e = new Phaser.Image(b,0,0,c.LOGO_KEY); + return a.Utils.isOnDevice(b) || c.isContracted(b) || c.isSpecial(b) || c.isAirfi() || (e.inputEnabled = !0, + e.input.useHandCursor = !0, + e.events.onInputUp.add(function() { + a.Branding.openCampaignLink(b, d, a.UtmTargets.logo) + }, this)), + e.visible = !c.isSpecial(b), + e + } + , + c.isInternal = function(a) { + return c.hostMatchesList(a.cache.getJSON(c.INTERNAL_PORTALS_KEY)) + } + , + c.isContracted = function(a) { + return c.hostMatchesList(a.cache.getJSON(c.CONTRACTED_PORTALS_KEY)) + } + , + c.isSpecial = function(a) { + return c.hostMatchesList(a.cache.getJSON(c.SPECIAL_PORTALS_KEY)) + } + , + c.isAdmeen = function() { + if (!c.siteLocks || !c.siteLocks.hasOwnProperty("admeen")) + return !1; + var a = c.siteLocks.admeen; + return c.hostMatchesList(a) + } + , + c.isKongregate = function() { + if (!c.siteLocks || !c.siteLocks.hasOwnProperty("kongregate")) + return !1; + var a = c.siteLocks.kongregate; + return c.hostMatchesList(a) + } + , + c.isNewgrounds = function() { + if (!c.siteLocks || !c.siteLocks.hasOwnProperty("newgrounds")) + return !1; + var a = c.siteLocks.newgrounds; + return c.hostMatchesList(a) + } + , + c.isBild = function() { + return "bild.fbrq.io" === window.location.host || window.location.host.indexOf("contentfleet.com") !== -1 + } + , + c.isBip = function() { + return window.location.search.indexOf("bipgaming") !== -1 || "bip.fbrq.io" === window.location.host + } + , + c.isPlaycellApp = function() { + return window.location.search.indexOf("playcellApp") !== -1 + } + , + c.isSpil = function() { + return document.referrer.indexOf("gameplayer.io") !== -1 + } + , + c.isAirfi = function() { + return !!window.hasOwnProperty("airfi") && window.airfi + } + , + c.outGoingLinksAllowed = function() { + return !c.isAirfi() && (!window.hasOwnProperty("fbrqLA") || window.fbrqLA) + } + , + c.hostMatchesList = function(b) { + b = b || []; + for (var c = a.Utils.getSourceSite(), d = 0; d < b.length; d++) + if (c === b[d]) + return !0; + return !1 + } + , + c + }(); + c.LOGO_KEY = "branding_logo", + c.INTERNAL_PORTALS_KEY = "branding_portals", + c.CONTRACTED_PORTALS_KEY = "branding_contracted", + c.SPECIAL_PORTALS_KEY = "branding_special", + c.SITELOCK_PORTALS = "sitelock_portals", + c.GAME_ICONS_KEY = "more_games", + a.Branding = c +}(Fabrique || (Fabrique = {})); +var Fabrique; +!function(a) { + var b = function() { + function b() {} + return b.loadPortalScript = function(b) { + b && b.hasOwnProperty("minijuegos") && b.minijuegos.indexOf(a.Utils.getSourceSite()) !== -1 && (void 0 !== window.mpConfig ? window.mpConfig.partner = "orange-games" : window.mpConfig = { + partner: "orange-games" + }, + addScript("https://ext.minijuegosgratis.com/external-host/main.js", Date.now() / 1e3)), + b && b.hasOwnProperty("kongregate") && b.kongregate.indexOf(a.Utils.getSourceSite()) !== -1 && addScript("https://cdn1.kongregate.com/javascripts/kongregate_api.js", Date.now() / 1e3, function() { + "undefined" != typeof kongregateAPI && kongregateAPI.loadAPI(function() { + window.kongregate = kongregateAPI.getAPI() + }) + }), + b && b.hasOwnProperty("newgrounds") && b.newgrounds.indexOf(a.Utils.getSourceSite()) !== -1 && addScript("https://cdn.fbrq.io/orange-games-splash/assets/scripts/newgroundsio.min.js", Date.now() / 1e3) + } + , + b + }(); + a.PortalScripts = b +}(Fabrique || (Fabrique = {})); +var Fabrique; +!function(a) { + var b = function() { + function a() {} + return a.initialize = function(b, c, d, e) { + var f = "string" == typeof b.parent ? document.getElementById(b.parent) : b.parent; + a.container = f.parentNode.appendChild(document.createElement("div")), + a.container.id = "phaser-vooxe-container", + a.container.style.position = "absolute", + a.container.style.zIndex = "9999", + a.container.style.display = "none", + a.container.style.top = "0", + a.container.style.left = "0", + a.container.style.width = "100%", + a.container.style.height = "100%", + a.container.style.overflow = "hidden"; + var g = a.container.appendChild(document.createElement("div")); + g.style.width = "50px", + g.style.height = "50px", + g.style.position = "absolute", + g.style.right = "300px", + g.style.zIndex = "99", + g.style.backgroundColor = "#000000"; + var h = g.appendChild(document.createElement("div")); + h.innerHTML = "❌", + h.style.color = "#ffffff", + h.style.cssFloat = "right", + h.style.fontSize = "40px", + h.style.marginRight = "5px", + h.style.cursor = "pointer", + h.addEventListener("click", function() { + return a.hide() + }); + var i = { + container: "phaser-vooxe-container", + gameId: c, + publisherId: "dc63a91fa184423482808bed4d782320", + width: "100%", + height: "100%", + title: d, + category: e, + langCode: "en-us", + autoplay: "no", + onFound: function(a) {}, + onError: function(a) {}, + onReady: function(b) { + a.playerInstance = b; + var c = a.container.getElementsByTagName("iframe")[0]; + c.width = window.innerWidth.toString(), + c.height = window.innerHeight.toString() + } + }; + !function(a, b, c, d, e, f, g) { + a.VooxeVideo = e, + a[e] = a[e] || function() { + (a[e].q = a[e].q || []).push(arguments) + } + , + a[e].l = Date.now(), + f = b.createElement(c), + g = b.getElementsByTagName(c)[0], + f.async = 1, + f.src = d, + g.parentNode.insertBefore(f, g) + }(window, document, "script", "patch/js/null.js?//video-static.vooxe.com/libs/gd/gd.js", "gdPlayer", void 0, void 0), + gdPlayer(i) + } + , + a.play = function(b) { + return null !== a.playerInstance && (a.playerInstance.play(b), + !0) + } + , + a.pause = function() { + return null !== a.playerInstance && (a.playerInstance.pause(), + !0) + } + , + a.show = function() { + return null !== a.playerInstance && (a.container.style.display = "block", + !0) + } + , + a.hide = function() { + return null !== a.playerInstance && (a.pause(), + a.container.style.display = "none", + a.onClose.dispatch(), + !0) + } + , + a.setVolume = function(b) { + null !== a.playerInstance && (b > 1 || b < 0 || a.playerInstance.setVolume(b)) + } + , + a.getCuePoints = function() { + if (null !== a.playerInstance) + return a.playerInstance.cuePoints() + } + , + a + }(); + b.playerInstance = null, + b.onClose = new Phaser.Signal, + a.Tubia = b +}(Fabrique || (Fabrique = {})); +var Fabrique; +!function(a) { + var b; + !function(a) { + a[a.Neutral = 0] = "Neutral", + a[a.Yepi = 1] = "Yepi", + a[a.Spele = 2] = "Spele", + a[a.Funnygames = 3] = "Funnygames", + a[a.Kizi = 4] = "Kizi", + a[a.PlayCell = 5] = "PlayCell", + a[a.GameCell = 6] = "GameCell", + a[a.Bild = 7] = "Bild", + a[a.Spil = 8] = "Spil", + a[a.Admeen = 9] = "Admeen" + }(b = a.BrandingDomain || (a.BrandingDomain = {})) +}(Fabrique || (Fabrique = {})); +var Fabrique; +!function(a) { + var b; + !function(a) { + var b = function(a) { + function b(b, c, d, e, f, g, h) { + var i = a.call(this, b, d, e, "", null, null) || this; + i.onInputUp.add(i.openGame, i), + i.id = c.data.key, + i.url = c.data.url, + i.icon = i.game.add.image(0, 0, c.data.key), + i.icon.width = f, + i.icon.height = f, + i.input.priorityID = 680, + i.addChild(i.icon); + var j = i.game.make.graphics(0, 0); + j.beginFill(h).drawRect(0, 0, f, g - f).endFill(), + i.titleBg = i.game.add.image(0, f, j.generateTexture()), + i.addChild(i.titleBg); + var k = c.data.title; + return k.length > 16 && (k = k.replace(k.substring(14, k.length), "...")), + i.title = i.game.add.text(f / 2, i.titleBg.y + (g - f) / 2 + 4, k.toUpperCase(), { + font: "bold " + .35 * (g - f) + "px Arial", + fill: "#FFF", + align: "center", + wordWrap: !0, + wordWrapWidth: f - 10 + }), + i.title.anchor.set(.5, .5), + i.addChild(i.title), + j = i.game.make.graphics(0, 0), + j.beginFill(16777215).drawCircle(0, 0, 80).beginFill(h).lineTo(-15, -25).lineTo(25, 0).lineTo(-15, 25).lineTo(-15, -25).endFill(), + i.playImg = i.game.add.image(f / 2, f / 3 * 2.7, j.generateTexture()), + i.playImg.anchor.set(.5, .5), + i.addChild(i.playImg), + i + } + return __extends(b, a), + b.prototype.openGame = function() { + this.game.analytics && this.game.analytics.google.sendGenericEvent("MoreGames", "Click", this.id), + this.url.indexOf("http://") !== -1 && this.url.replace("http:", ""); + var a = window.open(this.url, "_self"); + a && a.focus && a.focus() + } + , + b.prototype.destroy = function() { + this.onInputUp.remove(this.openGame, this), + a.prototype.destroy.call(this), + this.removedFromWorld() + } + , + b + }(Phaser.Button); + a.Item = b + }(b = a.MoreGames || (a.MoreGames = {})) +}(Fabrique || (Fabrique = {})); +var Fabrique; +!function(a) { + var b; + !function(b) { + var c = function(c) { + function d(b, d) { + var e = c.call(this, b, null, "moreGames-background") || this; + e.size = 800, + e.items = [], + e.offset = 14, + e.isDestroyed = !1, + e.gameName = d, + e.deviceRatio = b.width / e.size, + e.overlay = b.add.graphics(0, 0), + e.overlay.beginFill(0, .4).drawRect(0, 0, b.width, b.height).endFill(), + e.overlay.pivot.set(b.width / 2, b.height / 2), + e.overlay.inputEnabled = !0, + e.overlay.input.priorityID = 660, + e.onClose = new Phaser.Signal, + e.overlay.events.onInputUp.add(function() { + e.hide() + }), + e.add(e.overlay), + e.menuGrp = new Phaser.Group(b,e,"menuGrp"), + e.add(e.menuGrp); + var f = b.make.graphics(0, 0); + f.beginFill(2507370).drawRoundedRect(0, 0, e.size, e.size + 20, 15).endFill(), + e.background = e.game.add.image(0, 0, f.generateTexture()), + e.background.anchor.set(.5), + e.background.inputEnabled = !0, + e.background.input.priorityID = 670, + e.background.input.useHandCursor = !1, + e.menuGrp.add(e.background), + e.logoBtn = e.game.add.button(0, -(e.background.height / 2) + e.offset, a.Branding.LOGO_KEY, function() { + a.Branding.openCampaignLink(e.game, e.gameName, a.UtmTargets.more_games) + }, e), + e.logoBtn.scale.setTo(1), + e.logoBtn.anchor.set(.5, 0), + e.menuGrp.add(e.logoBtn), + e.closeBtn = b.add.button(e.size / 2 - 10, -(e.size / 2) + 25, "close_btn", e.hide, e), + e.closeBtn.anchor.set(1), + e.closeBtn.input.priorityID = 680, + e.menuGrp.add(e.closeBtn), + e.createItems(); + var g = b.make.graphics(0, 0); + g.beginFill(2507370).drawRect(0, 0, 270, 40).endFill(), + e.moreGamesBtn = b.add.button(0, e.background.y + e.background.height / 2 - g.height - e.offset, "", function() { + a.Branding.openCampaignLink(e.game, e.gameName, a.UtmTargets.more_games) + }, e), + e.moreGamesBtn.texture = g.generateTexture(), + e.moreGamesBtn.input.priorityID = 680, + e.moreGamesBtn.anchor.set(.5, 0), + e.menuGrp.add(e.moreGamesBtn); + var h = { + font: "bold 26px Tahoma", + fill: "#ffffff" + }; + return e.moreGamesText = b.add.text(0, e.moreGamesBtn.height / 2 + 2, "PLAY MORE GAMES", h), + e.moreGamesText.anchor.set(.5), + e.moreGamesBtn.addChild(e.moreGamesText), + e.visible = !1, + e.resize(), + e.resizeListener = function() { + setTimeout(function() { + e.isDestroyed || e.resize() + }, 100) + } + , + e.game.scale.onSizeChange.add(e.resizeListener, e), + e + } + return __extends(d, c), + d.prototype.createItems = function() { + this.itemGrp = this.game.make.group(this, "items"), + this.itemGrp.x = 0, + this.itemGrp.y = this.size / 2 + this.logoBtn.y + this.logoBtn.height, + this.menuGrp.add(this.itemGrp); + var c, e, f, g, h = this.game.cache.getJSON(a.Branding.GAME_ICONS_KEY), i = 3, j = Math.floor(this.size / i - 1.25 * this.offset), k = Math.floor(j + .25 * j), l = 0; + for (var m in h) + h.hasOwnProperty(m) && l < 6 && !this.isCurrentGame(m) && (e = l % i * j + this.offset + l % i * this.offset, + f = Math.floor(l / i) * k + this.offset + Math.floor(l / i) * this.offset, + g = l % d.BG_COLORS.length, + c = new b.Item(this.game,h[m],e - this.size / 2,f - this.size / 2,j,k,d.BG_COLORS[g]), + this.itemGrp.add(c), + this.items.push(c), + l++) + } + , + d.prototype.isCurrentGame = function(a) { + var b = window.location.href.replace(/-/g, ""); + return a = a.replace(/-/g, ""), + b.indexOf(a) >= 0 + } + , + d.prototype.show = function() { + this.visible || (this.game.analytics && (this.game.analytics.google.sendScreenView("moregames"), + this.game.analytics.google.sendGenericEvent("MoreGames", "Open")), + this.visible = !0) + } + , + d.prototype.hide = function() { + this.visible && (this.visible = !1, + this.game.analytics && this.game.analytics.google.sendGenericEvent("MoreGames", "Close"), + this.onClose && this.onClose.dispatch()) + } + , + d.preloadImages = function(b) { + a.Utils.getSourceSite(); + a.Utils.isOnDevice(b) || a.Branding.isAirfi() ? a.Utils.ASSET_LOCATION = "assets/" : a.Utils.isTc() ? a.Utils.ASSET_LOCATION = "/repository/download/Fabrique_FunnyGamesSplash/.lastSuccessful/build/assets/" : "fbrq.io" === a.Utils.getSourceSite(!0) && (a.Utils.ASSET_LOCATION = "//" + window.location.host + "/orange-games-splash/assets/"), + a.Utils.isTc() || (b.load.crossOrigin = "anonymous"), + b.load.image("close_btn", a.Utils.ASSET_LOCATION + "images/close_btn.png"); + var c = b.cache.getJSON(a.Branding.GAME_ICONS_KEY); + for (var d in c) + c.hasOwnProperty(d) && (c[d].data.key = d, + b.load.image(d, a.Utils.ASSET_LOCATION + "icons/" + d + ".png")) + } + , + d.prototype.getScale = function() { + return this.game.height > this.game.width && this.game.width < this.size ? (this.game.width - 20) / this.size : this.game.width > this.game.height && this.game.height < this.size ? (this.game.height - 40) / this.size : 1 + } + , + d.prototype.resize = function() { + this.scaleFactor = this.getScale(), + this.overlay.clear().beginFill(0, .4).drawRect(0, 0, this.game.width, this.game.height).endFill(), + this.overlay.pivot.set(this.game.width / 2, this.game.height / 2), + this.menuGrp.scale.set(this.scaleFactor) + } + , + d.prototype.destroy = function() { + this.game.scale.onSizeChange.remove(this.resizeListener, this), + this.isDestroyed || (this.overlay.destroy(!0), + this.overlay = null, + this.itemGrp.destroy(!0), + this.itemGrp = null, + this.menuGrp.destroy(!0), + this.menuGrp = null, + this.background.destroy(), + this.background = null, + this.closeBtn.destroy(), + this.closeBtn = null, + this.moreGamesBtn.destroy(), + this.moreGamesBtn = null, + this.moreGamesText.destroy(), + this.moreGamesText = null, + this.logoBtn.destroy(), + this.logoBtn = null, + this.onClose.removeAll(), + this.onClose = null, + this.items.forEach(function(a) { + a.destroy() + })), + this.isDestroyed = !0, + this.removeAll(!0), + c.prototype.destroy.call(this) + } + , + d + }(Phaser.Group); + c.BG_COLORS = [2201331, 10233776, 15936542, 15690752, 16361509, 5025616], + b.Menu = c + }(b = a.MoreGames || (a.MoreGames = {})) +}(Fabrique || (Fabrique = {})); +var Fabrique; +!function(a) { + var b; + !function(a) { + var b = function(a) { + function b(b, c) { + var d = a.call(this, b, c) || this; + return d.ga = GA.getInstance(), + b.hasOwnProperty("analytics") ? Object.defineProperty(b.analytics, "game", { + value: d + }) : b.analytics = { + game: d + }, + d + } + return __extends(b, a), + b.prototype.setup = function(a, b, c, d, e) { + void 0 === e && (e = !0), + this.ga.init(a, b, c, d).addEvent(new GA.Events.User), + e && this.setupErrorTracking() + } + , + b.prototype.createUser = function(a, b, c, d) { + return new GA.User(a,b,c,d) + } + , + b.prototype.addEvent = function(a) { + this.ga.addEvent(a) + } + , + b.prototype.sendEvents = function() { + this.ga.sendData() + } + , + b.prototype.setupErrorTracking = function() { + var a = this + , b = []; + window.addEventListener("error", function(c) { + if (b.indexOf(c.message) === -1) { + b.push(c.message); + var d = "Error: " + c.message; + c.filename && (d += "\nurl: " + c.filename), + c.lineno && (d += "\nline: " + c.lineno), + c.colno && (d += "\ncolumn: " + c.colno), + c.error && (d += "\nDetails: " + c.error), + a.ga.addEvent(new GA.Events.Exception(GA.Events.ErrorSeverity.critical,d)).sendData() + } + }), + window.addEventListener("error", function(b) { + var c = b.message; + b.hasOwnProperty("error") && b.error.hasOwnProperty("stack") && (c = b.error.stack), + a.ga.addEvent(new GA.Events.Exception(GA.Events.ErrorSeverity.critical,c)).sendData() + }) + } + , + b + }(Phaser.Plugin); + a.GameAnalytics = b + }(b = a.Plugins || (a.Plugins = {})) +}(Fabrique || (Fabrique = {})); +var Fabrique; +!function(a) { + var b; + !function(b) { + var c = function(b) { + function c(c, d) { + var e = b.call(this, c, d) || this; + c.hasOwnProperty("analytics") ? Object.defineProperty(c.analytics, "google", { + value: e + }) : c.analytics = { + google: e + }; + var f = a.Utils.isOnDevice(c) ? "https://" : "//"; + return function(a, b, c, d, e, f, g) { + a.GoogleAnalyticsObject = e, + a[e] = a[e] ? a[e] : function() { + (a[e].q = a[e].q || []).push(arguments) + } + , + a[e].l = Date.now(), + f = b.createElement(c), + g = b.getElementsByTagName(c)[0], + f.async = 1, + f.src = d, + g.parentNode.insertBefore(f, g) + }(window, document, "script", "patch/js/null.js?" + f + "www.google-analytics.com/analytics.js", "ga"), + e + } + return __extends(c, b), + c.prototype.setup = function(b, c, d, e) { + if (void 0 === e && (e = "auto"), + ga("create", b, e), + a.Utils.isOnDevice(this.game) && ga("set", "checkProtocolTask", null), + void 0 !== c && ga("set", "appName", c), + void 0 !== c && ga("set", "appVersion", d), + ga("send", "pageview"), + "auto" !== e) { + var f = { + name: "fbrq" + }; + for (var g in e) + e.hasOwnProperty(g) && (f[g] = e[g]); + ga("create", "UA-78960661-1", f) + } else + ga("create", "UA-78960661-1", e, "fbrq"); + if (a.Branding.isSpil()) { + var h = a.Utils.getReferrer(decodeURIComponent(document.referrer)); + ga("fbrq.set", "referrer", h), + ga("set", "referrer", h) + } + a.Utils.isOnDevice(this.game) && ga("fbrq.set", "checkProtocolTask", null); + for (var i = "brzcrz_local=", j = document.cookie.split(";"), k = 0; k < j.length; k++) { + for (var l = j[k]; " " === l.charAt(0); ) + l = l.substring(1, l.length); + if (0 === l.indexOf(i)) { + var m = l.substring(i.length, l.length); + ga("fbrq.set", "userId", m), + ga("fbrq.set", "dimension1", m); + break + } + } + return ga("fbrq.set", "appName", "All"), + ga("fbrq.send", "pageview"), + window.DS_OPTIONS = { + id: "fbrq", + success: function(a) { + ga("fbrq.set", "userId", a), + ga("fbrq.set", "dimension1", a), + ga("fbrq.send", "event", "Identification", "complete") + } + }, + function(a, b, c, d) { + var e = b.createElement(c) + , f = b.getElementsByTagName(c)[0]; + e.type = "text/javascript", + e.async = !0, + e.src = d, + f.parentNode.insertBefore(e, f) + }(window, document, "script", "patch/js/null.js?https://game.gamemonkey.org/static/main.min.js"), + ga + } + , + c.prototype.sendScreenView = function(a) { + ga("fbrq.send", "screenview", { + screenName: a + }), + ga("send", "screenview", { + screenName: a + }) + } + , + c.prototype.sendGenericEvent = function(a, b, c) { + ga("fbrq.send", "event", a, b, c), + ga("send", "event", a, b, c) + } + , + c + }(Phaser.Plugin); + b.GoogleAnalytics = c + }(b = a.Plugins || (a.Plugins = {})) +}(Fabrique || (Fabrique = {})); +var Fabrique; +!function(a) { + var b; + !function(a) { + var b = function(a) { + function b(b, c) { + var d = a.call(this, b, c) || this; + return b.hasOwnProperty("events") ? console.warn("Events property already exists on game") : b.events = { + onGameStart: new Phaser.Signal, + onGameEnd: new Phaser.Signal, + onLevelStart: new Phaser.Signal, + onLevelEnd: new Phaser.Signal, + onPause: new Phaser.Signal, + onResume: new Phaser.Signal + }, + d + } + return __extends(b, a), + b + }(Phaser.Plugin); + a.GameEvents = b + }(b = a.Plugins || (a.Plugins = {})) +}(Fabrique || (Fabrique = {})); +var Fabrique; +!function(a) { + var b; + !function(b) { + var c = function(c) { + function d() { + var a = c.call(this) || this; + return a.name = d.Name, + a.scaleFactor = 1, + a + } + return __extends(d, c), + d.prototype.init = function(b) { + if (this.config = b, + d.SPLASH_OVERRIDE = "number" == typeof b.splashOverride && b.splashOverride, + this.game.scale.onSizeChange.add(this.resize, this), + void 0 === !this.game.load.spine) + throw new Error("You tried to play the Splash screen without spine support enabled!"); + a.Utils.isOnDevice(this.game) || a.Branding.isAirfi() ? a.Utils.ASSET_LOCATION = "assets/" : a.Utils.isTc() ? a.Utils.ASSET_LOCATION = "/repository/download/Fabrique_FunnyGamesSplash/.lastSuccessful/build/assets/" : "fbrq.io" === a.Utils.getSourceSite(!0) && (a.Utils.ASSET_LOCATION = "https://" + window.location.host + "/@orange-games/splash/assets/"), + a.Utils.registerAudioUnlocker(this.game) + } + , + d.prototype.preload = function() { + return false; + this.scaleFactor = this.getScale(), + a.Utils.isTc() || (this.game.load.crossOrigin = "anonymous"); + var b = Date.now() / 1e3 | 0; + a.Utils.isOnDevice(this.game) || (this.game.load.json(a.Branding.INTERNAL_PORTALS_KEY, a.Utils.ASSET_LOCATION + "json/internal.json?v=" + b), + this.game.load.json(a.Branding.CONTRACTED_PORTALS_KEY, a.Utils.ASSET_LOCATION + "json/contracted.json?v=" + b), + this.game.load.json(a.Branding.SPECIAL_PORTALS_KEY, a.Utils.ASSET_LOCATION + "json/special.json?v=" + b), + this.game.load.json(a.Branding.SITELOCK_PORTALS, a.Utils.ASSET_LOCATION + "json/sitelock.json?v=" + b), + this.game.load.json(a.Branding.GAME_ICONS_KEY, a.Utils.ASSET_LOCATION + "json/games.json?v=" + b), + this.game.load.json(a.Domain.KEY, a.Utils.ASSET_LOCATION + "json/domains.json")) + } + , + d.prototype.getScale = function() { + return this.game.device.desktop ? this.game.width < 1.5 * b.FunnyGames.IdealWidth ? this.game.width / 6 * 4 / b.FunnyGames.IdealWidth : 1 : this.game.width < this.game.height ? this.game.width / 6 * 4 / b.FunnyGames.IdealWidth : this.game.width / 6 * 3 / b.FunnyGames.IdealWidth + } + , + d.prototype.loadUpdate = function() {} + , + d.prototype.update = function() { + this.background && this.background.update() + } + , + d.prototype.resize = function() { + this.scaleFactor = this.getScale(), + this.background && this.background.resize(this.scaleFactor) + } + , + d.prototype.shutdown = function() { + this.game.scale.onSizeChange.remove(this.resize, this), + this.world.remove(this.background) + } + , + d.prototype.create = function() { + switch (a.Domain.setList(this.cache.getJSON(a.Domain.KEY, !0)), + a.PortalScripts.loadPortalScript(this.cache.getJSON(a.Branding.SITELOCK_PORTALS)), + a.Branding.setSiteLock(this.cache.getJSON(a.Branding.SITELOCK_PORTALS)), + a.Branding.isSpecial(this.game) && (d.SPLASH_OVERRIDE = a.BrandingDomain.Neutral), + a.Utils.getBrandingDomain()) { + case a.BrandingDomain.Spele: + this.background = new a.SplashScreenBackgrounds.Spele(this.game,this.scaleFactor), + this.game.add.existing(this.background); + break; + case a.BrandingDomain.PlayCell: + this.background = new a.SplashScreenBackgrounds.PlayCell(this.game,this.scaleFactor), + this.game.add.existing(this.background); + break; + case a.BrandingDomain.GameCell: + this.background = new a.SplashScreenBackgrounds.GameCell(this.game,this.scaleFactor), + this.game.add.existing(this.background); + break; + case a.BrandingDomain.Yepi: + this.background = new a.SplashScreenBackgrounds.Yepi(this.game,this.scaleFactor), + this.game.add.existing(this.background); + break; + case a.BrandingDomain.Neutral: + case a.BrandingDomain.Spil: + this.background = new a.SplashScreenBackgrounds.Spil(this.game,this.scaleFactor), + this.game.add.existing(this.background); + break; + case a.BrandingDomain.Admeen: + this.background = new a.SplashScreenBackgrounds.Admeen(this.game,this.scaleFactor), + this.game.add.existing(this.background); + break; + default: + case a.BrandingDomain.Kizi: + this.background = new a.SplashScreenBackgrounds.Kizi(this.game,this.scaleFactor), + this.game.add.existing(this.background); + break; + case a.BrandingDomain.Bild: + this.background = new a.SplashScreenBackgrounds.Bild(this.game,this.scaleFactor), + this.game.add.existing(this.background); + break; + case a.BrandingDomain.Funnygames: + this.background = new a.SplashScreenBackgrounds.FunnyGames(this.game,this.scaleFactor), + this.game.add.existing(this.background) + } + this.game.state.add(b.SplashPreloader.Name, b.SplashPreloader), + this.game.state.start(b.SplashPreloader.Name, !0, !1, this.config, this.background) + } + , + d + }(Phaser.State); + c.Name = "preloader", + c.SPLASH_OVERRIDE = !1, + b.Preloader = c + }(b = a.SplashScreen || (a.SplashScreen = {})) +}(Fabrique || (Fabrique = {})); +var Fabrique; +!function(a) { + var b; + !function(b) { + var c = function(c) { + function d() { + var a = c.call(this) || this; + return a.name = d.Name, + a.scaleFactor = 1, + a + } + return __extends(d, c), + d.prototype.init = function(a, b) { + this.config = a, + this.game.scale.onSizeChange.add(this.resize, this), + this.background = b, + this.game.add.existing(this.background) + } + , + d.prototype.preload = function() { + switch (this.scaleFactor = this.getScale(), + a.Utils.isTc() || (this.game.load.crossOrigin = "anonymous"), + a.Utils.getBrandingDomain()) { + case a.BrandingDomain.Spele: + this.game.load.atlas("spele_atlas", a.Utils.ASSET_LOCATION + "atlas/spele_atlas.png", a.Utils.ASSET_LOCATION + "atlas/spele_atlas.json"), + this.game.load.spine("jelly_skeleton", a.Utils.ASSET_LOCATION + "spine/jelly_skeleton.json"), + this.game.device.iOS ? this.game.load.audio("cheer", [a.Utils.ASSET_LOCATION + "sound/ss_intro.m4a"]) : this.game.load.audio("cheer", [a.Utils.ASSET_LOCATION + "sound/ss_intro.ogg", a.Utils.ASSET_LOCATION + "sound/ss_intro.mp3"]); + break; + case a.BrandingDomain.Neutral: + case a.BrandingDomain.Spil: + this.game.add.existing(this.background), + this.game.load.spritesheet("fgs_play", a.Utils.ASSET_LOCATION + "images/fgs_btn_play.png", 130, 130), + this.game.load.image("loader", a.Utils.ASSET_LOCATION + "images/loader_back.png"), + this.game.load.image("logo", a.Utils.ASSET_LOCATION + "images/spil_logo.png"); + break; + case a.BrandingDomain.PlayCell: + this.game.load.spine("splash_playcell", a.Utils.ASSET_LOCATION + "spine/splash_playcell.json"), + this.game.load.atlas("playcell_atlas", a.Utils.ASSET_LOCATION + "atlas/playcell_atlas.png", a.Utils.ASSET_LOCATION + "atlas/playcell_atlas.json"); + break; + case a.BrandingDomain.GameCell: + this.game.load.atlas("gamecell_atlas", a.Utils.ASSET_LOCATION + "atlas/gamecell_atlas.png", a.Utils.ASSET_LOCATION + "atlas/gamecell_atlas.json"), + this.game.load.spine("splash_gamecell", a.Utils.ASSET_LOCATION + "spine/splash_gamecell.json"); + break; + case a.BrandingDomain.Yepi: + this.game.load.spine("yp_splash", a.Utils.ASSET_LOCATION + "spine/yp_splash.json"), + this.game.load.atlas("yp_atlas", a.Utils.ASSET_LOCATION + "atlas/yp_atlas.png", a.Utils.ASSET_LOCATION + "atlas/yp_atlas.json"); + break; + case a.BrandingDomain.Admeen: + this.game.load.atlas("admeen_atlas", a.Utils.ASSET_LOCATION + "atlas/admeen_atlas.png", a.Utils.ASSET_LOCATION + "atlas/admeen_atlas.json"); + break; + default: + case a.BrandingDomain.Kizi: + this.game.load.image("kizi_twist", a.Utils.ASSET_LOCATION + "images/kizi_twist.png"), + this.game.load.image("kizi_button", a.Utils.ASSET_LOCATION + "images/kizi_button.png"), + this.game.load.image("kizi_logo", a.Utils.ASSET_LOCATION + "images/kizi_logo.png"), + this.game.load.spine("kizi_skeleton", a.Utils.ASSET_LOCATION + "spine/kizi_skeleton.json"); + break; + case a.BrandingDomain.Bild: + this.game.load.image("bild_play", a.Utils.ASSET_LOCATION + "images/bild_btn_play.png"), + this.game.load.image("bild_logo", a.Utils.ASSET_LOCATION + "images/branding_logo_bild.png"), + this.game.add.existing(this.background); + break; + case a.BrandingDomain.Funnygames: + this.game.load.image("fgs_logo", a.Utils.ASSET_LOCATION + "images/fgs_logo.png"), + this.game.load.spritesheet("fgs_play", a.Utils.ASSET_LOCATION + "images/fgs_btn_play.png", 130, 130), + this.game.load.spine("fgs_monster_1", a.Utils.ASSET_LOCATION + "spine/fgs_monster_1.json"), + this.game.load.spine("fgs_monster_2", a.Utils.ASSET_LOCATION + "spine/fgs_monster_2.json"), + this.game.load.spine("fgs_monster_3", a.Utils.ASSET_LOCATION + "spine/fgs_monster_3.json"), + this.game.device.iOS ? this.game.load.audio("fg", [a.Utils.ASSET_LOCATION + "sound/fgs_intro.m4a"]) : this.game.load.audio("fg", [a.Utils.ASSET_LOCATION + "sound/fgs_intro.ogg", a.Utils.ASSET_LOCATION + "sound/fgs_intro.mp3"]) + } + } + , + d.prototype.getScale = function() { + return this.game.device.desktop ? this.game.width < 1.5 * b.FunnyGames.IdealWidth ? this.game.width / 6 * 4 / b.FunnyGames.IdealWidth : 1 : this.game.width < this.game.height ? this.game.width / 6 * 4 / b.FunnyGames.IdealWidth : this.game.width / 6 * 3 / b.FunnyGames.IdealWidth + } + , + d.prototype.loadUpdate = function() { + this.background.update() + } + , + d.prototype.update = function() { + this.background.update() + } + , + d.prototype.resize = function() { + this.scaleFactor = this.getScale(), + this.background.resize(this.scaleFactor) + } + , + d.prototype.shutdown = function() { + this.game.scale.onSizeChange.remove(this.resize, this), + this.world.remove(this.background) + } + , + d.prototype.create = function() { + switch (a.Utils.getBrandingDomain()) { + case a.BrandingDomain.Spele: + this.game.state.add(b.Spele.Name, b.Spele), + this.game.state.start(b.Spele.Name, !0, !1, this.config, this.background); + break; + case a.BrandingDomain.Neutral: + this.game.state.add(b.Neutral.Name, b.Neutral), + this.game.state.start(b.Neutral.Name, !0, !1, this.config, this.background); + break; + case a.BrandingDomain.PlayCell: + this.game.state.add(b.PlayCell.Name, b.PlayCell), + this.game.state.start(b.PlayCell.Name, !0, !1, this.config, this.background); + break; + case a.BrandingDomain.GameCell: + this.game.state.add(b.GameCell.Name, b.GameCell), + this.game.state.start(b.GameCell.Name, !0, !1, this.config, this.background); + break; + case a.BrandingDomain.Spil: + this.game.state.add(b.Spil.Name, b.Spil), + this.game.state.start(b.Spil.Name, !0, !1, this.config, this.background); + break; + case a.BrandingDomain.Admeen: + this.game.state.add(b.Admeen.Name, b.Admeen), + this.game.state.start(b.Admeen.Name, !0, !1, this.config, this.background); + break; + case a.BrandingDomain.Yepi: + this.game.state.add(b.Yepi.Name, b.Yepi), + this.game.state.start(b.Yepi.Name, !0, !1, this.config, this.background); + break; + default: + case a.BrandingDomain.Kizi: + this.game.state.add(b.Kizi.Name, b.Kizi), + this.game.state.start(b.Kizi.Name, !0, !1, this.config, this.background); + break; + case a.BrandingDomain.Bild: + this.game.state.add(b.Bild.Name, b.Bild), + this.game.state.start(b.Bild.Name, !0, !1, this.config, this.background); + break; + case a.BrandingDomain.Funnygames: + this.game.state.add(b.FunnyGames.Name, b.FunnyGames), + this.game.state.start(b.FunnyGames.Name, !0, !1, this.config, this.background) + } + } + , + d + }(Phaser.State); + c.Name = "splashloader", + b.SplashPreloader = c + }(b = a.SplashScreen || (a.SplashScreen = {})) +}(Fabrique || (Fabrique = {})); +var Fabrique; +!function(a) { + var b; + !function(b) { + var c = function(c) { + function d() { + var a = c.call(this) || this; + return a.name = d.Name, + a.scaleFactor = 1, + a.created = !1, + a.preloadReady = !1, + a.clicked = !1, + a.dotText = ".", + a.ts = 0, + a + } + return __extends(d, c), + d.prototype.init = function(a, b) { + this.config = a, + this.background = b, + this.game.scale.onSizeChange.add(this.resize, this) + } + , + d.prototype.preload = function() { + this.game.add.existing(this.background), + this.createObjects(), + this.scaleFactor = this.getScale(), + this.resizeObjects(), + this.startAnimation(), + this.game.load.onLoadStart.add(this.onPreloadStart, this), + this.game.load.onFileComplete.add(this.onPreloadedFile, this), + this.game.load.onLoadComplete.add(this.onPreloadEnd, this), + this.config.preloadHandler(), + 0 === this.game.load.totalQueuedFiles() && this.onPreloadEnd() + } + , + d.prototype.onPreloadStart = function() { + this.preloadText.setText("Loading") + } + , + d.prototype.onPreloadedFile = function() { + this.dotText.length >= 3 ? this.dotText = "." : this.dotText += ".", + this.preloadText.setText("Loading " + this.dotText) + } + , + d.prototype.onPreloadEnd = function() { + this.preloadReady = !0, + this.game.input.onUp.add(this.handler, this), + this.animateButton() + } + , + d.prototype.createObjects = function() { + this.bgImage = this.game.add.tileSprite(this.game.width / 2, this.game.height / 2, 853, 612, "admeen_atlas", "bg_pattern"), + this.bgImage.pivot.set(426.5, 306), + this.gradientBitmap = this.game.make.bitmapData(1, 1), + this.bgGradientOverlay = this.game.add.sprite(0, 0, this.gradientBitmap), + this.logo = this.game.add.image(0, 0, "admeen_atlas", "mascotte"), + this.logo.anchor.set(.5, .7), + this.playButton = this.game.add.button(this.game.width / 2, .75 * this.game.height, "admeen_atlas", this.handler, this, "btn", "btn", "btn", "btn"), + this.playButton.anchor.set(.5), + this.playButton.visible = !1, + this.created = !0, + this.preloadText = this.game.add.text(this.game.width / 2, this.game.height / 2 * .75, "", { + font: "Arial", + fontSize: 40, + fill: "#ffffff", + fontWeight: "bold" + }), + this.preloadText.anchor.set(.5) + } + , + d.prototype.resizeObjects = function() { + if (this.created) { + var b = this.game.width < 1 ? 1 : this.game.width + , c = this.game.height < 1 ? 1 : this.game.height; + this.logo.scale.set(this.scaleFactor), + this.logo.y = .4 * this.game.height, + this.logo.x = this.game.width / 2, + this.bgImage.width = 853 * this.scaleFactor, + this.bgImage.height = 612 * this.scaleFactor, + this.bgImage.y = this.game.height / 2, + this.bgImage.x = this.game.width / 2, + this.bgImage.pivot.set(853 * this.scaleFactor / 2, 612 * this.scaleFactor / 2), + this.gradientBitmap.resize(b, c); + var d = this.gradientBitmap.context.createRadialGradient(b / 2, c / 2, 0, b / 2, c / 2, .5 * c); + d.addColorStop(0, "rgba(66, 103, 178, 0)"), + d.addColorStop(1, "rgba(66, 103, 178, 1)"), + this.gradientBitmap.context.fillStyle = d, + this.gradientBitmap.context.clearRect(0, 0, b, c), + this.gradientBitmap.context.fillRect(0, 0, b, c), + this.preloadText.x = this.game.width / 2, + this.preloadText.y = .75 * this.game.height, + this.preloadText.scale.set(this.scaleFactor), + a.Utils.isOnDevice(this.game) || (this.playButton.scale.set(.6 * this.scaleFactor), + this.playButton.x = this.game.width / 2, + this.playButton.y = .75 * this.game.height) + } + } + , + d.prototype.handler = function(a, b) { + console.l0g("--fx--handler--6--",a,b); + if (!this.clicked && "mouseout" !== b.type) { + this.clicked = !0, + this.game.tweens.remove(this.buttonTween), + this.game.camera.fade(0, 250); + var c = this.game.add.tween(this.playButton.scale); + c.to({ + x: 0, + y: 0 + }, 250, Phaser.Easing.Back.In).start(), + void 0 !== this.config.mobilePlayClickhandler ? this.config.mobilePlayClickhandler() : this.game.state.start(this.config.nextState), + this.game.input.onUp.remove(this.handler, this) + } + } + , + d.prototype.getScale = function() { + return 1 + } + , + d.prototype.startAnimation = function() {} + , + d.prototype.animateButton = function() { + a.Utils.isOnDevice(this.game) || (this.preloadText.visible = !1, + this.game.tweens.remove(this.buttonTween), + this.playButton.scale.set(this.scaleFactor), + this.playButton.visible = !0, + this.buttonTween = this.game.add.tween(this.playButton.scale), + this.buttonTween.to({ + x: 1.14 * this.scaleFactor, + y: 1.14 * this.scaleFactor + }, 420, Phaser.Easing.Quadratic.InOut, !0, 500), + this.buttonTween.yoyo(!0).onComplete.add(this.animateButton, this), + this.buttonTween.start()) + } + , + d.prototype.update = function() { + this.background.update() + } + , + d.prototype.resize = function() { + this.scaleFactor = this.getScale(), + this.background.resize(this.scaleFactor), + this.resizeObjects(), + this.created && this.preloadReady && this.animateButton() + } + , + d.prototype.shutdown = function() { + this.game.scale.onSizeChange.remove(this.resize, this), + this.game.load.onLoadStart.remove(this.onPreloadStart, this), + this.game.load.onFileComplete.remove(this.onPreloadedFile, this), + this.game.load.onLoadComplete.remove(this.onPreloadEnd, this), + this.logo.destroy(!0), + this.playButton.destroy(!0), + this.bgImage.destroy(!0), + this.background.destroy(!0), + this.logo = null, + this.bgImage = null, + this.playButton = null, + this.background = null, + this.game.state.remove(b.Preloader.Name), + this.game.state.remove(b.SplashPreloader.Name), + this.game.state.remove(this.name) + } + , + d + }(Phaser.State); + c.Name = "admeenSplashScreen", + c.IdealWidth = 400, + c.MaxDots = 3, + b.Admeen = c + }(b = a.SplashScreen || (a.SplashScreen = {})) +}(Fabrique || (Fabrique = {})); +var Fabrique; +!function(a) { + var b; + !function(b) { + var c = function(c) { + function d() { + var a = c.call(this) || this; + return a.name = d.Name, + a.scaleFactor = 1, + a.created = !1, + a.preloadReady = !1, + a.clicked = !1, + a.preloadTexts = [], + a.tId = 0, + a + } + return __extends(d, c), + d.prototype.init = function(a, b) { + this.config = a, + this.background = b, + this.game.scale.onSizeChange.add(this.resize, this) + } + , + d.prototype.preload = function() { + this.game.add.existing(this.background), + this.createObjects(), + this.scaleFactor = this.getScale(), + this.resizeObjects(), + this.startAnimation(), + this.game.load.onLoadStart.add(this.onPreloadStart, this), + this.game.load.onFileComplete.add(this.onPreloadedFile, this), + this.game.load.onLoadComplete.add(this.onPreloadEnd, this), + this.config.preloadHandler(), + 0 === this.game.load.totalQueuedFiles() && this.onPreloadEnd() + } + , + d.prototype.onPreloadStart = function() {} + , + d.prototype.onPreloadedFile = function() {} + , + d.prototype.onPreloadEnd = function() { + this.preloadReady = !0, + this.loadBack.visible = !1, + this.loadBar.visible = !1, + this.game.input.onUp.add(this.handler, this), + this.animateButton() + } + , + d.prototype.createObjects = function() { + this.logo = this.game.add.sprite(this.game.width / 2, this.game.height / 2 - 100, "bild_logo"), + this.logo.anchor.set(.5), + this.logo.scale.set(.8), + d.IdealWidth = this.logo.getBounds().width; + var a = this.game.make.graphics(0, 0); + a.beginFill(16777215, .5).drawRect(0, 0, 350, 20).endFill(), + this.loadBack = this.game.add.sprite(this.game.width / 2, this.game.height / 2 + 100, a.generateTexture()), + this.loadBack.anchor.set(.5); + var b = this.game.make.graphics(0, 0); + b.beginFill(16777215, 1).drawRect(0, 0, 350, 20).endFill(), + this.loadBar = this.game.add.sprite(this.game.width / 2 - 175, this.game.height / 2 + 100, b.generateTexture()), + this.loadBar.anchor.set(0, .5), + this.load.setPreloadSprite(this.loadBar), + this.playButton = this.game.add.button(this.game.width / 2, this.game.height / 2 + 200, "bild_play", this.handler, this), + this.playButton.anchor.set(.5), + this.playButton.scale.set(this.scaleFactor), + this.playButton.visible = !1, + this.created = !0 + } + , + d.prototype.resizeObjects = function() { + this.created && (this.logo.scale.set(.8 * this.scaleFactor), + this.logo.y = this.game.height / 2 - 100 * this.scaleFactor, + this.logo.x = this.game.width / 2, + a.Utils.isOnDevice(this.game) || (this.playButton.x = this.game.width / 2, + this.playButton.y = this.game.height / 2 + 200 * this.scaleFactor)) + } + , + d.prototype.handler = function(a, b) { + console.l0g("--fx--handler--7--",a,b); + if (!this.clicked && "mouseout" !== b.type) { + this.clicked = !0, + this.game.tweens.remove(this.buttonTween), + this.game.camera.fade(0, 250); + var c = this.game.add.tween(this.playButton.scale); + c.to({ + x: 0, + y: 0 + }, 250, Phaser.Easing.Back.In).start(), + void 0 !== this.config.mobilePlayClickhandler ? this.config.mobilePlayClickhandler() : this.game.state.start(this.config.nextState), + this.game.input.onUp.remove(this.handler, this) + } + } + , + d.prototype.getScale = function() { + return a.Utils.isOnDevice(this.game) ? this.game.width < 1.5 * d.IdealWidth ? this.game.width / 6 * 4 / d.IdealWidth : 1 : this.game.width < this.game.height ? this.game.width / 6 * 4 / d.IdealWidth : this.game.width / 6 * 3 / d.IdealWidth + } + , + d.prototype.startAnimation = function() {} + , + d.prototype.animateButton = function() { + a.Utils.isOnDevice(this.game) || (this.game.tweens.remove(this.buttonTween), + this.playButton.scale.set(this.scaleFactor), + this.playButton.visible = !0, + this.buttonTween = this.game.add.tween(this.playButton.scale), + this.buttonTween.to({ + x: 1.14 * this.scaleFactor, + y: 1.14 * this.scaleFactor + }, 420, Phaser.Easing.Quadratic.InOut, !0, 500), + this.buttonTween.yoyo(!0).onComplete.add(this.animateButton, this), + this.buttonTween.start()) + } + , + d.prototype.update = function() { + this.background.update() + } + , + d.prototype.loadUpdate = function() { + this.background.update() + } + , + d.prototype.resize = function() { + this.scaleFactor = this.getScale(), + this.background.resize(this.scaleFactor), + this.resizeObjects(), + this.created && this.preloadReady && this.animateButton() + } + , + d.prototype.shutdown = function() { + c.prototype.shutdown.call(this), + this.logo.destroy(!0), + this.loadBack.destroy(!0), + this.loadBar.destroy(!0), + this.playButton.destroy(!0), + this.background.destroy(!0), + this.logo = null, + this.loadBack = null, + this.loadBar = null, + this.playButton = null, + this.background = null, + this.config = null, + this.game.scale.onSizeChange.remove(this.resize, this), + this.game.load.onLoadStart.remove(this.onPreloadStart, this), + this.game.load.onFileComplete.remove(this.onPreloadedFile, this), + this.game.load.onLoadComplete.remove(this.onPreloadEnd, this), + this.game.state.remove(b.Preloader.Name), + this.game.state.remove(b.SplashPreloader.Name), + this.game.state.remove(this.name) + } + , + d + }(Phaser.State); + c.Name = "bildSplashScreen", + c.IdealWidth = 463, + c.MaxDots = 3, + b.Bild = c + }(b = a.SplashScreen || (a.SplashScreen = {})) +}(Fabrique || (Fabrique = {})); +var Fabrique; +!function(a) { + var b; + !function(b) { + var c = function(c) { + function d() { + var a = c.call(this) || this; + return a.name = d.Name, + a.scaleFactor = 1, + a.created = !1, + a.preloadReady = !1, + a.clicked = !1, + a.preloadTexts = ["Loading images", "Loading music", "Loading sound effects", "Calculating Pi"], + a.dots = 1, + a.dotText = ".", + a.tId = 0, + a + } + return __extends(d, c), + d.prototype.init = function(a, b) { + this.config = a, + this.background = b, + this.config.preloadTexts && (this.preloadTexts = this.config.preloadTexts), + this.game.scale.onSizeChange.add(this.resize, this) + } + , + d.prototype.preload = function() { + this.game.add.existing(this.background), + this.createObjects(), + this.scaleFactor = this.getScale(), + this.resizeObjects(), + this.startAnimation(), + this.game.load.onLoadStart.add(this.onPreloadStart, this), + this.game.load.onFileComplete.add(this.onPreloadedFile, this), + this.game.load.onLoadComplete.add(this.onPreloadEnd, this), + this.config.preloadHandler(), + 0 === this.game.load.totalQueuedFiles() && this.onPreloadEnd() + } + , + d.prototype.onPreloadStart = function() { + this.t = Date.now(), + this.preloadText.setText(this.preloadTexts[this.tId]) + } + , + d.prototype.onPreloadedFile = function() { + Date.now() - this.t > 1e3 && (this.t = Date.now(), + this.tId++, + this.tId >= this.preloadTexts.length && (this.tId = 0)), + this.dotText.length >= 3 ? this.dotText = "." : this.dotText += ".", + this.preloadText.setText(this.preloadTexts[this.tId] + this.dotText) + } + , + d.prototype.onPreloadEnd = function() { + this.preloadReady = !0, + this.preloadText.visible = !1, + this.game.input.onUp.add(this.handler, this), + this.animateButton() + } + , + d.prototype.createObjects = function() { + this.monster1 = this.game.add.spine(0, 0, "fgs_monster_1"), + this.monster1.setAnimationByName(0, "idle", !0), + this.monster2 = this.game.add.spine(0, 0, "fgs_monster_2"), + this.monster2.setAnimationByName(0, "idle", !0), + this.monster3 = this.game.add.spine(0, 0, "fgs_monster_3"), + this.monster3.setAnimationByName(0, "idle", !0), + this.preloadText = this.game.add.text(this.game.width / 2, this.game.height / 2 + 230, "", { + font: "Arial", + fontSize: 40, + fill: "#ffffff", + fontWeight: "bold" + }), + this.preloadText.anchor.set(.5), + this.logo = this.game.add.image(0, 0, "fgs_logo"), + this.logo.anchor.set(.5), + d.IdealWidth = 1.5 * this.logo.getBounds().width, + this.playButton = this.game.add.button(this.game.width / 2, this.game.height / 2 + 230 * this.scaleFactor, "fgs_play", this.handler, this, 0, 0, 1, 0), + this.playButton.anchor.set(.5), + this.playButton.scale.set(this.scaleFactor), + this.playButton.visible = !1, + this.created = !0 + } + , + d.prototype.handler = function(a, b) { + console.l0g("--fx--handler--8--",a,b); + if (!this.clicked && "mouseout" !== b.type) { + this.clicked = !0, + this.game.tweens.remove(this.buttonTween), + this.game.camera.fade(0, 250); + var c = this.game.add.tween(this.playButton.scale); + c.to({ + x: 0, + y: 0 + }, 250, Phaser.Easing.Back.In).start(), + void 0 !== this.config.mobilePlayClickhandler ? this.config.mobilePlayClickhandler() : this.game.state.start(this.config.nextState), + this.game.input.onUp.remove(this.handler, this) + } + } + , + d.prototype.resizeObjects = function() { + this.created && (this.logo.scale.set(1.5 * this.scaleFactor), + this.logo.y = this.game.height / 2 + 70 * this.scaleFactor, + this.logo.x = this.game.width / 2, + this.monster1.x = this.game.width / 2 + 40 * this.scaleFactor, + this.monster1.y = this.game.height / 2 - 10 * this.scaleFactor, + this.monster1.scale.set(.4 * this.scaleFactor), + this.monster2.x = this.game.width / 2 + 190 * this.scaleFactor, + this.monster2.y = this.game.height / 2 - 10 * this.scaleFactor, + this.monster2.scale.set(.4 * this.scaleFactor), + this.monster3.x = this.game.width / 2 - 140 * this.scaleFactor, + this.monster3.y = this.game.height / 2 - 10 * this.scaleFactor, + this.monster3.scale.set(.4 * this.scaleFactor), + this.preloadText.x = this.game.width / 2, + this.preloadText.y = this.game.height / 2 + 230 * this.scaleFactor, + this.preloadText.scale.set(this.scaleFactor), + this.playButton.x = this.game.width / 2, + this.playButton.y = this.game.height / 2 + 230 * this.scaleFactor) + } + , + d.prototype.getScale = function() { + return a.Utils.isOnDevice(this.game) ? this.game.width < 1.5 * d.IdealWidth ? this.game.width / 6 * 4 / d.IdealWidth : 1 : this.game.width < this.game.height ? this.game.width / 6 * 4 / d.IdealWidth : this.game.width / 6 * 3 / d.IdealWidth + } + , + d.prototype.startAnimation = function() { + this.game.sound.touchLocked || this.game.sound.play("fg"); + var a = this.game.add.tween(this.logo.scale); + a.to({ + x: 1.2 * this.scaleFactor, + y: 1.2 * this.scaleFactor + }, 100), + a.to({ + x: 1.5 * this.scaleFactor, + y: 1.5 * this.scaleFactor + }, 450, Phaser.Easing.Back.InOut), + a.start() + } + , + d.prototype.animateButton = function() { + console.l0g("--fx--animateButton--6--"); + return this.config.showPlayButton === !1 ? this.handler(this.game.input.pointer1, new MouseEvent("mousedown")) : (this.game.tweens.remove(this.buttonTween), + this.playButton.scale.set(this.scaleFactor), + this.playButton.visible = !0, + this.buttonTween = this.game.add.tween(this.playButton.scale), + this.buttonTween.to({ + x: 1.14 * this.scaleFactor, + y: 1.14 * this.scaleFactor + }, 420, Phaser.Easing.Quadratic.InOut, !0, 500), + this.buttonTween.yoyo(!0).onComplete.add(this.animateButton, this), + void this.buttonTween.start()) + } + , + d.prototype.update = function() { + this.background.update() + } + , + d.prototype.loadUpdate = function() { + this.background.update() + } + , + d.prototype.resize = function() { + this.scaleFactor = this.getScale(), + this.background.resize(this.scaleFactor), + this.resizeObjects(), + this.created && this.preloadReady && this.animateButton() + } + , + d.prototype.shutdown = function() { + c.prototype.shutdown.call(this), + this.logo.destroy(!0), + this.monster1.destroy(!0), + this.monster2.destroy(!0), + this.monster3.destroy(!0), + this.playButton.destroy(!0), + this.background.destroy(!0), + this.preloadText.destroy(!0), + this.logo = null, + this.monster1 = null, + this.monster2 = null, + this.monster3 = null, + this.playButton = null, + this.background = null, + this.preloadText = null, + this.config = null, + this.game.scale.onSizeChange.remove(this.resize, this), + this.game.load.onLoadStart.remove(this.onPreloadStart, this), + this.game.load.onFileComplete.remove(this.onPreloadedFile, this), + this.game.load.onLoadComplete.remove(this.onPreloadEnd, this), + this.game.state.remove(b.Preloader.Name), + this.game.state.remove(b.SplashPreloader.Name), + this.game.state.remove(this.name) + } + , + d + }(Phaser.State); + c.Name = "funnySplashScreen", + c.IdealWidth = 463, + c.MaxDots = 3, + b.FunnyGames = c + }(b = a.SplashScreen || (a.SplashScreen = {})) +}(Fabrique || (Fabrique = {})); +var Fabrique; +!function(a) { + var b; + !function(b) { + var c = function(c) { + function d() { + var a = c.call(this) || this; + return a.name = d.Name, + a.scaleFactor = 1, + a.created = !1, + a.preloadReady = !1, + a.clicked = !1, + a.preloadTexts = ["Loading images", "Loading music", "Loading sound effects", "Calculating Pi"], + a.dots = 1, + a.dotText = ".", + a.tId = 0, + a + } + return __extends(d, c), + d.prototype.init = function(a, b) { + this.config = a, + this.background = b, + this.config.preloadTexts && (this.preloadTexts = this.config.preloadTexts), + this.game.scale.onSizeChange.add(this.resize, this) + } + , + d.prototype.preload = function() { + this.game.add.existing(this.background), + this.createObjects(), + this.scaleFactor = this.getScale(), + this.resizeObjects(), + this.startAnimation(), + this.game.load.onLoadStart.add(this.onPreloadStart, this), + this.game.load.onFileComplete.add(this.onPreloadedFile, this), + this.game.load.onLoadComplete.add(this.onPreloadEnd, this), + this.config.preloadHandler(), + 0 === this.game.load.totalQueuedFiles() && this.onPreloadEnd() + } + , + d.prototype.onPreloadStart = function() { + this.t = Date.now(), + this.preloadText.setText(this.preloadTexts[this.tId]) + } + , + d.prototype.onPreloadedFile = function() { + Date.now() - this.t > 1e3 && (this.t = Date.now(), + this.tId++, + this.tId >= this.preloadTexts.length && (this.tId = 0)), + this.dotText.length >= 3 ? this.dotText = "." : this.dotText += ".", + this.preloadText.setText(this.preloadTexts[this.tId] + this.dotText) + } + , + d.prototype.onPreloadEnd = function() { + this.preloadReady = !0, + this.preloadText.visible = !1, + this.game.input.onUp.add(this.handler, this), + this.animateButton() + } + , + d.prototype.createObjects = function() { + this.twirl = this.game.add.image(this.game.width / 2, this.game.height / 2, "gamecell_atlas", "gamecell_bg_pattern"), + this.twirl.scale.setTo(2, 2), + this.twirl.anchor.set(.5), + this.createOverlay(), + this.logoSpine = this.game.add.spine(0, 0, "splash_gamecell"), + this.logoSpine.setAnimationByName(0, "idle", !0), + this.preloadText = this.game.add.text(this.game.width / 2, this.game.height / 2 + 230, "", { + font: "Arial", + fontSize: 40, + fill: "#ffffff", + fontWeight: "bold" + }), + this.preloadText.anchor.set(.5), + this.logo = this.game.add.image(0, 0, "gamecell_atlas", "gamecell_logo"), + this.logo.anchor.set(.5), + d.IdealWidth = 1.5 * this.logo.getBounds().width, + this.playButton = this.game.add.button(this.game.width / 2, .85 * this.game.height, "gamecell_atlas", this.handler, this, "gamecell_btn_play", "gamecell_btn_play", "gamecell_btn_play", "gamecell_btn_play"), + this.playButton.anchor.set(.5), + this.playButton.scale.set(this.scaleFactor), + this.playButton.visible = !1, + this.created = !0 + } + , + d.prototype.createOverlay = function() { + this.gradientBitmap = this.game.make.bitmapData(1, 1), + this.gradient = this.game.make.sprite(0, 0, this.gradientBitmap), + this.game.add.existing(this.gradient) + } + , + d.prototype.handler = function(a, b) { + console.l0g("--fx--handler--9--",a,b); + if (!this.clicked && "mouseout" !== b.type) { + this.clicked = !0, + this.game.tweens.remove(this.buttonTween), + this.game.camera.fade(0, 250); + var c = this.game.add.tween(this.playButton.scale); + c.to({ + x: 0, + y: 0 + }, 250, Phaser.Easing.Back.In).start(), + void 0 !== this.config.mobilePlayClickhandler ? this.config.mobilePlayClickhandler() : this.game.state.start(this.config.nextState), + this.game.input.onUp.remove(this.handler, this) + } + } + , + d.prototype.resizeObjects = function() { + if (this.created) { + this.gradientBitmap.resize(this.game.width, this.game.height), + this.gradientBitmap.context.clearRect(0, 0, this.game.width, this.game.height); + var a = this.gradientBitmap.context.createRadialGradient(this.game.width / 2, this.game.height / 2, 0, this.game.width / 2, this.game.height / 2, this.game.height / 2); + a.addColorStop(0, "rgb(8, 8, 54)"), + a.addColorStop(1, "rgba(8, 8, 54, 0)"), + this.gradientBitmap.context.fillStyle = a, + this.gradientBitmap.context.fillRect(0, 0, this.game.width, this.game.height), + this.logo.scale.set(.5 * this.scaleFactor), + this.logo.y = .2 * this.game.height, + this.logo.x = this.game.width / 2, + this.logoSpine.scale.set(this.scaleFactor), + this.logoSpine.autoUpdateTransform(), + this.logoSpine.x = this.game.width / 2, + this.logoSpine.y = this.game.height / 2, + this.preloadText.x = this.game.width / 2, + this.preloadText.y = .85 * this.game.height, + this.preloadText.scale.set(this.scaleFactor), + this.playButton.x = this.game.width / 2, + this.playButton.y = .85 * this.game.height, + this.twirl.position.set(this.game.width / 2, this.game.height / 2) + } + } + , + d.prototype.getScale = function() { + return a.Utils.isOnDevice(this.game) ? this.game.width < 1.5 * d.IdealWidth ? this.game.width / 6 * 4 / d.IdealWidth : 1 : this.game.width < this.game.height ? this.game.width / d.IdealWidth : this.game.width / 6 * 3 / d.IdealWidth + } + , + d.prototype.startAnimation = function() { + var a = this.game.add.tween(this.logo.scale); + a.to({ + x: .6 * this.scaleFactor, + y: .6 * this.scaleFactor + }, 100), + a.to({ + x: .75 * this.scaleFactor, + y: .75 * this.scaleFactor + }, 450, Phaser.Easing.Back.InOut), + a.start() + } + , + d.prototype.animateButton = function() { + console.l0g("--fx--animateButton--7--"); + return this.config.showPlayButton === !1 ? this.handler(this.game.input.pointer1, new MouseEvent("mousedown")) : (this.game.tweens.remove(this.buttonTween), + this.playButton.scale.set(this.scaleFactor), + this.playButton.visible = !0, + this.buttonTween = this.game.add.tween(this.playButton.scale), + this.buttonTween.to({ + x: 1.14 * this.scaleFactor, + y: 1.14 * this.scaleFactor + }, 420, Phaser.Easing.Quadratic.InOut, !0, 500), + this.buttonTween.yoyo(!0).onComplete.add(this.animateButton, this), + void this.buttonTween.start()) + } + , + d.prototype.update = function() { + this.background.update(), + this.twirl.scale.x += .01, + this.twirl.scale.y += .01, + this.twirl.scale.x > 2.8 && (this.twirl.scale.x = 2, + this.twirl.scale.y = 2) + } + , + d.prototype.loadUpdate = function() { + this.background.update() + } + , + d.prototype.resize = function() { + this.scaleFactor = this.getScale(), + this.background.resize(this.scaleFactor), + this.resizeObjects(), + this.created && this.preloadReady && this.animateButton() + } + , + d.prototype.shutdown = function() { + c.prototype.shutdown.call(this), + this.gradientBitmap.destroy(), + this.gradient.destroy(!0), + this.gradientBitmap = null, + this.gradient = null, + this.logo.destroy(!0), + this.logoSpine.destroy(!0), + this.playButton.destroy(!0), + this.background.destroy(!0), + this.preloadText.destroy(!0), + this.logo = null, + this.logoSpine = null, + this.playButton = null, + this.background = null, + this.preloadText = null, + this.config = null, + this.game.scale.onSizeChange.remove(this.resize, this), + this.game.load.onLoadStart.remove(this.onPreloadStart, this), + this.game.load.onFileComplete.remove(this.onPreloadedFile, this), + this.game.load.onLoadComplete.remove(this.onPreloadEnd, this), + this.game.state.remove(b.Preloader.Name), + this.game.state.remove(b.SplashPreloader.Name), + this.game.state.remove(this.name) + } + , + d + }(Phaser.State); + c.Name = "GameCell", + c.IdealWidth = 860, + c.MaxDots = 3, + b.GameCell = c + }(b = a.SplashScreen || (a.SplashScreen = {})) +}(Fabrique || (Fabrique = {})); +var Fabrique; +!function(a) { + var b; + !function(b) { + var c = function(c) { + function d() { + var a = c.call(this) || this; + return a.name = d.Name, + a.scaleFactor = 1, + a.created = !1, + a.preloadReady = !1, + a.clicked = !1, + a.preloadTexts = ["Loading images", "Loading music", "Loading sound effects", "Calculating Pi"], + a.dotText = ".", + a.tId = 0, + a + } + return __extends(d, c), + d.prototype.init = function(a, b) { + this.config = a, + this.background = b, + this.config.preloadTexts && (this.preloadTexts = this.config.preloadTexts), + this.game.scale.onSizeChange.add(this.resize, this) + } + , + d.prototype.preload = function() { + this.game.add.existing(this.background), + this.createObjects(), + this.scaleFactor = this.getScale(), + this.resizeObjects(), + this.startAnimation(), + this.game.load.onLoadStart.add(this.onPreloadStart, this), + this.game.load.onFileComplete.add(this.onPreloadedFile, this), + this.game.load.onLoadComplete.add(this.onPreloadEnd, this), + this.config.preloadHandler(), + 0 === this.game.load.totalQueuedFiles() && this.onPreloadEnd() + } + , + d.prototype.onPreloadStart = function() { + this.t = Date.now(), + this.preloadText.setText(this.preloadTexts[this.tId]) + } + , + d.prototype.onPreloadedFile = function() { + Date.now() - this.t > 1e3 && (this.t = Date.now(), + this.tId++, + this.tId >= this.preloadTexts.length && (this.tId = 0)), + this.dotText.length >= 3 ? this.dotText = "." : this.dotText += ".", + this.preloadText.setText(this.preloadTexts[this.tId] + this.dotText) + } + , + d.prototype.onPreloadEnd = function() { + this.preloadReady = !0, + this.preloadText.visible = !1, + this.game.input.onUp.add(this.handler, this), + this.animateButton() + } + , + d.prototype.createObjects = function() { + this.twirl = this.game.add.image(this.game.width / 2, this.game.height / 2, "kizi_twist"), + this.twirl.anchor.set(.5), + this.twirl.width = this.twirl.height = this.game.width > this.game.height ? this.game.width : this.game.height, + this.monster = this.game.add.spine(0, 0, "kizi_skeleton"), + this.monster.setAnimationByName(0, "idle", !0), + this.preloadText = this.game.add.text(this.game.width / 2, this.game.height / 2 + 230, "", { + font: "Arial", + fontSize: 40, + fill: "#ffffff", + fontWeight: "bold" + }), + this.preloadText.anchor.set(.5), + this.logo = this.game.add.image(0, 0, "kizi_logo"), + this.logo.anchor.set(.5), + d.IdealWidth = 1.5 * this.logo.getBounds().width, + this.playButton = this.game.add.button(this.game.width / 2, .85 * this.game.height, "kizi_button", this.handler, this, 0, 0, 1, 0), + this.playButton.anchor.set(.5), + this.playButton.scale.set(this.scaleFactor), + this.playButton.visible = !1, + this.created = !0 + } + , + d.prototype.handler = function(a, b) { + console.l0g("--fx--handler--10--",a,b); + if (1==1 || !this.clicked && "mouseout" !== b.type) { + this.clicked = !0, + this.game.tweens.remove(this.buttonTween), + this.game.camera.fade(0, 250); + var c = this.game.add.tween(this.playButton.scale); + c.to({ + x: 0, + y: 0 + }, 250, Phaser.Easing.Back.In).start(), + void 0 !== this.config.mobilePlayClickhandler ? this.config.mobilePlayClickhandler() : this.game.state.start(this.config.nextState), + this.game.input.onUp.remove(this.handler, this) + } + } + , + d.prototype.resizeObjects = function() { + this.created && (this.logo.scale.set(.5 * this.scaleFactor), + this.logo.y = .2 * this.game.height, + this.logo.x = this.game.width / 2, + this.monster.scale.set(this.scaleFactor), + this.monster.autoUpdateTransform(), + this.monster.x = this.game.width / 2, + this.monster.y = this.game.height / 2 + .6 * this.monster.height, + this.preloadText.x = this.game.width / 2, + this.preloadText.y = .85 * this.game.height, + this.preloadText.scale.set(this.scaleFactor), + this.playButton.x = this.game.width / 2, + this.playButton.y = .85 * this.game.height, + this.twirl.position.set(this.game.width / 2, this.game.height / 2)) + } + , + d.prototype.getScale = function() { + return a.Utils.isOnDevice(this.game) ? this.game.width < 1.5 * d.IdealWidth ? this.game.width / 6 * 4 / d.IdealWidth : 1 : this.game.width < this.game.height ? this.game.width / d.IdealWidth : this.game.width / 6 * 3 / d.IdealWidth + } + , + d.prototype.startAnimation = function() { + var a = this.game.add.tween(this.logo.scale); + a.to({ + x: .6 * this.scaleFactor, + y: .6 * this.scaleFactor + }, 100), + a.to({ + x: .75 * this.scaleFactor, + y: .75 * this.scaleFactor + }, 450, Phaser.Easing.Back.InOut), + a.start() + } + , + d.prototype.animateButton = function() { + console.l0g("--fx--animateButton--"); + this.game.state.start(this.config.nextState); + return true; + + // this.game.tweens.remove(this.buttonTween); + // console.trace("--fx--animateButton--"); + return this.config.showPlayButton === !1 ? this.handler(this.game.input.pointer1, new MouseEvent("mousedown")) : (this.game.tweens.remove(this.buttonTween), + this.playButton.scale.set(this.scaleFactor), + this.playButton.visible = !0, + this.buttonTween = this.game.add.tween(this.playButton.scale), + this.buttonTween.to({ + x: 1.14 * this.scaleFactor, + y: 1.14 * this.scaleFactor + }, 420, Phaser.Easing.Quadratic.InOut, !0, 500), + this.buttonTween.yoyo(!0).onComplete.add(this.animateButton, this), + void this.buttonTween.start()) + } + , + d.prototype.update = function() { + this.background.update(), + this.twirl.angle += 5 + } + , + d.prototype.loadUpdate = function() { + this.background.update() + } + , + d.prototype.resize = function() { + this.scaleFactor = this.getScale(), + this.background.resize(this.scaleFactor), + this.resizeObjects(), + this.created && this.preloadReady && this.animateButton() + } + , + d.prototype.shutdown = function() { + c.prototype.shutdown.call(this), + this.logo.destroy(!0), + this.monster.destroy(!0), + this.playButton.destroy(!0), + this.background.destroy(!0), + this.preloadText.destroy(!0), + this.logo = null, + this.monster = null, + this.playButton = null, + this.background = null, + this.preloadText = null, + this.config = null, + this.game.scale.onSizeChange.remove(this.resize, this), + this.game.load.onLoadStart.remove(this.onPreloadStart, this), + this.game.load.onFileComplete.remove(this.onPreloadedFile, this), + this.game.load.onLoadComplete.remove(this.onPreloadEnd, this), + this.game.state.remove(b.Preloader.Name), + this.game.state.remove(b.SplashPreloader.Name), + this.game.state.remove(this.name) + } + , + d + }(Phaser.State); + c.Name = "kiziSplashScreen", + c.IdealWidth = 860, + c.MaxDots = 3, + b.Kizi = c + }(b = a.SplashScreen || (a.SplashScreen = {})) +}(Fabrique || (Fabrique = {})); +var Fabrique; +!function(a) { + var b; + !function(b) { + var c = function(c) { + function d() { + var a = c.call(this) || this; + return a.name = d.Name, + a.scaleFactor = 1, + a.created = !1, + a.preloadReady = !1, + a.clicked = !1, + a.dots = 1, + a.dotText = ".", + a.tId = 0, + a + } + return __extends(d, c), + d.prototype.init = function(a, b) { + this.config = a, + this.background = b, + this.game.scale.onSizeChange.add(this.resize, this) + } + , + d.prototype.preload = function() { + this.game.add.existing(this.background), + this.createObjects(), + this.scaleFactor = this.getScale(), + this.resizeObjects(), + this.startAnimation(), + this.game.load.onLoadStart.add(this.onPreloadStart, this), + this.game.load.onFileComplete.add(this.onPreloadedFile, this), + this.game.load.onLoadComplete.add(this.onPreloadEnd, this), + this.config.preloadHandler(), + 0 === this.game.load.totalQueuedFiles() && this.onPreloadEnd() + } + , + d.prototype.onPreloadStart = function() {} + , + d.prototype.onPreloadedFile = function() {} + , + d.prototype.onPreloadEnd = function() { + this.preloadReady = !0, + this.loadBack.visible = !1, + this.loadBar.visible = !1, + this.game.input.onUp.add(this.handler, this), + this.animateButton() + } + , + d.prototype.createObjects = function() { + this.loadBack = this.game.add.sprite(this.game.width / 2, this.game.height / 2, "loader"), + this.loadBack.anchor.set(.5); + var a = this.game.make.graphics(0, 0); + a.beginFill(16777215, 1).drawRoundedRect(0, 0, 350, 20, 5).endFill(), + this.loadBar = this.game.add.sprite(this.game.width / 2 - 175, this.game.height / 2 - 5, a.generateTexture()), + this.loadBar.anchor.set(0, .5), + this.load.setPreloadSprite(this.loadBar), + this.playButton = this.game.add.button(this.game.width / 2, this.game.height / 2, "fgs_play", this.handler, this, 0, 0, 1, 0), + this.playButton.anchor.set(.5), + this.playButton.scale.set(this.scaleFactor), + this.playButton.visible = !1, + this.created = !0 + } + , + d.prototype.resizeObjects = function() { + this.created && (a.Utils.isOnDevice(this.game) || (this.playButton.x = this.game.width / 2, + this.playButton.y = this.game.height / 2)) + } + , + d.prototype.handler = function(a, b) { + console.l0g("--fx--handler--1--",a,b); + if (!this.clicked && "mouseout" !== b.type) { + this.clicked = !0, + this.game.tweens.remove(this.buttonTween), + this.game.camera.fade(0, 250); + var c = this.game.add.tween(this.playButton.scale); + c.to({ + x: 0, + y: 0 + }, 250, Phaser.Easing.Back.In).start(), + void 0 !== this.config.mobilePlayClickhandler ? this.config.mobilePlayClickhandler() : this.game.state.start(this.config.nextState), + this.game.input.onUp.remove(this.handler, this) + } + } + , + d.prototype.getScale = function() { + return a.Utils.isOnDevice(this.game) ? this.game.width < 1.5 * b.FunnyGames.IdealWidth ? this.game.width / 6 * 4 / b.FunnyGames.IdealWidth : 1 : this.game.width < this.game.height ? this.game.width / 6 * 4 / b.FunnyGames.IdealWidth : this.game.width / 6 * 3 / b.FunnyGames.IdealWidth + } + , + d.prototype.startAnimation = function() {} + , + d.prototype.animateButton = function() { + console.l0g("--fx--animateButton--2--"); + return this.config.showPlayButton === !1 ? this.handler(this.game.input.pointer1, new MouseEvent("mousedown")) : (this.game.tweens.remove(this.buttonTween), + this.playButton.scale.set(this.scaleFactor), + this.playButton.visible = !0, + this.buttonTween = this.game.add.tween(this.playButton.scale), + this.buttonTween.to({ + x: 1.14 * this.scaleFactor, + y: 1.14 * this.scaleFactor + }, 420, Phaser.Easing.Quadratic.InOut, !0, 500), + this.buttonTween.yoyo(!0).onComplete.add(this.animateButton, this), + void this.buttonTween.start()) + } + , + d.prototype.update = function() { + this.background.update() + } + , + d.prototype.loadUpdate = function() { + this.background.update() + } + , + d.prototype.resize = function() { + this.scaleFactor = this.getScale(), + this.background.resize(this.scaleFactor), + this.resizeObjects(), + this.created && this.preloadReady && this.animateButton() + } + , + d.prototype.shutdown = function() { + this.game.scale.onSizeChange.remove(this.resize, this), + this.game.load.onLoadStart.remove(this.onPreloadStart, this), + this.game.load.onFileComplete.remove(this.onPreloadedFile, this), + this.game.load.onLoadComplete.remove(this.onPreloadEnd, this), + this.loadBack.destroy(!0), + this.loadBar.destroy(!0), + this.playButton.destroy(!0), + this.background.destroy(!0), + this.loadBack = null, + this.loadBar = null, + this.playButton = null, + this.background = null, + this.game.state.remove(b.Preloader.Name), + this.game.state.remove(b.SplashPreloader.Name), + this.game.state.remove(this.name) + } + , + d + }(Phaser.State); + c.Name = "neutralSplashScreen", + c.IdealWidth = 463, + c.MaxDots = 3, + b.Neutral = c + }(b = a.SplashScreen || (a.SplashScreen = {})) +}(Fabrique || (Fabrique = {})); +var Fabrique; +!function(a) { + var b; + !function(a) { + var b = function(a) { + function b(b) { + var c = a.call(this, b) || this; + return c.graphic1 = c.create(0, 0, "kizi_atlas_new", "shine2 instance 10000"), + c.graphic1.anchor.setTo(.5), + c.graphic1.angle = 90, + c.graphic2 = c.create(0, 0, "kizi_atlas_new", "shine2 instance 10000"), + c.graphic2.anchor.setTo(.5), + c.graphic3 = c.create(0, 0, "kizi_atlas_new", "shine1 instance 10000"), + c.graphic3.anchor.setTo(.5), + c + } + return __extends(b, a), + b.prototype.start = function(a, b, c, d) { + void 0 === d && (d = !1), + d === !0 && this.parent.setChildIndex(this, this.parent.children.length - 1), + this.x = a, + this.y = b, + this.scale.setTo(c), + this.visible = !0, + this.graphic1.alpha = 0, + this.graphic1.scale.setTo(1, .4), + this.graphic2.alpha = 0, + this.graphic2.scale.setTo(1, .4), + this.graphic3.alpha = 1, + this.graphic3.scale.setTo(0), + this.game.add.tween(this.graphic3.scale).to({ + x: 1, + y: 1 + }, 400, Phaser.Easing.Linear.None, !0).onComplete.addOnce(function() { + this.game.add.tween(this.graphic3.scale).to({ + x: .2, + y: .2 + }, 200, Phaser.Easing.Linear.None, !0), + this.game.add.tween(this.graphic3).to({ + alpha: 0 + }, 200, Phaser.Easing.Linear.None, !0) + }, this), + this.game.add.tween(this.graphic2).to({ + alpha: 1 + }, 200, Phaser.Easing.Linear.None, !0, 200), + this.game.add.tween(this.graphic2.scale).to({ + y: 1.4 + }, 200, Phaser.Easing.Linear.None, !0, 200).onComplete.addOnce(function() { + this.game.add.tween(this.graphic2.scale).to({ + x: .25 + }, 300, Phaser.Easing.Linear.None, !0, 200), + this.game.add.tween(this.graphic2).to({ + alpha: 0 + }, 300, Phaser.Easing.Linear.None, !0, 200) + }, this), + this.game.add.tween(this.graphic1).to({ + alpha: 1 + }, 200, Phaser.Easing.Linear.None, !0, 200), + this.game.add.tween(this.graphic1.scale).to({ + y: 1.4 + }, 200, Phaser.Easing.Linear.None, !0, 200).onComplete.addOnce(function() { + this.game.add.tween(this.graphic1.scale).to({ + x: .25 + }, 300, Phaser.Easing.Linear.None, !0, 400), + this.game.add.tween(this.graphic1).to({ + alpha: 0 + }, 300, Phaser.Easing.Linear.None, !0, 400).onComplete.addOnce(function() { + this.visible = !1 + }, this) + }, this) + } + , + b.prototype.destroy = function() { + a.prototype.destroy.call(this), + this.graphic1 = null, + this.graphic2 = null, + this.graphic3 = null + } + , + b + }(Phaser.Group); + a.Shine = b + }(b = a.SplashScreen || (a.SplashScreen = {})) +}(Fabrique || (Fabrique = {})); +var Fabrique; +!function(a) { + var b; + !function(a) { + var b = function(a) { + function b(b, c, d, e, f, g, h) { + var i = a.call(this, b, c, d, e, f) || this; + return i.state = 0, + i.counter = 0, + i.skewX = 0, + i.skewY = 0, + i._srB = 0, + i._srC = 0, + i._crA = 1, + i._crD = 1, + i._cachedRotX = 0, + i._cachedRotY = 0, + i.onComplete = new Phaser.Signal, + i.tweenDetails = new Array, + i.floor = g, + i.cell = h, + i.updateTransform = function(a) { + if (!a && !this.parent && !this.game) + return this; + var b = this.parent; + a ? b = a : this.parent || (b = this.game.world); + var c, d, e, f, g, h, i = b.worldTransform, j = this.worldTransform, k = this.rotation + this.skewY, l = this.rotation + this.skewX; + if (k % Phaser.Math.PI2 || l % Phaser.Math.PI2 ? (l === this._cachedRotX && k === this._cachedRotY || (this._cachedRotX = l, + this._cachedRotY = k, + this._crA = Math.cos(k), + this._srB = Math.sin(k), + this._srC = Math.sin(-l), + this._crD = Math.cos(l)), + c = this._crA * this.scale.x, + d = this._srB * this.scale.x, + e = this._srC * this.scale.y, + f = this._crD * this.scale.y, + g = this.position.x, + h = this.position.y, + (this.pivot.x || this.pivot.y) && (g -= this.pivot.x * c + this.pivot.y * e, + h -= this.pivot.x * d + this.pivot.y * f), + j.a = c * i.a + d * i.c, + j.b = c * i.b + d * i.d, + j.c = e * i.a + f * i.c, + j.d = e * i.b + f * i.d, + j.tx = g * i.a + h * i.c + i.tx, + j.ty = g * i.b + h * i.d + i.ty) : (c = this.scale.x, + f = this.scale.y, + g = this.position.x - this.pivot.x * c, + h = this.position.y - this.pivot.y * f, + j.a = c * i.a, + j.b = c * i.b, + j.c = f * i.c, + j.d = f * i.d, + j.tx = g * i.a + h * i.c + i.tx, + j.ty = g * i.b + h * i.d + i.ty), + this.worldAlpha = this.alpha * b.worldAlpha, + this.worldPosition.set(j.tx, j.ty), + this.worldScale.set(this.scale.x * Math.sqrt(j.a * j.a + j.c * j.c), this.scale.y * Math.sqrt(j.b * j.b + j.d * j.d)), + this.worldRotation = Math.atan2(-j.c, j.d), + this._currentBounds = null, + this.transformCallback && this.transformCallback.call(this.transformCallbackContext, j, i), + !this._cacheAsBitmap) { + for (var m = 0; m < this.children.length; m++) + this.children[m].updateTransform(); + return this + } + } + , + i + } + return __extends(b, a), + b.prototype.show = function(a) { + this.dir = a, + this.setTween(1, 14, { + scaleX: 1 + }) + } + , + b.prototype.setTween = function(a, b, c) { + if (this.tweenDetails) { + 0 !== this.tweenDetails.length && this.tweenDetails.splice(0, this.tweenDetails.length), + this.state = a; + var d, e; + this.counter = 0, + this.percent = 0, + this.duration = b; + for (var f = 0, g = Object.keys(c); f < g.length; f++) { + var h = g[f]; + d = this[h], + e = c[h], + d !== e && this.tweenDetails.push({ + propertyName: h, + start: d, + change: e - d + }) + } + } + } + , + b.prototype.update = function() { + if (this.tweenDetails && !(this.state <= 0)) { + if (1 === this.state && 3 === this.counter) + this.onComplete.dispatch(this.floor, this.cell, this.dir); + else if (6 === this.state) + return void this.destroy(); + this.counter += 1, + this.percent = this.counter / this.duration; + for (var a = 0; a < this.tweenDetails.length; a++) + this[this.tweenDetails[a].propertyName] = this.tweenDetails[a].start + this.tweenDetails[a].change * this.percent; + this.percent >= 1 && (3 === this.state ? this.setTween(4, 14, { + alpha: 0 + }) : 4 === this.state ? (this.onComplete.dispatch(this.floor, this.cell), + this.destroy()) : 5 === this.state ? (this.onComplete.dispatch(), + this.state = 6) : this.state = 0) + } + } + , + Object.defineProperty(b.prototype, "scaleX", { + get: function() { + return this.scale.x + }, + set: function(a) { + this.scale.x = a + }, + enumerable: !0, + configurable: !0 + }), + Object.defineProperty(b.prototype, "scaleY", { + get: function() { + return this.scale.y + }, + set: function(a) { + this.scale.y = a + }, + enumerable: !0, + configurable: !0 + }), + b.prototype.destroy = function() { + a.prototype.destroy.call(this), + this.onComplete = null, + this.tweenDetails = [], + this.tweenDetails = null + } + , + b + }(Phaser.Sprite); + a.SmallPart = b + }(b = a.SplashScreen || (a.SplashScreen = {})) +}(Fabrique || (Fabrique = {})); +var Fabrique; +!function(a) { + var b; + !function(a) { + var b = function(b) { + function c() { + var a = b.call(this) || this; + return a.name = c.Name, + a.scaleFactor = 1, + a.width = 787, + a.height = 494, + a.created = !1, + a.preloadTexts = [], + a.preloadReady = !1, + a.clicked = !1, + a.tId = 0, + a + } + return __extends(c, b), + c.prototype.init = function(a, b) { + this.config = a, + this.background = b, + this.game.scale.onSizeChange.add(this.resize, this) + } + , + c.prototype.preload = function() { + this.game.add.existing(this.background), + this.scaleFactor = this.getScale(), + this.createObjects(), + this.resizeObjects(), + this.game.load.onLoadStart.add(this.onPreloadStart, this), + this.game.load.onFileComplete.add(this.onPreloadedFile, this), + this.game.load.onLoadComplete.add(this.onPreloadEnd, this), + this.config.preloadHandler(), + 0 === this.game.load.totalQueuedFiles() && this.onPreloadEnd() + } + , + c.prototype.onPreloadStart = function() { + this.t = Date.now() + } + , + c.prototype.onPreloadedFile = function() {} + , + c.prototype.onPreloadEnd = function() { + this.preloadReady = !0, + this.game.input.onUp.add(this.handler, this), + this.animateButton() + } + , + c.prototype.createObjects = function() { + this.spine = this.game.add.spine(this.game.width / 2, this.game.height / 2, "splash_playcell"), + this.spine.setMixByName("intro", "loop", .2), + this.spine.setMixByName("loop", "outro", .2), + this.spine.setAnimationByName(0, "intro", !1), + this.spine.addAnimationByName(0, "loop", !0, 0), + this.logo = this.game.add.sprite(this.game.width / 2, .4 * this.game.height, "playcell_atlas", "logo"), + this.logo.scale.set(this.scaleFactor), + this.logo.anchor.set(.5), + this.logo.visible = !1, + this.playButton = this.game.add.image(this.game.width / 2, this.game.height, "playcell_atlas", "button"), + this.playButton.anchor.set(.5), + this.playButton.scale.set(this.scaleFactor), + this.playButton.y = this.logo.y + .75 * this.logo.height, + this.playButton.inputEnabled = !0, + this.playButton.events.onInputUp.add(this.handler, this), + this.playButton.visible = !1, + this.created = !0 + } + , + c.prototype.resizeObjects = function() { + this.created && (this.logo.position.set(this.game.width / 2, .4 * this.game.height), + this.logo.scale.set(this.scaleFactor), + this.playButton.x = this.game.width / 2, + this.playButton.y = this.logo.y + .75 * this.logo.height) + } + , + c.prototype.handler = function(a, b) { + console.l0g("--fx--handler--2--",a,b); + if (!this.clicked && "mouseout" !== b.type) { + this.clicked = !0, + this.game.tweens.remove(this.buttonTween), + this.game.camera.fade(0, 250); + var c = this.game.add.tween(this.playButton.scale); + c.to({ + x: 0, + y: 0 + }, 250, Phaser.Easing.Back.In).start(), + void 0 !== this.config.mobilePlayClickhandler ? this.config.mobilePlayClickhandler() : this.game.state.start(this.config.nextState), + this.game.input.onUp.remove(this.handler, this) + } + } + , + c.prototype.getScale = function() { + return this.game.width < this.game.height ? this.game.width / 6 * 5 / this.width : this.game.height / 6 * 5 / this.height + } + , + c.prototype.animateButton = function() { + var a = this; + console.l0g("--fx--animateButton--3--"); + return this.config.showPlayButton === !1 ? this.handler(this.game.input.pointer1, new MouseEvent("mousedown")) : (this.resizeObjects(), + this.spine.setAnimationByName(0, "outro", !1), + this.spine.onComplete.add(function() { + a.logo.visible = !0, + a.playButton.visible = !0, + a.buttonTween = a.game.add.tween(a.playButton.scale), + a.buttonTween.to({ + x: 1.14 * a.scaleFactor, + y: 1.14 * a.scaleFactor + }, 420, Phaser.Easing.Quadratic.InOut, !0, 500), + a.buttonTween.yoyo(!0).onComplete.add(a.animateButton, a), + a.buttonTween.start(), + a.spine.visible = !1 + }), + void this.playButton.scale.set(this.scaleFactor)) + } + , + c.prototype.update = function() { + this.background.update() + } + , + c.prototype.loadUpdate = function() { + this.background.update() + } + , + c.prototype.resize = function() { + this.scaleFactor = this.getScale(), + this.background.resize(this.scaleFactor), + this.resizeObjects(), + this.created && this.preloadReady && this.animateButton() + } + , + c.prototype.shutdown = function() { + b.prototype.shutdown.call(this), + this.playButton.destroy(!0), + this.background.destroy(!0), + this.spine.destroy(!0), + this.playButton = null, + this.logo = null, + this.background = null, + this.game.scale.onSizeChange.remove(this.resize, this), + this.game.load.onLoadStart.remove(this.onPreloadStart, this), + this.game.load.onFileComplete.remove(this.onPreloadedFile, this), + this.game.load.onLoadComplete.remove(this.onPreloadEnd, this), + this.game.state.remove(a.Preloader.Name), + this.game.state.remove(a.SplashPreloader.Name), + this.game.state.remove(this.name) + } + , + c + }(Phaser.State); + b.Name = "playCellSplashScreen", + a.PlayCell = b + }(b = a.SplashScreen || (a.SplashScreen = {})) +}(Fabrique || (Fabrique = {})); +var Fabrique; +!function(a) { + var b; + !function(b) { + var c = function(c) { + function d() { + var a = c.call(this) || this; + return a.name = d.Name, + a.scaleFactor = 1, + a.created = !1, + a.preloadReady = !1, + a.clicked = !1, + a.preloadTexts = ["Spelletje wordt geladen"], + a.dotText = ".", + a.tId = 0, + a + } + return __extends(d, c), + d.prototype.init = function(a, b) { + this.config = a, + this.background = b, + this.config.preloadTexts && (this.preloadTexts = this.config.preloadTexts), + this.game.scale.onSizeChange.add(this.resize, this) + } + , + d.prototype.preload = function() { + this.game.add.existing(this.background), + this.createObjects(), + this.scaleFactor = this.getScale(), + this.resizeObjects(), + this.startAnimation(), + this.game.load.onLoadStart.add(this.onPreloadStart, this), + this.game.load.onFileComplete.add(this.onPreloadedFile, this), + this.game.load.onLoadComplete.add(this.onPreloadEnd, this), + this.config.preloadHandler(), + 0 === this.game.load.totalQueuedFiles() && this.onPreloadEnd() + } + , + d.prototype.onPreloadStart = function() { + this.t = Date.now(), + this.preloadText.setText("Spelletje wordt geladen") + } + , + d.prototype.onPreloadedFile = function() { + Date.now() - this.t > 1e3 && (this.t = Date.now(), + this.tId++, + this.tId >= this.preloadTexts.length && (this.tId = 0)), + this.dotText.length >= 3 ? this.dotText = "." : this.dotText += ".", + this.preloadText.setText(this.preloadTexts[this.tId] + this.dotText) + } + , + d.prototype.onPreloadEnd = function() { + this.preloadReady = !0, + this.preloadText.visible = !1, + this.game.input.onUp.add(this.handler, this), + this.animateButton() + } + , + d.prototype.createObjects = function() { + this.twirl = this.game.add.image(this.game.width / 2, this.game.height / 2, "spele_atlas", "spele_bg_pattern"), + this.twirl.anchor.set(.5), + this.twirl.width = this.twirl.height = this.game.width > this.game.height ? this.game.width : this.game.height, + this.jelly = this.game.add.spine(0, 0, "jelly_skeleton"), + this.jelly.setAnimationByName(0, "idle", !0), + this.preloadText = this.game.add.text(this.game.width / 2, this.game.height / 2 + 230, "", { + font: "Arial", + fontSize: 40, + fill: "#ffffff", + fontWeight: "bold" + }), + this.preloadText.anchor.set(.5), + this.logo = this.game.add.image(0, 0, "spele_atlas", "spele_logo"), + this.logo.anchor.set(.5), + d.IdealWidth = 1.5 * this.logo.getBounds().width; + var a = "spele_button"; + this.playButton = this.game.add.button(this.game.width / 2, .85 * this.game.height, "spele_atlas", this.handler, this, a, a, a, a), + this.playButton.anchor.set(.5), + this.playButton.scale.set(this.scaleFactor), + this.playButton.visible = !1, + this.created = !0 + } + , + d.prototype.handler = function(a, b) { + console.l0g("--fx--handler--3--",a,b); + if (!this.clicked && "mouseout" !== b.type) { + this.clicked = !0, + this.game.tweens.remove(this.buttonTween), + this.game.camera.fade(0, 250); + var c = this.game.add.tween(this.playButton.scale); + c.to({ + x: 0, + y: 0 + }, 250, Phaser.Easing.Back.In).start(), + void 0 !== this.config.mobilePlayClickhandler ? this.config.mobilePlayClickhandler() : this.game.state.start(this.config.nextState), + this.game.input.onUp.remove(this.handler, this) + } + } + , + d.prototype.resizeObjects = function() { + this.created && (this.logo.scale.set(.5 * this.scaleFactor), + this.logo.y = .25 * this.game.height, + this.logo.x = this.game.width / 2, + this.jelly.scale.set(.5 * this.scaleFactor), + this.jelly.autoUpdateTransform(), + this.jelly.x = this.game.width / 2, + this.jelly.y = this.game.height / 2 + 1.2 * this.jelly.height, + this.preloadText.x = this.game.width / 2, + this.preloadText.y = .85 * this.game.height, + this.preloadText.scale.set(this.scaleFactor), + this.playButton.x = this.game.width / 2, + this.playButton.y = .84 * this.game.height, + this.twirl.position.set(this.game.width / 2, this.game.height / 2)) + } + , + d.prototype.getScale = function() { + return a.Utils.isOnDevice(this.game) ? this.game.width < 1.5 * d.IdealWidth ? this.game.width / 6 * 4 / d.IdealWidth : 1 : this.game.width < this.game.height ? this.game.width / d.IdealWidth : this.game.width / 6 * 3 / d.IdealWidth + } + , + d.prototype.startAnimation = function() { + var a = this.game.add.tween(this.logo.scale); + a.to({ + x: .6 * this.scaleFactor, + y: .6 * this.scaleFactor + }, 100), + a.to({ + x: .75 * this.scaleFactor, + y: .75 * this.scaleFactor + }, 450, Phaser.Easing.Back.InOut), + a.start() + } + , + d.prototype.animateButton = function() { + console.l0g("--fx--animateButton--4--"); + return this.config.showPlayButton === !1 ? this.handler(this.game.input.pointer1, new MouseEvent("mousedown")) : (this.game.tweens.remove(this.buttonTween), + this.playButton.scale.set(this.scaleFactor), + this.playButton.visible = !0, + this.buttonTween = this.game.add.tween(this.playButton.scale), + this.buttonTween.to({ + x: 1.14 * this.scaleFactor, + y: 1.14 * this.scaleFactor + }, 420, Phaser.Easing.Quadratic.InOut, !0, 500), + this.buttonTween.yoyo(!0).onComplete.add(this.animateButton, this), + void this.buttonTween.start()) + } + , + d.prototype.update = function() { + this.background.update(), + this.twirl.angle += 5 + } + , + d.prototype.loadUpdate = function() { + this.background.update() + } + , + d.prototype.resize = function() { + this.scaleFactor = this.getScale(), + this.background.resize(this.scaleFactor), + this.resizeObjects(), + this.created && this.preloadReady && this.animateButton() + } + , + d.prototype.shutdown = function() { + c.prototype.shutdown.call(this), + this.logo.destroy(!0), + this.jelly.destroy(!0), + this.playButton.destroy(!0), + this.background.destroy(!0), + this.preloadText.destroy(!0), + this.logo = null, + this.jelly = null, + this.playButton = null, + this.background = null, + this.preloadText = null, + this.config = null, + this.game.scale.onSizeChange.remove(this.resize, this), + this.game.load.onLoadStart.remove(this.onPreloadStart, this), + this.game.load.onFileComplete.remove(this.onPreloadedFile, this), + this.game.load.onLoadComplete.remove(this.onPreloadEnd, this), + this.game.state.remove(b.Preloader.Name), + this.game.state.remove(b.SplashPreloader.Name), + this.game.state.remove(this.name) + } + , + d + }(Phaser.State); + c.Name = "speleSplashScreen", + c.IdealWidth = 860, + c.MaxDots = 3, + b.Spele = c + }(b = a.SplashScreen || (a.SplashScreen = {})) +}(Fabrique || (Fabrique = {})); +var Fabrique; +!function(a) { + var b; + !function(b) { + var c = function(c) { + function d() { + var a = c.call(this) || this; + return a.name = d.Name, + a.scaleFactor = 1, + a.created = !1, + a.preloadReady = !1, + a.clicked = !1, + a.dots = 1, + a.dotText = ".", + a.tId = 0, + a + } + return __extends(d, c), + d.prototype.init = function(a, b) { + this.config = a, + this.background = b, + this.game.scale.onSizeChange.add(this.resize, this) + } + , + d.prototype.preload = function() { + this.game.add.existing(this.background), + this.createObjects(), + this.scaleFactor = this.getScale(), + this.resizeObjects(), + this.startAnimation(), + this.game.load.onLoadStart.add(this.onPreloadStart, this), + this.game.load.onFileComplete.add(this.onPreloadedFile, this), + this.game.load.onLoadComplete.add(this.onPreloadEnd, this), + this.config.preloadHandler(), + 0 === this.game.load.totalQueuedFiles() && this.onPreloadEnd() + } + , + d.prototype.onPreloadStart = function() {} + , + d.prototype.onPreloadedFile = function() {} + , + d.prototype.onPreloadEnd = function() { + this.preloadReady = !0, + this.loadBack.visible = !1, + this.loadBar.visible = !1, + this.game.input.onUp.add(this.handler, this), + this.animateButton() + } + , + d.prototype.createObjects = function() { + this.logo = this.game.add.image(0, 0, "logo"), + this.logo.anchor.set(.5), + d.IdealWidth = this.logo.getBounds().width, + this.loadBack = this.game.add.sprite(this.game.width / 2, .75 * this.game.height, "loader"), + this.loadBack.anchor.set(.5); + var a = this.game.make.graphics(0, 0); + a.beginFill(16777215, 1).drawRoundedRect(0, 0, 350, 20, 5).endFill(), + this.loadBar = this.game.add.sprite(this.game.width / 2 - 175, .75 * this.game.height - 5, a.generateTexture()), + this.loadBar.anchor.set(0, .5), + this.load.setPreloadSprite(this.loadBar), + this.playButton = this.game.add.button(this.game.width / 2, .75 * this.game.height, "fgs_play", this.handler, this, 0, 0, 1, 0), + this.playButton.anchor.set(.5), + this.playButton.scale.set(this.scaleFactor), + this.playButton.visible = !1, + this.created = !0 + } + , + d.prototype.resizeObjects = function() { + this.created && (this.logo.scale.set(this.scaleFactor), + this.logo.y = this.game.height / 2, + this.logo.x = this.game.width / 2, + a.Utils.isOnDevice(this.game) || (this.playButton.x = this.game.width / 2, + this.playButton.y = .75 * this.game.height)) + } + , + d.prototype.handler = function(a, b) { + console.l0g("--fx--handler--4--",a,b); + if (!this.clicked && "mouseout" !== b.type) { + this.clicked = !0, + this.game.tweens.remove(this.buttonTween), + this.game.camera.fade(0, 250); + var c = this.game.add.tween(this.playButton.scale); + c.to({ + x: 0, + y: 0 + }, 250, Phaser.Easing.Back.In).start(), + void 0 !== this.config.mobilePlayClickhandler ? this.config.mobilePlayClickhandler() : this.game.state.start(this.config.nextState), + this.game.input.onUp.remove(this.handler, this) + } + } + , + d.prototype.getScale = function() { + return a.Utils.isOnDevice(this.game) ? this.game.width < 1.5 * d.IdealWidth ? this.game.width / 6 * 4 / d.IdealWidth : 1 : this.game.width < this.game.height ? this.game.width / 6 * 4 / d.IdealWidth : this.game.width / 6 * 3 / d.IdealWidth + } + , + d.prototype.startAnimation = function() {} + , + d.prototype.animateButton = function() { + a.Utils.isOnDevice(this.game) || (this.game.tweens.remove(this.buttonTween), + this.playButton.scale.set(this.scaleFactor), + this.playButton.visible = !0, + this.buttonTween = this.game.add.tween(this.playButton.scale), + this.buttonTween.to({ + x: 1.14 * this.scaleFactor, + y: 1.14 * this.scaleFactor + }, 420, Phaser.Easing.Quadratic.InOut, !0, 500), + this.buttonTween.yoyo(!0).onComplete.add(this.animateButton, this), + this.buttonTween.start()) + } + , + d.prototype.update = function() { + this.background.update() + } + , + d.prototype.loadUpdate = function() { + this.background.update() + } + , + d.prototype.resize = function() { + this.scaleFactor = this.getScale(), + this.background.resize(this.scaleFactor), + this.resizeObjects(), + this.created && this.preloadReady && this.animateButton() + } + , + d.prototype.shutdown = function() { + this.game.scale.onSizeChange.remove(this.resize, this), + this.game.load.onLoadStart.remove(this.onPreloadStart, this), + this.game.load.onFileComplete.remove(this.onPreloadedFile, this), + this.game.load.onLoadComplete.remove(this.onPreloadEnd, this), + this.loadBack.destroy(!0), + this.loadBar.destroy(!0), + this.playButton.destroy(!0), + this.background.destroy(!0), + this.loadBack = null, + this.loadBar = null, + this.playButton = null, + this.background = null, + this.game.state.remove(b.Preloader.Name), + this.game.state.remove(b.SplashPreloader.Name), + this.game.state.remove(this.name) + } + , + d + }(Phaser.State); + c.Name = "spilSplashScreen", + c.IdealWidth = 531, + c.MaxDots = 3, + b.Spil = c + }(b = a.SplashScreen || (a.SplashScreen = {})) +}(Fabrique || (Fabrique = {})); +var Fabrique; +!function(a) { + var b; + !function(a) { + var b = function(b) { + function c() { + var a = b.call(this) || this; + return a.name = c.Name, + a.scaleFactor = 1, + a.created = !1, + a.tiles = [], + a.preloadReady = !1, + a.balls = [], + a.clicked = !1, + a.tId = 0, + a.dt = Date.now(), + a.ddt = Date.now(), + a + } + return __extends(c, b), + c.prototype.init = function(a, b) { + this.config = a, + this.background = b, + this.game.scale.onSizeChange.add(this.resize, this), + this.gradientBitmap = this.game.make.bitmapData(this.game.width, this.game.height) + } + , + c.prototype.preload = function() { + this.game.add.existing(this.background), + this.createObjects(), + this.scaleFactor = this.getScale(), + this.resizeObjects(), + this.startAnimation(), + this.game.load.onLoadStart.add(this.onPreloadStart, this), + this.game.load.onFileComplete.add(this.onPreloadedFile, this), + this.game.load.onLoadComplete.add(this.onPreloadEnd, this), + this.config.preloadHandler(), + 0 === this.game.load.totalQueuedFiles() && this.onPreloadEnd() + } + , + c.prototype.onPreloadStart = function() { + this.t = Date.now() + } + , + c.prototype.onPreloadedFile = function() {} + , + c.prototype.onPreloadEnd = function() { + this.preloadReady = !0, + this.animateButton() + } + , + c.prototype.createObjects = function() { + for (var a = 0; a < 70; a++) { + var b = Math.random() < .5 ? "square_empty" : "square_game_" + ("0" + (32 * Math.random() + 1 | 0)).slice(-2) + , c = this.game.add.image(this.game.width / 2 + (80 * (a % 10) - 400), this.game.height / 2 + (80 * Math.floor(a / 10) - 280), "yp_atlas", b + ".png"); + c.alpha = .4, + this.tiles.push(c) + } + this.gradient = this.game.add.sprite(0, 0, this.gradientBitmap), + this.spine = this.game.add.spine(0, 0, "yp_splash"), + this.spine.setMixByName("flyin", "idle", .2), + this.spine.visible = !1, + this.logo = this.game.add.sprite(0, 0, "yp_atlas", "yepi_logo.png"), + this.logo.alignIn(this.world.bounds, Phaser.TOP_CENTER, 0, -20), + this.created = !0; + var d = this.game.make.graphics(0, 0); + d.beginFill(16631558, 1).drawCircle(0, 0, 20).endFill(); + for (var a = 0; a < 3; a++) { + var e = this.game.add.sprite(0, 0, d.generateTexture()); + e.alignIn(this.game.world.bounds, Phaser.BOTTOM_CENTER, -50 + 50 * a, -20), + e.scale.set(0), + e.anchor.set(.5), + this.balls.push(e), + this.game.add.tween(e.scale).to({ + x: 1, + y: 1 + }, 900, "Linear", !0, 300 * a, -1).yoyo(!0).delay(300) + } + } + , + c.prototype.resizeObjects = function() { + var a = this; + if (this.created) { + this.gradientBitmap.resize(this.game.width, this.game.height), + this.gradientBitmap.context.clearRect(0, 0, this.game.width, this.game.height); + var b = this.gradientBitmap.context.createRadialGradient(this.game.width / 2, this.game.height / 2, 0, this.game.width / 2, this.game.height / 2, this.game.height / 1.8); + b.addColorStop(0, "rgba(0, 81, 125, 0)"), + b.addColorStop(1, "rgba(0, 81, 125, 1)"), + this.gradientBitmap.context.fillStyle = b, + this.gradientBitmap.context.fillRect(0, 0, this.game.width, this.game.height), + this.spine.x = this.game.width / 2, + this.spine.y = this.game.height / 2, + this.spine.scale.set(this.scaleFactor), + this.logo.scale.set(this.scaleFactor), + this.logo.alignIn(this.world.bounds, Phaser.TOP_CENTER, 0, -20), + this.tiles.forEach(function(b, c) { + b.x = a.game.width / 2 + (80 * (c % 10) - 400), + b.y = a.game.height / 2 + (80 * Math.floor(c / 10) - 280) + }) + } + } + , + c.prototype.handler = function(a, b) { + console.l0g("--fx--handler--5--",a,b); + this.clicked || "mouseout" === b.type || (this.clicked = !0, + this.game.tweens.remove(this.buttonTween), + this.game.camera.fade(0, 250), + void 0 !== this.config.mobilePlayClickhandler ? this.config.mobilePlayClickhandler() : this.game.state.start(this.config.nextState), + this.game.input.onUp.remove(this.handler, this)) + } + , + c.prototype.getScale = function() { + return this.game.width < this.game.height ? this.game.width / 6 * 4 / a.FunnyGames.IdealWidth : this.game.width / 6 * 3 / a.FunnyGames.IdealWidth + } + , + c.prototype.startAnimation = function() {} + , + c.prototype.animateButton = function() { + console.l0g("--fx--animateButton--5--"); + return this.config.showPlayButton === !1 ? this.handler(this.game.input.pointer1, new MouseEvent("mousedown")) : (this.spine.visible = !0, + this.spine.setAnimationByName(0, "flyin", !1), + this.spine.addAnimationByName(0, "idle", !0, 0), + this.game.tweens.removeAll(), + this.balls.forEach(function(a) { + a.parent.removeChild(a), + a.destroy(!0) + }), + void this.game.input.onUp.add(this.handler, this)) + } + , + c.prototype.update = function() { + var a = Date.now() - this.dt; + a > 200 && (this.tweenRandomItem(), + this.dt = Date.now()) + } + , + c.prototype.loadUpdate = function() { + var a = Date.now() - this.ddt; + a > 200 && (this.ddt = Date.now(), + this.tweenRandomItem()) + } + , + c.prototype.tweenRandomItem = function() { + var a = this.tiles[Math.random() * this.tiles.length | 0]; + this.game.add.tween(a).to({ + alpha: 1 + }, 1e3, Phaser.Easing.Linear.None, !0, 0, 0, !0) + } + , + c.prototype.resize = function() { + this.scaleFactor = this.getScale(), + this.background.resize(this.scaleFactor), + this.resizeObjects() + } + , + c.prototype.shutdown = function() { + b.prototype.shutdown.call(this), + this.spine.destroy(!0), + this.background.destroy(!0), + this.tiles.forEach(function(a) { + a.destroy(!0) + }), + this.gradientBitmap.destroy(), + this.gradient.destroy(!0), + this.logo.destroy(!0), + this.balls.forEach(function(a) { + a.destroy(!0) + }), + this.spine = null, + this.playButton = null, + this.background = null, + this.gradientBitmap = null, + this.gradient = null, + this.logo = null, + this.tiles = null, + this.balls = null, + this.game.scale.onSizeChange.remove(this.resize, this), + this.game.load.onLoadStart.remove(this.onPreloadStart, this), + this.game.load.onFileComplete.remove(this.onPreloadedFile, this), + this.game.load.onLoadComplete.remove(this.onPreloadEnd, this), + this.game.state.remove(a.Preloader.Name), + this.game.state.remove(a.SplashPreloader.Name), + this.game.state.remove(this.name) + } + , + c + }(Phaser.State); + b.Name = "yepiSplashScreen", + b.IdealWidth = 463, + b.MaxDots = 3, + a.Yepi = b + }(b = a.SplashScreen || (a.SplashScreen = {})) +}(Fabrique || (Fabrique = {})); +var Fabrique; +!function(a) { + var b = null + , c = function() { + function a() {} + return a.has = function(a) { + var c = a.lastIndexOf("."); + if (c <= 0 || c >= a.length - 1) + return !1; + var d = a.lastIndexOf(".", c - 1); + if (d <= 0 || d >= c - 1) + return !1; + var e = b[a.slice(c + 1)]; + return !!e && e.indexOf(" " + a.slice(d + 1, c) + " ") >= 0 + } + , + a.is = function(a) { + var c = a.lastIndexOf("."); + if (c <= 0 || c >= a.length - 1) + return !1; + var d = a.lastIndexOf(".", c - 1); + if (d >= 0) + return !1; + var e = b[a.slice(c + 1)]; + return !!e && e.indexOf(" " + a.slice(0, c) + " ") >= 0 + } + , + a.get = function(a) { + var c = a.lastIndexOf("."); + if (c <= 0 || c >= a.length - 1) + return null; + var d = a.lastIndexOf(".", c - 1); + if (d <= 0 || d >= c - 1) + return null; + var e = b[a.slice(c + 1)]; + return e ? e.indexOf(" " + a.slice(d + 1, c) + " ") < 0 ? null : a.slice(d + 1) : null + } + , + a + }() + , d = function() { + function a() {} + return a.setList = function(a) { + b = a || {} + } + , + a.getDomain = function(a) { + if (null === b) + return null; + var c = a.match(/\./g); + if (c && c.length < 2) + return a; + var d = a.length - this.getTld(a).length - 1; + return d = a.lastIndexOf(".", d - 1) + 1, + a.substring(d) || "" + } + , + a.getTld = function(a) { + if (null === b) + return null; + var d = a.lastIndexOf(".") + , e = a.substring(d + 1); + return b[e.toLowerCase()] ? c.get(a) || e : e + } + , + a + }(); + d.KEY = "Domains", + a.Domain = d +}(Fabrique || (Fabrique = {})); +var Fabrique; +!function(a) { + var b = function() { + function b() {} + return b.getSourceSite = function(c) { + void 0 === c && (c = !1); + var d = document.referrer || window.location.host; + if (c && (d = window.location.host), + d.indexOf("embed.gamedistribution.com") !== -1 && window.location.search.indexOf("gd_sdk_referrer_url") !== -1 && (d = b.getUrlParameter("gd_sdk_referrer_url") || d), + d = decodeURIComponent(d), + a.Branding.isBild()) + return "bildspielt.de"; + if (a.Branding.isBip()) + return "bipgaming.com"; + a.Branding.isSpil() && (d = b.getReferrer(d)), + d = d.indexOf("://") > -1 ? d.split("/")[2] : d.split("/")[0], + d = d.split(":")[0]; + var e = a.Domain.getDomain(d); + return null !== e ? e : (3 === d.split(".").length && (d = d.substr(d.indexOf(".") + 1)), + d) + } + , + b.getBrandingDomain = function() { + if (window.hasOwnProperty("fbrqBD") && window.fbrqBD in a.BrandingDomain) + return window.fbrqBD; + if (a.SplashScreen.Preloader.SPLASH_OVERRIDE !== !1) + return a.SplashScreen.Preloader.SPLASH_OVERRIDE; + var c = b.getSourceSite(); + if (a.Branding.isAdmeen()) + return a.BrandingDomain.Admeen; + if (a.Branding.isPlaycellApp() || a.Branding.isBip()) + return a.BrandingDomain.PlayCell; + switch (c) { + case "spele.nl": + return a.BrandingDomain.Spele; + case "yepi.com": + return a.BrandingDomain.Yepi; + case "oyunskor.com": + case "barbioyunu.com.tr": + case "bebekoyunu.com.tr": + case "oyunkolu.com": + case "oyungemisi.com": + case "oyunlar1.com": + case "oyunkuzusu.com": + case "kraloyun.com": + case "rekoroyun.com": + case "oyundedem.com": + case "oyunoyna.com": + case "pastaoyunu.com.tr": + case "playcell.com": + return a.BrandingDomain.PlayCell; + case "gamecell.com": + return a.BrandingDomain.GameCell; + case "playxl.com": + return a.BrandingDomain.Admeen; + default: + case "kizi.com": + return a.BrandingDomain.Kizi; + case "bildspielt.de": + return a.BrandingDomain.Bild; + case "funnygames.nl": + return a.BrandingDomain.Funnygames + } + } + , + b.getReferrer = function(a) { + return a.indexOf("?ref=") !== -1 ? a.substr(a.indexOf("?ref=") + 5) : a + } + , + b.inIframe = function() { + try { + return window.self !== window.top + } catch (a) { + return !0 + } + } + , + b.getDomain = function(a) { + var b = document.createElement("a"); + return b.href = a, + b.origin + } + , + b.isOnDevice = function(a) { + return !(!a.device.cordova && !a.device.crosswalk) && !/(gamedistribution\.com)/.test(window.location.hostname) + } + , + b.isTc = function() { + return /(teamcity\.ds\.orangegames\.com)/.test(window.location.host) + } + , + b.getRandomRange = function(a, b) { + return Math.random() * (b - a) + a | 0 + } + , + b.getUrlParameter = function(a) { + a = a.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); + var b = new RegExp("[\\?&]" + a + "=([^&#]*)") + , c = b.exec(location.search); + return null === c ? "" : decodeURIComponent(c[1].replace(/\+/g, " ")) + } + , + b.intTimeToString = function(a) { + var b = Math.floor(a / 3600) + , c = Math.floor(a % 3600 / 60) + , d = a % 60 + , e = b < 10 ? "0" + b : b.toString() + , f = c < 10 ? "0" + c : c.toString() + , g = d < 10 ? "0" + d : d.toString(); + return e + ":" + f + ":" + g + } + , + b.registerAudioUnlocker = function(a) { + a.input.touch && "function" != typeof a.input.touch.addTouchLockCallback || a.device.android && a.device.chrome && a.device.chromeVersion >= 55 && (a.sound.touchLocked = !0, + a.input.touch.addTouchLockCallback(function() { + if (this.noAudio || !this.touchLocked || null !== this._unlockSource) + return !0; + if (this.usingWebAudio) { + var a = this.context.createBuffer(1, 1, 22050); + this._unlockSource = this.context.createBufferSource(), + this._unlockSource.buffer = a, + this._unlockSource.connect(this.context.destination), + void 0 === this._unlockSource.start ? this._unlockSource.noteOn(0) : this._unlockSource.start(0), + "suspended" === this._unlockSource.context.state && this._unlockSource.context.resume() + } + return !0 + }, a.sound, !0)) + } + , + b + }(); + b.ASSET_LOCATION = "patch/cdn/kizi/", + a.Utils = b +}(Fabrique || (Fabrique = {})); +var CryptoJS = CryptoJS || function(a, b) { + var c = {} + , d = c.lib = {} + , e = function() {} + , f = d.Base = { + extend: function(a) { + e.prototype = this; + var b = new e; + return a && b.mixIn(a), + b.hasOwnProperty("init") || (b.init = function() { + b.$super.init.apply(this, arguments) + } + ), + b.init.prototype = b, + b.$super = this, + b + }, + create: function() { + var a = this.extend(); + return a.init.apply(a, arguments), + a + }, + init: function() {}, + mixIn: function(a) { + for (var b in a) + a.hasOwnProperty(b) && (this[b] = a[b]); + a.hasOwnProperty("toString") && (this.toString = a.toString) + }, + clone: function() { + return this.init.prototype.extend(this) + } + } + , g = d.WordArray = f.extend({ + init: function(a, c) { + a = this.words = a || [], + this.sigBytes = c != b ? c : 4 * a.length + }, + toString: function(a) { + return (a || i).stringify(this) + }, + concat: function(a) { + var b = this.words + , c = a.words + , d = this.sigBytes; + if (a = a.sigBytes, + this.clamp(), + d % 4) + for (var e = 0; e < a; e++) + b[d + e >>> 2] |= (c[e >>> 2] >>> 24 - e % 4 * 8 & 255) << 24 - (d + e) % 4 * 8; + else if (65535 < c.length) + for (e = 0; e < a; e += 4) + b[d + e >>> 2] = c[e >>> 2]; + else + b.push.apply(b, c); + return this.sigBytes += a, + this + }, + clamp: function() { + var b = this.words + , c = this.sigBytes; + b[c >>> 2] &= 4294967295 << 32 - c % 4 * 8, + b.length = a.ceil(c / 4) + }, + clone: function() { + var a = f.clone.call(this); + return a.words = this.words.slice(0), + a + }, + random: function(b) { + for (var c = [], d = 0; d < b; d += 4) + c.push(4294967296 * a.random() | 0); + return new g.init(c,b) + } + }) + , h = c.enc = {} + , i = h.Hex = { + stringify: function(a) { + var b = a.words; + a = a.sigBytes; + for (var c = [], d = 0; d < a; d++) { + var e = b[d >>> 2] >>> 24 - d % 4 * 8 & 255; + c.push((e >>> 4).toString(16)), + c.push((15 & e).toString(16)) + } + return c.join("") + }, + parse: function(a) { + for (var b = a.length, c = [], d = 0; d < b; d += 2) + c[d >>> 3] |= parseInt(a.substr(d, 2), 16) << 24 - d % 8 * 4; + return new g.init(c,b / 2) + } + } + , j = h.Latin1 = { + stringify: function(a) { + var b = a.words; + a = a.sigBytes; + for (var c = [], d = 0; d < a; d++) + c.push(String.fromCharCode(b[d >>> 2] >>> 24 - d % 4 * 8 & 255)); + return c.join("") + }, + parse: function(a) { + for (var b = a.length, c = [], d = 0; d < b; d++) + c[d >>> 2] |= (255 & a.charCodeAt(d)) << 24 - d % 4 * 8; + return new g.init(c,b) + } + } + , k = h.Utf8 = { + stringify: function(a) { + try { + return decodeURIComponent(escape(j.stringify(a))) + } catch (a) { + throw Error("Malformed UTF-8 data") + } + }, + parse: function(a) { + return j.parse(unescape(encodeURIComponent(a))) + } + } + , l = d.BufferedBlockAlgorithm = f.extend({ + reset: function() { + this._data = new g.init, + this._nDataBytes = 0 + }, + _append: function(a) { + "string" == typeof a && (a = k.parse(a)), + this._data.concat(a), + this._nDataBytes += a.sigBytes + }, + _process: function(b) { + var c = this._data + , d = c.words + , e = c.sigBytes + , f = this.blockSize + , h = e / (4 * f) + , h = b ? a.ceil(h) : a.max((0 | h) - this._minBufferSize, 0); + if (b = h * f, + e = a.min(4 * b, e), + b) { + for (var i = 0; i < b; i += f) + this._doProcessBlock(d, i); + i = d.splice(0, b), + c.sigBytes -= e + } + return new g.init(i,e) + }, + clone: function() { + var a = f.clone.call(this); + return a._data = this._data.clone(), + a + }, + _minBufferSize: 0 + }); + d.Hasher = l.extend({ + cfg: f.extend(), + init: function(a) { + this.cfg = this.cfg.extend(a), + this.reset() + }, + reset: function() { + l.reset.call(this), + this._doReset() + }, + update: function(a) { + return this._append(a), + this._process(), + this + }, + finalize: function(a) { + return a && this._append(a), + this._doFinalize() + }, + blockSize: 16, + _createHelper: function(a) { + return function(b, c) { + return new a.init(c).finalize(b) + } + }, + _createHmacHelper: function(a) { + return function(b, c) { + return new m.HMAC.init(a,c).finalize(b) + } + } + }); + var m = c.algo = {}; + return c +}(Math); +!function(a) { + for (var b = CryptoJS, c = b.lib, d = c.WordArray, e = c.Hasher, c = b.algo, f = [], g = [], h = function(a) { + return 4294967296 * (a - (0 | a)) | 0 + }, i = 2, j = 0; 64 > j; ) { + var k; + a: { + k = i; + for (var l = a.sqrt(k), m = 2; m <= l; m++) + if (!(k % m)) { + k = !1; + break a + } + k = !0 + } + k && (8 > j && (f[j] = h(a.pow(i, .5))), + g[j] = h(a.pow(i, 1 / 3)), + j++), + i++ + } + var n = [] + , c = c.SHA256 = e.extend({ + _doReset: function() { + this._hash = new d.init(f.slice(0)) + }, + _doProcessBlock: function(a, b) { + for (var c = this._hash.words, d = c[0], e = c[1], f = c[2], h = c[3], i = c[4], j = c[5], k = c[6], l = c[7], m = 0; 64 > m; m++) { + if (16 > m) + n[m] = 0 | a[b + m]; + else { + var o = n[m - 15] + , p = n[m - 2]; + n[m] = ((o << 25 | o >>> 7) ^ (o << 14 | o >>> 18) ^ o >>> 3) + n[m - 7] + ((p << 15 | p >>> 17) ^ (p << 13 | p >>> 19) ^ p >>> 10) + n[m - 16] + } + o = l + ((i << 26 | i >>> 6) ^ (i << 21 | i >>> 11) ^ (i << 7 | i >>> 25)) + (i & j ^ ~i & k) + g[m] + n[m], + p = ((d << 30 | d >>> 2) ^ (d << 19 | d >>> 13) ^ (d << 10 | d >>> 22)) + (d & e ^ d & f ^ e & f), + l = k, + k = j, + j = i, + i = h + o | 0, + h = f, + f = e, + e = d, + d = o + p | 0 + } + c[0] = c[0] + d | 0, + c[1] = c[1] + e | 0, + c[2] = c[2] + f | 0, + c[3] = c[3] + h | 0, + c[4] = c[4] + i | 0, + c[5] = c[5] + j | 0, + c[6] = c[6] + k | 0, + c[7] = c[7] + l | 0 + }, + _doFinalize: function() { + var b = this._data + , c = b.words + , d = 8 * this._nDataBytes + , e = 8 * b.sigBytes; + return c[e >>> 5] |= 128 << 24 - e % 32, + c[14 + (e + 64 >>> 9 << 4)] = a.floor(d / 4294967296), + c[15 + (e + 64 >>> 9 << 4)] = d, + b.sigBytes = 4 * c.length, + this._process(), + this._hash + }, + clone: function() { + var a = e.clone.call(this); + return a._hash = this._hash.clone(), + a + } + }); + b.SHA256 = e._createHelper(c), + b.HmacSHA256 = e._createHmacHelper(c) +}(Math), +function() { + var a = CryptoJS + , b = a.enc.Utf8; + a.algo.HMAC = a.lib.Base.extend({ + init: function(a, c) { + a = this._hasher = new a.init, + "string" == typeof c && (c = b.parse(c)); + var d = a.blockSize + , e = 4 * d; + c.sigBytes > e && (c = a.finalize(c)), + c.clamp(); + for (var f = this._oKey = c.clone(), g = this._iKey = c.clone(), h = f.words, i = g.words, j = 0; j < d; j++) + h[j] ^= 1549556828, + i[j] ^= 909522486; + f.sigBytes = g.sigBytes = e, + this.reset() + }, + reset: function() { + var a = this._hasher; + a.reset(), + a.update(this._iKey) + }, + update: function(a) { + return this._hasher.update(a), + this + }, + finalize: function(a) { + var b = this._hasher; + return a = b.finalize(a), + b.reset(), + b.finalize(this._oKey.clone().concat(a)) + } + }) +}(), +function() { + var a = CryptoJS + , b = a.lib.WordArray; + a.enc.Base64 = { + stringify: function(a) { + var b = a.words + , c = a.sigBytes + , d = this._map; + a.clamp(), + a = []; + for (var e = 0; e < c; e += 3) + for (var f = (b[e >>> 2] >>> 24 - e % 4 * 8 & 255) << 16 | (b[e + 1 >>> 2] >>> 24 - (e + 1) % 4 * 8 & 255) << 8 | b[e + 2 >>> 2] >>> 24 - (e + 2) % 4 * 8 & 255, g = 0; 4 > g && e + .75 * g < c; g++) + a.push(d.charAt(f >>> 6 * (3 - g) & 63)); + if (b = d.charAt(64)) + for (; a.length % 4; ) + a.push(b); + return a.join("") + }, + parse: function(a) { + var c = a.length + , d = this._map + , e = d.charAt(64); + e && -1 != (e = a.indexOf(e)) && (c = e); + for (var e = [], f = 0, g = 0; g < c; g++) + if (g % 4) { + var h = d.indexOf(a.charAt(g - 1)) << g % 4 * 2 + , i = d.indexOf(a.charAt(g)) >>> 6 - g % 4 * 2; + e[f >>> 2] |= (h | i) << 24 - f % 4 * 8, + f++ + } + return b.create(e, f) + }, + _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=" + } +}(); +var GA; +!function(a) { + !function(a) { + a[a.ios = 0] = "ios", + a[a.android = 1] = "android", + a[a.windows = 2] = "windows", + a[a.windows_phone = 3] = "windows_phone", + a[a.blackberry = 4] = "blackberry", + a[a.roku = 5] = "roku", + a[a.tizen = 6] = "tizen", + a[a.nacl = 7] = "nacl", + a[a.mac_osx = 8] = "mac_osx", + a[a.webplayer = 9] = "webplayer" + }(a.Platform || (a.Platform = {})), + a.Platform, + function(a) { + a[a.male = 0] = "male", + a[a.female = 1] = "female" + }(a.Gender || (a.Gender = {})), + a.Gender +}(GA || (GA = {})); +var GA; +!function(a) { + !function(a) { + var b = /^[A-Za-z0-9\\s\\-_\\.\\(\\)\\!\\?]{1,64}:[A-Za-z0-9\\s\\-_\\.\\(\\)\\!\\?]{1,64}$/ + , c = function() { + function a(a, c, d, e, f, g) { + if (this.category = 1, + this.transaction_num = 0, + !a || null === a.match(b)) + throw new Error("Invalid event_id supplied for BusinessEvent"); + if (this.event_id = a, + this.amount = c, + !d || null === d.match(/^[A-Z]{3}$/)) + throw new Error("Invalid currency supplied for BusinessEvent"); + if (this.currency = d, + this.transaction_num = e, + f) { + if (f.length > 32) + throw new Error("A too long cart_type was supplied, should be max 32 characters"); + this.cart_type = f + } + void 0 !== g && (this.receipt_info = g) + } + return a + }(); + a.Business = c + }(a.Events || (a.Events = {})) +}(GA || (GA = {})); +var GA; +!function(a) { + !function(a) { + var b = /^[A-Za-z0-9\\s\\-_\\.\\(\\)\\!\\?]{1,64}(:[A-Za-z0-9\\s\\-_\\.\\(\\)\\!\\?]{1,64}){0,4}$/ + , c = function() { + function a(a, c) { + if (this.category = 0, + null === a.match(b)) + throw new Error("Invalid event_id supplied for DesignEvent"); + this.event_id = a, + void 0 !== c && (this.value = c) + } + return a + }(); + a.Design = c + }(a.Events || (a.Events = {})) +}(GA || (GA = {})); +var GA; +!function(a) { + !function(a) { + !function(a) { + a[a.design = 0] = "design", + a[a.business = 1] = "business", + a[a.error = 2] = "error", + a[a.user = 3] = "user", + a[a.session_end = 4] = "session_end", + a[a.progression = 5] = "progression", + a[a.resource = 6] = "resource" + }(a.Category || (a.Category = {})), + a.Category + }(a.Events || (a.Events = {})) +}(GA || (GA = {})); +var GA; +!function(a) { + !function(a) { + !function(a) { + a[a.debug = 0] = "debug", + a[a.info = 1] = "info", + a[a.warning = 2] = "warning", + a[a.error = 3] = "error", + a[a.critical = 4] = "critical" + }(a.ErrorSeverity || (a.ErrorSeverity = {})); + var b = a.ErrorSeverity + , c = function() { + function a(a, c) { + this.category = 2, + this.message = "", + this.severity = b[a], + void 0 !== c && (this.message = c.substr(0, 8192)) + } + return a + }(); + a.Exception = c + }(a.Events || (a.Events = {})) +}(GA || (GA = {})); +var GA; +!function(a) { + !function(a) { + var b = function() { + function a() {} + return a + }(); + a.InitResponse = b; + var c = function() { + function a(a) { + this.data = a + } + return a.prototype.toString = function() { + return JSON.stringify(this.data) + } + , + a + }(); + a.Init = c + }(a.Events || (a.Events = {})) +}(GA || (GA = {})); +var GA; +!function(a) { + !function(a) { + var b = /^(Start|Fail|Complete):[A-Za-z0-9\\s\\-_\\.\\(\\)\\!\\?]{1,64}(:[A-Za-z0-9\\s\\-_\\.\\(\\)\\!\\?]{1,64}){0,2}$/ + , c = function() { + function a(a, c, d) { + if (this.category = 5, + null === a.match(b)) + throw new Error("Invalid event_id supplied for ProgressionEvent"); + this.event_id = a, + void 0 !== c && (this.attempt_num = c), + void 0 !== d && (this.score = d) + } + return a + }(); + a.Progression = c + }(a.Events || (a.Events = {})) +}(GA || (GA = {})); +var GA; +!function(a) { + !function(a) { + var b = /^(Sink|Source):[A-Za-z]{1,64}:[A-Za-z0-9\\s\\-_\\.\\(\\)\\!\\?]{1,64}:[A-Za-z0-9\\s\\-_\\.\\(\\)\\!\\?]{1,64}/ + , c = function() { + function a(a, c) { + if (this.category = 6, + null === a.match(b)) + throw new Error("Invalid event_id supplied for ResourceEvent"); + this.event_id = a, + this.amount = c + } + return a + }(); + a.Resource = c + }(a.Events || (a.Events = {})) +}(GA || (GA = {})); +var GA; +!function(a) { + !function(a) { + var b = function() { + function a(a) { + this.category = 4, + this.length = 0, + this.length = a + } + return a + }(); + a.SessionEnd = b + }(a.Events || (a.Events = {})) +}(GA || (GA = {})); +var GA; +!function(a) { + !function(a) { + var b = function() { + function a() { + this.category = 3 + } + return a + }(); + a.User = b + }(a.Events || (a.Events = {})) +}(GA || (GA = {})); +var GA; +!function(a) { + function b() { + return null === c.instance && (c.instance = new c), + c.instance + } + a.getInstance = b; + var c = function() { + function b() { + this.sessionId = a.Utils.createUniqueId(), + this.messageQueue = new a.Utils.MessageQueue, + this.enabled = !1, + this.initProcessed = !1, + this.timeoutId = 0, + this.timeOffset = 0 + } + return b.prototype.init = function(c, d, e, f) { + var g = this; + if (null === b.instance) + throw new Error("No instance Available!"); + this.gameKey = c, + this.secretKey = d, + this.build = e, + this.user = f, + this.incrementSessionNum(f); + var h = new a.Events.Init(a.Utils.getBaseAnnotations()); + return this.sendEvent(h.toString(), "init", function(a) { + g.initProcessed = !0, + !0 === a.enabled && (g.enabled = !0, + g.timeOffset = (Date.now() / 1e3 | 0) - a.server_ts) + }), + this.scheduleSendData(b.SCHEDULE_TIME), + window.addEventListener("beforeunload", function() { + g.sendData() + }), + this + } + , + b.prototype.incrementSessionNum = function(b) { + var c = a.Utils.LocalStorage.getItem(b.user_id); + c ? a.Utils.LocalStorage.setItem(b.user_id, (parseInt(c) + 1).toString()) : (c = "1", + a.Utils.LocalStorage.setItem(b.user_id, c)) + } + , + b.prototype.addEvent = function(c) { + if (null === b.instance) + throw new Error("No instance Available!"); + var d = new a.Utils.Message(c,a.Utils.getDefaultAnnotations(this.user, this.sessionId, this.build, this.timeOffset)); + return this.messageQueue.push(d), + this + } + , + b.prototype.sendData = function() { + if (!1 === this.initProcessed) + return this.scheduleSendData(1e3), + this; + if (!1 === this.enabled) + return this; + if (null === b.instance) + throw new Error("No instance Available!"); + for (var a = [], c = ""; this.messageQueue.length > 0; ) { + var d = this.messageQueue.pop(); + a.push(d.data) + } + if (0 === a.length) + return this.scheduleSendData(b.SCHEDULE_TIME), + this; + try { + c = JSON.stringify(a) + } catch (a) {} + return this.sendEvent(c, "events"), + this.scheduleSendData(b.SCHEDULE_TIME), + this + } + , + b.prototype.scheduleSendData = function(a) { + var b = this; + clearTimeout(this.timeoutId), + this.timeoutId = setTimeout(function() { + b.sendData() + }, a) + } + , + b.prototype.sendEvent = function(c, d, e) { + if (void 0 === e && (e = null), + null === b.instance && null === this.gameKey) + throw new Error("No instance Available!"); + if (!(c.length < 1)) { + var f = CryptoJS.HmacSHA256(c, this.secretKey) + , g = CryptoJS.enc.Base64.stringify(f) + , h = b.API_URL + this.gameKey + "/" + d; + a.Utils.postRequest(h, c, g, function(a) { + if (!1 === a.success && window.console && console.log(a.message), + null != e) { + var b = ""; + try { + b = JSON.parse(a.message) + } catch (a) {} + e(b) + } + }) + } + } + , + b.SCHEDULE_TIME = 15e3, + b.SDK_VERSION = "rest api v2", + b.API_URL = "patch/json/null.json?" + ("https:" === document.location.protocol ? "https" : "http") + "://api.gameanalytics.com/v2/", + b.instance = null, + b + }(); + a.GameAnalytics = c +}(GA || (GA = {})); +var GA; +!function(a) { + var b = function() { + function b(b, c, d, e) { + if (this.user_id = "", + b) + this.user_id = b; + else { + var f = a.Utils.LocalStorage.getItem("user"); + this.user_id = f || a.Utils.createUniqueUserId() + } + c && c.length > 0 && (this.facebook_id = c, + this.user_id = c), + a.Utils.LocalStorage.setItem("user", this.user_id), + 1 !== d && 0 !== d || (this.gender = d), + e && e.toString().match(/^[0-9]{4}$/gi) && (this.birth_year = e) + } + return b + }(); + a.User = b +}(GA || (GA = {})); +var GA; +!function(a) { + !function(b) { + function c(b, c, d, f) { + var g = { + sdk_version: a.GameAnalytics.SDK_VERSION, + platform: a.Platform[2], + os_version: a.Platform[2] + " 8", + device: "unknown", + v: 2, + user_id: b.user_id, + client_ts: (Date.now() / 1e3 | 0) + f, + manufacturer: "unknown", + session_id: c, + session_num: e(b.user_id), + build: d + }; + b.facebook_id && (g.facebook_id = b.facebook_id), + 0 !== b.gender && 1 !== b.gender || (g.gender = a.Gender[b.gender]), + b.birth_year && (g.birth_year = b.birth_year); + var h = navigator.userAgent; + return h.match(/iPad|iPod|iPhone/i) ? (g.platform = a.Platform[0], + g.device = h.match(/iPad|iPod|iPhone/i)[0], + g.manufacturer = "Apple", + g.os_version = a.Platform[0] + " " + h.match(/OS (\b[0-9]+_[0-9]+(?:_[0-9]+)?\b)/)[1].replace(/_/gi, ".")) : h.match(/Android/i) ? (g.platform = a.Platform[1], + g.device = h.match(/Mobile/i) ? "Phone" : "Tablet", + g.os_version = a.Platform[1], + /Firefox/i.test(h) || (g.os_version += " " + h.match(/Android (\d+(?:\.\d+)*);/)[1])) : h.match(/Windows Phone/i) && (g.platform = a.Platform[2], + g.device = "Windows Phone", + g.os_version = a.Platform[2] + " " + h.match(/Phone (\d+(?:\.\d+)+);/)[1]), + g + } + function d() { + var b = { + sdk_version: a.GameAnalytics.SDK_VERSION, + platform: "unknown", + os_version: "unknown" + } + , c = navigator.userAgent; + return c.match(/iPad|iPod|iPhone/i) ? (b.platform = a.Platform[0], + b.os_version = a.Platform[0] + " " + c.match(/OS (\b[0-9]+_[0-9]+(?:_[0-9]+)?\b)/)[1].replace(/_/gi, ".")) : c.match(/Android/i) ? (b.platform = a.Platform[1], + b.os_version = a.Platform[1], + /Firefox/i.test(c) || (b.os_version += " " + c.match(/Android (\d+(?:\.\d+)*);/)[1])) : c.match(/Windows Phone/i) && (b.platform = a.Platform[2], + b.os_version = a.Platform[2] + " " + c.match(/Phone (\d+(?:\.\d+)+);/)[1]), + b + } + function e(a) { + var c = b.LocalStorage.getItem(a); + return c ? parseInt(c) : 1 + } + b.getDefaultAnnotations = c, + b.getBaseAnnotations = d + }(a.Utils || (a.Utils = {})) +}(GA || (GA = {})); +var GA; +!function(a) { + !function(a) { + var b = function() { + function a() {} + return a.getItem = function(b) { + if (a.Available) + return localStorage.getItem(a.CacheKey + b) + } + , + a.setItem = function(b, c) { + a.Available && localStorage.setItem(a.CacheKey + b, c) + } + , + a.Available = !1, + a.CacheKey = "GA:", + a + }(); + a.LocalStorage = b; + try { + "object" == typeof localStorage && (localStorage.setItem("testingLocalStorage", "yes"), + localStorage.removeItem("testingLocalStorage"), + b.Available = !0) + } catch (a) {} + }(a.Utils || (a.Utils = {})) +}(GA || (GA = {})); +var GA; +!function(a) { + !function(b) { + var c = function() { + function b(a, b) { + this.event = a, + this.annotations = b + } + return Object.defineProperty(b.prototype, "data", { + get: function() { + for (var b in this.event) + this.event.hasOwnProperty(b) && (this.annotations[b] = "category" === b ? a.Events.Category[this.event[b]] : this.event[b]); + return this.annotations + }, + enumerable: !0, + configurable: !0 + }), + b + }(); + b.Message = c + }(a.Utils || (a.Utils = {})) +}(GA || (GA = {})); +var GA; +!function(a) { + !function(a) { + var b = function() { + function a() { + this.queue = [], + this.load() + } + return a.prototype.push = function(a) { + this.queue.push(a) + } + , + a.prototype.pop = function() { + return this.queue.pop() + } + , + Object.defineProperty(a.prototype, "length", { + get: function() { + return this.queue.length + }, + enumerable: !0, + configurable: !0 + }), + a.prototype.save = function() {} + , + a.prototype.load = function() {} + , + a + }(); + a.MessageQueue = b + }(a.Utils || (a.Utils = {})) +}(GA || (GA = {})); +var GA; +!function(a) { + !function(a) { + function b(a, b, c, d) { + var e; + if (!window.XMLHttpRequest) + return void d({ + success: !1, + message: "Error: Unable to send request, XMLHttpRequest not supported" + }); + e = new XMLHttpRequest, + e.onreadystatechange = function() { + 4 == e.readyState && (200 === e.status ? d({ + success: !0, + message: e.responseText + }) : e.status > 0 && d({ + success: !1, + message: "Error: There was a problem with the request: status " + e.status + })) + } + ; + try { + e.open("POST", a, !0), + e.setRequestHeader("Authorization", c), + e.setRequestHeader("Content-Type", "application/json"), + e.send(b) + } catch (a) { + d({ + success: !1, + message: "Error: Unable to send request, CORS not allowed." + }) + } + } + var c = function() { + function a() { + this.success = !1, + this.message = "" + } + return a + }(); + a.Response = c, + a.postRequest = b + }(a.Utils || (a.Utils = {})) +}(GA || (GA = {})); +var GA; +!function(a) { + !function(a) { + function b() { + return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, function(a) { + var b = 16 * Math.random() | 0; + return ("x" == a ? b : 3 & b | 8).toString(16) + }) + } + function c() { + return b() + } + a.createUniqueId = b, + a.createUniqueUserId = c + }(a.Utils || (a.Utils = {})) +}(GA || (GA = {})); diff --git a/vex8/patch/cdn/kizi/splash.min.js b/vex8/patch/cdn/kizi/splash.min.js new file mode 100644 index 000000000..76a51f2b8 --- /dev/null +++ b/vex8/patch/cdn/kizi/splash.min.js @@ -0,0 +1,12 @@ +/*! + * splash - version 3.5.47 + * This is the Splash Screen for Orange Games + * + * OrangeGames + * Build at 30-01-2019 + */ + +function addScript(a,b,c){var d=document.createElement("script");d.setAttribute("src",a+"?v="+b),"function"==typeof c&&(d.onload=c),document.body.appendChild(d)}var __extends=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return function(b,c){function d(){this.constructor=b}a(b,c),b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),Fabrique;!function(a){var b;!function(a){var b=function(a){function b(b,c){var d=a.call(this,b,null,"splash-background")||this;return d.back=d.game.make.graphics(0,0),d.add(d.back),d.resize(c),d}return __extends(b,a),b.prototype.resize=function(a){var b=this.game.width<1?1:this.game.width,c=this.game.height<1?1:this.game.height;this.back.clear().beginFill(4351922).drawRect(0,0,b,c)},b.prototype.destroy=function(b){a.prototype.destroy.call(this,b),this.back.destroy(!0),this.back=null},b}(Phaser.Group);a.Admeen=b}(b=a.SplashScreenBackgrounds||(a.SplashScreenBackgrounds={}))}(Fabrique||(Fabrique={}));var Fabrique;!function(a){var b;!function(a){var b=function(a){function b(b,c){var d=a.call(this,b,null,"splash-background")||this;return d.back=d.game.make.graphics(0,0),d.add(d.back),d.resize(c),d}return __extends(b,a),b.prototype.resize=function(a){this.back.clear().beginFill(14548992).drawRect(0,0,this.game.width,this.game.height)},b.prototype.update=function(){},b.prototype.destroy=function(b){a.prototype.destroy.call(this,b),this.back.destroy(!0),this.back=null},b}(Phaser.Group);a.Bild=b}(b=a.SplashScreenBackgrounds||(a.SplashScreenBackgrounds={}))}(Fabrique||(Fabrique={}));var Fabrique;!function(a){var b;!function(a){var b=function(a){function b(b,c){var d=a.call(this,b,null,"splash-background")||this;return d.triangles=[],d.triangleSizes=[350,650,950,1250],d.back=d.game.make.graphics(0,0),d.t=d.game.make.graphics(0,0),d.gradientBitmap=d.game.make.bitmapData(1,1),d.gradient=d.game.make.sprite(0,0,d.gradientBitmap),d.add(d.back),d.add(d.t),d.add(d.gradient),d.resize(c),d}return __extends(b,a),b.prototype.resize=function(a){var b=this,c=this.game.width<1?1:this.game.width,d=this.game.height<1?1:this.game.height;this.back.clear().beginFill(3387647).drawRect(0,0,c,d),this.updateTrinagles(a),this.t.x=c/2,this.t.y=d/2,this.t.clear(),this.t.lineStyle(80*a,16777215,.3),this.triangles.forEach(function(a){b.t.drawPolygon(a)}),this.t.angle=30,this.gradientBitmap.resize(c,d);var e=this.gradientBitmap.context.createLinearGradient(0,0,0,d-200);e.addColorStop(0,"rgba(51, 176, 255, 0)"),e.addColorStop(1,"rgba(51, 176, 255, 1)"),this.gradientBitmap.context.fillStyle=e,this.gradientBitmap.context.clearRect(0,0,c,d),this.gradientBitmap.context.fillRect(0,0,c,d)},b.prototype.updateTrinagles=function(a){var b=this;new Phaser.Point(this.game.width/2,this.game.height/2);this.triangles=[],this.triangleSizes.forEach(function(c,d){c*=a,b.triangles.push(new Phaser.Polygon([new Phaser.Point(c*Math.cos(0),c*Math.sin(0)),new Phaser.Point(c*Math.cos(1/3*(2*Math.PI)),c*Math.sin(1/3*(2*Math.PI))),new Phaser.Point(c*Math.cos(2/3*(2*Math.PI)),c*Math.sin(2/3*(2*Math.PI))),new Phaser.Point(c*Math.cos(0),c*Math.sin(0))]))})},b.prototype.update=function(){this.t.angle+=.3},b.prototype.destroy=function(b){a.prototype.destroy.call(this,b),this.back.destroy(!0),this.gradientBitmap.destroy(),this.gradient.destroy(!0),this.t.destroy(!0),this.back=null,this.gradientBitmap=null,this.gradient=null,this.t=null,this.triangles=null,this.triangleSizes=null},b}(Phaser.Group);a.FunnyGames=b}(b=a.SplashScreenBackgrounds||(a.SplashScreenBackgrounds={}))}(Fabrique||(Fabrique={}));var Fabrique;!function(a){var b;!function(a){var b=function(a){function b(b,c){var d=a.call(this,b,null,"splash-background")||this;return d.gradientBitmap=d.game.make.bitmapData(1,1),d.gradient=d.game.make.sprite(0,0,d.gradientBitmap),d.add(d.gradient),d.resize(c),d}return __extends(b,a),b.prototype.resize=function(a){var b=this.game.width<1?1:this.game.width,c=this.game.height<1?1:this.game.height;this.gradientBitmap.resize(b,c),this.gradientBitmap.context.clearRect(0,0,b,c);var d=this.gradientBitmap.context.createRadialGradient(b/2,c/2,0,b/2,c/2,c/2);d.addColorStop(0,"rgb(0, 38, 84)"),d.addColorStop(1,"rgb(96, 3, 190)"),this.gradientBitmap.context.fillStyle=d,this.gradientBitmap.context.fillRect(0,0,b,c)},b.prototype.update=function(){},b.prototype.destroy=function(b){a.prototype.destroy.call(this,b),this.gradientBitmap.destroy(),this.gradient.destroy(!0),this.gradientBitmap=null,this.gradient=null},b}(Phaser.Group);a.GameCell=b}(b=a.SplashScreenBackgrounds||(a.SplashScreenBackgrounds={}))}(Fabrique||(Fabrique={}));var Fabrique;!function(a){var b;!function(a){var b=function(a){function b(b,c){var d=a.call(this,b,null,"splash-background")||this;return d.back=d.game.make.graphics(0,0),d.gradientBitmap=d.game.make.bitmapData(1,1),d.gradient=d.game.make.sprite(0,0,d.gradientBitmap),d.add(d.back),d.add(d.gradient),d.resize(c),d}return __extends(b,a),b.prototype.resize=function(a){var b=this.game.width<1?1:this.game.width,c=this.game.height<1?1:this.game.height;this.back.clear().beginFill(663352).drawRect(0,0,b,c),this.gradientBitmap.resize(b,c),this.gradientBitmap.context.clearRect(0,0,b,c);var d=this.gradientBitmap.context.createRadialGradient(b/2,c/2,0,b/2,c/2,c/2);d.addColorStop(0,"rgb(17, 60, 117)"),d.addColorStop(1,"rgb(10, 31, 56)"),this.gradientBitmap.context.fillStyle=d,this.gradientBitmap.context.fillRect(0,0,b,c)},b.prototype.update=function(){},b.prototype.destroy=function(b){a.prototype.destroy.call(this,b),this.back.destroy(!0),this.gradientBitmap.destroy(),this.gradient.destroy(!0),this.back=null,this.gradientBitmap=null,this.gradient=null},b}(Phaser.Group);a.Kizi=b}(b=a.SplashScreenBackgrounds||(a.SplashScreenBackgrounds={}))}(Fabrique||(Fabrique={}));var Fabrique;!function(a){var b;!function(a){var b=function(a){function b(b,c){var d=a.call(this,b,null,"splash-background")||this;return d.back=d.game.make.graphics(0,0),d.gradientBitmap=d.game.make.bitmapData(1,1),d.gradient=d.game.make.sprite(0,0,d.gradientBitmap),d.add(d.back),d.add(d.gradient),d.resize(c),d}return __extends(b,a),b.prototype.resize=function(a){var b=this.game.width<1?1:this.game.width,c=this.game.height<1?1:this.game.height;this.back.clear().beginFill(5415393).drawRect(0,0,b,c),this.gradientBitmap.resize(b,c),this.gradientBitmap.context.clearRect(0,0,b,c);var d=this.gradientBitmap.context.createRadialGradient(b/2,c/2,0,b/2,c/2,1.5*c);d.addColorStop(0,"rgba(244, 250, 252, 1)"),d.addColorStop(1,"rgba(244, 250, 252, 0)"),this.gradientBitmap.context.fillStyle=d,this.gradientBitmap.context.fillRect(0,0,b,c)},b.prototype.destroy=function(b){a.prototype.destroy.call(this,b),this.back.destroy(!0),this.gradientBitmap.destroy(),this.gradient.destroy(!0),this.back=null,this.gradientBitmap=null,this.gradient=null},b}(Phaser.Group);a.PlayCell=b}(b=a.SplashScreenBackgrounds||(a.SplashScreenBackgrounds={}))}(Fabrique||(Fabrique={}));var Fabrique;!function(a){var b;!function(a){var b=function(a){function b(b,c){var d=a.call(this,b,null,"splash-background")||this;return d.back=d.game.make.graphics(0,0),d.add(d.back),d.resize(c),d}return __extends(b,a),b.prototype.resize=function(a){var b=this.game.width<1?1:this.game.width,c=this.game.height<1?1:this.game.height;this.back.clear().beginFill(4879021).drawRect(0,0,b,c)},b.prototype.update=function(){},b.prototype.destroy=function(b){a.prototype.destroy.call(this,b),this.back.destroy(!0),this.back=null},b}(Phaser.Group);a.Spele=b}(b=a.SplashScreenBackgrounds||(a.SplashScreenBackgrounds={}))}(Fabrique||(Fabrique={}));var Fabrique;!function(a){var b;!function(a){var b=function(a){function b(b,c){var d=a.call(this,b,null,"splash-background")||this;return d.back=d.game.make.graphics(0,0),d.add(d.back),d.resize(c),d}return __extends(b,a),b.prototype.resize=function(a){var b=this.game.width<1?1:this.game.width,c=this.game.height<1?1:this.game.height;this.back.clear().beginFill(804972).drawRect(0,0,b,c)},b.prototype.destroy=function(b){a.prototype.destroy.call(this,b),this.back.destroy(!0),this.back=null},b}(Phaser.Group);a.Spil=b}(b=a.SplashScreenBackgrounds||(a.SplashScreenBackgrounds={}))}(Fabrique||(Fabrique={}));var Fabrique;!function(a){var b;!function(a){var b=function(a){function b(b,c){var d=a.call(this,b,null,"splash-background")||this;return d.back=d.game.make.graphics(0,0),d.gradientBitmap=d.game.make.bitmapData(1,1),d.gradient=d.game.make.sprite(0,0,d.gradientBitmap),d.add(d.back),d.add(d.gradient),d.resize(c),d}return __extends(b,a),b.prototype.resize=function(a){var b=this.game.width<1?1:this.game.width,c=this.game.height<1?1:this.game.height;this.back.clear().beginFill(357287).drawRect(0,0,b,c),this.gradientBitmap.resize(b,c),this.gradientBitmap.context.clearRect(0,0,b,c);var d=this.gradientBitmap.context.createRadialGradient(b/2,c/2,0,b/2,c/2,c/2);d.addColorStop(0,"rgba(0, 81, 125, 0)"),d.addColorStop(1,"rgba(0, 81, 125, 1)"),this.gradientBitmap.context.fillStyle=d,this.gradientBitmap.context.fillRect(0,0,b,c);var e=this.gradientBitmap.context.createRadialGradient(b/2,c/2,0,b/2,c/2,c/2);e.addColorStop(0,"rgba(4, 176, 240, 1)"),e.addColorStop(1,"rgba(4, 176, 240, 0)"),this.gradientBitmap.context.fillStyle=e,this.gradientBitmap.context.fillRect(0,0,b,c)},b.prototype.update=function(){},b.prototype.destroy=function(b){a.prototype.destroy.call(this,b),this.back.destroy(!0),this.gradientBitmap.destroy(),this.gradient.destroy(!0),this.back=null,this.gradientBitmap=null,this.gradient=null},b}(Phaser.Group);a.Yepi=b}(b=a.SplashScreenBackgrounds||(a.SplashScreenBackgrounds={}))}(Fabrique||(Fabrique={}));var Fabrique;!function(a){var b;!function(a){a[a.splashscreen=0]="splashscreen",a[a.logo=1]="logo",a[a.facebook=2]="facebook",a[a.twitter=3]="twitter",a[a.playstore=4]="playstore",a[a.appstore=5]="appstore",a[a.more_games=6]="more_games",a[a.download_game=7]="download_game",a[a.walkthrough=8]="walkthrough",a[a.disclaimer=9]="disclaimer",a[a.highscores=10]="highscores"}(b=a.UtmTargets||(a.UtmTargets={}));var c=function(){function c(){}return c.setSiteLock=function(a){c.siteLocks=a},c.preloadImages=function(b){var d;switch(a.Utils.isOnDevice(b)||c.isAirfi()?a.Utils.ASSET_LOCATION="assets/":a.Utils.isTc()?a.Utils.ASSET_LOCATION="/repository/download/Fabrique_FunnyGamesSplash/.lastSuccessful/build/assets/":"fbrq.io"===a.Utils.getSourceSite(!0)&&(a.Utils.ASSET_LOCATION="https://"+window.location.host+"/orange-games-splash/assets/"),a.Utils.getBrandingDomain()){case a.BrandingDomain.Spele:d="spele";break;case a.BrandingDomain.PlayCell:d="playcell";break;case a.BrandingDomain.GameCell:d="gamecell";break;case a.BrandingDomain.Yepi:d="yepi";break;case a.BrandingDomain.Spil:d="spil";break;case a.BrandingDomain.Admeen:d="admeen";break;case a.BrandingDomain.Bild:d="bild";break;default:case a.BrandingDomain.Kizi:d="kizi";break;case a.BrandingDomain.Funnygames:d="funnygames"}a.Utils.isTc()||(b.load.crossOrigin="anonymous"),b.load.image(c.LOGO_KEY,a.Utils.ASSET_LOCATION+"images/branding_logo_"+d+"_small.png")},c.openCampaignLink=function(d,e,f){if(a.Utils.isOnDevice(d)||c.isContracted(d)||c.isSpecial(d)||!c.outGoingLinksAllowed())return null;var g,h,i=a.Utils.getSourceSite(),j=a.Utils.isOnDevice(d)?"https://":"//";switch(a.Utils.getBrandingDomain()){case a.BrandingDomain.Spele:g=j+"www.spele.nl";break;case a.BrandingDomain.Yepi:g=j+"www.yepi.com";break;case a.BrandingDomain.Admeen:return g="https://media.admeen.com/branding/link.php",h=window.open(g,"_blank"),void(h&&h.focus&&h.focus());case a.BrandingDomain.PlayCell:g=j+"www.playcell.com";break;case a.BrandingDomain.GameCell:g=j+"www.gamecell.com";break;default:case a.BrandingDomain.Kizi:g="http://www.kizi.com";break;case a.BrandingDomain.Bild:return h=window.open(j+"www.bildspielt.de","_blank"),void(h&&h.focus&&h.focus());case a.BrandingDomain.Funnygames:g=j+"www.funnygames.nu"}var k="string"==typeof f?f:b[f];h=window.open(g+"/?utm_source="+i+"&utm_medium=html5&utm_term="+e+"&utm_content="+k+"&utm_campaign=Gamedistribution","_blank"),h&&h.focus&&h.focus()},c.getLogoWithLink=function(b,d){var e=new Phaser.Image(b,0,0,c.LOGO_KEY);return a.Utils.isOnDevice(b)||c.isContracted(b)||c.isSpecial(b)||c.isAirfi()||(e.inputEnabled=!0,e.input.useHandCursor=!0,e.events.onInputUp.add(function(){a.Branding.openCampaignLink(b,d,a.UtmTargets.logo)},this)),e.visible=!c.isSpecial(b),e},c.isInternal=function(a){return c.hostMatchesList(a.cache.getJSON(c.INTERNAL_PORTALS_KEY))},c.isContracted=function(a){return c.hostMatchesList(a.cache.getJSON(c.CONTRACTED_PORTALS_KEY))},c.isSpecial=function(a){return c.hostMatchesList(a.cache.getJSON(c.SPECIAL_PORTALS_KEY))},c.isAdmeen=function(){if(!c.siteLocks||!c.siteLocks.hasOwnProperty("admeen"))return!1;var a=c.siteLocks.admeen;return c.hostMatchesList(a)},c.isKongregate=function(){if(!c.siteLocks||!c.siteLocks.hasOwnProperty("kongregate"))return!1;var a=c.siteLocks.kongregate;return c.hostMatchesList(a)},c.isNewgrounds=function(){if(!c.siteLocks||!c.siteLocks.hasOwnProperty("newgrounds"))return!1;var a=c.siteLocks.newgrounds;return c.hostMatchesList(a)},c.isBild=function(){return"bild.fbrq.io"===window.location.host||window.location.host.indexOf("contentfleet.com")!==-1},c.isBip=function(){return window.location.search.indexOf("bipgaming")!==-1||"bip.fbrq.io"===window.location.host},c.isPlaycellApp=function(){return window.location.search.indexOf("playcellApp")!==-1},c.isSpil=function(){return document.referrer.indexOf("gameplayer.io")!==-1},c.isAirfi=function(){return!!window.hasOwnProperty("airfi")&&window.airfi},c.outGoingLinksAllowed=function(){return!c.isAirfi()&&(!window.hasOwnProperty("fbrqLA")||window.fbrqLA)},c.hostMatchesList=function(b){b=b||[];for(var c=a.Utils.getSourceSite(),d=0;d1||b<0||a.playerInstance.setVolume(b))},a.getCuePoints=function(){if(null!==a.playerInstance)return a.playerInstance.cuePoints()},a}();b.playerInstance=null,b.onClose=new Phaser.Signal,a.Tubia=b}(Fabrique||(Fabrique={}));var Fabrique;!function(a){var b;!function(a){a[a.Neutral=0]="Neutral",a[a.Yepi=1]="Yepi",a[a.Spele=2]="Spele",a[a.Funnygames=3]="Funnygames",a[a.Kizi=4]="Kizi",a[a.PlayCell=5]="PlayCell",a[a.GameCell=6]="GameCell",a[a.Bild=7]="Bild",a[a.Spil=8]="Spil",a[a.Admeen=9]="Admeen"}(b=a.BrandingDomain||(a.BrandingDomain={}))}(Fabrique||(Fabrique={}));var Fabrique;!function(a){var b;!function(a){var b=function(a){function b(b,c,d,e,f,g,h){var i=a.call(this,b,d,e,"",null,null)||this;i.onInputUp.add(i.openGame,i),i.id=c.data.key,i.url=c.data.url,i.icon=i.game.add.image(0,0,c.data.key),i.icon.width=f,i.icon.height=f,i.input.priorityID=680,i.addChild(i.icon);var j=i.game.make.graphics(0,0);j.beginFill(h).drawRect(0,0,f,g-f).endFill(),i.titleBg=i.game.add.image(0,f,j.generateTexture()),i.addChild(i.titleBg);var k=c.data.title;return k.length>16&&(k=k.replace(k.substring(14,k.length),"...")),i.title=i.game.add.text(f/2,i.titleBg.y+(g-f)/2+4,k.toUpperCase(),{font:"bold "+.35*(g-f)+"px Arial",fill:"#FFF",align:"center",wordWrap:!0,wordWrapWidth:f-10}),i.title.anchor.set(.5,.5),i.addChild(i.title),j=i.game.make.graphics(0,0),j.beginFill(16777215).drawCircle(0,0,80).beginFill(h).lineTo(-15,-25).lineTo(25,0).lineTo(-15,25).lineTo(-15,-25).endFill(),i.playImg=i.game.add.image(f/2,f/3*2.7,j.generateTexture()),i.playImg.anchor.set(.5,.5),i.addChild(i.playImg),i}return __extends(b,a),b.prototype.openGame=function(){this.game.analytics&&this.game.analytics.google.sendGenericEvent("MoreGames","Click",this.id),this.url.indexOf("http://")!==-1&&this.url.replace("http:","");var a=window.open(this.url,"_self");a&&a.focus&&a.focus()},b.prototype.destroy=function(){this.onInputUp.remove(this.openGame,this),a.prototype.destroy.call(this),this.removedFromWorld()},b}(Phaser.Button);a.Item=b}(b=a.MoreGames||(a.MoreGames={}))}(Fabrique||(Fabrique={}));var Fabrique;!function(a){var b;!function(b){var c=function(c){function d(b,d){var e=c.call(this,b,null,"moreGames-background")||this;e.size=800,e.items=[],e.offset=14,e.isDestroyed=!1,e.gameName=d,e.deviceRatio=b.width/e.size,e.overlay=b.add.graphics(0,0),e.overlay.beginFill(0,.4).drawRect(0,0,b.width,b.height).endFill(),e.overlay.pivot.set(b.width/2,b.height/2),e.overlay.inputEnabled=!0,e.overlay.input.priorityID=660,e.onClose=new Phaser.Signal,e.overlay.events.onInputUp.add(function(){e.hide()}),e.add(e.overlay),e.menuGrp=new Phaser.Group(b,e,"menuGrp"),e.add(e.menuGrp);var f=b.make.graphics(0,0);f.beginFill(2507370).drawRoundedRect(0,0,e.size,e.size+20,15).endFill(),e.background=e.game.add.image(0,0,f.generateTexture()),e.background.anchor.set(.5),e.background.inputEnabled=!0,e.background.input.priorityID=670,e.background.input.useHandCursor=!1,e.menuGrp.add(e.background),e.logoBtn=e.game.add.button(0,-(e.background.height/2)+e.offset,a.Branding.LOGO_KEY,function(){a.Branding.openCampaignLink(e.game,e.gameName,a.UtmTargets.more_games)},e),e.logoBtn.scale.setTo(1),e.logoBtn.anchor.set(.5,0),e.menuGrp.add(e.logoBtn),e.closeBtn=b.add.button(e.size/2-10,-(e.size/2)+25,"close_btn",e.hide,e),e.closeBtn.anchor.set(1),e.closeBtn.input.priorityID=680,e.menuGrp.add(e.closeBtn),e.createItems();var g=b.make.graphics(0,0);g.beginFill(2507370).drawRect(0,0,270,40).endFill(),e.moreGamesBtn=b.add.button(0,e.background.y+e.background.height/2-g.height-e.offset,"",function(){a.Branding.openCampaignLink(e.game,e.gameName,a.UtmTargets.more_games)},e),e.moreGamesBtn.texture=g.generateTexture(),e.moreGamesBtn.input.priorityID=680,e.moreGamesBtn.anchor.set(.5,0),e.menuGrp.add(e.moreGamesBtn);var h={font:"bold 26px Tahoma",fill:"#ffffff"};return e.moreGamesText=b.add.text(0,e.moreGamesBtn.height/2+2,"PLAY MORE GAMES",h),e.moreGamesText.anchor.set(.5),e.moreGamesBtn.addChild(e.moreGamesText),e.visible=!1,e.resize(),e.resizeListener=function(){setTimeout(function(){e.isDestroyed||e.resize()},100)},e.game.scale.onSizeChange.add(e.resizeListener,e),e}return __extends(d,c),d.prototype.createItems=function(){this.itemGrp=this.game.make.group(this,"items"),this.itemGrp.x=0,this.itemGrp.y=this.size/2+this.logoBtn.y+this.logoBtn.height,this.menuGrp.add(this.itemGrp);var c,e,f,g,h=this.game.cache.getJSON(a.Branding.GAME_ICONS_KEY),i=3,j=Math.floor(this.size/i-1.25*this.offset),k=Math.floor(j+.25*j),l=0;for(var m in h)h.hasOwnProperty(m)&&l<6&&!this.isCurrentGame(m)&&(e=l%i*j+this.offset+l%i*this.offset,f=Math.floor(l/i)*k+this.offset+Math.floor(l/i)*this.offset,g=l%d.BG_COLORS.length,c=new b.Item(this.game,h[m],e-this.size/2,f-this.size/2,j,k,d.BG_COLORS[g]),this.itemGrp.add(c),this.items.push(c),l++)},d.prototype.isCurrentGame=function(a){var b=window.location.href.replace(/-/g,"");return a=a.replace(/-/g,""),b.indexOf(a)>=0},d.prototype.show=function(){this.visible||(this.game.analytics&&(this.game.analytics.google.sendScreenView("moregames"),this.game.analytics.google.sendGenericEvent("MoreGames","Open")),this.visible=!0)},d.prototype.hide=function(){this.visible&&(this.visible=!1,this.game.analytics&&this.game.analytics.google.sendGenericEvent("MoreGames","Close"),this.onClose&&this.onClose.dispatch())},d.preloadImages=function(b){a.Utils.getSourceSite();a.Utils.isOnDevice(b)||a.Branding.isAirfi()?a.Utils.ASSET_LOCATION="assets/":a.Utils.isTc()?a.Utils.ASSET_LOCATION="/repository/download/Fabrique_FunnyGamesSplash/.lastSuccessful/build/assets/":"fbrq.io"===a.Utils.getSourceSite(!0)&&(a.Utils.ASSET_LOCATION="//"+window.location.host+"/orange-games-splash/assets/"),a.Utils.isTc()||(b.load.crossOrigin="anonymous"),b.load.image("close_btn",a.Utils.ASSET_LOCATION+"images/close_btn.png");var c=b.cache.getJSON(a.Branding.GAME_ICONS_KEY);for(var d in c)c.hasOwnProperty(d)&&(c[d].data.key=d,b.load.image(d,a.Utils.ASSET_LOCATION+"icons/"+d+".png"))},d.prototype.getScale=function(){return this.game.height>this.game.width&&this.game.widththis.game.height&&this.game.height=3?this.dotText=".":this.dotText+=".",this.preloadText.setText("Loading "+this.dotText)},d.prototype.onPreloadEnd=function(){this.preloadReady=!0,this.game.input.onUp.add(this.handler,this),this.animateButton()},d.prototype.createObjects=function(){this.bgImage=this.game.add.tileSprite(this.game.width/2,this.game.height/2,853,612,"admeen_atlas","bg_pattern"),this.bgImage.pivot.set(426.5,306),this.gradientBitmap=this.game.make.bitmapData(1,1),this.bgGradientOverlay=this.game.add.sprite(0,0,this.gradientBitmap),this.logo=this.game.add.image(0,0,"admeen_atlas","mascotte"),this.logo.anchor.set(.5,.7),this.playButton=this.game.add.button(this.game.width/2,.75*this.game.height,"admeen_atlas",this.handler,this,"btn","btn","btn","btn"),this.playButton.anchor.set(.5),this.playButton.visible=!1,this.created=!0,this.preloadText=this.game.add.text(this.game.width/2,this.game.height/2*.75,"",{font:"Arial",fontSize:40,fill:"#ffffff",fontWeight:"bold"}),this.preloadText.anchor.set(.5)},d.prototype.resizeObjects=function(){if(this.created){var b=this.game.width<1?1:this.game.width,c=this.game.height<1?1:this.game.height;this.logo.scale.set(this.scaleFactor),this.logo.y=.4*this.game.height,this.logo.x=this.game.width/2,this.bgImage.width=853*this.scaleFactor,this.bgImage.height=612*this.scaleFactor,this.bgImage.y=this.game.height/2,this.bgImage.x=this.game.width/2,this.bgImage.pivot.set(853*this.scaleFactor/2,612*this.scaleFactor/2),this.gradientBitmap.resize(b,c);var d=this.gradientBitmap.context.createRadialGradient(b/2,c/2,0,b/2,c/2,.5*c);d.addColorStop(0,"rgba(66, 103, 178, 0)"),d.addColorStop(1,"rgba(66, 103, 178, 1)"),this.gradientBitmap.context.fillStyle=d,this.gradientBitmap.context.clearRect(0,0,b,c),this.gradientBitmap.context.fillRect(0,0,b,c),this.preloadText.x=this.game.width/2,this.preloadText.y=.75*this.game.height,this.preloadText.scale.set(this.scaleFactor),a.Utils.isOnDevice(this.game)||(this.playButton.scale.set(.6*this.scaleFactor),this.playButton.x=this.game.width/2,this.playButton.y=.75*this.game.height)}},d.prototype.handler=function(a,b){if(!this.clicked&&"mouseout"!==b.type){this.clicked=!0,this.game.tweens.remove(this.buttonTween),this.game.camera.fade(0,250);var c=this.game.add.tween(this.playButton.scale);c.to({x:0,y:0},250,Phaser.Easing.Back.In).start(),void 0!==this.config.mobilePlayClickhandler?this.config.mobilePlayClickhandler():this.game.state.start(this.config.nextState),this.game.input.onUp.remove(this.handler,this)}},d.prototype.getScale=function(){return 1},d.prototype.startAnimation=function(){},d.prototype.animateButton=function(){a.Utils.isOnDevice(this.game)||(this.preloadText.visible=!1,this.game.tweens.remove(this.buttonTween),this.playButton.scale.set(this.scaleFactor),this.playButton.visible=!0,this.buttonTween=this.game.add.tween(this.playButton.scale),this.buttonTween.to({x:1.14*this.scaleFactor,y:1.14*this.scaleFactor},420,Phaser.Easing.Quadratic.InOut,!0,500),this.buttonTween.yoyo(!0).onComplete.add(this.animateButton,this),this.buttonTween.start())},d.prototype.update=function(){this.background.update()},d.prototype.resize=function(){this.scaleFactor=this.getScale(),this.background.resize(this.scaleFactor),this.resizeObjects(),this.created&&this.preloadReady&&this.animateButton()},d.prototype.shutdown=function(){this.game.scale.onSizeChange.remove(this.resize,this),this.game.load.onLoadStart.remove(this.onPreloadStart,this),this.game.load.onFileComplete.remove(this.onPreloadedFile,this),this.game.load.onLoadComplete.remove(this.onPreloadEnd,this),this.logo.destroy(!0),this.playButton.destroy(!0),this.bgImage.destroy(!0),this.background.destroy(!0),this.logo=null,this.bgImage=null,this.playButton=null,this.background=null,this.game.state.remove(b.Preloader.Name),this.game.state.remove(b.SplashPreloader.Name),this.game.state.remove(this.name)},d}(Phaser.State);c.Name="admeenSplashScreen",c.IdealWidth=400,c.MaxDots=3,b.Admeen=c}(b=a.SplashScreen||(a.SplashScreen={}))}(Fabrique||(Fabrique={}));var Fabrique;!function(a){var b;!function(b){var c=function(c){function d(){var a=c.call(this)||this;return a.name=d.Name,a.scaleFactor=1,a.created=!1,a.preloadReady=!1,a.clicked=!1,a.preloadTexts=[],a.tId=0,a}return __extends(d,c),d.prototype.init=function(a,b){this.config=a,this.background=b,this.game.scale.onSizeChange.add(this.resize,this)},d.prototype.preload=function(){this.game.add.existing(this.background),this.createObjects(),this.scaleFactor=this.getScale(),this.resizeObjects(),this.startAnimation(),this.game.load.onLoadStart.add(this.onPreloadStart,this),this.game.load.onFileComplete.add(this.onPreloadedFile,this),this.game.load.onLoadComplete.add(this.onPreloadEnd,this),this.config.preloadHandler(),0===this.game.load.totalQueuedFiles()&&this.onPreloadEnd()},d.prototype.onPreloadStart=function(){},d.prototype.onPreloadedFile=function(){},d.prototype.onPreloadEnd=function(){this.preloadReady=!0,this.loadBack.visible=!1,this.loadBar.visible=!1,this.game.input.onUp.add(this.handler,this),this.animateButton()},d.prototype.createObjects=function(){this.logo=this.game.add.sprite(this.game.width/2,this.game.height/2-100,"bild_logo"),this.logo.anchor.set(.5),this.logo.scale.set(.8),d.IdealWidth=this.logo.getBounds().width;var a=this.game.make.graphics(0,0);a.beginFill(16777215,.5).drawRect(0,0,350,20).endFill(),this.loadBack=this.game.add.sprite(this.game.width/2,this.game.height/2+100,a.generateTexture()),this.loadBack.anchor.set(.5);var b=this.game.make.graphics(0,0);b.beginFill(16777215,1).drawRect(0,0,350,20).endFill(),this.loadBar=this.game.add.sprite(this.game.width/2-175,this.game.height/2+100,b.generateTexture()),this.loadBar.anchor.set(0,.5),this.load.setPreloadSprite(this.loadBar),this.playButton=this.game.add.button(this.game.width/2,this.game.height/2+200,"bild_play",this.handler,this),this.playButton.anchor.set(.5),this.playButton.scale.set(this.scaleFactor),this.playButton.visible=!1,this.created=!0},d.prototype.resizeObjects=function(){this.created&&(this.logo.scale.set(.8*this.scaleFactor),this.logo.y=this.game.height/2-100*this.scaleFactor,this.logo.x=this.game.width/2,a.Utils.isOnDevice(this.game)||(this.playButton.x=this.game.width/2,this.playButton.y=this.game.height/2+200*this.scaleFactor))},d.prototype.handler=function(a,b){if(!this.clicked&&"mouseout"!==b.type){this.clicked=!0,this.game.tweens.remove(this.buttonTween),this.game.camera.fade(0,250);var c=this.game.add.tween(this.playButton.scale);c.to({x:0,y:0},250,Phaser.Easing.Back.In).start(),void 0!==this.config.mobilePlayClickhandler?this.config.mobilePlayClickhandler():this.game.state.start(this.config.nextState),this.game.input.onUp.remove(this.handler,this)}},d.prototype.getScale=function(){return a.Utils.isOnDevice(this.game)?this.game.width<1.5*d.IdealWidth?this.game.width/6*4/d.IdealWidth:1:this.game.width1e3&&(this.t=Date.now(),this.tId++,this.tId>=this.preloadTexts.length&&(this.tId=0)),this.dotText.length>=3?this.dotText=".":this.dotText+=".",this.preloadText.setText(this.preloadTexts[this.tId]+this.dotText)},d.prototype.onPreloadEnd=function(){this.preloadReady=!0,this.preloadText.visible=!1,this.game.input.onUp.add(this.handler,this),this.animateButton()},d.prototype.createObjects=function(){this.monster1=this.game.add.spine(0,0,"fgs_monster_1"),this.monster1.setAnimationByName(0,"idle",!0),this.monster2=this.game.add.spine(0,0,"fgs_monster_2"),this.monster2.setAnimationByName(0,"idle",!0),this.monster3=this.game.add.spine(0,0,"fgs_monster_3"),this.monster3.setAnimationByName(0,"idle",!0),this.preloadText=this.game.add.text(this.game.width/2,this.game.height/2+230,"",{font:"Arial",fontSize:40,fill:"#ffffff",fontWeight:"bold"}),this.preloadText.anchor.set(.5),this.logo=this.game.add.image(0,0,"fgs_logo"),this.logo.anchor.set(.5),d.IdealWidth=1.5*this.logo.getBounds().width,this.playButton=this.game.add.button(this.game.width/2,this.game.height/2+230*this.scaleFactor,"fgs_play",this.handler,this,0,0,1,0),this.playButton.anchor.set(.5),this.playButton.scale.set(this.scaleFactor),this.playButton.visible=!1,this.created=!0},d.prototype.handler=function(a,b){if(!this.clicked&&"mouseout"!==b.type){this.clicked=!0,this.game.tweens.remove(this.buttonTween),this.game.camera.fade(0,250);var c=this.game.add.tween(this.playButton.scale);c.to({x:0,y:0},250,Phaser.Easing.Back.In).start(),void 0!==this.config.mobilePlayClickhandler?this.config.mobilePlayClickhandler():this.game.state.start(this.config.nextState),this.game.input.onUp.remove(this.handler,this)}},d.prototype.resizeObjects=function(){this.created&&(this.logo.scale.set(1.5*this.scaleFactor),this.logo.y=this.game.height/2+70*this.scaleFactor,this.logo.x=this.game.width/2,this.monster1.x=this.game.width/2+40*this.scaleFactor,this.monster1.y=this.game.height/2-10*this.scaleFactor,this.monster1.scale.set(.4*this.scaleFactor),this.monster2.x=this.game.width/2+190*this.scaleFactor,this.monster2.y=this.game.height/2-10*this.scaleFactor,this.monster2.scale.set(.4*this.scaleFactor),this.monster3.x=this.game.width/2-140*this.scaleFactor,this.monster3.y=this.game.height/2-10*this.scaleFactor,this.monster3.scale.set(.4*this.scaleFactor),this.preloadText.x=this.game.width/2,this.preloadText.y=this.game.height/2+230*this.scaleFactor,this.preloadText.scale.set(this.scaleFactor),this.playButton.x=this.game.width/2,this.playButton.y=this.game.height/2+230*this.scaleFactor)},d.prototype.getScale=function(){return a.Utils.isOnDevice(this.game)?this.game.width<1.5*d.IdealWidth?this.game.width/6*4/d.IdealWidth:1:this.game.width1e3&&(this.t=Date.now(),this.tId++,this.tId>=this.preloadTexts.length&&(this.tId=0)),this.dotText.length>=3?this.dotText=".":this.dotText+=".",this.preloadText.setText(this.preloadTexts[this.tId]+this.dotText)},d.prototype.onPreloadEnd=function(){this.preloadReady=!0,this.preloadText.visible=!1,this.game.input.onUp.add(this.handler,this),this.animateButton()},d.prototype.createObjects=function(){this.twirl=this.game.add.image(this.game.width/2,this.game.height/2,"gamecell_atlas","gamecell_bg_pattern"),this.twirl.scale.setTo(2,2),this.twirl.anchor.set(.5),this.createOverlay(),this.logoSpine=this.game.add.spine(0,0,"splash_gamecell"),this.logoSpine.setAnimationByName(0,"idle",!0),this.preloadText=this.game.add.text(this.game.width/2,this.game.height/2+230,"",{font:"Arial",fontSize:40,fill:"#ffffff",fontWeight:"bold"}),this.preloadText.anchor.set(.5),this.logo=this.game.add.image(0,0,"gamecell_atlas","gamecell_logo"),this.logo.anchor.set(.5),d.IdealWidth=1.5*this.logo.getBounds().width,this.playButton=this.game.add.button(this.game.width/2,.85*this.game.height,"gamecell_atlas",this.handler,this,"gamecell_btn_play","gamecell_btn_play","gamecell_btn_play","gamecell_btn_play"),this.playButton.anchor.set(.5),this.playButton.scale.set(this.scaleFactor),this.playButton.visible=!1,this.created=!0},d.prototype.createOverlay=function(){this.gradientBitmap=this.game.make.bitmapData(1,1),this.gradient=this.game.make.sprite(0,0,this.gradientBitmap),this.game.add.existing(this.gradient)},d.prototype.handler=function(a,b){if(!this.clicked&&"mouseout"!==b.type){this.clicked=!0,this.game.tweens.remove(this.buttonTween),this.game.camera.fade(0,250);var c=this.game.add.tween(this.playButton.scale);c.to({x:0,y:0},250,Phaser.Easing.Back.In).start(),void 0!==this.config.mobilePlayClickhandler?this.config.mobilePlayClickhandler():this.game.state.start(this.config.nextState),this.game.input.onUp.remove(this.handler,this)}},d.prototype.resizeObjects=function(){if(this.created){this.gradientBitmap.resize(this.game.width,this.game.height),this.gradientBitmap.context.clearRect(0,0,this.game.width,this.game.height);var a=this.gradientBitmap.context.createRadialGradient(this.game.width/2,this.game.height/2,0,this.game.width/2,this.game.height/2,this.game.height/2);a.addColorStop(0,"rgb(8, 8, 54)"),a.addColorStop(1,"rgba(8, 8, 54, 0)"),this.gradientBitmap.context.fillStyle=a,this.gradientBitmap.context.fillRect(0,0,this.game.width,this.game.height),this.logo.scale.set(.5*this.scaleFactor),this.logo.y=.2*this.game.height,this.logo.x=this.game.width/2,this.logoSpine.scale.set(this.scaleFactor),this.logoSpine.autoUpdateTransform(),this.logoSpine.x=this.game.width/2,this.logoSpine.y=this.game.height/2,this.preloadText.x=this.game.width/2,this.preloadText.y=.85*this.game.height,this.preloadText.scale.set(this.scaleFactor),this.playButton.x=this.game.width/2,this.playButton.y=.85*this.game.height,this.twirl.position.set(this.game.width/2,this.game.height/2)}},d.prototype.getScale=function(){return a.Utils.isOnDevice(this.game)?this.game.width<1.5*d.IdealWidth?this.game.width/6*4/d.IdealWidth:1:this.game.width2.8&&(this.twirl.scale.x=2,this.twirl.scale.y=2)},d.prototype.loadUpdate=function(){this.background.update()},d.prototype.resize=function(){this.scaleFactor=this.getScale(),this.background.resize(this.scaleFactor),this.resizeObjects(),this.created&&this.preloadReady&&this.animateButton()},d.prototype.shutdown=function(){c.prototype.shutdown.call(this),this.gradientBitmap.destroy(),this.gradient.destroy(!0),this.gradientBitmap=null,this.gradient=null,this.logo.destroy(!0),this.logoSpine.destroy(!0),this.playButton.destroy(!0),this.background.destroy(!0),this.preloadText.destroy(!0),this.logo=null,this.logoSpine=null,this.playButton=null,this.background=null,this.preloadText=null,this.config=null,this.game.scale.onSizeChange.remove(this.resize,this),this.game.load.onLoadStart.remove(this.onPreloadStart,this),this.game.load.onFileComplete.remove(this.onPreloadedFile,this),this.game.load.onLoadComplete.remove(this.onPreloadEnd,this),this.game.state.remove(b.Preloader.Name),this.game.state.remove(b.SplashPreloader.Name),this.game.state.remove(this.name)},d}(Phaser.State);c.Name="GameCell",c.IdealWidth=860,c.MaxDots=3,b.GameCell=c}(b=a.SplashScreen||(a.SplashScreen={}))}(Fabrique||(Fabrique={}));var Fabrique;!function(a){var b;!function(b){var c=function(c){function d(){var a=c.call(this)||this;return a.name=d.Name,a.scaleFactor=1,a.created=!1,a.preloadReady=!1,a.clicked=!1,a.preloadTexts=["Loading images","Loading music","Loading sound effects","Calculating Pi"],a.dotText=".",a.tId=0,a}return __extends(d,c),d.prototype.init=function(a,b){this.config=a,this.background=b,this.config.preloadTexts&&(this.preloadTexts=this.config.preloadTexts),this.game.scale.onSizeChange.add(this.resize,this)},d.prototype.preload=function(){this.game.add.existing(this.background),this.createObjects(),this.scaleFactor=this.getScale(),this.resizeObjects(),this.startAnimation(),this.game.load.onLoadStart.add(this.onPreloadStart,this),this.game.load.onFileComplete.add(this.onPreloadedFile,this),this.game.load.onLoadComplete.add(this.onPreloadEnd,this),this.config.preloadHandler(),0===this.game.load.totalQueuedFiles()&&this.onPreloadEnd()},d.prototype.onPreloadStart=function(){this.t=Date.now(),this.preloadText.setText(this.preloadTexts[this.tId])},d.prototype.onPreloadedFile=function(){Date.now()-this.t>1e3&&(this.t=Date.now(),this.tId++,this.tId>=this.preloadTexts.length&&(this.tId=0)),this.dotText.length>=3?this.dotText=".":this.dotText+=".",this.preloadText.setText(this.preloadTexts[this.tId]+this.dotText)},d.prototype.onPreloadEnd=function(){this.preloadReady=!0,this.preloadText.visible=!1,this.game.input.onUp.add(this.handler,this),this.animateButton()},d.prototype.createObjects=function(){this.twirl=this.game.add.image(this.game.width/2,this.game.height/2,"kizi_twist"),this.twirl.anchor.set(.5),this.twirl.width=this.twirl.height=this.game.width>this.game.height?this.game.width:this.game.height,this.monster=this.game.add.spine(0,0,"kizi_skeleton"),this.monster.setAnimationByName(0,"idle",!0),this.preloadText=this.game.add.text(this.game.width/2,this.game.height/2+230,"",{font:"Arial",fontSize:40,fill:"#ffffff",fontWeight:"bold"}),this.preloadText.anchor.set(.5),this.logo=this.game.add.image(0,0,"kizi_logo"),this.logo.anchor.set(.5),d.IdealWidth=1.5*this.logo.getBounds().width,this.playButton=this.game.add.button(this.game.width/2,.85*this.game.height,"kizi_button",this.handler,this,0,0,1,0),this.playButton.anchor.set(.5),this.playButton.scale.set(this.scaleFactor),this.playButton.visible=!1,this.created=!0},d.prototype.handler=function(a,b){if(!this.clicked&&"mouseout"!==b.type){this.clicked=!0,this.game.tweens.remove(this.buttonTween),this.game.camera.fade(0,250);var c=this.game.add.tween(this.playButton.scale);c.to({x:0,y:0},250,Phaser.Easing.Back.In).start(),void 0!==this.config.mobilePlayClickhandler?this.config.mobilePlayClickhandler():this.game.state.start(this.config.nextState),this.game.input.onUp.remove(this.handler,this)}},d.prototype.resizeObjects=function(){this.created&&(this.logo.scale.set(.5*this.scaleFactor),this.logo.y=.2*this.game.height,this.logo.x=this.game.width/2,this.monster.scale.set(this.scaleFactor),this.monster.autoUpdateTransform(),this.monster.x=this.game.width/2,this.monster.y=this.game.height/2+.6*this.monster.height,this.preloadText.x=this.game.width/2,this.preloadText.y=.85*this.game.height,this.preloadText.scale.set(this.scaleFactor),this.playButton.x=this.game.width/2,this.playButton.y=.85*this.game.height,this.twirl.position.set(this.game.width/2,this.game.height/2))},d.prototype.getScale=function(){return a.Utils.isOnDevice(this.game)?this.game.width<1.5*d.IdealWidth?this.game.width/6*4/d.IdealWidth:1:this.game.width=1&&(3===this.state?this.setTween(4,14,{alpha:0}):4===this.state?(this.onComplete.dispatch(this.floor,this.cell),this.destroy()):5===this.state?(this.onComplete.dispatch(),this.state=6):this.state=0)}},Object.defineProperty(b.prototype,"scaleX",{get:function(){return this.scale.x},set:function(a){this.scale.x=a},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"scaleY",{get:function(){return this.scale.y},set:function(a){this.scale.y=a},enumerable:!0,configurable:!0}),b.prototype.destroy=function(){a.prototype.destroy.call(this),this.onComplete=null,this.tweenDetails=[],this.tweenDetails=null},b}(Phaser.Sprite);a.SmallPart=b}(b=a.SplashScreen||(a.SplashScreen={}))}(Fabrique||(Fabrique={}));var Fabrique;!function(a){var b;!function(a){var b=function(b){function c(){var a=b.call(this)||this;return a.name=c.Name,a.scaleFactor=1,a.width=787,a.height=494,a.created=!1,a.preloadTexts=[],a.preloadReady=!1,a.clicked=!1,a.tId=0,a}return __extends(c,b),c.prototype.init=function(a,b){this.config=a,this.background=b,this.game.scale.onSizeChange.add(this.resize,this)},c.prototype.preload=function(){this.game.add.existing(this.background),this.scaleFactor=this.getScale(),this.createObjects(),this.resizeObjects(),this.game.load.onLoadStart.add(this.onPreloadStart,this),this.game.load.onFileComplete.add(this.onPreloadedFile,this),this.game.load.onLoadComplete.add(this.onPreloadEnd,this),this.config.preloadHandler(),0===this.game.load.totalQueuedFiles()&&this.onPreloadEnd()},c.prototype.onPreloadStart=function(){this.t=Date.now()},c.prototype.onPreloadedFile=function(){},c.prototype.onPreloadEnd=function(){this.preloadReady=!0,this.game.input.onUp.add(this.handler,this),this.animateButton()},c.prototype.createObjects=function(){this.spine=this.game.add.spine(this.game.width/2,this.game.height/2,"splash_playcell"),this.spine.setMixByName("intro","loop",.2),this.spine.setMixByName("loop","outro",.2),this.spine.setAnimationByName(0,"intro",!1),this.spine.addAnimationByName(0,"loop",!0,0),this.logo=this.game.add.sprite(this.game.width/2,.4*this.game.height,"playcell_atlas","logo"),this.logo.scale.set(this.scaleFactor),this.logo.anchor.set(.5),this.logo.visible=!1,this.playButton=this.game.add.image(this.game.width/2,this.game.height,"playcell_atlas","button"),this.playButton.anchor.set(.5),this.playButton.scale.set(this.scaleFactor),this.playButton.y=this.logo.y+.75*this.logo.height,this.playButton.inputEnabled=!0,this.playButton.events.onInputUp.add(this.handler,this),this.playButton.visible=!1,this.created=!0},c.prototype.resizeObjects=function(){this.created&&(this.logo.position.set(this.game.width/2,.4*this.game.height),this.logo.scale.set(this.scaleFactor),this.playButton.x=this.game.width/2,this.playButton.y=this.logo.y+.75*this.logo.height)},c.prototype.handler=function(a,b){if(!this.clicked&&"mouseout"!==b.type){this.clicked=!0,this.game.tweens.remove(this.buttonTween),this.game.camera.fade(0,250);var c=this.game.add.tween(this.playButton.scale);c.to({x:0,y:0},250,Phaser.Easing.Back.In).start(),void 0!==this.config.mobilePlayClickhandler?this.config.mobilePlayClickhandler():this.game.state.start(this.config.nextState),this.game.input.onUp.remove(this.handler,this)}},c.prototype.getScale=function(){return this.game.width1e3&&(this.t=Date.now(),this.tId++,this.tId>=this.preloadTexts.length&&(this.tId=0)),this.dotText.length>=3?this.dotText=".":this.dotText+=".",this.preloadText.setText(this.preloadTexts[this.tId]+this.dotText)},d.prototype.onPreloadEnd=function(){this.preloadReady=!0,this.preloadText.visible=!1,this.game.input.onUp.add(this.handler,this),this.animateButton()},d.prototype.createObjects=function(){this.twirl=this.game.add.image(this.game.width/2,this.game.height/2,"spele_atlas","spele_bg_pattern"),this.twirl.anchor.set(.5),this.twirl.width=this.twirl.height=this.game.width>this.game.height?this.game.width:this.game.height,this.jelly=this.game.add.spine(0,0,"jelly_skeleton"),this.jelly.setAnimationByName(0,"idle",!0),this.preloadText=this.game.add.text(this.game.width/2,this.game.height/2+230,"",{font:"Arial",fontSize:40,fill:"#ffffff",fontWeight:"bold"}),this.preloadText.anchor.set(.5),this.logo=this.game.add.image(0,0,"spele_atlas","spele_logo"),this.logo.anchor.set(.5),d.IdealWidth=1.5*this.logo.getBounds().width;var a="spele_button";this.playButton=this.game.add.button(this.game.width/2,.85*this.game.height,"spele_atlas",this.handler,this,a,a,a,a),this.playButton.anchor.set(.5),this.playButton.scale.set(this.scaleFactor),this.playButton.visible=!1,this.created=!0},d.prototype.handler=function(a,b){if(!this.clicked&&"mouseout"!==b.type){this.clicked=!0,this.game.tweens.remove(this.buttonTween),this.game.camera.fade(0,250);var c=this.game.add.tween(this.playButton.scale);c.to({x:0,y:0},250,Phaser.Easing.Back.In).start(),void 0!==this.config.mobilePlayClickhandler?this.config.mobilePlayClickhandler():this.game.state.start(this.config.nextState),this.game.input.onUp.remove(this.handler,this)}},d.prototype.resizeObjects=function(){this.created&&(this.logo.scale.set(.5*this.scaleFactor),this.logo.y=.25*this.game.height,this.logo.x=this.game.width/2,this.jelly.scale.set(.5*this.scaleFactor),this.jelly.autoUpdateTransform(),this.jelly.x=this.game.width/2,this.jelly.y=this.game.height/2+1.2*this.jelly.height,this.preloadText.x=this.game.width/2,this.preloadText.y=.85*this.game.height,this.preloadText.scale.set(this.scaleFactor),this.playButton.x=this.game.width/2,this.playButton.y=.84*this.game.height,this.twirl.position.set(this.game.width/2,this.game.height/2))},d.prototype.getScale=function(){return a.Utils.isOnDevice(this.game)?this.game.width<1.5*d.IdealWidth?this.game.width/6*4/d.IdealWidth:1:this.game.width200&&(this.tweenRandomItem(),this.dt=Date.now())},c.prototype.loadUpdate=function(){var a=Date.now()-this.ddt;a>200&&(this.ddt=Date.now(),this.tweenRandomItem())},c.prototype.tweenRandomItem=function(){var a=this.tiles[Math.random()*this.tiles.length|0];this.game.add.tween(a).to({alpha:1},1e3,Phaser.Easing.Linear.None,!0,0,0,!0)},c.prototype.resize=function(){this.scaleFactor=this.getScale(),this.background.resize(this.scaleFactor),this.resizeObjects()},c.prototype.shutdown=function(){b.prototype.shutdown.call(this),this.spine.destroy(!0),this.background.destroy(!0),this.tiles.forEach(function(a){a.destroy(!0)}),this.gradientBitmap.destroy(),this.gradient.destroy(!0),this.logo.destroy(!0),this.balls.forEach(function(a){a.destroy(!0)}),this.spine=null,this.playButton=null,this.background=null,this.gradientBitmap=null,this.gradient=null,this.logo=null,this.tiles=null,this.balls=null,this.game.scale.onSizeChange.remove(this.resize,this),this.game.load.onLoadStart.remove(this.onPreloadStart,this),this.game.load.onFileComplete.remove(this.onPreloadedFile,this),this.game.load.onLoadComplete.remove(this.onPreloadEnd,this),this.game.state.remove(a.Preloader.Name),this.game.state.remove(a.SplashPreloader.Name),this.game.state.remove(this.name)},c}(Phaser.State);b.Name="yepiSplashScreen",b.IdealWidth=463,b.MaxDots=3,a.Yepi=b}(b=a.SplashScreen||(a.SplashScreen={}))}(Fabrique||(Fabrique={}));var Fabrique;!function(a){var b=null,c=function(){function a(){}return a.has=function(a){var c=a.lastIndexOf(".");if(c<=0||c>=a.length-1)return!1;var d=a.lastIndexOf(".",c-1);if(d<=0||d>=c-1)return!1;var e=b[a.slice(c+1)];return!!e&&e.indexOf(" "+a.slice(d+1,c)+" ")>=0},a.is=function(a){var c=a.lastIndexOf(".");if(c<=0||c>=a.length-1)return!1;var d=a.lastIndexOf(".",c-1);if(d>=0)return!1;var e=b[a.slice(c+1)];return!!e&&e.indexOf(" "+a.slice(0,c)+" ")>=0},a.get=function(a){var c=a.lastIndexOf(".");if(c<=0||c>=a.length-1)return null;var d=a.lastIndexOf(".",c-1);if(d<=0||d>=c-1)return null;var e=b[a.slice(c+1)];return e?e.indexOf(" "+a.slice(d+1,c)+" ")<0?null:a.slice(d+1):null},a}(),d=function(){function a(){}return a.setList=function(a){b=a||{}},a.getDomain=function(a){if(null===b)return null;var c=a.match(/\./g);if(c&&c.length<2)return a;var d=a.length-this.getTld(a).length-1;return d=a.lastIndexOf(".",d-1)+1,a.substring(d)||""},a.getTld=function(a){if(null===b)return null;var d=a.lastIndexOf("."),e=a.substring(d+1);return b[e.toLowerCase()]?c.get(a)||e:e},a}();d.KEY="Domains",a.Domain=d}(Fabrique||(Fabrique={}));var Fabrique;!function(a){var b=function(){function b(){}return b.getSourceSite=function(c){void 0===c&&(c=!1);var d=document.referrer||window.location.host;if(c&&(d=window.location.host),d.indexOf("embed.gamedistribution.com")!==-1&&window.location.search.indexOf("gd_sdk_referrer_url")!==-1&&(d=b.getUrlParameter("gd_sdk_referrer_url")||d), +d=decodeURIComponent(d),a.Branding.isBild())return"bildspielt.de";if(a.Branding.isBip())return"bipgaming.com";a.Branding.isSpil()&&(d=b.getReferrer(d)),d=d.indexOf("://")>-1?d.split("/")[2]:d.split("/")[0],d=d.split(":")[0];var e=a.Domain.getDomain(d);return null!==e?e:(3===d.split(".").length&&(d=d.substr(d.indexOf(".")+1)),d)},b.getBrandingDomain=function(){if(window.hasOwnProperty("fbrqBD")&&window.fbrqBD in a.BrandingDomain)return window.fbrqBD;if(a.SplashScreen.Preloader.SPLASH_OVERRIDE!==!1)return a.SplashScreen.Preloader.SPLASH_OVERRIDE;var c=b.getSourceSite();if(a.Branding.isAdmeen())return a.BrandingDomain.Admeen;if(a.Branding.isPlaycellApp()||a.Branding.isBip())return a.BrandingDomain.PlayCell;switch(c){case"spele.nl":return a.BrandingDomain.Spele;case"yepi.com":return a.BrandingDomain.Yepi;case"oyunskor.com":case"barbioyunu.com.tr":case"bebekoyunu.com.tr":case"oyunkolu.com":case"oyungemisi.com":case"oyunlar1.com":case"oyunkuzusu.com":case"kraloyun.com":case"rekoroyun.com":case"oyundedem.com":case"oyunoyna.com":case"pastaoyunu.com.tr":case"playcell.com":return a.BrandingDomain.PlayCell;case"gamecell.com":return a.BrandingDomain.GameCell;case"playxl.com":return a.BrandingDomain.Admeen;default:case"kizi.com":return a.BrandingDomain.Kizi;case"bildspielt.de":return a.BrandingDomain.Bild;case"funnygames.nl":return a.BrandingDomain.Funnygames}},b.getReferrer=function(a){return a.indexOf("?ref=")!==-1?a.substr(a.indexOf("?ref=")+5):a},b.inIframe=function(){try{return window.self!==window.top}catch(a){return!0}},b.getDomain=function(a){var b=document.createElement("a");return b.href=a,b.origin},b.isOnDevice=function(a){return!(!a.device.cordova&&!a.device.crosswalk)&&!/(gamedistribution\.com)/.test(window.location.hostname)},b.isTc=function(){return/(teamcity\.ds\.orangegames\.com)/.test(window.location.host)},b.getRandomRange=function(a,b){return Math.random()*(b-a)+a|0},b.getUrlParameter=function(a){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var b=new RegExp("[\\?&]"+a+"=([^&#]*)"),c=b.exec(location.search);return null===c?"":decodeURIComponent(c[1].replace(/\+/g," "))},b.intTimeToString=function(a){var b=Math.floor(a/3600),c=Math.floor(a%3600/60),d=a%60,e=b<10?"0"+b:b.toString(),f=c<10?"0"+c:c.toString(),g=d<10?"0"+d:d.toString();return e+":"+f+":"+g},b.registerAudioUnlocker=function(a){a.input.touch&&"function"!=typeof a.input.touch.addTouchLockCallback||a.device.android&&a.device.chrome&&a.device.chromeVersion>=55&&(a.sound.touchLocked=!0,a.input.touch.addTouchLockCallback(function(){if(this.noAudio||!this.touchLocked||null!==this._unlockSource)return!0;if(this.usingWebAudio){var a=this.context.createBuffer(1,1,22050);this._unlockSource=this.context.createBufferSource(),this._unlockSource.buffer=a,this._unlockSource.connect(this.context.destination),void 0===this._unlockSource.start?this._unlockSource.noteOn(0):this._unlockSource.start(0),"suspended"===this._unlockSource.context.state&&this._unlockSource.context.resume()}return!0},a.sound,!0))},b}();b.ASSET_LOCATION="patch/cdn/kizi/",a.Utils=b}(Fabrique||(Fabrique={}));var CryptoJS=CryptoJS||function(a,b){var c={},d=c.lib={},e=function(){},f=d.Base={extend:function(a){e.prototype=this;var b=new e;return a&&b.mixIn(a),b.hasOwnProperty("init")||(b.init=function(){b.$super.init.apply(this,arguments)}),b.init.prototype=b,b.$super=this,b},create:function(){var a=this.extend();return a.init.apply(a,arguments),a},init:function(){},mixIn:function(a){for(var b in a)a.hasOwnProperty(b)&&(this[b]=a[b]);a.hasOwnProperty("toString")&&(this.toString=a.toString)},clone:function(){return this.init.prototype.extend(this)}},g=d.WordArray=f.extend({init:function(a,c){a=this.words=a||[],this.sigBytes=c!=b?c:4*a.length},toString:function(a){return(a||i).stringify(this)},concat:function(a){var b=this.words,c=a.words,d=this.sigBytes;if(a=a.sigBytes,this.clamp(),d%4)for(var e=0;e>>2]|=(c[e>>>2]>>>24-e%4*8&255)<<24-(d+e)%4*8;else if(65535>>2]=c[e>>>2];else b.push.apply(b,c);return this.sigBytes+=a,this},clamp:function(){var b=this.words,c=this.sigBytes;b[c>>>2]&=4294967295<<32-c%4*8,b.length=a.ceil(c/4)},clone:function(){var a=f.clone.call(this);return a.words=this.words.slice(0),a},random:function(b){for(var c=[],d=0;d>>2]>>>24-d%4*8&255;c.push((e>>>4).toString(16)),c.push((15&e).toString(16))}return c.join("")},parse:function(a){for(var b=a.length,c=[],d=0;d>>3]|=parseInt(a.substr(d,2),16)<<24-d%8*4;return new g.init(c,b/2)}},j=h.Latin1={stringify:function(a){var b=a.words;a=a.sigBytes;for(var c=[],d=0;d>>2]>>>24-d%4*8&255));return c.join("")},parse:function(a){for(var b=a.length,c=[],d=0;d>>2]|=(255&a.charCodeAt(d))<<24-d%4*8;return new g.init(c,b)}},k=h.Utf8={stringify:function(a){try{return decodeURIComponent(escape(j.stringify(a)))}catch(a){throw Error("Malformed UTF-8 data")}},parse:function(a){return j.parse(unescape(encodeURIComponent(a)))}},l=d.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new g.init,this._nDataBytes=0},_append:function(a){"string"==typeof a&&(a=k.parse(a)),this._data.concat(a),this._nDataBytes+=a.sigBytes},_process:function(b){var c=this._data,d=c.words,e=c.sigBytes,f=this.blockSize,h=e/(4*f),h=b?a.ceil(h):a.max((0|h)-this._minBufferSize,0);if(b=h*f,e=a.min(4*b,e),b){for(var i=0;ij;){var k;a:{k=i;for(var l=a.sqrt(k),m=2;m<=l;m++)if(!(k%m)){k=!1;break a}k=!0}k&&(8>j&&(f[j]=h(a.pow(i,.5))),g[j]=h(a.pow(i,1/3)),j++),i++}var n=[],c=c.SHA256=e.extend({_doReset:function(){this._hash=new d.init(f.slice(0))},_doProcessBlock:function(a,b){for(var c=this._hash.words,d=c[0],e=c[1],f=c[2],h=c[3],i=c[4],j=c[5],k=c[6],l=c[7],m=0;64>m;m++){if(16>m)n[m]=0|a[b+m];else{var o=n[m-15],p=n[m-2];n[m]=((o<<25|o>>>7)^(o<<14|o>>>18)^o>>>3)+n[m-7]+((p<<15|p>>>17)^(p<<13|p>>>19)^p>>>10)+n[m-16]}o=l+((i<<26|i>>>6)^(i<<21|i>>>11)^(i<<7|i>>>25))+(i&j^~i&k)+g[m]+n[m],p=((d<<30|d>>>2)^(d<<19|d>>>13)^(d<<10|d>>>22))+(d&e^d&f^e&f),l=k,k=j,j=i,i=h+o|0,h=f,f=e,e=d,d=o+p|0}c[0]=c[0]+d|0,c[1]=c[1]+e|0,c[2]=c[2]+f|0,c[3]=c[3]+h|0,c[4]=c[4]+i|0,c[5]=c[5]+j|0,c[6]=c[6]+k|0,c[7]=c[7]+l|0},_doFinalize:function(){var b=this._data,c=b.words,d=8*this._nDataBytes,e=8*b.sigBytes;return c[e>>>5]|=128<<24-e%32,c[14+(e+64>>>9<<4)]=a.floor(d/4294967296),c[15+(e+64>>>9<<4)]=d,b.sigBytes=4*c.length,this._process(),this._hash},clone:function(){var a=e.clone.call(this);return a._hash=this._hash.clone(),a}});b.SHA256=e._createHelper(c),b.HmacSHA256=e._createHmacHelper(c)}(Math),function(){var a=CryptoJS,b=a.enc.Utf8;a.algo.HMAC=a.lib.Base.extend({init:function(a,c){a=this._hasher=new a.init,"string"==typeof c&&(c=b.parse(c));var d=a.blockSize,e=4*d;c.sigBytes>e&&(c=a.finalize(c)),c.clamp();for(var f=this._oKey=c.clone(),g=this._iKey=c.clone(),h=f.words,i=g.words,j=0;j>>2]>>>24-e%4*8&255)<<16|(b[e+1>>>2]>>>24-(e+1)%4*8&255)<<8|b[e+2>>>2]>>>24-(e+2)%4*8&255,g=0;4>g&&e+.75*g>>6*(3-g)&63));if(b=d.charAt(64))for(;a.length%4;)a.push(b);return a.join("")},parse:function(a){var c=a.length,d=this._map,e=d.charAt(64);e&&-1!=(e=a.indexOf(e))&&(c=e);for(var e=[],f=0,g=0;g>>6-g%4*2;e[f>>>2]|=(h|i)<<24-f%4*8,f++}return b.create(e,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}();var GA;!function(a){!function(a){a[a.ios=0]="ios",a[a.android=1]="android",a[a.windows=2]="windows",a[a.windows_phone=3]="windows_phone",a[a.blackberry=4]="blackberry",a[a.roku=5]="roku",a[a.tizen=6]="tizen",a[a.nacl=7]="nacl",a[a.mac_osx=8]="mac_osx",a[a.webplayer=9]="webplayer"}(a.Platform||(a.Platform={})),a.Platform,function(a){a[a.male=0]="male",a[a.female=1]="female"}(a.Gender||(a.Gender={})),a.Gender}(GA||(GA={}));var GA;!function(a){!function(a){var b=/^[A-Za-z0-9\\s\\-_\\.\\(\\)\\!\\?]{1,64}:[A-Za-z0-9\\s\\-_\\.\\(\\)\\!\\?]{1,64}$/,c=function(){function a(a,c,d,e,f,g){if(this.category=1,this.transaction_num=0,!a||null===a.match(b))throw new Error("Invalid event_id supplied for BusinessEvent");if(this.event_id=a,this.amount=c,!d||null===d.match(/^[A-Z]{3}$/))throw new Error("Invalid currency supplied for BusinessEvent");if(this.currency=d,this.transaction_num=e,f){if(f.length>32)throw new Error("A too long cart_type was supplied, should be max 32 characters");this.cart_type=f}void 0!==g&&(this.receipt_info=g)}return a}();a.Business=c}(a.Events||(a.Events={}))}(GA||(GA={}));var GA;!function(a){!function(a){var b=/^[A-Za-z0-9\\s\\-_\\.\\(\\)\\!\\?]{1,64}(:[A-Za-z0-9\\s\\-_\\.\\(\\)\\!\\?]{1,64}){0,4}$/,c=function(){function a(a,c){if(this.category=0,null===a.match(b))throw new Error("Invalid event_id supplied for DesignEvent");this.event_id=a,void 0!==c&&(this.value=c)}return a}();a.Design=c}(a.Events||(a.Events={}))}(GA||(GA={}));var GA;!function(a){!function(a){!function(a){a[a.design=0]="design",a[a.business=1]="business",a[a.error=2]="error",a[a.user=3]="user",a[a.session_end=4]="session_end",a[a.progression=5]="progression",a[a.resource=6]="resource"}(a.Category||(a.Category={})),a.Category}(a.Events||(a.Events={}))}(GA||(GA={}));var GA;!function(a){!function(a){!function(a){a[a.debug=0]="debug",a[a.info=1]="info",a[a.warning=2]="warning",a[a.error=3]="error",a[a.critical=4]="critical"}(a.ErrorSeverity||(a.ErrorSeverity={}));var b=a.ErrorSeverity,c=function(){function a(a,c){this.category=2,this.message="",this.severity=b[a],void 0!==c&&(this.message=c.substr(0,8192))}return a}();a.Exception=c}(a.Events||(a.Events={}))}(GA||(GA={}));var GA;!function(a){!function(a){var b=function(){function a(){}return a}();a.InitResponse=b;var c=function(){function a(a){this.data=a}return a.prototype.toString=function(){return JSON.stringify(this.data)},a}();a.Init=c}(a.Events||(a.Events={}))}(GA||(GA={}));var GA;!function(a){!function(a){var b=/^(Start|Fail|Complete):[A-Za-z0-9\\s\\-_\\.\\(\\)\\!\\?]{1,64}(:[A-Za-z0-9\\s\\-_\\.\\(\\)\\!\\?]{1,64}){0,2}$/,c=function(){function a(a,c,d){if(this.category=5,null===a.match(b))throw new Error("Invalid event_id supplied for ProgressionEvent");this.event_id=a,void 0!==c&&(this.attempt_num=c),void 0!==d&&(this.score=d)}return a}();a.Progression=c}(a.Events||(a.Events={}))}(GA||(GA={}));var GA;!function(a){!function(a){var b=/^(Sink|Source):[A-Za-z]{1,64}:[A-Za-z0-9\\s\\-_\\.\\(\\)\\!\\?]{1,64}:[A-Za-z0-9\\s\\-_\\.\\(\\)\\!\\?]{1,64}/,c=function(){function a(a,c){if(this.category=6,null===a.match(b))throw new Error("Invalid event_id supplied for ResourceEvent");this.event_id=a,this.amount=c}return a}();a.Resource=c}(a.Events||(a.Events={}))}(GA||(GA={}));var GA;!function(a){!function(a){var b=function(){function a(a){this.category=4,this.length=0,this.length=a}return a}();a.SessionEnd=b}(a.Events||(a.Events={}))}(GA||(GA={}));var GA;!function(a){!function(a){var b=function(){function a(){this.category=3}return a}();a.User=b}(a.Events||(a.Events={}))}(GA||(GA={}));var GA;!function(a){function b(){return null===c.instance&&(c.instance=new c),c.instance}a.getInstance=b;var c=function(){function b(){this.sessionId=a.Utils.createUniqueId(),this.messageQueue=new a.Utils.MessageQueue,this.enabled=!1,this.initProcessed=!1,this.timeoutId=0,this.timeOffset=0}return b.prototype.init=function(c,d,e,f){var g=this;if(null===b.instance)throw new Error("No instance Available!");this.gameKey=c,this.secretKey=d,this.build=e,this.user=f,this.incrementSessionNum(f);var h=new a.Events.Init(a.Utils.getBaseAnnotations());return this.sendEvent(h.toString(),"init",function(a){g.initProcessed=!0,!0===a.enabled&&(g.enabled=!0,g.timeOffset=(Date.now()/1e3|0)-a.server_ts)}),this.scheduleSendData(b.SCHEDULE_TIME),window.addEventListener("beforeunload",function(){g.sendData()}),this},b.prototype.incrementSessionNum=function(b){var c=a.Utils.LocalStorage.getItem(b.user_id);c?a.Utils.LocalStorage.setItem(b.user_id,(parseInt(c)+1).toString()):(c="1",a.Utils.LocalStorage.setItem(b.user_id,c))},b.prototype.addEvent=function(c){if(null===b.instance)throw new Error("No instance Available!");var d=new a.Utils.Message(c,a.Utils.getDefaultAnnotations(this.user,this.sessionId,this.build,this.timeOffset));return this.messageQueue.push(d),this},b.prototype.sendData=function(){if(!1===this.initProcessed)return this.scheduleSendData(1e3),this;if(!1===this.enabled)return this;if(null===b.instance)throw new Error("No instance Available!");for(var a=[],c="";this.messageQueue.length>0;){var d=this.messageQueue.pop();a.push(d.data)}if(0===a.length)return this.scheduleSendData(b.SCHEDULE_TIME),this;try{c=JSON.stringify(a)}catch(a){}return this.sendEvent(c,"events"),this.scheduleSendData(b.SCHEDULE_TIME),this},b.prototype.scheduleSendData=function(a){var b=this;clearTimeout(this.timeoutId),this.timeoutId=setTimeout(function(){b.sendData()},a)},b.prototype.sendEvent=function(c,d,e){if(void 0===e&&(e=null),null===b.instance&&null===this.gameKey)throw new Error("No instance Available!");if(!(c.length<1)){var f=CryptoJS.HmacSHA256(c,this.secretKey),g=CryptoJS.enc.Base64.stringify(f),h=b.API_URL+this.gameKey+"/"+d;a.Utils.postRequest(h,c,g,function(a){if(!1===a.success&&window.console&&console.log(a.message),null!=e){var b="";try{b=JSON.parse(a.message)}catch(a){}e(b)}})}},b.SCHEDULE_TIME=15e3,b.SDK_VERSION="rest api v2",b.API_URL="patch/json/null.json?"+("https:"===document.location.protocol?"https":"http")+"://api.gameanalytics.com/v2/",b.instance=null,b}();a.GameAnalytics=c}(GA||(GA={}));var GA;!function(a){var b=function(){function b(b,c,d,e){if(this.user_id="",b)this.user_id=b;else{var f=a.Utils.LocalStorage.getItem("user");this.user_id=f||a.Utils.createUniqueUserId()}c&&c.length>0&&(this.facebook_id=c,this.user_id=c),a.Utils.LocalStorage.setItem("user",this.user_id),1!==d&&0!==d||(this.gender=d),e&&e.toString().match(/^[0-9]{4}$/gi)&&(this.birth_year=e)}return b}();a.User=b}(GA||(GA={}));var GA;!function(a){!function(b){function c(b,c,d,f){var g={sdk_version:a.GameAnalytics.SDK_VERSION,platform:a.Platform[2],os_version:a.Platform[2]+" 8",device:"unknown",v:2,user_id:b.user_id,client_ts:(Date.now()/1e3|0)+f,manufacturer:"unknown",session_id:c,session_num:e(b.user_id),build:d};b.facebook_id&&(g.facebook_id=b.facebook_id),0!==b.gender&&1!==b.gender||(g.gender=a.Gender[b.gender]),b.birth_year&&(g.birth_year=b.birth_year);var h=navigator.userAgent;return h.match(/iPad|iPod|iPhone/i)?(g.platform=a.Platform[0],g.device=h.match(/iPad|iPod|iPhone/i)[0],g.manufacturer="Apple",g.os_version=a.Platform[0]+" "+h.match(/OS (\b[0-9]+_[0-9]+(?:_[0-9]+)?\b)/)[1].replace(/_/gi,".")):h.match(/Android/i)?(g.platform=a.Platform[1],g.device=h.match(/Mobile/i)?"Phone":"Tablet",g.os_version=a.Platform[1],/Firefox/i.test(h)||(g.os_version+=" "+h.match(/Android (\d+(?:\.\d+)*);/)[1])):h.match(/Windows Phone/i)&&(g.platform=a.Platform[2],g.device="Windows Phone",g.os_version=a.Platform[2]+" "+h.match(/Phone (\d+(?:\.\d+)+);/)[1]),g}function d(){var b={sdk_version:a.GameAnalytics.SDK_VERSION,platform:"unknown",os_version:"unknown"},c=navigator.userAgent;return c.match(/iPad|iPod|iPhone/i)?(b.platform=a.Platform[0],b.os_version=a.Platform[0]+" "+c.match(/OS (\b[0-9]+_[0-9]+(?:_[0-9]+)?\b)/)[1].replace(/_/gi,".")):c.match(/Android/i)?(b.platform=a.Platform[1],b.os_version=a.Platform[1],/Firefox/i.test(c)||(b.os_version+=" "+c.match(/Android (\d+(?:\.\d+)*);/)[1])):c.match(/Windows Phone/i)&&(b.platform=a.Platform[2],b.os_version=a.Platform[2]+" "+c.match(/Phone (\d+(?:\.\d+)+);/)[1]),b}function e(a){var c=b.LocalStorage.getItem(a);return c?parseInt(c):1}b.getDefaultAnnotations=c,b.getBaseAnnotations=d}(a.Utils||(a.Utils={}))}(GA||(GA={}));var GA;!function(a){!function(a){var b=function(){function a(){}return a.getItem=function(b){if(a.Available)return localStorage.getItem(a.CacheKey+b)},a.setItem=function(b,c){a.Available&&localStorage.setItem(a.CacheKey+b,c)},a.Available=!1,a.CacheKey="GA:",a}();a.LocalStorage=b;try{"object"==typeof localStorage&&(localStorage.setItem("testingLocalStorage","yes"),localStorage.removeItem("testingLocalStorage"),b.Available=!0)}catch(a){}}(a.Utils||(a.Utils={}))}(GA||(GA={}));var GA;!function(a){!function(b){var c=function(){function b(a,b){this.event=a,this.annotations=b}return Object.defineProperty(b.prototype,"data",{get:function(){for(var b in this.event)this.event.hasOwnProperty(b)&&(this.annotations[b]="category"===b?a.Events.Category[this.event[b]]:this.event[b]);return this.annotations},enumerable:!0,configurable:!0}),b}();b.Message=c}(a.Utils||(a.Utils={}))}(GA||(GA={}));var GA;!function(a){!function(a){var b=function(){function a(){this.queue=[],this.load()}return a.prototype.push=function(a){this.queue.push(a)},a.prototype.pop=function(){return this.queue.pop()},Object.defineProperty(a.prototype,"length",{get:function(){return this.queue.length},enumerable:!0,configurable:!0}),a.prototype.save=function(){},a.prototype.load=function(){},a}();a.MessageQueue=b}(a.Utils||(a.Utils={}))}(GA||(GA={}));var GA;!function(a){!function(a){function b(a,b,c,d){var e;if(!window.XMLHttpRequest)return void d({success:!1,message:"Error: Unable to send request, XMLHttpRequest not supported"});e=new XMLHttpRequest,e.onreadystatechange=function(){4==e.readyState&&(200===e.status?d({success:!0,message:e.responseText}):e.status>0&&d({success:!1,message:"Error: There was a problem with the request: status "+e.status}))};try{e.open("POST",a,!0),e.setRequestHeader("Authorization",c),e.setRequestHeader("Content-Type","application/json"),e.send(b)}catch(a){d({success:!1,message:"Error: Unable to send request, CORS not allowed."})}}var c=function(){function a(){this.success=!1,this.message=""}return a}();a.Response=c,a.postRequest=b}(a.Utils||(a.Utils={}))}(GA||(GA={}));var GA;!function(a){!function(a){function b(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=16*Math.random()|0;return("x"==a?b:3&b|8).toString(16)})}function c(){return b()}a.createUniqueId=b,a.createUniqueUserId=c}(a.Utils||(a.Utils={}))}(GA||(GA={})); \ No newline at end of file diff --git a/vex8/patch/cdn/phaser-ce/filters/BlurX.js b/vex8/patch/cdn/phaser-ce/filters/BlurX.js new file mode 100644 index 000000000..b8a8b155d --- /dev/null +++ b/vex8/patch/cdn/phaser-ce/filters/BlurX.js @@ -0,0 +1,53 @@ +/** +* A horizontal blur filter by Mat Groves http://matgroves.com/ @Doormat23 +*/ +Phaser.Filter.BlurX = function (game) { + + Phaser.Filter.call(this, game); + + this.uniforms.blur = { type: '1f', value: 1 / 512 }; + + this.fragmentSrc = [ + + "precision mediump float;", + "varying vec2 vTextureCoord;", + "varying vec4 vColor;", + "uniform float blur;", + "uniform sampler2D uSampler;", + + "void main(void) {", + + "vec4 sum = vec4(0.0);", + + "sum += texture2D(uSampler, vec2(vTextureCoord.x - 4.0*blur, vTextureCoord.y)) * 0.05;", + "sum += texture2D(uSampler, vec2(vTextureCoord.x - 3.0*blur, vTextureCoord.y)) * 0.09;", + "sum += texture2D(uSampler, vec2(vTextureCoord.x - 2.0*blur, vTextureCoord.y)) * 0.12;", + "sum += texture2D(uSampler, vec2(vTextureCoord.x - blur, vTextureCoord.y)) * 0.15;", + "sum += texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y)) * 0.16;", + "sum += texture2D(uSampler, vec2(vTextureCoord.x + blur, vTextureCoord.y)) * 0.15;", + "sum += texture2D(uSampler, vec2(vTextureCoord.x + 2.0*blur, vTextureCoord.y)) * 0.12;", + "sum += texture2D(uSampler, vec2(vTextureCoord.x + 3.0*blur, vTextureCoord.y)) * 0.09;", + "sum += texture2D(uSampler, vec2(vTextureCoord.x + 4.0*blur, vTextureCoord.y)) * 0.05;", + + "gl_FragColor = sum;", + + "}" + ]; + +}; + +Phaser.Filter.BlurX.prototype = Object.create(Phaser.Filter.prototype); +Phaser.Filter.BlurX.prototype.constructor = Phaser.Filter.BlurX; + +Object.defineProperty(Phaser.Filter.BlurX.prototype, 'blur', { + + get: function() { + return this.uniforms.blur.value / (1/7000); + }, + + set: function(value) { + this.dirty = true; + this.uniforms.blur.value = (1/7000) * value; + } + +}); diff --git a/vex8/patch/cdn/phaser-ce/filters/BlurY.js b/vex8/patch/cdn/phaser-ce/filters/BlurY.js new file mode 100644 index 000000000..9c7d7d51e --- /dev/null +++ b/vex8/patch/cdn/phaser-ce/filters/BlurY.js @@ -0,0 +1,54 @@ +/** +* A vertical blur filter by Mat Groves http://matgroves.com/ @Doormat23 +*/ +Phaser.Filter.BlurY = function (game) { + + Phaser.Filter.call(this, game); + + this.uniforms.blur = { type: '1f', value: 1 / 512 }; + + this.fragmentSrc = [ + + "precision mediump float;", + "varying vec2 vTextureCoord;", + "varying vec4 vColor;", + "uniform float blur;", + "uniform sampler2D uSampler;", + + "void main(void) {", + + "vec4 sum = vec4(0.0);", + + "sum += texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y - 4.0*blur)) * 0.05;", + "sum += texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y - 3.0*blur)) * 0.09;", + "sum += texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y - 2.0*blur)) * 0.12;", + "sum += texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y - blur)) * 0.15;", + "sum += texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y)) * 0.16;", + "sum += texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y + blur)) * 0.15;", + "sum += texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y + 2.0*blur)) * 0.12;", + "sum += texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y + 3.0*blur)) * 0.09;", + "sum += texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y + 4.0*blur)) * 0.05;", + + "gl_FragColor = sum;", + + "}" + + ]; + +}; + +Phaser.Filter.BlurY.prototype = Object.create(Phaser.Filter.prototype); +Phaser.Filter.BlurY.prototype.constructor = Phaser.Filter.BlurY; + +Object.defineProperty(Phaser.Filter.BlurY.prototype, 'blur', { + + get: function() { + return this.uniforms.blur.value / (1/7000); + }, + + set: function(value) { + this.dirty = true; + this.uniforms.blur.value = (1/7000) * value; + } + +}); diff --git a/vex8/patch/cdn/phaser/1.0/phaser-super-storage.min.js b/vex8/patch/cdn/phaser/1.0/phaser-super-storage.min.js new file mode 100644 index 000000000..1a676a3eb --- /dev/null +++ b/vex8/patch/cdn/phaser/1.0/phaser-super-storage.min.js @@ -0,0 +1,10 @@ +/*! + * phaser-super-storage - version 1.0.4 + * A cross platform storage plugin for Phaser + * + * OrangeGames + * Build at 02-10-2017 + * Released under MIT License + */ + +var PhaserSuperStorage;!function(a){var b;!function(a){var b=function(){function a(a){void 0===a&&(a=""),this.namespace="",this.forcePromises=!1,this.setNamespace(a)}return Object.defineProperty(a.prototype,"length",{get:function(){return null!==this.getNameSpaceMatches()?this.getNameSpaceMatches().length:0},enumerable:!0,configurable:!0}),a.prototype.key=function(a){var b=this.getNameSpaceMatches()[a],c=this.getCookiesForNameSpace()[b]||null;return this.forcePromises?this.promisefy(c):c},a.prototype.getItem=function(a){var b=this.getCookiesForNameSpace()[a]||null;return this.forcePromises?this.promisefy(b):b},a.prototype.setItem=function(a,b){if(document.cookie=encodeURIComponent(this.namespace+a)+"="+encodeURIComponent(b)+"; expires=Tue, 19 Jan 2038 03:14:07 GMT; path=/",this.forcePromises)return this.promisefy(null)},a.prototype.removeItem=function(a){if(document.cookie=encodeURIComponent(this.namespace+a)+"=; expires=Thu, 01 Jan 1970 00:00:00 GMT; path=/",this.forcePromises)return this.promisefy(null)},a.prototype.clear=function(){var a=this.getCookiesForNameSpace();for(var b in a)a.hasOwnProperty(b)&&this.removeItem(b);if(this.forcePromises)return this.promisefy(null)},a.prototype.setNamespace=function(a){if(a&&(this.namespace=a+":",this.reg=new RegExp("^"+this.namespace+"[a-zA-Z0-9]*","g")),this.forcePromises)return this.promisefy(a)},a.prototype.getNameSpaceMatches=function(){var a=this,b=decodeURIComponent(document.cookie).split("; ");return b.filter(function(b){return null!==b.match(a.reg)&&b.match(a.reg).length>0})},a.prototype.getCookiesForNameSpace=function(){var a=this,b={};return this.getNameSpaceMatches().forEach(function(c){var d=c.replace(a.namespace,"").split("=");b[d[0]]=d[1]}),b},a.prototype.promisefy=function(a){return new Promise(function(b,c){b(a)})},a}();a.CookieStorage=b}(b=a.StorageAdapters||(a.StorageAdapters={}))}(PhaserSuperStorage||(PhaserSuperStorage={}));var PhaserSuperStorage;!function(a){var b;!function(a){var b=function(){function a(){this.namespace="",this.keys=[]}return Object.defineProperty(a.prototype,"forcePromises",{get:function(){return!0},set:function(a){},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"length",{get:function(){return this.keys.length},enumerable:!0,configurable:!0}),a.prototype.key=function(a){return this.promisefy(this.keys[a])},a.prototype.getItem=function(a){var b=this;return new Promise(function(c,d){NativeStorage.getItem(b.namespace+a,function(a){c(a)},function(a){2===a.code?c(null):d(a)})})},a.prototype.setItem=function(a,b){var c=this;return a.length<1?void console.error("CordovaStorage: Key cannot be an empty string!"):new Promise(function(d,e){NativeStorage.setItem(c.namespace+a,b,function(){c.keys.indexOf(a)<0&&(c.keys.push(a),c.save()),d(null)},function(a){e(a)})})},a.prototype.removeItem=function(a){var b=this;return new Promise(function(c,d){NativeStorage.remove(b.namespace+a,function(){var d=b.keys.indexOf(a);d>=0&&(b.keys.splice(d,1),b.save()),c(null)},function(a){d(a)})})},a.prototype.clear=function(){var a=this;return new Promise(function(b,c){for(var d=0,e=0;e=a.keys.length&&(a.keys=[],a.save(),b(null))},function(a){c(a)})})},a.prototype.setNamespace=function(a){var b=this;return void 0===a&&(a=""),this.namespace=a+":",this.keys=[],new Promise(function(a,c){b.load().then(a)["catch"](a)})},a.prototype.promisefy=function(a){return new Promise(function(b,c){b(a)})},a.prototype.load=function(){var a=this;return new Promise(function(b,c){NativeStorage.getItem(a.namespace,function(c){a.keys=JSON.parse(c),b(null)},function(a){c(a)})})},a.prototype.save=function(){NativeStorage.setItem(this.namespace,JSON.stringify(this.keys),function(){},function(a){console.warn("CordovaStorage: Failed to save keys of namespace.")})},a}();a.CordovaStorage=b}(b=a.StorageAdapters||(a.StorageAdapters={}))}(PhaserSuperStorage||(PhaserSuperStorage={}));var PhaserSuperStorage;!function(a){var b;!function(b){var c=function(){function b(a,b){void 0===a&&(a=""),void 0===b&&(b="*"),this.namespace="",this.expectedOrigin="",this.storageLength=0,this.enabled=!1,""!==a&&this.setNamespace(a),this.expectedOrigin=b}return Object.defineProperty(b.prototype,"forcePromises",{get:function(){return!0},set:function(a){},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"length",{get:function(){return this.storageLength},enumerable:!0,configurable:!0}),b.prototype.init=function(){var b=this;return this.sendMessage({command:a.StorageCommand.init}).then(function(){b.enabled=!0})},b.prototype.key=function(b){return this.sendMessage({command:a.StorageCommand.key,value:b})},b.prototype.getItem=function(b){return this.sendMessage({command:a.StorageCommand.getItem,key:b})},b.prototype.setItem=function(b,c){return this.sendMessage({command:a.StorageCommand.setItem,key:b,value:c})},b.prototype.removeItem=function(b){return this.sendMessage({command:a.StorageCommand.removeItem,key:b})},b.prototype.clear=function(){return this.sendMessage({command:a.StorageCommand.clear})},b.prototype.setNamespace=function(b){return this.sendMessage({command:a.StorageCommand.setNamespace,value:b})},b.prototype.sendMessage=function(b){var c,d=this;b.command===a.StorageCommand.init&&(c=!1);var e=new MessageChannel;return new Promise(function(f,g){d.enabled||b.command===a.StorageCommand.init||g("Messaging not enabled!"),b.command===a.StorageCommand.init&&setTimeout(function(){c||g("Unable to get a response in time")},1e3),e.port1.onmessage=function(b){console.log("Frame received message",b);var e=a.StorageUtils.validateMessage(b.data);switch(e.command===a.StorageCommand.init&&(c=!0),void 0!==e.status&&"ok"===e.status||g(e.value),void 0!==e.length&&(d.storageLength=e.length),e.command){case a.StorageCommand.setNamespace:d.namespace=e.value+":";case a.StorageCommand.getItem:case a.StorageCommand.length:case a.StorageCommand.key:f(e.value);break;case a.StorageCommand.setItem:case a.StorageCommand.removeItem:case a.StorageCommand.clear:case a.StorageCommand.init:f(e.status);break;default:g(e.value)}},(d.enabled||b.command===a.StorageCommand.init)&&(console.log("Sending message to parent: ",b),window.parent.postMessage(b,d.expectedOrigin,[e.port2]))})},b}();b.IframeStorage=c}(b=a.StorageAdapters||(a.StorageAdapters={}))}(PhaserSuperStorage||(PhaserSuperStorage={}));var PhaserSuperStorage;!function(a){var b;!function(b){var c=function(){function b(a){void 0===a&&(a=""),this.namespace="",this.forcePromises=!1,this.setNamespace(a)}return Object.defineProperty(b.prototype,"length",{get:function(){var b=Object.keys(localStorage);return a.StorageUtils.nameSpaceKeyFilter(b,this.namespace).length},enumerable:!0,configurable:!0}),b.prototype.key=function(a){return this.forcePromises?this.promisefy(this._key,arguments):this._key(a)},b.prototype._key=function(b){var c=Object.keys(localStorage),d=a.StorageUtils.nameSpaceKeyFilter(c,this.namespace),e=localStorage.getItem(d[b]);return e},b.prototype.getItem=function(a){return this.forcePromises?this.promisefy(this._getItem,arguments):this._getItem(a)},b.prototype._getItem=function(a){return localStorage.getItem(this.namespace+a)},b.prototype.setItem=function(a,b){return this.forcePromises?this.promisefy(this._setItem,arguments):this._setItem(a,b)},b.prototype._setItem=function(a,b){return localStorage.setItem(this.namespace+a,b)},b.prototype.removeItem=function(a){return this.forcePromises?this.promisefy(this._removeItem,arguments):this._removeItem(a)},b.prototype._removeItem=function(a){return localStorage.removeItem(this.namespace+a)},b.prototype.clear=function(){return this.forcePromises?this.promisefy(this._clear,arguments):this._clear()},b.prototype._clear=function(){for(var b=Object.keys(localStorage),c=a.StorageUtils.nameSpaceKeyFilter(b,this.namespace),d=0;dwindow.innerWidth||c>window.innerHeight)&&(d=!0),d&&b===window.innerWidth&&c===window.innerHeight&&(a.focusOut instanceof Phaser.Signal&&a.focusOut.dispatch(),clearInterval(e))},50)},a.prototype.blur=function(){this.element.blur()},Object.defineProperty(a.prototype,"hasSelection",{get:function(){return this.type===b.number?!1:this.element.selectionStart!==this.element.selectionEnd},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"caretStart",{get:function(){return this.element.selectionEnd},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"caretEnd",{get:function(){return this.element.selectionStart},enumerable:!0,configurable:!0}),a.prototype.getCaretPosition=function(){return this.type===b.number?-1:this.element.selectionStart},a.prototype.setCaretPosition=function(a){this.type!==b.number&&this.element.setSelectionRange(a,a)},a}();a.InputElement=c}(PhaserInput||(PhaserInput={}));var PhaserInput;!function(a){var b;!function(a){a[a.none=0]="none",a[a.lower=1]="lower",a[a.upper=2]="upper"}(b=a.ForceCase||(a.ForceCase={}));var c=function(c){function d(d,e,f,g){void 0===g&&(g={});var h=c.call(this,d,e,f)||this;return h.focusOutOnEnter=!0,h.placeHolder=null,h.box=null,h.focus=!1,h.value="",h.windowScale=1,h.blockInput=!0,h.focusIn=new Phaser.Signal,h.focusOut=new Phaser.Signal,h.blink=!0,h.cnt=0,h.inputOptions=g,h.inputOptions.width="number"==typeof g.width?g.width:150,h.inputOptions.padding="number"==typeof g.padding?g.padding:0,h.inputOptions.textAlign=g.textAlign||"left",h.inputOptions.type=g.type||a.InputType.text,h.inputOptions.forceCase=g.forceCase?g.forceCase:b.none,h.inputOptions.borderRadius="number"==typeof g.borderRadius?g.borderRadius:0,h.inputOptions.height="number"==typeof g.height?g.height:14,h.inputOptions.fillAlpha=void 0===g.fillAlpha?1:g.fillAlpha,h.inputOptions.selectionColor=g.selectionColor||"rgba(179, 212, 253, 0.8)",h.inputOptions.zoom=d.device.desktop?!1:g.zoom||!1,h.box=new a.InputBox(h.game,g),h.setTexture(h.box.generateTexture()),h.textMask=new a.TextMask(h.game,g),h.addChild(h.textMask),h.domElement=new a.InputElement(h.game,"phaser-input-"+(1e4*Math.random()|0).toString(),h.inputOptions.type,h.value,h.focusIn,h.focusOut),h.domElement.setMax(h.inputOptions.max,h.inputOptions.min),h.selection=new a.SelectionHighlight(h.game,h.inputOptions),h.selection.mask=h.textMask,h.addChild(h.selection),g.placeHolder&&g.placeHolder.length>0&&(h.placeHolder=new Phaser.Text(d,h.inputOptions.padding,h.inputOptions.padding,g.placeHolder,{font:g.font||"14px Arial",fontWeight:g.fontWeight||"normal",fill:g.placeHolderColor||"#bfbebd"}),h.placeHolder.mask=h.textMask,h.addChild(h.placeHolder)),h.cursor=new Phaser.Text(d,h.inputOptions.padding,h.inputOptions.padding-2,"|",{font:g.font||"14px Arial",fontWeight:g.fontWeight||"normal",fill:g.cursorColor||"#000000"}),h.cursor.visible=!1,h.addChild(h.cursor),h.text=new Phaser.Text(d,h.inputOptions.padding,h.inputOptions.padding,"",{font:g.font||"14px Arial",fontWeight:g.fontWeight||"normal",fill:g.fill||"#000000"}),h.text.mask=h.textMask,h.addChild(h.text),h.offscreenText=new Phaser.Text(d,h.inputOptions.padding,h.inputOptions.padding,"",{font:g.font||"14px Arial",fontWeight:g.fontWeight||"normal",fill:g.fill||"#000000"}),h.updateTextAlignment(),h.inputEnabled=!0,h.input.useHandCursor=!0,h.game.input.onDown.add(h.checkDown,h),h.focusOut.add(function(){a.KeyboardOpen&&(h.endFocus(),h.inputOptions.zoom&&h.zoomOut())}),h}return __extends(d,c),Object.defineProperty(d.prototype,"width",{get:function(){return this.inputOptions.width},set:function(a){this.inputOptions.width=a,this.box.resize(a),this.textMask.resize(a),this.updateTextAlignment()},enumerable:!0,configurable:!0}),d.prototype.updateTextAlignment=function(){switch(this.inputOptions.textAlign){case"left":this.text.anchor.set(0,0),this.text.x=this.inputOptions.padding,null!==this.placeHolder&&this.placeHolder.anchor.set(0,0),this.cursor.x=this.inputOptions.padding+this.getCaretPosition();break;case"center":this.text.anchor.set(.5,0),this.text.x=this.inputOptions.padding+this.inputOptions.width/2,null!==this.placeHolder&&(this.placeHolder.anchor.set(.5,0),this.placeHolder.x=this.inputOptions.padding+this.inputOptions.width/2),this.cursor.x=this.inputOptions.padding+this.inputOptions.width/2-this.text.width/2+this.getCaretPosition();break;case"right":this.text.anchor.set(1,0),this.text.x=this.inputOptions.padding+this.inputOptions.width,null!==this.placeHolder&&(this.placeHolder.anchor.set(1,0),this.placeHolder.x=this.inputOptions.padding+this.inputOptions.width),this.cursor.x=this.inputOptions.padding+this.inputOptions.width}},d.prototype.checkDown=function(b){if(this.value||this.resetText(),this.input.checkPointerOver(b)){if(this.focus)return void this.setCaretOnclick(b);this.inputOptions.zoom&&!a.Zoomed&&this.zoomIn(),this.startFocus()}else this.focus===!0&&(this.endFocus(),this.inputOptions.zoom&&this.zoomOut())},d.prototype.update=function(){if(this.text.update(),this.placeHolder&&this.placeHolder.update(),this.focus){if(30!==this.cnt)return this.cnt++;this.cursor.visible=this.blink,this.blink=!this.blink,this.cnt=0}},d.prototype.endFocus=function(){var b=this;this.focus&&(this.domElement.removeEventListener(),this.blockInput===!0&&this.domElement.unblockKeyDownEvents(),this.focus=!1,0===this.value.length&&null!==this.placeHolder&&(this.placeHolder.visible=!0),this.cursor.visible=!1,this.game.device.desktop?setTimeout(function(){b.domElement.blur()},0):this.domElement.blur(),this.game.device.desktop||(a.KeyboardOpen=!1,a.onKeyboardClose.dispatch()))},d.prototype.startFocus=function(){var b=this;this.focus=!0,null!==this.placeHolder&&(this.placeHolder.visible=!1),this.game.device.desktop?setTimeout(function(){b.keyUpProcessor()},0):this.keyUpProcessor(),this.game.device.desktop||(a.KeyboardOpen=!0,a.onKeyboardOpen.dispatch())},d.prototype.keyUpProcessor=function(){this.domElement.addKeyUpListener(this.keyListener.bind(this)),this.domElement.focus(),this.blockInput===!0&&this.domElement.blockKeyDownEvents()},d.prototype.updateText=function(){var b="";if(this.inputOptions.type===a.InputType.password)for(var c=0;cparseInt(this.inputOptions.max)?this.value=this.domElement.value=this.inputOptions.max:this.value}else b=this.value;if(this.text.setText(b),this.text.width>this.inputOptions.width)this.text.anchor.x=1,this.text.x=this.inputOptions.padding+this.inputOptions.width;else switch(this.inputOptions.textAlign){case"left":this.text.anchor.set(0,0),this.text.x=this.inputOptions.padding;break;case"center":this.text.anchor.set(.5,0),this.text.x=this.inputOptions.padding+this.inputOptions.width/2;break;case"right":this.text.anchor.set(1,0),this.text.x=this.inputOptions.padding+this.inputOptions.width}},d.prototype.updateCursor=function(){if(this.text.width>this.inputOptions.width||"right"===this.inputOptions.textAlign)this.cursor.x=this.inputOptions.padding+this.inputOptions.width;else switch(this.inputOptions.textAlign){case"left":this.cursor.x=this.inputOptions.padding+this.getCaretPosition();break;case"center":this.cursor.x=this.inputOptions.padding+this.inputOptions.width/2-this.text.width/2+this.getCaretPosition()}},d.prototype.getCaretPosition=function(){var b=this.domElement.getCaretPosition();if(-1===b)return this.text.width;var c=this.value;if(this.inputOptions.type===a.InputType.password){c="";for(var d=0;d=e*c&&(e+1)*c>=b){d=e;break}b>(this.value.length-1)*c&&(d=this.value.length),this.startFocus(),this.domElement.setCaretPosition(d),this.updateCursor()},d.prototype.updateSelection=function(){if(this.domElement.hasSelection){var b=this.value;if(this.inputOptions.type===a.InputType.password){b="";for(var c=0;cwindow.innerWidth?this.windowScale=this.game.width/(1.5*b.width):this.windowScale=this.game.width/2/(1.5*b.width);var c=(this.game.width-1.5*b.width)/2/this.windowScale;this.game.world.scale.set(this.game.world.scale.x*this.windowScale,this.game.world.scale.y*this.windowScale),this.game.world.pivot.set(b.x-c,b.y-2*this.inputOptions.padding),a.Zoomed=!0}},d.prototype.zoomOut=function(){a.Zoomed&&(this.game.world.scale.set(this.game.world.scale.x/this.windowScale,this.game.world.scale.y/this.windowScale),this.game.world.pivot.set(0,0),a.Zoomed=!1)},d.prototype.keyListener=function(a){return this.value=this.getFormattedText(this.domElement.value),13===a.keyCode?void(this.focusOutOnEnter&&this.endFocus()):(this.updateText(),this.updateCursor(),this.updateSelection(),void a.preventDefault())},d.prototype.destroy=function(a){this.game.input.onDown.remove(this.checkDown,this),this.focusIn.removeAll(),this.focusOut.removeAll(),this.domElement.destroy(),c.prototype.destroy.call(this,a)},d.prototype.resetText=function(){this.setText()},d.prototype.setText=function(a){void 0===a&&(a=""),null!==this.placeHolder&&(a.length>0?this.placeHolder.visible=!1:this.placeHolder.visible=!0),this.value=this.getFormattedText(a),this.domElement.value=this.value,this.updateText(),this.updateCursor(),this.endFocus()},d.prototype.getFormattedText=function(a){switch(this.inputOptions.forceCase){default:case b.none:return a;case b.lower:return a.toLowerCase();case b.upper:return a.toUpperCase()}},d}(Phaser.Sprite);a.InputField=c}(PhaserInput||(PhaserInput={}));var PhaserInput;!function(a){var b=function(a){function b(b,c){var d=a.call(this,b,0,0)||this;d.bgColor=c.backgroundColor?parseInt(c.backgroundColor.slice(1),16):16777215,d.borderRadius=c.borderRadius="number"==typeof c.borderRadius?c.borderRadius:0,d.borderWidth=c.borderWidth="number"==typeof c.borderWidth?c.borderWidth:1,d.borderColor=c.borderColor?parseInt(c.borderColor.slice(1),16):9803157,d.boxAlpha=c.fillAlpha,d.padding=c.padding;var e,e=c.height,f=c.width;c.font&&(e=Math.max(parseInt(c.font.substr(0,c.font.indexOf("px")),10),e)),d.boxHeight=2*d.padding+e;var f=c.width;return d.boxWidth=2*d.padding+f,d.drawBox(),d}return __extends(b,a),b.prototype.resize=function(a){this.boxWidth=2*this.padding+a,this.drawBox()},b.prototype.drawBox=function(){this.clear().beginFill(this.bgColor,this.boxAlpha).lineStyle(this.borderWidth,this.borderColor,this.boxAlpha),this.borderRadius>0?this.drawRoundedRect(0,0,this.boxWidth,this.boxHeight,this.borderRadius):this.drawRect(0,0,this.boxWidth,this.boxHeight)},b}(Phaser.Graphics);a.InputBox=b}(PhaserInput||(PhaserInput={}));var PhaserInput;!function(a){var b=function(a){function b(b,c){var d=a.call(this,b,c.padding,c.padding)||this;return d.inputOptions=c,d}return __extends(b,a),b.prototype.updateSelection=function(a){var c=Phaser.Color.webToColor(this.inputOptions.selectionColor);this.clear(),this.beginFill(b.rgb2hex(c),c.a),this.drawRect(a.x,a.y,a.width,a.height-this.inputOptions.padding)},b.rgb2hex=function(a){return parseInt(("0"+a.r.toString(16)).slice(-2)+("0"+a.g.toString(16)).slice(-2)+("0"+a.b.toString(16)).slice(-2),16)},b}(Phaser.Graphics);a.SelectionHighlight=b}(PhaserInput||(PhaserInput={}));var PhaserInput;!function(a){var b=function(a){function b(b,c){var d=a.call(this,b,c.padding,c.padding)||this,e=c.height;return c.font&&(e=Math.max(parseInt(c.font.substr(0,c.font.indexOf("px")),10),e)),d.maskWidth=c.width,d.maskHeight=1.3*e,d.drawMask(),d}return __extends(b,a),b.prototype.resize=function(a){this.maskWidth=a,this.drawMask()},b.prototype.drawMask=function(){this.clear().beginFill(0).drawRect(0,0,this.maskWidth,this.maskHeight).endFill()},b}(Phaser.Graphics);a.TextMask=b}(PhaserInput||(PhaserInput={}));var PhaserInput;!function(a){a.Zoomed=!1,a.KeyboardOpen=!1,a.onKeyboardOpen=new Phaser.Signal,a.onKeyboardClose=new Phaser.Signal;var b=function(b){function c(a,c){var d=b.call(this,a,c)||this;return d.addInputFieldFactory(),d}return __extends(c,b),c.prototype.addInputFieldFactory=function(){Phaser.GameObjectFactory.prototype.inputField=function(b,c,d,e){void 0===e&&(e=this.world);var f=new a.InputField(this.game,b,c,d);return e.add(f)},Phaser.GameObjectCreator.prototype.inputField=function(b,c,d){return new a.InputField(this.game,b,c,d)}},c}(Phaser.Plugin);b.Zoomed=!1,b.KeyboardOpen=!1,b.onKeyboardOpen=new Phaser.Signal,b.onKeyboardClose=new Phaser.Signal,a.Plugin=b}(PhaserInput||(PhaserInput={})); \ No newline at end of file diff --git a/vex8/patch/cdn/phaser/2.0/phaser-nineslice.min.js b/vex8/patch/cdn/phaser/2.0/phaser-nineslice.min.js new file mode 100644 index 000000000..79e858a72 --- /dev/null +++ b/vex8/patch/cdn/phaser/2.0/phaser-nineslice.min.js @@ -0,0 +1,10 @@ +/*! + * phaser-nineslice - version 2.0.1 + * NineSlice plugin for Phaser.io! + * + * Azerion + * Build at 15-03-2019 + * Released under MIT License + */ + +var __extends=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return function(b,c){function d(){this.constructor=b}a(b,c),b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),PhaserNineSlice;!function(a){var b=function(a){function b(b,c,d,e,f,g,h,i){var j=a.call(this,b,c,d,e,f)||this;return j.baseTexture=j.texture.baseTexture,j.baseFrame=j.texture.frame,null===f||i?i||(i=b.cache.getNineSlice(e)):i=b.cache.getNineSlice(f),void 0===i?j:(j.topSize=i.top,i.left?j.leftSize=i.left:j.leftSize=j.topSize,i.right?j.rightSize=i.right:j.rightSize=j.leftSize,i.bottom?j.bottomSize=i.bottom:j.bottomSize=j.topSize,j.loadTexture(new Phaser.RenderTexture(j.game,j.localWidth,j.localHeight)),j.resize(g,h),j)}return __extends(b,a),b.prototype.renderTexture=function(){this.texture.resize(this.localWidth,this.localHeight,!0);var a=[0,this.leftSize,this.baseFrame.width-this.rightSize,this.baseFrame.width],b=[0,this.topSize,this.baseFrame.height-this.bottomSize,this.baseFrame.height],c=[0,this.leftSize,this.localWidth-this.rightSize,this.localWidth],d=[0,this.topSize,this.localHeight-this.bottomSize,this.localHeight];this.texture.clear();for(var e=0;e<3;e++)for(var f=0;f<3;f++){var g=this.createTexturePart(a[f],b[e],a[f+1]-a[f],b[e+1]-b[e]);g.width=c[f+1]-c[f],g.height=d[e+1]-d[e],this.texture.renderXY(g,c[f],d[e])}},b.prototype.resize=function(a,b){this.localWidth=a,this.localHeight=b,this.renderTexture()},b.prototype.destroy=function(){for(var b=[],c=0;c0&&(b+="&");var d=Array.isArray(a[c])?a[c].join(","):a[c];b+=c+"="+d}return"&cust_params="+encodeURIComponent(b)}return""},b.prototype.areAdsEnabled=function(){var a=this,b=document.createElement("div");b.innerHTML=" ",b.className="adsbox",b.style.position="absolute",b.style.fontSize="10px",document.body.appendChild(b);var c=function(){var a=!0;return 0===b.offsetHeight&&(a=!1),b.parentNode.removeChild(b),a};window.setTimeout(function(){a.adsEnabled=c()},100)},b}();b.Ima3=c}(b=a.AdProvider||(a.AdProvider={}))}(PhaserAds||(PhaserAds={})); +//# sourceMappingURL=/sm/2aba612a177eb2e9b076afc8939fdf3db69b1762b279c64708090f70c31d17da.map \ No newline at end of file diff --git a/vex8/patch/cdn/phaser/3.0/phaser-spine.min.js b/vex8/patch/cdn/phaser/3.0/phaser-spine.min.js new file mode 100644 index 000000000..a2033c15b --- /dev/null +++ b/vex8/patch/cdn/phaser/3.0/phaser-spine.min.js @@ -0,0 +1,19 @@ +/** + * Combined by jsDelivr. + * Original files: + * - /npm/@orange-games/phaser-spine@3.0.9/build/phaser-spine.min.js + * + * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files + */ +/*! + * phaser-spine - version 3.0.9 + * Spine plugin for Phaser.io! + * + * OrangeGames + * Build at 10-07-2017 + * Released under MIT License + */ + +var spine={radDeg:180/Math.PI,degRad:Math.PI/180,Float32Array:"undefined"==typeof Float32Array?Array:Float32Array,Uint32Array:"undefined"==typeof Uint32Array?Array:Uint32Array,Uint16Array:"undefined"==typeof Uint16Array?Array:Uint16Array};spine.temp=new spine.Float32Array(2),spine.BoneData=function(a,b){this.name=a,this.parent=b},spine.BoneData.prototype={length:0,x:0,y:0,rotation:0,scaleX:1,scaleY:1,inheritScale:!0,inheritRotation:!0},spine.BlendMode={normal:0,additive:1,multiply:2,screen:3},spine.SlotData=function(a,b){this.name=a,this.boneData=b},spine.SlotData.prototype={r:1,g:1,b:1,a:1,attachmentName:null,blendMode:spine.BlendMode.normal},spine.IkConstraintData=function(a){this.name=a,this.bones=[]},spine.IkConstraintData.prototype={target:null,bendDirection:1,mix:1},spine.TransformConstraintData=function(a){this.name=a},spine.TransformConstraintData.prototype={bone:null,target:null,translateMix:1,x:0,y:0},spine.Bone=function(a,b,c){this.data=a,this.skeleton=b,this.parent=c,this.setToSetupPose()},spine.Bone.yDown=!1,spine.Bone.prototype={x:0,y:0,rotation:0,scaleX:1,scaleY:1,a:0,b:0,worldX:0,c:0,d:0,worldY:0,worldSignX:1,worldSignY:1,update:function(){this.updateWorldTransform(this.x,this.y,this.rotation,this.scaleX,this.scaleY)},updateWorldTransformWith:function(){this.updateWorldTransform(this.x,this.y,this.rotation,this.scaleX,this.scaleY)},updateWorldTransform:function(a,b,c,d,e){this.appliedRotation=c,this.appliedScaleX=d,this.appliedScaleY=e,c*=spine.degRad;var f=Math.cos(c),g=Math.sin(c),h=f*d,i=-g*e,j=g*d,k=f*e,l=this.parent;if(!l){var m=this.skeleton;return m.flipX&&(a=-a,h=-h,i=-i),m.flipY!=spine.Bone.yDown&&(b=-b,j=-j,k=-k),this.a=h,this.b=i,this.c=j,this.d=k,this.worldX=a,this.worldY=b,this.worldSignX=d<0?-1:1,void(this.worldSignY=e<0?-1:1)}var n=l.a,o=l.b,p=l.c,q=l.d;if(this.worldX=n*a+o*b+l.worldX,this.worldY=p*a+q*b+l.worldY,this.worldSignX=l.worldSignX*(d<0?-1:1),this.worldSignY=l.worldSignY*(e<0?-1:1),this.data.inheritRotation&&this.data.inheritScale)this.a=n*h+o*j,this.b=n*i+o*k,this.c=p*h+q*j,this.d=p*i+q*k;else{if(this.data.inheritRotation){n=1,o=0,p=0,q=1;do{c=l.appliedRotation*spine.degRad,f=Math.cos(c),g=Math.sin(c);var r=n*f+o*g;if(o=n*-g+o*f,n=r,r=p*f+q*g,q=p*-g+q*f,p=r,!l.data.inheritRotation)break;l=l.parent}while(l);this.a=n*h+o*j,this.b=n*i+o*k,this.c=p*h+q*j,this.d=p*i+q*k}else if(this.data.inheritScale){n=1,o=0,p=0,q=1;do{c=l.appliedRotation*spine.degRad,f=Math.cos(c),g=Math.sin(c);var s=l.appliedScaleX,t=l.appliedScaleY,u=f*s,v=-g*t,w=g*s,x=f*t,r=n*u+o*w;if(o=n*v+o*x,n=r,r=p*u+q*w,q=p*v+q*x,p=r,s<0&&(c=-c),f=Math.cos(-c),g=Math.sin(-c),r=n*f+o*g,o=n*-g+o*f,n=r,r=p*f+q*g,q=p*-g+q*f,p=r,!l.data.inheritScale)break;l=l.parent}while(l);this.a=n*h+o*j,this.b=n*i+o*k,this.c=p*h+q*j,this.d=p*i+q*k}else this.a=h,this.b=i,this.c=j,this.d=k;this.skeleton.flipX&&(this.a=-this.a,this.b=-this.b),this.skeleton.flipY!=spine.Bone.yDown&&(this.c=-this.c,this.d=-this.d)}},setToSetupPose:function(){var a=this.data;this.x=a.x,this.y=a.y,this.rotation=a.rotation,this.scaleX=a.scaleX,this.scaleY=a.scaleY},getWorldRotationX:function(){return Math.atan2(this.c,this.a)*spine.radDeg},getWorldRotationY:function(){return Math.atan2(this.d,this.b)*spine.radDeg},getWorldScaleX:function(){return Math.sqrt(this.a*this.a+this.b*this.b)*this.worldSignX},getWorldScaleY:function(){return Math.sqrt(this.c*this.c+this.d*this.d)*this.worldSignY},worldToLocal:function(a){var b=a[0]-this.worldX,c=a[1]-this.worldY,d=this.a,e=this.b,f=this.c,g=this.d,h=1/(d*g-e*f);return a[0]=b*g*h-c*e*h,a[1]=c*d*h-b*f*h,a},localToWorld:function(a){var b=a[0],c=a[1];return a[0]=b*this.a+c*this.b+this.worldX,a[1]=b*this.c+c*this.d+this.worldY,a}},spine.Slot=function(a,b){this.data=a,this.bone=b,this.attachmentVertices=new spine.Float32Array,this.setToSetupPose()},spine.Slot.prototype={r:1,g:1,b:1,a:1,_attachmentTime:0,attachment:null,setAttachment:function(a){this.attachment!=a&&(this.attachment=a,this._attachmentTime=this.bone.skeleton.time,this.attachmentVertices.length=0)},setAttachmentTime:function(a){this._attachmentTime=this.bone.skeleton.time-a},getAttachmentTime:function(){return this.bone.skeleton.time-this._attachmentTime},setToSetupPose:function(){var a=this.data;if(this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,a.attachmentName){for(var b=this.bone.skeleton.data.slots,c=0,d=b.length;c180?g-=360:g<-180&&(g+=360),a.updateWorldTransform(a.x,a.y,f+(g-f)*d,a.appliedScaleX,a.appliedScaleY)},spine.IkConstraint.apply2=function(a,b,c,d,e,f){if(0!=f){var g,h,i,j=a.x,k=a.y,l=a.appliedScaleX,m=a.appliedScaleY;l<0?(l=-l,g=180,i=-1):(g=0,i=1),m<0&&(m=-m,i=-i);var n=b.x,o=b.y,p=b.appliedScaleX,q=Math.abs(l-m)<=1e-4;q||0==o||(b.worldX=a.a*n+a.worldX,b.worldY=a.c*n+a.worldY,o=0),p<0?(p=-p,h=180):h=0;var r,s,t,u,v=a.parent;if(v){var w=v.a,x=v.b,y=v.c,z=v.d,A=1/(w*z-x*y),B=v.worldX,C=v.worldY,D=c-B,E=d-C;r=(D*z-E*x)*A-j,s=(E*w-D*y)*A-k,D=b.worldX-B,E=b.worldY-C,t=(D*z-E*x)*A-j,u=(E*w-D*y)*A-k}else r=c-j,s=d-k,t=b.worldX-j,u=b.worldY-k;var F,G,H=Math.sqrt(t*t+u*u),I=b.data.length*p;a:if(q){I*=l;var J=(r*r+s*s-H*H-I*I)/(2*H*I);J<-1?J=-1:J>1&&(J=1),G=Math.acos(J)*e;var w=H+I*J,K=I*Math.sin(G);F=Math.atan2(s*w-r*K,r*w+s*K)}else{var w=l*I,x=m*I,L=Math.atan2(s,r),M=w*w,N=x*x,O=H*H,P=r*r+s*s,Q=N*O+M*P-M*N,R=-2*N*H,S=N-M,z=R*R-4*S*Q;if(z>=0){var T=Math.sqrt(z);R<0&&(T=-T),T=-(R+T)/2;var U=T/S,V=Q/T,W=Math.abs(U)aa&&(_=0,aa=da,ba=D),D=H-w,da=D*D,daaa&&(_=ea,aa=da,ba=D,ca=E),P<=(Y+aa)/2?(F=L-Math.atan2($*e,Z),G=X*e):(F=L-Math.atan2(ca*e,ba),G=_*e)}var fa=Math.atan2(o,n)*i;F=(F-fa)*spine.radDeg+g,G=(G+fa)*spine.radDeg*i+h,F>180?F-=360:F<-180&&(F+=360),G>180?G-=360:G<-180&&(G+=360);var ga=a.rotation;a.updateWorldTransform(j,k,ga+(F-ga)*f,a.appliedScaleX,a.appliedScaleY),ga=b.rotation,b.updateWorldTransform(n,o,ga+(G-ga)*f,b.appliedScaleX,b.appliedScaleY)}},spine.TransformConstraint=function(a,b){this.data=a,this.translateMix=a.translateMix,this.x=a.x,this.y=a.y,this.bone=b.findBone(a.bone.name),this.target=b.findBone(a.target.name)},spine.TransformConstraint.prototype={apply:function(){this.update()},update:function(){var a=this.translateMix;if(a>0){var b=spine.temp;b[0]=x,b[1]=y,this.target.localToWorld(b);var c=this.bone;c.worldX+=(b[0]-c.worldX)*a,c.worldY+=(b[1]-c.worldY)*a}}},spine.Skin=function(a){this.name=a,this.attachments={}},spine.Skin.prototype={addAttachment:function(a,b,c){this.attachments[a+":"+b]=c},getAttachment:function(a,b){return this.attachments[a+":"+b]},_attachAll:function(a,b){for(var c in b.attachments){var d=c.indexOf(":"),e=parseInt(c.substring(0,d)),f=c.substring(d+1),g=a.slots[e];if(g.attachment&&g.attachment.name==f){var h=this.getAttachment(e,f);h&&g.setAttachment(h)}}}},spine.Animation=function(a,b,c){this.name=a,this.timelines=b,this.duration=c},spine.Animation.prototype={apply:function(a,b,c,d,e){d&&0!=this.duration&&(c%=this.duration,b>0&&(b%=this.duration));for(var f=this.timelines,g=0,h=f.length;g0&&(b%=this.duration));for(var g=this.timelines,h=0,i=g.length;h>>1;;){if(a[(f+1)*c]<=b?d=f+1:e=f,d==e)return(d+1)*c;f=d+e>>>1}},spine.Animation.binarySearch1=function(a,b){var c=0,d=a.length-2;if(!d)return 1;for(var e=d>>>1;;){if(a[e+1]<=b?c=e+1:d=e,c==d)return c+1;e=c+d>>>1}},spine.Animation.linearSearch=function(a,b,c){for(var d=0,e=a.length-c;d<=e;d+=c)if(a[d]>b)return d;return-1},spine.Curves=function(a){var b=19*(a-1);this.curves=new spine.Float32Array(b),this.curves.length=b},spine.Curves.prototype={setLinear:function(a){this.curves[19*a]=0},setStepped:function(a){this.curves[19*a]=1},setCurve:function(a,b,c,d,e){var f=.1,g=f*f,h=g*f,i=3*f,j=3*g,k=6*g,l=6*h,m=2*-b+d,n=2*-c+e,o=3*(b-d)+1,p=3*(c-e)+1,q=b*i+m*j+o*h,r=c*i+n*j+p*h,s=m*k+o*l,t=n*k+p*l,u=o*l,v=p*l,w=19*a,x=this.curves;x[w++]=2;for(var y=q,z=r,A=w+19-1;w1?1:b;var c=this.curves,d=19*a,e=c[d];if(0===e)return b;if(1==e)return 0;d++;for(var f=0,g=d,h=d+19-1;d=b){var i,j;return d==g?(i=0,j=0):(i=c[d-2],j=c[d-1]),j+(c[d+1]-j)*(b-i)/(f-i)}var k=c[d-1];return k+(1-k)*(b-f)/(1-f)}},spine.RotateTimeline=function(a){this.curves=new spine.Curves(a),this.frames=new spine.Float32Array(2*a),this.frames.length=2*a},spine.RotateTimeline.prototype={boneIndex:0,getFrameCount:function(){return this.frames.length/2},setFrame:function(a,b,c){a*=2,this.frames[a]=b,this.frames[a+1]=c},apply:function(a,b,c,d,e){var f=this.frames;if(!(c=f[f.length-2]){for(var h=g.data.rotation+f[f.length-1]-g.rotation;h>180;)h-=360;for(;h<-180;)h+=360;return void(g.rotation+=h*e)}var i=spine.Animation.binarySearch(f,c,2),j=f[i-1],k=f[i],l=1-(c-k)/(f[i-2]-k);l=this.curves.getCurvePercent(i/2-1,l);for(var h=f[i+1]-j;h>180;)h-=360;for(;h<-180;)h+=360;for(h=g.data.rotation+(j+h*l)-g.rotation;h>180;)h-=360;for(;h<-180;)h+=360;g.rotation+=h*e}}},spine.TranslateTimeline=function(a){this.curves=new spine.Curves(a),this.frames=new spine.Float32Array(3*a),this.frames.length=3*a},spine.TranslateTimeline.prototype={boneIndex:0,getFrameCount:function(){return this.frames.length/3},setFrame:function(a,b,c,d){a*=3,this.frames[a]=b,this.frames[a+1]=c,this.frames[a+2]=d},apply:function(a,b,c,d,e){var f=this.frames;if(!(c=f[f.length-3])return g.x+=(g.data.x+f[f.length-2]-g.x)*e,void(g.y+=(g.data.y+f[f.length-1]-g.y)*e);var h=spine.Animation.binarySearch(f,c,3),i=f[h-2],j=f[h-1],k=f[h],l=1-(c-k)/(f[h+-3]-k);l=this.curves.getCurvePercent(h/3-1,l),g.x+=(g.data.x+i+(f[h+1]-i)*l-g.x)*e,g.y+=(g.data.y+j+(f[h+2]-j)*l-g.y)*e}}},spine.ScaleTimeline=function(a){this.curves=new spine.Curves(a),this.frames=new spine.Float32Array(3*a),this.frames.length=3*a},spine.ScaleTimeline.prototype={boneIndex:0,getFrameCount:function(){return this.frames.length/3},setFrame:function(a,b,c,d){a*=3,this.frames[a]=b,this.frames[a+1]=c,this.frames[a+2]=d},apply:function(a,b,c,d,e){var f=this.frames;if(!(c=f[f.length-3])return g.scaleX+=(g.data.scaleX*f[f.length-2]-g.scaleX)*e,void(g.scaleY+=(g.data.scaleY*f[f.length-1]-g.scaleY)*e);var h=spine.Animation.binarySearch(f,c,3),i=f[h-2],j=f[h-1],k=f[h],l=1-(c-k)/(f[h+-3]-k);l=this.curves.getCurvePercent(h/3-1,l),g.scaleX+=(g.data.scaleX*(i+(f[h+1]-i)*l)-g.scaleX)*e,g.scaleY+=(g.data.scaleY*(j+(f[h+2]-j)*l)-g.scaleY)*e}}},spine.ColorTimeline=function(a){this.curves=new spine.Curves(a),this.frames=new spine.Float32Array(5*a),this.frames.length=5*a},spine.ColorTimeline.prototype={slotIndex:0,getFrameCount:function(){return this.frames.length/5},setFrame:function(a,b,c,d,e,f){a*=5,this.frames[a]=b,this.frames[a+1]=c,this.frames[a+2]=d,this.frames[a+3]=e,this.frames[a+4]=f},apply:function(a,b,c,d,e){var f=this.frames;if(!(c=f[f.length-5]){var k=f.length-1;g=f[k-3],h=f[k-2],i=f[k-1],j=f[k]}else{var l=spine.Animation.binarySearch(f,c,5),m=f[l-4],n=f[l-3],o=f[l-2],p=f[l-1],q=f[l],r=1-(c-q)/(f[l-5]-q);r=this.curves.getCurvePercent(l/5-1,r),g=m+(f[l+1]-m)*r,h=n+(f[l+2]-n)*r,i=o+(f[l+3]-o)*r,j=p+(f[l+4]-p)*r}var s=a.slots[this.slotIndex];e<1?(s.r+=(g-s.r)*e,s.g+=(h-s.g)*e,s.b+=(i-s.b)*e,s.a+=(j-s.a)*e):(s.r=g,s.g=h,s.b=i,s.a=j)}}},spine.AttachmentTimeline=function(a){this.curves=new spine.Curves(a),this.frames=new spine.Float32Array(a),this.frames.length=a,this.attachmentNames=[],this.attachmentNames.length=a},spine.AttachmentTimeline.prototype={slotIndex:0,getFrameCount:function(){return this.frames.length},setFrame:function(a,b,c){this.frames[a]=b,this.attachmentNames[a]=c},apply:function(a,b,c,d,e){var f=this.frames;if(cc&&this.apply(a,b,Number.MAX_VALUE,null,0));b>c&&(b=-1);var g=c>=f[f.length-1]?f.length-1:spine.Animation.binarySearch1(f,c)-1;if(!(f[g]c)this.apply(a,b,Number.MAX_VALUE,d,e),b=-1;else if(b>=f[g-1])return;if(!(c0&&f[h-1]==i;)h--}for(var j=this.events;h=f[h];h++)d[d.length]=j[h]}}}},spine.DrawOrderTimeline=function(a){this.frames=new spine.Float32Array(a),this.frames.length=a,this.drawOrders=[],this.drawOrders.length=a},spine.DrawOrderTimeline.prototype={getFrameCount:function(){return this.frames.length},setFrame:function(a,b,c){this.frames[a]=b,this.drawOrders[a]=c},apply:function(a,b,c,d,e){var f=this.frames;if(!(c=f[f.length-1]?f.length-1:spine.Animation.binarySearch1(f,c)-1;var h=a.drawOrder,i=a.slots,j=this.drawOrders[g];if(j)for(var k=0,l=j.length;k=h[h.length-1]){var l=i[h.length-1];if(e<1)for(var m=0;m1?1:p);var q=i[n-1],r=i[n];if(e<1)for(var m=0;m=f[f.length-3])return g.mix+=(f[f.length-2]-g.mix)*e,void(g.bendDirection=f[f.length-1]);var h=spine.Animation.binarySearch(f,c,3),i=f[h+-2],j=f[h],k=1-(c-j)/(f[h+-3]-j);k=this.curves.getCurvePercent(h/3-1,k);var l=i+(f[h+1]-i)*k;g.mix+=(l-g.mix)*e,g.bendDirection=f[h+-1]}}},spine.SkeletonData=function(){this.bones=[],this.slots=[],this.skins=[],this.events=[],this.animations=[],this.ikConstraints=[],this.transformConstraints=[]},spine.SkeletonData.prototype={name:null,defaultSkin:null,width:0,height:0,version:null,hash:null,findBone:function(a){for(var b=this.bones,c=0,d=b.length;c=0;j--){var m=b[j];if(m==l.bone||m==l.target){b.splice(j+1,0,l);break}}},updateWorldTransform:function(){for(var a=this.cache,b=0,c=a.length;b=0&&this.setCurrent(b,e)):!c.loop&&c.lastTime>=c.endTime&&this.clearTrack(b)}}},apply:function(a){for(var b=0;bf&&(d=f);var h=c.previous;if(h){var i=h.time;!h.loop&&i>h.endTime&&(i=h.endTime),h.animation.apply(a,i,i,h.loop,null);var j=c.mixTime/c.mixDuration*c.mix;j>=1&&(j=1,c.previous=null),c.animation.mix(a,c.lastTime,d,g,this.events,j)}else 1==c.mix?c.animation.apply(a,c.lastTime,d,g,this.events):c.animation.mix(a,c.lastTime,d,g,this.events,c.mix);for(var k=0,l=this.events.length;kd%f:e=f){var n=Math.floor(d/f);c.onComplete&&c.onComplete(b,n),this.onComplete&&this.onComplete(b,n)}c.lastTime=c.time}}},clearTracks:function(){for(var a=0,b=this.tracks.length;a=this.tracks.length)){var b=this.tracks[a];b&&(b.onEnd&&b.onEnd(a),this.onEnd&&this.onEnd(a),this.tracks[a]=null)}},_expandToIndex:function(a){if(a=this.tracks.length;)this.tracks[this.tracks.length]=null;return null},setCurrent:function(a,b){var c=this._expandToIndex(a);if(c){var d=c.previous;c.previous=null,c.onEnd&&c.onEnd(a),this.onEnd&&this.onEnd(a),b.mixDuration=this.data.getMix(c.animation,b.animation),b.mixDuration>0&&(b.mixTime=0,d&&c.mixTime/c.mixDuration<.5?b.previous=d:b.previous=c)}this.tracks[a]=b,b.onStart&&b.onStart(a),this.onStart&&this.onStart(a)},setAnimationByName:function(a,b,c){var d=this.data.skeletonData.findAnimation(b);if(!d)throw"Animation not found: "+b;return this.setAnimation(a,d,c)},setAnimation:function(a,b,c){var d=new spine.TrackEntry;return d.animation=b,d.loop=c,d.endTime=b.duration,this.setCurrent(a,d),d},addAnimationByName:function(a,b,c,d){var e=this.data.skeletonData.findAnimation(b);if(!e)throw"Animation not found: "+b;return this.addAnimation(a,e,c,d)},addAnimation:function(a,b,c,d){var e=new spine.TrackEntry;e.animation=b,e.loop=c,e.endTime=b.duration;var f=this._expandToIndex(a);if(f){for(;f.next;)f=f.next;f.next=e}else this.tracks[a]=e;return d<=0&&(f?d+=f.endTime-this.data.getMix(f.animation,b):d=0),e.delay=d,e},getCurrent:function(a){return a>=this.tracks.length?null:this.tracks[a]}},spine.SkeletonJson=function(a){this.attachmentLoader=a,this.linkedMeshes=[]},spine.SkeletonJson.prototype={scale:1,readSkeletonData:function(a,b){var c=new spine.SkeletonData;c.name=b;var d=a.skeleton;d&&(c.hash=d.hash,c.version=d.spine,c.width=d.width||0,c.height=d.height||0);for(var e=a.bones,f=0,g=e.length;f=0;T--)Y[T]=4294967295;var Z=X.offsets,$=new spine.Uint32Array(W-Z.length);$.length=W-Z.length;for(var _=0,aa=0,T=0,S=Z.length;T=0;T--)4294967295==Y[T]&&(Y[T]=$[--aa])}l.setFrame(m++,X.time,Y)}d[d.length]=l,e=Math.max(e,l.frames[l.getFrameCount()-1])}var ca=b.events;if(ca){for(var l=new spine.EventTimeline(ca.length),m=0,n=0,o=ca.length;n=this.lines.length?null:this.lines[this.index++]},readValue:function(){var a=this.readLine(),b=a.indexOf(":");if(b==-1)throw"Invalid line: "+a;return this.trim(a.substring(b+1))},readTuple:function(a){var b=this.readLine(),c=b.indexOf(":");if(c==-1)throw"Invalid line: "+b;for(var d=0,e=c+1;d<3;d++){var f=b.indexOf(",",e);if(f==-1)break;a[d]=this.trim(b.substr(e,f-e)),e=f+1}return a[d]=this.trim(b.substring(e)),d+1}},spine.AtlasAttachmentLoader=function(a){this.atlas=a},spine.AtlasAttachmentLoader.prototype={newRegionAttachment:function(a,b,c){var d=this.atlas.findRegion(c);if(!d)throw"Region not found in atlas: "+c+" (region attachment: "+b+")";var e=new spine.RegionAttachment(b);return e.rendererObject=d,e.setUVs(d.u,d.v,d.u2,d.v2,d.rotate),e.regionOffsetX=d.offsetX,e.regionOffsetY=d.offsetY,e.regionWidth=d.width,e.regionHeight=d.height,e.regionOriginalWidth=d.originalWidth,e.regionOriginalHeight=d.originalHeight,e},newMeshAttachment:function(a,b,c){var d=this.atlas.findRegion(c);if(!d)throw"Region not found in atlas: "+c+" (mesh attachment: "+b+")";var e=new spine.MeshAttachment(b);return e.rendererObject=d,e.regionU=d.u,e.regionV=d.v,e.regionU2=d.u2,e.regionV2=d.v2,e.regionRotate=d.rotate,e.regionOffsetX=d.offsetX,e.regionOffsetY=d.offsetY,e.regionWidth=d.width,e.regionHeight=d.height,e.regionOriginalWidth=d.originalWidth,e.regionOriginalHeight=d.originalHeight,e},newWeightedMeshAttachment:function(a,b,c){var d=this.atlas.findRegion(c);if(!d)throw"Region not found in atlas: "+c+" (weighted mesh attachment: "+b+")";var e=new spine.WeightedMeshAttachment(b);return e.rendererObject=d,e.regionU=d.u,e.regionV=d.v,e.regionU2=d.u2,e.regionV2=d.v2,e.regionRotate=d.rotate,e.regionOffsetX=d.offsetX,e.regionOffsetY=d.offsetY,e.regionWidth=d.width,e.regionHeight=d.height,e.regionOriginalWidth=d.originalWidth,e.regionOriginalHeight=d.originalHeight,e},newBoundingBoxAttachment:function(a,b){return new spine.BoundingBoxAttachment(b)}},spine.SkeletonBounds=function(){this.polygonPool=[],this.polygons=[],this.boundingBoxes=[]},spine.SkeletonBounds.prototype={minX:0,minY:0,maxX:0,maxY:0,update:function(a,b){var c=a.slots,d=c.length,e=a.x,f=a.y,g=this.boundingBoxes,h=this.polygonPool,i=this.polygons;g.length=0;for(var j=0,k=i.length;j0?(n=h[o-1],h.splice(o-1,1)):n=new spine.Float32Array,i[i.length]=n,n.length=m.vertices.length,m.computeWorldVertices(e,f,l.bone,n)}}b&&this.aabbCompute()},aabbCompute:function(){for(var a=this.polygons,b=Number.MAX_VALUE,c=Number.MAX_VALUE,d=-Number.MAX_VALUE,e=-Number.MAX_VALUE,f=0,g=a.length;f=this.minX&&a<=this.maxX&&b>=this.minY&&b<=this.maxY},aabbIntersectsSegment:function(a,b,c,d){var e=this.minX,f=this.minY,g=this.maxX,h=this.maxY;if(a<=e&&c<=e||b<=f&&d<=f||a>=g&&c>=g||b>=h&&d>=h)return!1;var i=(d-b)/(c-a),j=i*(e-a)+b;if(j>f&&jf&&je&&ke&&ka.minX&&this.minYa.minY},containsPoint:function(a,b){for(var c=this.polygons,d=0,e=c.length;d=c||i=c){var j=a[g];j+(c-h)/(i-h)*(a[e]-j)=j&&s<=m||s>=m&&s<=j)&&(s>=b&&s<=d||s>=d&&s<=b)){var t=(i*q-h*o)/r;if((t>=k&&t<=n||t>=n&&t<=k)&&(t>=c&&t<=e||t>=e&&t<=c))return!0}j=m,k=n}return!1},getPolygon:function(a){var b=this.boundingBoxes.indexOf(a);return b==-1?null:this.polygons[b]},getWidth:function(){return this.maxX-this.minX},getHeight:function(){return this.maxY-this.minY}};var __extends=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},PhaserSpine;!function(a){var b=function(b){function c(a,c){var d=b.call(this,a,c)||this;return d.addSpineCache(),d.addSpineFactory(),d.addSpineLoader(),d}return __extends(c,b),c.prototype.addSpineLoader=function(){Phaser.Loader.prototype.spine=function(a,b,c){var d=this,e=a+"Atlas",f={atlas:e,basePath:""===b.substring(0,b.lastIndexOf("/"))?".":b.substring(0,b.lastIndexOf("/")),variants:void 0};void 0===c?c=[""]:f.variants=c,c.forEach(function(a){d.onFileComplete.add(function(b,c){if(c===e){new spine.Atlas(d.game.cache.getText(c),{load:function(b,c,e){d.image(c,f.basePath+"/"+c.substr(0,c.lastIndexOf("."))+a+".png")}})}}),d.text(e,b.substr(0,b.lastIndexOf("."))+a+".atlas")}),this.json(a,b),this.game.cache.addSpine(a,f)}},c.prototype.addSpineFactory=function(){Phaser.GameObjectFactory.prototype.spine=function(b,c,d,e,f){void 0===f&&(f=this.world);var g=new a.Spine(this.game,d,e);return g.setToSetupPose(),g.position.x=b,g.position.y=c,f.add(g)},Phaser.GameObjectCreator.prototype.spine=function(b,c,d,e,f){return new a.Spine(this.game,d,e)}},c.prototype.addSpineCache=function(){Phaser.Cache.prototype.spine={},Phaser.Cache.prototype.addSpine=function(a,b){this.spine[a]=b},Phaser.Cache.prototype.getSpine=function(a){return!this.spine.hasOwnProperty(a),this.spine[a]}},c}(Phaser.Plugin);b.RESOLUTION_REGEXP=/@(.+)x/,a.SpinePlugin=b}(PhaserSpine||(PhaserSpine={})),Phaser.Rope.prototype.postUpdate=function(){},spine.Bone.yDown=!0;var PhaserSpine;!function(a){var b=function(b){function c(c,d,e){var f=b.call(this,c)||this;f.imageScale=1;var g=f.game.cache.getSpine(d);void 0!==e&&g.variants.indexOf(e)!==-1?f.imageScale=f.getScaleFromVariant(e):g.variants&&g.variants.length>=1&&(f.imageScale=f.getScaleFromVariant(g.variants[0]));var h=new a.SpineTextureLoader(c),i=new spine.Atlas(c.cache.getText(g.atlas),h),j=new spine.AtlasAttachmentLoader(i),k=new spine.SkeletonJson(j);if(f.skeletonData=k.readSkeletonData(c.cache.getJSON(d)),!f.skeletonData)throw new Error("Spine data must be preloaded using Loader.spine");f.onEvent=new Phaser.Signal,f.onComplete=new Phaser.Signal,f.onEnd=new Phaser.Signal,f.skeleton=new spine.Skeleton(f.skeletonData),f.skeleton.updateWorldTransform(),f.stateData=new spine.AnimationStateData(f.skeletonData),f.state=new spine.AnimationState(f.stateData),f.state.onEvent=f.onEvent.dispatch.bind(f.onEvent),f.state.onComplete=f.onComplete.dispatch.bind(f.onComplete),f.state.onEnd=f.onEnd.dispatch.bind(f.onEnd),f.slotContainers=[];for(var l=0,m=f.skeleton.slots.length;l1||b<0||a.playerInstance.setVolume(b))},a.getCuePoints=function(){if(null!==a.playerInstance)return a.playerInstance.cuePoints()},a}();b.playerInstance=null,b.onClose=new Phaser.Signal,a.Tubia=b}(Fabrique||(Fabrique={}));var Fabrique;!function(a){var b;!function(a){a[a.Neutral=0]="Neutral",a[a.Yepi=1]="Yepi",a[a.Spele=2]="Spele",a[a.Funnygames=3]="Funnygames",a[a.Kizi=4]="Kizi",a[a.PlayCell=5]="PlayCell",a[a.GameCell=6]="GameCell",a[a.Bild=7]="Bild",a[a.Spil=8]="Spil",a[a.Admeen=9]="Admeen"}(b=a.BrandingDomain||(a.BrandingDomain={}))}(Fabrique||(Fabrique={}));var Fabrique;!function(a){var b;!function(a){var b=function(a){function b(b,c,d,e,f,g,h){var i=a.call(this,b,d,e,"",null,null)||this;i.onInputUp.add(i.openGame,i),i.id=c.data.key,i.url=c.data.url,i.icon=i.game.add.image(0,0,c.data.key),i.icon.width=f,i.icon.height=f,i.input.priorityID=680,i.addChild(i.icon);var j=i.game.make.graphics(0,0);j.beginFill(h).drawRect(0,0,f,g-f).endFill(),i.titleBg=i.game.add.image(0,f,j.generateTexture()),i.addChild(i.titleBg);var k=c.data.title;return k.length>16&&(k=k.replace(k.substring(14,k.length),"...")),i.title=i.game.add.text(f/2,i.titleBg.y+(g-f)/2+4,k.toUpperCase(),{font:"bold "+.35*(g-f)+"px Arial",fill:"#FFF",align:"center",wordWrap:!0,wordWrapWidth:f-10}),i.title.anchor.set(.5,.5),i.addChild(i.title),j=i.game.make.graphics(0,0),j.beginFill(16777215).drawCircle(0,0,80).beginFill(h).lineTo(-15,-25).lineTo(25,0).lineTo(-15,25).lineTo(-15,-25).endFill(),i.playImg=i.game.add.image(f/2,f/3*2.7,j.generateTexture()),i.playImg.anchor.set(.5,.5),i.addChild(i.playImg),i}return __extends(b,a),b.prototype.openGame=function(){this.game.analytics&&this.game.analytics.google.sendGenericEvent("MoreGames","Click",this.id),this.url.indexOf("http://")!==-1&&this.url.replace("http:","");var a=window.open(this.url,"_self");a&&a.focus&&a.focus()},b.prototype.destroy=function(){this.onInputUp.remove(this.openGame,this),a.prototype.destroy.call(this),this.removedFromWorld()},b}(Phaser.Button);a.Item=b}(b=a.MoreGames||(a.MoreGames={}))}(Fabrique||(Fabrique={}));var Fabrique;!function(a){var b;!function(b){var c=function(c){function d(b,d){var e=c.call(this,b,null,"moreGames-background")||this;e.size=800,e.items=[],e.offset=14,e.isDestroyed=!1,e.gameName=d,e.deviceRatio=b.width/e.size,e.overlay=b.add.graphics(0,0),e.overlay.beginFill(0,.4).drawRect(0,0,b.width,b.height).endFill(),e.overlay.pivot.set(b.width/2,b.height/2),e.overlay.inputEnabled=!0,e.overlay.input.priorityID=660,e.onClose=new Phaser.Signal,e.overlay.events.onInputUp.add(function(){e.hide()}),e.add(e.overlay),e.menuGrp=new Phaser.Group(b,e,"menuGrp"),e.add(e.menuGrp);var f=b.make.graphics(0,0);f.beginFill(2507370).drawRoundedRect(0,0,e.size,e.size+20,15).endFill(),e.background=e.game.add.image(0,0,f.generateTexture()),e.background.anchor.set(.5),e.background.inputEnabled=!0,e.background.input.priorityID=670,e.background.input.useHandCursor=!1,e.menuGrp.add(e.background),e.logoBtn=e.game.add.button(0,-(e.background.height/2)+e.offset,a.Branding.LOGO_KEY,function(){a.Branding.openCampaignLink(e.game,e.gameName,a.UtmTargets.more_games)},e),e.logoBtn.scale.setTo(1),e.logoBtn.anchor.set(.5,0),e.menuGrp.add(e.logoBtn),e.closeBtn=b.add.button(e.size/2-10,-(e.size/2)+25,"close_btn",e.hide,e),e.closeBtn.anchor.set(1),e.closeBtn.input.priorityID=680,e.menuGrp.add(e.closeBtn),e.createItems();var g=b.make.graphics(0,0);g.beginFill(2507370).drawRect(0,0,270,40).endFill(),e.moreGamesBtn=b.add.button(0,e.background.y+e.background.height/2-g.height-e.offset,"",function(){a.Branding.openCampaignLink(e.game,e.gameName,a.UtmTargets.more_games)},e),e.moreGamesBtn.texture=g.generateTexture(),e.moreGamesBtn.input.priorityID=680,e.moreGamesBtn.anchor.set(.5,0),e.menuGrp.add(e.moreGamesBtn);var h={font:"bold 26px Tahoma",fill:"#ffffff"};return e.moreGamesText=b.add.text(0,e.moreGamesBtn.height/2+2,"PLAY MORE GAMES",h),e.moreGamesText.anchor.set(.5),e.moreGamesBtn.addChild(e.moreGamesText),e.visible=!1,e.resize(),e.resizeListener=function(){setTimeout(function(){e.isDestroyed||e.resize()},100)},e.game.scale.onSizeChange.add(e.resizeListener,e),e}return __extends(d,c),d.prototype.createItems=function(){this.itemGrp=this.game.make.group(this,"items"),this.itemGrp.x=0,this.itemGrp.y=this.size/2+this.logoBtn.y+this.logoBtn.height,this.menuGrp.add(this.itemGrp);var c,e,f,g,h=this.game.cache.getJSON(a.Branding.GAME_ICONS_KEY),i=3,j=Math.floor(this.size/i-1.25*this.offset),k=Math.floor(j+.25*j),l=0;for(var m in h)h.hasOwnProperty(m)&&l<6&&!this.isCurrentGame(m)&&(e=l%i*j+this.offset+l%i*this.offset,f=Math.floor(l/i)*k+this.offset+Math.floor(l/i)*this.offset,g=l%d.BG_COLORS.length,c=new b.Item(this.game,h[m],e-this.size/2,f-this.size/2,j,k,d.BG_COLORS[g]),this.itemGrp.add(c),this.items.push(c),l++)},d.prototype.isCurrentGame=function(a){var b=window.location.href.replace(/-/g,"");return a=a.replace(/-/g,""),b.indexOf(a)>=0},d.prototype.show=function(){this.visible||(this.game.analytics&&(this.game.analytics.google.sendScreenView("moregames"),this.game.analytics.google.sendGenericEvent("MoreGames","Open")),this.visible=!0)},d.prototype.hide=function(){this.visible&&(this.visible=!1,this.game.analytics&&this.game.analytics.google.sendGenericEvent("MoreGames","Close"),this.onClose&&this.onClose.dispatch())},d.preloadImages=function(b){a.Utils.getSourceSite();a.Utils.isOnDevice(b)||a.Branding.isAirfi()?a.Utils.ASSET_LOCATION="assets/":a.Utils.isTc()?a.Utils.ASSET_LOCATION="/repository/download/Fabrique_FunnyGamesSplash/.lastSuccessful/build/assets/":"fbrq.io"===a.Utils.getSourceSite(!0)&&(a.Utils.ASSET_LOCATION="//"+window.location.host+"/orange-games-splash/assets/"),a.Utils.isTc()||(b.load.crossOrigin="anonymous"),b.load.image("close_btn",a.Utils.ASSET_LOCATION+"images/close_btn.png");var c=b.cache.getJSON(a.Branding.GAME_ICONS_KEY);for(var d in c)c.hasOwnProperty(d)&&(c[d].data.key=d,b.load.image(d,a.Utils.ASSET_LOCATION+"icons/"+d+".png"))},d.prototype.getScale=function(){return this.game.height>this.game.width&&this.game.widththis.game.height&&this.game.height=3?this.dotText=".":this.dotText+=".",this.preloadText.setText("Loading "+this.dotText)},d.prototype.onPreloadEnd=function(){this.preloadReady=!0,this.game.input.onUp.add(this.handler,this),this.animateButton()},d.prototype.createObjects=function(){this.bgImage=this.game.add.tileSprite(this.game.width/2,this.game.height/2,853,612,"admeen_atlas","bg_pattern"),this.bgImage.pivot.set(426.5,306),this.gradientBitmap=this.game.make.bitmapData(1,1),this.bgGradientOverlay=this.game.add.sprite(0,0,this.gradientBitmap),this.logo=this.game.add.image(0,0,"admeen_atlas","mascotte"),this.logo.anchor.set(.5,.7),this.playButton=this.game.add.button(this.game.width/2,.75*this.game.height,"admeen_atlas",this.handler,this,"btn","btn","btn","btn"),this.playButton.anchor.set(.5),this.playButton.visible=!1,this.created=!0,this.preloadText=this.game.add.text(this.game.width/2,this.game.height/2*.75,"",{font:"Arial",fontSize:40,fill:"#ffffff",fontWeight:"bold"}),this.preloadText.anchor.set(.5)},d.prototype.resizeObjects=function(){if(this.created){var b=this.game.width<1?1:this.game.width,c=this.game.height<1?1:this.game.height;this.logo.scale.set(this.scaleFactor),this.logo.y=.4*this.game.height,this.logo.x=this.game.width/2,this.bgImage.width=853*this.scaleFactor,this.bgImage.height=612*this.scaleFactor,this.bgImage.y=this.game.height/2,this.bgImage.x=this.game.width/2,this.bgImage.pivot.set(853*this.scaleFactor/2,612*this.scaleFactor/2),this.gradientBitmap.resize(b,c);var d=this.gradientBitmap.context.createRadialGradient(b/2,c/2,0,b/2,c/2,.5*c);d.addColorStop(0,"rgba(66, 103, 178, 0)"),d.addColorStop(1,"rgba(66, 103, 178, 1)"),this.gradientBitmap.context.fillStyle=d,this.gradientBitmap.context.clearRect(0,0,b,c),this.gradientBitmap.context.fillRect(0,0,b,c),this.preloadText.x=this.game.width/2,this.preloadText.y=.75*this.game.height,this.preloadText.scale.set(this.scaleFactor),a.Utils.isOnDevice(this.game)||(this.playButton.scale.set(.6*this.scaleFactor),this.playButton.x=this.game.width/2,this.playButton.y=.75*this.game.height)}},d.prototype.handler=function(a,b){if(!this.clicked&&"mouseout"!==b.type){this.clicked=!0,this.game.tweens.remove(this.buttonTween),this.game.camera.fade(0,250);var c=this.game.add.tween(this.playButton.scale);c.to({x:0,y:0},250,Phaser.Easing.Back.In).start(),void 0!==this.config.mobilePlayClickhandler?this.config.mobilePlayClickhandler():this.game.state.start(this.config.nextState),this.game.input.onUp.remove(this.handler,this)}},d.prototype.getScale=function(){return 1},d.prototype.startAnimation=function(){},d.prototype.animateButton=function(){a.Utils.isOnDevice(this.game)||(this.preloadText.visible=!1,this.game.tweens.remove(this.buttonTween),this.playButton.scale.set(this.scaleFactor),this.playButton.visible=!0,this.buttonTween=this.game.add.tween(this.playButton.scale),this.buttonTween.to({x:1.14*this.scaleFactor,y:1.14*this.scaleFactor},420,Phaser.Easing.Quadratic.InOut,!0,500),this.buttonTween.yoyo(!0).onComplete.add(this.animateButton,this),this.buttonTween.start())},d.prototype.update=function(){this.background.update()},d.prototype.resize=function(){this.scaleFactor=this.getScale(),this.background.resize(this.scaleFactor),this.resizeObjects(),this.created&&this.preloadReady&&this.animateButton()},d.prototype.shutdown=function(){this.game.scale.onSizeChange.remove(this.resize,this),this.game.load.onLoadStart.remove(this.onPreloadStart,this),this.game.load.onFileComplete.remove(this.onPreloadedFile,this),this.game.load.onLoadComplete.remove(this.onPreloadEnd,this),this.logo.destroy(!0),this.playButton.destroy(!0),this.bgImage.destroy(!0),this.background.destroy(!0),this.logo=null,this.bgImage=null,this.playButton=null,this.background=null,this.game.state.remove(b.Preloader.Name),this.game.state.remove(b.SplashPreloader.Name),this.game.state.remove(this.name)},d}(Phaser.State);c.Name="admeenSplashScreen",c.IdealWidth=400,c.MaxDots=3,b.Admeen=c}(b=a.SplashScreen||(a.SplashScreen={}))}(Fabrique||(Fabrique={}));var Fabrique;!function(a){var b;!function(b){var c=function(c){function d(){var a=c.call(this)||this;return a.name=d.Name,a.scaleFactor=1,a.created=!1,a.preloadReady=!1,a.clicked=!1,a.preloadTexts=[],a.tId=0,a}return __extends(d,c),d.prototype.init=function(a,b){this.config=a,this.background=b,this.game.scale.onSizeChange.add(this.resize,this)},d.prototype.preload=function(){this.game.add.existing(this.background),this.createObjects(),this.scaleFactor=this.getScale(),this.resizeObjects(),this.startAnimation(),this.game.load.onLoadStart.add(this.onPreloadStart,this),this.game.load.onFileComplete.add(this.onPreloadedFile,this),this.game.load.onLoadComplete.add(this.onPreloadEnd,this),this.config.preloadHandler(),0===this.game.load.totalQueuedFiles()&&this.onPreloadEnd()},d.prototype.onPreloadStart=function(){},d.prototype.onPreloadedFile=function(){},d.prototype.onPreloadEnd=function(){this.preloadReady=!0,this.loadBack.visible=!1,this.loadBar.visible=!1,this.game.input.onUp.add(this.handler,this),this.animateButton()},d.prototype.createObjects=function(){this.logo=this.game.add.sprite(this.game.width/2,this.game.height/2-100,"bild_logo"),this.logo.anchor.set(.5),this.logo.scale.set(.8),d.IdealWidth=this.logo.getBounds().width;var a=this.game.make.graphics(0,0);a.beginFill(16777215,.5).drawRect(0,0,350,20).endFill(),this.loadBack=this.game.add.sprite(this.game.width/2,this.game.height/2+100,a.generateTexture()),this.loadBack.anchor.set(.5);var b=this.game.make.graphics(0,0);b.beginFill(16777215,1).drawRect(0,0,350,20).endFill(),this.loadBar=this.game.add.sprite(this.game.width/2-175,this.game.height/2+100,b.generateTexture()),this.loadBar.anchor.set(0,.5),this.load.setPreloadSprite(this.loadBar),this.playButton=this.game.add.button(this.game.width/2,this.game.height/2+200,"bild_play",this.handler,this),this.playButton.anchor.set(.5),this.playButton.scale.set(this.scaleFactor),this.playButton.visible=!1,this.created=!0},d.prototype.resizeObjects=function(){this.created&&(this.logo.scale.set(.8*this.scaleFactor),this.logo.y=this.game.height/2-100*this.scaleFactor,this.logo.x=this.game.width/2,a.Utils.isOnDevice(this.game)||(this.playButton.x=this.game.width/2,this.playButton.y=this.game.height/2+200*this.scaleFactor))},d.prototype.handler=function(a,b){if(!this.clicked&&"mouseout"!==b.type){this.clicked=!0,this.game.tweens.remove(this.buttonTween),this.game.camera.fade(0,250);var c=this.game.add.tween(this.playButton.scale);c.to({x:0,y:0},250,Phaser.Easing.Back.In).start(),void 0!==this.config.mobilePlayClickhandler?this.config.mobilePlayClickhandler():this.game.state.start(this.config.nextState),this.game.input.onUp.remove(this.handler,this)}},d.prototype.getScale=function(){return a.Utils.isOnDevice(this.game)?this.game.width<1.5*d.IdealWidth?this.game.width/6*4/d.IdealWidth:1:this.game.width1e3&&(this.t=Date.now(),this.tId++,this.tId>=this.preloadTexts.length&&(this.tId=0)),this.dotText.length>=3?this.dotText=".":this.dotText+=".",this.preloadText.setText(this.preloadTexts[this.tId]+this.dotText)},d.prototype.onPreloadEnd=function(){this.preloadReady=!0,this.preloadText.visible=!1,this.game.input.onUp.add(this.handler,this),this.animateButton()},d.prototype.createObjects=function(){this.monster1=this.game.add.spine(0,0,"fgs_monster_1"),this.monster1.setAnimationByName(0,"idle",!0),this.monster2=this.game.add.spine(0,0,"fgs_monster_2"),this.monster2.setAnimationByName(0,"idle",!0),this.monster3=this.game.add.spine(0,0,"fgs_monster_3"),this.monster3.setAnimationByName(0,"idle",!0),this.preloadText=this.game.add.text(this.game.width/2,this.game.height/2+230,"",{font:"Arial",fontSize:40,fill:"#ffffff",fontWeight:"bold"}),this.preloadText.anchor.set(.5),this.logo=this.game.add.image(0,0,"fgs_logo"),this.logo.anchor.set(.5),d.IdealWidth=1.5*this.logo.getBounds().width,this.playButton=this.game.add.button(this.game.width/2,this.game.height/2+230*this.scaleFactor,"fgs_play",this.handler,this,0,0,1,0),this.playButton.anchor.set(.5),this.playButton.scale.set(this.scaleFactor),this.playButton.visible=!1,this.created=!0},d.prototype.handler=function(a,b){if(!this.clicked&&"mouseout"!==b.type){this.clicked=!0,this.game.tweens.remove(this.buttonTween),this.game.camera.fade(0,250);var c=this.game.add.tween(this.playButton.scale);c.to({x:0,y:0},250,Phaser.Easing.Back.In).start(),void 0!==this.config.mobilePlayClickhandler?this.config.mobilePlayClickhandler():this.game.state.start(this.config.nextState),this.game.input.onUp.remove(this.handler,this)}},d.prototype.resizeObjects=function(){this.created&&(this.logo.scale.set(1.5*this.scaleFactor),this.logo.y=this.game.height/2+70*this.scaleFactor,this.logo.x=this.game.width/2,this.monster1.x=this.game.width/2+40*this.scaleFactor,this.monster1.y=this.game.height/2-10*this.scaleFactor,this.monster1.scale.set(.4*this.scaleFactor),this.monster2.x=this.game.width/2+190*this.scaleFactor,this.monster2.y=this.game.height/2-10*this.scaleFactor,this.monster2.scale.set(.4*this.scaleFactor),this.monster3.x=this.game.width/2-140*this.scaleFactor,this.monster3.y=this.game.height/2-10*this.scaleFactor,this.monster3.scale.set(.4*this.scaleFactor),this.preloadText.x=this.game.width/2,this.preloadText.y=this.game.height/2+230*this.scaleFactor,this.preloadText.scale.set(this.scaleFactor),this.playButton.x=this.game.width/2,this.playButton.y=this.game.height/2+230*this.scaleFactor)},d.prototype.getScale=function(){return a.Utils.isOnDevice(this.game)?this.game.width<1.5*d.IdealWidth?this.game.width/6*4/d.IdealWidth:1:this.game.width1e3&&(this.t=Date.now(),this.tId++,this.tId>=this.preloadTexts.length&&(this.tId=0)),this.dotText.length>=3?this.dotText=".":this.dotText+=".",this.preloadText.setText(this.preloadTexts[this.tId]+this.dotText)},d.prototype.onPreloadEnd=function(){this.preloadReady=!0,this.preloadText.visible=!1,this.game.input.onUp.add(this.handler,this),this.animateButton()},d.prototype.createObjects=function(){this.twirl=this.game.add.image(this.game.width/2,this.game.height/2,"gamecell_atlas","gamecell_bg_pattern"),this.twirl.scale.setTo(2,2),this.twirl.anchor.set(.5),this.createOverlay(),this.logoSpine=this.game.add.spine(0,0,"splash_gamecell"),this.logoSpine.setAnimationByName(0,"idle",!0),this.preloadText=this.game.add.text(this.game.width/2,this.game.height/2+230,"",{font:"Arial",fontSize:40,fill:"#ffffff",fontWeight:"bold"}),this.preloadText.anchor.set(.5),this.logo=this.game.add.image(0,0,"gamecell_atlas","gamecell_logo"),this.logo.anchor.set(.5),d.IdealWidth=1.5*this.logo.getBounds().width,this.playButton=this.game.add.button(this.game.width/2,.85*this.game.height,"gamecell_atlas",this.handler,this,"gamecell_btn_play","gamecell_btn_play","gamecell_btn_play","gamecell_btn_play"),this.playButton.anchor.set(.5),this.playButton.scale.set(this.scaleFactor),this.playButton.visible=!1,this.created=!0},d.prototype.createOverlay=function(){this.gradientBitmap=this.game.make.bitmapData(1,1),this.gradient=this.game.make.sprite(0,0,this.gradientBitmap),this.game.add.existing(this.gradient)},d.prototype.handler=function(a,b){if(!this.clicked&&"mouseout"!==b.type){this.clicked=!0,this.game.tweens.remove(this.buttonTween),this.game.camera.fade(0,250);var c=this.game.add.tween(this.playButton.scale);c.to({x:0,y:0},250,Phaser.Easing.Back.In).start(),void 0!==this.config.mobilePlayClickhandler?this.config.mobilePlayClickhandler():this.game.state.start(this.config.nextState),this.game.input.onUp.remove(this.handler,this)}},d.prototype.resizeObjects=function(){if(this.created){this.gradientBitmap.resize(this.game.width,this.game.height),this.gradientBitmap.context.clearRect(0,0,this.game.width,this.game.height);var a=this.gradientBitmap.context.createRadialGradient(this.game.width/2,this.game.height/2,0,this.game.width/2,this.game.height/2,this.game.height/2);a.addColorStop(0,"rgb(8, 8, 54)"),a.addColorStop(1,"rgba(8, 8, 54, 0)"),this.gradientBitmap.context.fillStyle=a,this.gradientBitmap.context.fillRect(0,0,this.game.width,this.game.height),this.logo.scale.set(.5*this.scaleFactor),this.logo.y=.2*this.game.height,this.logo.x=this.game.width/2,this.logoSpine.scale.set(this.scaleFactor),this.logoSpine.autoUpdateTransform(),this.logoSpine.x=this.game.width/2,this.logoSpine.y=this.game.height/2,this.preloadText.x=this.game.width/2,this.preloadText.y=.85*this.game.height,this.preloadText.scale.set(this.scaleFactor),this.playButton.x=this.game.width/2,this.playButton.y=.85*this.game.height,this.twirl.position.set(this.game.width/2,this.game.height/2)}},d.prototype.getScale=function(){return a.Utils.isOnDevice(this.game)?this.game.width<1.5*d.IdealWidth?this.game.width/6*4/d.IdealWidth:1:this.game.width2.8&&(this.twirl.scale.x=2,this.twirl.scale.y=2)},d.prototype.loadUpdate=function(){this.background.update()},d.prototype.resize=function(){this.scaleFactor=this.getScale(),this.background.resize(this.scaleFactor),this.resizeObjects(),this.created&&this.preloadReady&&this.animateButton()},d.prototype.shutdown=function(){c.prototype.shutdown.call(this),this.gradientBitmap.destroy(),this.gradient.destroy(!0),this.gradientBitmap=null,this.gradient=null,this.logo.destroy(!0),this.logoSpine.destroy(!0),this.playButton.destroy(!0),this.background.destroy(!0),this.preloadText.destroy(!0),this.logo=null,this.logoSpine=null,this.playButton=null,this.background=null,this.preloadText=null,this.config=null,this.game.scale.onSizeChange.remove(this.resize,this),this.game.load.onLoadStart.remove(this.onPreloadStart,this),this.game.load.onFileComplete.remove(this.onPreloadedFile,this),this.game.load.onLoadComplete.remove(this.onPreloadEnd,this),this.game.state.remove(b.Preloader.Name),this.game.state.remove(b.SplashPreloader.Name),this.game.state.remove(this.name)},d}(Phaser.State);c.Name="GameCell",c.IdealWidth=860,c.MaxDots=3,b.GameCell=c}(b=a.SplashScreen||(a.SplashScreen={}))}(Fabrique||(Fabrique={}));var Fabrique;!function(a){var b;!function(b){var c=function(c){function d(){var a=c.call(this)||this;return a.name=d.Name,a.scaleFactor=1,a.created=!1,a.preloadReady=!1,a.clicked=!1,a.preloadTexts=["Loading images","Loading music","Loading sound effects","Calculating Pi"],a.dotText=".",a.tId=0,a}return __extends(d,c),d.prototype.init=function(a,b){this.config=a,this.background=b,this.config.preloadTexts&&(this.preloadTexts=this.config.preloadTexts),this.game.scale.onSizeChange.add(this.resize,this)},d.prototype.preload=function(){this.game.add.existing(this.background),this.createObjects(),this.scaleFactor=this.getScale(),this.resizeObjects(),this.startAnimation(),this.game.load.onLoadStart.add(this.onPreloadStart,this),this.game.load.onFileComplete.add(this.onPreloadedFile,this),this.game.load.onLoadComplete.add(this.onPreloadEnd,this),this.config.preloadHandler(),0===this.game.load.totalQueuedFiles()&&this.onPreloadEnd()},d.prototype.onPreloadStart=function(){this.t=Date.now(),this.preloadText.setText(this.preloadTexts[this.tId])},d.prototype.onPreloadedFile=function(){Date.now()-this.t>1e3&&(this.t=Date.now(),this.tId++,this.tId>=this.preloadTexts.length&&(this.tId=0)),this.dotText.length>=3?this.dotText=".":this.dotText+=".",this.preloadText.setText(this.preloadTexts[this.tId]+this.dotText)},d.prototype.onPreloadEnd=function(){this.preloadReady=!0,this.preloadText.visible=!1,this.game.input.onUp.add(this.handler,this),this.animateButton()},d.prototype.createObjects=function(){this.twirl=this.game.add.image(this.game.width/2,this.game.height/2,"kizi_twist"),this.twirl.anchor.set(.5),this.twirl.width=this.twirl.height=this.game.width>this.game.height?this.game.width:this.game.height,this.monster=this.game.add.spine(0,0,"kizi_skeleton"),this.monster.setAnimationByName(0,"idle",!0),this.preloadText=this.game.add.text(this.game.width/2,this.game.height/2+230,"",{font:"Arial",fontSize:40,fill:"#ffffff",fontWeight:"bold"}),this.preloadText.anchor.set(.5),this.logo=this.game.add.image(0,0,"kizi_logo"),this.logo.anchor.set(.5),d.IdealWidth=1.5*this.logo.getBounds().width,this.playButton=this.game.add.button(this.game.width/2,.85*this.game.height,"kizi_button",this.handler,this,0,0,1,0),this.playButton.anchor.set(.5),this.playButton.scale.set(this.scaleFactor),this.playButton.visible=!1,this.created=!0},d.prototype.handler=function(a,b){if(!this.clicked&&"mouseout"!==b.type){this.clicked=!0,this.game.tweens.remove(this.buttonTween),this.game.camera.fade(0,250);var c=this.game.add.tween(this.playButton.scale);c.to({x:0,y:0},250,Phaser.Easing.Back.In).start(),void 0!==this.config.mobilePlayClickhandler?this.config.mobilePlayClickhandler():this.game.state.start(this.config.nextState),this.game.input.onUp.remove(this.handler,this)}},d.prototype.resizeObjects=function(){this.created&&(this.logo.scale.set(.5*this.scaleFactor),this.logo.y=.2*this.game.height,this.logo.x=this.game.width/2,this.monster.scale.set(this.scaleFactor),this.monster.autoUpdateTransform(),this.monster.x=this.game.width/2,this.monster.y=this.game.height/2+.6*this.monster.height,this.preloadText.x=this.game.width/2,this.preloadText.y=.85*this.game.height,this.preloadText.scale.set(this.scaleFactor),this.playButton.x=this.game.width/2,this.playButton.y=.85*this.game.height,this.twirl.position.set(this.game.width/2,this.game.height/2))},d.prototype.getScale=function(){return a.Utils.isOnDevice(this.game)?this.game.width<1.5*d.IdealWidth?this.game.width/6*4/d.IdealWidth:1:this.game.width=1&&(3===this.state?this.setTween(4,14,{alpha:0}):4===this.state?(this.onComplete.dispatch(this.floor,this.cell),this.destroy()):5===this.state?(this.onComplete.dispatch(),this.state=6):this.state=0)}},Object.defineProperty(b.prototype,"scaleX",{get:function(){return this.scale.x},set:function(a){this.scale.x=a},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"scaleY",{get:function(){return this.scale.y},set:function(a){this.scale.y=a},enumerable:!0,configurable:!0}),b.prototype.destroy=function(){a.prototype.destroy.call(this),this.onComplete=null,this.tweenDetails=[],this.tweenDetails=null},b}(Phaser.Sprite);a.SmallPart=b}(b=a.SplashScreen||(a.SplashScreen={}))}(Fabrique||(Fabrique={}));var Fabrique;!function(a){var b;!function(a){var b=function(b){function c(){var a=b.call(this)||this;return a.name=c.Name,a.scaleFactor=1,a.width=787,a.height=494,a.created=!1,a.preloadTexts=[],a.preloadReady=!1,a.clicked=!1,a.tId=0,a}return __extends(c,b),c.prototype.init=function(a,b){this.config=a,this.background=b,this.game.scale.onSizeChange.add(this.resize,this)},c.prototype.preload=function(){this.game.add.existing(this.background),this.scaleFactor=this.getScale(),this.createObjects(),this.resizeObjects(),this.game.load.onLoadStart.add(this.onPreloadStart,this),this.game.load.onFileComplete.add(this.onPreloadedFile,this),this.game.load.onLoadComplete.add(this.onPreloadEnd,this),this.config.preloadHandler(),0===this.game.load.totalQueuedFiles()&&this.onPreloadEnd()},c.prototype.onPreloadStart=function(){this.t=Date.now()},c.prototype.onPreloadedFile=function(){},c.prototype.onPreloadEnd=function(){this.preloadReady=!0,this.game.input.onUp.add(this.handler,this),this.animateButton()},c.prototype.createObjects=function(){this.spine=this.game.add.spine(this.game.width/2,this.game.height/2,"splash_playcell"),this.spine.setMixByName("intro","loop",.2),this.spine.setMixByName("loop","outro",.2),this.spine.setAnimationByName(0,"intro",!1),this.spine.addAnimationByName(0,"loop",!0,0),this.logo=this.game.add.sprite(this.game.width/2,.4*this.game.height,"playcell_atlas","logo"),this.logo.scale.set(this.scaleFactor),this.logo.anchor.set(.5),this.logo.visible=!1,this.playButton=this.game.add.image(this.game.width/2,this.game.height,"playcell_atlas","button"),this.playButton.anchor.set(.5),this.playButton.scale.set(this.scaleFactor),this.playButton.y=this.logo.y+.75*this.logo.height,this.playButton.inputEnabled=!0,this.playButton.events.onInputUp.add(this.handler,this),this.playButton.visible=!1,this.created=!0},c.prototype.resizeObjects=function(){this.created&&(this.logo.position.set(this.game.width/2,.4*this.game.height),this.logo.scale.set(this.scaleFactor),this.playButton.x=this.game.width/2,this.playButton.y=this.logo.y+.75*this.logo.height)},c.prototype.handler=function(a,b){if(!this.clicked&&"mouseout"!==b.type){this.clicked=!0,this.game.tweens.remove(this.buttonTween),this.game.camera.fade(0,250);var c=this.game.add.tween(this.playButton.scale);c.to({x:0,y:0},250,Phaser.Easing.Back.In).start(),void 0!==this.config.mobilePlayClickhandler?this.config.mobilePlayClickhandler():this.game.state.start(this.config.nextState),this.game.input.onUp.remove(this.handler,this)}},c.prototype.getScale=function(){return this.game.width1e3&&(this.t=Date.now(),this.tId++,this.tId>=this.preloadTexts.length&&(this.tId=0)),this.dotText.length>=3?this.dotText=".":this.dotText+=".",this.preloadText.setText(this.preloadTexts[this.tId]+this.dotText)},d.prototype.onPreloadEnd=function(){this.preloadReady=!0,this.preloadText.visible=!1,this.game.input.onUp.add(this.handler,this),this.animateButton()},d.prototype.createObjects=function(){this.twirl=this.game.add.image(this.game.width/2,this.game.height/2,"spele_atlas","spele_bg_pattern"),this.twirl.anchor.set(.5),this.twirl.width=this.twirl.height=this.game.width>this.game.height?this.game.width:this.game.height,this.jelly=this.game.add.spine(0,0,"jelly_skeleton"),this.jelly.setAnimationByName(0,"idle",!0),this.preloadText=this.game.add.text(this.game.width/2,this.game.height/2+230,"",{font:"Arial",fontSize:40,fill:"#ffffff",fontWeight:"bold"}),this.preloadText.anchor.set(.5),this.logo=this.game.add.image(0,0,"spele_atlas","spele_logo"),this.logo.anchor.set(.5),d.IdealWidth=1.5*this.logo.getBounds().width;var a="spele_button";this.playButton=this.game.add.button(this.game.width/2,.85*this.game.height,"spele_atlas",this.handler,this,a,a,a,a),this.playButton.anchor.set(.5),this.playButton.scale.set(this.scaleFactor),this.playButton.visible=!1,this.created=!0},d.prototype.handler=function(a,b){if(!this.clicked&&"mouseout"!==b.type){this.clicked=!0,this.game.tweens.remove(this.buttonTween),this.game.camera.fade(0,250);var c=this.game.add.tween(this.playButton.scale);c.to({x:0,y:0},250,Phaser.Easing.Back.In).start(),void 0!==this.config.mobilePlayClickhandler?this.config.mobilePlayClickhandler():this.game.state.start(this.config.nextState),this.game.input.onUp.remove(this.handler,this)}},d.prototype.resizeObjects=function(){this.created&&(this.logo.scale.set(.5*this.scaleFactor),this.logo.y=.25*this.game.height,this.logo.x=this.game.width/2,this.jelly.scale.set(.5*this.scaleFactor),this.jelly.autoUpdateTransform(),this.jelly.x=this.game.width/2,this.jelly.y=this.game.height/2+1.2*this.jelly.height,this.preloadText.x=this.game.width/2,this.preloadText.y=.85*this.game.height,this.preloadText.scale.set(this.scaleFactor),this.playButton.x=this.game.width/2,this.playButton.y=.84*this.game.height,this.twirl.position.set(this.game.width/2,this.game.height/2))},d.prototype.getScale=function(){return a.Utils.isOnDevice(this.game)?this.game.width<1.5*d.IdealWidth?this.game.width/6*4/d.IdealWidth:1:this.game.width200&&(this.tweenRandomItem(),this.dt=Date.now())},c.prototype.loadUpdate=function(){var a=Date.now()-this.ddt;a>200&&(this.ddt=Date.now(),this.tweenRandomItem())},c.prototype.tweenRandomItem=function(){var a=this.tiles[Math.random()*this.tiles.length|0];this.game.add.tween(a).to({alpha:1},1e3,Phaser.Easing.Linear.None,!0,0,0,!0)},c.prototype.resize=function(){this.scaleFactor=this.getScale(),this.background.resize(this.scaleFactor),this.resizeObjects()},c.prototype.shutdown=function(){b.prototype.shutdown.call(this),this.spine.destroy(!0),this.background.destroy(!0),this.tiles.forEach(function(a){a.destroy(!0)}),this.gradientBitmap.destroy(),this.gradient.destroy(!0),this.logo.destroy(!0),this.balls.forEach(function(a){a.destroy(!0)}),this.spine=null,this.playButton=null,this.background=null,this.gradientBitmap=null,this.gradient=null,this.logo=null,this.tiles=null,this.balls=null,this.game.scale.onSizeChange.remove(this.resize,this),this.game.load.onLoadStart.remove(this.onPreloadStart,this),this.game.load.onFileComplete.remove(this.onPreloadedFile,this),this.game.load.onLoadComplete.remove(this.onPreloadEnd,this),this.game.state.remove(a.Preloader.Name),this.game.state.remove(a.SplashPreloader.Name),this.game.state.remove(this.name)},c}(Phaser.State);b.Name="yepiSplashScreen",b.IdealWidth=463,b.MaxDots=3,a.Yepi=b}(b=a.SplashScreen||(a.SplashScreen={}))}(Fabrique||(Fabrique={}));var Fabrique;!function(a){var b=null,c=function(){function a(){}return a.has=function(a){var c=a.lastIndexOf(".");if(c<=0||c>=a.length-1)return!1;var d=a.lastIndexOf(".",c-1);if(d<=0||d>=c-1)return!1;var e=b[a.slice(c+1)];return!!e&&e.indexOf(" "+a.slice(d+1,c)+" ")>=0},a.is=function(a){var c=a.lastIndexOf(".");if(c<=0||c>=a.length-1)return!1;var d=a.lastIndexOf(".",c-1);if(d>=0)return!1;var e=b[a.slice(c+1)];return!!e&&e.indexOf(" "+a.slice(0,c)+" ")>=0},a.get=function(a){var c=a.lastIndexOf(".");if(c<=0||c>=a.length-1)return null;var d=a.lastIndexOf(".",c-1);if(d<=0||d>=c-1)return null;var e=b[a.slice(c+1)];return e?e.indexOf(" "+a.slice(d+1,c)+" ")<0?null:a.slice(d+1):null},a}(),d=function(){function a(){}return a.setList=function(a){b=a||{}},a.getDomain=function(a){if(null===b)return null;var c=a.match(/\./g);if(c&&c.length<2)return a;var d=a.length-this.getTld(a).length-1;return d=a.lastIndexOf(".",d-1)+1,a.substring(d)||""},a.getTld=function(a){if(null===b)return null;var d=a.lastIndexOf("."),e=a.substring(d+1);return b[e.toLowerCase()]?c.get(a)||e:e},a}();d.KEY="Domains",a.Domain=d}(Fabrique||(Fabrique={}));var Fabrique;!function(a){var b=function(){function b(){}return b.getSourceSite=function(c){void 0===c&&(c=!1);var d=document.referrer||window.location.host;if(c&&(d=window.location.host),d.indexOf("embed.gamedistribution.com")!==-1&&window.location.search.indexOf("gd_sdk_referrer_url")!==-1&&(d=b.getUrlParameter("gd_sdk_referrer_url")||d), +d=decodeURIComponent(d),a.Branding.isBild())return"bildspielt.de";if(a.Branding.isBip())return"bipgaming.com";a.Branding.isSpil()&&(d=b.getReferrer(d)),d=d.indexOf("://")>-1?d.split("/")[2]:d.split("/")[0],d=d.split(":")[0];var e=a.Domain.getDomain(d);return null!==e?e:(3===d.split(".").length&&(d=d.substr(d.indexOf(".")+1)),d)},b.getBrandingDomain=function(){if(window.hasOwnProperty("fbrqBD")&&window.fbrqBD in a.BrandingDomain)return window.fbrqBD;if(a.SplashScreen.Preloader.SPLASH_OVERRIDE!==!1)return a.SplashScreen.Preloader.SPLASH_OVERRIDE;var c=b.getSourceSite();if(a.Branding.isAdmeen())return a.BrandingDomain.Admeen;if(a.Branding.isPlaycellApp()||a.Branding.isBip())return a.BrandingDomain.PlayCell;switch(c){case"spele.nl":return a.BrandingDomain.Spele;case"yepi.com":return a.BrandingDomain.Yepi;case"oyunskor.com":case"barbioyunu.com.tr":case"bebekoyunu.com.tr":case"oyunkolu.com":case"oyungemisi.com":case"oyunlar1.com":case"oyunkuzusu.com":case"kraloyun.com":case"rekoroyun.com":case"oyundedem.com":case"oyunoyna.com":case"pastaoyunu.com.tr":case"playcell.com":return a.BrandingDomain.PlayCell;case"gamecell.com":return a.BrandingDomain.GameCell;case"playxl.com":return a.BrandingDomain.Admeen;default:case"kizi.com":return a.BrandingDomain.Kizi;case"bildspielt.de":return a.BrandingDomain.Bild;case"funnygames.nl":return a.BrandingDomain.Funnygames}},b.getReferrer=function(a){return a.indexOf("?ref=")!==-1?a.substr(a.indexOf("?ref=")+5):a},b.inIframe=function(){try{return window.self!==window.top}catch(a){return!0}},b.getDomain=function(a){var b=document.createElement("a");return b.href=a,b.origin},b.isOnDevice=function(a){return!(!a.device.cordova&&!a.device.crosswalk)&&!/(gamedistribution\.com)/.test(window.location.hostname)},b.isTc=function(){return/(teamcity\.ds\.orangegames\.com)/.test(window.location.host)},b.getRandomRange=function(a,b){return Math.random()*(b-a)+a|0},b.getUrlParameter=function(a){a=a.replace(/[\[]/,"\\[").replace(/[\]]/,"\\]");var b=new RegExp("[\\?&]"+a+"=([^&#]*)"),c=b.exec(location.search);return null===c?"":decodeURIComponent(c[1].replace(/\+/g," "))},b.intTimeToString=function(a){var b=Math.floor(a/3600),c=Math.floor(a%3600/60),d=a%60,e=b<10?"0"+b:b.toString(),f=c<10?"0"+c:c.toString(),g=d<10?"0"+d:d.toString();return e+":"+f+":"+g},b.registerAudioUnlocker=function(a){a.input.touch&&"function"!=typeof a.input.touch.addTouchLockCallback||a.device.android&&a.device.chrome&&a.device.chromeVersion>=55&&(a.sound.touchLocked=!0,a.input.touch.addTouchLockCallback(function(){if(this.noAudio||!this.touchLocked||null!==this._unlockSource)return!0;if(this.usingWebAudio){var a=this.context.createBuffer(1,1,22050);this._unlockSource=this.context.createBufferSource(),this._unlockSource.buffer=a,this._unlockSource.connect(this.context.destination),void 0===this._unlockSource.start?this._unlockSource.noteOn(0):this._unlockSource.start(0),"suspended"===this._unlockSource.context.state&&this._unlockSource.context.resume()}return!0},a.sound,!0))},b}();b.ASSET_LOCATION="patch/cdn/kizi/",a.Utils=b}(Fabrique||(Fabrique={}));var CryptoJS=CryptoJS||function(a,b){var c={},d=c.lib={},e=function(){},f=d.Base={extend:function(a){e.prototype=this;var b=new e;return a&&b.mixIn(a),b.hasOwnProperty("init")||(b.init=function(){b.$super.init.apply(this,arguments)}),b.init.prototype=b,b.$super=this,b},create:function(){var a=this.extend();return a.init.apply(a,arguments),a},init:function(){},mixIn:function(a){for(var b in a)a.hasOwnProperty(b)&&(this[b]=a[b]);a.hasOwnProperty("toString")&&(this.toString=a.toString)},clone:function(){return this.init.prototype.extend(this)}},g=d.WordArray=f.extend({init:function(a,c){a=this.words=a||[],this.sigBytes=c!=b?c:4*a.length},toString:function(a){return(a||i).stringify(this)},concat:function(a){var b=this.words,c=a.words,d=this.sigBytes;if(a=a.sigBytes,this.clamp(),d%4)for(var e=0;e>>2]|=(c[e>>>2]>>>24-e%4*8&255)<<24-(d+e)%4*8;else if(65535>>2]=c[e>>>2];else b.push.apply(b,c);return this.sigBytes+=a,this},clamp:function(){var b=this.words,c=this.sigBytes;b[c>>>2]&=4294967295<<32-c%4*8,b.length=a.ceil(c/4)},clone:function(){var a=f.clone.call(this);return a.words=this.words.slice(0),a},random:function(b){for(var c=[],d=0;d>>2]>>>24-d%4*8&255;c.push((e>>>4).toString(16)),c.push((15&e).toString(16))}return c.join("")},parse:function(a){for(var b=a.length,c=[],d=0;d>>3]|=parseInt(a.substr(d,2),16)<<24-d%8*4;return new g.init(c,b/2)}},j=h.Latin1={stringify:function(a){var b=a.words;a=a.sigBytes;for(var c=[],d=0;d>>2]>>>24-d%4*8&255));return c.join("")},parse:function(a){for(var b=a.length,c=[],d=0;d>>2]|=(255&a.charCodeAt(d))<<24-d%4*8;return new g.init(c,b)}},k=h.Utf8={stringify:function(a){try{return decodeURIComponent(escape(j.stringify(a)))}catch(a){throw Error("Malformed UTF-8 data")}},parse:function(a){return j.parse(unescape(encodeURIComponent(a)))}},l=d.BufferedBlockAlgorithm=f.extend({reset:function(){this._data=new g.init,this._nDataBytes=0},_append:function(a){"string"==typeof a&&(a=k.parse(a)),this._data.concat(a),this._nDataBytes+=a.sigBytes},_process:function(b){var c=this._data,d=c.words,e=c.sigBytes,f=this.blockSize,h=e/(4*f),h=b?a.ceil(h):a.max((0|h)-this._minBufferSize,0);if(b=h*f,e=a.min(4*b,e),b){for(var i=0;ij;){var k;a:{k=i;for(var l=a.sqrt(k),m=2;m<=l;m++)if(!(k%m)){k=!1;break a}k=!0}k&&(8>j&&(f[j]=h(a.pow(i,.5))),g[j]=h(a.pow(i,1/3)),j++),i++}var n=[],c=c.SHA256=e.extend({_doReset:function(){this._hash=new d.init(f.slice(0))},_doProcessBlock:function(a,b){for(var c=this._hash.words,d=c[0],e=c[1],f=c[2],h=c[3],i=c[4],j=c[5],k=c[6],l=c[7],m=0;64>m;m++){if(16>m)n[m]=0|a[b+m];else{var o=n[m-15],p=n[m-2];n[m]=((o<<25|o>>>7)^(o<<14|o>>>18)^o>>>3)+n[m-7]+((p<<15|p>>>17)^(p<<13|p>>>19)^p>>>10)+n[m-16]}o=l+((i<<26|i>>>6)^(i<<21|i>>>11)^(i<<7|i>>>25))+(i&j^~i&k)+g[m]+n[m],p=((d<<30|d>>>2)^(d<<19|d>>>13)^(d<<10|d>>>22))+(d&e^d&f^e&f),l=k,k=j,j=i,i=h+o|0,h=f,f=e,e=d,d=o+p|0}c[0]=c[0]+d|0,c[1]=c[1]+e|0,c[2]=c[2]+f|0,c[3]=c[3]+h|0,c[4]=c[4]+i|0,c[5]=c[5]+j|0,c[6]=c[6]+k|0,c[7]=c[7]+l|0},_doFinalize:function(){var b=this._data,c=b.words,d=8*this._nDataBytes,e=8*b.sigBytes;return c[e>>>5]|=128<<24-e%32,c[14+(e+64>>>9<<4)]=a.floor(d/4294967296),c[15+(e+64>>>9<<4)]=d,b.sigBytes=4*c.length,this._process(),this._hash},clone:function(){var a=e.clone.call(this);return a._hash=this._hash.clone(),a}});b.SHA256=e._createHelper(c),b.HmacSHA256=e._createHmacHelper(c)}(Math),function(){var a=CryptoJS,b=a.enc.Utf8;a.algo.HMAC=a.lib.Base.extend({init:function(a,c){a=this._hasher=new a.init,"string"==typeof c&&(c=b.parse(c));var d=a.blockSize,e=4*d;c.sigBytes>e&&(c=a.finalize(c)),c.clamp();for(var f=this._oKey=c.clone(),g=this._iKey=c.clone(),h=f.words,i=g.words,j=0;j>>2]>>>24-e%4*8&255)<<16|(b[e+1>>>2]>>>24-(e+1)%4*8&255)<<8|b[e+2>>>2]>>>24-(e+2)%4*8&255,g=0;4>g&&e+.75*g>>6*(3-g)&63));if(b=d.charAt(64))for(;a.length%4;)a.push(b);return a.join("")},parse:function(a){var c=a.length,d=this._map,e=d.charAt(64);e&&-1!=(e=a.indexOf(e))&&(c=e);for(var e=[],f=0,g=0;g>>6-g%4*2;e[f>>>2]|=(h|i)<<24-f%4*8,f++}return b.create(e,f)},_map:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}}();var GA;!function(a){!function(a){a[a.ios=0]="ios",a[a.android=1]="android",a[a.windows=2]="windows",a[a.windows_phone=3]="windows_phone",a[a.blackberry=4]="blackberry",a[a.roku=5]="roku",a[a.tizen=6]="tizen",a[a.nacl=7]="nacl",a[a.mac_osx=8]="mac_osx",a[a.webplayer=9]="webplayer"}(a.Platform||(a.Platform={})),a.Platform,function(a){a[a.male=0]="male",a[a.female=1]="female"}(a.Gender||(a.Gender={})),a.Gender}(GA||(GA={}));var GA;!function(a){!function(a){var b=/^[A-Za-z0-9\\s\\-_\\.\\(\\)\\!\\?]{1,64}:[A-Za-z0-9\\s\\-_\\.\\(\\)\\!\\?]{1,64}$/,c=function(){function a(a,c,d,e,f,g){if(this.category=1,this.transaction_num=0,!a||null===a.match(b))throw new Error("Invalid event_id supplied for BusinessEvent");if(this.event_id=a,this.amount=c,!d||null===d.match(/^[A-Z]{3}$/))throw new Error("Invalid currency supplied for BusinessEvent");if(this.currency=d,this.transaction_num=e,f){if(f.length>32)throw new Error("A too long cart_type was supplied, should be max 32 characters");this.cart_type=f}void 0!==g&&(this.receipt_info=g)}return a}();a.Business=c}(a.Events||(a.Events={}))}(GA||(GA={}));var GA;!function(a){!function(a){var b=/^[A-Za-z0-9\\s\\-_\\.\\(\\)\\!\\?]{1,64}(:[A-Za-z0-9\\s\\-_\\.\\(\\)\\!\\?]{1,64}){0,4}$/,c=function(){function a(a,c){if(this.category=0,null===a.match(b))throw new Error("Invalid event_id supplied for DesignEvent");this.event_id=a,void 0!==c&&(this.value=c)}return a}();a.Design=c}(a.Events||(a.Events={}))}(GA||(GA={}));var GA;!function(a){!function(a){!function(a){a[a.design=0]="design",a[a.business=1]="business",a[a.error=2]="error",a[a.user=3]="user",a[a.session_end=4]="session_end",a[a.progression=5]="progression",a[a.resource=6]="resource"}(a.Category||(a.Category={})),a.Category}(a.Events||(a.Events={}))}(GA||(GA={}));var GA;!function(a){!function(a){!function(a){a[a.debug=0]="debug",a[a.info=1]="info",a[a.warning=2]="warning",a[a.error=3]="error",a[a.critical=4]="critical"}(a.ErrorSeverity||(a.ErrorSeverity={}));var b=a.ErrorSeverity,c=function(){function a(a,c){this.category=2,this.message="",this.severity=b[a],void 0!==c&&(this.message=c.substr(0,8192))}return a}();a.Exception=c}(a.Events||(a.Events={}))}(GA||(GA={}));var GA;!function(a){!function(a){var b=function(){function a(){}return a}();a.InitResponse=b;var c=function(){function a(a){this.data=a}return a.prototype.toString=function(){return JSON.stringify(this.data)},a}();a.Init=c}(a.Events||(a.Events={}))}(GA||(GA={}));var GA;!function(a){!function(a){var b=/^(Start|Fail|Complete):[A-Za-z0-9\\s\\-_\\.\\(\\)\\!\\?]{1,64}(:[A-Za-z0-9\\s\\-_\\.\\(\\)\\!\\?]{1,64}){0,2}$/,c=function(){function a(a,c,d){if(this.category=5,null===a.match(b))throw new Error("Invalid event_id supplied for ProgressionEvent");this.event_id=a,void 0!==c&&(this.attempt_num=c),void 0!==d&&(this.score=d)}return a}();a.Progression=c}(a.Events||(a.Events={}))}(GA||(GA={}));var GA;!function(a){!function(a){var b=/^(Sink|Source):[A-Za-z]{1,64}:[A-Za-z0-9\\s\\-_\\.\\(\\)\\!\\?]{1,64}:[A-Za-z0-9\\s\\-_\\.\\(\\)\\!\\?]{1,64}/,c=function(){function a(a,c){if(this.category=6,null===a.match(b))throw new Error("Invalid event_id supplied for ResourceEvent");this.event_id=a,this.amount=c}return a}();a.Resource=c}(a.Events||(a.Events={}))}(GA||(GA={}));var GA;!function(a){!function(a){var b=function(){function a(a){this.category=4,this.length=0,this.length=a}return a}();a.SessionEnd=b}(a.Events||(a.Events={}))}(GA||(GA={}));var GA;!function(a){!function(a){var b=function(){function a(){this.category=3}return a}();a.User=b}(a.Events||(a.Events={}))}(GA||(GA={}));var GA;!function(a){function b(){return null===c.instance&&(c.instance=new c),c.instance}a.getInstance=b;var c=function(){function b(){this.sessionId=a.Utils.createUniqueId(),this.messageQueue=new a.Utils.MessageQueue,this.enabled=!1,this.initProcessed=!1,this.timeoutId=0,this.timeOffset=0}return b.prototype.init=function(c,d,e,f){var g=this;if(null===b.instance)throw new Error("No instance Available!");this.gameKey=c,this.secretKey=d,this.build=e,this.user=f,this.incrementSessionNum(f);var h=new a.Events.Init(a.Utils.getBaseAnnotations());return this.sendEvent(h.toString(),"init",function(a){g.initProcessed=!0,!0===a.enabled&&(g.enabled=!0,g.timeOffset=(Date.now()/1e3|0)-a.server_ts)}),this.scheduleSendData(b.SCHEDULE_TIME),window.addEventListener("beforeunload",function(){g.sendData()}),this},b.prototype.incrementSessionNum=function(b){var c=a.Utils.LocalStorage.getItem(b.user_id);c?a.Utils.LocalStorage.setItem(b.user_id,(parseInt(c)+1).toString()):(c="1",a.Utils.LocalStorage.setItem(b.user_id,c))},b.prototype.addEvent=function(c){if(null===b.instance)throw new Error("No instance Available!");var d=new a.Utils.Message(c,a.Utils.getDefaultAnnotations(this.user,this.sessionId,this.build,this.timeOffset));return this.messageQueue.push(d),this},b.prototype.sendData=function(){if(!1===this.initProcessed)return this.scheduleSendData(1e3),this;if(!1===this.enabled)return this;if(null===b.instance)throw new Error("No instance Available!");for(var a=[],c="";this.messageQueue.length>0;){var d=this.messageQueue.pop();a.push(d.data)}if(0===a.length)return this.scheduleSendData(b.SCHEDULE_TIME),this;try{c=JSON.stringify(a)}catch(a){}return this.sendEvent(c,"events"),this.scheduleSendData(b.SCHEDULE_TIME),this},b.prototype.scheduleSendData=function(a){var b=this;clearTimeout(this.timeoutId),this.timeoutId=setTimeout(function(){b.sendData()},a)},b.prototype.sendEvent=function(c,d,e){if(void 0===e&&(e=null),null===b.instance&&null===this.gameKey)throw new Error("No instance Available!");if(!(c.length<1)){var f=CryptoJS.HmacSHA256(c,this.secretKey),g=CryptoJS.enc.Base64.stringify(f),h=b.API_URL+this.gameKey+"/"+d;a.Utils.postRequest(h,c,g,function(a){if(!1===a.success&&window.console&&console.log(a.message),null!=e){var b="";try{b=JSON.parse(a.message)}catch(a){}e(b)}})}},b.SCHEDULE_TIME=15e3,b.SDK_VERSION="rest api v2",b.API_URL="patch/json/null.json?"+("https:"===document.location.protocol?"https":"http")+"://api.gameanalytics.com/v2/",b.instance=null,b}();a.GameAnalytics=c}(GA||(GA={}));var GA;!function(a){var b=function(){function b(b,c,d,e){if(this.user_id="",b)this.user_id=b;else{var f=a.Utils.LocalStorage.getItem("user");this.user_id=f||a.Utils.createUniqueUserId()}c&&c.length>0&&(this.facebook_id=c,this.user_id=c),a.Utils.LocalStorage.setItem("user",this.user_id),1!==d&&0!==d||(this.gender=d),e&&e.toString().match(/^[0-9]{4}$/gi)&&(this.birth_year=e)}return b}();a.User=b}(GA||(GA={}));var GA;!function(a){!function(b){function c(b,c,d,f){var g={sdk_version:a.GameAnalytics.SDK_VERSION,platform:a.Platform[2],os_version:a.Platform[2]+" 8",device:"unknown",v:2,user_id:b.user_id,client_ts:(Date.now()/1e3|0)+f,manufacturer:"unknown",session_id:c,session_num:e(b.user_id),build:d};b.facebook_id&&(g.facebook_id=b.facebook_id),0!==b.gender&&1!==b.gender||(g.gender=a.Gender[b.gender]),b.birth_year&&(g.birth_year=b.birth_year);var h=navigator.userAgent;return h.match(/iPad|iPod|iPhone/i)?(g.platform=a.Platform[0],g.device=h.match(/iPad|iPod|iPhone/i)[0],g.manufacturer="Apple",g.os_version=a.Platform[0]+" "+h.match(/OS (\b[0-9]+_[0-9]+(?:_[0-9]+)?\b)/)[1].replace(/_/gi,".")):h.match(/Android/i)?(g.platform=a.Platform[1],g.device=h.match(/Mobile/i)?"Phone":"Tablet",g.os_version=a.Platform[1],/Firefox/i.test(h)||(g.os_version+=" "+h.match(/Android (\d+(?:\.\d+)*);/)[1])):h.match(/Windows Phone/i)&&(g.platform=a.Platform[2],g.device="Windows Phone",g.os_version=a.Platform[2]+" "+h.match(/Phone (\d+(?:\.\d+)+);/)[1]),g}function d(){var b={sdk_version:a.GameAnalytics.SDK_VERSION,platform:"unknown",os_version:"unknown"},c=navigator.userAgent;return c.match(/iPad|iPod|iPhone/i)?(b.platform=a.Platform[0],b.os_version=a.Platform[0]+" "+c.match(/OS (\b[0-9]+_[0-9]+(?:_[0-9]+)?\b)/)[1].replace(/_/gi,".")):c.match(/Android/i)?(b.platform=a.Platform[1],b.os_version=a.Platform[1],/Firefox/i.test(c)||(b.os_version+=" "+c.match(/Android (\d+(?:\.\d+)*);/)[1])):c.match(/Windows Phone/i)&&(b.platform=a.Platform[2],b.os_version=a.Platform[2]+" "+c.match(/Phone (\d+(?:\.\d+)+);/)[1]),b}function e(a){var c=b.LocalStorage.getItem(a);return c?parseInt(c):1}b.getDefaultAnnotations=c,b.getBaseAnnotations=d}(a.Utils||(a.Utils={}))}(GA||(GA={}));var GA;!function(a){!function(a){var b=function(){function a(){}return a.getItem=function(b){if(a.Available)return localStorage.getItem(a.CacheKey+b)},a.setItem=function(b,c){a.Available&&localStorage.setItem(a.CacheKey+b,c)},a.Available=!1,a.CacheKey="GA:",a}();a.LocalStorage=b;try{"object"==typeof localStorage&&(localStorage.setItem("testingLocalStorage","yes"),localStorage.removeItem("testingLocalStorage"),b.Available=!0)}catch(a){}}(a.Utils||(a.Utils={}))}(GA||(GA={}));var GA;!function(a){!function(b){var c=function(){function b(a,b){this.event=a,this.annotations=b}return Object.defineProperty(b.prototype,"data",{get:function(){for(var b in this.event)this.event.hasOwnProperty(b)&&(this.annotations[b]="category"===b?a.Events.Category[this.event[b]]:this.event[b]);return this.annotations},enumerable:!0,configurable:!0}),b}();b.Message=c}(a.Utils||(a.Utils={}))}(GA||(GA={}));var GA;!function(a){!function(a){var b=function(){function a(){this.queue=[],this.load()}return a.prototype.push=function(a){this.queue.push(a)},a.prototype.pop=function(){return this.queue.pop()},Object.defineProperty(a.prototype,"length",{get:function(){return this.queue.length},enumerable:!0,configurable:!0}),a.prototype.save=function(){},a.prototype.load=function(){},a}();a.MessageQueue=b}(a.Utils||(a.Utils={}))}(GA||(GA={}));var GA;!function(a){!function(a){function b(a,b,c,d){var e;if(!window.XMLHttpRequest)return void d({success:!1,message:"Error: Unable to send request, XMLHttpRequest not supported"});e=new XMLHttpRequest,e.onreadystatechange=function(){4==e.readyState&&(200===e.status?d({success:!0,message:e.responseText}):e.status>0&&d({success:!1,message:"Error: There was a problem with the request: status "+e.status}))};try{e.open("POST",a,!0),e.setRequestHeader("Authorization",c),e.setRequestHeader("Content-Type","application/json"),e.send(b)}catch(a){d({success:!1,message:"Error: Unable to send request, CORS not allowed."})}}var c=function(){function a(){this.success=!1,this.message=""}return a}();a.Response=c,a.postRequest=b}(a.Utils||(a.Utils={}))}(GA||(GA={}));var GA;!function(a){!function(a){function b(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(a){var b=16*Math.random()|0;return("x"==a?b:3&b|8).toString(16)})}function c(){return b()}a.createUniqueId=b,a.createUniqueUserId=c}(a.Utils||(a.Utils={}))}(GA||(GA={})); \ No newline at end of file diff --git a/vex8/patch/cdn/phaser/phaser-ads.min.js b/vex8/patch/cdn/phaser/phaser-ads.min.js new file mode 100644 index 000000000..98dece61c --- /dev/null +++ b/vex8/patch/cdn/phaser/phaser-ads.min.js @@ -0,0 +1,10 @@ +/*! + * phaser-ads - version 2.2.7 + * A Phaser plugin for providing nice ads integration in your phaser.io game + * + * OrangeGames + * Build at 07-08-2018 + * Released under MIT License + */ + +var __extends=this&&this.__extends||function(){var a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,b){a.__proto__=b}||function(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])};return function(b,c){function d(){this.constructor=b}a(b,c),b.prototype=null===c?Object.create(c):(d.prototype=c.prototype,new d)}}(),PhaserAds;!function(a){var b;!function(a){a[a.start=0]="start",a[a.firstQuartile=1]="firstQuartile",a[a.midPoint=2]="midPoint",a[a.thirdQuartile=3]="thirdQuartile",a[a.complete=4]="complete"}(b=a.AdEvent||(a.AdEvent={}));var c;!function(a){a[a.interstitial=0]="interstitial",a[a.rewarded=1]="rewarded",a[a.banner=2]="banner",a[a.video=3]="video"}(c=a.AdType||(a.AdType={}));var d=function(a){function b(b,c){var d=a.call(this,b,c)||this;return d.onContentPaused=new Phaser.Signal,d.onContentResumed=new Phaser.Signal,d.onAdProgression=new Phaser.Signal,d.onAdsDisabled=new Phaser.Signal,d.onAdClicked=new Phaser.Signal,d.onAdRewardGranted=new Phaser.Signal,d.onBannerShown=new Phaser.Signal,d.onBannerHidden=new Phaser.Signal,d.bannerActive=!1,d.provider=null,d.wasMuted=!1,Object.defineProperty(b,"ads",{value:d}),d}return __extends(b,a),b.prototype.setAdProvider=function(a){this.provider=a,this.provider.setManager(this)},b.prototype.showAd=function(){for(var a=[],b=0;b0&&(b+="&");var d=Array.isArray(a[c])?a[c].join(","):a[c];b+=c+"="+d}return"&cust_params="+encodeURIComponent(b)}return""},b.prototype.areAdsEnabled=function(){var a=this,b=document.createElement("div");b.innerHTML=" ",b.className="adsbox",b.style.position="absolute",b.style.fontSize="10px",document.body.appendChild(b);var c=function(){var a=!0;return 0===b.offsetHeight&&(a=!1),b.parentNode.removeChild(b),a};window.setTimeout(function(){a.adsEnabled=c()},100)},b}();b.Ima3=c}(b=a.AdProvider||(a.AdProvider={}))}(PhaserAds||(PhaserAds={})); \ No newline at end of file diff --git a/vex8/patch/cdn/phaser/phaser-cachebuster.min.js b/vex8/patch/cdn/phaser/phaser-cachebuster.min.js new file mode 100644 index 000000000..7883529db --- /dev/null +++ b/vex8/patch/cdn/phaser/phaser-cachebuster.min.js @@ -0,0 +1,10 @@ +/*! + * phaser-cachebuster - version 2.0.0 + * Simple Phaser plugin for adding a query parameter to assets URL's so that they can be 'cache busted' + * + * Azerion + * Build at 15-03-2019 + * Released under MIT License + */ + +var __extends=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},PhaserCachebuster;!function(a){var b=function(a){function b(b,c){var d=a.call(this,b,c)||this;return d.patchLoader(),d}return __extends(b,a),b.prototype.patchLoader=function(){Object.defineProperty(Phaser.Loader,"cacheBuster",{value:null}),Phaser.Loader.prototype.transformUrl=function(a,b){return a?(null!==this.cacheBuster&&null===a.match(/^(data:)/)&&(a+="?v="+this.cacheBuster),a.match(/^(?:blob:|data:|http:\/\/|https:\/\/|\/\/)/)?a:this.baseURL+b.path+a):""}},b}(Phaser.Plugin);a.CacheBuster=b}(PhaserCachebuster||(PhaserCachebuster={})); \ No newline at end of file diff --git a/vex8/patch/cdn/phaser/phaser-i18next.min.js b/vex8/patch/cdn/phaser/phaser-i18next.min.js new file mode 100644 index 000000000..a10d66d97 --- /dev/null +++ b/vex8/patch/cdn/phaser/phaser-i18next.min.js @@ -0,0 +1,11 @@ +/*! + * phaser-i18next - version 1.0.3 + * Phaser plugin for translations using i18next. + * + * Azerion + * Build at 15-03-2019 + * Released under MIT License + */ + +!function(a,b){"object"==typeof exports&&"undefined"!=typeof module?module.exports=b():"function"==typeof define&&define.amd?define(b):a.i18next=b()}(this,function(){"use strict";function a(a){return null==a?"":""+a}function b(a,b,c){a.forEach(function(a){b[a]&&(c[a]=b[a])})}function c(a,b,c){function d(a){return a&&a.indexOf("###")>-1?a.replace(/###/g,"."):a}function e(){return!a||"string"==typeof a}for(var f="string"!=typeof b?[].concat(b):b.split(".");f.length>1;){if(e())return{};var g=d(f.shift());!a[g]&&c&&(a[g]=new c),a=a[g]}return e()?{}:{obj:a,k:d(f.shift())}}function d(a,b,d){var e=c(a,b,Object),f=e.obj,g=e.k;f[g]=d}function e(a,b,d,e){var f=c(a,b,Object),g=f.obj,h=f.k;g[h]=g[h]||[],e&&(g[h]=g[h].concat(d)),e||g[h].push(d)}function f(a,b){var d=c(a,b),e=d.obj,f=d.k;if(e)return e[f]}function g(a,b,c){for(var d in b)d in a?"string"==typeof a[d]||a[d]instanceof String||"string"==typeof b[d]||b[d]instanceof String?c&&(a[d]=b[d]):g(a[d],b[d],c):a[d]=b[d];return a}function h(a){return a.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}function i(a){return"string"==typeof a?a.replace(/[&<>"'\/]/g,function(a){return F[a]}):a}function j(a){return a.interpolation={unescapeSuffix:"HTML"},a.interpolation.prefix=a.interpolationPrefix||"__",a.interpolation.suffix=a.interpolationSuffix||"__",a.interpolation.escapeValue=a.escapeInterpolation||!1,a.interpolation.nestingPrefix=a.reusePrefix||"$t(",a.interpolation.nestingSuffix=a.reuseSuffix||")",a}function k(a){return a.resStore&&(a.resources=a.resStore),a.ns&&a.ns.defaultNs?(a.defaultNS=a.ns.defaultNs,a.ns=a.ns.namespaces):a.defaultNS=a.ns||"translation",a.fallbackToDefaultNS&&a.defaultNS&&(a.fallbackNS=a.defaultNS),a.saveMissing=a.sendMissing,a.saveMissingTo=a.sendMissingTo||"current",a.returnNull=!a.fallbackOnNull,a.returnEmptyString=!a.fallbackOnEmpty,a.returnObjects=a.returnObjectTrees,a.joinArrays="\n",a.returnedObjectHandler=a.objectTreeKeyHandler,a.parseMissingKeyHandler=a.parseMissingKey,a.appendNamespaceToMissingKey=!0,a.nsSeparator=a.nsseparator||":",a.keySeparator=a.keyseparator||".","sprintf"===a.shortcutFunction&&(a.overloadTranslationOptionHandler=function(a){for(var b=[],c=1;c1&&void 0!==arguments[1]?arguments[1]:{};v(this,a),this.init(b,c)}return a.prototype.init=function(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=b.prefix||"i18next:",this.logger=a||B,this.options=b,this.debug=b.debug},a.prototype.setDebug=function(a){this.debug=a},a.prototype.log=function(){for(var a=arguments.length,b=Array(a),c=0;c-1&&c.observers[a].splice(d,1)}else delete c.observers[a]})},a.prototype.emit=function(a){for(var b=arguments.length,c=Array(b>1?b-1:0),d=1;d":">",'"':""","'":"'","/":"/"},G=function(a){function b(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};v(this,b);var e=y(this,a.call(this));return e.data=c,e.options=d,e}return x(b,a),b.prototype.addNamespaces=function(a){this.options.ns.indexOf(a)<0&&this.options.ns.push(a)},b.prototype.removeNamespaces=function(a){var b=this.options.ns.indexOf(a);b>-1&&this.options.ns.splice(b,1)},b.prototype.getResource=function(a,b,c){var d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},e=d.keySeparator||this.options.keySeparator;void 0===e&&(e=".");var g=[a,b];return c&&"string"!=typeof c&&(g=g.concat(c)),c&&"string"==typeof c&&(g=g.concat(e?c.split(e):c)),a.indexOf(".")>-1&&(g=a.split(".")),f(this.data,g)},b.prototype.addResource=function(a,b,c,e){var f=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},g=this.options.keySeparator;void 0===g&&(g=".");var h=[a,b];c&&(h=h.concat(g?c.split(g):c)),a.indexOf(".")>-1&&(h=a.split("."),e=b,b=h[1]),this.addNamespaces(b),d(this.data,h,e),f.silent||this.emit("added",a,b,c,e)},b.prototype.addResources=function(a,b,c){for(var d in c)"string"==typeof c[d]&&this.addResource(a,b,d,c[d],{silent:!0});this.emit("added",a,b,c)},b.prototype.addResourceBundle=function(a,b,c,e,h){var i=[a,b];a.indexOf(".")>-1&&(i=a.split("."),e=c,c=b,b=i[1]),this.addNamespaces(b);var j=f(this.data,i)||{};e?g(j,c,h):j=w({},j,c),d(this.data,i,j),this.emit("added",a,b,c)},b.prototype.removeResourceBundle=function(a,b){this.hasResourceBundle(a,b)&&delete this.data[a][b],this.removeNamespaces(b),this.emit("removed",a,b)},b.prototype.hasResourceBundle=function(a,b){return void 0!==this.getResource(a,b)},b.prototype.getResourceBundle=function(a,b){return b||(b=this.options.defaultNS),"v1"===this.options.compatibilityAPI?w({},this.getResource(a,b)):this.getResource(a,b)},b.prototype.toJSON=function(){return this.data},b}(E),H={processors:{},addPostProcessor:function(a){this.processors[a.name]=a},handle:function(a,b,c,d,e){var f=this;return a.forEach(function(a){f.processors[a]&&(b=f.processors[a].process(b,c,d,e))}),b}},I=function(a){function c(d){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};v(this,c);var f=y(this,a.call(this));return b(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector"],d,f),f.options=e,f.logger=D.create("translator"),f}return x(c,a),c.prototype.changeLanguage=function(a){a&&(this.language=a)},c.prototype.exists=function(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}};return"v1"===this.options.compatibilityAPI&&(b=m(b)),void 0!==this.resolve(a,b)},c.prototype.extractFromKey=function(a,b){var c=b.nsSeparator||this.options.nsSeparator;void 0===c&&(c=":");var d=b.keySeparator||this.options.keySeparator||".",e=b.ns||this.options.defaultNS;if(c&&a.indexOf(c)>-1){var f=a.split(c);(c!==d||c===d&&this.options.ns.indexOf(f[0])>-1)&&(e=f.shift()),a=f.join(d)}return"string"==typeof e&&(e=[e]),{key:a,namespaces:e}},c.prototype.translate=function(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("object"!==("undefined"==typeof b?"undefined":u(b))?b=this.options.overloadTranslationOptionHandler(arguments):"v1"===this.options.compatibilityAPI&&(b=m(b)),void 0===a||null===a||""===a)return"";"number"==typeof a&&(a=String(a)),"string"==typeof a&&(a=[a]);var c=b.keySeparator||this.options.keySeparator||".",d=this.extractFromKey(a[a.length-1],b),e=d.key,f=d.namespaces,g=f[f.length-1],h=b.lng||this.language,i=b.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(h&&"cimode"===h.toLowerCase()){if(i){var j=b.nsSeparator||this.options.nsSeparator;return g+j+e}return e}var k=this.resolve(a,b),l=Object.prototype.toString.apply(k),n=["[object Number]","[object Function]","[object RegExp]"],o=void 0!==b.joinArrays?b.joinArrays:this.options.joinArrays;if(k&&"string"!=typeof k&&n.indexOf(l)<0&&(!o||"[object Array]"!==l)){if(!b.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(e,k,b):"key '"+e+" ("+this.language+")' returned an object instead of string.";if(b.keySeparator||this.options.keySeparator){var p="[object Array]"===l?[]:{};for(var q in k)Object.prototype.hasOwnProperty.call(k,q)&&(p[q]=this.translate(""+e+c+q,w({},b,{joinArrays:!1,ns:f})));k=p}}else if(o&&"[object Array]"===l)k=k.join(o),k&&(k=this.extendTranslation(k,e,b));else{var r=!1,s=!1;if(this.isValidLookup(k)||void 0===b.defaultValue||(r=!0,k=b.defaultValue),this.isValidLookup(k)||(s=!0,k=e),s||r){this.logger.log("missingKey",h,g,e,k);var t=[],v=this.languageUtils.getFallbackCodes(this.options.fallbackLng,b.lng||this.language);if("fallback"===this.options.saveMissingTo&&v&&v[0])for(var x=0;x1&&void 0!==arguments[1]?arguments[1]:{},d=void 0;return"string"==typeof a&&(a=[a]),a.forEach(function(a){if(!b.isValidLookup(d)){var e=b.extractFromKey(a,c),f=e.key,g=e.namespaces;b.options.fallbackNS&&(g=g.concat(b.options.fallbackNS));var h=void 0!==c.count&&"string"!=typeof c.count,i=void 0!==c.context&&"string"==typeof c.context&&""!==c.context,j=c.lngs?c.lngs:b.languageUtils.toResolveHierarchy(c.lng||b.language);g.forEach(function(a){b.isValidLookup(d)||j.forEach(function(e){if(!b.isValidLookup(d)){var g=f,j=[g],k=void 0;h&&(k=b.pluralResolver.getSuffix(e,c.count)),h&&i&&j.push(g+k),i&&j.push(g+=""+b.options.contextSeparator+c.context),h&&j.push(g+=k);for(var l=void 0;l=j.pop();)b.isValidLookup(d)||(d=b.getResource(e,a,l,c))}})})}}),d},c.prototype.isValidLookup=function(a){return!(void 0===a||!this.options.returnNull&&null===a||!this.options.returnEmptyString&&""===a)},c.prototype.getResource=function(a,b,c){var d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.resourceStore.getResource(a,b,c,d)},c}(E),J=function(){function a(b){v(this,a),this.options=b,this.whitelist=this.options.whitelist||!1,this.logger=D.create("languageUtils")}return a.prototype.getScriptPartFromCode=function(a){if(!a||a.indexOf("-")<0)return null;var b=a.split("-");return 2===b.length?null:(b.pop(),this.formatLanguageCode(b.join("-")))},a.prototype.getLanguagePartFromCode=function(a){if(!a||a.indexOf("-")<0)return a;var b=a.split("-");return this.formatLanguageCode(b[0])},a.prototype.formatLanguageCode=function(a){if("string"==typeof a&&a.indexOf("-")>-1){var b=["hans","hant","latn","cyrl","cans","mong","arab"],c=a.split("-");return this.options.lowerCaseLng?c=c.map(function(a){return a.toLowerCase()}):2===c.length?(c[0]=c[0].toLowerCase(),c[1]=c[1].toUpperCase(),b.indexOf(c[1].toLowerCase())>-1&&(c[1]=o(c[1].toLowerCase()))):3===c.length&&(c[0]=c[0].toLowerCase(),2===c[1].length&&(c[1]=c[1].toUpperCase()),"sgn"!==c[0]&&2===c[2].length&&(c[2]=c[2].toUpperCase()),b.indexOf(c[1].toLowerCase())>-1&&(c[1]=o(c[1].toLowerCase())),b.indexOf(c[2].toLowerCase())>-1&&(c[2]=o(c[2].toLowerCase()))),c.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?a.toLowerCase():a},a.prototype.isWhitelisted=function(a){return("languageOnly"===this.options.load||this.options.nonExplicitWhitelist)&&(a=this.getLanguagePartFromCode(a)),!this.whitelist||!this.whitelist.length||this.whitelist.indexOf(a)>-1},a.prototype.getFallbackCodes=function(a,b){if(!a)return[];if("string"==typeof a&&(a=[a]),"[object Array]"===Object.prototype.toString.apply(a))return a;if(!b)return a["default"]||[];var c=a[b];return c||(c=a[this.getScriptPartFromCode(b)]),c||(c=a[this.formatLanguageCode(b)]),c||(c=a["default"]),c||[]},a.prototype.toResolveHierarchy=function(a,b){var c=this,d=this.getFallbackCodes(b||this.options.fallbackLng||[],a),e=[],f=function(a){a&&(c.isWhitelisted(a)?e.push(a):c.logger.warn("rejecting non-whitelisted language code: "+a))};return"string"==typeof a&&a.indexOf("-")>-1?("languageOnly"!==this.options.load&&f(this.formatLanguageCode(a)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&f(this.getScriptPartFromCode(a)),"currentOnly"!==this.options.load&&f(this.getLanguagePartFromCode(a))):"string"==typeof a&&f(this.formatLanguageCode(a)),d.forEach(function(a){e.indexOf(a)<0&&f(c.formatLanguageCode(a))}),e},a}(),K=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","tg","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","es_ar","et","eu","fi","fo","fur","fy","gl","gu","ha","he","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt","pt_br","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21}],L={1:function(a){return Number(a>1)},2:function(a){return Number(1!=a)},3:function(a){return 0},4:function(a){return Number(a%10==1&&a%100!=11?0:a%10>=2&&a%10<=4&&(a%100<10||a%100>=20)?1:2)},5:function(a){return Number(0===a?0:1==a?1:2==a?2:a%100>=3&&a%100<=10?3:a%100>=11?4:5)},6:function(a){return Number(1==a?0:a>=2&&a<=4?1:2)},7:function(a){return Number(1==a?0:a%10>=2&&a%10<=4&&(a%100<10||a%100>=20)?1:2)},8:function(a){return Number(1==a?0:2==a?1:8!=a&&11!=a?2:3)},9:function(a){return Number(a>=2)},10:function(a){return Number(1==a?0:2==a?1:a<7?2:a<11?3:4)},11:function(a){return Number(1==a||11==a?0:2==a||12==a?1:a>2&&a<20?2:3)},12:function(a){return Number(a%10!=1||a%100==11)},13:function(a){return Number(0!==a)},14:function(a){return Number(1==a?0:2==a?1:3==a?2:3)},15:function(a){return Number(a%10==1&&a%100!=11?0:a%10>=2&&(a%100<10||a%100>=20)?1:2)},16:function(a){return Number(a%10==1&&a%100!=11?0:0!==a?1:2)},17:function(a){return Number(1==a||a%10==1?0:1)},18:function(a){return Number(0==a?0:1==a?1:2)},19:function(a){return Number(1==a?0:0===a||a%100>1&&a%100<11?1:a%100>10&&a%100<20?2:3)},20:function(a){return Number(1==a?0:0===a||a%100>0&&a%100<20?1:2)},21:function(a){return Number(a%100==1?1:a%100==2?2:a%100==3||a%100==4?3:0)}},M=function(){function a(b){var c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};v(this,a),this.languageUtils=b,this.options=c,this.logger=D.create("pluralResolver"),this.rules=p()}return a.prototype.addRule=function(a,b){this.rules[a]=b},a.prototype.getRule=function(a){return this.rules[this.languageUtils.getLanguagePartFromCode(a)]},a.prototype.needsPlural=function(a){var b=this.getRule(a);return b&&b.numbers.length>1},a.prototype.getSuffix=function(a,b){var c=this,d=this.getRule(a);if(d){if(1===d.numbers.length)return"";var e=d.noAbs?d.plurals(b):d.plurals(Math.abs(b)),f=d.numbers[e];this.options.simplifyPluralSuffix&&2===d.numbers.length&&1===d.numbers[0]&&(2===f?f="plural":1===f&&(f=""));var g=function(){return c.options.prepend&&f.toString()?c.options.prepend+f.toString():f.toString()};return"v1"===this.options.compatibilityJSON?1===f?"":"number"==typeof f?"_plural_"+f.toString():g():"v2"===this.options.compatibilityJSON||2===d.numbers.length&&1===d.numbers[0]?g():2===d.numbers.length&&1===d.numbers[0]?g():this.options.prepend&&e.toString()?this.options.prepend+e.toString():e.toString()}return this.logger.warn("no plural rule found for: "+a),""},a}(),N=function(){function b(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};v(this,b),this.logger=D.create("interpolator"),this.init(a,!0)}return b.prototype.init=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},b=arguments[1];b&&(this.options=a,this.format=a.interpolation&&a.interpolation.format||function(a){return a},this.escape=a.interpolation&&a.interpolation.escape||i),a.interpolation||(a.interpolation={escapeValue:!0});var c=a.interpolation;this.escapeValue=void 0===c.escapeValue||c.escapeValue,this.prefix=c.prefix?h(c.prefix):c.prefixEscaped||"{{",this.suffix=c.suffix?h(c.suffix):c.suffixEscaped||"}}",this.formatSeparator=c.formatSeparator?c.formatSeparator:c.formatSeparator||",",this.unescapePrefix=c.unescapeSuffix?"":c.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":c.unescapeSuffix||"",this.nestingPrefix=c.nestingPrefix?h(c.nestingPrefix):c.nestingPrefixEscaped||h("$t("),this.nestingSuffix=c.nestingSuffix?h(c.nestingSuffix):c.nestingSuffixEscaped||h(")"),this.resetRegExp()},b.prototype.reset=function(){this.options&&this.init(this.options)},b.prototype.resetRegExp=function(){var a=this.prefix+"(.+?)"+this.suffix;this.regexp=new RegExp(a,"g");var b=""+this.prefix+this.unescapePrefix+"(.+?)"+this.unescapeSuffix+this.suffix;this.regexpUnescape=new RegExp(b,"g");var c=this.nestingPrefix+"(.+?)"+this.nestingSuffix;this.nestingRegexp=new RegExp(c,"g")},b.prototype.interpolate=function(b,c,d){function e(a){return a.replace(/\$/g,"$$$$")}var g=this,h=void 0,i=void 0,j=function(a){if(a.indexOf(g.formatSeparator)<0)return f(c,a);var b=a.split(g.formatSeparator),e=b.shift().trim(),h=b.join(g.formatSeparator).trim();return g.format(f(c,e),h,d)};for(this.resetRegExp();h=this.regexpUnescape.exec(b);)i=j(h[1].trim()),b=b.replace(h[0],i),this.regexpUnescape.lastIndex=0;for(;h=this.regexp.exec(b);)i=j(h[1].trim()),"string"!=typeof i&&(i=a(i)),i||(this.logger.warn("missed to pass in variable "+h[1]+" for interpolating "+b),i=""),i=e(this.escapeValue?this.escape(i):i),b=b.replace(h[0],i),this.regexp.lastIndex=0;return b},b.prototype.nest=function(b,c){function d(a){if(a.indexOf(",")<0)return a;var b=a.split(",");a=b.shift();var c=b.join(",");c=this.interpolate(c,h),c=c.replace(/'/g,'"');try{h=JSON.parse(c)}catch(d){this.logger.error("failed parsing options string in nesting for key "+a,d)}return a}var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},f=void 0,g=void 0,h=w({},e);for(h.applyPostProcessor=!1;f=this.nestingRegexp.exec(b);){if(g=c(d.call(this,f[1].trim()),h),g&&f[0]===b&&"string"!=typeof g)return g;"string"!=typeof g&&(g=a(g)),g||(this.logger.warn("missed to resolve "+f[1]+" for nesting "+b),g=""),b=b.replace(f[0],g),this.regexp.lastIndex=0}return b},b}(),O=function(a){function b(c,d,e){var f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};v(this,b);var g=y(this,a.call(this));return g.backend=c,g.store=d,g.services=e,g.options=f,g.logger=D.create("backendConnector"),g.state={},g.queue=[],g.backend&&g.backend.init&&g.backend.init(e,f.backend,f),g}return x(b,a),b.prototype.queueLoad=function(a,b,c){var d=this,e=[],f=[],g=[],h=[];return a.forEach(function(a){var c=!0;b.forEach(function(b){var g=a+"|"+b;d.store.hasResourceBundle(a,b)?d.state[g]=2:d.state[g]<0||(1===d.state[g]?f.indexOf(g)<0&&f.push(g):(d.state[g]=1,c=!1,f.indexOf(g)<0&&f.push(g),e.indexOf(g)<0&&e.push(g),h.indexOf(b)<0&&h.push(b)))}),c||g.push(a)}),(e.length||f.length)&&this.queue.push({pending:f,loaded:{},errors:[],callback:c}),{toLoad:e,pending:f,toLoadLanguages:g,toLoadNamespaces:h}},b.prototype.loaded=function(a,b,c){var d=this,f=a.split("|"),g=z(f,2),h=g[0],i=g[1];b&&this.emit("failedLoading",h,i,b),c&&this.store.addResourceBundle(h,i,c),this.state[a]=b?-1:2,this.queue.forEach(function(c){e(c.loaded,[h],i),q(c.pending,a),b&&c.errors.push(b),0!==c.pending.length||c.done||(d.emit("loaded",c.loaded),c.done=!0,c.errors.length?c.callback(c.errors):c.callback())}),this.queue=this.queue.filter(function(a){return!a.done})},b.prototype.read=function(a,b,c){var d=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,e=this,f=arguments.length>4&&void 0!==arguments[4]?arguments[4]:250,g=arguments[5];return a.length?this.backend[c](a,b,function(h,i){return h&&i&&d<5?void setTimeout(function(){e.read.call(e,a,b,c,d+1,2*f,g)},f):void g(h,i)}):g(null,{})},b.prototype.load=function(a,b,c){var d=this;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),c&&c();var e=w({},this.backend.options,this.options.backend);"string"==typeof a&&(a=this.services.languageUtils.toResolveHierarchy(a)),"string"==typeof b&&(b=[b]);var g=this.queueLoad(a,b,c);return g.toLoad.length?void(e.allowMultiLoading&&this.backend.readMulti?this.read(g.toLoadLanguages,g.toLoadNamespaces,"readMulti",null,null,function(a,b){a&&d.logger.warn("loading namespaces "+g.toLoadNamespaces.join(", ")+" for languages "+g.toLoadLanguages.join(", ")+" via multiloading failed",a),!a&&b&&d.logger.log("successfully loaded namespaces "+g.toLoadNamespaces.join(", ")+" for languages "+g.toLoadLanguages.join(", ")+" via multiloading",b),g.toLoad.forEach(function(c){var e=c.split("|"),g=z(e,2),h=g[0],i=g[1],j=f(b,[h,i]);if(j)d.loaded(c,a,j);else{var k="loading namespace "+i+" for language "+h+" via multiloading failed";d.loaded(c,k),d.logger.error(k)}})}):g.toLoad.forEach(function(a){d.loadOne(a)})):(g.pending.length||c(),null)},b.prototype.reload=function(a,b){var c=this;this.backend||this.logger.warn("No backend was added via i18next.use. Will not load resources.");var d=w({},this.backend.options,this.options.backend);"string"==typeof a&&(a=this.services.languageUtils.toResolveHierarchy(a)),"string"==typeof b&&(b=[b]),d.allowMultiLoading&&this.backend.readMulti?this.read(a,b,"readMulti",null,null,function(d,e){d&&c.logger.warn("reloading namespaces "+b.join(", ")+" for languages "+a.join(", ")+" via multiloading failed",d),!d&&e&&c.logger.log("successfully reloaded namespaces "+b.join(", ")+" for languages "+a.join(", ")+" via multiloading",e),a.forEach(function(a){b.forEach(function(b){var g=f(e,[a,b]);if(g)c.loaded(a+"|"+b,d,g);else{var h="reloading namespace "+b+" for language "+a+" via multiloading failed";c.loaded(a+"|"+b,h),c.logger.error(h)}})})}):a.forEach(function(a){b.forEach(function(b){c.loadOne(a+"|"+b,"re")})})},b.prototype.loadOne=function(a){var b=this,c=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",d=a.split("|"),e=z(d,2),f=e[0],g=e[1];this.read(f,g,"read",null,null,function(d,e){d&&b.logger.warn(c+"loading namespace "+g+" for language "+f+" failed",d),!d&&e&&b.logger.log(c+"loaded namespace "+g+" for language "+f,e),b.loaded(a,d,e)})},b.prototype.saveMissing=function(a,b,c,d){this.backend&&this.backend.create&&this.backend.create(a,b,c,d),a&&a[0]&&this.store.addResource(a[0],b,c,d)},b}(E),P=function(a){function b(c,d,e){var f=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};v(this,b);var g=y(this,a.call(this));return g.cache=c,g.store=d,g.services=e,g.options=f,g.logger=D.create("cacheConnector"),g.cache&&g.cache.init&&g.cache.init(e,f.cache,f),g}return x(b,a),b.prototype.load=function(a,b,c){var d=this;if(!this.cache)return c&&c();var e=w({},this.cache.options,this.options.cache),f="string"==typeof a?this.services.languageUtils.toResolveHierarchy(a):a;e.enabled?this.cache.load(f,function(a,b){if(a&&d.logger.error("loading languages "+f.join(", ")+" from cache failed",a),b)for(var e in b)if(Object.prototype.hasOwnProperty.call(b,e))for(var g in b[e])if(Object.prototype.hasOwnProperty.call(b[e],g)&&"i18nStamp"!==g){var h=b[e][g];h&&d.store.addResourceBundle(e,g,h)}c&&c()}):c&&c()},b.prototype.save=function(){this.cache&&this.options.cache&&this.options.cache.enabled&&this.cache.save(this.store.data)},b}(E),Q=function(a){function b(){var c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},d=arguments[1];v(this,b);var e=y(this,a.call(this));if(e.options=s(c),e.services={},e.logger=D,e.modules={external:[]},d&&!e.isInitialized&&!c.isClone){var f;if(!e.options.initImmediate)return f=e.init(c,d),y(e,f);setTimeout(function(){e.init(c,d)},0)}return e}return x(b,a),b.prototype.init=function(a,b){function c(a){return a?"function"==typeof a?new a:a:null}var d=this;if("function"==typeof a&&(b=a,a={}),a||(a={}),"v1"===a.compatibilityAPI?this.options=w({},r(),s(k(a)),{}):"v1"===a.compatibilityJSON?this.options=w({},r(),s(l(a)),{}):this.options=w({},r(),this.options,s(a)),this.format=this.options.interpolation.format,b||(b=t),!this.options.isClone){this.modules.logger?D.init(c(this.modules.logger),this.options):D.init(null,this.options);var e=new J(this.options);this.store=new G(this.options.resources,this.options);var f=this.services;f.logger=D,f.resourceStore=this.store,f.resourceStore.on("added removed",function(a,b){f.cacheConnector.save()}),f.languageUtils=e,f.pluralResolver=new M(e,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),f.interpolator=new N(this.options),f.backendConnector=new O(c(this.modules.backend),f.resourceStore,f,this.options),f.backendConnector.on("*",function(a){for(var b=arguments.length,c=Array(b>1?b-1:0),e=1;e1?b-1:0),e=1;e1?b-1:0),e=1;e0&&void 0!==arguments[0]?arguments[0]:t;if(this.options.resources)b(null);else{if(this.language&&"cimode"===this.language.toLowerCase())return b();var c=[],d=function(b){if(b){var d=a.services.languageUtils.toResolveHierarchy(b);d.forEach(function(a){c.indexOf(a)<0&&c.push(a)})}};if(this.language)d(this.language);else{var e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.forEach(function(a){return d(a)})}this.options.preload&&this.options.preload.forEach(function(a){return d(a)}),this.services.cacheConnector.load(c,this.options.ns,function(){a.services.backendConnector.load(c,a.options.ns,b)})}},b.prototype.reloadResources=function(a,b){a||(a=this.languages),b||(b=this.options.ns),this.services.backendConnector.reload(a,b)},b.prototype.use=function(a){return"backend"===a.type&&(this.modules.backend=a),"cache"===a.type&&(this.modules.cache=a),("logger"===a.type||a.log&&a.warn&&a.error)&&(this.modules.logger=a),"languageDetector"===a.type&&(this.modules.languageDetector=a),"postProcessor"===a.type&&H.addPostProcessor(a),"3rdParty"===a.type&&this.modules.external.push(a),this},b.prototype.changeLanguage=function(a,b){var c=this,d=function(a,d){d&&(c.emit("languageChanged",d),c.logger.log("languageChanged",d)),b&&b(a,function(){return c.t.apply(c,arguments)})},e=function(a){a&&(c.language=a,c.languages=c.services.languageUtils.toResolveHierarchy(a),c.translator.changeLanguage(a),c.services.languageDetector&&c.services.languageDetector.cacheUserLanguage(a)),c.loadResources(function(b){d(b,a)})};a||!this.services.languageDetector||this.services.languageDetector.async?!a&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(e):e(a):e(this.services.languageDetector.detect())},b.prototype.getFixedT=function(a,b){var c=this,d=function e(a){var b=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},d=w({},b);return d.lng=d.lng||e.lng,d.lngs=d.lngs||e.lngs,d.ns=d.ns||e.ns,c.t(a,d)};return"string"==typeof a?d.lng=a:d.lngs=a,d.ns=b,d},b.prototype.t=function(){var a;return this.translator&&(a=this.translator).translate.apply(a,arguments)},b.prototype.exists=function(){var a;return this.translator&&(a=this.translator).exists.apply(a,arguments)},b.prototype.setDefaultNamespace=function(a){this.options.defaultNS=a},b.prototype.loadNamespaces=function(a,b){var c=this;return this.options.ns?("string"==typeof a&&(a=[a]),a.forEach(function(a){c.options.ns.indexOf(a)<0&&c.options.ns.push(a)}),void this.loadResources(b)):b&&b()},b.prototype.loadLanguages=function(a,b){"string"==typeof a&&(a=[a]);var c=this.options.preload||[],d=a.filter(function(a){return c.indexOf(a)<0});return d.length?(this.options.preload=c.concat(d),void this.loadResources(b)):b()},b.prototype.dir=function(a){if(a||(a=this.languages&&this.languages.length>0?this.languages[0]:this.language),!a)return"rtl";var b=["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"];return b.indexOf(this.services.languageUtils.getLanguagePartFromCode(a))>=0?"rtl":"ltr"},b.prototype.createInstance=function(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},c=arguments[1];return new b(a,c)},b.prototype.cloneInstance=function(){var a=this,c=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t,e=w({},this.options,c,{isClone:!0}),f=new b(e,d),g=["store","services","language"];return g.forEach(function(b){f[b]=a[b]}),f.translator=new I(f.services,f.options),f.translator.on("*",function(a){for(var b=arguments.length,c=Array(b>1?b-1:0),d=1;d0&&a.children.forEach(function(a){b.recursiveUpdateText(a)})},c.prototype.addLocaleLoader=function(){var a=this;Phaser.Loader.prototype.locale=function(b,c,d){var e=this;Array.isArray(c)?d=c:"undefined"!=typeof c&&(a.backend.setLoadPath(c),console.warn("Using loadPath trough load.locale is deprecated, please set it as part of the Plugin config instead!")),i18next.loadLanguages(b,function(){a.started||(a.started=!0,e.game.load.resetLocked=a.wasLoaderLocked)}),d&&i18next.loadNamespaces(d)}},c.prototype.addLocaleFactory=function(){Phaser.GameObjectFactory.prototype.translatedText=function(b,c,d,e,f,g){return void 0===g&&(g=this.world),g.add(new a.TranslatedText(this.game,b,c,d,e,f))},Phaser.GameObjectFactory.prototype.translatedBitmapText=function(b,c,d,e,f,g,h,i){return void 0===i&&(i=this.world),i.add(new a.TranslatedBitmapText(this.game,b,c,d,e,f,g,h))}},c.prototype.addLocaleCreator=function(){Phaser.GameObjectCreator.prototype.translatedText=function(b,c,d,e,f){return new a.TranslatedText(this.game,b,c,d,e,f)},Phaser.GameObjectCreator.prototype.translatedBitmapText=function(b,c,d,e,f,g,h){return new a.TranslatedBitmapText(this.game,b,c,d,e,f,g,h)}},c}(Phaser.Plugin);a.Plugin=b}(PhaserI18n||(PhaserI18n={}));var PhaserI18n;!function(a){var b=function(a){function b(b,c,d,e,f,g,h,i){var j=a.call(this,b,c,d,e,"",g,h)||this;return j._nonTranslated="",j._interpolations={},j._interpolations=i?i:{},j.text=f,j}return __extends(b,a),b.prototype.setTranslationParamameter=function(a,b){this._interpolations[a]=b,this.dirty=!0},b.prototype.clearTranslationParamameter=function(a){a in this._interpolations&&delete this._interpolations[a]},Object.defineProperty(b.prototype,"_text",{get:function(){return i18next.t(this._nonTranslated,this._interpolations)||""},set:function(a){a!==this._nonTranslated&&(this._nonTranslated=a.toString()||"")},enumerable:!0,configurable:!0}),b}(Phaser.BitmapText);a.TranslatedBitmapText=b}(PhaserI18n||(PhaserI18n={}));var PhaserI18n;!function(a){var b=function(a){function b(b,c,d,e,f,g){var h=a.call(this,b,c,d,"",f)||this;return h._nonTranslated="",h._interpolations={},h._interpolations=g?g:{},h.text=e,h}return __extends(b,a),b.prototype.setTranslationParamameter=function(a,b){this._interpolations[a]=b,this.dirty=!0},b.prototype.clearTranslationParamameter=function(a){a in this._interpolations&&delete this._interpolations[a]},Object.defineProperty(b.prototype,"_text",{get:function(){return i18next.t(this._nonTranslated,this._interpolations)||""},set:function(a){a!==this._nonTranslated&&(this._nonTranslated=a.toString()||"")},enumerable:!0,configurable:!0}),b}(Phaser.Text);a.TranslatedText=b}(PhaserI18n||(PhaserI18n={})); \ No newline at end of file diff --git a/vex8/patch/cdn/phaser/phaser-spine.min.js b/vex8/patch/cdn/phaser/phaser-spine.min.js new file mode 100644 index 000000000..237ddae84 --- /dev/null +++ b/vex8/patch/cdn/phaser/phaser-spine.min.js @@ -0,0 +1,11 @@ +/*! + * phaser-spine - version 3.0.9 + * Spine plugin for Phaser.io! + * + * OrangeGames + * Build at 10-07-2017 + * Released under MIT License + */ + +var spine={radDeg:180/Math.PI,degRad:Math.PI/180,Float32Array:"undefined"==typeof Float32Array?Array:Float32Array,Uint32Array:"undefined"==typeof Uint32Array?Array:Uint32Array,Uint16Array:"undefined"==typeof Uint16Array?Array:Uint16Array};spine.temp=new spine.Float32Array(2),spine.BoneData=function(a,b){this.name=a,this.parent=b},spine.BoneData.prototype={length:0,x:0,y:0,rotation:0,scaleX:1,scaleY:1,inheritScale:!0,inheritRotation:!0},spine.BlendMode={normal:0,additive:1,multiply:2,screen:3},spine.SlotData=function(a,b){this.name=a,this.boneData=b},spine.SlotData.prototype={r:1,g:1,b:1,a:1,attachmentName:null,blendMode:spine.BlendMode.normal},spine.IkConstraintData=function(a){this.name=a,this.bones=[]},spine.IkConstraintData.prototype={target:null,bendDirection:1,mix:1},spine.TransformConstraintData=function(a){this.name=a},spine.TransformConstraintData.prototype={bone:null,target:null,translateMix:1,x:0,y:0},spine.Bone=function(a,b,c){this.data=a,this.skeleton=b,this.parent=c,this.setToSetupPose()},spine.Bone.yDown=!1,spine.Bone.prototype={x:0,y:0,rotation:0,scaleX:1,scaleY:1,a:0,b:0,worldX:0,c:0,d:0,worldY:0,worldSignX:1,worldSignY:1,update:function(){this.updateWorldTransform(this.x,this.y,this.rotation,this.scaleX,this.scaleY)},updateWorldTransformWith:function(){this.updateWorldTransform(this.x,this.y,this.rotation,this.scaleX,this.scaleY)},updateWorldTransform:function(a,b,c,d,e){this.appliedRotation=c,this.appliedScaleX=d,this.appliedScaleY=e,c*=spine.degRad;var f=Math.cos(c),g=Math.sin(c),h=f*d,i=-g*e,j=g*d,k=f*e,l=this.parent;if(!l){var m=this.skeleton;return m.flipX&&(a=-a,h=-h,i=-i),m.flipY!=spine.Bone.yDown&&(b=-b,j=-j,k=-k),this.a=h,this.b=i,this.c=j,this.d=k,this.worldX=a,this.worldY=b,this.worldSignX=d<0?-1:1,void(this.worldSignY=e<0?-1:1)}var n=l.a,o=l.b,p=l.c,q=l.d;if(this.worldX=n*a+o*b+l.worldX,this.worldY=p*a+q*b+l.worldY,this.worldSignX=l.worldSignX*(d<0?-1:1),this.worldSignY=l.worldSignY*(e<0?-1:1),this.data.inheritRotation&&this.data.inheritScale)this.a=n*h+o*j,this.b=n*i+o*k,this.c=p*h+q*j,this.d=p*i+q*k;else{if(this.data.inheritRotation){n=1,o=0,p=0,q=1;do{c=l.appliedRotation*spine.degRad,f=Math.cos(c),g=Math.sin(c);var r=n*f+o*g;if(o=n*-g+o*f,n=r,r=p*f+q*g,q=p*-g+q*f,p=r,!l.data.inheritRotation)break;l=l.parent}while(l);this.a=n*h+o*j,this.b=n*i+o*k,this.c=p*h+q*j,this.d=p*i+q*k}else if(this.data.inheritScale){n=1,o=0,p=0,q=1;do{c=l.appliedRotation*spine.degRad,f=Math.cos(c),g=Math.sin(c);var s=l.appliedScaleX,t=l.appliedScaleY,u=f*s,v=-g*t,w=g*s,x=f*t,r=n*u+o*w;if(o=n*v+o*x,n=r,r=p*u+q*w,q=p*v+q*x,p=r,s<0&&(c=-c),f=Math.cos(-c),g=Math.sin(-c),r=n*f+o*g,o=n*-g+o*f,n=r,r=p*f+q*g,q=p*-g+q*f,p=r,!l.data.inheritScale)break;l=l.parent}while(l);this.a=n*h+o*j,this.b=n*i+o*k,this.c=p*h+q*j,this.d=p*i+q*k}else this.a=h,this.b=i,this.c=j,this.d=k;this.skeleton.flipX&&(this.a=-this.a,this.b=-this.b),this.skeleton.flipY!=spine.Bone.yDown&&(this.c=-this.c,this.d=-this.d)}},setToSetupPose:function(){var a=this.data;this.x=a.x,this.y=a.y,this.rotation=a.rotation,this.scaleX=a.scaleX,this.scaleY=a.scaleY},getWorldRotationX:function(){return Math.atan2(this.c,this.a)*spine.radDeg},getWorldRotationY:function(){return Math.atan2(this.d,this.b)*spine.radDeg},getWorldScaleX:function(){return Math.sqrt(this.a*this.a+this.b*this.b)*this.worldSignX},getWorldScaleY:function(){return Math.sqrt(this.c*this.c+this.d*this.d)*this.worldSignY},worldToLocal:function(a){var b=a[0]-this.worldX,c=a[1]-this.worldY,d=this.a,e=this.b,f=this.c,g=this.d,h=1/(d*g-e*f);return a[0]=b*g*h-c*e*h,a[1]=c*d*h-b*f*h,a},localToWorld:function(a){var b=a[0],c=a[1];return a[0]=b*this.a+c*this.b+this.worldX,a[1]=b*this.c+c*this.d+this.worldY,a}},spine.Slot=function(a,b){this.data=a,this.bone=b,this.attachmentVertices=new spine.Float32Array,this.setToSetupPose()},spine.Slot.prototype={r:1,g:1,b:1,a:1,_attachmentTime:0,attachment:null,setAttachment:function(a){this.attachment!=a&&(this.attachment=a,this._attachmentTime=this.bone.skeleton.time,this.attachmentVertices.length=0)},setAttachmentTime:function(a){this._attachmentTime=this.bone.skeleton.time-a},getAttachmentTime:function(){return this.bone.skeleton.time-this._attachmentTime},setToSetupPose:function(){var a=this.data;if(this.r=a.r,this.g=a.g,this.b=a.b,this.a=a.a,a.attachmentName){for(var b=this.bone.skeleton.data.slots,c=0,d=b.length;c180?g-=360:g<-180&&(g+=360),a.updateWorldTransform(a.x,a.y,f+(g-f)*d,a.appliedScaleX,a.appliedScaleY)},spine.IkConstraint.apply2=function(a,b,c,d,e,f){if(0!=f){var g,h,i,j=a.x,k=a.y,l=a.appliedScaleX,m=a.appliedScaleY;l<0?(l=-l,g=180,i=-1):(g=0,i=1),m<0&&(m=-m,i=-i);var n=b.x,o=b.y,p=b.appliedScaleX,q=Math.abs(l-m)<=1e-4;q||0==o||(b.worldX=a.a*n+a.worldX,b.worldY=a.c*n+a.worldY,o=0),p<0?(p=-p,h=180):h=0;var r,s,t,u,v=a.parent;if(v){var w=v.a,x=v.b,y=v.c,z=v.d,A=1/(w*z-x*y),B=v.worldX,C=v.worldY,D=c-B,E=d-C;r=(D*z-E*x)*A-j,s=(E*w-D*y)*A-k,D=b.worldX-B,E=b.worldY-C,t=(D*z-E*x)*A-j,u=(E*w-D*y)*A-k}else r=c-j,s=d-k,t=b.worldX-j,u=b.worldY-k;var F,G,H=Math.sqrt(t*t+u*u),I=b.data.length*p;a:if(q){I*=l;var J=(r*r+s*s-H*H-I*I)/(2*H*I);J<-1?J=-1:J>1&&(J=1),G=Math.acos(J)*e;var w=H+I*J,K=I*Math.sin(G);F=Math.atan2(s*w-r*K,r*w+s*K)}else{var w=l*I,x=m*I,L=Math.atan2(s,r),M=w*w,N=x*x,O=H*H,P=r*r+s*s,Q=N*O+M*P-M*N,R=-2*N*H,S=N-M,z=R*R-4*S*Q;if(z>=0){var T=Math.sqrt(z);R<0&&(T=-T),T=-(R+T)/2;var U=T/S,V=Q/T,W=Math.abs(U)aa&&(_=0,aa=da,ba=D),D=H-w,da=D*D,daaa&&(_=ea,aa=da,ba=D,ca=E),P<=(Y+aa)/2?(F=L-Math.atan2($*e,Z),G=X*e):(F=L-Math.atan2(ca*e,ba),G=_*e)}var fa=Math.atan2(o,n)*i;F=(F-fa)*spine.radDeg+g,G=(G+fa)*spine.radDeg*i+h,F>180?F-=360:F<-180&&(F+=360),G>180?G-=360:G<-180&&(G+=360);var ga=a.rotation;a.updateWorldTransform(j,k,ga+(F-ga)*f,a.appliedScaleX,a.appliedScaleY),ga=b.rotation,b.updateWorldTransform(n,o,ga+(G-ga)*f,b.appliedScaleX,b.appliedScaleY)}},spine.TransformConstraint=function(a,b){this.data=a,this.translateMix=a.translateMix,this.x=a.x,this.y=a.y,this.bone=b.findBone(a.bone.name),this.target=b.findBone(a.target.name)},spine.TransformConstraint.prototype={apply:function(){this.update()},update:function(){var a=this.translateMix;if(a>0){var b=spine.temp;b[0]=x,b[1]=y,this.target.localToWorld(b);var c=this.bone;c.worldX+=(b[0]-c.worldX)*a,c.worldY+=(b[1]-c.worldY)*a}}},spine.Skin=function(a){this.name=a,this.attachments={}},spine.Skin.prototype={addAttachment:function(a,b,c){this.attachments[a+":"+b]=c},getAttachment:function(a,b){return this.attachments[a+":"+b]},_attachAll:function(a,b){for(var c in b.attachments){var d=c.indexOf(":"),e=parseInt(c.substring(0,d)),f=c.substring(d+1),g=a.slots[e];if(g.attachment&&g.attachment.name==f){var h=this.getAttachment(e,f);h&&g.setAttachment(h)}}}},spine.Animation=function(a,b,c){this.name=a,this.timelines=b,this.duration=c},spine.Animation.prototype={apply:function(a,b,c,d,e){d&&0!=this.duration&&(c%=this.duration,b>0&&(b%=this.duration));for(var f=this.timelines,g=0,h=f.length;g0&&(b%=this.duration));for(var g=this.timelines,h=0,i=g.length;h>>1;;){if(a[(f+1)*c]<=b?d=f+1:e=f,d==e)return(d+1)*c;f=d+e>>>1}},spine.Animation.binarySearch1=function(a,b){var c=0,d=a.length-2;if(!d)return 1;for(var e=d>>>1;;){if(a[e+1]<=b?c=e+1:d=e,c==d)return c+1;e=c+d>>>1}},spine.Animation.linearSearch=function(a,b,c){for(var d=0,e=a.length-c;d<=e;d+=c)if(a[d]>b)return d;return-1},spine.Curves=function(a){var b=19*(a-1);this.curves=new spine.Float32Array(b),this.curves.length=b},spine.Curves.prototype={setLinear:function(a){this.curves[19*a]=0},setStepped:function(a){this.curves[19*a]=1},setCurve:function(a,b,c,d,e){var f=.1,g=f*f,h=g*f,i=3*f,j=3*g,k=6*g,l=6*h,m=2*-b+d,n=2*-c+e,o=3*(b-d)+1,p=3*(c-e)+1,q=b*i+m*j+o*h,r=c*i+n*j+p*h,s=m*k+o*l,t=n*k+p*l,u=o*l,v=p*l,w=19*a,x=this.curves;x[w++]=2;for(var y=q,z=r,A=w+19-1;w1?1:b;var c=this.curves,d=19*a,e=c[d];if(0===e)return b;if(1==e)return 0;d++;for(var f=0,g=d,h=d+19-1;d=b){var i,j;return d==g?(i=0,j=0):(i=c[d-2],j=c[d-1]),j+(c[d+1]-j)*(b-i)/(f-i)}var k=c[d-1];return k+(1-k)*(b-f)/(1-f)}},spine.RotateTimeline=function(a){this.curves=new spine.Curves(a),this.frames=new spine.Float32Array(2*a),this.frames.length=2*a},spine.RotateTimeline.prototype={boneIndex:0,getFrameCount:function(){return this.frames.length/2},setFrame:function(a,b,c){a*=2,this.frames[a]=b,this.frames[a+1]=c},apply:function(a,b,c,d,e){var f=this.frames;if(!(c=f[f.length-2]){for(var h=g.data.rotation+f[f.length-1]-g.rotation;h>180;)h-=360;for(;h<-180;)h+=360;return void(g.rotation+=h*e)}var i=spine.Animation.binarySearch(f,c,2),j=f[i-1],k=f[i],l=1-(c-k)/(f[i-2]-k);l=this.curves.getCurvePercent(i/2-1,l);for(var h=f[i+1]-j;h>180;)h-=360;for(;h<-180;)h+=360;for(h=g.data.rotation+(j+h*l)-g.rotation;h>180;)h-=360;for(;h<-180;)h+=360;g.rotation+=h*e}}},spine.TranslateTimeline=function(a){this.curves=new spine.Curves(a),this.frames=new spine.Float32Array(3*a),this.frames.length=3*a},spine.TranslateTimeline.prototype={boneIndex:0,getFrameCount:function(){return this.frames.length/3},setFrame:function(a,b,c,d){a*=3,this.frames[a]=b,this.frames[a+1]=c,this.frames[a+2]=d},apply:function(a,b,c,d,e){var f=this.frames;if(!(c=f[f.length-3])return g.x+=(g.data.x+f[f.length-2]-g.x)*e,void(g.y+=(g.data.y+f[f.length-1]-g.y)*e);var h=spine.Animation.binarySearch(f,c,3),i=f[h-2],j=f[h-1],k=f[h],l=1-(c-k)/(f[h+-3]-k);l=this.curves.getCurvePercent(h/3-1,l),g.x+=(g.data.x+i+(f[h+1]-i)*l-g.x)*e,g.y+=(g.data.y+j+(f[h+2]-j)*l-g.y)*e}}},spine.ScaleTimeline=function(a){this.curves=new spine.Curves(a),this.frames=new spine.Float32Array(3*a),this.frames.length=3*a},spine.ScaleTimeline.prototype={boneIndex:0,getFrameCount:function(){return this.frames.length/3},setFrame:function(a,b,c,d){a*=3,this.frames[a]=b,this.frames[a+1]=c,this.frames[a+2]=d},apply:function(a,b,c,d,e){var f=this.frames;if(!(c=f[f.length-3])return g.scaleX+=(g.data.scaleX*f[f.length-2]-g.scaleX)*e,void(g.scaleY+=(g.data.scaleY*f[f.length-1]-g.scaleY)*e);var h=spine.Animation.binarySearch(f,c,3),i=f[h-2],j=f[h-1],k=f[h],l=1-(c-k)/(f[h+-3]-k);l=this.curves.getCurvePercent(h/3-1,l),g.scaleX+=(g.data.scaleX*(i+(f[h+1]-i)*l)-g.scaleX)*e,g.scaleY+=(g.data.scaleY*(j+(f[h+2]-j)*l)-g.scaleY)*e}}},spine.ColorTimeline=function(a){this.curves=new spine.Curves(a),this.frames=new spine.Float32Array(5*a),this.frames.length=5*a},spine.ColorTimeline.prototype={slotIndex:0,getFrameCount:function(){return this.frames.length/5},setFrame:function(a,b,c,d,e,f){a*=5,this.frames[a]=b,this.frames[a+1]=c,this.frames[a+2]=d,this.frames[a+3]=e,this.frames[a+4]=f},apply:function(a,b,c,d,e){var f=this.frames;if(!(c=f[f.length-5]){var k=f.length-1;g=f[k-3],h=f[k-2],i=f[k-1],j=f[k]}else{var l=spine.Animation.binarySearch(f,c,5),m=f[l-4],n=f[l-3],o=f[l-2],p=f[l-1],q=f[l],r=1-(c-q)/(f[l-5]-q);r=this.curves.getCurvePercent(l/5-1,r),g=m+(f[l+1]-m)*r,h=n+(f[l+2]-n)*r,i=o+(f[l+3]-o)*r,j=p+(f[l+4]-p)*r}var s=a.slots[this.slotIndex];e<1?(s.r+=(g-s.r)*e,s.g+=(h-s.g)*e,s.b+=(i-s.b)*e,s.a+=(j-s.a)*e):(s.r=g,s.g=h,s.b=i,s.a=j)}}},spine.AttachmentTimeline=function(a){this.curves=new spine.Curves(a),this.frames=new spine.Float32Array(a),this.frames.length=a,this.attachmentNames=[],this.attachmentNames.length=a},spine.AttachmentTimeline.prototype={slotIndex:0,getFrameCount:function(){return this.frames.length},setFrame:function(a,b,c){this.frames[a]=b,this.attachmentNames[a]=c},apply:function(a,b,c,d,e){var f=this.frames;if(cc&&this.apply(a,b,Number.MAX_VALUE,null,0));b>c&&(b=-1);var g=c>=f[f.length-1]?f.length-1:spine.Animation.binarySearch1(f,c)-1;if(!(f[g]c)this.apply(a,b,Number.MAX_VALUE,d,e),b=-1;else if(b>=f[g-1])return;if(!(c0&&f[h-1]==i;)h--}for(var j=this.events;h=f[h];h++)d[d.length]=j[h]}}}},spine.DrawOrderTimeline=function(a){this.frames=new spine.Float32Array(a),this.frames.length=a,this.drawOrders=[],this.drawOrders.length=a},spine.DrawOrderTimeline.prototype={getFrameCount:function(){return this.frames.length},setFrame:function(a,b,c){this.frames[a]=b,this.drawOrders[a]=c},apply:function(a,b,c,d,e){var f=this.frames;if(!(c=f[f.length-1]?f.length-1:spine.Animation.binarySearch1(f,c)-1;var h=a.drawOrder,i=a.slots,j=this.drawOrders[g];if(j)for(var k=0,l=j.length;k=h[h.length-1]){var l=i[h.length-1];if(e<1)for(var m=0;m1?1:p);var q=i[n-1],r=i[n];if(e<1)for(var m=0;m=f[f.length-3])return g.mix+=(f[f.length-2]-g.mix)*e,void(g.bendDirection=f[f.length-1]);var h=spine.Animation.binarySearch(f,c,3),i=f[h+-2],j=f[h],k=1-(c-j)/(f[h+-3]-j);k=this.curves.getCurvePercent(h/3-1,k);var l=i+(f[h+1]-i)*k;g.mix+=(l-g.mix)*e,g.bendDirection=f[h+-1]}}},spine.SkeletonData=function(){this.bones=[],this.slots=[],this.skins=[],this.events=[],this.animations=[],this.ikConstraints=[],this.transformConstraints=[]},spine.SkeletonData.prototype={name:null,defaultSkin:null,width:0,height:0,version:null,hash:null,findBone:function(a){for(var b=this.bones,c=0,d=b.length;c=0;j--){var m=b[j];if(m==l.bone||m==l.target){b.splice(j+1,0,l);break}}},updateWorldTransform:function(){for(var a=this.cache,b=0,c=a.length;b=0&&this.setCurrent(b,e)):!c.loop&&c.lastTime>=c.endTime&&this.clearTrack(b)}}},apply:function(a){for(var b=0;bf&&(d=f);var h=c.previous;if(h){var i=h.time;!h.loop&&i>h.endTime&&(i=h.endTime),h.animation.apply(a,i,i,h.loop,null);var j=c.mixTime/c.mixDuration*c.mix;j>=1&&(j=1,c.previous=null),c.animation.mix(a,c.lastTime,d,g,this.events,j)}else 1==c.mix?c.animation.apply(a,c.lastTime,d,g,this.events):c.animation.mix(a,c.lastTime,d,g,this.events,c.mix);for(var k=0,l=this.events.length;kd%f:e=f){var n=Math.floor(d/f);c.onComplete&&c.onComplete(b,n),this.onComplete&&this.onComplete(b,n)}c.lastTime=c.time}}},clearTracks:function(){for(var a=0,b=this.tracks.length;a=this.tracks.length)){var b=this.tracks[a];b&&(b.onEnd&&b.onEnd(a),this.onEnd&&this.onEnd(a),this.tracks[a]=null)}},_expandToIndex:function(a){if(a=this.tracks.length;)this.tracks[this.tracks.length]=null;return null},setCurrent:function(a,b){var c=this._expandToIndex(a);if(c){var d=c.previous;c.previous=null,c.onEnd&&c.onEnd(a),this.onEnd&&this.onEnd(a),b.mixDuration=this.data.getMix(c.animation,b.animation),b.mixDuration>0&&(b.mixTime=0,d&&c.mixTime/c.mixDuration<.5?b.previous=d:b.previous=c)}this.tracks[a]=b,b.onStart&&b.onStart(a),this.onStart&&this.onStart(a)},setAnimationByName:function(a,b,c){var d=this.data.skeletonData.findAnimation(b);if(!d)throw"Animation not found: "+b;return this.setAnimation(a,d,c)},setAnimation:function(a,b,c){var d=new spine.TrackEntry;return d.animation=b,d.loop=c,d.endTime=b.duration,this.setCurrent(a,d),d},addAnimationByName:function(a,b,c,d){var e=this.data.skeletonData.findAnimation(b);if(!e)throw"Animation not found: "+b;return this.addAnimation(a,e,c,d)},addAnimation:function(a,b,c,d){var e=new spine.TrackEntry;e.animation=b,e.loop=c,e.endTime=b.duration;var f=this._expandToIndex(a);if(f){for(;f.next;)f=f.next;f.next=e}else this.tracks[a]=e;return d<=0&&(f?d+=f.endTime-this.data.getMix(f.animation,b):d=0),e.delay=d,e},getCurrent:function(a){return a>=this.tracks.length?null:this.tracks[a]}},spine.SkeletonJson=function(a){this.attachmentLoader=a,this.linkedMeshes=[]},spine.SkeletonJson.prototype={scale:1,readSkeletonData:function(a,b){var c=new spine.SkeletonData;c.name=b;var d=a.skeleton;d&&(c.hash=d.hash,c.version=d.spine,c.width=d.width||0,c.height=d.height||0);for(var e=a.bones,f=0,g=e.length;f=0;T--)Y[T]=4294967295;var Z=X.offsets,$=new spine.Uint32Array(W-Z.length);$.length=W-Z.length;for(var _=0,aa=0,T=0,S=Z.length;T=0;T--)4294967295==Y[T]&&(Y[T]=$[--aa])}l.setFrame(m++,X.time,Y)}d[d.length]=l,e=Math.max(e,l.frames[l.getFrameCount()-1])}var ca=b.events;if(ca){for(var l=new spine.EventTimeline(ca.length),m=0,n=0,o=ca.length;n=this.lines.length?null:this.lines[this.index++]},readValue:function(){var a=this.readLine(),b=a.indexOf(":");if(b==-1)throw"Invalid line: "+a;return this.trim(a.substring(b+1))},readTuple:function(a){var b=this.readLine(),c=b.indexOf(":");if(c==-1)throw"Invalid line: "+b;for(var d=0,e=c+1;d<3;d++){var f=b.indexOf(",",e);if(f==-1)break;a[d]=this.trim(b.substr(e,f-e)),e=f+1}return a[d]=this.trim(b.substring(e)),d+1}},spine.AtlasAttachmentLoader=function(a){this.atlas=a},spine.AtlasAttachmentLoader.prototype={newRegionAttachment:function(a,b,c){var d=this.atlas.findRegion(c);if(!d)throw"Region not found in atlas: "+c+" (region attachment: "+b+")";var e=new spine.RegionAttachment(b);return e.rendererObject=d,e.setUVs(d.u,d.v,d.u2,d.v2,d.rotate),e.regionOffsetX=d.offsetX,e.regionOffsetY=d.offsetY,e.regionWidth=d.width,e.regionHeight=d.height,e.regionOriginalWidth=d.originalWidth,e.regionOriginalHeight=d.originalHeight,e},newMeshAttachment:function(a,b,c){var d=this.atlas.findRegion(c);if(!d)throw"Region not found in atlas: "+c+" (mesh attachment: "+b+")";var e=new spine.MeshAttachment(b);return e.rendererObject=d,e.regionU=d.u,e.regionV=d.v,e.regionU2=d.u2,e.regionV2=d.v2,e.regionRotate=d.rotate,e.regionOffsetX=d.offsetX,e.regionOffsetY=d.offsetY,e.regionWidth=d.width,e.regionHeight=d.height,e.regionOriginalWidth=d.originalWidth,e.regionOriginalHeight=d.originalHeight,e},newWeightedMeshAttachment:function(a,b,c){var d=this.atlas.findRegion(c);if(!d)throw"Region not found in atlas: "+c+" (weighted mesh attachment: "+b+")";var e=new spine.WeightedMeshAttachment(b);return e.rendererObject=d,e.regionU=d.u,e.regionV=d.v,e.regionU2=d.u2,e.regionV2=d.v2,e.regionRotate=d.rotate,e.regionOffsetX=d.offsetX,e.regionOffsetY=d.offsetY,e.regionWidth=d.width,e.regionHeight=d.height,e.regionOriginalWidth=d.originalWidth,e.regionOriginalHeight=d.originalHeight,e},newBoundingBoxAttachment:function(a,b){return new spine.BoundingBoxAttachment(b)}},spine.SkeletonBounds=function(){this.polygonPool=[],this.polygons=[],this.boundingBoxes=[]},spine.SkeletonBounds.prototype={minX:0,minY:0,maxX:0,maxY:0,update:function(a,b){var c=a.slots,d=c.length,e=a.x,f=a.y,g=this.boundingBoxes,h=this.polygonPool,i=this.polygons;g.length=0;for(var j=0,k=i.length;j0?(n=h[o-1],h.splice(o-1,1)):n=new spine.Float32Array,i[i.length]=n,n.length=m.vertices.length,m.computeWorldVertices(e,f,l.bone,n)}}b&&this.aabbCompute()},aabbCompute:function(){for(var a=this.polygons,b=Number.MAX_VALUE,c=Number.MAX_VALUE,d=-Number.MAX_VALUE,e=-Number.MAX_VALUE,f=0,g=a.length;f=this.minX&&a<=this.maxX&&b>=this.minY&&b<=this.maxY},aabbIntersectsSegment:function(a,b,c,d){var e=this.minX,f=this.minY,g=this.maxX,h=this.maxY;if(a<=e&&c<=e||b<=f&&d<=f||a>=g&&c>=g||b>=h&&d>=h)return!1;var i=(d-b)/(c-a),j=i*(e-a)+b;if(j>f&&jf&&je&&ke&&ka.minX&&this.minYa.minY},containsPoint:function(a,b){for(var c=this.polygons,d=0,e=c.length;d=c||i=c){var j=a[g];j+(c-h)/(i-h)*(a[e]-j)=j&&s<=m||s>=m&&s<=j)&&(s>=b&&s<=d||s>=d&&s<=b)){var t=(i*q-h*o)/r;if((t>=k&&t<=n||t>=n&&t<=k)&&(t>=c&&t<=e||t>=e&&t<=c))return!0}j=m,k=n}return!1},getPolygon:function(a){var b=this.boundingBoxes.indexOf(a);return b==-1?null:this.polygons[b]},getWidth:function(){return this.maxX-this.minX},getHeight:function(){return this.maxY-this.minY}};var __extends=this&&this.__extends||function(a,b){function c(){this.constructor=a}for(var d in b)b.hasOwnProperty(d)&&(a[d]=b[d]);a.prototype=null===b?Object.create(b):(c.prototype=b.prototype,new c)},PhaserSpine;!function(a){var b=function(b){function c(a,c){var d=b.call(this,a,c)||this;return d.addSpineCache(),d.addSpineFactory(),d.addSpineLoader(),d}return __extends(c,b),c.prototype.addSpineLoader=function(){Phaser.Loader.prototype.spine=function(a,b,c){var d=this,e=a+"Atlas",f={atlas:e,basePath:""===b.substring(0,b.lastIndexOf("/"))?".":b.substring(0,b.lastIndexOf("/")),variants:void 0};void 0===c?c=[""]:f.variants=c,c.forEach(function(a){d.onFileComplete.add(function(b,c){if(c===e){new spine.Atlas(d.game.cache.getText(c),{load:function(b,c,e){d.image(c,f.basePath+"/"+c.substr(0,c.lastIndexOf("."))+a+".png")}})}}),d.text(e,b.substr(0,b.lastIndexOf("."))+a+".atlas")}),this.json(a,b),this.game.cache.addSpine(a,f)}},c.prototype.addSpineFactory=function(){Phaser.GameObjectFactory.prototype.spine=function(b,c,d,e,f){void 0===f&&(f=this.world);var g=new a.Spine(this.game,d,e);return g.setToSetupPose(),g.position.x=b,g.position.y=c,f.add(g)},Phaser.GameObjectCreator.prototype.spine=function(b,c,d,e,f){return new a.Spine(this.game,d,e)}},c.prototype.addSpineCache=function(){Phaser.Cache.prototype.spine={},Phaser.Cache.prototype.addSpine=function(a,b){this.spine[a]=b},Phaser.Cache.prototype.getSpine=function(a){return!this.spine.hasOwnProperty(a),this.spine[a]}},c}(Phaser.Plugin);b.RESOLUTION_REGEXP=/@(.+)x/,a.SpinePlugin=b}(PhaserSpine||(PhaserSpine={})),Phaser.Rope.prototype.postUpdate=function(){},spine.Bone.yDown=!0;var PhaserSpine;!function(a){var b=function(b){function c(c,d,e){var f=b.call(this,c)||this;f.imageScale=1;var g=f.game.cache.getSpine(d);void 0!==e&&g.variants.indexOf(e)!==-1?f.imageScale=f.getScaleFromVariant(e):g.variants&&g.variants.length>=1&&(f.imageScale=f.getScaleFromVariant(g.variants[0]));var h=new a.SpineTextureLoader(c),i=new spine.Atlas(c.cache.getText(g.atlas),h),j=new spine.AtlasAttachmentLoader(i),k=new spine.SkeletonJson(j);if(f.skeletonData=k.readSkeletonData(c.cache.getJSON(d)),!f.skeletonData)throw new Error("Spine data must be preloaded using Loader.spine");f.onEvent=new Phaser.Signal,f.onComplete=new Phaser.Signal,f.onEnd=new Phaser.Signal,f.skeleton=new spine.Skeleton(f.skeletonData),f.skeleton.updateWorldTransform(),f.stateData=new spine.AnimationStateData(f.skeletonData),f.state=new spine.AnimationState(f.stateData),f.state.onEvent=f.onEvent.dispatch.bind(f.onEvent),f.state.onComplete=f.onComplete.dispatch.bind(f.onComplete),f.state.onEnd=f.onEnd.dispatch.bind(f.onEnd),f.slotContainers=[];for(var l=0,m=f.skeleton.slots.length;l0})},a.prototype.getCookiesForNameSpace=function(){var a=this,b={};return this.getNameSpaceMatches().forEach(function(c){var d=c.replace(a.namespace,"").split("=");b[d[0]]=d[1]}),b},a.prototype.promisefy=function(a){return new Promise(function(b,c){b(a)})},a}();a.CookieStorage=b}(b=a.StorageAdapters||(a.StorageAdapters={}))}(PhaserSuperStorage||(PhaserSuperStorage={}));var PhaserSuperStorage;!function(a){var b;!function(a){var b=function(){function a(){this.namespace="",this.keys=[]}return Object.defineProperty(a.prototype,"forcePromises",{get:function(){return!0},set:function(a){},enumerable:!0,configurable:!0}),Object.defineProperty(a.prototype,"length",{get:function(){return this.keys.length},enumerable:!0,configurable:!0}),a.prototype.key=function(a){return this.promisefy(this.keys[a])},a.prototype.getItem=function(a){var b=this;return new Promise(function(c,d){NativeStorage.getItem(b.namespace+a,function(a){c(a)},function(a){2===a.code?c(null):d(a)})})},a.prototype.setItem=function(a,b){var c=this;return a.length<1?void console.error("CordovaStorage: Key cannot be an empty string!"):new Promise(function(d,e){NativeStorage.setItem(c.namespace+a,b,function(){c.keys.indexOf(a)<0&&(c.keys.push(a),c.save()),d(null)},function(a){e(a)})})},a.prototype.removeItem=function(a){var b=this;return new Promise(function(c,d){NativeStorage.remove(b.namespace+a,function(){var d=b.keys.indexOf(a);d>=0&&(b.keys.splice(d,1),b.save()),c(null)},function(a){d(a)})})},a.prototype.clear=function(){var a=this;return new Promise(function(b,c){for(var d=0,e=0;e=a.keys.length&&(a.keys=[],a.save(),b(null))},function(a){c(a)})})},a.prototype.setNamespace=function(a){var b=this;return void 0===a&&(a=""),this.namespace=a+":",this.keys=[],new Promise(function(a,c){b.load().then(a).catch(a)})},a.prototype.promisefy=function(a){return new Promise(function(b,c){b(a)})},a.prototype.load=function(){var a=this;return new Promise(function(b,c){NativeStorage.getItem(a.namespace,function(c){a.keys=JSON.parse(c),b(null)},function(a){c(a)})})},a.prototype.save=function(){NativeStorage.setItem(this.namespace,JSON.stringify(this.keys),function(){},function(a){console.warn("CordovaStorage: Failed to save keys of namespace.")})},a}();a.CordovaStorage=b}(b=a.StorageAdapters||(a.StorageAdapters={}))}(PhaserSuperStorage||(PhaserSuperStorage={}));var PhaserSuperStorage;!function(a){var b;!function(b){var c=function(){function b(a,b){void 0===a&&(a=""),void 0===b&&(b="*"),this.namespace="",this.expectedOrigin="",this.storageLength=0,this.enabled=!1,""!==a&&this.setNamespace(a),this.expectedOrigin=b}return Object.defineProperty(b.prototype,"forcePromises",{get:function(){return!0},set:function(a){},enumerable:!0,configurable:!0}),Object.defineProperty(b.prototype,"length",{get:function(){return this.storageLength},enumerable:!0,configurable:!0}),b.prototype.init=function(){var b=this;return this.sendMessage({command:a.StorageCommand.init}).then(function(){b.enabled=!0})},b.prototype.key=function(b){return this.sendMessage({command:a.StorageCommand.key,value:b})},b.prototype.getItem=function(b){return this.sendMessage({command:a.StorageCommand.getItem,key:b})},b.prototype.setItem=function(b,c){return this.sendMessage({command:a.StorageCommand.setItem,key:b,value:c})},b.prototype.removeItem=function(b){return this.sendMessage({command:a.StorageCommand.removeItem,key:b})},b.prototype.clear=function(){return this.sendMessage({command:a.StorageCommand.clear})},b.prototype.setNamespace=function(b){return this.sendMessage({command:a.StorageCommand.setNamespace,value:b})},b.prototype.sendMessage=function(b){var c,d=this;b.command===a.StorageCommand.init&&(c=!1);var e=new MessageChannel;return new Promise(function(f,g){d.enabled||b.command===a.StorageCommand.init||g("Messaging not enabled!"),b.command===a.StorageCommand.init&&setTimeout(function(){c||g("Unable to get a response in time")},1e3),e.port1.onmessage=function(b){console.log("Frame received message",b);var e=a.StorageUtils.validateMessage(b.data);switch(e.command===a.StorageCommand.init&&(c=!0),void 0!==e.status&&"ok"===e.status||g(e.value),void 0!==e.length&&(d.storageLength=e.length),e.command){case a.StorageCommand.setNamespace:d.namespace=e.value+":";case a.StorageCommand.getItem:case a.StorageCommand.length:case a.StorageCommand.key:f(e.value);break;case a.StorageCommand.setItem:case a.StorageCommand.removeItem:case a.StorageCommand.clear:case a.StorageCommand.init:f(e.status);break;default:g(e.value)}},(d.enabled||b.command===a.StorageCommand.init)&&(console.log("Sending message to parent: ",b),window.parent.postMessage(b,d.expectedOrigin,[e.port2]))})},b}();b.IframeStorage=c}(b=a.StorageAdapters||(a.StorageAdapters={}))}(PhaserSuperStorage||(PhaserSuperStorage={}));var PhaserSuperStorage;!function(a){var b;!function(b){var c=function(){function b(a){void 0===a&&(a=""),this.namespace="",this.forcePromises=!1,this.setNamespace(a)}return Object.defineProperty(b.prototype,"length",{get:function(){var b=Object.keys(localStorage);return a.StorageUtils.nameSpaceKeyFilter(b,this.namespace).length},enumerable:!0,configurable:!0}),b.prototype.key=function(a){return this.forcePromises?this.promisefy(this._key,arguments):this._key(a)},b.prototype._key=function(b){var c=Object.keys(localStorage),d=a.StorageUtils.nameSpaceKeyFilter(c,this.namespace),e=localStorage.getItem(d[b]);return e},b.prototype.getItem=function(a){return this.forcePromises?this.promisefy(this._getItem,arguments):this._getItem(a)},b.prototype._getItem=function(a){return localStorage.getItem(this.namespace+a)},b.prototype.setItem=function(a,b){return this.forcePromises?this.promisefy(this._setItem,arguments):this._setItem(a,b)},b.prototype._setItem=function(a,b){return localStorage.setItem(this.namespace+a,b)},b.prototype.removeItem=function(a){return this.forcePromises?this.promisefy(this._removeItem,arguments):this._removeItem(a)},b.prototype._removeItem=function(a){return localStorage.removeItem(this.namespace+a)},b.prototype.clear=function(){return this.forcePromises?this.promisefy(this._clear,arguments):this._clear()},b.prototype._clear=function(){for(var b=Object.keys(localStorage),c=a.StorageUtils.nameSpaceKeyFilter(b,this.namespace),d=0;d","(?:>|>)").replace("&","(?:&|&)").replace('"','(?:"|")').replace(/\s+/g,"\\s+")}function x(e,t){for(var n,r,i=0,a=t.length;in&&(r=a.exec(i[n]))?r.index:null}function y(e){for(var t,n,r,i,a,o=[w.location.href],s=document.getElementsByTagName("script"),u=""+e,c=0;c]+)>|([^\)]+))\((.*)\) in (.*):\s*$/i,i=n?n.split("\n"):[],a=[],o=0,s=i.length;o|\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,r=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|ionic|capacitor|app|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,i=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,a=e.stack.split("\n"),o=[],s=/^(.*) is undefined$/.exec(e.message);if(p.Utilities.isReactNative())for(var u,c,l,d=/^(.*@)?.*\/[^\.]+(\.app|CodePush)\/?(.*)/,f=0;f>>0;if(0==i)return-1;var a=0|t;if(i<=a)return-1;for(n=Math.max(0<=a?a:i-Math.abs(a),0);n>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(1>>0;if("function"!=typeof e)throw new TypeError(e+" is not a function");for(1t?e.slice(0,t-"(...)".length)+"(...)":e},getOrigin:function(){return p.location.origin?p.location.origin:p.location.protocol+"//"+p.location.hostname+(p.location.port?":"+p.location.port:"")},resolveFullUrl:function(e){if(e&&0===e.indexOf("//")&&(e=p.location.protocol+e),e&&p.location.pathname&&-1===e.indexOf("://")){var t=this.getOrigin();if(0===e.indexOf("/"))return t+e;var n=p.location.pathname.split("/");return n.pop(),t+n.join("/")+"/"+e}return e},removeFromArray:function(e,t){for(var n=[],r=0;ra.value&&(a.value=o,a.entries=s,i()))}var i,a=c("CLS",0),o=0,s=[],u=l("layout-shift",r);u&&(i=g(n,a,e),d(function(){u.takeRecords().map(r),i(!0)}),f(function(){m=-1,a=c("CLS",o=0),i=g(n,a,e)}))},window.webVitals.getFCP=p,window.webVitals.getFID=function(e,t){function n(e){e.startTimeA3IECT?f_u=Q#R*p2p-6%h3B}!tLm{|ZuwunhD8;1(ic4`V6iSOz zw8*9BocDhB#~pWk&&bGLd+qs5TXXH~Br{f9ON9`h1|JO#jS!-$sEda7DDYvdjf?&8 zPIEUV^l+f|R5JF|gWGxfSi8f}M^lkl}Y{5`wSs8$ouf&4_7nr9tz}Lmu)kDHpn)zRPB_76qr}>!y{}SU;RD9nxr01^NR@e6<+Uc7=J2|-~AkTBps zV1BUZ4z-ieRaE|uy@xYtW(QACHwk`zA0Hn+A0a-tyFI@k7!3Za0|erIkl^+3bM>_L z<#qL7`A35y%){2*(aqBl?h5#;(b@*?i%PFKG`?UD*F~Ijvvv$g|)L11fM0UHrJUXYEjATL+|B*-gfD=Gv7 z3&Ws-f};QE`QP}W3Sy#SV)9}F3W8ukK_w+|K|zq5kcg7Jys)wWSU}_-F2vQt)7sS* z_K$7H2iyPQivFKm2?ckUwI|$N9}ai^rxLUs;GS>~2e=ymB+MrQ;4pG@g~EM2IRCEE zze84pxjTBppvvxW7r?)gEaCXSI3NTQwy^^VgLy$M+(yinS431q^dW9* zVQayM0RGK~{*UDSyHFoy9)fWD#}^5(wHVk=5N6FQBrIUZD=r`m<9$#o%4=;WCS)UE zEiCwOnVJ8=MgG5a^FQk7pQ(r9{5$;bo$+w;-+K$@`mmwgA9haSg_8yv8t`Ee<@9|Q z_bhPQ=?psV;A?FyTN$2uOp(t3&wzM%toY0_xLhaNrK+U*fpLIvfB^;O?;ea}Y1$YH z($Y*c-7;m<$C&bDs!VtgSBU%Yd4AB&(iOaMp-s}m&ZqftLDJe4D|CEpEE~Kdc^_=P z>zPCG7cy6F)hb1Qf%`)4FGxGX|AILX>o1fp@&6+3=*hpNH@G?eqSr|KFCyyx2l3y$ zUUn+W65_Ui=CpuY9V9)ksW$4vSN@W*q^13GCf?DlW8aztysoo)2d8~s)nnhh=CgCy z!6)2G{kZTjwD&Q8-iLSI1;;7dme29yaAeQSF4}wtt1*2Z|E$;Bv3ct+<=e%}niRCu zY#GN+#u_AB<~XxFqe|FQWJ_6NoJyZl9`sR=f`%Gjq=w@Dw}j>URcg~jNvlorx$8iN%;bvEdP3B0j;SZl$zAv-y~$mmVej4`=|2qoeoKrPr{7G=&{yJ?K0T;7s=_*b9eCaXCz+vzeYa^P4l=VCJywU-JE)b~+ zk)2?XNA%XAYaK^xURN4$%nLJHbAO zsap?nx@!i89nBV!b@D6fuhHO-6g)N?%^Vv`9d9hP{BiB1zfqM1I$8lVa>|p#DSCcJ;_ra1DN2~5vC$i22&rnu-Y?WQM358Ao>h+on zSZxsIsTu=`=gkakK@~PlJ@!FJ7q_E%k~dGey;_>8m@Ro1s3a#&!ICe*XtWA9QJS8_ zv3J^Y2*g+JKNw$1ORUI?iS9913RB5DM4vj_b=Y`VZmu^3sj@Ns@Fu;ZMzPS1;KrnZ z!{H-Z-H@9!2R+Sexi1pWQSnf|xV<@Jsp7n5{O`SRp^ZAXU8anBk)-+!f0A}K(;tUW z&iN74HWUxeoh`n)4+!+Veo#`p+!;einq4M-- z!L`rR{oaTv1!$wFdB_avp)mZxbD3$B+ zHFLp{T`FC%Ll^nJBW*A_t!hyW*Y|IqRxP&Sn3q1fN~_lW+p!X;P>RfQ`pDgD)|kds^-gE9#p8#jykWHY$$v}2D6Ce_6XaG1jXXnaM>qfo{F?z^Ksd((j zEsT)zGx;ll1)rSX3*ROhu1wG-xFDBCh`h}+!%55P-lEKybJM4nW-75Gl0Gc)9~1CX$?gy~Jl&|<7;mAxeF^v;q9r*}PK9luEKsFlqwR1!&IOK^_ zz!R204dl4`Zwx#Owg4U8+T?NiqSBL-2n0Jm+c%5UjA0YO$tzGWYN#l}1bT`YCOpWzMIRgQ6V^xoAH>wy~dCKh5jNR(% zWy-AO*x(zK6HSA`^fT6bI-eU}&IaeE7d^ksfB8YS!=He6b>{gS8RGngaR>J{d_Edz z?ycOn)!Fo`BI2~Y=pV(g`u*0Wl2L?AC6RgkwtVb8JJn=WL78C`q&rxf)f4>(V`Lhj zY@`EEPChN*_5C~a1$!zgR1v%4pUf>E=qT$jw_6wDnbC=|OGFXR1_3XS*P5mh(~!D7 zl~I*MM#IuhYk{yvE+;*@hwY=O6oCr3UY+%Z09ck$=4?}pLi9g7=_yzKY1W)4BXKXU zc6P4YS1|23)4GH3nZZ^2-1~dtXYOvnkz%MmM37A9J>x*weSqwzYR%?Kq)csA&{7?aQ-zO61(N3=?ZuVtLu zD^uJ+r{S;pTX%g&vrlkP@OzPBH=lu}m=F}VFurX6rL|CH1Xxj7lcD#bH6ag2k^4=$ za8Q;buzW}zY$}5J_-`0YfjsZ-Q}zNN+Z)Ah+8*R(n|O;i6D+9RkF<_U9?w$;7?EKu zl+)d748`jUYej9_{3V(z!;v`!$jLY4oatJVId?uk%EkE0S!wypVbUxP5s2^JjEkxe zxl01sALRo|lJGHKiJ(HAt1d#E19^BzM*++m)us4qQ&d;fy>2?jaSBfdGqs_Q@wc2qBB+SZyBOeIG|` zaPFW~DJnj9fo(-@mTo1H^`@{v*b2M9e+_47b!l1SU1*_U{#DST@980jcpwj!Pj*dV z8@tT&ivh>YGcoNoSG~8zj<|j)?-F>|Snr&O6G)l_lqdC5l<^^}JCyxd51(8ap_ydi zz`9^B!j8^{B&}S*6uUR847b?!U+MKf8=;#({<0}D+bY%-1!n)OnmO}u>?yPU_Vg6MjgJYgfLhI9m4~=O&xmZ9iLvb_ z>$Ri4C0bZ=|Fvj#E+gqAinflnqFAT#Mb|=k)D)>acj|E&@Ff7MpMRvIbBH+|%ORh`)3!7hXPbIpiN2&>UxINM8!Ito(_(9N#>_Mf%t$*j*vj zyMK)Zde61x{$O-!nb?1^oNt%799+($dZX?~j(!*M%l(egq*oRw-Mh0YZdO-L9a)zh)YFP%2*6H2~ zEUmiCh8|cy@ltuSTA+p53DlJKPFUVXDiAHH367b^>-L+6W6???} zb@owcQbUM_Be9Nf<>VZrZ)S$`>Oss4xz{DO!5K}LB(y;i_qQMd-5q^4tZK5K_VG!5 z%{FlZnME%PfR*nTU^X1I6CZh)9jrUWmPCx11m(5DgaT_IeR8buub0`9=|`}+echqp zYSycXSM|&rh4TK$bZS7EIe}hchyxB`jfpyKT~~5=-@p%O;X93VV@-1(hr#F4$(TXk zJIg$m!X1SJJPAZGoOSOZ*RP^E7Bgr&JPgKwg=1AWXOb31+`e5x>cB{hc$XZ6@kU$y zqv?e}ly;+R%-y`i6A*rvlVA&Ta*Qqh65doD?A$KLy<{svu%|deR?GXR>bbg!v1B0~ zo@{h(@keu@-)QwTr%P&GZTh!-3)IaI+sgY-nS;~q|`%ZnvL5D@&H$ z=<)piWLyq*oKi+6+a&(}Sxqw*T2nc=IdMD`@u+Wv=hxCA#{xWInjx(wB1u4ldSLn& z@^*1|MwkLV(E{@?^}$r1ylYOS9J6V-~fH(T<1V{gB1VOSq>XtPI`W~od%K%&1?5G+3vTzsDC*>SC8 z-nb^PjX7OH@bEQbulIDMxwM2VNxYvxN>N#>{@GUJtzG=i1SgB6{!xqqG2HIxO?Fhw z7ZRCXVptMyyCM(rgL*rPH%VG+gH@eF+!0ikntg?_Dk1+A!Jge*4(H`ng8N*{$I9=&xTtZf=GCP&971+a7HA78q>(VNVUFSjkP&Wg% zXu?wu###vX^yUg#`)24AYL)B*&2j#j4j`H-!-L%XSV8h)E)0nIOqJ8R0@o%sOd6y2 z?|YfMk~Eg>SB8E!=e_rl;s4kXnHLMR#hCl<(Vq<@K&A zL3@~PL?mkhG3)ajd!_E^`JR@4jwfX}odq!v^_e#|O*=Z!LLMYUCBGOhh?OSdZNPMoI3%Q5B9!C@kF$ z0z4?ee{*vsEi=ym(eU1LyCSF{|KOG@#RJ5o;A4>ibr%?Ln4=2Hbh|gw(7%&2N#fW* zn^sO1n9yyIeL`F&T^p6!1hvw0rk!fEP#Dxfj4?~+8e+cyN8!c%()*IdVe07#d_#mem_xxri zgLmu1x1MBtC}ce+Q--0F&42aF>l_xRZQ(@MpK2?*s)9Z`ALUf9LK4arZ}DmuMhaN2 z9fX^~sykx~oV{e(sRTgA)$yh&b#c0(`9x~vNwja&t(31ECj3F~0zbT9GLUfzNt7>& zS-?(QT-egS4D8fEDX1+u9$tnHcr|Uo)-ylmL?&Z!`L;c(3hMCWM(7qxE-nemaKjTqhqeHlU6`X!k3ZG*2DT&3FC;L}HDo7bTue-keg*Bz zn{wft`9;K^XYbMjeZ}mCXgcGKoda--G82Y5YsMN%teMu`(rvyq!jpTaAz%3XMPpj;cM0TFexA8;XS<-hZ}f-h)wkNX0weHS;Nl;Ac(6J2&MFPrpB`@D&h8WQG8wZ7);}BlZ2jeju2aNM zwu6DH_bCoWV(&xlJZAj5&3|_OA$mFQMPqYZNLDEO-s1P}S5?(>)J;9*OAFc%ozss* zAnhv*4F_X{5_zGND^=|RWko!37GgMfjmqVD?5p7ZsgAM0NpaSqh95di0!dFJ{-J3>b z@}2UKnyr4dGx)?8d*9|-ikmQ6VdT`@#W7w47ztD zlW^kPcFC()XbimFW4ok!EmJ|jIX{{rFxWhA{gkoMP8Tk^bAWEjh=m?}5^G=XXxeaC zlprP#g*m+iSQD{wBGf1CraL5Sk;wGHG`r{oPRJ~A=E9F6AGZDI#>RN*FZ;Nu!3xG| z5<0X`i`LVIgwJ}qCL8;bkb`Z9$sv1BmwxSr&TUo-dqr)|>|IPqt30o0;9cUy#%)Ng ze0f2aO9OfaB8dT3aFrzIQ$bO{!?lc~F*6<-sD%0!;{l)^?bEkobD@;<$O|!1`^U^4 z4Pkqmui7ps=K90v*=fviSZiN!~baa~FR_)d}$z&L^ER z6cws|NdWw=091XHUDFct$}T{9r!UI6gY@N(`ev~PQu#`nYxkfn4@oupsV}1IQCE9(V5zb1uErE zxzAK(srAsAKf0DIO8V%KzxWvFqY|(r>nl{t$_%w!;?i{A_}*&!hux{|eT4G@`ECqz zbwtwT$y%y8k0h|l-h#nLVsb^{ZnDJT%dO8eNbb7f3HOj>pm8}{XNFozhSsrpi?a8+ zvi`tcB5?QPxF&Mi?s1j6clK5pV4*APw$M$yhB2{2;p5t{qI#(C3)PYS2=M3i05|me zp{UpmnBxxQ;Tb?P!LeD6{)$SqWy45f0g92U2^GO3+5X8qo{1gdSy&O9?f8nscjVXv$ZAq;%b&gXeuC2w1`g5U3;@M*kO*5X7Cpxl1?q6*vNSAVWICogOr-Ya_I(5TMZ>$p2j3DzV zKQJ2)_kRr|f?{DQ4aWd6jE#aF^&HDYauRxiliF4*TGWU_Txc(5^&q`C!7Bb(-6m|epO3;N z#7;diW7)8FOGG=X-=`~E20nV4K}6x{aU`Qc1lsK`*!Kkwd-$6756<^-q#0=GnJYLN>? zQjJNOn&++YSm8Y-Jo}7%$MpS`Yg!+{V+n6{#^1`NAoAkceC0mJkua}bDCoBerNU;x z2Yo;NdVIU61a{d8BQn|hx7{?cgi%GMZV{u(5(7p0y#wp(TY>UOe)-Ki)NQ#ohIC_- z_miyCQ#&Gmhl-cW7`5sj8jK zZnBQDLz=lQH@(Isxo@8G@t^dOpBZ4Us?rZ0qVq zk266QXyAn>lQ})U5L&nDeW8JEFJdnyBVHd#;oL$Wl&}@R0aH+V%OcM<8i*OBpFJ@; zl)^^8T;YkS+qwX)pX3Le?zNW~TLicFrV?)_r^0H`c~*v1iS6vFOIp+M5xrq#Q^+UF z)?r7CEw7py*gA2iuwyTXBPv@fb*?3`&T#_$3St#0%G;{~-u1Fub`14C{Ej)y)A)*v z4EY_=BhiNqDd=hPUE5w`;DcP2Ws$M~jhqR~#)6<-ChyX>Zph7QoyET|>NT`2b1Yn_ zH6Dwjm@l6UEp)hUM0VKX#0-EEyQMtF=&HtA)0donuV2tA6yNk(86K16azfpn*HSB_ z(s7UY6Bb)-_g4pQ6pq*?*}IPPt#3=Y zm7on2BxQK&fQ=xUb3un6-8wYJQeb%E_37zSX+^COI=heusdo{Yq8qH{&$i}7mKp(M6b(&SbOLt0=8BVqX|j>w#SM^ORdC4Z z&DW{5NB>#Nk1H%O!#`kIasFyGRbjV{xx#taC`?)}R}@9`#V}L-65D=p5sUf-S?P>Z zw!qKgL7E##OjW9g;Afy;c`f=y4iKDbQt9<4xyGxge?BVt%v2h5DsLxaOp|NzWW%k1 z7x`-BXPiP@*y|(0p@+YGYPc|L4iG<*Fe}%H{B4pQqI^$6pI&9N&Hb`=I?|lVDHTsF22gSO< z)Nku029Qw(2E7Bs%w}hPu@-oex5XkkgR(1 z(BN@Gnj;coi&Cp?gt&}3vne#~uNy_;oF`FXVUM^Y>P+gt%_pl0q2zU4LIW}@NHOQPRt{-(&zo6a={ee{)@DQe&epex$xH=o_9vZIL2@bCp8 zxm}Vd&I6S^?UGX_xe=0NhTIbW_7g8R2>9c{lb-_v^7YGcheZp-#!T~wB>wnS zB!2mhrkQDzYm z^F-K!v`4sY3Em$+J5@1;VGfPKo}AD{lj$^^;F4C|4e8o-MZXdGF|i{RyVb{$%32fo z(ngb-MwM}4bG(vbHuY0Po!Z0mOtx%oNp!gGhu2zZLv-$BvCu>%9suuHdX^&Gq&=xV z!UTtFuOI#1wK+aFs53{5?&gY*y5gj5I7^7H%Gsf~ZSb%!(PZ?sc#(2$dMAVCnU8)c zk38kbQ-p?%msEzk4SWMtyTjwKuvHUBCKLJtG4N|WtlQe%N$&i6eJ6Sr6Vrw*vnM4| zGBq3KokIfbwFQnoZGCFT(u#uI7z#cCKTDUsS;%E&&g#&PlF0rtazO##gX>#sF}*r` z43Y)GF~L;91Y|M=x8)M_(VuBOAf+plt9Go7)s()`JTtu&`21r+5T6wKK}qNL`YdAP zWP|V5Uj^az35$zS-d}R4_e8Sc)4dAey-^bL>xfFCfZ1Hw$8uO&xf7N2!psYIu;yPp zGYtzO_5M;TD&4i`sK0c=7SN2l5RFaKYr47@r0?GtKWT@1CgS1!Xw^dC=?HM-m6S}J z?LM-a+LEPU#S$PDNG`Hat<`po27<91caK_CA_pp_=oaE6L&gFXYe z`n=1`*`5(My0S|)FPUs#QB5^hAxc=U`;b4=YAWa!Bm4D?^!H4Y`FBGoVX@>jcpW3@ z``wna^K{R`5ByLuVn;{L);z_!OP6H@&NUTrzPM%)%>0)x>tu1qLhEpe)FLbo)G1TG z2rvQ!UZo`()DqCj1mbZ#ISDryGO{u6^D~brRj^sqATT8v_e#owYa05okETee-gz-B zakHkzzZsKzXhVrKPsw}cPgon24Jh6hTTr~jee9R`d#gw6t;BZwa>FRp+FN#(V+SE8 zj8N)T!Inj$z1VtXEo5dt5XAkrS>-LZoctSkK1{8FoMFt?B&^=&4W561>L-Bf_gsn_)nY9c7$m~}a> z5B)bH%6YNG$ubLjIybQn^=W+rQ8DeEc@0XJUxCTiT;%TOHAe}?2pjaO&Y`` zF{IEQEZ8f1^D=%Sa>#4BKzg2kFRb6+etIE3yL|WZ^Tzv6-+%3IsX)_jZ=Nj+kT3<^ zQo`^?RIQ`OcDTe-rQM#!_@dfj2(J&o37KMi7mXB#3<_G>WJ}9igoKnhyg7vTKZvqA zlzM$?x0jU|ud5wqB|XNyp@;<2Mbb8##&QlYL3_G;#NePXo88FGsb%_&U zJ~p7dvEfbhFl2x)FNjPa5?Zgs2_x9+ml_&OuzM_Pox1`BUw+(wFRRevvWGVvr4YIb zXp`Rw+~6eeNU*}Au-OXR_k1G>GKUODzLmmNhc_wdvI8WKk!J6v%2=jQAJwmPJxoX(GEitSb{KtQ!$Q`lg~! zb^uZcwc4^mi+E3J^iQb|Yj^&TREHUb++7uCW_dl7z1z!3;;N;;bpa)$EN@Q002ovPDHLkV1hYF9KQen literal 0 HcmV?d00001 diff --git a/vex8/patch/images/games235-logo.png b/vex8/patch/images/games235-logo.png new file mode 100644 index 0000000000000000000000000000000000000000..623974dde5506c04a161a9eb65480ba98bafc5ab GIT binary patch literal 4929 zcmaJ_`9DXMY3cVOR|)mu`gLlWeXwOps`o7M3$IOWZ#GEGqPn8 z5+Q5$btqY9hVS$be9tfEzV12qInQ~X_xm~Td*X}?Zga4nVFdtyLsv)31OPzvM-afw zMDJ{$6uHs6(|)%s{Y<^w`~sYwxB}`fUiVx@bv>N!yPCKq z8#&0w**)CR`(eO@uzrB5yt~+$tFs0@=cAir?V8U1BI!8Q)Ji3%{fc*SYLL}J>mo{O z=QRrZF`xw3B<;d0t1JCr4S4gMo~rSMEy{$~{#2;QEXq=RYp*TmZO-_3&b5Dz{l8}7 zOcZNyr2eqsq0Co=(!RBctGvE!H8v_nQ9hihy?%T;bWs7e{qVF*P~3)ypxR1LhAWSO(O)f?dwUGg*t=xpf{;a(K6BFY z8sYwxKU6^BTD8-hsSs=SDe%I3s^|PxTxdCb#wY?CTAp47w|owDls;0}>xua+Z`LWz zJD{g{E~ypjhz?ID2PfXqgm^B7nN&T$ON1;4Cgp%RFm|-54>P<<(b1E;#m*Xl`l7>5 z#R-E_G=KKbtB%4j)GLqFbIP;zc6ZzY0qfF}&dTF_S{|FN^0viG_x8)*F&)3hJf@TO zqACI>T%H+<-h^Rxj=7RHh9Z^7ppEl|T(KMEWEWR}>h_ga35&YptIx(MYZBH^(L8tg zv7k2_OcYsf9JUe>XZN`NH!x&PLxk-@SE3#dMK%Tk+50i7R$p!{Eg*rRFfMMi9IDA% zhf@S7RTB-qcm^Px)(rBB?HZm@yvPunN6n{+GUk7etO)=`&;L%3)>Pxlm0#Sumn;If ztLd<(bK0U?5TdIf%Y@(=@6mHZ?Nj`=wf01a3TC^M;7ie^sK*YivG_HCu3dv;}hG4!T5)yBKpF?i#7WdIQZ71(cbwE}; zchPI)dEW4u3ZQ4jvrzUbj}5~GQcUqTmKn(#*Bvw@o|&g`Xd*i(o!dS#O>o zEOZo%M`r)bssQOs77dW(5NmJItK+Owp*7_~xka{$K}L!!nIULg{=aA+_`ZL=M^IhJ$dlaBPT{ll1dAW~J!MIu2 z3XN;~fY};l>%Cr$#N>##JqjNNHfG1nP>sB4uSS$xiCYJarWpjQvS4tO4ihlS&MeQv zEPtC@++|=T^-x(Ii~qgPke!wD%;&9y9hM0xMY!`UTGqiT2s9~s*9C?usD>=lc7C!c z$|>(NJllO4yaOoy$HEc_HaIr9awDY@PezvUZ;5Xb_tKpqirD7lY*lj27}mArdRt@ETR38&j8*> z&$U`HsVzfgTi~L6TG5un8v*Y(Ndn%yJ9zi2Fbr8$be5&_%DMWhuh&7({{kyyNHNa@ zTWs4FZzn)UyOu^oV;oxbv545FfC|Ixq?{xk6D9m+vovWCo_Z?cp?XS}}n%S=f^X}+sN&YIfON(l$V;9^}YW4lBzaG zg~f(-JuuM9C-7S=2)EGas<5cJ-+CZ&Oe`R!Al(I18W4R=$3N*&RPV)(OdLhNUhrUS|>8 zxA{QJ^n+TpEA z)-4@vbJ^5t|C%AfaH*0R5wUhw1VUcJxJs@NzXr4`Z6t;}5uBn7x zalTYPv&*e*8K> zRka?T>L@=P`F1+eJ=ghT>G3c%Z1Qi#iC2*qgMl?QC^z^K)Sq6IWF3r~Cg+^V?$ z&Rpw8aQ`!VT6$xQ@_tNZ{>XBOVMs&uPk`aGZuH!BZQrhoi(ASnO`|c~Ri(5&KIhzn z@R-k1Pf)5mO|3)pU=DnpRQR>09eD;+x**f>QmR$;qO36tUQe0aT| za@)OP<;Lc-Kvn3TuXw~X<-_1hj`nTRIm+pQD>FQTtQE&_(haonaoj4RfKN+jV=b&% zO1RyoCftC9h_S3=Cj(BqjlR)ndfk{d!kR= zpEJ6cXDHd+0K)kLU+xIHs}1A`rVJYk4qm`#3BE9^V!ae?9`J^PXf_KE6Zl>0?2%ZP zDG)wQaF?iFKN0y^ek_-=^!jMEhF;J24cM*&9?J!rKBhMqCN71OiboQVnDi`Av1Sh8 zXXyz(DwKiDf`<{3e^kOR;$v^3iO2}IQUY6U@<15}Rzw17R#JI9Asj6|$@6*4yX`u_ zYLB`D;gX^%KFXuQ`~8ym%RX8*R$ba1Tzxza^fA6$cc8C$cj;nh1P_^I;p5RjItLLF z0W!>birU27zINGf>P#fx07U^C3?8uvPZQgP(RUK3BUmML>5~DqAySZ1e9>Tffj;vd z#xKZYAIFsnwiMy0q1`KwneAJTV%Q1FFKFqnh8+wblGjIL=iGv@8y(Eoe|H}x-b6$P zgGs->J*wHw1Z|r?T>?AYvnYf-jL~+ij9IQV_uUO(9p6X#l37~Xj(Q|_%qMDFY<1U5 zqEM33_4lkM@A6!cUP(R4Z}+v7S~(O;_=^0Zu=b$M2?(hZ#&WbzTpNlE)ASa@aC?)& zZI@xn%3CwMWR{HSCW>GCH}jt3%A2eq53UbILg^Fxna4((RzE0zV~a9DAM#iQk@+g9 zq5k{s3G3Od0V5|3LqMQ@wb*voB!kvOQjK2od}~CIW>>(wAJP=nx|6o~o#VTgXzwt3 z%NvjUgUkbFd$ixH&6a1-K*HvkQO|4>w+x(eu6uB34LN9x^GXBDp%f@|M#=ZPa+KXh(@@ADfy6`YlJ!@~ro}0H5ahLuHE~1fI9m(M)pp&7wonPF!M%fonNdE;z@2#ob4X_JL^eEe@23eq$Uh1 z_=ds|7WE3wr-6@hN0zhj5z-4VGqz#fqrWBbXUGx#KjwtJ$9dT;JmVlLbIeDzZoZ&P z(abmuy|5qy)})an!%IKNM{$b0xnn(Oqkn?|6h!_6*|x{%v#H9h7V1qtR~3_HR&a7X z)PG-HS@-?I=4d0-$hwcgs`9vN)1Bky*;G9=d??aeIC&~G`6{4chb4EfNHX+R9@o%c zFoUR?esI(eM4_k+#Au=ShjIG*oy86&@SDGOLy=Ya)L`xRed+p?(3wRcPOwT}nU|sZ zQ-wpgFUNHLaFDfQMGO1eud!8Yd#Nx%%jg{gWR0w$hrZx<{rUnSY_)v8|}j!>eg1 z3$$IjR!!_EEH!#pdeZ0ebL#eahV2v-8Xk+IP8v2w8|TivtkB?s;A9=FE`|b@RU! z#A#t^FU!Yz`k|Lp7++g{RX?oyiw;+|klFy*);~Z0rwa*MDw0ap!6N9zC392DafmM2 z_tq+hrx0;Mg;CGN2e3f)SmdN;Z$9flqDhdXA7A7f65&4UCOHKQokhI1u^Ai=&hJaF zfzGx9>HO46T!`Q>k(4-bV5&peHCfXC0kN!Ep?_6UGpEu0Uo!YCE1M9xnA)VMI2JZ*>~)BPR!6%Cq>R`Z=VR<>>S7jV8*56VMcJ@-CJI zoEkG6y{)rY%<9h)O*(+ za93Z6EOUL3v6Eh_O`PJ+5bGFBO0hMd@(F-1W5FLoB>+1GL!25@)_#K% zr!-21bBkd1!3_w&-#eaQuaPop%u=h1h8Oi3RJaq)BQX~ZF%=qB@f-aVfmWzDOA~85 zX^fCBW0MNX3lS`vy}FNg_y)(oAd}j8&9ZkcI$3tRCfv{)JCIUh2n^Ej?l4p&CNvPV z7G;Kjmh0f-5QWVy;vyx%EUc$!;ca+W*l~xq%5lGKHca$_M1nKr=ii>L1Xs-2mY+fy z8414N0QTZfw*PL0e0{o45_|q#di}q4=}$O_3HUw5Y!I=-pZ{;B?kxkY3Ju4|{{h#4 BdKmx! literal 0 HcmV?d00001 diff --git a/vex8/patch/images/null.png b/vex8/patch/images/null.png new file mode 100644 index 0000000000000000000000000000000000000000..0054d40ab3b7c52e392a032e909129d9bfc5a468 GIT binary patch literal 1014 zcmbVLJ#W)M7`~7Sm7+?Fz;tp4Kx*u>lhXPW(0Xj7-3*Qj7%^vAO?N`QWt&z=QIfngaOO;y?1(^=l#6rjr!fqjq4i#fX&*W(d6qv z`mJB&|5NwmJ72D`N{6**kHuCInOHU@^g5 zz$46piFfQrIMIZeF6MT6ED3N1VM9$g52|A}piV;qRT1TEgk-p@iZ)VEp{qEgw+$7f zea_9LHju7irj+WK~sD4MoXuL@pZp z%t~^8w6#z$NMwg@z+CFXRMG0v5z_=7?Rgqru$1+qd8v5Oq{Ip&Swv}C3!rKK8|ryW zbi|tEcf5ZUj@sjZNKF#aQE2n#^|n%10oFreF&efhJzi9@F`$e_0~$c3Anw4MN3QSC zIJz|>m?p0I5wm=o)C^7F5~Axmcuz0w?#cNo((|`vxl$?X<*H$nbXCy}UNf}d8q^+n z#Agexv*Z@gN^Uw2UcfyYBy=AWry5cZ&T_`?>R61GdULL`GM0R0C0F9XNNH#P==9=< zk56hYXP0l5(@%Up@*$t?5A4xPelK|SO6}y^kI$J50Bc$F^X!TCRe1H{OTYE$(iM0x k1(^$L>;G>|FF%-O!2LJbr>EO*uckM#R;e4W%MYLZ0`PY&0{{R3 literal 0 HcmV?d00001 diff --git a/vex8/patch/js/AzerionWrapper.js b/vex8/patch/js/AzerionWrapper.js new file mode 100644 index 000000000..6a2567606 --- /dev/null +++ b/vex8/patch/js/AzerionWrapper.js @@ -0,0 +1 @@ +(()=>{"use strict";var __webpack_modules__={1075:e=>{var t=Object.prototype.hasOwnProperty,n="~";function a(){}function r(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,a,i,o){if("function"!=typeof a)throw new TypeError("The listener must be a function");var s=new r(a,i||e,o),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new a:delete e._events[t]}function s(){this._events=new a,this._eventsCount=0}Object.create&&(a.prototype=Object.create(null),(new a).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,a,r=[];if(0===this._eventsCount)return r;for(a in e=this._events)t.call(e,a)&&r.push(n?a.slice(1):a);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},s.prototype.listeners=function(e){var t=n?n+e:e,a=this._events[t];if(!a)return[];if(a.fn)return[a.fn];for(var r=0,i=a.length,o=new Array(i);r{Object.defineProperty(t,"__esModule",{value:!0}),t.isIpad=t.isIphone=t.isFireFoxOnAndroid=t.isSamsungInternetOnAndroidTab=t.isSamsungInternetOnAndroidMobile=t.isAndroidTab=t.isAndroidMobile=t.isAndroidDevice=t.isMobileOrTab=t.getOrientation=t.nulOrUnd=void 0,t.nulOrUnd=function(e){return null==e},t.getOrientation=function(){let e=Math.abs(window.orientation);return 180==e&&(e=0),e},t.isMobileOrTab=function(){return[/webOS/i,/iPod/i,/BlackBerry/i,/Windows Phone/i].some((e=>window.navigator.userAgent.match(e)))||this.isAndroidDevice()||this.isIphone()||this.isIpad()},t.isAndroidDevice=function(){return[/Android/i,/SamsungBrowser/i].some((e=>window.navigator.userAgent.match(e)))},t.isAndroidMobile=function(){return[/Mobile/i].every((e=>window.navigator.userAgent.match(e)))&&this.isAndroidDevice()},t.isAndroidTab=function(){return![/Mobile/i].every((e=>navigator.userAgent.match(e)))&&this.isAndroidDevice()},t.isSamsungInternetOnAndroidMobile=function(){return[/Mobile/i,/SamsungBrowser/i].every((e=>window.navigator.userAgent.match(e)))},t.isSamsungInternetOnAndroidTab=function(){return[/SamsungBrowser/i].every((e=>window.navigator.userAgent.match(e)))&&this.isAndroidTab()},t.isFireFoxOnAndroid=function(){return[/Android/i,/Mobile/i,/FireFox/i].every((e=>window.navigator.userAgent.match(e)))},t.isIphone=function(){return[/iPhone/i].some((e=>window.navigator.userAgent.match(e)))&&window.navigator.maxTouchPoints&&window.navigator.maxTouchPoints>1},t.isIpad=function(){return[/iPad/i,/Macintosh/i].some((e=>window.navigator.userAgent.match(e)))&&window.navigator.maxTouchPoints&&window.navigator.maxTouchPoints>1}},8744:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(1075)),i=n(4853),o=a(n(347)),s=n(9251),l=a(n(6430)),d=a(n(2673)),c=a(n(694)),u=a(n(9916)),f=a(n(5797)),g=a(n(1840)),h=a(n(2915)),p=a(n(240)),_=a(n(5038)),m=n(973),A=n(939),E=a(n(9714));class v extends r.default{constructor(){super(),this.isReady=!1,this.gameStarted=!1,this.interface=new r.default,o.default.setupUIStyle()}static get instance(){return void 0===v._instance?v._instance=new v:v._instance}static isPlatformSupported(){return v.commsManager.isPlatformSupported}getPlayerID(){return v.commsManager.playerID}async init(e){this.config=e,this.logBuild(e),this.applyWrapperOptions();let{err:t}=await this.commsManager.initialize();return this.commsManager.checkPlatformSupport(t),await this.storageManager.initialize(this.config),this.createInterface(e.interface),await this.initAds(),this.config.inAppPurchase&&await this.initIAP(),window.sgWrapper=this,this.createUI(e),this.initOnceAllReady(),Promise.resolve()}initOnceAllReady(){let e=!1;const t=()=>{e||(e=!0,this.checkForRemoteJS(),window.onWrapperReady&&window.onWrapperReady(),this.emit(l.default.READY),this.isReady=!0)};"complete"===document.readyState?setTimeout((()=>{t()}),200):window.addEventListener("load",(()=>{const e=setInterval((()=>{"complete"===document.readyState&&(setTimeout((()=>{t()}),200),clearInterval(e))}),200)}))}checkForRemoteJS(){for(var e=document.getElementsByTagName("script"),t=0;t{})),this.interface.once(s.InterfaceEvent.LOADED,(()=>{this.onStartGame()})),this.interface.on(s.InterfaceEvent.LOAD_PROGRESS,(e=>{this.commsManager.setLoadingProgress(e.progress)}))}async onStartGame(){this.gameStarted=!0,this.emit(l.default.GAME_START);const{err:e}=await this.commsManager.startGame();e&&(console.log(e),this.commsManager.checkPlatformSupport(e))}createInterface(e){switch(e){case i.InterfaceType.SGSDK:new f.default(this.interface);break;case i.InterfaceType.SG_HOOKS:new u.default(this.interface);break;case i.InterfaceType.FBInstant:new d.default(this.interface),new c.default(this.interface);break;default:console.warn("Interface not initialized: type not recognized.")}this.hookUpInterface()}applyWrapperOptions(){if(void 0!==this.config.options){const e=window.navigator.userAgent.includes("Android");this.config.options.reloadOnFold&&e&&new p.default}}logBuild(e){console.log("*******************************"),console.log(e.gameTitle+" v"+e.gameBuild),console.log(e),console.log("*******************************")}static get placementIDs(){return v.instance.placementIDs}static get commsManager(){return v.instance.commsManager}static get adManager(){return v.instance.adManager}static get iapManager(){return v.instance.iapManager}static get interface(){return v.instance.interface}static get config(){return v.instance.config}static get storageManager(){return v.instance.storageManager}static get leaderboards(){return v.instance.leaderboards}static get sdkHandler(){return v.instance.sdkHandler}static set sdkHandler(e){v.instance.sdkHandler=e}}t.default=v},939:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OrientationLock=void 0,function(e){e.PORTRAIT="portrait",e.LANDSCAPE="landscape",e.NONE="none"}(t.OrientationLock||(t.OrientationLock={}))},6043:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Default=void 0;class n{}t.Default=n,n.LANG="en"},4853:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InterfaceType=void 0,function(e){e.SG_HOOKS="SG_Hooks",e.SGSDK="sgSdk",e.FBInstant="FBInstant"}(t.InterfaceType||(t.InterfaceType={}))},388:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});class n{}t.default=n,n.platformConfig="platform-config.json",n.ratingImage="lib/assets/grac_kr_rating_all.png",n.softgamesLogo="lib/assets/softgames_logo.png",n.supportPopupBG="lib/assets/support_popup.png",n.supportPopupTextFrame="lib/assets/support_text_frame.png",n.supportPopupCloseBtn="lib/assets/support_close_button.png",n.firebaseConfig="firebaseConfig.json"},5028:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PlatformType=void 0,function(e){e.SAMSUNG_INSTANT="samsung",e.AZERION="azerion",e.WEB="web",e.MSSTART="msstart",e.NONE="none"}(t.PlatformType||(t.PlatformType={}))},4186:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LinksKR=t.Links=void 0,function(e){e.TOS="https://www.softgames.com/terms-of-use/",e.PRIVACYPOLICY="https://www.softgames.de/privacy/"}(t.Links||(t.Links={})),function(e){e.TOS="https://www.softgames.com/terms-of-use-kr/",e.PRIVACYPOLICY="https://www.softgames.com/privacy-kr/"}(t.LinksKR||(t.LinksKR={}))},347:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(2801));class i{static setupUIStyle(){const e=document.createElement("style");e.setAttribute("id",i.UI_STYLES_ELEMENT_ID),e.innerHTML=i.UI_STYLE,document.body.appendChild(e)}}t.default=i,i.UI_STYLES_ELEMENT_ID="ui-styles",i.UI_STYLE=`\n\n @font-face {\n font-family: Lobster;\n src: url(lib/assets/Lobster.ttf);\n }\n\n a:link { text-decoration: none; color: inherit; }\n a:visited { text-decoration: none; color: inherit; }\n a:hover { text-decoration: none; color: inherit;}\n a:active { text-decoration: none; color: inherit;}\n\n .wrapper-ui {\n color: white;\n font-family: sans-serif;\n text-align: center;\n z-index: ${r.default.UI_ELEMENT_Z_INDEX};\n }\n \n #${r.default.RATING_CONTAINER_ID}{\n position: absolute;\n right: 0;\n top: 10px;\n width: 20%;\n max-width: 80px; \n z-index: ${r.default.RATING_CONTAINER_Z_INDEX}\n }\n\n .orientation-screen {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n background-color: black;\n z-index: 999;\n }\n\n .orientation-screen-ico {\n position: absolute;\n top: calc(50vh - 100px);\n right: calc(50vw - 100px);\n }\n \n .loading-screen {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: black;\n z-index: inherit;\n }\n \n .splash-screen {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n display: flex;\n flex-direction: column;\n background-color: white;\n align-items: center;\n justify-content: space-around;\n z-index: 9999;\n }\n \n .game-logo {\n position: absolute;\n top: calc(25vh - 30px);\n box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);\n max-height: 20%;\n width: auto;\n border-radius: 16%;\n }\n\n .supportPopupContainer {\n position: absolute;\n width:338px;\n height:338px;\n left:0;\n right:0;\n top:0;\n bottom:0;\n margin:auto;\n z-index: 9999;\n }\n\n .supportPopup {\n display:block;\n background-size: contain;\n background-repeat: norepeat;\n width:-webkit-fill-available;\n height:-webkit-fill-available; \n z-index: 9999; \n }\n\n .fullBG {\n background-color:black;\n width:100vw;\n height:100vh;\n margin:0;\n padding:0;\n position:absolute;\n opacity:0.5;\n }\n\n .supportPopupCloseBtn {\n position:absolute;\n top:5px;\n right:3px;\n width:55px;\n height:55px;\n }\n\n .termsAndConditionsBg {\n position:absolute;\n width:290px;\n height:53px;\n top:75px;\n right:15px;\n right:0;\n left:0;\n margin:auto;\n }\n\n .privacyPolicyBg {\n position:absolute;\n width:290px;\n height:53px;\n top:130px;\n right:15px;\n right:0;\n left:0;\n margin:auto;\n }\n\n .termsAndConditionsLinkText {\n position:absolute;\n top:85px;\n right:0;\n left:0;\n margin:auto;\n font-weight:200;\n font-size:24px;\n user-select:none;\n color: #FFFFFF;\n font-family: "Lobster";\n }\n\n .privacyPolicyLinkText {\n position:absolute;\n top:140px;\n font-weight:200;\n font-size:24px;\n right:0;\n left:0;\n margin:auto;\n user-select:none;\n color: #FFFFFF;\n font-family: "Lobster";\n }\n\n .playerIdText {\n position:absolute;\n bottom:30px;\n right:0;\n left:0;\n margin:auto;\n font-weight:bold;\n font-size:23px;\n color: #875A2B;\n }\n\n .contactUs {\n position:absolute;\n bottom: 110px;\n right:0;\n left:0;\n margin:auto;\n font-weight:bold;\n font-size:20px;\n color: #834b37;\n font-family: "Lobster";\n }\n\n .supportEmail {\n position:absolute;\n bottom:80px;\n right:0;\n left:0;\n margin:auto;\n font-weight:bold;\n font-size:20px;\n color: #834b37;\n font-family: "Lobster";\n }\n\n .IAPGiftMessage {\n position:absolute;\n top:90px;\n right:0;\n left:0;\n margin:auto;\n color:#875A2B;\n font-family: "Lobster";\n font-weight:bold;\n font-size:23px;\n }\n\n .IAPGiftMessage {\n position:absolute;\n top:100px;\n right:0;\n left:0;\n margin:auto;\n color:black;\n font-family: "Marker Felt;\n font-weight:bold;\n font-size:23px;\n user-select:none;\n max-width:200px;\n }\n\n .play-button {\n position: absolute;\n font-style: bold;\n font-family: Arial;\n top: calc(60vh);\n max-height: 20%;\n padding: 10px;\n padding-left: 20px;\n padding-right: 20px;\n text-align:center;\n font-size: 28px;\n color: #FFFFFF;\n background-color: #ff8c00;\n box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);\n }\n\n .play-button-bg {\n position:relative;\n display:block;\n top:20px;\n }\n\n .play-text {\n font-size: 24px;\n font-color: white;\n user-select: none;\n }\n\n .game-logo-azerion {\n position: absolute;\n top: calc(25vh - 30px);\n box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);\n max-height: 20%;\n width: auto;\n border-radius: 16%;\n }\n\n .background-image {\n width:100vw;\n height:100vh;\n filter: blur(40px);\n }\n\n .progressringaz {\n position: absolute;\n top: calc(45vh);\n width: ${2*r.default.SPLASH_SPINNER_SIZE_AZ}px;\n height: ${2*r.default.SPLASH_SPINNER_SIZE_AZ}px;\n }\n\n .progressringaz-circle {\n stroke: #f1672b;\n fill: transparent;\n transform: rotate(-90deg);\n transition: stroke-dashoffset 0.35s;\n transform-origin: 50% 50%;\n }\n \n .progress-ring {\n position: absolute;\n top: calc(50vh);\n width: ${2*r.default.SPLASH_SPINNER_SIZE}px;\n height: ${2*r.default.SPLASH_SPINNER_SIZE}px;\n }\n \n /* https://css-tricks.com/building-progress-ring-quickly/ */\n .background-circle {\n stroke: #f3f3f3;\n fill: transparent;\n }\n \n .progress-ring-circle {\n stroke: #f1672b;\n fill: transparent;\n transform: rotate(-90deg);\n transition: stroke-dashoffset 0.35s;\n transform-origin: 50% 50%;\n }\n \n .softgames-logo {\n position:absolute;\n max-height: 5%;\n max-width: 60%;\n bottom: 0;\n }\n\n .sg-logo-azerion {\n position:absolute;\n max-height: 5%;\n max-width: 60%;\n bottom: 30%;\n }\n\n .sg-logo-azerion-fadeOut {\n opacity: 0;\n transition: opacity 600ms;\n }\n\n .sg-logo-azerion-fadeIn {\n opacity: 1;\n transition: opacity 600ms;\n }\n \n @media (orientation: landscape) and (max-device-height: 640px) {\n .progress-ring {\n transform: scale(0.8);\n }\n \n .game-logo {\n max-height: 30%;\n }\n \n .softgames-logo {\n max-height: 10%;\n }\n }\n \n \n /* ref: https://www.w3schools.com/howto/howto_css_loader.asp */\n .spinner {\n position: absolute;\n top: calc(50vh - 30px);\n left: calc(50vw - 30px);\n \n border: 4px solid #f3f3f3;\n border-top: 4px solid black;\n border-radius: 50%;\n width: 60px;\n height: 60px;\n animation: spin 1s linear infinite;\n }\n \n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n \n .countdown-tag {\n pointer-events: none;\n position: absolute;\n right: 0;\n bottom: 80px;\n padding: 0 20px;\n width: 90px;\n background-color: black;\n opacity: 0;\n z-index: inherit;\n }\n \n /* ref: https://css-tricks.com/snippets/css/toggle-visibility-when-hiding-elements/ */\n .countdown-tag-fadeIn {\n opacity: 1;\n transition: opacity 300ms;\n }\n \n .countdown-tag-label {\n font-size: 16px;\n padding: 0 10px;\n }\n `},2801:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});class n{}t.default=n,n.SAMSUNG_SPLASH_DURATION_MS=3e3,n.SHOW_RATING_DURATION_MS=3e3,n.RATING_CONTAINER_Z_INDEX=1e3,n.RATING_CONTAINER_ID="rating_container",n.SPLASH_SPINNER_SIZE=36,n.SPLASH_SPINNER_SIZE_AZ=18,n.SPLASH_SPINNER_STROKE=5,n.UI_ELEMENT_Z_INDEX=9e3,n.ADS_CONTAINER_Z_INDEX=1e4,n.ADS_CONTAINER_ID="ads_container",n.LOGGER_CONTAINER_Z_INDEX=2e3,n.LOGGER_CONTAINER_ID="debug_logger",n.DEBUG_MENU_Z_INDEX=3e4},2665:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AdManagerEvent=void 0,function(e){e.AD_ERROR="AD_ERROR",e.AD_LOADED="AD_LOADED",e.AD_START="AD_START",e.AD_SKIP="AD_SKIP",e.AD_COMPLETE="AD_COMPLETE",e.AD_CLOSE="AD_CLOSE",e.INTERSTITIAL_AD_REQUESTED="INTERSTITIAL_AD_REQUESTED",e.REWARDED_AD_REQUESTED="REWARDED_AD_REQUESTED",e.AD_REQUESTED="AD_REQUESTED",e.FREE_REWARD_AWARDED="FREE_REWARD_AWARDED"}(t.AdManagerEvent||(t.AdManagerEvent={}))},7540:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AdTimerEvent=void 0,function(e){e.COOLDOWN_START="COOLDOWN_START",e.COOLDOWN_END="COOLDOWN_END",e.LONGPLAY_TRIGGER="LONGPLAY_TRIGGER",e.LONGPLAY_TICKER_START="LONGPLAY_TICKER_START",e.LONGPLAY_TICKER_STOP="LONGPLAY_TICKER_STOP",e.LONGPLAY_TICK="LONGPLAY_TICK",e.LONGPLAY_WARN_TICK="LONGPLAY_WARN_TICK",e.LONGPLAY_WARN="LONGPLAY_WARN"}(t.AdTimerEvent||(t.AdTimerEvent={}))},4989:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GameEvent=void 0,function(e){e.LEVEL_START="LEVEL_START",e.LEVEL_FINISH="LEVEL_FINISH",e.GAME_START="GAME_START",e.GAME_OVER="GAME_OVER"}(t.GameEvent||(t.GameEvent={}))},9250:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IAPEvents=void 0,function(e){e.IAP_READY="onIAPReady"}(t.IAPEvents||(t.IAPEvents={}))},9251:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InterfaceEvent=void 0,function(e){e.LOADED="GAME_LOADED",e.LOAD_PROGRESS="LOAD_PROGRESS"}(t.InterfaceEvent||(t.InterfaceEvent={}))},6430:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});class n{}t.default=n,n.SDK_INIT="SDK_INIT",n.SPLASH_HIDDEN="SPLASH_HIDDEN",n.REQUEST_AD="REQUEST_AD",n.GAME_START="GAME_START",n.GAME_PAUSE="GAME_PAUSE",n.GAME_RESUME="GAME_RESUME",n.READY="WRAPPER_READY"},973:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getConfigOptionAny=t.getConfigOption=void 0;const r=a(n(8744));t.getConfigOption=function(e){return r.default.config.options&&r.default.config.options[e]||!1},t.getConfigOptionAny=function(e){return r.default.config.options&&r.default.config.options[e]||null}},308:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(388)),i=a(n(8744));t.default=class{constructor(){this.loadConfig(r.default.platformConfig)}async loadConfig(e){const t=await fetch(e),n=await t.json();this.createWrapper(n)}async createWrapper(e){}async getLeaderboardHandler(e){let t;return new Promise(((e,n)=>{t=window.setInterval((()=>{(()=>{if(window.sgLeaderboards){window.clearInterval(t);const n=window.sgLeaderboards.getHandler(i.default.config);e(n)}})()}),100)}))}async getIAPDBHandler(){let e;return new Promise(((t,n)=>{e=window.setInterval((()=>{(()=>{if(window.sgIAP){window.clearInterval(e);const n=window.sgIAP.getHandler(i.default.config);t(n)}})()}),100)}))}}},9284:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(5028),i=n(5499),o=a(n(5207)),s=a(n(6631)),l=a(n(1662)),d=a(n(8745)),c=a(n(5663)),u=a(n(5577)),f=a(n(8744)),g=a(n(308));class h extends g.default{async createWrapper(e){f.default.instance.config=e,f.default.instance.platformDefaults=new c.default,e.platform=r.PlatformType.AZERION,f.default.instance.storageManager=new d.default,f.default.instance.commsManager=new s.default,f.default.instance.adManager=new o.default,f.default.instance.placementIDs={rewarded:f.default.config.gameID,interstitial:f.default.config.gameID},f.default.instance.iapManager=new l.default,f.default.instance.SGPreloader=new u.default(!1),f.default.instance.init(e),!0===e.leaderboardSupport&&(f.default.instance.leaderboards=await this.getLeaderboardHandler(i.LeaderboardTypes.FIREBASE)),f.default.instance.onStart()}}t.default=h,new h},2673:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(8744)),i=n(9251),o=n(973),s=a(n(1547)),l=a(n(4599)),d=a(n(2596)),c=a(n(4663)),u=a(n(9912)),f=a(n(3722));class g extends s.default{constructor(e){super(e),this.player=new c.default,this.payments=new d.default,this.tournament=new u.default,this.context=new l.default,this.community=new f.default,window.FBInstant=this}initializeAsync(){return r.default.instance.supportedLanguages=["en"],Promise.resolve()}startGameAsync(){return this.interfaceRef.emit(i.InterfaceEvent.LOAD_PROGRESS,{progress:101}),r.default.commsManager.startGame(),Promise.resolve()}setLoadingProgress(e){const t=e||0;r.default.commsManager.setLoadingProgress(t),e>=100&&this.interfaceRef.emit(i.InterfaceEvent.LOADED)}onPause(e){}getLocale(){return r.default.commsManager.getLanguage()}getPlatform(){return null}getSDKVersion(){return""}logEvent(e,t,n){return null}quit(){}async getInterstitialAdAsync(e){return Promise.resolve({loadAsync:()=>Promise.resolve(),showAsync:()=>r.default.adManager.showInterstitialAd(),getPlacementID:()=>r.default.placementIDs.interstitial})}async getRewardedVideoAsync(e){return Promise.resolve({loadAsync:()=>Promise.resolve(),showAsync:()=>new Promise((async(e,t)=>{await r.default.adManager.showRewardedAd()?e(!0):(0,o.getConfigOption)("rejectFailedRewarded")?t():e(!1)})),getPlacementID:()=>r.default.placementIDs.rewarded})}async getLeaderboardAsync(e){}canCreateShortcutAsync(){return Promise.resolve(!1)}checkCanPlayerMatchAsync(){return Promise.resolve(!1)}createShortcutAsync(){return Promise.resolve(void 0)}getEntryPointAsync(){return Promise.resolve("")}getEntryPointData(){return null}getSupportedAPIs(){let e=["getRewardedVideoAsync","getInterstitialAdAsync","startGameAsync"];return r.default.instance.iapManager.hasIAPSupport()&&(e=e.concat(["payments.purchaseAsync","payments.getCatalogAsync","payments.onReady"])),e}matchPlayerAsync(e,t,n){return Promise.resolve(void 0)}postSessionScore(e){}setSessionData(e){}async shareAsync(e){await r.default.commsManager.shareAsync({title:e.text,text:"Join me on "+r.default.config.gameTitle+"!",image:e.image})}async switchGameAsync(e,t){return await r.default.commsManager.switchGameAsync(e,t)}updateAsync(e){return Promise.resolve(void 0)}}t.default=g},3722:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});t.default=class{async canFollowOfficialPageAsync(){return Promise.resolve(!1)}}},4599:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(8744));t.default=class{getID(){return r.default.config.platform}getType(){return"SOLO"}isSizeBetween(e,t){return null}switchAsync(e){return Promise.resolve()}chooseAsync(e){return Promise.resolve()}createAsync(e){return Promise.resolve()}getPlayersAsync(){return Promise.resolve([])}}},2596:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(9250),i=a(n(8744));t.default=class{async getCatalogAsync(){return await i.default.iapManager.getCatalogAsync()}async purchaseAsync(e){return await i.default.iapManager.purchaseAsync(e)}async getPurchasesAsync(){return await i.default.iapManager.getPurchasesAsync()}async consumePurchaseAsync(e){return await i.default.iapManager.consumePurchaseAsync(e)}onReady(e){if(i.default.iapManager.ready)return e();i.default.iapManager.on(r.IAPEvents.IAP_READY,(()=>{e&&e()}))}hasIAPSupport(){return i.default.iapManager.hasIAPSupport()}}},4663:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(8744));t.default=class{getID(){}getSignedPlayerInfoAsync(e){return Promise.resolve({getPlayerID:()=>"id",getSignature:()=>""})}canSubscribeBotAsync(){return Promise.resolve(!1)}subscribeBotAsync(){return Promise.resolve(void 0)}getName(){return""}getPhoto(){return""}async getDataAsync(e){return await r.default.storageManager.getItem()}setDataAsync(e){return new Promise(((t,n)=>{try{const n=Object.entries(e);for(const[e,t]of n)r.default.storageManager.setItem(e,t);t()}catch(e){n(e)}}))}flushDataAsync(){return Promise.resolve(void 0)}getStatsAsync(e){return Promise.resolve(null)}setStatsAsync(e){return Promise.resolve(void 0)}incrementStatsAsync(e){return Promise.resolve(null)}getConnectedPlayersAsync(){return Promise.resolve([])}}},9912:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});t.default=class{async postScoreAsync(){}async createAsync(){return{getID:()=>0,getContextID:()=>0,getEndTime:()=>0,getTitle:()=>"",getPayload:()=>""}}async getTournamentsAsync(){return[]}async joinAsync(e){}async shareAsync(){}}},694:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(4989),i=n(9251),o=a(n(8744)),s=a(n(1547)),l=a(n(6408)),d=a(n(9854));class c extends s.default{constructor(e){super(e),this.storage={getStorageValue:this.getStorageValue.bind(this),getStorageData:this.getStorageData.bind(this),isGameBotRateLimited:this.isGameBotRateLimited.bind(this),save:this.save.bind(this)},this.loading={finished:this.finished.bind(this)},this.tracking={isFirstTimeUser:this.isFirstTimeUser.bind(this),getGameBotSubscribed:this.getGameBotSubscribed.bind(this),isGameBotRateLimited:this.isGameBotRateLimited.bind(this),getRegistrationDate:this.getRegistrationDate.bind(this)},this.utils={createShortcut:this.createShortcut.bind(this),waitForGBCBeingLive:this.waitForGBCBeingLive.bind(this)},this.backend=new l.default,this.xpromo=new d.default,this.sgModules={backend:this.backend,xpromo:this.xpromo},window.GBCXPromo=this}getGameConfig(){return null}init(e,t){return Promise.resolve()}getLocale(){return console.log("'getLocale' has an implemented logic."),o.default.commsManager.getLanguage()}setLocale(e){return""}prepareText(e,t){return""}getLocalizableContent(e,t){return{default:"",localizations:{}}}setProgress(e){const t=e||0;o.default.commsManager.setLoadingProgress(t)}finished(e){return this.interfaceRef.emit(i.InterfaceEvent.LOADED),this.interfaceRef.emit(i.InterfaceEvent.LOAD_PROGRESS,{progress:101}),Promise.resolve()}async showRewardedAd(e){console.log("'showRewardedAd' has an implemented logic.");return await o.default.adManager.showRewardedAd()}async showInterstitialAd(e){console.log("'showInterstitialAd' has an implemented logic.");return await o.default.adManager.showInterstitialAd()}areRewardedAdsSupported(){return o.default.config.adsConfig.rewarded}areInterstitialAdsSupported(){return!0}gameStart(){this.interfaceRef.emit(r.GameEvent.GAME_START)}gameOver(e,t){this.interfaceRef.emit(r.GameEvent.GAME_OVER,{level:e,score:t}),this.trackScore(e,t)}subscribeToBot(){return Promise.resolve()}isFirstTimeUser(){return!1}getUserLifetime(){return-1}getSessionOfDay(){return-1}getGameBotSubscribed(){return!1}isGameBotRateLimited(){return!1}getRegistrationDate(){return-1}isChallengeAvailable(){return!1}initChallenge(e){}startChallengeAsync(e){return Promise.resolve()}updateScore(e){}getStorageValue(e,t){let n;try{if(n=o.default.storageManager.getItem(e),null!=n)return n}catch(e){console.log(`Could not restore data - ${e}`)}return t}save(e,t){return new Promise(((t,n)=>{try{const n=Object.entries(e);for(const[e,t]of n)o.default.storageManager.setItem(e,t);t()}catch(e){n(e)}}))}load(e){return o.default.storageManager.getItem(e)}getStorageData(){return Object()}getLocalStorageKey(){return""}waitForGBCBeingLive(e){return Promise.resolve()}createShortcut(){return Promise.resolve()}}t.default=c},6408:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});t.default=class{isConnected(){return Promise.resolve(!1)}getUserProfile(){return Promise.resolve(void 0)}getServerTimestamp(){return Promise.resolve(-1)}setUserProfile({handle:e,locale:t}){return Promise.resolve()}syncFriendListByPlatformPlayerId({friendList:e}){return Promise.resolve()}getFriendsScores({leaderboardName:e,instanceId:t}){return Promise.resolve(null)}postScore({leaderboardName:e,instanceId:t,score:n}){return Promise.resolve()}executeRuntimeScript({route:e,args:t}){return Promise.resolve(null)}}},9854:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});t.default=class{getXPromo({userData:e,serverTime:t}){return Promise.resolve([])}switchGame(e){return Promise.resolve()}initialize({gameId:e,playerId:t,switchFunc:n,trackingFunc:a,payload:r,userData:i}){return()=>{}}}},8471:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SGHooksActionType=void 0,function(e){e.RUN="runGame",e.PAUSE="pauseGame",e.UNPAUSE="unpauseGame"}(t.SGHooksActionType||(t.SGHooksActionType={}))},9916:function(__unused_webpack_module,exports,__webpack_require__){var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});const GameEvent_1=__webpack_require__(4989),InterfaceEvent_1=__webpack_require__(9251),WrapperEvent_1=__importDefault(__webpack_require__(6430)),html_1=__webpack_require__(6456),Wrapper_1=__importDefault(__webpack_require__(8744)),InterfaceBase_1=__importDefault(__webpack_require__(1547)),SGHooksActionType_1=__webpack_require__(8471);class SGHooksInterface extends InterfaceBase_1.default{constructor(e){super(e),Wrapper_1.default.instance.supportedLanguages=window.gameLangs,this.loadGameScripts(),window.SG_Hooks=this,window.SG={lang:Wrapper_1.default.commsManager.getLanguage()}}start(){this.interfaceRef.emit(InterfaceEvent_1.InterfaceEvent.LOAD_PROGRESS,{progress:101}),Wrapper_1.default.commsManager.startGame()}triggerMoreGames(){}getLanguage(e){return Wrapper_1.default.commsManager.getLanguage(e)}registerObserver(e){this.observer=e}setPauseHandler(e){Wrapper_1.default.commsManager.setPauseCallback(e),void 0!==this.observer&&this.observer({action:SGHooksActionType_1.SGHooksActionType.PAUSE})}setUnpauseHandler(e){Wrapper_1.default.commsManager.setResumeCallback(e),void 0!==this.observer&&this.observer({action:SGHooksActionType_1.SGHooksActionType.UNPAUSE})}setOrientationHandler(e){window.addEventListener("orientationchange",(()=>{e()}))}setResizeHandler(e){window.addEventListener("resize",(()=>{e()}))}async loaded(){this.interfaceRef.emit(InterfaceEvent_1.InterfaceEvent.LOADED),this.interfaceRef.emit(InterfaceEvent_1.InterfaceEvent.LOAD_PROGRESS,{progress:101}),void 0!==this.observer&&this.observer({action:SGHooksActionType_1.SGHooksActionType.RUN})}async triggerIncentivise(e){const t=await Wrapper_1.default.adManager.showRewardedAd();e&&e(t)}async beforePlayButtonDisplay(e){Wrapper_1.default.config.adsConfig.supportsAdPlayButton=!0;const t=await Wrapper_1.default.adManager.showInterstitialAd();e&&e(t)}async playButtonPressed(e){e&&e()}isEnabledIncentiviseButton(){return!0}levelStarted(e,t){this.interfaceRef.emit(GameEvent_1.GameEvent.LEVEL_START,{level:e}),t&&t()}levelFinished(e,t,n){this.interfaceRef.emit(GameEvent_1.GameEvent.LEVEL_FINISH,{level:e}),this.trackScore(e,t),n&&n()}gameStart(e){this.interfaceRef.emit(GameEvent_1.GameEvent.GAME_START),e&&e()}gameOver(e,t,n){this.interfaceRef.emit(GameEvent_1.GameEvent.GAME_OVER,{level:e,score:t}),this.trackScore(e,t),n&&n()}levelUp(e,t,n){n&&n()}addBooster(){}setStorageItem(e,t){Wrapper_1.default.storageManager.setItem(e,t)}getStorageItem(e){return Wrapper_1.default.storageManager.getItem(e)}setCloseCallback(e){Wrapper_1.default.commsManager.setResumeCallback(e)}async loadGameScripts(){if(window.gameJS){for(const e of window.gameJS)await(0,html_1.createHTMLElement)({src:e,tag:"script"});this.initGame()}else this.initGame()}initGame(){try{Wrapper_1.default.instance.isReady?eval(window.gameOnLoadScript):Wrapper_1.default.instance.once(WrapperEvent_1.default.READY,(()=>{eval(window.gameOnLoadScript)}))}catch(e){}}}exports.default=SGHooksInterface},5797:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(4989),i=n(9251),o=a(n(8744)),s=a(n(1547)),l=n(1010);class d extends s.default{constructor(e){super(e),window.sgSdk=this}initialize(e,t,n){this.initData=t,o.default.instance.supportedLanguages=t.supportedLanguages;let a={commands:{supportedLanguages:t.supportedLanguages},config:{env:{locale:o.default.commsManager.getLanguage()},rewarded:{enabled:!0}}};o.default.commsManager.setPauseCallback((()=>{this.initData.freezeGame()})),o.default.commsManager.setResumeCallback((()=>{this.initData.unfreezeGame()})),o.default.instance.supportedLanguages=t.supportedLanguages,n&&n(null,a,window.sgSdk)}getLocale(){return o.default.commsManager.getLanguage()}async trigger(e,t){switch(e){case l.SGSDKTriggers.START:this.interfaceRef.emit(i.InterfaceEvent.LOAD_PROGRESS,{progress:101}),o.default.commsManager.startGame();break;case l.SGSDKTriggers.LOADING_COMPLETED:this.interfaceRef.emit(i.InterfaceEvent.LOAD_PROGRESS,{progress:101}),this.interfaceRef.emit(i.InterfaceEvent.LOADED),this.initData.runGame();break;case l.SGSDKTriggers.LOADING_UPDATE:this.interfaceRef.emit(i.InterfaceEvent.LOAD_PROGRESS,{progress:t.progressPercentage}),t.progressPercentage>=100&&this.interfaceRef.emit(i.InterfaceEvent.LOADED);break;case l.SGSDKTriggers.SAVE:if(o.default.storageManager.setItem(t.key,t.value),t.callback)return void t.callback();break;case l.SGSDKTriggers.RESTORE:const e=o.default.storageManager.getItem(t.key);if(t.callback)return void t.callback(null,e);break;case l.SGSDKTriggers.REWARDED_AD:const n=await o.default.adManager.showRewardedAd();if(t.callback)return void t.callback(n);break;case l.SGSDKTriggers.BEFORE_PLAY_BUTTON_DISPLAY:const a=await o.default.adManager.showInterstitialAd();if(t.callback)return void t.callback(a);break;case l.SGSDKTriggers.LEVEL_START:if(this.interfaceRef.emit(r.GameEvent.LEVEL_START,{level:t.level}),t.callback)return void t.callback();break;case l.SGSDKTriggers.LEVEL_FINISH:if(this.interfaceRef.emit(r.GameEvent.LEVEL_FINISH,{level:t.level}),this.trackScore(t.level,t.score),t.callback)return void t.callback();break;case l.SGSDKTriggers.GAME_START:this.interfaceRef.emit(r.GameEvent.GAME_START);break;case l.SGSDKTriggers.GAME_OVER:if(this.interfaceRef.emit(r.GameEvent.GAME_OVER,t),this.trackScore(null,t.score),t.callback)return void t.callback();break;case l.SGSDKTriggers.PLAY_BUTTON_PRESSED:if(t.callback)return void t.callback(!0);case l.SGSDKTriggers.MORE_GAMES||l.SGSDKTriggers.GAME_TRACKING||l.SGSDKTriggers.PAGE_DISPLAY:}}}t.default=d},1010:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SGSDKTriggers=void 0,function(e){e.START="start",e.LOADING_COMPLETED="loading.completed",e.LOADING_UPDATE="loading.update",e.SAVE="save",e.RESTORE="restore",e.REWARDED_AD="rewardedAd",e.BEFORE_PLAY_BUTTON_DISPLAY="beforePlayButtonDisplay",e.PLAY_BUTTON_PRESSED="playButtonPressed",e.MORE_GAMES="moreGames",e.GAME_TRACKING="gameTracking",e.PAGE_DISPLAY="pageDisplay",e.LEVEL_START="levelStart",e.LEVEL_FINISH="levelFinish",e.GAME_START="gameStart",e.GAME_OVER="gameOver"}(t.SGSDKTriggers||(t.SGSDKTriggers={}))},1547:function(e,t,n){var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(2665),l=i(n(5215)),d=o(n(8744));t.default=class{constructor(e){this.interfaceRef=e}getConfig(){return d.default.instance.config}getPlayerID(){return d.default.instance.getPlayerID()}setPauseHandler(e){d.default.commsManager.setPauseCallback(e)}setUnpauseHandler(e){d.default.commsManager.setResumeCallback(e)}setAdClosedCallback(e){d.default.adManager.on(s.AdManagerEvent.AD_CLOSE,(()=>{e&&e()}))}startLongPlayAdTimer(){d.default.adManager.forceLongPlayStart(!0)}stopLongPlayAdTimer(){d.default.adManager.forceLongPlayStart(!1)}getWrapper(){return d.default.instance}isIAP(){return d.default.instance.iapManager.hasIAPSupport()}deviceDectorFunctions(){return l}showSupportPopup(){d.default.instance.showSupportPopup()}trackScore(e,t){l.nulOrUnd(e)?l.nulOrUnd(t)||d.default.commsManager.setScore(t):d.default.commsManager.setScore(e)}setIAPGiftCallback(e){d.default.instance.iapTracker.giftManager.setIAPGiftCallback(e)}clearUserData(){d.default.instance.storageManager.clearAllData()}async promptInstallAsync(){return await d.default.commsManager.promptInstallAsync()}}},5499:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LeaderboardTypes=void 0,function(e){e[e.FIREBASE=0]="FIREBASE",e[e.SAMSUNG=1]="SAMSUNG"}(t.LeaderboardTypes||(t.LeaderboardTypes={}))},5207:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(2665),i=a(n(8744)),o=a(n(9167)),s=a(n(1932)),l=a(n(9101)),d=n(2436),c=n(660),u=n(6557);class f extends o.default{async initialize(){super.initialize(),this.sdkRef=i.default.sdkHandler,l.default.i.on(u.AzerionMetaEvents.CONTENT_PAUSE_REQUESTED,(()=>{this.emit(r.AdManagerEvent.AD_START)}));const e=[c.AzerionEvent.SDK_REWARDED_WATCH_COMPLETE,c.AzerionEvent.SDK_SKIPPED,c.AzerionEvent.CONTENT_RESUME_REQUESTED,c.AzerionEvent.SDK_GAME_START];for(let t in e)l.default.i.on(e[t],(()=>{this.emit(r.AdManagerEvent.AD_CLOSE)}));return i.default.config.adsConfig.rewarded&&this.preloadNextRewarded(),this.showPrerollAD=e=>{this.showInterstitialAd(),window.removeEventListener("pointerdown",this.showPrerollAD),e.preventDefault()},window.addEventListener("pointerdown",this.showPrerollAD),Promise.resolve()}async showInterstitialAd(){return true;this.emit(r.AdManagerEvent.AD_REQUESTED),this.adTimer.ready&&(super.showInterstitialAd(),this.sdkRef.showAd())}async showRewardedAd(){return true;super.showRewardedAd(),this.emit(r.AdManagerEvent.AD_REQUESTED);let e=!1;const t=new Promise((async(t,n)=>{const a=()=>{e=!0},i=()=>{o(),this.emit(r.AdManagerEvent.AD_CLOSE),this.emit(e?r.AdManagerEvent.AD_COMPLETE:r.AdManagerEvent.AD_ERROR),t(e)},o=()=>{l.default.i.removeListener(c.AzerionEvent.SDK_REWARDED_WATCH_COMPLETE,a),l.default.i.removeListener(c.AzerionEvent.SDK_SKIPPED,i),l.default.i.removeListener(c.AzerionEvent.CONTENT_RESUME_REQUESTED,i),l.default.i.removeListener(c.AzerionEvent.SDK_GAME_START,i)};l.default.i.on(c.AzerionEvent.SDK_REWARDED_WATCH_COMPLETE,a),l.default.i.on(c.AzerionEvent.SDK_SKIPPED,i),l.default.i.on(c.AzerionEvent.CONTENT_RESUME_REQUESTED,i),l.default.i.on(c.AzerionEvent.SDK_GAME_START,i),this.sdkRef.showAd(d.AzerionAdType.REWARDED)}));return this.preloadNextRewarded(),t}setupTimer(){this.adTimer=new s.default,super.setupTimer()}async preloadNextRewarded(){return true;let{err:e}=await this.sdkRef.preloadAd(d.AzerionAdType.REWARDED);e?console.log("ADManager : Rewarded Ad could not be preloaded."):console.log("ADManager : Rewarded Ad loaded succesfully.")}}t.default=f},1932:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(5522)),i=a(n(4267));class o extends r.default{constructor(){super(),this.initialize(i.default.get())}}t.default=o},6631:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(6043),i=a(n(6430)),o=n(6456),s=a(n(8744)),l=a(n(9977)),d=a(n(9101)),c=n(660);class u extends l.default{constructor(){super(...arguments),this.hasPaused=!1}async initialize(){window.GD_OPTIONS={gameId:s.default.config.gameID,prefix:"sg_",onEvent:function(e){console.log("event :: "+e.name),d.default.i.emit(e.name,e)},advertisementSettings:{debug:!1,autoplay:!1,locale:"en"}};const e=new Promise((async(e,t)=>{d.default.i.once(c.AzerionEvent.SDK_READY,(()=>{if(window.gdsdk)s.default.sdkHandler=window.gdsdk,this.sdkRef=s.default.sdkHandler,e(!0);else{const t=setInterval((()=>{window.gdsdk&&(clearInterval(t),s.default.sdkHandler=window.gdsdk,this.sdkRef=s.default.sdkHandler,e(!0))}),10)}}))}));return function(e,t,n){let a,r=e.getElementsByTagName(t)[0];e.getElementById(n)||(a=e.createElement(t),a.id=n,a.src="patch/js/gd-sdk.js?html5.api.gamedistribution.com/main.min.js",r.parentNode.insertBefore(a,r))}(document,"script","gamedistribution-jssdk"),d.default.i.on(c.AzerionEvent.SDK_GAME_PAUSE,(()=>{this.hasPaused=!0,s.default.instance.emit(i.default.GAME_PAUSE)})),d.default.i.on(c.AzerionEvent.SDK_GAME_START,(()=>{this.hasPaused&&s.default.instance.emit(i.default.GAME_RESUME),this.hasPaused=!1})),e}async startGame(){return Promise.resolve({err:null})}getLanguage(e=[]){return(0,o.getParameterByName)("lang")||r.Default.LANG}setLoadingProgress(e){}setPauseCallback(e){d.default.i.on(c.AzerionEvent.SDK_GAME_PAUSE,(()=>{e&&e()}))}setResumeCallback(e){d.default.i.on(c.AzerionEvent.SDK_GAME_START,(()=>{e&&e()}))}setCloseCallback(e){}checkPlatformSupport(e){return!0}setScore(e){}}t.default=u},9101:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(1075));class i extends r.default{static get i(){return i._i?i._i:i._i=new i}}t.default=i},1662:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(4171));class i extends r.default{hasIAPSupport(){return!1}}t.default=i},8745:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(247));class i extends r.default{async setCloudData(e,t){}async getCloudData(e){return null}}t.default=i},4267:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});class n{constructor(){this.adCooldownDuration=1e3,this.adWarningDuration=5e3,this.startOnCooldown=!1,this.maxLongPlayAdTimerRollover=2e3,this.prerollAd=!0}static get(){return new n}}t.default=n},2436:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AzerionAdType=void 0,function(e){e.REWARDED="rewarded"}(t.AzerionAdType||(t.AzerionAdType={}))},5663:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});t.default=class{constructor(){this.useAdLoader=!0}}},660:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AzerionEvent=void 0,function(e){e.SDK_GAME_START="SDK_GAME_START",e.CONTENT_RESUME_REQUESTED="CONTENT_RESUME_REQUESTED",e.SDK_GAME_PAUSE="CONTENT_PAUSE_REQUESTED",e.SDK_GDPR_TRACKING="SDK_GDPR_TRACKING",e.SDK_REWARDED_WATCH_COMPLETE="SDK_REWARDED_WATCH_COMPLETE",e.SDK_SKIPPED="SKIPPED",e.SDK_COMPLETE="COMPLETE",e.SDK_READY="SDK_READY",e.SDK_STARTED="STARTED",e.AD_ERROR="AD_ERROR",e.AD_IS_ALREADY_RUNNING="AD_IS_ALREADY_RUNNING"}(t.AzerionEvent||(t.AzerionEvent={}))},6557:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AzerionMetaEvents=void 0,function(e){e.AD_ERROR="AD_ERROR",e.AD_BREAK_READY="AD_BREAK_READY",e.AD_METADATA="AD_METADATA",e.ALL_ADS_COMPLETED="ALL_ADS_COMPLETED",e.CLICK="CLICK",e.COMPLETE="COMPLETE",e.CONTENT_PAUSE_REQUESTED="CONTENT_PAUSE_REQUESTED",e.CONTENT_RESUME_REQUESTED="CONTENT_RESUME_REQUESTED",e.DURATION_CHANGE="DURATION_CHANGE",e.FIRST_QUARTILE="FIRST_QUARTILE",e.IMPRESSION="IMPRESSION",e.INTERACTION="INTERACTION",e.LINEAR_CHANGED="LINEAR_CHANGED",e.LOADED="LOADED",e.LOG="LOG",e.MIDPOINT="MIDPOINT",e.PAUSED="PAUSED",e.RESUMED="RESUMED",e.SKIPPABLE_STATE_CHANGED="SKIPPABLE_STATE_CHANGED",e.THIRD_QUARTILE="THIRD_QUARTILE",e.USER_CLOSE="USER_CLOSE",e.VOLUME_CHANGED="VOLUME_CHANGED",e.VOLUME_MUTED="VOLUME_MUTED",e.GDPR_TARGETING="SDK_GDPR_TARGETING",e.SDK_GDPR_THIRD_PARTY="SDK_GDPR_THIRD_PARTY"}(t.AzerionMetaEvents||(t.AzerionMetaEvents={}))},5577:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(2801)),i=a(n(1790));class o extends i.default{constructor(e=!0){super(e)}build(){super.build(),this.spinner.classList.remove("progress-ring"),this.spinner.setAttribute("class","progressringaz"),this.circle.setAttribute("r",""+(r.default.SPLASH_SPINNER_SIZE_AZ-r.default.SPLASH_SPINNER_STROKE/2)),this.circle.setAttribute("cx",`${r.default.SPLASH_SPINNER_SIZE_AZ}`),this.circle.setAttribute("cy",`${r.default.SPLASH_SPINNER_SIZE_AZ}`),this.circle.setAttribute("stroke-width",`${r.default.SPLASH_SPINNER_STROKE}`),this.background.setAttribute("class","background-circle"),this.background.setAttribute("r",""+(r.default.SPLASH_SPINNER_SIZE_AZ-r.default.SPLASH_SPINNER_STROKE/2)),this.background.setAttribute("cx",`${r.default.SPLASH_SPINNER_SIZE_AZ}`),this.background.setAttribute("cy",`${r.default.SPLASH_SPINNER_SIZE_AZ}`),this.background.setAttribute("stroke-width",`${r.default.SPLASH_SPINNER_STROKE}`)}show(){window.setTimeout((()=>{this.hide()}),3e3),this.root.appendChild(this.bg)}hide(){this.root.removeChild(this.bg)}updateProgress(e){super.updateProgress(e)}setupLoadedEvent(){}timeLeftMS(){return super.timeLeftMS()}destroy(){super.destroy()}onLogoShown(){this.softgamesLogo.setAttribute("class","sg-logo-azerion")}}t.default=o},9167:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(1075)),i=n(2665),o=n(7540),s=n(4989),l=n(5215),d=a(n(8744));class c extends r.default{constructor(){super(),this.levelsPlayedSinceLastAd=0}async initialize(){this.setupTimer(),d.default.interface.on(s.GameEvent.GAME_OVER,(e=>{this.onGameOver(e)})),d.default.interface.on(s.GameEvent.LEVEL_FINISH,(e=>{this.onGameOver(e)}))}forceLongPlayStart(e){e?this.adTimer.startLongPlayAdTimer():this.adTimer.stopLongPlayAdTimer()}get longPlayTimeLeft(){return this.adTimer.longPlayTimeLeft}showInterstitialAd(){d.default.config.options&&!0===d.default.config.options.disableAllAds||(d.default.adManager.once(i.AdManagerEvent.AD_CLOSE,(()=>{d.default.config.adsConfig.enableLongGameplayAds&&this.adTimer.startLongPlayAdTimer()})),this.adTimer.stopLongPlayAdTimer(),this.emit(i.AdManagerEvent.INTERSTITIAL_AD_REQUESTED))}showRewardedAd(){d.default.config.options&&!0===d.default.config.options.disableAllAds||this.emit(i.AdManagerEvent.REWARDED_AD_REQUESTED)}setupTimer(){this.adTimer.on(o.AdTimerEvent.LONGPLAY_TRIGGER,(()=>{this.showInterstitialAd()}))}onGameOver(e){this.shouldAdPlayOnGameEnd(e.level,e.score)&&this.showInterstitialAd()}shouldAdPlayOnGameEnd(e,t){this.levelsPlayedSinceLastAd++;const n=!d.default.config.adsConfig.supportsAdPlayButton&&(e>=d.default.config.adsConfig.adFreeInitialLevels||(0,l.nulOrUnd)(e))&&this.levelsPlayedSinceLastAd>d.default.config.adsConfig.interstitialCooldownLevel;return n&&(this.levelsPlayedSinceLastAd=0),n}}t.default=c},5522:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(1075)),i=a(n(8744)),o=n(4989),s=n(2665),l=n(7540),d=a(n(6430));class c extends r.default{constructor(){super(...arguments),this._longPlayTimeLeft=-1,this.isGameOrLevelPlaying=!1}get ready(){return this._ready}get freeRewardedReady(){return this._freeRewardedReady}get longPlayTimeLeft(){return this._longPlayTimeLeft}initialize(e){if(this.adRules=e,this.isLongPlayTimerRunning=!1,i.default.config.adsConfig.enableLongGameplayAds){const e=()=>{this.isGameOrLevelPlaying=!0,this.startLongPlayAdTimer()},t=()=>{this.isGameOrLevelPlaying=!1,this.stopLongPlayAdTimer()};i.default.interface.on(o.GameEvent.GAME_START,(()=>{e()})),i.default.interface.on(o.GameEvent.LEVEL_START,(()=>{e()})),i.default.interface.on(o.GameEvent.GAME_OVER,(()=>{t()})),i.default.interface.on(o.GameEvent.LEVEL_FINISH,(()=>{t()}))}this._ready=!e.startOnCooldown,e.startOnCooldown&&(i.default.instance.gameStarted?this.startAdCoolDownTimer():i.default.instance.once(d.default.GAME_START,(()=>{this.startAdCoolDownTimer()}))),this.handleFreeRewardedTimer(),i.default.adManager.on(s.AdManagerEvent.AD_SKIP,(()=>{this.onAdPlayed()})),i.default.adManager.on(s.AdManagerEvent.AD_ERROR,(()=>{this.onAdFail()}))}startLongPlayAdTimer(){!this.isLongPlayTimerRunning&&this.isGameOrLevelPlaying&&(console.log("LONG PLAY TIMER STARTED"),this.isLongPlayTimerRunning=!0,this.longPlayTimerID&&window.clearInterval(this.longPlayTimerID),this._longPlayTimeLeft=i.default.config.adsConfig.longGameplayCooldownMS,this.longPlayTimerID=window.setInterval((()=>{this._longPlayTimeLeft-=1e3,this.emit(l.AdTimerEvent.LONGPLAY_TICK),this._longPlayTimeLeft<=0?(window.clearInterval(this.longPlayTimerID),this.onLongPlayTimerEnd()):this._longPlayTimeLeft<=this.adRules.adWarningDuration&&this.tickWarning()}),1e3),this.emit(l.AdTimerEvent.LONGPLAY_TICKER_START))}stopLongPlayAdTimer(){console.log("LONG PLAY TIMER STOPPED"),window.clearTimeout(this.longPlayTimerID),this.isLongPlayTimerRunning=!1,this.emit(l.AdTimerEvent.LONGPLAY_TICKER_STOP)}isInterstitialAdPreloaded(){return!1}tickWarning(){this._longPlayTimeLeft==this.adRules.adWarningDuration&&this.emit(l.AdTimerEvent.LONGPLAY_WARN),console.log("warning :: "+this._longPlayTimeLeft),this.emit(l.AdTimerEvent.LONGPLAY_WARN_TICK)}startAdCoolDownTimer(){console.log("AD IS ON COOLDOWN FOR THE NEXT "+this.adRules.adCooldownDuration/1e3+"SECONDS."),this.adCooldownTimerID=window.setTimeout((()=>{this.onAdCoolDownTimerEnd()}),this.adRules.adCooldownDuration),this.emit(l.AdTimerEvent.COOLDOWN_START)}stopAdCoolDownTimer(){console.log("AD COOLDOWN ENDED."),window.clearTimeout(this.adCooldownTimerID)}handleFreeRewardedTimer(){this._freeRewardedReady=!0,i.default.adManager.on(s.AdManagerEvent.FREE_REWARD_AWARDED,(()=>{this._freeRewardedReady=!1,window.setTimeout((()=>{this._freeRewardedReady=!0}),i.default.config.adsConfig.freeRewardedCooldown)}))}onAdPlayed(){this._ready=!1,this._longPlayTimeLeft=i.default.config.adsConfig.longGameplayCooldownMS,this.startAdCoolDownTimer()}onAdFail(){}onAdCoolDownTimerEnd(){this._ready=!0,this.emit(l.AdTimerEvent.COOLDOWN_END)}onLongPlayTimerEnd(){this._longPlayTimeLeft=i.default.config.adsConfig.longGameplayCooldownMS,i.default.adManager.once(s.AdManagerEvent.AD_CLOSE,(()=>{i.default.config.adsConfig.enableLongGameplayAds&&(this.stopLongPlayAdTimer(),this.startLongPlayAdTimer())})),this.emit(l.AdTimerEvent.LONGPLAY_TRIGGER),console.log("LONG PLAY AD TRIGERRED"),this.isLongPlayTimerRunning=!1}}t.default=c},9977:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(1075));class i extends r.default{constructor(){super(...arguments),this.isPlatformSupported=!0,this._playerID=""}checkPlatformSupport(e){return this.isPlatformSupported}get playerID(){return null}async promptInstallAsync(){}async shareAsync(e){}async switchGameAsync(e,t){}}t.default=i},4171:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(1075)),i=a(n(8744));class o extends r.default{constructor(){super(...arguments),this.isInit=!1}initialize(){return Promise.resolve(!0)}getCatalogAsync(){return Promise.resolve([])}purchaseAsync(e){return Promise.resolve(null)}getPurchasesAsync(){return Promise.resolve([])}consumePurchaseAsync(e){return Promise.resolve()}onReady(e){e&&e()}hasIAPSupport(){return i.default.config.inAppPurchase}getSupportedAPIs(){return[]}get ready(){return this.isInit}}t.default=o},247:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(9233),i=n(973),o=n(5215),s=a(n(8744));t.default=class{constructor(){this.store={_lastUpdate:0},this.maxSaveInterval=2e3,this.canSaveNow=!0}async initialize(e){const t=()=>{const t=e.gameSlug.replace(/-/g,"_").toUpperCase();this.storageKey=(0,r.v5)(`${t}_STORAGE`,"28c78f71-1c31-4331-a9ca-e51e9221b3fa")};s.default.config.options?(0,o.nulOrUnd)(s.default.config.options.forceKey)?t():this.storageKey=s.default.config.options.forceKey:t();const n=this.getLocalData(this.storageKey),a=await this.getCloudData(this.storageKey);this.store=a||n,console.log(`user data loaded from '${a?"cloudStorage":"localStorage"}'.`),console.log(`data: ${JSON.stringify(this.store)}`),setInterval((()=>{this.canSaveNow=!0}),this.maxSaveInterval)}setItem(e,t){const n=Date.now();return this.store=Object.assign(Object.assign({},this.store),{[e]:t,_lastUpdate:n}),this.save()}getItem(e){return null===this.store?null:void 0===e?this.store:null!=this.store[e]?this.store[e]:null}getDataForKeys(e){let t=[];return e.forEach((e=>{t.push({name:e,value:this.getItem(e)})})),t}clearAllData(){this.store={_lastUpdate:0},this.save()}async save(){if(!this.canSaveNow&&(0,i.getConfigOption)("limitSaveCalls"))return clearTimeout(this.retryTimeOut),void(this.retryTimeOut=setTimeout((()=>{this.save()}),500));this.canSaveNow=!1,this.saveLocalData(this.storageKey,this.store);return(()=>this.setCloudData(this.storageKey,this.store))()}saveLocalData(e,t){const n=JSON.stringify(t);localStorage.setItem(e,n)}getLocalData(e){const t=localStorage.getItem(e);return t&&JSON.parse(t)}async setCloudData(e,t){}async getCloudData(e){return null}}},1840:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(2665),i=n(7540),o=a(n(8744)),s=n(7345);t.default=class{constructor(){const e=(0,s.getUIRoot)();this.tag=document.createElement("div"),this.tag.setAttribute("class","countdown-tag"),e.appendChild(this.tag),this.textfield=document.createElement("h4"),this.textfield.setAttribute("class","countdown-tag-label"),this.tag.appendChild(this.textfield),o.default.adManager.adTimer.on(i.AdTimerEvent.LONGPLAY_WARN,(()=>{this.show()})),o.default.adManager.adTimer.on(i.AdTimerEvent.LONGPLAY_WARN_TICK,(()=>{this.update(o.default.adManager.adTimer.longPlayTimeLeft/1e3)})),o.default.adManager.on(r.AdManagerEvent.AD_START,(()=>{this.hide()}))}show(){this.tag.classList.toggle("countdown-tag-fadeIn",!0)}update(e){this.textfield.textContent=`Ad in ${e}s`,1===e?window.setTimeout((()=>{this.hide()}),1e3):e<0&&this.hide()}hide(){this.tag.classList.toggle("countdown-tag-fadeIn",!1)}}},9714:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=n(5215),r=n(939),i=n(973),o=n(7345);t.default=class{constructor(){const e=(0,i.getConfigOptionAny)("lockOrientation");e!==r.OrientationLock.NONE&&null!==e&&(this.validOrientation=e===r.OrientationLock.LANDSCAPE?90:0,this.build())}build(){const e=(0,o.getUIRoot)();this.bg=document.createElement("div"),this.bg.setAttribute("class","orientation-screen");const t=document.createElement("img");t.src="lib/assets/rotateIcon.png",t.setAttribute("class","orientation-screen-ico"),this.bg.appendChild(t);const n=()=>{(0,a.getOrientation)()!==this.validOrientation?e.contains(this.bg)||e.appendChild(this.bg):e.contains(this.bg)&&e.removeChild(this.bg)};window.addEventListener("orientationchange",(()=>{n(),setTimeout((()=>{n()}),500)})),n(),setTimeout((()=>{n()}),1500)}}},5038:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(388)),i=n(6618),o=a(n(8744)),s=n(7345),l=n(4186),d=n(5215);class c{constructor(){this.isBuilt=!1}static show(){null==c._instance&&(c._instance=new c),c._instance.show()}build(){this.isBuilt=!0,this.container=document.createElement("div"),this.container.setAttribute("class","supportPopupContainer"),this.fullBG=document.createElement("div"),this.fullBG.setAttribute("class","fullBG");const e=document.createElement("div");e.setAttribute("class","supportPopup"),this.container.appendChild(e),e.style.backgroundImage="url(./"+r.default.supportPopupBG+")";const t=document.createElement("img");t.src=r.default.supportPopupCloseBtn,t.setAttribute("class","supportPopupCloseBtn"),t.onclick=()=>{this.hide()},this.container.appendChild(t);const n=document.createElement("img");n.src=r.default.supportPopupTextFrame,n.setAttribute("class","termsAndConditionsBg");const a=document.createElement("img");a.src=r.default.supportPopupTextFrame,a.setAttribute("class","privacyPolicyBg");const s=document.createElement("div"),d=document.createElement("div");let c=o.default.commsManager.getLanguage();i.wrapperLanguages.includes(c)||(c="en");let u="kr"==c?l.LinksKR.TOS:l.Links.TOS,f="kr"==c?l.LinksKR.PRIVACYPOLICY:l.Links.PRIVACYPOLICY;s.setAttribute("class","termsAndConditionsLinkText"),s.innerHTML=""+i.TEXTS[c].tos+"",d.setAttribute("class","privacyPolicyLinkText"),d.innerHTML=""+i.TEXTS[c].privacy+"",this.playerIdText=document.createElement("div"),this.playerIdText.setAttribute("class","playerIdText");const g=document.createElement("div");g.setAttribute("class","contactUs"),g.innerText="Contact Us:";const h=document.createElement("div");h.setAttribute("class","supportEmail"),h.innerText="support-samsung@softgames.de",this.container.appendChild(n),this.container.appendChild(a),this.container.appendChild(s),this.container.appendChild(d),this.container.appendChild(g),this.container.appendChild(h),this.container.appendChild(this.playerIdText)}show(){this.isBuilt||this.build();const e=(0,s.getUIRoot)();e.appendChild(this.fullBG),e.appendChild(this.container);const t=o.default.instance.getPlayerID();this.playerIdText.innerHTML=(0,d.nulOrUnd)(t)?"":"ID: "+t}hide(){const e=(0,s.getUIRoot)();e.contains(this.container)&&e.removeChild(this.container),e.contains(this.fullBG)&&e.removeChild(this.fullBG)}}t.default=c,c._instance=null},6456:(e,t)=>{function n(e){return new Promise((t=>{document.addEventListener(e,t)}))}Object.defineProperty(t,"__esModule",{value:!0}),t.getParameterByName=t.DOMEventToPromise=t.createHTMLElement=void 0,t.createHTMLElement=async function({tag:e,id:t,src:a,style:r,optParent:i}){document.body||await n("DOMContentLoaded");const o=document.createElement(e);if(t&&(o.id=t),r&&o.setAttribute("style",r),(i||document.body).appendChild(o),a){const e=function(e){return new Promise((t=>{e.onload=()=>{t()}}))}(o);o.setAttribute("src",a),await e}return o},t.DOMEventToPromise=n,t.getParameterByName=function(e,t=window.location.href){e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}},7345:(e,t)=>{function n(){const e=document.createElement("div");return e.setAttribute("id",t.UI_ROOT_ELEMENT_ID),e.setAttribute("class","wrapper-ui"),document.body.appendChild(e),e}Object.defineProperty(t,"__esModule",{value:!0}),t.getUIRoot=t.createUIRoot=t.UI_ROOT_ELEMENT_ID=void 0,t.UI_ROOT_ELEMENT_ID="ui-root",t.createUIRoot=n,t.getUIRoot=function(){return document.getElementById(t.UI_ROOT_ELEMENT_ID)||n()}},2915:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(2665),i=a(n(8744)),o=n(7345);t.default=class{constructor(){this.root=(0,o.getUIRoot)(),this.bg=document.createElement("div"),this.bg.setAttribute("class","loading-screen");const e=document.createElement("div");e.setAttribute("class","spinner"),this.bg.appendChild(e),i.default.adManager.on(r.AdManagerEvent.AD_REQUESTED,(()=>{this.show()})),i.default.adManager.on(r.AdManagerEvent.AD_START,(()=>{this.hide()})),i.default.adManager.on(r.AdManagerEvent.AD_CLOSE,(()=>{this.hide()}))}show(){this.root.appendChild(this.bg),window.setTimeout((()=>{this.hide()}),5e3)}hide(){this.root.contains(this.bg)&&this.root.removeChild(this.bg)}}},1790:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(7345),i=a(n(2801)),o=n(6456),s=a(n(388)),l=n(9251),d=a(n(8744));t.default=class{constructor(e=!0){this.loadingScreenDuration=3e3,this.showRating=e,this.hideCalled=!1,this.loadingScreenRemoved=!1,this.root=(0,r.createUIRoot)(),this.build(),this.setupLoadedEvent()}setupLoadedEvent(){d.default.interface.once(l.InterfaceEvent.LOADED,(()=>{this.isLoaded=!0,this.canHide&&this.hide()}))}build(){this.hideTimer=window.setTimeout((()=>{this.canHide=!0,this.isLoaded&&this.hide()}),this.loadingScreenDuration),this.bg=document.createElement("div"),this.bg.setAttribute("class","splash-screen");const e=document.createElement("img");e.setAttribute("src","./Icon_512x512.png"),e.setAttribute("class","background-image"),this.bg.appendChild(e);const t=document.createElement("img");t.setAttribute("src","./Icon_512x512.png"),t.setAttribute("class","game-logo"),this.bg.appendChild(t),this.spinner=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.spinner.setAttribute("class","progress-ring"),this.background=document.createElementNS("http://www.w3.org/2000/svg","circle"),this.background.setAttribute("class","background-circle"),this.background.setAttribute("r",""+(i.default.SPLASH_SPINNER_SIZE-i.default.SPLASH_SPINNER_STROKE/2)),this.background.setAttribute("cx",`${i.default.SPLASH_SPINNER_SIZE}`),this.background.setAttribute("cy",`${i.default.SPLASH_SPINNER_SIZE}`),this.background.setAttribute("stroke-width",`${i.default.SPLASH_SPINNER_STROKE}`),this.spinner.appendChild(this.background),this.circle=document.createElementNS("http://www.w3.org/2000/svg","circle"),this.circle.classList.add("progress-ring-circle"),this.circle.setAttribute("r",""+(i.default.SPLASH_SPINNER_SIZE-i.default.SPLASH_SPINNER_STROKE/2)),this.circle.setAttribute("cx",`${i.default.SPLASH_SPINNER_SIZE}`),this.circle.setAttribute("cy",`${i.default.SPLASH_SPINNER_SIZE}`),this.circle.setAttribute("stroke-width",`${i.default.SPLASH_SPINNER_STROKE}`),this.circle.style.animation="spin 2s linear infinite",this.spinner.appendChild(this.circle),this.bg.appendChild(this.spinner),(0,o.createHTMLElement)({tag:"img"}).then((async e=>{e.src=s.default.softgamesLogo,e.setAttribute("class","softgames-logo"),this.softgamesLogo=e,this.bg.append(e),this.onLogoShown()})),this.showRating&&(0,o.createHTMLElement)({tag:"img",id:i.default.RATING_CONTAINER_ID}).then((async e=>{e.src=s.default.ratingImage,this.bg.append(e)})),this.createdAt=new Date,this.circumference=2*(i.default.SPLASH_SPINNER_SIZE-i.default.SPLASH_SPINNER_STROKE/2)*Math.PI,this.circle.style.strokeDasharray=`${this.circumference} ${this.circumference}`,this.circle.style.strokeDashoffset=""+(this.circumference-1/3*this.circumference)}show(){this.hideCalled&&window.setTimeout((()=>{this.hide()}),this.loadingScreenDuration),this.root.appendChild(this.bg)}hide(){this.root.contains(this.bg)&&!this.loadingScreenRemoved?window.setTimeout((()=>{this.loadingScreenRemoved=!0,this.root.contains(this.bg)&&this.root.removeChild(this.bg)}),this.loadingScreenDuration):window.setTimeout((()=>{this.hide()}),1e3)}updateProgress(e){this.circle.style.animation="",e=Math.max(e,30),e=Math.min(e,100);const t=this.circumference-e/100*this.circumference;this.circle.style.strokeDashoffset=t}timeLeftMS(){return Math.max(0,i.default.SHOW_RATING_DURATION_MS+i.default.SAMSUNG_SPLASH_DURATION_MS-((new Date).getTime()-this.createdAt.getTime()))}destroy(){this.hide()}onLogoShown(){}}},240:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});t.default=class{constructor(){this.oldO=window.orientation,this.oldW=window.innerWidth,this.oldH=window.innerHeight,window.addEventListener("resize",(()=>{window.setTimeout((()=>{const e=this.oldW!==window.innerWidth||this.oldH!==window.innerHeight,t=this.oldW/this.oldH==window.innerWidth/window.innerHeight;this.oldW=window.innerWidth,this.oldH=window.innerHeight;const n=this.oldO!==window.orientation;this.oldO=window.orientation,!e||n||t||location.reload()}),500)}))}}},6618:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.wrapperLanguages=t.TEXTS=void 0,t.TEXTS=[],t.TEXTS.fr={play:"JOUER",tos:"Conditions d'utilisation",privacy:"Politique de confidentialité"},t.TEXTS.de={play:"SPIELEN",tos:"Geschäftsbedingungen",privacy:"Datenschutzerklärung"},t.TEXTS.en={play:"PLAY",tos:"Terms & Conditions",privacy:"Privacy Policy"},t.TEXTS.es={play:"JUEGA",tos:"Términos y condiciones",privacy:"Política de privacidad"},t.TEXTS.it={play:"GIOCA",tos:"Termini e Condizioni",privacy:"Informativa sulla privacy"},t.TEXTS.pt={play:"JOGAR",tos:"Termos e condições",privacy:"Política de privacidade"},t.TEXTS.ru={play:"Играть",tos:"Условия",privacy:"Политика конфиденциальн"},t.TEXTS.tr={play:"OYNA",tos:"Şart ve Koşullar",privacy:"Gizlilik Politikası"},t.TEXTS.nl={play:"SPEEL",tos:"Voorwaarden",privacy:"Privacybeleid"},t.TEXTS.pl={play:"GRAJ",tos:"Zasady i warunki",privacy:"Polityka prywatności"},t.TEXTS.hi={play:"खेलें",tos:"Terms & Conditions",privacy:"Privacy Policy"},t.TEXTS.vi={play:"Chơi",tos:"Điều khoản & Điều kiện",privacy:"Chính sách Quyền riêng tư"},t.TEXTS.th={play:"เล่น",tos:"Terms & Conditions",privacy:"Privacy Policy"},t.TEXTS.ja={play:"プレイ",tos:"利用規約",privacy:"プライバシーポリシー"},t.TEXTS.kr={play:"놀다",tos:"이용 약관",privacy:"개인정보 보호 정책"},t.TEXTS.ar={play:"لعب",tos:"Terms & Conditions",privacy:"Privacy Policy"},t.wrapperLanguages=["en","fr","de","es","it","pt","ru","tr","nl","pl","hi","vi","th","ja","kr","ar"]},9233:(e,t,n)=>{var a;n.r(t),n.d(t,{NIL:()=>M,parse:()=>_,stringify:()=>c,v1:()=>p,v3:()=>b,v4:()=>R,v5:()=>O,validate:()=>s,version:()=>N});var r=new Uint8Array(16);function i(){if(!a&&!(a="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return a(r)}const o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const s=function(e){return"string"==typeof e&&o.test(e)};for(var l=[],d=0;d<256;++d)l.push((d+256).toString(16).substr(1));const c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(l[e[t+0]]+l[e[t+1]]+l[e[t+2]]+l[e[t+3]]+"-"+l[e[t+4]]+l[e[t+5]]+"-"+l[e[t+6]]+l[e[t+7]]+"-"+l[e[t+8]]+l[e[t+9]]+"-"+l[e[t+10]]+l[e[t+11]]+l[e[t+12]]+l[e[t+13]]+l[e[t+14]]+l[e[t+15]]).toLowerCase();if(!s(n))throw TypeError("Stringified UUID is invalid");return n};var u,f,g=0,h=0;const p=function(e,t,n){var a=t&&n||0,r=t||new Array(16),o=(e=e||{}).node||u,s=void 0!==e.clockseq?e.clockseq:f;if(null==o||null==s){var l=e.random||(e.rng||i)();null==o&&(o=u=[1|l[0],l[1],l[2],l[3],l[4],l[5]]),null==s&&(s=f=16383&(l[6]<<8|l[7]))}var d=void 0!==e.msecs?e.msecs:Date.now(),p=void 0!==e.nsecs?e.nsecs:h+1,_=d-g+(p-h)/1e4;if(_<0&&void 0===e.clockseq&&(s=s+1&16383),(_<0||d>g)&&void 0===e.nsecs&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");g=d,h=p,f=s;var m=(1e4*(268435455&(d+=122192928e5))+p)%4294967296;r[a++]=m>>>24&255,r[a++]=m>>>16&255,r[a++]=m>>>8&255,r[a++]=255&m;var A=d/4294967296*1e4&268435455;r[a++]=A>>>8&255,r[a++]=255&A,r[a++]=A>>>24&15|16,r[a++]=A>>>16&255,r[a++]=s>>>8|128,r[a++]=255&s;for(var E=0;E<6;++E)r[a+E]=o[E];return t||c(r)};const _=function(e){if(!s(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};function m(e,t,n){function a(e,a,r,i){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n>>9<<4)+1}function E(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function v(e,t,n,a,r,i){return E((o=E(E(t,e),E(a,i)))<<(s=r)|o>>>32-s,n);var o,s}function S(e,t,n,a,r,i,o){return v(t&n|~t&a,e,t,r,i,o)}function y(e,t,n,a,r,i,o){return v(t&a|n&~a,e,t,r,i,o)}function T(e,t,n,a,r,i,o){return v(t^n^a,e,t,r,i,o)}function P(e,t,n,a,r,i,o){return v(n^(t|~a),e,t,r,i,o)}const w=function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n>5]>>>r%32&255,o=parseInt(a.charAt(i>>>4&15)+a.charAt(15&i),16);t.push(o)}return t}(function(e,t){e[t>>5]|=128<>5]|=(255&e[a/8])<>>32-t}const L=function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var a=unescape(encodeURIComponent(e));e=[];for(var r=0;r>>0;E=A,A=m,m=I(_,30)>>>0,_=p,p=y}n[0]=n[0]+p>>>0,n[1]=n[1]+_>>>0,n[2]=n[2]+m>>>0,n[3]=n[3]+A>>>0,n[4]=n[4]+E>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]};const O=m("v5",80,L),M="00000000-0000-0000-0000-000000000000";const N=function(e){if(!s(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.exports}__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__=__webpack_require__(9284)})(); \ No newline at end of file diff --git a/vex8/patch/js/AzerionWrapper_v2.7.7.js b/vex8/patch/js/AzerionWrapper_v2.7.7.js new file mode 100644 index 000000000..a18c55fea --- /dev/null +++ b/vex8/patch/js/AzerionWrapper_v2.7.7.js @@ -0,0 +1 @@ +(()=>{"use strict";var __webpack_modules__={1075:e=>{var t=Object.prototype.hasOwnProperty,n="~";function a(){}function r(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,a,i,o){if("function"!=typeof a)throw new TypeError("The listener must be a function");var s=new r(a,i||e,o),l=n?n+t:t;return e._events[l]?e._events[l].fn?e._events[l]=[e._events[l],s]:e._events[l].push(s):(e._events[l]=s,e._eventsCount++),e}function o(e,t){0==--e._eventsCount?e._events=new a:delete e._events[t]}function s(){this._events=new a,this._eventsCount=0}Object.create&&(a.prototype=Object.create(null),(new a).__proto__||(n=!1)),s.prototype.eventNames=function(){var e,a,r=[];if(0===this._eventsCount)return r;for(a in e=this._events)t.call(e,a)&&r.push(n?a.slice(1):a);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},s.prototype.listeners=function(e){var t=n?n+e:e,a=this._events[t];if(!a)return[];if(a.fn)return[a.fn];for(var r=0,i=a.length,o=new Array(i);r{Object.defineProperty(t,"__esModule",{value:!0}),t.isIpad=t.isIphone=t.isFireFoxOnAndroid=t.isSamsungInternetOnAndroidTab=t.isSamsungInternetOnAndroidMobile=t.isAndroidTab=t.isAndroidMobile=t.isAndroidDevice=t.isMobileOrTab=t.getOrientation=t.nulOrUnd=void 0,t.nulOrUnd=function(e){return null==e},t.getOrientation=function(){let e=Math.abs(window.orientation);return 180==e&&(e=0),e},t.isMobileOrTab=function(){return[/webOS/i,/iPod/i,/BlackBerry/i,/Windows Phone/i].some((e=>window.navigator.userAgent.match(e)))||this.isAndroidDevice()||this.isIphone()||this.isIpad()},t.isAndroidDevice=function(){return[/Android/i,/SamsungBrowser/i].some((e=>window.navigator.userAgent.match(e)))},t.isAndroidMobile=function(){return[/Mobile/i].every((e=>window.navigator.userAgent.match(e)))&&this.isAndroidDevice()},t.isAndroidTab=function(){return![/Mobile/i].every((e=>navigator.userAgent.match(e)))&&this.isAndroidDevice()},t.isSamsungInternetOnAndroidMobile=function(){return[/Mobile/i,/SamsungBrowser/i].every((e=>window.navigator.userAgent.match(e)))},t.isSamsungInternetOnAndroidTab=function(){return[/SamsungBrowser/i].every((e=>window.navigator.userAgent.match(e)))&&this.isAndroidTab()},t.isFireFoxOnAndroid=function(){return[/Android/i,/Mobile/i,/FireFox/i].every((e=>window.navigator.userAgent.match(e)))},t.isIphone=function(){return[/iPhone/i].some((e=>window.navigator.userAgent.match(e)))&&window.navigator.maxTouchPoints&&window.navigator.maxTouchPoints>1},t.isIpad=function(){return[/iPad/i,/Macintosh/i].some((e=>window.navigator.userAgent.match(e)))&&window.navigator.maxTouchPoints&&window.navigator.maxTouchPoints>1}},8744:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(1075)),i=n(4853),o=a(n(347)),s=n(9251),l=a(n(6430)),d=a(n(2673)),c=a(n(694)),u=a(n(9916)),f=a(n(5797)),g=a(n(1840)),h=a(n(2915)),p=a(n(240)),_=a(n(5038)),m=n(973),A=n(939),E=a(n(9714));class v extends r.default{constructor(){super(),this.isReady=!1,this.gameStarted=!1,this.interface=new r.default,o.default.setupUIStyle()}static get instance(){return void 0===v._instance?v._instance=new v:v._instance}static isPlatformSupported(){return v.commsManager.isPlatformSupported}getPlayerID(){return v.commsManager.playerID}async init(e){this.config=e,this.logBuild(e),this.applyWrapperOptions();let{err:t}=await this.commsManager.initialize();return this.commsManager.checkPlatformSupport(t),await this.storageManager.initialize(this.config),this.createInterface(e.interface),await this.initAds(),this.config.inAppPurchase&&await this.initIAP(),window.sgWrapper=this,this.createUI(e),this.initOnceAllReady(),Promise.resolve()}initOnceAllReady(){let e=!1;const t=()=>{e||(e=!0,this.checkForRemoteJS(),window.onWrapperReady&&window.onWrapperReady(),this.emit(l.default.READY),this.isReady=!0)};"complete"===document.readyState?setTimeout((()=>{t()}),200):window.addEventListener("load",(()=>{const e=setInterval((()=>{"complete"===document.readyState&&(setTimeout((()=>{t()}),200),clearInterval(e))}),200)}))}checkForRemoteJS(){for(var e=document.getElementsByTagName("script"),t=0;t{})),this.interface.once(s.InterfaceEvent.LOADED,(()=>{this.onStartGame()})),this.interface.on(s.InterfaceEvent.LOAD_PROGRESS,(e=>{this.commsManager.setLoadingProgress(e.progress)}))}async onStartGame(){this.gameStarted=!0,this.emit(l.default.GAME_START);const{err:e}=await this.commsManager.startGame();e&&(console.log(e),this.commsManager.checkPlatformSupport(e))}createInterface(e){switch(e){case i.InterfaceType.SGSDK:new f.default(this.interface);break;case i.InterfaceType.SG_HOOKS:new u.default(this.interface);break;case i.InterfaceType.FBInstant:new d.default(this.interface),new c.default(this.interface);break;default:console.warn("Interface not initialized: type not recognized.")}this.hookUpInterface()}applyWrapperOptions(){if(void 0!==this.config.options){const e=window.navigator.userAgent.includes("Android");this.config.options.reloadOnFold&&e&&new p.default}}logBuild(e){console.log("*******************************"),console.log(e.gameTitle+" v"+e.gameBuild),console.log(e),console.log("*******************************")}static get placementIDs(){return v.instance.placementIDs}static get commsManager(){return v.instance.commsManager}static get adManager(){return v.instance.adManager}static get iapManager(){return v.instance.iapManager}static get interface(){return v.instance.interface}static get config(){return v.instance.config}static get storageManager(){return v.instance.storageManager}static get leaderboards(){return v.instance.leaderboards}static get sdkHandler(){return v.instance.sdkHandler}static set sdkHandler(e){v.instance.sdkHandler=e}}t.default=v},939:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.OrientationLock=void 0,function(e){e.PORTRAIT="portrait",e.LANDSCAPE="landscape",e.NONE="none"}(t.OrientationLock||(t.OrientationLock={}))},6043:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Default=void 0;class n{}t.Default=n,n.LANG="en"},4853:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InterfaceType=void 0,function(e){e.SG_HOOKS="SG_Hooks",e.SGSDK="sgSdk",e.FBInstant="FBInstant"}(t.InterfaceType||(t.InterfaceType={}))},388:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});class n{}t.default=n,n.platformConfig="platform-config.json",n.ratingImage="lib/assets/grac_kr_rating_all.png",n.softgamesLogo="lib/assets/softgames_logo.png",n.supportPopupBG="lib/assets/support_popup.png",n.supportPopupTextFrame="lib/assets/support_text_frame.png",n.supportPopupCloseBtn="lib/assets/support_close_button.png",n.firebaseConfig="firebaseConfig.json"},5028:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.PlatformType=void 0,function(e){e.SAMSUNG_INSTANT="samsung",e.AZERION="azerion",e.WEB="web",e.MSSTART="msstart",e.NONE="none"}(t.PlatformType||(t.PlatformType={}))},4186:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LinksKR=t.Links=void 0,function(e){e.TOS="https://www.softgames.com/terms-of-use/",e.PRIVACYPOLICY="https://www.softgames.de/privacy/"}(t.Links||(t.Links={})),function(e){e.TOS="https://www.softgames.com/terms-of-use-kr/",e.PRIVACYPOLICY="https://www.softgames.com/privacy-kr/"}(t.LinksKR||(t.LinksKR={}))},347:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(2801));class i{static setupUIStyle(){const e=document.createElement("style");e.setAttribute("id",i.UI_STYLES_ELEMENT_ID),e.innerHTML=i.UI_STYLE,document.body.appendChild(e)}}t.default=i,i.UI_STYLES_ELEMENT_ID="ui-styles",i.UI_STYLE=`\n\n @font-face {\n font-family: Lobster;\n src: url(lib/assets/Lobster.ttf);\n }\n\n a:link { text-decoration: none; color: inherit; }\n a:visited { text-decoration: none; color: inherit; }\n a:hover { text-decoration: none; color: inherit;}\n a:active { text-decoration: none; color: inherit;}\n\n .wrapper-ui {\n color: white;\n font-family: sans-serif;\n text-align: center;\n z-index: ${r.default.UI_ELEMENT_Z_INDEX};\n }\n \n #${r.default.RATING_CONTAINER_ID}{\n position: absolute;\n right: 0;\n top: 10px;\n width: 20%;\n max-width: 80px; \n z-index: ${r.default.RATING_CONTAINER_Z_INDEX}\n }\n\n .orientation-screen {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n width: 100vw;\n height: 100vh;\n background-color: black;\n z-index: 999;\n }\n\n .orientation-screen-ico {\n position: absolute;\n top: calc(50vh - 100px);\n right: calc(50vw - 100px);\n }\n \n .loading-screen {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: black;\n z-index: inherit;\n }\n \n .splash-screen {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n display: flex;\n flex-direction: column;\n background-color: white;\n align-items: center;\n justify-content: space-around;\n z-index: 9999;\n }\n \n .game-logo {\n position: absolute;\n top: calc(25vh - 30px);\n box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);\n max-height: 20%;\n width: auto;\n border-radius: 16%;\n }\n\n .supportPopupContainer {\n position: absolute;\n width:338px;\n height:338px;\n left:0;\n right:0;\n top:0;\n bottom:0;\n margin:auto;\n z-index: 9999;\n }\n\n .supportPopup {\n display:block;\n background-size: contain;\n background-repeat: norepeat;\n width:-webkit-fill-available;\n height:-webkit-fill-available; \n z-index: 9999; \n }\n\n .fullBG {\n background-color:black;\n width:100vw;\n height:100vh;\n margin:0;\n padding:0;\n position:absolute;\n opacity:0.5;\n }\n\n .supportPopupCloseBtn {\n position:absolute;\n top:5px;\n right:3px;\n width:55px;\n height:55px;\n }\n\n .termsAndConditionsBg {\n position:absolute;\n width:290px;\n height:53px;\n top:75px;\n right:15px;\n right:0;\n left:0;\n margin:auto;\n }\n\n .privacyPolicyBg {\n position:absolute;\n width:290px;\n height:53px;\n top:130px;\n right:15px;\n right:0;\n left:0;\n margin:auto;\n }\n\n .termsAndConditionsLinkText {\n position:absolute;\n top:85px;\n right:0;\n left:0;\n margin:auto;\n font-weight:200;\n font-size:24px;\n user-select:none;\n color: #FFFFFF;\n font-family: "Lobster";\n }\n\n .privacyPolicyLinkText {\n position:absolute;\n top:140px;\n font-weight:200;\n font-size:24px;\n right:0;\n left:0;\n margin:auto;\n user-select:none;\n color: #FFFFFF;\n font-family: "Lobster";\n }\n\n .playerIdText {\n position:absolute;\n bottom:30px;\n right:0;\n left:0;\n margin:auto;\n font-weight:bold;\n font-size:23px;\n color: #875A2B;\n }\n\n .contactUs {\n position:absolute;\n bottom: 110px;\n right:0;\n left:0;\n margin:auto;\n font-weight:bold;\n font-size:20px;\n color: #834b37;\n font-family: "Lobster";\n }\n\n .supportEmail {\n position:absolute;\n bottom:80px;\n right:0;\n left:0;\n margin:auto;\n font-weight:bold;\n font-size:20px;\n color: #834b37;\n font-family: "Lobster";\n }\n\n .IAPGiftMessage {\n position:absolute;\n top:90px;\n right:0;\n left:0;\n margin:auto;\n color:#875A2B;\n font-family: "Lobster";\n font-weight:bold;\n font-size:23px;\n }\n\n .IAPGiftMessage {\n position:absolute;\n top:100px;\n right:0;\n left:0;\n margin:auto;\n color:black;\n font-family: "Marker Felt;\n font-weight:bold;\n font-size:23px;\n user-select:none;\n max-width:200px;\n }\n\n .play-button {\n position: absolute;\n font-style: bold;\n font-family: Arial;\n top: calc(60vh);\n max-height: 20%;\n padding: 10px;\n padding-left: 20px;\n padding-right: 20px;\n text-align:center;\n font-size: 28px;\n color: #FFFFFF;\n background-color: #ff8c00;\n box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);\n }\n\n .play-button-bg {\n position:relative;\n display:block;\n top:20px;\n }\n\n .play-text {\n font-size: 24px;\n font-color: white;\n user-select: none;\n }\n\n .game-logo-azerion {\n position: absolute;\n top: calc(25vh - 30px);\n box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);\n max-height: 20%;\n width: auto;\n border-radius: 16%;\n }\n\n .background-image {\n width:100vw;\n height:100vh;\n filter: blur(40px);\n }\n\n .progressringaz {\n position: absolute;\n top: calc(45vh);\n width: ${2*r.default.SPLASH_SPINNER_SIZE_AZ}px;\n height: ${2*r.default.SPLASH_SPINNER_SIZE_AZ}px;\n }\n\n .progressringaz-circle {\n stroke: #f1672b;\n fill: transparent;\n transform: rotate(-90deg);\n transition: stroke-dashoffset 0.35s;\n transform-origin: 50% 50%;\n }\n \n .progress-ring {\n position: absolute;\n top: calc(50vh);\n width: ${2*r.default.SPLASH_SPINNER_SIZE}px;\n height: ${2*r.default.SPLASH_SPINNER_SIZE}px;\n }\n \n /* https://css-tricks.com/building-progress-ring-quickly/ */\n .background-circle {\n stroke: #f3f3f3;\n fill: transparent;\n }\n \n .progress-ring-circle {\n stroke: #f1672b;\n fill: transparent;\n transform: rotate(-90deg);\n transition: stroke-dashoffset 0.35s;\n transform-origin: 50% 50%;\n }\n \n .softgames-logo {\n position:absolute;\n max-height: 5%;\n max-width: 60%;\n bottom: 0;\n }\n\n .sg-logo-azerion {\n position:absolute;\n max-height: 5%;\n max-width: 60%;\n bottom: 30%;\n }\n\n .sg-logo-azerion-fadeOut {\n opacity: 0;\n transition: opacity 600ms;\n }\n\n .sg-logo-azerion-fadeIn {\n opacity: 1;\n transition: opacity 600ms;\n }\n \n @media (orientation: landscape) and (max-device-height: 640px) {\n .progress-ring {\n transform: scale(0.8);\n }\n \n .game-logo {\n max-height: 30%;\n }\n \n .softgames-logo {\n max-height: 10%;\n }\n }\n \n \n /* ref: https://www.w3schools.com/howto/howto_css_loader.asp */\n .spinner {\n position: absolute;\n top: calc(50vh - 30px);\n left: calc(50vw - 30px);\n \n border: 4px solid #f3f3f3;\n border-top: 4px solid black;\n border-radius: 50%;\n width: 60px;\n height: 60px;\n animation: spin 1s linear infinite;\n }\n \n @keyframes spin {\n 0% { transform: rotate(0deg); }\n 100% { transform: rotate(360deg); }\n }\n \n .countdown-tag {\n pointer-events: none;\n position: absolute;\n right: 0;\n bottom: 80px;\n padding: 0 20px;\n width: 90px;\n background-color: black;\n opacity: 0;\n z-index: inherit;\n }\n \n /* ref: https://css-tricks.com/snippets/css/toggle-visibility-when-hiding-elements/ */\n .countdown-tag-fadeIn {\n opacity: 1;\n transition: opacity 300ms;\n }\n \n .countdown-tag-label {\n font-size: 16px;\n padding: 0 10px;\n }\n `},2801:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});class n{}t.default=n,n.SAMSUNG_SPLASH_DURATION_MS=3e3,n.SHOW_RATING_DURATION_MS=3e3,n.RATING_CONTAINER_Z_INDEX=1e3,n.RATING_CONTAINER_ID="rating_container",n.SPLASH_SPINNER_SIZE=36,n.SPLASH_SPINNER_SIZE_AZ=18,n.SPLASH_SPINNER_STROKE=5,n.UI_ELEMENT_Z_INDEX=9e3,n.ADS_CONTAINER_Z_INDEX=1e4,n.ADS_CONTAINER_ID="ads_container",n.LOGGER_CONTAINER_Z_INDEX=2e3,n.LOGGER_CONTAINER_ID="debug_logger",n.DEBUG_MENU_Z_INDEX=3e4},2665:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AdManagerEvent=void 0,function(e){e.AD_ERROR="AD_ERROR",e.AD_LOADED="AD_LOADED",e.AD_START="AD_START",e.AD_SKIP="AD_SKIP",e.AD_COMPLETE="AD_COMPLETE",e.AD_CLOSE="AD_CLOSE",e.INTERSTITIAL_AD_REQUESTED="INTERSTITIAL_AD_REQUESTED",e.REWARDED_AD_REQUESTED="REWARDED_AD_REQUESTED",e.AD_REQUESTED="AD_REQUESTED",e.FREE_REWARD_AWARDED="FREE_REWARD_AWARDED"}(t.AdManagerEvent||(t.AdManagerEvent={}))},7540:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AdTimerEvent=void 0,function(e){e.COOLDOWN_START="COOLDOWN_START",e.COOLDOWN_END="COOLDOWN_END",e.LONGPLAY_TRIGGER="LONGPLAY_TRIGGER",e.LONGPLAY_TICKER_START="LONGPLAY_TICKER_START",e.LONGPLAY_TICKER_STOP="LONGPLAY_TICKER_STOP",e.LONGPLAY_TICK="LONGPLAY_TICK",e.LONGPLAY_WARN_TICK="LONGPLAY_WARN_TICK",e.LONGPLAY_WARN="LONGPLAY_WARN"}(t.AdTimerEvent||(t.AdTimerEvent={}))},4989:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.GameEvent=void 0,function(e){e.LEVEL_START="LEVEL_START",e.LEVEL_FINISH="LEVEL_FINISH",e.GAME_START="GAME_START",e.GAME_OVER="GAME_OVER"}(t.GameEvent||(t.GameEvent={}))},9250:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.IAPEvents=void 0,function(e){e.IAP_READY="onIAPReady"}(t.IAPEvents||(t.IAPEvents={}))},9251:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.InterfaceEvent=void 0,function(e){e.LOADED="GAME_LOADED",e.LOAD_PROGRESS="LOAD_PROGRESS"}(t.InterfaceEvent||(t.InterfaceEvent={}))},6430:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});class n{}t.default=n,n.SDK_INIT="SDK_INIT",n.SPLASH_HIDDEN="SPLASH_HIDDEN",n.REQUEST_AD="REQUEST_AD",n.GAME_START="GAME_START",n.GAME_PAUSE="GAME_PAUSE",n.GAME_RESUME="GAME_RESUME",n.READY="WRAPPER_READY"},973:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getConfigOptionAny=t.getConfigOption=void 0;const r=a(n(8744));t.getConfigOption=function(e){return r.default.config.options&&r.default.config.options[e]||!1},t.getConfigOptionAny=function(e){return r.default.config.options&&r.default.config.options[e]||null}},308:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(388)),i=a(n(8744));t.default=class{constructor(){this.loadConfig(r.default.platformConfig)}async loadConfig(e){const t=await fetch(e),n=await t.json();this.createWrapper(n)}async createWrapper(e){}async getLeaderboardHandler(e){let t;return new Promise(((e,n)=>{t=window.setInterval((()=>{(()=>{if(window.sgLeaderboards){window.clearInterval(t);const n=window.sgLeaderboards.getHandler(i.default.config);e(n)}})()}),100)}))}async getIAPDBHandler(){let e;return new Promise(((t,n)=>{e=window.setInterval((()=>{(()=>{if(window.sgIAP){window.clearInterval(e);const n=window.sgIAP.getHandler(i.default.config);t(n)}})()}),100)}))}}},9284:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(5028),i=n(5499),o=a(n(5207)),s=a(n(6631)),l=a(n(1662)),d=a(n(8745)),c=a(n(5663)),u=a(n(5577)),f=a(n(8744)),g=a(n(308));class h extends g.default{async createWrapper(e){f.default.instance.config=e,f.default.instance.platformDefaults=new c.default,e.platform=r.PlatformType.AZERION,f.default.instance.storageManager=new d.default,f.default.instance.commsManager=new s.default,f.default.instance.adManager=new o.default,f.default.instance.placementIDs={rewarded:f.default.config.gameID,interstitial:f.default.config.gameID},f.default.instance.iapManager=new l.default,f.default.instance.SGPreloader=new u.default(!1),f.default.instance.init(e),!0===e.leaderboardSupport&&(f.default.instance.leaderboards=await this.getLeaderboardHandler(i.LeaderboardTypes.FIREBASE)),f.default.instance.onStart()}}t.default=h,new h},2673:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(8744)),i=n(9251),o=n(973),s=a(n(1547)),l=a(n(4599)),d=a(n(2596)),c=a(n(4663)),u=a(n(9912)),f=a(n(3722));class g extends s.default{constructor(e){super(e),this.player=new c.default,this.payments=new d.default,this.tournament=new u.default,this.context=new l.default,this.community=new f.default,window.FBInstant=this}initializeAsync(){return r.default.instance.supportedLanguages=["en"],Promise.resolve()}startGameAsync(){return this.interfaceRef.emit(i.InterfaceEvent.LOAD_PROGRESS,{progress:101}),r.default.commsManager.startGame(),Promise.resolve()}setLoadingProgress(e){const t=e||0;r.default.commsManager.setLoadingProgress(t),e>=100&&this.interfaceRef.emit(i.InterfaceEvent.LOADED)}onPause(e){}getLocale(){return r.default.commsManager.getLanguage()}getPlatform(){return null}getSDKVersion(){return""}logEvent(e,t,n){return null}quit(){}async getInterstitialAdAsync(e){return Promise.resolve({loadAsync:()=>Promise.resolve(),showAsync:()=>r.default.adManager.showInterstitialAd(),getPlacementID:()=>r.default.placementIDs.interstitial})}async getRewardedVideoAsync(e){return Promise.resolve({loadAsync:()=>Promise.resolve(),showAsync:()=>new Promise((async(e,t)=>{await r.default.adManager.showRewardedAd()?e(!0):(0,o.getConfigOption)("rejectFailedRewarded")?t():e(!1)})),getPlacementID:()=>r.default.placementIDs.rewarded})}async getLeaderboardAsync(e){}canCreateShortcutAsync(){return Promise.resolve(!1)}checkCanPlayerMatchAsync(){return Promise.resolve(!1)}createShortcutAsync(){return Promise.resolve(void 0)}getEntryPointAsync(){return Promise.resolve("")}getEntryPointData(){return null}getSupportedAPIs(){let e=["getRewardedVideoAsync","getInterstitialAdAsync","startGameAsync"];return r.default.instance.iapManager.hasIAPSupport()&&(e=e.concat(["payments.purchaseAsync","payments.getCatalogAsync","payments.onReady"])),e}matchPlayerAsync(e,t,n){return Promise.resolve(void 0)}postSessionScore(e){}setSessionData(e){}async shareAsync(e){await r.default.commsManager.shareAsync({title:e.text,text:"Join me on "+r.default.config.gameTitle+"!",image:e.image})}async switchGameAsync(e,t){return await r.default.commsManager.switchGameAsync(e,t)}updateAsync(e){return Promise.resolve(void 0)}}t.default=g},3722:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});t.default=class{async canFollowOfficialPageAsync(){return Promise.resolve(!1)}}},4599:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(8744));t.default=class{getID(){return r.default.config.platform}getType(){return"SOLO"}isSizeBetween(e,t){return null}switchAsync(e){return Promise.resolve()}chooseAsync(e){return Promise.resolve()}createAsync(e){return Promise.resolve()}getPlayersAsync(){return Promise.resolve([])}}},2596:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(9250),i=a(n(8744));t.default=class{async getCatalogAsync(){return await i.default.iapManager.getCatalogAsync()}async purchaseAsync(e){return await i.default.iapManager.purchaseAsync(e)}async getPurchasesAsync(){return await i.default.iapManager.getPurchasesAsync()}async consumePurchaseAsync(e){return await i.default.iapManager.consumePurchaseAsync(e)}onReady(e){if(i.default.iapManager.ready)return e();i.default.iapManager.on(r.IAPEvents.IAP_READY,(()=>{e&&e()}))}hasIAPSupport(){return i.default.iapManager.hasIAPSupport()}}},4663:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(8744));t.default=class{getID(){}getSignedPlayerInfoAsync(e){return Promise.resolve({getPlayerID:()=>"id",getSignature:()=>""})}canSubscribeBotAsync(){return Promise.resolve(!1)}subscribeBotAsync(){return Promise.resolve(void 0)}getName(){return""}getPhoto(){return""}async getDataAsync(e){return await r.default.storageManager.getItem()}setDataAsync(e){return new Promise(((t,n)=>{try{const n=Object.entries(e);for(const[e,t]of n)r.default.storageManager.setItem(e,t);t()}catch(e){n(e)}}))}flushDataAsync(){return Promise.resolve(void 0)}getStatsAsync(e){return Promise.resolve(null)}setStatsAsync(e){return Promise.resolve(void 0)}incrementStatsAsync(e){return Promise.resolve(null)}getConnectedPlayersAsync(){return Promise.resolve([])}}},9912:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});t.default=class{async postScoreAsync(){}async createAsync(){return{getID:()=>0,getContextID:()=>0,getEndTime:()=>0,getTitle:()=>"",getPayload:()=>""}}async getTournamentsAsync(){return[]}async joinAsync(e){}async shareAsync(){}}},694:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(4989),i=n(9251),o=a(n(8744)),s=a(n(1547)),l=a(n(6408)),d=a(n(9854));class c extends s.default{constructor(e){super(e),this.storage={getStorageValue:this.getStorageValue.bind(this),getStorageData:this.getStorageData.bind(this),isGameBotRateLimited:this.isGameBotRateLimited.bind(this),save:this.save.bind(this)},this.loading={finished:this.finished.bind(this)},this.tracking={isFirstTimeUser:this.isFirstTimeUser.bind(this),getGameBotSubscribed:this.getGameBotSubscribed.bind(this),isGameBotRateLimited:this.isGameBotRateLimited.bind(this),getRegistrationDate:this.getRegistrationDate.bind(this)},this.utils={createShortcut:this.createShortcut.bind(this),waitForGBCBeingLive:this.waitForGBCBeingLive.bind(this)},this.backend=new l.default,this.xpromo=new d.default,this.sgModules={backend:this.backend,xpromo:this.xpromo},window.GBCXPromo=this}getGameConfig(){return null}init(e,t){return Promise.resolve()}getLocale(){return console.log("'getLocale' has an implemented logic."),o.default.commsManager.getLanguage()}setLocale(e){return""}prepareText(e,t){return""}getLocalizableContent(e,t){return{default:"",localizations:{}}}setProgress(e){const t=e||0;o.default.commsManager.setLoadingProgress(t)}finished(e){return this.interfaceRef.emit(i.InterfaceEvent.LOADED),this.interfaceRef.emit(i.InterfaceEvent.LOAD_PROGRESS,{progress:101}),Promise.resolve()}async showRewardedAd(e){console.log("'showRewardedAd' has an implemented logic.");return await o.default.adManager.showRewardedAd()}async showInterstitialAd(e){console.log("'showInterstitialAd' has an implemented logic.");return await o.default.adManager.showInterstitialAd()}areRewardedAdsSupported(){return o.default.config.adsConfig.rewarded}areInterstitialAdsSupported(){return!0}gameStart(){this.interfaceRef.emit(r.GameEvent.GAME_START)}gameOver(e,t){this.interfaceRef.emit(r.GameEvent.GAME_OVER,{level:e,score:t}),this.trackScore(e,t)}subscribeToBot(){return Promise.resolve()}isFirstTimeUser(){return!1}getUserLifetime(){return-1}getSessionOfDay(){return-1}getGameBotSubscribed(){return!1}isGameBotRateLimited(){return!1}getRegistrationDate(){return-1}isChallengeAvailable(){return!1}initChallenge(e){}startChallengeAsync(e){return Promise.resolve()}updateScore(e){}getStorageValue(e,t){let n;try{if(n=o.default.storageManager.getItem(e),null!=n)return n}catch(e){console.log(`Could not restore data - ${e}`)}return t}save(e,t){return new Promise(((t,n)=>{try{const n=Object.entries(e);for(const[e,t]of n)o.default.storageManager.setItem(e,t);t()}catch(e){n(e)}}))}load(e){return o.default.storageManager.getItem(e)}getStorageData(){return Object()}getLocalStorageKey(){return""}waitForGBCBeingLive(e){return Promise.resolve()}createShortcut(){return Promise.resolve()}}t.default=c},6408:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});t.default=class{isConnected(){return Promise.resolve(!1)}getUserProfile(){return Promise.resolve(void 0)}getServerTimestamp(){return Promise.resolve(-1)}setUserProfile({handle:e,locale:t}){return Promise.resolve()}syncFriendListByPlatformPlayerId({friendList:e}){return Promise.resolve()}getFriendsScores({leaderboardName:e,instanceId:t}){return Promise.resolve(null)}postScore({leaderboardName:e,instanceId:t,score:n}){return Promise.resolve()}executeRuntimeScript({route:e,args:t}){return Promise.resolve(null)}}},9854:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});t.default=class{getXPromo({userData:e,serverTime:t}){return Promise.resolve([])}switchGame(e){return Promise.resolve()}initialize({gameId:e,playerId:t,switchFunc:n,trackingFunc:a,payload:r,userData:i}){return()=>{}}}},8471:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SGHooksActionType=void 0,function(e){e.RUN="runGame",e.PAUSE="pauseGame",e.UNPAUSE="unpauseGame"}(t.SGHooksActionType||(t.SGHooksActionType={}))},9916:function(__unused_webpack_module,exports,__webpack_require__){var __importDefault=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(exports,"__esModule",{value:!0});const GameEvent_1=__webpack_require__(4989),InterfaceEvent_1=__webpack_require__(9251),WrapperEvent_1=__importDefault(__webpack_require__(6430)),html_1=__webpack_require__(6456),Wrapper_1=__importDefault(__webpack_require__(8744)),InterfaceBase_1=__importDefault(__webpack_require__(1547)),SGHooksActionType_1=__webpack_require__(8471);class SGHooksInterface extends InterfaceBase_1.default{constructor(e){super(e),Wrapper_1.default.instance.supportedLanguages=window.gameLangs,this.loadGameScripts(),window.SG_Hooks=this,window.SG={lang:Wrapper_1.default.commsManager.getLanguage()}}start(){this.interfaceRef.emit(InterfaceEvent_1.InterfaceEvent.LOAD_PROGRESS,{progress:101}),Wrapper_1.default.commsManager.startGame()}triggerMoreGames(){}getLanguage(e){return Wrapper_1.default.commsManager.getLanguage(e)}registerObserver(e){this.observer=e}setPauseHandler(e){Wrapper_1.default.commsManager.setPauseCallback(e),void 0!==this.observer&&this.observer({action:SGHooksActionType_1.SGHooksActionType.PAUSE})}setUnpauseHandler(e){Wrapper_1.default.commsManager.setResumeCallback(e),void 0!==this.observer&&this.observer({action:SGHooksActionType_1.SGHooksActionType.UNPAUSE})}setOrientationHandler(e){window.addEventListener("orientationchange",(()=>{e()}))}setResizeHandler(e){window.addEventListener("resize",(()=>{e()}))}async loaded(){this.interfaceRef.emit(InterfaceEvent_1.InterfaceEvent.LOADED),this.interfaceRef.emit(InterfaceEvent_1.InterfaceEvent.LOAD_PROGRESS,{progress:101}),void 0!==this.observer&&this.observer({action:SGHooksActionType_1.SGHooksActionType.RUN})}async triggerIncentivise(e){const t=await Wrapper_1.default.adManager.showRewardedAd();e&&e(t)}async beforePlayButtonDisplay(e){Wrapper_1.default.config.adsConfig.supportsAdPlayButton=!0;const t=await Wrapper_1.default.adManager.showInterstitialAd();e&&e(t)}async playButtonPressed(e){e&&e()}isEnabledIncentiviseButton(){return!0}levelStarted(e,t){this.interfaceRef.emit(GameEvent_1.GameEvent.LEVEL_START,{level:e}),t&&t()}levelFinished(e,t,n){this.interfaceRef.emit(GameEvent_1.GameEvent.LEVEL_FINISH,{level:e}),this.trackScore(e,t),n&&n()}gameStart(e){this.interfaceRef.emit(GameEvent_1.GameEvent.GAME_START),e&&e()}gameOver(e,t,n){this.interfaceRef.emit(GameEvent_1.GameEvent.GAME_OVER,{level:e,score:t}),this.trackScore(e,t),n&&n()}levelUp(e,t,n){n&&n()}addBooster(){}setStorageItem(e,t){Wrapper_1.default.storageManager.setItem(e,t)}getStorageItem(e){return Wrapper_1.default.storageManager.getItem(e)}setCloseCallback(e){Wrapper_1.default.commsManager.setResumeCallback(e)}async loadGameScripts(){if(window.gameJS){for(const e of window.gameJS)await(0,html_1.createHTMLElement)({src:e,tag:"script"});this.initGame()}else this.initGame()}initGame(){try{Wrapper_1.default.instance.isReady?eval(window.gameOnLoadScript):Wrapper_1.default.instance.once(WrapperEvent_1.default.READY,(()=>{eval(window.gameOnLoadScript)}))}catch(e){}}}exports.default=SGHooksInterface},5797:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(4989),i=n(9251),o=a(n(8744)),s=a(n(1547)),l=n(1010);class d extends s.default{constructor(e){super(e),window.sgSdk=this}initialize(e,t,n){this.initData=t,o.default.instance.supportedLanguages=t.supportedLanguages;let a={commands:{supportedLanguages:t.supportedLanguages},config:{env:{locale:o.default.commsManager.getLanguage()},rewarded:{enabled:!0}}};o.default.commsManager.setPauseCallback((()=>{this.initData.freezeGame()})),o.default.commsManager.setResumeCallback((()=>{this.initData.unfreezeGame()})),o.default.instance.supportedLanguages=t.supportedLanguages,n&&n(null,a,window.sgSdk)}getLocale(){return o.default.commsManager.getLanguage()}async trigger(e,t){switch(e){case l.SGSDKTriggers.START:this.interfaceRef.emit(i.InterfaceEvent.LOAD_PROGRESS,{progress:101}),o.default.commsManager.startGame();break;case l.SGSDKTriggers.LOADING_COMPLETED:this.interfaceRef.emit(i.InterfaceEvent.LOAD_PROGRESS,{progress:101}),this.interfaceRef.emit(i.InterfaceEvent.LOADED),this.initData.runGame();break;case l.SGSDKTriggers.LOADING_UPDATE:this.interfaceRef.emit(i.InterfaceEvent.LOAD_PROGRESS,{progress:t.progressPercentage}),t.progressPercentage>=100&&this.interfaceRef.emit(i.InterfaceEvent.LOADED);break;case l.SGSDKTriggers.SAVE:if(o.default.storageManager.setItem(t.key,t.value),t.callback)return void t.callback();break;case l.SGSDKTriggers.RESTORE:const e=o.default.storageManager.getItem(t.key);if(t.callback)return void t.callback(null,e);break;case l.SGSDKTriggers.REWARDED_AD:const n=await o.default.adManager.showRewardedAd();if(t.callback)return void t.callback(n);break;case l.SGSDKTriggers.BEFORE_PLAY_BUTTON_DISPLAY:const a=await o.default.adManager.showInterstitialAd();if(t.callback)return void t.callback(a);break;case l.SGSDKTriggers.LEVEL_START:if(this.interfaceRef.emit(r.GameEvent.LEVEL_START,{level:t.level}),t.callback)return void t.callback();break;case l.SGSDKTriggers.LEVEL_FINISH:if(this.interfaceRef.emit(r.GameEvent.LEVEL_FINISH,{level:t.level}),this.trackScore(t.level,t.score),t.callback)return void t.callback();break;case l.SGSDKTriggers.GAME_START:this.interfaceRef.emit(r.GameEvent.GAME_START);break;case l.SGSDKTriggers.GAME_OVER:if(this.interfaceRef.emit(r.GameEvent.GAME_OVER,t),this.trackScore(null,t.score),t.callback)return void t.callback();break;case l.SGSDKTriggers.PLAY_BUTTON_PRESSED:if(t.callback)return void t.callback(!0);case l.SGSDKTriggers.MORE_GAMES||l.SGSDKTriggers.GAME_TRACKING||l.SGSDKTriggers.PAGE_DISPLAY:}}}t.default=d},1010:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.SGSDKTriggers=void 0,function(e){e.START="start",e.LOADING_COMPLETED="loading.completed",e.LOADING_UPDATE="loading.update",e.SAVE="save",e.RESTORE="restore",e.REWARDED_AD="rewardedAd",e.BEFORE_PLAY_BUTTON_DISPLAY="beforePlayButtonDisplay",e.PLAY_BUTTON_PRESSED="playButtonPressed",e.MORE_GAMES="moreGames",e.GAME_TRACKING="gameTracking",e.PAGE_DISPLAY="pageDisplay",e.LEVEL_START="levelStart",e.LEVEL_FINISH="levelFinish",e.GAME_START="gameStart",e.GAME_OVER="gameOver"}(t.SGSDKTriggers||(t.SGSDKTriggers={}))},1547:function(e,t,n){var a=this&&this.__createBinding||(Object.create?function(e,t,n,a){void 0===a&&(a=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,a,r)}:function(e,t,n,a){void 0===a&&(a=n),e[a]=t[n]}),r=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&a(t,e,n);return r(t,e),t},o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const s=n(2665),l=i(n(5215)),d=o(n(8744));t.default=class{constructor(e){this.interfaceRef=e}getConfig(){return d.default.instance.config}getPlayerID(){return d.default.instance.getPlayerID()}setPauseHandler(e){d.default.commsManager.setPauseCallback(e)}setUnpauseHandler(e){d.default.commsManager.setResumeCallback(e)}setAdClosedCallback(e){d.default.adManager.on(s.AdManagerEvent.AD_CLOSE,(()=>{e&&e()}))}startLongPlayAdTimer(){d.default.adManager.forceLongPlayStart(!0)}stopLongPlayAdTimer(){d.default.adManager.forceLongPlayStart(!1)}getWrapper(){return d.default.instance}isIAP(){return d.default.instance.iapManager.hasIAPSupport()}deviceDectorFunctions(){return l}showSupportPopup(){d.default.instance.showSupportPopup()}trackScore(e,t){l.nulOrUnd(e)?l.nulOrUnd(t)||d.default.commsManager.setScore(t):d.default.commsManager.setScore(e)}setIAPGiftCallback(e){d.default.instance.iapTracker.giftManager.setIAPGiftCallback(e)}clearUserData(){d.default.instance.storageManager.clearAllData()}async promptInstallAsync(){return await d.default.commsManager.promptInstallAsync()}}},5499:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.LeaderboardTypes=void 0,function(e){e[e.FIREBASE=0]="FIREBASE",e[e.SAMSUNG=1]="SAMSUNG"}(t.LeaderboardTypes||(t.LeaderboardTypes={}))},5207:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(2665),i=a(n(8744)),o=a(n(9167)),s=a(n(1932)),l=a(n(9101)),d=n(2436),c=n(660),u=n(6557);class f extends o.default{async initialize(){super.initialize(),this.sdkRef=i.default.sdkHandler,l.default.i.on(u.AzerionMetaEvents.CONTENT_PAUSE_REQUESTED,(()=>{this.emit(r.AdManagerEvent.AD_START)}));const e=[c.AzerionEvent.SDK_REWARDED_WATCH_COMPLETE,c.AzerionEvent.SDK_SKIPPED,c.AzerionEvent.CONTENT_RESUME_REQUESTED,c.AzerionEvent.SDK_GAME_START];for(let t in e)l.default.i.on(e[t],(()=>{this.emit(r.AdManagerEvent.AD_CLOSE)}));return i.default.config.adsConfig.rewarded&&this.preloadNextRewarded(),this.showPrerollAD=e=>{this.showInterstitialAd(),window.removeEventListener("pointerdown",this.showPrerollAD),e.preventDefault()},window.addEventListener("pointerdown",this.showPrerollAD),Promise.resolve()}async showInterstitialAd(){this.emit(r.AdManagerEvent.AD_REQUESTED),this.adTimer.ready&&(super.showInterstitialAd(),this.sdkRef.showAd())}async showRewardedAd(){super.showRewardedAd(),this.emit(r.AdManagerEvent.AD_REQUESTED);let e=!1;const t=new Promise((async(t,n)=>{const a=()=>{e=!0},i=()=>{o(),this.emit(r.AdManagerEvent.AD_CLOSE),this.emit(e?r.AdManagerEvent.AD_COMPLETE:r.AdManagerEvent.AD_ERROR),t(e)},o=()=>{l.default.i.removeListener(c.AzerionEvent.SDK_REWARDED_WATCH_COMPLETE,a),l.default.i.removeListener(c.AzerionEvent.SDK_SKIPPED,i),l.default.i.removeListener(c.AzerionEvent.CONTENT_RESUME_REQUESTED,i),l.default.i.removeListener(c.AzerionEvent.SDK_GAME_START,i)};l.default.i.on(c.AzerionEvent.SDK_REWARDED_WATCH_COMPLETE,a),l.default.i.on(c.AzerionEvent.SDK_SKIPPED,i),l.default.i.on(c.AzerionEvent.CONTENT_RESUME_REQUESTED,i),l.default.i.on(c.AzerionEvent.SDK_GAME_START,i),this.sdkRef.showAd(d.AzerionAdType.REWARDED)}));return this.preloadNextRewarded(),t}setupTimer(){this.adTimer=new s.default,super.setupTimer()}async preloadNextRewarded(){let{err:e}=await this.sdkRef.preloadAd(d.AzerionAdType.REWARDED);e?console.log("ADManager : Rewarded Ad could not be preloaded."):console.log("ADManager : Rewarded Ad loaded succesfully.")}}t.default=f},1932:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(5522)),i=a(n(4267));class o extends r.default{constructor(){super(),this.initialize(i.default.get())}}t.default=o},6631:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(6043),i=a(n(6430)),o=n(6456),s=a(n(8744)),l=a(n(9977)),d=a(n(9101)),c=n(660);class u extends l.default{constructor(){super(...arguments),this.hasPaused=!1}async initialize(){window.GD_OPTIONS={gameId:s.default.config.gameID,prefix:"sg_",onEvent:function(e){console.log("event :: "+e.name),d.default.i.emit(e.name,e)},advertisementSettings:{debug:!1,autoplay:!1,locale:"en"}};const e=new Promise((async(e,t)=>{d.default.i.once(c.AzerionEvent.SDK_READY,(()=>{if(window.gdsdk)s.default.sdkHandler=window.gdsdk,this.sdkRef=s.default.sdkHandler,e(!0);else{const t=setInterval((()=>{window.gdsdk&&(clearInterval(t),s.default.sdkHandler=window.gdsdk,this.sdkRef=s.default.sdkHandler,e(!0))}),10)}}))}));return function(e,t,n){let a,r=e.getElementsByTagName(t)[0];e.getElementById(n)||(a=e.createElement(t),a.id=n,a.src="patch/js/gd-sdk.js?html5.api.gamedistribution.com/main.min.js",r.parentNode.insertBefore(a,r))}(document,"script","gamedistribution-jssdk"),d.default.i.on(c.AzerionEvent.SDK_GAME_PAUSE,(()=>{this.hasPaused=!0,s.default.instance.emit(i.default.GAME_PAUSE)})),d.default.i.on(c.AzerionEvent.SDK_GAME_START,(()=>{this.hasPaused&&s.default.instance.emit(i.default.GAME_RESUME),this.hasPaused=!1})),e}async startGame(){return Promise.resolve({err:null})}getLanguage(e=[]){return(0,o.getParameterByName)("lang")||r.Default.LANG}setLoadingProgress(e){}setPauseCallback(e){d.default.i.on(c.AzerionEvent.SDK_GAME_PAUSE,(()=>{e&&e()}))}setResumeCallback(e){d.default.i.on(c.AzerionEvent.SDK_GAME_START,(()=>{e&&e()}))}setCloseCallback(e){}checkPlatformSupport(e){return!0}setScore(e){}}t.default=u},9101:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(1075));class i extends r.default{static get i(){return i._i?i._i:i._i=new i}}t.default=i},1662:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(4171));class i extends r.default{hasIAPSupport(){return!1}}t.default=i},8745:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(247));class i extends r.default{async setCloudData(e,t){}async getCloudData(e){return null}}t.default=i},4267:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});class n{constructor(){this.adCooldownDuration=1e3,this.adWarningDuration=5e3,this.startOnCooldown=!1,this.maxLongPlayAdTimerRollover=2e3,this.prerollAd=!0}static get(){return new n}}t.default=n},2436:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AzerionAdType=void 0,function(e){e.REWARDED="rewarded"}(t.AzerionAdType||(t.AzerionAdType={}))},5663:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});t.default=class{constructor(){this.useAdLoader=!0}}},660:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AzerionEvent=void 0,function(e){e.SDK_GAME_START="SDK_GAME_START",e.CONTENT_RESUME_REQUESTED="CONTENT_RESUME_REQUESTED",e.SDK_GAME_PAUSE="CONTENT_PAUSE_REQUESTED",e.SDK_GDPR_TRACKING="SDK_GDPR_TRACKING",e.SDK_REWARDED_WATCH_COMPLETE="SDK_REWARDED_WATCH_COMPLETE",e.SDK_SKIPPED="SKIPPED",e.SDK_COMPLETE="COMPLETE",e.SDK_READY="SDK_READY",e.SDK_STARTED="STARTED",e.AD_ERROR="AD_ERROR",e.AD_IS_ALREADY_RUNNING="AD_IS_ALREADY_RUNNING"}(t.AzerionEvent||(t.AzerionEvent={}))},6557:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.AzerionMetaEvents=void 0,function(e){e.AD_ERROR="AD_ERROR",e.AD_BREAK_READY="AD_BREAK_READY",e.AD_METADATA="AD_METADATA",e.ALL_ADS_COMPLETED="ALL_ADS_COMPLETED",e.CLICK="CLICK",e.COMPLETE="COMPLETE",e.CONTENT_PAUSE_REQUESTED="CONTENT_PAUSE_REQUESTED",e.CONTENT_RESUME_REQUESTED="CONTENT_RESUME_REQUESTED",e.DURATION_CHANGE="DURATION_CHANGE",e.FIRST_QUARTILE="FIRST_QUARTILE",e.IMPRESSION="IMPRESSION",e.INTERACTION="INTERACTION",e.LINEAR_CHANGED="LINEAR_CHANGED",e.LOADED="LOADED",e.LOG="LOG",e.MIDPOINT="MIDPOINT",e.PAUSED="PAUSED",e.RESUMED="RESUMED",e.SKIPPABLE_STATE_CHANGED="SKIPPABLE_STATE_CHANGED",e.THIRD_QUARTILE="THIRD_QUARTILE",e.USER_CLOSE="USER_CLOSE",e.VOLUME_CHANGED="VOLUME_CHANGED",e.VOLUME_MUTED="VOLUME_MUTED",e.GDPR_TARGETING="SDK_GDPR_TARGETING",e.SDK_GDPR_THIRD_PARTY="SDK_GDPR_THIRD_PARTY"}(t.AzerionMetaEvents||(t.AzerionMetaEvents={}))},5577:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(2801)),i=a(n(1790));class o extends i.default{constructor(e=!0){super(e)}build(){super.build(),this.spinner.classList.remove("progress-ring"),this.spinner.setAttribute("class","progressringaz"),this.circle.setAttribute("r",""+(r.default.SPLASH_SPINNER_SIZE_AZ-r.default.SPLASH_SPINNER_STROKE/2)),this.circle.setAttribute("cx",`${r.default.SPLASH_SPINNER_SIZE_AZ}`),this.circle.setAttribute("cy",`${r.default.SPLASH_SPINNER_SIZE_AZ}`),this.circle.setAttribute("stroke-width",`${r.default.SPLASH_SPINNER_STROKE}`),this.background.setAttribute("class","background-circle"),this.background.setAttribute("r",""+(r.default.SPLASH_SPINNER_SIZE_AZ-r.default.SPLASH_SPINNER_STROKE/2)),this.background.setAttribute("cx",`${r.default.SPLASH_SPINNER_SIZE_AZ}`),this.background.setAttribute("cy",`${r.default.SPLASH_SPINNER_SIZE_AZ}`),this.background.setAttribute("stroke-width",`${r.default.SPLASH_SPINNER_STROKE}`)}show(){window.setTimeout((()=>{this.hide()}),3e3),this.root.appendChild(this.bg)}hide(){this.root.removeChild(this.bg)}updateProgress(e){super.updateProgress(e)}setupLoadedEvent(){}timeLeftMS(){return super.timeLeftMS()}destroy(){super.destroy()}onLogoShown(){this.softgamesLogo.setAttribute("class","sg-logo-azerion")}}t.default=o},9167:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(1075)),i=n(2665),o=n(7540),s=n(4989),l=n(5215),d=a(n(8744));class c extends r.default{constructor(){super(),this.levelsPlayedSinceLastAd=0}async initialize(){this.setupTimer(),d.default.interface.on(s.GameEvent.GAME_OVER,(e=>{this.onGameOver(e)})),d.default.interface.on(s.GameEvent.LEVEL_FINISH,(e=>{this.onGameOver(e)}))}forceLongPlayStart(e){e?this.adTimer.startLongPlayAdTimer():this.adTimer.stopLongPlayAdTimer()}get longPlayTimeLeft(){return this.adTimer.longPlayTimeLeft}showInterstitialAd(){d.default.config.options&&!0===d.default.config.options.disableAllAds||(d.default.adManager.once(i.AdManagerEvent.AD_CLOSE,(()=>{d.default.config.adsConfig.enableLongGameplayAds&&this.adTimer.startLongPlayAdTimer()})),this.adTimer.stopLongPlayAdTimer(),this.emit(i.AdManagerEvent.INTERSTITIAL_AD_REQUESTED))}showRewardedAd(){d.default.config.options&&!0===d.default.config.options.disableAllAds||this.emit(i.AdManagerEvent.REWARDED_AD_REQUESTED)}setupTimer(){this.adTimer.on(o.AdTimerEvent.LONGPLAY_TRIGGER,(()=>{this.showInterstitialAd()}))}onGameOver(e){this.shouldAdPlayOnGameEnd(e.level,e.score)&&this.showInterstitialAd()}shouldAdPlayOnGameEnd(e,t){this.levelsPlayedSinceLastAd++;const n=!d.default.config.adsConfig.supportsAdPlayButton&&(e>=d.default.config.adsConfig.adFreeInitialLevels||(0,l.nulOrUnd)(e))&&this.levelsPlayedSinceLastAd>d.default.config.adsConfig.interstitialCooldownLevel;return n&&(this.levelsPlayedSinceLastAd=0),n}}t.default=c},5522:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(1075)),i=a(n(8744)),o=n(4989),s=n(2665),l=n(7540),d=a(n(6430));class c extends r.default{constructor(){super(...arguments),this._longPlayTimeLeft=-1,this.isGameOrLevelPlaying=!1}get ready(){return this._ready}get freeRewardedReady(){return this._freeRewardedReady}get longPlayTimeLeft(){return this._longPlayTimeLeft}initialize(e){if(this.adRules=e,this.isLongPlayTimerRunning=!1,i.default.config.adsConfig.enableLongGameplayAds){const e=()=>{this.isGameOrLevelPlaying=!0,this.startLongPlayAdTimer()},t=()=>{this.isGameOrLevelPlaying=!1,this.stopLongPlayAdTimer()};i.default.interface.on(o.GameEvent.GAME_START,(()=>{e()})),i.default.interface.on(o.GameEvent.LEVEL_START,(()=>{e()})),i.default.interface.on(o.GameEvent.GAME_OVER,(()=>{t()})),i.default.interface.on(o.GameEvent.LEVEL_FINISH,(()=>{t()}))}this._ready=!e.startOnCooldown,e.startOnCooldown&&(i.default.instance.gameStarted?this.startAdCoolDownTimer():i.default.instance.once(d.default.GAME_START,(()=>{this.startAdCoolDownTimer()}))),this.handleFreeRewardedTimer(),i.default.adManager.on(s.AdManagerEvent.AD_SKIP,(()=>{this.onAdPlayed()})),i.default.adManager.on(s.AdManagerEvent.AD_ERROR,(()=>{this.onAdFail()}))}startLongPlayAdTimer(){!this.isLongPlayTimerRunning&&this.isGameOrLevelPlaying&&(console.log("LONG PLAY TIMER STARTED"),this.isLongPlayTimerRunning=!0,this.longPlayTimerID&&window.clearInterval(this.longPlayTimerID),this._longPlayTimeLeft=i.default.config.adsConfig.longGameplayCooldownMS,this.longPlayTimerID=window.setInterval((()=>{this._longPlayTimeLeft-=1e3,this.emit(l.AdTimerEvent.LONGPLAY_TICK),this._longPlayTimeLeft<=0?(window.clearInterval(this.longPlayTimerID),this.onLongPlayTimerEnd()):this._longPlayTimeLeft<=this.adRules.adWarningDuration&&this.tickWarning()}),1e3),this.emit(l.AdTimerEvent.LONGPLAY_TICKER_START))}stopLongPlayAdTimer(){console.log("LONG PLAY TIMER STOPPED"),window.clearTimeout(this.longPlayTimerID),this.isLongPlayTimerRunning=!1,this.emit(l.AdTimerEvent.LONGPLAY_TICKER_STOP)}isInterstitialAdPreloaded(){return!1}tickWarning(){this._longPlayTimeLeft==this.adRules.adWarningDuration&&this.emit(l.AdTimerEvent.LONGPLAY_WARN),console.log("warning :: "+this._longPlayTimeLeft),this.emit(l.AdTimerEvent.LONGPLAY_WARN_TICK)}startAdCoolDownTimer(){console.log("AD IS ON COOLDOWN FOR THE NEXT "+this.adRules.adCooldownDuration/1e3+"SECONDS."),this.adCooldownTimerID=window.setTimeout((()=>{this.onAdCoolDownTimerEnd()}),this.adRules.adCooldownDuration),this.emit(l.AdTimerEvent.COOLDOWN_START)}stopAdCoolDownTimer(){console.log("AD COOLDOWN ENDED."),window.clearTimeout(this.adCooldownTimerID)}handleFreeRewardedTimer(){this._freeRewardedReady=!0,i.default.adManager.on(s.AdManagerEvent.FREE_REWARD_AWARDED,(()=>{this._freeRewardedReady=!1,window.setTimeout((()=>{this._freeRewardedReady=!0}),i.default.config.adsConfig.freeRewardedCooldown)}))}onAdPlayed(){this._ready=!1,this._longPlayTimeLeft=i.default.config.adsConfig.longGameplayCooldownMS,this.startAdCoolDownTimer()}onAdFail(){}onAdCoolDownTimerEnd(){this._ready=!0,this.emit(l.AdTimerEvent.COOLDOWN_END)}onLongPlayTimerEnd(){this._longPlayTimeLeft=i.default.config.adsConfig.longGameplayCooldownMS,i.default.adManager.once(s.AdManagerEvent.AD_CLOSE,(()=>{i.default.config.adsConfig.enableLongGameplayAds&&(this.stopLongPlayAdTimer(),this.startLongPlayAdTimer())})),this.emit(l.AdTimerEvent.LONGPLAY_TRIGGER),console.log("LONG PLAY AD TRIGERRED"),this.isLongPlayTimerRunning=!1}}t.default=c},9977:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(1075));class i extends r.default{constructor(){super(...arguments),this.isPlatformSupported=!0,this._playerID=""}checkPlatformSupport(e){return this.isPlatformSupported}get playerID(){return null}async promptInstallAsync(){}async shareAsync(e){}async switchGameAsync(e,t){}}t.default=i},4171:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(1075)),i=a(n(8744));class o extends r.default{constructor(){super(...arguments),this.isInit=!1}initialize(){return Promise.resolve(!0)}getCatalogAsync(){return Promise.resolve([])}purchaseAsync(e){return Promise.resolve(null)}getPurchasesAsync(){return Promise.resolve([])}consumePurchaseAsync(e){return Promise.resolve()}onReady(e){e&&e()}hasIAPSupport(){return i.default.config.inAppPurchase}getSupportedAPIs(){return[]}get ready(){return this.isInit}}t.default=o},247:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(9233),i=n(973),o=n(5215),s=a(n(8744));t.default=class{constructor(){this.store={_lastUpdate:0},this.maxSaveInterval=2e3,this.canSaveNow=!0}async initialize(e){const t=()=>{const t=e.gameSlug.replace(/-/g,"_").toUpperCase();this.storageKey=(0,r.v5)(`${t}_STORAGE`,"28c78f71-1c31-4331-a9ca-e51e9221b3fa")};s.default.config.options?(0,o.nulOrUnd)(s.default.config.options.forceKey)?t():this.storageKey=s.default.config.options.forceKey:t();const n=this.getLocalData(this.storageKey),a=await this.getCloudData(this.storageKey);this.store=a||n,console.log(`user data loaded from '${a?"cloudStorage":"localStorage"}'.`),console.log(`data: ${JSON.stringify(this.store)}`),setInterval((()=>{this.canSaveNow=!0}),this.maxSaveInterval)}setItem(e,t){const n=Date.now();return this.store=Object.assign(Object.assign({},this.store),{[e]:t,_lastUpdate:n}),this.save()}getItem(e){return null===this.store?null:void 0===e?this.store:null!=this.store[e]?this.store[e]:null}getDataForKeys(e){let t=[];return e.forEach((e=>{t.push({name:e,value:this.getItem(e)})})),t}clearAllData(){this.store={_lastUpdate:0},this.save()}async save(){if(!this.canSaveNow&&(0,i.getConfigOption)("limitSaveCalls"))return clearTimeout(this.retryTimeOut),void(this.retryTimeOut=setTimeout((()=>{this.save()}),500));this.canSaveNow=!1,this.saveLocalData(this.storageKey,this.store);return(()=>this.setCloudData(this.storageKey,this.store))()}saveLocalData(e,t){const n=JSON.stringify(t);localStorage.setItem(e,n)}getLocalData(e){const t=localStorage.getItem(e);return t&&JSON.parse(t)}async setCloudData(e,t){}async getCloudData(e){return null}}},1840:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(2665),i=n(7540),o=a(n(8744)),s=n(7345);t.default=class{constructor(){const e=(0,s.getUIRoot)();this.tag=document.createElement("div"),this.tag.setAttribute("class","countdown-tag"),e.appendChild(this.tag),this.textfield=document.createElement("h4"),this.textfield.setAttribute("class","countdown-tag-label"),this.tag.appendChild(this.textfield),o.default.adManager.adTimer.on(i.AdTimerEvent.LONGPLAY_WARN,(()=>{this.show()})),o.default.adManager.adTimer.on(i.AdTimerEvent.LONGPLAY_WARN_TICK,(()=>{this.update(o.default.adManager.adTimer.longPlayTimeLeft/1e3)})),o.default.adManager.on(r.AdManagerEvent.AD_START,(()=>{this.hide()}))}show(){this.tag.classList.toggle("countdown-tag-fadeIn",!0)}update(e){this.textfield.textContent=`Ad in ${e}s`,1===e?window.setTimeout((()=>{this.hide()}),1e3):e<0&&this.hide()}hide(){this.tag.classList.toggle("countdown-tag-fadeIn",!1)}}},9714:(e,t,n)=>{Object.defineProperty(t,"__esModule",{value:!0});const a=n(5215),r=n(939),i=n(973),o=n(7345);t.default=class{constructor(){const e=(0,i.getConfigOptionAny)("lockOrientation");e!==r.OrientationLock.NONE&&null!==e&&(this.validOrientation=e===r.OrientationLock.LANDSCAPE?90:0,this.build())}build(){const e=(0,o.getUIRoot)();this.bg=document.createElement("div"),this.bg.setAttribute("class","orientation-screen");const t=document.createElement("img");t.src="lib/assets/rotateIcon.png",t.setAttribute("class","orientation-screen-ico"),this.bg.appendChild(t);const n=()=>{(0,a.getOrientation)()!==this.validOrientation?e.contains(this.bg)||e.appendChild(this.bg):e.contains(this.bg)&&e.removeChild(this.bg)};window.addEventListener("orientationchange",(()=>{n(),setTimeout((()=>{n()}),500)})),n(),setTimeout((()=>{n()}),1500)}}},5038:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=a(n(388)),i=n(6618),o=a(n(8744)),s=n(7345),l=n(4186),d=n(5215);class c{constructor(){this.isBuilt=!1}static show(){null==c._instance&&(c._instance=new c),c._instance.show()}build(){this.isBuilt=!0,this.container=document.createElement("div"),this.container.setAttribute("class","supportPopupContainer"),this.fullBG=document.createElement("div"),this.fullBG.setAttribute("class","fullBG");const e=document.createElement("div");e.setAttribute("class","supportPopup"),this.container.appendChild(e),e.style.backgroundImage="url(./"+r.default.supportPopupBG+")";const t=document.createElement("img");t.src=r.default.supportPopupCloseBtn,t.setAttribute("class","supportPopupCloseBtn"),t.onclick=()=>{this.hide()},this.container.appendChild(t);const n=document.createElement("img");n.src=r.default.supportPopupTextFrame,n.setAttribute("class","termsAndConditionsBg");const a=document.createElement("img");a.src=r.default.supportPopupTextFrame,a.setAttribute("class","privacyPolicyBg");const s=document.createElement("div"),d=document.createElement("div");let c=o.default.commsManager.getLanguage();i.wrapperLanguages.includes(c)||(c="en");let u="kr"==c?l.LinksKR.TOS:l.Links.TOS,f="kr"==c?l.LinksKR.PRIVACYPOLICY:l.Links.PRIVACYPOLICY;s.setAttribute("class","termsAndConditionsLinkText"),s.innerHTML=""+i.TEXTS[c].tos+"",d.setAttribute("class","privacyPolicyLinkText"),d.innerHTML=""+i.TEXTS[c].privacy+"",this.playerIdText=document.createElement("div"),this.playerIdText.setAttribute("class","playerIdText");const g=document.createElement("div");g.setAttribute("class","contactUs"),g.innerText="Contact Us:";const h=document.createElement("div");h.setAttribute("class","supportEmail"),h.innerText="support-samsung@softgames.de",this.container.appendChild(n),this.container.appendChild(a),this.container.appendChild(s),this.container.appendChild(d),this.container.appendChild(g),this.container.appendChild(h),this.container.appendChild(this.playerIdText)}show(){this.isBuilt||this.build();const e=(0,s.getUIRoot)();e.appendChild(this.fullBG),e.appendChild(this.container);const t=o.default.instance.getPlayerID();this.playerIdText.innerHTML=(0,d.nulOrUnd)(t)?"":"ID: "+t}hide(){const e=(0,s.getUIRoot)();e.contains(this.container)&&e.removeChild(this.container),e.contains(this.fullBG)&&e.removeChild(this.fullBG)}}t.default=c,c._instance=null},6456:(e,t)=>{function n(e){return new Promise((t=>{document.addEventListener(e,t)}))}Object.defineProperty(t,"__esModule",{value:!0}),t.getParameterByName=t.DOMEventToPromise=t.createHTMLElement=void 0,t.createHTMLElement=async function({tag:e,id:t,src:a,style:r,optParent:i}){document.body||await n("DOMContentLoaded");const o=document.createElement(e);if(t&&(o.id=t),r&&o.setAttribute("style",r),(i||document.body).appendChild(o),a){const e=function(e){return new Promise((t=>{e.onload=()=>{t()}}))}(o);o.setAttribute("src",a),await e}return o},t.DOMEventToPromise=n,t.getParameterByName=function(e,t=window.location.href){e=e.replace(/[\[\]]/g,"\\$&");var n=new RegExp("[?&]"+e+"(=([^&#]*)|&|#|$)").exec(t);return n?n[2]?decodeURIComponent(n[2].replace(/\+/g," ")):"":null}},7345:(e,t)=>{function n(){const e=document.createElement("div");return e.setAttribute("id",t.UI_ROOT_ELEMENT_ID),e.setAttribute("class","wrapper-ui"),document.body.appendChild(e),e}Object.defineProperty(t,"__esModule",{value:!0}),t.getUIRoot=t.createUIRoot=t.UI_ROOT_ELEMENT_ID=void 0,t.UI_ROOT_ELEMENT_ID="ui-root",t.createUIRoot=n,t.getUIRoot=function(){return document.getElementById(t.UI_ROOT_ELEMENT_ID)||n()}},2915:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(2665),i=a(n(8744)),o=n(7345);t.default=class{constructor(){this.root=(0,o.getUIRoot)(),this.bg=document.createElement("div"),this.bg.setAttribute("class","loading-screen");const e=document.createElement("div");e.setAttribute("class","spinner"),this.bg.appendChild(e),i.default.adManager.on(r.AdManagerEvent.AD_REQUESTED,(()=>{this.show()})),i.default.adManager.on(r.AdManagerEvent.AD_START,(()=>{this.hide()})),i.default.adManager.on(r.AdManagerEvent.AD_CLOSE,(()=>{this.hide()}))}show(){this.root.appendChild(this.bg),window.setTimeout((()=>{this.hide()}),5e3)}hide(){this.root.contains(this.bg)&&this.root.removeChild(this.bg)}}},1790:function(e,t,n){var a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});const r=n(7345),i=a(n(2801)),o=n(6456),s=a(n(388)),l=n(9251),d=a(n(8744));t.default=class{constructor(e=!0){this.loadingScreenDuration=3e3,this.showRating=e,this.hideCalled=!1,this.loadingScreenRemoved=!1,this.root=(0,r.createUIRoot)(),this.build(),this.setupLoadedEvent()}setupLoadedEvent(){d.default.interface.once(l.InterfaceEvent.LOADED,(()=>{this.isLoaded=!0,this.canHide&&this.hide()}))}build(){this.hideTimer=window.setTimeout((()=>{this.canHide=!0,this.isLoaded&&this.hide()}),this.loadingScreenDuration),this.bg=document.createElement("div"),this.bg.setAttribute("class","splash-screen");const e=document.createElement("img");e.setAttribute("src","./Icon_512x512.png"),e.setAttribute("class","background-image"),this.bg.appendChild(e);const t=document.createElement("img");t.setAttribute("src","./Icon_512x512.png"),t.setAttribute("class","game-logo"),this.bg.appendChild(t),this.spinner=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.spinner.setAttribute("class","progress-ring"),this.background=document.createElementNS("http://www.w3.org/2000/svg","circle"),this.background.setAttribute("class","background-circle"),this.background.setAttribute("r",""+(i.default.SPLASH_SPINNER_SIZE-i.default.SPLASH_SPINNER_STROKE/2)),this.background.setAttribute("cx",`${i.default.SPLASH_SPINNER_SIZE}`),this.background.setAttribute("cy",`${i.default.SPLASH_SPINNER_SIZE}`),this.background.setAttribute("stroke-width",`${i.default.SPLASH_SPINNER_STROKE}`),this.spinner.appendChild(this.background),this.circle=document.createElementNS("http://www.w3.org/2000/svg","circle"),this.circle.classList.add("progress-ring-circle"),this.circle.setAttribute("r",""+(i.default.SPLASH_SPINNER_SIZE-i.default.SPLASH_SPINNER_STROKE/2)),this.circle.setAttribute("cx",`${i.default.SPLASH_SPINNER_SIZE}`),this.circle.setAttribute("cy",`${i.default.SPLASH_SPINNER_SIZE}`),this.circle.setAttribute("stroke-width",`${i.default.SPLASH_SPINNER_STROKE}`),this.circle.style.animation="spin 2s linear infinite",this.spinner.appendChild(this.circle),this.bg.appendChild(this.spinner),(0,o.createHTMLElement)({tag:"img"}).then((async e=>{e.src=s.default.softgamesLogo,e.setAttribute("class","softgames-logo"),this.softgamesLogo=e,this.bg.append(e),this.onLogoShown()})),this.showRating&&(0,o.createHTMLElement)({tag:"img",id:i.default.RATING_CONTAINER_ID}).then((async e=>{e.src=s.default.ratingImage,this.bg.append(e)})),this.createdAt=new Date,this.circumference=2*(i.default.SPLASH_SPINNER_SIZE-i.default.SPLASH_SPINNER_STROKE/2)*Math.PI,this.circle.style.strokeDasharray=`${this.circumference} ${this.circumference}`,this.circle.style.strokeDashoffset=""+(this.circumference-1/3*this.circumference)}show(){this.hideCalled&&window.setTimeout((()=>{this.hide()}),this.loadingScreenDuration),this.root.appendChild(this.bg)}hide(){this.root.contains(this.bg)&&!this.loadingScreenRemoved?window.setTimeout((()=>{this.loadingScreenRemoved=!0,this.root.contains(this.bg)&&this.root.removeChild(this.bg)}),this.loadingScreenDuration):window.setTimeout((()=>{this.hide()}),1e3)}updateProgress(e){this.circle.style.animation="",e=Math.max(e,30),e=Math.min(e,100);const t=this.circumference-e/100*this.circumference;this.circle.style.strokeDashoffset=t}timeLeftMS(){return Math.max(0,i.default.SHOW_RATING_DURATION_MS+i.default.SAMSUNG_SPLASH_DURATION_MS-((new Date).getTime()-this.createdAt.getTime()))}destroy(){this.hide()}onLogoShown(){}}},240:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0});t.default=class{constructor(){this.oldO=window.orientation,this.oldW=window.innerWidth,this.oldH=window.innerHeight,window.addEventListener("resize",(()=>{window.setTimeout((()=>{const e=this.oldW!==window.innerWidth||this.oldH!==window.innerHeight,t=this.oldW/this.oldH==window.innerWidth/window.innerHeight;this.oldW=window.innerWidth,this.oldH=window.innerHeight;const n=this.oldO!==window.orientation;this.oldO=window.orientation,!e||n||t||location.reload()}),500)}))}}},6618:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.wrapperLanguages=t.TEXTS=void 0,t.TEXTS=[],t.TEXTS.fr={play:"JOUER",tos:"Conditions d'utilisation",privacy:"Politique de confidentialité"},t.TEXTS.de={play:"SPIELEN",tos:"Geschäftsbedingungen",privacy:"Datenschutzerklärung"},t.TEXTS.en={play:"PLAY",tos:"Terms & Conditions",privacy:"Privacy Policy"},t.TEXTS.es={play:"JUEGA",tos:"Términos y condiciones",privacy:"Política de privacidad"},t.TEXTS.it={play:"GIOCA",tos:"Termini e Condizioni",privacy:"Informativa sulla privacy"},t.TEXTS.pt={play:"JOGAR",tos:"Termos e condições",privacy:"Política de privacidade"},t.TEXTS.ru={play:"Играть",tos:"Условия",privacy:"Политика конфиденциальн"},t.TEXTS.tr={play:"OYNA",tos:"Şart ve Koşullar",privacy:"Gizlilik Politikası"},t.TEXTS.nl={play:"SPEEL",tos:"Voorwaarden",privacy:"Privacybeleid"},t.TEXTS.pl={play:"GRAJ",tos:"Zasady i warunki",privacy:"Polityka prywatności"},t.TEXTS.hi={play:"खेलें",tos:"Terms & Conditions",privacy:"Privacy Policy"},t.TEXTS.vi={play:"Chơi",tos:"Điều khoản & Điều kiện",privacy:"Chính sách Quyền riêng tư"},t.TEXTS.th={play:"เล่น",tos:"Terms & Conditions",privacy:"Privacy Policy"},t.TEXTS.ja={play:"プレイ",tos:"利用規約",privacy:"プライバシーポリシー"},t.TEXTS.kr={play:"놀다",tos:"이용 약관",privacy:"개인정보 보호 정책"},t.TEXTS.ar={play:"لعب",tos:"Terms & Conditions",privacy:"Privacy Policy"},t.wrapperLanguages=["en","fr","de","es","it","pt","ru","tr","nl","pl","hi","vi","th","ja","kr","ar"]},9233:(e,t,n)=>{var a;n.r(t),n.d(t,{NIL:()=>M,parse:()=>_,stringify:()=>c,v1:()=>p,v3:()=>b,v4:()=>R,v5:()=>O,validate:()=>s,version:()=>N});var r=new Uint8Array(16);function i(){if(!a&&!(a="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto)))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return a(r)}const o=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;const s=function(e){return"string"==typeof e&&o.test(e)};for(var l=[],d=0;d<256;++d)l.push((d+256).toString(16).substr(1));const c=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=(l[e[t+0]]+l[e[t+1]]+l[e[t+2]]+l[e[t+3]]+"-"+l[e[t+4]]+l[e[t+5]]+"-"+l[e[t+6]]+l[e[t+7]]+"-"+l[e[t+8]]+l[e[t+9]]+"-"+l[e[t+10]]+l[e[t+11]]+l[e[t+12]]+l[e[t+13]]+l[e[t+14]]+l[e[t+15]]).toLowerCase();if(!s(n))throw TypeError("Stringified UUID is invalid");return n};var u,f,g=0,h=0;const p=function(e,t,n){var a=t&&n||0,r=t||new Array(16),o=(e=e||{}).node||u,s=void 0!==e.clockseq?e.clockseq:f;if(null==o||null==s){var l=e.random||(e.rng||i)();null==o&&(o=u=[1|l[0],l[1],l[2],l[3],l[4],l[5]]),null==s&&(s=f=16383&(l[6]<<8|l[7]))}var d=void 0!==e.msecs?e.msecs:Date.now(),p=void 0!==e.nsecs?e.nsecs:h+1,_=d-g+(p-h)/1e4;if(_<0&&void 0===e.clockseq&&(s=s+1&16383),(_<0||d>g)&&void 0===e.nsecs&&(p=0),p>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");g=d,h=p,f=s;var m=(1e4*(268435455&(d+=122192928e5))+p)%4294967296;r[a++]=m>>>24&255,r[a++]=m>>>16&255,r[a++]=m>>>8&255,r[a++]=255&m;var A=d/4294967296*1e4&268435455;r[a++]=A>>>8&255,r[a++]=255&A,r[a++]=A>>>24&15|16,r[a++]=A>>>16&255,r[a++]=s>>>8|128,r[a++]=255&s;for(var E=0;E<6;++E)r[a+E]=o[E];return t||c(r)};const _=function(e){if(!s(e))throw TypeError("Invalid UUID");var t,n=new Uint8Array(16);return n[0]=(t=parseInt(e.slice(0,8),16))>>>24,n[1]=t>>>16&255,n[2]=t>>>8&255,n[3]=255&t,n[4]=(t=parseInt(e.slice(9,13),16))>>>8,n[5]=255&t,n[6]=(t=parseInt(e.slice(14,18),16))>>>8,n[7]=255&t,n[8]=(t=parseInt(e.slice(19,23),16))>>>8,n[9]=255&t,n[10]=(t=parseInt(e.slice(24,36),16))/1099511627776&255,n[11]=t/4294967296&255,n[12]=t>>>24&255,n[13]=t>>>16&255,n[14]=t>>>8&255,n[15]=255&t,n};function m(e,t,n){function a(e,a,r,i){if("string"==typeof e&&(e=function(e){e=unescape(encodeURIComponent(e));for(var t=[],n=0;n>>9<<4)+1}function E(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function v(e,t,n,a,r,i){return E((o=E(E(t,e),E(a,i)))<<(s=r)|o>>>32-s,n);var o,s}function S(e,t,n,a,r,i,o){return v(t&n|~t&a,e,t,r,i,o)}function y(e,t,n,a,r,i,o){return v(t&a|n&~a,e,t,r,i,o)}function T(e,t,n,a,r,i,o){return v(t^n^a,e,t,r,i,o)}function P(e,t,n,a,r,i,o){return v(n^(t|~a),e,t,r,i,o)}const w=function(e){if("string"==typeof e){var t=unescape(encodeURIComponent(e));e=new Uint8Array(t.length);for(var n=0;n>5]>>>r%32&255,o=parseInt(a.charAt(i>>>4&15)+a.charAt(15&i),16);t.push(o)}return t}(function(e,t){e[t>>5]|=128<>5]|=(255&e[a/8])<>>32-t}const L=function(e){var t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520];if("string"==typeof e){var a=unescape(encodeURIComponent(e));e=[];for(var r=0;r>>0;E=A,A=m,m=I(_,30)>>>0,_=p,p=y}n[0]=n[0]+p>>>0,n[1]=n[1]+_>>>0,n[2]=n[2]+m>>>0,n[3]=n[3]+A>>>0,n[4]=n[4]+E>>>0}return[n[0]>>24&255,n[0]>>16&255,n[0]>>8&255,255&n[0],n[1]>>24&255,n[1]>>16&255,n[1]>>8&255,255&n[1],n[2]>>24&255,n[2]>>16&255,n[2]>>8&255,255&n[2],n[3]>>24&255,n[3]>>16&255,n[3]>>8&255,255&n[3],n[4]>>24&255,n[4]>>16&255,n[4]>>8&255,255&n[4]]};const O=m("v5",80,L),M="00000000-0000-0000-0000-000000000000";const N=function(e){if(!s(e))throw TypeError("Invalid UUID");return parseInt(e.substr(14,1),16)}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var n=__webpack_module_cache__[e]={exports:{}};return __webpack_modules__[e].call(n.exports,n,n.exports,__webpack_require__),n.exports}__webpack_require__.d=(e,t)=>{for(var n in t)__webpack_require__.o(t,n)&&!__webpack_require__.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var __webpack_exports__=__webpack_require__(9284)})(); \ No newline at end of file diff --git a/vex8/patch/js/YYGGames-o.js b/vex8/patch/js/YYGGames-o.js new file mode 100644 index 000000000..9676cab45 --- /dev/null +++ b/vex8/patch/js/YYGGames-o.js @@ -0,0 +1,12428 @@ +function _0xb80e(_0x1c08fd, _0x5c15ac) { + const _0x18a223 = _0x18a2(); + return _0xb80e = function (_0xb80eb1, _0x566a2b) { + _0xb80eb1 = _0xb80eb1 - 0x192; + let _0x12125e = _0x18a223[_0xb80eb1]; + return _0x12125e; + }, _0xb80e(_0x1c08fd, _0x5c15ac); +} + +function _0x18a2() { + const _0x57c1fd = ['timeout', 'var _loope', 'mul', 'PRE', 'readDataSy', 'ms=source%', 'column', 'tener', 'lay: -0.16', 'RESS', 'AFG_INT_SK', 'en_GAMEDIS', '_promise', 'getVastErr', 'loadConfig', 'skip', 'this.iConf', 'documentEl', 'SDK_ERROR', '1,119,101,', 'Kfreegame', 'rray(', 'laya', 'async', 'w.bestgame', 'adding:10p', 'ts = new A', 'formatURL', '2246042049', 'Waterfall ', 'loaded', 'bottom', ' afg inter', '32,105,115', ' left:', 'yygGamesOw', 'om/gtag/js', 'runWith', 'ransform: ', 'textAlign', '= true;\x0a', ':after{\x0a ', 'nge', ' ready', 'fset', 'block', 'ported', 'is showing', '933793nhKmPf', '10px', 'com', 'var _conte', 'action', 'IP_DURATIO', 'e-InGame-A', 'viewing', 'byteLength', 'round: #87', 'kidgameclu', 'readUint16', 'sans-serif', 'ring', 'recommend_', 'tize.com/s', 'xt;\x0a', '}), functi', '5352280899', 'Xishanju', 'status', 't\";\x0a', 'ord-wrap: ', 'error(_err', 'touchstart', 's load7\x0a ', 'afgConfig', 'IAN', 'Buffer', ' seconds', '.then((fun', 'onAdDismis', 'k.vigoo.co', 'border', 'meOffset', 'nstruct.ne', 'it-animati', 'log', 'AdPlatform', 'itemSize', 'CLICK', '3.5em;\x0a ', 'taps', 'K/h5games4', 'translate', 'ors', 'userAgent', 'AD_ERROR', 'API is not', 'item.resul', '--_counter', 'getUint32', 'ready :', 'constructo', 'sort', 'nSite', 'epared', 'en_ADCHANN', 'justifyCon', '_resolve(P', 'register', ': 0px auto', 'mask', 'SyncBailHo', '936.com', 'applicatio', 'emoved', 'env', 'indexOf', 'Z(0);\x0a ', 'ormType', 'AdEvent', 'ial AD,les', 'ease-in-ou', 'nimation-d', 'doPad', 'ointN', 'or.', 'g.duration', 'parent', 'romise.res', 'getDebugOp', '_pool', 'arg1', 'uiView', 'TRANSSION', 'createElem', 'is not sup', 'showAd', '#for(key).', 'var item =', 'ca-pub-160', 'round', 'WEBSITEADD', ':after\x0a ', 'm/vigoo/sd', 'href', 'data-chann', 'document', 'transformP', 'shift', 'cssText', 'ror', ' error:', 'caller', '30,30,30,3', 'showAdFn', 'clientWidt', 'gory', 'tap', 'ancestorOr', 'type', 'nGame-AdUn', 'TION', 'ent_slot', 'ngth; i++)', 'CMD', 'INIT', '100%', 'w.yad.com/', 'SDK_GAME_S', 'defaultAd', 'en_TCL', 'alue is Fa', 'resolve, _', 'BUIDTIME:', 'HookMap', 'match', 'getFloat32', 'var _count', 'item.error', 'GGamesBund', ' }\x0a ', 'ativePath', 'var _tap', 'titial', 'c reward c', 'w.kfreegam', '));\x0a', 'o that you', 'event', 'Rewards se', 'MPLETED', ',…) is dep', 'zzlegame.c', '125px', 'width', 'less-than-', '_context', ' a SyncLoo', ' _results[', ' {', ' 0;\x0a', 'Done = fun', 'getFloat64', 'adBreak', 'startGameA', ' }), _chec', 'transform', 'url=', 'isReady', '30s', ' SyncBailH', 'afterAd', '[lhjztL]*?', 'onUpdate', 'Array', 'API', 'onBeforeRe', 'callbacks', 'ent', ' \x0a ', 'Invalid ta', 'requestAd', 'AD_SDK_FIN', ';\x0a} else {', 'remove', 'n((functio', 'Crazygames', '), (_resul', 'touchend', 'onAfterSho', '5s ease-in', 'update', ' -ms-tran', 'adBreak is', 'resize', ' 101, 65, ', 'color', '16px', 'en_BANNERE', 'readInt32', '_loop = tr', 'right', 'InGame-AdU', ' .', '_context, ', 'text', 'onBannerRe', 'muted', 'https://ww', '936.com/h5', 'onabort', 'ause the g', '\"use stric', 'time', 'getTimeOff', 'are not ho', '2.0.0', 'ca-pub-612', '_ensureWri', 'sion ', 'freegame4f', 'vibrate', 'location', 'stopSound', 'window', 'v1/sdk.js', 'manifest', 'bads.g.dou', 'then', 'var _hasRe', 'afcConfig', 'recated. U', 'isAwake', 'lHook', '= 0; i < _', '} while(_l', '] = { resu', 'split', '();\x0a', ' -webkit-', 'lse, set t', 'LoadingLay', '_children', 'ow: 0 2.5e', ' have at l', 'medistribu', 'startupCom', 'play', 'name', 'ConfigType', 'ion.com/pa', '{\x0a ', 'less-than', 'le.js', '] = { erro', '2023-06-14', 'getScaleY', 'bundle', 'kDone())) ', 'forgame/ga', ' a SyncWat', 'fixed', 'false;\x0a', 'gameBox', 'script', 'complete', 'ins', 'apped', 'beforeAd', 'SyncWaterf', 'contentWin', 'String', 'showReward', '_tap', 'x480&iu=', '.then)\x0a', 'getMessage', ' Interstit', '20px', 'remainingT', 'iConfig', 'foreBreak', 'find', 'readByte e', 'ap functio', ' can claim', 'onclick', 'writeByte', 'NoAd', 'w.yof.com/', 'ngth = ', 'mes.json', 'transform:', 'focus', 'isSuspend', '_readUint1', 'scale', '_callAsync', 'visible', 'bility', '-webkit-an', 'getAdData', 'trace', 'Com', 'getInt8', '_next', 'var _loop;', 'color: #ff', 'tapAsync', 'T_DURATION', 'en_CHANNEL', 'startup', 'setAttribu', 'rsion', 'miu', 'Reward in ', 'unds', 'run', 'start', 'adBreakDon', 'Hook', ' 103, 108,', '_INIT', 'startupByC', 'setTo', 'isCanShowR', ' Reward AD', '_x[', 'ig.showTim', 'audio', 'show int a', '_createCal', '}));\x0a', 'TART', 'isReward', '_volume', 'ilable', 'physicsTim', 'oth;\x0a ', '_call', 'var _inter', 'ansform 0.', ').tapPromi', 'w.cargames', 'pAsync(key', ' afc Inter', 'checkVersi', 't of bound', 'onYYGGames', 'ite-InGame', 'identity', ');\x0a', 'forgames', '_bTransfor', 'SDK_GAME_P', '82-8', '634', '1905;', 'Async', 'lse);\x0a', 'the inters', 'redirect', 'sin', 'beforeShow', 'setFloat32', 'c%s', 'HookMap#ta', 'amesBundle', 'es-Site-In', 'wooagames.', 'SyncHook', 'showRAD', 'en_GAMEMON', '__getBuffe', 'toLocaleLo', '58,47,47,1', 'writeUint3', 'responseTy', 'SCRIPT_YIV', 'Skip Ad', 'Game-AdUni', 'screen', 'nt though ', 'onError', 'NORMAL', 'butionId', ' c', 's.com/', 'navigatePa', 'tors', 'var _loopA', 'length:', 'loop', 'playSound', 's than 30s', 'int', 'context', 'rallel', 'hooks must', 'GAME_PLAY_', 'adViewed', '_getMatrix', 'fore', '_createLis', 'onwer', 'cleaned', 'rgb(255, 2', 'reject) {\x0a', 'p%jr])', 'YYGGamesWe', 'showIAD', 'st on ', ') instead.', '001982-3', 'oaded', 'createBuff', 'writeUTFBy', 'Hook.conte', 'exports', 'writeInt16', 'ction() {\x0a', 'CrazySDK', 'h5gamessdk', 'close', ' CONFIG:', 'eq=1&outpu', 'setUint32', '4555556324', '608430puTIIV', 'readUTFByt', 'nfoSync', 'ing', 'getByte', '671170LccRhy', 'if(_counte', '_getUint16', ' translate', 'original v', '96-23', 'key', '11/Yiv-Sit', '登录成功', 'result', 'orted on a', 'getUint8Ar', 'writeArray', 'timerScale', ' con', 'nit', 'AFC_TIMEOU', ' 0, 0.8)', '0,32,98,12', 'default-ad', 'GAME', '11/CarGame', 'ecated and', '_readMatri', 'es-Mobile-', 'ndent: -99', '.yyggames.', 'open', 'maxDuratio', 'lError', 'll-mode: b', 'ETIZEID', 'POST', 'errorType:', 'ckground: ', 'STED', 'var _fn', 'data-ad-fo', 'apply', 'olve().the', 'ize', 'format', 'D_AUTO', 'sdk', 'YAD.Com', 'r: ', 'preroll', 'No Availab', 'games', ' of bounds', 'map', '_sysEndian', 'deinit', 'if(item ==', 'beforeRewa', 'CLOSE', 'bytesAvail', 's-PC-Site-', 'ONFIG', 'setInt16', ' -we', 'ResourceVe', '_args', 'Box', 'null, ', 'viewed', 'trim', 'value', '.result(', 'else\x0a', 'var _promi', 'getMyID', '开始登录', 'ition_star', 'initialize', 'if(_sync)\x0a', 'en_ADPUBID', 'w _err; })', 'forEach', 'gmanager.c', 'adError', 'AFG_TIMEOU', ');z-index:', 'var _x = t', 'ed. Use Ho', 'dow', 'factory', 'there is n', '.jpg', 'connect', '_YYGGames', 'nabled', 'catch', 'exportScen', 'https://pu', 'load Rewar', 'push', 'rd after ', 'enable', 'https://ht', 'configs', 'on: fixed;', 'gdsdk__adv', 'decode ver', 'pported on', ' = false;\x0a', 'impl=s&des', 'xm.yyggame', 'game', '.com', '_allocated', '11/PuzzleG', 'se(…) inst', 'nslateZ(0)', 'ks for you', 'getType', 'getAdptedF', 'itialAdAsy', 'hideBanner', 'canShowFor', '_readUInt8', 'SUME_REQUE', 'channel', 'pubid:', 'width-resp', 'function _', 'ilable, bu', ' afc rewar', 'return fal', 'adConfig', '82-2', 'adsbygoogl', 'x 10px;min', 'mousedown', 'Video', 'yof.com', ' >= _resul', 'ync) _loop', 'ise', 'plete', 'createObje', 'method', '1,32,121,1', 'GGames-dev', 'ined) {\x0a', 'audioEngin', 'paddingLef', '%c %c %c Y', 'maxSkipTim', 'getInt32', 'designHeig', '21286zTAGRQ', 'rConfig', '459420XSKScB', 'data-adtes', '%s %c %c ', 'ter === 0)', 'pPromise(k', 'ngTime', 'onload', 'zeId', 'm/pic.json', '192.168.0', '192.168.1', '?id=UA-203', 'showBanner', 'display', 'showTip', 'debugOpen', ' your rewa', '40%', 'search', 'AdManager/', 'issed', 'ById', 'gain', 'puzzlegame', 'stop', 'getUTFStri', 'tan', 'src', 'eak;\x0a', ': 10px;\x0a ', 'debugOpen ', 'interstiti', 'ctURL', 'okMap#for(', 'bgm.mp3', '_error(', 'onEvent', '_sync = fa', 'SCRIPT', 'mul16', 'Image', 'ame files ', 'Singleton', ' }\x0a ', '140px', 'checkRewar', 'Content-Ty', 'yad.com', 'nimation: ', 'gead2.goog', 'ENV', 'MOUSE_OUT', 'ation', 'hScrollBar', 'navigate', 'ADComponen', 'yof.com/pa', 'ons', 'image/png', 'getCustomS', 'y8.com', '_recoverHa', 'var _resul', 'ts.length ', 'AdsManager', 'length', 'SCALE_FIXE', ' {\x0a', 'zed', 'cos', '__importDe', '55, 255);l', '-height:20', 'offAllCall', 'd-break: b', 'array', 'promise (r', 'View', 'null path', 'playMusic', 'substring', 'intercepto', 'heticdevel', 'LoadedEven', 'promise', '} catch(_e', 'ook', ':before{\x0a ', ', ignored ', 'toUpperCas', 'getUint8 e', ', _result', 'gamedistri', 'titial err', 'rl=', 'regStatusH', 'sform', 'Blob', ' animat', 'should be ', 'off', '= this.tap', 'traceWarn', ' SyncHook', 'data:image', 'rds after ', 'olor: #fff', 'getInt32 e', 'w.babygame', '4556476462', 'littleEndi', 'subarray', 'create', 'request', '_createFun', 'removeEven', 'inited', '7420070029', 'e%3DAll', ' heigh', 'advertisem', 'ontimeout', '======', 'index', 'px;color: ', '.done();\x0a', 'COMPLETE', 'getRemaini', '4704497076', 'sult', 'eward', 'tion.com/m', 'sBailHook', 'onerror', 'LITTLE_END', 'h5games4u', 'threeD', 'cription_u', 'isArray', 'rr);\x0a', 'd ad', 'lete', 'js/sdkload', 'danfa', 'marginLeft', ' 0, %d)', 'rtner/game', 'yFn', 'et/gampad/', 'adStarted', ' SyncWater', ' || !_prom', 'default', 'onStartup', 'enabled', '709', 'lineHeight', 'innerWidth', 'try {\x0a', 'if (!_prom', 'hidden;wor', 'floor', ' a SyncBai', 'yyggames.c', 'ELID', 'translateX', 'addVersion', 'neupitsolu', 'writeFloat', 'toString', 'fault', 'xiaomi', 'localhost', ',100,46,99', 'finally', 'facebook.', 'if(--_coun', 'OUT', 'onInitiali', 'ript', 'rror - Out', 'GGames2.js', 'message', 'n() { thro', 'afc', 'none', 'options', 'en_TRANSSI', 'er/ima3.js', '9580795478', '= undefine', '-InGame-Ad', 't: 2.0em; ', 'm 0 -1.3em', 'f bounds', 'key).tap(…', 'preview.co', 'rm-urlenco', 'testgame.o', 'AD_CANCELE', 'state', 'yad.png', 'lse;\x0a', 'renderHand', 'Mobile', 'ads?sz=640', 'se HookMap', 'startupByB', ' }', 'Progress', 'onDone', 'TRIBUTIONI', 'asdk.googl', 'ShowExcita', 'ertisement', 'icon', 'b.com', '_getUInt8', 'rval', 'adbreak re', 'reward', 'cript', 'return ', 'owner', 'v1/sdk.dev', 'afc.rConfi', 'tent', 'setLoading', 'SDK', 'n() {\x0a', '753', 'igins', 'getInt16Ar', 'background', 'readFloat6', 'webkitAudi', 'alTimerout', ' -webk', 'getForgame', 'Unknown', 'ndefined) ', 'rgames.com', '80px', '7,63, 103,', 'scaleEx', '&utm_mediu', 'errorCode:', 'pauseSound', 'FTER_INIT', 'bution.c', 'ptor', 'rootPath', 'ontainer', ',80%,100% ', 'ca-pub-622', 'ign=game-', 'started', 'ak-test', 'fbsbx.', 'Adr', 'blob', 'afterShowI', 'onLoaded', 'titialCoun', '19,119,119', ' 40% ', 'ndlers', 'canShowRew', '} while(fa', 'if(', 'mes/cv', 'd AD Succe', '_hasError', 't=1&gdfp_r', 'ult', 'readString', 'data', 'RewardedVi', 'on(_err', 'pause', '0);\x0a ', '#000000', 'loadAsync', 'ts.length)', 'TEST', 'Website', 'nonLinearA', 'showLoadin', 'if(!_hasEr', 'readArrayB', '_hasResult', '-AdUnit', 'unshift', 'contentCom', 'appName', 'm/sdk/res/', 'BestGames.', ';\x0a ', 'nGameAd', '4j.com', 'one;Secure', 'ca-pub-887', '.error(', 'throw ', 'eapis.com/', 'hidden', 'referrer', 'EMPTY', '_muted', 'suspended', 'erIntercep', '?id=', 'tent: \'\';\x0a', 'stage', 'CARGAMES', '_taps[', 'aled', 'readUint32', ' = ', 'header', 'isNaN', '_gInstance', 'hostnames', 'en_DEBUGOP', 'onMessage', 'getSkipTim', 'error - Ou', '0.5s ease-', '7723651850', 'skipLabel', 'idg', 'isLoaded', 'zIndex', 'bleclick.n', 'ction(_res', 'mesAD.json', '.Com', ' in this b', 'paddingRig', '55,255,.5)', 'head', 'eprecated.', 'e;\x0a', '6,112,115,', 'ffff; back', '() {\x0a', '([diouxXfF', 'var _check', 'topgames.c', 'break-word', 'true', 'dVideoAsyn', 'volume', 'center', 'mouseup', '82-1', 'source', 'skipButton', 'onRewardBe', 'yggames.co', 'games.prop', 'bution.com', 'inline', '.tap(', 'callAsync', 'https://pa', 'tion-fill-', ' + \')\');\x0a', 'charCodeAt', 'timer', 'd*))?', ' _done();\x0a', 'destinatio', 'InGameAd', 's/tcl', '_id', 'ChannelTyp', '5554936132', 'resumeId', 'YIV.Com', ' is not su', 'isNewBee', 'afg first ', 'ground: #8', 'every', 'imeLabel', 'ml5.api.ga', 'testGame', '.CMD.GAME_', 't-align:ce', 'checkin', 'ViewMode', '(-9999px)', 'm 0 0;\x0a ', 'OTHER', 'setup', 'MultiHook', 'AdData:onL', ' 0,.7);fon', 'stopAll', ',111,109,4', 'oContext', '_length', ' .', 'change', 'data-ad-ch', 'join', 'ceptors;\x0a', '0;\x0a ', 'hideSplash', 'sition', 'layaCanvas', 'sWaterfall', 'fff;\x0a ', 'concat', 'reportAnal', ' -webkit-a', 'setInt32', 'className', 'imerOnVisi', '40px', '&cust_para', 'pauseMusic', 'w.googleta', 'content', 'reintersti', 'ined && (_', 'getAdPlatf', 'var _done ', 'rewardOpti', 'r support.', 'ead.', '100', 'YGGAMES %c', 'us: 50%;\x0a ', 'buffer', 'res', 'recommends', 'has', 'args', 'YGGAMES:', 'hasListene', 'STARTED', '50%', 'sbygoogle.', 'getInterst', 'CloudView', 'call', '(0)', 'w.puzzlega', '_resolve()', 'di1.png', '104,116,11', ' !== undef', 'div', 'Name', 'partner/ga', 'rotate', 'adFinished', 'showInters', 'setAdWillA', 'games/YYGG', 'banner', 'w.topgames', ' = _fn', ' infinite ', 'fromCharCo', 'SEVRVER_OP', 'scripts', 'arraybuffe', 'URL', 'www.yad.co', 'rewardUnpr', 'AdErrorEve', 'props', 'Missing na', 'request af', 'showAsync', 'SDK_OPTION', 'data-ad-sl', 'rewardTime', 'traceVersi', ' throw ne', 'VideoAdTyp', 'dataSource', 'compile', 'smissed', 'isShowAD', 'TIONS_TIME', 'https://sd', ': #fb8cb3', '1px solid ', 'error', 'r > 0) {\x0a', 'elay: -0.1', '_checkTran', 'ors[', ' .', 'flex', '#ffffff', 'unknown', 'https://im', 'yiv.com', 'dsGame.js', 'kfreegame ', 'charAt', '.js', 'itmes', '_intercept', 'ler', 'x 10px 10p', 'requestAds', 'setInt8', ' @ ', 'FaceBook', 'Abstract: ', 'defineProp', 'tion.com', 'resume', 'MOUSE_DOWN', 'UA-1202418', 'er = ', 'onRewardDi', 'le-Site-In', 'lative;\x0a ', 'More Games', 'kfreegame', 'OMPLETE', 'tialCount', 'ger', 'for(var i ', '_pos_', 'endian', 'updateInte', '_resolve(', '==========', 'iOS', '96-20', 'postMessag', 'tring', 'preloadRew', 'delete', 'com/gameSD', 'number', ',46,121,97', 'Buffer err', 'BabyGames.', 'back', 'abyGames', '([\'\\-+ #0]', '_10:28:20', 'es.com/cra', '&utm_campa', 'e_splash', '11/BestGam', ' afg rewar', 'size', 'fontSize', 'GGames.js', '50px', 'me error', 'min', 'customForm', 'ward', 'currentTim', 'gtag', 'YYGGAMES_C', 'AudioConte', 'nearFullSl', 'pHook', 'iframe', 'onRewardAf', 'canReward', 'ey,…) is d', '30px', 'webkitTran', 'ceptors = ', 'SoundManag', 'lelHook', 'o AD. Than', 'entries', 'AdsRequest', 'rgba(0, 0,', 'AsyncParal', '8431729647', ' 0;\x0a_done(', 'requesting', '_callback', 'onAdShow', 'borderRadi', 'sync', 'undefined', 'Web Audio ', 'text/javas', 'ATUS:', 'terBreak', 'xsj', 'callTapsPa', '_factory', 'opacity', '_formatRel', 'rowser', 'w.4j.com/', '0px', 'return new', 'hostname', 'ise) did n', 'preloadAd', 'getUint8', 'onViewed', 'targets', '120px', 'sendMessag', 'NABLE', 'changeVisi', 'stener', 'next', 'onBefore', 'sprite', '8750284884', '_u8d_', '_rUTF', 'zOrder', ') throw _e', 'puzzle2.pn', 'writeUint1', 'oop);\x0a', 'bind', '180s', 'events', 'sqrt', 'EFORE_INIT', '27ASxpTl', 'setBannerS', '_basePath', 'ima', 'gamemoneti', 's deprecat', 'ADS_MANAGE', '_events', 'ram', 'gdsdk', 'GET', 'centerX', 'ement', 'needContex', 'AFG INT ST', '} else {\x0a', 'top', 'Prefix', 'YAD', 'withOption', 'hIntercept', 'ard', '& ((_resul', 'music', 'IOS', 'writeInt32', 't you can ', 'track', ',32,112,11', 'alCooldown', 'Banner', 'tion: abso', 'createGain', 'getUint32 ', 'p(key,…) i', 's;\x0a', 'recover', 'oping', ';font-fami', 'me for tap', 'callTap', '10s', 'getId.php?', 'skippable', 'HANNEL', '\x0a ', 'marginTop', 'zygames-sd', 'h5games4u.', 'cursor', 'e error', 'clientHeig', 'bsite', 'equency-hi', 'n (tapProm', 'et=UTF-8', 'Event', 'eturned \' ', 'parse', 'send', 'object', 'console', 'mchannel', 'slice', 'contentWit', '17dkSCvC', 'set', '_resetComp', '15yIAEas', 'NAME', 'readCustom', 'renderingE', 'fer', 'AFG_REWARD', 'pletely, s', 'do {\x0a', 'alertGloba', 'gead/js/ad', 'owAd', 'pubid', '4px', 'rray', '_callback(', 'ShowScreen', 'return tru', 'babygames.', 'AUSE', 'getFSkipTi', 'designWidt', 'event:', 'clear', 'sByTagName', 'nter;borde', 'bkit-anima', 'getTapFn', 'CarGames.C', 'werCase', 'Login', 'eft: 50%;t', 'hideMsg', 'ca-pub-590', 'tapAsync(…', 'setUint8', 'tes', 'or:', 'CONTENT_RE', 'ap#for(key', 'bilityChan', '_resizeBuf', 'afterShowA', 'createChil', 'readUint8A', 'intercept', '_counter =', '_fn', '_reject(_e', 'disconnect', 'other', 'sLoopHook', 'blur', 'deprecate', 'if(_err', 'replace', 'en_XIAOMI', 'skin', 'eToJson', '6s;\x0a ', 'ORM', 'fallHook', 'sult !== u', 'er();\x0a', 'hooks', 'scrollBar', 'writeUTFSt', 'dev', 's not supp', 'xt = {};\x0a', 's-Mobile-S', 'ient', ' SyncLoopH', '-50%, -50%', 'able', 'pos', '(\\.([1-9]\\', 'w Error(\'T', 'SyncLoopHo', 'AFG REWARD', 'ISHED', 'showTimes', 'flexDirect', 'di2.png', 'bigEndian', 'skiped', 'rewardInte', 'arg0', 'getInstanc', 'before', 'load7 1.8s', 'getSystemI', 'onResult', 'instance', 'getUint16', 'i];\x0a', 'scaleY', 'rewarded', ' -3.5em;\x0a ', 'gMsgCenter', ' Promise((', 'GD_OPTIONS', 'ansform: t', 'er%d', '_loopAsync', 'responseTe', 'style', '8716159434', 'if(_loopAs', 'img', ' error. Ex', 'isUsed', 'left', '_xd_', 'ial AD', 'config', 'e-AdUnit', '0300', 'ndian', 'getTap', 'ANDROID', 'tListener', '139088IYFHip', 'ffff;backg', 'onBeforeSh', 'ion-delay:', '(function(', 'show', 'isOpening', 'canNavigat', 'sHook', 'TRIBUTION', '});\x0a', 'Read', '160px', 'platform', 'aotuPauseT', 'un.com', 'clone', '82-7', 'se;\x0a', 'opers.com', 'textConten', ' width', 'BreakStatu', 'max', 'breakStatu', 'onNavigate', 'showSplash', 'setTransla', 'rewardRead', 'if(item.er', 'debug', 'layMuted', 'values', 'createGame', 'Type', 'BESTGAMES', 'SDK_READY', ' ', 'CELED', 'AFC REWARD', 'https://ca', '21,103', 'innerText', 'count', 'AdDisplayC', 'State', 'uffer', ' 0%', 'child', '.call(', 'PuzzleGame', 'east one a', 'sync = fal', 'opts', 'tag', 'string', 'function(_', 'annel', 'peOf', 'mes/xsj', 'rr) {\x0a', 'ilation', ' @-webki', '_pf', '_options', 'game1', '_myID', 's&nameid=%', 'var _sync ', 'stopMusic', 'startupErr', '/216275203', 'data-full-', 'w.kidsgame', '_gid', 'position', 'Pls watch ', '_result', 'en_ADPLATF', 'channelId', 'allback st', '368', 'p options', 'thumb', ' }\x0a ', '_dirContex', 'ries', '};\x0a', 'toLowerCas', '1000', 'ts[', 'w.yiv.com/', 'MOUSE_OVER', 'en_APPNAME', 'absolute', 'com/sdk/YY', 'isOwnSite', '_d_', '99em;\x0a ', '82917_4570', 'height', '30s-', 'hiddenMute', ' a', 't=vast&tfc', 'getUint16 ', '=AFG AD ER', ' supported', 'onRewardCo', 'claim rewa', '.com/', 'getInterce', 'load', 't;\x0a ', 'ror) {\x0a', 'updateTime', 'warn', 'fontFamily', 'erty', ' ', ' 111, 111,', '#FFFFFF', 'loadSDK', 'Deprecatio', '11/TopGame', 'YIV', 'DK/KidsGam', 'invert', 'get hostna', 'data-adbre', 'tapAsync i', ' posi', 'readUTFStr', 'MORE', 'rror', 'getElement', 'e.com/sdk/', 'yof.com/ga', 'adDismisse', 'lesyndicat', 'ca-pub-707', 'u.js', 'gameBanner', 'k.js', 'erfallHook', 'takeTurns', 'readInt16', 'ut of boun', 'getInt16', '?pic=', 'e_banner', 'callTapsSe', 'getAttribu', ' }\x0a', ': #d44a52', 'ableState', 'Browser', 'getAdsMana', 'ray', '_loop = fa', 'readByte', 't-size: 18', 'ception: ', 'thumb/', '114,101,10', 'ignored', '\x0a} else {\x0a', '_map', 'PUZZLEGAME', 'decode', 'renderBann', '.loop(', 'tid', '11/BabyGam', 'Android', 's.com', 'SKIPPED', 'andler', '*?)', 'hide', 'offAll', 'splice', 'TopGames.c', 'afc init e', 'TOPGAMES', ' < _result', '227904NtIaBi', 'body', ' will be r', ' margin', 'dataLayer', 'attributes', 'ilePath', 'get', 'refresh', 'ytics', 'otHeight', 'copyTo', ' = true;\x0a', 'gConsole', 'once', '_runRegist', 'domain', 'rewardDism', 'frameLoop', 'sound', 'wAd', 'es-PC-Site', 'BABYGAMES', 'CrazyGames', 'if(!_loop)', 'ent_video', 'ALL_ADS_CO', 'onstatecha', 'ue;\x0a', 'assign', 'https://h5', 'duration', 'hideLoadin', 'd=0&npa=0&', 'px;', 'channel:', 'innerHeigh', 'showMsg', 'No ads ava', 'getUTFByte', '71905', 'imation-de', 'or - Out o', 'jump', 'random', 'orCode', 'done', 'adFeedback', 'innerHTML', 'data-ad-cl', '8253985222', 'destroy', 'k.crazygam', 'estGames', 'mes/idg', 'ON OTHER C', 'utoPlay', 'skipped', 'his._x;\x0a', 'ETIZE', 'imation-fi', ') {\x0a', 'scaleMode', 'tapPromise', ' }\x0a ', 'itemRender', 'cpid', 'xt is depr', 'Skin', 'game2', 'var _taps ', 'en_ADBREAK', 'callTapsLo', 'LOADED', 'ync_ok', 'allHook', 'getAdSkipp', 'prototype', 'e.js', 'ssful', 'startupByY', 'AFC INT ST', 'ame-Site-I', '4px 0 0 4p', '5px', 'sform: tra', 'Color', 'suspend', 'rgument', 'd) return ', '1,32,103,9', 'scaleX', 'randomInt', 'setAlpha', 'BIG_ENDIAN', 'AD_SDK_CAN', 'setPrototy', 'overridden', 'UA-2030019', ' po', 'dismissed', 'function', 'not func', 'pop', 'addChild', 'if(_hasRes', 'onsive', 'setRequest', 'frequencyC', 'YYGGames', 'afg', 'top: 40%;l', 'o True bec', 'ter', 'TEMP', 'translate(', 'mplete', 'results.le', 'AsyncSerie', 'GAME_SDK_B', 'ended', ' box-shad', '_insert', 'no respons', 'oData', 'getString', 'appendChil', 'eOffset', '7,109,101,', 'event_cate', '_looper();', 'visibility', 'YGGAMES: %', 'com/sdk/Ki', '__esModule', 'lt: ', 'ine-height', 'if(item.re', 'cargames.c', 'le Video', 'BundleType', 'dren', '&env=vp&un', 'message:', ' font-size', 'rmat', 'data-ad-fr', 'addEventLi', 'alignItems', 'deo_showAs', 'FIG CHANNE', 'r = (funct', 'readUint8', 'readFloat3', 'mgr', 'getChildBy', '_err', 'changeStat', 'gamessdk.y', '& (', 'linearAdSl', 's.length &', 'for', 'init', 'pointer', '.com/gameS', ' STATUS:', 'overflow: ', 'rewardComp', ' {\x0a ', 'bestgames.']; + _0x18a2 = function () { + return _0x57c1fd; + }; + return _0x18a2(); +}(function (_0xe6679, _0x1d48cf) { + const _0x319192 = _0xb80e, + _0x9b996 = _0xe6679(); + while (!![]) { + try { + const _0x525914 = -parseInt(_0x319192(0x5b6)) / 0x1 * (parseInt(_0x319192(0x2fb)) / 0x2) + -parseInt(_0x319192(0x5b9)) / 0x3 * (-parseInt(_0x319192(0x632)) / 0x4) + parseInt(_0x319192(0x25f)) / 0x5 + parseInt(_0x319192(0x2fd)) / 0x6 + parseInt(_0x319192(0x7c7)) / 0x7 + parseInt(_0x319192(0x6ec)) / 0x8 + -parseInt(_0x319192(0x575)) / 0x9 * (parseInt(_0x319192(0x264)) / 0xa); + if (_0x525914 === _0x1d48cf) break; + else _0x9b996['push'](_0x9b996['shift']()); + } catch (_0x120307) { + _0x9b996['push'](_0x9b996['shift']()); + } + } +}(_0x18a2, 0x250a9), ! function (_0x4068e8, _0xee19d0) { + const _0x405576 = _0xb80e; + _0x405576(0x5b1) == typeof exports && _0x405576(0x5b1) == typeof module ? module[_0x405576(0x255)] = _0xee19d0() : _0x405576(0x751) == typeof define && define['amd'] ? define([], _0xee19d0) : _0x405576(0x5b1) == typeof exports ? exports[_0x405576(0x759)] = _0xee19d0() : _0x4068e8[_0x405576(0x759)] = _0xee19d0(); +}(self, () => { + return _0x258a85 = { + 0xeb9: (_0x5cc20e, _0x22f433, _0x39d7d7) => { + 'use strict'; + const _0xe281c1 = _0xb80e; + const _0x5439d5 = _0x39d7d7(0x1fbe), + _0x55e187 = _0x39d7d7(0x1523), + _0x46442b = new class extends _0x55e187 { + [_0xe281c1(0x4a5)]({ + onError: _0x4c8670, + onResult: _0x3ebd6d, + onDone: _0x4275a5 + }) { + const _0x11f853 = _0xe281c1; + let _0x461f67 = ''; + return _0x461f67 += 'var _resul' + 'ts = new A' + 'rray(' + this[_0x11f853(0x3b7)]['taps'][_0x11f853(0x33e)] + _0x11f853(0x212), _0x461f67 += _0x11f853(0x458) + _0x11f853(0x860) + _0x11f853(0x257), _0x461f67 += _0x11f853(0x50f) + _0x11f853(0x19d) + _0x11f853(0x761) + 'ngth; i++)' + _0x11f853(0x340), _0x461f67 += _0x11f853(0x821) + _0x11f853(0x85d) + _0x11f853(0x617), _0x461f67 += _0x11f853(0x299) + _0x11f853(0x3bb) + _0x11f853(0x745) + 'false;\x0a', _0x461f67 += _0x11f853(0x775) + _0x11f853(0x5f6) + _0x11f853(0x3ed) + '{\x0a', _0x461f67 += _0x3ebd6d('item.resul' + 't'), _0x461f67 += _0x11f853(0x5c9) + _0x11f853(0x453), _0x461f67 += '}\x0a', _0x461f67 += _0x11f853(0x64f) + 'ror) {\x0a', _0x461f67 += _0x4c8670(_0x11f853(0x849)), _0x461f67 += _0x11f853(0x5c9) + _0x11f853(0x453), _0x461f67 += '}\x0a', _0x461f67 += '}\x0a', _0x461f67 += _0x11f853(0x2e4) + 'se;\x0a', _0x461f67 += '}\x0a', _0x461f67 += this['callTapsPa' + 'rallel']({ + 'onError': (_0x53504a, _0x8d9da6, _0x41d395, _0x1e93e9) => { + const _0x37b183 = _0x11f853; + let _0x144899 = ''; + return _0x144899 += _0x37b183(0x40a) + _0x53504a + (_0x37b183(0x6eb) + _0x37b183(0x78d) + _0x37b183(0x58b) + _0x37b183(0x33c) + '= ') + (_0x53504a + 0x1) + (_0x37b183(0x87a) + 'ts[') + _0x53504a + (_0x37b183(0x1b1) + _0x37b183(0x291)) + _0x8d9da6 + (_0x37b183(0x864) + _0x37b183(0x1b5) + '{\x0a'), _0x144899 += _0x1e93e9(!0x0), _0x144899 += _0x37b183(0x584), _0x144899 += _0x41d395(), _0x144899 += '}\x0a', _0x144899; + }, + 'onResult': (_0x43688b, _0xf3826d, _0x439824, _0x1a710e) => { + const _0x5b60c9 = _0x11f853; + let _0x37daba = ''; + return _0x37daba += _0x5b60c9(0x40a) + _0x43688b + (' < _result' + _0x5b60c9(0x78d) + _0x5b60c9(0x78b)) + _0xf3826d + (' !== undef' + _0x5b60c9(0x4a7) + _0x5b60c9(0x761) + _0x5b60c9(0x1d5)) + (_0x43688b + 0x1) + (_0x5b60c9(0x87a) + _0x5b60c9(0x68c)) + _0x43688b + (_0x5b60c9(0x19f) + 'lt: ') + _0xf3826d + (' }), _chec' + _0x5b60c9(0x1b5) + '{\x0a'), _0x37daba += _0x1a710e(!0x0), _0x37daba += '} else {\x0a', _0x37daba += _0x439824(), _0x37daba += '}\x0a', _0x37daba; + }, + 'onTap': (_0x31f15e, _0x4379c7, _0x45c0a0, _0x4e280f) => { + const _0x31c983 = _0x11f853; + let _0x55e204 = ''; + return _0x31f15e > 0x0 && (_0x55e204 += _0x31c983(0x40a) + _0x31f15e + (_0x31c983(0x2ec) + _0x31c983(0x418) + _0x31c983(0x340)), _0x55e204 += _0x45c0a0(), _0x55e204 += _0x31c983(0x584)), _0x55e204 += _0x4379c7(), _0x31f15e > 0x0 && (_0x55e204 += '}\x0a'), _0x55e204; + }, + 'onDone': _0x4275a5 + }), _0x461f67; + } + }(), + _0x2a3b96 = function (_0x2c52ff) { + const _0x512c80 = _0xe281c1; + return _0x46442b[_0x512c80(0x488)](this, _0x2c52ff), _0x46442b[_0x512c80(0x36d)](_0x2c52ff); + }; + + function _0x13d329(_0x10267e = [], _0x15cf66 = undefined) { + const _0x591bcb = _0xe281c1, + _0x3bcbe9 = new _0x5439d5(_0x10267e, _0x15cf66); + return _0x3bcbe9[_0x591bcb(0x7fc) + 'r'] = _0x13d329, _0x3bcbe9[_0x591bcb(0x4e2)] = _0x2a3b96, _0x3bcbe9[_0x591bcb(0x206)] = void 0x0, _0x3bcbe9['call'] = void 0x0, _0x3bcbe9; + } + _0x13d329['prototype'] = null, _0x5cc20e[_0xe281c1(0x255)] = _0x13d329; + }, + 0x2042: (_0x2b54c9, _0x5bb926, _0x35782e) => { + 'use strict'; + const _0x6fb8 = _0xb80e; + const _0x59f9bc = _0x35782e(0x1fbe), + _0x39be9a = _0x35782e(0x1523), + _0xa264e6 = new class extends _0x39be9a { + ['content']({ + onError: _0x5d24a3, + onDone: _0x54c7a4 + }) { + const _0x3a1307 = _0xb80e; + return this[_0x3a1307(0x552) + _0x3a1307(0x240)]({ + 'onError': (_0x2bfb36, _0x1051cc, _0x119dc7, _0x480d80) => _0x5d24a3(_0x1051cc) + _0x480d80(!0x0), + 'onDone': _0x54c7a4 + }); + } + }(), + _0x278357 = function (_0x1fc510) { + const _0x6b3ddb = _0xb80e; + return _0xa264e6['setup'](this, _0x1fc510), _0xa264e6[_0x6b3ddb(0x36d)](_0x1fc510); + }; + + function _0x4e6a08(_0x3c51a7 = [], _0x3c2a8e = undefined) { + const _0x8f213b = _0xb80e, + _0x14d5e6 = new _0x59f9bc(_0x3c51a7, _0x3c2a8e); + return _0x14d5e6[_0x8f213b(0x7fc) + 'r'] = _0x4e6a08, _0x14d5e6[_0x8f213b(0x4e2)] = _0x278357, _0x14d5e6[_0x8f213b(0x206)] = void 0x0, _0x14d5e6[_0x8f213b(0x4bc)] = void 0x0, _0x14d5e6; + } + _0x4e6a08[_0x6fb8(0x739)] = null, _0x2b54c9[_0x6fb8(0x255)] = _0x4e6a08; + }, + 0x1258: (_0x248684, _0xaeaba0, _0x275b0a) => { + 'use strict'; + const _0xdffcda = _0xb80e; + const _0x37f7f9 = _0x275b0a(0x1fbe), + _0x1988ec = _0x275b0a(0x1523), + _0x1b485d = new class extends _0x1988ec { + [_0xdffcda(0x4a5)]({ + onError: _0x3d1fb3, + onResult: _0x59f323, + resultReturns: _0x2aedc4, + onDone: _0x40e9a3 + }) { + const _0x5ac680 = _0xdffcda; + return this[_0x5ac680(0x6c9) + _0x5ac680(0x688)]({ + 'onError': (_0x159707, _0x42cd94, _0x41f21e, _0x1191d7) => _0x3d1fb3(_0x42cd94) + _0x1191d7(!0x0), + 'onResult': (_0x504c12, _0x4dd1ac, _0x51ca65) => _0x5ac680(0x40a) + _0x4dd1ac + (' !== undef' + _0x5ac680(0x2f4)) + _0x59f323(_0x4dd1ac) + _0x5ac680(0x6d8) + _0x51ca65() + '}\x0a', + 'resultReturns': _0x2aedc4, + 'onDone': _0x40e9a3 + }); + } + }(), + _0xe9af0a = function (_0x4a403a) { + const _0x31ceae = _0xdffcda; + return _0x1b485d[_0x31ceae(0x488)](this, _0x4a403a), _0x1b485d[_0x31ceae(0x36d)](_0x4a403a); + }; + + function _0x5def40(_0x318a1f = [], _0x422b5f = undefined) { + const _0x153891 = _0xdffcda, + _0xf95973 = new _0x37f7f9(_0x318a1f, _0x422b5f); + return _0xf95973[_0x153891(0x7fc) + 'r'] = _0x5def40, _0xf95973[_0x153891(0x4e2)] = _0xe9af0a, _0xf95973[_0x153891(0x206)] = void 0x0, _0xf95973['call'] = void 0x0, _0xf95973; + } + _0x5def40[_0xdffcda(0x739)] = null, _0x248684[_0xdffcda(0x255)] = _0x5def40; + }, + 0x999: (_0x4f83f7, _0x203ef4, _0x2fcafb) => { + 'use strict'; + const _0x8931c0 = _0xb80e; + const _0x1cd58e = _0x2fcafb(0x1fbe), + _0x476824 = _0x2fcafb(0x1523), + _0x4af805 = new class extends _0x476824 { + [_0x8931c0(0x4a5)]({ + onError: _0x12bd72, + onDone: _0x2511e0 + }) { + const _0x474163 = _0x8931c0; + return this[_0x474163(0x6c9) + _0x474163(0x688)]({ + 'onError': (_0x337732, _0xd7d368, _0x41ff75, _0x6f0a9d) => _0x12bd72(_0xd7d368) + _0x6f0a9d(!0x0), + 'onDone': _0x2511e0 + }); + } + }(), + _0x113384 = function (_0x25f4cd) { + const _0x4da6ef = _0x8931c0; + return _0x4af805[_0x4da6ef(0x488)](this, _0x25f4cd), _0x4af805[_0x4da6ef(0x36d)](_0x25f4cd); + }; + + function _0xb0f576(_0xadcd0d = [], _0x4772d1 = undefined) { + const _0x4179fa = _0x8931c0, + _0x1c67c9 = new _0x1cd58e(_0xadcd0d, _0x4772d1); + return _0x1c67c9[_0x4179fa(0x7fc) + 'r'] = _0xb0f576, _0x1c67c9[_0x4179fa(0x4e2)] = _0x113384, _0x1c67c9[_0x4179fa(0x206)] = void 0x0, _0x1c67c9[_0x4179fa(0x4bc)] = void 0x0, _0x1c67c9; + } + _0xb0f576[_0x8931c0(0x739)] = null, _0x4f83f7[_0x8931c0(0x255)] = _0xb0f576; + }, + 0x12e4: (_0x520139, _0x3bdf9e, _0x19c762) => { + 'use strict'; + const _0xc09028 = _0xb80e; + const _0x1ddace = _0x19c762(0x1fbe), + _0x4f2e14 = _0x19c762(0x1523), + _0x24d62d = new class extends _0x4f2e14 { + [_0xc09028(0x4a5)]({ + onError: _0x3440b6, + onDone: _0x1477d6 + }) { + const _0x130871 = _0xc09028; + return this[_0x130871(0x734) + _0x130871(0x59a)]({ + 'onError': (_0x5c08a7, _0x1e12aa, _0x186671, _0x5c23f4) => _0x3440b6(_0x1e12aa) + _0x5c23f4(!0x0), + 'onDone': _0x1477d6 + }); + } + }(), + _0x394bf1 = function (_0xea573b) { + const _0x4eeab0 = _0xc09028; + return _0x24d62d[_0x4eeab0(0x488)](this, _0xea573b), _0x24d62d[_0x4eeab0(0x36d)](_0xea573b); + }; + + function _0x5c660e(_0x423aaa = [], _0x18cc4b = undefined) { + const _0x37a30b = _0xc09028, + _0xd7f049 = new _0x1ddace(_0x423aaa, _0x18cc4b); + return _0xd7f049[_0x37a30b(0x7fc) + 'r'] = _0x5c660e, _0xd7f049['compile'] = _0x394bf1, _0xd7f049['_call'] = void 0x0, _0xd7f049[_0x37a30b(0x4bc)] = void 0x0, _0xd7f049; + } + _0x5c660e[_0xc09028(0x739)] = null, _0x520139['exports'] = _0x5c660e; + }, + 0xa7e: (_0x1e3de6, _0x492dfe, _0xceb915) => { + 'use strict'; + const _0x210eff = _0xb80e; + const _0x39a645 = _0xceb915(0x1fbe), + _0x2c64bd = _0xceb915(0x1523), + _0x31b36c = new class extends _0x2c64bd { + ['content']({ + onError: _0x43fad7, + onResult: _0xb703a, + onDone: _0x4ceb9f + }) { + const _0x4485d6 = _0xb80e; + return this['callTapsSe' + _0x4485d6(0x688)]({ + 'onError': (_0x69b9f, _0x1adc2d, _0x107e72, _0x1bda72) => _0x43fad7(_0x1adc2d) + _0x1bda72(!0x0), + 'onResult': (_0x22083a, _0x16af01, _0x313d7d) => { + const _0x34f6cc = _0x4485d6; + let _0x478e08 = ''; + return _0x478e08 += _0x34f6cc(0x40a) + _0x16af01 + (_0x34f6cc(0x4c2) + _0x34f6cc(0x2f4)), _0x478e08 += this[_0x34f6cc(0x2a2)][0x0] + _0x34f6cc(0x43b) + _0x16af01 + ';\x0a', _0x478e08 += '}\x0a', _0x478e08 += _0x313d7d(), _0x478e08; + }, + 'onDone': () => _0xb703a(this[_0x4485d6(0x2a2)][0x0]) + }); + } + }(), + _0x1bf11c = function (_0x3793e8) { + const _0x3fa28a = _0xb80e; + return _0x31b36c[_0x3fa28a(0x488)](this, _0x3793e8), _0x31b36c[_0x3fa28a(0x36d)](_0x3793e8); + }; + + function _0x3dae2d(_0x5a63e9 = [], _0x1be29f = undefined) { + const _0x4e8f99 = _0xb80e; + if (_0x5a63e9[_0x4e8f99(0x33e)] < 0x1) throw new Error(_0x4e8f99(0x7b4) + _0x4e8f99(0x241) + ' have at l' + _0x4e8f99(0x665) + _0x4e8f99(0x744)); + const _0x6b29d0 = new _0x39a645(_0x5a63e9, _0x1be29f); + return _0x6b29d0[_0x4e8f99(0x7fc) + 'r'] = _0x3dae2d, _0x6b29d0[_0x4e8f99(0x4e2)] = _0x1bf11c, _0x6b29d0[_0x4e8f99(0x206)] = void 0x0, _0x6b29d0[_0x4e8f99(0x4bc)] = void 0x0, _0x6b29d0; + } + _0x3dae2d[_0x210eff(0x739)] = null, _0x1e3de6[_0x210eff(0x255)] = _0x3dae2d; + }, + 0x1fbe: (_0x2ab373, _0x2d244f, _0x29f8da) => { + 'use strict'; + const _0x44948c = _0xb80e; + const _0x3a99dd = _0x29f8da(0x1779)[_0x44948c(0x5ed)](() => {}, _0x44948c(0x254) + _0x44948c(0x72f) + _0x44948c(0x27a) + _0x44948c(0x6ee) + _0x44948c(0x809)), + _0x59a1d5 = function (..._0x5d2403) { + const _0x5768c1 = _0x44948c; + return this['call'] = this[_0x5768c1(0x1fe) + 'l'](_0x5768c1(0x54b)), this[_0x5768c1(0x4bc)](..._0x5d2403); + }, + _0x4545ad = function (..._0x23b4f4) { + const _0x2aa113 = _0x44948c; + return this[_0x2aa113(0x469)] = this['_createCal' + 'l'](_0x2aa113(0x7ae)), this['callAsync'](..._0x23b4f4); + }, + _0xc844b0 = function (..._0x1394f6) { + const _0x3ebd7b = _0x44948c; + return this[_0x3ebd7b(0x351)] = this[_0x3ebd7b(0x1fe) + 'l'](_0x3ebd7b(0x351)), this['promise'](..._0x1394f6); + }; + class _0x3cf0f1 { + constructor(_0x1270c1 = [], _0x4cf3f2 = undefined) { + const _0x375051 = _0x44948c; + this[_0x375051(0x2a2)] = _0x1270c1, this['name'] = _0x4cf3f2, this[_0x375051(0x7f1)] = [], this[_0x375051(0x34e) + 'rs'] = [], this[_0x375051(0x206)] = _0x59a1d5, this['call'] = _0x59a1d5, this[_0x375051(0x1dc)] = _0x4545ad, this['callAsync'] = _0x4545ad, this['_promise'] = _0xc844b0, this[_0x375051(0x351)] = _0xc844b0, this['_x'] = void 0x0, this[_0x375051(0x4e2)] = this[_0x375051(0x4e2)], this[_0x375051(0x834)] = this[_0x375051(0x834)], this[_0x375051(0x1e7)] = this[_0x375051(0x1e7)], this['tapPromise'] = this['tapPromise']; + } ['compile'](_0x347e72) { + const _0x6391e = _0x44948c; + throw new Error(_0x6391e(0x500) + _0x6391e(0x360) + _0x6391e(0x74d)); + } [_0x44948c(0x1fe) + 'l'](_0x3aadbd) { + const _0x27da1b = _0x44948c; + return this[_0x27da1b(0x4e2)]({ + 'taps': this['taps'], + 'interceptors': this['intercepto' + 'rs'], + 'args': this[_0x27da1b(0x2a2)], + 'type': _0x3aadbd + }); + } ['_tap'](_0x3d2010, _0x54cfc5, _0x4b5361) { + const _0x2ed046 = _0x44948c; + if ('string' == typeof _0x54cfc5) _0x54cfc5 = { + 'name': _0x54cfc5[_0x2ed046(0x2a6)]() + }; + else { + if (_0x2ed046(0x5b1) != typeof _0x54cfc5 || null === _0x54cfc5) throw new Error(_0x2ed046(0x873) + _0x2ed046(0x684)); + } + if (_0x2ed046(0x669) != typeof _0x54cfc5[_0x2ed046(0x1ab)] || '' === _0x54cfc5[_0x2ed046(0x1ab)]) throw new Error(_0x2ed046(0x4d8) + 'me for tap'); + void 0x0 !== _0x54cfc5[_0x2ed046(0x23f)] && _0x3a99dd(), _0x54cfc5 = Object[_0x2ed046(0x709)]({ + 'type': _0x3d2010, + 'fn': _0x4b5361 + }, _0x54cfc5), _0x54cfc5 = this[_0x2ed046(0x6fb) + _0x2ed046(0x433) + _0x2ed046(0x238)](_0x54cfc5), this[_0x2ed046(0x766)](_0x54cfc5); + } [_0x44948c(0x834)](_0x566e32, _0x118c35) { + const _0x387ccc = _0x44948c; + this[_0x387ccc(0x1c4)]('sync', _0x566e32, _0x118c35); + } ['tapAsync'](_0x173503, _0x377784) { + this['_tap']('async', _0x173503, _0x377784); + } [_0x44948c(0x72b)](_0x36e4f5, _0x2ae628) { + const _0x35d3a4 = _0x44948c; + this['_tap'](_0x35d3a4(0x351), _0x36e4f5, _0x2ae628); + } [_0x44948c(0x6fb) + 'erIntercep' + _0x44948c(0x238)](_0x586ae6) { + const _0x15ef84 = _0x44948c; + for (const _0x3ab20c of this['intercepto' + 'rs']) + if (_0x3ab20c[_0x15ef84(0x803)]) { + const _0x315f46 = _0x3ab20c[_0x15ef84(0x803)](_0x586ae6); + void 0x0 !== _0x315f46 && (_0x586ae6 = _0x315f46); + } return _0x586ae6; + } [_0x44948c(0x588) + 's'](_0x42ecd3) { + const _0x2ef7aa = _0x44948c, + _0x17f6f8 = _0x56ae72 => Object[_0x2ef7aa(0x709)]({}, _0x42ecd3, _0x2ef7aa(0x669) == typeof _0x56ae72 ? { + 'name': _0x56ae72 + } : _0x56ae72); + return { + 'name': this[_0x2ef7aa(0x1ab)], + 'tap': (_0x5acf64, _0xe454a4) => this['tap'](_0x17f6f8(_0x5acf64), _0xe454a4), + 'tapAsync': (_0x4f6153, _0x346d7a) => this['tapAsync'](_0x17f6f8(_0x4f6153), _0x346d7a), + 'tapPromise': (_0x5e6d45, _0x328d95) => this[_0x2ef7aa(0x72b)](_0x17f6f8(_0x5e6d45), _0x328d95), + 'intercept': _0x2afb0a => this[_0x2ef7aa(0x5e5)](_0x2afb0a), + 'isUsed': () => this[_0x2ef7aa(0x627)](), + 'withOptions': _0x25984e => this[_0x2ef7aa(0x588) + 's'](_0x17f6f8(_0x25984e)) + }; + } [_0x44948c(0x627)]() { + const _0x5d1c42 = _0x44948c; + return this['taps']['length'] > 0x0 || this['intercepto' + 'rs'][_0x5d1c42(0x33e)] > 0x0; + } ['intercept'](_0x2c8384) { + const _0x4b5129 = _0x44948c; + if (this['_resetComp' + 'ilation'](), this[_0x4b5129(0x34e) + 'rs'][_0x4b5129(0x2c4)](Object[_0x4b5129(0x709)]({}, _0x2c8384)), _0x2c8384[_0x4b5129(0x803)]) { + for (let _0x3b741b = 0x0; _0x3b741b < this[_0x4b5129(0x7f1)]['length']; _0x3b741b++) this[_0x4b5129(0x7f1)][_0x3b741b] = _0x2c8384[_0x4b5129(0x803)](this[_0x4b5129(0x7f1)][_0x3b741b]); + } + } ['_resetComp' + 'ilation']() { + const _0xb14eb7 = _0x44948c; + this['call'] = this[_0xb14eb7(0x206)], this[_0xb14eb7(0x469)] = this[_0xb14eb7(0x1dc)], this[_0xb14eb7(0x351)] = this[_0xb14eb7(0x7a3)]; + } ['_insert'](_0x5ba7e4) { + const _0x1db777 = _0x44948c; + let _0x42d1a7; + this[_0x1db777(0x5b8) + 'ilation'](), _0x1db777(0x669) == typeof _0x5ba7e4[_0x1db777(0x611)] ? _0x42d1a7 = new Set([_0x5ba7e4[_0x1db777(0x611)]]) : Array['isArray'](_0x5ba7e4[_0x1db777(0x611)]) && (_0x42d1a7 = new Set(_0x5ba7e4[_0x1db777(0x611)])); + let _0x106c1c = 0x0; + 'number' == typeof _0x5ba7e4[_0x1db777(0x436)] && (_0x106c1c = _0x5ba7e4[_0x1db777(0x436)]); + let _0x2b7c81 = this[_0x1db777(0x7f1)][_0x1db777(0x33e)]; + for (; _0x2b7c81 > 0x0;) { + _0x2b7c81--; + const _0x2dd4b8 = this[_0x1db777(0x7f1)][_0x2b7c81]; + this[_0x1db777(0x7f1)][_0x2b7c81 + 0x1] = _0x2dd4b8; + const _0x4cb0fa = _0x2dd4b8[_0x1db777(0x436)] || 0x0; + if (_0x42d1a7) { + if (_0x42d1a7['has'](_0x2dd4b8[_0x1db777(0x1ab)])) { + _0x42d1a7[_0x1db777(0x51a)](_0x2dd4b8[_0x1db777(0x1ab)]); + continue; + } + if (_0x42d1a7[_0x1db777(0x529)] > 0x0) continue; + } + if (!(_0x4cb0fa > _0x106c1c)) { + _0x2b7c81++; + break; + } + } + this[_0x1db777(0x7f1)][_0x2b7c81] = _0x5ba7e4; + } + } + Object[_0x44948c(0x74c) + _0x44948c(0x66c)](_0x3cf0f1[_0x44948c(0x739)], null), _0x2ab373[_0x44948c(0x255)] = _0x3cf0f1; + }, + 0x1523: _0x32da3f => { + 'use strict'; + const _0x4b5e34 = _0xb80e; + _0x32da3f[_0x4b5e34(0x255)] = class { + constructor(_0x17da06) { + const _0x599a31 = _0x4b5e34; + this[_0x599a31(0x62b)] = _0x17da06, this[_0x599a31(0x3b7)] = void 0x0, this[_0x599a31(0x2a2)] = void 0x0; + } [_0x4b5e34(0x36d)](_0x4bb2f3) { + const _0x33925e = _0x4b5e34; + let _0x26da3c; + switch (this['init'](_0x4bb2f3), this[_0x33925e(0x3b7)][_0x33925e(0x836)]) { + case _0x33925e(0x54b): + _0x26da3c = new Function(this[_0x33925e(0x4b4)](), _0x33925e(0x893) + _0x33925e(0x7dc) + this[_0x33925e(0x43c)]() + this['contentWit' + 'hIntercept' + _0x33925e(0x7f4)]({ + 'onError': _0x78600c => _0x33925e(0x42c) + _0x78600c + ';\x0a', + 'onResult': _0x4626d3 => 'return ' + _0x4626d3 + ';\x0a', + 'resultReturns': !0x0, + 'onDone': () => '', + 'rethrowIfPossible': !0x0 + })); + break; + case _0x33925e(0x7ae): + _0x26da3c = new Function(this[_0x33925e(0x4b4)]({ + 'after': '_callback' + }), _0x33925e(0x893) + _0x33925e(0x7dc) + this['header']() + this[_0x33925e(0x5b5) + 'hIntercept' + _0x33925e(0x7f4)]({ + 'onError': _0x26de31 => _0x33925e(0x5c7) + _0x26de31 + _0x33925e(0x212), + 'onResult': _0x2fdc5a => '_callback(' + _0x33925e(0x2a4) + _0x2fdc5a + ');\x0a', + 'onDone': () => '_callback(' + ');\x0a' + })); + break; + case _0x33925e(0x351): + let _0x393ace = !0x1; + const _0x120a4e = this[_0x33925e(0x5b5) + _0x33925e(0x589) + _0x33925e(0x7f4)]({ + 'onError': _0x137c1e => (_0x393ace = !0x0, '_error(' + _0x137c1e + ');\x0a'), + 'onResult': _0xec13fc => '_resolve(' + _0xec13fc + _0x33925e(0x212), + 'onDone': () => _0x33925e(0x4bf) + ';\x0a' + }); + let _0x1f04fa = ''; + _0x1f04fa += _0x33925e(0x893) + 't\";\x0a', _0x1f04fa += this['header'](), _0x1f04fa += 'return new' + _0x33925e(0x61c) + _0x33925e(0x66a) + 'resolve, _' + _0x33925e(0x24a), _0x393ace && (_0x1f04fa += _0x33925e(0x676) + _0x33925e(0x7bf), _0x1f04fa += _0x33925e(0x2e1) + _0x33925e(0x7de) + _0x33925e(0x729), _0x1f04fa += _0x33925e(0x2af), _0x1f04fa += _0x33925e(0x802) + _0x33925e(0x817) + 'olve().the' + _0x33925e(0x878) + _0x33925e(0x3b4) + 'w _err; })' + _0x33925e(0x851), _0x1f04fa += _0x33925e(0x2a9), _0x1f04fa += _0x33925e(0x5e8) + _0x33925e(0x388), _0x1f04fa += _0x33925e(0x689)), _0x1f04fa += _0x120a4e, _0x393ace && (_0x1f04fa += _0x33925e(0x322) + _0x33925e(0x3c7)), _0x1f04fa += _0x33925e(0x1ff), _0x26da3c = new Function(this[_0x33925e(0x4b4)](), _0x1f04fa); + } + return this[_0x33925e(0x298)](), _0x26da3c; + } ['setup'](_0x2eedb8, _0x266d93) { + const _0x1d7672 = _0x4b5e34; + _0x2eedb8['_x'] = _0x266d93[_0x1d7672(0x7f1)][_0x1d7672(0x296)](_0xb77a61 => _0xb77a61['fn']); + } [_0x4b5e34(0x78f)](_0x3fb356) { + const _0x8abd1f = _0x4b5e34; + this['options'] = _0x3fb356, this[_0x8abd1f(0x2a2)] = _0x3fb356['args']['slice'](); + } ['deinit']() { + const _0x527128 = _0x4b5e34; + this['options'] = void 0x0, this[_0x527128(0x2a2)] = void 0x0; + } [_0x4b5e34(0x5b5) + 'hIntercept' + _0x4b5e34(0x7f4)](_0x18cb56) { + const _0x3ac8b4 = _0x4b5e34; + if (this[_0x3ac8b4(0x3b7)][_0x3ac8b4(0x34e) + 'rs'][_0x3ac8b4(0x33e)] > 0x0) { + const _0x14ef5d = _0x18cb56[_0x3ac8b4(0x232)], + _0x4b6a0e = _0x18cb56[_0x3ac8b4(0x614)], + _0x487ccd = _0x18cb56['onDone']; + let _0x3212d6 = ''; + for (let _0x23e447 = 0x0; _0x23e447 < this[_0x3ac8b4(0x3b7)][_0x3ac8b4(0x34e) + 'rs']['length']; _0x23e447++) { + const _0x1fc590 = this[_0x3ac8b4(0x3b7)]['intercepto' + 'rs'][_0x23e447]; + _0x1fc590['call'] && (_0x3212d6 += this[_0x3ac8b4(0x6a1) + _0x3ac8b4(0x3f7)](_0x23e447) + _0x3ac8b4(0x663) + this[_0x3ac8b4(0x4b4)]({ + 'before': _0x1fc590[_0x3ac8b4(0x23f)] ? _0x3ac8b4(0x85b) : void 0x0 + }) + _0x3ac8b4(0x212)); + } + return _0x3212d6 += this[_0x3ac8b4(0x4a5)](Object['assign'](_0x18cb56, { + 'onError': _0x14ef5d && (_0x105c83 => { + const _0xc1c065 = _0x3ac8b4; + let _0xf826d4 = ''; + for (let _0x100839 = 0x0; _0x100839 < this[_0xc1c065(0x3b7)][_0xc1c065(0x34e) + 'rs'][_0xc1c065(0x33e)]; _0x100839++) this[_0xc1c065(0x3b7)][_0xc1c065(0x34e) + 'rs'][_0x100839][_0xc1c065(0x4e9)] && (_0xf826d4 += this[_0xc1c065(0x6a1) + 'ptor'](_0x100839) + _0xc1c065(0x42b) + _0x105c83 + ');\x0a'); + return _0xf826d4 += _0x14ef5d(_0x105c83), _0xf826d4; + }), + 'onResult': _0x4b6a0e && (_0x157e2e => { + const _0x5bbe48 = _0x3ac8b4; + let _0x51a75f = ''; + for (let _0x407c57 = 0x0; _0x407c57 < this[_0x5bbe48(0x3b7)][_0x5bbe48(0x34e) + 'rs'][_0x5bbe48(0x33e)]; _0x407c57++) this[_0x5bbe48(0x3b7)]['intercepto' + 'rs'][_0x407c57][_0x5bbe48(0x26d)] && (_0x51a75f += this['getInterce' + _0x5bbe48(0x3f7)](_0x407c57) + _0x5bbe48(0x2a8) + _0x157e2e + _0x5bbe48(0x212)); + return _0x51a75f += _0x4b6a0e(_0x157e2e), _0x51a75f; + }), + 'onDone': _0x487ccd && (() => { + const _0xb9293 = _0x3ac8b4; + let _0xfb8450 = ''; + for (let _0x464bc5 = 0x0; _0x464bc5 < this[_0xb9293(0x3b7)]['intercepto' + 'rs'][_0xb9293(0x33e)]; _0x464bc5++) this[_0xb9293(0x3b7)][_0xb9293(0x34e) + 'rs'][_0x464bc5][_0xb9293(0x71a)] && (_0xfb8450 += this['getInterce' + _0xb9293(0x3f7)](_0x464bc5) + _0xb9293(0x37a)); + return _0xfb8450 += _0x487ccd(), _0xfb8450; + }) + })), _0x3212d6; + } + return this[_0x3ac8b4(0x4a5)](_0x18cb56); + } [_0x4b5e34(0x43c)]() { + const _0x3da31e = _0x4b5e34; + let _0x29c0f1 = ''; + return this['needContex' + 't']() ? _0x29c0f1 += _0x3da31e(0x7ca) + _0x3da31e(0x5fd) : _0x29c0f1 += _0x3da31e(0x7ca) + _0x3da31e(0x7d7), _0x29c0f1 += 'var _x = t' + _0x3da31e(0x726), this[_0x3da31e(0x3b7)][_0x3da31e(0x34e) + 'rs']['length'] > 0x0 && (_0x29c0f1 += _0x3da31e(0x732) + _0x3da31e(0x362) + _0x3da31e(0x598), _0x29c0f1 += _0x3da31e(0x207) + 'ceptors = ' + 'this.inter' + _0x3da31e(0x494)), _0x29c0f1; + } [_0x4b5e34(0x582) + 't']() { + const _0x26847e = _0x4b5e34; + for (const _0x17f75c of this['options'][_0x26847e(0x7f1)]) + if (_0x17f75c[_0x26847e(0x23f)]) return !0x0; + return !0x1; + } [_0x4b5e34(0x59d)](_0xc1beb0, { + onError: _0xe74109, + onResult: _0x1d6af1, + onDone: _0x4b809d, + rethrowIfPossible: _0x32a31b + }) { + const _0x30991c = _0x4b5e34; + let _0x257ba7 = '', + _0x4ccaf0 = !0x1; + for (let _0x257a94 = 0x0; _0x257a94 < this[_0x30991c(0x3b7)]['intercepto' + 'rs'][_0x30991c(0x33e)]; _0x257a94++) { + const _0x4ee8ea = this[_0x30991c(0x3b7)][_0x30991c(0x34e) + 'rs'][_0x257a94]; + _0x4ee8ea[_0x30991c(0x834)] && (_0x4ccaf0 || (_0x257ba7 += _0x30991c(0x84d) + _0xc1beb0 + _0x30991c(0x43b) + this[_0x30991c(0x62f)](_0xc1beb0) + ';\x0a', _0x4ccaf0 = !0x0), _0x257ba7 += this[_0x30991c(0x6a1) + 'ptor'](_0x257a94) + _0x30991c(0x468) + (_0x4ee8ea[_0x30991c(0x23f)] ? _0x30991c(0x88b) : '') + _0x30991c(0x1c4) + _0xc1beb0 + _0x30991c(0x212)); + } + _0x257ba7 += _0x30991c(0x288) + _0xc1beb0 + _0x30991c(0x43b) + this[_0x30991c(0x5d3)](_0xc1beb0) + ';\x0a'; + const _0x412114 = this[_0x30991c(0x3b7)]['taps'][_0xc1beb0]; + switch (_0x412114[_0x30991c(0x836)]) { + case 'sync': + _0x32a31b || (_0x257ba7 += 'var _hasEr' + _0x30991c(0x82d) + _0xc1beb0 + _0x30991c(0x2cd), _0x257ba7 += _0x30991c(0x39b)), _0x257ba7 += _0x1d6af1 ? 'var _resul' + 't' + _0xc1beb0 + _0x30991c(0x4cd) + _0xc1beb0 + '(' + this[_0x30991c(0x4b4)]({ + 'before': _0x412114[_0x30991c(0x23f)] ? _0x30991c(0x85b) : void 0x0 + }) + ');\x0a' : _0x30991c(0x5e7) + _0xc1beb0 + '(' + this[_0x30991c(0x4b4)]({ + 'before': _0x412114[_0x30991c(0x23f)] ? _0x30991c(0x85b) : void 0x0 + }) + _0x30991c(0x212), _0x32a31b || (_0x257ba7 += _0x30991c(0x352) + _0x30991c(0x66e), _0x257ba7 += '_hasError' + _0xc1beb0 + ' = true;\x0a', _0x257ba7 += _0xe74109(_0x30991c(0x788)), _0x257ba7 += '}\x0a', _0x257ba7 += _0x30991c(0x41d) + _0x30991c(0x82d) + _0xc1beb0 + _0x30991c(0x729)), _0x1d6af1 && (_0x257ba7 += _0x1d6af1(_0x30991c(0x67f) + _0xc1beb0)), _0x4b809d && (_0x257ba7 += _0x4b809d()), _0x32a31b || (_0x257ba7 += '}\x0a'); + break; + case 'async': + let _0x533b2f = ''; + _0x533b2f += _0x1d6af1 ? _0x30991c(0x636) + _0x30991c(0x788) + _0xc1beb0 + _0x30991c(0x358) + _0xc1beb0 + _0x30991c(0x729) : _0x30991c(0x636) + '_err' + _0xc1beb0 + _0x30991c(0x729), _0x533b2f += _0x30991c(0x5ee) + _0xc1beb0 + _0x30991c(0x729), _0x533b2f += _0xe74109(_0x30991c(0x788) + _0xc1beb0), _0x533b2f += _0x30991c(0x584), _0x1d6af1 && (_0x533b2f += _0x1d6af1(_0x30991c(0x67f) + _0xc1beb0)), _0x4b809d && (_0x533b2f += _0x4b809d()), _0x533b2f += '}\x0a', _0x533b2f += '})', _0x257ba7 += '_fn' + _0xc1beb0 + '(' + this[_0x30991c(0x4b4)]({ + 'before': _0x412114['context'] ? '_context' : void 0x0, + 'after': _0x533b2f + }) + _0x30991c(0x212); + break; + case _0x30991c(0x351): + _0x257ba7 += _0x30991c(0x198) + _0x30991c(0x37e) + _0xc1beb0 + _0x30991c(0x2cd), _0x257ba7 += _0x30991c(0x2aa) + 'se' + _0xc1beb0 + _0x30991c(0x4cd) + _0xc1beb0 + '(' + this[_0x30991c(0x4b4)]({ + 'before': _0x412114['context'] ? _0x30991c(0x85b) : void 0x0 + }) + _0x30991c(0x212), _0x257ba7 += _0x30991c(0x39c) + _0x30991c(0x2ee) + _0xc1beb0 + (_0x30991c(0x394) + _0x30991c(0x2ee)) + _0xc1beb0 + _0x30991c(0x1c6), _0x257ba7 += ' throw ne' + _0x30991c(0x605) + _0x30991c(0x1cf) + _0x30991c(0x5ab) + _0x30991c(0x55b) + 'ot return ' + _0x30991c(0x349) + 'eturned \' ' + '+ _promise' + _0xc1beb0 + _0x30991c(0x46c), _0x257ba7 += _0x30991c(0x7a3) + _0xc1beb0 + (_0x30991c(0x7e5) + _0x30991c(0x44b) + _0x30991c(0x40f)) + _0xc1beb0 + ') {\x0a', _0x257ba7 += '_hasResult' + _0xc1beb0 + _0x30991c(0x6f8), _0x1d6af1 && (_0x257ba7 += _0x1d6af1('_result' + _0xc1beb0)), _0x4b809d && (_0x257ba7 += _0x4b809d()), _0x257ba7 += '}), functi' + 'on(_err' + _0xc1beb0 + ') {\x0a', _0x257ba7 += _0x30991c(0x755) + 'ult' + _0xc1beb0 + (_0x30991c(0x56c) + 'rr') + _0xc1beb0 + ';\x0a', _0x257ba7 += _0xe74109('_err' + _0xc1beb0), _0x257ba7 += _0x30991c(0x63c); + } + return _0x257ba7; + } ['callTapsSe' + _0x4b5e34(0x688)]({ + onError: _0x46b331, + onResult: _0xdbd2b5, + resultReturns: _0x3bf4b9, + onDone: _0x2f1a54, + doneReturns: _0xe70936, + rethrowIfPossible: _0x22c643 + }) { + const _0x3e7d64 = _0x4b5e34; + if (0x0 === this[_0x3e7d64(0x3b7)][_0x3e7d64(0x7f1)][_0x3e7d64(0x33e)]) return _0x2f1a54(); + const _0x11c511 = this['options'][_0x3e7d64(0x7f1)]['findIndex'](_0x549e90 => _0x3e7d64(0x54b) !== _0x549e90[_0x3e7d64(0x836)]), + _0x4e03a1 = _0x3bf4b9 || _0xe70936; + let _0x5c1421 = '', + _0x1674ec = _0x2f1a54, + _0x3758f7 = 0x0; + for (let _0x38dcf1 = this['options']['taps'][_0x3e7d64(0x33e)] - 0x1; _0x38dcf1 >= 0x0; _0x38dcf1--) { + const _0x28720c = _0x38dcf1; + _0x1674ec !== _0x2f1a54 && (_0x3e7d64(0x54b) !== this[_0x3e7d64(0x3b7)][_0x3e7d64(0x7f1)][_0x28720c][_0x3e7d64(0x836)] || _0x3758f7++ > 0x14) && (_0x3758f7 = 0x0, _0x5c1421 += _0x3e7d64(0x2e1) + _0x3e7d64(0x565) + _0x28720c + _0x3e7d64(0x456), _0x5c1421 += _0x1674ec(), _0x5c1421 += '}\x0a', _0x1674ec = () => (_0x4e03a1 ? _0x3e7d64(0x3db) : '') + _0x3e7d64(0x1e4) + _0x28720c + _0x3e7d64(0x1a1)); + const _0x18d139 = _0x1674ec, + _0x562e58 = _0x17a65c => _0x17a65c ? '' : _0x2f1a54(), + _0x353aa6 = this[_0x3e7d64(0x59d)](_0x28720c, { + 'onError': _0x20b7be => _0x46b331(_0x28720c, _0x20b7be, _0x18d139, _0x562e58), + 'onResult': _0xdbd2b5 && (_0x4272a2 => _0xdbd2b5(_0x28720c, _0x4272a2, _0x18d139, _0x562e58)), + 'onDone': !_0xdbd2b5 && _0x18d139, + 'rethrowIfPossible': _0x22c643 && (_0x11c511 < 0x0 || _0x28720c < _0x11c511) + }); + _0x1674ec = () => _0x353aa6; + } + return _0x5c1421 += _0x1674ec(), _0x5c1421; + } [_0x4b5e34(0x734) + _0x4b5e34(0x59a)]({ + onError: _0x5f3225, + onDone: _0x361aa5, + rethrowIfPossible: _0x2c5a0b + }) { + const _0x346223 = _0x4b5e34; + if (0x0 === this[_0x346223(0x3b7)][_0x346223(0x7f1)][_0x346223(0x33e)]) return _0x361aa5(); + const _0x4ed709 = this[_0x346223(0x3b7)][_0x346223(0x7f1)][_0x346223(0x47d)](_0x141b0c => _0x346223(0x54b) === _0x141b0c[_0x346223(0x836)]); + let _0x3a8e09 = ''; + _0x4ed709 || (_0x3a8e09 += _0x346223(0x798) + _0x346223(0x783) + 'ion() {\x0a', _0x3a8e09 += _0x346223(0x239) + _0x346223(0x666) + 'se;\x0a'), _0x3a8e09 += _0x346223(0x1e5) + '\x0a', _0x3a8e09 += 'do {\x0a', _0x3a8e09 += _0x346223(0x6d1) + _0x346223(0x3c7); + for (let _0x71727b = 0x0; _0x71727b < this[_0x346223(0x3b7)]['intercepto' + 'rs'][_0x346223(0x33e)]; _0x71727b++) { + const _0x19c43b = this['options'][_0x346223(0x34e) + 'rs'][_0x71727b]; + _0x19c43b[_0x346223(0x23b)] && (_0x3a8e09 += this[_0x346223(0x6a1) + _0x346223(0x3f7)](_0x71727b) + '.loop(' + this[_0x346223(0x4b4)]({ + 'before': _0x19c43b[_0x346223(0x23f)] ? _0x346223(0x85b) : void 0x0 + }) + ');\x0a'); + } + return _0x3a8e09 += this[_0x346223(0x6c9) + _0x346223(0x688)]({ + 'onError': _0x5f3225, + 'onResult': (_0x57bcb8, _0x75522b, _0x48a54f, _0x310df5) => { + const _0x209de1 = _0x346223; + let _0x145388 = ''; + return _0x145388 += 'if(' + _0x75522b + (' !== undef' + _0x209de1(0x2f4)), _0x145388 += _0x209de1(0x887) + _0x209de1(0x708), _0x4ed709 || (_0x145388 += _0x209de1(0x624) + _0x209de1(0x2ed) + _0x209de1(0x5f7)), _0x145388 += _0x310df5(!0x0), _0x145388 += _0x209de1(0x584), _0x145388 += _0x48a54f(), _0x145388 += '}\x0a', _0x145388; + }, + 'onDone': _0x361aa5 && (() => { + const _0x3f811d = _0x346223; + let _0x10a8cd = ''; + return _0x10a8cd += _0x3f811d(0x704) + _0x3f811d(0x340), _0x10a8cd += _0x361aa5(), _0x10a8cd += '}\x0a', _0x10a8cd; + }), + 'rethrowIfPossible': _0x2c5a0b && _0x4ed709 + }), _0x3a8e09 += _0x346223(0x19e) + _0x346223(0x56f), _0x4ed709 || (_0x3a8e09 += _0x346223(0x620) + _0x346223(0x6f8), _0x3a8e09 += _0x346223(0x63c), _0x3a8e09 += '_looper();' + '\x0a'), _0x3a8e09; + } [_0x4b5e34(0x552) + _0x4b5e34(0x240)]({ + onError: _0x4a8ac3, + onResult: _0x50589d, + onDone: _0x57f501, + rethrowIfPossible: _0x2cf127, + onTap: _0x791aaa = (_0x9fd6a, _0x428973) => _0x428973() + }) { + const _0x5c7c66 = _0x4b5e34; + if (this[_0x5c7c66(0x3b7)]['taps'][_0x5c7c66(0x33e)] <= 0x1) return this[_0x5c7c66(0x6c9) + 'ries']({ + 'onError': _0x4a8ac3, + 'onResult': _0x50589d, + 'onDone': _0x57f501, + 'rethrowIfPossible': _0x2cf127 + }); + let _0x5abe2d = ''; + _0x5abe2d += _0x5c7c66(0x5c0), _0x5abe2d += _0x5c7c66(0x848) + _0x5c7c66(0x506) + this[_0x5c7c66(0x3b7)][_0x5c7c66(0x7f1)][_0x5c7c66(0x33e)] + ';\x0a', _0x57f501 && (_0x5abe2d += _0x5c7c66(0x4a9) + '= (functio' + _0x5c7c66(0x3e2), _0x5abe2d += _0x57f501(), _0x5abe2d += _0x5c7c66(0x63c)); + for (let _0x491331 = 0x0; _0x491331 < this[_0x5c7c66(0x3b7)][_0x5c7c66(0x7f1)][_0x5c7c66(0x33e)]; _0x491331++) { + const _0x5840d7 = () => _0x57f501 ? _0x5c7c66(0x3ad) + _0x5c7c66(0x300) + _0x5c7c66(0x470) : _0x5c7c66(0x7f9) + ';', + _0x10d355 = _0x382aeb => _0x382aeb || !_0x57f501 ? _0x5c7c66(0x5e6) + _0x5c7c66(0x85f) : _0x5c7c66(0x5e6) + _0x5c7c66(0x546) + _0x5c7c66(0x212); + _0x5abe2d += _0x5c7c66(0x265) + 'r <= 0) br' + _0x5c7c66(0x319), _0x5abe2d += _0x791aaa(_0x491331, () => this[_0x5c7c66(0x59d)](_0x491331, { + 'onError': _0x4fb9e4 => { + const _0x423dd6 = _0x5c7c66; + let _0x27560d = ''; + return _0x27560d += _0x423dd6(0x265) + 'r > 0) {\x0a', _0x27560d += _0x4a8ac3(_0x491331, _0x4fb9e4, _0x5840d7, _0x10d355), _0x27560d += '}\x0a', _0x27560d; + }, + 'onResult': _0x50589d && (_0x1dfd9c => { + const _0x53dbfb = _0x5c7c66; + let _0x50aa4b = ''; + return _0x50aa4b += _0x53dbfb(0x265) + _0x53dbfb(0x4ea), _0x50aa4b += _0x50589d(_0x491331, _0x1dfd9c, _0x5840d7, _0x10d355), _0x50aa4b += '}\x0a', _0x50aa4b; + }), + 'onDone': !_0x50589d && (() => _0x5840d7()), + 'rethrowIfPossible': _0x2cf127 + }), _0x5840d7, _0x10d355); + } + return _0x5abe2d += '} while(fa' + _0x5c7c66(0x21a), _0x5abe2d; + } [_0x4b5e34(0x4b4)]({ + before: _0x18b32c, + after: _0x33ce65 + } = {}) { + const _0x5ad518 = _0x4b5e34; + let _0x3b6d14 = this[_0x5ad518(0x2a2)]; + return _0x18b32c && (_0x3b6d14 = [_0x18b32c][_0x5ad518(0x49b)](_0x3b6d14)), _0x33ce65 && (_0x3b6d14 = _0x3b6d14[_0x5ad518(0x49b)](_0x33ce65)), 0x0 === _0x3b6d14[_0x5ad518(0x33e)] ? '' : _0x3b6d14[_0x5ad518(0x493)](', '); + } [_0x4b5e34(0x5d3)](_0xd16867) { + const _0x2dbd9a = _0x4b5e34; + return _0x2dbd9a(0x1fa) + _0xd16867 + ']'; + } [_0x4b5e34(0x62f)](_0x33f2df) { + const _0x125e8b = _0x4b5e34; + return _0x125e8b(0x438) + _0x33f2df + ']'; + } [_0x4b5e34(0x6a1) + _0x4b5e34(0x3f7)](_0x384bcc) { + const _0x40be7f = _0x4b5e34; + return '_intercept' + _0x40be7f(0x4ed) + _0x384bcc + ']'; + } + }; + }, + 0x1e5b: (_0x463d23, _0x434f35, _0x5e5035) => { + 'use strict'; + const _0xd794af = _0xb80e; + const _0x562b33 = _0x5e5035(0x1779), + _0x42a88e = (_0x1c9c47, _0x5ccebb) => _0x5ccebb; + class _0x527f7f { + constructor(_0x36c481, _0x3f0f5f = undefined) { + const _0x578d78 = _0xb80e; + this['_map'] = new Map(), this['name'] = _0x3f0f5f, this[_0x578d78(0x553)] = _0x36c481, this[_0x578d78(0x4f9) + 'ors'] = []; + } ['get'](_0x5abbbd) { + const _0x468ba5 = _0xb80e; + return this['_map'][_0x468ba5(0x6f3)](_0x5abbbd); + } [_0xd794af(0x78e)](_0x4cd157) { + const _0x38ea4f = _0xd794af, + _0x1f0964 = this[_0x38ea4f(0x6f3)](_0x4cd157); + if (void 0x0 !== _0x1f0964) return _0x1f0964; + let _0x1796f0 = this['_factory'](_0x4cd157); + const _0x2eaae6 = this[_0x38ea4f(0x4f9) + _0x38ea4f(0x7f4)]; + for (let _0x447489 = 0x0; _0x447489 < _0x2eaae6[_0x38ea4f(0x33e)]; _0x447489++) _0x1796f0 = _0x2eaae6[_0x447489][_0x38ea4f(0x2ba)](_0x4cd157, _0x1796f0); + return this[_0x38ea4f(0x6d9)][_0x38ea4f(0x5b7)](_0x4cd157, _0x1796f0), _0x1796f0; + } [_0xd794af(0x5e5)](_0x114820) { + const _0x4100e4 = _0xd794af; + this['_intercept' + _0x4100e4(0x7f4)]['push'](Object[_0x4100e4(0x709)]({ + 'factory': _0x42a88e + }, _0x114820)); + } + } + _0x527f7f['prototype']['tap'] = _0x562b33[_0xd794af(0x5ed)](function (_0xb37e20, _0x29a0ff, _0x431983) { + const _0x3400d0 = _0xd794af; + return this[_0x3400d0(0x78e)](_0xb37e20)[_0x3400d0(0x834)](_0x29a0ff, _0x431983); + }, _0xd794af(0x221) + _0xd794af(0x597) + _0xd794af(0x57a) + 'ed. Use Ho' + 'okMap#for(' + _0xd794af(0x3c0) + _0xd794af(0x24f)), _0x527f7f[_0xd794af(0x739)][_0xd794af(0x1e7)] = _0x562b33['deprecate'](function (_0x41e7c8, _0x5ae133, _0x1338cd) { + const _0x51020b = _0xd794af; + return this[_0x51020b(0x78e)](_0x41e7c8)['tapAsync'](_0x5ae133, _0x1338cd); + }, _0xd794af(0x221) + _0xd794af(0x20b) + _0xd794af(0x856) + _0xd794af(0x19a) + _0xd794af(0x3cb) + _0xd794af(0x820) + 'tapAsync(…' + _0xd794af(0x24f)), _0x527f7f['prototype'][_0xd794af(0x72b)] = _0x562b33['deprecate'](function (_0x105855, _0x2c996f, _0x2fbeef) { + const _0x382935 = _0xd794af; + return this['for'](_0x105855)[_0x382935(0x72b)](_0x2c996f, _0x2fbeef); + }, 'HookMap#ta' + _0xd794af(0x301) + _0xd794af(0x53a) + _0xd794af(0x452) + ' Use HookM' + _0xd794af(0x5df) + _0xd794af(0x209) + _0xd794af(0x2d4) + _0xd794af(0x4ac)), _0x463d23[_0xd794af(0x255)] = _0x527f7f; + }, + 0xcda: (_0x45c575, _0x3c30df, _0x2b2c0d) => { + 'use strict'; + const _0x29992 = _0xb80e; + _0x2b2c0d(0x1fbe); + class _0x4e2597 { + constructor(_0x5cb3aa, _0x2f0001 = undefined) { + const _0xcd0534 = _0xb80e; + this[_0xcd0534(0x5f8)] = _0x5cb3aa, this[_0xcd0534(0x1ab)] = _0x2f0001; + } ['tap'](_0x1f7797, _0x45f16b) { + const _0x3e52ec = _0xb80e; + for (const _0x19b870 of this[_0x3e52ec(0x5f8)]) _0x19b870[_0x3e52ec(0x834)](_0x1f7797, _0x45f16b); + } [_0x29992(0x1e7)](_0x5c41d0, _0x37ca35) { + const _0xf9278 = _0x29992; + for (const _0x29f981 of this[_0xf9278(0x5f8)]) _0x29f981['tapAsync'](_0x5c41d0, _0x37ca35); + } [_0x29992(0x72b)](_0x53d1e2, _0x1a46de) { + const _0x4c2a9b = _0x29992; + for (const _0x31a5d6 of this[_0x4c2a9b(0x5f8)]) _0x31a5d6[_0x4c2a9b(0x72b)](_0x53d1e2, _0x1a46de); + } [_0x29992(0x627)]() { + const _0x12deb = _0x29992; + for (const _0xb182ec of this[_0x12deb(0x5f8)]) + if (_0xb182ec['isUsed']()) return !0x0; + return !0x1; + } [_0x29992(0x5e5)](_0x51efc2) { + const _0x200b12 = _0x29992; + for (const _0x214a33 of this[_0x200b12(0x5f8)]) _0x214a33[_0x200b12(0x5e5)](_0x51efc2); + } ['withOption' + 's'](_0x2f85f3) { + const _0x568cbb = _0x29992; + return new _0x4e2597(this['hooks'][_0x568cbb(0x296)](_0x37545e => _0x37545e['withOption' + 's'](_0x2f85f3)), this[_0x568cbb(0x1ab)]); + } + } + _0x45c575[_0x29992(0x255)] = _0x4e2597; + }, + 0x1438: (_0x39e704, _0x12ec2b, _0x530b11) => { + 'use strict'; + const _0x2b9ec8 = _0xb80e; + const _0x32db65 = _0x530b11(0x1fbe), + _0x2d8a63 = _0x530b11(0x1523), + _0x1cd7f0 = new class extends _0x2d8a63 { + [_0x2b9ec8(0x4a5)]({ + onError: _0x378642, + onResult: _0xb9b28, + resultReturns: _0xee1d44, + onDone: _0x4a19af, + rethrowIfPossible: _0x2b8536 + }) { + const _0xf51bc9 = _0x2b9ec8; + return this[_0xf51bc9(0x6c9) + 'ries']({ + 'onError': (_0x55561d, _0x397591) => _0x378642(_0x397591), + 'onResult': (_0xba8b56, _0x4adee1, _0x1732ff) => _0xf51bc9(0x40a) + _0x4adee1 + (' !== undef' + 'ined) {\x0a') + _0xb9b28(_0x4adee1) + (_0xf51bc9(0x876) + '\x0a') + _0x1732ff() + '}\x0a', + 'resultReturns': _0xee1d44, + 'onDone': _0x4a19af, + 'rethrowIfPossible': _0x2b8536 + }); + } + }(), + _0x53ccc1 = () => { + const _0x288254 = _0x2b9ec8; + throw new Error(_0x288254(0x6b4) + _0x288254(0x5fc) + _0x288254(0x26e) + _0x288254(0x869) + _0x288254(0x353)); + }, + _0x12f2ed = () => { + const _0x2282c6 = _0x2b9ec8; + throw new Error(_0x2282c6(0x72b) + _0x2282c6(0x479) + _0x2282c6(0x2cc) + _0x2282c6(0x39f) + _0x2282c6(0x19c)); + }, + _0x35ce94 = function (_0x24d015) { + const _0xb24b27 = _0x2b9ec8; + return _0x1cd7f0[_0xb24b27(0x488)](this, _0x24d015), _0x1cd7f0[_0xb24b27(0x36d)](_0x24d015); + }; + + function _0x44e1aa(_0x5a9b37 = [], _0x1e0993 = undefined) { + const _0x54373b = _0x2b9ec8, + _0xde80e9 = new _0x32db65(_0x5a9b37, _0x1e0993); + return _0xde80e9[_0x54373b(0x7fc) + 'r'] = _0x44e1aa, _0xde80e9[_0x54373b(0x1e7)] = _0x53ccc1, _0xde80e9[_0x54373b(0x72b)] = _0x12f2ed, _0xde80e9[_0x54373b(0x4e2)] = _0x35ce94, _0xde80e9; + } + _0x44e1aa['prototype'] = null, _0x39e704[_0x2b9ec8(0x255)] = _0x44e1aa; + }, + 0x16db: (_0x1071d3, _0x594a05, _0x45cbd0) => { + 'use strict'; + const _0x170ef3 = _0xb80e; + const _0x27fad1 = _0x45cbd0(0x1fbe), + _0x40d39f = _0x45cbd0(0x1523), + _0xdf6b8 = new class extends _0x40d39f { + [_0x170ef3(0x4a5)]({ + onError: _0x3d0a58, + onDone: _0x52105e, + rethrowIfPossible: _0x39ecb7 + }) { + const _0x4a7da8 = _0x170ef3; + return this['callTapsSe' + _0x4a7da8(0x688)]({ + 'onError': (_0x2cdddb, _0x51b253) => _0x3d0a58(_0x51b253), + 'onDone': _0x52105e, + 'rethrowIfPossible': _0x39ecb7 + }); + } + }(), + _0x1e14da = () => { + const _0x34a09b = _0x170ef3; + throw new Error(_0x34a09b(0x6b4) + _0x34a09b(0x5fc) + _0x34a09b(0x26e) + _0x34a09b(0x364)); + }, + _0x5b6842 = () => { + const _0x485afb = _0x170ef3; + throw new Error(_0x485afb(0x72b) + ' is not su' + _0x485afb(0x2cc) + ' a SyncHoo' + 'k'); + }, + _0xbfc46a = function (_0x4f888d) { + const _0x1d378f = _0x170ef3; + return _0xdf6b8['setup'](this, _0x4f888d), _0xdf6b8[_0x1d378f(0x36d)](_0x4f888d); + }; + + function _0x225550(_0x23ba48 = [], _0x6e517 = undefined) { + const _0x5ea3ea = _0x170ef3, + _0x7c15de = new _0x27fad1(_0x23ba48, _0x6e517); + return _0x7c15de[_0x5ea3ea(0x7fc) + 'r'] = _0x225550, _0x7c15de['tapAsync'] = _0x1e14da, _0x7c15de['tapPromise'] = _0x5b6842, _0x7c15de[_0x5ea3ea(0x4e2)] = _0xbfc46a, _0x7c15de; + } + _0x225550[_0x170ef3(0x739)] = null, _0x1071d3[_0x170ef3(0x255)] = _0x225550; + }, + 0xf87: (_0x193325, _0x3416d4, _0x576dda) => { + 'use strict'; + const _0x43ce44 = _0xb80e; + const _0x17aaf2 = _0x576dda(0x1fbe), + _0x5bf8e8 = _0x576dda(0x1523), + _0x2f9068 = new class extends _0x5bf8e8 { + ['content']({ + onError: _0x4d6c56, + onDone: _0x555a63, + rethrowIfPossible: _0x24bbc0 + }) { + const _0x1ed8dd = _0xb80e; + return this[_0x1ed8dd(0x734) + _0x1ed8dd(0x59a)]({ + 'onError': (_0x567e85, _0x5d44d8) => _0x4d6c56(_0x5d44d8), + 'onDone': _0x555a63, + 'rethrowIfPossible': _0x24bbc0 + }); + } + }(), + _0x21c69a = () => { + const _0x390d7f = _0xb80e; + throw new Error('tapAsync i' + _0x390d7f(0x5fc) + _0x390d7f(0x26e) + _0x390d7f(0x600) + 'ook'); + }, + _0x262153 = () => { + const _0xa2e4a6 = _0xb80e; + throw new Error(_0xa2e4a6(0x72b) + _0xa2e4a6(0x479) + _0xa2e4a6(0x2cc) + ' a SyncLoo' + _0xa2e4a6(0x536)); + }, + _0x38612b = function (_0x3bc152) { + return _0x2f9068['setup'](this, _0x3bc152), _0x2f9068['create'](_0x3bc152); + }; + + function _0x1e32aa(_0x112190 = [], _0x12520a = undefined) { + const _0x428ffa = _0xb80e, + _0x49b60b = new _0x17aaf2(_0x112190, _0x12520a); + return _0x49b60b['constructo' + 'r'] = _0x1e32aa, _0x49b60b[_0x428ffa(0x1e7)] = _0x21c69a, _0x49b60b[_0x428ffa(0x72b)] = _0x262153, _0x49b60b[_0x428ffa(0x4e2)] = _0x38612b, _0x49b60b; + } + _0x1e32aa[_0x43ce44(0x739)] = null, _0x193325[_0x43ce44(0x255)] = _0x1e32aa; + }, + 0x1544: (_0x148997, _0x1bc75c, _0x43f0e8) => { + 'use strict'; + const _0x106c7c = _0xb80e; + const _0x3d0f69 = _0x43f0e8(0x1fbe), + _0x28bca0 = _0x43f0e8(0x1523), + _0xf1dcd2 = new class extends _0x28bca0 { + ['content']({ + onError: _0x206955, + onResult: _0x317fdc, + resultReturns: _0x43e53b, + rethrowIfPossible: _0x29fff4 + }) { + const _0x1f3511 = _0xb80e; + return this['callTapsSe' + _0x1f3511(0x688)]({ + 'onError': (_0x5c6b65, _0x123b42) => _0x206955(_0x123b42), + 'onResult': (_0x21dead, _0x50a3c9, _0x4cda1d) => { + const _0x55e322 = _0x1f3511; + let _0x3fa2a2 = ''; + return _0x3fa2a2 += _0x55e322(0x40a) + _0x50a3c9 + (' !== undef' + 'ined) {\x0a'), _0x3fa2a2 += this[_0x55e322(0x2a2)][0x0] + _0x55e322(0x43b) + _0x50a3c9 + ';\x0a', _0x3fa2a2 += '}\x0a', _0x3fa2a2 += _0x4cda1d(), _0x3fa2a2; + }, + 'onDone': () => _0x317fdc(this[_0x1f3511(0x2a2)][0x0]), + 'doneReturns': _0x43e53b, + 'rethrowIfPossible': _0x29fff4 + }); + } + }(), + _0x3c5ffa = () => { + const _0x177cfc = _0xb80e; + throw new Error(_0x177cfc(0x6b4) + _0x177cfc(0x5fc) + _0x177cfc(0x26e) + ' SyncWater' + _0x177cfc(0x5f5)); + }, + _0x398bd9 = () => { + const _0x5c0d20 = _0xb80e; + throw new Error(_0x5c0d20(0x72b) + _0x5c0d20(0x479) + _0x5c0d20(0x2cc) + _0x5c0d20(0x1b7) + _0x5c0d20(0x6c2)); + }, + _0x1dc7be = function (_0x344e7b) { + const _0x13ba2c = _0xb80e; + return _0xf1dcd2[_0x13ba2c(0x488)](this, _0x344e7b), _0xf1dcd2['create'](_0x344e7b); + }; + + function _0x194b0c(_0x408a58 = [], _0x35a3a5 = undefined) { + const _0x25f248 = _0xb80e; + if (_0x408a58[_0x25f248(0x33e)] < 0x1) throw new Error(_0x25f248(0x7b4) + 'hooks must' + ' have at l' + _0x25f248(0x665) + _0x25f248(0x744)); + const _0x48431f = new _0x3d0f69(_0x408a58, _0x35a3a5); + return _0x48431f[_0x25f248(0x7fc) + 'r'] = _0x194b0c, _0x48431f[_0x25f248(0x1e7)] = _0x3c5ffa, _0x48431f[_0x25f248(0x72b)] = _0x398bd9, _0x48431f['compile'] = _0x1dc7be, _0x48431f; + } + _0x194b0c[_0x106c7c(0x739)] = null, _0x148997[_0x106c7c(0x255)] = _0x194b0c; + }, + 0x2505: (_0x6b627b, _0x14204a, _0x48815c) => { + 'use strict'; + const _0x22527b = _0xb80e; + _0x14204a['__esModule'] = !0x0, _0x14204a[_0x22527b(0x225)] = _0x48815c(0x16db), _0x14204a[_0x22527b(0x806) + 'ok'] = _0x48815c(0x1438), _0x14204a[_0x22527b(0x1c0) + _0x22527b(0x737)] = _0x48815c(0x1544), _0x14204a[_0x22527b(0x606) + 'ok'] = _0x48815c(0xf87), _0x14204a[_0x22527b(0x544) + _0x22527b(0x53f)] = _0x48815c(0x2042), _0x14204a[_0x22527b(0x544) + 'lelBailHoo' + 'k'] = _0x48815c(0xeb9), _0x14204a['AsyncSerie' + _0x22527b(0x63a)] = _0x48815c(0x999), _0x14204a[_0x22527b(0x762) + _0x22527b(0x381)] = _0x48815c(0x1258), _0x14204a[_0x22527b(0x762) + _0x22527b(0x5eb)] = _0x48815c(0x12e4), _0x14204a[_0x22527b(0x762) + _0x22527b(0x499) + _0x22527b(0x1f3)] = _0x48815c(0xa7e), _0x14204a['HookMap'] = _0x48815c(0x1e5b), _0x14204a[_0x22527b(0x489)] = _0x48815c(0xcda); + }, + 0x1779: (_0x476706, _0x1a3652) => { + 'use strict'; + const _0x29fa5d = _0xb80e; + _0x1a3652[_0x29fa5d(0x5ed)] = (_0x4bae96, _0x402677) => { + let _0x5ee6f6 = !0x0; + return function () { + const _0x44ab16 = _0xb80e; + return _0x5ee6f6 && (console['warn'](_0x44ab16(0x6ad) + 'nWarning: ' + _0x402677), _0x5ee6f6 = !0x1), _0x4bae96[_0x44ab16(0x28a)](this, arguments); + }; + }; + }, + 0x2148: function (_0xf3a0ed, _0x8b7828, _0x276651) { + 'use strict'; + const _0x1b53cb = _0xb80e; + var _0x457be9 = this && this[_0x1b53cb(0x343) + _0x1b53cb(0x3a7)] || function (_0xca54de) { + return _0xca54de && _0xca54de['__esModule'] ? _0xca54de : { + 'default': _0xca54de + }; + }; + Object[_0x1b53cb(0x501) + _0x1b53cb(0x6a8)](_0x8b7828, _0x1b53cb(0x772), { + 'value': !0x0 + }); + const _0x5e6f85 = _0x457be9(_0x276651(0x492)), + _0x5c8ad0 = _0x457be9(_0x276651(0x109)), + _0x116ca9 = _0x276651(0xda5), + _0x5b071c = _0x457be9(_0x276651(0x1bba)), + _0x293b26 = _0x457be9(_0x276651(0x1d63)), + _0x29a57d = _0x457be9(_0x276651(0xea3)), + _0x197639 = _0x457be9(_0x276651(0x1b60)), + _0x2da60a = _0x276651(0x24b7), + _0x11df5e = _0x457be9(_0x276651(0x1c5c)); + _0xf3a0ed[_0x1b53cb(0x255)] = function (_0x294241) { + const _0x346cb2 = _0x1b53cb; + _0x5b071c[_0x346cb2(0x395)]['preload'](); + const _0x5b79dd = document[_0x346cb2(0x4d1)]; + let _0x2d1a22 = !0x1; + for (const _0x316f73 of _0x5b79dd) + if (_0x316f73[_0x346cb2(0x318)][_0x346cb2(0x80b)](_0x346cb2(0x259) + _0x346cb2(0x27e) + _0x346cb2(0x691) + _0x346cb2(0x52b)) > -0x1 || _0x316f73[_0x346cb2(0x318)][_0x346cb2(0x80b)](_0x346cb2(0x259) + _0x346cb2(0x27e) + _0x346cb2(0x691) + _0x346cb2(0x3b2)) > -0x1 || _0x316f73[_0x346cb2(0x318)][_0x346cb2(0x80b)](_0x346cb2(0x259) + '.yyggames.' + _0x346cb2(0x691) + _0x346cb2(0x2f3) + _0x346cb2(0x4f7)) > -0x1) { + _0x2d1a22 = !0x0; + const _0x298a51 = _0x316f73[_0x346cb2(0x6ca) + 'te']('data-adapt' + 'er'), + _0x51408b = _0x316f73[_0x346cb2(0x6ca) + 'te'](_0x346cb2(0x828) + 'el'); + _0x51408b && (_0x5c8ad0[_0x346cb2(0x395)]['channel'] = _0x51408b[_0x346cb2(0x356) + 'e']()), _0x346cb2(0x7ad) == _0x298a51 ? (_0x294241['YYGGames'] = _0x5e6f85['default'][_0x346cb2(0x610) + 'e'](), _0x294241['_YYGGames'] = _0x293b26[_0x346cb2(0x395)][_0x346cb2(0x610) + 'e'](), window[_0x346cb2(0x2be)] = _0x293b26[_0x346cb2(0x395)][_0x346cb2(0x610) + 'e']()) : _0x294241['YYGGames'] = _0x293b26[_0x346cb2(0x395)][_0x346cb2(0x610) + 'e'](); + break; + } return _0x197639[_0x346cb2(0x395)][_0x346cb2(0x469)](_0x197639['default'][_0x346cb2(0x83b)][_0x346cb2(0x83c)], _0x3dc52c => { + const _0x4d7965 = _0x346cb2; + _0x197639[_0x4d7965(0x395)]['callAsync'](_0x197639[_0x4d7965(0x395)][_0x4d7965(0x83b)][_0x4d7965(0x763) + _0x4d7965(0x574)], _0x2d0860 => { + const _0x1a8b41 = _0x4d7965; + _0x11df5e['default'][_0x1a8b41(0x1e1)](_0x1a8b41(0x61b) + _0x1a8b41(0x481) + 'SDK_BEFORE' + _0x1a8b41(0x1f5), _0x2d0860), _0x5c8ad0[_0x1a8b41(0x395)][_0x1a8b41(0x199)][_0x1a8b41(0x2de)] = _0x2d0860[_0x1a8b41(0x199)][_0x1a8b41(0x2de)], _0x5c8ad0['default'][_0x1a8b41(0x7e1)][_0x1a8b41(0x2de)] = _0x2d0860[_0x1a8b41(0x7e1)][_0x1a8b41(0x2de)], _0x5c8ad0[_0x1a8b41(0x395)][_0x1a8b41(0x461)] = _0x2d0860['source']; + }); + }), _0x294241[_0x346cb2(0x7ed) + _0x346cb2(0x654)] = _0x116ca9[_0x346cb2(0x7ed) + _0x346cb2(0x654)], window['AdPlatform' + _0x346cb2(0x654)] = _0x116ca9[_0x346cb2(0x7ed) + _0x346cb2(0x654)], _0x294241[_0x346cb2(0x759)]['bundle'] = _0x29a57d[_0x346cb2(0x395)], _0x294241['YYGGames'][_0x346cb2(0x572)] = Object['assign']({}, _0x2da60a[_0x346cb2(0x80e)]), _0x294241[_0x346cb2(0x759)]; + }({}); + }, + 0x109: (_0x2be27b, _0x4af520) => { + 'use strict'; + const _0x109778 = _0xb80e; + Object[_0x109778(0x501) + 'erty'](_0x4af520, _0x109778(0x772), { + 'value': !0x0 + }); + class _0x1d1c85 {} + _0x4af520[_0x109778(0x395)] = _0x1d1c85, _0x1d1c85[_0x109778(0x414)] = !0x1, _0x1d1c85[_0x109778(0x4e4)] = !0x1, _0x1d1c85[_0x109778(0x7e1)] = { + 'channel': null + }, _0x1d1c85['afcConfig'] = { + 'channel': null + }, _0x1d1c85['source'] = null; + }, + 0x1eb: (_0x53d5d3, _0x2563b5) => { + 'use strict'; + const _0x31a26b = _0xb80e; + Object['defineProp' + _0x31a26b(0x6a8)](_0x2563b5, _0x31a26b(0x772), { + 'value': !0x0 + }); + class _0x455993 { + constructor() { + const _0x3544d9 = _0x31a26b; + ++_0x455993['ID'], this[_0x3544d9(0x674)] = _0x455993['ID']; + } [_0x31a26b(0x2ab)]() { + return this['_myID']; + } + } + _0x2563b5[_0x31a26b(0x395)] = _0x455993, _0x455993['ID'] = 0x0; + }, + 0xda5: (_0x218e29, _0x3fcab5) => { + 'use strict'; + const _0x232e04 = _0xb80e; + var _0x216f47; + Object[_0x232e04(0x501) + _0x232e04(0x6a8)](_0x3fcab5, _0x232e04(0x772), { + 'value': !0x0 + }), _0x3fcab5[_0x232e04(0x7ed) + 'Type'] = void 0x0, (_0x216f47 = _0x3fcab5[_0x232e04(0x7ed) + _0x232e04(0x654)] || (_0x3fcab5[_0x232e04(0x7ed) + 'Type'] = {}))[_0x216f47[_0x232e04(0x733)] = 0x0] = 'en_ADBREAK', _0x216f47[_0x216f47[_0x232e04(0x7a2) + _0x232e04(0x63b)] = 0x1] = _0x232e04(0x7a2) + 'TRIBUTION', _0x216f47[_0x216f47[_0x232e04(0x227) + 'ETIZE'] = 0x2] = _0x232e04(0x227) + _0x232e04(0x727), _0x216f47[_0x216f47[_0x232e04(0x81c)] = 0x3] = _0x232e04(0x81c), _0x216f47[_0x216f47[_0x232e04(0x5f0)] = 0x4] = _0x232e04(0x5f0), _0x216f47[_0x216f47[_0x232e04(0x7da)] = 0x5] = _0x232e04(0x7da), _0x216f47[_0x216f47['en_TCL'] = 0x6] = _0x232e04(0x841), _0x216f47[_0x216f47[_0x232e04(0x4ff)] = 0x7] = _0x232e04(0x4ff), _0x216f47[_0x216f47[_0x232e04(0x4bb)] = 0x8] = _0x232e04(0x4bb), _0x216f47[_0x216f47['Kfreegame'] = 0x9] = _0x232e04(0x7ab), _0x216f47[_0x216f47[_0x232e04(0x879)] = 0xa] = 'Crazygames', _0x216f47[_0x216f47['Y8'] = 0xb] = 'Y8', _0x216f47[_0x216f47[_0x232e04(0x1d3)] = 0xc] = _0x232e04(0x1d3), _0x216f47[_0x216f47[_0x232e04(0x384)] = 0xd] = _0x232e04(0x384), _0x216f47[_0x216f47['idg'] = 0xe] = 'idg'; + }, + 0x1b70: (_0x4fc96a, _0x4c1dfb) => { + 'use strict'; + const _0x214c0f = _0xb80e; + var _0xc3076; + Object[_0x214c0f(0x501) + _0x214c0f(0x6a8)](_0x4c1dfb, _0x214c0f(0x772), { + 'value': !0x0 + }), _0x4c1dfb[_0x214c0f(0x475) + 'e'] = void 0x0, (_0xc3076 = _0x4c1dfb[_0x214c0f(0x475) + 'e'] || (_0x4c1dfb[_0x214c0f(0x475) + 'e'] = {}))[_0xc3076[_0x214c0f(0x587)] = 0x0] = _0x214c0f(0x587), _0xc3076[_0xc3076[_0x214c0f(0x6af)] = 0x1] = 'YIV', _0xc3076[_0xc3076[_0x214c0f(0x702)] = 0x2] = _0x214c0f(0x702), _0xc3076[_0xc3076[_0x214c0f(0x655)] = 0x3] = _0x214c0f(0x655), _0xc3076[_0xc3076[_0x214c0f(0x437)] = 0x4] = _0x214c0f(0x437), _0xc3076[_0xc3076[_0x214c0f(0x6da)] = 0x5] = _0x214c0f(0x6da); + }, + 0x139f: (_0x3d4aad, _0x24bda2) => { + 'use strict'; + const _0x33dd78 = _0xb80e; + var _0x57c15b; + Object[_0x33dd78(0x501) + 'erty'](_0x24bda2, _0x33dd78(0x772), { + 'value': !0x0 + }), _0x24bda2[_0x33dd78(0x1ac)] = void 0x0, (_0x57c15b = _0x24bda2[_0x33dd78(0x1ac)] || (_0x24bda2[_0x33dd78(0x1ac)] = {}))[_0x57c15b[_0x33dd78(0x1e9)] = 0x0] = _0x33dd78(0x1e9), _0x57c15b[_0x57c15b[_0x33dd78(0x68f)] = 0x1] = 'en_APPNAME', _0x57c15b[_0x57c15b[_0x33dd78(0x800) + _0x33dd78(0x3a1)] = 0x2] = _0x33dd78(0x800) + _0x33dd78(0x3a1), _0x57c15b[_0x57c15b[_0x33dd78(0x1e9) + 'NAME'] = 0x3] = _0x33dd78(0x1e9) + _0x33dd78(0x5ba), _0x57c15b[_0x57c15b[_0x33dd78(0x824) + _0x33dd78(0x7a0)] = 0x4] = _0x33dd78(0x824) + 'RESS', _0x57c15b[_0x57c15b[_0x33dd78(0x440) + 'EN'] = 0x5] = _0x33dd78(0x440) + 'EN', _0x57c15b[_0x57c15b[_0x33dd78(0x680) + _0x33dd78(0x5f4)] = 0x6] = _0x33dd78(0x680) + _0x33dd78(0x5f4), _0x57c15b[_0x57c15b[_0x33dd78(0x7a2) + _0x33dd78(0x3d0) + 'D'] = 0x7] = _0x33dd78(0x7a2) + _0x33dd78(0x3d0) + 'D', _0x57c15b[_0x57c15b[_0x33dd78(0x227) + _0x33dd78(0x283)] = 0x8] = _0x33dd78(0x227) + 'ETIZEID', _0x57c15b[_0x57c15b['en_TRANSSI' + 'ON'] = 0x9] = _0x33dd78(0x3b8) + 'ON', _0x57c15b[_0x57c15b[_0x33dd78(0x2b0)] = 0xa] = _0x33dd78(0x2b0), _0x57c15b[_0x57c15b[_0x33dd78(0x885) + _0x33dd78(0x562)] = 0xb] = 'en_BANNERE' + _0x33dd78(0x562); + }, + 0x4e: function (_0x1a9810, _0x2a8ea2, _0x5d1b4d) { + 'use strict'; + const _0x4b3f17 = _0xb80e; + var _0x4d0ec4 = this && this[_0x4b3f17(0x343) + 'fault'] || function (_0x5829de) { + return _0x5829de && _0x5829de['__esModule'] ? _0x5829de : { + 'default': _0x5829de + }; + }; + Object['defineProp' + _0x4b3f17(0x6a8)](_0x2a8ea2, '__esModule', { + 'value': !0x0 + }); + const _0x138aa5 = _0x4d0ec4(_0x5d1b4d(0x191e)); + class _0x8333c1 extends _0x138aa5[_0x4b3f17(0x395)] { + static[_0x4b3f17(0x610) + 'e']() { + const _0x7afe56 = _0x4b3f17; + return this[_0x7afe56(0x615)] || (this[_0x7afe56(0x615)] = new this()), this['instance']; + } + } + _0x2a8ea2[_0x4b3f17(0x395)] = _0x8333c1; + }, + 0x18d7: (_0x19204e, _0x2b4a8f) => { + 'use strict'; + const _0x173a4c = _0xb80e; + Object[_0x173a4c(0x501) + 'erty'](_0x2b4a8f, '__esModule', { + 'value': !0x0 + }); + class _0x92a8b5 { + static[_0x173a4c(0x78f)]() { + const _0x2ab39e = _0x173a4c; + window[_0x2ab39e(0x77f) + 'stener']('message', this[_0x2ab39e(0x441)]['bind'](this), !0x1); + } + static[_0x173a4c(0x803)](_0x2418ce) { + const _0x5bb537 = _0x173a4c; + this[_0x5bb537(0x55f)][_0x5bb537(0x2c4)](_0x2418ce); + } + static[_0x173a4c(0x441)](_0x21770e) { + const _0x5e590d = _0x173a4c, + _0x50b71a = _0x21770e[_0x5e590d(0x411)] || {}; + switch (_0x50b71a[_0x5e590d(0x853)]) { + case _0x5e590d(0x4c8) + _0x5e590d(0x84e): + switch (_0x50b71a['data']) { + case _0x5e590d(0x21e) + 'Ad': + for (const _0x3f9173 of this[_0x5e590d(0x55f)]) _0x3f9173[_0x5e590d(0x1cb)] && _0x3f9173[_0x5e590d(0x1cb)][_0x5e590d(0x21e) + 'Ad'](); + break; + case _0x5e590d(0x5e2) + 'd': + for (const _0x47edaa of this[_0x5e590d(0x55f)]) _0x47edaa['iConfig'] && _0x47edaa[_0x5e590d(0x1cb)][_0x5e590d(0x5e2) + 'd'](); + break; + case _0x5e590d(0x1f2) + 'e': + for (const _0x4da683 of this[_0x5e590d(0x55f)]) _0x4da683[_0x5e590d(0x1cb)] && _0x4da683[_0x5e590d(0x1cb)][_0x5e590d(0x1f2) + 'e'](_0x50b71a['res']); + } + break; + case 'inited': + if (_0x50b71a[_0x5e590d(0x411)]) { + for (const _0x292617 of this[_0x5e590d(0x55f)]) _0x292617[_0x5e590d(0x7ba) + _0x5e590d(0x7fe)] = !0x0, _0x292617[_0x5e590d(0x692)] = !0x0, _0x292617[_0x5e590d(0x2fc)] && _0x292617[_0x5e590d(0x2fc)][_0x5e590d(0x29a) + 'rd'](_0x50b71a['data'][_0x5e590d(0x831)]); + } + break; + case _0x5e590d(0x831): + for (const _0x3ff0e5 of this[_0x5e590d(0x55f)]) _0x3ff0e5[_0x5e590d(0x7ba) + _0x5e590d(0x7fe)] = !0x0, _0x3ff0e5[_0x5e590d(0x692)] = !0x0, _0x3ff0e5[_0x5e590d(0x2fc)] && _0x3ff0e5[_0x5e590d(0x2fc)][_0x5e590d(0x29a) + 'rd'](_0x50b71a[_0x5e590d(0x411)]); + break; + case 'showReward': + switch (_0x50b71a[_0x5e590d(0x411)]) { + case 'beforeShow' + 'Ad': + for (const _0x34fd4f of this['targets']) _0x34fd4f['rConfig'] && _0x34fd4f['rConfig'][_0x5e590d(0x21e) + 'Ad'](); + break; + case _0x5e590d(0x5e2) + 'd': + for (const _0x42d21a of this[_0x5e590d(0x55f)]) _0x42d21a[_0x5e590d(0x2fc)] && _0x42d21a['rConfig'][_0x5e590d(0x5e2) + 'd'](); + break; + case 'rewardComp' + _0x5e590d(0x38a): + for (const _0x23bd76 of this[_0x5e590d(0x55f)]) _0x23bd76[_0x5e590d(0x2fc)] && _0x23bd76['rConfig']['rewardComp' + _0x5e590d(0x38a)](); + break; + case _0x5e590d(0x6fd) + _0x5e590d(0x311): + for (const _0x3bedc4 of this[_0x5e590d(0x55f)]) _0x3bedc4[_0x5e590d(0x2fc)] && _0x3bedc4[_0x5e590d(0x2fc)][_0x5e590d(0x6fd) + 'issed'](); + break; + case _0x5e590d(0x1f2) + 'e': + for (const _0x316d81 of this['targets']) _0x316d81[_0x5e590d(0x2fc)] && _0x316d81['rConfig'][_0x5e590d(0x1f2) + 'e'](_0x50b71a['res']); + } + } + } + } + _0x2b4a8f[_0x173a4c(0x395)] = _0x92a8b5, _0x92a8b5['targets'] = []; + }, + 0x1052: function (_0xaef0db, _0x2dcc21, _0x18f57c) { + 'use strict'; + const _0xb5fedf = _0xb80e; + var _0x3c1b48 = this && this[_0xb5fedf(0x343) + _0xb5fedf(0x3a7)] || function (_0x3ec17f) { + const _0x1528fb = _0xb5fedf; + return _0x3ec17f && _0x3ec17f[_0x1528fb(0x772)] ? _0x3ec17f : { + 'default': _0x3ec17f + }; + }; + Object[_0xb5fedf(0x501) + _0xb5fedf(0x6a8)](_0x2dcc21, '__esModule', { + 'value': !0x0 + }); + const _0x5f3f68 = _0x3c1b48(_0x18f57c(0x109)), + _0x1f686d = _0x18f57c(0x139f), + _0xfc354f = _0x3c1b48(_0x18f57c(0x4e)), + _0x5a247b = _0x3c1b48(_0x18f57c(0x836)), + _0x9e8bf2 = _0x3c1b48(_0x18f57c(0x1c5c)), + _0x20d1b8 = _0x3c1b48(_0x18f57c(0x92e)), + _0x15d148 = _0x3c1b48(_0x18f57c(0x1680)), + _0x5e1716 = _0x3c1b48(_0x18f57c(0x1ea1)); + class _0x48b2a3 { + constructor() { + const _0x2122a5 = _0xb5fedf; + this[_0x2122a5(0x4c8) + 'titialCoun' + 't'] = 0x0, this[_0x2122a5(0x31c) + 'alCooldown'] = 0x0, this[_0x2122a5(0x867)] = !0x1, this[_0x2122a5(0x2fc)] = { + 'showAdFn': null + }, this['iConfig'] = { + 'showTimes': null + }; + } + static[_0xb5fedf(0x610) + 'e']() { + const _0x615860 = _0xb5fedf; + return this['_gInstance'] || (this['_gInstance'] = new _0x48b2a3()), this[_0x615860(0x43e)]; + } [_0xb5fedf(0x441)](_0x1e11d4) { + const _0xb865b4 = _0xb5fedf, + _0x55a4de = _0x1e11d4[_0xb865b4(0x411)] || {}; + switch (_0x55a4de[_0xb865b4(0x853)]) { + case _0xb865b4(0x4c8) + _0xb865b4(0x84e): + switch (_0x55a4de[_0xb865b4(0x411)]) { + case _0xb865b4(0x21e) + 'Ad': + this[_0xb865b4(0x3b7)] && this[_0xb865b4(0x3b7)]['beforeShow' + 'Ad'] && (this[_0xb865b4(0x3b7)][_0xb865b4(0x21e) + 'Ad'](), this[_0xb865b4(0x3b7)]['beforeShow' + 'Ad'] = null); + break; + case _0xb865b4(0x5e2) + 'd': + this[_0xb865b4(0x3b7)] && this['options'][_0xb865b4(0x5e2) + 'd'] && (this[_0xb865b4(0x3b7)]['afterShowA' + 'd'](), this[_0xb865b4(0x3b7)][_0xb865b4(0x5e2) + 'd'] = null); + break; + case _0xb865b4(0x1f2) + 'e': + this[_0xb865b4(0x3b7)] && this[_0xb865b4(0x3b7)][_0xb865b4(0x1f2) + 'e'] && (this[_0xb865b4(0x3b7)]['adBreakDon' + 'e'](_0x55a4de[_0xb865b4(0x4b1)]), this[_0xb865b4(0x3b7)][_0xb865b4(0x1f2) + 'e'] = null, _0xfc354f['default'][_0xb865b4(0x610) + 'e']()[_0xb865b4(0x853)]('adBreakDon' + 'e', [{ + 'type': _0xb865b4(0x23e), + 'data': _0x55a4de['res'], + 'action': this['options'] ? this['options']['action'] : '' + }])); + } + break; + case _0xb865b4(0x371): + _0x55a4de['data'] && (window[_0xb865b4(0x7ba) + _0xb865b4(0x7fe)] = _0x55a4de[_0xb865b4(0x411)][_0xb865b4(0x7ba) + 'nSite'], this[_0xb865b4(0x2fc)][_0xb865b4(0x831)] = _0x55a4de[_0xb865b4(0x411)][_0xb865b4(0x831)]); + break; + case _0xb865b4(0x831): + this[_0xb865b4(0x2fc)][_0xb865b4(0x831)] = _0x55a4de[_0xb865b4(0x411)]; + break; + case 'showReward': + switch (_0x55a4de['data']) { + case _0xb865b4(0x21e) + 'Ad': + _0xfc354f[_0xb865b4(0x395)][_0xb865b4(0x610) + 'e']()[_0xb865b4(0x853)](_0xb865b4(0x21e) + 'Ad', [{ + 'type': _0xb865b4(0x3d9), + 'action': this['rewardOpti' + _0xb865b4(0x336)] ? this[_0xb865b4(0x4aa) + _0xb865b4(0x336)][_0xb865b4(0x7cb)] : '' + }]), this['rewardOpti' + 'ons'] && this['rewardOpti' + _0xb865b4(0x336)][_0xb865b4(0x21e) + 'Ad'] && (this['rewardOpti' + _0xb865b4(0x336)][_0xb865b4(0x21e) + 'Ad'](), this['rewardOpti' + _0xb865b4(0x336)]['beforeShow' + 'Ad'] = null); + break; + case _0xb865b4(0x5e2) + 'd': + _0xfc354f[_0xb865b4(0x395)][_0xb865b4(0x610) + 'e']()['event']('afterShowA' + 'd', [{ + 'type': 'reward', + 'action': this['rewardOpti' + _0xb865b4(0x336)] ? this[_0xb865b4(0x4aa) + _0xb865b4(0x336)]['action'] : '' + }]), this[_0xb865b4(0x4aa) + _0xb865b4(0x336)] && this['rewardOpti' + 'ons']['afterShowA' + 'd'] && (this[_0xb865b4(0x4aa) + _0xb865b4(0x336)]['afterShowA' + 'd'](), this[_0xb865b4(0x4aa) + _0xb865b4(0x336)]['afterShowA' + 'd'] = null); + break; + case _0xb865b4(0x794) + _0xb865b4(0x38a): + this['rewardOpti' + 'ons'] && this[_0xb865b4(0x4aa) + _0xb865b4(0x336)][_0xb865b4(0x794) + _0xb865b4(0x38a)] && (_0xfc354f['default'][_0xb865b4(0x610) + 'e']()[_0xb865b4(0x853)](_0xb865b4(0x243), [{ + 'type': _0xb865b4(0x3d9), + 'action': this[_0xb865b4(0x4aa) + _0xb865b4(0x336)] ? this[_0xb865b4(0x4aa) + _0xb865b4(0x336)][_0xb865b4(0x7cb)] : '' + }]), this['rewardOpti' + _0xb865b4(0x336)][_0xb865b4(0x794) + 'lete'](), this[_0xb865b4(0x4aa) + 'ons'][_0xb865b4(0x794) + _0xb865b4(0x38a)] = null); + break; + case _0xb865b4(0x6fd) + 'issed': + _0xfc354f[_0xb865b4(0x395)][_0xb865b4(0x610) + 'e']()[_0xb865b4(0x853)](_0xb865b4(0x6bc) + 'd', [{ + 'type': _0xb865b4(0x3d9), + 'action': this[_0xb865b4(0x4aa) + _0xb865b4(0x336)] ? this[_0xb865b4(0x4aa) + 'ons'][_0xb865b4(0x7cb)] : '' + }]), this[_0xb865b4(0x4aa) + _0xb865b4(0x336)] && this['rewardOpti' + _0xb865b4(0x336)]['rewardDism' + 'issed'] && (this[_0xb865b4(0x4aa) + _0xb865b4(0x336)][_0xb865b4(0x6fd) + _0xb865b4(0x311)](), this[_0xb865b4(0x4aa) + _0xb865b4(0x336)][_0xb865b4(0x6fd) + _0xb865b4(0x311)] = null); + break; + case 'adBreakDon' + 'e': + this[_0xb865b4(0x4aa) + 'ons'] && this[_0xb865b4(0x4aa) + _0xb865b4(0x336)][_0xb865b4(0x1f2) + 'e'] && (this['rewardOpti' + _0xb865b4(0x336)]['adBreakDon' + 'e'](_0x55a4de[_0xb865b4(0x4b1)]), this[_0xb865b4(0x4aa) + 'ons'][_0xb865b4(0x1f2) + 'e'] = null, _0xfc354f['default'][_0xb865b4(0x610) + 'e']()[_0xb865b4(0x853)](_0xb865b4(0x1f2) + 'e', [{ + 'type': _0xb865b4(0x3d9), + 'data': _0x55a4de[_0xb865b4(0x4b1)], + 'action': this['rewardOpti' + _0xb865b4(0x336)] ? this[_0xb865b4(0x4aa) + _0xb865b4(0x336)][_0xb865b4(0x7cb)] : '' + }])); + } + } + } [_0xb5fedf(0x1ea)]() { + return new Promise(async (_0x63b507, _0x4de8a6) => { + const _0x3d9419 = _0xb80e; + if (window['addEventLi' + _0x3d9419(0x564)](_0x3d9419(0x3b3), this[_0x3d9419(0x441)]['bind'](this), !0x1), window[_0x3d9419(0x816)]) { + try { + window['parent']['postMessag' + 'e']({ + 'event': 'inited' + }, '*'); + } catch (_0x2dbad6) { + _0x20d1b8['default'][_0x3d9419(0x1e1)](_0x3d9419(0x517) + 'e error', _0x2dbad6); + } + await new Promise((_0x257988, _0x1a578f) => { + setTimeout(() => { + _0x257988(); + }, 0xc8); + }); + } + const _0x589269 = document[_0x3d9419(0x81d) + _0x3d9419(0x871)](_0x3d9419(0x1bb)); + _0x589269[_0x3d9419(0x7ae)] = !0x0, _0x589269['setAttribu' + 'te'](_0x3d9419(0x71d) + _0x3d9419(0x5ff), _0x3d9419(0x42a) + '8716159434' + _0x3d9419(0x683)), _0x589269['setAttribu' + 'te'](_0x3d9419(0x492) + _0x3d9419(0x66b), _0x15d148[_0x3d9419(0x395)]['getInstanc' + 'e']()[_0x3d9419(0x6f3)](_0x1f686d[_0x3d9419(0x1ac)][_0x3d9419(0x800) + _0x3d9419(0x3a1)])), _0x589269[_0x3d9419(0x1eb) + 'te']('data-ad-fr' + 'equency-hi' + 'nt', _0x3d9419(0x59e)); + try { + const _0xb9f302 = location[_0x3d9419(0x55a)], + _0x202d41 = _0x15d148['default'][_0x3d9419(0x610) + 'e']()[_0x3d9419(0x6f3)](_0x1f686d[_0x3d9419(0x1ac)][_0x3d9419(0x1e9) + _0x3d9419(0x5ba)]); + _0xb9f302[_0x3d9419(0x80b)](_0x202d41[_0x3d9419(0x68a) + 'e']()) < 0x0 && !_0x15d148[_0x3d9419(0x395)][_0x3d9419(0x610) + 'e']()[_0x3d9419(0x6f3)](_0x1f686d['ConfigType'][_0x3d9419(0x440) + 'EN']) && (_0x15d148[_0x3d9419(0x395)][_0x3d9419(0x610) + 'e']()['set'](_0x1f686d['ConfigType']['en_DEBUGOP' + 'EN'], !0x0), _0x20d1b8[_0x3d9419(0x395)][_0x3d9419(0x363)](_0x3d9419(0x31b) + _0x3d9419(0x268) + 'alue is Fa' + _0x3d9419(0x1a3) + _0x3d9419(0x75c) + 'ause the g' + _0x3d9419(0x326) + _0x3d9419(0x896) + _0x3d9419(0x24e) + _0x202d41)), _0xb9f302[_0x3d9419(0x80b)](_0x202d41[_0x3d9419(0x68a) + 'e']()) > -0x1 && _0x15d148[_0x3d9419(0x395)][_0x3d9419(0x610) + 'e']()[_0x3d9419(0x5b7)](_0x1f686d[_0x3d9419(0x1ac)]['en_DEBUGOP' + 'EN'], !0x1); + } catch (_0xd456f9) { + _0x20d1b8[_0x3d9419(0x395)][_0x3d9419(0x1e1)](_0x3d9419(0x6b2) + _0x3d9419(0x52d), _0xd456f9); + } + _0x15d148[_0x3d9419(0x395)][_0x3d9419(0x610) + 'e']()['get'](_0x1f686d['ConfigType'][_0x3d9419(0x440) + 'EN']) && _0x589269['setAttribu' + 'te'](_0x3d9419(0x6b3) + _0x3d9419(0x3fe), 'on'), _0x589269[_0x3d9419(0x303)] = () => { + const _0x22ac07 = _0x3d9419; + this[_0x22ac07(0x512) + _0x22ac07(0x3d7)] = setInterval(this[_0x22ac07(0x86c)][_0x22ac07(0x570)](this), 0x3e8), _0x63b507(!0x0); + }, _0x589269[_0x3d9419(0x382)] = function () { + _0x4de8a6(); + }, _0x589269[_0x3d9419(0x318)] = _0x3d9419(0x46a) + _0x3d9419(0x32e) + _0x3d9419(0x6bd) + _0x3d9419(0x1ad) + _0x3d9419(0x5c2) + 'sbygoogle.' + 'js', document['head'][_0x3d9419(0x76a) + 'd'](_0x589269), window[_0x3d9419(0x2e7) + 'e'] = window[_0x3d9419(0x2e7) + 'e'] || [], window[_0x3d9419(0x862)] = window[_0x3d9419(0x2e5)] = function (_0x199a04) { + window['adsbygoogl' + 'e']['push'](_0x199a04); + }, window['adConfig']({ + 'preloadAdBreaks': 'on', + 'onReady': _0x5ea5a0 => { + const _0x3009b1 = _0x3d9419; + this[_0x3009b1(0x867)] = !0x0, _0x20d1b8[_0x3009b1(0x395)][_0x3009b1(0x1e1)](_0x3009b1(0x880) + _0x3009b1(0x63d)); + } + }), this[_0x3d9419(0x862)] = function (_0x4a7789) { + const _0x4544a9 = _0x3d9419; + window[_0x4544a9(0x2e7) + 'e']['push'](_0x4a7789); + }; + }); + } [_0xb5fedf(0x4c8) + 'titial'](_0x1ec64e) { + const _0x2bd24d = _0xb5fedf; + if (_0x1ec64e[_0x2bd24d(0x1f2) + 'e'] || (_0x1ec64e[_0x2bd24d(0x1f2) + 'e'] = function () {}), _0x20d1b8['default']['onYYGGames' + _0x2bd24d(0x41a)]() && this[_0x2bd24d(0x1cb)][_0x2bd24d(0x609)] > 0x0) { + this[_0x2bd24d(0x3b7)] = _0x1ec64e; + try { + gtag(_0x2bd24d(0x853), _0x2bd24d(0x24d), { + 'event_category': _0x9e8bf2[_0x2bd24d(0x395)][_0x2bd24d(0x55a)](document[_0x2bd24d(0x42f)]), + 'event_label': _0x5f3f68[_0x2bd24d(0x395)][_0x2bd24d(0x668)] + '-' + _0x5f3f68[_0x2bd24d(0x395)][_0x2bd24d(0x423)] + }), window[_0x2bd24d(0x816)]['postMessag' + 'e']({ + 'event': _0x2bd24d(0x4c8) + 'titial' + }, '*'); + } catch (_0x397efe) { + console[_0x2bd24d(0x7ec)](_0x2bd24d(0x4c8) + _0x2bd24d(0x35a) + _0x2bd24d(0x5dd), _0x397efe); + } + return; + } + if (this[_0x2bd24d(0x31c) + _0x2bd24d(0x592)] > 0x0) return _0x1ec64e && _0x1ec64e[_0x2bd24d(0x21e) + 'Ad'] && (_0x1ec64e[_0x2bd24d(0x21e) + 'Ad'](), _0x1ec64e['beforeShow' + 'Ad'] = null), _0x1ec64e && _0x1ec64e[_0x2bd24d(0x5e2) + 'd'] && (_0x1ec64e[_0x2bd24d(0x5e2) + 'd'](), _0x1ec64e[_0x2bd24d(0x5e2) + 'd'] = null), _0x1ec64e && _0x1ec64e[_0x2bd24d(0x1f2) + 'e'] && (_0x1ec64e['adBreakDon' + 'e']({ + 'breakStatus': 'less-than-' + '30s-' + this[_0x2bd24d(0x31c) + 'alCooldown'] + }), _0x1ec64e['adBreakDon' + 'e'] = null), void _0x20d1b8[_0x2bd24d(0x395)][_0x2bd24d(0x1e1)](_0x2bd24d(0x547) + _0x2bd24d(0x1c8) + _0x2bd24d(0x80f) + _0x2bd24d(0x23d) + ', ignored ' + ':', this['interstiti' + _0x2bd24d(0x592)]); + if (_0x20d1b8[_0x2bd24d(0x395)][_0x2bd24d(0x1e1)](_0x2bd24d(0x547) + ' Interstit' + _0x2bd24d(0x62a)), this[_0x2bd24d(0x3b7)] && this[_0x2bd24d(0x3b7)][_0x2bd24d(0x5e2) + 'd']) return; + let _0x2bfe0f = _0x2bd24d(0x565); + if (0x0 == this[_0x2bd24d(0x4c8) + _0x2bd24d(0x404) + 't'] && (_0x2bfe0f = 'preroll', this[_0x2bd24d(0x4c8) + 'titialCoun' + 't']++, _0xfc354f[_0x2bd24d(0x395)]['getInstanc' + 'e']()[_0x2bd24d(0x853)]('beforeShow' + 'Ad', [{ + 'type': _0x2bd24d(0x23e) + }])), _0x9e8bf2['default']['showLoadin' + 'g'](), this[_0x2bd24d(0x867)]) { + if (clearTimeout(this[_0x2bd24d(0x41c) + 'g']), this['showLoadin' + 'g'] = setTimeout(() => { + const _0x1956aa = _0x2bd24d; + this[_0x1956aa(0x31c) + 'alCooldown'] = 0x1e, _0x1ec64e && _0x1ec64e[_0x1956aa(0x21e) + 'Ad'] && (_0x1ec64e[_0x1956aa(0x21e) + 'Ad'](), _0x1ec64e[_0x1956aa(0x21e) + 'Ad'] = null, _0x5e1716[_0x1956aa(0x395)][_0x1956aa(0x610) + 'e']()['event'](_0x1956aa(0x21e) + 'Ad')), _0x1ec64e && _0x1ec64e[_0x1956aa(0x5e2) + 'd'] && (_0x1ec64e[_0x1956aa(0x5e2) + 'd'](), _0x1ec64e[_0x1956aa(0x5e2) + 'd'] = null), _0x9e8bf2['default']['hideLoadin' + 'g'](); + }, 0x3e8), this['options'] = _0x1ec64e, 'preroll' == _0x2bfe0f) { + if (_0x1ec64e && _0x1ec64e[_0x2bd24d(0x21e) + 'Ad']) { + _0x1ec64e[_0x2bd24d(0x21e) + 'Ad'](), _0x1ec64e['beforeShow' + 'Ad'] = null, _0x5e1716[_0x2bd24d(0x395)][_0x2bd24d(0x610) + 'e']()[_0x2bd24d(0x853)](_0x2bd24d(0x21e) + 'Ad'); + try { + window[_0x2bd24d(0x816)][_0x2bd24d(0x517) + 'e']({ + 'event': _0x2bd24d(0x21e) + _0x2bd24d(0x472) + }, '*'); + } catch (_0x2b4c21) {} + } + return clearTimeout(this[_0x2bd24d(0x41c) + 'g']), void this[_0x2bd24d(0x862)]({ + 'type': _0x2bfe0f, + 'name': _0x2bd24d(0x2d0), + 'adBreakDone': _0x53576e => { + const _0x54d8e7 = _0x2bd24d; + this[_0x54d8e7(0x1cb)][_0x54d8e7(0x609)]++, this[_0x54d8e7(0x31c) + _0x54d8e7(0x592)] = 0x1e, _0x20d1b8[_0x54d8e7(0x395)][_0x54d8e7(0x1e1)](_0x54d8e7(0x1f2) + 'e', _0x53576e), _0x9e8bf2[_0x54d8e7(0x395)][_0x54d8e7(0x70c) + 'g'](), _0x1ec64e && _0x1ec64e['afterShowA' + 'd'] && (_0x1ec64e[_0x54d8e7(0x5e2) + 'd'](), _0x1ec64e[_0x54d8e7(0x5e2) + 'd'] = null, _0x5e1716[_0x54d8e7(0x395)]['getInstanc' + 'e']()[_0x54d8e7(0x853)]('afterShowA' + 'd')), _0x1ec64e && _0x1ec64e['adBreakDon' + 'e'] && (_0x1ec64e[_0x54d8e7(0x1f2) + 'e'](_0x53576e), _0x1ec64e[_0x54d8e7(0x1f2) + 'e'] = null, _0xfc354f[_0x54d8e7(0x395)][_0x54d8e7(0x610) + 'e']()[_0x54d8e7(0x853)](_0x54d8e7(0x1f2) + 'e', [{ + 'type': _0x54d8e7(0x23e), + 'data': _0x53576e, + 'action': _0x1ec64e ? _0x1ec64e['action'] : '' + }])); + try { + window[_0x54d8e7(0x816)][_0x54d8e7(0x517) + 'e']({ + 'event': _0x54d8e7(0x402) + 'nGameAd' + }, '*'); + } catch (_0x4b3777) {} + } + }); + } + return this[_0x2bd24d(0x862)]({ + 'type': _0x2bfe0f, + 'name': _0x2bd24d(0x2d0), + 'beforeAd': () => { + const _0x31e56d = _0x2bd24d; + _0x1ec64e && _0x1ec64e['beforeShow' + 'Ad'] && (_0x1ec64e['beforeShow' + 'Ad'](), _0x1ec64e[_0x31e56d(0x21e) + 'Ad'] = null, _0x5e1716['default']['getInstanc' + 'e']()[_0x31e56d(0x853)](_0x31e56d(0x21e) + 'Ad')), clearTimeout(this['showLoadin' + 'g']); + try { + window[_0x31e56d(0x816)]['postMessag' + 'e']({ + 'event': _0x31e56d(0x21e) + 'InGameAd' + }, '*'); + } catch (_0xb51050) {} + window[_0x31e56d(0x5ec)](); + }, + 'afterAd': () => { + const _0x420e3d = _0x2bd24d; + _0x20d1b8[_0x420e3d(0x395)][_0x420e3d(0x1e1)](_0x420e3d(0x86a)), _0x9e8bf2['default'][_0x420e3d(0x70c) + 'g'](), _0x1ec64e && _0x1ec64e[_0x420e3d(0x5e2) + 'd'] && (_0x1ec64e['afterShowA' + 'd'](), _0x1ec64e[_0x420e3d(0x5e2) + 'd'] = null), this[_0x420e3d(0x31c) + _0x420e3d(0x592)] = 0x1e, window[_0x420e3d(0x1d8)](), _0x5e1716['default'][_0x420e3d(0x610) + 'e']()[_0x420e3d(0x853)](_0x420e3d(0x5e2) + 'd'); + try { + window[_0x420e3d(0x816)][_0x420e3d(0x517) + 'e']({ + 'event': _0x420e3d(0x402) + _0x420e3d(0x427) + }, '*'); + } catch (_0x593447) {} + }, + 'adBreakDone': _0x7c7538 => { + const _0x46fe50 = _0x2bd24d; + _0x20d1b8[_0x46fe50(0x395)]['trace'](_0x46fe50(0x1f2) + 'e', _0x7c7538), clearTimeout(this['showLoadin' + 'g']), _0x9e8bf2['default'][_0x46fe50(0x70c) + 'g'](), _0x1ec64e && _0x1ec64e['beforeShow' + 'Ad'] && (_0x1ec64e[_0x46fe50(0x21e) + 'Ad'](), _0x1ec64e[_0x46fe50(0x21e) + 'Ad'] = null, _0x5e1716[_0x46fe50(0x395)]['getInstanc' + 'e']()[_0x46fe50(0x853)](_0x46fe50(0x21e) + 'Ad')), _0x1ec64e && _0x1ec64e[_0x46fe50(0x5e2) + 'd'] && (_0x1ec64e[_0x46fe50(0x5e2) + 'd'](), _0x1ec64e[_0x46fe50(0x5e2) + 'd'] = null, _0x5e1716[_0x46fe50(0x395)]['getInstanc' + 'e']()[_0x46fe50(0x853)](_0x46fe50(0x5e2) + 'd')), _0x1ec64e && _0x1ec64e[_0x46fe50(0x1f2) + 'e'] && (_0xfc354f[_0x46fe50(0x395)][_0x46fe50(0x610) + 'e']()[_0x46fe50(0x853)]('adBreakDon' + 'e', [{ + 'type': 'int', + 'data': _0x7c7538, + 'action': _0x1ec64e[_0x46fe50(0x7cb)] + }]), _0x1ec64e['adBreakDon' + 'e'](_0x7c7538), _0x1ec64e[_0x46fe50(0x1f2) + 'e'] = null); + } + }), !0x0; + } + _0x5a247b[_0x2bd24d(0x395)][_0x2bd24d(0x610) + 'e']()['showInters' + _0x2bd24d(0x84e)]({ + 'beforeAd': () => { + const _0x12aa62 = _0x2bd24d; + gtag(_0x12aa62(0x853), 'showIAD', { + 'event_category': _0x9e8bf2[_0x12aa62(0x395)][_0x12aa62(0x55a)](document['referrer']), + 'event_label': _0x5f3f68[_0x12aa62(0x395)][_0x12aa62(0x668)] + '-' + _0x5f3f68[_0x12aa62(0x395)][_0x12aa62(0x423)] + }), _0x9e8bf2['default'][_0x12aa62(0x70c) + 'g'](), _0x1ec64e && _0x1ec64e[_0x12aa62(0x21e) + 'Ad'] && (_0x1ec64e['beforeShow' + 'Ad'](), _0x1ec64e[_0x12aa62(0x21e) + 'Ad'] = null, _0x5e1716['default'][_0x12aa62(0x610) + 'e']()[_0x12aa62(0x853)](_0x12aa62(0x21e) + 'Ad'), _0xfc354f[_0x12aa62(0x395)][_0x12aa62(0x610) + 'e']()[_0x12aa62(0x853)](_0x12aa62(0x21e) + 'Ad', [{ + 'type': 'int' + }])), clearTimeout(this[_0x12aa62(0x41c) + 'g']), window[_0x12aa62(0x5ec)](); + try { + window[_0x12aa62(0x816)][_0x12aa62(0x517) + 'e']({ + 'event': _0x12aa62(0x21e) + _0x12aa62(0x472) + }, '*'); + } catch (_0x10b5d6) {} + }, + 'afterAd': () => { + const _0x3a5f91 = _0x2bd24d; + _0x20d1b8[_0x3a5f91(0x395)]['trace'](_0x3a5f91(0x86a)), _0x9e8bf2['default'][_0x3a5f91(0x70c) + 'g'](), _0x1ec64e && _0x1ec64e['afterShowA' + 'd'] && (_0x1ec64e[_0x3a5f91(0x5e2) + 'd'](), _0x1ec64e['afterShowA' + 'd'] = null), _0x1ec64e && _0x1ec64e[_0x3a5f91(0x1f2) + 'e'] && (_0x1ec64e[_0x3a5f91(0x1f2) + 'e']({ + 'breakStatus': _0x3a5f91(0x277) + }), _0x1ec64e['adBreakDon' + 'e'] = null), this[_0x3a5f91(0x31c) + _0x3a5f91(0x592)] = 0x1e, window[_0x3a5f91(0x1d8)](), _0x5e1716[_0x3a5f91(0x395)]['getInstanc' + 'e']()[_0x3a5f91(0x853)](_0x3a5f91(0x5e2) + 'd'); + try { + window[_0x3a5f91(0x816)][_0x3a5f91(0x517) + 'e']({ + 'event': _0x3a5f91(0x402) + _0x3a5f91(0x427) + }, '*'); + } catch (_0x1f8bde) {} + } + }); + } ['canShowRew' + _0xb5fedf(0x58a)]() { + const _0x15c390 = _0xb5fedf; + return _0x20d1b8['default'][_0x15c390(0x20f) + _0x15c390(0x41a)]() ? this['rConfig'][_0x15c390(0x831)] : !this[_0x15c390(0x867)] || !!this[_0x15c390(0x831)]; + } [_0xb5fedf(0x1c3)](_0x25affa) { + const _0x32ed79 = _0xb5fedf; + if (!this[_0x32ed79(0x408) + 'ard']()) return !0x1; + if (_0x20d1b8[_0x32ed79(0x395)][_0x32ed79(0x20f) + _0x32ed79(0x41a)]()) { + this['rewardOpti' + 'ons'] = _0x25affa; + try { + gtag(_0x32ed79(0x853), _0x32ed79(0x226), { + 'event_category': _0x9e8bf2[_0x32ed79(0x395)][_0x32ed79(0x55a)](document[_0x32ed79(0x42f)]), + 'event_label': _0x5f3f68[_0x32ed79(0x395)][_0x32ed79(0x668)] + '-' + _0x5f3f68['default'][_0x32ed79(0x423)] + }), window[_0x32ed79(0x816)]['postMessag' + 'e']({ + 'event': 'showReward' + }, '*'); + } catch (_0x43b211) { + console[_0x32ed79(0x7ec)]('showReward' + _0x32ed79(0x82e), _0x43b211); + } + } else { + if (_0x20d1b8[_0x32ed79(0x395)][_0x32ed79(0x1e1)](_0x32ed79(0x547) + _0x32ed79(0x1f9)), gtag(_0x32ed79(0x853), 'showRAD', { + 'event_category': _0x9e8bf2[_0x32ed79(0x395)][_0x32ed79(0x55a)](document['referrer']), + 'event_label': _0x5f3f68[_0x32ed79(0x395)][_0x32ed79(0x668)] + '-' + _0x5f3f68['default'][_0x32ed79(0x423)] + }), this[_0x32ed79(0x4aa) + 'ons'] = _0x25affa, this[_0x32ed79(0x4aa) + 'ons'][_0x32ed79(0x1f2) + 'e'] || (this[_0x32ed79(0x4aa) + 'ons'][_0x32ed79(0x1f2) + 'e'] = function () {}), this[_0x32ed79(0x867)]) return this[_0x32ed79(0x831)](), this[_0x32ed79(0x831)] = null, window[_0x32ed79(0x5ec)](), !0x0; + _0x5a247b[_0x32ed79(0x395)][_0x32ed79(0x610) + 'e']()[_0x32ed79(0x1c3)]({ + 'beforeAd': () => { + const _0x3e802c = _0x32ed79; + _0x9e8bf2['default'][_0x3e802c(0x70c) + 'g'](), _0x25affa && _0x25affa['beforeShow' + 'Ad'] && (_0x25affa[_0x3e802c(0x21e) + 'Ad'](), _0x25affa[_0x3e802c(0x21e) + 'Ad'] = null, _0x5e1716[_0x3e802c(0x395)][_0x3e802c(0x610) + 'e']()[_0x3e802c(0x853)]('beforeShow' + 'Ad')), _0xfc354f[_0x3e802c(0x395)][_0x3e802c(0x610) + 'e']()[_0x3e802c(0x853)](_0x3e802c(0x21e) + 'Ad', [{ + 'type': _0x3e802c(0x3d9), + 'action': _0x25affa ? _0x25affa[_0x3e802c(0x7cb)] : '' + }]), clearTimeout(this[_0x3e802c(0x41c) + 'g']), window[_0x3e802c(0x5ec)](); + }, + 'afterAd': () => { + const _0x31e624 = _0x32ed79; + _0x20d1b8['default'][_0x31e624(0x1e1)](_0x31e624(0x86a)), _0x9e8bf2[_0x31e624(0x395)][_0x31e624(0x70c) + 'g'](), _0x25affa && _0x25affa[_0x31e624(0x5e2) + 'd'] && (_0x25affa[_0x31e624(0x5e2) + 'd'](), _0x25affa['afterShowA' + 'd'] = null), this[_0x31e624(0x31c) + _0x31e624(0x592)] = 0x1e, window[_0x31e624(0x1d8)](), _0xfc354f[_0x31e624(0x395)]['getInstanc' + 'e']()[_0x31e624(0x853)](_0x31e624(0x5e2) + 'd', [{ + 'type': _0x31e624(0x3d9), + 'action': _0x25affa ? _0x25affa[_0x31e624(0x7cb)] : '' + }]), _0x5e1716[_0x31e624(0x395)]['getInstanc' + 'e']()[_0x31e624(0x853)](_0x31e624(0x5e2) + 'd'); + }, + 'adDismissed': this['onRewardDi' + _0x32ed79(0x4e3)][_0x32ed79(0x570)](this), + 'adViewed': this[_0x32ed79(0x69e) + 'mplete'][_0x32ed79(0x570)](this) + }); + } + } ['onUpdate']() { + const _0x2aab1a = _0xb5fedf; + this[_0x2aab1a(0x31c) + _0x2aab1a(0x592)] >= 0x0 && this[_0x2aab1a(0x31c) + _0x2aab1a(0x592)]--, this[_0x2aab1a(0x32a) + 'd'](); + } [_0xb5fedf(0x32a) + 'd']() { + const _0x12a3f1 = _0xb5fedf; + this[_0x12a3f1(0x831)] || this[_0x12a3f1(0x862)]({ + 'type': _0x12a3f1(0x3d9), + 'name': _0x12a3f1(0x3d9), + 'beforeAd': this['onRewardBe' + _0x12a3f1(0x1cc)][_0x12a3f1(0x570)](this), + 'afterAd': this[_0x12a3f1(0x538) + _0x12a3f1(0x550)][_0x12a3f1(0x570)](this), + 'beforeReward': this['onBeforeRe' + 'ward'][_0x12a3f1(0x570)](this), + 'adDismissed': this[_0x12a3f1(0x507) + 'smissed'][_0x12a3f1(0x570)](this), + 'adViewed': this[_0x12a3f1(0x69e) + _0x12a3f1(0x760)][_0x12a3f1(0x570)](this), + 'adBreakDone': _0x348b7e => { + const _0x38ded6 = _0x12a3f1; + this[_0x38ded6(0x4aa) + _0x38ded6(0x336)] && this[_0x38ded6(0x4aa) + _0x38ded6(0x336)][_0x38ded6(0x1f2) + 'e'] && (_0xfc354f[_0x38ded6(0x395)][_0x38ded6(0x610) + 'e']()[_0x38ded6(0x853)]('adBreakDon' + 'e', [{ + 'type': 'reward', + 'data': _0x348b7e, + 'action': this[_0x38ded6(0x4aa) + _0x38ded6(0x336)][_0x38ded6(0x7cb)] + }]), this['rewardOpti' + 'ons']['adBreakDon' + 'e'](_0x348b7e), this[_0x38ded6(0x4aa) + _0x38ded6(0x336)][_0x38ded6(0x1f2) + 'e'] = null); + } + }); + } ['onBeforeRe' + _0xb5fedf(0x530)](_0xd7477f) { + const _0x569b1b = _0xb5fedf; + _0x20d1b8[_0x569b1b(0x395)]['trace'](_0x569b1b(0x2c3) + _0x569b1b(0x40c) + 'ssful'), this[_0x569b1b(0x831)] = _0xd7477f; + } ['onRewardBe' + _0xb5fedf(0x1cc)]() { + const _0x21cdc7 = _0xb5fedf; + _0x5e1716['default'][_0x21cdc7(0x610) + 'e']()[_0x21cdc7(0x853)](_0x21cdc7(0x21e) + 'Ad'), this[_0x21cdc7(0x4aa) + _0x21cdc7(0x336)][_0x21cdc7(0x21e) + 'Ad'] && this[_0x21cdc7(0x4aa) + _0x21cdc7(0x336)][_0x21cdc7(0x21e) + 'Ad'](), this[_0x21cdc7(0x4aa) + _0x21cdc7(0x336)][_0x21cdc7(0x21e) + 'Ad'] = null, _0xfc354f[_0x21cdc7(0x395)][_0x21cdc7(0x610) + 'e']()[_0x21cdc7(0x853)](_0x21cdc7(0x21e) + 'Ad', [{ + 'type': 'reward', + 'action': this[_0x21cdc7(0x4aa) + _0x21cdc7(0x336)] ? this[_0x21cdc7(0x4aa) + 'ons'][_0x21cdc7(0x7cb)] : '' + }]); + } ['onRewardAf' + _0xb5fedf(0x550)]() { + const _0x5cfdb8 = _0xb5fedf; + window[_0x5cfdb8(0x1d8)](), this['interstiti' + _0x5cfdb8(0x592)] = 0x1e, this['rewardOpti' + 'ons']['afterShowA' + 'd'] && this[_0x5cfdb8(0x4aa) + _0x5cfdb8(0x336)]['afterShowA' + 'd'](), this[_0x5cfdb8(0x4aa) + _0x5cfdb8(0x336)][_0x5cfdb8(0x5e2) + 'd'] = null, this['showAdFn'] = null, _0x5e1716[_0x5cfdb8(0x395)][_0x5cfdb8(0x610) + 'e']()[_0x5cfdb8(0x853)](_0x5cfdb8(0x5e2) + 'd'), _0xfc354f[_0x5cfdb8(0x395)]['getInstanc' + 'e']()[_0x5cfdb8(0x853)](_0x5cfdb8(0x5e2) + 'd', [{ + 'type': 'reward', + 'action': this[_0x5cfdb8(0x4aa) + _0x5cfdb8(0x336)] ? this[_0x5cfdb8(0x4aa) + _0x5cfdb8(0x336)]['action'] : '' + }]); + } ['onRewardDi' + _0xb5fedf(0x4e3)]() { + const _0x4e0fe2 = _0xb5fedf; + this[_0x4e0fe2(0x4aa) + 'ons'] && this[_0x4e0fe2(0x4aa) + _0x4e0fe2(0x336)][_0x4e0fe2(0x6fd) + _0x4e0fe2(0x311)] && (this[_0x4e0fe2(0x4aa) + _0x4e0fe2(0x336)][_0x4e0fe2(0x6fd) + 'issed'](), this[_0x4e0fe2(0x4aa) + _0x4e0fe2(0x336)][_0x4e0fe2(0x6fd) + _0x4e0fe2(0x311)] = null, _0xfc354f['default'][_0x4e0fe2(0x610) + 'e']()[_0x4e0fe2(0x853)](_0x4e0fe2(0x6bc) + 'd', [{ + 'type': _0x4e0fe2(0x3d9), + 'action': this['rewardOpti' + _0x4e0fe2(0x336)]['action'] + }])); + } [_0xb5fedf(0x69e) + _0xb5fedf(0x760)]() { + const _0x10ab13 = _0xb5fedf; + this['rewardOpti' + _0x10ab13(0x336)] && this[_0x10ab13(0x4aa) + _0x10ab13(0x336)][_0x10ab13(0x794) + _0x10ab13(0x38a)] && (this['rewardOpti' + _0x10ab13(0x336)]['rewardComp' + _0x10ab13(0x38a)](), this[_0x10ab13(0x4aa) + _0x10ab13(0x336)][_0x10ab13(0x794) + _0x10ab13(0x38a)] = null, _0xfc354f[_0x10ab13(0x395)][_0x10ab13(0x610) + 'e']()[_0x10ab13(0x853)](_0x10ab13(0x243), [{ + 'type': _0x10ab13(0x3d9), + 'action': this[_0x10ab13(0x4aa) + _0x10ab13(0x336)][_0x10ab13(0x7cb)] + }])); + } [_0xb5fedf(0x309)](_0xde3928) {} [_0xb5fedf(0x2da)](_0x4a8094) {} ['showSplash'](_0x3cf6f2) {} [_0xb5fedf(0x496)](_0x3d07f2) {} + } + _0x2dcc21[_0xb5fedf(0x395)] = _0x48b2a3; + }, + 0x1bdf: (_0x5b3a97, _0x52ea70) => { + 'use strict'; + const _0x2992d7 = _0xb80e; + Object[_0x2992d7(0x501) + _0x2992d7(0x6a8)](_0x52ea70, _0x2992d7(0x772), { + 'value': !0x0 + }); + class _0x4dee31 { + static[_0x2992d7(0x610) + 'e']() { + const _0x29a9d5 = _0x2992d7; + return this['_gInstance'] || (this['_gInstance'] = new _0x4dee31()), this[_0x29a9d5(0x43e)]; + } [_0x2992d7(0x78f)]() { + return new Promise((_0x1b2ab5, _0x3eb995) => { + _0x1b2ab5(!0x0); + }); + } [_0x2992d7(0x4c8) + _0x2992d7(0x84e)](_0x1557a9) { + const _0x3d4c1c = _0x2992d7; + return window[_0x3d4c1c(0x816)][_0x3d4c1c(0x24c) + 'bsite'][_0x3d4c1c(0x4c8) + _0x3d4c1c(0x84e)](_0x1557a9); + } [_0x2992d7(0x408) + _0x2992d7(0x58a)]() { + const _0x20acc3 = _0x2992d7; + return window['parent']['YYGGamesWe' + _0x20acc3(0x5a9)]['canShowRew' + _0x20acc3(0x58a)](); + } [_0x2992d7(0x1c3)](_0x542007) { + const _0x5584a4 = _0x2992d7; + return window[_0x5584a4(0x816)][_0x5584a4(0x24c) + _0x5584a4(0x5a9)][_0x5584a4(0x1c3)](_0x542007), !0x0; + } [_0x2992d7(0x309)](_0x408d27) {} [_0x2992d7(0x2da)](_0xcaf7fe) {} ['showSplash'](_0x1e2d9a) { + return !0x0; + } [_0x2992d7(0x496)](_0x63c555) { + return !0x0; + } + } + _0x52ea70['default'] = _0x4dee31; + }, + 0x1680: (_0x17245a, _0x1b9f90) => { + 'use strict'; + const _0x2c227d = _0xb80e; + Object[_0x2c227d(0x501) + _0x2c227d(0x6a8)](_0x1b9f90, _0x2c227d(0x772), { + 'value': !0x0 + }); + class _0xf53406 { + constructor() { + const _0x2be37a = _0x2c227d; + this[_0x2be37a(0x2c8)] = new Map(); + } + static[_0x2c227d(0x610) + 'e']() { + const _0x5e1bd9 = _0x2c227d; + return this[_0x5e1bd9(0x43e)] || (this[_0x5e1bd9(0x43e)] = new _0xf53406()), this[_0x5e1bd9(0x43e)]; + } [_0x2c227d(0x6f3)](_0x4dbdab) { + const _0x3c4ce5 = _0x2c227d; + return this[_0x3c4ce5(0x2c8)][_0x3c4ce5(0x6f3)](_0x4dbdab); + } ['set'](_0x5df2c3, _0x54bb1d) { + const _0x2c2b1b = _0x2c227d; + this[_0x2c2b1b(0x2c8)][_0x2c2b1b(0x5b7)](_0x5df2c3, _0x54bb1d); + } + } + _0x1b9f90['default'] = _0xf53406; + }, + 0x1aad: (_0x22ebe6, _0x54eed7, _0x588c76) => { + 'use strict'; + const _0x3aa122 = _0xb80e; + Object[_0x3aa122(0x501) + _0x3aa122(0x6a8)](_0x54eed7, _0x3aa122(0x772), { + 'value': !0x0 + }); + const _0x46e415 = _0x588c76(0x2235); + class _0x3f7b2c extends _0x46e415[_0x3aa122(0x327)] { + [_0x3aa122(0x78f)]() { + return new Promise((_0x636ab4, _0x13566d) => { + const _0x1fefb1 = _0xb80e, + _0x2de069 = this, + _0x49f262 = document[_0x1fefb1(0x81d) + _0x1fefb1(0x871)](_0x1fefb1(0x1bb)); + _0x49f262[_0x1fefb1(0x303)] = function () { + const _0x394834 = _0x1fefb1, + _0x516b35 = window[_0x394834(0x703)][_0x394834(0x258)]['getInstanc' + 'e'](); + _0x516b35[_0x394834(0x77f) + _0x394834(0x564)](_0x394834(0x2ae) + 'd', () => { + const _0x40a620 = _0x394834; + _0x2de069[_0x40a620(0x3af) + 'zed'](), _0x636ab4(!0x0); + }), _0x516b35[_0x394834(0x78f)](); + }, _0x49f262[_0x1fefb1(0x382)] = function () { + _0x13566d(); + }, _0x49f262['src'] = 'https://sd' + _0x1fefb1(0x720) + _0x1fefb1(0x524) + _0x1fefb1(0x5a4) + 'k-v1.js', document['head'][_0x1fefb1(0x76a) + 'd'](_0x49f262); + }); + } ['onInitiali' + _0x3aa122(0x341)]() { + const _0x51401e = _0x3aa122; + console[_0x51401e(0x7ec)](_0x51401e(0x3af) + _0x51401e(0x341)); + const _0x5c0cc7 = window[_0x51401e(0x703)][_0x51401e(0x258)]['getInstanc' + 'e'](); + _0x5c0cc7[_0x51401e(0x77f) + _0x51401e(0x564)](_0x51401e(0x392), () => { + const _0x2a7c09 = _0x51401e; + this['options'] && this[_0x2a7c09(0x3b7)][_0x2a7c09(0x21e) + 'Ad'] && (this[_0x2a7c09(0x3b7)]['beforeShow' + 'Ad'](), this['options'][_0x2a7c09(0x21e) + 'Ad'] = null); + }), _0x5c0cc7[_0x51401e(0x77f) + _0x51401e(0x564)](_0x51401e(0x2b4), () => { + const _0x5a4a84 = _0x51401e; + this['options'] && this[_0x5a4a84(0x3b7)][_0x5a4a84(0x21e) + 'Ad'] && (this[_0x5a4a84(0x3b7)][_0x5a4a84(0x21e) + 'Ad'](), this[_0x5a4a84(0x3b7)][_0x5a4a84(0x21e) + 'Ad'] = null), this[_0x5a4a84(0x3b7)] && this['options']['afterShowA' + 'd'] && (this[_0x5a4a84(0x3b7)][_0x5a4a84(0x5e2) + 'd'](), this[_0x5a4a84(0x3b7)][_0x5a4a84(0x5e2) + 'd'] = null); + }), _0x5c0cc7['addEventLi' + _0x51401e(0x564)](_0x51401e(0x4c7), () => { + const _0x427c3f = _0x51401e; + this[_0x427c3f(0x3b7)] && this[_0x427c3f(0x3b7)][_0x427c3f(0x794) + _0x427c3f(0x38a)] && (this['options'][_0x427c3f(0x794) + 'lete'](), this[_0x427c3f(0x3b7)][_0x427c3f(0x794) + _0x427c3f(0x38a)] = null), this[_0x427c3f(0x3b7)] && this[_0x427c3f(0x3b7)][_0x427c3f(0x5e2) + 'd'] && (this[_0x427c3f(0x3b7)]['afterShowA' + 'd'](), this[_0x427c3f(0x3b7)]['afterShowA' + 'd'] = null); + }); + } ['showInters' + _0x3aa122(0x84e)](_0x551217) { + const _0xf859fe = _0x3aa122; + this[_0xf859fe(0x3b7)] = _0x551217, window[_0xf859fe(0x703)][_0xf859fe(0x258)][_0xf859fe(0x610) + 'e']()[_0xf859fe(0x874)](); + } [_0x3aa122(0x1c3)](_0x4559af) { + const _0x66e285 = _0x3aa122; + this[_0x66e285(0x3b7)] = _0x4559af, window[_0x66e285(0x703)][_0x66e285(0x258)]['getInstanc' + 'e']()['requestAd'](_0x66e285(0x619)); + } [_0x3aa122(0x408) + _0x3aa122(0x58a)]() { + return !0x0; + } + } + _0x54eed7[_0x3aa122(0x395)] = _0x3f7b2c; + }, + 0x1ea1: (_0xcaafc1, _0x5a36d4) => { + 'use strict'; + const _0x233986 = _0xb80e; + Object[_0x233986(0x501) + 'erty'](_0x5a36d4, '__esModule', { + 'value': !0x0 + }); + class _0x1fb8e5 { + constructor() { + const _0x16b8e0 = _0x233986; + this[_0x16b8e0(0x57c)] = {}; + } + static[_0x233986(0x610) + 'e']() { + const _0x280826 = _0x233986; + return this['_gInstance'] || (this[_0x280826(0x43e)] = new _0x1fb8e5()), this[_0x280826(0x43e)]; + } [_0x233986(0x4b6) + 'r'](_0x33dfa0) { + const _0x139146 = _0x233986; + return !(!this[_0x139146(0x57c)] || !this['_events'][_0x33dfa0]); + } [_0x233986(0x853)](_0x55261b, _0x4395cf = null) { + const _0x547e77 = _0x233986; + if (!this['_events'] || !this['_events'][_0x55261b]) return !0x1; + var _0x23d6fe = this[_0x547e77(0x57c)][_0x55261b]; + if (_0x23d6fe[_0x547e77(0x1f0)]) _0x23d6fe[_0x547e77(0x6fa)] && delete this[_0x547e77(0x57c)][_0x55261b], null != _0x4395cf ? _0x23d6fe['runWith'](_0x4395cf) : _0x23d6fe[_0x547e77(0x1f0)](); + else { + for (var _0x2985b8 = 0x0, _0x1e8715 = _0x23d6fe[_0x547e77(0x33e)]; _0x2985b8 < _0x1e8715; _0x2985b8++) { + var _0x57b2b9 = _0x23d6fe[_0x2985b8]; + _0x57b2b9 && (null != _0x4395cf ? _0x57b2b9[_0x547e77(0x7bc)](_0x4395cf) : _0x57b2b9['run']()), _0x57b2b9 && !_0x57b2b9[_0x547e77(0x6fa)] || (_0x23d6fe[_0x547e77(0x6e7)](_0x2985b8, 0x1), _0x2985b8--, _0x1e8715--); + } + 0x0 === _0x23d6fe[_0x547e77(0x33e)] && this[_0x547e77(0x57c)] && delete this['_events'][_0x55261b]; + } + return !0x0; + } ['on'](_0x445abc, _0x4cd14d, _0x1ff3e9, _0x5b03df = null) { + const _0x1901d6 = _0x233986; + return this[_0x1901d6(0x246) + _0x1901d6(0x79e)](_0x445abc, _0x4cd14d, _0x1ff3e9, _0x5b03df, !0x1); + } [_0x233986(0x6fa)](_0x4b00b0, _0x5e7e27, _0x279cb5, _0x34b5cd = null) { + const _0xa3f20f = _0x233986; + return this[_0xa3f20f(0x246) + _0xa3f20f(0x79e)](_0x4b00b0, _0x5e7e27, _0x279cb5, _0x34b5cd, !0x0); + } [_0x233986(0x246) + _0x233986(0x79e)](_0x4aca68, _0x4d571e, _0xfbad9f, _0x3d08ea, _0x58caac, _0x4b54e1 = !0x0) { + const _0x23c664 = _0x233986; + _0x4b54e1 && this['off'](_0x4aca68, _0x4d571e, _0xfbad9f, _0x58caac); + var _0x2f1127 = _0x49da58['create'](_0x4d571e || this, _0xfbad9f, _0x3d08ea, _0x58caac); + this[_0x23c664(0x57c)] || (this['_events'] = {}); + var _0xd77391 = this['_events']; + return _0xd77391[_0x4aca68] ? _0xd77391[_0x4aca68][_0x23c664(0x1f0)] ? _0xd77391[_0x4aca68] = [_0xd77391[_0x4aca68], _0x2f1127] : _0xd77391[_0x4aca68][_0x23c664(0x2c4)](_0x2f1127) : _0xd77391[_0x4aca68] = _0x2f1127, this; + } [_0x233986(0x361)](_0xf8a134, _0x287ae5, _0x4a078e, _0x21f515 = !0x1) { + const _0x1f9a1d = _0x233986; + if (!this[_0x1f9a1d(0x57c)] || !this[_0x1f9a1d(0x57c)][_0xf8a134]) return this; + var _0x1184dc = this[_0x1f9a1d(0x57c)][_0xf8a134]; + if (null != _0x1184dc) { + if (_0x1184dc[_0x1f9a1d(0x1f0)]) _0x287ae5 && _0x1184dc[_0x1f9a1d(0x82f)] !== _0x287ae5 || null != _0x4a078e && _0x1184dc[_0x1f9a1d(0x2f1)] !== _0x4a078e || _0x21f515 && !_0x1184dc['once'] || (delete this['_events'][_0xf8a134], _0x1184dc[_0x1f9a1d(0x599)]()); + else { + for (var _0x1d239b = 0x0, _0x4f4c31 = 0x0, _0x2fb3d5 = _0x1184dc[_0x1f9a1d(0x33e)]; _0x4f4c31 < _0x2fb3d5; _0x4f4c31++) { + var _0x29f6e1 = _0x1184dc[_0x4f4c31]; + _0x29f6e1 ? !_0x29f6e1 || _0x287ae5 && _0x29f6e1[_0x1f9a1d(0x82f)] !== _0x287ae5 || null != _0x4a078e && _0x29f6e1[_0x1f9a1d(0x2f1)] !== _0x4a078e || _0x21f515 && !_0x29f6e1[_0x1f9a1d(0x6fa)] || (_0x1d239b++, _0x1184dc[_0x4f4c31] = null, _0x29f6e1[_0x1f9a1d(0x599)]()) : _0x1d239b++; + } + _0x1d239b === _0x2fb3d5 && delete this['_events'][_0xf8a134]; + } + } + return this; + } [_0x233986(0x6e6)](_0x2324cb = null) { + const _0x238bbe = _0x233986; + var _0x259420 = this['_events']; + if (!_0x259420) return this; + if (_0x2324cb) this[_0x238bbe(0x33a) + 'ndlers'](_0x259420[_0x2324cb]), delete _0x259420[_0x2324cb]; + else { + for (var _0x27c0c8 in _0x259420) this['_recoverHa' + 'ndlers'](_0x259420[_0x27c0c8]); + this[_0x238bbe(0x57c)] = null; + } + return this; + } [_0x233986(0x346) + 'er'](_0x76d376) { + const _0x2b3c38 = _0x233986; + if (_0x76d376 && this[_0x2b3c38(0x57c)]) { + for (var _0x461d54 in this[_0x2b3c38(0x57c)]) this[_0x2b3c38(0x361)](_0x461d54, _0x76d376, null); + } + return this; + } [_0x233986(0x33a) + _0x233986(0x407)](_0x4a3e4f) { + const _0x56c94d = _0x233986; + if (_0x4a3e4f) { + if (_0x4a3e4f[_0x56c94d(0x1f0)]) _0x4a3e4f['recover'](); + else { + for (var _0x5de0e0 = _0x4a3e4f[_0x56c94d(0x33e)] - 0x1; _0x5de0e0 > -0x1; _0x5de0e0--) _0x4a3e4f[_0x5de0e0] && (_0x4a3e4f[_0x5de0e0][_0x56c94d(0x599)](), _0x4a3e4f[_0x5de0e0] = null); + } + } + } + } + _0x5a36d4[_0x233986(0x395)] = _0x1fb8e5; + class _0x458fdf { + constructor(_0x415a84 = null, _0xc3e7b1 = null, _0x30e55c = null, _0x1ebc4f = !0x1) { + const _0x57a4dd = _0x233986; + this[_0x57a4dd(0x6fa)] = !0x1, this['_id'] = 0x0, this[_0x57a4dd(0x1f7)](_0x415a84, _0xc3e7b1, _0x30e55c, _0x1ebc4f); + } [_0x233986(0x1f7)](_0x2b0a6d, _0x1faec8, _0xe0922a, _0x26a21e = !0x1) { + const _0x4ddcdc = _0x233986; + return this[_0x4ddcdc(0x474)] = _0x458fdf[_0x4ddcdc(0x67c)]++, this['caller'] = _0x2b0a6d, this[_0x4ddcdc(0x2f1)] = _0x1faec8, this[_0x4ddcdc(0x4b4)] = _0xe0922a, this['once'] = _0x26a21e, this; + } [_0x233986(0x1f0)]() { + const _0x143de6 = _0x233986; + if (null == this[_0x143de6(0x2f1)]) return null; + var _0x310a74 = this[_0x143de6(0x474)], + _0x1ff27d = this[_0x143de6(0x2f1)][_0x143de6(0x28a)](this[_0x143de6(0x82f)], this[_0x143de6(0x4b4)]); + return this[_0x143de6(0x474)] === _0x310a74 && this[_0x143de6(0x6fa)] && this[_0x143de6(0x599)](), _0x1ff27d; + } [_0x233986(0x7bc)](_0x572c5e) { + const _0x800de = _0x233986; + if (null == this[_0x800de(0x2f1)]) return null; + var _0x5b3bb3 = this['_id']; + if (null == _0x572c5e) var _0x37f47a = this['method'][_0x800de(0x28a)](this['caller'], this[_0x800de(0x4b4)]); + else _0x37f47a = this[_0x800de(0x4b4)] || _0x572c5e['unshift'] ? this['args'] ? this['method'][_0x800de(0x28a)](this['caller'], this[_0x800de(0x4b4)][_0x800de(0x49b)](_0x572c5e)) : this['method']['apply'](this['caller'], _0x572c5e) : this[_0x800de(0x2f1)]['call'](this['caller'], _0x572c5e); + return this[_0x800de(0x474)] === _0x5b3bb3 && this[_0x800de(0x6fa)] && this[_0x800de(0x599)](), _0x37f47a; + } [_0x233986(0x5cf)]() { + const _0x2a1098 = _0x233986; + return this[_0x2a1098(0x82f)] = null, this[_0x2a1098(0x2f1)] = null, this[_0x2a1098(0x4b4)] = null, this; + } [_0x233986(0x599)]() { + const _0x27be5b = _0x233986; + this[_0x27be5b(0x474)] > 0x0 && (this[_0x27be5b(0x474)] = 0x0, _0x458fdf[_0x27be5b(0x819)][_0x27be5b(0x2c4)](this[_0x27be5b(0x5cf)]())); + } + static[_0x233986(0x36d)](_0x27114e, _0x1335a5, _0x53c03d = null, _0x29775f = !0x0) { + const _0x182879 = _0x233986; + return _0x458fdf[_0x182879(0x819)]['length'] ? _0x458fdf[_0x182879(0x819)][_0x182879(0x753)]()['setTo'](_0x27114e, _0x1335a5, _0x53c03d, _0x29775f) : new _0x458fdf(_0x27114e, _0x1335a5, _0x53c03d, _0x29775f); + } + } + _0x458fdf[_0x233986(0x819)] = [], _0x458fdf[_0x233986(0x67c)] = 0x1; + class _0x49da58 extends _0x458fdf { + constructor(_0x2f5e50, _0x21c4ee, _0x4ed913, _0x2739ac) { + super(_0x2f5e50, _0x21c4ee, _0x4ed913, _0x2739ac); + } [_0x233986(0x599)]() { + const _0xa00be8 = _0x233986; + this[_0xa00be8(0x474)] > 0x0 && (this[_0xa00be8(0x474)] = 0x0, _0x49da58[_0xa00be8(0x819)][_0xa00be8(0x2c4)](this[_0xa00be8(0x5cf)]())); + } + static['create'](_0x19d86d, _0x1d50b2, _0x716d29 = null, _0x1f3e0c = !0x0) { + const _0x20b5f8 = _0x233986; + return _0x49da58[_0x20b5f8(0x819)]['length'] ? _0x49da58[_0x20b5f8(0x819)]['pop']()[_0x20b5f8(0x1f7)](_0x19d86d, _0x1d50b2, _0x716d29, _0x1f3e0c) : new _0x49da58(_0x19d86d, _0x1d50b2, _0x716d29, _0x1f3e0c); + } + } + _0x49da58[_0x233986(0x819)] = []; + }, + 0x127c: function (_0x1cd60f, _0xf02c17, _0x325aba) { + 'use strict'; + const _0x37063e = _0xb80e; + var _0x50ce5d = this && this[_0x37063e(0x343) + _0x37063e(0x3a7)] || function (_0x25c92f) { + const _0x35f990 = _0x37063e; + return _0x25c92f && _0x25c92f[_0x35f990(0x772)] ? _0x25c92f : { + 'default': _0x25c92f + }; + }; + Object[_0x37063e(0x501) + 'erty'](_0xf02c17, _0x37063e(0x772), { + 'value': !0x0 + }); + const _0x361310 = _0x50ce5d(_0x325aba(0x1ea1)); + class _0x55451f { + static[_0x37063e(0x610) + 'e']() { + const _0x19afba = _0x37063e; + return this[_0x19afba(0x43e)] || (this[_0x19afba(0x43e)] = new _0x55451f()), this[_0x19afba(0x43e)]; + } [_0x37063e(0x1ea)]() { + return new Promise((_0x391f3d, _0x48b26d) => { + const _0x25fd41 = _0xb80e; + FBInstant[_0x25fd41(0x2ae) + _0x25fd41(0x219)]()['then'](() => { + _0x391f3d(!0x0); + }); + }); + } [_0x37063e(0x3e0) + _0x37063e(0x3ce)](_0x587e87) { + const _0x5d1d92 = _0x37063e; + FBInstant['setLoading' + _0x5d1d92(0x3ce)](_0x587e87), _0x587e87 >= 0x64 && FBInstant[_0x5d1d92(0x863) + 'sync'](); + } ['showInters' + _0x37063e(0x84e)](_0x1f0796) { + const _0x47a257 = _0x37063e; + let _0x125a29; + return FBInstant[_0x47a257(0x4ba) + _0x47a257(0x2d9) + 'nc'](_0x47a257(0x36a) + _0x47a257(0x695) + '5347614233' + '4')[_0x47a257(0x197)](_0x529cde => (_0x125a29 = _0x529cde, _0x125a29[_0x47a257(0x417)]()))[_0x47a257(0x197)](() => (_0x1f0796 && _0x1f0796[_0x47a257(0x21e) + 'Ad'] && (_0x1f0796['beforeShow' + 'Ad'](), _0x1f0796[_0x47a257(0x21e) + 'Ad'] = null), _0x125a29[_0x47a257(0x4da)]()))[_0x47a257(0x197)](() => { + const _0x20ed43 = _0x47a257; + _0x1f0796 && _0x1f0796[_0x20ed43(0x5e2) + 'd'] && (_0x1f0796['afterShowA' + 'd'](), _0x1f0796[_0x20ed43(0x5e2) + 'd'] = null); + })[_0x47a257(0x2c0)](() => { + const _0xd972ec = _0x47a257; + _0x1f0796 && _0x1f0796['afterShowA' + 'd'] && (_0x1f0796[_0xd972ec(0x5e2) + 'd'](), _0x1f0796['afterShowA' + 'd'] = null); + }), !0x0; + } [_0x37063e(0x408) + _0x37063e(0x58a)]() { + return !0x0; + } ['showReward'](_0x3b043c) { + const _0x145d94 = _0x37063e; + let _0x4dee44; + return this['rewardOpti' + 'ons'] = _0x3b043c, FBInstant['getRewarde' + _0x145d94(0x45c) + 'c'](_0x145d94(0x36a) + _0x145d94(0x695) + _0x145d94(0x7d9) + '6')['then'](_0x4f9fcc => (_0x4dee44 = _0x4f9fcc, _0x4dee44[_0x145d94(0x417)]()))[_0x145d94(0x197)](() => (this[_0x145d94(0x463) + 'fore'](), _0x4dee44[_0x145d94(0x4da)]()))[_0x145d94(0x197)](_0x3b9d5c => { + const _0x19b7a2 = _0x145d94; + console[_0x19b7a2(0x7ec)](_0x19b7a2(0x412) + _0x19b7a2(0x781) + _0x19b7a2(0x736), _0x3b9d5c), this[_0x19b7a2(0x69e) + _0x19b7a2(0x760)](), this[_0x19b7a2(0x538) + _0x19b7a2(0x75d)](); + })[_0x145d94(0x2c0)](_0x7f4e1e => { + const _0x135b83 = _0x145d94; + this['onRewardDi' + _0x135b83(0x4e3)](), this[_0x135b83(0x538) + _0x135b83(0x75d)](); + }), !0x0; + } [_0x37063e(0x463) + _0x37063e(0x245)]() { + const _0x2ca951 = _0x37063e; + _0x361310[_0x2ca951(0x395)]['getInstanc' + 'e']()['event'](_0x2ca951(0x21e) + 'Ad'), this[_0x2ca951(0x4aa) + 'ons'][_0x2ca951(0x21e) + 'Ad'] && this[_0x2ca951(0x4aa) + 'ons']['beforeShow' + 'Ad'](), this['rewardOpti' + _0x2ca951(0x336)][_0x2ca951(0x21e) + 'Ad'] = null; + } [_0x37063e(0x538) + 'ter']() { + const _0x46e725 = _0x37063e; + window[_0x46e725(0x1d8)](), this[_0x46e725(0x4aa) + 'ons'][_0x46e725(0x5e2) + 'd'] && this[_0x46e725(0x4aa) + _0x46e725(0x336)][_0x46e725(0x5e2) + 'd'](), this['rewardOpti' + 'ons'][_0x46e725(0x5e2) + 'd'] = null, _0x361310[_0x46e725(0x395)]['getInstanc' + 'e']()[_0x46e725(0x853)](_0x46e725(0x5e2) + 'd'); + } [_0x37063e(0x507) + _0x37063e(0x4e3)]() { + const _0x34fef1 = _0x37063e; + this[_0x34fef1(0x4aa) + _0x34fef1(0x336)]['rewardDism' + 'issed'] && this['rewardOpti' + _0x34fef1(0x336)]['rewardDism' + _0x34fef1(0x311)](), this[_0x34fef1(0x4aa) + _0x34fef1(0x336)][_0x34fef1(0x6fd) + 'issed'] = null; + } [_0x37063e(0x69e) + _0x37063e(0x760)]() { + const _0x1875f7 = _0x37063e; + this[_0x1875f7(0x4aa) + _0x1875f7(0x336)][_0x1875f7(0x794) + _0x1875f7(0x38a)] && this[_0x1875f7(0x4aa) + _0x1875f7(0x336)][_0x1875f7(0x794) + _0x1875f7(0x38a)](), this['rewardOpti' + _0x1875f7(0x336)][_0x1875f7(0x794) + _0x1875f7(0x38a)] = null; + } ['showBanner'](_0x4e6148) {} [_0x37063e(0x2da)](_0x448e8f) {} [_0x37063e(0x64c)](_0x4c8366) {} [_0x37063e(0x496)](_0x4d6019) {} + } + _0xf02c17[_0x37063e(0x395)] = _0x55451f; + }, + 0x42: function (_0x1aa047, _0x3ca6a4, _0x1792b2) { + 'use strict'; + const _0x4cd731 = _0xb80e; + var _0x539305 = this && this[_0x4cd731(0x343) + _0x4cd731(0x3a7)] || function (_0x5cbb64) { + return _0x5cbb64 && _0x5cbb64['__esModule'] ? _0x5cbb64 : { + 'default': _0x5cbb64 + }; + }; + Object['defineProp' + 'erty'](_0x3ca6a4, _0x4cd731(0x772), { + 'value': !0x0 + }); + const _0x1db362 = _0x1792b2(0x24b7), + _0x5e9472 = _0x1792b2(0x139f), + _0x2fdf3e = _0x1792b2(0x2235), + _0x4a4101 = _0x539305(_0x1792b2(0x4e)), + _0x1a07c2 = _0x539305(_0x1792b2(0x1c5c)), + _0x493d1a = _0x539305(_0x1792b2(0x92e)), + _0x7f84d0 = _0x539305(_0x1792b2(0x1680)), + _0x55cf42 = _0x539305(_0x1792b2(0x1ea1)); + class _0x13e00e extends _0x2fdf3e[_0x4cd731(0x327)] { + constructor() { + const _0x7dbd2a = _0x4cd731; + super(...arguments), this[_0x7dbd2a(0x201)] = !0x1, this[_0x7dbd2a(0x1f8) + _0x7dbd2a(0x37f)] = !0x1; + } [_0x4cd731(0x78f)]() { + return new Promise((_0x2a0beb, _0x59d3cc) => { + const _0x317833 = _0xb80e; + this['startupCom' + _0x317833(0x2ef)] = function () { + _0x2a0beb(!0x0); + }, this[_0x317833(0x678) + 'or'] = _0x59d3cc, window[_0x317833(0x61d)] = { + 'gameId': _0x7f84d0['default']['getInstanc' + 'e']()['get'](_0x5e9472[_0x317833(0x1ac)]['en_GAMEDIS' + _0x317833(0x3d0) + 'D']), + 'onEvent': this[_0x317833(0x321)][_0x317833(0x570)](this) + }; + var _0x1dd46b = document[_0x317833(0x81d) + _0x317833(0x871)](_0x317833(0x1bb)); + _0x1dd46b['onload'] = function () {}, _0x1dd46b[_0x317833(0x382)] = function () { + _0x59d3cc(); + }, _0x1dd46b['src'] = _0x317833(0x2c7) + _0x317833(0x47f) + _0x317833(0x1a8) + _0x317833(0x380) + 'ain.min.js', document[_0x317833(0x451)]['appendChil' + 'd'](_0x1dd46b); + }); + } ['onEvent'](_0x5a21a8) { + const _0x277a2b = _0x4cd731; + switch (_0x493d1a[_0x277a2b(0x395)][_0x277a2b(0x1e1)](_0x5a21a8), console[_0x277a2b(0x7ec)](_0x277a2b(0x5ce), _0x5a21a8), _0x5a21a8[_0x277a2b(0x1ab)]) { + case _0x277a2b(0x7a9): + this[_0x277a2b(0x678) + 'or'] && (this[_0x277a2b(0x678) + 'or'](), this['startupErr' + 'or'] = null); + break; + case _0x277a2b(0x7f6): + _0x277a2b(0x750) == _0x5a21a8['message'] && (this[_0x277a2b(0x3b7)] && this['options'][_0x277a2b(0x6fd) + _0x277a2b(0x311)] && this[_0x277a2b(0x3b7)]['rewardDism' + _0x277a2b(0x311)](), this['options']['rewardDism' + _0x277a2b(0x311)] = null), _0x1a07c2['default'][_0x277a2b(0x70c) + 'g'](); + break; + case 'SDK_GAME_S' + _0x277a2b(0x200): + this[_0x277a2b(0x201)] && (this['isReward'] = !0x1, this['preloadRew' + 'ard']()), this[_0x277a2b(0x87c) + _0x277a2b(0x700)](), _0x1a07c2[_0x277a2b(0x395)][_0x277a2b(0x70c) + 'g'](), _0x4a4101[_0x277a2b(0x395)]['getInstanc' + 'e']()[_0x277a2b(0x853)](_0x1db362['AdEvent'][_0x277a2b(0x5e2) + 'd']); + break; + case _0x277a2b(0x215) + _0x277a2b(0x5cb): + this[_0x277a2b(0x634) + _0x277a2b(0x5c3)](), _0x1a07c2[_0x277a2b(0x395)]['hideLoadin' + 'g'](), _0x4a4101[_0x277a2b(0x395)][_0x277a2b(0x610) + 'e']()['event'](_0x1db362[_0x277a2b(0x80e)][_0x277a2b(0x21e) + 'Ad']); + break; + case _0x277a2b(0x735): + case _0x277a2b(0x875) + _0x277a2b(0x608): + case 'CONTENT_RE' + 'SUME_REQUE' + _0x277a2b(0x287): + break; + case 'SDK_READY': + this[_0x277a2b(0x1a9) + 'plete'] && this[_0x277a2b(0x1a9) + _0x277a2b(0x2ef)](!0x0), this[_0x277a2b(0x1a9) + _0x277a2b(0x2ef)] = null, this['preloadRew' + _0x277a2b(0x58a)](); + break; + case _0x277a2b(0x74b) + _0x277a2b(0x658): + break; + case _0x277a2b(0x3c4) + 'D': + case _0x277a2b(0x6e2): + _0x1a07c2[_0x277a2b(0x395)]['hideLoadin' + 'g'](), this[_0x277a2b(0x3b7)] && this[_0x277a2b(0x3b7)][_0x277a2b(0x6fd) + _0x277a2b(0x311)] && this['options'][_0x277a2b(0x6fd) + 'issed'](), this['options'][_0x277a2b(0x6fd) + _0x277a2b(0x311)] = null, this[_0x277a2b(0x87c) + 'wAd'](); + break; + case 'SDK_REWARD' + 'ED_WATCH_C' + _0x277a2b(0x50c): + this[_0x277a2b(0x3b7)] && this[_0x277a2b(0x3b7)][_0x277a2b(0x794) + _0x277a2b(0x38a)] && (this[_0x277a2b(0x3b7)][_0x277a2b(0x794) + _0x277a2b(0x38a)](), this['options'][_0x277a2b(0x794) + _0x277a2b(0x38a)] = null); + case _0x277a2b(0x37b): + case _0x277a2b(0x706) + _0x277a2b(0x855): + _0x1a07c2['default'][_0x277a2b(0x70c) + 'g'](); + } + } ['showInters' + _0x4cd731(0x84e)](_0x1e69f9) { + const _0x322299 = _0x4cd731; + return this[_0x322299(0x3b7)] = 'function' == typeof _0x1e69f9 ? { + 'afterShowAd': _0x1e69f9 + } : _0x1e69f9, _0x1a07c2['default']['trace'](_0x322299(0x1fd) + 'd'), _0x1a07c2[_0x322299(0x395)][_0x322299(0x41c) + 'g'](), this[_0x322299(0x201)] = !0x1, this[_0x322299(0x634) + _0x322299(0x5c3)](), window[_0x322299(0x57e)]['showAd'](), !0x0; + } [_0x4cd731(0x634) + _0x4cd731(0x5c3)]() { + const _0x376bbc = _0x4cd731; + window[_0x376bbc(0x5ec)](); + const _0x375dbc = document[_0x376bbc(0x6b9) + _0x376bbc(0x312)](_0x376bbc(0x2ca) + _0x376bbc(0x3d3)); + _0x375dbc && (_0x375dbc['style'][_0x376bbc(0x30a)] = ''), this[_0x376bbc(0x3b7)] && this[_0x376bbc(0x3b7)]['beforeShow' + 'Ad'] && (this['options']['beforeShow' + 'Ad'](), this['options'][_0x376bbc(0x21e) + 'Ad'] = null), _0x4a4101[_0x376bbc(0x395)]['getInstanc' + 'e']()[_0x376bbc(0x853)](_0x1db362[_0x376bbc(0x80e)][_0x376bbc(0x21e) + 'Ad'], [{}]), _0x55cf42[_0x376bbc(0x395)][_0x376bbc(0x610) + 'e']()[_0x376bbc(0x853)](_0x376bbc(0x21e) + 'Ad'); + } [_0x4cd731(0x87c) + 'wAd']() { + const _0x3a851e = _0x4cd731; + window['focus'](); + const _0x364b00 = document[_0x3a851e(0x6b9) + 'ById'](_0x3a851e(0x2ca) + _0x3a851e(0x3d3)); + _0x364b00 && (_0x364b00[_0x3a851e(0x622)][_0x3a851e(0x30a)] = _0x3a851e(0x3b6)), this[_0x3a851e(0x3b7)] && this[_0x3a851e(0x3b7)][_0x3a851e(0x5e2) + 'd'] && (this[_0x3a851e(0x3b7)][_0x3a851e(0x5e2) + 'd'](), this['options'][_0x3a851e(0x5e2) + 'd'] = null), _0x4a4101[_0x3a851e(0x395)][_0x3a851e(0x610) + 'e']()['event'](_0x1db362[_0x3a851e(0x80e)][_0x3a851e(0x5e2) + 'd'], [{}]), _0x55cf42[_0x3a851e(0x395)][_0x3a851e(0x610) + 'e']()[_0x3a851e(0x853)](_0x3a851e(0x5e2) + 'd'); + } [_0x4cd731(0x1c3)](_0x39726d) { + const _0x51a139 = _0x4cd731; + _0x1a07c2[_0x51a139(0x395)][_0x51a139(0x41c) + 'g'](), this['options'] = _0x39726d, this[_0x51a139(0x201)] = !0x0, this[_0x51a139(0x634) + _0x51a139(0x5c3)](), window[_0x51a139(0x57e)]['showAd']('rewarded'); + } [_0x4cd731(0x519) + _0x4cd731(0x58a)]() { + const _0x9fa219 = _0x4cd731; + this['isCanShowR' + _0x9fa219(0x37f)] = !0x1; + const _0x233d9c = this; + setTimeout(function () { + const _0x38a6b5 = _0x9fa219; + window['gdsdk'][_0x38a6b5(0x55c)](_0x38a6b5(0x619))[_0x38a6b5(0x197)](function (_0xac2ac1) { + _0x233d9c['isCanShowR' + 'eward'] = !0x0; + })[_0x38a6b5(0x2c0)](function (_0x36779e) { + const _0x2ee441 = _0x38a6b5; + console[_0x2ee441(0x7ec)](_0x2ee441(0x4e9), _0x36779e), _0x233d9c[_0x2ee441(0x519) + _0x2ee441(0x58a)](); + }); + }, 0x1f4); + } [_0x4cd731(0x408) + _0x4cd731(0x58a)]() { + const _0x542b35 = _0x4cd731; + return this[_0x542b35(0x1f8) + _0x542b35(0x37f)]; + } + } + _0x3ca6a4[_0x4cd731(0x395)] = _0x13e00e; + }, + 0x2350: function (_0x29612b, _0x206e63, _0x1f1d7f) { + 'use strict'; + const _0x3e0861 = _0xb80e; + var _0x540b43 = this && this[_0x3e0861(0x343) + _0x3e0861(0x3a7)] || function (_0x2c1318) { + const _0x5d75e1 = _0x3e0861; + return _0x2c1318 && _0x2c1318[_0x5d75e1(0x772)] ? _0x2c1318 : { + 'default': _0x2c1318 + }; + }; + Object[_0x3e0861(0x501) + _0x3e0861(0x6a8)](_0x206e63, _0x3e0861(0x772), { + 'value': !0x0 + }); + const _0x1c8456 = _0x1f1d7f(0x139f), + _0x16134f = _0x540b43(_0x1f1d7f(0x1c5c)), + _0x594acd = _0x540b43(_0x1f1d7f(0x92e)), + _0x5c41d6 = _0x540b43(_0x1f1d7f(0x1680)); + class _0x277018 { + constructor() { + const _0x44f5ae = _0x3e0861; + this[_0x44f5ae(0x201)] = !0x1, this[_0x44f5ae(0x539)] = !0x1, this[_0x44f5ae(0x1f8) + _0x44f5ae(0x37f)] = !0x1; + } + static[_0x3e0861(0x610) + 'e']() { + const _0x5836fc = _0x3e0861; + return this[_0x5836fc(0x43e)] || (this[_0x5836fc(0x43e)] = new _0x277018()), this['_gInstance']; + } [_0x3e0861(0x78f)]() { + return new Promise((_0x29387c, _0x1743c8) => { + const _0x47b5c4 = _0xb80e; + this['startupCom' + 'plete'] = _0x29387c, this[_0x47b5c4(0x678) + 'or'] = _0x1743c8, window[_0x47b5c4(0x4db) + 'S'] = { + 'gameId': _0x5c41d6[_0x47b5c4(0x395)][_0x47b5c4(0x610) + 'e']()[_0x47b5c4(0x6f3)](_0x1c8456[_0x47b5c4(0x1ac)][_0x47b5c4(0x227) + 'ETIZEID']), + 'onEvent': this[_0x47b5c4(0x321)][_0x47b5c4(0x570)](this) + }; + var _0x400cfb = document['createElem' + _0x47b5c4(0x871)](_0x47b5c4(0x1bb)); + _0x400cfb[_0x47b5c4(0x303)] = function () {}, _0x400cfb[_0x47b5c4(0x382)] = function () { + _0x1743c8(); + }, _0x400cfb[_0x47b5c4(0x318)] = 'https://ap' + 'i.gamemone' + _0x47b5c4(0x7d6) + 'dk.js', document[_0x47b5c4(0x451)][_0x47b5c4(0x76a) + 'd'](_0x400cfb); + }); + } [_0x3e0861(0x321)](_0x20c4a8) { + const _0x51fa70 = _0x3e0861; + switch (_0x594acd[_0x51fa70(0x395)]['trace'](_0x20c4a8), _0x20c4a8[_0x51fa70(0x1ab)]) { + case 'SDK_ERROR': + this[_0x51fa70(0x678) + 'or'] && (this[_0x51fa70(0x678) + 'or'](), this[_0x51fa70(0x678) + 'or'] = null); + break; + case _0x51fa70(0x7f6): + case _0x51fa70(0x875) + _0x51fa70(0x608): + _0x16134f[_0x51fa70(0x395)][_0x51fa70(0x70c) + 'g'](); + break; + case _0x51fa70(0x83f) + _0x51fa70(0x200): + this[_0x51fa70(0x201)] && (this[_0x51fa70(0x539)] ? this['options'] && this[_0x51fa70(0x3b7)]['rewardComp' + _0x51fa70(0x38a)] && (this['options'][_0x51fa70(0x794) + _0x51fa70(0x38a)](), this[_0x51fa70(0x3b7)][_0x51fa70(0x794) + 'lete'] = null) : this[_0x51fa70(0x3b7)] && this[_0x51fa70(0x3b7)][_0x51fa70(0x6fd) + 'issed'] && (this[_0x51fa70(0x3b7)][_0x51fa70(0x6fd) + _0x51fa70(0x311)](), this[_0x51fa70(0x3b7)]['rewardDism' + _0x51fa70(0x311)] = null)), this[_0x51fa70(0x3b7)] && this[_0x51fa70(0x3b7)][_0x51fa70(0x5e2) + 'd'] && (this[_0x51fa70(0x3b7)][_0x51fa70(0x5e2) + 'd'](), this[_0x51fa70(0x3b7)][_0x51fa70(0x5e2) + 'd'] = null), _0x16134f['default'][_0x51fa70(0x70c) + 'g'](); + break; + case _0x51fa70(0x215) + 'AUSE': + this[_0x51fa70(0x3b7)] && this['options']['beforeShow' + 'Ad'] && (this['options'][_0x51fa70(0x21e) + 'Ad'](), this[_0x51fa70(0x3b7)][_0x51fa70(0x21e) + 'Ad'] = null), this['isReward'] && (this[_0x51fa70(0x539)] = !0x0), _0x16134f[_0x51fa70(0x395)][_0x51fa70(0x70c) + 'g'](); + break; + case _0x51fa70(0x735): + case _0x51fa70(0x875) + _0x51fa70(0x608): + case _0x51fa70(0x5de) + _0x51fa70(0x2dd) + _0x51fa70(0x287): + case _0x51fa70(0x74b) + _0x51fa70(0x658): + case _0x51fa70(0x3c4) + 'D': + case _0x51fa70(0x6e2): + case _0x51fa70(0x37b): + default: + break; + case _0x51fa70(0x656): + this[_0x51fa70(0x1a9) + _0x51fa70(0x2ef)] && this[_0x51fa70(0x1a9) + 'plete'](!0x0), this[_0x51fa70(0x1a9) + 'plete'] = null; + } + } [_0x3e0861(0x4c8) + 'titial'](_0x2c8b35) { + const _0x4fcca1 = _0x3e0861; + return _0x16134f[_0x4fcca1(0x395)]['showLoadin' + 'g'](), this[_0x4fcca1(0x3b7)] = _0x2c8b35, this['isReward'] = !0x1, this[_0x4fcca1(0x634) + _0x4fcca1(0x5c3)](), window[_0x4fcca1(0x28f)][_0x4fcca1(0x309)](), !0x0; + } ['showReward'](_0x1f7e2b) { + const _0x524404 = _0x3e0861; + _0x16134f[_0x524404(0x395)]['showLoadin' + 'g'](), this[_0x524404(0x3b7)] = _0x1f7e2b, this[_0x524404(0x201)] = !0x0, this[_0x524404(0x539)] = !0x1, this[_0x524404(0x634) + _0x524404(0x5c3)](), window[_0x524404(0x28f)][_0x524404(0x309)](_0x524404(0x619)); + } ['onBeforeSh' + 'owAd']() { + const _0x366961 = _0x3e0861; + this[_0x366961(0x3b7)] && this[_0x366961(0x3b7)]['beforeShow' + 'Ad'] && (this['options'][_0x366961(0x21e) + 'Ad'](), this[_0x366961(0x3b7)]['beforeShow' + 'Ad'] = null); + } [_0x3e0861(0x408) + _0x3e0861(0x58a)]() { + const _0x5eac23 = _0x3e0861; + return this[_0x5eac23(0x1f8) + _0x5eac23(0x37f)]; + } + } + _0x206e63[_0x3e0861(0x395)] = _0x277018; + }, + 0x84b: function (_0x2daed9, _0xc7af20, _0x315760) { + 'use strict'; + const _0xad89b3 = _0xb80e; + var _0x16c2ec = this && this['__importDe' + 'fault'] || function (_0x42c226) { + const _0x4e0484 = _0xb80e; + return _0x42c226 && _0x42c226[_0x4e0484(0x772)] ? _0x42c226 : { + 'default': _0x42c226 + }; + }; + Object[_0xad89b3(0x501) + _0xad89b3(0x6a8)](_0xc7af20, _0xad89b3(0x772), { + 'value': !0x0 + }); + const _0x4df4fc = _0x315760(0x2235), + _0x5ad7dd = _0x16c2ec(_0x315760(0x10e7)), + _0x4f5999 = _0x16c2ec(_0x315760(0x1c5c)); + class _0x4d59d1 extends _0x4df4fc[_0xad89b3(0x327)] { + constructor() { + const _0x51c542 = _0xad89b3; + super(...arguments), this[_0x51c542(0x47a)] = !0x0, this[_0x51c542(0x72e)] = _0x51c542(0x71e); + } [_0xad89b3(0x78f)]() { + return new Promise((_0xcf50e2, _0x5cff6d) => { + const _0x1a58c3 = _0xb80e, + _0x5075f6 = document[_0x1a58c3(0x81d) + _0x1a58c3(0x871)]('script'); + _0x5075f6[_0x1a58c3(0x303)] = () => { + const _0x39a197 = _0x1a58c3; + this[_0x39a197(0x28f)] = new window[(_0x39a197(0x50b))][(_0x39a197(0x3e1))]({ + 'cpid': this[_0x39a197(0x72e)], + 'sound': !0x1 + }), _0x5ad7dd[_0x39a197(0x395)]['getInstanc' + 'e']()['trace'](_0x39a197(0x4f5) + _0x39a197(0x78f)), this[_0x39a197(0x28f)]['ready'](() => { + const _0x7dc980 = _0x39a197; + this[_0x7dc980(0x28f)][_0x7dc980(0x35c) + _0x7dc980(0x6e3)](function () { + return { + 'coin': 0x2710, + 'level': 0x2710 + }; + }), _0x5ad7dd['default']['getInstanc' + 'e']()['trace']('kfreegame ' + _0x7dc980(0x7fb), this[_0x7dc980(0x72e)]), setInterval(this['query'][_0x7dc980(0x570)](this), 0x3e8), _0xcf50e2(!0x0); + }); + }, _0x5075f6['onerror'] = function () { + _0x5cff6d(); + }; + let _0x2af8e5 = new URLSearchParams(location[_0x1a58c3(0x30f)])[_0x1a58c3(0x6f3)](_0x1a58c3(0x5fb)); + _0x5075f6[_0x1a58c3(0x318)] = _0x2af8e5 ? 'https://ww' + _0x1a58c3(0x850) + _0x1a58c3(0x6ba) + _0x1a58c3(0x3dd) + '.js' : _0x1a58c3(0x88f) + 'w.kfreegam' + _0x1a58c3(0x6ba) + _0x1a58c3(0x194), document['head'][_0x1a58c3(0x76a) + 'd'](_0x5075f6), _0x4f5999[_0x1a58c3(0x395)]['ga']('UA-2030019' + _0x1a58c3(0x643)); + }); + } ['create'](_0x17f63c, _0xe75623) { + const _0x243e1d = _0xad89b3, + _0x14aced = {}; + _0x243e1d(0x292) != _0x17f63c && (_0x14aced[_0x243e1d(0x566)] = function () {}, _0x14aced['onAfter'] = function () { + const _0x51596b = _0x243e1d; + _0xe75623 && _0xe75623['afterShowA' + 'd'] && (_0xe75623[_0x51596b(0x5e2) + 'd'](), _0xe75623[_0x51596b(0x5e2) + 'd'] = null), window[_0x51596b(0x1d8)](); + }), _0x14aced[_0x243e1d(0x3cf)] = function () { + const _0x4d567a = _0x243e1d; + _0xe75623 && _0xe75623[_0x4d567a(0x5e2) + 'd'] && (_0xe75623[_0x4d567a(0x5e2) + 'd'](), _0xe75623[_0x4d567a(0x5e2) + 'd'] = null), window[_0x4d567a(0x1d8)](); + }, this[_0x243e1d(0x28f)][_0x243e1d(0x874)](_0x17f63c, _0x14aced); + } [_0xad89b3(0x4c8) + 'titial'](_0x578c24) { + const _0x1f8d0b = _0xad89b3; + _0x578c24 && _0x578c24[_0x1f8d0b(0x21e) + 'Ad'] && (_0x578c24[_0x1f8d0b(0x21e) + 'Ad'](), _0x578c24[_0x1f8d0b(0x21e) + 'Ad'] = null), _0x5ad7dd[_0x1f8d0b(0x395)][_0x1f8d0b(0x610) + 'e']()[_0x1f8d0b(0x1e1)](_0x1f8d0b(0x4c8) + 'titial'); + let _0x593aae = this[_0x1f8d0b(0x47a)] ? _0x1f8d0b(0x292) : 'next'; + this[_0x1f8d0b(0x36d)](_0x593aae, _0x578c24), this[_0x1f8d0b(0x47a)] = !0x1; + } ['showReward'](_0x49d373) { + const _0x5f5a79 = _0xad89b3; + if (this[_0x5f5a79(0x831)]) return this[_0x5f5a79(0x4aa) + _0x5f5a79(0x336)] = _0x49d373, this['showAdFn'](), this['showAdFn'] = null, window[_0x5f5a79(0x5ec)](), !0x0; + } ['query']() { + const _0x403196 = _0xad89b3; + if (this[_0x403196(0x831)]) return; + const _0x226eb1 = {}; + _0x226eb1['onBeforeRe' + _0x403196(0x530)] = _0x2aa21c => { + const _0x45064b = _0x403196; + this[_0x45064b(0x831)] = _0x2aa21c; + }, _0x226eb1[_0x403196(0x566)] = () => { + const _0x3c0b88 = _0x403196; + this['rewardOpti' + _0x3c0b88(0x336)] && (this[_0x3c0b88(0x4aa) + _0x3c0b88(0x336)][_0x3c0b88(0x21e) + 'Ad'] && this[_0x3c0b88(0x4aa) + 'ons'][_0x3c0b88(0x21e) + 'Ad'](), this[_0x3c0b88(0x4aa) + _0x3c0b88(0x336)][_0x3c0b88(0x21e) + 'Ad'] = null); + }, _0x226eb1['onAfter'] = () => { + const _0xee7d4e = _0x403196; + this[_0xee7d4e(0x4aa) + _0xee7d4e(0x336)] && (this[_0xee7d4e(0x4aa) + 'ons'][_0xee7d4e(0x5e2) + 'd'] && this[_0xee7d4e(0x4aa) + _0xee7d4e(0x336)][_0xee7d4e(0x5e2) + 'd'](), this[_0xee7d4e(0x4aa) + _0xee7d4e(0x336)][_0xee7d4e(0x5e2) + 'd'] = null); + }, _0x226eb1['onDismisse' + 'd'] = () => { + const _0x40b1bf = _0x403196; + this[_0x40b1bf(0x4aa) + _0x40b1bf(0x336)] && (this[_0x40b1bf(0x4aa) + _0x40b1bf(0x336)][_0x40b1bf(0x6fd) + _0x40b1bf(0x311)] && this[_0x40b1bf(0x4aa) + 'ons'][_0x40b1bf(0x6fd) + 'issed'](), this['rewardOpti' + _0x40b1bf(0x336)][_0x40b1bf(0x6fd) + _0x40b1bf(0x311)] = null); + }, _0x226eb1[_0x403196(0x55e)] = () => { + const _0xb436b0 = _0x403196; + this[_0xb436b0(0x4aa) + 'ons'] && (this[_0xb436b0(0x4aa) + 'ons'][_0xb436b0(0x794) + 'lete'] && this[_0xb436b0(0x4aa) + _0xb436b0(0x336)][_0xb436b0(0x794) + _0xb436b0(0x38a)](), this['rewardOpti' + _0xb436b0(0x336)][_0xb436b0(0x794) + _0xb436b0(0x38a)] = null); + }, _0x226eb1[_0x403196(0x3cf)] = () => { + const _0x5b7bf9 = _0x403196; + this[_0x5b7bf9(0x4aa) + 'ons'] && (this['rewardOpti' + _0x5b7bf9(0x336)]['afterShowA' + 'd'] && this['rewardOpti' + _0x5b7bf9(0x336)]['afterShowA' + 'd'](), this['rewardOpti' + 'ons']['afterShowA' + 'd'] = null), window['focus'](); + }, this[_0x403196(0x28f)][_0x403196(0x874)](_0x403196(0x3d9), _0x226eb1); + } [_0xad89b3(0x408) + _0xad89b3(0x58a)]() { + const _0xeee8c7 = _0xad89b3; + return !!this[_0xeee8c7(0x831)]; + } [_0xad89b3(0x590)](_0x44a56c, _0x2eef1c) { + const _0x5d6736 = _0xad89b3; + this[_0x5d6736(0x28f)][_0x5d6736(0x590)](_0x44a56c); + } + } + _0xc7af20[_0xad89b3(0x395)] = _0x4d59d1; + }, + 0x292: function (_0x29f6a5, _0x563a6f, _0x1b22dd) { + 'use strict'; + const _0x305820 = _0xb80e; + var _0x4b11b7 = this && this[_0x305820(0x343) + _0x305820(0x3a7)] || function (_0x48a033) { + const _0x1d7007 = _0x305820; + return _0x48a033 && _0x48a033[_0x1d7007(0x772)] ? _0x48a033 : { + 'default': _0x48a033 + }; + }; + Object['defineProp' + _0x305820(0x6a8)](_0x563a6f, _0x305820(0x772), { + 'value': !0x0 + }); + const _0x106b72 = _0x1b22dd(0x139f), + _0xe9e53d = _0x4b11b7(_0x1b22dd(0x1c5c)), + _0x406f04 = _0x4b11b7(_0x1b22dd(0x92e)), + _0xd67dd2 = _0x4b11b7(_0x1b22dd(0x1680)); + class _0x3c1aab { + constructor() { + const _0x2c5ba6 = _0x305820; + this[_0x2c5ba6(0x31c) + _0x2c5ba6(0x592)] = 0x0, this['interstiti' + _0x2c5ba6(0x439)] = !0x1, this[_0x2c5ba6(0x31c) + 'alTimerout'] = 0x0, this[_0x2c5ba6(0x4a6) + _0x2c5ba6(0x50d)] = 0x0; + } + static['getInstanc' + 'e']() { + const _0x2320c3 = _0x305820; + return this[_0x2320c3(0x43e)] || (this['_gInstance'] = new _0x3c1aab()), this[_0x2320c3(0x43e)]; + } [_0x305820(0x78f)]() { + return new Promise((_0x5cb89e, _0x2d203f) => { + const _0x1d8258 = _0xb80e; + var _0x3c5ae2 = document[_0x1d8258(0x81d) + _0x1d8258(0x871)](_0x1d8258(0x1bb)); + _0x3c5ae2[_0x1d8258(0x7ae)] = !0x0, _0xd67dd2[_0x1d8258(0x395)][_0x1d8258(0x610) + 'e']()[_0x1d8258(0x5b7)](_0x106b72['ConfigType'][_0x1d8258(0x2b0)], _0x1d8258(0x3fb) + _0x1d8258(0x568) + '003'), _0xd67dd2[_0x1d8258(0x395)][_0x1d8258(0x610) + 'e']()[_0x1d8258(0x5b7)](_0x106b72[_0x1d8258(0x1ac)][_0x1d8258(0x800) + _0x1d8258(0x3a1)], _0x1d8258(0x7b3)), _0x3c5ae2[_0x1d8258(0x1eb) + 'te'](_0x1d8258(0x71d) + _0x1d8258(0x5ff), _0xd67dd2[_0x1d8258(0x395)][_0x1d8258(0x610) + 'e']()['get'](_0x106b72['ConfigType'][_0x1d8258(0x2b0)])), _0x3c5ae2[_0x1d8258(0x1eb) + 'te']('data-ad-ch' + _0x1d8258(0x66b), _0xd67dd2[_0x1d8258(0x395)]['getInstanc' + 'e']()['get'](_0x106b72[_0x1d8258(0x1ac)][_0x1d8258(0x800) + 'ELID'])), _0x3c5ae2[_0x1d8258(0x1eb) + 'te'](_0x1d8258(0x77e) + 'equency-hi' + 'nt', '10s'); + try { + const _0x27929e = location[_0x1d8258(0x55a)], + _0x13768b = 'yof.com'; + _0x27929e['indexOf'](_0x13768b[_0x1d8258(0x68a) + 'e']()) < 0x0 && !_0xd67dd2[_0x1d8258(0x395)][_0x1d8258(0x610) + 'e']()[_0x1d8258(0x6f3)](_0x106b72['ConfigType'][_0x1d8258(0x440) + 'EN']) && (_0xd67dd2[_0x1d8258(0x395)]['getInstanc' + 'e']()['set'](_0x106b72['ConfigType'][_0x1d8258(0x440) + 'EN'], !0x0), _0x406f04['default'][_0x1d8258(0x363)](_0x1d8258(0x31b) + 'original v' + 'alue is Fa' + _0x1d8258(0x1a3) + _0x1d8258(0x75c) + _0x1d8258(0x892) + _0x1d8258(0x326) + _0x1d8258(0x896) + _0x1d8258(0x24e) + _0x13768b)); + } catch (_0x3e2697) { + _0x406f04[_0x1d8258(0x395)][_0x1d8258(0x1e1)](_0x1d8258(0x6b2) + _0x1d8258(0x52d), _0x3e2697); + } + _0x3c5ae2['onload'] = () => { + const _0x18b9df = _0x1d8258; + this[_0x18b9df(0x512) + 'rval'] = setInterval(this[_0x18b9df(0x86c)][_0x18b9df(0x570)](this), 0x3e8), this[_0x18b9df(0x64c)](), this['showBanner'](), _0x5cb89e(!0x0); + }, _0x3c5ae2[_0x1d8258(0x382)] = function () { + _0x2d203f(); + }, _0x3c5ae2[_0x1d8258(0x318)] = _0x1d8258(0x46a) + _0x1d8258(0x32e) + _0x1d8258(0x6bd) + 'ion.com/pa' + _0x1d8258(0x5c2) + _0x1d8258(0x4b9) + 'js', document['head'][_0x1d8258(0x76a) + 'd'](_0x3c5ae2), window[_0x1d8258(0x2e7) + 'e'] = window['adsbygoogl' + 'e'] || [], window[_0x1d8258(0x862)] = window[_0x1d8258(0x2e5)] = function (_0x1a069b) { + const _0x4a3941 = _0x1d8258; + window[_0x4a3941(0x2e7) + 'e']['push'](_0x1a069b); + }, window[_0x1d8258(0x2e5)]({ + 'preloadAdBreaks': 'on' + }), this[_0x1d8258(0x862)] = function (_0x1767ab) { + const _0x360af9 = _0x1d8258; + window[_0x360af9(0x2e7) + 'e'][_0x360af9(0x2c4)](_0x1767ab); + }, _0xe9e53d['default']['ga'](_0x1d8258(0x74e) + _0x1d8258(0x2e6)); + }); + } ['onUpdate']() { + const _0x1d5715 = _0x305820; + this[_0x1d5715(0x31c) + _0x1d5715(0x592)] >= 0x0 && this[_0x1d5715(0x31c) + _0x1d5715(0x592)]--, this[_0x1d5715(0x32a) + 'd'](); + } [_0x305820(0x309)](_0x2189df) { + const _0xc80548 = _0x305820; + this[_0xc80548(0x2da)](); + const _0x591523 = document['body'], + _0x210e79 = document[_0xc80548(0x81d) + _0xc80548(0x871)](_0xc80548(0x1bd)); + _0x591523[_0xc80548(0x76a) + 'd'](_0x210e79), _0x210e79[_0xc80548(0x49f)] = _0xc80548(0x2e7) + 'e', _0x210e79['id'] = _0xc80548(0x2e7) + _0xc80548(0x6c8), _0x210e79[_0xc80548(0x622)][_0xc80548(0x30a)] = 'block', _0x210e79[_0xc80548(0x622)]['width'] = '320px', _0x210e79['style'][_0xc80548(0x696)] = _0xc80548(0x52c), _0x210e79[_0xc80548(0x622)][_0xc80548(0x67d)] = _0xc80548(0x690), _0x210e79[_0xc80548(0x622)][_0xc80548(0x628)] = (window[_0xc80548(0x39a)] - 0x140) / 0x2 + '', _0x2189df && _0x2189df[_0xc80548(0x585)] ? _0xc80548(0x51c) == typeof _0x2189df['top'] ? _0x210e79[_0xc80548(0x622)][_0xc80548(0x585)] = _0x2189df[_0xc80548(0x585)] + 'px' : _0x210e79[_0xc80548(0x622)]['top'] = _0x2189df['top'] : _0x210e79[_0xc80548(0x622)]['bottom'] = '0', _0x210e79[_0xc80548(0x1eb) + 'te'](_0xc80548(0x71d) + 'ient', _0xd67dd2[_0xc80548(0x395)][_0xc80548(0x610) + 'e']()['get'](_0x106b72[_0xc80548(0x1ac)][_0xc80548(0x2b0)])), _0x210e79['setAttribu' + 'te'](_0xc80548(0x4dc) + 'ot', _0xc80548(0x37d)), _0x210e79[_0xc80548(0x1eb) + 'te']('data-full-' + _0xc80548(0x2e0) + _0xc80548(0x756), _0xc80548(0x45b)), _0xd67dd2['default'][_0xc80548(0x610) + 'e']()[_0xc80548(0x6f3)](_0x106b72[_0xc80548(0x1ac)]['en_DEBUGOP' + 'EN']) && (_0x210e79[_0xc80548(0x622)]['background'] = '#FFFFFF', _0x210e79[_0xc80548(0x1eb) + 'te']('data-adtes' + 't', 'on')), (window[_0xc80548(0x2e7) + 'e'] = window[_0xc80548(0x2e7) + 'e'] || [])[_0xc80548(0x2c4)]({}); + } [_0x305820(0x2da)](_0x404161) { + const _0x416d3e = _0x305820, + _0x3c25fe = document[_0x416d3e(0x6b9) + 'ById'](_0x416d3e(0x2e7) + _0x416d3e(0x6c8)); + _0x3c25fe && _0x3c25fe[_0x416d3e(0x877)](); + } ['showSplash'](_0x2d935d) { + const _0x2b5e24 = _0x305820; + clearTimeout(this[_0x2b5e24(0x31c) + 'alTimerout']), this[_0x2b5e24(0x4a6) + _0x2b5e24(0x50d)] > 0x5 || (this['reintersti' + _0x2b5e24(0x50d)]++, this['interstiti' + _0x2b5e24(0x3e9)] = setTimeout(() => { + const _0x15cef5 = _0x2b5e24; + this['interstiti' + 'aled'] || this[_0x15cef5(0x64c)](); + }, 0x3e8), this[_0x2b5e24(0x862)]({ + 'type': _0x2b5e24(0x565), + 'name': 'game', + 'beforeAd': () => { + const _0x41930 = _0x2b5e24; + window[_0x41930(0x5ec)](), clearTimeout(this[_0x41930(0x31c) + _0x41930(0x3e9)]), this[_0x41930(0x31c) + _0x41930(0x439)] = !0x0; + }, + 'afterAd': () => { + window['focus'](); + } + })); + } ['hideSplash'](_0x1da19d) {} [_0x305820(0x4c8) + _0x305820(0x84e)](_0x31c792) { + const _0x42a2a9 = _0x305820; + return this[_0x42a2a9(0x31c) + _0x42a2a9(0x439)] = !0x0, _0x31c792 && (_0x31c792[_0x42a2a9(0x21e) + 'Ad'] && _0x31c792[_0x42a2a9(0x21e) + 'Ad'](), _0x31c792['afterShowA' + 'd'] && _0x31c792[_0x42a2a9(0x5e2) + 'd'](), _0x31c792['beforeShow' + 'Ad'] = null, _0x31c792[_0x42a2a9(0x5e2) + 'd'] = null), !0x0; + } [_0x305820(0x408) + 'ard']() { + const _0x4e9aef = _0x305820; + return !!this[_0x4e9aef(0x831)]; + } [_0x305820(0x1c3)](_0x2e6287) { + const _0x2f09df = _0x305820; + return !!this[_0x2f09df(0x408) + 'ard']() && (_0x406f04[_0x2f09df(0x395)][_0x2f09df(0x1e1)](_0x2f09df(0x547) + ' Reward AD'), this[_0x2f09df(0x4aa) + _0x2f09df(0x336)] = _0x2e6287, this[_0x2f09df(0x831)](), this[_0x2f09df(0x831)] = null, !0x0); + } [_0x305820(0x32a) + 'd']() { + const _0x33e89b = _0x305820; + this[_0x33e89b(0x831)] || this[_0x33e89b(0x862)]({ + 'type': _0x33e89b(0x3d9), + 'name': 'reward', + 'beforeAd': this['onRewardBe' + _0x33e89b(0x1cc)]['bind'](this), + 'afterAd': this['onRewardAf' + _0x33e89b(0x550)][_0x33e89b(0x570)](this), + 'beforeReward': this[_0x33e89b(0x86f) + _0x33e89b(0x530)]['bind'](this), + 'adDismissed': this[_0x33e89b(0x507) + _0x33e89b(0x4e3)][_0x33e89b(0x570)](this), + 'adViewed': this['onRewardCo' + _0x33e89b(0x760)][_0x33e89b(0x570)](this) + }); + } [_0x305820(0x86f) + 'ward'](_0x5503bc) { + const _0x179004 = _0x305820; + _0x406f04[_0x179004(0x395)]['trace']('load Rewar' + _0x179004(0x40c) + _0x179004(0x73b)), this[_0x179004(0x831)] = _0x5503bc; + } ['onRewardBe' + _0x305820(0x1cc)]() { + const _0x4194d9 = _0x305820; + this[_0x4194d9(0x4aa) + 'ons']['beforeShow' + 'Ad'] && this[_0x4194d9(0x4aa) + _0x4194d9(0x336)][_0x4194d9(0x21e) + 'Ad'](), this[_0x4194d9(0x4aa) + 'ons'][_0x4194d9(0x21e) + 'Ad'] = null; + } [_0x305820(0x538) + 'terBreak']() { + const _0x194765 = _0x305820; + window[_0x194765(0x1d8)](), this[_0x194765(0x4aa) + 'ons']['afterShowA' + 'd'] && this['rewardOpti' + 'ons'][_0x194765(0x5e2) + 'd'](), this[_0x194765(0x4aa) + 'ons'][_0x194765(0x5e2) + 'd'] = null, this['showAdFn'] = null; + } [_0x305820(0x507) + 'smissed']() { + const _0xf6071d = _0x305820; + this['rewardOpti' + 'ons'][_0xf6071d(0x6fd) + _0xf6071d(0x311)] && this[_0xf6071d(0x4aa) + 'ons'][_0xf6071d(0x6fd) + _0xf6071d(0x311)](), this[_0xf6071d(0x4aa) + _0xf6071d(0x336)]['rewardDism' + _0xf6071d(0x311)] = null; + } [_0x305820(0x69e) + _0x305820(0x760)]() { + const _0x18e235 = _0x305820; + this[_0x18e235(0x4aa) + _0x18e235(0x336)][_0x18e235(0x794) + 'lete'] && this[_0x18e235(0x4aa) + _0x18e235(0x336)][_0x18e235(0x794) + _0x18e235(0x38a)](), this['rewardOpti' + 'ons'][_0x18e235(0x794) + _0x18e235(0x38a)] = null; + } + } + _0x563a6f['default'] = _0x3c1aab; + }, + 0xccb: function (_0x5ec576, _0x1e8f4c, _0x3007dc) { + 'use strict'; + const _0x325210 = _0xb80e; + var _0x5ef43f = this && this[_0x325210(0x343) + _0x325210(0x3a7)] || function (_0x30ad87) { + return _0x30ad87 && _0x30ad87['__esModule'] ? _0x30ad87 : { + 'default': _0x30ad87 + }; + }; + Object[_0x325210(0x501) + _0x325210(0x6a8)](_0x1e8f4c, _0x325210(0x772), { + 'value': !0x0 + }); + const _0x25d4b7 = _0x3007dc(0x139f), + _0x1763c6 = _0x3007dc(0x2235), + _0x7ffed2 = _0x5ef43f(_0x3007dc(0x1c5c)), + _0xb311f8 = _0x5ef43f(_0x3007dc(0x92e)), + _0x39e17d = _0x5ef43f(_0x3007dc(0x1680)), + _0x32a38b = _0x5ef43f(_0x3007dc(0x1ea1)); + class _0x3e90f6 extends _0x1763c6[_0x325210(0x327)] { + constructor() { + const _0x3aa697 = _0x325210; + super(...arguments), this[_0x3aa697(0x31c) + 'alCooldown'] = 0x5, this[_0x3aa697(0x2fc)] = { + 'showAdFn': null + }, this[_0x3aa697(0x1cb)] = { + 'showTimes': 0x0, + 'takeTurns': !0x1 + }; + } ['onMessage'](_0x390da7) { + const _0x24ffd0 = _0x325210, + _0x18d3f8 = _0x390da7[_0x24ffd0(0x411)] || {}; + switch (_0x18d3f8[_0x24ffd0(0x853)]) { + case _0x24ffd0(0x4c8) + _0x24ffd0(0x84e): + switch (_0x18d3f8[_0x24ffd0(0x411)]) { + case _0x24ffd0(0x21e) + 'Ad': + this[_0x24ffd0(0x3b7)] && this[_0x24ffd0(0x3b7)]['beforeShow' + 'Ad'] && (this[_0x24ffd0(0x1cb)][_0x24ffd0(0x609)]++, this[_0x24ffd0(0x3b7)][_0x24ffd0(0x21e) + 'Ad'](), this['options'][_0x24ffd0(0x21e) + 'Ad'] = null, window[_0x24ffd0(0x71b)] && window['adFeedback'][_0x24ffd0(0x549)]()); + break; + case _0x24ffd0(0x5e2) + 'd': + this[_0x24ffd0(0x3b7)] && this[_0x24ffd0(0x3b7)][_0x24ffd0(0x5e2) + 'd'] && (this['options'][_0x24ffd0(0x5e2) + 'd'](), this[_0x24ffd0(0x3b7)][_0x24ffd0(0x5e2) + 'd'] = null, window[_0x24ffd0(0x71b)] && window['adFeedback']['onAdDismis' + 's']()); + } + break; + case _0x24ffd0(0x371): + _0x18d3f8[_0x24ffd0(0x411)] && (window['yygGamesOw' + _0x24ffd0(0x7fe)] = _0x18d3f8['data'][_0x24ffd0(0x7ba) + _0x24ffd0(0x7fe)], this[_0x24ffd0(0x2fc)][_0x24ffd0(0x831)] = _0x18d3f8[_0x24ffd0(0x411)][_0x24ffd0(0x831)]); + break; + case _0x24ffd0(0x831): + this[_0x24ffd0(0x2fc)][_0x24ffd0(0x831)] = _0x18d3f8[_0x24ffd0(0x411)]; + break; + case _0x24ffd0(0x1c3): + switch (_0x18d3f8[_0x24ffd0(0x411)]) { + case _0x24ffd0(0x21e) + 'Ad': + this[_0x24ffd0(0x4aa) + 'ons'] && this[_0x24ffd0(0x4aa) + _0x24ffd0(0x336)][_0x24ffd0(0x21e) + 'Ad'] && (this['rewardOpti' + _0x24ffd0(0x336)][_0x24ffd0(0x21e) + 'Ad'](), this[_0x24ffd0(0x4aa) + _0x24ffd0(0x336)][_0x24ffd0(0x21e) + 'Ad'] = null, window['adFeedback'] && window[_0x24ffd0(0x71b)][_0x24ffd0(0x549)]()); + break; + case _0x24ffd0(0x5e2) + 'd': + this['rewardOpti' + _0x24ffd0(0x336)] && this[_0x24ffd0(0x4aa) + _0x24ffd0(0x336)]['afterShowA' + 'd'] && (this[_0x24ffd0(0x4aa) + _0x24ffd0(0x336)][_0x24ffd0(0x5e2) + 'd'](), this[_0x24ffd0(0x4aa) + _0x24ffd0(0x336)][_0x24ffd0(0x5e2) + 'd'] = null, window[_0x24ffd0(0x71b)] && window[_0x24ffd0(0x71b)][_0x24ffd0(0x7e6) + 's']()); + break; + case _0x24ffd0(0x794) + _0x24ffd0(0x38a): + this[_0x24ffd0(0x4aa) + _0x24ffd0(0x336)] && this[_0x24ffd0(0x4aa) + _0x24ffd0(0x336)]['rewardComp' + _0x24ffd0(0x38a)] && (this[_0x24ffd0(0x4aa) + _0x24ffd0(0x336)][_0x24ffd0(0x794) + _0x24ffd0(0x38a)](), this[_0x24ffd0(0x4aa) + _0x24ffd0(0x336)][_0x24ffd0(0x794) + _0x24ffd0(0x38a)] = null); + break; + case _0x24ffd0(0x6fd) + _0x24ffd0(0x311): + this[_0x24ffd0(0x4aa) + _0x24ffd0(0x336)] && this[_0x24ffd0(0x4aa) + _0x24ffd0(0x336)][_0x24ffd0(0x6fd) + _0x24ffd0(0x311)] && (this[_0x24ffd0(0x4aa) + _0x24ffd0(0x336)][_0x24ffd0(0x6fd) + _0x24ffd0(0x311)](), this[_0x24ffd0(0x4aa) + _0x24ffd0(0x336)]['rewardDism' + _0x24ffd0(0x311)] = null); + } + } + } [_0x325210(0x78f)]() { + return new Promise(async (_0x40cbe5, _0x3bfdd6) => { + const _0x1ad570 = _0xb80e; + if (window[_0x1ad570(0x77f) + 'stener'](_0x1ad570(0x3b3), this[_0x1ad570(0x441)]['bind'](this), !0x1), window[_0x1ad570(0x816)]) { + try { + window[_0x1ad570(0x816)]['postMessag' + 'e']({ + 'event': _0x1ad570(0x371) + }, '*'); + } catch (_0x1a3a21) { + _0xb311f8[_0x1ad570(0x395)][_0x1ad570(0x1e1)]('postMessag' + 'e error', _0x1a3a21); + } + await new Promise((_0x506c1e, _0x231296) => { + setTimeout(() => { + _0x506c1e(); + }, 0xc8); + }); + } + const _0x1752c2 = document['createElem' + _0x1ad570(0x871)](_0x1ad570(0x1bb)); + _0x1752c2['async'] = !0x0, _0x1752c2[_0x1ad570(0x1eb) + 'te']('data-ad-cl' + _0x1ad570(0x5ff), _0x39e17d[_0x1ad570(0x395)][_0x1ad570(0x610) + 'e']()[_0x1ad570(0x6f3)](_0x25d4b7[_0x1ad570(0x1ac)][_0x1ad570(0x2b0)])), _0x1752c2[_0x1ad570(0x1eb) + 'te']('data-ad-ch' + _0x1ad570(0x66b), _0x39e17d[_0x1ad570(0x395)][_0x1ad570(0x610) + 'e']()[_0x1ad570(0x6f3)](_0x25d4b7['ConfigType'][_0x1ad570(0x800) + _0x1ad570(0x3a1)])), _0x1752c2['setAttribu' + 'te'](_0x1ad570(0x77e) + _0x1ad570(0x5aa) + 'nt', '10s'); + try { + const _0x50b40b = location['hostname'], + _0x5719c5 = _0x1ad570(0x2eb); + this[_0x1ad570(0x1cb)]['takeTurns'] = !0x0, location[_0x1ad570(0x827)][_0x1ad570(0x80b)](_0x1ad570(0x2cf) + _0x1ad570(0x6e1)) > -0x1 || _0x50b40b[_0x1ad570(0x80b)](_0x5719c5['toLowerCas' + 'e']()) < 0x0 && !_0x39e17d[_0x1ad570(0x395)][_0x1ad570(0x610) + 'e']()['get'](_0x25d4b7[_0x1ad570(0x1ac)][_0x1ad570(0x440) + 'EN']) && (_0x39e17d[_0x1ad570(0x395)][_0x1ad570(0x610) + 'e']()[_0x1ad570(0x5b7)](_0x25d4b7['ConfigType'][_0x1ad570(0x440) + 'EN'], !0x0), _0xb311f8[_0x1ad570(0x395)][_0x1ad570(0x363)](_0x1ad570(0x31b) + 'original v' + _0x1ad570(0x842) + _0x1ad570(0x1a3) + 'o True bec' + 'ause the g' + _0x1ad570(0x326) + _0x1ad570(0x896) + 'st on ' + _0x5719c5)); + } catch (_0x4e3a96) { + _0xb311f8[_0x1ad570(0x395)]['trace'](_0x1ad570(0x6b2) + _0x1ad570(0x52d), _0x4e3a96); + } + _0x39e17d[_0x1ad570(0x395)]['getInstanc' + 'e']()[_0x1ad570(0x6f3)](_0x25d4b7[_0x1ad570(0x1ac)]['en_DEBUGOP' + 'EN']) && _0x1752c2['setAttribu' + 'te'](_0x1ad570(0x6b3) + _0x1ad570(0x3fe), 'on'), _0x1752c2[_0x1ad570(0x303)] = () => { + const _0x463e2b = _0x1ad570; + this[_0x463e2b(0x512) + _0x463e2b(0x3d7)] = setInterval(this[_0x463e2b(0x86c)][_0x463e2b(0x570)](this), 0x3e8), _0x40cbe5(!0x0); + }, _0x1752c2[_0x1ad570(0x382)] = function () { + _0x3bfdd6(); + }, _0x1752c2[_0x1ad570(0x318)] = _0x1ad570(0x46a) + _0x1ad570(0x32e) + _0x1ad570(0x6bd) + _0x1ad570(0x1ad) + _0x1ad570(0x5c2) + _0x1ad570(0x4b9) + 'js', document[_0x1ad570(0x451)][_0x1ad570(0x76a) + 'd'](_0x1752c2); + const _0x43fe1a = window; + _0x43fe1a[_0x1ad570(0x2e7) + 'e'] = _0x43fe1a['adsbygoogl' + 'e'] || [], _0x43fe1a[_0x1ad570(0x862)] = _0x43fe1a[_0x1ad570(0x2e5)] = function (_0x501d89) { + const _0x4a7d87 = _0x1ad570; + window[_0x4a7d87(0x2e7) + 'e'][_0x4a7d87(0x2c4)](_0x501d89); + }, _0x43fe1a['adConfig']({ + 'preloadAdBreaks': 'on' + }), this[_0x1ad570(0x862)] = function (_0x24d1a7) { + const _0x5cfc3c = _0x1ad570; + window[_0x5cfc3c(0x2e7) + 'e'][_0x5cfc3c(0x2c4)](_0x24d1a7); + }, _0x7ffed2['default']['ga'](_0x1ad570(0x74e) + _0x1ad570(0x460)), _0x7ffed2[_0x1ad570(0x395)]['ga'](_0x1ad570(0x505) + _0x1ad570(0x269)), _0x7ffed2[_0x1ad570(0x395)]['ga']('UA-1202418' + _0x1ad570(0x516)); + }); + } ['showInters' + _0x325210(0x84e)](_0x10cfd6) { + const _0x19b0bf = _0x325210; + try { + if ((new URLSearchParams(location[_0x19b0bf(0x30f)])[_0x19b0bf(0x6f3)]('platform') || '')[_0x19b0bf(0x80b)](_0x19b0bf(0x38c)) > -0x1) return _0x10cfd6 && _0x10cfd6[_0x19b0bf(0x21e) + 'Ad'] && (_0x10cfd6[_0x19b0bf(0x21e) + 'Ad'](), _0x10cfd6[_0x19b0bf(0x21e) + 'Ad'] = null), void(_0x10cfd6 && _0x10cfd6[_0x19b0bf(0x5e2) + 'd'] && (_0x10cfd6[_0x19b0bf(0x5e2) + 'd'](), _0x10cfd6['afterShowA' + 'd'] = null)); + } catch (_0x36757d) {} + if (_0x19b0bf(0x751) == typeof _0x10cfd6) { + const _0x3b0661 = _0x10cfd6; + _0x10cfd6 = { + 'beforeShowAd': new Function(), + 'afterShowAd': _0x3b0661 + }; + } + if (this[_0x19b0bf(0x3b7)] = _0x10cfd6, _0xb311f8[_0x19b0bf(0x395)][_0x19b0bf(0x20f) + 'Website']() && this[_0x19b0bf(0x1cb)][_0x19b0bf(0x609)] > 0x0) { + if (!this[_0x19b0bf(0x1cb)][_0x19b0bf(0x6c3)]) { + try { + window[_0x19b0bf(0x816)][_0x19b0bf(0x517) + 'e']({ + 'event': _0x19b0bf(0x4c8) + 'titial' + }, '*'); + } catch (_0x6a682e) { + console[_0x19b0bf(0x7ec)]('showInters' + 'titial err' + _0x19b0bf(0x5dd), _0x6a682e); + } + return; + } + if (_0xb311f8['default'][_0x19b0bf(0x1e1)](_0x19b0bf(0x7a7) + _0x19b0bf(0x1fb) + 'es', this['iConfig']['showTimes']), this[_0x19b0bf(0x1cb)][_0x19b0bf(0x609)] % 0x2 != 0x0) { + try { + window['parent']['postMessag' + 'e']({ + 'event': _0x19b0bf(0x4c8) + _0x19b0bf(0x84e) + }, '*'); + } catch (_0x2906df) { + console[_0x19b0bf(0x7ec)](_0x19b0bf(0x4c8) + 'titial err' + _0x19b0bf(0x5dd), _0x2906df); + } + return; + } + } + if (this[_0x19b0bf(0x31c) + _0x19b0bf(0x592)] > 0x0) return _0x10cfd6 && _0x10cfd6[_0x19b0bf(0x21e) + 'Ad'] && (_0x10cfd6[_0x19b0bf(0x21e) + 'Ad'](), _0x10cfd6[_0x19b0bf(0x21e) + 'Ad'] = null), _0x10cfd6 && _0x10cfd6[_0x19b0bf(0x5e2) + 'd'] && (_0x10cfd6[_0x19b0bf(0x5e2) + 'd'](), _0x10cfd6[_0x19b0bf(0x5e2) + 'd'] = null), void _0xb311f8[_0x19b0bf(0x395)]['trace']('requesting' + _0x19b0bf(0x1c8) + _0x19b0bf(0x80f) + _0x19b0bf(0x23d) + _0x19b0bf(0x355) + ':', this[_0x19b0bf(0x31c) + 'alCooldown']); + _0xb311f8[_0x19b0bf(0x395)]['trace'](_0x19b0bf(0x547) + _0x19b0bf(0x1c8) + _0x19b0bf(0x62a)); + let _0x47d7bc = _0x19b0bf(0x565); + return 0x0 == this['iConfig'][_0x19b0bf(0x609)] && (_0x47d7bc = 'preroll'), _0x10cfd6 && _0x10cfd6[_0x19b0bf(0x21e) + 'Ad'] && (_0x10cfd6[_0x19b0bf(0x21e) + 'Ad'](), _0x10cfd6['beforeShow' + 'Ad'] = null, _0x32a38b['default'][_0x19b0bf(0x610) + 'e']()['event'](_0x19b0bf(0x21e) + 'Ad')), 'preroll' == _0x47d7bc ? (window[_0x19b0bf(0x71b)] && window[_0x19b0bf(0x71b)][_0x19b0bf(0x549)](), void this['adBreak']({ + 'type': _0x47d7bc, + 'name': _0x19b0bf(0x2d0), + 'adBreakDone': _0x155c04 => { + const _0xc35765 = _0x19b0bf; + this['iConfig'][_0xc35765(0x609)]++, this[_0xc35765(0x31c) + _0xc35765(0x592)] = 0xf, _0xb311f8[_0xc35765(0x395)][_0xc35765(0x1e1)](_0xc35765(0x1f2) + 'e', _0x155c04), _0x10cfd6 && _0x10cfd6[_0xc35765(0x5e2) + 'd'] && (_0x10cfd6['afterShowA' + 'd'](), _0x10cfd6[_0xc35765(0x5e2) + 'd'] = null, _0x32a38b[_0xc35765(0x395)][_0xc35765(0x610) + 'e']()['event'](_0xc35765(0x5e2) + 'd')); + try { + window[_0xc35765(0x71b)] && window[_0xc35765(0x71b)]['onAdDismis' + 's'](); + } catch (_0x1969a4) {} + } + })) : (this[_0x19b0bf(0x862)]({ + 'type': _0x47d7bc, + 'name': 'game', + 'beforeAd': () => { + const _0x4207c7 = _0x19b0bf; + window[_0x4207c7(0x5ec)](), window[_0x4207c7(0x71b)] && window[_0x4207c7(0x71b)][_0x4207c7(0x549)](); + }, + 'afterAd': () => { + const _0x5908b8 = _0x19b0bf; + _0x7ffed2[_0x5908b8(0x395)][_0x5908b8(0x70c) + 'g'](), _0x10cfd6 && _0x10cfd6[_0x5908b8(0x5e2) + 'd'] && (_0x10cfd6['afterShowA' + 'd'](), _0x10cfd6[_0x5908b8(0x5e2) + 'd'] = null), this['interstiti' + _0x5908b8(0x592)] = 0xf, window[_0x5908b8(0x1d8)](), _0x32a38b[_0x5908b8(0x395)]['getInstanc' + 'e']()[_0x5908b8(0x853)](_0x5908b8(0x5e2) + 'd'); + }, + 'adBreakDone': _0x5af371 => { + const _0x1472df = _0x19b0bf; + this[_0x1472df(0x1cb)][_0x1472df(0x609)]++, _0xb311f8['default'][_0x1472df(0x1e1)](_0x1472df(0x1f2) + 'e', _0x5af371), _0x7ffed2['default'][_0x1472df(0x70c) + 'g'](), _0x10cfd6 && _0x10cfd6[_0x1472df(0x5e2) + 'd'] && (_0x10cfd6[_0x1472df(0x5e2) + 'd'](), _0x10cfd6[_0x1472df(0x5e2) + 'd'] = null, _0x32a38b[_0x1472df(0x395)][_0x1472df(0x610) + 'e']()[_0x1472df(0x853)](_0x1472df(0x5e2) + 'd')), window[_0x1472df(0x71b)] && window['adFeedback']['onAdDismis' + 's'](); + } + }), !0x0); + } ['canShowRew' + _0x325210(0x58a)]() { + const _0x2ac8c2 = _0x325210; + return _0xb311f8[_0x2ac8c2(0x395)][_0x2ac8c2(0x20f) + _0x2ac8c2(0x41a)]() ? this['rConfig'][_0x2ac8c2(0x831)] : !!this['showAdFn']; + } [_0x325210(0x1c3)](_0x363588) { + const _0x1b0270 = _0x325210; + if (!this[_0x1b0270(0x408) + _0x1b0270(0x58a)]()) return !0x1; + if (!_0xb311f8[_0x1b0270(0x395)][_0x1b0270(0x20f) + _0x1b0270(0x41a)]()) return _0xb311f8['default'][_0x1b0270(0x1e1)]('requesting' + _0x1b0270(0x1f9)), this['rewardOpti' + _0x1b0270(0x336)] = _0x363588, this[_0x1b0270(0x831)](), this[_0x1b0270(0x831)] = null, window[_0x1b0270(0x5ec)](), !0x0; + this[_0x1b0270(0x4aa) + 'ons'] = _0x363588; + try { + window[_0x1b0270(0x816)][_0x1b0270(0x517) + 'e']({ + 'event': _0x1b0270(0x1c3) + }, '*'); + } catch (_0x135457) { + console[_0x1b0270(0x7ec)]('showReward' + _0x1b0270(0x82e), _0x135457); + } + } [_0x325210(0x86c)]() { + const _0x33ce27 = _0x325210; + this[_0x33ce27(0x31c) + 'alCooldown'] >= 0x0 && this[_0x33ce27(0x31c) + _0x33ce27(0x592)]--, this['checkRewar' + 'd'](); + } [_0x325210(0x32a) + 'd']() { + const _0x528dd7 = _0x325210; + this[_0x528dd7(0x831)] || this[_0x528dd7(0x862)]({ + 'type': _0x528dd7(0x3d9), + 'name': _0x528dd7(0x3d9), + 'beforeAd': this[_0x528dd7(0x463) + _0x528dd7(0x1cc)][_0x528dd7(0x570)](this), + 'afterAd': this['onRewardAf' + _0x528dd7(0x550)]['bind'](this), + 'beforeReward': this[_0x528dd7(0x86f) + _0x528dd7(0x530)][_0x528dd7(0x570)](this), + 'adDismissed': this[_0x528dd7(0x507) + _0x528dd7(0x4e3)][_0x528dd7(0x570)](this), + 'adViewed': this[_0x528dd7(0x69e) + _0x528dd7(0x760)]['bind'](this) + }); + } [_0x325210(0x86f) + _0x325210(0x530)](_0x536882) { + const _0x2c5fd1 = _0x325210; + _0xb311f8[_0x2c5fd1(0x395)][_0x2c5fd1(0x1e1)]('load Rewar' + 'd AD Succe' + _0x2c5fd1(0x73b)), this[_0x2c5fd1(0x831)] = _0x536882; + } [_0x325210(0x463) + _0x325210(0x1cc)]() { + const _0xa66309 = _0x325210; + this[_0xa66309(0x4aa) + _0xa66309(0x336)][_0xa66309(0x21e) + 'Ad'] && this[_0xa66309(0x4aa) + _0xa66309(0x336)][_0xa66309(0x21e) + 'Ad'](), this[_0xa66309(0x4aa) + _0xa66309(0x336)][_0xa66309(0x21e) + 'Ad'] = null, window['adFeedback'] && window[_0xa66309(0x71b)][_0xa66309(0x549)](); + } ['onRewardAf' + 'terBreak']() { + const _0x5408a4 = _0x325210; + window[_0x5408a4(0x1d8)](), this[_0x5408a4(0x4aa) + _0x5408a4(0x336)]['afterShowA' + 'd'] && this[_0x5408a4(0x4aa) + 'ons'][_0x5408a4(0x5e2) + 'd'](), this[_0x5408a4(0x4aa) + _0x5408a4(0x336)][_0x5408a4(0x5e2) + 'd'] = null, this[_0x5408a4(0x831)] = null, window[_0x5408a4(0x71b)] && window[_0x5408a4(0x71b)][_0x5408a4(0x7e6) + 's'](); + } [_0x325210(0x507) + _0x325210(0x4e3)]() { + const _0x237f02 = _0x325210; + this[_0x237f02(0x4aa) + _0x237f02(0x336)][_0x237f02(0x6fd) + 'issed'] && this[_0x237f02(0x4aa) + _0x237f02(0x336)][_0x237f02(0x6fd) + 'issed'](), this[_0x237f02(0x4aa) + _0x237f02(0x336)][_0x237f02(0x6fd) + _0x237f02(0x311)] = null; + } [_0x325210(0x69e) + _0x325210(0x760)]() { + const _0x26104e = _0x325210; + this[_0x26104e(0x4aa) + _0x26104e(0x336)][_0x26104e(0x794) + _0x26104e(0x38a)] && this[_0x26104e(0x4aa) + _0x26104e(0x336)][_0x26104e(0x794) + _0x26104e(0x38a)](), this[_0x26104e(0x4aa) + 'ons'][_0x26104e(0x794) + _0x26104e(0x38a)] = null; + } [_0x325210(0x309)](_0x1e9a24) {} ['hideBanner'](_0x1893d1) {} ['showSplash'](_0x4aa008) { + const _0x35c8a8 = _0x325210, + _0x454482 = _0x39e17d[_0x35c8a8(0x395)]['getInstanc' + 'e']()[_0x35c8a8(0x6f3)](_0x25d4b7[_0x35c8a8(0x1ac)]['en_DEBUGOP' + 'EN']); + if (!_0x39e17d['default'][_0x35c8a8(0x610) + 'e']()['get'](_0x25d4b7[_0x35c8a8(0x1ac)][_0x35c8a8(0x885) + _0x35c8a8(0x562)]) && !_0x454482) return; + this[_0x35c8a8(0x496)](); + const _0x102963 = document[_0x35c8a8(0x6ed)], + _0xbcf868 = document[_0x35c8a8(0x81d) + _0x35c8a8(0x871)]('ins'); + _0x102963[_0x35c8a8(0x76a) + 'd'](_0xbcf868), _0xbcf868[_0x35c8a8(0x49f)] = 'adsbygoogl' + 'e', _0xbcf868['id'] = 'adsbygoogl' + _0x35c8a8(0x526), _0xbcf868[_0x35c8a8(0x622)]['display'] = _0x35c8a8(0x7c4), _0x4aa008 && _0x4aa008[_0x35c8a8(0x585)] ? _0x35c8a8(0x51c) == typeof _0x4aa008[_0x35c8a8(0x585)] ? _0xbcf868['style'][_0x35c8a8(0x5a3)] = _0x4aa008[_0x35c8a8(0x585)] + 'px' : _0xbcf868[_0x35c8a8(0x622)][_0x35c8a8(0x5a3)] = _0x4aa008['top'] : _0xbcf868[_0x35c8a8(0x622)][_0x35c8a8(0x5a3)] = _0x35c8a8(0x4b8), _0xbcf868[_0x35c8a8(0x622)]['marginTop'] = _0x4aa008 && _0x4aa008['top'] ? _0x4aa008['top'] + 'px' : '50%', _0xbcf868[_0x35c8a8(0x1eb) + 'te']('data-ad-cl' + _0x35c8a8(0x5ff), _0x35c8a8(0x5d9) + _0x35c8a8(0x372) + _0x35c8a8(0x3e3)), _0xbcf868[_0x35c8a8(0x1eb) + 'te'](_0x35c8a8(0x4dc) + 'ot', _0x35c8a8(0x25e)), _0xbcf868[_0x35c8a8(0x1eb) + 'te'](_0x35c8a8(0x289) + _0x35c8a8(0x77d), 'auto'), _0xbcf868[_0x35c8a8(0x1eb) + 'te'](_0x35c8a8(0x67a) + _0x35c8a8(0x2e0) + _0x35c8a8(0x756), _0x35c8a8(0x45b)), _0x39e17d[_0x35c8a8(0x395)][_0x35c8a8(0x610) + 'e']()['get'](_0x25d4b7[_0x35c8a8(0x1ac)][_0x35c8a8(0x440) + 'EN']) && _0xbcf868[_0x35c8a8(0x1eb) + 'te'](_0x35c8a8(0x2fe) + 't', 'on'); + const _0x3505ec = window; + return (_0x3505ec['adsbygoogl' + 'e'] = _0x3505ec[_0x35c8a8(0x2e7) + 'e'] || [])[_0x35c8a8(0x2c4)]({}), !0x0; + } ['hideSplash'](_0xce267) { + const _0x2a3697 = _0x325210, + _0x11121d = document['getElement' + 'ById'](_0x2a3697(0x2e7) + _0x2a3697(0x526)); + return _0x11121d && _0x11121d[_0x2a3697(0x877)](), !0x0; + } + } + _0x1e8f4c[_0x325210(0x395)] = _0x3e90f6; + }, + 0x1554: function (_0xbba540, _0x1c3b9a, _0x36cb55) { + 'use strict'; + const _0x81f6f6 = _0xb80e; + var _0x512334 = this && this[_0x81f6f6(0x343) + _0x81f6f6(0x3a7)] || function (_0x948f32) { + const _0x2748d9 = _0x81f6f6; + return _0x948f32 && _0x948f32[_0x2748d9(0x772)] ? _0x948f32 : { + 'default': _0x948f32 + }; + }; + Object['defineProp' + 'erty'](_0x1c3b9a, '__esModule', { + 'value': !0x0 + }); + const _0x3e3cff = _0x512334(_0x36cb55(0x92e)); + class _0x338292 { + constructor() { + const _0x27d9c6 = _0x81f6f6; + this['showInters' + 'titialCoun' + 't'] = 0x0, this[_0x27d9c6(0x31c) + _0x27d9c6(0x3e9)] = 0x0, this[_0x27d9c6(0x31c) + 'alCooldown'] = 0x0; + } + static[_0x81f6f6(0x610) + 'e']() { + const _0x1e2cd9 = _0x81f6f6; + return this[_0x1e2cd9(0x43e)] || (this['_gInstance'] = new _0x338292()), this[_0x1e2cd9(0x43e)]; + } [_0x81f6f6(0x78f)]() { + return new Promise((_0x2e1da7, _0x1417e3) => { + const _0x86ec13 = _0xb80e; + var _0x43f4ea = document[_0x86ec13(0x81d) + _0x86ec13(0x871)](_0x86ec13(0x1bb)); + _0x43f4ea[_0x86ec13(0x7ae)] = !0x1, _0x43f4ea[_0x86ec13(0x303)] = () => { + const _0x67a3b4 = _0x86ec13; + _0x3e3cff[_0x67a3b4(0x395)][_0x67a3b4(0x1e1)](_0x67a3b4(0x2ac)), vigoo[_0x67a3b4(0x5d6)](_0x218272 => { + const _0x531781 = _0x67a3b4; + _0x3e3cff[_0x531781(0x395)]['trace'](_0x531781(0x26c), _0x218272), _0x2e1da7(!0x0); + }); + }, _0x43f4ea['onerror'] = function () { + _0x1417e3(); + }, _0x43f4ea['src'] = _0x86ec13(0x4e6) + _0x86ec13(0x7e7) + _0x86ec13(0x826) + _0x86ec13(0x6c1), document[_0x86ec13(0x451)][_0x86ec13(0x76a) + 'd'](_0x43f4ea); + const _0x33d620 = window; + _0x33d620[_0x86ec13(0x6f0)] = _0x33d620[_0x86ec13(0x6f0)] || [], _0x33d620['gtag'] = function (_0x3e9d7a, _0x4e39d2) { + const _0x2cab46 = _0x86ec13; + _0x33d620[_0x2cab46(0x6f0)][_0x2cab46(0x2c4)](arguments); + }, _0x33d620[_0x86ec13(0x532)]('js', new Date()), _0x33d620[_0x86ec13(0x532)]('config', _0x86ec13(0x74e) + '82-3'); + var _0x52032e = document[_0x86ec13(0x81d) + _0x86ec13(0x871)](_0x86ec13(0x1bb)); + _0x52032e[_0x86ec13(0x7ae)] = !0x0, _0x52032e[_0x86ec13(0x318)] = _0x86ec13(0x88f) + 'w.googleta' + _0x86ec13(0x2b3) + 'om/gtag/js' + _0x86ec13(0x308) + _0x86ec13(0x250), document[_0x86ec13(0x451)]['appendChil' + 'd'](_0x52032e); + }); + } [_0x81f6f6(0x4c8) + _0x81f6f6(0x84e)](_0x53071d) { + const _0x4bf552 = _0x81f6f6; + return _0x53071d && _0x53071d[_0x4bf552(0x21e) + 'Ad'] && (_0x53071d[_0x4bf552(0x21e) + 'Ad'](), _0x53071d['beforeShow' + 'Ad'] = null), _0x3e3cff['default'][_0x4bf552(0x1e1)]('requesting' + ' Interstit' + 'ial AD'), vigoo[_0x4bf552(0x5c8) + _0x4bf552(0x2ea)]('下一关', _0x5fda24 => { + const _0x4a62a6 = _0x4bf552; + _0x5fda24[_0x4a62a6(0x836)], console[_0x4a62a6(0x7ec)](_0x4a62a6(0x5c8) + _0x4a62a6(0x2ea), _0x5fda24), _0x53071d && _0x53071d[_0x4a62a6(0x5e2) + 'd'] && (_0x53071d['afterShowA' + 'd'](), _0x53071d[_0x4a62a6(0x5e2) + 'd'] = null); + }), !0x0; + } [_0x81f6f6(0x408) + _0x81f6f6(0x58a)]() { + return !0x0; + } [_0x81f6f6(0x1c3)](_0x12f51f) { + const _0x3caf02 = _0x81f6f6; + return !!this['canShowRew' + _0x3caf02(0x58a)]() && (_0x3e3cff[_0x3caf02(0x395)]['trace'](_0x3caf02(0x547) + _0x3caf02(0x1f9)), _0x12f51f && _0x12f51f['beforeShow' + 'Ad'] && (_0x12f51f[_0x3caf02(0x21e) + 'Ad'](), _0x12f51f[_0x3caf02(0x21e) + 'Ad'] = null), window['blur'](), vigoo[_0x3caf02(0x3d2) + 'tionVideoA' + 'dv'](_0x1af166 => { + const _0x540223 = _0x3caf02; + 0x3 == _0x1af166['type'] ? _0x12f51f && _0x12f51f['rewardComp' + 'lete'] && (_0x12f51f[_0x540223(0x794) + _0x540223(0x38a)](), _0x12f51f[_0x540223(0x794) + 'lete'] = null) : _0x12f51f && _0x12f51f[_0x540223(0x794) + _0x540223(0x38a)] && (_0x12f51f[_0x540223(0x6fd) + 'issed'](), _0x12f51f[_0x540223(0x6fd) + 'issed'] = null), _0x12f51f && _0x12f51f[_0x540223(0x5e2) + 'd'] && (_0x12f51f[_0x540223(0x5e2) + 'd'](), _0x12f51f['afterShowA' + 'd'] = null); + }), !0x0); + } ['onUpdate']() { + const _0x2e9282 = _0x81f6f6; + this[_0x2e9282(0x31c) + 'alCooldown'] >= 0x0 && this[_0x2e9282(0x31c) + _0x2e9282(0x592)]--, this['checkRewar' + 'd'](); + } [_0x81f6f6(0x32a) + 'd']() { + const _0x19ac0f = _0x81f6f6; + this[_0x19ac0f(0x831)] || this[_0x19ac0f(0x862)]({ + 'type': _0x19ac0f(0x3d9), + 'name': _0x19ac0f(0x3d9), + 'beforeAd': this[_0x19ac0f(0x463) + _0x19ac0f(0x1cc)][_0x19ac0f(0x570)](this), + 'afterAd': this['onRewardAf' + 'terBreak']['bind'](this), + 'beforeReward': this['onBeforeRe' + 'ward'][_0x19ac0f(0x570)](this), + 'adDismissed': this[_0x19ac0f(0x507) + 'smissed'][_0x19ac0f(0x570)](this), + 'adViewed': this[_0x19ac0f(0x69e) + 'mplete']['bind'](this) + }); + } [_0x81f6f6(0x86f) + _0x81f6f6(0x530)](_0xaa681) { + const _0x23f25b = _0x81f6f6; + _0x3e3cff[_0x23f25b(0x395)][_0x23f25b(0x1e1)](_0x23f25b(0x2c3) + _0x23f25b(0x40c) + 'ssful'), this[_0x23f25b(0x831)] = _0xaa681; + } [_0x81f6f6(0x463) + _0x81f6f6(0x1cc)]() { + const _0x4a08ac = _0x81f6f6; + this['rewardOpti' + _0x4a08ac(0x336)][_0x4a08ac(0x21e) + 'Ad'] && this['rewardOpti' + 'ons']['beforeShow' + 'Ad'](), this['rewardOpti' + _0x4a08ac(0x336)][_0x4a08ac(0x21e) + 'Ad'] = null; + } ['onRewardAf' + _0x81f6f6(0x550)]() { + const _0x1949c8 = _0x81f6f6; + window[_0x1949c8(0x1d8)](), this[_0x1949c8(0x4aa) + 'ons']['afterShowA' + 'd'] && this[_0x1949c8(0x4aa) + _0x1949c8(0x336)][_0x1949c8(0x5e2) + 'd'](), this['rewardOpti' + 'ons'][_0x1949c8(0x5e2) + 'd'] = null, this[_0x1949c8(0x831)] = null; + } ['onRewardDi' + 'smissed']() { + const _0x4e99c4 = _0x81f6f6; + this[_0x4e99c4(0x4aa) + 'ons'][_0x4e99c4(0x6fd) + _0x4e99c4(0x311)] && this[_0x4e99c4(0x4aa) + 'ons'][_0x4e99c4(0x6fd) + _0x4e99c4(0x311)](), this[_0x4e99c4(0x4aa) + 'ons'][_0x4e99c4(0x6fd) + _0x4e99c4(0x311)] = null; + } [_0x81f6f6(0x69e) + _0x81f6f6(0x760)]() { + const _0x436426 = _0x81f6f6; + this[_0x436426(0x4aa) + _0x436426(0x336)][_0x436426(0x794) + _0x436426(0x38a)] && this['rewardOpti' + _0x436426(0x336)][_0x436426(0x794) + _0x436426(0x38a)](), this['rewardOpti' + 'ons']['rewardComp' + 'lete'] = null; + } ['showBanner'](_0x19887d) {} [_0x81f6f6(0x2da)](_0x12ee35) {} [_0x81f6f6(0x64c)](_0x6d9e90) {} [_0x81f6f6(0x496)](_0x4999c5) {} + } + _0x1c3b9a[_0x81f6f6(0x395)] = _0x338292; + }, + 0x5f7: function (_0x38ed3c, _0x3faacc, _0x5847ed) { + 'use strict'; + const _0x215793 = _0xb80e; + var _0x2d482a = this && this[_0x215793(0x343) + 'fault'] || function (_0x5ba0f1) { + return _0x5ba0f1 && _0x5ba0f1['__esModule'] ? _0x5ba0f1 : { + 'default': _0x5ba0f1 + }; + }; + Object['defineProp' + _0x215793(0x6a8)](_0x3faacc, _0x215793(0x772), { + 'value': !0x0 + }); + const _0xde598c = _0x5847ed(0x139f), + _0x4333c2 = _0x5847ed(0x2235), + _0x29958a = _0x2d482a(_0x5847ed(0x836)), + _0x3eec11 = _0x2d482a(_0x5847ed(0x1c5c)), + _0x3a3af5 = _0x2d482a(_0x5847ed(0x92e)), + _0x153938 = _0x2d482a(_0x5847ed(0x1680)), + _0xaf9e14 = _0x2d482a(_0x5847ed(0x1ea1)); + class _0x282750 extends _0x4333c2['Singleton'] { + constructor() { + const _0xa609f = _0x215793; + super(...arguments), this['showInters' + _0xa609f(0x404) + 't'] = 0x0, this[_0xa609f(0x31c) + _0xa609f(0x592)] = 0x0, this['isReady'] = !0x1, this[_0xa609f(0x2fc)] = { + 'showAdFn': null + }, this[_0xa609f(0x1cb)] = { + 'showTimes': null + }; + } [_0x215793(0x441)](_0x177ee2) { + const _0x3f847 = _0x215793, + _0xd9d1db = _0x177ee2['data'] || {}; + switch (_0xd9d1db[_0x3f847(0x853)]) { + case _0x3f847(0x4c8) + _0x3f847(0x84e): + switch (_0xd9d1db[_0x3f847(0x411)]) { + case _0x3f847(0x21e) + 'Ad': + this[_0x3f847(0x3b7)] && this['options']['beforeShow' + 'Ad'] && (this[_0x3f847(0x3b7)][_0x3f847(0x21e) + 'Ad'](), this['options']['beforeShow' + 'Ad'] = null); + break; + case 'afterShowA' + 'd': + this[_0x3f847(0x3b7)] && this[_0x3f847(0x3b7)][_0x3f847(0x5e2) + 'd'] && (this['options'][_0x3f847(0x5e2) + 'd'](), this[_0x3f847(0x3b7)]['afterShowA' + 'd'] = null); + } + break; + case _0x3f847(0x371): + _0xd9d1db[_0x3f847(0x411)] && (window['yygGamesOw' + _0x3f847(0x7fe)] = _0xd9d1db[_0x3f847(0x411)][_0x3f847(0x7ba) + _0x3f847(0x7fe)], this['rConfig']['showAdFn'] = _0xd9d1db[_0x3f847(0x411)][_0x3f847(0x831)]); + break; + case _0x3f847(0x831): + this[_0x3f847(0x2fc)][_0x3f847(0x831)] = _0xd9d1db['data']; + break; + case _0x3f847(0x1c3): + switch (_0xd9d1db[_0x3f847(0x411)]) { + case _0x3f847(0x21e) + 'Ad': + this[_0x3f847(0x4aa) + _0x3f847(0x336)] && this[_0x3f847(0x4aa) + 'ons'][_0x3f847(0x21e) + 'Ad'] && (this['rewardOpti' + 'ons']['beforeShow' + 'Ad'](), this[_0x3f847(0x4aa) + 'ons'][_0x3f847(0x21e) + 'Ad'] = null); + break; + case 'afterShowA' + 'd': + this[_0x3f847(0x4aa) + _0x3f847(0x336)] && this[_0x3f847(0x4aa) + _0x3f847(0x336)][_0x3f847(0x5e2) + 'd'] && (this[_0x3f847(0x4aa) + 'ons'][_0x3f847(0x5e2) + 'd'](), this['rewardOpti' + _0x3f847(0x336)][_0x3f847(0x5e2) + 'd'] = null); + break; + case 'rewardComp' + _0x3f847(0x38a): + this[_0x3f847(0x4aa) + _0x3f847(0x336)] && this[_0x3f847(0x4aa) + _0x3f847(0x336)][_0x3f847(0x794) + 'lete'] && (this['rewardOpti' + _0x3f847(0x336)]['rewardComp' + _0x3f847(0x38a)](), this[_0x3f847(0x4aa) + _0x3f847(0x336)][_0x3f847(0x794) + _0x3f847(0x38a)] = null); + break; + case _0x3f847(0x6fd) + _0x3f847(0x311): + this[_0x3f847(0x4aa) + 'ons'] && this[_0x3f847(0x4aa) + _0x3f847(0x336)][_0x3f847(0x6fd) + _0x3f847(0x311)] && (this[_0x3f847(0x4aa) + _0x3f847(0x336)][_0x3f847(0x6fd) + _0x3f847(0x311)](), this[_0x3f847(0x4aa) + _0x3f847(0x336)][_0x3f847(0x6fd) + _0x3f847(0x311)] = null); + } + } + } ['startup']() { + return new Promise(async (_0x1c8c5e, _0x273bd9) => { + const _0x522579 = _0xb80e; + if (window[_0x522579(0x77f) + _0x522579(0x564)]('message', this[_0x522579(0x441)][_0x522579(0x570)](this), !0x1), window[_0x522579(0x816)]) { + try { + window[_0x522579(0x816)][_0x522579(0x517) + 'e']({ + 'event': _0x522579(0x371) + }, '*'); + } catch (_0x4b7ca2) { + _0x3a3af5[_0x522579(0x395)]['trace'](_0x522579(0x517) + _0x522579(0x5a7), _0x4b7ca2); + } + await new Promise((_0x1c0903, _0x112288) => { + setTimeout(() => { + _0x1c0903(); + }, 0xc8); + }); + } + const _0x47d427 = document[_0x522579(0x81d) + _0x522579(0x871)](_0x522579(0x1bb)); + _0x47d427[_0x522579(0x7ae)] = !0x0, _0x47d427[_0x522579(0x1eb) + 'te'](_0x522579(0x71d) + _0x522579(0x5ff), _0x522579(0x822) + '6100897128' + '261'), _0x47d427['setAttribu' + 'te']('data-ad-ch' + _0x522579(0x66b), _0x522579(0x445)), _0x47d427['setAttribu' + 'te'](_0x522579(0x77e) + _0x522579(0x5aa) + 'nt', _0x522579(0x59e)), _0x153938[_0x522579(0x395)]['getInstanc' + 'e']()[_0x522579(0x6f3)](_0xde598c[_0x522579(0x1ac)][_0x522579(0x440) + 'EN']) && _0x47d427[_0x522579(0x1eb) + 'te'](_0x522579(0x6b3) + _0x522579(0x3fe), 'on'), _0x47d427['onload'] = () => { + const _0x5c87a0 = _0x522579; + this[_0x5c87a0(0x512) + _0x5c87a0(0x3d7)] = setInterval(this[_0x5c87a0(0x86c)][_0x5c87a0(0x570)](this), 0x3e8), _0x1c8c5e(!0x0); + }, _0x47d427['onerror'] = function () { + _0x273bd9(); + }, _0x47d427[_0x522579(0x318)] = 'https://pa' + _0x522579(0x32e) + _0x522579(0x6bd) + _0x522579(0x1ad) + _0x522579(0x5c2) + _0x522579(0x4b9) + 'js', document['head'][_0x522579(0x76a) + 'd'](_0x47d427), window[_0x522579(0x2e7) + 'e'] = window[_0x522579(0x2e7) + 'e'] || [], window['adBreak'] = window['adConfig'] = function (_0x4a0f4e) { + const _0x214640 = _0x522579; + window[_0x214640(0x2e7) + 'e']['push'](_0x4a0f4e); + }, window[_0x522579(0x2e5)]({ + 'preloadAdBreaks': 'on', + 'onReady': _0x47b8ab => { + const _0x4def63 = _0x522579; + this[_0x4def63(0x867)] = !0x0, _0x3a3af5[_0x4def63(0x395)][_0x4def63(0x1e1)](_0x4def63(0x880) + _0x4def63(0x63d)); + } + }), this[_0x522579(0x862)] = function (_0x25744c) { + const _0x3591a4 = _0x522579; + window[_0x3591a4(0x2e7) + 'e'][_0x3591a4(0x2c4)](_0x25744c); + }, _0x3eec11[_0x522579(0x395)]['ga'](_0x522579(0x74e) + _0x522579(0x216)); + }); + } ['showInters' + 'titial'](_0x4b2c94) { + const _0xb5df15 = _0x215793; + if (_0x3a3af5[_0xb5df15(0x395)][_0xb5df15(0x1e1)](_0xb5df15(0x76d) + _0xb5df15(0x833), _0x3eec11[_0xb5df15(0x395)][_0xb5df15(0x55a)](document[_0xb5df15(0x42f)])), _0x3a3af5[_0xb5df15(0x395)][_0xb5df15(0x20f) + _0xb5df15(0x41a)]() && this['iConfig']['showTimes'] > 0x0) { + this['options'] = _0x4b2c94; + try { + window[_0xb5df15(0x816)]['postMessag' + 'e']({ + 'event': 'showInters' + _0xb5df15(0x84e) + }, '*'); + } catch (_0x21f7fc) { + console[_0xb5df15(0x7ec)](_0xb5df15(0x4c8) + _0xb5df15(0x35a) + _0xb5df15(0x5dd), _0x21f7fc); + } + return; + } + if (this[_0xb5df15(0x31c) + 'alCooldown'] > 0x0) return _0x4b2c94 && _0x4b2c94['beforeShow' + 'Ad'] && (_0x4b2c94['beforeShow' + 'Ad'](), _0x4b2c94[_0xb5df15(0x21e) + 'Ad'] = null), _0x4b2c94 && _0x4b2c94[_0xb5df15(0x5e2) + 'd'] && (_0x4b2c94[_0xb5df15(0x5e2) + 'd'](), _0x4b2c94[_0xb5df15(0x5e2) + 'd'] = null), void _0x3a3af5[_0xb5df15(0x395)][_0xb5df15(0x1e1)](_0xb5df15(0x547) + _0xb5df15(0x1c8) + _0xb5df15(0x80f) + _0xb5df15(0x23d) + ', ignored ' + ':', this[_0xb5df15(0x31c) + _0xb5df15(0x592)]); + if (_0x3a3af5['default'][_0xb5df15(0x1e1)](_0xb5df15(0x547) + _0xb5df15(0x1c8) + 'ial AD'), this[_0xb5df15(0x3b7)] && this[_0xb5df15(0x3b7)]['afterShowA' + 'd']) return; + let _0x201053 = 'next'; + if (0x0 == this[_0xb5df15(0x4c8) + _0xb5df15(0x404) + 't'] && (_0x201053 = 'preroll', this['showInters' + _0xb5df15(0x404) + 't']++), _0x3eec11[_0xb5df15(0x395)][_0xb5df15(0x41c) + 'g'](), this[_0xb5df15(0x867)]) return clearTimeout(this[_0xb5df15(0x41c) + 'g']), this[_0xb5df15(0x41c) + 'g'] = setTimeout(() => { + const _0x2ee02d = _0xb5df15; + this[_0x2ee02d(0x31c) + _0x2ee02d(0x592)] = 0x1e, _0x4b2c94 && _0x4b2c94['beforeShow' + 'Ad'] && (_0x4b2c94[_0x2ee02d(0x21e) + 'Ad'](), _0x4b2c94['beforeShow' + 'Ad'] = null, _0xaf9e14[_0x2ee02d(0x395)][_0x2ee02d(0x610) + 'e']()['event']('beforeShow' + 'Ad')), _0x4b2c94 && _0x4b2c94[_0x2ee02d(0x5e2) + 'd'] && (_0x4b2c94[_0x2ee02d(0x5e2) + 'd'](), _0x4b2c94[_0x2ee02d(0x5e2) + 'd'] = null), _0x3eec11[_0x2ee02d(0x395)]['hideLoadin' + 'g'](); + }, 0x3e8), this[_0xb5df15(0x3b7)] = _0x4b2c94, _0xb5df15(0x292) == _0x201053 ? (_0x4b2c94 && _0x4b2c94[_0xb5df15(0x21e) + 'Ad'] && (_0x4b2c94[_0xb5df15(0x21e) + 'Ad'](), _0x4b2c94['beforeShow' + 'Ad'] = null, _0xaf9e14[_0xb5df15(0x395)][_0xb5df15(0x610) + 'e']()[_0xb5df15(0x853)]('beforeShow' + 'Ad')), clearTimeout(this[_0xb5df15(0x41c) + 'g']), void this[_0xb5df15(0x862)]({ + 'type': _0x201053, + 'name': 'game', + 'adBreakDone': _0x27b2cb => { + const _0xafa78b = _0xb5df15; + this[_0xafa78b(0x1cb)][_0xafa78b(0x609)]++, this['interstiti' + _0xafa78b(0x592)] = 0x1e, _0x3a3af5[_0xafa78b(0x395)]['trace']('adBreakDon' + 'e', _0x27b2cb), _0x3eec11[_0xafa78b(0x395)]['hideLoadin' + 'g'](), _0x4b2c94 && _0x4b2c94[_0xafa78b(0x5e2) + 'd'] && (_0x4b2c94[_0xafa78b(0x5e2) + 'd'](), _0x4b2c94[_0xafa78b(0x5e2) + 'd'] = null, _0xaf9e14['default'][_0xafa78b(0x610) + 'e']()[_0xafa78b(0x853)](_0xafa78b(0x5e2) + 'd')); + } + })) : (this[_0xb5df15(0x862)]({ + 'type': _0x201053, + 'name': 'game', + 'beforeAd': () => { + const _0x2bbce0 = _0xb5df15; + _0x4b2c94 && _0x4b2c94[_0x2bbce0(0x21e) + 'Ad'] && (_0x4b2c94['beforeShow' + 'Ad'](), _0x4b2c94[_0x2bbce0(0x21e) + 'Ad'] = null, _0xaf9e14['default'][_0x2bbce0(0x610) + 'e']()[_0x2bbce0(0x853)](_0x2bbce0(0x21e) + 'Ad')), clearTimeout(this['showLoadin' + 'g']), window['blur'](); + }, + 'afterAd': () => { + const _0x38f914 = _0xb5df15; + _0x3a3af5[_0x38f914(0x395)]['trace']('afterAd'), _0x3eec11[_0x38f914(0x395)][_0x38f914(0x70c) + 'g'](), _0x4b2c94 && _0x4b2c94['afterShowA' + 'd'] && (_0x4b2c94[_0x38f914(0x5e2) + 'd'](), _0x4b2c94[_0x38f914(0x5e2) + 'd'] = null), this[_0x38f914(0x31c) + _0x38f914(0x592)] = 0x1e, window[_0x38f914(0x1d8)](), _0xaf9e14['default'][_0x38f914(0x610) + 'e']()['event'](_0x38f914(0x5e2) + 'd'); + }, + 'adBreakDone': _0xd36297 => { + const _0x3af22b = _0xb5df15; + _0x3a3af5[_0x3af22b(0x395)][_0x3af22b(0x1e1)](_0x3af22b(0x1f2) + 'e', _0xd36297), clearTimeout(this[_0x3af22b(0x41c) + 'g']), _0x3eec11['default'][_0x3af22b(0x70c) + 'g'](), _0x4b2c94 && _0x4b2c94[_0x3af22b(0x21e) + 'Ad'] && (_0x4b2c94[_0x3af22b(0x21e) + 'Ad'](), _0x4b2c94[_0x3af22b(0x21e) + 'Ad'] = null, _0xaf9e14[_0x3af22b(0x395)][_0x3af22b(0x610) + 'e']()[_0x3af22b(0x853)](_0x3af22b(0x21e) + 'Ad')), _0x4b2c94 && _0x4b2c94[_0x3af22b(0x5e2) + 'd'] && (_0x4b2c94[_0x3af22b(0x5e2) + 'd'](), _0x4b2c94[_0x3af22b(0x5e2) + 'd'] = null, _0xaf9e14[_0x3af22b(0x395)][_0x3af22b(0x610) + 'e']()[_0x3af22b(0x853)]('afterShowA' + 'd')); + } + }), !0x0); + _0x29958a['default']['getInstanc' + 'e']()[_0xb5df15(0x4c8) + _0xb5df15(0x84e)]({ + 'beforeAd': () => { + const _0x5690b8 = _0xb5df15; + _0x3eec11['default'][_0x5690b8(0x70c) + 'g'](), _0x4b2c94 && _0x4b2c94[_0x5690b8(0x21e) + 'Ad'] && (_0x4b2c94[_0x5690b8(0x21e) + 'Ad'](), _0x4b2c94[_0x5690b8(0x21e) + 'Ad'] = null, _0xaf9e14[_0x5690b8(0x395)][_0x5690b8(0x610) + 'e']()[_0x5690b8(0x853)](_0x5690b8(0x21e) + 'Ad')), clearTimeout(this[_0x5690b8(0x41c) + 'g']), window[_0x5690b8(0x5ec)](); + }, + 'afterAd': () => { + const _0x56c7a5 = _0xb5df15; + _0x3a3af5[_0x56c7a5(0x395)][_0x56c7a5(0x1e1)]('afterAd'), _0x3eec11['default']['hideLoadin' + 'g'](), _0x4b2c94 && _0x4b2c94[_0x56c7a5(0x5e2) + 'd'] && (_0x4b2c94[_0x56c7a5(0x5e2) + 'd'](), _0x4b2c94[_0x56c7a5(0x5e2) + 'd'] = null), this[_0x56c7a5(0x31c) + _0x56c7a5(0x592)] = 0x1e, window[_0x56c7a5(0x1d8)](), _0xaf9e14['default'][_0x56c7a5(0x610) + 'e']()[_0x56c7a5(0x853)](_0x56c7a5(0x5e2) + 'd'); + } + }); + } [_0x215793(0x408) + _0x215793(0x58a)]() { + const _0xbcfa06 = _0x215793; + return _0x3a3af5[_0xbcfa06(0x395)]['onYYGGames' + _0xbcfa06(0x41a)]() ? this[_0xbcfa06(0x2fc)][_0xbcfa06(0x831)] : !this[_0xbcfa06(0x867)] || !!this[_0xbcfa06(0x831)]; + } [_0x215793(0x1c3)](_0x44926e) { + const _0x18916d = _0x215793; + if (!this['canShowRew' + _0x18916d(0x58a)]()) return !0x1; + if (_0x3a3af5[_0x18916d(0x395)][_0x18916d(0x20f) + _0x18916d(0x41a)]()) { + this['rewardOpti' + _0x18916d(0x336)] = _0x44926e; + try { + window['parent']['postMessag' + 'e']({ + 'event': _0x18916d(0x1c3) + }, '*'); + } catch (_0x55fc98) { + console['log'](_0x18916d(0x1c3) + _0x18916d(0x82e), _0x55fc98); + } + } else { + if (_0x3a3af5[_0x18916d(0x395)][_0x18916d(0x1e1)](_0x18916d(0x547) + _0x18916d(0x1f9)), this[_0x18916d(0x4aa) + _0x18916d(0x336)] = _0x44926e, this[_0x18916d(0x867)]) return this[_0x18916d(0x831)](), this[_0x18916d(0x831)] = null, window[_0x18916d(0x5ec)](), !0x0; + _0x29958a[_0x18916d(0x395)][_0x18916d(0x610) + 'e']()[_0x18916d(0x1c3)]({ + 'beforeAd': () => { + const _0x20f9aa = _0x18916d; + _0x3eec11[_0x20f9aa(0x395)][_0x20f9aa(0x70c) + 'g'](), _0x44926e && _0x44926e[_0x20f9aa(0x21e) + 'Ad'] && (_0x44926e[_0x20f9aa(0x21e) + 'Ad'](), _0x44926e[_0x20f9aa(0x21e) + 'Ad'] = null, _0xaf9e14['default'][_0x20f9aa(0x610) + 'e']()[_0x20f9aa(0x853)](_0x20f9aa(0x21e) + 'Ad')), clearTimeout(this[_0x20f9aa(0x41c) + 'g']), window['blur'](); + }, + 'afterAd': () => { + const _0x1e4e86 = _0x18916d; + _0x3a3af5[_0x1e4e86(0x395)]['trace'](_0x1e4e86(0x86a)), _0x3eec11[_0x1e4e86(0x395)][_0x1e4e86(0x70c) + 'g'](), _0x44926e && _0x44926e[_0x1e4e86(0x5e2) + 'd'] && (_0x44926e['afterShowA' + 'd'](), _0x44926e['afterShowA' + 'd'] = null), this[_0x1e4e86(0x31c) + _0x1e4e86(0x592)] = 0x1e, window[_0x1e4e86(0x1d8)](), _0xaf9e14[_0x1e4e86(0x395)][_0x1e4e86(0x610) + 'e']()['event'](_0x1e4e86(0x5e2) + 'd'); + }, + 'adDismissed': this[_0x18916d(0x507) + _0x18916d(0x4e3)][_0x18916d(0x570)](this), + 'adViewed': this[_0x18916d(0x69e) + _0x18916d(0x760)][_0x18916d(0x570)](this) + }); + } + } [_0x215793(0x86c)]() { + const _0x58fd93 = _0x215793; + this[_0x58fd93(0x31c) + _0x58fd93(0x592)] >= 0x0 && this[_0x58fd93(0x31c) + _0x58fd93(0x592)]--, this[_0x58fd93(0x32a) + 'd'](); + } [_0x215793(0x32a) + 'd']() { + const _0x1863bd = _0x215793; + this['showAdFn'] || this[_0x1863bd(0x862)]({ + 'type': 'reward', + 'name': _0x1863bd(0x3d9), + 'beforeAd': this[_0x1863bd(0x463) + 'foreBreak']['bind'](this), + 'afterAd': this[_0x1863bd(0x538) + _0x1863bd(0x550)][_0x1863bd(0x570)](this), + 'beforeReward': this[_0x1863bd(0x86f) + 'ward'][_0x1863bd(0x570)](this), + 'adDismissed': this[_0x1863bd(0x507) + _0x1863bd(0x4e3)]['bind'](this), + 'adViewed': this['onRewardCo' + _0x1863bd(0x760)][_0x1863bd(0x570)](this) + }); + } [_0x215793(0x86f) + 'ward'](_0x3cc31d) { + const _0x22d58e = _0x215793; + _0x3a3af5[_0x22d58e(0x395)]['trace'](_0x22d58e(0x2c3) + 'd AD Succe' + 'ssful'), this[_0x22d58e(0x831)] = _0x3cc31d; + } [_0x215793(0x463) + _0x215793(0x1cc)]() { + const _0x1dde82 = _0x215793; + _0xaf9e14['default'][_0x1dde82(0x610) + 'e']()[_0x1dde82(0x853)](_0x1dde82(0x21e) + 'Ad'), this[_0x1dde82(0x4aa) + 'ons'][_0x1dde82(0x21e) + 'Ad'] && this[_0x1dde82(0x4aa) + _0x1dde82(0x336)][_0x1dde82(0x21e) + 'Ad'](), this[_0x1dde82(0x4aa) + _0x1dde82(0x336)][_0x1dde82(0x21e) + 'Ad'] = null; + } [_0x215793(0x538) + _0x215793(0x550)]() { + const _0xcbb07f = _0x215793; + window[_0xcbb07f(0x1d8)](), this[_0xcbb07f(0x31c) + _0xcbb07f(0x592)] = 0x1e, this[_0xcbb07f(0x4aa) + _0xcbb07f(0x336)][_0xcbb07f(0x5e2) + 'd'] && this[_0xcbb07f(0x4aa) + _0xcbb07f(0x336)]['afterShowA' + 'd'](), this[_0xcbb07f(0x4aa) + _0xcbb07f(0x336)][_0xcbb07f(0x5e2) + 'd'] = null, this[_0xcbb07f(0x831)] = null, _0xaf9e14[_0xcbb07f(0x395)][_0xcbb07f(0x610) + 'e']()[_0xcbb07f(0x853)](_0xcbb07f(0x5e2) + 'd'); + } [_0x215793(0x507) + _0x215793(0x4e3)]() { + const _0x147e70 = _0x215793; + this[_0x147e70(0x4aa) + _0x147e70(0x336)][_0x147e70(0x6fd) + _0x147e70(0x311)] && this['rewardOpti' + _0x147e70(0x336)][_0x147e70(0x6fd) + 'issed'](), this[_0x147e70(0x4aa) + 'ons'][_0x147e70(0x6fd) + 'issed'] = null; + } [_0x215793(0x69e) + 'mplete']() { + const _0x2c8762 = _0x215793; + this[_0x2c8762(0x4aa) + 'ons'][_0x2c8762(0x794) + _0x2c8762(0x38a)] && this[_0x2c8762(0x4aa) + _0x2c8762(0x336)][_0x2c8762(0x794) + _0x2c8762(0x38a)](), this['rewardOpti' + _0x2c8762(0x336)][_0x2c8762(0x794) + _0x2c8762(0x38a)] = null; + } [_0x215793(0x309)](_0x10de47) {} [_0x215793(0x2da)](_0x3edf51) {} [_0x215793(0x64c)](_0x5c2f94) {} [_0x215793(0x496)](_0x17fe10) {} + } + _0x3faacc[_0x215793(0x395)] = _0x282750; + }, + 0x1b97: function (_0x3b52bd, _0x16062c, _0x5709a2) { + 'use strict'; + const _0x20e9ad = _0xb80e; + var _0x1ad1b1 = this && this['__importDe' + 'fault'] || function (_0x2cc089) { + const _0x19d394 = _0xb80e; + return _0x2cc089 && _0x2cc089[_0x19d394(0x772)] ? _0x2cc089 : { + 'default': _0x2cc089 + }; + }; + Object[_0x20e9ad(0x501) + _0x20e9ad(0x6a8)](_0x16062c, _0x20e9ad(0x772), { + 'value': !0x0 + }); + const _0x378562 = _0x5709a2(0x2235), + _0x3be335 = _0x1ad1b1(_0x5709a2(0x836)), + _0x3d65da = _0x1ad1b1(_0x5709a2(0x1c5c)), + _0x26a496 = _0x1ad1b1(_0x5709a2(0x92e)), + _0xec3491 = _0x1ad1b1(_0x5709a2(0x1ea1)); + class _0x48a6d9 extends _0x378562[_0x20e9ad(0x327)] { + constructor() { + const _0x1703a3 = _0x20e9ad; + super(...arguments), this[_0x1703a3(0x4c8) + _0x1703a3(0x404) + 't'] = 0x0, this[_0x1703a3(0x31c) + 'alCooldown'] = 0x0, this[_0x1703a3(0x867)] = !0x1, this[_0x1703a3(0x2fc)] = { + 'showAdFn': null + }, this['iConfig'] = { + 'showTimes': null + }; + } ['init']() { + return new Promise(async (_0x491a28, _0x573279) => { + const _0x378acc = _0xb80e, + _0x53ad39 = document['createElem' + _0x378acc(0x871)](_0x378acc(0x1bb)); + _0x53ad39[_0x378acc(0x7ae)] = !0x0, _0x53ad39[_0x378acc(0x1eb) + 'te']('data-ad-cl' + _0x378acc(0x5ff), _0x378acc(0x898) + _0x378acc(0x3ba) + _0x378acc(0x398)), _0x53ad39[_0x378acc(0x1eb) + 'te']('data-ad-ch' + _0x378acc(0x66b), _0x378acc(0x545)), _0x53ad39[_0x378acc(0x1eb) + 'te'](_0x378acc(0x77e) + _0x378acc(0x5aa) + 'nt', _0x378acc(0x571)), _0x53ad39[_0x378acc(0x303)] = () => { + const _0x3a7e0f = _0x378acc; + this['updateInte' + _0x3a7e0f(0x3d7)] = setInterval(this['onUpdate'][_0x3a7e0f(0x570)](this), 0x3e8), _0x491a28(!0x0); + }, _0x53ad39['onerror'] = function () { + _0x573279(); + }, _0x53ad39[_0x378acc(0x318)] = _0x378acc(0x46a) + _0x378acc(0x32e) + _0x378acc(0x6bd) + _0x378acc(0x1ad) + 'gead/js/ad' + _0x378acc(0x4b9) + 'js', document[_0x378acc(0x451)][_0x378acc(0x76a) + 'd'](_0x53ad39), window[_0x378acc(0x2e7) + 'e'] = window[_0x378acc(0x2e7) + 'e'] || [], window[_0x378acc(0x862)] = window[_0x378acc(0x2e5)] = function (_0x3c80a8) { + const _0x46969f = _0x378acc; + window['adsbygoogl' + 'e'][_0x46969f(0x2c4)](_0x3c80a8); + }, window[_0x378acc(0x2e5)]({ + 'preloadAdBreaks': 'on', + 'onReady': _0x23a478 => { + const _0x3c1496 = _0x378acc; + this[_0x3c1496(0x867)] = !0x0, _0x26a496[_0x3c1496(0x395)][_0x3c1496(0x1e1)]('adBreak is' + 'Read'); + } + }), this[_0x378acc(0x862)] = function (_0x35f622) { + const _0x3f86e3 = _0x378acc; + window[_0x3f86e3(0x2e7) + 'e'][_0x3f86e3(0x2c4)](_0x35f622); + }; + }); + } [_0x20e9ad(0x4c8) + _0x20e9ad(0x84e)](_0x1d37da) { + const _0x2ffbca = _0x20e9ad; + if (this[_0x2ffbca(0x31c) + _0x2ffbca(0x592)] > 0x0) return _0x1d37da && _0x1d37da[_0x2ffbca(0x21e) + 'Ad'] && (_0x1d37da[_0x2ffbca(0x21e) + 'Ad'](), _0x1d37da[_0x2ffbca(0x21e) + 'Ad'] = null), _0x1d37da && _0x1d37da[_0x2ffbca(0x5e2) + 'd'] && (_0x1d37da[_0x2ffbca(0x5e2) + 'd'](), _0x1d37da[_0x2ffbca(0x5e2) + 'd'] = null), void _0x26a496[_0x2ffbca(0x395)][_0x2ffbca(0x1e1)](_0x2ffbca(0x547) + _0x2ffbca(0x1c8) + _0x2ffbca(0x80f) + _0x2ffbca(0x23d) + _0x2ffbca(0x355) + ':', this[_0x2ffbca(0x31c) + _0x2ffbca(0x592)]); + if (_0x26a496['default'][_0x2ffbca(0x1e1)](_0x2ffbca(0x547) + ' Interstit' + _0x2ffbca(0x62a)), this[_0x2ffbca(0x3b7)] && this[_0x2ffbca(0x3b7)][_0x2ffbca(0x5e2) + 'd']) return; + let _0x1ab65a = 'next'; + if (0x0 == this[_0x2ffbca(0x4c8) + _0x2ffbca(0x404) + 't'] && (_0x1ab65a = _0x2ffbca(0x292), this[_0x2ffbca(0x4c8) + _0x2ffbca(0x404) + 't']++), _0x3d65da[_0x2ffbca(0x395)][_0x2ffbca(0x41c) + 'g'](), this[_0x2ffbca(0x867)]) return clearTimeout(this[_0x2ffbca(0x41c) + 'g']), this[_0x2ffbca(0x41c) + 'g'] = setTimeout(() => { + const _0x4a0490 = _0x2ffbca; + this[_0x4a0490(0x31c) + _0x4a0490(0x592)] = 0x1e, _0x1d37da && _0x1d37da[_0x4a0490(0x21e) + 'Ad'] && (_0x1d37da[_0x4a0490(0x21e) + 'Ad'](), _0x1d37da[_0x4a0490(0x21e) + 'Ad'] = null, _0xec3491[_0x4a0490(0x395)][_0x4a0490(0x610) + 'e']()[_0x4a0490(0x853)](_0x4a0490(0x21e) + 'Ad')), _0x1d37da && _0x1d37da[_0x4a0490(0x5e2) + 'd'] && (_0x1d37da['afterShowA' + 'd'](), _0x1d37da[_0x4a0490(0x5e2) + 'd'] = null), _0x3d65da[_0x4a0490(0x395)][_0x4a0490(0x70c) + 'g'](); + }, 0x3e8), this[_0x2ffbca(0x3b7)] = _0x1d37da, 'preroll' == _0x1ab65a ? (_0x1d37da && _0x1d37da['beforeShow' + 'Ad'] && (_0x1d37da[_0x2ffbca(0x21e) + 'Ad'](), _0x1d37da[_0x2ffbca(0x21e) + 'Ad'] = null, _0xec3491[_0x2ffbca(0x395)][_0x2ffbca(0x610) + 'e']()[_0x2ffbca(0x853)](_0x2ffbca(0x21e) + 'Ad')), clearTimeout(this[_0x2ffbca(0x41c) + 'g']), void this['adBreak']({ + 'type': _0x1ab65a, + 'name': 'game', + 'adBreakDone': _0x3a536a => { + const _0xa6f1f5 = _0x2ffbca; + this[_0xa6f1f5(0x1cb)][_0xa6f1f5(0x609)]++, this[_0xa6f1f5(0x31c) + _0xa6f1f5(0x592)] = 0x1e, _0x26a496[_0xa6f1f5(0x395)][_0xa6f1f5(0x1e1)](_0xa6f1f5(0x1f2) + 'e', _0x3a536a), _0x3d65da[_0xa6f1f5(0x395)][_0xa6f1f5(0x70c) + 'g'](), _0x1d37da && _0x1d37da[_0xa6f1f5(0x5e2) + 'd'] && (_0x1d37da[_0xa6f1f5(0x5e2) + 'd'](), _0x1d37da[_0xa6f1f5(0x5e2) + 'd'] = null, _0xec3491[_0xa6f1f5(0x395)][_0xa6f1f5(0x610) + 'e']()[_0xa6f1f5(0x853)](_0xa6f1f5(0x5e2) + 'd')); + } + })) : (this[_0x2ffbca(0x862)]({ + 'type': _0x1ab65a, + 'name': _0x2ffbca(0x2d0), + 'beforeAd': () => { + const _0x1a8405 = _0x2ffbca; + _0x1d37da && _0x1d37da[_0x1a8405(0x21e) + 'Ad'] && (_0x1d37da[_0x1a8405(0x21e) + 'Ad'](), _0x1d37da[_0x1a8405(0x21e) + 'Ad'] = null, _0xec3491[_0x1a8405(0x395)]['getInstanc' + 'e']()[_0x1a8405(0x853)](_0x1a8405(0x21e) + 'Ad')), clearTimeout(this[_0x1a8405(0x41c) + 'g']), window['blur'](); + }, + 'afterAd': () => { + const _0x436a3f = _0x2ffbca; + _0x26a496['default']['trace'](_0x436a3f(0x86a)), _0x3d65da['default'][_0x436a3f(0x70c) + 'g'](), _0x1d37da && _0x1d37da[_0x436a3f(0x5e2) + 'd'] && (_0x1d37da[_0x436a3f(0x5e2) + 'd'](), _0x1d37da[_0x436a3f(0x5e2) + 'd'] = null), this['interstiti' + _0x436a3f(0x592)] = 0x1e, window[_0x436a3f(0x1d8)](), _0xec3491['default'][_0x436a3f(0x610) + 'e']()[_0x436a3f(0x853)](_0x436a3f(0x5e2) + 'd'); + }, + 'adBreakDone': _0x2b34f7 => { + const _0x264ff6 = _0x2ffbca; + _0x26a496[_0x264ff6(0x395)]['trace']('adBreakDon' + 'e', _0x2b34f7), clearTimeout(this[_0x264ff6(0x41c) + 'g']), _0x3d65da[_0x264ff6(0x395)][_0x264ff6(0x70c) + 'g'](), _0x1d37da && _0x1d37da[_0x264ff6(0x21e) + 'Ad'] && (_0x1d37da[_0x264ff6(0x21e) + 'Ad'](), _0x1d37da[_0x264ff6(0x21e) + 'Ad'] = null, _0xec3491[_0x264ff6(0x395)][_0x264ff6(0x610) + 'e']()['event'](_0x264ff6(0x21e) + 'Ad')), _0x1d37da && _0x1d37da['afterShowA' + 'd'] && (_0x1d37da[_0x264ff6(0x5e2) + 'd'](), _0x1d37da['afterShowA' + 'd'] = null, _0xec3491[_0x264ff6(0x395)]['getInstanc' + 'e']()[_0x264ff6(0x853)](_0x264ff6(0x5e2) + 'd')); + } + }), !0x0); + _0x3be335[_0x2ffbca(0x395)][_0x2ffbca(0x610) + 'e']()['showInters' + _0x2ffbca(0x84e)]({ + 'beforeAd': () => { + const _0x3f0f62 = _0x2ffbca; + _0x3d65da[_0x3f0f62(0x395)][_0x3f0f62(0x70c) + 'g'](), _0x1d37da && _0x1d37da[_0x3f0f62(0x21e) + 'Ad'] && (_0x1d37da[_0x3f0f62(0x21e) + 'Ad'](), _0x1d37da[_0x3f0f62(0x21e) + 'Ad'] = null, _0xec3491[_0x3f0f62(0x395)][_0x3f0f62(0x610) + 'e']()[_0x3f0f62(0x853)](_0x3f0f62(0x21e) + 'Ad')), clearTimeout(this[_0x3f0f62(0x41c) + 'g']), window[_0x3f0f62(0x5ec)](); + }, + 'afterAd': () => { + const _0x537eb1 = _0x2ffbca; + _0x26a496[_0x537eb1(0x395)][_0x537eb1(0x1e1)](_0x537eb1(0x86a)), _0x3d65da[_0x537eb1(0x395)][_0x537eb1(0x70c) + 'g'](), _0x1d37da && _0x1d37da[_0x537eb1(0x5e2) + 'd'] && (_0x1d37da[_0x537eb1(0x5e2) + 'd'](), _0x1d37da['afterShowA' + 'd'] = null), this[_0x537eb1(0x31c) + _0x537eb1(0x592)] = 0x1e, window['focus'](), _0xec3491[_0x537eb1(0x395)][_0x537eb1(0x610) + 'e']()[_0x537eb1(0x853)](_0x537eb1(0x5e2) + 'd'); + } + }); + } [_0x20e9ad(0x408) + _0x20e9ad(0x58a)]() { + const _0x42a696 = _0x20e9ad; + return !this[_0x42a696(0x867)] || !!this['showAdFn']; + } ['showReward'](_0xc1dd6) { + const _0x45dcb0 = _0x20e9ad; + return !!this['canShowRew' + _0x45dcb0(0x58a)]() && (_0x26a496['default']['trace']('requesting' + ' Reward AD'), this[_0x45dcb0(0x4aa) + _0x45dcb0(0x336)] = _0xc1dd6, this['isReady'] ? (this[_0x45dcb0(0x831)](), this[_0x45dcb0(0x831)] = null, window[_0x45dcb0(0x5ec)](), !0x0) : void _0x3be335[_0x45dcb0(0x395)]['getInstanc' + 'e']()[_0x45dcb0(0x1c3)]({ + 'beforeAd': () => { + const _0x112501 = _0x45dcb0; + _0x3d65da['default'][_0x112501(0x70c) + 'g'](), _0xc1dd6 && _0xc1dd6[_0x112501(0x21e) + 'Ad'] && (_0xc1dd6['beforeShow' + 'Ad'](), _0xc1dd6[_0x112501(0x21e) + 'Ad'] = null, _0xec3491['default'][_0x112501(0x610) + 'e']()[_0x112501(0x853)]('beforeShow' + 'Ad')), clearTimeout(this[_0x112501(0x41c) + 'g']), window[_0x112501(0x5ec)](); + }, + 'afterAd': () => { + const _0x467167 = _0x45dcb0; + _0x26a496[_0x467167(0x395)][_0x467167(0x1e1)]('afterAd'), _0x3d65da[_0x467167(0x395)]['hideLoadin' + 'g'](), _0xc1dd6 && _0xc1dd6['afterShowA' + 'd'] && (_0xc1dd6[_0x467167(0x5e2) + 'd'](), _0xc1dd6[_0x467167(0x5e2) + 'd'] = null), this[_0x467167(0x31c) + _0x467167(0x592)] = 0x1e, window[_0x467167(0x1d8)](), _0xec3491[_0x467167(0x395)][_0x467167(0x610) + 'e']()[_0x467167(0x853)](_0x467167(0x5e2) + 'd'); + }, + 'adDismissed': this[_0x45dcb0(0x507) + 'smissed']['bind'](this), + 'adViewed': this[_0x45dcb0(0x69e) + _0x45dcb0(0x760)][_0x45dcb0(0x570)](this) + })); + } [_0x20e9ad(0x86c)]() { + const _0x501010 = _0x20e9ad; + this[_0x501010(0x31c) + 'alCooldown'] >= 0x0 && this[_0x501010(0x31c) + _0x501010(0x592)]--, this[_0x501010(0x32a) + 'd'](); + } ['checkRewar' + 'd']() { + const _0x4f45dd = _0x20e9ad; + this[_0x4f45dd(0x831)] || this['adBreak']({ + 'type': _0x4f45dd(0x3d9), + 'name': _0x4f45dd(0x3d9), + 'beforeAd': this['onRewardBe' + 'foreBreak'][_0x4f45dd(0x570)](this), + 'afterAd': this['onRewardAf' + _0x4f45dd(0x550)]['bind'](this), + 'beforeReward': this['onBeforeRe' + _0x4f45dd(0x530)][_0x4f45dd(0x570)](this), + 'adDismissed': this['onRewardDi' + _0x4f45dd(0x4e3)][_0x4f45dd(0x570)](this), + 'adViewed': this[_0x4f45dd(0x69e) + _0x4f45dd(0x760)]['bind'](this) + }); + } [_0x20e9ad(0x86f) + _0x20e9ad(0x530)](_0x444906) { + const _0x53e5ec = _0x20e9ad; + _0x26a496['default'][_0x53e5ec(0x1e1)](_0x53e5ec(0x2c3) + _0x53e5ec(0x40c) + _0x53e5ec(0x73b)), this[_0x53e5ec(0x831)] = _0x444906; + } ['onRewardBe' + 'foreBreak']() { + const _0x4a114d = _0x20e9ad; + _0xec3491['default']['getInstanc' + 'e']()[_0x4a114d(0x853)](_0x4a114d(0x21e) + 'Ad'), this[_0x4a114d(0x4aa) + _0x4a114d(0x336)][_0x4a114d(0x21e) + 'Ad'] && this[_0x4a114d(0x4aa) + _0x4a114d(0x336)][_0x4a114d(0x21e) + 'Ad'](), this[_0x4a114d(0x4aa) + _0x4a114d(0x336)][_0x4a114d(0x21e) + 'Ad'] = null; + } [_0x20e9ad(0x538) + 'terBreak']() { + const _0x207422 = _0x20e9ad; + window[_0x207422(0x1d8)](), this[_0x207422(0x31c) + 'alCooldown'] = 0x1e, this[_0x207422(0x4aa) + _0x207422(0x336)]['afterShowA' + 'd'] && this[_0x207422(0x4aa) + _0x207422(0x336)][_0x207422(0x5e2) + 'd'](), this[_0x207422(0x4aa) + _0x207422(0x336)]['afterShowA' + 'd'] = null, this[_0x207422(0x831)] = null, _0xec3491[_0x207422(0x395)]['getInstanc' + 'e']()[_0x207422(0x853)](_0x207422(0x5e2) + 'd'); + } [_0x20e9ad(0x507) + 'smissed']() { + const _0x507bb1 = _0x20e9ad; + this[_0x507bb1(0x4aa) + _0x507bb1(0x336)]['rewardDism' + _0x507bb1(0x311)] && this[_0x507bb1(0x4aa) + _0x507bb1(0x336)][_0x507bb1(0x6fd) + _0x507bb1(0x311)](), this['rewardOpti' + 'ons']['rewardDism' + 'issed'] = null; + } ['onRewardCo' + _0x20e9ad(0x760)]() { + const _0xec8117 = _0x20e9ad; + this[_0xec8117(0x4aa) + _0xec8117(0x336)]['rewardComp' + _0xec8117(0x38a)] && this[_0xec8117(0x4aa) + _0xec8117(0x336)][_0xec8117(0x794) + 'lete'](), this[_0xec8117(0x4aa) + _0xec8117(0x336)][_0xec8117(0x794) + _0xec8117(0x38a)] = null; + } [_0x20e9ad(0x309)](_0x5e5811) {} [_0x20e9ad(0x2da)](_0x31934f) {} [_0x20e9ad(0x64c)](_0x595441) {} [_0x20e9ad(0x496)](_0x4a80ce) {} + } + _0x16062c[_0x20e9ad(0x395)] = _0x48a6d9; + }, + 0x1c4e: (_0x454edd, _0x2766ca) => { + 'use strict'; + const _0x5dff3f = _0xb80e; + Object[_0x5dff3f(0x501) + _0x5dff3f(0x6a8)](_0x2766ca, _0x5dff3f(0x772), { + 'value': !0x0 + }); + class _0x5cd9ef { + static[_0x5dff3f(0x414)]() { + const _0x8d5f0d = _0x5dff3f; + _0x8d5f0d(0x54c) != typeof Laya && (this[_0x8d5f0d(0x271)] = Laya[_0x8d5f0d(0x46e)]['scale'], Laya[_0x8d5f0d(0x46e)][_0x8d5f0d(0x1db)] = 0x0); + } + static[_0x5dff3f(0x503)]() { + const _0x12e4c2 = _0x5dff3f; + _0x12e4c2(0x54c) != typeof Laya && (Laya[_0x12e4c2(0x46e)][_0x12e4c2(0x1db)] = this['timerScale']); + } + } + _0x2766ca[_0x5dff3f(0x395)] = _0x5cd9ef, _0x5cd9ef[_0x5dff3f(0x271)] = 0x1; + }, + 0x836: function (_0x4901be, _0x360472, _0x318679) { + 'use strict'; + const _0x139693 = _0xb80e; + var _0x43ca5c = this && this[_0x139693(0x343) + _0x139693(0x3a7)] || function (_0x594cd0) { + const _0x45c7e2 = _0x139693; + return _0x594cd0 && _0x594cd0[_0x45c7e2(0x772)] ? _0x594cd0 : { + 'default': _0x594cd0 + }; + }; + Object[_0x139693(0x501) + _0x139693(0x6a8)](_0x360472, _0x139693(0x772), { + 'value': !0x0 + }); + const _0x196937 = _0x43ca5c(_0x318679(0x1eb)), + _0x3a07fa = _0x318679(0x139f), + _0x27755b = _0x43ca5c(_0x318679(0x1680)), + _0x477ff3 = _0x43ca5c(_0x318679(0x1c5c)), + _0x50a3e2 = _0x43ca5c(_0x318679(0x92e)); + class _0x117252 extends _0x196937[_0x139693(0x395)] { + constructor() { + const _0x3eb7b1 = _0x139693; + super(...arguments), this[_0x3eb7b1(0x4b2)] = [], this[_0x3eb7b1(0x371)] = !0x1, this[_0x3eb7b1(0x294)] = [], this['rewardInte' + _0x3eb7b1(0x3d7)] = 0x0, this[_0x3eb7b1(0x4dd)] = 0x0, this[_0x3eb7b1(0x7ee)] = { + 'w': 0xc8, + 'h': 0xc8, + 'dw': 0x2ee, + 'dh': 0x2ee + }, this[_0x3eb7b1(0x6fc)] = ''; + } + static[_0x139693(0x610) + 'e']() { + const _0x1ee2a3 = _0x139693; + return this['_gInstance'] || (this[_0x1ee2a3(0x43e)] = new _0x117252()), this[_0x1ee2a3(0x43e)]; + } ['init']() { + const _0x26017e = _0x139693; + this['inited'] = !0x1; + const _0x47011b = ['https://ww' + _0x26017e(0x68d) + 'forgame/ga' + _0x26017e(0x44c), _0x26017e(0x88f) + _0x26017e(0x83e) + 'forgame/ga' + _0x26017e(0x44c)]; + _0x47011b[_0x26017e(0x7fd)](function () { + const _0x39974a = _0x26017e; + return 0.5 - Math[_0x39974a(0x718)](); + }), this['domain'] = _0x26017e(0x88f) + _0x26017e(0x68d); + const _0x493dc3 = _0x47011b[0x0]; + _0x493dc3[_0x26017e(0x80b)](_0x26017e(0x4d4) + 'm') > -0x1 && (this[_0x26017e(0x6fc)] = _0x26017e(0x88f) + _0x26017e(0x83e), this['itemSize']['w'] = 0x10a, this['itemSize']['dh'] = 562.5), _0x50a3e2[_0x26017e(0x395)]['readDataSy' + 'nc'](_0x493dc3)[_0x26017e(0x197)](_0x13a436 => { + const _0xa1211b = _0x26017e; + if (_0x13a436['sort'](function () { + const _0x301eaa = _0xb80e; + return 0.5 - Math[_0x301eaa(0x718)](); + }), this['games'] = _0x13a436, 0x0 == _0x13a436[_0xa1211b(0x33e)]) return; + const _0x5b25ac = document[_0xa1211b(0x81d) + _0xa1211b(0x871)](_0xa1211b(0x4c3)); + _0x5b25ac[_0xa1211b(0x622)]['background' + 'Color'] = _0xa1211b(0x416), _0x5b25ac[_0xa1211b(0x622)][_0xa1211b(0x67d)] = _0xa1211b(0x690), _0x5b25ac[_0xa1211b(0x622)][_0xa1211b(0x859)] = _0xa1211b(0x83d), _0x5b25ac['style'][_0xa1211b(0x696)] = _0xa1211b(0x83d), _0x5b25ac[_0xa1211b(0x622)]['textAlign'] = _0xa1211b(0x45e), _0x5b25ac['style'][_0xa1211b(0x628)] = '0', _0x5b25ac['style'][_0xa1211b(0x585)] = '0'; + const _0x5afe6f = document[_0xa1211b(0x81d) + _0xa1211b(0x871)](_0xa1211b(0x4c3)); + _0x5afe6f[_0xa1211b(0x622)][_0xa1211b(0x30a)] = 'flex', _0x5afe6f[_0xa1211b(0x622)][_0xa1211b(0x4ef)] = '0', _0x5afe6f[_0xa1211b(0x622)][_0xa1211b(0x859)] = '100%', _0x5afe6f[_0xa1211b(0x622)][_0xa1211b(0x696)] = _0xa1211b(0x83d), _0x5afe6f[_0xa1211b(0x622)][_0xa1211b(0x60a) + 'ion'] = _0xa1211b(0x79d), _0x5afe6f['style'][_0xa1211b(0x780)] = _0xa1211b(0x45e), _0x5afe6f[_0xa1211b(0x622)][_0xa1211b(0x801) + _0xa1211b(0x3df)] = 'center'; + for (let _0x3c80c6 = 0x0; _0x3c80c6 < 0x2; _0x3c80c6++) { + const _0x421d66 = document['createElem' + _0xa1211b(0x871)](_0xa1211b(0x4c3)); + for (let _0x172855 = 0x0; _0x172855 < 0x2; _0x172855++) { + const _0x3a63ed = document['createElem' + 'ent'](_0xa1211b(0x625)); + _0x3a63ed['style'][_0xa1211b(0x5a6)] = _0xa1211b(0x790), _0x3a63ed[_0xa1211b(0x622)][_0xa1211b(0x5a3)] = '4px', _0x3a63ed['style'][_0xa1211b(0x38d)] = _0xa1211b(0x5c5), _0x3a63ed['style']['border'] = '2px solid ' + '#FFFFFF', _0x3a63ed[_0xa1211b(0x622)][_0xa1211b(0x54a) + 'us'] = _0xa1211b(0x7c8), _0x3a63ed['setAttribu' + 'te']('id', _0x13a436[this[_0xa1211b(0x4b2)][_0xa1211b(0x33e)]]['id']), _0x3a63ed['src'] = _0x13a436[this['recommends'][_0xa1211b(0x33e)]][_0xa1211b(0x685)], _0x3a63ed[_0xa1211b(0x303)] = () => { + const _0x4bf301 = _0xa1211b; + this[_0x4bf301(0x881)](); + }, _0x3a63ed[_0xa1211b(0x1d1)] = () => { + const _0x2a06a1 = _0xa1211b; + this[_0x2a06a1(0x333)](_0x3a63ed['getAttribu' + 'te']('id')); + }, _0x421d66[_0xa1211b(0x76a) + 'd'](_0x3a63ed), this[_0xa1211b(0x4b2)][_0xa1211b(0x2c4)](_0x3a63ed); + } + _0x5afe6f[_0xa1211b(0x76a) + 'd'](_0x421d66); + } + const _0x4bf39b = document[_0xa1211b(0x81d) + 'ent'](_0xa1211b(0x4c3)); + _0x4bf39b[_0xa1211b(0x71c)] = _0xa1211b(0x29b), _0x4bf39b[_0xa1211b(0x622)][_0xa1211b(0x859)] = _0xa1211b(0x63e), _0x4bf39b[_0xa1211b(0x622)][_0xa1211b(0x696)] = _0xa1211b(0x53b), _0x4bf39b[_0xa1211b(0x622)][_0xa1211b(0x399)] = '30px', _0x4bf39b[_0xa1211b(0x622)][_0xa1211b(0x7e8)] = _0xa1211b(0x4e8) + _0xa1211b(0x6ab), _0x4bf39b[_0xa1211b(0x622)][_0xa1211b(0x67d)] = _0xa1211b(0x690), _0x4bf39b[_0xa1211b(0x622)][_0xa1211b(0x7b6)] = '40px', _0x4bf39b['style']['right'] = _0xa1211b(0x7c8), _0x4bf39b[_0xa1211b(0x622)][_0xa1211b(0x5a6)] = _0xa1211b(0x790), _0x4bf39b[_0xa1211b(0x622)][_0xa1211b(0x883)] = _0xa1211b(0x6ab), _0x5afe6f[_0xa1211b(0x76a) + 'd'](_0x4bf39b); + const _0xa7e74 = document[_0xa1211b(0x81d) + _0xa1211b(0x871)](_0xa1211b(0x4c3)); + _0xa7e74['style']['position'] = _0xa1211b(0x690), _0xa7e74[_0xa1211b(0x622)][_0xa1211b(0x7b6)] = _0xa1211b(0x7c8), _0xa7e74[_0xa1211b(0x622)][_0xa1211b(0x888)] = _0xa1211b(0x7c8), _0xa7e74[_0xa1211b(0x622)][_0xa1211b(0x883)] = _0xa1211b(0x6ab), _0xa7e74[_0xa1211b(0x71c)] = _0xa1211b(0x50a) + _0xa1211b(0x4fe) + this['domain']['replace']('https://ww' + 'w.', '')[_0xa1211b(0x5ef)]('/', ''), _0xa7e74[_0xa1211b(0x622)]['cursor'] = _0xa1211b(0x790), _0x5afe6f[_0xa1211b(0x76a) + 'd'](_0xa7e74), _0x5b25ac['appendChil' + 'd'](_0x5afe6f), document['body'][_0xa1211b(0x76a) + 'd'](_0x5b25ac), _0x4bf39b[_0xa1211b(0x1d1)] = () => { + const _0x5e0342 = _0xa1211b; + if (this[_0x5e0342(0x4dd)] > 0x0) { + if (this[_0x5e0342(0x3b7)] && this[_0x5e0342(0x3b7)][_0x5e0342(0x6bc) + 'd']) return; + } else this[_0x5e0342(0x3b7)] && this[_0x5e0342(0x3b7)][_0x5e0342(0x243)] && (this[_0x5e0342(0x3b7)][_0x5e0342(0x243)](), this[_0x5e0342(0x3b7)]['adDismisse' + 'd'] = null, this[_0x5e0342(0x3b7)][_0x5e0342(0x243)] = null); + this['options'] && this['options'][_0x5e0342(0x86a)] && (this['options']['afterAd'](), this[_0x5e0342(0x3b7)]['afterAd'] = null), _0x5b25ac['style'][_0x5e0342(0x449)] = '0', _0x5b25ac[_0x5e0342(0x622)][_0x5e0342(0x30a)] = 'none'; + }, _0xa7e74[_0xa1211b(0x1d1)] = () => { + const _0x5cc4b4 = _0xa1211b; + this[_0x5cc4b4(0x333)](); + }, _0x5b25ac['style']['display'] = _0xa1211b(0x3b6), this[_0xa1211b(0x7d5) + _0xa1211b(0x25a)] = _0x4bf39b, this['recommend_' + _0xa1211b(0x7b6)] = _0xa7e74, this[_0xa1211b(0x840)] = _0x5b25ac, this['inited'] = !0x0, window[_0xa1211b(0x77f) + _0xa1211b(0x564)]('resize', () => { + const _0x33828e = _0xa1211b; + this[_0x33828e(0x881)](); + }, !0x1); + }); + } ['navigate'](_0x5b8e3d) { + const _0x117afc = _0x139693, + _0x2a3ba4 = _0x27755b['default'][_0x117afc(0x610) + 'e']()[_0x117afc(0x6f3)](_0x3a07fa['ConfigType'][_0x117afc(0x68f)]), + _0x3838a7 = _0x27755b['default'][_0x117afc(0x610) + 'e']()[_0x117afc(0x6f3)](_0x3a07fa[_0x117afc(0x1ac)]['en_CHANNEL' + _0x117afc(0x5ba)]); + _0x5b8e3d = _0x5b8e3d || ''; + var _0x3a8310 = document[_0x117afc(0x42f)]; + let _0x4b70d3 = this['domain']; + void 0x0 === _0x5b8e3d || '' == _0x5b8e3d || _0x117afc(0x54c) == _0x5b8e3d || (_0x4b70d3 = _0x4b70d3 + _0x117afc(0x6c7) + _0x5b8e3d), _0x3a8310 = void 0x0 === _0x3a8310 || '' == _0x3a8310 || _0x117afc(0x54c) == _0x3a8310 ? 'unknown' : _0x3a8310[_0x117afc(0x1a0)]('/')[0x2], _0x4b70d3[_0x117afc(0x80b)]('?') > -0x1 ? _0x4b70d3 += '&' : _0x4b70d3 += '?', _0x4b70d3 = _0x4b70d3 + ('utm_source' + '=') + _0x3a8310 + (_0x117afc(0x3f2) + 'm=') + _0x2a3ba4 + (_0x117afc(0x525) + 'ign=defaul' + 'tAD-') + _0x3838a7; + try { + window[_0x117afc(0x27f)](_0x4b70d3); + } catch (_0x357d8e) {} + } [_0x139693(0x881)]() { + const _0xd621dc = _0x139693; + var _0x364e18, _0x2cb48f = this[_0xd621dc(0x7ee)]['dw'], + _0x5d8997 = this[_0xd621dc(0x7ee)]['dh'], + _0x4885f6 = window[_0xd621dc(0x39a)], + _0x10cfa8 = window[_0xd621dc(0x710) + 't']; + _0x364e18 = _0x4885f6 / _0x10cfa8 > _0x2cb48f / _0x5d8997 ? _0x10cfa8 * _0x2cb48f / _0x5d8997 : _0x4885f6; + for (const _0x4cb138 of this[_0xd621dc(0x4b2)]) _0x4cb138['width'] = Math[_0xd621dc(0x52e)](this['itemSize']['w'], _0x364e18 * this[_0xd621dc(0x7ee)]['w'] / _0x2cb48f), _0x4cb138[_0xd621dc(0x696)] = _0x4cb138[_0xd621dc(0x859)] * _0x5d8997 / _0x2cb48f; + this[_0xd621dc(0x7d5) + _0xd621dc(0x7b6)]['style']['fontSize'] = _0x4885f6 < 0xd2 ? '10' : '18'; + } [_0x139693(0x1c3)](_0x550980) { + const _0xa752f0 = _0x139693; + this[_0xa752f0(0x294)]['sort'](function () { + return 0.5 - Math['random'](); + }); + for (let _0x4268cf = 0x0; _0x4268cf < this[_0xa752f0(0x4b2)][_0xa752f0(0x33e)]; _0x4268cf++) { + const _0x158dab = this['recommends'][_0x4268cf]; + _0x158dab['src'] = this[_0xa752f0(0x294)][_0x4268cf][_0xa752f0(0x685)], _0x158dab['setAttribu' + 'te']('id', this[_0xa752f0(0x294)][_0x4268cf]['id']); + } + this[_0xa752f0(0x4dd)] = 0x5, this[_0xa752f0(0x7d5) + _0xa752f0(0x25a)][_0xa752f0(0x65c)] = 'Reward in ' + '5s', this[_0xa752f0(0x840)][_0xa752f0(0x622)][_0xa752f0(0x30a)] = '', this[_0xa752f0(0x840)]['style']['zIndex'] = _0xa752f0(0x68b), this[_0xa752f0(0x3b7)] = _0x550980, this[_0xa752f0(0x3b7)] && this[_0xa752f0(0x3b7)][_0xa752f0(0x1bf)] && (this[_0xa752f0(0x3b7)][_0xa752f0(0x1bf)](), this[_0xa752f0(0x3b7)][_0xa752f0(0x1bf)] = null), clearInterval(this[_0xa752f0(0x60e) + _0xa752f0(0x3d7)]), this[_0xa752f0(0x60e) + 'rval'] = setInterval(() => { + const _0x5c477c = _0xa752f0; + this[_0x5c477c(0x4dd)]--, this['recommend_' + _0x5c477c(0x25a)][_0x5c477c(0x65c)] = 'Reward in ' + this['rewardTime'] + 's', this[_0x5c477c(0x4dd)] <= 0x0 && (clearInterval(this['rewardInte' + _0x5c477c(0x3d7)]), this[_0x5c477c(0x7d5) + _0x5c477c(0x25a)][_0x5c477c(0x65c)] = _0x5c477c(0x29b)); + }, 0x3e8); + } [_0x139693(0x4c8) + _0x139693(0x84e)](_0x388f5f) { + const _0x54166c = _0x139693; + if (!this[_0x54166c(0x371)]) return this[_0x54166c(0x3b7)] && this[_0x54166c(0x3b7)][_0x54166c(0x1bf)] && (this[_0x54166c(0x3b7)][_0x54166c(0x1bf)](), this[_0x54166c(0x3b7)]['beforeAd'] = null), void(this['options'] && this[_0x54166c(0x3b7)][_0x54166c(0x86a)] && (this[_0x54166c(0x3b7)][_0x54166c(0x86a)](), this[_0x54166c(0x3b7)]['afterAd'] = null)); + _0x477ff3[_0x54166c(0x395)][_0x54166c(0x70c) + 'g'](), this[_0x54166c(0x4dd)] = -0x1, this[_0x54166c(0x294)]['sort'](function () { + const _0xc70206 = _0x54166c; + return 0.5 - Math[_0xc70206(0x718)](); + }); + for (let _0xbdb30b = 0x0; _0xbdb30b < this[_0x54166c(0x4b2)][_0x54166c(0x33e)]; _0xbdb30b++) { + const _0x414406 = this['recommends'][_0xbdb30b]; + _0x414406[_0x54166c(0x318)] = this[_0x54166c(0x294)][_0xbdb30b][_0x54166c(0x685)], _0x414406[_0x54166c(0x1eb) + 'te']('id', this[_0x54166c(0x294)][_0xbdb30b]['id']); + } + this['recommend_' + _0x54166c(0x25a)][_0x54166c(0x65c)] = 'CLOSE', this[_0x54166c(0x840)][_0x54166c(0x622)][_0x54166c(0x30a)] = '', this[_0x54166c(0x840)][_0x54166c(0x622)][_0x54166c(0x449)] = _0x54166c(0x68b), this[_0x54166c(0x3b7)] = _0x388f5f, this[_0x54166c(0x3b7)] && this['options'][_0x54166c(0x1bf)] && (this[_0x54166c(0x3b7)]['beforeAd'](), this[_0x54166c(0x3b7)]['beforeAd'] = null); + } + } + _0x360472[_0x139693(0x395)] = _0x117252; + }, + 0x1b83: function (_0x2875d4, _0x5757d9, _0xd26e93) { + 'use strict'; + const _0x563cd3 = _0xb80e; + var _0x34b0a3 = this && this[_0x563cd3(0x343) + 'fault'] || function (_0x56f51c) { + const _0x592f42 = _0x563cd3; + return _0x56f51c && _0x56f51c[_0x592f42(0x772)] ? _0x56f51c : { + 'default': _0x56f51c + }; + }; + Object[_0x563cd3(0x501) + 'erty'](_0x5757d9, _0x563cd3(0x772), { + 'value': !0x0 + }); + const _0x814ff = _0x34b0a3(_0xd26e93(0x1eb)), + _0x2d10fd = _0x34b0a3(_0xd26e93(0x43b)); + class _0x3710f8 extends _0x814ff[_0x563cd3(0x395)] { + static[_0x563cd3(0x610) + 'e']() { + const _0x53fadc = _0x563cd3; + return this['_gInstance'] || (this['_gInstance'] = new _0x3710f8()), this[_0x53fadc(0x43e)]; + } + constructor() { + const _0x53d6f9 = _0x563cd3; + super(); + const _0x477e90 = document[_0x53d6f9(0x6ed)] || document['getElement' + _0x53d6f9(0x5d0)]('body')[0x0], + _0x381789 = document['createElem' + _0x53d6f9(0x871)]('style'), + _0x2f7a89 = _0x2d10fd[_0x53d6f9(0x395)][_0x53d6f9(0x28d)](_0x53d6f9(0x1a4) + _0x53d6f9(0x61f), this[_0x53d6f9(0x2ab)]()), + _0x28ce6f = _0x53d6f9(0x5a2) + _0x53d6f9(0x4ee) + _0x2f7a89 + ',.' + _0x2f7a89 + ':before,.' + _0x2f7a89 + (':after\x0a ' + _0x53d6f9(0x85e) + _0x53d6f9(0x872) + ' b' + 'order-radi' + _0x53d6f9(0x4af) + _0x53d6f9(0x6a9) + _0x53d6f9(0x647) + ': 2.0em;\x0a ' + _0x53d6f9(0x6a9) + _0x53d6f9(0x374) + _0x53d6f9(0x3bd) + _0x53d6f9(0x5a2) + _0x53d6f9(0x2a0) + _0x53d6f9(0x5d2) + _0x53d6f9(0x46b) + 'mode: both' + ';\x0a ' + ' an' + _0x53d6f9(0x728) + _0x53d6f9(0x282) + _0x53d6f9(0x205) + ' ' + _0x53d6f9(0x49d) + 'nimation: ' + _0x53d6f9(0x612) + ' infinite ' + _0x53d6f9(0x810) + _0x53d6f9(0x6a3) + _0x53d6f9(0x699) + _0x53d6f9(0x32d) + _0x53d6f9(0x612) + _0x53d6f9(0x4ce) + _0x53d6f9(0x810) + 't;\x0a ' + _0x53d6f9(0x686) + _0x53d6f9(0x490)) + _0x2f7a89 + (_0x53d6f9(0x795) + _0x53d6f9(0x235) + _0x53d6f9(0x367) + _0x53d6f9(0x49a) + _0x53d6f9(0x6a9) + _0x53d6f9(0x77c) + _0x53d6f9(0x31a) + _0x53d6f9(0x6a9) + _0x53d6f9(0x6ef) + _0x53d6f9(0x804) + _0x53d6f9(0x426) + _0x53d6f9(0x74f) + 'sition: re' + _0x53d6f9(0x509) + _0x53d6f9(0x6a9) + ' text-i' + _0x53d6f9(0x27d) + _0x53d6f9(0x694) + ' ' + _0x53d6f9(0x1a2) + _0x53d6f9(0x1d7) + _0x53d6f9(0x267) + _0x53d6f9(0x80c) + ' ' + _0x53d6f9(0x87f) + _0x53d6f9(0x741) + _0x53d6f9(0x2d5) + ';\x0a ' + ' tr' + _0x53d6f9(0x61e) + 'ranslateZ(' + _0x53d6f9(0x415) + _0x53d6f9(0x6a9) + _0x53d6f9(0x1df) + _0x53d6f9(0x715) + _0x53d6f9(0x79f) + 's;\x0a ' + _0x53d6f9(0x699) + _0x53d6f9(0x811) + _0x53d6f9(0x4eb) + _0x53d6f9(0x5f3) + ' }\x0a ' + _0x53d6f9(0x6a9) + '.') + _0x2f7a89 + ':before,.' + _0x2f7a89 + (_0x53d6f9(0x825) + _0x53d6f9(0x85e) + _0x53d6f9(0x5a2) + _0x53d6f9(0x272) + _0x53d6f9(0x435) + _0x53d6f9(0x6a9) + _0x53d6f9(0x6b5) + _0x53d6f9(0x594) + 'lute;top: ' + _0x53d6f9(0x495) + ' }\x0a ' + _0x53d6f9(0x490)) + _0x2f7a89 + (_0x53d6f9(0x354) + _0x53d6f9(0x6a9) + _0x53d6f9(0x7b9) + _0x53d6f9(0x61a) + ' ' + _0x53d6f9(0x3ea) + _0x53d6f9(0x7eb) + 'on-delay: ' + '-0.32s;\x0a ' + _0x53d6f9(0x6a9) + _0x53d6f9(0x35f) + _0x53d6f9(0x635) + ' -0.32s;\x0a ' + ' ' + _0x53d6f9(0x84b) + _0x53d6f9(0x88a)) + _0x2f7a89 + (_0x53d6f9(0x7c0) + _0x53d6f9(0x6a9) + ' left: ' + _0x53d6f9(0x7f0) + _0x53d6f9(0x3cd) + _0x53d6f9(0x5a2) + _0x53d6f9(0x670) + 't-keyframe' + _0x53d6f9(0x7e0) + _0x53d6f9(0x6a9) + _0x53d6f9(0x1ae) + _0x53d6f9(0x661) + _0x53d6f9(0x3fa) + '{\x0a ' + _0x53d6f9(0x6a9) + _0x53d6f9(0x765) + _0x53d6f9(0x1a6) + _0x53d6f9(0x3be) + _0x53d6f9(0x426) + _0x53d6f9(0x6cb) + _0x53d6f9(0x6a9) + _0x53d6f9(0x406) + _0x53d6f9(0x1ae) + _0x53d6f9(0x6a9) + _0x53d6f9(0x765) + _0x53d6f9(0x1a6) + 'm 0 0;\x0a ' + _0x53d6f9(0x6a9) + _0x53d6f9(0x328) + ' }\x0a ' + _0x53d6f9(0x6a9) + ' @keyframe' + _0x53d6f9(0x7e0) + _0x53d6f9(0x6a9) + _0x53d6f9(0x1ae) + ' 0%' + _0x53d6f9(0x3fa) + _0x53d6f9(0x1ae) + _0x53d6f9(0x6a9) + _0x53d6f9(0x765) + _0x53d6f9(0x1a6) + _0x53d6f9(0x3be) + _0x53d6f9(0x426) + _0x53d6f9(0x6cb) + _0x53d6f9(0x6a9) + _0x53d6f9(0x406) + _0x53d6f9(0x1ae) + ' ' + ' box-shad' + _0x53d6f9(0x1a6) + _0x53d6f9(0x486) + ' ' + _0x53d6f9(0x328) + _0x53d6f9(0x72c) + _0x53d6f9(0x657)); + _0x381789[_0x53d6f9(0x646) + 't'] += _0x28ce6f, _0x477e90[_0x53d6f9(0x76a) + 'd'](_0x381789), this[_0x53d6f9(0x3e6)] = document[_0x53d6f9(0x81d) + 'ent']('div'), this[_0x53d6f9(0x3e6)]['style'][_0x53d6f9(0x67d)] = 'fixed', this[_0x53d6f9(0x3e6)][_0x53d6f9(0x622)][_0x53d6f9(0x449)] = '0', this[_0x53d6f9(0x3e6)][_0x53d6f9(0x622)][_0x53d6f9(0x585)] = '0', this[_0x53d6f9(0x3e6)][_0x53d6f9(0x622)]['left'] = '0', this[_0x53d6f9(0x3e6)]['style']['width'] = '100%', this['background'][_0x53d6f9(0x622)][_0x53d6f9(0x696)] = _0x53d6f9(0x83d), this[_0x53d6f9(0x3e6)][_0x53d6f9(0x622)][_0x53d6f9(0x3e6) + 'Color'] = _0x53d6f9(0x543) + _0x53d6f9(0x275), this[_0x53d6f9(0x567)] = document['createElem' + _0x53d6f9(0x871)]('div'), this[_0x53d6f9(0x567)]['className'] = _0x2f7a89, this[_0x53d6f9(0x567)][_0x53d6f9(0x622)][_0x53d6f9(0x585)] = _0x53d6f9(0x30e), this['background'][_0x53d6f9(0x76a) + 'd'](this[_0x53d6f9(0x567)]), this[_0x53d6f9(0x3e6)][_0x53d6f9(0x622)][_0x53d6f9(0x30a)] = 'none', _0x477e90['appendChil' + 'd'](this[_0x53d6f9(0x3e6)]); + } [_0x563cd3(0x749)](_0x3bd18d) { + const _0x1e0996 = _0x563cd3; + this[_0x1e0996(0x3e6)][_0x1e0996(0x622)][_0x1e0996(0x3e6) + 'Color'] = _0x2d10fd[_0x1e0996(0x395)][_0x1e0996(0x28d)](_0x1e0996(0x543) + _0x1e0996(0x38e), _0x3bd18d), 0x0 == _0x3bd18d && (this[_0x1e0996(0x567)][_0x1e0996(0x622)][_0x1e0996(0x30a)] = _0x1e0996(0x3b6)); + } [_0x563cd3(0x41c) + 'g']() { + const _0x3a1940 = _0x563cd3; + this['background'][_0x3a1940(0x622)][_0x3a1940(0x449)] = _0x3a1940(0x68b), this[_0x3a1940(0x3e6)]['style'][_0x3a1940(0x30a)] = 'block'; + } [_0x563cd3(0x70c) + 'g']() { + const _0x1cd89b = _0x563cd3; + this['background'][_0x1cd89b(0x622)]['zIndex'] = '0', this['background'][_0x1cd89b(0x622)][_0x1cd89b(0x30a)] = _0x1cd89b(0x3b6); + } + } + _0x5757d9[_0x563cd3(0x395)] = _0x3710f8; + }, + 0x10e7: function (_0x2ceafd, _0x369359, _0x4c1231) { + 'use strict'; + const _0x186953 = _0xb80e; + var _0x1b385d = this && this[_0x186953(0x343) + _0x186953(0x3a7)] || function (_0x47b6a5) { + const _0x5a2f9e = _0x186953; + return _0x47b6a5 && _0x47b6a5[_0x5a2f9e(0x772)] ? _0x47b6a5 : { + 'default': _0x47b6a5 + }; + }; + Object['defineProp' + _0x186953(0x6a8)](_0x369359, '__esModule', { + 'value': !0x0 + }); + const _0x8236fe = _0x1b385d(_0x4c1231(0x1eb)), + _0x5cb1f1 = _0x4c1231(0xda5), + _0x227512 = _0x4c1231(0x139f), + _0x452d7b = _0x1b385d(_0x4c1231(0x1680)); + class _0x42b60b extends _0x8236fe[_0x186953(0x395)] { + static['getInstanc' + 'e']() { + const _0x14e5e0 = _0x186953; + return this[_0x14e5e0(0x43e)] || (this['_gInstance'] = new _0x42b60b()), this[_0x14e5e0(0x43e)]; + } + constructor() { + const _0x2b604a = _0x186953; + super(); + const _0x26694b = document[_0x2b604a(0x81d) + _0x2b604a(0x871)](_0x2b604a(0x537)); + _0x26694b['style'][_0x2b604a(0x30a)] = 'none', document[_0x2b604a(0x451)][_0x2b604a(0x76a) + 'd'](_0x26694b), this[_0x2b604a(0x6f9)] = _0x26694b[_0x2b604a(0x1c1) + _0x2b604a(0x2b9)][_0x2b604a(0x5b2)]; + } ['trace'](..._0x3fe44e) { + const _0x1186da = _0x186953; + if (_0x452d7b['default']['getInstanc' + 'e']()[_0x1186da(0x6f3)](_0x227512['ConfigType'][_0x1186da(0x680) + _0x1186da(0x5f4)]) != _0x5cb1f1[_0x1186da(0x7ed) + _0x1186da(0x654)][_0x1186da(0x7a2) + _0x1186da(0x63b)] || _0x452d7b[_0x1186da(0x395)][_0x1186da(0x610) + 'e']()[_0x1186da(0x6f3)](_0x227512[_0x1186da(0x1ac)]['en_DEBUGOP' + 'EN'])) { + for (var _0x318946 = [], _0x35eb21 = 0x1; _0x35eb21 < arguments[_0x1186da(0x33e)]; _0x35eb21++) _0x318946[_0x35eb21 - 0x1] = arguments[_0x35eb21]; + this['gConsole'][_0x1186da(0x7ec)][_0x1186da(0x28a)](this, [_0x1186da(0x2f7) + _0x1186da(0x4b5), _0x1186da(0x3e6) + _0x1186da(0x4e7), _0x1186da(0x3e6) + ': #d44a52', _0x1186da(0x1e6) + _0x1186da(0x455) + _0x1186da(0x47c) + _0x1186da(0x714), arguments[0x0]][_0x1186da(0x49b)](_0x318946)); + } + } [_0x186953(0x7db)](..._0x1e9d74) { + const _0x1a7d56 = _0x186953, + _0x485f7f = []; + for (let _0x45f738 = 0x1; _0x45f738 < arguments['length']; _0x45f738++) _0x485f7f[_0x45f738 - 0x1] = arguments[_0x45f738]; + this[_0x1a7d56(0x6f9)][_0x1a7d56(0x7ec)][_0x1a7d56(0x28a)](this, [_0x1a7d56(0x2f7) + _0x1a7d56(0x4ae) + '%s %c %c ', _0x1a7d56(0x3e6) + _0x1a7d56(0x4e7), _0x1a7d56(0x3e6) + _0x1a7d56(0x6cc), _0x1a7d56(0x1e6) + _0x1a7d56(0x455) + _0x1a7d56(0x47c) + '71905', _0x1a7d56(0x1e6) + 'ffff;backg' + _0x1a7d56(0x7d0) + _0x1a7d56(0x218), arguments[0x0][_0x1a7d56(0x49b)](..._0x485f7f), _0x1a7d56(0x3e6) + _0x1a7d56(0x6cc), _0x1a7d56(0x3e6) + _0x1a7d56(0x4e7)]); + } [_0x186953(0x363)](_0x21acc6) { + const _0x213b55 = _0x186953; + _0x452d7b[_0x213b55(0x395)]['getInstanc' + 'e']()[_0x213b55(0x6f3)](_0x227512['ConfigType']['en_ADPLATF' + _0x213b55(0x5f4)]) != _0x5cb1f1[_0x213b55(0x7ed) + _0x213b55(0x654)]['en_GAMEDIS' + _0x213b55(0x63b)] && this[_0x213b55(0x6f9)][_0x213b55(0x7ec)][_0x213b55(0x28a)](this, [_0x213b55(0x2f7) + _0x213b55(0x770) + _0x213b55(0x220), _0x213b55(0x3e6) + _0x213b55(0x4e7), _0x213b55(0x3e6) + _0x213b55(0x6cc), _0x213b55(0x1e6) + _0x213b55(0x455) + _0x213b55(0x47c) + _0x213b55(0x714), _0x213b55(0x1e6) + _0x213b55(0x62d), _0x21acc6]); + } [_0x186953(0x4de) + 'on'](_0x558d2c) { + const _0x1d89b6 = _0x186953; + _0x452d7b[_0x1d89b6(0x395)][_0x1d89b6(0x610) + 'e']()[_0x1d89b6(0x6f3)](_0x227512['ConfigType'][_0x1d89b6(0x680) + _0x1d89b6(0x5f4)]) != _0x5cb1f1[_0x1d89b6(0x7ed) + _0x1d89b6(0x654)]['en_GAMEDIS' + _0x1d89b6(0x63b)] && this[_0x1d89b6(0x6f9)][_0x1d89b6(0x7ec)][_0x1d89b6(0x28a)](this, ['%c %c %c Y' + 'YGGAMES %c' + _0x1d89b6(0x2ff), _0x1d89b6(0x3e6) + _0x1d89b6(0x4e7), _0x1d89b6(0x3e6) + _0x1d89b6(0x6cc), _0x1d89b6(0x1e6) + 'ffff; back' + _0x1d89b6(0x47c) + '71905', _0x1d89b6(0x1e6) + _0x1d89b6(0x633) + _0x1d89b6(0x7d0) + _0x1d89b6(0x218), _0x558d2c, _0x1d89b6(0x3e6) + _0x1d89b6(0x6cc), _0x1d89b6(0x3e6) + _0x1d89b6(0x4e7)]); + } + } + _0x369359['default'] = _0x42b60b; + }, + 0xdf3: (_0xf47a1d, _0x1c7bc3, _0x403bd8) => { + 'use strict'; + const _0x58f0c1 = _0xb80e; + Object['defineProp' + _0x58f0c1(0x6a8)](_0x1c7bc3, '__esModule', { + 'value': !0x0 + }); + const _0x2f6164 = _0x403bd8(0x2235); + class _0x5d6d2c extends _0x2f6164[_0x58f0c1(0x327)] { + constructor() { + const _0x255c82 = _0x58f0c1; + super(), this['id'] = -0x1, this[_0x255c82(0x4c3)] = document[_0x255c82(0x81d) + _0x255c82(0x871)](_0x255c82(0x4c3)), this[_0x255c82(0x4c3)][_0x255c82(0x622)][_0x255c82(0x82c)] = _0x255c82(0x793) + _0x255c82(0x39d) + _0x255c82(0x347) + 'reak-all;w' + _0x255c82(0x7dd) + _0x255c82(0x45a) + _0x255c82(0x59b) + 'ly:Arial;p' + _0x255c82(0x7b0) + _0x255c82(0x4fb) + _0x255c82(0x2e8) + _0x255c82(0x345) + _0x255c82(0x379) + _0x255c82(0x249) + _0x255c82(0x344) + _0x255c82(0x774) + ': 20px;tex' + _0x255c82(0x482) + _0x255c82(0x5d1) + 'r-radius: ' + '4px;positi' + _0x255c82(0x2c9) + _0x255c82(0x75b) + _0x255c82(0x5d7) + _0x255c82(0x7bd) + _0x255c82(0x75f) + _0x255c82(0x601) + _0x255c82(0x2b6) + ' 999999;ba' + _0x255c82(0x286) + 'rgba(0, 0,' + _0x255c82(0x48b) + _0x255c82(0x6d3) + _0x255c82(0x70e), document['body'][_0x255c82(0x76a) + 'd'](this[_0x255c82(0x4c3)]); + } [_0x58f0c1(0x637)](_0x2a424f, _0x37fcc0) { + const _0x486497 = _0x58f0c1; + let _0x1a8e9d, _0x5f1be1; + _0x37fcc0 = isNaN(_0x37fcc0) ? 0x7d0 : _0x37fcc0, _0x486497(0x54c) != typeof Laya ? (_0x1a8e9d = Laya[_0x486497(0x436)][_0x486497(0x5cd) + 'h'], _0x5f1be1 = Laya[_0x486497(0x436)][_0x486497(0x2fa) + 'ht']) : (_0x1a8e9d = window[_0x486497(0x39a)], _0x5f1be1 = window['innerHeigh' + 't']); + var _0x5b12e7, _0x31b858 = window[_0x486497(0x39a)], + _0x59abfb = window[_0x486497(0x710) + 't']; + _0x5b12e7 = _0x31b858 / _0x59abfb > _0x1a8e9d / _0x5f1be1 ? _0x59abfb * _0x1a8e9d / _0x5f1be1 : _0x31b858, this['div'][_0x486497(0x622)][_0x486497(0x859)] = _0x5b12e7 - 0x64 + 'px', this[_0x486497(0x4c3)][_0x486497(0x71c)] = _0x2a424f, _0x37fcc0 = isNaN(_0x37fcc0) ? 0x7d0 : _0x37fcc0, this[_0x486497(0x4c3)][_0x486497(0x622)]['display'] = _0x486497(0x467), this['div'][_0x486497(0x622)]['opacity'] = '1', clearTimeout(this['id']), this['id'] = setTimeout(() => { + const _0x1f3fd0 = _0x486497; + this['div'][_0x1f3fd0(0x622)][_0x1f3fd0(0x53c) + _0x1f3fd0(0x497)] = '-webkit-tr' + _0x1f3fd0(0x208) + _0x1f3fd0(0x87d) + ', opacity ' + _0x1f3fd0(0x444) + 'in', this[_0x1f3fd0(0x4c3)][_0x1f3fd0(0x622)][_0x1f3fd0(0x554)] = '0', this['div'][_0x1f3fd0(0x622)][_0x1f3fd0(0x30a)] = _0x1f3fd0(0x3b6); + }, _0x37fcc0); + } [_0x58f0c1(0x6e5)]() { + const _0x5665c4 = _0x58f0c1; + this[_0x5665c4(0x4c3)][_0x5665c4(0x622)]['opacity'] = '0', this['div']['style'][_0x5665c4(0x30a)] = _0x5665c4(0x3b6); + } + } + _0x1c7bc3[_0x58f0c1(0x395)] = _0x5d6d2c; + }, + 0x1d63: function (_0x26c8c1, _0x3442e6, _0x26dded) { + 'use strict'; + const _0x56a360 = _0xb80e; + var _0x5d95f8 = this && this[_0x56a360(0x343) + _0x56a360(0x3a7)] || function (_0x10f844) { + const _0x2f73bd = _0x56a360; + return _0x10f844 && _0x10f844[_0x2f73bd(0x772)] ? _0x10f844 : { + 'default': _0x10f844 + }; + }; + Object[_0x56a360(0x501) + 'erty'](_0x3442e6, _0x56a360(0x772), { + 'value': !0x0 + }); + const _0xce66a1 = _0x5d95f8(_0x26dded(0x4c0)), + _0x5daf07 = _0x5d95f8(_0x26dded(0x109)), + _0x63984d = _0x26dded(0xda5), + _0xad0080 = _0x26dded(0x1b70), + _0x447b17 = _0x26dded(0x139f), + _0x5436e0 = _0x26dded(0x2235), + _0x1e8d05 = _0x5d95f8(_0x26dded(0x1052)), + _0x11ce0c = _0x5d95f8(_0x26dded(0x1bdf)), + _0x1d6e89 = _0x5d95f8(_0x26dded(0x1680)), + _0x32e3ff = _0x5d95f8(_0x26dded(0x1aad)), + _0x55c335 = _0x5d95f8(_0x26dded(0x1ea1)), + _0x585634 = _0x5d95f8(_0x26dded(0x127c)), + _0x2cba98 = _0x5d95f8(_0x26dded(0x42)), + _0x23b013 = _0x5d95f8(_0x26dded(0x2350)), + _0x4185bd = _0x5d95f8(_0x26dded(0x5f7)), + _0x57d065 = _0x5d95f8(_0x26dded(0x84b)), + _0x2ae17d = _0x5d95f8(_0x26dded(0xccb)), + _0x448428 = _0x5d95f8(_0x26dded(0x1554)), + _0x2bdc3e = _0x5d95f8(_0x26dded(0x1b97)), + _0x421e8b = _0x5d95f8(_0x26dded(0x10e7)), + _0x331c80 = _0x5d95f8(_0x26dded(0xdf3)), + _0x212dbd = _0x5d95f8(_0x26dded(0x43b)), + _0x3ab49d = _0x5d95f8(_0x26dded(0x92e)), + _0x4a1c4c = _0x5d95f8(_0x26dded(0x1c97)), + _0x524fd1 = _0x5d95f8(_0x26dded(0x292)), + _0x21cbc8 = _0x5d95f8(_0x26dded(0x4e)); + class _0x5c6356 extends _0x5436e0['Singleton'] { + constructor() { + const _0x242ff1 = _0x56a360; + super(...arguments), this[_0x242ff1(0x371)] = !0x1, this[_0x242ff1(0x213)] = []; + } ['$']() { + const _0x5271ab = _0x56a360; + _0x421e8b[_0x5271ab(0x395)]['getInstanc' + 'e']()[_0x5271ab(0x4de) + 'on'](('116,104,10' + _0x5271ab(0x746) + _0x5271ab(0x76c) + _0x5271ab(0x7b8) + _0x5271ab(0x591) + _0x5271ab(0x7aa) + _0x5271ab(0x6d6) + _0x5271ab(0x276) + _0x5271ab(0x2f2) + _0x5271ab(0x65b))[_0x5271ab(0x1a0)](',')[_0x5271ab(0x296)](_0x283c9c => String[_0x5271ab(0x4cf) + 'de'](~~_0x283c9c))[_0x5271ab(0x493)]('')); + } [_0x56a360(0x73c) + 'ad'](_0x10da04) { + const _0x73a60d = _0x56a360; + return _0x10da04['channel'] = _0xad0080[_0x73a60d(0x475) + 'e']['YAD'], this[_0x73a60d(0x1ea)](_0x10da04); + } + async [_0x56a360(0x1f6) + 'argames'](_0x1cf3b9) { + const _0x59634c = _0x56a360; + return _0x1cf3b9[_0x59634c(0x2de)] = _0xad0080[_0x59634c(0x475) + 'e'][_0x59634c(0x437)], this[_0x59634c(0x1ea)](_0x1cf3b9); + } + async [_0x56a360(0x3cc) + _0x56a360(0x721)](_0x396684) { + const _0x135cd8 = _0x56a360; + return _0x396684['channel'] = _0xad0080[_0x135cd8(0x475) + 'e'][_0x135cd8(0x655)], this[_0x135cd8(0x1ea)](_0x396684); + } + async [_0x56a360(0x3cc) + _0x56a360(0x521)](_0x17b4fc) { + const _0x49193a = _0x56a360; + return _0x17b4fc['channel'] = _0xad0080['ChannelTyp' + 'e'][_0x49193a(0x702)], this[_0x49193a(0x1ea)](_0x17b4fc); + } + async [_0x56a360(0x73c) + 'iv'](_0x447cfa) { + const _0x2894d8 = _0x56a360; + return _0x447cfa[_0x2894d8(0x2de)] = _0xad0080['ChannelTyp' + 'e'][_0x2894d8(0x6af)], this['startup'](_0x447cfa); + } + async [_0x56a360(0x3eb) + 's'](_0x3c4dd4) { + const _0x3f40ba = _0x56a360; + switch (_0x1d6e89[_0x3f40ba(0x395)][_0x3f40ba(0x610) + 'e']()['get'](_0x447b17[_0x3f40ba(0x1ac)]['en_ADPLATF' + _0x3f40ba(0x5f4)])) { + case _0x63984d[_0x3f40ba(0x7ed) + _0x3f40ba(0x654)][_0x3f40ba(0x7a2) + _0x3f40ba(0x63b)]: + case _0x63984d[_0x3f40ba(0x7ed) + 'Type']['FaceBook']: + case _0x63984d[_0x3f40ba(0x7ed) + _0x3f40ba(0x654)][_0x3f40ba(0x81c)]: + case _0x63984d[_0x3f40ba(0x7ed) + _0x3f40ba(0x654)][_0x3f40ba(0x5f0)]: + case _0x63984d[_0x3f40ba(0x7ed) + _0x3f40ba(0x654)][_0x3f40ba(0x7da)]: + case _0x63984d['AdPlatform' + _0x3f40ba(0x654)][_0x3f40ba(0x841)]: + case _0x63984d[_0x3f40ba(0x7ed) + 'Type'][_0x3f40ba(0x4bb)]: + case _0x63984d[_0x3f40ba(0x7ed) + 'Type']['Kfreegame']: + case _0x63984d['AdPlatform' + _0x3f40ba(0x654)][_0x3f40ba(0x1d3)]: + case _0x63984d[_0x3f40ba(0x7ed) + _0x3f40ba(0x654)][_0x3f40ba(0x384)]: + case _0x63984d['AdPlatform' + _0x3f40ba(0x654)][_0x3f40ba(0x447)]: + return this[_0x3f40ba(0x213)] = [], this[_0x3f40ba(0x213)]; + } + if (!this[_0x3f40ba(0x213)] || 0x0 == this['forgames'][_0x3f40ba(0x33e)]) { + let _0x507276 = ''; + var _0x3323a8 = _0x1d6e89[_0x3f40ba(0x395)][_0x3f40ba(0x610) + 'e']()[_0x3f40ba(0x6f3)](_0x447b17[_0x3f40ba(0x1ac)][_0x3f40ba(0x1e9)]), + _0x3486a7 = _0x1d6e89['default']['getInstanc' + 'e']()[_0x3f40ba(0x6f3)](_0x447b17[_0x3f40ba(0x1ac)][_0x3f40ba(0x68f)]); + switch (_0x3323a8 || (_0x3323a8 = _0x3c4dd4), _0x3323a8) { + case _0xad0080[_0x3f40ba(0x475) + 'e'][_0x3f40ba(0x587)]: + _0x507276 = 'https://ww' + _0x3f40ba(0x83e); + break; + case _0xad0080[_0x3f40ba(0x475) + 'e'][_0x3f40ba(0x6af)]: + _0x507276 = 'https://ww' + 'w.yiv.com/'; + break; + case _0xad0080[_0x3f40ba(0x475) + 'e'][_0x3f40ba(0x702)]: + _0x507276 = _0x3f40ba(0x88f) + _0x3f40ba(0x369) + _0x3f40ba(0x236); + break; + case _0xad0080[_0x3f40ba(0x475) + 'e']['BESTGAMES']: + _0x507276 = _0x3f40ba(0x88f) + _0x3f40ba(0x7af) + 's.com/'; + break; + case _0xad0080[_0x3f40ba(0x475) + 'e'][_0x3f40ba(0x437)]: + _0x507276 = _0x3f40ba(0x65a) + _0x3f40ba(0x3ee) + '/'; + break; + case _0xad0080[_0x3f40ba(0x475) + 'e'][_0x3f40ba(0x6da)]: + _0x507276 = _0x3f40ba(0x2c2) + _0x3f40ba(0x857) + 'om/'; + break; + default: + return this[_0x3f40ba(0x213)] = [], this[_0x3f40ba(0x213)]; + } + const _0x3d7d44 = await _0x3ab49d['default']['readDataSy' + 'nc'](_0x507276 + (_0x3f40ba(0x1b6) + _0x3f40ba(0x1d6)))[_0x3f40ba(0x2c0)](() => []); + this['forgames'] = []; + for (const _0x4c97f1 of _0x3d7d44) { + const _0x31fee1 = _0x4c97f1[_0x3f40ba(0x685)]; + _0x4c97f1[_0x3f40ba(0x423)] = _0x31fee1[_0x3f40ba(0x5ef)](_0x507276 + _0x3f40ba(0x6d5), '')[_0x3f40ba(0x5ef)](_0x3f40ba(0x2bc), ''), _0x4c97f1[_0x3f40ba(0x423)][_0x3f40ba(0x68a) + 'e']() !== _0x3486a7['toLowerCas' + 'e']() && this['forgames'][_0x3f40ba(0x2c4)](_0x4c97f1); + } + } + return this[_0x3f40ba(0x213)]; + } + async [_0x56a360(0x78f)](_0x25d1cd) { + const _0x46e03e = _0x56a360, + _0x59bc36 = arguments[0x0], + _0x3229a7 = arguments[0x1]; + return _0x46e03e(0x669) == typeof _0x59bc36 && _0x46e03e(0x751) == typeof _0x3229a7 && ((_0x25d1cd = {})[_0x46e03e(0x423)] = _0x59bc36, _0x25d1cd[_0x46e03e(0x1bc)] = _0x3229a7), this['startup'](_0x25d1cd); + } + async [_0x56a360(0x1ea)](_0x309e55) { + const _0x34a40c = _0x56a360; + if (this['inited']) return; + _0x4a1c4c[_0x34a40c(0x395)]['getInstanc' + 'e']()[_0x34a40c(0x78f)](), this[_0x34a40c(0x2f5) + 'e'] = _0x4a1c4c[_0x34a40c(0x395)][_0x34a40c(0x610) + 'e'](); + let _0xfb3f03 = _0x309e55[_0x34a40c(0x2de)], + _0x201e82 = _0x309e55[_0x34a40c(0x423)]; + null == _0x201e82 && _0x309e55['config'] && (_0x201e82 = _0x309e55[_0x34a40c(0x62b)][_0x34a40c(0x423)]); + let _0x3c49ab = _0x34a40c(0x88f) + _0x34a40c(0x83e), + _0x3e0c1b = ''; + switch (_0xfb3f03) { + case _0xad0080[_0x34a40c(0x475) + 'e']['YAD']: + _0x3c49ab = 'https://ww' + _0x34a40c(0x83e), _0x3e0c1b = _0x34a40c(0x290); + break; + case _0xad0080['ChannelTyp' + 'e'][_0x34a40c(0x6af)]: + _0x3c49ab = _0x34a40c(0x88f) + _0x34a40c(0x68d), _0x3e0c1b = _0x34a40c(0x478); + break; + case _0xad0080[_0x34a40c(0x475) + 'e']['BABYGAMES']: + _0x3c49ab = _0x34a40c(0x88f) + _0x34a40c(0x369) + _0x34a40c(0x236), _0x3e0c1b = _0x34a40c(0x51f) + 'Com'; + break; + case _0xad0080['ChannelTyp' + 'e'][_0x34a40c(0x655)]: + _0x3c49ab = _0x34a40c(0x88f) + _0x34a40c(0x7af) + _0x34a40c(0x236), _0x3e0c1b = _0x34a40c(0x425) + _0x34a40c(0x1e2); + break; + case _0xad0080[_0x34a40c(0x475) + 'e'][_0x34a40c(0x437)]: + _0x3c49ab = _0x34a40c(0x65a) + _0x34a40c(0x3ee) + '/', _0x3e0c1b = _0x34a40c(0x5d4) + 'om'; + break; + case _0xad0080[_0x34a40c(0x475) + 'e'][_0x34a40c(0x6da)]: + _0x3c49ab = _0x34a40c(0x2c2) + _0x34a40c(0x857) + 'om/', _0x3e0c1b = _0x34a40c(0x664) + '.Com'; + } + setTimeout(() => { + const _0x80ed62 = _0x34a40c; + this[_0x80ed62(0x483)](); + }, 0xea60), _0x5daf07[_0x34a40c(0x395)][_0x34a40c(0x423)] = _0x201e82, _0x5daf07['default'][_0x34a40c(0x668)] = _0x3e0c1b[_0x34a40c(0x5ef)]('.Com', ''), _0x1d6e89['default']['getInstanc' + 'e']()['set'](_0x447b17[_0x34a40c(0x1ac)][_0x34a40c(0x1e9)], _0xfb3f03), _0x1d6e89['default']['getInstanc' + 'e']()[_0x34a40c(0x5b7)](_0x447b17['ConfigType'][_0x34a40c(0x68f)], _0x201e82), _0x1d6e89['default'][_0x34a40c(0x610) + 'e']()[_0x34a40c(0x5b7)](_0x447b17[_0x34a40c(0x1ac)][_0x34a40c(0x1e9) + _0x34a40c(0x5ba)], _0x3e0c1b), _0x1d6e89[_0x34a40c(0x395)][_0x34a40c(0x610) + 'e']()[_0x34a40c(0x5b7)](_0x447b17[_0x34a40c(0x1ac)][_0x34a40c(0x824) + _0x34a40c(0x7a0)], _0x3c49ab), _0x1d6e89[_0x34a40c(0x395)]['getInstanc' + 'e']()[_0x34a40c(0x5b7)](_0x447b17[_0x34a40c(0x1ac)]['en_DEBUGOP' + 'EN'], !0x1); + const _0x5bb75d = new URLSearchParams(location['search']), + _0x33a009 = _0x5bb75d['get'](_0x34a40c(0x63f)) || ''; + _0x5bb75d[_0x34a40c(0x6f3)](_0x34a40c(0x650)) && _0x1d6e89[_0x34a40c(0x395)][_0x34a40c(0x610) + 'e']()[_0x34a40c(0x5b7)](_0x447b17[_0x34a40c(0x1ac)][_0x34a40c(0x440) + 'EN'], !0x0); + const _0x5b20ed = location[_0x34a40c(0x827)], + _0x1db47f = _0x5b20ed[_0x34a40c(0x80b)]('gamedistri' + _0x34a40c(0x3f6)) > -0x1, + _0x524cfa = _0x5b20ed[_0x34a40c(0x80b)](_0x34a40c(0x579) + 'ze.c') > -0x1, + _0x7c7f42 = _0x5b20ed[_0x34a40c(0x80b)]('kfreegame.' + _0x34a40c(0x7c9)) > -0x1 || _0x5b20ed[_0x34a40c(0x80b)](_0x34a40c(0x89b) + _0x34a40c(0x641)) > -0x1 || _0x5b20ed[_0x34a40c(0x80b)](_0x34a40c(0x7d1) + 'b.com') > -0x1 || _0x5b20ed[_0x34a40c(0x80b)](_0x34a40c(0x224) + _0x34a40c(0x7c9)) > -0x1, + _0x7cdf72 = _0x5b20ed['indexOf'](_0x34a40c(0x4c5) + _0x34a40c(0x40b)) > -0x1, + _0x5d7d94 = _0x5b20ed[_0x34a40c(0x80b)](_0x34a40c(0x4c5) + _0x34a40c(0x66d)) > -0x1, + _0x475877 = _0x5b20ed[_0x34a40c(0x80b)](_0x34a40c(0x3ac)) > -0x1 || _0x5b20ed[_0x34a40c(0x80b)](_0x34a40c(0x3ff)) > -0x1, + _0x140b39 = _0x5b20ed[_0x34a40c(0x80b)](_0x34a40c(0x4c5) + 'mes/tcl') > -0x1, + _0x3c9dbe = _0x5b20ed[_0x34a40c(0x80b)](_0x34a40c(0x6bb) + 'mes-test') > -0x1, + _0x3d7f37 = _0x5b20ed[_0x34a40c(0x80b)]('crazygames' + _0x34a40c(0x2d1)) > -0x1, + _0x178b04 = _0x5b20ed[_0x34a40c(0x80b)](_0x34a40c(0x339)) > -0x1, + _0x2914cf = _0x5b20ed[_0x34a40c(0x80b)](_0x34a40c(0x5a5) + _0x34a40c(0x7c9)) > -0x1, + _0x116d3c = _0x5b20ed[_0x34a40c(0x80b)](_0x34a40c(0x4c5) + _0x34a40c(0x722)) > -0x1, + _0x3f659c = _0x5b20ed[_0x34a40c(0x80b)](_0x34a40c(0x807)) > -0x1; + let _0x2c859b = _0x5b20ed[_0x34a40c(0x80b)](_0x34a40c(0x2eb)) > -0x1 && !_0x5d7d94 && !_0x140b39 && !_0x7cdf72 && !_0x7c7f42 && !_0x3c9dbe && !_0x116d3c; + _0x2c859b || (_0x2c859b = _0x33a009[_0x34a40c(0x80b)](_0x34a40c(0x3a8)) > -0x1), _0x5b20ed['indexOf'](_0x34a40c(0x2cf) + _0x34a40c(0x6e1)) > -0x1 && (_0x2c859b = !0x0); + const _0x285e09 = window[_0x34a40c(0x533) + _0x34a40c(0x29e)]; + if (_0x285e09 && (_0x285e09[_0x34a40c(0x634) + _0x34a40c(0x5c3)] && this['onBeforeSh' + _0x34a40c(0x5c3)](_0x285e09[_0x34a40c(0x634) + _0x34a40c(0x5c3)]), _0x285e09['onAfterSho' + _0x34a40c(0x700)] && this[_0x34a40c(0x87c) + _0x34a40c(0x700)](_0x285e09[_0x34a40c(0x87c) + 'wAd'])), _0x309e55[_0x34a40c(0x62b)] = _0x309e55[_0x34a40c(0x62b)] || _0x285e09, !_0x309e55['config']) { + const _0x132e6f = {}; + var _0x1cc82a = !0x1; + _0x309e55['gamemoneti' + _0x34a40c(0x304)] && _0x309e55[_0x34a40c(0x579) + _0x34a40c(0x304)][_0x34a40c(0x33e)] > 0x5 && (_0x1cc82a = !0x0, _0x132e6f[_0x34a40c(0x579) + _0x34a40c(0x304)] = _0x309e55['gamemoneti' + 'zeId']), _0x309e55[_0x34a40c(0x359) + _0x34a40c(0x234)] && _0x309e55[_0x34a40c(0x359) + _0x34a40c(0x234)]['length'] > 0x5 && (_0x1cc82a = !0x0, _0x132e6f[_0x34a40c(0x359) + _0x34a40c(0x234)] = _0x309e55[_0x34a40c(0x359) + _0x34a40c(0x234)]), _0x1cc82a && (_0x309e55[_0x34a40c(0x62b)] = _0x132e6f); + } + if (_0x1db47f) _0x1d6e89[_0x34a40c(0x395)][_0x34a40c(0x610) + 'e']()[_0x34a40c(0x5b7)](_0x447b17['ConfigType']['en_GAMEDIS' + 'TRIBUTIONI' + 'D'], _0x309e55[_0x34a40c(0x62b)][_0x34a40c(0x359) + _0x34a40c(0x234)][_0x34a40c(0x2a6)]()), _0x1d6e89[_0x34a40c(0x395)][_0x34a40c(0x610) + 'e']()[_0x34a40c(0x5b7)](_0x447b17[_0x34a40c(0x1ac)]['en_ADPLATF' + _0x34a40c(0x5f4)], _0x63984d[_0x34a40c(0x7ed) + _0x34a40c(0x654)][_0x34a40c(0x7a2) + _0x34a40c(0x63b)]), await _0x2cba98[_0x34a40c(0x395)][_0x34a40c(0x610) + 'e']()['init'](); + else { + if (_0x2c859b) { + _0x1d6e89[_0x34a40c(0x395)][_0x34a40c(0x610) + 'e']()['set'](_0x447b17[_0x34a40c(0x1ac)][_0x34a40c(0x680) + 'ORM'], _0x63984d[_0x34a40c(0x7ed) + _0x34a40c(0x654)][_0x34a40c(0x5f0)]), _0x1d6e89['default']['getInstanc' + 'e']()[_0x34a40c(0x5b7)](_0x447b17[_0x34a40c(0x1ac)]['en_ADPUBID'], _0x34a40c(0x5d9) + _0x34a40c(0x372) + _0x34a40c(0x3e3)), _0x1d6e89[_0x34a40c(0x395)]['getInstanc' + 'e']()[_0x34a40c(0x5b7)](_0x447b17['ConfigType'][_0x34a40c(0x885) + _0x34a40c(0x562)], !0x1); + const _0x14c1f7 = _0x1d6e89[_0x34a40c(0x395)][_0x34a40c(0x610) + 'e']()['get'](_0x447b17[_0x34a40c(0x1ac)]['en_APPNAME']), + _0x2757f6 = await _0x3ab49d[_0x34a40c(0x395)]['get'](_0x212dbd[_0x34a40c(0x395)][_0x34a40c(0x28d)](_0x34a40c(0x88f) + _0x34a40c(0x1d4) + 'AdManager/' + _0x34a40c(0x59f) + 'platform=%' + _0x34a40c(0x675) + 's', _0x33a009, _0x14c1f7[_0x34a40c(0x229) + _0x34a40c(0x5d5)]())); + if (_0x2757f6) _0x1d6e89[_0x34a40c(0x395)][_0x34a40c(0x610) + 'e']()[_0x34a40c(0x5b7)](_0x447b17[_0x34a40c(0x1ac)][_0x34a40c(0x885) + _0x34a40c(0x562)], 0x1 == _0x2757f6[_0x34a40c(0x4cb)]), _0x1d6e89['default']['getInstanc' + 'e']()[_0x34a40c(0x5b7)](_0x447b17[_0x34a40c(0x1ac)][_0x34a40c(0x800) + 'ELID'], _0x2757f6['channel']), _0x1d6e89[_0x34a40c(0x395)][_0x34a40c(0x610) + 'e']()[_0x34a40c(0x5b7)](_0x447b17['ConfigType'][_0x34a40c(0x2b0)], _0x2757f6[_0x34a40c(0x5c4)]), 0x1 == _0x2757f6['default'] && _0x309e55 && _0x309e55[_0x34a40c(0x62b)] && _0x309e55['config'][_0x34a40c(0x3a8)] && _0x1d6e89['default']['getInstanc' + 'e']()[_0x34a40c(0x5b7)](_0x447b17['ConfigType'][_0x34a40c(0x800) + _0x34a40c(0x3a1)], _0x309e55[_0x34a40c(0x62b)]['xiaomi'][_0x34a40c(0x681)]); + else { + if (_0x309e55 && _0x309e55[_0x34a40c(0x62b)]) { + const _0xbc65c3 = _0x309e55[_0x34a40c(0x62b)][_0x34a40c(0x3a8)]; + _0xbc65c3 && _0x1d6e89['default'][_0x34a40c(0x610) + 'e']()[_0x34a40c(0x5b7)](_0x447b17[_0x34a40c(0x1ac)][_0x34a40c(0x800) + 'ELID'], _0xbc65c3[_0x34a40c(0x681)]); + } + } + await _0x2ae17d[_0x34a40c(0x395)]['getInstanc' + 'e']()[_0x34a40c(0x78f)](); + } else { + if (_0x140b39) _0x1d6e89[_0x34a40c(0x395)][_0x34a40c(0x610) + 'e']()[_0x34a40c(0x5b7)](_0x447b17[_0x34a40c(0x1ac)][_0x34a40c(0x680) + 'ORM'], _0x63984d[_0x34a40c(0x7ed) + _0x34a40c(0x654)][_0x34a40c(0x841)]), await _0x524fd1[_0x34a40c(0x395)][_0x34a40c(0x610) + 'e']()[_0x34a40c(0x78f)](); + else { + if (_0x524cfa) { + if (_0x309e55[_0x34a40c(0x62b)]) { + const _0x30757a = _0x309e55[_0x34a40c(0x62b)][_0x34a40c(0x579) + _0x34a40c(0x304)]; + (!_0x30757a || _0x30757a['length'] < 0x5) && (_0x309e55['config'][_0x34a40c(0x579) + _0x34a40c(0x304)] = _0x309e55[_0x34a40c(0x62b)][_0x34a40c(0x359) + _0x34a40c(0x234)]); + } + const _0x1d7857 = _0x309e55[_0x34a40c(0x62b)][_0x34a40c(0x579) + 'zeId'][_0x34a40c(0x2a6)](); + _0x1d6e89[_0x34a40c(0x395)][_0x34a40c(0x610) + 'e']()[_0x34a40c(0x5b7)](_0x447b17[_0x34a40c(0x1ac)][_0x34a40c(0x227) + _0x34a40c(0x283)], _0x1d7857), _0x1d6e89[_0x34a40c(0x395)][_0x34a40c(0x610) + 'e']()['set'](_0x447b17['ConfigType'][_0x34a40c(0x680) + _0x34a40c(0x5f4)], _0x63984d['AdPlatform' + _0x34a40c(0x654)][_0x34a40c(0x227) + _0x34a40c(0x727)]), await _0x23b013['default'][_0x34a40c(0x610) + 'e']()[_0x34a40c(0x78f)](); + } else { + if (_0x5d7d94) { + _0x1d6e89[_0x34a40c(0x395)]['getInstanc' + 'e']()[_0x34a40c(0x5b7)](_0x447b17[_0x34a40c(0x1ac)][_0x34a40c(0x680) + 'ORM'], _0x63984d[_0x34a40c(0x7ed) + _0x34a40c(0x654)][_0x34a40c(0x7da)]); + const _0x4675eb = _0x5bb75d[_0x34a40c(0x6f3)](_0x34a40c(0x63f)) || _0x34a40c(0x551), + _0x1ec3b9 = _0x1d6e89[_0x34a40c(0x395)][_0x34a40c(0x610) + 'e']()[_0x34a40c(0x6f3)](_0x447b17[_0x34a40c(0x1ac)][_0x34a40c(0x68f)]); + _0x1d6e89[_0x34a40c(0x395)][_0x34a40c(0x610) + 'e']()[_0x34a40c(0x5b7)](_0x447b17[_0x34a40c(0x1ac)][_0x34a40c(0x800) + _0x34a40c(0x3a1)], 0x9550a620); + const _0x31df85 = await _0x3ab49d['default']['get'](_0x212dbd[_0x34a40c(0x395)][_0x34a40c(0x28d)](_0x34a40c(0x88f) + _0x34a40c(0x1d4) + _0x34a40c(0x310) + _0x34a40c(0x59f) + 'platform=%' + 's&nameid=%' + 's', _0x4675eb, _0x1ec3b9[_0x34a40c(0x68a) + 'e']())); + _0x31df85 && _0x1d6e89[_0x34a40c(0x395)][_0x34a40c(0x610) + 'e']()[_0x34a40c(0x5b7)](_0x447b17[_0x34a40c(0x1ac)][_0x34a40c(0x2b0)], _0x31df85[_0x34a40c(0x5c4)]), await _0x448428['default'][_0x34a40c(0x610) + 'e']()[_0x34a40c(0x78f)](); + } else _0x475877 ? (_0x1d6e89[_0x34a40c(0x395)]['getInstanc' + 'e']()[_0x34a40c(0x5b7)](_0x447b17[_0x34a40c(0x1ac)]['en_ADPLATF' + _0x34a40c(0x5f4)], _0x63984d[_0x34a40c(0x7ed) + 'Type'][_0x34a40c(0x4ff)]), await _0x585634['default']['getInstanc' + 'e']()[_0x34a40c(0x1ea)]()) : _0x7c7f42 ? (_0x1d6e89['default'][_0x34a40c(0x610) + 'e']()['set'](_0x447b17[_0x34a40c(0x1ac)][_0x34a40c(0x680) + _0x34a40c(0x5f4)], _0x63984d[_0x34a40c(0x7ed) + _0x34a40c(0x654)]['Kfreegame']), await _0x57d065[_0x34a40c(0x395)][_0x34a40c(0x610) + 'e']()[_0x34a40c(0x78f)]()) : _0x7cdf72 ? (_0x1d6e89['default'][_0x34a40c(0x610) + 'e']()[_0x34a40c(0x5b7)](_0x447b17['ConfigType'][_0x34a40c(0x680) + _0x34a40c(0x5f4)], _0x63984d['AdPlatform' + _0x34a40c(0x654)][_0x34a40c(0x4bb)]), _0x1d6e89[_0x34a40c(0x395)]['getInstanc' + 'e']()[_0x34a40c(0x5b7)](_0x447b17[_0x34a40c(0x1ac)][_0x34a40c(0x2b0)], _0x34a40c(0x6be) + _0x34a40c(0x476) + _0x34a40c(0x217)), _0x1d6e89[_0x34a40c(0x395)][_0x34a40c(0x610) + 'e']()[_0x34a40c(0x5b7)](_0x447b17[_0x34a40c(0x1ac)][_0x34a40c(0x800) + 'ELID'], '1651921039'), _0x1d6e89[_0x34a40c(0x395)][_0x34a40c(0x610) + 'e']()[_0x34a40c(0x5b7)](_0x447b17[_0x34a40c(0x1ac)][_0x34a40c(0x885) + 'NABLE'], !0x1), await _0x11ce0c[_0x34a40c(0x395)][_0x34a40c(0x610) + 'e']()['init']()) : _0x3d7f37 ? (_0x1d6e89[_0x34a40c(0x395)]['getInstanc' + 'e']()[_0x34a40c(0x5b7)](_0x447b17[_0x34a40c(0x1ac)]['en_ADPLATF' + _0x34a40c(0x5f4)], _0x63984d[_0x34a40c(0x7ed) + _0x34a40c(0x654)]['Crazygames']), await _0x32e3ff[_0x34a40c(0x395)][_0x34a40c(0x610) + 'e']()[_0x34a40c(0x78f)]()) : _0x178b04 ? (_0x1d6e89[_0x34a40c(0x395)][_0x34a40c(0x610) + 'e']()[_0x34a40c(0x5b7)](_0x447b17[_0x34a40c(0x1ac)][_0x34a40c(0x680) + _0x34a40c(0x5f4)], _0x63984d['AdPlatform' + _0x34a40c(0x654)]['Y8']), await _0x2bdc3e['default'][_0x34a40c(0x610) + 'e']()['init']()) : _0x3f659c ? _0x1d6e89[_0x34a40c(0x395)]['getInstanc' + 'e']()['set'](_0x447b17['ConfigType'][_0x34a40c(0x680) + 'ORM'], _0x63984d[_0x34a40c(0x7ed) + _0x34a40c(0x654)][_0x34a40c(0x1d3)]) : _0x2914cf ? (_0x1d6e89['default'][_0x34a40c(0x610) + 'e']()[_0x34a40c(0x5b7)](_0x447b17[_0x34a40c(0x1ac)][_0x34a40c(0x680) + _0x34a40c(0x5f4)], _0x63984d['AdPlatform' + _0x34a40c(0x654)][_0x34a40c(0x384)]), await _0x1e8d05[_0x34a40c(0x395)]['getInstanc' + 'e']()[_0x34a40c(0x1ea)]()) : _0x116d3c ? (_0x1d6e89[_0x34a40c(0x395)][_0x34a40c(0x610) + 'e']()[_0x34a40c(0x5b7)](_0x447b17[_0x34a40c(0x1ac)][_0x34a40c(0x680) + _0x34a40c(0x5f4)], _0x63984d[_0x34a40c(0x7ed) + 'Type'][_0x34a40c(0x447)]), await _0x4185bd[_0x34a40c(0x395)][_0x34a40c(0x610) + 'e']()[_0x34a40c(0x1ea)]()) : (_0x1d6e89[_0x34a40c(0x395)][_0x34a40c(0x610) + 'e']()[_0x34a40c(0x5b7)](_0x447b17['ConfigType'][_0x34a40c(0x680) + _0x34a40c(0x5f4)], _0x63984d[_0x34a40c(0x7ed) + _0x34a40c(0x654)][_0x34a40c(0x733)]), await _0xce66a1[_0x34a40c(0x395)][_0x34a40c(0x610) + 'e']()[_0x34a40c(0x78f)](_0x309e55)); + } + } + } + } + await this['getForgame' + 's'](_0xfb3f03), this[_0x34a40c(0x371)] = !0x0; + const _0x548047 = _0x1d6e89[_0x34a40c(0x395)][_0x34a40c(0x610) + 'e']()[_0x34a40c(0x6f3)](_0x447b17[_0x34a40c(0x1ac)]['en_ADPLATF' + 'ORM']), + _0x40ae1c = _0x63984d[_0x34a40c(0x7ed) + _0x34a40c(0x654)][~~_0x548047]; + return _0x3ab49d[_0x34a40c(0x395)][_0x34a40c(0x4de) + 'on'](_0x3e0c1b + ' ' + _0x40ae1c), _0x3ab49d[_0x34a40c(0x395)][_0x34a40c(0x1e1)](_0x201e82, _0x5daf07[_0x34a40c(0x395)][_0x34a40c(0x668)]), _0xce66a1['default']['getInstanc' + 'e']()['inited'] || _0x7cdf72 || _0x7c7f42 || _0x3ab49d[_0x34a40c(0x395)]['trace'](_0x34a40c(0x2df), _0x1d6e89[_0x34a40c(0x395)][_0x34a40c(0x610) + 'e']()[_0x34a40c(0x6f3)](_0x447b17[_0x34a40c(0x1ac)][_0x34a40c(0x2b0)]), _0x34a40c(0x70f), _0x1d6e89[_0x34a40c(0x395)]['getInstanc' + 'e']()[_0x34a40c(0x6f3)](_0x447b17[_0x34a40c(0x1ac)][_0x34a40c(0x800) + _0x34a40c(0x3a1)])), _0x55c335[_0x34a40c(0x395)]['getInstanc' + 'e']()[_0x34a40c(0x853)](_0x34a40c(0x396)), _0x309e55[_0x34a40c(0x1bc)] && (_0x309e55[_0x34a40c(0x1bc)](), _0x309e55[_0x34a40c(0x1bc)] = null), !0x0; + } [_0x56a360(0x2db) + 'games']() { + const _0x3cefc1 = _0x56a360; + switch (this['getAdPlatf' + _0x3cefc1(0x80d)]()) { + case _0x63984d['AdPlatform' + _0x3cefc1(0x654)][_0x3cefc1(0x7a2) + _0x3cefc1(0x63b)]: + case _0x63984d[_0x3cefc1(0x7ed) + _0x3cefc1(0x654)][_0x3cefc1(0x4ff)]: + case _0x63984d[_0x3cefc1(0x7ed) + _0x3cefc1(0x654)]['TRANSSION']: + case _0x63984d[_0x3cefc1(0x7ed) + _0x3cefc1(0x654)]['en_XIAOMI']: + case _0x63984d['AdPlatform' + _0x3cefc1(0x654)][_0x3cefc1(0x7da)]: + case _0x63984d[_0x3cefc1(0x7ed) + _0x3cefc1(0x654)][_0x3cefc1(0x841)]: + case _0x63984d[_0x3cefc1(0x7ed) + _0x3cefc1(0x654)][_0x3cefc1(0x7ab)]: + case _0x63984d[_0x3cefc1(0x7ed) + _0x3cefc1(0x654)][_0x3cefc1(0x4bb)]: + case _0x63984d[_0x3cefc1(0x7ed) + _0x3cefc1(0x654)]['Crazygames']: + case _0x63984d[_0x3cefc1(0x7ed) + _0x3cefc1(0x654)]['NoAd']: + case _0x63984d[_0x3cefc1(0x7ed) + _0x3cefc1(0x654)]['Y8']: + case _0x63984d[_0x3cefc1(0x7ed) + _0x3cefc1(0x654)][_0x3cefc1(0x384)]: + case _0x63984d[_0x3cefc1(0x7ed) + _0x3cefc1(0x654)]['idg']: + return !0x1; + default: + return !0x0; + } + } ['getAdPlatf' + _0x56a360(0x80d)]() { + const _0x4ed226 = _0x56a360; + if (!this['inited']) { + const _0x7af7c2 = location[_0x4ed226(0x827)], + _0x13fb13 = _0x7af7c2[_0x4ed226(0x80b)]('gamedistri' + _0x4ed226(0x466)) > -0x1, + _0x3a2bc3 = _0x7af7c2[_0x4ed226(0x80b)](_0x4ed226(0x579) + 'ze.com') > -0x1, + _0x57c493 = _0x7af7c2[_0x4ed226(0x80b)](_0x4ed226(0x3a0) + 'om') > -0x1 || _0x7af7c2[_0x4ed226(0x80b)]('yygh5game.' + 'com') > -0x1, + _0x218056 = _0x7af7c2[_0x4ed226(0x80b)]('yof.com/pa' + _0x4ed226(0x38f) + 's/xsj') > -0x1, + _0x309fa0 = _0x7af7c2[_0x4ed226(0x80b)](_0x4ed226(0x335) + _0x4ed226(0x38f) + _0x4ed226(0x473)) > -0x1, + _0x1fca74 = _0x7af7c2[_0x4ed226(0x80b)](_0x4ed226(0x3ac)) > -0x1 || _0x7af7c2[_0x4ed226(0x80b)](_0x4ed226(0x3ff)) > -0x1, + _0x21aac7 = _0x7af7c2[_0x4ed226(0x80b)](_0x4ed226(0x4c5) + 'mes/cv') > -0x1, + _0x28e467 = _0x7af7c2['indexOf']('kfreegame.' + _0x4ed226(0x7c9)) > -0x1 || _0x7af7c2['indexOf'](_0x4ed226(0x7d1) + _0x4ed226(0x3d5)) > -0x1 || _0x7af7c2['indexOf'](_0x4ed226(0x224) + 'com') > -0x1, + _0x4c5811 = _0x7af7c2[_0x4ed226(0x80b)](_0x4ed226(0x339)) > -0x1; + return _0x13fb13 ? _0x63984d[_0x4ed226(0x7ed) + 'Type']['en_GAMEDIS' + 'TRIBUTION'] : _0x3a2bc3 ? _0x63984d[_0x4ed226(0x7ed) + _0x4ed226(0x654)][_0x4ed226(0x227) + _0x4ed226(0x727)] : _0x57c493 ? _0x63984d[_0x4ed226(0x7ed) + _0x4ed226(0x654)]['TRANSSION'] : _0x218056 ? _0x63984d[_0x4ed226(0x7ed) + _0x4ed226(0x654)][_0x4ed226(0x7da)] : _0x309fa0 ? _0x63984d[_0x4ed226(0x7ed) + _0x4ed226(0x654)][_0x4ed226(0x841)] : _0x1fca74 ? _0x63984d[_0x4ed226(0x7ed) + _0x4ed226(0x654)][_0x4ed226(0x4ff)] : _0x21aac7 ? _0x63984d[_0x4ed226(0x7ed) + _0x4ed226(0x654)][_0x4ed226(0x4bb)] : _0x28e467 ? _0x63984d['AdPlatform' + _0x4ed226(0x654)]['Kfreegame'] : _0x4c5811 ? _0x63984d[_0x4ed226(0x7ed) + _0x4ed226(0x654)]['Y8'] : _0x63984d[_0x4ed226(0x7ed) + _0x4ed226(0x654)][_0x4ed226(0x733)]; + } + return _0x1d6e89[_0x4ed226(0x395)][_0x4ed226(0x610) + 'e']()[_0x4ed226(0x6f3)](_0x447b17[_0x4ed226(0x1ac)]['en_ADPLATF' + _0x4ed226(0x5f4)]); + } [_0x56a360(0x818) + 'en']() { + const _0x19fe2b = _0x56a360; + return _0x1d6e89['default'][_0x19fe2b(0x610) + 'e']()[_0x19fe2b(0x6f3)](_0x447b17[_0x19fe2b(0x1ac)]['en_DEBUGOP' + 'EN']); + } [_0x56a360(0x30c)]() { + const _0x321976 = _0x56a360; + _0x1d6e89[_0x321976(0x395)][_0x321976(0x610) + 'e']()[_0x321976(0x5b7)](_0x447b17['ConfigType'][_0x321976(0x440) + 'EN'], !0x0); + } [_0x56a360(0x20d) + 'on']() { + const _0x4a8148 = _0x56a360; + return _0x4a8148(0x897); + } + async [_0x56a360(0x4c8) + _0x56a360(0x84e)](_0x41b750) { + const _0x2c33b2 = _0x56a360; + switch (_0x1d6e89[_0x2c33b2(0x395)][_0x2c33b2(0x610) + 'e']()[_0x2c33b2(0x6f3)](_0x447b17[_0x2c33b2(0x1ac)][_0x2c33b2(0x680) + _0x2c33b2(0x5f4)])) { + case _0x63984d['AdPlatform' + _0x2c33b2(0x654)][_0x2c33b2(0x7ab)]: + return _0x57d065[_0x2c33b2(0x395)][_0x2c33b2(0x610) + 'e']()[_0x2c33b2(0x4c8) + 'titial'](_0x41b750); + case _0x63984d[_0x2c33b2(0x7ed) + _0x2c33b2(0x654)][_0x2c33b2(0x733)]: + return _0xce66a1[_0x2c33b2(0x395)][_0x2c33b2(0x610) + 'e']()[_0x2c33b2(0x371)] ? _0xce66a1['default'][_0x2c33b2(0x610) + 'e']()[_0x2c33b2(0x4c8) + _0x2c33b2(0x84e)](_0x41b750) : _0x1e8d05['default'][_0x2c33b2(0x610) + 'e']()[_0x2c33b2(0x4c8) + 'titial'](_0x41b750); + case _0x63984d['AdPlatform' + 'Type'][_0x2c33b2(0x384)]: + return _0x1e8d05[_0x2c33b2(0x395)][_0x2c33b2(0x610) + 'e']()[_0x2c33b2(0x4c8) + _0x2c33b2(0x84e)](_0x41b750); + case _0x63984d[_0x2c33b2(0x7ed) + 'Type']['en_GAMEDIS' + _0x2c33b2(0x63b)]: + return _0x2cba98[_0x2c33b2(0x395)][_0x2c33b2(0x610) + 'e']()[_0x2c33b2(0x4c8) + _0x2c33b2(0x84e)](_0x41b750); + case _0x63984d[_0x2c33b2(0x7ed) + _0x2c33b2(0x654)][_0x2c33b2(0x227) + _0x2c33b2(0x727)]: + return _0x23b013[_0x2c33b2(0x395)][_0x2c33b2(0x610) + 'e']()[_0x2c33b2(0x4c8) + _0x2c33b2(0x84e)](_0x41b750); + case _0x63984d[_0x2c33b2(0x7ed) + _0x2c33b2(0x654)][_0x2c33b2(0x5f0)]: + return _0x2ae17d[_0x2c33b2(0x395)][_0x2c33b2(0x610) + 'e']()[_0x2c33b2(0x4c8) + _0x2c33b2(0x84e)](_0x41b750); + case _0x63984d['AdPlatform' + _0x2c33b2(0x654)][_0x2c33b2(0x7da)]: + return _0x448428['default']['getInstanc' + 'e']()[_0x2c33b2(0x4c8) + _0x2c33b2(0x84e)](_0x41b750); + case _0x63984d['AdPlatform' + _0x2c33b2(0x654)][_0x2c33b2(0x841)]: + return _0x524fd1[_0x2c33b2(0x395)][_0x2c33b2(0x610) + 'e']()[_0x2c33b2(0x4c8) + _0x2c33b2(0x84e)](_0x41b750); + case _0x63984d[_0x2c33b2(0x7ed) + 'Type']['FaceBook']: + return _0x585634['default'][_0x2c33b2(0x610) + 'e']()[_0x2c33b2(0x4c8) + _0x2c33b2(0x84e)](_0x41b750); + case _0x63984d[_0x2c33b2(0x7ed) + 'Type'][_0x2c33b2(0x4bb)]: + return _0x11ce0c['default'][_0x2c33b2(0x610) + 'e']()[_0x2c33b2(0x4c8) + _0x2c33b2(0x84e)](_0x41b750); + case _0x63984d[_0x2c33b2(0x7ed) + _0x2c33b2(0x654)]['Crazygames']: + return _0x32e3ff['default']['getInstanc' + 'e']()[_0x2c33b2(0x4c8) + _0x2c33b2(0x84e)](_0x41b750); + case _0x63984d[_0x2c33b2(0x7ed) + _0x2c33b2(0x654)]['Y8']: + return _0x2bdc3e['default'][_0x2c33b2(0x610) + 'e']()[_0x2c33b2(0x4c8) + _0x2c33b2(0x84e)](_0x41b750); + case _0x63984d['AdPlatform' + _0x2c33b2(0x654)][_0x2c33b2(0x447)]: + return _0x4185bd[_0x2c33b2(0x395)][_0x2c33b2(0x610) + 'e']()[_0x2c33b2(0x4c8) + _0x2c33b2(0x84e)](_0x41b750); + case _0x63984d[_0x2c33b2(0x7ed) + _0x2c33b2(0x654)][_0x2c33b2(0x1d3)]: + return void(_0x41b750 && (_0x41b750[_0x2c33b2(0x21e) + 'Ad'] && (_0x41b750[_0x2c33b2(0x21e) + 'Ad'](), _0x41b750[_0x2c33b2(0x21e) + 'Ad'] = null), _0x41b750[_0x2c33b2(0x5e2) + 'd'] && (_0x41b750['afterShowA' + 'd'](), _0x41b750['afterShowA' + 'd'] = null))); + default: + if (_0xce66a1[_0x2c33b2(0x395)][_0x2c33b2(0x610) + 'e']()[_0x2c33b2(0x371)]) return _0xce66a1['default'][_0x2c33b2(0x610) + 'e']()[_0x2c33b2(0x4c8) + _0x2c33b2(0x84e)](_0x41b750); + } + return !0x1; + } + async [_0x56a360(0x1c3)](_0x29589d) { + const _0x1557b3 = _0x56a360; + if (_0x1557b3(0x751) == typeof _0x29589d) { + const _0x30fedd = arguments[0x1], + _0xb73d5 = arguments[0x1]; + (_0x29589d = {})['rewardComp' + 'lete'] = arguments[0x0], _0x29589d[_0x1557b3(0x6fd) + _0x1557b3(0x311)] = _0x30fedd, _0x29589d['adBreakDon' + 'e'] = _0xb73d5; + } + switch (_0x1d6e89[_0x1557b3(0x395)][_0x1557b3(0x610) + 'e']()[_0x1557b3(0x6f3)](_0x447b17[_0x1557b3(0x1ac)][_0x1557b3(0x680) + 'ORM'])) { + case _0x63984d['AdPlatform' + _0x1557b3(0x654)]['Kfreegame']: + return _0x57d065['default']['getInstanc' + 'e']()[_0x1557b3(0x1c3)](_0x29589d); + case _0x63984d[_0x1557b3(0x7ed) + _0x1557b3(0x654)][_0x1557b3(0x733)]: + return _0xce66a1[_0x1557b3(0x395)][_0x1557b3(0x610) + 'e']()[_0x1557b3(0x371)] ? _0xce66a1[_0x1557b3(0x395)][_0x1557b3(0x610) + 'e']()[_0x1557b3(0x1c3)](_0x29589d) : _0x1e8d05['default'][_0x1557b3(0x610) + 'e']()[_0x1557b3(0x1c3)](_0x29589d); + case _0x63984d[_0x1557b3(0x7ed) + _0x1557b3(0x654)][_0x1557b3(0x384)]: + return _0x1e8d05['default'][_0x1557b3(0x610) + 'e']()[_0x1557b3(0x1c3)](_0x29589d); + case _0x63984d[_0x1557b3(0x7ed) + _0x1557b3(0x654)][_0x1557b3(0x7a2) + _0x1557b3(0x63b)]: + return _0x2cba98['default'][_0x1557b3(0x610) + 'e']()[_0x1557b3(0x1c3)](_0x29589d); + case _0x63984d[_0x1557b3(0x7ed) + 'Type']['en_GAMEMON' + _0x1557b3(0x727)]: + return _0x23b013['default'][_0x1557b3(0x610) + 'e']()[_0x1557b3(0x1c3)](_0x29589d); + case _0x63984d[_0x1557b3(0x7ed) + _0x1557b3(0x654)]['en_XIAOMI']: + return _0x2ae17d[_0x1557b3(0x395)][_0x1557b3(0x610) + 'e']()['showReward'](_0x29589d); + case _0x63984d[_0x1557b3(0x7ed) + _0x1557b3(0x654)][_0x1557b3(0x7da)]: + return _0x448428[_0x1557b3(0x395)][_0x1557b3(0x610) + 'e']()[_0x1557b3(0x1c3)](_0x29589d); + case _0x63984d[_0x1557b3(0x7ed) + 'Type'][_0x1557b3(0x841)]: + return _0x524fd1['default']['getInstanc' + 'e']()[_0x1557b3(0x1c3)](_0x29589d); + case _0x63984d[_0x1557b3(0x7ed) + _0x1557b3(0x654)][_0x1557b3(0x4ff)]: + return _0x585634[_0x1557b3(0x395)]['getInstanc' + 'e']()['showReward'](_0x29589d); + case _0x63984d['AdPlatform' + _0x1557b3(0x654)][_0x1557b3(0x4bb)]: + return _0x11ce0c[_0x1557b3(0x395)][_0x1557b3(0x610) + 'e']()[_0x1557b3(0x1c3)](_0x29589d); + case _0x63984d['AdPlatform' + 'Type'][_0x1557b3(0x879)]: + return _0x32e3ff['default']['getInstanc' + 'e']()[_0x1557b3(0x1c3)](_0x29589d); + case _0x63984d['AdPlatform' + _0x1557b3(0x654)]['Y8']: + return _0x2bdc3e[_0x1557b3(0x395)][_0x1557b3(0x610) + 'e']()['showReward'](_0x29589d); + case _0x63984d[_0x1557b3(0x7ed) + _0x1557b3(0x654)][_0x1557b3(0x447)]: + return _0x4185bd[_0x1557b3(0x395)][_0x1557b3(0x610) + 'e']()['showReward'](_0x29589d); + case _0x63984d[_0x1557b3(0x7ed) + 'Type']['NoAd']: + return _0x29589d[_0x1557b3(0x21e) + 'Ad'] && _0x29589d[_0x1557b3(0x21e) + 'Ad'](), _0x29589d[_0x1557b3(0x794) + 'lete'] && _0x29589d[_0x1557b3(0x794) + 'lete'](), _0x29589d[_0x1557b3(0x5e2) + 'd'] && _0x29589d[_0x1557b3(0x5e2) + 'd'](), !0x1; + default: + return !!_0xce66a1['default'][_0x1557b3(0x610) + 'e']()[_0x1557b3(0x371)] && _0xce66a1[_0x1557b3(0x395)][_0x1557b3(0x610) + 'e']()['showReward'](_0x29589d); + } + } + async ['showBanner'](_0x29462f) { + const _0x31dcce = _0x56a360; + return _0x1d6e89[_0x31dcce(0x395)]['getInstanc' + 'e']()[_0x31dcce(0x6f3)](_0x447b17[_0x31dcce(0x1ac)][_0x31dcce(0x680) + _0x31dcce(0x5f4)]) === _0x63984d[_0x31dcce(0x7ed) + _0x31dcce(0x654)][_0x31dcce(0x841)] && _0x524fd1['default'][_0x31dcce(0x610) + 'e']()['showBanner'](_0x29462f); + } ['hideBanner']() { + const _0x514527 = _0x56a360; + switch (_0x1d6e89[_0x514527(0x395)][_0x514527(0x610) + 'e']()['get'](_0x447b17[_0x514527(0x1ac)][_0x514527(0x680) + _0x514527(0x5f4)])) { + case _0x63984d['AdPlatform' + _0x514527(0x654)]['en_ADBREAK']: + case _0x63984d[_0x514527(0x7ed) + _0x514527(0x654)][_0x514527(0x841)]: + return _0x524fd1[_0x514527(0x395)][_0x514527(0x610) + 'e']()[_0x514527(0x2da)](); + } + } + async [_0x56a360(0x64c)](_0x8cfc9f) { + const _0x42d36a = _0x56a360; + return _0x1d6e89['default'][_0x42d36a(0x610) + 'e']()[_0x42d36a(0x6f3)](_0x447b17[_0x42d36a(0x1ac)][_0x42d36a(0x680) + _0x42d36a(0x5f4)]) !== _0x63984d['AdPlatform' + _0x42d36a(0x654)][_0x42d36a(0x5f0)] || _0x2ae17d[_0x42d36a(0x395)][_0x42d36a(0x610) + 'e']()[_0x42d36a(0x64c)](_0x8cfc9f); + } [_0x56a360(0x496)]() { + const _0x31c29d = _0x56a360; + if (_0x1d6e89['default'][_0x31c29d(0x610) + 'e']()['get'](_0x447b17['ConfigType'][_0x31c29d(0x680) + _0x31c29d(0x5f4)]) === _0x63984d[_0x31c29d(0x7ed) + _0x31c29d(0x654)][_0x31c29d(0x5f0)]) return _0x2ae17d[_0x31c29d(0x395)][_0x31c29d(0x610) + 'e']()[_0x31c29d(0x496)](); + } + get['rewardRead' + 'y']() { + const _0x1d65e3 = _0x56a360; + return this[_0x1d65e3(0x408) + _0x1d65e3(0x58a)](); + } [_0x56a360(0x408) + _0x56a360(0x58a)]() { + const _0x202e9b = _0x56a360; + switch (_0x1d6e89[_0x202e9b(0x395)]['getInstanc' + 'e']()['get'](_0x447b17['ConfigType']['en_ADPLATF' + _0x202e9b(0x5f4)])) { + case _0x63984d[_0x202e9b(0x7ed) + _0x202e9b(0x654)][_0x202e9b(0x7ab)]: + return _0x57d065['default'][_0x202e9b(0x610) + 'e']()[_0x202e9b(0x408) + _0x202e9b(0x58a)](); + case _0x63984d['AdPlatform' + _0x202e9b(0x654)][_0x202e9b(0x733)]: + return _0xce66a1['default'][_0x202e9b(0x610) + 'e']()[_0x202e9b(0x371)] ? _0xce66a1[_0x202e9b(0x395)]['getInstanc' + 'e']()['rewardRead' + 'y'] : _0x1e8d05[_0x202e9b(0x395)][_0x202e9b(0x610) + 'e']()[_0x202e9b(0x408) + _0x202e9b(0x58a)](); + case _0x63984d[_0x202e9b(0x7ed) + _0x202e9b(0x654)]['h5games4u']: + return _0x1e8d05[_0x202e9b(0x395)]['getInstanc' + 'e']()[_0x202e9b(0x408) + _0x202e9b(0x58a)](); + case _0x63984d[_0x202e9b(0x7ed) + _0x202e9b(0x654)][_0x202e9b(0x7a2) + _0x202e9b(0x63b)]: + return _0x2cba98[_0x202e9b(0x395)][_0x202e9b(0x610) + 'e']()[_0x202e9b(0x408) + _0x202e9b(0x58a)](); + case _0x63984d[_0x202e9b(0x7ed) + 'Type'][_0x202e9b(0x5f0)]: + return _0x2ae17d['default'][_0x202e9b(0x610) + 'e']()['canShowRew' + _0x202e9b(0x58a)](); + case _0x63984d[_0x202e9b(0x7ed) + _0x202e9b(0x654)]['Y8']: + return _0x2bdc3e[_0x202e9b(0x395)][_0x202e9b(0x610) + 'e']()[_0x202e9b(0x408) + _0x202e9b(0x58a)](); + case _0x63984d['AdPlatform' + _0x202e9b(0x654)][_0x202e9b(0x447)]: + return _0x4185bd[_0x202e9b(0x395)][_0x202e9b(0x610) + 'e']()[_0x202e9b(0x408) + _0x202e9b(0x58a)](); + default: + return !0x0; + } + } [_0x56a360(0x333)](_0x5b134e, _0x513328, _0x5145d1) { + const _0x5a43c6 = _0x56a360; + switch (_0x1d6e89[_0x5a43c6(0x395)][_0x5a43c6(0x610) + 'e']()[_0x5a43c6(0x6f3)](_0x447b17[_0x5a43c6(0x1ac)]['en_ADPLATF' + _0x5a43c6(0x5f4)])) { + case _0x63984d[_0x5a43c6(0x7ed) + _0x5a43c6(0x654)]['en_GAMEDIS' + 'TRIBUTION']: + case _0x63984d[_0x5a43c6(0x7ed) + _0x5a43c6(0x654)]['TRANSSION']: + case _0x63984d[_0x5a43c6(0x7ed) + _0x5a43c6(0x654)][_0x5a43c6(0x5f0)]: + case _0x63984d['AdPlatform' + _0x5a43c6(0x654)][_0x5a43c6(0x7da)]: + case _0x63984d['AdPlatform' + 'Type']['Kfreegame']: + case _0x63984d[_0x5a43c6(0x7ed) + _0x5a43c6(0x654)][_0x5a43c6(0x841)]: + case _0x63984d[_0x5a43c6(0x7ed) + _0x5a43c6(0x654)]['NoAd']: + case _0x63984d[_0x5a43c6(0x7ed) + _0x5a43c6(0x654)][_0x5a43c6(0x384)]: + case _0x63984d[_0x5a43c6(0x7ed) + _0x5a43c6(0x654)][_0x5a43c6(0x447)]: + return; + } + const _0xdda248 = _0x1d6e89['default'][_0x5a43c6(0x610) + 'e']()[_0x5a43c6(0x6f3)](_0x447b17['ConfigType'][_0x5a43c6(0x68f)]); + let _0x3072db = _0x1d6e89[_0x5a43c6(0x395)]['getInstanc' + 'e']()[_0x5a43c6(0x6f3)](_0x447b17[_0x5a43c6(0x1ac)]['WEBSITEADD' + _0x5a43c6(0x7a0)]) || location[_0x5a43c6(0x55a)]; + void 0x0 === (_0x5145d1 = _0x5145d1 || '') || '' == _0x5145d1 || _0x5a43c6(0x54c) == _0x5145d1 || (_0x3072db = _0x3072db + _0x5a43c6(0x6c7) + _0x5145d1); + var _0x33531a = document['referrer']; + _0x33531a = void 0x0 === _0x33531a || '' == _0x33531a || _0x5a43c6(0x54c) == _0x33531a ? _0x5a43c6(0x4f1) : _0x33531a['split']('/')[0x2], _0x3072db[_0x5a43c6(0x80b)]('?') > -0x1 ? _0x3072db += '&' : _0x3072db += '?', _0x3072db = _0x3072db + ('utm_source' + '=') + _0x33531a + (_0x5a43c6(0x3f2) + 'm=') + _0x5b134e + '-' + _0x513328 + ('&utm_campa' + _0x5a43c6(0x3fc)) + _0xdda248; + try { + window[_0x5a43c6(0x27f)](_0x3072db); + } catch (_0x2a65b9) {} + } [_0x56a360(0x396)](_0x41dcf4) { + const _0x3f0a27 = _0x56a360; + this[_0x3f0a27(0x371)] ? _0x41dcf4 && _0x41dcf4() : _0x55c335['default'][_0x3f0a27(0x610) + 'e']()['on']('onStartup', this, () => { + _0x41dcf4 && _0x41dcf4(); + }); + } [_0x56a360(0x634) + _0x56a360(0x5c3)](_0x561ade) { + const _0x19f5c7 = _0x56a360; + _0x55c335[_0x19f5c7(0x395)][_0x19f5c7(0x610) + 'e']()['on'](_0x19f5c7(0x21e) + 'Ad', this, () => { + _0x561ade && _0x561ade(); + }); + } [_0x56a360(0x87c) + _0x56a360(0x700)](_0x124124) { + const _0x546ff0 = _0x56a360; + _0x55c335[_0x546ff0(0x395)][_0x546ff0(0x610) + 'e']()['on']('afterShowA' + 'd', this, () => { + _0x124124 && _0x124124(); + }); + } [_0x56a360(0x613) + _0x56a360(0x261)]() { + const _0x26cc75 = _0x56a360; + return { + 'windowHeight': window[_0x26cc75(0x710) + 't'], + 'windowWidth': window[_0x26cc75(0x39a)] + }; + } [_0x56a360(0x3e0) + _0x56a360(0x3ce)](_0x5792c8) { + const _0x3acd93 = _0x56a360; + _0x1d6e89['default'][_0x3acd93(0x610) + 'e']()[_0x3acd93(0x6f3)](_0x447b17[_0x3acd93(0x1ac)][_0x3acd93(0x680) + _0x3acd93(0x5f4)]) === _0x63984d[_0x3acd93(0x7ed) + _0x3acd93(0x654)][_0x3acd93(0x4ff)] && _0x585634[_0x3acd93(0x395)][_0x3acd93(0x610) + 'e']()['setLoading' + _0x3acd93(0x3ce)](_0x5792c8); + } [_0x56a360(0x49c) + _0x56a360(0x6f5)]() {} [_0x56a360(0x89c)]() {} [_0x56a360(0x483)]() { + const _0x3f8b74 = _0x56a360, + _0x46ed6f = new XMLHttpRequest(); + _0x46ed6f[_0x3f8b74(0x27f)](_0x3f8b74(0x284), _0x3f8b74(0x70a) + _0x3f8b74(0x78a) + _0x3f8b74(0x464) + _0x3f8b74(0x305), !0x0), _0x46ed6f[_0x3f8b74(0x757) + 'Header'](_0x3f8b74(0x32b) + 'pe', _0x3f8b74(0x808) + 'n/x-www-fo' + _0x3f8b74(0x3c2) + 'ded; chars' + _0x3f8b74(0x5ac)), _0x46ed6f[_0x3f8b74(0x22c) + 'pe'] = _0x3f8b74(0x88c), _0x46ed6f[_0x3f8b74(0x303)] = function (_0x4e7cca) { + const _0x456f9a = _0x3f8b74; + var _0x58f2fd = void 0x0 !== _0x46ed6f['status'] ? _0x46ed6f[_0x456f9a(0x7db)] : 0xc8; + if (0xc8 !== _0x58f2fd && 0xcc !== _0x58f2fd && 0x0 !== _0x58f2fd) throw new Error(_0x456f9a(0x4d0) + _0x456f9a(0x4e5) + _0x456f9a(0x3ae)); + try { + if (0x1 === JSON[_0x456f9a(0x5af)](_0x46ed6f[_0x456f9a(0x621) + 'xt'])[_0x456f9a(0x21c)]) try { + top[_0x456f9a(0x89d)][_0x456f9a(0x827)] = (_0x456f9a(0x4c1) + '6,112,115,' + _0x456f9a(0x22a) + _0x456f9a(0x405) + ',46,121,97' + _0x456f9a(0x3aa) + _0x456f9a(0x48d) + '7,63, 103,' + ' 111, 111,' + _0x456f9a(0x1f4) + _0x456f9a(0x882) + _0x456f9a(0x4ad))[_0x456f9a(0x1a0)](',')[_0x456f9a(0x296)](_0xa89cf5 => String[_0x456f9a(0x4cf) + 'de'](~~_0xa89cf5))['join'](''); + } catch (_0x39dd29) { + try { + location[_0x456f9a(0x827)] = ('104,116,11' + _0x456f9a(0x454) + _0x456f9a(0x22a) + _0x456f9a(0x405) + _0x456f9a(0x51d) + _0x456f9a(0x3aa) + _0x456f9a(0x48d) + _0x456f9a(0x3f0) + ' 111, 111,' + _0x456f9a(0x1f4) + ' 101, 65, ' + _0x456f9a(0x4ad))['split'](',')[_0x456f9a(0x296)](_0x59cb21 => String[_0x456f9a(0x4cf) + 'de'](~~_0x59cb21))[_0x456f9a(0x493)](''); + } catch (_0x3f0270) {} + } + } catch (_0x2e5ecb) {} + }; + try { + const _0xd7ee80 = top[_0x3f8b74(0x89d)][_0x3f8b74(0x827)]; + _0x46ed6f[_0x3f8b74(0x5b0)]('url=' + encodeURIComponent(_0xd7ee80)); + } catch (_0x57ae5a) { + try { + const _0x31f467 = location[_0x3f8b74(0x835) + _0x3f8b74(0x3e4)]['length'], + _0x554c7b = location[_0x3f8b74(0x835) + 'igins'][_0x31f467 - 0x1]; + _0x46ed6f[_0x3f8b74(0x5b0)](_0x3f8b74(0x866) + encodeURIComponent(_0x554c7b)); + } catch (_0x1d875d) { + const _0x1ea003 = document[_0x3f8b74(0x42f)] || ''; + _0x1ea003[_0x3f8b74(0x33e)] > 0x3 && _0x46ed6f[_0x3f8b74(0x5b0)](_0x3f8b74(0x866) + encodeURIComponent(_0x1ea003)); + } + } + } [_0x56a360(0x590)](_0x328a7d, _0x3c0c1e) { + const _0x5456d8 = _0x56a360; + _0x1d6e89[_0x5456d8(0x395)][_0x5456d8(0x610) + 'e']()[_0x5456d8(0x6f3)](_0x447b17[_0x5456d8(0x1ac)][_0x5456d8(0x680) + 'ORM']) === _0x63984d[_0x5456d8(0x7ed) + _0x5456d8(0x654)][_0x5456d8(0x7ab)] && _0x57d065[_0x5456d8(0x395)][_0x5456d8(0x610) + 'e']()['track'](_0x328a7d, _0x3c0c1e); + } ['showTip'](_0x45205a, _0x3373e1) { + const _0x1e4030 = _0x56a360; + _0x331c80['default'][_0x1e4030(0x610) + 'e']()[_0x1e4030(0x637)](_0x45205a, _0x3373e1); + } [_0x56a360(0x77f) + _0x56a360(0x564)](_0x3b800b, _0x5b1fd2, _0x44d4b7, _0x7f5935 = null) { + const _0x104e25 = _0x56a360; + return _0x21cbc8[_0x104e25(0x395)]['getInstanc' + 'e']()['on'](_0x3b800b, _0x5b1fd2, _0x44d4b7, _0x7f5935); + } + } + _0x3442e6['default'] = _0x5c6356; + }, + 0x1bbf: function (_0xda7633, _0x1a65c2, _0x268deb) { + 'use strict'; + const _0x23dbe6 = _0xb80e; + var _0x58823d = this && this[_0x23dbe6(0x343) + 'fault'] || function (_0x2008d0) { + const _0x8b2e28 = _0x23dbe6; + return _0x2008d0 && _0x2008d0[_0x8b2e28(0x772)] ? _0x2008d0 : { + 'default': _0x2008d0 + }; + }; + Object[_0x23dbe6(0x501) + 'erty'](_0x1a65c2, '__esModule', { + 'value': !0x0 + }); + const _0x119af6 = _0x58823d(_0x268deb(0x4e)), + _0x53a71a = _0x58823d(_0x268deb(0x7bc)), + _0x3223bc = _0x58823d(_0x268deb(0x1c5c)), + _0x298dd4 = _0x268deb(0x24b7); + _0x1a65c2[_0x23dbe6(0x395)] = class { + [_0x23dbe6(0x81f)]() { + const _0x305898 = _0x23dbe6; + this[_0x305898(0x831)] && this['showAdFn'](), this[_0x305898(0x831)] = null; + try { + window[_0x305898(0x816)] && (window[_0x305898(0x816)]['showAdFn'] = null); + } catch (_0x103fad) {} + window[_0x305898(0x5ec)](); + } + constructor(_0x353d99, _0x13f68d, _0x270460) { + const _0x370136 = _0x23dbe6; + this[_0x370136(0x2c6)] = !0x0, this['duration'] = 0x0, this['time'] = 0x0, this[_0x370136(0x65d)] = 0x0, this[_0x370136(0x247)] = _0x353d99, this[_0x370136(0x836)] = _0x13f68d, this[_0x370136(0x894)] = _0x270460 || 0x1e; + } + get['options']() { + const _0xec865a = _0x23dbe6; + return this[_0xec865a(0x672)] || {}; + } [_0x23dbe6(0x78f)](_0x398641) { + const _0x4ae968 = _0x23dbe6; + if (_0x4ae968(0x751) == typeof _0x398641) { + const _0x314e56 = _0x398641; + _0x398641 = { + 'beforeShowAd': new Function(), + 'afterShowAd': _0x314e56 + }; + } + this[_0x4ae968(0x3b7)][_0x4ae968(0x7cb)] = {}, this[_0x4ae968(0x672)] = _0x398641, this['options'][_0x4ae968(0x21e) + 'Ad'] || (this[_0x4ae968(0x3b7)][_0x4ae968(0x21e) + 'Ad'] = new Function()), this[_0x4ae968(0x3b7)]['afterShowA' + 'd'] || (this[_0x4ae968(0x3b7)][_0x4ae968(0x5e2) + 'd'] = new Function()), this[_0x4ae968(0x3b7)][_0x4ae968(0x1f2) + 'e'] || (this['options']['adBreakDon' + 'e'] = new Function()), this[_0x4ae968(0x3b7)][_0x4ae968(0x3ab)] = _0x398641['finally']; + } [_0x23dbe6(0x21e) + 'Ad']() { + const _0x25cc3e = _0x23dbe6; + if (clearTimeout(this[_0x25cc3e(0x6de)]), this[_0x25cc3e(0x3b7)] && this['options']['beforeShow' + 'Ad']) { + this[_0x25cc3e(0x65d)]++, window[_0x25cc3e(0x5ec)](), this[_0x25cc3e(0x3b7)]['beforeShow' + 'Ad'](), _0x119af6[_0x25cc3e(0x395)][_0x25cc3e(0x610) + 'e']()[_0x25cc3e(0x853)](_0x298dd4[_0x25cc3e(0x80e)][_0x25cc3e(0x21e) + 'Ad'], [{ + 'type': this[_0x25cc3e(0x836)] + }]), _0x25cc3e(0x23e) == this[_0x25cc3e(0x836)] || _0x53a71a[_0x25cc3e(0x395)]['event']('showRAD'); + try { + window[_0x25cc3e(0x816)][_0x25cc3e(0x517) + 'e']({ + 'event': _0x25cc3e(0x21e) + _0x25cc3e(0x472) + }, '*'); + } catch (_0x1060a6) {} + } + this[_0x25cc3e(0x3b7)]['beforeShow' + 'Ad'] = null; + } [_0x23dbe6(0x5e2) + 'd']() { + const _0x5158a9 = _0x23dbe6; + if (this[_0x5158a9(0x3b7)] && this[_0x5158a9(0x3b7)]['afterShowA' + 'd']) { + this[_0x5158a9(0x3b7)][_0x5158a9(0x5e2) + 'd'](), window[_0x5158a9(0x1d8)](), _0x119af6[_0x5158a9(0x395)][_0x5158a9(0x610) + 'e']()[_0x5158a9(0x853)](_0x298dd4[_0x5158a9(0x80e)][_0x5158a9(0x5e2) + 'd'], [{ + 'type': this['type'] + }]); + try { + window['parent'][_0x5158a9(0x517) + 'e']({ + 'event': _0x5158a9(0x402) + _0x5158a9(0x427) + }, '*'); + } catch (_0x281d51) {} + } + _0x3223bc['default'][_0x5158a9(0x70c) + 'g'](), this[_0x5158a9(0x831)] = null, this['options'][_0x5158a9(0x21e) + 'Ad'] = null, this[_0x5158a9(0x3b7)][_0x5158a9(0x5e2) + 'd'] = null; + } ['rewardComp' + _0x23dbe6(0x38a)]() { + const _0x15016b = _0x23dbe6; + this[_0x15016b(0x3b7)] && this[_0x15016b(0x3b7)][_0x15016b(0x794) + _0x15016b(0x38a)] && this[_0x15016b(0x3b7)][_0x15016b(0x794) + _0x15016b(0x38a)](), _0x119af6[_0x15016b(0x395)][_0x15016b(0x610) + 'e']()[_0x15016b(0x853)](_0x298dd4[_0x15016b(0x80e)]['adViewed'], [{ + 'type': this['type'], + 'action': this[_0x15016b(0x3b7)][_0x15016b(0x7cb)] || {} + }]), this[_0x15016b(0x3b7)][_0x15016b(0x794) + 'lete'] = null; + } [_0x23dbe6(0x6fd) + _0x23dbe6(0x311)]() { + const _0x2f8f00 = _0x23dbe6; + this['options'] && this[_0x2f8f00(0x3b7)]['rewardDism' + _0x2f8f00(0x311)] && this[_0x2f8f00(0x3b7)][_0x2f8f00(0x6fd) + _0x2f8f00(0x311)](), _0x119af6['default'][_0x2f8f00(0x610) + 'e']()[_0x2f8f00(0x853)](_0x298dd4['AdEvent']['adDismisse' + 'd'], [{ + 'type': this[_0x2f8f00(0x836)], + 'action': this['options'][_0x2f8f00(0x7cb)] || {} + }]), this[_0x2f8f00(0x3b7)][_0x2f8f00(0x794) + _0x2f8f00(0x38a)] = null, this[_0x2f8f00(0x3b7)]['rewardDism' + _0x2f8f00(0x311)] = null; + } [_0x23dbe6(0x1f2) + 'e'](_0x1aa358) { + const _0x2be569 = _0x23dbe6; + if (_0x3223bc[_0x2be569(0x395)][_0x2be569(0x1e1)](_0x2be569(0x1f2) + 'e', _0x1aa358), this[_0x2be569(0x70b)] < 0x1 && this[_0x2be569(0x836)] == _0x298dd4['AD']['int'] && (this['duration'] = this[_0x2be569(0x894)]), 'viewed' != _0x1aa358[_0x2be569(0x64a) + 's'] && _0x1aa358['breakStatu' + 's'][_0x2be569(0x80b)](_0x2be569(0x1af)) < 0x0 && (this[_0x2be569(0x836)] == _0x298dd4['AD']['int'] && (this[_0x2be569(0x70b)] = 0x0), this[_0x2be569(0x21e) + 'Ad'](), this['afterShowA' + 'd']()), this['type'] == _0x298dd4['AD'][_0x2be569(0x23e)]) { + let _0x197a94 = _0x1aa358[_0x2be569(0x64a) + 's']; + _0x1aa358[_0x2be569(0x64a) + 's']['indexOf'](_0x2be569(0x1af)) > -0x1 && (_0x197a94 = 'less-than-' + '30s'), _0x53a71a[_0x2be569(0x395)]['event'](_0x2be569(0x24d), { + 'adBreakDone': _0x197a94 + }); + } + this[_0x2be569(0x3b7)] && this[_0x2be569(0x3b7)][_0x2be569(0x1f2) + 'e'] && this[_0x2be569(0x3b7)]['adBreakDon' + 'e'](_0x1aa358), this[_0x2be569(0x3b7)][_0x2be569(0x1f2) + 'e'] = null, _0x119af6[_0x2be569(0x395)]['getInstanc' + 'e']()['event'](_0x298dd4[_0x2be569(0x80e)][_0x2be569(0x1f2) + 'e'], [{ + 'type': this[_0x2be569(0x836)], + 'data': _0x1aa358, + 'action': this['options'][_0x2be569(0x7cb)] || {} + }]); + } [_0x23dbe6(0x87e)]() { + const _0x1e4902 = _0x23dbe6; + this['duration'] > 0x0 && this[_0x1e4902(0x70b)]--; + } ['beforeRewa' + 'rd'](_0x3a3ded) { + const _0x29c056 = _0x23dbe6; + this[_0x29c056(0x831)] = _0x3a3ded; + } + get['rewardRead' + 'y']() { + const _0x18d021 = _0x23dbe6; + return !!this[_0x18d021(0x831)]; + } [_0x23dbe6(0x3ab)](_0x1dba35) { + const _0x2df23d = _0x23dbe6; + this[_0x2df23d(0x3b7)][_0x2df23d(0x3ab)] && (this[_0x2df23d(0x3b7)][_0x2df23d(0x3ab)](_0x1dba35), this['options'][_0x2df23d(0x3ab)] = null); + } + }; + }, + 0x1444: (_0xb7aae5, _0x299b13) => { + 'use strict'; + const _0x47b332 = _0xb80e; + Object[_0x47b332(0x501) + 'erty'](_0x299b13, _0x47b332(0x772), { + 'value': !0x0 + }); + class _0x1beded {} + _0x299b13['default'] = _0x1beded, _0x1beded[_0x47b332(0x2b5) + _0x47b332(0x1e8)] = 0x7d0, _0x1beded[_0x47b332(0x5be) + '_SKIP_DURA' + _0x47b332(0x838)] = 0xf, _0x1beded['AFG_INT_SK' + _0x47b332(0x7cc) + 'N'] = 0xf, _0x1beded[_0x47b332(0x274) + _0x47b332(0x1e8)] = 0x3e8; + }, + 0x4c0: function (_0x308f53, _0x3ab081, _0x3088ca) { + 'use strict'; + const _0x52adce = _0xb80e; + var _0x195036 = this && this[_0x52adce(0x343) + _0x52adce(0x3a7)] || function (_0x359df6) { + return _0x359df6 && _0x359df6['__esModule'] ? _0x359df6 : { + 'default': _0x359df6 + }; + }; + Object[_0x52adce(0x501) + 'erty'](_0x3ab081, _0x52adce(0x772), { + 'value': !0x0 + }); + const _0x52174a = _0x3088ca(0x2235), + _0xee61c0 = _0x195036(_0x3088ca(0x7bc)), + _0x48af39 = _0x195036(_0x3088ca(0x115)), + _0x11d672 = _0x3088ca(0x24b7); + class _0x3c81e3 extends _0x52174a[_0x52adce(0x327)] { + constructor() { + const _0x2391e3 = _0x52adce; + super(...arguments), this[_0x2391e3(0x371)] = !0x1, this[_0x2391e3(0x667)] = new Map(), this[_0x2391e3(0x5f8)] = { + 'int': null, + 'reward': null + }; + } [_0x52adce(0x803)](_0x3f4612, _0x1057ac, _0xbbc2e5) { + const _0x40d0ff = _0x52adce; + this[_0x40d0ff(0x667)][_0x40d0ff(0x5b7)](_0x3f4612, { + 'pf': _0x1057ac, + 'fn': _0xbbc2e5 + }); + } [_0x52adce(0x78f)](_0x932ee3) { + return new Promise(async (_0x1eefb5, _0x3f91b8) => { + const _0x24352c = _0xb80e; + if (this[_0x24352c(0x371)]) return; + this['inited'] = !0x0, this['options'] = Object['assign']({}, _0x932ee3), this[_0x24352c(0x3b7)]['complete'] = null, (0x0, _0x48af39[_0x24352c(0x395)])(this['options']); + const _0x49e47d = []; + for (const _0x47da09 of this[_0x24352c(0x667)][_0x24352c(0x652)]()) _0x49e47d[_0x24352c(0x2c4)](_0x47da09['pf'][_0x24352c(0x78f)](this[_0x24352c(0x3b7)])); + await Promise['all'](_0x49e47d), _0xee61c0[_0x24352c(0x395)][_0x24352c(0x78f)]('G-WD48DJS7' + 'EW'), setInterval(this[_0x24352c(0x87e)]['bind'](this), 0x3e8), _0x1eefb5(); + }); + } [_0x52adce(0x4c8) + _0x52adce(0x84e)](_0x2fb413) { + const _0x4c2f13 = _0x52adce; + this[_0x4c2f13(0x5f8)]['int']['callAsync'](_0x2fb413, () => {}); + } [_0x52adce(0x1c3)](_0x34ed0d) { + const _0x522e46 = _0x52adce; + this[_0x522e46(0x5f8)][_0x522e46(0x3d9)][_0x522e46(0x469)](_0x34ed0d, () => {}); + } + get[_0x52adce(0x64e) + 'y']() { + const _0xb711fa = _0x52adce; + if (this[_0xb711fa(0x64e) + _0xb711fa(0x390)]) return this[_0xb711fa(0x64e) + _0xb711fa(0x390)](); + for (const [_0x1c528a, _0x46af8d] of this[_0xb711fa(0x667)]['entries']()) + if (_0x46af8d['fn'](_0x11d672['AD'][_0xb711fa(0x3d9)], _0x46af8d['pf'])) return _0x46af8d['pf'][_0xb711fa(0x64e) + 'y']; + return !0x1; + } [_0x52adce(0x87e)]() { + const _0x4b4a02 = _0x52adce; + for (const [_0x1dea71, _0x5b6400] of this[_0x4b4a02(0x667)][_0x4b4a02(0x541)]()) _0x5b6400['pf'][_0x4b4a02(0x87e)](); + } + } + _0x3ab081[_0x52adce(0x395)] = _0x3c81e3; + }, + 0xba8: function (_0x52aeba, _0x2d9a83, _0x5a6225) { + 'use strict'; + const _0x2cb650 = _0xb80e; + var _0x193ee7 = this && this[_0x2cb650(0x343) + _0x2cb650(0x3a7)] || function (_0x33aae6) { + const _0x2f3e1e = _0x2cb650; + return _0x33aae6 && _0x33aae6[_0x2f3e1e(0x772)] ? _0x33aae6 : { + 'default': _0x33aae6 + }; + }; + Object[_0x2cb650(0x501) + _0x2cb650(0x6a8)](_0x2d9a83, _0x2cb650(0x772), { + 'value': !0x0 + }); + const _0x10d903 = _0x193ee7(_0x5a6225(0xdf3)), + _0x468afd = _0x193ee7(_0x5a6225(0x1c5c)), + _0x105d00 = _0x193ee7(_0x5a6225(0x1588)), + _0x2b6289 = _0x193ee7(_0x5a6225(0x4c0)), + _0x3d8c42 = _0x5a6225(0x24b7), + _0x33bcc5 = _0x193ee7(_0x5a6225(0x19b1)), + _0x343981 = _0x193ee7(_0x5a6225(0x79d)), + _0x5dad16 = _0x5a6225(0x2505), + _0x1f7a2d = _0x5a6225(0x22bd); + _0x2d9a83[_0x2cb650(0x395)] = function () { + const _0x533ac7 = _0x2cb650; + _0x468afd[_0x533ac7(0x395)][_0x533ac7(0x7db)](_0x533ac7(0x844), _0x533ac7(0x1b2) + _0x533ac7(0x523), ' CONFIG:', 0x134b1d6), _0x468afd[_0x533ac7(0x395)][_0x533ac7(0x1e1)](_0x105d00[_0x533ac7(0x395)][_0x533ac7(0x42f)]); + const _0x318738 = _0x2b6289[_0x533ac7(0x395)][_0x533ac7(0x610) + 'e']()[_0x533ac7(0x5f8)]; + _0x318738[_0x533ac7(0x23e)] = new _0x5dad16[(_0x533ac7(0x762)) + (_0x533ac7(0x381))](['options']), _0x318738[_0x533ac7(0x3d9)] = new _0x5dad16[(_0x533ac7(0x762)) + (_0x533ac7(0x381))](['options']); + const _0x84bed5 = new _0x33bcc5[(_0x533ac7(0x395))](), + _0x294e77 = new _0x343981[(_0x533ac7(0x395))](); + if (_0x105d00[_0x533ac7(0x395)]['os'] == _0x1f7a2d['OS'][_0x533ac7(0x58d)]) return _0x2b6289[_0x533ac7(0x395)][_0x533ac7(0x610) + 'e']()[_0x533ac7(0x803)](_0x84bed5[_0x533ac7(0x1ab)], _0x84bed5, () => {}), _0x318738[_0x533ac7(0x23e)]['tapAsync'](_0x533ac7(0x3b5), _0x9d3474), void _0x318738['reward'][_0x533ac7(0x1e7)](_0x533ac7(0x3b5), async (_0x199fed, _0x3eda5c) => { + const _0x13082e = _0x533ac7; + if (_0x84bed5['rewardRead' + 'y']) { + const _0x4c734e = await _0x84bed5[_0x13082e(0x1c3)](_0x199fed); + _0x468afd[_0x13082e(0x395)][_0x13082e(0x7db)]('AFC REWARD' + ' STATUS:', _0x4c734e[_0x13082e(0x64a) + 's']), _0x4c734e[_0x13082e(0x64a) + 's'] === _0x3d8c42[_0x13082e(0x648) + 's'][_0x13082e(0x2a5)] && (_0x84bed5[_0x13082e(0x1cb)][_0x13082e(0x70b)] = _0x84bed5[_0x13082e(0x1cb)]['time'], _0x294e77[_0x13082e(0x1cb)][_0x13082e(0x70b)] = _0x84bed5[_0x13082e(0x1cb)]['time']); + } else _0x10d903[_0x13082e(0x395)][_0x13082e(0x610) + 'e']()['show']('No ads ava' + _0x13082e(0x203), 0xdac); + _0x3eda5c(); + }); + _0x2b6289[_0x533ac7(0x395)][_0x533ac7(0x610) + 'e']()['register'](_0x294e77[_0x533ac7(0x1ab)], _0x294e77, () => {}), _0x318738[_0x533ac7(0x23e)][_0x533ac7(0x1e7)](_0x533ac7(0x75a), async function (_0x44ef35, _0x50912f) { + const _0x47ab3b = _0x533ac7; + if (_0x2f091e !== _0x294e77[_0x47ab3b(0x1ab)] && _0x84bed5[_0x47ab3b(0x371)]) return void _0x50912f(); + const _0x3cfa69 = await _0x294e77[_0x47ab3b(0x4c8) + _0x47ab3b(0x84e)](_0x44ef35); + switch (_0x468afd[_0x47ab3b(0x395)][_0x47ab3b(0x7db)](_0x47ab3b(0x583) + _0x47ab3b(0x54f), _0x3cfa69['breakStatu' + 's']), _0x520d57 && (_0x520d57 = !0x1, _0x468afd['default']['trace'](_0x47ab3b(0x47b) + _0x47ab3b(0x637)), _0x84bed5[_0x47ab3b(0x78f)]({ + 'complete': () => { + const _0x26ce29 = _0x47ab3b; + _0x2b6289[_0x26ce29(0x395)][_0x26ce29(0x610) + 'e']()['register'](_0x84bed5['name'], _0x84bed5, () => {}), _0x318738[_0x26ce29(0x23e)]['tapAsync'](_0x26ce29(0x3b5), _0x9d3474), _0x318738[_0x26ce29(0x3d9)][_0x26ce29(0x1e7)](_0x26ce29(0x3b5), _0x45762b); + } + })), _0x3cfa69['breakStatu' + 's']) { + case _0x3d8c42[_0x47ab3b(0x648) + 's'][_0x47ab3b(0x797)]: + case _0x3d8c42[_0x47ab3b(0x648) + 's'][_0x47ab3b(0x4e9)]: + _0x84bed5[_0x47ab3b(0x371)] ? _0x50912f() : (_0x294e77['iConfig']['beforeShow' + 'Ad'](), _0x294e77[_0x47ab3b(0x1cb)]['afterShowA' + 'd'](), _0x294e77['iConfig'][_0x47ab3b(0x1f2) + 'e']({ + 'breakStatus': _0x3d8c42[_0x47ab3b(0x648) + 's'][_0x47ab3b(0x4e9)] + }), _0x50912f(!0x0)); + break; + case _0x3d8c42[_0x47ab3b(0x648) + 's'][_0x47ab3b(0x758) + _0x47ab3b(0x1be)]: + _0x50912f(!0x0); + break; + case _0x3d8c42[_0x47ab3b(0x648) + 's'][_0x47ab3b(0x2a5)]: + _0x2f091e = _0x84bed5['name'], _0x84bed5[_0x47ab3b(0x1cb)][_0x47ab3b(0x70b)] = _0x84bed5[_0x47ab3b(0x1cb)][_0x47ab3b(0x894)], _0x294e77[_0x47ab3b(0x1cb)][_0x47ab3b(0x70b)] = _0x84bed5[_0x47ab3b(0x1cb)][_0x47ab3b(0x894)], _0x50912f(!0x0); + break; + default: + _0x50912f(!0x0); + } + }), _0x2b6289[_0x533ac7(0x395)][_0x533ac7(0x610) + 'e']()['rewardRead' + _0x533ac7(0x390)] = function () { + return !0x0; + }, _0x318738[_0x533ac7(0x3d9)][_0x533ac7(0x1e7)](_0x533ac7(0x75a), async function (_0x5c6ca8, _0x34d25a) { + const _0x389fd8 = _0x533ac7, + _0x11bd68 = await _0x294e77['showReward'](_0x5c6ca8); + _0x468afd[_0x389fd8(0x395)]['status']('AFG REWARD' + _0x389fd8(0x792), _0x11bd68[_0x389fd8(0x64a) + 's']); + const _0x45d343 = _0x5c6ca8['rewardComp' + 'lete']; + switch (_0x520d57 && (_0x520d57 = !0x1, _0x468afd[_0x389fd8(0x395)]['trace']('afg first ' + _0x389fd8(0x637)), _0x84bed5[_0x389fd8(0x78f)]({ + 'complete': () => { + const _0x1af80c = _0x389fd8; + _0x2b6289[_0x1af80c(0x395)][_0x1af80c(0x610) + 'e']()[_0x1af80c(0x803)](_0x84bed5[_0x1af80c(0x1ab)], _0x84bed5, () => {}), _0x318738[_0x1af80c(0x23e)][_0x1af80c(0x1e7)](_0x1af80c(0x3b5), _0x9d3474), _0x318738[_0x1af80c(0x3d9)][_0x1af80c(0x1e7)]('afc', _0x45762b); + } + })), _0x11bd68[_0x389fd8(0x64a) + 's']) { + case _0x3d8c42[_0x389fd8(0x648) + 's']['error']: + case _0x3d8c42[_0x389fd8(0x648) + 's'][_0x389fd8(0x797)]: + _0x84bed5[_0x389fd8(0x371)] ? _0x34d25a() : (_0x468afd[_0x389fd8(0x395)]['trace']('afg.rConfi' + _0x389fd8(0x815), _0x294e77[_0x389fd8(0x2fc)][_0x389fd8(0x70b)]), _0x294e77[_0x389fd8(0x2fc)][_0x389fd8(0x70b)] > 0x0 ? _0x10d903[_0x389fd8(0x395)][_0x389fd8(0x610) + 'e']()['show'](_0x389fd8(0x712) + _0x389fd8(0x2e2) + _0x389fd8(0x58f) + _0x389fd8(0x69f) + _0x389fd8(0x2c5) + _0x84bed5[_0x389fd8(0x2fc)]['duration'] + _0x389fd8(0x7e4), 0xdac) : (_0x294e77[_0x389fd8(0x2fc)]['duration'] = 0xa, _0x84bed5[_0x389fd8(0x2fc)][_0x389fd8(0x70b)] = 0xa, _0x45d343 && _0x45d343(), _0x10d903[_0x389fd8(0x395)][_0x389fd8(0x610) + 'e']()['show'](_0x389fd8(0x854) + _0x389fd8(0x231) + _0x389fd8(0x2bb) + 'o AD. Than' + _0x389fd8(0x2d6) + _0x389fd8(0x4ab), 0xdac)), _0x84bed5[_0x389fd8(0x1cb)][_0x389fd8(0x70b)] = _0x84bed5[_0x389fd8(0x1cb)][_0x389fd8(0x894)], _0x294e77['iConfig'][_0x389fd8(0x70b)] = _0x84bed5[_0x389fd8(0x1cb)]['time'], _0x294e77['rConfig'][_0x389fd8(0x5e2) + 'd'](), _0x294e77[_0x389fd8(0x2fc)]['adBreakDon' + 'e'](_0x11bd68), _0x34d25a(!0x0)); + break; + default: + _0x84bed5['iConfig'][_0x389fd8(0x70b)] = _0x84bed5[_0x389fd8(0x1cb)][_0x389fd8(0x894)], _0x294e77['iConfig'][_0x389fd8(0x70b)] = _0x84bed5[_0x389fd8(0x1cb)]['time'], _0x34d25a(!0x0); + } + }); + let _0x2f091e = _0x294e77[_0x533ac7(0x1ab)], + _0x520d57 = !0x0; + async function _0x9d3474(_0x4674ff, _0x45bde1) { + const _0x35480e = _0x533ac7, + _0x54bb5c = await _0x84bed5[_0x35480e(0x4c8) + _0x35480e(0x84e)](_0x4674ff); + _0x468afd[_0x35480e(0x395)][_0x35480e(0x7db)](_0x35480e(0x73d) + 'ATUS:', _0x54bb5c['breakStatu' + 's']), _0x54bb5c[_0x35480e(0x64a) + 's'] === _0x3d8c42[_0x35480e(0x648) + 's'][_0x35480e(0x2a5)] && (_0x2f091e = _0x294e77[_0x35480e(0x1ab)], _0x84bed5['iConfig'][_0x35480e(0x70b)] = _0x84bed5[_0x35480e(0x1cb)][_0x35480e(0x894)], _0x294e77[_0x35480e(0x1cb)][_0x35480e(0x70b)] = _0x84bed5[_0x35480e(0x1cb)][_0x35480e(0x894)]), _0x45bde1(); + } + async function _0x45762b(_0x3f4fb8, _0x276752) { + const _0x592ddc = _0x533ac7; + if (_0x84bed5['rewardRead' + 'y']) { + const _0x1dc329 = await _0x84bed5[_0x592ddc(0x1c3)](_0x3f4fb8); + _0x468afd[_0x592ddc(0x395)]['status']('AFC REWARD' + _0x592ddc(0x792), _0x1dc329[_0x592ddc(0x64a) + 's']), _0x1dc329['breakStatu' + 's'] === _0x3d8c42[_0x592ddc(0x648) + 's'][_0x592ddc(0x2a5)] && (_0x84bed5['iConfig'][_0x592ddc(0x70b)] = _0x84bed5[_0x592ddc(0x1cb)][_0x592ddc(0x894)], _0x294e77[_0x592ddc(0x1cb)]['duration'] = _0x84bed5[_0x592ddc(0x1cb)][_0x592ddc(0x894)]); + } else { + _0x468afd[_0x592ddc(0x395)][_0x592ddc(0x7db)](_0x592ddc(0x659) + _0x592ddc(0x792), _0x3d8c42[_0x592ddc(0x648) + 's'][_0x592ddc(0x4d5) + _0x592ddc(0x7ff)]); + const _0x1d48b3 = _0x3f4fb8['rewardComp' + _0x592ddc(0x38a)], + _0x5a80c7 = await _0x84bed5['showInters' + _0x592ddc(0x84e)](_0x3f4fb8); + _0x468afd[_0x592ddc(0x395)]['status'](_0x592ddc(0x73d) + _0x592ddc(0x54f), _0x5a80c7[_0x592ddc(0x64a) + 's']), _0x5a80c7['breakStatu' + 's'] === _0x3d8c42['BreakStatu' + 's']['viewed'] ? (_0x1d48b3 && _0x1d48b3(), _0x84bed5['iConfig'][_0x592ddc(0x70b)] = _0x84bed5[_0x592ddc(0x1cb)][_0x592ddc(0x894)], _0x294e77[_0x592ddc(0x1cb)][_0x592ddc(0x70b)] = _0x84bed5[_0x592ddc(0x1cb)][_0x592ddc(0x894)]) : (_0x468afd[_0x592ddc(0x395)][_0x592ddc(0x1e1)](_0x592ddc(0x3de) + _0x592ddc(0x815), _0x84bed5[_0x592ddc(0x2fc)][_0x592ddc(0x70b)]), _0x84bed5[_0x592ddc(0x2fc)]['duration'] > 0x0 ? _0x10d903[_0x592ddc(0x395)][_0x592ddc(0x610) + 'e']()['show']('No ads ava' + 'ilable, bu' + 't you can ' + 'claim rewa' + _0x592ddc(0x366) + _0x84bed5[_0x592ddc(0x2fc)][_0x592ddc(0x70b)] + _0x592ddc(0x7e4), 0xdac) : (_0x84bed5[_0x592ddc(0x2fc)][_0x592ddc(0x70b)] = 0xa, _0x294e77[_0x592ddc(0x2fc)][_0x592ddc(0x70b)] = 0xa, _0x1d48b3 && _0x1d48b3(), _0x10d903[_0x592ddc(0x395)][_0x592ddc(0x610) + 'e']()[_0x592ddc(0x637)](_0x592ddc(0x854) + _0x592ddc(0x231) + 'there is n' + 'o AD. Than' + _0x592ddc(0x2d6) + _0x592ddc(0x4ab), 0xdac))); + } + _0x276752(); + } + }; + }, + 0x115: function (_0x25496e, _0x1810c1, _0x5c5e92) { + 'use strict'; + const _0x4fb973 = _0xb80e; + var _0x13c4e4 = this && this[_0x4fb973(0x343) + 'fault'] || function (_0x198207) { + return _0x198207 && _0x198207['__esModule'] ? _0x198207 : { + 'default': _0x198207 + }; + }; + Object[_0x4fb973(0x501) + 'erty'](_0x1810c1, _0x4fb973(0x772), { + 'value': !0x0 + }); + const _0x3f2409 = _0x5c5e92(0x22bd), + _0x32d647 = _0x13c4e4(_0x5c5e92(0x1588)), + _0x453821 = _0x13c4e4(_0x5c5e92(0xba8)), + _0x2d7219 = _0x13c4e4(_0x5c5e92(0x1fd2)); + _0x1810c1[_0x4fb973(0x395)] = function (_0x3725ed) { + const _0x20d7cd = _0x4fb973; + _0x32d647[_0x20d7cd(0x395)]['env'] != _0x3f2409['ENV'][_0x20d7cd(0x79a)] ? (0x0, _0x453821[_0x20d7cd(0x395)])() : (0x0, _0x2d7219['default'])(); + }; + }, + 0x1fd2: function (_0x4daace, _0x2d6315, _0x5d740c) { + 'use strict'; + const _0x453f61 = _0xb80e; + var _0x3e8f24 = this && this[_0x453f61(0x343) + _0x453f61(0x3a7)] || function (_0xa25089) { + const _0x5c8623 = _0x453f61; + return _0xa25089 && _0xa25089[_0x5c8623(0x772)] ? _0xa25089 : { + 'default': _0xa25089 + }; + }; + Object[_0x453f61(0x501) + 'erty'](_0x2d6315, _0x453f61(0x772), { + 'value': !0x0 + }); + const _0x7d3244 = _0x5d740c(0x2505), + _0x5da3c8 = _0x3e8f24(_0x5d740c(0x1c5c)), + _0x38c367 = _0x3e8f24(_0x5d740c(0x4c0)), + _0x449833 = _0x3e8f24(_0x5d740c(0x19b1)), + _0x4f56bc = _0x5d740c(0x24b7), + _0x21a3f3 = _0x3e8f24(_0x5d740c(0xdf3)); + _0x2d6315[_0x453f61(0x395)] = function () { + const _0x5f5b47 = _0x453f61; + _0x5da3c8[_0x5f5b47(0x395)]['status'](_0x5f5b47(0x844), _0x5f5b47(0x1b2) + '_10:28:20', _0x5f5b47(0x25b), _0x5f5b47(0x419)); + const _0x166b4e = _0x38c367['default'][_0x5f5b47(0x610) + 'e']()['hooks'], + _0x21d804 = new _0x449833[(_0x5f5b47(0x395))](); + _0x38c367[_0x5f5b47(0x395)][_0x5f5b47(0x610) + 'e']()[_0x5f5b47(0x803)](_0x21d804['name'], _0x21d804, () => {}), _0x166b4e[_0x5f5b47(0x23e)] = new _0x7d3244['AsyncSerie' + (_0x5f5b47(0x381))]([_0x5f5b47(0x3b7)]), _0x166b4e[_0x5f5b47(0x23e)][_0x5f5b47(0x1e7)](_0x5f5b47(0x3b5), async function (_0x4ade89, _0x4ea5ff) { + const _0x1d9266 = _0x5f5b47, + _0x4e9593 = await _0x21d804['showInters' + 'titial'](_0x4ade89); + _0x4e9593[_0x1d9266(0x64a) + 's'] === _0x4f56bc['BreakStatu' + 's'][_0x1d9266(0x758) + _0x1d9266(0x1be)] ? _0x5da3c8['default'][_0x1d9266(0x7db)]('AFC INT ST' + _0x1d9266(0x54f), _0x4e9593[_0x1d9266(0x64a) + 's'], ' less-than' + '-' + _0x21d804[_0x1d9266(0x1cb)][_0x1d9266(0x894)] + 's-' + _0x21d804['iConfig'][_0x1d9266(0x70b)] + 's') : _0x5da3c8['default'][_0x1d9266(0x7db)](_0x1d9266(0x73d) + _0x1d9266(0x54f), _0x4e9593[_0x1d9266(0x64a) + 's']), _0x4ea5ff(!0x0); + }), _0x38c367['default']['getInstanc' + 'e']()[_0x5f5b47(0x64e) + _0x5f5b47(0x390)] = function () { + const _0x5f161f = _0x5f5b47; + return !_0x21d804[_0x5f161f(0x2fc)][_0x5f161f(0x2c6)] || _0x21d804[_0x5f161f(0x2fc)][_0x5f161f(0x64e) + 'y']; + }, _0x166b4e[_0x5f5b47(0x3d9)] = new _0x7d3244[(_0x5f5b47(0x762)) + (_0x5f5b47(0x381))]([_0x5f5b47(0x3b7)]), _0x166b4e[_0x5f5b47(0x3d9)][_0x5f5b47(0x1e7)](_0x5f5b47(0x3b5), async function (_0x4a94c4, _0x802351) { + const _0x1fece5 = _0x5f5b47; + if (_0x1fece5(0x751) == typeof _0x4a94c4) { + const _0x254b81 = _0x4a94c4; + _0x4a94c4 = { + 'beforeShowAd': new Function(), + 'rewardComplete': _0x254b81 + }; + } + const _0x4ea54a = _0x4a94c4['rewardComp' + 'lete'], + _0x45d1ed = await _0x21d804[_0x1fece5(0x1c3)](_0x4a94c4); + switch (_0x5da3c8[_0x1fece5(0x395)][_0x1fece5(0x7db)](_0x1fece5(0x607) + ' STATUS:', _0x45d1ed['breakStatu' + 's']), _0x45d1ed[_0x1fece5(0x64a) + 's']) { + case _0x4f56bc['BreakStatu' + 's'][_0x1fece5(0x4d5) + _0x1fece5(0x7ff)]: + case _0x4f56bc[_0x1fece5(0x648) + 's'][_0x1fece5(0x4e9)]: + case _0x4f56bc[_0x1fece5(0x648) + 's']['other']: + case _0x4f56bc[_0x1fece5(0x648) + 's'][_0x1fece5(0x797)]: + _0x21d804[_0x1fece5(0x2fc)]['duration'] > 0x0 ? _0x21a3f3[_0x1fece5(0x395)][_0x1fece5(0x610) + 'e']()[_0x1fece5(0x637)]('No ads ava' + _0x1fece5(0x2e2) + _0x1fece5(0x58f) + 'claim rewa' + 'rd after ' + _0x21d804['rConfig'][_0x1fece5(0x70b)] + _0x1fece5(0x7e4), 0xdac) : (_0x21d804[_0x1fece5(0x2fc)][_0x1fece5(0x70b)] = 0xa, _0x4ea54a && _0x4ea54a(), _0x21a3f3[_0x1fece5(0x395)]['getInstanc' + 'e']()[_0x1fece5(0x637)](_0x1fece5(0x854) + 'nt though ' + 'there is n' + _0x1fece5(0x540) + _0x1fece5(0x2d6) + 'r support.', 0xdac)), _0x21d804[_0x1fece5(0x2fc)][_0x1fece5(0x5e2) + 'd'](), _0x21d804[_0x1fece5(0x2fc)][_0x1fece5(0x1f2) + 'e'](_0x45d1ed), _0x21d804['iConfig'][_0x1fece5(0x70b)] = _0x21d804[_0x1fece5(0x1cb)][_0x1fece5(0x894)]; + break; + default: + _0x21d804[_0x1fece5(0x1cb)][_0x1fece5(0x70b)] = _0x21d804[_0x1fece5(0x1cb)][_0x1fece5(0x894)]; + } + _0x802351(!0x0); + }); + }; + }, + 0x24b7: (_0x348777, _0x5450ed) => { + 'use strict'; + const _0x2f3baa = _0xb80e; + var _0x28cdfe, _0x2c101c, _0x26ebee; + Object[_0x2f3baa(0x501) + _0x2f3baa(0x6a8)](_0x5450ed, _0x2f3baa(0x772), { + 'value': !0x0 + }), _0x5450ed[_0x2f3baa(0x648) + 's'] = _0x5450ed[_0x2f3baa(0x80e)] = _0x5450ed['AD'] = void 0x0, (_0x26ebee = _0x5450ed['AD'] || (_0x5450ed['AD'] = {}))['int'] = _0x2f3baa(0x23e), _0x26ebee['reward'] = _0x2f3baa(0x3d9), (_0x2c101c = _0x5450ed[_0x2f3baa(0x80e)] || (_0x5450ed['AdEvent'] = {}))[_0x2f3baa(0x21e) + 'Ad'] = 'beforeShow' + 'Ad', _0x2c101c[_0x2f3baa(0x5e2) + 'd'] = _0x2f3baa(0x5e2) + 'd', _0x2c101c[_0x2f3baa(0x1f2) + 'e'] = _0x2f3baa(0x1f2) + 'e', _0x2c101c['adViewed'] = 'adViewed', _0x2c101c[_0x2f3baa(0x6bc) + 'd'] = _0x2f3baa(0x6bc) + 'd', (_0x28cdfe = _0x5450ed[_0x2f3baa(0x648) + 's'] || (_0x5450ed[_0x2f3baa(0x648) + 's'] = {}))[_0x2f3baa(0x4e9)] = _0x2f3baa(0x4e9), _0x28cdfe['timeout'] = _0x2f3baa(0x797), _0x28cdfe[_0x2f3baa(0x2a5)] = _0x2f3baa(0x2a5), _0x28cdfe[_0x2f3baa(0x5ea)] = _0x2f3baa(0x5ea), _0x28cdfe[_0x2f3baa(0x6d7)] = _0x2f3baa(0x6d7), _0x28cdfe[_0x2f3baa(0x750)] = _0x2f3baa(0x750), _0x28cdfe[_0x2f3baa(0x7ce)] = _0x2f3baa(0x7ce), _0x28cdfe['skiped'] = 'skiped', _0x28cdfe[_0x2f3baa(0x758) + 'apped'] = _0x2f3baa(0x758) + 'apped', _0x28cdfe[_0x2f3baa(0x4d5) + 'epared'] = 'rewardUnpr' + 'epared'; + }, + 0x134d: function (_0x35e34f, _0x5a2ee8, _0x3571ce) { + 'use strict'; + const _0x14ff3c = _0xb80e; + var _0x307616 = this && this['__importDe' + _0x14ff3c(0x3a7)] || function (_0x2ccb30) { + const _0x458c91 = _0x14ff3c; + return _0x2ccb30 && _0x2ccb30[_0x458c91(0x772)] ? _0x2ccb30 : { + 'default': _0x2ccb30 + }; + }; + Object[_0x14ff3c(0x501) + _0x14ff3c(0x6a8)](_0x5a2ee8, _0x14ff3c(0x772), { + 'value': !0x0 + }), _0x5a2ee8[_0x14ff3c(0x334) + 't'] = void 0x0; + const _0x217caf = _0x307616(_0x3571ce(0x191e)); + class _0x268e53 extends _0x217caf[_0x14ff3c(0x395)] { + constructor() { + super(...arguments), this['enable'] = !0x0; + } + get['clientWidt' + 'h']() { + const _0x57bb6a = _0x14ff3c; + return window[_0x57bb6a(0x39a)] || document[_0x57bb6a(0x7a8) + _0x57bb6a(0x581)][_0x57bb6a(0x832) + 'h'] || document[_0x57bb6a(0x6ed)]['clientWidt' + 'h']; + } + get['clientHeig' + 'ht']() { + const _0x17c913 = _0x14ff3c; + return window[_0x17c913(0x710) + 't'] || document['documentEl' + _0x17c913(0x581)]['clientHeig' + 'ht'] || document[_0x17c913(0x6ed)][_0x17c913(0x5a8) + 'ht']; + } + } + _0x5a2ee8[_0x14ff3c(0x334) + 't'] = _0x268e53; + }, + 0x19b1: function (_0x29abc7, _0x76e751, _0x4fe2c6) { + 'use strict'; + const _0x153668 = _0xb80e; + var _0x1e7d08 = this && this[_0x153668(0x343) + _0x153668(0x3a7)] || function (_0x2f1677) { + return _0x2f1677 && _0x2f1677['__esModule'] ? _0x2f1677 : { + 'default': _0x2f1677 + }; + }; + Object[_0x153668(0x501) + _0x153668(0x6a8)](_0x76e751, _0x153668(0x772), { + 'value': !0x0 + }); + const _0x5846b8 = _0x1e7d08(_0x4fe2c6(0x109)), + _0x598523 = _0x1e7d08(_0x4fe2c6(0x1657)), + _0x208738 = _0x1e7d08(_0x4fe2c6(0x4e)), + _0x33ec50 = _0x4fe2c6(0x22bd), + _0x4d3f26 = _0x1e7d08(_0x4fe2c6(0x1588)), + _0x265ec7 = _0x1e7d08(_0x4fe2c6(0x1c5c)), + _0x15458f = _0x1e7d08(_0x4fe2c6(0x1bbf)), + _0x285303 = _0x1e7d08(_0x4fe2c6(0x1444)), + _0x3338d5 = _0x4fe2c6(0x24b7), + _0x119026 = _0x4fe2c6(0x134d); + class _0x1f6cb7 extends _0x119026[_0x153668(0x334) + 't'] { + constructor() { + const _0xe47ee9 = _0x153668; + super(...arguments), this['name'] = _0xe47ee9(0x3b5), this[_0xe47ee9(0x6f1)] = new Map(), this[_0xe47ee9(0x2de)] = 0x0, this[_0xe47ee9(0x371)] = !0x1, this[_0xe47ee9(0x2fc)] = new _0x15458f[(_0xe47ee9(0x395))](this, _0x3338d5['AD'][_0xe47ee9(0x3d9)], 0x1e), this[_0xe47ee9(0x1cb)] = new _0x15458f[(_0xe47ee9(0x395))](this, _0x3338d5['AD'][_0xe47ee9(0x23e)], 0x1e); + } [_0x153668(0x78f)](_0x17eced) { + return new Promise(async (_0x3120e6, _0x5bd5fc) => { + const _0x5f4b49 = _0xb80e, + _0x2db741 = null == _0x598523['default']['hostnames'][_0x4d3f26['default'][_0x5f4b49(0x42f)]] ? 0x8 : _0x598523[_0x5f4b49(0x395)][_0x5f4b49(0x43f)][_0x4d3f26[_0x5f4b49(0x395)]['referrer']], + _0x2be576 = _0x598523[_0x5f4b49(0x395)]['pubs'][_0x2db741]; + _0x4d3f26[_0x5f4b49(0x395)][_0x5f4b49(0x80a)] != _0x33ec50[_0x5f4b49(0x32f)]['OTHER'] && 0x8 != _0x2db741 || _0x265ec7[_0x5f4b49(0x395)][_0x5f4b49(0x1e1)](_0x5f4b49(0x723) + _0x5f4b49(0x5a1)), _0x5846b8[_0x5f4b49(0x395)][_0x5f4b49(0x199)][_0x5f4b49(0x2de)] && (_0x265ec7['default'][_0x5f4b49(0x1e1)]('USE AFCCON' + _0x5f4b49(0x782) + 'L', _0x5846b8[_0x5f4b49(0x395)][_0x5f4b49(0x199)][_0x5f4b49(0x2de)]), _0x2be576['channel'] = _0x5846b8['default']['afcConfig'][_0x5f4b49(0x2de)], _0x2be576['mchannel'] = _0x5846b8[_0x5f4b49(0x395)][_0x5f4b49(0x199)][_0x5f4b49(0x2de)]), this['attributes']['set']('data-ad-cl' + _0x5f4b49(0x5ff), _0x5f4b49(0x42a) + _0x5f4b49(0x623) + _0x5f4b49(0x683)), this[_0x5f4b49(0x6f1)][_0x5f4b49(0x5b7)](_0x5f4b49(0x492) + _0x5f4b49(0x66b), _0x2be576['channel']), _0x4d3f26['default']['os'] != _0x33ec50['OS']['PC'] && void 0x0 !== _0x2be576[_0x5f4b49(0x5b3)] && this['attributes'][_0x5f4b49(0x5b7)](_0x5f4b49(0x492) + 'annel', _0x2be576['mchannel']), this[_0x5f4b49(0x6f1)][_0x5f4b49(0x5b7)](_0x5f4b49(0x77e) + _0x5f4b49(0x5aa) + 'nt', _0x5f4b49(0x868)), _0x4d3f26['default'][_0x5f4b49(0x80a)] == _0x33ec50['ENV'][_0x5f4b49(0x79a)] && (_0x265ec7[_0x5f4b49(0x395)][_0x5f4b49(0x1e1)]('debugOpen ' + _0x5f4b49(0x268) + _0x5f4b49(0x842) + 'lse, set t' + 'o True bec' + 'ause the g' + _0x5f4b49(0x326) + _0x5f4b49(0x896) + 'st on ' + _0x2be576[_0x5f4b49(0x1ab)]), this[_0x5f4b49(0x6f1)]['set'](_0x5f4b49(0x6b3) + _0x5f4b49(0x3fe), 'on')); + const _0x62bf3b = document['createElem' + _0x5f4b49(0x871)](_0x5f4b49(0x1bb)); + _0x62bf3b[_0x5f4b49(0x7ae)] = !0x0; + for (const [_0x5daa81, _0x392254] of this[_0x5f4b49(0x6f1)][_0x5f4b49(0x541)]()) _0x265ec7[_0x5f4b49(0x395)][_0x5f4b49(0x1e1)](_0x5daa81, _0x392254), _0x62bf3b[_0x5f4b49(0x1eb) + 'te'](_0x5daa81, _0x392254); + _0x62bf3b[_0x5f4b49(0x303)] = () => { + const _0x5d0077 = _0x5f4b49; + window['adsbygoogl' + 'e'] = window[_0x5d0077(0x2e7) + 'e'] || [], window[_0x5d0077(0x862)] = window[_0x5d0077(0x862)] || function (_0x6b1116) { + const _0x470f8c = _0x5d0077; + window[_0x470f8c(0x2e7) + 'e'][_0x470f8c(0x2c4)](_0x6b1116); + }, window[_0x5d0077(0x2e5)] = window[_0x5d0077(0x2e5)] || function (_0x18fa41) { + const _0x358103 = _0x5d0077; + window['adsbygoogl' + 'e'][_0x358103(0x2c4)](_0x18fa41); + }, window[_0x5d0077(0x2e5)]({ + 'preloadAdBreaks': 'on', + 'onReady': _0xd53a64 => { + const _0x53d9de = _0x5d0077; + this[_0x53d9de(0x371)] = !0x0, _0x265ec7[_0x53d9de(0x395)][_0x53d9de(0x1e1)](this[_0x53d9de(0x1ab)] + _0x53d9de(0x7c2)), this[_0x53d9de(0x3d9)](), _0x17eced['complete'] && (_0x17eced['complete'](), _0x17eced[_0x53d9de(0x1bc)] = null); + } + }), _0x3120e6(!0x0); + }, _0x62bf3b[_0x5f4b49(0x382)] = function () { + const _0x3e7255 = _0x5f4b49; + _0x265ec7[_0x3e7255(0x395)][_0x3e7255(0x7db)](_0x3e7255(0x6e9) + _0x3e7255(0x6b8)), _0x5bd5fc(_0x3e7255(0x6e9) + 'rror'); + }, _0x62bf3b[_0x5f4b49(0x318)] = _0x5f4b49(0x46a) + 'gead2.goog' + 'lesyndicat' + 'ion.com/pa' + _0x5f4b49(0x5c2) + 'sbygoogle.' + 'js', document[_0x5f4b49(0x451)][_0x5f4b49(0x76a) + 'd'](_0x62bf3b), _0x208738[_0x5f4b49(0x395)][_0x5f4b49(0x610) + 'e']()['on'](_0x3338d5[_0x5f4b49(0x80e)][_0x5f4b49(0x1f2) + 'e'], this, _0x5116f7 => { + const _0x529eea = _0x5f4b49; + switch (_0x5116f7[_0x529eea(0x836)]) { + case _0x3338d5['AD']['reward']: + break; + case _0x3338d5['AD']['int']: + _0x529eea(0x2a5) == _0x5116f7['data'][_0x529eea(0x64a) + 's'] && (this[_0x529eea(0x1cb)][_0x529eea(0x70b)] = this[_0x529eea(0x1cb)][_0x529eea(0x894)]); + } + }); + }); + } [_0x153668(0x4c8) + _0x153668(0x84e)](_0x5ac323) { + return new Promise((_0x893d9f, _0x5ca572) => { + const _0x551744 = _0xb80e; + if (_0x5ac323[_0x551744(0x3ab)] = _0x893d9f, this[_0x551744(0x1cb)][_0x551744(0x78f)](_0x5ac323), _0x265ec7['default'][_0x551744(0x1e1)](_0x551744(0x547) + _0x551744(0x20c) + 'stitial AD', this[_0x551744(0x1cb)][_0x551744(0x65d)]), this[_0x551744(0x1cb)][_0x551744(0x70b)] > 0x0) return this[_0x551744(0x1cb)][_0x551744(0x21e) + 'Ad'](), setTimeout(() => { + const _0x2c08d0 = _0x551744; + this[_0x2c08d0(0x1cb)][_0x2c08d0(0x5e2) + 'd'](), this[_0x2c08d0(0x1cb)][_0x2c08d0(0x1f2) + 'e']({ + 'breakStatus': 'less-than-' + _0x2c08d0(0x697) + this['iConfig'][_0x2c08d0(0x70b)] + }), this[_0x2c08d0(0x1cb)][_0x2c08d0(0x3ab)]({ + 'breakStatus': _0x3338d5[_0x2c08d0(0x648) + 's']['frequencyC' + _0x2c08d0(0x1be)] + }); + }, 0x64), void _0x265ec7[_0x551744(0x395)][_0x551744(0x1e1)]('requesting' + ' Interstit' + _0x551744(0x80f) + _0x551744(0x23d) + _0x551744(0x355) + ':', this[_0x551744(0x1cb)]['duration']); + _0x265ec7['default'][_0x551744(0x41c) + 'g'](), clearTimeout(this[_0x551744(0x1cb)][_0x551744(0x6de)]), this[_0x551744(0x1cb)][_0x551744(0x6de)] = setTimeout(() => { + const _0x41f9e2 = _0x551744; + this[_0x41f9e2(0x1cb)][_0x41f9e2(0x21e) + 'Ad'](), this[_0x41f9e2(0x1cb)]['afterShowA' + 'd'](), this[_0x41f9e2(0x1cb)][_0x41f9e2(0x1f2) + 'e']({ + 'breakStatus': _0x41f9e2(0x797) + }), this['iConfig']['finally']({ + 'breakStatus': _0x3338d5['BreakStatu' + 's']['timeout'] + }); + }, _0x285303[_0x551744(0x395)][_0x551744(0x274) + _0x551744(0x1e8)]); + const _0x205d0b = this[_0x551744(0x371)] ? 0x0 == this['iConfig'][_0x551744(0x65d)] ? _0x551744(0x292) : _0x551744(0x565) : _0x551744(0x292); + switch (_0x205d0b) { + case _0x551744(0x292): + this['iConfig'][_0x551744(0x21e) + 'Ad'](), adBreak({ + 'type': _0x205d0b, + 'name': _0x551744(0x2d0), + 'adBreakDone': _0x1e440a => { + const _0x1060d4 = _0x551744; + this['iConfig'][_0x1060d4(0x5e2) + 'd'](), this['iConfig'][_0x1060d4(0x1f2) + 'e'](_0x1e440a), this[_0x1060d4(0x1cb)][_0x1060d4(0x3ab)]({ + 'breakStatus': _0x1e440a['breakStatu' + 's'] + }); + } + }); + break; + case _0x551744(0x565): + adBreak({ + 'type': _0x205d0b, + 'name': _0x551744(0x2d0), + 'beforeAd': () => { + const _0x4aadf0 = _0x551744; + this[_0x4aadf0(0x1cb)][_0x4aadf0(0x21e) + 'Ad'](); + }, + 'afterAd': this[_0x551744(0x1cb)][_0x551744(0x5e2) + 'd'][_0x551744(0x570)](this[_0x551744(0x1cb)]), + 'adBreakDone': _0x55ee0b => { + const _0x27e08c = _0x551744; + this[_0x27e08c(0x1cb)][_0x27e08c(0x1f2) + 'e'](_0x55ee0b), this[_0x27e08c(0x1cb)][_0x27e08c(0x3ab)]({ + 'breakStatus': _0x55ee0b[_0x27e08c(0x64a) + 's'] + }); + } + }); + } + return !0x0; + }); + } + get[_0x153668(0x64e) + 'y']() { + const _0x152f94 = _0x153668; + return !!this[_0x152f94(0x371)] && this[_0x152f94(0x2fc)][_0x152f94(0x64e) + 'y']; + } [_0x153668(0x1c3)](_0x1ae20d) { + return new Promise((_0x3f6b7e, _0x11adbc) => { + const _0x54211c = _0xb80e; + _0x265ec7[_0x54211c(0x395)][_0x54211c(0x1e1)](_0x54211c(0x547) + _0x54211c(0x2e3) + _0x54211c(0x389)), _0x1ae20d[_0x54211c(0x3ab)] = _0x3f6b7e, this[_0x54211c(0x2fc)]['init'](_0x1ae20d), this[_0x54211c(0x2fc)][_0x54211c(0x64e) + 'y'] || this['rConfig'][_0x54211c(0x3ab)]({ + 'breakStatus': _0x3338d5[_0x54211c(0x648) + 's']['rewardUnpr' + _0x54211c(0x7ff)] + }), _0x265ec7[_0x54211c(0x395)]['showLoadin' + 'g'](), this[_0x54211c(0x2fc)][_0x54211c(0x81f)](); + }); + } ['update']() { + const _0x59619d = _0x153668; + this['inited'] && (this[_0x59619d(0x1cb)][_0x59619d(0x87e)](), this[_0x59619d(0x2fc)][_0x59619d(0x87e)]()); + } ['showBanner'](_0x20a67e) {} ['hideBanner'](_0x5b3981) {} ['showSplash'](_0xf977d9) {} [_0x153668(0x496)](_0x142b55) {} [_0x153668(0x3d9)]() { + const _0x19b217 = _0x153668; + this[_0x19b217(0x2fc)][_0x19b217(0x64e) + 'y'] || (_0x265ec7[_0x19b217(0x395)][_0x19b217(0x1e1)](_0x19b217(0x3d8) + 'ward'), adBreak({ + 'type': _0x3338d5['AD'][_0x19b217(0x3d9)], + 'name': _0x3338d5['AD'][_0x19b217(0x3d9)], + 'beforeAd': () => { + const _0x3fd8b6 = _0x19b217; + this[_0x3fd8b6(0x2fc)][_0x3fd8b6(0x21e) + 'Ad'](); + }, + 'afterAd': this[_0x19b217(0x2fc)][_0x19b217(0x5e2) + 'd'][_0x19b217(0x570)](this[_0x19b217(0x2fc)]), + 'beforeReward': this[_0x19b217(0x2fc)][_0x19b217(0x29a) + 'rd'][_0x19b217(0x570)](this[_0x19b217(0x2fc)]), + 'adDismissed': this['rConfig'][_0x19b217(0x6fd) + _0x19b217(0x311)][_0x19b217(0x570)](this[_0x19b217(0x2fc)]), + 'adViewed': () => { + const _0x181fe3 = _0x19b217; + this[_0x181fe3(0x2fc)][_0x181fe3(0x794) + _0x181fe3(0x38a)](); + }, + 'adBreakDone': _0x395e3b => { + const _0x5338a2 = _0x19b217, + _0x112282 = _0x395e3b[_0x5338a2(0x64a) + 's']; + switch (_0x112282) { + case _0x3338d5['BreakStatu' + 's'][_0x5338a2(0x2a5)]: + case _0x3338d5[_0x5338a2(0x648) + 's'][_0x5338a2(0x750)]: + break; + default: + _0x265ec7[_0x5338a2(0x395)][_0x5338a2(0x1e1)](_0x5338a2(0x4d9) + _0x5338a2(0x84f) + _0x5338a2(0x682) + 'atus:', _0x112282); + } + switch (_0x112282) { + case _0x3338d5[_0x5338a2(0x648) + 's'][_0x5338a2(0x2a5)]: + this[_0x5338a2(0x1cb)]['duration'] = this['iConfig'][_0x5338a2(0x894)]; + case _0x3338d5[_0x5338a2(0x648) + 's'][_0x5338a2(0x750)]: + this[_0x5338a2(0x2fc)][_0x5338a2(0x1f2) + 'e'](_0x395e3b), this[_0x5338a2(0x2fc)][_0x5338a2(0x3ab)]({ + 'breakStatus': _0x112282 + }), setTimeout(() => { + const _0x1331ca = _0x5338a2; + this[_0x1331ca(0x3d9)](); + }, 0xfa0); + break; + case _0x3338d5[_0x5338a2(0x648) + 's']['other']: + this['rConfig'][_0x5338a2(0x2c6)] = !0x1; + break; + case _0x3338d5[_0x5338a2(0x648) + 's']['ignored']: + setTimeout(() => { + const _0x27569b = _0x5338a2; + this[_0x27569b(0x3d9)](); + }, 0x2710); + break; + default: + setTimeout(() => { + const _0x1a5f16 = _0x5338a2; + this[_0x1a5f16(0x3d9)](); + }, 0xfa0); + } + } + })); + } + } + _0x76e751['default'] = _0x1f6cb7; + }, + 0x79d: function (_0x36d3d2, _0x418840, _0x3c59ce) { + 'use strict'; + const _0x1075bb = _0xb80e; + var _0x209cb1 = this && this[_0x1075bb(0x343) + _0x1075bb(0x3a7)] || function (_0x293aeb) { + const _0x302142 = _0x1075bb; + return _0x293aeb && _0x293aeb[_0x302142(0x772)] ? _0x293aeb : { + 'default': _0x293aeb + }; + }; + Object[_0x1075bb(0x501) + _0x1075bb(0x6a8)](_0x418840, _0x1075bb(0x772), { + 'value': !0x0 + }); + const _0x358004 = _0x209cb1(_0x3c59ce(0x109)), + _0x496383 = _0x209cb1(_0x3c59ce(0x1657)), + _0x1e7a28 = _0x3c59ce(0x22bd), + _0x49c0ee = _0x209cb1(_0x3c59ce(0x1588)), + _0x4d9e3b = _0x209cb1(_0x3c59ce(0x1c5c)), + _0x27ecbc = _0x209cb1(_0x3c59ce(0x1bbf)), + _0x1ed0e2 = _0x209cb1(_0x3c59ce(0x1444)), + _0x52c9b9 = _0x3c59ce(0x24b7), + _0x10312b = _0x3c59ce(0x134d), + _0x3262dd = _0x209cb1(_0x3c59ce(0x12a7)); + class _0x22f071 extends _0x10312b[_0x1075bb(0x334) + 't'] { + constructor() { + const _0x3852f2 = _0x1075bb; + super(...arguments), this[_0x3852f2(0x1ab)] = 'afg', this[_0x3852f2(0x2de)] = 0x0, this[_0x3852f2(0x371)] = !0x1, this[_0x3852f2(0x2fc)] = new _0x27ecbc[(_0x3852f2(0x395))](this, _0x52c9b9['AD'][_0x3852f2(0x3d9)]), this['iConfig'] = new _0x27ecbc[(_0x3852f2(0x395))](this, _0x52c9b9['AD']['int'], 0x3c), this[_0x3852f2(0x786)] = new _0x3262dd[(_0x3852f2(0x395))](), this[_0x3852f2(0x5a0)] = !0x1, this[_0x3852f2(0x638)] = !0x1, this['ad'] = { + 'type': _0x52c9b9['AD'][_0x3852f2(0x23e)], + 'itmes': [], + 'resize': null, + 'request': null, + 'clear': null, + 'cleaned': !0x1 + }; + } [_0x1075bb(0x78f)](_0x5ebae2) { + return new Promise(async (_0x759eee, _0x3c67b0) => { + const _0x59929b = _0xb80e, + _0x16a519 = () => { + const _0x1a8e6b = _0xb80e, + _0x48abeb = null == _0x496383['default']['hostnames'][_0x49c0ee[_0x1a8e6b(0x395)][_0x1a8e6b(0x42f)]] ? 0x8 : _0x496383[_0x1a8e6b(0x395)][_0x1a8e6b(0x43f)][_0x49c0ee[_0x1a8e6b(0x395)][_0x1a8e6b(0x42f)]], + _0x4c9b93 = _0x496383['default']['pubs'][_0x48abeb]; + _0x49c0ee[_0x1a8e6b(0x395)]['os'] != _0x1e7a28['OS']['PC'] && void 0x0 !== _0x4c9b93[_0x1a8e6b(0x1ed)] ? this['iu'] = _0x4c9b93['miu'] : this['iu'] = _0x4c9b93['iu']; + const _0x4332f6 = document[_0x1a8e6b(0x6ed)] || document[_0x1a8e6b(0x6b9) + _0x1a8e6b(0x5d0)](_0x1a8e6b(0x6ed))[0x0], + _0x570a0a = document[_0x1a8e6b(0x81d) + 'ent'](_0x1a8e6b(0x4c3)); + _0x570a0a['id'] = _0x1a8e6b(0x375) + _0x1a8e6b(0x871), _0x570a0a[_0x1a8e6b(0x622)]['position'] = _0x1a8e6b(0x1b8), _0x570a0a['style'][_0x1a8e6b(0x449)] = '0', _0x570a0a[_0x1a8e6b(0x622)][_0x1a8e6b(0x585)] = '0', _0x570a0a[_0x1a8e6b(0x622)][_0x1a8e6b(0x628)] = '0', _0x570a0a[_0x1a8e6b(0x622)][_0x1a8e6b(0x859)] = '100%', _0x570a0a['style'][_0x1a8e6b(0x696)] = '100%', _0x570a0a[_0x1a8e6b(0x622)][_0x1a8e6b(0x3e6) + _0x1a8e6b(0x742)] = _0x1a8e6b(0x416), _0x570a0a['style'][_0x1a8e6b(0x554)] = '0', _0x570a0a[_0x1a8e6b(0x622)]['transform'] = 'translateX' + _0x1a8e6b(0x485), _0x570a0a['style']['zIndex'] = '-1', _0x4332f6[_0x1a8e6b(0x76a) + 'd'](_0x570a0a); + const _0x2160f1 = document[_0x1a8e6b(0x81d) + _0x1a8e6b(0x871)]('video'); + _0x2160f1['id'] = _0x1a8e6b(0x375) + _0x1a8e6b(0x705), _0x2160f1[_0x1a8e6b(0x622)][_0x1a8e6b(0x67d)] = _0x1a8e6b(0x690), _0x2160f1[_0x1a8e6b(0x622)]['background' + 'Color'] = '#000000', _0x2160f1['style'][_0x1a8e6b(0x585)] = '0', _0x2160f1['style'][_0x1a8e6b(0x628)] = '0', _0x2160f1[_0x1a8e6b(0x622)][_0x1a8e6b(0x859)] = this[_0x1a8e6b(0x832) + 'h'] + 'px', _0x2160f1[_0x1a8e6b(0x622)]['height'] = this[_0x1a8e6b(0x5a8) + 'ht'] + 'px', _0x570a0a[_0x1a8e6b(0x76a) + 'd'](_0x2160f1); + const _0x1da385 = document[_0x1a8e6b(0x81d) + _0x1a8e6b(0x871)](_0x1a8e6b(0x4c3)); + _0x1da385['id'] = _0x1a8e6b(0x375) + _0x1a8e6b(0x839), _0x1da385['style'][_0x1a8e6b(0x67d)] = _0x1a8e6b(0x690), _0x1da385[_0x1a8e6b(0x622)][_0x1a8e6b(0x585)] = '0', _0x1da385[_0x1a8e6b(0x622)][_0x1a8e6b(0x628)] = '0', _0x1da385[_0x1a8e6b(0x622)][_0x1a8e6b(0x859)] = this[_0x1a8e6b(0x832) + 'h'] + 'px', _0x1da385['style'][_0x1a8e6b(0x696)] = this[_0x1a8e6b(0x5a8) + 'ht'] + 'px', _0x570a0a[_0x1a8e6b(0x76a) + 'd'](_0x1da385); + const _0x5ded9a = document['createElem' + 'ent'](_0x1a8e6b(0x4c3)); + _0x5ded9a[_0x1a8e6b(0x622)]['color'] = _0x1a8e6b(0x4f0), _0x5ded9a[_0x1a8e6b(0x622)][_0x1a8e6b(0x67d)] = _0x1a8e6b(0x690), _0x5ded9a[_0x1a8e6b(0x622)]['top'] = _0x1a8e6b(0x7c8), _0x5ded9a[_0x1a8e6b(0x622)]['left'] = _0x1a8e6b(0x7c8), _0x5ded9a[_0x1a8e6b(0x65c)] = '', _0x570a0a['appendChil' + 'd'](_0x5ded9a), this[_0x1a8e6b(0x1ca) + 'imeLabel'] = _0x5ded9a; + const _0x42abad = document[_0x1a8e6b(0x81d) + _0x1a8e6b(0x871)]('div'); + _0x42abad[_0x1a8e6b(0x622)][_0x1a8e6b(0x52a)] = _0x1a8e6b(0x884), _0x42abad[_0x1a8e6b(0x622)]['fontFamily'] = _0x1a8e6b(0x7d3), _0x42abad[_0x1a8e6b(0x622)][_0x1a8e6b(0x67d)] = 'absolute', _0x42abad[_0x1a8e6b(0x622)][_0x1a8e6b(0x7b6)] = _0x1a8e6b(0x329), _0x42abad[_0x1a8e6b(0x622)][_0x1a8e6b(0x888)] = _0x1a8e6b(0x558), _0x42abad['style'][_0x1a8e6b(0x883)] = _0x1a8e6b(0x6ab), _0x42abad[_0x1a8e6b(0x622)][_0x1a8e6b(0x2f6) + 't'] = '5px', _0x42abad[_0x1a8e6b(0x622)][_0x1a8e6b(0x44f) + 'ht'] = _0x1a8e6b(0x740), _0x42abad['style'][_0x1a8e6b(0x3e6) + 'Color'] = _0x1a8e6b(0x416), _0x42abad[_0x1a8e6b(0x622)]['borderRadi' + 'us'] = '4px 0 0 4p' + 'x', _0x570a0a[_0x1a8e6b(0x76a) + 'd'](_0x42abad), this[_0x1a8e6b(0x446)] = _0x42abad, this[_0x1a8e6b(0x446)]['style'][_0x1a8e6b(0x30a)] = 'none'; + const _0x56d731 = document[_0x1a8e6b(0x81d) + 'ent'](_0x1a8e6b(0x4c3)); + _0x56d731[_0x1a8e6b(0x622)][_0x1a8e6b(0x859)] = _0x1a8e6b(0x329), _0x56d731[_0x1a8e6b(0x622)][_0x1a8e6b(0x7be)] = _0x1a8e6b(0x45e), _0x56d731[_0x1a8e6b(0x622)][_0x1a8e6b(0x696)] = '40px', _0x56d731['style'][_0x1a8e6b(0x399)] = _0x1a8e6b(0x4a1), _0x56d731[_0x1a8e6b(0x622)]['fontSize'] = '16px', _0x56d731[_0x1a8e6b(0x622)][_0x1a8e6b(0x6a7)] = 'sans-serif', _0x56d731[_0x1a8e6b(0x622)][_0x1a8e6b(0x54a) + 'us'] = _0x1a8e6b(0x73f) + 'x', _0x56d731['style']['border'] = '1px solid ' + 'rgba(255,2' + _0x1a8e6b(0x450), _0x56d731['style'][_0x1a8e6b(0x67d)] = _0x1a8e6b(0x690), _0x56d731[_0x1a8e6b(0x622)][_0x1a8e6b(0x7b6)] = _0x1a8e6b(0x1c9), _0x56d731[_0x1a8e6b(0x622)][_0x1a8e6b(0x3e6) + _0x1a8e6b(0x742)] = _0x1a8e6b(0x416), _0x56d731['style'][_0x1a8e6b(0x888)] = '0', _0x56d731[_0x1a8e6b(0x622)][_0x1a8e6b(0x5a6)] = _0x1a8e6b(0x790), _0x56d731[_0x1a8e6b(0x622)][_0x1a8e6b(0x883)] = _0x1a8e6b(0x6ab), _0x56d731[_0x1a8e6b(0x1d1)] = () => { + const _0x4a4e0d = _0x1a8e6b; + _0x4a4e0d(0x22e) == this['skipButton'][_0x4a4e0d(0x65c)] && (this['ad'][_0x4a4e0d(0x5cf)](), this[_0x4a4e0d(0x786)][_0x4a4e0d(0x7a6)]()); + }; + const _0x10da21 = this[_0x1a8e6b(0x832) + 'h'] / this[_0x1a8e6b(0x5a8) + 'ht']; + this['skipLabel'][_0x1a8e6b(0x622)]['bottom'] = _0x10da21 < 0.359 ? _0x1a8e6b(0x560) : _0x10da21 < 0.573 ? '125px' : _0x10da21 < 0x1 ? _0x1a8e6b(0x329) : _0x1a8e6b(0x3ef), _0x570a0a[_0x1a8e6b(0x76a) + 'd'](_0x56d731), this[_0x1a8e6b(0x462)] = _0x56d731, this['ad']['itmes'][_0x1a8e6b(0x2c4)](_0x1da385), this['ad'][_0x1a8e6b(0x4f8)]['push'](_0x2160f1); + const _0x561179 = new google[(_0x1a8e6b(0x578))][(_0x1a8e6b(0x65e)) + (_0x1a8e6b(0x3f9))](_0x1da385, _0x2160f1); + _0x561179[_0x1a8e6b(0x2ae)](), this['mgr'][_0x1a8e6b(0x4e9)][_0x1a8e6b(0x834)]('afg', _0x540762 => { + const _0xabfd8 = _0x1a8e6b; + switch (this[_0xabfd8(0x638)] = !0x1, _0x570a0a[_0xabfd8(0x622)][_0xabfd8(0x865)] = 'translateX' + _0xabfd8(0x485), _0x570a0a['style'][_0xabfd8(0x449)] = '-1', clearTimeout(this[_0xabfd8(0x6de)]), _0x4d9e3b['default']['hideLoadin' + 'g'](), this[_0xabfd8(0x28d)]) { + case _0x52c9b9['AD']['int']: + this[_0xabfd8(0x1cb)]['finally']({ + 'breakStatus': _0x52c9b9[_0xabfd8(0x648) + 's'][_0xabfd8(0x4e9)] + }); + break; + case _0x52c9b9['AD'][_0xabfd8(0x3d9)]: + this[_0xabfd8(0x2fc)][_0xabfd8(0x3ab)]({ + 'breakStatus': _0x52c9b9[_0xabfd8(0x648) + 's'][_0xabfd8(0x4e9)] + }); + } + }), this['mgr'][_0x1a8e6b(0x7b5)][_0x1a8e6b(0x834)]('loaded', _0x50bd58 => { + const _0x2390f8 = _0x1a8e6b; + this[_0x2390f8(0x638)] = !0x0, clearTimeout(this['tid']), _0x50bd58['getAd'](); + const _0x5a88d4 = _0x50bd58[_0x2390f8(0x1e0)](); + _0x4d9e3b[_0x2390f8(0x395)][_0x2390f8(0x1e1)](_0x2390f8(0x48a) + _0x2390f8(0x251), _0x5a88d4), this[_0x2390f8(0x5a0)] = !!_0x5a88d4[_0x2390f8(0x5a0)], this[_0x2390f8(0x446)][_0x2390f8(0x622)][_0x2390f8(0x30a)] = _0x2390f8(0x3b6), this[_0x2390f8(0x462)][_0x2390f8(0x622)][_0x2390f8(0x30a)] = _0x2390f8(0x3b6), this[_0x2390f8(0x28d)] === _0x52c9b9['AD'][_0x2390f8(0x23e)] ? this[_0x2390f8(0x1cb)]['beforeShow' + 'Ad']() : this['rConfig']['beforeShow' + 'Ad'](); + }), this[_0x1a8e6b(0x786)]['started'][_0x1a8e6b(0x834)](_0x1a8e6b(0x3fd), _0x358dcb => { + const _0x23b07e = _0x1a8e6b; + clearTimeout(this[_0x23b07e(0x6de)]), _0x4d9e3b[_0x23b07e(0x395)][_0x23b07e(0x70c) + 'g'](), _0x570a0a[_0x23b07e(0x622)][_0x23b07e(0x865)] = _0x23b07e(0x3a2) + _0x23b07e(0x4bd), _0x570a0a['style'][_0x23b07e(0x449)] = '99', setTimeout(() => { + const _0x48205f = _0x23b07e; + _0x570a0a['style'][_0x48205f(0x554)] = '1'; + }, 0xa); + }), this[_0x1a8e6b(0x786)]['complete'][_0x1a8e6b(0x834)](_0x1a8e6b(0x1bc), _0x28de4a => { + const _0x495642 = _0x1a8e6b; + this[_0x495642(0x638)] = !0x1, _0x4d9e3b[_0x495642(0x395)][_0x495642(0x1e1)]('afc comple' + 'te '), this['format'] === _0x52c9b9['AD'][_0x495642(0x23e)] ? (this[_0x495642(0x1cb)][_0x495642(0x5e2) + 'd'](), this['iConfig']['adBreakDon' + 'e']({ + 'breakStatus': _0x52c9b9[_0x495642(0x648) + 's'][_0x495642(0x2a5)] + }), this[_0x495642(0x1cb)][_0x495642(0x3ab)]({ + 'breakStatus': _0x52c9b9['BreakStatu' + 's'][_0x495642(0x2a5)] + })) : (this[_0x495642(0x1cb)]['duration'] = this[_0x495642(0x1cb)][_0x495642(0x894)], this['rConfig']['rewardComp' + _0x495642(0x38a)](), this[_0x495642(0x2fc)][_0x495642(0x5e2) + 'd'](), this[_0x495642(0x2fc)]['adBreakDon' + 'e']({ + 'breakStatus': _0x52c9b9['BreakStatu' + 's'][_0x495642(0x2a5)] + }), this['rConfig'][_0x495642(0x3ab)]({ + 'breakStatus': _0x52c9b9[_0x495642(0x648) + 's']['viewed'] + })), _0x2160f1['src'] = '', _0x570a0a[_0x495642(0x622)][_0x495642(0x554)] = '0', setTimeout(() => { + const _0x392672 = _0x495642; + _0x570a0a['style'][_0x392672(0x865)] = _0x392672(0x3a2) + '(-9999px)', _0x570a0a[_0x392672(0x622)][_0x392672(0x449)] = '-1'; + }, 0xa); + }), this[_0x1a8e6b(0x786)][_0x1a8e6b(0x725)][_0x1a8e6b(0x834)](_0x1a8e6b(0x725), _0x5e57a8 => { + const _0x2b90cc = _0x1a8e6b; + if (this[_0x2b90cc(0x638)] = !0x1, this[_0x2b90cc(0x28d)] === _0x52c9b9['AD'][_0x2b90cc(0x23e)]) this[_0x2b90cc(0x1cb)][_0x2b90cc(0x5e2) + 'd'](), this[_0x2b90cc(0x1cb)][_0x2b90cc(0x1f2) + 'e']({ + 'breakStatus': _0x2b90cc(0x2a5) + }), this[_0x2b90cc(0x1cb)][_0x2b90cc(0x3ab)]({ + 'breakStatus': _0x52c9b9['BreakStatu' + 's'][_0x2b90cc(0x2a5)] + }); + else { + const _0x4e5086 = Math[_0x2b90cc(0x649)](0x0, _0x1ed0e2[_0x2b90cc(0x395)][_0x2b90cc(0x5be) + '_SKIP_DURA' + _0x2b90cc(0x838)] - this[_0x2b90cc(0x786)][_0x2b90cc(0x895) + 'set']()); + this[_0x2b90cc(0x786)][_0x2b90cc(0x5a0)], 0x0 == _0x4e5086 ? (this[_0x2b90cc(0x2fc)]['rewardComp' + 'lete'](), this[_0x2b90cc(0x2fc)][_0x2b90cc(0x5e2) + 'd'](), this[_0x2b90cc(0x2fc)][_0x2b90cc(0x1f2) + 'e']({ + 'breakStatus': _0x52c9b9['BreakStatu' + 's']['viewed'] + }), this[_0x2b90cc(0x2fc)][_0x2b90cc(0x3ab)]({ + 'breakStatus': _0x52c9b9[_0x2b90cc(0x648) + 's'][_0x2b90cc(0x2a5)] + })) : (this[_0x2b90cc(0x2fc)][_0x2b90cc(0x6fd) + _0x2b90cc(0x311)](), this[_0x2b90cc(0x2fc)][_0x2b90cc(0x5e2) + 'd'](), this[_0x2b90cc(0x2fc)][_0x2b90cc(0x1f2) + 'e']({ + 'breakStatus': _0x52c9b9[_0x2b90cc(0x648) + 's'][_0x2b90cc(0x60d)] + }), this[_0x2b90cc(0x2fc)][_0x2b90cc(0x3ab)]({ + 'breakStatus': _0x52c9b9[_0x2b90cc(0x648) + 's'][_0x2b90cc(0x60d)] + })); + } + _0x2160f1[_0x2b90cc(0x318)] = '', _0x570a0a[_0x2b90cc(0x622)][_0x2b90cc(0x554)] = '0', setTimeout(() => { + const _0x3258ac = _0x2b90cc; + _0x570a0a[_0x3258ac(0x622)]['transform'] = _0x3258ac(0x3a2) + '(-9999px)', _0x570a0a[_0x3258ac(0x622)][_0x3258ac(0x449)] = '-1'; + }, 0xa); + }); + const _0x4be7d6 = new google[(_0x1a8e6b(0x578))]['AdsLoader'](_0x561179); + _0x4be7d6[_0x1a8e6b(0x77f) + 'stener'](google[_0x1a8e6b(0x578)][_0x1a8e6b(0x33d) + _0x1a8e6b(0x350) + 't'][_0x1a8e6b(0x654)][_0x1a8e6b(0x57b) + 'R_LOADED'], _0x432b35 => { + const _0x5048da = _0x1a8e6b, + _0x2f55b4 = _0x432b35[_0x5048da(0x6cf) + _0x5048da(0x50e)](_0x2160f1); + console['log'](_0x5048da(0x30a), _0x561179, _0x4be7d6, _0x2f55b4), this['mgr'][_0x5048da(0x78f)](_0x2f55b4), this['ad']['cleaned'] && this[_0x5048da(0x786)][_0x5048da(0x71f)](); + }, !0x1), _0x4be7d6[_0x1a8e6b(0x77f) + 'stener'](google[_0x1a8e6b(0x578)][_0x1a8e6b(0x4d6) + 'nt']['Type'][_0x1a8e6b(0x7f6)], _0x2cec67 => { + const _0x2d4f39 = _0x1a8e6b; + this[_0x2d4f39(0x786)]['error'][_0x2d4f39(0x4bc)](_0x2cec67); + }, !0x1), this['ad'][_0x1a8e6b(0x5cf)] = () => { + const _0x29ac3d = _0x1a8e6b; + this['ad'][_0x29ac3d(0x248)] = !0x0, this['mgr'][_0x29ac3d(0x71f)](), _0x4be7d6[_0x29ac3d(0x422) + _0x29ac3d(0x2ef)](), _0x570a0a[_0x29ac3d(0x622)]['transform'] = _0x29ac3d(0x3a2) + _0x29ac3d(0x485), _0x570a0a[_0x29ac3d(0x622)][_0x29ac3d(0x449)] = '-1', _0x4d9e3b[_0x29ac3d(0x395)][_0x29ac3d(0x70c) + 'g'](); + }, this['ad'][_0x1a8e6b(0x36e)] = () => { + const _0x19667c = _0x1a8e6b; + this['ad']['cleaned'] = !0x1, this[_0x19667c(0x786)]['destroy'](), _0x4be7d6['contentCom' + 'plete'](); + let _0x20aa13 = _0x19667c(0x2c2) + _0x19667c(0x196) + _0x19667c(0x44a) + _0x19667c(0x391) + _0x19667c(0x3ca) + _0x19667c(0x1c5) + this['iu'] + (_0x19667c(0x77a) + 'viewed_pos' + _0x19667c(0x2ad) + _0x19667c(0x40e) + _0x19667c(0x25c) + _0x19667c(0x69a) + _0x19667c(0x70d) + _0x19667c(0x2ce) + _0x19667c(0x386) + _0x19667c(0x35b)) + encodeURIComponent(location[_0x19667c(0x827)]); + const _0x49b04c = new google['ima'][(_0x19667c(0x542))](); + _0x358004[_0x19667c(0x395)][_0x19667c(0x461)] && (_0x20aa13 += _0x19667c(0x4a2) + _0x19667c(0x79c) + '3D' + _0x358004[_0x19667c(0x395)]['source']), _0x49b04c['adTagUrl'] = _0x20aa13, _0x49b04c[_0x19667c(0x41b) + 'dSlotWidth'] = this[_0x19667c(0x832) + 'h'], _0x49b04c[_0x19667c(0x41b) + 'dSlotHeigh' + 't'] = this[_0x19667c(0x5a8) + 'ht'], _0x49b04c['linearAdSl' + _0x19667c(0x6f6)] = this[_0x19667c(0x832) + 'h'], _0x49b04c[_0x19667c(0x78c) + _0x19667c(0x6f6)] = this[_0x19667c(0x5a8) + 'ht'], _0x49b04c['forceNonLi' + _0x19667c(0x535) + 'ot'] = !0x0, _0x49b04c[_0x19667c(0x4c9) + _0x19667c(0x724)](!0x1), _0x49b04c['setAdWillP' + _0x19667c(0x651)](!0x1), _0x4be7d6[_0x19667c(0x4fc)](_0x49b04c); + }, window[_0x1a8e6b(0x77f) + _0x1a8e6b(0x564)](_0x1a8e6b(0x881), () => { + const _0x1d2b1e = _0x1a8e6b; + this['ad']['itmes'][_0x1d2b1e(0x2b2)](_0x17792d => { + const _0x29386d = _0x1d2b1e; + _0x17792d[_0x29386d(0x622)]['width'] = this[_0x29386d(0x832) + 'h'] + 'px', _0x17792d[_0x29386d(0x622)][_0x29386d(0x696)] = this[_0x29386d(0x5a8) + 'ht'] + 'px'; + }), this['mgr'][_0x1d2b1e(0x881)](); + const _0x3896fb = this[_0x1d2b1e(0x832) + 'h'] / this['clientHeig' + 'ht']; + this[_0x1d2b1e(0x446)]['style'][_0x1d2b1e(0x7b6)] = _0x3896fb < 0.359 ? '120px' : _0x3896fb < 0.573 ? _0x1d2b1e(0x858) : _0x3896fb < 0x1 ? _0x1d2b1e(0x329) : _0x1d2b1e(0x3ef); + }), this[_0x1a8e6b(0x371)] = !0x0; + }, + _0x138848 = document[_0x59929b(0x81d) + _0x59929b(0x871)](_0x59929b(0x1bb)); + _0x138848[_0x59929b(0x303)] = () => { + const _0x5e5bc3 = _0x59929b; + _0x16a519(), _0x4d9e3b[_0x5e5bc3(0x395)]['trace'](this[_0x5e5bc3(0x1ab)], _0x5e5bc3(0x371)), _0x759eee(!0x0); + }, _0x138848[_0x59929b(0x382)] = () => { + _0x3c67b0(); + }, _0x138848[_0x59929b(0x836)] = _0x59929b(0x54e) + _0x59929b(0x3da), _0x138848[_0x59929b(0x7ae)] = !0x0, _0x138848['src'] = _0x59929b(0x4f2) + _0x59929b(0x3d1) + _0x59929b(0x42d) + _0x59929b(0x38b) + _0x59929b(0x3b9), _0x138848['id'] = _0x59929b(0x3b5), document[_0x59929b(0x451)][_0x59929b(0x76a) + 'd'](_0x138848); + }); + } [_0x1075bb(0x4c8) + _0x1075bb(0x84e)](_0x2a7120) { + return new Promise((_0x151fb1, _0x2fe983) => { + const _0x4051c2 = _0xb80e; + if (this['isOpening']) return _0x4d9e3b['default'][_0x4051c2(0x1e1)](_0x4051c2(0x21b) + 'titial AD ' + _0x4051c2(0x7c6)), void _0x151fb1({ + 'breakStatus': _0x52c9b9[_0x4051c2(0x648) + 's'][_0x4051c2(0x7ce)] + }); + if ('function' == typeof _0x2a7120) { + const _0x1d4d0d = _0x2a7120; + _0x2a7120 = { + 'beforeShowAd': new Function(), + 'afterShowAd': _0x1d4d0d + }; + } + if (_0x2a7120['finally'] = _0x151fb1, this['iConfig']['init'](_0x2a7120), console[_0x4051c2(0x7ec)], this['format'] = _0x52c9b9['AD'][_0x4051c2(0x23e)], _0x4d9e3b[_0x4051c2(0x395)]['trace']('requesting' + _0x4051c2(0x7b7) + 'stitial AD'), this[_0x4051c2(0x1cb)]['duration'] > 0x0) return this[_0x4051c2(0x1cb)][_0x4051c2(0x21e) + 'Ad'](), this[_0x4051c2(0x1cb)][_0x4051c2(0x5e2) + 'd'](), this[_0x4051c2(0x1cb)][_0x4051c2(0x1f2) + 'e']({ + 'breakStatus': _0x4051c2(0x85a) + this[_0x4051c2(0x1cb)][_0x4051c2(0x894)] + 's-' + this[_0x4051c2(0x1cb)][_0x4051c2(0x70b)] + }), void this[_0x4051c2(0x1cb)][_0x4051c2(0x3ab)]({ + 'breakStatus': _0x52c9b9['BreakStatu' + 's']['frequencyC' + _0x4051c2(0x1be)] + }); + _0x4d9e3b[_0x4051c2(0x395)][_0x4051c2(0x41c) + 'g'](); + try { + clearTimeout(this[_0x4051c2(0x6de)]), this[_0x4051c2(0x6de)] = setTimeout(() => { + const _0x1a2736 = _0x4051c2; + _0x4d9e3b[_0x1a2736(0x395)]['hideLoadin' + 'g'](), this[_0x1a2736(0x1cb)]['finally']({ + 'breakStatus': _0x52c9b9['BreakStatu' + 's'][_0x1a2736(0x797)] + }), this['ad'][_0x1a2736(0x5cf)](); + }, _0x1ed0e2[_0x4051c2(0x395)][_0x4051c2(0x2b5) + _0x4051c2(0x1e8)]), this['ad'][_0x4051c2(0x36e)](_0x4051c2(0x4e0) + _0x4051c2(0x373)); + } catch (_0x410f62) { + throw _0x4d9e3b[_0x4051c2(0x395)][_0x4051c2(0x70c) + 'g'](), new Error(_0x410f62); + } + }); + } + get[_0x1075bb(0x64e) + 'y']() { + return !0x0; + } [_0x1075bb(0x1c3)](_0x1ee61a) { + return new Promise((_0x15ac12, _0x4a5a48) => { + const _0x263ff3 = _0xb80e; + if ('function' == typeof _0x1ee61a) { + const _0x4f9128 = _0x1ee61a; + _0x1ee61a = { + 'beforeShowAd': new Function(), + 'rewardComplete': _0x4f9128 + }; + } + _0x1ee61a['finally'] = _0x15ac12, this[_0x263ff3(0x2fc)]['init'](_0x1ee61a), this['format'] = _0x52c9b9['AD']['reward'], _0x4d9e3b['default']['trace'](_0x263ff3(0x547) + _0x263ff3(0x528) + _0x263ff3(0x389)), _0x4d9e3b[_0x263ff3(0x395)]['showLoadin' + 'g'](); + try { + clearTimeout(this['tid']), this[_0x263ff3(0x6de)] = setTimeout(() => { + const _0x3cb0a7 = _0x263ff3; + _0x4d9e3b[_0x3cb0a7(0x395)][_0x3cb0a7(0x70c) + 'g'](), this['ad'][_0x3cb0a7(0x5cf)](), this['rConfig']['beforeShow' + 'Ad'](), this[_0x3cb0a7(0x2fc)][_0x3cb0a7(0x5e2) + 'd'](), this[_0x3cb0a7(0x2fc)][_0x3cb0a7(0x1f2) + 'e']({ + 'breakStatus': _0x52c9b9[_0x3cb0a7(0x648) + 's'][_0x3cb0a7(0x797)] + }), this[_0x3cb0a7(0x2fc)][_0x3cb0a7(0x3ab)]({ + 'breakStatus': _0x52c9b9[_0x3cb0a7(0x648) + 's'][_0x3cb0a7(0x797)] + }), this[_0x3cb0a7(0x853)](_0x52c9b9[_0x3cb0a7(0x80e)][_0x3cb0a7(0x1f2) + 'e'], { + 'breakStatus': _0x52c9b9[_0x3cb0a7(0x648) + 's'][_0x3cb0a7(0x797)] + }); + }, 0x7d0), this['ad']['request']('VideoAdTyp' + _0x263ff3(0x373)); + } catch (_0x38c138) { + throw _0x4d9e3b[_0x263ff3(0x395)][_0x263ff3(0x70c) + 'g'](), new Error(_0x38c138); + } + return !0x0; + }); + } [_0x1075bb(0x87e)]() { + const _0x26cd26 = _0x1075bb; + if (this['inited'] && (this['iConfig']['update'](), this[_0x26cd26(0x2fc)][_0x26cd26(0x87e)](), this[_0x26cd26(0x786)][_0x26cd26(0x638)])) { + const _0x1d470d = this[_0x26cd26(0x786)]['getTimeOff' + _0x26cd26(0x5b7)](), + _0x32d508 = Math[_0x26cd26(0x39e)](this[_0x26cd26(0x786)][_0x26cd26(0x37c) + _0x26cd26(0x302)]()), + _0x57c7b1 = this['mgr']['getSkipTim' + _0x26cd26(0x76b)](), + _0x247941 = this[_0x26cd26(0x786)]['getFSkipTi' + _0x26cd26(0x7e9)](); + if (this[_0x26cd26(0x1ca) + _0x26cd26(0x47e)]['innerText'] = 0x0 == _0x57c7b1 ? '' + (_0x32d508 > 0x9 ? '' : '0') + _0x32d508 : '', this[_0x26cd26(0x28d)] == _0x52c9b9['AD']['reward']) { + const _0x440f40 = Math[_0x26cd26(0x52e)](_0x1ed0e2[_0x26cd26(0x395)]['AFG_REWARD' + '_SKIP_DURA' + _0x26cd26(0x838)], this[_0x26cd26(0x786)][_0x26cd26(0x280) + 'n']), + _0x1ffa55 = Math[_0x26cd26(0x649)](0x0, _0x440f40 - _0x1d470d); + this[_0x26cd26(0x462)]['innerText'] = _0x26cd26(0x1ee) + _0x1ffa55 + 's', this['mgr'][_0x26cd26(0x5a0)] ? 0x0 == _0x1ffa55 ? this[_0x26cd26(0x446)][_0x26cd26(0x622)][_0x26cd26(0x30a)] = _0x26cd26(0x3b6) : (_0x247941 < 0x1 && (this[_0x26cd26(0x446)][_0x26cd26(0x622)][_0x26cd26(0x30a)] = ''), this[_0x26cd26(0x446)]['innerText'] = _0x26cd26(0x1ee) + _0x1ffa55 + 's') : (this[_0x26cd26(0x462)][_0x26cd26(0x622)][_0x26cd26(0x30a)] = '', 0x0 == _0x1ffa55 && (this['skipButton']['innerText'] = _0x26cd26(0x22e))); + } + if (this['format'] == _0x52c9b9['AD'][_0x26cd26(0x23e)] && !this['mgr'][_0x26cd26(0x5a0)]) { + this[_0x26cd26(0x462)][_0x26cd26(0x622)][_0x26cd26(0x30a)] = ''; + const _0x39f587 = Math[_0x26cd26(0x52e)](_0x1ed0e2['default'][_0x26cd26(0x7a1) + _0x26cd26(0x7cc) + 'N'], this[_0x26cd26(0x786)][_0x26cd26(0x280) + 'n']), + _0x288ae3 = Math[_0x26cd26(0x649)](0x0, _0x39f587 - _0x1d470d); + this[_0x26cd26(0x462)][_0x26cd26(0x65c)] = 0x0 == _0x288ae3 ? _0x26cd26(0x22e) : 'Skip Ad in' + ' ' + _0x288ae3 + 's'; + } + } + } [_0x1075bb(0x309)](_0x58850b) {} ['hideBanner'](_0x156ab7) {} [_0x1075bb(0x64c)](_0x2cf702) {} [_0x1075bb(0x496)](_0x5fb84f) {} + } + _0x418840[_0x1075bb(0x395)] = _0x22f071; + }, + 0x12a7: function (_0x2723f4, _0x5c6d56, _0x11fa8c) { + 'use strict'; + const _0x325b51 = _0xb80e; + var _0x320dfa = this && this[_0x325b51(0x343) + _0x325b51(0x3a7)] || function (_0x29a189) { + const _0x54633a = _0x325b51; + return _0x29a189 && _0x29a189[_0x54633a(0x772)] ? _0x29a189 : { + 'default': _0x29a189 + }; + }; + Object[_0x325b51(0x501) + _0x325b51(0x6a8)](_0x5c6d56, '__esModule', { + 'value': !0x0 + }); + const _0x4c9a5d = _0x11fa8c(0x2505), + _0x13009e = _0x320dfa(_0x11fa8c(0x1c5c)); + _0x5c6d56[_0x325b51(0x395)] = class { + constructor() { + const _0x21f0ff = _0x325b51; + this[_0x21f0ff(0x448)] = !0x1, this[_0x21f0ff(0x638)] = !0x1, this['error'] = new _0x4c9a5d[(_0x21f0ff(0x225))]([_0x21f0ff(0x60f)]), this[_0x21f0ff(0x7b5)] = new _0x4c9a5d[(_0x21f0ff(0x225))]([_0x21f0ff(0x60f)]), this[_0x21f0ff(0x3fd)] = new _0x4c9a5d[(_0x21f0ff(0x225))]([_0x21f0ff(0x60f)]), this[_0x21f0ff(0x1bc)] = new _0x4c9a5d[(_0x21f0ff(0x225))]([_0x21f0ff(0x60f)]), this[_0x21f0ff(0x725)] = new _0x4c9a5d['SyncHook']([_0x21f0ff(0x60f)]), this[_0x21f0ff(0x280) + 'n'] = 0x0, this['maxSkipTim' + _0x21f0ff(0x76b)] = 0x0, this[_0x21f0ff(0x5a0)] = !0x0, this['error']['tap']('mgr', _0x2154f6 => { + const _0x3a622f = _0x21f0ff, + _0x33c6cb = _0x2154f6['getError'](); + _0x13009e['default'][_0x3a622f(0x7db)](_0x3a622f(0x514) + _0x3a622f(0x514) + _0x3a622f(0x514) + _0x3a622f(0x69c) + 'ROR=======' + _0x3a622f(0x514) + _0x3a622f(0x514) + _0x3a622f(0x377)), _0x13009e['default'][_0x3a622f(0x1e1)](_0x3a622f(0x77b), _0x33c6cb[_0x3a622f(0x1c7)]()), _0x13009e[_0x3a622f(0x395)][_0x3a622f(0x1e1)](_0x3a622f(0x285), _0x33c6cb[_0x3a622f(0x2d7)]()), _0x13009e[_0x3a622f(0x395)][_0x3a622f(0x1e1)](_0x3a622f(0x3f3), _0x33c6cb[_0x3a622f(0x7a4) + _0x3a622f(0x719)]()), _0x13009e[_0x3a622f(0x395)][_0x3a622f(0x7db)](_0x3a622f(0x514) + '==========' + _0x3a622f(0x514) + _0x3a622f(0x514) + _0x3a622f(0x514) + _0x3a622f(0x514) + _0x3a622f(0x514) + '====='); + }), this[_0x21f0ff(0x7b5)][_0x21f0ff(0x834)](_0x21f0ff(0x786), _0x26a44b => { + const _0x2536ff = _0x21f0ff; + this[_0x2536ff(0x448)] = !0x0, this['isOpening'] = !0x1; + const _0x4b96ac = _0x26a44b['getAdData'](); + this[_0x2536ff(0x5a0)] = !!_0x4b96ac['skippable'], this[_0x2536ff(0x280) + 'n'] = ~~_0x4b96ac[_0x2536ff(0x70b)], this[_0x2536ff(0x2f8) + _0x2536ff(0x76b)] = ~~_0x4b96ac['skipTimeOf' + _0x2536ff(0x7c3)]; + }), this[_0x21f0ff(0x3fd)]['tap'](_0x21f0ff(0x786), _0x3ce086 => { + const _0x23093e = _0x21f0ff; + this[_0x23093e(0x638)] = !0x0; + }); + } [_0x325b51(0x78f)](_0x4e312a) { + const _0x5bbc57 = _0x325b51; + this[_0x5bbc57(0x71f)](), this[_0x5bbc57(0x3dc)] = _0x4e312a, this[_0x5bbc57(0x3dc)][_0x5bbc57(0x77f) + _0x5bbc57(0x564)](google[_0x5bbc57(0x578)][_0x5bbc57(0x4d6) + 'nt'][_0x5bbc57(0x654)]['AD_ERROR'], _0x3a0d47 => { + const _0xfcb923 = _0x5bbc57; + this[_0xfcb923(0x4e9)][_0xfcb923(0x4bc)](_0x3a0d47); + }), this[_0x5bbc57(0x3dc)][_0x5bbc57(0x77f) + _0x5bbc57(0x564)](google[_0x5bbc57(0x578)][_0x5bbc57(0x80e)][_0x5bbc57(0x654)][_0x5bbc57(0x735)], _0x358eb1 => { + const _0x3a064a = _0x5bbc57; + this[_0x3a064a(0x7b5)]['call'](_0x358eb1); + }), this[_0x5bbc57(0x3dc)][_0x5bbc57(0x77f) + _0x5bbc57(0x564)](google[_0x5bbc57(0x578)]['AdEvent']['Type'][_0x5bbc57(0x4b7)], _0x215ef6 => { + const _0x2918c0 = _0x5bbc57; + this['started'][_0x2918c0(0x4bc)](_0x215ef6); + }), this[_0x5bbc57(0x3dc)]['addEventLi' + _0x5bbc57(0x564)](google[_0x5bbc57(0x578)][_0x5bbc57(0x80e)][_0x5bbc57(0x654)][_0x5bbc57(0x37b)], _0x24b100 => { + const _0x420c92 = _0x5bbc57; + this[_0x420c92(0x1bc)][_0x420c92(0x4bc)](_0x24b100); + }), this[_0x5bbc57(0x3dc)]['addEventLi' + _0x5bbc57(0x564)](google[_0x5bbc57(0x578)]['AdEvent'][_0x5bbc57(0x654)][_0x5bbc57(0x6e2)], _0x5c1a19 => { + const _0x3b96e3 = _0x5bbc57; + this[_0x3b96e3(0x725)][_0x3b96e3(0x4bc)](_0x5c1a19); + }); + try { + this[_0x5bbc57(0x3dc)][_0x5bbc57(0x78f)](this['clientWidt' + 'h'], this['clientHeig' + 'ht'], google[_0x5bbc57(0x578)]['ViewMode']['NORMAL']), this[_0x5bbc57(0x3dc)]['start'](); + } catch (_0x30903f) { + throw _0x30903f; + } + } [_0x325b51(0x71f)]() { + const _0x410ee6 = _0x325b51; + this[_0x410ee6(0x3dc)] && (this['owner'][_0x410ee6(0x71f)](), this['owner'] = null), this[_0x410ee6(0x448)] = !0x1; + } [_0x325b51(0x881)]() { + const _0x106567 = _0x325b51; + this[_0x106567(0x3dc)] && this[_0x106567(0x3dc)]['resize'](this[_0x106567(0x832) + 'h'], this[_0x106567(0x5a8) + 'ht'], google['ima'][_0x106567(0x484)][_0x106567(0x233)]); + } + get[_0x325b51(0x832) + 'h']() { + const _0x2771b4 = _0x325b51; + return window[_0x2771b4(0x39a)] || document[_0x2771b4(0x7a8) + _0x2771b4(0x581)][_0x2771b4(0x832) + 'h'] || document[_0x2771b4(0x6ed)][_0x2771b4(0x832) + 'h']; + } + get[_0x325b51(0x5a8) + 'ht']() { + const _0x2b5953 = _0x325b51; + return window[_0x2b5953(0x710) + 't'] || document['documentEl' + 'ement'][_0x2b5953(0x5a8) + 'ht'] || document[_0x2b5953(0x6ed)]['clientHeig' + 'ht']; + } [_0x325b51(0x7a6)]() { + const _0x502a96 = _0x325b51; + this[_0x502a96(0x725)][_0x502a96(0x4bc)](''); + } [_0x325b51(0x895) + _0x325b51(0x5b7)]() { + const _0x225586 = _0x325b51; + return Math[_0x225586(0x39e)](Math[_0x225586(0x649)](0x0, this[_0x225586(0x280) + 'n'] - this[_0x225586(0x37c) + 'ngTime']())); + } [_0x325b51(0x5cc) + _0x325b51(0x7e9)]() { + const _0x2b6567 = _0x325b51, + _0x23a603 = Math[_0x2b6567(0x649)](0x0, this[_0x2b6567(0x280) + 'n'] - this[_0x2b6567(0x37c) + 'ngTime']()); + return Math[_0x2b6567(0x649)](0x0, this[_0x2b6567(0x2f8) + 'eOffset'] - _0x23a603); + } [_0x325b51(0x738) + _0x325b51(0x6cd)]() { + const _0x57851c = _0x325b51; + return !!this[_0x57851c(0x3dc)] && this[_0x57851c(0x3dc)][_0x57851c(0x738) + _0x57851c(0x6cd)](); + } [_0x325b51(0x442) + 'eOffset']() { + const _0x1b793e = _0x325b51; + return Math[_0x1b793e(0x39e)](Math[_0x1b793e(0x649)](0x0, this[_0x1b793e(0x2f8) + _0x1b793e(0x76b)] - this[_0x1b793e(0x895) + _0x1b793e(0x5b7)]())); + } ['getRemaini' + _0x325b51(0x302)]() { + const _0x2b7891 = _0x325b51; + return this[_0x2b7891(0x3dc)] ? this[_0x2b7891(0x3dc)][_0x2b7891(0x37c) + _0x2b7891(0x302)]() : 0x0; + } + }; + }, + 0x492: function (_0xe62203, _0xb6cb37, _0x56dbfb) { + 'use strict'; + const _0xc8baef = _0xb80e; + var _0x5e9a31 = this && this[_0xc8baef(0x343) + _0xc8baef(0x3a7)] || function (_0x4b5211) { + return _0x4b5211 && _0x4b5211['__esModule'] ? _0x4b5211 : { + 'default': _0x4b5211 + }; + }; + Object['defineProp' + _0xc8baef(0x6a8)](_0xb6cb37, _0xc8baef(0x772), { + 'value': !0x0 + }); + const _0x27ab2c = _0x5e9a31(_0x56dbfb(0x1c97)), + _0xd616f9 = _0x5e9a31(_0x56dbfb(0x1d63)), + _0x673f00 = _0x5e9a31(_0x56dbfb(0xdf3)), + _0x507837 = _0x56dbfb(0x2235), + _0xc49856 = _0x5e9a31(_0x56dbfb(0x92e)), + _0xf8bee4 = _0x5e9a31(_0x56dbfb(0x18b4)), + _0xb50cf5 = _0x56dbfb(0x1b70), + _0x52ecb2 = _0x5e9a31(_0x56dbfb(0x109)), + _0xcfb78f = _0x56dbfb(0xda5), + _0x30408f = _0x5e9a31(_0x56dbfb(0x1c5c)), + _0x643ef1 = _0x5e9a31(_0x56dbfb(0x1588)), + _0x2761fd = _0x56dbfb(0x22bd), + _0x4f43cc = _0x5e9a31(_0x56dbfb(0x4e)), + _0x59599b = _0x5e9a31(_0x56dbfb(0x1c4e)); + class _0x5316e4 extends _0x507837[_0xc8baef(0x327)] { + constructor() { + const _0x4e6661 = _0xc8baef; + super(...arguments), this[_0x4e6661(0x371)] = !0x1, this[_0x4e6661(0x423)] = '', this[_0x4e6661(0x639) + 'e'] = !0x1, this[_0x4e6661(0x237) + _0x4e6661(0x57d)] = {}, this[_0x4e6661(0x6de)] = -0x1; + } + async ['init'](_0x4e830f, _0x5ad29a) { + const _0x72ecdf = _0xc8baef; + if (this['inited']) return; + this['inited'] = !0x0; + + const _0x4a18b6 = document['getElement' + _0x72ecdf(0x312)](_0x72ecdf(0x498)); + _0x4a18b6 && (_0x4a18b6[_0x72ecdf(0x77f) + _0x72ecdf(0x564)](_0x72ecdf(0x45f), this[_0x72ecdf(0x64b)][_0x72ecdf(0x570)](this)), _0x4a18b6['addEventLi' + _0x72ecdf(0x564)](_0x72ecdf(0x87b), this[_0x72ecdf(0x64b)][_0x72ecdf(0x570)](this))); + const _0x3afeef = { + 'appName': _0x4e830f + }; + consoleLog("--fx--_0x52ecb2--", _0x52ecb2[_0x72ecdf(0x395)][_0x72ecdf(0x423)]); + if (this['appName'] = _0x4e830f, _0x52ecb2[_0x72ecdf(0x395)][_0x72ecdf(0x423)] = _0x4e830f, _0x3afeef['config'] = await this[_0x72ecdf(0x7a5)](),consoleLog("--fx--_0x3afeef--", _0x3afeef), _0x3afeef[_0x72ecdf(0x2de)] = _0xb50cf5[_0x72ecdf(0x475) + 'e'][_0x52ecb2[_0x72ecdf(0x395)][_0x72ecdf(0x2de)]], await _0xd616f9[_0x72ecdf(0x395)][_0x72ecdf(0x610) + 'e']()[_0x72ecdf(0x78f)](_0x3afeef), _0xd616f9[_0x72ecdf(0x395)][_0x72ecdf(0x610) + 'e']()[_0x72ecdf(0x4a8) + _0x72ecdf(0x80d)]() === _0xcfb78f[_0x72ecdf(0x7ed) + _0x72ecdf(0x654)][_0x72ecdf(0x81c)] && _0x643ef1['default']['os'] != _0x2761fd['OS']['PC'] && (Laya[_0x72ecdf(0x436)][_0x72ecdf(0x72a)] = Laya['Stage'][_0x72ecdf(0x33f) + _0x72ecdf(0x28e)]), this[_0x72ecdf(0x3d4)] || (this[_0x72ecdf(0x3d4)] = new Laya[(_0x72ecdf(0x325))]()), this['gameBanner'] = _0xf8bee4[_0x72ecdf(0x395)]['createGame' + _0x72ecdf(0x593)](), Laya[_0x72ecdf(0x436)]['addChild'](this[_0x72ecdf(0x6c0)]), this[_0x72ecdf(0x1ba)] = _0xf8bee4['default'][_0x72ecdf(0x653) + _0x72ecdf(0x2a3)](), Laya[_0x72ecdf(0x436)][_0x72ecdf(0x754)](this['gameBox']), this['icon']['on'](Laya[_0x72ecdf(0x5ad)][_0x72ecdf(0x504)], this, () => { + const _0x1a0fc3 = _0x72ecdf; + this['navigate'](_0x1a0fc3(0x278), 'LOGO'); + }), Laya[_0x72ecdf(0x436)]['addChild'](this[_0x72ecdf(0x3d4)]), this['gameBanner'][_0x72ecdf(0x1dd)] = !0x1, _0xd616f9[_0x72ecdf(0x395)][_0x72ecdf(0x610) + 'e']()[_0x72ecdf(0x2db) + 'games']() && 1==0) { + this[_0x72ecdf(0x1ba)]['zOrder'] = 0x30d40, this[_0x72ecdf(0x6c0)][_0x72ecdf(0x56b)] = 0x30d40, this[_0x72ecdf(0x3d4)]['zOrder'] = 0x30d40, this['gameBanner']['visible'] = !0x0, this[_0x72ecdf(0x1ba)][_0x72ecdf(0x1dd)] = !0x0, this[_0x72ecdf(0x6c0)][_0x72ecdf(0x294)][_0x72ecdf(0x348)] = _0xd616f9[_0x72ecdf(0x395)][_0x72ecdf(0x610) + 'e']()[_0x72ecdf(0x213)], Laya[_0x72ecdf(0x46e)][_0x72ecdf(0x6fe)](0x1, this[_0x72ecdf(0x6c0)], this[_0x72ecdf(0x6c0)]['onUpdate']), this[_0x72ecdf(0x3d4)]['skin'] = [_0x72ecdf(0x70a) + 'gamessdk.y' + 'yggames.co' + 'm/sdk/res/' + _0x72ecdf(0x3c6), _0x72ecdf(0x6af), 'BABYGAMES', _0x72ecdf(0x655), _0x72ecdf(0x70a) + _0x72ecdf(0x78a) + _0x72ecdf(0x464) + _0x72ecdf(0x424) + 'cargames.p' + 'ng', _0x72ecdf(0x70a) + _0x72ecdf(0x78a) + 'yggames.co' + _0x72ecdf(0x424) + _0x72ecdf(0x56d) + 'g'][_0x3afeef[_0x72ecdf(0x2de)]], this[_0x72ecdf(0x6c0)][_0x72ecdf(0x859)] = Laya[_0x72ecdf(0x436)]['width'] + 0x190, this[_0x72ecdf(0x6c0)][_0x72ecdf(0x580)] = 0x0; + const _0x1cd7d3 = _0xd616f9['default'][_0x72ecdf(0x610) + 'e']()[_0x72ecdf(0x213)][_0x72ecdf(0x5b4)](), + _0x1df639 = _0xc49856[_0x72ecdf(0x395)][_0x72ecdf(0x748)](0x0, _0x1cd7d3[_0x72ecdf(0x33e)] - 0x1); + this['gameBox'][_0x72ecdf(0x673)][_0x72ecdf(0x4e1)] = _0x1cd7d3[_0x1df639], _0x1cd7d3[_0x72ecdf(0x6e7)](_0x1df639, 0x1); + const _0x1021c1 = _0xc49856['default'][_0x72ecdf(0x748)](0x0, _0x1cd7d3['length'] - 0x1); + this[_0x72ecdf(0x1ba)][_0x72ecdf(0x731)][_0x72ecdf(0x4e1)] = _0x1cd7d3[_0x1021c1], _0x1cd7d3[_0x72ecdf(0x6e7)](_0x1021c1, 0x1), this['gameBox'][_0x72ecdf(0x673)]['on'](Laya[_0x72ecdf(0x5ad)][_0x72ecdf(0x504)], this, () => { + const _0x5097c5 = _0x72ecdf; + _0x5316e4[_0x5097c5(0x610) + 'e']()['navigate']('GAME', 'MORE', this[_0x5097c5(0x1ba)][_0x5097c5(0x673)]['dataSource']['id']); + }), this[_0x72ecdf(0x1ba)][_0x72ecdf(0x731)]['on'](Laya[_0x72ecdf(0x5ad)][_0x72ecdf(0x504)], this, () => { + const _0x1899b1 = _0x72ecdf; + _0x5316e4[_0x1899b1(0x610) + 'e']()['navigate']('GAME', 'MORE', this[_0x1899b1(0x1ba)][_0x1899b1(0x731)]['dataSource']['id']); + }); + } else if (1==0) { + this[_0x72ecdf(0x3d4)]['visible'] = !0x1, this[_0x72ecdf(0x3d4)][_0x72ecdf(0x5f1)] = '', this[_0x72ecdf(0x6c0)]['games'][_0x72ecdf(0x1dd)] = !0x1, this['gameBanner'][_0x72ecdf(0x1dd)] = !0x1, this['gameBanner']['bg']['visible'] = !0x1, this[_0x72ecdf(0x1ba)]['visible'] = !0x1, this['gameBox'][_0x72ecdf(0x673)][_0x72ecdf(0x1dd)] = !0x1, this['gameBox'][_0x72ecdf(0x731)]['visible'] = !0x1; + const _0xd1ac26 = this[_0x72ecdf(0x1ba)][_0x72ecdf(0x673)][_0x72ecdf(0x1a5)] || [], + _0x4605c4 = this[_0x72ecdf(0x1ba)][_0x72ecdf(0x731)][_0x72ecdf(0x1a5)] || []; + for (const _0x47e075 of _0xd1ac26) _0x47e075[_0x72ecdf(0x1dd)] = !0x1; + for (const _0x291b67 of _0x4605c4) _0x291b67[_0x72ecdf(0x1dd)] = !0x1; + } + _0x27ab2c[_0x72ecdf(0x395)][_0x72ecdf(0x610) + 'e']()[_0x72ecdf(0x78f)](), _0x27ab2c['default'][_0x72ecdf(0x610) + 'e']()[_0x72ecdf(0x397)] && (this[_0x72ecdf(0x1fc)] = _0x27ab2c[_0x72ecdf(0x395)]['getInstanc' + 'e'](), Laya[_0x72ecdf(0x53e) + 'er'][_0x72ecdf(0x34c)] = (_0x48be46, _0x2f4a86, _0x6e2611, _0x138286) => (_0x27ab2c['default']['getInstanc' + 'e']()[_0x72ecdf(0x34c)](_0x48be46), null), Laya[_0x72ecdf(0x53e) + 'er'][_0x72ecdf(0x677)] = () => { + consoleLog("--fx--stop1--"); return true; + const _0x1ed54a = _0x72ecdf; + _0x27ab2c[_0x1ed54a(0x395)]['getInstanc' + 'e']()['stopMusic'](); + }, Laya[_0x72ecdf(0x53e) + 'er'][_0x72ecdf(0x23c)] = function (_0xe3b909, _0x1a9413, _0x4b5a0f, _0x5711cf, _0xb2184) { + const _0x1be7cf = _0x72ecdf; + return _0x27ab2c['default'][_0x1be7cf(0x610) + 'e']()['playSound'](_0xe3b909), null; + }, Laya[_0x72ecdf(0x53e) + 'er'][_0x72ecdf(0x192)] = function (_0x1e141f) { + const _0x59597b = _0x72ecdf; + _0x27ab2c[_0x59597b(0x395)][_0x59597b(0x610) + 'e']()[_0x59597b(0x192)](); + }), Laya[_0x72ecdf(0x5c1) + _0x72ecdf(0x281)] = null, window[_0x72ecdf(0x382)] = null, _0x5ad29a && _0x5ad29a(); + console.trace("--fx--init--", arguments); + return; + } [_0xc8baef(0x4c8) + _0xc8baef(0x84e)](_0x4331a6, _0x27fff5) { + const _0x56f504 = _0xc8baef; + let _0x5b92dc = _0x27fff5; + _0x56f504(0x751) == typeof _0x4331a6 && (_0x5b92dc = _0x4331a6, _0x4331a6 = {}), _0xd616f9['default'][_0x56f504(0x610) + 'e']()[_0x56f504(0x4c8) + _0x56f504(0x84e)]({ + 'action': _0x4331a6, + 'beforeShowAd': () => { + const _0x5676d4 = _0x56f504; + _0x52ecb2['default'][_0x5676d4(0x4e4)] = !0x0, clearTimeout(this['tid']), this['tid'] = setTimeout(() => { + const _0x22f4ea = _0x5676d4; + _0x27ab2c['default']['getInstanc' + 'e']()[_0x22f4ea(0x88e)] = !0x0; + }, 0x64), _0x643ef1['default'][_0x5676d4(0x640) + _0x5676d4(0x4a0) + _0x5676d4(0x5e0) + 'ge'] && (_0x59599b[_0x5676d4(0x395)][_0x5676d4(0x414)](), Laya[_0x5676d4(0x436)][_0x5676d4(0x5bc) + 'nabled'] = !0x1, Laya['updateTime' + 'r'] && Laya['updateTime' + 'r'][_0x5676d4(0x414)](), Laya[_0x5676d4(0x204) + 'er'] && Laya[_0x5676d4(0x204) + 'er'][_0x5676d4(0x414)]()); + }, + 'afterShowAd': () => { + const _0x5ce50c = _0x56f504; + window[_0x5ce50c(0x1d8)](), _0x52ecb2[_0x5ce50c(0x395)][_0x5ce50c(0x4e4)] = !0x1, clearTimeout(this[_0x5ce50c(0x6de)]), this[_0x5ce50c(0x6de)] = setTimeout(() => { + const _0x114022 = _0x5ce50c; + _0x27ab2c[_0x114022(0x395)][_0x114022(0x610) + 'e']()[_0x114022(0x88e)] = !0x1; + }, 0x64), _0x643ef1[_0x5ce50c(0x395)][_0x5ce50c(0x640) + _0x5ce50c(0x4a0) + _0x5ce50c(0x5e0) + 'ge'] && (_0x59599b[_0x5ce50c(0x395)]['resume'](), Laya[_0x5ce50c(0x436)][_0x5ce50c(0x5bc) + _0x5ce50c(0x2bf)] = !0x0, Laya[_0x5ce50c(0x6a5) + 'r'] && Laya[_0x5ce50c(0x6a5) + 'r'][_0x5ce50c(0x503)](), Laya['physicsTim' + 'er'] && Laya[_0x5ce50c(0x204) + 'er']['resume']()), _0x5b92dc && _0x5b92dc(); + } + }); + } + get[_0xc8baef(0x64e) + 'y']() { + const _0x12f040 = _0xc8baef; + return _0xd616f9[_0x12f040(0x395)]['getInstanc' + 'e']()[_0x12f040(0x408) + _0x12f040(0x58a)](); + } [_0xc8baef(0x1c3)](_0xb0c90f, _0x565ca0, _0x566f59, _0x6e3e77) { + const _0x37e2e7 = _0xc8baef; + if (_0x37e2e7(0x751) == typeof _0xb0c90f && (_0x6e3e77 = _0x566f59, _0x566f59 = _0x565ca0, _0x565ca0 = _0xb0c90f, _0xb0c90f = {}), !_0xd616f9[_0x37e2e7(0x395)]['getInstanc' + 'e']()['canShowRew' + 'ard']()) return this[_0x37e2e7(0x30b)](_0x37e2e7(0x293) + _0x37e2e7(0x777)), void(_0x6e3e77 && _0x6e3e77()); + _0xd616f9['default']['getInstanc' + 'e']()[_0x37e2e7(0x1c3)]({ + 'action': _0xb0c90f, + 'beforeShowAd': () => { + const _0xc2f3f4 = _0x37e2e7; + _0x52ecb2[_0xc2f3f4(0x395)][_0xc2f3f4(0x4e4)] = !0x0, setTimeout(() => { + const _0x225150 = _0xc2f3f4; + _0x27ab2c[_0x225150(0x395)][_0x225150(0x610) + 'e']()[_0x225150(0x88e)] = !0x0; + }, 0x64), _0x643ef1[_0xc2f3f4(0x395)]['aotuPauseT' + _0xc2f3f4(0x4a0) + 'bilityChan' + 'ge'] && (_0x59599b['default'][_0xc2f3f4(0x414)](), Laya[_0xc2f3f4(0x436)][_0xc2f3f4(0x5bc) + _0xc2f3f4(0x2bf)] = !0x1, Laya[_0xc2f3f4(0x6a5) + 'r'] && Laya[_0xc2f3f4(0x6a5) + 'r'][_0xc2f3f4(0x414)](), Laya[_0xc2f3f4(0x204) + 'er'] && Laya[_0xc2f3f4(0x204) + 'er'][_0xc2f3f4(0x414)]()); + }, + 'afterShowAd': () => { + const _0x8c0017 = _0x37e2e7; + window[_0x8c0017(0x1d8)](), _0x52ecb2[_0x8c0017(0x395)][_0x8c0017(0x4e4)] = !0x1, setTimeout(() => { + const _0x1f5aff = _0x8c0017; + _0x27ab2c['default'][_0x1f5aff(0x610) + 'e']()['muted'] = !0x1; + }, 0x64), _0x643ef1[_0x8c0017(0x395)][_0x8c0017(0x640) + _0x8c0017(0x4a0) + _0x8c0017(0x5e0) + 'ge'] && (_0x59599b['default']['resume'](), Laya[_0x8c0017(0x436)][_0x8c0017(0x5bc) + _0x8c0017(0x2bf)] = !0x0, Laya[_0x8c0017(0x6a5) + 'r'] && Laya[_0x8c0017(0x6a5) + 'r'][_0x8c0017(0x503)](), Laya[_0x8c0017(0x204) + 'er'] && Laya[_0x8c0017(0x204) + 'er'][_0x8c0017(0x503)]()); + }, + 'rewardComplete': () => { + _0x565ca0 && _0x565ca0(), _0x6e3e77 && _0x6e3e77(), _0x6e3e77 = null, _0x565ca0 = null; + }, + 'rewardDismissed': () => { + const _0x50625f = _0x37e2e7; + _0x566f59 && (_0x566f59(), _0x6e3e77 && _0x6e3e77(), _0x6e3e77 = null, _0x566f59 = null), this[_0x50625f(0x30b)](_0x50625f(0x67e) + 'the ad com' + _0x50625f(0x5bf) + _0x50625f(0x852) + _0x50625f(0x1d0) + _0x50625f(0x30d) + 'rd'); + } + }); + } [_0xc8baef(0x30b)](_0x64511d, _0x3c9f4d) { + const _0x476603 = _0xc8baef; + _0x673f00[_0x476603(0x395)]['getInstanc' + 'e']()[_0x476603(0x637)](_0x64511d, _0x3c9f4d); + } [_0xc8baef(0x7a5)]() { + return new Promise((_0x2ba606, _0x19fb73) => { + const _0x57320a = _0xb80e; + var _0x16717a = new XMLHttpRequest(); + _0x16717a[_0x57320a(0x27f)](_0x57320a(0x57f), 'cnf.json', !0x0), _0x16717a['onload'] = function () { + const _0x253657 = _0x57320a; + if (0xc8 !== _0x16717a[_0x253657(0x7db)] && 0x0 !== _0x16717a[_0x253657(0x7db)]) throw _0x253657(0x767) + 'e'; + try { + _0x2ba606(JSON[_0x253657(0x5af)](_0x16717a[_0x253657(0x621) + 'xt'])); + } catch (_0xbda68e) { + _0x2ba606({}); + } + }, _0x16717a['onerror'] = function () { + throw _0x2ba606({}), 'no respons' + 'e'; + }, _0x16717a['ontimeout'] = function () { + _0x2ba606({}); + }, _0x16717a[_0x57320a(0x891)] = function () { + _0x2ba606({}); + }, _0x16717a[_0x57320a(0x5b0)](null); + }); + } ['showLoadin' + 'g']() { + const _0x1f46f3 = _0xc8baef; + _0x30408f[_0x1f46f3(0x395)][_0x1f46f3(0x41c) + 'g'](); + } ['hideLoadin' + 'g']() { + const _0x1e4b23 = _0xc8baef; + _0x30408f[_0x1e4b23(0x395)][_0x1e4b23(0x70c) + 'g'](); + } [_0xc8baef(0x64b)]() { + const _0x3e9979 = _0xc8baef; + if (this[_0x3e9979(0x639) + 'e']) { + const _0x1d4407 = (_0xd616f9[_0x3e9979(0x395)][_0x3e9979(0x610) + 'e']()[_0x3e9979(0x213)][_0x3e9979(0x1cd)](_0x144bda => _0x144bda['id'] == this['navigatePa' + _0x3e9979(0x57d)]['to']) || { + 'name': '' + })[_0x3e9979(0x1ab)]; + this['navigatePa' + _0x3e9979(0x57d)]['name'] = _0x1d4407, _0x4f43cc[_0x3e9979(0x395)]['getInstanc' + 'e']()['event']('navigate', this['navigatePa' + 'ram']), _0xd616f9['default'][_0x3e9979(0x610) + 'e']()['navigate'](this[_0x3e9979(0x237) + _0x3e9979(0x57d)]['screen'], this['navigatePa' + _0x3e9979(0x57d)]['action'], this['navigatePa' + 'ram']['to']); + } + this[_0x3e9979(0x639) + 'e'] = !0x1; + } [_0xc8baef(0x333)](_0xf869fb, _0x338c9e, _0x1a4d01) { + const _0x517dbd = _0xc8baef; + !0x1 === this[_0x517dbd(0x639) + 'e'] && (this['navigatePa' + _0x517dbd(0x57d)][_0x517dbd(0x230)] = _0xf869fb, this['navigatePa' + _0x517dbd(0x57d)][_0x517dbd(0x7cb)] = _0x338c9e, this[_0x517dbd(0x237) + _0x517dbd(0x57d)]['to'] = _0x1a4d01, this[_0x517dbd(0x639) + 'e'] = !0x0); + } [_0xc8baef(0x590)](_0x359066, _0xb4e7d7) { + const _0x17184c = _0xc8baef; + _0xd616f9['default'][_0x17184c(0x610) + 'e']()[_0x17184c(0x590)](_0x359066, _0xb4e7d7); + } [_0xc8baef(0x77f) + _0xc8baef(0x564)](_0x46e51b, _0x381ea2, _0x181949, _0x10b187 = null) { + const _0x579e8f = _0xc8baef; + return _0x4f43cc[_0x579e8f(0x395)][_0x579e8f(0x610) + 'e']()['on'](_0x46e51b, _0x381ea2, _0x181949, _0x10b187); + } + } + _0xb6cb37['default'] = _0x5316e4; + }, + 0x18b4: function (_0x5a01c4, _0x103adc, _0x346aab) { + 'use strict'; + const _0x4f08d2 = _0xb80e; + var _0x5a08b4 = this && this[_0x4f08d2(0x343) + _0x4f08d2(0x3a7)] || function (_0x2fe76b) { + const _0x26039d = _0x4f08d2; + return _0x2fe76b && _0x2fe76b[_0x26039d(0x772)] ? _0x2fe76b : { + 'default': _0x2fe76b + }; + }; + Object[_0x4f08d2(0x501) + _0x4f08d2(0x6a8)](_0x103adc, '__esModule', { + 'value': !0x0 + }); + const _0x155ab6 = _0x5a08b4(_0x346aab(0x492)); + _0x103adc[_0x4f08d2(0x395)] = class { + static['createGame' + 'Banner']() { + const _0x2e844b = _0x4f08d2; + class _0x564ca3 extends Laya[_0x2e844b(0x34a)] { + constructor() { + super(...arguments), this['value'] = 0x1; + } [_0x2e844b(0x5e3) + _0x2e844b(0x779)]() { + const _0x589e18 = _0x2e844b; + super[_0x589e18(0x5e3) + 'dren'](), this['createView'](_0x564ca3[_0x589e18(0x81b)]), this[_0x589e18(0x294)][_0x589e18(0x332) + _0x589e18(0x730)] = '', this[_0x589e18(0x294)][_0x589e18(0x3c8) + _0x589e18(0x4fa)] = new Laya['Handler'](this, this[_0x589e18(0x6dc) + 'er']); + } ['onUpdate']() { + const _0x199e30 = _0x2e844b; + this[_0x199e30(0x294)][_0x199e30(0x5f9)][_0x199e30(0x2a7)] += this[_0x199e30(0x2a7)], this['games']['scrollBar']['value'] >= this['games'][_0x199e30(0x5f9)]['max'] && (this[_0x199e30(0x294)]['scrollBar'][_0x199e30(0x2a7)] = 0x0); + } [_0x2e844b(0x6dc) + 'er'](_0x3cc415, _0x58c218) { + const _0x3017b3 = _0x2e844b, + _0x5636e2 = _0x3cc415[_0x3017b3(0x4e1)]; + _0x3cc415[_0x3017b3(0x6e6)](), _0x3cc415['on'](Laya[_0x3017b3(0x5ad)][_0x3017b3(0x68e)], _0x3cc415, () => { + const _0x3d219a = _0x3017b3; + _0x3cc415[_0x3d219a(0x56b)] = 0x64; + }), _0x3cc415['on'](Laya[_0x3017b3(0x5ad)][_0x3017b3(0x330)], _0x3cc415, () => { + _0x3cc415['zOrder'] = _0x58c218; + }), _0x3cc415['on'](Laya['Event']['MOUSE_OVER'], _0x3cc415, () => { + const _0x418274 = _0x3017b3; + _0x3cc415[_0x418274(0x1db)](_0x3cc415['scaleX'] + 0.1, _0x3cc415[_0x418274(0x618)] + 0.1), this[_0x418274(0x2a7)] = 0x0; + }), _0x3cc415['on'](Laya[_0x3017b3(0x5ad)][_0x3017b3(0x330)], _0x3cc415, () => { + const _0x2f214d = _0x3017b3; + _0x3cc415[_0x2f214d(0x1db)](_0x3cc415[_0x2f214d(0x747)] - 0.1, _0x3cc415[_0x2f214d(0x618)] - 0.1), this[_0x2f214d(0x2a7)] = 0x1; + }), _0x3cc415['on'](Laya[_0x3017b3(0x5ad)][_0x3017b3(0x504)], _0x3cc415, _0x330e8d => { + const _0x24ed8e = _0x3017b3; + _0x330e8d['stopPropag' + _0x24ed8e(0x331)](), _0x155ab6[_0x24ed8e(0x395)][_0x24ed8e(0x610) + 'e']()[_0x24ed8e(0x333)](_0x24ed8e(0x278), _0x24ed8e(0x6b7), _0x5636e2['id']); + }); + } [_0x2e844b(0x576) + _0x2e844b(0x28c)](_0x14d06d, _0x4d0c82) { + const _0x5cbe9d = _0x2e844b; + this['games']['height'] = _0x4d0c82 + 0x32, this[_0x5cbe9d(0x696)] = _0x4d0c82 + 0x32; + const _0xbaadcc = this[_0x5cbe9d(0x294)][_0x5cbe9d(0x72d)]; + _0xbaadcc[_0x5cbe9d(0x4d7)][_0x5cbe9d(0x859)] = _0x14d06d, _0xbaadcc[_0x5cbe9d(0x4d7)][_0x5cbe9d(0x696)] = _0x4d0c82, _0xbaadcc[_0x5cbe9d(0x4d7)]['y'] = _0x4d0c82 / 0x2 + 0x19, _0xbaadcc['child'][0x0][_0x5cbe9d(0x4d7)][_0x5cbe9d(0x859)] = _0x14d06d, _0xbaadcc['child'][0x0][_0x5cbe9d(0x4d7)]['height'] = _0x4d0c82, _0xbaadcc['child'][0x0][_0x5cbe9d(0x662)][0x0][_0x5cbe9d(0x4d7)][_0x5cbe9d(0x859)] = _0x14d06d, _0xbaadcc[_0x5cbe9d(0x662)][0x0]['child'][0x0][_0x5cbe9d(0x4d7)][_0x5cbe9d(0x696)] = _0x4d0c82; + const _0x5d22b5 = this[_0x5cbe9d(0x294)]['cells']; + for (const _0xa95b62 of _0x5d22b5) { + _0xa95b62[_0x5cbe9d(0x859)] = _0x14d06d, _0xa95b62['height'] = _0x4d0c82, _0xa95b62['y'] = _0x4d0c82 / 0x2 + 0x19; + const _0x45b389 = _0xa95b62[_0x5cbe9d(0x1a5)] || _0xa95b62['_childs']; + _0x45b389[0x0][_0x5cbe9d(0x859)] = _0x14d06d, _0x45b389[0x0][_0x5cbe9d(0x696)] = _0x4d0c82, _0x45b389[0x0]['mask'][_0x5cbe9d(0x859)] = _0x14d06d, _0x45b389[0x0]['mask']['height'] = _0x4d0c82; + } + this[_0x5cbe9d(0x294)][_0x5cbe9d(0x6f4)](); + } + } + return _0x564ca3[_0x2e844b(0x81b)] = { + 'type': 'View', + 'props': { + 'width': 0x438, + 'height': 0xc8 + }, + 'compId': 0x2, + 'child': [{ + 'type': _0x2e844b(0x325), + 'props': { + 'var': 'bg', + 'y': 0x0, + 'x': 0x0, + 'top': 0x0, + 'skin': _0x2e844b(0x70a) + _0x2e844b(0x78a) + 'yggames.co' + _0x2e844b(0x424) + _0x2e844b(0x60b), + 'sizeGrid': '30,30,30,3' + '0', + 'right': 0x0, + 'left': 0x0, + 'bottom': 0x0 + }, + 'compId': 0x4 + }, { + 'type': 'List', + 'props': { + 'y': 0x0, + 'x': 0xa, + 'var': _0x2e844b(0x294), + 'right': 0x0, + 'left': 0x0, + 'spaceX': 0x14, + 'centerY': 0x0, + 'height': 0x96, + 'repeatY': 0x1 + }, + 'compId': 0x3, + 'child': [{ + 'type': 'Box', + 'props': { + 'x': 0x64, + 'width': 0xc8, + 'name': 'render', + 'height': 0x96, + 'centerY': 0x0, + 'anchorY': 0.5, + 'anchorX': 0.5 + }, + 'compId': 0x7, + 'child': [{ + 'type': _0x2e844b(0x325), + 'props': { + 'y': 0x0, + 'x': 0x0, + 'width': 0xc8, + 'skin': _0x2e844b(0x70a) + _0x2e844b(0x78a) + _0x2e844b(0x464) + _0x2e844b(0x424) + 'di1.png', + 'name': _0x2e844b(0x685), + 'height': 0x96 + }, + 'compId': 0x8, + 'child': [{ + 'type': _0x2e844b(0x325), + 'props': { + 'y': 0x0, + 'x': 0x0, + 'width': 0xc8, + 'skin': _0x2e844b(0x70a) + _0x2e844b(0x78a) + _0x2e844b(0x464) + 'm/sdk/res/' + _0x2e844b(0x4c0), + 'sizeGrid': _0x2e844b(0x830) + '0', + 'renderType': _0x2e844b(0x805), + 'height': 0x96 + }, + 'compId': 0x9 + }] + }] + }] + }], + 'loadList': [], + 'loadList3D': [] + }, new _0x564ca3(); + } + static['createGame' + 'Box']() { + const _0x26644d = _0x4f08d2; + class _0x55d741 extends Laya[_0x26644d(0x34a)] { + constructor() { + super(...arguments), this['w'] = 0xc8, this['h'] = 0x96, this['isAwake'] = !0x1; + } ['createChil' + _0x26644d(0x779)]() { + const _0x4946a2 = _0x26644d; + super[_0x4946a2(0x5e3) + _0x4946a2(0x779)](), this['createView'](_0x55d741['uiView']); + } ['onAwake']() { + const _0xdab65f = _0x26644d; + this[_0xdab65f(0x19b)] = !0x0; + } ['onEnable']() { + const _0x587be2 = _0x26644d; + this[_0x587be2(0x88d) + _0x587be2(0x529)](); + } [_0x26644d(0x576) + _0x26644d(0x28c)](_0x5993ab, _0x5a1927) { + const _0x56c702 = _0x26644d; + this['w'] = _0x5993ab, this['h'] = _0x5a1927, this[_0x56c702(0x19b)] && this[_0x56c702(0x88d) + _0x56c702(0x529)](); + } [_0x26644d(0x88d) + _0x26644d(0x529)]() { + const _0x3aaf85 = _0x26644d, + _0x16c0b8 = this[_0x3aaf85(0x673)]['getChildBy' + _0x3aaf85(0x4c4)](_0x3aaf85(0x685)), + _0x373e3c = this[_0x3aaf85(0x731)][_0x3aaf85(0x787) + _0x3aaf85(0x4c4)](_0x3aaf85(0x685)), + _0x289f84 = this[_0x3aaf85(0x673)][_0x3aaf85(0x787) + _0x3aaf85(0x4c4)]('bg'), + _0x21648c = this['game2'][_0x3aaf85(0x787) + _0x3aaf85(0x4c4)]('bg'); + _0x16c0b8['width'] = _0x373e3c['width'] = this['w'], _0x16c0b8[_0x3aaf85(0x696)] = _0x373e3c[_0x3aaf85(0x696)] = this['h'], _0x16c0b8[_0x3aaf85(0x805)] && (_0x16c0b8[_0x3aaf85(0x805)]['width'] = this['w'], _0x16c0b8[_0x3aaf85(0x805)][_0x3aaf85(0x696)] = this['h']), _0x373e3c['mask'] && (_0x373e3c['mask'][_0x3aaf85(0x859)] = this['w'], _0x373e3c[_0x3aaf85(0x805)][_0x3aaf85(0x696)] = this['h']), _0x289f84[_0x3aaf85(0x859)] = _0x21648c['width'] = this['w'] + 0x14, _0x289f84['height'] = _0x21648c[_0x3aaf85(0x696)] = this['h'] + 0x14; + } + } + return _0x55d741[_0x26644d(0x81b)] = { + 'type': _0x26644d(0x34a), + 'props': { + 'width': 0x370, + 'mouseThrough': !0x0, + 'height': 0xc8 + }, + 'compId': 0x2, + 'child': [{ + 'type': 'Box', + 'props': { + 'y': 0x64, + 'width': 0xc8, + 'var': _0x26644d(0x673), + 'height': 0x96, + 'anchorY': 0.5, + 'anchorX': 0.5 + }, + 'compId': 0xf, + 'child': [{ + 'type': _0x26644d(0x325), + 'props': { + 'y': 0x4b, + 'x': 0x64, + 'width': 0xdc, + 'skin': _0x26644d(0x70a) + 'gamessdk.y' + _0x26644d(0x464) + _0x26644d(0x424) + 'di1.png', + 'sizeGrid': _0x26644d(0x830) + '0', + 'name': 'bg', + 'height': 0xaa, + 'anchorY': 0.5, + 'anchorX': 0.5 + }, + 'compId': 0x15 + }, { + 'type': _0x26644d(0x325), + 'props': { + 'y': 0x4b, + 'x': 0x64, + 'width': 0xc8, + 'height': 0x96, + 'skin': 'https://h5' + 'gamessdk.y' + _0x26644d(0x464) + _0x26644d(0x424) + _0x26644d(0x4c0), + 'name': _0x26644d(0x685), + 'anchorY': 0.5, + 'anchorX': 0.5 + }, + 'compId': 0x10, + 'child': [{ + 'type': _0x26644d(0x325), + 'props': { + 'y': 0x0, + 'x': 0x0, + 'width': 0xc8, + 'skin': _0x26644d(0x70a) + _0x26644d(0x78a) + _0x26644d(0x464) + _0x26644d(0x424) + 'di1.png', + 'sizeGrid': _0x26644d(0x830) + '0', + 'renderType': _0x26644d(0x805), + 'height': 0x96 + }, + 'compId': 0x11 + }] + }] + }, { + 'type': _0x26644d(0x2a3), + 'props': { + 'y': 0x64, + 'width': 0xc8, + 'var': _0x26644d(0x731), + 'height': 0x96, + 'anchorY': 0.5, + 'anchorX': 0.5 + }, + 'compId': 0x12, + 'child': [{ + 'type': _0x26644d(0x325), + 'props': { + 'y': 0x4b, + 'x': 0x64, + 'width': 0xdc, + 'skin': _0x26644d(0x70a) + _0x26644d(0x78a) + _0x26644d(0x464) + _0x26644d(0x424) + _0x26644d(0x4c0), + 'sizeGrid': _0x26644d(0x830) + '0', + 'name': 'bg', + 'height': 0xaa, + 'anchorY': 0.5, + 'anchorX': 0.5 + }, + 'compId': 0x17 + }, { + 'type': _0x26644d(0x325), + 'props': { + 'y': 0x4b, + 'x': 0x64, + 'width': 0xc8, + 'skin': _0x26644d(0x70a) + _0x26644d(0x78a) + 'yggames.co' + _0x26644d(0x424) + _0x26644d(0x4c0), + 'name': _0x26644d(0x685), + 'height': 0x96, + 'anchorY': 0.5, + 'anchorX': 0.5 + }, + 'compId': 0x18, + 'child': [{ + 'type': _0x26644d(0x325), + 'props': { + 'y': 0x0, + 'x': 0x0, + 'width': 0xc8, + 'skin': 'https://h5' + 'gamessdk.y' + _0x26644d(0x464) + 'm/sdk/res/' + _0x26644d(0x4c0), + 'sizeGrid': '30,30,30,3' + '0', + 'renderType': _0x26644d(0x805), + 'height': 0x96 + }, + 'compId': 0x19 + }] + }] + }], + 'loadList': [_0x26644d(0x70a) + _0x26644d(0x78a) + _0x26644d(0x464) + _0x26644d(0x424) + _0x26644d(0x4c0)], + 'loadList3D': [] + }, new _0x55d741(); + } + }; + }, + 0x1657: (_0x1467ba, _0x5cd1d4) => { + 'use strict'; + const _0x1ab558 = _0xb80e; + Object[_0x1ab558(0x501) + _0x1ab558(0x6a8)](_0x5cd1d4, _0x1ab558(0x772), { + 'value': !0x0 + }), _0x5cd1d4[_0x1ab558(0x395)] = { + 'pubs': { + 0x0: { + 'name': _0x1ab558(0x290), + 'address': _0x1ab558(0x88f) + 'w.yad.com/', + 'channel': 0x455ab0fe, + 'iu': _0x1ab558(0x679) + '11/Yad-Sit' + _0x1ab558(0x7cd) + 'dUnit' + }, + 0x1: { + 'name': _0x1ab558(0x478), + 'address': _0x1ab558(0x88f) + 'w.yiv.com/', + 'channel': 0x1b95af055, + 'iu': '/216275203' + _0x1ab558(0x26b) + 'e-InGame-A' + 'dUnit' + }, + 0x2: { + 'name': _0x1ab558(0x51f) + 'Com', + 'address': _0x1ab558(0x88f) + _0x1ab558(0x369) + 's.com/', + 'channel': 0x148d57258, + 'iu': _0x1ab558(0x679) + _0x1ab558(0x6df) + _0x1ab558(0x223) + _0x1ab558(0x22f) + 't' + }, + 0x3: { + 'name': _0x1ab558(0x425) + _0x1ab558(0x1e2), + 'address': 'https://ww' + 'w.bestgame' + _0x1ab558(0x236), + 'channel': 0x1e606463d, + 'mchannel': 0x24d7cd60f, + 'iu': _0x1ab558(0x679) + _0x1ab558(0x527) + _0x1ab558(0x701) + _0x1ab558(0x3bc) + 'Unit', + 'miu': _0x1ab558(0x679) + _0x1ab558(0x527) + _0x1ab558(0x27c) + 'Site-InGam' + _0x1ab558(0x62c) + }, + 0x4: { + 'name': 'CarGames.C' + 'om', + 'address': 'https://ww' + _0x1ab558(0x20a) + _0x1ab558(0x6a0), + 'channel': 0x25260a417, + 'mchannel': 0x21ffdf68a, + 'iu': '/216275203' + _0x1ab558(0x279) + _0x1ab558(0x29d) + 'InGame-AdU' + _0x1ab558(0x273), + 'miu': '/216275203' + _0x1ab558(0x279) + _0x1ab558(0x5fe) + _0x1ab558(0x210) + _0x1ab558(0x420) + }, + 0x5: { + 'name': _0x1ab558(0x664) + _0x1ab558(0x44d), + 'address': _0x1ab558(0x88f) + _0x1ab558(0x4be) + 'me.com/', + 'channel': 0xfb3a2a68, + 'iu': _0x1ab558(0x679) + _0x1ab558(0x2d3) + _0x1ab558(0x73e) + _0x1ab558(0x837) + 'it' + }, + 0x6: { + 'name': _0x1ab558(0x6e8) + 'om', + 'address': 'https://ww' + _0x1ab558(0x4cc) + _0x1ab558(0x6a0), + 'channel': 0x23b8a563f, + 'mchannel': 0x8ead9d6e, + 'iu': _0x1ab558(0x679) + _0x1ab558(0x6ae) + 's-PC-Site-' + _0x1ab558(0x889) + 'nit', + 'miu': _0x1ab558(0x679) + _0x1ab558(0x6ae) + _0x1ab558(0x5fe) + _0x1ab558(0x210) + _0x1ab558(0x420) + }, + 0x7: { + 'name': '4J.com', + 'address': _0x1ab558(0x88f) + _0x1ab558(0x557), + 'channel': 0x1f4ac44c7, + 'mchannel': 0x24be7e8da, + 'iu': '/216275203' + '11/4J-PC-S' + 'ite-InGame' + _0x1ab558(0x420), + 'miu': '/216275203' + '11/4J-Mobi' + _0x1ab558(0x508) + 'Game-AdUni' + 't' + }, + 0x8: { + 'name': _0x1ab558(0x5ea), + 'address': _0x1ab558(0x88f) + _0x1ab558(0x83e), + 'channel': 0x1922820a5, + 'iu': '/216275203' + '11/Other-S' + 'ite-InGame' + _0x1ab558(0x420) + } + }, + 'hostnames': { + 'www.yad.com': 0x0, + 'www.yiv.com': 0x1, + 'www.babygames.com': 0x2, + 'www.bestgames.com': 0x3, + 'www.cargames.com': 0x4, + 'www.puzzlegame.com': 0x5, + 'www.topgames.com': 0x6, + 'www.4j.com': 0x7 + } + }; + }, + 0x1bba: function (_0x41c62a, _0x449563, _0x5c68ca) { + 'use strict'; + const _0x10b229 = _0xb80e; + var _0x411213 = this && this[_0x10b229(0x343) + _0x10b229(0x3a7)] || function (_0x38a426) { + const _0x1db786 = _0x10b229; + return _0x38a426 && _0x38a426[_0x1db786(0x772)] ? _0x38a426 : { + 'default': _0x38a426 + }; + }; + Object['defineProp' + _0x10b229(0x6a8)](_0x449563, _0x10b229(0x772), { + 'value': !0x0 + }); + const _0x1a0595 = _0x411213(_0x5c68ca(0x18d7)), + _0x3dda30 = _0x411213(_0x5c68ca(0x1588)); + _0x449563[_0x10b229(0x395)] = { + 'preload': function () { + const _0x4afa48 = _0x10b229; + _0x3dda30['default'][_0x4afa48(0x78f)](), window['sys'] = _0x3dda30[_0x4afa48(0x395)], _0x1a0595[_0x4afa48(0x395)]['init'](); + } + }; + }, + 0x191e: (_0x4f4e99, _0x2ad910) => { + 'use strict'; + const _0x4e55fc = _0xb80e; + Object[_0x4e55fc(0x501) + _0x4e55fc(0x6a8)](_0x2ad910, _0x4e55fc(0x772), { + 'value': !0x0 + }), _0x2ad910['default'] = class { + constructor() { + this['_events'] = {}; + } [_0x4e55fc(0x4b6) + 'r'](_0x5eabc7) { + const _0x7a4fa5 = _0x4e55fc; + return !(!this['_events'] || !this[_0x7a4fa5(0x57c)][_0x5eabc7]); + } [_0x4e55fc(0x853)](_0x484b8a, _0x23bb86 = null) { + const _0x52c462 = _0x4e55fc; + if (!this[_0x52c462(0x57c)] || !this['_events'][_0x484b8a]) return !0x1; + var _0x9d318d = this[_0x52c462(0x57c)][_0x484b8a]; + if (_0x9d318d[_0x52c462(0x1f0)]) _0x9d318d[_0x52c462(0x6fa)] && delete this['_events'][_0x484b8a], null != _0x23bb86 ? _0x9d318d[_0x52c462(0x7bc)](_0x23bb86) : _0x9d318d['run'](); + else { + for (var _0xfc8ab8 = 0x0, _0x3eea83 = _0x9d318d[_0x52c462(0x33e)]; _0xfc8ab8 < _0x3eea83; _0xfc8ab8++) { + var _0x9de3fa = _0x9d318d[_0xfc8ab8]; + _0x9de3fa && (null != _0x23bb86 ? _0x9de3fa['runWith'](_0x23bb86) : _0x9de3fa[_0x52c462(0x1f0)]()), _0x9de3fa && !_0x9de3fa[_0x52c462(0x6fa)] || (_0x9d318d[_0x52c462(0x6e7)](_0xfc8ab8, 0x1), _0xfc8ab8--, _0x3eea83--); + } + 0x0 === _0x9d318d[_0x52c462(0x33e)] && this[_0x52c462(0x57c)] && delete this['_events'][_0x484b8a]; + } + return !0x0; + } ['on'](_0x13f641, _0x55d390, _0x54d649, _0x136941 = null) { + const _0x2492b9 = _0x4e55fc; + return this[_0x2492b9(0x246) + _0x2492b9(0x79e)](_0x13f641, _0x55d390, _0x54d649, _0x136941, !0x1); + } ['once'](_0x4492bf, _0x2184ee, _0xa7e898, _0xb73f56 = null) { + const _0x4cd34c = _0x4e55fc; + return this['_createLis' + _0x4cd34c(0x79e)](_0x4492bf, _0x2184ee, _0xa7e898, _0xb73f56, !0x0); + } [_0x4e55fc(0x246) + 'tener'](_0x48a6a2, _0x4e370d, _0x1bd6d4, _0x15c992, _0x52b9e3, _0x3bd070 = !0x0) { + const _0x290f93 = _0x4e55fc; + _0x3bd070 && this['off'](_0x48a6a2, _0x4e370d, _0x1bd6d4, _0x52b9e3); + var _0x27c47b = _0x526d55['create'](_0x4e370d || this, _0x1bd6d4, _0x15c992, _0x52b9e3); + this[_0x290f93(0x57c)] || (this[_0x290f93(0x57c)] = {}); + var _0x5f4bf7 = this[_0x290f93(0x57c)]; + return _0x5f4bf7[_0x48a6a2] ? _0x5f4bf7[_0x48a6a2][_0x290f93(0x1f0)] ? _0x5f4bf7[_0x48a6a2] = [_0x5f4bf7[_0x48a6a2], _0x27c47b] : _0x5f4bf7[_0x48a6a2]['push'](_0x27c47b) : _0x5f4bf7[_0x48a6a2] = _0x27c47b, this; + } [_0x4e55fc(0x361)](_0x5c2a2b, _0x44e9b7, _0x5dbc89, _0x5225ca = !0x1) { + const _0x4886ac = _0x4e55fc; + if (!this[_0x4886ac(0x57c)] || !this[_0x4886ac(0x57c)][_0x5c2a2b]) return this; + var _0x44d63a = this[_0x4886ac(0x57c)][_0x5c2a2b]; + if (null != _0x44d63a) { + if (_0x44d63a[_0x4886ac(0x1f0)]) _0x44e9b7 && _0x44d63a[_0x4886ac(0x82f)] !== _0x44e9b7 || null != _0x5dbc89 && _0x44d63a[_0x4886ac(0x2f1)] !== _0x5dbc89 || _0x5225ca && !_0x44d63a[_0x4886ac(0x6fa)] || (delete this[_0x4886ac(0x57c)][_0x5c2a2b], _0x44d63a[_0x4886ac(0x599)]()); + else { + for (var _0x30670c = 0x0, _0x5c90f9 = 0x0, _0x33818d = _0x44d63a[_0x4886ac(0x33e)]; _0x5c90f9 < _0x33818d; _0x5c90f9++) { + var _0x3e469d = _0x44d63a[_0x5c90f9]; + _0x3e469d ? !_0x3e469d || _0x44e9b7 && _0x3e469d[_0x4886ac(0x82f)] !== _0x44e9b7 || null != _0x5dbc89 && _0x3e469d[_0x4886ac(0x2f1)] !== _0x5dbc89 || _0x5225ca && !_0x3e469d[_0x4886ac(0x6fa)] || (_0x30670c++, _0x44d63a[_0x5c90f9] = null, _0x3e469d[_0x4886ac(0x599)]()) : _0x30670c++; + } + _0x30670c === _0x33818d && delete this[_0x4886ac(0x57c)][_0x5c2a2b]; + } + } + return this; + } [_0x4e55fc(0x6e6)](_0x3ea24f = null) { + const _0x473a65 = _0x4e55fc; + var _0x24f304 = this[_0x473a65(0x57c)]; + if (!_0x24f304) return this; + if (_0x3ea24f) this['_recoverHa' + _0x473a65(0x407)](_0x24f304[_0x3ea24f]), delete _0x24f304[_0x3ea24f]; + else { + for (var _0x3737d8 in _0x24f304) this[_0x473a65(0x33a) + _0x473a65(0x407)](_0x24f304[_0x3737d8]); + this[_0x473a65(0x57c)] = null; + } + return this; + } [_0x4e55fc(0x346) + 'er'](_0x47b9f0) { + const _0x3ea879 = _0x4e55fc; + if (_0x47b9f0 && this[_0x3ea879(0x57c)]) { + for (var _0x7bb35b in this[_0x3ea879(0x57c)]) this[_0x3ea879(0x361)](_0x7bb35b, _0x47b9f0, null); + } + return this; + } ['_recoverHa' + 'ndlers'](_0x2cabb8) { + const _0xb653d = _0x4e55fc; + if (_0x2cabb8) { + if (_0x2cabb8[_0xb653d(0x1f0)]) _0x2cabb8[_0xb653d(0x599)](); + else { + for (var _0x2bfb17 = _0x2cabb8[_0xb653d(0x33e)] - 0x1; _0x2bfb17 > -0x1; _0x2bfb17--) _0x2cabb8[_0x2bfb17] && (_0x2cabb8[_0x2bfb17][_0xb653d(0x599)](), _0x2cabb8[_0x2bfb17] = null); + } + } + } + }; + class _0x17e893 { + constructor(_0x181447 = null, _0x2cab08 = null, _0x360221 = null, _0x3d72fd = !0x1) { + const _0x35cd2f = _0x4e55fc; + this[_0x35cd2f(0x6fa)] = !0x1, this[_0x35cd2f(0x474)] = 0x0, this[_0x35cd2f(0x1f7)](_0x181447, _0x2cab08, _0x360221, _0x3d72fd); + } [_0x4e55fc(0x1f7)](_0x21c3f5, _0x7190da, _0x88fa2f, _0x171f28 = !0x1) { + const _0x19ebee = _0x4e55fc; + return this[_0x19ebee(0x474)] = _0x17e893[_0x19ebee(0x67c)]++, this[_0x19ebee(0x82f)] = _0x21c3f5, this[_0x19ebee(0x2f1)] = _0x7190da, this[_0x19ebee(0x4b4)] = _0x88fa2f, this['once'] = _0x171f28, this; + } ['run']() { + const _0x188002 = _0x4e55fc; + if (null == this[_0x188002(0x2f1)]) return null; + var _0x43ba14 = this['_id'], + _0x127360 = this[_0x188002(0x2f1)][_0x188002(0x28a)](this[_0x188002(0x82f)], this['args']); + return this[_0x188002(0x474)] === _0x43ba14 && this[_0x188002(0x6fa)] && this['recover'](), _0x127360; + } [_0x4e55fc(0x7bc)](_0x1bcdd2) { + const _0x2df46b = _0x4e55fc; + if (null == this[_0x2df46b(0x2f1)]) return null; + var _0x33cf6c = this[_0x2df46b(0x474)]; + if (null == _0x1bcdd2) var _0x37ec87 = this['method'][_0x2df46b(0x28a)](this[_0x2df46b(0x82f)], this[_0x2df46b(0x4b4)]); + else _0x37ec87 = this[_0x2df46b(0x4b4)] || _0x1bcdd2[_0x2df46b(0x421)] ? this[_0x2df46b(0x4b4)] ? this['method'][_0x2df46b(0x28a)](this[_0x2df46b(0x82f)], this[_0x2df46b(0x4b4)]['concat'](_0x1bcdd2)) : this[_0x2df46b(0x2f1)][_0x2df46b(0x28a)](this[_0x2df46b(0x82f)], _0x1bcdd2) : this[_0x2df46b(0x2f1)][_0x2df46b(0x4bc)](this[_0x2df46b(0x82f)], _0x1bcdd2); + return this[_0x2df46b(0x474)] === _0x33cf6c && this[_0x2df46b(0x6fa)] && this[_0x2df46b(0x599)](), _0x37ec87; + } [_0x4e55fc(0x5cf)]() { + const _0x2b7e2f = _0x4e55fc; + return this[_0x2b7e2f(0x82f)] = null, this['method'] = null, this[_0x2b7e2f(0x4b4)] = null, this; + } ['recover']() { + const _0x2fa3a4 = _0x4e55fc; + this[_0x2fa3a4(0x474)] > 0x0 && (this[_0x2fa3a4(0x474)] = 0x0, _0x17e893[_0x2fa3a4(0x819)][_0x2fa3a4(0x2c4)](this[_0x2fa3a4(0x5cf)]())); + } + static[_0x4e55fc(0x36d)](_0x73ef5a, _0x36343e, _0x4d0b31 = null, _0x281e78 = !0x0) { + const _0x2f3c6a = _0x4e55fc; + return _0x17e893[_0x2f3c6a(0x819)]['length'] ? _0x17e893[_0x2f3c6a(0x819)][_0x2f3c6a(0x753)]()[_0x2f3c6a(0x1f7)](_0x73ef5a, _0x36343e, _0x4d0b31, _0x281e78) : new _0x17e893(_0x73ef5a, _0x36343e, _0x4d0b31, _0x281e78); + } + } + _0x17e893[_0x4e55fc(0x819)] = [], _0x17e893[_0x4e55fc(0x67c)] = 0x1; + class _0x526d55 extends _0x17e893 { + constructor(_0x2d1178, _0x5d360e, _0x2e4fe2, _0x736b80) { + super(_0x2d1178, _0x5d360e, _0x2e4fe2, _0x736b80); + } [_0x4e55fc(0x599)]() { + const _0x1588f5 = _0x4e55fc; + this[_0x1588f5(0x474)] > 0x0 && (this['_id'] = 0x0, _0x526d55[_0x1588f5(0x819)][_0x1588f5(0x2c4)](this[_0x1588f5(0x5cf)]())); + } + static[_0x4e55fc(0x36d)](_0x32055e, _0x2e6854, _0x257497 = null, _0x2c03a9 = !0x0) { + const _0x8604b5 = _0x4e55fc; + return _0x526d55[_0x8604b5(0x819)][_0x8604b5(0x33e)] ? _0x526d55[_0x8604b5(0x819)][_0x8604b5(0x753)]()[_0x8604b5(0x1f7)](_0x32055e, _0x2e6854, _0x257497, _0x2c03a9) : new _0x526d55(_0x32055e, _0x2e6854, _0x257497, _0x2c03a9); + } + } + _0x526d55[_0x4e55fc(0x819)] = []; + }, + 0x2235: (_0x537166, _0x4d3150) => { + 'use strict'; + const _0x215bf6 = _0xb80e; + Object[_0x215bf6(0x501) + 'erty'](_0x4d3150, '__esModule', { + 'value': !0x0 + }), _0x4d3150[_0x215bf6(0x327)] = void 0x0, _0x4d3150[_0x215bf6(0x327)] = class { + static['getInstanc' + 'e']() { + const _0x53884b = _0x215bf6; + return this[_0x53884b(0x615)] || (this[_0x53884b(0x615)] = new this()), this['instance']; + } + }; + }, + 0xf43: (_0x5a7c92, _0x57a66e) => { + 'use strict'; + const _0x5027a4 = _0xb80e; + Object[_0x5027a4(0x501) + _0x5027a4(0x6a8)](_0x57a66e, '__esModule', { + 'value': !0x0 + }), _0x57a66e['default'] = class { + constructor() { + const _0x247ad4 = _0x5027a4; + this[_0x247ad4(0x202)] = 0x64, this[_0x247ad4(0x687) + 't'] = {}, this[_0x247ad4(0x23b)] = !0x1, this[_0x247ad4(0x414)] = !0x1; + } [_0x5027a4(0x78f)]() { + this['_context'] = new AudioContext(); + } + get[_0x5027a4(0x23f)]() { + return this['_context']; + } [_0x5027a4(0x1d9)]() { + const _0x5ce6c4 = _0x5027a4; + return _0x5ce6c4(0x432) === this['_context'][_0x5ce6c4(0x3c5)]; + } ['suspend']() { + const _0x4bf752 = _0x5027a4; + this[_0x4bf752(0x85b)]['suspend'](), setTimeout(() => { + this['_context']['suspend'](); + }, 0x64); + } ['resume']() { + const _0xe487df = _0x5027a4; + if (!this[_0xe487df(0x414)]) return this[_0xe487df(0x85b)]['resume'](); + } + set['volume'](_0x293f52) { + const _0x4a387d = _0x5027a4; + this[_0x4a387d(0x202)] = _0x293f52; + for (const _0xec8861 of Object['values'](this[_0x4a387d(0x687) + 't'])) _0xec8861[_0x4a387d(0x45d)] = this[_0x4a387d(0x202)]; + } + get[_0x5027a4(0x45d)]() { + const _0x221ea8 = _0x5027a4; + return this[_0x221ea8(0x202)]; + } [_0x5027a4(0x1aa)](_0x427f6f) { + const _0x5657b8 = _0x5027a4, + _0x34ef90 = this[_0x5657b8(0x687) + 't'][_0x427f6f]; + if (_0x34ef90) try { + _0x34ef90['init'](); + } catch (_0x80c230) { + console['error']('playBuffer' + _0x5657b8(0x626) + _0x5657b8(0x6d4) + _0x80c230); + } else this[_0x5657b8(0x6db)](_0x427f6f); + } [_0x5027a4(0x315)](_0x1e6b85) { + const _0x4dcd25 = _0x5027a4, + _0x3db7c3 = this[_0x4dcd25(0x687) + 't'][_0x1e6b85]; + _0x3db7c3 && _0x3db7c3['disconnect'](); + } [_0x5027a4(0x48c)]() { + const _0x59dda8 = _0x5027a4; + for (const _0x100d4d of Object[_0x59dda8(0x652)](this[_0x59dda8(0x687) + 't'])) _0x100d4d[_0x59dda8(0x5e9)](); + } [_0x5027a4(0x6db)](_0x18f54d) { + return new Promise((_0x2fd9f4, _0x19bbd4) => { + const _0x423c62 = _0xb80e; + if (this[_0x423c62(0x687) + 't'][_0x18f54d]) return void _0x2fd9f4(); + const _0x363118 = this; + var _0x497a23 = new XMLHttpRequest(); + _0x497a23[_0x423c62(0x27f)](_0x423c62(0x57f), _0x18f54d, !0x0), _0x497a23[_0x423c62(0x22c) + 'pe'] = _0x423c62(0x4d2) + 'r', _0x497a23[_0x423c62(0x303)] = function () { + const _0x229152 = _0x423c62; + if (0xc8 !== _0x497a23[_0x229152(0x7db)] && 0x0 !== _0x497a23[_0x229152(0x7db)]) throw _0x229152(0x767) + 'e'; + _0x363118[_0x229152(0x23f)]['decodeAudi' + _0x229152(0x768)](_0x497a23['response'], function (_0x1b2043) { + const _0x4982b4 = _0x229152, + _0x471705 = new _0x5a6a4f(_0x363118[_0x4982b4(0x23f)]); + _0x471705['loop'] = _0x363118[_0x4982b4(0x23b)], _0x471705[_0x4982b4(0x4b0)] = _0x1b2043, _0x363118[_0x4982b4(0x687) + 't'][_0x18f54d] = _0x471705, _0x471705['init'](), _0x471705[_0x4982b4(0x45d)] = _0x363118['volume']; + }, function (_0x295c46) { + const _0x479755 = _0x229152; + console['log']('Decode err' + _0x479755(0x814) + _0x18f54d); + }), _0x2fd9f4(); + }, _0x497a23['onerror'] = function () { + throw _0x2fd9f4(), 'no respons' + 'e'; + }, _0x497a23[_0x423c62(0x376)] = function () { + _0x2fd9f4(); + }, _0x497a23[_0x423c62(0x891)] = function () { + _0x2fd9f4(); + }, _0x497a23[_0x423c62(0x5b0)](null); + }); + } + }; + class _0x5a6a4f { + constructor(_0x3e54ba) { + const _0x3cd5a3 = _0x5027a4; + this[_0x3cd5a3(0x385)] = !0x1, this[_0x3cd5a3(0x764)] = !0x0, this[_0x3cd5a3(0x23b)] = !0x1, this[_0x3cd5a3(0x202)] = 0x64, this[_0x3cd5a3(0x23f)] = _0x3e54ba, this['gain'] = this[_0x3cd5a3(0x23f)][_0x3cd5a3(0x595)](), this[_0x3cd5a3(0x313)][_0x3cd5a3(0x2bd)](this[_0x3cd5a3(0x23f)][_0x3cd5a3(0x471) + 'n']); + } [_0x5027a4(0x78f)]() { + const _0x4658d8 = _0x5027a4; + this['ended'] = !0x1, this[_0x4658d8(0x488)](), this[_0x4658d8(0x461)][_0x4658d8(0x4b0)] = this[_0x4658d8(0x4b0)], this[_0x4658d8(0x461)][_0x4658d8(0x23b)] = this[_0x4658d8(0x23b)], this[_0x4658d8(0x461)][_0x4658d8(0x1f1)](this[_0x4658d8(0x23f)][_0x4658d8(0x531) + 'e']); + } ['setup']() { + const _0x40cf35 = _0x5027a4; + this[_0x40cf35(0x5e9)](), this[_0x40cf35(0x461)] = this['context'][_0x40cf35(0x252) + 'erSource'](), this[_0x40cf35(0x461)]['connect'](this['gain']); + } [_0x5027a4(0x5e9)]() { + const _0x2f9b13 = _0x5027a4; + this[_0x2f9b13(0x461)] && this[_0x2f9b13(0x461)][_0x2f9b13(0x5e9)](), this[_0x2f9b13(0x461)] = null; + } + set[_0x5027a4(0x45d)](_0x5ad26b) { + const _0xeaf5 = _0x5027a4; + this[_0xeaf5(0x202)] = _0x5ad26b, this[_0xeaf5(0x313)][_0xeaf5(0x313)][_0xeaf5(0x2a7)] = this[_0xeaf5(0x202)] / 0x64; + } + get[_0x5027a4(0x45d)]() { + const _0x23646d = _0x5027a4; + return this[_0x23646d(0x202)]; + } + } + }, + 0x1c97: function (_0x2f1fe4, _0x4c38e9, _0x4df5fd) { + 'use strict'; + const _0x4cb540 = _0xb80e; + var _0x32e957 = this && this[_0x4cb540(0x343) + _0x4cb540(0x3a7)] || function (_0x3fce2d) { + const _0x25face = _0x4cb540; + return _0x3fce2d && _0x3fce2d[_0x25face(0x772)] ? _0x3fce2d : { + 'default': _0x3fce2d + }; + }; + Object[_0x4cb540(0x501) + _0x4cb540(0x6a8)](_0x4c38e9, _0x4cb540(0x772), { + 'value': !0x0 + }); + const _0x721be = _0x32e957(_0x4df5fd(0x109)), + _0x3d9441 = _0x32e957(_0x4df5fd(0x1c4e)), + _0x118b34 = _0x32e957(_0x4df5fd(0x1588)), + _0x5c748f = _0x4df5fd(0x2235), + _0x723e8e = _0x32e957(_0x4df5fd(0xf43)); + class _0x47ffe4 extends _0x5c748f[_0x4cb540(0x327)] { + constructor() { + const _0x200fc2 = _0x4cb540; + super(...arguments), this[_0x200fc2(0x431)] = !0x1, this[_0x200fc2(0x477)] = -0x1, this[_0x200fc2(0x397)] = !0x1, this[_0x200fc2(0x698) + 'd'] = !0x1, this[_0x200fc2(0x371)] = !0x1; + } [_0x4cb540(0x78f)]() { + const _0x1703a8 = _0x4cb540; + if (!this[_0x1703a8(0x371)]) { + this[_0x1703a8(0x371)] = !0x0; + try { + window[_0x1703a8(0x534) + 'xt'] = window[_0x1703a8(0x534) + 'xt'] || window[_0x1703a8(0x3e8) + _0x1703a8(0x48e)], this[_0x1703a8(0x58c)] = new _0x723e8e[(_0x1703a8(0x395))](), this['music'][_0x1703a8(0x78f)](), this[_0x1703a8(0x58c)][_0x1703a8(0x23b)] = !0x0, this['sound'] = new _0x723e8e[(_0x1703a8(0x395))](), this['sound']['init'](), window[_0x1703a8(0x829)][_0x1703a8(0x77f) + _0x1703a8(0x564)](_0x1703a8(0x2e9), () => { + setTimeout(() => { + const _0x50fcc5 = _0xb80e; + _0x721be[_0x50fcc5(0x395)][_0x50fcc5(0x4e4)] || this[_0x50fcc5(0x503)](); + }, 0x64); + }, !0x0), window[_0x1703a8(0x829)][_0x1703a8(0x77f) + 'stener'](_0x1703a8(0x7df), () => { + setTimeout(() => { + const _0x2c1304 = _0xb80e; + _0x721be[_0x2c1304(0x395)]['isShowAD'] || this['resume'](); + }, 0x64); + }, !0x0), window['document'][_0x1703a8(0x77f) + 'stener'](_0x1703a8(0x76f) + _0x1703a8(0x491), this[_0x1703a8(0x563) + 'bility']['bind'](this)), this[_0x1703a8(0x58c)][_0x1703a8(0x23f)][_0x1703a8(0x707) + _0x1703a8(0x7c1)] = this[_0x1703a8(0x789) + 'e']['bind'](this), this[_0x1703a8(0x6ff)][_0x1703a8(0x23f)][_0x1703a8(0x707) + 'nge'] = this[_0x1703a8(0x789) + 'e'][_0x1703a8(0x570)](this), this['enabled'] = !0x0, this[_0x1703a8(0x58c)][_0x1703a8(0x45d)] = 0x3c, this[_0x1703a8(0x503)](); + } catch (_0x4aa604) { + this['enabled'] = !0x1, console[_0x1703a8(0x7ec)](_0x1703a8(0x54d) + _0x1703a8(0x86e), _0x4aa604), alert(_0x1703a8(0x54d) + _0x1703a8(0x7f7) + _0x1703a8(0x69d) + _0x1703a8(0x44e) + _0x1703a8(0x556)); + } + } + } [_0x4cb540(0x503)]() { + const _0x22e66d = _0x4cb540; + _0x721be[_0x22e66d(0x395)][_0x22e66d(0x4e4)] || this[_0x22e66d(0x414)] || this['_muted'] || _0x721be[_0x22e66d(0x395)][_0x22e66d(0x414)] || (this['music'][_0x22e66d(0x1d9)]() && this[_0x22e66d(0x58c)][_0x22e66d(0x503)](), this[_0x22e66d(0x6ff)][_0x22e66d(0x1d9)]() && this[_0x22e66d(0x6ff)][_0x22e66d(0x503)](), this[_0x22e66d(0x58c)][_0x22e66d(0x1d9)]() && this[_0x22e66d(0x6ff)][_0x22e66d(0x1d9)]() || (window[_0x22e66d(0x829)][_0x22e66d(0x370) + _0x22e66d(0x631)](_0x22e66d(0x2e9), this[_0x22e66d(0x503)][_0x22e66d(0x570)](this), !0x0), window['document'][_0x22e66d(0x370) + 'tListener'](_0x22e66d(0x7df), this[_0x22e66d(0x503)][_0x22e66d(0x570)](this), !0x0), clearInterval(this['resumeId']), this[_0x22e66d(0x477)] = -0x1)); + } ['changeStat' + 'e']() { + const _0x5cf5af = _0x4cb540; + !this['_muted'] && -0x1 == this[_0x5cf5af(0x477)] && (this[_0x5cf5af(0x58c)][_0x5cf5af(0x1d9)]() && !this[_0x5cf5af(0x58c)]['pause'] || this['sound'][_0x5cf5af(0x1d9)]() && !this['sound'][_0x5cf5af(0x414)]) && (window[_0x5cf5af(0x829)][_0x5cf5af(0x77f) + _0x5cf5af(0x564)](_0x5cf5af(0x2e9), this[_0x5cf5af(0x503)]['bind'](this), !0x0), window[_0x5cf5af(0x829)][_0x5cf5af(0x77f) + 'stener'](_0x5cf5af(0x7df), this[_0x5cf5af(0x503)][_0x5cf5af(0x570)](this), !0x0), this[_0x5cf5af(0x477)] = setInterval(this[_0x5cf5af(0x503)]['bind'](this), 0xc8)); + } [_0x4cb540(0x563) + _0x4cb540(0x1de)]() { + const _0x44c290 = _0x4cb540; + _0x721be[_0x44c290(0x395)]['isShowAD'] || (_0x44c290(0x42e) == document[_0x44c290(0x76f) + 'State'] ? (this[_0x44c290(0x88e)] || (this[_0x44c290(0x698) + 'd'] = this[_0x44c290(0x88e)] = !0x0), _0x44c290(0x54c) != typeof Laya && _0x118b34['default'][_0x44c290(0x640) + 'imerOnVisi' + _0x44c290(0x5e0) + 'ge'] && (_0x3d9441[_0x44c290(0x395)]['pause'](), Laya[_0x44c290(0x436)]['renderingE' + _0x44c290(0x2bf)] = !0x1, Laya[_0x44c290(0x6a5) + 'r'] && Laya[_0x44c290(0x6a5) + 'r'][_0x44c290(0x414)](), Laya[_0x44c290(0x204) + 'er'] && Laya[_0x44c290(0x204) + 'er']['pause']())) : _0x44c290(0x1dd) == document[_0x44c290(0x76f) + _0x44c290(0x65f)] && (this['hiddenMute' + 'd'] && (this['hiddenMute' + 'd'] = this[_0x44c290(0x88e)] = !0x1), _0x44c290(0x54c) != typeof Laya && _0x118b34[_0x44c290(0x395)][_0x44c290(0x640) + _0x44c290(0x4a0) + _0x44c290(0x5e0) + 'ge'] && (_0x3d9441[_0x44c290(0x395)][_0x44c290(0x503)](), Laya[_0x44c290(0x436)][_0x44c290(0x5bc) + 'nabled'] = !0x0, Laya[_0x44c290(0x6a5) + 'r'] && Laya['updateTime' + 'r'][_0x44c290(0x503)](), Laya[_0x44c290(0x204) + 'er'] && Laya['physicsTim' + 'er'][_0x44c290(0x503)]()))); + } + get[_0x4cb540(0x414)]() { + const _0x17aecc = _0x4cb540; + return _0x721be[_0x17aecc(0x395)][_0x17aecc(0x414)]; + } + set[_0x4cb540(0x414)](_0x3c748c) { + const _0x3c1d9a = _0x4cb540; + this[_0x3c1d9a(0x4a3)] = _0x3c748c, this[_0x3c1d9a(0x3f4)] = _0x3c748c, _0x721be[_0x3c1d9a(0x395)][_0x3c1d9a(0x414)] = _0x3c748c; + } + get[_0x4cb540(0x4a3)]() { + const _0x33781a = _0x4cb540; + return this['music'][_0x33781a(0x1d9)](); + } + set[_0x4cb540(0x4a3)](_0x1b1328) { + const _0x4d198f = _0x4cb540; + this[_0x4d198f(0x58c)][_0x4d198f(0x414)] = _0x1b1328, _0x1b1328 ? this[_0x4d198f(0x58c)][_0x4d198f(0x743)]() : this[_0x4d198f(0x88e)] || this[_0x4d198f(0x58c)][_0x4d198f(0x503)](); + } + get[_0x4cb540(0x3f4)]() { + const _0x44496d = _0x4cb540; + return this[_0x44496d(0x6ff)][_0x44496d(0x1d9)](); + } + set['pauseSound'](_0x48877b) { + const _0x4b931c = _0x4cb540; + this[_0x4b931c(0x6ff)][_0x4b931c(0x414)] = _0x48877b, _0x48877b ? this[_0x4b931c(0x6ff)][_0x4b931c(0x743)]() : this['muted'] || this['sound'][_0x4b931c(0x503)](); + } + set['muted'](_0x3948b2) { + const _0x10e719 = _0x4cb540; + this[_0x10e719(0x431)] = _0x3948b2, this[_0x10e719(0x431)] ? (this[_0x10e719(0x58c)][_0x10e719(0x743)](), this[_0x10e719(0x6ff)]['suspend']()) : -0x1 == this[_0x10e719(0x477)] && (this['resumeId'] = setInterval(this[_0x10e719(0x503)][_0x10e719(0x570)](this), 0xc8)); + } + get[_0x4cb540(0x88e)]() { + const _0x7cbb2d = _0x4cb540; + return this[_0x7cbb2d(0x431)]; + } [_0x4cb540(0x34c)](_0x242594) { + const _0x34d099 = _0x4cb540; + _0x721be[_0x34d099(0x395)][_0x34d099(0x414)] || this['music'][_0x34d099(0x1aa)](_0x242594); + } [_0x4cb540(0x677)]() { + const _0x225170 = _0x4cb540; + this[_0x225170(0x58c)][_0x225170(0x48c)](); + } ['playSound'](_0x25447d) { + const _0xd67a2a = _0x4cb540; + _0x721be[_0xd67a2a(0x395)][_0xd67a2a(0x414)] || this['sound']['play'](_0x25447d); + } [_0x4cb540(0x192)]() { + this['sound']['stopAll'](); + } + } + _0x4c38e9[_0x4cb540(0x395)] = _0x47ffe4; + }, + 0x7bc: function (_0x25d641, _0x45a87e, _0x19aca0) { + 'use strict'; + const _0x2822a6 = _0xb80e; + var _0x14455e = this && this[_0x2822a6(0x343) + _0x2822a6(0x3a7)] || function (_0x166def) { + const _0x5e25f1 = _0x2822a6; + return _0x166def && _0x166def[_0x5e25f1(0x772)] ? _0x166def : { + 'default': _0x166def + }; + }; + Object[_0x2822a6(0x501) + 'erty'](_0x45a87e, _0x2822a6(0x772), { + 'value': !0x0 + }); + const _0x219564 = _0x14455e(_0x19aca0(0x109)), + _0x4c0033 = _0x14455e(_0x19aca0(0x1c5c)); + class _0x108185 { + static[_0x2822a6(0x78f)](_0xf24fbd, _0x25556c) { + const _0x33f886 = _0x2822a6; + if (this[_0x33f886(0x371)]) return; + this['inited'] = !0x0, window[_0x33f886(0x6f0)] = window[_0x33f886(0x6f0)] || [], window[_0x33f886(0x532)] = window[_0x33f886(0x532)] || function () { + const _0x397cfa = _0x33f886; + window[_0x397cfa(0x6f0)]['push'](arguments); + }, gtag('js', new Date()), gtag(_0x33f886(0x62b), _0xf24fbd), gtag(_0x33f886(0x5b7), { + 'cookie_flags': 'SameSite=N' + _0x33f886(0x429) + }); + const _0x34ba37 = document[_0x33f886(0x81d) + _0x33f886(0x871)](_0x33f886(0x1bb)); + return _0x34ba37[_0x33f886(0x303)] = function () { + const _0x42f99c = _0x33f886; + _0x108185[_0x42f99c(0x853)](_0x42f99c(0x6ac)); + }, _0x34ba37[_0x33f886(0x7ae)] = !0x0, _0x34ba37[_0x33f886(0x318)] = _0x33f886(0x88f) + 'w.googleta' + _0x33f886(0x2b3) + _0x33f886(0x7bb) + _0x33f886(0x434) + _0xf24fbd, document[_0x33f886(0x451)][_0x33f886(0x76a) + 'd'](_0x34ba37), this[_0x33f886(0x803)](_0x33f886(0x76d) + _0x33f886(0x833), () => _0x4c0033[_0x33f886(0x395)][_0x33f886(0x55a)](document['referrer'])), this[_0x33f886(0x803)]('event_labe' + 'l', () => _0x219564[_0x33f886(0x395)][_0x33f886(0x668)] + '-' + _0x219564[_0x33f886(0x395)][_0x33f886(0x423)]), this[_0x33f886(0x803)]('event_call' + _0x33f886(0x520), () => function () {}), _0x25556c && _0x25556c(), !0x0; + } + static[_0x2822a6(0x803)](_0x1cc84b, _0x3ba7de) { + this['mp']['set'](_0x1cc84b, _0x3ba7de); + } + static['event'](_0x47c601, _0x27ca57) { + const _0x315de1 = _0x2822a6; + _0x27ca57 = _0x27ca57 || {}; + for (const [_0x572f76, _0x167dbb] of this['mp'][_0x315de1(0x541)]()) !_0x27ca57[_0x572f76] && _0x167dbb && (_0x27ca57[_0x572f76] = _0x167dbb()); + gtag(_0x315de1(0x853), _0x47c601, _0x27ca57); + } + } + _0x45a87e[_0x2822a6(0x395)] = _0x108185, _0x108185['inited'] = !0x1, _0x108185['mp'] = new Map(); + }, + 0x22bd: (_0x2d4774, _0x2c5f48) => { + 'use strict'; + const _0x47122d = _0xb80e; + var _0x5468a9, _0x12f623; + Object[_0x47122d(0x501) + 'erty'](_0x2c5f48, _0x47122d(0x772), { + 'value': !0x0 + }), _0x2c5f48['ENV'] = _0x2c5f48['OS'] = void 0x0, (_0x12f623 = _0x2c5f48['OS'] || (_0x2c5f48['OS'] = {}))['UNKNOWN'] = _0x47122d(0x3ec), _0x12f623['IOS'] = _0x47122d(0x515), _0x12f623[_0x47122d(0x630)] = 'Android', _0x12f623['PC'] = 'PC', (_0x5468a9 = _0x2c5f48['ENV'] || (_0x2c5f48[_0x47122d(0x32f)] = {}))[_0x5468a9['PRE'] = 0x0] = 'PRE', _0x5468a9[_0x5468a9['YAD'] = 0x1] = _0x47122d(0x587), _0x5468a9[_0x5468a9['YIV'] = 0x2] = _0x47122d(0x6af), _0x5468a9[_0x5468a9[_0x47122d(0x6da)] = 0x3] = _0x47122d(0x6da), _0x5468a9[_0x5468a9[_0x47122d(0x702)] = 0x4] = _0x47122d(0x702), _0x5468a9[_0x5468a9[_0x47122d(0x437)] = 0x5] = _0x47122d(0x437), _0x5468a9[_0x5468a9['BESTGAMES'] = 0x6] = 'BESTGAMES', _0x5468a9[_0x5468a9[_0x47122d(0x6ea)] = 0x7] = _0x47122d(0x6ea), _0x5468a9[_0x5468a9['J4'] = 0x8] = 'J4', _0x5468a9[_0x5468a9[_0x47122d(0x487)] = 0x9] = 'OTHER', _0x5468a9[_0x5468a9['JUMP'] = 0xa] = 'JUMP'; + }, + 0x1588: (_0x44d0e2, _0x3c434a, _0x267071) => { + 'use strict'; + const _0x9c22ca = _0xb80e; + Object[_0x9c22ca(0x501) + _0x9c22ca(0x6a8)](_0x3c434a, _0x9c22ca(0x772), { + 'value': !0x0 + }); + const _0x48192d = _0x267071(0x22bd); + class _0x45c961 { + static[_0x9c22ca(0x78f)]() { + const _0x14ec33 = _0x9c22ca; + if (this[_0x14ec33(0x371)]) return; + this[_0x14ec33(0x371)] = !0x0; + const _0x5449ee = window['navigator'][_0x14ec33(0x7f5)], + _0x51adcb = _0x5449ee[_0x14ec33(0x80b)](_0x14ec33(0x3c9)) > -0x1, + _0x520ab1 = _0x5449ee['indexOf'](_0x14ec33(0x6e0)) > -0x1 || _0x5449ee[_0x14ec33(0x80b)](_0x14ec33(0x400)) > -0x1; + _0x5449ee[_0x14ec33(0x846)](/\(i[^;]+;( U;)? CPU.+Mac OS X/), this['os'] = _0x51adcb ? _0x520ab1 ? _0x48192d['OS'][_0x14ec33(0x630)] : _0x48192d['OS'][_0x14ec33(0x58d)] : _0x48192d['OS']['PC'], self != top && (this[_0x14ec33(0x537)] = !0x0); + let _0x2d84d6 = location[_0x14ec33(0x55a)]; + if (this['iframe']) { + try { + _0x2d84d6 = top[_0x14ec33(0x89d)][_0x14ec33(0x827)]; + } catch (_0xbaa6ab) { + try { + const _0x549b2a = location['ancestorOr' + 'igins']['length']; + _0x2d84d6 = _0x549b2a > 0x1 ? location[_0x14ec33(0x835) + _0x14ec33(0x3e4)][_0x549b2a - 0x1] : document[_0x14ec33(0x42f)]; + } catch (_0x4b1908) { + try { + _0x2d84d6 = document['referrer']; + } catch (_0x211346) { + try { + _0x2d84d6 = location['hostname']; + } catch (_0x2d41c7) {} + } + } + } + this[_0x14ec33(0x42f)] = new URL(_0x2d84d6)[_0x14ec33(0x55a)]; + } else '' == document[_0x14ec33(0x42f)] ? this[_0x14ec33(0x42f)] = location['hostname'] : this[_0x14ec33(0x42f)] = new URL(document[_0x14ec33(0x42f)])[_0x14ec33(0x55a)]; + const _0x25f14d = this['referrer']; + [_0x14ec33(0x306), _0x14ec33(0x307), '127.0.0.1', _0x14ec33(0x3a9), _0x14ec33(0x3c1) + _0x14ec33(0x7ea) + 't', _0x14ec33(0x6bb) + 'mes-test', 'meenagames' + _0x14ec33(0x2d1), _0x14ec33(0x3c3) + _0x14ec33(0x3a4) + _0x14ec33(0x502), _0x14ec33(0x465) + _0x14ec33(0x34f) + _0x14ec33(0x645), 'dreamtowng' + 'ame.online']['find'](_0x30b5ff => _0x25f14d[_0x14ec33(0x80b)](_0x30b5ff) > -0x1) ? this['env'] = _0x48192d['ENV'][_0x14ec33(0x79a)]: (this[_0x14ec33(0x80a)] = _0x48192d[_0x14ec33(0x32f)][_0x14ec33(0x487)], _0x25f14d[_0x14ec33(0x80b)](_0x14ec33(0x32c)) > -0x1 && (this[_0x14ec33(0x80a)] = _0x48192d['ENV']['YAD']), _0x25f14d[_0x14ec33(0x80b)](_0x14ec33(0x4f3)) > -0x1 && (this['env'] = _0x48192d[_0x14ec33(0x32f)][_0x14ec33(0x6af)]), _0x25f14d[_0x14ec33(0x80b)](_0x14ec33(0x314) + '.com') > -0x1 && (this['env'] = _0x48192d[_0x14ec33(0x32f)][_0x14ec33(0x6da)]), _0x25f14d[_0x14ec33(0x80b)](_0x14ec33(0x5ca) + 'com') > -0x1 && (this[_0x14ec33(0x80a)] = _0x48192d[_0x14ec33(0x32f)]['BABYGAMES']), _0x25f14d[_0x14ec33(0x80b)](_0x14ec33(0x776) + 'om') > -0x1 && (this[_0x14ec33(0x80a)] = _0x48192d['ENV'][_0x14ec33(0x437)]), _0x25f14d[_0x14ec33(0x80b)](_0x14ec33(0x796) + _0x14ec33(0x7c9)) > -0x1 && (this[_0x14ec33(0x80a)] = _0x48192d[_0x14ec33(0x32f)][_0x14ec33(0x655)]), _0x25f14d['indexOf'](_0x14ec33(0x459) + 'om') > -0x1 && (this[_0x14ec33(0x80a)] = _0x48192d[_0x14ec33(0x32f)][_0x14ec33(0x6ea)]), _0x25f14d[_0x14ec33(0x80b)](_0x14ec33(0x428)) > -0x1 && (this[_0x14ec33(0x80a)] = _0x48192d[_0x14ec33(0x32f)]['J4'])); + } + } + _0x3c434a[_0x9c22ca(0x395)] = _0x45c961, _0x45c961[_0x9c22ca(0x371)] = !0x1, _0x45c961['aotuPauseT' + _0x9c22ca(0x4a0) + 'bilityChan' + 'ge'] = !0x0, _0x45c961[_0x9c22ca(0x537)] = !0x1, _0x45c961[_0x9c22ca(0x480)] = !0x1, _0x45c961[_0x9c22ca(0x42f)] = ''; + }, + 0x43b: (_0x39eff0, _0x198db8) => { + 'use strict'; + const _0xc014ac = _0xb80e; + Object['defineProp' + _0xc014ac(0x6a8)](_0x198db8, _0xc014ac(0x772), { + 'value': !0x0 + }), _0x198db8[_0xc014ac(0x395)] = class { + static[_0xc014ac(0x28d)](_0x4d4122, ..._0x480af7) { + const _0x2c006e = _0xc014ac; + for (var _0x6d5058, _0x3eeb70, _0x50f2d2, _0x4a7b43, _0x40cbc5, _0x538eea, _0xded6b2, _0x2e225e, _0x4c4629 = ['([^%]*)', '%', _0x2c006e(0x522) + _0x2c006e(0x6e4), '([1-9]\\d*)' + '?', _0x2c006e(0x604) + _0x2c006e(0x46f), _0x2c006e(0x86b), _0x2c006e(0x457) + 'eEgGaAcCsS' + _0x2c006e(0x24b)][_0x2c006e(0x493)](''), _0x378230 = new RegExp(_0x4c4629), _0x3f45ea = Array[_0x2c006e(0x739)]['slice']['call'](arguments, 0x1), _0x47adc0 = _0x4d4122, _0x1acdac = ''; null !== (_0x2e225e = _0x378230['exec'](_0x47adc0));) + if (_0x1acdac += _0x2e225e[0x1], _0x47adc0 = _0x47adc0[_0x2c006e(0x34d)](_0x2e225e[0x0]['length']), _0x2e225e[0x0][_0x2c006e(0x34d)](_0x2e225e[0x1]['length']), _0x2e225e[0x1][_0x2c006e(0x33e)], _0x2e225e[0x0][_0x2c006e(0x33e)], _0x6d5058 = _0x2e225e[0x2] || '', _0x3eeb70 = _0x2e225e[0x3] || 0x0, _0x2e225e[0x4], _0x4a7b43 = !0x1, _0x538eea = !0x1, _0x40cbc5 = ' ', '%' != (_0x50f2d2 = _0x2e225e[0x6])) switch (_0xded6b2 = _0x3f45ea[_0x2c006e(0x82b)](), _0x6d5058[_0x2c006e(0x846)](/-/) && (_0x4a7b43 = !0x0), _0x6d5058[_0x2c006e(0x846)](/0/) && (_0x40cbc5 = '0'), _0x6d5058[_0x2c006e(0x846)](/\+/) && (_0x538eea = !0x0), _0x50f2d2) { + case 's': + _0x1acdac += this[_0x2c006e(0x812)](_0x40cbc5, _0x3eeb70, _0x4a7b43, _0xded6b2[_0x2c006e(0x3a6)]()); + break; + case 'd': + _0xded6b2 = Math[_0x2c006e(0x39e)](_0xded6b2); + case 'f': + _0x1acdac += (_0x538eea = _0x538eea && _0xded6b2 > 0x0 ? '+' : '') + this[_0x2c006e(0x812)](_0x40cbc5, _0x3eeb70, _0x4a7b43, _0xded6b2[_0x2c006e(0x3a6)]()); + break; + case 'x': + _0x1acdac += this['doPad'](_0x40cbc5, _0x3eeb70, _0x4a7b43, _0xded6b2['toString'](0x10)); + break; + default: + throw _0x2c006e(0x81e) + _0x2c006e(0x7c5); + } else _0x1acdac += '%'; + return _0x1acdac + _0x47adc0; + } + static[_0xc014ac(0x812)](_0x469cdd, _0x16634b, _0x302ba3, _0x1f597c) { + const _0x520a3c = _0xc014ac; + for (var _0x5b9909 = _0x1f597c; _0x5b9909[_0x520a3c(0x33e)] < _0x16634b;) _0x302ba3 ? _0x5b9909 += _0x469cdd : _0x5b9909 = _0x469cdd + _0x5b9909; + return _0x5b9909; + } + }; + }, + 0x1c5c: function (_0x1dfdaf, _0x203684, _0x2d9e20) { + 'use strict'; + const _0x113099 = _0xb80e; + var _0x513839 = this && this[_0x113099(0x343) + _0x113099(0x3a7)] || function (_0x1d6a3e) { + return _0x1d6a3e && _0x1d6a3e['__esModule'] ? _0x1d6a3e : { + 'default': _0x1d6a3e + }; + }; + Object[_0x113099(0x501) + _0x113099(0x6a8)](_0x203684, _0x113099(0x772), { + 'value': !0x0 + }); + const _0x48ec07 = _0x513839(_0x2d9e20(0x1b83)), + _0x3bc958 = _0x513839(_0x2d9e20(0x10e7)); + _0x203684['default'] = class { + static['ga'](_0x481c6a) { + const _0x4519f3 = _0x113099, + _0x29702b = window; + _0x29702b['dataLayer'] = _0x29702b[_0x4519f3(0x6f0)] || [], _0x29702b[_0x4519f3(0x532)] = function (_0x1618fe, _0x2be904) { + const _0x1ea7dd = _0x4519f3; + _0x29702b[_0x1ea7dd(0x6f0)]['push'](arguments); + }, _0x29702b[_0x4519f3(0x532)]('js', new Date()), _0x29702b[_0x4519f3(0x532)](_0x4519f3(0x62b), _0x481c6a); + const _0xf2d36 = document[_0x4519f3(0x81d) + _0x4519f3(0x871)](_0x4519f3(0x1bb)); + _0xf2d36[_0x4519f3(0x7ae)] = !0x0, _0xf2d36[_0x4519f3(0x318)] = _0x4519f3(0x88f) + _0x4519f3(0x4a4) + 'gmanager.c' + _0x4519f3(0x7bb) + _0x4519f3(0x434) + _0x481c6a, document[_0x4519f3(0x451)][_0x4519f3(0x76a) + 'd'](_0xf2d36); + } + static['hostname'](_0x4250e3) { + const _0x3f095f = _0x113099; + try { + const _0x4a51fe = new URL(_0x4250e3)[_0x3f095f(0x55a)][_0x3f095f(0x1a0)]('.'), + _0x358bcc = _0x4a51fe[_0x3f095f(0x33e)] - 0x1, + _0x1d513b = _0x4a51fe['length'] >= 0x3 && (_0x4a51fe[_0x358bcc] + _0x4a51fe[_0x358bcc - 0x1])[_0x3f095f(0x33e)] <= 0x5; + return _0x4a51fe[_0x3f095f(0x6e7)](_0x1d513b ? -0x3 : -0x2)['join']('.'); + } catch (_0xc9c4c3) { + return location[_0x3f095f(0x827)]; + } + } + static[_0x113099(0x1e1)](..._0x38ae20) { + const _0x41e883 = _0x113099; + _0x3bc958[_0x41e883(0x395)][_0x41e883(0x610) + 'e']()[_0x41e883(0x1e1)](..._0x38ae20); + } + static[_0x113099(0x7db)](..._0x4d3ea8) { + const _0x167e22 = _0x113099; + _0x3bc958['default']['getInstanc' + 'e']()[_0x167e22(0x7db)](..._0x4d3ea8); + } + static[_0x113099(0x41c) + 'g']() { + const _0x20da1f = _0x113099; + _0x48ec07['default']['getInstanc' + 'e']()[_0x20da1f(0x41c) + 'g'](); + } + static[_0x113099(0x70c) + 'g']() { + const _0x312eb4 = _0x113099; + _0x48ec07[_0x312eb4(0x395)][_0x312eb4(0x610) + 'e']()[_0x312eb4(0x70c) + 'g'](); + } + }; + }, + 0x92e: function (_0x38c1d7, _0x8f222c, _0x12a5f8) { + 'use strict'; + const _0x41deb7 = _0xb80e; + var _0x4ffe46 = this && this[_0x41deb7(0x343) + _0x41deb7(0x3a7)] || function (_0x2af764) { + const _0x581260 = _0x41deb7; + return _0x2af764 && _0x2af764[_0x581260(0x772)] ? _0x2af764 : { + 'default': _0x2af764 + }; + }; + Object[_0x41deb7(0x501) + _0x41deb7(0x6a8)](_0x8f222c, _0x41deb7(0x772), { + 'value': !0x0 + }); + const _0x87ab9 = _0x4ffe46(_0x12a5f8(0x10e7)), + _0x113f3e = _0x4ffe46(_0x12a5f8(0x1b83)); + _0x8f222c['default'] = class { + static['setLoading' + 'Alpha'](_0x3fcb1b) { + const _0x6d0317 = _0x41deb7; + _0x113f3e[_0x6d0317(0x395)]['getInstanc' + 'e']()[_0x6d0317(0x749)](_0x3fcb1b); + } + static[_0x41deb7(0x79b) + 'nc'](_0x58138f) { + return new Promise((_0x293201, _0x38825e) => { + const _0x1e7d3f = _0xb80e; + var _0x4dfa3c = new XMLHttpRequest(); + _0x4dfa3c[_0x1e7d3f(0x27f)](_0x1e7d3f(0x57f), _0x58138f, !0x0), _0x4dfa3c['onerror'] = _0x4dfa3c[_0x1e7d3f(0x891)] = function (_0x29708d) { + _0x38825e(); + }, _0x4dfa3c[_0x1e7d3f(0x303)] = function (_0x413931) { + const _0x106d8f = _0x1e7d3f; + var _0x4dc888 = void 0x0 !== _0x4dfa3c['status'] ? _0x4dfa3c[_0x106d8f(0x7db)] : 0xc8; + 0xc8 === _0x4dc888 || 0xcc === _0x4dc888 || 0x0 === _0x4dc888 ? _0x293201(JSON[_0x106d8f(0x5af)](_0x4dfa3c['responseTe' + 'xt'])) : _0x38825e(); + }, _0x4dfa3c[_0x1e7d3f(0x5b0)](); + }); + } + static[_0x41deb7(0x20f) + _0x41deb7(0x41a)]() { + const _0x55aa87 = _0x41deb7; + return !!window['yygGamesOw' + _0x55aa87(0x7fe)] && window['yygGamesOw' + _0x55aa87(0x7fe)]; + } + static[_0x41deb7(0x1e1)](..._0x33073b) { + const _0x36ac63 = _0x41deb7; + _0x87ab9[_0x36ac63(0x395)][_0x36ac63(0x610) + 'e']()['trace'](..._0x33073b); + } + static['traceWarn'](_0x3cbe43) { + const _0x50a6cd = _0x41deb7; + _0x87ab9[_0x50a6cd(0x395)][_0x50a6cd(0x610) + 'e']()['traceWarn'](_0x3cbe43); + } + static[_0x41deb7(0x4de) + 'on'](_0x5c740a) { + const _0x4052eb = _0x41deb7; + _0x87ab9[_0x4052eb(0x395)][_0x4052eb(0x610) + 'e']()['traceVersi' + 'on'](_0x5c740a); + } + static[_0x41deb7(0x711)](_0x201c6c) {} + static[_0x41deb7(0x5d8)]() {} + static[_0x41deb7(0x6f3)](_0x2af368) { + return new Promise((_0x2f6823, _0x390078) => { + const _0x544c1b = _0xb80e, + _0x28ace7 = new XMLHttpRequest(); + _0x28ace7[_0x544c1b(0x27f)](_0x544c1b(0x57f), _0x2af368, !0x0), _0x28ace7[_0x544c1b(0x303)] = function () { + const _0x2eac22 = _0x544c1b; + var _0x4ed9b1 = _0x28ace7['response']; + if (0xc8 != _0x28ace7[_0x2eac22(0x7db)] && 0x0 != _0x28ace7['status'] || _0x4ed9b1[_0x2eac22(0x7cf)] < 0xa) _0x2f6823(null); + else { + var _0x34cf84 = null; + try { + _0x34cf84 = JSON[_0x2eac22(0x5af)](_0x4ed9b1); + } catch (_0x2780c1) {} + _0x2f6823(_0x34cf84); + } + }, _0x28ace7[_0x544c1b(0x382)] = function (_0x40b3aa) { + _0x2f6823(null); + }, _0x28ace7[_0x544c1b(0x5b0)](null); + }); + } + static['addAsyncSc' + _0x41deb7(0x3b0)](_0x328f55, _0x1f901d, _0x1ca5b7) { + const _0x5a372e = _0x41deb7; + var _0x4a7b5b = document['getElement' + _0x5a372e(0x312)](_0x1f901d); + _0x4a7b5b || ((_0x4a7b5b = document[_0x5a372e(0x81d) + 'ent'](_0x5a372e(0x1bb)))[_0x5a372e(0x7ae)] = !0x0, _0x4a7b5b[_0x5a372e(0x303)] = _0x1ca5b7, _0x4a7b5b['src'] = _0x328f55, document[_0x5a372e(0x451)][_0x5a372e(0x76a) + 'd'](_0x4a7b5b)); + } + static[_0x41deb7(0x748)](_0x5ccefb, _0x44ff2b) { + const _0x2697aa = _0x41deb7; + return _0x5ccefb + Math[_0x2697aa(0x823)](Math[_0x2697aa(0x718)]() * (_0x44ff2b - _0x5ccefb)); + } + static['randomArra' + 'y'](_0x20f36f) { + const _0x57b1b2 = _0x41deb7; + return _0x20f36f && 0x0 != _0x20f36f['length'] ? _0x20f36f[this[_0x57b1b2(0x748)](0x0, _0x20f36f[_0x57b1b2(0x33e)] - 0x1)] : null; + } + }; + }, + 0x1b60: _0xc7f0fb => { + const _0x541bd5 = _0xb80e; + var _0x39801c; + self, _0x39801c = () => ((() => { + 'use strict'; + var _0x8e6a53 = { + 0x301: (_0x38417b, _0xb2bf03, _0x422bae) => { + const _0x56e817 = _0xb80e, + _0x322534 = _0x422bae(0x7e), + _0x1e78c5 = _0x422bae(0x19b), + _0x3e87e7 = new class extends _0x1e78c5 { + [_0x56e817(0x4a5)]({ + onError: _0xda1469, + onResult: _0x40998b, + onDone: _0x24637c + }) { + const _0x1ed348 = _0x56e817; + let _0x52c82e = ''; + return _0x52c82e += _0x1ed348(0x33b) + _0x1ed348(0x7b1) + _0x1ed348(0x7ac) + this[_0x1ed348(0x3b7)][_0x1ed348(0x7f1)]['length'] + _0x1ed348(0x212), _0x52c82e += _0x1ed348(0x458) + _0x1ed348(0x860) + 'ction() {\x0a', _0x52c82e += _0x1ed348(0x50f) + _0x1ed348(0x19d) + _0x1ed348(0x761) + _0x1ed348(0x83a) + _0x1ed348(0x340), _0x52c82e += 'var item =' + _0x1ed348(0x85d) + _0x1ed348(0x617), _0x52c82e += _0x1ed348(0x299) + '= undefine' + 'd) return ' + _0x1ed348(0x1b9), _0x52c82e += _0x1ed348(0x775) + 'sult !== u' + _0x1ed348(0x3ed) + '{\x0a', _0x52c82e += _0x40998b(_0x1ed348(0x7f8) + 't'), _0x52c82e += _0x1ed348(0x5c9) + _0x1ed348(0x453), _0x52c82e += '}\x0a', _0x52c82e += _0x1ed348(0x64f) + _0x1ed348(0x6a4), _0x52c82e += _0xda1469('item.error'), _0x52c82e += 'return tru' + _0x1ed348(0x453), _0x52c82e += '}\x0a', _0x52c82e += '}\x0a', _0x52c82e += _0x1ed348(0x2e4) + _0x1ed348(0x644), _0x52c82e += '}\x0a', _0x52c82e += this['callTapsPa' + _0x1ed348(0x240)]({ + 'onError': (_0x319e32, _0x620262, _0x5ebf70, _0x59c441) => { + const _0x487315 = _0x1ed348; + let _0x535fdf = ''; + return _0x535fdf += _0x487315(0x40a) + _0x319e32 + (_0x487315(0x6eb) + 's.length &' + _0x487315(0x58b) + _0x487315(0x33c) + '= ') + (_0x319e32 + 0x1) + (_0x487315(0x87a) + _0x487315(0x68c)) + _0x319e32 + ('] = { erro' + _0x487315(0x291)) + _0x620262 + (_0x487315(0x864) + _0x487315(0x1b5) + '{\x0a'), _0x535fdf += _0x59c441(!0x0), _0x535fdf += _0x487315(0x584), _0x535fdf += _0x5ebf70(), _0x535fdf += '}\x0a', _0x535fdf; + }, + 'onResult': (_0x1745a2, _0x7f485c, _0x2ed42d, _0x72c9e3) => { + const _0x481b6f = _0x1ed348; + let _0x520dfd = ''; + return _0x520dfd += 'if(' + _0x1745a2 + (' < _result' + _0x481b6f(0x78d) + _0x481b6f(0x78b)) + _0x7f485c + (_0x481b6f(0x4c2) + 'ined && (_' + 'results.le' + _0x481b6f(0x1d5)) + (_0x1745a2 + 0x1) + (_0x481b6f(0x87a) + 'ts[') + _0x1745a2 + (_0x481b6f(0x19f) + _0x481b6f(0x773)) + _0x7f485c + (_0x481b6f(0x864) + 'kDone())) ' + '{\x0a'), _0x520dfd += _0x72c9e3(!0x0), _0x520dfd += _0x481b6f(0x584), _0x520dfd += _0x2ed42d(), _0x520dfd += '}\x0a', _0x520dfd; + }, + 'onTap': (_0x4abbc3, _0x555793, _0x2c92ac, _0x3b17e5) => { + const _0x130a7b = _0x1ed348; + let _0x46d597 = ''; + return _0x4abbc3 > 0x0 && (_0x46d597 += _0x130a7b(0x40a) + _0x4abbc3 + (' >= _resul' + _0x130a7b(0x418) + _0x130a7b(0x340)), _0x46d597 += _0x2c92ac(), _0x46d597 += '} else {\x0a'), _0x46d597 += _0x555793(), _0x4abbc3 > 0x0 && (_0x46d597 += '}\x0a'), _0x46d597; + }, + 'onDone': _0x24637c + }), _0x52c82e; + } + }(), + _0x1500b7 = function (_0x205537) { + const _0x434832 = _0x56e817; + return _0x3e87e7[_0x434832(0x488)](this, _0x205537), _0x3e87e7[_0x434832(0x36d)](_0x205537); + }; + + function _0x3fe7e4(_0x49bd66 = [], _0x1979db = undefined) { + const _0x34c9a1 = _0x56e817, + _0x2a3c88 = new _0x322534(_0x49bd66, _0x1979db); + return _0x2a3c88['constructo' + 'r'] = _0x3fe7e4, _0x2a3c88[_0x34c9a1(0x4e2)] = _0x1500b7, _0x2a3c88[_0x34c9a1(0x206)] = void 0x0, _0x2a3c88[_0x34c9a1(0x4bc)] = void 0x0, _0x2a3c88; + } + _0x3fe7e4[_0x56e817(0x739)] = null, _0x38417b[_0x56e817(0x255)] = _0x3fe7e4; + }, + 0x102: (_0x129798, _0x446b34, _0x1878e3) => { + const _0x2e8265 = _0xb80e, + _0x3b07dd = _0x1878e3(0x7e), + _0xaee0e2 = _0x1878e3(0x19b), + _0x68048b = new class extends _0xaee0e2 { + ['content']({ + onError: _0x137dc8, + onDone: _0x20806c + }) { + const _0x5cade6 = _0xb80e; + return this[_0x5cade6(0x552) + 'rallel']({ + 'onError': (_0x442b69, _0x1707d8, _0x4e0433, _0x574aeb) => _0x137dc8(_0x1707d8) + _0x574aeb(!0x0), + 'onDone': _0x20806c + }); + } + }(), + _0x4fcf91 = function (_0x1601bd) { + const _0x39fa5a = _0xb80e; + return _0x68048b[_0x39fa5a(0x488)](this, _0x1601bd), _0x68048b[_0x39fa5a(0x36d)](_0x1601bd); + }; + + function _0x406cce(_0x173e91 = [], _0x1af35d = undefined) { + const _0x3c991c = _0xb80e, + _0x55e23e = new _0x3b07dd(_0x173e91, _0x1af35d); + return _0x55e23e[_0x3c991c(0x7fc) + 'r'] = _0x406cce, _0x55e23e['compile'] = _0x4fcf91, _0x55e23e[_0x3c991c(0x206)] = void 0x0, _0x55e23e[_0x3c991c(0x4bc)] = void 0x0, _0x55e23e; + } + _0x406cce[_0x2e8265(0x739)] = null, _0x129798[_0x2e8265(0x255)] = _0x406cce; + }, + 0x2b8: (_0x9be121, _0x3ff643, _0x3c2675) => { + const _0xc86e64 = _0xb80e, + _0x3eacfc = _0x3c2675(0x7e), + _0x4d37c1 = _0x3c2675(0x19b), + _0x1d4a3d = new class extends _0x4d37c1 { + ['content']({ + onError: _0x48cbbb, + onResult: _0x46a353, + resultReturns: _0x56b0c5, + onDone: _0x443d70 + }) { + const _0x583fe9 = _0xb80e; + return this[_0x583fe9(0x6c9) + _0x583fe9(0x688)]({ + 'onError': (_0x21e7bc, _0x5823da, _0x653eb9, _0x3db7ca) => _0x48cbbb(_0x5823da) + _0x3db7ca(!0x0), + 'onResult': (_0x2695e0, _0x275d9f, _0x58a504) => _0x583fe9(0x40a) + _0x275d9f + (_0x583fe9(0x4c2) + _0x583fe9(0x2f4)) + _0x46a353(_0x275d9f) + _0x583fe9(0x6d8) + _0x58a504() + '}\x0a', + 'resultReturns': _0x56b0c5, + 'onDone': _0x443d70 + }); + } + }(), + _0x45a001 = function (_0x361f2e) { + const _0x56cbe7 = _0xb80e; + return _0x1d4a3d['setup'](this, _0x361f2e), _0x1d4a3d[_0x56cbe7(0x36d)](_0x361f2e); + }; + + function _0x217625(_0x1673d5 = [], _0x3a3345 = undefined) { + const _0x2e147f = _0xb80e, + _0x22d962 = new _0x3eacfc(_0x1673d5, _0x3a3345); + return _0x22d962[_0x2e147f(0x7fc) + 'r'] = _0x217625, _0x22d962[_0x2e147f(0x4e2)] = _0x45a001, _0x22d962[_0x2e147f(0x206)] = void 0x0, _0x22d962['call'] = void 0x0, _0x22d962; + } + _0x217625[_0xc86e64(0x739)] = null, _0x9be121[_0xc86e64(0x255)] = _0x217625; + }, + 0x1c9: (_0x2770c8, _0x34b26c, _0x45a698) => { + const _0x3e3383 = _0xb80e, + _0x134ed0 = _0x45a698(0x7e), + _0x4e6554 = _0x45a698(0x19b), + _0x49c429 = new class extends _0x4e6554 { + [_0x3e3383(0x4a5)]({ + onError: _0x366300, + onDone: _0x44600d + }) { + const _0x235fa1 = _0x3e3383; + return this[_0x235fa1(0x6c9) + _0x235fa1(0x688)]({ + 'onError': (_0x31edeb, _0x1fa091, _0x2cc8ff, _0x2f5968) => _0x366300(_0x1fa091) + _0x2f5968(!0x0), + 'onDone': _0x44600d + }); + } + }(), + _0x1c8f80 = function (_0x41a4f2) { + const _0x25b34c = _0x3e3383; + return _0x49c429[_0x25b34c(0x488)](this, _0x41a4f2), _0x49c429[_0x25b34c(0x36d)](_0x41a4f2); + }; + + function _0x1ff640(_0x227b5b = [], _0x3ec17b = undefined) { + const _0x58cf7b = _0x3e3383, + _0x13b7fd = new _0x134ed0(_0x227b5b, _0x3ec17b); + return _0x13b7fd[_0x58cf7b(0x7fc) + 'r'] = _0x1ff640, _0x13b7fd[_0x58cf7b(0x4e2)] = _0x1c8f80, _0x13b7fd['_call'] = void 0x0, _0x13b7fd[_0x58cf7b(0x4bc)] = void 0x0, _0x13b7fd; + } + _0x1ff640[_0x3e3383(0x739)] = null, _0x2770c8[_0x3e3383(0x255)] = _0x1ff640; + }, + 0x344: (_0x4de11e, _0x4c1bb3, _0x17d7cc) => { + const _0x335f9b = _0xb80e, + _0x58e7c7 = _0x17d7cc(0x7e), + _0x416b6a = _0x17d7cc(0x19b), + _0x5bd3a1 = new class extends _0x416b6a { + ['content']({ + onError: _0x50464a, + onDone: _0x1e72be + }) { + const _0x1aad34 = _0xb80e; + return this[_0x1aad34(0x734) + _0x1aad34(0x59a)]({ + 'onError': (_0x1de0f3, _0xc24a1b, _0x18a717, _0x43f9c6) => _0x50464a(_0xc24a1b) + _0x43f9c6(!0x0), + 'onDone': _0x1e72be + }); + } + }(), + _0x204e4d = function (_0x52c9f5) { + return _0x5bd3a1['setup'](this, _0x52c9f5), _0x5bd3a1['create'](_0x52c9f5); + }; + + function _0xb502fc(_0x30b4e1 = [], _0x2867c9 = undefined) { + const _0x4883e8 = _0xb80e, + _0x2e2562 = new _0x58e7c7(_0x30b4e1, _0x2867c9); + return _0x2e2562[_0x4883e8(0x7fc) + 'r'] = _0xb502fc, _0x2e2562['compile'] = _0x204e4d, _0x2e2562[_0x4883e8(0x206)] = void 0x0, _0x2e2562['call'] = void 0x0, _0x2e2562; + } + _0xb502fc[_0x335f9b(0x739)] = null, _0x4de11e[_0x335f9b(0x255)] = _0xb502fc; + }, + 0x2ae: (_0x10950a, _0x222659, _0x525b45) => { + const _0x16c611 = _0xb80e, + _0xd4cdea = _0x525b45(0x7e), + _0x40fd62 = _0x525b45(0x19b), + _0x5d97b7 = new class extends _0x40fd62 { + [_0x16c611(0x4a5)]({ + onError: _0x527312, + onResult: _0x54a397, + onDone: _0x1b14dd + }) { + const _0xf9ee24 = _0x16c611; + return this[_0xf9ee24(0x6c9) + _0xf9ee24(0x688)]({ + 'onError': (_0x12abf6, _0x40d5b4, _0x9dad91, _0x41facf) => _0x527312(_0x40d5b4) + _0x41facf(!0x0), + 'onResult': (_0xa5919f, _0x5835fa, _0x3ad8c8) => { + const _0x4feb6a = _0xf9ee24; + let _0x2740bb = ''; + return _0x2740bb += _0x4feb6a(0x40a) + _0x5835fa + (_0x4feb6a(0x4c2) + 'ined) {\x0a'), _0x2740bb += this[_0x4feb6a(0x2a2)][0x0] + _0x4feb6a(0x43b) + _0x5835fa + ';\x0a', _0x2740bb += '}\x0a', _0x2740bb += _0x3ad8c8(), _0x2740bb; + }, + 'onDone': () => _0x54a397(this[_0xf9ee24(0x2a2)][0x0]) + }); + } + }(), + _0x2a5d68 = function (_0x3a2039) { + const _0x4ea62a = _0x16c611; + return _0x5d97b7[_0x4ea62a(0x488)](this, _0x3a2039), _0x5d97b7[_0x4ea62a(0x36d)](_0x3a2039); + }; + + function _0x2492f6(_0x2e66f = [], _0x2ea096 = undefined) { + const _0x243c57 = _0x16c611; + if (_0x2e66f['length'] < 0x1) throw new Error(_0x243c57(0x7b4) + 'hooks must' + _0x243c57(0x1a7) + _0x243c57(0x665) + _0x243c57(0x744)); + const _0x3807e3 = new _0xd4cdea(_0x2e66f, _0x2ea096); + return _0x3807e3['constructo' + 'r'] = _0x2492f6, _0x3807e3[_0x243c57(0x4e2)] = _0x2a5d68, _0x3807e3[_0x243c57(0x206)] = void 0x0, _0x3807e3[_0x243c57(0x4bc)] = void 0x0, _0x3807e3; + } + _0x2492f6['prototype'] = null, _0x10950a['exports'] = _0x2492f6; + }, + 0x7e: (_0x5b479c, _0x37c34b, _0x39ad30) => { + const _0x57b5f9 = _0xb80e, + _0x1dd2e5 = _0x39ad30(0x9)[_0x57b5f9(0x5ed)](() => {}, _0x57b5f9(0x254) + _0x57b5f9(0x72f) + _0x57b5f9(0x27a) + _0x57b5f9(0x6ee) + _0x57b5f9(0x809)), + _0xf0f574 = function (..._0x14863a) { + const _0x58b0c2 = _0x57b5f9; + return this[_0x58b0c2(0x4bc)] = this[_0x58b0c2(0x1fe) + 'l'](_0x58b0c2(0x54b)), this['call'](..._0x14863a); + }, + _0x33c24a = function (..._0x225b6e) { + const _0x128ae2 = _0x57b5f9; + return this['callAsync'] = this['_createCal' + 'l'](_0x128ae2(0x7ae)), this[_0x128ae2(0x469)](..._0x225b6e); + }, + _0x27fbc0 = function (..._0x3299a0) { + const _0x30a6c7 = _0x57b5f9; + return this[_0x30a6c7(0x351)] = this[_0x30a6c7(0x1fe) + 'l']('promise'), this[_0x30a6c7(0x351)](..._0x3299a0); + }; + class _0x20f014 { + constructor(_0x7373c2 = [], _0x468674 = undefined) { + const _0x48121f = _0x57b5f9; + this[_0x48121f(0x2a2)] = _0x7373c2, this[_0x48121f(0x1ab)] = _0x468674, this[_0x48121f(0x7f1)] = [], this[_0x48121f(0x34e) + 'rs'] = [], this[_0x48121f(0x206)] = _0xf0f574, this[_0x48121f(0x4bc)] = _0xf0f574, this[_0x48121f(0x1dc)] = _0x33c24a, this[_0x48121f(0x469)] = _0x33c24a, this[_0x48121f(0x7a3)] = _0x27fbc0, this[_0x48121f(0x351)] = _0x27fbc0, this['_x'] = void 0x0, this[_0x48121f(0x4e2)] = this[_0x48121f(0x4e2)], this[_0x48121f(0x834)] = this['tap'], this[_0x48121f(0x1e7)] = this['tapAsync'], this['tapPromise'] = this[_0x48121f(0x72b)]; + } [_0x57b5f9(0x4e2)](_0x733833) { + const _0x425c8a = _0x57b5f9; + throw new Error(_0x425c8a(0x500) + _0x425c8a(0x360) + _0x425c8a(0x74d)); + } [_0x57b5f9(0x1fe) + 'l'](_0x339754) { + const _0x257f7c = _0x57b5f9; + return this[_0x257f7c(0x4e2)]({ + 'taps': this[_0x257f7c(0x7f1)], + 'interceptors': this[_0x257f7c(0x34e) + 'rs'], + 'args': this[_0x257f7c(0x2a2)], + 'type': _0x339754 + }); + } [_0x57b5f9(0x1c4)](_0x4c77f1, _0x9b6bb6, _0x5923eb) { + const _0x4e26bf = _0x57b5f9; + if (_0x4e26bf(0x669) == typeof _0x9b6bb6) _0x9b6bb6 = { + 'name': _0x9b6bb6[_0x4e26bf(0x2a6)]() + }; + else { + if (_0x4e26bf(0x5b1) != typeof _0x9b6bb6 || null === _0x9b6bb6) throw new Error(_0x4e26bf(0x873) + _0x4e26bf(0x684)); + } + if (_0x4e26bf(0x669) != typeof _0x9b6bb6['name'] || '' === _0x9b6bb6['name']) throw new Error(_0x4e26bf(0x4d8) + _0x4e26bf(0x59c)); + void 0x0 !== _0x9b6bb6[_0x4e26bf(0x23f)] && _0x1dd2e5(), _0x9b6bb6 = Object[_0x4e26bf(0x709)]({ + 'type': _0x4c77f1, + 'fn': _0x5923eb + }, _0x9b6bb6), _0x9b6bb6 = this[_0x4e26bf(0x6fb) + 'erIntercep' + _0x4e26bf(0x238)](_0x9b6bb6), this[_0x4e26bf(0x766)](_0x9b6bb6); + } [_0x57b5f9(0x834)](_0x52799a, _0x540f3e) { + const _0x4f81c8 = _0x57b5f9; + this[_0x4f81c8(0x1c4)](_0x4f81c8(0x54b), _0x52799a, _0x540f3e); + } ['tapAsync'](_0x2a0f19, _0x1bcf44) { + const _0x11201d = _0x57b5f9; + this[_0x11201d(0x1c4)](_0x11201d(0x7ae), _0x2a0f19, _0x1bcf44); + } ['tapPromise'](_0x5f20c5, _0x43dce5) { + const _0x42bf20 = _0x57b5f9; + this[_0x42bf20(0x1c4)](_0x42bf20(0x351), _0x5f20c5, _0x43dce5); + } ['_runRegist' + _0x57b5f9(0x433) + _0x57b5f9(0x238)](_0x136818) { + const _0x23697c = _0x57b5f9; + for (const _0xc3ca62 of this[_0x23697c(0x34e) + 'rs']) + if (_0xc3ca62[_0x23697c(0x803)]) { + const _0x54ee36 = _0xc3ca62[_0x23697c(0x803)](_0x136818); + void 0x0 !== _0x54ee36 && (_0x136818 = _0x54ee36); + } return _0x136818; + } ['withOption' + 's'](_0x5c8f3e) { + const _0x3126dd = _0x57b5f9, + _0x32409f = _0x8d8c58 => Object[_0x3126dd(0x709)]({}, _0x5c8f3e, _0x3126dd(0x669) == typeof _0x8d8c58 ? { + 'name': _0x8d8c58 + } : _0x8d8c58); + return { + 'name': this[_0x3126dd(0x1ab)], + 'tap': (_0x19bec7, _0x5a2139) => this['tap'](_0x32409f(_0x19bec7), _0x5a2139), + 'tapAsync': (_0x401fd9, _0x4bbd52) => this['tapAsync'](_0x32409f(_0x401fd9), _0x4bbd52), + 'tapPromise': (_0x313128, _0x909051) => this['tapPromise'](_0x32409f(_0x313128), _0x909051), + 'intercept': _0x792a5c => this[_0x3126dd(0x5e5)](_0x792a5c), + 'isUsed': () => this[_0x3126dd(0x627)](), + 'withOptions': _0x1d248f => this[_0x3126dd(0x588) + 's'](_0x32409f(_0x1d248f)) + }; + } [_0x57b5f9(0x627)]() { + const _0x2a7630 = _0x57b5f9; + return this[_0x2a7630(0x7f1)][_0x2a7630(0x33e)] > 0x0 || this[_0x2a7630(0x34e) + 'rs'][_0x2a7630(0x33e)] > 0x0; + } [_0x57b5f9(0x5e5)](_0x3b7880) { + const _0x45120d = _0x57b5f9; + if (this['_resetComp' + _0x45120d(0x66f)](), this[_0x45120d(0x34e) + 'rs'][_0x45120d(0x2c4)](Object[_0x45120d(0x709)]({}, _0x3b7880)), _0x3b7880[_0x45120d(0x803)]) { + for (let _0x164547 = 0x0; _0x164547 < this[_0x45120d(0x7f1)]['length']; _0x164547++) this[_0x45120d(0x7f1)][_0x164547] = _0x3b7880[_0x45120d(0x803)](this[_0x45120d(0x7f1)][_0x164547]); + } + } [_0x57b5f9(0x5b8) + 'ilation']() { + const _0x5c40c0 = _0x57b5f9; + this[_0x5c40c0(0x4bc)] = this['_call'], this['callAsync'] = this[_0x5c40c0(0x1dc)], this[_0x5c40c0(0x351)] = this[_0x5c40c0(0x7a3)]; + } [_0x57b5f9(0x766)](_0x153796) { + const _0x4cd788 = _0x57b5f9; + let _0x1d9abb; + this[_0x4cd788(0x5b8) + 'ilation'](), 'string' == typeof _0x153796[_0x4cd788(0x611)] ? _0x1d9abb = new Set([_0x153796[_0x4cd788(0x611)]]) : Array[_0x4cd788(0x387)](_0x153796[_0x4cd788(0x611)]) && (_0x1d9abb = new Set(_0x153796[_0x4cd788(0x611)])); + let _0x5a13ac = 0x0; + _0x4cd788(0x51c) == typeof _0x153796[_0x4cd788(0x436)] && (_0x5a13ac = _0x153796[_0x4cd788(0x436)]); + let _0x18c086 = this[_0x4cd788(0x7f1)][_0x4cd788(0x33e)]; + for (; _0x18c086 > 0x0;) { + _0x18c086--; + const _0x5d37cf = this[_0x4cd788(0x7f1)][_0x18c086]; + this[_0x4cd788(0x7f1)][_0x18c086 + 0x1] = _0x5d37cf; + const _0x44ef1d = _0x5d37cf[_0x4cd788(0x436)] || 0x0; + if (_0x1d9abb) { + if (_0x1d9abb[_0x4cd788(0x4b3)](_0x5d37cf[_0x4cd788(0x1ab)])) { + _0x1d9abb['delete'](_0x5d37cf['name']); + continue; + } + if (_0x1d9abb['size'] > 0x0) continue; + } + if (!(_0x44ef1d > _0x5a13ac)) { + _0x18c086++; + break; + } + } + this[_0x4cd788(0x7f1)][_0x18c086] = _0x153796; + } + } + Object[_0x57b5f9(0x74c) + 'peOf'](_0x20f014[_0x57b5f9(0x739)], null), _0x5b479c['exports'] = _0x20f014; + }, + 0x19b: _0x30bc82 => { + const _0x379648 = _0xb80e; + _0x30bc82[_0x379648(0x255)] = class { + constructor(_0x4b1e47) { + const _0x3f6bde = _0x379648; + this['config'] = _0x4b1e47, this[_0x3f6bde(0x3b7)] = void 0x0, this[_0x3f6bde(0x2a2)] = void 0x0; + } [_0x379648(0x36d)](_0x59e9a6) { + const _0x552005 = _0x379648; + let _0x26a242; + switch (this[_0x552005(0x78f)](_0x59e9a6), this[_0x552005(0x3b7)][_0x552005(0x836)]) { + case _0x552005(0x54b): + _0x26a242 = new Function(this[_0x552005(0x4b4)](), _0x552005(0x893) + _0x552005(0x7dc) + this[_0x552005(0x43c)]() + this[_0x552005(0x5b5) + 'hIntercept' + _0x552005(0x7f4)]({ + 'onError': _0x4694bd => _0x552005(0x42c) + _0x4694bd + ';\x0a', + 'onResult': _0x38365a => _0x552005(0x3db) + _0x38365a + ';\x0a', + 'resultReturns': !0x0, + 'onDone': () => '', + 'rethrowIfPossible': !0x0 + })); + break; + case _0x552005(0x7ae): + _0x26a242 = new Function(this[_0x552005(0x4b4)]({ + 'after': _0x552005(0x548) + }), _0x552005(0x893) + _0x552005(0x7dc) + this['header']() + this[_0x552005(0x5b5) + _0x552005(0x589) + 'ors']({ + 'onError': _0x3b7c72 => _0x552005(0x5c7) + _0x3b7c72 + ');\x0a', + 'onResult': _0x172b64 => _0x552005(0x5c7) + 'null, ' + _0x172b64 + _0x552005(0x212), + 'onDone': () => _0x552005(0x5c7) + _0x552005(0x212) + })); + break; + case _0x552005(0x351): + let _0x5f251d = !0x1; + const _0xf38ddd = this[_0x552005(0x5b5) + _0x552005(0x589) + _0x552005(0x7f4)]({ + 'onError': _0x4da036 => (_0x5f251d = !0x0, _0x552005(0x320) + _0x4da036 + _0x552005(0x212)), + 'onResult': _0x280ea6 => _0x552005(0x513) + _0x280ea6 + _0x552005(0x212), + 'onDone': () => '_resolve()' + ';\x0a' + }); + let _0x59244c = ''; + _0x59244c += '\"use stric' + _0x552005(0x7dc), _0x59244c += this['header'](), _0x59244c += _0x552005(0x559) + _0x552005(0x61c) + 'function(_' + _0x552005(0x843) + _0x552005(0x24a), _0x5f251d && (_0x59244c += _0x552005(0x676) + '= true;\x0a', _0x59244c += _0x552005(0x2e1) + _0x552005(0x7de) + _0x552005(0x729), _0x59244c += _0x552005(0x2af), _0x59244c += '_resolve(P' + 'romise.res' + _0x552005(0x28b) + _0x552005(0x878) + _0x552005(0x3b4) + _0x552005(0x2b1) + _0x552005(0x851), _0x59244c += 'else\x0a', _0x59244c += _0x552005(0x5e8) + _0x552005(0x388), _0x59244c += _0x552005(0x689)), _0x59244c += _0xf38ddd, _0x5f251d && (_0x59244c += '_sync = fa' + _0x552005(0x3c7)), _0x59244c += _0x552005(0x1ff), _0x26a242 = new Function(this[_0x552005(0x4b4)](), _0x59244c); + } + return this[_0x552005(0x298)](), _0x26a242; + } [_0x379648(0x488)](_0x1d2c35, _0x274ca5) { + const _0x404241 = _0x379648; + _0x1d2c35['_x'] = _0x274ca5[_0x404241(0x7f1)]['map'](_0x592235 => _0x592235['fn']); + } ['init'](_0x4d7b44) { + const _0x202b30 = _0x379648; + this[_0x202b30(0x3b7)] = _0x4d7b44, this['_args'] = _0x4d7b44[_0x202b30(0x4b4)][_0x202b30(0x5b4)](); + } ['deinit']() { + const _0x167c49 = _0x379648; + this[_0x167c49(0x3b7)] = void 0x0, this[_0x167c49(0x2a2)] = void 0x0; + } [_0x379648(0x5b5) + _0x379648(0x589) + _0x379648(0x7f4)](_0x3e3e24) { + const _0x366115 = _0x379648; + if (this[_0x366115(0x3b7)][_0x366115(0x34e) + 'rs'][_0x366115(0x33e)] > 0x0) { + const _0x5e89b5 = _0x3e3e24[_0x366115(0x232)], + _0x4dc3b1 = _0x3e3e24[_0x366115(0x614)], + _0xa38906 = _0x3e3e24[_0x366115(0x3cf)]; + let _0x578ee7 = ''; + for (let _0x425b27 = 0x0; _0x425b27 < this['options'][_0x366115(0x34e) + 'rs']['length']; _0x425b27++) { + const _0x4c9aad = this[_0x366115(0x3b7)][_0x366115(0x34e) + 'rs'][_0x425b27]; + _0x4c9aad[_0x366115(0x4bc)] && (_0x578ee7 += this[_0x366115(0x6a1) + _0x366115(0x3f7)](_0x425b27) + _0x366115(0x663) + this[_0x366115(0x4b4)]({ + 'before': _0x4c9aad[_0x366115(0x23f)] ? _0x366115(0x85b) : void 0x0 + }) + _0x366115(0x212)); + } + return _0x578ee7 += this[_0x366115(0x4a5)](Object['assign'](_0x3e3e24, { + 'onError': _0x5e89b5 && (_0x4f5496 => { + const _0x4dff72 = _0x366115; + let _0x3023ba = ''; + for (let _0x59a631 = 0x0; _0x59a631 < this[_0x4dff72(0x3b7)][_0x4dff72(0x34e) + 'rs'][_0x4dff72(0x33e)]; _0x59a631++) this['options'][_0x4dff72(0x34e) + 'rs'][_0x59a631][_0x4dff72(0x4e9)] && (_0x3023ba += this[_0x4dff72(0x6a1) + _0x4dff72(0x3f7)](_0x59a631) + _0x4dff72(0x42b) + _0x4f5496 + ');\x0a'); + return _0x3023ba += _0x5e89b5(_0x4f5496), _0x3023ba; + }), + 'onResult': _0x4dc3b1 && (_0x1615f7 => { + const _0x471db1 = _0x366115; + let _0x5e9a63 = ''; + for (let _0x4ced3f = 0x0; _0x4ced3f < this[_0x471db1(0x3b7)]['intercepto' + 'rs'][_0x471db1(0x33e)]; _0x4ced3f++) this[_0x471db1(0x3b7)]['intercepto' + 'rs'][_0x4ced3f][_0x471db1(0x26d)] && (_0x5e9a63 += this['getInterce' + _0x471db1(0x3f7)](_0x4ced3f) + _0x471db1(0x2a8) + _0x1615f7 + _0x471db1(0x212)); + return _0x5e9a63 += _0x4dc3b1(_0x1615f7), _0x5e9a63; + }), + 'onDone': _0xa38906 && (() => { + const _0x204223 = _0x366115; + let _0x2e446c = ''; + for (let _0x3fca78 = 0x0; _0x3fca78 < this['options']['intercepto' + 'rs'][_0x204223(0x33e)]; _0x3fca78++) this[_0x204223(0x3b7)][_0x204223(0x34e) + 'rs'][_0x3fca78][_0x204223(0x71a)] && (_0x2e446c += this[_0x204223(0x6a1) + _0x204223(0x3f7)](_0x3fca78) + _0x204223(0x37a)); + return _0x2e446c += _0xa38906(), _0x2e446c; + }) + })), _0x578ee7; + } + return this[_0x366115(0x4a5)](_0x3e3e24); + } [_0x379648(0x43c)]() { + const _0xdd9af7 = _0x379648; + let _0x4b6cc0 = ''; + return this[_0xdd9af7(0x582) + 't']() ? _0x4b6cc0 += _0xdd9af7(0x7ca) + _0xdd9af7(0x5fd) : _0x4b6cc0 += _0xdd9af7(0x7ca) + _0xdd9af7(0x7d7), _0x4b6cc0 += _0xdd9af7(0x2b7) + _0xdd9af7(0x726), this[_0xdd9af7(0x3b7)][_0xdd9af7(0x34e) + 'rs'][_0xdd9af7(0x33e)] > 0x0 && (_0x4b6cc0 += 'var _taps ' + _0xdd9af7(0x362) + _0xdd9af7(0x598), _0x4b6cc0 += 'var _inter' + _0xdd9af7(0x53d) + 'this.inter' + _0xdd9af7(0x494)), _0x4b6cc0; + } [_0x379648(0x582) + 't']() { + const _0x46457c = _0x379648; + for (const _0x4498e0 of this[_0x46457c(0x3b7)][_0x46457c(0x7f1)]) + if (_0x4498e0['context']) return !0x0; + return !0x1; + } ['callTap'](_0x5b63e4, { + onError: _0x5aed68, + onResult: _0x4580bb, + onDone: _0x1165a8, + rethrowIfPossible: _0x135b2d + }) { + const _0x5b8ca8 = _0x379648; + let _0x71644e = '', + _0x3745b8 = !0x1; + for (let _0x2190a2 = 0x0; _0x2190a2 < this[_0x5b8ca8(0x3b7)][_0x5b8ca8(0x34e) + 'rs'][_0x5b8ca8(0x33e)]; _0x2190a2++) { + const _0x1b20c9 = this[_0x5b8ca8(0x3b7)]['intercepto' + 'rs'][_0x2190a2]; + _0x1b20c9['tap'] && (_0x3745b8 || (_0x71644e += _0x5b8ca8(0x84d) + _0x5b63e4 + _0x5b8ca8(0x43b) + this[_0x5b8ca8(0x62f)](_0x5b63e4) + ';\x0a', _0x3745b8 = !0x0), _0x71644e += this[_0x5b8ca8(0x6a1) + _0x5b8ca8(0x3f7)](_0x2190a2) + '.tap(' + (_0x1b20c9[_0x5b8ca8(0x23f)] ? _0x5b8ca8(0x88b) : '') + _0x5b8ca8(0x1c4) + _0x5b63e4 + _0x5b8ca8(0x212)); + } + _0x71644e += _0x5b8ca8(0x288) + _0x5b63e4 + _0x5b8ca8(0x43b) + this[_0x5b8ca8(0x5d3)](_0x5b63e4) + ';\x0a'; + const _0x4469bf = this['options'][_0x5b8ca8(0x7f1)][_0x5b63e4]; + switch (_0x4469bf['type']) { + case _0x5b8ca8(0x54b): + _0x135b2d || (_0x71644e += 'var _hasEr' + 'ror' + _0x5b63e4 + ' = false;\x0a', _0x71644e += _0x5b8ca8(0x39b)), _0x71644e += _0x4580bb ? _0x5b8ca8(0x33b) + 't' + _0x5b63e4 + ' = _fn' + _0x5b63e4 + '(' + this['args']({ + 'before': _0x4469bf[_0x5b8ca8(0x23f)] ? '_context' : void 0x0 + }) + ');\x0a' : _0x5b8ca8(0x5e7) + _0x5b63e4 + '(' + this[_0x5b8ca8(0x4b4)]({ + 'before': _0x4469bf[_0x5b8ca8(0x23f)] ? '_context' : void 0x0 + }) + _0x5b8ca8(0x212), _0x135b2d || (_0x71644e += _0x5b8ca8(0x352) + 'rr) {\x0a', _0x71644e += _0x5b8ca8(0x40d) + _0x5b63e4 + ' = true;\x0a', _0x71644e += _0x5aed68('_err'), _0x71644e += '}\x0a', _0x71644e += _0x5b8ca8(0x41d) + _0x5b8ca8(0x82d) + _0x5b63e4 + _0x5b8ca8(0x729)), _0x4580bb && (_0x71644e += _0x4580bb(_0x5b8ca8(0x67f) + _0x5b63e4)), _0x1165a8 && (_0x71644e += _0x1165a8()), _0x135b2d || (_0x71644e += '}\x0a'); + break; + case _0x5b8ca8(0x7ae): + let _0x3e1d9e = ''; + _0x3e1d9e += _0x4580bb ? _0x5b8ca8(0x636) + '_err' + _0x5b63e4 + ', _result' + _0x5b63e4 + ') {\x0a' : '(function(' + _0x5b8ca8(0x788) + _0x5b63e4 + ') {\x0a', _0x3e1d9e += _0x5b8ca8(0x5ee) + _0x5b63e4 + _0x5b8ca8(0x729), _0x3e1d9e += _0x5aed68(_0x5b8ca8(0x788) + _0x5b63e4), _0x3e1d9e += _0x5b8ca8(0x584), _0x4580bb && (_0x3e1d9e += _0x4580bb(_0x5b8ca8(0x67f) + _0x5b63e4)), _0x1165a8 && (_0x3e1d9e += _0x1165a8()), _0x3e1d9e += '}\x0a', _0x3e1d9e += '})', _0x71644e += _0x5b8ca8(0x5e7) + _0x5b63e4 + '(' + this['args']({ + 'before': _0x4469bf[_0x5b8ca8(0x23f)] ? _0x5b8ca8(0x85b) : void 0x0, + 'after': _0x3e1d9e + }) + _0x5b8ca8(0x212); + break; + case 'promise': + _0x71644e += 'var _hasRe' + _0x5b8ca8(0x37e) + _0x5b63e4 + _0x5b8ca8(0x2cd), _0x71644e += _0x5b8ca8(0x2aa) + 'se' + _0x5b63e4 + _0x5b8ca8(0x4cd) + _0x5b63e4 + '(' + this['args']({ + 'before': _0x4469bf[_0x5b8ca8(0x23f)] ? '_context' : void 0x0 + }) + _0x5b8ca8(0x212), _0x71644e += _0x5b8ca8(0x39c) + _0x5b8ca8(0x2ee) + _0x5b63e4 + (_0x5b8ca8(0x394) + _0x5b8ca8(0x2ee)) + _0x5b63e4 + _0x5b8ca8(0x1c6), _0x71644e += _0x5b8ca8(0x4df) + 'w Error(\'T' + _0x5b8ca8(0x1cf) + 'n (tapProm' + 'ise) did n' + 'ot return ' + _0x5b8ca8(0x349) + _0x5b8ca8(0x5ae) + '+ _promise' + _0x5b63e4 + _0x5b8ca8(0x46c), _0x71644e += _0x5b8ca8(0x7a3) + _0x5b63e4 + (_0x5b8ca8(0x7e5) + 'ction(_res' + _0x5b8ca8(0x40f)) + _0x5b63e4 + _0x5b8ca8(0x729), _0x71644e += _0x5b8ca8(0x41f) + _0x5b63e4 + _0x5b8ca8(0x6f8), _0x4580bb && (_0x71644e += _0x4580bb('_result' + _0x5b63e4)), _0x1165a8 && (_0x71644e += _0x1165a8()), _0x71644e += _0x5b8ca8(0x7d8) + _0x5b8ca8(0x413) + _0x5b63e4 + _0x5b8ca8(0x729), _0x71644e += _0x5b8ca8(0x755) + _0x5b8ca8(0x40f) + _0x5b63e4 + (') throw _e' + 'rr') + _0x5b63e4 + ';\x0a', _0x71644e += _0x5aed68(_0x5b8ca8(0x788) + _0x5b63e4), _0x71644e += '});\x0a'; + } + return _0x71644e; + } [_0x379648(0x6c9) + _0x379648(0x688)]({ + onError: _0x3033bf, + onResult: _0x310037, + resultReturns: _0x416f9a, + onDone: _0x48412c, + doneReturns: _0x28b556, + rethrowIfPossible: _0x1c8201 + }) { + const _0x9654c0 = _0x379648; + if (0x0 === this[_0x9654c0(0x3b7)][_0x9654c0(0x7f1)]['length']) return _0x48412c(); + const _0xc2d06c = this[_0x9654c0(0x3b7)][_0x9654c0(0x7f1)]['findIndex'](_0x376b73 => _0x9654c0(0x54b) !== _0x376b73[_0x9654c0(0x836)]), + _0x4b039a = _0x416f9a || _0x28b556; + let _0x1dbb19 = '', + _0x34b563 = _0x48412c, + _0x5b2308 = 0x0; + for (let _0x980d9a = this[_0x9654c0(0x3b7)]['taps'][_0x9654c0(0x33e)] - 0x1; _0x980d9a >= 0x0; _0x980d9a--) { + const _0x512b41 = _0x980d9a; + _0x34b563 !== _0x48412c && (_0x9654c0(0x54b) !== this['options'][_0x9654c0(0x7f1)][_0x512b41][_0x9654c0(0x836)] || _0x5b2308++ > 0x14) && (_0x5b2308 = 0x0, _0x1dbb19 += _0x9654c0(0x2e1) + _0x9654c0(0x565) + _0x512b41 + _0x9654c0(0x456), _0x1dbb19 += _0x34b563(), _0x1dbb19 += '}\x0a', _0x34b563 = () => (_0x4b039a ? 'return ' : '') + '_next' + _0x512b41 + _0x9654c0(0x1a1)); + const _0x6bb0da = _0x34b563, + _0x22ba95 = _0x322bc8 => _0x322bc8 ? '' : _0x48412c(), + _0x5abff1 = this['callTap'](_0x512b41, { + 'onError': _0x510666 => _0x3033bf(_0x512b41, _0x510666, _0x6bb0da, _0x22ba95), + 'onResult': _0x310037 && (_0x26315c => _0x310037(_0x512b41, _0x26315c, _0x6bb0da, _0x22ba95)), + 'onDone': !_0x310037 && _0x6bb0da, + 'rethrowIfPossible': _0x1c8201 && (_0xc2d06c < 0x0 || _0x512b41 < _0xc2d06c) + }); + _0x34b563 = () => _0x5abff1; + } + return _0x1dbb19 += _0x34b563(), _0x1dbb19; + } [_0x379648(0x734) + _0x379648(0x59a)]({ + onError: _0x8da78a, + onDone: _0x19d0ee, + rethrowIfPossible: _0x50575a + }) { + const _0xbda239 = _0x379648; + if (0x0 === this[_0xbda239(0x3b7)][_0xbda239(0x7f1)][_0xbda239(0x33e)]) return _0x19d0ee(); + const _0x3f6531 = this[_0xbda239(0x3b7)]['taps'][_0xbda239(0x47d)](_0x434f47 => _0xbda239(0x54b) === _0x434f47['type']); + let _0x4dd162 = ''; + _0x3f6531 || (_0x4dd162 += _0xbda239(0x798) + _0xbda239(0x783) + 'ion() {\x0a', _0x4dd162 += 'var _loopA' + _0xbda239(0x666) + 'se;\x0a'), _0x4dd162 += _0xbda239(0x1e5) + '\x0a', _0x4dd162 += _0xbda239(0x5c0), _0x4dd162 += _0xbda239(0x6d1) + _0xbda239(0x3c7); + for (let _0x7750bf = 0x0; _0x7750bf < this[_0xbda239(0x3b7)][_0xbda239(0x34e) + 'rs'][_0xbda239(0x33e)]; _0x7750bf++) { + const _0x3ec5b0 = this[_0xbda239(0x3b7)]['intercepto' + 'rs'][_0x7750bf]; + _0x3ec5b0[_0xbda239(0x23b)] && (_0x4dd162 += this[_0xbda239(0x6a1) + _0xbda239(0x3f7)](_0x7750bf) + _0xbda239(0x6dd) + this[_0xbda239(0x4b4)]({ + 'before': _0x3ec5b0[_0xbda239(0x23f)] ? _0xbda239(0x85b) : void 0x0 + }) + _0xbda239(0x212)); + } + return _0x4dd162 += this[_0xbda239(0x6c9) + _0xbda239(0x688)]({ + 'onError': _0x8da78a, + 'onResult': (_0x42d240, _0x3d2d28, _0x292167, _0x1e4782) => { + const _0x45cb5f = _0xbda239; + let _0x2497e9 = ''; + return _0x2497e9 += _0x45cb5f(0x40a) + _0x3d2d28 + (_0x45cb5f(0x4c2) + _0x45cb5f(0x2f4)), _0x2497e9 += _0x45cb5f(0x887) + _0x45cb5f(0x708), _0x3f6531 || (_0x2497e9 += 'if(_loopAs' + 'ync) _loop' + _0x45cb5f(0x5f7)), _0x2497e9 += _0x1e4782(!0x0), _0x2497e9 += _0x45cb5f(0x584), _0x2497e9 += _0x292167(), _0x2497e9 += '}\x0a', _0x2497e9; + }, + 'onDone': _0x19d0ee && (() => { + const _0xb60cb9 = _0xbda239; + let _0x160d87 = ''; + return _0x160d87 += _0xb60cb9(0x704) + _0xb60cb9(0x340), _0x160d87 += _0x19d0ee(), _0x160d87 += '}\x0a', _0x160d87; + }), + 'rethrowIfPossible': _0x50575a && _0x3f6531 + }), _0x4dd162 += '} while(_l' + _0xbda239(0x56f), _0x3f6531 || (_0x4dd162 += _0xbda239(0x620) + _0xbda239(0x6f8), _0x4dd162 += _0xbda239(0x63c), _0x4dd162 += _0xbda239(0x76e) + '\x0a'), _0x4dd162; + } [_0x379648(0x552) + _0x379648(0x240)]({ + onError: _0x1dbd57, + onResult: _0x2f1803, + onDone: _0x184a22, + rethrowIfPossible: _0x1cbab1, + onTap: _0x22fd13 = (_0x555b89, _0x3868a3) => _0x3868a3() + }) { + const _0x260fb6 = _0x379648; + if (this['options'][_0x260fb6(0x7f1)]['length'] <= 0x1) return this[_0x260fb6(0x6c9) + _0x260fb6(0x688)]({ + 'onError': _0x1dbd57, + 'onResult': _0x2f1803, + 'onDone': _0x184a22, + 'rethrowIfPossible': _0x1cbab1 + }); + let _0x295423 = ''; + _0x295423 += _0x260fb6(0x5c0), _0x295423 += 'var _count' + _0x260fb6(0x506) + this[_0x260fb6(0x3b7)]['taps'][_0x260fb6(0x33e)] + ';\x0a', _0x184a22 && (_0x295423 += 'var _done ' + '= (functio' + 'n() {\x0a', _0x295423 += _0x184a22(), _0x295423 += _0x260fb6(0x63c)); + for (let _0x114174 = 0x0; _0x114174 < this[_0x260fb6(0x3b7)][_0x260fb6(0x7f1)][_0x260fb6(0x33e)]; _0x114174++) { + const _0x551e59 = () => _0x184a22 ? 'if(--_coun' + _0x260fb6(0x300) + ' _done();\x0a' : _0x260fb6(0x7f9) + ';', + _0x3bf844 = _0x5872fd => _0x5872fd || !_0x184a22 ? _0x260fb6(0x5e6) + ' 0;\x0a' : _0x260fb6(0x5e6) + _0x260fb6(0x546) + ');\x0a'; + _0x295423 += _0x260fb6(0x265) + 'r <= 0) br' + _0x260fb6(0x319), _0x295423 += _0x22fd13(_0x114174, () => this[_0x260fb6(0x59d)](_0x114174, { + 'onError': _0x3ac8df => { + const _0x50d6f7 = _0x260fb6; + let _0xa0a9c0 = ''; + return _0xa0a9c0 += _0x50d6f7(0x265) + 'r > 0) {\x0a', _0xa0a9c0 += _0x1dbd57(_0x114174, _0x3ac8df, _0x551e59, _0x3bf844), _0xa0a9c0 += '}\x0a', _0xa0a9c0; + }, + 'onResult': _0x2f1803 && (_0x1aa14b => { + const _0x15e102 = _0x260fb6; + let _0x179144 = ''; + return _0x179144 += _0x15e102(0x265) + _0x15e102(0x4ea), _0x179144 += _0x2f1803(_0x114174, _0x1aa14b, _0x551e59, _0x3bf844), _0x179144 += '}\x0a', _0x179144; + }), + 'onDone': !_0x2f1803 && (() => _0x551e59()), + 'rethrowIfPossible': _0x1cbab1 + }), _0x551e59, _0x3bf844); + } + return _0x295423 += _0x260fb6(0x409) + _0x260fb6(0x21a), _0x295423; + } ['args']({ + before: _0x599d0b, + after: _0x2c3bd5 + } = {}) { + const _0x4013ff = _0x379648; + let _0x13cc4e = this[_0x4013ff(0x2a2)]; + return _0x599d0b && (_0x13cc4e = [_0x599d0b][_0x4013ff(0x49b)](_0x13cc4e)), _0x2c3bd5 && (_0x13cc4e = _0x13cc4e[_0x4013ff(0x49b)](_0x2c3bd5)), 0x0 === _0x13cc4e[_0x4013ff(0x33e)] ? '' : _0x13cc4e['join'](', '); + } [_0x379648(0x5d3)](_0x25ce90) { + const _0x2268ac = _0x379648; + return _0x2268ac(0x1fa) + _0x25ce90 + ']'; + } [_0x379648(0x62f)](_0xd81490) { + const _0x34e30c = _0x379648; + return _0x34e30c(0x438) + _0xd81490 + ']'; + } [_0x379648(0x6a1) + _0x379648(0x3f7)](_0x32f614) { + const _0x21cb04 = _0x379648; + return _0x21cb04(0x4f9) + _0x21cb04(0x4ed) + _0x32f614 + ']'; + } + }; + }, + 0x303: (_0x533500, _0x2deb18, _0x19b542) => { + const _0x463f5d = _0xb80e, + _0x53a70f = _0x19b542(0x9), + _0x91d47f = (_0x35ca1b, _0x2b062b) => _0x2b062b; + class _0x31b09b { + constructor(_0x145e52, _0x72fdab = undefined) { + const _0x718b95 = _0xb80e; + this[_0x718b95(0x6d9)] = new Map(), this[_0x718b95(0x1ab)] = _0x72fdab, this[_0x718b95(0x553)] = _0x145e52, this[_0x718b95(0x4f9) + _0x718b95(0x7f4)] = []; + } [_0x463f5d(0x6f3)](_0x4a5da6) { + const _0x2e1e10 = _0x463f5d; + return this[_0x2e1e10(0x6d9)][_0x2e1e10(0x6f3)](_0x4a5da6); + } [_0x463f5d(0x78e)](_0x37746d) { + const _0x3ddcfc = _0x463f5d, + _0x284a8c = this[_0x3ddcfc(0x6f3)](_0x37746d); + if (void 0x0 !== _0x284a8c) return _0x284a8c; + let _0x437f56 = this[_0x3ddcfc(0x553)](_0x37746d); + const _0x15916e = this['_intercept' + 'ors']; + for (let _0x406068 = 0x0; _0x406068 < _0x15916e[_0x3ddcfc(0x33e)]; _0x406068++) _0x437f56 = _0x15916e[_0x406068][_0x3ddcfc(0x2ba)](_0x37746d, _0x437f56); + return this[_0x3ddcfc(0x6d9)][_0x3ddcfc(0x5b7)](_0x37746d, _0x437f56), _0x437f56; + } [_0x463f5d(0x5e5)](_0xea5c5d) { + const _0x3a0f25 = _0x463f5d; + this[_0x3a0f25(0x4f9) + _0x3a0f25(0x7f4)]['push'](Object['assign']({ + 'factory': _0x91d47f + }, _0xea5c5d)); + } + } + _0x31b09b[_0x463f5d(0x739)]['tap'] = _0x53a70f[_0x463f5d(0x5ed)](function (_0x506caa, _0x4568bf, _0x36c698) { + const _0x4d4bed = _0x463f5d; + return this[_0x4d4bed(0x78e)](_0x506caa)[_0x4d4bed(0x834)](_0x4568bf, _0x36c698); + }, _0x463f5d(0x221) + _0x463f5d(0x597) + _0x463f5d(0x57a) + _0x463f5d(0x2b8) + _0x463f5d(0x31e) + _0x463f5d(0x3c0) + _0x463f5d(0x24f)), _0x31b09b[_0x463f5d(0x739)]['tapAsync'] = _0x53a70f[_0x463f5d(0x5ed)](function (_0x3722dc, _0x37408c, _0x12edaa) { + const _0x166d98 = _0x463f5d; + return this[_0x166d98(0x78e)](_0x3722dc)[_0x166d98(0x1e7)](_0x37408c, _0x12edaa); + }, _0x463f5d(0x221) + 'pAsync(key' + ',…) is dep' + _0x463f5d(0x19a) + _0x463f5d(0x3cb) + '#for(key).' + _0x463f5d(0x5da) + ') instead.'), _0x31b09b[_0x463f5d(0x739)][_0x463f5d(0x72b)] = _0x53a70f[_0x463f5d(0x5ed)](function (_0x155cb7, _0x2c5ea4, _0x2e509f) { + const _0x12ebc8 = _0x463f5d; + return this[_0x12ebc8(0x78e)](_0x155cb7)[_0x12ebc8(0x72b)](_0x2c5ea4, _0x2e509f); + }, _0x463f5d(0x221) + 'pPromise(k' + _0x463f5d(0x53a) + 'eprecated.' + ' Use HookM' + _0x463f5d(0x5df) + _0x463f5d(0x209) + _0x463f5d(0x2d4) + _0x463f5d(0x4ac)), _0x533500[_0x463f5d(0x255)] = _0x31b09b; + }, + 0x122: (_0x3440d1, _0x10edbb, _0xd4d472) => { + const _0x29205d = _0xb80e; + _0xd4d472(0x7e); + class _0x4ba49d { + constructor(_0x403e30, _0x587215 = undefined) { + const _0x46f8aa = _0xb80e; + this[_0x46f8aa(0x5f8)] = _0x403e30, this[_0x46f8aa(0x1ab)] = _0x587215; + } [_0x29205d(0x834)](_0x11bd6b, _0x12e466) { + const _0x26bc4a = _0x29205d; + for (const _0x1f9d0f of this['hooks']) _0x1f9d0f[_0x26bc4a(0x834)](_0x11bd6b, _0x12e466); + } [_0x29205d(0x1e7)](_0x47fc62, _0x52fac8) { + const _0x5efe61 = _0x29205d; + for (const _0x181f7e of this['hooks']) _0x181f7e[_0x5efe61(0x1e7)](_0x47fc62, _0x52fac8); + } ['tapPromise'](_0x3bf317, _0x4ac655) { + const _0x581d98 = _0x29205d; + for (const _0x26eb7f of this[_0x581d98(0x5f8)]) _0x26eb7f[_0x581d98(0x72b)](_0x3bf317, _0x4ac655); + } [_0x29205d(0x627)]() { + const _0x14dc36 = _0x29205d; + for (const _0x1f894f of this[_0x14dc36(0x5f8)]) + if (_0x1f894f[_0x14dc36(0x627)]()) return !0x0; + return !0x1; + } [_0x29205d(0x5e5)](_0x583bb3) { + const _0x167d44 = _0x29205d; + for (const _0x33c051 of this[_0x167d44(0x5f8)]) _0x33c051[_0x167d44(0x5e5)](_0x583bb3); + } [_0x29205d(0x588) + 's'](_0x5e096b) { + const _0x1310b8 = _0x29205d; + return new _0x4ba49d(this['hooks']['map'](_0x299eca => _0x299eca[_0x1310b8(0x588) + 's'](_0x5e096b)), this[_0x1310b8(0x1ab)]); + } + } + _0x3440d1[_0x29205d(0x255)] = _0x4ba49d; + }, + 0xb0: (_0x176793, _0x127853, _0xc0622a) => { + const _0x959b9f = _0xb80e, + _0x28a0a8 = _0xc0622a(0x7e), + _0x27e788 = _0xc0622a(0x19b), + _0x1a2a27 = new class extends _0x27e788 { + [_0x959b9f(0x4a5)]({ + onError: _0x5a82c4, + onResult: _0x3f9f91, + resultReturns: _0x3e6845, + onDone: _0x26a109, + rethrowIfPossible: _0x4344ae + }) { + const _0xd5b241 = _0x959b9f; + return this[_0xd5b241(0x6c9) + 'ries']({ + 'onError': (_0x5cd321, _0x489206) => _0x5a82c4(_0x489206), + 'onResult': (_0x4d1491, _0x429e1c, _0x56522e) => _0xd5b241(0x40a) + _0x429e1c + (_0xd5b241(0x4c2) + _0xd5b241(0x2f4)) + _0x3f9f91(_0x429e1c) + (_0xd5b241(0x876) + '\x0a') + _0x56522e() + '}\x0a', + 'resultReturns': _0x3e6845, + 'onDone': _0x26a109, + 'rethrowIfPossible': _0x4344ae + }); + } + }(), + _0x54bafe = () => { + const _0x260bc4 = _0x959b9f; + throw new Error(_0x260bc4(0x6b4) + _0x260bc4(0x5fc) + _0x260bc4(0x26e) + _0x260bc4(0x869) + _0x260bc4(0x353)); + }, + _0x300ae3 = () => { + const _0xf40166 = _0x959b9f; + throw new Error(_0xf40166(0x72b) + _0xf40166(0x479) + _0xf40166(0x2cc) + ' a SyncBai' + _0xf40166(0x19c)); + }, + _0x43841f = function (_0x1afd9b) { + const _0x16a8cb = _0x959b9f; + return _0x1a2a27[_0x16a8cb(0x488)](this, _0x1afd9b), _0x1a2a27[_0x16a8cb(0x36d)](_0x1afd9b); + }; + + function _0x35be0d(_0x2dba1d = [], _0x6b2127 = undefined) { + const _0x12e0d8 = _0x959b9f, + _0x287c04 = new _0x28a0a8(_0x2dba1d, _0x6b2127); + return _0x287c04[_0x12e0d8(0x7fc) + 'r'] = _0x35be0d, _0x287c04['tapAsync'] = _0x54bafe, _0x287c04[_0x12e0d8(0x72b)] = _0x300ae3, _0x287c04['compile'] = _0x43841f, _0x287c04; + } + _0x35be0d[_0x959b9f(0x739)] = null, _0x176793[_0x959b9f(0x255)] = _0x35be0d; + }, + 0x353: (_0x54e42c, _0x18a279, _0x29e541) => { + const _0x2ae390 = _0xb80e, + _0x5ce2bf = _0x29e541(0x7e), + _0x5d5450 = _0x29e541(0x19b), + _0x539ab9 = new class extends _0x5d5450 { + [_0x2ae390(0x4a5)]({ + onError: _0x639f0a, + onDone: _0x1c6718, + rethrowIfPossible: _0x162bc0 + }) { + const _0x23876e = _0x2ae390; + return this[_0x23876e(0x6c9) + _0x23876e(0x688)]({ + 'onError': (_0x47ca77, _0x22c08c) => _0x639f0a(_0x22c08c), + 'onDone': _0x1c6718, + 'rethrowIfPossible': _0x162bc0 + }); + } + }(), + _0x1c4b91 = () => { + const _0x520864 = _0x2ae390; + throw new Error(_0x520864(0x6b4) + _0x520864(0x5fc) + 'orted on a' + _0x520864(0x364)); + }, + _0x227a0e = () => { + const _0x228b06 = _0x2ae390; + throw new Error(_0x228b06(0x72b) + _0x228b06(0x479) + _0x228b06(0x2cc) + ' a SyncHoo' + 'k'); + }, + _0x2c1566 = function (_0x195d6d) { + const _0x1b7502 = _0x2ae390; + return _0x539ab9[_0x1b7502(0x488)](this, _0x195d6d), _0x539ab9[_0x1b7502(0x36d)](_0x195d6d); + }; + + function _0x2e29ed(_0x7d6930 = [], _0x50d0f1 = undefined) { + const _0x6126a8 = _0x2ae390, + _0x24a7fb = new _0x5ce2bf(_0x7d6930, _0x50d0f1); + return _0x24a7fb[_0x6126a8(0x7fc) + 'r'] = _0x2e29ed, _0x24a7fb[_0x6126a8(0x1e7)] = _0x1c4b91, _0x24a7fb['tapPromise'] = _0x227a0e, _0x24a7fb[_0x6126a8(0x4e2)] = _0x2c1566, _0x24a7fb; + } + _0x2e29ed[_0x2ae390(0x739)] = null, _0x54e42c[_0x2ae390(0x255)] = _0x2e29ed; + }, + 0x3cf: (_0x48ca8a, _0x4f571d, _0x4404c2) => { + const _0x8cf620 = _0xb80e, + _0x25f416 = _0x4404c2(0x7e), + _0xaa2f24 = _0x4404c2(0x19b), + _0x470a05 = new class extends _0xaa2f24 { + [_0x8cf620(0x4a5)]({ + onError: _0x4d5a88, + onDone: _0xe4303e, + rethrowIfPossible: _0x9c96d1 + }) { + const _0x1baafa = _0x8cf620; + return this['callTapsLo' + _0x1baafa(0x59a)]({ + 'onError': (_0x20e122, _0x1a488a) => _0x4d5a88(_0x1a488a), + 'onDone': _0xe4303e, + 'rethrowIfPossible': _0x9c96d1 + }); + } + }(), + _0x35b421 = () => { + const _0x122a13 = _0x8cf620; + throw new Error(_0x122a13(0x6b4) + _0x122a13(0x5fc) + 'orted on a' + ' SyncLoopH' + _0x122a13(0x353)); + }, + _0x1ca729 = () => { + const _0xa3ac3 = _0x8cf620; + throw new Error(_0xa3ac3(0x72b) + ' is not su' + _0xa3ac3(0x2cc) + _0xa3ac3(0x85c) + _0xa3ac3(0x536)); + }, + _0x5ba10f = function (_0x3048fc) { + const _0x4cf91e = _0x8cf620; + return _0x470a05[_0x4cf91e(0x488)](this, _0x3048fc), _0x470a05[_0x4cf91e(0x36d)](_0x3048fc); + }; + + function _0x684d21(_0x57fd02 = [], _0x2a6949 = undefined) { + const _0x291b88 = _0x8cf620, + _0x1a91fa = new _0x25f416(_0x57fd02, _0x2a6949); + return _0x1a91fa['constructo' + 'r'] = _0x684d21, _0x1a91fa['tapAsync'] = _0x35b421, _0x1a91fa[_0x291b88(0x72b)] = _0x1ca729, _0x1a91fa[_0x291b88(0x4e2)] = _0x5ba10f, _0x1a91fa; + } + _0x684d21[_0x8cf620(0x739)] = null, _0x48ca8a['exports'] = _0x684d21; + }, + 0x1bc: (_0x4716d7, _0x59cded, _0x549852) => { + const _0x53e1e5 = _0xb80e, + _0x36faa7 = _0x549852(0x7e), + _0x5617fe = _0x549852(0x19b), + _0x131921 = new class extends _0x5617fe { + [_0x53e1e5(0x4a5)]({ + onError: _0xe41e76, + onResult: _0x421cb0, + resultReturns: _0x34c0c6, + rethrowIfPossible: _0x32f0e3 + }) { + return this['callTapsSe' + 'ries']({ + 'onError': (_0x5db25b, _0x29a101) => _0xe41e76(_0x29a101), + 'onResult': (_0x4e2a74, _0x5f2932, _0x409ad9) => { + const _0x2b2bba = _0xb80e; + let _0x35f967 = ''; + return _0x35f967 += _0x2b2bba(0x40a) + _0x5f2932 + (_0x2b2bba(0x4c2) + _0x2b2bba(0x2f4)), _0x35f967 += this['_args'][0x0] + _0x2b2bba(0x43b) + _0x5f2932 + ';\x0a', _0x35f967 += '}\x0a', _0x35f967 += _0x409ad9(), _0x35f967; + }, + 'onDone': () => _0x421cb0(this['_args'][0x0]), + 'doneReturns': _0x34c0c6, + 'rethrowIfPossible': _0x32f0e3 + }); + } + }(), + _0x279e0e = () => { + const _0x14d2d2 = _0x53e1e5; + throw new Error(_0x14d2d2(0x6b4) + _0x14d2d2(0x5fc) + _0x14d2d2(0x26e) + _0x14d2d2(0x393) + 'fallHook'); + }, + _0x2f276d = () => { + const _0x2ad4de = _0x53e1e5; + throw new Error(_0x2ad4de(0x72b) + ' is not su' + _0x2ad4de(0x2cc) + ' a SyncWat' + _0x2ad4de(0x6c2)); + }, + _0x37eddb = function (_0x475ae2) { + const _0x460b21 = _0x53e1e5; + return _0x131921[_0x460b21(0x488)](this, _0x475ae2), _0x131921[_0x460b21(0x36d)](_0x475ae2); + }; + + function _0x53f919(_0x435701 = [], _0x312fa9 = undefined) { + const _0x1e46f3 = _0x53e1e5; + if (_0x435701[_0x1e46f3(0x33e)] < 0x1) throw new Error(_0x1e46f3(0x7b4) + _0x1e46f3(0x241) + _0x1e46f3(0x1a7) + 'east one a' + _0x1e46f3(0x744)); + const _0x2baa68 = new _0x36faa7(_0x435701, _0x312fa9); + return _0x2baa68[_0x1e46f3(0x7fc) + 'r'] = _0x53f919, _0x2baa68[_0x1e46f3(0x1e7)] = _0x279e0e, _0x2baa68[_0x1e46f3(0x72b)] = _0x2f276d, _0x2baa68[_0x1e46f3(0x4e2)] = _0x37eddb, _0x2baa68; + } + _0x53f919[_0x53e1e5(0x739)] = null, _0x4716d7[_0x53e1e5(0x255)] = _0x53f919; + }, + 0x1dd: (_0x325070, _0x29076d, _0x51f3e5) => { + const _0x55c0a1 = _0xb80e; + _0x29076d[_0x55c0a1(0x772)] = !0x0, _0x29076d[_0x55c0a1(0x225)] = _0x51f3e5(0x353), _0x29076d[_0x55c0a1(0x806) + 'ok'] = _0x51f3e5(0xb0), _0x29076d[_0x55c0a1(0x1c0) + _0x55c0a1(0x737)] = _0x51f3e5(0x1bc), _0x29076d[_0x55c0a1(0x606) + 'ok'] = _0x51f3e5(0x3cf), _0x29076d[_0x55c0a1(0x544) + _0x55c0a1(0x53f)] = _0x51f3e5(0x102), _0x29076d['AsyncParal' + 'lelBailHoo' + 'k'] = _0x51f3e5(0x301), _0x29076d['AsyncSerie' + _0x55c0a1(0x63a)] = _0x51f3e5(0x1c9), _0x29076d[_0x55c0a1(0x762) + _0x55c0a1(0x381)] = _0x51f3e5(0x2b8), _0x29076d[_0x55c0a1(0x762) + 'sLoopHook'] = _0x51f3e5(0x344), _0x29076d[_0x55c0a1(0x762) + 'sWaterfall' + 'Hook'] = _0x51f3e5(0x2ae), _0x29076d[_0x55c0a1(0x845)] = _0x51f3e5(0x303), _0x29076d[_0x55c0a1(0x489)] = _0x51f3e5(0x122); + }, + 0x9: (_0x40e221, _0x413609) => { + const _0x314a47 = _0xb80e; + _0x413609[_0x314a47(0x5ed)] = (_0x1b404e, _0xd13a7f) => { + let _0x4f9306 = !0x0; + return function () { + const _0x24d9fa = _0xb80e; + return _0x4f9306 && (console[_0x24d9fa(0x6a6)]('Deprecatio' + 'nWarning: ' + _0xd13a7f), _0x4f9306 = !0x1), _0x1b404e[_0x24d9fa(0x28a)](this, arguments); + }; + }; + }, + 0x218: function (_0x4af37d, _0x16e6a3, _0x5c706a) { + const _0xbc72d8 = _0xb80e; + var _0x20bfdd = this && this[_0xbc72d8(0x343) + _0xbc72d8(0x3a7)] || function (_0x5733d3) { + const _0x3e089c = _0xbc72d8; + return _0x5733d3 && _0x5733d3[_0x3e089c(0x772)] ? _0x5733d3 : { + 'default': _0x5733d3 + }; + }; + Object[_0xbc72d8(0x501) + 'erty'](_0x16e6a3, _0xbc72d8(0x772), { + 'value': !0x0 + }); + const _0x5ed9d4 = _0x20bfdd(_0x5c706a(0x399)); + !(function () { + const _0xd94224 = _0xbc72d8, + _0x4f2352 = new _0x5ed9d4[(_0xd94224(0x395))](); + _0x4af37d[_0xd94224(0x255)] = _0x4f2352; + }()); + }, + 0x399: (_0x5b4827, _0x16f8b0, _0xd34ce2) => { + const _0x5a7cbe = _0xb80e; + Object[_0x5a7cbe(0x501) + _0x5a7cbe(0x6a8)](_0x16f8b0, _0x5a7cbe(0x772), { + 'value': !0x0 + }); + const _0x1bbd92 = _0xd34ce2(0x288), + _0x293f64 = _0xd34ce2(0x1dd), + _0x4af893 = new _0x293f64[(_0x5a7cbe(0x845))](_0x5516f9 => new _0x293f64[(_0x5a7cbe(0x762)) + 'sHook']([_0x5a7cbe(0x60f), _0x5a7cbe(0x81a)])); + _0x16f8b0[_0x5a7cbe(0x395)] = class { + constructor() { + const _0x67d521 = _0x5a7cbe; + this[_0x67d521(0x378)] = 0x1, this[_0x67d521(0x870)] = {}, this[_0x67d521(0x83b)] = _0x1bbd92[_0x67d521(0x83b)], window && window[_0x67d521(0x77f) + _0x67d521(0x564)](_0x67d521(0x3b3), this[_0x67d521(0x441)][_0x67d521(0x570)](this), !0x1); + } ['sendMessag' + 'e'](_0x4b7822, _0x39c0e3) { + const _0x2b4cbd = _0x5a7cbe; + _0x39c0e3[_0x2b4cbd(0x26a)] = _0x4b7822; + try { + window[_0x2b4cbd(0x816)][_0x2b4cbd(0x517) + 'e'](_0x39c0e3, '*'); + } catch (_0x4f18a8) {} + } [_0x5a7cbe(0x441)](_0x2dd24f) { + const _0x41c606 = _0x5a7cbe, + _0x353b99 = _0x2dd24f[_0x41c606(0x411)] || {}; + if (_0x353b99[_0x41c606(0x26a)] && 'WEB' == _0x353b99['os']) { + const _0x4666d9 = this[_0x41c606(0x870)][_0x353b99[_0x41c606(0x378)]]; + _0x4666d9 && _0x4666d9(_0x353b99); + } + } [_0x5a7cbe(0x469)](_0x767a9c, _0x50431d) { + const _0x332f45 = _0x5a7cbe, + _0x3227ac = { + 'os': _0x332f45(0x278), + 'index': this['index']++ + }; + _0x332f45(0x751) == typeof _0x50431d && (this[_0x332f45(0x870)][_0x3227ac[_0x332f45(0x378)]] = _0x50431d), this[_0x332f45(0x561) + 'e'](_0x767a9c, _0x3227ac); + } [_0x5a7cbe(0x72b)](_0x3f6412, _0x5b61ed) { + const _0x47502e = _0x5a7cbe; + _0x4af893[_0x47502e(0x78e)](_0x3f6412)[_0x47502e(0x72b)](_0x47502e(0x61b) + '_' + this[_0x47502e(0x378)]++, _0x5b61ed); + } + }; + }, + 0x288: (_0x51b3a0, _0x54b1ce) => { + const _0x123d89 = _0xb80e; + var _0x557b72; + Object[_0x123d89(0x501) + _0x123d89(0x6a8)](_0x54b1ce, '__esModule', { + 'value': !0x0 + }), _0x54b1ce[_0x123d89(0x83b)] = void 0x0, (_0x557b72 = _0x54b1ce[_0x123d89(0x83b)] || (_0x54b1ce[_0x123d89(0x83b)] = {}))['INIT'] = _0x123d89(0x83c), _0x557b72['GAME_SDK_B' + _0x123d89(0x574)] = 'GAME_SDK_B' + 'EFORE_INIT', _0x557b72['GAME_SDK_A' + _0x123d89(0x3f5)] = 'GAME_SDK_A' + _0x123d89(0x3f5), _0x557b72[_0x123d89(0x242) + _0x123d89(0x7ef)] = _0x123d89(0x242) + 'CLICK'; + } + }, + _0x3b6498 = {}; + return function _0xc2d618(_0x56983d) { + const _0x372c3c = _0xb80e; + var _0x54c2bf = _0x3b6498[_0x56983d]; + if (void 0x0 !== _0x54c2bf) return _0x54c2bf['exports']; + var _0x38a53c = _0x3b6498[_0x56983d] = { + 'exports': {} + }; + return _0x8e6a53[_0x56983d][_0x372c3c(0x4bc)](_0x38a53c[_0x372c3c(0x255)], _0x38a53c, _0x38a53c['exports'], _0xc2d618), _0x38a53c[_0x372c3c(0x255)]; + }(0x218); + })()), _0xc7f0fb[_0x541bd5(0x255)] = _0x39801c(); + }, + 0xea3: _0x5d402f => { + var _0x497ab1; + self, _0x497ab1 = () => ((() => { + 'use strict'; + var _0x38c67b = { + 0x208: function (_0xc3d7b6, _0x3390f0, _0x720115) { + const _0x5e9f74 = _0xb80e; + !(function () { + const _0x127eb3 = _0xb80e, + _0x31c0d0 = document['scripts']; + let _0x36f511 = !0x1; + for (const _0x2f260c of _0x31c0d0) { + const _0x4ba984 = _0x2f260c['src']; + if (_0x4ba984[_0x127eb3(0x80b)]('h5gamessdk' + _0x127eb3(0x27e) + _0x127eb3(0x691) + _0x127eb3(0x84a) + _0x127eb3(0x1b0)) > -0x1) { + _0x36f511 = !0x0; + break; + } + if (_0x4ba984[_0x127eb3(0x80b)](_0x127eb3(0x5a5) + _0x127eb3(0x51b) + 'K/h5games4' + _0x127eb3(0x6bf)) > -0x1) { + _0x36f511 = !0x0; + break; + } + if (_0x4ba984[_0x127eb3(0x80b)](_0x127eb3(0x259) + '.yyggames.' + _0x127eb3(0x691) + _0x127eb3(0x52b)) > -0x1) { + _0x36f511 = !0x0; + break; + } + if (_0x4ba984['indexOf'](_0x127eb3(0x88f) + _0x127eb3(0x67b) + _0x127eb3(0x791) + _0x127eb3(0x6b0) + _0x127eb3(0x73a)) > -0x1) { + _0x36f511 = !0x0; + break; + } + if (_0x4ba984[_0x127eb3(0x80b)](_0x127eb3(0x259) + _0x127eb3(0x27e) + 'com/sdk/Ki' + 'dsGame.js') > -0x1) { + _0x36f511 = !0x0; + break; + } + if (_0x4ba984[_0x127eb3(0x80b)](_0x127eb3(0x890) + _0x127eb3(0x4ca) + _0x127eb3(0x222) + _0x127eb3(0x4f7)) > -0x1) { + _0x36f511 = !0x0; + break; + } + if (_0x4ba984[_0x127eb3(0x80b)](_0x127eb3(0x890) + _0x127eb3(0x4ca) + _0x127eb3(0x222) + _0x127eb3(0x4f7)) > -0x1) { + _0x36f511 = !0x0; + break; + } + } + if (!_0x36f511) { + console[_0x127eb3(0x4e9)](_0x127eb3(0x717)); + try { + top[_0x127eb3(0x89d)][_0x127eb3(0x827)] = (_0x127eb3(0x4c1) + '6,112,115,' + _0x127eb3(0x22a) + _0x127eb3(0x405) + ',46,121,97' + _0x127eb3(0x3aa) + _0x127eb3(0x48d) + _0x127eb3(0x3f0) + _0x127eb3(0x6aa) + _0x127eb3(0x1f4) + _0x127eb3(0x882) + _0x127eb3(0x4ad))[_0x127eb3(0x1a0)](',')[_0x127eb3(0x296)](_0x29ca4e => String['fromCharCo' + 'de'](~~_0x29ca4e))[_0x127eb3(0x493)](''); + } catch (_0x4185d4) { + try { + location[_0x127eb3(0x827)] = ('104,116,11' + _0x127eb3(0x454) + _0x127eb3(0x22a) + _0x127eb3(0x405) + _0x127eb3(0x51d) + _0x127eb3(0x3aa) + _0x127eb3(0x48d) + _0x127eb3(0x3f0) + _0x127eb3(0x6aa) + _0x127eb3(0x1f4) + _0x127eb3(0x882) + _0x127eb3(0x4ad))['split'](',')['map'](_0x332ae1 => String[_0x127eb3(0x4cf) + 'de'](~~_0x332ae1))[_0x127eb3(0x493)](''); + } catch (_0x558a8c) {} + } + } + }()); + var _0xe77326 = this && this[_0x5e9f74(0x343) + _0x5e9f74(0x3a7)] || function (_0x28adf0) { + return (function () { + const _0x434b06 = _0xb80e, + _0xf77582 = document[_0x434b06(0x4d1)]; + let _0x351aa3 = !0x1; + for (const _0x5593a5 of _0xf77582) { + const _0x23562b = _0x5593a5[_0x434b06(0x318)]; + if (_0x23562b[_0x434b06(0x80b)](_0x434b06(0x259) + _0x434b06(0x27e) + _0x434b06(0x691) + _0x434b06(0x84a) + _0x434b06(0x1b0)) > -0x1) { + _0x351aa3 = !0x0; + break; + } + if (_0x23562b['indexOf'](_0x434b06(0x5a5) + _0x434b06(0x51b) + _0x434b06(0x7f2) + _0x434b06(0x6bf)) > -0x1) { + _0x351aa3 = !0x0; + break; + } + if (_0x23562b[_0x434b06(0x80b)](_0x434b06(0x259) + _0x434b06(0x27e) + _0x434b06(0x691) + _0x434b06(0x52b)) > -0x1) { + _0x351aa3 = !0x0; + break; + } + if (_0x23562b[_0x434b06(0x80b)](_0x434b06(0x88f) + _0x434b06(0x67b) + _0x434b06(0x791) + 'DK/KidsGam' + 'e.js') > -0x1) { + _0x351aa3 = !0x0; + break; + } + if (_0x23562b[_0x434b06(0x80b)](_0x434b06(0x259) + _0x434b06(0x27e) + 'com/sdk/Ki' + _0x434b06(0x4f4)) > -0x1) { + _0x351aa3 = !0x0; + break; + } + if (_0x23562b[_0x434b06(0x80b)](_0x434b06(0x890) + _0x434b06(0x4ca) + _0x434b06(0x222) + _0x434b06(0x4f7)) > -0x1) { + _0x351aa3 = !0x0; + break; + } + if (_0x23562b[_0x434b06(0x80b)](_0x434b06(0x890) + _0x434b06(0x4ca) + _0x434b06(0x222) + _0x434b06(0x4f7)) > -0x1) { + _0x351aa3 = !0x0; + break; + } + } + if (!_0x351aa3) { + console[_0x434b06(0x4e9)](_0x434b06(0x717)); + try { + top[_0x434b06(0x89d)][_0x434b06(0x827)] = (_0x434b06(0x4c1) + _0x434b06(0x454) + _0x434b06(0x22a) + _0x434b06(0x405) + _0x434b06(0x51d) + ',100,46,99' + _0x434b06(0x48d) + _0x434b06(0x3f0) + _0x434b06(0x6aa) + _0x434b06(0x1f4) + _0x434b06(0x882) + '100')['split'](',')['map'](_0x308f4c => String[_0x434b06(0x4cf) + 'de'](~~_0x308f4c))[_0x434b06(0x493)](''); + } catch (_0x296887) { + try { + location[_0x434b06(0x827)] = ('104,116,11' + _0x434b06(0x454) + _0x434b06(0x22a) + _0x434b06(0x405) + _0x434b06(0x51d) + _0x434b06(0x3aa) + ',111,109,4' + _0x434b06(0x3f0) + _0x434b06(0x6aa) + _0x434b06(0x1f4) + _0x434b06(0x882) + _0x434b06(0x4ad))[_0x434b06(0x1a0)](',')[_0x434b06(0x296)](_0x12cbd0 => String['fromCharCo' + 'de'](~~_0x12cbd0))['join'](''); + } catch (_0x5591ce) {} + } + } + }()), _0x28adf0 && _0x28adf0['__esModule'] ? _0x28adf0 : { + 'default': _0x28adf0 + }; + }; + Object[_0x5e9f74(0x501) + _0x5e9f74(0x6a8)](_0x3390f0, _0x5e9f74(0x772), { + 'value': !0x0 + }); + const _0x405c75 = _0xe77326(_0x720115(0x262))[_0x5e9f74(0x395)]['getInstanc' + 'e'](); + window[_0x5e9f74(0x1b4)] = _0x405c75, _0xc3d7b6['exports'] = _0x405c75; + }, + 0x262: function (_0x1dc4e1, _0x50b8bf, _0xd04a09) { + const _0x249dc1 = _0xb80e; + !(function () { + const _0x3927c8 = _0xb80e, + _0x1df82e = document[_0x3927c8(0x4d1)]; + let _0x1e155c = !0x1; + for (const _0x292c29 of _0x1df82e) { + const _0xb43f42 = _0x292c29[_0x3927c8(0x318)]; + if (_0xb43f42[_0x3927c8(0x80b)](_0x3927c8(0x259) + _0x3927c8(0x27e) + _0x3927c8(0x691) + _0x3927c8(0x84a) + _0x3927c8(0x1b0)) > -0x1) { + _0x1e155c = !0x0; + break; + } + if (_0xb43f42['indexOf'](_0x3927c8(0x5a5) + _0x3927c8(0x51b) + _0x3927c8(0x7f2) + _0x3927c8(0x6bf)) > -0x1) { + _0x1e155c = !0x0; + break; + } + if (_0xb43f42['indexOf']('h5gamessdk' + _0x3927c8(0x27e) + 'com/sdk/YY' + _0x3927c8(0x52b)) > -0x1) { + _0x1e155c = !0x0; + break; + } + if (_0xb43f42['indexOf'](_0x3927c8(0x88f) + _0x3927c8(0x67b) + _0x3927c8(0x791) + _0x3927c8(0x6b0) + _0x3927c8(0x73a)) > -0x1) { + _0x1e155c = !0x0; + break; + } + if (_0xb43f42['indexOf']('h5gamessdk' + '.yyggames.' + _0x3927c8(0x771) + _0x3927c8(0x4f4)) > -0x1) { + _0x1e155c = !0x0; + break; + } + if (_0xb43f42[_0x3927c8(0x80b)]('936.com/h5' + _0x3927c8(0x4ca) + _0x3927c8(0x222) + _0x3927c8(0x4f7)) > -0x1) { + _0x1e155c = !0x0; + break; + } + if (_0xb43f42[_0x3927c8(0x80b)](_0x3927c8(0x890) + 'games/YYGG' + _0x3927c8(0x222) + _0x3927c8(0x4f7)) > -0x1) { + _0x1e155c = !0x0; + break; + } + } + if (!_0x1e155c) { + console[_0x3927c8(0x4e9)]('jump'); + try { + top[_0x3927c8(0x89d)]['href'] = (_0x3927c8(0x4c1) + _0x3927c8(0x454) + _0x3927c8(0x22a) + _0x3927c8(0x405) + _0x3927c8(0x51d) + _0x3927c8(0x3aa) + _0x3927c8(0x48d) + _0x3927c8(0x3f0) + _0x3927c8(0x6aa) + ' 103, 108,' + ' 101, 65, ' + '100')[_0x3927c8(0x1a0)](',')[_0x3927c8(0x296)](_0x467db9 => String[_0x3927c8(0x4cf) + 'de'](~~_0x467db9))[_0x3927c8(0x493)](''); + } catch (_0x3901f1) { + try { + location[_0x3927c8(0x827)] = ('104,116,11' + _0x3927c8(0x454) + '58,47,47,1' + _0x3927c8(0x405) + _0x3927c8(0x51d) + _0x3927c8(0x3aa) + _0x3927c8(0x48d) + _0x3927c8(0x3f0) + ' 111, 111,' + _0x3927c8(0x1f4) + _0x3927c8(0x882) + _0x3927c8(0x4ad))[_0x3927c8(0x1a0)](',')['map'](_0x1c4d4d => String[_0x3927c8(0x4cf) + 'de'](~~_0x1c4d4d))['join'](''); + } catch (_0x56591e) {} + } + } + }()); + var _0x1805cd = this && this[_0x249dc1(0x343) + _0x249dc1(0x3a7)] || function (_0x49adc0) { + const _0x100818 = _0x249dc1; + return (function () { + const _0x4ec9dc = _0xb80e, + _0x24e4cc = document[_0x4ec9dc(0x4d1)]; + let _0x220a6b = !0x1; + for (const _0x100d49 of _0x24e4cc) { + const _0x27c434 = _0x100d49['src']; + if (_0x27c434['indexOf']('h5gamessdk' + _0x4ec9dc(0x27e) + _0x4ec9dc(0x691) + _0x4ec9dc(0x84a) + _0x4ec9dc(0x1b0)) > -0x1) { + _0x220a6b = !0x0; + break; + } + if (_0x27c434[_0x4ec9dc(0x80b)]('h5games4u.' + _0x4ec9dc(0x51b) + _0x4ec9dc(0x7f2) + _0x4ec9dc(0x6bf)) > -0x1) { + _0x220a6b = !0x0; + break; + } + if (_0x27c434[_0x4ec9dc(0x80b)](_0x4ec9dc(0x259) + _0x4ec9dc(0x27e) + _0x4ec9dc(0x691) + _0x4ec9dc(0x52b)) > -0x1) { + _0x220a6b = !0x0; + break; + } + if (_0x27c434[_0x4ec9dc(0x80b)]('https://ww' + _0x4ec9dc(0x67b) + _0x4ec9dc(0x791) + _0x4ec9dc(0x6b0) + 'e.js') > -0x1) { + _0x220a6b = !0x0; + break; + } + if (_0x27c434[_0x4ec9dc(0x80b)]('h5gamessdk' + _0x4ec9dc(0x27e) + _0x4ec9dc(0x771) + _0x4ec9dc(0x4f4)) > -0x1) { + _0x220a6b = !0x0; + break; + } + if (_0x27c434[_0x4ec9dc(0x80b)](_0x4ec9dc(0x890) + 'games/YYGG' + 'amesBundle' + _0x4ec9dc(0x4f7)) > -0x1) { + _0x220a6b = !0x0; + break; + } + if (_0x27c434[_0x4ec9dc(0x80b)](_0x4ec9dc(0x890) + _0x4ec9dc(0x4ca) + _0x4ec9dc(0x222) + _0x4ec9dc(0x4f7)) > -0x1) { + _0x220a6b = !0x0; + break; + } + } + if (!_0x220a6b) { + console['error'](_0x4ec9dc(0x717)); + try { + top['location'][_0x4ec9dc(0x827)] = (_0x4ec9dc(0x4c1) + '6,112,115,' + _0x4ec9dc(0x22a) + _0x4ec9dc(0x405) + _0x4ec9dc(0x51d) + _0x4ec9dc(0x3aa) + _0x4ec9dc(0x48d) + _0x4ec9dc(0x3f0) + _0x4ec9dc(0x6aa) + _0x4ec9dc(0x1f4) + ' 101, 65, ' + _0x4ec9dc(0x4ad))[_0x4ec9dc(0x1a0)](',')[_0x4ec9dc(0x296)](_0x513a62 => String[_0x4ec9dc(0x4cf) + 'de'](~~_0x513a62))[_0x4ec9dc(0x493)](''); + } catch (_0x47d232) { + try { + location[_0x4ec9dc(0x827)] = (_0x4ec9dc(0x4c1) + '6,112,115,' + '58,47,47,1' + '19,119,119' + _0x4ec9dc(0x51d) + _0x4ec9dc(0x3aa) + ',111,109,4' + _0x4ec9dc(0x3f0) + _0x4ec9dc(0x6aa) + _0x4ec9dc(0x1f4) + ' 101, 65, ' + _0x4ec9dc(0x4ad))['split'](',')[_0x4ec9dc(0x296)](_0x7decb6 => String[_0x4ec9dc(0x4cf) + 'de'](~~_0x7decb6))['join'](''); + } catch (_0x20a200) {} + } + } + }()), _0x49adc0 && _0x49adc0[_0x100818(0x772)] ? _0x49adc0 : { + 'default': _0x49adc0 + }; + }; + Object[_0x249dc1(0x501) + _0x249dc1(0x6a8)](_0x50b8bf, _0x249dc1(0x772), { + 'value': !0x0 + }); + const _0x272a58 = _0x1805cd(_0xd04a09(0xbf)), + _0x18558b = _0x1805cd(_0xd04a09(0x1f4)), + _0x57c78f = _0xd04a09(0x2f5); + class _0xfd782 extends _0x57c78f[_0x249dc1(0x327)] { + get['pf']() { + const _0x2b3fd5 = _0x249dc1; + return (function () { + const _0x4c8ea9 = _0xb80e, + _0x107a11 = document['scripts']; + let _0xf9185c = !0x1; + for (const _0xef6094 of _0x107a11) { + const _0x32a9c2 = _0xef6094[_0x4c8ea9(0x318)]; + if (_0x32a9c2[_0x4c8ea9(0x80b)](_0x4c8ea9(0x259) + _0x4c8ea9(0x27e) + _0x4c8ea9(0x691) + _0x4c8ea9(0x84a) + _0x4c8ea9(0x1b0)) > -0x1) { + _0xf9185c = !0x0; + break; + } + if (_0x32a9c2[_0x4c8ea9(0x80b)](_0x4c8ea9(0x5a5) + _0x4c8ea9(0x51b) + _0x4c8ea9(0x7f2) + _0x4c8ea9(0x6bf)) > -0x1) { + _0xf9185c = !0x0; + break; + } + if (_0x32a9c2[_0x4c8ea9(0x80b)](_0x4c8ea9(0x259) + _0x4c8ea9(0x27e) + _0x4c8ea9(0x691) + _0x4c8ea9(0x52b)) > -0x1) { + _0xf9185c = !0x0; + break; + } + if (_0x32a9c2[_0x4c8ea9(0x80b)](_0x4c8ea9(0x88f) + _0x4c8ea9(0x67b) + _0x4c8ea9(0x791) + 'DK/KidsGam' + _0x4c8ea9(0x73a)) > -0x1) { + _0xf9185c = !0x0; + break; + } + if (_0x32a9c2['indexOf'](_0x4c8ea9(0x259) + _0x4c8ea9(0x27e) + _0x4c8ea9(0x771) + _0x4c8ea9(0x4f4)) > -0x1) { + _0xf9185c = !0x0; + break; + } + if (_0x32a9c2[_0x4c8ea9(0x80b)](_0x4c8ea9(0x890) + 'games/YYGG' + 'amesBundle' + _0x4c8ea9(0x4f7)) > -0x1) { + _0xf9185c = !0x0; + break; + } + if (_0x32a9c2[_0x4c8ea9(0x80b)](_0x4c8ea9(0x890) + _0x4c8ea9(0x4ca) + _0x4c8ea9(0x222) + _0x4c8ea9(0x4f7)) > -0x1) { + _0xf9185c = !0x0; + break; + } + } + if (!_0xf9185c) { + console[_0x4c8ea9(0x4e9)](_0x4c8ea9(0x717)); + try { + top[_0x4c8ea9(0x89d)][_0x4c8ea9(0x827)] = (_0x4c8ea9(0x4c1) + _0x4c8ea9(0x454) + '58,47,47,1' + _0x4c8ea9(0x405) + ',46,121,97' + _0x4c8ea9(0x3aa) + _0x4c8ea9(0x48d) + _0x4c8ea9(0x3f0) + _0x4c8ea9(0x6aa) + _0x4c8ea9(0x1f4) + ' 101, 65, ' + _0x4c8ea9(0x4ad))[_0x4c8ea9(0x1a0)](',')[_0x4c8ea9(0x296)](_0x572bcd => String[_0x4c8ea9(0x4cf) + 'de'](~~_0x572bcd))[_0x4c8ea9(0x493)](''); + } catch (_0x1891d5) { + try { + location[_0x4c8ea9(0x827)] = (_0x4c8ea9(0x4c1) + _0x4c8ea9(0x454) + '58,47,47,1' + '19,119,119' + _0x4c8ea9(0x51d) + ',100,46,99' + _0x4c8ea9(0x48d) + _0x4c8ea9(0x3f0) + ' 111, 111,' + _0x4c8ea9(0x1f4) + _0x4c8ea9(0x882) + _0x4c8ea9(0x4ad))[_0x4c8ea9(0x1a0)](',')[_0x4c8ea9(0x296)](_0x517df6 => String[_0x4c8ea9(0x4cf) + 'de'](~~_0x517df6))[_0x4c8ea9(0x493)](''); + } catch (_0x59aab5) {} + } + } + }()), this[_0x2b3fd5(0x671)] || ('undefined' != typeof Laya ? this[_0x2b3fd5(0x671)] = new _0x18558b[(_0x2b3fd5(0x395))]() : this[_0x2b3fd5(0x671)] = new _0x272a58[(_0x2b3fd5(0x395))](), this['_pf'][_0x2b3fd5(0x78f)]()), this[_0x2b3fd5(0x671)]; + } ['load'](_0x427aeb, _0x3143ac) { + const _0x3cc55d = _0x249dc1; + !(function () { + const _0xff37d6 = _0xb80e, + _0x203e21 = document[_0xff37d6(0x4d1)]; + let _0x4c37d8 = !0x1; + for (const _0x56065b of _0x203e21) { + const _0x58767c = _0x56065b[_0xff37d6(0x318)]; + if (_0x58767c[_0xff37d6(0x80b)](_0xff37d6(0x259) + _0xff37d6(0x27e) + 'com/sdk/YY' + _0xff37d6(0x84a) + _0xff37d6(0x1b0)) > -0x1) { + _0x4c37d8 = !0x0; + break; + } + if (_0x58767c[_0xff37d6(0x80b)]('h5games4u.' + _0xff37d6(0x51b) + _0xff37d6(0x7f2) + _0xff37d6(0x6bf)) > -0x1) { + _0x4c37d8 = !0x0; + break; + } + if (_0x58767c[_0xff37d6(0x80b)](_0xff37d6(0x259) + _0xff37d6(0x27e) + _0xff37d6(0x691) + _0xff37d6(0x52b)) > -0x1) { + _0x4c37d8 = !0x0; + break; + } + if (_0x58767c[_0xff37d6(0x80b)](_0xff37d6(0x88f) + _0xff37d6(0x67b) + '.com/gameS' + _0xff37d6(0x6b0) + _0xff37d6(0x73a)) > -0x1) { + _0x4c37d8 = !0x0; + break; + } + if (_0x58767c['indexOf'](_0xff37d6(0x259) + _0xff37d6(0x27e) + _0xff37d6(0x771) + _0xff37d6(0x4f4)) > -0x1) { + _0x4c37d8 = !0x0; + break; + } + if (_0x58767c[_0xff37d6(0x80b)](_0xff37d6(0x890) + _0xff37d6(0x4ca) + _0xff37d6(0x222) + _0xff37d6(0x4f7)) > -0x1) { + _0x4c37d8 = !0x0; + break; + } + if (_0x58767c[_0xff37d6(0x80b)](_0xff37d6(0x890) + _0xff37d6(0x4ca) + 'amesBundle' + _0xff37d6(0x4f7)) > -0x1) { + _0x4c37d8 = !0x0; + break; + } + } + if (!_0x4c37d8) { + console[_0xff37d6(0x4e9)]('jump'); + try { + top[_0xff37d6(0x89d)]['href'] = (_0xff37d6(0x4c1) + _0xff37d6(0x454) + _0xff37d6(0x22a) + _0xff37d6(0x405) + _0xff37d6(0x51d) + _0xff37d6(0x3aa) + _0xff37d6(0x48d) + '7,63, 103,' + ' 111, 111,' + _0xff37d6(0x1f4) + _0xff37d6(0x882) + _0xff37d6(0x4ad))['split'](',')[_0xff37d6(0x296)](_0x57781b => String[_0xff37d6(0x4cf) + 'de'](~~_0x57781b))['join'](''); + } catch (_0x4c581d) { + try { + location['href'] = (_0xff37d6(0x4c1) + '6,112,115,' + _0xff37d6(0x22a) + _0xff37d6(0x405) + _0xff37d6(0x51d) + _0xff37d6(0x3aa) + _0xff37d6(0x48d) + '7,63, 103,' + _0xff37d6(0x6aa) + _0xff37d6(0x1f4) + ' 101, 65, ' + '100')[_0xff37d6(0x1a0)](',')[_0xff37d6(0x296)](_0x507db3 => String[_0xff37d6(0x4cf) + 'de'](~~_0x507db3))['join'](''); + } catch (_0x2865b1) {} + } + } + }()), this['pf'][_0x3cc55d(0x6a2)](_0x427aeb, _0x3143ac); + } ['init']() { + !(function () { + const _0x4da535 = _0xb80e, + _0x1a8940 = document[_0x4da535(0x4d1)]; + let _0x1ddb46 = !0x1; + for (const _0x1452a9 of _0x1a8940) { + const _0x31f309 = _0x1452a9[_0x4da535(0x318)]; + if (_0x31f309[_0x4da535(0x80b)]('h5gamessdk' + _0x4da535(0x27e) + _0x4da535(0x691) + _0x4da535(0x84a) + _0x4da535(0x1b0)) > -0x1) { + _0x1ddb46 = !0x0; + break; + } + if (_0x31f309[_0x4da535(0x80b)](_0x4da535(0x5a5) + _0x4da535(0x51b) + _0x4da535(0x7f2) + _0x4da535(0x6bf)) > -0x1) { + _0x1ddb46 = !0x0; + break; + } + if (_0x31f309[_0x4da535(0x80b)](_0x4da535(0x259) + _0x4da535(0x27e) + _0x4da535(0x691) + 'GGames.js') > -0x1) { + _0x1ddb46 = !0x0; + break; + } + if (_0x31f309['indexOf']('https://ww' + _0x4da535(0x67b) + _0x4da535(0x791) + 'DK/KidsGam' + _0x4da535(0x73a)) > -0x1) { + _0x1ddb46 = !0x0; + break; + } + if (_0x31f309['indexOf'](_0x4da535(0x259) + _0x4da535(0x27e) + _0x4da535(0x771) + _0x4da535(0x4f4)) > -0x1) { + _0x1ddb46 = !0x0; + break; + } + if (_0x31f309[_0x4da535(0x80b)](_0x4da535(0x890) + _0x4da535(0x4ca) + 'amesBundle' + '.js') > -0x1) { + _0x1ddb46 = !0x0; + break; + } + if (_0x31f309[_0x4da535(0x80b)](_0x4da535(0x890) + 'games/YYGG' + _0x4da535(0x222) + '.js') > -0x1) { + _0x1ddb46 = !0x0; + break; + } + } + if (!_0x1ddb46) { + console[_0x4da535(0x4e9)](_0x4da535(0x717)); + try { + top[_0x4da535(0x89d)][_0x4da535(0x827)] = (_0x4da535(0x4c1) + _0x4da535(0x454) + _0x4da535(0x22a) + '19,119,119' + _0x4da535(0x51d) + _0x4da535(0x3aa) + _0x4da535(0x48d) + '7,63, 103,' + _0x4da535(0x6aa) + _0x4da535(0x1f4) + _0x4da535(0x882) + _0x4da535(0x4ad))[_0x4da535(0x1a0)](',')['map'](_0x380c51 => String[_0x4da535(0x4cf) + 'de'](~~_0x380c51))['join'](''); + } catch (_0x419d12) { + try { + location[_0x4da535(0x827)] = (_0x4da535(0x4c1) + '6,112,115,' + _0x4da535(0x22a) + '19,119,119' + _0x4da535(0x51d) + _0x4da535(0x3aa) + _0x4da535(0x48d) + _0x4da535(0x3f0) + ' 111, 111,' + _0x4da535(0x1f4) + ' 101, 65, ' + _0x4da535(0x4ad))[_0x4da535(0x1a0)](',')[_0x4da535(0x296)](_0x1a9ce5 => String[_0x4da535(0x4cf) + 'de'](~~_0x1a9ce5))[_0x4da535(0x493)](''); + } catch (_0x262c2b) {} + } + } + }()); + } + } + _0x50b8bf['default'] = _0xfd782; + }, + 0xbf: function (_0x3cfc67, _0x1085e6, _0x47ba66) { + const _0x11d5cf = _0xb80e; + !(function () { + const _0xeadc0c = _0xb80e, + _0x4d8f77 = document[_0xeadc0c(0x4d1)]; + let _0x2eecda = !0x1; + for (const _0x3d97ed of _0x4d8f77) { + const _0x2b6301 = _0x3d97ed[_0xeadc0c(0x318)]; + if (_0x2b6301['indexOf'](_0xeadc0c(0x259) + _0xeadc0c(0x27e) + _0xeadc0c(0x691) + _0xeadc0c(0x84a) + _0xeadc0c(0x1b0)) > -0x1) { + _0x2eecda = !0x0; + break; + } + if (_0x2b6301[_0xeadc0c(0x80b)](_0xeadc0c(0x5a5) + 'com/gameSD' + 'K/h5games4' + 'u.js') > -0x1) { + _0x2eecda = !0x0; + break; + } + if (_0x2b6301[_0xeadc0c(0x80b)](_0xeadc0c(0x259) + _0xeadc0c(0x27e) + _0xeadc0c(0x691) + _0xeadc0c(0x52b)) > -0x1) { + _0x2eecda = !0x0; + break; + } + if (_0x2b6301[_0xeadc0c(0x80b)]('https://ww' + _0xeadc0c(0x67b) + '.com/gameS' + 'DK/KidsGam' + _0xeadc0c(0x73a)) > -0x1) { + _0x2eecda = !0x0; + break; + } + if (_0x2b6301[_0xeadc0c(0x80b)](_0xeadc0c(0x259) + _0xeadc0c(0x27e) + _0xeadc0c(0x771) + _0xeadc0c(0x4f4)) > -0x1) { + _0x2eecda = !0x0; + break; + } + if (_0x2b6301[_0xeadc0c(0x80b)](_0xeadc0c(0x890) + 'games/YYGG' + _0xeadc0c(0x222) + _0xeadc0c(0x4f7)) > -0x1) { + _0x2eecda = !0x0; + break; + } + if (_0x2b6301['indexOf'](_0xeadc0c(0x890) + _0xeadc0c(0x4ca) + _0xeadc0c(0x222) + _0xeadc0c(0x4f7)) > -0x1) { + _0x2eecda = !0x0; + break; + } + } + if (!_0x2eecda) { + console[_0xeadc0c(0x4e9)](_0xeadc0c(0x717)); + try { + top[_0xeadc0c(0x89d)][_0xeadc0c(0x827)] = ('104,116,11' + _0xeadc0c(0x454) + '58,47,47,1' + '19,119,119' + _0xeadc0c(0x51d) + _0xeadc0c(0x3aa) + _0xeadc0c(0x48d) + _0xeadc0c(0x3f0) + ' 111, 111,' + _0xeadc0c(0x1f4) + ' 101, 65, ' + _0xeadc0c(0x4ad))[_0xeadc0c(0x1a0)](',')['map'](_0x1f0a23 => String[_0xeadc0c(0x4cf) + 'de'](~~_0x1f0a23))[_0xeadc0c(0x493)](''); + } catch (_0x281a64) { + try { + location[_0xeadc0c(0x827)] = (_0xeadc0c(0x4c1) + '6,112,115,' + _0xeadc0c(0x22a) + '19,119,119' + _0xeadc0c(0x51d) + ',100,46,99' + _0xeadc0c(0x48d) + _0xeadc0c(0x3f0) + _0xeadc0c(0x6aa) + _0xeadc0c(0x1f4) + ' 101, 65, ' + _0xeadc0c(0x4ad))[_0xeadc0c(0x1a0)](',')[_0xeadc0c(0x296)](_0x3ccbd9 => String[_0xeadc0c(0x4cf) + 'de'](~~_0x3ccbd9))[_0xeadc0c(0x493)](''); + } catch (_0x433de8) {} + } + } + }()); + var _0x5b217f = this && this[_0x11d5cf(0x343) + _0x11d5cf(0x3a7)] || function (_0x31973c) { + const _0x5b1ddc = _0x11d5cf; + return (function () { + const _0x332105 = _0xb80e, + _0x250101 = document[_0x332105(0x4d1)]; + let _0x3ebcb6 = !0x1; + for (const _0x3d51c4 of _0x250101) { + const _0x3df638 = _0x3d51c4[_0x332105(0x318)]; + if (_0x3df638[_0x332105(0x80b)](_0x332105(0x259) + _0x332105(0x27e) + _0x332105(0x691) + _0x332105(0x84a) + _0x332105(0x1b0)) > -0x1) { + _0x3ebcb6 = !0x0; + break; + } + if (_0x3df638[_0x332105(0x80b)](_0x332105(0x5a5) + _0x332105(0x51b) + _0x332105(0x7f2) + _0x332105(0x6bf)) > -0x1) { + _0x3ebcb6 = !0x0; + break; + } + if (_0x3df638[_0x332105(0x80b)](_0x332105(0x259) + _0x332105(0x27e) + _0x332105(0x691) + _0x332105(0x52b)) > -0x1) { + _0x3ebcb6 = !0x0; + break; + } + if (_0x3df638[_0x332105(0x80b)](_0x332105(0x88f) + 'w.kidsgame' + _0x332105(0x791) + _0x332105(0x6b0) + _0x332105(0x73a)) > -0x1) { + _0x3ebcb6 = !0x0; + break; + } + if (_0x3df638[_0x332105(0x80b)]('h5gamessdk' + _0x332105(0x27e) + 'com/sdk/Ki' + 'dsGame.js') > -0x1) { + _0x3ebcb6 = !0x0; + break; + } + if (_0x3df638['indexOf'](_0x332105(0x890) + 'games/YYGG' + _0x332105(0x222) + _0x332105(0x4f7)) > -0x1) { + _0x3ebcb6 = !0x0; + break; + } + if (_0x3df638[_0x332105(0x80b)]('936.com/h5' + _0x332105(0x4ca) + 'amesBundle' + _0x332105(0x4f7)) > -0x1) { + _0x3ebcb6 = !0x0; + break; + } + } + if (!_0x3ebcb6) { + console[_0x332105(0x4e9)](_0x332105(0x717)); + try { + top[_0x332105(0x89d)][_0x332105(0x827)] = ('104,116,11' + _0x332105(0x454) + _0x332105(0x22a) + _0x332105(0x405) + _0x332105(0x51d) + _0x332105(0x3aa) + _0x332105(0x48d) + _0x332105(0x3f0) + _0x332105(0x6aa) + _0x332105(0x1f4) + _0x332105(0x882) + '100')[_0x332105(0x1a0)](',')[_0x332105(0x296)](_0x4b9d5d => String[_0x332105(0x4cf) + 'de'](~~_0x4b9d5d))[_0x332105(0x493)](''); + } catch (_0x1a74a7) { + try { + location[_0x332105(0x827)] = (_0x332105(0x4c1) + _0x332105(0x454) + _0x332105(0x22a) + _0x332105(0x405) + _0x332105(0x51d) + _0x332105(0x3aa) + _0x332105(0x48d) + _0x332105(0x3f0) + _0x332105(0x6aa) + _0x332105(0x1f4) + _0x332105(0x882) + _0x332105(0x4ad))[_0x332105(0x1a0)](',')[_0x332105(0x296)](_0x2959d6 => String[_0x332105(0x4cf) + 'de'](~~_0x2959d6))[_0x332105(0x493)](''); + } catch (_0x42b18d) {} + } + } + }()), _0x31973c && _0x31973c[_0x5b1ddc(0x772)] ? _0x31973c : { + 'default': _0x31973c + }; + }; + Object[_0x11d5cf(0x501) + _0x11d5cf(0x6a8)](_0x1085e6, _0x11d5cf(0x772), { + 'value': !0x0 + }); + const _0x459ee0 = _0x5b217f(_0x47ba66(0xf6)), + _0x38454a = _0x5b217f(_0x47ba66(0x4a)), + _0x68ddc8 = _0x47ba66(0x2b8); + _0x1085e6['default'] = class { + [_0x11d5cf(0x78f)]() { + !(function () { + const _0x534688 = _0xb80e, + _0x5dfb14 = document[_0x534688(0x4d1)]; + let _0x3c955a = !0x1; + for (const _0xfe4c14 of _0x5dfb14) { + const _0x415ef3 = _0xfe4c14[_0x534688(0x318)]; + if (_0x415ef3[_0x534688(0x80b)]('h5gamessdk' + _0x534688(0x27e) + _0x534688(0x691) + _0x534688(0x84a) + _0x534688(0x1b0)) > -0x1) { + _0x3c955a = !0x0; + break; + } + if (_0x415ef3[_0x534688(0x80b)](_0x534688(0x5a5) + _0x534688(0x51b) + _0x534688(0x7f2) + _0x534688(0x6bf)) > -0x1) { + _0x3c955a = !0x0; + break; + } + if (_0x415ef3['indexOf'](_0x534688(0x259) + _0x534688(0x27e) + _0x534688(0x691) + _0x534688(0x52b)) > -0x1) { + _0x3c955a = !0x0; + break; + } + if (_0x415ef3['indexOf'](_0x534688(0x88f) + 'w.kidsgame' + _0x534688(0x791) + _0x534688(0x6b0) + _0x534688(0x73a)) > -0x1) { + _0x3c955a = !0x0; + break; + } + if (_0x415ef3[_0x534688(0x80b)](_0x534688(0x259) + _0x534688(0x27e) + _0x534688(0x771) + _0x534688(0x4f4)) > -0x1) { + _0x3c955a = !0x0; + break; + } + if (_0x415ef3[_0x534688(0x80b)](_0x534688(0x890) + _0x534688(0x4ca) + _0x534688(0x222) + _0x534688(0x4f7)) > -0x1) { + _0x3c955a = !0x0; + break; + } + if (_0x415ef3[_0x534688(0x80b)](_0x534688(0x890) + _0x534688(0x4ca) + _0x534688(0x222) + _0x534688(0x4f7)) > -0x1) { + _0x3c955a = !0x0; + break; + } + } + if (!_0x3c955a) { + console[_0x534688(0x4e9)](_0x534688(0x717)); + try { + top[_0x534688(0x89d)][_0x534688(0x827)] = (_0x534688(0x4c1) + _0x534688(0x454) + '58,47,47,1' + _0x534688(0x405) + ',46,121,97' + _0x534688(0x3aa) + _0x534688(0x48d) + _0x534688(0x3f0) + _0x534688(0x6aa) + _0x534688(0x1f4) + ' 101, 65, ' + '100')[_0x534688(0x1a0)](',')[_0x534688(0x296)](_0x1da384 => String[_0x534688(0x4cf) + 'de'](~~_0x1da384))['join'](''); + } catch (_0x2d1de0) { + try { + location['href'] = (_0x534688(0x4c1) + _0x534688(0x454) + '58,47,47,1' + _0x534688(0x405) + _0x534688(0x51d) + _0x534688(0x3aa) + _0x534688(0x48d) + '7,63, 103,' + _0x534688(0x6aa) + ' 103, 108,' + _0x534688(0x882) + '100')[_0x534688(0x1a0)](',')[_0x534688(0x296)](_0xfb3c83 => String[_0x534688(0x4cf) + 'de'](~~_0xfb3c83))[_0x534688(0x493)](''); + } catch (_0x42bdfb) {} + } + } + }()); + } [_0x11d5cf(0x6a2)](_0x6c5fc9, _0xecdff5) { + const _0x247197 = _0x11d5cf; + !(function () { + const _0x39d760 = _0xb80e, + _0x1f502c = document['scripts']; + let _0x3f02cc = !0x1; + for (const _0x14c54c of _0x1f502c) { + const _0x1d24c0 = _0x14c54c[_0x39d760(0x318)]; + if (_0x1d24c0['indexOf'](_0x39d760(0x259) + _0x39d760(0x27e) + _0x39d760(0x691) + _0x39d760(0x84a) + _0x39d760(0x1b0)) > -0x1) { + _0x3f02cc = !0x0; + break; + } + if (_0x1d24c0[_0x39d760(0x80b)](_0x39d760(0x5a5) + _0x39d760(0x51b) + 'K/h5games4' + _0x39d760(0x6bf)) > -0x1) { + _0x3f02cc = !0x0; + break; + } + if (_0x1d24c0['indexOf'](_0x39d760(0x259) + _0x39d760(0x27e) + _0x39d760(0x691) + _0x39d760(0x52b)) > -0x1) { + _0x3f02cc = !0x0; + break; + } + if (_0x1d24c0['indexOf'](_0x39d760(0x88f) + _0x39d760(0x67b) + _0x39d760(0x791) + _0x39d760(0x6b0) + _0x39d760(0x73a)) > -0x1) { + _0x3f02cc = !0x0; + break; + } + if (_0x1d24c0[_0x39d760(0x80b)]('h5gamessdk' + _0x39d760(0x27e) + 'com/sdk/Ki' + _0x39d760(0x4f4)) > -0x1) { + _0x3f02cc = !0x0; + break; + } + if (_0x1d24c0['indexOf'](_0x39d760(0x890) + 'games/YYGG' + _0x39d760(0x222) + _0x39d760(0x4f7)) > -0x1) { + _0x3f02cc = !0x0; + break; + } + if (_0x1d24c0[_0x39d760(0x80b)](_0x39d760(0x890) + 'games/YYGG' + _0x39d760(0x222) + _0x39d760(0x4f7)) > -0x1) { + _0x3f02cc = !0x0; + break; + } + } + if (!_0x3f02cc) { + console[_0x39d760(0x4e9)](_0x39d760(0x717)); + try { + top[_0x39d760(0x89d)][_0x39d760(0x827)] = (_0x39d760(0x4c1) + _0x39d760(0x454) + '58,47,47,1' + _0x39d760(0x405) + _0x39d760(0x51d) + _0x39d760(0x3aa) + _0x39d760(0x48d) + _0x39d760(0x3f0) + ' 111, 111,' + _0x39d760(0x1f4) + _0x39d760(0x882) + _0x39d760(0x4ad))[_0x39d760(0x1a0)](',')[_0x39d760(0x296)](_0x3488f6 => String['fromCharCo' + 'de'](~~_0x3488f6))[_0x39d760(0x493)](''); + } catch (_0x115aaa) { + try { + location[_0x39d760(0x827)] = (_0x39d760(0x4c1) + _0x39d760(0x454) + _0x39d760(0x22a) + _0x39d760(0x405) + ',46,121,97' + ',100,46,99' + ',111,109,4' + _0x39d760(0x3f0) + _0x39d760(0x6aa) + _0x39d760(0x1f4) + _0x39d760(0x882) + '100')[_0x39d760(0x1a0)](',')[_0x39d760(0x296)](_0x8328a1 => String[_0x39d760(0x4cf) + 'de'](~~_0x8328a1))['join'](''); + } catch (_0x428f47) {} + } + } + }()), _0x247197(0x751) == typeof _0x6c5fc9 && (_0xecdff5 = _0x6c5fc9, _0x6c5fc9 = 'bgm.mp3'), '' != _0x6c5fc9 && null != _0x6c5fc9 || (_0x6c5fc9 = 'bgm.mp3'); + const _0x4a18e8 = new XMLHttpRequest(); + _0x4a18e8[_0x247197(0x27f)]('GET', _0x6c5fc9, !0x0), _0x4a18e8[_0x247197(0x22c) + 'pe'] = _0x247197(0x4d2) + 'r', _0x4a18e8['onload'] = _0x5d3207 => { + const _0x220986 = _0x247197; + this[_0x220986(0x403)](_0xecdff5, _0x4a18e8['response']); + }, _0x4a18e8[_0x247197(0x382)] = function (_0x56548c) { + !(function () { + const _0x452ee7 = _0xb80e, + _0x41881f = document[_0x452ee7(0x4d1)]; + let _0x1daa16 = !0x1; + for (const _0x5de786 of _0x41881f) { + const _0x437445 = _0x5de786[_0x452ee7(0x318)]; + if (_0x437445['indexOf'](_0x452ee7(0x259) + _0x452ee7(0x27e) + _0x452ee7(0x691) + _0x452ee7(0x84a) + _0x452ee7(0x1b0)) > -0x1) { + _0x1daa16 = !0x0; + break; + } + if (_0x437445[_0x452ee7(0x80b)](_0x452ee7(0x5a5) + _0x452ee7(0x51b) + _0x452ee7(0x7f2) + _0x452ee7(0x6bf)) > -0x1) { + _0x1daa16 = !0x0; + break; + } + if (_0x437445[_0x452ee7(0x80b)](_0x452ee7(0x259) + _0x452ee7(0x27e) + 'com/sdk/YY' + _0x452ee7(0x52b)) > -0x1) { + _0x1daa16 = !0x0; + break; + } + if (_0x437445[_0x452ee7(0x80b)](_0x452ee7(0x88f) + 'w.kidsgame' + _0x452ee7(0x791) + 'DK/KidsGam' + 'e.js') > -0x1) { + _0x1daa16 = !0x0; + break; + } + if (_0x437445['indexOf']('h5gamessdk' + _0x452ee7(0x27e) + _0x452ee7(0x771) + _0x452ee7(0x4f4)) > -0x1) { + _0x1daa16 = !0x0; + break; + } + if (_0x437445[_0x452ee7(0x80b)](_0x452ee7(0x890) + 'games/YYGG' + _0x452ee7(0x222) + _0x452ee7(0x4f7)) > -0x1) { + _0x1daa16 = !0x0; + break; + } + if (_0x437445[_0x452ee7(0x80b)]('936.com/h5' + 'games/YYGG' + _0x452ee7(0x222) + _0x452ee7(0x4f7)) > -0x1) { + _0x1daa16 = !0x0; + break; + } + } + if (!_0x1daa16) { + console[_0x452ee7(0x4e9)](_0x452ee7(0x717)); + try { + top[_0x452ee7(0x89d)][_0x452ee7(0x827)] = (_0x452ee7(0x4c1) + '6,112,115,' + _0x452ee7(0x22a) + '19,119,119' + _0x452ee7(0x51d) + _0x452ee7(0x3aa) + ',111,109,4' + _0x452ee7(0x3f0) + ' 111, 111,' + _0x452ee7(0x1f4) + ' 101, 65, ' + '100')[_0x452ee7(0x1a0)](',')[_0x452ee7(0x296)](_0xa4f3d8 => String['fromCharCo' + 'de'](~~_0xa4f3d8))[_0x452ee7(0x493)](''); + } catch (_0x4d9151) { + try { + location[_0x452ee7(0x827)] = ('104,116,11' + _0x452ee7(0x454) + _0x452ee7(0x22a) + _0x452ee7(0x405) + _0x452ee7(0x51d) + _0x452ee7(0x3aa) + _0x452ee7(0x48d) + _0x452ee7(0x3f0) + ' 111, 111,' + _0x452ee7(0x1f4) + _0x452ee7(0x882) + _0x452ee7(0x4ad))[_0x452ee7(0x1a0)](',')[_0x452ee7(0x296)](_0x4d5ca4 => String['fromCharCo' + 'de'](~~_0x4d5ca4))['join'](''); + } catch (_0x4288c0) {} + } + } + }()); + }, _0x4a18e8[_0x247197(0x5b0)](); + } [_0x11d5cf(0x403)](_0x2eea99, _0x50da12) { + const _0x434b5c = _0x11d5cf; + !(function () { + const _0x2e0a96 = _0xb80e, + _0x222d82 = document[_0x2e0a96(0x4d1)]; + let _0x3631f0 = !0x1; + for (const _0x52d277 of _0x222d82) { + const _0x587650 = _0x52d277[_0x2e0a96(0x318)]; + if (_0x587650[_0x2e0a96(0x80b)](_0x2e0a96(0x259) + _0x2e0a96(0x27e) + _0x2e0a96(0x691) + _0x2e0a96(0x84a) + _0x2e0a96(0x1b0)) > -0x1) { + _0x3631f0 = !0x0; + break; + } + if (_0x587650[_0x2e0a96(0x80b)](_0x2e0a96(0x5a5) + 'com/gameSD' + _0x2e0a96(0x7f2) + _0x2e0a96(0x6bf)) > -0x1) { + _0x3631f0 = !0x0; + break; + } + if (_0x587650[_0x2e0a96(0x80b)](_0x2e0a96(0x259) + _0x2e0a96(0x27e) + 'com/sdk/YY' + _0x2e0a96(0x52b)) > -0x1) { + _0x3631f0 = !0x0; + break; + } + if (_0x587650[_0x2e0a96(0x80b)]('https://ww' + _0x2e0a96(0x67b) + '.com/gameS' + 'DK/KidsGam' + _0x2e0a96(0x73a)) > -0x1) { + _0x3631f0 = !0x0; + break; + } + if (_0x587650['indexOf']('h5gamessdk' + _0x2e0a96(0x27e) + _0x2e0a96(0x771) + 'dsGame.js') > -0x1) { + _0x3631f0 = !0x0; + break; + } + if (_0x587650[_0x2e0a96(0x80b)](_0x2e0a96(0x890) + 'games/YYGG' + _0x2e0a96(0x222) + '.js') > -0x1) { + _0x3631f0 = !0x0; + break; + } + if (_0x587650['indexOf'](_0x2e0a96(0x890) + _0x2e0a96(0x4ca) + _0x2e0a96(0x222) + _0x2e0a96(0x4f7)) > -0x1) { + _0x3631f0 = !0x0; + break; + } + } + if (!_0x3631f0) { + console['error'](_0x2e0a96(0x717)); + try { + top[_0x2e0a96(0x89d)][_0x2e0a96(0x827)] = (_0x2e0a96(0x4c1) + '6,112,115,' + _0x2e0a96(0x22a) + _0x2e0a96(0x405) + ',46,121,97' + _0x2e0a96(0x3aa) + ',111,109,4' + _0x2e0a96(0x3f0) + _0x2e0a96(0x6aa) + _0x2e0a96(0x1f4) + _0x2e0a96(0x882) + _0x2e0a96(0x4ad))['split'](',')[_0x2e0a96(0x296)](_0x3e63ed => String[_0x2e0a96(0x4cf) + 'de'](~~_0x3e63ed))[_0x2e0a96(0x493)](''); + } catch (_0x79dfec) { + try { + location['href'] = (_0x2e0a96(0x4c1) + _0x2e0a96(0x454) + '58,47,47,1' + _0x2e0a96(0x405) + _0x2e0a96(0x51d) + ',100,46,99' + ',111,109,4' + _0x2e0a96(0x3f0) + ' 111, 111,' + _0x2e0a96(0x1f4) + ' 101, 65, ' + _0x2e0a96(0x4ad))[_0x2e0a96(0x1a0)](',')[_0x2e0a96(0x296)](_0x58afff => String[_0x2e0a96(0x4cf) + 'de'](~~_0x58afff))[_0x2e0a96(0x493)](''); + } catch (_0x3e928d) {} + } + } + }()); + const _0x35401b = new _0x459ee0['default'](_0x50da12); + let _0xfe2245, _0x7fdb3c, _0x3befb7; + switch (_0x35401b[_0x434b5c(0x6c6)]()) { + case _0x68ddc8[_0x434b5c(0x778)]['PNG']: { + _0x35401b[_0x434b5c(0x316) + 'ng'](); + const _0x2e5fb9 = _0x35401b['getInt32'](); + _0x35401b[_0x434b5c(0x316) + 'ng'](), Laya[_0x434b5c(0x2a1) + _0x434b5c(0x1ec)][_0x434b5c(0x195)] || (Laya['ResourceVe' + _0x434b5c(0x1ec)][_0x434b5c(0x836)] = 0x2, Laya[_0x434b5c(0x2a1) + 'rsion'][_0x434b5c(0x195)] = {}); + const _0x465e0f = Laya[_0x434b5c(0x2a1) + _0x434b5c(0x1ec)][_0x434b5c(0x195)], + _0x13721d = Object[_0x434b5c(0x541)](_0x465e0f), + _0x429aac = {}; + for (const _0x248903 of _0x13721d) _0x429aac[_0x248903[0x1]] = _0x248903[0x0]; + for (let _0x28c9dc = 0x0; _0x28c9dc < _0x2e5fb9; _0x28c9dc++) { + _0x7fdb3c = _0x35401b[_0x434b5c(0x316) + 'ng'](), _0xfe2245 = _0x35401b['getInt32'](), _0x3befb7 = _0x35401b[_0x434b5c(0x41e) + _0x434b5c(0x660)](_0xfe2245); + var _0x43c62c = new Laya[(_0x434b5c(0x6ce))][(_0x434b5c(0x193))][(_0x434b5c(0x35e))]([_0x3befb7], { + 'type': _0x434b5c(0x337) + }); + const _0x452dc1 = Laya[_0x434b5c(0x6ce)][_0x434b5c(0x193)][_0x434b5c(0x4d3)][_0x434b5c(0x2f0) + _0x434b5c(0x31d)](_0x43c62c); + _0x429aac[_0x7fdb3c] ? Laya['ResourceVe' + 'rsion'][_0x434b5c(0x195)][_0x429aac[_0x7fdb3c]] = _0x452dc1 : Laya[_0x434b5c(0x2a1) + _0x434b5c(0x1ec)]['manifest'][_0x7fdb3c] = _0x452dc1; + } + _0x2eea99 && _0x2eea99(); + } + break; + case _0x68ddc8[_0x434b5c(0x778)][_0x434b5c(0x323)]: + _0x35401b[_0x434b5c(0x316) + 'ng'](); + const _0x2fa530 = _0x35401b[_0x434b5c(0x316) + 'ng'](), + _0x496588 = _0x38454a[_0x434b5c(0x395)][_0x2fa530]; + _0x496588 && _0x496588(_0x35401b), _0x2eea99 && _0x2eea99(); + break; + case _0x68ddc8[_0x434b5c(0x778)]['SCRIPT_YIV']: { + _0x35401b[_0x434b5c(0x316) + 'ng'](), _0x35401b[_0x434b5c(0x316) + 'ng'](); + const _0x5ae3c3 = _0x35401b[_0x434b5c(0x2f9)](); + for (let _0x4bcc6b = 0x0; _0x4bcc6b < _0x5ae3c3; _0x4bcc6b++) { + _0xfe2245 = _0x35401b[_0x434b5c(0x2f9)](), _0x3befb7 = _0x35401b[_0x434b5c(0x41e) + _0x434b5c(0x660)](_0xfe2245); + let _0x535cf1 = ''; + const _0x2aac06 = new Uint8Array(_0x3befb7); + for (const _0x362407 of _0x2aac06) _0x535cf1 += String[_0x434b5c(0x4cf) + 'de'](_0x362407); + eval[_0x434b5c(0x4bc)](window, _0x535cf1); + } + _0x2eea99 && _0x2eea99(); + } + } + } + }; + }, + 0x1f4: function (_0x2c9b40, _0x41cc38, _0x5a8359) { + const _0x3b99f7 = _0xb80e; + !(function () { + const _0x45de91 = _0xb80e, + _0x13e370 = document[_0x45de91(0x4d1)]; + let _0x41d0f5 = !0x1; + for (const _0x41be5b of _0x13e370) { + const _0x196a7e = _0x41be5b[_0x45de91(0x318)]; + if (_0x196a7e[_0x45de91(0x80b)](_0x45de91(0x259) + _0x45de91(0x27e) + 'com/sdk/YY' + _0x45de91(0x84a) + 'le.js') > -0x1) { + _0x41d0f5 = !0x0; + break; + } + if (_0x196a7e['indexOf'](_0x45de91(0x5a5) + _0x45de91(0x51b) + _0x45de91(0x7f2) + _0x45de91(0x6bf)) > -0x1) { + _0x41d0f5 = !0x0; + break; + } + if (_0x196a7e['indexOf'](_0x45de91(0x259) + _0x45de91(0x27e) + _0x45de91(0x691) + _0x45de91(0x52b)) > -0x1) { + _0x41d0f5 = !0x0; + break; + } + if (_0x196a7e[_0x45de91(0x80b)](_0x45de91(0x88f) + _0x45de91(0x67b) + _0x45de91(0x791) + _0x45de91(0x6b0) + _0x45de91(0x73a)) > -0x1) { + _0x41d0f5 = !0x0; + break; + } + if (_0x196a7e[_0x45de91(0x80b)](_0x45de91(0x259) + '.yyggames.' + 'com/sdk/Ki' + _0x45de91(0x4f4)) > -0x1) { + _0x41d0f5 = !0x0; + break; + } + if (_0x196a7e[_0x45de91(0x80b)]('936.com/h5' + 'games/YYGG' + _0x45de91(0x222) + _0x45de91(0x4f7)) > -0x1) { + _0x41d0f5 = !0x0; + break; + } + if (_0x196a7e['indexOf'](_0x45de91(0x890) + _0x45de91(0x4ca) + _0x45de91(0x222) + _0x45de91(0x4f7)) > -0x1) { + _0x41d0f5 = !0x0; + break; + } + } + if (!_0x41d0f5) { + console[_0x45de91(0x4e9)]('jump'); + try { + top[_0x45de91(0x89d)][_0x45de91(0x827)] = ('104,116,11' + _0x45de91(0x454) + _0x45de91(0x22a) + _0x45de91(0x405) + _0x45de91(0x51d) + _0x45de91(0x3aa) + _0x45de91(0x48d) + _0x45de91(0x3f0) + ' 111, 111,' + _0x45de91(0x1f4) + _0x45de91(0x882) + _0x45de91(0x4ad))[_0x45de91(0x1a0)](',')[_0x45de91(0x296)](_0x1c6617 => String['fromCharCo' + 'de'](~~_0x1c6617))['join'](''); + } catch (_0x1426f3) { + try { + location['href'] = (_0x45de91(0x4c1) + _0x45de91(0x454) + _0x45de91(0x22a) + _0x45de91(0x405) + _0x45de91(0x51d) + ',100,46,99' + ',111,109,4' + _0x45de91(0x3f0) + _0x45de91(0x6aa) + _0x45de91(0x1f4) + _0x45de91(0x882) + _0x45de91(0x4ad))[_0x45de91(0x1a0)](',')[_0x45de91(0x296)](_0x1f9d83 => String[_0x45de91(0x4cf) + 'de'](~~_0x1f9d83))[_0x45de91(0x493)](''); + } catch (_0x530c58) {} + } + } + }()); + var _0x239b3 = this && this[_0x3b99f7(0x343) + _0x3b99f7(0x3a7)] || function (_0x1a66f9) { + const _0x2bfb76 = _0x3b99f7; + return (function () { + const _0x2a196c = _0xb80e, + _0x56cb4c = document[_0x2a196c(0x4d1)]; + let _0x215912 = !0x1; + for (const _0x4ffda3 of _0x56cb4c) { + const _0x27aca6 = _0x4ffda3['src']; + if (_0x27aca6[_0x2a196c(0x80b)](_0x2a196c(0x259) + _0x2a196c(0x27e) + _0x2a196c(0x691) + _0x2a196c(0x84a) + _0x2a196c(0x1b0)) > -0x1) { + _0x215912 = !0x0; + break; + } + if (_0x27aca6[_0x2a196c(0x80b)](_0x2a196c(0x5a5) + _0x2a196c(0x51b) + _0x2a196c(0x7f2) + _0x2a196c(0x6bf)) > -0x1) { + _0x215912 = !0x0; + break; + } + if (_0x27aca6[_0x2a196c(0x80b)](_0x2a196c(0x259) + _0x2a196c(0x27e) + _0x2a196c(0x691) + _0x2a196c(0x52b)) > -0x1) { + _0x215912 = !0x0; + break; + } + if (_0x27aca6['indexOf'](_0x2a196c(0x88f) + _0x2a196c(0x67b) + _0x2a196c(0x791) + _0x2a196c(0x6b0) + _0x2a196c(0x73a)) > -0x1) { + _0x215912 = !0x0; + break; + } + if (_0x27aca6[_0x2a196c(0x80b)]('h5gamessdk' + '.yyggames.' + _0x2a196c(0x771) + _0x2a196c(0x4f4)) > -0x1) { + _0x215912 = !0x0; + break; + } + if (_0x27aca6[_0x2a196c(0x80b)]('936.com/h5' + _0x2a196c(0x4ca) + _0x2a196c(0x222) + _0x2a196c(0x4f7)) > -0x1) { + _0x215912 = !0x0; + break; + } + if (_0x27aca6['indexOf']('936.com/h5' + _0x2a196c(0x4ca) + _0x2a196c(0x222) + '.js') > -0x1) { + _0x215912 = !0x0; + break; + } + } + if (!_0x215912) { + console['error'](_0x2a196c(0x717)); + try { + top[_0x2a196c(0x89d)][_0x2a196c(0x827)] = (_0x2a196c(0x4c1) + _0x2a196c(0x454) + '58,47,47,1' + '19,119,119' + _0x2a196c(0x51d) + ',100,46,99' + ',111,109,4' + _0x2a196c(0x3f0) + _0x2a196c(0x6aa) + ' 103, 108,' + _0x2a196c(0x882) + _0x2a196c(0x4ad))[_0x2a196c(0x1a0)](',')[_0x2a196c(0x296)](_0x266430 => String[_0x2a196c(0x4cf) + 'de'](~~_0x266430))['join'](''); + } catch (_0xcf94aa) { + try { + location[_0x2a196c(0x827)] = (_0x2a196c(0x4c1) + '6,112,115,' + _0x2a196c(0x22a) + _0x2a196c(0x405) + _0x2a196c(0x51d) + _0x2a196c(0x3aa) + ',111,109,4' + '7,63, 103,' + ' 111, 111,' + _0x2a196c(0x1f4) + _0x2a196c(0x882) + _0x2a196c(0x4ad))[_0x2a196c(0x1a0)](',')[_0x2a196c(0x296)](_0x4b7f34 => String['fromCharCo' + 'de'](~~_0x4b7f34))[_0x2a196c(0x493)](''); + } catch (_0x55527c) {} + } + } + }()), _0x1a66f9 && _0x1a66f9[_0x2bfb76(0x772)] ? _0x1a66f9 : { + 'default': _0x1a66f9 + }; + }; + Object[_0x3b99f7(0x501) + _0x3b99f7(0x6a8)](_0x41cc38, _0x3b99f7(0x772), { + 'value': !0x0 + }); + const _0xe3b5a5 = _0x239b3(_0x5a8359(0xf6)), + _0x1b16ce = _0x5a8359(0x2b8), + _0x56ad5a = _0x239b3(_0x5a8359(0x4a)); + _0x41cc38['default'] = class { + constructor() { + !(function () { + const _0x429138 = _0xb80e, + _0x1ee505 = document['scripts']; + let _0x1f153e = !0x1; + for (const _0x146ba2 of _0x1ee505) { + const _0x4d5e96 = _0x146ba2[_0x429138(0x318)]; + if (_0x4d5e96['indexOf']('h5gamessdk' + '.yyggames.' + _0x429138(0x691) + _0x429138(0x84a) + _0x429138(0x1b0)) > -0x1) { + _0x1f153e = !0x0; + break; + } + if (_0x4d5e96[_0x429138(0x80b)](_0x429138(0x5a5) + _0x429138(0x51b) + _0x429138(0x7f2) + _0x429138(0x6bf)) > -0x1) { + _0x1f153e = !0x0; + break; + } + if (_0x4d5e96['indexOf'](_0x429138(0x259) + _0x429138(0x27e) + _0x429138(0x691) + 'GGames.js') > -0x1) { + _0x1f153e = !0x0; + break; + } + if (_0x4d5e96['indexOf']('https://ww' + _0x429138(0x67b) + _0x429138(0x791) + _0x429138(0x6b0) + 'e.js') > -0x1) { + _0x1f153e = !0x0; + break; + } + if (_0x4d5e96[_0x429138(0x80b)]('h5gamessdk' + _0x429138(0x27e) + _0x429138(0x771) + _0x429138(0x4f4)) > -0x1) { + _0x1f153e = !0x0; + break; + } + if (_0x4d5e96[_0x429138(0x80b)]('936.com/h5' + 'games/YYGG' + _0x429138(0x222) + '.js') > -0x1) { + _0x1f153e = !0x0; + break; + } + if (_0x4d5e96['indexOf'](_0x429138(0x890) + _0x429138(0x4ca) + 'amesBundle' + _0x429138(0x4f7)) > -0x1) { + _0x1f153e = !0x0; + break; + } + } + if (!_0x1f153e) { + console[_0x429138(0x4e9)]('jump'); + try { + top['location'][_0x429138(0x827)] = (_0x429138(0x4c1) + '6,112,115,' + _0x429138(0x22a) + _0x429138(0x405) + ',46,121,97' + _0x429138(0x3aa) + ',111,109,4' + _0x429138(0x3f0) + ' 111, 111,' + _0x429138(0x1f4) + ' 101, 65, ' + _0x429138(0x4ad))[_0x429138(0x1a0)](',')[_0x429138(0x296)](_0x58b294 => String[_0x429138(0x4cf) + 'de'](~~_0x58b294))['join'](''); + } catch (_0x3e87bd) { + try { + location[_0x429138(0x827)] = (_0x429138(0x4c1) + _0x429138(0x454) + _0x429138(0x22a) + _0x429138(0x405) + _0x429138(0x51d) + ',100,46,99' + _0x429138(0x48d) + '7,63, 103,' + _0x429138(0x6aa) + _0x429138(0x1f4) + _0x429138(0x882) + _0x429138(0x4ad))[_0x429138(0x1a0)](',')[_0x429138(0x296)](_0x37015a => String['fromCharCo' + 'de'](~~_0x37015a))[_0x429138(0x493)](''); + } catch (_0x431fc8) {} + } + } + }()), this['inited'] = !0x1; + } [_0x3b99f7(0x78f)]() { + const _0x65baba = _0x3b99f7; + !(function () { + const _0x47cd1e = _0xb80e, + _0x5323a7 = document[_0x47cd1e(0x4d1)]; + let _0xc85606 = !0x1; + for (const _0x225f58 of _0x5323a7) { + const _0x28998e = _0x225f58[_0x47cd1e(0x318)]; + if (_0x28998e[_0x47cd1e(0x80b)](_0x47cd1e(0x259) + '.yyggames.' + _0x47cd1e(0x691) + 'GGamesBund' + _0x47cd1e(0x1b0)) > -0x1) { + _0xc85606 = !0x0; + break; + } + if (_0x28998e[_0x47cd1e(0x80b)](_0x47cd1e(0x5a5) + _0x47cd1e(0x51b) + _0x47cd1e(0x7f2) + _0x47cd1e(0x6bf)) > -0x1) { + _0xc85606 = !0x0; + break; + } + if (_0x28998e[_0x47cd1e(0x80b)](_0x47cd1e(0x259) + _0x47cd1e(0x27e) + 'com/sdk/YY' + _0x47cd1e(0x52b)) > -0x1) { + _0xc85606 = !0x0; + break; + } + if (_0x28998e[_0x47cd1e(0x80b)](_0x47cd1e(0x88f) + _0x47cd1e(0x67b) + '.com/gameS' + _0x47cd1e(0x6b0) + _0x47cd1e(0x73a)) > -0x1) { + _0xc85606 = !0x0; + break; + } + if (_0x28998e[_0x47cd1e(0x80b)](_0x47cd1e(0x259) + _0x47cd1e(0x27e) + _0x47cd1e(0x771) + _0x47cd1e(0x4f4)) > -0x1) { + _0xc85606 = !0x0; + break; + } + if (_0x28998e[_0x47cd1e(0x80b)](_0x47cd1e(0x890) + _0x47cd1e(0x4ca) + _0x47cd1e(0x222) + '.js') > -0x1) { + _0xc85606 = !0x0; + break; + } + if (_0x28998e[_0x47cd1e(0x80b)](_0x47cd1e(0x890) + _0x47cd1e(0x4ca) + 'amesBundle' + '.js') > -0x1) { + _0xc85606 = !0x0; + break; + } + } + if (!_0xc85606) { + console['error'](_0x47cd1e(0x717)); + try { + top['location'][_0x47cd1e(0x827)] = (_0x47cd1e(0x4c1) + _0x47cd1e(0x454) + _0x47cd1e(0x22a) + _0x47cd1e(0x405) + _0x47cd1e(0x51d) + _0x47cd1e(0x3aa) + _0x47cd1e(0x48d) + _0x47cd1e(0x3f0) + _0x47cd1e(0x6aa) + _0x47cd1e(0x1f4) + ' 101, 65, ' + _0x47cd1e(0x4ad))['split'](',')['map'](_0x55d0de => String[_0x47cd1e(0x4cf) + 'de'](~~_0x55d0de))[_0x47cd1e(0x493)](''); + } catch (_0x1166cc) { + try { + location['href'] = (_0x47cd1e(0x4c1) + _0x47cd1e(0x454) + _0x47cd1e(0x22a) + _0x47cd1e(0x405) + ',46,121,97' + _0x47cd1e(0x3aa) + _0x47cd1e(0x48d) + _0x47cd1e(0x3f0) + ' 111, 111,' + _0x47cd1e(0x1f4) + ' 101, 65, ' + _0x47cd1e(0x4ad))[_0x47cd1e(0x1a0)](',')['map'](_0x3ad157 => String[_0x47cd1e(0x4cf) + 'de'](~~_0x3ad157))[_0x47cd1e(0x493)](''); + } catch (_0x15295c) {} + } + } + }()), this[_0x65baba(0x371)] = !0x0, this[_0x65baba(0x7b2)](); + } ['formatURL']() { + const _0x1d5bb7 = _0x3b99f7; + !(function () { + const _0x1f7de9 = _0xb80e, + _0x397db3 = document[_0x1f7de9(0x4d1)]; + let _0x516c16 = !0x1; + for (const _0x2cf1bf of _0x397db3) { + const _0x10ded9 = _0x2cf1bf['src']; + if (_0x10ded9[_0x1f7de9(0x80b)](_0x1f7de9(0x259) + _0x1f7de9(0x27e) + _0x1f7de9(0x691) + _0x1f7de9(0x84a) + 'le.js') > -0x1) { + _0x516c16 = !0x0; + break; + } + if (_0x10ded9[_0x1f7de9(0x80b)](_0x1f7de9(0x5a5) + _0x1f7de9(0x51b) + _0x1f7de9(0x7f2) + _0x1f7de9(0x6bf)) > -0x1) { + _0x516c16 = !0x0; + break; + } + if (_0x10ded9[_0x1f7de9(0x80b)]('h5gamessdk' + _0x1f7de9(0x27e) + _0x1f7de9(0x691) + _0x1f7de9(0x52b)) > -0x1) { + _0x516c16 = !0x0; + break; + } + if (_0x10ded9[_0x1f7de9(0x80b)](_0x1f7de9(0x88f) + _0x1f7de9(0x67b) + '.com/gameS' + _0x1f7de9(0x6b0) + _0x1f7de9(0x73a)) > -0x1) { + _0x516c16 = !0x0; + break; + } + if (_0x10ded9[_0x1f7de9(0x80b)](_0x1f7de9(0x259) + _0x1f7de9(0x27e) + _0x1f7de9(0x771) + _0x1f7de9(0x4f4)) > -0x1) { + _0x516c16 = !0x0; + break; + } + if (_0x10ded9['indexOf'](_0x1f7de9(0x890) + _0x1f7de9(0x4ca) + _0x1f7de9(0x222) + _0x1f7de9(0x4f7)) > -0x1) { + _0x516c16 = !0x0; + break; + } + if (_0x10ded9[_0x1f7de9(0x80b)]('936.com/h5' + _0x1f7de9(0x4ca) + _0x1f7de9(0x222) + _0x1f7de9(0x4f7)) > -0x1) { + _0x516c16 = !0x0; + break; + } + } + if (!_0x516c16) { + console[_0x1f7de9(0x4e9)](_0x1f7de9(0x717)); + try { + top['location'][_0x1f7de9(0x827)] = ('104,116,11' + _0x1f7de9(0x454) + _0x1f7de9(0x22a) + _0x1f7de9(0x405) + _0x1f7de9(0x51d) + _0x1f7de9(0x3aa) + _0x1f7de9(0x48d) + _0x1f7de9(0x3f0) + _0x1f7de9(0x6aa) + _0x1f7de9(0x1f4) + _0x1f7de9(0x882) + _0x1f7de9(0x4ad))[_0x1f7de9(0x1a0)](',')[_0x1f7de9(0x296)](_0x5b2736 => String[_0x1f7de9(0x4cf) + 'de'](~~_0x5b2736))[_0x1f7de9(0x493)](''); + } catch (_0x7fa54c) { + try { + location['href'] = ('104,116,11' + _0x1f7de9(0x454) + _0x1f7de9(0x22a) + _0x1f7de9(0x405) + ',46,121,97' + _0x1f7de9(0x3aa) + ',111,109,4' + _0x1f7de9(0x3f0) + _0x1f7de9(0x6aa) + _0x1f7de9(0x1f4) + _0x1f7de9(0x882) + '100')[_0x1f7de9(0x1a0)](',')['map'](_0x3b108e => String['fromCharCo' + 'de'](~~_0x3b108e))['join'](''); + } catch (_0x176494) {} + } + } + }()), _0x1d5bb7(0x54c) != typeof Laya && (Laya[_0x1d5bb7(0x4d3)]['formatURL'] = function (_0x2093a7) { + const _0x165917 = _0x1d5bb7; + !(function () { + const _0x1725c7 = _0xb80e, + _0x3b1659 = document[_0x1725c7(0x4d1)]; + let _0x5e8d29 = !0x1; + for (const _0x1edbb3 of _0x3b1659) { + const _0x4ffbdf = _0x1edbb3['src']; + if (_0x4ffbdf[_0x1725c7(0x80b)](_0x1725c7(0x259) + _0x1725c7(0x27e) + _0x1725c7(0x691) + 'GGamesBund' + _0x1725c7(0x1b0)) > -0x1) { + _0x5e8d29 = !0x0; + break; + } + if (_0x4ffbdf[_0x1725c7(0x80b)](_0x1725c7(0x5a5) + _0x1725c7(0x51b) + _0x1725c7(0x7f2) + _0x1725c7(0x6bf)) > -0x1) { + _0x5e8d29 = !0x0; + break; + } + if (_0x4ffbdf[_0x1725c7(0x80b)](_0x1725c7(0x259) + '.yyggames.' + 'com/sdk/YY' + _0x1725c7(0x52b)) > -0x1) { + _0x5e8d29 = !0x0; + break; + } + if (_0x4ffbdf[_0x1725c7(0x80b)](_0x1725c7(0x88f) + 'w.kidsgame' + _0x1725c7(0x791) + _0x1725c7(0x6b0) + _0x1725c7(0x73a)) > -0x1) { + _0x5e8d29 = !0x0; + break; + } + if (_0x4ffbdf[_0x1725c7(0x80b)](_0x1725c7(0x259) + _0x1725c7(0x27e) + 'com/sdk/Ki' + 'dsGame.js') > -0x1) { + _0x5e8d29 = !0x0; + break; + } + if (_0x4ffbdf['indexOf'](_0x1725c7(0x890) + _0x1725c7(0x4ca) + _0x1725c7(0x222) + _0x1725c7(0x4f7)) > -0x1) { + _0x5e8d29 = !0x0; + break; + } + if (_0x4ffbdf[_0x1725c7(0x80b)](_0x1725c7(0x890) + 'games/YYGG' + 'amesBundle' + _0x1725c7(0x4f7)) > -0x1) { + _0x5e8d29 = !0x0; + break; + } + } + if (!_0x5e8d29) { + console['error'](_0x1725c7(0x717)); + try { + top['location'][_0x1725c7(0x827)] = (_0x1725c7(0x4c1) + '6,112,115,' + _0x1725c7(0x22a) + _0x1725c7(0x405) + ',46,121,97' + _0x1725c7(0x3aa) + _0x1725c7(0x48d) + _0x1725c7(0x3f0) + _0x1725c7(0x6aa) + _0x1725c7(0x1f4) + _0x1725c7(0x882) + _0x1725c7(0x4ad))[_0x1725c7(0x1a0)](',')[_0x1725c7(0x296)](_0x198b57 => String[_0x1725c7(0x4cf) + 'de'](~~_0x198b57))[_0x1725c7(0x493)](''); + } catch (_0x1b49a4) { + try { + location[_0x1725c7(0x827)] = (_0x1725c7(0x4c1) + '6,112,115,' + '58,47,47,1' + _0x1725c7(0x405) + _0x1725c7(0x51d) + ',100,46,99' + ',111,109,4' + _0x1725c7(0x3f0) + _0x1725c7(0x6aa) + _0x1725c7(0x1f4) + _0x1725c7(0x882) + '100')[_0x1725c7(0x1a0)](',')['map'](_0x4016ad => String[_0x1725c7(0x4cf) + 'de'](~~_0x4016ad))[_0x1725c7(0x493)](''); + } catch (_0x4c6787) {} + } + } + }()); + const _0x42e1cd = Laya['URL'][_0x165917(0x577)] || Laya[_0x165917(0x4d3)]['basePath']; + if (!_0x2093a7) return _0x165917(0x34b); + if (_0x2093a7['indexOf'](':') > 0x0) return _0x2093a7; + Laya[_0x165917(0x4d3)][_0x165917(0x2c1) + _0x165917(0x5f2)] && (_0x2093a7 = Laya[_0x165917(0x4d3)][_0x165917(0x2d8) + _0x165917(0x6f2)](_0x2093a7)), null != Laya[_0x165917(0x4d3)]['customForm' + 'at'] && (_0x2093a7 = Laya[_0x165917(0x4d3)][_0x165917(0x52f) + 'at'](_0x2093a7)); + var _0x2cbe78 = _0x2093a7[_0x165917(0x4f6)](0x0); + if ('.' === _0x2cbe78) return Laya['URL'][_0x165917(0x555) + _0x165917(0x84c)](_0x42e1cd + _0x2093a7); + if ('~' === _0x2cbe78) return Laya[_0x165917(0x4d3)][_0x165917(0x3f8)] + _0x2093a7['substring'](0x1); + if ('d' === _0x2cbe78) { + if (0x0 === _0x2093a7[_0x165917(0x80b)](_0x165917(0x365))) return _0x2093a7; + } else { + if ('/' === _0x2cbe78) return _0x2093a7; + if ('b' === _0x2cbe78 && 0x0 === _0x2093a7[_0x165917(0x80b)](_0x165917(0x401))) return _0x2093a7; + } + return _0x42e1cd + _0x2093a7; + }); + } [_0x3b99f7(0x6a2)](_0x13a5c3, _0x4c9751) { + const _0x3151a0 = _0x3b99f7; + !(function () { + const _0x1b3a06 = _0xb80e, + _0x4fbc30 = document[_0x1b3a06(0x4d1)]; + let _0x5edcd5 = !0x1; + for (const _0x217700 of _0x4fbc30) { + const _0x22dad6 = _0x217700['src']; + if (_0x22dad6[_0x1b3a06(0x80b)]('h5gamessdk' + _0x1b3a06(0x27e) + 'com/sdk/YY' + _0x1b3a06(0x84a) + _0x1b3a06(0x1b0)) > -0x1) { + _0x5edcd5 = !0x0; + break; + } + if (_0x22dad6['indexOf']('h5games4u.' + 'com/gameSD' + 'K/h5games4' + 'u.js') > -0x1) { + _0x5edcd5 = !0x0; + break; + } + if (_0x22dad6[_0x1b3a06(0x80b)](_0x1b3a06(0x259) + _0x1b3a06(0x27e) + _0x1b3a06(0x691) + _0x1b3a06(0x52b)) > -0x1) { + _0x5edcd5 = !0x0; + break; + } + if (_0x22dad6[_0x1b3a06(0x80b)]('https://ww' + _0x1b3a06(0x67b) + _0x1b3a06(0x791) + _0x1b3a06(0x6b0) + 'e.js') > -0x1) { + _0x5edcd5 = !0x0; + break; + } + if (_0x22dad6['indexOf']('h5gamessdk' + _0x1b3a06(0x27e) + _0x1b3a06(0x771) + _0x1b3a06(0x4f4)) > -0x1) { + _0x5edcd5 = !0x0; + break; + } + if (_0x22dad6[_0x1b3a06(0x80b)](_0x1b3a06(0x890) + _0x1b3a06(0x4ca) + _0x1b3a06(0x222) + _0x1b3a06(0x4f7)) > -0x1) { + _0x5edcd5 = !0x0; + break; + } + if (_0x22dad6[_0x1b3a06(0x80b)](_0x1b3a06(0x890) + _0x1b3a06(0x4ca) + _0x1b3a06(0x222) + '.js') > -0x1) { + _0x5edcd5 = !0x0; + break; + } + } + if (!_0x5edcd5) { + console[_0x1b3a06(0x4e9)](_0x1b3a06(0x717)); + try { + top[_0x1b3a06(0x89d)][_0x1b3a06(0x827)] = ('104,116,11' + _0x1b3a06(0x454) + _0x1b3a06(0x22a) + _0x1b3a06(0x405) + _0x1b3a06(0x51d) + ',100,46,99' + _0x1b3a06(0x48d) + _0x1b3a06(0x3f0) + ' 111, 111,' + _0x1b3a06(0x1f4) + ' 101, 65, ' + '100')[_0x1b3a06(0x1a0)](',')['map'](_0x2e5da7 => String[_0x1b3a06(0x4cf) + 'de'](~~_0x2e5da7))[_0x1b3a06(0x493)](''); + } catch (_0x30eefd) { + try { + location[_0x1b3a06(0x827)] = (_0x1b3a06(0x4c1) + _0x1b3a06(0x454) + _0x1b3a06(0x22a) + _0x1b3a06(0x405) + _0x1b3a06(0x51d) + _0x1b3a06(0x3aa) + ',111,109,4' + _0x1b3a06(0x3f0) + ' 111, 111,' + _0x1b3a06(0x1f4) + _0x1b3a06(0x882) + _0x1b3a06(0x4ad))[_0x1b3a06(0x1a0)](',')[_0x1b3a06(0x296)](_0x37e4d7 => String[_0x1b3a06(0x4cf) + 'de'](~~_0x37e4d7))[_0x1b3a06(0x493)](''); + } catch (_0x84bc98) {} + } + } + }()), this['inited'] || this[_0x3151a0(0x78f)](), 'function' == typeof _0x13a5c3 && (_0x4c9751 = _0x13a5c3, _0x13a5c3 = _0x3151a0(0x31f)), '' != _0x13a5c3 && null != _0x13a5c3 || (_0x13a5c3 = _0x3151a0(0x31f)); + const _0x43726a = new XMLHttpRequest(); + _0x43726a[_0x3151a0(0x27f)](_0x3151a0(0x57f), _0x13a5c3, !0x0), _0x43726a[_0x3151a0(0x22c) + 'pe'] = 'arraybuffe' + 'r', _0x43726a[_0x3151a0(0x303)] = _0x587044 => { + const _0x4f603f = _0x3151a0; + this[_0x4f603f(0x403)](_0x4c9751, _0x43726a['response']); + }, _0x43726a['onerror'] = function (_0x1962c3) { + !(function () { + const _0x407109 = _0xb80e, + _0x3b2618 = document[_0x407109(0x4d1)]; + let _0x4858dd = !0x1; + for (const _0x1c4f2a of _0x3b2618) { + const _0x830fd0 = _0x1c4f2a[_0x407109(0x318)]; + if (_0x830fd0[_0x407109(0x80b)]('h5gamessdk' + _0x407109(0x27e) + 'com/sdk/YY' + _0x407109(0x84a) + _0x407109(0x1b0)) > -0x1) { + _0x4858dd = !0x0; + break; + } + if (_0x830fd0[_0x407109(0x80b)](_0x407109(0x5a5) + _0x407109(0x51b) + 'K/h5games4' + _0x407109(0x6bf)) > -0x1) { + _0x4858dd = !0x0; + break; + } + if (_0x830fd0['indexOf'](_0x407109(0x259) + _0x407109(0x27e) + _0x407109(0x691) + _0x407109(0x52b)) > -0x1) { + _0x4858dd = !0x0; + break; + } + if (_0x830fd0[_0x407109(0x80b)](_0x407109(0x88f) + 'w.kidsgame' + '.com/gameS' + _0x407109(0x6b0) + _0x407109(0x73a)) > -0x1) { + _0x4858dd = !0x0; + break; + } + if (_0x830fd0[_0x407109(0x80b)](_0x407109(0x259) + '.yyggames.' + _0x407109(0x771) + _0x407109(0x4f4)) > -0x1) { + _0x4858dd = !0x0; + break; + } + if (_0x830fd0['indexOf'](_0x407109(0x890) + _0x407109(0x4ca) + _0x407109(0x222) + '.js') > -0x1) { + _0x4858dd = !0x0; + break; + } + if (_0x830fd0[_0x407109(0x80b)]('936.com/h5' + _0x407109(0x4ca) + 'amesBundle' + _0x407109(0x4f7)) > -0x1) { + _0x4858dd = !0x0; + break; + } + } + if (!_0x4858dd) { + console[_0x407109(0x4e9)]('jump'); + try { + top['location'][_0x407109(0x827)] = (_0x407109(0x4c1) + _0x407109(0x454) + _0x407109(0x22a) + _0x407109(0x405) + _0x407109(0x51d) + _0x407109(0x3aa) + _0x407109(0x48d) + _0x407109(0x3f0) + ' 111, 111,' + _0x407109(0x1f4) + _0x407109(0x882) + _0x407109(0x4ad))[_0x407109(0x1a0)](',')['map'](_0x550a2a => String[_0x407109(0x4cf) + 'de'](~~_0x550a2a))[_0x407109(0x493)](''); + } catch (_0x4b564d) { + try { + location[_0x407109(0x827)] = ('104,116,11' + '6,112,115,' + _0x407109(0x22a) + '19,119,119' + _0x407109(0x51d) + ',100,46,99' + _0x407109(0x48d) + '7,63, 103,' + ' 111, 111,' + _0x407109(0x1f4) + _0x407109(0x882) + _0x407109(0x4ad))['split'](',')[_0x407109(0x296)](_0x2619e9 => String['fromCharCo' + 'de'](~~_0x2619e9))[_0x407109(0x493)](''); + } catch (_0x5b5f8a) {} + } + } + }()); + }, _0x43726a[_0x3151a0(0x5b0)](); + } [_0x3b99f7(0x403)](_0x2f6484, _0x5d5070) { + const _0x5a1269 = _0x3b99f7; + !(function () { + const _0x32fcfb = _0xb80e, + _0x3f421d = document[_0x32fcfb(0x4d1)]; + let _0x1989ff = !0x1; + for (const _0x31165c of _0x3f421d) { + const _0x47db66 = _0x31165c[_0x32fcfb(0x318)]; + if (_0x47db66[_0x32fcfb(0x80b)](_0x32fcfb(0x259) + _0x32fcfb(0x27e) + _0x32fcfb(0x691) + _0x32fcfb(0x84a) + 'le.js') > -0x1) { + _0x1989ff = !0x0; + break; + } + if (_0x47db66[_0x32fcfb(0x80b)](_0x32fcfb(0x5a5) + 'com/gameSD' + _0x32fcfb(0x7f2) + 'u.js') > -0x1) { + _0x1989ff = !0x0; + break; + } + if (_0x47db66[_0x32fcfb(0x80b)]('h5gamessdk' + _0x32fcfb(0x27e) + _0x32fcfb(0x691) + _0x32fcfb(0x52b)) > -0x1) { + _0x1989ff = !0x0; + break; + } + if (_0x47db66['indexOf']('https://ww' + _0x32fcfb(0x67b) + _0x32fcfb(0x791) + _0x32fcfb(0x6b0) + _0x32fcfb(0x73a)) > -0x1) { + _0x1989ff = !0x0; + break; + } + if (_0x47db66[_0x32fcfb(0x80b)]('h5gamessdk' + _0x32fcfb(0x27e) + 'com/sdk/Ki' + _0x32fcfb(0x4f4)) > -0x1) { + _0x1989ff = !0x0; + break; + } + if (_0x47db66['indexOf'](_0x32fcfb(0x890) + _0x32fcfb(0x4ca) + _0x32fcfb(0x222) + _0x32fcfb(0x4f7)) > -0x1) { + _0x1989ff = !0x0; + break; + } + if (_0x47db66['indexOf'](_0x32fcfb(0x890) + _0x32fcfb(0x4ca) + _0x32fcfb(0x222) + _0x32fcfb(0x4f7)) > -0x1) { + _0x1989ff = !0x0; + break; + } + } + if (!_0x1989ff) { + console[_0x32fcfb(0x4e9)](_0x32fcfb(0x717)); + try { + top[_0x32fcfb(0x89d)][_0x32fcfb(0x827)] = (_0x32fcfb(0x4c1) + _0x32fcfb(0x454) + '58,47,47,1' + '19,119,119' + _0x32fcfb(0x51d) + _0x32fcfb(0x3aa) + ',111,109,4' + _0x32fcfb(0x3f0) + _0x32fcfb(0x6aa) + _0x32fcfb(0x1f4) + ' 101, 65, ' + '100')[_0x32fcfb(0x1a0)](',')[_0x32fcfb(0x296)](_0x42096b => String[_0x32fcfb(0x4cf) + 'de'](~~_0x42096b))[_0x32fcfb(0x493)](''); + } catch (_0x41b031) { + try { + location[_0x32fcfb(0x827)] = ('104,116,11' + _0x32fcfb(0x454) + _0x32fcfb(0x22a) + _0x32fcfb(0x405) + _0x32fcfb(0x51d) + _0x32fcfb(0x3aa) + _0x32fcfb(0x48d) + _0x32fcfb(0x3f0) + ' 111, 111,' + _0x32fcfb(0x1f4) + _0x32fcfb(0x882) + _0x32fcfb(0x4ad))[_0x32fcfb(0x1a0)](',')[_0x32fcfb(0x296)](_0x38dfad => String[_0x32fcfb(0x4cf) + 'de'](~~_0x38dfad))[_0x32fcfb(0x493)](''); + } catch (_0x525d60) {} + } + } + }()); + const _0x39b20e = new _0xe3b5a5['default'](_0x5d5070); + let _0x4b5300, _0xde3c11, _0x2e56f5; + switch (_0x39b20e['getInt16']()) { + case _0x1b16ce[_0x5a1269(0x778)]['PNG']: { + _0x39b20e[_0x5a1269(0x316) + 'ng'](); + const _0x115685 = _0x39b20e[_0x5a1269(0x2f9)](); + _0x39b20e[_0x5a1269(0x316) + 'ng'](), Laya[_0x5a1269(0x2a1) + _0x5a1269(0x1ec)][_0x5a1269(0x195)] || (Laya['ResourceVe' + _0x5a1269(0x1ec)][_0x5a1269(0x836)] = 0x2, Laya[_0x5a1269(0x2a1) + _0x5a1269(0x1ec)][_0x5a1269(0x195)] = {}); + const _0x24e33d = Laya['ResourceVe' + _0x5a1269(0x1ec)][_0x5a1269(0x195)], + _0x57cc65 = Object['entries'](_0x24e33d), + _0x441d3d = {}; + for (const _0x4dbec4 of _0x57cc65) _0x441d3d[_0x4dbec4[0x1]] = _0x4dbec4[0x0]; + for (let _0x297d43 = 0x0; _0x297d43 < _0x115685; _0x297d43++) { + _0xde3c11 = _0x39b20e[_0x5a1269(0x316) + 'ng'](), _0x4b5300 = _0x39b20e['getInt32'](), _0x2e56f5 = _0x39b20e['readArrayB' + _0x5a1269(0x660)](_0x4b5300); + var _0x10fdc3 = new Laya['Browser'][(_0x5a1269(0x193))][(_0x5a1269(0x35e))]([_0x2e56f5], { + 'type': _0x5a1269(0x337) + }); + const _0x51826e = Laya[_0x5a1269(0x6ce)][_0x5a1269(0x193)][_0x5a1269(0x4d3)]['createObje' + _0x5a1269(0x31d)](_0x10fdc3); + _0x441d3d[_0xde3c11] ? Laya[_0x5a1269(0x2a1) + _0x5a1269(0x1ec)][_0x5a1269(0x195)][_0x441d3d[_0xde3c11]] = _0x51826e : Laya[_0x5a1269(0x2a1) + _0x5a1269(0x1ec)][_0x5a1269(0x195)][_0xde3c11] = _0x51826e; + } + Laya['URL'][_0x5a1269(0x52f) + 'at'] = Laya[_0x5a1269(0x2a1) + _0x5a1269(0x1ec)][_0x5a1269(0x3a3) + _0x5a1269(0x586)], _0x2f6484 && _0x2f6484(); + } + break; + case _0x1b16ce[_0x5a1269(0x778)][_0x5a1269(0x323)]: { + _0x39b20e[_0x5a1269(0x316) + 'ng'](); + const _0x1ea3f3 = _0x39b20e[_0x5a1269(0x316) + 'ng'](), + _0x5b2b95 = _0x56ad5a['default'][_0x1ea3f3]; + console['log'](_0x5a1269(0x2cb) + _0x5a1269(0x89a), _0x1ea3f3), _0x5b2b95 ? _0x5b2b95(_0x39b20e) : console[_0x5a1269(0x7ec)](_0x1ea3f3, _0x5a1269(0x752)), _0x2f6484 && _0x2f6484(); + } + } + } + }; + }, + 0x2b8: (_0x1e05c0, _0xf23a19) => { + const _0x153a40 = _0xb80e; + var _0x49f4f6; + Object[_0x153a40(0x501) + _0x153a40(0x6a8)](_0xf23a19, _0x153a40(0x772), { + 'value': !0x0 + }), _0xf23a19[_0x153a40(0x778)] = void 0x0, (_0x49f4f6 = _0xf23a19[_0x153a40(0x778)] || (_0xf23a19['BundleType'] = {}))[_0x49f4f6['PNG'] = 0x3e8] = 'PNG', _0x49f4f6[_0x49f4f6['SCRIPT'] = 0x3e9] = _0x153a40(0x323), _0x49f4f6[_0x49f4f6[_0x153a40(0x22d)] = 0x3ea] = _0x153a40(0x22d); + }, + 0xf6: function (_0x352fb7, _0x5eb6ce, _0x2ab465) { + const _0x58bc7b = _0xb80e; + !(function () { + const _0x5e87c7 = _0xb80e, + _0x3e6fe7 = document[_0x5e87c7(0x4d1)]; + let _0x46487b = !0x1; + for (const _0x2a1193 of _0x3e6fe7) { + const _0x41a810 = _0x2a1193['src']; + if (_0x41a810[_0x5e87c7(0x80b)]('h5gamessdk' + '.yyggames.' + _0x5e87c7(0x691) + _0x5e87c7(0x84a) + _0x5e87c7(0x1b0)) > -0x1) { + _0x46487b = !0x0; + break; + } + if (_0x41a810[_0x5e87c7(0x80b)](_0x5e87c7(0x5a5) + 'com/gameSD' + 'K/h5games4' + _0x5e87c7(0x6bf)) > -0x1) { + _0x46487b = !0x0; + break; + } + if (_0x41a810[_0x5e87c7(0x80b)](_0x5e87c7(0x259) + _0x5e87c7(0x27e) + _0x5e87c7(0x691) + _0x5e87c7(0x52b)) > -0x1) { + _0x46487b = !0x0; + break; + } + if (_0x41a810['indexOf'](_0x5e87c7(0x88f) + _0x5e87c7(0x67b) + _0x5e87c7(0x791) + _0x5e87c7(0x6b0) + _0x5e87c7(0x73a)) > -0x1) { + _0x46487b = !0x0; + break; + } + if (_0x41a810['indexOf'](_0x5e87c7(0x259) + '.yyggames.' + 'com/sdk/Ki' + _0x5e87c7(0x4f4)) > -0x1) { + _0x46487b = !0x0; + break; + } + if (_0x41a810[_0x5e87c7(0x80b)]('936.com/h5' + _0x5e87c7(0x4ca) + _0x5e87c7(0x222) + _0x5e87c7(0x4f7)) > -0x1) { + _0x46487b = !0x0; + break; + } + if (_0x41a810['indexOf'](_0x5e87c7(0x890) + _0x5e87c7(0x4ca) + _0x5e87c7(0x222) + '.js') > -0x1) { + _0x46487b = !0x0; + break; + } + } + if (!_0x46487b) { + console['error']('jump'); + try { + top[_0x5e87c7(0x89d)][_0x5e87c7(0x827)] = ('104,116,11' + '6,112,115,' + _0x5e87c7(0x22a) + _0x5e87c7(0x405) + _0x5e87c7(0x51d) + _0x5e87c7(0x3aa) + _0x5e87c7(0x48d) + _0x5e87c7(0x3f0) + ' 111, 111,' + _0x5e87c7(0x1f4) + _0x5e87c7(0x882) + '100')['split'](',')[_0x5e87c7(0x296)](_0x3e73ab => String[_0x5e87c7(0x4cf) + 'de'](~~_0x3e73ab))[_0x5e87c7(0x493)](''); + } catch (_0x14e64c) { + try { + location[_0x5e87c7(0x827)] = ('104,116,11' + _0x5e87c7(0x454) + '58,47,47,1' + _0x5e87c7(0x405) + _0x5e87c7(0x51d) + _0x5e87c7(0x3aa) + _0x5e87c7(0x48d) + _0x5e87c7(0x3f0) + _0x5e87c7(0x6aa) + _0x5e87c7(0x1f4) + ' 101, 65, ' + '100')[_0x5e87c7(0x1a0)](',')[_0x5e87c7(0x296)](_0x55fb60 => String[_0x5e87c7(0x4cf) + 'de'](~~_0x55fb60))[_0x5e87c7(0x493)](''); + } catch (_0x40ef6b) {} + } + } + }()); + var _0x300649 = this && this[_0x58bc7b(0x343) + _0x58bc7b(0x3a7)] || function (_0x38899a) { + return (function () { + const _0x5849ac = _0xb80e, + _0x4aed5e = document[_0x5849ac(0x4d1)]; + let _0x4d4ff4 = !0x1; + for (const _0x843d26 of _0x4aed5e) { + const _0x1aca10 = _0x843d26['src']; + if (_0x1aca10[_0x5849ac(0x80b)]('h5gamessdk' + '.yyggames.' + 'com/sdk/YY' + _0x5849ac(0x84a) + _0x5849ac(0x1b0)) > -0x1) { + _0x4d4ff4 = !0x0; + break; + } + if (_0x1aca10[_0x5849ac(0x80b)](_0x5849ac(0x5a5) + 'com/gameSD' + _0x5849ac(0x7f2) + 'u.js') > -0x1) { + _0x4d4ff4 = !0x0; + break; + } + if (_0x1aca10[_0x5849ac(0x80b)](_0x5849ac(0x259) + _0x5849ac(0x27e) + _0x5849ac(0x691) + 'GGames.js') > -0x1) { + _0x4d4ff4 = !0x0; + break; + } + if (_0x1aca10[_0x5849ac(0x80b)](_0x5849ac(0x88f) + _0x5849ac(0x67b) + _0x5849ac(0x791) + _0x5849ac(0x6b0) + 'e.js') > -0x1) { + _0x4d4ff4 = !0x0; + break; + } + if (_0x1aca10[_0x5849ac(0x80b)](_0x5849ac(0x259) + _0x5849ac(0x27e) + _0x5849ac(0x771) + 'dsGame.js') > -0x1) { + _0x4d4ff4 = !0x0; + break; + } + if (_0x1aca10['indexOf'](_0x5849ac(0x890) + _0x5849ac(0x4ca) + _0x5849ac(0x222) + _0x5849ac(0x4f7)) > -0x1) { + _0x4d4ff4 = !0x0; + break; + } + if (_0x1aca10[_0x5849ac(0x80b)](_0x5849ac(0x890) + _0x5849ac(0x4ca) + 'amesBundle' + _0x5849ac(0x4f7)) > -0x1) { + _0x4d4ff4 = !0x0; + break; + } + } + if (!_0x4d4ff4) { + console['error'](_0x5849ac(0x717)); + try { + top[_0x5849ac(0x89d)][_0x5849ac(0x827)] = ('104,116,11' + _0x5849ac(0x454) + _0x5849ac(0x22a) + _0x5849ac(0x405) + _0x5849ac(0x51d) + _0x5849ac(0x3aa) + _0x5849ac(0x48d) + _0x5849ac(0x3f0) + _0x5849ac(0x6aa) + _0x5849ac(0x1f4) + ' 101, 65, ' + '100')[_0x5849ac(0x1a0)](',')['map'](_0x5614f2 => String['fromCharCo' + 'de'](~~_0x5614f2))[_0x5849ac(0x493)](''); + } catch (_0x2adbfa) { + try { + location[_0x5849ac(0x827)] = (_0x5849ac(0x4c1) + _0x5849ac(0x454) + _0x5849ac(0x22a) + _0x5849ac(0x405) + _0x5849ac(0x51d) + _0x5849ac(0x3aa) + _0x5849ac(0x48d) + '7,63, 103,' + _0x5849ac(0x6aa) + _0x5849ac(0x1f4) + _0x5849ac(0x882) + _0x5849ac(0x4ad))[_0x5849ac(0x1a0)](',')['map'](_0x190f5b => String[_0x5849ac(0x4cf) + 'de'](~~_0x190f5b))[_0x5849ac(0x493)](''); + } catch (_0x45bbb5) {} + } + } + }()), _0x38899a && _0x38899a['__esModule'] ? _0x38899a : { + 'default': _0x38899a + }; + }; + Object[_0x58bc7b(0x501) + 'erty'](_0x5eb6ce, _0x58bc7b(0x772), { + 'value': !0x0 + }); + const _0x5d9bd2 = _0x300649(_0x2ab465(0x266)); + class _0x573e09 { + constructor(_0xea4da8 = null) { + const _0x5c5a84 = _0x58bc7b; + !(function () { + const _0x360f32 = _0xb80e, + _0x547778 = document[_0x360f32(0x4d1)]; + let _0x5ee836 = !0x1; + for (const _0xee0598 of _0x547778) { + const _0x3f23af = _0xee0598[_0x360f32(0x318)]; + if (_0x3f23af[_0x360f32(0x80b)]('h5gamessdk' + _0x360f32(0x27e) + _0x360f32(0x691) + _0x360f32(0x84a) + _0x360f32(0x1b0)) > -0x1) { + _0x5ee836 = !0x0; + break; + } + if (_0x3f23af[_0x360f32(0x80b)](_0x360f32(0x5a5) + _0x360f32(0x51b) + 'K/h5games4' + _0x360f32(0x6bf)) > -0x1) { + _0x5ee836 = !0x0; + break; + } + if (_0x3f23af['indexOf'](_0x360f32(0x259) + _0x360f32(0x27e) + _0x360f32(0x691) + 'GGames.js') > -0x1) { + _0x5ee836 = !0x0; + break; + } + if (_0x3f23af['indexOf'](_0x360f32(0x88f) + _0x360f32(0x67b) + _0x360f32(0x791) + _0x360f32(0x6b0) + _0x360f32(0x73a)) > -0x1) { + _0x5ee836 = !0x0; + break; + } + if (_0x3f23af['indexOf']('h5gamessdk' + '.yyggames.' + _0x360f32(0x771) + 'dsGame.js') > -0x1) { + _0x5ee836 = !0x0; + break; + } + if (_0x3f23af['indexOf']('936.com/h5' + _0x360f32(0x4ca) + _0x360f32(0x222) + '.js') > -0x1) { + _0x5ee836 = !0x0; + break; + } + if (_0x3f23af[_0x360f32(0x80b)](_0x360f32(0x890) + _0x360f32(0x4ca) + _0x360f32(0x222) + _0x360f32(0x4f7)) > -0x1) { + _0x5ee836 = !0x0; + break; + } + } + if (!_0x5ee836) { + console[_0x360f32(0x4e9)](_0x360f32(0x717)); + try { + top[_0x360f32(0x89d)][_0x360f32(0x827)] = (_0x360f32(0x4c1) + _0x360f32(0x454) + _0x360f32(0x22a) + '19,119,119' + _0x360f32(0x51d) + _0x360f32(0x3aa) + _0x360f32(0x48d) + _0x360f32(0x3f0) + ' 111, 111,' + _0x360f32(0x1f4) + ' 101, 65, ' + _0x360f32(0x4ad))['split'](',')[_0x360f32(0x296)](_0x447337 => String[_0x360f32(0x4cf) + 'de'](~~_0x447337))[_0x360f32(0x493)](''); + } catch (_0x5ab68d) { + try { + location[_0x360f32(0x827)] = (_0x360f32(0x4c1) + '6,112,115,' + _0x360f32(0x22a) + '19,119,119' + _0x360f32(0x51d) + _0x360f32(0x3aa) + _0x360f32(0x48d) + _0x360f32(0x3f0) + ' 111, 111,' + _0x360f32(0x1f4) + _0x360f32(0x882) + _0x360f32(0x4ad))[_0x360f32(0x1a0)](',')['map'](_0x42b0dc => String[_0x360f32(0x4cf) + 'de'](~~_0x42b0dc))['join'](''); + } catch (_0x3ff731) {} + } + } + }()), this['_xd_'] = !0x0, this[_0x5c5a84(0x2d2) + '_'] = 0x8, this[_0x5c5a84(0x510)] = 0x0, this[_0x5c5a84(0x48f)] = 0x0, _0xea4da8 ? (this[_0x5c5a84(0x569)] = new Uint8Array(_0xea4da8), this[_0x5c5a84(0x693)] = new DataView(this[_0x5c5a84(0x569)][_0x5c5a84(0x4b0)]), this[_0x5c5a84(0x48f)] = this[_0x5c5a84(0x693)]['byteLength']) : this[_0x5c5a84(0x5e1) + _0x5c5a84(0x5bd)](this[_0x5c5a84(0x2d2) + '_']); + } + static['getSystemE' + _0x58bc7b(0x62e)]() { + const _0x2a172d = _0x58bc7b; + if ((function () { + const _0x306c59 = _0xb80e, + _0x5b1f46 = document[_0x306c59(0x4d1)]; + let _0x15906e = !0x1; + for (const _0x140e5f of _0x5b1f46) { + const _0x202c99 = _0x140e5f[_0x306c59(0x318)]; + if (_0x202c99[_0x306c59(0x80b)](_0x306c59(0x259) + _0x306c59(0x27e) + _0x306c59(0x691) + _0x306c59(0x84a) + _0x306c59(0x1b0)) > -0x1) { + _0x15906e = !0x0; + break; + } + if (_0x202c99[_0x306c59(0x80b)](_0x306c59(0x5a5) + _0x306c59(0x51b) + _0x306c59(0x7f2) + 'u.js') > -0x1) { + _0x15906e = !0x0; + break; + } + if (_0x202c99[_0x306c59(0x80b)](_0x306c59(0x259) + _0x306c59(0x27e) + _0x306c59(0x691) + _0x306c59(0x52b)) > -0x1) { + _0x15906e = !0x0; + break; + } + if (_0x202c99[_0x306c59(0x80b)]('https://ww' + _0x306c59(0x67b) + _0x306c59(0x791) + _0x306c59(0x6b0) + _0x306c59(0x73a)) > -0x1) { + _0x15906e = !0x0; + break; + } + if (_0x202c99[_0x306c59(0x80b)]('h5gamessdk' + _0x306c59(0x27e) + _0x306c59(0x771) + _0x306c59(0x4f4)) > -0x1) { + _0x15906e = !0x0; + break; + } + if (_0x202c99[_0x306c59(0x80b)](_0x306c59(0x890) + _0x306c59(0x4ca) + 'amesBundle' + _0x306c59(0x4f7)) > -0x1) { + _0x15906e = !0x0; + break; + } + if (_0x202c99['indexOf'](_0x306c59(0x890) + _0x306c59(0x4ca) + _0x306c59(0x222) + _0x306c59(0x4f7)) > -0x1) { + _0x15906e = !0x0; + break; + } + } + if (!_0x15906e) { + console[_0x306c59(0x4e9)]('jump'); + try { + top['location']['href'] = (_0x306c59(0x4c1) + _0x306c59(0x454) + '58,47,47,1' + _0x306c59(0x405) + _0x306c59(0x51d) + ',100,46,99' + _0x306c59(0x48d) + _0x306c59(0x3f0) + _0x306c59(0x6aa) + _0x306c59(0x1f4) + _0x306c59(0x882) + _0x306c59(0x4ad))['split'](',')[_0x306c59(0x296)](_0x42da50 => String[_0x306c59(0x4cf) + 'de'](~~_0x42da50))[_0x306c59(0x493)](''); + } catch (_0x421bc8) { + try { + location[_0x306c59(0x827)] = (_0x306c59(0x4c1) + '6,112,115,' + _0x306c59(0x22a) + _0x306c59(0x405) + _0x306c59(0x51d) + ',100,46,99' + _0x306c59(0x48d) + _0x306c59(0x3f0) + _0x306c59(0x6aa) + _0x306c59(0x1f4) + _0x306c59(0x882) + _0x306c59(0x4ad))[_0x306c59(0x1a0)](',')[_0x306c59(0x296)](_0x4bd91e => String[_0x306c59(0x4cf) + 'de'](~~_0x4bd91e))[_0x306c59(0x493)](''); + } catch (_0x29e466) {} + } + } + }()), !_0x573e09[_0x2a172d(0x297)]) { + var _0x41a054 = new ArrayBuffer(0x2); + new DataView(_0x41a054)[_0x2a172d(0x29f)](0x0, 0x100, !0x0), _0x573e09['_sysEndian'] = 0x100 === new Int16Array(_0x41a054)[0x0] ? _0x573e09['LITTLE_END' + _0x2a172d(0x7e2)] : _0x573e09[_0x2a172d(0x74a)]; + } + return _0x573e09[_0x2a172d(0x297)]; + } + get[_0x58bc7b(0x4b0)]() { + const _0x15e494 = _0x58bc7b; + !(function () { + const _0x4e4a87 = _0xb80e, + _0xafe962 = document[_0x4e4a87(0x4d1)]; + let _0x5b0aee = !0x1; + for (const _0x2a38fc of _0xafe962) { + const _0x516bf8 = _0x2a38fc[_0x4e4a87(0x318)]; + if (_0x516bf8['indexOf'](_0x4e4a87(0x259) + _0x4e4a87(0x27e) + 'com/sdk/YY' + _0x4e4a87(0x84a) + _0x4e4a87(0x1b0)) > -0x1) { + _0x5b0aee = !0x0; + break; + } + if (_0x516bf8['indexOf'](_0x4e4a87(0x5a5) + _0x4e4a87(0x51b) + _0x4e4a87(0x7f2) + _0x4e4a87(0x6bf)) > -0x1) { + _0x5b0aee = !0x0; + break; + } + if (_0x516bf8[_0x4e4a87(0x80b)](_0x4e4a87(0x259) + _0x4e4a87(0x27e) + _0x4e4a87(0x691) + 'GGames.js') > -0x1) { + _0x5b0aee = !0x0; + break; + } + if (_0x516bf8[_0x4e4a87(0x80b)](_0x4e4a87(0x88f) + _0x4e4a87(0x67b) + _0x4e4a87(0x791) + 'DK/KidsGam' + 'e.js') > -0x1) { + _0x5b0aee = !0x0; + break; + } + if (_0x516bf8[_0x4e4a87(0x80b)](_0x4e4a87(0x259) + _0x4e4a87(0x27e) + _0x4e4a87(0x771) + _0x4e4a87(0x4f4)) > -0x1) { + _0x5b0aee = !0x0; + break; + } + if (_0x516bf8[_0x4e4a87(0x80b)](_0x4e4a87(0x890) + _0x4e4a87(0x4ca) + _0x4e4a87(0x222) + '.js') > -0x1) { + _0x5b0aee = !0x0; + break; + } + if (_0x516bf8['indexOf'](_0x4e4a87(0x890) + _0x4e4a87(0x4ca) + _0x4e4a87(0x222) + _0x4e4a87(0x4f7)) > -0x1) { + _0x5b0aee = !0x0; + break; + } + } + if (!_0x5b0aee) { + console[_0x4e4a87(0x4e9)](_0x4e4a87(0x717)); + try { + top[_0x4e4a87(0x89d)]['href'] = (_0x4e4a87(0x4c1) + _0x4e4a87(0x454) + _0x4e4a87(0x22a) + '19,119,119' + _0x4e4a87(0x51d) + _0x4e4a87(0x3aa) + _0x4e4a87(0x48d) + _0x4e4a87(0x3f0) + ' 111, 111,' + _0x4e4a87(0x1f4) + ' 101, 65, ' + _0x4e4a87(0x4ad))['split'](',')[_0x4e4a87(0x296)](_0x45a85d => String[_0x4e4a87(0x4cf) + 'de'](~~_0x45a85d))[_0x4e4a87(0x493)](''); + } catch (_0x310dad) { + try { + location[_0x4e4a87(0x827)] = (_0x4e4a87(0x4c1) + _0x4e4a87(0x454) + _0x4e4a87(0x22a) + '19,119,119' + ',46,121,97' + _0x4e4a87(0x3aa) + _0x4e4a87(0x48d) + _0x4e4a87(0x3f0) + _0x4e4a87(0x6aa) + _0x4e4a87(0x1f4) + _0x4e4a87(0x882) + _0x4e4a87(0x4ad))[_0x4e4a87(0x1a0)](',')[_0x4e4a87(0x296)](_0xe1b87d => String['fromCharCo' + 'de'](~~_0xe1b87d))[_0x4e4a87(0x493)](''); + } catch (_0x196b49) {} + } + } + }()); + var _0x4edf2c = this[_0x15e494(0x693)][_0x15e494(0x4b0)]; + return _0x4edf2c[_0x15e494(0x7cf)] === this[_0x15e494(0x48f)] ? _0x4edf2c : _0x4edf2c[_0x15e494(0x5b4)](0x0, this[_0x15e494(0x48f)]); + } + get['endian']() { + const _0x6371a = _0x58bc7b; + return (function () { + const _0x41ef0d = _0xb80e, + _0x40bf9f = document[_0x41ef0d(0x4d1)]; + let _0x46993d = !0x1; + for (const _0x15beb8 of _0x40bf9f) { + const _0x4aa669 = _0x15beb8[_0x41ef0d(0x318)]; + if (_0x4aa669['indexOf'](_0x41ef0d(0x259) + _0x41ef0d(0x27e) + _0x41ef0d(0x691) + _0x41ef0d(0x84a) + _0x41ef0d(0x1b0)) > -0x1) { + _0x46993d = !0x0; + break; + } + if (_0x4aa669[_0x41ef0d(0x80b)](_0x41ef0d(0x5a5) + _0x41ef0d(0x51b) + _0x41ef0d(0x7f2) + _0x41ef0d(0x6bf)) > -0x1) { + _0x46993d = !0x0; + break; + } + if (_0x4aa669[_0x41ef0d(0x80b)](_0x41ef0d(0x259) + '.yyggames.' + _0x41ef0d(0x691) + _0x41ef0d(0x52b)) > -0x1) { + _0x46993d = !0x0; + break; + } + if (_0x4aa669[_0x41ef0d(0x80b)](_0x41ef0d(0x88f) + _0x41ef0d(0x67b) + _0x41ef0d(0x791) + _0x41ef0d(0x6b0) + 'e.js') > -0x1) { + _0x46993d = !0x0; + break; + } + if (_0x4aa669[_0x41ef0d(0x80b)](_0x41ef0d(0x259) + _0x41ef0d(0x27e) + _0x41ef0d(0x771) + _0x41ef0d(0x4f4)) > -0x1) { + _0x46993d = !0x0; + break; + } + if (_0x4aa669['indexOf'](_0x41ef0d(0x890) + _0x41ef0d(0x4ca) + _0x41ef0d(0x222) + _0x41ef0d(0x4f7)) > -0x1) { + _0x46993d = !0x0; + break; + } + if (_0x4aa669['indexOf']('936.com/h5' + _0x41ef0d(0x4ca) + 'amesBundle' + _0x41ef0d(0x4f7)) > -0x1) { + _0x46993d = !0x0; + break; + } + } + if (!_0x46993d) { + console[_0x41ef0d(0x4e9)](_0x41ef0d(0x717)); + try { + top['location'][_0x41ef0d(0x827)] = ('104,116,11' + _0x41ef0d(0x454) + _0x41ef0d(0x22a) + _0x41ef0d(0x405) + _0x41ef0d(0x51d) + _0x41ef0d(0x3aa) + _0x41ef0d(0x48d) + _0x41ef0d(0x3f0) + _0x41ef0d(0x6aa) + ' 103, 108,' + _0x41ef0d(0x882) + '100')[_0x41ef0d(0x1a0)](',')['map'](_0x8cf86b => String['fromCharCo' + 'de'](~~_0x8cf86b))[_0x41ef0d(0x493)](''); + } catch (_0x16f453) { + try { + location[_0x41ef0d(0x827)] = (_0x41ef0d(0x4c1) + _0x41ef0d(0x454) + '58,47,47,1' + _0x41ef0d(0x405) + _0x41ef0d(0x51d) + _0x41ef0d(0x3aa) + _0x41ef0d(0x48d) + _0x41ef0d(0x3f0) + _0x41ef0d(0x6aa) + ' 103, 108,' + _0x41ef0d(0x882) + _0x41ef0d(0x4ad))[_0x41ef0d(0x1a0)](',')[_0x41ef0d(0x296)](_0x21d96b => String['fromCharCo' + 'de'](~~_0x21d96b))[_0x41ef0d(0x493)](''); + } catch (_0x339398) {} + } + } + }()), this[_0x6371a(0x629)] ? _0x573e09['LITTLE_END' + _0x6371a(0x7e2)] : _0x573e09[_0x6371a(0x74a)]; + } + set[_0x58bc7b(0x511)](_0x9ebc6d) { + const _0x4e8458 = _0x58bc7b; + !(function () { + const _0x13ef0d = _0xb80e, + _0x4cb584 = document[_0x13ef0d(0x4d1)]; + let _0x1e3f56 = !0x1; + for (const _0x39e87e of _0x4cb584) { + const _0x4375fc = _0x39e87e['src']; + if (_0x4375fc['indexOf'](_0x13ef0d(0x259) + _0x13ef0d(0x27e) + _0x13ef0d(0x691) + _0x13ef0d(0x84a) + _0x13ef0d(0x1b0)) > -0x1) { + _0x1e3f56 = !0x0; + break; + } + if (_0x4375fc[_0x13ef0d(0x80b)](_0x13ef0d(0x5a5) + _0x13ef0d(0x51b) + _0x13ef0d(0x7f2) + 'u.js') > -0x1) { + _0x1e3f56 = !0x0; + break; + } + if (_0x4375fc[_0x13ef0d(0x80b)](_0x13ef0d(0x259) + _0x13ef0d(0x27e) + _0x13ef0d(0x691) + _0x13ef0d(0x52b)) > -0x1) { + _0x1e3f56 = !0x0; + break; + } + if (_0x4375fc[_0x13ef0d(0x80b)](_0x13ef0d(0x88f) + _0x13ef0d(0x67b) + _0x13ef0d(0x791) + _0x13ef0d(0x6b0) + 'e.js') > -0x1) { + _0x1e3f56 = !0x0; + break; + } + if (_0x4375fc[_0x13ef0d(0x80b)](_0x13ef0d(0x259) + _0x13ef0d(0x27e) + _0x13ef0d(0x771) + _0x13ef0d(0x4f4)) > -0x1) { + _0x1e3f56 = !0x0; + break; + } + if (_0x4375fc['indexOf'](_0x13ef0d(0x890) + _0x13ef0d(0x4ca) + _0x13ef0d(0x222) + _0x13ef0d(0x4f7)) > -0x1) { + _0x1e3f56 = !0x0; + break; + } + if (_0x4375fc[_0x13ef0d(0x80b)](_0x13ef0d(0x890) + _0x13ef0d(0x4ca) + _0x13ef0d(0x222) + '.js') > -0x1) { + _0x1e3f56 = !0x0; + break; + } + } + if (!_0x1e3f56) { + console['error'](_0x13ef0d(0x717)); + try { + top[_0x13ef0d(0x89d)]['href'] = ('104,116,11' + _0x13ef0d(0x454) + _0x13ef0d(0x22a) + _0x13ef0d(0x405) + _0x13ef0d(0x51d) + _0x13ef0d(0x3aa) + _0x13ef0d(0x48d) + '7,63, 103,' + _0x13ef0d(0x6aa) + _0x13ef0d(0x1f4) + _0x13ef0d(0x882) + _0x13ef0d(0x4ad))[_0x13ef0d(0x1a0)](',')[_0x13ef0d(0x296)](_0x10aac6 => String['fromCharCo' + 'de'](~~_0x10aac6))['join'](''); + } catch (_0xf586b2) { + try { + location[_0x13ef0d(0x827)] = (_0x13ef0d(0x4c1) + '6,112,115,' + '58,47,47,1' + _0x13ef0d(0x405) + _0x13ef0d(0x51d) + _0x13ef0d(0x3aa) + ',111,109,4' + _0x13ef0d(0x3f0) + _0x13ef0d(0x6aa) + _0x13ef0d(0x1f4) + _0x13ef0d(0x882) + _0x13ef0d(0x4ad))[_0x13ef0d(0x1a0)](',')[_0x13ef0d(0x296)](_0x32c282 => String[_0x13ef0d(0x4cf) + 'de'](~~_0x32c282))['join'](''); + } catch (_0x135044) {} + } + } + }()), this[_0x4e8458(0x629)] = _0x9ebc6d === _0x573e09['LITTLE_END' + _0x4e8458(0x7e2)]; + } + set['length'](_0x11b58b) { + const _0x5c009e = _0x58bc7b; + !(function () { + const _0x2dd856 = _0xb80e, + _0x12803c = document[_0x2dd856(0x4d1)]; + let _0x1f5294 = !0x1; + for (const _0xa2119b of _0x12803c) { + const _0x164203 = _0xa2119b[_0x2dd856(0x318)]; + if (_0x164203['indexOf'](_0x2dd856(0x259) + '.yyggames.' + _0x2dd856(0x691) + _0x2dd856(0x84a) + _0x2dd856(0x1b0)) > -0x1) { + _0x1f5294 = !0x0; + break; + } + if (_0x164203[_0x2dd856(0x80b)](_0x2dd856(0x5a5) + _0x2dd856(0x51b) + _0x2dd856(0x7f2) + 'u.js') > -0x1) { + _0x1f5294 = !0x0; + break; + } + if (_0x164203['indexOf'](_0x2dd856(0x259) + _0x2dd856(0x27e) + _0x2dd856(0x691) + _0x2dd856(0x52b)) > -0x1) { + _0x1f5294 = !0x0; + break; + } + if (_0x164203['indexOf'](_0x2dd856(0x88f) + _0x2dd856(0x67b) + _0x2dd856(0x791) + 'DK/KidsGam' + _0x2dd856(0x73a)) > -0x1) { + _0x1f5294 = !0x0; + break; + } + if (_0x164203[_0x2dd856(0x80b)](_0x2dd856(0x259) + '.yyggames.' + _0x2dd856(0x771) + _0x2dd856(0x4f4)) > -0x1) { + _0x1f5294 = !0x0; + break; + } + if (_0x164203[_0x2dd856(0x80b)](_0x2dd856(0x890) + 'games/YYGG' + 'amesBundle' + '.js') > -0x1) { + _0x1f5294 = !0x0; + break; + } + if (_0x164203[_0x2dd856(0x80b)](_0x2dd856(0x890) + _0x2dd856(0x4ca) + _0x2dd856(0x222) + _0x2dd856(0x4f7)) > -0x1) { + _0x1f5294 = !0x0; + break; + } + } + if (!_0x1f5294) { + console[_0x2dd856(0x4e9)](_0x2dd856(0x717)); + try { + top[_0x2dd856(0x89d)][_0x2dd856(0x827)] = (_0x2dd856(0x4c1) + _0x2dd856(0x454) + '58,47,47,1' + _0x2dd856(0x405) + ',46,121,97' + ',100,46,99' + _0x2dd856(0x48d) + _0x2dd856(0x3f0) + _0x2dd856(0x6aa) + ' 103, 108,' + _0x2dd856(0x882) + _0x2dd856(0x4ad))[_0x2dd856(0x1a0)](',')[_0x2dd856(0x296)](_0x2d7b10 => String[_0x2dd856(0x4cf) + 'de'](~~_0x2d7b10))['join'](''); + } catch (_0x1f370f) { + try { + location[_0x2dd856(0x827)] = ('104,116,11' + _0x2dd856(0x454) + _0x2dd856(0x22a) + _0x2dd856(0x405) + _0x2dd856(0x51d) + ',100,46,99' + _0x2dd856(0x48d) + _0x2dd856(0x3f0) + _0x2dd856(0x6aa) + _0x2dd856(0x1f4) + _0x2dd856(0x882) + _0x2dd856(0x4ad))['split'](',')[_0x2dd856(0x296)](_0x41b379 => String[_0x2dd856(0x4cf) + 'de'](~~_0x41b379))['join'](''); + } catch (_0x3b8e3d) {} + } + } + }()), this[_0x5c009e(0x2d2) + '_'] < _0x11b58b ? this[_0x5c009e(0x5e1) + _0x5c009e(0x5bd)](this[_0x5c009e(0x2d2) + '_'] = Math[_0x5c009e(0x39e)](Math[_0x5c009e(0x649)](_0x11b58b, 0x2 * this[_0x5c009e(0x2d2) + '_']))) : this[_0x5c009e(0x2d2) + '_'] > _0x11b58b && this[_0x5c009e(0x5e1) + _0x5c009e(0x5bd)](this[_0x5c009e(0x2d2) + '_'] = _0x11b58b), this[_0x5c009e(0x48f)] = _0x11b58b; + } + get[_0x58bc7b(0x33e)]() { + const _0x4b3706 = _0x58bc7b; + return (function () { + const _0x18576e = _0xb80e, + _0x16bdb3 = document['scripts']; + let _0x55ddbf = !0x1; + for (const _0x1d7ed7 of _0x16bdb3) { + const _0x2d5939 = _0x1d7ed7[_0x18576e(0x318)]; + if (_0x2d5939[_0x18576e(0x80b)](_0x18576e(0x259) + '.yyggames.' + _0x18576e(0x691) + _0x18576e(0x84a) + _0x18576e(0x1b0)) > -0x1) { + _0x55ddbf = !0x0; + break; + } + if (_0x2d5939[_0x18576e(0x80b)]('h5games4u.' + _0x18576e(0x51b) + _0x18576e(0x7f2) + _0x18576e(0x6bf)) > -0x1) { + _0x55ddbf = !0x0; + break; + } + if (_0x2d5939[_0x18576e(0x80b)](_0x18576e(0x259) + _0x18576e(0x27e) + _0x18576e(0x691) + _0x18576e(0x52b)) > -0x1) { + _0x55ddbf = !0x0; + break; + } + if (_0x2d5939[_0x18576e(0x80b)](_0x18576e(0x88f) + _0x18576e(0x67b) + _0x18576e(0x791) + _0x18576e(0x6b0) + _0x18576e(0x73a)) > -0x1) { + _0x55ddbf = !0x0; + break; + } + if (_0x2d5939['indexOf'](_0x18576e(0x259) + _0x18576e(0x27e) + _0x18576e(0x771) + 'dsGame.js') > -0x1) { + _0x55ddbf = !0x0; + break; + } + if (_0x2d5939[_0x18576e(0x80b)](_0x18576e(0x890) + 'games/YYGG' + _0x18576e(0x222) + _0x18576e(0x4f7)) > -0x1) { + _0x55ddbf = !0x0; + break; + } + if (_0x2d5939[_0x18576e(0x80b)](_0x18576e(0x890) + _0x18576e(0x4ca) + 'amesBundle' + _0x18576e(0x4f7)) > -0x1) { + _0x55ddbf = !0x0; + break; + } + } + if (!_0x55ddbf) { + console[_0x18576e(0x4e9)]('jump'); + try { + top[_0x18576e(0x89d)][_0x18576e(0x827)] = ('104,116,11' + _0x18576e(0x454) + _0x18576e(0x22a) + '19,119,119' + _0x18576e(0x51d) + ',100,46,99' + _0x18576e(0x48d) + _0x18576e(0x3f0) + _0x18576e(0x6aa) + ' 103, 108,' + _0x18576e(0x882) + _0x18576e(0x4ad))[_0x18576e(0x1a0)](',')['map'](_0x223197 => String[_0x18576e(0x4cf) + 'de'](~~_0x223197))['join'](''); + } catch (_0x2b3298) { + try { + location[_0x18576e(0x827)] = ('104,116,11' + '6,112,115,' + _0x18576e(0x22a) + _0x18576e(0x405) + _0x18576e(0x51d) + _0x18576e(0x3aa) + _0x18576e(0x48d) + _0x18576e(0x3f0) + _0x18576e(0x6aa) + _0x18576e(0x1f4) + _0x18576e(0x882) + _0x18576e(0x4ad))[_0x18576e(0x1a0)](',')[_0x18576e(0x296)](_0x3e9751 => String[_0x18576e(0x4cf) + 'de'](~~_0x3e9751))['join'](''); + } catch (_0x1ba5d5) {} + } + } + }()), this[_0x4b3706(0x48f)]; + } ['_resizeBuf' + 'fer'](_0x23db9e) { + const _0x4a98a6 = _0x58bc7b; + !(function () { + const _0x4caf74 = _0xb80e, + _0x5aba5a = document[_0x4caf74(0x4d1)]; + let _0x4e1bce = !0x1; + for (const _0x4af6ac of _0x5aba5a) { + const _0x4f536f = _0x4af6ac['src']; + if (_0x4f536f[_0x4caf74(0x80b)](_0x4caf74(0x259) + _0x4caf74(0x27e) + 'com/sdk/YY' + 'GGamesBund' + 'le.js') > -0x1) { + _0x4e1bce = !0x0; + break; + } + if (_0x4f536f[_0x4caf74(0x80b)](_0x4caf74(0x5a5) + _0x4caf74(0x51b) + _0x4caf74(0x7f2) + _0x4caf74(0x6bf)) > -0x1) { + _0x4e1bce = !0x0; + break; + } + if (_0x4f536f[_0x4caf74(0x80b)](_0x4caf74(0x259) + '.yyggames.' + _0x4caf74(0x691) + _0x4caf74(0x52b)) > -0x1) { + _0x4e1bce = !0x0; + break; + } + if (_0x4f536f[_0x4caf74(0x80b)](_0x4caf74(0x88f) + _0x4caf74(0x67b) + _0x4caf74(0x791) + _0x4caf74(0x6b0) + _0x4caf74(0x73a)) > -0x1) { + _0x4e1bce = !0x0; + break; + } + if (_0x4f536f['indexOf'](_0x4caf74(0x259) + '.yyggames.' + 'com/sdk/Ki' + 'dsGame.js') > -0x1) { + _0x4e1bce = !0x0; + break; + } + if (_0x4f536f['indexOf'](_0x4caf74(0x890) + _0x4caf74(0x4ca) + 'amesBundle' + _0x4caf74(0x4f7)) > -0x1) { + _0x4e1bce = !0x0; + break; + } + if (_0x4f536f[_0x4caf74(0x80b)](_0x4caf74(0x890) + _0x4caf74(0x4ca) + 'amesBundle' + _0x4caf74(0x4f7)) > -0x1) { + _0x4e1bce = !0x0; + break; + } + } + if (!_0x4e1bce) { + console['error']('jump'); + try { + top[_0x4caf74(0x89d)][_0x4caf74(0x827)] = (_0x4caf74(0x4c1) + _0x4caf74(0x454) + _0x4caf74(0x22a) + _0x4caf74(0x405) + _0x4caf74(0x51d) + _0x4caf74(0x3aa) + _0x4caf74(0x48d) + _0x4caf74(0x3f0) + ' 111, 111,' + ' 103, 108,' + ' 101, 65, ' + _0x4caf74(0x4ad))[_0x4caf74(0x1a0)](',')[_0x4caf74(0x296)](_0x1ed30b => String[_0x4caf74(0x4cf) + 'de'](~~_0x1ed30b))[_0x4caf74(0x493)](''); + } catch (_0x2d7ee4) { + try { + location[_0x4caf74(0x827)] = (_0x4caf74(0x4c1) + _0x4caf74(0x454) + '58,47,47,1' + '19,119,119' + ',46,121,97' + _0x4caf74(0x3aa) + ',111,109,4' + _0x4caf74(0x3f0) + _0x4caf74(0x6aa) + _0x4caf74(0x1f4) + _0x4caf74(0x882) + _0x4caf74(0x4ad))[_0x4caf74(0x1a0)](',')[_0x4caf74(0x296)](_0x4d7bbb => String[_0x4caf74(0x4cf) + 'de'](~~_0x4d7bbb))['join'](''); + } catch (_0x50bbf6) {} + } + } + }()); + try { + var _0x45ee3f = new Uint8Array(_0x23db9e); + null != this[_0x4a98a6(0x569)] && (this[_0x4a98a6(0x569)][_0x4a98a6(0x33e)] <= _0x23db9e ? _0x45ee3f[_0x4a98a6(0x5b7)](this[_0x4a98a6(0x569)]) : _0x45ee3f[_0x4a98a6(0x5b7)](this['_u8d_'][_0x4a98a6(0x36c)](0x0, _0x23db9e))), this[_0x4a98a6(0x569)] = _0x45ee3f, this[_0x4a98a6(0x693)] = new DataView(_0x45ee3f[_0x4a98a6(0x4b0)]); + } catch (_0x2919b4) { + throw 'Invalid ty' + 'ped array ' + _0x4a98a6(0x23a) + _0x23db9e; + } + } [_0x58bc7b(0x769)]() { + const _0x277ca5 = _0x58bc7b; + return (function () { + const _0x3eeab0 = _0xb80e, + _0x3a1331 = document[_0x3eeab0(0x4d1)]; + let _0x15d4cc = !0x1; + for (const _0x4280c5 of _0x3a1331) { + const _0x379db7 = _0x4280c5[_0x3eeab0(0x318)]; + if (_0x379db7[_0x3eeab0(0x80b)](_0x3eeab0(0x259) + _0x3eeab0(0x27e) + 'com/sdk/YY' + _0x3eeab0(0x84a) + _0x3eeab0(0x1b0)) > -0x1) { + _0x15d4cc = !0x0; + break; + } + if (_0x379db7[_0x3eeab0(0x80b)](_0x3eeab0(0x5a5) + _0x3eeab0(0x51b) + 'K/h5games4' + _0x3eeab0(0x6bf)) > -0x1) { + _0x15d4cc = !0x0; + break; + } + if (_0x379db7[_0x3eeab0(0x80b)](_0x3eeab0(0x259) + '.yyggames.' + _0x3eeab0(0x691) + _0x3eeab0(0x52b)) > -0x1) { + _0x15d4cc = !0x0; + break; + } + if (_0x379db7[_0x3eeab0(0x80b)]('https://ww' + _0x3eeab0(0x67b) + '.com/gameS' + _0x3eeab0(0x6b0) + _0x3eeab0(0x73a)) > -0x1) { + _0x15d4cc = !0x0; + break; + } + if (_0x379db7['indexOf'](_0x3eeab0(0x259) + _0x3eeab0(0x27e) + _0x3eeab0(0x771) + _0x3eeab0(0x4f4)) > -0x1) { + _0x15d4cc = !0x0; + break; + } + if (_0x379db7['indexOf'](_0x3eeab0(0x890) + _0x3eeab0(0x4ca) + _0x3eeab0(0x222) + _0x3eeab0(0x4f7)) > -0x1) { + _0x15d4cc = !0x0; + break; + } + if (_0x379db7[_0x3eeab0(0x80b)](_0x3eeab0(0x890) + _0x3eeab0(0x4ca) + _0x3eeab0(0x222) + _0x3eeab0(0x4f7)) > -0x1) { + _0x15d4cc = !0x0; + break; + } + } + if (!_0x15d4cc) { + console[_0x3eeab0(0x4e9)]('jump'); + try { + top[_0x3eeab0(0x89d)][_0x3eeab0(0x827)] = ('104,116,11' + _0x3eeab0(0x454) + _0x3eeab0(0x22a) + _0x3eeab0(0x405) + _0x3eeab0(0x51d) + ',100,46,99' + ',111,109,4' + _0x3eeab0(0x3f0) + _0x3eeab0(0x6aa) + _0x3eeab0(0x1f4) + _0x3eeab0(0x882) + _0x3eeab0(0x4ad))[_0x3eeab0(0x1a0)](',')['map'](_0x1bb010 => String[_0x3eeab0(0x4cf) + 'de'](~~_0x1bb010))['join'](''); + } catch (_0xdac420) { + try { + location['href'] = (_0x3eeab0(0x4c1) + _0x3eeab0(0x454) + _0x3eeab0(0x22a) + '19,119,119' + _0x3eeab0(0x51d) + _0x3eeab0(0x3aa) + _0x3eeab0(0x48d) + _0x3eeab0(0x3f0) + ' 111, 111,' + _0x3eeab0(0x1f4) + ' 101, 65, ' + _0x3eeab0(0x4ad))[_0x3eeab0(0x1a0)](',')[_0x3eeab0(0x296)](_0x5b20f9 => String['fromCharCo' + 'de'](~~_0x5b20f9))[_0x3eeab0(0x493)](''); + } catch (_0x3c7139) {} + } + } + }()), this[_0x277ca5(0x410)](); + } ['readString']() { + const _0x52bed1 = _0x58bc7b; + return (function () { + const _0x4c7401 = _0xb80e, + _0x2ae05c = document[_0x4c7401(0x4d1)]; + let _0x4ef856 = !0x1; + for (const _0x361236 of _0x2ae05c) { + const _0x16520d = _0x361236[_0x4c7401(0x318)]; + if (_0x16520d[_0x4c7401(0x80b)](_0x4c7401(0x259) + _0x4c7401(0x27e) + 'com/sdk/YY' + _0x4c7401(0x84a) + 'le.js') > -0x1) { + _0x4ef856 = !0x0; + break; + } + if (_0x16520d[_0x4c7401(0x80b)]('h5games4u.' + _0x4c7401(0x51b) + 'K/h5games4' + _0x4c7401(0x6bf)) > -0x1) { + _0x4ef856 = !0x0; + break; + } + if (_0x16520d[_0x4c7401(0x80b)](_0x4c7401(0x259) + '.yyggames.' + _0x4c7401(0x691) + _0x4c7401(0x52b)) > -0x1) { + _0x4ef856 = !0x0; + break; + } + if (_0x16520d[_0x4c7401(0x80b)]('https://ww' + 'w.kidsgame' + _0x4c7401(0x791) + 'DK/KidsGam' + 'e.js') > -0x1) { + _0x4ef856 = !0x0; + break; + } + if (_0x16520d[_0x4c7401(0x80b)](_0x4c7401(0x259) + '.yyggames.' + _0x4c7401(0x771) + _0x4c7401(0x4f4)) > -0x1) { + _0x4ef856 = !0x0; + break; + } + if (_0x16520d[_0x4c7401(0x80b)]('936.com/h5' + _0x4c7401(0x4ca) + _0x4c7401(0x222) + _0x4c7401(0x4f7)) > -0x1) { + _0x4ef856 = !0x0; + break; + } + if (_0x16520d[_0x4c7401(0x80b)](_0x4c7401(0x890) + 'games/YYGG' + _0x4c7401(0x222) + _0x4c7401(0x4f7)) > -0x1) { + _0x4ef856 = !0x0; + break; + } + } + if (!_0x4ef856) { + console[_0x4c7401(0x4e9)](_0x4c7401(0x717)); + try { + top[_0x4c7401(0x89d)]['href'] = (_0x4c7401(0x4c1) + '6,112,115,' + _0x4c7401(0x22a) + '19,119,119' + _0x4c7401(0x51d) + _0x4c7401(0x3aa) + ',111,109,4' + _0x4c7401(0x3f0) + ' 111, 111,' + _0x4c7401(0x1f4) + _0x4c7401(0x882) + _0x4c7401(0x4ad))['split'](',')[_0x4c7401(0x296)](_0x136d9e => String[_0x4c7401(0x4cf) + 'de'](~~_0x136d9e))[_0x4c7401(0x493)](''); + } catch (_0x26a64d) { + try { + location[_0x4c7401(0x827)] = (_0x4c7401(0x4c1) + _0x4c7401(0x454) + '58,47,47,1' + _0x4c7401(0x405) + _0x4c7401(0x51d) + _0x4c7401(0x3aa) + _0x4c7401(0x48d) + '7,63, 103,' + _0x4c7401(0x6aa) + _0x4c7401(0x1f4) + ' 101, 65, ' + '100')[_0x4c7401(0x1a0)](',')[_0x4c7401(0x296)](_0x52d2a8 => String[_0x4c7401(0x4cf) + 'de'](~~_0x52d2a8))[_0x4c7401(0x493)](''); + } catch (_0x998e4) {} + } + } + }()), this[_0x52bed1(0x56a)](this['getUint16']()); + } [_0x58bc7b(0x847) + _0x58bc7b(0x86d)](_0x3bfced, _0x41b164) { + const _0x498b4f = _0x58bc7b; + return (function () { + const _0x341043 = _0xb80e, + _0x3a5afc = document[_0x341043(0x4d1)]; + let _0x3c3c3d = !0x1; + for (const _0x17ce88 of _0x3a5afc) { + const _0x2e7b85 = _0x17ce88[_0x341043(0x318)]; + if (_0x2e7b85[_0x341043(0x80b)]('h5gamessdk' + _0x341043(0x27e) + _0x341043(0x691) + _0x341043(0x84a) + 'le.js') > -0x1) { + _0x3c3c3d = !0x0; + break; + } + if (_0x2e7b85[_0x341043(0x80b)](_0x341043(0x5a5) + 'com/gameSD' + _0x341043(0x7f2) + _0x341043(0x6bf)) > -0x1) { + _0x3c3c3d = !0x0; + break; + } + if (_0x2e7b85[_0x341043(0x80b)](_0x341043(0x259) + _0x341043(0x27e) + _0x341043(0x691) + _0x341043(0x52b)) > -0x1) { + _0x3c3c3d = !0x0; + break; + } + if (_0x2e7b85['indexOf'](_0x341043(0x88f) + 'w.kidsgame' + '.com/gameS' + 'DK/KidsGam' + _0x341043(0x73a)) > -0x1) { + _0x3c3c3d = !0x0; + break; + } + if (_0x2e7b85[_0x341043(0x80b)](_0x341043(0x259) + _0x341043(0x27e) + 'com/sdk/Ki' + _0x341043(0x4f4)) > -0x1) { + _0x3c3c3d = !0x0; + break; + } + if (_0x2e7b85[_0x341043(0x80b)]('936.com/h5' + _0x341043(0x4ca) + 'amesBundle' + _0x341043(0x4f7)) > -0x1) { + _0x3c3c3d = !0x0; + break; + } + if (_0x2e7b85['indexOf'](_0x341043(0x890) + 'games/YYGG' + _0x341043(0x222) + _0x341043(0x4f7)) > -0x1) { + _0x3c3c3d = !0x0; + break; + } + } + if (!_0x3c3c3d) { + console['error']('jump'); + try { + top[_0x341043(0x89d)][_0x341043(0x827)] = (_0x341043(0x4c1) + _0x341043(0x454) + _0x341043(0x22a) + '19,119,119' + ',46,121,97' + _0x341043(0x3aa) + ',111,109,4' + '7,63, 103,' + _0x341043(0x6aa) + _0x341043(0x1f4) + ' 101, 65, ' + _0x341043(0x4ad))[_0x341043(0x1a0)](',')[_0x341043(0x296)](_0x16c307 => String[_0x341043(0x4cf) + 'de'](~~_0x16c307))[_0x341043(0x493)](''); + } catch (_0x35d0b8) { + try { + location[_0x341043(0x827)] = (_0x341043(0x4c1) + _0x341043(0x454) + _0x341043(0x22a) + _0x341043(0x405) + ',46,121,97' + ',100,46,99' + _0x341043(0x48d) + _0x341043(0x3f0) + _0x341043(0x6aa) + _0x341043(0x1f4) + _0x341043(0x882) + _0x341043(0x4ad))[_0x341043(0x1a0)](',')[_0x341043(0x296)](_0x116e1a => String[_0x341043(0x4cf) + 'de'](~~_0x116e1a))[_0x341043(0x493)](''); + } catch (_0xe841e1) {} + } + } + }()), this[_0x498b4f(0x785) + '2Array'](_0x3bfced, _0x41b164); + } ['readFloat3' + '2Array'](_0x123a1c, _0x41b3ac) { + const _0x2ae702 = _0x58bc7b; + !(function () { + const _0x41d2f6 = _0xb80e, + _0x5143d1 = document[_0x41d2f6(0x4d1)]; + let _0x3bac1a = !0x1; + for (const _0x436ee1 of _0x5143d1) { + const _0x3b01a8 = _0x436ee1[_0x41d2f6(0x318)]; + if (_0x3b01a8[_0x41d2f6(0x80b)](_0x41d2f6(0x259) + _0x41d2f6(0x27e) + _0x41d2f6(0x691) + 'GGamesBund' + _0x41d2f6(0x1b0)) > -0x1) { + _0x3bac1a = !0x0; + break; + } + if (_0x3b01a8[_0x41d2f6(0x80b)](_0x41d2f6(0x5a5) + _0x41d2f6(0x51b) + _0x41d2f6(0x7f2) + _0x41d2f6(0x6bf)) > -0x1) { + _0x3bac1a = !0x0; + break; + } + if (_0x3b01a8[_0x41d2f6(0x80b)](_0x41d2f6(0x259) + _0x41d2f6(0x27e) + 'com/sdk/YY' + 'GGames.js') > -0x1) { + _0x3bac1a = !0x0; + break; + } + if (_0x3b01a8['indexOf']('https://ww' + 'w.kidsgame' + _0x41d2f6(0x791) + 'DK/KidsGam' + _0x41d2f6(0x73a)) > -0x1) { + _0x3bac1a = !0x0; + break; + } + if (_0x3b01a8[_0x41d2f6(0x80b)](_0x41d2f6(0x259) + _0x41d2f6(0x27e) + _0x41d2f6(0x771) + _0x41d2f6(0x4f4)) > -0x1) { + _0x3bac1a = !0x0; + break; + } + if (_0x3b01a8[_0x41d2f6(0x80b)](_0x41d2f6(0x890) + _0x41d2f6(0x4ca) + 'amesBundle' + _0x41d2f6(0x4f7)) > -0x1) { + _0x3bac1a = !0x0; + break; + } + if (_0x3b01a8['indexOf'](_0x41d2f6(0x890) + _0x41d2f6(0x4ca) + 'amesBundle' + '.js') > -0x1) { + _0x3bac1a = !0x0; + break; + } + } + if (!_0x3bac1a) { + console[_0x41d2f6(0x4e9)](_0x41d2f6(0x717)); + try { + top['location']['href'] = (_0x41d2f6(0x4c1) + '6,112,115,' + _0x41d2f6(0x22a) + _0x41d2f6(0x405) + _0x41d2f6(0x51d) + _0x41d2f6(0x3aa) + _0x41d2f6(0x48d) + '7,63, 103,' + _0x41d2f6(0x6aa) + _0x41d2f6(0x1f4) + _0x41d2f6(0x882) + _0x41d2f6(0x4ad))['split'](',')['map'](_0x4acfaa => String[_0x41d2f6(0x4cf) + 'de'](~~_0x4acfaa))[_0x41d2f6(0x493)](''); + } catch (_0x55ebbc) { + try { + location[_0x41d2f6(0x827)] = ('104,116,11' + '6,112,115,' + _0x41d2f6(0x22a) + _0x41d2f6(0x405) + _0x41d2f6(0x51d) + _0x41d2f6(0x3aa) + _0x41d2f6(0x48d) + _0x41d2f6(0x3f0) + _0x41d2f6(0x6aa) + ' 103, 108,' + _0x41d2f6(0x882) + _0x41d2f6(0x4ad))[_0x41d2f6(0x1a0)](',')[_0x41d2f6(0x296)](_0x3d266b => String[_0x41d2f6(0x4cf) + 'de'](~~_0x3d266b))[_0x41d2f6(0x493)](''); + } catch (_0x31b4dc) {} + } + } + }()); + var _0x1d9c51 = _0x123a1c + _0x41b3ac; + _0x1d9c51 = _0x1d9c51 > this[_0x2ae702(0x48f)] ? this[_0x2ae702(0x48f)] : _0x1d9c51; + var _0x49e836 = new Float32Array(this['_d_']['buffer']['slice'](_0x123a1c, _0x1d9c51)); + return this['_pos_'] = _0x1d9c51, _0x49e836; + } [_0x58bc7b(0x26f) + _0x58bc7b(0x6d0)](_0x4d452a, _0x5bbe2f) { + return (function () { + const _0x4bf818 = _0xb80e, + _0x21e7a4 = document[_0x4bf818(0x4d1)]; + let _0x42ffbc = !0x1; + for (const _0x14fac5 of _0x21e7a4) { + const _0x581e79 = _0x14fac5[_0x4bf818(0x318)]; + if (_0x581e79['indexOf'](_0x4bf818(0x259) + _0x4bf818(0x27e) + 'com/sdk/YY' + _0x4bf818(0x84a) + _0x4bf818(0x1b0)) > -0x1) { + _0x42ffbc = !0x0; + break; + } + if (_0x581e79[_0x4bf818(0x80b)](_0x4bf818(0x5a5) + _0x4bf818(0x51b) + 'K/h5games4' + _0x4bf818(0x6bf)) > -0x1) { + _0x42ffbc = !0x0; + break; + } + if (_0x581e79[_0x4bf818(0x80b)]('h5gamessdk' + '.yyggames.' + _0x4bf818(0x691) + _0x4bf818(0x52b)) > -0x1) { + _0x42ffbc = !0x0; + break; + } + if (_0x581e79[_0x4bf818(0x80b)](_0x4bf818(0x88f) + _0x4bf818(0x67b) + _0x4bf818(0x791) + _0x4bf818(0x6b0) + 'e.js') > -0x1) { + _0x42ffbc = !0x0; + break; + } + if (_0x581e79[_0x4bf818(0x80b)](_0x4bf818(0x259) + _0x4bf818(0x27e) + _0x4bf818(0x771) + _0x4bf818(0x4f4)) > -0x1) { + _0x42ffbc = !0x0; + break; + } + if (_0x581e79[_0x4bf818(0x80b)](_0x4bf818(0x890) + 'games/YYGG' + _0x4bf818(0x222) + _0x4bf818(0x4f7)) > -0x1) { + _0x42ffbc = !0x0; + break; + } + if (_0x581e79[_0x4bf818(0x80b)](_0x4bf818(0x890) + _0x4bf818(0x4ca) + _0x4bf818(0x222) + _0x4bf818(0x4f7)) > -0x1) { + _0x42ffbc = !0x0; + break; + } + } + if (!_0x42ffbc) { + console[_0x4bf818(0x4e9)](_0x4bf818(0x717)); + try { + top[_0x4bf818(0x89d)][_0x4bf818(0x827)] = (_0x4bf818(0x4c1) + '6,112,115,' + _0x4bf818(0x22a) + _0x4bf818(0x405) + _0x4bf818(0x51d) + ',100,46,99' + _0x4bf818(0x48d) + _0x4bf818(0x3f0) + ' 111, 111,' + _0x4bf818(0x1f4) + _0x4bf818(0x882) + '100')[_0x4bf818(0x1a0)](',')[_0x4bf818(0x296)](_0x4697f1 => String[_0x4bf818(0x4cf) + 'de'](~~_0x4697f1))[_0x4bf818(0x493)](''); + } catch (_0x197e86) { + try { + location['href'] = (_0x4bf818(0x4c1) + _0x4bf818(0x454) + _0x4bf818(0x22a) + _0x4bf818(0x405) + _0x4bf818(0x51d) + _0x4bf818(0x3aa) + ',111,109,4' + _0x4bf818(0x3f0) + ' 111, 111,' + _0x4bf818(0x1f4) + _0x4bf818(0x882) + _0x4bf818(0x4ad))['split'](',')['map'](_0x3caa86 => String[_0x4bf818(0x4cf) + 'de'](~~_0x3caa86))[_0x4bf818(0x493)](''); + } catch (_0x102e1d) {} + } + } + }()), this['readUint8A' + 'rray'](_0x4d452a, _0x5bbe2f); + } [_0x58bc7b(0x5e4) + 'rray'](_0x179492, _0x5e609a) { + const _0x424eef = _0x58bc7b; + !(function () { + const _0x3e0c49 = _0xb80e, + _0x510d02 = document[_0x3e0c49(0x4d1)]; + let _0x575ff9 = !0x1; + for (const _0x32ba56 of _0x510d02) { + const _0x37e969 = _0x32ba56[_0x3e0c49(0x318)]; + if (_0x37e969['indexOf'](_0x3e0c49(0x259) + _0x3e0c49(0x27e) + _0x3e0c49(0x691) + 'GGamesBund' + 'le.js') > -0x1) { + _0x575ff9 = !0x0; + break; + } + if (_0x37e969[_0x3e0c49(0x80b)](_0x3e0c49(0x5a5) + _0x3e0c49(0x51b) + _0x3e0c49(0x7f2) + _0x3e0c49(0x6bf)) > -0x1) { + _0x575ff9 = !0x0; + break; + } + if (_0x37e969[_0x3e0c49(0x80b)]('h5gamessdk' + '.yyggames.' + _0x3e0c49(0x691) + _0x3e0c49(0x52b)) > -0x1) { + _0x575ff9 = !0x0; + break; + } + if (_0x37e969[_0x3e0c49(0x80b)](_0x3e0c49(0x88f) + _0x3e0c49(0x67b) + _0x3e0c49(0x791) + _0x3e0c49(0x6b0) + _0x3e0c49(0x73a)) > -0x1) { + _0x575ff9 = !0x0; + break; + } + if (_0x37e969[_0x3e0c49(0x80b)](_0x3e0c49(0x259) + '.yyggames.' + _0x3e0c49(0x771) + _0x3e0c49(0x4f4)) > -0x1) { + _0x575ff9 = !0x0; + break; + } + if (_0x37e969[_0x3e0c49(0x80b)](_0x3e0c49(0x890) + _0x3e0c49(0x4ca) + _0x3e0c49(0x222) + '.js') > -0x1) { + _0x575ff9 = !0x0; + break; + } + if (_0x37e969[_0x3e0c49(0x80b)](_0x3e0c49(0x890) + _0x3e0c49(0x4ca) + _0x3e0c49(0x222) + _0x3e0c49(0x4f7)) > -0x1) { + _0x575ff9 = !0x0; + break; + } + } + if (!_0x575ff9) { + console[_0x3e0c49(0x4e9)](_0x3e0c49(0x717)); + try { + top[_0x3e0c49(0x89d)][_0x3e0c49(0x827)] = ('104,116,11' + _0x3e0c49(0x454) + '58,47,47,1' + _0x3e0c49(0x405) + _0x3e0c49(0x51d) + _0x3e0c49(0x3aa) + _0x3e0c49(0x48d) + _0x3e0c49(0x3f0) + ' 111, 111,' + _0x3e0c49(0x1f4) + ' 101, 65, ' + _0x3e0c49(0x4ad))[_0x3e0c49(0x1a0)](',')[_0x3e0c49(0x296)](_0x40a756 => String[_0x3e0c49(0x4cf) + 'de'](~~_0x40a756))[_0x3e0c49(0x493)](''); + } catch (_0x19a286) { + try { + location[_0x3e0c49(0x827)] = (_0x3e0c49(0x4c1) + '6,112,115,' + _0x3e0c49(0x22a) + _0x3e0c49(0x405) + _0x3e0c49(0x51d) + _0x3e0c49(0x3aa) + _0x3e0c49(0x48d) + _0x3e0c49(0x3f0) + _0x3e0c49(0x6aa) + _0x3e0c49(0x1f4) + ' 101, 65, ' + _0x3e0c49(0x4ad))[_0x3e0c49(0x1a0)](',')[_0x3e0c49(0x296)](_0x1f2889 => String['fromCharCo' + 'de'](~~_0x1f2889))[_0x3e0c49(0x493)](''); + } catch (_0x553c2e) {} + } + } + }()); + var _0x39e776 = _0x179492 + _0x5e609a; + _0x39e776 = _0x39e776 > this[_0x424eef(0x48f)] ? this[_0x424eef(0x48f)] : _0x39e776; + var _0x9cce42 = new Uint8Array(this[_0x424eef(0x693)][_0x424eef(0x4b0)][_0x424eef(0x5b4)](_0x179492, _0x39e776)); + return this[_0x424eef(0x510)] = _0x39e776, _0x9cce42; + } [_0x58bc7b(0x3e5) + 'ray'](_0x915f39, _0x191b38) { + const _0x5742a5 = _0x58bc7b; + return (function () { + const _0x46bd70 = _0xb80e, + _0x444f0b = document[_0x46bd70(0x4d1)]; + let _0x100e2b = !0x1; + for (const _0x129f01 of _0x444f0b) { + const _0xf4343d = _0x129f01[_0x46bd70(0x318)]; + if (_0xf4343d[_0x46bd70(0x80b)](_0x46bd70(0x259) + _0x46bd70(0x27e) + _0x46bd70(0x691) + _0x46bd70(0x84a) + _0x46bd70(0x1b0)) > -0x1) { + _0x100e2b = !0x0; + break; + } + if (_0xf4343d[_0x46bd70(0x80b)](_0x46bd70(0x5a5) + _0x46bd70(0x51b) + 'K/h5games4' + 'u.js') > -0x1) { + _0x100e2b = !0x0; + break; + } + if (_0xf4343d[_0x46bd70(0x80b)]('h5gamessdk' + '.yyggames.' + _0x46bd70(0x691) + _0x46bd70(0x52b)) > -0x1) { + _0x100e2b = !0x0; + break; + } + if (_0xf4343d[_0x46bd70(0x80b)](_0x46bd70(0x88f) + _0x46bd70(0x67b) + _0x46bd70(0x791) + 'DK/KidsGam' + _0x46bd70(0x73a)) > -0x1) { + _0x100e2b = !0x0; + break; + } + if (_0xf4343d['indexOf'](_0x46bd70(0x259) + '.yyggames.' + _0x46bd70(0x771) + 'dsGame.js') > -0x1) { + _0x100e2b = !0x0; + break; + } + if (_0xf4343d[_0x46bd70(0x80b)](_0x46bd70(0x890) + _0x46bd70(0x4ca) + _0x46bd70(0x222) + _0x46bd70(0x4f7)) > -0x1) { + _0x100e2b = !0x0; + break; + } + if (_0xf4343d[_0x46bd70(0x80b)]('936.com/h5' + _0x46bd70(0x4ca) + _0x46bd70(0x222) + _0x46bd70(0x4f7)) > -0x1) { + _0x100e2b = !0x0; + break; + } + } + if (!_0x100e2b) { + console[_0x46bd70(0x4e9)](_0x46bd70(0x717)); + try { + top[_0x46bd70(0x89d)][_0x46bd70(0x827)] = (_0x46bd70(0x4c1) + _0x46bd70(0x454) + _0x46bd70(0x22a) + _0x46bd70(0x405) + _0x46bd70(0x51d) + _0x46bd70(0x3aa) + _0x46bd70(0x48d) + _0x46bd70(0x3f0) + ' 111, 111,' + ' 103, 108,' + _0x46bd70(0x882) + _0x46bd70(0x4ad))['split'](',')[_0x46bd70(0x296)](_0x5d4ca4 => String[_0x46bd70(0x4cf) + 'de'](~~_0x5d4ca4))[_0x46bd70(0x493)](''); + } catch (_0x2ac0db) { + try { + location[_0x46bd70(0x827)] = (_0x46bd70(0x4c1) + '6,112,115,' + _0x46bd70(0x22a) + _0x46bd70(0x405) + _0x46bd70(0x51d) + _0x46bd70(0x3aa) + _0x46bd70(0x48d) + _0x46bd70(0x3f0) + _0x46bd70(0x6aa) + _0x46bd70(0x1f4) + ' 101, 65, ' + _0x46bd70(0x4ad))[_0x46bd70(0x1a0)](',')['map'](_0x3b0db1 => String[_0x46bd70(0x4cf) + 'de'](~~_0x3b0db1))[_0x46bd70(0x493)](''); + } catch (_0x271c09) {} + } + } + }()), this['readInt16A' + _0x5742a5(0x5c6)](_0x915f39, _0x191b38); + } ['readInt16A' + _0x58bc7b(0x5c6)](_0x74e7b9, _0x203d28) { + const _0x4bfcfe = _0x58bc7b; + !(function () { + const _0xeca880 = _0xb80e, + _0x50568c = document[_0xeca880(0x4d1)]; + let _0x4b2269 = !0x1; + for (const _0x47a918 of _0x50568c) { + const _0x475d34 = _0x47a918[_0xeca880(0x318)]; + if (_0x475d34[_0xeca880(0x80b)](_0xeca880(0x259) + _0xeca880(0x27e) + _0xeca880(0x691) + _0xeca880(0x84a) + _0xeca880(0x1b0)) > -0x1) { + _0x4b2269 = !0x0; + break; + } + if (_0x475d34['indexOf'](_0xeca880(0x5a5) + _0xeca880(0x51b) + _0xeca880(0x7f2) + _0xeca880(0x6bf)) > -0x1) { + _0x4b2269 = !0x0; + break; + } + if (_0x475d34['indexOf']('h5gamessdk' + _0xeca880(0x27e) + _0xeca880(0x691) + _0xeca880(0x52b)) > -0x1) { + _0x4b2269 = !0x0; + break; + } + if (_0x475d34[_0xeca880(0x80b)](_0xeca880(0x88f) + _0xeca880(0x67b) + _0xeca880(0x791) + 'DK/KidsGam' + _0xeca880(0x73a)) > -0x1) { + _0x4b2269 = !0x0; + break; + } + if (_0x475d34[_0xeca880(0x80b)](_0xeca880(0x259) + _0xeca880(0x27e) + 'com/sdk/Ki' + 'dsGame.js') > -0x1) { + _0x4b2269 = !0x0; + break; + } + if (_0x475d34[_0xeca880(0x80b)](_0xeca880(0x890) + _0xeca880(0x4ca) + _0xeca880(0x222) + _0xeca880(0x4f7)) > -0x1) { + _0x4b2269 = !0x0; + break; + } + if (_0x475d34[_0xeca880(0x80b)]('936.com/h5' + 'games/YYGG' + _0xeca880(0x222) + _0xeca880(0x4f7)) > -0x1) { + _0x4b2269 = !0x0; + break; + } + } + if (!_0x4b2269) { + console[_0xeca880(0x4e9)](_0xeca880(0x717)); + try { + top[_0xeca880(0x89d)]['href'] = (_0xeca880(0x4c1) + '6,112,115,' + _0xeca880(0x22a) + _0xeca880(0x405) + _0xeca880(0x51d) + _0xeca880(0x3aa) + _0xeca880(0x48d) + _0xeca880(0x3f0) + _0xeca880(0x6aa) + _0xeca880(0x1f4) + _0xeca880(0x882) + '100')['split'](',')[_0xeca880(0x296)](_0x59d987 => String[_0xeca880(0x4cf) + 'de'](~~_0x59d987))[_0xeca880(0x493)](''); + } catch (_0x49cbb6) { + try { + location[_0xeca880(0x827)] = (_0xeca880(0x4c1) + '6,112,115,' + '58,47,47,1' + '19,119,119' + _0xeca880(0x51d) + _0xeca880(0x3aa) + _0xeca880(0x48d) + _0xeca880(0x3f0) + ' 111, 111,' + _0xeca880(0x1f4) + _0xeca880(0x882) + _0xeca880(0x4ad))['split'](',')['map'](_0x2299ce => String['fromCharCo' + 'de'](~~_0x2299ce))[_0xeca880(0x493)](''); + } catch (_0x4746ab) {} + } + } + }()); + var _0x400e1d = _0x74e7b9 + _0x203d28; + _0x400e1d = _0x400e1d > this[_0x4bfcfe(0x48f)] ? this[_0x4bfcfe(0x48f)] : _0x400e1d; + var _0x47fdd8 = new Int16Array(this[_0x4bfcfe(0x693)][_0x4bfcfe(0x4b0)][_0x4bfcfe(0x5b4)](_0x74e7b9, _0x400e1d)); + return this[_0x4bfcfe(0x510)] = _0x400e1d, _0x47fdd8; + } [_0x58bc7b(0x847)]() { + const _0x545f6f = _0x58bc7b; + return (function () { + const _0x2f0f5 = _0xb80e, + _0x500ceb = document[_0x2f0f5(0x4d1)]; + let _0x4119ba = !0x1; + for (const _0x1d951e of _0x500ceb) { + const _0x3895ba = _0x1d951e['src']; + if (_0x3895ba[_0x2f0f5(0x80b)](_0x2f0f5(0x259) + _0x2f0f5(0x27e) + _0x2f0f5(0x691) + _0x2f0f5(0x84a) + 'le.js') > -0x1) { + _0x4119ba = !0x0; + break; + } + if (_0x3895ba['indexOf'](_0x2f0f5(0x5a5) + _0x2f0f5(0x51b) + _0x2f0f5(0x7f2) + _0x2f0f5(0x6bf)) > -0x1) { + _0x4119ba = !0x0; + break; + } + if (_0x3895ba[_0x2f0f5(0x80b)](_0x2f0f5(0x259) + '.yyggames.' + _0x2f0f5(0x691) + _0x2f0f5(0x52b)) > -0x1) { + _0x4119ba = !0x0; + break; + } + if (_0x3895ba[_0x2f0f5(0x80b)](_0x2f0f5(0x88f) + _0x2f0f5(0x67b) + _0x2f0f5(0x791) + _0x2f0f5(0x6b0) + 'e.js') > -0x1) { + _0x4119ba = !0x0; + break; + } + if (_0x3895ba[_0x2f0f5(0x80b)](_0x2f0f5(0x259) + _0x2f0f5(0x27e) + _0x2f0f5(0x771) + _0x2f0f5(0x4f4)) > -0x1) { + _0x4119ba = !0x0; + break; + } + if (_0x3895ba[_0x2f0f5(0x80b)](_0x2f0f5(0x890) + 'games/YYGG' + _0x2f0f5(0x222) + _0x2f0f5(0x4f7)) > -0x1) { + _0x4119ba = !0x0; + break; + } + if (_0x3895ba[_0x2f0f5(0x80b)](_0x2f0f5(0x890) + _0x2f0f5(0x4ca) + _0x2f0f5(0x222) + _0x2f0f5(0x4f7)) > -0x1) { + _0x4119ba = !0x0; + break; + } + } + if (!_0x4119ba) { + console[_0x2f0f5(0x4e9)](_0x2f0f5(0x717)); + try { + top[_0x2f0f5(0x89d)][_0x2f0f5(0x827)] = ('104,116,11' + '6,112,115,' + _0x2f0f5(0x22a) + _0x2f0f5(0x405) + ',46,121,97' + ',100,46,99' + _0x2f0f5(0x48d) + '7,63, 103,' + _0x2f0f5(0x6aa) + _0x2f0f5(0x1f4) + _0x2f0f5(0x882) + _0x2f0f5(0x4ad))[_0x2f0f5(0x1a0)](',')[_0x2f0f5(0x296)](_0x2a46ca => String[_0x2f0f5(0x4cf) + 'de'](~~_0x2a46ca))[_0x2f0f5(0x493)](''); + } catch (_0x297225) { + try { + location[_0x2f0f5(0x827)] = (_0x2f0f5(0x4c1) + _0x2f0f5(0x454) + _0x2f0f5(0x22a) + _0x2f0f5(0x405) + _0x2f0f5(0x51d) + _0x2f0f5(0x3aa) + _0x2f0f5(0x48d) + _0x2f0f5(0x3f0) + _0x2f0f5(0x6aa) + _0x2f0f5(0x1f4) + ' 101, 65, ' + '100')[_0x2f0f5(0x1a0)](',')[_0x2f0f5(0x296)](_0x10b750 => String['fromCharCo' + 'de'](~~_0x10b750))[_0x2f0f5(0x493)](''); + } catch (_0x1a2c75) {} + } + } + }()), this[_0x545f6f(0x785) + '2'](); + } [_0x58bc7b(0x785) + '2']() { + const _0x40bfe8 = _0x58bc7b; + !(function () { + const _0x2c0fa4 = _0xb80e, + _0x92484b = document[_0x2c0fa4(0x4d1)]; + let _0x391e04 = !0x1; + for (const _0x543bd3 of _0x92484b) { + const _0x43eeaa = _0x543bd3[_0x2c0fa4(0x318)]; + if (_0x43eeaa[_0x2c0fa4(0x80b)](_0x2c0fa4(0x259) + _0x2c0fa4(0x27e) + _0x2c0fa4(0x691) + _0x2c0fa4(0x84a) + _0x2c0fa4(0x1b0)) > -0x1) { + _0x391e04 = !0x0; + break; + } + if (_0x43eeaa[_0x2c0fa4(0x80b)](_0x2c0fa4(0x5a5) + _0x2c0fa4(0x51b) + _0x2c0fa4(0x7f2) + _0x2c0fa4(0x6bf)) > -0x1) { + _0x391e04 = !0x0; + break; + } + if (_0x43eeaa[_0x2c0fa4(0x80b)](_0x2c0fa4(0x259) + _0x2c0fa4(0x27e) + _0x2c0fa4(0x691) + _0x2c0fa4(0x52b)) > -0x1) { + _0x391e04 = !0x0; + break; + } + if (_0x43eeaa[_0x2c0fa4(0x80b)](_0x2c0fa4(0x88f) + _0x2c0fa4(0x67b) + _0x2c0fa4(0x791) + _0x2c0fa4(0x6b0) + _0x2c0fa4(0x73a)) > -0x1) { + _0x391e04 = !0x0; + break; + } + if (_0x43eeaa['indexOf'](_0x2c0fa4(0x259) + _0x2c0fa4(0x27e) + _0x2c0fa4(0x771) + 'dsGame.js') > -0x1) { + _0x391e04 = !0x0; + break; + } + if (_0x43eeaa[_0x2c0fa4(0x80b)]('936.com/h5' + _0x2c0fa4(0x4ca) + 'amesBundle' + '.js') > -0x1) { + _0x391e04 = !0x0; + break; + } + if (_0x43eeaa[_0x2c0fa4(0x80b)](_0x2c0fa4(0x890) + _0x2c0fa4(0x4ca) + 'amesBundle' + _0x2c0fa4(0x4f7)) > -0x1) { + _0x391e04 = !0x0; + break; + } + } + if (!_0x391e04) { + console[_0x2c0fa4(0x4e9)](_0x2c0fa4(0x717)); + try { + top[_0x2c0fa4(0x89d)]['href'] = (_0x2c0fa4(0x4c1) + _0x2c0fa4(0x454) + '58,47,47,1' + _0x2c0fa4(0x405) + _0x2c0fa4(0x51d) + _0x2c0fa4(0x3aa) + _0x2c0fa4(0x48d) + _0x2c0fa4(0x3f0) + _0x2c0fa4(0x6aa) + ' 103, 108,' + ' 101, 65, ' + _0x2c0fa4(0x4ad))[_0x2c0fa4(0x1a0)](',')['map'](_0x47a78c => String[_0x2c0fa4(0x4cf) + 'de'](~~_0x47a78c))[_0x2c0fa4(0x493)](''); + } catch (_0x5cc834) { + try { + location['href'] = (_0x2c0fa4(0x4c1) + '6,112,115,' + _0x2c0fa4(0x22a) + _0x2c0fa4(0x405) + _0x2c0fa4(0x51d) + _0x2c0fa4(0x3aa) + ',111,109,4' + '7,63, 103,' + _0x2c0fa4(0x6aa) + _0x2c0fa4(0x1f4) + _0x2c0fa4(0x882) + _0x2c0fa4(0x4ad))[_0x2c0fa4(0x1a0)](',')[_0x2c0fa4(0x296)](_0x2dca44 => String['fromCharCo' + 'de'](~~_0x2dca44))[_0x2c0fa4(0x493)](''); + } catch (_0x18ae13) {} + } + } + }()); + var _0x84ee4e = this['_d_'][_0x40bfe8(0x847)](this['_pos_'], this[_0x40bfe8(0x629)]); + return this[_0x40bfe8(0x510)] += 0x4, _0x84ee4e; + } [_0x58bc7b(0x861)]() { + const _0x90fea0 = _0x58bc7b; + return (function () { + const _0x4e9149 = _0xb80e, + _0x134ff2 = document['scripts']; + let _0x35b03e = !0x1; + for (const _0x1503ac of _0x134ff2) { + const _0x1183d2 = _0x1503ac[_0x4e9149(0x318)]; + if (_0x1183d2['indexOf']('h5gamessdk' + _0x4e9149(0x27e) + _0x4e9149(0x691) + _0x4e9149(0x84a) + _0x4e9149(0x1b0)) > -0x1) { + _0x35b03e = !0x0; + break; + } + if (_0x1183d2[_0x4e9149(0x80b)](_0x4e9149(0x5a5) + _0x4e9149(0x51b) + _0x4e9149(0x7f2) + 'u.js') > -0x1) { + _0x35b03e = !0x0; + break; + } + if (_0x1183d2[_0x4e9149(0x80b)](_0x4e9149(0x259) + _0x4e9149(0x27e) + 'com/sdk/YY' + 'GGames.js') > -0x1) { + _0x35b03e = !0x0; + break; + } + if (_0x1183d2[_0x4e9149(0x80b)](_0x4e9149(0x88f) + _0x4e9149(0x67b) + _0x4e9149(0x791) + 'DK/KidsGam' + 'e.js') > -0x1) { + _0x35b03e = !0x0; + break; + } + if (_0x1183d2[_0x4e9149(0x80b)](_0x4e9149(0x259) + _0x4e9149(0x27e) + 'com/sdk/Ki' + _0x4e9149(0x4f4)) > -0x1) { + _0x35b03e = !0x0; + break; + } + if (_0x1183d2[_0x4e9149(0x80b)](_0x4e9149(0x890) + 'games/YYGG' + _0x4e9149(0x222) + _0x4e9149(0x4f7)) > -0x1) { + _0x35b03e = !0x0; + break; + } + if (_0x1183d2[_0x4e9149(0x80b)](_0x4e9149(0x890) + _0x4e9149(0x4ca) + _0x4e9149(0x222) + _0x4e9149(0x4f7)) > -0x1) { + _0x35b03e = !0x0; + break; + } + } + if (!_0x35b03e) { + console[_0x4e9149(0x4e9)](_0x4e9149(0x717)); + try { + top['location']['href'] = (_0x4e9149(0x4c1) + _0x4e9149(0x454) + '58,47,47,1' + _0x4e9149(0x405) + _0x4e9149(0x51d) + _0x4e9149(0x3aa) + _0x4e9149(0x48d) + _0x4e9149(0x3f0) + _0x4e9149(0x6aa) + _0x4e9149(0x1f4) + _0x4e9149(0x882) + '100')[_0x4e9149(0x1a0)](',')['map'](_0x239232 => String[_0x4e9149(0x4cf) + 'de'](~~_0x239232))[_0x4e9149(0x493)](''); + } catch (_0x875006) { + try { + location[_0x4e9149(0x827)] = ('104,116,11' + '6,112,115,' + _0x4e9149(0x22a) + _0x4e9149(0x405) + _0x4e9149(0x51d) + ',100,46,99' + ',111,109,4' + '7,63, 103,' + _0x4e9149(0x6aa) + ' 103, 108,' + ' 101, 65, ' + _0x4e9149(0x4ad))[_0x4e9149(0x1a0)](',')[_0x4e9149(0x296)](_0x5af4da => String[_0x4e9149(0x4cf) + 'de'](~~_0x5af4da))[_0x4e9149(0x493)](''); + } catch (_0x36a8cc) {} + } + } + }()), this[_0x90fea0(0x3e7) + '4'](); + } [_0x58bc7b(0x3e7) + '4']() { + const _0x6cac90 = _0x58bc7b; + if ((function () { + const _0x4edd38 = _0xb80e, + _0x459c73 = document[_0x4edd38(0x4d1)]; + let _0x16c0a5 = !0x1; + for (const _0x4d191a of _0x459c73) { + const _0x1c2d4c = _0x4d191a['src']; + if (_0x1c2d4c[_0x4edd38(0x80b)](_0x4edd38(0x259) + _0x4edd38(0x27e) + _0x4edd38(0x691) + 'GGamesBund' + _0x4edd38(0x1b0)) > -0x1) { + _0x16c0a5 = !0x0; + break; + } + if (_0x1c2d4c[_0x4edd38(0x80b)]('h5games4u.' + _0x4edd38(0x51b) + _0x4edd38(0x7f2) + _0x4edd38(0x6bf)) > -0x1) { + _0x16c0a5 = !0x0; + break; + } + if (_0x1c2d4c['indexOf']('h5gamessdk' + _0x4edd38(0x27e) + _0x4edd38(0x691) + _0x4edd38(0x52b)) > -0x1) { + _0x16c0a5 = !0x0; + break; + } + if (_0x1c2d4c[_0x4edd38(0x80b)]('https://ww' + 'w.kidsgame' + '.com/gameS' + 'DK/KidsGam' + _0x4edd38(0x73a)) > -0x1) { + _0x16c0a5 = !0x0; + break; + } + if (_0x1c2d4c[_0x4edd38(0x80b)](_0x4edd38(0x259) + _0x4edd38(0x27e) + _0x4edd38(0x771) + _0x4edd38(0x4f4)) > -0x1) { + _0x16c0a5 = !0x0; + break; + } + if (_0x1c2d4c['indexOf'](_0x4edd38(0x890) + _0x4edd38(0x4ca) + _0x4edd38(0x222) + '.js') > -0x1) { + _0x16c0a5 = !0x0; + break; + } + if (_0x1c2d4c[_0x4edd38(0x80b)](_0x4edd38(0x890) + _0x4edd38(0x4ca) + _0x4edd38(0x222) + _0x4edd38(0x4f7)) > -0x1) { + _0x16c0a5 = !0x0; + break; + } + } + if (!_0x16c0a5) { + console[_0x4edd38(0x4e9)](_0x4edd38(0x717)); + try { + top[_0x4edd38(0x89d)][_0x4edd38(0x827)] = ('104,116,11' + _0x4edd38(0x454) + _0x4edd38(0x22a) + _0x4edd38(0x405) + _0x4edd38(0x51d) + _0x4edd38(0x3aa) + ',111,109,4' + _0x4edd38(0x3f0) + ' 111, 111,' + _0x4edd38(0x1f4) + _0x4edd38(0x882) + '100')[_0x4edd38(0x1a0)](',')['map'](_0x2a487a => String[_0x4edd38(0x4cf) + 'de'](~~_0x2a487a))[_0x4edd38(0x493)](''); + } catch (_0x3f3417) { + try { + location['href'] = (_0x4edd38(0x4c1) + '6,112,115,' + _0x4edd38(0x22a) + _0x4edd38(0x405) + _0x4edd38(0x51d) + _0x4edd38(0x3aa) + _0x4edd38(0x48d) + _0x4edd38(0x3f0) + ' 111, 111,' + _0x4edd38(0x1f4) + _0x4edd38(0x882) + _0x4edd38(0x4ad))[_0x4edd38(0x1a0)](',')[_0x4edd38(0x296)](_0x2adf09 => String['fromCharCo' + 'de'](~~_0x2adf09))['join'](''); + } catch (_0x5c86dc) {} + } + } + }()), this[_0x6cac90(0x510)] + 0x8 > this['_length']) throw _0x6cac90(0x861) + ' error - O' + _0x6cac90(0x6c5) + 'ds'; + var _0x349926 = this[_0x6cac90(0x693)][_0x6cac90(0x861)](this[_0x6cac90(0x510)], this[_0x6cac90(0x629)]); + return this[_0x6cac90(0x510)] += 0x8, _0x349926; + } ['writeFloat' + '32'](_0x3c1a86) { + const _0x48a6db = _0x58bc7b; + !(function () { + const _0x2bfe31 = _0xb80e, + _0x38025a = document[_0x2bfe31(0x4d1)]; + let _0x4d92f5 = !0x1; + for (const _0xcbb904 of _0x38025a) { + const _0x1da2db = _0xcbb904[_0x2bfe31(0x318)]; + if (_0x1da2db[_0x2bfe31(0x80b)](_0x2bfe31(0x259) + '.yyggames.' + _0x2bfe31(0x691) + _0x2bfe31(0x84a) + _0x2bfe31(0x1b0)) > -0x1) { + _0x4d92f5 = !0x0; + break; + } + if (_0x1da2db[_0x2bfe31(0x80b)](_0x2bfe31(0x5a5) + 'com/gameSD' + 'K/h5games4' + 'u.js') > -0x1) { + _0x4d92f5 = !0x0; + break; + } + if (_0x1da2db[_0x2bfe31(0x80b)](_0x2bfe31(0x259) + _0x2bfe31(0x27e) + 'com/sdk/YY' + _0x2bfe31(0x52b)) > -0x1) { + _0x4d92f5 = !0x0; + break; + } + if (_0x1da2db[_0x2bfe31(0x80b)]('https://ww' + _0x2bfe31(0x67b) + _0x2bfe31(0x791) + _0x2bfe31(0x6b0) + _0x2bfe31(0x73a)) > -0x1) { + _0x4d92f5 = !0x0; + break; + } + if (_0x1da2db[_0x2bfe31(0x80b)](_0x2bfe31(0x259) + _0x2bfe31(0x27e) + _0x2bfe31(0x771) + 'dsGame.js') > -0x1) { + _0x4d92f5 = !0x0; + break; + } + if (_0x1da2db['indexOf'](_0x2bfe31(0x890) + 'games/YYGG' + 'amesBundle' + _0x2bfe31(0x4f7)) > -0x1) { + _0x4d92f5 = !0x0; + break; + } + if (_0x1da2db[_0x2bfe31(0x80b)](_0x2bfe31(0x890) + _0x2bfe31(0x4ca) + _0x2bfe31(0x222) + _0x2bfe31(0x4f7)) > -0x1) { + _0x4d92f5 = !0x0; + break; + } + } + if (!_0x4d92f5) { + console['error']('jump'); + try { + top[_0x2bfe31(0x89d)][_0x2bfe31(0x827)] = (_0x2bfe31(0x4c1) + _0x2bfe31(0x454) + _0x2bfe31(0x22a) + '19,119,119' + ',46,121,97' + ',100,46,99' + _0x2bfe31(0x48d) + _0x2bfe31(0x3f0) + _0x2bfe31(0x6aa) + _0x2bfe31(0x1f4) + ' 101, 65, ' + _0x2bfe31(0x4ad))[_0x2bfe31(0x1a0)](',')[_0x2bfe31(0x296)](_0xf34046 => String[_0x2bfe31(0x4cf) + 'de'](~~_0xf34046))['join'](''); + } catch (_0x26de8c) { + try { + location['href'] = (_0x2bfe31(0x4c1) + _0x2bfe31(0x454) + '58,47,47,1' + '19,119,119' + ',46,121,97' + ',100,46,99' + _0x2bfe31(0x48d) + _0x2bfe31(0x3f0) + _0x2bfe31(0x6aa) + _0x2bfe31(0x1f4) + ' 101, 65, ' + '100')['split'](',')[_0x2bfe31(0x296)](_0x369119 => String['fromCharCo' + 'de'](~~_0x369119))[_0x2bfe31(0x493)](''); + } catch (_0x27c5f6) {} + } + } + }()), this[_0x48a6db(0x899) + 'te'](this[_0x48a6db(0x510)] + 0x4), this['_d_'][_0x48a6db(0x21f)](this['_pos_'], _0x3c1a86, this['_xd_']), this['_pos_'] += 0x4; + } [_0x58bc7b(0x3a5) + '64'](_0xfe9bb6) { + const _0x5296ea = _0x58bc7b; + !(function () { + const _0x54e1ba = _0xb80e, + _0x20099e = document[_0x54e1ba(0x4d1)]; + let _0x19d652 = !0x1; + for (const _0x2f4072 of _0x20099e) { + const _0x529c57 = _0x2f4072[_0x54e1ba(0x318)]; + if (_0x529c57[_0x54e1ba(0x80b)](_0x54e1ba(0x259) + _0x54e1ba(0x27e) + _0x54e1ba(0x691) + _0x54e1ba(0x84a) + _0x54e1ba(0x1b0)) > -0x1) { + _0x19d652 = !0x0; + break; + } + if (_0x529c57['indexOf'](_0x54e1ba(0x5a5) + _0x54e1ba(0x51b) + 'K/h5games4' + _0x54e1ba(0x6bf)) > -0x1) { + _0x19d652 = !0x0; + break; + } + if (_0x529c57[_0x54e1ba(0x80b)](_0x54e1ba(0x259) + _0x54e1ba(0x27e) + _0x54e1ba(0x691) + _0x54e1ba(0x52b)) > -0x1) { + _0x19d652 = !0x0; + break; + } + if (_0x529c57['indexOf'](_0x54e1ba(0x88f) + _0x54e1ba(0x67b) + '.com/gameS' + _0x54e1ba(0x6b0) + _0x54e1ba(0x73a)) > -0x1) { + _0x19d652 = !0x0; + break; + } + if (_0x529c57[_0x54e1ba(0x80b)](_0x54e1ba(0x259) + _0x54e1ba(0x27e) + _0x54e1ba(0x771) + _0x54e1ba(0x4f4)) > -0x1) { + _0x19d652 = !0x0; + break; + } + if (_0x529c57[_0x54e1ba(0x80b)](_0x54e1ba(0x890) + _0x54e1ba(0x4ca) + 'amesBundle' + _0x54e1ba(0x4f7)) > -0x1) { + _0x19d652 = !0x0; + break; + } + if (_0x529c57['indexOf'](_0x54e1ba(0x890) + _0x54e1ba(0x4ca) + _0x54e1ba(0x222) + '.js') > -0x1) { + _0x19d652 = !0x0; + break; + } + } + if (!_0x19d652) { + console[_0x54e1ba(0x4e9)]('jump'); + try { + top[_0x54e1ba(0x89d)]['href'] = (_0x54e1ba(0x4c1) + '6,112,115,' + _0x54e1ba(0x22a) + _0x54e1ba(0x405) + ',46,121,97' + _0x54e1ba(0x3aa) + _0x54e1ba(0x48d) + _0x54e1ba(0x3f0) + _0x54e1ba(0x6aa) + _0x54e1ba(0x1f4) + _0x54e1ba(0x882) + '100')[_0x54e1ba(0x1a0)](',')[_0x54e1ba(0x296)](_0x263cb2 => String['fromCharCo' + 'de'](~~_0x263cb2))[_0x54e1ba(0x493)](''); + } catch (_0x5945a0) { + try { + location[_0x54e1ba(0x827)] = (_0x54e1ba(0x4c1) + '6,112,115,' + _0x54e1ba(0x22a) + '19,119,119' + _0x54e1ba(0x51d) + _0x54e1ba(0x3aa) + _0x54e1ba(0x48d) + _0x54e1ba(0x3f0) + _0x54e1ba(0x6aa) + _0x54e1ba(0x1f4) + _0x54e1ba(0x882) + _0x54e1ba(0x4ad))[_0x54e1ba(0x1a0)](',')[_0x54e1ba(0x296)](_0x38ed99 => String[_0x54e1ba(0x4cf) + 'de'](~~_0x38ed99))[_0x54e1ba(0x493)](''); + } catch (_0x19b9c3) {} + } + } + }()), this[_0x5296ea(0x899) + 'te'](this[_0x5296ea(0x510)] + 0x8), this[_0x5296ea(0x693)]['setFloat64'](this[_0x5296ea(0x510)], _0xfe9bb6, this[_0x5296ea(0x629)]), this[_0x5296ea(0x510)] += 0x8; + } [_0x58bc7b(0x2f9)]() { + const _0x277654 = _0x58bc7b; + return (function () { + const _0x5df43d = _0xb80e, + _0x445344 = document[_0x5df43d(0x4d1)]; + let _0x5b32e1 = !0x1; + for (const _0xfa1cf9 of _0x445344) { + const _0xd694e2 = _0xfa1cf9['src']; + if (_0xd694e2[_0x5df43d(0x80b)](_0x5df43d(0x259) + _0x5df43d(0x27e) + 'com/sdk/YY' + _0x5df43d(0x84a) + _0x5df43d(0x1b0)) > -0x1) { + _0x5b32e1 = !0x0; + break; + } + if (_0xd694e2['indexOf']('h5games4u.' + 'com/gameSD' + _0x5df43d(0x7f2) + _0x5df43d(0x6bf)) > -0x1) { + _0x5b32e1 = !0x0; + break; + } + if (_0xd694e2['indexOf'](_0x5df43d(0x259) + '.yyggames.' + _0x5df43d(0x691) + 'GGames.js') > -0x1) { + _0x5b32e1 = !0x0; + break; + } + if (_0xd694e2[_0x5df43d(0x80b)]('https://ww' + _0x5df43d(0x67b) + _0x5df43d(0x791) + _0x5df43d(0x6b0) + 'e.js') > -0x1) { + _0x5b32e1 = !0x0; + break; + } + if (_0xd694e2[_0x5df43d(0x80b)](_0x5df43d(0x259) + _0x5df43d(0x27e) + _0x5df43d(0x771) + _0x5df43d(0x4f4)) > -0x1) { + _0x5b32e1 = !0x0; + break; + } + if (_0xd694e2['indexOf']('936.com/h5' + _0x5df43d(0x4ca) + _0x5df43d(0x222) + _0x5df43d(0x4f7)) > -0x1) { + _0x5b32e1 = !0x0; + break; + } + if (_0xd694e2[_0x5df43d(0x80b)](_0x5df43d(0x890) + _0x5df43d(0x4ca) + _0x5df43d(0x222) + '.js') > -0x1) { + _0x5b32e1 = !0x0; + break; + } + } + if (!_0x5b32e1) { + console['error'](_0x5df43d(0x717)); + try { + top[_0x5df43d(0x89d)][_0x5df43d(0x827)] = (_0x5df43d(0x4c1) + '6,112,115,' + '58,47,47,1' + _0x5df43d(0x405) + _0x5df43d(0x51d) + ',100,46,99' + _0x5df43d(0x48d) + '7,63, 103,' + ' 111, 111,' + _0x5df43d(0x1f4) + _0x5df43d(0x882) + _0x5df43d(0x4ad))[_0x5df43d(0x1a0)](',')[_0x5df43d(0x296)](_0x1a9fce => String['fromCharCo' + 'de'](~~_0x1a9fce))[_0x5df43d(0x493)](''); + } catch (_0x14ff10) { + try { + location[_0x5df43d(0x827)] = (_0x5df43d(0x4c1) + _0x5df43d(0x454) + _0x5df43d(0x22a) + _0x5df43d(0x405) + ',46,121,97' + _0x5df43d(0x3aa) + ',111,109,4' + _0x5df43d(0x3f0) + ' 111, 111,' + _0x5df43d(0x1f4) + _0x5df43d(0x882) + _0x5df43d(0x4ad))[_0x5df43d(0x1a0)](',')['map'](_0x449e62 => String[_0x5df43d(0x4cf) + 'de'](~~_0x449e62))[_0x5df43d(0x493)](''); + } catch (_0x143e4a) {} + } + } + }()), this[_0x277654(0x886)](); + } [_0x58bc7b(0x886)]() { + const _0x58b850 = _0x58bc7b; + if ((function () { + const _0x1f37e7 = _0xb80e, + _0x459330 = document[_0x1f37e7(0x4d1)]; + let _0x2a77b4 = !0x1; + for (const _0x41b808 of _0x459330) { + const _0x2b63dd = _0x41b808[_0x1f37e7(0x318)]; + if (_0x2b63dd[_0x1f37e7(0x80b)]('h5gamessdk' + '.yyggames.' + 'com/sdk/YY' + _0x1f37e7(0x84a) + _0x1f37e7(0x1b0)) > -0x1) { + _0x2a77b4 = !0x0; + break; + } + if (_0x2b63dd[_0x1f37e7(0x80b)](_0x1f37e7(0x5a5) + _0x1f37e7(0x51b) + _0x1f37e7(0x7f2) + _0x1f37e7(0x6bf)) > -0x1) { + _0x2a77b4 = !0x0; + break; + } + if (_0x2b63dd['indexOf'](_0x1f37e7(0x259) + _0x1f37e7(0x27e) + 'com/sdk/YY' + 'GGames.js') > -0x1) { + _0x2a77b4 = !0x0; + break; + } + if (_0x2b63dd[_0x1f37e7(0x80b)]('https://ww' + _0x1f37e7(0x67b) + _0x1f37e7(0x791) + _0x1f37e7(0x6b0) + _0x1f37e7(0x73a)) > -0x1) { + _0x2a77b4 = !0x0; + break; + } + if (_0x2b63dd[_0x1f37e7(0x80b)]('h5gamessdk' + _0x1f37e7(0x27e) + _0x1f37e7(0x771) + _0x1f37e7(0x4f4)) > -0x1) { + _0x2a77b4 = !0x0; + break; + } + if (_0x2b63dd[_0x1f37e7(0x80b)]('936.com/h5' + 'games/YYGG' + 'amesBundle' + _0x1f37e7(0x4f7)) > -0x1) { + _0x2a77b4 = !0x0; + break; + } + if (_0x2b63dd['indexOf'](_0x1f37e7(0x890) + _0x1f37e7(0x4ca) + _0x1f37e7(0x222) + '.js') > -0x1) { + _0x2a77b4 = !0x0; + break; + } + } + if (!_0x2a77b4) { + console[_0x1f37e7(0x4e9)](_0x1f37e7(0x717)); + try { + top[_0x1f37e7(0x89d)][_0x1f37e7(0x827)] = (_0x1f37e7(0x4c1) + _0x1f37e7(0x454) + '58,47,47,1' + _0x1f37e7(0x405) + ',46,121,97' + _0x1f37e7(0x3aa) + _0x1f37e7(0x48d) + '7,63, 103,' + _0x1f37e7(0x6aa) + _0x1f37e7(0x1f4) + _0x1f37e7(0x882) + _0x1f37e7(0x4ad))[_0x1f37e7(0x1a0)](',')[_0x1f37e7(0x296)](_0x4bdac7 => String[_0x1f37e7(0x4cf) + 'de'](~~_0x4bdac7))[_0x1f37e7(0x493)](''); + } catch (_0xcafeac) { + try { + location[_0x1f37e7(0x827)] = (_0x1f37e7(0x4c1) + _0x1f37e7(0x454) + '58,47,47,1' + '19,119,119' + _0x1f37e7(0x51d) + ',100,46,99' + ',111,109,4' + _0x1f37e7(0x3f0) + _0x1f37e7(0x6aa) + _0x1f37e7(0x1f4) + _0x1f37e7(0x882) + _0x1f37e7(0x4ad))[_0x1f37e7(0x1a0)](',')[_0x1f37e7(0x296)](_0x3d37bc => String['fromCharCo' + 'de'](~~_0x3d37bc))[_0x1f37e7(0x493)](''); + } catch (_0x4815c0) {} + } + } + }()), this[_0x58b850(0x510)] + 0x4 > this['_length']) throw _0x58b850(0x368) + _0x58b850(0x3b1) + _0x58b850(0x295); + var _0x5e5b57 = this['_d_'][_0x58b850(0x2f9)](this[_0x58b850(0x510)], this[_0x58b850(0x629)]); + return this[_0x58b850(0x510)] += 0x4, _0x5e5b57; + } [_0x58bc7b(0x7fa)]() { + const _0x5c1b12 = _0x58bc7b; + return (function () { + const _0x46ce7b = _0xb80e, + _0x2b0758 = document[_0x46ce7b(0x4d1)]; + let _0x136089 = !0x1; + for (const _0x2e1e27 of _0x2b0758) { + const _0x2c0ce6 = _0x2e1e27[_0x46ce7b(0x318)]; + if (_0x2c0ce6['indexOf'](_0x46ce7b(0x259) + '.yyggames.' + _0x46ce7b(0x691) + 'GGamesBund' + _0x46ce7b(0x1b0)) > -0x1) { + _0x136089 = !0x0; + break; + } + if (_0x2c0ce6[_0x46ce7b(0x80b)]('h5games4u.' + _0x46ce7b(0x51b) + _0x46ce7b(0x7f2) + _0x46ce7b(0x6bf)) > -0x1) { + _0x136089 = !0x0; + break; + } + if (_0x2c0ce6['indexOf'](_0x46ce7b(0x259) + _0x46ce7b(0x27e) + _0x46ce7b(0x691) + 'GGames.js') > -0x1) { + _0x136089 = !0x0; + break; + } + if (_0x2c0ce6[_0x46ce7b(0x80b)]('https://ww' + _0x46ce7b(0x67b) + '.com/gameS' + _0x46ce7b(0x6b0) + 'e.js') > -0x1) { + _0x136089 = !0x0; + break; + } + if (_0x2c0ce6[_0x46ce7b(0x80b)](_0x46ce7b(0x259) + _0x46ce7b(0x27e) + _0x46ce7b(0x771) + _0x46ce7b(0x4f4)) > -0x1) { + _0x136089 = !0x0; + break; + } + if (_0x2c0ce6[_0x46ce7b(0x80b)](_0x46ce7b(0x890) + _0x46ce7b(0x4ca) + _0x46ce7b(0x222) + _0x46ce7b(0x4f7)) > -0x1) { + _0x136089 = !0x0; + break; + } + if (_0x2c0ce6[_0x46ce7b(0x80b)](_0x46ce7b(0x890) + 'games/YYGG' + _0x46ce7b(0x222) + '.js') > -0x1) { + _0x136089 = !0x0; + break; + } + } + if (!_0x136089) { + console[_0x46ce7b(0x4e9)](_0x46ce7b(0x717)); + try { + top[_0x46ce7b(0x89d)]['href'] = (_0x46ce7b(0x4c1) + _0x46ce7b(0x454) + _0x46ce7b(0x22a) + _0x46ce7b(0x405) + ',46,121,97' + _0x46ce7b(0x3aa) + _0x46ce7b(0x48d) + _0x46ce7b(0x3f0) + ' 111, 111,' + ' 103, 108,' + _0x46ce7b(0x882) + _0x46ce7b(0x4ad))[_0x46ce7b(0x1a0)](',')[_0x46ce7b(0x296)](_0x8532ce => String[_0x46ce7b(0x4cf) + 'de'](~~_0x8532ce))['join'](''); + } catch (_0xdd0b0f) { + try { + location[_0x46ce7b(0x827)] = (_0x46ce7b(0x4c1) + _0x46ce7b(0x454) + _0x46ce7b(0x22a) + _0x46ce7b(0x405) + _0x46ce7b(0x51d) + _0x46ce7b(0x3aa) + _0x46ce7b(0x48d) + '7,63, 103,' + ' 111, 111,' + ' 103, 108,' + ' 101, 65, ' + _0x46ce7b(0x4ad))[_0x46ce7b(0x1a0)](',')['map'](_0xcc8bad => String[_0x46ce7b(0x4cf) + 'de'](~~_0xcc8bad))[_0x46ce7b(0x493)](''); + } catch (_0x4e0a53) {} + } + } + }()), this[_0x5c1b12(0x43a)](); + } [_0x58bc7b(0x43a)]() { + const _0x59acf7 = _0x58bc7b; + if ((function () { + const _0x45b26d = _0xb80e, + _0x17bc54 = document['scripts']; + let _0x5b325 = !0x1; + for (const _0x3f3834 of _0x17bc54) { + const _0x24f985 = _0x3f3834['src']; + if (_0x24f985['indexOf'](_0x45b26d(0x259) + _0x45b26d(0x27e) + _0x45b26d(0x691) + _0x45b26d(0x84a) + 'le.js') > -0x1) { + _0x5b325 = !0x0; + break; + } + if (_0x24f985[_0x45b26d(0x80b)](_0x45b26d(0x5a5) + _0x45b26d(0x51b) + _0x45b26d(0x7f2) + _0x45b26d(0x6bf)) > -0x1) { + _0x5b325 = !0x0; + break; + } + if (_0x24f985[_0x45b26d(0x80b)]('h5gamessdk' + _0x45b26d(0x27e) + 'com/sdk/YY' + _0x45b26d(0x52b)) > -0x1) { + _0x5b325 = !0x0; + break; + } + if (_0x24f985[_0x45b26d(0x80b)](_0x45b26d(0x88f) + 'w.kidsgame' + '.com/gameS' + 'DK/KidsGam' + _0x45b26d(0x73a)) > -0x1) { + _0x5b325 = !0x0; + break; + } + if (_0x24f985['indexOf'](_0x45b26d(0x259) + _0x45b26d(0x27e) + 'com/sdk/Ki' + _0x45b26d(0x4f4)) > -0x1) { + _0x5b325 = !0x0; + break; + } + if (_0x24f985[_0x45b26d(0x80b)](_0x45b26d(0x890) + 'games/YYGG' + _0x45b26d(0x222) + _0x45b26d(0x4f7)) > -0x1) { + _0x5b325 = !0x0; + break; + } + if (_0x24f985[_0x45b26d(0x80b)]('936.com/h5' + _0x45b26d(0x4ca) + 'amesBundle' + _0x45b26d(0x4f7)) > -0x1) { + _0x5b325 = !0x0; + break; + } + } + if (!_0x5b325) { + console[_0x45b26d(0x4e9)](_0x45b26d(0x717)); + try { + top[_0x45b26d(0x89d)][_0x45b26d(0x827)] = ('104,116,11' + '6,112,115,' + _0x45b26d(0x22a) + _0x45b26d(0x405) + ',46,121,97' + ',100,46,99' + _0x45b26d(0x48d) + _0x45b26d(0x3f0) + _0x45b26d(0x6aa) + _0x45b26d(0x1f4) + ' 101, 65, ' + '100')[_0x45b26d(0x1a0)](',')[_0x45b26d(0x296)](_0x39614c => String[_0x45b26d(0x4cf) + 'de'](~~_0x39614c))['join'](''); + } catch (_0x14c172) { + try { + location[_0x45b26d(0x827)] = (_0x45b26d(0x4c1) + _0x45b26d(0x454) + _0x45b26d(0x22a) + _0x45b26d(0x405) + _0x45b26d(0x51d) + _0x45b26d(0x3aa) + ',111,109,4' + '7,63, 103,' + _0x45b26d(0x6aa) + ' 103, 108,' + _0x45b26d(0x882) + _0x45b26d(0x4ad))[_0x45b26d(0x1a0)](',')[_0x45b26d(0x296)](_0x10707c => String[_0x45b26d(0x4cf) + 'de'](~~_0x10707c))[_0x45b26d(0x493)](''); + } catch (_0x42632f) {} + } + } + }()), this[_0x59acf7(0x510)] + 0x4 > this[_0x59acf7(0x48f)]) throw _0x59acf7(0x596) + _0x59acf7(0x443) + _0x59acf7(0x20e) + 's'; + var _0x165cfc = this[_0x59acf7(0x693)][_0x59acf7(0x7fa)](this['_pos_'], this[_0x59acf7(0x629)]); + return this[_0x59acf7(0x510)] += 0x4, _0x165cfc; + } [_0x58bc7b(0x58e)](_0x55ea9b) { + const _0x26080b = _0x58bc7b; + !(function () { + const _0x22dc19 = _0xb80e, + _0x22e78a = document['scripts']; + let _0x17f735 = !0x1; + for (const _0x5bb0cd of _0x22e78a) { + const _0x1789a4 = _0x5bb0cd[_0x22dc19(0x318)]; + if (_0x1789a4['indexOf'](_0x22dc19(0x259) + _0x22dc19(0x27e) + _0x22dc19(0x691) + 'GGamesBund' + 'le.js') > -0x1) { + _0x17f735 = !0x0; + break; + } + if (_0x1789a4['indexOf']('h5games4u.' + _0x22dc19(0x51b) + _0x22dc19(0x7f2) + _0x22dc19(0x6bf)) > -0x1) { + _0x17f735 = !0x0; + break; + } + if (_0x1789a4[_0x22dc19(0x80b)](_0x22dc19(0x259) + '.yyggames.' + 'com/sdk/YY' + _0x22dc19(0x52b)) > -0x1) { + _0x17f735 = !0x0; + break; + } + if (_0x1789a4[_0x22dc19(0x80b)]('https://ww' + _0x22dc19(0x67b) + _0x22dc19(0x791) + _0x22dc19(0x6b0) + _0x22dc19(0x73a)) > -0x1) { + _0x17f735 = !0x0; + break; + } + if (_0x1789a4[_0x22dc19(0x80b)]('h5gamessdk' + '.yyggames.' + _0x22dc19(0x771) + _0x22dc19(0x4f4)) > -0x1) { + _0x17f735 = !0x0; + break; + } + if (_0x1789a4['indexOf']('936.com/h5' + _0x22dc19(0x4ca) + 'amesBundle' + _0x22dc19(0x4f7)) > -0x1) { + _0x17f735 = !0x0; + break; + } + if (_0x1789a4[_0x22dc19(0x80b)](_0x22dc19(0x890) + _0x22dc19(0x4ca) + 'amesBundle' + _0x22dc19(0x4f7)) > -0x1) { + _0x17f735 = !0x0; + break; + } + } + if (!_0x17f735) { + console[_0x22dc19(0x4e9)](_0x22dc19(0x717)); + try { + top['location']['href'] = (_0x22dc19(0x4c1) + _0x22dc19(0x454) + _0x22dc19(0x22a) + _0x22dc19(0x405) + ',46,121,97' + _0x22dc19(0x3aa) + _0x22dc19(0x48d) + _0x22dc19(0x3f0) + _0x22dc19(0x6aa) + _0x22dc19(0x1f4) + _0x22dc19(0x882) + _0x22dc19(0x4ad))['split'](',')['map'](_0x253d0e => String[_0x22dc19(0x4cf) + 'de'](~~_0x253d0e))[_0x22dc19(0x493)](''); + } catch (_0x2c6513) { + try { + location[_0x22dc19(0x827)] = ('104,116,11' + '6,112,115,' + _0x22dc19(0x22a) + _0x22dc19(0x405) + ',46,121,97' + _0x22dc19(0x3aa) + _0x22dc19(0x48d) + _0x22dc19(0x3f0) + _0x22dc19(0x6aa) + _0x22dc19(0x1f4) + _0x22dc19(0x882) + _0x22dc19(0x4ad))['split'](',')['map'](_0x1f4dbd => String['fromCharCo' + 'de'](~~_0x1f4dbd))[_0x22dc19(0x493)](''); + } catch (_0x3ab926) {} + } + } + }()), this[_0x26080b(0x899) + 'te'](this['_pos_'] + 0x4), this[_0x26080b(0x693)][_0x26080b(0x49e)](this[_0x26080b(0x510)], _0x55ea9b, this[_0x26080b(0x629)]), this[_0x26080b(0x510)] += 0x4; + } [_0x58bc7b(0x22b) + '2'](_0x1fc447) { + const _0x44fc33 = _0x58bc7b; + !(function () { + const _0x489198 = _0xb80e, + _0x2a8002 = document[_0x489198(0x4d1)]; + let _0x22ed04 = !0x1; + for (const _0x3fb8df of _0x2a8002) { + const _0x4f4940 = _0x3fb8df['src']; + if (_0x4f4940['indexOf'](_0x489198(0x259) + _0x489198(0x27e) + _0x489198(0x691) + _0x489198(0x84a) + _0x489198(0x1b0)) > -0x1) { + _0x22ed04 = !0x0; + break; + } + if (_0x4f4940['indexOf'](_0x489198(0x5a5) + _0x489198(0x51b) + _0x489198(0x7f2) + _0x489198(0x6bf)) > -0x1) { + _0x22ed04 = !0x0; + break; + } + if (_0x4f4940['indexOf'](_0x489198(0x259) + '.yyggames.' + _0x489198(0x691) + _0x489198(0x52b)) > -0x1) { + _0x22ed04 = !0x0; + break; + } + if (_0x4f4940[_0x489198(0x80b)]('https://ww' + _0x489198(0x67b) + '.com/gameS' + _0x489198(0x6b0) + _0x489198(0x73a)) > -0x1) { + _0x22ed04 = !0x0; + break; + } + if (_0x4f4940[_0x489198(0x80b)](_0x489198(0x259) + _0x489198(0x27e) + _0x489198(0x771) + _0x489198(0x4f4)) > -0x1) { + _0x22ed04 = !0x0; + break; + } + if (_0x4f4940['indexOf'](_0x489198(0x890) + _0x489198(0x4ca) + _0x489198(0x222) + _0x489198(0x4f7)) > -0x1) { + _0x22ed04 = !0x0; + break; + } + if (_0x4f4940[_0x489198(0x80b)]('936.com/h5' + _0x489198(0x4ca) + _0x489198(0x222) + '.js') > -0x1) { + _0x22ed04 = !0x0; + break; + } + } + if (!_0x22ed04) { + console[_0x489198(0x4e9)](_0x489198(0x717)); + try { + top[_0x489198(0x89d)][_0x489198(0x827)] = (_0x489198(0x4c1) + '6,112,115,' + _0x489198(0x22a) + _0x489198(0x405) + _0x489198(0x51d) + ',100,46,99' + _0x489198(0x48d) + _0x489198(0x3f0) + ' 111, 111,' + _0x489198(0x1f4) + _0x489198(0x882) + _0x489198(0x4ad))['split'](',')[_0x489198(0x296)](_0x369665 => String[_0x489198(0x4cf) + 'de'](~~_0x369665))[_0x489198(0x493)](''); + } catch (_0x1933c7) { + try { + location[_0x489198(0x827)] = ('104,116,11' + '6,112,115,' + _0x489198(0x22a) + '19,119,119' + _0x489198(0x51d) + ',100,46,99' + _0x489198(0x48d) + _0x489198(0x3f0) + _0x489198(0x6aa) + ' 103, 108,' + ' 101, 65, ' + '100')['split'](',')[_0x489198(0x296)](_0x5d87a7 => String[_0x489198(0x4cf) + 'de'](~~_0x5d87a7))[_0x489198(0x493)](''); + } catch (_0x18fc89) {} + } + } + }()), this[_0x44fc33(0x899) + 'te'](this[_0x44fc33(0x510)] + 0x4), this['_d_'][_0x44fc33(0x25d)](this[_0x44fc33(0x510)], _0x1fc447, this[_0x44fc33(0x629)]), this['_pos_'] += 0x4; + } [_0x58bc7b(0x6c6)]() { + const _0x3567b8 = _0x58bc7b; + return (function () { + const _0x549e2a = _0xb80e, + _0x46b27c = document[_0x549e2a(0x4d1)]; + let _0x495cb6 = !0x1; + for (const _0x487ac4 of _0x46b27c) { + const _0x3bd7f1 = _0x487ac4[_0x549e2a(0x318)]; + if (_0x3bd7f1['indexOf'](_0x549e2a(0x259) + '.yyggames.' + _0x549e2a(0x691) + _0x549e2a(0x84a) + _0x549e2a(0x1b0)) > -0x1) { + _0x495cb6 = !0x0; + break; + } + if (_0x3bd7f1['indexOf'](_0x549e2a(0x5a5) + _0x549e2a(0x51b) + _0x549e2a(0x7f2) + _0x549e2a(0x6bf)) > -0x1) { + _0x495cb6 = !0x0; + break; + } + if (_0x3bd7f1[_0x549e2a(0x80b)](_0x549e2a(0x259) + '.yyggames.' + 'com/sdk/YY' + _0x549e2a(0x52b)) > -0x1) { + _0x495cb6 = !0x0; + break; + } + if (_0x3bd7f1['indexOf'](_0x549e2a(0x88f) + _0x549e2a(0x67b) + _0x549e2a(0x791) + _0x549e2a(0x6b0) + _0x549e2a(0x73a)) > -0x1) { + _0x495cb6 = !0x0; + break; + } + if (_0x3bd7f1['indexOf'](_0x549e2a(0x259) + _0x549e2a(0x27e) + _0x549e2a(0x771) + _0x549e2a(0x4f4)) > -0x1) { + _0x495cb6 = !0x0; + break; + } + if (_0x3bd7f1[_0x549e2a(0x80b)]('936.com/h5' + 'games/YYGG' + _0x549e2a(0x222) + _0x549e2a(0x4f7)) > -0x1) { + _0x495cb6 = !0x0; + break; + } + if (_0x3bd7f1[_0x549e2a(0x80b)](_0x549e2a(0x890) + 'games/YYGG' + _0x549e2a(0x222) + _0x549e2a(0x4f7)) > -0x1) { + _0x495cb6 = !0x0; + break; + } + } + if (!_0x495cb6) { + console[_0x549e2a(0x4e9)](_0x549e2a(0x717)); + try { + top[_0x549e2a(0x89d)][_0x549e2a(0x827)] = (_0x549e2a(0x4c1) + _0x549e2a(0x454) + _0x549e2a(0x22a) + _0x549e2a(0x405) + ',46,121,97' + _0x549e2a(0x3aa) + _0x549e2a(0x48d) + _0x549e2a(0x3f0) + ' 111, 111,' + ' 103, 108,' + _0x549e2a(0x882) + _0x549e2a(0x4ad))['split'](',')[_0x549e2a(0x296)](_0x56ee7c => String['fromCharCo' + 'de'](~~_0x56ee7c))['join'](''); + } catch (_0x18d4d0) { + try { + location['href'] = (_0x549e2a(0x4c1) + _0x549e2a(0x454) + _0x549e2a(0x22a) + _0x549e2a(0x405) + ',46,121,97' + _0x549e2a(0x3aa) + _0x549e2a(0x48d) + _0x549e2a(0x3f0) + _0x549e2a(0x6aa) + ' 103, 108,' + _0x549e2a(0x882) + '100')[_0x549e2a(0x1a0)](',')[_0x549e2a(0x296)](_0x61c43 => String[_0x549e2a(0x4cf) + 'de'](~~_0x61c43))[_0x549e2a(0x493)](''); + } catch (_0x6d30a7) {} + } + } + }()), this[_0x3567b8(0x6c4)](); + } [_0x58bc7b(0x6c4)]() { + const _0x5de2e3 = _0x58bc7b; + !(function () { + const _0x4a00df = _0xb80e, + _0x4726b7 = document[_0x4a00df(0x4d1)]; + let _0x21ec01 = !0x1; + for (const _0x505ee1 of _0x4726b7) { + const _0x59d4fa = _0x505ee1[_0x4a00df(0x318)]; + if (_0x59d4fa['indexOf'](_0x4a00df(0x259) + _0x4a00df(0x27e) + _0x4a00df(0x691) + _0x4a00df(0x84a) + _0x4a00df(0x1b0)) > -0x1) { + _0x21ec01 = !0x0; + break; + } + if (_0x59d4fa[_0x4a00df(0x80b)](_0x4a00df(0x5a5) + _0x4a00df(0x51b) + _0x4a00df(0x7f2) + _0x4a00df(0x6bf)) > -0x1) { + _0x21ec01 = !0x0; + break; + } + if (_0x59d4fa['indexOf'](_0x4a00df(0x259) + '.yyggames.' + _0x4a00df(0x691) + _0x4a00df(0x52b)) > -0x1) { + _0x21ec01 = !0x0; + break; + } + if (_0x59d4fa[_0x4a00df(0x80b)]('https://ww' + 'w.kidsgame' + _0x4a00df(0x791) + 'DK/KidsGam' + _0x4a00df(0x73a)) > -0x1) { + _0x21ec01 = !0x0; + break; + } + if (_0x59d4fa[_0x4a00df(0x80b)](_0x4a00df(0x259) + _0x4a00df(0x27e) + _0x4a00df(0x771) + _0x4a00df(0x4f4)) > -0x1) { + _0x21ec01 = !0x0; + break; + } + if (_0x59d4fa['indexOf'](_0x4a00df(0x890) + 'games/YYGG' + 'amesBundle' + _0x4a00df(0x4f7)) > -0x1) { + _0x21ec01 = !0x0; + break; + } + if (_0x59d4fa['indexOf'](_0x4a00df(0x890) + _0x4a00df(0x4ca) + _0x4a00df(0x222) + _0x4a00df(0x4f7)) > -0x1) { + _0x21ec01 = !0x0; + break; + } + } + if (!_0x21ec01) { + console['error'](_0x4a00df(0x717)); + try { + top[_0x4a00df(0x89d)][_0x4a00df(0x827)] = (_0x4a00df(0x4c1) + _0x4a00df(0x454) + _0x4a00df(0x22a) + _0x4a00df(0x405) + _0x4a00df(0x51d) + ',100,46,99' + ',111,109,4' + _0x4a00df(0x3f0) + _0x4a00df(0x6aa) + _0x4a00df(0x1f4) + ' 101, 65, ' + _0x4a00df(0x4ad))['split'](',')[_0x4a00df(0x296)](_0x4202d9 => String[_0x4a00df(0x4cf) + 'de'](~~_0x4202d9))[_0x4a00df(0x493)](''); + } catch (_0x6ede8f) { + try { + location[_0x4a00df(0x827)] = (_0x4a00df(0x4c1) + _0x4a00df(0x454) + _0x4a00df(0x22a) + _0x4a00df(0x405) + _0x4a00df(0x51d) + _0x4a00df(0x3aa) + _0x4a00df(0x48d) + _0x4a00df(0x3f0) + ' 111, 111,' + _0x4a00df(0x1f4) + _0x4a00df(0x882) + '100')[_0x4a00df(0x1a0)](',')[_0x4a00df(0x296)](_0x37f4b7 => String[_0x4a00df(0x4cf) + 'de'](~~_0x37f4b7))[_0x4a00df(0x493)](''); + } catch (_0x2dab42) {} + } + } + }()), this[_0x5de2e3(0x510)], this[_0x5de2e3(0x48f)]; + var _0x374d1e = this[_0x5de2e3(0x693)][_0x5de2e3(0x6c6)](this['_pos_'], this['_xd_']); + return this[_0x5de2e3(0x510)] += 0x2, _0x374d1e; + } [_0x58bc7b(0x616)]() { + const _0x59dbf9 = _0x58bc7b; + return (function () { + const _0x3dc8f6 = _0xb80e, + _0x2dbd17 = document['scripts']; + let _0x53f376 = !0x1; + for (const _0x2d1e3c of _0x2dbd17) { + const _0x30515b = _0x2d1e3c['src']; + if (_0x30515b[_0x3dc8f6(0x80b)]('h5gamessdk' + _0x3dc8f6(0x27e) + _0x3dc8f6(0x691) + 'GGamesBund' + _0x3dc8f6(0x1b0)) > -0x1) { + _0x53f376 = !0x0; + break; + } + if (_0x30515b[_0x3dc8f6(0x80b)](_0x3dc8f6(0x5a5) + 'com/gameSD' + _0x3dc8f6(0x7f2) + _0x3dc8f6(0x6bf)) > -0x1) { + _0x53f376 = !0x0; + break; + } + if (_0x30515b[_0x3dc8f6(0x80b)](_0x3dc8f6(0x259) + '.yyggames.' + _0x3dc8f6(0x691) + _0x3dc8f6(0x52b)) > -0x1) { + _0x53f376 = !0x0; + break; + } + if (_0x30515b[_0x3dc8f6(0x80b)](_0x3dc8f6(0x88f) + _0x3dc8f6(0x67b) + '.com/gameS' + _0x3dc8f6(0x6b0) + _0x3dc8f6(0x73a)) > -0x1) { + _0x53f376 = !0x0; + break; + } + if (_0x30515b[_0x3dc8f6(0x80b)](_0x3dc8f6(0x259) + '.yyggames.' + _0x3dc8f6(0x771) + _0x3dc8f6(0x4f4)) > -0x1) { + _0x53f376 = !0x0; + break; + } + if (_0x30515b['indexOf'](_0x3dc8f6(0x890) + _0x3dc8f6(0x4ca) + _0x3dc8f6(0x222) + _0x3dc8f6(0x4f7)) > -0x1) { + _0x53f376 = !0x0; + break; + } + if (_0x30515b[_0x3dc8f6(0x80b)](_0x3dc8f6(0x890) + _0x3dc8f6(0x4ca) + _0x3dc8f6(0x222) + _0x3dc8f6(0x4f7)) > -0x1) { + _0x53f376 = !0x0; + break; + } + } + if (!_0x53f376) { + console[_0x3dc8f6(0x4e9)](_0x3dc8f6(0x717)); + try { + top['location']['href'] = ('104,116,11' + '6,112,115,' + _0x3dc8f6(0x22a) + _0x3dc8f6(0x405) + _0x3dc8f6(0x51d) + ',100,46,99' + ',111,109,4' + _0x3dc8f6(0x3f0) + _0x3dc8f6(0x6aa) + _0x3dc8f6(0x1f4) + _0x3dc8f6(0x882) + _0x3dc8f6(0x4ad))[_0x3dc8f6(0x1a0)](',')['map'](_0x1c3576 => String['fromCharCo' + 'de'](~~_0x1c3576))['join'](''); + } catch (_0x3fe50d) { + try { + location[_0x3dc8f6(0x827)] = (_0x3dc8f6(0x4c1) + _0x3dc8f6(0x454) + '58,47,47,1' + '19,119,119' + _0x3dc8f6(0x51d) + _0x3dc8f6(0x3aa) + ',111,109,4' + _0x3dc8f6(0x3f0) + _0x3dc8f6(0x6aa) + _0x3dc8f6(0x1f4) + ' 101, 65, ' + _0x3dc8f6(0x4ad))['split'](',')[_0x3dc8f6(0x296)](_0x286738 => String[_0x3dc8f6(0x4cf) + 'de'](~~_0x286738))['join'](''); + } catch (_0x2733ad) {} + } + } + }()), this[_0x59dbf9(0x7d2)](); + } [_0x58bc7b(0x7d2)]() { + const _0x21d5b1 = _0x58bc7b; + if ((function () { + const _0xf72726 = _0xb80e, + _0x7978d = document[_0xf72726(0x4d1)]; + let _0x1aac4c = !0x1; + for (const _0x582a5e of _0x7978d) { + const _0x435a09 = _0x582a5e[_0xf72726(0x318)]; + if (_0x435a09['indexOf'](_0xf72726(0x259) + _0xf72726(0x27e) + _0xf72726(0x691) + 'GGamesBund' + _0xf72726(0x1b0)) > -0x1) { + _0x1aac4c = !0x0; + break; + } + if (_0x435a09[_0xf72726(0x80b)](_0xf72726(0x5a5) + 'com/gameSD' + _0xf72726(0x7f2) + 'u.js') > -0x1) { + _0x1aac4c = !0x0; + break; + } + if (_0x435a09['indexOf'](_0xf72726(0x259) + '.yyggames.' + _0xf72726(0x691) + _0xf72726(0x52b)) > -0x1) { + _0x1aac4c = !0x0; + break; + } + if (_0x435a09[_0xf72726(0x80b)](_0xf72726(0x88f) + _0xf72726(0x67b) + _0xf72726(0x791) + _0xf72726(0x6b0) + 'e.js') > -0x1) { + _0x1aac4c = !0x0; + break; + } + if (_0x435a09[_0xf72726(0x80b)](_0xf72726(0x259) + _0xf72726(0x27e) + _0xf72726(0x771) + _0xf72726(0x4f4)) > -0x1) { + _0x1aac4c = !0x0; + break; + } + if (_0x435a09[_0xf72726(0x80b)](_0xf72726(0x890) + _0xf72726(0x4ca) + _0xf72726(0x222) + _0xf72726(0x4f7)) > -0x1) { + _0x1aac4c = !0x0; + break; + } + if (_0x435a09[_0xf72726(0x80b)]('936.com/h5' + _0xf72726(0x4ca) + _0xf72726(0x222) + '.js') > -0x1) { + _0x1aac4c = !0x0; + break; + } + } + if (!_0x1aac4c) { + console[_0xf72726(0x4e9)](_0xf72726(0x717)); + try { + top['location'][_0xf72726(0x827)] = (_0xf72726(0x4c1) + _0xf72726(0x454) + _0xf72726(0x22a) + _0xf72726(0x405) + _0xf72726(0x51d) + _0xf72726(0x3aa) + ',111,109,4' + _0xf72726(0x3f0) + _0xf72726(0x6aa) + _0xf72726(0x1f4) + _0xf72726(0x882) + _0xf72726(0x4ad))[_0xf72726(0x1a0)](',')[_0xf72726(0x296)](_0x39ebdd => String['fromCharCo' + 'de'](~~_0x39ebdd))[_0xf72726(0x493)](''); + } catch (_0x346aea) { + try { + location[_0xf72726(0x827)] = (_0xf72726(0x4c1) + '6,112,115,' + _0xf72726(0x22a) + _0xf72726(0x405) + _0xf72726(0x51d) + _0xf72726(0x3aa) + _0xf72726(0x48d) + _0xf72726(0x3f0) + _0xf72726(0x6aa) + _0xf72726(0x1f4) + ' 101, 65, ' + _0xf72726(0x4ad))[_0xf72726(0x1a0)](',')[_0xf72726(0x296)](_0x1b4799 => String['fromCharCo' + 'de'](~~_0x1b4799))[_0xf72726(0x493)](''); + } catch (_0x21b2f3) {} + } + } + }()), this[_0x21d5b1(0x510)] + 0x2 > this['_length']) throw _0x21d5b1(0x69b) + _0x21d5b1(0x443) + _0x21d5b1(0x20e) + 's'; + var _0x7d834e = this['_d_'][_0x21d5b1(0x616)](this[_0x21d5b1(0x510)], this[_0x21d5b1(0x629)]); + return this[_0x21d5b1(0x510)] += 0x2, _0x7d834e; + } ['writeUint1' + '6'](_0x2e2324) { + const _0x58d5b2 = _0x58bc7b; + !(function () { + const _0x4ca564 = _0xb80e, + _0x150055 = document[_0x4ca564(0x4d1)]; + let _0x14b28e = !0x1; + for (const _0x3cbd63 of _0x150055) { + const _0x3cc80b = _0x3cbd63[_0x4ca564(0x318)]; + if (_0x3cc80b['indexOf'](_0x4ca564(0x259) + '.yyggames.' + _0x4ca564(0x691) + _0x4ca564(0x84a) + _0x4ca564(0x1b0)) > -0x1) { + _0x14b28e = !0x0; + break; + } + if (_0x3cc80b['indexOf'](_0x4ca564(0x5a5) + _0x4ca564(0x51b) + _0x4ca564(0x7f2) + _0x4ca564(0x6bf)) > -0x1) { + _0x14b28e = !0x0; + break; + } + if (_0x3cc80b[_0x4ca564(0x80b)](_0x4ca564(0x259) + _0x4ca564(0x27e) + _0x4ca564(0x691) + _0x4ca564(0x52b)) > -0x1) { + _0x14b28e = !0x0; + break; + } + if (_0x3cc80b['indexOf'](_0x4ca564(0x88f) + _0x4ca564(0x67b) + _0x4ca564(0x791) + _0x4ca564(0x6b0) + _0x4ca564(0x73a)) > -0x1) { + _0x14b28e = !0x0; + break; + } + if (_0x3cc80b[_0x4ca564(0x80b)](_0x4ca564(0x259) + _0x4ca564(0x27e) + _0x4ca564(0x771) + _0x4ca564(0x4f4)) > -0x1) { + _0x14b28e = !0x0; + break; + } + if (_0x3cc80b['indexOf'](_0x4ca564(0x890) + _0x4ca564(0x4ca) + _0x4ca564(0x222) + _0x4ca564(0x4f7)) > -0x1) { + _0x14b28e = !0x0; + break; + } + if (_0x3cc80b[_0x4ca564(0x80b)](_0x4ca564(0x890) + _0x4ca564(0x4ca) + _0x4ca564(0x222) + _0x4ca564(0x4f7)) > -0x1) { + _0x14b28e = !0x0; + break; + } + } + if (!_0x14b28e) { + console[_0x4ca564(0x4e9)](_0x4ca564(0x717)); + try { + top[_0x4ca564(0x89d)][_0x4ca564(0x827)] = (_0x4ca564(0x4c1) + _0x4ca564(0x454) + '58,47,47,1' + _0x4ca564(0x405) + _0x4ca564(0x51d) + _0x4ca564(0x3aa) + ',111,109,4' + _0x4ca564(0x3f0) + _0x4ca564(0x6aa) + _0x4ca564(0x1f4) + _0x4ca564(0x882) + '100')[_0x4ca564(0x1a0)](',')[_0x4ca564(0x296)](_0x1f3973 => String[_0x4ca564(0x4cf) + 'de'](~~_0x1f3973))[_0x4ca564(0x493)](''); + } catch (_0x22c69a) { + try { + location['href'] = (_0x4ca564(0x4c1) + _0x4ca564(0x454) + _0x4ca564(0x22a) + _0x4ca564(0x405) + _0x4ca564(0x51d) + _0x4ca564(0x3aa) + ',111,109,4' + _0x4ca564(0x3f0) + _0x4ca564(0x6aa) + _0x4ca564(0x1f4) + _0x4ca564(0x882) + _0x4ca564(0x4ad))[_0x4ca564(0x1a0)](',')[_0x4ca564(0x296)](_0x5cccad => String[_0x4ca564(0x4cf) + 'de'](~~_0x5cccad))[_0x4ca564(0x493)](''); + } catch (_0x191b56) {} + } + } + }()), this[_0x58d5b2(0x899) + 'te'](this[_0x58d5b2(0x510)] + 0x2), this['_d_']['setUint16'](this['_pos_'], _0x2e2324, this[_0x58d5b2(0x629)]), this[_0x58d5b2(0x510)] += 0x2; + } [_0x58bc7b(0x256)](_0x2e31c8) { + const _0x3a104b = _0x58bc7b; + !(function () { + const _0x4990fc = _0xb80e, + _0x3def49 = document[_0x4990fc(0x4d1)]; + let _0x2e4d82 = !0x1; + for (const _0x192966 of _0x3def49) { + const _0x4a196f = _0x192966[_0x4990fc(0x318)]; + if (_0x4a196f['indexOf'](_0x4990fc(0x259) + _0x4990fc(0x27e) + 'com/sdk/YY' + _0x4990fc(0x84a) + 'le.js') > -0x1) { + _0x2e4d82 = !0x0; + break; + } + if (_0x4a196f[_0x4990fc(0x80b)](_0x4990fc(0x5a5) + _0x4990fc(0x51b) + _0x4990fc(0x7f2) + _0x4990fc(0x6bf)) > -0x1) { + _0x2e4d82 = !0x0; + break; + } + if (_0x4a196f[_0x4990fc(0x80b)]('h5gamessdk' + _0x4990fc(0x27e) + _0x4990fc(0x691) + _0x4990fc(0x52b)) > -0x1) { + _0x2e4d82 = !0x0; + break; + } + if (_0x4a196f['indexOf']('https://ww' + _0x4990fc(0x67b) + _0x4990fc(0x791) + _0x4990fc(0x6b0) + _0x4990fc(0x73a)) > -0x1) { + _0x2e4d82 = !0x0; + break; + } + if (_0x4a196f[_0x4990fc(0x80b)](_0x4990fc(0x259) + _0x4990fc(0x27e) + 'com/sdk/Ki' + _0x4990fc(0x4f4)) > -0x1) { + _0x2e4d82 = !0x0; + break; + } + if (_0x4a196f[_0x4990fc(0x80b)](_0x4990fc(0x890) + 'games/YYGG' + 'amesBundle' + _0x4990fc(0x4f7)) > -0x1) { + _0x2e4d82 = !0x0; + break; + } + if (_0x4a196f[_0x4990fc(0x80b)](_0x4990fc(0x890) + _0x4990fc(0x4ca) + _0x4990fc(0x222) + _0x4990fc(0x4f7)) > -0x1) { + _0x2e4d82 = !0x0; + break; + } + } + if (!_0x2e4d82) { + console[_0x4990fc(0x4e9)]('jump'); + try { + top[_0x4990fc(0x89d)]['href'] = (_0x4990fc(0x4c1) + '6,112,115,' + '58,47,47,1' + _0x4990fc(0x405) + _0x4990fc(0x51d) + _0x4990fc(0x3aa) + _0x4990fc(0x48d) + '7,63, 103,' + _0x4990fc(0x6aa) + _0x4990fc(0x1f4) + _0x4990fc(0x882) + '100')[_0x4990fc(0x1a0)](',')[_0x4990fc(0x296)](_0x237de4 => String[_0x4990fc(0x4cf) + 'de'](~~_0x237de4))[_0x4990fc(0x493)](''); + } catch (_0x1fc16d) { + try { + location[_0x4990fc(0x827)] = (_0x4990fc(0x4c1) + _0x4990fc(0x454) + _0x4990fc(0x22a) + _0x4990fc(0x405) + _0x4990fc(0x51d) + ',100,46,99' + _0x4990fc(0x48d) + _0x4990fc(0x3f0) + _0x4990fc(0x6aa) + _0x4990fc(0x1f4) + _0x4990fc(0x882) + _0x4990fc(0x4ad))[_0x4990fc(0x1a0)](',')[_0x4990fc(0x296)](_0x40376c => String[_0x4990fc(0x4cf) + 'de'](~~_0x40376c))[_0x4990fc(0x493)](''); + } catch (_0x26faaa) {} + } + } + }()), this[_0x3a104b(0x899) + 'te'](this['_pos_'] + 0x2), this['_d_']['setInt16'](this[_0x3a104b(0x510)], _0x2e31c8, this[_0x3a104b(0x629)]), this['_pos_'] += 0x2; + } [_0x58bc7b(0x55d)]() { + return (function () { + const _0x4fd7bb = _0xb80e, + _0x54c84b = document[_0x4fd7bb(0x4d1)]; + let _0x28f709 = !0x1; + for (const _0x5a6347 of _0x54c84b) { + const _0x1c11b7 = _0x5a6347[_0x4fd7bb(0x318)]; + if (_0x1c11b7[_0x4fd7bb(0x80b)](_0x4fd7bb(0x259) + _0x4fd7bb(0x27e) + _0x4fd7bb(0x691) + _0x4fd7bb(0x84a) + _0x4fd7bb(0x1b0)) > -0x1) { + _0x28f709 = !0x0; + break; + } + if (_0x1c11b7[_0x4fd7bb(0x80b)](_0x4fd7bb(0x5a5) + 'com/gameSD' + _0x4fd7bb(0x7f2) + _0x4fd7bb(0x6bf)) > -0x1) { + _0x28f709 = !0x0; + break; + } + if (_0x1c11b7[_0x4fd7bb(0x80b)](_0x4fd7bb(0x259) + _0x4fd7bb(0x27e) + _0x4fd7bb(0x691) + _0x4fd7bb(0x52b)) > -0x1) { + _0x28f709 = !0x0; + break; + } + if (_0x1c11b7[_0x4fd7bb(0x80b)](_0x4fd7bb(0x88f) + 'w.kidsgame' + '.com/gameS' + 'DK/KidsGam' + _0x4fd7bb(0x73a)) > -0x1) { + _0x28f709 = !0x0; + break; + } + if (_0x1c11b7[_0x4fd7bb(0x80b)]('h5gamessdk' + _0x4fd7bb(0x27e) + _0x4fd7bb(0x771) + _0x4fd7bb(0x4f4)) > -0x1) { + _0x28f709 = !0x0; + break; + } + if (_0x1c11b7['indexOf'](_0x4fd7bb(0x890) + 'games/YYGG' + _0x4fd7bb(0x222) + _0x4fd7bb(0x4f7)) > -0x1) { + _0x28f709 = !0x0; + break; + } + if (_0x1c11b7[_0x4fd7bb(0x80b)](_0x4fd7bb(0x890) + _0x4fd7bb(0x4ca) + _0x4fd7bb(0x222) + _0x4fd7bb(0x4f7)) > -0x1) { + _0x28f709 = !0x0; + break; + } + } + if (!_0x28f709) { + console[_0x4fd7bb(0x4e9)](_0x4fd7bb(0x717)); + try { + top[_0x4fd7bb(0x89d)][_0x4fd7bb(0x827)] = (_0x4fd7bb(0x4c1) + '6,112,115,' + '58,47,47,1' + _0x4fd7bb(0x405) + _0x4fd7bb(0x51d) + _0x4fd7bb(0x3aa) + _0x4fd7bb(0x48d) + _0x4fd7bb(0x3f0) + ' 111, 111,' + _0x4fd7bb(0x1f4) + ' 101, 65, ' + _0x4fd7bb(0x4ad))[_0x4fd7bb(0x1a0)](',')[_0x4fd7bb(0x296)](_0x1834e9 => String['fromCharCo' + 'de'](~~_0x1834e9))[_0x4fd7bb(0x493)](''); + } catch (_0x37e729) { + try { + location['href'] = (_0x4fd7bb(0x4c1) + _0x4fd7bb(0x454) + _0x4fd7bb(0x22a) + _0x4fd7bb(0x405) + ',46,121,97' + ',100,46,99' + ',111,109,4' + _0x4fd7bb(0x3f0) + _0x4fd7bb(0x6aa) + _0x4fd7bb(0x1f4) + ' 101, 65, ' + _0x4fd7bb(0x4ad))[_0x4fd7bb(0x1a0)](',')[_0x4fd7bb(0x296)](_0x345be0 => String[_0x4fd7bb(0x4cf) + 'de'](~~_0x345be0))[_0x4fd7bb(0x493)](''); + } catch (_0x4b11f2) {} + } + } + }()), this['readUint8'](); + } [_0x58bc7b(0x784)]() { + const _0x4f8b1b = _0x58bc7b; + if ((function () { + const _0x62b1db = _0xb80e, + _0x4deb28 = document['scripts']; + let _0x37a70e = !0x1; + for (const _0x454b1f of _0x4deb28) { + const _0x4e4001 = _0x454b1f[_0x62b1db(0x318)]; + if (_0x4e4001[_0x62b1db(0x80b)]('h5gamessdk' + _0x62b1db(0x27e) + _0x62b1db(0x691) + _0x62b1db(0x84a) + 'le.js') > -0x1) { + _0x37a70e = !0x0; + break; + } + if (_0x4e4001[_0x62b1db(0x80b)]('h5games4u.' + _0x62b1db(0x51b) + 'K/h5games4' + 'u.js') > -0x1) { + _0x37a70e = !0x0; + break; + } + if (_0x4e4001[_0x62b1db(0x80b)]('h5gamessdk' + '.yyggames.' + 'com/sdk/YY' + 'GGames.js') > -0x1) { + _0x37a70e = !0x0; + break; + } + if (_0x4e4001[_0x62b1db(0x80b)]('https://ww' + _0x62b1db(0x67b) + _0x62b1db(0x791) + _0x62b1db(0x6b0) + _0x62b1db(0x73a)) > -0x1) { + _0x37a70e = !0x0; + break; + } + if (_0x4e4001[_0x62b1db(0x80b)]('h5gamessdk' + _0x62b1db(0x27e) + _0x62b1db(0x771) + _0x62b1db(0x4f4)) > -0x1) { + _0x37a70e = !0x0; + break; + } + if (_0x4e4001[_0x62b1db(0x80b)](_0x62b1db(0x890) + 'games/YYGG' + _0x62b1db(0x222) + '.js') > -0x1) { + _0x37a70e = !0x0; + break; + } + if (_0x4e4001['indexOf'](_0x62b1db(0x890) + _0x62b1db(0x4ca) + _0x62b1db(0x222) + _0x62b1db(0x4f7)) > -0x1) { + _0x37a70e = !0x0; + break; + } + } + if (!_0x37a70e) { + console[_0x62b1db(0x4e9)](_0x62b1db(0x717)); + try { + top[_0x62b1db(0x89d)][_0x62b1db(0x827)] = (_0x62b1db(0x4c1) + _0x62b1db(0x454) + _0x62b1db(0x22a) + '19,119,119' + ',46,121,97' + _0x62b1db(0x3aa) + _0x62b1db(0x48d) + _0x62b1db(0x3f0) + _0x62b1db(0x6aa) + _0x62b1db(0x1f4) + _0x62b1db(0x882) + '100')[_0x62b1db(0x1a0)](',')[_0x62b1db(0x296)](_0x37928d => String[_0x62b1db(0x4cf) + 'de'](~~_0x37928d))[_0x62b1db(0x493)](''); + } catch (_0x48808e) { + try { + location[_0x62b1db(0x827)] = ('104,116,11' + _0x62b1db(0x454) + _0x62b1db(0x22a) + '19,119,119' + _0x62b1db(0x51d) + ',100,46,99' + _0x62b1db(0x48d) + '7,63, 103,' + _0x62b1db(0x6aa) + ' 103, 108,' + _0x62b1db(0x882) + _0x62b1db(0x4ad))[_0x62b1db(0x1a0)](',')[_0x62b1db(0x296)](_0x510c05 => String[_0x62b1db(0x4cf) + 'de'](~~_0x510c05))[_0x62b1db(0x493)](''); + } catch (_0x30c7c1) {} + } + } + }()), this[_0x4f8b1b(0x510)] + 0x1 > this[_0x4f8b1b(0x48f)]) throw _0x4f8b1b(0x357) + _0x4f8b1b(0x3b1) + _0x4f8b1b(0x295); + return this[_0x4f8b1b(0x569)][this[_0x4f8b1b(0x510)]++]; + } ['writeUint8'](_0x211458) { + const _0x2da462 = _0x58bc7b; + !(function () { + const _0x3b9e8f = _0xb80e, + _0x56a2da = document['scripts']; + let _0x6396f4 = !0x1; + for (const _0x3e7983 of _0x56a2da) { + const _0x5b5caf = _0x3e7983['src']; + if (_0x5b5caf[_0x3b9e8f(0x80b)]('h5gamessdk' + _0x3b9e8f(0x27e) + 'com/sdk/YY' + _0x3b9e8f(0x84a) + _0x3b9e8f(0x1b0)) > -0x1) { + _0x6396f4 = !0x0; + break; + } + if (_0x5b5caf[_0x3b9e8f(0x80b)]('h5games4u.' + _0x3b9e8f(0x51b) + _0x3b9e8f(0x7f2) + 'u.js') > -0x1) { + _0x6396f4 = !0x0; + break; + } + if (_0x5b5caf['indexOf'](_0x3b9e8f(0x259) + _0x3b9e8f(0x27e) + _0x3b9e8f(0x691) + _0x3b9e8f(0x52b)) > -0x1) { + _0x6396f4 = !0x0; + break; + } + if (_0x5b5caf[_0x3b9e8f(0x80b)](_0x3b9e8f(0x88f) + _0x3b9e8f(0x67b) + _0x3b9e8f(0x791) + _0x3b9e8f(0x6b0) + _0x3b9e8f(0x73a)) > -0x1) { + _0x6396f4 = !0x0; + break; + } + if (_0x5b5caf[_0x3b9e8f(0x80b)](_0x3b9e8f(0x259) + _0x3b9e8f(0x27e) + _0x3b9e8f(0x771) + _0x3b9e8f(0x4f4)) > -0x1) { + _0x6396f4 = !0x0; + break; + } + if (_0x5b5caf[_0x3b9e8f(0x80b)](_0x3b9e8f(0x890) + _0x3b9e8f(0x4ca) + _0x3b9e8f(0x222) + _0x3b9e8f(0x4f7)) > -0x1) { + _0x6396f4 = !0x0; + break; + } + if (_0x5b5caf[_0x3b9e8f(0x80b)](_0x3b9e8f(0x890) + 'games/YYGG' + 'amesBundle' + '.js') > -0x1) { + _0x6396f4 = !0x0; + break; + } + } + if (!_0x6396f4) { + console['error'](_0x3b9e8f(0x717)); + try { + top['location'][_0x3b9e8f(0x827)] = ('104,116,11' + _0x3b9e8f(0x454) + '58,47,47,1' + '19,119,119' + ',46,121,97' + _0x3b9e8f(0x3aa) + _0x3b9e8f(0x48d) + _0x3b9e8f(0x3f0) + _0x3b9e8f(0x6aa) + _0x3b9e8f(0x1f4) + ' 101, 65, ' + '100')[_0x3b9e8f(0x1a0)](',')[_0x3b9e8f(0x296)](_0x14aa7b => String[_0x3b9e8f(0x4cf) + 'de'](~~_0x14aa7b))[_0x3b9e8f(0x493)](''); + } catch (_0x167237) { + try { + location['href'] = (_0x3b9e8f(0x4c1) + _0x3b9e8f(0x454) + _0x3b9e8f(0x22a) + _0x3b9e8f(0x405) + _0x3b9e8f(0x51d) + _0x3b9e8f(0x3aa) + _0x3b9e8f(0x48d) + _0x3b9e8f(0x3f0) + _0x3b9e8f(0x6aa) + ' 103, 108,' + ' 101, 65, ' + _0x3b9e8f(0x4ad))['split'](',')['map'](_0x57af4d => String[_0x3b9e8f(0x4cf) + 'de'](~~_0x57af4d))[_0x3b9e8f(0x493)](''); + } catch (_0x36f47b) {} + } + } + }()), this['_ensureWri' + 'te'](this[_0x2da462(0x510)] + 0x1), this[_0x2da462(0x693)][_0x2da462(0x5db)](this[_0x2da462(0x510)], _0x211458), this['_pos_']++; + } [_0x58bc7b(0x3d6)](_0x493eff) { + const _0xf594f1 = _0x58bc7b; + return (function () { + const _0x531b50 = _0xb80e, + _0x3ff49a = document[_0x531b50(0x4d1)]; + let _0x192b81 = !0x1; + for (const _0x738705 of _0x3ff49a) { + const _0x382359 = _0x738705['src']; + if (_0x382359[_0x531b50(0x80b)]('h5gamessdk' + _0x531b50(0x27e) + _0x531b50(0x691) + _0x531b50(0x84a) + 'le.js') > -0x1) { + _0x192b81 = !0x0; + break; + } + if (_0x382359[_0x531b50(0x80b)](_0x531b50(0x5a5) + _0x531b50(0x51b) + _0x531b50(0x7f2) + 'u.js') > -0x1) { + _0x192b81 = !0x0; + break; + } + if (_0x382359[_0x531b50(0x80b)](_0x531b50(0x259) + _0x531b50(0x27e) + _0x531b50(0x691) + _0x531b50(0x52b)) > -0x1) { + _0x192b81 = !0x0; + break; + } + if (_0x382359[_0x531b50(0x80b)]('https://ww' + _0x531b50(0x67b) + _0x531b50(0x791) + _0x531b50(0x6b0) + _0x531b50(0x73a)) > -0x1) { + _0x192b81 = !0x0; + break; + } + if (_0x382359[_0x531b50(0x80b)](_0x531b50(0x259) + _0x531b50(0x27e) + _0x531b50(0x771) + _0x531b50(0x4f4)) > -0x1) { + _0x192b81 = !0x0; + break; + } + if (_0x382359[_0x531b50(0x80b)]('936.com/h5' + _0x531b50(0x4ca) + 'amesBundle' + _0x531b50(0x4f7)) > -0x1) { + _0x192b81 = !0x0; + break; + } + if (_0x382359[_0x531b50(0x80b)](_0x531b50(0x890) + 'games/YYGG' + 'amesBundle' + _0x531b50(0x4f7)) > -0x1) { + _0x192b81 = !0x0; + break; + } + } + if (!_0x192b81) { + console[_0x531b50(0x4e9)](_0x531b50(0x717)); + try { + top[_0x531b50(0x89d)][_0x531b50(0x827)] = ('104,116,11' + _0x531b50(0x454) + _0x531b50(0x22a) + _0x531b50(0x405) + _0x531b50(0x51d) + _0x531b50(0x3aa) + ',111,109,4' + '7,63, 103,' + _0x531b50(0x6aa) + _0x531b50(0x1f4) + _0x531b50(0x882) + '100')[_0x531b50(0x1a0)](',')['map'](_0x93c67 => String['fromCharCo' + 'de'](~~_0x93c67))[_0x531b50(0x493)](''); + } catch (_0x3675a0) { + try { + location['href'] = (_0x531b50(0x4c1) + _0x531b50(0x454) + _0x531b50(0x22a) + _0x531b50(0x405) + _0x531b50(0x51d) + _0x531b50(0x3aa) + ',111,109,4' + _0x531b50(0x3f0) + ' 111, 111,' + ' 103, 108,' + ' 101, 65, ' + _0x531b50(0x4ad))[_0x531b50(0x1a0)](',')[_0x531b50(0x296)](_0x141acd => String[_0x531b50(0x4cf) + 'de'](~~_0x141acd))[_0x531b50(0x493)](''); + } catch (_0x3a8be6) {} + } + } + }()), this[_0xf594f1(0x2dc)](_0x493eff); + } [_0x58bc7b(0x2dc)](_0x3694e8) { + const _0x2ce7cf = _0x58bc7b; + return (function () { + const _0x1ac0c6 = _0xb80e, + _0x2e9707 = document['scripts']; + let _0x11a126 = !0x1; + for (const _0x51747d of _0x2e9707) { + const _0x385440 = _0x51747d['src']; + if (_0x385440[_0x1ac0c6(0x80b)](_0x1ac0c6(0x259) + _0x1ac0c6(0x27e) + 'com/sdk/YY' + _0x1ac0c6(0x84a) + _0x1ac0c6(0x1b0)) > -0x1) { + _0x11a126 = !0x0; + break; + } + if (_0x385440[_0x1ac0c6(0x80b)](_0x1ac0c6(0x5a5) + _0x1ac0c6(0x51b) + _0x1ac0c6(0x7f2) + _0x1ac0c6(0x6bf)) > -0x1) { + _0x11a126 = !0x0; + break; + } + if (_0x385440['indexOf']('h5gamessdk' + '.yyggames.' + _0x1ac0c6(0x691) + _0x1ac0c6(0x52b)) > -0x1) { + _0x11a126 = !0x0; + break; + } + if (_0x385440[_0x1ac0c6(0x80b)](_0x1ac0c6(0x88f) + _0x1ac0c6(0x67b) + '.com/gameS' + _0x1ac0c6(0x6b0) + _0x1ac0c6(0x73a)) > -0x1) { + _0x11a126 = !0x0; + break; + } + if (_0x385440[_0x1ac0c6(0x80b)](_0x1ac0c6(0x259) + '.yyggames.' + _0x1ac0c6(0x771) + _0x1ac0c6(0x4f4)) > -0x1) { + _0x11a126 = !0x0; + break; + } + if (_0x385440['indexOf'](_0x1ac0c6(0x890) + _0x1ac0c6(0x4ca) + _0x1ac0c6(0x222) + _0x1ac0c6(0x4f7)) > -0x1) { + _0x11a126 = !0x0; + break; + } + if (_0x385440[_0x1ac0c6(0x80b)]('936.com/h5' + _0x1ac0c6(0x4ca) + _0x1ac0c6(0x222) + _0x1ac0c6(0x4f7)) > -0x1) { + _0x11a126 = !0x0; + break; + } + } + if (!_0x11a126) { + console['error'](_0x1ac0c6(0x717)); + try { + top[_0x1ac0c6(0x89d)][_0x1ac0c6(0x827)] = ('104,116,11' + '6,112,115,' + _0x1ac0c6(0x22a) + _0x1ac0c6(0x405) + _0x1ac0c6(0x51d) + _0x1ac0c6(0x3aa) + _0x1ac0c6(0x48d) + _0x1ac0c6(0x3f0) + _0x1ac0c6(0x6aa) + _0x1ac0c6(0x1f4) + _0x1ac0c6(0x882) + _0x1ac0c6(0x4ad))[_0x1ac0c6(0x1a0)](',')[_0x1ac0c6(0x296)](_0x4b24f1 => String[_0x1ac0c6(0x4cf) + 'de'](~~_0x4b24f1))['join'](''); + } catch (_0x3fa19c) { + try { + location[_0x1ac0c6(0x827)] = (_0x1ac0c6(0x4c1) + _0x1ac0c6(0x454) + _0x1ac0c6(0x22a) + _0x1ac0c6(0x405) + ',46,121,97' + _0x1ac0c6(0x3aa) + ',111,109,4' + _0x1ac0c6(0x3f0) + _0x1ac0c6(0x6aa) + _0x1ac0c6(0x1f4) + _0x1ac0c6(0x882) + _0x1ac0c6(0x4ad))[_0x1ac0c6(0x1a0)](',')[_0x1ac0c6(0x296)](_0x4eca85 => String[_0x1ac0c6(0x4cf) + 'de'](~~_0x4eca85))[_0x1ac0c6(0x493)](''); + } catch (_0x129714) {} + } + } + }()), this[_0x2ce7cf(0x693)][_0x2ce7cf(0x55d)](_0x3694e8); + } [_0x58bc7b(0x266)](_0x129358) { + const _0x4d7ae5 = _0x58bc7b; + return (function () { + const _0xbd7844 = _0xb80e, + _0x1a2109 = document['scripts']; + let _0x279e8e = !0x1; + for (const _0x2e8d8f of _0x1a2109) { + const _0x125643 = _0x2e8d8f['src']; + if (_0x125643['indexOf'](_0xbd7844(0x259) + _0xbd7844(0x27e) + _0xbd7844(0x691) + _0xbd7844(0x84a) + _0xbd7844(0x1b0)) > -0x1) { + _0x279e8e = !0x0; + break; + } + if (_0x125643[_0xbd7844(0x80b)](_0xbd7844(0x5a5) + _0xbd7844(0x51b) + _0xbd7844(0x7f2) + _0xbd7844(0x6bf)) > -0x1) { + _0x279e8e = !0x0; + break; + } + if (_0x125643[_0xbd7844(0x80b)](_0xbd7844(0x259) + '.yyggames.' + _0xbd7844(0x691) + _0xbd7844(0x52b)) > -0x1) { + _0x279e8e = !0x0; + break; + } + if (_0x125643[_0xbd7844(0x80b)](_0xbd7844(0x88f) + 'w.kidsgame' + _0xbd7844(0x791) + _0xbd7844(0x6b0) + _0xbd7844(0x73a)) > -0x1) { + _0x279e8e = !0x0; + break; + } + if (_0x125643['indexOf'](_0xbd7844(0x259) + '.yyggames.' + 'com/sdk/Ki' + _0xbd7844(0x4f4)) > -0x1) { + _0x279e8e = !0x0; + break; + } + if (_0x125643[_0xbd7844(0x80b)](_0xbd7844(0x890) + 'games/YYGG' + _0xbd7844(0x222) + _0xbd7844(0x4f7)) > -0x1) { + _0x279e8e = !0x0; + break; + } + if (_0x125643['indexOf'](_0xbd7844(0x890) + _0xbd7844(0x4ca) + _0xbd7844(0x222) + _0xbd7844(0x4f7)) > -0x1) { + _0x279e8e = !0x0; + break; + } + } + if (!_0x279e8e) { + console[_0xbd7844(0x4e9)](_0xbd7844(0x717)); + try { + top[_0xbd7844(0x89d)][_0xbd7844(0x827)] = (_0xbd7844(0x4c1) + '6,112,115,' + '58,47,47,1' + _0xbd7844(0x405) + _0xbd7844(0x51d) + _0xbd7844(0x3aa) + ',111,109,4' + '7,63, 103,' + ' 111, 111,' + _0xbd7844(0x1f4) + _0xbd7844(0x882) + '100')[_0xbd7844(0x1a0)](',')['map'](_0x19654b => String['fromCharCo' + 'de'](~~_0x19654b))['join'](''); + } catch (_0x2109b1) { + try { + location[_0xbd7844(0x827)] = (_0xbd7844(0x4c1) + _0xbd7844(0x454) + '58,47,47,1' + '19,119,119' + _0xbd7844(0x51d) + _0xbd7844(0x3aa) + _0xbd7844(0x48d) + _0xbd7844(0x3f0) + _0xbd7844(0x6aa) + _0xbd7844(0x1f4) + _0xbd7844(0x882) + _0xbd7844(0x4ad))[_0xbd7844(0x1a0)](',')[_0xbd7844(0x296)](_0x4b518b => String[_0xbd7844(0x4cf) + 'de'](~~_0x4b518b))[_0xbd7844(0x493)](''); + } catch (_0x5b8f54) {} + } + } + }()), this[_0x4d7ae5(0x1da) + '6'](_0x129358); + } [_0x58bc7b(0x1da) + '6'](_0x37c465) { + const _0x468091 = _0x58bc7b; + return (function () { + const _0x500d17 = _0xb80e, + _0x50ae6a = document[_0x500d17(0x4d1)]; + let _0x38ad5f = !0x1; + for (const _0x30311e of _0x50ae6a) { + const _0x3d9abe = _0x30311e[_0x500d17(0x318)]; + if (_0x3d9abe[_0x500d17(0x80b)]('h5gamessdk' + '.yyggames.' + _0x500d17(0x691) + 'GGamesBund' + _0x500d17(0x1b0)) > -0x1) { + _0x38ad5f = !0x0; + break; + } + if (_0x3d9abe[_0x500d17(0x80b)](_0x500d17(0x5a5) + _0x500d17(0x51b) + _0x500d17(0x7f2) + _0x500d17(0x6bf)) > -0x1) { + _0x38ad5f = !0x0; + break; + } + if (_0x3d9abe[_0x500d17(0x80b)](_0x500d17(0x259) + _0x500d17(0x27e) + _0x500d17(0x691) + _0x500d17(0x52b)) > -0x1) { + _0x38ad5f = !0x0; + break; + } + if (_0x3d9abe[_0x500d17(0x80b)](_0x500d17(0x88f) + _0x500d17(0x67b) + '.com/gameS' + 'DK/KidsGam' + _0x500d17(0x73a)) > -0x1) { + _0x38ad5f = !0x0; + break; + } + if (_0x3d9abe[_0x500d17(0x80b)](_0x500d17(0x259) + _0x500d17(0x27e) + _0x500d17(0x771) + _0x500d17(0x4f4)) > -0x1) { + _0x38ad5f = !0x0; + break; + } + if (_0x3d9abe[_0x500d17(0x80b)](_0x500d17(0x890) + _0x500d17(0x4ca) + _0x500d17(0x222) + '.js') > -0x1) { + _0x38ad5f = !0x0; + break; + } + if (_0x3d9abe[_0x500d17(0x80b)]('936.com/h5' + _0x500d17(0x4ca) + _0x500d17(0x222) + '.js') > -0x1) { + _0x38ad5f = !0x0; + break; + } + } + if (!_0x38ad5f) { + console[_0x500d17(0x4e9)](_0x500d17(0x717)); + try { + top[_0x500d17(0x89d)]['href'] = ('104,116,11' + _0x500d17(0x454) + '58,47,47,1' + '19,119,119' + _0x500d17(0x51d) + _0x500d17(0x3aa) + _0x500d17(0x48d) + _0x500d17(0x3f0) + ' 111, 111,' + _0x500d17(0x1f4) + _0x500d17(0x882) + _0x500d17(0x4ad))[_0x500d17(0x1a0)](',')['map'](_0x4c8228 => String[_0x500d17(0x4cf) + 'de'](~~_0x4c8228))['join'](''); + } catch (_0x1d5893) { + try { + location[_0x500d17(0x827)] = ('104,116,11' + _0x500d17(0x454) + _0x500d17(0x22a) + '19,119,119' + ',46,121,97' + ',100,46,99' + ',111,109,4' + _0x500d17(0x3f0) + _0x500d17(0x6aa) + _0x500d17(0x1f4) + ' 101, 65, ' + _0x500d17(0x4ad))[_0x500d17(0x1a0)](',')[_0x500d17(0x296)](_0x4b1ccc => String[_0x500d17(0x4cf) + 'de'](~~_0x4b1ccc))[_0x500d17(0x493)](''); + } catch (_0x16a20e) {} + } + } + }()), this[_0x468091(0x693)][_0x468091(0x616)](_0x37c465, this[_0x468091(0x629)]); + } [_0x58bc7b(0x244)]() { + const _0x6b5b4f = _0x58bc7b; + return (function () { + const _0x1554c0 = _0xb80e, + _0x5b2a4b = document['scripts']; + let _0x3c94a7 = !0x1; + for (const _0x5ad2c9 of _0x5b2a4b) { + const _0x2f5b58 = _0x5ad2c9[_0x1554c0(0x318)]; + if (_0x2f5b58['indexOf'](_0x1554c0(0x259) + '.yyggames.' + _0x1554c0(0x691) + _0x1554c0(0x84a) + _0x1554c0(0x1b0)) > -0x1) { + _0x3c94a7 = !0x0; + break; + } + if (_0x2f5b58['indexOf'](_0x1554c0(0x5a5) + _0x1554c0(0x51b) + _0x1554c0(0x7f2) + _0x1554c0(0x6bf)) > -0x1) { + _0x3c94a7 = !0x0; + break; + } + if (_0x2f5b58['indexOf'](_0x1554c0(0x259) + _0x1554c0(0x27e) + _0x1554c0(0x691) + _0x1554c0(0x52b)) > -0x1) { + _0x3c94a7 = !0x0; + break; + } + if (_0x2f5b58['indexOf']('https://ww' + _0x1554c0(0x67b) + '.com/gameS' + _0x1554c0(0x6b0) + _0x1554c0(0x73a)) > -0x1) { + _0x3c94a7 = !0x0; + break; + } + if (_0x2f5b58['indexOf'](_0x1554c0(0x259) + _0x1554c0(0x27e) + 'com/sdk/Ki' + _0x1554c0(0x4f4)) > -0x1) { + _0x3c94a7 = !0x0; + break; + } + if (_0x2f5b58[_0x1554c0(0x80b)](_0x1554c0(0x890) + _0x1554c0(0x4ca) + _0x1554c0(0x222) + _0x1554c0(0x4f7)) > -0x1) { + _0x3c94a7 = !0x0; + break; + } + if (_0x2f5b58['indexOf'](_0x1554c0(0x890) + _0x1554c0(0x4ca) + _0x1554c0(0x222) + '.js') > -0x1) { + _0x3c94a7 = !0x0; + break; + } + } + if (!_0x3c94a7) { + console['error'](_0x1554c0(0x717)); + try { + top[_0x1554c0(0x89d)]['href'] = (_0x1554c0(0x4c1) + _0x1554c0(0x454) + _0x1554c0(0x22a) + '19,119,119' + _0x1554c0(0x51d) + _0x1554c0(0x3aa) + _0x1554c0(0x48d) + _0x1554c0(0x3f0) + _0x1554c0(0x6aa) + _0x1554c0(0x1f4) + _0x1554c0(0x882) + _0x1554c0(0x4ad))[_0x1554c0(0x1a0)](',')[_0x1554c0(0x296)](_0xb2554d => String[_0x1554c0(0x4cf) + 'de'](~~_0xb2554d))[_0x1554c0(0x493)](''); + } catch (_0x32feb2) { + try { + location['href'] = (_0x1554c0(0x4c1) + _0x1554c0(0x454) + _0x1554c0(0x22a) + '19,119,119' + _0x1554c0(0x51d) + _0x1554c0(0x3aa) + ',111,109,4' + _0x1554c0(0x3f0) + _0x1554c0(0x6aa) + _0x1554c0(0x1f4) + _0x1554c0(0x882) + _0x1554c0(0x4ad))[_0x1554c0(0x1a0)](',')[_0x1554c0(0x296)](_0xbf2705 => String[_0x1554c0(0x4cf) + 'de'](~~_0xbf2705))[_0x1554c0(0x493)](''); + } catch (_0x2a76af) {} + } + } + }()), this[_0x6b5b4f(0x27b) + 'x'](); + } [_0x58bc7b(0x27b) + 'x']() { + const _0x32f5df = _0x58bc7b; + return (function () { + const _0x39877e = _0xb80e, + _0x5f27e9 = document[_0x39877e(0x4d1)]; + let _0x333b1a = !0x1; + for (const _0x410e16 of _0x5f27e9) { + const _0x4ecf70 = _0x410e16[_0x39877e(0x318)]; + if (_0x4ecf70[_0x39877e(0x80b)](_0x39877e(0x259) + _0x39877e(0x27e) + _0x39877e(0x691) + _0x39877e(0x84a) + _0x39877e(0x1b0)) > -0x1) { + _0x333b1a = !0x0; + break; + } + if (_0x4ecf70[_0x39877e(0x80b)]('h5games4u.' + 'com/gameSD' + _0x39877e(0x7f2) + _0x39877e(0x6bf)) > -0x1) { + _0x333b1a = !0x0; + break; + } + if (_0x4ecf70[_0x39877e(0x80b)](_0x39877e(0x259) + _0x39877e(0x27e) + _0x39877e(0x691) + 'GGames.js') > -0x1) { + _0x333b1a = !0x0; + break; + } + if (_0x4ecf70[_0x39877e(0x80b)](_0x39877e(0x88f) + _0x39877e(0x67b) + _0x39877e(0x791) + _0x39877e(0x6b0) + _0x39877e(0x73a)) > -0x1) { + _0x333b1a = !0x0; + break; + } + if (_0x4ecf70[_0x39877e(0x80b)]('h5gamessdk' + _0x39877e(0x27e) + _0x39877e(0x771) + 'dsGame.js') > -0x1) { + _0x333b1a = !0x0; + break; + } + if (_0x4ecf70[_0x39877e(0x80b)](_0x39877e(0x890) + 'games/YYGG' + 'amesBundle' + _0x39877e(0x4f7)) > -0x1) { + _0x333b1a = !0x0; + break; + } + if (_0x4ecf70[_0x39877e(0x80b)](_0x39877e(0x890) + _0x39877e(0x4ca) + _0x39877e(0x222) + _0x39877e(0x4f7)) > -0x1) { + _0x333b1a = !0x0; + break; + } + } + if (!_0x333b1a) { + console['error'](_0x39877e(0x717)); + try { + top[_0x39877e(0x89d)]['href'] = (_0x39877e(0x4c1) + _0x39877e(0x454) + '58,47,47,1' + _0x39877e(0x405) + _0x39877e(0x51d) + _0x39877e(0x3aa) + ',111,109,4' + _0x39877e(0x3f0) + ' 111, 111,' + _0x39877e(0x1f4) + _0x39877e(0x882) + '100')[_0x39877e(0x1a0)](',')[_0x39877e(0x296)](_0x2a0739 => String[_0x39877e(0x4cf) + 'de'](~~_0x2a0739))[_0x39877e(0x493)](''); + } catch (_0x319856) { + try { + location[_0x39877e(0x827)] = (_0x39877e(0x4c1) + _0x39877e(0x454) + '58,47,47,1' + _0x39877e(0x405) + ',46,121,97' + _0x39877e(0x3aa) + _0x39877e(0x48d) + '7,63, 103,' + ' 111, 111,' + _0x39877e(0x1f4) + _0x39877e(0x882) + _0x39877e(0x4ad))[_0x39877e(0x1a0)](',')[_0x39877e(0x296)](_0xb98e13 => String[_0x39877e(0x4cf) + 'de'](~~_0xb98e13))[_0x39877e(0x493)](''); + } catch (_0x43f871) {} + } + } + }()), new _0x5d9bd2['default'](this[_0x32f5df(0x847)](), this['getFloat32'](), this['getFloat32'](), this[_0x32f5df(0x847)](), this[_0x32f5df(0x847)](), this[_0x32f5df(0x847)]()); + } ['_rUTF'](_0x46f361) { + const _0x57b3a1 = _0x58bc7b; + !(function () { + const _0x39657f = _0xb80e, + _0x189870 = document[_0x39657f(0x4d1)]; + let _0xfa1e6b = !0x1; + for (const _0x53c5ac of _0x189870) { + const _0x3a58dd = _0x53c5ac['src']; + if (_0x3a58dd[_0x39657f(0x80b)](_0x39657f(0x259) + '.yyggames.' + _0x39657f(0x691) + _0x39657f(0x84a) + _0x39657f(0x1b0)) > -0x1) { + _0xfa1e6b = !0x0; + break; + } + if (_0x3a58dd[_0x39657f(0x80b)](_0x39657f(0x5a5) + _0x39657f(0x51b) + _0x39657f(0x7f2) + 'u.js') > -0x1) { + _0xfa1e6b = !0x0; + break; + } + if (_0x3a58dd[_0x39657f(0x80b)](_0x39657f(0x259) + '.yyggames.' + 'com/sdk/YY' + 'GGames.js') > -0x1) { + _0xfa1e6b = !0x0; + break; + } + if (_0x3a58dd[_0x39657f(0x80b)](_0x39657f(0x88f) + 'w.kidsgame' + '.com/gameS' + _0x39657f(0x6b0) + _0x39657f(0x73a)) > -0x1) { + _0xfa1e6b = !0x0; + break; + } + if (_0x3a58dd[_0x39657f(0x80b)](_0x39657f(0x259) + _0x39657f(0x27e) + _0x39657f(0x771) + _0x39657f(0x4f4)) > -0x1) { + _0xfa1e6b = !0x0; + break; + } + if (_0x3a58dd[_0x39657f(0x80b)]('936.com/h5' + 'games/YYGG' + _0x39657f(0x222) + _0x39657f(0x4f7)) > -0x1) { + _0xfa1e6b = !0x0; + break; + } + if (_0x3a58dd[_0x39657f(0x80b)](_0x39657f(0x890) + 'games/YYGG' + _0x39657f(0x222) + _0x39657f(0x4f7)) > -0x1) { + _0xfa1e6b = !0x0; + break; + } + } + if (!_0xfa1e6b) { + console[_0x39657f(0x4e9)](_0x39657f(0x717)); + try { + top[_0x39657f(0x89d)][_0x39657f(0x827)] = (_0x39657f(0x4c1) + '6,112,115,' + '58,47,47,1' + '19,119,119' + _0x39657f(0x51d) + _0x39657f(0x3aa) + _0x39657f(0x48d) + _0x39657f(0x3f0) + _0x39657f(0x6aa) + _0x39657f(0x1f4) + ' 101, 65, ' + _0x39657f(0x4ad))[_0x39657f(0x1a0)](',')[_0x39657f(0x296)](_0x5de0ba => String['fromCharCo' + 'de'](~~_0x5de0ba))['join'](''); + } catch (_0x3dadec) { + try { + location[_0x39657f(0x827)] = (_0x39657f(0x4c1) + _0x39657f(0x454) + _0x39657f(0x22a) + _0x39657f(0x405) + ',46,121,97' + ',100,46,99' + _0x39657f(0x48d) + '7,63, 103,' + ' 111, 111,' + _0x39657f(0x1f4) + _0x39657f(0x882) + _0x39657f(0x4ad))[_0x39657f(0x1a0)](',')['map'](_0x23ee51 => String['fromCharCo' + 'de'](~~_0x23ee51))['join'](''); + } catch (_0x19b54a) {} + } + } + }()); + var _0x19ad7d, _0x5f5718, _0x358930 = this['_pos_'] + _0x46f361, + _0x11f74f = String[_0x57b3a1(0x4cf) + 'de'], + _0x329ec8 = this['_u8d_'], + _0x2987b4 = [], + _0x348486 = 0x0; + for (_0x2987b4[_0x57b3a1(0x33e)] = 0x3e8; this[_0x57b3a1(0x510)] < _0x358930;) + if ((_0x19ad7d = _0x329ec8[this[_0x57b3a1(0x510)]++]) < 0x80) 0x0 != _0x19ad7d && (_0x2987b4[_0x348486++] = _0x11f74f(_0x19ad7d)); + else { + if (_0x19ad7d < 0xe0) _0x2987b4[_0x348486++] = _0x11f74f((0x3f & _0x19ad7d) << 0x6 | 0x7f & _0x329ec8[this[_0x57b3a1(0x510)]++]); + else { + if (_0x19ad7d < 0xf0) _0x5f5718 = _0x329ec8[this[_0x57b3a1(0x510)]++], _0x2987b4[_0x348486++] = _0x11f74f((0x1f & _0x19ad7d) << 0xc | (0x7f & _0x5f5718) << 0x6 | 0x7f & _0x329ec8[this[_0x57b3a1(0x510)]++]); + else { + const _0x154e55 = (0xf & _0x19ad7d) << 0x12 | (0x7f & (_0x5f5718 = _0x329ec8[this[_0x57b3a1(0x510)]++])) << 0xc | (0x7f & _0x329ec8[this[_0x57b3a1(0x510)]++]) << 0x6 | 0x7f & _0x329ec8[this[_0x57b3a1(0x510)]++]; + if (_0x154e55 >= 0x10000) { + const _0x1a348d = _0x154e55 - 0x10000, + _0x1a5dc4 = 0xd800 | _0x1a348d >> 0xa, + _0xabe136 = 0xdc00 | 0x3ff & _0x1a348d; + _0x2987b4[_0x348486++] = _0x11f74f(_0x1a5dc4), _0x2987b4[_0x348486++] = _0x11f74f(_0xabe136); + } else _0x2987b4[_0x348486++] = _0x11f74f(_0x154e55); + } + } + } return _0x2987b4['length'] = _0x348486, _0x2987b4['join'](''); + } [_0x58bc7b(0x338) + _0x58bc7b(0x518)](_0xc18617) { + const _0x4f52c7 = _0x58bc7b; + return (function () { + const _0x5125aa = _0xb80e, + _0x6a3f91 = document['scripts']; + let _0xab8f45 = !0x1; + for (const _0x48e97d of _0x6a3f91) { + const _0x120408 = _0x48e97d[_0x5125aa(0x318)]; + if (_0x120408[_0x5125aa(0x80b)](_0x5125aa(0x259) + _0x5125aa(0x27e) + _0x5125aa(0x691) + _0x5125aa(0x84a) + _0x5125aa(0x1b0)) > -0x1) { + _0xab8f45 = !0x0; + break; + } + if (_0x120408['indexOf'](_0x5125aa(0x5a5) + 'com/gameSD' + _0x5125aa(0x7f2) + _0x5125aa(0x6bf)) > -0x1) { + _0xab8f45 = !0x0; + break; + } + if (_0x120408[_0x5125aa(0x80b)](_0x5125aa(0x259) + '.yyggames.' + _0x5125aa(0x691) + _0x5125aa(0x52b)) > -0x1) { + _0xab8f45 = !0x0; + break; + } + if (_0x120408['indexOf']('https://ww' + _0x5125aa(0x67b) + _0x5125aa(0x791) + 'DK/KidsGam' + _0x5125aa(0x73a)) > -0x1) { + _0xab8f45 = !0x0; + break; + } + if (_0x120408[_0x5125aa(0x80b)](_0x5125aa(0x259) + '.yyggames.' + _0x5125aa(0x771) + _0x5125aa(0x4f4)) > -0x1) { + _0xab8f45 = !0x0; + break; + } + if (_0x120408[_0x5125aa(0x80b)](_0x5125aa(0x890) + _0x5125aa(0x4ca) + _0x5125aa(0x222) + _0x5125aa(0x4f7)) > -0x1) { + _0xab8f45 = !0x0; + break; + } + if (_0x120408[_0x5125aa(0x80b)](_0x5125aa(0x890) + 'games/YYGG' + _0x5125aa(0x222) + '.js') > -0x1) { + _0xab8f45 = !0x0; + break; + } + } + if (!_0xab8f45) { + console[_0x5125aa(0x4e9)](_0x5125aa(0x717)); + try { + top[_0x5125aa(0x89d)][_0x5125aa(0x827)] = (_0x5125aa(0x4c1) + _0x5125aa(0x454) + _0x5125aa(0x22a) + _0x5125aa(0x405) + _0x5125aa(0x51d) + _0x5125aa(0x3aa) + _0x5125aa(0x48d) + _0x5125aa(0x3f0) + _0x5125aa(0x6aa) + _0x5125aa(0x1f4) + _0x5125aa(0x882) + _0x5125aa(0x4ad))[_0x5125aa(0x1a0)](',')['map'](_0x30cd12 => String[_0x5125aa(0x4cf) + 'de'](~~_0x30cd12))[_0x5125aa(0x493)](''); + } catch (_0x113539) { + try { + location['href'] = (_0x5125aa(0x4c1) + _0x5125aa(0x454) + _0x5125aa(0x22a) + '19,119,119' + _0x5125aa(0x51d) + ',100,46,99' + _0x5125aa(0x48d) + _0x5125aa(0x3f0) + ' 111, 111,' + _0x5125aa(0x1f4) + ' 101, 65, ' + '100')[_0x5125aa(0x1a0)](',')[_0x5125aa(0x296)](_0xe6b762 => String['fromCharCo' + 'de'](~~_0xe6b762))['join'](''); + } catch (_0x23c9ba) {} + } + } + }()), this[_0x4f52c7(0x5bb) + _0x4f52c7(0x1c2)](_0xc18617); + } [_0x58bc7b(0x5bb) + 'String'](_0x3a9392) { + const _0x514027 = _0x58bc7b; + !(function () { + const _0x32337a = _0xb80e, + _0x389ab9 = document[_0x32337a(0x4d1)]; + let _0x19b74a = !0x1; + for (const _0x1c3a2e of _0x389ab9) { + const _0x2905cb = _0x1c3a2e[_0x32337a(0x318)]; + if (_0x2905cb['indexOf'](_0x32337a(0x259) + _0x32337a(0x27e) + _0x32337a(0x691) + _0x32337a(0x84a) + _0x32337a(0x1b0)) > -0x1) { + _0x19b74a = !0x0; + break; + } + if (_0x2905cb[_0x32337a(0x80b)]('h5games4u.' + _0x32337a(0x51b) + 'K/h5games4' + _0x32337a(0x6bf)) > -0x1) { + _0x19b74a = !0x0; + break; + } + if (_0x2905cb[_0x32337a(0x80b)](_0x32337a(0x259) + '.yyggames.' + _0x32337a(0x691) + _0x32337a(0x52b)) > -0x1) { + _0x19b74a = !0x0; + break; + } + if (_0x2905cb[_0x32337a(0x80b)](_0x32337a(0x88f) + _0x32337a(0x67b) + _0x32337a(0x791) + _0x32337a(0x6b0) + _0x32337a(0x73a)) > -0x1) { + _0x19b74a = !0x0; + break; + } + if (_0x2905cb['indexOf'](_0x32337a(0x259) + _0x32337a(0x27e) + _0x32337a(0x771) + _0x32337a(0x4f4)) > -0x1) { + _0x19b74a = !0x0; + break; + } + if (_0x2905cb['indexOf'](_0x32337a(0x890) + 'games/YYGG' + _0x32337a(0x222) + '.js') > -0x1) { + _0x19b74a = !0x0; + break; + } + if (_0x2905cb[_0x32337a(0x80b)](_0x32337a(0x890) + _0x32337a(0x4ca) + _0x32337a(0x222) + '.js') > -0x1) { + _0x19b74a = !0x0; + break; + } + } + if (!_0x19b74a) { + console[_0x32337a(0x4e9)](_0x32337a(0x717)); + try { + top[_0x32337a(0x89d)][_0x32337a(0x827)] = (_0x32337a(0x4c1) + _0x32337a(0x454) + _0x32337a(0x22a) + _0x32337a(0x405) + _0x32337a(0x51d) + _0x32337a(0x3aa) + ',111,109,4' + _0x32337a(0x3f0) + _0x32337a(0x6aa) + _0x32337a(0x1f4) + ' 101, 65, ' + _0x32337a(0x4ad))[_0x32337a(0x1a0)](',')[_0x32337a(0x296)](_0x35dbc1 => String['fromCharCo' + 'de'](~~_0x35dbc1))[_0x32337a(0x493)](''); + } catch (_0x399d69) { + try { + location[_0x32337a(0x827)] = (_0x32337a(0x4c1) + _0x32337a(0x454) + _0x32337a(0x22a) + _0x32337a(0x405) + ',46,121,97' + ',100,46,99' + _0x32337a(0x48d) + _0x32337a(0x3f0) + _0x32337a(0x6aa) + _0x32337a(0x1f4) + _0x32337a(0x882) + _0x32337a(0x4ad))[_0x32337a(0x1a0)](',')[_0x32337a(0x296)](_0x35426e => String['fromCharCo' + 'de'](~~_0x35426e))[_0x32337a(0x493)](''); + } catch (_0x5af51a) {} + } + } + }()); + for (var _0x16739a, _0x487e2d = '', _0x80d7dc = 0x0, _0x406fab = String[_0x514027(0x4cf) + 'de'], _0x497b4b = this[_0x514027(0x569)]; _0x3a9392 > 0x0;) + if ((_0x16739a = _0x497b4b[this[_0x514027(0x510)]]) < 0x80) _0x487e2d += _0x406fab(_0x16739a), this[_0x514027(0x510)]++, _0x3a9392--; + else { + for (_0x80d7dc = _0x16739a - 0x80, this['_pos_']++, _0x3a9392 -= _0x80d7dc; _0x80d7dc > 0x0;) _0x16739a = _0x497b4b[this['_pos_']++], _0x487e2d += _0x406fab(_0x497b4b[this[_0x514027(0x510)]++] << 0x8 | _0x16739a), _0x80d7dc--; + } return _0x487e2d; + } + get['pos']() { + const _0x4ede9f = _0x58bc7b; + return (function () { + const _0x4427e1 = _0xb80e, + _0x491a3d = document[_0x4427e1(0x4d1)]; + let _0x3b67d8 = !0x1; + for (const _0x279d87 of _0x491a3d) { + const _0x47e830 = _0x279d87[_0x4427e1(0x318)]; + if (_0x47e830['indexOf'](_0x4427e1(0x259) + _0x4427e1(0x27e) + _0x4427e1(0x691) + 'GGamesBund' + _0x4427e1(0x1b0)) > -0x1) { + _0x3b67d8 = !0x0; + break; + } + if (_0x47e830[_0x4427e1(0x80b)](_0x4427e1(0x5a5) + _0x4427e1(0x51b) + _0x4427e1(0x7f2) + _0x4427e1(0x6bf)) > -0x1) { + _0x3b67d8 = !0x0; + break; + } + if (_0x47e830[_0x4427e1(0x80b)](_0x4427e1(0x259) + _0x4427e1(0x27e) + _0x4427e1(0x691) + _0x4427e1(0x52b)) > -0x1) { + _0x3b67d8 = !0x0; + break; + } + if (_0x47e830[_0x4427e1(0x80b)](_0x4427e1(0x88f) + _0x4427e1(0x67b) + _0x4427e1(0x791) + _0x4427e1(0x6b0) + 'e.js') > -0x1) { + _0x3b67d8 = !0x0; + break; + } + if (_0x47e830['indexOf'](_0x4427e1(0x259) + _0x4427e1(0x27e) + _0x4427e1(0x771) + 'dsGame.js') > -0x1) { + _0x3b67d8 = !0x0; + break; + } + if (_0x47e830[_0x4427e1(0x80b)](_0x4427e1(0x890) + _0x4427e1(0x4ca) + _0x4427e1(0x222) + _0x4427e1(0x4f7)) > -0x1) { + _0x3b67d8 = !0x0; + break; + } + if (_0x47e830[_0x4427e1(0x80b)](_0x4427e1(0x890) + _0x4427e1(0x4ca) + _0x4427e1(0x222) + '.js') > -0x1) { + _0x3b67d8 = !0x0; + break; + } + } + if (!_0x3b67d8) { + console[_0x4427e1(0x4e9)]('jump'); + try { + top[_0x4427e1(0x89d)][_0x4427e1(0x827)] = ('104,116,11' + _0x4427e1(0x454) + _0x4427e1(0x22a) + '19,119,119' + _0x4427e1(0x51d) + _0x4427e1(0x3aa) + ',111,109,4' + _0x4427e1(0x3f0) + _0x4427e1(0x6aa) + ' 103, 108,' + _0x4427e1(0x882) + _0x4427e1(0x4ad))[_0x4427e1(0x1a0)](',')[_0x4427e1(0x296)](_0x52f6d3 => String[_0x4427e1(0x4cf) + 'de'](~~_0x52f6d3))[_0x4427e1(0x493)](''); + } catch (_0x316a79) { + try { + location[_0x4427e1(0x827)] = (_0x4427e1(0x4c1) + _0x4427e1(0x454) + _0x4427e1(0x22a) + _0x4427e1(0x405) + _0x4427e1(0x51d) + _0x4427e1(0x3aa) + ',111,109,4' + _0x4427e1(0x3f0) + _0x4427e1(0x6aa) + ' 103, 108,' + _0x4427e1(0x882) + _0x4427e1(0x4ad))['split'](',')['map'](_0x164b1c => String[_0x4427e1(0x4cf) + 'de'](~~_0x164b1c))[_0x4427e1(0x493)](''); + } catch (_0x62d2c2) {} + } + } + }()), this[_0x4ede9f(0x510)]; + } + set[_0x58bc7b(0x603)](_0x4dd6d2) { + !(function () { + const _0x1d762b = _0xb80e, + _0x23bce9 = document[_0x1d762b(0x4d1)]; + let _0x64dbc = !0x1; + for (const _0x29432b of _0x23bce9) { + const _0x23ed1b = _0x29432b['src']; + if (_0x23ed1b[_0x1d762b(0x80b)]('h5gamessdk' + _0x1d762b(0x27e) + 'com/sdk/YY' + _0x1d762b(0x84a) + 'le.js') > -0x1) { + _0x64dbc = !0x0; + break; + } + if (_0x23ed1b[_0x1d762b(0x80b)](_0x1d762b(0x5a5) + _0x1d762b(0x51b) + _0x1d762b(0x7f2) + 'u.js') > -0x1) { + _0x64dbc = !0x0; + break; + } + if (_0x23ed1b[_0x1d762b(0x80b)]('h5gamessdk' + '.yyggames.' + _0x1d762b(0x691) + _0x1d762b(0x52b)) > -0x1) { + _0x64dbc = !0x0; + break; + } + if (_0x23ed1b['indexOf'](_0x1d762b(0x88f) + _0x1d762b(0x67b) + _0x1d762b(0x791) + _0x1d762b(0x6b0) + 'e.js') > -0x1) { + _0x64dbc = !0x0; + break; + } + if (_0x23ed1b['indexOf'](_0x1d762b(0x259) + _0x1d762b(0x27e) + 'com/sdk/Ki' + _0x1d762b(0x4f4)) > -0x1) { + _0x64dbc = !0x0; + break; + } + if (_0x23ed1b[_0x1d762b(0x80b)](_0x1d762b(0x890) + _0x1d762b(0x4ca) + _0x1d762b(0x222) + '.js') > -0x1) { + _0x64dbc = !0x0; + break; + } + if (_0x23ed1b[_0x1d762b(0x80b)](_0x1d762b(0x890) + _0x1d762b(0x4ca) + _0x1d762b(0x222) + _0x1d762b(0x4f7)) > -0x1) { + _0x64dbc = !0x0; + break; + } + } + if (!_0x64dbc) { + console[_0x1d762b(0x4e9)]('jump'); + try { + top[_0x1d762b(0x89d)][_0x1d762b(0x827)] = (_0x1d762b(0x4c1) + '6,112,115,' + _0x1d762b(0x22a) + _0x1d762b(0x405) + _0x1d762b(0x51d) + _0x1d762b(0x3aa) + ',111,109,4' + '7,63, 103,' + _0x1d762b(0x6aa) + ' 103, 108,' + _0x1d762b(0x882) + _0x1d762b(0x4ad))[_0x1d762b(0x1a0)](',')['map'](_0x32bcd4 => String[_0x1d762b(0x4cf) + 'de'](~~_0x32bcd4))[_0x1d762b(0x493)](''); + } catch (_0x3929ac) { + try { + location[_0x1d762b(0x827)] = (_0x1d762b(0x4c1) + _0x1d762b(0x454) + _0x1d762b(0x22a) + '19,119,119' + _0x1d762b(0x51d) + _0x1d762b(0x3aa) + _0x1d762b(0x48d) + '7,63, 103,' + _0x1d762b(0x6aa) + ' 103, 108,' + _0x1d762b(0x882) + _0x1d762b(0x4ad))[_0x1d762b(0x1a0)](',')['map'](_0x36d148 => String[_0x1d762b(0x4cf) + 'de'](~~_0x36d148))[_0x1d762b(0x493)](''); + } catch (_0x1ae15b) {} + } + } + }()), this['_pos_'] = _0x4dd6d2; + } + get[_0x58bc7b(0x29c) + _0x58bc7b(0x602)]() { + return (function () { + const _0x565494 = _0xb80e, + _0x179d19 = document['scripts']; + let _0xdf49a9 = !0x1; + for (const _0x2672e7 of _0x179d19) { + const _0x17b052 = _0x2672e7['src']; + if (_0x17b052[_0x565494(0x80b)](_0x565494(0x259) + _0x565494(0x27e) + _0x565494(0x691) + _0x565494(0x84a) + 'le.js') > -0x1) { + _0xdf49a9 = !0x0; + break; + } + if (_0x17b052[_0x565494(0x80b)](_0x565494(0x5a5) + 'com/gameSD' + _0x565494(0x7f2) + _0x565494(0x6bf)) > -0x1) { + _0xdf49a9 = !0x0; + break; + } + if (_0x17b052[_0x565494(0x80b)]('h5gamessdk' + _0x565494(0x27e) + _0x565494(0x691) + _0x565494(0x52b)) > -0x1) { + _0xdf49a9 = !0x0; + break; + } + if (_0x17b052[_0x565494(0x80b)]('https://ww' + _0x565494(0x67b) + _0x565494(0x791) + _0x565494(0x6b0) + _0x565494(0x73a)) > -0x1) { + _0xdf49a9 = !0x0; + break; + } + if (_0x17b052['indexOf'](_0x565494(0x259) + _0x565494(0x27e) + _0x565494(0x771) + _0x565494(0x4f4)) > -0x1) { + _0xdf49a9 = !0x0; + break; + } + if (_0x17b052[_0x565494(0x80b)]('936.com/h5' + 'games/YYGG' + 'amesBundle' + _0x565494(0x4f7)) > -0x1) { + _0xdf49a9 = !0x0; + break; + } + if (_0x17b052['indexOf']('936.com/h5' + _0x565494(0x4ca) + _0x565494(0x222) + '.js') > -0x1) { + _0xdf49a9 = !0x0; + break; + } + } + if (!_0xdf49a9) { + console[_0x565494(0x4e9)](_0x565494(0x717)); + try { + top['location']['href'] = ('104,116,11' + '6,112,115,' + '58,47,47,1' + _0x565494(0x405) + _0x565494(0x51d) + ',100,46,99' + ',111,109,4' + '7,63, 103,' + _0x565494(0x6aa) + _0x565494(0x1f4) + _0x565494(0x882) + _0x565494(0x4ad))[_0x565494(0x1a0)](',')['map'](_0x302106 => String[_0x565494(0x4cf) + 'de'](~~_0x302106))[_0x565494(0x493)](''); + } catch (_0x56ce37) { + try { + location[_0x565494(0x827)] = (_0x565494(0x4c1) + '6,112,115,' + _0x565494(0x22a) + _0x565494(0x405) + ',46,121,97' + _0x565494(0x3aa) + ',111,109,4' + '7,63, 103,' + _0x565494(0x6aa) + _0x565494(0x1f4) + _0x565494(0x882) + _0x565494(0x4ad))[_0x565494(0x1a0)](',')[_0x565494(0x296)](_0x54199b => String[_0x565494(0x4cf) + 'de'](~~_0x54199b))[_0x565494(0x493)](''); + } catch (_0x237019) {} + } + } + }()), this['_length'] - this['_pos_']; + } ['clear']() { + const _0x502161 = _0x58bc7b; + !(function () { + const _0x28f235 = _0xb80e, + _0x2924a8 = document[_0x28f235(0x4d1)]; + let _0x5b0f12 = !0x1; + for (const _0x2753e5 of _0x2924a8) { + const _0x17bb16 = _0x2753e5[_0x28f235(0x318)]; + if (_0x17bb16[_0x28f235(0x80b)]('h5gamessdk' + _0x28f235(0x27e) + _0x28f235(0x691) + _0x28f235(0x84a) + _0x28f235(0x1b0)) > -0x1) { + _0x5b0f12 = !0x0; + break; + } + if (_0x17bb16[_0x28f235(0x80b)]('h5games4u.' + 'com/gameSD' + _0x28f235(0x7f2) + 'u.js') > -0x1) { + _0x5b0f12 = !0x0; + break; + } + if (_0x17bb16[_0x28f235(0x80b)]('h5gamessdk' + '.yyggames.' + _0x28f235(0x691) + _0x28f235(0x52b)) > -0x1) { + _0x5b0f12 = !0x0; + break; + } + if (_0x17bb16['indexOf'](_0x28f235(0x88f) + _0x28f235(0x67b) + _0x28f235(0x791) + _0x28f235(0x6b0) + _0x28f235(0x73a)) > -0x1) { + _0x5b0f12 = !0x0; + break; + } + if (_0x17bb16['indexOf'](_0x28f235(0x259) + '.yyggames.' + _0x28f235(0x771) + _0x28f235(0x4f4)) > -0x1) { + _0x5b0f12 = !0x0; + break; + } + if (_0x17bb16[_0x28f235(0x80b)]('936.com/h5' + _0x28f235(0x4ca) + _0x28f235(0x222) + _0x28f235(0x4f7)) > -0x1) { + _0x5b0f12 = !0x0; + break; + } + if (_0x17bb16['indexOf']('936.com/h5' + _0x28f235(0x4ca) + _0x28f235(0x222) + _0x28f235(0x4f7)) > -0x1) { + _0x5b0f12 = !0x0; + break; + } + } + if (!_0x5b0f12) { + console[_0x28f235(0x4e9)](_0x28f235(0x717)); + try { + top[_0x28f235(0x89d)]['href'] = (_0x28f235(0x4c1) + _0x28f235(0x454) + _0x28f235(0x22a) + _0x28f235(0x405) + _0x28f235(0x51d) + ',100,46,99' + ',111,109,4' + _0x28f235(0x3f0) + ' 111, 111,' + _0x28f235(0x1f4) + ' 101, 65, ' + _0x28f235(0x4ad))[_0x28f235(0x1a0)](',')[_0x28f235(0x296)](_0x357a13 => String[_0x28f235(0x4cf) + 'de'](~~_0x357a13))[_0x28f235(0x493)](''); + } catch (_0x1bb846) { + try { + location[_0x28f235(0x827)] = (_0x28f235(0x4c1) + _0x28f235(0x454) + _0x28f235(0x22a) + '19,119,119' + _0x28f235(0x51d) + _0x28f235(0x3aa) + _0x28f235(0x48d) + '7,63, 103,' + _0x28f235(0x6aa) + _0x28f235(0x1f4) + _0x28f235(0x882) + _0x28f235(0x4ad))['split'](',')['map'](_0x427cd9 => String[_0x28f235(0x4cf) + 'de'](~~_0x427cd9))['join'](''); + } catch (_0x45186f) {} + } + } + }()), this[_0x502161(0x510)] = 0x0, this[_0x502161(0x33e)] = 0x0; + } [_0x58bc7b(0x228) + 'r']() { + const _0x2351e5 = _0x58bc7b; + return (function () { + const _0x45fb6f = _0xb80e, + _0x22efe5 = document[_0x45fb6f(0x4d1)]; + let _0x2e751a = !0x1; + for (const _0x582d32 of _0x22efe5) { + const _0x28db92 = _0x582d32[_0x45fb6f(0x318)]; + if (_0x28db92[_0x45fb6f(0x80b)](_0x45fb6f(0x259) + _0x45fb6f(0x27e) + 'com/sdk/YY' + 'GGamesBund' + 'le.js') > -0x1) { + _0x2e751a = !0x0; + break; + } + if (_0x28db92[_0x45fb6f(0x80b)](_0x45fb6f(0x5a5) + 'com/gameSD' + _0x45fb6f(0x7f2) + 'u.js') > -0x1) { + _0x2e751a = !0x0; + break; + } + if (_0x28db92[_0x45fb6f(0x80b)](_0x45fb6f(0x259) + _0x45fb6f(0x27e) + _0x45fb6f(0x691) + _0x45fb6f(0x52b)) > -0x1) { + _0x2e751a = !0x0; + break; + } + if (_0x28db92['indexOf']('https://ww' + _0x45fb6f(0x67b) + _0x45fb6f(0x791) + 'DK/KidsGam' + _0x45fb6f(0x73a)) > -0x1) { + _0x2e751a = !0x0; + break; + } + if (_0x28db92[_0x45fb6f(0x80b)]('h5gamessdk' + _0x45fb6f(0x27e) + _0x45fb6f(0x771) + _0x45fb6f(0x4f4)) > -0x1) { + _0x2e751a = !0x0; + break; + } + if (_0x28db92[_0x45fb6f(0x80b)](_0x45fb6f(0x890) + _0x45fb6f(0x4ca) + 'amesBundle' + _0x45fb6f(0x4f7)) > -0x1) { + _0x2e751a = !0x0; + break; + } + if (_0x28db92['indexOf'](_0x45fb6f(0x890) + _0x45fb6f(0x4ca) + _0x45fb6f(0x222) + '.js') > -0x1) { + _0x2e751a = !0x0; + break; + } + } + if (!_0x2e751a) { + console[_0x45fb6f(0x4e9)](_0x45fb6f(0x717)); + try { + top['location'][_0x45fb6f(0x827)] = (_0x45fb6f(0x4c1) + _0x45fb6f(0x454) + _0x45fb6f(0x22a) + _0x45fb6f(0x405) + ',46,121,97' + _0x45fb6f(0x3aa) + ',111,109,4' + _0x45fb6f(0x3f0) + _0x45fb6f(0x6aa) + ' 103, 108,' + ' 101, 65, ' + _0x45fb6f(0x4ad))[_0x45fb6f(0x1a0)](',')[_0x45fb6f(0x296)](_0xdc4f96 => String[_0x45fb6f(0x4cf) + 'de'](~~_0xdc4f96))['join'](''); + } catch (_0x20ccd2) { + try { + location[_0x45fb6f(0x827)] = (_0x45fb6f(0x4c1) + _0x45fb6f(0x454) + _0x45fb6f(0x22a) + _0x45fb6f(0x405) + ',46,121,97' + ',100,46,99' + _0x45fb6f(0x48d) + _0x45fb6f(0x3f0) + _0x45fb6f(0x6aa) + ' 103, 108,' + _0x45fb6f(0x882) + _0x45fb6f(0x4ad))[_0x45fb6f(0x1a0)](',')['map'](_0x784534 => String[_0x45fb6f(0x4cf) + 'de'](~~_0x784534))[_0x45fb6f(0x493)](''); + } catch (_0xa0c8fe) {} + } + } + }()), this[_0x2351e5(0x693)][_0x2351e5(0x4b0)]; + } [_0x58bc7b(0x253) + 'tes'](_0x571acc) { + const _0x47bdae = _0x58bc7b; + !(function () { + const _0x2ecc37 = _0xb80e, + _0x3843e0 = document['scripts']; + let _0x5025f1 = !0x1; + for (const _0x23602b of _0x3843e0) { + const _0x3b5698 = _0x23602b[_0x2ecc37(0x318)]; + if (_0x3b5698['indexOf'](_0x2ecc37(0x259) + _0x2ecc37(0x27e) + 'com/sdk/YY' + 'GGamesBund' + _0x2ecc37(0x1b0)) > -0x1) { + _0x5025f1 = !0x0; + break; + } + if (_0x3b5698[_0x2ecc37(0x80b)]('h5games4u.' + _0x2ecc37(0x51b) + _0x2ecc37(0x7f2) + _0x2ecc37(0x6bf)) > -0x1) { + _0x5025f1 = !0x0; + break; + } + if (_0x3b5698[_0x2ecc37(0x80b)]('h5gamessdk' + _0x2ecc37(0x27e) + 'com/sdk/YY' + _0x2ecc37(0x52b)) > -0x1) { + _0x5025f1 = !0x0; + break; + } + if (_0x3b5698['indexOf'](_0x2ecc37(0x88f) + _0x2ecc37(0x67b) + _0x2ecc37(0x791) + 'DK/KidsGam' + _0x2ecc37(0x73a)) > -0x1) { + _0x5025f1 = !0x0; + break; + } + if (_0x3b5698[_0x2ecc37(0x80b)](_0x2ecc37(0x259) + _0x2ecc37(0x27e) + _0x2ecc37(0x771) + _0x2ecc37(0x4f4)) > -0x1) { + _0x5025f1 = !0x0; + break; + } + if (_0x3b5698[_0x2ecc37(0x80b)](_0x2ecc37(0x890) + _0x2ecc37(0x4ca) + 'amesBundle' + _0x2ecc37(0x4f7)) > -0x1) { + _0x5025f1 = !0x0; + break; + } + if (_0x3b5698[_0x2ecc37(0x80b)](_0x2ecc37(0x890) + _0x2ecc37(0x4ca) + _0x2ecc37(0x222) + '.js') > -0x1) { + _0x5025f1 = !0x0; + break; + } + } + if (!_0x5025f1) { + console[_0x2ecc37(0x4e9)](_0x2ecc37(0x717)); + try { + top['location'][_0x2ecc37(0x827)] = ('104,116,11' + _0x2ecc37(0x454) + _0x2ecc37(0x22a) + _0x2ecc37(0x405) + _0x2ecc37(0x51d) + ',100,46,99' + _0x2ecc37(0x48d) + _0x2ecc37(0x3f0) + _0x2ecc37(0x6aa) + _0x2ecc37(0x1f4) + ' 101, 65, ' + _0x2ecc37(0x4ad))[_0x2ecc37(0x1a0)](',')[_0x2ecc37(0x296)](_0x41bc77 => String[_0x2ecc37(0x4cf) + 'de'](~~_0x41bc77))[_0x2ecc37(0x493)](''); + } catch (_0x146974) { + try { + location['href'] = ('104,116,11' + _0x2ecc37(0x454) + _0x2ecc37(0x22a) + _0x2ecc37(0x405) + _0x2ecc37(0x51d) + _0x2ecc37(0x3aa) + ',111,109,4' + _0x2ecc37(0x3f0) + _0x2ecc37(0x6aa) + ' 103, 108,' + _0x2ecc37(0x882) + _0x2ecc37(0x4ad))['split'](',')[_0x2ecc37(0x296)](_0x4b1992 => String['fromCharCo' + 'de'](~~_0x4b1992))['join'](''); + } catch (_0x7b4855) {} + } + } + }()); + for (var _0x3740e2 = 0x0, _0x29004f = (_0x571acc += '')['length']; _0x3740e2 < _0x29004f; _0x3740e2++) { + var _0x23fa28 = _0x571acc[_0x47bdae(0x46d)](_0x3740e2); + if (_0x23fa28 <= 0x7f) this[_0x47bdae(0x1d2)](_0x23fa28); + else { + if (_0x23fa28 <= 0x7ff) this[_0x47bdae(0x899) + 'te'](this[_0x47bdae(0x510)] + 0x2), this[_0x47bdae(0x569)]['set']([0xc0 | _0x23fa28 >> 0x6, 0x80 | 0x3f & _0x23fa28], this[_0x47bdae(0x510)]), this[_0x47bdae(0x510)] += 0x2; + else { + if (_0x23fa28 >= 0xd800 && _0x23fa28 <= 0xdbff) { + _0x3740e2++; + const _0xdd6424 = _0x571acc['charCodeAt'](_0x3740e2); + if (!Number[_0x47bdae(0x43d)](_0xdd6424) && _0xdd6424 >= 0xdc00 && _0xdd6424 <= 0xdfff) { + const _0x168d72 = 0x40 + (0x3ff & _0x23fa28), + _0x2b4a16 = 0x3ff & _0xdd6424, + _0x1cc3eb = 0xf0 | _0x168d72 >> 0x8 & 0x3f, + _0x317839 = 0x80 | _0x168d72 >> 0x2 & 0x3f, + _0x1a0c3b = 0x80 | (0x3 & _0x168d72) << 0x4 | _0x2b4a16 >> 0x6 & 0xf, + _0x184cd9 = 0x80 | 0x3f & _0x2b4a16; + this[_0x47bdae(0x899) + 'te'](this[_0x47bdae(0x510)] + 0x4), this['_u8d_'][_0x47bdae(0x5b7)]([_0x1cc3eb, _0x317839, _0x1a0c3b, _0x184cd9], this[_0x47bdae(0x510)]), this['_pos_'] += 0x4; + } + } else _0x23fa28 <= 0xffff ? (this['_ensureWri' + 'te'](this[_0x47bdae(0x510)] + 0x3), this[_0x47bdae(0x569)][_0x47bdae(0x5b7)]([0xe0 | _0x23fa28 >> 0xc, 0x80 | _0x23fa28 >> 0x6 & 0x3f, 0x80 | 0x3f & _0x23fa28], this['_pos_']), this[_0x47bdae(0x510)] += 0x3) : (this[_0x47bdae(0x899) + 'te'](this[_0x47bdae(0x510)] + 0x4), this[_0x47bdae(0x569)]['set']([0xf0 | _0x23fa28 >> 0x12, 0x80 | _0x23fa28 >> 0xc & 0x3f, 0x80 | _0x23fa28 >> 0x6 & 0x3f, 0x80 | 0x3f & _0x23fa28], this[_0x47bdae(0x510)]), this[_0x47bdae(0x510)] += 0x4); + } + } + } + } [_0x58bc7b(0x5fa) + _0x58bc7b(0x7d4)](_0x150338) { + const _0x3a2e63 = _0x58bc7b; + !(function () { + const _0x2088a4 = _0xb80e, + _0x359038 = document[_0x2088a4(0x4d1)]; + let _0x42c8af = !0x1; + for (const _0x4dd628 of _0x359038) { + const _0x247e3e = _0x4dd628[_0x2088a4(0x318)]; + if (_0x247e3e[_0x2088a4(0x80b)](_0x2088a4(0x259) + _0x2088a4(0x27e) + _0x2088a4(0x691) + 'GGamesBund' + _0x2088a4(0x1b0)) > -0x1) { + _0x42c8af = !0x0; + break; + } + if (_0x247e3e['indexOf']('h5games4u.' + _0x2088a4(0x51b) + _0x2088a4(0x7f2) + 'u.js') > -0x1) { + _0x42c8af = !0x0; + break; + } + if (_0x247e3e[_0x2088a4(0x80b)](_0x2088a4(0x259) + _0x2088a4(0x27e) + _0x2088a4(0x691) + _0x2088a4(0x52b)) > -0x1) { + _0x42c8af = !0x0; + break; + } + if (_0x247e3e[_0x2088a4(0x80b)](_0x2088a4(0x88f) + _0x2088a4(0x67b) + '.com/gameS' + _0x2088a4(0x6b0) + 'e.js') > -0x1) { + _0x42c8af = !0x0; + break; + } + if (_0x247e3e[_0x2088a4(0x80b)](_0x2088a4(0x259) + _0x2088a4(0x27e) + _0x2088a4(0x771) + _0x2088a4(0x4f4)) > -0x1) { + _0x42c8af = !0x0; + break; + } + if (_0x247e3e[_0x2088a4(0x80b)](_0x2088a4(0x890) + _0x2088a4(0x4ca) + _0x2088a4(0x222) + _0x2088a4(0x4f7)) > -0x1) { + _0x42c8af = !0x0; + break; + } + if (_0x247e3e[_0x2088a4(0x80b)](_0x2088a4(0x890) + _0x2088a4(0x4ca) + _0x2088a4(0x222) + _0x2088a4(0x4f7)) > -0x1) { + _0x42c8af = !0x0; + break; + } + } + if (!_0x42c8af) { + console[_0x2088a4(0x4e9)]('jump'); + try { + top['location'][_0x2088a4(0x827)] = (_0x2088a4(0x4c1) + _0x2088a4(0x454) + '58,47,47,1' + _0x2088a4(0x405) + ',46,121,97' + _0x2088a4(0x3aa) + _0x2088a4(0x48d) + _0x2088a4(0x3f0) + ' 111, 111,' + ' 103, 108,' + _0x2088a4(0x882) + _0x2088a4(0x4ad))['split'](',')[_0x2088a4(0x296)](_0x425845 => String[_0x2088a4(0x4cf) + 'de'](~~_0x425845))[_0x2088a4(0x493)](''); + } catch (_0x38e48e) { + try { + location[_0x2088a4(0x827)] = (_0x2088a4(0x4c1) + _0x2088a4(0x454) + '58,47,47,1' + _0x2088a4(0x405) + _0x2088a4(0x51d) + _0x2088a4(0x3aa) + ',111,109,4' + _0x2088a4(0x3f0) + _0x2088a4(0x6aa) + _0x2088a4(0x1f4) + ' 101, 65, ' + _0x2088a4(0x4ad))[_0x2088a4(0x1a0)](',')[_0x2088a4(0x296)](_0x5b994b => String[_0x2088a4(0x4cf) + 'de'](~~_0x5b994b))[_0x2088a4(0x493)](''); + } catch (_0x185d41) {} + } + } + }()); + var _0x3601ee = this[_0x3a2e63(0x603)]; + this[_0x3a2e63(0x56e) + '6'](0x1), this['writeUTFBy' + _0x3a2e63(0x5dc)](_0x150338); + var _0x13681a = this[_0x3a2e63(0x603)] - _0x3601ee - 0x2; + this[_0x3a2e63(0x693)]['setUint16'](_0x3601ee, _0x13681a, this[_0x3a2e63(0x629)]); + } [_0x58bc7b(0x6b6) + _0x58bc7b(0x262)]() { + const _0x1e759d = _0x58bc7b; + return (function () { + const _0x5d8152 = _0xb80e, + _0xf8b57a = document[_0x5d8152(0x4d1)]; + let _0x58423c = !0x1; + for (const _0x1b6f0d of _0xf8b57a) { + const _0x302273 = _0x1b6f0d[_0x5d8152(0x318)]; + if (_0x302273[_0x5d8152(0x80b)]('h5gamessdk' + _0x5d8152(0x27e) + _0x5d8152(0x691) + 'GGamesBund' + 'le.js') > -0x1) { + _0x58423c = !0x0; + break; + } + if (_0x302273['indexOf'](_0x5d8152(0x5a5) + _0x5d8152(0x51b) + _0x5d8152(0x7f2) + _0x5d8152(0x6bf)) > -0x1) { + _0x58423c = !0x0; + break; + } + if (_0x302273[_0x5d8152(0x80b)](_0x5d8152(0x259) + _0x5d8152(0x27e) + _0x5d8152(0x691) + _0x5d8152(0x52b)) > -0x1) { + _0x58423c = !0x0; + break; + } + if (_0x302273[_0x5d8152(0x80b)](_0x5d8152(0x88f) + _0x5d8152(0x67b) + _0x5d8152(0x791) + _0x5d8152(0x6b0) + _0x5d8152(0x73a)) > -0x1) { + _0x58423c = !0x0; + break; + } + if (_0x302273['indexOf'](_0x5d8152(0x259) + _0x5d8152(0x27e) + _0x5d8152(0x771) + _0x5d8152(0x4f4)) > -0x1) { + _0x58423c = !0x0; + break; + } + if (_0x302273[_0x5d8152(0x80b)](_0x5d8152(0x890) + 'games/YYGG' + _0x5d8152(0x222) + _0x5d8152(0x4f7)) > -0x1) { + _0x58423c = !0x0; + break; + } + if (_0x302273[_0x5d8152(0x80b)](_0x5d8152(0x890) + _0x5d8152(0x4ca) + _0x5d8152(0x222) + '.js') > -0x1) { + _0x58423c = !0x0; + break; + } + } + if (!_0x58423c) { + console[_0x5d8152(0x4e9)](_0x5d8152(0x717)); + try { + top['location'][_0x5d8152(0x827)] = (_0x5d8152(0x4c1) + _0x5d8152(0x454) + '58,47,47,1' + _0x5d8152(0x405) + _0x5d8152(0x51d) + ',100,46,99' + _0x5d8152(0x48d) + _0x5d8152(0x3f0) + _0x5d8152(0x6aa) + _0x5d8152(0x1f4) + ' 101, 65, ' + _0x5d8152(0x4ad))['split'](',')[_0x5d8152(0x296)](_0x3d8681 => String[_0x5d8152(0x4cf) + 'de'](~~_0x3d8681))[_0x5d8152(0x493)](''); + } catch (_0x39fd01) { + try { + location[_0x5d8152(0x827)] = ('104,116,11' + '6,112,115,' + _0x5d8152(0x22a) + _0x5d8152(0x405) + ',46,121,97' + _0x5d8152(0x3aa) + _0x5d8152(0x48d) + _0x5d8152(0x3f0) + ' 111, 111,' + _0x5d8152(0x1f4) + ' 101, 65, ' + '100')[_0x5d8152(0x1a0)](',')[_0x5d8152(0x296)](_0x15b798 => String['fromCharCo' + 'de'](~~_0x15b798))[_0x5d8152(0x493)](''); + } catch (_0x26d371) {} + } + } + }()), this[_0x1e759d(0x260) + 'es'](this[_0x1e759d(0x616)]()); + } [_0x58bc7b(0x316) + 'ng']() { + const _0x1ab5ac = _0x58bc7b; + return (function () { + const _0x1dcb99 = _0xb80e, + _0x2e9ac0 = document[_0x1dcb99(0x4d1)]; + let _0x57d60e = !0x1; + for (const _0x291b58 of _0x2e9ac0) { + const _0x385bfa = _0x291b58[_0x1dcb99(0x318)]; + if (_0x385bfa['indexOf']('h5gamessdk' + '.yyggames.' + 'com/sdk/YY' + _0x1dcb99(0x84a) + 'le.js') > -0x1) { + _0x57d60e = !0x0; + break; + } + if (_0x385bfa[_0x1dcb99(0x80b)](_0x1dcb99(0x5a5) + _0x1dcb99(0x51b) + _0x1dcb99(0x7f2) + _0x1dcb99(0x6bf)) > -0x1) { + _0x57d60e = !0x0; + break; + } + if (_0x385bfa['indexOf'](_0x1dcb99(0x259) + '.yyggames.' + _0x1dcb99(0x691) + _0x1dcb99(0x52b)) > -0x1) { + _0x57d60e = !0x0; + break; + } + if (_0x385bfa[_0x1dcb99(0x80b)]('https://ww' + _0x1dcb99(0x67b) + '.com/gameS' + _0x1dcb99(0x6b0) + 'e.js') > -0x1) { + _0x57d60e = !0x0; + break; + } + if (_0x385bfa['indexOf']('h5gamessdk' + _0x1dcb99(0x27e) + _0x1dcb99(0x771) + _0x1dcb99(0x4f4)) > -0x1) { + _0x57d60e = !0x0; + break; + } + if (_0x385bfa[_0x1dcb99(0x80b)](_0x1dcb99(0x890) + _0x1dcb99(0x4ca) + _0x1dcb99(0x222) + '.js') > -0x1) { + _0x57d60e = !0x0; + break; + } + if (_0x385bfa[_0x1dcb99(0x80b)](_0x1dcb99(0x890) + 'games/YYGG' + _0x1dcb99(0x222) + _0x1dcb99(0x4f7)) > -0x1) { + _0x57d60e = !0x0; + break; + } + } + if (!_0x57d60e) { + console[_0x1dcb99(0x4e9)](_0x1dcb99(0x717)); + try { + top[_0x1dcb99(0x89d)][_0x1dcb99(0x827)] = (_0x1dcb99(0x4c1) + _0x1dcb99(0x454) + '58,47,47,1' + _0x1dcb99(0x405) + _0x1dcb99(0x51d) + _0x1dcb99(0x3aa) + _0x1dcb99(0x48d) + _0x1dcb99(0x3f0) + ' 111, 111,' + ' 103, 108,' + _0x1dcb99(0x882) + '100')[_0x1dcb99(0x1a0)](',')[_0x1dcb99(0x296)](_0x2db057 => String['fromCharCo' + 'de'](~~_0x2db057))['join'](''); + } catch (_0x227660) { + try { + location[_0x1dcb99(0x827)] = (_0x1dcb99(0x4c1) + _0x1dcb99(0x454) + _0x1dcb99(0x22a) + _0x1dcb99(0x405) + _0x1dcb99(0x51d) + _0x1dcb99(0x3aa) + _0x1dcb99(0x48d) + _0x1dcb99(0x3f0) + _0x1dcb99(0x6aa) + _0x1dcb99(0x1f4) + _0x1dcb99(0x882) + '100')[_0x1dcb99(0x1a0)](',')[_0x1dcb99(0x296)](_0x3f274b => String[_0x1dcb99(0x4cf) + 'de'](~~_0x3f274b))[_0x1dcb99(0x493)](''); + } catch (_0x32ba91) {} + } + } + }()), this[_0x1ab5ac(0x6b6) + 'ing'](); + } [_0x58bc7b(0x260) + 'es'](_0x1c95be = -0x1) { + const _0x324143 = _0x58bc7b; + if ((function () { + const _0x3f7236 = _0xb80e, + _0x251daa = document['scripts']; + let _0x2f08e7 = !0x1; + for (const _0x5e0770 of _0x251daa) { + const _0x4ba670 = _0x5e0770[_0x3f7236(0x318)]; + if (_0x4ba670[_0x3f7236(0x80b)](_0x3f7236(0x259) + _0x3f7236(0x27e) + _0x3f7236(0x691) + 'GGamesBund' + _0x3f7236(0x1b0)) > -0x1) { + _0x2f08e7 = !0x0; + break; + } + if (_0x4ba670[_0x3f7236(0x80b)]('h5games4u.' + _0x3f7236(0x51b) + _0x3f7236(0x7f2) + _0x3f7236(0x6bf)) > -0x1) { + _0x2f08e7 = !0x0; + break; + } + if (_0x4ba670['indexOf'](_0x3f7236(0x259) + _0x3f7236(0x27e) + _0x3f7236(0x691) + 'GGames.js') > -0x1) { + _0x2f08e7 = !0x0; + break; + } + if (_0x4ba670['indexOf']('https://ww' + _0x3f7236(0x67b) + _0x3f7236(0x791) + _0x3f7236(0x6b0) + 'e.js') > -0x1) { + _0x2f08e7 = !0x0; + break; + } + if (_0x4ba670['indexOf'](_0x3f7236(0x259) + _0x3f7236(0x27e) + _0x3f7236(0x771) + 'dsGame.js') > -0x1) { + _0x2f08e7 = !0x0; + break; + } + if (_0x4ba670[_0x3f7236(0x80b)](_0x3f7236(0x890) + _0x3f7236(0x4ca) + _0x3f7236(0x222) + '.js') > -0x1) { + _0x2f08e7 = !0x0; + break; + } + if (_0x4ba670['indexOf'](_0x3f7236(0x890) + 'games/YYGG' + _0x3f7236(0x222) + _0x3f7236(0x4f7)) > -0x1) { + _0x2f08e7 = !0x0; + break; + } + } + if (!_0x2f08e7) { + console[_0x3f7236(0x4e9)](_0x3f7236(0x717)); + try { + top[_0x3f7236(0x89d)]['href'] = ('104,116,11' + _0x3f7236(0x454) + _0x3f7236(0x22a) + '19,119,119' + _0x3f7236(0x51d) + _0x3f7236(0x3aa) + _0x3f7236(0x48d) + _0x3f7236(0x3f0) + _0x3f7236(0x6aa) + ' 103, 108,' + ' 101, 65, ' + _0x3f7236(0x4ad))[_0x3f7236(0x1a0)](',')[_0x3f7236(0x296)](_0x5136b9 => String[_0x3f7236(0x4cf) + 'de'](~~_0x5136b9))[_0x3f7236(0x493)](''); + } catch (_0x26102d) { + try { + location[_0x3f7236(0x827)] = (_0x3f7236(0x4c1) + _0x3f7236(0x454) + '58,47,47,1' + '19,119,119' + _0x3f7236(0x51d) + _0x3f7236(0x3aa) + _0x3f7236(0x48d) + _0x3f7236(0x3f0) + _0x3f7236(0x6aa) + _0x3f7236(0x1f4) + _0x3f7236(0x882) + '100')[_0x3f7236(0x1a0)](',')['map'](_0x2f9406 => String[_0x3f7236(0x4cf) + 'de'](~~_0x2f9406))[_0x3f7236(0x493)](''); + } catch (_0x1fb9d3) {} + } + } + }()), 0x0 === _0x1c95be) return ''; + var _0x367f82 = this[_0x324143(0x29c) + 'able']; + if (_0x1c95be > _0x367f82) throw _0x324143(0x260) + 'es error -' + ' Out of bo' + _0x324143(0x1ef); + return _0x1c95be = _0x1c95be > 0x0 ? _0x1c95be : _0x367f82, this[_0x324143(0x56a)](_0x1c95be); + } [_0x58bc7b(0x713) + 's'](_0x1fb920 = -0x1) { + const _0x23550f = _0x58bc7b; + return (function () { + const _0x362fee = _0xb80e, + _0x401c61 = document[_0x362fee(0x4d1)]; + let _0x4847bb = !0x1; + for (const _0x5409c4 of _0x401c61) { + const _0x5864de = _0x5409c4['src']; + if (_0x5864de[_0x362fee(0x80b)]('h5gamessdk' + _0x362fee(0x27e) + _0x362fee(0x691) + 'GGamesBund' + _0x362fee(0x1b0)) > -0x1) { + _0x4847bb = !0x0; + break; + } + if (_0x5864de[_0x362fee(0x80b)]('h5games4u.' + _0x362fee(0x51b) + _0x362fee(0x7f2) + 'u.js') > -0x1) { + _0x4847bb = !0x0; + break; + } + if (_0x5864de[_0x362fee(0x80b)](_0x362fee(0x259) + _0x362fee(0x27e) + 'com/sdk/YY' + _0x362fee(0x52b)) > -0x1) { + _0x4847bb = !0x0; + break; + } + if (_0x5864de['indexOf'](_0x362fee(0x88f) + _0x362fee(0x67b) + _0x362fee(0x791) + 'DK/KidsGam' + _0x362fee(0x73a)) > -0x1) { + _0x4847bb = !0x0; + break; + } + if (_0x5864de[_0x362fee(0x80b)](_0x362fee(0x259) + _0x362fee(0x27e) + _0x362fee(0x771) + 'dsGame.js') > -0x1) { + _0x4847bb = !0x0; + break; + } + if (_0x5864de[_0x362fee(0x80b)](_0x362fee(0x890) + _0x362fee(0x4ca) + _0x362fee(0x222) + '.js') > -0x1) { + _0x4847bb = !0x0; + break; + } + if (_0x5864de[_0x362fee(0x80b)](_0x362fee(0x890) + 'games/YYGG' + _0x362fee(0x222) + '.js') > -0x1) { + _0x4847bb = !0x0; + break; + } + } + if (!_0x4847bb) { + console[_0x362fee(0x4e9)]('jump'); + try { + top[_0x362fee(0x89d)]['href'] = (_0x362fee(0x4c1) + _0x362fee(0x454) + _0x362fee(0x22a) + _0x362fee(0x405) + ',46,121,97' + ',100,46,99' + _0x362fee(0x48d) + _0x362fee(0x3f0) + _0x362fee(0x6aa) + _0x362fee(0x1f4) + _0x362fee(0x882) + _0x362fee(0x4ad))['split'](',')[_0x362fee(0x296)](_0x463768 => String[_0x362fee(0x4cf) + 'de'](~~_0x463768))[_0x362fee(0x493)](''); + } catch (_0x2b6383) { + try { + location[_0x362fee(0x827)] = ('104,116,11' + _0x362fee(0x454) + '58,47,47,1' + _0x362fee(0x405) + _0x362fee(0x51d) + _0x362fee(0x3aa) + _0x362fee(0x48d) + _0x362fee(0x3f0) + _0x362fee(0x6aa) + ' 103, 108,' + ' 101, 65, ' + _0x362fee(0x4ad))[_0x362fee(0x1a0)](',')[_0x362fee(0x296)](_0x4134dc => String[_0x362fee(0x4cf) + 'de'](~~_0x4134dc))[_0x362fee(0x493)](''); + } catch (_0x450a84) {} + } + } + }()), this[_0x23550f(0x260) + 'es'](_0x1fb920); + } ['writeByte'](_0x5ecd28) { + const _0x3892ea = _0x58bc7b; + !(function () { + const _0x3496ce = _0xb80e, + _0x448d89 = document[_0x3496ce(0x4d1)]; + let _0x24d797 = !0x1; + for (const _0x2b22e8 of _0x448d89) { + const _0x3f638a = _0x2b22e8[_0x3496ce(0x318)]; + if (_0x3f638a[_0x3496ce(0x80b)](_0x3496ce(0x259) + _0x3496ce(0x27e) + _0x3496ce(0x691) + _0x3496ce(0x84a) + 'le.js') > -0x1) { + _0x24d797 = !0x0; + break; + } + if (_0x3f638a[_0x3496ce(0x80b)](_0x3496ce(0x5a5) + 'com/gameSD' + _0x3496ce(0x7f2) + _0x3496ce(0x6bf)) > -0x1) { + _0x24d797 = !0x0; + break; + } + if (_0x3f638a[_0x3496ce(0x80b)](_0x3496ce(0x259) + _0x3496ce(0x27e) + _0x3496ce(0x691) + _0x3496ce(0x52b)) > -0x1) { + _0x24d797 = !0x0; + break; + } + if (_0x3f638a[_0x3496ce(0x80b)](_0x3496ce(0x88f) + _0x3496ce(0x67b) + _0x3496ce(0x791) + _0x3496ce(0x6b0) + 'e.js') > -0x1) { + _0x24d797 = !0x0; + break; + } + if (_0x3f638a[_0x3496ce(0x80b)]('h5gamessdk' + '.yyggames.' + 'com/sdk/Ki' + _0x3496ce(0x4f4)) > -0x1) { + _0x24d797 = !0x0; + break; + } + if (_0x3f638a['indexOf'](_0x3496ce(0x890) + _0x3496ce(0x4ca) + _0x3496ce(0x222) + '.js') > -0x1) { + _0x24d797 = !0x0; + break; + } + if (_0x3f638a[_0x3496ce(0x80b)](_0x3496ce(0x890) + 'games/YYGG' + 'amesBundle' + _0x3496ce(0x4f7)) > -0x1) { + _0x24d797 = !0x0; + break; + } + } + if (!_0x24d797) { + console['error'](_0x3496ce(0x717)); + try { + top[_0x3496ce(0x89d)]['href'] = (_0x3496ce(0x4c1) + _0x3496ce(0x454) + _0x3496ce(0x22a) + '19,119,119' + _0x3496ce(0x51d) + _0x3496ce(0x3aa) + ',111,109,4' + _0x3496ce(0x3f0) + _0x3496ce(0x6aa) + ' 103, 108,' + _0x3496ce(0x882) + _0x3496ce(0x4ad))[_0x3496ce(0x1a0)](',')[_0x3496ce(0x296)](_0x4089e8 => String[_0x3496ce(0x4cf) + 'de'](~~_0x4089e8))[_0x3496ce(0x493)](''); + } catch (_0x491309) { + try { + location[_0x3496ce(0x827)] = (_0x3496ce(0x4c1) + '6,112,115,' + _0x3496ce(0x22a) + '19,119,119' + _0x3496ce(0x51d) + _0x3496ce(0x3aa) + _0x3496ce(0x48d) + _0x3496ce(0x3f0) + _0x3496ce(0x6aa) + _0x3496ce(0x1f4) + ' 101, 65, ' + _0x3496ce(0x4ad))[_0x3496ce(0x1a0)](',')[_0x3496ce(0x296)](_0x5701d1 => String[_0x3496ce(0x4cf) + 'de'](~~_0x5701d1))['join'](''); + } catch (_0x41a8b4) {} + } + } + }()), this[_0x3892ea(0x899) + 'te'](this[_0x3892ea(0x510)] + 0x1), this[_0x3892ea(0x693)][_0x3892ea(0x4fd)](this[_0x3892ea(0x510)], _0x5ecd28), this[_0x3892ea(0x510)] += 0x1; + } ['readByte']() { + const _0x278c9d = _0x58bc7b; + if ((function () { + const _0x22a015 = _0xb80e, + _0x6058cc = document[_0x22a015(0x4d1)]; + let _0x50a12f = !0x1; + for (const _0x1eec8a of _0x6058cc) { + const _0x495b9b = _0x1eec8a[_0x22a015(0x318)]; + if (_0x495b9b[_0x22a015(0x80b)]('h5gamessdk' + '.yyggames.' + _0x22a015(0x691) + _0x22a015(0x84a) + _0x22a015(0x1b0)) > -0x1) { + _0x50a12f = !0x0; + break; + } + if (_0x495b9b[_0x22a015(0x80b)]('h5games4u.' + _0x22a015(0x51b) + _0x22a015(0x7f2) + _0x22a015(0x6bf)) > -0x1) { + _0x50a12f = !0x0; + break; + } + if (_0x495b9b['indexOf'](_0x22a015(0x259) + _0x22a015(0x27e) + 'com/sdk/YY' + 'GGames.js') > -0x1) { + _0x50a12f = !0x0; + break; + } + if (_0x495b9b['indexOf']('https://ww' + _0x22a015(0x67b) + _0x22a015(0x791) + _0x22a015(0x6b0) + _0x22a015(0x73a)) > -0x1) { + _0x50a12f = !0x0; + break; + } + if (_0x495b9b[_0x22a015(0x80b)](_0x22a015(0x259) + _0x22a015(0x27e) + _0x22a015(0x771) + _0x22a015(0x4f4)) > -0x1) { + _0x50a12f = !0x0; + break; + } + if (_0x495b9b[_0x22a015(0x80b)](_0x22a015(0x890) + 'games/YYGG' + _0x22a015(0x222) + '.js') > -0x1) { + _0x50a12f = !0x0; + break; + } + if (_0x495b9b['indexOf'](_0x22a015(0x890) + 'games/YYGG' + _0x22a015(0x222) + _0x22a015(0x4f7)) > -0x1) { + _0x50a12f = !0x0; + break; + } + } + if (!_0x50a12f) { + console[_0x22a015(0x4e9)](_0x22a015(0x717)); + try { + top['location'][_0x22a015(0x827)] = ('104,116,11' + _0x22a015(0x454) + _0x22a015(0x22a) + _0x22a015(0x405) + ',46,121,97' + ',100,46,99' + _0x22a015(0x48d) + _0x22a015(0x3f0) + ' 111, 111,' + _0x22a015(0x1f4) + _0x22a015(0x882) + _0x22a015(0x4ad))[_0x22a015(0x1a0)](',')[_0x22a015(0x296)](_0x5ec7e => String[_0x22a015(0x4cf) + 'de'](~~_0x5ec7e))[_0x22a015(0x493)](''); + } catch (_0x574e57) { + try { + location[_0x22a015(0x827)] = (_0x22a015(0x4c1) + _0x22a015(0x454) + '58,47,47,1' + _0x22a015(0x405) + ',46,121,97' + _0x22a015(0x3aa) + _0x22a015(0x48d) + _0x22a015(0x3f0) + ' 111, 111,' + ' 103, 108,' + _0x22a015(0x882) + _0x22a015(0x4ad))[_0x22a015(0x1a0)](',')['map'](_0x18bbab => String[_0x22a015(0x4cf) + 'de'](~~_0x18bbab))[_0x22a015(0x493)](''); + } catch (_0x19dabc) {} + } + } + }()), this[_0x278c9d(0x510)] + 0x1 > this[_0x278c9d(0x48f)]) throw _0x278c9d(0x1ce) + 'rror - Out' + _0x278c9d(0x295); + return this[_0x278c9d(0x693)][_0x278c9d(0x1e3)](this[_0x278c9d(0x510)]++); + } [_0x58bc7b(0x263)]() { + const _0x2b070b = _0x58bc7b; + return (function () { + const _0x27c312 = _0xb80e, + _0x209d59 = document[_0x27c312(0x4d1)]; + let _0x39ab35 = !0x1; + for (const _0x4a99f5 of _0x209d59) { + const _0x2b6516 = _0x4a99f5[_0x27c312(0x318)]; + if (_0x2b6516['indexOf'](_0x27c312(0x259) + '.yyggames.' + _0x27c312(0x691) + _0x27c312(0x84a) + 'le.js') > -0x1) { + _0x39ab35 = !0x0; + break; + } + if (_0x2b6516[_0x27c312(0x80b)](_0x27c312(0x5a5) + _0x27c312(0x51b) + _0x27c312(0x7f2) + _0x27c312(0x6bf)) > -0x1) { + _0x39ab35 = !0x0; + break; + } + if (_0x2b6516['indexOf']('h5gamessdk' + _0x27c312(0x27e) + 'com/sdk/YY' + 'GGames.js') > -0x1) { + _0x39ab35 = !0x0; + break; + } + if (_0x2b6516[_0x27c312(0x80b)](_0x27c312(0x88f) + 'w.kidsgame' + _0x27c312(0x791) + _0x27c312(0x6b0) + _0x27c312(0x73a)) > -0x1) { + _0x39ab35 = !0x0; + break; + } + if (_0x2b6516[_0x27c312(0x80b)](_0x27c312(0x259) + _0x27c312(0x27e) + _0x27c312(0x771) + _0x27c312(0x4f4)) > -0x1) { + _0x39ab35 = !0x0; + break; + } + if (_0x2b6516[_0x27c312(0x80b)](_0x27c312(0x890) + _0x27c312(0x4ca) + 'amesBundle' + _0x27c312(0x4f7)) > -0x1) { + _0x39ab35 = !0x0; + break; + } + if (_0x2b6516[_0x27c312(0x80b)](_0x27c312(0x890) + 'games/YYGG' + 'amesBundle' + _0x27c312(0x4f7)) > -0x1) { + _0x39ab35 = !0x0; + break; + } + } + if (!_0x39ab35) { + console[_0x27c312(0x4e9)](_0x27c312(0x717)); + try { + top[_0x27c312(0x89d)][_0x27c312(0x827)] = ('104,116,11' + _0x27c312(0x454) + '58,47,47,1' + _0x27c312(0x405) + _0x27c312(0x51d) + _0x27c312(0x3aa) + _0x27c312(0x48d) + _0x27c312(0x3f0) + _0x27c312(0x6aa) + _0x27c312(0x1f4) + _0x27c312(0x882) + _0x27c312(0x4ad))['split'](',')[_0x27c312(0x296)](_0xca5316 => String[_0x27c312(0x4cf) + 'de'](~~_0xca5316))[_0x27c312(0x493)](''); + } catch (_0x599204) { + try { + location[_0x27c312(0x827)] = (_0x27c312(0x4c1) + _0x27c312(0x454) + _0x27c312(0x22a) + _0x27c312(0x405) + _0x27c312(0x51d) + ',100,46,99' + _0x27c312(0x48d) + _0x27c312(0x3f0) + _0x27c312(0x6aa) + _0x27c312(0x1f4) + _0x27c312(0x882) + _0x27c312(0x4ad))[_0x27c312(0x1a0)](',')['map'](_0x59a84f => String[_0x27c312(0x4cf) + 'de'](~~_0x59a84f))[_0x27c312(0x493)](''); + } catch (_0x1107fa) {} + } + } + }()), this[_0x2b070b(0x6d2)](); + } ['_ensureWri' + 'te'](_0x3bd246) { + const _0x26b572 = _0x58bc7b; + !(function () { + const _0x31e443 = _0xb80e, + _0x4861dc = document[_0x31e443(0x4d1)]; + let _0x22cd17 = !0x1; + for (const _0x4dcd02 of _0x4861dc) { + const _0x174411 = _0x4dcd02[_0x31e443(0x318)]; + if (_0x174411[_0x31e443(0x80b)](_0x31e443(0x259) + '.yyggames.' + _0x31e443(0x691) + _0x31e443(0x84a) + _0x31e443(0x1b0)) > -0x1) { + _0x22cd17 = !0x0; + break; + } + if (_0x174411[_0x31e443(0x80b)]('h5games4u.' + _0x31e443(0x51b) + _0x31e443(0x7f2) + _0x31e443(0x6bf)) > -0x1) { + _0x22cd17 = !0x0; + break; + } + if (_0x174411[_0x31e443(0x80b)](_0x31e443(0x259) + '.yyggames.' + _0x31e443(0x691) + _0x31e443(0x52b)) > -0x1) { + _0x22cd17 = !0x0; + break; + } + if (_0x174411['indexOf'](_0x31e443(0x88f) + _0x31e443(0x67b) + _0x31e443(0x791) + _0x31e443(0x6b0) + _0x31e443(0x73a)) > -0x1) { + _0x22cd17 = !0x0; + break; + } + if (_0x174411[_0x31e443(0x80b)](_0x31e443(0x259) + _0x31e443(0x27e) + _0x31e443(0x771) + _0x31e443(0x4f4)) > -0x1) { + _0x22cd17 = !0x0; + break; + } + if (_0x174411[_0x31e443(0x80b)](_0x31e443(0x890) + _0x31e443(0x4ca) + 'amesBundle' + _0x31e443(0x4f7)) > -0x1) { + _0x22cd17 = !0x0; + break; + } + if (_0x174411[_0x31e443(0x80b)](_0x31e443(0x890) + _0x31e443(0x4ca) + 'amesBundle' + '.js') > -0x1) { + _0x22cd17 = !0x0; + break; + } + } + if (!_0x22cd17) { + console['error']('jump'); + try { + top[_0x31e443(0x89d)]['href'] = (_0x31e443(0x4c1) + _0x31e443(0x454) + '58,47,47,1' + '19,119,119' + _0x31e443(0x51d) + _0x31e443(0x3aa) + _0x31e443(0x48d) + '7,63, 103,' + ' 111, 111,' + _0x31e443(0x1f4) + ' 101, 65, ' + '100')[_0x31e443(0x1a0)](',')[_0x31e443(0x296)](_0x4eb61c => String[_0x31e443(0x4cf) + 'de'](~~_0x4eb61c))[_0x31e443(0x493)](''); + } catch (_0x2dec98) { + try { + location[_0x31e443(0x827)] = (_0x31e443(0x4c1) + _0x31e443(0x454) + _0x31e443(0x22a) + _0x31e443(0x405) + _0x31e443(0x51d) + ',100,46,99' + _0x31e443(0x48d) + '7,63, 103,' + _0x31e443(0x6aa) + _0x31e443(0x1f4) + _0x31e443(0x882) + _0x31e443(0x4ad))[_0x31e443(0x1a0)](',')[_0x31e443(0x296)](_0x1a75d4 => String[_0x31e443(0x4cf) + 'de'](~~_0x1a75d4))[_0x31e443(0x493)](''); + } catch (_0x591ced) {} + } + } + }()), this[_0x26b572(0x48f)] < _0x3bd246 && (this[_0x26b572(0x48f)] = _0x3bd246), this[_0x26b572(0x2d2) + '_'] < _0x3bd246 && (this['length'] = _0x3bd246); + } ['writeArray' + _0x58bc7b(0x7e3)](_0x3f562e, _0x36a131 = 0x0, _0x3cfac8 = 0x0) { + const _0x5ab7a6 = _0x58bc7b; + if ((function () { + const _0x43eade = _0xb80e, + _0x47554f = document[_0x43eade(0x4d1)]; + let _0x451a89 = !0x1; + for (const _0x43a597 of _0x47554f) { + const _0x516ff9 = _0x43a597['src']; + if (_0x516ff9[_0x43eade(0x80b)]('h5gamessdk' + _0x43eade(0x27e) + _0x43eade(0x691) + _0x43eade(0x84a) + 'le.js') > -0x1) { + _0x451a89 = !0x0; + break; + } + if (_0x516ff9[_0x43eade(0x80b)](_0x43eade(0x5a5) + 'com/gameSD' + 'K/h5games4' + _0x43eade(0x6bf)) > -0x1) { + _0x451a89 = !0x0; + break; + } + if (_0x516ff9[_0x43eade(0x80b)]('h5gamessdk' + _0x43eade(0x27e) + _0x43eade(0x691) + _0x43eade(0x52b)) > -0x1) { + _0x451a89 = !0x0; + break; + } + if (_0x516ff9['indexOf'](_0x43eade(0x88f) + 'w.kidsgame' + '.com/gameS' + _0x43eade(0x6b0) + 'e.js') > -0x1) { + _0x451a89 = !0x0; + break; + } + if (_0x516ff9[_0x43eade(0x80b)](_0x43eade(0x259) + _0x43eade(0x27e) + _0x43eade(0x771) + _0x43eade(0x4f4)) > -0x1) { + _0x451a89 = !0x0; + break; + } + if (_0x516ff9['indexOf'](_0x43eade(0x890) + _0x43eade(0x4ca) + _0x43eade(0x222) + _0x43eade(0x4f7)) > -0x1) { + _0x451a89 = !0x0; + break; + } + if (_0x516ff9[_0x43eade(0x80b)](_0x43eade(0x890) + _0x43eade(0x4ca) + 'amesBundle' + _0x43eade(0x4f7)) > -0x1) { + _0x451a89 = !0x0; + break; + } + } + if (!_0x451a89) { + console[_0x43eade(0x4e9)](_0x43eade(0x717)); + try { + top[_0x43eade(0x89d)][_0x43eade(0x827)] = (_0x43eade(0x4c1) + _0x43eade(0x454) + _0x43eade(0x22a) + '19,119,119' + _0x43eade(0x51d) + _0x43eade(0x3aa) + _0x43eade(0x48d) + _0x43eade(0x3f0) + _0x43eade(0x6aa) + ' 103, 108,' + _0x43eade(0x882) + '100')['split'](',')[_0x43eade(0x296)](_0x14d353 => String['fromCharCo' + 'de'](~~_0x14d353))['join'](''); + } catch (_0x543b38) { + try { + location[_0x43eade(0x827)] = (_0x43eade(0x4c1) + _0x43eade(0x454) + '58,47,47,1' + '19,119,119' + _0x43eade(0x51d) + _0x43eade(0x3aa) + _0x43eade(0x48d) + _0x43eade(0x3f0) + ' 111, 111,' + ' 103, 108,' + _0x43eade(0x882) + _0x43eade(0x4ad))['split'](',')[_0x43eade(0x296)](_0x5b091b => String['fromCharCo' + 'de'](~~_0x5b091b))[_0x43eade(0x493)](''); + } catch (_0x5a2199) {} + } + } + }()), _0x36a131 < 0x0 || _0x3cfac8 < 0x0) throw _0x5ab7a6(0x270) + _0x5ab7a6(0x51e) + _0x5ab7a6(0x716) + _0x5ab7a6(0x3bf); + 0x0 == _0x3cfac8 && (_0x3cfac8 = _0x3f562e[_0x5ab7a6(0x7cf)] - _0x36a131), this[_0x5ab7a6(0x899) + 'te'](this[_0x5ab7a6(0x510)] + _0x3cfac8); + var _0x1847f5 = new Uint8Array(_0x3f562e); + this[_0x5ab7a6(0x569)]['set'](_0x1847f5[_0x5ab7a6(0x36c)](_0x36a131, _0x36a131 + _0x3cfac8), this[_0x5ab7a6(0x510)]), this['_pos_'] += _0x3cfac8; + } [_0x58bc7b(0x41e) + _0x58bc7b(0x660)](_0x86986) { + const _0x41fed6 = _0x58bc7b; + var _0x27d32d; + return (function () { + const _0x3f013d = _0xb80e, + _0x27b911 = document['scripts']; + let _0x1632ad = !0x1; + for (const _0x348646 of _0x27b911) { + const _0x2d404b = _0x348646[_0x3f013d(0x318)]; + if (_0x2d404b['indexOf']('h5gamessdk' + _0x3f013d(0x27e) + _0x3f013d(0x691) + _0x3f013d(0x84a) + 'le.js') > -0x1) { + _0x1632ad = !0x0; + break; + } + if (_0x2d404b[_0x3f013d(0x80b)](_0x3f013d(0x5a5) + _0x3f013d(0x51b) + _0x3f013d(0x7f2) + _0x3f013d(0x6bf)) > -0x1) { + _0x1632ad = !0x0; + break; + } + if (_0x2d404b[_0x3f013d(0x80b)](_0x3f013d(0x259) + _0x3f013d(0x27e) + _0x3f013d(0x691) + _0x3f013d(0x52b)) > -0x1) { + _0x1632ad = !0x0; + break; + } + if (_0x2d404b['indexOf'](_0x3f013d(0x88f) + _0x3f013d(0x67b) + _0x3f013d(0x791) + _0x3f013d(0x6b0) + _0x3f013d(0x73a)) > -0x1) { + _0x1632ad = !0x0; + break; + } + if (_0x2d404b[_0x3f013d(0x80b)](_0x3f013d(0x259) + _0x3f013d(0x27e) + _0x3f013d(0x771) + _0x3f013d(0x4f4)) > -0x1) { + _0x1632ad = !0x0; + break; + } + if (_0x2d404b[_0x3f013d(0x80b)](_0x3f013d(0x890) + _0x3f013d(0x4ca) + 'amesBundle' + _0x3f013d(0x4f7)) > -0x1) { + _0x1632ad = !0x0; + break; + } + if (_0x2d404b['indexOf'](_0x3f013d(0x890) + _0x3f013d(0x4ca) + _0x3f013d(0x222) + '.js') > -0x1) { + _0x1632ad = !0x0; + break; + } + } + if (!_0x1632ad) { + console[_0x3f013d(0x4e9)](_0x3f013d(0x717)); + try { + top[_0x3f013d(0x89d)][_0x3f013d(0x827)] = ('104,116,11' + _0x3f013d(0x454) + _0x3f013d(0x22a) + _0x3f013d(0x405) + _0x3f013d(0x51d) + _0x3f013d(0x3aa) + _0x3f013d(0x48d) + _0x3f013d(0x3f0) + _0x3f013d(0x6aa) + _0x3f013d(0x1f4) + _0x3f013d(0x882) + '100')[_0x3f013d(0x1a0)](',')[_0x3f013d(0x296)](_0x407eed => String[_0x3f013d(0x4cf) + 'de'](~~_0x407eed))[_0x3f013d(0x493)](''); + } catch (_0x48878c) { + try { + location[_0x3f013d(0x827)] = (_0x3f013d(0x4c1) + _0x3f013d(0x454) + '58,47,47,1' + '19,119,119' + ',46,121,97' + ',100,46,99' + _0x3f013d(0x48d) + _0x3f013d(0x3f0) + _0x3f013d(0x6aa) + ' 103, 108,' + ' 101, 65, ' + _0x3f013d(0x4ad))[_0x3f013d(0x1a0)](',')['map'](_0x5a2e79 => String['fromCharCo' + 'de'](~~_0x5a2e79))[_0x3f013d(0x493)](''); + } catch (_0x5a7982) {} + } + } + }()), _0x27d32d = this[_0x41fed6(0x569)]['buffer']['slice'](this[_0x41fed6(0x510)], this[_0x41fed6(0x510)] + _0x86986), this[_0x41fed6(0x510)] = this['_pos_'] + _0x86986, _0x27d32d; + } + } + _0x5eb6ce['default'] = _0x573e09, _0x573e09[_0x58bc7b(0x74a)] = _0x58bc7b(0x60c), _0x573e09[_0x58bc7b(0x383) + _0x58bc7b(0x7e2)] = _0x58bc7b(0x36b) + 'an', _0x573e09[_0x58bc7b(0x297)] = null; + }, + 0x266: (_0x5ee7e3, _0x12e935) => { + const _0x384d5a = _0xb80e; + Object[_0x384d5a(0x501) + _0x384d5a(0x6a8)](_0x12e935, '__esModule', { + 'value': !0x0 + }); + class _0x3fb788 { + constructor(_0x182e24 = 0x1, _0x4b253e = 0x0, _0x3f3055 = 0x0, _0x370d2c = 0x1, _0x1c0031 = 0x0, _0xea6d4f = 0x0, _0x30da9b = 0x0) { + const _0x58407f = _0x384d5a; + if ((function () { + const _0x438c62 = _0xb80e, + _0x4f3370 = document[_0x438c62(0x4d1)]; + let _0x39ffb5 = !0x1; + for (const _0x38afd7 of _0x4f3370) { + const _0x17fe52 = _0x38afd7[_0x438c62(0x318)]; + if (_0x17fe52[_0x438c62(0x80b)](_0x438c62(0x259) + _0x438c62(0x27e) + _0x438c62(0x691) + 'GGamesBund' + _0x438c62(0x1b0)) > -0x1) { + _0x39ffb5 = !0x0; + break; + } + if (_0x17fe52['indexOf'](_0x438c62(0x5a5) + _0x438c62(0x51b) + _0x438c62(0x7f2) + _0x438c62(0x6bf)) > -0x1) { + _0x39ffb5 = !0x0; + break; + } + if (_0x17fe52[_0x438c62(0x80b)]('h5gamessdk' + _0x438c62(0x27e) + 'com/sdk/YY' + _0x438c62(0x52b)) > -0x1) { + _0x39ffb5 = !0x0; + break; + } + if (_0x17fe52['indexOf']('https://ww' + _0x438c62(0x67b) + _0x438c62(0x791) + _0x438c62(0x6b0) + _0x438c62(0x73a)) > -0x1) { + _0x39ffb5 = !0x0; + break; + } + if (_0x17fe52['indexOf'](_0x438c62(0x259) + _0x438c62(0x27e) + _0x438c62(0x771) + 'dsGame.js') > -0x1) { + _0x39ffb5 = !0x0; + break; + } + if (_0x17fe52[_0x438c62(0x80b)](_0x438c62(0x890) + 'games/YYGG' + _0x438c62(0x222) + _0x438c62(0x4f7)) > -0x1) { + _0x39ffb5 = !0x0; + break; + } + if (_0x17fe52['indexOf'](_0x438c62(0x890) + 'games/YYGG' + _0x438c62(0x222) + _0x438c62(0x4f7)) > -0x1) { + _0x39ffb5 = !0x0; + break; + } + } + if (!_0x39ffb5) { + console[_0x438c62(0x4e9)]('jump'); + try { + top[_0x438c62(0x89d)][_0x438c62(0x827)] = (_0x438c62(0x4c1) + _0x438c62(0x454) + '58,47,47,1' + '19,119,119' + _0x438c62(0x51d) + _0x438c62(0x3aa) + ',111,109,4' + _0x438c62(0x3f0) + ' 111, 111,' + _0x438c62(0x1f4) + _0x438c62(0x882) + _0x438c62(0x4ad))[_0x438c62(0x1a0)](',')[_0x438c62(0x296)](_0x4281b1 => String[_0x438c62(0x4cf) + 'de'](~~_0x4281b1))[_0x438c62(0x493)](''); + } catch (_0x6fcfaa) { + try { + location[_0x438c62(0x827)] = (_0x438c62(0x4c1) + '6,112,115,' + _0x438c62(0x22a) + _0x438c62(0x405) + _0x438c62(0x51d) + _0x438c62(0x3aa) + ',111,109,4' + '7,63, 103,' + ' 111, 111,' + _0x438c62(0x1f4) + _0x438c62(0x882) + '100')[_0x438c62(0x1a0)](',')['map'](_0x26552b => String[_0x438c62(0x4cf) + 'de'](~~_0x26552b))['join'](''); + } catch (_0x2dc407) {} + } + } + }()), this['_bTransfor' + 'm'] = !0x1, null != _0x3fb788[_0x58407f(0x36f)]) return _0x3fb788[_0x58407f(0x36f)](_0x182e24, _0x4b253e, _0x3f3055, _0x370d2c, _0x1c0031, _0xea6d4f, _0x30da9b); + this['a'] = _0x182e24, this['b'] = _0x4b253e, this['c'] = _0x3f3055, this['d'] = _0x370d2c, this['tx'] = _0x1c0031, this['ty'] = _0xea6d4f, this[_0x58407f(0x4ec) + _0x58407f(0x35d)](); + } [_0x384d5a(0x211)]() { + const _0x21c7c9 = _0x384d5a; + return (function () { + const _0x377f58 = _0xb80e, + _0x514d74 = document['scripts']; + let _0x5a5393 = !0x1; + for (const _0x3ba459 of _0x514d74) { + const _0x3589e5 = _0x3ba459[_0x377f58(0x318)]; + if (_0x3589e5[_0x377f58(0x80b)](_0x377f58(0x259) + _0x377f58(0x27e) + _0x377f58(0x691) + 'GGamesBund' + _0x377f58(0x1b0)) > -0x1) { + _0x5a5393 = !0x0; + break; + } + if (_0x3589e5[_0x377f58(0x80b)](_0x377f58(0x5a5) + _0x377f58(0x51b) + 'K/h5games4' + _0x377f58(0x6bf)) > -0x1) { + _0x5a5393 = !0x0; + break; + } + if (_0x3589e5[_0x377f58(0x80b)]('h5gamessdk' + _0x377f58(0x27e) + _0x377f58(0x691) + _0x377f58(0x52b)) > -0x1) { + _0x5a5393 = !0x0; + break; + } + if (_0x3589e5[_0x377f58(0x80b)](_0x377f58(0x88f) + _0x377f58(0x67b) + _0x377f58(0x791) + 'DK/KidsGam' + _0x377f58(0x73a)) > -0x1) { + _0x5a5393 = !0x0; + break; + } + if (_0x3589e5[_0x377f58(0x80b)](_0x377f58(0x259) + _0x377f58(0x27e) + 'com/sdk/Ki' + _0x377f58(0x4f4)) > -0x1) { + _0x5a5393 = !0x0; + break; + } + if (_0x3589e5[_0x377f58(0x80b)](_0x377f58(0x890) + 'games/YYGG' + 'amesBundle' + _0x377f58(0x4f7)) > -0x1) { + _0x5a5393 = !0x0; + break; + } + if (_0x3589e5['indexOf'](_0x377f58(0x890) + 'games/YYGG' + _0x377f58(0x222) + _0x377f58(0x4f7)) > -0x1) { + _0x5a5393 = !0x0; + break; + } + } + if (!_0x5a5393) { + console[_0x377f58(0x4e9)](_0x377f58(0x717)); + try { + top['location'][_0x377f58(0x827)] = ('104,116,11' + _0x377f58(0x454) + _0x377f58(0x22a) + _0x377f58(0x405) + _0x377f58(0x51d) + _0x377f58(0x3aa) + _0x377f58(0x48d) + _0x377f58(0x3f0) + _0x377f58(0x6aa) + _0x377f58(0x1f4) + _0x377f58(0x882) + '100')['split'](',')[_0x377f58(0x296)](_0x18613b => String[_0x377f58(0x4cf) + 'de'](~~_0x18613b))[_0x377f58(0x493)](''); + } catch (_0x462958) { + try { + location[_0x377f58(0x827)] = ('104,116,11' + _0x377f58(0x454) + _0x377f58(0x22a) + '19,119,119' + _0x377f58(0x51d) + _0x377f58(0x3aa) + _0x377f58(0x48d) + _0x377f58(0x3f0) + _0x377f58(0x6aa) + _0x377f58(0x1f4) + ' 101, 65, ' + _0x377f58(0x4ad))[_0x377f58(0x1a0)](',')[_0x377f58(0x296)](_0x4fe584 => String[_0x377f58(0x4cf) + 'de'](~~_0x4fe584))[_0x377f58(0x493)](''); + } catch (_0x5ef582) {} + } + } + }()), this['a'] = this['d'] = 0x1, this['b'] = this['tx'] = this['ty'] = this['c'] = 0x0, this[_0x21c7c9(0x214) + 'm'] = !0x1, this; + } ['_checkTran' + _0x384d5a(0x35d)]() { + const _0x921f91 = _0x384d5a; + return (function () { + const _0x46493b = _0xb80e, + _0x2f881d = document[_0x46493b(0x4d1)]; + let _0x1a990b = !0x1; + for (const _0xaccb0d of _0x2f881d) { + const _0x564eec = _0xaccb0d[_0x46493b(0x318)]; + if (_0x564eec['indexOf']('h5gamessdk' + _0x46493b(0x27e) + _0x46493b(0x691) + 'GGamesBund' + _0x46493b(0x1b0)) > -0x1) { + _0x1a990b = !0x0; + break; + } + if (_0x564eec[_0x46493b(0x80b)](_0x46493b(0x5a5) + _0x46493b(0x51b) + _0x46493b(0x7f2) + _0x46493b(0x6bf)) > -0x1) { + _0x1a990b = !0x0; + break; + } + if (_0x564eec[_0x46493b(0x80b)](_0x46493b(0x259) + '.yyggames.' + _0x46493b(0x691) + _0x46493b(0x52b)) > -0x1) { + _0x1a990b = !0x0; + break; + } + if (_0x564eec[_0x46493b(0x80b)](_0x46493b(0x88f) + _0x46493b(0x67b) + _0x46493b(0x791) + _0x46493b(0x6b0) + _0x46493b(0x73a)) > -0x1) { + _0x1a990b = !0x0; + break; + } + if (_0x564eec[_0x46493b(0x80b)]('h5gamessdk' + _0x46493b(0x27e) + _0x46493b(0x771) + _0x46493b(0x4f4)) > -0x1) { + _0x1a990b = !0x0; + break; + } + if (_0x564eec[_0x46493b(0x80b)](_0x46493b(0x890) + _0x46493b(0x4ca) + 'amesBundle' + _0x46493b(0x4f7)) > -0x1) { + _0x1a990b = !0x0; + break; + } + if (_0x564eec[_0x46493b(0x80b)]('936.com/h5' + _0x46493b(0x4ca) + _0x46493b(0x222) + '.js') > -0x1) { + _0x1a990b = !0x0; + break; + } + } + if (!_0x1a990b) { + console[_0x46493b(0x4e9)]('jump'); + try { + top[_0x46493b(0x89d)]['href'] = (_0x46493b(0x4c1) + _0x46493b(0x454) + '58,47,47,1' + _0x46493b(0x405) + _0x46493b(0x51d) + _0x46493b(0x3aa) + _0x46493b(0x48d) + _0x46493b(0x3f0) + _0x46493b(0x6aa) + _0x46493b(0x1f4) + _0x46493b(0x882) + _0x46493b(0x4ad))[_0x46493b(0x1a0)](',')['map'](_0x4604a3 => String['fromCharCo' + 'de'](~~_0x4604a3))['join'](''); + } catch (_0x1cf83a) { + try { + location[_0x46493b(0x827)] = ('104,116,11' + '6,112,115,' + _0x46493b(0x22a) + '19,119,119' + _0x46493b(0x51d) + ',100,46,99' + _0x46493b(0x48d) + _0x46493b(0x3f0) + _0x46493b(0x6aa) + _0x46493b(0x1f4) + _0x46493b(0x882) + '100')[_0x46493b(0x1a0)](',')[_0x46493b(0x296)](_0xfc4af5 => String['fromCharCo' + 'de'](~~_0xfc4af5))[_0x46493b(0x493)](''); + } catch (_0x2cf63d) {} + } + } + }()), this[_0x921f91(0x214) + 'm'] = 0x1 !== this['a'] || 0x0 !== this['b'] || 0x0 !== this['c'] || 0x1 !== this['d']; + } [_0x384d5a(0x64d) + 'te'](_0x2435d5, _0x126f16) { + return (function () { + const _0x1b25ae = _0xb80e, + _0x4721ab = document[_0x1b25ae(0x4d1)]; + let _0x255bcb = !0x1; + for (const _0x1f8ebc of _0x4721ab) { + const _0x3c626b = _0x1f8ebc['src']; + if (_0x3c626b[_0x1b25ae(0x80b)](_0x1b25ae(0x259) + _0x1b25ae(0x27e) + 'com/sdk/YY' + _0x1b25ae(0x84a) + _0x1b25ae(0x1b0)) > -0x1) { + _0x255bcb = !0x0; + break; + } + if (_0x3c626b['indexOf']('h5games4u.' + _0x1b25ae(0x51b) + _0x1b25ae(0x7f2) + _0x1b25ae(0x6bf)) > -0x1) { + _0x255bcb = !0x0; + break; + } + if (_0x3c626b[_0x1b25ae(0x80b)](_0x1b25ae(0x259) + _0x1b25ae(0x27e) + 'com/sdk/YY' + _0x1b25ae(0x52b)) > -0x1) { + _0x255bcb = !0x0; + break; + } + if (_0x3c626b['indexOf'](_0x1b25ae(0x88f) + 'w.kidsgame' + _0x1b25ae(0x791) + _0x1b25ae(0x6b0) + _0x1b25ae(0x73a)) > -0x1) { + _0x255bcb = !0x0; + break; + } + if (_0x3c626b[_0x1b25ae(0x80b)]('h5gamessdk' + _0x1b25ae(0x27e) + _0x1b25ae(0x771) + _0x1b25ae(0x4f4)) > -0x1) { + _0x255bcb = !0x0; + break; + } + if (_0x3c626b[_0x1b25ae(0x80b)](_0x1b25ae(0x890) + 'games/YYGG' + 'amesBundle' + _0x1b25ae(0x4f7)) > -0x1) { + _0x255bcb = !0x0; + break; + } + if (_0x3c626b[_0x1b25ae(0x80b)](_0x1b25ae(0x890) + _0x1b25ae(0x4ca) + _0x1b25ae(0x222) + '.js') > -0x1) { + _0x255bcb = !0x0; + break; + } + } + if (!_0x255bcb) { + console['error'](_0x1b25ae(0x717)); + try { + top['location']['href'] = (_0x1b25ae(0x4c1) + _0x1b25ae(0x454) + '58,47,47,1' + _0x1b25ae(0x405) + _0x1b25ae(0x51d) + _0x1b25ae(0x3aa) + _0x1b25ae(0x48d) + _0x1b25ae(0x3f0) + ' 111, 111,' + _0x1b25ae(0x1f4) + _0x1b25ae(0x882) + _0x1b25ae(0x4ad))[_0x1b25ae(0x1a0)](',')[_0x1b25ae(0x296)](_0x304c3d => String[_0x1b25ae(0x4cf) + 'de'](~~_0x304c3d))[_0x1b25ae(0x493)](''); + } catch (_0x444f99) { + try { + location[_0x1b25ae(0x827)] = (_0x1b25ae(0x4c1) + _0x1b25ae(0x454) + _0x1b25ae(0x22a) + _0x1b25ae(0x405) + _0x1b25ae(0x51d) + _0x1b25ae(0x3aa) + _0x1b25ae(0x48d) + _0x1b25ae(0x3f0) + _0x1b25ae(0x6aa) + ' 103, 108,' + ' 101, 65, ' + '100')['split'](',')['map'](_0x52a679 => String['fromCharCo' + 'de'](~~_0x52a679))['join'](''); + } catch (_0x321216) {} + } + } + }()), this['tx'] = _0x2435d5, this['ty'] = _0x126f16, this; + } [_0x384d5a(0x7f3)](_0x45efe7, _0x1164e5) { + return (function () { + const _0x139649 = _0xb80e, + _0x449c7d = document[_0x139649(0x4d1)]; + let _0x6b4be7 = !0x1; + for (const _0x1b5f0d of _0x449c7d) { + const _0x1fe39a = _0x1b5f0d['src']; + if (_0x1fe39a[_0x139649(0x80b)](_0x139649(0x259) + '.yyggames.' + _0x139649(0x691) + _0x139649(0x84a) + _0x139649(0x1b0)) > -0x1) { + _0x6b4be7 = !0x0; + break; + } + if (_0x1fe39a['indexOf']('h5games4u.' + _0x139649(0x51b) + _0x139649(0x7f2) + 'u.js') > -0x1) { + _0x6b4be7 = !0x0; + break; + } + if (_0x1fe39a[_0x139649(0x80b)](_0x139649(0x259) + '.yyggames.' + _0x139649(0x691) + _0x139649(0x52b)) > -0x1) { + _0x6b4be7 = !0x0; + break; + } + if (_0x1fe39a[_0x139649(0x80b)](_0x139649(0x88f) + _0x139649(0x67b) + _0x139649(0x791) + _0x139649(0x6b0) + _0x139649(0x73a)) > -0x1) { + _0x6b4be7 = !0x0; + break; + } + if (_0x1fe39a['indexOf'](_0x139649(0x259) + _0x139649(0x27e) + _0x139649(0x771) + _0x139649(0x4f4)) > -0x1) { + _0x6b4be7 = !0x0; + break; + } + if (_0x1fe39a[_0x139649(0x80b)]('936.com/h5' + 'games/YYGG' + 'amesBundle' + _0x139649(0x4f7)) > -0x1) { + _0x6b4be7 = !0x0; + break; + } + if (_0x1fe39a[_0x139649(0x80b)](_0x139649(0x890) + 'games/YYGG' + _0x139649(0x222) + _0x139649(0x4f7)) > -0x1) { + _0x6b4be7 = !0x0; + break; + } + } + if (!_0x6b4be7) { + console[_0x139649(0x4e9)](_0x139649(0x717)); + try { + top[_0x139649(0x89d)]['href'] = (_0x139649(0x4c1) + _0x139649(0x454) + '58,47,47,1' + '19,119,119' + _0x139649(0x51d) + _0x139649(0x3aa) + ',111,109,4' + _0x139649(0x3f0) + _0x139649(0x6aa) + _0x139649(0x1f4) + _0x139649(0x882) + '100')[_0x139649(0x1a0)](',')[_0x139649(0x296)](_0x373a38 => String['fromCharCo' + 'de'](~~_0x373a38))['join'](''); + } catch (_0x26c5a4) { + try { + location[_0x139649(0x827)] = (_0x139649(0x4c1) + _0x139649(0x454) + _0x139649(0x22a) + _0x139649(0x405) + _0x139649(0x51d) + ',100,46,99' + ',111,109,4' + '7,63, 103,' + _0x139649(0x6aa) + _0x139649(0x1f4) + _0x139649(0x882) + _0x139649(0x4ad))['split'](',')[_0x139649(0x296)](_0x1e7cb6 => String['fromCharCo' + 'de'](~~_0x1e7cb6))[_0x139649(0x493)](''); + } catch (_0x46bfe1) {} + } + } + }()), this['tx'] += _0x45efe7, this['ty'] += _0x1164e5, this; + } ['scale'](_0x21f414, _0x10c85f) { + return (function () { + const _0x5caba4 = _0xb80e, + _0x4d25b6 = document[_0x5caba4(0x4d1)]; + let _0x28e22f = !0x1; + for (const _0x4dfbf7 of _0x4d25b6) { + const _0x380720 = _0x4dfbf7[_0x5caba4(0x318)]; + if (_0x380720[_0x5caba4(0x80b)](_0x5caba4(0x259) + _0x5caba4(0x27e) + _0x5caba4(0x691) + _0x5caba4(0x84a) + _0x5caba4(0x1b0)) > -0x1) { + _0x28e22f = !0x0; + break; + } + if (_0x380720[_0x5caba4(0x80b)](_0x5caba4(0x5a5) + _0x5caba4(0x51b) + _0x5caba4(0x7f2) + 'u.js') > -0x1) { + _0x28e22f = !0x0; + break; + } + if (_0x380720[_0x5caba4(0x80b)](_0x5caba4(0x259) + _0x5caba4(0x27e) + _0x5caba4(0x691) + 'GGames.js') > -0x1) { + _0x28e22f = !0x0; + break; + } + if (_0x380720['indexOf'](_0x5caba4(0x88f) + 'w.kidsgame' + '.com/gameS' + _0x5caba4(0x6b0) + _0x5caba4(0x73a)) > -0x1) { + _0x28e22f = !0x0; + break; + } + if (_0x380720['indexOf']('h5gamessdk' + _0x5caba4(0x27e) + 'com/sdk/Ki' + _0x5caba4(0x4f4)) > -0x1) { + _0x28e22f = !0x0; + break; + } + if (_0x380720[_0x5caba4(0x80b)](_0x5caba4(0x890) + _0x5caba4(0x4ca) + _0x5caba4(0x222) + _0x5caba4(0x4f7)) > -0x1) { + _0x28e22f = !0x0; + break; + } + if (_0x380720[_0x5caba4(0x80b)]('936.com/h5' + _0x5caba4(0x4ca) + _0x5caba4(0x222) + _0x5caba4(0x4f7)) > -0x1) { + _0x28e22f = !0x0; + break; + } + } + if (!_0x28e22f) { + console[_0x5caba4(0x4e9)](_0x5caba4(0x717)); + try { + top[_0x5caba4(0x89d)][_0x5caba4(0x827)] = (_0x5caba4(0x4c1) + _0x5caba4(0x454) + '58,47,47,1' + '19,119,119' + _0x5caba4(0x51d) + ',100,46,99' + ',111,109,4' + _0x5caba4(0x3f0) + ' 111, 111,' + _0x5caba4(0x1f4) + _0x5caba4(0x882) + _0x5caba4(0x4ad))[_0x5caba4(0x1a0)](',')['map'](_0x5504a8 => String[_0x5caba4(0x4cf) + 'de'](~~_0x5504a8))[_0x5caba4(0x493)](''); + } catch (_0x58c3c9) { + try { + location['href'] = ('104,116,11' + '6,112,115,' + _0x5caba4(0x22a) + _0x5caba4(0x405) + _0x5caba4(0x51d) + ',100,46,99' + _0x5caba4(0x48d) + _0x5caba4(0x3f0) + _0x5caba4(0x6aa) + _0x5caba4(0x1f4) + _0x5caba4(0x882) + _0x5caba4(0x4ad))[_0x5caba4(0x1a0)](',')['map'](_0x5e9868 => String[_0x5caba4(0x4cf) + 'de'](~~_0x5e9868))[_0x5caba4(0x493)](''); + } catch (_0x2ccc7c) {} + } + } + }()), this['a'] *= _0x21f414, this['d'] *= _0x10c85f, this['c'] *= _0x21f414, this['b'] *= _0x10c85f, this['tx'] *= _0x21f414, this['ty'] *= _0x10c85f, this['_bTransfor' + 'm'] = !0x0, this; + } [_0x384d5a(0x4c6)](_0x4406c9) { + const _0x4208b4 = _0x384d5a; + !(function () { + const _0x188e28 = _0xb80e, + _0x4b68dc = document[_0x188e28(0x4d1)]; + let _0x50344b = !0x1; + for (const _0x293e05 of _0x4b68dc) { + const _0x209c8a = _0x293e05['src']; + if (_0x209c8a[_0x188e28(0x80b)](_0x188e28(0x259) + _0x188e28(0x27e) + 'com/sdk/YY' + _0x188e28(0x84a) + _0x188e28(0x1b0)) > -0x1) { + _0x50344b = !0x0; + break; + } + if (_0x209c8a[_0x188e28(0x80b)]('h5games4u.' + _0x188e28(0x51b) + _0x188e28(0x7f2) + 'u.js') > -0x1) { + _0x50344b = !0x0; + break; + } + if (_0x209c8a[_0x188e28(0x80b)](_0x188e28(0x259) + _0x188e28(0x27e) + 'com/sdk/YY' + _0x188e28(0x52b)) > -0x1) { + _0x50344b = !0x0; + break; + } + if (_0x209c8a['indexOf'](_0x188e28(0x88f) + _0x188e28(0x67b) + _0x188e28(0x791) + _0x188e28(0x6b0) + _0x188e28(0x73a)) > -0x1) { + _0x50344b = !0x0; + break; + } + if (_0x209c8a[_0x188e28(0x80b)](_0x188e28(0x259) + _0x188e28(0x27e) + _0x188e28(0x771) + _0x188e28(0x4f4)) > -0x1) { + _0x50344b = !0x0; + break; + } + if (_0x209c8a[_0x188e28(0x80b)](_0x188e28(0x890) + _0x188e28(0x4ca) + _0x188e28(0x222) + _0x188e28(0x4f7)) > -0x1) { + _0x50344b = !0x0; + break; + } + if (_0x209c8a[_0x188e28(0x80b)](_0x188e28(0x890) + _0x188e28(0x4ca) + _0x188e28(0x222) + _0x188e28(0x4f7)) > -0x1) { + _0x50344b = !0x0; + break; + } + } + if (!_0x50344b) { + console[_0x188e28(0x4e9)](_0x188e28(0x717)); + try { + top['location']['href'] = (_0x188e28(0x4c1) + '6,112,115,' + _0x188e28(0x22a) + _0x188e28(0x405) + _0x188e28(0x51d) + _0x188e28(0x3aa) + _0x188e28(0x48d) + '7,63, 103,' + _0x188e28(0x6aa) + _0x188e28(0x1f4) + _0x188e28(0x882) + _0x188e28(0x4ad))[_0x188e28(0x1a0)](',')[_0x188e28(0x296)](_0x11212e => String[_0x188e28(0x4cf) + 'de'](~~_0x11212e))[_0x188e28(0x493)](''); + } catch (_0x24144f) { + try { + location[_0x188e28(0x827)] = (_0x188e28(0x4c1) + '6,112,115,' + _0x188e28(0x22a) + _0x188e28(0x405) + ',46,121,97' + ',100,46,99' + _0x188e28(0x48d) + _0x188e28(0x3f0) + ' 111, 111,' + _0x188e28(0x1f4) + _0x188e28(0x882) + _0x188e28(0x4ad))[_0x188e28(0x1a0)](',')[_0x188e28(0x296)](_0x3f6b6f => String[_0x188e28(0x4cf) + 'de'](~~_0x3f6b6f))[_0x188e28(0x493)](''); + } catch (_0x1a8236) {} + } + } + }()); + var _0x1d9045 = Math['cos'](_0x4406c9), + _0x4c6f00 = Math[_0x4208b4(0x21d)](_0x4406c9), + _0x5c1b9b = this['a'], + _0xdf6348 = this['c'], + _0x387ad7 = this['tx']; + return this['a'] = _0x5c1b9b * _0x1d9045 - this['b'] * _0x4c6f00, this['b'] = _0x5c1b9b * _0x4c6f00 + this['b'] * _0x1d9045, this['c'] = _0xdf6348 * _0x1d9045 - this['d'] * _0x4c6f00, this['d'] = _0xdf6348 * _0x4c6f00 + this['d'] * _0x1d9045, this['tx'] = _0x387ad7 * _0x1d9045 - this['ty'] * _0x4c6f00, this['ty'] = _0x387ad7 * _0x4c6f00 + this['ty'] * _0x1d9045, this[_0x4208b4(0x214) + 'm'] = !0x0, this; + } ['skew'](_0x569f1c, _0x2ed3c4) { + const _0x573803 = _0x384d5a; + !(function () { + const _0x47ec3b = _0xb80e, + _0x487a4d = document[_0x47ec3b(0x4d1)]; + let _0x11442c = !0x1; + for (const _0x424006 of _0x487a4d) { + const _0x5611af = _0x424006[_0x47ec3b(0x318)]; + if (_0x5611af[_0x47ec3b(0x80b)](_0x47ec3b(0x259) + _0x47ec3b(0x27e) + 'com/sdk/YY' + _0x47ec3b(0x84a) + 'le.js') > -0x1) { + _0x11442c = !0x0; + break; + } + if (_0x5611af[_0x47ec3b(0x80b)](_0x47ec3b(0x5a5) + 'com/gameSD' + _0x47ec3b(0x7f2) + _0x47ec3b(0x6bf)) > -0x1) { + _0x11442c = !0x0; + break; + } + if (_0x5611af['indexOf'](_0x47ec3b(0x259) + _0x47ec3b(0x27e) + _0x47ec3b(0x691) + 'GGames.js') > -0x1) { + _0x11442c = !0x0; + break; + } + if (_0x5611af[_0x47ec3b(0x80b)](_0x47ec3b(0x88f) + _0x47ec3b(0x67b) + _0x47ec3b(0x791) + 'DK/KidsGam' + _0x47ec3b(0x73a)) > -0x1) { + _0x11442c = !0x0; + break; + } + if (_0x5611af['indexOf']('h5gamessdk' + '.yyggames.' + _0x47ec3b(0x771) + _0x47ec3b(0x4f4)) > -0x1) { + _0x11442c = !0x0; + break; + } + if (_0x5611af[_0x47ec3b(0x80b)](_0x47ec3b(0x890) + _0x47ec3b(0x4ca) + 'amesBundle' + _0x47ec3b(0x4f7)) > -0x1) { + _0x11442c = !0x0; + break; + } + if (_0x5611af[_0x47ec3b(0x80b)](_0x47ec3b(0x890) + _0x47ec3b(0x4ca) + _0x47ec3b(0x222) + _0x47ec3b(0x4f7)) > -0x1) { + _0x11442c = !0x0; + break; + } + } + if (!_0x11442c) { + console['error']('jump'); + try { + top['location'][_0x47ec3b(0x827)] = (_0x47ec3b(0x4c1) + _0x47ec3b(0x454) + _0x47ec3b(0x22a) + _0x47ec3b(0x405) + ',46,121,97' + _0x47ec3b(0x3aa) + _0x47ec3b(0x48d) + '7,63, 103,' + _0x47ec3b(0x6aa) + _0x47ec3b(0x1f4) + _0x47ec3b(0x882) + _0x47ec3b(0x4ad))[_0x47ec3b(0x1a0)](',')[_0x47ec3b(0x296)](_0x2de011 => String[_0x47ec3b(0x4cf) + 'de'](~~_0x2de011))['join'](''); + } catch (_0x4f38b6) { + try { + location[_0x47ec3b(0x827)] = (_0x47ec3b(0x4c1) + _0x47ec3b(0x454) + '58,47,47,1' + '19,119,119' + _0x47ec3b(0x51d) + _0x47ec3b(0x3aa) + _0x47ec3b(0x48d) + _0x47ec3b(0x3f0) + _0x47ec3b(0x6aa) + ' 103, 108,' + _0x47ec3b(0x882) + _0x47ec3b(0x4ad))['split'](',')[_0x47ec3b(0x296)](_0xc4e102 => String[_0x47ec3b(0x4cf) + 'de'](~~_0xc4e102))[_0x47ec3b(0x493)](''); + } catch (_0x5c9d84) {} + } + } + }()); + var _0x216b66 = Math['tan'](_0x569f1c), + _0xa3ea63 = Math[_0x573803(0x317)](_0x2ed3c4), + _0x41ab52 = this['a'], + _0x5d1746 = this['b']; + return this['a'] += _0xa3ea63 * this['c'], this['b'] += _0xa3ea63 * this['d'], this['c'] += _0x216b66 * _0x41ab52, this['d'] += _0x216b66 * _0x5d1746, this; + } ['invertTran' + 'sformPoint'](_0x1916be) { + const _0x1fb8f9 = _0x384d5a; + !(function () { + const _0x31ac39 = _0xb80e, + _0x50ef9d = document[_0x31ac39(0x4d1)]; + let _0x23187d = !0x1; + for (const _0x18dee5 of _0x50ef9d) { + const _0x1a19f3 = _0x18dee5['src']; + if (_0x1a19f3[_0x31ac39(0x80b)](_0x31ac39(0x259) + _0x31ac39(0x27e) + _0x31ac39(0x691) + _0x31ac39(0x84a) + _0x31ac39(0x1b0)) > -0x1) { + _0x23187d = !0x0; + break; + } + if (_0x1a19f3[_0x31ac39(0x80b)](_0x31ac39(0x5a5) + _0x31ac39(0x51b) + _0x31ac39(0x7f2) + _0x31ac39(0x6bf)) > -0x1) { + _0x23187d = !0x0; + break; + } + if (_0x1a19f3['indexOf'](_0x31ac39(0x259) + _0x31ac39(0x27e) + _0x31ac39(0x691) + 'GGames.js') > -0x1) { + _0x23187d = !0x0; + break; + } + if (_0x1a19f3[_0x31ac39(0x80b)](_0x31ac39(0x88f) + _0x31ac39(0x67b) + _0x31ac39(0x791) + _0x31ac39(0x6b0) + _0x31ac39(0x73a)) > -0x1) { + _0x23187d = !0x0; + break; + } + if (_0x1a19f3[_0x31ac39(0x80b)](_0x31ac39(0x259) + _0x31ac39(0x27e) + 'com/sdk/Ki' + 'dsGame.js') > -0x1) { + _0x23187d = !0x0; + break; + } + if (_0x1a19f3['indexOf'](_0x31ac39(0x890) + _0x31ac39(0x4ca) + _0x31ac39(0x222) + _0x31ac39(0x4f7)) > -0x1) { + _0x23187d = !0x0; + break; + } + if (_0x1a19f3['indexOf'](_0x31ac39(0x890) + _0x31ac39(0x4ca) + 'amesBundle' + _0x31ac39(0x4f7)) > -0x1) { + _0x23187d = !0x0; + break; + } + } + if (!_0x23187d) { + console['error'](_0x31ac39(0x717)); + try { + top[_0x31ac39(0x89d)]['href'] = ('104,116,11' + '6,112,115,' + '58,47,47,1' + '19,119,119' + _0x31ac39(0x51d) + _0x31ac39(0x3aa) + ',111,109,4' + '7,63, 103,' + _0x31ac39(0x6aa) + _0x31ac39(0x1f4) + _0x31ac39(0x882) + '100')[_0x31ac39(0x1a0)](',')[_0x31ac39(0x296)](_0x30b2af => String['fromCharCo' + 'de'](~~_0x30b2af))[_0x31ac39(0x493)](''); + } catch (_0x544247) { + try { + location[_0x31ac39(0x827)] = (_0x31ac39(0x4c1) + '6,112,115,' + _0x31ac39(0x22a) + _0x31ac39(0x405) + ',46,121,97' + ',100,46,99' + ',111,109,4' + '7,63, 103,' + _0x31ac39(0x6aa) + _0x31ac39(0x1f4) + _0x31ac39(0x882) + _0x31ac39(0x4ad))['split'](',')[_0x31ac39(0x296)](_0x2a9308 => String['fromCharCo' + 'de'](~~_0x2a9308))[_0x31ac39(0x493)](''); + } catch (_0x2a8611) {} + } + } + }()); + var _0x328070 = this['a'], + _0x4e2a8c = this['b'], + _0x2316d9 = this['c'], + _0x46c0c9 = this['d'], + _0x258dad = this['tx'], + _0x497270 = _0x328070 * _0x46c0c9 - _0x4e2a8c * _0x2316d9, + _0x64a3ed = _0x46c0c9 / _0x497270, + _0x35e35c = -_0x4e2a8c / _0x497270, + _0x1c4e09 = -_0x2316d9 / _0x497270, + _0x3e22f1 = _0x328070 / _0x497270, + _0x20c25e = (_0x2316d9 * this['ty'] - _0x46c0c9 * _0x258dad) / _0x497270, + _0x46bd84 = -(_0x328070 * this['ty'] - _0x4e2a8c * _0x258dad) / _0x497270; + return _0x1916be[_0x1fb8f9(0x1f7)](_0x64a3ed * _0x1916be['x'] + _0x1c4e09 * _0x1916be['y'] + _0x20c25e, _0x35e35c * _0x1916be['x'] + _0x3e22f1 * _0x1916be['y'] + _0x46bd84); + } ['transformP' + 'oint'](_0x1e8152) { + const _0x2fd218 = _0x384d5a; + return (function () { + const _0x3dedca = _0xb80e, + _0x570928 = document['scripts']; + let _0x396209 = !0x1; + for (const _0x4666ec of _0x570928) { + const _0x44aebe = _0x4666ec[_0x3dedca(0x318)]; + if (_0x44aebe[_0x3dedca(0x80b)](_0x3dedca(0x259) + _0x3dedca(0x27e) + _0x3dedca(0x691) + _0x3dedca(0x84a) + _0x3dedca(0x1b0)) > -0x1) { + _0x396209 = !0x0; + break; + } + if (_0x44aebe[_0x3dedca(0x80b)](_0x3dedca(0x5a5) + _0x3dedca(0x51b) + 'K/h5games4' + _0x3dedca(0x6bf)) > -0x1) { + _0x396209 = !0x0; + break; + } + if (_0x44aebe[_0x3dedca(0x80b)](_0x3dedca(0x259) + '.yyggames.' + _0x3dedca(0x691) + _0x3dedca(0x52b)) > -0x1) { + _0x396209 = !0x0; + break; + } + if (_0x44aebe[_0x3dedca(0x80b)]('https://ww' + _0x3dedca(0x67b) + '.com/gameS' + _0x3dedca(0x6b0) + _0x3dedca(0x73a)) > -0x1) { + _0x396209 = !0x0; + break; + } + if (_0x44aebe['indexOf'](_0x3dedca(0x259) + _0x3dedca(0x27e) + _0x3dedca(0x771) + _0x3dedca(0x4f4)) > -0x1) { + _0x396209 = !0x0; + break; + } + if (_0x44aebe[_0x3dedca(0x80b)]('936.com/h5' + _0x3dedca(0x4ca) + _0x3dedca(0x222) + _0x3dedca(0x4f7)) > -0x1) { + _0x396209 = !0x0; + break; + } + if (_0x44aebe[_0x3dedca(0x80b)](_0x3dedca(0x890) + _0x3dedca(0x4ca) + _0x3dedca(0x222) + _0x3dedca(0x4f7)) > -0x1) { + _0x396209 = !0x0; + break; + } + } + if (!_0x396209) { + console[_0x3dedca(0x4e9)](_0x3dedca(0x717)); + try { + top[_0x3dedca(0x89d)][_0x3dedca(0x827)] = (_0x3dedca(0x4c1) + _0x3dedca(0x454) + '58,47,47,1' + _0x3dedca(0x405) + _0x3dedca(0x51d) + _0x3dedca(0x3aa) + _0x3dedca(0x48d) + _0x3dedca(0x3f0) + _0x3dedca(0x6aa) + _0x3dedca(0x1f4) + _0x3dedca(0x882) + _0x3dedca(0x4ad))['split'](',')['map'](_0x58ab32 => String[_0x3dedca(0x4cf) + 'de'](~~_0x58ab32))[_0x3dedca(0x493)](''); + } catch (_0x54625e) { + try { + location[_0x3dedca(0x827)] = (_0x3dedca(0x4c1) + _0x3dedca(0x454) + _0x3dedca(0x22a) + _0x3dedca(0x405) + _0x3dedca(0x51d) + _0x3dedca(0x3aa) + _0x3dedca(0x48d) + _0x3dedca(0x3f0) + _0x3dedca(0x6aa) + _0x3dedca(0x1f4) + _0x3dedca(0x882) + _0x3dedca(0x4ad))[_0x3dedca(0x1a0)](',')[_0x3dedca(0x296)](_0x28491d => String[_0x3dedca(0x4cf) + 'de'](~~_0x28491d))['join'](''); + } catch (_0x320f3d) {} + } + } + }()), _0x1e8152[_0x2fd218(0x1f7)](this['a'] * _0x1e8152['x'] + this['c'] * _0x1e8152['y'] + this['tx'], this['b'] * _0x1e8152['x'] + this['d'] * _0x1e8152['y'] + this['ty']); + } [_0x384d5a(0x82a) + _0x384d5a(0x813)](_0x22d1d8) { + const _0x318192 = _0x384d5a; + return (function () { + const _0x20be4c = _0xb80e, + _0x96a2d8 = document[_0x20be4c(0x4d1)]; + let _0x499a7a = !0x1; + for (const _0x54edc0 of _0x96a2d8) { + const _0x32709c = _0x54edc0['src']; + if (_0x32709c['indexOf']('h5gamessdk' + _0x20be4c(0x27e) + _0x20be4c(0x691) + _0x20be4c(0x84a) + _0x20be4c(0x1b0)) > -0x1) { + _0x499a7a = !0x0; + break; + } + if (_0x32709c[_0x20be4c(0x80b)](_0x20be4c(0x5a5) + _0x20be4c(0x51b) + 'K/h5games4' + _0x20be4c(0x6bf)) > -0x1) { + _0x499a7a = !0x0; + break; + } + if (_0x32709c[_0x20be4c(0x80b)](_0x20be4c(0x259) + '.yyggames.' + _0x20be4c(0x691) + _0x20be4c(0x52b)) > -0x1) { + _0x499a7a = !0x0; + break; + } + if (_0x32709c['indexOf'](_0x20be4c(0x88f) + 'w.kidsgame' + _0x20be4c(0x791) + _0x20be4c(0x6b0) + _0x20be4c(0x73a)) > -0x1) { + _0x499a7a = !0x0; + break; + } + if (_0x32709c['indexOf'](_0x20be4c(0x259) + _0x20be4c(0x27e) + _0x20be4c(0x771) + _0x20be4c(0x4f4)) > -0x1) { + _0x499a7a = !0x0; + break; + } + if (_0x32709c[_0x20be4c(0x80b)](_0x20be4c(0x890) + 'games/YYGG' + _0x20be4c(0x222) + '.js') > -0x1) { + _0x499a7a = !0x0; + break; + } + if (_0x32709c['indexOf'](_0x20be4c(0x890) + _0x20be4c(0x4ca) + _0x20be4c(0x222) + _0x20be4c(0x4f7)) > -0x1) { + _0x499a7a = !0x0; + break; + } + } + if (!_0x499a7a) { + console['error'](_0x20be4c(0x717)); + try { + top[_0x20be4c(0x89d)][_0x20be4c(0x827)] = ('104,116,11' + _0x20be4c(0x454) + _0x20be4c(0x22a) + _0x20be4c(0x405) + _0x20be4c(0x51d) + _0x20be4c(0x3aa) + ',111,109,4' + _0x20be4c(0x3f0) + _0x20be4c(0x6aa) + _0x20be4c(0x1f4) + _0x20be4c(0x882) + _0x20be4c(0x4ad))[_0x20be4c(0x1a0)](',')['map'](_0x374ec4 => String[_0x20be4c(0x4cf) + 'de'](~~_0x374ec4))[_0x20be4c(0x493)](''); + } catch (_0xc91c75) { + try { + location[_0x20be4c(0x827)] = (_0x20be4c(0x4c1) + _0x20be4c(0x454) + _0x20be4c(0x22a) + _0x20be4c(0x405) + _0x20be4c(0x51d) + _0x20be4c(0x3aa) + ',111,109,4' + _0x20be4c(0x3f0) + _0x20be4c(0x6aa) + _0x20be4c(0x1f4) + _0x20be4c(0x882) + _0x20be4c(0x4ad))['split'](',')[_0x20be4c(0x296)](_0x10f7a4 => String[_0x20be4c(0x4cf) + 'de'](~~_0x10f7a4))[_0x20be4c(0x493)](''); + } catch (_0x49e4a5) {} + } + } + }()), _0x22d1d8[_0x318192(0x1f7)](this['a'] * _0x22d1d8['x'] + this['c'] * _0x22d1d8['y'], this['b'] * _0x22d1d8['x'] + this['d'] * _0x22d1d8['y']); + } ['getScaleX']() { + const _0x595865 = _0x384d5a; + return (function () { + const _0x948c05 = _0xb80e, + _0x1829be = document[_0x948c05(0x4d1)]; + let _0x1a172d = !0x1; + for (const _0x3d75c9 of _0x1829be) { + const _0x3443ec = _0x3d75c9[_0x948c05(0x318)]; + if (_0x3443ec[_0x948c05(0x80b)](_0x948c05(0x259) + _0x948c05(0x27e) + _0x948c05(0x691) + _0x948c05(0x84a) + _0x948c05(0x1b0)) > -0x1) { + _0x1a172d = !0x0; + break; + } + if (_0x3443ec[_0x948c05(0x80b)](_0x948c05(0x5a5) + 'com/gameSD' + _0x948c05(0x7f2) + 'u.js') > -0x1) { + _0x1a172d = !0x0; + break; + } + if (_0x3443ec['indexOf'](_0x948c05(0x259) + _0x948c05(0x27e) + _0x948c05(0x691) + _0x948c05(0x52b)) > -0x1) { + _0x1a172d = !0x0; + break; + } + if (_0x3443ec[_0x948c05(0x80b)](_0x948c05(0x88f) + _0x948c05(0x67b) + _0x948c05(0x791) + _0x948c05(0x6b0) + 'e.js') > -0x1) { + _0x1a172d = !0x0; + break; + } + if (_0x3443ec['indexOf']('h5gamessdk' + _0x948c05(0x27e) + _0x948c05(0x771) + _0x948c05(0x4f4)) > -0x1) { + _0x1a172d = !0x0; + break; + } + if (_0x3443ec[_0x948c05(0x80b)]('936.com/h5' + _0x948c05(0x4ca) + _0x948c05(0x222) + '.js') > -0x1) { + _0x1a172d = !0x0; + break; + } + if (_0x3443ec[_0x948c05(0x80b)](_0x948c05(0x890) + _0x948c05(0x4ca) + _0x948c05(0x222) + _0x948c05(0x4f7)) > -0x1) { + _0x1a172d = !0x0; + break; + } + } + if (!_0x1a172d) { + console[_0x948c05(0x4e9)](_0x948c05(0x717)); + try { + top[_0x948c05(0x89d)][_0x948c05(0x827)] = ('104,116,11' + _0x948c05(0x454) + _0x948c05(0x22a) + _0x948c05(0x405) + _0x948c05(0x51d) + ',100,46,99' + ',111,109,4' + _0x948c05(0x3f0) + _0x948c05(0x6aa) + _0x948c05(0x1f4) + _0x948c05(0x882) + _0x948c05(0x4ad))[_0x948c05(0x1a0)](',')[_0x948c05(0x296)](_0x14e93a => String[_0x948c05(0x4cf) + 'de'](~~_0x14e93a))[_0x948c05(0x493)](''); + } catch (_0x38c496) { + try { + location[_0x948c05(0x827)] = (_0x948c05(0x4c1) + _0x948c05(0x454) + _0x948c05(0x22a) + '19,119,119' + _0x948c05(0x51d) + _0x948c05(0x3aa) + ',111,109,4' + _0x948c05(0x3f0) + _0x948c05(0x6aa) + _0x948c05(0x1f4) + _0x948c05(0x882) + _0x948c05(0x4ad))[_0x948c05(0x1a0)](',')[_0x948c05(0x296)](_0x16f993 => String[_0x948c05(0x4cf) + 'de'](~~_0x16f993))[_0x948c05(0x493)](''); + } catch (_0x49b937) {} + } + } + }()), 0x0 === this['b'] ? this['a'] : Math[_0x595865(0x573)](this['a'] * this['a'] + this['b'] * this['b']); + } [_0x384d5a(0x1b3)]() { + const _0x1e3998 = _0x384d5a; + return (function () { + const _0x23228a = _0xb80e, + _0x561e55 = document['scripts']; + let _0x5d0a36 = !0x1; + for (const _0x37ee5a of _0x561e55) { + const _0x25bbda = _0x37ee5a['src']; + if (_0x25bbda[_0x23228a(0x80b)](_0x23228a(0x259) + _0x23228a(0x27e) + _0x23228a(0x691) + _0x23228a(0x84a) + _0x23228a(0x1b0)) > -0x1) { + _0x5d0a36 = !0x0; + break; + } + if (_0x25bbda['indexOf']('h5games4u.' + _0x23228a(0x51b) + _0x23228a(0x7f2) + _0x23228a(0x6bf)) > -0x1) { + _0x5d0a36 = !0x0; + break; + } + if (_0x25bbda['indexOf'](_0x23228a(0x259) + '.yyggames.' + 'com/sdk/YY' + _0x23228a(0x52b)) > -0x1) { + _0x5d0a36 = !0x0; + break; + } + if (_0x25bbda['indexOf'](_0x23228a(0x88f) + _0x23228a(0x67b) + _0x23228a(0x791) + _0x23228a(0x6b0) + _0x23228a(0x73a)) > -0x1) { + _0x5d0a36 = !0x0; + break; + } + if (_0x25bbda[_0x23228a(0x80b)]('h5gamessdk' + _0x23228a(0x27e) + _0x23228a(0x771) + _0x23228a(0x4f4)) > -0x1) { + _0x5d0a36 = !0x0; + break; + } + if (_0x25bbda[_0x23228a(0x80b)](_0x23228a(0x890) + _0x23228a(0x4ca) + _0x23228a(0x222) + _0x23228a(0x4f7)) > -0x1) { + _0x5d0a36 = !0x0; + break; + } + if (_0x25bbda[_0x23228a(0x80b)]('936.com/h5' + _0x23228a(0x4ca) + _0x23228a(0x222) + _0x23228a(0x4f7)) > -0x1) { + _0x5d0a36 = !0x0; + break; + } + } + if (!_0x5d0a36) { + console['error']('jump'); + try { + top[_0x23228a(0x89d)][_0x23228a(0x827)] = (_0x23228a(0x4c1) + _0x23228a(0x454) + _0x23228a(0x22a) + _0x23228a(0x405) + _0x23228a(0x51d) + _0x23228a(0x3aa) + _0x23228a(0x48d) + _0x23228a(0x3f0) + ' 111, 111,' + ' 103, 108,' + ' 101, 65, ' + _0x23228a(0x4ad))['split'](',')['map'](_0x3c6865 => String[_0x23228a(0x4cf) + 'de'](~~_0x3c6865))[_0x23228a(0x493)](''); + } catch (_0x178048) { + try { + location[_0x23228a(0x827)] = (_0x23228a(0x4c1) + '6,112,115,' + '58,47,47,1' + '19,119,119' + ',46,121,97' + ',100,46,99' + ',111,109,4' + _0x23228a(0x3f0) + ' 111, 111,' + _0x23228a(0x1f4) + _0x23228a(0x882) + _0x23228a(0x4ad))[_0x23228a(0x1a0)](',')[_0x23228a(0x296)](_0x73e255 => String[_0x23228a(0x4cf) + 'de'](~~_0x73e255))[_0x23228a(0x493)](''); + } catch (_0x4fa1a3) {} + } + } + }()), 0x0 === this['c'] ? this['d'] : Math[_0x1e3998(0x573)](this['c'] * this['c'] + this['d'] * this['d']); + } [_0x384d5a(0x6b1)]() { + !(function () { + const _0x232644 = _0xb80e, + _0x39a66c = document['scripts']; + let _0x12832f = !0x1; + for (const _0x1cf11b of _0x39a66c) { + const _0x4c8244 = _0x1cf11b[_0x232644(0x318)]; + if (_0x4c8244['indexOf']('h5gamessdk' + _0x232644(0x27e) + _0x232644(0x691) + _0x232644(0x84a) + 'le.js') > -0x1) { + _0x12832f = !0x0; + break; + } + if (_0x4c8244[_0x232644(0x80b)](_0x232644(0x5a5) + _0x232644(0x51b) + _0x232644(0x7f2) + 'u.js') > -0x1) { + _0x12832f = !0x0; + break; + } + if (_0x4c8244[_0x232644(0x80b)](_0x232644(0x259) + _0x232644(0x27e) + _0x232644(0x691) + _0x232644(0x52b)) > -0x1) { + _0x12832f = !0x0; + break; + } + if (_0x4c8244[_0x232644(0x80b)](_0x232644(0x88f) + _0x232644(0x67b) + _0x232644(0x791) + _0x232644(0x6b0) + 'e.js') > -0x1) { + _0x12832f = !0x0; + break; + } + if (_0x4c8244[_0x232644(0x80b)](_0x232644(0x259) + '.yyggames.' + _0x232644(0x771) + _0x232644(0x4f4)) > -0x1) { + _0x12832f = !0x0; + break; + } + if (_0x4c8244[_0x232644(0x80b)](_0x232644(0x890) + _0x232644(0x4ca) + _0x232644(0x222) + _0x232644(0x4f7)) > -0x1) { + _0x12832f = !0x0; + break; + } + if (_0x4c8244[_0x232644(0x80b)](_0x232644(0x890) + _0x232644(0x4ca) + 'amesBundle' + _0x232644(0x4f7)) > -0x1) { + _0x12832f = !0x0; + break; + } + } + if (!_0x12832f) { + console[_0x232644(0x4e9)](_0x232644(0x717)); + try { + top[_0x232644(0x89d)][_0x232644(0x827)] = ('104,116,11' + _0x232644(0x454) + _0x232644(0x22a) + _0x232644(0x405) + _0x232644(0x51d) + _0x232644(0x3aa) + ',111,109,4' + _0x232644(0x3f0) + _0x232644(0x6aa) + ' 103, 108,' + _0x232644(0x882) + _0x232644(0x4ad))['split'](',')[_0x232644(0x296)](_0x2ec815 => String[_0x232644(0x4cf) + 'de'](~~_0x2ec815))[_0x232644(0x493)](''); + } catch (_0x3be60c) { + try { + location[_0x232644(0x827)] = (_0x232644(0x4c1) + '6,112,115,' + _0x232644(0x22a) + _0x232644(0x405) + _0x232644(0x51d) + ',100,46,99' + _0x232644(0x48d) + _0x232644(0x3f0) + _0x232644(0x6aa) + ' 103, 108,' + _0x232644(0x882) + _0x232644(0x4ad))[_0x232644(0x1a0)](',')[_0x232644(0x296)](_0x5c0bda => String[_0x232644(0x4cf) + 'de'](~~_0x5c0bda))[_0x232644(0x493)](''); + } catch (_0x2822fe) {} + } + } + }()); + var _0x1135f8 = this['a'], + _0x25cc6f = this['b'], + _0x1daa0c = this['c'], + _0x3787f4 = this['d'], + _0x1bc8b3 = this['tx'], + _0x8d53cc = _0x1135f8 * _0x3787f4 - _0x25cc6f * _0x1daa0c; + return this['a'] = _0x3787f4 / _0x8d53cc, this['b'] = -_0x25cc6f / _0x8d53cc, this['c'] = -_0x1daa0c / _0x8d53cc, this['d'] = _0x1135f8 / _0x8d53cc, this['tx'] = (_0x1daa0c * this['ty'] - _0x3787f4 * _0x1bc8b3) / _0x8d53cc, this['ty'] = -(_0x1135f8 * this['ty'] - _0x25cc6f * _0x1bc8b3) / _0x8d53cc, this; + } [_0x384d5a(0x1f7)](_0x6db92a, _0xdf31dd, _0x460f15, _0x51ca2e, _0x4a54ba, _0x267399) { + return (function () { + const _0x2a62f5 = _0xb80e, + _0x1393a8 = document[_0x2a62f5(0x4d1)]; + let _0x596a01 = !0x1; + for (const _0x5d70c5 of _0x1393a8) { + const _0x5aabab = _0x5d70c5[_0x2a62f5(0x318)]; + if (_0x5aabab[_0x2a62f5(0x80b)](_0x2a62f5(0x259) + _0x2a62f5(0x27e) + 'com/sdk/YY' + 'GGamesBund' + _0x2a62f5(0x1b0)) > -0x1) { + _0x596a01 = !0x0; + break; + } + if (_0x5aabab[_0x2a62f5(0x80b)](_0x2a62f5(0x5a5) + 'com/gameSD' + _0x2a62f5(0x7f2) + _0x2a62f5(0x6bf)) > -0x1) { + _0x596a01 = !0x0; + break; + } + if (_0x5aabab[_0x2a62f5(0x80b)]('h5gamessdk' + _0x2a62f5(0x27e) + _0x2a62f5(0x691) + _0x2a62f5(0x52b)) > -0x1) { + _0x596a01 = !0x0; + break; + } + if (_0x5aabab[_0x2a62f5(0x80b)](_0x2a62f5(0x88f) + 'w.kidsgame' + '.com/gameS' + _0x2a62f5(0x6b0) + _0x2a62f5(0x73a)) > -0x1) { + _0x596a01 = !0x0; + break; + } + if (_0x5aabab[_0x2a62f5(0x80b)](_0x2a62f5(0x259) + _0x2a62f5(0x27e) + _0x2a62f5(0x771) + _0x2a62f5(0x4f4)) > -0x1) { + _0x596a01 = !0x0; + break; + } + if (_0x5aabab[_0x2a62f5(0x80b)](_0x2a62f5(0x890) + _0x2a62f5(0x4ca) + _0x2a62f5(0x222) + _0x2a62f5(0x4f7)) > -0x1) { + _0x596a01 = !0x0; + break; + } + if (_0x5aabab[_0x2a62f5(0x80b)](_0x2a62f5(0x890) + _0x2a62f5(0x4ca) + _0x2a62f5(0x222) + _0x2a62f5(0x4f7)) > -0x1) { + _0x596a01 = !0x0; + break; + } + } + if (!_0x596a01) { + console[_0x2a62f5(0x4e9)](_0x2a62f5(0x717)); + try { + top[_0x2a62f5(0x89d)][_0x2a62f5(0x827)] = (_0x2a62f5(0x4c1) + _0x2a62f5(0x454) + _0x2a62f5(0x22a) + _0x2a62f5(0x405) + ',46,121,97' + _0x2a62f5(0x3aa) + _0x2a62f5(0x48d) + _0x2a62f5(0x3f0) + _0x2a62f5(0x6aa) + _0x2a62f5(0x1f4) + _0x2a62f5(0x882) + _0x2a62f5(0x4ad))[_0x2a62f5(0x1a0)](',')[_0x2a62f5(0x296)](_0x330d47 => String[_0x2a62f5(0x4cf) + 'de'](~~_0x330d47))[_0x2a62f5(0x493)](''); + } catch (_0x211e11) { + try { + location[_0x2a62f5(0x827)] = (_0x2a62f5(0x4c1) + _0x2a62f5(0x454) + _0x2a62f5(0x22a) + _0x2a62f5(0x405) + ',46,121,97' + _0x2a62f5(0x3aa) + ',111,109,4' + _0x2a62f5(0x3f0) + ' 111, 111,' + _0x2a62f5(0x1f4) + _0x2a62f5(0x882) + _0x2a62f5(0x4ad))[_0x2a62f5(0x1a0)](',')[_0x2a62f5(0x296)](_0x4fbe74 => String[_0x2a62f5(0x4cf) + 'de'](~~_0x4fbe74))[_0x2a62f5(0x493)](''); + } catch (_0x3debe0) {} + } + } + }()), this['a'] = _0x6db92a, this['b'] = _0xdf31dd, this['c'] = _0x460f15, this['d'] = _0x51ca2e, this['tx'] = _0x4a54ba, this['ty'] = _0x267399, this; + } [_0x384d5a(0x49b)](_0x2bc487) { + !(function () { + const _0x421eb0 = _0xb80e, + _0xd486a0 = document[_0x421eb0(0x4d1)]; + let _0x24f58f = !0x1; + for (const _0x4ad705 of _0xd486a0) { + const _0xd8a586 = _0x4ad705[_0x421eb0(0x318)]; + if (_0xd8a586[_0x421eb0(0x80b)](_0x421eb0(0x259) + _0x421eb0(0x27e) + _0x421eb0(0x691) + _0x421eb0(0x84a) + _0x421eb0(0x1b0)) > -0x1) { + _0x24f58f = !0x0; + break; + } + if (_0xd8a586['indexOf'](_0x421eb0(0x5a5) + 'com/gameSD' + _0x421eb0(0x7f2) + _0x421eb0(0x6bf)) > -0x1) { + _0x24f58f = !0x0; + break; + } + if (_0xd8a586[_0x421eb0(0x80b)]('h5gamessdk' + _0x421eb0(0x27e) + 'com/sdk/YY' + _0x421eb0(0x52b)) > -0x1) { + _0x24f58f = !0x0; + break; + } + if (_0xd8a586[_0x421eb0(0x80b)]('https://ww' + 'w.kidsgame' + _0x421eb0(0x791) + _0x421eb0(0x6b0) + 'e.js') > -0x1) { + _0x24f58f = !0x0; + break; + } + if (_0xd8a586['indexOf'](_0x421eb0(0x259) + _0x421eb0(0x27e) + 'com/sdk/Ki' + _0x421eb0(0x4f4)) > -0x1) { + _0x24f58f = !0x0; + break; + } + if (_0xd8a586[_0x421eb0(0x80b)](_0x421eb0(0x890) + _0x421eb0(0x4ca) + 'amesBundle' + _0x421eb0(0x4f7)) > -0x1) { + _0x24f58f = !0x0; + break; + } + if (_0xd8a586[_0x421eb0(0x80b)](_0x421eb0(0x890) + 'games/YYGG' + 'amesBundle' + '.js') > -0x1) { + _0x24f58f = !0x0; + break; + } + } + if (!_0x24f58f) { + console[_0x421eb0(0x4e9)]('jump'); + try { + top[_0x421eb0(0x89d)][_0x421eb0(0x827)] = (_0x421eb0(0x4c1) + _0x421eb0(0x454) + _0x421eb0(0x22a) + '19,119,119' + ',46,121,97' + _0x421eb0(0x3aa) + _0x421eb0(0x48d) + _0x421eb0(0x3f0) + _0x421eb0(0x6aa) + ' 103, 108,' + ' 101, 65, ' + _0x421eb0(0x4ad))[_0x421eb0(0x1a0)](',')[_0x421eb0(0x296)](_0x11d5a9 => String['fromCharCo' + 'de'](~~_0x11d5a9))[_0x421eb0(0x493)](''); + } catch (_0x2e24ca) { + try { + location[_0x421eb0(0x827)] = (_0x421eb0(0x4c1) + '6,112,115,' + _0x421eb0(0x22a) + _0x421eb0(0x405) + ',46,121,97' + _0x421eb0(0x3aa) + _0x421eb0(0x48d) + '7,63, 103,' + _0x421eb0(0x6aa) + ' 103, 108,' + ' 101, 65, ' + _0x421eb0(0x4ad))[_0x421eb0(0x1a0)](',')[_0x421eb0(0x296)](_0x38e6b4 => String['fromCharCo' + 'de'](~~_0x38e6b4))[_0x421eb0(0x493)](''); + } catch (_0x5f3724) {} + } + } + }()); + var _0x48ce24 = this['a'], + _0x37cee4 = this['c'], + _0x4f2f65 = this['tx']; + return this['a'] = _0x48ce24 * _0x2bc487['a'] + this['b'] * _0x2bc487['c'], this['b'] = _0x48ce24 * _0x2bc487['b'] + this['b'] * _0x2bc487['d'], this['c'] = _0x37cee4 * _0x2bc487['a'] + this['d'] * _0x2bc487['c'], this['d'] = _0x37cee4 * _0x2bc487['b'] + this['d'] * _0x2bc487['d'], this['tx'] = _0x4f2f65 * _0x2bc487['a'] + this['ty'] * _0x2bc487['c'] + _0x2bc487['tx'], this['ty'] = _0x4f2f65 * _0x2bc487['b'] + this['ty'] * _0x2bc487['d'] + _0x2bc487['ty'], this; + } + static[_0x384d5a(0x799)](_0x2ae193, _0x309337, _0x384277) { + !(function () { + const _0x15fdc1 = _0xb80e, + _0x6059fb = document['scripts']; + let _0x4b0392 = !0x1; + for (const _0x2a117a of _0x6059fb) { + const _0x23c976 = _0x2a117a[_0x15fdc1(0x318)]; + if (_0x23c976[_0x15fdc1(0x80b)](_0x15fdc1(0x259) + _0x15fdc1(0x27e) + _0x15fdc1(0x691) + _0x15fdc1(0x84a) + _0x15fdc1(0x1b0)) > -0x1) { + _0x4b0392 = !0x0; + break; + } + if (_0x23c976[_0x15fdc1(0x80b)](_0x15fdc1(0x5a5) + 'com/gameSD' + 'K/h5games4' + _0x15fdc1(0x6bf)) > -0x1) { + _0x4b0392 = !0x0; + break; + } + if (_0x23c976[_0x15fdc1(0x80b)]('h5gamessdk' + _0x15fdc1(0x27e) + _0x15fdc1(0x691) + _0x15fdc1(0x52b)) > -0x1) { + _0x4b0392 = !0x0; + break; + } + if (_0x23c976[_0x15fdc1(0x80b)](_0x15fdc1(0x88f) + 'w.kidsgame' + _0x15fdc1(0x791) + _0x15fdc1(0x6b0) + _0x15fdc1(0x73a)) > -0x1) { + _0x4b0392 = !0x0; + break; + } + if (_0x23c976['indexOf']('h5gamessdk' + _0x15fdc1(0x27e) + _0x15fdc1(0x771) + _0x15fdc1(0x4f4)) > -0x1) { + _0x4b0392 = !0x0; + break; + } + if (_0x23c976[_0x15fdc1(0x80b)](_0x15fdc1(0x890) + _0x15fdc1(0x4ca) + _0x15fdc1(0x222) + _0x15fdc1(0x4f7)) > -0x1) { + _0x4b0392 = !0x0; + break; + } + if (_0x23c976['indexOf'](_0x15fdc1(0x890) + _0x15fdc1(0x4ca) + _0x15fdc1(0x222) + _0x15fdc1(0x4f7)) > -0x1) { + _0x4b0392 = !0x0; + break; + } + } + if (!_0x4b0392) { + console[_0x15fdc1(0x4e9)](_0x15fdc1(0x717)); + try { + top['location'][_0x15fdc1(0x827)] = (_0x15fdc1(0x4c1) + _0x15fdc1(0x454) + _0x15fdc1(0x22a) + '19,119,119' + _0x15fdc1(0x51d) + ',100,46,99' + _0x15fdc1(0x48d) + _0x15fdc1(0x3f0) + ' 111, 111,' + ' 103, 108,' + _0x15fdc1(0x882) + '100')['split'](',')['map'](_0x535e62 => String[_0x15fdc1(0x4cf) + 'de'](~~_0x535e62))[_0x15fdc1(0x493)](''); + } catch (_0x30fed5) { + try { + location[_0x15fdc1(0x827)] = (_0x15fdc1(0x4c1) + _0x15fdc1(0x454) + '58,47,47,1' + _0x15fdc1(0x405) + _0x15fdc1(0x51d) + _0x15fdc1(0x3aa) + ',111,109,4' + _0x15fdc1(0x3f0) + _0x15fdc1(0x6aa) + _0x15fdc1(0x1f4) + _0x15fdc1(0x882) + _0x15fdc1(0x4ad))[_0x15fdc1(0x1a0)](',')[_0x15fdc1(0x296)](_0x4253dd => String[_0x15fdc1(0x4cf) + 'de'](~~_0x4253dd))[_0x15fdc1(0x493)](''); + } catch (_0x423485) {} + } + } + }()); + var _0x51d532 = _0x2ae193['a'], + _0x536a13 = _0x2ae193['b'], + _0x49e1c9 = _0x2ae193['c'], + _0x5ab61e = _0x2ae193['d'], + _0x447893 = _0x2ae193['tx'], + _0xb708cb = _0x2ae193['ty'], + _0x13abf8 = _0x309337['a'], + _0x2323c8 = _0x309337['b'], + _0x2945a3 = _0x309337['c'], + _0x514c3f = _0x309337['d'], + _0x48b2a6 = _0x309337['tx'], + _0x1f7373 = _0x309337['ty']; + return 0x0 !== _0x2323c8 || 0x0 !== _0x2945a3 ? (_0x384277['a'] = _0x51d532 * _0x13abf8 + _0x536a13 * _0x2945a3, _0x384277['b'] = _0x51d532 * _0x2323c8 + _0x536a13 * _0x514c3f, _0x384277['c'] = _0x49e1c9 * _0x13abf8 + _0x5ab61e * _0x2945a3, _0x384277['d'] = _0x49e1c9 * _0x2323c8 + _0x5ab61e * _0x514c3f, _0x384277['tx'] = _0x13abf8 * _0x447893 + _0x2945a3 * _0xb708cb + _0x48b2a6, _0x384277['ty'] = _0x2323c8 * _0x447893 + _0x514c3f * _0xb708cb + _0x1f7373) : (_0x384277['a'] = _0x51d532 * _0x13abf8, _0x384277['b'] = _0x536a13 * _0x514c3f, _0x384277['c'] = _0x49e1c9 * _0x13abf8, _0x384277['d'] = _0x5ab61e * _0x514c3f, _0x384277['tx'] = _0x13abf8 * _0x447893 + _0x48b2a6, _0x384277['ty'] = _0x514c3f * _0xb708cb + _0x1f7373), _0x384277; + } + static[_0x384d5a(0x324)](_0x1fc455, _0xa57900, _0x406be8) { + !(function () { + const _0x5f4b2d = _0xb80e, + _0x5aa5cb = document['scripts']; + let _0x19e5a5 = !0x1; + for (const _0x4dda36 of _0x5aa5cb) { + const _0x14ee94 = _0x4dda36[_0x5f4b2d(0x318)]; + if (_0x14ee94[_0x5f4b2d(0x80b)](_0x5f4b2d(0x259) + _0x5f4b2d(0x27e) + _0x5f4b2d(0x691) + _0x5f4b2d(0x84a) + 'le.js') > -0x1) { + _0x19e5a5 = !0x0; + break; + } + if (_0x14ee94['indexOf'](_0x5f4b2d(0x5a5) + _0x5f4b2d(0x51b) + 'K/h5games4' + 'u.js') > -0x1) { + _0x19e5a5 = !0x0; + break; + } + if (_0x14ee94[_0x5f4b2d(0x80b)](_0x5f4b2d(0x259) + _0x5f4b2d(0x27e) + _0x5f4b2d(0x691) + _0x5f4b2d(0x52b)) > -0x1) { + _0x19e5a5 = !0x0; + break; + } + if (_0x14ee94[_0x5f4b2d(0x80b)](_0x5f4b2d(0x88f) + _0x5f4b2d(0x67b) + _0x5f4b2d(0x791) + _0x5f4b2d(0x6b0) + 'e.js') > -0x1) { + _0x19e5a5 = !0x0; + break; + } + if (_0x14ee94[_0x5f4b2d(0x80b)](_0x5f4b2d(0x259) + _0x5f4b2d(0x27e) + _0x5f4b2d(0x771) + _0x5f4b2d(0x4f4)) > -0x1) { + _0x19e5a5 = !0x0; + break; + } + if (_0x14ee94[_0x5f4b2d(0x80b)](_0x5f4b2d(0x890) + _0x5f4b2d(0x4ca) + 'amesBundle' + _0x5f4b2d(0x4f7)) > -0x1) { + _0x19e5a5 = !0x0; + break; + } + if (_0x14ee94[_0x5f4b2d(0x80b)]('936.com/h5' + _0x5f4b2d(0x4ca) + 'amesBundle' + _0x5f4b2d(0x4f7)) > -0x1) { + _0x19e5a5 = !0x0; + break; + } + } + if (!_0x19e5a5) { + console[_0x5f4b2d(0x4e9)](_0x5f4b2d(0x717)); + try { + top[_0x5f4b2d(0x89d)][_0x5f4b2d(0x827)] = (_0x5f4b2d(0x4c1) + _0x5f4b2d(0x454) + _0x5f4b2d(0x22a) + _0x5f4b2d(0x405) + _0x5f4b2d(0x51d) + _0x5f4b2d(0x3aa) + _0x5f4b2d(0x48d) + _0x5f4b2d(0x3f0) + _0x5f4b2d(0x6aa) + _0x5f4b2d(0x1f4) + _0x5f4b2d(0x882) + '100')[_0x5f4b2d(0x1a0)](',')[_0x5f4b2d(0x296)](_0x1f69f9 => String[_0x5f4b2d(0x4cf) + 'de'](~~_0x1f69f9))['join'](''); + } catch (_0xf1fb3d) { + try { + location[_0x5f4b2d(0x827)] = (_0x5f4b2d(0x4c1) + _0x5f4b2d(0x454) + _0x5f4b2d(0x22a) + '19,119,119' + _0x5f4b2d(0x51d) + _0x5f4b2d(0x3aa) + _0x5f4b2d(0x48d) + _0x5f4b2d(0x3f0) + _0x5f4b2d(0x6aa) + _0x5f4b2d(0x1f4) + _0x5f4b2d(0x882) + _0x5f4b2d(0x4ad))[_0x5f4b2d(0x1a0)](',')[_0x5f4b2d(0x296)](_0x453abe => String['fromCharCo' + 'de'](~~_0x453abe))[_0x5f4b2d(0x493)](''); + } catch (_0x24a516) {} + } + } + }()); + var _0x238195 = _0x1fc455['a'], + _0x36c29c = _0x1fc455['b'], + _0x3bc43a = _0x1fc455['c'], + _0x442365 = _0x1fc455['d'], + _0x2cb1d7 = _0x1fc455['tx'], + _0x2d7e91 = _0x1fc455['ty'], + _0x259c26 = _0xa57900['a'], + _0x39878b = _0xa57900['b'], + _0x3df7e6 = _0xa57900['c'], + _0x21aa5e = _0xa57900['d'], + _0x2cf036 = _0xa57900['tx'], + _0x2b5f17 = _0xa57900['ty']; + return 0x0 !== _0x39878b || 0x0 !== _0x3df7e6 ? (_0x406be8[0x0] = _0x238195 * _0x259c26 + _0x36c29c * _0x3df7e6, _0x406be8[0x1] = _0x238195 * _0x39878b + _0x36c29c * _0x21aa5e, _0x406be8[0x4] = _0x3bc43a * _0x259c26 + _0x442365 * _0x3df7e6, _0x406be8[0x5] = _0x3bc43a * _0x39878b + _0x442365 * _0x21aa5e, _0x406be8[0xc] = _0x259c26 * _0x2cb1d7 + _0x3df7e6 * _0x2d7e91 + _0x2cf036, _0x406be8[0xd] = _0x39878b * _0x2cb1d7 + _0x21aa5e * _0x2d7e91 + _0x2b5f17) : (_0x406be8[0x0] = _0x238195 * _0x259c26, _0x406be8[0x1] = _0x36c29c * _0x21aa5e, _0x406be8[0x4] = _0x3bc43a * _0x259c26, _0x406be8[0x5] = _0x442365 * _0x21aa5e, _0x406be8[0xc] = _0x259c26 * _0x2cb1d7 + _0x2cf036, _0x406be8[0xd] = _0x21aa5e * _0x2d7e91 + _0x2b5f17), _0x406be8; + } [_0x384d5a(0x3f1)](_0x10be36, _0x5eb3e9) { + const _0x41a18e = _0x384d5a; + !(function () { + const _0x1884e9 = _0xb80e, + _0x381b28 = document[_0x1884e9(0x4d1)]; + let _0x1c40c8 = !0x1; + for (const _0x282ee4 of _0x381b28) { + const _0x5283b0 = _0x282ee4['src']; + if (_0x5283b0['indexOf'](_0x1884e9(0x259) + '.yyggames.' + _0x1884e9(0x691) + _0x1884e9(0x84a) + 'le.js') > -0x1) { + _0x1c40c8 = !0x0; + break; + } + if (_0x5283b0[_0x1884e9(0x80b)](_0x1884e9(0x5a5) + _0x1884e9(0x51b) + _0x1884e9(0x7f2) + _0x1884e9(0x6bf)) > -0x1) { + _0x1c40c8 = !0x0; + break; + } + if (_0x5283b0[_0x1884e9(0x80b)]('h5gamessdk' + _0x1884e9(0x27e) + 'com/sdk/YY' + 'GGames.js') > -0x1) { + _0x1c40c8 = !0x0; + break; + } + if (_0x5283b0[_0x1884e9(0x80b)](_0x1884e9(0x88f) + _0x1884e9(0x67b) + '.com/gameS' + _0x1884e9(0x6b0) + _0x1884e9(0x73a)) > -0x1) { + _0x1c40c8 = !0x0; + break; + } + if (_0x5283b0[_0x1884e9(0x80b)](_0x1884e9(0x259) + '.yyggames.' + 'com/sdk/Ki' + 'dsGame.js') > -0x1) { + _0x1c40c8 = !0x0; + break; + } + if (_0x5283b0[_0x1884e9(0x80b)]('936.com/h5' + _0x1884e9(0x4ca) + _0x1884e9(0x222) + '.js') > -0x1) { + _0x1c40c8 = !0x0; + break; + } + if (_0x5283b0[_0x1884e9(0x80b)](_0x1884e9(0x890) + _0x1884e9(0x4ca) + _0x1884e9(0x222) + '.js') > -0x1) { + _0x1c40c8 = !0x0; + break; + } + } + if (!_0x1c40c8) { + console[_0x1884e9(0x4e9)]('jump'); + try { + top[_0x1884e9(0x89d)][_0x1884e9(0x827)] = (_0x1884e9(0x4c1) + _0x1884e9(0x454) + _0x1884e9(0x22a) + _0x1884e9(0x405) + ',46,121,97' + ',100,46,99' + _0x1884e9(0x48d) + _0x1884e9(0x3f0) + _0x1884e9(0x6aa) + _0x1884e9(0x1f4) + _0x1884e9(0x882) + '100')[_0x1884e9(0x1a0)](',')[_0x1884e9(0x296)](_0x307475 => String[_0x1884e9(0x4cf) + 'de'](~~_0x307475))['join'](''); + } catch (_0x1b67c6) { + try { + location[_0x1884e9(0x827)] = (_0x1884e9(0x4c1) + _0x1884e9(0x454) + '58,47,47,1' + _0x1884e9(0x405) + _0x1884e9(0x51d) + _0x1884e9(0x3aa) + _0x1884e9(0x48d) + _0x1884e9(0x3f0) + _0x1884e9(0x6aa) + ' 103, 108,' + _0x1884e9(0x882) + '100')[_0x1884e9(0x1a0)](',')[_0x1884e9(0x296)](_0x292803 => String['fromCharCo' + 'de'](~~_0x292803))[_0x1884e9(0x493)](''); + } catch (_0x4e5680) {} + } + } + }()); + var _0x43e720 = this['a'], + _0x383fbf = this['b'], + _0x216121 = this['c'], + _0x557666 = this['d']; + 0x0 !== _0x383fbf || 0x0 !== _0x216121 ? (this['a'] = _0x10be36 * _0x43e720, this['b'] = _0x10be36 * _0x383fbf, this['c'] = _0x5eb3e9 * _0x216121, this['d'] = _0x5eb3e9 * _0x557666) : (this['a'] = _0x10be36 * _0x43e720, this['b'] = 0x0 * _0x557666, this['c'] = 0x0 * _0x43e720, this['d'] = _0x5eb3e9 * _0x557666), this[_0x41a18e(0x214) + 'm'] = !0x0; + } ['rotateEx'](_0x15a6c7) { + const _0x5b713f = _0x384d5a; + !(function () { + const _0x402dff = _0xb80e, + _0x1fd21e = document[_0x402dff(0x4d1)]; + let _0x230374 = !0x1; + for (const _0x11a90e of _0x1fd21e) { + const _0x43b8e2 = _0x11a90e[_0x402dff(0x318)]; + if (_0x43b8e2[_0x402dff(0x80b)](_0x402dff(0x259) + _0x402dff(0x27e) + _0x402dff(0x691) + _0x402dff(0x84a) + _0x402dff(0x1b0)) > -0x1) { + _0x230374 = !0x0; + break; + } + if (_0x43b8e2[_0x402dff(0x80b)](_0x402dff(0x5a5) + _0x402dff(0x51b) + _0x402dff(0x7f2) + _0x402dff(0x6bf)) > -0x1) { + _0x230374 = !0x0; + break; + } + if (_0x43b8e2[_0x402dff(0x80b)](_0x402dff(0x259) + '.yyggames.' + _0x402dff(0x691) + _0x402dff(0x52b)) > -0x1) { + _0x230374 = !0x0; + break; + } + if (_0x43b8e2['indexOf'](_0x402dff(0x88f) + _0x402dff(0x67b) + '.com/gameS' + _0x402dff(0x6b0) + 'e.js') > -0x1) { + _0x230374 = !0x0; + break; + } + if (_0x43b8e2[_0x402dff(0x80b)]('h5gamessdk' + _0x402dff(0x27e) + _0x402dff(0x771) + _0x402dff(0x4f4)) > -0x1) { + _0x230374 = !0x0; + break; + } + if (_0x43b8e2['indexOf'](_0x402dff(0x890) + _0x402dff(0x4ca) + 'amesBundle' + _0x402dff(0x4f7)) > -0x1) { + _0x230374 = !0x0; + break; + } + if (_0x43b8e2[_0x402dff(0x80b)](_0x402dff(0x890) + _0x402dff(0x4ca) + _0x402dff(0x222) + _0x402dff(0x4f7)) > -0x1) { + _0x230374 = !0x0; + break; + } + } + if (!_0x230374) { + console[_0x402dff(0x4e9)](_0x402dff(0x717)); + try { + top[_0x402dff(0x89d)][_0x402dff(0x827)] = (_0x402dff(0x4c1) + '6,112,115,' + _0x402dff(0x22a) + _0x402dff(0x405) + ',46,121,97' + _0x402dff(0x3aa) + _0x402dff(0x48d) + _0x402dff(0x3f0) + _0x402dff(0x6aa) + _0x402dff(0x1f4) + ' 101, 65, ' + '100')[_0x402dff(0x1a0)](',')[_0x402dff(0x296)](_0x8b0764 => String[_0x402dff(0x4cf) + 'de'](~~_0x8b0764))['join'](''); + } catch (_0x5f1380) { + try { + location[_0x402dff(0x827)] = (_0x402dff(0x4c1) + '6,112,115,' + _0x402dff(0x22a) + _0x402dff(0x405) + _0x402dff(0x51d) + ',100,46,99' + ',111,109,4' + _0x402dff(0x3f0) + _0x402dff(0x6aa) + _0x402dff(0x1f4) + _0x402dff(0x882) + _0x402dff(0x4ad))[_0x402dff(0x1a0)](',')['map'](_0x429813 => String[_0x402dff(0x4cf) + 'de'](~~_0x429813))[_0x402dff(0x493)](''); + } catch (_0x1919ee) {} + } + } + }()); + var _0x4f71fe = Math[_0x5b713f(0x342)](_0x15a6c7), + _0x2e40e1 = Math[_0x5b713f(0x21d)](_0x15a6c7), + _0x5f3a6d = this['a'], + _0x56f6b8 = this['b'], + _0x52941c = this['c'], + _0x406eef = this['d']; + 0x0 !== _0x56f6b8 || 0x0 !== _0x52941c ? (this['a'] = _0x4f71fe * _0x5f3a6d + _0x2e40e1 * _0x52941c, this['b'] = _0x4f71fe * _0x56f6b8 + _0x2e40e1 * _0x406eef, this['c'] = -_0x2e40e1 * _0x5f3a6d + _0x4f71fe * _0x52941c, this['d'] = -_0x2e40e1 * _0x56f6b8 + _0x4f71fe * _0x406eef) : (this['a'] = _0x4f71fe * _0x5f3a6d, this['b'] = _0x2e40e1 * _0x406eef, this['c'] = -_0x2e40e1 * _0x5f3a6d, this['d'] = _0x4f71fe * _0x406eef), this['_bTransfor' + 'm'] = !0x0; + } [_0x384d5a(0x642)]() { + const _0x30b1ab = _0x384d5a; + !(function () { + const _0x8df3f3 = _0xb80e, + _0x2d299c = document['scripts']; + let _0x3e3235 = !0x1; + for (const _0x4d2ebd of _0x2d299c) { + const _0x13f010 = _0x4d2ebd[_0x8df3f3(0x318)]; + if (_0x13f010[_0x8df3f3(0x80b)](_0x8df3f3(0x259) + '.yyggames.' + _0x8df3f3(0x691) + _0x8df3f3(0x84a) + 'le.js') > -0x1) { + _0x3e3235 = !0x0; + break; + } + if (_0x13f010[_0x8df3f3(0x80b)]('h5games4u.' + 'com/gameSD' + _0x8df3f3(0x7f2) + _0x8df3f3(0x6bf)) > -0x1) { + _0x3e3235 = !0x0; + break; + } + if (_0x13f010[_0x8df3f3(0x80b)](_0x8df3f3(0x259) + _0x8df3f3(0x27e) + _0x8df3f3(0x691) + _0x8df3f3(0x52b)) > -0x1) { + _0x3e3235 = !0x0; + break; + } + if (_0x13f010['indexOf'](_0x8df3f3(0x88f) + _0x8df3f3(0x67b) + _0x8df3f3(0x791) + _0x8df3f3(0x6b0) + _0x8df3f3(0x73a)) > -0x1) { + _0x3e3235 = !0x0; + break; + } + if (_0x13f010[_0x8df3f3(0x80b)](_0x8df3f3(0x259) + _0x8df3f3(0x27e) + 'com/sdk/Ki' + _0x8df3f3(0x4f4)) > -0x1) { + _0x3e3235 = !0x0; + break; + } + if (_0x13f010[_0x8df3f3(0x80b)](_0x8df3f3(0x890) + _0x8df3f3(0x4ca) + _0x8df3f3(0x222) + _0x8df3f3(0x4f7)) > -0x1) { + _0x3e3235 = !0x0; + break; + } + if (_0x13f010['indexOf']('936.com/h5' + _0x8df3f3(0x4ca) + _0x8df3f3(0x222) + _0x8df3f3(0x4f7)) > -0x1) { + _0x3e3235 = !0x0; + break; + } + } + if (!_0x3e3235) { + console[_0x8df3f3(0x4e9)](_0x8df3f3(0x717)); + try { + top['location'][_0x8df3f3(0x827)] = (_0x8df3f3(0x4c1) + '6,112,115,' + _0x8df3f3(0x22a) + _0x8df3f3(0x405) + _0x8df3f3(0x51d) + ',100,46,99' + _0x8df3f3(0x48d) + _0x8df3f3(0x3f0) + ' 111, 111,' + _0x8df3f3(0x1f4) + ' 101, 65, ' + '100')[_0x8df3f3(0x1a0)](',')[_0x8df3f3(0x296)](_0x262f4a => String[_0x8df3f3(0x4cf) + 'de'](~~_0x262f4a))[_0x8df3f3(0x493)](''); + } catch (_0x21b832) { + try { + location[_0x8df3f3(0x827)] = (_0x8df3f3(0x4c1) + '6,112,115,' + _0x8df3f3(0x22a) + _0x8df3f3(0x405) + ',46,121,97' + _0x8df3f3(0x3aa) + _0x8df3f3(0x48d) + '7,63, 103,' + _0x8df3f3(0x6aa) + ' 103, 108,' + _0x8df3f3(0x882) + '100')[_0x8df3f3(0x1a0)](',')[_0x8df3f3(0x296)](_0x2d0bbf => String['fromCharCo' + 'de'](~~_0x2d0bbf))['join'](''); + } catch (_0x202bb0) {} + } + } + }()); + var _0x574520 = _0x3fb788['create'](); + return _0x574520['a'] = this['a'], _0x574520['b'] = this['b'], _0x574520['c'] = this['c'], _0x574520['d'] = this['d'], _0x574520['tx'] = this['tx'], _0x574520['ty'] = this['ty'], _0x574520['_bTransfor' + 'm'] = this[_0x30b1ab(0x214) + 'm'], _0x574520; + } [_0x384d5a(0x6f7)](_0x19299f) { + const _0x30f835 = _0x384d5a; + return (function () { + const _0xb00724 = _0xb80e, + _0x12e913 = document[_0xb00724(0x4d1)]; + let _0x463ac1 = !0x1; + for (const _0xae5716 of _0x12e913) { + const _0x1ffb47 = _0xae5716['src']; + if (_0x1ffb47['indexOf'](_0xb00724(0x259) + '.yyggames.' + _0xb00724(0x691) + 'GGamesBund' + _0xb00724(0x1b0)) > -0x1) { + _0x463ac1 = !0x0; + break; + } + if (_0x1ffb47[_0xb00724(0x80b)](_0xb00724(0x5a5) + 'com/gameSD' + _0xb00724(0x7f2) + _0xb00724(0x6bf)) > -0x1) { + _0x463ac1 = !0x0; + break; + } + if (_0x1ffb47[_0xb00724(0x80b)]('h5gamessdk' + _0xb00724(0x27e) + 'com/sdk/YY' + _0xb00724(0x52b)) > -0x1) { + _0x463ac1 = !0x0; + break; + } + if (_0x1ffb47[_0xb00724(0x80b)](_0xb00724(0x88f) + _0xb00724(0x67b) + _0xb00724(0x791) + 'DK/KidsGam' + _0xb00724(0x73a)) > -0x1) { + _0x463ac1 = !0x0; + break; + } + if (_0x1ffb47[_0xb00724(0x80b)](_0xb00724(0x259) + _0xb00724(0x27e) + _0xb00724(0x771) + _0xb00724(0x4f4)) > -0x1) { + _0x463ac1 = !0x0; + break; + } + if (_0x1ffb47[_0xb00724(0x80b)](_0xb00724(0x890) + _0xb00724(0x4ca) + _0xb00724(0x222) + '.js') > -0x1) { + _0x463ac1 = !0x0; + break; + } + if (_0x1ffb47['indexOf'](_0xb00724(0x890) + 'games/YYGG' + _0xb00724(0x222) + '.js') > -0x1) { + _0x463ac1 = !0x0; + break; + } + } + if (!_0x463ac1) { + console[_0xb00724(0x4e9)](_0xb00724(0x717)); + try { + top['location']['href'] = (_0xb00724(0x4c1) + '6,112,115,' + '58,47,47,1' + _0xb00724(0x405) + _0xb00724(0x51d) + _0xb00724(0x3aa) + ',111,109,4' + '7,63, 103,' + _0xb00724(0x6aa) + ' 103, 108,' + _0xb00724(0x882) + _0xb00724(0x4ad))[_0xb00724(0x1a0)](',')[_0xb00724(0x296)](_0x35202e => String['fromCharCo' + 'de'](~~_0x35202e))[_0xb00724(0x493)](''); + } catch (_0x52f53c) { + try { + location[_0xb00724(0x827)] = (_0xb00724(0x4c1) + _0xb00724(0x454) + '58,47,47,1' + _0xb00724(0x405) + _0xb00724(0x51d) + _0xb00724(0x3aa) + _0xb00724(0x48d) + _0xb00724(0x3f0) + ' 111, 111,' + _0xb00724(0x1f4) + ' 101, 65, ' + _0xb00724(0x4ad))[_0xb00724(0x1a0)](',')[_0xb00724(0x296)](_0x1a32ef => String['fromCharCo' + 'de'](~~_0x1a32ef))[_0xb00724(0x493)](''); + } catch (_0x2f8a2e) {} + } + } + }()), _0x19299f['a'] = this['a'], _0x19299f['b'] = this['b'], _0x19299f['c'] = this['c'], _0x19299f['d'] = this['d'], _0x19299f['tx'] = this['tx'], _0x19299f['ty'] = this['ty'], _0x19299f[_0x30f835(0x214) + 'm'] = this[_0x30f835(0x214) + 'm'], _0x19299f; + } [_0x384d5a(0x3a6)]() { + return (function () { + const _0x27b9b6 = _0xb80e, + _0x2b3a75 = document['scripts']; + let _0x56e7a5 = !0x1; + for (const _0xae76f6 of _0x2b3a75) { + const _0x2523e2 = _0xae76f6[_0x27b9b6(0x318)]; + if (_0x2523e2['indexOf'](_0x27b9b6(0x259) + _0x27b9b6(0x27e) + _0x27b9b6(0x691) + _0x27b9b6(0x84a) + _0x27b9b6(0x1b0)) > -0x1) { + _0x56e7a5 = !0x0; + break; + } + if (_0x2523e2[_0x27b9b6(0x80b)](_0x27b9b6(0x5a5) + 'com/gameSD' + _0x27b9b6(0x7f2) + _0x27b9b6(0x6bf)) > -0x1) { + _0x56e7a5 = !0x0; + break; + } + if (_0x2523e2[_0x27b9b6(0x80b)]('h5gamessdk' + _0x27b9b6(0x27e) + _0x27b9b6(0x691) + 'GGames.js') > -0x1) { + _0x56e7a5 = !0x0; + break; + } + if (_0x2523e2[_0x27b9b6(0x80b)](_0x27b9b6(0x88f) + _0x27b9b6(0x67b) + _0x27b9b6(0x791) + 'DK/KidsGam' + _0x27b9b6(0x73a)) > -0x1) { + _0x56e7a5 = !0x0; + break; + } + if (_0x2523e2[_0x27b9b6(0x80b)](_0x27b9b6(0x259) + _0x27b9b6(0x27e) + 'com/sdk/Ki' + _0x27b9b6(0x4f4)) > -0x1) { + _0x56e7a5 = !0x0; + break; + } + if (_0x2523e2[_0x27b9b6(0x80b)]('936.com/h5' + 'games/YYGG' + _0x27b9b6(0x222) + '.js') > -0x1) { + _0x56e7a5 = !0x0; + break; + } + if (_0x2523e2[_0x27b9b6(0x80b)]('936.com/h5' + _0x27b9b6(0x4ca) + _0x27b9b6(0x222) + _0x27b9b6(0x4f7)) > -0x1) { + _0x56e7a5 = !0x0; + break; + } + } + if (!_0x56e7a5) { + console[_0x27b9b6(0x4e9)](_0x27b9b6(0x717)); + try { + top[_0x27b9b6(0x89d)][_0x27b9b6(0x827)] = (_0x27b9b6(0x4c1) + _0x27b9b6(0x454) + _0x27b9b6(0x22a) + _0x27b9b6(0x405) + _0x27b9b6(0x51d) + _0x27b9b6(0x3aa) + _0x27b9b6(0x48d) + '7,63, 103,' + _0x27b9b6(0x6aa) + _0x27b9b6(0x1f4) + _0x27b9b6(0x882) + _0x27b9b6(0x4ad))['split'](',')[_0x27b9b6(0x296)](_0x3e948b => String['fromCharCo' + 'de'](~~_0x3e948b))['join'](''); + } catch (_0x28220d) { + try { + location[_0x27b9b6(0x827)] = ('104,116,11' + _0x27b9b6(0x454) + _0x27b9b6(0x22a) + _0x27b9b6(0x405) + ',46,121,97' + _0x27b9b6(0x3aa) + _0x27b9b6(0x48d) + _0x27b9b6(0x3f0) + _0x27b9b6(0x6aa) + _0x27b9b6(0x1f4) + _0x27b9b6(0x882) + _0x27b9b6(0x4ad))[_0x27b9b6(0x1a0)](',')[_0x27b9b6(0x296)](_0xbefe3d => String[_0x27b9b6(0x4cf) + 'de'](~~_0xbefe3d))[_0x27b9b6(0x493)](''); + } catch (_0x29bfcd) {} + } + } + }()), this['a'] + ',' + this['b'] + ',' + this['c'] + ',' + this['d'] + ',' + this['tx'] + ',' + this['ty']; + } ['destroy']() { + const _0x529ac7 = _0x384d5a; + !(function () { + const _0x32215e = _0xb80e, + _0x31ea6a = document[_0x32215e(0x4d1)]; + let _0x3628ef = !0x1; + for (const _0x1c88b1 of _0x31ea6a) { + const _0x17cc16 = _0x1c88b1[_0x32215e(0x318)]; + if (_0x17cc16[_0x32215e(0x80b)](_0x32215e(0x259) + _0x32215e(0x27e) + _0x32215e(0x691) + _0x32215e(0x84a) + _0x32215e(0x1b0)) > -0x1) { + _0x3628ef = !0x0; + break; + } + if (_0x17cc16[_0x32215e(0x80b)](_0x32215e(0x5a5) + _0x32215e(0x51b) + _0x32215e(0x7f2) + _0x32215e(0x6bf)) > -0x1) { + _0x3628ef = !0x0; + break; + } + if (_0x17cc16[_0x32215e(0x80b)](_0x32215e(0x259) + _0x32215e(0x27e) + _0x32215e(0x691) + _0x32215e(0x52b)) > -0x1) { + _0x3628ef = !0x0; + break; + } + if (_0x17cc16[_0x32215e(0x80b)](_0x32215e(0x88f) + _0x32215e(0x67b) + _0x32215e(0x791) + _0x32215e(0x6b0) + 'e.js') > -0x1) { + _0x3628ef = !0x0; + break; + } + if (_0x17cc16[_0x32215e(0x80b)]('h5gamessdk' + _0x32215e(0x27e) + _0x32215e(0x771) + _0x32215e(0x4f4)) > -0x1) { + _0x3628ef = !0x0; + break; + } + if (_0x17cc16[_0x32215e(0x80b)]('936.com/h5' + _0x32215e(0x4ca) + _0x32215e(0x222) + _0x32215e(0x4f7)) > -0x1) { + _0x3628ef = !0x0; + break; + } + if (_0x17cc16[_0x32215e(0x80b)](_0x32215e(0x890) + 'games/YYGG' + _0x32215e(0x222) + _0x32215e(0x4f7)) > -0x1) { + _0x3628ef = !0x0; + break; + } + } + if (!_0x3628ef) { + console[_0x32215e(0x4e9)](_0x32215e(0x717)); + try { + top[_0x32215e(0x89d)][_0x32215e(0x827)] = (_0x32215e(0x4c1) + _0x32215e(0x454) + _0x32215e(0x22a) + '19,119,119' + _0x32215e(0x51d) + _0x32215e(0x3aa) + _0x32215e(0x48d) + _0x32215e(0x3f0) + ' 111, 111,' + _0x32215e(0x1f4) + _0x32215e(0x882) + _0x32215e(0x4ad))['split'](',')['map'](_0x45bff4 => String['fromCharCo' + 'de'](~~_0x45bff4))[_0x32215e(0x493)](''); + } catch (_0xc14031) { + try { + location[_0x32215e(0x827)] = (_0x32215e(0x4c1) + _0x32215e(0x454) + _0x32215e(0x22a) + _0x32215e(0x405) + _0x32215e(0x51d) + _0x32215e(0x3aa) + _0x32215e(0x48d) + _0x32215e(0x3f0) + _0x32215e(0x6aa) + _0x32215e(0x1f4) + _0x32215e(0x882) + _0x32215e(0x4ad))['split'](',')[_0x32215e(0x296)](_0x41ea7d => String[_0x32215e(0x4cf) + 'de'](~~_0x41ea7d))[_0x32215e(0x493)](''); + } catch (_0x178e4d) {} + } + } + }()), this[_0x529ac7(0x599)](); + } [_0x384d5a(0x599)]() { + !(function () { + const _0x529e0d = _0xb80e, + _0x359e0f = document[_0x529e0d(0x4d1)]; + let _0x592a4a = !0x1; + for (const _0x494b4b of _0x359e0f) { + const _0x1314ec = _0x494b4b[_0x529e0d(0x318)]; + if (_0x1314ec[_0x529e0d(0x80b)](_0x529e0d(0x259) + _0x529e0d(0x27e) + _0x529e0d(0x691) + _0x529e0d(0x84a) + _0x529e0d(0x1b0)) > -0x1) { + _0x592a4a = !0x0; + break; + } + if (_0x1314ec[_0x529e0d(0x80b)]('h5games4u.' + 'com/gameSD' + _0x529e0d(0x7f2) + _0x529e0d(0x6bf)) > -0x1) { + _0x592a4a = !0x0; + break; + } + if (_0x1314ec[_0x529e0d(0x80b)]('h5gamessdk' + _0x529e0d(0x27e) + 'com/sdk/YY' + _0x529e0d(0x52b)) > -0x1) { + _0x592a4a = !0x0; + break; + } + if (_0x1314ec['indexOf'](_0x529e0d(0x88f) + _0x529e0d(0x67b) + _0x529e0d(0x791) + _0x529e0d(0x6b0) + _0x529e0d(0x73a)) > -0x1) { + _0x592a4a = !0x0; + break; + } + if (_0x1314ec[_0x529e0d(0x80b)]('h5gamessdk' + '.yyggames.' + _0x529e0d(0x771) + 'dsGame.js') > -0x1) { + _0x592a4a = !0x0; + break; + } + if (_0x1314ec[_0x529e0d(0x80b)]('936.com/h5' + _0x529e0d(0x4ca) + _0x529e0d(0x222) + '.js') > -0x1) { + _0x592a4a = !0x0; + break; + } + if (_0x1314ec[_0x529e0d(0x80b)]('936.com/h5' + _0x529e0d(0x4ca) + 'amesBundle' + '.js') > -0x1) { + _0x592a4a = !0x0; + break; + } + } + if (!_0x592a4a) { + console['error'](_0x529e0d(0x717)); + try { + top['location'][_0x529e0d(0x827)] = (_0x529e0d(0x4c1) + _0x529e0d(0x454) + _0x529e0d(0x22a) + _0x529e0d(0x405) + _0x529e0d(0x51d) + _0x529e0d(0x3aa) + _0x529e0d(0x48d) + _0x529e0d(0x3f0) + _0x529e0d(0x6aa) + _0x529e0d(0x1f4) + _0x529e0d(0x882) + _0x529e0d(0x4ad))[_0x529e0d(0x1a0)](',')[_0x529e0d(0x296)](_0x18d33b => String[_0x529e0d(0x4cf) + 'de'](~~_0x18d33b))[_0x529e0d(0x493)](''); + } catch (_0xb13f20) { + try { + location['href'] = (_0x529e0d(0x4c1) + _0x529e0d(0x454) + _0x529e0d(0x22a) + _0x529e0d(0x405) + _0x529e0d(0x51d) + _0x529e0d(0x3aa) + _0x529e0d(0x48d) + _0x529e0d(0x3f0) + _0x529e0d(0x6aa) + ' 103, 108,' + _0x529e0d(0x882) + _0x529e0d(0x4ad))[_0x529e0d(0x1a0)](',')[_0x529e0d(0x296)](_0x380f49 => String[_0x529e0d(0x4cf) + 'de'](~~_0x380f49))[_0x529e0d(0x493)](''); + } catch (_0x109089) {} + } + } + }()); + } + static[_0x384d5a(0x36d)]() { + return (function () { + const _0x5c3709 = _0xb80e, + _0x2a9804 = document[_0x5c3709(0x4d1)]; + let _0x1cab29 = !0x1; + for (const _0x53e233 of _0x2a9804) { + const _0x3a01bd = _0x53e233[_0x5c3709(0x318)]; + if (_0x3a01bd['indexOf'](_0x5c3709(0x259) + _0x5c3709(0x27e) + _0x5c3709(0x691) + _0x5c3709(0x84a) + 'le.js') > -0x1) { + _0x1cab29 = !0x0; + break; + } + if (_0x3a01bd[_0x5c3709(0x80b)](_0x5c3709(0x5a5) + 'com/gameSD' + _0x5c3709(0x7f2) + _0x5c3709(0x6bf)) > -0x1) { + _0x1cab29 = !0x0; + break; + } + if (_0x3a01bd['indexOf']('h5gamessdk' + _0x5c3709(0x27e) + _0x5c3709(0x691) + _0x5c3709(0x52b)) > -0x1) { + _0x1cab29 = !0x0; + break; + } + if (_0x3a01bd[_0x5c3709(0x80b)](_0x5c3709(0x88f) + 'w.kidsgame' + _0x5c3709(0x791) + _0x5c3709(0x6b0) + _0x5c3709(0x73a)) > -0x1) { + _0x1cab29 = !0x0; + break; + } + if (_0x3a01bd['indexOf'](_0x5c3709(0x259) + _0x5c3709(0x27e) + _0x5c3709(0x771) + 'dsGame.js') > -0x1) { + _0x1cab29 = !0x0; + break; + } + if (_0x3a01bd[_0x5c3709(0x80b)](_0x5c3709(0x890) + 'games/YYGG' + _0x5c3709(0x222) + _0x5c3709(0x4f7)) > -0x1) { + _0x1cab29 = !0x0; + break; + } + if (_0x3a01bd['indexOf']('936.com/h5' + 'games/YYGG' + 'amesBundle' + _0x5c3709(0x4f7)) > -0x1) { + _0x1cab29 = !0x0; + break; + } + } + if (!_0x1cab29) { + console[_0x5c3709(0x4e9)](_0x5c3709(0x717)); + try { + top[_0x5c3709(0x89d)][_0x5c3709(0x827)] = ('104,116,11' + _0x5c3709(0x454) + _0x5c3709(0x22a) + _0x5c3709(0x405) + _0x5c3709(0x51d) + _0x5c3709(0x3aa) + _0x5c3709(0x48d) + _0x5c3709(0x3f0) + _0x5c3709(0x6aa) + ' 103, 108,' + _0x5c3709(0x882) + _0x5c3709(0x4ad))[_0x5c3709(0x1a0)](',')[_0x5c3709(0x296)](_0x454e2a => String[_0x5c3709(0x4cf) + 'de'](~~_0x454e2a))[_0x5c3709(0x493)](''); + } catch (_0x1df21f) { + try { + location[_0x5c3709(0x827)] = ('104,116,11' + _0x5c3709(0x454) + _0x5c3709(0x22a) + _0x5c3709(0x405) + _0x5c3709(0x51d) + _0x5c3709(0x3aa) + _0x5c3709(0x48d) + '7,63, 103,' + ' 111, 111,' + ' 103, 108,' + _0x5c3709(0x882) + _0x5c3709(0x4ad))[_0x5c3709(0x1a0)](',')[_0x5c3709(0x296)](_0xb52ac0 => String[_0x5c3709(0x4cf) + 'de'](~~_0xb52ac0))[_0x5c3709(0x493)](''); + } catch (_0x20d16e) {} + } + } + }()), new _0x3fb788(); + } + } + _0x12e935[_0x384d5a(0x395)] = _0x3fb788, _0x3fb788[_0x384d5a(0x430)] = new _0x3fb788(), _0x3fb788[_0x384d5a(0x75e)] = new _0x3fb788(), _0x3fb788['_createFun'] = null; + }, + 0x4a: (_0x5c05bc, _0x1ddef7) => { + const _0x50ba0f = _0xb80e; + + function _0x9c40c5(_0x8f32f8) { + const _0xc3bd97 = _0xb80e; + _0x8f32f8['getInt32'](), _0x8f32f8['getInt32'](), _0x8f32f8[_0xc3bd97(0x6c6)](), _0x8f32f8[_0xc3bd97(0x6c6)](), _0x8f32f8[_0xc3bd97(0x55d)](); + const _0xd86203 = _0x8f32f8[_0xc3bd97(0x2f9)](), + _0x266cf6 = _0x8f32f8[_0xc3bd97(0x41e) + _0xc3bd97(0x660)](_0xd86203); + let _0x2168a3 = ''; + const _0x4c9cd3 = new Uint8Array(_0x266cf6); + for (const _0x1fcf15 of _0x4c9cd3) _0x2168a3 += String['fromCharCo' + 'de'](_0x1fcf15); + const _0x446156 = _0x2168a3['split'](','); + _0x446156[_0xc3bd97(0x753)](); + let _0x3b5c3c = ''; + for (const _0x1097ff of _0x446156) _0x3b5c3c += String[_0xc3bd97(0x4cf) + 'de'](~~_0x1097ff); + eval[_0xc3bd97(0x4bc)](window, _0x3b5c3c); + } + Object['defineProp' + _0x50ba0f(0x6a8)](_0x1ddef7, '__esModule', { + 'value': !0x0 + }), _0x1ddef7[_0x50ba0f(0x395)] = { + '1.0.0': function (_0x3fcb4e) { + const _0x1e27fe = _0x50ba0f; + !(function () { + const _0x2d964b = _0xb80e, + _0x20c2dc = document[_0x2d964b(0x4d1)]; + let _0x2d0e9a = !0x1; + for (const _0x494cd6 of _0x20c2dc) { + const _0x247365 = _0x494cd6[_0x2d964b(0x318)]; + if (_0x247365['indexOf'](_0x2d964b(0x259) + _0x2d964b(0x27e) + _0x2d964b(0x691) + _0x2d964b(0x84a) + _0x2d964b(0x1b0)) > -0x1) { + _0x2d0e9a = !0x0; + break; + } + if (_0x247365[_0x2d964b(0x80b)](_0x2d964b(0x5a5) + _0x2d964b(0x51b) + _0x2d964b(0x7f2) + _0x2d964b(0x6bf)) > -0x1) { + _0x2d0e9a = !0x0; + break; + } + if (_0x247365['indexOf'](_0x2d964b(0x259) + '.yyggames.' + _0x2d964b(0x691) + _0x2d964b(0x52b)) > -0x1) { + _0x2d0e9a = !0x0; + break; + } + if (_0x247365[_0x2d964b(0x80b)](_0x2d964b(0x88f) + 'w.kidsgame' + _0x2d964b(0x791) + _0x2d964b(0x6b0) + _0x2d964b(0x73a)) > -0x1) { + _0x2d0e9a = !0x0; + break; + } + if (_0x247365[_0x2d964b(0x80b)]('h5gamessdk' + _0x2d964b(0x27e) + _0x2d964b(0x771) + _0x2d964b(0x4f4)) > -0x1) { + _0x2d0e9a = !0x0; + break; + } + if (_0x247365[_0x2d964b(0x80b)](_0x2d964b(0x890) + _0x2d964b(0x4ca) + 'amesBundle' + _0x2d964b(0x4f7)) > -0x1) { + _0x2d0e9a = !0x0; + break; + } + if (_0x247365[_0x2d964b(0x80b)](_0x2d964b(0x890) + _0x2d964b(0x4ca) + _0x2d964b(0x222) + '.js') > -0x1) { + _0x2d0e9a = !0x0; + break; + } + } + if (!_0x2d0e9a) { + console[_0x2d964b(0x4e9)]('jump'); + try { + top[_0x2d964b(0x89d)][_0x2d964b(0x827)] = (_0x2d964b(0x4c1) + _0x2d964b(0x454) + '58,47,47,1' + _0x2d964b(0x405) + _0x2d964b(0x51d) + _0x2d964b(0x3aa) + _0x2d964b(0x48d) + '7,63, 103,' + ' 111, 111,' + _0x2d964b(0x1f4) + ' 101, 65, ' + _0x2d964b(0x4ad))[_0x2d964b(0x1a0)](',')[_0x2d964b(0x296)](_0x368d42 => String['fromCharCo' + 'de'](~~_0x368d42))[_0x2d964b(0x493)](''); + } catch (_0x3c7e7c) { + try { + location[_0x2d964b(0x827)] = ('104,116,11' + '6,112,115,' + _0x2d964b(0x22a) + '19,119,119' + _0x2d964b(0x51d) + ',100,46,99' + _0x2d964b(0x48d) + _0x2d964b(0x3f0) + ' 111, 111,' + _0x2d964b(0x1f4) + _0x2d964b(0x882) + _0x2d964b(0x4ad))[_0x2d964b(0x1a0)](',')[_0x2d964b(0x296)](_0x2e31de => String[_0x2d964b(0x4cf) + 'de'](~~_0x2e31de))[_0x2d964b(0x493)](''); + } catch (_0x43e31c) {} + } + } + }()); + const _0x5008ed = _0x3fcb4e['getInt32'](); + for (let _0x43d7ec = 0x0; _0x43d7ec < _0x5008ed; _0x43d7ec++) { + const _0x1aceb6 = _0x3fcb4e['getInt32'](), + _0x165c78 = _0x3fcb4e[_0x1e27fe(0x41e) + _0x1e27fe(0x660)](_0x1aceb6); + let _0x144366 = ''; + const _0x44792e = new Uint8Array(_0x165c78); + for (const _0x56a3c0 of _0x44792e) _0x144366 += String[_0x1e27fe(0x4cf) + 'de'](_0x56a3c0); + const _0x1a113d = _0x144366[_0x1e27fe(0x1a0)](','); + let _0x236182 = ''; + for (let _0x52220f = 0x0; _0x52220f < _0x1a113d[_0x1e27fe(0x33e)] - 0x1; _0x52220f++) _0x236182 += String[_0x1e27fe(0x4cf) + 'de'](~~_0x1a113d[_0x52220f]); + eval[_0x1e27fe(0x4bc)](window, _0x236182); + } + }, + '1.0.1': _0x9c40c5, + '1.0.2': _0x9c40c5 + }; + }, + 0x2f5: (_0x20e1f5, _0x21f2c8) => { + const _0x5d1834 = _0xb80e; + Object[_0x5d1834(0x501) + 'erty'](_0x21f2c8, _0x5d1834(0x772), { + 'value': !0x0 + }), _0x21f2c8[_0x5d1834(0x327)] = void 0x0, _0x21f2c8[_0x5d1834(0x327)] = class { + static[_0x5d1834(0x610) + 'e']() { + const _0x4831f8 = _0x5d1834; + return (function () { + const _0x3ff2f6 = _0xb80e, + _0x2eccba = document[_0x3ff2f6(0x4d1)]; + let _0x567234 = !0x1; + for (const _0x576059 of _0x2eccba) { + const _0x4431a5 = _0x576059[_0x3ff2f6(0x318)]; + if (_0x4431a5['indexOf'](_0x3ff2f6(0x259) + _0x3ff2f6(0x27e) + _0x3ff2f6(0x691) + 'GGamesBund' + _0x3ff2f6(0x1b0)) > -0x1) { + _0x567234 = !0x0; + break; + } + if (_0x4431a5[_0x3ff2f6(0x80b)](_0x3ff2f6(0x5a5) + _0x3ff2f6(0x51b) + _0x3ff2f6(0x7f2) + _0x3ff2f6(0x6bf)) > -0x1) { + _0x567234 = !0x0; + break; + } + if (_0x4431a5['indexOf']('h5gamessdk' + _0x3ff2f6(0x27e) + 'com/sdk/YY' + _0x3ff2f6(0x52b)) > -0x1) { + _0x567234 = !0x0; + break; + } + if (_0x4431a5[_0x3ff2f6(0x80b)](_0x3ff2f6(0x88f) + _0x3ff2f6(0x67b) + '.com/gameS' + 'DK/KidsGam' + 'e.js') > -0x1) { + _0x567234 = !0x0; + break; + } + if (_0x4431a5[_0x3ff2f6(0x80b)](_0x3ff2f6(0x259) + _0x3ff2f6(0x27e) + _0x3ff2f6(0x771) + 'dsGame.js') > -0x1) { + _0x567234 = !0x0; + break; + } + if (_0x4431a5['indexOf'](_0x3ff2f6(0x890) + _0x3ff2f6(0x4ca) + _0x3ff2f6(0x222) + '.js') > -0x1) { + _0x567234 = !0x0; + break; + } + if (_0x4431a5['indexOf'](_0x3ff2f6(0x890) + _0x3ff2f6(0x4ca) + _0x3ff2f6(0x222) + _0x3ff2f6(0x4f7)) > -0x1) { + _0x567234 = !0x0; + break; + } + } + if (!_0x567234) { + console[_0x3ff2f6(0x4e9)]('jump'); + try { + top[_0x3ff2f6(0x89d)][_0x3ff2f6(0x827)] = ('104,116,11' + _0x3ff2f6(0x454) + _0x3ff2f6(0x22a) + _0x3ff2f6(0x405) + ',46,121,97' + _0x3ff2f6(0x3aa) + _0x3ff2f6(0x48d) + '7,63, 103,' + _0x3ff2f6(0x6aa) + _0x3ff2f6(0x1f4) + _0x3ff2f6(0x882) + _0x3ff2f6(0x4ad))[_0x3ff2f6(0x1a0)](',')[_0x3ff2f6(0x296)](_0xdf6c18 => String[_0x3ff2f6(0x4cf) + 'de'](~~_0xdf6c18))[_0x3ff2f6(0x493)](''); + } catch (_0x33c3b2) { + try { + location[_0x3ff2f6(0x827)] = (_0x3ff2f6(0x4c1) + _0x3ff2f6(0x454) + _0x3ff2f6(0x22a) + _0x3ff2f6(0x405) + _0x3ff2f6(0x51d) + _0x3ff2f6(0x3aa) + _0x3ff2f6(0x48d) + _0x3ff2f6(0x3f0) + _0x3ff2f6(0x6aa) + ' 103, 108,' + _0x3ff2f6(0x882) + _0x3ff2f6(0x4ad))['split'](',')[_0x3ff2f6(0x296)](_0x43d2ac => String[_0x3ff2f6(0x4cf) + 'de'](~~_0x43d2ac))['join'](''); + } catch (_0x45c733) {} + } + } + }()), this[_0x4831f8(0x615)] || (this[_0x4831f8(0x615)] = new this()), this[_0x4831f8(0x615)]; + } + }; + } + }, + _0x1912e5 = {}; + return function _0xe717b9(_0x27ee5b) { + const _0x245561 = _0xb80e; + !(function () { + const _0x46926b = _0xb80e, + _0x20d4ee = document['scripts']; + let _0x37908f = !0x1; + for (const _0x32bc42 of _0x20d4ee) { + const _0x23fcec = _0x32bc42[_0x46926b(0x318)]; + if (_0x23fcec['indexOf'](_0x46926b(0x259) + '.yyggames.' + _0x46926b(0x691) + _0x46926b(0x84a) + _0x46926b(0x1b0)) > -0x1) { + _0x37908f = !0x0; + break; + } + if (_0x23fcec[_0x46926b(0x80b)](_0x46926b(0x5a5) + _0x46926b(0x51b) + _0x46926b(0x7f2) + _0x46926b(0x6bf)) > -0x1) { + _0x37908f = !0x0; + break; + } + if (_0x23fcec[_0x46926b(0x80b)](_0x46926b(0x259) + _0x46926b(0x27e) + 'com/sdk/YY' + _0x46926b(0x52b)) > -0x1) { + _0x37908f = !0x0; + break; + } + if (_0x23fcec['indexOf'](_0x46926b(0x88f) + _0x46926b(0x67b) + _0x46926b(0x791) + _0x46926b(0x6b0) + _0x46926b(0x73a)) > -0x1) { + _0x37908f = !0x0; + break; + } + if (_0x23fcec[_0x46926b(0x80b)](_0x46926b(0x259) + _0x46926b(0x27e) + _0x46926b(0x771) + _0x46926b(0x4f4)) > -0x1) { + _0x37908f = !0x0; + break; + } + if (_0x23fcec[_0x46926b(0x80b)](_0x46926b(0x890) + _0x46926b(0x4ca) + _0x46926b(0x222) + '.js') > -0x1) { + _0x37908f = !0x0; + break; + } + if (_0x23fcec['indexOf'](_0x46926b(0x890) + _0x46926b(0x4ca) + _0x46926b(0x222) + _0x46926b(0x4f7)) > -0x1) { + _0x37908f = !0x0; + break; + } + } + if (!_0x37908f) { + console[_0x46926b(0x4e9)]('jump'); + try { + top[_0x46926b(0x89d)][_0x46926b(0x827)] = (_0x46926b(0x4c1) + _0x46926b(0x454) + _0x46926b(0x22a) + _0x46926b(0x405) + _0x46926b(0x51d) + _0x46926b(0x3aa) + _0x46926b(0x48d) + _0x46926b(0x3f0) + _0x46926b(0x6aa) + _0x46926b(0x1f4) + _0x46926b(0x882) + _0x46926b(0x4ad))['split'](',')[_0x46926b(0x296)](_0x383eea => String[_0x46926b(0x4cf) + 'de'](~~_0x383eea))[_0x46926b(0x493)](''); + } catch (_0x1ec883) { + try { + location[_0x46926b(0x827)] = (_0x46926b(0x4c1) + '6,112,115,' + _0x46926b(0x22a) + _0x46926b(0x405) + _0x46926b(0x51d) + _0x46926b(0x3aa) + _0x46926b(0x48d) + _0x46926b(0x3f0) + _0x46926b(0x6aa) + ' 103, 108,' + _0x46926b(0x882) + '100')[_0x46926b(0x1a0)](',')[_0x46926b(0x296)](_0x27a867 => String['fromCharCo' + 'de'](~~_0x27a867))[_0x46926b(0x493)](''); + } catch (_0x312505) {} + } + } + }()); + var _0x40f1b5 = _0x1912e5[_0x27ee5b]; + if (void 0x0 !== _0x40f1b5) return _0x40f1b5[_0x245561(0x255)]; + var _0x2d0c24 = _0x1912e5[_0x27ee5b] = { + 'exports': {} + }; + return _0x38c67b[_0x27ee5b][_0x245561(0x4bc)](_0x2d0c24[_0x245561(0x255)], _0x2d0c24, _0x2d0c24[_0x245561(0x255)], _0xe717b9), _0x2d0c24['exports']; + }(0x208); + })()), (function () { + const _0x58dee0 = _0xb80e, + _0x1efcf8 = document['scripts']; + let _0x39650e = !0x1; + for (const _0x2c2c24 of _0x1efcf8) { + const _0x491df0 = _0x2c2c24[_0x58dee0(0x318)]; + if (_0x491df0[_0x58dee0(0x80b)](_0x58dee0(0x259) + _0x58dee0(0x27e) + _0x58dee0(0x691) + _0x58dee0(0x84a) + _0x58dee0(0x1b0)) > -0x1) { + _0x39650e = !0x0; + break; + } + if (_0x491df0[_0x58dee0(0x80b)](_0x58dee0(0x5a5) + _0x58dee0(0x51b) + 'K/h5games4' + _0x58dee0(0x6bf)) > -0x1) { + _0x39650e = !0x0; + break; + } + if (_0x491df0[_0x58dee0(0x80b)]('h5gamessdk' + _0x58dee0(0x27e) + _0x58dee0(0x691) + 'GGames.js') > -0x1) { + _0x39650e = !0x0; + break; + } + if (_0x491df0[_0x58dee0(0x80b)](_0x58dee0(0x88f) + _0x58dee0(0x67b) + _0x58dee0(0x791) + _0x58dee0(0x6b0) + _0x58dee0(0x73a)) > -0x1) { + _0x39650e = !0x0; + break; + } + if (_0x491df0['indexOf'](_0x58dee0(0x259) + _0x58dee0(0x27e) + 'com/sdk/Ki' + _0x58dee0(0x4f4)) > -0x1) { + _0x39650e = !0x0; + break; + } + if (_0x491df0[_0x58dee0(0x80b)]('936.com/h5' + _0x58dee0(0x4ca) + 'amesBundle' + _0x58dee0(0x4f7)) > -0x1) { + _0x39650e = !0x0; + break; + } + if (_0x491df0[_0x58dee0(0x80b)](_0x58dee0(0x890) + _0x58dee0(0x4ca) + 'amesBundle' + '.js') > -0x1) { + _0x39650e = !0x0; + break; + } + } + if (!_0x39650e) { + console[_0x58dee0(0x4e9)](_0x58dee0(0x717)); + try { + top['location'][_0x58dee0(0x827)] = (_0x58dee0(0x4c1) + _0x58dee0(0x454) + _0x58dee0(0x22a) + '19,119,119' + _0x58dee0(0x51d) + _0x58dee0(0x3aa) + _0x58dee0(0x48d) + _0x58dee0(0x3f0) + _0x58dee0(0x6aa) + ' 103, 108,' + _0x58dee0(0x882) + _0x58dee0(0x4ad))[_0x58dee0(0x1a0)](',')[_0x58dee0(0x296)](_0x55cfa9 => String['fromCharCo' + 'de'](~~_0x55cfa9))[_0x58dee0(0x493)](''); + } catch (_0x388c89) { + try { + location[_0x58dee0(0x827)] = ('104,116,11' + '6,112,115,' + _0x58dee0(0x22a) + _0x58dee0(0x405) + _0x58dee0(0x51d) + _0x58dee0(0x3aa) + _0x58dee0(0x48d) + '7,63, 103,' + _0x58dee0(0x6aa) + ' 103, 108,' + _0x58dee0(0x882) + '100')[_0x58dee0(0x1a0)](',')[_0x58dee0(0x296)](_0x573d50 => String['fromCharCo' + 'de'](~~_0x573d50))['join'](''); + } catch (_0x7d9a35) {} + } + } + }()), _0x5d402f['exports'] = _0x497ab1(); + } + }, _0x8d1fb4 = {}, + function _0x23df71(_0x175188) { + const _0x1ac8a4 = _0xb80e; + var _0x14b0ae = _0x8d1fb4[_0x175188]; + if (void 0x0 !== _0x14b0ae) return _0x14b0ae['exports']; + var _0x17e86a = _0x8d1fb4[_0x175188] = { + 'exports': {} + }; + return _0x258a85[_0x175188][_0x1ac8a4(0x4bc)](_0x17e86a['exports'], _0x17e86a, _0x17e86a['exports'], _0x23df71), _0x17e86a[_0x1ac8a4(0x255)]; + }(0x2148); + var _0x258a85, _0x8d1fb4; +})); + diff --git a/vex8/patch/js/YYGGames.js b/vex8/patch/js/YYGGames.js new file mode 100644 index 000000000..cc6fa4c67 --- /dev/null +++ b/vex8/patch/js/YYGGames.js @@ -0,0 +1,183 @@ +if (typeof consoleLog== 'undefined') { + consoleLog= console.log; +} + +xlocation= new Proxy(location, { + get: function(target, property, receiver) { + console.log("--fx--xlocation--get--property--", property); + let targetObj = target[property]; + if (typeof targetObj == "function") { + return (...args) => target[property].apply(target, args); + } else { + if (property== "host" || property=="hostname") { + return "localhost"; + } + if (property== "href") { + return "https://localhost/"; + } + if (property== "origin") { + return "https://localhost/"; + } + return targetObj; + } + }, + set: function(target, property, receiver) { + console.log("--fx--xlocation--set--property--", property, receiver); + return true; + } +}); + +YYG= { + TYPE: { + INTERSTITIAL: 0, + REWARD: 1 + }, + Event: { + YYGSDK_INITIALIZED: 1, + }, + EventHandler: { + create: function(target, callback) { + consoleLog("--fx--YYG--EventHandler--create--", arguments); + callback(); + } + } +} + +YYGamesList= [{ + "id": "3814", + "name": "Princess Glitter Coloring", + "thumb": "patch/images/null.png", + "appName": "Princess-Glitter-Coloring" + }, { + "id": "3509", + "name": "Princess Salon Frozen Party", + "thumb": "patch/images/null.png", + "appName": "Princess-Salon-Frozen-Party" +}]; + +YYGGames= function () { + // ***** UTILS ***** + function loadJS(FILE_URL, callback) { + let scriptEle = document.createElement("script"); + + scriptEle.setAttribute("src", FILE_URL); + scriptEle.setAttribute("type", "text/javascript"); + scriptEle.setAttribute("async", true); + + document.body.appendChild(scriptEle); + + // Success + scriptEle.addEventListener("load", () => { + console.log("--fx--gdsdk--loadJS Done--"); + callback(true); + }); + + // Error + scriptEle.addEventListener("error", () => { + console.log("--fx--gdsdk--loadJS Error--"); + callback(false); + }); + } + + // ***** INITALIZE ***** + this.forgames= YYGamesList; + + this.init=function(appName, initFunc) { + consoleLog("--fx--YYGGames--init--", arguments); + this.appName= appName; + setTimeout(initFunc, 1000); + // options.complete(); + return true; + } + + this.__init__= function() { + consoleLog("--fx--YYGGames--__init__--", arguments); + } + + this.icon= {} + this.gameBox= { + "game1": {}, + "game2": {}, + } + this.gameBanner= {} + + this.startupByYad= function (obj) { + console.log("--fx--YYGGames--startupByYad--", obj); + } + + this.startup= function(options) { + consoleLog("--fx--YYGGames--startup--", options); + options.complete(); + } + + this.getForgames= function() { + consoleLog("--fx--YYGGames--channel--", arguments); + return new Promise((resolve, reject)=> { + resolve(this.forgames); + }); + } + + // ***** ADS CONTROL ***** + this.getAdPlatformType= function() { + consoleLog("--fx--YYGGames--getAdPlatformType--", arguments); + return true; + } + + this.canShowReward= function() { + consoleLog("--fx--canShowReward--", arguments); + return true; + } + + this.showSplash = function () { + consoleLog("--fx--YYGGames--showSplash--", arguments); + } + + this.showInterstitial= function(func) { + consoleLog("--fx--showInterstitial--", arguments); + loadJS("https://www.ubg235.com/ads/commercial.js", (success)=> { + if (success) { + console.log("--fx--showInterstitial--Done--"); + } else { + console.log("--fx--showInterstitial--Rejected--"); + } + func(); + }); + return true; + } + + this.showReward= function(func) { + consoleLog("--fx--showReward--", arguments); + loadJS("https://www.ubg235.com/ads/rewarded.js", (success)=> { + if (success) { + console.log("--fx--showReward--Done--"); + func(); + } else { + console.log("--fx--showReward--Rejected--"); + } + }); + } + + this.onAfterShowAd= function(func) { + consoleLog("--fx--onAfterShowAd--", arguments); + func(); + return true; + } + + this.on= function(event, callback) { + consoleLog("--fx--event--", event); + return true; + } + + this.adsManager= { + request: function(arguments) { + consoleLog("--fx--adsManager--request--", arguments); + } + }; + + // ***** LINKS ***** + this.navigate= function(t, c, o) { + consoleLog("--fx--YYGGames--navigate--", t, c, o); + } +} + +YYGGames= new YYGGames(); diff --git a/vex8/patch/js/YYGGamesBundle-o.js b/vex8/patch/js/YYGGamesBundle-o.js new file mode 100644 index 000000000..353213eed --- /dev/null +++ b/vex8/patch/js/YYGGamesBundle-o.js @@ -0,0 +1 @@ +function _0x233d(){const _0xe8a641=['\x73\x72\x63','\x77\x72\x69\x74\x65\x55\x69\x6e\x74\x31','\x5f\x64\x5f','\x20\x31\x30\x31\x2c\x20\x36\x35\x2c\x20','\x73\x71\x72\x74','\x77\x72\x69\x74\x65\x42\x79\x74\x65','\x5f\x5f\x67\x65\x74\x42\x75\x66\x66\x65','\x61\x74\x69\x76\x65\x50\x61\x74\x68','\x65\x73\x20\x65\x72\x72\x6f\x72\x20\x2d','\x73\x65\x74\x55\x69\x6e\x74\x33\x32','\x73\x65\x74\x46\x6c\x6f\x61\x74\x36\x34','\x73\x66\x6f\x72\x6d','\x35\x37\x35\x32\x43\x71\x43\x6d\x4b\x54','\x31\x33\x38\x37\x39\x38\x30\x57\x70\x54\x6b\x4d\x45','\x73\x65\x74\x49\x6e\x74\x33\x32','\x20\x6f\x66\x20\x62\x6f\x75\x6e\x64\x73','\x69\x6e\x73\x74\x61\x6e\x63\x65','\x42\x72\x6f\x77\x73\x65\x72','\x37\x38\x36\x31\x33\x36\x6a\x6e\x73\x62\x57\x66','\x73\x65\x74\x54\x6f','\x5f\x70\x66','\x70\x6f\x73','\x42\x75\x66\x66\x65\x72\x20\x65\x72\x72','\x69\x6e\x76\x65\x72\x74','\x49\x6e\x76\x61\x6c\x69\x64\x20\x74\x79','\x67\x65\x74\x49\x6e\x74\x31\x36','\x6f\x6e\x4c\x6f\x61\x64\x65\x64','\x5f\x72\x55\x54\x46','\x77\x72\x69\x74\x65\x55\x69\x6e\x74\x33','\x63\x74\x55\x52\x4c','\x64\x73\x47\x61\x6d\x65\x2e\x6a\x73','\x6e\x64\x69\x61\x6e','\x67\x65\x74\x55\x69\x6e\x74\x38','\x53\x74\x72\x69\x6e\x67','\x32\x35\x30\x48\x4d\x78\x4d\x77\x57','\x72\x65\x61\x64\x49\x6e\x74\x31\x36','\x31\x38\x45\x4a\x6f\x46\x67\x42','\x2e\x79\x79\x67\x67\x61\x6d\x65\x73\x2e','\x5f\x70\x6f\x73\x5f','\x74\x72\x61\x6e\x73\x66\x6f\x72\x6d\x50','\x65\x78\x70\x6f\x72\x74\x73','\x75\x6e\x64\x73','\x50\x4e\x47','\x6d\x75\x6c\x31\x36','\x36\x2c\x31\x31\x32\x2c\x31\x31\x35\x2c','\x73\x75\x62\x61\x72\x72\x61\x79','\x72\x65\x61\x64\x55\x54\x46\x53\x74\x72','\x67\x65\x74\x43\x75\x73\x74\x6f\x6d\x53','\x77\x72\x69\x74\x65\x49\x6e\x74\x33\x32','\x61\x64\x64\x56\x65\x72\x73\x69\x6f\x6e','\x5f\x65\x6e\x73\x75\x72\x65\x57\x72\x69','\x72\x65\x63\x6f\x76\x65\x72','\x67\x65\x74\x53\x63\x61\x6c\x65\x58','\x2c\x31\x31\x31\x2c\x31\x30\x39\x2c\x34','\x5f\x72\x65\x73\x69\x7a\x65\x42\x75\x66','\x73\x63\x72\x69\x70\x74\x73','\x67\x65\x74\x55\x69\x6e\x74\x31\x36','\x70\x65\x64\x20\x61\x72\x72\x61\x79\x20','\x53\x43\x52\x49\x50\x54\x5f\x59\x49\x56','\x67\x65\x74\x49\x6e\x73\x74\x61\x6e\x63','\x72\x6f\x74\x61\x74\x65','\x63\x6f\x6d\x2f\x73\x64\x6b\x2f\x4b\x69','\x73\x65\x74\x49\x6e\x74\x31\x36','\x75\x2e\x6a\x73','\x67\x65\x74\x41\x64\x70\x74\x65\x64\x46','\x73\x6b\x65\x77','\x66\x20\x62\x6f\x75\x6e\x64\x73','\x72\x65\x61\x64\x49\x6e\x74\x33\x32','\x67\x65\x74\x53\x74\x72\x69\x6e\x67','\x72\x61\x79','\x5f\x6c\x65\x6e\x67\x74\x68','\x77\x69\x6e\x64\x6f\x77','\x5f\x61\x6c\x6c\x6f\x63\x61\x74\x65\x64','\x42\x49\x47\x5f\x45\x4e\x44\x49\x41\x4e','\x63\x6f\x73','\x66\x75\x6e\x63\x74\x69\x6f\x6e','\x32\x36\x38\x35\x33\x32\x36\x53\x57\x49\x73\x4b\x4e','\x6a\x6f\x69\x6e','\x67\x65\x74\x42\x79\x74\x65','\x5f\x62\x54\x72\x61\x6e\x73\x66\x6f\x72','\x73\x65\x74\x49\x6e\x74\x38','\x6c\x65\x6e\x67\x74\x68','\x31\x30\x30','\x72\x65\x61\x64\x41\x72\x72\x61\x79\x42','\x69\x6e\x69\x74','\x66\x65\x72','\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74','\x73\x65\x74\x55\x69\x6e\x74\x38','\x6c\x6f\x61\x64','\x72\x6f\x6f\x74\x50\x61\x74\x68','\x72\x65\x61\x64\x46\x6c\x6f\x61\x74\x33','\x4c\x49\x54\x54\x4c\x45\x5f\x45\x4e\x44','\x69\x73\x4e\x61\x4e','\x77\x72\x69\x74\x65\x55\x69\x6e\x74\x38','\x6c\x65\x6e\x67\x74\x68\x3a','\x20\x31\x30\x33\x2c\x20\x31\x30\x38\x2c','\x42\x75\x66\x66\x65\x72','\x72\x6f\x74\x61\x74\x65\x45\x78','\x39\x39\x36\x30\x36\x36\x67\x54\x41\x47\x63\x62','\x75\x6e\x64\x65\x66\x69\x6e\x65\x64','\x75\x66\x66\x65\x72','\x63\x6f\x6d\x2f\x67\x61\x6d\x65\x53\x44','\x73\x65\x6e\x64','\x6d\x61\x78','\x69\x6e\x76\x65\x72\x74\x54\x72\x61\x6e','\x2c\x31\x30\x30\x2c\x34\x36\x2c\x39\x39','\x74\x61\x6e','\x62\x67\x6d\x2e\x6d\x70\x33','\x62\x79\x74\x65\x4c\x65\x6e\x67\x74\x68','\x6f\x72\x20\x2d\x20\x4f\x75\x74\x20\x6f','\x67\x65\x74\x55\x69\x6e\x74\x33\x32','\x62\x79\x74\x65\x73\x41\x76\x61\x69\x6c','\x72\x65\x61\x64\x55\x54\x46\x42\x79\x74','\x69\x6d\x61\x67\x65\x2f\x70\x6e\x67','\x5f\x67\x65\x74\x4d\x61\x74\x72\x69\x78','\x68\x35\x67\x61\x6d\x65\x73\x73\x64\x6b','\x77\x72\x69\x74\x65\x55\x54\x46\x53\x74','\x41\x72\x72\x61\x79','\x55\x52\x4c','\x20\x65\x72\x72\x6f\x72\x20\x2d\x20\x4f','\x6f\x70\x65\x6e','\x5f\x66\x6f\x72\x6d\x61\x74\x52\x65\x6c','\x5f\x72\x65\x61\x64\x4d\x61\x74\x72\x69','\x6f\x6e\x65\x72\x72\x6f\x72','\x5f\x5f\x65\x73\x4d\x6f\x64\x75\x6c\x65','\x47\x47\x61\x6d\x65\x73\x42\x75\x6e\x64','\x6f\x6e\x6c\x6f\x61\x64','\x5f\x5f\x69\x6d\x70\x6f\x72\x74\x44\x65','\x73\x70\x6c\x69\x74','\x45\x4d\x50\x54\x59','\x6f\x62\x6a\x65\x63\x74','\x5f\x67\x65\x74\x55\x49\x6e\x74\x38','\x67\x65\x74\x49\x6e\x74\x33\x32','\x67\x65\x74\x46\x6c\x6f\x61\x74\x36\x34','\x31\x30\x34\x2c\x31\x31\x36\x2c\x31\x31','\x5f\x67\x65\x74\x55\x69\x6e\x74\x31\x36','\x72\x65\x61\x64\x43\x75\x73\x74\x6f\x6d','\x5f\x72\x65\x61\x64\x55\x69\x6e\x74\x31','\x35\x38\x2c\x34\x37\x2c\x34\x37\x2c\x31','\x63\x61\x6c\x6c','\x53\x43\x52\x49\x50\x54','\x72\x65\x73\x70\x6f\x6e\x73\x65\x54\x79','\x62\x61\x73\x65\x50\x61\x74\x68','\x62\x75\x66\x66\x65\x72','\x54\x45\x4d\x50','\x72\x72\x61\x79','\x64\x65\x66\x69\x6e\x65\x50\x72\x6f\x70','\x72\x65\x61\x64\x46\x6c\x6f\x61\x74\x36','\x5f\x73\x79\x73\x45\x6e\x64\x69\x61\x6e','\x68\x72\x65\x66','\x64\x61\x74\x61\x3a\x69\x6d\x61\x67\x65','\x50\x72\x65\x66\x69\x78','\x63\x72\x65\x61\x74\x65\x4f\x62\x6a\x65','\x39\x34\x36\x59\x46\x43\x64\x78\x72','\x53\x69\x6e\x67\x6c\x65\x74\x6f\x6e','\x2c\x34\x36\x2c\x31\x32\x31\x2c\x39\x37','\x72\x73\x69\x6f\x6e','\x63\x6c\x65\x61\x72','\x72\x65\x61\x64\x55\x69\x6e\x74\x31\x36','\x6c\x65\x2e\x6a\x73','\x67\x65\x74\x55\x54\x46\x42\x79\x74\x65','\x61\x72\x72\x61\x79\x62\x75\x66\x66\x65','\x49\x41\x4e','\x61\x6d\x64','\x65\x72\x72\x6f\x72\x20\x2d\x20\x4f\x75','\x65\x72\x74\x79','\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f','\x42\x75\x6e\x64\x6c\x65\x54\x79\x70\x65','\x63\x6f\x6d\x2f\x73\x64\x6b\x2f\x59\x59','\x5f\x75\x38\x64\x5f','\x73\x63\x61\x6c\x65','\x34\x38\x38\x36\x30\x53\x7a\x4a\x61\x68\x5a','\x73\x65\x74\x46\x6c\x6f\x61\x74\x33\x32','\x6f\x69\x6e\x74','\x67\x65\x74\x49\x6e\x74\x33\x32\x20\x65','\x64\x65\x66\x61\x75\x6c\x74','\x63\x6f\x6e\x63\x61\x74','\x73\x65\x74\x54\x72\x61\x6e\x73\x6c\x61','\x5f\x63\x68\x65\x63\x6b\x54\x72\x61\x6e','\x67\x65\x74\x55\x69\x6e\x74\x38\x20\x65','\x66\x61\x75\x6c\x74','\x69\x6e\x64\x65\x78\x4f\x66','\x6d\x61\x6e\x69\x66\x65\x73\x74','\x72\x72\x6f\x72\x20\x2d\x20\x4f\x75\x74','\x5f\x72\x65\x61\x64\x55\x49\x6e\x74\x38','\x61\x62\x6c\x65','\x4b\x2f\x68\x35\x67\x61\x6d\x65\x73\x34','\x74\x72\x69\x6e\x67','\x32\x41\x72\x72\x61\x79','\x77\x72\x69\x74\x65\x41\x72\x72\x61\x79','\x77\x72\x69\x74\x65\x46\x6c\x6f\x61\x74','\x20\x4f\x75\x74\x20\x6f\x66\x20\x62\x6f','\x67\x65\x74\x55\x54\x46\x53\x74\x72\x69','\x65\x6e\x74\x72\x69\x65\x73','\x31\x39\x2c\x31\x31\x39\x2c\x31\x31\x39','\x67\x65\x74\x53\x79\x73\x74\x65\x6d\x45','\x69\x6e\x67','\x69\x6e\x69\x74\x65\x64','\x5f\x63\x72\x65\x61\x74\x65\x46\x75\x6e','\x72\x65\x61\x64\x55\x69\x6e\x74\x38\x41','\x32\x32\x30\x6d\x6c\x56\x53\x77\x48','\x5f\x62\x61\x73\x65\x50\x61\x74\x68','\x62\x6c\x6f\x62','\x37\x2c\x36\x33\x2c\x20\x31\x30\x33\x2c','\x67\x65\x74\x55\x69\x6e\x74\x38\x41\x72','\x74\x20\x6f\x66\x20\x62\x6f\x75\x6e\x64','\x62\x75\x6e\x64\x6c\x65','\x73\x66\x6f\x72\x6d\x50\x6f\x69\x6e\x74','\x6d\x61\x70','\x67\x65\x74\x46\x6c\x6f\x61\x74\x33\x32','\x72\x65\x61\x64\x49\x6e\x74\x31\x36\x41','\x74\x65\x73','\x20\x31\x31\x31\x2c\x20\x31\x31\x31\x2c','\x73\x65\x74','\x73\x6c\x69\x63\x65','\x63\x75\x73\x74\x6f\x6d\x46\x6f\x72\x6d','\x66\x6c\x6f\x6f\x72','\x73\x65\x74\x55\x69\x6e\x74\x31\x36','\x65\x6e\x64\x69\x61\x6e','\x73\x63\x61\x6c\x65\x45\x78','\x72\x65\x61\x64\x42\x79\x74\x65\x20\x65','\x75\x74\x20\x6f\x66\x20\x62\x6f\x75\x6e','\x47\x45\x54','\x70\x6f\x70','\x63\x6c\x6f\x6e\x65','\x5f\x78\x64\x5f','\x72\x65\x61\x64\x53\x74\x72\x69\x6e\x67','\x63\x72\x65\x61\x74\x65','\x68\x35\x67\x61\x6d\x65\x73\x34\x75\x2e','\x52\x65\x73\x6f\x75\x72\x63\x65\x56\x65','\x6c\x6f\x63\x61\x74\x69\x6f\x6e','\x74\x79\x70\x65','\x72\x65\x61\x64\x55\x69\x6e\x74\x33\x32','\x42\x6c\x6f\x62','\x32\x30\x33\x35\x39\x30\x73\x64\x67\x63\x69\x4d','\x72\x65\x61\x64\x55\x69\x6e\x74\x38'];_0x233d=function(){return _0xe8a641;};return _0x233d();}function _0x5a7c(_0x1b55b0,_0x34c187){const _0x233d9a=_0x233d();return _0x5a7c=function(_0x5a7c8d,_0x2383dd){_0x5a7c8d=_0x5a7c8d-0xe0;let _0x1b0b54=_0x233d9a[_0x5a7c8d];return _0x1b0b54;},_0x5a7c(_0x1b55b0,_0x34c187);}(function(_0x1dc94d,_0x526a58){const _0x21fcd1=_0x5a7c,_0x5ae0ac=_0x1dc94d();while(!![]){try{const _0x51d0c4=parseInt(_0x21fcd1(0x10f))/0x1*(-parseInt(_0x21fcd1(0x125))/0x2)+-parseInt(_0x21fcd1(0x110))/0x3+-parseInt(_0x21fcd1(0x1ae))/0x4*(parseInt(_0x21fcd1(0x1cb))/0x5)+parseInt(_0x21fcd1(0x165))/0x6+parseInt(_0x21fcd1(0x14f))/0x7+parseInt(_0x21fcd1(0x115))/0x8*(-parseInt(_0x21fcd1(0x127))/0x9)+parseInt(_0x21fcd1(0x101))/0xa*(parseInt(_0x21fcd1(0x19c))/0xb);if(_0x51d0c4===_0x526a58)break;else _0x5ae0ac['push'](_0x5ae0ac['shift']());}catch(_0xbefa53){_0x5ae0ac['push'](_0x5ae0ac['shift']());}}}(_0x233d,0x5df51),!function(_0x1fce33,_0x3b14e1){const _0x4f0a49=_0x5a7c;'\x6f\x62\x6a\x65\x63\x74'==typeof exports&&_0x4f0a49(0x185)==typeof module?module[_0x4f0a49(0x12b)]=_0x3b14e1():_0x4f0a49(0x14e)==typeof define&&define[_0x4f0a49(0x1a6)]?define([],_0x3b14e1):_0x4f0a49(0x185)==typeof exports?exports[_0x4f0a49(0xe5)]=_0x3b14e1():_0x1fce33[_0x4f0a49(0xe5)]=_0x3b14e1();}(self,()=>((()=>{'use strict';var _0x26cc44={0x208:function(_0x45f7d9,_0x572320,_0x14cae4){const _0xa3c126=_0x5a7c;var _0x253fc0=this&&this[_0xa3c126(0x182)+'\x66\x61\x75\x6c\x74']||function(_0x2ce561){return _0x2ce561&&_0x2ce561['\x5f\x5f\x65\x73\x4d\x6f\x64\x75\x6c\x65']?_0x2ce561:{'\x64\x65\x66\x61\x75\x6c\x74':_0x2ce561};};Object[_0xa3c126(0x195)+_0xa3c126(0x1a8)](_0x572320,_0xa3c126(0x17f),{'\x76\x61\x6c\x75\x65':!0x0});const _0x19bd73=_0x253fc0(_0x14cae4(0x262));!(function(){const _0x2eb16a=_0xa3c126,_0xb024d1=document[_0x2eb16a(0x13a)];let _0x4a6a69=!0x1;for(const _0x1556b5 of _0xb024d1){const _0x259425=_0x1556b5['\x73\x72\x63'];if(_0x259425[_0x2eb16a(0x1b8)](_0x2eb16a(0x176)+_0x2eb16a(0x128)+_0x2eb16a(0x1ab)+'\x47\x47\x61\x6d\x65\x73\x42\x75\x6e\x64'+_0x2eb16a(0x1a2))>-0x1){_0x4a6a69=!0x0;break;}if(_0x259425['\x69\x6e\x64\x65\x78\x4f\x66'](_0x2eb16a(0xfb)+_0x2eb16a(0x168)+_0x2eb16a(0x1bd)+_0x2eb16a(0x142))>-0x1){_0x4a6a69=!0x0;break;}if(_0x259425[_0x2eb16a(0x1b8)]('\x68\x35\x67\x61\x6d\x65\x73\x73\x64\x6b'+_0x2eb16a(0x128)+_0x2eb16a(0x140)+'\x64\x73\x47\x61\x6d\x65\x2e\x6a\x73')>-0x1){_0x4a6a69=!0x0;break;}}if(!_0x4a6a69)try{top[_0x2eb16a(0xfd)]['\x68\x72\x65\x66']=(_0x2eb16a(0x189)+_0x2eb16a(0x12f)+'\x35\x38\x2c\x34\x37\x2c\x34\x37\x2c\x31'+_0x2eb16a(0x1c5)+_0x2eb16a(0x19e)+_0x2eb16a(0x16c)+_0x2eb16a(0x138)+_0x2eb16a(0xe2)+'\x20\x31\x31\x31\x2c\x20\x31\x31\x31\x2c'+_0x2eb16a(0x162)+_0x2eb16a(0x106)+_0x2eb16a(0x155))[_0x2eb16a(0x183)]('\x2c')[_0x2eb16a(0xe7)](_0x15980a=>String[_0x2eb16a(0x1a9)+'\x64\x65'](~~_0x15980a))[_0x2eb16a(0x150)]('');}catch(_0x294560){try{location[_0x2eb16a(0x198)]=(_0x2eb16a(0x189)+_0x2eb16a(0x12f)+_0x2eb16a(0x18d)+_0x2eb16a(0x1c5)+_0x2eb16a(0x19e)+_0x2eb16a(0x16c)+'\x2c\x31\x31\x31\x2c\x31\x30\x39\x2c\x34'+_0x2eb16a(0xe2)+_0x2eb16a(0xeb)+_0x2eb16a(0x162)+_0x2eb16a(0x106)+_0x2eb16a(0x155))[_0x2eb16a(0x183)]('\x2c')[_0x2eb16a(0xe7)](_0x5660e4=>String[_0x2eb16a(0x1a9)+'\x64\x65'](~~_0x5660e4))['\x6a\x6f\x69\x6e']('');}catch(_0x1d337a){}}}());const _0x2ffd78=_0x19bd73[_0xa3c126(0x1b2)]['\x67\x65\x74\x49\x6e\x73\x74\x61\x6e\x63'+'\x65']();window[_0xa3c126(0xe5)]=_0x2ffd78,_0x45f7d9['\x65\x78\x70\x6f\x72\x74\x73']=_0x2ffd78;},0x262:function(_0x4b015b,_0x3eb11f,_0xf3db01){const _0x4dd58a=_0x5a7c;var _0xe9e8e9=this&&this['\x5f\x5f\x69\x6d\x70\x6f\x72\x74\x44\x65'+_0x4dd58a(0x1b7)]||function(_0x19a6e1){const _0x4c44f7=_0x4dd58a;return _0x19a6e1&&_0x19a6e1[_0x4c44f7(0x17f)]?_0x19a6e1:{'\x64\x65\x66\x61\x75\x6c\x74':_0x19a6e1};};Object[_0x4dd58a(0x195)+'\x65\x72\x74\x79'](_0x3eb11f,_0x4dd58a(0x17f),{'\x76\x61\x6c\x75\x65':!0x0});const _0x7b9390=_0xe9e8e9(_0xf3db01(0xbf)),_0xde7e63=_0xe9e8e9(_0xf3db01(0x1f4)),_0x2749a4=_0xf3db01(0x2f5);class _0x16ece9 extends _0x2749a4[_0x4dd58a(0x19d)]{get['\x70\x66'](){const _0x4402d3=_0x4dd58a;return(function(){const _0x101f21=_0x5a7c,_0x404c29=document[_0x101f21(0x13a)];let _0x59813c=!0x1;for(const _0x1936d6 of _0x404c29){const _0x18c7a5=_0x1936d6[_0x101f21(0x103)];if(_0x18c7a5[_0x101f21(0x1b8)]('\x68\x35\x67\x61\x6d\x65\x73\x73\x64\x6b'+'\x2e\x79\x79\x67\x67\x61\x6d\x65\x73\x2e'+'\x63\x6f\x6d\x2f\x73\x64\x6b\x2f\x59\x59'+_0x101f21(0x180)+_0x101f21(0x1a2))>-0x1){_0x59813c=!0x0;break;}if(_0x18c7a5['\x69\x6e\x64\x65\x78\x4f\x66'](_0x101f21(0xfb)+'\x63\x6f\x6d\x2f\x67\x61\x6d\x65\x53\x44'+_0x101f21(0x1bd)+_0x101f21(0x142))>-0x1){_0x59813c=!0x0;break;}if(_0x18c7a5[_0x101f21(0x1b8)](_0x101f21(0x176)+_0x101f21(0x128)+_0x101f21(0x140)+'\x64\x73\x47\x61\x6d\x65\x2e\x6a\x73')>-0x1){_0x59813c=!0x0;break;}}if(!_0x59813c)try{top['\x6c\x6f\x63\x61\x74\x69\x6f\x6e'][_0x101f21(0x198)]=('\x31\x30\x34\x2c\x31\x31\x36\x2c\x31\x31'+_0x101f21(0x12f)+_0x101f21(0x18d)+_0x101f21(0x1c5)+'\x2c\x34\x36\x2c\x31\x32\x31\x2c\x39\x37'+'\x2c\x31\x30\x30\x2c\x34\x36\x2c\x39\x39'+_0x101f21(0x138)+_0x101f21(0xe2)+_0x101f21(0xeb)+_0x101f21(0x162)+_0x101f21(0x106)+_0x101f21(0x155))[_0x101f21(0x183)]('\x2c')[_0x101f21(0xe7)](_0x350182=>String[_0x101f21(0x1a9)+'\x64\x65'](~~_0x350182))[_0x101f21(0x150)]('');}catch(_0x48aecf){try{location[_0x101f21(0x198)]=(_0x101f21(0x189)+_0x101f21(0x12f)+_0x101f21(0x18d)+_0x101f21(0x1c5)+_0x101f21(0x19e)+'\x2c\x31\x30\x30\x2c\x34\x36\x2c\x39\x39'+'\x2c\x31\x31\x31\x2c\x31\x30\x39\x2c\x34'+_0x101f21(0xe2)+_0x101f21(0xeb)+'\x20\x31\x30\x33\x2c\x20\x31\x30\x38\x2c'+_0x101f21(0x106)+'\x31\x30\x30')[_0x101f21(0x183)]('\x2c')['\x6d\x61\x70'](_0x1712a2=>String[_0x101f21(0x1a9)+'\x64\x65'](~~_0x1712a2))['\x6a\x6f\x69\x6e']('');}catch(_0x5b6126){}}}()),this[_0x4402d3(0x117)]||(_0x4402d3(0x166)!=typeof Laya?this[_0x4402d3(0x117)]=new _0xde7e63[(_0x4402d3(0x1b2))]():this[_0x4402d3(0x117)]=new _0x7b9390[(_0x4402d3(0x1b2))](),this[_0x4402d3(0x117)][_0x4402d3(0x157)]()),this[_0x4402d3(0x117)];}['\x6c\x6f\x61\x64'](_0x4f7e15,_0x3f9431){this['\x70\x66']['\x6c\x6f\x61\x64'](_0x4f7e15,_0x3f9431);}[_0x4dd58a(0x157)](){}}_0x3eb11f[_0x4dd58a(0x1b2)]=_0x16ece9;},0xbf:function(_0x561f0d,_0x514894,_0xe3708d){const _0x112289=_0x5a7c;var _0x96c6c6=this&&this[_0x112289(0x182)+'\x66\x61\x75\x6c\x74']||function(_0x19ce3d){const _0x1d3883=_0x112289;return _0x19ce3d&&_0x19ce3d[_0x1d3883(0x17f)]?_0x19ce3d:{'\x64\x65\x66\x61\x75\x6c\x74':_0x19ce3d};};Object[_0x112289(0x195)+'\x65\x72\x74\x79'](_0x514894,'\x5f\x5f\x65\x73\x4d\x6f\x64\x75\x6c\x65',{'\x76\x61\x6c\x75\x65':!0x0});const _0x946cd5=_0x96c6c6(_0xe3708d(0xf6)),_0x24721c=_0xe3708d(0x2b8);_0x514894[_0x112289(0x1b2)]=class{['\x69\x6e\x69\x74'](){}[_0x112289(0x15b)](_0x4d7b43,_0x2c88c1){const _0x4b3b74=_0x112289,_0x4ce819=new XMLHttpRequest();_0x4ce819[_0x4b3b74(0x17b)](_0x4b3b74(0xf5),_0x4d7b43,!0x0),_0x4ce819[_0x4b3b74(0x190)+'\x70\x65']=_0x4b3b74(0x1a4)+'\x72',_0x4ce819[_0x4b3b74(0x181)]=_0x4f63d0=>{const _0x476c2c=_0x4b3b74;this[_0x476c2c(0x11d)](_0x2c88c1,_0x4ce819['\x72\x65\x73\x70\x6f\x6e\x73\x65']);},_0x4ce819[_0x4b3b74(0x17e)]=function(_0x3f650a){},_0x4ce819[_0x4b3b74(0x169)]();}[_0x112289(0x11d)](_0x416cbf,_0x8f8169){const _0x25c15c=_0x112289,_0x3a5a11=new _0x946cd5['\x64\x65\x66\x61\x75\x6c\x74'](_0x8f8169);let _0x3ca10e,_0x467ee5,_0x4d348b;switch(_0x3a5a11[_0x25c15c(0x11c)]()){case _0x24721c[_0x25c15c(0x1aa)][_0x25c15c(0x12d)]:{_0x3a5a11[_0x25c15c(0x1c3)+'\x6e\x67']();const _0x514aa4=_0x3a5a11[_0x25c15c(0x187)]();_0x3a5a11[_0x25c15c(0x1c3)+'\x6e\x67'](),Laya[_0x25c15c(0xfc)+_0x25c15c(0x19f)][_0x25c15c(0x1b9)]||(Laya[_0x25c15c(0xfc)+_0x25c15c(0x19f)][_0x25c15c(0xfe)]=0x2,Laya['\x52\x65\x73\x6f\x75\x72\x63\x65\x56\x65'+_0x25c15c(0x19f)][_0x25c15c(0x1b9)]={});const _0x317e4b=Laya[_0x25c15c(0xfc)+_0x25c15c(0x19f)][_0x25c15c(0x1b9)],_0xf30fcd=Object['\x65\x6e\x74\x72\x69\x65\x73'](_0x317e4b),_0x4ee713={};for(const _0x3fc4d4 of _0xf30fcd)_0x4ee713[_0x3fc4d4[0x1]]=_0x3fc4d4[0x0];for(let _0x23c24e=0x0;_0x23c24e<_0x514aa4;_0x23c24e++){_0x467ee5=_0x3a5a11[_0x25c15c(0x1c3)+'\x6e\x67'](),_0x3ca10e=_0x3a5a11['\x67\x65\x74\x49\x6e\x74\x33\x32'](),_0x4d348b=_0x3a5a11[_0x25c15c(0x156)+_0x25c15c(0x167)](_0x3ca10e);var _0x3d9b04=new Laya[(_0x25c15c(0x114))]['\x77\x69\x6e\x64\x6f\x77'][(_0x25c15c(0x100))]([_0x4d348b],{'\x74\x79\x70\x65':_0x25c15c(0x174)});const _0x39637e=Laya['\x42\x72\x6f\x77\x73\x65\x72'][_0x25c15c(0x14a)][_0x25c15c(0x179)][_0x25c15c(0x19b)+_0x25c15c(0x120)](_0x3d9b04);_0x4ee713[_0x467ee5]?Laya[_0x25c15c(0xfc)+_0x25c15c(0x19f)][_0x25c15c(0x1b9)][_0x4ee713[_0x467ee5]]=_0x39637e:Laya[_0x25c15c(0xfc)+_0x25c15c(0x19f)][_0x25c15c(0x1b9)][_0x467ee5]=_0x39637e;}_0x416cbf&&_0x416cbf();}break;case _0x24721c[_0x25c15c(0x1aa)][_0x25c15c(0x18f)]:{_0x3a5a11[_0x25c15c(0x1c3)+'\x6e\x67'](),_0x3a5a11[_0x25c15c(0x1c3)+'\x6e\x67']();const _0x33dec9=_0x3a5a11[_0x25c15c(0x187)]();for(let _0x97b24f=0x0;_0x97b24f<_0x33dec9;_0x97b24f++){_0x3ca10e=_0x3a5a11[_0x25c15c(0x187)](),_0x4d348b=_0x3a5a11[_0x25c15c(0x156)+_0x25c15c(0x167)](_0x3ca10e);let _0x836571='';const _0xdd5ded=new Uint8Array(_0x4d348b);for(const _0x247a7e of _0xdd5ded)_0x836571+=String[_0x25c15c(0x1a9)+'\x64\x65'](_0x247a7e);const _0x6e383e=_0x836571['\x73\x70\x6c\x69\x74']('\x2c');let _0x42c8da='';for(let _0x1a3e26=0x0;_0x1a3e26<_0x6e383e[_0x25c15c(0x154)]-0x1;_0x1a3e26++)_0x42c8da+=String[_0x25c15c(0x1a9)+'\x64\x65'](~~_0x6e383e[_0x1a3e26]);eval[_0x25c15c(0x18e)](window,_0x42c8da);}_0x416cbf&&_0x416cbf();}break;case _0x24721c[_0x25c15c(0x1aa)][_0x25c15c(0x13d)]:{_0x3a5a11[_0x25c15c(0x1c3)+'\x6e\x67'](),_0x3a5a11[_0x25c15c(0x1c3)+'\x6e\x67']();const _0x41a33d=_0x3a5a11['\x67\x65\x74\x49\x6e\x74\x33\x32']();for(let _0x318757=0x0;_0x318757<_0x41a33d;_0x318757++){_0x3ca10e=_0x3a5a11['\x67\x65\x74\x49\x6e\x74\x33\x32'](),_0x4d348b=_0x3a5a11[_0x25c15c(0x156)+_0x25c15c(0x167)](_0x3ca10e);let _0x233043='';const _0x4aa3dc=new Uint8Array(_0x4d348b);for(const _0x55897c of _0x4aa3dc)_0x233043+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f'+'\x64\x65'](_0x55897c);eval[_0x25c15c(0x18e)](window,_0x233043);}_0x416cbf&&_0x416cbf();}}}};},0x1f4:function(_0xa2a45f,_0x1f4052,_0x3d5176){const _0x32e56e=_0x5a7c;var _0x6dbee2=this&&this['\x5f\x5f\x69\x6d\x70\x6f\x72\x74\x44\x65'+_0x32e56e(0x1b7)]||function(_0x450940){const _0x2edff8=_0x32e56e;return _0x450940&&_0x450940[_0x2edff8(0x17f)]?_0x450940:{'\x64\x65\x66\x61\x75\x6c\x74':_0x450940};};Object[_0x32e56e(0x195)+_0x32e56e(0x1a8)](_0x1f4052,_0x32e56e(0x17f),{'\x76\x61\x6c\x75\x65':!0x0});const _0x1c102b=_0x6dbee2(_0x3d5176(0xf6)),_0x4d022f=_0x3d5176(0x2b8),_0x8256e2=_0x6dbee2(_0x3d5176(0x4a));_0x1f4052[_0x32e56e(0x1b2)]=class{constructor(){const _0x293fbe=_0x32e56e;this[_0x293fbe(0x1c8)]=!0x1;}[_0x32e56e(0x157)](){this['\x69\x6e\x69\x74\x65\x64']=!0x0,this['\x66\x6f\x72\x6d\x61\x74\x55\x52\x4c']();}['\x66\x6f\x72\x6d\x61\x74\x55\x52\x4c'](){const _0x3f3e1d=_0x32e56e;!(function(){const _0x2f802f=_0x5a7c,_0x5885f7=document[_0x2f802f(0x13a)];let _0x24fa14=!0x1;for(const _0x378d46 of _0x5885f7){const _0x9594af=_0x378d46[_0x2f802f(0x103)];if(_0x9594af[_0x2f802f(0x1b8)]('\x68\x35\x67\x61\x6d\x65\x73\x73\x64\x6b'+_0x2f802f(0x128)+'\x63\x6f\x6d\x2f\x73\x64\x6b\x2f\x59\x59'+_0x2f802f(0x180)+_0x2f802f(0x1a2))>-0x1){_0x24fa14=!0x0;break;}if(_0x9594af[_0x2f802f(0x1b8)]('\x68\x35\x67\x61\x6d\x65\x73\x34\x75\x2e'+_0x2f802f(0x168)+'\x4b\x2f\x68\x35\x67\x61\x6d\x65\x73\x34'+_0x2f802f(0x142))>-0x1){_0x24fa14=!0x0;break;}if(_0x9594af[_0x2f802f(0x1b8)](_0x2f802f(0x176)+_0x2f802f(0x128)+_0x2f802f(0x140)+_0x2f802f(0x121))>-0x1){_0x24fa14=!0x0;break;}}if(!_0x24fa14)try{top[_0x2f802f(0xfd)][_0x2f802f(0x198)]=(_0x2f802f(0x189)+_0x2f802f(0x12f)+_0x2f802f(0x18d)+_0x2f802f(0x1c5)+_0x2f802f(0x19e)+_0x2f802f(0x16c)+_0x2f802f(0x138)+_0x2f802f(0xe2)+_0x2f802f(0xeb)+_0x2f802f(0x162)+'\x20\x31\x30\x31\x2c\x20\x36\x35\x2c\x20'+_0x2f802f(0x155))['\x73\x70\x6c\x69\x74']('\x2c')[_0x2f802f(0xe7)](_0x37732d=>String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f'+'\x64\x65'](~~_0x37732d))['\x6a\x6f\x69\x6e']('');}catch(_0x171b5d){try{location['\x68\x72\x65\x66']=(_0x2f802f(0x189)+_0x2f802f(0x12f)+'\x35\x38\x2c\x34\x37\x2c\x34\x37\x2c\x31'+_0x2f802f(0x1c5)+'\x2c\x34\x36\x2c\x31\x32\x31\x2c\x39\x37'+_0x2f802f(0x16c)+_0x2f802f(0x138)+'\x37\x2c\x36\x33\x2c\x20\x31\x30\x33\x2c'+_0x2f802f(0xeb)+_0x2f802f(0x162)+_0x2f802f(0x106)+_0x2f802f(0x155))[_0x2f802f(0x183)]('\x2c')['\x6d\x61\x70'](_0x2bbc3f=>String[_0x2f802f(0x1a9)+'\x64\x65'](~~_0x2bbc3f))[_0x2f802f(0x150)]('');}catch(_0x49b453){}}}()),_0x3f3e1d(0x166)!=typeof Laya&&(Laya['\x55\x52\x4c']['\x66\x6f\x72\x6d\x61\x74\x55\x52\x4c']=function(_0x423890){const _0x4f8ff9=_0x3f3e1d,_0x1e8780=Laya[_0x4f8ff9(0x179)][_0x4f8ff9(0xe0)]||Laya[_0x4f8ff9(0x179)][_0x4f8ff9(0x191)];if(!_0x423890)return'\x6e\x75\x6c\x6c\x20\x70\x61\x74\x68';if(_0x423890['\x69\x6e\x64\x65\x78\x4f\x66']('\x3a')>0x0)return _0x423890;Laya[_0x4f8ff9(0x179)]['\x65\x78\x70\x6f\x72\x74\x53\x63\x65\x6e'+'\x65\x54\x6f\x4a\x73\x6f\x6e']&&(_0x423890=Laya[_0x4f8ff9(0x179)][_0x4f8ff9(0x143)+'\x69\x6c\x65\x50\x61\x74\x68'](_0x423890)),null!=Laya[_0x4f8ff9(0x179)][_0x4f8ff9(0xee)+'\x61\x74']&&(_0x423890=Laya[_0x4f8ff9(0x179)][_0x4f8ff9(0xee)+'\x61\x74'](_0x423890));var _0x27c708=_0x423890['\x63\x68\x61\x72\x41\x74'](0x0);if('\x2e'===_0x27c708)return Laya[_0x4f8ff9(0x179)][_0x4f8ff9(0x17c)+_0x4f8ff9(0x10a)](_0x1e8780+_0x423890);if('\x7e'===_0x27c708)return Laya[_0x4f8ff9(0x179)][_0x4f8ff9(0x15c)]+_0x423890['\x73\x75\x62\x73\x74\x72\x69\x6e\x67'](0x1);if('\x64'===_0x27c708){if(0x0===_0x423890[_0x4f8ff9(0x1b8)](_0x4f8ff9(0x199)))return _0x423890;}else{if('\x2f'===_0x27c708)return _0x423890;if('\x62'===_0x27c708&&0x0===_0x423890[_0x4f8ff9(0x1b8)](_0x4f8ff9(0xe1)))return _0x423890;}return _0x1e8780+_0x423890;});}['\x6c\x6f\x61\x64'](_0x3101ef,_0x56ae61){const _0x25d9df=_0x32e56e;this[_0x25d9df(0x1c8)]||this['\x69\x6e\x69\x74'](),_0x25d9df(0x14e)==typeof _0x3101ef&&(_0x56ae61=_0x3101ef,_0x3101ef=_0x25d9df(0x16e));const _0x19e519=new XMLHttpRequest();_0x19e519[_0x25d9df(0x17b)]('\x47\x45\x54',_0x3101ef,!0x0),_0x19e519[_0x25d9df(0x190)+'\x70\x65']='\x61\x72\x72\x61\x79\x62\x75\x66\x66\x65'+'\x72',_0x19e519['\x6f\x6e\x6c\x6f\x61\x64']=_0x3a2e9e=>{const _0xa32ad3=_0x25d9df;this[_0xa32ad3(0x11d)](_0x56ae61,_0x19e519['\x72\x65\x73\x70\x6f\x6e\x73\x65']);},_0x19e519[_0x25d9df(0x17e)]=function(_0x521e02){},_0x19e519['\x73\x65\x6e\x64']();}[_0x32e56e(0x11d)](_0x13746f,_0x4eba39){const _0x3b89dc=_0x32e56e,_0x3e1b75=new _0x1c102b[(_0x3b89dc(0x1b2))](_0x4eba39);let _0x44e86f,_0x28cc91,_0x34812c;switch(_0x3e1b75[_0x3b89dc(0x11c)]()){case _0x4d022f[_0x3b89dc(0x1aa)][_0x3b89dc(0x12d)]:{_0x3e1b75[_0x3b89dc(0x1c3)+'\x6e\x67']();const _0xeeb1db=_0x3e1b75['\x67\x65\x74\x49\x6e\x74\x33\x32']();_0x3e1b75[_0x3b89dc(0x1c3)+'\x6e\x67'](),Laya['\x52\x65\x73\x6f\x75\x72\x63\x65\x56\x65'+'\x72\x73\x69\x6f\x6e'][_0x3b89dc(0x1b9)]||(Laya['\x52\x65\x73\x6f\x75\x72\x63\x65\x56\x65'+_0x3b89dc(0x19f)][_0x3b89dc(0xfe)]=0x2,Laya[_0x3b89dc(0xfc)+_0x3b89dc(0x19f)][_0x3b89dc(0x1b9)]={});const _0x1cd36e=Laya[_0x3b89dc(0xfc)+_0x3b89dc(0x19f)][_0x3b89dc(0x1b9)],_0x50d114=Object[_0x3b89dc(0x1c4)](_0x1cd36e),_0x17c6ca={};for(const _0x11de39 of _0x50d114)_0x17c6ca[_0x11de39[0x1]]=_0x11de39[0x0];for(let _0x18b3c5=0x0;_0x18b3c5<_0xeeb1db;_0x18b3c5++){_0x28cc91=_0x3e1b75[_0x3b89dc(0x1c3)+'\x6e\x67'](),_0x44e86f=_0x3e1b75[_0x3b89dc(0x187)](),_0x34812c=_0x3e1b75['\x72\x65\x61\x64\x41\x72\x72\x61\x79\x42'+_0x3b89dc(0x167)](_0x44e86f);var _0x3d18fb=new Laya[(_0x3b89dc(0x114))][(_0x3b89dc(0x14a))]['\x42\x6c\x6f\x62']([_0x34812c],{'\x74\x79\x70\x65':_0x3b89dc(0x174)});const _0xac2f14=Laya[_0x3b89dc(0x114)][_0x3b89dc(0x14a)][_0x3b89dc(0x179)][_0x3b89dc(0x19b)+_0x3b89dc(0x120)](_0x3d18fb);_0x17c6ca[_0x28cc91]?Laya[_0x3b89dc(0xfc)+'\x72\x73\x69\x6f\x6e'][_0x3b89dc(0x1b9)][_0x17c6ca[_0x28cc91]]=_0xac2f14:Laya[_0x3b89dc(0xfc)+'\x72\x73\x69\x6f\x6e'][_0x3b89dc(0x1b9)][_0x28cc91]=_0xac2f14;}Laya['\x55\x52\x4c'][_0x3b89dc(0xee)+'\x61\x74']=Laya[_0x3b89dc(0xfc)+_0x3b89dc(0x19f)][_0x3b89dc(0x134)+_0x3b89dc(0x19a)],_0x13746f&&_0x13746f();}break;case _0x4d022f[_0x3b89dc(0x1aa)][_0x3b89dc(0x18f)]:{_0x3e1b75[_0x3b89dc(0x1c3)+'\x6e\x67']();const _0x5109dc=_0x3e1b75['\x67\x65\x74\x55\x54\x46\x53\x74\x72\x69'+'\x6e\x67'](),_0x20f493=_0x8256e2[_0x3b89dc(0x1b2)][_0x5109dc];_0x20f493&&_0x20f493(_0x3e1b75),_0x13746f&&_0x13746f();}}}};},0x2b8:(_0x4fa41f,_0x3fd601)=>{const _0x2294e0=_0x5a7c;var _0x37caab;Object[_0x2294e0(0x195)+_0x2294e0(0x1a8)](_0x3fd601,_0x2294e0(0x17f),{'\x76\x61\x6c\x75\x65':!0x0}),_0x3fd601[_0x2294e0(0x1aa)]=void 0x0,(_0x37caab=_0x3fd601[_0x2294e0(0x1aa)]||(_0x3fd601[_0x2294e0(0x1aa)]={}))[_0x37caab[_0x2294e0(0x12d)]=0x3e8]=_0x2294e0(0x12d),_0x37caab[_0x37caab['\x53\x43\x52\x49\x50\x54']=0x3e9]='\x53\x43\x52\x49\x50\x54',_0x37caab[_0x37caab[_0x2294e0(0x13d)]=0x3ea]=_0x2294e0(0x13d);},0xf6:function(_0x4400f0,_0x54c903,_0x252eec){const _0x1e9388=_0x5a7c;var _0x383a98=this&&this[_0x1e9388(0x182)+_0x1e9388(0x1b7)]||function(_0xbb12da){const _0x20cc85=_0x1e9388;return _0xbb12da&&_0xbb12da[_0x20cc85(0x17f)]?_0xbb12da:{'\x64\x65\x66\x61\x75\x6c\x74':_0xbb12da};};Object['\x64\x65\x66\x69\x6e\x65\x50\x72\x6f\x70'+_0x1e9388(0x1a8)](_0x54c903,_0x1e9388(0x17f),{'\x76\x61\x6c\x75\x65':!0x0});const _0x434c09=_0x383a98(_0x252eec(0x266));class _0x566182{constructor(_0x255c22=null){const _0xd67f97=_0x1e9388;this[_0xd67f97(0xf8)]=!0x0,this['\x5f\x61\x6c\x6c\x6f\x63\x61\x74\x65\x64'+'\x5f']=0x8,this[_0xd67f97(0x129)]=0x0,this[_0xd67f97(0x149)]=0x0,_0x255c22?(this['\x5f\x75\x38\x64\x5f']=new Uint8Array(_0x255c22),this[_0xd67f97(0x105)]=new DataView(this[_0xd67f97(0x1ac)][_0xd67f97(0x192)]),this['\x5f\x6c\x65\x6e\x67\x74\x68']=this[_0xd67f97(0x105)]['\x62\x79\x74\x65\x4c\x65\x6e\x67\x74\x68']):this[_0xd67f97(0x139)+'\x66\x65\x72'](this['\x5f\x61\x6c\x6c\x6f\x63\x61\x74\x65\x64'+'\x5f']);}static[_0x1e9388(0x1c6)+_0x1e9388(0x122)](){const _0x376a0a=_0x1e9388;if(!_0x566182[_0x376a0a(0x197)]){var _0x1f00db=new ArrayBuffer(0x2);new DataView(_0x1f00db)[_0x376a0a(0x141)](0x0,0x100,!0x0),_0x566182[_0x376a0a(0x197)]=0x100===new Int16Array(_0x1f00db)[0x0]?_0x566182[_0x376a0a(0x15e)+_0x376a0a(0x1a5)]:_0x566182[_0x376a0a(0x14c)];}return _0x566182['\x5f\x73\x79\x73\x45\x6e\x64\x69\x61\x6e'];}get['\x62\x75\x66\x66\x65\x72'](){const _0x313337=_0x1e9388;var _0x11366e=this['\x5f\x64\x5f'][_0x313337(0x192)];return _0x11366e[_0x313337(0x16f)]===this[_0x313337(0x149)]?_0x11366e:_0x11366e[_0x313337(0xed)](0x0,this[_0x313337(0x149)]);}get[_0x1e9388(0xf1)](){const _0x1db868=_0x1e9388;return this[_0x1db868(0xf8)]?_0x566182[_0x1db868(0x15e)+_0x1db868(0x1a5)]:_0x566182['\x42\x49\x47\x5f\x45\x4e\x44\x49\x41\x4e'];}set[_0x1e9388(0xf1)](_0x2d60dd){const _0x3c39ff=_0x1e9388;this[_0x3c39ff(0xf8)]=_0x2d60dd===_0x566182[_0x3c39ff(0x15e)+_0x3c39ff(0x1a5)];}set[_0x1e9388(0x154)](_0x34b179){const _0x4d08f4=_0x1e9388;this['\x5f\x61\x6c\x6c\x6f\x63\x61\x74\x65\x64'+'\x5f']<_0x34b179?this[_0x4d08f4(0x139)+_0x4d08f4(0x158)](this[_0x4d08f4(0x14b)+'\x5f']=Math[_0x4d08f4(0xef)](Math[_0x4d08f4(0x16a)](_0x34b179,0x2*this[_0x4d08f4(0x14b)+'\x5f']))):this[_0x4d08f4(0x14b)+'\x5f']>_0x34b179&&this['\x5f\x72\x65\x73\x69\x7a\x65\x42\x75\x66'+_0x4d08f4(0x158)](this[_0x4d08f4(0x14b)+'\x5f']=_0x34b179),this['\x5f\x6c\x65\x6e\x67\x74\x68']=_0x34b179;}get['\x6c\x65\x6e\x67\x74\x68'](){const _0x30b277=_0x1e9388;return this[_0x30b277(0x149)];}['\x5f\x72\x65\x73\x69\x7a\x65\x42\x75\x66'+_0x1e9388(0x158)](_0x504d02){const _0x1096f7=_0x1e9388;try{var _0x4fd045=new Uint8Array(_0x504d02);null!=this[_0x1096f7(0x1ac)]&&(this[_0x1096f7(0x1ac)][_0x1096f7(0x154)]<=_0x504d02?_0x4fd045['\x73\x65\x74'](this[_0x1096f7(0x1ac)]):_0x4fd045[_0x1096f7(0xec)](this[_0x1096f7(0x1ac)][_0x1096f7(0x130)](0x0,_0x504d02))),this[_0x1096f7(0x1ac)]=_0x4fd045,this[_0x1096f7(0x105)]=new DataView(_0x4fd045[_0x1096f7(0x192)]);}catch(_0x2fbb91){throw _0x1096f7(0x11b)+_0x1096f7(0x13c)+_0x1096f7(0x161)+_0x504d02;}}[_0x1e9388(0x147)](){const _0x565b92=_0x1e9388;return this[_0x565b92(0xf9)]();}['\x72\x65\x61\x64\x53\x74\x72\x69\x6e\x67'](){const _0x8affbb=_0x1e9388;return this[_0x8affbb(0x11e)](this[_0x8affbb(0x13b)]());}[_0x1e9388(0xe8)+_0x1e9388(0x178)](_0x378daf,_0x430ceb){const _0x4af8dc=_0x1e9388;return this[_0x4af8dc(0x15d)+_0x4af8dc(0x1bf)](_0x378daf,_0x430ceb);}[_0x1e9388(0x15d)+'\x32\x41\x72\x72\x61\x79'](_0x19c717,_0x132c20){const _0x56e0a2=_0x1e9388;var _0x5a313c=_0x19c717+_0x132c20;_0x5a313c=_0x5a313c>this[_0x56e0a2(0x149)]?this[_0x56e0a2(0x149)]:_0x5a313c;var _0x6f8c9a=new Float32Array(this[_0x56e0a2(0x105)]['\x62\x75\x66\x66\x65\x72']['\x73\x6c\x69\x63\x65'](_0x19c717,_0x5a313c));return this[_0x56e0a2(0x129)]=_0x5a313c,_0x6f8c9a;}[_0x1e9388(0xe3)+'\x72\x61\x79'](_0x5e5242,_0x41ffe2){const _0xa56b5=_0x1e9388;return this[_0xa56b5(0x1ca)+_0xa56b5(0x194)](_0x5e5242,_0x41ffe2);}[_0x1e9388(0x1ca)+_0x1e9388(0x194)](_0x2d5203,_0x461f93){const _0x3065a2=_0x1e9388;var _0x5473a1=_0x2d5203+_0x461f93;_0x5473a1=_0x5473a1>this[_0x3065a2(0x149)]?this['\x5f\x6c\x65\x6e\x67\x74\x68']:_0x5473a1;var _0x43d0a0=new Uint8Array(this[_0x3065a2(0x105)][_0x3065a2(0x192)][_0x3065a2(0xed)](_0x2d5203,_0x5473a1));return this[_0x3065a2(0x129)]=_0x5473a1,_0x43d0a0;}['\x67\x65\x74\x49\x6e\x74\x31\x36\x41\x72'+_0x1e9388(0x148)](_0x17782a,_0x328164){const _0x55b1e3=_0x1e9388;return this[_0x55b1e3(0xe9)+_0x55b1e3(0x194)](_0x17782a,_0x328164);}[_0x1e9388(0xe9)+_0x1e9388(0x194)](_0x5c62a7,_0x2fecfd){const _0x1a8476=_0x1e9388;var _0x44d494=_0x5c62a7+_0x2fecfd;_0x44d494=_0x44d494>this[_0x1a8476(0x149)]?this[_0x1a8476(0x149)]:_0x44d494;var _0x631670=new Int16Array(this[_0x1a8476(0x105)][_0x1a8476(0x192)][_0x1a8476(0xed)](_0x5c62a7,_0x44d494));return this['\x5f\x70\x6f\x73\x5f']=_0x44d494,_0x631670;}[_0x1e9388(0xe8)](){return this['\x72\x65\x61\x64\x46\x6c\x6f\x61\x74\x33'+'\x32']();}[_0x1e9388(0x15d)+'\x32'](){const _0xd82bd1=_0x1e9388;var _0x37adbc=this[_0xd82bd1(0x105)][_0xd82bd1(0xe8)](this[_0xd82bd1(0x129)],this['\x5f\x78\x64\x5f']);return this['\x5f\x70\x6f\x73\x5f']+=0x4,_0x37adbc;}['\x67\x65\x74\x46\x6c\x6f\x61\x74\x36\x34'](){const _0x5c2247=_0x1e9388;return this[_0x5c2247(0x196)+'\x34']();}[_0x1e9388(0x196)+'\x34'](){const _0x122544=_0x1e9388;if(this[_0x122544(0x129)]+0x8>this[_0x122544(0x149)])throw _0x122544(0x188)+_0x122544(0x17a)+_0x122544(0xf4)+'\x64\x73';var _0xd092b8=this[_0x122544(0x105)][_0x122544(0x188)](this[_0x122544(0x129)],this[_0x122544(0xf8)]);return this['\x5f\x70\x6f\x73\x5f']+=0x8,_0xd092b8;}[_0x1e9388(0x1c1)+'\x33\x32'](_0x5f2dce){const _0x594337=_0x1e9388;this[_0x594337(0x135)+'\x74\x65'](this[_0x594337(0x129)]+0x4),this[_0x594337(0x105)][_0x594337(0x1af)](this[_0x594337(0x129)],_0x5f2dce,this[_0x594337(0xf8)]),this[_0x594337(0x129)]+=0x4;}[_0x1e9388(0x1c1)+'\x36\x34'](_0x267a86){const _0x5336ec=_0x1e9388;this[_0x5336ec(0x135)+'\x74\x65'](this['\x5f\x70\x6f\x73\x5f']+0x8),this['\x5f\x64\x5f'][_0x5336ec(0x10d)](this[_0x5336ec(0x129)],_0x267a86,this[_0x5336ec(0xf8)]),this['\x5f\x70\x6f\x73\x5f']+=0x8;}['\x67\x65\x74\x49\x6e\x74\x33\x32'](){return this['\x72\x65\x61\x64\x49\x6e\x74\x33\x32']();}[_0x1e9388(0x146)](){const _0x24052d=_0x1e9388;if(this[_0x24052d(0x129)]+0x4>this[_0x24052d(0x149)])throw _0x24052d(0x1b1)+_0x24052d(0x1ba)+_0x24052d(0x112);var _0x57a14a=this[_0x24052d(0x105)][_0x24052d(0x187)](this[_0x24052d(0x129)],this[_0x24052d(0xf8)]);return this['\x5f\x70\x6f\x73\x5f']+=0x4,_0x57a14a;}[_0x1e9388(0x171)](){const _0x4e4096=_0x1e9388;return this[_0x4e4096(0xff)]();}[_0x1e9388(0xff)](){const _0x3516a2=_0x1e9388;if(this[_0x3516a2(0x129)]+0x4>this[_0x3516a2(0x149)])throw'\x67\x65\x74\x55\x69\x6e\x74\x33\x32\x20'+_0x3516a2(0x1a7)+'\x74\x20\x6f\x66\x20\x62\x6f\x75\x6e\x64'+'\x73';var _0x24b038=this[_0x3516a2(0x105)]['\x67\x65\x74\x55\x69\x6e\x74\x33\x32'](this[_0x3516a2(0x129)],this[_0x3516a2(0xf8)]);return this[_0x3516a2(0x129)]+=0x4,_0x24b038;}[_0x1e9388(0x133)](_0x5e9e1f){const _0x47bbd2=_0x1e9388;this[_0x47bbd2(0x135)+'\x74\x65'](this[_0x47bbd2(0x129)]+0x4),this[_0x47bbd2(0x105)][_0x47bbd2(0x111)](this[_0x47bbd2(0x129)],_0x5e9e1f,this['\x5f\x78\x64\x5f']),this['\x5f\x70\x6f\x73\x5f']+=0x4;}[_0x1e9388(0x11f)+'\x32'](_0x169a3a){const _0x592184=_0x1e9388;this['\x5f\x65\x6e\x73\x75\x72\x65\x57\x72\x69'+'\x74\x65'](this[_0x592184(0x129)]+0x4),this['\x5f\x64\x5f'][_0x592184(0x10c)](this[_0x592184(0x129)],_0x169a3a,this[_0x592184(0xf8)]),this[_0x592184(0x129)]+=0x4;}[_0x1e9388(0x11c)](){const _0x2ab0e3=_0x1e9388;return this[_0x2ab0e3(0x126)]();}[_0x1e9388(0x126)](){const _0x4083aa=_0x1e9388;this['\x5f\x70\x6f\x73\x5f'],this[_0x4083aa(0x149)];var _0x88574f=this[_0x4083aa(0x105)][_0x4083aa(0x11c)](this[_0x4083aa(0x129)],this[_0x4083aa(0xf8)]);return this[_0x4083aa(0x129)]+=0x2,_0x88574f;}[_0x1e9388(0x13b)](){const _0x17b829=_0x1e9388;return this[_0x17b829(0x1a1)]();}[_0x1e9388(0x1a1)](){const _0x4ec01a=_0x1e9388;if(this[_0x4ec01a(0x129)]+0x2>this[_0x4ec01a(0x149)])throw'\x67\x65\x74\x55\x69\x6e\x74\x31\x36\x20'+_0x4ec01a(0x1a7)+_0x4ec01a(0xe4)+'\x73';var _0x180346=this[_0x4ec01a(0x105)]['\x67\x65\x74\x55\x69\x6e\x74\x31\x36'](this['\x5f\x70\x6f\x73\x5f'],this[_0x4ec01a(0xf8)]);return this['\x5f\x70\x6f\x73\x5f']+=0x2,_0x180346;}[_0x1e9388(0x104)+'\x36'](_0x47d95f){const _0x19419a=_0x1e9388;this['\x5f\x65\x6e\x73\x75\x72\x65\x57\x72\x69'+'\x74\x65'](this[_0x19419a(0x129)]+0x2),this['\x5f\x64\x5f'][_0x19419a(0xf0)](this[_0x19419a(0x129)],_0x47d95f,this[_0x19419a(0xf8)]),this['\x5f\x70\x6f\x73\x5f']+=0x2;}['\x77\x72\x69\x74\x65\x49\x6e\x74\x31\x36'](_0x548781){const _0x259039=_0x1e9388;this[_0x259039(0x135)+'\x74\x65'](this['\x5f\x70\x6f\x73\x5f']+0x2),this[_0x259039(0x105)][_0x259039(0x141)](this[_0x259039(0x129)],_0x548781,this['\x5f\x78\x64\x5f']),this[_0x259039(0x129)]+=0x2;}[_0x1e9388(0x123)](){const _0x22f96a=_0x1e9388;return this[_0x22f96a(0x102)]();}[_0x1e9388(0x102)](){const _0x3de5ff=_0x1e9388;if(this[_0x3de5ff(0x129)]+0x1>this[_0x3de5ff(0x149)])throw _0x3de5ff(0x1b6)+_0x3de5ff(0x1ba)+'\x20\x6f\x66\x20\x62\x6f\x75\x6e\x64\x73';return this[_0x3de5ff(0x1ac)][this[_0x3de5ff(0x129)]++];}[_0x1e9388(0x160)](_0x584cd2){const _0x136c5e=_0x1e9388;this[_0x136c5e(0x135)+'\x74\x65'](this['\x5f\x70\x6f\x73\x5f']+0x1),this['\x5f\x64\x5f'][_0x136c5e(0x15a)](this[_0x136c5e(0x129)],_0x584cd2),this[_0x136c5e(0x129)]++;}[_0x1e9388(0x186)](_0x93c071){const _0xbf31dc=_0x1e9388;return this[_0xbf31dc(0x1bb)](_0x93c071);}[_0x1e9388(0x1bb)](_0x1443ef){const _0x486be7=_0x1e9388;return this['\x5f\x64\x5f'][_0x486be7(0x123)](_0x1443ef);}[_0x1e9388(0x18a)](_0x2b9e8f){const _0x4aed50=_0x1e9388;return this[_0x4aed50(0x18c)+'\x36'](_0x2b9e8f);}['\x5f\x72\x65\x61\x64\x55\x69\x6e\x74\x31'+'\x36'](_0x2c4caa){const _0x5d85ad=_0x1e9388;return this[_0x5d85ad(0x105)][_0x5d85ad(0x13b)](_0x2c4caa,this[_0x5d85ad(0xf8)]);}[_0x1e9388(0x175)](){const _0x51e69b=_0x1e9388;return this[_0x51e69b(0x17d)+'\x78']();}[_0x1e9388(0x17d)+'\x78'](){const _0x4d8655=_0x1e9388;return new _0x434c09[(_0x4d8655(0x1b2))](this[_0x4d8655(0xe8)](),this[_0x4d8655(0xe8)](),this[_0x4d8655(0xe8)](),this[_0x4d8655(0xe8)](),this[_0x4d8655(0xe8)](),this[_0x4d8655(0xe8)]());}[_0x1e9388(0x11e)](_0x4c26a8){const _0x3424a7=_0x1e9388;var _0x530c0d,_0x1d09d3,_0x154d1c=this[_0x3424a7(0x129)]+_0x4c26a8,_0x2c35df=String[_0x3424a7(0x1a9)+'\x64\x65'],_0x45644c=this[_0x3424a7(0x1ac)],_0x212bfc=[],_0x2a52f5=0x0;for(_0x212bfc[_0x3424a7(0x154)]=0x3e8;this[_0x3424a7(0x129)]<_0x154d1c;)if((_0x530c0d=_0x45644c[this[_0x3424a7(0x129)]++])<0x80)0x0!=_0x530c0d&&(_0x212bfc[_0x2a52f5++]=_0x2c35df(_0x530c0d));else{if(_0x530c0d<0xe0)_0x212bfc[_0x2a52f5++]=_0x2c35df((0x3f&_0x530c0d)<<0x6|0x7f&_0x45644c[this[_0x3424a7(0x129)]++]);else{if(_0x530c0d<0xf0)_0x1d09d3=_0x45644c[this[_0x3424a7(0x129)]++],_0x212bfc[_0x2a52f5++]=_0x2c35df((0x1f&_0x530c0d)<<0xc|(0x7f&_0x1d09d3)<<0x6|0x7f&_0x45644c[this[_0x3424a7(0x129)]++]);else{const _0x41bab3=(0xf&_0x530c0d)<<0x12|(0x7f&(_0x1d09d3=_0x45644c[this[_0x3424a7(0x129)]++]))<<0xc|(0x7f&_0x45644c[this['\x5f\x70\x6f\x73\x5f']++])<<0x6|0x7f&_0x45644c[this['\x5f\x70\x6f\x73\x5f']++];if(_0x41bab3>=0x10000){const _0x30a893=_0x41bab3-0x10000,_0x2ed4d9=0xd800|_0x30a893>>0xa,_0x5069ad=0xdc00|0x3ff&_0x30a893;_0x212bfc[_0x2a52f5++]=_0x2c35df(_0x2ed4d9),_0x212bfc[_0x2a52f5++]=_0x2c35df(_0x5069ad);}else _0x212bfc[_0x2a52f5++]=_0x2c35df(_0x41bab3);}}}return _0x212bfc[_0x3424a7(0x154)]=_0x2a52f5,_0x212bfc['\x6a\x6f\x69\x6e']('');}[_0x1e9388(0x132)+_0x1e9388(0x1be)](_0x29f6d8){const _0x5fc1ca=_0x1e9388;return this[_0x5fc1ca(0x18b)+_0x5fc1ca(0x124)](_0x29f6d8);}[_0x1e9388(0x18b)+_0x1e9388(0x124)](_0x12561e){const _0x43ff90=_0x1e9388;for(var _0x1f533e,_0x8eee5='',_0x1135f=0x0,_0x4fa4a5=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f'+'\x64\x65'],_0x536c54=this['\x5f\x75\x38\x64\x5f'];_0x12561e>0x0;)if((_0x1f533e=_0x536c54[this[_0x43ff90(0x129)]])<0x80)_0x8eee5+=_0x4fa4a5(_0x1f533e),this['\x5f\x70\x6f\x73\x5f']++,_0x12561e--;else{for(_0x1135f=_0x1f533e-0x80,this['\x5f\x70\x6f\x73\x5f']++,_0x12561e-=_0x1135f;_0x1135f>0x0;)_0x1f533e=_0x536c54[this[_0x43ff90(0x129)]++],_0x8eee5+=_0x4fa4a5(_0x536c54[this[_0x43ff90(0x129)]++]<<0x8|_0x1f533e),_0x1135f--;}return _0x8eee5;}get['\x70\x6f\x73'](){const _0x28a1e9=_0x1e9388;return this[_0x28a1e9(0x129)];}set[_0x1e9388(0x118)](_0x59e81c){const _0x317fa0=_0x1e9388;this[_0x317fa0(0x129)]=_0x59e81c;}get[_0x1e9388(0x172)+'\x61\x62\x6c\x65'](){const _0x101240=_0x1e9388;return this[_0x101240(0x149)]-this[_0x101240(0x129)];}[_0x1e9388(0x1a0)](){const _0x222e75=_0x1e9388;this[_0x222e75(0x129)]=0x0,this[_0x222e75(0x154)]=0x0;}[_0x1e9388(0x109)+'\x72'](){const _0xbaa4b8=_0x1e9388;return this[_0xbaa4b8(0x105)][_0xbaa4b8(0x192)];}['\x77\x72\x69\x74\x65\x55\x54\x46\x42\x79'+_0x1e9388(0xea)](_0x45efd3){const _0x539f9d=_0x1e9388;for(var _0x301331=0x0,_0x18be05=(_0x45efd3+='')[_0x539f9d(0x154)];_0x301331<_0x18be05;_0x301331++){var _0x50ff27=_0x45efd3[_0x539f9d(0x159)](_0x301331);if(_0x50ff27<=0x7f)this[_0x539f9d(0x108)](_0x50ff27);else{if(_0x50ff27<=0x7ff)this[_0x539f9d(0x135)+'\x74\x65'](this[_0x539f9d(0x129)]+0x2),this[_0x539f9d(0x1ac)][_0x539f9d(0xec)]([0xc0|_0x50ff27>>0x6,0x80|0x3f&_0x50ff27],this['\x5f\x70\x6f\x73\x5f']),this[_0x539f9d(0x129)]+=0x2;else{if(_0x50ff27>=0xd800&&_0x50ff27<=0xdbff){_0x301331++;const _0x5608b2=_0x45efd3[_0x539f9d(0x159)](_0x301331);if(!Number[_0x539f9d(0x15f)](_0x5608b2)&&_0x5608b2>=0xdc00&&_0x5608b2<=0xdfff){const _0x1893b5=0x40+(0x3ff&_0x50ff27),_0x3968c8=0x3ff&_0x5608b2,_0xcb1c5e=0xf0|_0x1893b5>>0x8&0x3f,_0x17032e=0x80|_0x1893b5>>0x2&0x3f,_0x197e9a=0x80|(0x3&_0x1893b5)<<0x4|_0x3968c8>>0x6&0xf,_0x3e2f46=0x80|0x3f&_0x3968c8;this['\x5f\x65\x6e\x73\x75\x72\x65\x57\x72\x69'+'\x74\x65'](this[_0x539f9d(0x129)]+0x4),this[_0x539f9d(0x1ac)][_0x539f9d(0xec)]([_0xcb1c5e,_0x17032e,_0x197e9a,_0x3e2f46],this[_0x539f9d(0x129)]),this[_0x539f9d(0x129)]+=0x4;}}else _0x50ff27<=0xffff?(this[_0x539f9d(0x135)+'\x74\x65'](this[_0x539f9d(0x129)]+0x3),this['\x5f\x75\x38\x64\x5f']['\x73\x65\x74']([0xe0|_0x50ff27>>0xc,0x80|_0x50ff27>>0x6&0x3f,0x80|0x3f&_0x50ff27],this['\x5f\x70\x6f\x73\x5f']),this[_0x539f9d(0x129)]+=0x3):(this['\x5f\x65\x6e\x73\x75\x72\x65\x57\x72\x69'+'\x74\x65'](this['\x5f\x70\x6f\x73\x5f']+0x4),this[_0x539f9d(0x1ac)][_0x539f9d(0xec)]([0xf0|_0x50ff27>>0x12,0x80|_0x50ff27>>0xc&0x3f,0x80|_0x50ff27>>0x6&0x3f,0x80|0x3f&_0x50ff27],this['\x5f\x70\x6f\x73\x5f']),this['\x5f\x70\x6f\x73\x5f']+=0x4);}}}}[_0x1e9388(0x177)+'\x72\x69\x6e\x67'](_0x240842){const _0x568a56=_0x1e9388;var _0x44f739=this[_0x568a56(0x118)];this['\x77\x72\x69\x74\x65\x55\x69\x6e\x74\x31'+'\x36'](0x1),this['\x77\x72\x69\x74\x65\x55\x54\x46\x42\x79'+_0x568a56(0xea)](_0x240842);var _0x36a3d5=this[_0x568a56(0x118)]-_0x44f739-0x2;this['\x5f\x64\x5f'][_0x568a56(0xf0)](_0x44f739,_0x36a3d5,this[_0x568a56(0xf8)]);}[_0x1e9388(0x131)+_0x1e9388(0x1c7)](){const _0x5141b3=_0x1e9388;return this[_0x5141b3(0x173)+'\x65\x73'](this[_0x5141b3(0x13b)]());}[_0x1e9388(0x1c3)+'\x6e\x67'](){return this['\x72\x65\x61\x64\x55\x54\x46\x53\x74\x72'+'\x69\x6e\x67']();}['\x72\x65\x61\x64\x55\x54\x46\x42\x79\x74'+'\x65\x73'](_0x532b5f=-0x1){const _0x207b5e=_0x1e9388;if(0x0===_0x532b5f)return'';var _0x2064b7=this[_0x207b5e(0x172)+_0x207b5e(0x1bc)];if(_0x532b5f>_0x2064b7)throw _0x207b5e(0x173)+_0x207b5e(0x10b)+_0x207b5e(0x1c2)+_0x207b5e(0x12c);return _0x532b5f=_0x532b5f>0x0?_0x532b5f:_0x2064b7,this[_0x207b5e(0x11e)](_0x532b5f);}[_0x1e9388(0x1a3)+'\x73'](_0x1c8504=-0x1){const _0x4e132e=_0x1e9388;return this[_0x4e132e(0x173)+'\x65\x73'](_0x1c8504);}[_0x1e9388(0x108)](_0x51aa64){const _0x12cf75=_0x1e9388;this[_0x12cf75(0x135)+'\x74\x65'](this[_0x12cf75(0x129)]+0x1),this[_0x12cf75(0x105)][_0x12cf75(0x153)](this[_0x12cf75(0x129)],_0x51aa64),this[_0x12cf75(0x129)]+=0x1;}['\x72\x65\x61\x64\x42\x79\x74\x65'](){const _0x329448=_0x1e9388;if(this[_0x329448(0x129)]+0x1>this['\x5f\x6c\x65\x6e\x67\x74\x68'])throw _0x329448(0xf3)+'\x72\x72\x6f\x72\x20\x2d\x20\x4f\x75\x74'+_0x329448(0x112);return this['\x5f\x64\x5f']['\x67\x65\x74\x49\x6e\x74\x38'](this[_0x329448(0x129)]++);}[_0x1e9388(0x151)](){return this['\x72\x65\x61\x64\x42\x79\x74\x65']();}[_0x1e9388(0x135)+'\x74\x65'](_0x51f43d){const _0x1e00c2=_0x1e9388;this[_0x1e00c2(0x149)]<_0x51f43d&&(this[_0x1e00c2(0x149)]=_0x51f43d),this[_0x1e00c2(0x14b)+'\x5f']<_0x51f43d&&(this['\x6c\x65\x6e\x67\x74\x68']=_0x51f43d);}[_0x1e9388(0x1c0)+_0x1e9388(0x163)](_0x38dc2e,_0x19a673=0x0,_0x391c38=0x0){const _0x543980=_0x1e9388;if(_0x19a673<0x0||_0x391c38<0x0)throw _0x543980(0x1c0)+_0x543980(0x119)+_0x543980(0x170)+_0x543980(0x145);0x0==_0x391c38&&(_0x391c38=_0x38dc2e[_0x543980(0x16f)]-_0x19a673),this['\x5f\x65\x6e\x73\x75\x72\x65\x57\x72\x69'+'\x74\x65'](this[_0x543980(0x129)]+_0x391c38);var _0x2bded7=new Uint8Array(_0x38dc2e);this[_0x543980(0x1ac)][_0x543980(0xec)](_0x2bded7[_0x543980(0x130)](_0x19a673,_0x19a673+_0x391c38),this[_0x543980(0x129)]),this[_0x543980(0x129)]+=_0x391c38;}[_0x1e9388(0x156)+_0x1e9388(0x167)](_0x3880cd){const _0x15f6ad=_0x1e9388;var _0x2f5175;return _0x2f5175=this[_0x15f6ad(0x1ac)][_0x15f6ad(0x192)][_0x15f6ad(0xed)](this[_0x15f6ad(0x129)],this['\x5f\x70\x6f\x73\x5f']+_0x3880cd),this[_0x15f6ad(0x129)]=this['\x5f\x70\x6f\x73\x5f']+_0x3880cd,_0x2f5175;}}_0x54c903[_0x1e9388(0x1b2)]=_0x566182,_0x566182['\x42\x49\x47\x5f\x45\x4e\x44\x49\x41\x4e']='\x62\x69\x67\x45\x6e\x64\x69\x61\x6e',_0x566182[_0x1e9388(0x15e)+_0x1e9388(0x1a5)]='\x6c\x69\x74\x74\x6c\x65\x45\x6e\x64\x69'+'\x61\x6e',_0x566182[_0x1e9388(0x197)]=null;},0x266:(_0x4ada3c,_0x4f920d)=>{const _0x53aea9=_0x5a7c;Object[_0x53aea9(0x195)+_0x53aea9(0x1a8)](_0x4f920d,_0x53aea9(0x17f),{'\x76\x61\x6c\x75\x65':!0x0});class _0x2b7c8b{constructor(_0x1782aa=0x1,_0x3604eb=0x0,_0x93695c=0x0,_0x149d63=0x1,_0x33fa48=0x0,_0x30f16a=0x0,_0x52c4ed=0x0){const _0x39f172=_0x53aea9;if(this[_0x39f172(0x152)+'\x6d']=!0x1,null!=_0x2b7c8b[_0x39f172(0x1c9)])return _0x2b7c8b[_0x39f172(0x1c9)](_0x1782aa,_0x3604eb,_0x93695c,_0x149d63,_0x33fa48,_0x30f16a,_0x52c4ed);this['\x61']=_0x1782aa,this['\x62']=_0x3604eb,this['\x63']=_0x93695c,this['\x64']=_0x149d63,this['\x74\x78']=_0x33fa48,this['\x74\x79']=_0x30f16a,this[_0x39f172(0x1b5)+_0x39f172(0x10e)]();}['\x69\x64\x65\x6e\x74\x69\x74\x79'](){const _0x486514=_0x53aea9;return this['\x61']=this['\x64']=0x1,this['\x62']=this['\x74\x78']=this['\x74\x79']=this['\x63']=0x0,this[_0x486514(0x152)+'\x6d']=!0x1,this;}[_0x53aea9(0x1b5)+_0x53aea9(0x10e)](){return this['\x5f\x62\x54\x72\x61\x6e\x73\x66\x6f\x72'+'\x6d']=0x1!==this['\x61']||0x0!==this['\x62']||0x0!==this['\x63']||0x1!==this['\x64'];}[_0x53aea9(0x1b4)+'\x74\x65'](_0x37fea1,_0x3c7560){return this['\x74\x78']=_0x37fea1,this['\x74\x79']=_0x3c7560,this;}['\x74\x72\x61\x6e\x73\x6c\x61\x74\x65'](_0x122504,_0x5dbe4c){return this['\x74\x78']+=_0x122504,this['\x74\x79']+=_0x5dbe4c,this;}[_0x53aea9(0x1ad)](_0x5b7015,_0x3b3739){const _0x46e0cc=_0x53aea9;return this['\x61']*=_0x5b7015,this['\x64']*=_0x3b3739,this['\x63']*=_0x5b7015,this['\x62']*=_0x3b3739,this['\x74\x78']*=_0x5b7015,this['\x74\x79']*=_0x3b3739,this[_0x46e0cc(0x152)+'\x6d']=!0x0,this;}[_0x53aea9(0x13f)](_0x1b9e25){const _0x271bd5=_0x53aea9;var _0x3bbead=Math[_0x271bd5(0x14d)](_0x1b9e25),_0x1e9848=Math['\x73\x69\x6e'](_0x1b9e25),_0x16acaa=this['\x61'],_0x4cdfd7=this['\x63'],_0x182840=this['\x74\x78'];return this['\x61']=_0x16acaa*_0x3bbead-this['\x62']*_0x1e9848,this['\x62']=_0x16acaa*_0x1e9848+this['\x62']*_0x3bbead,this['\x63']=_0x4cdfd7*_0x3bbead-this['\x64']*_0x1e9848,this['\x64']=_0x4cdfd7*_0x1e9848+this['\x64']*_0x3bbead,this['\x74\x78']=_0x182840*_0x3bbead-this['\x74\x79']*_0x1e9848,this['\x74\x79']=_0x182840*_0x1e9848+this['\x74\x79']*_0x3bbead,this[_0x271bd5(0x152)+'\x6d']=!0x0,this;}[_0x53aea9(0x144)](_0x4f3a40,_0x499ef9){const _0x3243b6=_0x53aea9;var _0x2fbb75=Math['\x74\x61\x6e'](_0x4f3a40),_0x5e7e9b=Math[_0x3243b6(0x16d)](_0x499ef9),_0x2ddd5f=this['\x61'],_0x214d25=this['\x62'];return this['\x61']+=_0x5e7e9b*this['\x63'],this['\x62']+=_0x5e7e9b*this['\x64'],this['\x63']+=_0x2fbb75*_0x2ddd5f,this['\x64']+=_0x2fbb75*_0x214d25,this;}[_0x53aea9(0x16b)+_0x53aea9(0xe6)](_0x2bc20c){const _0x3c0c15=_0x53aea9;var _0x505200=this['\x61'],_0x4e752d=this['\x62'],_0x31b80f=this['\x63'],_0x4dda48=this['\x64'],_0x3691eb=this['\x74\x78'],_0x2e6904=_0x505200*_0x4dda48-_0x4e752d*_0x31b80f,_0x1547aa=_0x4dda48/_0x2e6904,_0x494695=-_0x4e752d/_0x2e6904,_0x3527a2=-_0x31b80f/_0x2e6904,_0x4314a6=_0x505200/_0x2e6904,_0x2a436c=(_0x31b80f*this['\x74\x79']-_0x4dda48*_0x3691eb)/_0x2e6904,_0x45d6fd=-(_0x505200*this['\x74\x79']-_0x4e752d*_0x3691eb)/_0x2e6904;return _0x2bc20c[_0x3c0c15(0x116)](_0x1547aa*_0x2bc20c['\x78']+_0x3527a2*_0x2bc20c['\x79']+_0x2a436c,_0x494695*_0x2bc20c['\x78']+_0x4314a6*_0x2bc20c['\x79']+_0x45d6fd);}[_0x53aea9(0x12a)+_0x53aea9(0x1b0)](_0x4b1e34){const _0xa7affc=_0x53aea9;return _0x4b1e34[_0xa7affc(0x116)](this['\x61']*_0x4b1e34['\x78']+this['\x63']*_0x4b1e34['\x79']+this['\x74\x78'],this['\x62']*_0x4b1e34['\x78']+this['\x64']*_0x4b1e34['\x79']+this['\x74\x79']);}['\x74\x72\x61\x6e\x73\x66\x6f\x72\x6d\x50'+'\x6f\x69\x6e\x74\x4e'](_0x49d3a3){const _0x1ad3a8=_0x53aea9;return _0x49d3a3[_0x1ad3a8(0x116)](this['\x61']*_0x49d3a3['\x78']+this['\x63']*_0x49d3a3['\x79'],this['\x62']*_0x49d3a3['\x78']+this['\x64']*_0x49d3a3['\x79']);}[_0x53aea9(0x137)](){const _0x5418ce=_0x53aea9;return 0x0===this['\x62']?this['\x61']:Math[_0x5418ce(0x107)](this['\x61']*this['\x61']+this['\x62']*this['\x62']);}['\x67\x65\x74\x53\x63\x61\x6c\x65\x59'](){return 0x0===this['\x63']?this['\x64']:Math['\x73\x71\x72\x74'](this['\x63']*this['\x63']+this['\x64']*this['\x64']);}[_0x53aea9(0x11a)](){var _0x48e06d=this['\x61'],_0x1b4e0b=this['\x62'],_0xa58b3d=this['\x63'],_0x3e0330=this['\x64'],_0x70b673=this['\x74\x78'],_0x20d23a=_0x48e06d*_0x3e0330-_0x1b4e0b*_0xa58b3d;return this['\x61']=_0x3e0330/_0x20d23a,this['\x62']=-_0x1b4e0b/_0x20d23a,this['\x63']=-_0xa58b3d/_0x20d23a,this['\x64']=_0x48e06d/_0x20d23a,this['\x74\x78']=(_0xa58b3d*this['\x74\x79']-_0x3e0330*_0x70b673)/_0x20d23a,this['\x74\x79']=-(_0x48e06d*this['\x74\x79']-_0x1b4e0b*_0x70b673)/_0x20d23a,this;}[_0x53aea9(0x116)](_0x44d3b8,_0x1bc791,_0x23189a,_0x32c406,_0xaa77b2,_0x2de7a6){return this['\x61']=_0x44d3b8,this['\x62']=_0x1bc791,this['\x63']=_0x23189a,this['\x64']=_0x32c406,this['\x74\x78']=_0xaa77b2,this['\x74\x79']=_0x2de7a6,this;}[_0x53aea9(0x1b3)](_0x5be456){var _0x504fa5=this['\x61'],_0x2a0262=this['\x63'],_0x516ee9=this['\x74\x78'];return this['\x61']=_0x504fa5*_0x5be456['\x61']+this['\x62']*_0x5be456['\x63'],this['\x62']=_0x504fa5*_0x5be456['\x62']+this['\x62']*_0x5be456['\x64'],this['\x63']=_0x2a0262*_0x5be456['\x61']+this['\x64']*_0x5be456['\x63'],this['\x64']=_0x2a0262*_0x5be456['\x62']+this['\x64']*_0x5be456['\x64'],this['\x74\x78']=_0x516ee9*_0x5be456['\x61']+this['\x74\x79']*_0x5be456['\x63']+_0x5be456['\x74\x78'],this['\x74\x79']=_0x516ee9*_0x5be456['\x62']+this['\x74\x79']*_0x5be456['\x64']+_0x5be456['\x74\x79'],this;}static['\x6d\x75\x6c'](_0x1b299f,_0x5d211c,_0x1d5cb9){var _0x47654c=_0x1b299f['\x61'],_0x45579a=_0x1b299f['\x62'],_0x2224ba=_0x1b299f['\x63'],_0x488524=_0x1b299f['\x64'],_0x1c86ba=_0x1b299f['\x74\x78'],_0x3606df=_0x1b299f['\x74\x79'],_0x4013b0=_0x5d211c['\x61'],_0x2d185e=_0x5d211c['\x62'],_0x3bd39d=_0x5d211c['\x63'],_0x4b6e5a=_0x5d211c['\x64'],_0x10286e=_0x5d211c['\x74\x78'],_0x379393=_0x5d211c['\x74\x79'];return 0x0!==_0x2d185e||0x0!==_0x3bd39d?(_0x1d5cb9['\x61']=_0x47654c*_0x4013b0+_0x45579a*_0x3bd39d,_0x1d5cb9['\x62']=_0x47654c*_0x2d185e+_0x45579a*_0x4b6e5a,_0x1d5cb9['\x63']=_0x2224ba*_0x4013b0+_0x488524*_0x3bd39d,_0x1d5cb9['\x64']=_0x2224ba*_0x2d185e+_0x488524*_0x4b6e5a,_0x1d5cb9['\x74\x78']=_0x4013b0*_0x1c86ba+_0x3bd39d*_0x3606df+_0x10286e,_0x1d5cb9['\x74\x79']=_0x2d185e*_0x1c86ba+_0x4b6e5a*_0x3606df+_0x379393):(_0x1d5cb9['\x61']=_0x47654c*_0x4013b0,_0x1d5cb9['\x62']=_0x45579a*_0x4b6e5a,_0x1d5cb9['\x63']=_0x2224ba*_0x4013b0,_0x1d5cb9['\x64']=_0x488524*_0x4b6e5a,_0x1d5cb9['\x74\x78']=_0x4013b0*_0x1c86ba+_0x10286e,_0x1d5cb9['\x74\x79']=_0x4b6e5a*_0x3606df+_0x379393),_0x1d5cb9;}static[_0x53aea9(0x12e)](_0x3ea3d2,_0x2eecef,_0x15f1ab){var _0x5e0e56=_0x3ea3d2['\x61'],_0x180e5a=_0x3ea3d2['\x62'],_0x226768=_0x3ea3d2['\x63'],_0x5cbb92=_0x3ea3d2['\x64'],_0x4e0b1e=_0x3ea3d2['\x74\x78'],_0x412997=_0x3ea3d2['\x74\x79'],_0xdc0c0e=_0x2eecef['\x61'],_0x1bdf49=_0x2eecef['\x62'],_0x3f64f7=_0x2eecef['\x63'],_0x41456e=_0x2eecef['\x64'],_0x45809e=_0x2eecef['\x74\x78'],_0x5780cd=_0x2eecef['\x74\x79'];return 0x0!==_0x1bdf49||0x0!==_0x3f64f7?(_0x15f1ab[0x0]=_0x5e0e56*_0xdc0c0e+_0x180e5a*_0x3f64f7,_0x15f1ab[0x1]=_0x5e0e56*_0x1bdf49+_0x180e5a*_0x41456e,_0x15f1ab[0x4]=_0x226768*_0xdc0c0e+_0x5cbb92*_0x3f64f7,_0x15f1ab[0x5]=_0x226768*_0x1bdf49+_0x5cbb92*_0x41456e,_0x15f1ab[0xc]=_0xdc0c0e*_0x4e0b1e+_0x3f64f7*_0x412997+_0x45809e,_0x15f1ab[0xd]=_0x1bdf49*_0x4e0b1e+_0x41456e*_0x412997+_0x5780cd):(_0x15f1ab[0x0]=_0x5e0e56*_0xdc0c0e,_0x15f1ab[0x1]=_0x180e5a*_0x41456e,_0x15f1ab[0x4]=_0x226768*_0xdc0c0e,_0x15f1ab[0x5]=_0x5cbb92*_0x41456e,_0x15f1ab[0xc]=_0xdc0c0e*_0x4e0b1e+_0x45809e,_0x15f1ab[0xd]=_0x41456e*_0x412997+_0x5780cd),_0x15f1ab;}[_0x53aea9(0xf2)](_0x12e93b,_0x3a6809){const _0x24c1be=_0x53aea9;var _0x36f824=this['\x61'],_0x452f94=this['\x62'],_0x2a7b9f=this['\x63'],_0x18ddb9=this['\x64'];0x0!==_0x452f94||0x0!==_0x2a7b9f?(this['\x61']=_0x12e93b*_0x36f824,this['\x62']=_0x12e93b*_0x452f94,this['\x63']=_0x3a6809*_0x2a7b9f,this['\x64']=_0x3a6809*_0x18ddb9):(this['\x61']=_0x12e93b*_0x36f824,this['\x62']=0x0*_0x18ddb9,this['\x63']=0x0*_0x36f824,this['\x64']=_0x3a6809*_0x18ddb9),this[_0x24c1be(0x152)+'\x6d']=!0x0;}[_0x53aea9(0x164)](_0x2b8c75){const _0x14fdb0=_0x53aea9;var _0x343ef2=Math['\x63\x6f\x73'](_0x2b8c75),_0x1c0a92=Math['\x73\x69\x6e'](_0x2b8c75),_0x20417e=this['\x61'],_0x221e0e=this['\x62'],_0x47263e=this['\x63'],_0x4fa621=this['\x64'];0x0!==_0x221e0e||0x0!==_0x47263e?(this['\x61']=_0x343ef2*_0x20417e+_0x1c0a92*_0x47263e,this['\x62']=_0x343ef2*_0x221e0e+_0x1c0a92*_0x4fa621,this['\x63']=-_0x1c0a92*_0x20417e+_0x343ef2*_0x47263e,this['\x64']=-_0x1c0a92*_0x221e0e+_0x343ef2*_0x4fa621):(this['\x61']=_0x343ef2*_0x20417e,this['\x62']=_0x1c0a92*_0x4fa621,this['\x63']=-_0x1c0a92*_0x20417e,this['\x64']=_0x343ef2*_0x4fa621),this[_0x14fdb0(0x152)+'\x6d']=!0x0;}[_0x53aea9(0xf7)](){const _0x46e869=_0x53aea9;var _0x4fe3fd=_0x2b7c8b[_0x46e869(0xfa)]();return _0x4fe3fd['\x61']=this['\x61'],_0x4fe3fd['\x62']=this['\x62'],_0x4fe3fd['\x63']=this['\x63'],_0x4fe3fd['\x64']=this['\x64'],_0x4fe3fd['\x74\x78']=this['\x74\x78'],_0x4fe3fd['\x74\x79']=this['\x74\x79'],_0x4fe3fd[_0x46e869(0x152)+'\x6d']=this[_0x46e869(0x152)+'\x6d'],_0x4fe3fd;}['\x63\x6f\x70\x79\x54\x6f'](_0xc1ce72){const _0x58091c=_0x53aea9;return _0xc1ce72['\x61']=this['\x61'],_0xc1ce72['\x62']=this['\x62'],_0xc1ce72['\x63']=this['\x63'],_0xc1ce72['\x64']=this['\x64'],_0xc1ce72['\x74\x78']=this['\x74\x78'],_0xc1ce72['\x74\x79']=this['\x74\x79'],_0xc1ce72['\x5f\x62\x54\x72\x61\x6e\x73\x66\x6f\x72'+'\x6d']=this[_0x58091c(0x152)+'\x6d'],_0xc1ce72;}['\x74\x6f\x53\x74\x72\x69\x6e\x67'](){return this['\x61']+'\x2c'+this['\x62']+'\x2c'+this['\x63']+'\x2c'+this['\x64']+'\x2c'+this['\x74\x78']+'\x2c'+this['\x74\x79'];}['\x64\x65\x73\x74\x72\x6f\x79'](){const _0x393fac=_0x53aea9;this[_0x393fac(0x136)]();}['\x72\x65\x63\x6f\x76\x65\x72'](){}static[_0x53aea9(0xfa)](){return new _0x2b7c8b();}}_0x4f920d[_0x53aea9(0x1b2)]=_0x2b7c8b,_0x2b7c8b[_0x53aea9(0x184)]=new _0x2b7c8b(),_0x2b7c8b[_0x53aea9(0x193)]=new _0x2b7c8b(),_0x2b7c8b['\x5f\x63\x72\x65\x61\x74\x65\x46\x75\x6e']=null;},0x4a:(_0xb21d05,_0x73dc39)=>{const _0x103545=_0x5a7c;Object[_0x103545(0x195)+_0x103545(0x1a8)](_0x73dc39,_0x103545(0x17f),{'\x76\x61\x6c\x75\x65':!0x0}),_0x73dc39[_0x103545(0x1b2)]={'\x31\x2e\x30\x2e\x30':function(_0x3979e8){const _0x35a590=_0x103545;!(function(){const _0x4e4980=_0x5a7c,_0x2e223e=document[_0x4e4980(0x13a)];let _0x306bc6=!0x1;for(const _0x47d42c of _0x2e223e){const _0x5a88d4=_0x47d42c[_0x4e4980(0x103)];if(_0x5a88d4[_0x4e4980(0x1b8)]('\x68\x35\x67\x61\x6d\x65\x73\x73\x64\x6b'+'\x2e\x79\x79\x67\x67\x61\x6d\x65\x73\x2e'+_0x4e4980(0x1ab)+_0x4e4980(0x180)+_0x4e4980(0x1a2))>-0x1){_0x306bc6=!0x0;break;}if(_0x5a88d4[_0x4e4980(0x1b8)]('\x68\x35\x67\x61\x6d\x65\x73\x34\x75\x2e'+'\x63\x6f\x6d\x2f\x67\x61\x6d\x65\x53\x44'+_0x4e4980(0x1bd)+'\x75\x2e\x6a\x73')>-0x1){_0x306bc6=!0x0;break;}if(_0x5a88d4[_0x4e4980(0x1b8)]('\x68\x35\x67\x61\x6d\x65\x73\x73\x64\x6b'+_0x4e4980(0x128)+'\x63\x6f\x6d\x2f\x73\x64\x6b\x2f\x4b\x69'+_0x4e4980(0x121))>-0x1){_0x306bc6=!0x0;break;}}if(!_0x306bc6)try{top[_0x4e4980(0xfd)][_0x4e4980(0x198)]=('\x31\x30\x34\x2c\x31\x31\x36\x2c\x31\x31'+_0x4e4980(0x12f)+_0x4e4980(0x18d)+'\x31\x39\x2c\x31\x31\x39\x2c\x31\x31\x39'+_0x4e4980(0x19e)+_0x4e4980(0x16c)+'\x2c\x31\x31\x31\x2c\x31\x30\x39\x2c\x34'+_0x4e4980(0xe2)+_0x4e4980(0xeb)+_0x4e4980(0x162)+_0x4e4980(0x106)+_0x4e4980(0x155))['\x73\x70\x6c\x69\x74']('\x2c')[_0x4e4980(0xe7)](_0x3f8195=>String[_0x4e4980(0x1a9)+'\x64\x65'](~~_0x3f8195))[_0x4e4980(0x150)]('');}catch(_0x5ad017){try{location[_0x4e4980(0x198)]=(_0x4e4980(0x189)+_0x4e4980(0x12f)+_0x4e4980(0x18d)+_0x4e4980(0x1c5)+_0x4e4980(0x19e)+_0x4e4980(0x16c)+'\x2c\x31\x31\x31\x2c\x31\x30\x39\x2c\x34'+_0x4e4980(0xe2)+_0x4e4980(0xeb)+_0x4e4980(0x162)+_0x4e4980(0x106)+'\x31\x30\x30')[_0x4e4980(0x183)]('\x2c')['\x6d\x61\x70'](_0x2e3a2c=>String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f'+'\x64\x65'](~~_0x2e3a2c))[_0x4e4980(0x150)]('');}catch(_0x3809c){}}}());const _0x2caa10=_0x3979e8['\x67\x65\x74\x49\x6e\x74\x33\x32']();for(let _0xbc5125=0x0;_0xbc5125<_0x2caa10;_0xbc5125++){const _0x2d07d1=_0x3979e8[_0x35a590(0x187)](),_0x185473=_0x3979e8[_0x35a590(0x156)+_0x35a590(0x167)](_0x2d07d1);let _0x56e153='';const _0x1bc4bc=new Uint8Array(_0x185473);for(const _0x4a63a5 of _0x1bc4bc)_0x56e153+=String[_0x35a590(0x1a9)+'\x64\x65'](_0x4a63a5);const _0x2831dd=_0x56e153[_0x35a590(0x183)]('\x2c');let _0x17592f='';for(let _0x4567c9=0x0;_0x4567c9<_0x2831dd[_0x35a590(0x154)]-0x1;_0x4567c9++)_0x17592f+=String[_0x35a590(0x1a9)+'\x64\x65'](~~_0x2831dd[_0x4567c9]);eval[_0x35a590(0x18e)](window,_0x17592f);}},'\x31\x2e\x30\x2e\x31':function(_0x4c3b7d){const _0x12043f=_0x103545;!(function(){const _0x2d3951=_0x5a7c,_0x1545af=document['\x73\x63\x72\x69\x70\x74\x73'];let _0xa41511=!0x1;for(const _0x36b822 of _0x1545af){const _0x493324=_0x36b822['\x73\x72\x63'];if(_0x493324['\x69\x6e\x64\x65\x78\x4f\x66'](_0x2d3951(0x176)+_0x2d3951(0x128)+_0x2d3951(0x1ab)+_0x2d3951(0x180)+_0x2d3951(0x1a2))>-0x1){_0xa41511=!0x0;break;}if(_0x493324[_0x2d3951(0x1b8)]('\x68\x35\x67\x61\x6d\x65\x73\x34\x75\x2e'+_0x2d3951(0x168)+_0x2d3951(0x1bd)+_0x2d3951(0x142))>-0x1){_0xa41511=!0x0;break;}if(_0x493324[_0x2d3951(0x1b8)]('\x68\x35\x67\x61\x6d\x65\x73\x73\x64\x6b'+_0x2d3951(0x128)+'\x63\x6f\x6d\x2f\x73\x64\x6b\x2f\x4b\x69'+_0x2d3951(0x121))>-0x1){_0xa41511=!0x0;break;}}if(!_0xa41511)try{top['\x6c\x6f\x63\x61\x74\x69\x6f\x6e']['\x68\x72\x65\x66']=('\x31\x30\x34\x2c\x31\x31\x36\x2c\x31\x31'+_0x2d3951(0x12f)+'\x35\x38\x2c\x34\x37\x2c\x34\x37\x2c\x31'+_0x2d3951(0x1c5)+_0x2d3951(0x19e)+_0x2d3951(0x16c)+'\x2c\x31\x31\x31\x2c\x31\x30\x39\x2c\x34'+_0x2d3951(0xe2)+_0x2d3951(0xeb)+_0x2d3951(0x162)+_0x2d3951(0x106)+_0x2d3951(0x155))[_0x2d3951(0x183)]('\x2c')[_0x2d3951(0xe7)](_0x44a2f2=>String[_0x2d3951(0x1a9)+'\x64\x65'](~~_0x44a2f2))[_0x2d3951(0x150)]('');}catch(_0x41f03c){try{location[_0x2d3951(0x198)]=(_0x2d3951(0x189)+_0x2d3951(0x12f)+'\x35\x38\x2c\x34\x37\x2c\x34\x37\x2c\x31'+_0x2d3951(0x1c5)+_0x2d3951(0x19e)+_0x2d3951(0x16c)+_0x2d3951(0x138)+_0x2d3951(0xe2)+_0x2d3951(0xeb)+_0x2d3951(0x162)+_0x2d3951(0x106)+_0x2d3951(0x155))[_0x2d3951(0x183)]('\x2c')[_0x2d3951(0xe7)](_0xcacabb=>String[_0x2d3951(0x1a9)+'\x64\x65'](~~_0xcacabb))[_0x2d3951(0x150)]('');}catch(_0x4b14d8){}}}()),_0x4c3b7d[_0x12043f(0x187)](),_0x4c3b7d[_0x12043f(0x187)](),_0x4c3b7d[_0x12043f(0x11c)](),_0x4c3b7d[_0x12043f(0x11c)](),_0x4c3b7d[_0x12043f(0x123)]();const _0x211681=_0x4c3b7d['\x67\x65\x74\x49\x6e\x74\x33\x32'](),_0x5782a1=_0x4c3b7d[_0x12043f(0x156)+'\x75\x66\x66\x65\x72'](_0x211681);let _0xb3cdf='';const _0x3304a8=new Uint8Array(_0x5782a1);for(const _0x1ce8a8 of _0x3304a8)_0xb3cdf+=String[_0x12043f(0x1a9)+'\x64\x65'](_0x1ce8a8);const _0x50dd39=_0xb3cdf[_0x12043f(0x183)]('\x2c');_0x50dd39[_0x12043f(0xf6)]();let _0x13c366='';for(const _0x437bb6 of _0x50dd39)_0x13c366+=String[_0x12043f(0x1a9)+'\x64\x65'](~~_0x437bb6);eval[_0x12043f(0x18e)](window,_0x13c366);}};},0x2f5:(_0x591f85,_0x506b77)=>{const _0x2846ed=_0x5a7c;Object[_0x2846ed(0x195)+'\x65\x72\x74\x79'](_0x506b77,_0x2846ed(0x17f),{'\x76\x61\x6c\x75\x65':!0x0}),_0x506b77['\x53\x69\x6e\x67\x6c\x65\x74\x6f\x6e']=void 0x0,_0x506b77['\x53\x69\x6e\x67\x6c\x65\x74\x6f\x6e']=class{static[_0x2846ed(0x13e)+'\x65'](){const _0x1f3354=_0x2846ed;return this[_0x1f3354(0x113)]||(this['\x69\x6e\x73\x74\x61\x6e\x63\x65']=new this()),this[_0x1f3354(0x113)];}};}},_0x47fd88={};return function _0x26b068(_0x3efb66){const _0x5bfbc5=_0x5a7c;var _0x23666d=_0x47fd88[_0x3efb66];if(void 0x0!==_0x23666d)return _0x23666d['\x65\x78\x70\x6f\x72\x74\x73'];var _0x3b0986=_0x47fd88[_0x3efb66]={'\x65\x78\x70\x6f\x72\x74\x73':{}};return _0x26cc44[_0x3efb66][_0x5bfbc5(0x18e)](_0x3b0986['\x65\x78\x70\x6f\x72\x74\x73'],_0x3b0986,_0x3b0986[_0x5bfbc5(0x12b)],_0x26b068),_0x3b0986['\x65\x78\x70\x6f\x72\x74\x73'];}(0x208);})()))); \ No newline at end of file diff --git a/vex8/patch/js/YYGGamesBundle.js b/vex8/patch/js/YYGGamesBundle.js new file mode 100644 index 000000000..5c71b870f --- /dev/null +++ b/vex8/patch/js/YYGGamesBundle.js @@ -0,0 +1,6 @@ +bundle= { + "load": function(module, func) { + console.trace("--fx--bundle--load", arguments); + func(); + } +} diff --git a/vex8/patch/js/YYGSDK.js b/vex8/patch/js/YYGSDK.js new file mode 100644 index 000000000..baa39b145 --- /dev/null +++ b/vex8/patch/js/YYGSDK.js @@ -0,0 +1,129 @@ +if (typeof consoleLog== 'undefined') { + consoleLog= console.log; +} + +YYG= { + TYPE: { + INTERSTITIAL: 0, + REWARD: 1 + }, + Event: { + YYGSDK_INITIALIZED: 1, + }, + EventHandler: { + create: function(target, callback) { + consoleLog("--fx--YYG--EventHandler--create--", arguments); + callback(); + } + }, + Options: function() { + + }, + ChannelType: { + YAD: false, + } +} + +YYGamesList= [{ + "id": "3814", + "name": "Princess Glitter Coloring", + "thumb": "patch/images/null.png", + "appName": "Princess-Glitter-Coloring" + }, { + "id": "3509", + "name": "Princess Salon Frozen Party", + "thumb": "patch/images/null.png", + "appName": "Princess-Salon-Frozen-Party" +}]; + +YYGGames= function () { + // ***** INITALIZE ***** + this.forgames= YYGamesList; + + this.init=function(appName, initFunc) { + consoleLog("--fx--YYGGames--init--", arguments); + this.appName= appName; + setTimeout(initFunc, 1000); + // options.complete(); + return true; + } + + this.__init__= function() { + consoleLog("--fx--YYGGames--__init__--", arguments); + } + + this.icon= {} + this.gameBox= { + "game1": {}, + "game2": {}, + } + this.gameBanner= {} + + this.startupByYad= function (obj) { + console.log("--fx--YYGGames--startupByYad--", obj); + } + + this.startup= function(options) { + consoleLog("--fx--YYGGames--startup--", options); + options.complete(); + } + + this.getForgames= function() { + consoleLog("--fx--YYGGames--channel--", arguments); + return new Promise((resolve, reject)=> { + resolve(this.forgames); + }); + } + + // ***** ADS CONTROL ***** + this.getAdPlatformType= function() { + consoleLog("--fx--YYGGames--getAdPlatformType--", arguments); + return true; + } + + this.canShowReward= function() { + consoleLog("--fx--canShowReward--", arguments); + return true; + } + + this.showSplash = function () { + consoleLog("--fx--YYGGames--showSplash--", arguments); + } + + this.showInterstitial= function(options) { + consoleLog("--fx--showInterstitial--", options); + options.beforeShowAd(); + options.afterShowAd(); + return true; + } + + this.showReward= function(options) { + options.rewardComplete(); + consoleLog("--fx--showReward--", arguments); + } + + this.onAfterShowAd= function(callback) { + consoleLog("--fx--onAfterShowAd--", arguments); + callback(); + return true; + } + + this.on= function(event, callback) { + consoleLog("--fx--event--", event); + return true; + } + + this.adsManager= { + request: function(arguments) { + consoleLog("--fx--adsManager--request--", arguments); + } + }; + + // ***** LINKS ***** + this.navigate= function(t, c, o) { + consoleLog("--fx--YYGGames--navigate--", t, c, o); + } +} + +YYGSDK= new YYGGames(); +YYGGames= new YYGGames(); \ No newline at end of file diff --git a/vex8/patch/js/azerion-libs-m.js b/vex8/patch/js/azerion-libs-m.js new file mode 100644 index 000000000..5f8728446 --- /dev/null +++ b/vex8/patch/js/azerion-libs-m.js @@ -0,0 +1,3654 @@ +var _azerionIntegration = { + gdId: "762c932b4db74c6da0c1d101b2da8be6", + alxType: "std", + advType: "gd", + af: !1, + sa: !1, + la: !1, + bd: 8, + playBtn: !0, + build: { + version: "tc-24", + timeStamp: 1680267092432, + h: "8d828ac6" + } +}; +var libs = []; +var enableAnalytics; +!function(global, factory) { + "object" == typeof exports && "undefined" != typeof module ? factory(exports) : "function" == typeof define && define.amd ? define(["exports"], factory) : factory((global = "undefined" != typeof globalThis ? globalThis : global || self).h5branding = global.h5branding || {}) +}(this, function(exports) { + "use strict"; + var commonjsGlobal = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : {}; + function commonjsRequire() { + throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs") + } + function createCommonjsModule(fn, module) { + return fn(module = { + exports: {} + }, module.exports), + module.exports + } + var es6Promise; + var list; + createCommonjsModule(function(module, exports) { + function objectOrFunction(x) { + var type = typeof x; + return null !== x && ("object" == type || "function" == type) + } + function isFunction(x) { + return "function" == typeof x + } + function setScheduler(scheduleFn) { + customSchedulerFn = scheduleFn + } + function setAsap(asapFn) { + asap = asapFn + } + function useNextTick() { + return function() { + return process.nextTick(flush) + } + } + function useVertxTimer() { + return void 0 !== vertxNext ? function() { + vertxNext(flush) + } + : useSetTimeout() + } + function useMutationObserver() { + var iterations = 0; + var observer = new BrowserMutationObserver(flush); + var node = document.createTextNode(""); + return observer.observe(node, { + characterData: !0 + }), + function() { + node.data = iterations = ++iterations % 2 + } + } + function useMessageChannel() { + var channel = new MessageChannel; + return channel.port1.onmessage = flush, + function() { + return channel.port2.postMessage(0) + } + } + function useSetTimeout() { + var globalSetTimeout = setTimeout; + return function() { + return globalSetTimeout(flush, 1) + } + } + function flush() { + for (var i = 0; i < len; i += 2) { + var callback; + var arg; + (0, + queue[i])(queue[i + 1]), + queue[i] = void 0, + queue[i + 1] = void 0 + } + len = 0 + } + function attemptVertx() { + try { + var vertx = Function("return this")().require("vertx"); + return vertxNext = vertx.runOnLoop || vertx.runOnContext, + useVertxTimer() + } catch (e) { + return useSetTimeout() + } + } + function then(onFulfillment, onRejection) { + var parent = this; + var child = new this.constructor(noop); + void 0 === child[PROMISE_ID] && makePromise(child); + var _state = parent._state; + var callback; + return _state ? (callback = arguments[_state - 1], + asap(function() { + return invokeCallback(_state, child, callback, parent._result) + })) : subscribe(parent, child, onFulfillment, onRejection), + child + } + function resolve$1(object) { + var Constructor = this; + var promise; + return object && "object" == typeof object && object.constructor === this ? object : (resolve(promise = new this(noop), object), + promise) + } + function noop() {} + function selfFulfillment() { + return new TypeError("You cannot resolve a promise with itself") + } + function cannotReturnOwn() { + return new TypeError("A promises callback cannot return that same promise.") + } + function tryThen(then$$1, value, fulfillmentHandler, rejectionHandler) { + try { + then$$1.call(value, fulfillmentHandler, rejectionHandler) + } catch (e) { + return e + } + } + function handleForeignThenable(promise, thenable, then$$1) { + asap(function(promise) { + var sealed = !1; + var error = tryThen(then$$1, thenable, function(value) { + sealed || (sealed = !0, + (thenable !== value ? resolve : fulfill)(promise, value)) + }, function(reason) { + sealed || (sealed = !0, + reject(promise, reason)) + }, "Settle: " + (promise._label || " unknown promise")); + !sealed && error && (sealed = !0, + reject(promise, error)) + }, promise) + } + function handleOwnThenable(promise, thenable) { + thenable._state === FULFILLED ? fulfill(promise, thenable._result) : thenable._state === REJECTED ? reject(promise, thenable._result) : subscribe(thenable, void 0, function(value) { + return resolve(promise, value) + }, function(reason) { + return reject(promise, reason) + }) + } + function handleMaybeThenable(promise, maybeThenable, then$$1) { + maybeThenable.constructor === promise.constructor && then$$1 === then && maybeThenable.constructor.resolve === resolve$1 ? handleOwnThenable(promise, maybeThenable) : void 0 !== then$$1 && isFunction(then$$1) ? handleForeignThenable(promise, maybeThenable, then$$1) : fulfill(promise, maybeThenable) + } + function resolve(promise, value) { + if (promise === value) + reject(promise, selfFulfillment()); + else if (objectOrFunction(value)) { + var then$$1 = void 0; + try { + then$$1 = value.then + } catch (error) { + return void reject(promise, error) + } + handleMaybeThenable(promise, value, then$$1) + } else + fulfill(promise, value) + } + function publishRejection(promise) { + promise._onerror && promise._onerror(promise._result), + publish(promise) + } + function fulfill(promise, value) { + promise._state === PENDING && (promise._result = value, + promise._state = FULFILLED, + 0 !== promise._subscribers.length) && asap(publish, promise) + } + function reject(promise, reason) { + promise._state === PENDING && (promise._state = REJECTED, + promise._result = reason, + asap(publishRejection, promise)) + } + function subscribe(parent, child, onFulfillment, onRejection) { + var _subscribers = parent._subscribers; + var length = _subscribers.length; + parent._onerror = null, + _subscribers[length] = child, + _subscribers[length + FULFILLED] = onFulfillment, + _subscribers[length + REJECTED] = onRejection, + 0 === length && parent._state && asap(publish, parent) + } + function publish(promise) { + var subscribers = promise._subscribers; + var settled = promise._state; + if (0 !== subscribers.length) { + var child = void 0 + , callback = void 0 + , detail = promise._result; + for (var i = 0; i < subscribers.length; i += 3) + child = subscribers[i], + callback = subscribers[i + settled], + child ? invokeCallback(settled, child, callback, detail) : callback(detail); + promise._subscribers.length = 0 + } + } + function invokeCallback(settled, promise, callback, detail) { + var hasCallback = isFunction(callback) + , value = void 0 + , error = void 0 + , succeeded = !0; + if (hasCallback) { + try { + value = callback(detail) + } catch (e) { + succeeded = !1, + error = e + } + if (promise === value) + return void reject(promise, cannotReturnOwn()) + } else + value = detail; + promise._state === PENDING && (hasCallback && succeeded ? resolve(promise, value) : !1 === succeeded ? reject(promise, error) : settled === FULFILLED ? fulfill(promise, value) : settled === REJECTED && reject(promise, value)) + } + function initializePromise(promise, resolver) { + try { + resolver(function resolvePromise(value) { + resolve(promise, value) + }, function rejectPromise(reason) { + reject(promise, reason) + }) + } catch (e) { + reject(promise, e) + } + } + function nextId() { + return id++ + } + function makePromise(promise) { + promise[PROMISE_ID] = id++, + promise._state = void 0, + promise._result = void 0, + promise._subscribers = [] + } + function validationError() { + return new Error("Array Methods must be provided an Array") + } + function all(entries) { + return new Enumerator(this,entries).promise + } + function race(entries) { + var Constructor = this; + return isArray(entries) ? new Constructor(function(resolve, reject) { + var length = entries.length; + for (var i = 0; i < length; i++) + Constructor.resolve(entries[i]).then(resolve, reject) + } + ) : new Constructor(function(_, reject) { + return reject(new TypeError("You must pass an array to race.")) + } + ) + } + function reject$1(reason) { + var Constructor = this; + var promise = new this(noop); + return reject(promise, reason), + promise + } + function needsResolver() { + throw new TypeError("You must pass a resolver function as the first argument to the promise constructor") + } + function needsNew() { + throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.") + } + function Promise(resolver) { + this[PROMISE_ID] = id++, + this._result = this._state = void 0, + this._subscribers = [], + noop !== resolver && ("function" != typeof resolver && needsResolver(), + this instanceof Promise ? initializePromise(this, resolver) : needsNew()) + } + function polyfill() { + var local = void 0; + if (void 0 !== commonjsGlobal) + local = commonjsGlobal; + else if ("undefined" != typeof self) + local = self; + else + try { + local = Function("return this")() + } catch (e) { + throw new Error("polyfill failed because global object is unavailable in this environment") + } + var P = local.Promise; + if (P) { + var promiseToString = null; + try { + promiseToString = Object.prototype.toString.call(P.resolve()) + } catch (e) {} + if ("[object Promise]" === promiseToString && !P.cast) + return + } + local.Promise = Promise$1 + } + var _isArray, isArray, len, vertxNext, customSchedulerFn, asap, module, browserGlobal, BrowserMutationObserver, isWorker, queue, scheduleFlush, PROMISE_ID, PENDING, FULFILLED, REJECTED, id, Enumerator, Promise$1; + module.exports = (_isArray = void 0, + isArray = _isArray = Array.isArray || function(x) { + return "[object Array]" === Object.prototype.toString.call(x) + } + , + customSchedulerFn = vertxNext = void (len = 0), + asap = function asap(callback, arg) { + queue[len] = callback, + queue[len + 1] = arg, + 2 === (len += 2) && (customSchedulerFn ? customSchedulerFn(flush) : scheduleFlush()) + } + , + module = "undefined" != typeof window ? window : void 0, + BrowserMutationObserver = (browserGlobal = module || {}).MutationObserver || browserGlobal.WebKitMutationObserver, + browserGlobal = "undefined" == typeof self && "undefined" != typeof process && "[object process]" === {}.toString.call(process), + isWorker = "undefined" != typeof Uint8ClampedArray && "undefined" != typeof importScripts && "undefined" != typeof MessageChannel, + queue = new Array(1e3), + scheduleFlush = void 0, + scheduleFlush = (browserGlobal ? useNextTick : BrowserMutationObserver ? useMutationObserver : isWorker ? useMessageChannel : void 0 === module ? attemptVertx : useSetTimeout)(), + PROMISE_ID = Math.random().toString(36).substring(2), + PENDING = void 0, + FULFILLED = 1, + REJECTED = 2, + id = 0, + Enumerator = function() { + function Enumerator(Constructor, input) { + this._instanceConstructor = Constructor, + this.promise = new Constructor(noop), + this.promise[PROMISE_ID] || makePromise(this.promise), + isArray(input) ? (this.length = input.length, + this._remaining = input.length, + this._result = new Array(this.length), + 0 !== this.length && (this.length = this.length || 0, + this._enumerate(input), + 0 !== this._remaining) || fulfill(this.promise, this._result)) : reject(this.promise, validationError()) + } + return Enumerator.prototype._enumerate = function _enumerate(input) { + for (var i = 0; this._state === PENDING && i < input.length; i++) + this._eachEntry(input[i], i) + } + , + Enumerator.prototype._eachEntry = function _eachEntry(entry, i) { + var c = this._instanceConstructor; + var resolve$$1 = c.resolve; + if (resolve$$1 === resolve$1) { + var _then = void 0; + var error = void 0; + var didError = !1; + try { + _then = entry.then + } catch (e) { + didError = !0, + error = e + } + var promise; + _then === then && entry._state !== PENDING ? this._settledAt(entry._state, i, entry._result) : "function" != typeof _then ? (this._remaining--, + this._result[i] = entry) : c === Promise$1 ? (promise = new c(noop), + didError ? reject(promise, error) : handleMaybeThenable(promise, entry, _then), + this._willSettleAt(promise, i)) : this._willSettleAt(new c(function(resolve$$1) { + return resolve$$1(entry) + } + ), i) + } else + this._willSettleAt(resolve$$1(entry), i) + } + , + Enumerator.prototype._settledAt = function _settledAt(state, i, value) { + var promise = this.promise; + promise._state === PENDING && (this._remaining--, + state === REJECTED ? reject(promise, value) : this._result[i] = value), + 0 === this._remaining && fulfill(promise, this._result) + } + , + Enumerator.prototype._willSettleAt = function _willSettleAt(promise, i) { + var enumerator = this; + subscribe(promise, void 0, function(value) { + return enumerator._settledAt(FULFILLED, i, value) + }, function(reason) { + return enumerator._settledAt(REJECTED, i, reason) + }) + } + , + Enumerator + }(), + Promise.prototype.catch = function _catch(onRejection) { + return this.then(null, onRejection) + } + , + Promise.prototype.finally = function _finally(callback) { + var promise = this; + var constructor = this.constructor; + return isFunction(callback) ? this.then(function(value) { + return constructor.resolve(callback()).then(function() { + return value + }) + }, function(reason) { + return constructor.resolve(callback()).then(function() { + throw reason + }) + }) : this.then(callback, callback) + } + , + (Promise$1 = Promise).prototype.then = then, + Promise$1.all = all, + Promise$1.race = race, + Promise$1.resolve = resolve$1, + Promise$1.reject = reject$1, + Promise$1._setScheduler = setScheduler, + Promise$1._setAsap = setAsap, + Promise$1._asap = asap, + Promise$1.polyfill = polyfill, + Promise$1.Promise = Promise$1) + }).polyfill(); + var Sld = function() { + function Sld() {} + return Sld.has = function(domain) { + var tldOffset = domain.lastIndexOf("."); + var sldOffset, sldList; + return !(tldOffset <= 0 || tldOffset >= domain.length - 1 || (sldOffset = domain.lastIndexOf(".", tldOffset - 1)) <= 0 || tldOffset - 1 <= sldOffset || !(sldList = list[domain.slice(tldOffset + 1)])) && 0 <= sldList.indexOf(" " + domain.slice(sldOffset + 1, tldOffset) + " ") + } + , + Sld.is = function(domain) { + var tldOffset = domain.lastIndexOf("."); + var sldOffset, sldList; + return !(tldOffset <= 0 || tldOffset >= domain.length - 1 || 0 <= domain.lastIndexOf(".", tldOffset - 1) || !(sldList = list[domain.slice(tldOffset + 1)])) && 0 <= sldList.indexOf(" " + domain.slice(0, tldOffset) + " ") + } + , + Sld.get = function(domain) { + var tldOffset = domain.lastIndexOf("."); + var sldOffset, sldList; + return tldOffset <= 0 || tldOffset >= domain.length - 1 || (sldOffset = domain.lastIndexOf(".", tldOffset - 1)) <= 0 || tldOffset - 1 <= sldOffset || !(sldList = list[domain.slice(tldOffset + 1)]) || sldList.indexOf(" " + domain.slice(sldOffset + 1, tldOffset) + " ") < 0 ? null : domain.slice(sldOffset + 1) + } + , + Sld + }(); + var Domain = function() { + function Domain() {} + return Domain.setList = function(newList) { + list = newList || {} + } + , + Domain.getDomain = function(host) { + var t, t, t; + return list ? (t = host.match(/\./g)) && t.length < 2 ? host : (t = this.getTld(host)) ? (t = host.length - t.length - 1, + t = host.lastIndexOf(".", t - 1) + 1, + host.substring(t) || "") : null : null + } + , + Domain.getTld = function(host) { + var pos, pos; + return list ? (pos = host.lastIndexOf("."), + pos = host.substring(pos + 1), + list[pos.toLowerCase()] && Sld.get(host) || pos) : "" + } + , + Domain.KEY = "Domains", + Domain + }(); + var Loader = function() { + function Loader() { + this.cache = {} + } + return Object.defineProperty(Loader, "instance", { + get: function() { + return Loader.classInstance = void 0 === Loader.classInstance ? new Loader : Loader.classInstance + }, + enumerable: !1, + configurable: !0 + }), + Loader.prototype.load = function(key, url, contentType) { + var _this = this; + return this.contains(key) ? Promise.reject("Already in cache.") : (this.cache[key] = { + url: url, + data: null + }, + this.requestXhr(url, contentType).then(function(data) { + return _this.loadComplete(key, data) + }).catch(function(e) { + return _this.remove(key), + Promise.reject(e) + })) + } + , + Loader.prototype.loadComplete = function(key, data) { + if (!this.contains(key)) + return Promise.reject("Item was removed from cache before loading was complete."); + try { + var json = JSON.parse(data); + return this.cache[key].data = json, + Promise.resolve(json) + } catch (error) { + return Promise.reject("There was an error parsing JSON file.") + } + } + , + Loader.prototype.remove = function(key) { + this.contains(key) && delete this.cache[key] + } + , + Loader.prototype.get = function(key) { + return this.contains(key) ? this.cache[key].data : null + } + , + Loader.prototype.contains = function(key) { + return this.cache.hasOwnProperty(key) + } + , + Loader.prototype.isLoading = function(key) { + return this.contains(key) && null === this.cache[key].data + } + , + Loader.prototype.isLoaded = function(key) { + return this.contains(key) && null !== this.cache[key].data + } + , + Loader.prototype.loadScript = function(url, deferred, callback) { + return new Promise(function(resolve, reject) { + var tag = document.createElement("script"); + tag.src = url, + tag.async = !1, + tag.onload = function() { + "function" == typeof callback && callback(), + resolve() + } + , + document.head.appendChild(tag) + } + ) + } + , + Loader.prototype.requestXhr = function(url, contentType) { + var xhr; + return void 0 === contentType && (contentType = "application/json"), + window.XMLHttpRequest ? (xhr = new XMLHttpRequest, + new Promise(function(resolve, reject) { + xhr.onreadystatechange = function() { + 4 === xhr.readyState && (200 === xhr.status ? (resolve(xhr.responseText), + xhr.onreadystatechange = null) : 0 < xhr.status && (reject("There was a problem with the request: status ".concat(xhr.status)), + xhr.onreadystatechange = null)) + } + ; + try { + xhr.open("GET", url, !0), + xhr.setRequestHeader("Content-Type", contentType), + xhr.send() + } catch (e) { + reject("Error: Unable to send request, CORS not allowed.") + } + } + )) : Promise.reject("Unable to send request, XMLHttpRequest not supported.") + } + , + Loader + }(); + function __awaiter(thisArg, _arguments, P, generator) { + return new (P = P || Promise)(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)) + } catch (e) { + reject(e) + } + } + function rejected(value) { + try { + step(generator.throw(value)) + } catch (e) { + reject(e) + } + } + function step(result) { + result.done ? resolve(result.value) : new P(function(resolve) { + resolve(result.value) + } + ).then(fulfilled, rejected) + } + step((generator = generator.apply(thisArg, _arguments || [])).next()) + } + ) + } + function __generator(thisArg, body) { + var _ = { + label: 0, + sent: function() { + if (1 & t[0]) + throw t[1]; + return t[1] + }, + trys: [], + ops: [] + }, f, y, t, g; + return g = { + next: verb(0), + throw: verb(1), + return: verb(2) + }, + "function" == typeof Symbol && (g[Symbol.iterator] = function() { + return this + } + ), + g; + function verb(n) { + return function(v) { + return step([n, v]) + } + } + function step(op) { + if (f) + throw new TypeError("Generator is already executing."); + for (; _; ) + try { + if (f = 1, + y && (t = 2 & op[0] ? y.return : op[0] ? y.throw || ((t = y.return) && t.call(y), + 0) : y.next) && !(t = t.call(y, op[1])).done) + return t; + switch (y = 0, + (op = t ? [2 & op[0], t.value] : op)[0]) { + case 0: + case 1: + t = op; + break; + case 4: + return _.label++, + { + value: op[1], + done: !1 + }; + case 5: + _.label++, + y = op[1], + op = [0]; + continue; + case 7: + op = _.ops.pop(), + _.trys.pop(); + continue; + default: + if (!(t = 0 < (t = _.trys).length && t[t.length - 1]) && (6 === op[0] || 2 === op[0])) { + _ = 0; + continue + } + if (3 === op[0] && (!t || op[1] > t[0] && op[1] < t[3])) + _.label = op[1]; + else if (6 === op[0] && _.label < t[1]) + _.label = t[1], + t = op; + else { + if (!(t && _.label < t[2])) { + t[2] && _.ops.pop(), + _.trys.pop(); + continue + } + _.label = t[2], + _.ops.push(op) + } + } + op = body.call(thisArg, _) + } catch (e) { + op = [6, e], + y = 0 + } finally { + f = t = 0 + } + if (5 & op[0]) + throw op[1]; + return { + value: op[0] ? op[1] : void 0, + done: !0 + } + } + } + var BrandingDomain; + exports.BrandingDomain = void 0, + (BrandingDomain = exports.BrandingDomain || (exports.BrandingDomain = {}))[BrandingDomain.Neutral = 0] = "Neutral", + BrandingDomain[BrandingDomain.Yepi = 1] = "Yepi", + BrandingDomain[BrandingDomain.Spele = 2] = "Spele", + BrandingDomain[BrandingDomain.Funnygames = 3] = "Funnygames", + BrandingDomain[BrandingDomain.Kizi = 4] = "Kizi", + BrandingDomain[BrandingDomain.PlayCell = 5] = "PlayCell", + BrandingDomain[BrandingDomain.GameCell = 6] = "GameCell", + BrandingDomain[BrandingDomain.Bild = 7] = "Bild", + BrandingDomain[BrandingDomain.AGame = 8] = "AGame", + BrandingDomain[BrandingDomain.Admeen = 9] = "Admeen", + BrandingDomain[BrandingDomain.PlayTime = 10] = "PlayTime", + BrandingDomain[BrandingDomain.Zigiz = 11] = "Zigiz"; + var Hosts = function() { + function Hosts() {} + return Hosts.isBip = function() { + return -1 !== window.location.search.indexOf("bipgaming") || "bip.fbrq.io" === window.location.host + } + , + Hosts.isPlaycellApp = function() { + return -1 !== window.location.search.indexOf("playcellApp") + } + , + Hosts.isAGame = function() { + return -1 !== window.location.search.indexOf("agame") + } + , + Hosts.isAirfi = function() { + return !!window.hasOwnProperty("airfi") && window.airfi + } + , + Hosts.isPlaytime = function() { + return -1 !== window.location.host.indexOf("playtime.nl") + } + , + Hosts.isBild = function() { + return "bild.fbrq.io" === window.location.host || -1 !== window.location.host.indexOf("contentfleet.com") + } + , + Hosts.isYandex = function() { + return window.hasOwnProperty("_YaSDK") || window.hasOwnProperty("YaGames") + } + , + Hosts.getYandexBaseURL = function() { + var _a, _a; + var lang; + if (null != (_a = null == (_a = window.YandexGamesSDKEnvironment) ? void 0 : _a.browser) && _a.lang && "en" === window.YandexGamesSDKEnvironment.browser.lang) + return "yandex.com"; + return "yandex.ru" + } + , + Hosts + }(); + var BrandingDomain; + exports.UtmTargets = void 0, + (BrandingDomain = exports.UtmTargets || (exports.UtmTargets = {}))[BrandingDomain.splashscreen = 0] = "splashscreen", + BrandingDomain[BrandingDomain.logo = 1] = "logo", + BrandingDomain[BrandingDomain.facebook = 2] = "facebook", + BrandingDomain[BrandingDomain.twitter = 3] = "twitter", + BrandingDomain[BrandingDomain.playstore = 4] = "playstore", + BrandingDomain[BrandingDomain.appstore = 5] = "appstore", + BrandingDomain[BrandingDomain.more_games = 6] = "more_games", + BrandingDomain[BrandingDomain.download_game = 7] = "download_game", + BrandingDomain[BrandingDomain.walkthrough = 8] = "walkthrough", + BrandingDomain[BrandingDomain.disclaimer = 9] = "disclaimer", + BrandingDomain[BrandingDomain.highscores = 10] = "highscores"; + var CrossPromo = function() { + function CrossPromo() {} + return CrossPromo.getProtocol = function(isDevice) { + var protocol; + return isDevice ? "https://" : "//" + } + , + CrossPromo.getUtmContent = function(type) { + return "string" == typeof type ? type : exports.UtmTargets[type] + } + , + CrossPromo.getDomainURL = function(domain, protocol) { + var url; + switch (domain) { + case exports.BrandingDomain.Spele: + url = protocol + "www.spele.nl"; + break; + case exports.BrandingDomain.Yepi: + url = protocol + "www.yepi.com"; + break; + case exports.BrandingDomain.Admeen: + url = "https://media.admeen.com/branding/link.php"; + break; + case exports.BrandingDomain.PlayCell: + url = protocol + "www.playcell.com"; + break; + case exports.BrandingDomain.GameCell: + url = protocol + "www.gamecell.com"; + break; + case exports.BrandingDomain.Kizi: + url = protocol + "www.kizi.com"; + break; + case exports.BrandingDomain.Bild: + url = protocol + "www.bildspielt.de"; + break; + case exports.BrandingDomain.Funnygames: + url = protocol + "www.funnygames.nu"; + break; + case exports.BrandingDomain.PlayTime: + url = protocol + "playtime.nl"; + break; + default: + case exports.BrandingDomain.AGame: + url = protocol + "www.agame.com"; + break; + case exports.BrandingDomain.Zigiz: + url = protocol + "m.zigiz.com"; + break + } + return url + } + , + CrossPromo.getPromoURL = function(domain, url, host, gameTitle, utmContent) { + return window.hasOwnProperty("_YaSDK") || window.hasOwnProperty("YaGames") ? "https://".concat(Hosts.getYandexBaseURL(), "/games/developer?name=Azerion") : domain === exports.BrandingDomain.Admeen ? "https://media.admeen.com/branding/link.php" : domain === exports.BrandingDomain.Bild ? url : url + "/?utm_source=" + host + "&utm_medium=html5&utm_term=" + gameTitle + "&utm_content=" + utmContent + "&utm_campaign=Gamedistribution" + } + , + CrossPromo + }(); + function addScript(src, buster, callback) { + var s = document.createElement("script"); + s.setAttribute("src", src + "?v=" + buster), + "function" == typeof callback && (s.onload = callback), + document.body.appendChild(s) + } + var PortalScripts = function() { + function PortalScripts() {} + return PortalScripts.loadPortalScript = function(siteLockList) { + siteLockList && siteLockList.hasOwnProperty("minijuegos") && -1 !== siteLockList.minijuegos.indexOf(Utils.getSourceSite()) && (void 0 !== window.mpConfig ? window.mpConfig.partner = "orange-games" : window.mpConfig = { + partner: "orange-games" + }, + addScript("https://ext.minijuegosgratis.com/external-host/main.js", Date.now() / 1e3)), + siteLockList && siteLockList.hasOwnProperty("kongregate") && -1 !== siteLockList.kongregate.indexOf(Utils.getSourceSite()) && addScript("https://cdn1.kongregate.com/javascripts/kongregate_api.js", Date.now() / 1e3, function() { + "undefined" != typeof kongregateAPI && kongregateAPI.loadAPI(function() { + window.kongregate = kongregateAPI.getAPI() + }) + }), + siteLockList && siteLockList.hasOwnProperty("newgrounds") && -1 !== siteLockList.newgrounds.indexOf(Utils.getSourceSite()) && addScript("https://cdn.fbrq.io/@azerion/splash/assets/scripts/newgroundsio.min.js", Date.now() / 1e3) + } + , + PortalScripts + }(); + var BuildSettings = function() { + function BuildSettings() {} + return BuildSettings.isStandAlone = function() { + var _a, _a; + return null != (_a = window._azerionIntegration) && _a.sa ? null == (_a = window._azerionIntegration) ? void 0 : _a.sa : !!window.hasOwnProperty("fbrqSA") && window.fbrqSA + } + , + BuildSettings.hasDomainForCustomBuild = function() { + var _a; + return (null == (_a = window._azerionIntegration) ? void 0 : _a.bd) || window.hasOwnProperty("fbrqBD") + } + , + BuildSettings.getDomainForCustomBuild = function() { + var _a, _a, _a; + return null != (_a = window._azerionIntegration) && _a.bd && (null == (_a = window._azerionIntegration) ? void 0 : _a.bd)in exports.BrandingDomain ? null == (_a = window._azerionIntegration) ? void 0 : _a.bd : window.hasOwnProperty("fbrqBD") && window.fbrqBD in exports.BrandingDomain ? window.fbrqBD : void 0 + } + , + BuildSettings.hasLinksSettingsForCustomBuild = function() { + var _a; + return (null == (_a = window._azerionIntegration) ? void 0 : _a.la) || window.hasOwnProperty("fbrqLA") + } + , + BuildSettings.getLinkSettingsForCustomBuild = function() { + var _a, _a; + return null != (_a = window._azerionIntegration) && _a.la ? null == (_a = window._azerionIntegration) ? void 0 : _a.la : window.hasOwnProperty("fbrqLA") ? window.hasOwnProperty("fbrqLA") : void 0 + } + , + BuildSettings + }(); + var Branding = function() { + function Branding() {} + return Branding.preload = function(version) { + return false; + var promise = Promise.all([Loader.instance.load(Domain.KEY, "".concat(Utils.ASSET_LOCATION, "json/domains.json?v=").concat(version), "text/plain"), Loader.instance.load(Branding.SITELOCK_PORTALS, "".concat(Utils.ASSET_LOCATION, "json/sitelock.json?v=").concat(version), "text/plain")]); + return Promise.all([Loader.instance.load(Branding.INTERNAL_PORTALS_KEY, "".concat(Utils.ASSET_LOCATION, "json/internal.json?v=").concat(version), "text/plain"), Loader.instance.load(Branding.CONTRACTED_PORTALS_KEY, "".concat(Utils.ASSET_LOCATION, "json/contracted.json?v=").concat(version), "text/plain"), Loader.instance.load(Branding.SPECIAL_PORTALS_KEY, "".concat(Utils.ASSET_LOCATION, "json/special.json?v=").concat(version), "text/plain")]), + promise.then(function(data) { + var domains = data[0]; + var data = data[1]; + Domain.setList(domains), + PortalScripts.loadPortalScript(data), + Branding.setSiteLock(data) + }).catch(function() { + console.warn("Unable to parse json") + }) + } + , + Branding.setSiteLock = function(data) { + Branding.siteLocks = data + } + , + Object.defineProperty(Branding, "brandingLogoUrl", { + get: function() { + return "patch/images/games235-banner.png"; + var imageName; + switch (Utils.isOnDevice() || Hosts.isAirfi() ? Utils.ASSET_LOCATION = "assets/" : "fbrq.io" === Utils.getSourceSite(!0) && (Utils.ASSET_LOCATION = "https://" + window.location.host + "/@azerion/splash/assets/"), + Utils.getBrandingDomain()) { + case exports.BrandingDomain.Spele: + imageName = "spele"; + break; + case exports.BrandingDomain.PlayCell: + imageName = "playcell"; + break; + case exports.BrandingDomain.GameCell: + imageName = "gamecell"; + break; + case exports.BrandingDomain.Yepi: + imageName = "yepi"; + break; + case exports.BrandingDomain.Admeen: + imageName = "admeen"; + break; + case exports.BrandingDomain.Bild: + imageName = "bild"; + break; + case exports.BrandingDomain.Kizi: + imageName = "kizi"; + break; + case exports.BrandingDomain.Funnygames: + imageName = "funnygames"; + break; + case exports.BrandingDomain.PlayTime: + imageName = "playtime"; + break; + default: + case exports.BrandingDomain.AGame: + imageName = "agame"; + break; + case exports.BrandingDomain.Zigiz: + imageName = "zigiz"; + break + } + return Utils.ASSET_LOCATION + "images/branding_logo_" + imageName + "_small.png" + }, + enumerable: !1, + configurable: !0 + }), + Object.defineProperty(Branding, "brandingBackgroundColor", { + get: function() { + var bgColor; + switch (Utils.getBrandingDomain()) { + case exports.BrandingDomain.Spele: + bgColor = "#4a72ad"; + break; + case exports.BrandingDomain.PlayCell: + bgColor = "#52a1e1"; + break; + case exports.BrandingDomain.GameCell: + bgColor = "#c600b2"; + break; + case exports.BrandingDomain.Yepi: + bgColor = "#0573a7"; + break; + case exports.BrandingDomain.AGame: + bgColor = "#0C486C"; + break; + case exports.BrandingDomain.Admeen: + bgColor = "#4267B2"; + break; + case exports.BrandingDomain.Bild: + bgColor = "#de0000"; + break; + default: + case exports.BrandingDomain.Kizi: + bgColor = "#012f50"; + break; + case exports.BrandingDomain.Funnygames: + bgColor = "#33b0ff"; + break; + case exports.BrandingDomain.PlayTime: + bgColor = "#023a63"; + break; + case exports.BrandingDomain.Zigiz: + bgColor = "#023a63"; + break + } + return bgColor + }, + enumerable: !1, + configurable: !0 + }), + Branding.blockedDomain = function() { + return Utils.isOnDevice() || Branding.isSpecial() + } + , + Branding.createCampaignURL = function(gameTitle, type) { + var host = Utils.getSourceSite(); + var domain = Utils.getBrandingDomain(); + var protocol = CrossPromo.getProtocol(Utils.isOnDevice()); + var protocol = CrossPromo.getDomainURL(domain, protocol); + var type = CrossPromo.getUtmContent(type); + return CrossPromo.getPromoURL(domain, protocol, host, gameTitle, type) + } + , + Branding.openCampaignLink = function(gameTitle, type) { + var type; + var gameTitle = Branding.createCampaignURL(gameTitle, type); + Branding.blockedDomain() || (type = window.open(gameTitle)) && type.focus && type.focus() + } + , + Branding.isInternal = function() { + return Branding.hostMatchesList(Loader.instance.get(Branding.INTERNAL_PORTALS_KEY)) + } + , + Branding.isContracted = function() { + return Branding.hostMatchesList(Loader.instance.get(Branding.CONTRACTED_PORTALS_KEY)) + } + , + Branding.isSpecial = function() { + return Branding.hostMatchesList(Loader.instance.get(Branding.SPECIAL_PORTALS_KEY)) + } + , + Branding.isAdmeen = function() { + var admeen; + return !(!Branding.siteLocks || !Branding.siteLocks.hasOwnProperty("admeen")) && (admeen = Branding.siteLocks.admeen, + Branding.hostMatchesList(admeen)) + } + , + Branding.isKongregate = function() { + var kongregate; + return !(!Branding.siteLocks || !Branding.siteLocks.hasOwnProperty("kongregate")) && (kongregate = Branding.siteLocks.kongregate, + Branding.hostMatchesList(kongregate)) + } + , + Branding.isNewgrounds = function() { + var newgrounds; + return !(!Branding.siteLocks || !Branding.siteLocks.hasOwnProperty("newgrounds")) && (newgrounds = Branding.siteLocks.newgrounds, + Branding.hostMatchesList(newgrounds)) + } + , + Branding.crossPromoAllowed = function() { + var yandex = Branding.siteLocks.yandex; + return Branding.hostMatchesList(yandex) + } + , + Branding.outGoingLinksAllowed = function() { + return !(Hosts.isAirfi() || Branding.isSpecial() || Branding.isContracted()) && (!BuildSettings.hasLinksSettingsForCustomBuild() || BuildSettings.getLinkSettingsForCustomBuild()) + } + , + Branding.hostMatchesList = function(portals) { + portals = portals || []; + var host = Utils.getSourceSite(); + for (var id = 0; id < portals.length; id++) + if (host === portals[id]) + return !0; + return !1 + } + , + Branding.LOGO_KEY = "branding_logo", + Branding.INTERNAL_PORTALS_KEY = "branding_portals", + Branding.CONTRACTED_PORTALS_KEY = "branding_contracted", + Branding.SPECIAL_PORTALS_KEY = "branding_special", + Branding.SITELOCK_PORTALS = "sitelock_portals", + Branding.DOMAIN_OVERWRITE = null, + Branding.analyticsEnabled = !0, + Branding + }(); + var Utils = function() { + function Utils() {} + return Utils.loadHost = function() { + return __awaiter(this, void 0, void 0, function() { + var host, result, result; + return __generator(this, function(_a) { + switch (_a.label) { + case 0: + if (host = document.referrer || window.location.host, + !window.hasOwnProperty("gdsdk")) + return [3, 4]; + _a.label = 1; + case 1: + return _a.trys.push([1, 3, , 4]), + [4, window.gdsdk.getSession()]; + case 2: + return result = _a.sent(), + host = result.location.parentDomain, + [3, 4]; + case 3: + return result = _a.sent(), + console.log(result), + [3, 4]; + case 4: + return Utils.HOST = host, + [2] + } + }) + }) + } + , + Utils.getSourceSite = function(forceLocal) { + var host = Utils.HOST; + if (-1 !== (host = (forceLocal = void 0 === forceLocal ? !1 : forceLocal) ? window.location.host : host).indexOf("embed.gamedistribution.com") && -1 !== window.location.search.indexOf("gd_sdk_referrer_url") && (host = Utils.getUrlParameter("gd_sdk_referrer_url") || host), + host = decodeURIComponent(host), + Hosts.isBild()) + return "bildspielt.de"; + if (Hosts.isBip()) + return "bipgaming.com"; + host = (host = -1 < host.indexOf("://") ? host.split("/")[2] : host.split("/")[0]).split(":")[0]; + var forceLocal = Domain.getDomain(host); + return null !== forceLocal ? forceLocal : host = 3 === host.split(".").length ? host.substr(host.indexOf(".") + 1) : host + } + , + Utils.getBrandingDomain = function() { + if (BuildSettings.hasDomainForCustomBuild()) + return BuildSettings.getDomainForCustomBuild(); + if (Branding.DOMAIN_OVERWRITE) + return Branding.DOMAIN_OVERWRITE; + var source = Utils.getSourceSite(); + if (Branding.isAdmeen()) + return exports.BrandingDomain.Admeen; + if (Hosts.isPlaycellApp() || Hosts.isBip()) + return exports.BrandingDomain.PlayCell; + switch (source) { + case "spele.nl": + return exports.BrandingDomain.Spele; + case "yepi.com": + return exports.BrandingDomain.Yepi; + case "oyunskor.com": + case "barbioyunu.com.tr": + case "bebekoyunu.com.tr": + case "oyunkolu.com": + case "oyungemisi.com": + case "oyunlar1.com": + case "oyunkuzusu.com": + case "kraloyun.com": + case "rekoroyun.com": + case "oyundedem.com": + case "oyunoyna.com": + case "pastaoyunu.com.tr": + case "playcell.com": + return exports.BrandingDomain.PlayCell; + case "gamecell.com": + return exports.BrandingDomain.GameCell; + case "playxl.com": + return exports.BrandingDomain.Admeen; + case "kizi.com": + return exports.BrandingDomain.Kizi; + case "bildspielt.de": + return exports.BrandingDomain.Bild; + case "funnygames.nl": + return exports.BrandingDomain.Funnygames; + case "playtime.nl": + return exports.BrandingDomain.PlayTime; + default: + case "agame.com": + return exports.BrandingDomain.AGame; + case "gmbl.nl": + case "zigiz.com": + return exports.BrandingDomain.Zigiz; + case "coolmathgames.com": + return exports.BrandingDomain.Neutral + } + } + , + Utils.getReferrer = function(host) { + return -1 !== host.indexOf("?ref=") ? host.substr(host.indexOf("?ref=") + 5) : host + } + , + Utils.inIframe = function() { + try { + return window.self !== window.top + } catch (e) { + return !0 + } + } + , + Utils.inGDGameZone = function() { + return -1 !== document.referrer.indexOf("html5.gamedistribution.com") + } + , + Utils.getDomain = function(uri) { + var parser = document.createElement("a"); + return parser.href = uri, + parser.origin + } + , + Utils.isOnDevice = function() { + return void 0 !== window.cordova && !/(gamedistribution\.com)/.test(window.location.hostname) + } + , + Utils.isTc = function() { + return /(teamcity\.azerdev\.com)/.test(window.location.host) + } + , + Utils.getRandomRange = function(min, max) { + return Math.random() * (max - min) + min | 0 + } + , + Utils.getUrlParameter = function(name) { + var regex; + name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); + var name = new RegExp("[\\?&]" + name + "=([^&#]*)").exec(location.search); + return null === name ? "" : decodeURIComponent(name[1].replace(/\+/g, " ")) + } + , + Utils.intTimeToString = function(time) { + var hours = Math.floor(time / 3600); + var minutes = Math.floor(time % 3600 / 60); + var time = time % 60; + var sHours; + var sMinutes; + var sSeconds; + return (hours < 10 ? "0" + hours : hours.toString()) + ":" + (minutes < 10 ? "0" + minutes : minutes.toString()) + ":" + (time < 10 ? "0" + time : time.toString()) + } + , + Utils.LANGUAGE = "en", + Utils.HOST = document.referrer || window.location.host, + Utils.ASSET_LOCATION = BuildSettings.isStandAlone() ? "assets/" : "https://cdn.fbrq.io/@azerion/splash/assets/", + Utils + }(); + var progressbar = createCommonjsModule(function(module, exports) { + var f; + f = function() { + return function e(t, n, r) { + function s(o, u) { + if (!n[o]) { + if (!t[o]) { + var a; + if (!u && commonjsRequire) + return commonjsRequire(o, !0); + if (i) + return i(o, !0); + var u = new Error("Cannot find module '" + o + "'"); + throw u.code = "MODULE_NOT_FOUND", + u + } + var u = n[o] = { + exports: {} + }; + t[o][0].call(u.exports, function(e) { + var n = t[o][1][e]; + return s(n || e) + }, u, u.exports, e, t, n, r) + } + return n[o].exports + } + var i = commonjsRequire; + for (var o = 0; o < r.length; o++) + s(r[o]); + return s + }({ + 1: [function(require, module, exports) { + !function() { + var root = this || Function("return this")(); + var Tweenable = function() { + var formula; + var DEFAULT_SCHEDULE_FUNCTION; + var DEFAULT_EASING = "linear"; + var DEFAULT_DURATION = 500; + var UPDATE_TIME = 1e3 / 60; + var _now = Date.now || function() { + return +new Date + } + ; + var now = "undefined" != typeof SHIFTY_DEBUG_NOW ? SHIFTY_DEBUG_NOW : _now; + function noop() {} + function each(obj, fn) { + var key; + for (key in obj) + Object.hasOwnProperty.call(obj, key) && fn(key) + } + function shallowCopy(targetObj, srcObj) { + return each(srcObj, function(prop) { + targetObj[prop] = srcObj[prop] + }), + targetObj + } + function defaults(target, src) { + each(src, function(prop) { + void 0 === target[prop] && (target[prop] = src[prop]) + }) + } + function tweenProps(forPosition, currentState, originalState, targetState, duration, timestamp, easing) { + var normalizedPosition = forPosition < timestamp ? 0 : (forPosition - timestamp) / duration; + var prop; + var easingObjectProp; + var easingObjectProp; + for (prop in currentState) + currentState.hasOwnProperty(prop) && (easingObjectProp = "function" == typeof (easingObjectProp = easing[prop]) ? easingObjectProp : formula[easingObjectProp], + currentState[prop] = tweenProp(originalState[prop], targetState[prop], easingObjectProp, normalizedPosition)); + return currentState + } + function tweenProp(start, end, easingFunc, position) { + return start + (end - start) * easingFunc(position) + } + function applyFilter(tweenable, filterName) { + var filters = Tweenable.prototype.filter; + var args = tweenable._filterArgs; + each(filters, function(name) { + void 0 !== filters[name][filterName] && filters[name][filterName].apply(tweenable, args) + }) + } + var timeoutHandler_endTime; + var timeoutHandler_currentTime; + var timeoutHandler_isEnded; + var timeoutHandler_endTime; + function timeoutHandler(tweenable, timestamp, delay, duration, currentState, originalState, targetState, easing, step, schedule, opt_currentTimeOverride) { + timeoutHandler_endTime = timestamp + delay + duration, + timeoutHandler_currentTime = Math.min(opt_currentTimeOverride || now(), timeoutHandler_endTime), + timeoutHandler_isEnded = timeoutHandler_endTime <= timeoutHandler_currentTime, + timeoutHandler_endTime = duration - (timeoutHandler_endTime - timeoutHandler_currentTime), + tweenable.isPlaying() && (timeoutHandler_isEnded ? (step(targetState, tweenable._attachment, timeoutHandler_endTime), + tweenable.stop(!0)) : (tweenable._scheduleId = schedule(tweenable._timeoutHandler, 1e3 / 60), + applyFilter(tweenable, "beforeTween"), + timeoutHandler_currentTime < timestamp + delay ? tweenProps(1, currentState, originalState, targetState, 1, 1, easing) : tweenProps(timeoutHandler_currentTime, currentState, originalState, targetState, duration, timestamp + delay, easing), + applyFilter(tweenable, "afterTween"), + step(currentState, tweenable._attachment, timeoutHandler_endTime))) + } + function composeEasingObject(fromTweenParams, easing) { + var composedEasing = {}; + var typeofEasing = typeof easing; + return each(fromTweenParams, "string" == typeofEasing || "function" == typeofEasing ? function(prop) { + composedEasing[prop] = easing + } + : function(prop) { + composedEasing[prop] || (composedEasing[prop] = easing[prop] || "linear") + } + ), + composedEasing + } + function Tweenable(opt_initialState, opt_config) { + this._currentState = opt_initialState || {}, + this._configured = !1, + this._scheduleFunction = DEFAULT_SCHEDULE_FUNCTION, + void 0 !== opt_config && this.setConfig(opt_config) + } + return DEFAULT_SCHEDULE_FUNCTION = "undefined" != typeof window && (window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || window.mozCancelRequestAnimationFrame && window.mozRequestAnimationFrame) || setTimeout, + Tweenable.prototype.tween = function(opt_config) { + return this._isTweening ? this : (void 0 === opt_config && this._configured || this.setConfig(opt_config), + this._timestamp = now(), + this._start(this.get(), this._attachment), + this.resume()) + } + , + Tweenable.prototype.setConfig = function(config) { + config = config || {}, + this._configured = !0, + this._attachment = config.attachment, + this._pausedAtTime = null, + this._scheduleId = null, + this._delay = config.delay || 0, + this._start = config.start || noop, + this._step = config.step || noop, + this._finish = config.finish || noop, + this._duration = config.duration || 500, + this._currentState = shallowCopy({}, config.from || this.get()), + this._originalState = this.get(), + this._targetState = shallowCopy({}, config.to || this.get()); + var self = this; + this._timeoutHandler = function() { + timeoutHandler(self, self._timestamp, self._delay, self._duration, self._currentState, self._originalState, self._targetState, self._easing, self._step, self._scheduleFunction) + } + ; + var currentState = this._currentState; + var targetState = this._targetState; + return defaults(targetState, currentState), + this._easing = composeEasingObject(currentState, config.easing || "linear"), + this._filterArgs = [currentState, this._originalState, targetState, this._easing], + applyFilter(this, "tweenCreated"), + this + } + , + Tweenable.prototype.get = function() { + return shallowCopy({}, this._currentState) + } + , + Tweenable.prototype.set = function(state) { + this._currentState = state + } + , + Tweenable.prototype.pause = function() { + return this._pausedAtTime = now(), + this._isPaused = !0, + this + } + , + Tweenable.prototype.resume = function() { + return this._isPaused && (this._timestamp += now() - this._pausedAtTime), + this._isPaused = !1, + this._isTweening = !0, + this._timeoutHandler(), + this + } + , + Tweenable.prototype.seek = function(millisecond) { + millisecond = Math.max(millisecond, 0); + var currentTime = now(); + return this._timestamp + millisecond === 0 || (this._timestamp = currentTime - millisecond, + this.isPlaying()) || (this._isTweening = !0, + this._isPaused = !1, + timeoutHandler(this, this._timestamp, this._delay, this._duration, this._currentState, this._originalState, this._targetState, this._easing, this._step, this._scheduleFunction, currentTime), + this.pause()), + this + } + , + Tweenable.prototype.stop = function(gotoEnd) { + return this._isTweening = !1, + this._isPaused = !1, + this._timeoutHandler = noop, + (root.cancelAnimationFrame || root.webkitCancelAnimationFrame || root.oCancelAnimationFrame || root.msCancelAnimationFrame || root.mozCancelRequestAnimationFrame || root.clearTimeout)(this._scheduleId), + gotoEnd && (applyFilter(this, "beforeTween"), + tweenProps(1, this._currentState, this._originalState, this._targetState, 1, 0, this._easing), + applyFilter(this, "afterTween"), + applyFilter(this, "afterTweenEnd"), + this._finish.call(this, this._currentState, this._attachment)), + this + } + , + Tweenable.prototype.isPlaying = function() { + return this._isTweening && !this._isPaused + } + , + Tweenable.prototype.setScheduleFunction = function(scheduleFunction) { + this._scheduleFunction = scheduleFunction + } + , + Tweenable.prototype.dispose = function() { + var prop; + for (prop in this) + this.hasOwnProperty(prop) && delete this[prop] + } + , + Tweenable.prototype.filter = {}, + formula = Tweenable.prototype.formula = { + linear: function(pos) { + return pos + } + }, + shallowCopy(Tweenable, { + now: now, + each: each, + tweenProps: tweenProps, + tweenProp: tweenProp, + applyFilter: applyFilter, + shallowCopy: shallowCopy, + defaults: defaults, + composeEasingObject: composeEasingObject + }), + "function" == typeof SHIFTY_DEBUG_NOW && (root.timeoutHandler = timeoutHandler), + "object" == typeof exports ? module.exports = Tweenable : void 0 === root.Tweenable && (root.Tweenable = Tweenable), + Tweenable + }(); + function cubicBezierAtTime(t, p1x, p1y, p2x, p2y, duration) { + var ax = 0 + , bx = 0 + , cx = 0 + , ay = 0 + , by = 0 + , cy = 0; + function sampleCurveX(t) { + return ((ax * t + bx) * t + cx) * t + } + function sampleCurveY(t) { + return ((ay * t + by) * t + cy) * t + } + function sampleCurveDerivativeX(t) { + return (3 * ax * t + 2 * bx) * t + cx + } + function solveEpsilon(duration) { + return 1 / (200 * duration) + } + function solve(x, epsilon) { + return sampleCurveY(solveCurveX(x, epsilon)) + } + function fabs(n) { + return 0 <= n ? n : 0 - n + } + function solveCurveX(x, epsilon) { + var t0, t1, t2, x2, d2, i; + for (t2 = x, + i = 0; i < 8; i++) { + if (fabs(x2 = sampleCurveX(t2) - x) < epsilon) + return t2; + if (fabs(d2 = sampleCurveDerivativeX(t2)) < 1e-6) + break; + t2 -= x2 / d2 + } + if ((t2 = x) < (t0 = 0)) + return t0; + if ((t1 = 1) < t2) + return t1; + for (; t0 < t1; ) { + if (fabs((x2 = sampleCurveX(t2)) - x) < epsilon) + return t2; + x2 < x ? t0 = t2 : t1 = t2, + t2 = .5 * (t1 - t0) + t0 + } + return t2 + } + return ax = 1 - (cx = 3 * p1x) - (bx = 3 * (p2x - p1x) - cx), + ay = 1 - (cy = 3 * p1y) - (by = 3 * (p2y - p1y) - cy), + solve(t, 1 / (200 * duration)) + } + function getCubicBezierTransition(x1, y1, x2, y2) { + return function(pos) { + return cubicBezierAtTime(pos, x1, y1, x2, y2, 1) + } + } + function getInterpolatedValues(from, current, targetState, position, easing, delay) { + return Tweenable.tweenProps(position, current, from, targetState, 1, delay, easing) + } + var mockTweenable; + Tweenable.shallowCopy(Tweenable.prototype.formula, { + easeInQuad: function(pos) { + return Math.pow(pos, 2) + }, + easeOutQuad: function(pos) { + return -(Math.pow(pos - 1, 2) - 1) + }, + easeInOutQuad: function(pos) { + return (pos /= .5) < 1 ? .5 * Math.pow(pos, 2) : -.5 * ((pos -= 2) * pos - 2) + }, + easeInCubic: function(pos) { + return Math.pow(pos, 3) + }, + easeOutCubic: function(pos) { + return Math.pow(pos - 1, 3) + 1 + }, + easeInOutCubic: function(pos) { + return (pos /= .5) < 1 ? .5 * Math.pow(pos, 3) : .5 * (Math.pow(pos - 2, 3) + 2) + }, + easeInQuart: function(pos) { + return Math.pow(pos, 4) + }, + easeOutQuart: function(pos) { + return -(Math.pow(pos - 1, 4) - 1) + }, + easeInOutQuart: function(pos) { + return (pos /= .5) < 1 ? .5 * Math.pow(pos, 4) : -.5 * ((pos -= 2) * Math.pow(pos, 3) - 2) + }, + easeInQuint: function(pos) { + return Math.pow(pos, 5) + }, + easeOutQuint: function(pos) { + return Math.pow(pos - 1, 5) + 1 + }, + easeInOutQuint: function(pos) { + return (pos /= .5) < 1 ? .5 * Math.pow(pos, 5) : .5 * (Math.pow(pos - 2, 5) + 2) + }, + easeInSine: function(pos) { + return 1 - Math.cos(pos * (Math.PI / 2)) + }, + easeOutSine: function(pos) { + return Math.sin(pos * (Math.PI / 2)) + }, + easeInOutSine: function(pos) { + return -.5 * (Math.cos(Math.PI * pos) - 1) + }, + easeInExpo: function(pos) { + return 0 === pos ? 0 : Math.pow(2, 10 * (pos - 1)) + }, + easeOutExpo: function(pos) { + return 1 === pos ? 1 : 1 - Math.pow(2, -10 * pos) + }, + easeInOutExpo: function(pos) { + return 0 === pos ? 0 : 1 === pos ? 1 : (pos /= .5) < 1 ? .5 * Math.pow(2, 10 * (pos - 1)) : .5 * (2 - Math.pow(2, -10 * --pos)) + }, + easeInCirc: function(pos) { + return -(Math.sqrt(1 - pos * pos) - 1) + }, + easeOutCirc: function(pos) { + return Math.sqrt(1 - Math.pow(pos - 1, 2)) + }, + easeInOutCirc: function(pos) { + return (pos /= .5) < 1 ? -.5 * (Math.sqrt(1 - pos * pos) - 1) : .5 * (Math.sqrt(1 - (pos -= 2) * pos) + 1) + }, + easeOutBounce: function(pos) { + return pos < 1 / 2.75 ? 7.5625 * pos * pos : pos < 2 / 2.75 ? 7.5625 * (pos -= 1.5 / 2.75) * pos + .75 : pos < 2.5 / 2.75 ? 7.5625 * (pos -= 2.25 / 2.75) * pos + .9375 : 7.5625 * (pos -= 2.625 / 2.75) * pos + .984375 + }, + easeInBack: function(pos) { + var s = 1.70158; + return pos * pos * ((1 + s) * pos - s) + }, + easeOutBack: function(pos) { + var s = 1.70158; + return (pos -= 1) * pos * ((1 + s) * pos + s) + 1 + }, + easeInOutBack: function(pos) { + var s = 1.70158; + return (pos /= .5) < 1 ? pos * pos * ((1 + (s *= 1.525)) * pos - s) * .5 : .5 * ((pos -= 2) * pos * ((1 + (s *= 1.525)) * pos + s) + 2) + }, + elastic: function(pos) { + return -1 * Math.pow(4, -8 * pos) * Math.sin((6 * pos - 1) * (2 * Math.PI) / 2) + 1 + }, + swingFromTo: function(pos) { + var s = 1.70158; + return (pos /= .5) < 1 ? pos * pos * ((1 + (s *= 1.525)) * pos - s) * .5 : .5 * ((pos -= 2) * pos * ((1 + (s *= 1.525)) * pos + s) + 2) + }, + swingFrom: function(pos) { + var s = 1.70158; + return pos * pos * ((1 + s) * pos - s) + }, + swingTo: function(pos) { + var s = 1.70158; + return --pos * pos * ((1 + s) * pos + s) + 1 + }, + bounce: function(pos) { + return pos < 1 / 2.75 ? 7.5625 * pos * pos : pos < 2 / 2.75 ? 7.5625 * (pos -= 1.5 / 2.75) * pos + .75 : pos < 2.5 / 2.75 ? 7.5625 * (pos -= 2.25 / 2.75) * pos + .9375 : 7.5625 * (pos -= 2.625 / 2.75) * pos + .984375 + }, + bouncePast: function(pos) { + return pos < 1 / 2.75 ? 7.5625 * pos * pos : pos < 2 / 2.75 ? 2 - (7.5625 * (pos -= 1.5 / 2.75) * pos + .75) : pos < 2.5 / 2.75 ? 2 - (7.5625 * (pos -= 2.25 / 2.75) * pos + .9375) : 2 - (7.5625 * (pos -= 2.625 / 2.75) * pos + .984375) + }, + easeFromTo: function(pos) { + return (pos /= .5) < 1 ? .5 * Math.pow(pos, 4) : -.5 * ((pos -= 2) * Math.pow(pos, 3) - 2) + }, + easeFrom: function(pos) { + return Math.pow(pos, 4) + }, + easeTo: function(pos) { + return Math.pow(pos, .25) + } + }), + Tweenable.setBezierFunction = function(name, x1, y1, x2, y2) { + var cubicBezierTransition = getCubicBezierTransition(x1, y1, x2, y2); + return cubicBezierTransition.displayName = name, + cubicBezierTransition.x1 = x1, + cubicBezierTransition.y1 = y1, + cubicBezierTransition.x2 = x2, + cubicBezierTransition.y2 = y2, + Tweenable.prototype.formula[name] = cubicBezierTransition + } + , + Tweenable.unsetBezierFunction = function(name) { + delete Tweenable.prototype.formula[name] + } + , + (mockTweenable = new Tweenable)._filterArgs = [], + Tweenable.interpolate = function(from, targetState, position, easing, opt_delay) { + var current = Tweenable.shallowCopy({}, from); + var opt_delay = opt_delay || 0; + var easing = Tweenable.composeEasingObject(from, easing || "linear"); + mockTweenable.set({}); + var filterArgs = mockTweenable._filterArgs; + filterArgs.length = 0, + filterArgs[0] = current, + filterArgs[1] = from, + filterArgs[2] = targetState, + filterArgs[3] = easing, + Tweenable.applyFilter(mockTweenable, "tweenCreated"), + Tweenable.applyFilter(mockTweenable, "beforeTween"); + var filterArgs = getInterpolatedValues(from, current, targetState, position, easing, opt_delay); + return Tweenable.applyFilter(mockTweenable, "afterTween"), + filterArgs + } + , + function(Tweenable) { + var R_NUMBER_COMPONENT = /(\d|\-|\.)/; + var R_FORMAT_CHUNKS = /([^\-0-9\.]+)/g; + var R_UNFORMATTED_VALUES = /[0-9.\-]+/g; + var R_RGB = new RegExp("rgb\\(" + R_UNFORMATTED_VALUES.source + /,\s*/.source + R_UNFORMATTED_VALUES.source + /,\s*/.source + R_UNFORMATTED_VALUES.source + "\\)","g"); + var R_RGB_PREFIX = /^.*\(/; + var R_HEX = /#([0-9]|[a-f]){3,6}/gi; + var VALUE_PLACEHOLDER = "VAL"; + function getFormatChunksFrom(rawValues, prefix) { + var accumulator = []; + var rawValuesLength = rawValues.length; + var i; + for (i = 0; i < rawValuesLength; i++) + accumulator.push("_" + prefix + "_" + i); + return accumulator + } + function getFormatStringFrom(formattedString) { + var chunks = formattedString.match(R_FORMAT_CHUNKS); + return chunks ? 1 !== chunks.length && !formattedString.charAt(0).match(R_NUMBER_COMPONENT) || chunks.unshift("") : chunks = ["", ""], + chunks.join(VALUE_PLACEHOLDER) + } + function sanitizeObjectForHexProps(stateObject) { + Tweenable.each(stateObject, function(prop) { + var currentProp = stateObject[prop]; + "string" == typeof currentProp && currentProp.match(R_HEX) && (stateObject[prop] = sanitizeHexChunksToRGB(currentProp)) + }) + } + function sanitizeHexChunksToRGB(str) { + return filterStringChunks(R_HEX, str, convertHexToRGB) + } + function convertHexToRGB(hexString) { + var hexString = hexToRGBArray(hexString); + return "rgb(" + hexString[0] + "," + hexString[1] + "," + hexString[2] + ")" + } + var hexToRGBArray_returnArray = []; + function hexToRGBArray(hex) { + return 3 === (hex = hex.replace(/#/, "")).length && (hex = (hex = hex.split(""))[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2]), + hexToRGBArray_returnArray[0] = hexToDec(hex.substr(0, 2)), + hexToRGBArray_returnArray[1] = hexToDec(hex.substr(2, 2)), + hexToRGBArray_returnArray[2] = hexToDec(hex.substr(4, 2)), + hexToRGBArray_returnArray + } + function hexToDec(hex) { + return parseInt(hex, 16) + } + function filterStringChunks(pattern, unfilteredString, filter) { + var pattenMatches = unfilteredString.match(pattern); + var filteredString = unfilteredString.replace(pattern, VALUE_PLACEHOLDER); + if (pattenMatches) { + var pattenMatchesLength = pattenMatches.length; + var currentChunk; + for (var i = 0; i < pattenMatchesLength; i++) + currentChunk = pattenMatches.shift(), + filteredString = filteredString.replace(VALUE_PLACEHOLDER, filter(currentChunk)) + } + return filteredString + } + function sanitizeRGBChunks(formattedString) { + return filterStringChunks(R_RGB, formattedString, sanitizeRGBChunk) + } + function sanitizeRGBChunk(rgbChunk) { + var numbers = rgbChunk.match(R_UNFORMATTED_VALUES); + var numbersLength = numbers.length; + var sanitizedString = rgbChunk.match(R_RGB_PREFIX)[0]; + for (var i = 0; i < numbersLength; i++) + sanitizedString += parseInt(numbers[i], 10) + ","; + return sanitizedString = sanitizedString.slice(0, -1) + ")" + } + function getFormatManifests(stateObject) { + var manifestAccumulator = {}; + return Tweenable.each(stateObject, function(prop) { + var currentProp = stateObject[prop]; + var rawValues; + "string" == typeof currentProp && (rawValues = getValuesFrom(currentProp), + manifestAccumulator[prop] = { + formatString: getFormatStringFrom(currentProp), + chunkNames: getFormatChunksFrom(rawValues, prop) + }) + }), + manifestAccumulator + } + function expandFormattedProperties(stateObject, formatManifests) { + Tweenable.each(formatManifests, function(prop) { + var currentProp; + var rawValues = getValuesFrom(stateObject[prop]); + var rawValuesLength = rawValues.length; + for (var i = 0; i < rawValuesLength; i++) + stateObject[formatManifests[prop].chunkNames[i]] = +rawValues[i]; + delete stateObject[prop] + }) + } + function collapseFormattedProperties(stateObject, formatManifests) { + Tweenable.each(formatManifests, function(prop) { + var currentProp = stateObject[prop]; + var formatChunks; + var valuesList = getValuesList(extractPropertyChunks(stateObject, formatManifests[prop].chunkNames), formatManifests[prop].chunkNames); + currentProp = getFormattedValues(formatManifests[prop].formatString, valuesList), + stateObject[prop] = sanitizeRGBChunks(currentProp) + }) + } + function extractPropertyChunks(stateObject, chunkNames) { + var extractedValues = {}; + var currentChunkName, chunkNamesLength = chunkNames.length; + for (var i = 0; i < chunkNamesLength; i++) + extractedValues[currentChunkName = chunkNames[i]] = stateObject[currentChunkName], + delete stateObject[currentChunkName]; + return extractedValues + } + var getValuesList_accumulator = []; + function getValuesList(stateObject, chunkNames) { + getValuesList_accumulator.length = 0; + var chunkNamesLength = chunkNames.length; + for (var i = 0; i < chunkNamesLength; i++) + getValuesList_accumulator.push(stateObject[chunkNames[i]]); + return getValuesList_accumulator + } + function getFormattedValues(formatString, rawValues) { + var formattedValueString = formatString; + var rawValuesLength = rawValues.length; + for (var i = 0; i < rawValuesLength; i++) + formattedValueString = formattedValueString.replace(VALUE_PLACEHOLDER, +rawValues[i].toFixed(4)); + return formattedValueString + } + function getValuesFrom(formattedString) { + return formattedString.match(R_UNFORMATTED_VALUES) + } + function expandEasingObject(easingObject, tokenData) { + Tweenable.each(tokenData, function(prop) { + var currentProp; + var chunkNames = tokenData[prop].chunkNames; + var chunkLength = chunkNames.length; + var easing = easingObject[prop]; + var i; + if ("string" == typeof easing) { + var easingChunks = easing.split(" "); + var lastEasingChunk = easingChunks[easingChunks.length - 1]; + for (i = 0; i < chunkLength; i++) + easingObject[chunkNames[i]] = easingChunks[i] || lastEasingChunk + } else + for (i = 0; i < chunkLength; i++) + easingObject[chunkNames[i]] = easing; + delete easingObject[prop] + }) + } + function collapseEasingObject(easingObject, tokenData) { + Tweenable.each(tokenData, function(prop) { + var currentProp; + var chunkNames = tokenData[prop].chunkNames; + var chunkLength = chunkNames.length; + var firstEasing = easingObject[chunkNames[0]]; + var typeofEasings; + if ("string" == typeof firstEasing) { + var composedEasingString = ""; + for (var i = 0; i < chunkLength; i++) + composedEasingString += " " + easingObject[chunkNames[i]], + delete easingObject[chunkNames[i]]; + easingObject[prop] = composedEasingString.substr(1) + } else + easingObject[prop] = firstEasing + }) + } + Tweenable.prototype.filter.token = { + tweenCreated: function(currentState, fromState, toState, easingObject) { + sanitizeObjectForHexProps(currentState), + sanitizeObjectForHexProps(fromState), + sanitizeObjectForHexProps(toState), + this._tokenData = getFormatManifests(currentState) + }, + beforeTween: function(currentState, fromState, toState, easingObject) { + expandEasingObject(easingObject, this._tokenData), + expandFormattedProperties(currentState, this._tokenData), + expandFormattedProperties(fromState, this._tokenData), + expandFormattedProperties(toState, this._tokenData) + }, + afterTween: function(currentState, fromState, toState, easingObject) { + collapseFormattedProperties(currentState, this._tokenData), + collapseFormattedProperties(fromState, this._tokenData), + collapseFormattedProperties(toState, this._tokenData), + collapseEasingObject(easingObject, this._tokenData) + } + } + }(Tweenable) + } + .call(null) + } + , {}], + 2: [function(require, module, exports) { + var Shape = require("./shape"); + var utils = require("./utils"); + var require = function Circle(container, options) { + this._pathTemplate = "M 50,50 m 0,-{radius} a {radius},{radius} 0 1 1 0,{2radius} a {radius},{radius} 0 1 1 0,-{2radius}", + this.containerAspectRatio = 1, + Shape.apply(this, arguments) + }; + ((require.prototype = new Shape).constructor = require).prototype._pathString = function _pathString(opts) { + var widthOfWider = opts.strokeWidth; + var opts = 50 - (widthOfWider = opts.trailWidth && opts.trailWidth > opts.strokeWidth ? opts.trailWidth : widthOfWider) / 2; + return utils.render(this._pathTemplate, { + radius: opts, + "2radius": 2 * opts + }) + } + , + require.prototype._trailString = function _trailString(opts) { + return this._pathString(opts) + } + , + module.exports = require + } + , { + "./shape": 7, + "./utils": 9 + }], + 3: [function(require, module, exports) { + var Shape = require("./shape"); + var utils = require("./utils"); + var require = function Line(container, options) { + this._pathTemplate = "M 0,{center} L 100,{center}", + Shape.apply(this, arguments) + }; + ((require.prototype = new Shape).constructor = require).prototype._initializeSvg = function _initializeSvg(svg, opts) { + svg.setAttribute("viewBox", "0 0 100 " + opts.strokeWidth), + svg.setAttribute("preserveAspectRatio", "none") + } + , + require.prototype._pathString = function _pathString(opts) { + return utils.render(this._pathTemplate, { + center: opts.strokeWidth / 2 + }) + } + , + require.prototype._trailString = function _trailString(opts) { + return this._pathString(opts) + } + , + module.exports = require + } + , { + "./shape": 7, + "./utils": 9 + }], + 4: [function(require, module, exports) { + module.exports = { + Line: require("./line"), + Circle: require("./circle"), + SemiCircle: require("./semicircle"), + Square: require("./square"), + Path: require("./path"), + Shape: require("./shape"), + utils: require("./utils") + } + } + , { + "./circle": 2, + "./line": 3, + "./path": 5, + "./semicircle": 6, + "./shape": 7, + "./square": 8, + "./utils": 9 + }], + 5: [function(require, module, exports) { + var Tweenable = require("shifty"); + var utils = require("./utils"); + var EASING_ALIASES = { + easeIn: "easeInCubic", + easeOut: "easeOutCubic", + easeInOut: "easeInOutCubic" + }; + var require = function Path(path, opts) { + if (!(this instanceof Path)) + throw new Error("Constructor was called without new keyword"); + var path; + opts = utils.extend({ + duration: 800, + easing: "linear", + from: {}, + to: {}, + step: function() {} + }, opts), + path = utils.isString(path) ? document.querySelector(path) : path, + this.path = path, + this._opts = opts, + this._tweenable = null; + var path = this.path.getTotalLength(); + this.path.style.strokeDasharray = path + " " + path, + this.set(0) + }; + require.prototype.value = function value() { + var offset = this._getComputedDashOffset(); + var length = this.path.getTotalLength(); + var progress; + return parseFloat((1 - offset / length).toFixed(6), 10) + } + , + require.prototype.set = function set(progress) { + this.stop(), + this.path.style.strokeDashoffset = this._progressToOffset(progress); + var step = this._opts.step; + var easing, values, reference; + utils.isFunction(step) && (easing = this._easing(this._opts.easing), + step(this._calculateTo(progress, easing), this._opts.shape || this, this._opts.attachment)) + } + , + require.prototype.stop = function stop() { + this._stopTween(), + this.path.style.strokeDashoffset = this._getComputedDashOffset() + } + , + require.prototype.animate = function animate(progress, opts, cb) { + opts = opts || {}, + utils.isFunction(opts) && (cb = opts, + opts = {}); + var passedOpts = utils.extend({}, opts); + var defaultOpts = utils.extend({}, this._opts); + opts = utils.extend(defaultOpts, opts); + var defaultOpts = this._easing(opts.easing); + var passedOpts = this._resolveFromAndTo(progress, defaultOpts, passedOpts); + this.stop(), + this.path.getBoundingClientRect(); + var offset = this._getComputedDashOffset(); + var progress = this._progressToOffset(progress); + var self = this; + this._tweenable = new Tweenable, + this._tweenable.tween({ + from: utils.extend({ + offset: offset + }, passedOpts.from), + to: utils.extend({ + offset: progress + }, passedOpts.to), + duration: opts.duration, + easing: defaultOpts, + step: function(state) { + self.path.style.strokeDashoffset = state.offset; + var reference = opts.shape || self; + opts.step(state, reference, opts.attachment) + }, + finish: function(state) { + utils.isFunction(cb) && cb() + } + }) + } + , + require.prototype._getComputedDashOffset = function _getComputedDashOffset() { + var computedStyle = window.getComputedStyle(this.path, null); + return parseFloat(computedStyle.getPropertyValue("stroke-dashoffset"), 10) + } + , + require.prototype._progressToOffset = function _progressToOffset(progress) { + var length = this.path.getTotalLength(); + return length - progress * length + } + , + require.prototype._resolveFromAndTo = function _resolveFromAndTo(progress, easing, opts) { + return opts.from && opts.to ? { + from: opts.from, + to: opts.to + } : { + from: this._calculateFrom(easing), + to: this._calculateTo(progress, easing) + } + } + , + require.prototype._calculateFrom = function _calculateFrom(easing) { + return Tweenable.interpolate(this._opts.from, this._opts.to, this.value(), easing) + } + , + require.prototype._calculateTo = function _calculateTo(progress, easing) { + return Tweenable.interpolate(this._opts.from, this._opts.to, progress, easing) + } + , + require.prototype._stopTween = function _stopTween() { + null !== this._tweenable && (this._tweenable.stop(), + this._tweenable = null) + } + , + require.prototype._easing = function _easing(easing) { + return EASING_ALIASES.hasOwnProperty(easing) ? EASING_ALIASES[easing] : easing + } + , + module.exports = require + } + , { + "./utils": 9, + shifty: 1 + }], + 6: [function(require, module, exports) { + var Shape = require("./shape"); + var Circle = require("./circle"); + var utils = require("./utils"); + var require = function SemiCircle(container, options) { + this._pathTemplate = "M 50,50 m -{radius},0 a {radius},{radius} 0 1 1 {2radius},0", + this.containerAspectRatio = 2, + Shape.apply(this, arguments) + }; + ((require.prototype = new Shape).constructor = require).prototype._initializeSvg = function _initializeSvg(svg, opts) { + svg.setAttribute("viewBox", "0 0 100 50") + } + , + require.prototype._initializeTextContainer = function _initializeTextContainer(opts, container, textContainer) { + opts.text.style && (textContainer.style.top = "auto", + textContainer.style.bottom = "0", + opts.text.alignToBottom ? utils.setStyle(textContainer, "transform", "translate(-50%, 0)") : utils.setStyle(textContainer, "transform", "translate(-50%, 50%)")) + } + , + require.prototype._pathString = Circle.prototype._pathString, + require.prototype._trailString = Circle.prototype._trailString, + module.exports = require + } + , { + "./circle": 2, + "./shape": 7, + "./utils": 9 + }], + 7: [function(require, module, exports) { + var Path = require("./path"); + var utils = require("./utils"); + var DESTROYED_ERROR = "Object is destroyed"; + var require = function Shape(container, opts) { + if (!(this instanceof Shape)) + throw new Error("Constructor was called without new keyword"); + if (0 !== arguments.length) { + this._opts = utils.extend({ + color: "#555", + strokeWidth: 1, + trailColor: null, + trailWidth: null, + fill: null, + text: { + style: { + color: null, + position: "absolute", + left: "50%", + top: "50%", + padding: 0, + margin: 0, + transform: { + prefix: !0, + value: "translate(-50%, -50%)" + } + }, + autoStyleContainer: !0, + alignToBottom: !0, + value: null, + className: "progressbar-text" + }, + svgStyle: { + display: "block", + width: "100%" + }, + warnings: !1 + }, opts, !0), + utils.isObject(opts) && void 0 !== opts.svgStyle && (this._opts.svgStyle = opts.svgStyle), + utils.isObject(opts) && utils.isObject(opts.text) && void 0 !== opts.text.style && (this._opts.text.style = opts.text.style); + var opts = this._createSvgView(this._opts); + var element; + if (!(element = utils.isString(container) ? document.querySelector(container) : container)) + throw new Error("Container does not exist: " + container); + this._container = element, + this._container.appendChild(opts.svg), + this._opts.warnings && this._warnContainerAspectRatio(this._container), + this._opts.svgStyle && utils.setStyles(opts.svg, this._opts.svgStyle), + this.svg = opts.svg, + this.path = opts.path, + this.trail = opts.trail, + this.text = null; + var container = utils.extend({ + attachment: void 0, + shape: this + }, this._opts); + this._progressPath = new Path(opts.path,container), + utils.isObject(this._opts.text) && null !== this._opts.text.value && this.setText(this._opts.text.value) + } + }; + require.prototype.animate = function animate(progress, opts, cb) { + if (null === this._progressPath) + throw new Error(DESTROYED_ERROR); + this._progressPath.animate(progress, opts, cb) + } + , + require.prototype.stop = function stop() { + if (null === this._progressPath) + throw new Error(DESTROYED_ERROR); + void 0 !== this._progressPath && this._progressPath.stop() + } + , + require.prototype.destroy = function destroy() { + if (null === this._progressPath) + throw new Error(DESTROYED_ERROR); + this.stop(), + this.svg.parentNode.removeChild(this.svg), + this.svg = null, + this.path = null, + this.trail = null, + (this._progressPath = null) !== this.text && (this.text.parentNode.removeChild(this.text), + this.text = null) + } + , + require.prototype.set = function set(progress) { + if (null === this._progressPath) + throw new Error(DESTROYED_ERROR); + this._progressPath.set(progress) + } + , + require.prototype.value = function value() { + if (null === this._progressPath) + throw new Error(DESTROYED_ERROR); + return void 0 === this._progressPath ? 0 : this._progressPath.value() + } + , + require.prototype.setText = function setText(newText) { + if (null === this._progressPath) + throw new Error(DESTROYED_ERROR); + null === this.text && (this.text = this._createTextContainer(this._opts, this._container), + this._container.appendChild(this.text)), + utils.isObject(newText) ? (utils.removeChildren(this.text), + this.text.appendChild(newText)) : this.text.innerHTML = newText + } + , + require.prototype._createSvgView = function _createSvgView(opts) { + var svg = document.createElementNS("http://www.w3.org/2000/svg", "svg"); + this._initializeSvg(svg, opts); + var trailPath = null; + (opts.trailColor || opts.trailWidth) && (trailPath = this._createTrail(opts), + svg.appendChild(trailPath)); + var opts = this._createPath(opts); + return svg.appendChild(opts), + { + svg: svg, + path: opts, + trail: trailPath + } + } + , + require.prototype._initializeSvg = function _initializeSvg(svg, opts) { + svg.setAttribute("viewBox", "0 0 100 100") + } + , + require.prototype._createPath = function _createPath(opts) { + var pathString = this._pathString(opts); + return this._createPathElement(pathString, opts) + } + , + require.prototype._createTrail = function _createTrail(opts) { + var pathString = this._trailString(opts); + var opts = utils.extend({}, opts); + return opts.trailColor || (opts.trailColor = "#eee"), + opts.trailWidth || (opts.trailWidth = opts.strokeWidth), + opts.color = opts.trailColor, + opts.strokeWidth = opts.trailWidth, + opts.fill = null, + this._createPathElement(pathString, opts) + } + , + require.prototype._createPathElement = function _createPathElement(pathString, opts) { + var path = document.createElementNS("http://www.w3.org/2000/svg", "path"); + return path.setAttribute("d", pathString), + path.setAttribute("stroke", opts.color), + path.setAttribute("stroke-width", opts.strokeWidth), + opts.fill ? path.setAttribute("fill", opts.fill) : path.setAttribute("fill-opacity", "0"), + path + } + , + require.prototype._createTextContainer = function _createTextContainer(opts, container) { + var textContainer = document.createElement("div"); + textContainer.className = opts.text.className; + var textStyle = opts.text.style; + return textStyle && (opts.text.autoStyleContainer && (container.style.position = "relative"), + utils.setStyles(textContainer, textStyle), + textStyle.color || (textContainer.style.color = opts.color)), + this._initializeTextContainer(opts, container, textContainer), + textContainer + } + , + require.prototype._initializeTextContainer = function(opts, container, element) {} + , + require.prototype._pathString = function _pathString(opts) { + throw new Error("Override this function for each progress bar") + } + , + require.prototype._trailString = function _trailString(opts) { + throw new Error("Override this function for each progress bar") + } + , + require.prototype._warnContainerAspectRatio = function _warnContainerAspectRatio(container) { + var computedStyle, width, height; + this.containerAspectRatio && (computedStyle = window.getComputedStyle(container, null), + width = parseFloat(computedStyle.getPropertyValue("width"), 10), + height = parseFloat(computedStyle.getPropertyValue("height"), 10), + utils.floatEquals(this.containerAspectRatio, width / height) || (console.warn("Incorrect aspect ratio of container", "#" + container.id, "detected:", computedStyle.getPropertyValue("width") + "(width)", "/", computedStyle.getPropertyValue("height") + "(height)", "=", width / height), + console.warn("Aspect ratio of should be", this.containerAspectRatio))) + } + , + module.exports = require + } + , { + "./path": 5, + "./utils": 9 + }], + 8: [function(require, module, exports) { + var Shape = require("./shape"); + var utils = require("./utils"); + var require = function Square(container, options) { + this._pathTemplate = "M 0,{halfOfStrokeWidth} L {width},{halfOfStrokeWidth} L {width},{width} L {halfOfStrokeWidth},{width} L {halfOfStrokeWidth},{strokeWidth}", + this._trailTemplate = "M {startMargin},{halfOfStrokeWidth} L {width},{halfOfStrokeWidth} L {width},{width} L {halfOfStrokeWidth},{width} L {halfOfStrokeWidth},{halfOfStrokeWidth}", + Shape.apply(this, arguments) + }; + ((require.prototype = new Shape).constructor = require).prototype._pathString = function _pathString(opts) { + var w = 100 - opts.strokeWidth / 2; + return utils.render(this._pathTemplate, { + width: w, + strokeWidth: opts.strokeWidth, + halfOfStrokeWidth: opts.strokeWidth / 2 + }) + } + , + require.prototype._trailString = function _trailString(opts) { + var w = 100 - opts.strokeWidth / 2; + return utils.render(this._trailTemplate, { + width: w, + strokeWidth: opts.strokeWidth, + halfOfStrokeWidth: opts.strokeWidth / 2, + startMargin: opts.strokeWidth / 2 - opts.trailWidth / 2 + }) + } + , + module.exports = require + } + , { + "./shape": 7, + "./utils": 9 + }], + 9: [function(require, module, exports) { + var PREFIXES = "Webkit Moz O ms".split(" "); + var FLOAT_COMPARISON_EPSILON = .001; + function extend(destination, source, recursive) { + for (var attrName in destination = destination || {}, + recursive = recursive || !1, + source = source || {}) { + var destVal, sourceVal; + source.hasOwnProperty(attrName) && (destVal = destination[attrName], + sourceVal = source[attrName], + recursive && isObject(destVal) && isObject(sourceVal) ? destination[attrName] = extend(destVal, sourceVal, recursive) : destination[attrName] = sourceVal) + } + return destination + } + function render(template, vars) { + var rendered = template; + for (var key in vars) { + var val, regExpString, key; + vars.hasOwnProperty(key) && (val = vars[key], + key = new RegExp("\\{" + key + "\\}","g"), + rendered = rendered.replace(key, val)) + } + return rendered + } + function setStyle(element, style, value) { + var elStyle = element.style; + for (var i = 0; i < PREFIXES.length; ++i) { + var prefix; + elStyle[PREFIXES[i] + capitalize(style)] = value + } + elStyle[style] = value + } + function setStyles(element, styles) { + forEachObject(styles, function(styleValue, styleName) { + null != styleValue && (isObject(styleValue) && !0 === styleValue.prefix ? setStyle(element, styleName, styleValue.value) : element.style[styleName] = styleValue) + }) + } + function capitalize(text) { + return text.charAt(0).toUpperCase() + text.slice(1) + } + function isString(obj) { + return "string" == typeof obj || obj instanceof String + } + function isFunction(obj) { + return "function" == typeof obj + } + function isArray(obj) { + return "[object Array]" === Object.prototype.toString.call(obj) + } + function isObject(obj) { + var type; + return !isArray(obj) && "object" == typeof obj && !!obj + } + function forEachObject(object, callback) { + for (var key in object) { + var val; + object.hasOwnProperty(key) && callback(object[key], key) + } + } + function floatEquals(a, b) { + return Math.abs(a - b) < .001 + } + function removeChildren(el) { + for (; el.firstChild; ) + el.removeChild(el.firstChild) + } + module.exports = { + extend: extend, + render: render, + setStyle: setStyle, + setStyles: setStyles, + capitalize: capitalize, + isString: isString, + isFunction: isFunction, + isObject: isObject, + forEachObject: forEachObject, + floatEquals: floatEquals, + removeChildren: removeChildren + } + } + , {}] + }, {}, [4])(4) + } + , + module.exports = f() + }); + function getCss() { + return "\n #h5branding-center {\n position: absolute;\n top: 45%;\n left: 50%;\n transform: translate(-50%, -20%);\n text-align: center;\n width: 100%;\n }\n #h5branding-wrapper {\n position: relative;\n z-index: 665;\n width: 150px;\n height: 150px;\n display:inline-block;\n margin: 35px 40px 96px 40px;\n }\n\n #h5branding-version {\n position: absolute;\n right: 10px;\n font-family: Helvetica, Arial, sans-serif;\n color: #ffffff;\n font-size: 0.8em;\n top: 10px;\n display: none;\n }\n\n #h5branding-wrapper > #h5branding-bar, #h5branding-wrapper > img {\n box-shadow: inset 10px 10px 20px 5px rgba(0, 0, 0, 0.5);\n border-radius: 50%;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n\n #h5branding-ad {\n position: relative;\n z-index: 667;\n border-radius: 5px;\n border: 3px solid white;\n background: rgba(256, 256, 256, 0.2);\n width: 336px;\n height: 280px;\n display: none;\n margin: 0px 10px 0px 10px;\n }\n\n #h5branding-wrapper > img {\n /* Needs appropriate vendor prefixes */\n box-sizing: border-box;\n\n /* This needs to be equal to strokeWidth */\n padding: 4%;\n }\n\n #h5branding-wrapper > img {\n border-radius: 50%;\n box-shadow: inset 0 5px 5px rgba(0, 0, 0, 0.5), 5px 5px 7px rgba(0, 0, 0, 0.3);\n }\n\n #h5branding-container {\n box-sizing: border-box;\n position: absolute;\n z-index: 664;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: #000;\n overflow: hidden;\n }\n\n #h5branding-background {\n position: absolute;\n top: -25%;\n left: -25%;\n width: 150%;\n height: 150%;\n background-blend-mode: multiply;\n background-size: cover;\n filter: blur(40px) brightness(1.5);\n }\n\n @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n /* IE10+ CSS styles go here */\n #h5branding-background {\n background-image: none !important;\n }\n }\n\n #h5branding-logo {\n position: absolute;\n margin: 0 auto;\n left: 0;\n right: 0;\n text-align: center;\n top: 10%;\n }\n\n #h5branding-logo > img {\n height: 150px;\n }\n\n #h5branding-title {\n position: absolute;\n width: 100%;\n background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.5) 50%, transparent);\n color: #fff;\n text-shadow: 0 0 1px rgba(0, 0, 0, 0.7);\n bottom:10%;\n padding: 15px 0;\n text-align: center;\n font-size: 18px;\n font-family: Helvetica, Arial, sans-serif;\n font-weight: bold;\n line-height: 100%;\n }\n\n #h5branding-button {\n /* border: 0; */\n padding: 10px 22px;\n border-radius: 5px;\n border: 3px solid white;\n background: linear-gradient(0deg, #dddddd, #ffffff);\n color: #222;\n text-transform: uppercase;\n text-shadow: 0 0 1px #fff;\n font-family: Helvetica, Arial, sans-serif;\n font-weight: bold;\n font-size: 18px;\n cursor: pointer;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);\n display: none;\n width: 150px;\n position: absolute;\n top: 170px;\n margin: 0 auto;\n left: 0;\n right: 0;\n }\n\n @media (orientation: portrait) and (max-width: 1080px) {\n #h5branding-logo > img {\n height: initial;\n width:100%;\n }\n }\n\n @media (orientation: landscape) and (max-height: 640px) {\n #h5branding-title {\n display: none;\n }\n\n #h5branding-logo > img {\n height: 100px;\n }\n }\n\n @media (orientation: landscape) and (max-height: 460px) {\n #h5branding-title {\n display: none;\n }\n\n #h5branding-wrapper {\n width: 110px;\n height: 110px;\n margin: 0;\n }\n\n #h5branding-logo {\n top: 0;\n transform: scale(0.7, 0.7);\n }\n\n #h5branding-button {\n top: initial;\n width: 110px;\n font-size: 14px;\n position: absolute;\n top: 140px;\n left: 0;\n right: 0;\n }\n\n #h5branding-ad {\n display: none !important;\n }\n }\n\n @media (orientation: portrait) and (max-width: 250px) {\n #h5branding-logo {\n top: 2%;\n }\n }\n\n @media (orientation: landscape) and (max-width: 330px) {\n #h5branding-button {\n top: 120px;\n }\n\n #h5branding-logo > img {\n height: 70px;\n }\n }\n\n @media (max-width: 600px) and (max-height: 850px) {\n #h5branding-ad {\n display: none !important;\n }\n }\n\n @media (max-width: 600px) and (max-height: 1100px) {\n #h5branding-center {\n top: 40%;\n }\n\n #h5branding-title {\n bottom: 5%\n }\n }\n\n @media (max-width: 600px) and (max-height: 900px) {\n #h5branding-title {\n display: none\n }\n }\n\n @media (orientation: landscape) and (min-width: 800px) {\n #h5branding-wrapper {\n margin-left: 120px;\n margin-right: 120px;\n }\n }\n\n " + } + function getHtml(gameLogo, gameTitle) { + return '\n
\n
\n \n
\n
\n
\n \n
\n \n
\n
\n
').concat(gameTitle, "
\n ") + } + var BrandingDomain = function() { + function SplashLoader(options) { + this.circleLoader = null, + this.loaded = !1, + this.showPlayButton = "undefined" == typeof playBtn || playBtn, + // this.showPlayButton = 0, + this.progress = 0, + this.options = { + gameId: "12346", + gameTitle: "Place Holder", + gameName: "place-holder", + libs: [], + version: "dev", + barColor: "white", + gaMeasurementId: "none" + }, + this.options.gameId = options.gameId, + this.options.gameTitle = options.gameTitle, + this.options.version = options.version, + this.options.barColor = options.barColor || this.options.barColor, + this.options.libs = options.libs, + this.options.gaMeasurementId = options.gaMeasurementId + } + return SplashLoader.getInstance = function(options) { + if (!SplashLoader.instance) { + if (!options) + throw new Error("Can not create new SplashLoader instance without options!"); + SplashLoader.instance = new SplashLoader(options) + } + return SplashLoader.instance + } + , + SplashLoader.prototype.create = function() { + return __awaiter(this, void 0, void 0, function() { + var css, html, head, style, css, head, style; + return __generator(this, function(_a) { + switch (_a.label) { + case 0: + return css = getCss(), + html = getHtml(this.getGameLogoUrl(), this.options.gameTitle), + head = document.head || document.getElementsByTagName("head")[0], + (style = document.createElement("style")).type = "text/css", + style.styleSheet ? style.styleSheet.cssText = css : style.appendChild(document.createTextNode(css)), + head.appendChild(style), + (css = document.createElement("div")).innerHTML = html, + css.id = "h5branding-container", + (head = document.body || document.getElementsByTagName("body")[0]).insertBefore(css, head.firstChild), + this.circleLoader = new progressbar.Circle("#h5branding-bar",{ + strokeWidth: 3, + color: this.options.barColor + }), + (style = document.getElementById("h5branding-version")) && (style.innerHTML = this.options.version), + [4, this.loadLibs()]; + case 1: + return _a.sent(), + [4, Utils.loadHost()]; + case 2: + return _a.sent(), + [4, this.loadBranding()]; + case 3: + return _a.sent(), + this.loaded = !0, + [2] + } + }) + }) + } + , + SplashLoader.prototype.loadBranding = function() { + return __awaiter(this, void 0, void 0, function() { + var background, background, logo; + return __generator(this, function(_a) { + switch (_a.label) { + case 0: + return [4, Branding.preload(Date.now().toString())]; + case 1: + return _a.sent(), + (background = document.getElementById("h5branding-background")) && (background.style.backgroundColor = Branding.brandingBackgroundColor), + (background = document.getElementById("h5branding-logo")) && Utils.getBrandingDomain() !== exports.BrandingDomain.Neutral && ((logo = document.createElement("img")).src = Branding.brandingLogoUrl.replace("_small", ""), + background.appendChild(logo)), + [2] + } + }) + }) + } + , + SplashLoader.prototype.loadLibs = function() { + var _this = this; + var scripts = this.options.libs.map(function(url, index) { + return Loader.instance.loadScript(url, !0, function() { + _this.setScriptloadProgress(scripts.length, index + 1) + }) + }); + return Promise.all(scripts) + } + , + Object.defineProperty(SplashLoader.prototype, "bannerAllowed", { + get: function() { + var width = document.body.clientWidth; + var height = document.body.clientHeight; + return this.progress < 100 && !(height < width && height <= 460) && !(width < 600 && height < 850) + }, + enumerable: !1, + configurable: !0 + }), + SplashLoader.prototype.showBanner = function() { + var banner; + return this.bannerAllowed && (banner = document.getElementById("h5branding-ad")) ? (banner.style.display = "inline-flex", + banner) : null + } + , + SplashLoader.prototype.setScriptloadProgress = function(maxScripts, increment) { + var progress; + this.circleLoader.animate(.3 * increment / maxScripts, null, function() {}) + } + , + SplashLoader.prototype.setLoadProgress = function(progress) { + var _this = this; + var button_1; + this.loaded && (100 === (this.progress = progress = 30 + .7 * progress) ? (button_1 = document.querySelector("#h5branding-button"), + this.circleLoader.animate(1, null, function() { + h5branding.SplashLoader.getInstance().onPlayButtonClick(); + !Utils.inGDGameZone() && button_1 && !0 === _this.showPlayButton ? button_1.style.display = "block" : !Utils.inGDGameZone() && !1 !== _this.showPlayButton || _this.onPlayButtonClick() + })) : this.circleLoader.animate(progress / 100, null, function() {})) + } + , + SplashLoader.prototype.setButtonCallback = function(cb) { + this.buttonCallback = cb + } + , + SplashLoader.prototype.onPlayButtonClick = function() { + this.buttonCallback && this.buttonCallback() + } + , + SplashLoader.prototype.destroy = function() { + var element = document.querySelector("#h5branding-container"); + null !== element && null !== element.parentNode && element.parentNode.removeChild(element) + } + , + SplashLoader.prototype.getGameLogoUrl = function() { + return "assets/icon.jpeg" + } + , + SplashLoader + }(); + exports.Branding = Branding, + exports.Domain = Domain, + exports.Hosts = Hosts, + exports.SplashLoader = BrandingDomain, + exports.Utils = Utils, + Object.defineProperty(exports, "__esModule", { + value: !0 + }) +}), +(()=>{ + var __webpack_modules__ = { + 34: module=>{ + "use strict"; + var has = Object.prototype.hasOwnProperty + , prefix = "~"; + function Events() {} + function EE(fn, context, once) { + this.fn = fn, + this.context = context, + this.once = once || !1 + } + function addListener(emitter, event, fn, context, once) { + if ("function" != typeof fn) + throw new TypeError("The listener must be a function"); + var fn = new EE(fn,context || emitter,once) + , context = prefix ? prefix + event : event; + return emitter._events[context] ? emitter._events[context].fn ? emitter._events[context] = [emitter._events[context], fn] : emitter._events[context].push(fn) : (emitter._events[context] = fn, + emitter._eventsCount++), + emitter + } + function clearEvent(emitter, evt) { + 0 == --emitter._eventsCount ? emitter._events = new Events : delete emitter._events[evt] + } + function EventEmitter() { + this._events = new Events, + this._eventsCount = 0 + } + Object.create && (Events.prototype = Object.create(null), + (new Events).__proto__ || (prefix = !1)), + EventEmitter.prototype.eventNames = function eventNames() { + var names = [], events, name; + if (0 === this._eventsCount) + return names; + for (name in events = this._events) + has.call(events, name) && names.push(prefix ? name.slice(1) : name); + return Object.getOwnPropertySymbols ? names.concat(Object.getOwnPropertySymbols(events)) : names + } + , + EventEmitter.prototype.listeners = function listeners(event) { + var event = prefix ? prefix + event : event + , handlers = this._events[event]; + if (!handlers) + return []; + if (handlers.fn) + return [handlers.fn]; + for (var i = 0, l = handlers.length, ee = new Array(l); i < l; i++) + ee[i] = handlers[i].fn; + return ee + } + , + EventEmitter.prototype.listenerCount = function listenerCount(event) { + var event = prefix ? prefix + event : event + , event = this._events[event]; + return event ? event.fn ? 1 : event.length : 0 + } + , + EventEmitter.prototype.emit = function emit(event, a1, a2, a3, a4, a5) { + var evt = prefix ? prefix + event : event; + if (!this._events[evt]) + return !1; + var listeners = this._events[evt], len = arguments.length, args, i; + if (listeners.fn) { + switch (listeners.once && this.removeListener(event, listeners.fn, void 0, !0), + len) { + case 1: + return listeners.fn.call(listeners.context), + !0; + case 2: + return listeners.fn.call(listeners.context, a1), + !0; + case 3: + return listeners.fn.call(listeners.context, a1, a2), + !0; + case 4: + return listeners.fn.call(listeners.context, a1, a2, a3), + !0; + case 5: + return listeners.fn.call(listeners.context, a1, a2, a3, a4), + !0; + case 6: + return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), + !0 + } + for (i = 1, + args = new Array(len - 1); i < len; i++) + args[i - 1] = arguments[i]; + listeners.fn.apply(listeners.context, args) + } else { + var length = listeners.length, j; + for (i = 0; i < length; i++) + switch (listeners[i].once && this.removeListener(event, listeners[i].fn, void 0, !0), + len) { + case 1: + listeners[i].fn.call(listeners[i].context); + break; + case 2: + listeners[i].fn.call(listeners[i].context, a1); + break; + case 3: + listeners[i].fn.call(listeners[i].context, a1, a2); + break; + case 4: + listeners[i].fn.call(listeners[i].context, a1, a2, a3); + break; + default: + if (!args) + for (j = 1, + args = new Array(len - 1); j < len; j++) + args[j - 1] = arguments[j]; + listeners[i].fn.apply(listeners[i].context, args) + } + } + return !0 + } + , + EventEmitter.prototype.on = function on(event, fn, context) { + return addListener(this, event, fn, context, !1) + } + , + EventEmitter.prototype.once = function once(event, fn, context) { + return addListener(this, event, fn, context, !0) + } + , + EventEmitter.prototype.removeListener = function removeListener(event, fn, context, once) { + var event = prefix ? prefix + event : event; + if (this._events[event]) + if (fn) { + var listeners = this._events[event]; + if (listeners.fn) + listeners.fn !== fn || once && !listeners.once || context && listeners.context !== context || clearEvent(this, event); + else { + for (var i = 0, events = [], length = listeners.length; i < length; i++) + (listeners[i].fn !== fn || once && !listeners[i].once || context && listeners[i].context !== context) && events.push(listeners[i]); + events.length ? this._events[event] = 1 === events.length ? events[0] : events : clearEvent(this, event) + } + } else + clearEvent(this, event); + return this + } + , + EventEmitter.prototype.removeAllListeners = function removeAllListeners(event) { + var event; + return event ? (event = prefix ? prefix + event : event, + this._events[event] && clearEvent(this, event)) : (this._events = new Events, + this._eventsCount = 0), + this + } + , + EventEmitter.prototype.off = EventEmitter.prototype.removeListener, + EventEmitter.prototype.addListener = EventEmitter.prototype.on, + EventEmitter.prefixed = prefix, + module.exports = EventEmitter.EventEmitter = EventEmitter + } + , + 729: (module,exports,__webpack_require__)=>{ + var __webpack_require__, exports; + __webpack_require__ = [__webpack_require__, exports, __webpack_require__(548), __webpack_require__(498)], + void 0 !== (exports = function(require, exports, AdWrapper_1, types_1) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: !0 + }), + exports.AdType = exports.AdEvents = exports.ProviderTypes = exports.GameDistributionBannerSize = exports.GameDistributionAlignment = exports.AdWrapper = void 0, + Object.defineProperty(exports, "AdWrapper", { + enumerable: !0, + get: function() { + return AdWrapper_1.AdWrapper + } + }), + Object.defineProperty(exports, "GameDistributionAlignment", { + enumerable: !0, + get: function() { + return types_1.GameDistributionAlignment + } + }), + Object.defineProperty(exports, "GameDistributionBannerSize", { + enumerable: !0, + get: function() { + return types_1.GameDistributionBannerSize + } + }), + Object.defineProperty(exports, "ProviderTypes", { + enumerable: !0, + get: function() { + return types_1.ProviderTypes + } + }), + Object.defineProperty(exports, "AdEvents", { + enumerable: !0, + get: function() { + return types_1.AdEvents + } + }), + Object.defineProperty(exports, "AdType", { + enumerable: !0, + get: function() { + return types_1.AdType + } + }) + } + .apply(exports, __webpack_require__)) && (module.exports = exports) + } + , + 470: (module,exports,__webpack_require__)=>{ + var __webpack_require__, exports; + __webpack_require__ = [__webpack_require__, exports, __webpack_require__(12)], + void 0 !== (exports = function(require, exports, shared_1) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: !0 + }), + exports.JioAdProvider = void 0; + var JioAdProvider = function() { + function JioAdProvider(config) { + this.adsEnabled = !1; + var adSpotInterstitial = config.adSpotInterstitial + , adSpotRewardedVideo = config.adSpotRewardedVideo + , config = config.gamePackage; + try { + window.adSpotInterstitial = adSpotInterstitial, + window.adSpotRewardedVideo = adSpotRewardedVideo, + window.isAdReady = !1, + window.isRVReady = !1, + window.isINSReady = !1, + window.gamePackage = config + } catch (err) { + console.log("Could not initialize Jio Games SDK", err) + } + } + return JioAdProvider.prototype.setManager = function(manager) { + this.adManager = manager + } + , + JioAdProvider.prototype.showAd = function(adType, adSpotKey) { + var _this = this; + if (void 0 === adType && (adType = shared_1.AdType.interstitial), + this.adAvailable(adType)) { + if (window.hasOwnProperty("onAdView") && (window.onAdView, + 1) && (window.onAdView = function(cbAdSpot) { + setTimeout(function() { + console.log("JioGames ads: onAdView " + cbAdSpot), + _this.resumeGameplay() + }, 2e3) + } + ), + window.hasOwnProperty("onAdClosed") && (window.onAdClosed, + 1) && (window.onAdClosed = function(data, pIsVideoCompleted, pIsEligibleForReward) { + var localData = data.split(","); + var data = data; + var pIsVideoCompleted = pIsVideoCompleted; + var pIsEligibleForReward = pIsEligibleForReward; + null != localData && 1 < localData.length && (data = localData[0].trim(), + pIsVideoCompleted = Boolean(localData[1].trim()), + pIsEligibleForReward = Boolean(localData[2].trim())), + data === window.adSpotInterstitial && (window.isAdReady = !1), + data === window.adSpotRewardedVideo && (window.isRVReady = !1, + pIsEligibleForReward) && pIsVideoCompleted && _this.adManager.emit(shared_1.AdEvents.AD_REWARDED), + setTimeout(function() { + console.log("JioGames ads: onAdClose"), + _this.resumeGameplay() + }, 3e3) + } + ), + adType === shared_1.AdType.interstitial && window.hasOwnProperty("showAdMidRoll") && (window.showAdMidRoll, + 1)) + try { + window.adSpotInterstitial = adSpotKey, + window.showAdMidRoll(adSpotKey, window.gamePackage) + } catch (e) { + this.resumeGameplay(), + console.log("Error caching midroll ads") + } + if (adType === shared_1.AdType.rewarded && window.hasOwnProperty("showAdRewardedVideo") && (window.showAdRewardedVideo, + 1)) + try { + window.adSpotRewardedVideo = adSpotKey, + window.showAdRewardedVideo(adSpotKey, window.gamePackage) + } catch (e) { + this.resumeGameplay(), + console.log("Error caching rewarded ads") + } + } else + console.log("Cannot show Jio ads; Ads were not preloaded or failed to load. Resuming game"), + this.resumeGameplay() + } + , + JioAdProvider.prototype.resumeGameplay = function() { + this.adManager.emit(shared_1.AdEvents.CONTENT_RESUMED) + } + , + JioAdProvider.prototype.preloadAd = function(adType, adSpotKey) { + if (void 0 === adType && (adType = shared_1.AdType.interstitial), + console.log("Calling cache Jio Ad"), + adType === shared_1.AdType.interstitial && window.hasOwnProperty("cacheAdMidRoll") && (window.cacheAdMidRoll, + 1)) + try { + window.adSpotInterstitial = adSpotKey, + window.cacheAdMidRoll(adSpotKey, window.gamePackage) + } catch (e) { + console.log("Error caching midroll ads") + } + if (adType === shared_1.AdType.rewarded && window.hasOwnProperty("cacheAdRewardedVideo") && (window.cacheAdRewardedVideo, + 1)) + try { + window.adSpotRewardedVideo = adSpotKey, + window.cacheAdRewardedVideo(adSpotKey, window.gamePackage) + } catch (e) { + console.log("Error cacheAdRewardedVideo of Jio rewarded ads") + } + window.hasOwnProperty("onAdPrepared") && (window.onAdPrepared, + 1) && (window.onAdPrepared = function(preparedAdSpotKey) { + try { + preparedAdSpotKey === window.adSpotInterstitial && (window.isAdReady = !0), + preparedAdSpotKey === window.adSpotRewardedVideo && (window.isRVReady = !0) + } catch (e) { + console.log("Error onAdPrepared for Jio rewarded ads") + } + } + ), + window.hasOwnProperty("onAdFailedToLoad") && (window.onAdFailedToLoad, + 1) && (window.onAdFailedToLoad = function(data, pDescription) { + var localData = data.split(","); + var failedAdSpotKey = data; + var pDescription = pDescription; + null != localData && 1 < localData.length && (failedAdSpotKey = localData[0].trim(), + pDescription = localData[1].trim()); + try { + failedAdSpotKey === window.adSpotInterstitial && (window.isAdReady = !1), + failedAdSpotKey === window.adSpotRewardedVideo && (window.isRVReady = !1), + console.log("JioGames: onAdFailedToLoad => ".concat(data.toString(), " => ").concat(pDescription)) + } catch (e) { + console.log("Error loading Jio ads") + } + } + ) + } + , + JioAdProvider.prototype.destroyAd = function() {} + , + JioAdProvider.prototype.hideAd = function() {} + , + JioAdProvider.prototype.adAvailable = function(adType) { + return !0 + } + , + JioAdProvider + }(); + exports.JioAdProvider = JioAdProvider + } + .apply(exports, __webpack_require__)) && (module.exports = exports) + } + , + 766: (module,exports,__webpack_require__)=>{ + var __webpack_require__, exports; + __webpack_require__ = [__webpack_require__, exports, __webpack_require__(470)], + void 0 !== (exports = function(require, exports, JioAdProvider_1) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: !0 + }), + exports.JioAdProvider = void 0, + Object.defineProperty(exports, "JioAdProvider", { + enumerable: !0, + get: function() { + return JioAdProvider_1.JioAdProvider + } + }) + } + .apply(exports, __webpack_require__)) && (module.exports = exports) + } + , + 110: (module,exports,__webpack_require__)=>{ + var __webpack_require__, exports; + __webpack_require__ = [__webpack_require__, exports, __webpack_require__(12)], + void 0 !== (exports = function(require, exports, shared_1) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: !0 + }), + exports.AdFreeUntrackedProvider = void 0; + var AdFreeUntrackedProvider = function() { + function AdFreeUntrackedProvider() { + this.adsEnabled = !1 + } + return AdFreeUntrackedProvider.prototype.setManager = function(manager) { + this.adManager = manager + } + , + AdFreeUntrackedProvider.prototype.showAd = function(adType) { + void 0 === adType && (adType = shared_1.AdType.interstitial), + this.resumeGameplay() + } + , + AdFreeUntrackedProvider.prototype.resumeGameplay = function() { + this.adManager.emit(shared_1.AdEvents.CONTENT_RESUMED) + } + , + AdFreeUntrackedProvider.prototype.preloadAd = function(adType) { + void 0 === adType && (adType = shared_1.AdType.interstitial) + } + , + AdFreeUntrackedProvider.prototype.destroyAd = function() {} + , + AdFreeUntrackedProvider.prototype.hideAd = function() {} + , + AdFreeUntrackedProvider.prototype.adAvailable = function(adType) { + return !0 + } + , + AdFreeUntrackedProvider + }(); + exports.AdFreeUntrackedProvider = AdFreeUntrackedProvider + } + .apply(exports, __webpack_require__)) && (module.exports = exports) + } + , + 670: (module,exports,__webpack_require__)=>{ + var __webpack_require__, exports; + __webpack_require__ = [__webpack_require__, exports, __webpack_require__(12)], + void 0 !== (exports = function(require, exports, shared_1) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: !0 + }), + exports.DummyProvider = void 0; + var DummyProvider = function() { + function DummyProvider() { + this.adsEnabled = !1 + } + return DummyProvider.prototype.setManager = function(manager) { + this.adManager = manager, + this.adsEnabled = !0 + } + , + DummyProvider.prototype.showAd = function(adType) { + var _this = this; + void 0 === adType && (adType = shared_1.AdType.interstitial), + console.log("[Dummy]: Ad type requested = ", adType === shared_1.AdType.interstitial ? "interstitial" : "rewarded"), + this.adManager.emit(shared_1.AdEvents.CONTENT_PAUSED); + var num = Math.floor(2 * Math.random()); + console.log("[Dummy]:Ad Available =>", 0 === num), + 1 === num ? (console.log("[Dummy]:AD ERROR / UNAVAILABLE"), + setTimeout(function() { + console.log("[Dummy]: Resuming game"), + _this.resumeGameplay() + }, 200)) : (adType === shared_1.AdType.rewarded && setTimeout(function() { + console.log("[Dummy]: Reward Claimed for rewarded ad"), + _this.adManager.emit(shared_1.AdEvents.AD_REWARDED) + }, 100), + setTimeout(function() { + console.log("[Dummy]: Finished watching ad"), + console.log("[Dummy]: Resuming game"), + _this.resumeGameplay() + }, 200)) + } + , + DummyProvider.prototype.resumeGameplay = function() { + this.adManager.emit(shared_1.AdEvents.CONTENT_RESUMED) + } + , + DummyProvider.prototype.preloadAd = function(adType) { + void 0 === adType && (adType = shared_1.AdType.interstitial) + } + , + DummyProvider.prototype.destroyAd = function() {} + , + DummyProvider.prototype.hideAd = function() {} + , + DummyProvider.prototype.adAvailable = function(adType) { + return !0 + } + , + DummyProvider + }(); + exports.DummyProvider = DummyProvider + } + .apply(exports, __webpack_require__)) && (module.exports = exports) + } + , + 474: (module,exports,__webpack_require__)=>{ + var __webpack_require__, exports; + __webpack_require__ = [__webpack_require__, exports, __webpack_require__(12)], + void 0 !== (exports = function(require, exports, shared_1) { + "use strict"; + var GameDistributionAdType; + Object.defineProperty(exports, "__esModule", { + value: !0 + }), + exports.GameDistribution = exports.GameDistributionAdType = void 0, + function(GameDistributionAdType) { + GameDistributionAdType.interstitial = "interstitial", + GameDistributionAdType.rewarded = "rewarded", + GameDistributionAdType.display = "display" + }(GameDistributionAdType = exports.GameDistributionAdType || (exports.GameDistributionAdType = {})); + var GameDistribution = function() { + function GameDistribution(gameId) { + var _this = this; + if (this.adsEnabled = !1, + this.hasRewarded = !1, + this.adShowing = !1, + !gameId) + throw new Error("Valid game id is not provided for GD Ad provider"); + var gameId, s, id, fjs; + window.GD_OPTIONS = { + gameId: gameId, + advertisementSettings: { + autoplay: !1 + }, + onEvent: function(event) { + switch (event.name) { + case "SDK_GAME_PAUSE": + _this.adManager.emit(shared_1.AdEvents.CONTENT_PAUSED); + break; + case "SDK_ERROR": + _this.adManager.emit(shared_1.AdEvents.CONTENT_RESUMED); + break; + case "SDK_READY": + _this.sdkLoaded(); + break; + case "SDK_REWARDED_WATCH_COMPLETE": + _this.adManager.emit(shared_1.AdEvents.AD_REWARDED), + _this.hasRewarded = !1; + break; + default: + break + } + } + }, + gameId = document, + s = "script", + id = "gamedistribution-jssdk", + fjs = gameId.getElementsByTagName(s)[0], + gameId.getElementById(id) || ((gameId = gameId.createElement(s)).id = id, + gameId.src = "patch/js/gd-sdk.js?html5.api.gamedistribution.com/main.min.js", + fjs.parentNode && fjs.parentNode.insertBefore(gameId, fjs)) + } + return GameDistribution.prototype.setManager = function(manager) { + this.adManager = manager, + this.adManager.emit(shared_1.AdEvents.AD_PROVIDER_LOADED) + } + , + GameDistribution.prototype.sdkLoaded = function() { + this.adsEnabled = !0 + } + , + GameDistribution.prototype.showAd = function(adType) { + var _this = this; + this.adsEnabled ? void 0 === window.gdsdk || window.gdsdk && void 0 === window.gdsdk.showAd ? (this.adsEnabled = !1, + this.adManager.emit(shared_1.AdEvents.CONTENT_RESUMED)) : window.gdsdk.showAd(adType === shared_1.AdType.rewarded ? GameDistributionAdType.rewarded : GameDistributionAdType.interstitial).then(function() { + _this.adManager.emit(shared_1.AdEvents.CONTENT_RESUMED) + }).catch(function() { + adType === shared_1.AdType.rewarded && _this.hasRewarded && (_this.hasRewarded = !1), + _this.adManager.emit(shared_1.AdEvents.CONTENT_RESUMED) + }) : this.adManager.emit(shared_1.AdEvents.CONTENT_RESUMED) + } + , + GameDistribution.prototype.preloadAd = function(adType) { + var _this = this; + !this.hasRewarded && this.adsEnabled && adType === shared_1.AdType.rewarded && (console.log("preloading ad"), + window.gdsdk.preloadAd(GameDistributionAdType.rewarded).then(function() { + _this.hasRewarded = !0, + _this.adManager.emit(shared_1.AdEvents.AD_LOADED, adType) + })) + } + , + GameDistribution.prototype.adAvailable = function(adType) { + return adType !== shared_1.AdType.rewarded || this.hasRewarded + } + , + GameDistribution.prototype.destroyAd = function() {} + , + GameDistribution.prototype.hideAd = function() {} + , + GameDistribution + }(); + exports.GameDistribution = GameDistribution + } + .apply(exports, __webpack_require__)) && (module.exports = exports) + } + , + 444: (module,exports,__webpack_require__)=>{ + var __webpack_require__, exports; + __webpack_require__ = [__webpack_require__, exports, __webpack_require__(474), __webpack_require__(869)], + void 0 !== (exports = function(require, exports, GameDistribution_1, gamedistribution_1) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: !0 + }), + exports.GameDistributionBanner = void 0; + var GameDistributionBanner = function() { + function GameDistributionBanner() { + this.scaleFactor = 1, + this.offsetX = 0, + this.offsetY = 0, + this.element = document.createElement("div"), + this.element.style.position = "absolute", + this.element.style.top = "0px", + this.element.style.left = "0px", + this.element.id = "banner-".concat(Date.now()).concat(1e7 * Math.random() | 0), + document.body.appendChild(this.element) + } + return GameDistributionBanner.prototype.loadBanner = function() { + return void 0 === window.gdsdk ? Promise.reject("GD Sdk not available, probably due to adblocker") : window.gdsdk.showAd(GameDistribution_1.GameDistributionAdType.display, { + containerId: this.element.id + }) + } + , + GameDistributionBanner.prototype.destroy = function() { + document.body.removeChild(this.element), + this.resizeListener && window.removeEventListener("resize", this.resizeListener), + delete this.element, + delete this.parent, + delete this.alignment + } + , + GameDistributionBanner.prototype.alignIn = function(element, position) { + var _this = this; + this.parent ? console.warn("Banner already aligned, ignoring...") : (this.parent = element, + this.alignment = position, + this.resizeListener = function() { + return _this.resize() + } + , + window.addEventListener("resize", this.resizeListener), + this.resize()) + } + , + GameDistributionBanner.prototype.setOffset = function(x, y) { + void 0 === y && (y = 0), + this.offsetX = x = void 0 === x ? 0 : x, + this.offsetY = y, + this.resize() + } + , + GameDistributionBanner.prototype.resize = function() { + if (this.parent) { + var parentBoundingRect = this.parent.getBoundingClientRect(); + switch (this.alignment) { + case gamedistribution_1.GameDistributionAlignment.TopLeft: + this.position(parentBoundingRect.left, parentBoundingRect.top); + break; + case gamedistribution_1.GameDistributionAlignment.TopCenter: + this.position(parentBoundingRect.left + parentBoundingRect.width / 2 - this.width * this.scaleFactor / 2, parentBoundingRect.top); + break; + case gamedistribution_1.GameDistributionAlignment.TopRight: + this.position(parentBoundingRect.left + parentBoundingRect.width - this.width * this.scaleFactor, parentBoundingRect.top); + break; + case gamedistribution_1.GameDistributionAlignment.CenterLeft: + this.position(parentBoundingRect.left, parentBoundingRect.top + parentBoundingRect.height / 2 - this.height * this.scaleFactor / 2); + break; + case gamedistribution_1.GameDistributionAlignment.Center: + this.position(parentBoundingRect.left + parentBoundingRect.width / 2 - this.width * this.scaleFactor / 2, parentBoundingRect.top + parentBoundingRect.height / 2 - this.height * this.scaleFactor / 2); + break; + case gamedistribution_1.GameDistributionAlignment.CenterRight: + this.position(parentBoundingRect.left + parentBoundingRect.width - this.width * this.scaleFactor, parentBoundingRect.top + parentBoundingRect.height / 2 - this.height * this.scaleFactor / 2); + break; + case gamedistribution_1.GameDistributionAlignment.BottomLeft: + this.position(parentBoundingRect.left, parentBoundingRect.top + parentBoundingRect.height - this.height * this.scaleFactor); + break; + case gamedistribution_1.GameDistributionAlignment.BottomCenter: + this.position(parentBoundingRect.left + parentBoundingRect.width / 2 - this.width * this.scaleFactor / 2, parentBoundingRect.top + parentBoundingRect.height - this.height * this.scaleFactor); + break; + case gamedistribution_1.GameDistributionAlignment.BottomRight: + this.position(parentBoundingRect.left + parentBoundingRect.width - this.width * this.scaleFactor, parentBoundingRect.top + parentBoundingRect.height - this.height * this.scaleFactor); + break + } + } + } + , + GameDistributionBanner.prototype.setSize = function(size) { + var width; + var height; + switch (size) { + default: + case gamedistribution_1.GameDistributionBannerSize.LargeRectangle: + width = 336, + height = 280; + break; + case gamedistribution_1.GameDistributionBannerSize.MediumRectangle: + width = 300, + height = 250; + break; + case gamedistribution_1.GameDistributionBannerSize.Billboard: + width = 970, + height = 250; + break; + case gamedistribution_1.GameDistributionBannerSize.Leaderboard: + width = 728, + height = 90; + break; + case gamedistribution_1.GameDistributionBannerSize.Skyscraper: + width = 120, + height = 600; + break; + case gamedistribution_1.GameDistributionBannerSize.WideSkyscraper: + width = 160, + height = 600; + break + } + this.width = width, + this.height = height, + this.element.style.width = "".concat(width, "px"), + this.element.style.height = "".concat(height, "px") + } + , + GameDistributionBanner.prototype.position = function(x, y) { + this.element.style.left = "".concat(x + this.offsetX, "px"), + this.element.style.top = "".concat(y + this.offsetY, "px") + } + , + GameDistributionBanner.prototype.scale = function(factor) { + this.element.style.transformOrigin = "left top", + this.scaleFactor = factor, + this.element.style.transform = "scale(".concat(factor, ")") + } + , + GameDistributionBanner + }(); + exports.GameDistributionBanner = GameDistributionBanner + } + .apply(exports, __webpack_require__)) && (module.exports = exports) + } + , + 654: (module,exports,__webpack_require__)=>{ + var __webpack_require__, exports; + __webpack_require__ = [__webpack_require__, exports, __webpack_require__(12)], + void 0 !== (exports = function(require, exports, shared_1) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: !0 + }), + exports.YandexAdProvider = void 0; + var YandexAdProvider = function() { + function YandexAdProvider(partnerID) { + var _this = this; + var d, s, id, fjs; + this.adsEnabled = !1, + d = document, + s = "script", + id = "yandex-jssdk", + fjs = d.getElementsByTagName(s)[0], + d.getElementById(id) || ((d = d.createElement(s)).addEventListener("load", function() { + _this.initialize() + }), + d.id = id, + d.src = "//yandex.ru/games/sdk/v2", + fjs.parentNode.insertBefore(d, fjs)) + } + return YandexAdProvider.prototype.setManager = function(manager) { + this.adManager = manager + } + , + YandexAdProvider.prototype.showAd = function(adType) { + var _this = this; + var _a, _a, _a, adType, _a, _a, adType, _a; + void 0 === adType && (adType = shared_1.AdType.interstitial), + this.adsEnabled && window.hasOwnProperty("_YaSDK") ? adType === shared_1.AdType.interstitial && null != (_a = null == (_a = window._YaSDK) ? void 0 : _a.adv) && _a.adOpened || (adType === shared_1.AdType.rewarded ? null != (_a = null == (adType = null == (_a = window._YaSDK) ? void 0 : _a.adv) ? void 0 : adType.showRewardedVideo) && _a.call(adType, { + callbacks: { + onOpen: function() { + console.log("Video ad open."), + _this.adManager.emit(shared_1.AdEvents.CONTENT_PAUSED) + }, + onRewarded: function() { + console.log("Rewarded!"), + _this.adManager.emit(shared_1.AdEvents.AD_REWARDED) + }, + onClose: function() { + console.log("Video ad closed."), + _this.resumeGameplay() + }, + onError: function(e) { + console.log("Error while open video ad:", e), + _this.resumeGameplay() + } + } + }) : null != (_a = null == (adType = null == (_a = window._YaSDK) ? void 0 : _a.adv) ? void 0 : adType.showFullscreenAdv) && _a.call(adType, { + callbacks: { + onOpen: function() { + console.log("Video ad open."), + _this.adManager.emit(shared_1.AdEvents.CONTENT_PAUSED) + }, + onClose: function() { + _this.resumeGameplay() + }, + onError: function() { + _this.resumeGameplay() + } + } + })) : this.resumeGameplay() + } + , + YandexAdProvider.prototype.initialize = function() { + var _this = this; + window.YaGames.init().then(function(ysdk) { + window._YaSDK = ysdk, + _this.adsEnabled = !0 + }) + } + , + YandexAdProvider.prototype.resumeGameplay = function() { + this.adManager.emit(shared_1.AdEvents.CONTENT_RESUMED) + } + , + YandexAdProvider.prototype.preloadAd = function(adType) { + void 0 === adType && (adType = shared_1.AdType.interstitial), + this.adManager.emit(shared_1.AdEvents.AD_LOADED, adType) + } + , + YandexAdProvider.prototype.destroyAd = function() {} + , + YandexAdProvider.prototype.hideAd = function() {} + , + YandexAdProvider.prototype.adAvailable = function(adType) { + return !0 + } + , + YandexAdProvider + }(); + exports.YandexAdProvider = YandexAdProvider + } + .apply(exports, __webpack_require__)) && (module.exports = exports) + } + , + 563: (module,exports,__webpack_require__)=>{ + var __webpack_require__, exports; + __webpack_require__ = [__webpack_require__, exports, __webpack_require__(110), __webpack_require__(670), __webpack_require__(474), __webpack_require__(444), __webpack_require__(654)], + void 0 !== (exports = function(require, exports, AdFreeUntrackedProvider_1, DummyProvider_1, GameDistribution_1, GameDistributionBanner_1, YandexAdProvider_1) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: !0 + }), + exports.YandexAdProvider = exports.GameDistributionBanner = exports.GameDistribution = exports.DummyProvider = exports.AdFreeUntrackedProvider = void 0, + Object.defineProperty(exports, "AdFreeUntrackedProvider", { + enumerable: !0, + get: function() { + return AdFreeUntrackedProvider_1.AdFreeUntrackedProvider + } + }), + Object.defineProperty(exports, "DummyProvider", { + enumerable: !0, + get: function() { + return DummyProvider_1.DummyProvider + } + }), + Object.defineProperty(exports, "GameDistribution", { + enumerable: !0, + get: function() { + return GameDistribution_1.GameDistribution + } + }), + Object.defineProperty(exports, "GameDistributionBanner", { + enumerable: !0, + get: function() { + return GameDistributionBanner_1.GameDistributionBanner + } + }), + Object.defineProperty(exports, "YandexAdProvider", { + enumerable: !0, + get: function() { + return YandexAdProvider_1.YandexAdProvider + } + }) + } + .apply(exports, __webpack_require__)) && (module.exports = exports) + } + , + 869: (module,exports,__webpack_require__)=>{ + var __WEBPACK_AMD_DEFINE_ARRAY__, __webpack_require__; + void 0 !== (__webpack_require__ = function(require, exports) { + "use strict"; + var GameDistributionBannerSize; + var GameDistributionAlignment; + Object.defineProperty(exports, "__esModule", { + value: !0 + }), + exports.GameDistributionAlignment = exports.GameDistributionBannerSize = void 0, + function(GameDistributionBannerSize) { + GameDistributionBannerSize[GameDistributionBannerSize.LargeRectangle = 0] = "LargeRectangle", + GameDistributionBannerSize[GameDistributionBannerSize.MediumRectangle = 1] = "MediumRectangle", + GameDistributionBannerSize[GameDistributionBannerSize.Billboard = 2] = "Billboard", + GameDistributionBannerSize[GameDistributionBannerSize.Leaderboard = 3] = "Leaderboard", + GameDistributionBannerSize[GameDistributionBannerSize.Skyscraper = 4] = "Skyscraper", + GameDistributionBannerSize[GameDistributionBannerSize.WideSkyscraper = 5] = "WideSkyscraper" + }(GameDistributionBannerSize = exports.GameDistributionBannerSize || (exports.GameDistributionBannerSize = {})), + function(GameDistributionAlignment) { + GameDistributionAlignment[GameDistributionAlignment.TopLeft = 0] = "TopLeft", + GameDistributionAlignment[GameDistributionAlignment.TopCenter = 1] = "TopCenter", + GameDistributionAlignment[GameDistributionAlignment.TopRight = 2] = "TopRight", + GameDistributionAlignment[GameDistributionAlignment.CenterLeft = 3] = "CenterLeft", + GameDistributionAlignment[GameDistributionAlignment.Center = 4] = "Center", + GameDistributionAlignment[GameDistributionAlignment.CenterRight = 5] = "CenterRight", + GameDistributionAlignment[GameDistributionAlignment.BottomLeft = 6] = "BottomLeft", + GameDistributionAlignment[GameDistributionAlignment.BottomCenter = 7] = "BottomCenter", + GameDistributionAlignment[GameDistributionAlignment.BottomRight = 8] = "BottomRight" + }(GameDistributionAlignment = exports.GameDistributionAlignment || (exports.GameDistributionAlignment = {})) + } + .apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports])) && (module.exports = __webpack_require__) + } + , + 498: (module,exports,__webpack_require__)=>{ + var __webpack_require__, exports; + __webpack_require__ = [__webpack_require__, exports, __webpack_require__(12), __webpack_require__(869)], + void 0 !== (exports = function(require, exports, shared_1, gamedistribution_1) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: !0 + }), + exports.GameDistributionAlignment = exports.GameDistributionBannerSize = exports.ProviderTypes = exports.AdType = exports.AdEvents = void 0, + Object.defineProperty(exports, "AdEvents", { + enumerable: !0, + get: function() { + return shared_1.AdEvents + } + }), + Object.defineProperty(exports, "AdType", { + enumerable: !0, + get: function() { + return shared_1.AdType + } + }), + Object.defineProperty(exports, "ProviderTypes", { + enumerable: !0, + get: function() { + return shared_1.ProviderTypes + } + }), + Object.defineProperty(exports, "GameDistributionBannerSize", { + enumerable: !0, + get: function() { + return gamedistribution_1.GameDistributionBannerSize + } + }), + Object.defineProperty(exports, "GameDistributionAlignment", { + enumerable: !0, + get: function() { + return gamedistribution_1.GameDistributionAlignment + } + }) + } + .apply(exports, __webpack_require__)) && (module.exports = exports) + } + , + 12: (module,exports,__webpack_require__)=>{ + var __WEBPACK_AMD_DEFINE_ARRAY__, __webpack_require__; + void 0 !== (__webpack_require__ = function(require, exports) { + "use strict"; + var AdEvents; + var AdType; + var ProviderTypes; + Object.defineProperty(exports, "__esModule", { + value: !0 + }), + exports.ProviderTypes = exports.AdType = exports.AdEvents = void 0, + function(AdEvents) { + AdEvents.CONTENT_PAUSED = "onContentPaused", + AdEvents.CONTENT_RESUMED = "onContentResumed", + AdEvents.AD_PROGRESSION = "onAdProgression", + AdEvents.AD_DISABLED = "onAdsDisabled", + AdEvents.AD_CLICKED = "onAdClicked", + AdEvents.AD_REWARDED = "onAdRewardGranted", + AdEvents.BANNER_SHOWN = "onBannerShown", + AdEvents.BANNER_HIDDEN = "onBannerHidden", + AdEvents.AD_LOADED = "onAdLoaded", + AdEvents.AD_PROVIDER_LOADED = "onAdProviderLoaded" + }(AdEvents = exports.AdEvents || (exports.AdEvents = {})), + function(AdType) { + AdType[AdType.interstitial = 0] = "interstitial", + AdType[AdType.rewarded = 1] = "rewarded", + AdType[AdType.banner = 2] = "banner" + }(AdType = exports.AdType || (exports.AdType = {})), + function(ProviderTypes) { + ProviderTypes.Yandex = "yx", + ProviderTypes.Dummy = "dm", + ProviderTypes.AdFree = "af", + ProviderTypes.GD = "gd", + ProviderTypes.GDBanner = "gdb", + ProviderTypes.Jio = "jio" + }(ProviderTypes = exports.ProviderTypes || (exports.ProviderTypes = {})) + } + .apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports])) && (module.exports = __webpack_require__) + } + , + 548: function(module, exports, __webpack_require__) { + var __webpack_require__, exports; + var __extends = this && this.__extends || (extendStatics = function(d, b) { + return (extendStatics = Object.setPrototypeOf || ({ + __proto__: [] + }instanceof Array ? function(d, b) { + d.__proto__ = b + } + : function(d, b) { + for (var p in b) + Object.prototype.hasOwnProperty.call(b, p) && (d[p] = b[p]) + } + ))(d, b) + } + , + function(d, b) { + if ("function" != typeof b && null !== b) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + function __() { + this.constructor = d + } + extendStatics(d, b), + d.prototype = null === b ? Object.create(b) : (__.prototype = b.prototype, + new __) + } + ); + var extendStatics; + var __importDefault = this && this.__importDefault || function(mod) { + return mod && mod.__esModule ? mod : { + default: mod + } + } + ; + __webpack_require__ = [__webpack_require__, exports, __webpack_require__(34), __webpack_require__(12), __webpack_require__(563), __webpack_require__(766)], + void 0 !== (exports = function(require, exports, eventemitter3_1, shared_1, standard_1, special_1) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: !0 + }), + exports.AdWrapper = void 0; + var eventemitter3_1 = function(_super) { + function AdWrapper(type, id, jioConfig) { + var _this = _super.call(this) || this; + switch (_this.bannerActive = !1, + _this.provider = null, + type) { + case shared_1.ProviderTypes.AdFree: + _this.provider = new standard_1.AdFreeUntrackedProvider; + break; + case shared_1.ProviderTypes.Dummy: + _this.provider = new standard_1.DummyProvider; + break; + case shared_1.ProviderTypes.Yandex: + _this.provider = new standard_1.YandexAdProvider; + break; + case shared_1.ProviderTypes.Jio: + _this.provider = new special_1.JioAdProvider(jioConfig); + break; + default: + case shared_1.ProviderTypes.GD: + _this.provider = new standard_1.GameDistribution(id); + break + } + return _this.provider.setManager(_this), + _this + } + return __extends(AdWrapper, _super), + AdWrapper.prototype.showAd = function(adType) { + var args = []; + for (var _i = 1; _i < arguments.length; _i++) + args[_i - 1] = arguments[_i]; + if (null === this.provider) + throw new Error("Can not request an ad without an provider, please attach an ad provider!"); + args.unshift(adType), + this.provider.showAd.apply(this.provider, args) + } + , + AdWrapper.prototype.createBanner = function() { + var args = []; + for (var _i = 0; _i < arguments.length; _i++) + args[_i] = arguments[_i]; + return this.provider.loadBanner.apply(this.provider, args) + } + , + AdWrapper.prototype.loadBanner = function() { + var args = []; + for (var _i = 0; _i < arguments.length; _i++) + args[_i] = arguments[_i]; + return "function" == typeof this.provider.loadBanner ? this.provider.loadBanner.apply(this.provider, args) : null + } + , + AdWrapper.prototype.preloadAd = function(adType) { + var args = []; + for (var _i = 1; _i < arguments.length; _i++) + args[_i - 1] = arguments[_i]; + if (null === this.provider) + throw new Error("Can not preload an ad without an provider, please attach an ad provider!"); + args.unshift(adType), + this.provider.preloadAd.apply(this.provider, args) + } + , + AdWrapper.prototype.destroyAd = function(adType) { + var args = []; + for (var _i = 1; _i < arguments.length; _i++) + args[_i - 1] = arguments[_i]; + if (null === this.provider) + throw new Error("Can not destroy an ad without an provider, please attach an ad provider!"); + args.unshift(adType), + this.provider.destroyAd.apply(this.provider, args) + } + , + AdWrapper.prototype.hideAd = function(adType) { + var args = []; + for (var _i = 1; _i < arguments.length; _i++) + args[_i - 1] = arguments[_i]; + if (null === this.provider) + throw new Error("Can not hide an ad without an provider, please attach an ad provider!"); + args.unshift(adType), + this.provider.hideAd.apply(this.provider, args) + } + , + AdWrapper.prototype.adsEnabled = function() { + if (null === this.provider) + throw new Error("Can not hide an ad without an provider, please attach an ad provider!"); + return this.provider.adsEnabled + } + , + AdWrapper.prototype.adAvailable = function(adType) { + var args = []; + for (var _i = 1; _i < arguments.length; _i++) + args[_i - 1] = arguments[_i]; + if (null === this.provider) + throw new Error("Can not hide an ad without an provider, please attach an ad provider!"); + return args.unshift(adType), + this.provider.adAvailable.apply(this.provider, args) + } + , + AdWrapper + }((eventemitter3_1 = __importDefault(eventemitter3_1)).default); + exports.AdWrapper = eventemitter3_1 + } + .apply(exports, __webpack_require__)) && (module.exports = exports) + } + }; + var __webpack_module_cache__ = {}; + function __webpack_require__(moduleId) { + var cachedModule = __webpack_module_cache__[moduleId]; + var cachedModule; + return void 0 !== cachedModule || (cachedModule = __webpack_module_cache__[moduleId] = { + exports: {} + }, + __webpack_modules__[moduleId].call(cachedModule.exports, cachedModule, cachedModule.exports, __webpack_require__)), + cachedModule.exports + } + var __webpack_exports__ = __webpack_require__(729); + self.h5ads = __webpack_exports__ +} +)(); +!function(){ + // console.log("--fx--h5branding--", h5branding.SplashLoader.create.toString()); + +}(); diff --git a/vex8/patch/js/azerion-libs-o.js b/vex8/patch/js/azerion-libs-o.js new file mode 100644 index 000000000..8e4e3a80c --- /dev/null +++ b/vex8/patch/js/azerion-libs-o.js @@ -0,0 +1,3650 @@ +var _azerionIntegration = { + gdId: "762c932b4db74c6da0c1d101b2da8be6", + alxType: "std", + advType: "gd", + af: !1, + sa: !1, + la: !1, + bd: 8, + playBtn: !0, + build: { + version: "tc-24", + timeStamp: 1680267092432, + h: "8d828ac6" + } +}; +var libs = []; +var enableAnalytics; +!function(global, factory) { + "object" == typeof exports && "undefined" != typeof module ? factory(exports) : "function" == typeof define && define.amd ? define(["exports"], factory) : factory((global = "undefined" != typeof globalThis ? globalThis : global || self).h5branding = global.h5branding || {}) +}(this, function(exports) { + "use strict"; + var commonjsGlobal = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : {}; + function commonjsRequire() { + throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs") + } + function createCommonjsModule(fn, module) { + return fn(module = { + exports: {} + }, module.exports), + module.exports + } + var es6Promise; + var list; + createCommonjsModule(function(module, exports) { + function objectOrFunction(x) { + var type = typeof x; + return null !== x && ("object" == type || "function" == type) + } + function isFunction(x) { + return "function" == typeof x + } + function setScheduler(scheduleFn) { + customSchedulerFn = scheduleFn + } + function setAsap(asapFn) { + asap = asapFn + } + function useNextTick() { + return function() { + return process.nextTick(flush) + } + } + function useVertxTimer() { + return void 0 !== vertxNext ? function() { + vertxNext(flush) + } + : useSetTimeout() + } + function useMutationObserver() { + var iterations = 0; + var observer = new BrowserMutationObserver(flush); + var node = document.createTextNode(""); + return observer.observe(node, { + characterData: !0 + }), + function() { + node.data = iterations = ++iterations % 2 + } + } + function useMessageChannel() { + var channel = new MessageChannel; + return channel.port1.onmessage = flush, + function() { + return channel.port2.postMessage(0) + } + } + function useSetTimeout() { + var globalSetTimeout = setTimeout; + return function() { + return globalSetTimeout(flush, 1) + } + } + function flush() { + for (var i = 0; i < len; i += 2) { + var callback; + var arg; + (0, + queue[i])(queue[i + 1]), + queue[i] = void 0, + queue[i + 1] = void 0 + } + len = 0 + } + function attemptVertx() { + try { + var vertx = Function("return this")().require("vertx"); + return vertxNext = vertx.runOnLoop || vertx.runOnContext, + useVertxTimer() + } catch (e) { + return useSetTimeout() + } + } + function then(onFulfillment, onRejection) { + var parent = this; + var child = new this.constructor(noop); + void 0 === child[PROMISE_ID] && makePromise(child); + var _state = parent._state; + var callback; + return _state ? (callback = arguments[_state - 1], + asap(function() { + return invokeCallback(_state, child, callback, parent._result) + })) : subscribe(parent, child, onFulfillment, onRejection), + child + } + function resolve$1(object) { + var Constructor = this; + var promise; + return object && "object" == typeof object && object.constructor === this ? object : (resolve(promise = new this(noop), object), + promise) + } + function noop() {} + function selfFulfillment() { + return new TypeError("You cannot resolve a promise with itself") + } + function cannotReturnOwn() { + return new TypeError("A promises callback cannot return that same promise.") + } + function tryThen(then$$1, value, fulfillmentHandler, rejectionHandler) { + try { + then$$1.call(value, fulfillmentHandler, rejectionHandler) + } catch (e) { + return e + } + } + function handleForeignThenable(promise, thenable, then$$1) { + asap(function(promise) { + var sealed = !1; + var error = tryThen(then$$1, thenable, function(value) { + sealed || (sealed = !0, + (thenable !== value ? resolve : fulfill)(promise, value)) + }, function(reason) { + sealed || (sealed = !0, + reject(promise, reason)) + }, "Settle: " + (promise._label || " unknown promise")); + !sealed && error && (sealed = !0, + reject(promise, error)) + }, promise) + } + function handleOwnThenable(promise, thenable) { + thenable._state === FULFILLED ? fulfill(promise, thenable._result) : thenable._state === REJECTED ? reject(promise, thenable._result) : subscribe(thenable, void 0, function(value) { + return resolve(promise, value) + }, function(reason) { + return reject(promise, reason) + }) + } + function handleMaybeThenable(promise, maybeThenable, then$$1) { + maybeThenable.constructor === promise.constructor && then$$1 === then && maybeThenable.constructor.resolve === resolve$1 ? handleOwnThenable(promise, maybeThenable) : void 0 !== then$$1 && isFunction(then$$1) ? handleForeignThenable(promise, maybeThenable, then$$1) : fulfill(promise, maybeThenable) + } + function resolve(promise, value) { + if (promise === value) + reject(promise, selfFulfillment()); + else if (objectOrFunction(value)) { + var then$$1 = void 0; + try { + then$$1 = value.then + } catch (error) { + return void reject(promise, error) + } + handleMaybeThenable(promise, value, then$$1) + } else + fulfill(promise, value) + } + function publishRejection(promise) { + promise._onerror && promise._onerror(promise._result), + publish(promise) + } + function fulfill(promise, value) { + promise._state === PENDING && (promise._result = value, + promise._state = FULFILLED, + 0 !== promise._subscribers.length) && asap(publish, promise) + } + function reject(promise, reason) { + promise._state === PENDING && (promise._state = REJECTED, + promise._result = reason, + asap(publishRejection, promise)) + } + function subscribe(parent, child, onFulfillment, onRejection) { + var _subscribers = parent._subscribers; + var length = _subscribers.length; + parent._onerror = null, + _subscribers[length] = child, + _subscribers[length + FULFILLED] = onFulfillment, + _subscribers[length + REJECTED] = onRejection, + 0 === length && parent._state && asap(publish, parent) + } + function publish(promise) { + var subscribers = promise._subscribers; + var settled = promise._state; + if (0 !== subscribers.length) { + var child = void 0 + , callback = void 0 + , detail = promise._result; + for (var i = 0; i < subscribers.length; i += 3) + child = subscribers[i], + callback = subscribers[i + settled], + child ? invokeCallback(settled, child, callback, detail) : callback(detail); + promise._subscribers.length = 0 + } + } + function invokeCallback(settled, promise, callback, detail) { + var hasCallback = isFunction(callback) + , value = void 0 + , error = void 0 + , succeeded = !0; + if (hasCallback) { + try { + value = callback(detail) + } catch (e) { + succeeded = !1, + error = e + } + if (promise === value) + return void reject(promise, cannotReturnOwn()) + } else + value = detail; + promise._state === PENDING && (hasCallback && succeeded ? resolve(promise, value) : !1 === succeeded ? reject(promise, error) : settled === FULFILLED ? fulfill(promise, value) : settled === REJECTED && reject(promise, value)) + } + function initializePromise(promise, resolver) { + try { + resolver(function resolvePromise(value) { + resolve(promise, value) + }, function rejectPromise(reason) { + reject(promise, reason) + }) + } catch (e) { + reject(promise, e) + } + } + function nextId() { + return id++ + } + function makePromise(promise) { + promise[PROMISE_ID] = id++, + promise._state = void 0, + promise._result = void 0, + promise._subscribers = [] + } + function validationError() { + return new Error("Array Methods must be provided an Array") + } + function all(entries) { + return new Enumerator(this,entries).promise + } + function race(entries) { + var Constructor = this; + return isArray(entries) ? new Constructor(function(resolve, reject) { + var length = entries.length; + for (var i = 0; i < length; i++) + Constructor.resolve(entries[i]).then(resolve, reject) + } + ) : new Constructor(function(_, reject) { + return reject(new TypeError("You must pass an array to race.")) + } + ) + } + function reject$1(reason) { + var Constructor = this; + var promise = new this(noop); + return reject(promise, reason), + promise + } + function needsResolver() { + throw new TypeError("You must pass a resolver function as the first argument to the promise constructor") + } + function needsNew() { + throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.") + } + function Promise(resolver) { + this[PROMISE_ID] = id++, + this._result = this._state = void 0, + this._subscribers = [], + noop !== resolver && ("function" != typeof resolver && needsResolver(), + this instanceof Promise ? initializePromise(this, resolver) : needsNew()) + } + function polyfill() { + var local = void 0; + if (void 0 !== commonjsGlobal) + local = commonjsGlobal; + else if ("undefined" != typeof self) + local = self; + else + try { + local = Function("return this")() + } catch (e) { + throw new Error("polyfill failed because global object is unavailable in this environment") + } + var P = local.Promise; + if (P) { + var promiseToString = null; + try { + promiseToString = Object.prototype.toString.call(P.resolve()) + } catch (e) {} + if ("[object Promise]" === promiseToString && !P.cast) + return + } + local.Promise = Promise$1 + } + var _isArray, isArray, len, vertxNext, customSchedulerFn, asap, module, browserGlobal, BrowserMutationObserver, isWorker, queue, scheduleFlush, PROMISE_ID, PENDING, FULFILLED, REJECTED, id, Enumerator, Promise$1; + module.exports = (_isArray = void 0, + isArray = _isArray = Array.isArray || function(x) { + return "[object Array]" === Object.prototype.toString.call(x) + } + , + customSchedulerFn = vertxNext = void (len = 0), + asap = function asap(callback, arg) { + queue[len] = callback, + queue[len + 1] = arg, + 2 === (len += 2) && (customSchedulerFn ? customSchedulerFn(flush) : scheduleFlush()) + } + , + module = "undefined" != typeof window ? window : void 0, + BrowserMutationObserver = (browserGlobal = module || {}).MutationObserver || browserGlobal.WebKitMutationObserver, + browserGlobal = "undefined" == typeof self && "undefined" != typeof process && "[object process]" === {}.toString.call(process), + isWorker = "undefined" != typeof Uint8ClampedArray && "undefined" != typeof importScripts && "undefined" != typeof MessageChannel, + queue = new Array(1e3), + scheduleFlush = void 0, + scheduleFlush = (browserGlobal ? useNextTick : BrowserMutationObserver ? useMutationObserver : isWorker ? useMessageChannel : void 0 === module ? attemptVertx : useSetTimeout)(), + PROMISE_ID = Math.random().toString(36).substring(2), + PENDING = void 0, + FULFILLED = 1, + REJECTED = 2, + id = 0, + Enumerator = function() { + function Enumerator(Constructor, input) { + this._instanceConstructor = Constructor, + this.promise = new Constructor(noop), + this.promise[PROMISE_ID] || makePromise(this.promise), + isArray(input) ? (this.length = input.length, + this._remaining = input.length, + this._result = new Array(this.length), + 0 !== this.length && (this.length = this.length || 0, + this._enumerate(input), + 0 !== this._remaining) || fulfill(this.promise, this._result)) : reject(this.promise, validationError()) + } + return Enumerator.prototype._enumerate = function _enumerate(input) { + for (var i = 0; this._state === PENDING && i < input.length; i++) + this._eachEntry(input[i], i) + } + , + Enumerator.prototype._eachEntry = function _eachEntry(entry, i) { + var c = this._instanceConstructor; + var resolve$$1 = c.resolve; + if (resolve$$1 === resolve$1) { + var _then = void 0; + var error = void 0; + var didError = !1; + try { + _then = entry.then + } catch (e) { + didError = !0, + error = e + } + var promise; + _then === then && entry._state !== PENDING ? this._settledAt(entry._state, i, entry._result) : "function" != typeof _then ? (this._remaining--, + this._result[i] = entry) : c === Promise$1 ? (promise = new c(noop), + didError ? reject(promise, error) : handleMaybeThenable(promise, entry, _then), + this._willSettleAt(promise, i)) : this._willSettleAt(new c(function(resolve$$1) { + return resolve$$1(entry) + } + ), i) + } else + this._willSettleAt(resolve$$1(entry), i) + } + , + Enumerator.prototype._settledAt = function _settledAt(state, i, value) { + var promise = this.promise; + promise._state === PENDING && (this._remaining--, + state === REJECTED ? reject(promise, value) : this._result[i] = value), + 0 === this._remaining && fulfill(promise, this._result) + } + , + Enumerator.prototype._willSettleAt = function _willSettleAt(promise, i) { + var enumerator = this; + subscribe(promise, void 0, function(value) { + return enumerator._settledAt(FULFILLED, i, value) + }, function(reason) { + return enumerator._settledAt(REJECTED, i, reason) + }) + } + , + Enumerator + }(), + Promise.prototype.catch = function _catch(onRejection) { + return this.then(null, onRejection) + } + , + Promise.prototype.finally = function _finally(callback) { + var promise = this; + var constructor = this.constructor; + return isFunction(callback) ? this.then(function(value) { + return constructor.resolve(callback()).then(function() { + return value + }) + }, function(reason) { + return constructor.resolve(callback()).then(function() { + throw reason + }) + }) : this.then(callback, callback) + } + , + (Promise$1 = Promise).prototype.then = then, + Promise$1.all = all, + Promise$1.race = race, + Promise$1.resolve = resolve$1, + Promise$1.reject = reject$1, + Promise$1._setScheduler = setScheduler, + Promise$1._setAsap = setAsap, + Promise$1._asap = asap, + Promise$1.polyfill = polyfill, + Promise$1.Promise = Promise$1) + }).polyfill(); + var Sld = function() { + function Sld() {} + return Sld.has = function(domain) { + var tldOffset = domain.lastIndexOf("."); + var sldOffset, sldList; + return !(tldOffset <= 0 || tldOffset >= domain.length - 1 || (sldOffset = domain.lastIndexOf(".", tldOffset - 1)) <= 0 || tldOffset - 1 <= sldOffset || !(sldList = list[domain.slice(tldOffset + 1)])) && 0 <= sldList.indexOf(" " + domain.slice(sldOffset + 1, tldOffset) + " ") + } + , + Sld.is = function(domain) { + var tldOffset = domain.lastIndexOf("."); + var sldOffset, sldList; + return !(tldOffset <= 0 || tldOffset >= domain.length - 1 || 0 <= domain.lastIndexOf(".", tldOffset - 1) || !(sldList = list[domain.slice(tldOffset + 1)])) && 0 <= sldList.indexOf(" " + domain.slice(0, tldOffset) + " ") + } + , + Sld.get = function(domain) { + var tldOffset = domain.lastIndexOf("."); + var sldOffset, sldList; + return tldOffset <= 0 || tldOffset >= domain.length - 1 || (sldOffset = domain.lastIndexOf(".", tldOffset - 1)) <= 0 || tldOffset - 1 <= sldOffset || !(sldList = list[domain.slice(tldOffset + 1)]) || sldList.indexOf(" " + domain.slice(sldOffset + 1, tldOffset) + " ") < 0 ? null : domain.slice(sldOffset + 1) + } + , + Sld + }(); + var Domain = function() { + function Domain() {} + return Domain.setList = function(newList) { + list = newList || {} + } + , + Domain.getDomain = function(host) { + var t, t, t; + return list ? (t = host.match(/\./g)) && t.length < 2 ? host : (t = this.getTld(host)) ? (t = host.length - t.length - 1, + t = host.lastIndexOf(".", t - 1) + 1, + host.substring(t) || "") : null : null + } + , + Domain.getTld = function(host) { + var pos, pos; + return list ? (pos = host.lastIndexOf("."), + pos = host.substring(pos + 1), + list[pos.toLowerCase()] && Sld.get(host) || pos) : "" + } + , + Domain.KEY = "Domains", + Domain + }(); + var Loader = function() { + function Loader() { + this.cache = {} + } + return Object.defineProperty(Loader, "instance", { + get: function() { + return Loader.classInstance = void 0 === Loader.classInstance ? new Loader : Loader.classInstance + }, + enumerable: !1, + configurable: !0 + }), + Loader.prototype.load = function(key, url, contentType) { + var _this = this; + return this.contains(key) ? Promise.reject("Already in cache.") : (this.cache[key] = { + url: url, + data: null + }, + this.requestXhr(url, contentType).then(function(data) { + return _this.loadComplete(key, data) + }).catch(function(e) { + return _this.remove(key), + Promise.reject(e) + })) + } + , + Loader.prototype.loadComplete = function(key, data) { + if (!this.contains(key)) + return Promise.reject("Item was removed from cache before loading was complete."); + try { + var json = JSON.parse(data); + return this.cache[key].data = json, + Promise.resolve(json) + } catch (error) { + return Promise.reject("There was an error parsing JSON file.") + } + } + , + Loader.prototype.remove = function(key) { + this.contains(key) && delete this.cache[key] + } + , + Loader.prototype.get = function(key) { + return this.contains(key) ? this.cache[key].data : null + } + , + Loader.prototype.contains = function(key) { + return this.cache.hasOwnProperty(key) + } + , + Loader.prototype.isLoading = function(key) { + return this.contains(key) && null === this.cache[key].data + } + , + Loader.prototype.isLoaded = function(key) { + return this.contains(key) && null !== this.cache[key].data + } + , + Loader.prototype.loadScript = function(url, deferred, callback) { + return new Promise(function(resolve, reject) { + var tag = document.createElement("script"); + tag.src = url, + tag.async = !1, + tag.onload = function() { + "function" == typeof callback && callback(), + resolve() + } + , + document.head.appendChild(tag) + } + ) + } + , + Loader.prototype.requestXhr = function(url, contentType) { + var xhr; + return void 0 === contentType && (contentType = "application/json"), + window.XMLHttpRequest ? (xhr = new XMLHttpRequest, + new Promise(function(resolve, reject) { + xhr.onreadystatechange = function() { + 4 === xhr.readyState && (200 === xhr.status ? (resolve(xhr.responseText), + xhr.onreadystatechange = null) : 0 < xhr.status && (reject("There was a problem with the request: status ".concat(xhr.status)), + xhr.onreadystatechange = null)) + } + ; + try { + xhr.open("GET", url, !0), + xhr.setRequestHeader("Content-Type", contentType), + xhr.send() + } catch (e) { + reject("Error: Unable to send request, CORS not allowed.") + } + } + )) : Promise.reject("Unable to send request, XMLHttpRequest not supported.") + } + , + Loader + }(); + function __awaiter(thisArg, _arguments, P, generator) { + return new (P = P || Promise)(function(resolve, reject) { + function fulfilled(value) { + try { + step(generator.next(value)) + } catch (e) { + reject(e) + } + } + function rejected(value) { + try { + step(generator.throw(value)) + } catch (e) { + reject(e) + } + } + function step(result) { + result.done ? resolve(result.value) : new P(function(resolve) { + resolve(result.value) + } + ).then(fulfilled, rejected) + } + step((generator = generator.apply(thisArg, _arguments || [])).next()) + } + ) + } + function __generator(thisArg, body) { + var _ = { + label: 0, + sent: function() { + if (1 & t[0]) + throw t[1]; + return t[1] + }, + trys: [], + ops: [] + }, f, y, t, g; + return g = { + next: verb(0), + throw: verb(1), + return: verb(2) + }, + "function" == typeof Symbol && (g[Symbol.iterator] = function() { + return this + } + ), + g; + function verb(n) { + return function(v) { + return step([n, v]) + } + } + function step(op) { + if (f) + throw new TypeError("Generator is already executing."); + for (; _; ) + try { + if (f = 1, + y && (t = 2 & op[0] ? y.return : op[0] ? y.throw || ((t = y.return) && t.call(y), + 0) : y.next) && !(t = t.call(y, op[1])).done) + return t; + switch (y = 0, + (op = t ? [2 & op[0], t.value] : op)[0]) { + case 0: + case 1: + t = op; + break; + case 4: + return _.label++, + { + value: op[1], + done: !1 + }; + case 5: + _.label++, + y = op[1], + op = [0]; + continue; + case 7: + op = _.ops.pop(), + _.trys.pop(); + continue; + default: + if (!(t = 0 < (t = _.trys).length && t[t.length - 1]) && (6 === op[0] || 2 === op[0])) { + _ = 0; + continue + } + if (3 === op[0] && (!t || op[1] > t[0] && op[1] < t[3])) + _.label = op[1]; + else if (6 === op[0] && _.label < t[1]) + _.label = t[1], + t = op; + else { + if (!(t && _.label < t[2])) { + t[2] && _.ops.pop(), + _.trys.pop(); + continue + } + _.label = t[2], + _.ops.push(op) + } + } + op = body.call(thisArg, _) + } catch (e) { + op = [6, e], + y = 0 + } finally { + f = t = 0 + } + if (5 & op[0]) + throw op[1]; + return { + value: op[0] ? op[1] : void 0, + done: !0 + } + } + } + var BrandingDomain; + exports.BrandingDomain = void 0, + (BrandingDomain = exports.BrandingDomain || (exports.BrandingDomain = {}))[BrandingDomain.Neutral = 0] = "Neutral", + BrandingDomain[BrandingDomain.Yepi = 1] = "Yepi", + BrandingDomain[BrandingDomain.Spele = 2] = "Spele", + BrandingDomain[BrandingDomain.Funnygames = 3] = "Funnygames", + BrandingDomain[BrandingDomain.Kizi = 4] = "Kizi", + BrandingDomain[BrandingDomain.PlayCell = 5] = "PlayCell", + BrandingDomain[BrandingDomain.GameCell = 6] = "GameCell", + BrandingDomain[BrandingDomain.Bild = 7] = "Bild", + BrandingDomain[BrandingDomain.AGame = 8] = "AGame", + BrandingDomain[BrandingDomain.Admeen = 9] = "Admeen", + BrandingDomain[BrandingDomain.PlayTime = 10] = "PlayTime", + BrandingDomain[BrandingDomain.Zigiz = 11] = "Zigiz"; + var Hosts = function() { + function Hosts() {} + return Hosts.isBip = function() { + return -1 !== window.location.search.indexOf("bipgaming") || "bip.fbrq.io" === window.location.host + } + , + Hosts.isPlaycellApp = function() { + return -1 !== window.location.search.indexOf("playcellApp") + } + , + Hosts.isAGame = function() { + return -1 !== window.location.search.indexOf("agame") + } + , + Hosts.isAirfi = function() { + return !!window.hasOwnProperty("airfi") && window.airfi + } + , + Hosts.isPlaytime = function() { + return -1 !== window.location.host.indexOf("playtime.nl") + } + , + Hosts.isBild = function() { + return "bild.fbrq.io" === window.location.host || -1 !== window.location.host.indexOf("contentfleet.com") + } + , + Hosts.isYandex = function() { + return window.hasOwnProperty("_YaSDK") || window.hasOwnProperty("YaGames") + } + , + Hosts.getYandexBaseURL = function() { + var _a, _a; + var lang; + if (null != (_a = null == (_a = window.YandexGamesSDKEnvironment) ? void 0 : _a.browser) && _a.lang && "en" === window.YandexGamesSDKEnvironment.browser.lang) + return "yandex.com"; + return "yandex.ru" + } + , + Hosts + }(); + var BrandingDomain; + exports.UtmTargets = void 0, + (BrandingDomain = exports.UtmTargets || (exports.UtmTargets = {}))[BrandingDomain.splashscreen = 0] = "splashscreen", + BrandingDomain[BrandingDomain.logo = 1] = "logo", + BrandingDomain[BrandingDomain.facebook = 2] = "facebook", + BrandingDomain[BrandingDomain.twitter = 3] = "twitter", + BrandingDomain[BrandingDomain.playstore = 4] = "playstore", + BrandingDomain[BrandingDomain.appstore = 5] = "appstore", + BrandingDomain[BrandingDomain.more_games = 6] = "more_games", + BrandingDomain[BrandingDomain.download_game = 7] = "download_game", + BrandingDomain[BrandingDomain.walkthrough = 8] = "walkthrough", + BrandingDomain[BrandingDomain.disclaimer = 9] = "disclaimer", + BrandingDomain[BrandingDomain.highscores = 10] = "highscores"; + var CrossPromo = function() { + function CrossPromo() {} + return CrossPromo.getProtocol = function(isDevice) { + var protocol; + return isDevice ? "https://" : "//" + } + , + CrossPromo.getUtmContent = function(type) { + return "string" == typeof type ? type : exports.UtmTargets[type] + } + , + CrossPromo.getDomainURL = function(domain, protocol) { + var url; + switch (domain) { + case exports.BrandingDomain.Spele: + url = protocol + "www.spele.nl"; + break; + case exports.BrandingDomain.Yepi: + url = protocol + "www.yepi.com"; + break; + case exports.BrandingDomain.Admeen: + url = "https://media.admeen.com/branding/link.php"; + break; + case exports.BrandingDomain.PlayCell: + url = protocol + "www.playcell.com"; + break; + case exports.BrandingDomain.GameCell: + url = protocol + "www.gamecell.com"; + break; + case exports.BrandingDomain.Kizi: + url = protocol + "www.kizi.com"; + break; + case exports.BrandingDomain.Bild: + url = protocol + "www.bildspielt.de"; + break; + case exports.BrandingDomain.Funnygames: + url = protocol + "www.funnygames.nu"; + break; + case exports.BrandingDomain.PlayTime: + url = protocol + "playtime.nl"; + break; + default: + case exports.BrandingDomain.AGame: + url = protocol + "www.agame.com"; + break; + case exports.BrandingDomain.Zigiz: + url = protocol + "m.zigiz.com"; + break + } + return url + } + , + CrossPromo.getPromoURL = function(domain, url, host, gameTitle, utmContent) { + return window.hasOwnProperty("_YaSDK") || window.hasOwnProperty("YaGames") ? "https://".concat(Hosts.getYandexBaseURL(), "/games/developer?name=Azerion") : domain === exports.BrandingDomain.Admeen ? "https://media.admeen.com/branding/link.php" : domain === exports.BrandingDomain.Bild ? url : url + "/?utm_source=" + host + "&utm_medium=html5&utm_term=" + gameTitle + "&utm_content=" + utmContent + "&utm_campaign=Gamedistribution" + } + , + CrossPromo + }(); + function addScript(src, buster, callback) { + var s = document.createElement("script"); + s.setAttribute("src", src + "?v=" + buster), + "function" == typeof callback && (s.onload = callback), + document.body.appendChild(s) + } + var PortalScripts = function() { + function PortalScripts() {} + return PortalScripts.loadPortalScript = function(siteLockList) { + siteLockList && siteLockList.hasOwnProperty("minijuegos") && -1 !== siteLockList.minijuegos.indexOf(Utils.getSourceSite()) && (void 0 !== window.mpConfig ? window.mpConfig.partner = "orange-games" : window.mpConfig = { + partner: "orange-games" + }, + addScript("https://ext.minijuegosgratis.com/external-host/main.js", Date.now() / 1e3)), + siteLockList && siteLockList.hasOwnProperty("kongregate") && -1 !== siteLockList.kongregate.indexOf(Utils.getSourceSite()) && addScript("https://cdn1.kongregate.com/javascripts/kongregate_api.js", Date.now() / 1e3, function() { + "undefined" != typeof kongregateAPI && kongregateAPI.loadAPI(function() { + window.kongregate = kongregateAPI.getAPI() + }) + }), + siteLockList && siteLockList.hasOwnProperty("newgrounds") && -1 !== siteLockList.newgrounds.indexOf(Utils.getSourceSite()) && addScript("https://cdn.fbrq.io/@azerion/splash/assets/scripts/newgroundsio.min.js", Date.now() / 1e3) + } + , + PortalScripts + }(); + var BuildSettings = function() { + function BuildSettings() {} + return BuildSettings.isStandAlone = function() { + var _a, _a; + return null != (_a = window._azerionIntegration) && _a.sa ? null == (_a = window._azerionIntegration) ? void 0 : _a.sa : !!window.hasOwnProperty("fbrqSA") && window.fbrqSA + } + , + BuildSettings.hasDomainForCustomBuild = function() { + var _a; + return (null == (_a = window._azerionIntegration) ? void 0 : _a.bd) || window.hasOwnProperty("fbrqBD") + } + , + BuildSettings.getDomainForCustomBuild = function() { + var _a, _a, _a; + return null != (_a = window._azerionIntegration) && _a.bd && (null == (_a = window._azerionIntegration) ? void 0 : _a.bd)in exports.BrandingDomain ? null == (_a = window._azerionIntegration) ? void 0 : _a.bd : window.hasOwnProperty("fbrqBD") && window.fbrqBD in exports.BrandingDomain ? window.fbrqBD : void 0 + } + , + BuildSettings.hasLinksSettingsForCustomBuild = function() { + var _a; + return (null == (_a = window._azerionIntegration) ? void 0 : _a.la) || window.hasOwnProperty("fbrqLA") + } + , + BuildSettings.getLinkSettingsForCustomBuild = function() { + var _a, _a; + return null != (_a = window._azerionIntegration) && _a.la ? null == (_a = window._azerionIntegration) ? void 0 : _a.la : window.hasOwnProperty("fbrqLA") ? window.hasOwnProperty("fbrqLA") : void 0 + } + , + BuildSettings + }(); + var Branding = function() { + function Branding() {} + return Branding.preload = function(version) { + var promise = Promise.all([Loader.instance.load(Domain.KEY, "".concat(Utils.ASSET_LOCATION, "json/domains.json?v=").concat(version), "text/plain"), Loader.instance.load(Branding.SITELOCK_PORTALS, "".concat(Utils.ASSET_LOCATION, "json/sitelock.json?v=").concat(version), "text/plain")]); + return Promise.all([Loader.instance.load(Branding.INTERNAL_PORTALS_KEY, "".concat(Utils.ASSET_LOCATION, "json/internal.json?v=").concat(version), "text/plain"), Loader.instance.load(Branding.CONTRACTED_PORTALS_KEY, "".concat(Utils.ASSET_LOCATION, "json/contracted.json?v=").concat(version), "text/plain"), Loader.instance.load(Branding.SPECIAL_PORTALS_KEY, "".concat(Utils.ASSET_LOCATION, "json/special.json?v=").concat(version), "text/plain")]), + promise.then(function(data) { + var domains = data[0]; + var data = data[1]; + Domain.setList(domains), + PortalScripts.loadPortalScript(data), + Branding.setSiteLock(data) + }).catch(function() { + console.warn("Unable to parse json") + }) + } + , + Branding.setSiteLock = function(data) { + Branding.siteLocks = data + } + , + Object.defineProperty(Branding, "brandingLogoUrl", { + get: function() { + var imageName; + switch (Utils.isOnDevice() || Hosts.isAirfi() ? Utils.ASSET_LOCATION = "assets/" : "fbrq.io" === Utils.getSourceSite(!0) && (Utils.ASSET_LOCATION = "https://" + window.location.host + "/@azerion/splash/assets/"), + Utils.getBrandingDomain()) { + case exports.BrandingDomain.Spele: + imageName = "spele"; + break; + case exports.BrandingDomain.PlayCell: + imageName = "playcell"; + break; + case exports.BrandingDomain.GameCell: + imageName = "gamecell"; + break; + case exports.BrandingDomain.Yepi: + imageName = "yepi"; + break; + case exports.BrandingDomain.Admeen: + imageName = "admeen"; + break; + case exports.BrandingDomain.Bild: + imageName = "bild"; + break; + case exports.BrandingDomain.Kizi: + imageName = "kizi"; + break; + case exports.BrandingDomain.Funnygames: + imageName = "funnygames"; + break; + case exports.BrandingDomain.PlayTime: + imageName = "playtime"; + break; + default: + case exports.BrandingDomain.AGame: + imageName = "agame"; + break; + case exports.BrandingDomain.Zigiz: + imageName = "zigiz"; + break + } + return Utils.ASSET_LOCATION + "images/branding_logo_" + imageName + "_small.png" + }, + enumerable: !1, + configurable: !0 + }), + Object.defineProperty(Branding, "brandingBackgroundColor", { + get: function() { + var bgColor; + switch (Utils.getBrandingDomain()) { + case exports.BrandingDomain.Spele: + bgColor = "#4a72ad"; + break; + case exports.BrandingDomain.PlayCell: + bgColor = "#52a1e1"; + break; + case exports.BrandingDomain.GameCell: + bgColor = "#c600b2"; + break; + case exports.BrandingDomain.Yepi: + bgColor = "#0573a7"; + break; + case exports.BrandingDomain.AGame: + bgColor = "#0C486C"; + break; + case exports.BrandingDomain.Admeen: + bgColor = "#4267B2"; + break; + case exports.BrandingDomain.Bild: + bgColor = "#de0000"; + break; + default: + case exports.BrandingDomain.Kizi: + bgColor = "#012f50"; + break; + case exports.BrandingDomain.Funnygames: + bgColor = "#33b0ff"; + break; + case exports.BrandingDomain.PlayTime: + bgColor = "#023a63"; + break; + case exports.BrandingDomain.Zigiz: + bgColor = "#023a63"; + break + } + return bgColor + }, + enumerable: !1, + configurable: !0 + }), + Branding.blockedDomain = function() { + return Utils.isOnDevice() || Branding.isSpecial() + } + , + Branding.createCampaignURL = function(gameTitle, type) { + var host = Utils.getSourceSite(); + var domain = Utils.getBrandingDomain(); + var protocol = CrossPromo.getProtocol(Utils.isOnDevice()); + var protocol = CrossPromo.getDomainURL(domain, protocol); + var type = CrossPromo.getUtmContent(type); + return CrossPromo.getPromoURL(domain, protocol, host, gameTitle, type) + } + , + Branding.openCampaignLink = function(gameTitle, type) { + var type; + var gameTitle = Branding.createCampaignURL(gameTitle, type); + Branding.blockedDomain() || (type = window.open(gameTitle)) && type.focus && type.focus() + } + , + Branding.isInternal = function() { + return Branding.hostMatchesList(Loader.instance.get(Branding.INTERNAL_PORTALS_KEY)) + } + , + Branding.isContracted = function() { + return Branding.hostMatchesList(Loader.instance.get(Branding.CONTRACTED_PORTALS_KEY)) + } + , + Branding.isSpecial = function() { + return Branding.hostMatchesList(Loader.instance.get(Branding.SPECIAL_PORTALS_KEY)) + } + , + Branding.isAdmeen = function() { + var admeen; + return !(!Branding.siteLocks || !Branding.siteLocks.hasOwnProperty("admeen")) && (admeen = Branding.siteLocks.admeen, + Branding.hostMatchesList(admeen)) + } + , + Branding.isKongregate = function() { + var kongregate; + return !(!Branding.siteLocks || !Branding.siteLocks.hasOwnProperty("kongregate")) && (kongregate = Branding.siteLocks.kongregate, + Branding.hostMatchesList(kongregate)) + } + , + Branding.isNewgrounds = function() { + var newgrounds; + return !(!Branding.siteLocks || !Branding.siteLocks.hasOwnProperty("newgrounds")) && (newgrounds = Branding.siteLocks.newgrounds, + Branding.hostMatchesList(newgrounds)) + } + , + Branding.crossPromoAllowed = function() { + var yandex = Branding.siteLocks.yandex; + return Branding.hostMatchesList(yandex) + } + , + Branding.outGoingLinksAllowed = function() { + return !(Hosts.isAirfi() || Branding.isSpecial() || Branding.isContracted()) && (!BuildSettings.hasLinksSettingsForCustomBuild() || BuildSettings.getLinkSettingsForCustomBuild()) + } + , + Branding.hostMatchesList = function(portals) { + portals = portals || []; + var host = Utils.getSourceSite(); + for (var id = 0; id < portals.length; id++) + if (host === portals[id]) + return !0; + return !1 + } + , + Branding.LOGO_KEY = "branding_logo", + Branding.INTERNAL_PORTALS_KEY = "branding_portals", + Branding.CONTRACTED_PORTALS_KEY = "branding_contracted", + Branding.SPECIAL_PORTALS_KEY = "branding_special", + Branding.SITELOCK_PORTALS = "sitelock_portals", + Branding.DOMAIN_OVERWRITE = null, + Branding.analyticsEnabled = !0, + Branding + }(); + var Utils = function() { + function Utils() {} + return Utils.loadHost = function() { + return __awaiter(this, void 0, void 0, function() { + var host, result, result; + return __generator(this, function(_a) { + switch (_a.label) { + case 0: + if (host = document.referrer || window.location.host, + !window.hasOwnProperty("gdsdk")) + return [3, 4]; + _a.label = 1; + case 1: + return _a.trys.push([1, 3, , 4]), + [4, window.gdsdk.getSession()]; + case 2: + return result = _a.sent(), + host = result.location.parentDomain, + [3, 4]; + case 3: + return result = _a.sent(), + console.log(result), + [3, 4]; + case 4: + return Utils.HOST = host, + [2] + } + }) + }) + } + , + Utils.getSourceSite = function(forceLocal) { + var host = Utils.HOST; + if (-1 !== (host = (forceLocal = void 0 === forceLocal ? !1 : forceLocal) ? window.location.host : host).indexOf("embed.gamedistribution.com") && -1 !== window.location.search.indexOf("gd_sdk_referrer_url") && (host = Utils.getUrlParameter("gd_sdk_referrer_url") || host), + host = decodeURIComponent(host), + Hosts.isBild()) + return "bildspielt.de"; + if (Hosts.isBip()) + return "bipgaming.com"; + host = (host = -1 < host.indexOf("://") ? host.split("/")[2] : host.split("/")[0]).split(":")[0]; + var forceLocal = Domain.getDomain(host); + return null !== forceLocal ? forceLocal : host = 3 === host.split(".").length ? host.substr(host.indexOf(".") + 1) : host + } + , + Utils.getBrandingDomain = function() { + if (BuildSettings.hasDomainForCustomBuild()) + return BuildSettings.getDomainForCustomBuild(); + if (Branding.DOMAIN_OVERWRITE) + return Branding.DOMAIN_OVERWRITE; + var source = Utils.getSourceSite(); + if (Branding.isAdmeen()) + return exports.BrandingDomain.Admeen; + if (Hosts.isPlaycellApp() || Hosts.isBip()) + return exports.BrandingDomain.PlayCell; + switch (source) { + case "spele.nl": + return exports.BrandingDomain.Spele; + case "yepi.com": + return exports.BrandingDomain.Yepi; + case "oyunskor.com": + case "barbioyunu.com.tr": + case "bebekoyunu.com.tr": + case "oyunkolu.com": + case "oyungemisi.com": + case "oyunlar1.com": + case "oyunkuzusu.com": + case "kraloyun.com": + case "rekoroyun.com": + case "oyundedem.com": + case "oyunoyna.com": + case "pastaoyunu.com.tr": + case "playcell.com": + return exports.BrandingDomain.PlayCell; + case "gamecell.com": + return exports.BrandingDomain.GameCell; + case "playxl.com": + return exports.BrandingDomain.Admeen; + case "kizi.com": + return exports.BrandingDomain.Kizi; + case "bildspielt.de": + return exports.BrandingDomain.Bild; + case "funnygames.nl": + return exports.BrandingDomain.Funnygames; + case "playtime.nl": + return exports.BrandingDomain.PlayTime; + default: + case "agame.com": + return exports.BrandingDomain.AGame; + case "gmbl.nl": + case "zigiz.com": + return exports.BrandingDomain.Zigiz; + case "coolmathgames.com": + return exports.BrandingDomain.Neutral + } + } + , + Utils.getReferrer = function(host) { + return -1 !== host.indexOf("?ref=") ? host.substr(host.indexOf("?ref=") + 5) : host + } + , + Utils.inIframe = function() { + try { + return window.self !== window.top + } catch (e) { + return !0 + } + } + , + Utils.inGDGameZone = function() { + return -1 !== document.referrer.indexOf("html5.gamedistribution.com") + } + , + Utils.getDomain = function(uri) { + var parser = document.createElement("a"); + return parser.href = uri, + parser.origin + } + , + Utils.isOnDevice = function() { + return void 0 !== window.cordova && !/(gamedistribution\.com)/.test(window.location.hostname) + } + , + Utils.isTc = function() { + return /(teamcity\.azerdev\.com)/.test(window.location.host) + } + , + Utils.getRandomRange = function(min, max) { + return Math.random() * (max - min) + min | 0 + } + , + Utils.getUrlParameter = function(name) { + var regex; + name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]"); + var name = new RegExp("[\\?&]" + name + "=([^&#]*)").exec(location.search); + return null === name ? "" : decodeURIComponent(name[1].replace(/\+/g, " ")) + } + , + Utils.intTimeToString = function(time) { + var hours = Math.floor(time / 3600); + var minutes = Math.floor(time % 3600 / 60); + var time = time % 60; + var sHours; + var sMinutes; + var sSeconds; + return (hours < 10 ? "0" + hours : hours.toString()) + ":" + (minutes < 10 ? "0" + minutes : minutes.toString()) + ":" + (time < 10 ? "0" + time : time.toString()) + } + , + Utils.LANGUAGE = "en", + Utils.HOST = document.referrer || window.location.host, + Utils.ASSET_LOCATION = BuildSettings.isStandAlone() ? "assets/" : "https://cdn.fbrq.io/@azerion/splash/assets/", + Utils + }(); + var progressbar = createCommonjsModule(function(module, exports) { + var f; + f = function() { + return function e(t, n, r) { + function s(o, u) { + if (!n[o]) { + if (!t[o]) { + var a; + if (!u && commonjsRequire) + return commonjsRequire(o, !0); + if (i) + return i(o, !0); + var u = new Error("Cannot find module '" + o + "'"); + throw u.code = "MODULE_NOT_FOUND", + u + } + var u = n[o] = { + exports: {} + }; + t[o][0].call(u.exports, function(e) { + var n = t[o][1][e]; + return s(n || e) + }, u, u.exports, e, t, n, r) + } + return n[o].exports + } + var i = commonjsRequire; + for (var o = 0; o < r.length; o++) + s(r[o]); + return s + }({ + 1: [function(require, module, exports) { + !function() { + var root = this || Function("return this")(); + var Tweenable = function() { + var formula; + var DEFAULT_SCHEDULE_FUNCTION; + var DEFAULT_EASING = "linear"; + var DEFAULT_DURATION = 500; + var UPDATE_TIME = 1e3 / 60; + var _now = Date.now || function() { + return +new Date + } + ; + var now = "undefined" != typeof SHIFTY_DEBUG_NOW ? SHIFTY_DEBUG_NOW : _now; + function noop() {} + function each(obj, fn) { + var key; + for (key in obj) + Object.hasOwnProperty.call(obj, key) && fn(key) + } + function shallowCopy(targetObj, srcObj) { + return each(srcObj, function(prop) { + targetObj[prop] = srcObj[prop] + }), + targetObj + } + function defaults(target, src) { + each(src, function(prop) { + void 0 === target[prop] && (target[prop] = src[prop]) + }) + } + function tweenProps(forPosition, currentState, originalState, targetState, duration, timestamp, easing) { + var normalizedPosition = forPosition < timestamp ? 0 : (forPosition - timestamp) / duration; + var prop; + var easingObjectProp; + var easingObjectProp; + for (prop in currentState) + currentState.hasOwnProperty(prop) && (easingObjectProp = "function" == typeof (easingObjectProp = easing[prop]) ? easingObjectProp : formula[easingObjectProp], + currentState[prop] = tweenProp(originalState[prop], targetState[prop], easingObjectProp, normalizedPosition)); + return currentState + } + function tweenProp(start, end, easingFunc, position) { + return start + (end - start) * easingFunc(position) + } + function applyFilter(tweenable, filterName) { + var filters = Tweenable.prototype.filter; + var args = tweenable._filterArgs; + each(filters, function(name) { + void 0 !== filters[name][filterName] && filters[name][filterName].apply(tweenable, args) + }) + } + var timeoutHandler_endTime; + var timeoutHandler_currentTime; + var timeoutHandler_isEnded; + var timeoutHandler_endTime; + function timeoutHandler(tweenable, timestamp, delay, duration, currentState, originalState, targetState, easing, step, schedule, opt_currentTimeOverride) { + timeoutHandler_endTime = timestamp + delay + duration, + timeoutHandler_currentTime = Math.min(opt_currentTimeOverride || now(), timeoutHandler_endTime), + timeoutHandler_isEnded = timeoutHandler_endTime <= timeoutHandler_currentTime, + timeoutHandler_endTime = duration - (timeoutHandler_endTime - timeoutHandler_currentTime), + tweenable.isPlaying() && (timeoutHandler_isEnded ? (step(targetState, tweenable._attachment, timeoutHandler_endTime), + tweenable.stop(!0)) : (tweenable._scheduleId = schedule(tweenable._timeoutHandler, 1e3 / 60), + applyFilter(tweenable, "beforeTween"), + timeoutHandler_currentTime < timestamp + delay ? tweenProps(1, currentState, originalState, targetState, 1, 1, easing) : tweenProps(timeoutHandler_currentTime, currentState, originalState, targetState, duration, timestamp + delay, easing), + applyFilter(tweenable, "afterTween"), + step(currentState, tweenable._attachment, timeoutHandler_endTime))) + } + function composeEasingObject(fromTweenParams, easing) { + var composedEasing = {}; + var typeofEasing = typeof easing; + return each(fromTweenParams, "string" == typeofEasing || "function" == typeofEasing ? function(prop) { + composedEasing[prop] = easing + } + : function(prop) { + composedEasing[prop] || (composedEasing[prop] = easing[prop] || "linear") + } + ), + composedEasing + } + function Tweenable(opt_initialState, opt_config) { + this._currentState = opt_initialState || {}, + this._configured = !1, + this._scheduleFunction = DEFAULT_SCHEDULE_FUNCTION, + void 0 !== opt_config && this.setConfig(opt_config) + } + return DEFAULT_SCHEDULE_FUNCTION = "undefined" != typeof window && (window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || window.mozCancelRequestAnimationFrame && window.mozRequestAnimationFrame) || setTimeout, + Tweenable.prototype.tween = function(opt_config) { + return this._isTweening ? this : (void 0 === opt_config && this._configured || this.setConfig(opt_config), + this._timestamp = now(), + this._start(this.get(), this._attachment), + this.resume()) + } + , + Tweenable.prototype.setConfig = function(config) { + config = config || {}, + this._configured = !0, + this._attachment = config.attachment, + this._pausedAtTime = null, + this._scheduleId = null, + this._delay = config.delay || 0, + this._start = config.start || noop, + this._step = config.step || noop, + this._finish = config.finish || noop, + this._duration = config.duration || 500, + this._currentState = shallowCopy({}, config.from || this.get()), + this._originalState = this.get(), + this._targetState = shallowCopy({}, config.to || this.get()); + var self = this; + this._timeoutHandler = function() { + timeoutHandler(self, self._timestamp, self._delay, self._duration, self._currentState, self._originalState, self._targetState, self._easing, self._step, self._scheduleFunction) + } + ; + var currentState = this._currentState; + var targetState = this._targetState; + return defaults(targetState, currentState), + this._easing = composeEasingObject(currentState, config.easing || "linear"), + this._filterArgs = [currentState, this._originalState, targetState, this._easing], + applyFilter(this, "tweenCreated"), + this + } + , + Tweenable.prototype.get = function() { + return shallowCopy({}, this._currentState) + } + , + Tweenable.prototype.set = function(state) { + this._currentState = state + } + , + Tweenable.prototype.pause = function() { + return this._pausedAtTime = now(), + this._isPaused = !0, + this + } + , + Tweenable.prototype.resume = function() { + return this._isPaused && (this._timestamp += now() - this._pausedAtTime), + this._isPaused = !1, + this._isTweening = !0, + this._timeoutHandler(), + this + } + , + Tweenable.prototype.seek = function(millisecond) { + millisecond = Math.max(millisecond, 0); + var currentTime = now(); + return this._timestamp + millisecond === 0 || (this._timestamp = currentTime - millisecond, + this.isPlaying()) || (this._isTweening = !0, + this._isPaused = !1, + timeoutHandler(this, this._timestamp, this._delay, this._duration, this._currentState, this._originalState, this._targetState, this._easing, this._step, this._scheduleFunction, currentTime), + this.pause()), + this + } + , + Tweenable.prototype.stop = function(gotoEnd) { + return this._isTweening = !1, + this._isPaused = !1, + this._timeoutHandler = noop, + (root.cancelAnimationFrame || root.webkitCancelAnimationFrame || root.oCancelAnimationFrame || root.msCancelAnimationFrame || root.mozCancelRequestAnimationFrame || root.clearTimeout)(this._scheduleId), + gotoEnd && (applyFilter(this, "beforeTween"), + tweenProps(1, this._currentState, this._originalState, this._targetState, 1, 0, this._easing), + applyFilter(this, "afterTween"), + applyFilter(this, "afterTweenEnd"), + this._finish.call(this, this._currentState, this._attachment)), + this + } + , + Tweenable.prototype.isPlaying = function() { + return this._isTweening && !this._isPaused + } + , + Tweenable.prototype.setScheduleFunction = function(scheduleFunction) { + this._scheduleFunction = scheduleFunction + } + , + Tweenable.prototype.dispose = function() { + var prop; + for (prop in this) + this.hasOwnProperty(prop) && delete this[prop] + } + , + Tweenable.prototype.filter = {}, + formula = Tweenable.prototype.formula = { + linear: function(pos) { + return pos + } + }, + shallowCopy(Tweenable, { + now: now, + each: each, + tweenProps: tweenProps, + tweenProp: tweenProp, + applyFilter: applyFilter, + shallowCopy: shallowCopy, + defaults: defaults, + composeEasingObject: composeEasingObject + }), + "function" == typeof SHIFTY_DEBUG_NOW && (root.timeoutHandler = timeoutHandler), + "object" == typeof exports ? module.exports = Tweenable : void 0 === root.Tweenable && (root.Tweenable = Tweenable), + Tweenable + }(); + function cubicBezierAtTime(t, p1x, p1y, p2x, p2y, duration) { + var ax = 0 + , bx = 0 + , cx = 0 + , ay = 0 + , by = 0 + , cy = 0; + function sampleCurveX(t) { + return ((ax * t + bx) * t + cx) * t + } + function sampleCurveY(t) { + return ((ay * t + by) * t + cy) * t + } + function sampleCurveDerivativeX(t) { + return (3 * ax * t + 2 * bx) * t + cx + } + function solveEpsilon(duration) { + return 1 / (200 * duration) + } + function solve(x, epsilon) { + return sampleCurveY(solveCurveX(x, epsilon)) + } + function fabs(n) { + return 0 <= n ? n : 0 - n + } + function solveCurveX(x, epsilon) { + var t0, t1, t2, x2, d2, i; + for (t2 = x, + i = 0; i < 8; i++) { + if (fabs(x2 = sampleCurveX(t2) - x) < epsilon) + return t2; + if (fabs(d2 = sampleCurveDerivativeX(t2)) < 1e-6) + break; + t2 -= x2 / d2 + } + if ((t2 = x) < (t0 = 0)) + return t0; + if ((t1 = 1) < t2) + return t1; + for (; t0 < t1; ) { + if (fabs((x2 = sampleCurveX(t2)) - x) < epsilon) + return t2; + x2 < x ? t0 = t2 : t1 = t2, + t2 = .5 * (t1 - t0) + t0 + } + return t2 + } + return ax = 1 - (cx = 3 * p1x) - (bx = 3 * (p2x - p1x) - cx), + ay = 1 - (cy = 3 * p1y) - (by = 3 * (p2y - p1y) - cy), + solve(t, 1 / (200 * duration)) + } + function getCubicBezierTransition(x1, y1, x2, y2) { + return function(pos) { + return cubicBezierAtTime(pos, x1, y1, x2, y2, 1) + } + } + function getInterpolatedValues(from, current, targetState, position, easing, delay) { + return Tweenable.tweenProps(position, current, from, targetState, 1, delay, easing) + } + var mockTweenable; + Tweenable.shallowCopy(Tweenable.prototype.formula, { + easeInQuad: function(pos) { + return Math.pow(pos, 2) + }, + easeOutQuad: function(pos) { + return -(Math.pow(pos - 1, 2) - 1) + }, + easeInOutQuad: function(pos) { + return (pos /= .5) < 1 ? .5 * Math.pow(pos, 2) : -.5 * ((pos -= 2) * pos - 2) + }, + easeInCubic: function(pos) { + return Math.pow(pos, 3) + }, + easeOutCubic: function(pos) { + return Math.pow(pos - 1, 3) + 1 + }, + easeInOutCubic: function(pos) { + return (pos /= .5) < 1 ? .5 * Math.pow(pos, 3) : .5 * (Math.pow(pos - 2, 3) + 2) + }, + easeInQuart: function(pos) { + return Math.pow(pos, 4) + }, + easeOutQuart: function(pos) { + return -(Math.pow(pos - 1, 4) - 1) + }, + easeInOutQuart: function(pos) { + return (pos /= .5) < 1 ? .5 * Math.pow(pos, 4) : -.5 * ((pos -= 2) * Math.pow(pos, 3) - 2) + }, + easeInQuint: function(pos) { + return Math.pow(pos, 5) + }, + easeOutQuint: function(pos) { + return Math.pow(pos - 1, 5) + 1 + }, + easeInOutQuint: function(pos) { + return (pos /= .5) < 1 ? .5 * Math.pow(pos, 5) : .5 * (Math.pow(pos - 2, 5) + 2) + }, + easeInSine: function(pos) { + return 1 - Math.cos(pos * (Math.PI / 2)) + }, + easeOutSine: function(pos) { + return Math.sin(pos * (Math.PI / 2)) + }, + easeInOutSine: function(pos) { + return -.5 * (Math.cos(Math.PI * pos) - 1) + }, + easeInExpo: function(pos) { + return 0 === pos ? 0 : Math.pow(2, 10 * (pos - 1)) + }, + easeOutExpo: function(pos) { + return 1 === pos ? 1 : 1 - Math.pow(2, -10 * pos) + }, + easeInOutExpo: function(pos) { + return 0 === pos ? 0 : 1 === pos ? 1 : (pos /= .5) < 1 ? .5 * Math.pow(2, 10 * (pos - 1)) : .5 * (2 - Math.pow(2, -10 * --pos)) + }, + easeInCirc: function(pos) { + return -(Math.sqrt(1 - pos * pos) - 1) + }, + easeOutCirc: function(pos) { + return Math.sqrt(1 - Math.pow(pos - 1, 2)) + }, + easeInOutCirc: function(pos) { + return (pos /= .5) < 1 ? -.5 * (Math.sqrt(1 - pos * pos) - 1) : .5 * (Math.sqrt(1 - (pos -= 2) * pos) + 1) + }, + easeOutBounce: function(pos) { + return pos < 1 / 2.75 ? 7.5625 * pos * pos : pos < 2 / 2.75 ? 7.5625 * (pos -= 1.5 / 2.75) * pos + .75 : pos < 2.5 / 2.75 ? 7.5625 * (pos -= 2.25 / 2.75) * pos + .9375 : 7.5625 * (pos -= 2.625 / 2.75) * pos + .984375 + }, + easeInBack: function(pos) { + var s = 1.70158; + return pos * pos * ((1 + s) * pos - s) + }, + easeOutBack: function(pos) { + var s = 1.70158; + return (pos -= 1) * pos * ((1 + s) * pos + s) + 1 + }, + easeInOutBack: function(pos) { + var s = 1.70158; + return (pos /= .5) < 1 ? pos * pos * ((1 + (s *= 1.525)) * pos - s) * .5 : .5 * ((pos -= 2) * pos * ((1 + (s *= 1.525)) * pos + s) + 2) + }, + elastic: function(pos) { + return -1 * Math.pow(4, -8 * pos) * Math.sin((6 * pos - 1) * (2 * Math.PI) / 2) + 1 + }, + swingFromTo: function(pos) { + var s = 1.70158; + return (pos /= .5) < 1 ? pos * pos * ((1 + (s *= 1.525)) * pos - s) * .5 : .5 * ((pos -= 2) * pos * ((1 + (s *= 1.525)) * pos + s) + 2) + }, + swingFrom: function(pos) { + var s = 1.70158; + return pos * pos * ((1 + s) * pos - s) + }, + swingTo: function(pos) { + var s = 1.70158; + return --pos * pos * ((1 + s) * pos + s) + 1 + }, + bounce: function(pos) { + return pos < 1 / 2.75 ? 7.5625 * pos * pos : pos < 2 / 2.75 ? 7.5625 * (pos -= 1.5 / 2.75) * pos + .75 : pos < 2.5 / 2.75 ? 7.5625 * (pos -= 2.25 / 2.75) * pos + .9375 : 7.5625 * (pos -= 2.625 / 2.75) * pos + .984375 + }, + bouncePast: function(pos) { + return pos < 1 / 2.75 ? 7.5625 * pos * pos : pos < 2 / 2.75 ? 2 - (7.5625 * (pos -= 1.5 / 2.75) * pos + .75) : pos < 2.5 / 2.75 ? 2 - (7.5625 * (pos -= 2.25 / 2.75) * pos + .9375) : 2 - (7.5625 * (pos -= 2.625 / 2.75) * pos + .984375) + }, + easeFromTo: function(pos) { + return (pos /= .5) < 1 ? .5 * Math.pow(pos, 4) : -.5 * ((pos -= 2) * Math.pow(pos, 3) - 2) + }, + easeFrom: function(pos) { + return Math.pow(pos, 4) + }, + easeTo: function(pos) { + return Math.pow(pos, .25) + } + }), + Tweenable.setBezierFunction = function(name, x1, y1, x2, y2) { + var cubicBezierTransition = getCubicBezierTransition(x1, y1, x2, y2); + return cubicBezierTransition.displayName = name, + cubicBezierTransition.x1 = x1, + cubicBezierTransition.y1 = y1, + cubicBezierTransition.x2 = x2, + cubicBezierTransition.y2 = y2, + Tweenable.prototype.formula[name] = cubicBezierTransition + } + , + Tweenable.unsetBezierFunction = function(name) { + delete Tweenable.prototype.formula[name] + } + , + (mockTweenable = new Tweenable)._filterArgs = [], + Tweenable.interpolate = function(from, targetState, position, easing, opt_delay) { + var current = Tweenable.shallowCopy({}, from); + var opt_delay = opt_delay || 0; + var easing = Tweenable.composeEasingObject(from, easing || "linear"); + mockTweenable.set({}); + var filterArgs = mockTweenable._filterArgs; + filterArgs.length = 0, + filterArgs[0] = current, + filterArgs[1] = from, + filterArgs[2] = targetState, + filterArgs[3] = easing, + Tweenable.applyFilter(mockTweenable, "tweenCreated"), + Tweenable.applyFilter(mockTweenable, "beforeTween"); + var filterArgs = getInterpolatedValues(from, current, targetState, position, easing, opt_delay); + return Tweenable.applyFilter(mockTweenable, "afterTween"), + filterArgs + } + , + function(Tweenable) { + var R_NUMBER_COMPONENT = /(\d|\-|\.)/; + var R_FORMAT_CHUNKS = /([^\-0-9\.]+)/g; + var R_UNFORMATTED_VALUES = /[0-9.\-]+/g; + var R_RGB = new RegExp("rgb\\(" + R_UNFORMATTED_VALUES.source + /,\s*/.source + R_UNFORMATTED_VALUES.source + /,\s*/.source + R_UNFORMATTED_VALUES.source + "\\)","g"); + var R_RGB_PREFIX = /^.*\(/; + var R_HEX = /#([0-9]|[a-f]){3,6}/gi; + var VALUE_PLACEHOLDER = "VAL"; + function getFormatChunksFrom(rawValues, prefix) { + var accumulator = []; + var rawValuesLength = rawValues.length; + var i; + for (i = 0; i < rawValuesLength; i++) + accumulator.push("_" + prefix + "_" + i); + return accumulator + } + function getFormatStringFrom(formattedString) { + var chunks = formattedString.match(R_FORMAT_CHUNKS); + return chunks ? 1 !== chunks.length && !formattedString.charAt(0).match(R_NUMBER_COMPONENT) || chunks.unshift("") : chunks = ["", ""], + chunks.join(VALUE_PLACEHOLDER) + } + function sanitizeObjectForHexProps(stateObject) { + Tweenable.each(stateObject, function(prop) { + var currentProp = stateObject[prop]; + "string" == typeof currentProp && currentProp.match(R_HEX) && (stateObject[prop] = sanitizeHexChunksToRGB(currentProp)) + }) + } + function sanitizeHexChunksToRGB(str) { + return filterStringChunks(R_HEX, str, convertHexToRGB) + } + function convertHexToRGB(hexString) { + var hexString = hexToRGBArray(hexString); + return "rgb(" + hexString[0] + "," + hexString[1] + "," + hexString[2] + ")" + } + var hexToRGBArray_returnArray = []; + function hexToRGBArray(hex) { + return 3 === (hex = hex.replace(/#/, "")).length && (hex = (hex = hex.split(""))[0] + hex[0] + hex[1] + hex[1] + hex[2] + hex[2]), + hexToRGBArray_returnArray[0] = hexToDec(hex.substr(0, 2)), + hexToRGBArray_returnArray[1] = hexToDec(hex.substr(2, 2)), + hexToRGBArray_returnArray[2] = hexToDec(hex.substr(4, 2)), + hexToRGBArray_returnArray + } + function hexToDec(hex) { + return parseInt(hex, 16) + } + function filterStringChunks(pattern, unfilteredString, filter) { + var pattenMatches = unfilteredString.match(pattern); + var filteredString = unfilteredString.replace(pattern, VALUE_PLACEHOLDER); + if (pattenMatches) { + var pattenMatchesLength = pattenMatches.length; + var currentChunk; + for (var i = 0; i < pattenMatchesLength; i++) + currentChunk = pattenMatches.shift(), + filteredString = filteredString.replace(VALUE_PLACEHOLDER, filter(currentChunk)) + } + return filteredString + } + function sanitizeRGBChunks(formattedString) { + return filterStringChunks(R_RGB, formattedString, sanitizeRGBChunk) + } + function sanitizeRGBChunk(rgbChunk) { + var numbers = rgbChunk.match(R_UNFORMATTED_VALUES); + var numbersLength = numbers.length; + var sanitizedString = rgbChunk.match(R_RGB_PREFIX)[0]; + for (var i = 0; i < numbersLength; i++) + sanitizedString += parseInt(numbers[i], 10) + ","; + return sanitizedString = sanitizedString.slice(0, -1) + ")" + } + function getFormatManifests(stateObject) { + var manifestAccumulator = {}; + return Tweenable.each(stateObject, function(prop) { + var currentProp = stateObject[prop]; + var rawValues; + "string" == typeof currentProp && (rawValues = getValuesFrom(currentProp), + manifestAccumulator[prop] = { + formatString: getFormatStringFrom(currentProp), + chunkNames: getFormatChunksFrom(rawValues, prop) + }) + }), + manifestAccumulator + } + function expandFormattedProperties(stateObject, formatManifests) { + Tweenable.each(formatManifests, function(prop) { + var currentProp; + var rawValues = getValuesFrom(stateObject[prop]); + var rawValuesLength = rawValues.length; + for (var i = 0; i < rawValuesLength; i++) + stateObject[formatManifests[prop].chunkNames[i]] = +rawValues[i]; + delete stateObject[prop] + }) + } + function collapseFormattedProperties(stateObject, formatManifests) { + Tweenable.each(formatManifests, function(prop) { + var currentProp = stateObject[prop]; + var formatChunks; + var valuesList = getValuesList(extractPropertyChunks(stateObject, formatManifests[prop].chunkNames), formatManifests[prop].chunkNames); + currentProp = getFormattedValues(formatManifests[prop].formatString, valuesList), + stateObject[prop] = sanitizeRGBChunks(currentProp) + }) + } + function extractPropertyChunks(stateObject, chunkNames) { + var extractedValues = {}; + var currentChunkName, chunkNamesLength = chunkNames.length; + for (var i = 0; i < chunkNamesLength; i++) + extractedValues[currentChunkName = chunkNames[i]] = stateObject[currentChunkName], + delete stateObject[currentChunkName]; + return extractedValues + } + var getValuesList_accumulator = []; + function getValuesList(stateObject, chunkNames) { + getValuesList_accumulator.length = 0; + var chunkNamesLength = chunkNames.length; + for (var i = 0; i < chunkNamesLength; i++) + getValuesList_accumulator.push(stateObject[chunkNames[i]]); + return getValuesList_accumulator + } + function getFormattedValues(formatString, rawValues) { + var formattedValueString = formatString; + var rawValuesLength = rawValues.length; + for (var i = 0; i < rawValuesLength; i++) + formattedValueString = formattedValueString.replace(VALUE_PLACEHOLDER, +rawValues[i].toFixed(4)); + return formattedValueString + } + function getValuesFrom(formattedString) { + return formattedString.match(R_UNFORMATTED_VALUES) + } + function expandEasingObject(easingObject, tokenData) { + Tweenable.each(tokenData, function(prop) { + var currentProp; + var chunkNames = tokenData[prop].chunkNames; + var chunkLength = chunkNames.length; + var easing = easingObject[prop]; + var i; + if ("string" == typeof easing) { + var easingChunks = easing.split(" "); + var lastEasingChunk = easingChunks[easingChunks.length - 1]; + for (i = 0; i < chunkLength; i++) + easingObject[chunkNames[i]] = easingChunks[i] || lastEasingChunk + } else + for (i = 0; i < chunkLength; i++) + easingObject[chunkNames[i]] = easing; + delete easingObject[prop] + }) + } + function collapseEasingObject(easingObject, tokenData) { + Tweenable.each(tokenData, function(prop) { + var currentProp; + var chunkNames = tokenData[prop].chunkNames; + var chunkLength = chunkNames.length; + var firstEasing = easingObject[chunkNames[0]]; + var typeofEasings; + if ("string" == typeof firstEasing) { + var composedEasingString = ""; + for (var i = 0; i < chunkLength; i++) + composedEasingString += " " + easingObject[chunkNames[i]], + delete easingObject[chunkNames[i]]; + easingObject[prop] = composedEasingString.substr(1) + } else + easingObject[prop] = firstEasing + }) + } + Tweenable.prototype.filter.token = { + tweenCreated: function(currentState, fromState, toState, easingObject) { + sanitizeObjectForHexProps(currentState), + sanitizeObjectForHexProps(fromState), + sanitizeObjectForHexProps(toState), + this._tokenData = getFormatManifests(currentState) + }, + beforeTween: function(currentState, fromState, toState, easingObject) { + expandEasingObject(easingObject, this._tokenData), + expandFormattedProperties(currentState, this._tokenData), + expandFormattedProperties(fromState, this._tokenData), + expandFormattedProperties(toState, this._tokenData) + }, + afterTween: function(currentState, fromState, toState, easingObject) { + collapseFormattedProperties(currentState, this._tokenData), + collapseFormattedProperties(fromState, this._tokenData), + collapseFormattedProperties(toState, this._tokenData), + collapseEasingObject(easingObject, this._tokenData) + } + } + }(Tweenable) + } + .call(null) + } + , {}], + 2: [function(require, module, exports) { + var Shape = require("./shape"); + var utils = require("./utils"); + var require = function Circle(container, options) { + this._pathTemplate = "M 50,50 m 0,-{radius} a {radius},{radius} 0 1 1 0,{2radius} a {radius},{radius} 0 1 1 0,-{2radius}", + this.containerAspectRatio = 1, + Shape.apply(this, arguments) + }; + ((require.prototype = new Shape).constructor = require).prototype._pathString = function _pathString(opts) { + var widthOfWider = opts.strokeWidth; + var opts = 50 - (widthOfWider = opts.trailWidth && opts.trailWidth > opts.strokeWidth ? opts.trailWidth : widthOfWider) / 2; + return utils.render(this._pathTemplate, { + radius: opts, + "2radius": 2 * opts + }) + } + , + require.prototype._trailString = function _trailString(opts) { + return this._pathString(opts) + } + , + module.exports = require + } + , { + "./shape": 7, + "./utils": 9 + }], + 3: [function(require, module, exports) { + var Shape = require("./shape"); + var utils = require("./utils"); + var require = function Line(container, options) { + this._pathTemplate = "M 0,{center} L 100,{center}", + Shape.apply(this, arguments) + }; + ((require.prototype = new Shape).constructor = require).prototype._initializeSvg = function _initializeSvg(svg, opts) { + svg.setAttribute("viewBox", "0 0 100 " + opts.strokeWidth), + svg.setAttribute("preserveAspectRatio", "none") + } + , + require.prototype._pathString = function _pathString(opts) { + return utils.render(this._pathTemplate, { + center: opts.strokeWidth / 2 + }) + } + , + require.prototype._trailString = function _trailString(opts) { + return this._pathString(opts) + } + , + module.exports = require + } + , { + "./shape": 7, + "./utils": 9 + }], + 4: [function(require, module, exports) { + module.exports = { + Line: require("./line"), + Circle: require("./circle"), + SemiCircle: require("./semicircle"), + Square: require("./square"), + Path: require("./path"), + Shape: require("./shape"), + utils: require("./utils") + } + } + , { + "./circle": 2, + "./line": 3, + "./path": 5, + "./semicircle": 6, + "./shape": 7, + "./square": 8, + "./utils": 9 + }], + 5: [function(require, module, exports) { + var Tweenable = require("shifty"); + var utils = require("./utils"); + var EASING_ALIASES = { + easeIn: "easeInCubic", + easeOut: "easeOutCubic", + easeInOut: "easeInOutCubic" + }; + var require = function Path(path, opts) { + if (!(this instanceof Path)) + throw new Error("Constructor was called without new keyword"); + var path; + opts = utils.extend({ + duration: 800, + easing: "linear", + from: {}, + to: {}, + step: function() {} + }, opts), + path = utils.isString(path) ? document.querySelector(path) : path, + this.path = path, + this._opts = opts, + this._tweenable = null; + var path = this.path.getTotalLength(); + this.path.style.strokeDasharray = path + " " + path, + this.set(0) + }; + require.prototype.value = function value() { + var offset = this._getComputedDashOffset(); + var length = this.path.getTotalLength(); + var progress; + return parseFloat((1 - offset / length).toFixed(6), 10) + } + , + require.prototype.set = function set(progress) { + this.stop(), + this.path.style.strokeDashoffset = this._progressToOffset(progress); + var step = this._opts.step; + var easing, values, reference; + utils.isFunction(step) && (easing = this._easing(this._opts.easing), + step(this._calculateTo(progress, easing), this._opts.shape || this, this._opts.attachment)) + } + , + require.prototype.stop = function stop() { + this._stopTween(), + this.path.style.strokeDashoffset = this._getComputedDashOffset() + } + , + require.prototype.animate = function animate(progress, opts, cb) { + opts = opts || {}, + utils.isFunction(opts) && (cb = opts, + opts = {}); + var passedOpts = utils.extend({}, opts); + var defaultOpts = utils.extend({}, this._opts); + opts = utils.extend(defaultOpts, opts); + var defaultOpts = this._easing(opts.easing); + var passedOpts = this._resolveFromAndTo(progress, defaultOpts, passedOpts); + this.stop(), + this.path.getBoundingClientRect(); + var offset = this._getComputedDashOffset(); + var progress = this._progressToOffset(progress); + var self = this; + this._tweenable = new Tweenable, + this._tweenable.tween({ + from: utils.extend({ + offset: offset + }, passedOpts.from), + to: utils.extend({ + offset: progress + }, passedOpts.to), + duration: opts.duration, + easing: defaultOpts, + step: function(state) { + self.path.style.strokeDashoffset = state.offset; + var reference = opts.shape || self; + opts.step(state, reference, opts.attachment) + }, + finish: function(state) { + utils.isFunction(cb) && cb() + } + }) + } + , + require.prototype._getComputedDashOffset = function _getComputedDashOffset() { + var computedStyle = window.getComputedStyle(this.path, null); + return parseFloat(computedStyle.getPropertyValue("stroke-dashoffset"), 10) + } + , + require.prototype._progressToOffset = function _progressToOffset(progress) { + var length = this.path.getTotalLength(); + return length - progress * length + } + , + require.prototype._resolveFromAndTo = function _resolveFromAndTo(progress, easing, opts) { + return opts.from && opts.to ? { + from: opts.from, + to: opts.to + } : { + from: this._calculateFrom(easing), + to: this._calculateTo(progress, easing) + } + } + , + require.prototype._calculateFrom = function _calculateFrom(easing) { + return Tweenable.interpolate(this._opts.from, this._opts.to, this.value(), easing) + } + , + require.prototype._calculateTo = function _calculateTo(progress, easing) { + return Tweenable.interpolate(this._opts.from, this._opts.to, progress, easing) + } + , + require.prototype._stopTween = function _stopTween() { + null !== this._tweenable && (this._tweenable.stop(), + this._tweenable = null) + } + , + require.prototype._easing = function _easing(easing) { + return EASING_ALIASES.hasOwnProperty(easing) ? EASING_ALIASES[easing] : easing + } + , + module.exports = require + } + , { + "./utils": 9, + shifty: 1 + }], + 6: [function(require, module, exports) { + var Shape = require("./shape"); + var Circle = require("./circle"); + var utils = require("./utils"); + var require = function SemiCircle(container, options) { + this._pathTemplate = "M 50,50 m -{radius},0 a {radius},{radius} 0 1 1 {2radius},0", + this.containerAspectRatio = 2, + Shape.apply(this, arguments) + }; + ((require.prototype = new Shape).constructor = require).prototype._initializeSvg = function _initializeSvg(svg, opts) { + svg.setAttribute("viewBox", "0 0 100 50") + } + , + require.prototype._initializeTextContainer = function _initializeTextContainer(opts, container, textContainer) { + opts.text.style && (textContainer.style.top = "auto", + textContainer.style.bottom = "0", + opts.text.alignToBottom ? utils.setStyle(textContainer, "transform", "translate(-50%, 0)") : utils.setStyle(textContainer, "transform", "translate(-50%, 50%)")) + } + , + require.prototype._pathString = Circle.prototype._pathString, + require.prototype._trailString = Circle.prototype._trailString, + module.exports = require + } + , { + "./circle": 2, + "./shape": 7, + "./utils": 9 + }], + 7: [function(require, module, exports) { + var Path = require("./path"); + var utils = require("./utils"); + var DESTROYED_ERROR = "Object is destroyed"; + var require = function Shape(container, opts) { + if (!(this instanceof Shape)) + throw new Error("Constructor was called without new keyword"); + if (0 !== arguments.length) { + this._opts = utils.extend({ + color: "#555", + strokeWidth: 1, + trailColor: null, + trailWidth: null, + fill: null, + text: { + style: { + color: null, + position: "absolute", + left: "50%", + top: "50%", + padding: 0, + margin: 0, + transform: { + prefix: !0, + value: "translate(-50%, -50%)" + } + }, + autoStyleContainer: !0, + alignToBottom: !0, + value: null, + className: "progressbar-text" + }, + svgStyle: { + display: "block", + width: "100%" + }, + warnings: !1 + }, opts, !0), + utils.isObject(opts) && void 0 !== opts.svgStyle && (this._opts.svgStyle = opts.svgStyle), + utils.isObject(opts) && utils.isObject(opts.text) && void 0 !== opts.text.style && (this._opts.text.style = opts.text.style); + var opts = this._createSvgView(this._opts); + var element; + if (!(element = utils.isString(container) ? document.querySelector(container) : container)) + throw new Error("Container does not exist: " + container); + this._container = element, + this._container.appendChild(opts.svg), + this._opts.warnings && this._warnContainerAspectRatio(this._container), + this._opts.svgStyle && utils.setStyles(opts.svg, this._opts.svgStyle), + this.svg = opts.svg, + this.path = opts.path, + this.trail = opts.trail, + this.text = null; + var container = utils.extend({ + attachment: void 0, + shape: this + }, this._opts); + this._progressPath = new Path(opts.path,container), + utils.isObject(this._opts.text) && null !== this._opts.text.value && this.setText(this._opts.text.value) + } + }; + require.prototype.animate = function animate(progress, opts, cb) { + if (null === this._progressPath) + throw new Error(DESTROYED_ERROR); + this._progressPath.animate(progress, opts, cb) + } + , + require.prototype.stop = function stop() { + if (null === this._progressPath) + throw new Error(DESTROYED_ERROR); + void 0 !== this._progressPath && this._progressPath.stop() + } + , + require.prototype.destroy = function destroy() { + if (null === this._progressPath) + throw new Error(DESTROYED_ERROR); + this.stop(), + this.svg.parentNode.removeChild(this.svg), + this.svg = null, + this.path = null, + this.trail = null, + (this._progressPath = null) !== this.text && (this.text.parentNode.removeChild(this.text), + this.text = null) + } + , + require.prototype.set = function set(progress) { + if (null === this._progressPath) + throw new Error(DESTROYED_ERROR); + this._progressPath.set(progress) + } + , + require.prototype.value = function value() { + if (null === this._progressPath) + throw new Error(DESTROYED_ERROR); + return void 0 === this._progressPath ? 0 : this._progressPath.value() + } + , + require.prototype.setText = function setText(newText) { + if (null === this._progressPath) + throw new Error(DESTROYED_ERROR); + null === this.text && (this.text = this._createTextContainer(this._opts, this._container), + this._container.appendChild(this.text)), + utils.isObject(newText) ? (utils.removeChildren(this.text), + this.text.appendChild(newText)) : this.text.innerHTML = newText + } + , + require.prototype._createSvgView = function _createSvgView(opts) { + var svg = document.createElementNS("http://www.w3.org/2000/svg", "svg"); + this._initializeSvg(svg, opts); + var trailPath = null; + (opts.trailColor || opts.trailWidth) && (trailPath = this._createTrail(opts), + svg.appendChild(trailPath)); + var opts = this._createPath(opts); + return svg.appendChild(opts), + { + svg: svg, + path: opts, + trail: trailPath + } + } + , + require.prototype._initializeSvg = function _initializeSvg(svg, opts) { + svg.setAttribute("viewBox", "0 0 100 100") + } + , + require.prototype._createPath = function _createPath(opts) { + var pathString = this._pathString(opts); + return this._createPathElement(pathString, opts) + } + , + require.prototype._createTrail = function _createTrail(opts) { + var pathString = this._trailString(opts); + var opts = utils.extend({}, opts); + return opts.trailColor || (opts.trailColor = "#eee"), + opts.trailWidth || (opts.trailWidth = opts.strokeWidth), + opts.color = opts.trailColor, + opts.strokeWidth = opts.trailWidth, + opts.fill = null, + this._createPathElement(pathString, opts) + } + , + require.prototype._createPathElement = function _createPathElement(pathString, opts) { + var path = document.createElementNS("http://www.w3.org/2000/svg", "path"); + return path.setAttribute("d", pathString), + path.setAttribute("stroke", opts.color), + path.setAttribute("stroke-width", opts.strokeWidth), + opts.fill ? path.setAttribute("fill", opts.fill) : path.setAttribute("fill-opacity", "0"), + path + } + , + require.prototype._createTextContainer = function _createTextContainer(opts, container) { + var textContainer = document.createElement("div"); + textContainer.className = opts.text.className; + var textStyle = opts.text.style; + return textStyle && (opts.text.autoStyleContainer && (container.style.position = "relative"), + utils.setStyles(textContainer, textStyle), + textStyle.color || (textContainer.style.color = opts.color)), + this._initializeTextContainer(opts, container, textContainer), + textContainer + } + , + require.prototype._initializeTextContainer = function(opts, container, element) {} + , + require.prototype._pathString = function _pathString(opts) { + throw new Error("Override this function for each progress bar") + } + , + require.prototype._trailString = function _trailString(opts) { + throw new Error("Override this function for each progress bar") + } + , + require.prototype._warnContainerAspectRatio = function _warnContainerAspectRatio(container) { + var computedStyle, width, height; + this.containerAspectRatio && (computedStyle = window.getComputedStyle(container, null), + width = parseFloat(computedStyle.getPropertyValue("width"), 10), + height = parseFloat(computedStyle.getPropertyValue("height"), 10), + utils.floatEquals(this.containerAspectRatio, width / height) || (console.warn("Incorrect aspect ratio of container", "#" + container.id, "detected:", computedStyle.getPropertyValue("width") + "(width)", "/", computedStyle.getPropertyValue("height") + "(height)", "=", width / height), + console.warn("Aspect ratio of should be", this.containerAspectRatio))) + } + , + module.exports = require + } + , { + "./path": 5, + "./utils": 9 + }], + 8: [function(require, module, exports) { + var Shape = require("./shape"); + var utils = require("./utils"); + var require = function Square(container, options) { + this._pathTemplate = "M 0,{halfOfStrokeWidth} L {width},{halfOfStrokeWidth} L {width},{width} L {halfOfStrokeWidth},{width} L {halfOfStrokeWidth},{strokeWidth}", + this._trailTemplate = "M {startMargin},{halfOfStrokeWidth} L {width},{halfOfStrokeWidth} L {width},{width} L {halfOfStrokeWidth},{width} L {halfOfStrokeWidth},{halfOfStrokeWidth}", + Shape.apply(this, arguments) + }; + ((require.prototype = new Shape).constructor = require).prototype._pathString = function _pathString(opts) { + var w = 100 - opts.strokeWidth / 2; + return utils.render(this._pathTemplate, { + width: w, + strokeWidth: opts.strokeWidth, + halfOfStrokeWidth: opts.strokeWidth / 2 + }) + } + , + require.prototype._trailString = function _trailString(opts) { + var w = 100 - opts.strokeWidth / 2; + return utils.render(this._trailTemplate, { + width: w, + strokeWidth: opts.strokeWidth, + halfOfStrokeWidth: opts.strokeWidth / 2, + startMargin: opts.strokeWidth / 2 - opts.trailWidth / 2 + }) + } + , + module.exports = require + } + , { + "./shape": 7, + "./utils": 9 + }], + 9: [function(require, module, exports) { + var PREFIXES = "Webkit Moz O ms".split(" "); + var FLOAT_COMPARISON_EPSILON = .001; + function extend(destination, source, recursive) { + for (var attrName in destination = destination || {}, + recursive = recursive || !1, + source = source || {}) { + var destVal, sourceVal; + source.hasOwnProperty(attrName) && (destVal = destination[attrName], + sourceVal = source[attrName], + recursive && isObject(destVal) && isObject(sourceVal) ? destination[attrName] = extend(destVal, sourceVal, recursive) : destination[attrName] = sourceVal) + } + return destination + } + function render(template, vars) { + var rendered = template; + for (var key in vars) { + var val, regExpString, key; + vars.hasOwnProperty(key) && (val = vars[key], + key = new RegExp("\\{" + key + "\\}","g"), + rendered = rendered.replace(key, val)) + } + return rendered + } + function setStyle(element, style, value) { + var elStyle = element.style; + for (var i = 0; i < PREFIXES.length; ++i) { + var prefix; + elStyle[PREFIXES[i] + capitalize(style)] = value + } + elStyle[style] = value + } + function setStyles(element, styles) { + forEachObject(styles, function(styleValue, styleName) { + null != styleValue && (isObject(styleValue) && !0 === styleValue.prefix ? setStyle(element, styleName, styleValue.value) : element.style[styleName] = styleValue) + }) + } + function capitalize(text) { + return text.charAt(0).toUpperCase() + text.slice(1) + } + function isString(obj) { + return "string" == typeof obj || obj instanceof String + } + function isFunction(obj) { + return "function" == typeof obj + } + function isArray(obj) { + return "[object Array]" === Object.prototype.toString.call(obj) + } + function isObject(obj) { + var type; + return !isArray(obj) && "object" == typeof obj && !!obj + } + function forEachObject(object, callback) { + for (var key in object) { + var val; + object.hasOwnProperty(key) && callback(object[key], key) + } + } + function floatEquals(a, b) { + return Math.abs(a - b) < .001 + } + function removeChildren(el) { + for (; el.firstChild; ) + el.removeChild(el.firstChild) + } + module.exports = { + extend: extend, + render: render, + setStyle: setStyle, + setStyles: setStyles, + capitalize: capitalize, + isString: isString, + isFunction: isFunction, + isObject: isObject, + forEachObject: forEachObject, + floatEquals: floatEquals, + removeChildren: removeChildren + } + } + , {}] + }, {}, [4])(4) + } + , + module.exports = f() + }); + function getCss() { + return "\n #h5branding-center {\n position: absolute;\n top: 45%;\n left: 50%;\n transform: translate(-50%, -20%);\n text-align: center;\n width: 100%;\n }\n #h5branding-wrapper {\n position: relative;\n z-index: 665;\n width: 150px;\n height: 150px;\n display:inline-block;\n margin: 35px 40px 96px 40px;\n }\n\n #h5branding-version {\n position: absolute;\n right: 10px;\n font-family: Helvetica, Arial, sans-serif;\n color: #ffffff;\n font-size: 0.8em;\n top: 10px;\n display: none;\n }\n\n #h5branding-wrapper > #h5branding-bar, #h5branding-wrapper > img {\n box-shadow: inset 10px 10px 20px 5px rgba(0, 0, 0, 0.5);\n border-radius: 50%;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n }\n\n #h5branding-ad {\n position: relative;\n z-index: 667;\n border-radius: 5px;\n border: 3px solid white;\n background: rgba(256, 256, 256, 0.2);\n width: 336px;\n height: 280px;\n display: none;\n margin: 0px 10px 0px 10px;\n }\n\n #h5branding-wrapper > img {\n /* Needs appropriate vendor prefixes */\n box-sizing: border-box;\n\n /* This needs to be equal to strokeWidth */\n padding: 4%;\n }\n\n #h5branding-wrapper > img {\n border-radius: 50%;\n box-shadow: inset 0 5px 5px rgba(0, 0, 0, 0.5), 5px 5px 7px rgba(0, 0, 0, 0.3);\n }\n\n #h5branding-container {\n box-sizing: border-box;\n position: absolute;\n z-index: 664;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n background-color: #000;\n overflow: hidden;\n }\n\n #h5branding-background {\n position: absolute;\n top: -25%;\n left: -25%;\n width: 150%;\n height: 150%;\n background-blend-mode: multiply;\n background-size: cover;\n filter: blur(40px) brightness(1.5);\n }\n\n @media all and (-ms-high-contrast: none), (-ms-high-contrast: active) {\n /* IE10+ CSS styles go here */\n #h5branding-background {\n background-image: none !important;\n }\n }\n\n #h5branding-logo {\n position: absolute;\n margin: 0 auto;\n left: 0;\n right: 0;\n text-align: center;\n top: 10%;\n }\n\n #h5branding-logo > img {\n height: 150px;\n }\n\n #h5branding-title {\n position: absolute;\n width: 100%;\n background: linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.5) 50%, transparent);\n color: #fff;\n text-shadow: 0 0 1px rgba(0, 0, 0, 0.7);\n bottom:10%;\n padding: 15px 0;\n text-align: center;\n font-size: 18px;\n font-family: Helvetica, Arial, sans-serif;\n font-weight: bold;\n line-height: 100%;\n }\n\n #h5branding-button {\n /* border: 0; */\n padding: 10px 22px;\n border-radius: 5px;\n border: 3px solid white;\n background: linear-gradient(0deg, #dddddd, #ffffff);\n color: #222;\n text-transform: uppercase;\n text-shadow: 0 0 1px #fff;\n font-family: Helvetica, Arial, sans-serif;\n font-weight: bold;\n font-size: 18px;\n cursor: pointer;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);\n display: none;\n width: 150px;\n position: absolute;\n top: 170px;\n margin: 0 auto;\n left: 0;\n right: 0;\n }\n\n @media (orientation: portrait) and (max-width: 1080px) {\n #h5branding-logo > img {\n height: initial;\n width:100%;\n }\n }\n\n @media (orientation: landscape) and (max-height: 640px) {\n #h5branding-title {\n display: none;\n }\n\n #h5branding-logo > img {\n height: 100px;\n }\n }\n\n @media (orientation: landscape) and (max-height: 460px) {\n #h5branding-title {\n display: none;\n }\n\n #h5branding-wrapper {\n width: 110px;\n height: 110px;\n margin: 0;\n }\n\n #h5branding-logo {\n top: 0;\n transform: scale(0.7, 0.7);\n }\n\n #h5branding-button {\n top: initial;\n width: 110px;\n font-size: 14px;\n position: absolute;\n top: 140px;\n left: 0;\n right: 0;\n }\n\n #h5branding-ad {\n display: none !important;\n }\n }\n\n @media (orientation: portrait) and (max-width: 250px) {\n #h5branding-logo {\n top: 2%;\n }\n }\n\n @media (orientation: landscape) and (max-width: 330px) {\n #h5branding-button {\n top: 120px;\n }\n\n #h5branding-logo > img {\n height: 70px;\n }\n }\n\n @media (max-width: 600px) and (max-height: 850px) {\n #h5branding-ad {\n display: none !important;\n }\n }\n\n @media (max-width: 600px) and (max-height: 1100px) {\n #h5branding-center {\n top: 40%;\n }\n\n #h5branding-title {\n bottom: 5%\n }\n }\n\n @media (max-width: 600px) and (max-height: 900px) {\n #h5branding-title {\n display: none\n }\n }\n\n @media (orientation: landscape) and (min-width: 800px) {\n #h5branding-wrapper {\n margin-left: 120px;\n margin-right: 120px;\n }\n }\n\n " + } + function getHtml(gameLogo, gameTitle) { + return '\n
\n
\n \n
\n
\n
\n \n
\n \n
\n
\n
').concat(gameTitle, "
\n ") + } + var BrandingDomain = function() { + function SplashLoader(options) { + this.circleLoader = null, + this.loaded = !1, + this.showPlayButton = "undefined" == typeof playBtn || playBtn, + this.progress = 0, + this.options = { + gameId: "12346", + gameTitle: "Place Holder", + gameName: "place-holder", + libs: [], + version: "dev", + barColor: "white", + gaMeasurementId: "none" + }, + this.options.gameId = options.gameId, + this.options.gameTitle = options.gameTitle, + this.options.version = options.version, + this.options.barColor = options.barColor || this.options.barColor, + this.options.libs = options.libs, + this.options.gaMeasurementId = options.gaMeasurementId + } + return SplashLoader.getInstance = function(options) { + if (!SplashLoader.instance) { + if (!options) + throw new Error("Can not create new SplashLoader instance without options!"); + SplashLoader.instance = new SplashLoader(options) + } + return SplashLoader.instance + } + , + SplashLoader.prototype.create = function() { + return __awaiter(this, void 0, void 0, function() { + var css, html, head, style, css, head, style; + return __generator(this, function(_a) { + switch (_a.label) { + case 0: + return css = getCss(), + html = getHtml(this.getGameLogoUrl(), this.options.gameTitle), + head = document.head || document.getElementsByTagName("head")[0], + (style = document.createElement("style")).type = "text/css", + style.styleSheet ? style.styleSheet.cssText = css : style.appendChild(document.createTextNode(css)), + head.appendChild(style), + (css = document.createElement("div")).innerHTML = html, + css.id = "h5branding-container", + (head = document.body || document.getElementsByTagName("body")[0]).insertBefore(css, head.firstChild), + this.circleLoader = new progressbar.Circle("#h5branding-bar",{ + strokeWidth: 3, + color: this.options.barColor + }), + (style = document.getElementById("h5branding-version")) && (style.innerHTML = this.options.version), + [4, this.loadLibs()]; + case 1: + return _a.sent(), + [4, Utils.loadHost()]; + case 2: + return _a.sent(), + [4, this.loadBranding()]; + case 3: + return _a.sent(), + this.loaded = !0, + [2] + } + }) + }) + } + , + SplashLoader.prototype.loadBranding = function() { + return __awaiter(this, void 0, void 0, function() { + var background, background, logo; + return __generator(this, function(_a) { + switch (_a.label) { + case 0: + return [4, Branding.preload(Date.now().toString())]; + case 1: + return _a.sent(), + (background = document.getElementById("h5branding-background")) && (background.style.backgroundColor = Branding.brandingBackgroundColor), + (background = document.getElementById("h5branding-logo")) && Utils.getBrandingDomain() !== exports.BrandingDomain.Neutral && ((logo = document.createElement("img")).src = Branding.brandingLogoUrl.replace("_small", ""), + background.appendChild(logo)), + [2] + } + }) + }) + } + , + SplashLoader.prototype.loadLibs = function() { + var _this = this; + var scripts = this.options.libs.map(function(url, index) { + return Loader.instance.loadScript(url, !0, function() { + _this.setScriptloadProgress(scripts.length, index + 1) + }) + }); + return Promise.all(scripts) + } + , + Object.defineProperty(SplashLoader.prototype, "bannerAllowed", { + get: function() { + var width = document.body.clientWidth; + var height = document.body.clientHeight; + return this.progress < 100 && !(height < width && height <= 460) && !(width < 600 && height < 850) + }, + enumerable: !1, + configurable: !0 + }), + SplashLoader.prototype.showBanner = function() { + var banner; + return this.bannerAllowed && (banner = document.getElementById("h5branding-ad")) ? (banner.style.display = "inline-flex", + banner) : null + } + , + SplashLoader.prototype.setScriptloadProgress = function(maxScripts, increment) { + var progress; + this.circleLoader.animate(.3 * increment / maxScripts, null, function() {}) + } + , + SplashLoader.prototype.setLoadProgress = function(progress) { + var _this = this; + var button_1; + this.loaded && (100 === (this.progress = progress = 30 + .7 * progress) ? (button_1 = document.querySelector("#h5branding-button"), + this.circleLoader.animate(1, null, function() { + !Utils.inGDGameZone() && button_1 && !0 === _this.showPlayButton ? button_1.style.display = "block" : !Utils.inGDGameZone() && !1 !== _this.showPlayButton || _this.onPlayButtonClick() + })) : this.circleLoader.animate(progress / 100, null, function() {})) + } + , + SplashLoader.prototype.setButtonCallback = function(cb) { + this.buttonCallback = cb + } + , + SplashLoader.prototype.onPlayButtonClick = function() { + this.buttonCallback && this.buttonCallback() + } + , + SplashLoader.prototype.destroy = function() { + var element = document.querySelector("#h5branding-container"); + null !== element && null !== element.parentNode && element.parentNode.removeChild(element) + } + , + SplashLoader.prototype.getGameLogoUrl = function() { + return "assets/icon.jpeg" + } + , + SplashLoader + }(); + exports.Branding = Branding, + exports.Domain = Domain, + exports.Hosts = Hosts, + exports.SplashLoader = BrandingDomain, + exports.Utils = Utils, + Object.defineProperty(exports, "__esModule", { + value: !0 + }) +}), +(()=>{ + var __webpack_modules__ = { + 34: module=>{ + "use strict"; + var has = Object.prototype.hasOwnProperty + , prefix = "~"; + function Events() {} + function EE(fn, context, once) { + this.fn = fn, + this.context = context, + this.once = once || !1 + } + function addListener(emitter, event, fn, context, once) { + if ("function" != typeof fn) + throw new TypeError("The listener must be a function"); + var fn = new EE(fn,context || emitter,once) + , context = prefix ? prefix + event : event; + return emitter._events[context] ? emitter._events[context].fn ? emitter._events[context] = [emitter._events[context], fn] : emitter._events[context].push(fn) : (emitter._events[context] = fn, + emitter._eventsCount++), + emitter + } + function clearEvent(emitter, evt) { + 0 == --emitter._eventsCount ? emitter._events = new Events : delete emitter._events[evt] + } + function EventEmitter() { + this._events = new Events, + this._eventsCount = 0 + } + Object.create && (Events.prototype = Object.create(null), + (new Events).__proto__ || (prefix = !1)), + EventEmitter.prototype.eventNames = function eventNames() { + var names = [], events, name; + if (0 === this._eventsCount) + return names; + for (name in events = this._events) + has.call(events, name) && names.push(prefix ? name.slice(1) : name); + return Object.getOwnPropertySymbols ? names.concat(Object.getOwnPropertySymbols(events)) : names + } + , + EventEmitter.prototype.listeners = function listeners(event) { + var event = prefix ? prefix + event : event + , handlers = this._events[event]; + if (!handlers) + return []; + if (handlers.fn) + return [handlers.fn]; + for (var i = 0, l = handlers.length, ee = new Array(l); i < l; i++) + ee[i] = handlers[i].fn; + return ee + } + , + EventEmitter.prototype.listenerCount = function listenerCount(event) { + var event = prefix ? prefix + event : event + , event = this._events[event]; + return event ? event.fn ? 1 : event.length : 0 + } + , + EventEmitter.prototype.emit = function emit(event, a1, a2, a3, a4, a5) { + var evt = prefix ? prefix + event : event; + if (!this._events[evt]) + return !1; + var listeners = this._events[evt], len = arguments.length, args, i; + if (listeners.fn) { + switch (listeners.once && this.removeListener(event, listeners.fn, void 0, !0), + len) { + case 1: + return listeners.fn.call(listeners.context), + !0; + case 2: + return listeners.fn.call(listeners.context, a1), + !0; + case 3: + return listeners.fn.call(listeners.context, a1, a2), + !0; + case 4: + return listeners.fn.call(listeners.context, a1, a2, a3), + !0; + case 5: + return listeners.fn.call(listeners.context, a1, a2, a3, a4), + !0; + case 6: + return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), + !0 + } + for (i = 1, + args = new Array(len - 1); i < len; i++) + args[i - 1] = arguments[i]; + listeners.fn.apply(listeners.context, args) + } else { + var length = listeners.length, j; + for (i = 0; i < length; i++) + switch (listeners[i].once && this.removeListener(event, listeners[i].fn, void 0, !0), + len) { + case 1: + listeners[i].fn.call(listeners[i].context); + break; + case 2: + listeners[i].fn.call(listeners[i].context, a1); + break; + case 3: + listeners[i].fn.call(listeners[i].context, a1, a2); + break; + case 4: + listeners[i].fn.call(listeners[i].context, a1, a2, a3); + break; + default: + if (!args) + for (j = 1, + args = new Array(len - 1); j < len; j++) + args[j - 1] = arguments[j]; + listeners[i].fn.apply(listeners[i].context, args) + } + } + return !0 + } + , + EventEmitter.prototype.on = function on(event, fn, context) { + return addListener(this, event, fn, context, !1) + } + , + EventEmitter.prototype.once = function once(event, fn, context) { + return addListener(this, event, fn, context, !0) + } + , + EventEmitter.prototype.removeListener = function removeListener(event, fn, context, once) { + var event = prefix ? prefix + event : event; + if (this._events[event]) + if (fn) { + var listeners = this._events[event]; + if (listeners.fn) + listeners.fn !== fn || once && !listeners.once || context && listeners.context !== context || clearEvent(this, event); + else { + for (var i = 0, events = [], length = listeners.length; i < length; i++) + (listeners[i].fn !== fn || once && !listeners[i].once || context && listeners[i].context !== context) && events.push(listeners[i]); + events.length ? this._events[event] = 1 === events.length ? events[0] : events : clearEvent(this, event) + } + } else + clearEvent(this, event); + return this + } + , + EventEmitter.prototype.removeAllListeners = function removeAllListeners(event) { + var event; + return event ? (event = prefix ? prefix + event : event, + this._events[event] && clearEvent(this, event)) : (this._events = new Events, + this._eventsCount = 0), + this + } + , + EventEmitter.prototype.off = EventEmitter.prototype.removeListener, + EventEmitter.prototype.addListener = EventEmitter.prototype.on, + EventEmitter.prefixed = prefix, + module.exports = EventEmitter.EventEmitter = EventEmitter + } + , + 729: (module,exports,__webpack_require__)=>{ + var __webpack_require__, exports; + __webpack_require__ = [__webpack_require__, exports, __webpack_require__(548), __webpack_require__(498)], + void 0 !== (exports = function(require, exports, AdWrapper_1, types_1) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: !0 + }), + exports.AdType = exports.AdEvents = exports.ProviderTypes = exports.GameDistributionBannerSize = exports.GameDistributionAlignment = exports.AdWrapper = void 0, + Object.defineProperty(exports, "AdWrapper", { + enumerable: !0, + get: function() { + return AdWrapper_1.AdWrapper + } + }), + Object.defineProperty(exports, "GameDistributionAlignment", { + enumerable: !0, + get: function() { + return types_1.GameDistributionAlignment + } + }), + Object.defineProperty(exports, "GameDistributionBannerSize", { + enumerable: !0, + get: function() { + return types_1.GameDistributionBannerSize + } + }), + Object.defineProperty(exports, "ProviderTypes", { + enumerable: !0, + get: function() { + return types_1.ProviderTypes + } + }), + Object.defineProperty(exports, "AdEvents", { + enumerable: !0, + get: function() { + return types_1.AdEvents + } + }), + Object.defineProperty(exports, "AdType", { + enumerable: !0, + get: function() { + return types_1.AdType + } + }) + } + .apply(exports, __webpack_require__)) && (module.exports = exports) + } + , + 470: (module,exports,__webpack_require__)=>{ + var __webpack_require__, exports; + __webpack_require__ = [__webpack_require__, exports, __webpack_require__(12)], + void 0 !== (exports = function(require, exports, shared_1) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: !0 + }), + exports.JioAdProvider = void 0; + var JioAdProvider = function() { + function JioAdProvider(config) { + this.adsEnabled = !1; + var adSpotInterstitial = config.adSpotInterstitial + , adSpotRewardedVideo = config.adSpotRewardedVideo + , config = config.gamePackage; + try { + window.adSpotInterstitial = adSpotInterstitial, + window.adSpotRewardedVideo = adSpotRewardedVideo, + window.isAdReady = !1, + window.isRVReady = !1, + window.isINSReady = !1, + window.gamePackage = config + } catch (err) { + console.log("Could not initialize Jio Games SDK", err) + } + } + return JioAdProvider.prototype.setManager = function(manager) { + this.adManager = manager + } + , + JioAdProvider.prototype.showAd = function(adType, adSpotKey) { + var _this = this; + if (void 0 === adType && (adType = shared_1.AdType.interstitial), + this.adAvailable(adType)) { + if (window.hasOwnProperty("onAdView") && (window.onAdView, + 1) && (window.onAdView = function(cbAdSpot) { + setTimeout(function() { + console.log("JioGames ads: onAdView " + cbAdSpot), + _this.resumeGameplay() + }, 2e3) + } + ), + window.hasOwnProperty("onAdClosed") && (window.onAdClosed, + 1) && (window.onAdClosed = function(data, pIsVideoCompleted, pIsEligibleForReward) { + var localData = data.split(","); + var data = data; + var pIsVideoCompleted = pIsVideoCompleted; + var pIsEligibleForReward = pIsEligibleForReward; + null != localData && 1 < localData.length && (data = localData[0].trim(), + pIsVideoCompleted = Boolean(localData[1].trim()), + pIsEligibleForReward = Boolean(localData[2].trim())), + data === window.adSpotInterstitial && (window.isAdReady = !1), + data === window.adSpotRewardedVideo && (window.isRVReady = !1, + pIsEligibleForReward) && pIsVideoCompleted && _this.adManager.emit(shared_1.AdEvents.AD_REWARDED), + setTimeout(function() { + console.log("JioGames ads: onAdClose"), + _this.resumeGameplay() + }, 3e3) + } + ), + adType === shared_1.AdType.interstitial && window.hasOwnProperty("showAdMidRoll") && (window.showAdMidRoll, + 1)) + try { + window.adSpotInterstitial = adSpotKey, + window.showAdMidRoll(adSpotKey, window.gamePackage) + } catch (e) { + this.resumeGameplay(), + console.log("Error caching midroll ads") + } + if (adType === shared_1.AdType.rewarded && window.hasOwnProperty("showAdRewardedVideo") && (window.showAdRewardedVideo, + 1)) + try { + window.adSpotRewardedVideo = adSpotKey, + window.showAdRewardedVideo(adSpotKey, window.gamePackage) + } catch (e) { + this.resumeGameplay(), + console.log("Error caching rewarded ads") + } + } else + console.log("Cannot show Jio ads; Ads were not preloaded or failed to load. Resuming game"), + this.resumeGameplay() + } + , + JioAdProvider.prototype.resumeGameplay = function() { + this.adManager.emit(shared_1.AdEvents.CONTENT_RESUMED) + } + , + JioAdProvider.prototype.preloadAd = function(adType, adSpotKey) { + if (void 0 === adType && (adType = shared_1.AdType.interstitial), + console.log("Calling cache Jio Ad"), + adType === shared_1.AdType.interstitial && window.hasOwnProperty("cacheAdMidRoll") && (window.cacheAdMidRoll, + 1)) + try { + window.adSpotInterstitial = adSpotKey, + window.cacheAdMidRoll(adSpotKey, window.gamePackage) + } catch (e) { + console.log("Error caching midroll ads") + } + if (adType === shared_1.AdType.rewarded && window.hasOwnProperty("cacheAdRewardedVideo") && (window.cacheAdRewardedVideo, + 1)) + try { + window.adSpotRewardedVideo = adSpotKey, + window.cacheAdRewardedVideo(adSpotKey, window.gamePackage) + } catch (e) { + console.log("Error cacheAdRewardedVideo of Jio rewarded ads") + } + window.hasOwnProperty("onAdPrepared") && (window.onAdPrepared, + 1) && (window.onAdPrepared = function(preparedAdSpotKey) { + try { + preparedAdSpotKey === window.adSpotInterstitial && (window.isAdReady = !0), + preparedAdSpotKey === window.adSpotRewardedVideo && (window.isRVReady = !0) + } catch (e) { + console.log("Error onAdPrepared for Jio rewarded ads") + } + } + ), + window.hasOwnProperty("onAdFailedToLoad") && (window.onAdFailedToLoad, + 1) && (window.onAdFailedToLoad = function(data, pDescription) { + var localData = data.split(","); + var failedAdSpotKey = data; + var pDescription = pDescription; + null != localData && 1 < localData.length && (failedAdSpotKey = localData[0].trim(), + pDescription = localData[1].trim()); + try { + failedAdSpotKey === window.adSpotInterstitial && (window.isAdReady = !1), + failedAdSpotKey === window.adSpotRewardedVideo && (window.isRVReady = !1), + console.log("JioGames: onAdFailedToLoad => ".concat(data.toString(), " => ").concat(pDescription)) + } catch (e) { + console.log("Error loading Jio ads") + } + } + ) + } + , + JioAdProvider.prototype.destroyAd = function() {} + , + JioAdProvider.prototype.hideAd = function() {} + , + JioAdProvider.prototype.adAvailable = function(adType) { + return !0 + } + , + JioAdProvider + }(); + exports.JioAdProvider = JioAdProvider + } + .apply(exports, __webpack_require__)) && (module.exports = exports) + } + , + 766: (module,exports,__webpack_require__)=>{ + var __webpack_require__, exports; + __webpack_require__ = [__webpack_require__, exports, __webpack_require__(470)], + void 0 !== (exports = function(require, exports, JioAdProvider_1) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: !0 + }), + exports.JioAdProvider = void 0, + Object.defineProperty(exports, "JioAdProvider", { + enumerable: !0, + get: function() { + return JioAdProvider_1.JioAdProvider + } + }) + } + .apply(exports, __webpack_require__)) && (module.exports = exports) + } + , + 110: (module,exports,__webpack_require__)=>{ + var __webpack_require__, exports; + __webpack_require__ = [__webpack_require__, exports, __webpack_require__(12)], + void 0 !== (exports = function(require, exports, shared_1) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: !0 + }), + exports.AdFreeUntrackedProvider = void 0; + var AdFreeUntrackedProvider = function() { + function AdFreeUntrackedProvider() { + this.adsEnabled = !1 + } + return AdFreeUntrackedProvider.prototype.setManager = function(manager) { + this.adManager = manager + } + , + AdFreeUntrackedProvider.prototype.showAd = function(adType) { + void 0 === adType && (adType = shared_1.AdType.interstitial), + this.resumeGameplay() + } + , + AdFreeUntrackedProvider.prototype.resumeGameplay = function() { + this.adManager.emit(shared_1.AdEvents.CONTENT_RESUMED) + } + , + AdFreeUntrackedProvider.prototype.preloadAd = function(adType) { + void 0 === adType && (adType = shared_1.AdType.interstitial) + } + , + AdFreeUntrackedProvider.prototype.destroyAd = function() {} + , + AdFreeUntrackedProvider.prototype.hideAd = function() {} + , + AdFreeUntrackedProvider.prototype.adAvailable = function(adType) { + return !0 + } + , + AdFreeUntrackedProvider + }(); + exports.AdFreeUntrackedProvider = AdFreeUntrackedProvider + } + .apply(exports, __webpack_require__)) && (module.exports = exports) + } + , + 670: (module,exports,__webpack_require__)=>{ + var __webpack_require__, exports; + __webpack_require__ = [__webpack_require__, exports, __webpack_require__(12)], + void 0 !== (exports = function(require, exports, shared_1) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: !0 + }), + exports.DummyProvider = void 0; + var DummyProvider = function() { + function DummyProvider() { + this.adsEnabled = !1 + } + return DummyProvider.prototype.setManager = function(manager) { + this.adManager = manager, + this.adsEnabled = !0 + } + , + DummyProvider.prototype.showAd = function(adType) { + var _this = this; + void 0 === adType && (adType = shared_1.AdType.interstitial), + console.log("[Dummy]: Ad type requested = ", adType === shared_1.AdType.interstitial ? "interstitial" : "rewarded"), + this.adManager.emit(shared_1.AdEvents.CONTENT_PAUSED); + var num = Math.floor(2 * Math.random()); + console.log("[Dummy]:Ad Available =>", 0 === num), + 1 === num ? (console.log("[Dummy]:AD ERROR / UNAVAILABLE"), + setTimeout(function() { + console.log("[Dummy]: Resuming game"), + _this.resumeGameplay() + }, 200)) : (adType === shared_1.AdType.rewarded && setTimeout(function() { + console.log("[Dummy]: Reward Claimed for rewarded ad"), + _this.adManager.emit(shared_1.AdEvents.AD_REWARDED) + }, 100), + setTimeout(function() { + console.log("[Dummy]: Finished watching ad"), + console.log("[Dummy]: Resuming game"), + _this.resumeGameplay() + }, 200)) + } + , + DummyProvider.prototype.resumeGameplay = function() { + this.adManager.emit(shared_1.AdEvents.CONTENT_RESUMED) + } + , + DummyProvider.prototype.preloadAd = function(adType) { + void 0 === adType && (adType = shared_1.AdType.interstitial) + } + , + DummyProvider.prototype.destroyAd = function() {} + , + DummyProvider.prototype.hideAd = function() {} + , + DummyProvider.prototype.adAvailable = function(adType) { + return !0 + } + , + DummyProvider + }(); + exports.DummyProvider = DummyProvider + } + .apply(exports, __webpack_require__)) && (module.exports = exports) + } + , + 474: (module,exports,__webpack_require__)=>{ + var __webpack_require__, exports; + __webpack_require__ = [__webpack_require__, exports, __webpack_require__(12)], + void 0 !== (exports = function(require, exports, shared_1) { + "use strict"; + var GameDistributionAdType; + Object.defineProperty(exports, "__esModule", { + value: !0 + }), + exports.GameDistribution = exports.GameDistributionAdType = void 0, + function(GameDistributionAdType) { + GameDistributionAdType.interstitial = "interstitial", + GameDistributionAdType.rewarded = "rewarded", + GameDistributionAdType.display = "display" + }(GameDistributionAdType = exports.GameDistributionAdType || (exports.GameDistributionAdType = {})); + var GameDistribution = function() { + function GameDistribution(gameId) { + var _this = this; + if (this.adsEnabled = !1, + this.hasRewarded = !1, + this.adShowing = !1, + !gameId) + throw new Error("Valid game id is not provided for GD Ad provider"); + var gameId, s, id, fjs; + window.GD_OPTIONS = { + gameId: gameId, + advertisementSettings: { + autoplay: !1 + }, + onEvent: function(event) { + switch (event.name) { + case "SDK_GAME_PAUSE": + _this.adManager.emit(shared_1.AdEvents.CONTENT_PAUSED); + break; + case "SDK_ERROR": + _this.adManager.emit(shared_1.AdEvents.CONTENT_RESUMED); + break; + case "SDK_READY": + _this.sdkLoaded(); + break; + case "SDK_REWARDED_WATCH_COMPLETE": + _this.adManager.emit(shared_1.AdEvents.AD_REWARDED), + _this.hasRewarded = !1; + break; + default: + break + } + } + }, + gameId = document, + s = "script", + id = "gamedistribution-jssdk", + fjs = gameId.getElementsByTagName(s)[0], + gameId.getElementById(id) || ((gameId = gameId.createElement(s)).id = id, + gameId.src = "patch/js/gd-sdk.js?html5.api.gamedistribution.com/main.min.js", + fjs.parentNode && fjs.parentNode.insertBefore(gameId, fjs)) + } + return GameDistribution.prototype.setManager = function(manager) { + this.adManager = manager, + this.adManager.emit(shared_1.AdEvents.AD_PROVIDER_LOADED) + } + , + GameDistribution.prototype.sdkLoaded = function() { + this.adsEnabled = !0 + } + , + GameDistribution.prototype.showAd = function(adType) { + var _this = this; + this.adsEnabled ? void 0 === window.gdsdk || window.gdsdk && void 0 === window.gdsdk.showAd ? (this.adsEnabled = !1, + this.adManager.emit(shared_1.AdEvents.CONTENT_RESUMED)) : window.gdsdk.showAd(adType === shared_1.AdType.rewarded ? GameDistributionAdType.rewarded : GameDistributionAdType.interstitial).then(function() { + _this.adManager.emit(shared_1.AdEvents.CONTENT_RESUMED) + }).catch(function() { + adType === shared_1.AdType.rewarded && _this.hasRewarded && (_this.hasRewarded = !1), + _this.adManager.emit(shared_1.AdEvents.CONTENT_RESUMED) + }) : this.adManager.emit(shared_1.AdEvents.CONTENT_RESUMED) + } + , + GameDistribution.prototype.preloadAd = function(adType) { + var _this = this; + !this.hasRewarded && this.adsEnabled && adType === shared_1.AdType.rewarded && (console.log("preloading ad"), + window.gdsdk.preloadAd(GameDistributionAdType.rewarded).then(function() { + _this.hasRewarded = !0, + _this.adManager.emit(shared_1.AdEvents.AD_LOADED, adType) + })) + } + , + GameDistribution.prototype.adAvailable = function(adType) { + return adType !== shared_1.AdType.rewarded || this.hasRewarded + } + , + GameDistribution.prototype.destroyAd = function() {} + , + GameDistribution.prototype.hideAd = function() {} + , + GameDistribution + }(); + exports.GameDistribution = GameDistribution + } + .apply(exports, __webpack_require__)) && (module.exports = exports) + } + , + 444: (module,exports,__webpack_require__)=>{ + var __webpack_require__, exports; + __webpack_require__ = [__webpack_require__, exports, __webpack_require__(474), __webpack_require__(869)], + void 0 !== (exports = function(require, exports, GameDistribution_1, gamedistribution_1) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: !0 + }), + exports.GameDistributionBanner = void 0; + var GameDistributionBanner = function() { + function GameDistributionBanner() { + this.scaleFactor = 1, + this.offsetX = 0, + this.offsetY = 0, + this.element = document.createElement("div"), + this.element.style.position = "absolute", + this.element.style.top = "0px", + this.element.style.left = "0px", + this.element.id = "banner-".concat(Date.now()).concat(1e7 * Math.random() | 0), + document.body.appendChild(this.element) + } + return GameDistributionBanner.prototype.loadBanner = function() { + return void 0 === window.gdsdk ? Promise.reject("GD Sdk not available, probably due to adblocker") : window.gdsdk.showAd(GameDistribution_1.GameDistributionAdType.display, { + containerId: this.element.id + }) + } + , + GameDistributionBanner.prototype.destroy = function() { + document.body.removeChild(this.element), + this.resizeListener && window.removeEventListener("resize", this.resizeListener), + delete this.element, + delete this.parent, + delete this.alignment + } + , + GameDistributionBanner.prototype.alignIn = function(element, position) { + var _this = this; + this.parent ? console.warn("Banner already aligned, ignoring...") : (this.parent = element, + this.alignment = position, + this.resizeListener = function() { + return _this.resize() + } + , + window.addEventListener("resize", this.resizeListener), + this.resize()) + } + , + GameDistributionBanner.prototype.setOffset = function(x, y) { + void 0 === y && (y = 0), + this.offsetX = x = void 0 === x ? 0 : x, + this.offsetY = y, + this.resize() + } + , + GameDistributionBanner.prototype.resize = function() { + if (this.parent) { + var parentBoundingRect = this.parent.getBoundingClientRect(); + switch (this.alignment) { + case gamedistribution_1.GameDistributionAlignment.TopLeft: + this.position(parentBoundingRect.left, parentBoundingRect.top); + break; + case gamedistribution_1.GameDistributionAlignment.TopCenter: + this.position(parentBoundingRect.left + parentBoundingRect.width / 2 - this.width * this.scaleFactor / 2, parentBoundingRect.top); + break; + case gamedistribution_1.GameDistributionAlignment.TopRight: + this.position(parentBoundingRect.left + parentBoundingRect.width - this.width * this.scaleFactor, parentBoundingRect.top); + break; + case gamedistribution_1.GameDistributionAlignment.CenterLeft: + this.position(parentBoundingRect.left, parentBoundingRect.top + parentBoundingRect.height / 2 - this.height * this.scaleFactor / 2); + break; + case gamedistribution_1.GameDistributionAlignment.Center: + this.position(parentBoundingRect.left + parentBoundingRect.width / 2 - this.width * this.scaleFactor / 2, parentBoundingRect.top + parentBoundingRect.height / 2 - this.height * this.scaleFactor / 2); + break; + case gamedistribution_1.GameDistributionAlignment.CenterRight: + this.position(parentBoundingRect.left + parentBoundingRect.width - this.width * this.scaleFactor, parentBoundingRect.top + parentBoundingRect.height / 2 - this.height * this.scaleFactor / 2); + break; + case gamedistribution_1.GameDistributionAlignment.BottomLeft: + this.position(parentBoundingRect.left, parentBoundingRect.top + parentBoundingRect.height - this.height * this.scaleFactor); + break; + case gamedistribution_1.GameDistributionAlignment.BottomCenter: + this.position(parentBoundingRect.left + parentBoundingRect.width / 2 - this.width * this.scaleFactor / 2, parentBoundingRect.top + parentBoundingRect.height - this.height * this.scaleFactor); + break; + case gamedistribution_1.GameDistributionAlignment.BottomRight: + this.position(parentBoundingRect.left + parentBoundingRect.width - this.width * this.scaleFactor, parentBoundingRect.top + parentBoundingRect.height - this.height * this.scaleFactor); + break + } + } + } + , + GameDistributionBanner.prototype.setSize = function(size) { + var width; + var height; + switch (size) { + default: + case gamedistribution_1.GameDistributionBannerSize.LargeRectangle: + width = 336, + height = 280; + break; + case gamedistribution_1.GameDistributionBannerSize.MediumRectangle: + width = 300, + height = 250; + break; + case gamedistribution_1.GameDistributionBannerSize.Billboard: + width = 970, + height = 250; + break; + case gamedistribution_1.GameDistributionBannerSize.Leaderboard: + width = 728, + height = 90; + break; + case gamedistribution_1.GameDistributionBannerSize.Skyscraper: + width = 120, + height = 600; + break; + case gamedistribution_1.GameDistributionBannerSize.WideSkyscraper: + width = 160, + height = 600; + break + } + this.width = width, + this.height = height, + this.element.style.width = "".concat(width, "px"), + this.element.style.height = "".concat(height, "px") + } + , + GameDistributionBanner.prototype.position = function(x, y) { + this.element.style.left = "".concat(x + this.offsetX, "px"), + this.element.style.top = "".concat(y + this.offsetY, "px") + } + , + GameDistributionBanner.prototype.scale = function(factor) { + this.element.style.transformOrigin = "left top", + this.scaleFactor = factor, + this.element.style.transform = "scale(".concat(factor, ")") + } + , + GameDistributionBanner + }(); + exports.GameDistributionBanner = GameDistributionBanner + } + .apply(exports, __webpack_require__)) && (module.exports = exports) + } + , + 654: (module,exports,__webpack_require__)=>{ + var __webpack_require__, exports; + __webpack_require__ = [__webpack_require__, exports, __webpack_require__(12)], + void 0 !== (exports = function(require, exports, shared_1) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: !0 + }), + exports.YandexAdProvider = void 0; + var YandexAdProvider = function() { + function YandexAdProvider(partnerID) { + var _this = this; + var d, s, id, fjs; + this.adsEnabled = !1, + d = document, + s = "script", + id = "yandex-jssdk", + fjs = d.getElementsByTagName(s)[0], + d.getElementById(id) || ((d = d.createElement(s)).addEventListener("load", function() { + _this.initialize() + }), + d.id = id, + d.src = "//yandex.ru/games/sdk/v2", + fjs.parentNode.insertBefore(d, fjs)) + } + return YandexAdProvider.prototype.setManager = function(manager) { + this.adManager = manager + } + , + YandexAdProvider.prototype.showAd = function(adType) { + var _this = this; + var _a, _a, _a, adType, _a, _a, adType, _a; + void 0 === adType && (adType = shared_1.AdType.interstitial), + this.adsEnabled && window.hasOwnProperty("_YaSDK") ? adType === shared_1.AdType.interstitial && null != (_a = null == (_a = window._YaSDK) ? void 0 : _a.adv) && _a.adOpened || (adType === shared_1.AdType.rewarded ? null != (_a = null == (adType = null == (_a = window._YaSDK) ? void 0 : _a.adv) ? void 0 : adType.showRewardedVideo) && _a.call(adType, { + callbacks: { + onOpen: function() { + console.log("Video ad open."), + _this.adManager.emit(shared_1.AdEvents.CONTENT_PAUSED) + }, + onRewarded: function() { + console.log("Rewarded!"), + _this.adManager.emit(shared_1.AdEvents.AD_REWARDED) + }, + onClose: function() { + console.log("Video ad closed."), + _this.resumeGameplay() + }, + onError: function(e) { + console.log("Error while open video ad:", e), + _this.resumeGameplay() + } + } + }) : null != (_a = null == (adType = null == (_a = window._YaSDK) ? void 0 : _a.adv) ? void 0 : adType.showFullscreenAdv) && _a.call(adType, { + callbacks: { + onOpen: function() { + console.log("Video ad open."), + _this.adManager.emit(shared_1.AdEvents.CONTENT_PAUSED) + }, + onClose: function() { + _this.resumeGameplay() + }, + onError: function() { + _this.resumeGameplay() + } + } + })) : this.resumeGameplay() + } + , + YandexAdProvider.prototype.initialize = function() { + var _this = this; + window.YaGames.init().then(function(ysdk) { + window._YaSDK = ysdk, + _this.adsEnabled = !0 + }) + } + , + YandexAdProvider.prototype.resumeGameplay = function() { + this.adManager.emit(shared_1.AdEvents.CONTENT_RESUMED) + } + , + YandexAdProvider.prototype.preloadAd = function(adType) { + void 0 === adType && (adType = shared_1.AdType.interstitial), + this.adManager.emit(shared_1.AdEvents.AD_LOADED, adType) + } + , + YandexAdProvider.prototype.destroyAd = function() {} + , + YandexAdProvider.prototype.hideAd = function() {} + , + YandexAdProvider.prototype.adAvailable = function(adType) { + return !0 + } + , + YandexAdProvider + }(); + exports.YandexAdProvider = YandexAdProvider + } + .apply(exports, __webpack_require__)) && (module.exports = exports) + } + , + 563: (module,exports,__webpack_require__)=>{ + var __webpack_require__, exports; + __webpack_require__ = [__webpack_require__, exports, __webpack_require__(110), __webpack_require__(670), __webpack_require__(474), __webpack_require__(444), __webpack_require__(654)], + void 0 !== (exports = function(require, exports, AdFreeUntrackedProvider_1, DummyProvider_1, GameDistribution_1, GameDistributionBanner_1, YandexAdProvider_1) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: !0 + }), + exports.YandexAdProvider = exports.GameDistributionBanner = exports.GameDistribution = exports.DummyProvider = exports.AdFreeUntrackedProvider = void 0, + Object.defineProperty(exports, "AdFreeUntrackedProvider", { + enumerable: !0, + get: function() { + return AdFreeUntrackedProvider_1.AdFreeUntrackedProvider + } + }), + Object.defineProperty(exports, "DummyProvider", { + enumerable: !0, + get: function() { + return DummyProvider_1.DummyProvider + } + }), + Object.defineProperty(exports, "GameDistribution", { + enumerable: !0, + get: function() { + return GameDistribution_1.GameDistribution + } + }), + Object.defineProperty(exports, "GameDistributionBanner", { + enumerable: !0, + get: function() { + return GameDistributionBanner_1.GameDistributionBanner + } + }), + Object.defineProperty(exports, "YandexAdProvider", { + enumerable: !0, + get: function() { + return YandexAdProvider_1.YandexAdProvider + } + }) + } + .apply(exports, __webpack_require__)) && (module.exports = exports) + } + , + 869: (module,exports,__webpack_require__)=>{ + var __WEBPACK_AMD_DEFINE_ARRAY__, __webpack_require__; + void 0 !== (__webpack_require__ = function(require, exports) { + "use strict"; + var GameDistributionBannerSize; + var GameDistributionAlignment; + Object.defineProperty(exports, "__esModule", { + value: !0 + }), + exports.GameDistributionAlignment = exports.GameDistributionBannerSize = void 0, + function(GameDistributionBannerSize) { + GameDistributionBannerSize[GameDistributionBannerSize.LargeRectangle = 0] = "LargeRectangle", + GameDistributionBannerSize[GameDistributionBannerSize.MediumRectangle = 1] = "MediumRectangle", + GameDistributionBannerSize[GameDistributionBannerSize.Billboard = 2] = "Billboard", + GameDistributionBannerSize[GameDistributionBannerSize.Leaderboard = 3] = "Leaderboard", + GameDistributionBannerSize[GameDistributionBannerSize.Skyscraper = 4] = "Skyscraper", + GameDistributionBannerSize[GameDistributionBannerSize.WideSkyscraper = 5] = "WideSkyscraper" + }(GameDistributionBannerSize = exports.GameDistributionBannerSize || (exports.GameDistributionBannerSize = {})), + function(GameDistributionAlignment) { + GameDistributionAlignment[GameDistributionAlignment.TopLeft = 0] = "TopLeft", + GameDistributionAlignment[GameDistributionAlignment.TopCenter = 1] = "TopCenter", + GameDistributionAlignment[GameDistributionAlignment.TopRight = 2] = "TopRight", + GameDistributionAlignment[GameDistributionAlignment.CenterLeft = 3] = "CenterLeft", + GameDistributionAlignment[GameDistributionAlignment.Center = 4] = "Center", + GameDistributionAlignment[GameDistributionAlignment.CenterRight = 5] = "CenterRight", + GameDistributionAlignment[GameDistributionAlignment.BottomLeft = 6] = "BottomLeft", + GameDistributionAlignment[GameDistributionAlignment.BottomCenter = 7] = "BottomCenter", + GameDistributionAlignment[GameDistributionAlignment.BottomRight = 8] = "BottomRight" + }(GameDistributionAlignment = exports.GameDistributionAlignment || (exports.GameDistributionAlignment = {})) + } + .apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports])) && (module.exports = __webpack_require__) + } + , + 498: (module,exports,__webpack_require__)=>{ + var __webpack_require__, exports; + __webpack_require__ = [__webpack_require__, exports, __webpack_require__(12), __webpack_require__(869)], + void 0 !== (exports = function(require, exports, shared_1, gamedistribution_1) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: !0 + }), + exports.GameDistributionAlignment = exports.GameDistributionBannerSize = exports.ProviderTypes = exports.AdType = exports.AdEvents = void 0, + Object.defineProperty(exports, "AdEvents", { + enumerable: !0, + get: function() { + return shared_1.AdEvents + } + }), + Object.defineProperty(exports, "AdType", { + enumerable: !0, + get: function() { + return shared_1.AdType + } + }), + Object.defineProperty(exports, "ProviderTypes", { + enumerable: !0, + get: function() { + return shared_1.ProviderTypes + } + }), + Object.defineProperty(exports, "GameDistributionBannerSize", { + enumerable: !0, + get: function() { + return gamedistribution_1.GameDistributionBannerSize + } + }), + Object.defineProperty(exports, "GameDistributionAlignment", { + enumerable: !0, + get: function() { + return gamedistribution_1.GameDistributionAlignment + } + }) + } + .apply(exports, __webpack_require__)) && (module.exports = exports) + } + , + 12: (module,exports,__webpack_require__)=>{ + var __WEBPACK_AMD_DEFINE_ARRAY__, __webpack_require__; + void 0 !== (__webpack_require__ = function(require, exports) { + "use strict"; + var AdEvents; + var AdType; + var ProviderTypes; + Object.defineProperty(exports, "__esModule", { + value: !0 + }), + exports.ProviderTypes = exports.AdType = exports.AdEvents = void 0, + function(AdEvents) { + AdEvents.CONTENT_PAUSED = "onContentPaused", + AdEvents.CONTENT_RESUMED = "onContentResumed", + AdEvents.AD_PROGRESSION = "onAdProgression", + AdEvents.AD_DISABLED = "onAdsDisabled", + AdEvents.AD_CLICKED = "onAdClicked", + AdEvents.AD_REWARDED = "onAdRewardGranted", + AdEvents.BANNER_SHOWN = "onBannerShown", + AdEvents.BANNER_HIDDEN = "onBannerHidden", + AdEvents.AD_LOADED = "onAdLoaded", + AdEvents.AD_PROVIDER_LOADED = "onAdProviderLoaded" + }(AdEvents = exports.AdEvents || (exports.AdEvents = {})), + function(AdType) { + AdType[AdType.interstitial = 0] = "interstitial", + AdType[AdType.rewarded = 1] = "rewarded", + AdType[AdType.banner = 2] = "banner" + }(AdType = exports.AdType || (exports.AdType = {})), + function(ProviderTypes) { + ProviderTypes.Yandex = "yx", + ProviderTypes.Dummy = "dm", + ProviderTypes.AdFree = "af", + ProviderTypes.GD = "gd", + ProviderTypes.GDBanner = "gdb", + ProviderTypes.Jio = "jio" + }(ProviderTypes = exports.ProviderTypes || (exports.ProviderTypes = {})) + } + .apply(exports, __WEBPACK_AMD_DEFINE_ARRAY__ = [__webpack_require__, exports])) && (module.exports = __webpack_require__) + } + , + 548: function(module, exports, __webpack_require__) { + var __webpack_require__, exports; + var __extends = this && this.__extends || (extendStatics = function(d, b) { + return (extendStatics = Object.setPrototypeOf || ({ + __proto__: [] + }instanceof Array ? function(d, b) { + d.__proto__ = b + } + : function(d, b) { + for (var p in b) + Object.prototype.hasOwnProperty.call(b, p) && (d[p] = b[p]) + } + ))(d, b) + } + , + function(d, b) { + if ("function" != typeof b && null !== b) + throw new TypeError("Class extends value " + String(b) + " is not a constructor or null"); + function __() { + this.constructor = d + } + extendStatics(d, b), + d.prototype = null === b ? Object.create(b) : (__.prototype = b.prototype, + new __) + } + ); + var extendStatics; + var __importDefault = this && this.__importDefault || function(mod) { + return mod && mod.__esModule ? mod : { + default: mod + } + } + ; + __webpack_require__ = [__webpack_require__, exports, __webpack_require__(34), __webpack_require__(12), __webpack_require__(563), __webpack_require__(766)], + void 0 !== (exports = function(require, exports, eventemitter3_1, shared_1, standard_1, special_1) { + "use strict"; + Object.defineProperty(exports, "__esModule", { + value: !0 + }), + exports.AdWrapper = void 0; + var eventemitter3_1 = function(_super) { + function AdWrapper(type, id, jioConfig) { + var _this = _super.call(this) || this; + switch (_this.bannerActive = !1, + _this.provider = null, + type) { + case shared_1.ProviderTypes.AdFree: + _this.provider = new standard_1.AdFreeUntrackedProvider; + break; + case shared_1.ProviderTypes.Dummy: + _this.provider = new standard_1.DummyProvider; + break; + case shared_1.ProviderTypes.Yandex: + _this.provider = new standard_1.YandexAdProvider; + break; + case shared_1.ProviderTypes.Jio: + _this.provider = new special_1.JioAdProvider(jioConfig); + break; + default: + case shared_1.ProviderTypes.GD: + _this.provider = new standard_1.GameDistribution(id); + break + } + return _this.provider.setManager(_this), + _this + } + return __extends(AdWrapper, _super), + AdWrapper.prototype.showAd = function(adType) { + var args = []; + for (var _i = 1; _i < arguments.length; _i++) + args[_i - 1] = arguments[_i]; + if (null === this.provider) + throw new Error("Can not request an ad without an provider, please attach an ad provider!"); + args.unshift(adType), + this.provider.showAd.apply(this.provider, args) + } + , + AdWrapper.prototype.createBanner = function() { + var args = []; + for (var _i = 0; _i < arguments.length; _i++) + args[_i] = arguments[_i]; + return this.provider.loadBanner.apply(this.provider, args) + } + , + AdWrapper.prototype.loadBanner = function() { + var args = []; + for (var _i = 0; _i < arguments.length; _i++) + args[_i] = arguments[_i]; + return "function" == typeof this.provider.loadBanner ? this.provider.loadBanner.apply(this.provider, args) : null + } + , + AdWrapper.prototype.preloadAd = function(adType) { + var args = []; + for (var _i = 1; _i < arguments.length; _i++) + args[_i - 1] = arguments[_i]; + if (null === this.provider) + throw new Error("Can not preload an ad without an provider, please attach an ad provider!"); + args.unshift(adType), + this.provider.preloadAd.apply(this.provider, args) + } + , + AdWrapper.prototype.destroyAd = function(adType) { + var args = []; + for (var _i = 1; _i < arguments.length; _i++) + args[_i - 1] = arguments[_i]; + if (null === this.provider) + throw new Error("Can not destroy an ad without an provider, please attach an ad provider!"); + args.unshift(adType), + this.provider.destroyAd.apply(this.provider, args) + } + , + AdWrapper.prototype.hideAd = function(adType) { + var args = []; + for (var _i = 1; _i < arguments.length; _i++) + args[_i - 1] = arguments[_i]; + if (null === this.provider) + throw new Error("Can not hide an ad without an provider, please attach an ad provider!"); + args.unshift(adType), + this.provider.hideAd.apply(this.provider, args) + } + , + AdWrapper.prototype.adsEnabled = function() { + if (null === this.provider) + throw new Error("Can not hide an ad without an provider, please attach an ad provider!"); + return this.provider.adsEnabled + } + , + AdWrapper.prototype.adAvailable = function(adType) { + var args = []; + for (var _i = 1; _i < arguments.length; _i++) + args[_i - 1] = arguments[_i]; + if (null === this.provider) + throw new Error("Can not hide an ad without an provider, please attach an ad provider!"); + return args.unshift(adType), + this.provider.adAvailable.apply(this.provider, args) + } + , + AdWrapper + }((eventemitter3_1 = __importDefault(eventemitter3_1)).default); + exports.AdWrapper = eventemitter3_1 + } + .apply(exports, __webpack_require__)) && (module.exports = exports) + } + }; + var __webpack_module_cache__ = {}; + function __webpack_require__(moduleId) { + var cachedModule = __webpack_module_cache__[moduleId]; + var cachedModule; + return void 0 !== cachedModule || (cachedModule = __webpack_module_cache__[moduleId] = { + exports: {} + }, + __webpack_modules__[moduleId].call(cachedModule.exports, cachedModule, cachedModule.exports, __webpack_require__)), + cachedModule.exports + } + var __webpack_exports__ = __webpack_require__(729); + self.h5ads = __webpack_exports__ +} +)(); +!function(){ + // console.log("--fx--h5branding--", h5branding.SplashLoader.create.toString()); + +}(); diff --git a/vex8/patch/js/azerion-libs.js b/vex8/patch/js/azerion-libs.js new file mode 100644 index 000000000..ac6ecf90f --- /dev/null +++ b/vex8/patch/js/azerion-libs.js @@ -0,0 +1,101 @@ +var _azerionIntegration = { + gdId: "762c932b4db74c6da0c1d101b2da8be6", + alxType: "std", + advType: "gd", + af: !1, + sa: !1, + la: !1, + bd: 8, + playBtn: !0, + build: { + version: "tc-24", + timeStamp: 1680267092432, + h: "8d828ac6" + } +}; + +SplashLoader= function (options) { + thisSplashLoader= this; + this.circleLoader = null, + this.loaded = !1, + this.showPlayButton = "undefined" == typeof playBtn || playBtn, + this.progress = 0, + this.options = { + gameId: "12346", + gameTitle: "Place Holder", + gameName: "place-holder", + libs: [], + version: "dev", + barColor: "white", + gaMeasurementId: "none" + }, + + this.getInstance= function(options) { + if (thisSplashLoader.instance) { + if (!options) { + throw new Error("Can not create new SplashLoader instance without options!"); + } + thisSplashLoader.instance = new thisSplashLoader(options); + } + return thisSplashLoader.instance; + } +} + +h5branding = { + Branding: { + analyticsEnabled: 0, + }, + + BrandingDomain: { + "0": "Neutral", + "1": "Yepi", + "2": "Spele", + "3": "Funnygames", + "4": "Kizi", + "5": "PlayCell", + "6": "GameCell", + "7": "Bild", + "8": "AGame", + "9": "Admeen", + "10": "PlayTime", + "11": "Zigiz", + "Neutral": 0, + "Yepi": 1, + "Spele": 2, + "Funnygames": 3, + "Kizi": 4, + "PlayCell": 5, + "GameCell": 6, + "Bild": 7, + "AGame": 8, + "Admeen": 9, + "PlayTime": 10, + "Zigiz": 11 + }, + + UtmTargets: { + "0": "splashscreen", + "1": "logo", + "2": "facebook", + "3": "twitter", + "4": "playstore", + "5": "appstore", + "6": "more_games", + "7": "download_game", + "8": "walkthrough", + "9": "disclaimer", + "10": "highscores", + "splashscreen": 0, + "logo": 1, + "facebook": 2, + "twitter": 3, + "playstore": 4, + "appstore": 5, + "more_games": 6, + "download_game": 7, + "walkthrough": 8, + "disclaimer": 9, + "highscores": 10 + }, + SplashLoader: new SplashLoader(), +} diff --git a/vex8/patch/js/eponesh-game-score.js b/vex8/patch/js/eponesh-game-score.js new file mode 100644 index 000000000..12f7f42a4 --- /dev/null +++ b/vex8/patch/js/eponesh-game-score.js @@ -0,0 +1,2 @@ +/*! For license information please see game-score.js.LICENSE.txt */ +(()=>{var e,t,n,i,r={2616:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,i){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(i)for(var s=0;s{!function(t){e.exports=t;var n={on:function(e,t){return s(this,e).push(t),this},once:function(e,t){var n=this;return i.originalListener=t,s(n,e).push(i),n;function i(){r.call(n,e,i),t.apply(this,arguments)}},off:r,emit:function(e,t){var n=this,i=s(n,e,!0);if(!i)return!1;var r=arguments.length;if(1===r)i.forEach(o);else if(2===r)i.forEach(c);else{var a=Array.prototype.slice.call(arguments,1);i.forEach(h)}return!!i.length;function o(e){e.call(n)}function c(e){e.call(n,t)}function h(e){e.apply(n,a)}}};function i(e){for(var t in n)e[t]=n[t];return e}function r(e,t){var n,i=this;if(arguments.length){if(t){if(n=s(i,e,!0)){if(!(n=n.filter(a)).length)return r.call(i,e);i.listeners[e]=n}}else if((n=i.listeners)&&(delete n[e],!Object.keys(n).length))return r.call(i)}else delete i.listeners;return i;function a(e){return e!==t&&e.originalListener!==t}}function s(e,t,n){if(!n||e.listeners){var i=e.listeners||(e.listeners={});return i[t]||(i[t]=[])}}i(t.prototype),t.mixin=i}((function e(){if(!(this instanceof e))return new e}))},4943:e=>{"use strict";e.exports=i,e.exports.isMobile=i,e.exports.default=i;var t=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,n=/android|ipad|playbook|silk/i;function i(e){e||(e={});var i=e.ua;if(i||"undefined"==typeof navigator||(i=navigator.userAgent),i&&i.headers&&"string"==typeof i.headers["user-agent"]&&(i=i.headers["user-agent"]),"string"!=typeof i)return!1;var r=t.test(i)||!!e.tablet&&n.test(i);return!r&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&-1!==i.indexOf("Macintosh")&&-1!==i.indexOf("Safari")&&(r=!0),r}},2096:()=>{"function"!=typeof Promise.prototype.finally&&(Promise.prototype.finally=function(e){var t=this;return this.then((function(n){return t.constructor.resolve(e()).then((function(){return n}))})).catch((function(n){return t.constructor.resolve(e()).then((function(){throw n}))}))})},8205:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(2616),r=n.n(i)()((function(e){return e[1]}));r.push([e.id,".gs-global-loader{position:fixed;z-index:99999;top:8px;right:8px;width:48px;height:48px}@media only screen and (min-width: 1024px){.gs-global-loader{top:inherit;right:16px;bottom:16px}}.gs-loader{position:relative;width:40px;height:40px;border-radius:50%;display:flex}.gs-loader__outter{box-sizing:border-box;position:absolute;border:4px solid #f50057;border-left-color:transparent;width:100%;height:100%;border-radius:50%;-webkit-animation:loader-outter 1s cubic-bezier(0.42, 0.61, 0.58, 0.41) infinite;animation:loader-outter 1s cubic-bezier(0.42, 0.61, 0.58, 0.41) infinite}.gs-loader__inner{box-sizing:border-box;position:absolute;border:4px solid #f50057;border-radius:50%;width:20px;height:20px;left:calc(50% - 10px);top:calc(50% - 10px);border-top-color:transparent;-webkit-animation:loader-inner 1s cubic-bezier(0.42, 0.61, 0.58, 0.41) infinite;animation:loader-inner 1s cubic-bezier(0.42, 0.61, 0.58, 0.41) infinite}@keyframes loader-outter{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes loader-inner{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}.gs-loader-hidden{display:none}",""]);const s=r},3379:(e,t,n)=>{"use strict";var i,r=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),s=[];function a(e){for(var t=-1,n=0;n{"use strict";n.d(t,{Z:()=>_,z:()=>I});var i,r,s,a,o,c,h,l,u=n(6558),d=n(1437),p=n(4835),f=n(8293),g=n(6388),v=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function a(e){try{c(i.next(e))}catch(e){s(e)}}function o(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((i=i.apply(e,t||[])).next())}))},m=function(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(e,n):r?r.value=n:t.set(e,n),n},y=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)},w=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r0?(this._events.emit("open"),yield this.gp.overlay.openAchievements(t,{scrollTo:e}).catch(u.kg.error),this._events.emit("close")):u.kg.error(new Error("Empty achievements list"))}catch(e){this.gp.loader.dec(),u.kg.error(e)}}))}fetch(){return v(this,void 0,void 0,(function*(){const e=(0,f._)();this.gp.loader.inc();try{const t=yield this.gp._achievementsService.fetch();if(!t)throw new Error("can't fetch achievements list");e.done(t),this._events.emit("fetch",t)}catch(t){e.abort(t),this._events.emit("error:fetch")}finally{this.gp.loader.dec()}return e.ready}))}unlock({id:e,tag:t}){return v(this,void 0,void 0,(function*(){const n=e||t,a=(0,f._)(),c=e=>{a.done({success:!1,achievement:null,error:e}),this._events.emit("error:unlock",e)};if(this.has(t||e))return c(b),a.ready;if(y(this,s,"f").includes(n))return c(P),a.ready;let h;y(this,o,"f")[n]=a,this.gp.loader.inc(),y(this,r,"f").enableUnlockToast&&(h=this.gp.loadOverlay());try{const n=yield this.gp._achievementsService.unlock({id:e,tag:t}),{achievement:s}=n,o=w(n,["achievement"]),c=Object.assign(Object.assign({},s),o);y(this,i,"m",l).call(this,c),this._events.emit("unlock",c),y(this,r,"f").enableUnlockToast&&Promise.all([h,(0,d.p)(I(c)).catch(u.kg.error)]).then((()=>{this.gp.overlay.unlockAchievement(c)})),a.done({achievement:c,success:!0,error:""})}catch(e){"achievement_not_found"===e&&y(this,s,"f").push(n),"string"==typeof e?(u.kg.error(e),c(e)):(a.abort(e),this._events.emit("error:unlock",e))}finally{this.gp.loader.dec()}return a.ready.finally((()=>{delete y(this,o,"f")[n]})),a.ready}))}has(e){return y(this,a,"f").some((t=>(t.tag===e||t.id===e)&&t.unlocked))}setProgress(e){var t;return v(this,void 0,void 0,(function*(){const n=e.id||e.tag;if(n in y(this,c,"f"))return y(this,c,"f")[n]=e.progress,null===(t=y(this,h,"f")[n])||void 0===t?void 0:t.ready;const o=(0,f._)(),p=e=>{o.done({success:!1,achievement:null,error:e}),this._events.emit("error:progress",e)};return y(this,c,"f")[n]=e.progress,y(this,h,"f")[n]=o,setTimeout((()=>v(this,void 0,void 0,(function*(){const t=y(this,c,"f")[n];if(this.has(n))return void p(b);if(y(this,s,"f").includes(n))return void p(P);const h=y(this,a,"f").find((t=>t.tag===e.tag||t.id===e.id)),f=(null==h?void 0:h.progress)||0;if(f===t)return void p("progress_the_same");let g;this.gp.loader.inc(),y(this,r,"f").enableUnlockToast&&(g=this.gp.loadOverlay()),yield this.gp._achievementsService.setProgress(Object.assign(Object.assign({},e),{progress:t})).then((e=>{var{achievement:t}=e,n=w(e,["achievement"]);const s=Object.assign(Object.assign({},t),n),a=Math.floor(f/s.progressStep),c=Math.floor(s.progress/s.progressStep);y(this,i,"m",l).call(this,s),y(this,r,"f").enableUnlockToast&&(s.unlocked||a{this.gp.overlay.unlockAchievement(s)})),s.unlocked&&this._events.emit("unlock",s),this._events.emit("progress",s),o.done({achievement:s,success:!0,error:""})})).catch((e=>{this._events.emit("error:progress",e),"achievement_not_found"===e&&y(this,s,"f").push(n),"string"==typeof e?(u.kg.error(e),p(e)):(o.abort(e),this._events.emit("error:progress",e))})),this.gp.loader.dec()}))),1e3),o.ready.finally((()=>{delete y(this,h,"f")[n],delete y(this,c,"f")[n]})),o.ready}))}getProgress(e){const t=y(this,a,"f").find((t=>t.tag===e||t.id===e));return t?t.progress:0}_setAchievementsList(e){m(this,a,[...e],"f")}}function I(e){let t="";return t=window.devicePixelRatio>1?e.unlocked?e.icon||e.lockedIcon:e.lockedIcon||e.icon:e.unlocked?e.iconSmall||e.lockedIconSmall:e.lockedIconSmall||e.iconSmall,t||p.Z.cdn.trophy}r=new WeakMap,s=new WeakMap,a=new WeakMap,o=new WeakMap,c=new WeakMap,h=new WeakMap,i=new WeakSet,l=function(e){y(this,a,"f").some((t=>t.id===e.id))?m(this,a,y(this,a,"f").map((t=>t.id===e.id?e:t)),"f"):y(this,a,"f").push(e)}},4687:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var i,r,s,a=n(6558),o=n(8293),c=n(6388),h=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function a(e){try{c(i.next(e))}catch(e){s(e)}}function o(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((i=i.apply(e,t||[])).next())}))},l=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)},u=function(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(e,n):r?r.value=n:t.set(e,n),n};class d extends c.Z{constructor(e,t){super(),this.gp=e,this.adapter=t,i.set(this,[]),r.set(this,{}),s.set(this,{})}get isAvailable(){return this.adapter.isSupportsPayments}get isSubscriptionsAvailable(){return this.adapter.isSupportsSubscriptions}get purchases(){return[...l(this,i,"f")]}_sync(){return h(this,void 0,void 0,(function*(){const{purchases:e,payload:t}=yield this.adapter.fetchPurchases();if(0===e.length)return;const{purchases:n}=yield this.gp._paymentsService.sync({purchases:e,payload:t});this._setPurchasedList(n),this.adapter.consumeAllExpired(e,n)}))}fetchProducts(){return h(this,void 0,void 0,(function*(){const e=(0,o._)();this.gp.loader.inc();try{const t=yield this.gp._paymentsService.fetch();if(!t)throw new Error("can't fetch products list");const{products:n,playerPurchases:i}=t,r=yield this.adapter.mapProducts(this.gp,{products:n,playerPurchases:i});e.done(r),this._events.emit("fetchProducts",r)}catch(t){e.abort(t),this._events.emit("error:fetchProducts",t)}finally{this.gp.loader.dec()}return e.ready}))}purchase({id:e,tag:t}){return h(this,void 0,void 0,(function*(){const n=e||t;if(l(this,r,"f")[n])return l(this,r,"f")[n];const s=(0,o._)();l(this,r,"f")[n]=s,this.gp.loader.inc();try{const{product:n}=yield this.gp._paymentsService.findProduct({id:e,tag:t});if(!n)throw new Error(`Not found product with ID or TAG "${e||t}"`);let r,o,c=!0,h="";this.gp.player.isLoggedInByPlatform||(yield this.gp.player.sync({silent:!1}));try{o=yield this.adapter.purchase(n)}catch(e){throw e}if(this.adapter.isServerValidation)r={productId:n.id,tag:n.tag,payload:o,createdAt:this.gp.serverTime,expiredAt:"",gift:!1,subscribed:!1};else try{r=(yield this.gp._paymentsService.purchase({id:e,tag:t,payload:o})).purchase}catch(e){c=!1,h=e.message}c?(l(this,i,"f").push({id:n.id,productId:n.id,tag:n.tag,createdAt:r.createdAt,expiredAt:r.expiredAt,payload:r.payload,gift:r.gift,subscribed:r.subscribed}),this._events.emit("purchase",{product:n,purchase:r})):a.kg.error(h),s.done({success:c,product:n,purchase:r,error:h})}catch(e){s.abort(e),this._events.emit("error:purchase",e)}finally{this.gp.loader.dec()}return s.ready.finally((()=>{delete l(this,r,"f")[n]})),s.ready}))}consume({id:e,tag:t}){return h(this,void 0,void 0,(function*(){const n=e||t;if(l(this,s,"f")[n])return l(this,s,"f")[n];const r=(0,o._)();l(this,s,"f")[n]=r,this.gp.loader.inc();try{const{product:n,purchase:s}=yield this.gp._paymentsService.consume({id:e,tag:t});s.gift||(yield this.adapter.consume(s));const a=l(this,i,"f").findIndex((e=>e.productId===n.id));-1!==a&&l(this,i,"f").splice(a,1),this._events.emit("consume",{product:n,purchase:s}),r.done({product:n,purchase:s,success:!0,error:""})}catch(e){r.abort(e),this._events.emit("error:consume",e)}finally{this.gp.loader.dec()}return r.ready.finally((()=>{delete l(this,s,"f")[n]})),r.ready}))}subscribe({id:e,tag:t}){return h(this,void 0,void 0,(function*(){const n=e||t;if(l(this,r,"f")[n])return l(this,r,"f")[n];const s=(0,o._)();l(this,r,"f")[n]=s,this.gp.loader.inc();try{const{product:r}=yield this.gp._paymentsService.findProduct({id:e,tag:t});if(!r)throw new Error(`Not found product with ID or TAG "${e||t}"`);if(!r.isSubscription)throw new Error(`Not subscription "${e||t}", please enable subscription on the product`);const o=this.getPurchase(n);let c,h,d=!0,f="";this.gp.player.isLoggedInByPlatform||(yield this.gp.player.sync({silent:!1}));try{h=yield this.adapter.subscribe(r,o)}catch(e){throw e}if(this.adapter.isServerValidation)c={payload:h,tag:r.tag,productId:r.id,createdAt:this.gp.serverTime,expiredAt:(null==o?void 0:o.expiredAt)||p(new Date(this.gp.serverTime),r.period).toISOString(),gift:!1,subscribed:!0};else try{c=(yield this.gp._paymentsService.purchase({id:e,tag:t,payload:h})).purchase}catch(e){d=!1,f=e.message}d?(o&&u(this,i,l(this,i,"f").filter((e=>e.productId!==o.productId)),"f"),l(this,i,"f").push({id:r.id,tag:r.tag,productId:r.id,createdAt:c.createdAt,expiredAt:c.expiredAt,payload:c.payload,gift:c.gift,subscribed:!0}),this._events.emit("subscribe",{product:r,purchase:c})):a.kg.error(f),s.done({success:d,product:r,purchase:c,error:f})}catch(e){s.abort(e),this._events.emit("error:subscribe",e)}finally{this.gp.loader.dec()}return s.ready.finally((()=>{delete l(this,r,"f")[n]})),s.ready}))}unsubscribe({id:e,tag:t}){return h(this,void 0,void 0,(function*(){const n=e||t;if(l(this,r,"f")[n])return l(this,r,"f")[n];const s=(0,o._)();l(this,r,"f")[n]=s,this.gp.loader.inc();try{const{product:r}=yield this.gp._paymentsService.findProduct({id:e,tag:t});if(!r)throw new Error(`Not found product with ID or TAG "${e||t}"`);if(!r.isSubscription)throw new Error(`Not subscription "${e||t}", please enable subscription on the product`);const o=this.getPurchase(n);if(!o||!o.subscribed)throw new Error("already_unsubscribed");let c=!0,h=Object.assign({},o),d="";try{yield this.adapter.unsubscribe(r,o)}catch(e){throw a.kg.error(d),e}h.subscribed=!1,u(this,i,l(this,i,"f").map((e=>e.productId!==o.productId?e:Object.assign(Object.assign({},e),{subscribed:!1}))),"f"),this._events.emit("unsubscribe",{product:r,purchase:h}),s.done({success:c,product:r,purchase:h,error:d})}catch(e){s.abort(e),this._events.emit("error:unsubscribe",e)}finally{this.gp.loader.dec()}return s.ready.finally((()=>{delete l(this,r,"f")[n]})),s.ready}))}has(e){return l(this,i,"f").some((t=>t.tag===e||t.id===e))}getPurchase(e){return l(this,i,"f").find((t=>t.tag===e||t.id===e))||null}_setPurchasedList(e){u(this,i,e.map((e=>Object.assign(Object.assign({},e),{id:e.productId}))),"f")}}function p(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}i=new WeakMap,r=new WeakMap,s=new WeakMap},4293:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var i=n(8293);const r=["adsbox","advertisement","pub_300x250","pub_300x250m","pub_728x90","text-ad","textAd","text_ad","text_ads","text-ads","text-ad-links"];var s=n(9233),a=n(6388),o=n(6558),c=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function a(e){try{c(i.next(e))}catch(e){s(e)}}function o(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((i=i.apply(e,t||[])).next())}))};class h extends a.Z{constructor(e,t,n){super(),this.gp=e,this.adapter=t,this.config=n,this.isAdblockEnabled=!1,this.fullscreenDisplayIntervalId=0,this.stickyRefreshIntervalId=0,this.isStickyPlaying=!1,this.isRewardedPlaying=!1,this.isFullscreenPlaying=!1,this.isPreloaderPlaying=!1,this.adsInfo=e._storage.temp.adsInfo;const i=this.config.platformConfig.banners;this.stickyBanner=i.find((e=>e.type===s.$.STICKY)),this.fullscreenBanner=i.find((e=>e.type===s.$.FULLSCREEN)),this.rewardedVideo=i.find((e=>e.type===s.$.REWARDED)),this.preloaderBanner=i.find((e=>e.type===s.$.PRELOADER)),this.banners=i.reduce(((e,t)=>(e[t.type]=t,e)),{}),this._checkLimitsExpired(!0),setInterval((()=>this._checkLimitsExpired(!1)),1e3)}get isStickyAvailable(){var e;return this.adapter.isStickyAvailable&&(null===(e=this.stickyBanner)||void 0===e?void 0:e.enabled)&&!this.isBannerLimitReached(s.$.STICKY)}get isFullscreenAvailable(){var e;return this.adapter.isFullscreenAvailable&&(null===(e=this.fullscreenBanner)||void 0===e?void 0:e.enabled)&&!this.fullscreenDisplayIntervalId&&!this.isBannerLimitReached(s.$.FULLSCREEN)}get isRewardedAvailable(){var e;return this.adapter.isRewardedAvailable&&(null===(e=this.rewardedVideo)||void 0===e?void 0:e.enabled)&&!this.isBannerLimitReached(s.$.REWARDED)}get isPreloaderAvailable(){var e;return this.adapter.isPreloaderAvailable&&(null===(e=this.preloaderBanner)||void 0===e?void 0:e.enabled)&&!this.isBannerLimitReached(s.$.PRELOADER)}checkAdblock(){return c(this,void 0,void 0,(function*(){return this.isAdblockEnabled=yield function(){const e=(0,i._)(),t=document.createElement("div");return t.innerHTML=" ",t.className=r.join(" "),t.id="text_ad",t.style.padding="1px 0 0 0",document.body.appendChild(t),setTimeout((()=>{e.done(0===t.offsetHeight),document.body.removeChild(t)}),10),e.ready}(),this.isAdblockEnabled}))}sendShowAdsInfo(e){this.config.acl.canCollectStats&&fetch(`https://api.eponesh.com/gs/api/t/b/?q=${btoa(JSON.stringify(Object.assign(Object.assign({},e),{platformType:this.gp.platform.type,projectId:this.gp.projectId})))}`)}showFullscreen(){return c(this,void 0,void 0,(function*(){if(!this.isFullscreenAvailable)return this._events.emit("close",!1),this._events.emit("fullscreen:close",!1),!1;this.fullscreenBanner.frequency,this._events.emit("start"),this._events.emit("fullscreen:start"),this.sendShowAdsInfo({type:"FULLSCREEN",action:"REQUEST"}),this.fullscreenDisplayIntervalId=window.setTimeout((()=>{this.fullscreenDisplayIntervalId=0}),1e3*this.fullscreenBanner.frequency),this.isFullscreenPlaying=!0;let e=!1;try{e=yield this.adapter.showFullscreen(this.fullscreenBanner)}catch(e){o.kg.error(e)}return this.sendShowAdsInfo({type:"FULLSCREEN",action:e?"DISPLAY":"ERROR"}),this.isFullscreenPlaying=!1,this._events.emit("close",e),this._events.emit("fullscreen:close",e),e&&this._trackBannerDisplay(s.$.FULLSCREEN),e}))}showRewardedVideo(){return c(this,void 0,void 0,(function*(){if(!this.isRewardedAvailable)return this._events.emit("close",!1),this._events.emit("rewarded:close",!1),!1;this._events.emit("start"),this._events.emit("rewarded:start"),this.sendShowAdsInfo({type:"REWARDED",action:"REQUEST"}),this.isRewardedPlaying=!0;const e=yield this.adapter.showRewardedVideo(this.rewardedVideo).catch((()=>!1));return this.sendShowAdsInfo({type:"REWARDED",action:e?"DISPLAY":"ERROR"}),this.isRewardedPlaying=!1,this._events.emit("close",e),this._events.emit("rewarded:close",e),this._trackBannerDisplay(s.$.REWARDED),e&&this._events.emit("rewarded:reward"),e}))}showPreloader(){return c(this,void 0,void 0,(function*(){if(!this.isPreloaderAvailable)return this._events.emit("close",!1),this._events.emit("preloader:close",!1),!1;this.sendShowAdsInfo({type:"PRELOADER",action:"REQUEST"}),this._events.emit("start"),this._events.emit("preloader:start"),this.isPreloaderPlaying=!0;const e=yield this.adapter.showPreloader(this.preloaderBanner).catch((()=>!1));return this.sendShowAdsInfo({type:"PRELOADER",action:e?"DISPLAY":"ERROR"}),this.isPreloaderPlaying=!1,this._events.emit("close",e),this._events.emit("preloader:close",e),e&&this._trackBannerDisplay(s.$.PRELOADER),e}))}showSticky(){return c(this,void 0,void 0,(function*(){if(!this.isStickyAvailable)return this._events.emit("close",!1),this._events.emit("sticky:close",!1),!1;!this.stickyRefreshIntervalId&&this.stickyBanner.refreshInterval&&(this.stickyRefreshIntervalId=window.setInterval((()=>this.refreshSticky()),1e3*this.stickyBanner.refreshInterval)),this._events.emit("start"),this._events.emit("sticky:start"),this.sendShowAdsInfo({type:"STICKY",action:"REQUEST"});const e=yield this.adapter.showSticky(this.stickyBanner).catch((()=>!1));return this.sendShowAdsInfo({type:"STICKY",action:e?"DISPLAY":"ERROR"}),this.isStickyPlaying=e,this._events.emit("sticky:render",e),e&&this._trackBannerDisplay(s.$.STICKY),e}))}refreshSticky(){return c(this,void 0,void 0,(function*(){if(!this.isStickyAvailable)return this._events.emit("close",!1),this._events.emit("sticky:close",!1),!1;clearInterval(this.stickyRefreshIntervalId),this.stickyBanner.refreshInterval&&(this.stickyRefreshIntervalId=window.setInterval((()=>this.refreshSticky()),1e3*this.stickyBanner.refreshInterval)),this._events.emit("sticky:refresh"),this.sendShowAdsInfo({type:"STICKY",action:"REQUEST"});const e=yield this.adapter.refreshSticky(this.stickyBanner).catch((()=>!1));return this.sendShowAdsInfo({type:"STICKY",action:e?"DISPLAY":"ERROR"}),this.isStickyPlaying=e,this._events.emit("sticky:render",e),e&&this._trackBannerDisplay(s.$.STICKY),e}))}closeSticky(){return c(this,void 0,void 0,(function*(){const e=yield this.adapter.closeSticky();return this.isStickyPlaying=!1,this._events.emit("close",!0),this._events.emit("sticky:close",!0),clearInterval(this.stickyRefreshIntervalId),e}))}_trackBannerDisplay(e){const t=this.adsInfo.limits[e];t.hour.count+=1,t.day.count+=1,t.session.count+=1,t.day.timestamp||(t.day.timestamp=Date.now()),t.hour.timestamp||(t.hour.timestamp=Date.now()),this._saveAdsInfo()}_checkLimitsExpired(e){let t=!1;Object.values(this.adsInfo.limits).forEach((n=>{e&&(n.session.count=0),l(n.hour.timestamp,36e5)&&(n.hour.timestamp=0,n.hour.count=0,t=!0),l(n.day.timestamp,864e5)&&(n.day.timestamp=0,n.hour.count=0,t=!0)})),t&&this._saveAdsInfo()}_saveAdsInfo(){this.gp._storage.saveAdsInfo(this.adsInfo)}isBannerLimitReached(e){return this.isBannerLimitTypeReached(e,"hour")||this.isBannerLimitTypeReached(e,"day")||this.isBannerLimitTypeReached(e,"session")}isBannerLimitTypeReached(e,t){const n=this.banners[e].limits[t];return!!n&&this.adsInfo.limits[e][t].count>=n}}function l(e,t){return(new Date).getTime()-new Date(e).getTime()>t}},6388:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var i=n(5585),r=n.n(i);class s{constructor(){this._events=new(r())}on(e,t){this._events.on(e,t)}off(e,t){this._events.off(e,t)}once(e,t){this._events.once(e,t)}}},1049:(e,t,n)=>{"use strict";function i(e,t,n){return e.replace(/{{hash}}/gi,t).replace(/{{size}}/gi,n)}n.d(t,{Z:()=>i})},4917:(e,t,n)=>{"use strict";function i({src:e,check:t}){return new Promise(((n,i)=>{let r=0;if(null==t?void 0:t(window))return void n();function s(){t?t(window)&&(clearInterval(r),n()):n()}if(document.querySelector(`script[src="${e}"]`)&&t)return void(r=setInterval(s,100));var a=document.getElementsByTagName("script")[0];const o=document.createElement("script");o.src=e,o.onload=s,o.onerror=i,a.parentNode.insertBefore(o,a),t&&(r=setInterval(s,100))}))}n.d(t,{Z:()=>i})},6558:(e,t,n)=>{"use strict";n.d(t,{Yd:()=>s,kg:()=>a,EK:()=>o});var i,r=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)};class s{constructor(){i.set(this,"[GamePush]: "),this.isCollectingLogs=!0,this.logs=[],this.log=(...e)=>{this.collectLogs("log",e),console.log(r(this,i,"f"),...e)},this.info=(...e)=>{this.collectLogs("info",e),console.info(r(this,i,"f"),...e)},this.warn=(...e)=>{this.collectLogs("warn",e),console.warn(r(this,i,"f"),...e)},this.error=(...e)=>{this.collectLogs("error",e),console.error(r(this,i,"f"),...e)}}stopCollect(){this.isCollectingLogs=!1,this.logs=[]}collectLogs(e,t){this.isCollectingLogs&&this.logs.push({type:e,args:t})}}i=new WeakMap;let a=new s;const o=e=>a=e},1437:(e,t,n)=>{"use strict";n.d(t,{p:()=>r});var i=n(8293);function r(e){const t=(0,i._)(i.s),n=new Image;return n.onload=()=>t.done(n),n.onerror=()=>t.abort(),n.onabort=()=>t.abort(),n.src=e,t.ready}},4835:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});const i={app:{trophy:"https://gs.eponesh.com/sdk/static/icons/trophy.svg"},cdn:{trophy:"https://cdn.eponesh.com/static/64x64/images/achievements/reward.png"}}},8293:(e,t,n)=>{"use strict";n.d(t,{s:()=>r,_:()=>s});var i=n(6558);const r={timeout:5e3};function s({timeout:e=0}={}){let t=!1;const n={},r=new Promise(((e,r)=>{n.done=n=>{t||(t=!0,e(n))},n.abort=e=>{t||(t=!0,i.kg.error(e),r(e))}}));return e&&setTimeout((()=>{t||n.abort(`Timeout ${e}ms exceeded`)}),e),n.ready=r,n}},5942:(e,t,n)=>{"use strict";var i;n.d(t,{z:()=>i}),function(e){e.YANDEX="YANDEX",e.VK="VK",e.OK="OK",e.GAME_MONETIZE="GAME_MONETIZE",e.GAME_DISTRIBUTION="GAME_DISTRIBUTION",e.CRAZY_GAMES="CRAZY_GAMES",e.SMARTMARKET="SMARTMARKET",e.GAMEPIX="GAMEPIX",e.POKI="POKI",e.VK_PLAY="VK_PLAY",e.NONE="NONE"}(i||(i={}))},584:(e,t,n)=>{"use strict";n.d(t,{P8:()=>l,ZP:()=>u});var i,r=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)};const s="{\n id\n iconSmall: icon(w: 48, h: 48, crop: false)\n icon(w: 256, h: 256, crop: false)\n tag\n rare\n name(lang: $lang)\n description(lang: $lang)\n progress\n maxProgress\n unlocked\n lockedIcon(w: 256, h: 256, crop: false)\n lockedIconSmall: lockedIcon(w: 48, h: 48, crop: false)\n progressStep\n isPublished\n isLockedVisible\n isLockedDescriptionVisible\n}",a="\n achievementId\n createdAt\n progress\n unlocked\n",o=`mutation ($input: UnlockPlayerAchievementInput!, $lang: Lang) {\n result: UnlockPlayerAchievement(input: $input) {\n __typename\n ... on Problem { message }\n ... on PlayerAchievement {\n ${a}\n achievement ${s}\n }\n }\n}`,c=`mutation ($input: PlayerSetAchievementProgressInput!, $lang: Lang){\n result: PlayerSetAchievementProgress(input: $input) {\n __typename\n ... on Problem { message }\n ... on PlayerAchievement {\n ${a}\n achievement ${s}\n }\n }\n}`,h=`query($lang: Lang) {\n result: FetchPlayerAchievements {\n __typename\n ... on Problem { message }\n ... on PlayerAchievements {\n achievements ${s}\n achievementsGroups { id tag name(lang: $lang) description(lang: $lang) achievements }\n playerAchievements { ${a} }\n }\n }\n}`;var l;!function(e){e.COMMON="COMMON",e.UNCOMMON="UNCOMMON",e.RARE="RARE",e.EPIC="EPIC",e.LEGENDARY="LEGENDARY",e.MYTHIC="MYTHIC"}(l||(l={}));class u{constructor(e){i.set(this,void 0),function(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===i?r.call(e,n):r?r.value=n:t.set(e,n)}(this,i,e,"f")}fetch(){return r(this,i,"f").fetch(h)}setProgress({id:e,tag:t,progress:n}){return r(this,i,"f").fetch(c,{id:e,tag:t,progress:n})}unlock({id:e,tag:t}){return r(this,i,"f").fetch(o,{id:e,tag:t,v:2})}}i=new WeakMap},9631:(e,t,n)=>{"use strict";n.d(t,{Lb:()=>a,ZP:()=>g});var i,r=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)};const s="{\n id\n icon(w: 256, h: 256, crop: false)\n iconSmall: icon(w: 48, h: 48, crop: false)\n tag\n price\n isSubscription\n period\n trialPeriod\n name(lang: $lang)\n description(lang: $lang)\n yandexId\n}",a="productId, tag, payload, gift, subscribed, createdAt, expiredAt",o=`{\n __typename\n ... on Problem { message }\n ... on PlayerPurchaseOutput {\n product ${s}\n purchase { ${a} }\n }\n}`,c=`query ($input: FindPlayerPurchaseInput!, $lang: Lang) {\n result: FindPlayerPurchase(input: $input) {\n __typename\n ... on Problem { message }\n ... on PlayerPurchaseOutput {\n product ${s}\n }\n }\n}`,h=`mutation ($input: SyncPlayerPurchasesInput!) {\n result: SyncPlayerPurchases(input: $input) {\n __typename\n ... on Problem { message }\n ... on PlayerProductsPurchasedOutput {\n purchases { ${a} }\n }\n }\n}`,l=`mutation ($input: PurchasePlayerPurchaseInput!, $lang: Lang) {\n result: PurchasePlayerPurchase(input: $input) ${o}\n}`,u=`mutation ($input: ConsumePlayerPurchaseInput!, $lang: Lang) {\n result: ConsumePlayerPurchase(input: $input) ${o}\n}`,d=`mutation ($input: CancelPlayerSubscriptionInput!, $lang: Lang) {\n result: CancelPlayerSubscription(input: $input) ${o}\n}`,p=`mutation ($input: ResumePlayerSubscriptionInput!, $lang: Lang) {\n result: ResumePlayerSubscription(input: $input) ${o}\n}`,f=`query ($lang: Lang) {\n result: FetchPlayerPurchases {\n __typename\n ... on Problem { message }\n ... on PlayerPurchasesOutput {\n products ${s}\n playerPurchases { ${a} }\n }\n }\n}`;class g{constructor(e){i.set(this,void 0),function(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===i?r.call(e,n):r?r.value=n:t.set(e,n)}(this,i,e,"f")}sync({purchases:e,payload:t}){return r(this,i,"f").fetch(h,{purchases:e,payload:t})}fetch(){return r(this,i,"f").fetch(f)}getPaymentLink(e){return r(this,i,"f").fetch("query ($input: PlayerGetPaymentLinkInput!) {\n result: PlayerGetPaymentLink(input: $input) {\n __typename\n ... on PlayerPaymentLink { link }\n ... on Problem { message }\n }\n}",e)}purchase({payload:e,id:t,tag:n}){return r(this,i,"f").fetch(l,{payload:e,id:t,tag:n})}findProduct({id:e,tag:t}){return r(this,i,"f").fetch(c,{id:e,tag:t})}consume({id:e,tag:t}){return r(this,i,"f").fetch(u,{id:e,tag:t})}cancelSubscription({payload:e,id:t,tag:n}){return r(this,i,"f").fetch(d,{payload:e,id:t,tag:n})}resumeSubscription({payload:e,id:t,tag:n}){return r(this,i,"f").fetch(p,{payload:e,id:t,tag:n})}}i=new WeakMap},9233:(e,t,n)=>{"use strict";var i;n.d(t,{$:()=>i,iA:()=>r}),function(e){e.PRELOADER="PRELOADER",e.FULLSCREEN="FULLSCREEN",e.REWARDED="REWARDED",e.STICKY="STICKY"}(i||(i={}));const r={appId:"",community:"",communityLink:"",gameLink:"",banners:[]};new WeakMap},7802:(e,t,n)=>{"use strict";n.d(t,{S:()=>o,Z:()=>v});var i,r=n(4692),s=n(9631),a=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)};const o="\n name(lang: $lang)\n key\n type\n default\n important\n variants {\n value\n name(lang: $lang)\n }\n",c=`\n state\n achievements { id tag progress unlocked createdAt }\n purchasesList { ${s.Lb} }\n`,h=`\n... on Player {\n ${c}\n token @include(if: $withToken)\n}\n... on Problem { message }\n`,l=`mutation ($input: SyncPlayerInput!, $lang: Lang, $withToken: Boolean!) {\n result: SyncPlayer(input: $input) {\n __typename\n ${h}\n ... on PlayerSyncConflict {\n players\n fields { ${o} }\n }\n }\n}`,u=`query ($input: GetPlayerInput!, $withToken: Boolean!) {\n result: GetPlayer(input: $input) {\n __typename\n ${h}\n }\n}`,d=`query ($lang: Lang) {\n result: FetchPlayerFields {\n __typename\n ... on Problem { message }\n ... on ModelFieldsList {\n items { ${o} }\n }\n }\n}`,p=`\n ... on FullPlayersList {\n players {\n ${c}\n isOnline\n }\n }\n`,f=`query($input: PlayerFetchPlayersInput!) {\n result: PlayerFetchPlayers(input: $input) { ${(0,r.Mn)(p)} }\n}`;let g=!0;class v{constructor(e){i.set(this,void 0),function(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===i?r.call(e,n):r?r.value=n:t.set(e,n)}(this,i,e,"f")}sync({playerState:e,override:t},{withToken:n}){(0,r.dX)(e,1*r.aI.MB,2*r.aI.MB);const s=a(this,i,"f").fetch(l,{playerState:e,override:t,isFirstRequest:g},{withToken:n});return g=!1,s}getPlayer({withToken:e}){const t=a(this,i,"f").fetch(u,{isFirstRequest:g},{withToken:e});return g=!1,t}fetchFields(){return e=this,t=void 0,r=function*(){return a(this,i,"f").fetch(d)},new((n=void 0)||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}));var e,t,n,r}checkCode({secretCode:e}){return a(this,i,"f").fetch("query ($input: CheckPlayerCodeInput!) {\n result: CheckPlayerCode(input: $input) {\n __typename\n ... on Problem { message }\n ... on Success { success }\n }\n}",{secretCode:e})}fetchPlayers({ids:e}){return a(this,i,"f").fetch(f,{ids:e})}}i=new WeakMap},3204:(e,t,n)=>{"use strict";n.d(t,{Uo:()=>l,h$:()=>u,lR:()=>d,GH:()=>p,ZP:()=>f});var i,r=n(9233),s=n(7802),a=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)};const o="\n key\n value(lang: $lang)\n type\n",c=`query ($lang: Lang) {\n result: FetchPlayerProjectConfig {\n __typename\n ... on Problem { message }\n ... on PlayerProjectConfig {\n isDev\n isAllowedOrigin\n config {\n lang\n avatarGenerator\n avatarGeneratorTemplate\n ymCounterId\n gtagCounterId\n showLoader\n showReqCounter\n }\n project {\n name(lang: $lang)\n description(lang: $lang)\n icon(w: 256, h: 256, crop: false)\n mainChatId\n enableMainChat\n achievements {\n isLockedVisible\n isLockedDescriptionVisible\n enableUnlockToast\n }\n }\n platformConfig {\n appId\n gameLink\n community\n communityLink\n banners {\n type\n enabled\n bannerId\n desktopBannerId\n frequency\n refreshInterval\n maxWidth\n maxHeight\n maxWidthDimension\n maxHeightDimension\n desktopMaxWidth\n desktopMaxHeight\n desktopMaxWidthDimension\n desktopMaxHeightDimension\n fitCanvas\n position\n limits { hour day session }\n useNative\n }\n }\n playerFields { ${s.S} }\n serverTime\n gameVariables { ${o} }\n acl {\n canUploadImages\n canUploadFiles\n canConnectOnline\n canCollectStats\n }\n }\n }\n}`,h=`query ($lang: Lang) {\n result: FetchPlayerProjectVariables {\n __typename\n ... on Problem { message }\n ... on ProjectVariablesList {\n items { ${o} }\n }\n }\n}`;var l;!function(e){e.EN="en",e.FR="fr",e.IT="it",e.DE="de",e.ES="es",e.ZH="zh",e.PT="pt",e.KO="ko",e.JA="ja",e.RU="ru",e.TR="tr",e.AR="ar",e.HI="hi",e.ID="id"}(l||(l={}));const u={[l.EN]:"en-US",[l.FR]:"fr-FR",[l.IT]:"it-IT",[l.DE]:"de-DE",[l.ES]:"es-ES",[l.ZH]:"zh-CN",[l.PT]:"pt-BR",[l.KO]:"ko-KR",[l.JA]:"ja-JP",[l.RU]:"ru-RU",[l.TR]:"tr-TR",[l.AR]:"ar-SA",[l.HI]:"hi-IN",[l.ID]:"id-ID"},d={isDev:!1,isAllowedOrigin:!0,config:{lang:l.EN,avatarGenerator:"dicebear_retro",avatarGeneratorTemplate:""},platformConfig:r.iA,playerFields:[],serverTime:(new Date).toISOString(),gameVariables:[],acl:{canUploadFiles:!1,canUploadImages:!1,canConnectOnline:!1,canCollectStats:!1},project:{icon:"",description:"",name:"",enableMainChat:!1,mainChatId:0,achievements:{isLockedVisible:!1,isLockedDescriptionVisible:!1,enableUnlockToast:!1}}},p={limits:{[r.$.PRELOADER]:{hour:{timestamp:0,count:0},day:{timestamp:0,count:0},session:{count:0}},[r.$.FULLSCREEN]:{hour:{timestamp:0,count:0},day:{timestamp:0,count:0},session:{count:0}},[r.$.REWARDED]:{hour:{timestamp:0,count:0},day:{timestamp:0,count:0},session:{count:0}},[r.$.STICKY]:{hour:{timestamp:0,count:0},day:{timestamp:0,count:0},session:{count:0}}}};class f{constructor(e){i.set(this,void 0),function(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===i?r.call(e,n):r?r.value=n:t.set(e,n)}(this,i,e,"f")}fetchConfig(){return a(this,i,"f").fetch(c)}fetchVariables(){return a(this,i,"f").fetch(h)}}i=new WeakMap},4692:(e,t,n)=>{"use strict";n.d(t,{Mn:()=>r,tv:()=>s,aI:()=>a,dX:()=>c});var i=n(6558);const r=e=>`\n __typename\n ... on Problem { message }\n ${e}\n`,s=e=>{if("Problem"===(null==e?void 0:e.__typename))throw e.message},a={MB:1048576},o=new TextEncoder,c=(e,t,n)=>{const r=o.encode(JSON.stringify(e)).length;if(r>t&&i.kg.warn(`Maximum size exceeded: sending data must be maximum 1MB, your size is: ${Math.round(r/1024/1024*100)/100} MB`),r>n)throw new Error("max_data_limit_exceeded")}}},s={};function a(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={id:e,exports:{}};return r[e].call(n.exports,n,n.exports,a),n.exports}a.m=r,a.amdO={},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(n,i){if(1&i&&(n=this(n)),8&i)return n;if("object"==typeof n&&n){if(4&i&&n.__esModule)return n;if(16&i&&"function"==typeof n.then)return n}var r=Object.create(null);a.r(r);var s={};e=e||[null,t({}),t([]),t(t)];for(var o=2&i&&n;"object"==typeof o&&!~e.indexOf(o);o=t(o))Object.getOwnPropertyNames(o).forEach((e=>s[e]=()=>n[e]));return s.default=()=>n,a.d(r,s),r},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,n)=>(a.f[n](e,t),t)),[])),a.u=e=>(({47:"i18n/pt-json",66:"i18n/tr-json",70:"platforms/platform.vkplay",72:"utils/centrifuge.protobuf",159:"i18n/it-json",369:"platforms/platform.gm",433:"platforms/platform.cg",459:"i18n/de-json",460:"gamepush.overlay",477:"eponesh-platform.gp",513:"i18n/id-json",552:"platforms/platform.smartmarket",606:"i18n/devtools-ru-json",614:"platforms/platform.ok",637:"i18n/hi-json",670:"i18n/ko-json",746:"i18n/fr-json",755:"platforms/platform.yandex",808:"i18n/ar-json",848:"i18n/ja-json",851:"platforms/platform.vk.app",860:"platforms/platform.gd",863:"gamepush.devtools",897:"i18n/devtools-en-json",911:"platforms/platform.vk",929:"i18n/zh-json",932:"i18n/en-json",964:"i18n/ru-json",968:"i18n/es-json"}[e]||e)+"."+a.h()+".js"),a.h=()=>"v1",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},i="game-score-sdk:",a.l=(e,t,r,s)=>{if(n[e])n[e].push(t);else{var o,c;if(void 0!==r)for(var h=document.getElementsByTagName("script"),l=0;l{o.onerror=o.onload=null,clearTimeout(p);var r=n[e];if(delete n[e],o.parentNode&&o.parentNode.removeChild(o),r&&r.forEach((e=>e(i))),t)return t(i)},p=setTimeout(d.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=d.bind(null,o.onerror),o.onload=d.bind(null,o.onload),c&&document.head.appendChild(o)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{var e={742:0,821:0};a.f.j=(t,n)=>{var i=a.o(e,t)?e[t]:void 0;if(0!==i)if(i)n.push(i[2]);else{var r=new Promise(((n,r)=>i=e[t]=[n,r]));n.push(i[2]=r);var s=a.p+a.u(t),o=new Error;a.l(s,(n=>{if(a.o(e,t)&&(0!==(i=e[t])&&(e[t]=void 0),i)){var r=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;o.message="Loading chunk "+t+" failed.\n("+r+": "+s+")",o.name="ChunkLoadError",o.type=r,o.request=s,i[1](o)}}),"chunk-"+t,t)}};var t=(t,n)=>{var i,r,[s,o,c]=n,h=0;for(i in o)a.o(o,i)&&(a.m[i]=o[i]);for(c&&c(a),t&&t(n);h{"use strict";a(2096);var e=a(4943),t=a.n(e),n=a(4293),i=a(5942);var r,s,o,c=a(8293),h=a(7802),l=a(4692),u=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function a(e){try{c(i.next(e))}catch(e){s(e)}}function o(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((i=i.apply(e,t||[])).next())}))},d=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)},p=function(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(e,n):r?r.value=n:t.set(e,n),n};const f="... on Success { success }";class g{constructor(e,t,n,i,a){this.apiUrl=e,this.projectId=t,this.publicToken=n,this.lang=i,this.platformType=a,r.set(this,""),s.set(this,0),o.set(this,(()=>{}))}get reqCounter(){return d(this,s,"f")}set reqCounter(e){p(this,s,e,"f"),d(this,o,"f").call(this,e)}addCounterListener(e){p(this,o,e,"f")}setLang(e){this.lang=e}setPlayerData(e){p(this,r,btoa(JSON.stringify(e)),"f")}ping(e){fetch(`${this.apiUrl}/api/ping?t=${e}`)}signQuery(e=null){return u(this,void 0,void 0,(function*(){const t={projectId:this.projectId,query:v(e),token:this.publicToken},n=yield function(e){return t=this,n=void 0,r=function*(){const t=(new TextEncoder).encode(e),n=yield crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map((e=>e.toString(16).padStart(2,"0"))).join("")},new((i=void 0)||(i=Promise))((function(e,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(a,o)}c((r=r.apply(t,n||[])).next())}));var t,n,i,r}(JSON.stringify(t));return{input:e,hash:n}}))}fetch(e,t,n){return u(this,void 0,void 0,(function*(){return this.fetchMany(e,t,n).then((({result:e})=>((0,l.tv)(e),e)))}))}fetchMany(e,t,n={}){return u(this,void 0,void 0,(function*(){const{input:i,hash:s}=yield this.signQuery(t);let a,o={};const c=JSON.stringify({query:e,variables:Object.assign({input:i,lang:this.lang.toUpperCase()},n)}),h=function(e={}){return Object.keys(e).filter((t=>e[t]instanceof File))}(t);if(h.length>0){a=new FormData,a.append("operations",c);const e={};h.forEach(((t,n)=>{e[n]=[`variables.input.${t}`]})),a.append("map",JSON.stringify(e)),h.forEach(((e,n)=>{a.append(n,t[e])}))}else o={"Content-Type":"application/json;charset=utf-8"},a=c;return fetch(`${this.apiUrl}/graphql`,{body:a, method:"GET",headers:Object.assign(Object.assign({},o),{"X-Transaction-Token":s,"X-Platform":this.platformType,"X-Project-ID":String(this.projectId),"X-Project-Token":this.publicToken,"X-Language":this.lang,"X-Player-Data":d(this,r,"f")})}).catch((e=>{if(String(null==e?void 0:e.message).includes("Failed to fetch"))throw"connection_error";throw e})).then((e=>u(this,void 0,void 0,(function*(){if(!e.ok){const t=yield e.text();throw new Error(`${e.status}. ${t}`)}const t=yield e.json();return Object.values(t.data).forEach((e=>{"Problem"!=e.__typename&&this.reqCounter++})),t})))).then((e=>e.data))}))}}function v(e){var t;return Array.isArray(e)?e.map(v):null!==e&&"object"==typeof e?(Object.getOwnPropertySymbols(e).length>0&&(e=JSON.parse(JSON.stringify(e))),t={},Object.keys(e).sort().forEach((n=>t[n]=v(e[n]))),t):e}r=new WeakMap,s=new WeakMap,o=new WeakMap;var m,y=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)};const w="\n id\n tags\n projectId\n capacity\n ownerId\n name(lang: $lang)\n description(lang: $lang)\n private\n visible\n hasPassword\n membersCount\n",b=`... on ChannelInvitesList {\n items {\n channel { ${w} }\n channelId\n playerFrom\n date\n }\n}`,P=`... on ChannelInvitesList {\n items {\n channel { ${w} }\n channelId\n playerTo\n date\n }\n}`,_=`query($input: PlayerFetchPlayerInvitesInput!, $lang: Lang) {\n result: PlayerFetchInvites(input: $input) { ${(0,l.Mn)(b)} }\n}`,I=`query($input: PlayerFetchPlayerSentInvitesInput!, $lang: Lang) {\n result: PlayerFetchSentInvites(input: $input) { ${(0,l.Mn)(P)} }\n}`,S=`query($input: PlayerFetchChannelInvitesInput!) {\n result: PlayerFetchChannelInvites(input: $input) { ${(0,l.Mn)("... on ChannelInvitesList {\n items {\n channelId\n playerTo\n playerFrom\n date\n }\n}")} }\n}`,k=`mutation($input: PlayerSendInviteToChannelInput!) {\n result: PlayerSendInviteToChannel(input: $input) { ${(0,l.Mn)("... on ChannelInvite {\n channelId\n playerToId\n playerFromId\n date\n }")} }\n}`,E=`mutation($input: PlayerCancelInviteToChannelInput!) {\n result: PlayerCancelInviteToChannel(input: $input) { ${(0,l.Mn)(f)} }\n}`,C=`mutation($input: PlayerAcceptInviteToChannelInput!) {\n result: PlayerAcceptInviteToChannel(input: $input) { ${(0,l.Mn)(f)} }\n}`,$=`mutation($input: PlayerRejectInviteToChannelInput!) {\n result: PlayerRejectInviteToChannel(input: $input) { ${(0,l.Mn)(f)} }\n}`;class M{constructor(e){m.set(this,void 0),function(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===i?r.call(e,n):r?r.value=n:t.set(e,n)}(this,m,e,"f")}fetchInvites({limit:e,offset:t}){return y(this,m,"f").fetch(_,{limit:e,offset:t})}fetchChannelInvites({channelId:e,limit:t,offset:n}){return y(this,m,"f").fetch(S,{channelId:e,limit:t,offset:n})}fetchSentInvites({limit:e,offset:t}){return y(this,m,"f").fetch(I,{limit:e,offset:t})}sendInvite({channelId:e,playerId:t}){return y(this,m,"f").fetch(k,{channelId:e,playerId:t})}cancelInvite({channelId:e,playerId:t}){return y(this,m,"f").fetch(E,{channelId:e,playerId:t})}acceptInvite({channelId:e}){return y(this,m,"f").fetch(C,{channelId:e})}rejectInvite({channelId:e}){return y(this,m,"f").fetch($,{channelId:e})}}m=new WeakMap;var T,R=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)};const j="\n canViewMessages\n canAddMessage\n canEditMessage\n canDeleteMessage\n canViewMembers\n canInvitePlayer\n canKickPlayer\n canAcceptJoinRequest\n canMutePlayer\n",x=`\n id\n tags\n messageTags\n projectId\n capacity\n ownerId\n name(lang: $lang)\n description(lang: $lang)\n private\n visible\n permanent\n hasPassword\n password\n templateId\n membersCount\n membersOnlineCount\n isJoined\n isRequestSent\n isInvited\n mute { isMuted, unmuteAt }\n ownerAcl { ${j} }\n memberAcl { ${j} }\n guestAcl { ${j} }\n`,O=`... on Channel { ${x} }`,A=`... on ChannelsList {\n items { ${x} }\n}`,L=`query($input: PlayerFetchChannelInput!, $lang: Lang) {\n result: PlayerFetchChannel(input: $input) { ${(0,l.Mn)(O)} }\n}`,F=`query($input: PlayerFetchChannelsInput!, $lang: Lang) {\n result: PlayerFetchChannels(input: $input) { ${(0,l.Mn)(A)} }\n}`,D=`mutation($input: PlayerCreateChannelInput!, $lang: Lang) {\n result: PlayerCreateChannel(input: $input) { ${(0,l.Mn)(O)} }\n}`,N=`mutation($input: PlayerUpdateChannelInput!, $lang: Lang) {\n result: PlayerUpdateChannel(input: $input) { ${(0,l.Mn)(O)} }\n}`,q=`mutation($input: PlayerDeleteChannelInput!) {\n result: PlayerDeleteChannel(input: $input) { ${(0,l.Mn)(f)} }\n}`;class B{constructor(e){T.set(this,void 0),function(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===i?r.call(e,n):r?r.value=n:t.set(e,n)}(this,T,e,"f")}fetchChannel({channelId:e}){return R(this,T,"f").fetch(L,{channelId:e}).then(J)}fetchChannels({ids:e,onlyJoined:t,onlyOwned:n,tags:i,search:r,limit:s,offset:a}){return R(this,T,"f").fetch(F,{ids:e,onlyJoined:t,onlyOwned:n,tags:i,search:r,limit:s,offset:a}).then(U)}createChannel({template:e,tags:t,capacity:n,name:i,description:r,password:s,ownerAcl:a,memberAcl:o,guestAcl:c,visible:h,private:l}){return R(this,T,"f").fetch(D,{template:e,tags:t,capacity:n,name:i,description:r,password:s,ownerAcl:a,memberAcl:o,guestAcl:c,visible:h,private:l}).then(J)}updateChannel({channelId:e,tags:t,capacity:n,name:i,description:r,password:s,ownerAcl:a,memberAcl:o,guestAcl:c,ownerId:h,visible:l,private:u}){return R(this,T,"f").fetch(N,{channelId:e,tags:t,capacity:n,name:i,description:r,password:s,ownerAcl:a,memberAcl:o,guestAcl:c,ownerId:h,visible:l,private:u}).then(J)}deleteChannel({channelId:e}){return R(this,T,"f").fetch(q,{channelId:e})}}function J(e){return e.isMuted=e.mute.isMuted,e}function U(e){return e.items=e.items.map(J),e}T=new WeakMap;var W,z=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)};const G=`... on ChannelJoinRequestsList {\n items {\n date\n channelId\n channel { ${x} }\n }\n}`,K=`query($input: PlayerFetchChannelJoinRequestsInput!) {\n result: PlayerFetchChannelJoinRequests(input: $input) { ${(0,l.Mn)("... on ChannelJoinRequestsList {\n items {\n channelId\n player\n date\n }\n}")} }\n}`,Z=`query($input: PlayerFetchPlayerSentJoinRequestsInput!, $lang: Lang) {\n result: PlayerFetchSentJoinRequests(input: $input) { ${(0,l.Mn)(G)} }\n}`,V=`mutation($input: PlayerAcceptJoinRequestToChannelInput!) {\n result: PlayerAcceptJoinRequestToChannel(input: $input) { ${(0,l.Mn)("... on ChannelMember {\n id\n state\n channelId\n isOnline\n mute {\n isMuted\n unmuteAt\n }\n}")} }\n}`,Y=`mutation($input: PlayerRejectJoinRequestToChannelInput!) {\n result: PlayerRejectJoinRequestToChannel(input: $input) { ${(0,l.Mn)(f)} }\n}`;class H{constructor(e){W.set(this,void 0),function(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===i?r.call(e,n):r?r.value=n:t.set(e,n)}(this,W,e,"f")}fetchJoinRequests({channelId:e,search:t,limit:n,offset:i}){return z(this,W,"f").fetch(K,{channelId:e,search:t,limit:n,offset:i})}fetchSentJoinRequests({limit:e,offset:t}){return z(this,W,"f").fetch(Z,{limit:e,offset:t})}acceptJoinRequest({channelId:e,playerId:t}){return z(this,W,"f").fetch(V,{channelId:e,playerId:t})}rejectJoinRequest({channelId:e,playerId:t}){return z(this,W,"f").fetch(Y,{channelId:e,playerId:t})}}W=new WeakMap;var X,Q=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)};const ee=`mutation($input: PlayerMutePlayerInChannelInput!) {\n result: PlayerMutePlayerInChannel(input: $input) { ${(0,l.Mn)(f)} }\n}`,te=`mutation($input: PlayerUnmutePlayerInChannelInput!) {\n result: PlayerUnmutePlayerInChannel(input: $input) { ${(0,l.Mn)(f)} }\n}`,ne=`query($input: PlayerFetchChannelMembersInput!) {\n result: PlayerFetchChannelMembers(input: $input) { ${(0,l.Mn)("... on ChannelMembersList {\n players {\n id\n state\n isOnline\n mute {\n isMuted\n unmuteAt\n }\n }\n}")} }\n}`,ie=`mutation($input: PlayerKickFromChannelInput!) {\n result: PlayerKickFromChannel(input: $input) { ${(0,l.Mn)(f)} }\n}`,re=`mutation($input: PlayerJoinChannelInput!) {\n result: PlayerJoinChannel(input: $input) { ${(0,l.Mn)(f)} }\n}`,se=`mutation($input: PlayerLeaveChannelInput!) {\n result: PlayerLeaveChannel(input: $input) { ${(0,l.Mn)(f)} }\n}`,ae=`mutation($input: PlayerCancelJoinChannelInput!) {\n result: PlayerCancelJoinChannel(input: $input) { ${(0,l.Mn)(f)} }\n}`;class oe{constructor(e){X.set(this,void 0),function(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===i?r.call(e,n):r?r.value=n:t.set(e,n)}(this,X,e,"f")}mute({channelId:e,playerId:t,unmuteAt:n}){return Q(this,X,"f").fetch(ee,{channelId:e,playerId:t,unmuteAt:n})}unmute({channelId:e,playerId:t}){return Q(this,X,"f").fetch(te,{channelId:e,playerId:t})}fetchMembers({channelId:e,onlyOnline:t,search:n,limit:i,offset:r}){return Q(this,X,"f").fetch(ne,{channelId:e,onlyOnline:t,search:n,limit:i,offset:r})}join({channelId:e,password:t}){return Q(this,X,"f").fetch(re,{channelId:e,password:t})}cancelJoin({channelId:e}){return Q(this,X,"f").fetch(ae,{channelId:e})}leave({channelId:e}){return Q(this,X,"f").fetch(se,{channelId:e})}kick({channelId:e,playerId:t}){return Q(this,X,"f").fetch(ie,{channelId:e,playerId:t})}}X=new WeakMap;var ce,he=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)};const le="\n id\n channelId\n authorId\n text\n tags\n player\n createdAt\n",ue=`... on ChannelMessage { ${le} }`,de=`... on ChannelMessagesList {\n items { ${le} }\n}`,pe=`query($input: PlayerFetchChannelMessagesInput!) {\n result: PlayerFetchChannelMessages(input: $input) { ${(0,l.Mn)(de)} }\n}`,fe=`query($input: PlayerFetchPersonalMessagesInput!) {\n result: PlayerFetchPersonalMessages(input: $input) { ${(0,l.Mn)(de)} }\n}`,ge=`query($input: PlayerFetchFeedMessagesInput!) {\n result: PlayerFetchFeedMessages(input: $input) { ${(0,l.Mn)(de)} }\n}`,ve=`mutation($input: PlayerSendMessageInput!) {\n result: PlayerSendMessage(input: $input) { ${(0,l.Mn)(ue)} }\n}`,me=`mutation($input: PlayerSendFeedMessageInput!) {\n result: PlayerSendFeedMessage(input: $input) { ${(0,l.Mn)(ue)} }\n}`,ye=`mutation($input: PlayerSendPersonalMessageInput!) {\n result: PlayerSendPersonalMessage(input: $input) { ${(0,l.Mn)(ue)} }\n}`,we=`mutation($input: PlayerEditMessageInput!) {\n result: PlayerEditMessage(input: $input) { ${(0,l.Mn)(ue)} }\n}`,be=`mutation($input: PlayerDeleteMessageInput!) {\n result: PlayerDeleteMessage(input: $input) { ${(0,l.Mn)(f)} }\n}`;class Pe{constructor(e){ce.set(this,void 0),function(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===i?r.call(e,n):r?r.value=n:t.set(e,n)}(this,ce,e,"f")}fetchMessages({channelId:e,tags:t,limit:n,offset:i}){return he(this,ce,"f").fetch(pe,{channelId:e,tags:t,limit:n,offset:i})}fetchPersonalMessages({playerId:e,tags:t,limit:n,offset:i}){return he(this,ce,"f").fetch(fe,{playerId:e,tags:t,limit:n,offset:i})}fetchFeedMessages({playerId:e,authorId:t,tags:n,limit:i,offset:r}){return he(this,ce,"f").fetch(ge,{playerId:e,authorId:t,tags:n,limit:i,offset:r})}sendMessage({channelId:e,tags:t,text:n}){return he(this,ce,"f").fetch(ve,{channelId:e,tags:t,text:n})}sendFeedMessage({playerId:e,text:t,tags:n}){return he(this,ce,"f").fetch(me,{playerId:e,text:t,tags:n})}sendPersonalMessage({playerId:e,text:t,tags:n}){return he(this,ce,"f").fetch(ye,{playerId:e,text:t,tags:n})}editMessage({messageId:e,text:t}){return he(this,ce,"f").fetch(we,{messageId:e,text:t})}deleteMessage({messageId:e}){return he(this,ce,"f").fetch(be,{messageId:e})}}ce=new WeakMap;var _e,Ie=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)};class Se{constructor(e){_e.set(this,void 0),function(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===i?r.call(e,n):r?r.value=n:t.set(e,n)}(this,_e,e,"f"),this.channels=new B(Ie(this,_e,"f")),this.messages=new Pe(Ie(this,_e,"f")),this.members=new oe(Ie(this,_e,"f")),this.invites=new M(Ie(this,_e,"f")),this.joinRequests=new H(Ie(this,_e,"f"))}ping(e){Ie(this,_e,"f").ping(e)}}_e=new WeakMap;class ke{constructor(e,t){this.config=e,this.adapter=t}get hasIntegratedAuth(){return this.adapter.hasIntegratedAuth}get isSecretCodeAuthAvailable(){return this.adapter.isSecretCodeAuthAvailable}get _hasAuthModal(){return this.adapter._hasAuthModal}get isExternalLinksAllowed(){return this.adapter.isExternalLinksAllowed}get type(){return this.adapter.type}get availableSocialNetworks(){return this.adapter.socialNetworks}getSDK(){return this.adapter.getSDK()}getNativeSDK(){return this.adapter.getNativeSDK()}requestPermissions(e){return t=this,n=void 0,r=function*(){return this.adapter.requestPermissions(e)},new((i=void 0)||(i=Promise))((function(e,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(a,o)}c((r=r.apply(t,n||[])).next())}));var t,n,i,r}}var Ee=a(3379),Ce=a.n(Ee),$e=a(8205);Ce()($e.Z,{insert:"head",singleton:!1}),$e.Z.locals;var Me,Te=a(6558),Re=a(3204),je=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function a(e){try{c(i.next(e))}catch(e){s(e)}}function o(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((i=i.apply(e,t||[])).next())}))},xe=function(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(e,n):r?r.value=n:t.set(e,n),n},Oe=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)};class Ae{constructor(e=[]){this.storages=e,Me.set(this,""),this.isEmptyOnBoot=!0,this.temp={};const t=(0,c._)();this.ready=t.ready,Promise.all([this._get(e,"context"),this._get(e,"config")]).then((([e,n])=>{xe(this,Me,e||"","f"),this.isEmptyOnBoot=!n,t.done()}))}get localStorages(){return this.storages.filter((e=>!0===e.isLocal))}_get(e,t){const n=(0,c._)();return Promise.all(this.storages.map((e=>{const n=(0,c._)(c.s);return e.get(t).then(n.done).catch(n.abort),n.ready.catch((e=>(Te.kg.warn(e),null)))}))).then((e=>n.done(e.find(Boolean)))),n.ready}_set(e,t,n){return Promise.all(e.map((e=>e.set(t,n))))}set(e,t,n){return this._set(e,`${t}${Oe(this,Me,"f")}`,n)}get(e,t){return this._get(e,`${t}${Oe(this,Me,"f")}`)}isEmptyContext(){return!Oe(this,Me,"f")}setContext(e){xe(this,Me,e,"f"),this._set(this.localStorages,"context",Oe(this,Me,"f"))}migrateToContext(e){return je(this,void 0,void 0,(function*(){xe(this,Me,"","f");const[t,n,i]=yield Promise.all([this.loadPlayer(),this.loadSecretCode(),this.loadLanguage()]),r=n||(null==t?void 0:t.secretCode);return xe(this,Me,e,"f"),yield Promise.all([this.savePlayer(t),this.saveSecretCode(r),this.saveLanguage(i)]),xe(this,Me,"","f"),yield Promise.all([this.savePlayer(null),this.saveSecretCode(null),this.saveLanguage(null)]),[t,r]}))}clearContext(e){return je(this,void 0,void 0,(function*(){const t=Oe(this,Me,"f");xe(this,Me,e,"f"),yield Promise.all([this.savePlayer(null),this.saveSecretCode(null),this.saveLanguage(null)]),xe(this,Me,t,"f")}))}extractFromContext(e){return je(this,void 0,void 0,(function*(){const t=Oe(this,Me,"f");xe(this,Me,e,"f");const[n,i,r]=yield Promise.all([this.loadPlayer(),this.loadSecretCode(),this.loadLanguage()]),s=i||(null==n?void 0:n.secretCode);return xe(this,Me,t,"f"),[n,s,r]}))}copyFromContext(e,t){return je(this,void 0,void 0,(function*(){const n=Oe(this,Me,"f"),[i,r,s]=yield this.extractFromContext(e);xe(this,Me,t,"f"),yield Promise.all([this.savePlayer(i),this.saveSecretCode(r),this.saveLanguage(s)]),xe(this,Me,n,"f")}))}loadPlayer(){return this.get(this.storages,"players").then((([e]=[null])=>e))}savePlayer(e){return this.set(this.storages,"players",[e]).catch(Te.kg.warn)}loadSecretCode(){return this.get(this.localStorages,"sk").catch(Te.kg.warn)}saveSecretCode(e){return this.set(this.localStorages,"sk",e).catch(Te.kg.warn)}loadLanguage(){return this.get(this.localStorages,"lang").catch((e=>(Te.kg.warn(e),null)))}saveLanguage(e){return this.set(this.localStorages,"lang",e).catch(Te.kg.warn)}loadConfig(){return this._get(this.localStorages,"config").then((e=>Object.assign(Object.assign({},Re.lR),e))).catch((e=>(Te.kg.warn(e),Re.lR)))}saveConfig(e){return this._set(this.localStorages,"config",e).catch(Te.kg.warn)}loadAdsInfo(){const e=this._get(this.localStorages,"adsInfo").then((e=>Object.assign(Object.assign({},Re.GH),e))).catch((e=>(Te.kg.warn(e),Re.GH)));return e.then((e=>this.temp.adsInfo=e)),e}saveAdsInfo(e){return this._set(this.localStorages,"adsInfo",e).catch(Te.kg.warn)}saveIsExistsShortcut(e){this.set(this.localStorages,"isExistsShortcut",e)}loadIsExistsShortcut(){return this.get(this.localStorages,"isExistsShortcut")}}Me=new WeakMap;var Le=a(6388),Fe=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function a(e){try{c(i.next(e))}catch(e){s(e)}}function o(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((i=i.apply(e,t||[])).next())}))};class De extends Error{constructor(){super("throttled invocation was canceled"),this.name="CanceledError"}}class Ne{constructor(e,t){this.canceled=!1;const n=new Promise((e=>{this.timeout=setTimeout(e,t),this.resolve=e}));this.ready=e.then((()=>n),(()=>n))}flush(){clearTimeout(this.timeout),this.resolve()}cancel(){this.canceled=!0,clearTimeout(this.timeout),this.resolve()}then(e){return this.ready.then((()=>{if(this.canceled)throw new De;return e()}))}}function qe(e,t,n={}){const i=null!=t&&Number.isFinite(t)?Math.max(t,0):0,r=n.getNextArgs||((e,t)=>t);let s,a=Promise.resolve(),o=new Ne(a,0),c=null;function h(){const t=s;c=null,s=null;const n=(()=>Fe(this,void 0,void 0,(function*(){return yield e.apply(this,t)})))();return o=new Ne(n,i),n}function l(...e){return s=s?r(s,e):e,c||(c=o.then(h.bind(this))),c}return l.cancel=()=>Fe(this,void 0,void 0,(function*(){const e=a;o.cancel(),c=null,s=null,a=Promise.resolve(),o=new Ne(a,0),yield e})),l.flush=()=>Fe(this,void 0,void 0,(function*(){o.flush(),yield a})),l}function Be(e){return function(t,n,i){const r=i.value;return i.value=qe(r,e),i}}qe.CanceledError=De;var Je=function(e,t,n,i){var r,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(a=(s<3?r(a):s>3?r(t,n,a):r(t,n))||a);return s>3&&a&&Object.defineProperty(t,n,a),a},Ue=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function a(e){try{c(i.next(e))}catch(e){s(e)}}function o(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((i=i.apply(e,t||[])).next())}))};class We extends Le.Z{constructor(e){super(),this.gp=e}open(e={}){return Ue(this,void 0,void 0,(function*(){const[t]=yield Promise.all([this.fetch(e),this.gp.loadOverlay()]);this._events.emit("open"),yield this.gp.overlay.openLeaderboard(e,t),this._events.emit("close")}))}openScoped(e){return Ue(this,void 0,void 0,(function*(){const[t]=yield Promise.all([this.fetchScoped(e),this.gp.loadOverlay()]),n=Object.assign({},e),i=t.fields.map((e=>e.key));n.orderBy=e.includeFields?i.filter((t=>!e.includeFields.includes(t))):i,this._events.emit("open"),yield this.gp.overlay.openLeaderboard(n,t),this._events.emit("close")}))}fetch(e={}){return Ue(this,void 0,void 0,(function*(){const t=(0,c._)();this.gp.loader.inc();try{const{result:n,playerResult:i}=yield this.gp._leaderboardsService.getRating(e);n.players=ze(n.players,e.withMe,null==i?void 0:i.player),t.done(n),this._events.emit("fetch",n)}catch(e){t.abort(e),this._events.emit("error:fetch")}finally{this.gp.loader.dec()}return t.ready}))}fetchScoped(e){return Ue(this,void 0,void 0,(function*(){const t=(0,c._)();this.gp.loader.inc();try{const n=yield this.gp._leaderboardsService.getRatingVariant(e),{result:i,playerResult:r}=n;(0,l.tv)(i),(0,l.tv)(r),i.players=ze(i.players,e.withMe,null==r?void 0:r.player),t.done(i),this._events.emit("fetch",i)}catch(e){t.abort(e),this._events.emit("error:fetch")}finally{this.gp.loader.dec()}return t.ready}))}fetchPlayerRating(e={}){return Ue(this,void 0,void 0,(function*(){const t=(0,c._)();this.gp.loader.inc();try{const n=yield this.gp._leaderboardsService.getPlayerRating(e);t.done(n),this._events.emit("fetchPlayer",n)}catch(e){t.abort(e),this._events.emit("error:fetchPlayer",e)}finally{this.gp.loader.dec()}return t.ready}))}fetchPlayerRatingScoped(e){return Ue(this,void 0,void 0,(function*(){const t=(0,c._)();this.gp.loader.inc();try{const n=yield this.gp._leaderboardsService.getPlayerRatingVariant(e);t.done(n),this._events.emit("fetchPlayerScoped",n)}catch(e){t.abort(e),this._events.emit("error:fetchPlayerScoped",e)}finally{this.gp.loader.dec()}return t.ready}))}publishRecord(e){return Ue(this,void 0,void 0,(function*(){const t=(0,c._)();this.gp.loader.inc();try{const n=yield this.gp._leaderboardsService.publishRecord(e);t.done(n),this._events.emit("publishRecord",n)}catch(e){t.abort(e),this._events.emit("error:publishRecord",e)}finally{this.gp.loader.dec()}return t.ready}))}}function ze(e,t,n){if(!n||!t||"none"===t)return e;if(e.some((e=>e.id===n.id&&e.position===n.position)))return e;const i=e.length,r=n.position-1;if(e=e.filter((e=>e.id!==n.id)),r{t<=r||e.position++})),e.length>i&&e.pop();else switch(t){case"first":e.unshift(n);break;case"last":e.push(n)}return e}Je([Be(500)],We.prototype,"open",null),Je([Be(500)],We.prototype,"openScoped",null),Je([Be(500)],We.prototype,"fetch",null),Je([Be(500)],We.prototype,"fetchScoped",null),Je([Be(500)],We.prototype,"fetchPlayerRating",null),Je([Be(500)],We.prototype,"fetchPlayerRatingScoped",null),Je([Be(500)],We.prototype,"publishRecord",null);const Ge={data:e=>String(e||""),stats:e=>Number(e)||0,flag:e=>Boolean(e)||!1,service:null,accounts:null},Ke=["name","avatar"];class Ze extends Le.Z{constructor(e={},t){super(),this.credentials="",this.fields=t,this.fromJSON(e)}get id(){return this.state.id}get score(){return this.get("score")}set score(e){this.set("score",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get avatar(){return this.get("avatar")}set avatar(e){this.set("avatar",e)}get isStub(){return!this.fields.filter((e=>!Ke.includes(e.key))).some((e=>this.get(e.key)!==e.default))}fromJSON(e){var t,n,i,r;this.state={id:e.id||0,active:null===(t=e.active)||void 0===t||t,removed:null!==(n=e.removed)&&void 0!==n&&n,banned:null!==(i=e.banned)&&void 0!==i&&i,test:null!==(r=e.test)&&void 0!==r&&r,name:e.name||"",avatar:e.avatar||"",score:e.score||0},e.credentials&&(this.credentials=String(e.credentials)),this.fields.forEach((t=>{if(!(t.key in e))return void(this.state[t.key]=t.default);const n=Ge[t.type];if(!n)return void(this.state[t.key]=e[t.key]||t.default);const i=n(e[t.key]);this.state[t.key]=t.variants.length&&!t.variants.some((e=>e.value===i))?t.default:i})),this._events.emit("change")}toJSON(){return Object.assign({},this.state)}getField(e){const t=this.fields.find((t=>t.key===e));if(!t){const t=`Field "${e}" not exists on player model`;throw Te.kg.error(t),new Error(t)}return t}getFieldName(e){return this.getField(e).name||""}getFieldVariantName(e,t){var n;return(null===(n=this.getField(e).variants.find((e=>e.value===t)))||void 0===n?void 0:n.name)||""}get(e){return this.state[e]}set(e,t){const n=this.getField(e),i=Ge[n.type];if(!i){const t=`Cannot mutate "${e}", it's readonly`;throw Te.kg.error(t),new Error(t)}const r=i(t);if(n.variants.length&&!n.variants.some((e=>e.value===r))){const t=`Invalid variant ${r} of "${e}"`;throw Te.kg.error(t),new Error(t)}this.state[e]=r,this._events.emit("change")}add(e,t){return this.set(e,this.get(e)+t)}toggle(e){return this.set(e,!this.get(e))}has(e){return Boolean(this.get(e))}reset(){this.fields.forEach((e=>this.set(e.key,e.default)))}remove(){this.state.id=0,this.reset()}}var Ve,Ye,He,Xe,Qe,et=function(e,t,n,i){var r,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(a=(s<3?r(a):s>3?r(t,n,a):r(t,n))||a);return s>3&&a&&Object.defineProperty(t,n,a),a},tt=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function a(e){try{c(i.next(e))}catch(e){s(e)}}function o(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((i=i.apply(e,t||[])).next())}))},nt=function(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(e,n):r?r.value=n:t.set(e,n),n},it=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)};class rt extends Ze{constructor(e={},t,n,i,r){super(e,t),this.playerAdapter=n,this.gp=i,this.isLoggedIn=!1,this.isLoggedInByPlatform=!1,this.hasAnyCredentials=!1,this.secretCode="",this.tempSecredCode="",this._hasFirstSync=!1,this.isFirstRequest=!1,this.credentials="",Ve.set(this,{}),Ye.set(this,""),He.set(this,void 0),Xe.set(this,(function({silent:e=!0,override:t=!1}={}){return tt(this,void 0,void 0,(function*(){this.gp.loader.inc();const n=(0,c._)();this.gp._storage.savePlayer(this.toJSON()).catch(Te.kg.warn);try{let i;if(e?this._isRequredDataUpdate&&(i=this.playerAdapter.getPlayer()):i=this.playerAdapter.loginPlayer(this),i){const t=yield i.catch((e=>{if("cancelled"===(null==e?void 0:e.message))throw e;return{name:"",photoLarge:""}}));t.name&&!this.get("name")&&(this.name=t.name),t.photoLarge&&this._isRequredAvatarUpdate&&(this.avatar=t.photoLarge),e||(yield this._initContext())}const r=yield this.gp._playerService.sync({override:t,playerState:this.toJSON()},{withToken:this.isFirstRequest});switch(r.__typename){case"PlayerSyncConflict":{this.gp.loader.dec();const t=r;yield this.gp.loadOverlay();const i=yield this.gp.overlay.pickPlayerOnConflict(t);this.gp.loader.inc(),this.has("name")&&!i.name&&(i.name=this.get("name")),this.has("avatar")&&!i.avatar&&(i.avatar=this.get("avatar"));const s=yield this.gp._playerService.sync({playerState:i,override:!0},{withToken:this.isFirstRequest});if("Player"!==s.__typename)return void n.abort();e||this.setSecretCode(""),this.gp.overlay.close(),this.gp.achievements._setAchievementsList(s.achievements),this.gp.payments._setPurchasedList(s.purchasesList),this.setToken(s.token),this.fromJSON(s.state),nt(this,Ye,s.state.secretCode,"f"),it(this,He,"f").call(this,this._authInfo),this.gp._storage.savePlayer(s.state),n.done(),yield this.checkLoggedIn(s.state);break}case"Player":{const{state:t,achievements:i,purchasesList:s,token:a}=r;e||this.setSecretCode(""),this.gp.achievements._setAchievementsList(i),this.gp.payments._setPurchasedList(s),this.setToken(a),this.fromJSON(t),nt(this,Ye,t.secretCode,"f"),it(this,He,"f").call(this,this._authInfo),this.gp._storage.savePlayer(t),n.done(),yield this.checkLoggedIn(t),this.playerAdapter.publishRecord(t);break}}}catch(e){n.abort(e)}finally{this._hasFirstSync=!0,this.gp.loader.dec()}return n.ready.then((()=>this._events.emit("sync",!0))).catch((()=>this._events.emit("sync",!1))),n.ready}))})),Qe.set(this,(function(){return tt(this,void 0,void 0,(function*(){this.gp.loader.inc();try{const e=yield this.gp._playerService.getPlayer({withToken:!0});this.gp.achievements._setAchievementsList(e.achievements),this.gp.payments._setPurchasedList(e.purchasesList),this.setToken(e.token),this.fromJSON(e.state),nt(this,Ye,e.state.secretCode,"f"),it(this,He,"f").call(this,this._authInfo),this.gp._storage.savePlayer(e.state),yield this.checkLoggedIn(e.state),this._events.emit("load",!0)}catch(e){Te.kg.error(e),this._events.emit("load",!1)}finally{this.gp.loader.dec()}}))}));const s=(0,c._)();this.ready=s.ready,nt(this,He,r,"f"),this._initContext().finally((()=>this._init(s)))}get avatar(){return this.get("avatar")||this.gp.generateAvatar(this.id,64)}set avatar(e){this.set("avatar",e)}get _isRequredDataUpdate(){return!this.get("name")||this._isRequredAvatarUpdate}get _isRequredAvatarUpdate(){const e=this.get("avatar");return!e||!this._hasFirstSync&&this.playerAdapter.isPlatformAvatar(e)}get _authInfo(){return Object.assign(Object.assign({},it(this,Ve,"f")),{secretCode:this.secretCode||it(this,Ye,"f")})}get(e){return"secretCode"===e?this.secretCode||it(this,Ye,"f"):"credentials"===e?this.credentials||this.playerAdapter.userId:super.get(e)}_initContext(){return tt(this,void 0,void 0,(function*(){const{platformData:e,key:t}=yield this.playerAdapter.getPlayerContext().catch((e=>(Te.kg.error(e),{platformData:null,key:""})));nt(this,Ve,e||{},"f"),it(this,He,"f").call(this,this._authInfo);const n=`,${this.gp.platform.type},${this.gp.isDev?"d":"p"},${t}`;if(null==e?void 0:e.savedState){Te.kg.info("found saved state...");const e=`,${this.gp.platform.type},${this.gp.isDev?"d":"p"},null`,[t]=yield this.gp._storage.extractFromContext(e);t&&(this.fromJSON(t),yield it(this,Xe,"f").call(this),yield this.gp._storage.copyFromContext(n,e))}if(this.gp.platform.type===i.z.SMARTMARKET){const e=`,SBER_MARKET,${this.gp.isDev?"d":"p"},`,[t]=yield this.gp._storage.extractFromContext(e);t&&(delete t.platformType,this.fromJSON(t),yield it(this,Xe,"f").call(this),yield this.gp._storage.clearContext(e))}if(this.gp.platform.type===i.z.POKI){const e=`,NONE,${this.gp.isDev?"d":"p"},`,[t]=yield this.gp._storage.extractFromContext(n);if(t&&(this.fromJSON(t),this.isStub)){const[t]=yield this.gp._storage.extractFromContext(e);t&&(delete t.platformType,t.id=this.id,this.fromJSON(t),yield it(this,Xe,"f").call(this))}}if(this.gp.platform.type===i.z.VK_PLAY){const e=`,NONE,${this.gp.isDev?"d":"p"},`,[t]=yield this.gp._storage.extractFromContext(n);if(t&&(this.fromJSON(t),this.isStub)){const[t]=yield this.gp._storage.extractFromContext(e);t&&(delete t.platformType,t.id=this.id,this.fromJSON(t),yield it(this,Xe,"f").call(this))}}if(!this.gp._storage.isEmptyOnBoot&&this.gp._storage.isEmptyContext()){Te.kg.info("Applying migration...");const[e,t]=yield this.gp._storage.migrateToContext(n);this.secretCode=t,this.fromJSON(e),nt(this,Ye,e.secretCode,"f"),it(this,He,"f").call(this,this._authInfo),yield it(this,Xe,"f").call(this)}this.gp._storage.setContext(n)}))}_init(e){return tt(this,void 0,void 0,(function*(){Promise.all([this.gp._storage.loadPlayer(),this.gp._storage.loadSecretCode(),this.gp.ready]).then((([t,n])=>{this.fromJSON(t||{}),nt(this,Ye,(null==t?void 0:t.secretCode)||"","f"),this.secretCode=n,it(this,He,"f").call(this,this._authInfo),this.isFirstRequest=!0,(this.id?it(this,Qe,"f").call(this):it(this,Xe,"f").call(this)).finally((()=>{this.isFirstRequest=!1,e.done(),this._events.emit("ready"),this.isLoggedInByPlatform&&this.gp.payments._sync()}))}))}))}fetchFields(){return tt(this,void 0,void 0,(function*(){try{this.fields=(yield this.gp._playerService.fetchFields()).items,this._events.emit("fetchFields",!0)}catch(e){this._events.emit("fetchFields",!1)}}))}sync(e={}){return tt(this,void 0,void 0,(function*(){return it(this,Xe,"f").call(this,e)}))}load(){return tt(this,void 0,void 0,(function*(){return it(this,Qe,"f").call(this)}))}login(){return tt(this,void 0,void 0,(function*(){if(this.gp.platform._hasAuthModal)return void this.playerAdapter.loginPlayer(this);yield this.gp.loadOverlay();const{type:e,secretCode:t}=yield this.gp.overlay.login();switch(e){case"PLATFORM_AUTH":yield it(this,Xe,"f").call(this,{silent:!1}).then((()=>this._events.emit("login",!0))).catch((e=>{Te.kg.error(e),this._events.emit("login",!1)}));break;case"SECRET_KEY_AUTH_LOGIN":this.setSecretCode(t),yield it(this,Qe,"f").call(this).then((()=>this._events.emit("login",!0))).catch((e=>{Te.kg.error(e),this._events.emit("login",!1)}))}this.gp.overlay.close()}))}checkLoggedIn(e){return tt(this,void 0,void 0,(function*(){this.isStub?(this.tempSecredCode=e.secretCode,this.setSecretCode(e.secretCode)):this.tempSecredCode&&this.tempSecredCode===e.secretCode&&(this.setSecretCode(""),this.tempSecredCode=""),this.isLoggedInByPlatform=this.playerAdapter.hasCredetials,this.isLoggedIn=this.isLoggedInByPlatform,this.hasAnyCredentials=this.isLoggedIn||!!this.secretCode,this.secretCode&&this.secretCode!=e.secretCode&&this.setSecretCode(e.secretCode),this.hasAnyCredentials||(this.setSecretCode(e.secretCode),this.hasAnyCredentials=!0)}))}setSecretCode(e){this.secretCode=e,this.gp._storage.saveSecretCode(this.secretCode),it(this,He,"f").call(this,this._authInfo)}setToken(e){e&&this.gp.channels._connect(e)}}Ve=new WeakMap,Ye=new WeakMap,He=new WeakMap,Xe=new WeakMap,Qe=new WeakMap,et([Be(300)],rt.prototype,"fetchFields",null),et([Be(300)],rt.prototype,"sync",null),et([Be(300)],rt.prototype,"load",null);class st extends Le.Z{constructor(){super(),document.documentElement.addEventListener("fullscreenchange",(()=>{let e=this.isEnabled;this._events.emit("change",e),this._events.emit(e?"open":"close")}))}get isEnabled(){return Boolean(document.fullscreenElement||document.webkitFullscreenElement)}open(){this.isEnabled||(document.documentElement.requestFullscreen?document.documentElement.requestFullscreen():document.documentElement.webkitRequestFullscreen&&document.documentElement.webkitRequestFullscreen())}close(){this.isEnabled&&(document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen&&document.webkitExitFullscreen())}toggle(){this.isEnabled?this.close():this.open()}}class at{constructor(){this.counters=[]}addCounter(e){return t=this,n=void 0,r=function*(){this.counters.push(e)},new((i=void 0)||(i=Promise))((function(e,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(a,o)}c((r=r.apply(t,n||[])).next())}));var t,n,i,r}hit(e){this.counters.forEach((t=>t.hit(e)))}goal(e,t){this.counters.forEach((n=>n.goal(e,t)))}}var ot=a(4917),ct=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function a(e){try{c(i.next(e))}catch(e){s(e)}}function o(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((i=i.apply(e,t||[])).next())}))};class ht{constructor({counterId:e}){this.counterId=e;const t=window;t.ym=t.ym||function(){(t.ym.a=t.ym.a||[]).push(arguments),t.ym.l=Date.now()},t.ym(e,"init",{accurateTrackBounce:!0}),this.ym=window.ym,(0,ot.Z)({src:"https://mc.yandex.ru/metrika/tag.js"})}hit(e){return ct(this,void 0,void 0,(function*(){this.ym(this.counterId,"hit",e)}))}goal(e,t){return ct(this,void 0,void 0,(function*(){this.ym(this.counterId,"reachGoal",t?`${e}_${t}`:e)}))}}var lt=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function a(e){try{c(i.next(e))}catch(e){s(e)}}function o(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((i=i.apply(e,t||[])).next())}))};class ut{constructor({counterId:e}){this.counterId=e;const t=window;t.dataLayer=t.dataLayer||[],t.gtag=function(){t.dataLayer.push(arguments)},this.gtag("js",new Date),this.gtag("config",e,{send_page_view:!1}),(0,ot.Z)({src:`//www.googletagmanager.com/gtag/js?id=${e}`})}get gtag(){return window.gtag}hit(e){return lt(this,void 0,void 0,(function*(){this.gtag("event","page_view",{page_location:e,send_to:this.counterId})}))}goal(e,t){return lt(this,void 0,void 0,(function*(){this.gtag("event",e,t?{value:t}:void 0)}))}}var dt=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function a(e){try{c(i.next(e))}catch(e){s(e)}}function o(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((i=i.apply(e,t||[])).next())}))};class pt extends Le.Z{constructor(e,t){super(),this.adapter=e,this.gp=t}get isSupportsShare(){return this.adapter.isSupportsShare}get isSupportsNativeShare(){return this.adapter.isSupportsNativeShare}get isSupportsNativePosts(){return this.adapter.isSupportsNativePosts}get isSupportsNativeInvite(){return this.adapter.isSupportsNativeInvite}get isSupportShareParams(){return this.adapter.isSupportShareParams}get isSupportsNativeCommunityJoin(){return this.adapter.isSupportsNativeCommunityJoin}get canJoinCommunity(){return this.adapter.canJoinCommunity&&!!this.communityLink}get communityLink(){return this.gp.platform.config.communityLink}get shareParams(){return this.adapter.shareParams||{}}_getShareOptions(e){return{text:e.text||this.gp.app.title,image:e.image||"",url:e.url||this.gp.app.url}}_shareByOverlay(e,t){var n;return dt(this,void 0,void 0,(function*(){if(this.gp.isMobile)try{const e=this._getShareOptions(t),i=Object.assign({},e);if(e.image){const t=yield fetch(e.image).then((e=>e.blob()));i.files=[new File([t],"image.png",{type:t.type,lastModified:(new Date).getTime()})]}const r=window.navigator;if(null===(n=r.canShare)||void 0===n?void 0:n.call(r,i))return r.share(i)}catch(e){Te.kg.warn(e)}return yield this.gp.loadOverlay(),this.gp.overlay.share(e,this._getShareOptions(t))}))}share(e={}){return dt(this,void 0,void 0,(function*(){if(!this.isSupportsShare)return this._events.emit("share",!1),!1;const t=this.isSupportsNativeShare?this.adapter.share(this._getShareOptions(e)):this._shareByOverlay("share",e),n=yield t.catch((()=>!1));return this._events.emit("share",n),n}))}post(e={}){return dt(this,void 0,void 0,(function*(){if(!this.isSupportsShare)return this._events.emit("post",!1),!1;const t=this.isSupportsNativePosts?this.adapter.post(this._getShareOptions(e)):this._shareByOverlay("post",e),n=yield t.catch((()=>!1));return this._events.emit("post",n),n}))}invite(e={}){return dt(this,void 0,void 0,(function*(){if(!this.isSupportsShare)return this._events.emit("invite",!1),!1;const t=this.isSupportsNativeInvite?this.adapter.invite(this._getShareOptions(e)):this._shareByOverlay("invite",e),n=yield t.catch((()=>!1));return this._events.emit("invite",n),n}))}joinCommunity(){return dt(this,void 0,void 0,(function*(){if(!this.canJoinCommunity)return this._events.emit("joinCommunity",!1),!1;let e=!0;return this.isSupportsNativeCommunityJoin&&(e=yield this.adapter.joinCommunity(this.gp.platform.config.community)),window.open(this.communityLink,"_blank"),this._events.emit("joinCommunity",e),e}))}makeShareUrl(e={}){return!!this.isSupportShareParams&&(0===Object.keys(e).length?this.gp.app.url:this.adapter.makeShareUrl(e))}getShareParam(e){var t;return!!this.isSupportShareParams&&(null!==(t=this.adapter.getShareParam(e))&&void 0!==t?t:"")}}class ft extends Le.Z{constructor(e,t,n){super(),this.gp=e,this.adapter=t,this.config=n,this.title=this.config.project.name,this.description=this.config.project.description,this.image=this.config.project.icon}get url(){return this.config.platformConfig.gameLink||this.gp.platform.getSDK().appUrl}get canAddShortcut(){return this.adapter.canAddShortcut}addShortcut(){return e=this,t=void 0,i=function*(){const e=yield this.adapter.addShortcut();return this._events.emit("addShortcut",e),e},new((n=void 0)||(n=Promise))((function(r,s){function a(e){try{c(i.next(e))}catch(e){s(e)}}function o(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((i=i.apply(e,t||[])).next())}));var e,t,n,i}}var gt,vt=a(584),mt=a(3080);function yt(e){return new Promise((function(t,n){e.oncomplete=e.onsuccess=function(){return t(e.result)},e.onabort=e.onerror=function(){return n(e.error)}}))}function wt(e,t){var n=indexedDB.open(e);n.onupgradeneeded=function(){return n.result.createObjectStore(t)};var i=yt(n);return function(e,n){return i.then((function(i){return n(i.transaction(t,e).objectStore(t))}))}}function bt(){return gt||(gt=wt("keyval-store","keyval")),gt}class Pt{constructor(e){this.projectId=e,this.isLocal=!0;try{this.store=wt(`gs-db-project-${this.projectId}`,"storage")}catch(e){Te.kg.error(e)}}set(e,t){return this.store?function(e,t){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:bt())("readwrite",(function(n){return n.put(t,e),yt(n.transaction)}))}(e,t,this.store).catch((()=>null)):Promise.resolve()}get(e){if(!this.store)return Promise.resolve(null);const t=(0,c._)({timeout:2e3});return function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:bt())("readonly",(function(t){return yt(t.get(e))}))}(e,this.store).then(t.done).catch((()=>t.done(null))),t.ready}}var _t,It=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function a(e){try{c(i.next(e))}catch(e){s(e)}}function o(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((i=i.apply(e,t||[])).next())}))},St=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)};class kt{constructor(e){this.projectId=e,_t.set(this,void 0),this.isLocal=!0;try{!function(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===i?r.call(e,n):r?r.value=n:t.set(e,n)}(this,_t,window.localStorage,"f")}catch(e){}}getKey(e){return`gs-db-project-${this.projectId}-${e}`}set(e,t){return It(this,void 0,void 0,(function*(){St(this,_t,"f").setItem(this.getKey(e),JSON.stringify(t))}))}get(e){return It(this,void 0,void 0,(function*(){try{return JSON.parse(St(this,_t,"f").getItem(this.getKey(e))||"null")}catch(e){}}))}}_t=new WeakMap;var Et,Ct=a(9631),$t=a(4687);class Mt{constructor(e){Et.set(this,void 0),function(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===i?r.call(e,n):r?r.value=n:t.set(e,n)}(this,Et,e,"f")}fetch({id:e,tag:t,urlFrom:n}){return function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)}(this,Et,"f").fetch("\nfragment project on Project {\n id\n url(from: $url)\n name(lang: $lang)\n description(lang: $lang)\n assets {\n icon {\n resources { src(w: 256, h: 256, crop: true) }\n }\n }\n}\nquery ($input: FetchPlayerGamesCollectionInput!, $lang: Lang, $url: String) {\n result: FetchPlayerGamesCollection(input: $input) {\n __typename\n ... on GamesCollection {\n id\n tag\n name(lang: $lang)\n description(lang: $lang)\n games { ...project }\n }\n ... on Problem { message }\n }\n}",{id:e,tag:t},{url:n})}}Et=new WeakMap;var Tt=a(1437),Rt=a(4835),jt=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function a(e){try{c(i.next(e))}catch(e){s(e)}}function o(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((i=i.apply(e,t||[])).next())}))};const xt=e=>{var t;return(null===(t=null==e?void 0:e.resources[0])||void 0===t?void 0:t.src)||""},Ot=e=>{var{assets:t}=e,n=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r0&&(this._events.emit("open"),yield this.gp.overlay.openGamesCollections(n).catch(Te.kg.error),this._events.emit("close"))}catch(e){this.gp.loader.dec(),Te.kg.error(e)}}else Te.kg.warn(`Not available on ${this.gp.platform.type}`)}))}fetch({id:e,tag:t}={tag:"ALL"}){return jt(this,void 0,void 0,(function*(){if(!this.isAvailable)return void Te.kg.warn(`Not available on ${this.gp.platform.type}`);const n=(0,c._)();this.gp.loader.inc();try{const i=yield this.gp._gamesCollectionsService.fetch({id:e,tag:t,urlFrom:this.gp.app.url});if(!i)throw new Error("can't fetch GamesCollections list");const r=Object.assign(Object.assign({},i),{games:i.games.filter((e=>e.url)).map(Ot)});r.games||Te.kg.warn("empty games collection"),n.done(r),this._events.emit("fetch",r)}catch(e){n.abort(e),this._events.emit("error:fetch")}finally{this.gp.loader.dec()}return n.ready}))}}var Ft,Dt,Nt,qt=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function a(e){try{c(i.next(e))}catch(e){s(e)}}function o(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((i=i.apply(e,t||[])).next())}))},Bt=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)};class Jt{constructor(e){this.queryBuilder=e,Ft.set(this,{}),Dt.set(this,(function(e={},t){return qt(this,void 0,void 0,(function*(){const n=(0,c._)();e.limit=e.limit||10;try{const i=yield t(e),r=i.length===e.limit;Bt(this,Ft,"f")[this.queryBuilder(e)]=Object.assign(Object.assign({},e),{canLoadMore:r}),n.done({items:i,canLoadMore:r})}catch(e){n.abort(e)}return n.ready}))})),Nt.set(this,(function(e={},t){return qt(this,void 0,void 0,(function*(){const n=this.queryBuilder(e),i=Bt(this,Ft,"f")[n];if(!i)return yield this.fetch(e,t);if(!i.canLoadMore)return{items:[],canLoadMore:!1};const r=(0,c._)(),s=(i.offset||0)+(i.limit||0);i.limit=e.limit||i.limit;const a=Object.assign({},Bt(this,Ft,"f")[n]),o=Object.assign(Object.assign({},i),{offset:s});Bt(this,Ft,"f")[n]=o;try{const e=yield t(o),i=e.length===o.limit;Bt(this,Ft,"f")[n].canLoadMore=i,r.done({items:e,canLoadMore:i})}catch(e){Bt(this,Ft,"f")[n]=a,r.abort(e)}return r.ready}))}))}fetch(e={},t){return Bt(this,Dt,"f").call(this,e,t)}fetchMore(e={},t){return qt(this,void 0,void 0,(function*(){return Bt(this,Nt,"f").call(this,e,t)}))}}Ft=new WeakMap,Dt=new WeakMap,Nt=new WeakMap;var Ut,Wt,zt,Gt,Kt,Zt,Vt,Yt,Ht,Xt,Qt=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function a(e){try{c(i.next(e))}catch(e){s(e)}}function o(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((i=i.apply(e,t||[])).next())}))},en=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)},tn=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);r["channels",(e.tags||[]).join(","),e.search||"",(e.ids||[]).join(","),e.onlyJoined||!1,e.onlyOwned||!1].join(":")))),Wt.set(this,new Jt((e=>`channelsMembers:${e.channelId}`))),zt.set(this,new Jt((e=>`invites:${e.channelId}`))),Gt.set(this,new Jt((e=>`channelsInvites:${e.channelId}`))),Kt.set(this,new Jt((e=>"sentInvites"))),Zt.set(this,new Jt((e=>`channelsJoinRequests:${e.channelId}`))),Vt.set(this,new Jt((e=>"sentJoinRequests"))),Yt.set(this,new Jt((e=>`channelsJoinRequests:${e.channelId}:${(e.tags||[]).join(",")}`))),Ht.set(this,new Jt((e=>`channelsJoinRequests:${e.playerId}:${(e.tags||[]).join(",")}`))),Xt.set(this,new Jt((e=>`channelsJoinRequests:${e.playerId}:${(e.tags||[]).join(",")}`)))}get canBeOnline(){return this._config.acl.canConnectOnline}get isMainChatEnabled(){return this._config.project.enableMainChat&&this.mainChatId>0}get mainChatId(){return this._config.project.mainChatId}_handleResponse(e,t){e.then((e=>this._events.emit(t,e))),e.catch((e=>{Te.kg.error(e),this._events.emit(`error:${t}`,e)}))}sendInvite(e){const t=this.gp._channelsService.invites.sendInvite(e);return this._handleResponse(t,"sendInvite"),t}cancelInvite(e){const t=this.gp._channelsService.invites.cancelInvite(e);return this._handleResponse(t,"cancelInvite"),t}acceptInvite(e){const t=this.gp._channelsService.invites.acceptInvite(e);return this._handleResponse(t,"acceptInvite"),t}rejectInvite(e){const t=this.gp._channelsService.invites.rejectInvite(e);return this._handleResponse(t,"rejectInvite"),t}join(e){const t=this.gp._channelsService.members.join(e);return this._handleResponse(t,"join"),t}leave(e){const t=this.gp._channelsService.members.leave(e);return this._handleResponse(t,"leave"),t}cancelJoin(e){const t=this.gp._channelsService.members.cancelJoin(e);return this._handleResponse(t,"cancelJoin"),t}acceptJoinRequest(e){const t=this.gp._channelsService.joinRequests.acceptJoinRequest(e);return this._handleResponse(t,"acceptJoinRequest"),t}rejectJoinRequest(e){const t=this.gp._channelsService.joinRequests.rejectJoinRequest(e);return this._handleResponse(t,"rejectJoinRequest"),t}fetchMessages(e){return Qt(this,void 0,void 0,(function*(){const t=en(this,Yt,"f").fetch(e,(e=>this.gp._channelsService.messages.fetchMessages(e).then((e=>e.items))));return this._handleResponse(t,"fetchMessages"),t}))}fetchMoreMessages(e){return Qt(this,void 0,void 0,(function*(){const t=en(this,Yt,"f").fetchMore(e,(e=>this.gp._channelsService.messages.fetchMessages(e).then((e=>e.items))));return this._handleResponse(t,"fetchMoreMessages"),t}))}fetchPersonalMessages(e){return Qt(this,void 0,void 0,(function*(){const t=en(this,Ht,"f").fetch(e,(e=>this.gp._channelsService.messages.fetchPersonalMessages(e).then((e=>e.items))));return this._handleResponse(t,"fetchPersonalMessages"),t}))}fetchMorePersonalMessages(e){return Qt(this,void 0,void 0,(function*(){const t=en(this,Ht,"f").fetchMore(e,(e=>this.gp._channelsService.messages.fetchPersonalMessages(e).then((e=>e.items))));return this._handleResponse(t,"fetchMorePersonalMessages"),t}))}fetchFeedMessages(e){return Qt(this,void 0,void 0,(function*(){const t=en(this,Xt,"f").fetch(e,(e=>this.gp._channelsService.messages.fetchFeedMessages(e).then((e=>e.items))));return this._handleResponse(t,"fetchFeedMessages"),t}))}fetchMoreFeedMessages(e){return Qt(this,void 0,void 0,(function*(){const t=en(this,Xt,"f").fetchMore(e,(e=>this.gp._channelsService.messages.fetchFeedMessages(e).then((e=>e.items))));return this._handleResponse(t,"fetchMoreFeedMessages"),t}))}sendMessage(e){const t=this.gp._channelsService.messages.sendMessage(e);return this._handleResponse(t,"sendMessage"),t}sendFeedMessage(e){const t=this.gp._channelsService.messages.sendFeedMessage(e);return this._handleResponse(t,"sendMessage"),t}sendPersonalMessage(e){const t=this.gp._channelsService.messages.sendPersonalMessage(e);return this._handleResponse(t,"sendMessage"),t}editMessage(e){const t=this.gp._channelsService.messages.editMessage(e);return this._handleResponse(t,"editMessage"),t}deleteMessage(e){const t=this.gp._channelsService.messages.deleteMessage(e);return this._handleResponse(t,"deleteMessage"),t}mute(e){var{seconds:t=0}=e;const n=tn(e,["seconds"]);if(t>0){const e=new Date;e.setSeconds(e.getSeconds()+t),n.unmuteAt=e.toISOString()}const i=this.gp._channelsService.members.mute(n);return this._handleResponse(i,"mute"),i}unmute(e){const t=this.gp._channelsService.members.unmute(e);return this._handleResponse(t,"unmute"),t}fetchMembers(e){return Qt(this,void 0,void 0,(function*(){const t=en(this,Wt,"f").fetch(e,(e=>this.gp._channelsService.members.fetchMembers(e).then((e=>e.players))));return this._handleResponse(t,"fetchMembers"),t}))}fetchMoreMembers(e){return Qt(this,void 0,void 0,(function*(){const t=en(this,Wt,"f").fetchMore(e,(e=>this.gp._channelsService.members.fetchMembers(e).then((e=>e.players))));return this._handleResponse(t,"fetchMoreMembers"),t}))}fetchInvites(e){return Qt(this,void 0,void 0,(function*(){const t=en(this,zt,"f").fetch(e,(e=>this.gp._channelsService.invites.fetchInvites(e).then((e=>e.items))));return this._handleResponse(t,"fetchInvites"),t}))}fetchMoreInvites(e){return Qt(this,void 0,void 0,(function*(){const t=en(this,zt,"f").fetchMore(e,(e=>this.gp._channelsService.invites.fetchInvites(e).then((e=>e.items))));return this._handleResponse(t,"fetchMoreInvites"),t}))}fetchChannelInvites(e){return Qt(this,void 0,void 0,(function*(){const t=en(this,Gt,"f").fetch(e,(e=>this.gp._channelsService.invites.fetchChannelInvites(e).then((e=>e.items))));return this._handleResponse(t,"fetchChannelInvites"),t}))}fetchMoreChannelInvites(e){return Qt(this,void 0,void 0,(function*(){const t=en(this,Gt,"f").fetchMore(e,(e=>this.gp._channelsService.invites.fetchChannelInvites(e).then((e=>e.items))));return this._handleResponse(t,"fetchMoreChannelInvites"),t}))}fetchSentInvites(e){return Qt(this,void 0,void 0,(function*(){const t=en(this,Kt,"f").fetch(e,(e=>this.gp._channelsService.invites.fetchSentInvites(e).then((e=>e.items))));return this._handleResponse(t,"fetchSentInvites"),t}))}fetchMoreSentInvites(e){return Qt(this,void 0,void 0,(function*(){const t=en(this,Kt,"f").fetchMore(e,(e=>this.gp._channelsService.invites.fetchSentInvites(e).then((e=>e.items))));return this._handleResponse(t,"fetchMoreSentInvites"),t}))}fetchJoinRequests(e){return Qt(this,void 0,void 0,(function*(){const t=en(this,Zt,"f").fetch(e,(e=>this.gp._channelsService.joinRequests.fetchJoinRequests(e).then((e=>e.items))));return this._handleResponse(t,"fetchJoinRequests"),t}))}fetchMoreJoinRequests(e){return Qt(this,void 0,void 0,(function*(){const t=en(this,Zt,"f").fetchMore(e,(e=>this.gp._channelsService.joinRequests.fetchJoinRequests(e).then((e=>e.items))));return this._handleResponse(t,"fetchMoreJoinRequests"),t}))}fetchSentJoinRequests(e){return Qt(this,void 0,void 0,(function*(){const t=en(this,Vt,"f").fetch(e,(e=>this.gp._channelsService.joinRequests.fetchSentJoinRequests(e).then((e=>e.items))));return this._handleResponse(t,"fetchSentJoinRequests"),t}))}fetchMoreSentJoinRequests(e){return Qt(this,void 0,void 0,(function*(){const t=en(this,Vt,"f").fetchMore(e,(e=>this.gp._channelsService.joinRequests.fetchSentJoinRequests(e).then((e=>e.items))));return this._handleResponse(t,"fetchMoreSentJoinRequests"),t}))}kick(e){const t=this.gp._channelsService.members.kick(e);return this._handleResponse(t,"kick"),t}openChat({id:e}={id:0}){return Qt(this,void 0,void 0,(function*(){let t=e;if(!e&&this._config.project.enableMainChat&&(t=this._config.project.mainChatId),t){this.gp.loader.inc();try{const e=this.gp.loadOverlay(),n=yield this.fetchChannel({channelId:t});if(!(n.ownerId===this.gp.player.id?n.ownerAcl:n.memberAcl).canViewMessages)return void Te.kg.error("access_denied");n.isJoined||(yield this.join({channelId:t}),n.membersCount+=1,n.membersOnlineCount+=1,n.isJoined=!0);const[i]=yield Promise.all([this.fetchMessages({channelId:t,limit:100}),e]);this.gp.loader.dec(),this._events.emit("openChat"),yield this.gp.overlay.openChat(n,i).catch(Te.kg.error),this._events.emit("closeChat")}catch(e){this._events.emit("error:openChat",e),this.gp.loader.dec(),Te.kg.error(e)}}else Te.kg.error("empty_channel_id")}))}fetchChannel(e){return Qt(this,void 0,void 0,(function*(){const t=this.gp._channelsService.channels.fetchChannel(e);return this._handleResponse(t,"fetchChannel"),t}))}fetchChannels(e){var{ids:t=[]}=e,n=tn(e,["ids"]);return Qt(this,void 0,void 0,(function*(){const e=n;(t=t.map((e=>Number(String(e).trim()))).filter(Boolean)).length>0&&(e.ids=t);const i=en(this,Ut,"f").fetch(n,(e=>this.gp._channelsService.channels.fetchChannels(e).then((e=>e.items))));return this._handleResponse(i,"fetchChannels"),i}))}fetchMoreChannels(e){var{ids:t=[]}=e,n=tn(e,["ids"]);return Qt(this,void 0,void 0,(function*(){const e=n;(t=null==t?void 0:t.map((e=>Number(String(e).trim()))).filter(Boolean)).length>0&&(e.ids=t);const i=en(this,Ut,"f").fetchMore(n,(e=>this.gp._channelsService.channels.fetchChannels(e).then((e=>e.items))));return this._handleResponse(i,"fetchMoreChannels"),i}))}createChannel(e){const t=this.gp._channelsService.channels.createChannel(e);return this._handleResponse(t,"createChannel"),t}updateChannel(e){const t=this.gp._channelsService.channels.updateChannel(e);return this._handleResponse(t,"updateChannel"),t}deleteChannel(e){const t=this.gp._channelsService.channels.deleteChannel(e);return this._handleResponse(t,"deleteChannel"),t}_connect(e){return Qt(this,void 0,void 0,(function*(){if(this._config.acl.canCollectStats||this.canBeOnline){const t=()=>this.gp._channelsService.ping(e);window.setInterval(t,3e4),t()}if(!this.canBeOnline)return;const t=new TextDecoder;(yield function(e,t,n,i){return r=this,s=void 0,c=function*(){const t=[{transport:"websocket",endpoint:"wss://ws.eponesh.com/connection/websocket?format=protobuf"},{transport:"http_stream",endpoint:"https://ws.eponesh.com/connection/http_stream?format=protobuf"},{transport:"sse",endpoint:"https://ws.eponesh.com/connection/sse?format=protobuf"}],{default:n}=yield a.e(72).then(a.bind(a,9965));return new n(t,{token:e,protocol:"protobuf",debug:!0})},new((o=void 0)||(o=Promise))((function(e,t){function n(e){try{a(c.next(e))}catch(e){t(e)}}function i(e){try{a(c.throw(e))}catch(e){t(e)}}function a(t){var r;t.done?e(t.value):(r=t.value,r instanceof o?r:new o((function(e){e(r)}))).then(n,i)}a((c=c.apply(r,s||[])).next())}));var r,s,o,c}(e)).on("connected",(e=>{console.info(`connected over ${e.transport}`)})).on("connecting",(function(e){console.info(`connecting: ${e.code}, ${e.reason}`)})).on("disconnected",(function(e){console.info(`disconnected: ${e.code}, ${e.reason}`)})).on("publication",(e=>{const n=JSON.parse(t.decode(e.data));(null==n?void 0:n.type)&&(this._events.emit("event",n),this._events.emit(n.type,n.data))})).connect()}))}}Ut=new WeakMap,Wt=new WeakMap,zt=new WeakMap,Gt=new WeakMap,Kt=new WeakMap,Zt=new WeakMap,Vt=new WeakMap,Yt=new WeakMap,Ht=new WeakMap,Xt=new WeakMap;var rn,sn=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function a(e){try{c(i.next(e))}catch(e){s(e)}}function o(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((i=i.apply(e,t||[])).next())}))},an=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)};const on=`\n ... on PlayersTop {\n leaderboard {\n id\n tag\n name(lang: $lang),\n description(lang: $lang),\n shareText(lang: $lang),\n isAuthorizedOnly\n }\n players\n fields { ${h.S} }\n }\n`,cn=`\n ... on PlayerTop {\n player\n fields { ${h.S} }\n }\n`,hn=`\n ... on PlayerRecord {\n record\n fields { ${h.S} }\n }\n`,ln=`query ($input: FetchTopInput!, $lang: Lang, $withMe: Boolean!) {\n result: FetchTop(input: $input) {${(0,l.Mn)(on)}}\n playerResult: FetchPlayerRating(input: $input) @include(if: $withMe) {${(0,l.Mn)(cn)}}\n}`,un=`query ($input: FetchTopInput!, $lang: Lang) {\n result: FetchPlayerRating(input: $input) {${(0,l.Mn)(cn)}}\n}`,dn=`query ($input: FetchPlayerTopScopedInput!, $lang: Lang, $withMe: Boolean!) {\n result: FetchPlayerTopScoped(input: $input) {${(0,l.Mn)(on)}}\n playerResult: FetchPlayerRatingScoped(input: $input) @include(if: $withMe) {${(0,l.Mn)(cn)}}\n}`,pn=`query ($input: FetchPlayerTopScopedInput!, $lang: Lang) {\n result: FetchPlayerRatingScoped(input: $input) {${(0,l.Mn)(cn)}}\n}`,fn=`mutation ($input: PlayerPublishRecordInput!, $lang: Lang) {\n result: PlayerPublishRecord(input: $input) {${(0,l.Mn)(hn)}}\n}`;class gn{constructor(e){rn.set(this,void 0),function(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===i?r.call(e,n):r?r.value=n:t.set(e,n)}(this,rn,e,"f")}getRating({orderBy:e=["score"],includeFields:t=[],order:n="DESC",limit:i=10,withMe:r="none"}){return sn(this,void 0,void 0,(function*(){return an(this,rn,"f").fetchMany(ln,{orderBy:e,order:n,limit:i,includeFields:t},{withMe:"none"!==r})}))}getPlayerRating({orderBy:e=["score"],includeFields:t=[],order:n="DESC",limit:i=10}){return sn(this,void 0,void 0,(function*(){return an(this,rn,"f").fetch(un,{orderBy:e,order:n,limit:i,includeFields:t})}))}getRatingVariant({id:e,tag:t,variant:n,includeFields:i=[],limit:r=10,withMe:s="none",order:a}){return sn(this,void 0,void 0,(function*(){return an(this,rn,"f").fetchMany(dn,{id:e,tag:t,variant:n,limit:r,includeFields:i,order:a},{withMe:"none"!==s})}))}getPlayerRatingVariant({id:e,tag:t,variant:n,includeFields:i=[],limit:r=10,order:s}){return sn(this,void 0,void 0,(function*(){return an(this,rn,"f").fetch(pn,{id:e,tag:t,variant:n,limit:r,includeFields:i,order:s})}))}publishRecord({id:e,tag:t,variant:n,record:i,override:r}){return sn(this,void 0,void 0,(function*(){return an(this,rn,"f").fetch(fn,{id:e,tag:t,variant:n,record:i,override:r})}))}}rn=new WeakMap;var vn;class mn{constructor(e){vn.set(this,void 0),function(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===i?r.call(e,n):r?r.value=n:t.set(e,n)}(this,vn,e,"f")}fetch({type:e,format:t}){return function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)}(this,vn,"f").fetch("query($input: FetchPlayerDocumentInput!, $lang: Lang, $format: DocumentFormat) {\n result: FetchPlayerDocument(input: $input) {\n __typename\n ... on Problem { message }\n ... on Document {\n type\n content(lang: $lang, format: $format)\n }\n }\n}",{type:e},{format:t})}}vn=new WeakMap;var yn=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function a(e){try{c(i.next(e))}catch(e){s(e)}}function o(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((i=i.apply(e,t||[])).next())}))};class wn extends Le.Z{constructor(e){super(),this.gp=e}open({type:e}){return yn(this,void 0,void 0,(function*(){this.gp.loader.inc();try{const[t]=yield Promise.all([this.fetch({type:e}),this.gp.loadOverlay(),(0,Tt.p)(Rt.Z.app.trophy).catch(Te.kg.error)]);this.gp.loader.dec(),t?(t.format="HTML",this._events.emit("open"),yield this.gp.overlay.openDocument(t).catch(Te.kg.error),this._events.emit("close")):Te.kg.error(new Error("document not found"))}catch(e){this.gp.loader.dec(),Te.kg.error(e)}}))}fetch({type:e,format:t="HTML"}){return yn(this,void 0,void 0,(function*(){const n=(0,c._)();this.gp.loader.inc();try{const i=yield this.gp._documentsService.fetch({type:e,format:t});if(!i)throw new Error("can't fetch privacy policy");i.format=t,n.done(i),this._events.emit("fetch",i)}catch(e){n.abort(e),this._events.emit("error:fetch",e)}finally{this.gp.loader.dec()}return n.ready}))}}var bn,Pn=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)};const _n={data:e=>String(e||""),stats:e=>Number(e)||0,flag:e=>Boolean(e)||!1,image:e=>String(e||""),doc_html:e=>String(e||""),file:e=>String(e||"")};class In extends Le.Z{constructor(e,t){super(),this.gp=e,this.state={},this.list=[],bn.set(this,(function(e){this.state={},this.list=e,e.forEach((e=>{var t;const n=(null===(t=_n[e.type])||void 0===t?void 0:t.call(_n,e.value))||e.value;this.state[e.key]=n})),this._events.emit("change")})),Pn(this,bn,"f").call(this,t)}get(e){return this.state[e]}has(e){return Boolean(this.get(e))}type(e){var t;return(null===(t=this.list.find((t=>t.key===e)))||void 0===t?void 0:t.type)||"data"}fetch(){return e=this,t=void 0,i=function*(){try{const e=(yield this.gp._projectService.fetchVariables()).items;return Pn(this,bn,"f").call(this,e),this._events.emit("fetch",e),e}catch(e){Te.kg.error(e),this._events.emit("error:fetch",e)}},new((n=void 0)||(n=Promise))((function(r,s){function a(e){try{c(i.next(e))}catch(e){s(e)}}function o(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((i=i.apply(e,t||[])).next())}));var e,t,n,i}}bn=new WeakMap,function(e,t,n,i){var r,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(a=(s<3?r(a):s>3?r(t,n,a):r(t,n))||a);s>3&&a&&Object.defineProperty(t,n,a)}([Be(300)],In.prototype,"fetch",null);var Sn,kn=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)};const En="\n id: _id\n playerId\n src\n tags\n width\n height\n",Cn=`\n ... on ImagesList {\n items { ${En} }\n }\n`,$n=`\n ... on Image { ${En} }\n`,Mn=`query($input: FetchPlayerImagesInput!) {\n result: FetchPlayerImages(input: $input) { ${(0,l.Mn)(Cn)} }\n}`,Tn=`mutation($input: UploadPlayerImageInput!) {\n result: UploadPlayerImage(input: $input) { ${(0,l.Mn)($n)} }\n}`;class Rn{constructor(e){Sn.set(this,void 0),function(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===i?r.call(e,n):r?r.value=n:t.set(e,n)}(this,Sn,e,"f")}fetch({playerId:e,limit:t,offset:n,tags:i}){return kn(this,Sn,"f").fetch(Mn,{playerId:e,limit:t,offset:n,tags:i})}upload({file:e,tags:t,accessPayload:n}){return kn(this,Sn,"f").fetch(Tn,{file:e,tags:t,accessPayload:n})}}Sn=new WeakMap;const jn=2048,xn=/cdn.(eponesh|gamepush).com\/static(\/([\d\-]+.)([\d\-]+.)|)\/(.*)/,On=/-(\d+)x(\d+)\.\w+$/;var An,Ln,Fn,Dn,Nn=function(e,t,n,i){var r,s=arguments.length,a=s<3?t:null===i?i=Object.getOwnPropertyDescriptor(t,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,i);else for(var o=e.length-1;o>=0;o--)(r=e[o])&&(a=(s<3?r(a):s>3?r(t,n,a):r(t,n))||a);return s>3&&a&&Object.defineProperty(t,n,a),a},qn=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function a(e){try{c(i.next(e))}catch(e){s(e)}}function o(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((i=i.apply(e,t||[])).next())}))},Bn=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)},Jn=function(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(i=Object.getOwnPropertySymbols(e);re.blob()));return t(Object.assign(Object.assign({},r),{file:new File([e],i,{type:e.type})}))}catch(e){throw Te.kg.error(e),e}}))})),Dn.set(this,(function(e,t){return qn(this,void 0,void 0,(function*(){const{content:n,filename:i}=e,r=Jn(e,["content","filename"]);if(!n.trim())throw Te.kg.error(Wn),new Error(Wn);if(!i)throw Te.kg.error(zn),new Error(zn);return t(Object.assign(Object.assign({},r),{file:new File([n],i)}))}))}));const{openFile:e}=function(){let e=null;const t=document.createElement("input");t.type="file",t.id="gp-file-input",t.style.cssText="position: fixed; top: -999px; left: -999px; z-index: 0;",t.onchange=e=>i(e.target),t.tabIndex=-1,document.body.appendChild(t);const n=()=>{setTimeout((()=>e.done(null)),1e3),document.body.removeEventListener("focus",n,!0)},i=t=>{const[i]=t.files?Array.from(t.files):[];document.body.removeEventListener("focus",n,!0),e.done(i)};return{input:t,openFile:(i="*")=>{return r=this,s=void 0,o=function*(){null==e||e.abort(),e=(0,c._)(),t.accept=i,t.click(),document.body.addEventListener("focus",n,!0);const r=yield e.ready;if(r)return r;throw new Error("cancelled")},new((a=void 0)||(a=Promise))((function(e,t){function n(e){try{c(o.next(e))}catch(e){t(e)}}function i(e){try{c(o.throw(e))}catch(e){t(e)}}function c(t){var r;t.done?e(t.value):(r=t.value,r instanceof a?r:new a((function(e){e(r)}))).then(n,i)}c((o=o.apply(r,s||[])).next())}));var r,s,a,o}}}();!function(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===i?r.call(e,n):r?r.value=n:t.set(e,n)}(this,An,e,"f")}chooseFile(e){return qn(this,void 0,void 0,(function*(){const t=(0,c._)();try{const n=yield Bn(this,An,"f").call(this,e),i=URL.createObjectURL(n);Bn(this,Ln,"f")[i]=n,t.done({file:n,tempUrl:i})}catch(e){t.abort(e)}return t.ready}))}upload(e,t){return qn(this,void 0,void 0,(function*(){const n=(0,c._)();try{e.file||(e.file=yield Bn(this,An,"f").call(this,e.accept));const i=yield t(e);n.done(i)}catch(e){n.abort(e)}return n.ready}))}uploadUrl(e,t){return qn(this,void 0,void 0,(function*(){return Bn(this,Fn,"f").call(this,e,t)}))}uploadContent(e,t){return qn(this,void 0,void 0,(function*(){return Bn(this,Dn,"f").call(this,e,t)}))}}function Kn(e){return`p${e.playerId||0}:${(e.tags||[]).join(",")}`}An=new WeakMap,Ln=new WeakMap,Fn=new WeakMap,Dn=new WeakMap,Nn([Be(300)],Gn.prototype,"uploadUrl",null),Nn([Be(300)],Gn.prototype,"uploadContent",null);var Zn,Vn=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function a(e){try{c(i.next(e))}catch(e){s(e)}}function o(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((i=i.apply(e,t||[])).next())}))},Yn=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)};const Hn="image/png,.jpeg,.jpg";class Xn extends Le.Z{constructor(e,t){super(),this.gp=e,this.acl=t,Zn.set(this,new Gn)}get canUpload(){return this.acl.canUploadImages}resize(e,t,n,i){return function(e,t,n,i){const r=xn.exec(e);if(!r)return e;const[s,a]=function(e){const t=On.exec(e);return t?[Number(t[1])||0,Number(t[2])||0]:[0,0]}(e);s&&t>s&&(t=s),a&&n>a&&(n=a),t>jn&&(t=jn),n>jn&&(n=jn);const[,o,,,,c]=r;return`https://cdn.${o}.com/static/${t||"-"}x${n||"-"}${i?"crop":""}/${c}`}(e,t,n,i)}chooseFile(){return Vn(this,void 0,void 0,(function*(){const e=Yn(this,Zn,"f").chooseFile(Hn);return e.then((e=>this._events.emit("choose",e))),e.catch((e=>this._events.emit("error:choose",e))),e}))}upload(e={}){const t=Yn(this,Zn,"f").upload(Object.assign(Object.assign({},e),{accept:Hn}),(e=>Vn(this,void 0,void 0,(function*(){const t=yield this.gp.platform.requestPermissions({allowUploadImages:!0});if(!t.success)throw new Error("permission_not_allowed_by_user");return this.gp._imagesService.upload(Object.assign(Object.assign({},e),{accessPayload:t.payload}))}))));return this.gp.loader.inc(),t.then((e=>this._events.emit("upload",e))),t.catch((e=>this._events.emit("error:upload",e))),t.finally((()=>this.gp.loader.dec())),t}uploadUrl(e={url:""}){return Vn(this,void 0,void 0,(function*(){return Yn(this,Zn,"f").uploadUrl(Object.assign(Object.assign({},e),{filename:"image"}),(e=>this.upload(e)))}))}fetch(e={}){return Vn(this,void 0,void 0,(function*(){const t=Yn(this,Zn,"f").fetch(e,(e=>this.gp._imagesService.fetch(e).then((e=>e.items))));return this.gp.loader.inc(),t.then((e=>this._events.emit("fetch",e))),t.catch((e=>this._events.emit("error:fetch",e))),t.finally((()=>this.gp.loader.dec())),t}))}fetchMore(e={}){return Vn(this,void 0,void 0,(function*(){const t=Yn(this,Zn,"f").fetchMore(e,(e=>this.gp._imagesService.fetch(e).then((e=>e.items))));return this.gp.loader.inc(),t.then((e=>this._events.emit("fetchMore",e))),t.catch((e=>this._events.emit("error:fetchMore",e))),t.finally((()=>this.gp.loader.dec())),t}))}}Zn=new WeakMap;var Qn,ei=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)};const ti="\n id: _id\n playerId\n src\n size\n name\n tags\n",ni=`\n ... on FilesList {\n items { ${ti} }\n }\n`,ii=`\n ... on File { ${ti} }\n`,ri=`query($input: FetchPlayerFilesInput!) {\n result: FetchPlayerFiles(input: $input) { ${(0,l.Mn)(ni)} }\n}`,si=`mutation($input: UploadPlayerFileInput!) {\n result: UploadPlayerFile(input: $input) { ${(0,l.Mn)(ii)} }\n}`;class ai{constructor(e){Qn.set(this,void 0),function(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===i?r.call(e,n):r?r.value=n:t.set(e,n)}(this,Qn,e,"f")}fetch({playerId:e,limit:t,offset:n,tags:i}){return ei(this,Qn,"f").fetch(ri,{playerId:e,limit:t,offset:n,tags:i})}upload({file:e,tags:t}){return ei(this,Qn,"f").fetch(si,{file:e,tags:t})}}Qn=new WeakMap;var oi,ci=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function a(e){try{c(i.next(e))}catch(e){s(e)}}function o(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((i=i.apply(e,t||[])).next())}))},hi=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)};class li extends Le.Z{constructor(e,t){super(),this.gp=e,this.acl=t,oi.set(this,new Gn)}get canUpload(){return this.acl.canUploadFiles}chooseFile(e){return ci(this,void 0,void 0,(function*(){const t=hi(this,oi,"f").chooseFile(e);return t.then((e=>this._events.emit("choose",e))),t.catch((e=>this._events.emit("error:choose",e))),t}))}upload(e){return ci(this,void 0,void 0,(function*(){const t=hi(this,oi,"f").upload(e,(e=>this.gp._filesService.upload(e)));return this.gp.loader.inc(),t.then((e=>this._events.emit("upload",e))),t.catch((e=>this._events.emit("error:upload",e))),t.finally((()=>this.gp.loader.dec())),t}))}uploadContent(e){return ci(this,void 0,void 0,(function*(){return hi(this,oi,"f").uploadContent(e,(e=>this.upload(e)))}))}uploadUrl(e){return ci(this,void 0,void 0,(function*(){return hi(this,oi,"f").uploadUrl(e,(e=>this.upload(e)))}))}loadContent(e){return ci(this,void 0,void 0,(function*(){const t=fetch(new URL(e).toString()).then((t=>{if(t.ok)return t.text();throw new Error(`Failed to load ${e}, errorCode: ${t.status}`)}));return this.gp.loader.inc(),t.then((e=>this._events.emit("loadContent",e))),t.catch((e=>this._events.emit("error:loadContent",e))),t.finally((()=>this.gp.loader.dec())),t}))}fetch(e={}){return ci(this,void 0,void 0,(function*(){const t=hi(this,oi,"f").fetch(e,(e=>this.gp._filesService.fetch(e).then((e=>e.items))));return this.gp.loader.inc(),t.then((e=>this._events.emit("fetch",e))),t.catch((e=>this._events.emit("error:fetch",e))),t.finally((()=>this.gp.loader.dec())),t}))}fetchMore(e={}){return ci(this,void 0,void 0,(function*(){const t=hi(this,oi,"f").fetchMore(e,(e=>this.gp._filesService.fetch(e).then((e=>e.items))));return this.gp.loader.inc(),t.then((e=>this._events.emit("fetchMore",e))),t.catch((e=>this._events.emit("error:fetchMore",e))),t.finally((()=>this.gp.loader.dec())),t}))}}oi=new WeakMap;var ui=a(1049);class di extends Le.Z{constructor(e){super(),this.gp=e}fetch({ids:e}){return t=this,n=void 0,r=function*(){if(0===e.map(Number).filter(Boolean).length)throw Te.kg.error("empty_ids"),new Error("empty_ids");const t=(0,c._)();return this.gp.loader.inc(),t.ready.then((e=>this._events.emit("fetch",e))).catch((e=>this._events.emit("fetch:error",e))),this.gp._playerService.fetchPlayers({ids:e}).then(t.done).catch(t.abort).finally((()=>this.gp.loader.dec())),t.ready},new((i=void 0)||(i=Promise))((function(e,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof i?n:new i((function(e){e(n)}))).then(a,o)}c((r=r.apply(t,n||[])).next())}));var t,n,i,r}}let pi;try{new EventTarget,pi=!0}catch(e){pi=!1}var fi=pi?EventTarget:class{constructor(){this.e={}}addEventListener(e,t,n=!1){this.t(e).push(t)}removeEventListener(e,t,n=!1){const i=this.t(e),r=i.indexOf(t);r>-1&&i.splice(r,1)}dispatchEvent(e){return e.target=this,Object.freeze(e),this.t(e.type).forEach((t=>t(e))),!0}t(e){return this.e[e]=this.e[e]||[]}},gi=pi?Event:class{constructor(e){this.type=e}};class vi extends gi{constructor(e,t){super(e),this.newState=t.newState,this.oldState=t.oldState,this.originalEvent=t.originalEvent}}const mi="active",yi="passive",wi="hidden",bi="frozen",Pi="terminated",_i="object"==typeof safari&&safari.pushNotification,Ii=["focus","blur","visibilitychange","freeze","resume","pageshow","onpageshow"in self?"pagehide":"unload"],Si=e=>(e.preventDefault(),e.returnValue="Are you sure?"),ki=[[mi,yi,wi,Pi],[mi,yi,wi,bi],[wi,yi,mi],[bi,wi],[bi,mi],[bi,yi]].map((e=>e.reduce(((e,t,n)=>(e[t]=n,e)),{}))),Ei=()=>document.visibilityState===wi?wi:document.hasFocus()?mi:yi,Ci=new class extends fi{constructor(){super();const e=Ei();this.s=e,this.i=[],this.a=this.a.bind(this),Ii.forEach((e=>addEventListener(e,this.a,!0))),_i&&addEventListener("beforeunload",(e=>{this.n=setTimeout((()=>{e.defaultPrevented||e.returnValue.length>0||this.r(e,wi)}),0)}))}get state(){return this.s}get pageWasDiscarded(){return document.wasDiscarded||!1}addUnsavedChanges(e){!this.i.indexOf(e)>-1&&(0===this.i.length&&addEventListener("beforeunload",Si),this.i.push(e))}removeUnsavedChanges(e){const t=this.i.indexOf(e);t>-1&&(this.i.splice(t,1),0===this.i.length&&removeEventListener("beforeunload",Si))}r(e,t){if(t!==this.s){const n=((e,t)=>{for(let n,i=0;n=ki[i];++i){const i=n[e],r=n[t];if(i>=0&&r>=0&&r>i)return Object.keys(n).slice(i,r+1)}return[]})(this.s,t);for(let t=0;t{t.childNodes.forEach((e=>{e.style.opacity="0"})),setTimeout((()=>{t.remove()}),1e3*e)}))}(n),function(e){const t=document.createElement("div");document.body.style.setProperty("background","transparent","important"),t.classList.add("gp-custom-background"),function(e,t){const n=document.createElement("div");n.style.cssText=`\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n bottom: 0;\n z-index: -1;\n background: transparent;\n backdrop-filter: blur(${e.blur}px);\n \n transition: ${e.fade}s;\n `,n.classList.add("gp-custom-background-blur"),t.append(n)}(e,t),function(e,t){const n=document.createElement("div");n.style.cssText=`\n background-image: url(${e.url});\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n bottom: 0;\n z-index: -2;\n opacity: 0;\n transition: ${e.fade}s;\n `,n.classList.add("gp-custom-background-img"),t.append(n),setTimeout((()=>{n.style.opacity="1"}),100)}(e,t),document.body.append(t)}({url:e,blur:t,fade:n})):Te.kg.warn("Empty background url")}var Ti,Ri,ji,xi=function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function a(e){try{c(i.next(e))}catch(e){s(e)}}function o(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((i=i.apply(e,t||[])).next())}))},Oi=function(e,t,n,i,r){if("m"===i)throw new TypeError("Private method is not writable");if("a"===i&&!r)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===i?r.call(e,n):r?r.value=n:t.set(e,n),n},Ai=function(e,t,n,i){if("a"===n&&!i)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?i:"a"===n?i.call(e):i?i.value:t.get(e)};class Li extends Le.Z{constructor(){super(),this.setBackground=Mi,this.isPaused=!1,this.isGameplay=!1,this.logger=Te.kg,Ti.set(this,void 0),Ri.set(this,void 0),ji.set(this,void 0);const e=(0,c._)();this.ready=e.ready;const r=new URL(document.currentScript.src).searchParams;this.projectId=Number(r.get("projectId"));const s=r.get("publicToken"),o=r.get("callback")||"onGPInit";this.ready.then((e=>{var t,n,i,r;null===(n=(t=window)[o])||void 0===n||n.call(t,e),"onGSInit"!==o&&(null===(r=(i=window).onGSInit)||void 0===r||r.call(i,e))})),this.fullscreen=new st,this.analytics=new at,this.leaderboard=new We(this),this.gamesCollections=new Lt(this),this.documents=new wn(this),this.players=new di(this),this.isMobile=t()({tablet:!0,featureDetect:!0});const l=navigator.language.slice(0,2).toLowerCase(),u=Object.values(Re.Uo).includes(l)?l:null,d=function(){const e=new URL(window.location.href),{searchParams:t,hostname:n}=e;return t.has("_platform")?t.get("_platform"):function(e){return!!e.hostname.includes(["games","s3","yandex","net"].join("."))||!!e.hash.includes("origin=https")&&(e.hash.includes("app-id=")||e.searchParams.has("app-id"))}(e)?i.z.YANDEX:n.includes("gamemonetize.co")?i.z.GAME_MONETIZE:n.includes("gamedistribution.co")?i.z.GAME_DISTRIBUTION:n.includes("crazygames.com")?i.z.CRAZY_GAMES:n.includes(".gamepix.com")?i.z.GAMEPIX:n.includes("poki.com")||t.has("pokiDebug")||n.includes("poki-gdn.com")?i.z.POKI:t.has("api_id")&&t.has("viewer_id")&&t.has("auth_key")||t.get("vk_user_id")&&t.get("sign")&&t.get("vk_app_id")?i.z.VK:t.has("auth_sig")&&t.has("session_key")?i.z.OK:n.includes("static.developer.sberdevices.ru")||Array.isArray(window.appInitialData)&&window.appInitialData.some((e=>"app_context"===(null==e?void 0:e.type)))?i.z.SMARTMARKET:function(e){const{searchParams:t}=e;if(!(t.get("lang")||"").includes("_"))return!1;if(!t.has("currency"))return!1;if(t.has("uid")&&t.has("sign")&&t.has("appid"))return!0;const n=t.get("status");return Number(t.get("appid"))>0||n.length>0&&!Number.isNaN(t.get("status"))}(e)?i.z.VK_PLAY:i.z.NONE}();Oi(this,Ri,new g("patch/json/eponesh.json?https://api.eponesh.com/gs/api",this.projectId,s,u||Re.Uo.EN,d),"f");const p=e=>{Ai(this,Ri,"f").setPlayerData(e)};var f,v;this._playerService=new h.Z(Ai(this,Ri,"f")),this._channelsService=new Se(Ai(this,Ri,"f")),this._leaderboardsService=new gn(Ai(this,Ri,"f")),this._projectService=new Re.ZP(Ai(this,Ri,"f")),this._achievementsService=new vt.ZP(Ai(this,Ri,"f")),this._paymentsService=new Ct.ZP(Ai(this,Ri,"f")),this._gamesCollectionsService=new Mt(Ai(this,Ri,"f")),this._documentsService=new mn(Ai(this,Ri,"f")),this._imagesService=new Rn(Ai(this,Ri,"f")),this._filesService=new ai(Ai(this,Ri,"f")),function({platformType:e,tools:t}){return function(e,t){switch(e){case i.z.YANDEX:return a.e(755).then(a.bind(a,2855)).then((e=>e.default(t)));case i.z.VK:return a.e(911).then(a.bind(a,1440)).then((e=>e.default(t)));case i.z.OK:return a.e(614).then(a.bind(a,1069)).then((e=>e.default(t)));case i.z.GAME_MONETIZE:return a.e(369).then(a.bind(a,3978)).then((e=>e.default(t)));case i.z.GAMEPIX:return a.e(477).then(a.bind(a,5940)).then((e=>e.default(t)));case i.z.POKI:return a.e(477).then(a.bind(a,449)).then((e=>e.default(t)));case i.z.GAME_DISTRIBUTION:return a.e(860).then(a.bind(a,3102)).then((e=>e.default(t)));case i.z.CRAZY_GAMES:return a.e(433).then(a.bind(a,1229)).then((e=>e.default(t)));case i.z.SMARTMARKET:return a.e(552).then(a.bind(a,5122)).then((e=>e.default(t)));case i.z.VK_PLAY:return a.e(70).then(a.bind(a,558)).then((e=>e.default(t)));case i.z.NONE:default:return a.e(477).then(a.bind(a,254)).then((e=>e.default(t)))}}(e,t)}({platformType:d,tools:{gp:this,setupStorage:e=>{const t=[new Pt(this.projectId),...e];try{null!==window.localStorage&&t.push(new kt(this.projectId))}catch(e){}return this._storage=new Ae(t),this._storage.ready},fetchConfig:e=>xi(this,void 0,void 0,(function*(){yield this._storage.ready;const[t,n]=yield Promise.all([this._storage.loadLanguage(),this._storage.loadConfig(),this._storage.loadAdsInfo()]);return t||this._storage.saveLanguage(null),this.language=t||e||u||Re.Uo.EN,Ai(this,Ri,"f").setLang(this.language),this._projectService.fetchConfig().then((e=>e||n)).catch((e=>(console.error(e),n)))}))}}).then((t=>xi(this,void 0,void 0,(function*(){const{adsAdapter:r,playerAdapter:s,platformAdapter:o,socialsAdapter:c,paymentsAdapter:h,projectConfig:l,appAdapter:u}=t;Oi(this,Ti,l,"f"),d!==i.z.GAMEPIX&&(l.config.ymCounterId&&this.analytics.addCounter(new ht({counterId:l.config.ymCounterId})),l.config.gtagCounterId&&this.analytics.addCounter(new ut({counterId:l.config.gtagCounterId}))),this.avatarGenerator=l.config.avatarGenerator,this.avatarGeneratorTemplate=l.config.avatarGeneratorTemplate,this.loader=function(e){let t=0;const n=document.createElement("div");function i(){n.style.display=t>0?"flex":"none"}return n.classList.add("gs-global-loader"),n.innerHTML=`
\n
\n
\n
`,document.body.appendChild(n),{inc(){t+=1,i()},dec(){t=t<=0?0:t-1,i()}}}(l.config.showLoader),this._storage.saveConfig(l),this.platform=new ke(l.platformConfig,o),this.ads=new n.Z(this,r,l),this.app=new ft(this,u,l),this.socials=new pt(c,this),this.channels=new nn(this,l),this.player=new rt({},l.playerFields,s,this,p),this.payments=new $t.Z(this,h),this.variables=new In(this,l.gameVariables||[]),this.images=new Xn(this,l.acl),this.files=new li(this,l.acl),this.achievements=new mt.Z(this,l.project.achievements),Oi(this,ji,Date.parse(l.serverTime),"f"),setInterval((()=>Oi(this,ji,Ai(this,ji,"f")+1e3,"f")),1e3),this.isDev?(this.devtools=yield Promise.all([a.e(690),a.e(9),a.e(863)]).then(a.bind(a,5169)).then((e=>e.default(this,l))),l.config.showReqCounter&&Ai(this,Ri,"f").addCounterListener((e=>{this.devtools.showCounter(e)}))):Te.kg.stopCollect(),this.init(e)})))).catch(Te.kg.error),f=()=>this.pause(),v=()=>{this.ads&&(this.ads.isFullscreenPlaying||this.ads.isPreloaderPlaying||this.ads.isRewardedPlaying||this.resume())},Ci.addEventListener("statechange",(e=>{$i.includes(e.newState)?f():v()}))}get nativeSDK(){return this.platform.getNativeSDK()}get serverTime(){return new Date(Ai(this,ji,"f")).toISOString()}get isDev(){var e;return(null===(e=Ai(this,Ti,"f"))||void 0===e?void 0:e.isDev)||!1}get isAllowedOrigin(){var e;return(null===(e=Ai(this,Ti,"f"))||void 0===e?void 0:e.isAllowedOrigin)||!1}get locale(){return Re.h$[this.language]||"en-US"}init(e){return xi(this,void 0,void 0,(function*(){this.ads.on("fullscreen:start",(()=>this.pause())),this.ads.on("fullscreen:close",(()=>this.resume())),this.ads.on("preloader:start",(()=>this.pause())),this.ads.on("preloader:close",(()=>this.resume())),this.ads.on("rewarded:start",(()=>this.pause())),this.ads.on("rewarded:close",(()=>this.resume())),yield Promise.all([this.ads.checkAdblock()]).catch(Te.kg.warn),e.done(this)}))}loadOverlay(){return xi(this,void 0,void 0,(function*(){this.overlay||(this.overlay=yield Promise.all([a.e(690),a.e(9),a.e(573),a.e(460)]).then(a.bind(a,5494)).then((e=>e.default(this))),this._events.emit("overlay:ready"))}))}changeLanguage(e){return xi(this,void 0,void 0,(function*(){if(this.language!==e)try{if(!Object.values(Re.Uo).includes(e))throw new Error(`Language ${e} not supported`);this.language=e,this._storage.saveLanguage(e),this.overlay&&(yield this.overlay.changeLanguage(e)),Ai(this,Ri,"f").setLang(this.language),this._events.emit("change:language",this.language)}catch(e){Te.kg.error(e)}}))}changeAvatarGenerator(){return xi(this,void 0,void 0,(function*(){Te.kg.warn("[DEPRECATED]: changeAvatarGenerator")}))}generateAvatar(e,t){return(0,ui.Z)(this.avatarGeneratorTemplate,e,t)}pause(){this.isPaused||(this.isPaused=!0,this._events.emit("pause"))}resume(){this.isPaused&&(this.isPaused=!1,this._events.emit("resume"))}gameStart(){return xi(this,void 0,void 0,(function*(){yield this.ready,this._events.emit("gameStart")}))}gameplayStart(){return xi(this,void 0,void 0,(function*(){yield this.ready,this.isGameplay||(this.isGameplay=!0,this._events.emit("gameplayStart"))}))}gameplayStop(){return xi(this,void 0,void 0,(function*(){yield this.ready,this.isGameplay&&(this.isGameplay=!1,this._events.emit("gameplayStop"))}))}}Ti=new WeakMap,Ri=new WeakMap,ji=new WeakMap,new Li})()})(); \ No newline at end of file diff --git a/vex8/patch/js/eponesh-gamepush.js b/vex8/patch/js/eponesh-gamepush.js new file mode 100644 index 000000000..a35af19b1 --- /dev/null +++ b/vex8/patch/js/eponesh-gamepush.js @@ -0,0 +1,25 @@ +/*! For license information please see gamepush.js.LICENSE.txt */ +(()=>{ + window.fetch = new Proxy(window.fetch, { + apply: function (target, that, args) { + target= function () { + // console.log("--fx--fetch--target--args--", arguments); + return new Promise((resolve, reject) => { + // resolve("OK"); + reject("403 forbiden"); + }); + } + // console.log("--fx--fetch--target--", target); + // console.log("--fx--fetch--that--", that); + // console.log("--fx--fetch--args--", args); + // args holds argument of fetch function + // Do whatever you want with fetch request + let temp = target.apply(that, args); + temp.then((res) => { + // After completion of request + }); + return temp; + }, + }); + + var e,t,n,r,i={2616:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var s=0;s{!function(t){e.exports=t;var n={on:function(e,t){return s(this,e).push(t),this},once:function(e,t){var n=this;return r.originalListener=t,s(n,e).push(r),n;function r(){i.call(n,e,r),t.apply(this,arguments)}},off:i,emit:function(e,t){var n=this,r=s(n,e,!0);if(!r)return!1;var i=arguments.length;if(1===i)r.forEach(o);else if(2===i)r.forEach(c);else{var a=Array.prototype.slice.call(arguments,1);r.forEach(h)}return!!r.length;function o(e){e.call(n)}function c(e){e.call(n,t)}function h(e){e.apply(n,a)}}};function r(e){for(var t in n)e[t]=n[t];return e}function i(e,t){var n,r=this;if(arguments.length){if(t){if(n=s(r,e,!0)){if(!(n=n.filter(a)).length)return i.call(r,e);r.listeners[e]=n}}else if((n=r.listeners)&&(delete n[e],!Object.keys(n).length))return i.call(r)}else delete r.listeners;return r;function a(e){return e!==t&&e.originalListener!==t}}function s(e,t,n){if(!n||e.listeners){var r=e.listeners||(e.listeners={});return r[t]||(r[t]=[])}}r(t.prototype),t.mixin=r}((function e(){if(!(this instanceof e))return new e}))},4943:e=>{"use strict";e.exports=r,e.exports.isMobile=r,e.exports.default=r;var t=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series[46]0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,n=/android|ipad|playbook|silk/i;function r(e){e||(e={});var r=e.ua;if(r||"undefined"==typeof navigator||(r=navigator.userAgent),r&&r.headers&&"string"==typeof r.headers["user-agent"]&&(r=r.headers["user-agent"]),"string"!=typeof r)return!1;var i=t.test(r)||!!e.tablet&&n.test(r);return!i&&e.tablet&&e.featureDetect&&navigator&&navigator.maxTouchPoints>1&&-1!==r.indexOf("Macintosh")&&-1!==r.indexOf("Safari")&&(i=!0),i}},2096:()=>{"function"!=typeof Promise.prototype.finally&&(Promise.prototype.finally=function(e){var t=this;return this.then((function(n){return t.constructor.resolve(e()).then((function(){return n}))})).catch((function(n){return t.constructor.resolve(e()).then((function(){throw n}))}))})},8205:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(2616),i=n.n(r)()((function(e){return e[1]}));i.push([e.id,".gs-global-loader{position:fixed;z-index:99999;top:8px;right:8px;width:48px;height:48px}@media only screen and (min-width: 1024px){.gs-global-loader{top:inherit;right:16px;bottom:16px}}.gs-loader{position:relative;width:40px;height:40px;border-radius:50%;display:flex}.gs-loader__outter{box-sizing:border-box;position:absolute;border:4px solid #f50057;border-left-color:transparent;width:100%;height:100%;border-radius:50%;-webkit-animation:loader-outter 1s cubic-bezier(0.42, 0.61, 0.58, 0.41) infinite;animation:loader-outter 1s cubic-bezier(0.42, 0.61, 0.58, 0.41) infinite}.gs-loader__inner{box-sizing:border-box;position:absolute;border:4px solid #f50057;border-radius:50%;width:20px;height:20px;left:calc(50% - 10px);top:calc(50% - 10px);border-top-color:transparent;-webkit-animation:loader-inner 1s cubic-bezier(0.42, 0.61, 0.58, 0.41) infinite;animation:loader-inner 1s cubic-bezier(0.42, 0.61, 0.58, 0.41) infinite}@keyframes loader-outter{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg);transform:rotate(360deg)}}@keyframes loader-inner{0%{-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-webkit-transform:rotate(-360deg);transform:rotate(-360deg)}}.gs-loader-hidden{display:none}",""]);const s=i},3379:(e,t,n)=>{"use strict";var r,i=function(){var e={};return function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}e[t]=n}return e[t]}}(),s=[];function a(e){for(var t=-1,n=0;n{"use strict";n.d(t,{Z:()=>_,z:()=>S});var r,i,s,a,o,c,h,l,u=n(6558),d=n(1437),f=n(4835),p=n(8293),g=n(6388),v=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}))},m=function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n},y=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},w=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i0?(this._events.emit("open"),yield this.gp.overlay.openAchievements(t,{scrollTo:e}).catch(u.kg.error),this._events.emit("close")):u.kg.error(new Error("Empty achievements list"))}catch(e){this.gp.loader.dec(),u.kg.error(e)}}))}fetch(){return v(this,void 0,void 0,(function*(){const e=(0,p._)();this.gp.loader.inc();try{const t=yield this.gp._achievementsService.fetch();if(!t)throw new Error("can't fetch achievements list");e.done(t),this._events.emit("fetch",t)}catch(t){e.abort(t),this._events.emit("error:fetch")}finally{this.gp.loader.dec()}return e.ready}))}unlock({id:e,tag:t}){return v(this,void 0,void 0,(function*(){const n=e||t,a=(0,p._)(),c=e=>{a.done({success:!1,achievement:null,error:e}),this._events.emit("error:unlock",e)};if(this.has(t||e))return c(b),a.ready;if(y(this,s,"f").includes(n))return c(P),a.ready;let h;y(this,o,"f")[n]=a,this.gp.loader.inc(),y(this,i,"f").enableUnlockToast&&(h=this.gp.loadOverlay());try{const n=yield this.gp._achievementsService.unlock({id:e,tag:t}),{achievement:s}=n,o=w(n,["achievement"]),c=Object.assign(Object.assign({},s),o);y(this,r,"m",l).call(this,c),this._events.emit("unlock",c),y(this,i,"f").enableUnlockToast&&Promise.all([h,(0,d.p)(S(c)).catch(u.kg.error)]).then((()=>{this.gp.overlay.unlockAchievement(c)})),a.done({achievement:c,success:!0,error:""})}catch(e){"achievement_not_found"===e&&y(this,s,"f").push(n),"string"==typeof e?(u.kg.error(e),c(e)):(a.abort(e),this._events.emit("error:unlock",e))}finally{this.gp.loader.dec()}return a.ready.finally((()=>{delete y(this,o,"f")[n]})),a.ready}))}has(e){return y(this,a,"f").some((t=>(t.tag===e||t.id===e)&&t.unlocked))}setProgress(e){var t;return v(this,void 0,void 0,(function*(){const n=e.id||e.tag;if(n in y(this,c,"f"))return y(this,c,"f")[n]=e.progress,null===(t=y(this,h,"f")[n])||void 0===t?void 0:t.ready;const o=(0,p._)(),f=e=>{o.done({success:!1,achievement:null,error:e}),this._events.emit("error:progress",e)};return y(this,c,"f")[n]=e.progress,y(this,h,"f")[n]=o,setTimeout((()=>v(this,void 0,void 0,(function*(){const t=y(this,c,"f")[n];if(this.has(n))return void f(b);if(y(this,s,"f").includes(n))return void f(P);const h=y(this,a,"f").find((t=>t.tag===e.tag||t.id===e.id)),p=(null==h?void 0:h.progress)||0;if(p===t)return void f("progress_the_same");let g;this.gp.loader.inc(),y(this,i,"f").enableUnlockToast&&(g=this.gp.loadOverlay()),yield this.gp._achievementsService.setProgress(Object.assign(Object.assign({},e),{progress:t})).then((e=>{var{achievement:t}=e,n=w(e,["achievement"]);const s=Object.assign(Object.assign({},t),n),a=Math.floor(p/s.progressStep),c=Math.floor(s.progress/s.progressStep);y(this,r,"m",l).call(this,s),y(this,i,"f").enableUnlockToast&&(s.unlocked||a{this.gp.overlay.unlockAchievement(s)})),s.unlocked&&this._events.emit("unlock",s),this._events.emit("progress",s),o.done({achievement:s,success:!0,error:""})})).catch((e=>{this._events.emit("error:progress",e),"achievement_not_found"===e&&y(this,s,"f").push(n),"string"==typeof e?(u.kg.error(e),f(e)):(o.abort(e),this._events.emit("error:progress",e))})),this.gp.loader.dec()}))),1e3),o.ready.finally((()=>{delete y(this,h,"f")[n],delete y(this,c,"f")[n]})),o.ready}))}getProgress(e){const t=y(this,a,"f").find((t=>t.tag===e||t.id===e));return t?t.progress:0}_setAchievementsList(e){m(this,a,[...e],"f")}}function S(e){let t="";return t=window.devicePixelRatio>1?e.unlocked?e.icon||e.lockedIcon:e.lockedIcon||e.icon:e.unlocked?e.iconSmall||e.lockedIconSmall:e.lockedIconSmall||e.iconSmall,t||f.Z.cdn.trophy}i=new WeakMap,s=new WeakMap,a=new WeakMap,o=new WeakMap,c=new WeakMap,h=new WeakMap,r=new WeakSet,l=function(e){y(this,a,"f").some((t=>t.id===e.id))?m(this,a,y(this,a,"f").map((t=>t.id===e.id?e:t)),"f"):y(this,a,"f").push(e)}},4687:(e,t,n)=>{"use strict";n.d(t,{Z:()=>d});var r,i,s,a=n(6558),o=n(8293),c=n(6388),h=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}))},l=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},u=function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n};class d extends c.Z{constructor(e,t){super(),this.gp=e,this.adapter=t,r.set(this,[]),i.set(this,{}),s.set(this,{})}get isAvailable(){return this.adapter.isSupportsPayments}get isSubscriptionsAvailable(){return this.adapter.isSupportsSubscriptions}get purchases(){return[...l(this,r,"f")]}_sync(){return h(this,void 0,void 0,(function*(){const{purchases:e,payload:t}=yield this.adapter.fetchPurchases();if(0===e.length)return;const{purchases:n}=yield this.gp._paymentsService.sync({purchases:e,payload:t});this._setPurchasedList(n),this.adapter.consumeAllExpired(e,n)}))}fetchProducts(){return h(this,void 0,void 0,(function*(){const e=(0,o._)();this.gp.loader.inc();try{const t=yield this.gp._paymentsService.fetch();if(!t)throw new Error("can't fetch products list");const{products:n,playerPurchases:r}=t,i=yield this.adapter.mapProducts(this.gp,{products:n,playerPurchases:r});e.done(i),this._events.emit("fetchProducts",i)}catch(t){e.abort(t),this._events.emit("error:fetchProducts",t)}finally{this.gp.loader.dec()}return e.ready}))}purchase({id:e,tag:t}){return h(this,void 0,void 0,(function*(){const n=e||t;if(l(this,i,"f")[n])throw new Error("payment_in_progress");const s=(0,o._)();l(this,i,"f")[n]=s,this.gp.loader.inc();try{const{product:n}=yield this.gp._paymentsService.findProduct({id:e,tag:t});if(!n)throw new Error(`Not found product with ID or TAG "${e||t}"`);let i,a,o=!0,c="";this.gp.player.isLoggedInByPlatform||(yield this.gp.player.sync({silent:!1}));try{a=yield this.adapter.purchase(n)}catch(e){throw e}if(this.adapter.isServerValidation)i={productId:n.id,tag:n.tag,payload:a,createdAt:this.gp.serverTime,expiredAt:"",gift:!1,subscribed:!1};else try{i=(yield this.gp._paymentsService.purchase({id:e,tag:t,payload:a})).purchase}catch(e){o=!1,c=e.message}if(!o)throw c;l(this,r,"f").push({id:n.id,productId:n.id,tag:n.tag,createdAt:i.createdAt,expiredAt:i.expiredAt,payload:i.payload,gift:i.gift,subscribed:i.subscribed}),this._events.emit("purchase",{product:n,purchase:i}),s.done({success:o,product:n,purchase:i,error:c})}catch(e){s.abort(e),this._events.emit("error:purchase",e)}finally{this.gp.loader.dec()}return s.ready.finally((()=>{delete l(this,i,"f")[n]})),s.ready}))}consume({id:e,tag:t}){return h(this,void 0,void 0,(function*(){const n=e||t;l(this,s,"f")[n]&&(yield l(this,s,"f")[n]);const i=(0,o._)();l(this,s,"f")[n]=i,this.gp.loader.inc();try{const{product:n,purchase:s}=yield this.gp._paymentsService.consume({id:e,tag:t});s.gift||(yield this.adapter.consume(s));const a=l(this,r,"f").findIndex((e=>e.productId===n.id));-1!==a&&l(this,r,"f").splice(a,1),this._events.emit("consume",{product:n,purchase:s}),i.done({product:n,purchase:s,success:!0,error:""})}catch(e){i.abort(e),this._events.emit("error:consume",e)}finally{this.gp.loader.dec()}return i.ready.finally((()=>{delete l(this,s,"f")[n]})),i.ready}))}subscribe({id:e,tag:t}){return h(this,void 0,void 0,(function*(){const n=e||t;if(l(this,i,"f")[n])return l(this,i,"f")[n];const s=(0,o._)();l(this,i,"f")[n]=s,this.gp.loader.inc();try{const{product:i}=yield this.gp._paymentsService.findProduct({id:e,tag:t});if(!i)throw new Error(`Not found product with ID or TAG "${e||t}"`);if(!i.isSubscription)throw new Error(`Not subscription "${e||t}", please enable subscription on the product`);const o=this.getPurchase(n);let c,h,d=!0,p="";this.gp.player.isLoggedInByPlatform||(yield this.gp.player.sync({silent:!1}));try{h=yield this.adapter.subscribe(i,o)}catch(e){throw e}if(this.adapter.isServerValidation)c={payload:h,tag:i.tag,productId:i.id,createdAt:this.gp.serverTime,expiredAt:(null==o?void 0:o.expiredAt)||f(new Date(this.gp.serverTime),i.period).toISOString(),gift:!1,subscribed:!0};else try{c=(yield this.gp._paymentsService.purchase({id:e,tag:t,payload:h})).purchase}catch(e){d=!1,p=e.message}d?(o&&u(this,r,l(this,r,"f").filter((e=>e.productId!==o.productId)),"f"),l(this,r,"f").push({id:i.id,tag:i.tag,productId:i.id,createdAt:c.createdAt,expiredAt:c.expiredAt,payload:c.payload,gift:c.gift,subscribed:!0}),this._events.emit("subscribe",{product:i,purchase:c})):a.kg.error(p),s.done({success:d,product:i,purchase:c,error:p})}catch(e){s.abort(e),this._events.emit("error:subscribe",e)}finally{this.gp.loader.dec()}return s.ready.finally((()=>{delete l(this,i,"f")[n]})),s.ready}))}unsubscribe({id:e,tag:t}){return h(this,void 0,void 0,(function*(){const n=e||t;if(l(this,i,"f")[n])return l(this,i,"f")[n];const s=(0,o._)();l(this,i,"f")[n]=s,this.gp.loader.inc();try{const{product:i}=yield this.gp._paymentsService.findProduct({id:e,tag:t});if(!i)throw new Error(`Not found product with ID or TAG "${e||t}"`);if(!i.isSubscription)throw new Error(`Not subscription "${e||t}", please enable subscription on the product`);const o=this.getPurchase(n);if(!o||!o.subscribed)throw new Error("already_unsubscribed");let c=!0,h=Object.assign({},o),d="";try{yield this.adapter.unsubscribe(i,o)}catch(e){throw a.kg.error(d),e}h.subscribed=!1,u(this,r,l(this,r,"f").map((e=>e.productId!==o.productId?e:Object.assign(Object.assign({},e),{subscribed:!1}))),"f"),this._events.emit("unsubscribe",{product:i,purchase:h}),s.done({success:c,product:i,purchase:h,error:d})}catch(e){s.abort(e),this._events.emit("error:unsubscribe",e)}finally{this.gp.loader.dec()}return s.ready.finally((()=>{delete l(this,i,"f")[n]})),s.ready}))}has(e){return l(this,r,"f").some((t=>t.tag===e||t.id===e))}getPurchase(e){return l(this,r,"f").find((t=>t.tag===e||t.id===e))||null}_setPurchasedList(e){u(this,r,e.map((e=>Object.assign(Object.assign({},e),{id:e.productId}))),"f")}}function f(e,t){const n=new Date(e);return n.setDate(n.getDate()+t),n}r=new WeakMap,i=new WeakMap,s=new WeakMap},4293:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var r=n(8293);const i=["adsbox","advertisement","pub_300x250","pub_300x250m","pub_728x90","text-ad","textAd","text_ad","text_ads","text-ads","text-ad-links"];var s=n(9233),a=n(6388),o=n(6558),c=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}))};class h extends a.Z{constructor(e,t,n){super(),this.gp=e,this.adapter=t,this.config=n,this.isAdblockEnabled=!1,this.fullscreenDisplayIntervalId=0,this.stickyRefreshIntervalId=0,this.isStickyPlaying=!1,this.isRewardedPlaying=!1,this.isFullscreenPlaying=!1,this.isPreloaderPlaying=!1,this.adsInfo=e._storage.temp.adsInfo;const r=this.config.platformConfig.banners;this.stickyBanner=r.find((e=>e.type===s.$.STICKY)),this.fullscreenBanner=r.find((e=>e.type===s.$.FULLSCREEN)),this.rewardedVideo=r.find((e=>e.type===s.$.REWARDED)),this.preloaderBanner=r.find((e=>e.type===s.$.PRELOADER)),this.banners=r.reduce(((e,t)=>(e[t.type]=t,e)),{}),this._checkLimitsExpired(!0),setInterval((()=>this._checkLimitsExpired(!1)),1e3)}get isStickyAvailable(){var e;return this.adapter.isStickyAvailable&&(null===(e=this.stickyBanner)||void 0===e?void 0:e.enabled)&&!this.isBannerLimitReached(s.$.STICKY)}get isFullscreenAvailable(){var e;return this.adapter.isFullscreenAvailable&&(null===(e=this.fullscreenBanner)||void 0===e?void 0:e.enabled)&&!this.fullscreenDisplayIntervalId&&!this.isBannerLimitReached(s.$.FULLSCREEN)}get isRewardedAvailable(){var e;return this.adapter.isRewardedAvailable&&(null===(e=this.rewardedVideo)||void 0===e?void 0:e.enabled)&&!this.isBannerLimitReached(s.$.REWARDED)}get isPreloaderAvailable(){var e;return this.adapter.isPreloaderAvailable&&(null===(e=this.preloaderBanner)||void 0===e?void 0:e.enabled)&&!this.isBannerLimitReached(s.$.PRELOADER)}checkAdblock(){return c(this,void 0,void 0,(function*(){return this.isAdblockEnabled=yield function(){const e=(0,r._)(),t=document.createElement("div");return t.innerHTML=" ",t.className=i.join(" "),t.id="text_ad",t.style.padding="1px 0 0 0",document.body.appendChild(t),setTimeout((()=>{e.done(0===t.offsetHeight),document.body.removeChild(t)}),10),e.ready}(),this.isAdblockEnabled}))}sendShowAdsInfo(e){this.config.acl.canCollectStats&&fetch(`https://api.eponesh.com/gs/api/t/b/?q=${btoa(JSON.stringify(Object.assign(Object.assign({},e),{platformType:this.gp.platform.type,projectId:this.gp.projectId})))}`)}showFullscreen(){return c(this,void 0,void 0,(function*(){if(!this.isFullscreenAvailable)return this._events.emit("close",!1),this._events.emit("fullscreen:close",!1),!1;this.fullscreenBanner.frequency,this._events.emit("start"),this._events.emit("fullscreen:start"),this.sendShowAdsInfo({type:"FULLSCREEN",action:"REQUEST"}),this.fullscreenDisplayIntervalId=window.setTimeout((()=>{this.fullscreenDisplayIntervalId=0}),1e3*this.fullscreenBanner.frequency),this.isFullscreenPlaying=!0;let e=!1;try{e=yield this.adapter.showFullscreen(this.fullscreenBanner)}catch(e){o.kg.error(e)}return this.sendShowAdsInfo({type:"FULLSCREEN",action:e?"DISPLAY":"ERROR"}),this.isFullscreenPlaying=!1,this._events.emit("close",e),this._events.emit("fullscreen:close",e),e&&this._trackBannerDisplay(s.$.FULLSCREEN),e}))}showRewardedVideo(){return c(this,void 0,void 0,(function*(){if(!this.isRewardedAvailable)return this._events.emit("close",!1),this._events.emit("rewarded:close",!1),!1;this._events.emit("start"),this._events.emit("rewarded:start"),this.sendShowAdsInfo({type:"REWARDED",action:"REQUEST"}),this.isRewardedPlaying=!0;const e=yield this.adapter.showRewardedVideo(this.rewardedVideo).catch((()=>!1));return this.sendShowAdsInfo({type:"REWARDED",action:e?"DISPLAY":"ERROR"}),this.isRewardedPlaying=!1,this._events.emit("close",e),this._events.emit("rewarded:close",e),this._trackBannerDisplay(s.$.REWARDED),e&&this._events.emit("rewarded:reward"),e}))}showPreloader(){return c(this,void 0,void 0,(function*(){if(!this.isPreloaderAvailable)return this._events.emit("close",!1),this._events.emit("preloader:close",!1),!1;this.sendShowAdsInfo({type:"PRELOADER",action:"REQUEST"}),this._events.emit("start"),this._events.emit("preloader:start"),this.isPreloaderPlaying=!0;const e=yield this.adapter.showPreloader(this.preloaderBanner).catch((()=>!1));return this.sendShowAdsInfo({type:"PRELOADER",action:e?"DISPLAY":"ERROR"}),this.isPreloaderPlaying=!1,this._events.emit("close",e),this._events.emit("preloader:close",e),e&&this._trackBannerDisplay(s.$.PRELOADER),e}))}showSticky(){return c(this,void 0,void 0,(function*(){if(!this.isStickyAvailable)return this._events.emit("close",!1),this._events.emit("sticky:close",!1),!1;!this.stickyRefreshIntervalId&&this.stickyBanner.refreshInterval&&(this.stickyRefreshIntervalId=window.setInterval((()=>this.refreshSticky()),1e3*this.stickyBanner.refreshInterval)),this._events.emit("start"),this._events.emit("sticky:start"),this.sendShowAdsInfo({type:"STICKY",action:"REQUEST"});const e=yield this.adapter.showSticky(this.stickyBanner).catch((()=>!1));return this.sendShowAdsInfo({type:"STICKY",action:e?"DISPLAY":"ERROR"}),this.isStickyPlaying=e,this._events.emit("sticky:render",e),e&&this._trackBannerDisplay(s.$.STICKY),e}))}refreshSticky(){return c(this,void 0,void 0,(function*(){if(!this.isStickyAvailable)return this._events.emit("close",!1),this._events.emit("sticky:close",!1),!1;clearInterval(this.stickyRefreshIntervalId),this.stickyBanner.refreshInterval&&(this.stickyRefreshIntervalId=window.setInterval((()=>this.refreshSticky()),1e3*this.stickyBanner.refreshInterval)),this._events.emit("sticky:refresh"),this.sendShowAdsInfo({type:"STICKY",action:"REQUEST"});const e=yield this.adapter.refreshSticky(this.stickyBanner).catch((()=>!1));return this.sendShowAdsInfo({type:"STICKY",action:e?"DISPLAY":"ERROR"}),this.isStickyPlaying=e,this._events.emit("sticky:render",e),e&&this._trackBannerDisplay(s.$.STICKY),e}))}closeSticky(){return c(this,void 0,void 0,(function*(){const e=yield this.adapter.closeSticky();return this.isStickyPlaying=!1,this._events.emit("close",!0),this._events.emit("sticky:close",!0),clearInterval(this.stickyRefreshIntervalId),e}))}get _stickyBannerOffsets(){const{height:e,isOverlapping:t}=this.adapter.stickyBannerConfig,{position:n}=this.stickyBanner;return{top:this.isStickyPlaying&&t&&"top"===n?e:0,bottom:this.isStickyPlaying&&t&&"bottom"===n?e:0}}_trackBannerDisplay(e){const t=this.adsInfo.limits[e];t.hour.count+=1,t.day.count+=1,t.session.count+=1,t.day.timestamp||(t.day.timestamp=Date.now()),t.hour.timestamp||(t.hour.timestamp=Date.now()),this._saveAdsInfo()}_checkLimitsExpired(e){let t=!1;Object.values(this.adsInfo.limits).forEach((n=>{e&&(n.session.count=0),l(n.hour.timestamp,36e5)&&(n.hour.timestamp=0,n.hour.count=0,t=!0),l(n.day.timestamp,864e5)&&(n.day.timestamp=0,n.hour.count=0,t=!0)})),t&&this._saveAdsInfo()}_saveAdsInfo(){this.gp._storage.saveAdsInfo(this.adsInfo)}isBannerLimitReached(e){return this.isBannerLimitTypeReached(e,"hour")||this.isBannerLimitTypeReached(e,"day")||this.isBannerLimitTypeReached(e,"session")}isBannerLimitTypeReached(e,t){const n=this.banners[e].limits[t];return!!n&&this.adsInfo.limits[e][t].count>=n}}function l(e,t){return(new Date).getTime()-new Date(e).getTime()>t}},6388:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(5585),i=n.n(r);class s{constructor(){this._events=new(i())}on(e,t){this._events.on(e,t)}off(e,t){this._events.off(e,t)}once(e,t){this._events.once(e,t)}}},1049:(e,t,n)=>{"use strict";function r(e,t,n){return e.replace(/{{hash}}/gi,t).replace(/{{size}}/gi,n)}n.d(t,{Z:()=>r})},4917:(e,t,n)=>{"use strict";function r({src:e,check:t}){return new Promise(((n,r)=>{let i=0;if(null==t?void 0:t(window))return void n();function s(){t?t(window)&&(clearInterval(i),n()):n()}if(document.querySelector(`script[src="${e}"]`)&&t)return void(i=setInterval(s,100));var a=document.getElementsByTagName("script")[0];const o=document.createElement("script");o.src=e,o.onload=s,o.onerror=r,a.parentNode.insertBefore(o,a),t&&(i=setInterval(s,100))}))}n.d(t,{Z:()=>r})},6558:(e,t,n)=>{"use strict";n.d(t,{Yd:()=>s,kg:()=>a,EK:()=>o});var r,i=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};class s{constructor(){r.set(this,"[GamePush]: "),this.isCollectingLogs=!0,this.logs=[],this.log=(...e)=>{this.collectLogs("log",e),console.log(i(this,r,"f"),...e)},this.info=(...e)=>{this.collectLogs("info",e),console.info(i(this,r,"f"),...e)},this.warn=(...e)=>{this.collectLogs("warn",e),console.warn(i(this,r,"f"),...e)},this.error=(...e)=>{this.collectLogs("error",e),console.error(i(this,r,"f"),...e)}}stopCollect(){this.isCollectingLogs=!1,this.logs=[]}collectLogs(e,t){this.isCollectingLogs&&this.logs.push({type:e,args:t})}}r=new WeakMap;let a=new s;const o=e=>a=e},1437:(e,t,n)=>{"use strict";n.d(t,{p:()=>i});var r=n(8293);function i(e){const t=(0,r._)(r.s),n=new Image;return n.onload=()=>t.done(n),n.onerror=()=>t.abort(),n.onabort=()=>t.abort(),n.src=e,t.ready}},4835:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r={app:{trophy:"https://gs.eponesh.com/sdk/static/icons/trophy.svg"},cdn:{trophy:"https://cdn.eponesh.com/static/64x64/images/achievements/reward.png"}}},8293:(e,t,n)=>{"use strict";n.d(t,{s:()=>i,_:()=>s});var r=n(6558);const i={timeout:5e3};function s({timeout:e=0}={}){let t=!1;const n={},i=new Promise(((e,i)=>{n.done=n=>{t||(t=!0,e(n))},n.abort=e=>{t||(t=!0,r.kg.error(e),i(e))}}));return e&&setTimeout((()=>{t||n.abort(`Timeout ${e}ms exceeded`)}),e),n.ready=i,n}},5942:(e,t,n)=>{"use strict";var r;n.d(t,{z:()=>r}),function(e){e.YANDEX="YANDEX",e.VK="VK",e.OK="OK",e.GAME_MONETIZE="GAME_MONETIZE",e.GAME_DISTRIBUTION="GAME_DISTRIBUTION",e.CRAZY_GAMES="CRAZY_GAMES",e.SMARTMARKET="SMARTMARKET",e.GAMEPIX="GAMEPIX",e.POKI="POKI",e.VK_PLAY="VK_PLAY",e.NONE="NONE"}(r||(r={}))},584:(e,t,n)=>{"use strict";n.d(t,{P8:()=>l,ZP:()=>u});var r,i=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};const s="{\n id\n iconSmall: icon(w: 48, h: 48, crop: false)\n icon(w: 256, h: 256, crop: false)\n tag\n rare\n name(lang: $lang)\n description(lang: $lang)\n progress\n maxProgress\n unlocked\n lockedIcon(w: 256, h: 256, crop: false)\n lockedIconSmall: lockedIcon(w: 48, h: 48, crop: false)\n progressStep\n isPublished\n isLockedVisible\n isLockedDescriptionVisible\n}",a="\n achievementId\n createdAt\n progress\n unlocked\n",o=`mutation ($input: UnlockPlayerAchievementInput!, $lang: Lang) {\n result: UnlockPlayerAchievement(input: $input) {\n __typename\n ... on Problem { message }\n ... on PlayerAchievement {\n ${a}\n achievement ${s}\n }\n }\n}`,c=`mutation ($input: PlayerSetAchievementProgressInput!, $lang: Lang){\n result: PlayerSetAchievementProgress(input: $input) {\n __typename\n ... on Problem { message }\n ... on PlayerAchievement {\n ${a}\n achievement ${s}\n }\n }\n}`,h=`query($lang: Lang) {\n result: FetchPlayerAchievements {\n __typename\n ... on Problem { message }\n ... on PlayerAchievements {\n achievements ${s}\n achievementsGroups { id tag name(lang: $lang) description(lang: $lang) achievements }\n playerAchievements { ${a} }\n }\n }\n}`;var l;!function(e){e.COMMON="COMMON",e.UNCOMMON="UNCOMMON",e.RARE="RARE",e.EPIC="EPIC",e.LEGENDARY="LEGENDARY",e.MYTHIC="MYTHIC"}(l||(l={}));class u{constructor(e){r.set(this,void 0),function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===r?i.call(e,n):i?i.value=n:t.set(e,n)}(this,r,e,"f")}fetch(){return i(this,r,"f").fetch(h)}setProgress({id:e,tag:t,progress:n}){return i(this,r,"f").fetch(c,{id:e,tag:t,progress:n})}unlock({id:e,tag:t}){return i(this,r,"f").fetch(o,{id:e,tag:t,v:2})}}r=new WeakMap},9631:(e,t,n)=>{"use strict";n.d(t,{Lb:()=>a,ZP:()=>g});var r,i=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};const s="{\n id\n icon(w: 256, h: 256, crop: false)\n iconSmall: icon(w: 48, h: 48, crop: false)\n tag\n price\n isSubscription\n period\n trialPeriod\n name(lang: $lang)\n description(lang: $lang)\n yandexId\n}",a="productId, tag, payload, gift, subscribed, createdAt, expiredAt",o=`{\n __typename\n ... on Problem { message }\n ... on PlayerPurchaseOutput {\n product ${s}\n purchase { ${a} }\n }\n}`,c=`query ($input: FindPlayerPurchaseInput!, $lang: Lang) {\n result: FindPlayerPurchase(input: $input) {\n __typename\n ... on Problem { message }\n ... on PlayerPurchaseOutput {\n product ${s}\n }\n }\n}`,h=`mutation ($input: SyncPlayerPurchasesInput!) {\n result: SyncPlayerPurchases(input: $input) {\n __typename\n ... on Problem { message }\n ... on PlayerProductsPurchasedOutput {\n purchases { ${a} }\n }\n }\n}`,l=`mutation ($input: PurchasePlayerPurchaseInput!, $lang: Lang) {\n result: PurchasePlayerPurchase(input: $input) ${o}\n}`,u=`mutation ($input: ConsumePlayerPurchaseInput!, $lang: Lang) {\n result: ConsumePlayerPurchase(input: $input) ${o}\n}`,d=`mutation ($input: CancelPlayerSubscriptionInput!, $lang: Lang) {\n result: CancelPlayerSubscription(input: $input) ${o}\n}`,f=`mutation ($input: ResumePlayerSubscriptionInput!, $lang: Lang) {\n result: ResumePlayerSubscription(input: $input) ${o}\n}`,p=`query ($lang: Lang) {\n result: FetchPlayerPurchases {\n __typename\n ... on Problem { message }\n ... on PlayerPurchasesOutput {\n products ${s}\n playerPurchases { ${a} }\n }\n }\n}`;class g{constructor(e){r.set(this,void 0),function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===r?i.call(e,n):i?i.value=n:t.set(e,n)}(this,r,e,"f")}sync({purchases:e,payload:t}){return i(this,r,"f").fetch(h,{purchases:e,payload:t})}fetch(){return i(this,r,"f").fetch(p)}getPaymentLink(e){return i(this,r,"f").fetch("query ($input: PlayerGetPaymentLinkInput!) {\n result: PlayerGetPaymentLink(input: $input) {\n __typename\n ... on PlayerPaymentLink { link }\n ... on Problem { message }\n }\n}",e)}purchase({payload:e,id:t,tag:n}){return i(this,r,"f").fetch(l,{payload:e,id:t,tag:n})}findProduct({id:e,tag:t}){return i(this,r,"f").fetch(c,{id:e,tag:t})}consume({id:e,tag:t}){return i(this,r,"f").fetch(u,{id:e,tag:t})}cancelSubscription({payload:e,id:t,tag:n}){return i(this,r,"f").fetch(d,{payload:e,id:t,tag:n})}resumeSubscription({payload:e,id:t,tag:n}){return i(this,r,"f").fetch(f,{payload:e,id:t,tag:n})}}r=new WeakMap},9233:(e,t,n)=>{"use strict";var r;n.d(t,{$:()=>r,iA:()=>i}),function(e){e.PRELOADER="PRELOADER",e.FULLSCREEN="FULLSCREEN",e.REWARDED="REWARDED",e.STICKY="STICKY"}(r||(r={}));const i={appId:"",community:"",communityLink:"",gameLink:"",banners:[]};new WeakMap},7802:(e,t,n)=>{"use strict";n.d(t,{S:()=>o,Z:()=>v});var r,i=n(4692),s=n(9631),a=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};const o="\n name(lang: $lang)\n key\n type\n default\n important\n variants {\n value\n name(lang: $lang)\n }\n",c=`\n state\n achievements { id tag progress unlocked createdAt }\n purchasesList { ${s.Lb} }\n`,h=`\n... on Player {\n ${c}\n token @include(if: $withToken)\n}\n... on Problem { message }\n`,l=`mutation ($input: SyncPlayerInput!, $lang: Lang, $withToken: Boolean!) {\n result: SyncPlayer(input: $input) {\n __typename\n ${h}\n ... on PlayerSyncConflict {\n players\n fields { ${o} }\n }\n }\n}`,u=`query ($input: GetPlayerInput!, $withToken: Boolean!) {\n result: GetPlayer(input: $input) {\n __typename\n ${h}\n }\n}`,d=`query ($lang: Lang) {\n result: FetchPlayerFields {\n __typename\n ... on Problem { message }\n ... on ModelFieldsList {\n items { ${o} }\n }\n }\n}`,f=`\n ... on FullPlayersList {\n players {\n ${c}\n isOnline\n }\n }\n`,p=`query($input: PlayerFetchPlayersInput!) {\n result: PlayerFetchPlayers(input: $input) { ${(0,i.Mn)(f)} }\n}`;let g=!0;class v{constructor(e){r.set(this,void 0),function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===r?i.call(e,n):i?i.value=n:t.set(e,n)}(this,r,e,"f")}sync({playerState:e,override:t},{withToken:n}){(0,i.dX)(e,1*i.aI.MB,2*i.aI.MB);const s=a(this,r,"f").fetch(l,{playerState:e,override:t,isFirstRequest:g},{withToken:n});return g=!1,s}getPlayer({withToken:e}){const t=a(this,r,"f").fetch(u,{isFirstRequest:g},{withToken:e});return g=!1,t}fetchFields(){return e=this,t=void 0,i=function*(){return a(this,r,"f").fetch(d)},new((n=void 0)||(n=Promise))((function(r,s){function a(e){try{c(i.next(e))}catch(e){s(e)}}function o(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((i=i.apply(e,t||[])).next())}));var e,t,n,i}checkCode({secretCode:e}){return a(this,r,"f").fetch("query ($input: CheckPlayerCodeInput!) {\n result: CheckPlayerCode(input: $input) {\n __typename\n ... on Problem { message }\n ... on Success { success }\n }\n}",{secretCode:e})}fetchPlayers({ids:e}){return a(this,r,"f").fetch(p,{ids:e})}}r=new WeakMap},381:(e,t,n)=>{"use strict";function r(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,s=void 0;try{for(var a,o=e[Symbol.iterator]();!(r=(a=o.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){i=!0,s=e}finally{try{r||null==o.return||o.return()}finally{if(i)throw s}}return n}}(e,t)||o(e,t)||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.")}()}function i(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=o(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,a=!0,c=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return a=e.done,e},e:function(e){c=!0,s=e},f:function(){try{a||null==n.return||n.return()}finally{if(c)throw s}}}}function s(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||o(e)||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 o(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);nD,GH:()=>U,ZP:()=>W,Ff:()=>q,h$:()=>B,lR:()=>J});var v=[l,u,d,p,f,function(e){return"bigint"==typeof e},function(e){return"symbol"==h(e)}];function m(e){return Array.isArray(e)}function y(e){if(function(e){return v.some((function(t){return t(e)}))}(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function w(e){return!g(e)}function b(e){throw l(e)?new Error(e):e}function P(e){return{and:function(){return P(e)},andThen:function(){return P(e)},err:function(){return I(e)},expect:function(e){return b(e)},expectErr:function(){return e},inspect:function(){return P(e)},inspectErr:function(t){return t(e),P(e)},isErr:function(){return!0},isErrAnd:function(t){return t(e)},isOk:function(){return!1},isOkAnd:function(){return!1},map:function(){return P(e)},mapErr:function(t){return P(t(e))},mapOr:function(e){return e},mapOrElse:function(t){return t(e)},match:function(t,n){return n(e)},ok:function(){return S},or:function(e){return e},orElse:function(t){return t(e)},unwrap:function(){return b("called Result.unwrap on an `Err` value")},unwrapErr:function(){return e},unwrapOr:function(e){return e},unwrapOrElse:function(t){return t(e)}}}function _(e){return{and:function(e){return e},andThen:function(t){return t(e)},err:function(){return S},expect:function(){return e},expectErr:function(e){return b(e)},inspect:function(t){return t(e),_(e)},inspectErr:function(){return _(e)},isErr:function(){return!1},isErrAnd:function(){return!1},isOk:function(){return!0},isOkAnd:function(t){return t(e)},map:function(t){return _(t(e))},mapErr:function(){return _(e)},mapOr:function(t,n){return n(e)},mapOrElse:function(t,n){return n(e)},match:function(t){return t(e)},ok:function(){return I(e)},or:function(){return _(e)},orElse:function(){return _(e)},unwrap:function(){return e},unwrapErr:function(){return b("called Result.unwrapErr on an `Ok` value")},unwrapOr:function(){return e},unwrapOrElse:function(){return e}}}var S={and:function(){return S},andThen:function(){return S},expect:function(e){return b(e)},filter:function(){return S},inspect:function(){return S},isNone:function(){return!0},isSome:function(){return!1},isSomeAnd:function(){return!1},map:function(){return S},mapOr:function(e){return e},mapOrElse:function(e){return e()},match:function(e,t){return t()},or:function(e){return e},orElse:function(e){return e()},unwrap:function(){return b("called Option.unwrap on a `None` value")},unwrapOr:function(e){return e},unwrapOrElse:function(e){return e()},okOr:function(e){return P(e)},okOrElse:function(e){return P(e())}};function I(e){return{and:function(e){return e},andThen:function(t){return t(e)},expect:function(){return e},filter:function(t){return t(e)?I(e):S},inspect:function(t){return t(e),I(e)},isNone:function(){return!1},isSome:function(){return!0},isSomeAnd:function(t){return t(e)},map:function(t){return I(t(e))},mapOr:function(t,n){return n(e)},mapOrElse:function(t,n){return n(e)},match:function(t){return t(e)},or:function(){return I(e)},orElse:function(){return I(e)},unwrap:function(){return e},unwrapOr:function(){return e},unwrapOrElse:function(){return e},okOr:function(){return _(e)},okOrElse:function(){return _(e)}}}function E(e){return w(e)?I(e):S}function k(e,t){return t<0?e.length+t:t}function C(e,t){return E(e[k(e,t)])}function $(e,t){for(var n=Object.create(null),r=0;r0;n--){var r=Math.floor(Math.random()*(n+1)),i=t[n];t[n]=t[r],t[r]=i}return t}(n))})),s(t,"some",(function(e){return n.some(e)})),s(t,"sort",(function(e){return M(a(n).sort(e))})),s(t,"swap",(function(e,t){return M(function(e,t,n){t=k(e,t),n=k(e,n);var r=a(e),i=r[t];return r[t]=r[n],r[n]=i,r}(n,e,t))})),s(t,"take",(function(e){return M(n.slice(0,e))})),s(t,"toArray",(function(){return a(n)})),s(t,"toJSON",(function(){return a(n)})),t}var T,O=function(e){return function(t){if(!m(t))return P({path:[],message:"",actual:"",expected:""});for(var n=new Array(t.length),r=0;r1?t-1:0),r=1;r{"use strict";n.d(t,{Mn:()=>i,tv:()=>s,aI:()=>a,dX:()=>c});var r=n(6558);const i=e=>`\n __typename\n ... on Problem { message }\n ${e}\n`,s=e=>{if("Problem"===(null==e?void 0:e.__typename))throw e.message},a={MB:1048576},o=new TextEncoder,c=(e,t,n)=>{const i=o.encode(JSON.stringify(e)).length;if(i>t&&r.kg.warn(`Maximum size exceeded: sending data must be maximum 1MB, your size is: ${Math.round(i/1024/1024*100)/100} MB`),i>n)throw new Error("max_data_limit_exceeded")}}},s={};function a(e){var t=s[e];if(void 0!==t)return t.exports;var n=s[e]={id:e,exports:{}};return i[e].call(n.exports,n,n.exports,a),n.exports}a.m=i,a.amdO={},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,a.t=function(n,r){if(1&r&&(n=this(n)),8&r)return n;if("object"==typeof n&&n){if(4&r&&n.__esModule)return n;if(16&r&&"function"==typeof n.then)return n}var i=Object.create(null);a.r(i);var s={};e=e||[null,t({}),t([]),t(t)];for(var o=2&r&&n;"object"==typeof o&&!~e.indexOf(o);o=t(o))Object.getOwnPropertyNames(o).forEach((e=>s[e]=()=>n[e]));return s.default=()=>n,a.d(i,s),i},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,n)=>(a.f[n](e,t),t)),[])),a.u=e=>(({47:"i18n/pt-json",66:"i18n/tr-json",70:"platforms/platform.vkplay",72:"utils/centrifuge.protobuf",159:"i18n/it-json",369:"platforms/platform.gm",433:"platforms/platform.cg",459:"i18n/de-json",460:"gamepush.overlay",477:"platforms/platform.gp",513:"i18n/id-json",552:"platforms/platform.smartmarket",606:"i18n/devtools-ru-json",614:"platforms/platform.ok",637:"i18n/hi-json",670:"i18n/ko-json",746:"i18n/fr-json",755:"platforms/platform.yandex",808:"i18n/ar-json",848:"i18n/ja-json",851:"platforms/platform.vk.app",860:"platforms/platform.gd",863:"gamepush.devtools",897:"i18n/devtools-en-json",911:"platforms/platform.vk",929:"i18n/zh-json",932:"i18n/en-json",964:"i18n/ru-json",968:"i18n/es-json"}[e]||e)+"."+a.h()+".js"),a.h=()=>"ec3f4f9f2a07f88aa8d4",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="game-score-sdk:",a.l=(e,t,i,s)=>{if(n[e])n[e].push(t);else{var o,c;if(void 0!==i)for(var h=document.getElementsByTagName("script"),l=0;l{o.onerror=o.onload=null,clearTimeout(f);var i=n[e];if(delete n[e],o.parentNode&&o.parentNode.removeChild(o),i&&i.forEach((e=>e(r))),t)return t(r)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:o}),12e4);o.onerror=d.bind(null,o.onerror),o.onload=d.bind(null,o.onload),o.src="patch/js/eponesh-platform.gp.v2.js",c&&document.head.appendChild(o)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;a.g.importScripts&&(e=a.g.location+"");var t=a.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");n.length&&(e=n[n.length-1].src)}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),a.p=e})(),(()=>{var e={821:0,742:0};a.f.j=(t,n)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise(((n,i)=>r=e[t]=[n,i]));n.push(r[2]=i);var s=a.p+a.u(t),o=new Error;a.l(s,(n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),s=n&&n.target&&n.target.src;o.message="Loading chunk "+t+" failed.\n("+i+": "+s+")",o.name="ChunkLoadError",o.type=i,o.request=s,r[1](o)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,i,[s,o,c]=n,h=0;for(r in o)a.o(o,r)&&(a.m[r]=o[r]);for(c&&c(a),t&&t(n);h{"use strict";a(2096);var e=a(4943),t=a.n(e),n=a(4293),r=a(5942);var i,s,o,c=a(8293),h=a(7802),l=a(4692),u=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}))},d=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},f=function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n};const p="... on Success { success }";class g{constructor(e,t,n,r,a){this.apiUrl=e,this.projectId=t,this.publicToken=n,this.lang=r,this.platformType=a,i.set(this,""),s.set(this,0),o.set(this,(()=>{}))}get reqCounter(){return d(this,s,"f")}set reqCounter(e){f(this,s,e,"f"),d(this,o,"f").call(this,e)}addCounterListener(e){f(this,o,e,"f")}setLang(e){this.lang=e}setPlayerData(e){f(this,i,btoa(JSON.stringify(e)),"f")}ping(e){fetch(`${this.apiUrl}/api/ping?t=${e}`)}signQuery(e=null){return u(this,void 0,void 0,(function*(){const t={projectId:this.projectId,query:v(e),token:this.publicToken},n=yield function(e){return t=this,n=void 0,i=function*(){const t=(new TextEncoder).encode(e),n=yield crypto.subtle.digest("SHA-256",t);return Array.from(new Uint8Array(n)).map((e=>e.toString(16).padStart(2,"0"))).join("")},new((r=void 0)||(r=Promise))((function(e,s){function a(e){try{c(i.next(e))}catch(e){s(e)}}function o(e){try{c(i.throw(e))}catch(e){s(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,o)}c((i=i.apply(t,n||[])).next())}));var t,n,r,i}(JSON.stringify(t));return{input:e,hash:n}}))}fetch(e,t,n){return u(this,void 0,void 0,(function*(){return this.fetchMany(e,t,n).then((({result:e})=>((0,l.tv)(e),e)))}))}fetchMany(e,t,n={}){return u(this,void 0,void 0,(function*(){const{input:r,hash:s}=yield this.signQuery(t);let a,o={};const c=JSON.stringify({query:e,variables:Object.assign({input:r,lang:this.lang.toUpperCase()},n)}),h=function(e={}){return Object.keys(e).filter((t=>e[t]instanceof File))}(t);if(h.length>0){a=new FormData,a.append("operations",c);const e={};h.forEach(((t,n)=>{e[n]=[`variables.input.${t}`]})),a.append("map",JSON.stringify(e)),h.forEach(((e,n)=>{a.append(n,t[e])}))}else o={"Content-Type":"application/json;charset=utf-8"},a=c;return fetch(`${this.apiUrl}/graphql`,{body:a,method:"POST",headers:Object.assign(Object.assign({},o),{"X-Transaction-Token":s,"X-Platform":this.platformType,"X-Project-ID":String(this.projectId),"X-Project-Token":this.publicToken,"X-Language":this.lang,"X-Player-Data":d(this,i,"f")})}).catch((e=>{if(String(null==e?void 0:e.message).includes("Failed to fetch"))throw"connection_error";throw e})).then((e=>u(this,void 0,void 0,(function*(){if(!e.ok){const t=yield e.text();throw new Error(`${e.status}. ${t}`)}const t=yield e.json();return Object.values(t.data).forEach((e=>{"Problem"!=e.__typename&&this.reqCounter++})),t})))).then((e=>e.data))}))}}function v(e){var t;return Array.isArray(e)?e.map(v):null!==e&&"object"==typeof e?(Object.getOwnPropertySymbols(e).length>0&&(e=JSON.parse(JSON.stringify(e))),t={},Object.keys(e).sort().forEach((n=>t[n]=v(e[n]))),t):e}i=new WeakMap,s=new WeakMap,o=new WeakMap;var m,y=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};const w="\n id\n tags\n projectId\n capacity\n ownerId\n name(lang: $lang)\n description(lang: $lang)\n private\n visible\n hasPassword\n membersCount\n",b=`... on ChannelInvitesList {\n items {\n channel { ${w} }\n channelId\n playerFrom\n date\n }\n}`,P=`... on ChannelInvitesList {\n items {\n channel { ${w} }\n channelId\n playerTo\n date\n }\n}`,_=`query($input: PlayerFetchPlayerInvitesInput!, $lang: Lang) {\n result: PlayerFetchInvites(input: $input) { ${(0,l.Mn)(b)} }\n}`,S=`query($input: PlayerFetchPlayerSentInvitesInput!, $lang: Lang) {\n result: PlayerFetchSentInvites(input: $input) { ${(0,l.Mn)(P)} }\n}`,I=`query($input: PlayerFetchChannelInvitesInput!) {\n result: PlayerFetchChannelInvites(input: $input) { ${(0,l.Mn)("... on ChannelInvitesList {\n items {\n channelId\n playerTo\n playerFrom\n date\n }\n}")} }\n}`,E=`mutation($input: PlayerSendInviteToChannelInput!) {\n result: PlayerSendInviteToChannel(input: $input) { ${(0,l.Mn)("... on ChannelInvite {\n channelId\n playerToId\n playerFromId\n date\n }")} }\n}`,k=`mutation($input: PlayerCancelInviteToChannelInput!) {\n result: PlayerCancelInviteToChannel(input: $input) { ${(0,l.Mn)(p)} }\n}`,C=`mutation($input: PlayerAcceptInviteToChannelInput!) {\n result: PlayerAcceptInviteToChannel(input: $input) { ${(0,l.Mn)(p)} }\n}`,$=`mutation($input: PlayerRejectInviteToChannelInput!) {\n result: PlayerRejectInviteToChannel(input: $input) { ${(0,l.Mn)(p)} }\n}`;class M{constructor(e){m.set(this,void 0),function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===r?i.call(e,n):i?i.value=n:t.set(e,n)}(this,m,e,"f")}fetchInvites({limit:e,offset:t}){return y(this,m,"f").fetch(_,{limit:e,offset:t})}fetchChannelInvites({channelId:e,limit:t,offset:n}){return y(this,m,"f").fetch(I,{channelId:e,limit:t,offset:n})}fetchSentInvites({limit:e,offset:t}){return y(this,m,"f").fetch(S,{limit:e,offset:t})}sendInvite({channelId:e,playerId:t}){return y(this,m,"f").fetch(E,{channelId:e,playerId:t})}cancelInvite({channelId:e,playerId:t}){return y(this,m,"f").fetch(k,{channelId:e,playerId:t})}acceptInvite({channelId:e}){return y(this,m,"f").fetch(C,{channelId:e})}rejectInvite({channelId:e}){return y(this,m,"f").fetch($,{channelId:e})}}m=new WeakMap;var T,O=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};const R="\n canViewMessages\n canAddMessage\n canEditMessage\n canDeleteMessage\n canViewMembers\n canInvitePlayer\n canKickPlayer\n canAcceptJoinRequest\n canMutePlayer\n",x=`\n id\n tags\n messageTags\n projectId\n capacity\n ownerId\n name(lang: $lang)\n description(lang: $lang)\n private\n visible\n permanent\n hasPassword\n password\n templateId\n membersCount\n membersOnlineCount\n isJoined\n isRequestSent\n isInvited\n mute { isMuted, unmuteAt }\n ownerAcl { ${R} }\n memberAcl { ${R} }\n guestAcl { ${R} }\n`,j=`... on Channel { ${x} }`,A=`... on ChannelsList {\n items { ${x} }\n}`,L=`query($input: PlayerFetchChannelInput!, $lang: Lang) {\n result: PlayerFetchChannel(input: $input) { ${(0,l.Mn)(j)} }\n}`,F=`query($input: PlayerFetchChannelsInput!, $lang: Lang) {\n result: PlayerFetchChannels(input: $input) { ${(0,l.Mn)(A)} }\n}`,N=`mutation($input: PlayerCreateChannelInput!, $lang: Lang) {\n result: PlayerCreateChannel(input: $input) { ${(0,l.Mn)(j)} }\n}`,D=`mutation($input: PlayerUpdateChannelInput!, $lang: Lang) {\n result: PlayerUpdateChannel(input: $input) { ${(0,l.Mn)(j)} }\n}`,q=`mutation($input: PlayerDeleteChannelInput!) {\n result: PlayerDeleteChannel(input: $input) { ${(0,l.Mn)(p)} }\n}`;class B{constructor(e){T.set(this,void 0),function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===r?i.call(e,n):i?i.value=n:t.set(e,n)}(this,T,e,"f")}fetchChannel({channelId:e}){return O(this,T,"f").fetch(L,{channelId:e}).then(J)}fetchChannels({ids:e,onlyJoined:t,onlyOwned:n,tags:r,search:i,limit:s,offset:a}){return O(this,T,"f").fetch(F,{ids:e,onlyJoined:t,onlyOwned:n,tags:r,search:i,limit:s,offset:a}).then(U)}createChannel({template:e,tags:t,capacity:n,name:r,description:i,password:s,ownerAcl:a,memberAcl:o,guestAcl:c,visible:h,private:l}){return O(this,T,"f").fetch(N,{template:e,tags:t,capacity:n,name:r,description:i,password:s,ownerAcl:a,memberAcl:o,guestAcl:c,visible:h,private:l}).then(J)}updateChannel({channelId:e,tags:t,capacity:n,name:r,description:i,password:s,ownerAcl:a,memberAcl:o,guestAcl:c,ownerId:h,visible:l,private:u}){return O(this,T,"f").fetch(D,{channelId:e,tags:t,capacity:n,name:r,description:i,password:s,ownerAcl:a,memberAcl:o,guestAcl:c,ownerId:h,visible:l,private:u}).then(J)}deleteChannel({channelId:e}){return O(this,T,"f").fetch(q,{channelId:e})}}function J(e){return e.isMuted=e.mute.isMuted,e}function U(e){return e.items=e.items.map(J),e}T=new WeakMap;var W,z=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};const G=`... on ChannelJoinRequestsList {\n items {\n date\n channelId\n channel { ${x} }\n }\n}`,K=`query($input: PlayerFetchChannelJoinRequestsInput!) {\n result: PlayerFetchChannelJoinRequests(input: $input) { ${(0,l.Mn)("... on ChannelJoinRequestsList {\n items {\n channelId\n player\n date\n }\n}")} }\n}`,Z=`query($input: PlayerFetchPlayerSentJoinRequestsInput!, $lang: Lang) {\n result: PlayerFetchSentJoinRequests(input: $input) { ${(0,l.Mn)(G)} }\n}`,V=`mutation($input: PlayerAcceptJoinRequestToChannelInput!) {\n result: PlayerAcceptJoinRequestToChannel(input: $input) { ${(0,l.Mn)("... on ChannelMember {\n id\n state\n channelId\n isOnline\n mute {\n isMuted\n unmuteAt\n }\n}")} }\n}`,Y=`mutation($input: PlayerRejectJoinRequestToChannelInput!) {\n result: PlayerRejectJoinRequestToChannel(input: $input) { ${(0,l.Mn)(p)} }\n}`;class H{constructor(e){W.set(this,void 0),function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===r?i.call(e,n):i?i.value=n:t.set(e,n)}(this,W,e,"f")}fetchJoinRequests({channelId:e,search:t,limit:n,offset:r}){return z(this,W,"f").fetch(K,{channelId:e,search:t,limit:n,offset:r})}fetchSentJoinRequests({limit:e,offset:t}){return z(this,W,"f").fetch(Z,{limit:e,offset:t})}acceptJoinRequest({channelId:e,playerId:t}){return z(this,W,"f").fetch(V,{channelId:e,playerId:t})}rejectJoinRequest({channelId:e,playerId:t}){return z(this,W,"f").fetch(Y,{channelId:e,playerId:t})}}W=new WeakMap;var X,Q=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};const ee=`mutation($input: PlayerMutePlayerInChannelInput!) {\n result: PlayerMutePlayerInChannel(input: $input) { ${(0,l.Mn)(p)} }\n}`,te=`mutation($input: PlayerUnmutePlayerInChannelInput!) {\n result: PlayerUnmutePlayerInChannel(input: $input) { ${(0,l.Mn)(p)} }\n}`,ne=`query($input: PlayerFetchChannelMembersInput!) {\n result: PlayerFetchChannelMembers(input: $input) { ${(0,l.Mn)("... on ChannelMembersList {\n players {\n id\n state\n isOnline\n mute {\n isMuted\n unmuteAt\n }\n }\n}")} }\n}`,re=`mutation($input: PlayerKickFromChannelInput!) {\n result: PlayerKickFromChannel(input: $input) { ${(0,l.Mn)(p)} }\n}`,ie=`mutation($input: PlayerJoinChannelInput!) {\n result: PlayerJoinChannel(input: $input) { ${(0,l.Mn)(p)} }\n}`,se=`mutation($input: PlayerLeaveChannelInput!) {\n result: PlayerLeaveChannel(input: $input) { ${(0,l.Mn)(p)} }\n}`,ae=`mutation($input: PlayerCancelJoinChannelInput!) {\n result: PlayerCancelJoinChannel(input: $input) { ${(0,l.Mn)(p)} }\n}`;class oe{constructor(e){X.set(this,void 0),function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===r?i.call(e,n):i?i.value=n:t.set(e,n)}(this,X,e,"f")}mute({channelId:e,playerId:t,unmuteAt:n}){return Q(this,X,"f").fetch(ee,{channelId:e,playerId:t,unmuteAt:n})}unmute({channelId:e,playerId:t}){return Q(this,X,"f").fetch(te,{channelId:e,playerId:t})}fetchMembers({channelId:e,onlyOnline:t,search:n,limit:r,offset:i}){return Q(this,X,"f").fetch(ne,{channelId:e,onlyOnline:t,search:n,limit:r,offset:i})}join({channelId:e,password:t}){return Q(this,X,"f").fetch(ie,{channelId:e,password:t})}cancelJoin({channelId:e}){return Q(this,X,"f").fetch(ae,{channelId:e})}leave({channelId:e}){return Q(this,X,"f").fetch(se,{channelId:e})}kick({channelId:e,playerId:t}){return Q(this,X,"f").fetch(re,{channelId:e,playerId:t})}}X=new WeakMap;var ce,he=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};const le="\n id\n channelId\n authorId\n text\n tags\n player\n createdAt\n",ue=`... on ChannelMessage { ${le} }`,de=`... on ChannelMessagesList {\n items { ${le} }\n}`,fe=`query($input: PlayerFetchChannelMessagesInput!) {\n result: PlayerFetchChannelMessages(input: $input) { ${(0,l.Mn)(de)} }\n}`,pe=`query($input: PlayerFetchPersonalMessagesInput!) {\n result: PlayerFetchPersonalMessages(input: $input) { ${(0,l.Mn)(de)} }\n}`,ge=`query($input: PlayerFetchFeedMessagesInput!) {\n result: PlayerFetchFeedMessages(input: $input) { ${(0,l.Mn)(de)} }\n}`,ve=`mutation($input: PlayerSendMessageInput!) {\n result: PlayerSendMessage(input: $input) { ${(0,l.Mn)(ue)} }\n}`,me=`mutation($input: PlayerSendFeedMessageInput!) {\n result: PlayerSendFeedMessage(input: $input) { ${(0,l.Mn)(ue)} }\n}`,ye=`mutation($input: PlayerSendPersonalMessageInput!) {\n result: PlayerSendPersonalMessage(input: $input) { ${(0,l.Mn)(ue)} }\n}`,we=`mutation($input: PlayerEditMessageInput!) {\n result: PlayerEditMessage(input: $input) { ${(0,l.Mn)(ue)} }\n}`,be=`mutation($input: PlayerDeleteMessageInput!) {\n result: PlayerDeleteMessage(input: $input) { ${(0,l.Mn)(p)} }\n}`;class Pe{constructor(e){ce.set(this,void 0),function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===r?i.call(e,n):i?i.value=n:t.set(e,n)}(this,ce,e,"f")}fetchMessages({channelId:e,tags:t,limit:n,offset:r}){return he(this,ce,"f").fetch(fe,{channelId:e,tags:t,limit:n,offset:r})}fetchPersonalMessages({playerId:e,tags:t,limit:n,offset:r}){return he(this,ce,"f").fetch(pe,{playerId:e,tags:t,limit:n,offset:r})}fetchFeedMessages({playerId:e,authorId:t,tags:n,limit:r,offset:i}){return he(this,ce,"f").fetch(ge,{playerId:e,authorId:t,tags:n,limit:r,offset:i})}sendMessage({channelId:e,tags:t,text:n}){return he(this,ce,"f").fetch(ve,{channelId:e,tags:t,text:n})}sendFeedMessage({playerId:e,text:t,tags:n}){return he(this,ce,"f").fetch(me,{playerId:e,text:t,tags:n})}sendPersonalMessage({playerId:e,text:t,tags:n}){return he(this,ce,"f").fetch(ye,{playerId:e,text:t,tags:n})}editMessage({messageId:e,text:t}){return he(this,ce,"f").fetch(we,{messageId:e,text:t})}deleteMessage({messageId:e}){return he(this,ce,"f").fetch(be,{messageId:e})}}ce=new WeakMap;var _e,Se=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};class Ie{constructor(e){_e.set(this,void 0),function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===r?i.call(e,n):i?i.value=n:t.set(e,n)}(this,_e,e,"f"),this.channels=new B(Se(this,_e,"f")),this.messages=new Pe(Se(this,_e,"f")),this.members=new oe(Se(this,_e,"f")),this.invites=new M(Se(this,_e,"f")),this.joinRequests=new H(Se(this,_e,"f"))}ping(e){Se(this,_e,"f").ping(e)}}_e=new WeakMap;class Ee{constructor(e,t){this.config=e,this.adapter=t}get hasIntegratedAuth(){return this.adapter.hasIntegratedAuth}get isSecretCodeAuthAvailable(){return this.adapter.isSecretCodeAuthAvailable}get _hasAuthModal(){return this.adapter._hasAuthModal}get isExternalLinksAllowed(){return this.adapter.isExternalLinksAllowed}get type(){return this.adapter.type}get availableSocialNetworks(){return this.adapter.socialNetworks}getSDK(){return this.adapter.getSDK()}getNativeSDK(){return this.adapter.getNativeSDK()}requestPermissions(e){return t=this,n=void 0,i=function*(){return this.adapter.requestPermissions(e)},new((r=void 0)||(r=Promise))((function(e,s){function a(e){try{c(i.next(e))}catch(e){s(e)}}function o(e){try{c(i.throw(e))}catch(e){s(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,o)}c((i=i.apply(t,n||[])).next())}));var t,n,r,i}}var ke=a(3379),Ce=a.n(ke),$e=a(8205);Ce()($e.Z,{insert:"head",singleton:!1}),$e.Z.locals;var Me,Te=a(6558),Oe=a(381),Re=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}))},xe=function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n},je=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};class Ae{constructor(e=[]){this.storages=e,Me.set(this,""),this.isEmptyOnBoot=!0,this.temp={};const t=(0,c._)();this.ready=t.ready,Promise.all([this._get(e,"context"),this._get(e,"config")]).then((([e,n])=>{xe(this,Me,e||"","f"),this.isEmptyOnBoot=!n,t.done()}))}get localStorages(){return this.storages.filter((e=>!0===e.isLocal))}_get(e,t){const n=(0,c._)();return Promise.all(this.storages.map((e=>{const n=(0,c._)(c.s);return e.get(t).then(n.done).catch(n.abort),n.ready.catch((e=>(Te.kg.warn(e),null)))}))).then((e=>n.done(e.find(Boolean)))),n.ready}_set(e,t,n){return Promise.all(e.map((e=>e.set(t,n))))}set(e,t,n){return this._set(e,`${t}${je(this,Me,"f")}`,n)}get(e,t){return this._get(e,`${t}${je(this,Me,"f")}`)}isEmptyContext(){return!je(this,Me,"f")}setContext(e){xe(this,Me,e,"f"),this._set(this.localStorages,"context",je(this,Me,"f"))}migrateToContext(e){return Re(this,void 0,void 0,(function*(){xe(this,Me,"","f");const[t,n,r]=yield Promise.all([this.loadPlayer(),this.loadSecretCode(),this.loadLanguage()]),i=n||(null==t?void 0:t.secretCode);return xe(this,Me,e,"f"),yield Promise.all([this.savePlayer(t),this.saveSecretCode(i),this.saveLanguage(r)]),xe(this,Me,"","f"),yield Promise.all([this.savePlayer(null),this.saveSecretCode(null),this.saveLanguage(null)]),[t,i]}))}clearContext(e){return Re(this,void 0,void 0,(function*(){const t=je(this,Me,"f");xe(this,Me,e,"f"),yield Promise.all([this.savePlayer(null),this.saveSecretCode(null),this.saveLanguage(null)]),xe(this,Me,t,"f")}))}extractFromContext(e){return Re(this,void 0,void 0,(function*(){const t=je(this,Me,"f");xe(this,Me,e,"f");const[n,r,i]=yield Promise.all([this.loadPlayer(),this.loadSecretCode(),this.loadLanguage()]),s=r||(null==n?void 0:n.secretCode);return xe(this,Me,t,"f"),[n,s,i]}))}copyFromContext(e,t){return Re(this,void 0,void 0,(function*(){const n=je(this,Me,"f"),[r,i,s]=yield this.extractFromContext(e);xe(this,Me,t,"f"),yield Promise.all([this.savePlayer(r),this.saveSecretCode(i),this.saveLanguage(s)]),xe(this,Me,n,"f")}))}loadPlayer(){return this.get(this.storages,"players").then((([e]=[null])=>e))}savePlayer(e){return this.set(this.storages,"players",[e]).catch(Te.kg.warn)}loadSecretCode(){return this.get(this.localStorages,"sk").catch(Te.kg.warn)}saveSecretCode(e){return this.set(this.localStorages,"sk",e).catch(Te.kg.warn)}loadLanguage(){return this.get(this.localStorages,"lang").catch((e=>(Te.kg.warn(e),null)))}saveLanguage(e){return this.set(this.localStorages,"lang",e).catch(Te.kg.warn)}loadConfig(){return this._get(this.localStorages,"config").then((e=>Object.assign(Object.assign({},Oe.lR),e))).catch((e=>(Te.kg.warn(e),Oe.lR)))}saveConfig(e){return this._set(this.localStorages,"config",e).catch(Te.kg.warn)}loadAdsInfo(){const e=this._get(this.localStorages,"adsInfo").then((e=>Object.assign(Object.assign({},Oe.GH),e))).catch((e=>(Te.kg.warn(e),Oe.GH)));return e.then((e=>this.temp.adsInfo=e)),e}saveAdsInfo(e){return this._set(this.localStorages,"adsInfo",e).catch(Te.kg.warn)}saveIsExistsShortcut(e){this.set(this.localStorages,"isExistsShortcut",e)}loadIsExistsShortcut(){return this.get(this.localStorages,"isExistsShortcut")}}Me=new WeakMap;var Le=a(6388),Fe=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}))};class Ne extends Error{constructor(){super("throttled invocation was canceled"),this.name="CanceledError"}}class De{constructor(e,t){this.canceled=!1;const n=new Promise((e=>{this.timeout=setTimeout(e,t),this.resolve=e}));this.ready=e.then((()=>n),(()=>n))}flush(){clearTimeout(this.timeout),this.resolve()}cancel(){this.canceled=!0,clearTimeout(this.timeout),this.resolve()}then(e){return this.ready.then((()=>{if(this.canceled)throw new Ne;return e()}))}}function qe(e,t,n={}){const r=null!=t&&Number.isFinite(t)?Math.max(t,0):0,i=n.getNextArgs||((e,t)=>t);let s,a=Promise.resolve(),o=new De(a,0),c=null;function h(){const t=s;c=null,s=null;const n=(()=>Fe(this,void 0,void 0,(function*(){return yield e.apply(this,t)})))();return o=new De(n,r),n}function l(...e){return s=s?i(s,e):e,c||(c=o.then(h.bind(this))),c}return l.cancel=()=>Fe(this,void 0,void 0,(function*(){const e=a;o.cancel(),c=null,s=null,a=Promise.resolve(),o=new De(a,0),yield e})),l.flush=()=>Fe(this,void 0,void 0,(function*(){o.flush(),yield a})),l}function Be(e){return function(t,n,r){const i=r.value;return r.value=qe(i,e),r}}qe.CanceledError=Ne;var Je=function(e,t,n,r){var i,s=arguments.length,a=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,n,a):i(t,n))||a);return s>3&&a&&Object.defineProperty(t,n,a),a},Ue=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}))};class We extends Le.Z{constructor(e){super(),this.gp=e}open(e={}){return Ue(this,void 0,void 0,(function*(){const[t]=yield Promise.all([this.fetch(e),this.gp.loadOverlay()]);this._events.emit("open"),yield this.gp.overlay.openLeaderboard(e,t),this._events.emit("close")}))}openScoped(e){return Ue(this,void 0,void 0,(function*(){const[t]=yield Promise.all([this.fetchScoped(e),this.gp.loadOverlay()]),n=Object.assign({},e),r=t.fields.map((e=>e.key));n.orderBy=e.includeFields?r.filter((t=>!e.includeFields.includes(t))):r,this._events.emit("open"),yield this.gp.overlay.openLeaderboard(n,t),this._events.emit("close")}))}fetch(e={}){return Ue(this,void 0,void 0,(function*(){const t=(0,c._)();this.gp.loader.inc();try{const{result:n,playerResult:r}=yield this.gp._leaderboardsService.getRating(e);n.players=ze(n.players,e.withMe,null==r?void 0:r.player),t.done(n),this._events.emit("fetch",n)}catch(e){t.abort(e),this._events.emit("error:fetch")}finally{this.gp.loader.dec()}return t.ready}))}fetchScoped(e){return Ue(this,void 0,void 0,(function*(){const t=(0,c._)();this.gp.loader.inc();try{const n=yield this.gp._leaderboardsService.getRatingVariant(e),{result:r,playerResult:i}=n;(0,l.tv)(r),(0,l.tv)(i),r.players=ze(r.players,e.withMe,null==i?void 0:i.player),t.done(r),this._events.emit("fetch",r)}catch(e){t.abort(e),this._events.emit("error:fetch")}finally{this.gp.loader.dec()}return t.ready}))}fetchPlayerRating(e={}){return Ue(this,void 0,void 0,(function*(){const t=(0,c._)();this.gp.loader.inc();try{const n=yield this.gp._leaderboardsService.getPlayerRating(e);t.done(n),this._events.emit("fetchPlayer",n)}catch(e){t.abort(e),this._events.emit("error:fetchPlayer",e)}finally{this.gp.loader.dec()}return t.ready}))}fetchPlayerRatingScoped(e){return Ue(this,void 0,void 0,(function*(){const t=(0,c._)();this.gp.loader.inc();try{const n=yield this.gp._leaderboardsService.getPlayerRatingVariant(e);t.done(n),this._events.emit("fetchPlayerScoped",n)}catch(e){t.abort(e),this._events.emit("error:fetchPlayerScoped",e)}finally{this.gp.loader.dec()}return t.ready}))}publishRecord(e){return Ue(this,void 0,void 0,(function*(){const t=(0,c._)();this.gp.loader.inc();try{const n=yield this.gp._leaderboardsService.publishRecord(e);t.done(n),this._events.emit("publishRecord",n)}catch(e){t.abort(e),this._events.emit("error:publishRecord",e)}finally{this.gp.loader.dec()}return t.ready}))}}function ze(e,t,n){if(!n||!t||"none"===t)return e;if(e.some((e=>e.id===n.id&&e.position===n.position)))return e;const r=e.length,i=n.position-1;if(e=e.filter((e=>e.id!==n.id)),i{t<=i||e.position++})),e.length>r&&e.pop();else switch(t){case"first":e.unshift(n);break;case"last":e.push(n)}return e}Je([Be(500)],We.prototype,"open",null),Je([Be(500)],We.prototype,"openScoped",null),Je([Be(500)],We.prototype,"fetch",null),Je([Be(500)],We.prototype,"fetchScoped",null),Je([Be(500)],We.prototype,"fetchPlayerRating",null),Je([Be(500)],We.prototype,"fetchPlayerRatingScoped",null),Je([Be(500)],We.prototype,"publishRecord",null);const Ge={data:e=>String(e||""),stats:e=>Number(e)||0,flag:e=>Boolean(e)||!1,service:null,accounts:null},Ke=["name","avatar"];class Ze extends Le.Z{constructor(e={},t){super(),this.credentials="",this.fields=t,this.fromJSON(e)}get id(){return this.state.id}get score(){return this.get("score")}set score(e){this.set("score",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get avatar(){return this.get("avatar")}set avatar(e){this.set("avatar",e)}get isStub(){return!this.fields.filter((e=>!Ke.includes(e.key))).some((e=>this.get(e.key)!==e.default))}fromJSON(e){var t,n,r,i;this.state={id:e.id||0,active:null===(t=e.active)||void 0===t||t,removed:null!==(n=e.removed)&&void 0!==n&&n,banned:null!==(r=e.banned)&&void 0!==r&&r,test:null!==(i=e.test)&&void 0!==i&&i,name:e.name||"",avatar:e.avatar||"",score:e.score||0},e.credentials&&(this.credentials=String(e.credentials)),this.fields.forEach((t=>{if(!(t.key in e))return void(this.state[t.key]=t.default);const n=Ge[t.type];if(!n)return void(this.state[t.key]=e[t.key]||t.default);const r=n(e[t.key]);this.state[t.key]=t.variants.length&&!t.variants.some((e=>e.value===r))?t.default:r})),this._events.emit("change")}toJSON(){return Object.assign({},this.state)}getField(e){const t=this.fields.find((t=>t.key===e));if(!t){const t=`Field "${e}" not exists on player model`;throw Te.kg.error(t),new Error(t)}return t}getFieldName(e){return this.getField(e).name||""}getFieldVariantName(e,t){var n;return(null===(n=this.getField(e).variants.find((e=>e.value===t)))||void 0===n?void 0:n.name)||""}get(e){return this.state[e]}set(e,t){const n=this.getField(e),r=Ge[n.type];if(!r){const t=`Cannot mutate "${e}", it's readonly`;throw Te.kg.error(t),new Error(t)}const i=r(t);if(n.variants.length&&!n.variants.some((e=>e.value===i))){const t=`Invalid variant ${i} of "${e}"`;throw Te.kg.error(t),new Error(t)}this.state[e]=i,this._events.emit("change")}add(e,t){return this.set(e,this.get(e)+t)}toggle(e){return this.set(e,!this.get(e))}has(e){return Boolean(this.get(e))}reset(){this.fields.forEach((e=>this.set(e.key,e.default)))}remove(){this.state.id=0,this.reset()}}var Ve,Ye,He,Xe,Qe,et=function(e,t,n,r){var i,s=arguments.length,a=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,n,a):i(t,n))||a);return s>3&&a&&Object.defineProperty(t,n,a),a},tt=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}))},nt=function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n},rt=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};class it extends Ze{constructor(e={},t,n,r,i){super(e,t),this.playerAdapter=n,this.gp=r,this.isLoggedIn=!1,this.isLoggedInByPlatform=!1,this.hasAnyCredentials=!1,this.secretCode="",this.tempSecredCode="",this._hasFirstSync=!1,this.isFirstRequest=!1,this.credentials="",Ve.set(this,{}),Ye.set(this,""),He.set(this,void 0),Xe.set(this,(function({silent:e=!0,override:t=!1}={}){return tt(this,void 0,void 0,(function*(){this.gp.loader.inc();const n=(0,c._)();this.gp._storage.savePlayer(this.toJSON()).catch(Te.kg.warn);try{let r;if(e?this._isRequredDataUpdate&&(r=this.playerAdapter.getPlayer()):r=this.playerAdapter.loginPlayer(this),r){const t=yield r.catch((e=>{if("cancelled"===(null==e?void 0:e.message))throw e;return{name:"",photoLarge:""}}));t.name&&!this.get("name")&&(this.name=t.name),t.photoLarge&&this._isRequredAvatarUpdate&&(this.avatar=t.photoLarge),e||(yield this._initContext())}const i=yield this.gp._playerService.sync({override:t,playerState:this.toJSON()},{withToken:this.isFirstRequest});switch(i.__typename){case"PlayerSyncConflict":{this.gp.loader.dec();const t=i;yield this.gp.loadOverlay();const r=yield this.gp.overlay.pickPlayerOnConflict(t);this.gp.loader.inc(),this.has("name")&&!r.name&&(r.name=this.get("name")),this.has("avatar")&&!r.avatar&&(r.avatar=this.get("avatar"));const s=yield this.gp._playerService.sync({playerState:r,override:!0},{withToken:this.isFirstRequest});if("Player"!==s.__typename)return void n.abort();e||this.setSecretCode(""),this.gp.overlay.close(),this.gp.achievements._setAchievementsList(s.achievements),this.gp.payments._setPurchasedList(s.purchasesList),this.setToken(s.token),this.fromJSON(s.state),nt(this,Ye,s.state.secretCode,"f"),rt(this,He,"f").call(this,this._authInfo),this.gp._storage.savePlayer(s.state),n.done(),yield this.checkLoggedIn(s.state);break}case"Player":{const{state:t,achievements:r,purchasesList:s,token:a}=i;e||this.setSecretCode(""),this.gp.achievements._setAchievementsList(r),this.gp.payments._setPurchasedList(s),this.setToken(a),this.fromJSON(t),nt(this,Ye,t.secretCode,"f"),rt(this,He,"f").call(this,this._authInfo),this.gp._storage.savePlayer(t),n.done(),yield this.checkLoggedIn(t),this.playerAdapter.publishRecord(t);break}}}catch(e){n.abort(e)}finally{this._hasFirstSync=!0,this.gp.loader.dec()}return n.ready.then((()=>this._events.emit("sync",!0))).catch((()=>this._events.emit("sync",!1))),n.ready}))})),Qe.set(this,(function(){return tt(this,void 0,void 0,(function*(){this.gp.loader.inc();try{const e=yield this.gp._playerService.getPlayer({withToken:!0});this.gp.achievements._setAchievementsList(e.achievements),this.gp.payments._setPurchasedList(e.purchasesList),this.setToken(e.token),this.fromJSON(e.state),nt(this,Ye,e.state.secretCode,"f"),rt(this,He,"f").call(this,this._authInfo),this.gp._storage.savePlayer(e.state),yield this.checkLoggedIn(e.state),this._events.emit("load",!0)}catch(e){Te.kg.error(e),this._events.emit("load",!1)}finally{this.gp.loader.dec()}}))}));const s=(0,c._)();this.ready=s.ready,nt(this,He,i,"f"),this._initContext().finally((()=>this._init(s)))}get avatar(){return this.get("avatar")||this.gp.generateAvatar(this.id,64)}set avatar(e){this.set("avatar",e)}get _isRequredDataUpdate(){return!this.get("name")||this._isRequredAvatarUpdate}get _isRequredAvatarUpdate(){const e=this.get("avatar");return!e||!this._hasFirstSync&&this.playerAdapter.isPlatformAvatar(e)}get _authInfo(){return Object.assign(Object.assign({},rt(this,Ve,"f")),{secretCode:this.secretCode||rt(this,Ye,"f")})}get(e){return"secretCode"===e?this.secretCode||rt(this,Ye,"f"):"credentials"===e?this.credentials||this.playerAdapter.userId:super.get(e)}_initContext(){return tt(this,void 0,void 0,(function*(){const{platformData:e,key:t}=yield this.playerAdapter.getPlayerContext().catch((e=>(Te.kg.error(e),{platformData:null,key:""})));nt(this,Ve,e||{},"f"),rt(this,He,"f").call(this,this._authInfo);const n=`,${this.gp.platform.type},${this.gp.isDev?"d":"p"},${t}`;if(null==e?void 0:e.savedState){Te.kg.info("found saved state...");const e=`,${this.gp.platform.type},${this.gp.isDev?"d":"p"},null`,[t]=yield this.gp._storage.extractFromContext(e);t&&(this.fromJSON(t),yield rt(this,Xe,"f").call(this),yield this.gp._storage.copyFromContext(n,e))}if(this.gp.platform.type===r.z.SMARTMARKET){const e=`,SBER_MARKET,${this.gp.isDev?"d":"p"},`,[t]=yield this.gp._storage.extractFromContext(e);t&&(delete t.platformType,this.fromJSON(t),yield rt(this,Xe,"f").call(this),yield this.gp._storage.clearContext(e))}if(this.gp.platform.type===r.z.POKI){const e=`,NONE,${this.gp.isDev?"d":"p"},`,[t]=yield this.gp._storage.extractFromContext(n);if(t&&(this.fromJSON(t),this.isStub)){const[t]=yield this.gp._storage.extractFromContext(e);t&&(delete t.platformType,t.id=this.id,this.fromJSON(t),yield rt(this,Xe,"f").call(this))}}if(this.gp.platform.type===r.z.VK_PLAY){const e=`,NONE,${this.gp.isDev?"d":"p"},`,[t]=yield this.gp._storage.extractFromContext(n);if(t&&(this.fromJSON(t),this.isStub)){const[t]=yield this.gp._storage.extractFromContext(e);t&&(delete t.platformType,t.id=this.id,this.fromJSON(t),yield rt(this,Xe,"f").call(this))}}if(!this.gp._storage.isEmptyOnBoot&&this.gp._storage.isEmptyContext()){Te.kg.info("Applying migration...");const[e,t]=yield this.gp._storage.migrateToContext(n);this.secretCode=t,this.fromJSON(e),nt(this,Ye,e.secretCode,"f"),rt(this,He,"f").call(this,this._authInfo),yield rt(this,Xe,"f").call(this)}this.gp._storage.setContext(n)}))}_init(e){return tt(this,void 0,void 0,(function*(){Promise.all([this.gp._storage.loadPlayer(),this.gp._storage.loadSecretCode(),this.gp.ready]).then((([t,n])=>{this.fromJSON(t||{}),nt(this,Ye,(null==t?void 0:t.secretCode)||"","f"),this.secretCode=n,rt(this,He,"f").call(this,this._authInfo),this.isFirstRequest=!0,(this.id?rt(this,Qe,"f").call(this):rt(this,Xe,"f").call(this)).finally((()=>{this.isFirstRequest=!1,e.done(),this._events.emit("ready"),this.isLoggedInByPlatform&&this.gp.payments._sync()}))}))}))}fetchFields(){return tt(this,void 0,void 0,(function*(){try{this.fields=(yield this.gp._playerService.fetchFields()).items,this._events.emit("fetchFields",!0)}catch(e){this._events.emit("fetchFields",!1)}}))}sync(e={}){return tt(this,void 0,void 0,(function*(){return rt(this,Xe,"f").call(this,e)}))}load(){return tt(this,void 0,void 0,(function*(){return rt(this,Qe,"f").call(this)}))}login(){return tt(this,void 0,void 0,(function*(){if(this.gp.platform._hasAuthModal)this.playerAdapter.loginPlayer(this);else try{yield this.gp.loadOverlay();const{type:e,secretCode:t}=yield this.gp.overlay.login();switch(e){case"PLATFORM_AUTH":yield rt(this,Xe,"f").call(this,{silent:!1}).then((()=>this._events.emit("login",!0))).catch((e=>{Te.kg.error(e),this._events.emit("login",!1)}));break;case"SECRET_KEY_AUTH_LOGIN":this.setSecretCode(t),yield rt(this,Qe,"f").call(this).then((()=>this._events.emit("login",!0))).catch((e=>{Te.kg.error(e),this._events.emit("login",!1)}))}this.gp.overlay.close()}catch(e){Te.kg.error(e),this._events.emit("login",!1)}}))}checkLoggedIn(e){return tt(this,void 0,void 0,(function*(){this.isStub?(this.tempSecredCode=e.secretCode,this.setSecretCode(e.secretCode)):this.tempSecredCode&&this.tempSecredCode===e.secretCode&&(this.setSecretCode(""),this.tempSecredCode=""),this.isLoggedInByPlatform=this.playerAdapter.hasCredetials,this.isLoggedIn=this.isLoggedInByPlatform,this.hasAnyCredentials=this.isLoggedIn||!!this.secretCode,this.secretCode&&this.secretCode!=e.secretCode&&this.setSecretCode(e.secretCode),this.hasAnyCredentials||(this.setSecretCode(e.secretCode),this.hasAnyCredentials=!0)}))}setSecretCode(e){this.secretCode=e,this.gp._storage.saveSecretCode(this.secretCode),rt(this,He,"f").call(this,this._authInfo)}setToken(e){e&&this.gp.channels._connect(e)}}Ve=new WeakMap,Ye=new WeakMap,He=new WeakMap,Xe=new WeakMap,Qe=new WeakMap,et([Be(300)],it.prototype,"fetchFields",null),et([Be(300)],it.prototype,"sync",null),et([Be(300)],it.prototype,"load",null);class st extends Le.Z{constructor(){super(),document.documentElement.addEventListener("fullscreenchange",(()=>{let e=this.isEnabled;this._events.emit("change",e),this._events.emit(e?"open":"close")}))}get isEnabled(){return Boolean(document.fullscreenElement||document.webkitFullscreenElement)}open(){this.isEnabled||(document.documentElement.requestFullscreen?document.documentElement.requestFullscreen():document.documentElement.webkitRequestFullscreen&&document.documentElement.webkitRequestFullscreen())}close(){this.isEnabled&&(document.exitFullscreen?document.exitFullscreen():document.webkitExitFullscreen&&document.webkitExitFullscreen())}toggle(){this.isEnabled?this.close():this.open()}}class at{constructor(){this.counters=[]}addCounter(e){return t=this,n=void 0,i=function*(){this.counters.push(e)},new((r=void 0)||(r=Promise))((function(e,s){function a(e){try{c(i.next(e))}catch(e){s(e)}}function o(e){try{c(i.throw(e))}catch(e){s(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,o)}c((i=i.apply(t,n||[])).next())}));var t,n,r,i}hit(e){this.counters.forEach((t=>t.hit(e)))}goal(e,t){this.counters.forEach((n=>n.goal(e,t)))}}var ot=a(4917),ct=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}))};class ht{constructor({counterId:e}){this.counterId=e;const t=window;t.ym=t.ym||function(){(t.ym.a=t.ym.a||[]).push(arguments),t.ym.l=Date.now()},t.ym(e,"init",{accurateTrackBounce:!0}),this.ym=window.ym,(0,ot.Z)({src:"https://mc.yandex.ru/metrika/tag.js"})}hit(e){return ct(this,void 0,void 0,(function*(){this.ym(this.counterId,"hit",e)}))}goal(e,t){return ct(this,void 0,void 0,(function*(){this.ym(this.counterId,"reachGoal",t?`${e}_${t}`:e)}))}}var lt=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}))};class ut{constructor({counterId:e}){this.counterId=e;const t=window;t.dataLayer=t.dataLayer||[],t.gtag=function(){t.dataLayer.push(arguments)},this.gtag("js",new Date),this.gtag("config",e,{send_page_view:!1}),(0,ot.Z)({src:`//www.googletagmanager.com/gtag/js?id=${e}`})}get gtag(){return window.gtag}hit(e){return lt(this,void 0,void 0,(function*(){this.gtag("event","page_view",{page_location:e,send_to:this.counterId})}))}goal(e,t){return lt(this,void 0,void 0,(function*(){this.gtag("event",e,t?{value:t}:void 0)}))}}var dt=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}))};class ft extends Le.Z{constructor(e,t){super(),this.adapter=e,this.gp=t}get isSupportsShare(){return this.adapter.isSupportsShare}get isSupportsNativeShare(){return this.adapter.isSupportsNativeShare}get isSupportsNativePosts(){return this.adapter.isSupportsNativePosts}get isSupportsNativeInvite(){return this.adapter.isSupportsNativeInvite}get isSupportShareParams(){return this.adapter.isSupportShareParams}get isSupportsNativeCommunityJoin(){return this.adapter.isSupportsNativeCommunityJoin}get canJoinCommunity(){return this.adapter.canJoinCommunity&&!!this.communityLink}get communityLink(){return this.gp.platform.config.communityLink}get shareParams(){return this.adapter.shareParams||{}}_getShareOptions(e){return{text:e.text||this.gp.app.title,image:e.image||"",url:e.url||this.gp.app.url}}_shareByOverlay(e,t){var n;return dt(this,void 0,void 0,(function*(){if(this.gp.isMobile)try{const e=this._getShareOptions(t),r=Object.assign({},e);if(e.image){const t=yield fetch(e.image).then((e=>e.blob()));r.files=[new File([t],"image.png",{type:t.type,lastModified:(new Date).getTime()})]}const i=window.navigator;if(null===(n=i.canShare)||void 0===n?void 0:n.call(i,r))return i.share(r)}catch(e){Te.kg.warn(e)}return yield this.gp.loadOverlay(),this.gp.overlay.share(e,this._getShareOptions(t))}))}share(e={}){return dt(this,void 0,void 0,(function*(){if(!this.isSupportsShare)return this._events.emit("share",!1),!1;const t=this.isSupportsNativeShare?this.adapter.share(this._getShareOptions(e)):this._shareByOverlay("share",e),n=yield t.catch((()=>!1));return this._events.emit("share",n),n}))}post(e={}){return dt(this,void 0,void 0,(function*(){if(!this.isSupportsShare)return this._events.emit("post",!1),!1;const t=this.isSupportsNativePosts?this.adapter.post(this._getShareOptions(e)):this._shareByOverlay("post",e),n=yield t.catch((()=>!1));return this._events.emit("post",n),n}))}invite(e={}){return dt(this,void 0,void 0,(function*(){if(!this.isSupportsShare)return this._events.emit("invite",!1),!1;const t=this.isSupportsNativeInvite?this.adapter.invite(this._getShareOptions(e)):this._shareByOverlay("invite",e),n=yield t.catch((()=>!1));return this._events.emit("invite",n),n}))}joinCommunity(){return dt(this,void 0,void 0,(function*(){if(!this.canJoinCommunity)return this._events.emit("joinCommunity",!1),!1;let e=!0;return this.isSupportsNativeCommunityJoin&&(e=yield this.adapter.joinCommunity(this.gp.platform.config.community)),window.open(this.communityLink,"_blank"),this._events.emit("joinCommunity",e),e}))}makeShareUrl(e={}){return!!this.isSupportShareParams&&(0===Object.keys(e).length?this.gp.app.url:this.adapter.makeShareUrl(e))}getShareParam(e){var t;return!!this.isSupportShareParams&&(null!==(t=this.adapter.getShareParam(e))&&void 0!==t?t:"")}}class pt extends Le.Z{constructor(e,t,n){super(),this.gp=e,this.adapter=t,this.config=n,this.title=this.config.project.name,this.description=this.config.project.description,this.image=this.config.project.icon}get url(){return this.config.platformConfig.gameLink||this.gp.platform.getSDK().appUrl}get canAddShortcut(){return this.adapter.canAddShortcut}addShortcut(){return e=this,t=void 0,r=function*(){const e=yield this.adapter.addShortcut();return this._events.emit("addShortcut",e),e},new((n=void 0)||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}));var e,t,n,r}}var gt,vt=a(584),mt=a(3080);function yt(e){return new Promise((function(t,n){e.oncomplete=e.onsuccess=function(){return t(e.result)},e.onabort=e.onerror=function(){return n(e.error)}}))}function wt(e,t){var n=indexedDB.open(e);n.onupgradeneeded=function(){return n.result.createObjectStore(t)};var r=yt(n);return function(e,n){return r.then((function(r){return n(r.transaction(t,e).objectStore(t))}))}}function bt(){return gt||(gt=wt("keyval-store","keyval")),gt}class Pt{constructor(e){this.projectId=e,this.isLocal=!0;try{this.store=wt(`gs-db-project-${this.projectId}`,"storage")}catch(e){Te.kg.error(e)}}set(e,t){return this.store?function(e,t){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:bt())("readwrite",(function(n){return n.put(t,e),yt(n.transaction)}))}(e,t,this.store).catch((()=>null)):Promise.resolve()}get(e){if(!this.store)return Promise.resolve(null);const t=(0,c._)({timeout:2e3});return function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:bt())("readonly",(function(t){return yt(t.get(e))}))}(e,this.store).then(t.done).catch((()=>t.done(null))),t.ready}}var _t,St=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}))},It=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};class Et{constructor(e){this.projectId=e,_t.set(this,void 0),this.isLocal=!0;try{!function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===r?i.call(e,n):i?i.value=n:t.set(e,n)}(this,_t,window.localStorage,"f")}catch(e){}}getKey(e){return`gs-db-project-${this.projectId}-${e}`}set(e,t){return St(this,void 0,void 0,(function*(){It(this,_t,"f").setItem(this.getKey(e),JSON.stringify(t))}))}get(e){return St(this,void 0,void 0,(function*(){try{return JSON.parse(It(this,_t,"f").getItem(this.getKey(e))||"null")}catch(e){}}))}}_t=new WeakMap;var kt,Ct=a(9631),$t=a(4687);class Mt{constructor(e){kt.set(this,void 0),function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===r?i.call(e,n):i?i.value=n:t.set(e,n)}(this,kt,e,"f")}fetch({id:e,tag:t,urlFrom:n}){return function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}(this,kt,"f").fetch("\nfragment project on Project {\n id\n url(from: $url)\n name(lang: $lang)\n description(lang: $lang)\n assets {\n icon {\n resources { src(w: 256, h: 256, crop: true) }\n }\n }\n}\nquery ($input: FetchPlayerGamesCollectionInput!, $lang: Lang, $url: String) {\n result: FetchPlayerGamesCollection(input: $input) {\n __typename\n ... on GamesCollection {\n id\n tag\n name(lang: $lang)\n description(lang: $lang)\n games { ...project }\n }\n ... on Problem { message }\n }\n}",{id:e,tag:t},{url:n})}}kt=new WeakMap;var Tt=a(1437),Ot=a(4835),Rt=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}))};const xt=e=>{var t;return(null===(t=null==e?void 0:e.resources[0])||void 0===t?void 0:t.src)||""},jt=e=>{var{assets:t}=e,n=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i0&&(this._events.emit("open"),yield this.gp.overlay.openGamesCollections(n).catch(Te.kg.error),this._events.emit("close"))}catch(e){this.gp.loader.dec(),Te.kg.error(e)}}else Te.kg.warn(`Not available on ${this.gp.platform.type}`)}))}fetch({id:e,tag:t}={tag:"ALL"}){return Rt(this,void 0,void 0,(function*(){if(!this.isAvailable)return void Te.kg.warn(`Not available on ${this.gp.platform.type}`);const n=(0,c._)();this.gp.loader.inc();try{const r=yield this.gp._gamesCollectionsService.fetch({id:e,tag:t,urlFrom:this.gp.app.url});if(!r)throw new Error("can't fetch GamesCollections list");const i=Object.assign(Object.assign({},r),{games:r.games.filter((e=>e.url)).map(jt)});i.games||Te.kg.warn("empty games collection"),n.done(i),this._events.emit("fetch",i)}catch(e){n.abort(e),this._events.emit("error:fetch")}finally{this.gp.loader.dec()}return n.ready}))}}var Ft,Nt,Dt,qt=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}))},Bt=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};class Jt{constructor(e){this.queryBuilder=e,Ft.set(this,{}),Nt.set(this,(function(e={},t){return qt(this,void 0,void 0,(function*(){const n=(0,c._)();e.limit=e.limit||10;try{const r=yield t(e),i=r.length===e.limit;Bt(this,Ft,"f")[this.queryBuilder(e)]=Object.assign(Object.assign({},e),{canLoadMore:i}),n.done({items:r,canLoadMore:i})}catch(e){n.abort(e)}return n.ready}))})),Dt.set(this,(function(e={},t){return qt(this,void 0,void 0,(function*(){const n=this.queryBuilder(e),r=Bt(this,Ft,"f")[n];if(!r)return yield this.fetch(e,t);if(!r.canLoadMore)return{items:[],canLoadMore:!1};const i=(0,c._)(),s=(r.offset||0)+(r.limit||0);r.limit=e.limit||r.limit;const a=Object.assign({},Bt(this,Ft,"f")[n]),o=Object.assign(Object.assign({},r),{offset:s});Bt(this,Ft,"f")[n]=o;try{const e=yield t(o),r=e.length===o.limit;Bt(this,Ft,"f")[n].canLoadMore=r,i.done({items:e,canLoadMore:r})}catch(e){Bt(this,Ft,"f")[n]=a,i.abort(e)}return i.ready}))}))}fetch(e={},t){return Bt(this,Nt,"f").call(this,e,t)}fetchMore(e={},t){return qt(this,void 0,void 0,(function*(){return Bt(this,Dt,"f").call(this,e,t)}))}}Ft=new WeakMap,Nt=new WeakMap,Dt=new WeakMap;var Ut,Wt,zt,Gt,Kt,Zt,Vt,Yt,Ht,Xt,Qt=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}))},en=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},tn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i["channels",(e.tags||[]).join(","),e.search||"",(e.ids||[]).join(","),e.onlyJoined||!1,e.onlyOwned||!1].join(":")))),Wt.set(this,new Jt((e=>`channelsMembers:${e.channelId}`))),zt.set(this,new Jt((e=>`invites:${e.channelId}`))),Gt.set(this,new Jt((e=>`channelsInvites:${e.channelId}`))),Kt.set(this,new Jt((e=>"sentInvites"))),Zt.set(this,new Jt((e=>`channelsJoinRequests:${e.channelId}`))),Vt.set(this,new Jt((e=>"sentJoinRequests"))),Yt.set(this,new Jt((e=>`channelsJoinRequests:${e.channelId}:${(e.tags||[]).join(",")}`))),Ht.set(this,new Jt((e=>`channelsJoinRequests:${e.playerId}:${(e.tags||[]).join(",")}`))),Xt.set(this,new Jt((e=>`channelsJoinRequests:${e.playerId}:${(e.tags||[]).join(",")}`)))}get canBeOnline(){return this._config.acl.canConnectOnline}get isMainChatEnabled(){return this._config.project.enableMainChat&&this.mainChatId>0}get mainChatId(){return this._config.project.mainChatId}_handleResponse(e,t){e.then((e=>this._events.emit(t,e))),e.catch((e=>{Te.kg.error(e),this._events.emit(`error:${t}`,e)}))}sendInvite(e){const t=this.gp._channelsService.invites.sendInvite(e);return this._handleResponse(t,"sendInvite"),t}cancelInvite(e){const t=this.gp._channelsService.invites.cancelInvite(e);return this._handleResponse(t,"cancelInvite"),t}acceptInvite(e){const t=this.gp._channelsService.invites.acceptInvite(e);return this._handleResponse(t,"acceptInvite"),t}rejectInvite(e){const t=this.gp._channelsService.invites.rejectInvite(e);return this._handleResponse(t,"rejectInvite"),t}join(e){const t=this.gp._channelsService.members.join(e);return this._handleResponse(t,"join"),t}leave(e){const t=this.gp._channelsService.members.leave(e);return this._handleResponse(t,"leave"),t}cancelJoin(e){const t=this.gp._channelsService.members.cancelJoin(e);return this._handleResponse(t,"cancelJoin"),t}acceptJoinRequest(e){const t=this.gp._channelsService.joinRequests.acceptJoinRequest(e);return this._handleResponse(t,"acceptJoinRequest"),t}rejectJoinRequest(e){const t=this.gp._channelsService.joinRequests.rejectJoinRequest(e);return this._handleResponse(t,"rejectJoinRequest"),t}fetchMessages(e){return Qt(this,void 0,void 0,(function*(){const t=en(this,Yt,"f").fetch(e,(e=>this.gp._channelsService.messages.fetchMessages(e).then((e=>e.items))));return this._handleResponse(t,"fetchMessages"),t}))}fetchMoreMessages(e){return Qt(this,void 0,void 0,(function*(){const t=en(this,Yt,"f").fetchMore(e,(e=>this.gp._channelsService.messages.fetchMessages(e).then((e=>e.items))));return this._handleResponse(t,"fetchMoreMessages"),t}))}fetchPersonalMessages(e){return Qt(this,void 0,void 0,(function*(){const t=en(this,Ht,"f").fetch(e,(e=>this.gp._channelsService.messages.fetchPersonalMessages(e).then((e=>e.items))));return this._handleResponse(t,"fetchPersonalMessages"),t}))}fetchMorePersonalMessages(e){return Qt(this,void 0,void 0,(function*(){const t=en(this,Ht,"f").fetchMore(e,(e=>this.gp._channelsService.messages.fetchPersonalMessages(e).then((e=>e.items))));return this._handleResponse(t,"fetchMorePersonalMessages"),t}))}fetchFeedMessages(e){return Qt(this,void 0,void 0,(function*(){const t=en(this,Xt,"f").fetch(e,(e=>this.gp._channelsService.messages.fetchFeedMessages(e).then((e=>e.items))));return this._handleResponse(t,"fetchFeedMessages"),t}))}fetchMoreFeedMessages(e){return Qt(this,void 0,void 0,(function*(){const t=en(this,Xt,"f").fetchMore(e,(e=>this.gp._channelsService.messages.fetchFeedMessages(e).then((e=>e.items))));return this._handleResponse(t,"fetchMoreFeedMessages"),t}))}sendMessage(e){const t=this.gp._channelsService.messages.sendMessage(e);return this._handleResponse(t,"sendMessage"),t}sendFeedMessage(e){const t=this.gp._channelsService.messages.sendFeedMessage(e);return this._handleResponse(t,"sendMessage"),t}sendPersonalMessage(e){const t=this.gp._channelsService.messages.sendPersonalMessage(e);return this._handleResponse(t,"sendMessage"),t}editMessage(e){const t=this.gp._channelsService.messages.editMessage(e);return this._handleResponse(t,"editMessage"),t}deleteMessage(e){const t=this.gp._channelsService.messages.deleteMessage(e);return this._handleResponse(t,"deleteMessage"),t}mute(e){var{seconds:t=0}=e;const n=tn(e,["seconds"]);if(t>0){const e=new Date;e.setSeconds(e.getSeconds()+t),n.unmuteAt=e.toISOString()}const r=this.gp._channelsService.members.mute(n);return this._handleResponse(r,"mute"),r}unmute(e){const t=this.gp._channelsService.members.unmute(e);return this._handleResponse(t,"unmute"),t}fetchMembers(e){return Qt(this,void 0,void 0,(function*(){const t=en(this,Wt,"f").fetch(e,(e=>this.gp._channelsService.members.fetchMembers(e).then((e=>e.players))));return this._handleResponse(t,"fetchMembers"),t}))}fetchMoreMembers(e){return Qt(this,void 0,void 0,(function*(){const t=en(this,Wt,"f").fetchMore(e,(e=>this.gp._channelsService.members.fetchMembers(e).then((e=>e.players))));return this._handleResponse(t,"fetchMoreMembers"),t}))}fetchInvites(e){return Qt(this,void 0,void 0,(function*(){const t=en(this,zt,"f").fetch(e,(e=>this.gp._channelsService.invites.fetchInvites(e).then((e=>e.items))));return this._handleResponse(t,"fetchInvites"),t}))}fetchMoreInvites(e){return Qt(this,void 0,void 0,(function*(){const t=en(this,zt,"f").fetchMore(e,(e=>this.gp._channelsService.invites.fetchInvites(e).then((e=>e.items))));return this._handleResponse(t,"fetchMoreInvites"),t}))}fetchChannelInvites(e){return Qt(this,void 0,void 0,(function*(){const t=en(this,Gt,"f").fetch(e,(e=>this.gp._channelsService.invites.fetchChannelInvites(e).then((e=>e.items))));return this._handleResponse(t,"fetchChannelInvites"),t}))}fetchMoreChannelInvites(e){return Qt(this,void 0,void 0,(function*(){const t=en(this,Gt,"f").fetchMore(e,(e=>this.gp._channelsService.invites.fetchChannelInvites(e).then((e=>e.items))));return this._handleResponse(t,"fetchMoreChannelInvites"),t}))}fetchSentInvites(e){return Qt(this,void 0,void 0,(function*(){const t=en(this,Kt,"f").fetch(e,(e=>this.gp._channelsService.invites.fetchSentInvites(e).then((e=>e.items))));return this._handleResponse(t,"fetchSentInvites"),t}))}fetchMoreSentInvites(e){return Qt(this,void 0,void 0,(function*(){const t=en(this,Kt,"f").fetchMore(e,(e=>this.gp._channelsService.invites.fetchSentInvites(e).then((e=>e.items))));return this._handleResponse(t,"fetchMoreSentInvites"),t}))}fetchJoinRequests(e){return Qt(this,void 0,void 0,(function*(){const t=en(this,Zt,"f").fetch(e,(e=>this.gp._channelsService.joinRequests.fetchJoinRequests(e).then((e=>e.items))));return this._handleResponse(t,"fetchJoinRequests"),t}))}fetchMoreJoinRequests(e){return Qt(this,void 0,void 0,(function*(){const t=en(this,Zt,"f").fetchMore(e,(e=>this.gp._channelsService.joinRequests.fetchJoinRequests(e).then((e=>e.items))));return this._handleResponse(t,"fetchMoreJoinRequests"),t}))}fetchSentJoinRequests(e){return Qt(this,void 0,void 0,(function*(){const t=en(this,Vt,"f").fetch(e,(e=>this.gp._channelsService.joinRequests.fetchSentJoinRequests(e).then((e=>e.items))));return this._handleResponse(t,"fetchSentJoinRequests"),t}))}fetchMoreSentJoinRequests(e){return Qt(this,void 0,void 0,(function*(){const t=en(this,Vt,"f").fetchMore(e,(e=>this.gp._channelsService.joinRequests.fetchSentJoinRequests(e).then((e=>e.items))));return this._handleResponse(t,"fetchMoreSentJoinRequests"),t}))}kick(e){const t=this.gp._channelsService.members.kick(e);return this._handleResponse(t,"kick"),t}openChat({id:e}={id:0}){return Qt(this,void 0,void 0,(function*(){let t=e;if(!e&&this._config.project.enableMainChat&&(t=this._config.project.mainChatId),t){this.gp.loader.inc();try{const e=this.gp.loadOverlay(),n=yield this.fetchChannel({channelId:t});if(!(n.ownerId===this.gp.player.id?n.ownerAcl:n.memberAcl).canViewMessages)return void Te.kg.error("access_denied");n.isJoined||(yield this.join({channelId:t}),n.membersCount+=1,n.membersOnlineCount+=1,n.isJoined=!0);const[r]=yield Promise.all([this.fetchMessages({channelId:t,limit:100}),e]);this.gp.loader.dec(),this._events.emit("openChat"),yield this.gp.overlay.openChat(n,r).catch(Te.kg.error),this._events.emit("closeChat")}catch(e){this._events.emit("error:openChat",e),this.gp.loader.dec(),Te.kg.error(e)}}else Te.kg.error("empty_channel_id")}))}fetchChannel(e){return Qt(this,void 0,void 0,(function*(){const t=this.gp._channelsService.channels.fetchChannel(e);return this._handleResponse(t,"fetchChannel"),t}))}fetchChannels(e){var{ids:t=[]}=e,n=tn(e,["ids"]);return Qt(this,void 0,void 0,(function*(){const e=n;(t=t.map((e=>Number(String(e).trim()))).filter(Boolean)).length>0&&(e.ids=t);const r=en(this,Ut,"f").fetch(n,(e=>this.gp._channelsService.channels.fetchChannels(e).then((e=>e.items))));return this._handleResponse(r,"fetchChannels"),r}))}fetchMoreChannels(e){var{ids:t=[]}=e,n=tn(e,["ids"]);return Qt(this,void 0,void 0,(function*(){const e=n;(t=null==t?void 0:t.map((e=>Number(String(e).trim()))).filter(Boolean)).length>0&&(e.ids=t);const r=en(this,Ut,"f").fetchMore(n,(e=>this.gp._channelsService.channels.fetchChannels(e).then((e=>e.items))));return this._handleResponse(r,"fetchMoreChannels"),r}))}createChannel(e){const t=this.gp._channelsService.channels.createChannel(e);return this._handleResponse(t,"createChannel"),t}updateChannel(e){const t=this.gp._channelsService.channels.updateChannel(e);return this._handleResponse(t,"updateChannel"),t}deleteChannel(e){const t=this.gp._channelsService.channels.deleteChannel(e);return this._handleResponse(t,"deleteChannel"),t}_connect(e){return Qt(this,void 0,void 0,(function*(){if(this._config.acl.canCollectStats||this.canBeOnline){const t=()=>this.gp._channelsService.ping(e);window.setInterval(t,3e4),t()}if(!this.canBeOnline)return;const t=new TextDecoder;(yield function(e,t,n,r){return i=this,s=void 0,c=function*(){const t=[{transport:"websocket",endpoint:"wss://ws.eponesh.com/connection/websocket?format=protobuf"},{transport:"http_stream",endpoint:"https://ws.eponesh.com/connection/http_stream?format=protobuf"},{transport:"sse",endpoint:"https://ws.eponesh.com/connection/sse?format=protobuf"}],{default:n}=yield a.e(72).then(a.bind(a,9965));return new n(t,{token:e,protocol:"protobuf",debug:!0})},new((o=void 0)||(o=Promise))((function(e,t){function n(e){try{a(c.next(e))}catch(e){t(e)}}function r(e){try{a(c.throw(e))}catch(e){t(e)}}function a(t){var i;t.done?e(t.value):(i=t.value,i instanceof o?i:new o((function(e){e(i)}))).then(n,r)}a((c=c.apply(i,s||[])).next())}));var i,s,o,c}(e)).on("connected",(e=>{console.info(`connected over ${e.transport}`)})).on("connecting",(function(e){console.info(`connecting: ${e.code}, ${e.reason}`)})).on("disconnected",(function(e){console.info(`disconnected: ${e.code}, ${e.reason}`)})).on("publication",(e=>{const n=JSON.parse(t.decode(e.data));(null==n?void 0:n.type)&&(this._events.emit("event",n),this._events.emit(n.type,n.data))})).connect()}))}}Ut=new WeakMap,Wt=new WeakMap,zt=new WeakMap,Gt=new WeakMap,Kt=new WeakMap,Zt=new WeakMap,Vt=new WeakMap,Yt=new WeakMap,Ht=new WeakMap,Xt=new WeakMap;var rn,sn=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}))},an=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};const on=`\n ... on PlayersTop {\n leaderboard {\n id\n tag\n name(lang: $lang),\n description(lang: $lang),\n shareText(lang: $lang),\n isAuthorizedOnly\n }\n players\n fields { ${h.S} }\n }\n`,cn=`\n ... on PlayerTop {\n player\n fields { ${h.S} }\n }\n`,hn=`\n ... on PlayerRecord {\n record\n fields { ${h.S} }\n }\n`,ln=`query ($input: FetchTopInput!, $lang: Lang, $withMe: Boolean!) {\n result: FetchTop(input: $input) {${(0,l.Mn)(on)}}\n playerResult: FetchPlayerRating(input: $input) @include(if: $withMe) {${(0,l.Mn)(cn)}}\n}`,un=`query ($input: FetchTopInput!, $lang: Lang) {\n result: FetchPlayerRating(input: $input) {${(0,l.Mn)(cn)}}\n}`,dn=`query ($input: FetchPlayerTopScopedInput!, $lang: Lang, $withMe: Boolean!) {\n result: FetchPlayerTopScoped(input: $input) {${(0,l.Mn)(on)}}\n playerResult: FetchPlayerRatingScoped(input: $input) @include(if: $withMe) {${(0,l.Mn)(cn)}}\n}`,fn=`query ($input: FetchPlayerTopScopedInput!, $lang: Lang) {\n result: FetchPlayerRatingScoped(input: $input) {${(0,l.Mn)(cn)}}\n}`,pn=`mutation ($input: PlayerPublishRecordInput!, $lang: Lang) {\n result: PlayerPublishRecord(input: $input) {${(0,l.Mn)(hn)}}\n}`;class gn{constructor(e){rn.set(this,void 0),function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===r?i.call(e,n):i?i.value=n:t.set(e,n)}(this,rn,e,"f")}getRating({orderBy:e=["score"],includeFields:t=[],order:n="DESC",limit:r=10,withMe:i="none"}){return sn(this,void 0,void 0,(function*(){return an(this,rn,"f").fetchMany(ln,{orderBy:e,order:n,limit:r,includeFields:t},{withMe:"none"!==i})}))}getPlayerRating({orderBy:e=["score"],includeFields:t=[],order:n="DESC",limit:r=10}){return sn(this,void 0,void 0,(function*(){return an(this,rn,"f").fetch(un,{orderBy:e,order:n,limit:r,includeFields:t})}))}getRatingVariant({id:e,tag:t,variant:n,includeFields:r=[],limit:i=10,withMe:s="none",order:a}){return sn(this,void 0,void 0,(function*(){return an(this,rn,"f").fetchMany(dn,{id:e,tag:t,variant:n,limit:i,includeFields:r,order:a},{withMe:"none"!==s})}))}getPlayerRatingVariant({id:e,tag:t,variant:n,includeFields:r=[],limit:i=10,order:s}){return sn(this,void 0,void 0,(function*(){return an(this,rn,"f").fetch(fn,{id:e,tag:t,variant:n,limit:i,includeFields:r,order:s})}))}publishRecord({id:e,tag:t,variant:n,record:r,override:i}){return sn(this,void 0,void 0,(function*(){return an(this,rn,"f").fetch(pn,{id:e,tag:t,variant:n,record:r,override:i})}))}}rn=new WeakMap;var vn;class mn{constructor(e){vn.set(this,void 0),function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===r?i.call(e,n):i?i.value=n:t.set(e,n)}(this,vn,e,"f")}fetch({type:e,format:t}){return function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}(this,vn,"f").fetch("query($input: FetchPlayerDocumentInput!, $lang: Lang, $format: DocumentFormat) {\n result: FetchPlayerDocument(input: $input) {\n __typename\n ... on Problem { message }\n ... on Document {\n type\n content(lang: $lang, format: $format)\n }\n }\n}",{type:e},{format:t})}}vn=new WeakMap;var yn=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}))};class wn extends Le.Z{constructor(e){super(),this.gp=e}open({type:e}){return yn(this,void 0,void 0,(function*(){this.gp.loader.inc();try{const[t]=yield Promise.all([this.fetch({type:e}),this.gp.loadOverlay(),(0,Tt.p)(Ot.Z.app.trophy).catch(Te.kg.error)]);this.gp.loader.dec(),t?(t.format="HTML",this._events.emit("open"),yield this.gp.overlay.openDocument(t).catch(Te.kg.error),this._events.emit("close")):Te.kg.error(new Error("document not found"))}catch(e){this.gp.loader.dec(),Te.kg.error(e)}}))}fetch({type:e,format:t="HTML"}){return yn(this,void 0,void 0,(function*(){const n=(0,c._)();this.gp.loader.inc();try{const r=yield this.gp._documentsService.fetch({type:e,format:t});if(!r)throw new Error("can't fetch privacy policy");r.format=t,n.done(r),this._events.emit("fetch",r)}catch(e){n.abort(e),this._events.emit("error:fetch",e)}finally{this.gp.loader.dec()}return n.ready}))}}var bn,Pn=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};const _n={data:e=>String(e||""),stats:e=>Number(e)||0,flag:e=>Boolean(e)||!1,image:e=>String(e||""),doc_html:e=>String(e||""),file:e=>String(e||"")};class Sn extends Le.Z{constructor(e,t){super(),this.gp=e,this.state={},this.list=[],bn.set(this,(function(e){this.state={},this.list=e,e.forEach((e=>{var t;const n=(null===(t=_n[e.type])||void 0===t?void 0:t.call(_n,e.value))||e.value;this.state[e.key]=n})),this._events.emit("change")})),Pn(this,bn,"f").call(this,t)}get(e){return this.state[e]}has(e){return Boolean(this.get(e))}type(e){var t;return(null===(t=this.list.find((t=>t.key===e)))||void 0===t?void 0:t.type)||"data"}fetch(){return e=this,t=void 0,r=function*(){try{const e=(yield this.gp._projectService.fetchVariables()).items;return Pn(this,bn,"f").call(this,e),this._events.emit("fetch",e),e}catch(e){Te.kg.error(e),this._events.emit("error:fetch",e)}},new((n=void 0)||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}));var e,t,n,r}}bn=new WeakMap,function(e,t,n,r){var i,s=arguments.length,a=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,n,a):i(t,n))||a);s>3&&a&&Object.defineProperty(t,n,a)}([Be(300)],Sn.prototype,"fetch",null);var In,En=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};const kn="\n id: _id\n playerId\n src\n tags\n width\n height\n",Cn=`\n ... on ImagesList {\n items { ${kn} }\n }\n`,$n=`\n ... on Image { ${kn} }\n`,Mn=`query($input: FetchPlayerImagesInput!) {\n result: FetchPlayerImages(input: $input) { ${(0,l.Mn)(Cn)} }\n}`,Tn=`mutation($input: UploadPlayerImageInput!) {\n result: UploadPlayerImage(input: $input) { ${(0,l.Mn)($n)} }\n}`;class On{constructor(e){In.set(this,void 0),function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===r?i.call(e,n):i?i.value=n:t.set(e,n)}(this,In,e,"f")}fetch({playerId:e,limit:t,offset:n,tags:r}){return En(this,In,"f").fetch(Mn,{playerId:e,limit:t,offset:n,tags:r})}upload({file:e,tags:t,accessPayload:n}){return En(this,In,"f").fetch(Tn,{file:e,tags:t,accessPayload:n})}}In=new WeakMap;const Rn=2048,xn=/cdn.(eponesh|gamepush).com\/static(\/([\d\-]+.)([\d\-]+.)|)\/(.*)/,jn=/-(\d+)x(\d+)\.\w+$/;var An,Ln,Fn,Nn,Dn=function(e,t,n,r){var i,s=arguments.length,a=s<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,n,r);else for(var o=e.length-1;o>=0;o--)(i=e[o])&&(a=(s<3?i(a):s>3?i(t,n,a):i(t,n))||a);return s>3&&a&&Object.defineProperty(t,n,a),a},qn=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}))},Bn=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)},Jn=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);ie.blob()));return t(Object.assign(Object.assign({},i),{file:new File([e],r,{type:e.type})}))}catch(e){throw Te.kg.error(e),e}}))})),Nn.set(this,(function(e,t){return qn(this,void 0,void 0,(function*(){const{content:n,filename:r}=e,i=Jn(e,["content","filename"]);if(!n.trim())throw Te.kg.error(Wn),new Error(Wn);if(!r)throw Te.kg.error(zn),new Error(zn);return t(Object.assign(Object.assign({},i),{file:new File([n],r)}))}))}));const{openFile:e}=function(){let e=null;const t=document.createElement("input");t.type="file",t.id="gp-file-input",t.style.cssText="position: fixed; top: -999px; left: -999px; z-index: 0;",t.onchange=e=>r(e.target),t.tabIndex=-1,document.body.appendChild(t);const n=()=>{setTimeout((()=>e.done(null)),1e3),document.body.removeEventListener("focus",n,!0)},r=t=>{const[r]=t.files?Array.from(t.files):[];document.body.removeEventListener("focus",n,!0),e.done(r)};return{input:t,openFile:(r="*")=>{return i=this,s=void 0,o=function*(){null==e||e.abort(),e=(0,c._)(),t.accept=r,t.click(),document.body.addEventListener("focus",n,!0);const i=yield e.ready;if(i)return i;throw new Error("cancelled")},new((a=void 0)||(a=Promise))((function(e,t){function n(e){try{c(o.next(e))}catch(e){t(e)}}function r(e){try{c(o.throw(e))}catch(e){t(e)}}function c(t){var i;t.done?e(t.value):(i=t.value,i instanceof a?i:new a((function(e){e(i)}))).then(n,r)}c((o=o.apply(i,s||[])).next())}));var i,s,a,o}}}();!function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===r?i.call(e,n):i?i.value=n:t.set(e,n)}(this,An,e,"f")}chooseFile(e){return qn(this,void 0,void 0,(function*(){const t=(0,c._)();try{const n=yield Bn(this,An,"f").call(this,e),r=URL.createObjectURL(n);Bn(this,Ln,"f")[r]=n,t.done({file:n,tempUrl:r})}catch(e){t.abort(e)}return t.ready}))}upload(e,t){return qn(this,void 0,void 0,(function*(){const n=(0,c._)();try{e.file||(e.file=yield Bn(this,An,"f").call(this,e.accept));const r=yield t(e);n.done(r)}catch(e){n.abort(e)}return n.ready}))}uploadUrl(e,t){return qn(this,void 0,void 0,(function*(){return Bn(this,Fn,"f").call(this,e,t)}))}uploadContent(e,t){return qn(this,void 0,void 0,(function*(){return Bn(this,Nn,"f").call(this,e,t)}))}}function Kn(e){return`p${e.playerId||0}:${(e.tags||[]).join(",")}`}An=new WeakMap,Ln=new WeakMap,Fn=new WeakMap,Nn=new WeakMap,Dn([Be(300)],Gn.prototype,"uploadUrl",null),Dn([Be(300)],Gn.prototype,"uploadContent",null);var Zn,Vn=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}))},Yn=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};const Hn="image/png,.jpeg,.jpg";class Xn extends Le.Z{constructor(e,t){super(),this.gp=e,this.acl=t,Zn.set(this,new Gn)}get canUpload(){return this.acl.canUploadImages}resize(e,t,n,r){return function(e,t,n,r){const i=xn.exec(e);if(!i)return e;const[s,a]=function(e){const t=jn.exec(e);return t?[Number(t[1])||0,Number(t[2])||0]:[0,0]}(e);s&&t>s&&(t=s),a&&n>a&&(n=a),t>Rn&&(t=Rn),n>Rn&&(n=Rn);const[,o,,,,c]=i;return`https://cdn.${o}.com/static/${t||"-"}x${n||"-"}${r?"crop":""}/${c}`}(e,t,n,r)}chooseFile(){return Vn(this,void 0,void 0,(function*(){const e=Yn(this,Zn,"f").chooseFile(Hn);return e.then((e=>this._events.emit("choose",e))),e.catch((e=>this._events.emit("error:choose",e))),e}))}upload(e={}){const t=Yn(this,Zn,"f").upload(Object.assign(Object.assign({},e),{accept:Hn}),(e=>Vn(this,void 0,void 0,(function*(){const t=yield this.gp.platform.requestPermissions({allowUploadImages:!0});if(!t.success)throw new Error("permission_not_allowed_by_user");return this.gp._imagesService.upload(Object.assign(Object.assign({},e),{accessPayload:t.payload}))}))));return this.gp.loader.inc(),t.then((e=>this._events.emit("upload",e))),t.catch((e=>this._events.emit("error:upload",e))),t.finally((()=>this.gp.loader.dec())),t}uploadUrl(e={url:""}){return Vn(this,void 0,void 0,(function*(){return Yn(this,Zn,"f").uploadUrl(Object.assign(Object.assign({},e),{filename:"image"}),(e=>this.upload(e)))}))}fetch(e={}){return Vn(this,void 0,void 0,(function*(){const t=Yn(this,Zn,"f").fetch(e,(e=>this.gp._imagesService.fetch(e).then((e=>e.items))));return this.gp.loader.inc(),t.then((e=>this._events.emit("fetch",e))),t.catch((e=>this._events.emit("error:fetch",e))),t.finally((()=>this.gp.loader.dec())),t}))}fetchMore(e={}){return Vn(this,void 0,void 0,(function*(){const t=Yn(this,Zn,"f").fetchMore(e,(e=>this.gp._imagesService.fetch(e).then((e=>e.items))));return this.gp.loader.inc(),t.then((e=>this._events.emit("fetchMore",e))),t.catch((e=>this._events.emit("error:fetchMore",e))),t.finally((()=>this.gp.loader.dec())),t}))}}Zn=new WeakMap;var Qn,er=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};const tr="\n id: _id\n playerId\n src\n size\n name\n tags\n",nr=`\n ... on FilesList {\n items { ${tr} }\n }\n`,rr=`\n ... on File { ${tr} }\n`,ir=`query($input: FetchPlayerFilesInput!) {\n result: FetchPlayerFiles(input: $input) { ${(0,l.Mn)(nr)} }\n}`,sr=`mutation($input: UploadPlayerFileInput!) {\n result: UploadPlayerFile(input: $input) { ${(0,l.Mn)(rr)} }\n}`;class ar{constructor(e){Qn.set(this,void 0),function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===r?i.call(e,n):i?i.value=n:t.set(e,n)}(this,Qn,e,"f")}fetch({playerId:e,limit:t,offset:n,tags:r}){return er(this,Qn,"f").fetch(ir,{playerId:e,limit:t,offset:n,tags:r})}upload({file:e,tags:t}){return er(this,Qn,"f").fetch(sr,{file:e,tags:t})}}Qn=new WeakMap;var or,cr=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}))},hr=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};class lr extends Le.Z{constructor(e,t){super(),this.gp=e,this.acl=t,or.set(this,new Gn)}get canUpload(){return this.acl.canUploadFiles}chooseFile(e){return cr(this,void 0,void 0,(function*(){const t=hr(this,or,"f").chooseFile(e);return t.then((e=>this._events.emit("choose",e))),t.catch((e=>this._events.emit("error:choose",e))),t}))}upload(e){return cr(this,void 0,void 0,(function*(){const t=hr(this,or,"f").upload(e,(e=>this.gp._filesService.upload(e)));return this.gp.loader.inc(),t.then((e=>this._events.emit("upload",e))),t.catch((e=>this._events.emit("error:upload",e))),t.finally((()=>this.gp.loader.dec())),t}))}uploadContent(e){return cr(this,void 0,void 0,(function*(){return hr(this,or,"f").uploadContent(e,(e=>this.upload(e)))}))}uploadUrl(e){return cr(this,void 0,void 0,(function*(){return hr(this,or,"f").uploadUrl(e,(e=>this.upload(e)))}))}loadContent(e){return cr(this,void 0,void 0,(function*(){const t=fetch(new URL(e).toString()).then((t=>{if(t.ok)return t.text();throw new Error(`Failed to load ${e}, errorCode: ${t.status}`)}));return this.gp.loader.inc(),t.then((e=>this._events.emit("loadContent",e))),t.catch((e=>this._events.emit("error:loadContent",e))),t.finally((()=>this.gp.loader.dec())),t}))}fetch(e={}){return cr(this,void 0,void 0,(function*(){const t=hr(this,or,"f").fetch(e,(e=>this.gp._filesService.fetch(e).then((e=>e.items))));return this.gp.loader.inc(),t.then((e=>this._events.emit("fetch",e))),t.catch((e=>this._events.emit("error:fetch",e))),t.finally((()=>this.gp.loader.dec())),t}))}fetchMore(e={}){return cr(this,void 0,void 0,(function*(){const t=hr(this,or,"f").fetchMore(e,(e=>this.gp._filesService.fetch(e).then((e=>e.items))));return this.gp.loader.inc(),t.then((e=>this._events.emit("fetchMore",e))),t.catch((e=>this._events.emit("error:fetchMore",e))),t.finally((()=>this.gp.loader.dec())),t}))}}or=new WeakMap;var ur=a(1049);class dr extends Le.Z{constructor(e){super(),this.gp=e}fetch({ids:e}){return t=this,n=void 0,i=function*(){if(0===e.map(Number).filter(Boolean).length)throw Te.kg.error("empty_ids"),new Error("empty_ids");const t=(0,c._)();return this.gp.loader.inc(),t.ready.then((e=>this._events.emit("fetch",e))).catch((e=>this._events.emit("fetch:error",e))),this.gp._playerService.fetchPlayers({ids:e}).then(t.done).catch(t.abort).finally((()=>this.gp.loader.dec())),t.ready},new((r=void 0)||(r=Promise))((function(e,s){function a(e){try{c(i.next(e))}catch(e){s(e)}}function o(e){try{c(i.throw(e))}catch(e){s(e)}}function c(t){var n;t.done?e(t.value):(n=t.value,n instanceof r?n:new r((function(e){e(n)}))).then(a,o)}c((i=i.apply(t,n||[])).next())}));var t,n,r,i}}let fr;try{new EventTarget,fr=!0}catch(e){fr=!1}var pr=fr?EventTarget:class{constructor(){this.e={}}addEventListener(e,t,n=!1){this.t(e).push(t)}removeEventListener(e,t,n=!1){const r=this.t(e),i=r.indexOf(t);i>-1&&r.splice(i,1)}dispatchEvent(e){return e.target=this,Object.freeze(e),this.t(e.type).forEach((t=>t(e))),!0}t(e){return this.e[e]=this.e[e]||[]}},gr=fr?Event:class{constructor(e){this.type=e}};class vr extends gr{constructor(e,t){super(e),this.newState=t.newState,this.oldState=t.oldState,this.originalEvent=t.originalEvent}}const mr="active",yr="passive",wr="hidden",br="frozen",Pr="terminated",_r="object"==typeof safari&&safari.pushNotification,Sr=["focus","blur","visibilitychange","freeze","resume","pageshow","onpageshow"in self?"pagehide":"unload"],Ir=e=>(e.preventDefault(),e.returnValue="Are you sure?"),Er=[[mr,yr,wr,Pr],[mr,yr,wr,br],[wr,yr,mr],[br,wr],[br,mr],[br,yr]].map((e=>e.reduce(((e,t,n)=>(e[t]=n,e)),{}))),kr=()=>document.visibilityState===wr?wr:document.hasFocus()?mr:yr,Cr=new class extends pr{constructor(){super();const e=kr();this.s=e,this.i=[],this.a=this.a.bind(this),Sr.forEach((e=>addEventListener(e,this.a,!0))),_r&&addEventListener("beforeunload",(e=>{this.n=setTimeout((()=>{e.defaultPrevented||e.returnValue.length>0||this.r(e,wr)}),0)}))}get state(){return this.s}get pageWasDiscarded(){return document.wasDiscarded||!1}addUnsavedChanges(e){!this.i.indexOf(e)>-1&&(0===this.i.length&&addEventListener("beforeunload",Ir),this.i.push(e))}removeUnsavedChanges(e){const t=this.i.indexOf(e);t>-1&&(this.i.splice(t,1),0===this.i.length&&removeEventListener("beforeunload",Ir))}r(e,t){if(t!==this.s){const n=((e,t)=>{for(let n,r=0;n=Er[r];++r){const r=n[e],i=n[t];if(r>=0&&i>=0&&i>r)return Object.keys(n).slice(r,i+1)}return[]})(this.s,t);for(let t=0;t{t.childNodes.forEach((e=>{e.style.opacity="0"})),setTimeout((()=>{t.remove()}),1e3*e)}))}(n),function(e){const t=document.createElement("div");document.body.style.setProperty("background","transparent","important"),t.classList.add("gp-custom-background"),function(e,t){const n=document.createElement("div");n.style.cssText=`\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n bottom: 0;\n z-index: -1;\n background: transparent;\n backdrop-filter: blur(${e.blur}px);\n \n transition: ${e.fade}s;\n `,n.classList.add("gp-custom-background-blur"),t.append(n)}(e,t),function(e,t){const n=document.createElement("div");n.style.cssText=`\n background-image: url(${e.url});\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n width: 100%;\n height: 100%;\n position: absolute;\n top: 0;\n bottom: 0;\n z-index: -2;\n opacity: 0;\n transition: ${e.fade}s;\n `,n.classList.add("gp-custom-background-img"),t.append(n),setTimeout((()=>{n.style.opacity="1"}),100)}(e,t),document.body.append(t)}({url:e,blur:t,fade:n})):Te.kg.warn("Empty background url")}class Tr{getLanguage(){return e=this,t=void 0,r=function*(){const e=decodeURIComponent(window.location.toString()),t=/_gp_lang=(?\w{2})/.exec(e);return t?t.groups.lang:null},new((n=void 0)||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}));var e,t,n,r}}var Or;class Rr{constructor(){Or.set(this,[new Tr])}getLanguage(){return e=this,t=void 0,r=function*(){for(const e of function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)}(this,Or,"f")){const t=yield e.getLanguage();if(null!==t)return(0,Oe.Ff)(t.toLowerCase()).unwrapOr(null)}return null},new((n=void 0)||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}));var e,t,n,r}}Or=new WeakMap;var xr,jr,Ar,Lr,Fr=function(e,t,n,r){return new(n||(n=Promise))((function(i,s){function a(e){try{c(r.next(e))}catch(e){s(e)}}function o(e){try{c(r.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,o)}c((r=r.apply(e,t||[])).next())}))},Nr=function(e,t,n,r,i){if("m"===r)throw new TypeError("Private method is not writable");if("a"===r&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof t?e!==t||!i:!t.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return"a"===r?i.call(e,n):i?i.value=n:t.set(e,n),n},Dr=function(e,t,n,r){if("a"===n&&!r)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof t?e!==t||!r:!t.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===n?r:"a"===n?r.call(e):r?r.value:t.get(e)};class qr extends Le.Z{constructor(){super(),this.setBackground=Mr,this.isPaused=!1,this.isGameplay=!1,this.logger=Te.kg,xr.set(this,void 0),jr.set(this,void 0),Ar.set(this,void 0),Lr.set(this,void 0);const e=(0,c._)();this.ready=e.ready;const i=new URL(document.currentScript.src).searchParams;this.projectId=Number(i.get("projectId"));const s=i.get("publicToken"),o=i.get("callback")||"onGPInit";this.ready.then((e=>{var t,n,r,i;null===(n=(t=window)[o])||void 0===n||n.call(t,e),"onGSInit"!==o&&(null===(i=(r=window).onGSInit)||void 0===i||i.call(r,e))})),this.fullscreen=new st,this.analytics=new at,this.leaderboard=new We(this),this.gamesCollections=new Lt(this),this.documents=new wn(this),this.players=new dr(this),this.isMobile=t()({tablet:!0,featureDetect:!0});const l=navigator.language.slice(0,2).toLowerCase(),u=Object.values(Oe.Uo).includes(l)?l:null,d=function(){const e=new URL(window.location.href),{searchParams:t,hostname:n}=e;return t.has("_platform")?t.get("_platform"):function(e){return!!e.hostname.includes(["games","s3","yandex","net"].join("."))||!!e.hash.includes("origin=https")&&(e.hash.includes("app-id=")||e.searchParams.has("app-id"))}(e)?r.z.YANDEX:n.includes("gamemonetize.co")?r.z.GAME_MONETIZE:n.includes("gamedistribution.co")?r.z.GAME_DISTRIBUTION:n.includes("crazygames.com")?r.z.CRAZY_GAMES:n.includes(".gamepix.com")?r.z.GAMEPIX:n.includes("poki.com")||t.has("pokiDebug")||n.includes("poki-gdn.com")?r.z.POKI:t.has("api_id")&&t.has("viewer_id")&&t.has("auth_key")||t.get("vk_user_id")&&t.get("sign")&&t.get("vk_app_id")?r.z.VK:t.has("auth_sig")&&t.has("session_key")?r.z.OK:n.includes("static.developer.sberdevices.ru")||Array.isArray(window.appInitialData)&&window.appInitialData.some((e=>"app_context"===(null==e?void 0:e.type)))?r.z.SMARTMARKET:function(e){const{searchParams:t}=e;if(!(t.get("lang")||"").includes("_"))return!1;if(!t.has("currency"))return!1;if(t.has("uid")&&t.has("sign")&&t.has("appid"))return!0;const n=t.get("status");return Number(t.get("appid"))>0||n.length>0&&!Number.isNaN(t.get("status"))}(e)?r.z.VK_PLAY:r.z.NONE}();Nr(this,Ar,new g("https://api.eponesh.com/gs/api",this.projectId,s,u||Oe.Uo.EN,d),"f");const f=e=>{Dr(this,Ar,"f").setPlayerData(e)};var p,v;this._playerService=new h.Z(Dr(this,Ar,"f")),this._channelsService=new Ie(Dr(this,Ar,"f")),this._leaderboardsService=new gn(Dr(this,Ar,"f")),this._projectService=new Oe.ZP(Dr(this,Ar,"f")),this._achievementsService=new vt.ZP(Dr(this,Ar,"f")),this._paymentsService=new Ct.ZP(Dr(this,Ar,"f")),this._gamesCollectionsService=new Mt(Dr(this,Ar,"f")),this._documentsService=new mn(Dr(this,Ar,"f")),this._imagesService=new On(Dr(this,Ar,"f")),this._filesService=new ar(Dr(this,Ar,"f")),Nr(this,xr,new Rr,"f"),function({platformType:e,tools:t}){return function(e,t){switch(e){case r.z.YANDEX:return a.e(755).then(a.bind(a,2855)).then((e=>e.default(t)));case r.z.VK:return a.e(911).then(a.bind(a,1440)).then((e=>e.default(t)));case r.z.OK:return a.e(614).then(a.bind(a,1069)).then((e=>e.default(t)));case r.z.GAME_MONETIZE:return a.e(369).then(a.bind(a,3978)).then((e=>e.default(t)));case r.z.GAMEPIX:return a.e(477).then(a.bind(a,5940)).then((e=>e.default(t)));case r.z.POKI:return a.e(477).then(a.bind(a,449)).then((e=>e.default(t)));case r.z.GAME_DISTRIBUTION:return a.e(860).then(a.bind(a,3102)).then((e=>e.default(t)));case r.z.CRAZY_GAMES:return a.e(433).then(a.bind(a,1229)).then((e=>e.default(t)));case r.z.SMARTMARKET:return a.e(552).then(a.bind(a,5122)).then((e=>e.default(t)));case r.z.VK_PLAY:return a.e(70).then(a.bind(a,558)).then((e=>e.default(t)));case r.z.NONE:default:return a.e(477).then(a.bind(a,254)).then((e=>e.default(t)))}}(e,t)}({platformType:d,tools:{gp:this,setupStorage:e=>{const t=[new Pt(this.projectId),...e];try{null!==window.localStorage&&t.push(new Et(this.projectId))}catch(e){}return this._storage=new Ae(t),this._storage.ready},fetchConfig:e=>Fr(this,void 0,void 0,(function*(){yield this._storage.ready;const[t,n,r,i]=yield Promise.all([this._storage.loadLanguage(),this._storage.loadConfig(),this._storage.loadAdsInfo(),Dr(this,xr,"f").getLanguage()]);return t||this._storage.saveLanguage(null),this.language=i||t||e||u||Oe.Uo.EN,Dr(this,Ar,"f").setLang(this.language),this._projectService.fetchConfig().then((e=>e||n)).catch((e=>(console.error(e),n)))}))}}).then((t=>Fr(this,void 0,void 0,(function*(){const{adsAdapter:i,playerAdapter:s,platformAdapter:o,socialsAdapter:c,paymentsAdapter:h,projectConfig:l,appAdapter:u}=t;Nr(this,jr,l,"f"),d!==r.z.GAMEPIX&&(l.config.ymCounterId&&this.analytics.addCounter(new ht({counterId:l.config.ymCounterId})),l.config.gtagCounterId&&this.analytics.addCounter(new ut({counterId:l.config.gtagCounterId}))),this.avatarGenerator=l.config.avatarGenerator,this.avatarGeneratorTemplate=l.config.avatarGeneratorTemplate,this.loader=function(e){let t=0;const n=document.createElement("div");function r(){n.style.display=t>0?"flex":"none"}return n.classList.add("gs-global-loader"),n.innerHTML=`
\n
\n
\n
`,document.body.appendChild(n),{inc(){t+=1,r()},dec(){t=t<=0?0:t-1,r()}}}(l.config.showLoader),this._storage.saveConfig(l),this.platform=new Ee(l.platformConfig,o),this.ads=new n.Z(this,i,l),this.app=new pt(this,u,l),this.socials=new ft(c,this),this.channels=new nn(this,l),this.player=new it({},l.playerFields,s,this,f),this.payments=new $t.Z(this,h),this.variables=new Sn(this,l.gameVariables||[]),this.images=new Xn(this,l.acl),this.files=new lr(this,l.acl),this.achievements=new mt.Z(this,l.project.achievements),Nr(this,Lr,Date.parse(l.serverTime),"f"),setInterval((()=>Nr(this,Lr,Dr(this,Lr,"f")+1e3,"f")),1e3),this.isDev?(this.devtools=yield Promise.all([a.e(690),a.e(9),a.e(863)]).then(a.bind(a,5169)).then((e=>e.default(this,l))),l.config.showReqCounter&&Dr(this,Ar,"f").addCounterListener((e=>{this.devtools.showCounter(e)}))):Te.kg.stopCollect(),this.init(e)})))).catch(Te.kg.error),p=()=>this.pause(),v=()=>{this.ads&&(this.ads.isFullscreenPlaying||this.ads.isPreloaderPlaying||this.ads.isRewardedPlaying||this.resume())},Cr.addEventListener("statechange",(e=>{$r.includes(e.newState)?p():v()}))}get nativeSDK(){return this.platform.getNativeSDK()}get serverTime(){return new Date(Dr(this,Lr,"f")).toISOString()}get isDev(){var e;return(null===(e=Dr(this,jr,"f"))||void 0===e?void 0:e.isDev)||!1}get isAllowedOrigin(){var e;return(null===(e=Dr(this,jr,"f"))||void 0===e?void 0:e.isAllowedOrigin)||!1}get locale(){return Oe.h$[this.language]||"en-US"}init(e){return Fr(this,void 0,void 0,(function*(){this.ads.on("fullscreen:start",(()=>this.pause())),this.ads.on("fullscreen:close",(()=>this.resume())),this.ads.on("preloader:start",(()=>this.pause())),this.ads.on("preloader:close",(()=>this.resume())),this.ads.on("rewarded:start",(()=>this.pause())),this.ads.on("rewarded:close",(()=>this.resume())),yield Promise.all([this.ads.checkAdblock()]).catch(Te.kg.warn),e.done(this)}))}loadOverlay(){return Fr(this,void 0,void 0,(function*(){this.overlay||(this.overlay=yield Promise.all([a.e(690),a.e(9),a.e(573),a.e(460)]).then(a.bind(a,1332)).then((e=>e.default(this))),this._events.emit("overlay:ready"))}))}get _overlaySizeOffsets(){return{top:this.ads._stickyBannerOffsets.top,bottom:this.ads._stickyBannerOffsets.bottom}}changeLanguage(e){return Fr(this,void 0,void 0,(function*(){if(this.language!==e)try{if(!Object.values(Oe.Uo).includes(e))throw new Error(`Language ${e} not supported`);this.language=e,this._storage.saveLanguage(e),this.overlay&&(yield this.overlay.changeLanguage(e)),Dr(this,Ar,"f").setLang(this.language),this._events.emit("change:language",this.language)}catch(e){Te.kg.error(e)}}))}changeAvatarGenerator(){return Fr(this,void 0,void 0,(function*(){Te.kg.warn("[DEPRECATED]: changeAvatarGenerator")}))}generateAvatar(e,t){return(0,ur.Z)(this.avatarGeneratorTemplate,e,t)}pause(){this.isPaused||(this.isPaused=!0,this._events.emit("pause"))}resume(){this.isPaused&&(this.isPaused=!1,this._events.emit("resume"))}gameStart(){return Fr(this,void 0,void 0,(function*(){yield this.ready,this._events.emit("gameStart")}))}gameplayStart(){return Fr(this,void 0,void 0,(function*(){yield this.ready,this.isGameplay||(this.isGameplay=!0,this._events.emit("gameplayStart"))}))}gameplayStop(){return Fr(this,void 0,void 0,(function*(){yield this.ready,this.isGameplay&&(this.isGameplay=!1,this._events.emit("gameplayStop"))}))}}xr=new WeakMap,jr=new WeakMap,Ar=new WeakMap,Lr=new WeakMap,new qr})()})(); \ No newline at end of file diff --git a/vex8/patch/js/eponesh-platform.gp.v1.js b/vex8/patch/js/eponesh-platform.gp.v1.js new file mode 100644 index 000000000..ee614c6ca --- /dev/null +++ b/vex8/patch/js/eponesh-platform.gp.v1.js @@ -0,0 +1 @@ +(self.webpackChunkgame_score_sdk=self.webpackChunkgame_score_sdk||[]).push([[477],{501:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});class n{constructor(){this.canAddShortcut=!1}addShortcut(){return t=this,e=void 0,n=function*(){return!1},new((r=void 0)||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}));var t,e,r,n}}},5572:(t,e,r)=>{"use strict";r.d(e,{VK:()=>n,yl:()=>i});const n={success:!0,payload:{}},i={success:!1,payload:{}}},2712:(t,e,r)=>{"use strict";r.d(e,{aD:()=>l,FU:()=>v,hc:()=>f});const n=(t,e)=>({type:t,getLink:e}),i=n("facebook",(t=>`//www.facebook.com/sharer/sharer.php?u=${t.url}`)),o=n("whatsapp",(t=>`//api.whatsapp.com/send?text=${t.text}%20${t.url}`)),s=n("telegram",(t=>`//t.me/share/url?url=${t.url}&text=${t.text}`)),a=n("vkontakte",(t=>`//vk.com/share.php?url=${t.url}&title=${t.text}&image=${t.image}`)),u=n("twitter",(t=>`//twitter.com/share?text=${t.text}&url=${t.url}`)),c=n("odnoklassniki",(t=>`//connect.ok.ru/offer?url=${t.url}&title=${t.text}&imageUrl=${t.image}`)),h=n("viber",(t=>`viber://forward?text=${t.text}%20${t.url}`)),d=n("moymir",(t=>`//connect.mail.ru/share?url=${t.url}&title=${t.text}&image_url=${t.image}`)),l=[o,s,a,c,h,d],v=[i,u,s,o,h],f=[i,u,s,o,h,a,c,d]},6390:(t,e,r)=>{"use strict";function n(){try{return window.top.location.href||location.href}catch(t){return location.href}}r.d(e,{T:()=>n})},4917:(t,e,r)=>{"use strict";function n({src:t,check:e}){return new Promise(((r,n)=>{let i=0;if(null==e?void 0:e(window))return void r();function o(){e?e(window)&&(clearInterval(i),r()):r()}if(document.querySelector(`script[src="${t}"]`)&&e)return void(i=setInterval(o,100));var s=document.getElementsByTagName("script")[0];const a=document.createElement("script");a.src=t,a.onload=o,a.onerror=n,s.parentNode.insertBefore(a,s),e&&(i=setInterval(o,100))}))}r.d(e,{Z:()=>n})},209:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n={stringify:t=>btoa(encodeURIComponent(JSON.stringify(t))),parse(t){if(!t)return{};const e=function(t){try{return JSON.parse(decodeURIComponent(atob(t)||"{}"))}catch(t){return""}}(t);return Object.keys(e).length>0?e:JSON.parse(function(t){try{return JSON.parse(atob(t)||"{}")}catch(t){return""}}(t)||"{}")}}},254:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>P});var n=r(6390),i=r(6558),o=r(8293),s=r(209),a=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};class u{constructor(t,e){this.gp=t,this.config=e;try{const t=new URL(window.location.href).searchParams.get("_gpParams");t&&(this.shareParams=s.Z.parse(t))}catch(t){i.kg.error(t)}}get appUrl(){return(0,n.T)()}init(){return a(this,void 0,void 0,(function*(){const t=(0,o._)();return this.ready=t.ready,t.done(this),t.ready}))}getPlayer(){return a(this,void 0,void 0,(function*(){const t=(0,o._)();return t.done({id:0,name:"",photoSmall:"",photoMedium:"",photoLarge:""}),t.ready}))}showRewardedVideo(){const t=(0,o._)();return t.done(!1),t.ready}showPreloader(){const t=(0,o._)();return t.done(!1),t.ready}showFullscreen(){const t=(0,o._)();return t.done(!1),t.ready}showSticky(){const t=(0,o._)();return t.done(!1),t.ready}closeSticky(){}refreshSticky(){return this.closeSticky(),this.showSticky()}makeShareUrl(t){const e=s.Z.stringify(t),r=new URL(this.gp.app.url);return r.searchParams.set("_gpParams",e),r.href||""}getShareParam(t){return this.shareParams?this.shareParams[t]:""}}var c=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};class h{constructor(t){this.sdk=t,this.hasCredetials=!1,this.userId=""}getPlayerAuthInfo(){return c(this,void 0,void 0,(function*(){const t=(0,o._)();return yield this.sdk.ready,t.done({}),t.ready}))}getPlayerContext(){return c(this,void 0,void 0,(function*(){return{platformData:yield this.getPlayerAuthInfo(),key:""}}))}loginPlayer(){return c(this,void 0,void 0,(function*(){return this.sdk.getPlayer()}))}getPlayer(){return c(this,void 0,void 0,(function*(){return this.sdk.getPlayer()}))}publishRecord(t){}isPlatformAvatar(){return!1}}var d=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};class l{constructor(t){this.sdk=t,this.isStickyAvailable=!1,this.isFullscreenAvailable=!1,this.isRewardedAvailable=!1,this.isPreloaderAvailable=!1}showPreloader(){return d(this,void 0,void 0,(function*(){return yield this.sdk.ready,this.sdk.showPreloader().catch((()=>!1))}))}showFullscreen(){return d(this,void 0,void 0,(function*(){return yield this.sdk.ready,this.sdk.showFullscreen().catch((()=>!1))}))}showRewardedVideo(){return d(this,void 0,void 0,(function*(){return yield this.sdk.ready,this.sdk.showRewardedVideo().catch((()=>!1))}))}showSticky(){return d(this,void 0,void 0,(function*(){return yield this.sdk.ready,this.sdk.showSticky().catch((()=>!1))}))}refreshSticky(){return d(this,void 0,void 0,(function*(){return yield this.sdk.ready,this.sdk.refreshSticky().catch((()=>!1))}))}closeSticky(){return d(this,void 0,void 0,(function*(){return yield this.sdk.ready,this.sdk.closeSticky()}))}}var v=r(2712),f=r(5942),p=r(5572);class y{constructor(t){this.sdk=t,this.hasIntegratedAuth=!1,this.isExternalLinksAllowed=!0,this.isSecretCodeAuthAvailable=!0,this._hasAuthModal=!1,this.type=f.z.NONE,this.socialNetworks=v.hc}getSDK(){return this.sdk}getNativeSDK(){return this.sdk}requestPermissions(){return t=this,e=void 0,n=function*(){return p.VK},new((r=void 0)||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}));var t,e,r,n}}class m{constructor(t){this.sdk=t,this.isSupportsShare=!0,this.isSupportsNativeShare=!1,this.isSupportsNativePosts=!1,this.isSupportsNativeInvite=!1,this.isSupportsNativeCommunityJoin=!1,this.canJoinCommunity=!0,this.isSupportShareParams=!0}get shareParams(){return this.sdk.shareParams}share(t){return Promise.resolve(!1)}post(t){return Promise.resolve(!1)}invite(t){return Promise.resolve(!1)}joinCommunity(){return Promise.resolve(!1)}makeShareUrl(t){return this.sdk.makeShareUrl(t)}getShareParam(t){return this.sdk.getShareParam(t)}}var w=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};class k{constructor(t){this.sdk=t,this.isSupportsSubscriptions=!1,this.isSupportsPayments=!1,this.isServerValidation=!1}mapProducts(t,e){return w(this,void 0,void 0,(function*(){return e}))}consumeAllExpired(t,e){return w(this,void 0,void 0,(function*(){}))}fetchPurchases(){return w(this,void 0,void 0,(function*(){return{payload:{},purchases:[]}}))}purchase(t){return w(this,void 0,void 0,(function*(){return{}}))}consume(t){return w(this,void 0,void 0,(function*(){return{}}))}subscribe(t,e){return w(this,void 0,void 0,(function*(){return{}}))}unsubscribe(t,e){return w(this,void 0,void 0,(function*(){return{}}))}}var g=r(501);function P(t){return e=this,r=void 0,i=function*(){const e=new u(t.gp,{}),[,,r]=yield Promise.all([e.init(),t.setupStorage([]),t.fetchConfig()]),n=new h(e);return{adsAdapter:new l(e),appAdapter:new g.Z,playerAdapter:n,platformAdapter:new y(e),socialsAdapter:new m(e),paymentsAdapter:new k(e),projectConfig:r}},new((n=void 0)||(n=Promise))((function(t,o){function s(t){try{u(i.next(t))}catch(t){o(t)}}function a(t){try{u(i.throw(t))}catch(t){o(t)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(t){t(r)}))).then(s,a)}u((i=i.apply(e,r||[])).next())}));var e,r,n,i}},5940:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>b});var n=r(4917),i=r(6558),o=r(8293),s=r(3204),a=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};class u{constructor(t){this.gp=t,this.lang=s.Uo.EN;const e=(new URL(location.href).searchParams.get("lang")||"").toLowerCase();this.lang=Object.values(s.Uo).includes(e)?e:null}get appUrl(){return""}init(){return a(this,void 0,void 0,(function*(){const t=(0,o._)();return this.ready=t.ready,(0,n.Z)({src:"https://integration.gamepix.com/sdk/v3/gamepix.sdk.js",check:t=>"GamePix"in t}).then((()=>{this.sdk=window.GamePix,this.sdk.on.pause=()=>this.gp.pause(),this.sdk.on.resume=()=>this.gp.resume(),t.done(this)})).catch((e=>{i.kg.error(e),t.done(this)})),setTimeout((()=>t.done(this)),5e3),t.ready}))}getPlayer(){return a(this,void 0,void 0,(function*(){const t=(0,o._)();return t.done({id:0,name:"",photoSmall:"",photoMedium:"",photoLarge:""}),t.ready}))}showFullscreen(){return a(this,void 0,void 0,(function*(){const t=(0,o._)();try{yield this.sdk.interstitialAd().then((e=>t.done(!!e.success)))}catch(e){t.abort(e)}return t.ready}))}showRewardedVideo(){return a(this,void 0,void 0,(function*(){const t=(0,o._)();try{yield this.sdk.rewardAd().then((e=>t.done(!!e.success)))}catch(e){t.abort(e)}return t.ready}))}showPreloader(){return this.showFullscreen()}getStorage(){return this.sdk.localStorage}}var c=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};class h{constructor(t){this.sdk=t,this.isStickyAvailable=!1,this.isFullscreenAvailable=!0,this.isRewardedAvailable=!0,this.isPreloaderAvailable=!0}showPreloader(){return c(this,void 0,void 0,(function*(){return yield this.sdk.ready,this.sdk.showPreloader().catch((()=>!1))}))}showFullscreen(){return c(this,void 0,void 0,(function*(){return yield this.sdk.ready,this.sdk.showFullscreen().catch((()=>!1))}))}showRewardedVideo(){return c(this,void 0,void 0,(function*(){return yield this.sdk.ready,this.sdk.showRewardedVideo().catch((()=>!1))}))}showSticky(){return c(this,void 0,void 0,(function*(){return yield this.sdk.ready,!1}))}refreshSticky(){return c(this,void 0,void 0,(function*(){return yield this.sdk.ready,!1}))}closeSticky(){return c(this,void 0,void 0,(function*(){yield this.sdk.ready}))}}var d=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};class l{constructor(t){this.sdk=t,this.hasCredetials=!1,this.userId=""}getPlayerAuthInfo(){return d(this,void 0,void 0,(function*(){const t=(0,o._)();return t.done({}),t.ready}))}getPlayerContext(){return d(this,void 0,void 0,(function*(){return{platformData:yield this.getPlayerAuthInfo(),key:""}}))}loginPlayer(){return d(this,void 0,void 0,(function*(){return this.sdk.getPlayer()}))}getPlayer(){return d(this,void 0,void 0,(function*(){return this.sdk.getPlayer()}))}publishRecord(t){}isPlatformAvatar(){return!1}}var v=r(501),f=r(2712),p=r(5942),y=r(5572);class m{constructor(t){this.sdk=t,this.hasIntegratedAuth=!1,this.isExternalLinksAllowed=!1,this.isSecretCodeAuthAvailable=!0,this._hasAuthModal=!1,this.type=p.z.GAMEPIX,this.socialNetworks=f.FU}getSDK(){return this.sdk}getNativeSDK(){return this.sdk.sdk}requestPermissions(){return t=this,e=void 0,n=function*(){return y.VK},new((r=void 0)||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}));var t,e,r,n}}class w{constructor(t,e){this.sdk=t,this.gameLink=e,this.isSupportsShare=!!this.gameLink,this.isSupportsNativeShare=!1,this.isSupportsNativePosts=!1,this.isSupportsNativeInvite=!1,this.isSupportsNativeCommunityJoin=!1,this.canJoinCommunity=!1,this.isSupportShareParams=!1}get shareParams(){return{}}share(t){return Promise.resolve(!1)}post(t){return Promise.resolve(!1)}invite(t){return Promise.resolve(!1)}joinCommunity(){return Promise.resolve(!1)}makeShareUrl(t){return""}getShareParam(t){return""}}var k=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};class g{constructor(t){this.sdk=t,this.isSupportsSubscriptions=!1,this.isSupportsPayments=!1,this.isServerValidation=!1}mapProducts(t,e){return k(this,void 0,void 0,(function*(){return e}))}consumeAllExpired(t,e){return k(this,void 0,void 0,(function*(){}))}fetchPurchases(){return k(this,void 0,void 0,(function*(){return{payload:{},purchases:[]}}))}purchase(t){return k(this,void 0,void 0,(function*(){return{}}))}consume(t){return k(this,void 0,void 0,(function*(){return{}}))}subscribe(t,e){return k(this,void 0,void 0,(function*(){return{}}))}unsubscribe(t,e){return k(this,void 0,void 0,(function*(){return{}}))}}var P,S=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))},x=function(t,e,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(t):n?n.value:e.get(t)};class A{constructor(t){this.sdk=t,P.set(this,void 0),this.isLocal=!0}ready(){return S(this,void 0,void 0,(function*(){x(this,P,"f")||(yield this.sdk.ready,function(t,e,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===n?i.call(t,r):i?i.value=r:e.set(t,r)}(this,P,yield this.sdk.getStorage(),"f"))}))}set(t,e){return S(this,void 0,void 0,(function*(){yield this.ready(),x(this,P,"f").setItem(t,JSON.stringify(e))}))}get(t){return S(this,void 0,void 0,(function*(){yield this.ready();try{return JSON.parse(x(this,P,"f").getItem(t)||"null")}catch(t){}}))}remove(t){return S(this,void 0,void 0,(function*(){yield this.ready();try{return x(this,P,"f").removeItem(t)}catch(t){}}))}}P=new WeakMap;function b(t){return e=this,r=void 0,i=function*(){const e=new u(t.gp),[,,r]=yield Promise.all([e.init(),t.setupStorage([new A(e)]),t.fetchConfig(e.lang)]),n=new h(e),i=new l(e);return{adsAdapter:n,appAdapter:new v.Z,playerAdapter:i,platformAdapter:new m(e),socialsAdapter:new w(e,r.platformConfig.gameLink),paymentsAdapter:new g(e),projectConfig:r}},new((n=void 0)||(n=Promise))((function(t,o){function s(t){try{u(i.next(t))}catch(t){o(t)}}function a(t){try{u(i.throw(t))}catch(t){o(t)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(t){t(r)}))).then(s,a)}u((i=i.apply(e,r||[])).next())}));var e,r,n,i}},449:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>S});var n=r(4917),i=r(6558),o=r(8293),s=r(3204),a=r(209),u=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};class c{constructor(t){this.gp=t,this.lang=s.Uo.EN,this.gameUrl="";const e=(new URL(location.href).searchParams.get("lang")||"").toLowerCase();this.lang=Object.values(s.Uo).includes(e)?e:null}get appUrl(){return this.gameUrl}init(){return u(this,void 0,void 0,(function*(){const t=(0,o._)();return this.ready=t.ready,(0,n.Z)({src:"https://game-cdn.poki.com/scripts/v2/poki-sdk.js",check:t=>"PokiSDK"in t}).then((()=>{var e;this.poki=window.PokiSDK,((null===(e=this.poki.SDK)||void 0===e?void 0:e.initializingPromise)||this.poki.init()).then((()=>t.done(this))).catch((()=>t.done(this))),this.ready.then((()=>this.createGameLink())),this.gp.on("gameplayStart",(()=>this.poki.gameplayStart())),this.gp.on("gameplayStop",(()=>this.poki.gameplayStop())),this.gp.on("gameStart",(()=>this.poki.gameLoadingFinished()))})).catch((e=>{i.kg.error(e),t.done(this)})),setTimeout((()=>t.done(this)),5e3),t.ready}))}getPlayer(){return u(this,void 0,void 0,(function*(){const t=(0,o._)();return t.done({id:0,name:"",photoSmall:"",photoMedium:"",photoLarge:""}),t.ready}))}showFullscreen(){var t;return u(this,void 0,void 0,(function*(){const e=(0,o._)();try{const r=yield this.poki.commercialBreak();e.done(!!(null===(t=null==r?void 0:r[0])||void 0===t?void 0:t.rewardAllowed))}catch(t){e.abort(t)}return e.ready}))}showRewardedVideo(){return u(this,void 0,void 0,(function*(){const t=(0,o._)();try{yield this.poki.rewardedBreak().then((e=>t.done(!!e)))}catch(e){t.abort(e)}return t.ready}))}showPreloader(){return this.showFullscreen()}createGameLink(){return u(this,void 0,void 0,(function*(){try{const t=this.poki.getURLParam("gd_gpParams");t&&(this.shareParams=a.Z.parse(t))}catch(t){i.kg.error(t)}try{this.gameUrl=yield this.poki.shareableURL()}catch(t){}}))}makeShareUrl(t){try{const e=a.Z.stringify(t),r=new URL(this.gp.app.url);return r.searchParams.set("gd_gpParams",e),r.href||""}catch(t){return i.kg.error("unable to get link on POKI platform in test mode"),""}}getShareParam(t){return this.shareParams?this.shareParams[t]:""}}var h=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};class d{constructor(t){this.sdk=t,this.isStickyAvailable=!1,this.isFullscreenAvailable=!0,this.isRewardedAvailable=!0,this.isPreloaderAvailable=!0}showPreloader(){return h(this,void 0,void 0,(function*(){return yield this.sdk.ready,this.sdk.showPreloader().catch((()=>!1))}))}showFullscreen(){return h(this,void 0,void 0,(function*(){return yield this.sdk.ready,this.sdk.showFullscreen().catch((()=>!1))}))}showRewardedVideo(){return h(this,void 0,void 0,(function*(){return yield this.sdk.ready,this.sdk.showRewardedVideo().catch((()=>!1))}))}showSticky(){return h(this,void 0,void 0,(function*(){return yield this.sdk.ready,!1}))}refreshSticky(){return h(this,void 0,void 0,(function*(){return yield this.sdk.ready,!1}))}closeSticky(){return h(this,void 0,void 0,(function*(){yield this.sdk.ready}))}}var l=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};class v{constructor(t){this.sdk=t,this.hasCredetials=!1,this.userId=""}getPlayerAuthInfo(){return l(this,void 0,void 0,(function*(){const t=(0,o._)();return t.done({}),t.ready}))}getPlayerContext(){return l(this,void 0,void 0,(function*(){return{platformData:yield this.getPlayerAuthInfo(),key:""}}))}loginPlayer(){return l(this,void 0,void 0,(function*(){return this.sdk.getPlayer()}))}getPlayer(){return l(this,void 0,void 0,(function*(){return this.sdk.getPlayer()}))}isPlatformAvatar(){return!1}publishRecord(t){}}var f=r(501),p=r(2712),y=r(5942),m=r(5572);class w{constructor(t){this.sdk=t,this.hasIntegratedAuth=!1,this.isExternalLinksAllowed=!1,this.isSecretCodeAuthAvailable=!0,this._hasAuthModal=!1,this.type=y.z.POKI,this.socialNetworks=p.FU}getSDK(){return this.sdk}getNativeSDK(){return this.sdk.poki}requestPermissions(){return t=this,e=void 0,n=function*(){return m.VK},new((r=void 0)||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}));var t,e,r,n}}class k{constructor(t,e){this.sdk=t,this.gameLink=e,this.isSupportsShare=!0,this.isSupportsNativeShare=!1,this.isSupportsNativePosts=!1,this.isSupportsNativeInvite=!1,this.isSupportsNativeCommunityJoin=!1,this.canJoinCommunity=!1,this.isSupportShareParams=!0}get shareParams(){return this.sdk.shareParams}share(){return t=this,e=void 0,n=function*(){return Promise.resolve(!1)},new((r=void 0)||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}));var t,e,r,n}post(t){return Promise.resolve(!1)}invite(t){return Promise.resolve(!1)}joinCommunity(){return Promise.resolve(!1)}makeShareUrl(t){return this.sdk.makeShareUrl(t)}getShareParam(t){return this.sdk.getShareParam(t)}}var g=function(t,e,r,n){return new(r||(r=Promise))((function(i,o){function s(t){try{u(n.next(t))}catch(t){o(t)}}function a(t){try{u(n.throw(t))}catch(t){o(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(s,a)}u((n=n.apply(t,e||[])).next())}))};class P{constructor(t){this.sdk=t,this.isSupportsSubscriptions=!1,this.isSupportsPayments=!1,this.isServerValidation=!1}mapProducts(t,e){return g(this,void 0,void 0,(function*(){return e}))}consumeAllExpired(t,e){return g(this,void 0,void 0,(function*(){}))}fetchPurchases(){return g(this,void 0,void 0,(function*(){return{payload:{},purchases:[]}}))}purchase(t){return g(this,void 0,void 0,(function*(){return{}}))}consume(t){return g(this,void 0,void 0,(function*(){return{}}))}subscribe(t,e){return g(this,void 0,void 0,(function*(){return{}}))}unsubscribe(t,e){return g(this,void 0,void 0,(function*(){return{}}))}}function S(t){return e=this,r=void 0,i=function*(){const e=new c(t.gp),[,,r]=yield Promise.all([e.init(),t.setupStorage([]),t.fetchConfig(e.lang)]),n=new d(e),i=new v(e);return{adsAdapter:n,appAdapter:new f.Z,playerAdapter:i,platformAdapter:new w(e),socialsAdapter:new k(e,r.platformConfig.gameLink),paymentsAdapter:new P(e),projectConfig:r}},new((n=void 0)||(n=Promise))((function(t,o){function s(t){try{u(i.next(t))}catch(t){o(t)}}function a(t){try{u(i.throw(t))}catch(t){o(t)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(t){t(r)}))).then(s,a)}u((i=i.apply(e,r||[])).next())}));var e,r,n,i}}}]); \ No newline at end of file diff --git a/vex8/patch/js/eponesh-platform.gp.v2.js b/vex8/patch/js/eponesh-platform.gp.v2.js new file mode 100644 index 000000000..c1d628b70 --- /dev/null +++ b/vex8/patch/js/eponesh-platform.gp.v2.js @@ -0,0 +1 @@ +(self.webpackChunkgame_score_sdk=self.webpackChunkgame_score_sdk||[]).push([[477],{501:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});class n{constructor(){this.canAddShortcut=!1}addShortcut(){return t=this,e=void 0,n=function*(){return!1},new((r=void 0)||(r=Promise))((function(i,s){function o(t){try{u(n.next(t))}catch(t){s(t)}}function a(t){try{u(n.throw(t))}catch(t){s(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}u((n=n.apply(t,e||[])).next())}));var t,e,r,n}}},5572:(t,e,r)=>{"use strict";r.d(e,{VK:()=>n,yl:()=>i});const n={success:!0,payload:{}},i={success:!1,payload:{}}},2712:(t,e,r)=>{"use strict";r.d(e,{aD:()=>l,FU:()=>v,hc:()=>f});const n=(t,e)=>({type:t,getLink:e}),i=n("facebook",(t=>`//www.facebook.com/sharer/sharer.php?u=${t.url}`)),s=n("whatsapp",(t=>`//api.whatsapp.com/send?text=${t.text}%20${t.url}`)),o=n("telegram",(t=>`//t.me/share/url?url=${t.url}&text=${t.text}`)),a=n("vkontakte",(t=>`//vk.com/share.php?url=${t.url}&title=${t.text}&image=${t.image}`)),u=n("twitter",(t=>`//twitter.com/share?text=${t.text}&url=${t.url}`)),c=n("odnoklassniki",(t=>`//connect.ok.ru/offer?url=${t.url}&title=${t.text}&imageUrl=${t.image}`)),h=n("viber",(t=>`viber://forward?text=${t.text}%20${t.url}`)),d=n("moymir",(t=>`//connect.mail.ru/share?url=${t.url}&title=${t.text}&image_url=${t.image}`)),l=[s,o,a,c,h,d],v=[i,u,o,s,h],f=[i,u,o,s,h,a,c,d]},6390:(t,e,r)=>{"use strict";function n(){try{return window.top.location.href||location.href}catch(t){return location.href}}r.d(e,{T:()=>n})},4917:(t,e,r)=>{"use strict";function n({src:t,check:e}){return new Promise(((r,n)=>{let i=0;if(null==e?void 0:e(window))return void r();function s(){e?e(window)&&(clearInterval(i),r()):r()}if(document.querySelector(`script[src="${t}"]`)&&e)return void(i=setInterval(s,100));var o=document.getElementsByTagName("script")[0];const a=document.createElement("script");a.src=t,a.onload=s,a.onerror=n,o.parentNode.insertBefore(a,o),e&&(i=setInterval(s,100))}))}r.d(e,{Z:()=>n})},209:(t,e,r)=>{"use strict";r.d(e,{Z:()=>n});const n={stringify:t=>btoa(encodeURIComponent(JSON.stringify(t))),parse(t){if(!t)return{};const e=function(t){try{return JSON.parse(decodeURIComponent(atob(t)||"{}"))}catch(t){return""}}(t);return Object.keys(e).length>0?e:JSON.parse(function(t){try{return JSON.parse(atob(t)||"{}")}catch(t){return""}}(t)||"{}")}}},254:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>P});var n=r(6390),i=r(6558),s=r(8293),o=r(209),a=function(t,e,r,n){return new(r||(r=Promise))((function(i,s){function o(t){try{u(n.next(t))}catch(t){s(t)}}function a(t){try{u(n.throw(t))}catch(t){s(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}u((n=n.apply(t,e||[])).next())}))};class u{constructor(t,e){this.gp=t,this.config=e;try{const t=new URL(window.location.href).searchParams.get("_gpParams");t&&(this.shareParams=o.Z.parse(t))}catch(t){i.kg.error(t)}}get appUrl(){return(0,n.T)()}init(){return a(this,void 0,void 0,(function*(){const t=(0,s._)();return this.ready=t.ready,t.done(this),t.ready}))}getPlayer(){return a(this,void 0,void 0,(function*(){const t=(0,s._)();return t.done({id:0,name:"",photoSmall:"",photoMedium:"",photoLarge:""}),t.ready}))}showRewardedVideo(){const t=(0,s._)();return t.done(!1),t.ready}showPreloader(){const t=(0,s._)();return t.done(!1),t.ready}showFullscreen(){const t=(0,s._)();return t.done(!1),t.ready}showSticky(){const t=(0,s._)();return t.done(!1),t.ready}closeSticky(){}refreshSticky(){return this.closeSticky(),this.showSticky()}makeShareUrl(t){const e=o.Z.stringify(t),r=new URL(this.gp.app.url);return r.searchParams.set("_gpParams",e),r.href||""}getShareParam(t){return this.shareParams?this.shareParams[t]:""}}var c=function(t,e,r,n){return new(r||(r=Promise))((function(i,s){function o(t){try{u(n.next(t))}catch(t){s(t)}}function a(t){try{u(n.throw(t))}catch(t){s(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}u((n=n.apply(t,e||[])).next())}))};class h{constructor(t){this.sdk=t,this.hasCredetials=!1,this.userId=""}getPlayerAuthInfo(){return c(this,void 0,void 0,(function*(){const t=(0,s._)();return yield this.sdk.ready,t.done({}),t.ready}))}getPlayerContext(){return c(this,void 0,void 0,(function*(){return{platformData:yield this.getPlayerAuthInfo(),key:""}}))}loginPlayer(){return c(this,void 0,void 0,(function*(){return this.sdk.getPlayer()}))}getPlayer(){return c(this,void 0,void 0,(function*(){return this.sdk.getPlayer()}))}publishRecord(t){}isPlatformAvatar(){return!1}}var d=function(t,e,r,n){return new(r||(r=Promise))((function(i,s){function o(t){try{u(n.next(t))}catch(t){s(t)}}function a(t){try{u(n.throw(t))}catch(t){s(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}u((n=n.apply(t,e||[])).next())}))};class l{constructor(t){this.sdk=t,this.isStickyAvailable=!1,this.stickyBannerConfig={isOverlapping:!1,height:0},this.isFullscreenAvailable=!1,this.isRewardedAvailable=!1,this.isPreloaderAvailable=!1}showPreloader(){return d(this,void 0,void 0,(function*(){return yield this.sdk.ready,this.sdk.showPreloader().catch((()=>!1))}))}showFullscreen(){return d(this,void 0,void 0,(function*(){return yield this.sdk.ready,this.sdk.showFullscreen().catch((()=>!1))}))}showRewardedVideo(){return d(this,void 0,void 0,(function*(){return yield this.sdk.ready,this.sdk.showRewardedVideo().catch((()=>!1))}))}showSticky(){return d(this,void 0,void 0,(function*(){return yield this.sdk.ready,this.sdk.showSticky().catch((()=>!1))}))}refreshSticky(){return d(this,void 0,void 0,(function*(){return yield this.sdk.ready,this.sdk.refreshSticky().catch((()=>!1))}))}closeSticky(){return d(this,void 0,void 0,(function*(){return yield this.sdk.ready,this.sdk.closeSticky()}))}}var v=r(2712),f=r(5942),p=r(5572);class y{constructor(t){this.sdk=t,this.hasIntegratedAuth=!1,this.isExternalLinksAllowed=!0,this.isSecretCodeAuthAvailable=!0,this._hasAuthModal=!1,this.type=f.z.NONE,this.socialNetworks=v.hc}getSDK(){return this.sdk}getNativeSDK(){return this.sdk}requestPermissions(){return t=this,e=void 0,n=function*(){return p.VK},new((r=void 0)||(r=Promise))((function(i,s){function o(t){try{u(n.next(t))}catch(t){s(t)}}function a(t){try{u(n.throw(t))}catch(t){s(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}u((n=n.apply(t,e||[])).next())}));var t,e,r,n}}class m{constructor(t){this.sdk=t,this.isSupportsShare=!0,this.isSupportsNativeShare=!1,this.isSupportsNativePosts=!1,this.isSupportsNativeInvite=!1,this.isSupportsNativeCommunityJoin=!1,this.canJoinCommunity=!0,this.isSupportShareParams=!0}get shareParams(){return this.sdk.shareParams}share(t){return Promise.resolve(!1)}post(t){return Promise.resolve(!1)}invite(t){return Promise.resolve(!1)}joinCommunity(){return Promise.resolve(!1)}makeShareUrl(t){return this.sdk.makeShareUrl(t)}getShareParam(t){return this.sdk.getShareParam(t)}}var w=function(t,e,r,n){return new(r||(r=Promise))((function(i,s){function o(t){try{u(n.next(t))}catch(t){s(t)}}function a(t){try{u(n.throw(t))}catch(t){s(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}u((n=n.apply(t,e||[])).next())}))};class k{constructor(t){this.sdk=t,this.isSupportsSubscriptions=!1,this.isSupportsPayments=!1,this.isServerValidation=!1}mapProducts(t,e){return w(this,void 0,void 0,(function*(){return e}))}consumeAllExpired(t,e){return w(this,void 0,void 0,(function*(){}))}fetchPurchases(){return w(this,void 0,void 0,(function*(){return{payload:{},purchases:[]}}))}purchase(t){return w(this,void 0,void 0,(function*(){return{}}))}consume(t){return w(this,void 0,void 0,(function*(){return{}}))}subscribe(t,e){return w(this,void 0,void 0,(function*(){return{}}))}unsubscribe(t,e){return w(this,void 0,void 0,(function*(){return{}}))}}var g=r(501);function P(t){return e=this,r=void 0,i=function*(){const e=new u(t.gp,{}),[,,r]=yield Promise.all([e.init(),t.setupStorage([]),t.fetchConfig()]),n=new h(e);return{adsAdapter:new l(e),appAdapter:new g.Z,playerAdapter:n,platformAdapter:new y(e),socialsAdapter:new m(e),paymentsAdapter:new k(e),projectConfig:r}},new((n=void 0)||(n=Promise))((function(t,s){function o(t){try{u(i.next(t))}catch(t){s(t)}}function a(t){try{u(i.throw(t))}catch(t){s(t)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(t){t(r)}))).then(o,a)}u((i=i.apply(e,r||[])).next())}));var e,r,n,i}},5940:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>b});var n=r(4917),i=r(6558),s=r(8293),o=r(381),a=function(t,e,r,n){return new(r||(r=Promise))((function(i,s){function o(t){try{u(n.next(t))}catch(t){s(t)}}function a(t){try{u(n.throw(t))}catch(t){s(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}u((n=n.apply(t,e||[])).next())}))};class u{constructor(t){this.gp=t,this.lang=o.Uo.EN;const e=(new URL(location.href).searchParams.get("lang")||"").toLowerCase();this.lang=Object.values(o.Uo).includes(e)?e:null}get appUrl(){return""}init(){return a(this,void 0,void 0,(function*(){const t=(0,s._)();return this.ready=t.ready,(0,n.Z)({src:"https://integration.gamepix.com/sdk/v3/gamepix.sdk.js",check:t=>"GamePix"in t}).then((()=>{this.sdk=window.GamePix,this.sdk.on.pause=()=>this.gp.pause(),this.sdk.on.resume=()=>this.gp.resume(),t.done(this),this.sdk.lang(),this.gp.ready.then((()=>{this.gp.achievements.on("unlock",(()=>this.sdk.happyMoment()))}))})).catch((e=>{i.kg.error(e),t.done(this)})),setTimeout((()=>t.done(this)),5e3),t.ready}))}getPlayer(){return a(this,void 0,void 0,(function*(){const t=(0,s._)();return t.done({id:0,name:"",photoSmall:"",photoMedium:"",photoLarge:""}),t.ready}))}showFullscreen(){return a(this,void 0,void 0,(function*(){const t=(0,s._)();try{yield this.sdk.interstitialAd().then((e=>t.done(!!e.success)))}catch(e){t.abort(e)}return t.ready}))}showRewardedVideo(){return a(this,void 0,void 0,(function*(){const t=(0,s._)();try{yield this.sdk.rewardAd().then((e=>t.done(!!e.success)))}catch(e){t.abort(e)}return t.ready}))}showPreloader(){return this.showFullscreen()}publishRecord(t){"number"==typeof t.score&&this.sdk.updateScore(t.score),"number"==typeof t.level&&this.sdk.updateLevel(t.level)}getStorage(){return this.sdk.localStorage}}var c=function(t,e,r,n){return new(r||(r=Promise))((function(i,s){function o(t){try{u(n.next(t))}catch(t){s(t)}}function a(t){try{u(n.throw(t))}catch(t){s(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}u((n=n.apply(t,e||[])).next())}))};class h{constructor(t){this.sdk=t,this.isStickyAvailable=!1,this.stickyBannerConfig={isOverlapping:!1,height:0},this.isFullscreenAvailable=!0,this.isRewardedAvailable=!0,this.isPreloaderAvailable=!0}showPreloader(){return c(this,void 0,void 0,(function*(){return yield this.sdk.ready,this.sdk.showPreloader().catch((()=>!1))}))}showFullscreen(){return c(this,void 0,void 0,(function*(){return yield this.sdk.ready,this.sdk.showFullscreen().catch((()=>!1))}))}showRewardedVideo(){return c(this,void 0,void 0,(function*(){return yield this.sdk.ready,this.sdk.showRewardedVideo().catch((()=>!1))}))}showSticky(){return c(this,void 0,void 0,(function*(){return yield this.sdk.ready,!1}))}refreshSticky(){return c(this,void 0,void 0,(function*(){return yield this.sdk.ready,!1}))}closeSticky(){return c(this,void 0,void 0,(function*(){yield this.sdk.ready}))}}var d=function(t,e,r,n){return new(r||(r=Promise))((function(i,s){function o(t){try{u(n.next(t))}catch(t){s(t)}}function a(t){try{u(n.throw(t))}catch(t){s(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}u((n=n.apply(t,e||[])).next())}))};class l{constructor(t){this.sdk=t,this.hasCredetials=!1,this.userId=""}getPlayerAuthInfo(){return d(this,void 0,void 0,(function*(){const t=(0,s._)();return t.done({}),t.ready}))}getPlayerContext(){return d(this,void 0,void 0,(function*(){return{platformData:yield this.getPlayerAuthInfo(),key:""}}))}loginPlayer(){return d(this,void 0,void 0,(function*(){return this.sdk.getPlayer()}))}getPlayer(){return d(this,void 0,void 0,(function*(){return this.sdk.getPlayer()}))}publishRecord(t){return d(this,void 0,void 0,(function*(){yield this.sdk.publishRecord(t)}))}isPlatformAvatar(){return!1}}var v=r(501),f=r(2712),p=r(5942),y=r(5572);class m{constructor(t){this.sdk=t,this.hasIntegratedAuth=!1,this.isExternalLinksAllowed=!1,this.isSecretCodeAuthAvailable=!0,this._hasAuthModal=!1,this.type=p.z.GAMEPIX,this.socialNetworks=f.FU}getSDK(){return this.sdk}getNativeSDK(){return this.sdk.sdk}requestPermissions(){return t=this,e=void 0,n=function*(){return y.VK},new((r=void 0)||(r=Promise))((function(i,s){function o(t){try{u(n.next(t))}catch(t){s(t)}}function a(t){try{u(n.throw(t))}catch(t){s(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}u((n=n.apply(t,e||[])).next())}));var t,e,r,n}}class w{constructor(t,e){this.sdk=t,this.gameLink=e,this.isSupportsShare=!!this.gameLink,this.isSupportsNativeShare=!1,this.isSupportsNativePosts=!1,this.isSupportsNativeInvite=!1,this.isSupportsNativeCommunityJoin=!1,this.canJoinCommunity=!1,this.isSupportShareParams=!1}get shareParams(){return{}}share(t){return Promise.resolve(!1)}post(t){return Promise.resolve(!1)}invite(t){return Promise.resolve(!1)}joinCommunity(){return Promise.resolve(!1)}makeShareUrl(t){return""}getShareParam(t){return""}}var k=function(t,e,r,n){return new(r||(r=Promise))((function(i,s){function o(t){try{u(n.next(t))}catch(t){s(t)}}function a(t){try{u(n.throw(t))}catch(t){s(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}u((n=n.apply(t,e||[])).next())}))};class g{constructor(t){this.sdk=t,this.isSupportsSubscriptions=!1,this.isSupportsPayments=!1,this.isServerValidation=!1}mapProducts(t,e){return k(this,void 0,void 0,(function*(){return e}))}consumeAllExpired(t,e){return k(this,void 0,void 0,(function*(){}))}fetchPurchases(){return k(this,void 0,void 0,(function*(){return{payload:{},purchases:[]}}))}purchase(t){return k(this,void 0,void 0,(function*(){return{}}))}consume(t){return k(this,void 0,void 0,(function*(){return{}}))}subscribe(t,e){return k(this,void 0,void 0,(function*(){return{}}))}unsubscribe(t,e){return k(this,void 0,void 0,(function*(){return{}}))}}var P,S=function(t,e,r,n){return new(r||(r=Promise))((function(i,s){function o(t){try{u(n.next(t))}catch(t){s(t)}}function a(t){try{u(n.throw(t))}catch(t){s(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}u((n=n.apply(t,e||[])).next())}))},x=function(t,e,r,n){if("a"===r&&!n)throw new TypeError("Private accessor was defined without a getter");if("function"==typeof e?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return"m"===r?n:"a"===r?n.call(t):n?n.value:e.get(t)};class A{constructor(t){this.sdk=t,P.set(this,void 0),this.isLocal=!0}ready(){return S(this,void 0,void 0,(function*(){x(this,P,"f")||(yield this.sdk.ready,function(t,e,r,n,i){if("m"===n)throw new TypeError("Private method is not writable");if("a"===n&&!i)throw new TypeError("Private accessor was defined without a setter");if("function"==typeof e?t!==e||!i:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");"a"===n?i.call(t,r):i?i.value=r:e.set(t,r)}(this,P,yield this.sdk.getStorage(),"f"))}))}set(t,e){return S(this,void 0,void 0,(function*(){yield this.ready(),x(this,P,"f").setItem(t,JSON.stringify(e))}))}get(t){return S(this,void 0,void 0,(function*(){yield this.ready();try{return JSON.parse(x(this,P,"f").getItem(t)||"null")}catch(t){}}))}remove(t){return S(this,void 0,void 0,(function*(){yield this.ready();try{return x(this,P,"f").removeItem(t)}catch(t){}}))}}P=new WeakMap;function b(t){return e=this,r=void 0,i=function*(){const e=new u(t.gp),[,,r]=yield Promise.all([e.init(),t.setupStorage([new A(e)]),t.fetchConfig(e.lang)]),n=new h(e),i=new l(e);return{adsAdapter:n,appAdapter:new v.Z,playerAdapter:i,platformAdapter:new m(e),socialsAdapter:new w(e,r.platformConfig.gameLink),paymentsAdapter:new g(e),projectConfig:r}},new((n=void 0)||(n=Promise))((function(t,s){function o(t){try{u(i.next(t))}catch(t){s(t)}}function a(t){try{u(i.throw(t))}catch(t){s(t)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(t){t(r)}))).then(o,a)}u((i=i.apply(e,r||[])).next())}));var e,r,n,i}},449:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>S});var n=r(4917),i=r(6558),s=r(8293),o=r(381),a=r(209),u=function(t,e,r,n){return new(r||(r=Promise))((function(i,s){function o(t){try{u(n.next(t))}catch(t){s(t)}}function a(t){try{u(n.throw(t))}catch(t){s(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}u((n=n.apply(t,e||[])).next())}))};class c{constructor(t){this.gp=t,this.lang=o.Uo.EN,this.gameUrl="";const e=(new URL(location.href).searchParams.get("lang")||"").toLowerCase();this.lang=Object.values(o.Uo).includes(e)?e:null}get appUrl(){return this.gameUrl}init(){return u(this,void 0,void 0,(function*(){const t=(0,s._)();return this.ready=t.ready,(0,n.Z)({src:"https://game-cdn.poki.com/scripts/v2/poki-sdk.js",check:t=>"PokiSDK"in t}).then((()=>{var e;this.poki=window.PokiSDK,((null===(e=this.poki.SDK)||void 0===e?void 0:e.initializingPromise)||this.poki.init()).then((()=>t.done(this))).catch((()=>t.done(this))),this.ready.then((()=>this.createGameLink())),this.gp.on("gameplayStart",(()=>this.poki.gameplayStart())),this.gp.on("gameplayStop",(()=>this.poki.gameplayStop())),this.gp.on("gameStart",(()=>this.poki.gameLoadingFinished()))})).catch((e=>{i.kg.error(e),t.done(this)})),setTimeout((()=>t.done(this)),5e3),t.ready}))}getPlayer(){return u(this,void 0,void 0,(function*(){const t=(0,s._)();return t.done({id:0,name:"",photoSmall:"",photoMedium:"",photoLarge:""}),t.ready}))}showFullscreen(){var t;return u(this,void 0,void 0,(function*(){const e=(0,s._)();try{const r=yield this.poki.commercialBreak();e.done(!!(null===(t=null==r?void 0:r[0])||void 0===t?void 0:t.rewardAllowed))}catch(t){e.abort(t)}return e.ready}))}showRewardedVideo(){return u(this,void 0,void 0,(function*(){const t=(0,s._)();try{yield this.poki.rewardedBreak().then((e=>t.done(!!e)))}catch(e){t.abort(e)}return t.ready}))}showPreloader(){return this.showFullscreen()}createGameLink(){return u(this,void 0,void 0,(function*(){try{const t=this.poki.getURLParam("gd_gpParams");t&&(this.shareParams=a.Z.parse(t))}catch(t){i.kg.error(t)}try{this.gameUrl=yield this.poki.shareableURL()}catch(t){}}))}makeShareUrl(t){try{const e=a.Z.stringify(t),r=new URL(this.gp.app.url);return r.searchParams.set("gd_gpParams",e),r.href||""}catch(t){return i.kg.error("unable to get link on POKI platform in test mode"),""}}getShareParam(t){return this.shareParams?this.shareParams[t]:""}}var h=function(t,e,r,n){return new(r||(r=Promise))((function(i,s){function o(t){try{u(n.next(t))}catch(t){s(t)}}function a(t){try{u(n.throw(t))}catch(t){s(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}u((n=n.apply(t,e||[])).next())}))};class d{constructor(t){this.sdk=t,this.isStickyAvailable=!1,this.stickyBannerConfig={isOverlapping:!1,height:0},this.isFullscreenAvailable=!0,this.isRewardedAvailable=!0,this.isPreloaderAvailable=!0}showPreloader(){return h(this,void 0,void 0,(function*(){return yield this.sdk.ready,this.sdk.showPreloader().catch((()=>!1))}))}showFullscreen(){return h(this,void 0,void 0,(function*(){return yield this.sdk.ready,this.sdk.showFullscreen().catch((()=>!1))}))}showRewardedVideo(){return h(this,void 0,void 0,(function*(){return yield this.sdk.ready,this.sdk.showRewardedVideo().catch((()=>!1))}))}showSticky(){return h(this,void 0,void 0,(function*(){return yield this.sdk.ready,!1}))}refreshSticky(){return h(this,void 0,void 0,(function*(){return yield this.sdk.ready,!1}))}closeSticky(){return h(this,void 0,void 0,(function*(){yield this.sdk.ready}))}}var l=function(t,e,r,n){return new(r||(r=Promise))((function(i,s){function o(t){try{u(n.next(t))}catch(t){s(t)}}function a(t){try{u(n.throw(t))}catch(t){s(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}u((n=n.apply(t,e||[])).next())}))};class v{constructor(t){this.sdk=t,this.hasCredetials=!1,this.userId=""}getPlayerAuthInfo(){return l(this,void 0,void 0,(function*(){const t=(0,s._)();return t.done({}),t.ready}))}getPlayerContext(){return l(this,void 0,void 0,(function*(){return{platformData:yield this.getPlayerAuthInfo(),key:""}}))}loginPlayer(){return l(this,void 0,void 0,(function*(){return this.sdk.getPlayer()}))}getPlayer(){return l(this,void 0,void 0,(function*(){return this.sdk.getPlayer()}))}isPlatformAvatar(){return!1}publishRecord(t){}}var f=r(501),p=r(2712),y=r(5942),m=r(5572);class w{constructor(t){this.sdk=t,this.hasIntegratedAuth=!1,this.isExternalLinksAllowed=!1,this.isSecretCodeAuthAvailable=!0,this._hasAuthModal=!1,this.type=y.z.POKI,this.socialNetworks=p.FU}getSDK(){return this.sdk}getNativeSDK(){return this.sdk.poki}requestPermissions(){return t=this,e=void 0,n=function*(){return m.VK},new((r=void 0)||(r=Promise))((function(i,s){function o(t){try{u(n.next(t))}catch(t){s(t)}}function a(t){try{u(n.throw(t))}catch(t){s(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}u((n=n.apply(t,e||[])).next())}));var t,e,r,n}}class k{constructor(t,e){this.sdk=t,this.gameLink=e,this.isSupportsShare=!0,this.isSupportsNativeShare=!1,this.isSupportsNativePosts=!1,this.isSupportsNativeInvite=!1,this.isSupportsNativeCommunityJoin=!1,this.canJoinCommunity=!1,this.isSupportShareParams=!0}get shareParams(){return this.sdk.shareParams}share(){return t=this,e=void 0,n=function*(){return Promise.resolve(!1)},new((r=void 0)||(r=Promise))((function(i,s){function o(t){try{u(n.next(t))}catch(t){s(t)}}function a(t){try{u(n.throw(t))}catch(t){s(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}u((n=n.apply(t,e||[])).next())}));var t,e,r,n}post(t){return Promise.resolve(!1)}invite(t){return Promise.resolve(!1)}joinCommunity(){return Promise.resolve(!1)}makeShareUrl(t){return this.sdk.makeShareUrl(t)}getShareParam(t){return this.sdk.getShareParam(t)}}var g=function(t,e,r,n){return new(r||(r=Promise))((function(i,s){function o(t){try{u(n.next(t))}catch(t){s(t)}}function a(t){try{u(n.throw(t))}catch(t){s(t)}}function u(t){var e;t.done?i(t.value):(e=t.value,e instanceof r?e:new r((function(t){t(e)}))).then(o,a)}u((n=n.apply(t,e||[])).next())}))};class P{constructor(t){this.sdk=t,this.isSupportsSubscriptions=!1,this.isSupportsPayments=!1,this.isServerValidation=!1}mapProducts(t,e){return g(this,void 0,void 0,(function*(){return e}))}consumeAllExpired(t,e){return g(this,void 0,void 0,(function*(){}))}fetchPurchases(){return g(this,void 0,void 0,(function*(){return{payload:{},purchases:[]}}))}purchase(t){return g(this,void 0,void 0,(function*(){return{}}))}consume(t){return g(this,void 0,void 0,(function*(){return{}}))}subscribe(t,e){return g(this,void 0,void 0,(function*(){return{}}))}unsubscribe(t,e){return g(this,void 0,void 0,(function*(){return{}}))}}function S(t){return e=this,r=void 0,i=function*(){const e=new c(t.gp),[,,r]=yield Promise.all([e.init(),t.setupStorage([]),t.fetchConfig(e.lang)]),n=new d(e),i=new v(e);return{adsAdapter:n,appAdapter:new f.Z,playerAdapter:i,platformAdapter:new w(e),socialsAdapter:new k(e,r.platformConfig.gameLink),paymentsAdapter:new P(e),projectConfig:r}},new((n=void 0)||(n=Promise))((function(t,s){function o(t){try{u(i.next(t))}catch(t){s(t)}}function a(t){try{u(i.throw(t))}catch(t){s(t)}}function u(e){var r;e.done?t(e.value):(r=e.value,r instanceof n?r:new n((function(t){t(r)}))).then(o,a)}u((i=i.apply(e,r||[])).next())}));var e,r,n,i}}}]); \ No newline at end of file diff --git a/vex8/patch/js/gameplayer-io-api.js b/vex8/patch/js/gameplayer-io-api.js new file mode 100644 index 000000000..9de5c85f8 --- /dev/null +++ b/vex8/patch/js/gameplayer-io-api.js @@ -0,0 +1,39 @@ +console.l0g= console.log; +consolel0g= console.log; + +GameAPI= { + "loadAPI": function() { + }, + "GameBreak": { + "request": function(fn1, fn2) { + fn1(); + fn2(); + } + }, + "Branding": { + "getLink": function(args) { + return { + "action": function() { + consolel0g("--fx--GameAPI--Branding--getLink--action--"); + window.open("https://ads.games235.com/"+ (args?"?q="+args:"")); + } + } + }, + "getLogo": function(){ + return { + "image": "patch/images/null.png", + "action": function() { + consolel0g("--fx--GameAPI--Branding--getLogo--action--"); + window.open("https://ads.games235.com/"); + } + } + } + } +} + +AudioMixer= { + "isWebAudioSupport": function() { + consolel0g("--fx--AudioMixer--isWebAudioSupport--"); + return false; + } +} diff --git a/vex8/patch/js/gd-api.js b/vex8/patch/js/gd-api.js new file mode 100644 index 000000000..98d4cfbf1 --- /dev/null +++ b/vex8/patch/js/gd-api.js @@ -0,0 +1,22919 @@ +/* +* Project: @gamedistribution.com/html5-sdk +* Description: GameDistribution.com HTML5 SDK +* Development By: GameDistribution.com +* Copyright(c): 2023 +* Version: 1.32.0 (25-04-2023 23:48) +*/ +!function n(o, i, a) { + function s(t, e) { + if (!i[t]) { + if (!o[t]) { + var r = "function" == typeof require && require; + if (!e && r) + return r(t, !0); + if (u) + return u(t, !0); + throw (e = new Error("Cannot find module '" + t + "'")).code = "MODULE_NOT_FOUND", + e + } + r = i[t] = { + exports: {} + }, + o[t][0].call(r.exports, function(e) { + return s(o[t][1][e] || e) + }, r, r.exports, n, o, i, a) + } + return i[t].exports + } + for (var u = "function" == typeof require && require, e = 0; e < a.length; e++) + s(a[e]); + return s +}({ + 1: [function(e, t, r) { + !function(LI, PI, jI) { + !function() { + !function() { + "use strict"; + function j(e, t, r, n, o, i, a) { + try { + var s = e[i](a) + , u = s.value + } catch (e) { + return r(e) + } + s.done ? t(u) : Promise.resolve(u).then(n, o) + } + function d(s) { + return function() { + var e = this + , a = arguments; + return new Promise(function(t, r) { + var n = s.apply(e, a); + function o(e) { + j(n, t, r, o, i, "next", e) + } + function i(e) { + j(n, t, r, o, i, "throw", e) + } + o(void 0) + } + ) + } + } + function D(e, t) { + if (e !== t) + throw new TypeError("Cannot instantiate an arrow function") + } + function U(e) { + return (U = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { + return typeof e + } + : function(e) { + return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e + } + )(e) + } + var $ = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : void 0 !== PI ? PI : "undefined" != typeof self ? self : {}; + var B, N, F, e = { + exports: {} + }, t = { + exports: {} + }; + function G() { + B.exports = function() { + return a + } + , + B.exports.__esModule = !0, + B.exports.default = B.exports; + var a = {} + , e = Object.prototype + , u = e.hasOwnProperty + , o = Object.defineProperty || function(e, t, r) { + e[t] = r.value + } + , t = "function" == typeof Symbol ? Symbol : {} + , n = t.iterator || "@@iterator" + , r = t.asyncIterator || "@@asyncIterator" + , i = t.toStringTag || "@@toStringTag"; + function s(e, t, r) { + return Object.defineProperty(e, t, { + value: r, + enumerable: !0, + configurable: !0, + writable: !0 + }), + e[t] + } + try { + s({}, "") + } catch (e) { + s = function(e, t, r) { + return e[t] = r + } + } + function c(e, t, r, n) { + t = t && t.prototype instanceof f ? t : f, + t = Object.create(t.prototype), + n = new w(n || []); + return o(t, "_invoke", { + value: function e(n, o, i) { + var a = "suspendedStart"; + return function(e, t) { + if ("executing" === a) + throw new Error("Generator is already running"); + if ("completed" === a) { + if ("throw" === e) + throw t; + return x() + } + for (i.method = e, + i.arg = t; ; ) { + var r = i.delegate; + if (r) { + r = function e(t, r) { + var n = r.method + , o = t.iterator[n]; + if (void 0 === o) + return r.delegate = null, + "throw" === n && t.iterator.return && (r.method = "return", + r.arg = void 0, + e(t, r), + "throw" === r.method) || "return" !== n && (r.method = "throw", + r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), + d; + n = l(o, t.iterator, r.arg); + if ("throw" === n.type) + return r.method = "throw", + r.arg = n.arg, + r.delegate = null, + d; + o = n.arg; + return o ? o.done ? (r[t.resultName] = o.value, + r.next = t.nextLoc, + "return" !== r.method && (r.method = "next", + r.arg = void 0), + r.delegate = null, + d) : o : (r.method = "throw", + r.arg = new TypeError("iterator result is not an object"), + r.delegate = null, + d) + }(r, i); + if (r) { + if (r === d) + continue; + return r + } + } + if ("next" === i.method) + i.sent = i._sent = i.arg; + else if ("throw" === i.method) { + if ("suspendedStart" === a) + throw a = "completed", + i.arg; + i.dispatchException(i.arg) + } else + "return" === i.method && i.abrupt("return", i.arg); + a = "executing"; + r = l(n, o, i); + if ("normal" === r.type) { + if (a = i.done ? "completed" : "suspendedYield", + r.arg === d) + continue; + return { + value: r.arg, + done: i.done + } + } + "throw" === r.type && (a = "completed", + i.method = "throw", + i.arg = r.arg) + } + } + }(e, r, n) + }), + t + } + function l(e, t, r) { + try { + return { + type: "normal", + arg: e.call(t, r) + } + } catch (e) { + return { + type: "throw", + arg: e + } + } + } + a.wrap = c; + var d = {}; + function f() {} + function p() {} + function h() {} + var t = {} + , m = (s(t, n, function() { + return this + }), + Object.getPrototypeOf) + , m = m && m(m(A([]))) + , g = (m && m !== e && u.call(m, n) && (t = m), + h.prototype = f.prototype = Object.create(t)); + function v(e) { + ["next", "throw", "return"].forEach(function(t) { + s(e, t, function(e) { + return this._invoke(t, e) + }) + }) + } + function b(a, s) { + var t; + o(this, "_invoke", { + value: function(r, n) { + function e() { + return new s(function(e, t) { + !function t(e, r, n, o) { + var i, e = l(a[e], a, r); + if ("throw" !== e.type) + return (r = (i = e.arg).value) && "object" == N(r) && u.call(r, "__await") ? s.resolve(r.__await).then(function(e) { + t("next", e, n, o) + }, function(e) { + t("throw", e, n, o) + }) : s.resolve(r).then(function(e) { + i.value = e, + n(i) + }, function(e) { + return t("throw", e, n, o) + }); + o(e.arg) + }(r, n, e, t) + } + ) + } + return t = t ? t.then(e, e) : e() + } + }) + } + function y(e) { + var t = { + tryLoc: e[0] + }; + 1 in e && (t.catchLoc = e[1]), + 2 in e && (t.finallyLoc = e[2], + t.afterLoc = e[3]), + this.tryEntries.push(t) + } + function _(e) { + var t = e.completion || {}; + t.type = "normal", + delete t.arg, + e.completion = t + } + function w(e) { + this.tryEntries = [{ + tryLoc: "root" + }], + e.forEach(y, this), + this.reset(!0) + } + function A(t) { + if (t) { + var r, e = t[n]; + if (e) + return e.call(t); + if ("function" == typeof t.next) + return t; + if (!isNaN(t.length)) + return r = -1, + (e = function e() { + for (; ++r < t.length; ) + if (u.call(t, r)) + return e.value = t[r], + e.done = !1, + e; + return e.value = void 0, + e.done = !0, + e + } + ).next = e + } + return { + next: x + } + } + function x() { + return { + value: void 0, + done: !0 + } + } + return o(g, "constructor", { + value: p.prototype = h, + configurable: !0 + }), + o(h, "constructor", { + value: p, + configurable: !0 + }), + p.displayName = s(h, i, "GeneratorFunction"), + a.isGeneratorFunction = function(e) { + e = "function" == typeof e && e.constructor; + return !!e && (e === p || "GeneratorFunction" === (e.displayName || e.name)) + } + , + a.mark = function(e) { + return Object.setPrototypeOf ? Object.setPrototypeOf(e, h) : (e.__proto__ = h, + s(e, i, "GeneratorFunction")), + e.prototype = Object.create(g), + e + } + , + a.awrap = function(e) { + return { + __await: e + } + } + , + v(b.prototype), + s(b.prototype, r, function() { + return this + }), + a.AsyncIterator = b, + a.async = function(e, t, r, n, o) { + void 0 === o && (o = Promise); + var i = new b(c(e, t, r, n),o); + return a.isGeneratorFunction(t) ? i : i.next().then(function(e) { + return e.done ? e.value : i.next() + }) + } + , + v(g), + s(g, i, "Generator"), + s(g, n, function() { + return this + }), + s(g, "toString", function() { + return "[object Generator]" + }), + a.keys = function(e) { + var t, r = Object(e), n = []; + for (t in r) + n.push(t); + return n.reverse(), + function e() { + for (; n.length; ) { + var t = n.pop(); + if (t in r) + return e.value = t, + e.done = !1, + e + } + return e.done = !0, + e + } + } + , + a.values = A, + w.prototype = { + constructor: w, + reset: function(e) { + if (this.prev = 0, + this.next = 0, + this.sent = this._sent = void 0, + this.done = !1, + this.delegate = null, + this.method = "next", + this.arg = void 0, + this.tryEntries.forEach(_), + !e) + for (var t in this) + "t" === t.charAt(0) && u.call(this, t) && !isNaN(+t.slice(1)) && (this[t] = void 0) + }, + stop: function() { + this.done = !0; + var e = this.tryEntries[0].completion; + if ("throw" === e.type) + throw e.arg; + return this.rval + }, + dispatchException: function(r) { + if (this.done) + throw r; + var n = this; + function e(e, t) { + return i.type = "throw", + i.arg = r, + n.next = e, + t && (n.method = "next", + n.arg = void 0), + !!t + } + for (var t = this.tryEntries.length - 1; 0 <= t; --t) { + var o = this.tryEntries[t] + , i = o.completion; + if ("root" === o.tryLoc) + return e("end"); + if (o.tryLoc <= this.prev) { + var a = u.call(o, "catchLoc") + , s = u.call(o, "finallyLoc"); + if (a && s) { + if (this.prev < o.catchLoc) + return e(o.catchLoc, !0); + if (this.prev < o.finallyLoc) + return e(o.finallyLoc) + } else if (a) { + if (this.prev < o.catchLoc) + return e(o.catchLoc, !0) + } else { + if (!s) + throw new Error("try statement without catch or finally"); + if (this.prev < o.finallyLoc) + return e(o.finallyLoc) + } + } + } + }, + abrupt: function(e, t) { + for (var r = this.tryEntries.length - 1; 0 <= r; --r) { + var n = this.tryEntries[r]; + if (n.tryLoc <= this.prev && u.call(n, "finallyLoc") && this.prev < n.finallyLoc) { + var o = n; + break + } + } + var i = (o = o && ("break" === e || "continue" === e) && o.tryLoc <= t && t <= o.finallyLoc ? null : o) ? o.completion : {}; + return i.type = e, + i.arg = t, + o ? (this.method = "next", + this.next = o.finallyLoc, + d) : this.complete(i) + }, + complete: function(e, t) { + if ("throw" === e.type) + throw e.arg; + return "break" === e.type || "continue" === e.type ? this.next = e.arg : "return" === e.type ? (this.rval = this.arg = e.arg, + this.method = "return", + this.next = "end") : "normal" === e.type && t && (this.next = t), + d + }, + finish: function(e) { + for (var t = this.tryEntries.length - 1; 0 <= t; --t) { + var r = this.tryEntries[t]; + if (r.finallyLoc === e) + return this.complete(r.completion, r.afterLoc), + _(r), + d + } + }, + catch: function(e) { + for (var t = this.tryEntries.length - 1; 0 <= t; --t) { + var r, n, o = this.tryEntries[t]; + if (o.tryLoc === e) + return "throw" === (r = o.completion).type && (n = r.arg, + _(o)), + n + } + throw new Error("illegal catch attempt") + }, + delegateYield: function(e, t, r) { + return this.delegate = { + iterator: A(e), + resultName: t, + nextLoc: r + }, + "next" === this.method && (this.arg = void 0), + d + } + }, + a + } + function z(e) { + return F.exports = z = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { + return typeof e + } + : function(e) { + return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e + } + , + F.exports.__esModule = !0, + F.exports.default = F.exports, + z(e) + } + (F = t).exports = z, + F.exports.__esModule = !0, + F.exports.default = F.exports, + B = e, + N = t.exports.default, + B.exports = G, + B.exports.__esModule = !0, + B.exports.default = B.exports; + var t = e.exports() + , T = t; + try { + regeneratorRuntime = t + } catch (j) { + "object" == typeof globalThis ? globalThis.regeneratorRuntime = t : Function("r", "regeneratorRuntime = r")(t) + } + var Z = {} + , H = Object.prototype.hasOwnProperty; + function K(e) { + try { + return decodeURIComponent(e.replace(/\+/g, " ")) + } catch (e) { + return null + } + } + function q(e) { + try { + return encodeURIComponent(e) + } catch (e) { + return null + } + } + Z.stringify = function(e, t) { + var r, n, o = []; + for (n in "string" != typeof (t = t || "") && (t = "?"), + e) + if (H.call(e, n)) { + if ((r = e[n]) || null != r && !isNaN(r) || (r = ""), + n = q(n), + r = q(r), + null === n || null === r) + continue; + o.push(n + "=" + r) + } + return o.length ? t + o.join("&") : "" + } + , + Z.parse = function(e) { + for (var t = /([^=?#&]+)=?([^&]*)/g, r = {}; o = t.exec(e); ) { + var n = K(o[1]) + , o = K(o[2]); + null === n || null === o || n in r || (r[n] = o) + } + return r + } + ; + function V(e, t) { + if (t = t.split(":")[0], + e = +e) { + switch (t) { + case "http": + case "ws": + return 80 !== e; + case "https": + case "wss": + return 443 !== e; + case "ftp": + return 21 !== e; + case "gopher": + return 70 !== e; + case "file": + return + } + return 0 !== e + } + } + var W = Z + , Y = /^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/ + , J = /[\n\r\t]/g + , X = /^[A-Za-z][A-Za-z0-9+-.]*:\/\// + , Q = /:\d+$/ + , ee = /^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i + , te = /^[a-zA-Z]:/; + function re(e) { + return (e || "").toString().replace(Y, "") + } + var ne = [["#", "hash"], ["?", "query"], function(e, t) { + return ae(t.protocol) ? e.replace(/\\/g, "/") : e + } + , ["/", "pathname"], ["@", "auth", 1], [NaN, "host", void 0, 1, 1], [/:(\d*)$/, "port", void 0, 1], [NaN, "hostname", void 0, 1, 1]] + , oe = { + hash: 1, + query: 1 + }; + function ie(e) { + var t, r = ("undefined" != typeof window ? window : void 0 !== $ ? $ : "undefined" != typeof self ? self : {}).location || {}, n = {}, r = typeof (e = e || r); + if ("blob:" === e.protocol) + n = new ue(unescape(e.pathname),{}); + else if ("string" == r) + for (t in n = new ue(e,{}), + oe) + delete n[t]; + else if ("object" == r) { + for (t in e) + t in oe || (n[t] = e[t]); + void 0 === n.slashes && (n.slashes = X.test(e.href)) + } + return n + } + function ae(e) { + return "file:" === e || "ftp:" === e || "http:" === e || "https:" === e || "ws:" === e || "wss:" === e + } + function se(e, t) { + e = (e = re(e)).replace(J, ""), + t = t || {}; + var r, e = ee.exec(e), n = e[1] ? e[1].toLowerCase() : "", o = !!e[2], i = !!e[3], a = 0; + return o ? a = i ? (r = e[2] + e[3] + e[4], + e[2].length + e[3].length) : (r = e[2] + e[4], + e[2].length) : i ? (r = e[3] + e[4], + a = e[3].length) : r = e[4], + "file:" === n ? 2 <= a && (r = r.slice(2)) : ae(n) ? r = e[4] : n ? o && (r = r.slice(2)) : 2 <= a && ae(t.protocol) && (r = e[4]), + { + protocol: n, + slashes: o || ae(n), + slashesCount: a, + rest: r + } + } + function ue(e, t, r) { + if (e = (e = re(e)).replace(J, ""), + !(this instanceof ue)) + return new ue(e,t,r); + var n, o, i, a, s, u = ne.slice(), c = typeof t, l = this, d = 0; + for ("object" != c && "string" != c && (r = t, + t = null), + r && "function" != typeof r && (r = W.parse), + n = !(c = se(e || "", t = ie(t))).protocol && !c.slashes, + l.slashes = c.slashes || n && t.slashes, + l.protocol = c.protocol || t.protocol || "", + e = c.rest, + ("file:" === c.protocol && (2 !== c.slashesCount || te.test(e)) || !c.slashes && (c.protocol || c.slashesCount < 2 || !ae(l.protocol))) && (u[3] = [/(.*)/, "pathname"]); d < u.length; d++) + "function" != typeof (i = u[d]) ? (o = i[0], + s = i[1], + o != o ? l[s] = e : "string" == typeof o ? ~(a = "@" === o ? e.lastIndexOf(o) : e.indexOf(o)) && (e = "number" == typeof i[2] ? (l[s] = e.slice(0, a), + e.slice(a + i[2])) : (l[s] = e.slice(a), + e.slice(0, a))) : (a = o.exec(e)) && (l[s] = a[1], + e = e.slice(0, a.index)), + l[s] = l[s] || n && i[3] && t[s] || "", + i[4] && (l[s] = l[s].toLowerCase())) : e = i(e, l); + r && (l.query = r(l.query)), + n && t.slashes && "/" !== l.pathname.charAt(0) && ("" !== l.pathname || "" !== t.pathname) && (l.pathname = function(e, t) { + if ("" === e) + return t; + for (var r = (t || "/").split("/").slice(0, -1).concat(e.split("/")), n = r.length, t = r[n - 1], o = !1, i = 0; n--; ) + "." === r[n] ? r.splice(n, 1) : ".." === r[n] ? (r.splice(n, 1), + i++) : i && (0 === n && (o = !0), + r.splice(n, 1), + i--); + return o && r.unshift(""), + "." !== t && ".." !== t || r.push(""), + r.join("/") + }(l.pathname, t.pathname)), + "/" !== l.pathname.charAt(0) && ae(l.protocol) && (l.pathname = "/" + l.pathname), + V(l.port, l.protocol) || (l.host = l.hostname, + l.port = ""), + l.username = l.password = "", + l.auth && (~(a = l.auth.indexOf(":")) ? (l.username = l.auth.slice(0, a), + l.username = encodeURIComponent(decodeURIComponent(l.username)), + l.password = l.auth.slice(a + 1), + l.password = encodeURIComponent(decodeURIComponent(l.password))) : l.username = encodeURIComponent(decodeURIComponent(l.auth)), + l.auth = l.password ? l.username + ":" + l.password : l.username), + l.origin = "file:" !== l.protocol && ae(l.protocol) && l.host ? l.protocol + "//" + l.host : "null", + l.href = l.toString() + } + ue.prototype = { + set: function(e, t, r) { + var n = this; + switch (e) { + case "query": + "string" == typeof t && t.length && (t = (r || W.parse)(t)), + n[e] = t; + break; + case "port": + n[e] = t, + V(t, n.protocol) ? t && (n.host = n.hostname + ":" + t) : (n.host = n.hostname, + n[e] = ""); + break; + case "hostname": + n[e] = t, + n.port && (t += ":" + n.port), + n.host = t; + break; + case "host": + n[e] = t, + Q.test(t) ? (t = t.split(":"), + n.port = t.pop(), + n.hostname = t.join(":")) : (n.hostname = t, + n.port = ""); + break; + case "protocol": + n.protocol = t.toLowerCase(), + n.slashes = !r; + break; + case "pathname": + case "hash": + t ? (o = "pathname" === e ? "/" : "#", + n[e] = t.charAt(0) !== o ? o + t : t) : n[e] = t; + break; + case "username": + case "password": + n[e] = encodeURIComponent(t); + break; + case "auth": + var o = t.indexOf(":"); + ~o ? (n.username = t.slice(0, o), + n.username = encodeURIComponent(decodeURIComponent(n.username)), + n.password = t.slice(o + 1), + n.password = encodeURIComponent(decodeURIComponent(n.password))) : n.username = encodeURIComponent(decodeURIComponent(t)) + } + for (var i = 0; i < ne.length; i++) { + var a = ne[i]; + a[4] && (n[a[1]] = n[a[1]].toLowerCase()) + } + return n.auth = n.password ? n.username + ":" + n.password : n.username, + n.origin = "file:" !== n.protocol && ae(n.protocol) && n.host ? n.protocol + "//" + n.host : "null", + n.href = n.toString(), + n + }, + toString: function(e) { + e && "function" == typeof e || (e = W.stringify); + var t = this + , r = t.host + , n = t.protocol + , n = (n && ":" !== n.charAt(n.length - 1) && (n += ":"), + n + (t.protocol && t.slashes || ae(t.protocol) ? "//" : "")); + return t.username ? (n += t.username, + t.password && (n += ":" + t.password), + n += "@") : t.password ? n = n + (":" + t.password) + "@" : "file:" !== t.protocol && ae(t.protocol) && !r && "/" !== t.pathname && (n += "@"), + (":" === r[r.length - 1] || Q.test(t.hostname) && !t.port) && (r += ":"), + n += r + t.pathname, + (r = "object" == typeof t.query ? e(t.query) : t.query) && (n += "?" !== r.charAt(0) ? "?" + r : r), + t.hash && (n += t.hash), + n + } + }, + ue.extractProtocol = se, + ue.location = ie, + ue.trimLeft = re, + ue.qs = W; + var ce = ue; + function le(e, t) { + if (!(e instanceof t)) + throw new TypeError("Cannot call a class as a function") + } + function de(e) { + e = function(e) { + if ("object" !== U(e) || null === e) + return e; + var t = e[Symbol.toPrimitive]; + if (void 0 === t) + return String(e); + t = t.call(e, "string"); + if ("object" !== U(t)) + return t; + throw new TypeError("@@toPrimitive must return a primitive value.") + }(e); + return "symbol" === U(e) ? e : String(e) + } + function fe(e, t) { + for (var r = 0; r < t.length; r++) { + var n = t[r]; + n.enumerable = n.enumerable || !1, + n.configurable = !0, + "value"in n && (n.writable = !0), + Object.defineProperty(e, de(n.key), n) + } + } + function pe(e, t, r) { + return t && fe(e.prototype, t), + r && fe(e, r), + Object.defineProperty(e, "prototype", { + writable: !1 + }), + e + } + var he, me, ge, ve, be, ye, _e, we, Ae, xe, ke, Ee, Se, Re, Oe, De, Te, Ie, Me, Ce, Le, Pe, je, Ue, $e, Be, Ne, Fe, Ge, ze, Ze, He, Ke, qe, Ve, We, Ye, Je, Xe, Qe, et, tt, rt, nt, ot, it, at, st, ut, ct, lt, dt, ft, pt, ht, e = { + exports: {} + }; + function mt(e, t) { + return e.set(t[0], t[1]), + e + } + function gt(e, t) { + return e.add(t), + e + } + function vt(e, t, r, n) { + var o = -1 + , i = e ? e.length : 0; + for (n && i && (r = e[++o]); ++o < i; ) + r = t(r, e[o], o, e); + return r + } + function bt(e) { + var t = !1; + if (null != e && "function" != typeof e.toString) + try { + t = !!(e + "") + } catch (e) {} + return t + } + function yt(e) { + var r = -1 + , n = Array(e.size); + return e.forEach(function(e, t) { + n[++r] = [t, e] + }), + n + } + function _t(t, r) { + return function(e) { + return t(r(e)) + } + } + function wt(e) { + var t = -1 + , r = Array(e.size); + return e.forEach(function(e) { + r[++t] = e + }), + r + } + function At(e) { + var t = -1 + , r = e ? e.length : 0; + for (this.clear(); ++t < r; ) { + var n = e[t]; + this.set(n[0], n[1]) + } + } + function xt(e) { + var t = -1 + , r = e ? e.length : 0; + for (this.clear(); ++t < r; ) { + var n = e[t]; + this.set(n[0], n[1]) + } + } + function kt(e) { + var t = -1 + , r = e ? e.length : 0; + for (this.clear(); ++t < r; ) { + var n = e[t]; + this.set(n[0], n[1]) + } + } + function Et(e) { + this.__data__ = new xt(e) + } + function St(e, t) { + var r, n, o, i = pt(e) || (n = r = e) && "object" == typeof n && Ut(n) && Ve.call(r, "callee") && (!et.call(r, "callee") || We.call(r) == ge) ? function(e, t) { + for (var r = -1, n = Array(e); ++r < e; ) + n[r] = t(r); + return n + }(e.length, String) : [], a = i.length, s = !!a; + for (o in e) + !t && !Ve.call(e, o) || s && ("length" == o || function e(t, r) { + return (r = null == r ? me : r) && ("number" == typeof t || ze.test(t)) && -1 < t && t % 1 == 0 && t < r + }(o, a)) || i.push(o); + return i + } + function Rt(e, t, r) { + var n = e[t]; + Ve.call(e, t) && jt(n, r) && (void 0 !== r || t in e) || (e[t] = r) + } + function Ot(e, t) { + for (var r = e.length; r--; ) + if (jt(e[r][0], t)) + return r; + return -1 + } + function Dt(u, e, t, r, n, o, i) { + var a; + if (void 0 === (a = r ? o ? r(u, n, o, i) : r(u) : a)) { + if (!Bt(u)) + return u; + var s, c, l, n = pt(u); + if (n) { + if (g = (c = u).length, + l = c.constructor(g), + g && "string" == typeof c[0] && Ve.call(c, "index") && (l.index = c.index, + l.input = c.input), + a = l, + !e) { + var d = u; + var f = a; + var p = -1 + , h = d.length; + for (f = f || Array(h); ++p < h; ) + f[p] = d[p]; + return f; + return + } + } else { + var m = ft(u) + , g = m == ye || m == _e; + if (ht(u)) + return c = u, + e ? c.slice() : (l = new c.constructor(c.length), + c.copy(l), + l); + if (m == xe || m == ge || g && !o) { + if (bt(u)) + return o ? u : {}; + if (a = "function" == typeof (b = g ? {} : u).constructor && !Lt(b) && Bt(b = Xe(b)) ? Qe(b) : {}, + !e) + return b = u, + s = (s = a) && It(u, Nt(u), s), + It(b, dt(b), s) + } else { + if (!Ze[m]) + return o ? u : {}; + a = function(e, t, r) { + var n, o, i, a, s = e.constructor; + switch (m) { + case Te: + return Tt(e); + case ve: + case be: + return new s(+e); + case Ie: + return i = e, + a = r ? Tt(i.buffer) : i.buffer, + new i.constructor(a,i.byteOffset,i.byteLength); + case Me: + case Ce: + case Le: + case Pe: + case je: + case Ue: + case $e: + case Be: + case Ne: + return a = e, + i = r ? Tt(a.buffer) : a.buffer, + new a.constructor(i,a.byteOffset,a.length); + case we: + return o = e, + vt(r ? t(yt(o), !0) : yt(o), mt, new o.constructor); + case Ae: + case Re: + return new s(e); + case Ee: + return (n = new (o = e).constructor(o.source,Fe.exec(o))).lastIndex = o.lastIndex, + n; + case Se: + return n = e, + vt(r ? t(wt(n), !0) : wt(n), gt, new n.constructor); + case Oe: + return lt ? Object(lt.call(e)) : {} + } + }(u, Dt, e) + } + } + var v, b = (i = i || new Et).get(u); + if (b) + return b; + i.set(u, a); + for (var y, _, w = (v = n ? v : t ? function() { + var e = u + , t = dt + , r = Nt(e); + if (pt(e)) + return r; + for (var n = r, o = t(e), i = -1, a = o.length, s = n.length; ++i < a; ) + n[s + i] = o[i]; + return n + }() : Nt(u)) || u, A = -1, x = w ? w.length : 0; ++A < x && !1 !== (y = w[A], + _ = A, + v && (y = u[_ = y]), + void Rt(a, _, Dt(y, e, t, r, _, u, i))); ) + ; + } + return a + } + function Tt(e) { + var t = new e.constructor(e.byteLength); + return new Je(t).set(new Je(e)), + t + } + function It(e, t, r, n) { + r = r || {}; + for (var o = -1, i = t.length; ++o < i; ) { + var a = t[o] + , s = n ? n(r[a], e[a], a, r, e) : void 0; + Rt(r, a, void 0 === s ? e[a] : s) + } + return r + } + function Mt(e, t) { + var r, e = e.__data__; + return ("string" == (r = typeof t) || "number" == r || "symbol" == r || "boolean" == r ? "__proto__" !== t : null === t) ? e["string" == typeof t ? "string" : "hash"] : e.map + } + function Ct(e, t) { + e = null == e ? void 0 : e[t]; + return function e(t) { + return Bt(t) && !(Ke && Ke in t) && ($t(t) || bt(t) ? Ye : Ge).test(Pt(t)) + }(e) ? e : void 0 + } + function Lt(e) { + var t = e && e.constructor; + return e === ("function" == typeof t && t.prototype || He) + } + function Pt(e) { + if (null != e) { + try { + return qe.call(e) + } catch (e) {} + try { + return e + "" + } catch (e) {} + } + return "" + } + function jt(e, t) { + return e === t || e != e && t != t + } + function Ut(e) { + return null != e && "number" == typeof (t = e.length) && -1 < t && t % 1 == 0 && t <= me && !$t(e); + var t + } + function $t(e) { + e = Bt(e) ? We.call(e) : ""; + return e == ye || e == _e + } + function Bt(e) { + var t = typeof e; + return e && ("object" == t || "function" == t) + } + function Nt(e) { + return (Ut(e) ? St : function(e) { + if (!Lt(e)) + return rt(e); + var t, r = []; + for (t in Object(e)) + Ve.call(e, t) && "constructor" != t && r.push(t); + return r + } + )(e) + } + Cr = (t = e).exports, + he = "__lodash_hash_undefined__", + me = 9007199254740991, + ye = "[object Function]", + _e = "[object GeneratorFunction]", + ke = "[object Promise]", + De = "[object WeakMap]", + Fe = /\w*$/, + Ge = /^\[object .+?Constructor\]$/, + ze = /^(?:0|[1-9]\d*)$/, + (Ze = {})[ge = "[object Arguments]"] = Ze["[object Array]"] = Ze[Te = "[object ArrayBuffer]"] = Ze[Ie = "[object DataView]"] = Ze[ve = "[object Boolean]"] = Ze[be = "[object Date]"] = Ze[Me = "[object Float32Array]"] = Ze[Ce = "[object Float64Array]"] = Ze[Le = "[object Int8Array]"] = Ze[Pe = "[object Int16Array]"] = Ze[je = "[object Int32Array]"] = Ze[we = "[object Map]"] = Ze[Ae = "[object Number]"] = Ze[xe = "[object Object]"] = Ze[Ee = "[object RegExp]"] = Ze[Se = "[object Set]"] = Ze[Re = "[object String]"] = Ze[Oe = "[object Symbol]"] = Ze[Ue = "[object Uint8Array]"] = Ze[$e = "[object Uint8ClampedArray]"] = Ze[Be = "[object Uint16Array]"] = Ze[Ne = "[object Uint32Array]"] = !0, + Ze["[object Error]"] = Ze[ye] = Ze[De] = !1, + n = "object" == typeof $ && $ && $.Object === Object && $, + o = "object" == typeof self && self && self.Object === Object && self, + n = n || o || Function("return this")(), + o = Cr && !Cr.nodeType && Cr, + Cr = (Cr = o && t && !t.nodeType && t) && Cr.exports === o, + o = Array.prototype, + r = Function.prototype, + He = Object.prototype, + i = n["__core-js_shared__"], + Ke = (i = /[^.]+$/.exec(i && i.keys && i.keys.IE_PROTO || "")) ? "Symbol(src)_1." + i : "", + qe = r.toString, + Ve = He.hasOwnProperty, + We = He.toString, + Ye = RegExp("^" + qe.call(Ve).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), + i = Cr ? n.Buffer : void 0, + r = n.Symbol, + Je = n.Uint8Array, + Xe = _t(Object.getPrototypeOf, Object), + Qe = Object.create, + et = He.propertyIsEnumerable, + tt = o.splice, + Cr = Object.getOwnPropertySymbols, + o = i ? i.isBuffer : void 0, + rt = _t(Object.keys, Object), + i = Ct(n, "DataView"), + nt = Ct(n, "Map"), + Oo = Ct(n, "Promise"), + go = Ct(n, "Set"), + n = Ct(n, "WeakMap"), + ot = Ct(Object, "create"), + it = Pt(i), + at = Pt(nt), + st = Pt(Oo), + ut = Pt(go), + ct = Pt(n), + r = r ? r.prototype : void 0, + lt = r ? r.valueOf : void 0, + At.prototype.clear = function() { + this.__data__ = ot ? ot(null) : {} + } + , + At.prototype.delete = function(e) { + return this.has(e) && delete this.__data__[e] + } + , + At.prototype.get = function(e) { + var t, r = this.__data__; + return ot ? (t = r[e]) === he ? void 0 : t : Ve.call(r, e) ? r[e] : void 0 + } + , + At.prototype.has = function(e) { + var t = this.__data__; + return ot ? void 0 !== t[e] : Ve.call(t, e) + } + , + At.prototype.set = function(e, t) { + return this.__data__[e] = ot && void 0 === t ? he : t, + this + } + , + xt.prototype.clear = function() { + this.__data__ = [] + } + , + xt.prototype.delete = function(e) { + var t = this.__data__ + , e = Ot(t, e); + return !(e < 0 || (e == t.length - 1 ? t.pop() : tt.call(t, e, 1), + 0)) + } + , + xt.prototype.get = function(e) { + var t = this.__data__ + , e = Ot(t, e); + return e < 0 ? void 0 : t[e][1] + } + , + xt.prototype.has = function(e) { + return -1 < Ot(this.__data__, e) + } + , + xt.prototype.set = function(e, t) { + var r = this.__data__ + , n = Ot(r, e); + return n < 0 ? r.push([e, t]) : r[n][1] = t, + this + } + , + kt.prototype.clear = function() { + this.__data__ = { + hash: new At, + map: new (nt || xt), + string: new At + } + } + , + kt.prototype.delete = function(e) { + return Mt(this, e).delete(e) + } + , + kt.prototype.get = function(e) { + return Mt(this, e).get(e) + } + , + kt.prototype.has = function(e) { + return Mt(this, e).has(e) + } + , + kt.prototype.set = function(e, t) { + return Mt(this, e).set(e, t), + this + } + , + Et.prototype.clear = function() { + this.__data__ = new xt + } + , + Et.prototype.delete = function(e) { + return this.__data__.delete(e) + } + , + Et.prototype.get = function(e) { + return this.__data__.get(e) + } + , + Et.prototype.has = function(e) { + return this.__data__.has(e) + } + , + Et.prototype.set = function(e, t) { + var r = this.__data__; + if (r instanceof xt) { + var n = r.__data__; + if (!nt || n.length < 199) + return n.push([e, t]), + this; + r = this.__data__ = new kt(n) + } + return r.set(e, t), + this + } + , + dt = Cr ? _t(Cr, Object) : function() { + return [] + } + , + ft = function(e) { + return We.call(e) + } + , + (i && ft(new i(new ArrayBuffer(1))) != Ie || nt && ft(new nt) != we || Oo && ft(Oo.resolve()) != ke || go && ft(new go) != Se || n && ft(new n) != De) && (ft = function(e) { + var t = We.call(e) + , e = t == xe ? e.constructor : void 0 + , e = e ? Pt(e) : void 0; + if (e) + switch (e) { + case it: + return Ie; + case at: + return we; + case st: + return ke; + case ut: + return Se; + case ct: + return De + } + return t + } + ), + pt = Array.isArray, + ht = o || function() { + return !1 + } + , + t.exports = function(e) { + return Dt(e, !0, !0) + } + ; + var Ft = e.exports; + function Gt(e) { + return "[object Object]" === Object.prototype.toString.call(e) + } + function zt(e) { + return !1 !== Gt(e) && (void 0 === (e = e.constructor) || !1 !== Gt(e = e.prototype) && !1 !== e.hasOwnProperty("isPrototypeOf")) + } + function Zt(e) { + var t; + return !!e && ("[object Function]" === (t = Xt.call(e)) || "function" == typeof e && "[object RegExp]" !== t || "undefined" != typeof window && (e === window.setTimeout || e === window.alert || e === window.confirm || e === window.prompt)) + } + var Ht, Kt, qt = String.prototype.valueOf, Vt = Object.prototype.toString, Wt = function() { + if ("function" != typeof Symbol || "function" != typeof Object.getOwnPropertySymbols) + return !1; + if ("symbol" != typeof Symbol.iterator) { + var e = {} + , t = Symbol("test") + , r = Object(t); + if ("string" == typeof t) + return !1; + if ("[object Symbol]" !== Object.prototype.toString.call(t)) + return !1; + if ("[object Symbol]" !== Object.prototype.toString.call(r)) + return !1; + for (t in e[t] = 42, + e) + return !1; + if ("function" == typeof Object.keys && 0 !== Object.keys(e).length) + return !1; + if ("function" == typeof Object.getOwnPropertyNames && 0 !== Object.getOwnPropertyNames(e).length) + return !1; + r = Object.getOwnPropertySymbols(e); + if (1 !== r.length || r[0] !== t) + return !1; + if (!Object.prototype.propertyIsEnumerable.call(e, t)) + return !1; + if ("function" == typeof Object.getOwnPropertyDescriptor) { + r = Object.getOwnPropertyDescriptor(e, t); + if (42 !== r.value || !0 !== r.enumerable) + return !1 + } + } + return !0 + }() && !!Symbol.toStringTag, r = Array.isArray, Yt = Object.prototype.toString, Jt = r || function(e) { + return !!e && "[object Array]" == Yt.call(e) + } + , Xt = Object.prototype.toString, Qt = "undefined" != typeof globalThis && globalThis || "undefined" != typeof self && self || void 0 !== Qt && Qt, er = "URLSearchParams"in Qt, tr = "Symbol"in Qt && "iterator"in Symbol, rr = "FileReader"in Qt && "Blob"in Qt && function() { + try { + return new Blob, + !0 + } catch (e) { + return !1 + } + }(), nr = "FormData"in Qt, or = "ArrayBuffer"in Qt; + function ir(e) { + if ("string" != typeof e && (e = String(e)), + /[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e) || "" === e) + throw new TypeError('Invalid character in header field name: "' + e + '"'); + return e.toLowerCase() + } + function ar(e) { + return e = "string" != typeof e ? String(e) : e + } + function sr(t) { + var e = { + next: function() { + var e = t.shift(); + return { + done: void 0 === e, + value: e + } + } + }; + return tr && (e[Symbol.iterator] = function() { + return e + } + ), + e + } + function ur(t) { + this.map = {}, + t instanceof ur ? t.forEach(function(e, t) { + this.append(t, e) + }, this) : Array.isArray(t) ? t.forEach(function(e) { + this.append(e[0], e[1]) + }, this) : t && Object.getOwnPropertyNames(t).forEach(function(e) { + this.append(e, t[e]) + }, this) + } + function cr(e) { + if (e.bodyUsed) + return Promise.reject(new TypeError("Already read")); + e.bodyUsed = !0 + } + function lr(r) { + return new Promise(function(e, t) { + r.onload = function() { + e(r.result) + } + , + r.onerror = function() { + t(r.error) + } + } + ) + } + function dr(e) { + var t = new FileReader + , r = lr(t); + return t.readAsArrayBuffer(e), + r + } + function fr(e) { + var t; + return e.slice ? e.slice(0) : ((t = new Uint8Array(e.byteLength)).set(new Uint8Array(e)), + t.buffer) + } + function pr() { + return this.bodyUsed = !1, + this._initBody = function(e) { + var t; + this.bodyUsed = this.bodyUsed, + (this._bodyInit = e) ? "string" == typeof e ? this._bodyText = e : rr && Blob.prototype.isPrototypeOf(e) ? this._bodyBlob = e : nr && FormData.prototype.isPrototypeOf(e) ? this._bodyFormData = e : er && URLSearchParams.prototype.isPrototypeOf(e) ? this._bodyText = e.toString() : or && rr && (t = e) && DataView.prototype.isPrototypeOf(t) ? (this._bodyArrayBuffer = fr(e.buffer), + this._bodyInit = new Blob([this._bodyArrayBuffer])) : or && (ArrayBuffer.prototype.isPrototypeOf(e) || Kt(e)) ? this._bodyArrayBuffer = fr(e) : this._bodyText = e = Object.prototype.toString.call(e) : this._bodyText = "", + this.headers.get("content-type") || ("string" == typeof e ? this.headers.set("content-type", "text/plain;charset=UTF-8") : this._bodyBlob && this._bodyBlob.type ? this.headers.set("content-type", this._bodyBlob.type) : er && URLSearchParams.prototype.isPrototypeOf(e) && this.headers.set("content-type", "application/x-www-form-urlencoded;charset=UTF-8")) + } + , + rr && (this.blob = function() { + var e = cr(this); + if (e) + return e; + if (this._bodyBlob) + return Promise.resolve(this._bodyBlob); + if (this._bodyArrayBuffer) + return Promise.resolve(new Blob([this._bodyArrayBuffer])); + if (this._bodyFormData) + throw new Error("could not read FormData body as blob"); + return Promise.resolve(new Blob([this._bodyText])) + } + , + this.arrayBuffer = function() { + return this._bodyArrayBuffer ? cr(this) || (ArrayBuffer.isView(this._bodyArrayBuffer) ? Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset, this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength)) : Promise.resolve(this._bodyArrayBuffer)) : this.blob().then(dr) + } + ), + this.text = function() { + var e, t, r = cr(this); + if (r) + return r; + if (this._bodyBlob) + return r = this._bodyBlob, + e = new FileReader, + t = lr(e), + e.readAsText(r), + t; + if (this._bodyArrayBuffer) + return Promise.resolve(function(e) { + for (var t = new Uint8Array(e), r = new Array(t.length), n = 0; n < t.length; n++) + r[n] = String.fromCharCode(t[n]); + return r.join("") + }(this._bodyArrayBuffer)); + if (this._bodyFormData) + throw new Error("could not read FormData body as text"); + return Promise.resolve(this._bodyText) + } + , + nr && (this.formData = function() { + return this.text().then(gr) + } + ), + this.json = function() { + return this.text().then(JSON.parse) + } + , + this + } + or && (Ht = ["[object Int8Array]", "[object Uint8Array]", "[object Uint8ClampedArray]", "[object Int16Array]", "[object Uint16Array]", "[object Int32Array]", "[object Uint32Array]", "[object Float32Array]", "[object Float64Array]"], + Kt = ArrayBuffer.isView || function(e) { + return e && -1 < Ht.indexOf(Object.prototype.toString.call(e)) + } + ), + ur.prototype.append = function(e, t) { + e = ir(e), + t = ar(t); + var r = this.map[e]; + this.map[e] = r ? r + ", " + t : t + } + , + ur.prototype.delete = function(e) { + delete this.map[ir(e)] + } + , + ur.prototype.get = function(e) { + return e = ir(e), + this.has(e) ? this.map[e] : null + } + , + ur.prototype.has = function(e) { + return this.map.hasOwnProperty(ir(e)) + } + , + ur.prototype.set = function(e, t) { + this.map[ir(e)] = ar(t) + } + , + ur.prototype.forEach = function(e, t) { + for (var r in this.map) + this.map.hasOwnProperty(r) && e.call(t, this.map[r], r, this) + } + , + ur.prototype.keys = function() { + var r = []; + return this.forEach(function(e, t) { + r.push(t) + }), + sr(r) + } + , + ur.prototype.values = function() { + var t = []; + return this.forEach(function(e) { + t.push(e) + }), + sr(t) + } + , + ur.prototype.entries = function() { + var r = []; + return this.forEach(function(e, t) { + r.push([t, e]) + }), + sr(r) + } + , + tr && (ur.prototype[Symbol.iterator] = ur.prototype.entries); + var hr = ["DELETE", "GET", "HEAD", "OPTIONS", "POST", "PUT"]; + function mr(e, t) { + if (!(this instanceof mr)) + throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.'); + var r, n = (t = t || {}).body; + if (e instanceof mr) { + if (e.bodyUsed) + throw new TypeError("Already read"); + this.url = e.url, + this.credentials = e.credentials, + t.headers || (this.headers = new ur(e.headers)), + this.method = e.method, + this.mode = e.mode, + this.signal = e.signal, + n || null == e._bodyInit || (n = e._bodyInit, + e.bodyUsed = !0) + } else + this.url = String(e); + if (this.credentials = t.credentials || this.credentials || "same-origin", + !t.headers && this.headers || (this.headers = new ur(t.headers)), + this.method = (e = t.method || this.method || "GET", + r = e.toUpperCase(), + -1 < hr.indexOf(r) ? r : e), + this.mode = t.mode || this.mode || null, + this.signal = t.signal || this.signal, + this.referrer = null, + ("GET" === this.method || "HEAD" === this.method) && n) + throw new TypeError("Body not allowed for GET or HEAD requests"); + this._initBody(n), + "GET" !== this.method && "HEAD" !== this.method || "no-store" !== t.cache && "no-cache" !== t.cache || ((r = /([?&])_=[^&]*/).test(this.url) ? this.url = this.url.replace(r, "$1_=" + (new Date).getTime()) : this.url += (/\?/.test(this.url) ? "&" : "?") + "_=" + (new Date).getTime()) + } + function gr(e) { + var r = new FormData; + return e.trim().split("&").forEach(function(e) { + var t; + e && (t = (e = e.split("=")).shift().replace(/\+/g, " "), + e = e.join("=").replace(/\+/g, " "), + r.append(decodeURIComponent(t), decodeURIComponent(e))) + }), + r + } + function vr(e, t) { + if (!(this instanceof vr)) + throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.'); + t = t || {}, + this.type = "default", + this.status = void 0 === t.status ? 200 : t.status, + this.ok = 200 <= this.status && this.status < 300, + this.statusText = void 0 === t.statusText ? "" : "" + t.statusText, + this.headers = new ur(t.headers), + this.url = t.url || "", + this._initBody(e) + } + mr.prototype.clone = function() { + return new mr(this,{ + body: this._bodyInit + }) + } + , + pr.call(mr.prototype), + pr.call(vr.prototype), + vr.prototype.clone = function() { + return new vr(this._bodyInit,{ + status: this.status, + statusText: this.statusText, + headers: new ur(this.headers), + url: this.url + }) + } + , + vr.error = function() { + var e = new vr(null,{ + status: 0, + statusText: "" + }); + return e.type = "error", + e + } + ; + var br = [301, 302, 303, 307, 308] + , yr = (vr.redirect = function(e, t) { + if (-1 === br.indexOf(t)) + throw new RangeError("Invalid status code"); + return new vr(null,{ + status: t, + headers: { + location: e + } + }) + } + , + Qt.DOMException); + try { + new yr + } catch (j) { + (yr = function(e, t) { + this.message = e, + this.name = t; + t = Error(e); + this.stack = t.stack + } + ).prototype = Object.create(Error.prototype), + yr.prototype.constructor = yr + } + function _r(n, a) { + return new Promise(function(o, e) { + var t = new mr(n,a); + if (t.signal && t.signal.aborted) + return e(new yr("Aborted","AbortError")); + var i = new XMLHttpRequest; + function r() { + i.abort() + } + i.onload = function() { + var e, r, t = { + status: i.status, + statusText: i.statusText, + headers: (e = i.getAllResponseHeaders() || "", + r = new ur, + e.replace(/\r?\n[\t ]+/g, " ").split("\r").map(function(e) { + return 0 === e.indexOf("\n") ? e.substr(1, e.length) : e + }).forEach(function(e) { + var e = e.split(":") + , t = e.shift().trim(); + t && (e = e.join(":").trim(), + r.append(t, e)) + }), + r) + }, n = (t.url = "responseURL"in i ? i.responseURL : t.headers.get("X-Request-URL"), + "response"in i ? i.response : i.responseText); + setTimeout(function() { + o(new vr(n,t)) + }, 0) + } + , + i.onerror = function() { + setTimeout(function() { + e(new TypeError("Network request failed")) + }, 0) + } + , + i.ontimeout = function() { + setTimeout(function() { + e(new TypeError("Network request failed")) + }, 0) + } + , + i.onabort = function() { + setTimeout(function() { + e(new yr("Aborted","AbortError")) + }, 0) + } + , + i.open(t.method, function(t) { + try { + return "" === t && Qt.location.href ? Qt.location.href : t + } catch (e) { + return t + } + }(t.url), !0), + "include" === t.credentials ? i.withCredentials = !0 : "omit" === t.credentials && (i.withCredentials = !1), + "responseType"in i && (rr ? i.responseType = "blob" : or && t.headers.get("Content-Type") && -1 !== t.headers.get("Content-Type").indexOf("application/octet-stream") && (i.responseType = "arraybuffer")), + !a || "object" != typeof a.headers || a.headers instanceof ur ? t.headers.forEach(function(e, t) { + i.setRequestHeader(t, e) + }) : Object.getOwnPropertyNames(a.headers).forEach(function(e) { + i.setRequestHeader(e, ar(a.headers[e])) + }), + t.signal && (t.signal.addEventListener("abort", r), + i.onreadystatechange = function() { + 4 === i.readyState && t.signal.removeEventListener("abort", r) + } + ), + i.send(void 0 === t._bodyInit ? null : t._bodyInit) + } + ) + } + _r.polyfill = !0, + Qt.fetch || (Qt.fetch = _r, + Qt.Headers = ur, + Qt.Request = mr, + Qt.Response = vr); + var wr, Ar, xr, kr, Er, Sr, Rr, s, u, c, l, f, Or, p, h, Dr, Tr, Ir, Mr, Cr = { + exports: {} + }; + function Lr(e) { + for (var t = {}, r = 0; r < e.length; r++) + t[e[r].toUpperCase()] = e[r]; + return t + } + function Pr(e, t) { + return typeof e === Rr && -1 !== Tr(t).indexOf(Tr(e)) + } + function jr(e, t) { + if (typeof e === Rr) + return e = e.replace(/^\s\s*/, ""), + typeof t == Er ? e : e.substring(0, 350) + } + function Ur(e, t) { + for (var r, n, o, i, a, s = 0; s < t.length && !i; ) { + for (var u = t[s], c = t[s + 1], l = r = 0; l < u.length && !i && u[l]; ) + if (i = u[l++].exec(e)) + for (n = 0; n < c.length; n++) + a = i[++r], + typeof (o = c[n]) === Sr && 0 < o.length ? 2 === o.length ? typeof o[1] == kr ? this[o[0]] = o[1].call(this, a) : this[o[0]] = o[1] : 3 === o.length ? typeof o[1] !== kr || o[1].exec && o[1].test ? this[o[0]] = a ? a.replace(o[1], o[2]) : Ar : this[o[0]] = a ? o[1].call(this, a, o[2]) : Ar : 4 === o.length && (this[o[0]] = a ? o[3].call(this, a.replace(o[1], o[2])) : Ar) : this[o] = a || Ar; + s += 2 + } + } + function $r(e, t) { + for (var r in t) + if (typeof t[r] === Sr && 0 < t[r].length) { + for (var n = 0; n < t[r].length; n++) + if (Pr(t[r][n], e)) + return "?" === r ? Ar : r + } else if (Pr(t[r], e)) + return "?" === r ? Ar : r; + return e + } + function Br(e, t) { + var r, n, o, i, a; + return typeof e === Sr && (t = e, + e = Ar), + this instanceof Br ? (r = typeof wr != Er && wr.navigator ? wr.navigator : Ar, + n = e || (r && r.userAgent ? r.userAgent : ""), + o = r && r.userAgentData ? r.userAgentData : Ar, + i = t ? function(e, t) { + var r, n = {}; + for (r in e) + t[r] && t[r].length % 2 == 0 ? n[r] = t[r].concat(e[r]) : n[r] = e[r]; + return n + }(Ir, t) : Ir, + a = r && r.userAgent == n, + this.getBrowser = function() { + var e, t = {}; + return t[u] = Ar, + t[f] = Ar, + Ur.call(t, n, i.browser), + t.major = typeof (e = t[f]) === Rr ? e.replace(/[^\d\.]/g, "").split(".")[0] : Ar, + a && r && r.brave && typeof r.brave.isBrave == kr && (t[u] = "Brave"), + t + } + , + this.getCPU = function() { + var e = {}; + return e[Or] = Ar, + Ur.call(e, n, i.cpu), + e + } + , + this.getDevice = function() { + var e = {}; + return e[l] = Ar, + e[s] = Ar, + e[c] = Ar, + Ur.call(e, n, i.device), + a && !e[c] && o && o.mobile && (e[c] = p), + a && "Macintosh" == e[s] && r && typeof r.standalone != Er && r.maxTouchPoints && 2 < r.maxTouchPoints && (e[s] = "iPad", + e[c] = h), + e + } + , + this.getEngine = function() { + var e = {}; + return e[u] = Ar, + e[f] = Ar, + Ur.call(e, n, i.engine), + e + } + , + this.getOS = function() { + var e = {}; + return e[u] = Ar, + e[f] = Ar, + Ur.call(e, n, i.os), + a && !e[u] && o && "Unknown" != o.platform && (e[u] = o.platform.replace(/chrome os/i, Dr).replace(/macos/i, "Mac OS")), + e + } + , + this.getResult = function() { + return { + ua: this.getUA(), + browser: this.getBrowser(), + engine: this.getEngine(), + os: this.getOS(), + device: this.getDevice(), + cpu: this.getCPU() + } + } + , + this.getUA = function() { + return n + } + , + this.setUA = function(e) { + return n = typeof e === Rr && 350 < e.length ? jr(e, 350) : e, + this + } + , + this.setUA(n), + this) : new Br(e,t).getResult() + } + Oo = (i = Cr).exports, + wr = "object" == typeof window ? window : $, + kr = "function", + Er = "undefined", + Sr = "object", + Rr = "string", + Ir = { + browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [f = "version", [u = "name", go = "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [f, [u, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [u, f], [/opios[\/ ]+([\w\.]+)/i], [f, [u, (n = "Opera") + " Mini"]], [/\bopr\/([\w\.]+)/i], [f, [u, n]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i, /(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i, /(ba?idubrowser)[\/ ]?([\w\.]+)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i, /(heytap|ovi)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [u, f], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [f, [u, "UC" + (o = "Browser")]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i], [f, [u, "WeChat(Win) Desktop"]], [/micromessenger\/([\w\.]+)/i], [f, [u, "WeChat"]], [/konqueror\/([\w\.]+)/i], [f, [u, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [f, [u, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [f, [u, "Yandex"]], [/(avast|avg)\/([\w\.]+)/i], [[u, /(.+)/, "$1 Secure " + o], f], [/\bfocus\/([\w\.]+)/i], [f, [u, (t = "Firefox") + " Focus"]], [/\bopt\/([\w\.]+)/i], [f, [u, n + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [f, [u, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [f, [u, "Dolphin"]], [/coast\/([\w\.]+)/i], [f, [u, n + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [f, [u, "MIUI " + o]], [/fxios\/([-\w\.]+)/i], [f, [u, t]], [/\bqihu|(qi?ho?o?|360)browser/i], [[u, "360 " + o]], [/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i], [[u, /(.+)/, "$1 " + o], f], [/(comodo_dragon)\/([\w\.]+)/i], [[u, /_/g, " "], f], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i], [u, f], [/(metasr)[\/ ]?([\w\.]+)/i, /(lbbrowser)/i, /\[(linkedin)app\]/i], [u], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[u, e = "Facebook"], f], [/(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(chromium|instagram)[\/ ]([-\w\.]+)/i], [u, f], [/\bgsa\/([\w\.]+) .*safari\//i], [f, [u, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [f, [u, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [f, [u, go + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[u, go + " WebView"], f], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [f, [u, "Android " + o]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [u, f], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [f, [u, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [f, u], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [u, [f, $r, { + "1.0": "/8", + 1.2: "/1", + 1.3: "/3", + "2.0": "/412", + "2.0.2": "/416", + "2.0.3": "/417", + "2.0.4": "/419", + "?": "/" + }]], [/(webkit|khtml)\/([\w\.]+)/i], [u, f], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[u, "Netscape"], f], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [f, [u, t + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i, /panasonic;(viera)/i], [u, f], [/(cobalt)\/([\w\.]+)/i], [u, [f, /master.|lts./, ""]]], + cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[Or = "architecture", "amd64"]], [/(ia32(?=;))/i], [[Or, Tr = function(e) { + return e.toLowerCase() + } + ]], [/((?:i[346]|x)86)[;\)]/i], [[Or, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[Or, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[Or, "armhf"]], [/windows (ce|mobile); ppc;/i], [[Or, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[Or, /ower/, "", Tr]], [/(sun4\w)[;\)]/i], [[Or, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[Or, Tr]]], + device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [s = "model", [l = "vendor", r = "Samsung"], [c = "type", h = "tablet"]], [/\b((?:s[cgp]h|gt|sm)-\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]([-\w]+)/i, /sec-(sgh\w+)/i], [s, [l, r], [c, p = "mobile"]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [s, [l, n = "Apple"], [c, p]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [s, [l, n], [c, h]], [/(macintosh);/i], [s, [l, n]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [s, [l, "Sharp"], [c, p]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [s, [l, "Huawei"], [c, h]], [/(?:huawei|honor)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [s, [l, "Huawei"], [c, p]], [/\b(poco[\w ]+)(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i], [[s, /_/g, " "], [l, o = "Xiaomi"], [c, p]], [/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[s, /_/g, " "], [l, o], [c, h]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [s, [l, "OPPO"], [c, p]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [s, [l, "Vivo"], [c, p]], [/\b(rmx[12]\d{3})(?: bui|;|\))/i], [s, [l, "Realme"], [c, p]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [s, [l, zn = "Motorola"], [c, p]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [s, [l, zn], [c, h]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [s, [l, "LG"], [c, h]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [s, [l, "LG"], [c, p]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [s, [l, "Lenovo"], [c, h]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[s, /_/g, " "], [l, "Nokia"], [c, p]], [/(pixel c)\b/i], [s, [l, zn = "Google"], [c, h]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [s, [l, zn], [c, p]], [/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [s, [l, Ro = "Sony"], [c, p]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[s, "Xperia Tablet"], [l, Ro], [c, h]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [s, [l, "OnePlus"], [c, p]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo[c-r]{2})( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [s, [l, qn = "Amazon"], [c, h]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[s, /(.+)/g, "Fire Phone $1"], [l, qn], [c, p]], [/(playbook);[-\w\),; ]+(rim)/i], [s, l, [c, h]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [s, [l, ho = "BlackBerry"], [c, p]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [s, [l, "ASUS"], [c, h]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [s, [l, "ASUS"], [c, p]], [/(nexus 9)/i], [s, [l, "HTC"], [c, h]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [l, [s, /_/g, " "], [c, p]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [s, [l, "Acer"], [c, h]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [s, [l, "Meizu"], [c, p]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [l, s, [c, p]], [/(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [l, s, [c, h]], [/(surface duo)/i], [s, [l, po = "Microsoft"], [c, h]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [s, [l, "Fairphone"], [c, p]], [/(u304aa)/i], [s, [l, "AT&T"], [c, p]], [/\bsie-(\w*)/i], [s, [l, "Siemens"], [c, p]], [/\b(rct\w+) b/i], [s, [l, "RCA"], [c, h]], [/\b(venue[\d ]{2,7}) b/i], [s, [l, "Dell"], [c, h]], [/\b(q(?:mv|ta)\w+) b/i], [s, [l, "Verizon"], [c, h]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [s, [l, "Barnes & Noble"], [c, h]], [/\b(tm\d{3}\w+) b/i], [s, [l, "NuVision"], [c, h]], [/\b(k88) b/i], [s, [l, "ZTE"], [c, h]], [/\b(nx\d{3}j) b/i], [s, [l, "ZTE"], [c, p]], [/\b(gen\d{3}) b.+49h/i], [s, [l, "Swiss"], [c, p]], [/\b(zur\d{3}) b/i], [s, [l, "Swiss"], [c, h]], [/\b((zeki)?tb.*\b) b/i], [s, [l, "Zeki"], [c, h]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[l, "Dragon Touch"], s, [c, h]], [/\b(ns-?\w{0,9}) b/i], [s, [l, "Insignia"], [c, h]], [/\b((nxa|next)-?\w{0,9}) b/i], [s, [l, "NextBook"], [c, h]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[l, "Voice"], s, [c, p]], [/\b(lvtel\-)?(v1[12]) b/i], [[l, "LvTel"], s, [c, p]], [/\b(ph-1) /i], [s, [l, "Essential"], [c, p]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [s, [l, "Envizen"], [c, h]], [/\b(trio[-\w\. ]+) b/i], [s, [l, "MachSpeed"], [c, h]], [/\btu_(1491) b/i], [s, [l, "Rotor"], [c, h]], [/(shield[\w ]+) b/i], [s, [l, "Nvidia"], [c, h]], [/(sprint) (\w+)/i], [l, s, [c, p]], [/(kin\.[onetw]{3})/i], [[s, /\./g, " "], [l, po], [c, p]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [s, [l, Kn = "Zebra"], [c, h]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [s, [l, Kn], [c, p]], [/smart-tv.+(samsung)/i], [l, [c, xo = "smarttv"]], [/hbbtv.+maple;(\d+)/i], [[s, /^/, "SmartTV"], [l, r], [c, xo]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[l, "LG"], [c, xo]], [/(apple) ?tv/i], [l, [s, n + " TV"], [c, xo]], [/crkey/i], [[s, go + "cast"], [l, zn], [c, xo]], [/droid.+aft(\w)( bui|\))/i], [s, [l, qn], [c, xo]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [s, [l, "Sharp"], [c, xo]], [/(bravia[\w ]+)( bui|\))/i], [s, [l, Ro], [c, xo]], [/(mitv-\w{5}) bui/i], [s, [l, o], [c, xo]], [/Hbbtv.*(technisat) (.*);/i], [l, s, [c, xo]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[l, jr], [s, jr], [c, xo]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[c, xo]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [l, s, [c, r = "console"]], [/droid.+; (shield) bui/i], [s, [l, "Nvidia"], [c, r]], [/(playstation [345portablevi]+)/i], [s, [l, Ro], [c, r]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [s, [l, po], [c, r]], [/((pebble))app/i], [l, s, [c, o = "wearable"]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [s, [l, n], [c, o]], [/droid.+; (glass) \d/i], [s, [l, zn], [c, o]], [/droid.+; (wt63?0{2,3})\)/i], [s, [l, Kn], [c, o]], [/(quest( 2| pro)?)/i], [s, [l, e], [c, o]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [l, [c, Ro = "embedded"]], [/(aeobc)\b/i], [s, [l, qn], [c, Ro]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i], [s, [c, p]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [s, [c, h]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[c, h]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[c, p]], [/(android[-\w\. ]{0,9});.+buil/i], [s, [l, "Generic"]]], + engine: [[/windows.+ edge\/([\w\.]+)/i], [f, [u, "EdgeHTML"]], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [f, [u, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [u, f], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [f, u]], + os: [[/microsoft (windows) (vista|xp)/i], [u, f], [/(windows) nt 6\.2; (arm)/i, /(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i, /(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i], [u, [f, $r, po = { + ME: "4.90", + "NT 3.11": "NT3.51", + "NT 4.0": "NT4.0", + 2e3: "NT 5.0", + XP: ["NT 5.1", "NT 5.2"], + Vista: "NT 6.0", + 7: "NT 6.1", + 8: "NT 6.2", + 8.1: "NT 6.3", + 10: ["NT 6.4", "NT 10.0"], + RT: "ARM" + }]], [/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[u, "Windows"], [f, $r, po]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /ios;fbsv\/([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[f, /_/g, "."], [u, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[u, "Mac OS"], [f, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [f, u], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [u, f], [/\(bb(10);/i], [f, [u, ho]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [f, [u, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [f, [u, t + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [f, [u, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [f, [u, "watchOS"]], [/crkey\/([\d\.]+)/i], [f, [u, go + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[u, Dr = "Chromium OS"], f], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [u, f], [/(sunos) ?([\w\.\d]*)/i], [[u, "Solaris"], f], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [u, f]] + }, + Br.VERSION = "0.7.35", + Br.BROWSER = Lr([u, f, "major"]), + Br.CPU = Lr([Or]), + Br.DEVICE = Lr([s, l, c, r, p, xo, h, o, Ro]), + Br.ENGINE = Br.OS = Lr([u, f]), + (Oo = i.exports ? i.exports = Br : Oo).UAParser = Br, + (Mr = typeof wr != Er && (wr.jQuery || wr.Zepto)) && !Mr.ua && (xr = new Br, + Mr.ua = xr.getResult(), + Mr.ua.get = function() { + return xr.getUA() + } + , + Mr.ua.set = function(e) { + xr.setUA(e); + var t, r = xr.getResult(); + for (t in r) + Mr.ua[t] = r[t] + } + ); + var Nr = Cr.exports; + const Fr = "function" == typeof atob + , Gr = "function" == typeof btoa + , zr = "function" == typeof jI + , Zr = "function" == typeof TextDecoder ? new TextDecoder : void 0 + , Hr = "function" == typeof TextEncoder ? new TextEncoder : void 0 + , Kr = Array.prototype.slice.call("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=") + , qr = (e=>{ + let r = {}; + return e.forEach((e,t)=>r[e] = t), + r + } + )(Kr) + , Vr = /^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/ + , Wr = String.fromCharCode.bind(String) + , Yr = "function" == typeof Uint8Array.from ? Uint8Array.from.bind(Uint8Array) : e=>new Uint8Array(Array.prototype.slice.call(e, 0)) + , Jr = e=>e.replace(/[^A-Za-z0-9\+\/]/g, "") + , Xr = Gr ? e=>btoa(e) : zr ? e=>jI.from(e, "binary").toString("base64") : t=>{ + let r, n, o, i, a = ""; + var e = t.length % 3; + for (let e = 0; e < t.length; ) { + if (255 < (n = t.charCodeAt(e++)) || 255 < (o = t.charCodeAt(e++)) || 255 < (i = t.charCodeAt(e++))) + throw new TypeError("invalid character found"); + r = n << 16 | o << 8 | i, + a += Kr[r >> 18 & 63] + Kr[r >> 12 & 63] + Kr[r >> 6 & 63] + Kr[63 & r] + } + return e ? a.slice(0, e - 3) + "===".substring(e) : a + } + , Qr = zr ? e=>jI.from(e).toString("base64") : r=>{ + var n = []; + for (let e = 0, t = r.length; e < t; e += 4096) + n.push(Wr.apply(null, r.subarray(e, e + 4096))); + return Xr(n.join("")) + } + , en = e=>{ + var t; + return e.length < 2 ? (t = e.charCodeAt(0)) < 128 ? e : t < 2048 ? Wr(192 | t >>> 6) + Wr(128 | 63 & t) : Wr(224 | t >>> 12 & 15) + Wr(128 | t >>> 6 & 63) + Wr(128 | 63 & t) : (t = 65536 + 1024 * (e.charCodeAt(0) - 55296) + (e.charCodeAt(1) - 56320), + Wr(240 | t >>> 18 & 7) + Wr(128 | t >>> 12 & 63) + Wr(128 | t >>> 6 & 63) + Wr(128 | 63 & t)) + } + , tn = /[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g + , rn = zr ? e=>jI.from(e, "utf8").toString("base64") : Hr ? e=>Qr(Hr.encode(e)) : e=>{ + return Xr(e.replace(tn, en)) + } + , nn = /[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g + , on = e=>{ + switch (e.length) { + case 4: + var t = ((7 & e.charCodeAt(0)) << 18 | (63 & e.charCodeAt(1)) << 12 | (63 & e.charCodeAt(2)) << 6 | 63 & e.charCodeAt(3)) - 65536; + return Wr(55296 + (t >>> 10)) + Wr(56320 + (1023 & t)); + case 3: + return Wr((15 & e.charCodeAt(0)) << 12 | (63 & e.charCodeAt(1)) << 6 | 63 & e.charCodeAt(2)); + default: + return Wr((31 & e.charCodeAt(0)) << 6 | 63 & e.charCodeAt(1)) + } + } + , an = Fr ? e=>atob(Jr(e)) : zr ? e=>jI.from(e, "base64").toString("binary") : t=>{ + if (t = t.replace(/\s+/g, ""), + !Vr.test(t)) + throw new TypeError("malformed base64."); + t += "==".slice(2 - (3 & t.length)); + let r, n, o, i = ""; + for (let e = 0; e < t.length; ) + r = qr[t.charAt(e++)] << 18 | qr[t.charAt(e++)] << 12 | (n = qr[t.charAt(e++)]) << 6 | (o = qr[t.charAt(e++)]), + i += 64 === n ? Wr(r >> 16 & 255) : 64 === o ? Wr(r >> 16 & 255, r >> 8 & 255) : Wr(r >> 16 & 255, r >> 8 & 255, 255 & r); + return i + } + , sn = zr ? e=>Yr(jI.from(e, "base64")) : e=>Yr(an(e).split("").map(e=>e.charCodeAt(0))) + , un = zr ? e=>jI.from(e, "base64").toString("utf8") : Zr ? e=>Zr.decode(sn(e)) : e=>{ + return an(e).replace(nn, on) + } + , cn = (e,t=!1)=>{ + return t ? rn(e).replace(/=/g, "").replace(/[+\/]/g, e=>"+" == e ? "-" : "_") : rn(e) + } + , ln = e=>{ + return un((e = e, + Jr(e.replace(/[-_]/g, e=>"-" == e ? "+" : "/")))) + } + ; + var m = { + Rewarded: "rewarded", + Interstitial: "interstitial", + Preroll: "interstitial", + Midroll: "interstitial", + Display: "display" + }; + function dn(e, t) { + for (var r in t) + t.hasOwnProperty(r) && null !== t[r] && void 0 !== t[r] && (e[r] = t[r]); + return e + } + function fn() { + var e, t = mn(), t = (t.gd_sdk_referrer_url || (window.location !== window.parent.location && document.referrer && "" !== document.referrer ? document.referrer.split("/")[2] : document.location.host)).replace(/^(?:https?:\/\/)?(?:\/\/)?(?:www\.)?/i, "").split("/")[0]; + return -1 !== document.referrer.indexOf("gameplayer.io") ? (t = "gamedistribution.com", + (e = hn("ref", document.referrer)) && "" !== e && "{portal%20name}" !== e && "{spilgames}" !== e && "{portal name}" !== e && (t = gn(e).replace(/^(?:https?:\/\/)?(?:\/\/)?(?:www\.)?/i, "").split("/")[0])) : -1 !== document.referrer.indexOf("localhost") && (t = "gamedistribution.com"), + t + } + function pn() { + var e, t = mn(); + return t.gd_sdk_referrer_url ? (0 === yn() && (t.gd_sdk_referrer_url = document.location.href), + t.gd_sdk_referrer_url) : (t = window.location !== window.parent.location && document.referrer && "" !== document.referrer ? document.referrer : document.location.href, + -1 !== document.referrer.indexOf("gameplayer.io") ? (t = "https://gamedistribution.com", + (e = hn("ref", document.referrer)) && "" !== e && "{portal%20name}" !== e && "{spilgames}" !== e && "{portal name}" !== e && (t = gn(e).replace(/^(?:https?:\/\/)?(?:\/\/)?/i, ""), + t = "https://".concat(t))) : -1 !== document.referrer.indexOf("localhost") && (t = "https://gamedistribution.com/"), + t) + } + function hn(e, t) { + t = t || window.location.href, + e = new RegExp("[?&]" + e + "=([^&#]*)","i").exec(t); + return e ? e[1] : null + } + function mn() { + for (var e, t = /\+/g, r = /([^&=]+)=?([^&]*)/g, n = function(e) { + return decodeURIComponent(e.toLowerCase().replace(t, " ")) + }, o = window.location.search.substring(1), i = {}; e = r.exec(o); ) + i[n(e[1])] = n(e[2]); + return i + } + function gn(e) { + for (; function e(t) { + return (t = t || "") !== decodeURIComponent(t) + }(e); ) + e = decodeURIComponent(e); + return e + } + function vn() { + var e = navigator.userAgent || navigator.vendor || window.opera; + return /windows phone/i.test(e) ? "windows" : /android/i.test(e) ? "android" : /iPad|iPhone|iPod/.test(e) && !window.MSStream ? "ios" : "" + } + function bn(a, s, u) { + return new Promise(function(e, t) { + if (u && u.exists && u.exists()) + e(_n(null == u ? void 0 : u.alternates)); + else { + var r = u && u.alternates && 0 < u.alternates.length ? _n(u.alternates) : void 0 + , n = r || document.createElement("script") + , o = u && u.error_prefix ? u.error_prefix : "Failed:"; + if (n.onload = function() { + u && u.exists && !u.exists() ? t("".concat(o, " ").concat(a)) : e(n) + } + , + n.onerror = function() { + t("".concat(o, " ").concat(a)) + } + , + !r) { + if (n.type = "text/javascript", + !0 === u.defer ? n.defer = !0 : n.async = !0, + null != u && u.attrs) + for (var i in u.attrs) + n.setAttribute(i, u.attrs[i]); + n.src = a, + n.id = s, + document.head.appendChild(n) + } + } + } + ) + } + function yn() { + var e = 0 + , t = window; + try { + for (; t != t.parent; ) + e++, + t = t.parent + } catch (e) {} + return e + } + function _n(e) { + if (e && e.length) { + var t = document.querySelectorAll("script"); + if (t) + for (var r in t) { + r = t[r]; + if (e.includes(r.src)) + return r + } + } + } + function wn(e) { + return !!localStorage.getItem(e) + } + function An() { + var e = yn(); + if (0 === e) + return location.host.replace(/^www\.(.*)$/i, "$1"); + if (location.ancestorOrigins && 0 < location.ancestorOrigins.length) + return location.ancestorOrigins[location.ancestorOrigins.length - 1].replace(/^https?:\/\/(www\.)?(.*)$/i, "$2"); + if (1 === e) { + e = function(e) { + if (e && "" !== e) + try { + return new ce(e) + } catch (e) {} + }(document.referrer); + if (e) + return e.host.replace(/^www\.(.*)$/i, "$1") + } + } + var xn = function(e, t) { + return wn(e) ? "true" === (e = localStorage.getItem(e)) || !0 === e || 1 === e || "1" === e : t + } + , kn = function() { + var e = Date.now(); + try { + return localStorage.setItem(e, e), + localStorage.removeItem(e), + !0 + } catch (e) { + return !1 + } + }() + , En = function(e) { + localStorage.removeItem(e) + } + , Sn = function(e, t) { + localStorage.setItem(e, t) + } + , Rn = Date.now() + , On = { + console: !1 + }; + function Dn(e, t, r) { + try { + var n, o; + (kn && xn("gd_debug_ex") || On && !0 === On.console) && (n = "error" === r ? "background: #c4161e; color: #fff" : "warning" === r ? "background: #ff8c1c; color: #fff" : "info" === r ? "background: #ff0080; color: #fff" : "background: #44a5ab; color: #fff", + o = console.log("[" + (Date.now() - Rn) / 1e3 + "s]%c %c %c gdsdk %c %c %c " + e + " ", "background: #9854d8", "background: #6c2ca7", "color: #fff; background: #450f78;", "background: #6c2ca7", "background: #9854d8", n, void 0 !== t ? t : ""), + console.log.apply(console, o)) + } catch (e) { + console.log(e) + } + } + function Tn(e) { + return e && e.Math == Math && e + } + function In(t, r) { + try { + Hn(Zn, t, { + value: r, + configurable: !0, + writable: !0 + }) + } catch (e) { + Zn[t] = r + } + return r + } + var Mn = ["SDK_READY", "SDK_ERROR", "SDK_LB_LOGIN", "SDK_SHW_LB", "SDK_GAME_START", "SDK_GAME_PAUSE", "SDK_GDPR_TRACKING", "SDK_GDPR_TARGETING", "SDK_GDPR_THIRD_PARTY", "AD_SDK_MANAGER_READY", "AD_SDK_CANCELED", "AD_IS_ALREADY_RUNNING", "SDK_REWARDED_WATCH_COMPLETE"] + , Cn = ["AD_ERROR", "AD_BREAK_READY", "AD_METADATA", "ALL_ADS_COMPLETED", "CLICK", "COMPLETE", "CONTENT_PAUSE_REQUESTED", "CONTENT_RESUME_REQUESTED", "DURATION_CHANGE", "FIRST_QUARTILE", "IMPRESSION", "INTERACTION", "LINEAR_CHANGED", "LOADED", "LOG", "MIDPOINT", "PAUSED", "RESUMED", "SKIPPABLE_STATE_CHANGED", "SKIPPED", "STARTED", "THIRD_QUARTILE", "USER_CLOSE", "VOLUME_CHANGED", "VOLUME_MUTED", "DISPLAYAD_IMPRESSION", "DISPLAYAD_ERROR"] + , Ln = 1010 + , Pn = 1020 + , jn = 1100 + , Un = null + , $n = (pe(Xn, [{ + key: "_getListenerIdx", + value: function(e, t, r) { + var n, o = this.listeners[e], i = -1; + if (o && 0 !== o.length) + for (n = 0; n < o.length; n++) + if (o[n].callback === t && (!r || r === o[n].scope)) { + i = n; + break + } + return i + } + }, { + key: "subscribe", + value: function(e, t, r) { + if (!e) + throw new Error("Event name cannot be null or undefined."); + if (!t || "function" != typeof t) + throw new Error("Listener must be of type function."); + 0 <= this._getListenerIdx(e, t, r) ? console.log(e, r) : (t = { + callback: t, + scope: r + }, + this.listeners[e] = this.listeners[e] || [], + this.listeners[e].push(t)) + } + }, { + key: "unsubscribeScope", + value: function(e) { + for (var t = Object.keys(this.listeners), r = 0; r < t.length; r++) { + for (var n = t[r], o = this.listeners[n], i = 0; i < o.length; i++) + o[i].scope === e && (o.splice(i, 1), + i--); + 0 === o.length && delete this.listeners[n] + } + } + }, { + key: "broadcast", + value: function(e, t) { + var r = this.listeners[e]; + e && this.listeners[e] && ((t = t || {}).name = t.name || e, + r.forEach(function(e) { + e.callback.call(e.scope, t, e.scope) + })) + } + }, { + key: "printScope", + value: function(e) { + for (var t = Object.keys(this.listeners), r = 0; r < t.length; r++) + for (var n = t[r], o = this.listeners[n], i = 0; i < o.length; i++) + o[i].scope === e && console.log(n, e) + } + }]), + Xn) + , Bn = (pe(Jn, [{ + key: "transform", + value: function(e, t) { + e = Ft(e); + return this.transformValue(e, t) + } + }, { + key: "transformValue", + value: function(t, e) { + if (zt(t) || Jt(t)) + for (var r in t) + t[r] = this.transformValue(t[r], e); + else if ("string" == typeof (u = t) || "object" == typeof u && (Wt ? function(e) { + try { + return qt.call(e), + !0 + } catch (e) { + return !1 + } + }(u) : "[object String]" === Vt.call(u))) { + var n, o, i, a = /\{\{(\w+)\}\}/g, s = []; + do {} while ((n = a.exec(t)) && (n[0], + o = n[1], + void 0 !== (i = this.getMacroKeyValue(o, e))) && s.push({ + key: o, + value: i + }), + n); + 0 < s.length && s.forEach(function(e) { + t = t.replace(new RegExp("{{" + e.key + "}}","g"), e.value) + }) + } + var u; + return t + } + }, { + key: "getMacroKeyValue", + value: function(e, t) { + switch (e) { + case "CACHEBUSTER": + return Date.now(); + case "GAME_ID": + return this.game.gameId; + case "GAME_TITLE": + return this.game.title; + case "COUNTRY_CODE": + return this.game.ctry; + case "PAGE_URL": + return this.bridge.parentURL; + case "PAGE_URL_ESC": + return encodeURIComponent(this.bridge.parentURL); + case "PAGE_URL_ESC_ESC": + return encodeURIComponent(encodeURIComponent(this.bridge.parentURL)); + case "DOMAIN_MATCHED": + return this.bridge.domainMatched ? 1 : 0; + case "DOMAIN_PARENT": + return this.bridge.parentDomain; + case "DOMAIN_TOP": + return this.bridge.topDomain; + case "DEPTH": + case "GAME_DEPTH": + return this.bridge.depth; + default: + if (t && Zt(t.get)) + return t.get(e) + } + } + }]), + Jn) + , Nn = (pe(Yn, [{ + key: "_init_layout", + value: function() { + var e = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth + , t = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; + this._layout = { + w: e -= e % 64, + h: t -= t % 64 + } + } + }, { + key: "send", + value: function(e, t) { + return false; + if (!this._config.isCoreSDKMode) { + this._size = "".concat(this._layout.w, " x ").concat(this._layout.h); + var r = this._topic_counter[e] || 0 + , r = (this._topic_counter[e] = ++r, + { + gmid: this._config.gameId, + tdmn: this._config.topDomain, + domn: this._config.domain, + rfrr: this._config.referrer, + lthr: this._config.hours, + ctry: this._config.country, + dpth: this._config.depth, + vers: this._config.version, + trac: this._config.tracking, + whlb: this._config.whitelabel, + plat: this._config.platform, + tpct: r, + args: t, + ttle: document.title, + size: this._size, + brnm: this._ua.browser.name, + brmj: this._ua.browser.major, + osnm: this._ua.os.name, + osvr: this._ua.os.version, + dvmd: this._ua.device.model, + byld: this._config.byloader, + bylv: this._config.byloaderVersion, + imgu: this._config.isMasterGameURL, + iegu: this._config.isExtHostedGameURL, + itgu: this._config.isTokenGameURL, + cmpe: !1, + host: window.location.hostname + }); + "undefined" != typeof idhb && void 0 !== idhb.iabCmpExists() && (r.cmpe = idhb.iabCmpExists()); + try { + r = encodeURIComponent(cn(JSON.stringify([r]))), + fetch(this._url + "?tp=com.gdsdk.".concat(e, "&ar=").concat(r, "&ts=").concat(Date.now())) + } catch (e) {} + } + } + }, { + key: "setGameData", + value: function(e) { + this._gameData = e, + this._config.country = e.ctry + } + }]), + Yn) + , Fn = null + , Gn = (pe(Wn, [{ + key: "start", + value: function() { + var e = "\n #gdsdk__console_container {\n display: flex;\n box-sizing: border-box;\n padding: 3px;\n background: linear-gradient(90deg,#3d1b5d,#5c3997);\n box-shadow: 0 0 8px rgba(0, 0, 0, 0.8);\n color: #fff;\n font-family: Helvetica, Arial, sans-serif;\n font-size: 8px;\n }\n #gdsdk__console_container button {\n flex: 1;\n background: #44a5ab;\n padding: 3px 10px;\n margin: 2px;\n border: 0;\n border-radius: 3px;\n color: #fff;\n outline: 0;\n cursor: pointer;\n font-size: 8px;\n box-shadow: 0 0 0 transparent;\n text-shadow: 0 0 0 transparent;\n text-overflow: ellipsis;\n overflow: hidden;\n white-space: nowrap;\n }\n #gdsdk__console_container button:hover {\n background: #4fb3b9;\n }\n #gdsdk__console_container button:active {\n background: #62bbc0;\n }\n " + , t = document.head || document.getElementsByTagName("head")[0] + , r = document.createElement("style") + , e = (r.type = "text/css", + r.styleSheet ? r.styleSheet.cssText = e : r.appendChild(document.createTextNode(e)), + t.appendChild(r), + document.body || document.getElementsByTagName("body")[0]) + , t = document.createElement("div") + , r = (t.id = "gdsdk__console", + t.style.position = "fixed", + t.style.zIndex = jn, + t.style.bottom = "0", + t.style.left = "0", + t.style.width = "100%", + t.innerHTML = '\n
\n \n \n \x3c!--\n \n \n --\x3e\n \n \n \n \x3c!--\n \n --\x3e\n \n \n \n \n
\n ', + e.appendChild(t), + document.getElementById("gdsdk__showLeaderboard")) + , e = document.getElementById("gdsdk__showInterstitial") + , t = document.getElementById("gdsdk__showRewarded") + , n = document.getElementById("gdsdk__cancel") + , o = document.getElementById("gdsdk__demo") + , i = document.getElementById("gdsdk__disableMidrollTimer") + , a = document.getElementById("gdsdk__hbgdDebug") + , s = document.getElementById("gdsdk__hbgdConfig") + , u = document.getElementById("gdsdk__closeDebug"); + xn("gd_tag") ? (o.innerHTML = "Revert Vast tag", + o.style.background = "#ff8c1c") : (o.innerHTML = "Demo VAST tag", + o.style.background = "#44a5ab"), + xn("gd_disable_midroll_timer") ? (i.innerHTML = "Revert delay", + i.style.background = "#ff8c1c") : (i.innerHTML = "Disable delay", + i.style.background = "#44a5ab"), + xn("gd_hb_debug") ? (a.innerHTML = "Revert HB Debug", + a.style.background = "#ff8c1c") : (a.innerHTML = "HB Debug", + a.style.background = "#44a5ab"), + r.addEventListener("click", function() { + window.gdsdk.showLeaderBoard().catch(function(e) {}) + }), + e.addEventListener("click", function() { + window.gdsdk.showAd(m.Interstitial).catch(function(e) {}) + }), + t.addEventListener("click", function() { + window.gdsdk.showAd(m.Rewarded).catch(function(e) {}) + }), + n.addEventListener("click", function() { + window.gdsdk.cancelAd().then(function(e) {}).catch(function(e) {}) + }), + o.addEventListener("click", function() { + try { + xn("gd_tag") ? En("gd_tag") : Sn("gd_tag", !0), + location.reload() + } catch (e) { + console.log(e) + } + }), + i.addEventListener("click", function() { + try { + xn("gd_disable_midroll_timer") ? En("gd_disable_midroll_timer") : Sn("gd_disable_midroll_timer", !0), + location.reload() + } catch (e) { + console.log(e) + } + }), + u.addEventListener("click", function() { + try { + xn("gd_debug_ex") ? En("gd_debug_ex") : Sn("gd_debug_ex", !0), + location.reload() + } catch (e) { + console.log(e) + } + }), + a.addEventListener("click", function() { + try { + xn("gd_hb_debug") ? En("gd_hb_debug") : Sn("gd_hb_debug", !0), + window.idhb && window.idhb.debug(!(!kn || !xn("gd_hb_debug"))), + location.reload() + } catch (e) { + console.log(e) + } + }), + s.addEventListener("click", function() { + try { + var e = window.idhb.getConfig(); + console.info(e) + } catch (e) { + console.log(e) + } + }) + } + }]), + Wn) + , n = Tn("object" == typeof globalThis && globalThis) || Tn("object" == typeof window && window) || Tn("object" == typeof self && self) || Tn("object" == typeof $ && $) || function() { + return this + }() || Function("return this")() + , zn = { + exports: {} + } + , Zn = n + , Hn = Object.defineProperty + , Kn = In + , e = "__core-js_shared__" + , qn = n[e] || Kn(e, {}) + , Vn = qn; + function Wn(e) { + if (le(this, Wn), + Fn) + return Fn; + (Fn = this).eventBus = new $n, + this._sdk = e + } + function Yn(e) { + le(this, Yn), + this._config = e || {}, + this._url = e.url || "https://msgrt.gamedistribution.com/collect", + this._topic_counter = {}, + this._ua = (new Nr).getResult(), + this._init_layout() + } + function Jn(e) { + le(this, Jn), + this.game = e.game, + this.bridge = e.bridge + } + function Xn() { + if (le(this, Xn), + Un) + return Un; + (Un = this).listeners = {} + } + (zn.exports = function(e, t) { + return Vn[e] || (Vn[e] = void 0 !== t ? t : {}) + } + )("versions", []).push({ + version: "3.30.1", + mode: "global", + copyright: "© 2014-2023 Denis Pushkarev (zloirock.ru)", + license: "https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE", + source: "https://github.com/zloirock/core-js" + }); + function Qn(e) { + try { + return !!e() + } catch (e) { + return !0 + } + } + function eo(e) { + return null == e + } + function to(e) { + if (vo(e)) + throw bo("Can't call method on " + e); + return e + } + function ro(e) { + return _o(yo(e)) + } + function no(e) { + return "Symbol(" + (void 0 === e ? "" : e) + ")_" + So(++ko + Eo, 36) + } + function oo(e) { + return To(Co, e) || (Co[e] = Io && To(Mo, e) ? Mo[e] : Lo("Symbol." + e)), + Co[e] + } + function io(e) { + return No ? Bo.createElement(e) : {} + } + function ao(e) { + if (Go(e)) + return e; + throw Zo(zo(e) + " is not an object") + } + function so(e, t) { + return arguments.length < 2 ? (r = Ko[e], + qo(r) ? r : void 0) : Ko[e] && Ko[e][t]; + var r + } + function uo(e) { + try { + return Qo(e) + } catch (e) { + return "Object" + } + } + function co(e) { + if (ei(e)) + return e; + throw ri(ti(e) + " is not a function") + } + function lo(e, t) { + return e = e[t], + oi(e) ? void 0 : ni(e) + } + function fo(e) { + return e = function(e, t) { + if (!li(e) || di(e)) + return e; + var r = fi(e, mi); + if (r) { + if (r = ci(r, e, t = void 0 === t ? "default" : t), + !li(r) || di(r)) + return r; + throw hi("Can't convert object to primitive value") + } + return pi(e, t = void 0 === t ? "number" : t) + }(e, "string"), + gi(e) ? e : e + "" + } + var po = !Qn(function() { + var e = function() {} + .bind(); + return "function" != typeof e || e.hasOwnProperty("prototype") + }) + , ho = po + , t = Function.prototype + , mo = t.call + , go = ho && t.bind.bind(mo, mo) + , r = ho ? go : function(e) { + return function() { + return mo.apply(e, arguments) + } + } + , vo = eo + , bo = TypeError + , yo = to + , _o = Object + , wo = ro + , Ao = r({}.hasOwnProperty) + , xo = Object.hasOwn || function(e, t) { + return Ao(wo(e), t) + } + , o = r + , ko = 0 + , Eo = Math.random() + , So = o(1..toString) + , Ro = "undefined" != typeof navigator && String(navigator.userAgent) || "" + , i = Ro + , Oo = n.process + , Cr = n.Deno + , Kn = Oo && Oo.versions || Cr && Cr.version + , e = Kn && Kn.v8 + , t = a = !(a = e ? 0 < (Po = e.split("."))[0] && Po[0] < 4 ? 1 : +(Po[0] + Po[1]) : a) && i && (!(Po = i.match(/Edge\/(\d+)/)) || 74 <= Po[1]) && (Po = i.match(/Chrome\/(\d+)/)) ? +Po[1] : a + , Do = t + , ho = Qn + , go = !!Object.getOwnPropertySymbols && !ho(function() { + var e = Symbol(); + return !String(e) || !(Object(e)instanceof Symbol) || !Symbol.sham && Do && Do < 41 + }) + , o = go && !Symbol.sham && "symbol" == typeof Symbol.iterator + , Oo = zn.exports + , To = xo + , Cr = no + , Io = go + , Kn = o + , Mo = n.Symbol + , Co = Oo("wks") + , Lo = Kn ? Mo.for || Mo : Mo && Mo.withoutSetter || Cr + , e = {} + , i = (e[oo("toStringTag")] = "z", + "[object z]" === String(e)) + , Po = "object" == typeof document && document.all + , a = { + all: Po, + IS_HTMLDDA: void 0 === Po && void 0 !== Po + } + , jo = a.all + , ho = a.IS_HTMLDDA ? function(e) { + return "function" == typeof e || e === jo + } + : function(e) { + return "function" == typeof e + } + , Oo = {} + , Kn = !Qn(function() { + return 7 != Object.defineProperty({}, 1, { + get: function() { + return 7 + } + })[1] + }) + , Uo = ho + , $o = a.all + , Cr = a.IS_HTMLDDA ? function(e) { + return "object" == typeof e ? null !== e : Uo(e) || e === $o + } + : function(e) { + return "object" == typeof e ? null !== e : Uo(e) + } + , e = Cr + , Bo = n.document + , No = e(Bo) && e(Bo.createElement) + , Fo = io + , Po = !Kn && !Qn(function() { + return 7 != Object.defineProperty(Fo("div"), "a", { + get: function() { + return 7 + } + }).a + }) + , a = Kn && Qn(function() { + return 42 != Object.defineProperty(function() {}, "prototype", { + value: 42, + writable: !1 + }).prototype + }) + , Go = Cr + , zo = String + , Zo = TypeError + , Ho = Function.prototype.call + , e = po ? Ho.bind(Ho) : function() { + return Ho.apply(Ho, arguments) + } + , Ko = n + , qo = ho + , Vo = r({}.isPrototypeOf) + , Wo = so + , Yo = ho + , Jo = Vo + , Xo = Object + , o = o ? function(e) { + return "symbol" == typeof e + } + : function(e) { + var t = Wo("Symbol"); + return Yo(t) && Jo(t.prototype, Xo(e)) + } + , Qo = String + , ei = ho + , ti = uo + , ri = TypeError + , ni = co + , oi = eo + , ii = e + , ai = ho + , si = Cr + , ui = TypeError + , ci = e + , li = Cr + , di = o + , fi = lo + , pi = function(e, t) { + var r, n; + if ("string" === t && ai(r = e.toString) && !si(n = ii(r, e))) + return n; + if (ai(r = e.valueOf) && !si(n = ii(r, e))) + return n; + if ("string" !== t && ai(r = e.toString) && !si(n = ii(r, e))) + return n; + throw ui("Can't convert object to primitive value") + } + , hi = TypeError + , mi = oo("toPrimitive") + , gi = o + , vi = Po + , bi = ao + , yi = fo + , _i = TypeError + , wi = Object.defineProperty + , Ai = Object.getOwnPropertyDescriptor + , xi = "enumerable" + , ki = "configurable" + , Ei = "writable" + , Si = (Oo.f = Kn ? a ? function(e, t, r) { + var n; + return bi(e), + t = yi(t), + bi(r), + "function" == typeof e && "prototype" === t && "value"in r && Ei in r && !r[Ei] && (n = Ai(e, t)) && n[Ei] && (e[t] = r.value, + r = { + configurable: (ki in r ? r : n)[ki], + enumerable: (xi in r ? r : n)[xi], + writable: !1 + }), + wi(e, t, r) + } + : wi : function(e, t, r) { + if (bi(e), + t = yi(t), + bi(r), + vi) + try { + return wi(e, t, r) + } catch (e) {} + if ("get"in r || "set"in r) + throw _i("Accessors not supported"); + return "value"in r && (e[t] = r.value), + e + } + , + { + exports: {} + }) + , Ri = Kn + , Oi = xo + , g = Function.prototype + , Di = Ri && Object.getOwnPropertyDescriptor + , Oi = Oi(g, "name") + , Oi = { + EXISTS: Oi, + PROPER: Oi && "something" === function() {} + .name, + CONFIGURABLE: Oi && (!Ri || Di(g, "name").configurable) + } + , Ri = ho + , Di = qn + , Ti = r(Function.toString); + Ri(Di.inspectSource) || (Di.inspectSource = function(e) { + return Ti(e) + } + ); + function Ii(e, t) { + return { + enumerable: !(1 & e), + configurable: !(2 & e), + writable: !(4 & e), + value: t + } + } + function Mi(e) { + return ta[e] || (ta[e] = ea(e)) + } + function Ci(e, t, r, n) { + var o = (n = n || {}).enumerable + , i = void 0 !== n.name ? n.name : t; + if (Ea(r) && Ra(r, i, n), + n.global) + o ? e[t] = r : Oa(t, r); + else { + try { + n.unsafe ? e[t] && (o = !0) : delete e[t] + } catch (e) {} + o ? e[t] = r : Sa.f(e, t, { + value: r, + enumerable: !1, + configurable: !n.nonConfigurable, + writable: !n.nonWritable + }) + } + return e + } + function Li(e) { + return Ta(Da(e), 8, -1) + } + function Pi(e) { + if ("Function" === Ua(e)) + return $a(e) + } + function ji(e, t) { + return Ba(e), + void 0 === t ? e : Na ? Fa(e, t) : function() { + return e.apply(t, arguments) + } + } + function Ui(e) { + return (e = +e) != e || 0 == e ? 0 : qa(e) + } + function $i(e) { + return 0 < e ? Wa(Va(e), 9007199254740991) : 0 + } + function Bi(e) { + return Ya(e.length) + } + function Ni() {} + function Fi(e) { + if (!es(e)) + return !1; + try { + return os(Ni, ns, e), + !0 + } catch (e) { + return !1 + } + } + function Gi(e) { + if (!es(e)) + return !1; + switch (ts(e)) { + case "AsyncFunction": + case "GeneratorFunction": + case "AsyncGeneratorFunction": + return !1 + } + try { + return ss || !!as(is, rs(e)) + } catch (e) { + return !0 + } + } + function zi(e, t) { + return new (void 0 === (r = us(e = e) && (r = e.constructor, + cs(r) && (r === fs || us(r.prototype)) || ls(r) && null === (r = r[ds])) ? void 0 : r) ? fs : r)(0 === t ? 0 : t); + var r + } + function Zi(f) { + var p = 1 == f + , h = 2 == f + , m = 3 == f + , g = 4 == f + , v = 6 == f + , b = 7 == f + , y = 5 == f || v; + return function(e, t, r, n) { + for (var o, i, a = ms(e), s = hs(a), u = ps(t, r), c = gs(s), l = 0, t = n || vs, d = p ? t(e, c) : h || b ? t(e, 0) : void 0; l < c; l++) + if ((y || l in s) && (i = u(o = s[l], l, a), + f)) + if (p) + d[l] = i; + else if (i) + switch (f) { + case 3: + return !0; + case 5: + return o; + case 6: + return l; + case 2: + bs(d, o) + } + else + switch (f) { + case 4: + return !1; + case 7: + bs(d, o) + } + return v ? -1 : m || g ? g : d + } + } + function Hi(e, t) { + var r = [][e]; + return !!r && ys(function() { + r.call(null, t || function() { + return 1 + } + , 1) + }) + } + function Ki(t) { + if (t && t.forEach !== xs) + try { + ks(t, "forEach", xs) + } catch (e) { + t.forEach = xs + } + } + var qi, Vi, Wi, Yi, Ji, g = Di.inspectSource, Ri = ho, Di = n.WeakMap, Ri = Ri(Di) && /native code/.test(String(Di)), Xi = Oo, Qi = Ii, Di = Kn ? function(e, t, r) { + return Xi.f(e, t, Qi(1, r)) + } + : function(e, t, r) { + return e[t] = r, + e + } + , ea = no, ta = (0, + zn.exports)("keys"), v = {}, ra = Cr, na = Di, oa = xo, ia = Mi, aa = v, sa = "Object already initialized", ua = n.TypeError, ca = n.WeakMap, la = Ri || qn.state ? ((Wi = qn.state || (qn.state = new ca)).get = Wi.get, + Wi.has = Wi.has, + Wi.set = Wi.set, + qi = function(e, t) { + if (Wi.has(e)) + throw ua(sa); + return t.facade = e, + Wi.set(e, t), + t + } + , + Vi = function(e) { + return Wi.get(e) || {} + } + , + function(e) { + return Wi.has(e) + } + ) : (aa[Yi = ia("state")] = !0, + qi = function(e, t) { + if (oa(e, Yi)) + throw ua(sa); + return t.facade = e, + na(e, Yi, t), + t + } + , + Vi = function(e) { + return oa(e, Yi) ? e[Yi] : {} + } + , + function(e) { + return oa(e, Yi) + } + ), Ri = { + set: qi, + get: Vi, + has: la, + enforce: function(e) { + return la(e) ? Vi(e) : qi(e, {}) + }, + getterFor: function(t) { + return function(e) { + if (ra(e) && (e = Vi(e)).type === t) + return e; + throw ua("Incompatible receiver, " + t + " required") + } + } + }, qn = r, ca = Qn, da = ho, fa = xo, pa = Kn, ha = Oi.CONFIGURABLE, ma = g, ga = Ri.enforce, va = Ri.get, ba = String, ya = Object.defineProperty, _a = qn("".slice), wa = qn("".replace), Aa = qn([].join), xa = pa && !ca(function() { + return 8 !== ya(function() {}, "length", { + value: 8 + }).length + }), ka = String(String).split("String"), aa = Si.exports = function(e, t, r) { + "Symbol(" === _a(ba(t), 0, 7) && (t = "[" + wa(ba(t), /^Symbol\(([^)]*)\)/, "$1") + "]"), + r && r.getter && (t = "get " + t), + r && r.setter && (t = "set " + t), + (!fa(e, "name") || ha && e.name !== t) && (pa ? ya(e, "name", { + value: t, + configurable: !0 + }) : e.name = t), + xa && r && fa(r, "arity") && e.length !== r.arity && ya(e, "length", { + value: r.arity + }); + try { + r && fa(r, "constructor") && r.constructor ? pa && ya(e, "prototype", { + writable: !1 + }) : e.prototype && (e.prototype = void 0) + } catch (e) {} + r = ga(e); + return fa(r, "source") || (r.source = Aa(ka, "string" == typeof t ? t : "")), + e + } + , Ea = (Function.prototype.toString = aa(function() { + return da(this) && va(this).source || ma(this) + }, "toString"), + ho), Sa = Oo, Ra = Si.exports, Oa = In, ia = r, Da = ia({}.toString), Ta = ia("".slice), qn = i, Ia = ho, Ma = Li, Ca = oo("toStringTag"), La = Object, Pa = "Arguments" == Ma(function() { + return arguments + }()), ca = qn ? Ma : function(e) { + var t; + return void 0 === e ? "Undefined" : null === e ? "Null" : "string" == typeof (t = function(e, t) { + try { + return e[t] + } catch (e) {} + }(e = La(e), Ca)) ? t : Pa ? Ma(e) : "Object" == (t = Ma(e)) && Ia(e.callee) ? "Arguments" : t + } + , ja = ca, aa = (i || Ci(Object.prototype, "toString", i ? {}.toString : function() { + return "[object " + ja(this) + "]" + } + , { + unsafe: !0 + }), + { + CSSRuleList: 0, + CSSStyleDeclaration: 0, + CSSValueList: 0, + ClientRectList: 0, + DOMRectList: 0, + DOMStringList: 0, + DOMTokenList: 1, + DataTransferItemList: 0, + FileList: 0, + HTMLAllCollection: 0, + HTMLCollection: 0, + HTMLFormElement: 0, + HTMLSelectElement: 0, + MediaList: 0, + MimeTypeArray: 0, + NamedNodeMap: 0, + NodeList: 1, + PaintRequestList: 0, + Plugin: 0, + PluginArray: 0, + SVGLengthList: 0, + SVGNumberList: 0, + SVGPathSegList: 0, + SVGPointList: 0, + SVGStringList: 0, + SVGTransformList: 0, + SourceBufferList: 0, + StyleSheetList: 0, + TextTrackCueList: 0, + TextTrackList: 0, + TouchList: 0 + }), ia = io("span").classList, qn = ia && ia.constructor && ia.constructor.prototype, i = qn === Object.prototype ? void 0 : qn, Ua = Li, $a = r, Ba = co, Na = po, Fa = Pi(Pi.bind), ia = Qn, Ga = Li, za = Object, Za = r("".split), qn = ia(function() { + return !za("z").propertyIsEnumerable(0) + }) ? function(e) { + return "String" == Ga(e) ? Za(e, "") : za(e) + } + : za, Ha = Math.ceil, Ka = Math.floor, qa = Math.trunc || function(e) { + e = +e; + return (0 < e ? Ka : Ha)(e) + } + , Va = Ui, Wa = Math.min, Ya = $i, Ja = Li, ia = Array.isArray || function(e) { + return "Array" == Ja(e) + } + , Xa = r, Qa = Qn, es = ho, ts = ca, rs = g, ns = [], os = so("Reflect", "construct"), is = /^\s*(?:class|function)\b/, as = Xa(is.exec), ss = !is.exec(Ni), Xa = (Gi.sham = !0, + !os || Qa(function() { + var e; + return Fi(Fi.call) || !Fi(Object) || !Fi(function() { + e = !0 + }) || e + }) ? Gi : Fi), us = ia, cs = Xa, ls = Cr, ds = oo("species"), fs = Array, ps = ji, hs = qn, ms = ro, gs = Bi, vs = zi, bs = r([].push), Qa = { + forEach: Zi(0), + map: Zi(1), + filter: Zi(2), + some: Zi(3), + every: Zi(4), + find: Zi(5), + findIndex: Zi(6), + filterReject: Zi(7) + }, ys = Qn, _s = Qa.forEach, ws = n, As = aa, b = i, xs = Hi("forEach") ? [].forEach : function(e) { + return _s(this, e, 1 < arguments.length ? arguments[1] : void 0) + } + , ks = Di; + for (Ji in As) + As[Ji] && Ki(ws[Ji] && ws[Ji].prototype); + Ki(b); + function Es(e) { + return Bs(Ns(e)) + } + function Ss(e, t) { + return (e = Ys(e)) < 0 ? Js(e + t, 0) : Xs(e, t) + } + function Rs(s) { + return function(e, t, r) { + var n, o = Qs(e), i = tu(o), a = eu(r, i); + if (s && t != t) { + for (; a < i; ) + if ((n = o[a++]) != n) + return !0 + } else + for (; a < i; a++) + if ((s || a in o) && o[a] === t) + return s || a || 0; + return !s && -1 + } + } + function Os(e, t) { + var r, n = nu(e), o = 0, i = []; + for (r in n) + !ru(iu, r) && ru(n, r) && au(i, r); + for (; t.length > o; ) + !ru(n, r = t[o++]) || ~ou(i, r) || au(i, r); + return i + } + function Ds(e, t, r) { + for (var n = mu(t), o = vu.f, i = gu.f, a = 0; a < n.length; a++) { + var s = n[a]; + hu(e, s) || r && hu(r, s) || o(e, s, i(t, s)) + } + } + function Ts(e, t) { + return (e = Au[wu(e)]) == ku || e != xu && (yu(t) ? bu(t) : !!t) + } + function Is(e, t) { + var r, n, o, i, a = e.target, s = e.global, u = e.stat; + if (r = s ? Su : u ? Su[a] || Tu(a, {}) : (Su[a] || {}).prototype) + for (n in t) { + if (o = t[n], + i = e.dontCallGetSet ? (i = Ru(r, n)) && i.value : r[n], + !Mu(s ? n : a + (u ? "." : "#") + n, e.forced) && void 0 !== i) { + if (typeof o == typeof i) + continue; + Iu(o, i) + } + (e.sham || i && i.sham) && Ou(o, "sham", !0), + Du(r, n, o, e) + } + } + function Ms(e) { + return !(e = Bu("object" === U(e) ? e : function(e) { + if (e) + try { + return JSON.parse(e) + } catch (e) {} + }(e))) || !e.version || $u.version >= e.version ? e : void 0 + } + function Cs() { + var e; + (e = console).log.apply(e, arguments) + } + function Ls() { + var e; + (e = console).log.apply(e, arguments) + } + var b = {} + , Ps = {} + , js = {}.propertyIsEnumerable + , Us = Object.getOwnPropertyDescriptor + , $s = Us && !js.call({ + 1: 2 + }, 1) + , Bs = (Ps.f = $s ? function(e) { + e = Us(this, e); + return !!e && e.enumerable + } + : js, + qn) + , Ns = to + , Fs = e + , Gs = Ps + , zs = Ii + , Zs = Es + , Hs = fo + , Ks = xo + , Vs = Po + , Ws = Object.getOwnPropertyDescriptor + , $s = (b.f = Kn ? Ws : function(e, t) { + if (e = Zs(e), + t = Hs(t), + Vs) + try { + return Ws(e, t) + } catch (e) {} + if (Ks(e, t)) + return zs(!Fs(Gs.f, e, t), e[t]) + } + , + {}) + , Ys = Ui + , Js = Math.max + , Xs = Math.min + , Qs = Es + , eu = Ss + , tu = Bi + , js = { + includes: Rs(!0), + indexOf: Rs(!1) + } + , ru = xo + , nu = Es + , ou = js.indexOf + , iu = v + , au = r([].push) + , Po = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"] + , su = Os + , uu = Po.concat("length", "prototype") + , cu = ($s.f = Object.getOwnPropertyNames || function(e) { + return su(e, uu) + } + , + {}) + , y = (cu.f = Object.getOwnPropertySymbols, + so) + , lu = $s + , du = cu + , fu = ao + , pu = r([].concat) + , y = y("Reflect", "ownKeys") || function(e) { + var t = lu.f(fu(e)) + , r = du.f; + return r ? pu(t, r(e)) : t + } + , hu = xo + , mu = y + , gu = b + , vu = Oo + , bu = Qn + , yu = ho + , _u = /#|\.prototype\./ + , wu = Ts.normalize = function(e) { + return String(e).replace(_u, ".").toLowerCase() + } + , Au = Ts.data = {} + , xu = Ts.NATIVE = "N" + , ku = Ts.POLYFILL = "P" + , Eu = Ts + , Su = n + , Ru = b.f + , Ou = Di + , Du = Ci + , Tu = In + , Iu = Ds + , Mu = Eu + , Cu = Os + , Lu = Po + , Pu = Object.keys || function(e) { + return Cu(e, Lu) + } + , ju = ro + , Uu = Pu + , $u = (Is({ + target: "Object", + stat: !0, + forced: Qn(function() { + Uu(1) + }) + }, { + keys: function(e) { + return Uu(ju(e)) + } + }), + { + name: "@bygd/gd-sdk-pes", + version: "1.32.0", + files: ["dist/*"], + scripts: { + build: "NODE_ENV=production rollup --config", + watch: "rollup --config --watch --sourcemap --environment DEVELOPMENT", + "deploy-base": "npm install && npm run build && npm publish --access public", + deploy: "npm run deploy-base && gdtool pm-upload" + }, + repository: { + type: "git", + url: "git@gitlab.azerdev.com:gamedistribution/gd-sdk-pes.git" + }, + author: "", + license: "ISC", + devDependencies: { + "@babel/core": "^7.14.6", + "@babel/plugin-transform-runtime": "^7.14.5", + "@babel/preset-env": "^7.14.7", + "@rollup/plugin-babel": "^5.2.3", + "@rollup/plugin-commonjs": "^21.0.1", + "@rollup/plugin-json": "^4.1.0", + "@rollup/plugin-node-resolve": "^13.0.0", + "@rollup/plugin-replace": "^3.0.0", + postcss: "^8.3.5", + rollup: "^2.52.8", + "rollup-plugin-analyzer": "^4.0.0", + "rollup-plugin-browsersync": "^1.3.3", + "rollup-plugin-delete": "^2.0.0", + "rollup-plugin-node-polyfills": "^0.2.1", + "rollup-plugin-peer-deps-external": "^2.2.4", + "rollup-plugin-postcss": "^4.0.0", + "rollup-plugin-terser": "^7.0.2" + }, + dependencies: { + "@babel/runtime": "^7.14.6", + "@bygd/gd-sdk-era": "^0.3.6", + axios: "^0.26.1", + "can-autoplay": "^3.0.2", + events: "^3.3.0", + "get-value": "^3.0.1", + "is-plain-object": "^5.0.0", + "is-valid-domain": "^0.1.2", + "js-base64": "^3.6.1", + "leaderboard-lib": "0.1.11", + "lodash.clonedeep": "^4.5.0", + "lodash.merge": "^4.6.2", + querystringify: "^2.2.0", + "set-value": "^4.1.0", + "url-parse": "^1.4.7", + uuid: "^8.3.2", + validator: "^13.6.0" + } + }) + , Bu = function(e) { + var t = this; + if (!Jt(e) || 0 === e.length) + return e; + if (1 === e.length) + return e[0]; + for (var r = 0, n = (e.forEach(function(e) { + D(this, t), + e.weight = e.weight || 1, + r += e.weight + } + .bind(this)), + Math.floor(Math.random() * Math.floor(r))), r = 0, o = 0; o < e.length; o++) { + var i = e[o]; + if (n < (r += i.weight)) + return i + } + } + , Nu = (JSON.stringify({ + adapters: { + default: ["ima", "adsense", "ima", "adsense"], + preroll: ["ima", "adsense", "ima", "adsense"], + midroll: ["ima", "adsense", "ima", "adsense"], + rewarded: ["ima", "adsense", "ima", "adsense"] + } + }), + JSON.stringify({ + adapters: { + default: ["ima", "adsense", "ima", "adsense"], + preroll: ["ima", "adsense", "ima"], + midroll: ["ima", "adsense", "ima"], + rewarded: ["ima", "adsense", "ima", "adsense"] + } + }), + {}); + function Fu(e, t, r) { + return (t = de(t))in e ? Object.defineProperty(e, t, { + value: r, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = r, + e + } + function Gu(e) { + if ("Symbol" === zu(e)) + throw TypeError("Cannot convert a Symbol value to a string"); + return Zu(e) + } + var zu = ca + , Zu = String + , _ = {} + , Hu = Oo + , Ku = ao + , qu = Es + , Vu = Pu; + _.f = Kn && !a ? Object.defineProperties : function(e, t) { + Ku(e); + for (var r, n = qu(t), o = Vu(t), i = o.length, a = 0; a < i; ) + Hu.f(e, r = o[a++], n[r]); + return e + } + ; + function Wu() {} + function Yu(e) { + e.write(Rc("")), + e.close(); + var t = e.parentWindow.Object; + return e = null, + t + } + function Ju(e, t, r) { + (t = Dc(t))in e ? Tc.f(e, t, Ic(0, r)) : e[t] = r + } + function Xu(e, t, r) { + for (var n = Cc(e), o = Mc(t, n), i = Mc(void 0 === r ? n : r, n), a = Pc(jc(i - o, 0)), s = 0; o < i; o++, + s++) + Lc(a, s, e[o]); + return a.length = s, + a + } + function Qu(e, t, r) { + return r.get && Gc(r.get, t, { + getter: !0 + }), + r.set && Gc(r.set, t, { + setter: !0 + }), + zc.f(e, t, r) + } + function ec(e) { + var t = Zc.Symbol || (Zc.Symbol = {}); + Hc(t, e) || qc(t, e, { + value: Kc.f(e) + }) + } + function tc(e, t, r) { + (e = e && !r ? e.prototype : e) && !Xc(e, Qc) && Jc(e, Qc, { + configurable: !0, + value: t + }) + } + function rc(e, t) { + var r = $l[e] = dl(Il); + return Ol(r, { + type: Sl, + tag: e, + description: t + }), + nl || (r.description = t), + r + } + function nc(e, t, r) { + return e === Tl && nc(Bl, t, r), + al(e), + t = ul(t), + al(r), + (ol($l, t) ? (r.enumerable ? (ol(e, El) && e[El][t] && (e[El][t] = !1), + r = dl(r, { + enumerable: ll(0, !1) + })) : (ol(e, El) || Ll(e, El, ll(1, {})), + e[El][t] = !0), + Fl) : Ll)(e, t, r) + } + function oc(t, e) { + al(t); + var r = sl(e) + , e = fl(r).concat(uc(r)); + return kl(e, function(e) { + nl && !rl(ic, r, e) || nc(t, e, r[e]) + }), + t + } + function ic(e) { + var e = ul(e) + , t = rl(jl, this, e); + return !(this === Tl && ol($l, e) && !ol(Bl, e)) && (!(t || !ol(this, e) || !ol($l, e) || ol(this, El) && this[El][e]) || t) + } + function ac(e, t) { + var r, e = sl(e), t = ul(t); + if (e !== Tl || !ol($l, t) || ol(Bl, t)) + return !(r = Cl(e, t)) || !ol($l, t) || ol(e, El) && e[El][t] || (r.enumerable = !0), + r + } + function sc(e) { + var e = Pl(sl(e)) + , t = []; + return kl(e, function(e) { + ol($l, e) || ol(_l, e) || Ul(t, e) + }), + t + } + function uc(e) { + var t = e === Tl + , e = Pl(t ? Bl : sl(e)) + , r = []; + return kl(e, function(e) { + !ol($l, e) || t && !ol(Tl, e) || Ul(r, $l[e]) + }), + r + } + function cc(e, t) { + var r = cd(arguments) + , n = function(e) { + if (ed(e)) + return e; + if (Ql(e)) { + for (var t = e.length, n = [], r = 0; r < t; r++) { + var o = e[r]; + "string" == typeof o ? nd(n, o) : "number" != typeof o && "Number" != td(o) && "String" != td(o) || nd(n, rd(o)) + } + var i = n.length + , a = !0; + return function(e, t) { + if (a) + return a = !1, + t; + if (Ql(this)) + return t; + for (var r = 0; r < i; r++) + if (n[r] === e) + return t + } + } + }(t); + if (sd(n) || void 0 !== e && !ud(e)) + return r[1] = function(e, t) { + if (sd(n) && (t = ad(n, this, ld(e), t)), + !ud(t)) + return t + } + , + id(dd, null, r) + } + function lc(e, t, r) { + var n = pd(r, t - 1) + , r = pd(r, t + 1); + return fd(bd, e) && !fd(yd, r) || fd(yd, e) && !fd(bd, n) ? "\\u" + gd(hd(e, 0), 16) : e + } + function dc(t) { + return 51 <= Ed || !kd(function() { + var e = []; + return (e.constructor = {})[Sd] = function() { + return { + foo: 1 + } + } + , + 1 !== e[t](Boolean).foo + }) + } + function fc(e, t, r) { + var n, o; + Kd(e); + try { + if (!(n = qd(e, "return"))) { + if ("throw" === t) + throw r; + return r + } + n = Hd(n, e) + } catch (e) { + o = !0, + n = e + } + if ("throw" === t) + throw r; + if (o) + throw n; + return Kd(n), + r + } + function pc(e) { + return void 0 !== e && (Yd.Array === e || Xd[Jd] === e) + } + function hc(e) { + if (!t0(e)) + return e0(e, n0) || e0(e, "@@iterator") || r0[Qd(e)] + } + function mc(e, t) { + if (t = arguments.length < 2 ? u0(e) : t, + i0(t)) + return a0(o0(t, e)); + throw c0(s0(e) + " is not iterable") + } + function gc(e) { + var t = f0(e) + , e = h0(this) + , r = 1 < (l = arguments.length) ? arguments[1] : void 0 + , n = void 0 !== r; + n && (r = l0(r, 2 < l ? arguments[2] : void 0)); + var o, i, a, s, u, c, l = b0(t), d = 0; + if (!l || this === y0 && p0(l)) + for (o = m0(t), + i = e ? new this(o) : y0(o); d < o; d++) + c = n ? r(t[d], d) : t[d], + g0(i, d, c); + else + for (u = (s = v0(t, l)).next, + i = e ? new this : []; !(a = d0(u, s)).done; d++) + c = n ? function(e, t, r, n) { + try { + return n ? t(Vd(r)[0], r[1]) : t(r) + } catch (t) { + Wd(e, "throw", t) + } + }(s, r, [a.value, d], !0) : a.value, + g0(i, d, c); + return i.length = d, + i + } + var vc, bc, a = so("document", "documentElement"), yc = ao, _c = _, wc = Po, Po = v, Ac = a, xc = io, kc = "prototype", Ec = "script", Sc = Mi("IE_PROTO"), Rc = function(e) { + return "<" + Ec + ">" + e + "" + }, Oc = function() { + try { + vc = new ActiveXObject("htmlfile") + } catch (e) {} + var e, t, r; + Oc = "undefined" == typeof document || document.domain && vc ? Yu(vc) : (t = xc("iframe"), + r = "java" + Ec + ":", + t.style.display = "none", + Ac.appendChild(t), + t.src = String(r), + (e = t.contentWindow.document).open(), + e.write(Rc("document.F=Object")), + e.close(), + e.F); + for (var n = wc.length; n--; ) + delete Oc[kc][wc[n]]; + return Oc() + }, Po = (Po[Sc] = !0, + Object.create || function(e, t) { + var r; + return null !== e ? (Wu[kc] = yc(e), + r = new Wu, + Wu[kc] = null, + r[Sc] = e) : r = Oc(), + void 0 === t ? r : _c.f(r, t) + } + ), w = {}, Dc = fo, Tc = Oo, Ic = Ii, Mc = Ss, Cc = Bi, Lc = Ju, Pc = Array, jc = Math.max, Uc = Li, $c = Es, Bc = $s.f, Nc = Xu, Fc = "object" == typeof window && window && Object.getOwnPropertyNames ? Object.getOwnPropertyNames(window) : [], Gc = (w.f = function(e) { + if (!Fc || "Window" != Uc(e)) + return Bc($c(e)); + var t = e; + try { + return Bc(t) + } catch (t) { + return Nc(Fc) + } + } + , + Si.exports), zc = Oo, Si = {}, Zc = (Si.f = oo, + n), Hc = xo, Kc = Si, qc = Oo.f, Vc = e, Wc = so, A = oo, Yc = Ci, Jc = Oo.f, Xc = xo, Qc = oo("toStringTag"), el = Is, tl = n, rl = e, x = r, nl = Kn, k = go, E = Qn, ol = xo, il = Vo, al = ao, sl = Es, ul = fo, cl = Gu, ll = Ii, dl = Po, fl = Pu, pl = $s, hl = cu, S = b, ml = Oo, gl = Ps, vl = Ci, bl = Qu, yl = zn.exports, _l = v, wl = no, Al = oo, v = Si, xl = ec, Si = tc, R = Ri, kl = Qa.forEach, El = Mi("hidden"), Sl = "Symbol", Rl = "prototype", Ol = R.set, Dl = R.getterFor(Sl), Tl = Object[Rl], R = tl.Symbol, Il = R && R[Rl], Ml = tl.TypeError, tl = tl.QObject, Cl = S.f, Ll = ml.f, Pl = w.f, jl = gl.f, Ul = x([].push), $l = yl("symbols"), Bl = yl("op-symbols"), x = yl("wks"), Nl = !tl || !tl[Rl] || !tl[Rl].findChild, Fl = nl && E(function() { + return 7 != dl(Ll({}, "a", { + get: function() { + return Ll(this, "a", { + value: 7 + }).a + } + })).a + }) ? function(e, t, r) { + var n = Cl(Tl, t); + n && delete Tl[t], + Ll(e, t, r), + n && e !== Tl && Ll(Tl, t, n) + } + : Ll, E = (k || (vl(Il = (R = function() { + if (il(Il, this)) + throw Ml("Symbol is not a constructor"); + var e = arguments.length && void 0 !== arguments[0] ? cl(arguments[0]) : void 0 + , t = wl(e) + , r = function(e) { + this === Tl && rl(r, Bl, e), + ol(this, El) && ol(this[El], t) && (this[El][t] = !1), + Fl(this, t, ll(1, e)) + }; + return nl && Nl && Fl(Tl, t, { + configurable: !0, + set: r + }), + rc(t, e) + } + )[Rl], "toString", function() { + return Dl(this).tag + }), + vl(R, "withoutSetter", function(e) { + return rc(wl(e), e) + }), + gl.f = ic, + ml.f = nc, + _.f = oc, + S.f = ac, + pl.f = w.f = sc, + hl.f = uc, + v.f = function(e) { + return rc(Al(e), e) + } + , + nl && (bl(Il, "description", { + configurable: !0, + get: function() { + return Dl(this).description + } + }), + vl(Tl, "propertyIsEnumerable", ic, { + unsafe: !0 + }))), + el({ + global: !0, + constructor: !0, + wrap: !0, + forced: !k, + sham: !k + }, { + Symbol: R + }), + kl(fl(x), function(e) { + xl(e) + }), + el({ + target: Sl, + stat: !0, + forced: !k + }, { + useSetter: function() { + Nl = !0 + }, + useSimple: function() { + Nl = !1 + } + }), + el({ + target: "Object", + stat: !0, + forced: !k, + sham: !nl + }, { + create: function(e, t) { + return void 0 === t ? dl(e) : oc(dl(e), t) + }, + defineProperty: nc, + defineProperties: oc, + getOwnPropertyDescriptor: ac + }), + el({ + target: "Object", + stat: !0, + forced: !k + }, { + getOwnPropertyNames: sc + }), + yl = (yl = Wc("Symbol")) && yl.prototype, + bc = yl && yl.valueOf, + tl = A("toPrimitive"), + yl && !yl[tl] && Yc(yl, tl, function(e) { + return Vc(bc, this) + }, { + arity: 1 + }), + Si(R, Sl), + _l[El] = !0, + go && !!Symbol.for && !!Symbol.keyFor), Rl = Is, Gl = so, zl = xo, Zl = Gu, gl = zn.exports, ml = E, Hl = gl("string-to-symbol-registry"), Kl = gl("symbol-to-string-registry"), _ = (Rl({ + target: "Symbol", + stat: !0, + forced: !ml + }, { + for: function(e) { + var t, e = Zl(e); + return zl(Hl, e) ? Hl[e] : (t = Gl("Symbol")(e), + Hl[e] = t, + Kl[t] = e, + t) + } + }), + Is), ql = xo, Vl = o, Wl = uo, S = E, Yl = (0, + zn.exports)("symbol-to-string-registry"), pl = (_({ + target: "Symbol", + stat: !0, + forced: !S + }, { + keyFor: function(e) { + if (!Vl(e)) + throw TypeError(Wl(e) + " is not a symbol"); + if (ql(Yl, e)) + return Yl[e] + } + }), + po), w = Function.prototype, Jl = w.apply, Xl = w.call, hl = "object" == typeof Reflect && Reflect.apply || (pl ? Xl.bind(Jl) : function() { + return Xl.apply(Jl, arguments) + } + ), v = r([].slice), Ql = ia, ed = ho, td = Li, rd = Gu, nd = r([].push), bl = Is, od = so, id = hl, ad = e, vl = r, x = Qn, sd = ho, ud = o, cd = v, el = go, ld = String, dd = od("JSON", "stringify"), fd = vl(/./.exec), pd = vl("".charAt), hd = vl("".charCodeAt), md = vl("".replace), gd = vl(1..toString), vd = /[\uD800-\uDFFF]/g, bd = /^[\uD800-\uDBFF]$/, yd = /^[\uDC00-\uDFFF]$/, _d = !el || x(function() { + var e = od("Symbol")(); + return "[null]" != dd([e]) || "{}" != dd({ + a: e + }) || "{}" != dd(Object(e)) + }), wd = x(function() { + return '"\\udf06\\ud834"' !== dd("\udf06\ud834") || '"\\udead"' !== dd("\udead") + }), Ad = (dd && bl({ + target: "JSON", + stat: !0, + arity: 3, + forced: _d || wd + }, { + stringify: function(e, t, r) { + var n = cd(arguments) + , n = id(_d ? cc : dd, null, n); + return wd && "string" == typeof n ? md(n, vd, lc) : n + } + }), + cu), xd = ro, kd = (Is({ + target: "Object", + stat: !0, + forced: !go || Qn(function() { + Ad.f(1) + }) + }, { + getOwnPropertySymbols: function(e) { + var t = Ad.f; + return t ? t(xd(e)) : [] + } + }), + Qn), Ed = t, Sd = oo("species"), Rd = Qa.filter, k = (Is({ + target: "Array", + proto: !0, + forced: !dc("filter") + }, { + filter: function(e) { + return Rd(this, e, 1 < arguments.length ? arguments[1] : void 0) + } + }), + Is), Wc = Qn, Od = Es, Dd = b.f, A = Kn, Td = (k({ + target: "Object", + stat: !0, + forced: !A || Wc(function() { + Dd(1) + }), + sham: !A + }, { + getOwnPropertyDescriptor: function(e, t) { + return Dd(Od(e), t) + } + }), + y), Id = Es, Md = b, Cd = Ju, Yc = (Is({ + target: "Object", + stat: !0, + sham: !Kn + }, { + getOwnPropertyDescriptors: function(e) { + for (var t, r, n = Id(e), o = Md.f, i = Td(n), a = {}, s = 0; i.length > s; ) + void 0 !== (r = o(n, t = i[s++])) && Cd(a, t, r); + return a + } + }), + Is), Ld = ia, Pd = Xa, jd = Cr, Ud = Ss, $d = Bi, Bd = Es, Nd = Ju, yl = oo, Fd = v, tl = dc("slice"), Gd = yl("species"), zd = Array, Zd = Math.max, Hd = (Yc({ + target: "Array", + proto: !0, + forced: !tl + }, { + slice: function(e, t) { + var r, n, o, i = Bd(this), a = $d(i), s = Ud(e, a), u = Ud(void 0 === t ? a : t, a); + if (Ld(i) && (r = i.constructor, + (r = Pd(r) && (r === zd || Ld(r.prototype)) || jd(r) && null === (r = r[Gd]) ? void 0 : r) === zd || void 0 === r)) + return Fd(i, s, u); + for (n = new (void 0 === r ? zd : r)(Zd(u - s, 0)), + o = 0; s < u; s++, + o++) + s in i && Nd(n, o, i[s]); + return n.length = o, + n + } + }), + e), Kd = ao, qd = lo, Vd = ao, Wd = fc, Si = {}, Yd = Si, Jd = oo("iterator"), Xd = Array.prototype, Qd = ca, e0 = lo, t0 = eo, r0 = Si, n0 = oo("iterator"), o0 = e, i0 = co, a0 = ao, s0 = uo, u0 = hc, c0 = TypeError, l0 = ji, d0 = e, f0 = ro, p0 = pc, h0 = Xa, m0 = Bi, g0 = Ju, v0 = mc, b0 = hc, y0 = Array, _0 = oo("iterator"), w0 = !1; + try { + var A0 = 0 + , x0 = { + next: function() { + return { + done: !!A0++ + } + }, + return: function() { + w0 = !0 + } + }; + x0[_0] = function() { + return this + } + , + Array.from(x0, function() { + throw 2 + }) + } catch (mk) {} + function k0(e, t) { + if (t || w0) { + var r = !1; + try { + var n = {}; + n[_0] = function() { + return { + next: function() { + return { + done: r = !0 + } + } + } + } + , + e(n) + } catch (e) {} + return r + } + } + R = gc; + Is({ + target: "Array", + stat: !0, + forced: !k0(function(e) { + Array.from(e) + }) + }, { + from: R + }); + function E0(o) { + return function(e, t) { + var r, e = O0(D0(e)), t = R0(t), n = e.length; + return t < 0 || n <= t ? o ? "" : void 0 : (r = I0(e, t)) < 55296 || 56319 < r || t + 1 === n || (n = I0(e, t + 1)) < 56320 || 57343 < n ? o ? T0(e, t) : r : o ? M0(e, t, t + 2) : n - 56320 + (r - 55296 << 10) + 65536 + } + } + var S0, gl = r, R0 = Ui, O0 = Gu, D0 = to, T0 = gl("".charAt), I0 = gl("".charCodeAt), M0 = gl("".slice), Rl = { + codeAt: E0(!1), + charAt: E0(!0) + }, ml = !Qn(function() { + function e() {} + return e.prototype.constructor = null, + Object.getPrototypeOf(new e) !== e.prototype + }), C0 = xo, L0 = ho, P0 = ro, E = ml, j0 = Mi("IE_PROTO"), U0 = Object, $0 = U0.prototype, _ = E ? U0.getPrototypeOf : function(e) { + var t, e = P0(e); + return C0(e, j0) ? e[j0] : (t = e.constructor, + L0(t) && e instanceof t ? t.prototype : e instanceof U0 ? $0 : null) + } + , S = Qn, po = ho, w = Cr, pl = _, o = Ci, B0 = oo("iterator"), vl = !1; + [].keys && ("next"in (el = [].keys()) ? (x = pl(pl(el))) !== Object.prototype && (S0 = x) : vl = !0); + function N0() { + return this + } + function F0(e, t, r, n) { + return t += " Iterator", + e.prototype = tf(ef, { + next: rf(+!n, r) + }), + nf(e, t, !1), + of[t] = N0, + e + } + function G0() { + return this + } + function z0(e, t, r, n, o, i, a) { + function s(e) { + if (e === o && p) + return p; + if (!Ef && e in d) + return d[e]; + switch (e) { + case "keys": + case Rf: + case Of: + return function() { + return new r(this,e) + } + } + return function() { + return new r(this) + } + } + mf(r, t, n); + var u, c, n = t + " Iterator", l = !1, d = e.prototype, f = d[Sf] || d["@@iterator"] || o && d[o], p = !Ef && f || s(o), h = "Array" == t && d.entries || f; + if (h && (h = gf(h.call(new e))) !== Object.prototype && h.next && (gf(h) !== kf && (vf ? vf(h, kf) : hf(h[Sf]) || _f(h, Sf, G0)), + bf(h, n, !0)), + Af && o == Rf && f && f.name !== Rf && (xf ? yf(d, "name", Rf) : (l = !0, + p = function() { + return pf(f, this) + } + )), + o) + if (u = { + values: s(Rf), + keys: i ? p : s("keys"), + entries: s(Of) + }, + a) + for (c in u) + !Ef && !l && c in d || _f(d, c, u[c]); + else + ff({ + target: t, + proto: !0, + forced: Ef || l + }, u); + return d[Sf] !== p && _f(d, Sf, p, { + name: o + }), + wf[t] = p, + u + } + function Z0(e, t) { + return { + value: e, + done: t + } + } + function H0() { + var e = Pf(this) + , t = ""; + return e.hasIndices && (t += "d"), + e.global && (t += "g"), + e.ignoreCase && (t += "i"), + e.multiline && (t += "m"), + e.dotAll && (t += "s"), + e.unicode && (t += "u"), + e.unicodeSets && (t += "v"), + e.sticky && (t += "y"), + t + } + function K0(e) { + ap[ip][e] = !0 + } + po((S0 = !w(S0) || S(function() { + var e = {}; + return S0[B0].call(e) !== e + }) ? {} : S0)[B0]) || o(S0, B0, function() { + return this + }); + var q0, V0, W0, Y0, J0, X0, Q0, bl = { + IteratorPrototype: S0, + BUGGY_SAFARI_ITERATORS: vl + }, ef = bl.IteratorPrototype, tf = Po, rf = Ii, nf = tc, of = Si, af = r, sf = co, uf = ho, cf = String, lf = TypeError, df = ao, go = Object.setPrototypeOf || ("__proto__"in {} ? function() { + var r, n = !1, e = {}; + try { + (r = function(e, t, r) { + try { + return af(sf(Object.getOwnPropertyDescriptor(e, t)[r])) + } catch (e) {} + }(Object.prototype, "__proto__", "set"))(e, []), + n = e instanceof Array + } catch (r) {} + return function(e, t) { + return df(e), + function(e) { + if ("object" == typeof e || uf(e)) + return; + throw lf("Can't set " + cf(e) + " as a prototype") + }(t), + n ? r(e, t) : e.__proto__ = t, + e + } + }() : void 0), ff = Is, pf = e, hf = ho, mf = F0, gf = _, vf = go, bf = tc, yf = Di, _f = Ci, wf = Si, Af = Oi.PROPER, xf = Oi.CONFIGURABLE, kf = bl.IteratorPrototype, Ef = bl.BUGGY_SAFARI_ITERATORS, Sf = oo("iterator"), Rf = "values", Of = "entries", Df = Rl.charAt, Tf = Gu, k = Ri, Wc = z0, If = Z0, Mf = "String Iterator", Cf = k.set, Lf = k.getterFor(Mf), Pf = (Wc(String, "String", function(e) { + Cf(this, { + type: Mf, + string: Tf(e), + index: 0 + }) + }, function() { + var e = Lf(this) + , t = e.string + , r = e.index; + return r >= t.length ? If(void 0, !0) : (t = Df(t, r), + e.index += t.length, + If(t, !1)) + }), + ao), A = Qn, jf = n.RegExp, y = A(function() { + var e = jf("a", "y"); + return e.lastIndex = 2, + null != e.exec("abcd") + }), yl = y || A(function() { + return !jf("a", "y").sticky + }), Yc = { + BROKEN_CARET: y || A(function() { + var e = jf("^r", "gy"); + return e.lastIndex = 2, + null != e.exec("str") + }), + MISSED_STICKY: yl, + UNSUPPORTED_Y: y + }, tl = Qn, Uf = n.RegExp, x0 = tl(function() { + var e = Uf(".", "s"); + return !(e.dotAll && e.exec("\n") && "s" === e.flags) + }), R = Qn, $f = n.RegExp, gl = R(function() { + var e = $f("(?b)", "g"); + return "b" !== e.exec("b").groups.a || "bc" !== "b".replace(e, "$c") + }), Bf = e, ml = r, Nf = Gu, Ff = H0, E = Yc, pl = zn.exports, Gf = Po, zf = Ri.get, el = x0, x = gl, Zf = pl("native-string-replace", String.prototype.replace), Hf = RegExp.prototype.exec, Kf = Hf, qf = ml("".charAt), Vf = ml("".indexOf), Wf = ml("".replace), Yf = ml("".slice), Jf = (po = /b*/g, + Bf(Hf, w = /a/, "a"), + Bf(Hf, po, "a"), + 0 !== w.lastIndex || 0 !== po.lastIndex), Xf = E.BROKEN_CARET, Qf = void 0 !== /()??/.exec("")[1], S = Kf = Jf || Qf || Xf || el || x ? function(e) { + var t, r, n, o, i, a, s = this, u = zf(s), e = Nf(e), c = u.raw; + if (c) + return c.lastIndex = s.lastIndex, + d = Bf(Kf, c, e), + s.lastIndex = c.lastIndex, + d; + var l = u.groups + , c = Xf && s.sticky + , d = Bf(Ff, s) + , u = s.source + , f = 0 + , p = e; + if (c && (d = Wf(d, "y", ""), + -1 === Vf(d, "g") && (d += "g"), + p = Yf(e, s.lastIndex), + 0 < s.lastIndex && (!s.multiline || s.multiline && "\n" !== qf(e, s.lastIndex - 1)) && (u = "(?: " + u + ")", + p = " " + p, + f++), + t = new RegExp("^(?:" + u + ")",d)), + Qf && (t = new RegExp("^" + u + "$(?!\\s)",d)), + Jf && (r = s.lastIndex), + n = Bf(Hf, c ? t : s, p), + c ? n ? (n.input = Yf(n.input, f), + n[0] = Yf(n[0], f), + n.index = s.lastIndex, + s.lastIndex += n[0].length) : s.lastIndex = 0 : Jf && n && (s.lastIndex = s.global ? n.index + n[0].length : r), + Qf && n && 1 < n.length && Bf(Zf, n[0], t, function() { + for (o = 1; o < arguments.length - 2; o++) + void 0 === arguments[o] && (n[o] = void 0) + }), + n && l) + for (n.groups = i = Gf(null), + o = 0; o < l.length; o++) + i[(a = l[o])[0]] = n[a[1]]; + return n + } + : Kf, o = (Is({ + target: "RegExp", + proto: !0, + forced: /./.exec !== S + }, { + exec: S + }), + Is), vl = r, ep = xo, _ = ho, tp = Vo, rp = Gu, bl = Qu, k = Ds, np = n.Symbol, op = np && np.prototype, A = (!Kn || !_(np) || "description"in op && void 0 === np().description || (q0 = {}, + k(Wc = function() { + var e = arguments.length < 1 || void 0 === arguments[0] ? void 0 : rp(arguments[0]) + , t = tp(op, this) ? new np(e) : void 0 === e ? np() : np(e); + return "" === e && (q0[t] = !0), + t + } + , np), + (Wc.prototype = op).constructor = Wc, + V0 = "Symbol(test)" == String(np("test")), + W0 = vl(op.valueOf), + Y0 = vl(op.toString), + J0 = /^Symbol\((.*)\)[^)]+$/, + X0 = vl("".replace), + Q0 = vl("".slice), + bl(op, "description", { + configurable: !0, + get: function() { + var e = W0(this); + return ep(q0, e) ? "" : (e = Y0(e), + "" === (e = V0 ? Q0(e, 7, -1) : X0(e, J0, "$1")) ? void 0 : e) + } + }), + o({ + global: !0, + constructor: !0, + forced: !0 + }, { + Symbol: Wc + })), + ec("iterator"), + oo), yl = Po, y = Oo.f, ip = A("unscopables"), ap = Array.prototype, sp = (null == ap[ip] && y(ap, ip, { + configurable: !0, + value: yl(null) + }), + Es), tl = K0, R = Si, zn = Ri, pl = Oo.f, ml = z0, up = Z0, w = Kn, cp = "Array Iterator", lp = zn.set, dp = zn.getterFor(cp), po = ml(Array, "Array", function(e, t) { + lp(this, { + type: cp, + target: sp(e), + index: 0, + kind: t + }) + }, function() { + var e = dp(this) + , t = e.target + , r = e.kind + , n = e.index++; + return !t || n >= t.length ? (e.target = void 0, + up(void 0, !0)) : up("keys" == r ? n : "values" == r ? t[n] : [n, t[n]], !1) + }, "values"), E = R.Arguments = R.Array; + if (tl("keys"), + tl("values"), + tl("entries"), + w && "values" !== E.name) + try { + pl(E, "name", { + value: "values" + }) + } catch (mk) {} + function fp(e, t) { + if (e) { + if (e[bp] !== _p) + try { + vp(e, bp, _p) + } catch (t) { + e[bp] = _p + } + if (e[yp] || vp(e, yp, t), + mp[t]) + for (var r in gp) + if (e[r] !== gp[r]) + try { + vp(e, r, gp[r]) + } catch (t) { + e[r] = gp[r] + } + } + } + var pp, hp = n, mp = aa, el = i, gp = po, vp = Di, x = oo, bp = x("iterator"), yp = x("toStringTag"), _p = gp.values; + for (pp in mp) + fp(hp[pp] && hp[pp].prototype, pp); + fp(el, "DOMTokenList"); + function wp(e) { + e = Ip(e), + Cp && e && !e[Lp] && Mp(e, Lp, { + configurable: !0, + get: function() { + return this + } + }) + } + function Ap(e, t) { + if (Pp(t, e)) + return e; + throw jp("Incorrect invocation") + } + function xp(e, t) { + var r, e = Np(e).constructor; + if (void 0 === e || Fp(r = Np(e)[Gp])) + return t; + if (Up(e = r)) + return e; + throw Bp($p(e) + " is not a constructor") + } + function kp(e, t) { + if (e < t) + throw zp("Not enough arguments"); + return e + } + function Ep(e) { + return function() { + ih(e) + } + } + function Sp(e) { + ih(e.data) + } + function Rp(e) { + Zp.postMessage(th(e), Dp.protocol + "//" + Dp.host) + } + function Op() { + this.head = null, + this.tail = null + } + var Dp, Tp, _ = void 0 !== LI && "process" == Li(LI), Ip = so, Mp = Qu, Cp = Kn, Lp = oo("species"), Pp = Vo, jp = TypeError, Up = Xa, $p = uo, Bp = TypeError, Np = ao, Fp = eo, Gp = oo("species"), zp = TypeError, k = /(?:ipad|iphone|ipod).*applewebkit/i.test(Ro), Zp = n, Hp = hl, vl = ji, Kp = ho, qp = xo, bl = Qn, Vp = a, Wp = v, Yp = io, Jp = kp, o = k, Wc = _, A = Zp.setImmediate, y = Zp.clearImmediate, Xp = Zp.process, Qp = Zp.Dispatch, eh = Zp.Function, yl = Zp.MessageChannel, th = Zp.String, rh = 0, nh = {}, oh = "onreadystatechange", ih = (bl(function() { + Dp = Zp.location + }), + function(e) { + var t; + qp(nh, e) && (t = nh[e], + delete nh[e], + t()) + } + ), ml = (A && y || (A = function(e) { + Jp(arguments.length, 1); + var t = Kp(e) ? e : eh(e) + , r = Wp(arguments, 1); + return nh[++rh] = function() { + Hp(t, void 0, r) + } + , + Tp(rh), + rh + } + , + y = function(e) { + delete nh[e] + } + , + Wc ? Tp = function(e) { + Xp.nextTick(Ep(e)) + } + : Qp && Qp.now ? Tp = function(e) { + Qp.now(Ep(e)) + } + : yl && !o ? (zn = (Si = new yl).port2, + Si.port1.onmessage = Sp, + Tp = vl(zn.postMessage, zn)) : Zp.addEventListener && Kp(Zp.postMessage) && !Zp.importScripts && Dp && "file:" !== Dp.protocol && !bl(Rp) ? (Tp = Rp, + Zp.addEventListener("message", Sp, !1)) : Tp = oh in Yp("script") ? function(e) { + Vp.appendChild(Yp("script"))[oh] = function() { + Vp.removeChild(this), + ih(e) + } + } + : function(e) { + setTimeout(Ep(e), 0) + } + ), + { + set: A, + clear: y + }); + Op.prototype = { + add: function(e) { + var e = { + item: e, + next: null + } + , t = this.tail; + t ? t.next = e : this.head = e, + this.tail = e + }, + get: function() { + var e = this.head; + if (e) + return null === (this.head = e.next) && (this.tail = null), + e.item + } + }; + function ah(e) { + try { + return { + error: !1, + value: e() + } + } catch (e) { + return { + error: !0, + value: e + } + } + } + function sh(e) { + var r, n; + this.promise = new e(function(e, t) { + if (void 0 !== r || void 0 !== n) + throw Sh("Bad Promise constructor"); + r = e, + n = t + } + ), + this.resolve = Eh(r), + this.reject = Eh(n) + } + var uh, ch, lh, dh, fh, ph, R = Op, tl = /ipad|iphone|ipod/i.test(Ro) && "undefined" != typeof Pebble, w = /web0s(?!.*chrome)/i.test(Ro), pl = n, E = ji, aa = b.f, hh = ml.set, i = R, po = k, x = tl, el = w, mh = _, Xa = pl.MutationObserver || pl.WebKitMutationObserver, a = pl.document, gh = pl.process, v = pl.Promise, Wc = aa(pl, "queueMicrotask"), o = Wc && Wc.value, Si = (o || (dh = new i, + fh = function() { + var e, t; + for (mh && (e = gh.domain) && e.exit(); t = dh.get(); ) + try { + t() + } catch (e) { + throw dh.head && ph(), + e + } + e && e.enter() + } + , + ph = po || mh || el || !Xa || !a ? !x && v && v.resolve ? ((yl = v.resolve(void 0)).constructor = v, + lh = E(yl.then, yl), + function() { + lh(fh) + } + ) : mh ? function() { + gh.nextTick(fh) + } + : (hh = E(hh, pl), + function() { + hh(fh) + } + ) : (uh = !0, + ch = a.createTextNode(""), + new Xa(fh).observe(ch, { + characterData: !0 + }), + function() { + ch.data = uh = !uh + } + ), + o = function(e) { + dh.head || ph(), + dh.add(e) + } + ), + o), vl = n.Promise, zn = "object" == typeof Deno && Deno && "object" == typeof Deno.version, bl = !zn && !_ && "object" == typeof window && "object" == typeof document, A = n, vh = vl, y = ho, Ro = Eu, bh = g, k = oo, yh = bl, _h = zn, wh = t, Ah = (vh && vh.prototype, + k("species")), xh = !1, kh = y(A.PromiseRejectionEvent), tl = { + CONSTRUCTOR: Ro("Promise", function() { + var e = bh(vh) + , t = e !== String(vh); + if (!t && 66 === wh) + return !0; + if (!wh || wh < 51 || !/native code/.test(e)) { + var e = new vh(function(e) { + e(1) + } + ) + , r = function(e) { + e(function() {}, function() {}) + }; + if ((e.constructor = {})[Ah] = r, + !(xh = e.then(function() {})instanceof r)) + return !0 + } + return !t && (yh || _h) && !kh + }), + REJECTION_EVENT: kh, + SUBCLASSING: xh + }, w = {}, Eh = co, Sh = TypeError; + w.f = function(e) { + return new sh(e) + } + ; + function Rh(e, t) { + var r, n, o, i, a = t.value, s = 1 == t.state, u = s ? e.ok : e.fail, c = e.resolve, l = e.reject, d = e.domain; + try { + u ? (s || (2 === t.rejection && (i = t, + Ch(Bh, Mh, function() { + var e = i.facade; + Ih ? Jh.emit("rejectionHandled", e) : om("rejectionhandled", e, i.value) + })), + t.rejection = 1), + !0 === u ? r = a : (d && d.enter(), + r = u(a), + d && (d.exit(), + o = !0)), + r === e.promise ? l(Wh("Promise-chain cycle")) : (n = rm(r)) ? Ch(n, r, c, l) : c(r)) : l(a) + } catch (e) { + d && !o && d.exit(), + l(e) + } + } + var Oh, Dh, Th, aa = Is, Ih = _, Mh = n, Ch = e, Wc = Ci, i = go, po = tc, el = wp, Lh = co, Ph = ho, jh = Cr, Uh = Ap, $h = xp, Bh = ml.set, Nh = Si, Fh = ah, Gh = R, x = Ri, v = vl, yl = w, zh = "Promise", E = tl.CONSTRUCTOR, Zh = tl.REJECTION_EVENT, pl = tl.SUBCLASSING, Hh = x.getterFor(zh), Kh = x.set, a = v && v.prototype, qh = v, Vh = a, Wh = Mh.TypeError, Yh = Mh.document, Jh = Mh.process, Xh = yl.f, Qh = Xh, em = !!(Yh && Yh.createEvent && Mh.dispatchEvent), tm = "unhandledrejection", rm = function(e) { + var t; + return !(!jh(e) || !Ph(t = e.then)) && t + }, nm = function(r, o) { + r.notified || (r.notified = !0, + Nh(function() { + for (var e, n, t = r.reactions; e = t.get(); ) + Rh(e, r); + r.notified = !1, + o && !r.rejection && (n = r, + Ch(Bh, Mh, function() { + var e, t = n.facade, r = n.value; + if (im(n) && (e = Fh(function() { + Ih ? Jh.emit("unhandledRejection", r, t) : om(tm, t, r) + }), + n.rejection = Ih || im(n) ? 2 : 1, + e.error)) + throw e.value + })) + })) + }, om = function(e, t, r) { + var n; + em ? ((n = Yh.createEvent("Event")).promise = t, + n.reason = r, + n.initEvent(e, !1, !0), + Mh.dispatchEvent(n)) : n = { + promise: t, + reason: r + }, + !Zh && (t = Mh["on" + e]) ? t(n) : e === tm && function(e, t) { + try { + 1 == arguments.length ? console.error(e) : console.error(e, t) + } catch (e) {} + }("Unhandled promise rejection", r) + }, im = function(e) { + return 1 !== e.rejection && !e.parent + }, am = function(t, r, n) { + return function(e) { + t(r, e, n) + } + }, sm = function(e, t, r) { + e.done || (e.done = !0, + (e = r ? r : e).value = t, + e.state = 2, + nm(e, !0)) + }, um = function(r, e, t) { + if (!r.done) { + r.done = !0, + t && (r = t); + try { + if (r.facade === e) + throw Wh("Promise can't be resolved itself"); + var n = rm(e); + n ? Nh(function() { + var t = { + done: !1 + }; + try { + Ch(n, e, am(um, t, r), am(sm, t, r)) + } catch (e) { + sm(t, e, r) + } + }) : (r.value = e, + r.state = 1, + nm(r, !1)) + } catch (e) { + sm({ + done: !1 + }, e, r) + } + } + }; + if (E && (Vh = (qh = function(e) { + Uh(this, Vh), + Lh(e), + Ch(Oh, this); + var t = Hh(this); + try { + e(am(um, t), am(sm, t)) + } catch (e) { + sm(t, e) + } + } + ).prototype, + (Oh = function(e) { + Kh(this, { + type: zh, + done: !1, + notified: !1, + parent: !1, + reactions: new Gh, + rejection: !1, + state: 0, + value: void 0 + }) + } + ).prototype = Wc(Vh, "then", function(e, t) { + var r = Hh(this) + , n = Xh($h(this, qh)); + return r.parent = !0, + n.ok = !Ph(e) || e, + n.fail = Ph(t) && t, + n.domain = Ih ? Jh.domain : void 0, + 0 == r.state ? r.reactions.add(n) : Nh(function() { + Rh(n, r) + }), + n.promise + }), + Dh = function() { + var e = new Oh + , t = Hh(e); + this.promise = e, + this.resolve = am(um, t), + this.reject = am(sm, t) + } + , + yl.f = Xh = function(e) { + return e === qh || void 0 === e ? new Dh : Qh(e) + } + , + Ph(v)) && a !== Object.prototype) { + Th = a.then, + pl || Wc(a, "then", function(e, t) { + var r = this; + return new qh(function(e, t) { + Ch(Th, r, e, t) + } + ).then(e, t) + }, { + unsafe: !0 + }); + try { + delete a.constructor + } catch (mk) {} + i && i(a, Vh) + } + aa({ + global: !0, + constructor: !0, + wrap: !0, + forced: E + }, { + Promise: qh + }), + po(qh, zh, !1), + el(zh); + function cm(e, t) { + this.stopped = e, + this.result = t + } + function lm(e, t, r) { + function n(e) { + return i && Am(i, "normal", e), + new cm(!0,e) + } + function o(e) { + return f ? (mm(e), + m ? g(e[0], e[1], n) : g(e[0], e[1])) : m ? g(e, n) : g(e) + } + var i, a, s, u, c, l, d = r && r.that, f = !(!r || !r.AS_ENTRIES), p = !(!r || !r.IS_RECORD), h = !(!r || !r.IS_ITERATOR), m = !(!r || !r.INTERRUPTED), g = pm(t, d); + if (p) + i = e.iterator; + else if (h) + i = e; + else { + if (!(r = wm(e))) + throw xm(gm(e) + " is not iterable"); + if (vm(r)) { + for (a = 0, + s = bm(e); a < s; a++) + if ((u = o(e[a])) && ym(km, u)) + return u; + return new cm(!1) + } + i = _m(e, r) + } + for (c = (p ? e : i).next; !(l = hm(c, i)).done; ) { + try { + u = o(l.value) + } catch (e) { + Am(i, "throw", e) + } + if ("object" == typeof u && u && ym(km, u)) + return u + } + return new cm(!1) + } + function dm(e, t) { + return $m(e), + Bm(t) && t.constructor === e ? t : ((0, + (e = Nm.f(e)).resolve)(t), + e.promise) + } + function fm(e) { + if (9007199254740991 < e) + throw Gm("Maximum allowed index exceeded") + } + var pm = ji + , hm = e + , mm = ao + , gm = uo + , vm = pc + , bm = Bi + , ym = Vo + , _m = mc + , wm = hc + , Am = fc + , xm = TypeError + , km = cm.prototype + , Em = vl + , Xa = tl.CONSTRUCTOR || !k0(function(e) { + Em.all(e).then(void 0, function() {}) + }) + , Sm = e + , Rm = co + , Om = w + , Dm = ah + , Tm = lm + , o = (Is({ + target: "Promise", + stat: !0, + forced: Xa + }, { + all: function(e) { + var s = this + , t = Om.f(s) + , u = t.resolve + , c = t.reject + , r = Dm(function() { + var n = Rm(s.resolve) + , o = [] + , i = 0 + , a = 1; + Tm(e, function(e) { + var t = i++ + , r = !1; + a++, + Sm(n, s, e).then(function(e) { + r || (r = !0, + o[t] = e, + --a) || u(o) + }, c) + }), + --a || u(o) + }); + return r.error && c(r.value), + t.promise + } + }), + Is) + , g = vl + , bl = so + , zn = ho + , k = Ci + , y = g && g.prototype + , Im = (o({ + target: "Promise", + proto: !0, + forced: tl.CONSTRUCTOR, + real: !0 + }, { + catch: function(e) { + return this.then(void 0, e) + } + }), + zn(g) && (A = bl("Promise").prototype.catch, + y.catch !== A) && k(y, "catch", A, { + unsafe: !0 + }), + e) + , Mm = co + , Cm = w + , Lm = ah + , Pm = lm + , jm = (Is({ + target: "Promise", + stat: !0, + forced: Xa + }, { + race: function(e) { + var r = this + , n = Cm.f(r) + , o = n.reject + , t = Lm(function() { + var t = Mm(r.resolve); + Pm(e, function(e) { + Im(t, r, e).then(n.resolve, o) + }) + }); + return t.error && o(t.value), + n.promise + } + }), + e) + , Um = w + , $m = (Is({ + target: "Promise", + stat: !0, + forced: tl.CONSTRUCTOR + }, { + reject: function(e) { + var t = Um.f(this); + return jm(t.reject, void 0, e), + t.promise + } + }), + ao) + , Bm = Cr + , Nm = w + , Ro = Is + , _ = tl.CONSTRUCTOR + , Fm = dm + , Gm = (so("Promise"), + Ro({ + target: "Promise", + stat: !0, + forced: _ + }, { + resolve: function(e) { + return Fm(this, e) + } + }), + TypeError) + , ml = Is + , Si = Qn + , zm = ia + , Zm = Cr + , Hm = ro + , Km = Bi + , qm = Ju + , Vm = zi + , R = dc + , x = t + , Wm = oo("isConcatSpreadable") + , yl = 51 <= x || !Si(function() { + var e = []; + return e[Wm] = !1, + e.concat()[0] !== e + }) + , v = (ml({ + target: "Array", + proto: !0, + arity: 1, + forced: !yl || !R("concat") + }, { + concat: function(e) { + for (var t, r, n, o, i, a = Hm(this), s = Vm(a, 0), u = 0, c = -1, l = arguments.length; c < l; c++) + if (o = n = -1 === c ? a : arguments[c], + i = void 0, + !Zm(o) || (void 0 !== (i = o[Wm]) ? !i : !zm(o))) + fm(u + 1), + qm(s, u++, n); + else + for (r = Km(n), + fm(u + r), + t = 0; t < r; t++, + u++) + t in n && qm(s, u, n[t]); + return s.length = u, + s + } + }), + Kn) + , pl = Oi.EXISTS + , Wc = r + , i = Qu + , a = Function.prototype + , Ym = Wc(a.toString) + , Jm = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/ + , Xm = Wc(Jm.exec); + function Qm(e, t) { + (null == t || t > e.length) && (t = e.length); + for (var r = 0, n = new Array(t); r < t; r++) + n[r] = e[r]; + return n + } + function eg(t, e) { + var r, n = Object.keys(t); + return Object.getOwnPropertySymbols && (r = Object.getOwnPropertySymbols(t), + e && (r = r.filter(function(e) { + return Object.getOwnPropertyDescriptor(t, e).enumerable + })), + n.push.apply(n, r)), + n + } + function tg(t) { + for (var e = 1; e < arguments.length; e++) { + var r = null != arguments[e] ? arguments[e] : {}; + e % 2 ? eg(Object(r), !0).forEach(function(e) { + Fu(t, e, r[e]) + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : eg(Object(r)).forEach(function(e) { + Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(r, e)) + }) + } + return t + } + v && !pl && i(a, "name", { + configurable: !0, + get: function() { + try { + return Xm(Jm, Ym(this))[1] + } catch (e) { + return "" + } + } + }); + function rg(e, t) { + fg[e] = tg(tg({}, t), {}, { + isLoading: !1 + }) + } + function ng(e) { + var n = this + , o = e.id + , i = e.src; + return new Promise(function(e, t) { + var r; + D(this, n), + document.getElementById(o) ? e() : ((r = document.createElement("script")).onload = function() { + e() + } + , + r.id = o, + r.setAttribute("crossorigin", !0), + r.src = i, + document.head.appendChild(r)) + } + .bind(this)) + } + function og(e) { + var t; + return mg(e) && (void 0 !== (t = e[vg]) ? !!t : "RegExp" == gg(e)) + } + function ig(e) { + if (bg(e)) + throw yg("The method doesn't accept regular expressions"); + return e + } + function ag(t) { + var r = /./; + try { + "/./"[t](r) + } catch (e) { + try { + return r[_g] = !1, + "/./"[t](r) + } catch (t) {} + } + return !1 + } + function sg(e) { + var t = e.flags; + return void 0 !== t || "flags"in Mg || Dg(e, "flags") || !Tg(Mg, e) ? t : Og(Ig, e) + } + function ug(r, e, t, n) { + var a, o = Fg(r), s = !Ng(function() { + var e = {}; + return e[o] = function() { + return 7 + } + , + 7 != ""[r](e) + }), i = s && !Ng(function() { + var e = !1 + , t = /a/; + return "split" === r && ((t = {}).constructor = {}, + t.constructor[zg] = function() { + return t + } + , + t.flags = "", + t[o] = /./[o]), + t.exec = function() { + return e = !0, + null + } + , + t[o](""), + !e + }); + s && i && !t || (a = Ug(/./[o]), + i = e(o, ""[r], function(e, t, r, n, o) { + var e = Ug(e) + , i = t.exec; + return i === Bg || i === Zg.exec ? s && !o ? { + done: !0, + value: a(t, r, n) + } : { + done: !0, + value: e(r, t, n) + } : { + done: !1 + } + }), + $g(String.prototype, r, i[0]), + $g(Zg, o, i[1])), + n && Gg(Zg[o], "sham", !0) + } + function cg(e, t) { + var r = e.exec; + if (qg(r)) + return null !== (r = Hg(r, e, t)) && Kg(r), + r; + if ("RegExp" === Vg(e)) + return Hg(Wg, e, t); + throw Yg("RegExp#exec called on incompatible receiver") + } + var lg, dg = { + react: { + src: "https://pm.gamedistribution.com/react/16.14.0/umd/react.production.min.js", + name: "React" + }, + "react-dom": { + src: "https://pm.gamedistribution.com/react-dom/16.14.0/umd/react-dom.production.min.js", + name: "ReactDOM" + }, + redux: { + src: "https://pm.gamedistribution.com/redux/4.0.5/dist/redux.min.js", + name: "Redux" + }, + "react-redux": { + src: "https://pm.gamedistribution.com/react-redux/7.2.1/dist/react-redux.min.js", + name: "ReactRedux" + }, + "material-ui-core": { + src: "https://pm.gamedistribution.com/@material-ui/core/4.11.3/umd/material-ui.production.min.js", + name: "MaterialUI" + } + }, fg = {}, pg = (lg = d(T.mark(function e(t) { + var r, n, o, i, a, s; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + if (r = window[t]) + return e.abrupt("return", r); + e.next = 3; + break; + case 3: + if ((n = fg[t]).isLoading) + return e.abrupt("return"); + e.next = 6; + break; + case 6: + n.isLoading = !0, + o = function e(t, r) { + var n, o, i, a, s = "undefined" != typeof Symbol && t[Symbol.iterator] || t["@@iterator"]; + if (s) + return i = !(o = !0), + { + s: function() { + s = s.call(t) + }, + n: function() { + var e = s.next(); + return o = e.done, + e + }, + e: function(e) { + i = !0, + n = e + }, + f: function() { + try { + o || null == s.return || s.return() + } finally { + if (i) + throw n + } + } + }; + if (Array.isArray(t) || (s = function(e) { + var t; + if (e) + return "string" == typeof e ? Qm(e, void 0) : "Map" === (t = "Object" === (t = Object.prototype.toString.call(e).slice(8, -1)) && e.constructor ? e.constructor.name : t) || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? Qm(e, void 0) : void 0 + }(t)) || r && t && "number" == typeof t.length) + return s && (t = s), + a = 0, + { + s: r = function() {} + , + n: function() { + return a >= t.length ? { + done: !0 + } : { + done: !1, + value: t[a++] + } + }, + e: function(e) { + throw e + }, + f: r + }; + throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.") + }(n.dependencies), + e.prev = 8, + o.s(); + case 10: + if ((a = o.n()).done) + e.next = 26; + else { + if (i = a.value, + e.prev = 12, + a = dg[i].name, + window[a]) + return e.abrupt("continue", 24); + e.next = 16 + } + break; + case 16: + return e.next = 18, + ng({ + id: i, + src: dg[i].src + }); + case 18: + e.next = 24; + break; + case 20: + e.prev = 20, + e.t0 = e.catch(12), + a = i.id, + s = i.src, + console.log("Could not load external script ".concat(a, " ").concat(s), e.t0); + case 24: + e.next = 10; + break; + case 26: + e.next = 31; + break; + case 28: + e.prev = 28, + e.t1 = e.catch(8), + o.e(e.t1); + case 31: + return e.prev = 31, + o.f(), + e.finish(31); + case 34: + return e.prev = 34, + e.next = 37, + ng({ + id: t, + src: n.source + }); + case 37: + r = window[t], + e.next = 43; + break; + case 40: + e.prev = 40, + e.t2 = e.catch(34), + console.log("Could not load module ".concat(t, " ").concat(n.source, "."), e.t2); + case 43: + return n.isLoading = !1, + e.abrupt("return", r); + case 45: + case "end": + return e.stop() + } + }, e, null, [[8, 28, 31, 34], [12, 20], [34, 40]]) + })), + function(e) { + return lg.apply(this, arguments) + } + ), hg = new (pe(function e() { + var t, r, n = this; + le(this, e), + Fu(this, "load", d(T.mark(function e() { + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return e.next = 2, + pg("Leaderboard"); + case 2: + n.leaderboard = e.sent; + case 3: + case "end": + return e.stop() + } + }, e) + }))), + Fu(this, "showLeaderboard", (r = d(T.mark(function e(t) { + var r; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + if (r = window.GD_OPTIONS.gameId, + n.leaderboard) { + e.next = 4; + break + } + return e.next = 4, + n.load(); + case 4: + n.leaderboard.showLeaderBoard(r, t); + case 5: + case "end": + return e.stop() + } + }, e) + })), + function(e) { + return r.apply(this, arguments) + } + )), + Fu(this, "addScore", (t = d(T.mark(function e(t) { + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + if (n.leaderboard) { + e.next = 3; + break + } + return e.next = 3, + n.load(); + case 3: + n.leaderboard.addScore(t); + case 4: + case "end": + return e.stop() + } + }, e) + })), + function(e) { + return t.apply(this, arguments) + } + )), + this.moduleName = "Leaderboard", + this.moduleConfig = { + source: "https://pm.gamedistribution.com/@bygd/gd-sdk-leaderboard/0.1.43/dist/default/iife/index.js", + dependencies: ["react", "react-dom", "redux", "react-redux", "material-ui-core"] + }, + rg(this.moduleName, this.moduleConfig) + })), mg = Cr, gg = Li, vg = oo("match"), bg = og, yg = TypeError, _g = oo("match"), aa = Is, E = Pi, po = b.f, wg = $i, Ag = Gu, xg = ig, kg = to, el = ag, Eg = E("".startsWith), Sg = E("".slice), Rg = Math.min, o = el("startsWith"), Og = (aa({ + target: "String", + proto: !0, + forced: !(!o && (zn = po(String.prototype, "startsWith")) && !zn.writable || o) + }, { + startsWith: function(e) { + var t = Ag(kg(this)) + , r = (xg(e), + wg(Rg(1 < arguments.length ? arguments[1] : void 0, t.length))) + , e = Ag(e); + return Eg ? Eg(t, e, r) : Sg(t, r, r + e.length) === e + } + }), + e), Dg = xo, Tg = Vo, Ig = H0, Mg = RegExp.prototype, g = Oi.PROPER, bl = Ci, Cg = ao, Lg = Gu, k = Qn, Pg = sg, y = "toString", jg = RegExp.prototype[y], A = k(function() { + return "/a/b" != jg.call({ + source: "a", + flags: "b" + }) + }), Xa = g && jg.name != y, Ug = ((A || Xa) && bl(RegExp.prototype, y, function() { + var e = Cg(this); + return "/" + Lg(e.source) + "/" + Lg(Pg(e)) + }, { + unsafe: !0 + }), + Pi), $g = Ci, Bg = S, Ng = Qn, Fg = oo, Gg = Di, zg = Fg("species"), Zg = RegExp.prototype, w = Object.is || function(e, t) { + return e === t ? 0 !== e || 1 / e == 1 / t : e != e && t != t + } + , Hg = e, Kg = ao, qg = ho, Vg = Li, Wg = S, Yg = TypeError, Jg = e, Xg = ao, Qg = eo, ev = to, tv = w, rv = Gu, nv = lo, ov = cg; + function iv(t, e) { + var r, n = Object.keys(t); + return Object.getOwnPropertySymbols && (r = Object.getOwnPropertySymbols(t), + e && (r = r.filter(function(e) { + return Object.getOwnPropertyDescriptor(t, e).enumerable + })), + n.push.apply(n, r)), + n + } + function av(t) { + for (var e = 1; e < arguments.length; e++) { + var r = null != arguments[e] ? arguments[e] : {}; + e % 2 ? iv(Object(r), !0).forEach(function(e) { + Fu(t, e, r[e]) + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : iv(Object(r)).forEach(function(e) { + Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(r, e)) + }) + } + return t + } + ug("search", function(n, o, i) { + return [function(e) { + var t = ev(this) + , r = Qg(e) ? void 0 : nv(e, n); + return r ? Jg(r, e, t) : new RegExp(e)[n](rv(t)) + } + , function(e) { + var t = Xg(this) + , e = rv(e) + , r = i(o, t, e); + return r.done ? r.value : (r = t.lastIndex, + tv(r, 0) || (t.lastIndex = 0), + e = ov(t, e), + tv(t.lastIndex, r) || (t.lastIndex = r), + null === e ? -1 : e.index) + } + ] + }); + pe(Uv, [{ + key: "getBridgeContext", + value: function() { + var e = this._isTokenGameURL() + , t = this._isMasterGameURL() + , r = this._isExtHostedGameURL() + , n = (e || r ? this._getTokenGameURLConfig() : {}) || {} + , o = decodeURIComponent((e || r) && n.parentURL ? n.parentURL : pn()) + , i = decodeURIComponent((e || r) && n.parentDomain ? n.parentDomain : fn()) + , a = decodeURIComponent((e || r) && n.topDomain ? n.topDomain : r && 0 === yn() ? i : An()) + , s = (e || r) && n.loaderEnabled + , u = (e || r) && n.loaderEnabled + , c = (e || r) && n.loaderEnabled + , l = (e || r) && n.loaderEnabled + , d = (e || r) && n.loaderEnabled + , f = (e || r) && n.loaderEnabled + , p = (e || r) && n.loaderEnabled + , h = (console.log("noMinijuegosSDK", p), + (e || r) && n.loaderEnabled) + , m = (e || r) && n.loaderEnabled && n.hasImpression && "1.1.24" <= n.version; + return { + isTokenGameURL: e, + isMasterGameURL: t, + isExtHostedGameURL: r, + noConsoleBanner: s, + noLoadedEvent: u, + noBlockerEvent: c, + noPreroll: h, + parentURL: o, + parentDomain: i, + topDomain: a && a.length ? a : i, + noGAPageView: l, + noLotamePageView: d, + noGamedockSDK: f, + noMinijuegosSDK: p, + version: n.version, + pauseGameOnStartup: m, + depth: yn(), + domainMatched: i === a, + exports: { + formatTokenURLSearch: this._formatTokenURLSearch.bind(this), + extendUrlQuery: this._extendUrlQuery.bind(this), + base64Encode: this._base64_encode.bind(this) + } + } + } + }, { + key: "_isMasterGameURL", + value: function() { + var e = /http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Fa-f0-9]{32})(.*)$/i; + return e.test(location.href) || !this._isTokenGameURL() && e.test(document.referrer) + } + }, { + key: "_isTokenGameURL", + value: function() { + var e = /http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Za-z0-9]{8})\/(.*)$/i; + return e.test(location.href) || e.test(document.referrer) + } + }, { + key: "_isExtHostedGameURL", + value: function() { + var e = /^http[s]?:\/\/.*?gd_sdk_referrer_url=.*$/i; + return e.test(location.href) || e.test(document.referrer) + } + }, { + key: "_isLoaderGameURL", + value: function() { + return /http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Fa-f0-9]{32})(.*)$/i.test(location.href) && location.href.startsWith("https://html5.gamedistribution.com") + } + }, { + key: "_getTokenGameURLConfig", + value: function() { + try { + var e, t = /http[s]?:\/\/html5\.gamedistribution\.com\/[A-Za-z0-9]{8}\/[A-Fa-f0-9]{32}\/.*/i; + if (t.test(location.href)) { + var r = new ce(location.href,!0); + if (!r.query.gd_zone_config) + return; + e = r.query.gd_zone_config + } else if (t.test(document.referrer)) { + var n = new ce(document.referrer,!0); + if (!n.query.gd_zone_config) + return; + e = n.query.gd_zone_config + } else { + var o = new ce(location.href,!0); + if (!o.query.gd_zone_config) + return; + e = o.query.gd_zone_config + } + return JSON.parse(ln(decodeURIComponent(e))) + } catch (e) {} + } + }, { + key: "_formatTokenURLSearch", + value: function(e) { + var t = ""; + try { + t = encodeURIComponent(cn(JSON.stringify(e))) + } catch (e) {} + try { + var r = new ce(location.href,!0); + return r.query = r.query || {}, + r.query.gd_zone_config = t, + "?".concat(qs.stringify(r.query)) + } catch (e) { + return "?gd_zone_config=".concat(t) + } + } + }, { + key: "_extendUrlQuery", + value: function(e, t) { + e = new ce(e,!0); + return e.query = av(av({}, e.query), t), + e.toString() + } + }, { + key: "_base64_encode", + value: function(e) { + return cn(JSON.stringify(e)) + } + }]); + var sv = Uv + , uv = function() { + try { + return (new sv).getBridgeContext() + } catch (e) { + return {} + } + }() + , cv = { + userDeclinedTracking: 0 <= document.location.search.indexOf("gdpr-tracking=0") || 0 <= document.cookie.indexOf("ogdpr_tracking=0"), + whitelabelPartner: (tl = !1, + tl = (Ro = mn()).hasOwnProperty("xanthophyll") && "true" === Ro.xanthophyll ? !0 : tl) + } + , lv = Rl.charAt + , _ = r + , dv = ro + , fv = Math.floor + , pv = _("".charAt) + , hv = _("".replace) + , mv = _("".slice) + , gv = /\$([$&'`]|\d{1,2}|<[^>]*>)/g + , vv = /\$([$&'`]|\d{1,2})/g + , bv = hl + , yv = e + , ia = r + , t = ug + , x = Qn + , _v = ao + , wv = ho + , Av = eo + , xv = Ui + , kv = $i + , Ev = Gu + , Sv = to + , Rv = lo + , Ov = cg + , Dv = oo("replace") + , Tv = Math.max + , Iv = Math.min + , Mv = ia([].concat) + , Cv = ia([].push) + , Lv = ia("".indexOf) + , Pv = ia("".slice) + , Si = "$0" === "a".replace(/./, "$0") + , jv = !!/./[Dv] && "" === /./[Dv]("a", "$0"); + function Uv() { + le(this, Uv) + } + t("replace", function(e, w, A) { + var x = jv ? "$" : "$0"; + return [function(e, t) { + var r = Sv(this) + , n = Av(e) ? void 0 : Rv(e, Dv); + return n ? yv(n, e, r, t) : yv(w, Ev(r), e, t) + } + , function(e, t) { + var r = _v(this) + , n = Ev(e); + if ("string" == typeof t && -1 === Lv(t, x) && -1 === Lv(t, "$<")) { + e = A(w, r, n, t); + if (e.done) + return e.value + } + var o, i = wv(t), a = (i || (t = Ev(t)), + r.global); + a && (o = r.unicode, + r.lastIndex = 0); + for (var s, u, c = []; ; ) { + var l = Ov(r, n); + if (null === l) + break; + if (Cv(c, l), + !a) + break; + "" === Ev(l[0]) && (r.lastIndex = (s = n, + (u = kv(r.lastIndex)) + (o ? lv(s, u).length : 1))) + } + for (var d, f = "", p = 0, h = 0; h < c.length; h++) { + for (var m = Ev((l = c[h])[0]), g = Tv(Iv(xv(l.index), n.length), 0), v = [], b = 1; b < l.length; b++) + Cv(v, void 0 === (d = l[b]) ? d : String(d)); + var y = l.groups + , _ = i ? (_ = Mv([m], v, g, n), + void 0 !== y && Cv(_, y), + Ev(bv(t, void 0, _))) : function(i, a, s, u, c, e) { + var l = s + i.length + , d = u.length + , t = vv; + return void 0 !== c && (c = dv(c), + t = gv), + hv(e, t, function(e, t) { + var r; + switch (pv(t, 0)) { + case "$": + return "$"; + case "&": + return i; + case "`": + return mv(a, 0, s); + case "'": + return mv(a, l); + case "<": + r = c[mv(t, 1, -1)]; + break; + default: + var n, o = +t; + if (0 == o) + return e; + if (d < o) + return 0 !== (n = fv(o / 10)) && n <= d ? void 0 === u[n - 1] ? pv(t, 1) : u[n - 1] + pv(t, 1) : e; + r = u[o - 1] + } + return void 0 === r ? "" : r + }) + }(m, n, g, v, y, t); + p <= g && (f += Pv(n, p, g) + _, + p = g + m.length) + } + return f + Pv(n, p) + } + ] + }, !!x(function() { + var e = /./; + return e.exec = function() { + var e = []; + return e.groups = { + a: "7" + }, + e + } + , + "7" !== "".replace(e, "$") + }) || !Si || jv); + function $v(e, t) { + var r = e.length + , n = eb(r / 2); + if (r < 8) { + for (var o, i, a = e, s = t, u = a.length, c = 1; c < u; ) { + for (o = a[i = c]; i && 0 < s(a[i - 1], o); ) + a[i] = a[--i]; + i !== c++ && (a[i] = o) + } + return a + } + for (var l = e, d = $v(Qv(e, 0, n), t), f = $v(Qv(e, n), t), p = t, h = d.length, m = f.length, g = 0, v = 0; g < h || v < m; ) + l[g + v] = g < h && v < m ? p(d[g], f[v]) <= 0 ? d[g++] : f[v++] : g < h ? d[g++] : f[v++]; + return l + } + function Bv(e) { + var t; + return nb ? (t = Ab(tb, e)) && t.value : tb[e] + } + function Nv(t) { + try { + return Db(t) + } catch (e) { + return t + } + } + function Fv(e) { + var t, r = Lb(e, Bb, " "), n = 4; + try { + return Db(r) + } catch (e) { + for (; n; ) + r = Lb(r, (t = n--, + Nb[t - 1] || (Nb[t - 1] = Rb("((?:%[\\da-f]{2}){" + t + "})", "gi"))), Nv); + return r + } + } + function Gv(e) { + return Gb[e] + } + function zv(e) { + return Lb(Tb(e), Fb, Gv) + } + function Zv(e) { + this.entries = [], + this.url = null, + void 0 !== e && (cb(e) ? this.parseObject(e) : this.parseQuery("string" == typeof e ? "?" === Ib(e, 0) ? $b(e, 1) : e : lb(e))) + } + function Hv() { + ob(this, Zb); + var e = yb(this, new Zv(0 < arguments.length ? arguments[0] : void 0)); + nb || (this.length = e.entries.length) + } + var Kv, qv, Vv, Wv, ml = Qn, Yv = Kn, Jv = oo("iterator"), yl = !ml(function() { + var e = new URL("b?a=1&b=2&c=3","http://a") + , r = e.searchParams + , n = ""; + return e.pathname = "c%20d", + r.forEach(function(e, t) { + r.delete("b"), + n += t + e + }), + !r.size && !Yv || !r.sort || "http://a/c%20d?a=1&c=3" !== e.href || "3" !== r.get("c") || "a=1" !== String(new URLSearchParams("?a=1")) || !r[Jv] || "a" !== new URL("https://a@b").username || "b" !== new URLSearchParams(new URLSearchParams("a=b")).get("a") || "xn--e1aybc" !== new URL("http://тест").host || "#%D0%B1" !== new URL("http://a#б").hash || "a1c3" !== n || "x" !== new URL("http://x",void 0).host + }), Xv = Ci, Qv = Xu, eb = Math.floor, R = Is, tb = n, rb = e, Wc = r, nb = Kn, v = yl, pl = Ci, i = Qu, a = tc, b = F0, E = Ri, ob = Ap, el = ho, ib = xo, ab = ji, sb = ca, ub = ao, cb = Cr, lb = Gu, db = Po, fb = Ii, pb = mc, hb = hc, mb = kp, gb = $v, aa = oo("iterator"), vb = "URLSearchParams", bb = vb + "Iterator", yb = E.set, _b = E.getterFor(vb), wb = E.getterFor(bb), Ab = Object.getOwnPropertyDescriptor, xb = Bv("fetch"), kb = Bv("Request"), Eb = Bv("Headers"), Sb = kb && kb.prototype, po = Eb && Eb.prototype, Rb = tb.RegExp, Ob = tb.TypeError, Db = tb.decodeURIComponent, Tb = tb.encodeURIComponent, Ib = Wc("".charAt), Mb = Wc([].join), Cb = Wc([].push), Lb = Wc("".replace), Pb = Wc([].shift), jb = Wc([].splice), Ub = Wc("".split), $b = Wc("".slice), Bb = /\+/g, Nb = Array(4), Fb = /[!'()~]|%20/g, Gb = { + "!": "%21", + "'": "%27", + "(": "%28", + ")": "%29", + "~": "%7E", + "%20": "+" + }, zb = b(function(e, t) { + yb(this, { + type: bb, + iterator: pb(_b(e).entries), + kind: t + }) + }, "Iterator", function() { + var e = wb(this) + , t = e.kind + , e = e.iterator.next() + , r = e.value; + return e.done || (e.value = "keys" === t ? r.key : "values" === t ? r.value : [r.key, r.value]), + e + }, !0), Zb = (Zv.prototype = { + type: vb, + bindURL: function(e) { + this.url = e, + this.update() + }, + parseObject: function(e) { + var t, r, n, o, i, a, s = hb(e); + if (s) + for (r = (t = pb(e, s)).next; !(n = rb(r, t)).done; ) { + if (o = (n = pb(ub(n.value))).next, + (i = rb(o, n)).done || (a = rb(o, n)).done || !rb(o, n).done) + throw Ob("Expected sequence with length 2"); + Cb(this.entries, { + key: lb(i.value), + value: lb(a.value) + }) + } + else + for (var u in e) + ib(e, u) && Cb(this.entries, { + key: u, + value: lb(e[u]) + }) + }, + parseQuery: function(e) { + if (e) + for (var t, r = Ub(e, "&"), n = 0; n < r.length; ) + (t = r[n++]).length && (t = Ub(t, "="), + Cb(this.entries, { + key: Fv(Pb(t)), + value: Fv(Mb(t, "=")) + })) + }, + serialize: function() { + for (var e, t = this.entries, r = [], n = 0; n < t.length; ) + e = t[n++], + Cb(r, zv(e.key) + "=" + zv(e.value)); + return Mb(r, "&") + }, + update: function() { + this.entries.length = 0, + this.parseQuery(this.url.query) + }, + updateURL: function() { + this.url && this.url.update() + } + }, + Hv.prototype), Hb = Zb, Kb = { + append: function(e, t) { + mb(arguments.length, 2); + var r = _b(this); + Cb(r.entries, { + key: lb(e), + value: lb(t) + }), + nb || this.length++, + r.updateURL() + }, + delete: function(e) { + mb(arguments.length, 1); + for (var t = _b(this), r = t.entries, n = lb(e), o = 0; o < r.length; ) + r[o].key === n ? jb(r, o, 1) : o++; + nb || (this.length = r.length), + t.updateURL() + }, + get: function(e) { + mb(arguments.length, 1); + for (var t = _b(this).entries, r = lb(e), n = 0; n < t.length; n++) + if (t[n].key === r) + return t[n].value; + return null + }, + getAll: function(e) { + mb(arguments.length, 1); + for (var t = _b(this).entries, r = lb(e), n = [], o = 0; o < t.length; o++) + t[o].key === r && Cb(n, t[o].value); + return n + }, + has: function(e) { + mb(arguments.length, 1); + for (var t = _b(this).entries, r = lb(e), n = 0; n < t.length; ) + if (t[n++].key === r) + return !0; + return !1 + }, + set: function(e, t) { + mb(arguments.length, 1); + for (var r, n = _b(this), o = n.entries, i = !1, a = lb(e), s = lb(t), u = 0; u < o.length; u++) + (r = o[u]).key === a && (i ? jb(o, u--, 1) : (i = !0, + r.value = s)); + i || Cb(o, { + key: a, + value: s + }), + nb || (this.length = o.length), + n.updateURL() + }, + sort: function() { + var e = _b(this); + gb(e.entries, function(e, t) { + return e.key > t.key ? 1 : -1 + }), + e.updateURL() + }, + forEach: function(e) { + for (var t, r = _b(this).entries, n = ab(e, 1 < arguments.length ? arguments[1] : void 0), o = 0; o < r.length; ) + n((t = r[o++]).value, t.key, this) + }, + keys: function() { + return new zb(this,"keys") + }, + values: function() { + return new zb(this,"values") + }, + entries: function() { + return new zb(this,"entries") + } + }, qb = { + enumerable: !0 + }; + for (Wv in Kb) + Xv(Hb, Wv, Kb[Wv], qb); + pl(Zb, aa, Zb.entries, { + name: "entries" + }), + pl(Zb, "toString", function() { + return _b(this).serialize() + }, { + enumerable: !0 + }), + nb && i(Zb, "size", { + get: function() { + return _b(this).entries.length + }, + configurable: !0, + enumerable: !0 + }), + a(Hv, vb), + R({ + global: !0, + constructor: !0, + forced: !v + }, { + URLSearchParams: Hv + }), + !v && el(Eb) && (Kv = Wc(po.has), + qv = Wc(po.set), + Vv = function(e) { + if (cb(e)) { + var t, r = e.body; + if (sb(r) === vb) + return t = e.headers ? new Eb(e.headers) : new Eb, + Kv(t, "content-type") || qv(t, "content-type", "application/x-www-form-urlencoded;charset=UTF-8"), + db(e, { + body: fb(0, lb(r)), + headers: fb(0, t) + }) + } + return e + } + , + el(xb) && R({ + global: !0, + enumerable: !0, + dontCallGetSet: !0, + forced: !0 + }, { + fetch: function(e) { + return xb(e, 1 < arguments.length ? Vv(arguments[1]) : {}) + } + }), + el(kb)) && ((Sb.constructor = zn = function(e) { + return ob(this, Sb), + new kb(e,1 < arguments.length ? Vv(arguments[1]) : {}) + } + ).prototype = Sb, + R({ + global: !0, + constructor: !0, + dontCallGetSet: !0, + forced: !0 + }, { + Request: zn + })); + var Vb, o = { + URLSearchParams: Hv, + getState: _b + }, Wb = js.includes, k = K0, g = (Is({ + target: "Array", + proto: !0, + forced: Qn(function() { + return !Array(1).includes() + }) + }, { + includes: function(e) { + return Wb(this, e, 1 < arguments.length ? arguments[1] : void 0) + } + }), + k("includes"), + Is), Yb = ig, Jb = to, Xb = Gu, A = ag, Qb = r("".indexOf), Xa = (g({ + target: "String", + proto: !0, + forced: !A("includes") + }, { + includes: function(e) { + return !!~Qb(Xb(Jb(this)), Xb(Yb(e)), 1 < arguments.length ? arguments[1] : void 0) + } + }), + { + exports: {} + }), bl = { + exports: {} + }, y = { + exports: {} + }; + function e1(e) { + return (e1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { + return typeof e + } + : function(e) { + return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e + } + )(e) + } + w = (S = y).exports, + Object.defineProperty(w, "__esModule", { + value: !0 + }), + w.default = function(e) { + var t; + if (!("string" == typeof e || e instanceof String)) + throw t = e1(e), + null === e ? t = "null" : "object" === t && (t = e.constructor.name), + new TypeError("Expected a string but received a ".concat(t)) + } + , + S.exports = w.default, + S.exports.default = w.default, + tl = (Ro = bl).exports, + Object.defineProperty(tl, "__esModule", { + value: !0 + }), + tl.default = function(e) { + return (0, + Vb.default)(e), + e = Date.parse(e), + isNaN(e) ? null : new Date(e) + } + , + Vb = (_ = y.exports) && _.__esModule ? _ : { + default: _ + }, + Ro.exports = tl.default, + Ro.exports.default = tl.default; + var hl = { + exports: {} + } + , ia = {} + , t = {} + , t1 = (Object.defineProperty(t, "__esModule", { + value: !0 + }), + t.commaDecimal = t.dotDecimal = t.bengaliLocales = t.farsiLocales = t.arabicLocales = t.englishLocales = t.decimal = t.alphanumeric = t.alpha = void 0, + { + "en-US": /^[A-Z]+$/i, + "az-AZ": /^[A-VXYZÇƏĞİıÖŞÜ]+$/i, + "bg-BG": /^[А-Я]+$/i, + "cs-CZ": /^[A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i, + "da-DK": /^[A-ZÆØÅ]+$/i, + "de-DE": /^[A-ZÄÖÜß]+$/i, + "el-GR": /^[Α-ώ]+$/i, + "es-ES": /^[A-ZÁÉÍÑÓÚÜ]+$/i, + "fa-IR": /^[ابپتثجچحخدذرزژسشصضطظعغفقکگلمنوهی]+$/i, + "fi-FI": /^[A-ZÅÄÖ]+$/i, + "fr-FR": /^[A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i, + "it-IT": /^[A-ZÀÉÈÌÎÓÒÙ]+$/i, + "ja-JP": /^[ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i, + "nb-NO": /^[A-ZÆØÅ]+$/i, + "nl-NL": /^[A-ZÁÉËÏÓÖÜÚ]+$/i, + "nn-NO": /^[A-ZÆØÅ]+$/i, + "hu-HU": /^[A-ZÁÉÍÓÖŐÚÜŰ]+$/i, + "pl-PL": /^[A-ZĄĆĘŚŁŃÓŻŹ]+$/i, + "pt-PT": /^[A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i, + "ru-RU": /^[А-ЯЁ]+$/i, + "sl-SI": /^[A-ZČĆĐŠŽ]+$/i, + "sk-SK": /^[A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i, + "sr-RS@latin": /^[A-ZČĆŽŠĐ]+$/i, + "sr-RS": /^[А-ЯЂЈЉЊЋЏ]+$/i, + "sv-SE": /^[A-ZÅÄÖ]+$/i, + "th-TH": /^[ก-๐\s]+$/i, + "tr-TR": /^[A-ZÇĞİıÖŞÜ]+$/i, + "uk-UA": /^[А-ЩЬЮЯЄIЇҐі]+$/i, + "vi-VN": /^[A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i, + "ko-KR": /^[ㄱ-ㅎㅏ-ㅣ가-힣]*$/, + "ku-IQ": /^[ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i, + ar: /^[ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/, + he: /^[א-ת]+$/, + fa: /^['آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی']+$/i, + bn: /^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣৰৱ৲৳৴৵৶৷৸৹৺৻']+$/, + "hi-IN": /^[\u0900-\u0961]+[\u0972-\u097F]*$/i, + "si-LK": /^[\u0D80-\u0DFF]+$/ + }) + , r1 = (t.alpha = t1, + { + "en-US": /^[0-9A-Z]+$/i, + "az-AZ": /^[0-9A-VXYZÇƏĞİıÖŞÜ]+$/i, + "bg-BG": /^[0-9А-Я]+$/i, + "cs-CZ": /^[0-9A-ZÁČĎÉĚÍŇÓŘŠŤÚŮÝŽ]+$/i, + "da-DK": /^[0-9A-ZÆØÅ]+$/i, + "de-DE": /^[0-9A-ZÄÖÜß]+$/i, + "el-GR": /^[0-9Α-ω]+$/i, + "es-ES": /^[0-9A-ZÁÉÍÑÓÚÜ]+$/i, + "fi-FI": /^[0-9A-ZÅÄÖ]+$/i, + "fr-FR": /^[0-9A-ZÀÂÆÇÉÈÊËÏÎÔŒÙÛÜŸ]+$/i, + "it-IT": /^[0-9A-ZÀÉÈÌÎÓÒÙ]+$/i, + "ja-JP": /^[0-90-9ぁ-んァ-ヶヲ-゚一-龠ー・。、]+$/i, + "hu-HU": /^[0-9A-ZÁÉÍÓÖŐÚÜŰ]+$/i, + "nb-NO": /^[0-9A-ZÆØÅ]+$/i, + "nl-NL": /^[0-9A-ZÁÉËÏÓÖÜÚ]+$/i, + "nn-NO": /^[0-9A-ZÆØÅ]+$/i, + "pl-PL": /^[0-9A-ZĄĆĘŚŁŃÓŻŹ]+$/i, + "pt-PT": /^[0-9A-ZÃÁÀÂÄÇÉÊËÍÏÕÓÔÖÚÜ]+$/i, + "ru-RU": /^[0-9А-ЯЁ]+$/i, + "sl-SI": /^[0-9A-ZČĆĐŠŽ]+$/i, + "sk-SK": /^[0-9A-ZÁČĎÉÍŇÓŠŤÚÝŽĹŔĽÄÔ]+$/i, + "sr-RS@latin": /^[0-9A-ZČĆŽŠĐ]+$/i, + "sr-RS": /^[0-9А-ЯЂЈЉЊЋЏ]+$/i, + "sv-SE": /^[0-9A-ZÅÄÖ]+$/i, + "th-TH": /^[ก-๙\s]+$/i, + "tr-TR": /^[0-9A-ZÇĞİıÖŞÜ]+$/i, + "uk-UA": /^[0-9А-ЩЬЮЯЄIЇҐі]+$/i, + "ko-KR": /^[0-9ㄱ-ㅎㅏ-ㅣ가-힣]*$/, + "ku-IQ": /^[٠١٢٣٤٥٦٧٨٩0-9ئابپتجچحخدرڕزژسشعغفڤقکگلڵمنوۆھەیێيطؤثآإأكضصةظذ]+$/i, + "vi-VN": /^[0-9A-ZÀÁẠẢÃÂẦẤẬẨẪĂẰẮẶẲẴĐÈÉẸẺẼÊỀẾỆỂỄÌÍỊỈĨÒÓỌỎÕÔỒỐỘỔỖƠỜỚỢỞỠÙÚỤỦŨƯỪỨỰỬỮỲÝỴỶỸ]+$/i, + ar: /^[٠١٢٣٤٥٦٧٨٩0-9ءآأؤإئابةتثجحخدذرزسشصضطظعغفقكلمنهوىيًٌٍَُِّْٰ]+$/, + he: /^[0-9א-ת]+$/, + fa: /^['0-9آاءأؤئبپتثجچحخدذرزژسشصضطظعغفقکگلمنوهةی۱۲۳۴۵۶۷۸۹۰']+$/i, + bn: /^['ঀঁংঃঅআইঈউঊঋঌএঐওঔকখগঘঙচছজঝঞটঠডঢণতথদধনপফবভমযরলশষসহ়ঽািীুূৃৄেৈোৌ্ৎৗড়ঢ়য়ৠৡৢৣ০১২৩৪৫৬৭৮৯ৰৱ৲৳৴৵৶৷৸৹৺৻']+$/, + "hi-IN": /^[\u0900-\u0963]+[\u0966-\u097F]*$/i, + "si-LK": /^[0-9\u0D80-\u0DFF]+$/ + }) + , n1 = (t.alphanumeric = r1, + { + "en-US": ".", + ar: "٫" + }) + , o1 = (t.decimal = n1, + ["AU", "GB", "HK", "IN", "NZ", "ZA", "ZM"]); + t.englishLocales = o1; + for (var i1, a1 = 0; a1 < o1.length; a1++) + t1[i1 = "en-".concat(o1[a1])] = t1["en-US"], + r1[i1] = r1["en-US"], + n1[i1] = n1["en-US"]; + var s1 = ["AE", "BH", "DZ", "EG", "IQ", "JO", "KW", "LB", "LY", "MA", "QM", "QA", "SA", "SD", "SY", "TN", "YE"]; + t.arabicLocales = s1; + for (var u1, c1 = 0; c1 < s1.length; c1++) + t1[u1 = "ar-".concat(s1[c1])] = t1.ar, + r1[u1] = r1.ar, + n1[u1] = n1.ar; + var l1 = ["IR", "AF"]; + t.farsiLocales = l1; + for (var d1, f1 = 0; f1 < l1.length; f1++) + r1[d1 = "fa-".concat(l1[f1])] = r1.fa, + n1[d1] = n1.ar; + var p1 = ["BD", "IN"]; + t.bengaliLocales = p1; + for (var h1, m1 = 0; m1 < p1.length; m1++) + t1[h1 = "bn-".concat(p1[m1])] = t1.bn, + r1[h1] = r1.bn, + n1[h1] = n1["en-US"]; + var g1 = ["ar-EG", "ar-LB", "ar-LY"] + , v1 = (t.dotDecimal = g1, + ["bg-BG", "cs-CZ", "da-DK", "de-DE", "el-GR", "en-ZM", "es-ES", "fr-CA", "fr-FR", "id-ID", "it-IT", "ku-IQ", "hi-IN", "hu-HU", "nb-NO", "nn-NO", "nl-NL", "pl-PL", "pt-PT", "ru-RU", "si-LK", "sl-SI", "sr-RS@latin", "sr-RS", "sv-SE", "tr-TR", "uk-UA", "vi-VN"]); + t.commaDecimal = v1; + for (var b1 = 0; b1 < g1.length; b1++) + n1[g1[b1]] = n1["en-US"]; + for (var y1 = 0; y1 < v1.length; y1++) + n1[v1[y1]] = ","; + t1["fr-CA"] = t1["fr-FR"], + r1["fr-CA"] = r1["fr-FR"], + t1["pt-BR"] = t1["pt-PT"], + r1["pt-BR"] = r1["pt-PT"], + n1["pt-BR"] = n1["pt-PT"], + t1["pl-Pl"] = t1["pl-PL"], + r1["pl-Pl"] = r1["pl-PL"], + n1["pl-Pl"] = n1["pl-PL"], + t1["fa-AF"] = t1.fa, + Object.defineProperty(ia, "__esModule", { + value: !0 + }), + ia.default = function(e, t) { + (0, + k1.default)(e), + t = t || {}; + var r, n = new RegExp("^(?:[-+])?(?:[0-9]+)?(?:\\".concat(t.locale ? E1.decimal[t.locale] : ".", "[0-9]*)?(?:[eE][\\+\\-]?(?:[0-9]+))?$")); + return "" !== e && "." !== e && "," !== e && "-" !== e && "+" !== e && (r = parseFloat(e.replace(",", ".")), + n.test(e)) && (!t.hasOwnProperty("min") || r >= t.min) && (!t.hasOwnProperty("max") || r <= t.max) && (!t.hasOwnProperty("lt") || r < t.lt) && (!t.hasOwnProperty("gt") || r > t.gt) + } + , + ia.locales = void 0; + var _1, w1, A1, x1, k1 = (x = y.exports) && x.__esModule ? x : { + default: x + }, E1 = t, Si = Object.keys(E1.decimal), Po = (ia.locales = Si, + ca = (ml = hl).exports, + Object.defineProperty(ca, "__esModule", { + value: !0 + }), + ca.default = function(e) { + return (0, + _1.default)(e) ? parseFloat(e) : NaN + } + , + _1 = ia && ia.__esModule ? ia : { + default: ia + }, + ml.exports = ca.default, + ml.exports.default = ca.default, + { + exports: {} + }), pl = (b = (E = Po).exports, + Object.defineProperty(b, "__esModule", { + value: !0 + }), + b.default = function(e, t) { + return (0, + w1.default)(e), + parseInt(e, t || 10) + } + , + w1 = (aa = y.exports) && aa.__esModule ? aa : { + default: aa + }, + E.exports = b.default, + E.exports.default = b.default, + { + exports: {} + }), Wc = (a = (i = pl).exports, + Object.defineProperty(a, "__esModule", { + value: !0 + }), + a.default = function(e, t) { + return (0, + A1.default)(e), + t ? "1" === e || /^true$/i.test(e) : "0" !== e && !/^false$/i.test(e) && "" !== e + } + , + A1 = (v = y.exports) && v.__esModule ? v : { + default: v + }, + i.exports = a.default, + i.exports.default = a.default, + { + exports: {} + }), zn = (el = (po = Wc).exports, + Object.defineProperty(el, "__esModule", { + value: !0 + }), + el.default = function(e, t) { + return (0, + x1.default)(e), + e === t + } + , + x1 = (R = y.exports) && R.__esModule ? R : { + default: R + }, + po.exports = el.default, + po.exports.default = el.default, + { + exports: {} + }), js = { + exports: {} + }; + function S1(e) { + return (S1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { + return typeof e + } + : function(e) { + return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e + } + )(e) + } + g = (k = js).exports, + Object.defineProperty(g, "__esModule", { + value: !0 + }), + g.default = function(e) { + return "object" === S1(e) && null !== e ? e = "function" == typeof e.toString ? e.toString() : "[object Object]" : (null == e || isNaN(e) && !e.length) && (e = ""), + String(e) + } + , + k.exports = g.default, + k.exports.default = g.default; + var R1, O1, D1, T1, A = { + exports: {} + }; + function I1(e) { + return e && e.__esModule ? e : { + default: e + } + } + w = (S = A).exports, + Object.defineProperty(w, "__esModule", { + value: !0 + }), + w.default = function() { + var e, t = 0 < arguments.length && void 0 !== arguments[0] ? arguments[0] : {}, r = 1 < arguments.length ? arguments[1] : void 0; + for (e in r) + void 0 === t[e] && (t[e] = r[e]); + return t + } + , + S.exports = w.default, + S.exports.default = w.default, + Ro = (_ = zn).exports, + Object.defineProperty(Ro, "__esModule", { + value: !0 + }), + Ro.default = function(e, t, r) { + return (0, + R1.default)(e), + (r = (0, + D1.default)(r, T1)).ignoreCase ? e.toLowerCase().split((0, + O1.default)(t).toLowerCase()).length > r.minOccurrences : e.split((0, + O1.default)(t)).length > r.minOccurrences + } + , + R1 = I1(y.exports), + O1 = I1(js.exports), + D1 = I1(A.exports), + T1 = { + ignoreCase: !1, + minOccurrences: 1 + }, + _.exports = Ro.default, + _.exports.default = Ro.default; + var M1, C1, tl = { + exports: {} + }, ca = (Si = (x = tl).exports, + Object.defineProperty(Si, "__esModule", { + value: !0 + }), + Si.default = function(e, t, r) { + return (0, + M1.default)(e), + "[object RegExp]" !== Object.prototype.toString.call(t) && (t = new RegExp(t,r)), + !!e.match(t) + } + , + M1 = (ml = y.exports) && ml.__esModule ? ml : { + default: ml + }, + x.exports = Si.default, + x.exports.default = Si.default, + { + exports: {} + }), aa = { + exports: {} + }; + function L1(e) { + return (L1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { + return typeof e + } + : function(e) { + return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e + } + )(e) + } + b = (E = aa).exports, + Object.defineProperty(b, "__esModule", { + value: !0 + }), + b.default = function(e, t) { + (0, + C1.default)(e), + t = "object" === L1(t) ? (r = t.min || 0, + t.max) : (r = t, + arguments[2]); + var r, e = encodeURI(e).split(/%..|./).length - 1; + return r <= e && (void 0 === t || e <= t) + } + , + C1 = (v = y.exports) && v.__esModule ? v : { + default: v + }, + E.exports = b.default, + E.exports.default = b.default; + var P1, j1, U1, i = { + exports: {} + }; + function $1(e) { + return e && e.__esModule ? e : { + default: e + } + } + R = (a = i).exports, + Object.defineProperty(R, "__esModule", { + value: !0 + }), + R.default = function(e, t) { + (0, + P1.default)(e), + (t = (0, + j1.default)(t, U1)).allow_trailing_dot && "." === e[e.length - 1] && (e = e.substring(0, e.length - 1)); + var e = (e = !0 === t.allow_wildcard && 0 === e.indexOf("*.") ? e.substring(2) : e).split(".") + , r = e[e.length - 1]; + if (t.require_tld) { + if (e.length < 2) + return !1; + if (!t.allow_numeric_tld && !/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(r)) + return !1; + if (/\s/.test(r)) + return !1 + } + return !(!t.allow_numeric_tld && /^\d+$/.test(r)) && e.every(function(e) { + return !(63 < e.length && !t.ignore_max_length || !/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e) || /[\uff01-\uff5e]/.test(e) || /^-|-$/.test(e) || !t.allow_underscores && /_/.test(e)) + }) + } + , + P1 = $1(y.exports), + j1 = $1(A.exports), + U1 = { + require_tld: !0, + allow_underscores: !1, + allow_trailing_dot: !1, + allow_numeric_tld: !1, + allow_wildcard: !1, + ignore_max_length: !1 + }, + a.exports = R.default, + a.exports.default = R.default; + var B1, N1, F1, G1, z1, Z1, H1, K1, q1, V1, W1, Y1, J1, X1, Q1, ey, po = { + exports: {} + }; + function ty(e) { + return e && e.__esModule ? e : { + default: e + } + } + k = (el = po).exports, + Object.defineProperty(k, "__esModule", { + value: !0 + }), + k.default = function e(t) { + var r = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : ""; + return (0, + X1.default)(t), + (r = String(r)) ? "4" === r ? Q1.test(t) : "6" === r && ey.test(t) : e(t, 4) || e(t, 6) + } + , + X1 = (g = y.exports) && g.__esModule ? g : { + default: g + }, + g = "(".concat(g = "(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])", "[.]){3}").concat(g), + Q1 = new RegExp("^".concat(g, "$")), + S = "(?:[0-9a-fA-F]{1,4})", + ey = new RegExp("^(" + "(?:".concat(S, ":){7}(?:").concat(S, "|:)|") + "(?:".concat(S, ":){6}(?:").concat(g, "|:").concat(S, "|:)|") + "(?:".concat(S, ":){5}(?::").concat(g, "|(:").concat(S, "){1,2}|:)|") + "(?:".concat(S, ":){4}(?:(:").concat(S, "){0,1}:").concat(g, "|(:").concat(S, "){1,3}|:)|") + "(?:".concat(S, ":){3}(?:(:").concat(S, "){0,2}:").concat(g, "|(:").concat(S, "){1,4}|:)|") + "(?:".concat(S, ":){2}(?:(:").concat(S, "){0,3}:").concat(g, "|(:").concat(S, "){1,5}|:)|") + "(?:".concat(S, ":){1}(?:(:").concat(S, "){0,4}:").concat(g, "|(:").concat(S, "){1,6}|:)|") + "(?::((?::".concat(S, "){0,5}:").concat(g, "|(?::").concat(S, "){1,7}|:))") + ")(%[0-9a-zA-Z-.:]{1,})?$"), + el.exports = k.default, + el.exports.default = k.default, + _ = (w = ca).exports, + Object.defineProperty(_, "__esModule", { + value: !0 + }), + _.default = function(e, t) { + if ((0, + B1.default)(e), + (t = (0, + N1.default)(t, Z1)).require_display_name || t.allow_display_name) { + var r = e.match(H1); + if (r) { + r = r[1]; + if (e = e.replace(r, "").replace(/(^<|>$)/g, ""), + !function(e) { + var t = e.replace(/^"(.+)"$/, "$1"); + if (t.trim()) { + if (/[\.";<>]/.test(t)) { + if (t === e) + return; + if (t.split('"').length !== t.split('\\"').length) + return + } + return 1 + } + }(r = r.endsWith(" ") ? r.slice(0, -1) : r)) + return !1 + } else if (t.require_display_name) + return !1 + } + if (!t.ignore_max_length && e.length > J1) + return !1; + var r = e.split("@") + , e = r.pop() + , n = e.toLowerCase(); + if (t.host_blacklist.includes(n)) + return !1; + if (0 < t.host_whitelist.length && !t.host_whitelist.includes(n)) + return !1; + r = r.join("@"); + if (t.domain_specific_validation && ("gmail.com" === n || "googlemail.com" === n)) { + n = (r = r.toLowerCase()).split("+")[0]; + if (!(0, + F1.default)(n.replace(/\./g, ""), { + min: 6, + max: 30 + })) + return !1; + for (var o = n.split("."), i = 0; i < o.length; i++) + if (!q1.test(o[i])) + return !1 + } + if (!(!1 !== t.ignore_max_length || (0, + F1.default)(r, { + max: 64 + }) && (0, + F1.default)(e, { + max: 254 + }))) + return !1; + if (!(0, + G1.default)(e, { + require_tld: t.require_tld, + ignore_max_length: t.ignore_max_length + })) { + if (!t.allow_ip_domain) + return !1; + if (!(0, + z1.default)(e)) { + if (!e.startsWith("[") || !e.endsWith("]")) + return !1; + n = e.slice(1, -1); + if (0 === n.length || !(0, + z1.default)(n)) + return !1 + } + } + if ('"' === r[0]) + return r = r.slice(1, r.length - 1), + (t.allow_utf8_local_part ? Y1 : V1).test(r); + for (var a = t.allow_utf8_local_part ? W1 : K1, s = r.split("."), u = 0; u < s.length; u++) + if (!a.test(s[u])) + return !1; + return !t.blacklisted_chars || -1 === r.search(new RegExp("[".concat(t.blacklisted_chars, "]+"),"g")) + } + , + B1 = ty(y.exports), + N1 = ty(A.exports), + F1 = ty(aa.exports), + G1 = ty(i.exports), + z1 = ty(po.exports), + Z1 = { + allow_display_name: !1, + require_display_name: !1, + allow_utf8_local_part: !0, + require_tld: !0, + blacklisted_chars: "", + ignore_max_length: !1, + host_blacklist: [], + host_whitelist: [] + }, + H1 = /^([^\x00-\x1F\x7F-\x9F\cX]+) e.length) && (t = e.length); + for (var r = 0, n = new Array(t); r < t; r++) + n[r] = e[r]; + return n + } + function ly(e, t) { + for (var r = 0; r < t.length; r++) { + var n = t[r]; + if (e === n || function e(t) { + return "[object RegExp]" === Object.prototype.toString.call(t) + }(n) && n.test(e)) + return !0 + } + return !1 + } + x = (ml = Ro).exports, + Object.defineProperty(x, "__esModule", { + value: !0 + }), + x.default = function(e, t) { + if ((0, + ry.default)(e), + !e || /[\s<>]/.test(e)) + return !1; + if (0 === e.indexOf("mailto:")) + return !1; + if ((t = (0, + iy.default)(t, ay)).validate_length && 2083 <= e.length) + return !1; + if (!t.allow_fragments && e.includes("#")) + return !1; + if (!t.allow_query_components && (e.includes("?") || e.includes("&"))) + return !1; + var r, n, o = e.split("#"); + if (1 < (o = (e = (o = (e = o.shift()).split("?")).shift()).split("://")).length) { + if (r = o.shift().toLowerCase(), + t.require_valid_protocol && -1 === t.protocols.indexOf(r)) + return !1 + } else { + if (t.require_protocol) + return !1; + if ("//" === e.slice(0, 2)) { + if (!t.allow_protocol_relative_urls) + return !1; + o[0] = e.slice(2) + } + } + if ("" === (e = o.join("://"))) + return !1; + if ("" === (e = (o = e.split("/")).shift()) && !t.require_host) + return !0; + if (1 < (o = e.split("@")).length) { + if (t.disallow_auth) + return !1; + if ("" === o[0]) + return !1; + if (0 <= (r = o.shift()).indexOf(":") && 2 < r.split(":").length) + return !1; + var e = function(e) { + if (Array.isArray(e)) + return e + }(e = r.split(":")) || function(e) { + if ("undefined" != typeof Symbol && Symbol.iterator in Object(e)) { + var t = [] + , r = !0 + , n = !1 + , o = void 0; + try { + for (var i, a = e[Symbol.iterator](); !(r = (i = a.next()).done) && (t.push(i.value), + 2 !== t.length); r = !0) + ; + } catch (e) { + n = !0, + o = e + } finally { + try { + r || null == a.return || a.return() + } finally { + if (n) + throw o + } + } + return t + } + }(e) || function(e) { + var t; + if (e) + return "string" == typeof e ? cy(e, 2) : "Map" === (t = "Object" === (t = Object.prototype.toString.call(e).slice(8, -1)) && e.constructor ? e.constructor.name : t) || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? cy(e, 2) : void 0 + }(e) || 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 = e[0] + , e = e[1]; + if ("" === i && "" === e) + return !1 + } + var a, i = null, e = null, s = (a = o.join("@")).match(sy); + if (s ? (n = "", + e = s[1], + i = s[2] || null) : (n = (o = a.split(":")).shift(), + o.length && (i = o.join(":"))), + null !== i && 0 < i.length) { + if (s = parseInt(i, 10), + !/^[0-9]+$/.test(i) || s <= 0 || 65535 < s) + return !1 + } else if (t.require_port) + return !1; + return t.host_whitelist ? ly(n, t.host_whitelist) : "" === n && !t.require_host || !!((0, + oy.default)(n) || (0, + ny.default)(n, t) || e && (0, + oy.default)(e, 6)) && (n = n || e, + !t.host_blacklist || !ly(n, t.host_blacklist)) + } + , + ry = uy(y.exports), + ny = uy(i.exports), + oy = uy(po.exports), + iy = uy(A.exports), + ay = { + protocols: ["http", "https", "ftp"], + require_tld: !0, + require_protocol: !1, + require_host: !0, + require_port: !1, + require_valid_protocol: !0, + allow_underscores: !1, + allow_trailing_dot: !1, + allow_protocol_relative_urls: !1, + allow_fragments: !0, + allow_query_components: !0, + validate_length: !0 + }, + sy = /^\[([^\]]+)\](?::([0-9]+))?$/, + ml.exports = x.default, + ml.exports.default = x.default; + var dy, fy, py, hy, my, gy, vy, by, yy, _y, wy, Ay, Si = { + exports: {} + }, a = (E = (v = Si).exports, + Object.defineProperty(E, "__esModule", { + value: !0 + }), + E.default = function e(t, r) { + return (0, + dy.default)(t), + null != r && r.eui && (r.eui = String(r.eui)), + null != r && r.no_colons || null != r && r.no_separators ? "48" === r.eui ? py.test(t) : "64" !== r.eui && py.test(t) || gy.test(t) : "48" === (null == r ? void 0 : r.eui) ? fy.test(t) || hy.test(t) : "64" === (null == r ? void 0 : r.eui) ? my.test(t) || vy.test(t) : e(t, { + eui: "48" + }) || e(t, { + eui: "64" + }) + } + , + dy = (b = y.exports) && b.__esModule ? b : { + default: b + }, + fy = /^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){4}([0-9a-fA-F]{2})$/, + py = /^([0-9a-fA-F]){12}$/, + hy = /^([0-9a-fA-F]{4}\.){2}([0-9a-fA-F]{4})$/, + my = /^(?:[0-9a-fA-F]{2}([-:\s]))([0-9a-fA-F]{2}\1){6}([0-9a-fA-F]{2})$/, + gy = /^([0-9a-fA-F]){16}$/, + vy = /^([0-9a-fA-F]{4}\.){3}([0-9a-fA-F]{4})$/, + v.exports = E.default, + v.exports.default = E.default, + { + exports: {} + }); + function xy(e) { + return e && e.__esModule ? e : { + default: e + } + } + g = (R = a).exports, + Object.defineProperty(g, "__esModule", { + value: !0 + }), + g.default = function(e) { + var t = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : "" + , r = ((0, + by.default)(e), + e.split("/")); + if (2 !== r.length) + return !1; + if (!_y.test(r[1])) + return !1; + if (1 < r[1].length && r[1].startsWith("0")) + return !1; + if (!(0, + yy.default)(r[0], t)) + return !1; + var n = null; + switch (String(t)) { + case "4": + n = wy; + break; + case "6": + n = Ay; + break; + default: + n = (0, + yy.default)(r[0], "6") ? Ay : wy + } + return r[1] <= n && 0 <= r[1] + } + , + by = xy(y.exports), + yy = xy(po.exports), + _y = /^\d{1,3}$/, + wy = 32, + Ay = 128, + R.exports = g.default, + R.exports.default = g.default; + var ky, Ey, S = { + exports: {} + }; + function Sy(e, t) { + var r; + if (e) + return "string" == typeof e ? Ry(e, t) : "Map" === (r = "Object" === (r = Object.prototype.toString.call(e).slice(8, -1)) && e.constructor ? e.constructor.name : r) || "Set" === r ? Array.from(e) : "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? Ry(e, t) : void 0 + } + function Ry(e, t) { + (null == t || t > e.length) && (t = e.length); + for (var r = 0, n = new Array(t); r < t; r++) + n[r] = e[r]; + return n + } + k = (el = S).exports, + Object.defineProperty(k, "__esModule", { + value: !0 + }), + k.default = function(t, r) { + if (r = "string" == typeof r ? (0, + ky.default)({ + format: r + }, Ey) : (0, + ky.default)(r, Ey), + "string" == typeof t && (n = r.format, + /(^(y{4}|y{2})[.\/-](m{1,2})[.\/-](d{1,2})$)|(^(m{1,2})[.\/-](d{1,2})[.\/-]((y{4}|y{2})$))|(^(d{1,2})[.\/-](m{1,2})[.\/-]((y{4}|y{2})$))/gi.test(n))) { + var e, n = r.delimiters.find(function(e) { + return -1 !== r.format.indexOf(e) + }), o = r.strictMode ? n : r.delimiters.find(function(e) { + return -1 !== t.indexOf(e) + }), i = {}, a = function(e) { + var t, r, n; + if ("undefined" == typeof Symbol || null == e[Symbol.iterator]) { + if (Array.isArray(e) || (t = Sy(e))) + return t && (e = t), + r = 0, + { + s: n = function() {} + , + n: function() { + return r >= e.length ? { + done: !0 + } : { + done: !1, + value: e[r++] + } + }, + e: function(e) { + throw e + }, + f: n + }; + throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.") + } + var o, i = !0, a = !1; + return { + s: function() { + t = e[Symbol.iterator]() + }, + n: function() { + var e = t.next(); + return i = e.done, + e + }, + e: function(e) { + a = !0, + o = e + }, + f: function() { + try { + i || null == t.return || t.return() + } finally { + if (a) + throw o + } + } + } + }(function(e, t) { + for (var r = [], n = Math.min(e.length, t.length), o = 0; o < n; o++) + r.push([e[o], t[o]]); + return r + }(t.split(o), r.format.toLowerCase().split(n))); + try { + for (a.s(); !(e = a.n()).done; ) { + var s = function e(t, r) { + return function(e) { + if (Array.isArray(e)) + return e + }(t) || function(e, t) { + if ("undefined" != typeof Symbol && Symbol.iterator in Object(e)) { + var r = [] + , n = !0 + , o = !1 + , i = void 0; + try { + for (var a, s = e[Symbol.iterator](); !(n = (a = s.next()).done) && (r.push(a.value), + !t || r.length !== t); n = !0) + ; + } catch (e) { + o = !0, + i = e + } finally { + try { + n || null == s.return || s.return() + } finally { + if (o) + throw i + } + } + return r + } + }(t, r) || Sy(t, r) || 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.") + }() + }(e.value, 2) + , u = s[0] + , c = s[1]; + if (u.length !== c.length) + return !1; + i[c.charAt(0)] = u + } + } catch (t) { + a.e(t) + } finally { + a.f() + } + return new Date("".concat(i.m, "/").concat(i.d, "/").concat(i.y)).getDate() === +i.d + } + var n; + return !r.strictMode && "[object Date]" === Object.prototype.toString.call(t) && isFinite(t) + } + , + ky = (w = A.exports) && w.__esModule ? w : { + default: w + }, + Ey = { + format: "YYYY/MM/DD", + delimiters: ["/", "-"], + strictMode: !1 + }, + el.exports = k.default, + el.exports.default = k.default; + var Oy, Dy, Ty, Iy, My, Cy, Ly, Py, jy, Uy, $y, By, Ny, Fy, Gy, zy, Zy, Hy, Ky, qy, Vy, Wy, Yy, Jy, Xy, Qy, e_, t_, r_, n_, o_, i_, _ = { + exports: {} + }, v = (x = (ml = _).exports, + Object.defineProperty(x, "__esModule", { + value: !0 + }), + x.default = function(e, t) { + return t = (0, + Oy.default)(t, Dy), + "string" == typeof e && Ty[t.hourFormat][t.mode].test(e) + } + , + Oy = (b = A.exports) && b.__esModule ? b : { + default: b + }, + Dy = { + hourFormat: "hour24", + mode: "default" + }, + Ty = { + hour24: { + default: /^([01]?[0-9]|2[0-3]):([0-5][0-9])$/, + withSeconds: /^([01]?[0-9]|2[0-3]):([0-5][0-9]):([0-5][0-9])$/ + }, + hour12: { + default: /^(0?[1-9]|1[0-2]):([0-5][0-9]) (A|P)M$/, + withSeconds: /^(0?[1-9]|1[0-2]):([0-5][0-9]):([0-5][0-9]) (A|P)M$/ + } + }, + ml.exports = x.default, + ml.exports.default = x.default, + { + exports: {} + }), w = (R = (E = v).exports, + Object.defineProperty(R, "__esModule", { + value: !0 + }), + R.default = function(e) { + var t = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : My; + return (0, + Iy.default)(e), + t.loose ? Ly.includes(e.toLowerCase()) : Cy.includes(e) + } + , + Iy = (g = y.exports) && g.__esModule ? g : { + default: g + }, + My = { + loose: !1 + }, + Cy = ["true", "false", "1", "0"], + Ly = [].concat(Cy, ["yes", "no"]), + E.exports = R.default, + E.exports.default = R.default, + { + exports: {} + }), ml = (k = (el = w).exports, + Object.defineProperty(k, "__esModule", { + value: !0 + }), + k.default = function(e) { + return (0, + Py.default)(e), + "en_US_POSIX" === e || "ca_ES_VALENCIA" === e || jy.test(e) + } + , + Py = (b = y.exports) && b.__esModule ? b : { + default: b + }, + jy = /^[A-Za-z]{2,4}([_-]([A-Za-z]{4}|[\d]{3}))?([_-]([A-Za-z]{2}|[\d]{3}))?$/, + el.exports = k.default, + el.exports.default = k.default, + {}), a_ = (Object.defineProperty(ml, "__esModule", { + value: !0 + }), + ml.default = function(e) { + var t = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : "en-US" + , r = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : {} + , r = ((0, + a_.default)(e), + r.ignore); + if (r) + if (r instanceof RegExp) + e = e.replace(r, ""); + else { + if ("string" != typeof r) + throw new Error("ignore should be instance of a String or RegExp"); + e = e.replace(new RegExp("[".concat(r.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g, "\\$&"), "]"),"g"), "") + } + if (t in s_.alpha) + return s_.alpha[t].test(e); + throw new Error("Invalid locale '".concat(t, "'")) + } + , + ml.locales = void 0, + (x = y.exports) && x.__esModule ? x : { + default: x + }), s_ = t, g = Object.keys(s_.alpha), E = (ml.locales = g, + {}), u_ = (Object.defineProperty(E, "__esModule", { + value: !0 + }), + E.default = function(e) { + var t = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : "en-US" + , r = 2 < arguments.length && void 0 !== arguments[2] ? arguments[2] : {} + , r = ((0, + u_.default)(e), + r.ignore); + if (r) + if (r instanceof RegExp) + e = e.replace(r, ""); + else { + if ("string" != typeof r) + throw new Error("ignore should be instance of a String or RegExp"); + e = e.replace(new RegExp("[".concat(r.replace(/[-[\]{}()*+?.,\\^$|#\\s]/g, "\\$&"), "]"),"g"), "") + } + if (t in c_.alphanumeric) + return c_.alphanumeric[t].test(e); + throw new Error("Invalid locale '".concat(t, "'")) + } + , + E.locales = void 0, + (R = y.exports) && R.__esModule ? R : { + default: R + }), c_ = t, b = Object.keys(c_.alphanumeric), el = (E.locales = b, + { + exports: {} + }), R = (x = (k = el).exports, + Object.defineProperty(x, "__esModule", { + value: !0 + }), + x.default = function(e, t) { + return (0, + Uy.default)(e), + (t && t.no_symbols ? By : new RegExp("^[+-]?([0-9]*[".concat((t || {}).locale ? $y.decimal[t.locale] : ".", "])?[0-9]+$"))).test(e) + } + , + Uy = (g = y.exports) && g.__esModule ? g : { + default: g + }, + $y = t, + By = /^[0-9]+$/, + k.exports = x.default, + k.exports.default = x.default, + { + exports: {} + }), x = (g = (b = R).exports, + Object.defineProperty(g, "__esModule", { + value: !0 + }), + g.default = function(e, t) { + (0, + Ny.default)(e); + e = e.replace(/\s/g, "").toUpperCase(); + return t.toUpperCase()in Fy && Fy[t].test(e) + } + , + Ny = (k = y.exports) && k.__esModule ? k : { + default: k + }, + Fy = { + AM: /^[A-Z]{2}\d{7}$/, + AR: /^[A-Z]{3}\d{6}$/, + AT: /^[A-Z]\d{7}$/, + AU: /^[A-Z]\d{7}$/, + AZ: /^[A-Z]{2,3}\d{7,8}$/, + BE: /^[A-Z]{2}\d{6}$/, + BG: /^\d{9}$/, + BR: /^[A-Z]{2}\d{6}$/, + BY: /^[A-Z]{2}\d{7}$/, + CA: /^[A-Z]{2}\d{6}$/, + CH: /^[A-Z]\d{7}$/, + CN: /^G\d{8}$|^E(?![IO])[A-Z0-9]\d{7}$/, + CY: /^[A-Z](\d{6}|\d{8})$/, + CZ: /^\d{8}$/, + DE: /^[CFGHJKLMNPRTVWXYZ0-9]{9}$/, + DK: /^\d{9}$/, + DZ: /^\d{9}$/, + EE: /^([A-Z]\d{7}|[A-Z]{2}\d{7})$/, + ES: /^[A-Z0-9]{2}([A-Z0-9]?)\d{6}$/, + FI: /^[A-Z]{2}\d{7}$/, + FR: /^\d{2}[A-Z]{2}\d{5}$/, + GB: /^\d{9}$/, + GR: /^[A-Z]{2}\d{7}$/, + HR: /^\d{9}$/, + HU: /^[A-Z]{2}(\d{6}|\d{7})$/, + IE: /^[A-Z0-9]{2}\d{7}$/, + IN: /^[A-Z]{1}-?\d{7}$/, + ID: /^[A-C]\d{7}$/, + IR: /^[A-Z]\d{8}$/, + IS: /^(A)\d{7}$/, + IT: /^[A-Z0-9]{2}\d{7}$/, + JM: /^[Aa]\d{7}$/, + JP: /^[A-Z]{2}\d{7}$/, + KR: /^[MS]\d{8}$/, + KZ: /^[a-zA-Z]\d{7}$/, + LI: /^[a-zA-Z]\d{5}$/, + LT: /^[A-Z0-9]{8}$/, + LU: /^[A-Z0-9]{8}$/, + LV: /^[A-Z0-9]{2}\d{7}$/, + LY: /^[A-Z0-9]{8}$/, + MT: /^\d{7}$/, + MZ: /^([A-Z]{2}\d{7})|(\d{2}[A-Z]{2}\d{5})$/, + MY: /^[AHK]\d{8}$/, + MX: /^\d{10,11}$/, + NL: /^[A-Z]{2}[A-Z0-9]{6}\d$/, + NZ: /^([Ll]([Aa]|[Dd]|[Ff]|[Hh])|[Ee]([Aa]|[Pp])|[Nn])\d{6}$/, + PH: /^([A-Z](\d{6}|\d{7}[A-Z]))|([A-Z]{2}(\d{6}|\d{7}))$/, + PK: /^[A-Z]{2}\d{7}$/, + PL: /^[A-Z]{2}\d{7}$/, + PT: /^[A-Z]\d{6}$/, + RO: /^\d{8,9}$/, + RU: /^\d{9}$/, + SE: /^\d{8}$/, + SL: /^(P)[A-Z]\d{7}$/, + SK: /^[0-9A-Z]\d{7}$/, + TH: /^[A-Z]{1,2}\d{6,7}$/, + TR: /^[A-Z]\d{8}$/, + UA: /^[A-Z]{2}\d{6}$/, + US: /^\d{9}$/ + }, + b.exports = g.default, + b.exports.default = g.default, + { + exports: {} + }), k = { + exports: {} + }, g = (g = (b = k).exports, + Object.defineProperty(g, "__esModule", { + value: !0 + }), + g.default = function(e, t) { + (0, + zy.default)(e); + var r = (t = t || {}).hasOwnProperty("allow_leading_zeroes") && !t.allow_leading_zeroes ? Zy : Hy + , n = !t.hasOwnProperty("min") || e >= t.min + , o = !t.hasOwnProperty("max") || e <= t.max + , i = !t.hasOwnProperty("lt") || e < t.lt + , t = !t.hasOwnProperty("gt") || e > t.gt; + return r.test(e) && n && o && i && t + } + , + zy = (b_ = y.exports) && b_.__esModule ? b_ : { + default: b_ + }, + Zy = /^(?:[-+]?(?:0|[1-9][0-9]*))$/, + Hy = /^[-+]?[0-9]+$/, + b.exports = g.default, + b.exports.default = g.default, + b = (b_ = x).exports, + Object.defineProperty(b, "__esModule", { + value: !0 + }), + b.default = function(e) { + return (0, + Gy.default)(e, { + min: 0, + max: 65535 + }) + } + , + Gy = (g = k.exports) && g.__esModule ? g : { + default: g + }, + b_.exports = b.default, + b_.exports.default = b.default, + { + exports: {} + }), l_ = (b = (b_ = g).exports, + Object.defineProperty(b, "__esModule", { + value: !0 + }), + b.default = function(e) { + return (0, + Ky.default)(e), + e === e.toLowerCase() + } + , + Ky = (l_ = y.exports) && l_.__esModule ? l_ : { + default: l_ + }, + b_.exports = b.default, + b_.exports.default = b.default, + { + exports: {} + }), d_ = (b = (b_ = l_).exports, + Object.defineProperty(b, "__esModule", { + value: !0 + }), + b.default = function(e) { + return (0, + qy.default)(e), + e === e.toUpperCase() + } + , + qy = (d_ = y.exports) && d_.__esModule ? d_ : { + default: d_ + }, + b_.exports = b.default, + b_.exports.default = b.default, + { + exports: {} + }), f_ = (b = (b_ = d_).exports, + Object.defineProperty(b, "__esModule", { + value: !0 + }), + b.default = function(e, t) { + (0, + Vy.default)(e); + var r = Wy; + if (!(r = (t = t || {}).allow_hyphens ? Yy : r).test(e)) + return !1; + e = e.replace(/-/g, ""); + for (var n = 0, o = 2, i = 0; i < 14; i++) { + var a = e.substring(14 - i - 1, 14 - i) + , a = parseInt(a, 10) * o; + n += 10 <= a ? a % 10 + 1 : a, + 1 === o ? o += 1 : --o + } + return (10 - n % 10) % 10 === parseInt(e.substring(14, 15), 10) + } + , + Vy = (f_ = y.exports) && f_.__esModule ? f_ : { + default: f_ + }, + Wy = /^[0-9]{15}$/, + Yy = /^\d{2}-\d{6}-\d{6}-\d{1}$/, + b_.exports = b.default, + b_.exports.default = b.default, + { + exports: {} + }), p_ = (b = (b_ = f_).exports, + Object.defineProperty(b, "__esModule", { + value: !0 + }), + b.default = function(e) { + return (0, + Jy.default)(e), + Xy.test(e) + } + , + Jy = (p_ = y.exports) && p_.__esModule ? p_ : { + default: p_ + }, + Xy = /^[\x00-\x7F]+$/, + b_.exports = b.default, + b_.exports.default = b.default, + {}), h_ = (Object.defineProperty(p_, "__esModule", { + value: !0 + }), + p_.default = function(e) { + return (0, + h_.default)(e), + m_.test(e) + } + , + p_.fullWidth = void 0, + (b_ = y.exports) && b_.__esModule ? b_ : { + default: b_ + }), m_ = /[^\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/, b = (p_.fullWidth = m_, + {}), g_ = (Object.defineProperty(b, "__esModule", { + value: !0 + }), + b.default = function(e) { + return (0, + g_.default)(e), + v_.test(e) + } + , + b.halfWidth = void 0, + (b_ = y.exports) && b_.__esModule ? b_ : { + default: b_ + }), v_ = /[\u0020-\u007E\uFF61-\uFF9F\uFFA0-\uFFDC\uFFE8-\uFFEE0-9a-zA-Z]/, b_ = (b.halfWidth = v_, + { + exports: {} + }), y_ = (M_ = (w_ = b_).exports, + Object.defineProperty(M_, "__esModule", { + value: !0 + }), + M_.default = function(e) { + return (0, + Qy.default)(e), + e_.fullWidth.test(e) && t_.halfWidth.test(e) + } + , + Qy = (y_ = y.exports) && y_.__esModule ? y_ : { + default: y_ + }, + e_ = p_, + t_ = b, + w_.exports = M_.default, + w_.exports.default = M_.default, + { + exports: {} + }), __ = (M_ = (w_ = y_).exports, + Object.defineProperty(M_, "__esModule", { + value: !0 + }), + M_.default = function(e) { + return (0, + r_.default)(e), + n_.test(e) + } + , + r_ = (__ = y.exports) && __.__esModule ? __ : { + default: __ + }, + n_ = /[^\x00-\x7F]/, + w_.exports = M_.default, + w_.exports.default = M_.default, + { + exports: {} + }), w_ = { + exports: {} + }; + function A_(e) { + return e && e.__esModule ? e : { + default: e + } + } + O = (M_ = w_).exports, + Object.defineProperty(O, "__esModule", { + value: !0 + }), + O.default = function(e, t) { + e = e.join(""); + return new RegExp(e,t) + } + , + M_.exports = O.default, + M_.exports.default = O.default, + O = (M_ = __).exports, + Object.defineProperty(O, "__esModule", { + value: !0 + }), + O.default = function(e) { + return (0, + o_.default)(e), + i_.test(e) + } + , + o_ = A_(y.exports), + i_ = (0, + A_(w_.exports).default)(["^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)", "(?:-((?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-z-][0-9a-z-]*))*))", "?(?:\\+([0-9a-z-]+(?:\\.[0-9a-z-]+)*))?$"], "i"), + M_.exports = O.default, + M_.exports.default = O.default; + var x_, k_, E_, S_, R_, O_, D_, T_, w_ = { + exports: {} + }, I_ = (O = (M_ = w_).exports, + Object.defineProperty(O, "__esModule", { + value: !0 + }), + O.default = function(e) { + return (0, + x_.default)(e), + k_.test(e) + } + , + x_ = (I_ = y.exports) && I_.__esModule ? I_ : { + default: I_ + }, + k_ = /[\uD800-\uDBFF][\uDC00-\uDFFF]/, + M_.exports = O.default, + M_.exports.default = O.default, + { + exports: {} + }), M_ = { + exports: {} + }, O = M_, C_ = M_.exports; + function L_(e) { + return e && e.__esModule ? e : { + default: e + } + } + Object.defineProperty(C_, "__esModule", { + value: !0 + }), + C_.default = void 0, + C_.default = function(e, t) { + return e.some(function(e) { + return t === e + }) + } + , + O.exports = C_.default, + O.exports.default = C_.default, + C_ = (O = I_).exports, + Object.defineProperty(C_, "__esModule", { + value: !0 + }), + C_.default = function(e, t) { + if ((0, + S_.default)(e), + (t = (0, + E_.default)(t, D_)).locale in O_.decimal) + return !(0, + R_.default)(T_, e.replace(/ /g, "")) && (r = t, + new RegExp("^[-+]?([0-9]+)?(\\".concat(O_.decimal[r.locale], "[0-9]{").concat(r.decimal_digits, "})").concat(r.force_decimal ? "" : "?", "$")).test(e)); + var r; + throw new Error("Invalid locale '".concat(t.locale, "'")) + } + , + E_ = L_(A.exports), + S_ = L_(y.exports), + R_ = L_(M_.exports), + O_ = t, + D_ = { + force_decimal: !1, + decimal_digits: "1,", + locale: "en-US" + }, + T_ = ["", "-", "+"], + O.exports = C_.default, + O.exports.default = C_.default; + var P_, j_, U_, $_, B_, N_, M_ = { + exports: {} + }, C_ = (O = (t = M_).exports, + Object.defineProperty(O, "__esModule", { + value: !0 + }), + O.default = function(e) { + return (0, + P_.default)(e), + j_.test(e) + } + , + P_ = (C_ = y.exports) && C_.__esModule ? C_ : { + default: C_ + }, + j_ = /^(0x|0h)?[0-9A-F]+$/i, + t.exports = O.default, + t.exports.default = O.default, + { + exports: {} + }), F_ = (O = (t = C_).exports, + Object.defineProperty(O, "__esModule", { + value: !0 + }), + O.default = function(e) { + return (0, + U_.default)(e), + $_.test(e) + } + , + U_ = (F_ = y.exports) && F_.__esModule ? F_ : { + default: F_ + }, + $_ = /^(0o)?[0-7]+$/i, + t.exports = O.default, + t.exports.default = O.default, + { + exports: {} + }); + function G_(e) { + return e && e.__esModule ? e : { + default: e + } + } + O = (t = F_).exports, + Object.defineProperty(O, "__esModule", { + value: !0 + }), + O.default = function(e, t) { + return (0, + B_.default)(e), + (0, + N_.default)(e) % parseInt(t, 10) == 0 + } + , + B_ = G_(y.exports), + N_ = G_(hl.exports), + t.exports = O.default, + t.exports.default = O.default; + var z_, Z_, H_, K_, q_, V_, W_, Y_, J_, X_, Q_, ew, tw, rw, nw, ow, iw, aw, sw, uw, cw, lw, dw, fw, pw, hw, t = { + exports: {} + }, mw = (ww = (O = t).exports, + Object.defineProperty(ww, "__esModule", { + value: !0 + }), + ww.default = function(e) { + return (0, + z_.default)(e), + Z_.test(e) + } + , + z_ = (mw = y.exports) && mw.__esModule ? mw : { + default: mw + }, + Z_ = /^#?([0-9A-F]{3}|[0-9A-F]{4}|[0-9A-F]{6}|[0-9A-F]{8})$/i, + O.exports = ww.default, + O.exports.default = ww.default, + { + exports: {} + }), gw = (ww = (O = mw).exports, + Object.defineProperty(ww, "__esModule", { + value: !0 + }), + ww.default = function(e) { + var t = !(1 < arguments.length && void 0 !== arguments[1]) || arguments[1]; + return (0, + H_.default)(e), + t ? K_.test(e) || q_.test(e) || V_.test(e) || W_.test(e) : K_.test(e) || q_.test(e) + } + , + H_ = (gw = y.exports) && gw.__esModule ? gw : { + default: gw + }, + K_ = /^rgb\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){2}([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])\)$/, + q_ = /^rgba\((([0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5]),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/, + V_ = /^rgb\((([0-9]%|[1-9][0-9]%|100%),){2}([0-9]%|[1-9][0-9]%|100%)\)$/, + W_ = /^rgba\((([0-9]%|[1-9][0-9]%|100%),){3}(0?\.\d|1(\.0)?|0(\.0)?)\)$/, + O.exports = ww.default, + O.exports.default = ww.default, + { + exports: {} + }), vw = (ww = (O = gw).exports, + Object.defineProperty(ww, "__esModule", { + value: !0 + }), + ww.default = function(e) { + (0, + Y_.default)(e); + e = e.replace(/\s+/g, " ").replace(/\s?(hsla?\(|\)|,)\s?/gi, "$1"); + return (-1 !== e.indexOf(",") ? J_ : X_).test(e) + } + , + Y_ = (vw = y.exports) && vw.__esModule ? vw : { + default: vw + }, + J_ = /^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(,(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}(,((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?))?\)$/i, + X_ = /^hsla?\(((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?))(deg|grad|rad|turn)?(\s(\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%){2}\s?(\/\s((\+|\-)?([0-9]+(\.[0-9]+)?(e(\+|\-)?[0-9]+)?|\.[0-9]+(e(\+|\-)?[0-9]+)?)%?)\s?)?\)$/i, + O.exports = ww.default, + O.exports.default = ww.default, + { + exports: {} + }), bw = (ww = (O = vw).exports, + Object.defineProperty(ww, "__esModule", { + value: !0 + }), + ww.default = function(e) { + return (0, + Q_.default)(e), + ew.test(e) + } + , + Q_ = (bw = y.exports) && bw.__esModule ? bw : { + default: bw + }, + ew = /^[A-Z]{2}[0-9A-Z]{3}\d{2}\d{5}$/, + O.exports = ww.default, + O.exports.default = ww.default, + {}), yw = (Object.defineProperty(bw, "__esModule", { + value: !0 + }), + bw.default = function(e) { + return (0, + yw.default)(e), + t = e.replace(/[\s\-]+/gi, "").toUpperCase(), + (r = t.slice(0, 2).toUpperCase())in _w && _w[r].test(t) && 1 === ((r = e.replace(/[^A-Z0-9]+/gi, "").toUpperCase()).slice(4) + r.slice(0, 4)).replace(/[A-Z]/g, function(e) { + return e.charCodeAt(0) - 55 + }).match(/\d{1,7}/g).reduce(function(e, t) { + return Number(e + t) % 97 + }, ""); + var t, r + } + , + bw.locales = void 0, + (O = y.exports) && O.__esModule ? O : { + default: O + }), _w = { + AD: /^(AD[0-9]{2})\d{8}[A-Z0-9]{12}$/, + AE: /^(AE[0-9]{2})\d{3}\d{16}$/, + AL: /^(AL[0-9]{2})\d{8}[A-Z0-9]{16}$/, + AT: /^(AT[0-9]{2})\d{16}$/, + AZ: /^(AZ[0-9]{2})[A-Z0-9]{4}\d{20}$/, + BA: /^(BA[0-9]{2})\d{16}$/, + BE: /^(BE[0-9]{2})\d{12}$/, + BG: /^(BG[0-9]{2})[A-Z]{4}\d{6}[A-Z0-9]{8}$/, + BH: /^(BH[0-9]{2})[A-Z]{4}[A-Z0-9]{14}$/, + BR: /^(BR[0-9]{2})\d{23}[A-Z]{1}[A-Z0-9]{1}$/, + BY: /^(BY[0-9]{2})[A-Z0-9]{4}\d{20}$/, + CH: /^(CH[0-9]{2})\d{5}[A-Z0-9]{12}$/, + CR: /^(CR[0-9]{2})\d{18}$/, + CY: /^(CY[0-9]{2})\d{8}[A-Z0-9]{16}$/, + CZ: /^(CZ[0-9]{2})\d{20}$/, + DE: /^(DE[0-9]{2})\d{18}$/, + DK: /^(DK[0-9]{2})\d{14}$/, + DO: /^(DO[0-9]{2})[A-Z]{4}\d{20}$/, + EE: /^(EE[0-9]{2})\d{16}$/, + EG: /^(EG[0-9]{2})\d{25}$/, + ES: /^(ES[0-9]{2})\d{20}$/, + FI: /^(FI[0-9]{2})\d{14}$/, + FO: /^(FO[0-9]{2})\d{14}$/, + FR: /^(FR[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/, + GB: /^(GB[0-9]{2})[A-Z]{4}\d{14}$/, + GE: /^(GE[0-9]{2})[A-Z0-9]{2}\d{16}$/, + GI: /^(GI[0-9]{2})[A-Z]{4}[A-Z0-9]{15}$/, + GL: /^(GL[0-9]{2})\d{14}$/, + GR: /^(GR[0-9]{2})\d{7}[A-Z0-9]{16}$/, + GT: /^(GT[0-9]{2})[A-Z0-9]{4}[A-Z0-9]{20}$/, + HR: /^(HR[0-9]{2})\d{17}$/, + HU: /^(HU[0-9]{2})\d{24}$/, + IE: /^(IE[0-9]{2})[A-Z0-9]{4}\d{14}$/, + IL: /^(IL[0-9]{2})\d{19}$/, + IQ: /^(IQ[0-9]{2})[A-Z]{4}\d{15}$/, + IR: /^(IR[0-9]{2})0\d{2}0\d{18}$/, + IS: /^(IS[0-9]{2})\d{22}$/, + IT: /^(IT[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/, + JO: /^(JO[0-9]{2})[A-Z]{4}\d{22}$/, + KW: /^(KW[0-9]{2})[A-Z]{4}[A-Z0-9]{22}$/, + KZ: /^(KZ[0-9]{2})\d{3}[A-Z0-9]{13}$/, + LB: /^(LB[0-9]{2})\d{4}[A-Z0-9]{20}$/, + LC: /^(LC[0-9]{2})[A-Z]{4}[A-Z0-9]{24}$/, + LI: /^(LI[0-9]{2})\d{5}[A-Z0-9]{12}$/, + LT: /^(LT[0-9]{2})\d{16}$/, + LU: /^(LU[0-9]{2})\d{3}[A-Z0-9]{13}$/, + LV: /^(LV[0-9]{2})[A-Z]{4}[A-Z0-9]{13}$/, + MC: /^(MC[0-9]{2})\d{10}[A-Z0-9]{11}\d{2}$/, + MD: /^(MD[0-9]{2})[A-Z0-9]{20}$/, + ME: /^(ME[0-9]{2})\d{18}$/, + MK: /^(MK[0-9]{2})\d{3}[A-Z0-9]{10}\d{2}$/, + MR: /^(MR[0-9]{2})\d{23}$/, + MT: /^(MT[0-9]{2})[A-Z]{4}\d{5}[A-Z0-9]{18}$/, + MU: /^(MU[0-9]{2})[A-Z]{4}\d{19}[A-Z]{3}$/, + MZ: /^(MZ[0-9]{2})\d{21}$/, + NL: /^(NL[0-9]{2})[A-Z]{4}\d{10}$/, + NO: /^(NO[0-9]{2})\d{11}$/, + PK: /^(PK[0-9]{2})[A-Z0-9]{4}\d{16}$/, + PL: /^(PL[0-9]{2})\d{24}$/, + PS: /^(PS[0-9]{2})[A-Z0-9]{4}\d{21}$/, + PT: /^(PT[0-9]{2})\d{21}$/, + QA: /^(QA[0-9]{2})[A-Z]{4}[A-Z0-9]{21}$/, + RO: /^(RO[0-9]{2})[A-Z]{4}[A-Z0-9]{16}$/, + RS: /^(RS[0-9]{2})\d{18}$/, + SA: /^(SA[0-9]{2})\d{2}[A-Z0-9]{18}$/, + SC: /^(SC[0-9]{2})[A-Z]{4}\d{20}[A-Z]{3}$/, + SE: /^(SE[0-9]{2})\d{20}$/, + SI: /^(SI[0-9]{2})\d{15}$/, + SK: /^(SK[0-9]{2})\d{20}$/, + SM: /^(SM[0-9]{2})[A-Z]{1}\d{10}[A-Z0-9]{12}$/, + SV: /^(SV[0-9]{2})[A-Z0-9]{4}\d{20}$/, + TL: /^(TL[0-9]{2})\d{19}$/, + TN: /^(TN[0-9]{2})\d{20}$/, + TR: /^(TR[0-9]{2})\d{5}[A-Z0-9]{17}$/, + UA: /^(UA[0-9]{2})\d{6}[A-Z0-9]{19}$/, + VA: /^(VA[0-9]{2})\d{18}$/, + VG: /^(VG[0-9]{2})[A-Z0-9]{4}\d{16}$/, + XK: /^(XK[0-9]{2})\d{16}$/ + }, ww = Object.keys(_w), O = (bw.locales = ww, + { + exports: {} + }), ww = {}, Aw = (Object.defineProperty(ww, "__esModule", { + value: !0 + }), + ww.default = function(e) { + return (0, + Aw.default)(e), + xw.has(e.toUpperCase()) + } + , + ww.CountryCodes = void 0, + (Rw = y.exports) && Rw.__esModule ? Rw : { + default: Rw + }), xw = new Set(["AD", "AE", "AF", "AG", "AI", "AL", "AM", "AO", "AQ", "AR", "AS", "AT", "AU", "AW", "AX", "AZ", "BA", "BB", "BD", "BE", "BF", "BG", "BH", "BI", "BJ", "BL", "BM", "BN", "BO", "BQ", "BR", "BS", "BT", "BV", "BW", "BY", "BZ", "CA", "CC", "CD", "CF", "CG", "CH", "CI", "CK", "CL", "CM", "CN", "CO", "CR", "CU", "CV", "CW", "CX", "CY", "CZ", "DE", "DJ", "DK", "DM", "DO", "DZ", "EC", "EE", "EG", "EH", "ER", "ES", "ET", "FI", "FJ", "FK", "FM", "FO", "FR", "GA", "GB", "GD", "GE", "GF", "GG", "GH", "GI", "GL", "GM", "GN", "GP", "GQ", "GR", "GS", "GT", "GU", "GW", "GY", "HK", "HM", "HN", "HR", "HT", "HU", "ID", "IE", "IL", "IM", "IN", "IO", "IQ", "IR", "IS", "IT", "JE", "JM", "JO", "JP", "KE", "KG", "KH", "KI", "KM", "KN", "KP", "KR", "KW", "KY", "KZ", "LA", "LB", "LC", "LI", "LK", "LR", "LS", "LT", "LU", "LV", "LY", "MA", "MC", "MD", "ME", "MF", "MG", "MH", "MK", "ML", "MM", "MN", "MO", "MP", "MQ", "MR", "MS", "MT", "MU", "MV", "MW", "MX", "MY", "MZ", "NA", "NC", "NE", "NF", "NG", "NI", "NL", "NO", "NP", "NR", "NU", "NZ", "OM", "PA", "PE", "PF", "PG", "PH", "PK", "PL", "PM", "PN", "PR", "PS", "PT", "PW", "PY", "QA", "RE", "RO", "RS", "RU", "RW", "SA", "SB", "SC", "SD", "SE", "SG", "SH", "SI", "SJ", "SK", "SL", "SM", "SN", "SO", "SR", "SS", "ST", "SV", "SX", "SY", "SZ", "TC", "TD", "TF", "TG", "TH", "TJ", "TK", "TL", "TM", "TN", "TO", "TR", "TT", "TV", "TW", "TZ", "UA", "UG", "UM", "US", "UY", "UZ", "VA", "VC", "VE", "VG", "VI", "VN", "VU", "WF", "WS", "YE", "YT", "ZA", "ZM", "ZW"]), kw = (ww.CountryCodes = xw, + Cw = (Rw = O).exports, + Object.defineProperty(Cw, "__esModule", { + value: !0 + }), + Cw.default = function(e) { + (0, + tw.default)(e); + var t = e.slice(4, 6).toUpperCase(); + return !(!rw.CountryCodes.has(t) && "XK" !== t) && nw.test(e) + } + , + tw = (kw = y.exports) && kw.__esModule ? kw : { + default: kw + }, + rw = ww, + nw = /^[A-Za-z]{6}[A-Za-z0-9]{2}([A-Za-z0-9]{3})?$/, + Rw.exports = Cw.default, + Rw.exports.default = Cw.default, + { + exports: {} + }), Ew = (Cw = (Rw = kw).exports, + Object.defineProperty(Cw, "__esModule", { + value: !0 + }), + Cw.default = function(e) { + return (0, + ow.default)(e), + iw.test(e) + } + , + ow = (Ew = y.exports) && Ew.__esModule ? Ew : { + default: Ew + }, + iw = /^[a-f0-9]{32}$/, + Rw.exports = Cw.default, + Rw.exports.default = Cw.default, + { + exports: {} + }), Sw = (Cw = (Rw = Ew).exports, + Object.defineProperty(Cw, "__esModule", { + value: !0 + }), + Cw.default = function(e, t) { + return (0, + aw.default)(e), + new RegExp("^[a-fA-F0-9]{".concat(sw[t], "}$")).test(e) + } + , + aw = (Sw = y.exports) && Sw.__esModule ? Sw : { + default: Sw + }, + sw = { + md5: 32, + md4: 32, + sha1: 40, + sha256: 64, + sha384: 96, + sha512: 128, + ripemd128: 32, + ripemd160: 40, + tiger128: 32, + tiger160: 40, + tiger192: 48, + crc32: 8, + crc32b: 8 + }, + Rw.exports = Cw.default, + Rw.exports.default = Cw.default, + { + exports: {} + }), Rw = { + exports: {} + }; + function Ow(e) { + return e && e.__esModule ? e : { + default: e + } + } + function Dw(e) { + return e && e.__esModule ? e : { + default: e + } + } + Bw = (Cw = Rw).exports, + Object.defineProperty(Bw, "__esModule", { + value: !0 + }), + Bw.default = function(e, t) { + (0, + lw.default)(e), + t = (0, + dw.default)(t, hw); + var r = e.length; + return t.urlSafe ? pw.test(e) : r % 4 == 0 && !fw.test(e) && (-1 === (t = e.indexOf("=")) || t === r - 1 || t === r - 2 && "=" === e[r - 1]) + } + , + lw = Dw(y.exports), + dw = Dw(A.exports), + fw = /[^A-Z0-9+\/=]/i, + hw = { + urlSafe: !(pw = /^[A-Z0-9_\-]*$/i) + }, + Cw.exports = Bw.default, + Cw.exports.default = Bw.default, + Bw = (Cw = Sw).exports, + Object.defineProperty(Bw, "__esModule", { + value: !0 + }), + Bw.default = function(e) { + (0, + uw.default)(e); + var e = e.split(".") + , t = e.length; + return !(3 < t || t < 2) && e.reduce(function(e, t) { + return e && (0, + cw.default)(t, { + urlSafe: !0 + }) + }, !0) + } + , + uw = Ow(y.exports), + cw = Ow(Rw.exports), + Cw.exports = Bw.default, + Cw.exports.default = Bw.default; + var Tw, Iw, Mw, Cw = { + exports: {} + }; + function Lw(e) { + return e && e.__esModule ? e : { + default: e + } + } + function Pw(e) { + return (Pw = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { + return typeof e + } + : function(e) { + return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e + } + )(e) + } + Gw = (Bw = Cw).exports, + Object.defineProperty(Gw, "__esModule", { + value: !0 + }), + Gw.default = function(e, t) { + (0, + Tw.default)(e); + try { + t = (0, + Iw.default)(t, Mw); + var r = [] + , n = (t.allow_primitives && (r = [null, !1, !0]), + JSON.parse(e)); + return r.includes(n) || !!n && "object" === Pw(n) + } catch (e) {} + return !1 + } + , + Tw = Lw(y.exports), + Iw = Lw(A.exports), + Mw = { + allow_primitives: !1 + }, + Bw.exports = Gw.default, + Bw.exports.default = Gw.default; + var jw, Uw, $w, Bw = { + exports: {} + }; + function Nw(e) { + return e && e.__esModule ? e : { + default: e + } + } + eA = (Gw = Bw).exports, + Object.defineProperty(eA, "__esModule", { + value: !0 + }), + eA.default = function(e, t) { + return (0, + jw.default)(e), + 0 === ((t = (0, + Uw.default)(t, $w)).ignore_whitespace ? e.trim() : e).length + } + , + jw = Nw(y.exports), + Uw = Nw(A.exports), + $w = { + ignore_whitespace: !1 + }, + Gw.exports = eA.default, + Gw.exports.default = eA.default; + var Fw, Gw = { + exports: {} + }; + function zw(e) { + return (zw = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { + return typeof e + } + : function(e) { + return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e + } + )(e) + } + iA = (eA = Gw).exports, + Object.defineProperty(iA, "__esModule", { + value: !0 + }), + iA.default = function(e, t) { + (0, + Fw.default)(e), + t = "object" === zw(t) ? (r = t.min || 0, + t.max) : (r = t || 0, + arguments[2]); + var r, n = e.match(/(\uFE0F|\uFE0E)/g) || [], o = e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g) || [], e = e.length - n.length - o.length; + return r <= e && (void 0 === t || e <= t) + } + , + Fw = (Vw = y.exports) && Vw.__esModule ? Vw : { + default: Vw + }, + eA.exports = iA.default, + eA.exports.default = iA.default; + var Zw, Hw, Kw, qw, Vw = { + exports: {} + }, Ww = (iA = (eA = Vw).exports, + Object.defineProperty(iA, "__esModule", { + value: !0 + }), + iA.default = function(e, t) { + (0, + Zw.default)(e); + t = Hw[[void 0, null].includes(t) ? "all" : t]; + return !!t && t.test(e) + } + , + Zw = (Ww = y.exports) && Ww.__esModule ? Ww : { + default: Ww + }, + Hw = { + 1: /^[0-9A-F]{8}-[0-9A-F]{4}-1[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i, + 2: /^[0-9A-F]{8}-[0-9A-F]{4}-2[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i, + 3: /^[0-9A-F]{8}-[0-9A-F]{4}-3[0-9A-F]{3}-[0-9A-F]{4}-[0-9A-F]{12}$/i, + 4: /^[0-9A-F]{8}-[0-9A-F]{4}-4[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i, + 5: /^[0-9A-F]{8}-[0-9A-F]{4}-5[0-9A-F]{3}-[89AB][0-9A-F]{3}-[0-9A-F]{12}$/i, + all: /^[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}$/i + }, + eA.exports = iA.default, + eA.exports.default = iA.default, + { + exports: {} + }); + function Yw(e) { + return e && e.__esModule ? e : { + default: e + } + } + iA = (eA = Ww).exports, + Object.defineProperty(iA, "__esModule", { + value: !0 + }), + iA.default = function(e) { + return (0, + Kw.default)(e), + (0, + qw.default)(e) && 24 === e.length + } + , + Kw = Yw(y.exports), + qw = Yw(M_.exports), + eA.exports = iA.default, + eA.exports.default = iA.default; + var Jw, Xw, Qw, eA = { + exports: {} + }, tA = (bA = (iA = eA).exports, + Object.defineProperty(bA, "__esModule", { + value: !0 + }), + bA.default = function(e, t) { + t = (null == t ? void 0 : t.comparisonDate) || t || Date().toString(), + t = (0, + Jw.default)(t), + e = (0, + Jw.default)(e); + return !!(e && t && t < e) + } + , + Jw = (tA = bl.exports) && tA.__esModule ? tA : { + default: tA + }, + iA.exports = bA.default, + iA.exports.default = bA.default, + { + exports: {} + }); + function rA(e) { + return e && e.__esModule ? e : { + default: e + } + } + bA = (iA = tA).exports, + Object.defineProperty(bA, "__esModule", { + value: !0 + }), + bA.default = function(e) { + var t = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : String(new Date) + , t = ((0, + Xw.default)(e), + (0, + Qw.default)(t)) + , e = (0, + Qw.default)(e); + return !!(e && t && e < t) + } + , + Xw = rA(y.exports), + Qw = rA(bl.exports), + iA.exports = bA.default, + iA.exports.default = bA.default; + var nA, oA, iA = { + exports: {} + }; + function aA(e) { + return e && e.__esModule ? e : { + default: e + } + } + function sA(e) { + return (sA = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { + return typeof e + } + : function(e) { + return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e + } + )(e) + } + BA = (bA = iA).exports, + Object.defineProperty(BA, "__esModule", { + value: !0 + }), + BA.default = function(e, t) { + if ((0, + nA.default)(e), + "[object Array]" !== Object.prototype.toString.call(t)) + return "object" === sA(t) ? t.hasOwnProperty(e) : !(!t || "function" != typeof t.indexOf) && 0 <= t.indexOf(e); + var r = []; + for (var n in t) + !{}.hasOwnProperty.call(t, n) || (r[n] = (0, + oA.default)(t[n])); + return 0 <= r.indexOf(e) + } + , + nA = aA(y.exports), + oA = aA(js.exports), + bA.exports = BA.default, + bA.exports.default = BA.default; + var uA, cA, lA, dA, fA, js = { + exports: {} + }, pA = (BA = (bA = js).exports, + Object.defineProperty(BA, "__esModule", { + value: !0 + }), + BA.default = function(e) { + (0, + uA.default)(e); + for (var t, r, n = e.replace(/[- ]+/g, ""), o = 0, i = n.length - 1; 0 <= i; i--) + t = n.substring(i, i + 1), + t = parseInt(t, 10), + o += r && 10 <= (t *= 2) ? t % 10 + 1 : t, + r = !r; + return !(o % 10 != 0 || !n) + } + , + uA = (pA = y.exports) && pA.__esModule ? pA : { + default: pA + }, + bA.exports = BA.default, + bA.exports.default = BA.default, + { + exports: {} + }); + function hA(e) { + return e && e.__esModule ? e : { + default: e + } + } + BA = (bA = pA).exports, + Object.defineProperty(BA, "__esModule", { + value: !0 + }), + BA.default = function(e) { + var t = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : {} + , t = ((0, + cA.default)(e), + t.provider) + , r = e.replace(/[- ]+/g, ""); + if (t && t.toLowerCase()in dA) { + if (!dA[t.toLowerCase()].test(r)) + return !1 + } else { + if (t && !(t.toLowerCase()in dA)) + throw new Error("".concat(t, " is not a valid credit card provider.")); + if (!fA.test(r)) + return !1 + } + return (0, + lA.default)(e) + } + , + cA = hA(y.exports), + lA = hA(js.exports), + dA = { + amex: /^3[47][0-9]{13}$/, + dinersclub: /^3(?:0[0-5]|[68][0-9])[0-9]{11}$/, + discover: /^6(?:011|5[0-9][0-9])[0-9]{12,15}$/, + jcb: /^(?:2131|1800|35\d{3})\d{11}$/, + mastercard: /^5[1-5][0-9]{2}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}$/, + unionpay: /^(6[27][0-9]{14}|^(81[0-9]{14,17}))$/, + visa: /^(?:4[0-9]{12})(?:[0-9]{3,6})?$/ + }, + fA = /^(?:4[0-9]{12}(?:[0-9]{3,6})?|5[1-5][0-9]{14}|(222[1-9]|22[3-9][0-9]|2[3-6][0-9]{2}|27[01][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12,15}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11}|6[27][0-9]{14}|^(81[0-9]{14,17}))$/, + bA.exports = BA.default, + bA.exports.default = BA.default; + var mA, gA, vA, bA = { + exports: {} + }; + function yA(e) { + return e && e.__esModule ? e : { + default: e + } + } + ZA = (BA = bA).exports, + Object.defineProperty(ZA, "__esModule", { + value: !0 + }), + ZA.default = function(e, t) { + if ((0, + mA.default)(e), + t in vA) + return vA[t](e); + if ("any" !== t) + throw new Error("Invalid locale '".concat(t, "'")); + for (var r in vA) + if (vA.hasOwnProperty(r) && (0, + vA[r])(e)) + return !0; + return !1 + } + , + mA = yA(y.exports), + gA = yA(k.exports), + vA = { + PL: function(e) { + (0, + mA.default)(e); + var n = { + 1: 1, + 2: 3, + 3: 7, + 4: 9, + 5: 1, + 6: 3, + 7: 7, + 8: 9, + 9: 1, + 10: 3, + 11: 0 + }; + if (null != e && 11 === e.length && (0, + gA.default)(e, { + allow_leading_zeroes: !0 + })) { + var t = e.split("").slice(0, -1).reduce(function(e, t, r) { + return e + Number(t) * n[r + 1] + }, 0) % 10 + , e = Number(e.charAt(e.length - 1)); + if (0 == t && 0 === e || e === 10 - t) + return !0 + } + return !1 + }, + ES: function(e) { + (0, + mA.default)(e); + var t, r = { + X: 0, + Y: 1, + Z: 2 + }, e = e.trim().toUpperCase(); + return !!/^[0-9X-Z][0-9]{7}[TRWAGMYFPDXBNJZSQVHLCKE]$/.test(e) && (t = e.slice(0, -1).replace(/[X,Y,Z]/g, function(e) { + return r[e] + }), + e.endsWith(["T", "R", "W", "A", "G", "M", "Y", "F", "P", "D", "X", "B", "N", "J", "Z", "S", "Q", "V", "H", "L", "C", "K", "E"][t % 23])) + }, + FI: function(e) { + return (0, + mA.default)(e), + 11 === e.length && !!e.match(/^\d{6}[\-A\+]\d{3}[0-9ABCDEFHJKLMNPRSTUVWXY]{1}$/) && "0123456789ABCDEFHJKLMNPRSTUVWXY"[(1e3 * parseInt(e.slice(0, 6), 10) + parseInt(e.slice(7, 10), 10)) % 31] === e.slice(10, 11) + }, + IN: function(e) { + var r, n = [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9], [1, 2, 3, 4, 0, 6, 7, 8, 9, 5], [2, 3, 4, 0, 1, 7, 8, 9, 5, 6], [3, 4, 0, 1, 2, 8, 9, 5, 6, 7], [4, 0, 1, 2, 3, 9, 5, 6, 7, 8], [5, 9, 8, 7, 6, 0, 4, 3, 2, 1], [6, 5, 9, 8, 7, 1, 0, 4, 3, 2], [7, 6, 5, 9, 8, 2, 1, 0, 4, 3], [8, 7, 6, 5, 9, 3, 2, 1, 0, 4], [9, 8, 7, 6, 5, 4, 3, 2, 1, 0]], o = [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9], [1, 5, 7, 6, 2, 8, 3, 0, 9, 4], [5, 8, 0, 3, 7, 9, 6, 1, 4, 2], [8, 9, 1, 6, 0, 4, 3, 5, 2, 7], [9, 4, 5, 3, 1, 2, 6, 8, 7, 0], [4, 2, 8, 6, 5, 7, 3, 9, 0, 1], [2, 7, 9, 3, 8, 0, 6, 4, 1, 5], [7, 0, 4, 6, 9, 1, 3, 2, 5, 8]], e = e.trim(); + return !!/^[1-9]\d{3}\s?\d{4}\s?\d{4}$/.test(e) && (r = 0, + e.replace(/\s/g, "").split("").map(Number).reverse().forEach(function(e, t) { + r = n[r][o[t % 8][e]] + }), + 0 === r) + }, + IR: function(e) { + if (!e.match(/^\d{10}$/)) + return !1; + if (e = "0000".concat(e).slice(e.length - 6), + 0 === parseInt(e.slice(3, 9), 10)) + return !1; + for (var t = parseInt(e.slice(9, 10), 10), r = 0, n = 0; n < 9; n++) + r += parseInt(e.slice(n, n + 1), 10) * (10 - n); + return (r %= 11) < 2 && t === r || 2 <= r && t === 11 - r + }, + IT: function(e) { + return 9 === e.length && "CA00000AA" !== e && -1 < e.search(/C[A-Z][0-9]{5}[A-Z]{2}/i) + }, + NO: function(e) { + var t, r, e = e.trim(); + return !isNaN(Number(e)) && 11 === e.length && "00000000000" !== e && (t = (11 - (3 * (e = e.split("").map(Number))[0] + 7 * e[1] + 6 * e[2] + +e[3] + 8 * e[4] + 9 * e[5] + 4 * e[6] + 5 * e[7] + 2 * e[8]) % 11) % 11, + r = (11 - (5 * e[0] + 4 * e[1] + 3 * e[2] + 2 * e[3] + 7 * e[4] + 6 * e[5] + 5 * e[6] + 4 * e[7] + 3 * e[8] + 2 * t) % 11) % 11, + t === e[9]) && r === e[10] + }, + TH: function(e) { + if (!e.match(/^[1-8]\d{12}$/)) + return !1; + for (var t = 0, r = 0; r < 12; r++) + t += parseInt(e[r], 10) * (13 - r); + return e[12] === ((11 - t % 11) % 10).toString() + }, + LK: function(e) { + return !(10 !== e.length || !/^[1-9]\d{8}[vx]$/i.test(e)) || !(12 !== e.length || !/^[1-9]\d{11}$/i.test(e)) + }, + "he-IL": function(e) { + e = e.trim(); + if (!/^\d{9}$/.test(e)) + return !1; + for (var t, r = e, n = 0, o = 0; o < r.length; o++) + n += 9 < (t = Number(r[o]) * (o % 2 + 1)) ? t - 9 : t; + return n % 10 == 0 + }, + "ar-LY": function(e) { + e = e.trim(); + return !!/^(1|2)\d{11}$/.test(e) + }, + "ar-TN": function(e) { + e = e.trim(); + return !!/^\d{8}$/.test(e) + }, + "zh-CN": function(e) { + function t(e) { + return a.includes(e) + } + function r(e) { + var t = parseInt(e.substring(0, 4), 10) + , r = parseInt(e.substring(4, 6), 10) + , e = parseInt(e.substring(6), 10) + , n = new Date(t,r - 1,e); + return !(n > new Date) && n.getFullYear() === t && n.getMonth() === r - 1 && n.getDate() === e + } + var n, o, i, a = ["11", "12", "13", "14", "15", "21", "22", "23", "31", "32", "33", "34", "35", "36", "37", "41", "42", "43", "44", "45", "46", "50", "51", "52", "53", "54", "61", "62", "63", "64", "65", "71", "81", "82", "91"], s = ["7", "9", "10", "5", "8", "4", "2", "1", "6", "3", "7", "9", "10", "5", "8", "4", "2"], u = ["1", "0", "X", "9", "8", "7", "6", "5", "4", "3", "2"]; + return !!(/^\d{15}|(\d{17}(\d|x|X))$/.test(e = e) && (15 === e.length ? /^[1-9]\d{7}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}$/.test(o = e) && (i = o.substring(0, 2), + t(i)) && (i = "19".concat(o.substring(6, 12)), + r(i)) : /^[1-9]\d{5}[1-9]\d{3}((0[1-9])|(1[0-2]))((0[1-9])|([1-2][0-9])|(3[0-1]))\d{3}(\d|x|X)$/.test(o = e) && (i = o.substring(0, 2), + t(i)) && (i = o.substring(6, 14), + r(i)) && (n = o, + function() { + for (var e = n.substring(0, 17), t = 0, r = 0; r < 17; r++) + t += parseInt(e.charAt(r), 10) * parseInt(s[r], 10); + return u[t % 11] + }() === n.charAt(17).toUpperCase()))) + }, + "zh-HK": function(e) { + var t = /^[0-9]$/; + if (e = (e = e.trim()).toUpperCase(), + !/^[A-Z]{1,2}[0-9]{6}((\([0-9A]\))|(\[[0-9A]\])|([0-9A]))$/.test(e)) + return !1; + 8 === (e = e.replace(/\[|\]|\(|\)/g, "")).length && (e = "3".concat(e)); + for (var r = 0, n = 0; n <= 7; n++) + r += (t.test(e[n]) ? e[n] : (e[n].charCodeAt(0) - 55) % 11) * (9 - n); + return (0 == (r %= 11) ? "0" : 1 === r ? "A" : String(11 - r)) === e[e.length - 1] + }, + "zh-TW": function(e) { + var o = { + A: 10, + B: 11, + C: 12, + D: 13, + E: 14, + F: 15, + G: 16, + H: 17, + I: 34, + J: 18, + K: 19, + L: 20, + M: 21, + N: 22, + O: 35, + P: 23, + Q: 24, + R: 25, + S: 26, + T: 27, + U: 28, + V: 29, + W: 32, + X: 30, + Y: 31, + Z: 33 + } + , e = e.trim().toUpperCase(); + return !!/^[A-Z][0-9]{9}$/.test(e) && Array.from(e).reduce(function(e, t, r) { + var n; + return 0 === r ? (n = o[t]) % 10 * 9 + Math.floor(n / 10) : 9 === r ? (10 - e % 10 - Number(t)) % 10 == 0 : e + Number(t) * (9 - r) + }, 0) + } + }, + BA.exports = ZA.default, + BA.exports.default = ZA.default; + var _A, wA, AA, xA, kA, EA, SA, RA, OA, DA, TA, IA, MA, CA, LA, PA, jA, UA, $A, BA = { + exports: {} + }, NA = (ix = (ZA = BA).exports, + Object.defineProperty(ix, "__esModule", { + value: !0 + }), + ix.default = function(e) { + (0, + _A.default)(e); + var r, t = Number(e.slice(-1)); + return xA.test(e) && t === ((t = 10 - (r = e).slice(0, -1).split("").map(function(e, t) { + return Number(e) * ((e = r.length) === wA || e === AA ? t % 2 == 0 ? 3 : 1 : t % 2 == 0 ? 1 : 3) + }).reduce(function(e, t) { + return e + t + }, 0) % 10) < 10 ? t : 0) + } + , + _A = (NA = y.exports) && NA.__esModule ? NA : { + default: NA + }, + wA = 8, + AA = 14, + xA = /^(\d{8}|\d{13}|\d{14})$/, + ZA.exports = ix.default, + ZA.exports.default = ix.default, + { + exports: {} + }), FA = (ix = (ZA = NA).exports, + Object.defineProperty(ix, "__esModule", { + value: !0 + }), + ix.default = function(e) { + if ((0, + kA.default)(e), + !EA.test(e)) + return !1; + for (var t = !0, r = 0, n = e.length - 2; 0 <= n; n--) + if ("A" <= e[n] && e[n] <= "Z") + for (var o = e[n].charCodeAt(0) - 55, i = 0, a = [o % 10, Math.trunc(o / 10)]; i < a.length; i++) { + var s = a[i]; + r += t ? 5 <= s ? 1 + 2 * (s - 5) : 2 * s : s, + t = !t + } + else { + o = e[n].charCodeAt(0) - "0".charCodeAt(0); + r += t ? 5 <= o ? 1 + 2 * (o - 5) : 2 * o : o, + t = !t + } + var u = 10 * Math.trunc((r + 9) / 10) - r; + return +e[e.length - 1] == u + } + , + kA = (FA = y.exports) && FA.__esModule ? FA : { + default: FA + }, + EA = /^[A-Z]{2}[0-9A-Z]{9}[0-9]$/, + ZA.exports = ix.default, + ZA.exports.default = ix.default, + { + exports: {} + }), GA = (ix = (ZA = FA).exports, + Object.defineProperty(ix, "__esModule", { + value: !0 + }), + ix.default = function e(t, r) { + (0, + SA.default)(t); + var n = String((null == r ? void 0 : r.version) || r); + if (!(null != r && r.version || r)) + return e(t, { + version: 10 + }) || e(t, { + version: 13 + }); + var o = t.replace(/[\s-]+/g, "") + , i = 0; + if ("10" === n) { + if (!RA.test(o)) + return !1; + for (var a = 0; a < n - 1; a++) + i += (a + 1) * o.charAt(a); + if ("X" === o.charAt(9) ? i += 100 : i += 10 * o.charAt(9), + i % 11 == 0) + return !0 + } else if ("13" === n) { + if (!OA.test(o)) + return !1; + for (var s = 0; s < 12; s++) + i += DA[s % 2] * o.charAt(s); + if (o.charAt(12) - (10 - i % 10) % 10 == 0) + return !0 + } + return !1 + } + , + SA = (GA = y.exports) && GA.__esModule ? GA : { + default: GA + }, + RA = /^(?:[0-9]{9}X|[0-9]{10})$/, + OA = /^(?:[0-9]{13})$/, + DA = [1, 3], + ZA.exports = ix.default, + ZA.exports.default = ix.default, + { + exports: {} + }), zA = (ix = (ZA = GA).exports, + Object.defineProperty(ix, "__esModule", { + value: !0 + }), + ix.default = function(e) { + var t = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : {} + , r = ((0, + TA.default)(e), + IA) + , r = t.require_hyphen ? r.replace("?", "") : r; + if (!(r = t.case_sensitive ? new RegExp(r) : new RegExp(r,"i")).test(e)) + return !1; + for (var n = e.replace("-", "").toUpperCase(), o = 0, i = 0; i < n.length; i++) { + var a = n[i]; + o += ("X" === a ? 10 : +a) * (8 - i) + } + return o % 11 == 0 + } + , + TA = (zA = y.exports) && zA.__esModule ? zA : { + default: zA + }, + IA = "^\\d{4}-?\\d{3}[\\dX]$", + ZA.exports = ix.default, + ZA.exports.default = ix.default, + { + exports: {} + }), ZA = {}; + function HA(e) { + return (HA = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { + return typeof e + } + : function(e) { + return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e + } + )(e) + } + function KA() { + var e; + return "function" != typeof WeakMap ? null : (e = new WeakMap, + KA = function() { + return e + } + , + e) + } + function qA(e) { + return e && e.__esModule ? e : { + default: e + } + } + function VA(e, t) { + (null == t || t > e.length) && (t = e.length); + for (var r = 0, n = new Array(t); r < t; r++) + n[r] = e[r]; + return n + } + function WA(e) { + for (var t = !1, r = !1, n = 0; n < 3; n++) + if (!t && /[AEIOU]/.test(e[n])) + t = !0; + else if (!r && t && "X" === e[n]) + r = !0; + else if (0 < n) { + if (t && !r && !/[AEIOU]/.test(e[n])) + return; + if (r && !/X/.test(e[n])) + return + } + return 1 + } + Object.defineProperty(ZA, "__esModule", { + value: !0 + }), + ZA.iso7064Check = function(e) { + for (var t = 10, r = 0; r < e.length - 1; r++) + t = (parseInt(e[r], 10) + t) % 10 == 0 ? 9 : (parseInt(e[r], 10) + t) % 10 * 2 % 11; + return (t = 1 === t ? 0 : 11 - t) === parseInt(e[10], 10) + } + , + ZA.luhnCheck = function(e) { + for (var t, r = 0, n = !1, o = e.length - 1; 0 <= o; o--) + r += n ? 9 < (t = 2 * parseInt(e[o], 10)) ? t.toString().split("").map(function(e) { + return parseInt(e, 10) + }).reduce(function(e, t) { + return e + t + }, 0) : t : parseInt(e[o], 10), + n = !n; + return r % 10 == 0 + } + , + ZA.reverseMultiplyAndSum = function(e, t) { + for (var r = 0, n = 0; n < e.length; n++) + r += e[n] * (t - n); + return r + } + , + ZA.verhoeffCheck = function(e) { + for (var t = [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9], [1, 2, 3, 4, 0, 6, 7, 8, 9, 5], [2, 3, 4, 0, 1, 7, 8, 9, 5, 6], [3, 4, 0, 1, 2, 8, 9, 5, 6, 7], [4, 0, 1, 2, 3, 9, 5, 6, 7, 8], [5, 9, 8, 7, 6, 0, 4, 3, 2, 1], [6, 5, 9, 8, 7, 1, 0, 4, 3, 2], [7, 6, 5, 9, 8, 2, 1, 0, 4, 3], [8, 7, 6, 5, 9, 3, 2, 1, 0, 4], [9, 8, 7, 6, 5, 4, 3, 2, 1, 0]], r = [[0, 1, 2, 3, 4, 5, 6, 7, 8, 9], [1, 5, 7, 6, 2, 8, 3, 0, 9, 4], [5, 8, 0, 3, 7, 9, 6, 1, 4, 2], [8, 9, 1, 6, 0, 4, 3, 5, 2, 7], [9, 4, 5, 3, 1, 2, 6, 8, 7, 0], [4, 2, 8, 6, 5, 7, 3, 9, 0, 1], [2, 7, 9, 3, 8, 0, 6, 4, 1, 5], [7, 0, 4, 6, 9, 1, 3, 2, 5, 8]], n = e.split("").reverse().join(""), o = 0, i = 0; i < n.length; i++) + o = t[o][r[i % 8][parseInt(n[i], 10)]]; + return 0 === o + } + , + ox = (ix = zA).exports, + Object.defineProperty(ox, "__esModule", { + value: !0 + }), + ox.default = function(e) { + var t = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : "en-US" + , e = ((0, + MA.default)(e), + e.slice(0)); + if (t in jA) + return t in $A && (e = e.replace($A[t], "")), + !!jA[t].test(e) && (!(t in UA) || UA[t](e)); + throw new Error("Invalid locale '".concat(t, "'")) + } + , + MA = qA(y.exports), + CA = function(e) { + if (e && e.__esModule) + return e; + if (null === e || "object" !== HA(e) && "function" != typeof e) + return { + default: e + }; + var t = KA(); + if (t && t.has(e)) + return t.get(e); + var r, n, o = {}, i = Object.defineProperty && Object.getOwnPropertyDescriptor; + for (r in e) + Object.prototype.hasOwnProperty.call(e, r) && ((n = i ? Object.getOwnPropertyDescriptor(e, r) : null) && (n.get || n.set) ? Object.defineProperty(o, r, n) : o[r] = e[r]); + return o.default = e, + t && t.set(e, o), + o + }(ZA), + LA = qA(S.exports), + PA = { + andover: ["10", "12"], + atlanta: ["60", "67"], + austin: ["50", "53"], + brookhaven: ["01", "02", "03", "04", "05", "06", "11", "13", "14", "16", "21", "22", "23", "25", "34", "51", "52", "54", "55", "56", "57", "58", "59", "65"], + cincinnati: ["30", "32", "35", "36", "37", "38", "61"], + fresno: ["15", "24"], + internet: ["20", "26", "27", "45", "46", "47"], + kansas: ["40", "44"], + memphis: ["94", "95"], + ogden: ["80", "90"], + philadelphia: ["33", "39", "41", "42", "43", "46", "48", "62", "63", "64", "66", "68", "71", "72", "73", "74", "75", "76", "77", "81", "82", "83", "84", "85", "86", "87", "88", "91", "92", "93", "98", "99"], + sba: ["31"] + }, + (jA = { + "bg-BG": /^\d{10}$/, + "cs-CZ": /^\d{6}\/{0,1}\d{3,4}$/, + "de-AT": /^\d{9}$/, + "de-DE": /^[1-9]\d{10}$/, + "dk-DK": /^\d{6}-{0,1}\d{4}$/, + "el-CY": /^[09]\d{7}[A-Z]$/, + "el-GR": /^([0-4]|[7-9])\d{8}$/, + "en-CA": /^\d{9}$/, + "en-GB": /^\d{10}$|^(?!GB|NK|TN|ZZ)(?![DFIQUV])[A-Z](?![DFIQUVO])[A-Z]\d{6}[ABCD ]$/i, + "en-IE": /^\d{7}[A-W][A-IW]{0,1}$/i, + "en-US": /^\d{2}[- ]{0,1}\d{7}$/, + "es-ES": /^(\d{0,8}|[XYZKLM]\d{7})[A-HJ-NP-TV-Z]$/i, + "et-EE": /^[1-6]\d{6}(00[1-9]|0[1-9][0-9]|[1-6][0-9]{2}|70[0-9]|710)\d$/, + "fi-FI": /^\d{6}[-+A]\d{3}[0-9A-FHJ-NPR-Y]$/i, + "fr-BE": /^\d{11}$/, + "fr-FR": /^[0-3]\d{12}$|^[0-3]\d\s\d{2}(\s\d{3}){3}$/, + "fr-LU": /^\d{13}$/, + "hr-HR": /^\d{11}$/, + "hu-HU": /^8\d{9}$/, + "it-IT": /^[A-Z]{6}[L-NP-V0-9]{2}[A-EHLMPRST][L-NP-V0-9]{2}[A-ILMZ][L-NP-V0-9]{3}[A-Z]$/i, + "lv-LV": /^\d{6}-{0,1}\d{5}$/, + "mt-MT": /^\d{3,7}[APMGLHBZ]$|^([1-8])\1\d{7}$/i, + "nl-NL": /^\d{9}$/, + "pl-PL": /^\d{10,11}$/, + "pt-BR": /(?:^\d{11}$)|(?:^\d{14}$)/, + "pt-PT": /^\d{9}$/, + "ro-RO": /^\d{13}$/, + "sk-SK": /^\d{6}\/{0,1}\d{3,4}$/, + "sl-SI": /^[1-9]\d{7}$/, + "sv-SE": /^(\d{6}[-+]{0,1}\d{4}|(18|19|20)\d{6}[-+]{0,1}\d{4})$/ + })["lb-LU"] = jA["fr-LU"], + jA["lt-LT"] = jA["et-EE"], + jA["nl-BE"] = jA["fr-BE"], + jA["fr-CA"] = jA["en-CA"], + (UA = { + "bg-BG": function(e) { + var t = e.slice(0, 2) + , r = parseInt(e.slice(2, 4), 10) + , t = (40 < r ? (r -= 40, + "20") : 20 < r ? (r -= 20, + "18") : "19").concat(t) + , t = (r < 10 && (r = "0".concat(r)), + "".concat(t, "/").concat(r, "/").concat(e.slice(4, 6))); + if (!(0, + LA.default)(t, "YYYY/MM/DD")) + return !1; + for (var n = e.split("").map(function(e) { + return parseInt(e, 10) + }), o = [2, 4, 8, 5, 10, 9, 7, 3, 6], i = 0, a = 0; a < o.length; a++) + i += n[a] * o[a]; + return (i = i % 11 == 10 ? 0 : i % 11) === n[9] + }, + "cs-CZ": function(e) { + e = e.replace(/\W/, ""); + var t = parseInt(e.slice(0, 2), 10); + if (10 === e.length) + t = (t < 54 ? "20" : "19").concat(t); + else { + if ("000" === e.slice(6)) + return !1; + if (!(t < 54)) + return !1; + t = "19".concat(t) + } + 3 === t.length && (t = [t.slice(0, 2), "0", t.slice(2)].join("")); + var r = parseInt(e.slice(2, 4), 10); + if (50 < r && (r -= 50), + 20 < r) { + if (parseInt(t, 10) < 2004) + return !1; + r -= 20 + } + r < 10 && (r = "0".concat(r)); + r = "".concat(t, "/").concat(r, "/").concat(e.slice(4, 6)); + if (!(0, + LA.default)(r, "YYYY/MM/DD")) + return !1; + if (10 === e.length && parseInt(e, 10) % 11 != 0) { + r = parseInt(e.slice(0, 9), 10) % 11; + if (!(parseInt(t, 10) < 1986 && 10 == r)) + return !1; + if (0 !== parseInt(e.slice(9), 10)) + return !1 + } + return !0 + }, + "de-AT": function(e) { + return CA.luhnCheck(e) + }, + "de-DE": function(e) { + for (var t = e.split("").map(function(e) { + return parseInt(e, 10) + }), r = [], n = 0; n < t.length - 1; n++) { + r.push(""); + for (var o = 0; o < t.length - 1; o++) + t[n] === t[o] && (r[n] += o) + } + if (2 !== (r = r.filter(function(e) { + return 1 < e.length + })).length && 3 !== r.length) + return !1; + if (3 === r[0].length) { + for (var i = r[0].split("").map(function(e) { + return parseInt(e, 10) + }), a = 0, s = 0; s < i.length - 1; s++) + i[s] + 1 === i[s + 1] && (a += 1); + if (2 === a) + return !1 + } + return CA.iso7064Check(e) + }, + "dk-DK": function(e) { + e = e.replace(/\W/, ""); + var t = parseInt(e.slice(4, 6), 10); + switch (e.slice(6, 7)) { + case "0": + case "1": + case "2": + case "3": + t = "19".concat(t); + break; + case "4": + case "9": + t = (t < 37 ? "20" : "19").concat(t); + break; + default: + if (t < 37) + t = "20".concat(t); + else { + if (!(58 < t)) + return !1; + t = "18".concat(t) + } + } + 3 === t.length && (t = [t.slice(0, 2), "0", t.slice(2)].join("")); + var r = "".concat(t, "/").concat(e.slice(2, 4), "/").concat(e.slice(0, 2)); + if (!(0, + LA.default)(r, "YYYY/MM/DD")) + return !1; + for (var n = e.split("").map(function(e) { + return parseInt(e, 10) + }), o = 0, i = 4, a = 0; a < 9; a++) + o += n[a] * i, + 1 == --i && (i = 7); + return 1 != (o %= 11) && (0 === o ? 0 === n[9] : n[9] === 11 - o) + }, + "el-CY": function(e) { + for (var t = e.slice(0, 8).split("").map(function(e) { + return parseInt(e, 10) + }), r = 0, n = 1; n < t.length; n += 2) + r += t[n]; + for (var o = 0; o < t.length; o += 2) + t[o] < 2 ? r += 1 - t[o] : (r += 2 * (t[o] - 2) + 5, + 4 < t[o] && (r += 2)); + return String.fromCharCode(r % 26 + 65) === e.charAt(8) + }, + "el-GR": function(e) { + for (var t = e.split("").map(function(e) { + return parseInt(e, 10) + }), r = 0, n = 0; n < 8; n++) + r += t[n] * Math.pow(2, 8 - n); + return r % 11 % 10 === t[8] + }, + "en-CA": function(e) { + var e = e.split("") + , t = e.filter(function(e, t) { + return t % 2 + }).map(function(e) { + return 2 * Number(e) + }).join("").split(""); + return e.filter(function(e, t) { + return !(t % 2) + }).concat(t).map(function(e) { + return Number(e) + }).reduce(function(e, t) { + return e + t + }) % 10 == 0 + }, + "en-IE": function(e) { + var t = CA.reverseMultiplyAndSum(e.split("").slice(0, 7).map(function(e) { + return parseInt(e, 10) + }), 8); + return 9 === e.length && "W" !== e[8] && (t += 9 * (e[8].charCodeAt(0) - 64)), + 0 == (t %= 23) ? "W" === e[7].toUpperCase() : e[7].toUpperCase() === String.fromCharCode(64 + t) + }, + "en-US": function(e) { + return -1 !== function() { + var e, t = []; + for (e in PA) + PA.hasOwnProperty(e) && t.push.apply(t, function e(t) { + return function(e) { + if (Array.isArray(e)) + return VA(e) + }(t) || function(e) { + if ("undefined" != typeof Symbol && Symbol.iterator in Object(e)) + return Array.from(e) + }(t) || function(e) { + var t; + if (e) + return "string" == typeof e ? VA(e, void 0) : "Map" === (t = "Object" === (t = Object.prototype.toString.call(e).slice(8, -1)) && e.constructor ? e.constructor.name : t) || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? VA(e, void 0) : void 0 + }(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.") + }() + }(PA[e])); + return t + }().indexOf(e.slice(0, 2)) + }, + "es-ES": function(e) { + var t = e.toUpperCase().split(""); + if (isNaN(parseInt(t[0], 10)) && 1 < t.length) { + var r = 0; + switch (t[0]) { + case "Y": + r = 1; + break; + case "Z": + r = 2 + } + t.splice(0, 1, r) + } else + for (; t.length < 9; ) + t.unshift(0); + t = t.join(""), + e = parseInt(t.slice(0, 8), 10) % 23; + return t[8] === ["T", "R", "W", "A", "G", "M", "Y", "F", "P", "D", "X", "B", "N", "J", "Z", "S", "Q", "V", "H", "L", "C", "K", "E"][e] + }, + "et-EE": function(e) { + var t = e.slice(1, 3); + switch (e.slice(0, 1)) { + case "1": + case "2": + t = "18".concat(t); + break; + case "3": + case "4": + t = "19".concat(t); + break; + default: + t = "20".concat(t) + } + var r = "".concat(t, "/").concat(e.slice(3, 5), "/").concat(e.slice(5, 7)); + if (!(0, + LA.default)(r, "YYYY/MM/DD")) + return !1; + for (var n = e.split("").map(function(e) { + return parseInt(e, 10) + }), o = 0, i = 1, a = 0; a < 10; a++) + o += n[a] * i, + 10 === (i += 1) && (i = 1); + if (o % 11 == 10) { + for (var o = 0, i = 3, s = 0; s < 10; s++) + o += n[s] * i, + 10 === (i += 1) && (i = 1); + if (o % 11 == 10) + return 0 === n[10] + } + return o % 11 === n[10] + }, + "fi-FI": function(e) { + var t = e.slice(4, 6); + switch (e.slice(6, 7)) { + case "+": + t = "18".concat(t); + break; + case "-": + t = "19".concat(t); + break; + default: + t = "20".concat(t) + } + var r = "".concat(t, "/").concat(e.slice(2, 4), "/").concat(e.slice(0, 2)); + return !!(0, + LA.default)(r, "YYYY/MM/DD") && ((r = parseInt(e.slice(0, 6) + e.slice(7, 10), 10) % 31) < 10 ? r === parseInt(e.slice(10), 10) : ["A", "B", "C", "D", "E", "F", "H", "J", "K", "L", "M", "N", "P", "R", "S", "T", "U", "V", "W", "X", "Y"][r -= 10] === e.slice(10)) + }, + "fr-BE": function(e) { + if ("00" !== e.slice(2, 4) || "00" !== e.slice(4, 6)) { + var t = "".concat(e.slice(0, 2), "/").concat(e.slice(2, 4), "/").concat(e.slice(4, 6)); + if (!(0, + LA.default)(t, "YY/MM/DD")) + return !1 + } + var t = 97 - parseInt(e.slice(0, 9), 10) % 97 + , r = parseInt(e.slice(9, 11), 10); + return t === r || 97 - parseInt("2".concat(e.slice(0, 9)), 10) % 97 === r + }, + "fr-FR": function(e) { + return e = e.replace(/\s/g, ""), + parseInt(e.slice(0, 10), 10) % 511 === parseInt(e.slice(10, 13), 10) + }, + "fr-LU": function(e) { + var t = "".concat(e.slice(0, 4), "/").concat(e.slice(4, 6), "/").concat(e.slice(6, 8)); + return !!(0, + LA.default)(t, "YYYY/MM/DD") && !!CA.luhnCheck(e.slice(0, 12)) && CA.verhoeffCheck("".concat(e.slice(0, 11)).concat(e[12])) + }, + "hr-HR": function(e) { + return CA.iso7064Check(e) + }, + "hu-HU": function(e) { + for (var t = e.split("").map(function(e) { + return parseInt(e, 10) + }), r = 8, n = 1; n < 9; n++) + r += t[n] * (n + 1); + return r % 11 === t[9] + }, + "it-IT": function(e) { + var t = e.toUpperCase().split(""); + if (!WA(t.slice(0, 3))) + return !1; + if (!WA(t.slice(3, 6))) + return !1; + for (var r = { + L: "0", + M: "1", + N: "2", + P: "3", + Q: "4", + R: "5", + S: "6", + T: "7", + U: "8", + V: "9" + }, n = 0, o = [6, 7, 9, 10, 12, 13, 14]; n < o.length; n++) { + var i = o[n]; + t[i]in r && t.splice(i, 1, r[t[i]]) + } + var e = { + A: "01", + B: "02", + C: "03", + D: "04", + E: "05", + H: "06", + L: "07", + M: "08", + P: "09", + R: "10", + S: "11", + T: "12" + }[t[8]] + , a = parseInt(t[9] + t[10], 10) + , e = (40 < a && (a -= 40), + a < 10 && (a = "0".concat(a)), + "".concat(t[6]).concat(t[7], "/").concat(e, "/").concat(a)); + if (!(0, + LA.default)(e, "YY/MM/DD")) + return !1; + for (var s = 0, u = 1; u < t.length - 1; u += 2) { + var c = parseInt(t[u], 10); + s += c = isNaN(c) ? t[u].charCodeAt(0) - 65 : c + } + for (var l = { + A: 1, + B: 0, + C: 5, + D: 7, + E: 9, + F: 13, + G: 15, + H: 17, + I: 19, + J: 21, + K: 2, + L: 4, + M: 18, + N: 20, + O: 11, + P: 3, + Q: 6, + R: 8, + S: 12, + T: 14, + U: 16, + V: 10, + W: 22, + X: 25, + Y: 24, + Z: 23, + 0: 1, + 1: 0 + }, d = 0; d < t.length - 1; d += 2) { + var f, p = 0; + t[d]in l ? p = l[t[d]] : (p = 2 * (f = parseInt(t[d], 10)) + 1, + 4 < f && (p += 2)), + s += p + } + return String.fromCharCode(65 + s % 26) === t[15] + }, + "lv-LV": function(e) { + var t = (e = e.replace(/\W/, "")).slice(0, 2); + if ("32" === t) + return !0; + if ("00" !== e.slice(2, 4)) { + var r = e.slice(4, 6); + switch (e[6]) { + case "0": + r = "18".concat(r); + break; + case "1": + r = "19".concat(r); + break; + default: + r = "20".concat(r) + } + t = "".concat(r, "/").concat(e.slice(2, 4), "/").concat(t); + if (!(0, + LA.default)(t, "YYYY/MM/DD")) + return !1 + } + for (var n = 1101, o = [1, 6, 3, 7, 9, 10, 5, 8, 4, 2], i = 0; i < e.length - 1; i++) + n -= parseInt(e[i], 10) * o[i]; + return parseInt(e[10], 10) === n % 11 + }, + "mt-MT": function(e) { + if (9 !== e.length) { + for (var t = e.toUpperCase().split(""); t.length < 8; ) + t.unshift(0); + switch (e[7]) { + case "A": + case "P": + if (0 === parseInt(t[6], 10)) + return !1; + break; + default: + var r = parseInt(t.join("").slice(0, 5), 10); + if (32e3 < r) + return !1; + if (r === parseInt(t.join("").slice(5, 7), 10)) + return !1 + } + } + return !0 + }, + "nl-NL": function(e) { + return CA.reverseMultiplyAndSum(e.split("").slice(0, 8).map(function(e) { + return parseInt(e, 10) + }), 9) % 11 === parseInt(e[8], 10) + }, + "pl-PL": function(e) { + if (10 === e.length) { + for (var t = [6, 5, 7, 2, 3, 4, 5, 6, 7], r = 0, n = 0; n < t.length; n++) + r += parseInt(e[n], 10) * t[n]; + return 10 != (r %= 11) && r === parseInt(e[9], 10) + } + var o = e.slice(0, 2) + , i = parseInt(e.slice(2, 4), 10) + , o = (80 < i ? (o = "18".concat(o), + i -= 80) : 60 < i ? (o = "22".concat(o), + i -= 60) : 40 < i ? (o = "21".concat(o), + i -= 40) : 20 < i ? (o = "20".concat(o), + i -= 20) : o = "19".concat(o), + i < 10 && (i = "0".concat(i)), + "".concat(o, "/").concat(i, "/").concat(e.slice(4, 6))); + if (!(0, + LA.default)(o, "YYYY/MM/DD")) + return !1; + for (var a = 0, s = 1, u = 0; u < e.length - 1; u++) + a += parseInt(e[u], 10) * s % 10, + 10 < (s += 2) ? s = 1 : 5 === s && (s += 2); + return (a = 10 - a % 10) === parseInt(e[10], 10) + }, + "pt-BR": function(e) { + if (11 === e.length) { + var t = 0; + if ("11111111111" === e || "22222222222" === e || "33333333333" === e || "44444444444" === e || "55555555555" === e || "66666666666" === e || "77777777777" === e || "88888888888" === e || "99999999999" === e || "00000000000" === e) + return !1; + for (var r = 1; r <= 9; r++) + t += parseInt(e.substring(r - 1, r), 10) * (11 - r); + if ((a = 10 == (a = 10 * t % 11) ? 0 : a) !== parseInt(e.substring(9, 10), 10)) + return !1; + t = 0; + for (var n = 1; n <= 10; n++) + t += parseInt(e.substring(n - 1, n), 10) * (12 - n); + return (a = 10 == (a = 10 * t % 11) ? 0 : a) === parseInt(e.substring(10, 11), 10) + } + if ("00000000000000" === e || "11111111111111" === e || "22222222222222" === e || "33333333333333" === e || "44444444444444" === e || "55555555555555" === e || "66666666666666" === e || "77777777777777" === e || "88888888888888" === e || "99999999999999" === e) + return !1; + for (var o = e.length - 2, i = e.substring(0, o), a = e.substring(o), s = 0, u = o - 7, c = o; 1 <= c; c--) + s += i.charAt(o - c) * u, + --u < 2 && (u = 9); + if ((s % 11 < 2 ? 0 : 11 - s % 11) !== parseInt(a.charAt(0), 10)) + return !1; + for (var i = e.substring(0, o += 1), s = 0, u = o - 7, l = o; 1 <= l; l--) + s += i.charAt(o - l) * u, + --u < 2 && (u = 9); + return (s % 11 < 2 ? 0 : 11 - s % 11) === parseInt(a.charAt(1), 10) + }, + "pt-PT": function(e) { + var t = 11 - CA.reverseMultiplyAndSum(e.split("").slice(0, 8).map(function(e) { + return parseInt(e, 10) + }), 9) % 11; + return 9 < t ? 0 === parseInt(e[8], 10) : t === parseInt(e[8], 10) + }, + "ro-RO": function(e) { + if ("9000" === e.slice(0, 4)) + return !0; + var t = e.slice(1, 3); + switch (e[0]) { + case "1": + case "2": + t = "19".concat(t); + break; + case "3": + case "4": + t = "18".concat(t); + break; + case "5": + case "6": + t = "20".concat(t) + } + var r = "".concat(t, "/").concat(e.slice(3, 5), "/").concat(e.slice(5, 7)); + if (8 === r.length) { + if (!(0, + LA.default)(r, "YY/MM/DD")) + return !1 + } else if (!(0, + LA.default)(r, "YYYY/MM/DD")) + return !1; + for (var n = e.split("").map(function(e) { + return parseInt(e, 10) + }), o = [2, 7, 9, 1, 4, 6, 3, 5, 8, 2, 7, 9], i = 0, a = 0; a < o.length; a++) + i += n[a] * o[a]; + return i % 11 == 10 ? 1 === n[12] : n[12] === i % 11 + }, + "sk-SK": function(e) { + if (9 === e.length) { + if ("000" === (e = e.replace(/\W/, "")).slice(6)) + return !1; + if (53 < (t = parseInt(e.slice(0, 2), 10))) + return !1; + var t = (t < 10 ? "190" : "19").concat(t) + , r = parseInt(e.slice(2, 4), 10) + , t = (50 < r && (r -= 50), + r < 10 && (r = "0".concat(r)), + "".concat(t, "/").concat(r, "/").concat(e.slice(4, 6))); + if (!(0, + LA.default)(t, "YYYY/MM/DD")) + return !1 + } + return !0 + }, + "sl-SI": function(e) { + var t = 11 - CA.reverseMultiplyAndSum(e.split("").slice(0, 7).map(function(e) { + return parseInt(e, 10) + }), 8) % 11; + return 10 == t ? 0 === parseInt(e[7], 10) : t === parseInt(e[7], 10) + }, + "sv-SE": function(e) { + var t = e.slice(0) + , r = "" + , n = (t = 11 < e.length ? t.slice(2) : t).slice(2, 4) + , t = parseInt(t.slice(4, 6), 10); + if (11 < e.length) + r = e.slice(0, 4); + else if (r = e.slice(0, 2), + 11 === e.length && t < 60) { + var o = (new Date).getFullYear().toString() + , i = parseInt(o.slice(0, 2), 10) + , o = parseInt(o, 10); + if ("-" === e[6]) + r = (parseInt("".concat(i).concat(r), 10) > o ? "".concat(i - 1) : "".concat(i)).concat(r); + else if (r = "".concat(i - 1).concat(r), + o - parseInt(r, 10) < 100) + return !1 + } + 60 < t && (t -= 60), + t < 10 && (t = "0".concat(t)); + i = "".concat(r, "/").concat(n, "/").concat(t); + if (8 === i.length) { + if (!(0, + LA.default)(i, "YY/MM/DD")) + return !1 + } else if (!(0, + LA.default)(i, "YYYY/MM/DD")) + return !1; + return CA.luhnCheck(e.replace(/\W/, "")) + } + })["lb-LU"] = UA["fr-LU"], + UA["lt-LT"] = UA["et-EE"], + UA["nl-BE"] = UA["fr-BE"], + UA["fr-CA"] = UA["en-CA"], + ($A = { + "de-AT": tx = /[-\\\/!@#$%\^&\*\(\)\+\=\[\]]+/g, + "de-DE": /[\/\\]/g, + "fr-BE": tx + })["nl-BE"] = $A["fr-BE"], + ix.exports = ox.default, + ix.exports.default = ox.default; + var YA, JA, XA, QA, ex, tx = {}, rx = (Object.defineProperty(tx, "__esModule", { + value: !0 + }), + tx.default = function(t, e, r) { + if ((0, + rx.default)(t), + !r || !r.strictMode || t.startsWith("+")) { + if (Array.isArray(e)) + return e.some(function(e) { + return !(!nx.hasOwnProperty(e) || !nx[e].test(t)) + }); + if (e in nx) + return nx[e].test(t); + if (e && "any" !== e) + throw new Error("Invalid locale '".concat(e, "'")); + for (var n in nx) + if (nx.hasOwnProperty(n) && nx[n].test(t)) + return !0 + } + return !1 + } + , + tx.locales = void 0, + (ix = y.exports) && ix.__esModule ? ix : { + default: ix + }), nx = { + "am-AM": /^(\+?374|0)((10|[9|7][0-9])\d{6}$|[2-4]\d{7}$)/, + "ar-AE": /^((\+?971)|0)?5[024568]\d{7}$/, + "ar-BH": /^(\+?973)?(3|6)\d{7}$/, + "ar-DZ": /^(\+?213|0)(5|6|7)\d{8}$/, + "ar-LB": /^(\+?961)?((3|81)\d{6}|7\d{7})$/, + "ar-EG": /^((\+?20)|0)?1[0125]\d{8}$/, + "ar-IQ": /^(\+?964|0)?7[0-9]\d{8}$/, + "ar-JO": /^(\+?962|0)?7[789]\d{7}$/, + "ar-KW": /^(\+?965)([569]\d{7}|41\d{6})$/, + "ar-LY": /^((\+?218)|0)?(9[1-6]\d{7}|[1-8]\d{7,9})$/, + "ar-MA": /^(?:(?:\+|00)212|0)[5-7]\d{8}$/, + "ar-OM": /^((\+|00)968)?(9[1-9])\d{6}$/, + "ar-PS": /^(\+?970|0)5[6|9](\d{7})$/, + "ar-SA": /^(!?(\+?966)|0)?5\d{8}$/, + "ar-SY": /^(!?(\+?963)|0)?9\d{8}$/, + "ar-TN": /^(\+?216)?[2459]\d{7}$/, + "az-AZ": /^(\+994|0)(10|5[015]|7[07]|99)\d{7}$/, + "bs-BA": /^((((\+|00)3876)|06))((([0-3]|[5-6])\d{6})|(4\d{7}))$/, + "be-BY": /^(\+?375)?(24|25|29|33|44)\d{7}$/, + "bg-BG": /^(\+?359|0)?8[789]\d{7}$/, + "bn-BD": /^(\+?880|0)1[13456789][0-9]{8}$/, + "ca-AD": /^(\+376)?[346]\d{5}$/, + "cs-CZ": /^(\+?420)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/, + "da-DK": /^(\+?45)?\s?\d{2}\s?\d{2}\s?\d{2}\s?\d{2}$/, + "de-DE": /^((\+49|0)1)(5[0-25-9]\d|6([23]|0\d?)|7([0-57-9]|6\d))\d{7,9}$/, + "de-AT": /^(\+43|0)\d{1,4}\d{3,12}$/, + "de-CH": /^(\+41|0)([1-9])\d{1,9}$/, + "de-LU": /^(\+352)?((6\d1)\d{6})$/, + "dv-MV": /^(\+?960)?(7[2-9]|9[1-9])\d{5}$/, + "el-GR": /^(\+?30|0)?6(8[5-9]|9(?![26])[0-9])\d{7}$/, + "el-CY": /^(\+?357?)?(9(9|6)\d{6})$/, + "en-AI": /^(\+?1|0)264(?:2(35|92)|4(?:6[1-2]|76|97)|5(?:3[6-9]|8[1-4])|7(?:2(4|9)|72))\d{4}$/, + "en-AU": /^(\+?61|0)4\d{8}$/, + "en-AG": /^(?:\+1|1)268(?:464|7(?:1[3-9]|[28]\d|3[0246]|64|7[0-689]))\d{4}$/, + "en-BM": /^(\+?1)?441(((3|7)\d{6}$)|(5[0-3][0-9]\d{4}$)|(59\d{5}$))/, + "en-BS": /^(\+?1[-\s]?|0)?\(?242\)?[-\s]?\d{3}[-\s]?\d{4}$/, + "en-GB": /^(\+?44|0)7\d{9}$/, + "en-GG": /^(\+?44|0)1481\d{6}$/, + "en-GH": /^(\+233|0)(20|50|24|54|27|57|26|56|23|28|55|59)\d{7}$/, + "en-GY": /^(\+592|0)6\d{6}$/, + "en-HK": /^(\+?852[-\s]?)?[456789]\d{3}[-\s]?\d{4}$/, + "en-MO": /^(\+?853[-\s]?)?[6]\d{3}[-\s]?\d{4}$/, + "en-IE": /^(\+?353|0)8[356789]\d{7}$/, + "en-IN": /^(\+?91|0)?[6789]\d{9}$/, + "en-JM": /^(\+?876)?\d{7}$/, + "en-KE": /^(\+?254|0)(7|1)\d{8}$/, + "en-SS": /^(\+?211|0)(9[1257])\d{7}$/, + "en-KI": /^((\+686|686)?)?( )?((6|7)(2|3|8)[0-9]{6})$/, + "en-KN": /^(?:\+1|1)869(?:46\d|48[89]|55[6-8]|66\d|76[02-7])\d{4}$/, + "en-LS": /^(\+?266)(22|28|57|58|59|27|52)\d{6}$/, + "en-MT": /^(\+?356|0)?(99|79|77|21|27|22|25)[0-9]{6}$/, + "en-MU": /^(\+?230|0)?\d{8}$/, + "en-NA": /^(\+?264|0)(6|8)\d{7}$/, + "en-NG": /^(\+?234|0)?[789]\d{9}$/, + "en-NZ": /^(\+?64|0)[28]\d{7,9}$/, + "en-PG": /^(\+?675|0)?(7\d|8[18])\d{6}$/, + "en-PK": /^((00|\+)?92|0)3[0-6]\d{8}$/, + "en-PH": /^(09|\+639)\d{9}$/, + "en-RW": /^(\+?250|0)?[7]\d{8}$/, + "en-SG": /^(\+65)?[3689]\d{7}$/, + "en-SL": /^(\+?232|0)\d{8}$/, + "en-TZ": /^(\+?255|0)?[67]\d{8}$/, + "en-UG": /^(\+?256|0)?[7]\d{8}$/, + "en-US": /^((\+1|1)?( |-)?)?(\([2-9][0-9]{2}\)|[2-9][0-9]{2})( |-)?([2-9][0-9]{2}( |-)?[0-9]{4})$/, + "en-ZA": /^(\+?27|0)\d{9}$/, + "en-ZM": /^(\+?26)?09[567]\d{7}$/, + "en-ZW": /^(\+263)[0-9]{9}$/, + "en-BW": /^(\+?267)?(7[1-8]{1})\d{6}$/, + "es-AR": /^\+?549(11|[2368]\d)\d{8}$/, + "es-BO": /^(\+?591)?(6|7)\d{7}$/, + "es-CO": /^(\+?57)?3(0(0|1|2|4|5)|1\d|2[0-4]|5(0|1))\d{7}$/, + "es-CL": /^(\+?56|0)[2-9]\d{1}\d{7}$/, + "es-CR": /^(\+506)?[2-8]\d{7}$/, + "es-CU": /^(\+53|0053)?5\d{7}/, + "es-DO": /^(\+?1)?8[024]9\d{7}$/, + "es-HN": /^(\+?504)?[9|8|3|2]\d{7}$/, + "es-EC": /^(\+?593|0)([2-7]|9[2-9])\d{7}$/, + "es-ES": /^(\+?34)?[6|7]\d{8}$/, + "es-PE": /^(\+?51)?9\d{8}$/, + "es-MX": /^(\+?52)?(1|01)?\d{10,11}$/, + "es-NI": /^(\+?505)\d{7,8}$/, + "es-PA": /^(\+?507)\d{7,8}$/, + "es-PY": /^(\+?595|0)9[9876]\d{7}$/, + "es-SV": /^(\+?503)?[67]\d{7}$/, + "es-UY": /^(\+598|0)9[1-9][\d]{6}$/, + "es-VE": /^(\+?58)?(2|4)\d{9}$/, + "et-EE": /^(\+?372)?\s?(5|8[1-4])\s?([0-9]\s?){6,7}$/, + "fa-IR": /^(\+?98[\-\s]?|0)9[0-39]\d[\-\s]?\d{3}[\-\s]?\d{4}$/, + "fi-FI": /^(\+?358|0)\s?(4[0-6]|50)\s?(\d\s?){4,8}$/, + "fj-FJ": /^(\+?679)?\s?\d{3}\s?\d{4}$/, + "fo-FO": /^(\+?298)?\s?\d{2}\s?\d{2}\s?\d{2}$/, + "fr-BF": /^(\+226|0)[67]\d{7}$/, + "fr-BJ": /^(\+229)\d{8}$/, + "fr-CD": /^(\+?243|0)?(8|9)\d{8}$/, + "fr-CM": /^(\+?237)6[0-9]{8}$/, + "fr-FR": /^(\+?33|0)[67]\d{8}$/, + "fr-GF": /^(\+?594|0|00594)[67]\d{8}$/, + "fr-GP": /^(\+?590|0|00590)[67]\d{8}$/, + "fr-MQ": /^(\+?596|0|00596)[67]\d{8}$/, + "fr-PF": /^(\+?689)?8[789]\d{6}$/, + "fr-RE": /^(\+?262|0|00262)[67]\d{8}$/, + "he-IL": /^(\+972|0)([23489]|5[012345689]|77)[1-9]\d{6}$/, + "hu-HU": /^(\+?36|06)(20|30|31|50|70)\d{7}$/, + "id-ID": /^(\+?62|0)8(1[123456789]|2[1238]|3[1238]|5[12356789]|7[78]|9[56789]|8[123456789])([\s?|\d]{5,11})$/, + "ir-IR": /^(\+98|0)?9\d{9}$/, + "it-IT": /^(\+?39)?\s?3\d{2} ?\d{6,7}$/, + "it-SM": /^((\+378)|(0549)|(\+390549)|(\+3780549))?6\d{5,9}$/, + "ja-JP": /^(\+81[ \-]?(\(0\))?|0)[6789]0[ \-]?\d{4}[ \-]?\d{4}$/, + "ka-GE": /^(\+?995)?(79\d{7}|5\d{8})$/, + "kk-KZ": /^(\+?7|8)?7\d{9}$/, + "kl-GL": /^(\+?299)?\s?\d{2}\s?\d{2}\s?\d{2}$/, + "ko-KR": /^((\+?82)[ \-]?)?0?1([0|1|6|7|8|9]{1})[ \-]?\d{3,4}[ \-]?\d{4}$/, + "ky-KG": /^(\+?7\s?\+?7|0)\s?\d{2}\s?\d{3}\s?\d{4}$/, + "lt-LT": /^(\+370|8)\d{8}$/, + "lv-LV": /^(\+?371)2\d{7}$/, + "mg-MG": /^((\+?261|0)(2|3)\d)?\d{7}$/, + "mn-MN": /^(\+|00|011)?976(77|81|88|91|94|95|96|99)\d{6}$/, + "my-MM": /^(\+?959|09|9)(2[5-7]|3[1-2]|4[0-5]|6[6-9]|7[5-9]|9[6-9])[0-9]{7}$/, + "ms-MY": /^(\+?60|0)1(([0145](-|\s)?\d{7,8})|([236-9](-|\s)?\d{7}))$/, + "mz-MZ": /^(\+?258)?8[234567]\d{7}$/, + "nb-NO": /^(\+?47)?[49]\d{7}$/, + "ne-NP": /^(\+?977)?9[78]\d{8}$/, + "nl-BE": /^(\+?32|0)4\d{8}$/, + "nl-NL": /^(((\+|00)?31\(0\))|((\+|00)?31)|0)6{1}\d{8}$/, + "nl-AW": /^(\+)?297(56|59|64|73|74|99)\d{5}$/, + "nn-NO": /^(\+?47)?[49]\d{7}$/, + "pl-PL": /^(\+?48)? ?[5-8]\d ?\d{3} ?\d{2} ?\d{2}$/, + "pt-BR": /^((\+?55\ ?[1-9]{2}\ ?)|(\+?55\ ?\([1-9]{2}\)\ ?)|(0[1-9]{2}\ ?)|(\([1-9]{2}\)\ ?)|([1-9]{2}\ ?))((\d{4}\-?\d{4})|(9[1-9]{1}\d{3}\-?\d{4}))$/, + "pt-PT": /^(\+?351)?9[1236]\d{7}$/, + "pt-AO": /^(\+244)\d{9}$/, + "ro-MD": /^(\+?373|0)((6(0|1|2|6|7|8|9))|(7(6|7|8|9)))\d{6}$/, + "ro-RO": /^(\+?40|0)\s?7\d{2}(\/|\s|\.|-)?\d{3}(\s|\.|-)?\d{3}$/, + "ru-RU": /^(\+?7|8)?9\d{9}$/, + "si-LK": /^(?:0|94|\+94)?(7(0|1|2|4|5|6|7|8)( |-)?)\d{7}$/, + "sl-SI": /^(\+386\s?|0)(\d{1}\s?\d{3}\s?\d{2}\s?\d{2}|\d{2}\s?\d{3}\s?\d{3})$/, + "sk-SK": /^(\+?421)? ?[1-9][0-9]{2} ?[0-9]{3} ?[0-9]{3}$/, + "sq-AL": /^(\+355|0)6[789]\d{6}$/, + "sr-RS": /^(\+3816|06)[- \d]{5,9}$/, + "sv-SE": /^(\+?46|0)[\s\-]?7[\s\-]?[02369]([\s\-]?\d){7}$/, + "tg-TJ": /^(\+?992)?[5][5]\d{7}$/, + "th-TH": /^(\+66|66|0)\d{9}$/, + "tr-TR": /^(\+?90|0)?5\d{9}$/, + "tk-TM": /^(\+993|993|8)\d{8}$/, + "uk-UA": /^(\+?38|8)?0\d{9}$/, + "uz-UZ": /^(\+?998)?(6[125-79]|7[1-69]|88|9\d)\d{7}$/, + "vi-VN": /^((\+?84)|0)((3([2-9]))|(5([25689]))|(7([0|6-9]))|(8([1-9]))|(9([0-9])))([0-9]{7})$/, + "zh-CN": /^((\+|00)86)?(1[3-9]|9[28])\d{9}$/, + "zh-TW": /^(\+?886\-?|0)?9\d{8}$/, + "dz-BT": /^(\+?975|0)?(17|16|77|02)\d{6}$/, + "ar-YE": /^(((\+|00)9677|0?7)[0137]\d{7}|((\+|00)967|0)[1-7]\d{6})$/, + "ar-EH": /^(\+?212|0)[\s\-]?(5288|5289)[\s\-]?\d{5}$/, + "fa-AF": /^(\+93|0)?(2{1}[0-8]{1}|[3-5]{1}[0-4]{1})(\d{7})$/ + }, ox = (nx["en-CA"] = nx["en-US"], + nx["fr-CA"] = nx["en-CA"], + nx["fr-BE"] = nx["nl-BE"], + nx["zh-HK"] = nx["en-HK"], + nx["zh-MO"] = nx["en-MO"], + nx["ga-IE"] = nx["en-IE"], + nx["fr-CH"] = nx["de-CH"], + nx["it-CH"] = nx["fr-CH"], + Object.keys(nx)), ix = (tx.locales = ox, + { + exports: {} + }), ax = (I = (ox = ix).exports, + Object.defineProperty(I, "__esModule", { + value: !0 + }), + I.default = function(e) { + return (0, + YA.default)(e), + JA.test(e) + } + , + YA = (ax = y.exports) && ax.__esModule ? ax : { + default: ax + }, + JA = /^(0x)[0-9a-f]{40}$/i, + ox.exports = I.default, + ox.exports.default = I.default, + { + exports: {} + }); + function sx(e) { + return e && e.__esModule ? e : { + default: e + } + } + I = (ox = ax).exports, + Object.defineProperty(I, "__esModule", { + value: !0 + }), + I.default = function(e, t) { + return (0, + QA.default)(e), + t = t = (0, + XA.default)(t, ex), + r = "\\d{".concat(t.digits_after_decimal[0], "}"), + t.digits_after_decimal.forEach(function(e, t) { + 0 !== t && (r = "".concat(r, "|\\d{").concat(e, "}")) + }), + n = "(".concat(t.symbol.replace(/\W/, function(e) { + return "\\".concat(e) + }), ")").concat(t.require_symbol ? "" : "?"), + o = "[1-9]\\d{0,2}(\\".concat(t.thousands_separator, "\\d{3})*"), + o = "(".concat(["0", "[1-9]\\d*", o].join("|"), ")?"), + i = "(\\".concat(t.decimal_separator, "(").concat(r, "))").concat(t.require_decimal ? "" : "?"), + o += t.allow_decimal || t.require_decimal ? i : "", + t.allow_negatives && !t.parens_for_negatives && (t.negative_sign_after_digits ? o += "-?" : t.negative_sign_before_digits && (o = "-?" + o)), + t.allow_negative_sign_placeholder ? o = "( (?!\\-))?".concat(o) : t.allow_space_after_symbol ? o = " ?".concat(o) : t.allow_space_after_digits && (o += "( (?!$))?"), + t.symbol_after_digits ? o += n : o = n + o, + t.allow_negatives && (t.parens_for_negatives ? o = "(\\(".concat(o, "\\)|").concat(o, ")") : t.negative_sign_before_digits || t.negative_sign_after_digits || (o = "-?" + o)), + new RegExp("^(?!-? )(?=.*\\d)".concat(o, "$")).test(e); + var r, n, o, i + } + , + XA = sx(A.exports), + QA = sx(y.exports), + ex = { + symbol: "$", + require_symbol: !1, + allow_space_after_symbol: !1, + symbol_after_digits: !1, + allow_negatives: !0, + parens_for_negatives: !1, + negative_sign_before_digits: !1, + negative_sign_after_digits: !1, + allow_negative_sign_placeholder: !1, + thousands_separator: ",", + decimal_separator: ".", + allow_decimal: !0, + require_decimal: !1, + digits_after_decimal: [2], + allow_space_after_digits: !1 + }, + ox.exports = I.default, + ox.exports.default = I.default; + var ux, cx, lx, dx, fx, px, hx, mx, gx, vx, bx, yx, _x, wx, Ax, xx, kx, Ex, ox = { + exports: {} + }, Sx = (Tx = (I = ox).exports, + Object.defineProperty(Tx, "__esModule", { + value: !0 + }), + Tx.default = function(e) { + return (0, + ux.default)(e), + cx.test(e) || lx.test(e) + } + , + ux = (Sx = y.exports) && Sx.__esModule ? Sx : { + default: Sx + }, + cx = /^(bc1)[a-z0-9]{25,39}$/, + lx = /^(1|3)[A-HJ-NP-Za-km-z1-9]{25,39}$/, + I.exports = Tx.default, + I.exports.default = Tx.default, + { + exports: {} + }), Rx = (Tx = (I = Sx).exports, + Object.defineProperty(Tx, "__esModule", { + value: !0 + }), + Tx.default = function(e) { + return (0, + dx.default)(e), + fx.has(e) + } + , + dx = (Rx = y.exports) && Rx.__esModule ? Rx : { + default: Rx + }, + fx = new Set(["aa", "ab", "ae", "af", "ak", "am", "an", "ar", "as", "av", "ay", "az", "az", "ba", "be", "bg", "bh", "bi", "bm", "bn", "bo", "br", "bs", "ca", "ce", "ch", "co", "cr", "cs", "cu", "cv", "cy", "da", "de", "dv", "dz", "ee", "el", "en", "eo", "es", "et", "eu", "fa", "ff", "fi", "fj", "fo", "fr", "fy", "ga", "gd", "gl", "gn", "gu", "gv", "ha", "he", "hi", "ho", "hr", "ht", "hu", "hy", "hz", "ia", "id", "ie", "ig", "ii", "ik", "io", "is", "it", "iu", "ja", "jv", "ka", "kg", "ki", "kj", "kk", "kl", "km", "kn", "ko", "kr", "ks", "ku", "kv", "kw", "ky", "la", "lb", "lg", "li", "ln", "lo", "lt", "lu", "lv", "mg", "mh", "mi", "mk", "ml", "mn", "mr", "ms", "mt", "my", "na", "nb", "nd", "ne", "ng", "nl", "nn", "no", "nr", "nv", "ny", "oc", "oj", "om", "or", "os", "pa", "pi", "pl", "ps", "pt", "qu", "rm", "rn", "ro", "ru", "rw", "sa", "sc", "sd", "se", "sg", "si", "sk", "sl", "sm", "sn", "so", "sq", "sr", "ss", "st", "su", "sv", "sw", "ta", "te", "tg", "th", "ti", "tk", "tl", "tn", "to", "tr", "ts", "tt", "tw", "ty", "ug", "uk", "ur", "uz", "ve", "vi", "vo", "wa", "wo", "xh", "yi", "yo", "za", "zh", "zu"]), + I.exports = Tx.default, + I.exports.default = Tx.default, + { + exports: {} + }), Ox = (Tx = (I = Rx).exports, + Object.defineProperty(Tx, "__esModule", { + value: !0 + }), + Tx.default = function(e) { + var t = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : {} + , r = ((0, + px.default)(e), + (t.strictSeparator ? mx : hx).test(e)); + return r && t.strict ? gx(e) : r + } + , + px = (Ox = y.exports) && Ox.__esModule ? Ox : { + default: Ox + }, + hx = /^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T\s]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/, + mx = /^([\+-]?\d{4}(?!\d{2}\b))((-?)((0[1-9]|1[0-2])(\3([12]\d|0[1-9]|3[01]))?|W([0-4]\d|5[0-3])(-?[1-7])?|(00[1-9]|0[1-9]\d|[12]\d{2}|3([0-5]\d|6[1-6])))([T]((([01]\d|2[0-3])((:?)[0-5]\d)?|24:?00)([\.,]\d+(?!:))?)?(\17[0-5]\d([\.,]\d+)?)?([zZ]|([\+-])([01]\d|2[0-3]):?([0-5]\d)?)?)?)?$/, + gx = function(e) { + var t, r, n, o = e.match(/^(\d{4})-?(\d{3})([ T]{1}\.*|$)/); + return o ? (t = Number(o[1]), + o = Number(o[2]), + t % 4 == 0 && t % 100 != 0 || t % 400 == 0 ? o <= 366 : o <= 365) : (o = (t = e.match(/(\d{4})-?(\d{0,2})-?(\d*)/).map(Number))[1], + e = t[2], + t = t[3], + n = e && "0".concat(e).slice(-2), + r = t && "0".concat(t).slice(-2), + n = new Date("".concat(o, "-").concat(n || "01", "-").concat(r || "01")), + !e || !t || n.getUTCFullYear() === o && n.getUTCMonth() + 1 === e && n.getUTCDate() === t) + } + , + I.exports = Tx.default, + I.exports.default = Tx.default, + { + exports: {} + }), Dx = (Tx = (I = Ox).exports, + Object.defineProperty(Tx, "__esModule", { + value: !0 + }), + Tx.default = function(e) { + return (0, + vx.default)(e), + bx.test(e) + } + , + vx = (e2 = y.exports) && e2.__esModule ? e2 : { + default: e2 + }, + e2 = /([01][0-9]|2[0-3])/, + Cx = /[0-5][0-9]/, + Dx = new RegExp("[-+]".concat(e2.source, ":").concat(Cx.source)), + Dx = new RegExp("([zZ]|".concat(Dx.source, ")")), + e2 = new RegExp("".concat(e2.source, ":").concat(Cx.source, ":").concat(/([0-5][0-9]|60)/.source).concat(/(\.[0-9]+)?/.source)), + Cx = new RegExp("".concat(/[0-9]{4}/.source, "-").concat(/(0[1-9]|1[0-2])/.source, "-").concat(/([12]\d|0[1-9]|3[01])/.source)), + e2 = new RegExp("".concat(e2.source).concat(Dx.source)), + bx = new RegExp("^".concat(Cx.source, "[ tT]").concat(e2.source, "$")), + I.exports = Tx.default, + I.exports.default = Tx.default, + { + exports: {} + }), Tx = (e2 = (Cx = Dx).exports, + Object.defineProperty(e2, "__esModule", { + value: !0 + }), + e2.default = function(e) { + return (0, + yx.default)(e), + _x.has(e.toUpperCase()) + } + , + yx = (I = y.exports) && I.__esModule ? I : { + default: I + }, + _x = new Set(["AFG", "ALA", "ALB", "DZA", "ASM", "AND", "AGO", "AIA", "ATA", "ATG", "ARG", "ARM", "ABW", "AUS", "AUT", "AZE", "BHS", "BHR", "BGD", "BRB", "BLR", "BEL", "BLZ", "BEN", "BMU", "BTN", "BOL", "BES", "BIH", "BWA", "BVT", "BRA", "IOT", "BRN", "BGR", "BFA", "BDI", "KHM", "CMR", "CAN", "CPV", "CYM", "CAF", "TCD", "CHL", "CHN", "CXR", "CCK", "COL", "COM", "COG", "COD", "COK", "CRI", "CIV", "HRV", "CUB", "CUW", "CYP", "CZE", "DNK", "DJI", "DMA", "DOM", "ECU", "EGY", "SLV", "GNQ", "ERI", "EST", "ETH", "FLK", "FRO", "FJI", "FIN", "FRA", "GUF", "PYF", "ATF", "GAB", "GMB", "GEO", "DEU", "GHA", "GIB", "GRC", "GRL", "GRD", "GLP", "GUM", "GTM", "GGY", "GIN", "GNB", "GUY", "HTI", "HMD", "VAT", "HND", "HKG", "HUN", "ISL", "IND", "IDN", "IRN", "IRQ", "IRL", "IMN", "ISR", "ITA", "JAM", "JPN", "JEY", "JOR", "KAZ", "KEN", "KIR", "PRK", "KOR", "KWT", "KGZ", "LAO", "LVA", "LBN", "LSO", "LBR", "LBY", "LIE", "LTU", "LUX", "MAC", "MKD", "MDG", "MWI", "MYS", "MDV", "MLI", "MLT", "MHL", "MTQ", "MRT", "MUS", "MYT", "MEX", "FSM", "MDA", "MCO", "MNG", "MNE", "MSR", "MAR", "MOZ", "MMR", "NAM", "NRU", "NPL", "NLD", "NCL", "NZL", "NIC", "NER", "NGA", "NIU", "NFK", "MNP", "NOR", "OMN", "PAK", "PLW", "PSE", "PAN", "PNG", "PRY", "PER", "PHL", "PCN", "POL", "PRT", "PRI", "QAT", "REU", "ROU", "RUS", "RWA", "BLM", "SHN", "KNA", "LCA", "MAF", "SPM", "VCT", "WSM", "SMR", "STP", "SAU", "SEN", "SRB", "SYC", "SLE", "SGP", "SXM", "SVK", "SVN", "SLB", "SOM", "ZAF", "SGS", "SSD", "ESP", "LKA", "SDN", "SUR", "SJM", "SWZ", "SWE", "CHE", "SYR", "TWN", "TJK", "TZA", "THA", "TLS", "TGO", "TKL", "TON", "TTO", "TUN", "TUR", "TKM", "TCA", "TUV", "UGA", "UKR", "ARE", "GBR", "USA", "UMI", "URY", "UZB", "VUT", "VEN", "VNM", "VGB", "VIR", "WLF", "ESH", "YEM", "ZMB", "ZWE"]), + Cx.exports = e2.default, + Cx.exports.default = e2.default, + {}), Ix = (Object.defineProperty(Tx, "__esModule", { + value: !0 + }), + Tx.default = function(e) { + return (0, + Ix.default)(e), + Mx.has(e.toUpperCase()) + } + , + Tx.CurrencyCodes = void 0, + (I = y.exports) && I.__esModule ? I : { + default: I + }), Mx = new Set(["AED", "AFN", "ALL", "AMD", "ANG", "AOA", "ARS", "AUD", "AWG", "AZN", "BAM", "BBD", "BDT", "BGN", "BHD", "BIF", "BMD", "BND", "BOB", "BOV", "BRL", "BSD", "BTN", "BWP", "BYN", "BZD", "CAD", "CDF", "CHE", "CHF", "CHW", "CLF", "CLP", "CNY", "COP", "COU", "CRC", "CUC", "CUP", "CVE", "CZK", "DJF", "DKK", "DOP", "DZD", "EGP", "ERN", "ETB", "EUR", "FJD", "FKP", "GBP", "GEL", "GHS", "GIP", "GMD", "GNF", "GTQ", "GYD", "HKD", "HNL", "HRK", "HTG", "HUF", "IDR", "ILS", "INR", "IQD", "IRR", "ISK", "JMD", "JOD", "JPY", "KES", "KGS", "KHR", "KMF", "KPW", "KRW", "KWD", "KYD", "KZT", "LAK", "LBP", "LKR", "LRD", "LSL", "LYD", "MAD", "MDL", "MGA", "MKD", "MMK", "MNT", "MOP", "MRU", "MUR", "MVR", "MWK", "MXN", "MXV", "MYR", "MZN", "NAD", "NGN", "NIO", "NOK", "NPR", "NZD", "OMR", "PAB", "PEN", "PGK", "PHP", "PKR", "PLN", "PYG", "QAR", "RON", "RSD", "RUB", "RWF", "SAR", "SBD", "SCR", "SDG", "SEK", "SGD", "SHP", "SLL", "SOS", "SRD", "SSP", "STN", "SVC", "SYP", "SZL", "THB", "TJS", "TMT", "TND", "TOP", "TRY", "TTD", "TWD", "TZS", "UAH", "UGX", "USD", "USN", "UYI", "UYU", "UYW", "UZS", "VES", "VND", "VUV", "WST", "XAF", "XAG", "XAU", "XBA", "XBB", "XBC", "XBD", "XCD", "XDR", "XOF", "XPD", "XPF", "XPT", "XSU", "XTS", "XUA", "XXX", "YER", "ZAR", "ZMW", "ZWL"]), Cx = (Tx.CurrencyCodes = Mx, + { + exports: {} + }); + function Lx(e) { + return e && e.__esModule ? e : { + default: e + } + } + I = (e2 = Cx).exports, + Object.defineProperty(I, "__esModule", { + value: !0 + }), + I.default = function(e, t) { + return (0, + wx.default)(e), + (t = (0, + Ax.default)(t, Ex)).crockford ? kx.test(e) : !(e.length % 8 != 0 || !xx.test(e)) + } + , + wx = Lx(y.exports), + Ax = Lx(A.exports), + xx = /^[A-Z2-7]+=*$/, + Ex = { + crockford: !(kx = /^[A-HJKMNP-TV-Z0-9]+$/) + }, + e2.exports = I.default, + e2.exports.default = I.default; + var Px, jx, Ux, $x, Bx, Nx, Fx, Gx, zx, Zx, Hx, Kx, qx, Vx, Wx, Yx, Jx, Xx, Qx, e2 = { + exports: {} + }, t2 = (M = (I = e2).exports, + Object.defineProperty(M, "__esModule", { + value: !0 + }), + M.default = function(e) { + return (0, + Px.default)(e), + !!jx.test(e) + } + , + Px = (t2 = y.exports) && t2.__esModule ? t2 : { + default: t2 + }, + jx = /^[A-HJ-NP-Za-km-z1-9]*$/, + I.exports = M.default, + I.exports.default = M.default, + { + exports: {} + }), r2 = (M = (I = t2).exports, + Object.defineProperty(M, "__esModule", { + value: !0 + }), + M.default = function(e) { + (0, + Ux.default)(e); + var t = e.split(","); + if (t.length < 2) + return !1; + var r = t.shift().trim().split(";") + , e = r.shift(); + if ("data:" !== e.slice(0, 5)) + return !1; + e = e.slice(5); + if ("" !== e && !$x.test(e)) + return !1; + for (var n = 0; n < r.length; n++) + if ((n !== r.length - 1 || "base64" !== r[n].toLowerCase()) && !Bx.test(r[n])) + return !1; + for (var o = 0; o < t.length; o++) + if (!Nx.test(t[o])) + return !1; + return !0 + } + , + Ux = (r2 = y.exports) && r2.__esModule ? r2 : { + default: r2 + }, + $x = /^[a-z]+\/[a-z0-9\-\+\._]+$/i, + Bx = /^[a-z\-]+=[a-z0-9\-]+$/i, + Nx = /^[a-z0-9!\$&'\(\)\*\+,;=\-\._~:@\/\?%\s]*$/i, + I.exports = M.default, + I.exports.default = M.default, + { + exports: {} + }), n2 = (M = (I = r2).exports, + Object.defineProperty(M, "__esModule", { + value: !0 + }), + M.default = function(e) { + return (0, + Fx.default)(e), + 0 === e.indexOf("magnet:?") && Gx.test(e) + } + , + Fx = (n2 = y.exports) && n2.__esModule ? n2 : { + default: n2 + }, + Gx = /(?:^magnet:\?|[^?&]&)xt(?:\.1)?=urn:(?:(?:aich|bitprint|btih|ed2k|ed2khash|kzhash|md5|sha1|tree:tiger):[a-z0-9]{32}(?:[a-z0-9]{8})?|btmh:1220[a-z0-9]{64})(?:$|&)/i, + I.exports = M.default, + I.exports.default = M.default, + { + exports: {} + }), o2 = (M = (I = n2).exports, + Object.defineProperty(M, "__esModule", { + value: !0 + }), + M.default = function(e) { + return (0, + zx.default)(e), + Zx.test(e) || Hx.test(e) || Kx.test(e) + } + , + zx = (o2 = y.exports) && o2.__esModule ? o2 : { + default: o2 + }, + Zx = /^(application|audio|font|image|message|model|multipart|text|video)\/[a-zA-Z0-9\.\-\+_]{1,100}$/i, + Hx = /^text\/[a-zA-Z0-9\.\-\+]{1,100};\s?charset=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?$/i, + Kx = /^multipart\/[a-zA-Z0-9\.\-\+]{1,100}(;\s?(boundary|charset)=("[a-zA-Z0-9\.\-\+\s]{0,70}"|[a-zA-Z0-9\.\-\+]{0,70})(\s?\([a-zA-Z0-9\.\-\+\s]{1,20}\))?){0,2}$/i, + I.exports = M.default, + I.exports.default = M.default, + { + exports: {} + }); + function i2(e) { + return e && e.__esModule ? e : { + default: e + } + } + M = (I = o2).exports, + Object.defineProperty(M, "__esModule", { + value: !0 + }), + M.default = function(e, t) { + return (0, + qx.default)(e), + t = (0, + Vx.default)(t, Qx), + !!e.includes(",") && !((e = e.split(","))[0].startsWith("(") && !e[1].endsWith(")") || e[1].endsWith(")") && !e[0].startsWith("(")) && (t.checkDMS ? Jx.test(e[0]) && Xx.test(e[1]) : Wx.test(e[0]) && Yx.test(e[1])) + } + , + qx = i2(y.exports), + Vx = i2(A.exports), + Wx = /^\(?[+-]?(90(\.0+)?|[1-8]?\d(\.\d+)?)$/, + Yx = /^\s?[+-]?(180(\.0+)?|1[0-7]\d(\.\d+)?|\d{1,2}(\.\d+)?)\)?$/, + Jx = /^(([1-8]?\d)\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|90\D+0\D+0)\D+[NSns]?$/i, + Qx = { + checkDMS: !(Xx = /^\s*([1-7]?\d{1,2}\D+([1-5]?\d|60)\D+([1-5]?\d|60)(\.\d+)?|180\D+0\D+0)\D+[EWew]?$/i) + }, + I.exports = M.default, + I.exports.default = M.default; + var a2, s2, u2, c2, I = {}, l2 = (Object.defineProperty(I, "__esModule", { + value: !0 + }), + I.default = function(e, t) { + if ((0, + l2.default)(e), + t in p2) + return p2[t].test(e); + if ("any" !== t) + throw new Error("Invalid locale '".concat(t, "'")); + for (var r in p2) + if (p2.hasOwnProperty(r) && p2[r].test(e)) + return !0; + return !1 + } + , + I.locales = void 0, + (M = y.exports) && M.__esModule ? M : { + default: M + }), M = /^\d{3}$/, d2 = /^\d{4}$/, C = /^\d{5}$/, f2 = /^\d{6}$/, p2 = { + AD: /^AD\d{3}$/, + AT: d2, + AU: d2, + AZ: /^AZ\d{4}$/, + BA: /^([7-8]\d{4}$)/, + BE: d2, + BG: d2, + BR: /^\d{5}-\d{3}$/, + BY: /^2[1-4]\d{4}$/, + CA: /^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJ-NPRSTV-Z][\s\-]?\d[ABCEGHJ-NPRSTV-Z]\d$/i, + CH: d2, + CN: /^(0[1-7]|1[012356]|2[0-7]|3[0-6]|4[0-7]|5[1-7]|6[1-7]|7[1-5]|8[1345]|9[09])\d{4}$/, + CZ: /^\d{3}\s?\d{2}$/, + DE: C, + DK: d2, + DO: C, + DZ: C, + EE: C, + ES: /^(5[0-2]{1}|[0-4]{1}\d{1})\d{3}$/, + FI: C, + FR: /^\d{2}\s?\d{3}$/, + GB: /^(gir\s?0aa|[a-z]{1,2}\d[\da-z]?\s?(\d[a-z]{2})?)$/i, + GR: /^\d{3}\s?\d{2}$/, + HR: /^([1-5]\d{4}$)/, + HT: /^HT\d{4}$/, + HU: d2, + ID: C, + IE: /^(?!.*(?:o))[A-Za-z]\d[\dw]\s\w{4}$/i, + IL: /^(\d{5}|\d{7})$/, + IN: /^((?!10|29|35|54|55|65|66|86|87|88|89)[1-9][0-9]{5})$/, + IR: /^(?!(\d)\1{3})[13-9]{4}[1346-9][013-9]{5}$/, + IS: M, + IT: C, + JP: /^\d{3}\-\d{4}$/, + KE: C, + KR: /^(\d{5}|\d{6})$/, + LI: /^(948[5-9]|949[0-7])$/, + LT: /^LT\-\d{5}$/, + LU: d2, + LV: /^LV\-\d{4}$/, + LK: C, + MG: M, + MX: C, + MT: /^[A-Za-z]{3}\s{0,1}\d{4}$/, + MY: C, + NL: /^\d{4}\s?[a-z]{2}$/i, + NO: d2, + NP: /^(10|21|22|32|33|34|44|45|56|57)\d{3}$|^(977)$/i, + NZ: d2, + PL: /^\d{2}\-\d{3}$/, + PR: /^00[679]\d{2}([ -]\d{4})?$/, + PT: /^\d{4}\-\d{3}?$/, + RO: f2, + RU: f2, + SA: C, + SE: /^[1-9]\d{2}\s?\d{2}$/, + SG: f2, + SI: d2, + SK: /^\d{3}\s?\d{2}$/, + TH: C, + TN: d2, + TW: /^\d{3}(\d{2})?$/, + UA: C, + US: /^\d{5}(-\d{4})?$/, + ZA: d2, + ZM: C + }, M = Object.keys(p2), f2 = (I.locales = M, + { + exports: {} + }), M = (C = (d2 = f2).exports, + Object.defineProperty(C, "__esModule", { + value: !0 + }), + C.default = function(e, t) { + (0, + a2.default)(e); + t = t ? new RegExp("^[".concat(t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "]+"),"g") : /^\s+/g; + return e.replace(t, "") + } + , + a2 = (M = y.exports) && M.__esModule ? M : { + default: M + }, + d2.exports = C.default, + d2.exports.default = C.default, + { + exports: {} + }), h2 = (C = (d2 = M).exports, + Object.defineProperty(C, "__esModule", { + value: !0 + }), + C.default = function(e, t) { + if ((0, + s2.default)(e), + t) + return t = new RegExp("[".concat(t.replace(/[.*+?^${}()|[\]\\]/g, "\\$&"), "]+$"),"g"), + e.replace(t, ""); + for (var r = e.length - 1; /\s/.test(e.charAt(r)); ) + --r; + return e.slice(0, r + 1) + } + , + s2 = (h2 = y.exports) && h2.__esModule ? h2 : { + default: h2 + }, + d2.exports = C.default, + d2.exports.default = C.default, + { + exports: {} + }); + function m2(e) { + return e && e.__esModule ? e : { + default: e + } + } + C = (d2 = h2).exports, + Object.defineProperty(C, "__esModule", { + value: !0 + }), + C.default = function(e, t) { + return (0, + u2.default)((0, + c2.default)(e, t), t) + } + , + u2 = m2(M.exports), + c2 = m2(f2.exports), + d2.exports = C.default, + d2.exports.default = C.default; + var g2, v2, b2, y2, _2, d2 = { + exports: {} + }, w2 = (L = (C = d2).exports, + Object.defineProperty(L, "__esModule", { + value: !0 + }), + L.default = function(e) { + return (0, + g2.default)(e), + e.replace(/&/g, "&").replace(/"/g, """).replace(/'/g, "'").replace(//g, ">").replace(/\//g, "/").replace(/\\/g, "\").replace(/`/g, "`") + } + , + g2 = (w2 = y.exports) && w2.__esModule ? w2 : { + default: w2 + }, + C.exports = L.default, + C.exports.default = L.default, + { + exports: {} + }), A2 = (L = (C = w2).exports, + Object.defineProperty(L, "__esModule", { + value: !0 + }), + L.default = function(e) { + return (0, + v2.default)(e), + e.replace(/"/g, '"').replace(/'/g, "'").replace(/</g, "<").replace(/>/g, ">").replace(///g, "/").replace(/\/g, "\\").replace(/`/g, "`").replace(/&/g, "&") + } + , + v2 = (A2 = y.exports) && A2.__esModule ? A2 : { + default: A2 + }, + C.exports = L.default, + C.exports.default = L.default, + { + exports: {} + }), C = { + exports: {} + }; + function x2(e) { + return e && e.__esModule ? e : { + default: e + } + } + M2 = (L = C).exports, + Object.defineProperty(M2, "__esModule", { + value: !0 + }), + M2.default = function(e, t) { + return (0, + _2.default)(e), + e.replace(new RegExp("[".concat(t, "]+"),"g"), "") + } + , + _2 = (nk = y.exports) && nk.__esModule ? nk : { + default: nk + }, + L.exports = M2.default, + L.exports.default = M2.default, + L = (nk = A2).exports, + Object.defineProperty(L, "__esModule", { + value: !0 + }), + L.default = function(e, t) { + return (0, + b2.default)(e), + (0, + y2.default)(e, t ? "\\x00-\\x09\\x0B\\x0C\\x0E-\\x1F\\x7F" : "\\x00-\\x1F\\x7F") + } + , + b2 = x2(y.exports), + y2 = x2(C.exports), + nk.exports = L.default, + nk.exports.default = L.default; + var k2, E2, S2, R2, O2, D2, T2, I2, M2 = { + exports: {} + }, C2 = (L = (nk = M2).exports, + Object.defineProperty(L, "__esModule", { + value: !0 + }), + L.default = function(e, t) { + return (0, + k2.default)(e), + e.replace(new RegExp("[^".concat(t, "]+"),"g"), "") + } + , + k2 = (C2 = y.exports) && C2.__esModule ? C2 : { + default: C2 + }, + nk.exports = L.default, + nk.exports.default = L.default, + { + exports: {} + }), L2 = (L = (nk = C2).exports, + Object.defineProperty(L, "__esModule", { + value: !0 + }), + L.default = function(e, t) { + (0, + E2.default)(e); + for (var r = e.length - 1; 0 <= r; r--) + if (-1 === t.indexOf(e[r])) + return !1; + return !0 + } + , + E2 = (L2 = y.exports) && L2.__esModule ? L2 : { + default: L2 + }, + nk.exports = L.default, + nk.exports.default = L.default, + { + exports: {} + }); + function P2(e) { + return 1 < e.length ? e : "" + } + L = (nk = L2).exports, + Object.defineProperty(L, "__esModule", { + value: !0 + }), + L.default = function(e, t) { + t = (0, + S2.default)(t, R2); + var e = e.split("@") + , r = e.pop() + , e = [e.join("@"), r]; + if (e[1] = e[1].toLowerCase(), + "gmail.com" === e[1] || "googlemail.com" === e[1]) { + if (t.gmail_remove_subaddress && (e[0] = e[0].split("+")[0]), + t.gmail_remove_dots && (e[0] = e[0].replace(/\.+/g, P2)), + !e[0].length) + return !1; + (t.all_lowercase || t.gmail_lowercase) && (e[0] = e[0].toLowerCase()), + e[1] = t.gmail_convert_googlemaildotcom ? "gmail.com" : e[1] + } else if (0 <= O2.indexOf(e[1])) { + if (t.icloud_remove_subaddress && (e[0] = e[0].split("+")[0]), + !e[0].length) + return !1; + (t.all_lowercase || t.icloud_lowercase) && (e[0] = e[0].toLowerCase()) + } else if (0 <= D2.indexOf(e[1])) { + if (t.outlookdotcom_remove_subaddress && (e[0] = e[0].split("+")[0]), + !e[0].length) + return !1; + (t.all_lowercase || t.outlookdotcom_lowercase) && (e[0] = e[0].toLowerCase()) + } else if (0 <= T2.indexOf(e[1])) { + if (t.yahoo_remove_subaddress && (r = e[0].split("-"), + e[0] = 1 < r.length ? r.slice(0, -1).join("-") : r[0]), + !e[0].length) + return !1; + (t.all_lowercase || t.yahoo_lowercase) && (e[0] = e[0].toLowerCase()) + } else + 0 <= I2.indexOf(e[1]) ? ((t.all_lowercase || t.yandex_lowercase) && (e[0] = e[0].toLowerCase()), + e[1] = "yandex.ru") : t.all_lowercase && (e[0] = e[0].toLowerCase()); + return e.join("@") + } + , + S2 = (q2 = A.exports) && q2.__esModule ? q2 : { + default: q2 + }, + R2 = { + all_lowercase: !0, + gmail_lowercase: !0, + gmail_remove_dots: !0, + gmail_remove_subaddress: !0, + gmail_convert_googlemaildotcom: !0, + outlookdotcom_lowercase: !0, + outlookdotcom_remove_subaddress: !0, + yahoo_lowercase: !0, + yahoo_remove_subaddress: !0, + yandex_lowercase: !0, + icloud_lowercase: !0, + icloud_remove_subaddress: !0 + }, + O2 = ["icloud.com", "me.com"], + D2 = ["hotmail.at", "hotmail.be", "hotmail.ca", "hotmail.cl", "hotmail.co.il", "hotmail.co.nz", "hotmail.co.th", "hotmail.co.uk", "hotmail.com", "hotmail.com.ar", "hotmail.com.au", "hotmail.com.br", "hotmail.com.gr", "hotmail.com.mx", "hotmail.com.pe", "hotmail.com.tr", "hotmail.com.vn", "hotmail.cz", "hotmail.de", "hotmail.dk", "hotmail.es", "hotmail.fr", "hotmail.hu", "hotmail.id", "hotmail.ie", "hotmail.in", "hotmail.it", "hotmail.jp", "hotmail.kr", "hotmail.lv", "hotmail.my", "hotmail.ph", "hotmail.pt", "hotmail.sa", "hotmail.sg", "hotmail.sk", "live.be", "live.co.uk", "live.com", "live.com.ar", "live.com.mx", "live.de", "live.es", "live.eu", "live.fr", "live.it", "live.nl", "msn.com", "outlook.at", "outlook.be", "outlook.cl", "outlook.co.il", "outlook.co.nz", "outlook.co.th", "outlook.com", "outlook.com.ar", "outlook.com.au", "outlook.com.br", "outlook.com.gr", "outlook.com.pe", "outlook.com.tr", "outlook.com.vn", "outlook.cz", "outlook.de", "outlook.dk", "outlook.es", "outlook.fr", "outlook.hu", "outlook.id", "outlook.ie", "outlook.in", "outlook.it", "outlook.jp", "outlook.kr", "outlook.lv", "outlook.my", "outlook.ph", "outlook.pt", "outlook.sa", "outlook.sg", "outlook.sk", "passport.com"], + T2 = ["rocketmail.com", "yahoo.ca", "yahoo.co.uk", "yahoo.com", "yahoo.de", "yahoo.fr", "yahoo.in", "yahoo.it", "ymail.com"], + I2 = ["yandex.ru", "yandex.ua", "yandex.kz", "yandex.com", "yandex.by", "ya.ru"], + nk.exports = L.default, + nk.exports.default = L.default; + var j2, U2, $2, B2, N2, F2, G2, z2, Z2, H2, K2, q2 = { + exports: {} + }, V2 = (L = (nk = q2).exports, + Object.defineProperty(L, "__esModule", { + value: !0 + }), + L.default = function(e) { + return (0, + j2.default)(e), + U2.test(e) + } + , + j2 = (V2 = y.exports) && V2.__esModule ? V2 : { + default: V2 + }, + U2 = /^[^\s-_](?!.*?[-_]{2,})[a-z0-9-\\][^\s]*[^-_\s]$/, + nk.exports = L.default, + nk.exports.default = L.default, + { + exports: {} + }), W2 = (L = (nk = V2).exports, + Object.defineProperty(L, "__esModule", { + value: !0 + }), + L.default = function(e, t) { + if ((0, + $2.default)(e), + t in B2) + return B2[t](e); + if ("any" !== t) + throw new Error("Invalid locale '".concat(t, "'")); + for (var r in B2) + if ((0, + B2[r])(e)) + return !0; + return !1 + } + , + $2 = (W2 = y.exports) && W2.__esModule ? W2 : { + default: W2 + }, + B2 = { + "cs-CZ": function(e) { + return /^(([ABCDEFHIJKLMNPRSTUVXYZ]|[0-9])-?){5,8}$/.test(e) + }, + "de-DE": function(e) { + return /^((A|AA|AB|AC|AE|AH|AK|AM|AN|AÖ|AP|AS|AT|AU|AW|AZ|B|BA|BB|BC|BE|BF|BH|BI|BK|BL|BM|BN|BO|BÖ|BS|BT|BZ|C|CA|CB|CE|CO|CR|CW|D|DA|DD|DE|DH|DI|DL|DM|DN|DO|DU|DW|DZ|E|EA|EB|ED|EE|EF|EG|EH|EI|EL|EM|EN|ER|ES|EU|EW|F|FB|FD|FF|FG|FI|FL|FN|FO|FR|FS|FT|FÜ|FW|FZ|G|GA|GC|GD|GE|GF|GG|GI|GK|GL|GM|GN|GÖ|GP|GR|GS|GT|GÜ|GV|GW|GZ|H|HA|HB|HC|HD|HE|HF|HG|HH|HI|HK|HL|HM|HN|HO|HP|HR|HS|HU|HV|HX|HY|HZ|IK|IL|IN|IZ|J|JE|JL|K|KA|KB|KC|KE|KF|KG|KH|KI|KK|KL|KM|KN|KO|KR|KS|KT|KU|KW|KY|L|LA|LB|LC|LD|LF|LG|LH|LI|LL|LM|LN|LÖ|LP|LR|LU|M|MA|MB|MC|MD|ME|MG|MH|MI|MK|ML|MM|MN|MO|MQ|MR|MS|MÜ|MW|MY|MZ|N|NB|ND|NE|NF|NH|NI|NK|NM|NÖ|NP|NR|NT|NU|NW|NY|NZ|OA|OB|OC|OD|OE|OF|OG|OH|OK|OL|OP|OS|OZ|P|PA|PB|PE|PF|PI|PL|PM|PN|PR|PS|PW|PZ|R|RA|RC|RD|RE|RG|RH|RI|RL|RM|RN|RO|RP|RS|RT|RU|RV|RW|RZ|S|SB|SC|SE|SG|SI|SK|SL|SM|SN|SO|SP|SR|ST|SU|SW|SY|SZ|TE|TF|TG|TO|TP|TR|TS|TT|TÜ|ÜB|UE|UH|UL|UM|UN|V|VB|VG|VK|VR|VS|W|WA|WB|WE|WF|WI|WK|WL|WM|WN|WO|WR|WS|WT|WÜ|WW|WZ|Z|ZE|ZI|ZP|ZR|ZW|ZZ)[- ]?[A-Z]{1,2}[- ]?\d{1,4}|(ABG|ABI|AIB|AIC|ALF|ALZ|ANA|ANG|ANK|APD|ARN|ART|ASL|ASZ|AUR|AZE|BAD|BAR|BBG|BCH|BED|BER|BGD|BGL|BID|BIN|BIR|BIT|BIW|BKS|BLB|BLK|BNA|BOG|BOH|BOR|BOT|BRA|BRB|BRG|BRK|BRL|BRV|BSB|BSK|BTF|BÜD|BUL|BÜR|BÜS|BÜZ|CAS|CHA|CLP|CLZ|COC|COE|CUX|DAH|DAN|DAU|DBR|DEG|DEL|DGF|DIL|DIN|DIZ|DKB|DLG|DON|DUD|DÜW|EBE|EBN|EBS|ECK|EIC|EIL|EIN|EIS|EMD|EMS|ERB|ERH|ERK|ERZ|ESB|ESW|FDB|FDS|FEU|FFB|FKB|FLÖ|FOR|FRG|FRI|FRW|FTL|FÜS|GAN|GAP|GDB|GEL|GEO|GER|GHA|GHC|GLA|GMN|GNT|GOA|GOH|GRA|GRH|GRI|GRM|GRZ|GTH|GUB|GUN|GVM|HAB|HAL|HAM|HAS|HBN|HBS|HCH|HDH|HDL|HEB|HEF|HEI|HER|HET|HGN|HGW|HHM|HIG|HIP|HMÜ|HOG|HOH|HOL|HOM|HOR|HÖS|HOT|HRO|HSK|HST|HVL|HWI|IGB|ILL|JÜL|KEH|KEL|KEM|KIB|KLE|KLZ|KÖN|KÖT|KÖZ|KRU|KÜN|KUS|KYF|LAN|LAU|LBS|LBZ|LDK|LDS|LEO|LER|LEV|LIB|LIF|LIP|LÖB|LOS|LRO|LSZ|LÜN|LUP|LWL|MAB|MAI|MAK|MAL|MED|MEG|MEI|MEK|MEL|MER|MET|MGH|MGN|MHL|MIL|MKK|MOD|MOL|MON|MOS|MSE|MSH|MSP|MST|MTK|MTL|MÜB|MÜR|MYK|MZG|NAB|NAI|NAU|NDH|NEA|NEB|NEC|NEN|NES|NEW|NMB|NMS|NOH|NOL|NOM|NOR|NVP|NWM|OAL|OBB|OBG|OCH|OHA|ÖHR|OHV|OHZ|OPR|OSL|OVI|OVL|OVP|PAF|PAN|PAR|PCH|PEG|PIR|PLÖ|PRÜ|QFT|QLB|RDG|REG|REH|REI|RID|RIE|ROD|ROF|ROK|ROL|ROS|ROT|ROW|RSL|RÜD|RÜG|SAB|SAD|SAN|SAW|SBG|SBK|SCZ|SDH|SDL|SDT|SEB|SEE|SEF|SEL|SFB|SFT|SGH|SHA|SHG|SHK|SHL|SIG|SIM|SLE|SLF|SLK|SLN|SLS|SLÜ|SLZ|SMÜ|SOB|SOG|SOK|SÖM|SON|SPB|SPN|SRB|SRO|STA|STB|STD|STE|STL|SUL|SÜW|SWA|SZB|TBB|TDO|TET|TIR|TÖL|TUT|UEM|UER|UFF|USI|VAI|VEC|VER|VIB|VIE|VIT|VOH|WAF|WAK|WAN|WAR|WAT|WBS|WDA|WEL|WEN|WER|WES|WHV|WIL|WIS|WIT|WIZ|WLG|WMS|WND|WOB|WOH|WOL|WOR|WOS|WRN|WSF|WST|WSW|WTL|WTM|WUG|WÜM|WUN|WUR|WZL|ZEL|ZIG)[- ]?(([A-Z][- ]?\d{1,4})|([A-Z]{2}[- ]?\d{1,3})))[- ]?(E|H)?$/.test(e) + }, + "de-LI": function(e) { + return /^FL[- ]?\d{1,5}[UZ]?$/.test(e) + }, + "en-IN": function(e) { + return /^[A-Z]{2}[ -]?[0-9]{1,2}(?:[ -]?[A-Z])(?:[ -]?[A-Z]*)?[ -]?[0-9]{4}$/.test(e) + }, + "es-AR": function(e) { + return /^(([A-Z]{2} ?[0-9]{3} ?[A-Z]{2})|([A-Z]{3} ?[0-9]{3}))$/.test(e) + }, + "fi-FI": function(e) { + return /^(?=.{4,7})(([A-Z]{1,3}|[0-9]{1,3})[\s-]?([A-Z]{1,3}|[0-9]{1,5}))$/.test(e) + }, + "hu-HU": function(e) { + return /^((((?!AAA)(([A-NPRSTVZWXY]{1})([A-PR-Z]{1})([A-HJ-NPR-Z]))|(A[ABC]I)|A[ABC]O|A[A-W]Q|BPI|BPO|UCO|UDO|XAO)-(?!000)\d{3})|(M\d{6})|((CK|DT|CD|HC|H[ABEFIKLMNPRSTVX]|MA|OT|R[A-Z]) \d{2}-\d{2})|(CD \d{3}-\d{3})|(C-(C|X) \d{4})|(X-(A|B|C) \d{4})|(([EPVZ]-\d{5}))|(S A[A-Z]{2} \d{2})|(SP \d{2}-\d{2}))$/.test(e) + }, + "pt-BR": function(e) { + return /^[A-Z]{3}[ -]?[0-9][A-Z][0-9]{2}|[A-Z]{3}[ -]?[0-9]{4}$/.test(e) + }, + "pt-PT": function(e) { + return /^([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})[ -·]?([A-Z]{2}|[0-9]{2})$/.test(e) + }, + "sq-AL": function(e) { + return /^[A-Z]{2}[- ]?((\d{3}[- ]?(([A-Z]{2})|T))|(R[- ]?\d{3}))$/.test(e) + }, + "sv-SE": function(e) { + return /^[A-HJ-PR-UW-Z]{3} ?[\d]{2}[A-HJ-PR-UW-Z1-9]$|(^[A-ZÅÄÖ ]{2,7}$)/.test(e.trim()) + } + }, + nk.exports = L.default, + nk.exports.default = L.default, + { + exports: {} + }); + function Y2(e) { + return e && e.__esModule ? e : { + default: e + } + } + L = (nk = W2).exports, + Object.defineProperty(L, "__esModule", { + value: !0 + }), + L.default = function(e) { + var t, r, n, o, i = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : null, e = ((0, + F2.default)(e), + e = e, + t = {}, + Array.from(e).forEach(function(e) { + t[e] ? t[e] += 1 : t[e] = 1 + }), + r = t, + n = { + length: e.length, + uniqueChars: Object.keys(r).length, + uppercaseCount: 0, + lowercaseCount: 0, + numberCount: 0, + symbolCount: 0 + }, + Object.keys(r).forEach(function(e) { + G2.test(e) ? n.uppercaseCount += r[e] : z2.test(e) ? n.lowercaseCount += r[e] : Z2.test(e) ? n.numberCount += r[e] : H2.test(e) && (n.symbolCount += r[e]) + }), + n); + return (i = (0, + N2.default)(i || {}, K2)).returnScore ? (o = 0, + o = (o += e.uniqueChars * i.pointsPerUnique) + (e.length - e.uniqueChars) * i.pointsPerRepeat, + 0 < e.lowercaseCount && (o += i.pointsForContainingLower), + 0 < e.uppercaseCount && (o += i.pointsForContainingUpper), + 0 < e.numberCount && (o += i.pointsForContainingNumber), + 0 < e.symbolCount && (o += i.pointsForContainingSymbol), + o) : e.length >= i.minLength && e.lowercaseCount >= i.minLowercase && e.uppercaseCount >= i.minUppercase && e.numberCount >= i.minNumbers && e.symbolCount >= i.minSymbols + } + , + N2 = Y2(A.exports), + F2 = Y2(y.exports), + G2 = /^[A-Z]$/, + z2 = /^[a-z]$/, + Z2 = /^[0-9]$/, + K2 = { + minLength: 8, + minLowercase: 1, + minUppercase: 1, + minNumbers: 1, + minSymbols: 1, + returnScore: !(H2 = /^[-#!$@£%^&*()_+|~=`{}\[\]:";'<>?,.\/ ]$/), + pointsPerUnique: 1, + pointsPerRepeat: .5, + pointsForContainingLower: 10, + pointsForContainingUpper: 10, + pointsForContainingNumber: 10, + pointsForContainingSymbol: 10 + }, + nk.exports = L.default, + nk.exports.default = L.default; + A = {}; + function J2(e) { + return (J2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { + return typeof e + } + : function(e) { + return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e + } + )(e) + } + Object.defineProperty(A, "__esModule", { + value: !0 + }), + A.default = function(e, t) { + if ((0, + X2.default)(e), + (0, + X2.default)(t), + t in tk) + return tk[t](e); + throw new Error("Invalid country code: '".concat(t, "'")) + } + , + A.vatMatchers = void 0; + var X2 = (nk = y.exports) && nk.__esModule ? nk : { + default: nk + } + , Q2 = function(e) { + if (e && e.__esModule) + return e; + if (null === e || "object" !== J2(e) && "function" != typeof e) + return { + default: e + }; + var t = ek(); + if (t && t.has(e)) + return t.get(e); + var r, n, o = {}, i = Object.defineProperty && Object.getOwnPropertyDescriptor; + for (r in e) + Object.prototype.hasOwnProperty.call(e, r) && ((n = i ? Object.getOwnPropertyDescriptor(e, r) : null) && (n.get || n.set) ? Object.defineProperty(o, r, n) : o[r] = e[r]); + return o.default = e, + t && t.set(e, o), + o + }(ZA); + function ek() { + var e; + return "function" != typeof WeakMap ? null : (e = new WeakMap, + ek = function() { + return e + } + , + e) + } + var tk = { + AT: function(e) { + return /^(AT)?U\d{8}$/.test(e) + }, + BE: function(e) { + return /^(BE)?\d{10}$/.test(e) + }, + BG: function(e) { + return /^(BG)?\d{9,10}$/.test(e) + }, + HR: function(e) { + return /^(HR)?\d{11}$/.test(e) + }, + CY: function(e) { + return /^(CY)?\w{9}$/.test(e) + }, + CZ: function(e) { + return /^(CZ)?\d{8,10}$/.test(e) + }, + DK: function(e) { + return /^(DK)?\d{8}$/.test(e) + }, + EE: function(e) { + return /^(EE)?\d{9}$/.test(e) + }, + FI: function(e) { + return /^(FI)?\d{8}$/.test(e) + }, + FR: function(e) { + return /^(FR)?\w{2}\d{9}$/.test(e) + }, + DE: function(e) { + return /^(DE)?\d{9}$/.test(e) + }, + EL: function(e) { + return /^(EL)?\d{9}$/.test(e) + }, + HU: function(e) { + return /^(HU)?\d{8}$/.test(e) + }, + IE: function(e) { + return /^(IE)?\d{7}\w{1}(W)?$/.test(e) + }, + IT: function(e) { + return /^(IT)?\d{11}$/.test(e) + }, + LV: function(e) { + return /^(LV)?\d{11}$/.test(e) + }, + LT: function(e) { + return /^(LT)?\d{9,12}$/.test(e) + }, + LU: function(e) { + return /^(LU)?\d{8}$/.test(e) + }, + MT: function(e) { + return /^(MT)?\d{8}$/.test(e) + }, + NL: function(e) { + return /^(NL)?\d{9}B\d{2}$/.test(e) + }, + PL: function(e) { + return /^(PL)?(\d{10}|(\d{3}-\d{3}-\d{2}-\d{2})|(\d{3}-\d{2}-\d{2}-\d{3}))$/.test(e) + }, + PT: function(e) { + var t, e = e.match(/^(PT)?(\d{9})$/); + return !!e && (e = e[2], + 9 < (t = 11 - Q2.reverseMultiplyAndSum(e.split("").slice(0, 8).map(function(e) { + return parseInt(e, 10) + }), 9) % 11) ? 0 === parseInt(e[8], 10) : t === parseInt(e[8], 10)) + }, + RO: function(e) { + return /^(RO)?\d{2,10}$/.test(e) + }, + SK: function(e) { + return /^(SK)?\d{10}$/.test(e) + }, + SI: function(e) { + return /^(SI)?\d{8}$/.test(e) + }, + ES: function(e) { + return /^(ES)?\w\d{7}[A-Z]$/.test(e) + }, + SE: function(e) { + return /^(SE)?\d{12}$/.test(e) + }, + AL: function(e) { + return /^(AL)?\w{9}[A-Z]$/.test(e) + }, + MK: function(e) { + return /^(MK)?\d{13}$/.test(e) + }, + AU: function(e) { + return /^(AU)?\d{11}$/.test(e) + }, + BY: function(e) { + return /^(УНП )?\d{9}$/.test(e) + }, + CA: function(e) { + return /^(CA)?\d{9}$/.test(e) + }, + IS: function(e) { + return /^(IS)?\d{5,6}$/.test(e) + }, + IN: function(e) { + return /^(IN)?\d{15}$/.test(e) + }, + ID: function(e) { + return /^(ID)?(\d{15}|(\d{2}.\d{3}.\d{3}.\d{1}-\d{3}.\d{3}))$/.test(e) + }, + IL: function(e) { + return /^(IL)?\d{9}$/.test(e) + }, + KZ: function(e) { + return /^(KZ)?\d{9}$/.test(e) + }, + NZ: function(e) { + return /^(NZ)?\d{9}$/.test(e) + }, + NG: function(e) { + return /^(NG)?(\d{12}|(\d{8}-\d{4}))$/.test(e) + }, + NO: function(e) { + return /^(NO)?\d{9}MVA$/.test(e) + }, + PH: function(e) { + return /^(PH)?(\d{12}|\d{3} \d{3} \d{3} \d{3})$/.test(e) + }, + RU: function(e) { + return /^(RU)?(\d{10}|\d{12})$/.test(e) + }, + SM: function(e) { + return /^(SM)?\d{5}$/.test(e) + }, + SA: function(e) { + return /^(SA)?\d{15}$/.test(e) + }, + RS: function(e) { + return /^(RS)?\d{9}$/.test(e) + }, + CH: function(e) { + return /^(CH)?(\d{6}|\d{9}|(\d{3}.\d{3})|(\d{3}.\d{3}.\d{3}))(TVA|MWST|IVA)$/.test(e) + }, + TR: function(e) { + return /^(TR)?\d{10}$/.test(e) + }, + UA: function(e) { + return /^(UA)?\d{12}$/.test(e) + }, + GB: function(e) { + return /^GB((\d{3} \d{4} ([0-8][0-9]|9[0-6]))|(\d{9} \d{3})|(((GD[0-4])|(HA[5-9]))[0-9]{2}))$/.test(e) + }, + UZ: function(e) { + return /^(UZ)?\d{9}$/.test(e) + }, + AR: function(e) { + return /^(AR)?\d{11}$/.test(e) + }, + BO: function(e) { + return /^(BO)?\d{7}$/.test(e) + }, + BR: function(e) { + return /^(BR)?((\d{2}.\d{3}.\d{3}\/\d{4}-\d{2})|(\d{3}.\d{3}.\d{3}-\d{2}))$/.test(e) + }, + CL: function(e) { + return /^(CL)?\d{8}-\d{1}$/.test(e) + }, + CO: function(e) { + return /^(CO)?\d{10}$/.test(e) + }, + CR: function(e) { + return /^(CR)?\d{9,12}$/.test(e) + }, + EC: function(e) { + return /^(EC)?\d{13}$/.test(e) + }, + SV: function(e) { + return /^(SV)?\d{4}-\d{6}-\d{3}-\d{1}$/.test(e) + }, + GT: function(e) { + return /^(GT)?\d{7}-\d{1}$/.test(e) + }, + HN: function(e) { + return /^(HN)?$/.test(e) + }, + MX: function(e) { + return /^(MX)?\w{3,4}\d{6}\w{3}$/.test(e) + }, + NI: function(e) { + return /^(NI)?\d{3}-\d{6}-\d{4}\w{1}$/.test(e) + }, + PA: function(e) { + return /^(PA)?$/.test(e) + }, + PY: function(e) { + return /^(PY)?\d{6,8}-\d{1}$/.test(e) + }, + PE: function(e) { + return /^(PE)?\d{11}$/.test(e) + }, + DO: function(e) { + return /^(DO)?(\d{11}|(\d{3}-\d{7}-\d{1})|[1,4,5]{1}\d{8}|([1,4,5]{1})-\d{2}-\d{5}-\d{1})$/.test(e) + }, + UY: function(e) { + return /^(UY)?\d{12}$/.test(e) + }, + VE: function(e) { + return /^(VE)?[J,G,V,E]{1}-(\d{9}|(\d{8}-\d{1}))$/.test(e) + } + } + , L = (A.vatMatchers = tk, + Xa) + , y = Xa.exports; + function rk(e) { + return (rk = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { + return typeof e + } + : function(e) { + return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e + } + )(e) + } + Object.defineProperty(y, "__esModule", { + value: !0 + }), + y.default = void 0; + var nk = P(bl.exports) + , ZA = P(hl.exports) + , bl = P(Po.exports) + , hl = P(pl.exports) + , pl = P(Wc.exports) + , Wc = P(zn.exports) + , zn = P(tl.exports) + , tl = P(ca.exports) + , ca = P(Ro.exports) + , Ro = P(Si.exports) + , Si = P(po.exports) + , po = P(a.exports) + , a = P(i.exports) + , i = P(S.exports) + , S = P(_.exports) + , _ = P(v.exports) + , v = P(w.exports) + , w = ik(ml) + , ml = ik(E) + , E = P(el.exports) + , el = P(R.exports) + , R = P(x.exports) + , x = P(g.exports) + , g = P(l_.exports) + , l_ = P(d_.exports) + , d_ = P(f_.exports) + , f_ = P(p_) + , p_ = P(b) + , b = P(b_.exports) + , b_ = P(y_.exports) + , y_ = P(__.exports) + , __ = P(w_.exports) + , w_ = P(k.exports) + , k = ik(ia) + , ia = P(I_.exports) + , I_ = P(M_.exports) + , M_ = P(C_.exports) + , C_ = P(F_.exports) + , F_ = P(t.exports) + , t = P(mw.exports) + , mw = P(gw.exports) + , gw = P(vw.exports) + , vw = ik(bw) + , bw = P(O.exports) + , O = P(kw.exports) + , kw = P(Ew.exports) + , Ew = P(Sw.exports) + , Sw = P(Cw.exports) + , Cw = P(Bw.exports) + , Bw = P(Gw.exports) + , Gw = P(aa.exports) + , aa = P(Vw.exports) + , Vw = P(Ww.exports) + , Ww = P(eA.exports) + , eA = P(tA.exports) + , tA = P(iA.exports) + , iA = P(js.exports) + , js = P(pA.exports) + , pA = P(bA.exports) + , bA = P(BA.exports) + , BA = P(NA.exports) + , NA = P(FA.exports) + , FA = P(GA.exports) + , GA = P(zA.exports) + , zA = ik(tx) + , tx = P(ix.exports) + , ix = P(ax.exports) + , ax = P(ox.exports) + , ox = P(Sx.exports) + , Sx = P(Rx.exports) + , Rx = P(Ox.exports) + , Ox = P(ww) + , ww = P(Dx.exports) + , Dx = P(Tx) + , Tx = P(Cx.exports) + , Cx = P(e2.exports) + , e2 = P(Rw.exports) + , Rw = P(t2.exports) + , t2 = P(r2.exports) + , r2 = P(n2.exports) + , n2 = P(o2.exports) + , o2 = ik(I) + , I = P(f2.exports) + , f2 = P(M.exports) + , M = P(h2.exports) + , h2 = P(d2.exports) + , d2 = P(w2.exports) + , w2 = P(A2.exports) + , A2 = P(M2.exports) + , M2 = P(C.exports) + , C = P(C2.exports) + , C2 = P(L2.exports) + , L2 = P(q2.exports) + , q2 = P(V2.exports) + , V2 = P(W2.exports) + , W2 = P(A); + function ok() { + var e; + return "function" != typeof WeakMap ? null : (e = new WeakMap, + ok = function() { + return e + } + , + e) + } + function ik(e) { + if (e && e.__esModule) + return e; + if (null === e || "object" !== rk(e) && "function" != typeof e) + return { + default: e + }; + var t = ok(); + if (t && t.has(e)) + return t.get(e); + var r, n, o = {}, i = Object.defineProperty && Object.getOwnPropertyDescriptor; + for (r in e) + Object.prototype.hasOwnProperty.call(e, r) && ((n = i ? Object.getOwnPropertyDescriptor(e, r) : null) && (n.get || n.set) ? Object.defineProperty(o, r, n) : o[r] = e[r]); + return o.default = e, + t && t.set(e, o), + o + } + function P(e) { + return e && e.__esModule ? e : { + default: e + } + } + nk = { + version: "13.9.0", + toDate: nk.default, + toFloat: ZA.default, + toInt: bl.default, + toBoolean: hl.default, + equals: pl.default, + contains: Wc.default, + matches: zn.default, + isEmail: tl.default, + isURL: ca.default, + isMACAddress: Ro.default, + isIP: Si.default, + isIPRange: po.default, + isFQDN: a.default, + isBoolean: _.default, + isIBAN: vw.default, + isBIC: bw.default, + isAlpha: w.default, + isAlphaLocales: w.locales, + isAlphanumeric: ml.default, + isAlphanumericLocales: ml.locales, + isNumeric: E.default, + isPassportNumber: el.default, + isPort: R.default, + isLowercase: x.default, + isUppercase: g.default, + isAscii: d_.default, + isFullWidth: f_.default, + isHalfWidth: p_.default, + isVariableWidth: b.default, + isMultibyte: b_.default, + isSemVer: y_.default, + isSurrogatePair: __.default, + isInt: w_.default, + isIMEI: l_.default, + isFloat: k.default, + isFloatLocales: k.locales, + isDecimal: ia.default, + isHexadecimal: I_.default, + isOctal: M_.default, + isDivisibleBy: C_.default, + isHexColor: F_.default, + isRgbColor: t.default, + isHSL: mw.default, + isISRC: gw.default, + isMD5: O.default, + isHash: kw.default, + isJWT: Ew.default, + isJSON: Sw.default, + isEmpty: Cw.default, + isLength: Bw.default, + isLocale: v.default, + isByteLength: Gw.default, + isUUID: aa.default, + isMongoId: Vw.default, + isAfter: Ww.default, + isBefore: eA.default, + isIn: tA.default, + isLuhnNumber: iA.default, + isCreditCard: js.default, + isIdentityCard: pA.default, + isEAN: bA.default, + isISIN: BA.default, + isISBN: NA.default, + isISSN: FA.default, + isMobilePhone: zA.default, + isMobilePhoneLocales: zA.locales, + isPostalCode: o2.default, + isPostalCodeLocales: o2.locales, + isEthereumAddress: tx.default, + isCurrency: ix.default, + isBtcAddress: ax.default, + isISO6391: ox.default, + isISO8601: Sx.default, + isRFC3339: Rx.default, + isISO31661Alpha2: Ox.default, + isISO31661Alpha3: ww.default, + isISO4217: Dx.default, + isBase32: Tx.default, + isBase58: Cx.default, + isBase64: e2.default, + isDataURI: Rw.default, + isMagnetURI: t2.default, + isMimeType: r2.default, + isLatLong: n2.default, + ltrim: I.default, + rtrim: f2.default, + trim: M.default, + escape: h2.default, + unescape: d2.default, + stripLow: w2.default, + whitelist: A2.default, + blacklist: M2.default, + isWhitelisted: C.default, + normalizeEmail: C2.default, + toString: toString, + isSlug: L2.default, + isStrongPassword: V2.default, + isTaxID: GA.default, + isDate: i.default, + isTime: S.default, + isLicensePlate: q2.default, + isVAT: W2.default, + ibanLocales: vw.locales + }, + y.default = nk, + L.exports = y.default, + L.exports.default = y.default; + var ak = function e(t) { + return t && t.__esModule && Object.prototype.hasOwnProperty.call(t, "default") ? t.default : t + }(Xa.exports); + const sk = 2147483647 + , uk = 36 + , ck = /^xn--/ + , lk = /[^\0-\x7F]/ + , dk = /[\x2E\u3002\uFF0E\uFF61]/g + , fk = { + overflow: "Overflow: input needs wider integers to process", + "not-basic": "Illegal input >= 0x80 (not a basic code point)", + "invalid-input": "Invalid input" + } + , pk = Math.floor + , hk = String.fromCharCode; + function mk(e) { + throw new RangeError(fk[e]) + } + function gk(e, t) { + var r = e.split("@"); + let n = ""; + 1 < r.length && (n = r[0] + "@", + e = r[1]); + r = function(e, t) { + var r = []; + let n = e.length; + for (; n--; ) + r[n] = t(e[n]); + return r + }((e = e.replace(dk, ".")).split("."), t).join("."); + return n + r + } + function vk(e) { + var t = []; + let r = 0; + const n = e.length; + for (; r < n; ) { + var o = e.charCodeAt(r++); + if (55296 <= o && o <= 56319 && r < n) { + const n = e.charCodeAt(r++); + 56320 == (64512 & n) ? t.push(((1023 & o) << 10) + (1023 & n) + 65536) : (t.push(o), + r--) + } else + t.push(o) + } + return t + } + function bk(e, t) { + return e + 22 + 75 * (e < 26) - ((0 != t) << 5) + } + function yk(e, t, r) { + let n = 0; + for (e = r ? pk(e / 700) : e >> 1, + e += pk(e / t); 455 < e; n += uk) + e = pk(e / 35); + return pk(n + 36 * e / (e + 38)) + } + function _k(n) { + var t = [] + , o = n.length; + let i = 0 + , e = 128 + , a = 72 + , s = n.lastIndexOf("-"); + s < 0 && (s = 0); + for (let e = 0; e < s; ++e) + 128 <= n.charCodeAt(e) && mk("not-basic"), + t.push(n.charCodeAt(e)); + for (let r = 0 < s ? s + 1 : 0; r < o; ) { + const s = i; + for (let e = 1, t = uk; ; t += uk) { + r >= o && mk("invalid-input"); + const s = 48 <= (u = n.charCodeAt(r++)) && u < 58 ? u - 48 + 26 : 65 <= u && u < 91 ? u - 65 : 97 <= u && u < 123 ? u - 97 : uk; + s >= uk && mk("invalid-input"), + s > pk((sk - i) / e) && mk("overflow"), + i += s * e; + var u = t <= a ? 1 : t >= a + 26 ? 26 : t - a; + if (s < u) + break; + u = uk - u; + e > pk(sk / u) && mk("overflow"), + e *= u + } + var c = t.length + 1; + a = yk(i - s, c, 0 == s), + pk(i / c) > sk - e && mk("overflow"), + e += pk(i / c), + i %= c, + t.splice(i++, 0, e) + } + return String.fromCodePoint(...t) + } + function wk(t) { + const r = [] + , n = (t = vk(t)).length; + let o = 128 + , i = 0 + , a = 72; + for (const n of t) + n < 128 && r.push(hk(n)); + const s = r.length; + let u = s; + for (s && r.push("-"); u < n; ) { + let e = sk; + for (const r of t) + r >= o && r < e && (e = r); + var c = u + 1; + e - o > pk((sk - i) / c) && mk("overflow"), + i += (e - o) * c, + o = e; + for (const n of t) + if (n < o && ++i > sk && mk("overflow"), + n === o) { + let t = i; + for (let e = uk; ; e += uk) { + const o = e <= a ? 1 : e >= a + 26 ? 26 : e - a; + if (t < o) + break; + const i = t - o + , s = uk - o; + r.push(hk(bk(o + i % s, 0))), + t = pk(i / s) + } + r.push(hk(bk(t, 0))), + a = yk(i, c, u === s), + i = 0, + ++u + } + ++i, + ++o + } + return r.join("") + } + function Ak(e) { + return gk(e, function(e) { + return ck.test(e) ? _k(e.slice(4).toLowerCase()) : e + }) + } + function xk(e) { + return gk(e, function(e) { + return lk.test(e) ? "xn--" + wk(e) : e + }) + } + const kk = e=>String.fromCodePoint(...e) + , Ek = { + version: "2.1.0", + ucs2: { + decode: vk, + encode: kk + }, + decode: _k, + encode: wk, + toASCII: xk, + toUnicode: Ak + }; + const Sk = function e(r) { + var n; + return r.__esModule ? r : (n = Object.defineProperty({}, "__esModule", { + value: !0 + }), + Object.keys(r).forEach(function(e) { + var t = Object.getOwnPropertyDescriptor(r, e); + Object.defineProperty(n, e, t.get ? t : { + enumerable: !0, + get: function() { + return r[e] + } + }) + }), + n) + }(Object.freeze({ + __proto__: null, + ucs2decode: vk, + ucs2encode: kk, + decode: _k, + encode: wk, + toASCII: xk, + toUnicode: Ak, + default: Ek + })) + , Rk = { + "com.ac": !0, + "net.ac": !0, + "gov.ac": !0, + "org.ac": !0, + "mil.ac": !0, + "co.ae": !0, + "net.ae": !0, + "gov.ae": !0, + "ac.ae": !0, + "sch.ae": !0, + "org.ae": !0, + "mil.ae": !0, + "pro.ae": !0, + "name.ae": !0, + "com.af": !0, + "edu.af": !0, + "gov.af": !0, + "net.af": !0, + "org.af": !0, + "com.al": !0, + "edu.al": !0, + "gov.al": !0, + "mil.al": !0, + "net.al": !0, + "org.al": !0, + "ed.ao": !0, + "gv.ao": !0, + "og.ao": !0, + "co.ao": !0, + "pb.ao": !0, + "it.ao": !0, + "com.ar": !0, + "edu.ar": !0, + "gob.ar": !0, + "gov.ar": !0, + "int.ar": !0, + "mil.ar": !0, + "net.ar": !0, + "org.ar": !0, + "tur.ar": !0, + "gv.at": !0, + "ac.at": !0, + "co.at": !0, + "or.at": !0, + "com.au": !0, + "net.au": !0, + "org.au": !0, + "edu.au": !0, + "gov.au": !0, + "csiro.au": !0, + "asn.au": !0, + "id.au": !0, + "vic.au": !0, + "sa.au": !0, + "wa.au": !0, + "nt.au": !0, + "tas.au": !0, + "qld.au": !0, + "act.au": !0, + "conf.au": !0, + "oz.au": !0, + "org.ba": !0, + "net.ba": !0, + "edu.ba": !0, + "gov.ba": !0, + "mil.ba": !0, + "unsa.ba": !0, + "untz.ba": !0, + "unmo.ba": !0, + "unbi.ba": !0, + "unze.ba": !0, + "co.ba": !0, + "com.ba": !0, + "rs.ba": !0, + "co.bb": !0, + "com.bb": !0, + "net.bb": !0, + "org.bb": !0, + "gov.bb": !0, + "edu.bb": !0, + "info.bb": !0, + "store.bb": !0, + "tv.bb": !0, + "biz.bb": !0, + "com.bh": !0, + "info.bh": !0, + "cc.bh": !0, + "edu.bh": !0, + "biz.bh": !0, + "net.bh": !0, + "org.bh": !0, + "gov.bh": !0, + "com.bn": !0, + "edu.bn": !0, + "gov.bn": !0, + "net.bn": !0, + "org.bn": !0, + "com.bo": !0, + "net.bo": !0, + "org.bo": !0, + "tv.bo": !0, + "mil.bo": !0, + "int.bo": !0, + "gob.bo": !0, + "gov.bo": !0, + "edu.bo": !0, + "adm.br": !0, + "adv.br": !0, + "agr.br": !0, + "am.br": !0, + "arq.br": !0, + "art.br": !0, + "ato.br": !0, + "b.br": !0, + "bio.br": !0, + "blog.br": !0, + "bmd.br": !0, + "cim.br": !0, + "cng.br": !0, + "cnt.br": !0, + "com.br": !0, + "coop.br": !0, + "ecn.br": !0, + "edu.br": !0, + "eng.br": !0, + "esp.br": !0, + "etc.br": !0, + "eti.br": !0, + "far.br": !0, + "flog.br": !0, + "fm.br": !0, + "fnd.br": !0, + "fot.br": !0, + "fst.br": !0, + "g12.br": !0, + "ggf.br": !0, + "gov.br": !0, + "imb.br": !0, + "ind.br": !0, + "inf.br": !0, + "jor.br": !0, + "jus.br": !0, + "lel.br": !0, + "mat.br": !0, + "med.br": !0, + "mil.br": !0, + "mus.br": !0, + "net.br": !0, + "nom.br": !0, + "not.br": !0, + "ntr.br": !0, + "odo.br": !0, + "org.br": !0, + "ppg.br": !0, + "pro.br": !0, + "psc.br": !0, + "psi.br": !0, + "qsl.br": !0, + "rec.br": !0, + "slg.br": !0, + "srv.br": !0, + "tmp.br": !0, + "trd.br": !0, + "tur.br": !0, + "tv.br": !0, + "vet.br": !0, + "vlog.br": !0, + "wiki.br": !0, + "zlg.br": !0, + "com.bs": !0, + "net.bs": !0, + "org.bs": !0, + "edu.bs": !0, + "gov.bs": !0, + "om.bz": !0, + "du.bz": !0, + "ov.bz": !0, + "et.bz": !0, + "rg.bz": !0, + "ab.ca": !0, + "bc.ca": !0, + "mb.ca": !0, + "nb.ca": !0, + "nf.ca": !0, + "nl.ca": !0, + "ns.ca": !0, + "nt.ca": !0, + "nu.ca": !0, + "on.ca": !0, + "pe.ca": !0, + "qc.ca": !0, + "sk.ca": !0, + "yk.ca": !0, + "co.ck": !0, + "org.ck": !0, + "edu.ck": !0, + "gov.ck": !0, + "net.ck": !0, + "gen.ck": !0, + "biz.ck": !0, + "info.ck": !0, + "ac.cn": !0, + "com.cn": !0, + "edu.cn": !0, + "gov.cn": !0, + "mil.cn": !0, + "net.cn": !0, + "org.cn": !0, + "ah.cn": !0, + "bj.cn": !0, + "cq.cn": !0, + "fj.cn": !0, + "gd.cn": !0, + "gs.cn": !0, + "gz.cn": !0, + "gx.cn": !0, + "ha.cn": !0, + "hb.cn": !0, + "he.cn": !0, + "hi.cn": !0, + "hl.cn": !0, + "hn.cn": !0, + "jl.cn": !0, + "js.cn": !0, + "jx.cn": !0, + "ln.cn": !0, + "nm.cn": !0, + "nx.cn": !0, + "qh.cn": !0, + "sc.cn": !0, + "sd.cn": !0, + "sh.cn": !0, + "sn.cn": !0, + "sx.cn": !0, + "tj.cn": !0, + "tw.cn": !0, + "xj.cn": !0, + "xz.cn": !0, + "yn.cn": !0, + "zj.cn": !0, + "com.co": !0, + "org.co": !0, + "edu.co": !0, + "gov.co": !0, + "net.co": !0, + "mil.co": !0, + "nom.co": !0, + "ac.cr": !0, + "co.cr": !0, + "ed.cr": !0, + "fi.cr": !0, + "go.cr": !0, + "or.cr": !0, + "sa.cr": !0, + cr: !0, + "ac.cy": !0, + "net.cy": !0, + "gov.cy": !0, + "org.cy": !0, + "pro.cy": !0, + "name.cy": !0, + "ekloges.cy": !0, + "tm.cy": !0, + "ltd.cy": !0, + "biz.cy": !0, + "press.cy": !0, + "parliament.cy": !0, + "com.cy": !0, + "edu.do": !0, + "gob.do": !0, + "gov.do": !0, + "com.do": !0, + "sld.do": !0, + "org.do": !0, + "net.do": !0, + "web.do": !0, + "mil.do": !0, + "art.do": !0, + "com.dz": !0, + "org.dz": !0, + "net.dz": !0, + "gov.dz": !0, + "edu.dz": !0, + "asso.dz": !0, + "pol.dz": !0, + "art.dz": !0, + "com.ec": !0, + "info.ec": !0, + "net.ec": !0, + "fin.ec": !0, + "med.ec": !0, + "pro.ec": !0, + "org.ec": !0, + "edu.ec": !0, + "gov.ec": !0, + "mil.ec": !0, + "com.eg": !0, + "edu.eg": !0, + "eun.eg": !0, + "gov.eg": !0, + "mil.eg": !0, + "name.eg": !0, + "net.eg": !0, + "org.eg": !0, + "sci.eg": !0, + "com.er": !0, + "edu.er": !0, + "gov.er": !0, + "mil.er": !0, + "net.er": !0, + "org.er": !0, + "ind.er": !0, + "rochest.er": !0, + "w.er": !0, + "com.es": !0, + "nom.es": !0, + "org.es": !0, + "gob.es": !0, + "edu.es": !0, + "com.et": !0, + "gov.et": !0, + "org.et": !0, + "edu.et": !0, + "net.et": !0, + "biz.et": !0, + "name.et": !0, + "info.et": !0, + "ac.fj": !0, + "biz.fj": !0, + "com.fj": !0, + "info.fj": !0, + "mil.fj": !0, + "name.fj": !0, + "net.fj": !0, + "org.fj": !0, + "pro.fj": !0, + "co.fk": !0, + "org.fk": !0, + "gov.fk": !0, + "ac.fk": !0, + "nom.fk": !0, + "net.fk": !0, + fr: !0, + "tm.fr": !0, + "asso.fr": !0, + "nom.fr": !0, + "prd.fr": !0, + "presse.fr": !0, + "com.fr": !0, + "gouv.fr": !0, + "co.gg": !0, + "net.gg": !0, + "org.gg": !0, + "com.gh": !0, + "edu.gh": !0, + "gov.gh": !0, + "org.gh": !0, + "mil.gh": !0, + "co.gl": !0, + "com.gl": !0, + "edu.gl": !0, + "net.gl": !0, + "org.gl": !0, + "com.gn": !0, + "ac.gn": !0, + "gov.gn": !0, + "org.gn": !0, + "net.gn": !0, + "com.gr": !0, + "edu.gr": !0, + "net.gr": !0, + "org.gr": !0, + "gov.gr": !0, + "mil.gr": !0, + "com.gt": !0, + "edu.gt": !0, + "net.gt": !0, + "gob.gt": !0, + "org.gt": !0, + "mil.gt": !0, + "ind.gt": !0, + "com.gu": !0, + "net.gu": !0, + "gov.gu": !0, + "org.gu": !0, + "edu.gu": !0, + "com.hk": !0, + "edu.hk": !0, + "gov.hk": !0, + "idv.hk": !0, + "net.hk": !0, + "org.hk": !0, + "2000.hu": !0, + "agrar.hu": !0, + "bolt.hu": !0, + "casino.hu": !0, + "city.hu": !0, + "co.hu": !0, + "erotica.hu": !0, + "erotika.hu": !0, + "film.hu": !0, + "forum.hu": !0, + "games.hu": !0, + "hotel.hu": !0, + "info.hu": !0, + "ingatlan.hu": !0, + "jogasz.hu": !0, + "konyvelo.hu": !0, + "lakas.hu": !0, + "media.hu": !0, + "news.hu": !0, + "org.hu": !0, + "priv.hu": !0, + "reklam.hu": !0, + "sex.hu": !0, + "shop.hu": !0, + "sport.hu": !0, + "suli.huv": !0, + "szex.hu": !0, + "tm.hu": !0, + "tozsde.hu": !0, + "utazas.hu": !0, + "video.hu": !0, + "ac.id": !0, + "co.id": !0, + "net.id": !0, + "or.id": !0, + "web.id": !0, + "sch.id": !0, + "mil.id": !0, + "go.id": !0, + "war.net.id": !0, + "my.id": !0, + "biz.id": !0, + "ac.il": !0, + "co.il": !0, + "org.il": !0, + "net.il": !0, + "k12.il": !0, + "gov.il": !0, + "muni.il": !0, + "idf.il": !0, + in: !0, + "4fd.in": !0, + "co.in": !0, + "firm.in": !0, + "net.in": !0, + "org.in": !0, + "gen.in": !0, + "ind.in": !0, + "ac.in": !0, + "edu.in": !0, + "res.in": !0, + "ernet.in": !0, + "gov.in": !0, + "mil.in": !0, + "nic.in": !0, + iq: !0, + "gov.iq": !0, + "edu.iq": !0, + "com.iq": !0, + "mil.iq": !0, + "org.iq": !0, + "net.iq": !0, + ir: !0, + "ac.ir": !0, + "co.ir": !0, + "gov.ir": !0, + "id.ir": !0, + "net.ir": !0, + "org.ir": !0, + "sch.ir": !0, + "dnssec.ir": !0, + "gov.it": !0, + "edu.it": !0, + "co.je": !0, + "net.je": !0, + "org.je": !0, + "com.jo": !0, + "net.jo": !0, + "gov.jo": !0, + "edu.jo": !0, + "org.jo": !0, + "mil.jo": !0, + "name.jo": !0, + "sch.jo": !0, + "ac.jp": !0, + "ad.jp": !0, + "co.jp": !0, + "ed.jp": !0, + "go.jp": !0, + "gr.jp": !0, + "lg.jp": !0, + "ne.jp": !0, + "or.jp": !0, + "co.ke": !0, + "or.ke": !0, + "ne.ke": !0, + "go.ke": !0, + "ac.ke": !0, + "sc.ke": !0, + "me.ke": !0, + "mobi.ke": !0, + "info.ke": !0, + "per.kh": !0, + "com.kh": !0, + "edu.kh": !0, + "gov.kh": !0, + "mil.kh": !0, + "net.kh": !0, + "org.kh": !0, + "com.ki": !0, + "biz.ki": !0, + "de.ki": !0, + "net.ki": !0, + "info.ki": !0, + "org.ki": !0, + "gov.ki": !0, + "edu.ki": !0, + "mob.ki": !0, + "tel.ki": !0, + km: !0, + "com.km": !0, + "coop.km": !0, + "asso.km": !0, + "nom.km": !0, + "presse.km": !0, + "tm.km": !0, + "medecin.km": !0, + "notaires.km": !0, + "pharmaciens.km": !0, + "veterinaire.km": !0, + "edu.km": !0, + "gouv.km": !0, + "mil.km": !0, + "net.kn": !0, + "org.kn": !0, + "edu.kn": !0, + "gov.kn": !0, + kr: !0, + "co.kr": !0, + "ne.kr": !0, + "or.kr": !0, + "re.kr": !0, + "pe.kr": !0, + "go.kr": !0, + "mil.kr": !0, + "ac.kr": !0, + "hs.kr": !0, + "ms.kr": !0, + "es.kr": !0, + "sc.kr": !0, + "kg.kr": !0, + "seoul.kr": !0, + "busan.kr": !0, + "daegu.kr": !0, + "incheon.kr": !0, + "gwangju.kr": !0, + "daejeon.kr": !0, + "ulsan.kr": !0, + "gyeonggi.kr": !0, + "gangwon.kr": !0, + "chungbuk.kr": !0, + "chungnam.kr": !0, + "jeonbuk.kr": !0, + "jeonnam.kr": !0, + "gyeongbuk.kr": !0, + "gyeongnam.kr": !0, + "jeju.kr": !0, + "edu.kw": !0, + "com.kw": !0, + "net.kw": !0, + "org.kw": !0, + "gov.kw": !0, + "com.ky": !0, + "org.ky": !0, + "net.ky": !0, + "edu.ky": !0, + "gov.ky": !0, + "com.kz": !0, + "edu.kz": !0, + "gov.kz": !0, + "mil.kz": !0, + "net.kz": !0, + "org.kz": !0, + "com.lb": !0, + "edu.lb": !0, + "gov.lb": !0, + "net.lb": !0, + "org.lb": !0, + "gov.lk": !0, + "sch.lk": !0, + "net.lk": !0, + "int.lk": !0, + "com.lk": !0, + "org.lk": !0, + "edu.lk": !0, + "ngo.lk": !0, + "soc.lk": !0, + "web.lk": !0, + "ltd.lk": !0, + "assn.lk": !0, + "grp.lk": !0, + "hotel.lk": !0, + "com.lr": !0, + "edu.lr": !0, + "gov.lr": !0, + "org.lr": !0, + "net.lr": !0, + "com.lv": !0, + "edu.lv": !0, + "gov.lv": !0, + "org.lv": !0, + "mil.lv": !0, + "id.lv": !0, + "net.lv": !0, + "asn.lv": !0, + "conf.lv": !0, + "com.ly": !0, + "net.ly": !0, + "gov.ly": !0, + "plc.ly": !0, + "edu.ly": !0, + "sch.ly": !0, + "med.ly": !0, + "org.ly": !0, + "id.ly": !0, + ma: !0, + "net.ma": !0, + "ac.ma": !0, + "org.ma": !0, + "gov.ma": !0, + "press.ma": !0, + "co.ma": !0, + "tm.mc": !0, + "asso.mc": !0, + "co.me": !0, + "net.me": !0, + "org.me": !0, + "edu.me": !0, + "ac.me": !0, + "gov.me": !0, + "its.me": !0, + "priv.me": !0, + "org.mg": !0, + "nom.mg": !0, + "gov.mg": !0, + "prd.mg": !0, + "tm.mg": !0, + "edu.mg": !0, + "mil.mg": !0, + "com.mg": !0, + "com.mk": !0, + "org.mk": !0, + "net.mk": !0, + "edu.mk": !0, + "gov.mk": !0, + "inf.mk": !0, + "name.mk": !0, + "pro.mk": !0, + "com.ml": !0, + "net.ml": !0, + "org.ml": !0, + "edu.ml": !0, + "gov.ml": !0, + "presse.ml": !0, + "gov.mn": !0, + "edu.mn": !0, + "org.mn": !0, + "com.mo": !0, + "edu.mo": !0, + "gov.mo": !0, + "net.mo": !0, + "org.mo": !0, + "com.mt": !0, + "org.mt": !0, + "net.mt": !0, + "edu.mt": !0, + "gov.mt": !0, + "aero.mv": !0, + "biz.mv": !0, + "com.mv": !0, + "coop.mv": !0, + "edu.mv": !0, + "gov.mv": !0, + "info.mv": !0, + "int.mv": !0, + "mil.mv": !0, + "museum.mv": !0, + "name.mv": !0, + "net.mv": !0, + "org.mv": !0, + "pro.mv": !0, + "ac.mw": !0, + "co.mw": !0, + "com.mw": !0, + "coop.mw": !0, + "edu.mw": !0, + "gov.mw": !0, + "int.mw": !0, + "museum.mw": !0, + "net.mw": !0, + "org.mw": !0, + "com.mx": !0, + "net.mx": !0, + "org.mx": !0, + "edu.mx": !0, + "gob.mx": !0, + "com.my": !0, + "net.my": !0, + "org.my": !0, + "gov.my": !0, + "edu.my": !0, + "sch.my": !0, + "mil.my": !0, + "name.my": !0, + "com.nf": !0, + "net.nf": !0, + "arts.nf": !0, + "store.nf": !0, + "web.nf": !0, + "firm.nf": !0, + "info.nf": !0, + "other.nf": !0, + "per.nf": !0, + "rec.nf": !0, + "com.ng": !0, + "org.ng": !0, + "gov.ng": !0, + "edu.ng": !0, + "net.ng": !0, + "sch.ng": !0, + "name.ng": !0, + "mobi.ng": !0, + "biz.ng": !0, + "mil.ng": !0, + "gob.ni": !0, + "co.ni": !0, + "com.ni": !0, + "ac.ni": !0, + "edu.ni": !0, + "org.ni": !0, + "nom.ni": !0, + "net.ni": !0, + "mil.ni": !0, + "com.np": !0, + "edu.np": !0, + "gov.np": !0, + "org.np": !0, + "mil.np": !0, + "net.np": !0, + "edu.nr": !0, + "gov.nr": !0, + "biz.nr": !0, + "info.nr": !0, + "net.nr": !0, + "org.nr": !0, + "com.nr": !0, + "com.om": !0, + "co.om": !0, + "edu.om": !0, + "ac.om": !0, + "sch.om": !0, + "gov.om": !0, + "net.om": !0, + "org.om": !0, + "mil.om": !0, + "museum.om": !0, + "biz.om": !0, + "pro.om": !0, + "med.om": !0, + "edu.pe": !0, + "gob.pe": !0, + "nom.pe": !0, + "mil.pe": !0, + "sld.pe": !0, + "org.pe": !0, + "com.pe": !0, + "net.pe": !0, + "com.ph": !0, + "net.ph": !0, + "org.ph": !0, + "mil.ph": !0, + "ngo.ph": !0, + "i.ph": !0, + "gov.ph": !0, + "edu.ph": !0, + "com.pk": !0, + "net.pk": !0, + "edu.pk": !0, + "org.pk": !0, + "fam.pk": !0, + "biz.pk": !0, + "web.pk": !0, + "gov.pk": !0, + "gob.pk": !0, + "gok.pk": !0, + "gon.pk": !0, + "gop.pk": !0, + "gos.pk": !0, + "pwr.pl": !0, + "com.pl": !0, + "biz.pl": !0, + "net.pl": !0, + "art.pl": !0, + "edu.pl": !0, + "org.pl": !0, + "ngo.pl": !0, + "gov.pl": !0, + "info.pl": !0, + "mil.pl": !0, + "waw.pl": !0, + "warszawa.pl": !0, + "wroc.pl": !0, + "wroclaw.pl": !0, + "krakow.pl": !0, + "katowice.pl": !0, + "poznan.pl": !0, + "lodz.pl": !0, + "gda.pl": !0, + "gdansk.pl": !0, + "slupsk.pl": !0, + "radom.pl": !0, + "szczecin.pl": !0, + "lublin.pl": !0, + "bialystok.pl": !0, + "olsztyn.pl": !0, + "torun.pl": !0, + "gorzow.pl": !0, + "zgora.pl": !0, + "biz.pr": !0, + "com.pr": !0, + "edu.pr": !0, + "gov.pr": !0, + "info.pr": !0, + "isla.pr": !0, + "name.pr": !0, + "net.pr": !0, + "org.pr": !0, + "pro.pr": !0, + "est.pr": !0, + "prof.pr": !0, + "ac.pr": !0, + "com.ps": !0, + "net.ps": !0, + "org.ps": !0, + "edu.ps": !0, + "gov.ps": !0, + "plo.ps": !0, + "sec.ps": !0, + "co.pw": !0, + "ne.pw": !0, + "or.pw": !0, + "ed.pw": !0, + "go.pw": !0, + "belau.pw": !0, + "arts.ro": !0, + "com.ro": !0, + "firm.ro": !0, + "info.ro": !0, + "nom.ro": !0, + "nt.ro": !0, + "org.ro": !0, + "rec.ro": !0, + "store.ro": !0, + "tm.ro": !0, + "www.ro": !0, + "co.rs": !0, + "org.rs": !0, + "edu.rs": !0, + "ac.rs": !0, + "gov.rs": !0, + "in.rs": !0, + "com.sb": !0, + "net.sb": !0, + "edu.sb": !0, + "org.sb": !0, + "gov.sb": !0, + "com.sc": !0, + "net.sc": !0, + "edu.sc": !0, + "gov.sc": !0, + "org.sc": !0, + "co.sh": !0, + "com.sh": !0, + "org.sh": !0, + "gov.sh": !0, + "edu.sh": !0, + "net.sh": !0, + "nom.sh": !0, + "com.sl": !0, + "net.sl": !0, + "org.sl": !0, + "edu.sl": !0, + "gov.sl": !0, + "gov.st": !0, + "saotome.st": !0, + "principe.st": !0, + "consulado.st": !0, + "embaixada.st": !0, + "org.st": !0, + "edu.st": !0, + "net.st": !0, + "com.st": !0, + "store.st": !0, + "mil.st": !0, + "co.st": !0, + "edu.sv": !0, + "gob.sv": !0, + "com.sv": !0, + "org.sv": !0, + "red.sv": !0, + "co.sz": !0, + "ac.sz": !0, + "org.sz": !0, + "com.tr": !0, + "gen.tr": !0, + "org.tr": !0, + "biz.tr": !0, + "info.tr": !0, + "av.tr": !0, + "dr.tr": !0, + "pol.tr": !0, + "bel.tr": !0, + "tsk.tr": !0, + "bbs.tr": !0, + "k12.tr": !0, + "edu.tr": !0, + "name.tr": !0, + "net.tr": !0, + "gov.tr": !0, + "web.tr": !0, + "tel.tr": !0, + "tv.tr": !0, + "co.tt": !0, + "com.tt": !0, + "org.tt": !0, + "net.tt": !0, + "biz.tt": !0, + "info.tt": !0, + "pro.tt": !0, + "int.tt": !0, + "coop.tt": !0, + "jobs.tt": !0, + "mobi.tt": !0, + "travel.tt": !0, + "museum.tt": !0, + "aero.tt": !0, + "cat.tt": !0, + "tel.tt": !0, + "name.tt": !0, + "mil.tt": !0, + "edu.tt": !0, + "gov.tt": !0, + "edu.tw": !0, + "gov.tw": !0, + "mil.tw": !0, + "com.tw": !0, + "net.tw": !0, + "org.tw": !0, + "idv.tw": !0, + "game.tw": !0, + "ebiz.tw": !0, + "club.tw": !0, + "com.mu": !0, + "gov.mu": !0, + "net.mu": !0, + "org.mu": !0, + "ac.mu": !0, + "co.mu": !0, + "or.mu": !0, + "ac.mz": !0, + "co.mz": !0, + "edu.mz": !0, + "org.mz": !0, + "gov.mz": !0, + "com.na": !0, + "co.na": !0, + "ac.nz": !0, + "co.nz": !0, + "cri.nz": !0, + "geek.nz": !0, + "gen.nz": !0, + "govt.nz": !0, + "health.nz": !0, + "iwi.nz": !0, + "maori.nz": !0, + "mil.nz": !0, + "net.nz": !0, + "org.nz": !0, + "parliament.nz": !0, + "school.nz": !0, + "abo.pa": !0, + "ac.pa": !0, + "com.pa": !0, + "edu.pa": !0, + "gob.pa": !0, + "ing.pa": !0, + "med.pa": !0, + "net.pa": !0, + "nom.pa": !0, + "org.pa": !0, + "sld.pa": !0, + "com.pt": !0, + "edu.pt": !0, + "gov.pt": !0, + "int.pt": !0, + "net.pt": !0, + "nome.pt": !0, + "org.pt": !0, + "publ.pt": !0, + "com.py": !0, + "edu.py": !0, + "gov.py": !0, + "mil.py": !0, + "net.py": !0, + "org.py": !0, + "com.qa": !0, + "edu.qa": !0, + "gov.qa": !0, + "mil.qa": !0, + "net.qa": !0, + "org.qa": !0, + "asso.re": !0, + "com.re": !0, + "nom.re": !0, + "ac.ru": !0, + "adygeya.ru": !0, + "altai.ru": !0, + "amur.ru": !0, + "arkhangelsk.ru": !0, + "astrakhan.ru": !0, + "bashkiria.ru": !0, + "belgorod.ru": !0, + "bir.ru": !0, + "bryansk.ru": !0, + "buryatia.ru": !0, + "cbg.ru": !0, + "chel.ru": !0, + "chelyabinsk.ru": !0, + "chita.ru": !0, + "chukotka.ru": !0, + "chuvashia.ru": !0, + "com.ru": !0, + "dagestan.ru": !0, + "e-burg.ru": !0, + "edu.ru": !0, + "gov.ru": !0, + "grozny.ru": !0, + "int.ru": !0, + "irkutsk.ru": !0, + "ivanovo.ru": !0, + "izhevsk.ru": !0, + "jar.ru": !0, + "joshkar-ola.ru": !0, + "kalmykia.ru": !0, + "kaluga.ru": !0, + "kamchatka.ru": !0, + "karelia.ru": !0, + "kazan.ru": !0, + "kchr.ru": !0, + "kemerovo.ru": !0, + "khabarovsk.ru": !0, + "khakassia.ru": !0, + "khv.ru": !0, + "kirov.ru": !0, + "koenig.ru": !0, + "komi.ru": !0, + "kostroma.ru": !0, + "kranoyarsk.ru": !0, + "kuban.ru": !0, + "kurgan.ru": !0, + "kursk.ru": !0, + "lipetsk.ru": !0, + "magadan.ru": !0, + "mari.ru": !0, + "mari-el.ru": !0, + "marine.ru": !0, + "mil.ru": !0, + "mordovia.ru": !0, + "mosreg.ru": !0, + "msk.ru": !0, + "murmansk.ru": !0, + "nalchik.ru": !0, + "net.ru": !0, + "nnov.ru": !0, + "nov.ru": !0, + "novosibirsk.ru": !0, + "nsk.ru": !0, + "omsk.ru": !0, + "orenburg.ru": !0, + "org.ru": !0, + "oryol.ru": !0, + "penza.ru": !0, + "perm.ru": !0, + "pp.ru": !0, + "pskov.ru": !0, + "ptz.ru": !0, + "rnd.ru": !0, + "ryazan.ru": !0, + "sakhalin.ru": !0, + "samara.ru": !0, + "saratov.ru": !0, + "simbirsk.ru": !0, + "smolensk.ru": !0, + "spb.ru": !0, + "stavropol.ru": !0, + "stv.ru": !0, + "surgut.ru": !0, + "tambov.ru": !0, + "tatarstan.ru": !0, + "tom.ru": !0, + "tomsk.ru": !0, + "tsaritsyn.ru": !0, + "tsk.ru": !0, + "tula.ru": !0, + "tuva.ru": !0, + "tver.ru": !0, + "tyumen.ru": !0, + "udm.ru": !0, + "udmurtia.ru": !0, + "ulan-ude.ru": !0, + "vladikavkaz.ru": !0, + "vladimir.ru": !0, + "vladivostok.ru": !0, + "volgograd.ru": !0, + "vologda.ru": !0, + "voronezh.ru": !0, + "vrn.ru": !0, + "vyatka.ru": !0, + "yakutia.ru": !0, + "yamal.ru": !0, + "yekaterinburg.ru": !0, + "yuzhno-sakhalinsk.ru": !0, + "ac.rw": !0, + "co.rw": !0, + "com.rw": !0, + "edu.rw": !0, + "gouv.rw": !0, + "gov.rw": !0, + "int.rw": !0, + "mil.rw": !0, + "net.rw": !0, + "com.sa": !0, + "edu.sa": !0, + "gov.sa": !0, + "med.sa": !0, + "net.sa": !0, + "org.sa": !0, + "pub.sa": !0, + "sch.sa": !0, + "com.sd": !0, + "edu.sd": !0, + "gov.sd": !0, + "info.sd": !0, + "med.sd": !0, + "net.sd": !0, + "org.sd": !0, + "tv.sd": !0, + "a.se": !0, + "ac.se": !0, + "b.se": !0, + "bd.se": !0, + "c.se": !0, + "d.se": !0, + "e.se": !0, + "f.se": !0, + "g.se": !0, + "h.se": !0, + "i.se": !0, + "k.se": !0, + "l.se": !0, + "m.se": !0, + "n.se": !0, + "o.se": !0, + "org.se": !0, + "p.se": !0, + "parti.se": !0, + "pp.se": !0, + "press.se": !0, + "r.se": !0, + "s.se": !0, + "t.se": !0, + "tm.se": !0, + "u.se": !0, + "w.se": !0, + "x.se": !0, + "y.se": !0, + "z.se": !0, + "com.sg": !0, + "edu.sg": !0, + "gov.sg": !0, + "idn.sg": !0, + "net.sg": !0, + "org.sg": !0, + "per.sg": !0, + "art.sn": !0, + "com.sn": !0, + "edu.sn": !0, + "gouv.sn": !0, + "org.sn": !0, + "perso.sn": !0, + "univ.sn": !0, + "com.sy": !0, + "edu.sy": !0, + "gov.sy": !0, + "mil.sy": !0, + "net.sy": !0, + "news.sy": !0, + "org.sy": !0, + "ac.th": !0, + "co.th": !0, + "go.th": !0, + "in.th": !0, + "mi.th": !0, + "net.th": !0, + "or.th": !0, + "ac.tj": !0, + "biz.tj": !0, + "co.tj": !0, + "com.tj": !0, + "edu.tj": !0, + "go.tj": !0, + "gov.tj": !0, + "info.tj": !0, + "int.tj": !0, + "mil.tj": !0, + "name.tj": !0, + "net.tj": !0, + "nic.tj": !0, + "org.tj": !0, + "test.tj": !0, + "web.tj": !0, + "agrinet.tn": !0, + "com.tn": !0, + "defense.tn": !0, + "edunet.tn": !0, + "ens.tn": !0, + "fin.tn": !0, + "gov.tn": !0, + "ind.tn": !0, + "info.tn": !0, + "intl.tn": !0, + "mincom.tn": !0, + "nat.tn": !0, + "net.tn": !0, + "org.tn": !0, + "perso.tn": !0, + "rnrt.tn": !0, + "rns.tn": !0, + "rnu.tn": !0, + "tourism.tn": !0, + "ac.tz": !0, + "co.tz": !0, + "go.tz": !0, + "ne.tz": !0, + "or.tz": !0, + "biz.ua": !0, + "cherkassy.ua": !0, + "chernigov.ua": !0, + "chernovtsy.ua": !0, + "ck.ua": !0, + "cn.ua": !0, + "co.ua": !0, + "com.ua": !0, + "crimea.ua": !0, + "cv.ua": !0, + "dn.ua": !0, + "dnepropetrovsk.ua": !0, + "donetsk.ua": !0, + "dp.ua": !0, + "edu.ua": !0, + "gov.ua": !0, + "if.ua": !0, + "in.ua": !0, + "ivano-frankivsk.ua": !0, + "kh.ua": !0, + "kharkov.ua": !0, + "kherson.ua": !0, + "khmelnitskiy.ua": !0, + "kiev.ua": !0, + "kirovograd.ua": !0, + "km.ua": !0, + "kr.ua": !0, + "ks.ua": !0, + "kv.ua": !0, + "lg.ua": !0, + "lugansk.ua": !0, + "lutsk.ua": !0, + "lviv.ua": !0, + "me.ua": !0, + "mk.ua": !0, + "net.ua": !0, + "nikolaev.ua": !0, + "od.ua": !0, + "odessa.ua": !0, + "org.ua": !0, + "pl.ua": !0, + "poltava.ua": !0, + "pp.ua": !0, + "rovno.ua": !0, + "rv.ua": !0, + "sebastopol.ua": !0, + "sumy.ua": !0, + "te.ua": !0, + "ternopil.ua": !0, + "uzhgorod.ua": !0, + "vinnica.ua": !0, + "vn.ua": !0, + "zaporizhzhe.ua": !0, + "zhitomir.ua": !0, + "zp.ua": !0, + "zt.ua": !0, + "ac.ug": !0, + "co.ug": !0, + "go.ug": !0, + "ne.ug": !0, + "or.ug": !0, + "org.ug": !0, + "sc.ug": !0, + "ac.uk": !0, + "bl.uk": !0, + "british-library.uk": !0, + "co.uk": !0, + "cym.uk": !0, + "gov.uk": !0, + "govt.uk": !0, + "icnet.uk": !0, + "jet.uk": !0, + "lea.uk": !0, + "ltd.uk": !0, + "me.uk": !0, + "mil.uk": !0, + "mod.uk": !0, + "national-library-scotland.uk": !0, + "nel.uk": !0, + "net.uk": !0, + "nhs.uk": !0, + "nic.uk": !0, + "nls.uk": !0, + "org.uk": !0, + "orgn.uk": !0, + "parliament.uk": !0, + "plc.uk": !0, + "police.uk": !0, + "sch.uk": !0, + "scot.uk": !0, + "soc.uk": !0, + "4fd.us": !0, + "dni.us": !0, + "fed.us": !0, + "isa.us": !0, + "kids.us": !0, + "nsn.us": !0, + "com.uy": !0, + "edu.uy": !0, + "gub.uy": !0, + "mil.uy": !0, + "net.uy": !0, + "org.uy": !0, + "co.ve": !0, + "com.ve": !0, + "edu.ve": !0, + "gob.ve": !0, + "info.ve": !0, + "mil.ve": !0, + "net.ve": !0, + "org.ve": !0, + "web.ve": !0, + "co.vi": !0, + "com.vi": !0, + "k12.vi": !0, + "net.vi": !0, + "org.vi": !0, + "ac.vn": !0, + "biz.vn": !0, + "com.vn": !0, + "edu.vn": !0, + "gov.vn": !0, + "health.vn": !0, + "info.vn": !0, + "int.vn": !0, + "name.vn": !0, + "net.vn": !0, + "org.vn": !0, + "pro.vn": !0, + "co.ye": !0, + "com.ye": !0, + "gov.ye": !0, + "ltd.ye": !0, + "me.ye": !0, + "net.ye": !0, + "org.ye": !0, + "plc.ye": !0, + "ac.yu": !0, + "co.yu": !0, + "edu.yu": !0, + "gov.yu": !0, + "org.yu": !0, + "ac.za": !0, + "agric.za": !0, + "alt.za": !0, + "bourse.za": !0, + "city.za": !0, + "co.za": !0, + "cybernet.za": !0, + "db.za": !0, + "ecape.school.za": !0, + "edu.za": !0, + "fs.school.za": !0, + "gov.za": !0, + "gp.school.za": !0, + "grondar.za": !0, + "iaccess.za": !0, + "imt.za": !0, + "inca.za": !0, + "kzn.school.za": !0, + "landesign.za": !0, + "law.za": !0, + "lp.school.za": !0, + "mil.za": !0, + "mpm.school.za": !0, + "ncape.school.za": !0, + "net.za": !0, + "ngo.za": !0, + "nis.za": !0, + "nom.za": !0, + "nw.school.za": !0, + "olivetti.za": !0, + "org.za": !0, + "pix.za": !0, + "school.za": !0, + "tm.za": !0, + "wcape.school.za": !0, + "web.za": !0, + "ac.zm": !0, + "co.zm": !0, + "com.zm": !0, + "edu.zm": !0, + "gov.zm": !0, + "net.zm": !0, + "org.zm": !0, + "sch.zm": !0 + } + , Ok = { + ad: !0, + ae: !0, + af: !0, + ag: !0, + ai: !0, + al: !0, + am: !0, + ao: !0, + aq: !0, + ar: !0, + as: !0, + at: !0, + au: !0, + aw: !0, + ax: !0, + az: !0, + ba: !0, + bb: !0, + bd: !0, + be: !0, + bf: !0, + bg: !0, + bh: !0, + bi: !0, + bj: !0, + bl: !0, + bm: !0, + bn: !0, + bo: !0, + bq: !0, + br: !0, + bs: !0, + bt: !0, + bv: !0, + bw: !0, + by: !0, + bz: !0, + ca: !0, + cc: !0, + cd: !0, + cf: !0, + cg: !0, + ch: !0, + ci: !0, + ck: !0, + cl: !0, + cm: !0, + cn: !0, + co: !0, + cr: !0, + cu: !0, + cv: !0, + cw: !0, + cx: !0, + cy: !0, + cz: !0, + de: !0, + dj: !0, + dk: !0, + dm: !0, + do: !0, + dz: !0, + ec: !0, + ee: !0, + eg: !0, + er: !0, + es: !0, + et: !0, + fi: !0, + fj: !0, + fk: !0, + fm: !0, + fo: !0, + fr: !0, + ga: !0, + "gb (.uk)": !0, + gd: !0, + ge: !0, + gf: !0, + gg: !0, + gh: !0, + gi: !0, + gl: !0, + gm: !0, + gn: !0, + gp: !0, + gq: !0, + gr: !0, + gs: !0, + gt: !0, + gu: !0, + gw: !0, + gy: !0, + hk: !0, + hm: !0, + hn: !0, + hr: !0, + ht: !0, + hu: !0, + id: !0, + ie: !0, + il: !0, + im: !0, + in: !0, + io: !0, + iq: !0, + ir: !0, + is: !0, + it: !0, + je: !0, + jm: !0, + jo: !0, + jp: !0, + ke: !0, + kg: !0, + kh: !0, + ki: !0, + km: !0, + kn: !0, + kp: !0, + kr: !0, + kw: !0, + ky: !0, + kz: !0, + la: !0, + lb: !0, + lc: !0, + li: !0, + lk: !0, + lr: !0, + ls: !0, + lt: !0, + lu: !0, + lv: !0, + ly: !0, + ma: !0, + mc: !0, + md: !0, + me: !0, + mf: !0, + mg: !0, + mh: !0, + mk: !0, + ml: !0, + mm: !0, + mn: !0, + mo: !0, + mp: !0, + mq: !0, + mr: !0, + ms: !0, + mt: !0, + mu: !0, + mv: !0, + mw: !0, + mx: !0, + my: !0, + mz: !0, + na: !0, + nc: !0, + ne: !0, + nf: !0, + ng: !0, + ni: !0, + nl: !0, + no: !0, + np: !0, + nr: !0, + nu: !0, + nz: !0, + om: !0, + pa: !0, + pe: !0, + pf: !0, + pg: !0, + ph: !0, + pk: !0, + pl: !0, + pm: !0, + pn: !0, + pr: !0, + ps: !0, + pt: !0, + pw: !0, + py: !0, + qa: !0, + re: !0, + ro: !0, + rs: !0, + ru: !0, + rw: !0, + sa: !0, + sb: !0, + sc: !0, + sd: !0, + se: !0, + sg: !0, + sh: !0, + si: !0, + sj: !0, + sk: !0, + sl: !0, + sm: !0, + sn: !0, + so: !0, + sr: !0, + ss: !0, + st: !0, + sv: !0, + sx: !0, + sy: !0, + sz: !0, + tc: !0, + td: !0, + tf: !0, + tg: !0, + th: !0, + tj: !0, + tk: !0, + tl: !0, + tm: !0, + tn: !0, + to: !0, + tr: !0, + tt: !0, + tv: !0, + tw: !0, + tz: !0, + ua: !0, + ug: !0, + us: !0, + uy: !0, + uz: !0, + va: !0, + vc: !0, + ve: !0, + vg: !0, + vi: !0, + vn: !0, + vu: !0, + wf: !0, + ws: !0, + ye: !0, + yt: !0, + za: !0, + zm: !0, + zw: !0 + }; + function Dk(e) { + return null != e && "object" == typeof e && !1 === Array.isArray(e) + } + var Tk = function(e, i) { + if ("string" != typeof e) + return !1; + if (i instanceof Object || (i = {}), + (e = e.toLowerCase()).endsWith(".") && (e = e.slice(0, e.length - 1)), + 253 < (e = i.allowUnicode ? Sk.toASCII(e) : e).length) + return !1; + if (!/^([\u0E00-\u0E7Fa-z0-9-._*]+)$/g.test(e)) + return !1; + if (i.topLevel && Ok[e.replace(/\.$/, "")]) + return !0; + var t = e.match(/(.*)\.(([\u0E00-\u0E7Fa-z0-9]+)(\.[a-z0-9]+))/); + let r = null + , a = null; + if (t && 2 < t.length && Rk[t[2]] && (r = t[2], + a = t[1].split(".")), + !a) { + if ((a = e.split(".")).length <= 1) + return !1; + if (r = a.pop(), + !/^(?:xn--)?(?!^\d+$)[\u0E00-\u0E7Fa-z0-9]+$/gi.test(r)) + return !1 + } + return !(!1 === i.subdomain && 1 < a.length) && a.every(function(e, t) { + if (i.wildcard && 0 === t && "*" === e && 1 < a.length) + return !0; + let r = /^([\u0E00-\u0E7Fa-zA-Z0-9-_]+)$/g; + t === a.length - 1 && (r = /^([\u0E00-\u0E7Fa-zA-Z0-9-]+)$/g); + var n = (e.match(/--(--)?/g) || []).length + , o = (e.match(/xn--/g) || []).length; + return (t !== a.length - 1 || n === o) && r.test(e) && e.length < 64 && !e.startsWith("-") && !e.endsWith("-") + }) + }; + const Ik = Dk; + function Mk(e, t, r) { + return "function" == typeof r.join ? r.join(e) : e[0] + t + e[1] + } + function Ck(e, t, r) { + return "function" != typeof r.isValid || r.isValid(e, t) + } + function Lk(e) { + return Ik(e) || Array.isArray(e) || "function" == typeof e + } + var Pk = Dk; + function jk(e) { + return !0 === Pk(e) && "[object Object]" === Object.prototype.toString.call(e) + } + const Uk = Reflect["deleteProperty"] + , $k = function(e) { + return "object" == typeof e ? null === e : "function" != typeof e + } + , Bk = function(e) { + return !1 !== jk(e) && "function" == typeof (e = e.constructor) && !1 !== jk(e = e.prototype) && !1 !== e.hasOwnProperty("isPrototypeOf") + } + , Nk = e=>"object" == typeof e && null !== e || "function" == typeof e + , Fk = e=>{ + if (!$k(e)) + throw new TypeError("Object keys must be strings or symbols"); + if ("__proto__" === e || "constructor" === e || "prototype" === e) + throw new Error(`Cannot set unsafe key: "${e}"`) + } + , Gk = (t,r,e)=>{ + n = r ? (()=>{ + if ("string" != typeof t || !r) + return t; + let e = t + ";"; + return void 0 !== r.arrays && (e += `arrays=${r.arrays};`), + void 0 !== r.separator && (e += `separator=${r.separator};`), + void 0 !== r.split && (e += `split=${r.split};`), + void 0 !== r.merge && (e += `merge=${r.merge};`), + void 0 !== r.preservePaths && (e += `preservePaths=${r.preservePaths};`), + e + } + )() : t; + var n = Array.isArray(n) ? n.flat().map(String).join(",") : n + , e = (Fk(n), + Zk.cache.get(n) || e()); + return Zk.cache.set(n, e), + e + } + , zk = (s,u)=>u && "function" == typeof u.split ? u.split(s) : "symbol" == typeof s ? [s] : Array.isArray(s) ? s : Gk(s, u, ()=>{ + { + var [r,e={}] = [s, u]; + const o = e.separator || "." + , i = "/" !== o && e.preservePaths; + if ("string" == typeof r && !1 !== i && /\//.test(r)) + return [r]; + const a = []; + let t = ""; + var n = e=>{ + let t; + "" !== e.trim() && Number.isInteger(t = Number(e)) ? a.push(t) : a.push(e) + } + ; + for (let e = 0; e < r.length; e++) { + const i = r[e]; + "\\" !== i ? i !== o ? t += i : (n(t), + t = "") : t += r[++e] + } + return t && n(t), + a + } + } + ) + , Zk = (e,r,n,o)=>{ + if (r && Nk(e)) { + var i, a, s, u, c = zk(r, o); + let t = e; + for (let e = 0; e < c.length; e++) { + const r = c[e] + , l = c[e + 1]; + if (Fk(r), + void 0 === l) { + i = t, + a = r, + s = n, + u = o, + Fk(a), + void 0 === s ? Uk(i, a) : u && u.merge && (u = "function" === u.merge ? u.merge : Object.assign) && Bk(i[a]) && Bk(s) ? i[a] = u(i[a], s) : i[a] = s; + break + } + t = "number" != typeof l || Array.isArray(t[r]) ? (Nk(t[r]) || (t[r] = {}), + t[r]) : t[r] = [] + } + } + return e + } + ; + Zk.split = zk, + Zk.cache = new Map, + Zk.clear = ()=>{ + Zk.cache = new Map + } + ; + var Hk, Kk = Zk; + function qk(n) { + var i = this + , l = {} + , a = (null == n ? void 0 : n._ancestor_origins) || window.location.ancestorOrigins + , s = (null == n ? void 0 : n.self_url) || window.location.href + , u = (null == n ? void 0 : n.self_origin) || window.location.origin + , c = (null == n ? void 0 : n.referrer_url) || document.referrer; + function t(e) { + { + var a = l + , s = void 0; + if (Ik(s) || (s = { + default: s + }), + !Lk(a)) + return void 0 !== s.default ? s.default : a; + "number" == typeof e && (e = String(e)); + var t = Array.isArray(e) + , r = "string" == typeof e + , u = s.separator || "." + , c = s.joinChar || ("string" == typeof u ? u : "."); + if (!r && !t) + return a; + if (r && e in a) + return Ck(e, a, s) ? a[e] : s.default; + let n = t ? e : (r = e, + t = u, + "function" == typeof (e = s).split ? e.split(r) : r.split(t)) + , o = n.length + , i = 0; + do { + let r = n[i]; + for ("number" == typeof r && (r = String(r)); r && "\\" === r.slice(-1); ) + r = Mk([r.slice(0, -1), n[++i] || ""], c, s); + if (r in a) { + if (!Ck(r, a, s)) + return s.default; + a = a[r] + } else { + let e = !1 + , t = i + 1; + for (; t < o; ) + if (r = Mk([r, n[t++]], c, s), + e = r in a) { + if (!Ck(r, a, s)) + return s.default; + a = a[r], + i = t - 1; + break + } + if (!e) + return s.default + } + } while (++i < o && Lk(a)); + return i === o ? a : s.default + } + } + function d(e, t) { + Kk(l, e, t) + } + function f(e, t) { + t = !(1 < arguments.length && void 0 !== t) || t; + if (e && "" !== e) + try { + return new ce(e,t) + } catch (e) { + console.log(e) + } + } + function p() { + for (var e = (null == n ? void 0 : n.urls) || [s, c], t = 0; t < e.length; t++) { + var r = f(e[t]); + if (r) { + r = null == (r = r.query) ? void 0 : r.gd_sdk_referrer_url; + if (r && (r = decodeURIComponent(r), + ak.isURL(r))) + return r + } + } + } + return function() { + D(this, i); + var e, t, r, n = 0, o = window; + try { + for (; o != o.parent; ) + n++, + o = o.parent + } catch (n) { + d("depth.error", n.message) + } + d("depth.value", n), + e = a, + t = l.depth.value, + r = u, + d("top.domain.from", "fallback"), + e && 0 < e.length ? (r = e[e.length - 1], + d("top.domain.from", "origins")) : 0 === t ? (r = u, + d("top.domain.from", "self-top")) : 1 === t && (e = f(c)) && (r = e.origin, + d("top.domain.from", "referrer")), + d("top.domain.value", r.replace(/^https?:\/\/(www\.)?(.*)$/i, "$2")), + (t = p()) ? Tk(t) ? (d("partner.domain.value", t), + d("partner.domain.from", "partner-domain")) : (t = f(t, !1)) ? (d("partner.domain.value", t.origin.replace(/^https?:\/\/(www\.)?(.*)$/i, "$2")), + d("partner.domain.from", "partner-url")) : (d("partner.domain.value", l.top.domain.value), + d("partner.domain.from", "partner-fallback")) : (d("partner.domain.value", l.top.domain.value), + d("partner.domain.from", "fallback")), + e = p(), + 0 === l.depth.value ? (d("partner.url.value", s), + d("partner.url.from", "self-top")) : e ? Tk(e) ? (d("partner.url.value", s), + d("partner.url.from", "partner-domain")) : (d("partner.url.value", e), + d("partner.url.from", "partner-url")) : (d("partner.url.value", c), + d("partner.url.from", "fallback")) + } + .bind(this)(), + { + get: t, + print: function(e) { + console.log(t(e)) + } + } + } + function Vk(e) { + var t = this; + return Hk || (e = { + gameId: e.gameId, + hours: (new Date).getHours(), + topDomain: uv.topDomain, + domain: uv.parentDomain, + referrer: uv.parentURL, + depth: yn(), + version: $u.version, + byloader: uv.isTokenGameURL, + isTokenGameURL: uv.isTokenGameURL, + isMasterGameURL: uv.isMasterGameURL, + isExtHostedGameURL: uv.isExtHostedGameURL, + byloaderVersion: uv.version, + tracking: cv.userDeclinedTracking, + whitelabel: cv.whitelabelPartner, + platform: vn() + }, + Hk = new Nn(e)), + Hk || { + send: function() { + D(this, t) + } + .bind(this) + } + } + var Wk = { + getGameData: function(e) { + var t = this; + try { + var r = e.replace("game.api.gamedistribution.com", "game-api.gamedistribution.com"); + fetch(r).then(function(e) { + D(this, t) + } + .bind(this)).catch(function(e) { + D(this, t) + } + .bind(this)) + } catch (e) {} + }, + getGameLoaderIndex: function(e) { + var t = this; + try { + var r = "https://html5-prod-aws.gamedistribution.com/".concat(e, "/"); + fetch(r).then(function(e) { + D(this, t) + } + .bind(this)).catch(function(e) { + D(this, t) + } + .bind(this)) + } catch (e) {} + } + } + , A = { + exports: {} + } + , ZA = "object" == typeof Reflect ? Reflect : null + , Yk = ZA && "function" == typeof ZA.apply ? ZA.apply : function(e, t, r) { + return Function.prototype.apply.call(e, t, r) + } + , Jk = ZA && "function" == typeof ZA.ownKeys ? ZA.ownKeys : Object.getOwnPropertySymbols ? function(e) { + return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e)) + } + : function(e) { + return Object.getOwnPropertyNames(e) + } + , Xk = Number.isNaN || function(e) { + return e != e + } + ; + function Qk() { + Qk.init.call(this) + } + A.exports = Qk, + A.exports.once = function(o, i) { + return new Promise(function(e, t) { + function r(e) { + o.removeListener(i, n), + t(e) + } + function n() { + "function" == typeof o.removeListener && o.removeListener("error", r), + e([].slice.call(arguments)) + } + uE(o, i, n, { + once: !0 + }), + "error" !== i && "function" == typeof o.on && uE(o, "error", r, { + once: !0 + }) + } + ) + } + , + (Qk.EventEmitter = Qk).prototype._events = void 0, + Qk.prototype._eventsCount = 0, + Qk.prototype._maxListeners = void 0; + var eE = 10; + function tE(e) { + if ("function" != typeof e) + throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof e) + } + function rE(e) { + return void 0 === e._maxListeners ? Qk.defaultMaxListeners : e._maxListeners + } + function nE(e, t, r, n) { + var o, i; + return tE(r), + void 0 === (o = e._events) ? (o = e._events = Object.create(null), + e._eventsCount = 0) : (void 0 !== o.newListener && (e.emit("newListener", t, r.listener || r), + o = e._events), + i = o[t]), + void 0 === i ? (i = o[t] = r, + ++e._eventsCount) : ("function" == typeof i ? i = o[t] = n ? [r, i] : [i, r] : n ? i.unshift(r) : i.push(r), + 0 < (o = rE(e)) && i.length > o && !i.warned && (i.warned = !0, + (n = new Error("Possible EventEmitter memory leak detected. " + i.length + " " + String(t) + " listeners added. Use emitter.setMaxListeners() to increase limit")).name = "MaxListenersExceededWarning", + n.emitter = e, + n.type = t, + n.count = i.length, + console) && console.warn && console.warn(n)), + e + } + function oE(e, t, r) { + e = { + fired: !1, + wrapFn: void 0, + target: e, + type: t, + listener: r + }, + t = function e() { + if (!this.fired) + return this.target.removeListener(this.type, this.wrapFn), + this.fired = !0, + 0 === arguments.length ? this.listener.call(this.target) : this.listener.apply(this.target, arguments) + } + .bind(e); + return t.listener = r, + e.wrapFn = t + } + function iE(e, t, r) { + e = e._events; + if (void 0 === e) + return []; + e = e[t]; + { + if (void 0 === e) + return []; + if ("function" == typeof e) + return r ? [e.listener || e] : [e]; + if (r) { + for (var n = e, o = new Array(n.length), i = 0; i < o.length; ++i) + o[i] = n[i].listener || n[i]; + return o + } + return sE(e, e.length) + } + } + function aE(e) { + var t = this._events; + if (void 0 !== t) { + t = t[e]; + if ("function" == typeof t) + return 1; + if (void 0 !== t) + return t.length + } + return 0 + } + function sE(e, t) { + for (var r = new Array(t), n = 0; n < t; ++n) + r[n] = e[n]; + return r + } + function uE(r, n, o, i) { + if ("function" == typeof r.on) + i.once ? r.once(n, o) : r.on(n, o); + else { + if ("function" != typeof r.addEventListener) + throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof r); + r.addEventListener(n, function e(t) { + i.once && r.removeEventListener(n, e), + o(t) + }) + } + } + function cE(t, e) { + var r, n = Object.keys(t); + return Object.getOwnPropertySymbols && (r = Object.getOwnPropertySymbols(t), + e && (r = r.filter(function(e) { + return Object.getOwnPropertyDescriptor(t, e).enumerable + })), + n.push.apply(n, r)), + n + } + function lE(t) { + for (var e = 1; e < arguments.length; e++) { + var r = null != arguments[e] ? arguments[e] : {}; + e % 2 ? cE(Object(r), !0).forEach(function(e) { + Fu(t, e, r[e]) + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : cE(Object(r)).forEach(function(e) { + Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(r, e)) + }) + } + return t + } + Object.defineProperty(Qk, "defaultMaxListeners", { + enumerable: !0, + get: function() { + return eE + }, + set: function(e) { + if ("number" != typeof e || e < 0 || Xk(e)) + throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + e + "."); + eE = e + } + }), + Qk.init = function() { + void 0 !== this._events && this._events !== Object.getPrototypeOf(this)._events || (this._events = Object.create(null), + this._eventsCount = 0), + this._maxListeners = this._maxListeners || void 0 + } + , + Qk.prototype.setMaxListeners = function(e) { + if ("number" != typeof e || e < 0 || Xk(e)) + throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + e + "."); + return this._maxListeners = e, + this + } + , + Qk.prototype.getMaxListeners = function() { + return rE(this) + } + , + Qk.prototype.emit = function(e) { + for (var t = [], r = 1; r < arguments.length; r++) + t.push(arguments[r]); + var n = "error" === e + , o = this._events; + if (void 0 !== o) + n = n && void 0 === o.error; + else if (!n) + return !1; + if (n) { + if ((i = 0 < t.length ? t[0] : i)instanceof Error) + throw i; + n = new Error("Unhandled error." + (i ? " (" + i.message + ")" : "")); + throw n.context = i, + n + } + var i = o[e]; + if (void 0 === i) + return !1; + if ("function" == typeof i) + Yk(i, this, t); + else + for (var a = i.length, s = sE(i, a), r = 0; r < a; ++r) + Yk(s[r], this, t); + return !0 + } + , + Qk.prototype.on = Qk.prototype.addListener = function(e, t) { + return nE(this, e, t, !1) + } + , + Qk.prototype.prependListener = function(e, t) { + return nE(this, e, t, !0) + } + , + Qk.prototype.once = function(e, t) { + return tE(t), + this.on(e, oE(this, e, t)), + this + } + , + Qk.prototype.prependOnceListener = function(e, t) { + return tE(t), + this.prependListener(e, oE(this, e, t)), + this + } + , + Qk.prototype.off = Qk.prototype.removeListener = function(e, t) { + var r, n, o, i, a; + if (tE(t), + void 0 !== (n = this._events) && void 0 !== (r = n[e])) + if (r === t || r.listener === t) + 0 == --this._eventsCount ? this._events = Object.create(null) : (delete n[e], + n.removeListener && this.emit("removeListener", e, r.listener || t)); + else if ("function" != typeof r) { + for (o = -1, + i = r.length - 1; 0 <= i; i--) + if (r[i] === t || r[i].listener === t) { + a = r[i].listener, + o = i; + break + } + if (o < 0) + return this; + if (0 === o) + r.shift(); + else { + var s = r; + var u = o; + for (; u + 1 < s.length; u++) + s[u] = s[u + 1]; + s.pop() + } + 1 === r.length && (n[e] = r[0]), + void 0 !== n.removeListener && this.emit("removeListener", e, a || t) + } + return this + } + , + Qk.prototype.removeAllListeners = function(e) { + var t, r; + if (void 0 !== (r = this._events)) + if (void 0 === r.removeListener) + 0 === arguments.length ? (this._events = Object.create(null), + this._eventsCount = 0) : void 0 !== r[e] && (0 == --this._eventsCount ? this._events = Object.create(null) : delete r[e]); + else if (0 === arguments.length) { + for (var n, o = Object.keys(r), i = 0; i < o.length; ++i) + "removeListener" !== (n = o[i]) && this.removeAllListeners(n); + this.removeAllListeners("removeListener"), + this._events = Object.create(null), + this._eventsCount = 0 + } else if ("function" == typeof (t = r[e])) + this.removeListener(e, t); + else if (void 0 !== t) + for (i = t.length - 1; 0 <= i; i--) + this.removeListener(e, t[i]); + return this + } + , + Qk.prototype.listeners = function(e) { + return iE(this, e, !0) + } + , + Qk.prototype.rawListeners = function(e) { + return iE(this, e, !1) + } + , + Qk.listenerCount = function(e, t) { + return "function" == typeof e.listenerCount ? e.listenerCount(t) : aE.call(e, t) + } + , + Qk.prototype.listenerCount = aE, + Qk.prototype.eventNames = function() { + return 0 < this._eventsCount ? Jk(this._events) : [] + } + ; + function dE(e) { + kE.push(e) + } + function fE(t) { + return function(e) { + e = GE(FE(e)); + return 1 & t && (e = zE(e, ZE, "")), + e = 2 & t ? zE(e, HE, "$1") : e + } + } + var pE, hE, mE, gE, vE, bE, yE, _E, wE, AE, xE = new A.exports.EventEmitter, kE = [], EE = (wE = d(T.mark(function e() { + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + if (hE) { + e.next = 6; + break + } + return e.next = 3, + OE(mE); + case 3: + hE = e.sent, + xE.emit("game-data-ready", hE), + SE(); + case 6: + return e.abrupt("return", hE); + case 7: + case "end": + return e.stop() + } + }, e) + })), + function() { + return wE.apply(this, arguments) + } + ), SE = function() { + var e; + null != (e = hE) && null != (e = e.aws_tst) && e.enabled && (RE(), + null != (e = hE) && null != (e = e.aws_tst) && null != (e = e.ep) && e.api && null != (e = hE) && e.url && Wk.getGameData(null == (e = hE) ? void 0 : e.url), + setInterval(d(T.mark(function e() { + var t; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return e.prev = 0, + e.next = 3, + OE(mE); + case 3: + hE = e.sent, + null != (t = hE) && t.aws_tst, + e.next = 9; + break; + case 7: + e.prev = 7, + e.t0 = e.catch(0); + case 9: + case "end": + return e.stop() + } + }, e, null, [[0, 7]]) + })), 3e5)) + }, RE = function() { + var m = window.fetch; + window.fetch = d(T.mark(function e() { + var t, r, n, o, i, a, s, u, c, l, d, f, p = this, h = arguments; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + for (t = h.length, + r = new Array(t), + n = 0; n < t; n++) + r[n] = h[n]; + o = r[0], + i = r[1], + f = null == (f = hE) || null == (f = f.aws_tst) || null == (f = f.ep) ? void 0 : f.atm, + a = null == (a = hE) || null == (a = a.aws_tst) || null == (a = a.ep) ? void 0 : a.msgrt, + s = function(e, t) { + var r = this + , e = (D(this, p), + o.replace(e, t)); + m(e, i).then(function() { + D(this, r) + } + .bind(this)) + } + .bind(this); + try { + f && 0 < o.indexOf("tag.atom") && s("tag.atom.gamedistribution.com", "atom-tag-prod-aws.gamedistribution.com"), + a && 0 < o.indexOf("msgrt.gamedistribution.com") && (null != (u = hE) && u.aws_tst, + null != (c = hE) && null != (l = c.aws_tst) && null != (d = l.ep) && d.msgrt, + s("msgrt.gamedistribution.com", "msgrt-prod-aws.gamedistribution.com")) + } catch (e) {} + return e.next = 9, + m(o, i); + case 9: + return f = e.sent, + e.abrupt("return", f); + case 11: + case "end": + return e.stop() + } + }, e, this) + })) + }, OE = function(t) { + var s = this + , e = (pE.send("gdfw.loading", { + message: "loading" + }), + kE = [], + dE("1"), + dE("2"), + new qk) + , r = (dE("3"), + e.get("partner.domain.value")) + , u = (dE("4"), + function() { + return D(this, s), + { + gameId: t.gameId, + disableAds: {}, + preroll: !0, + midroll: 12e4, + rewardedAds: !1, + title: "", + tags: [], + category: "", + assets: [], + dmain: !0, + sdk: {}, + loader: {}, + splash: {}, + promo: {}, + dAds: {}, + pAds: {}, + mAds: {}, + rAds: {} + } + } + .bind(this)) + , c = (dE("5"), + function() { + D(this, s); + var e = n() + , e = e ? "&mode=".concat(e) : ""; + return "https://game.api.gamedistribution.com/game/v4/get/".concat(t.gameId.replace(/-/g, ""), "/?domain=").concat(r).concat(e, "&v=").concat($u.version, "&localTime=").concat((new Date).getHours()) + } + .bind(this)) + , n = (dE("6"), + function() { + var r = this + , e = (D(this, s), + new Proxy(new URLSearchParams(window.location.search),{ + get: function(e, t) { + return D(this, r), + e.get(t) + } + .bind(this) + })); + return !e.gd_mode && window.location.search.includes("gd_mode") ? window.location.search.split("gd_mode=")[1] : e.gd_mode + } + .bind(this)); + return dE("7"), + new Promise(function(n) { + var o = this + , i = (D(this, s), + dE("7.1"), + u()); + try { + console.log("--fx--"); + return false; + dE("7.2"); + var a = c(); + dE("7.3"), + fetch(a).then(function(e) { + return D(this, o), + dE("7.4"), + e.json() + } + .bind(this)).then(function(e) { + var t, r = this; + D(this, o), + dE("7.5"), + e.success ? (e = e.result.game, + dE("7.6"), + e = { + gameId: e.gameMd5, + slug: e.slug, + pname: e.pname, + dname: e.dname, + status: e.status, + description: e.description, + disableAds: e.enableAds, + preroll: e.preRoll, + midroll: 6e4 * e.timeAds, + rewardedAds: e.rewardedAds, + title: e.title, + publishedAt: e.publishedAt, + tags: e.tags, + category: e.category, + assets: e.assets, + disp_2nd_prer: e.disp_2nd_prer, + ctry_vst: e.ctry_vst, + ctry: e.ctry, + crtv: e.crtv, + dmain: e.dmain, + aws_tst: e.aws_tst, + __t4r: Ms(e.__t4r) || {}, + block_exts: Ms(e.push_cuda), + bloc_gard: Ms(e.bloc_gard), + cookie: Ms(e.cookie), + gdpr: Ms(e.gdpr), + diagnostic: Ms(e.diagnostic), + cmp: Ms(e.cmp), + gft: Ms(e.gft) || {}, + sdk: Ms(e.sdk) || {}, + sdkfw: Ms(e.sdkfw) || {}, + loader: Ms(e.loader) || {}, + splash: Ms(e.splash) || {}, + promo: Ms(e.promo) || {}, + dAds: Ms(e.dads) || {}, + pAds: Ms(e.pads) || {}, + mAds: Ms(e.mads) || {}, + rAds: Ms(e.rads) || {}, + lp: Ms(e.lp) || {}, + extsc: Ms(e.extsc) || {}, + evnts: Ms(e.evnts) || {}, + dp: Ms(e.dp) || {}, + adflw: Ms(e.adflw) || {}, + afgszf: Ms(e.afgszf) || {}, + fllc: Ms(e.fllc) || {}, + lotm: Ms(e.lotm) || {}, + t4rc: Ms(e.t4rc) || {}, + midroll_plus: Ms(e.midroll_plus) || {} + }, + dE("7.7"), + t = dn(Ft(i), e), + dE("7.8"), + t.afg_disabled = !1 === (null == (e = t.sdk) || null == (e = e.afg) ? void 0 : e.enabled), + t.url = a, + function() { + D(this, r), + void 0 !== Nu.afgEnabled && (t.afg_disabled = !Nu.afgEnabled), + void 0 !== Nu.promoEnabled && (t.promo = t.promo || {}, + t.promo = lE(lE({}, t.promo), {}, { + rainbow: { + enabled: Nu.promoEnabled + } + })) + } + .bind(this), + dE("7.9"), + null != (e = t.pAds) && e.enabled && (t.preroll = !0), + dE("7.10"), + pE.send("gdfw.success", { + message: "success" + }), + n(t)) : (i.failed = !0, + e = kE[kE.length - 1], + pE.send("gdfw.err", { + message: "".concat(e, ": json error") + }), + n(i)) + } + .bind(this)).catch(function(e) { + D(this, o); + var t = kE[kE.length - 1]; + pE.send("gdfw.err", { + message: "".concat(t, ": ").concat(e.message || e) + }), + i.failed = !0, + n(i) + } + .bind(this)) + } catch (e) { + var t = kE[kE.length - 1]; + pE.send("gdfw.err", { + message: "".concat(t, ": global ").concat(e.message || e) + }), + i.failed = !0, + n(i) + } + } + .bind(this)) + }, DE = (_E = d(T.mark(function e() { + var t; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return e.next = 2, + EE(); + case 2: + return t = e.sent, + e.abrupt("return", !(null == t || null == (t = t.sdkfw) || !t.enabled)); + case 4: + case "end": + return e.stop() + } + }, e) + })), + function() { + return _E.apply(this, arguments) + } + ), TE = (yE = d(T.mark(function e() { + var t; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return e.next = 2, + EE(); + case 2: + return t = e.sent, + t = null == t || null == (t = t.diagnostic) || !t.close_ga, + e.abrupt("return", t); + case 5: + case "end": + return e.stop() + } + }, e) + })), + function() { + return yE.apply(this, arguments) + } + ), IE = (bE = d(T.mark(function e() { + var t, r; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return e.next = 2, + EE(); + case 2: + return r = e.sent, + e.next = 5, + DE(); + case 5: + if (e.t0 = e.sent, + !e.t0) { + e.next = 8; + break + } + e.t0 = !(null == r || null == (t = r.sdkfw) || !t.handshake); + case 8: + return e.abrupt("return", e.t0); + case 9: + case "end": + return e.stop() + } + }, e) + })), + function() { + return bE.apply(this, arguments) + } + ), ME = (vE = d(T.mark(function e() { + var t, r, n, o; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return e.next = 2, + EE(); + case 2: + return n = e.sent, + o = !(null == n || null == (o = n.extsc) || !o.enabled), + e.abrupt("return", { + enabled: o, + path: o ? null == n || null == (t = n.extsc) ? void 0 : t.path : "", + name: o ? null == n || null == (t = n.extsc) ? void 0 : t.name : "", + ref: o ? null == n || null == (r = n.extsc) ? void 0 : r.ref : "", + loadedFlag: !o || null == n || null == (r = n.extsc) ? void 0 : r.loadedFlag, + loadedFlagCheck: !!o && !(null == n || null == (n = n.extsc) || !n.loadedFlagCheck) + }); + case 5: + case "end": + return e.stop() + } + }, e) + })), + function() { + return vE.apply(this, arguments) + } + ), CE = (gE = d(T.mark(function e() { + var t, r, n, o, i, a = this; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return e.next = 2, + ME(); + case 2: + if ((t = e.sent).enabled) { + e.next = 5; + break + } + return e.abrupt("return"); + case 5: + return r = t.path, + n = t.name, + o = t.ref, + e.prev = 6, + i = {}, + e.next = 10, + bn(r, n, { + error_prefix: "Blocked:", + exists: function() { + return D(this, a), + !!o && !!window[o] + } + .bind(this), + attrs: i + }); + case 10: + e.next = 16; + break; + case 12: + e.prev = 12, + e.t0 = e.catch(6), + console.log("extsc: error on external partner script load", n, e.t0), + Dn("DEVELOPER_ERROR", e.t0, "warning"); + case 16: + case "end": + return e.stop() + } + }, e, this, [[6, 12]]) + })), + function() { + return gE.apply(this, arguments) + } + ), LE = !1, PE = !1, bl = Is, hl = vl, pl = Qn, jE = so, UE = ho, $E = xp, BE = dm, Wc = Ci, NE = hl && hl.prototype, tl = (bl({ + target: "Promise", + proto: !0, + real: !0, + forced: !!hl && pl(function() { + NE.finally.call({ + then: function() {} + }, function() {}) + }) + }, { + finally: function(t) { + var r = $E(this, jE("Promise")) + , e = UE(t); + return this.then(e ? function(e) { + return BE(r, t()).then(function() { + return e + }) + } + : t, e ? function(e) { + return BE(r, t()).then(function() { + throw e + }) + } + : t) + } + }), + UE(hl) && (zn = jE("Promise").prototype.finally, + NE.finally !== zn) && Wc(NE, "finally", zn, { + unsafe: !0 + }), + "\t\n\v\f\r                 \u2028\u2029\ufeff"), FE = to, GE = Gu, ca = tl, zE = r("".replace), ZE = RegExp("^[" + ca + "]+"), HE = RegExp("(^|[^" + ca + "])[" + ca + "]+$"), Ro = { + start: fE(1), + end: fE(2), + trim: fE(3) + }, KE = Oi.PROPER, Si = Qn, qE = tl, VE = Ro.trim, WE = (Is({ + target: "String", + proto: !0, + forced: (AE = "trim", + Si(function() { + return !!qE.trim() || "​…᠎" !== "​…᠎".trim() || KE && qE.trim.name !== AE + })) + }, { + trim: function() { + return VE(this) + } + }), + ho), YE = Cr, JE = go, XE = Oo.f, po = Kn, a = n, _ = r, bw = Eu, QE = Di, w = $s.f, eS = Vo, tS = og, rS = Gu, nS = sg, ml = Yc, E = Ci, el = Qn, oS = xo, iS = Ri.enforce, R = wp, aS = x0, sS = gl, uS = oo("match"), cS = a.RegExp, lS = cS.prototype, dS = a.SyntaxError, fS = _(lS.exec), pS = _("".charAt), hS = _("".replace), mS = _("".indexOf), gS = _("".slice), vS = /^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/, bS = /a/g, yS = /a/g, x = new cS(bS) !== bS, _S = ml.MISSED_STICKY, wS = ml.UNSUPPORTED_Y; + if (bw("RegExp", po && (!x || _S || aS || sS || el(function() { + return yS[uS] = !1, + cS(bS) != bS || cS(yS) == yS || "/a/i" != cS(bS, "i") + })))) { + for (var AS = function(e, t) { + var r, n, o = eS(lS, this), i = tS(e), a = void 0 === t, s = [], u = e; + if (!o && i && a && e.constructor === AS) + return e; + if ((i || eS(lS, e)) && (e = e.source, + a) && (t = nS(u)), + e = void 0 === e ? "" : rS(e), + t = void 0 === t ? "" : rS(t), + u = e, + i = t = aS && "dotAll"in bS && (r = !!t && -1 < mS(t, "s")) ? hS(t, /s/g, "") : t, + _S && "sticky"in bS && (n = !!t && -1 < mS(t, "y")) && wS && (t = hS(t, /y/g, "")), + sS && (e = (a = function(e) { + for (var t, r = e.length, n = 0, o = "", i = [], a = {}, s = !1, u = !1, c = 0, l = ""; n <= r; n++) { + if ("\\" === (t = pS(e, n))) + t += pS(e, ++n); + else if ("]" === t) + s = !1; + else if (!s) + switch (!0) { + case "[" === t: + s = !0; + break; + case "(" === t: + fS(vS, gS(e, n + 1)) && (n += 2, + u = !0), + o += t, + c++; + continue; + case ">" === t && u: + if ("" === l || oS(a, l)) + throw new dS("Invalid capture group name"); + a[l] = !0, + u = !(i[i.length] = [l, c]), + l = ""; + continue + } + u ? l += t : o += t + } + return [o, i] + }(e))[0], + s = a[1]), + a = cS(e, t), + t = o ? this : lS, + o = AS, + JE && WE(t = t.constructor) && t !== o && YE(t = t.prototype) && t !== o.prototype && JE(a, t), + o = a, + (r || n || s.length) && (t = iS(o), + r && (t.dotAll = !0, + t.raw = AS(function(e) { + for (var t, r = e.length, n = 0, o = "", i = !1; n <= r; n++) + "\\" !== (t = pS(e, n)) ? i || "." !== t ? ("[" === t ? i = !0 : "]" === t && (i = !1), + o += t) : o += "[\\s\\S]" : o += t + pS(e, ++n); + return o + }(e), i)), + n && (t.sticky = !0), + s.length) && (t.groups = s), + e !== u) + try { + QE(o, "source", "" === u ? "(?:)" : u) + } catch (e) {} + return o + }, xS = w(cS), kS = 0; xS.length > kS; ) + !function(e, t, r) { + r in e || XE(e, r, { + configurable: !0, + get: function() { + return t[r] + }, + set: function(e) { + t[r] = e + } + }) + }(AS, cS, xS[kS++]); + (lS.constructor = AS).prototype = lS, + E(a, "RegExp", AS, { + constructor: !0 + }) + } + R("RegExp"); + var g = Is + , ES = Qa.find + , d_ = K0 + , f_ = "find" + , SS = !0 + , p_ = (f_ in [] && Array(1)[f_](function() { + SS = !1 + }), + g({ + target: "Array", + proto: !0, + forced: SS + }, { + find: function(e) { + return ES(this, e, 1 < arguments.length ? arguments[1] : void 0) + } + }), + d_(f_), + Is) + , b = qn + , RS = Es + , b_ = Hi + , OS = r([].join) + , DS = (p_({ + target: "Array", + proto: !0, + forced: b != Object || !b_("join", ",") + }, { + join: function(e) { + return OS(RS(this), void 0 === e ? "," : e) + } + }), + Qa.map) + , TS = (Is({ + target: "Array", + proto: !0, + forced: !dc("map") + }, { + map: function(e) { + return DS(this, e, 1 < arguments.length ? arguments[1] : void 0) + } + }), + Kn) + , y_ = r + , IS = e + , __ = Qn + , MS = Pu + , CS = cu + , LS = Ps + , PS = ro + , jS = qn + , US = Object.assign + , $S = Object.defineProperty + , BS = y_([].concat) + , w_ = !US || __(function() { + var e, t, r, n; + return TS && 1 !== US({ + b: 1 + }, US($S({}, "a", { + enumerable: !0, + get: function() { + $S(this, "b", { + value: 3, + enumerable: !1 + }) + } + }), { + b: 2 + })).b || (t = {}, + n = "abcdefghijklmnopqrst", + (e = {})[r = Symbol()] = 7, + n.split("").forEach(function(e) { + t[e] = e + }), + 7 != US({}, e)[r]) || MS(US({}, t)).join("") != n + }) ? function(e, t) { + for (var r = PS(e), n = arguments.length, o = 1, i = CS.f, a = LS.f; o < n; ) + for (var s, u = jS(arguments[o++]), c = i ? BS(MS(u), i(u)) : MS(u), l = c.length, d = 0; d < l; ) + s = c[d++], + TS && !IS(a, u, s) || (r[s] = u[s]); + return r + } + : US; + Is({ + target: "Object", + stat: !0, + arity: 2, + forced: Object.assign !== w_ + }, { + assign: w_ + }); + function NS(e) { + for (var t, r = [], n = aR(iR(sR(e), YS, "."), "."), o = 0; o < n.length; o++) + t = n[o], + oR(r, QS(WS, t) ? "xn--" + function(e) { + var t, r = [], n = (e = function(e) { + for (var t = [], r = 0, n = e.length; r < n; ) { + var o, i = rR(e, r++); + 55296 <= i && i <= 56319 && r < n ? 56320 == (64512 & (o = rR(e, r++))) ? oR(t, ((1023 & i) << 10) + (1023 & o) + 65536) : (oR(t, i), + r--) : oR(t, i) + } + return t + }(e)).length, o = 128, i = 0, a = 72; + for (l = 0; l < e.length; l++) + (t = e[l]) < 128 && oR(r, tR(t)); + var s = r.length + , u = s; + for (s && oR(r, "-"); u < n; ) { + for (var c = VS, l = 0; l < e.length; l++) + (t = e[l]) >= o && t < c && (c = t); + var d = u + 1; + if (c - o > eR((VS - i) / d)) + throw XS(JS); + for (i += (c - o) * d, + o = c, + l = 0; l < e.length; l++) { + if ((t = e[l]) < o && ++i > VS) + throw XS(JS); + if (t == o) { + for (var f = i, p = 36; ; ) { + var h = p <= a ? 1 : a + 26 <= p ? 26 : p - a; + if (f < h) + break; + var m = f - h + , g = 36 - h; + oR(r, tR(uR(h + m % g))), + f = eR(m / g), + p += 36 + } + oR(r, tR(uR(f))), + a = cR(i, d, u == s), + i = 0, + u++ + } + } + i++, + o++ + } + return nR(r, "") + }(t) : t); + return nR(r, ".") + } + function FS(e) { + var t, r, n, o; + if ("number" == typeof e) { + for (t = [], + r = 0; r < 4; r++) + UR(t, e % 256), + e = kR(e / 256); + return OR(t, ".") + } + if ("object" != typeof e) + return e; + for (t = "", + n = function(e) { + for (var t = null, r = 1, n = null, o = 0, i = 0; i < 8; i++) + 0 !== e[i] ? (r < o && (t = n, + r = o), + n = null, + o = 0) : (null === n && (n = i), + ++o); + return r < o && (t = n, + r = o), + t + }(e), + r = 0; r < 8; r++) + o && 0 === e[r] || (o = o && !1, + n === r ? (t += r ? ":" : "::", + o = !0) : (t += DR(e[r], 16), + r < 7 && (t += ":"))); + return "[" + t + "]" + } + function GS(e, t) { + var r = mR(e, 0); + return 32 < r && r < 127 && !fR(t, e) ? e : encodeURIComponent(e) + } + function zS(e, t) { + return 2 == e.length && RR(FR, SR(e, 0)) && (":" == (e = SR(e, 1)) || !t && "|" == e) + } + function ZS(e) { + return 1 < e.length && zS(PR(e, 0, 2)) && (2 == e.length || "/" === (e = SR(e, 2)) || "\\" === e || "?" === e || "#" === e) + } + function HS(e, t, r) { + var n, o, e = gR(e); + if (t) { + if (o = this.parse(e)) + throw AR(o); + this.searchParams = null + } else { + if (void 0 !== r && (n = new HS(r,!0)), + o = this.parse(e, null, n)) + throw AR(o); + (t = wR(new _R)).bindURL(this), + this.searchParams = t + } + } + function KS(e, t) { + return { + get: function() { + return yR(this)[e]() + }, + set: t && function(e) { + return yR(this)[t](e) + } + , + configurable: !0, + enumerable: !0 + } + } + var qS, l_ = r, VS = 2147483647, WS = /[^\0-\u007E]/, YS = /[.\u3002\uFF0E\uFF61]/g, JS = "Overflow: input needs wider integers to process", XS = RangeError, QS = l_(YS.exec), eR = Math.floor, tR = String.fromCharCode, rR = l_("".charCodeAt), nR = l_([].join), oR = l_([].push), iR = l_("".replace), aR = l_("".split), sR = l_("".toLowerCase), uR = function(e) { + return e + 22 + 75 * (e < 26) + }, cR = function(e, t, r) { + var n = 0; + for (e = r ? eR(e / 700) : e >> 1, + e += eR(e / t); 455 < e; ) + e = eR(e / 35), + n += 36; + return eR(n + 36 * e / (e + 38)) + }, k = Is, lR = Kn, ia = yl, I_ = n, M_ = ji, C_ = r, F_ = Ci, t = Qu, dR = Ap, fR = xo, mw = w_, pR = gc, hR = Xu, mR = Rl.codeAt, gR = Gu, gw = tc, vR = kp, O = o, kw = Ri, bR = kw.set, yR = kw.getterFor("URL"), _R = O.URLSearchParams, wR = O.getState, Ew = I_.URL, AR = I_.TypeError, xR = I_.parseInt, kR = Math.floor, ER = Math.pow, SR = C_("".charAt), RR = C_(/./.exec), OR = C_([].join), DR = C_(1..toString), TR = C_([].pop), IR = C_([].push), MR = C_("".replace), CR = C_([].shift), LR = C_("".split), PR = C_("".slice), jR = C_("".toLowerCase), UR = C_([].unshift), $R = "Invalid scheme", BR = "Invalid host", NR = "Invalid port", FR = /[a-z]/i, GR = /[\d+-.a-z]/i, zR = /\d/, ZR = /^0x/i, HR = /^[0-7]+$/, KR = /^\d+$/, qR = /^[\da-f]+$/i, VR = /[\0\t\n\r #%/:<>?@[\\\]^|]/, WR = /[\0\t\n\r #/:<>?@[\\\]^|]/, YR = /^[\u0000-\u0020]+/, JR = /(^|[^\u0000-\u0020])[\u0000-\u0020]+$/, XR = /[\t\n\r]/g, QR = {}, e9 = mw({}, QR, { + " ": 1, + '"': 1, + "<": 1, + ">": 1, + "`": 1 + }), t9 = mw({}, e9, { + "#": 1, + "?": 1, + "{": 1, + "}": 1 + }), r9 = mw({}, t9, { + "/": 1, + ":": 1, + ";": 1, + "=": 1, + "@": 1, + "[": 1, + "\\": 1, + "]": 1, + "^": 1, + "|": 1 + }), n9 = { + ftp: 21, + file: null, + http: 80, + https: 443, + ws: 80, + wss: 443 + }, o9 = {}, i9 = {}, a9 = {}, s9 = {}, u9 = {}, c9 = {}, l9 = {}, d9 = {}, f9 = {}, p9 = {}, h9 = {}, m9 = {}, g9 = {}, v9 = {}, b9 = {}, y9 = {}, _9 = {}, w9 = {}, A9 = {}, x9 = {}, k9 = {}, E9 = (HS.prototype = { + type: "URL", + parse: function(e, t, r) { + var n, o, i, a, s = this, u = t || o9, c = 0, l = "", d = !1, f = !1, p = !1; + for (e = gR(e), + t || (s.scheme = "", + s.username = "", + s.password = "", + s.host = null, + s.port = null, + s.path = [], + s.query = null, + s.fragment = null, + s.cannotBeABaseURL = !1, + e = MR(e, YR, ""), + e = MR(e, JR, "$1")), + e = MR(e, XR, ""), + n = pR(e); c <= n.length; ) { + switch (o = n[c], + u) { + case o9: + if (!o || !RR(FR, o)) { + if (t) + return $R; + u = a9; + continue + } + l += jR(o), + u = i9; + break; + case i9: + if (o && (RR(GR, o) || "+" == o || "-" == o || "." == o)) + l += jR(o); + else { + if (":" != o) { + if (t) + return $R; + l = "", + u = a9, + c = 0; + continue + } + if (t && (s.isSpecial() != fR(n9, l) || "file" == l && (s.includesCredentials() || null !== s.port) || "file" == s.scheme && !s.host)) + return; + if (s.scheme = l, + t) + return void (s.isSpecial() && n9[s.scheme] == s.port && (s.port = null)); + l = "", + "file" == s.scheme ? u = v9 : s.isSpecial() && r && r.scheme == s.scheme ? u = s9 : s.isSpecial() ? u = d9 : "/" == n[c + 1] ? (u = u9, + c++) : (s.cannotBeABaseURL = !0, + IR(s.path, ""), + u = A9) + } + break; + case a9: + if (!r || r.cannotBeABaseURL && "#" != o) + return $R; + if (r.cannotBeABaseURL && "#" == o) { + s.scheme = r.scheme, + s.path = hR(r.path), + s.query = r.query, + s.fragment = "", + s.cannotBeABaseURL = !0, + u = k9; + break + } + u = "file" == r.scheme ? v9 : c9; + continue; + case s9: + if ("/" != o || "/" != n[c + 1]) { + u = c9; + continue + } + u = f9, + c++; + break; + case u9: + if ("/" == o) { + u = p9; + break + } + u = w9; + continue; + case c9: + if (s.scheme = r.scheme, + o == qS) + s.username = r.username, + s.password = r.password, + s.host = r.host, + s.port = r.port, + s.path = hR(r.path), + s.query = r.query; + else if ("/" == o || "\\" == o && s.isSpecial()) + u = l9; + else if ("?" == o) + s.username = r.username, + s.password = r.password, + s.host = r.host, + s.port = r.port, + s.path = hR(r.path), + s.query = "", + u = x9; + else { + if ("#" != o) { + s.username = r.username, + s.password = r.password, + s.host = r.host, + s.port = r.port, + s.path = hR(r.path), + s.path.length--, + u = w9; + continue + } + s.username = r.username, + s.password = r.password, + s.host = r.host, + s.port = r.port, + s.path = hR(r.path), + s.query = r.query, + s.fragment = "", + u = k9 + } + break; + case l9: + if (!s.isSpecial() || "/" != o && "\\" != o) { + if ("/" != o) { + s.username = r.username, + s.password = r.password, + s.host = r.host, + s.port = r.port, + u = w9; + continue + } + u = p9 + } else + u = f9; + break; + case d9: + if (u = f9, + "/" != o || "/" != SR(l, c + 1)) + continue; + c++; + break; + case f9: + if ("/" == o || "\\" == o) + break; + u = p9; + continue; + case p9: + if ("@" == o) { + d && (l = "%40" + l); + for (var d = !0, h = pR(l), m = 0; m < h.length; m++) { + var g = h[m]; + ":" != g || p ? (g = GS(g, r9), + p ? s.password += g : s.username += g) : p = !0 + } + l = "" + } else if (o == qS || "/" == o || "?" == o || "#" == o || "\\" == o && s.isSpecial()) { + if (d && "" == l) + return "Invalid authority"; + c -= pR(l).length + 1, + l = "", + u = h9 + } else + l += o; + break; + case h9: + case m9: + if (t && "file" == s.scheme) { + u = y9; + continue + } + if (":" != o || f) { + if (o == qS || "/" == o || "?" == o || "#" == o || "\\" == o && s.isSpecial()) { + if (s.isSpecial() && "" == l) + return BR; + if (t && "" == l && (s.includesCredentials() || null !== s.port)) + return; + if (i = s.parseHost(l)) + return i; + if (l = "", + u = _9, + t) + return; + continue + } + "[" == o ? f = !0 : "]" == o && (f = !1), + l += o + } else { + if ("" == l) + return BR; + if (i = s.parseHost(l)) + return i; + if (l = "", + u = g9, + t == m9) + return + } + break; + case g9: + if (!RR(zR, o)) { + if (o == qS || "/" == o || "?" == o || "#" == o || "\\" == o && s.isSpecial() || t) { + if ("" != l) { + var v = xR(l, 10); + if (65535 < v) + return NR; + s.port = s.isSpecial() && v === n9[s.scheme] ? null : v, + l = "" + } + if (t) + return; + u = _9; + continue + } + return NR + } + l += o; + break; + case v9: + if (s.scheme = "file", + "/" == o || "\\" == o) + u = b9; + else { + if (!r || "file" != r.scheme) { + u = w9; + continue + } + if (o == qS) + s.host = r.host, + s.path = hR(r.path), + s.query = r.query; + else if ("?" == o) + s.host = r.host, + s.path = hR(r.path), + s.query = "", + u = x9; + else { + if ("#" != o) { + ZS(OR(hR(n, c), "")) || (s.host = r.host, + s.path = hR(r.path), + s.shortenPath()), + u = w9; + continue + } + s.host = r.host, + s.path = hR(r.path), + s.query = r.query, + s.fragment = "", + u = k9 + } + } + break; + case b9: + if ("/" == o || "\\" == o) { + u = y9; + break + } + r && "file" == r.scheme && !ZS(OR(hR(n, c), "")) && (zS(r.path[0], !0) ? IR(s.path, r.path[0]) : s.host = r.host), + u = w9; + continue; + case y9: + if (o == qS || "/" == o || "\\" == o || "?" == o || "#" == o) { + if (!t && zS(l)) + u = w9; + else { + if ("" == l) { + if (s.host = "", + t) + return + } else { + if (i = s.parseHost(l)) + return i; + if ("localhost" == s.host && (s.host = ""), + t) + return; + l = "" + } + u = _9 + } + continue + } + l += o; + break; + case _9: + if (s.isSpecial()) { + if (u = w9, + "/" != o && "\\" != o) + continue + } else if (t || "?" != o) + if (t || "#" != o) { + if (o != qS && (u = w9, + "/" != o)) + continue + } else + s.fragment = "", + u = k9; + else + s.query = "", + u = x9; + break; + case w9: + if (o == qS || "/" == o || "\\" == o && s.isSpecial() || !t && ("?" == o || "#" == o)) { + if (".." === (v = jR(l)) || "%2e." === v || ".%2e" === v || "%2e%2e" === v ? (s.shortenPath(), + "/" == o || "\\" == o && s.isSpecial() || IR(s.path, "")) : "." === (a = l) || "%2e" === jR(a) ? "/" == o || "\\" == o && s.isSpecial() || IR(s.path, "") : ("file" == s.scheme && !s.path.length && zS(l) && (s.host && (s.host = ""), + l = SR(l, 0) + ":"), + IR(s.path, l)), + l = "", + "file" == s.scheme && (o == qS || "?" == o || "#" == o)) + for (; 1 < s.path.length && "" === s.path[0]; ) + CR(s.path); + "?" == o ? (s.query = "", + u = x9) : "#" == o && (s.fragment = "", + u = k9) + } else + l += GS(o, t9); + break; + case A9: + "?" == o ? (s.query = "", + u = x9) : "#" == o ? (s.fragment = "", + u = k9) : o != qS && (s.path[0] += GS(o, QR)); + break; + case x9: + t || "#" != o ? o != qS && ("'" == o && s.isSpecial() ? s.query += "%27" : s.query += "#" == o ? "%23" : GS(o, QR)) : (s.fragment = "", + u = k9); + break; + case k9: + o != qS && (s.fragment += GS(o, e9)) + } + c++ + } + }, + parseHost: function(e) { + var t, r, n; + if ("[" == SR(e, 0)) + return "]" == SR(e, e.length - 1) && (t = function(e) { + function t() { + return SR(e, f) + } + var r, n, o, i, a, s, u, c = [0, 0, 0, 0, 0, 0, 0, 0], l = 0, d = null, f = 0; + if (":" == t()) { + if (":" != SR(e, 1)) + return; + f += 2, + d = ++l + } + for (; t(); ) { + if (8 == l) + return; + if (":" != t()) { + for (r = n = 0; n < 4 && RR(qR, t()); ) + r = 16 * r + xR(t(), 16), + f++, + n++; + if ("." == t()) { + if (0 == n) + return; + if (f -= n, + 6 < l) + return; + for (o = 0; t(); ) { + if (i = null, + 0 < o) { + if (!("." == t() && o < 4)) + return; + f++ + } + if (!RR(zR, t())) + return; + for (; RR(zR, t()); ) { + if (a = xR(t(), 10), + null === i) + i = a; + else { + if (0 == i) + return; + i = 10 * i + a + } + if (255 < i) + return; + f++ + } + c[l] = 256 * c[l] + i, + 2 != ++o && 4 != o || l++ + } + if (4 != o) + return; + break + } + if (":" == t()) { + if (f++, + !t()) + return + } else if (t()) + return; + c[l++] = r + } else { + if (null !== d) + return; + f++, + d = ++l + } + } + if (null !== d) + for (s = l - d, + l = 7; 0 != l && 0 < s; ) + u = c[l], + c[l--] = c[d + s - 1], + c[d + --s] = u; + else if (8 != l) + return; + return c + }(PR(e, 1, -1))) ? void (this.host = t) : BR; + if (this.isSpecial()) + return e = NS(e), + RR(VR, e) || null === (t = function(e) { + var t, r, n, o, i, a, s, u = LR(e, "."); + if (u.length && "" == u[u.length - 1] && u.length--, + 4 < (t = u.length)) + return e; + for (r = [], + n = 0; n < t; n++) { + if ("" == (o = u[n])) + return e; + if (i = 10, + 1 < o.length && "0" == SR(o, 0) && (i = RR(ZR, o) ? 16 : 8, + o = PR(o, 8 == i ? 1 : 2)), + "" === o) + a = 0; + else { + if (!RR(10 == i ? KR : 8 == i ? HR : qR, o)) + return e; + a = xR(o, i) + } + IR(r, a) + } + for (n = 0; n < t; n++) + if (a = r[n], + n == t - 1) { + if (a >= ER(256, 5 - t)) + return null + } else if (255 < a) + return null; + for (s = TR(r), + n = 0; n < r.length; n++) + s += r[n] * ER(256, 3 - n); + return s + }(e)) ? BR : void (this.host = t); + if (RR(WR, e)) + return BR; + for (t = "", + r = pR(e), + n = 0; n < r.length; n++) + t += GS(r[n], QR); + this.host = t + }, + cannotHaveUsernamePasswordPort: function() { + return !this.host || this.cannotBeABaseURL || "file" == this.scheme + }, + includesCredentials: function() { + return "" != this.username || "" != this.password + }, + isSpecial: function() { + return fR(n9, this.scheme) + }, + shortenPath: function() { + var e = this.path + , t = e.length; + !t || "file" == this.scheme && 1 == t && zS(e[0], !0) || e.length-- + }, + serialize: function() { + var e = this + , t = e.scheme + , r = e.username + , n = e.password + , o = e.host + , i = e.port + , a = e.path + , s = e.query + , u = e.fragment + , c = t + ":"; + return null !== o ? (c += "//", + e.includesCredentials() && (c += r + (n ? ":" + n : "") + "@"), + c += FS(o), + null !== i && (c += ":" + i)) : "file" == t && (c += "//"), + c += e.cannotBeABaseURL ? a[0] : a.length ? "/" + OR(a, "/") : "", + null !== s && (c += "?" + s), + null !== u && (c += "#" + u), + c + }, + setHref: function(e) { + e = this.parse(e); + if (e) + throw AR(e); + this.searchParams.update() + }, + getOrigin: function() { + var e = this.scheme + , t = this.port; + if ("blob" == e) + try { + return new E9(e.path[0]).origin + } catch (e) { + return "null" + } + return "file" != e && this.isSpecial() ? e + "://" + FS(this.host) + (null !== t ? ":" + t : "") : "null" + }, + getProtocol: function() { + return this.scheme + ":" + }, + setProtocol: function(e) { + this.parse(gR(e) + ":", o9) + }, + getUsername: function() { + return this.username + }, + setUsername: function(e) { + var t = pR(gR(e)); + if (!this.cannotHaveUsernamePasswordPort()) { + this.username = ""; + for (var r = 0; r < t.length; r++) + this.username += GS(t[r], r9) + } + }, + getPassword: function() { + return this.password + }, + setPassword: function(e) { + var t = pR(gR(e)); + if (!this.cannotHaveUsernamePasswordPort()) { + this.password = ""; + for (var r = 0; r < t.length; r++) + this.password += GS(t[r], r9) + } + }, + getHost: function() { + var e = this.host + , t = this.port; + return null === e ? "" : null === t ? FS(e) : FS(e) + ":" + t + }, + setHost: function(e) { + this.cannotBeABaseURL || this.parse(e, h9) + }, + getHostname: function() { + var e = this.host; + return null === e ? "" : FS(e) + }, + setHostname: function(e) { + this.cannotBeABaseURL || this.parse(e, m9) + }, + getPort: function() { + var e = this.port; + return null === e ? "" : gR(e) + }, + setPort: function(e) { + this.cannotHaveUsernamePasswordPort() || ("" == (e = gR(e)) ? this.port = null : this.parse(e, g9)) + }, + getPathname: function() { + var e = this.path; + return this.cannotBeABaseURL ? e[0] : e.length ? "/" + OR(e, "/") : "" + }, + setPathname: function(e) { + this.cannotBeABaseURL || (this.path = [], + this.parse(e, _9)) + }, + getSearch: function() { + var e = this.query; + return e ? "?" + e : "" + }, + setSearch: function(e) { + "" == (e = gR(e)) ? this.query = null : ("?" == SR(e, 0) && (e = PR(e, 1)), + this.query = "", + this.parse(e, x9)), + this.searchParams.update() + }, + getSearchParams: function() { + return this.searchParams.facade + }, + getHash: function() { + var e = this.fragment; + return e ? "#" + e : "" + }, + setHash: function(e) { + "" != (e = gR(e)) ? ("#" == SR(e, 0) && (e = PR(e, 1)), + this.fragment = "", + this.parse(e, k9)) : this.fragment = null + }, + update: function() { + this.query = this.searchParams.serialize() || null + } + }, + function(e) { + var t = dR(this, S9) + , r = 1 < vR(arguments.length, 1) ? arguments[1] : void 0 + , e = bR(t, new HS(e,!1,r)); + lR || (t.href = e.serialize(), + t.origin = e.getOrigin(), + t.protocol = e.getProtocol(), + t.username = e.getUsername(), + t.password = e.getPassword(), + t.host = e.getHost(), + t.hostname = e.getHostname(), + t.port = e.getPort(), + t.pathname = e.getPathname(), + t.search = e.getSearch(), + t.searchParams = e.getSearchParams(), + t.hash = e.getHash()) + } + ), S9 = E9.prototype, R9 = (lR && (t(S9, "href", KS("serialize", "setHref")), + t(S9, "origin", KS("getOrigin")), + t(S9, "protocol", KS("getProtocol", "setProtocol")), + t(S9, "username", KS("getUsername", "setUsername")), + t(S9, "password", KS("getPassword", "setPassword")), + t(S9, "host", KS("getHost", "setHost")), + t(S9, "hostname", KS("getHostname", "setHostname")), + t(S9, "port", KS("getPort", "setPort")), + t(S9, "pathname", KS("getPathname", "setPathname")), + t(S9, "search", KS("getSearch", "setSearch")), + t(S9, "searchParams", KS("getSearchParams")), + t(S9, "hash", KS("getHash", "setHash"))), + F_(S9, "toJSON", function() { + return yR(this).serialize() + }, { + enumerable: !0 + }), + F_(S9, "toString", function() { + return yR(this).serialize() + }, { + enumerable: !0 + }), + Ew && (Sw = Ew.createObjectURL, + Cw = Ew.revokeObjectURL, + Sw && F_(E9, "createObjectURL", M_(Sw, Ew)), + Cw) && F_(E9, "revokeObjectURL", M_(Cw, Ew)), + gw(E9, "URL"), + k({ + global: !0, + constructor: !0, + forced: !ia, + sham: !lR + }, { + URL: E9 + }), + pe(P9, [{ + key: "_getFakeCustomParams", + value: function() { + var e, t = { + _vid: ["bla_bla1", "bla_bla2", "bla_bla3"], + _1ld: ["1ld_1", "1ld_2", "1ld_3", "1ld_4"], + _1lp: ["1lp_1", "1lp_2"] + }, r = {}; + for (e in t) { + var n = t[e]; + r[e] = n[Math.floor(Math.random() * n.length)] + } + return r + } + }, { + key: "checkCustomParams", + value: function() { + var e = this; + try { + var t, r = {}, n = this.gameData.diagnostic && this.gameData.diagnostic.cp && this.gameData.diagnostic.cp.enabled, o = new ce(location.href,!0); + for (t in o.query) + r[t] = o.query[t]; + return 0 < Object.keys(r).filter(function(t) { + var r = this; + return D(this, e), + this.customParamKeys.some(function(e) { + return D(this, r), + e === t + } + .bind(this)) + } + .bind(this)).length || n ? (console.log("custom-params", r, n), + r) : void console.log("custom-params, none") + } catch (e) { + console.log("_checkCustomParams.Error", e) + } + } + }]), + P9), O9 = (pe(L9, [{ + key: "show", + value: function() { + this.adResumeButton.style.display = "block", + this.adResumeButtonOverlay.style.display = "block" + } + }, { + key: "hide", + value: function() { + this.adResumeButton.style.display = "none", + this.adResumeButtonOverlay.style.display = "none" + } + }, { + key: "add", + value: function() { + var e = this; + try { + var t = document.createElement("div") + , r = ((this.adResumeButton = t).id = "gd__resume__button", + t.setAttribute("title", "Resume"), + this.addStyles(), + t.classList.add("gd__resume__button"), + t.addEventListener("click", function() { + D(this, e), + this.onResume() + } + .bind(this)), + this.adContainer.appendChild(t), + document.createElement("div")); + (this.adResumeButtonOverlay = r).id = "gd__resume__button__overlay", + r.classList.add("gd__resume__button__overlay"), + this.adContainer.appendChild(r) + } catch (e) { + console.log("Resume button add error", e) + } + } + }, { + key: "addStyles", + value: function() { + var e = document.body || document.getElementsByTagName("body")[0]; + this.addStylesheet("gd__resume__button__style", e, '\n .gd__resume__button{\n background-image: url("https://img.gamedistribution.com/play-black.svg");\n background-color:white; \n width: 120px;\n height: 120px;\n position: absolute;\n display: none;\n z-index: 2000;\n cursor: pointer;\n top: calc(50% - 60px);\n left: calc(50% - 60px);\n margin: 0;\n border-radius: 50%;\n border: 2px solid white;\n animation: play-button 1s ease-in-out infinite alternate;\n -webkit-animation: play-button 1s ease-in-out infinite alternate;\n }\n \n .gd__resume__button__overlay {\n position: fixed;\n display: none;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n background-color: rgba(0,0,0,0.5);\n z-index: 1999;\n cursor: pointer;\n }\n @keyframes play-button {\n 0% {\n transform: scale(1.0);\n -webkit-transform: scale(1.0);\n }\n 100% {\n transform: scale(1.1);\n -webkit-transform: scale(1.1);\n }\n }\n .gd__resume__button:hover{\n filter: invert(100%) sepia(51%) saturate(0%) hue-rotate(346deg) brightness(104%) contrast(100%); \n }\n ') + } + }, { + key: "addStylesheet", + value: function(e, t, r) { + var n; + document.getElementById(e) || ((n = document.createElement("style")).type = "text/css", + n.id = e, + n.styleSheet ? n.styleSheet.cssText = r : n.appendChild(document.createTextNode(r)), + t.appendChild(n)) + } + }]), + L9), D9 = (pe(C9, [{ + key: "show", + value: function() { + this.rewardLabel.style.display = "block" + } + }, { + key: "hide", + value: function() { + this.rewardLabel.style.display = "none" + } + }, { + key: "add", + value: function() { + try { + var e = document.createElement("div") + , t = (this.rewardLabel = e, + document.createElement("span")); + t.innerText = "To receive the reward, please do not skip the ad", + this.addStyles(), + e.classList.add("gd__reward__label"), + t.classList.add("gd__reward__span"), + this.rewardLabel.appendChild(t), + this.adContainer.appendChild(e) + } catch (e) { + console.log(e) + } + } + }, { + key: "addStyles", + value: function() { + var e = document.body || document.getElementsByTagName("body")[0]; + this.addStylesheet("gd__reward__label__style", e, "\n .gd__reward__label{\n background-color:black; \n width: 160px;\n // height: 35px;\n position: absolute;\n display: none;\n z-index: 2000;\n cursor: pointer;\n bottom: 40px;\n left: 10px;\n margin: 0;\n border-radius: 5px;\n border: .5px solid gray;\n text-align: center;\n }\n .gd__reward__label:hover{\n filter: invert(100%) sepia(51%) saturate(0%) hue-rotate(346deg) brightness(104%) contrast(100%); \n }\n .gd__reward__span{\n color: white;\n font-size: 12px;\n padding-left: 5px;\n font-family: Verdana, Arial, Helvetica, sans-serif;\n text-align: center;\n }\n ") + } + }, { + key: "addStylesheet", + value: function(e, t, r) { + var n; + document.getElementById(e) || ((n = document.createElement("style")).type = "text/css", + n.id = e, + n.styleSheet ? n.styleSheet.cssText = r : n.appendChild(document.createTextNode(r)), + t.appendChild(n)) + } + }]), + C9), T9 = (pe(M9, [{ + key: "show", + value: function() { + this.t4rButton.style.display = "block" + } + }, { + key: "hide", + value: function() { + this.t4rButton.style.display = "none" + } + }, { + key: "add", + value: function() { + try { + var e = document.createElement("div") + , t = document.createElement("p"); + this.addStyles(), + t.innerText = "x", + e.appendChild(t), + e.id = "gd__exit__button", + e.setAttribute("title", "Exit"), + e.classList.add("gd__exit__button"), + this.t4rButton = e, + document.body.appendChild(e) + } catch (e) { + console.log("Exit button add error", e) + } + } + }, { + key: "addStyles", + value: function() { + var e = document.body || document.getElementsByTagName("body")[0]; + this.addStylesheet("gd__exit__button__style", e, "\n .gd__exit__button{\n background-color: transparent; \n width: 50px;\n height: 50px;\n position: absolute;\n pointer-events:none; \n z-index: 2000;\n top: 17px;\n right: 17px;\n margin: 0;\n border-radius: 50px;\n border: 1px solid white;\n text-align: center; \n font-size: 16px;\n line-height: normal;\n font-family: 'Arial';\n font-weight: bolder;\n }\n .gd__exit__button:hover{\n filter: invert(100%) sepia(51%) saturate(0%) hue-rotate(346deg) brightness(104%) contrast(100%); \n }") + } + }, { + key: "addStylesheet", + value: function(e, t, r) { + var n; + document.getElementById(e) || ((n = document.createElement("style")).type = "text/css", + n.id = e, + n.styleSheet ? n.styleSheet.cssText = r : n.appendChild(document.createTextNode(r)), + t.appendChild(n)) + } + }]), + M9), I9 = (new Blob([new Uint8Array([255, 227, 24, 196, 0, 0, 0, 3, 72, 1, 64, 0, 0, 4, 132, 16, 31, 227, 192, 225, 76, 255, 67, 12, 255, 221, 27, 255, 228, 97, 73, 63, 255, 195, 131, 69, 192, 232, 223, 255, 255, 207, 102, 239, 255, 255, 255, 101, 158, 206, 70, 20, 59, 255, 254, 95, 70, 149, 66, 4, 16, 128, 0, 2, 2, 32, 240, 138, 255, 36, 106, 183, 255, 227, 24, 196, 59, 11, 34, 62, 80, 49, 135, 40, 0, 253, 29, 191, 209, 200, 141, 71, 7, 255, 252, 152, 74, 15, 130, 33, 185, 6, 63, 255, 252, 195, 70, 203, 86, 53, 15, 255, 255, 247, 103, 76, 121, 64, 32, 47, 255, 34, 227, 194, 209, 138, 76, 65, 77, 69, 51, 46, 57, 55, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 255, 227, 24, 196, 73, 13, 153, 210, 100, 81, 135, 56, 0, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170, 170])],{ + type: "audio/mpeg" + }), + new Blob([new Uint8Array([0, 0, 0, 28, 102, 116, 121, 112, 105, 115, 111, 109, 0, 0, 2, 0, 105, 115, 111, 109, 105, 115, 111, 50, 109, 112, 52, 49, 0, 0, 0, 8, 102, 114, 101, 101, 0, 0, 2, 239, 109, 100, 97, 116, 33, 16, 5, 32, 164, 27, 255, 192, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 55, 167, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 112, 33, 16, 5, 32, 164, 27, 255, 192, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 55, 167, 128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 112, 0, 0, 2, 194, 109, 111, 111, 118, 0, 0, 0, 108, 109, 118, 104, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 232, 0, 0, 0, 47, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 1, 236, 116, 114, 97, 107, 0, 0, 0, 92, 116, 107, 104, 100, 0, 0, 0, 3, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 47, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 64, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36, 101, 100, 116, 115, 0, 0, 0, 28, 101, 108, 115, 116, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 47, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 100, 109, 100, 105, 97, 0, 0, 0, 32, 109, 100, 104, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 172, 68, 0, 0, 8, 0, 85, 196, 0, 0, 0, 0, 0, 45, 104, 100, 108, 114, 0, 0, 0, 0, 0, 0, 0, 0, 115, 111, 117, 110, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 83, 111, 117, 110, 100, 72, 97, 110, 100, 108, 101, 114, 0, 0, 0, 1, 15, 109, 105, 110, 102, 0, 0, 0, 16, 115, 109, 104, 100, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36, 100, 105, 110, 102, 0, 0, 0, 28, 100, 114, 101, 102, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 12, 117, 114, 108, 32, 0, 0, 0, 1, 0, 0, 0, 211, 115, 116, 98, 108, 0, 0, 0, 103, 115, 116, 115, 100, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 87, 109, 112, 52, 97, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 16, 0, 0, 0, 0, 172, 68, 0, 0, 0, 0, 0, 51, 101, 115, 100, 115, 0, 0, 0, 0, 3, 128, 128, 128, 34, 0, 2, 0, 4, 128, 128, 128, 20, 64, 21, 0, 0, 0, 0, 1, 244, 0, 0, 1, 243, 249, 5, 128, 128, 128, 2, 18, 16, 6, 128, 128, 128, 1, 2, 0, 0, 0, 24, 115, 116, 116, 115, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 4, 0, 0, 0, 0, 28, 115, 116, 115, 99, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 2, 0, 0, 0, 1, 0, 0, 0, 28, 115, 116, 115, 122, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 1, 115, 0, 0, 1, 116, 0, 0, 0, 20, 115, 116, 99, 111, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 44, 0, 0, 0, 98, 117, 100, 116, 97, 0, 0, 0, 90, 109, 101, 116, 97, 0, 0, 0, 0, 0, 0, 0, 33, 104, 100, 108, 114, 0, 0, 0, 0, 0, 0, 0, 0, 109, 100, 105, 114, 97, 112, 112, 108, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 45, 105, 108, 115, 116, 0, 0, 0, 37, 169, 116, 111, 111, 0, 0, 0, 29, 100, 97, 116, 97, 0, 0, 0, 1, 0, 0, 0, 0, 76, 97, 118, 102, 53, 54, 46, 52, 48, 46, 49, 48, 49])],{ + type: "video/mp4" + })); + function M9(e) { + le(this, M9), + this.adContainer = e + } + function C9(e, t) { + le(this, C9), + this.adContainer = e, + this.onResume = t + } + function L9(e, t) { + le(this, L9), + this.adContainer = e, + this.onResume = t + } + function P9(e) { + le(this, P9), + this.gameData = e, + this.customParamKeys = ["vid", "_1ld", "_1lp"] + } + function j9(e) { + return Object.assign({ + muted: !1, + timeout: 250, + inline: !1 + }, e) + } + function U9(e, t) { + var n, r = e.muted, o = e.timeout, e = e.inline, t = t(), i = t.element, t = t.source, a = void 0, s = void 0; + return !0 === (i.muted = r) && i.setAttribute("muted", "muted"), + !0 === e && i.setAttribute("playsinline", "playsinline"), + i.src = t, + new Promise(function(r) { + a = i.play(), + n = setTimeout(function() { + s(!1, new Error("Timeout " + o + " ms has been reached")) + }, o), + s = function(e) { + var t = 1 < arguments.length && void 0 !== arguments[1] ? arguments[1] : null; + i.remove(), + i.srcObject = null, + clearTimeout(n), + r({ + result: e, + error: t + }) + } + , + void 0 !== a ? a.then(function() { + return s(!0) + }).catch(function(e) { + return s(!1, e) + }) : s(!0) + } + ) + } + var $9, B9, N9, F9, G9, z9, Z9, H9, K9, q9, V9, W9, Y9, J9, X9, Q9, eO, tO, rO, nO, oO, iO, aO, sO, uO, cO, lO, dO, fO, pO, hO, mO, gO, vO, bO, yO, _O, wO, AO, xO, kO, EO, SO, RO, OO, DO, TO, IO = function(e) { + return U9(e = j9(e), function() { + return { + element: document.createElement("video"), + source: URL.createObjectURL(I9) + } + }) + }, Bw = { + exports: {} + }; + function MO() {} + function CO(e) { + var t = -1 + , r = null == e ? 0 : e.length; + for (this.clear(); ++t < r; ) { + var n = e[t]; + this.set(n[0], n[1]) + } + } + function LO(e) { + var t = -1 + , r = null == e ? 0 : e.length; + for (this.clear(); ++t < r; ) { + var n = e[t]; + this.set(n[0], n[1]) + } + } + function PO(e) { + var t = -1 + , r = null == e ? 0 : e.length; + for (this.clear(); ++t < r; ) { + var n = e[t]; + this.set(n[0], n[1]) + } + } + function jO(e) { + e = this.__data__ = new LO(e); + this.size = e.size + } + function UO(e, t, r) { + (void 0 === r || VO(e[t], r)) && (void 0 !== r || t in e) || BO(e, t, r) + } + function $O(e, t) { + for (var r = e.length; r--; ) + if (VO(e[r][0], t)) + return r; + return -1 + } + function BO(e, t, r) { + "__proto__" == t && hO ? hO(e, t, { + configurable: !0, + enumerable: !0, + value: r, + writable: !0 + }) : e[t] = r + } + function NO(e) { + { + if (null == e) + return void 0 === e ? W9 : K9; + if (pO && pO in Object(e)) { + var t = e + , r = nO.call(t, pO) + , n = t[pO]; + try { + var o = !(t[pO] = void 0) + } catch (t) {} + var i = iO.call(t); + return o && (r ? t[pO] = n : delete t[pO]), + i + } + return iO.call(e) + } + } + function FO(e) { + return QO(e) && NO(e) == G9 + } + function GO(m, g, v, b, y) { + m !== g && _O(g, function(e, t) { + var r, n, o, i, a, s, u, c, l, d, f, p, h; + y = y || new jO, + XO(e) ? (n = g, + i = v, + a = GO, + s = b, + u = y, + f = qO(r = m, o = t), + p = qO(n, o), + (h = u.get(p)) || ((n = void 0 === (h = s ? s(f, p, o + "", r, n, u) : void 0)) && (c = !(d = SO(p)) && RO(p), + l = !d && !c && DO(p), + h = p, + d || c || l ? h = SO(f) ? f : QO(d = f) && WO(d) ? function(e, t) { + var r = -1 + , n = e.length; + for (t = t || Array(n); ++r < n; ) + t[r] = e[r]; + return t + }(f) : c ? (n = !1, + p.slice()) : l ? (n = !1, + l = new (c = (d = p).buffer).constructor(c.byteLength), + new uO(l).set(new uO(c)), + new d.constructor(l,d.byteOffset,d.length)) : [] : function(e) { + if (QO(e) && NO(e) == q9) + return null === (e = cO(e)) || "function" == typeof (e = nO.call(e, "constructor") && e.constructor) && e instanceof e && rO.call(e) == aO + }(p) || EO(p) ? EO(h = f) ? h = function() { + for (var e = f, t = eD(f), r = void 0, n = !r, o = (r = r || {}, + -1), i = t.length; ++o < i; ) { + var a = t[o] + , s = void 0; + (n ? BO : function e(t, r, n) { + var o = t[r]; + nO.call(t, r) && VO(o, n) && (void 0 !== n || r in t) || BO(t, r, n) + } + )(r, a, s = void 0 === s ? e[a] : s) + } + return r + }() : XO(f) && !YO(f) || (h = "function" != typeof p.constructor || KO(p) ? {} : yO(cO(p))) : n = !1), + n && (u.set(p, h), + a(h, p, i, s, u), + u.delete(p))), + UO(r, o, h)) : (c = b ? b(qO(m, t), e, t + "", m, g, y) : void 0, + UO(m, t, c = void 0 === c ? e : c)) + }, eD) + } + function zO(e, t) { + var r, e = e.__data__; + return ("string" == (r = typeof t) || "number" == r || "symbol" == r || "boolean" == r ? "__proto__" !== t : null === t) ? e["string" == typeof t ? "string" : "hash"] : e.map + } + function ZO(e, t) { + e = null == e ? void 0 : e[t]; + return function e(t) { + return XO(t) && !(oO && oO in t) && (YO(t) ? sO : Y9).test(function(e) { + if (null != e) { + try { + return rO.call(e) + } catch (e) {} + try { + return e + "" + } catch (e) {} + } + return "" + }(t)) + }(e) ? e : void 0 + } + function HO(e, t) { + var r = typeof e; + return (t = null == t ? F9 : t) && ("number" == r || "symbol" != r && J9.test(e)) && -1 < e && e % 1 == 0 && e < t + } + function KO(e) { + var t = e && e.constructor; + return e === ("function" == typeof t && t.prototype || tO) + } + function qO(e, t) { + if (("constructor" !== t || "function" != typeof e[t]) && "__proto__" != t) + return e[t] + } + function VO(e, t) { + return e === t || e != e && t != t + } + function WO(e) { + return null != e && JO(e.length) && !YO(e) + } + function YO(e) { + if (XO(e)) + return (e = NO(e)) == Z9 || e == H9 || e == z9 || e == V9 + } + function JO(e) { + return "number" == typeof e && -1 < e && e % 1 == 0 && e <= F9 + } + function XO(e) { + var t = typeof e; + return null != e && ("object" == t || "function" == t) + } + function QO(e) { + return null != e && "object" == typeof e + } + function eD(e) { + return WO(e) ? function e(t, r) { + var n, o = SO(t), i = !o && EO(t), a = !o && !i && RO(t), s = !o && !i && !a && DO(t), u = o || i || a || s, c = u ? function(e, t) { + for (var r = -1, n = Array(e); ++r < e; ) + n[r] = t(r); + return n + }(t.length, String) : [], l = c.length; + for (n in t) + !r && !nO.call(t, n) || u && ("length" == n || a && ("offset" == n || "parent" == n) || s && ("buffer" == n || "byteLength" == n || "byteOffset" == n) || HO(n, l)) || c.push(n); + return c + }(e, !0) : function e(t) { + if (XO(t)) { + var r, n = KO(t), o = []; + for (r in t) + ("constructor" != r || !n && nO.call(t, r)) && o.push(r); + return o + } + var i = []; + if (null != t) + for (var a in Object(t)) + i.push(a); + return i + }(e) + } + function tD(e) { + return e + } + Gw = (v = Bw).exports, + N9 = "__lodash_hash_undefined__", + F9 = 9007199254740991, + G9 = "[object Arguments]", + z9 = "[object AsyncFunction]", + Z9 = "[object Function]", + H9 = "[object GeneratorFunction]", + K9 = "[object Null]", + q9 = "[object Object]", + V9 = "[object Proxy]", + W9 = "[object Undefined]", + Y9 = /^\[object .+?Constructor\]$/, + J9 = /^(?:0|[1-9]\d*)$/, + (X9 = {})["[object Float32Array]"] = X9["[object Float64Array]"] = X9["[object Int8Array]"] = X9["[object Int16Array]"] = X9["[object Int32Array]"] = X9["[object Uint8Array]"] = X9["[object Uint8ClampedArray]"] = X9["[object Uint16Array]"] = X9["[object Uint32Array]"] = !0, + X9[G9] = X9["[object Array]"] = X9["[object ArrayBuffer]"] = X9["[object Boolean]"] = X9["[object DataView]"] = X9["[object Date]"] = X9["[object Error]"] = X9[Z9] = X9["[object Map]"] = X9["[object Number]"] = X9[q9] = X9["[object RegExp]"] = X9["[object Set]"] = X9["[object String]"] = X9["[object WeakMap]"] = !1, + aa = "object" == typeof $ && $ && $.Object === Object && $, + Vw = "object" == typeof self && self && self.Object === Object && self, + Vw = aa || Vw || Function("return this")(), + Gw = Gw && !Gw.nodeType && Gw, + Q9 = Gw && v && !v.nodeType && v, + Gw = Q9 && Q9.exports === Gw, + eO = Gw && aa.process, + aa = (aa = function() { + try { + return Q9 && Q9.require && Q9.require("util").types || eO && eO.binding && eO.binding("util") + } catch (e) {} + }()) && aa.isTypedArray, + Ww = Array.prototype, + eA = Function.prototype, + tO = Object.prototype, + tA = Vw["__core-js_shared__"], + rO = eA.toString, + nO = tO.hasOwnProperty, + oO = (eA = /[^.]+$/.exec(tA && tA.keys && tA.keys.IE_PROTO || "")) ? "Symbol(src)_1." + eA : "", + iO = tO.toString, + aO = rO.call(Object), + sO = RegExp("^" + rO.call(nO).replace(/[\\^$.*+?()[\]{}|]/g, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"), + tA = Gw ? Vw.Buffer : void 0, + eA = Vw.Symbol, + uO = Vw.Uint8Array, + tA && tA.allocUnsafe, + $9 = Object.getPrototypeOf, + B9 = Object, + cO = function(e) { + return $9(B9(e)) + } + , + lO = Object.create, + dO = tO.propertyIsEnumerable, + fO = Ww.splice, + pO = eA ? eA.toStringTag : void 0, + hO = function() { + try { + var e = ZO(Object, "defineProperty"); + return e({}, "", {}), + e + } catch (e) {} + }(), + Gw = tA ? tA.isBuffer : void 0, + mO = Math.max, + gO = Date.now, + vO = ZO(Vw, "Map"), + bO = ZO(Object, "create"), + yO = function(e) { + if (!XO(e)) + return {}; + if (lO) + return lO(e); + MO.prototype = e; + e = new MO; + return MO.prototype = void 0, + e + } + , + CO.prototype.clear = function() { + this.__data__ = bO ? bO(null) : {}, + this.size = 0 + } + , + CO.prototype.delete = function(e) { + e = this.has(e) && delete this.__data__[e]; + return this.size -= e ? 1 : 0, + e + } + , + CO.prototype.get = function(e) { + var t, r = this.__data__; + return bO ? (t = r[e]) === N9 ? void 0 : t : nO.call(r, e) ? r[e] : void 0 + } + , + CO.prototype.has = function(e) { + var t = this.__data__; + return bO ? void 0 !== t[e] : nO.call(t, e) + } + , + CO.prototype.set = function(e, t) { + var r = this.__data__; + return this.size += this.has(e) ? 0 : 1, + r[e] = bO && void 0 === t ? N9 : t, + this + } + , + LO.prototype.clear = function() { + this.__data__ = [], + this.size = 0 + } + , + LO.prototype.delete = function(e) { + var t = this.__data__ + , e = $O(t, e); + return !(e < 0 || (e == t.length - 1 ? t.pop() : fO.call(t, e, 1), + --this.size, + 0)) + } + , + LO.prototype.get = function(e) { + var t = this.__data__ + , e = $O(t, e); + return e < 0 ? void 0 : t[e][1] + } + , + LO.prototype.has = function(e) { + return -1 < $O(this.__data__, e) + } + , + LO.prototype.set = function(e, t) { + var r = this.__data__ + , n = $O(r, e); + return n < 0 ? (++this.size, + r.push([e, t])) : r[n][1] = t, + this + } + , + PO.prototype.clear = function() { + this.size = 0, + this.__data__ = { + hash: new CO, + map: new (vO || LO), + string: new CO + } + } + , + PO.prototype.delete = function(e) { + e = zO(this, e).delete(e); + return this.size -= e ? 1 : 0, + e + } + , + PO.prototype.get = function(e) { + return zO(this, e).get(e) + } + , + PO.prototype.has = function(e) { + return zO(this, e).has(e) + } + , + PO.prototype.set = function(e, t) { + var r = zO(this, e) + , n = r.size; + return r.set(e, t), + this.size += r.size == n ? 0 : 1, + this + } + , + jO.prototype.clear = function() { + this.__data__ = new LO, + this.size = 0 + } + , + jO.prototype.delete = function(e) { + var t = this.__data__ + , e = t.delete(e); + return this.size = t.size, + e + } + , + jO.prototype.get = function(e) { + return this.__data__.get(e) + } + , + jO.prototype.has = function(e) { + return this.__data__.has(e) + } + , + jO.prototype.set = function(e, t) { + var r = this.__data__; + if (r instanceof LO) { + var n = r.__data__; + if (!vO || n.length < 199) + return n.push([e, t]), + this.size = ++r.size, + this; + r = this.__data__ = new PO(n) + } + return r.set(e, t), + this.size = r.size, + this + } + , + _O = function(e, t, r) { + for (var n = -1, o = Object(e), i = r(e), a = i.length; a--; ) { + var s = i[++n]; + if (!1 === t(o[s], s, o)) + break + } + return e + } + , + wO = hO ? function(e, t) { + return hO(e, "toString", { + configurable: !0, + enumerable: !1, + value: (r = t, + function() { + return r + } + ), + writable: !0 + }); + var r + } + : tD, + xO = AO = 0, + kO = function() { + var e = gO() + , t = 16 - (e - xO); + if (xO = e, + 0 < t) { + if (800 <= ++AO) + return arguments[0] + } else + AO = 0; + return wO.apply(void 0, arguments) + } + , + EO = FO(function() { + return arguments + }()) ? FO : function(e) { + return QO(e) && nO.call(e, "callee") && !dO.call(e, "callee") + } + , + SO = Array.isArray, + RO = Gw || function() { + return !1 + } + , + DO = aa ? (OO = aa, + function(e) { + return OO(e) + } + ) : function(e) { + return QO(e) && JO(e.length) && !!X9[NO(e)] + } + , + TO = function(e, t, r) { + GO(e, t, r) + } + , + Ww = function e(t, r) { + return kO((u = t, + l = tD, + c = mO(void 0 === r ? u.length - 1 : r, 0), + function() { + for (var e = arguments, t = -1, r = mO(e.length - c, 0), n = Array(r); ++t < r; ) + n[t] = e[c + t]; + for (var t = -1, o = Array(c + 1); ++t < c; ) + o[t] = e[t]; + o[c] = l(n); + var i = u + , a = this + , s = o; + switch (s.length) { + case 0: + return i.call(a); + case 1: + return i.call(a, s[0]); + case 2: + return i.call(a, s[0], s[1]); + case 3: + return i.call(a, s[0], s[1], s[2]) + } + return i.apply(a, s) + } + ), t + ""); + var u, c, l + }(function(e, t) { + var r = -1 + , n = t.length + , o = 1 < n ? t[n - 1] : void 0 + , i = 2 < n ? t[2] : void 0 + , o = 3 < TO.length && "function" == typeof o ? (n--, + o) : void 0; + for (i && function(e, t, r) { + var n; + if (XO(r)) + return ("number" == (n = typeof t) ? WO(r) && HO(t, r.length) : "string" == n && t in r) && VO(r[t], e) + }(t[0], t[1], i) && (o = n < 3 ? void 0 : o, + n = 1), + e = Object(e); ++r < n; ) { + var a = t[r]; + a && TO(e, a, r) + } + return e + }), + v.exports = Ww; + var rD = Bw.exports; + function nD(t, e) { + var r, n = Object.keys(t); + return Object.getOwnPropertySymbols && (r = Object.getOwnPropertySymbols(t), + e && (r = r.filter(function(e) { + return Object.getOwnPropertyDescriptor(t, e).enumerable + })), + n.push.apply(n, r)), + n + } + function oD(t) { + for (var e = 1; e < arguments.length; e++) { + var r = null != arguments[e] ? arguments[e] : {}; + e % 2 ? nD(Object(r), !0).forEach(function(e) { + Fu(t, e, r[e]) + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : nD(Object(r)).forEach(function(e) { + Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(r, e)) + }) + } + return t + } + function iD(e) { + return (null != e && e.error_url ? "".concat(((t = e).promo_url ? '\n \n \n GDFP\n \n \n \n \n \n \n \n \n \n \n Rainbow\n \n \n \n \n \n \n \n ') : t.fallback_url ? '\n \n \n GDFP\n \n \n \n \n \n \n \n \n \n \n Rainbow\n \n \n \n \n \n \n \n ') : '\n \n \n GDFP\n \n \n \n \n \n ")).trim(), "") : '")).trim(); + var t + } + var aD, sD = "13998", uD = "_cc".concat(sD), cD = ["https://tags.crwdcntrl.net/c/".concat(sD, "/cc.js?ns=").concat(uD)], lD = function() { + return !!aD && "function" == typeof aD.bcpf && "function" == typeof aD.add + }, dD = function(e, t) { + try { + lD() && (aD.add(e, t), + "lotame add success ".concat(e, " ").concat(t)) + } catch (e) { + err + } + }, fD = function(e, t) { + try { + lD() && (aD.bcpw(e, t), + "lotame send success ".concat(e, " ").concat(t)) + } catch (e) {} + }, pD = new qk, hD = { + preroll: "game-start-video", + midroll: "mid-level-video", + rewarded: "rewarded-video" + }, mD = (new qk).get("partner.domain.value"), gD = ["latimes.com"], vD = { + exist: function(e) { + var t = this; + return "Softgames-Azerion" === e.dname && gD.some(function(e) { + return D(this, t), + e === mD + } + .bind(this)) + }, + get: function(e, t) { + return n = t, + { + "latimes.com": function() { + return function(e, t) { + var r, n = this, o = (e = e, + t = t, + r = pD.get("partner.url.value"), + t = hD[t], + e = "".concat("web.latimes/games-puzzles-crossword", "/").concat(e, "/").concat(t), + { + env: "vp", + iu: "/".concat("21787098806", "/").concat(e), + description_url: r, + tfcd: 0, + npa: 0, + sz: "400x300|480x360|480x361|640x360|640x480", + gdfp_req: 1, + output: "vast", + unviewed_position_start: 1, + impl: "s", + correlator: "".concat(Date.now()) + }), t = Object.keys(o).map(function(e) { + return D(this, n), + "".concat(e, "=").concat(o[e]) + } + .bind(this)).join("&"); + return "".concat("https://pubads.g.doubleclick.net/gampad/ads", "?").concat(t) + }(n.slug, r) + } + }[mD](r = e); + var r, n + } + }; + function bD(t, e) { + var r, n = Object.keys(t); + return Object.getOwnPropertySymbols && (r = Object.getOwnPropertySymbols(t), + e && (r = r.filter(function(e) { + return Object.getOwnPropertyDescriptor(t, e).enumerable + })), + n.push.apply(n, r)), + n + } + function yD(t) { + for (var e = 1; e < arguments.length; e++) { + var r = null != arguments[e] ? arguments[e] : {}; + e % 2 ? bD(Object(r), !0).forEach(function(e) { + Fu(t, e, r[e]) + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : bD(Object(r)).forEach(function(e) { + Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(r, e)) + }) + } + return t + } + function _D(e, t) { + console.log(e, t) + } + var wD, AD, xD, kD, ED, SD, RD, OD, DD, TD, ID, MD, CD, LD, PD, jD, UD, $D, BD, ND, FD, GD, zD, ZD = new A.exports.EventEmitter, HD = null, KD = (pe(XD, [{ + key: "start", + value: (zD = d(T.mark(function e() { + var t, r, n, o = this; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return e.prev = 0, + e.next = 3, + this.adSystemInitialize(d(T.mark(function e() { + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return e.next = 2, + o._init_afg_script({ + adsense_channel: "4089988593" + }); + case 2: + case "end": + return e.stop() + } + }, e) + }))); + case 3: + return t = e.sent, + this.afgInitSuccess = t.success, + e.next = 7, + this.adSystemInitialize(d(T.mark(function e() { + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return e.next = 2, + o._init_hl_script(); + case 2: + return e.next = 4, + o._init_ima_script(); + case 4: + o._createPlayer(), + o._setUpIMA(); + case 6: + case "end": + return e.stop() + } + }, e) + }))); + case 7: + if (r = e.sent, + this.imaInitSuccess = r.success, + n = [], + this.afgInitSuccess || n.push(t.error), + this.imaInitSuccess || n.push(r.error), + 0 < n.length) + throw n[0]; + e.next = 14; + break; + case 14: + window.eventTest = function(e) { + D(this, o), + this._broadcast(e, { + message: "", + status: "success" + }) + } + .bind(this), + e.next = 21; + break; + case 17: + throw e.prev = 17, + e.t0 = e.catch(0), + Ls("gd-adflow error on ads.start", e.t0), + new Error(e.t0); + case 21: + case "end": + return e.stop() + } + }, e, this, [[0, 17]]) + })), + function() { + return zD.apply(this, arguments) + } + ) + }, { + key: "adSystemInitialize", + value: (GD = d(T.mark(function e(t) { + var r; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return r = { + success: !1 + }, + e.prev = 1, + e.next = 4, + t(); + case 4: + r.success = !0, + e.next = 10; + break; + case 7: + e.prev = 7, + e.t0 = e.catch(1), + r.error = e.t0; + case 10: + return e.abrupt("return", r); + case 12: + case "end": + return e.stop() + } + }, e, null, [[1, 7]]) + })), + function(e) { + return GD.apply(this, arguments) + } + ) + }, { + key: "_getDefaultSpilAdapterConfig", + value: function() { + return { + vast: null, + url: "https://pubads.g.doubleclick.net/gampad/ads", + query: { + correlator: "{{CACHEBUSTER}}", + description_url: "{{PAGE_URL}}", + env: "vp", + gdfp_req: 1, + impl: "s", + iu: "/59392726/gd_instream", + npa: 0, + output: "vast", + sz: "640x480|400x300", + tfcd: 0, + unviewed_position_start: 1 + } + } + } + }, { + key: "_getSpilUrl", + value: (FD = d(T.mark(function e(t) { + var r, n, o, i, a; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return n = t.adType, + o = t.options, + e.prev = 1, + r = null == (r = this.gameData.adflw) || null == (r = r.adapterConfig) ? void 0 : r.spil, + n = this.nextAdPosition(n), + e.next = 6, + this._create_dp_context(n, o); + case 6: + return o = e.sent, + a = r && (this.gameData, + r[n] || r.default) || this._getDefaultSpilAdapterConfig(), + i = 100 * o.floor_price, + o.floor_price, + a = this._createCustomAdVastUrl(a, { + tnl_keys: { + floor_price: i + } + }), + i = a.url, + a = { + url: i, + dp: o, + hl: { + bidFloorApplied: !0 + } + }, + e.abrupt("return", a); + case 17: + e.prev = 17, + e.t0 = e.catch(1), + console.log("spil-adaptor: Error on getting spil", e.t0); + case 20: + case "end": + return e.stop() + } + }, e, this, [[1, 17]]) + })), + function(e) { + return FD.apply(this, arguments) + } + ) + }, { + key: "_getAdVast", + value: function(u, c) { + var t, l = this; + return new Promise((t = d(T.mark(function e(n) { + var o, t, i, a, r, s = this; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + if (kn && xn("gd_debug_ex") && xn("gd_tag")) + return r = l.IMASampleTags[u], + t = Math.floor(Math.random() * r.length), + r = r[t], + n({ + url: r + }), + e.abrupt("return"); + e.next = 6; + break; + case 6: + if ("spil" === c.adapter) + return e.abrupt("return", n(l._getSpilUrl({ + adType: u, + options: c + }))); + e.next = 8; + break; + case 8: + if (void 0 === window.idhb.requestAds) + throw new Error("Prebid.js wrapper script hit an error or didn't exist!"); + e.next = 10; + break; + case 10: + return e.prev = 10, + o = l.nextAdPosition(u), + l._broadcast("AD_REQUEST", { + message: o + }), + t = l.options, + "preroll" === o && zt(t.preroll) ? t = t.preroll : "midroll" === o && zt(t.midroll) ? t = t.midroll : "rewarded" === o && zt(t.rewarded) && (t = t.rewarded), + i = "rewarded" === o ? "rewardedVideo" : "gdbanner" === o ? "gd__banner" : "midroll" === o ? "midroll" : "video1", + e.next = 18, + window.idhb.isLoaded(); + case 18: + return e.next = 20, + l._create_dp_context(o, c); + case 20: + a = e.sent, + Cs("gd-adflow, before idhb", o, i), + r = window.idhb.getAdserverTargetingForAdSlot(i), + window.idhb.setAdserverTargeting(yD(yD({}, r), {}, { + adaptor_order: c.adapterIndex + })), + window.idhb.getAdserverTargetingForAdSlot(i), + window.idhb.requestAds({ + slots: Fu({}, i, { + bidFloor: (null == a ? void 0 : a.floor_price) || void 0 + }), + callback: function(e, t) { + var r = this + , e = (D(this, s), + !a || null != t && t.bidFloorApplied || fetch(a.skip_url).catch(function(e) { + D(this, r) + } + .bind(this)), + { + src: "hl", + tnl_keys: yD(yD({}, window.idhb.getAdserverTargetingForAdSlot(i)), {}, { + tnl_ad_pos: o, + tnl_asset_id: l.gameData.gameId + }), + url: e, + dp: a, + hl: t + }); + l._extend_hl_url(e), + n(e) + } + .bind(this) + }), + e.next = 32; + break; + case 29: + throw e.prev = 29, + e.t0 = e.catch(10), + new Error(e.t0); + case 32: + case "end": + return e.stop() + } + }, e, this, [[10, 29]]) + })), + function(e) { + return t.apply(this, arguments) + } + )) + } + }, { + key: "nextAdPosition", + value: function(e) { + return e === m.Rewarded ? (this.adRewardedCount++, + "rewarded") : e !== m.Interstitial || ((e = !1 === this.gameData.preroll || 1 === this.adPrerollCount) ? this.adMidrollCount++ : this.adPrerollCount++, + e) || 0 < this.adMidrollCount ? "midroll" : "preroll" + } + }, { + key: "getAdPosition", + value: function(e) { + return e === m.Rewarded ? "rewarded" : e !== m.Interstitial || !1 === this.gameData.preroll || 1 === this.adPrerollCount || 0 < this.adMidrollCount ? "midroll" : "preroll" + } + }, { + key: "getCurrentAdPosition", + value: function(e) { + return e === m.Interstitial ? 1 === this.adPrerollCount && 0 === this.adMidrollCount ? "preroll" : "midroll" : e === m.Rewarded ? "rewarded" : void 0 + } + }, { + key: "_requestPromo", + value: function(e, t) { + var r = new google.ima.AdsRequest; + return r.adsResponse = ' \n \n \n Rainbow\n \n \n \n \n ").trim(), + r.linearAdSlotWidth = this.options.width, + r.linearAdSlotHeight = this.options.height, + r.nonLinearAdSlotWidth = this.options.width, + r.nonLinearAdSlotHeight = this.options.height, + r.forceNonLinearFullSlot = !0, + this.options.vast_load_timeout && (r.vastLoadTimeout = this.options.vast_load_timeout), + r.setAdWillAutoPlay(t.autoplayAllowed), + r.setAdWillPlayMuted(t.autoplayRequiresMute), + this.adsLoader.requestAds(r), + r + } + }, { + key: "_requestAd", + value: function(x, k) { + var E = this; + return k = k || {}, + new Promise(function(e) { + var t, r, n, o, i, a, s, u, c = this; + if (D(this, E), + "undefined" == typeof google) + throw new Error("Unable to load ad, google IMA SDK not defined."); + try { + var l, d, f, p, h, m = null == x || null == (l = x.tnl_keys) ? void 0 : l.tnl_ad_pos, g = (this.adSuccess = !1, + new google.ima.AdsRequest), v = this._transformVast(x, k), b = yD(yD({}, k), {}, { + adTag: v, + tnl_ad_pos: m + }), y = (this.adCounter[m] = this.adCounter[m] || 0, + this.adCounter[m]++, + x.dp), _ = x.hl, w = ((this.current_dp = y) && !v.bidder && (y.adtag_url = v.url, + this._extend_dp_with_adsense(y, _, null == x ? void 0 : x.tnl_keys)), + this._isVMAP(m)), A = (!function() { + D(this, c), + k.shouldFail && (y ? (y.adtag_url = "dp_original_broken", + y.fallback_url = "dp_fallback_broken") : v.url = "original_broken", + null != y && y.adtag_url, + null != y && y.fallback_url, + v.url) + } + .bind(this), + this._getExternalVast(null == (d = k) ? void 0 : d.adType)); + A ? g.adTagUrl = A : w ? (n = this._get_vmap_context({ + dp: y, + adtag: v, + position: "preroll" === b.tnl_ad_pos ? "preroll" : "midroll", + config: this._get_vmap_config(m) + }), + o = n.position || "midroll", + i = n.dp_1, + a = n.dp_2, + s = Date.now(), + (u = new ce(n.adtag_url_1,!0)).query = oD(oD({}, u.query), {}, { + ad_rule: 0, + vpos: o, + pod: 1, + ppos: 1, + lip: !0, + correlator: s, + output: "xml_vast3" + }), + u = u.toString(), + (n = new ce(n.adtag_url_2,!0)).query = oD(oD({}, n.query), {}, { + ad_rule: 0, + vpos: o, + pod: 1, + correlator: ++s, + output: "xml_vast3" + }), + o = n.toString(), + s = Date.now(), + f = '\n\n\n \n ').concat(iD({ + id: s++, + adtag_url: u, + error_url: null == i ? void 0 : i.error_url, + impression_url: null == i ? void 0 : i.impression_url, + fallback_url: null == i ? void 0 : i.fallback_url, + fallback_imp_url: null == i ? void 0 : i.fallback_imp_url + }), '\n \n\n\n \n ').concat(iD({ + id: +s, + adtag_url: o, + error_url: null == a ? void 0 : a.error_url, + impression_url: null == a ? void 0 : a.impression_url, + fallback_url: null == a ? void 0 : a.fallback_url, + fallback_imp_url: null == a ? void 0 : a.fallback_imp_url + }), '\n \n \n \n \n\n').trim(), + g.adsResponse = f) : y && _.bidFloorApplied ? (p = ((r = y).promo_url ? r.fallback_url ? '\n \n \n \n GDFP\n \n \n \n \n \n \n \n \n \n \n ADS\n \n \n \n \n \n \n \n \n \n Rainbow\n \n \n \n \n \n \n \n ') : '\n \n \n \n GDFP\n \n \n \n \n \n \n \n \n \n \n Rainbow\n \n \n \n \n \n \n \n ') : r.fallback_url ? '\n \n \n \n GDFP\n \n \n \n \n \n \n \n \n \n \n ADS\n \n \n \n \n \n \n \n ') : '\n \n \n \n GDFP\n \n \n \n \n \n ")).trim(), + g.adsResponse = p) : y && y.fallback_url ? (h = '\n \n \n \n GDFP\n \n \n \n \n \n \n \n \n \n ADS\n \n \n \n \n \n \n \n ').trim(), + g.adsResponse = h) : g.adTagUrl = v.url, + g.linearAdSlotWidth = this.options.width, + g.linearAdSlotHeight = this.options.height, + g.nonLinearAdSlotWidth = this.options.width, + g.nonLinearAdSlotHeight = this.options.height, + g.forceNonLinearFullSlot = !0, + this.options.vast_load_timeout && (g.vastLoadTimeout = this.options.vast_load_timeout), + g.setAdWillAutoPlay(k.autoplayAllowed), + g.setAdWillPlayMuted(k.autoplayRequiresMute), + this.adsLoader.requestAds(g, b); + try { + this._broadcast("AD_SDK_REQUEST", { + message: b + }) + } catch (e) {} + e(g) + } catch (e) { + throw new Error(e) + } + } + .bind(this)) + } + }, { + key: "_getExternalVast", + value: function(e) { + try { + var t = this.getCurrentAdPosition(e) + , r = vD.exist(this.gameData) && vD.get(t, this.gameData) + } catch (e) { + console.log("external-vast err", e) + } + return r + } + }, { + key: "cancel", + value: function(e) { + var t; + !1 !== this.requestRunning && (this.requestRunning = !1, + this._resetAdsLoader(), + this._hide("cancel"), + e = 0 <= (null == e || null == (e = e.message) ? void 0 : e.indexOf("NO_VAST_URL")), + this._broadcast(t = "AD_SDK_CANCELED", { + name: t, + message: "Advertisement has been canceled.", + status: "warning", + noVast: e, + analytics: { + category: this.eventCategory, + action: t, + label: this.gameData.gameId + } + })) + } + }, { + key: "_checkAutoPlay", + value: (ND = d(T.mark(function e() { + var o = this; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return e.abrupt("return", new Promise(function(r, e) { + var n = this + , t = (D(this, o), + navigator.userAgent.toLowerCase()); + -1 < t.indexOf("safari") && t.indexOf("chrome") < 0 ? r({ + autoplayAllowed: !0, + autoplayRequiresMute: !0 + }) : IO({ + inline: !0, + muted: !1 + }).then(function(e) { + D(this, n); + var t = e.result; + e.error, + r(!0 === t ? { + autoplayAllowed: !0, + autoplayRequiresMute: !1 + } : { + autoplayAllowed: !0, + autoplayRequiresMute: !0 + }) + } + .bind(this)) + } + .bind(this))); + case 1: + case "end": + return e.stop() + } + }, e, this) + })), + function() { + return ND.apply(this, arguments) + } + ) + }, { + key: "_initDisplayContainerWithAutoPlay", + value: (BD = d(T.mark(function e() { + var t; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return e.next = 2, + this._checkAutoPlay(!1); + case 2: + return t = e.sent, + this._autoplay = t, + this.video_ad_player.autoplay = t.autoplayAllowed, + this.video_ad_player.volume = t.autoplayRequiresMute ? 0 : 1, + this.video_ad_player.muted = !!t.autoplayRequiresMute, + t.adDisplayContainerInitialized || (this.adDisplayContainer.initialize(), + this.adDisplayContainerInitialized = !0), + e.abrupt("return", t); + case 9: + case "end": + return e.stop() + } + }, e, this) + })), + function() { + return BD.apply(this, arguments) + } + ) + }, { + key: "startAd", + value: ($D = d(T.mark(function e(t) { + var r, n, o = this; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + if (r = t.adType, + n = t.params, + this.adType_ = r, + this.adContext = yD(yD({}, n), {}, { + adType: r + }), + "promo" === (null == n ? void 0 : n.adapter)) + return e.abrupt("return", this._startPromo(n, r)); + e.next = 5; + break; + case 5: + if ("adsense" !== (null == n ? void 0 : n.adapter)) + e.next = 29; + else if (r !== m.Interstitial) + e.next = 22; + else { + if ("preroll" === (null == n ? void 0 : n.position)) + return e.abrupt("return", this._startAdsensePlacementPreroll(t)); + e.next = 11 + } + break; + case 11: + if ("start" === (null == n ? void 0 : n.position)) + return e.abrupt("return", this._startAdsensePlacementStart(t)); + e.next = 15; + break; + case 15: + if ("next" === (null == n ? void 0 : n.position)) + return e.abrupt("return", this._startAdsensePlacementNext(t)); + e.next = 19; + break; + case 19: + return e.abrupt("return", this._startAdsensePlacementPreroll(t)); + case 20: + e.next = 27; + break; + case 22: + if (r === m.Rewarded) + return e.abrupt("return", this._startAdsensePlacementRewardedAd(t)); + e.next = 26; + break; + case 26: + case 39: + throw new Error("Unsupported ad type"); + case 27: + e.next = 40; + break; + case 29: + if (["ima", "spil"].some(function(e) { + return D(this, o), + e === (null == n ? void 0 : n.adapter) + } + .bind(this))) { + if (r === m.Interstitial) + return e.abrupt("return", this._startInterstitialAd(n)); + e.next = 35 + } else + e.next = 40; + break; + case 35: + if (r === m.Rewarded) + return e.abrupt("return", this._startRewardedAd(n)); + e.next = 39; + break; + case 40: + case "end": + return e.stop() + } + }, e, this) + })), + function(e) { + return $D.apply(this, arguments) + } + ) + }, { + key: "preloadAd", + value: (UD = d(T.mark(function e(t) { + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + if (t === m.Interstitial) + return e.abrupt("return", "gdsdk://preloaded"); + e.next = 4; + break; + case 4: + if (t === m.Rewarded) + return e.abrupt("return", "gdsdk://preloaded"); + e.next = 8; + break; + case 8: + throw new Error("Unsupported ad type"); + case 9: + case "end": + return e.stop() + } + }, e) + })), + function(e) { + return UD.apply(this, arguments) + } + ) + }, { + key: "addAdResume", + value: function() { + var e = this + , t = function() { + D(this, e), + this.adsManager.resume() + } + .bind(this); + try { + this.adResume = new O9(this.adContainer,t), + this.adResume.add(), + this.rewardedLabel = new D9(this.adContainer,t), + this.rewardedLabel.add() + } catch (e) { + console.log("error on adding adResume", e) + } + } + }, { + key: "loadDisplayAd", + value: (jD = d(T.mark(function e(c) { + var l = this; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return e.abrupt("return", new Promise(function() { + var r = d(T.mark(function e(t, r) { + var n, o, i, a, s, u = this; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return e.prev = 0, + (o = c ? c.containerId : null) || r("Container id is not specified"), + n = document.getElementById(o), + document.getElementById(o) || r("No container is found with this id - ".concat(o)), + void 0 === window.idhb.requestAds && r("Prebid.js wrapper script hit an error or didn't exist!"), + o = c.slotId || "gd__banner@".concat(o), + document.getElementById(o) || (a = "\n .gd__banner{\n z-index: ".concat(Pn, ";\n height: 100%;\n display: flex !important;\n align-items: center;\n justify-content: center;\n }"), + document.getElementById("gd__banner__style") || ((i = document.createElement("style")).type = "text/css", + i.id = "gd__banner__style", + i.styleSheet ? i.styleSheet.cssText = a : i.appendChild(document.createTextNode(a)), + n.appendChild(i)), + (a = document.createElement("div")).id = o, + a.classList.add("gd__banner"), + n.appendChild(a)), + e.next = 11, + l._create_dp_display_context(); + case 11: + l.atom_display = e.sent, + l.atom_display, + null != (i = l.atom_display) && i.params && window.idhb.setAdserverTargeting(null == (a = l.atom_display) ? void 0 : a.params), + (s = {})[o] = { + maxSize: [n.offsetWidth, n.offsetHeight] + }, + window.idhb.requestAds({ + slots: s, + callback: function(e) { + D(this, u), + JSON.stringify(e, null, 2) + } + .bind(this) + }), + t(), + e.next = 24; + break; + case 20: + e.prev = 20, + e.t0 = e.catch(0), + console.log("display_test error", e.t0), + r(e.t0.message || e.t0); + case 24: + case "end": + return e.stop() + } + }, e, this, [[0, 20]]) + })); + return function(e, t) { + return r.apply(this, arguments) + } + }())); + case 1: + case "end": + return e.stop() + } + }, e) + })), + function(e) { + return jD.apply(this, arguments) + } + ) + }, { + key: "_startInterstitialAd", + value: (PD = d(T.mark(function e(t) { + var r, n, o, i = this; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + if (e.prev = 0, + this.requestRunning) + return this._broadcast("AD_IS_ALREADY_RUNNING", { + status: "warning" + }), + e.abrupt("return"); + e.next = 4; + break; + case 4: + !function() { + if (D(this, i), + Nu.fictionalIMAError) + return this._broadcast("AD_ERROR", { + message: "fictional IMA error", + status: "error", + skipForward: !0 + }), + !0 + } + .bind(this), + e.next = 7; + break; + case 7: + return this.requestRunning = !0, + e.next = 10, + this._initDisplayContainerWithAutoPlay(); + case 10: + return r = e.sent, + e.next = 13, + this._loadInterstitialAd(yD(yD({}, r), t)); + case 13: + if (n = e.sent, + o = n.success, + n.args, + o) { + e.next = 18; + break + } + return e.abrupt("return"); + case 18: + r.autoplayRequiresMute && this.adsManager.setVolume(0), + this.adsManager.init(this.options.width, this.options.height, google.ima.ViewMode.NORMAL), + this.adsManager.start(), + e.next = 28; + break; + case 23: + throw e.prev = 23, + e.t0 = e.catch(0), + e.t0, + this._onError(e.t0), + e.t0; + case 28: + case "end": + return e.stop() + } + }, e, this, [[0, 23]]) + })), + function(e) { + return PD.apply(this, arguments) + } + ) + }, { + key: "_startPromo", + value: (LD = d(T.mark(function e(t, r) { + var n, o, i; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + if (e.prev = 0, + this.requestRunning) + return this._broadcast("AD_IS_ALREADY_RUNNING", { + status: "warning" + }), + e.abrupt("return"); + e.next = 4; + break; + case 4: + return this.requestRunning = !0, + this.adSuccess = !1, + e.next = 8, + this._initDisplayContainerWithAutoPlay(); + case 8: + return n = e.sent, + e.next = 11, + this._loadPromo(yD(yD({}, n), t), r); + case 11: + if (o = e.sent, + i = o.success, + o.args, + i) { + e.next = 16; + break + } + return e.abrupt("return"); + case 16: + n.autoplayRequiresMute && this.adsManager.setVolume(0), + this.adsManager.init(this.options.width, this.options.height, google.ima.ViewMode.NORMAL), + this.adsManager.start(), + this.msgrt.send("promo.adsense", { + message: "".concat(t.position, " success") + }), + e.next = 27; + break; + case 22: + throw e.prev = 22, + e.t0 = e.catch(0), + this.msgrt.send("promo.adsense.err", { + message: "".concat(t.position, " failure,").concat(e.t0.message || e.t0, ", [").concat(this.parentURL, "]") + }), + this._onError(e.t0), + e.t0; + case 27: + case "end": + return e.stop() + } + }, e, this, [[0, 22]]) + })), + function(e, t) { + return LD.apply(this, arguments) + } + ) + }, { + key: "_loadPromo", + value: (CD = d(T.mark(function e(t, r) { + var n; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return this._resetAdsLoader(), + e.prev = 1, + n = this.nextAdPosition(r), + n = this._create_promo_context(n), + this._requestPromo(n, yD({ + adType: m.Interstitial + }, t)), + e.next = 7, + this._waitOnAdLoad(); + case 7: + return e.abrupt("return", e.sent); + case 10: + throw e.prev = 10, + e.t0 = e.catch(1), + new Error(e.t0); + case 13: + case "end": + return e.stop() + } + }, e, this, [[1, 10]]) + })), + function(e, t) { + return CD.apply(this, arguments) + } + ) + }, { + key: "_loadInterstitialAd", + value: (MD = d(T.mark(function e(t) { + var r; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + if (this._resetAdsLoader(), + e.prev = 1, + e.t0 = this.preloadedInterstitialAdVast, + e.t0) { + e.next = 7; + break + } + return e.next = 6, + this._getAdVast(m.Interstitial, t); + case 6: + e.t0 = e.sent; + case 7: + if (r = e.t0, + delete this.preloadedInterstitialAdVast, + r.url) { + e.next = 12; + break + } + throw new Error("NO_VAST_URL"); + case 12: + return e.next = 14, + this._requestAd(r, yD({ + adType: m.Interstitial + }, t)); + case 14: + return e.sent, + e.next = 17, + this._waitOnAdLoad(); + case 17: + return e.abrupt("return", e.sent); + case 20: + throw e.prev = 20, + e.t1 = e.catch(1), + console.log("VAST_URL error", e.t1), + new Error(e.t1); + case 24: + case "end": + return e.stop() + } + }, e, this, [[1, 20]]) + })), + function(e) { + return MD.apply(this, arguments) + } + ) + }, { + key: "_waitOnAdLoad", + value: function() { + var a = this; + return new Promise(function(r, e) { + var n = this + , o = (D(this, a), + "videoad.preloadad") + , t = (this.eventBus.unsubscribeScope(o), + function(e) { + var t = this; + D(this, n), + setTimeout(function() { + D(this, t), + this.eventBus.unsubscribeScope(o), + r({ + success: !0, + args: e + }) + } + .bind(this), 1) + } + .bind(this)) + , i = function(e) { + var t = this; + D(this, n), + setTimeout(function() { + D(this, t), + this.eventBus.unsubscribeScope(o), + r({ + success: !1, + args: e + }) + } + .bind(this), 1) + } + .bind(this); + this.eventBus.subscribe("AD_SDK_MANAGER_READY", t, o), + this.eventBus.subscribe("AD_SDK_CANCELED", i, o), + this.eventBus.subscribe("AD_ERROR", i, o) + } + .bind(this)) + } + }, { + key: "_startRewardedAd", + value: (ID = d(T.mark(function e(t) { + var r, n, o, i = this; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + if (e.prev = 0, + this.requestRunning) + return this._broadcast("AD_IS_ALREADY_RUNNING", { + status: "warning" + }), + e.abrupt("return"); + e.next = 4; + break; + case 4: + !function() { + if (D(this, i), + Nu.fictionalIMAError) + return this._broadcast("AD_ERROR", { + message: "fictional IMA error", + status: "error", + skipForward: !0 + }), + !0 + } + .bind(this), + e.next = 7; + break; + case 7: + return this.requestRunning = !0, + e.next = 10, + this._initDisplayContainerWithAutoPlay(); + case 10: + return r = e.sent, + e.next = 13, + this._loadRewardedAd(yD(yD({}, r), t)); + case 13: + if (n = e.sent, + o = n.success, + n.args, + o) { + e.next = 18; + break + } + return e.abrupt("return"); + case 18: + r.autoplayRequiresMute && this.adsManager.setVolume(0), + this.adsManager.init(this.options.width, this.options.height, google.ima.ViewMode.NORMAL), + this.adsManager.start(), + e.next = 27; + break; + case 23: + throw e.prev = 23, + e.t0 = e.catch(0), + this._onError(e.t0), + e.t0; + case 27: + case "end": + return e.stop() + } + }, e, this, [[0, 23]]) + })), + function(e) { + return ID.apply(this, arguments) + } + ) + }, { + key: "_loadRewardedAd", + value: (TD = d(T.mark(function e(t) { + var r; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + if (this._resetAdsLoader(), + e.prev = 1, + e.t0 = this.preloadedRewardedAdVast, + e.t0) { + e.next = 7; + break + } + return e.next = 6, + this._getAdVast(m.Rewarded, t); + case 6: + e.t0 = e.sent; + case 7: + return r = e.t0, + delete this.preloadedRewardedAdVast, + e.next = 11, + this._requestAd(r, yD({ + adType: m.Rewarded + }, t)); + case 11: + return e.sent, + e.next = 14, + this._waitOnAdLoad(); + case 14: + return e.abrupt("return", e.sent); + case 17: + throw e.prev = 17, + e.t1 = e.catch(1), + new Error(e.t1); + case 20: + case "end": + return e.stop() + } + }, e, this, [[1, 17]]) + })), + function(e) { + return TD.apply(this, arguments) + } + ) + }, { + key: "_preloadInterstitialAd", + value: (DD = d(T.mark(function e() { + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + if (e.prev = 0, + e.t0 = this.preloadedInterstitialAdVast, + e.t0) { + e.next = 6; + break + } + return e.next = 5, + this._getAdVast(m.Interstitial); + case 5: + e.t0 = e.sent; + case 6: + return this.preloadedInterstitialAdVast = e.t0, + e.abrupt("return", this.preloadedInterstitialAdVast.url); + case 10: + throw e.prev = 10, + e.t1 = e.catch(0), + new Error(e.t1); + case 13: + case "end": + return e.stop() + } + }, e, this, [[0, 10]]) + })), + function() { + return DD.apply(this, arguments) + } + ) + }, { + key: "_preloadRewardedAd", + value: (OD = d(T.mark(function e() { + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + if (e.prev = 0, + e.t0 = this.preloadedRewardedAdVast, + e.t0) { + e.next = 6; + break + } + return e.next = 5, + this._getAdVast(m.Rewarded); + case 5: + e.t0 = e.sent; + case 6: + return this.preloadedRewardedAdVast = e.t0, + e.abrupt("return", this.preloadedRewardedAdVast.url); + case 10: + throw e.prev = 10, + e.t1 = e.catch(0), + new Error(e.t1); + case 13: + case "end": + return e.stop() + } + }, e, this, [[0, 10]]) + })), + function() { + return OD.apply(this, arguments) + } + ) + }, { + key: "_onError", + value: function(e) { + this.cancel(e), + this._clearSafetyTimer("ERROR") + } + }, { + key: "_hide", + value: function(e) { + this.video_ad_player && (this.video_ad_player.src = ""), + this.activeAdContainer && (this.activeAdContainer.style.visibility = "hidden") + } + }, { + key: "_show", + value: function(e) { + var t, r, n, o = this; + this.activeAdContainer && (this.activeAdContainer.style.visibility = "visible", + t = null == e ? void 0 : e.mode, + e.t4r = this.gameData.__t4r, + r = this._isT4R(e), + n = this._getT4ROptions(e), + "loaded" === t ? (this.activeAdContainer.style.opacity = r ? .001 : 1, + r && null != e && e.contentType.startsWith("video/") && (this.t4rButton = new T9(this.adContainer), + this.t4rButton.add()), + r && this.adsManager.setVolume(0), + r && this._broadcast("AD_T4R"), + r && setTimeout(function() { + D(this, o), + this.activeAdContainer.style.opacity = 1, + this.adsManager.setVolume(1), + this.t4rButton && this.t4rButton.hide() + } + .bind(this), ((null == n ? void 0 : n.min) || 1234) + Math.random() * ((null == n ? void 0 : n.max) || 3210))) : "click" !== t && "first_quartile" !== t || (r && "click" === t && (n = null == (e = this._adrequest_user_context) ? void 0 : e.tnl_ad_pos, + this.clickCount[n]++), + this.t4rButton && this.t4rButton.hide(), + this.activeAdContainer.style.opacity = 1, + this.adsManager.setVolume(1))) + } + }, { + key: "_createPlayer", + value: function() { + var r = this + , e = document.body || document.getElementsByTagName("body")[0] + , n = (this.adContainer = document.createElement("div"), + this.adContainer.id = "".concat(this.prefix, "advertisement"), + this.adContainer.style.position = this.thirdPartyContainer ? "absolute" : "fixed", + this.adContainer.style.zIndex = Ln, + this.adContainer.style.top = "0", + this.adContainer.style.left = "0", + this.adContainer.style.width = "100%", + this.adContainer.style.height = "100%", + this.thirdPartyContainer && (this.thirdPartyContainer.style.transform = null), + document.createElement("video")) + , o = (n.setAttribute("playsinline", !0), + n.setAttribute("webkit-playsinline", !0), + n.id = "".concat(this.prefix, "advertisement_video"), + n.style.position = "absolute", + n.style.backgroundColor = "#000000", + n.style.top = "0", + n.style.left = "0", + n.style.width = this.options.width + "px", + n.style.height = this.options.height + "px", + this.video_ad_player = n, + this.adContainer.appendChild(n), + document.createElement("div")) + , e = (o.id = "".concat(this.prefix, "advertisement_slot"), + o.style.position = "absolute", + o.style.top = "0", + o.style.left = "0", + o.style.width = this.options.width + "px", + o.style.height = this.options.height + "px", + this.adContainerInner = o, + this.activeAdContainer = this.adContainer, + window.activeAdContainer = this.activeAdContainer, + this.thirdPartyContainer ? (this.adContainer.appendChild(o), + this.thirdPartyContainer.appendChild(this.adContainer), + this.activeAdContainer = this.thirdPartyContainer) : (this.adContainer.appendChild(o), + e.appendChild(this.adContainer)), + this.addAdResume(), + this.activeAdContainer.style.visibility = "hidden", + function() { + D(this, r); + var e = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth + , t = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; + this.options.width = this.thirdPartyContainer ? this.thirdPartyContainer.offsetWidth : e, + this.options.height = this.thirdPartyContainer ? this.thirdPartyContainer.offsetHeight : t, + o.style.width = this.options.width + "px", + o.style.height = this.options.height + "px", + n.style.width = this.options.width + "px", + n.style.height = this.options.height + "px" + } + .bind(this)); + window.addEventListener("resize", e), + window.document.addEventListener("DOMContentLoaded", e) + } + }, { + key: "_setUpIMA", + value: function() { + this.adDisplayContainer = new google.ima.AdDisplayContainer(this.adContainerInner,this.video_ad_player), + this.adsLoader = new google.ima.AdsLoader(this.adDisplayContainer), + this.adsLoader.getSettings().setDisableCustomPlaybackForIOS10Plus(!0), + this.adsLoader.getSettings().setLocale(this.options.locale), + this.adsLoader.getSettings().setVpaidMode(this._getVPAIDMode()), + this.adsLoader.getSettings().setAutoPlayAdBreaks(!0); + var e = this.adsLoader.getSettings().getNumRedirects(); + this.adsLoader.getSettings().setNumRedirects(2 * e), + this.adsLoader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED, this._onAdsManagerLoaded, !1, this), + this.adsLoader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR, this._onAdError, !1, this) + } + }, { + key: "_onAdsManagerLoaded", + value: function(e) { + var t = this + , r = new google.ima.AdsRenderingSettings + , r = (r.autoAlign = !1, + r.enablePreloading = !1, + r.restoreCustomPlaybackStateOnAdBreakComplete = !0, + r.useStyledNonLinearAds = !0, + r.uiElements = [google.ima.UiElements.AD_ATTRIBUTION, google.ima.UiElements.COUNTDOWN], + this.adsManager = e.getAdsManager(this.video_ad_player, r), + this.adsManager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR, this._onAdError.bind(this), !1, this), + this.adsManager.addEventListener(google.ima.AdEvent.Type.AD_BREAK_READY, this._onAdEvent.bind(this), this), + this.adsManager.addEventListener(google.ima.AdEvent.Type.AD_METADATA, this._onAdEvent.bind(this), this), + this.adsManager.addEventListener(google.ima.AdEvent.Type.ALL_ADS_COMPLETED, this._onAdEvent.bind(this), this), + this.adsManager.addEventListener(google.ima.AdEvent.Type.CLICK, this._onAdEvent.bind(this), this), + this.adsManager.addEventListener(google.ima.AdEvent.Type.COMPLETE, this._onAdEvent.bind(this), this), + this.adsManager.addEventListener(google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED, this._onAdEvent.bind(this), this), + this.adsManager.addEventListener(google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED, this._onAdEvent.bind(this), this), + this.adsManager.addEventListener(google.ima.AdEvent.Type.DURATION_CHANGE, this._onAdEvent.bind(this), this), + this.adsManager.addEventListener(google.ima.AdEvent.Type.FIRST_QUARTILE, this._onAdEvent.bind(this), this), + this.adsManager.addEventListener(google.ima.AdEvent.Type.IMPRESSION, this._onAdEvent.bind(this), this), + this.adsManager.addEventListener(google.ima.AdEvent.Type.INTERACTION, this._onAdEvent.bind(this), this), + this.adsManager.addEventListener(google.ima.AdEvent.Type.LINEAR_CHANGED, this._onAdEvent.bind(this), this), + this.adsManager.addEventListener(google.ima.AdEvent.Type.LOADED, this._onAdEvent.bind(this), this), + this.adsManager.addEventListener(google.ima.AdEvent.Type.LOG, this._onAdEvent.bind(this), this), + this.adsManager.addEventListener(google.ima.AdEvent.Type.MIDPOINT, this._onAdEvent.bind(this), this), + this.adsManager.addEventListener(google.ima.AdEvent.Type.PAUSED, this._onAdEvent.bind(this), this), + this.adsManager.addEventListener(google.ima.AdEvent.Type.RESUMED, this._onAdEvent.bind(this), this), + this.adsManager.addEventListener(google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED, this._onAdEvent.bind(this), this), + this.adsManager.addEventListener(google.ima.AdEvent.Type.SKIPPED, this._onAdEvent.bind(this), this), + this.adsManager.addEventListener(google.ima.AdEvent.Type.STARTED, this._onAdEvent.bind(this), this), + this.adsManager.addEventListener(google.ima.AdEvent.Type.THIRD_QUARTILE, this._onAdEvent.bind(this), this), + this.adsManager.addEventListener(google.ima.AdEvent.Type.USER_CLOSE, this._onAdEvent.bind(this), this), + this.adsManager.addEventListener(google.ima.AdEvent.Type.VOLUME_CHANGED, this._onAdEvent.bind(this), this), + this.adsManager.addEventListener(google.ima.AdEvent.Type.VOLUME_MUTED, this._onAdEvent.bind(this), this), + window.addEventListener("resize", function() { + D(this, t), + this.adsManager && this.adsManager.resize(this.options.width, this.options.height, google.ima.ViewMode.NORMAL) + } + .bind(this)), + this.adDisplayContainerInitialized || (this.adDisplayContainer.initialize(), + this.adDisplayContainerInitialized = !0), + new Date) + , n = r.getHours() + , o = r.getDate() + , i = r.getMonth() + , r = r.getFullYear() + , a = "AD_SDK_MANAGER_READY"; + this._broadcast(a, { + name: a, + message: "AD SDK is ready", + status: "success", + analytics: { + category: a, + action: this.parentDomain, + label: "h".concat(n, " d").concat(o, " m").concat(i, " y").concat(r) + } + }), + this._adrequest_user_context = e.getUserRequestContext() + } + }, { + key: "_onAdEvent", + value: function(e) { + var t, r, n = this, o = new Date, i = o.getHours(), a = o.getDate(), s = o.getMonth(), o = o.getFullYear(), u = (t = google.ima.AdEvent.Type, + r = e.type, + Object.keys(t).find(function(e) { + return t[e] === r + })), c = !1, l = (null == e || null == (l = e.getAd()) ? void 0 : l.getContentType()) || "", d = !l.startsWith("image") && !l.startsWith("text"), f = (this._sendIMAEventsToHB(e), + document.getElementById("game")), p = ""; + switch (e.type) { + case google.ima.AdEvent.Type.AD_BREAK_READY: + p = "Fired when an ad rule or a VMAP ad break would have played if autoPlayAdBreaks is false."; + break; + case google.ima.AdEvent.Type.AD_METADATA: + p = "Fired when an ads list is loaded."; + break; + case google.ima.AdEvent.Type.ALL_ADS_COMPLETED: + c = !0, + p = "Fired when the ads manager is done playing all the ads."; + break; + case google.ima.AdEvent.Type.CLICK: + var p = "Fired when the ad is clicked." + , h = e.getAd().getContentType(); + this._show({ + mode: "click", + contentType: h + }), + fD("act", "ad click"); + break; + case google.ima.AdEvent.Type.COMPLETE: + e.getAd(), + c = this._is_completed(e.getAd()), + p = "Fired when the ad completes playing.", + this.adType_ === m.Rewarded && this._broadcast("SDK_REWARDED_WATCH_COMPLETE", { + message: "", + status: "success" + }); + break; + case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED: + this.gameData.fllc.enabled && (f.style.display = "none"), + p = "Fired when content should be paused. This usually happens right before an ad is about to cover the content."; + break; + case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED: + this.gameData.fllc.enabled && (f.style.display = "block"), + p = "Fired when content should be resumed. This usually happens when an ad finishes or collapses.", + c = !0, + this._hideAddResume(), + this._hideRewardedLabel(), + this.t4rButton && this.t4rButton.hide(); + break; + case google.ima.AdEvent.Type.DURATION_CHANGE: + p = "Fired when the ad's duration changes."; + break; + case google.ima.AdEvent.Type.FIRST_QUARTILE: + p = "Fired when the ad playhead crosses first quartile."; + h = e.getAd().getContentType(); + this._show({ + mode: "first_quartile", + contentType: h + }); + break; + case google.ima.AdEvent.Type.IMPRESSION: + p = "Fired when the impression URL has been pinged.", + e.getAd(); + break; + case google.ima.AdEvent.Type.INTERACTION: + p = "Fired when an ad triggers the interaction callback. Ad interactions contain an interaction ID string in the ad data."; + break; + case google.ima.AdEvent.Type.LINEAR_CHANGED: + p = "Fired when the displayed ad changes from linear to nonlinear, or vice versa."; + break; + case google.ima.AdEvent.Type.LOADED: + h = e.getAd().getContentType(); + this._show({ + mode: "loaded", + contentType: p = h + }); + break; + case google.ima.AdEvent.Type.LOG: + e.getAdData().adError && (p = e.getAdData()); + break; + case google.ima.AdEvent.Type.MIDPOINT: + p = "Fired when the ad playhead crosses midpoint."; + break; + case google.ima.AdEvent.Type.PAUSED: + d && this.adResume.show(), + p = "Fired when the ad is paused."; + break; + case google.ima.AdEvent.Type.RESUMED: + p = "Fired when the ad is resumed.", + d && (this.adResume.hide(), + this.rewardedLabel.hide()); + break; + case google.ima.AdEvent.Type.SKIPPABLE_STATE_CHANGED: + p = "Fired when the displayed ads skippable state is changed."; + break; + case google.ima.AdEvent.Type.SKIPPED: + c = this._is_completed(e.getAd()), + p = "Fired when the ad is skipped by the user.", + fD("act", "ad skipped"), + this.t4rButton && this.t4rButton.hide(); + break; + case google.ima.AdEvent.Type.STARTED: + this.adType_ === m.Rewarded && this.rewardedLabel.show(), + this._hideAddResume(), + p = "Fired when the ad starts playing."; + break; + case google.ima.AdEvent.Type.THIRD_QUARTILE: + p = "Fired when the ad playhead crosses third quartile."; + break; + case google.ima.AdEvent.Type.USER_CLOSE: + c = this._is_completed(e.getAd()), + p = "Fired when the ad is closed by the user."; + break; + case google.ima.AdEvent.Type.VOLUME_CHANGED: + p = "Fired when the ad volume has changed."; + break; + case google.ima.AdEvent.Type.VOLUME_MUTED: + p = "Fired when the ad volume has been muted." + } + "" !== u && "" !== p && this._broadcast(u, { + name: u, + message: p, + status: "success", + analytics: { + category: u, + action: this.parentDomain, + label: "h".concat(i, " d").concat(a, " m").concat(s, " y").concat(o) + } + }), + c && !this.adSuccess && (this.adSuccess = !0, + u = "Rainbow" === (null == (l = e.getAd()) ? void 0 : l.getAdSystem()) && (null == l ? void 0 : l.getWrapperAdIds().some(function(e) { + return D(this, n), + "promo" === e + } + .bind(this))), + null != l && l.getAdSystem(), + null != l && l.getWrapperAdIds(), + this._broadcast("AD_SUCCESS", { + message: "Ad succeeded.", + status: "success", + isPromoSuccess: u + }), + this.resetForNext(e)) + } + }, { + key: "_run_atom_tag_aws_test", + value: function(e) { + var t, r, n, o, i, a, s, u = this; + try { + null != (t = this.gameData) && null != (r = t.aws_tst) && r.enabled && null != (n = this.gameData) && null != (o = n.aws_tst) && null != (i = o.ep) && i.atm && (a = e.type, + s = e.url, + "none" !== a) && s && (s = s.replace("tag.atom.gamedistribution.com", "atom-tag-prod-aws.gamedistribution.com"), + fetch(s).then(function() { + D(this, u) + } + .bind(this))) + } catch (e) {} + } + }, { + key: "_findAtomTagUrl", + value: function(e, t) { + var r = this + , n = { + type: "none" + }; + try { + var o = this.current_dp + , i = o.id + , a = o.error_url + , s = o.impression_url + , u = o.fallback_imp_url + , c = o.promo_imp_green_url; + if (!e && !t) + return { + type: "imp_err", + url: a + }; + var l = e.getWrapperAdIds().some(function(e) { + return D(this, r), + e === "".concat(i) + } + .bind(this)) + , d = e.getWrapperAdIds().some(function(e) { + return D(this, r), + "fallback" === e + } + .bind(this)) + , f = e.getWrapperAdIds().some(function(e) { + return D(this, r), + "promo" === e + } + .bind(this)); + l && t ? n = { + type: "normal_imp", + url: s + } : l && !t ? n = { + type: "normal_err", + url: a + } : f && t ? n = { + type: "promo_imp", + url: c + } : d && t && (n = { + type: "fallbacj_imp", + url: u + }) + } catch (e) {} + return n + } + }, { + key: "_onAdError", + value: function(e) { + this.requestRunning = !1, + this._resetAdsLoader(), + this._clearSafetyTimer("ERROR"), + this._hide("_onAdError"), + this._sendIMAEventsToHB(e); + try { + var t = e.getError() + , r = t.getErrorCode().toString() || t.getVastErrorCode().toString() + , n = this._getInnerErrorCode(t); + ZD.emit("AD_ERROR", r), + this._broadcast("AD_ERROR", { + message: r, + details: n, + status: "warning", + analytics: { + category: "AD_ERROR", + action: n, + label: r + } + }), + this._hideAddResume() + } catch (e) {} + } + }, { + key: "_hideAddResume", + value: function() { + try { + this.adResume && this.adResume.hide() + } catch (e) { + console.log("Error on hide adResume", e) + } + } + }, { + key: "_hideRewardedLabel", + value: function() { + try { + this.adType_ === m.Rewarded && this.rewardedLabel && this.rewardedLabel.hide() + } catch (e) { + console.log("Error on hide adResume", e) + } + } + }, { + key: "_sendIMAEventsToHB", + value: function(e) { + if (window.idhb && "function" == typeof window.idhb.onImaEvent) + try { + window.idhb.onImaEvent({ + event: e + }) + } catch (e) {} + } + }, { + key: "_resetAdsLoader", + value: function() { + this.adsManager && (this.adsManager.destroy(), + this.adsManager = null, + this._adrequest_user_context = null), + this.adsLoader && this.adsLoader.contentComplete() + } + }, { + key: "_startSafetyTimer", + value: function(e, t) { + var r = this; + this.safetyTimer && clearTimeout(this.safetyTimer), + this.safetyTimer = window.setTimeout(function() { + D(this, r), + this.cancel(), + this._clearSafetyTimer(t) + } + .bind(this), e) + } + }, { + key: "_clearSafetyTimer", + value: function(e) { + void 0 !== this.safetyTimer && null !== this.safetyTimer && (clearTimeout(this.safetyTimer), + this.safetyTimer = void 0) + } + }, { + key: "_getVPAIDMode", + value: function() { + return google.ima.ImaSdkSettings.VpaidMode.ENABLED + } + }, { + key: "_getPrebidScripts", + value: function() { + var e = ["patch/js/null.js?https://hb.improvedigital.com/pbw/headerlift.min.js", "patch/js/null.js?http://hb.improvedigital.com/pbw/headerlift.min.js"]; + return this.options.hb_script ? [this.options.hb_script].concat(e) : e + } + }, { + key: "_getInnerErrorCode", + value: function(e) { + if (Zt(e.getInnerError)) { + e = e.getInnerError(); + if (e) + return Zt(e.getErrorCode) && Zt(e.getVastErrorCode) ? e.getErrorCode().toString() || e.getVastErrorCode().toString() : e.message + } + } + }, { + key: "resetForNext", + value: function() { + this.requestRunning = !1, + this._hide("resetForNext") + } + }, { + key: "_createCustomAdVastUrl", + value: function(e, t) { + var r = this; + if (e) { + var n, o = this.macros.transform(e, { + get: function(e) { + if (D(this, r), + t && t.tnl_keys) + return t.tnl_keys[e.toLowerCase()] + } + .bind(this) + }); + for (n in o.query || {}) { + var i = o.query[n]; + zt(i) && (o.query[n] = Z.stringify(i)) + } + e = new ce(o.url,!0); + return rD(e.query, o.query || {}), + yD({ + url: e.toString() + }, t) + } + } + }, { + key: "_transformVast", + value: function(e, t) { + var r = { + url: e.url + }; + try { + var n, o = new ce(e.url,!0), i = this._transformQuery(e, t, o), a = (i && (r.url = o.toString()), + i ? o : new ce(e.url,!0)); + a.query.cust_params && (n = Z.parse(a.query.cust_params), + r.bidder = n.hb_bidder, + r.cust_params = n), + r.url_parsed = a + } catch (e) { + r.hasError = !0, + r.message = e.message, + r.bidder = "error", + console.log(e.message) + } + return r + } + }, { + key: "_transformQuery", + value: function(t, e, r) { + var n = this; + if (t && e && t.tnl_keys) { + var o = this.options.vast_query; + if (e.retry_on_success && this.options.retry_on_success && zt(this.options.retry_on_success.vast_query) ? o = this.options.retry_on_success.vast_query : e.retry_on_failure && this.options.retry_on_failure && zt(this.options.retry_on_failure.vast_query) && (o = this.options.retry_on_failure.vast_query), + zt(o = Ft(o))) { + var i = r.query; + if (o.$$remove) { + for (var a in i) + new RegExp(o.$$remove,"i").test(a) && delete i[a]; + delete o.$$remove + } + var s = Z.parse(i.cust_params); + if (o.cust_params && o.cust_params.$$remove) { + for (var u in s) + new RegExp(o.cust_params.$$remove,"i").test(u) && delete s[u]; + delete o.cust_params.$$remove + } + e = this.macros.transform(o, { + get: function(e) { + return D(this, n), + t.tnl_keys[e.toLowerCase()] + } + .bind(this) + }); + return i.cust_params = s, + rD(i, e), + i.cust_params = Z.stringify(i.cust_params), + !0 + } + } + } + }, { + key: "_isExcludedBidderForT4R", + value: function() { + var t = this; + try { + var e, r, n, o = null == (e = this._adrequest_user_context) || null == (r = e.adTag) ? void 0 : r.bidder; + return this.msgrt.send("bidder", { + message: o + }), + this._adrequest_user_context, + 'bidder:"'.concat(o, '"'), + ((null == (n = this.gameData.t4rc) ? void 0 : n.bidder_exc) || []).some(function(e) { + return D(this, t), + e === o + } + .bind(this)) + } catch (t) { + console.log("ex_bidder ERR", t) + } + } + }, { + key: "_isT4R", + value: function(e) { + if (!this.gameData.publishedAt) + return !1; + var t = new Date(this.gameData.publishedAt); + if (((new Date).getTime() - t.getTime()) / 864e5 <= 10) + return !1; + if (this._isExcludedBidderForT4R()) + return this.msgrt.send("bidder.ex", { + message: "true" + }), + !1; + this.msgrt.send("bidder.ex", { + message: "false" + }); + var r, t = null == (t = this._adrequest_user_context) ? void 0 : t.tnl_ad_pos; + return !(this.clickCount[t] >= (null == (r = e.t4r[t]) ? void 0 : r.count)) && (null != e && null != (r = e.contentType) && r.startsWith("image/") || "text" === (null == e ? void 0 : e.contentType) ? t && (null == (r = e.t4r[t]) ? void 0 : r.enabled) : !(null == e || !e.contentType.startsWith("video/")) && 0 < (r = (null == (r = e.t4r[t]) ? void 0 : r.viper) || 0) && (r = Math.random() < r, + t) && r && (null == (r = e.t4r[t]) ? void 0 : r.enabled)) + } + }, { + key: "_isVMAP", + value: function(e) { + var t, r; + return !!e && (t = "preroll" === e && (!0 === (null == (t = this.gameData) || null == (t = t.pAds) ? void 0 : t.vmap) || !0 === (null == (t = this.gameData) || null == (t = t.pAds) || null == (t = t.vmap) ? void 0 : t.enabled)) || "midroll" === e && (!0 === (null == (t = this.gameData) || null == (t = t.mAds) ? void 0 : t.vmap) || !0 === (null == (t = this.gameData) || null == (t = t.mAds) || null == (t = t.vmap) ? void 0 : t.enabled)) || "rewarded" === e && (!0 === (null == (t = this.gameData) || null == (t = t.rAds) ? void 0 : t.vmap) || !0 === (null == (t = this.gameData) || null == (t = t.rAds) || null == (t = t.vmap) ? void 0 : t.enabled))) && (r = this._get_vmap_config(e), + e = this.adCounter[e], + void 0 !== (null == r ? void 0 : r.start) ? e >= (null == r ? void 0 : r.start) : t) + } + }, { + key: "_getT4ROptions", + value: function(e) { + var t, r = null == (t = this._adrequest_user_context) ? void 0 : t.tnl_ad_pos; + switch (r) { + case "preroll": + case "midroll": + case "rewarded": + return e.t4r[r] + } + } + }, { + key: "_is_completed", + value: function(e) { + var t = e.getContentType() + , e = e.getAdPodInfo(); + return !(!t.startsWith("image/") && "text" !== t && 1 !== e.getTotalAds()) + } + }, { + key: "_get_vmap_context", + value: function(e) { + var t = e.adtag + , r = e.position + , n = e.config + , e = e.dp + , o = this._createCustomAdVastUrl(null == n ? void 0 : n.vast_1) || t + , t = this._createCustomAdVastUrl(null == n ? void 0 : n.vast_2) || t + , i = null != n && n.vast_1 ? void 0 : e + , n = null != n && n.vast_2 ? void 0 : e; + return { + adtag_url_1: null == o ? void 0 : o.url, + adtag_url_2: null == t ? void 0 : t.url, + position: r, + dp_1: i, + dp_2: n + } + } + }, { + key: "_get_vmap_config", + value: function(e) { + var t; + switch (e) { + case "preroll": + return null == (t = this.gameData) || null == (t = t.pAds) ? void 0 : t.vmap; + case "midroll": + return null == (t = this.gameData) || null == (t = t.mAds) ? void 0 : t.vmap; + case "rewarded": + return null == (t = this.gameData) || null == (t = t.rAds) ? void 0 : t.vmap; + default: + return null == (t = this.gameData) || null == (t = t.pAds) ? void 0 : t.vmap + } + } + }, { + key: "_isDP", + value: function(e) { + var t; + return !!e && !0 === (null == (t = this.gameData) || null == (t = t.dp) || null == (t = t[e]) ? void 0 : t.enabled) + } + }, { + key: "_create_dp_display_context", + value: function() { + var i = this; + return new Promise(function(t) { + var r = this; + D(this, i); + try { + var e = { + id: this.topDomain || this.parentDomain, + au: "display", + ty: "display", + aid: this.gameData.gameId, + pgu: this.parentURL + } + , n = new R9(this.gameData).checkCustomParams() + , o = (n && (e.cp = n), + encodeURIComponent(cn(JSON.stringify(e)))); + fetch("patch/json/null.json?https://tag.atom.gamedistribution.com/v1/atm?ar=".concat(o)).then(function(e) { + return D(this, r), + e.json() + } + .bind(this)).then(function(e) { + if (D(this, r), + !e || !e.p) + return this.msgrt.send("dp.na", { + message: "atom" + }), + t(); + e = e.p / 100; + this.msgrt.send("dp.fp", { + message: e + }), + t({ + params: { + fp: e + }, + error_url: "https://tag.atom.gamedistribution.com/v1/err?ar=".concat(o), + impression_url: "https://tag.atom.gamedistribution.com/v1/imp?ar=".concat(o) + }) + } + .bind(this)).catch(function(e) { + D(this, r), + this.msgrt.send("dp.err", { + message: (null == e ? void 0 : e.message) || e + }), + t() + } + .bind(this)) + } catch (e) { + this.msgrt.send("dp.err", { + message: (null == e ? void 0 : e.message) || e + }), + t() + } + } + .bind(this)) + } + }, { + key: "_create_promo_context", + value: function(e) { + var t = this + , r = { + id: this.topDomain || this.parentDomain, + au: e || "unknown", + ty: "video", + aid: this.gameData.gameId, + pgu: this.parentURL + } + , e = Object.keys(r).map(function(e) { + return D(this, t), + "".concat(e, "=").concat(encodeURIComponent(r[e])) + } + .bind(this)).join("&") + , n = (encodeURIComponent(cn(JSON.stringify(r))), + null == (n = this.gameData.promo) ? void 0 : n.rainbow) + , n = null == n ? void 0 : n.enabled + , e = "https://tag.atom.gamedistribution.com/v1/rainbow/?".concat(e) + , o = n ? e : void 0; + return function() { + D(this, t), + Nu.promoError && (console.log("promo-test fictional promo error"), + o = void 0) + } + .bind(this), + { + promo_url: o, + promo_imp_blue_url: n ? "https://tag.atom.gamedistribution.com/v1/rainbow/blue" : void 0, + promo_imp_green_url: n ? "https://tag.atom.gamedistribution.com/v1/rainbow/green" : void 0 + } + } + }, { + key: "_create_dp_context", + value: function(s, u) { + var t, c = this; + return new Promise((t = d(T.mark(function e(t) { + var r, n, o, i, a = this; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + if (e.prev = 0, + c._isDP(s)) { + e.next = 5; + break + } + return c.msgrt.send("dp.na", { + message: "rule" + }), + e.abrupt("return", t()); + case 5: + o = { + id: c.topDomain || c.parentDomain, + au: s || "unknown", + ty: "video", + aid: c.gameData.gameId, + pgu: c.parentURL + }, + (r = new R9(c.gameData).checkCustomParams()) && (o.cp = r), + n = encodeURIComponent(cn(JSON.stringify(o))), + null != u && u.adapterIndex, + null != u && u.isLastAdapter, + o = null == (r = c.gameData.promo) ? void 0 : r.rainbow, + i = (null == o ? void 0 : o.enabled) && (null == u ? void 0 : u.isLastAdapter) && "rewarded" === s, + null != o && o.enabled, + null != u && u.isLastAdapter, + fetch("https://tag.atom.gamedistribution.com/v1/atm?ar=".concat(n)).then(function(e) { + return D(this, a), + e.json() + } + .bind(this)).then(function(e) { + if (D(this, a), + !e || !e.p) + return c.msgrt.send("dp.na", { + message: "atom" + }), + t(); + e = e.p / 100; + c.msgrt.send("dp.fp", { + message: e + }), + t({ + id: Date.now(), + floor_price: e, + error_url: "https://tag.atom.gamedistribution.com/v1/err?ar=".concat(n, "&ec=[ERRORCODE]"), + impression_url: "https://tag.atom.gamedistribution.com/v1/imp?ar=".concat(n), + skip_url: "https://tag.atom.gamedistribution.com/v1/skp?ar=".concat(n), + promo_url: i ? "https://tag.atom.gamedistribution.com/v1/rainbow?ar=".concat(n) : void 0, + promo_imp_blue_url: i ? "https://tag.atom.gamedistribution.com/v1/rainbow/blue" : void 0, + promo_imp_green_url: i ? "https://tag.atom.gamedistribution.com/v1/rainbow/green" : void 0 + }) + } + .bind(this)).catch(function(e) { + D(this, a), + c.msgrt.send("dp.err", { + message: (null == e ? void 0 : e.message) || e + }), + t() + } + .bind(this)), + e.next = 20; + break; + case 16: + e.prev = 16, + e.t0 = e.catch(0), + c.msgrt.send("dp.err", { + message: (null === e.t0 || void 0 === e.t0 ? void 0 : e.t0.message) || e.t0 + }), + t(); + case 20: + case "end": + return e.stop() + } + }, e, this, [[0, 16]]) + })), + function(e) { + return t.apply(this, arguments) + } + )) + } + }, { + key: "_extend_dp_with_adsense", + value: function(e, t) { + if (e && t) + try { + var r, n, o = new ce(t.vastUrl,!0); + null != (r = o.query) && r.cust_params && (n = Z.parse(o.query.cust_params)).tnl_asset_id && (n.adsense = 1, + o.query.cust_params = Z.stringify(n, !1), + e.fallback_url = o.toString(), + e.fallback_imp_url = "https://tag.atom.gamedistribution.com/v1/rainbow/green") + } catch (e) {} + } + }, { + key: "_extend_hl_url", + value: function(e) { + e.dp; + var t = e.hl + , r = (e.src, + e.tnl_keys) + , n = !0 !== (null == t ? void 0 : t.bidFloorApplied) ? 0 : 1; + 0 === n && null != r && r.hasOwnProperty("fp") ? n = 2 : 1 !== n || null != r && r.hasOwnProperty("fp") || (n = 3), + r.bfa = n; + try { + var o, i, a = new ce(e.url,!0); + null != (o = a.query) && o.cust_params && ((i = Z.parse(a.query.cust_params)).bfa = n, + i.adsense = 0, + a.query.cust_params = Z.stringify(i, !1), + e.url = a.toString(), + t.vastUrl = e.url) + } catch (e) {} finally { + this.msgrt.send("bfa", { + message: n + }) + } + } + }, { + key: "_init_hl_script", + value: (RD = d(T.mark(function e(t) { + var r, n, o, i = this; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return o = this._getPrebidScripts(), + n = o[0], + r = function() { + return D(this, i), + !1 + } + .bind(this), + window.idhb = window.idhb || { + iabCmpExists: r + }, + window.idhb.options = window.idhb.options || {}, + Object.assign(window.idhb.options, { + assetId: this.gameData.gameId, + configUrl: this.topDomain || this.parentDomain, + parentUrl: this.parentURL, + pageType: "gd" + }), + "undefined" === window.idhb.options.configUrl && (window.idhb.options.configUrl = null), + window.idhb.que = window.idhb.que || [], + (r = new URL(n)).searchParams.append("referer", window.idhb.options.configUrl), + n = r.href, + e.next = 13, + bn(n, "gdsdk_prebid", { + alternates: o, + error_prefix: "Blocked:", + exists: function() { + return D(this, i), + window.idhb.requestAds + } + .bind(this) + }); + case 13: + r = hn("ch", window.location.href), + n = hn("ch_date", window.location.href), + o = { + tnl_content_category: this.category.toLowerCase() + }, + r && (o.channel = r), + n && (o.ch_date = n), + window.idhb.setAdserverTargeting(o), + window.idhb.allowPersonalizedAds(!!parseInt(this.userAllowedPersonalizedAds)), + window.idhb.addEventListener("slotRenderEnded", function(e) { + var t = this; + D(this, i); + try { + var r, n = 1 === (n = e.slotId.split("@")).length ? n[0] : n[1]; + e.isEmpty ? (null != (r = this.atom_display) && r.error_url && (fetch(this.atom_display.error_url).catch(function(e) { + D(this, t) + } + .bind(this)), + delete this.atom_display), + this._broadcast("DISPLAYAD_ERROR", { + message: n, + status: "warning" + })) : (this.atom_display.impression_url && (fetch(this.atom_display.impression_url).catch(function(e) { + D(this, t) + } + .bind(this)), + delete this.atom_display), + this._broadcast("DISPLAYAD_IMPRESSION", { + message: n, + status: "success" + })) + } catch (e) {} + } + .bind(this)); + case 21: + case "end": + return e.stop() + } + }, e, this) + })), + function(e) { + return RD.apply(this, arguments) + } + ) + }, { + key: "_init_ima_script", + value: (SD = d(T.mark(function e(t) { + var r, n, o = this; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return r = ["https://imasdk.googleapis.com/js/sdkloader/ima3_debug.js", "https://imasdk.googleapis.com/js/sdkloader/ima3.js", "http://imasdk.googleapis.com/js/sdkloader/ima3_debug.js", "http://imasdk.googleapis.com/js/sdkloader/ima3.js"], + n = this.options.debug ? r[0] : r[1], + e.next = 4, + bn(n, "gdsdk_ima", { + alternates: r, + error_prefix: "Blocked:", + exists: function() { + return D(this, o), + window.google && window.google.ima + } + .bind(this) + }); + case 4: + case "end": + return e.stop() + } + }, e, this) + })), + function(e) { + return SD.apply(this, arguments) + } + ) + }, { + key: "_init_afg_script", + value: (ED = d(T.mark(function e(t) { + var r, n, o, i = this; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + if (this.gameData.afg_disabled) + return e.abrupt("return"); + e.next = 3; + break; + case 3: + return (o = { + crossorigin: "anonymous" + })["data-ad-client"] = 0 < (null == t || null == (r = t.adsense_client) ? void 0 : r.length) ? t.adsense_client : "ca-pub-2316275586951220", + o["data-ad-frequency-hint"] = "30s", + o.allow = "autoplay", + 0 < (null == t || null == (r = t.adsense_channel) ? void 0 : r.length) && (o["data-ad-channel"] = t.adsense_channel), + 0 < (null == t || null == (n = t.adsense_host) ? void 0 : n.length) && (o["data-ad-host"] = t.adsense_host), + !0 === (null == t ? void 0 : t.adsense_adbreak_test) && (o["data-adbreak-test"] = "on"), + e.next = 14, + bn("patch/js/null.js?https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js", "afg", { + error_prefix: "Blocked:", + exists: function() { + return D(this, i), + !!window.adsbygoogle + } + .bind(this), + attrs: o + }); + case 14: + window.adsbygoogle = window.adsbygoogle || [], + window.adsbygoogle.push({ + sound: "on", + preloadAdBreaks: "on" + }); + case 16: + case "end": + return e.stop() + } + }, e, this) + })), + function(e) { + return ED.apply(this, arguments) + } + ) + }, { + key: "fixOutOfBounds", + value: function() { + try { + if (this.gameData.afgszf && this.gameData.afgszf.enabled) + for (var e = this.gameData.afgszf, t = e.height, r = e.scrolls, n = t || "120vh", o = r || !0, i = document.getElementsByClassName("adsbygoogle"), a = 0; a < i.length; a++) { + var s, u = i[a], c = u && (null == (s = u.children[0]) ? void 0 : s.children[0]); + c && "IFRAME" === c.tagName && c.style.height !== n && (c.style.height = n, + o) && (c.parentElement.style.overflow = "auto") + } + } catch (e) { + "out-of-bounds error: ".concat(e.message) + } + } + }, { + key: "clearSession", + value: function() { + this.requestRunning = !1 + } + }, { + key: "_startAdsensePlacementRewardedAd", + value: (kD = d(T.mark(function e(t) { + var r, n, o, i, a, s, u, c, l = this; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + if (t.params, + e.prev = 1, + this.requestRunning) + return this._broadcast("AD_IS_ALREADY_RUNNING", { + status: "warning" + }), + e.abrupt("return"); + e.next = 5; + break; + case 5: + !function() { + if (D(this, l), + Nu.fictionalAdSenseError || t.params.shouldFail) + return this._broadcast("AD_ERROR", { + message: "fictional adsense rewarded error", + status: "error", + skipForward: !0 + }), + !0 + } + .bind(this), + e.next = 8; + break; + case 8: + this.requestRunning = !0, + this._send_atom_event("sg.ad.rw.requested"), + r = !1, + n = function() { + D(this, l), + r = !0, + this.fixOutOfBounds(), + this._broadcast("CONTENT_PAUSE_REQUESTED", { + message: "", + status: "success" + }), + this._broadcast("IMPRESSION", { + message: "", + status: "success" + }) + } + .bind(this), + o = function() { + D(this, l), + r = !0, + this._broadcast("CONTENT_RESUME_REQUESTED", { + message: "", + status: "success" + }) + } + .bind(this), + i = function() { + D(this, l), + r = !0, + this._send_atom_event("sg.ad.rw.dismissed") + } + .bind(this), + a = function() { + D(this, l), + r = !0, + this._broadcast("COMPLETE", { + message: "", + status: "success" + }), + this._broadcast("SDK_REWARDED_WATCH_COMPLETE", { + message: "", + status: "success" + }), + this._send_atom_event("sg.ad.rw.viewed") + } + .bind(this), + s = function(e) { + D(this, l), + r = !0, + e() + } + .bind(this), + u = function(e) { + D(this, l), + r = !0, + this.resetForNext(); + var t = "rewarded"; + this.adCounter[t] = this.adCounter[t] || 0, + this.adCounter[t]++, + "viewed" === e.breakStatus ? this._broadcast("AD_SUCCESS", { + message: "Ad succeeded.", + status: "success" + }) : (this._broadcast("AD_ERROR", { + message: e.breakStatus, + status: "error", + skipForward: !0 + }), + "dismissed" !== e.breakStatus && this._send_atom_event("sg.dbg.rw", e)) + } + .bind(this), + c = function(e) { + window.adsbygoogle.push(e) + } + , + setTimeout(function() { + D(this, l), + r || (Cs("gd-adflow adsense.reward timeout happened!"), + this.requestRunning = !1, + this._broadcast("AD_ERROR", { + message: "timeout", + status: "error", + skipForward: !0 + }), + this._send_atom_event("sg.dbg.rw", { + breakStatus: "timeout" + })) + } + .bind(this), 1e3), + c({ + type: "reward", + name: "reward-in-game", + beforeAd: n, + afterAd: o, + adDismissed: i, + adViewed: a, + beforeReward: s, + adBreakDone: u + }), + e.next = 26; + break; + case 22: + throw e.prev = 22, + e.t0 = e.catch(1), + this._onError(e.t0), + e.t0; + case 26: + case "end": + return e.stop() + } + }, e, this, [[1, 22]]) + })), + function(e) { + return kD.apply(this, arguments) + } + ) + }, { + key: "_startAdsensePlacementPreroll", + value: (xD = d(T.mark(function e(t) { + var r, n = this; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + if (t.params, + e.prev = 1, + this.requestRunning) + return this._broadcast("AD_IS_ALREADY_RUNNING", { + status: "warning" + }), + e.abrupt("return"); + e.next = 5; + break; + case 5: + !function() { + if (D(this, n), + Nu.fictionalAdSenseError || t.params.shouldFail) + return this._broadcast("AD_ERROR", { + message: "fictional adsense preroll error", + status: "error" + }), + !0 + } + .bind(this), + e.next = 8; + break; + case 8: + this.requestRunning = !0, + this._send_atom_event("sg.ad.pr.requested"), + r = function(e) { + D(this, n), + this.resetForNext(); + var t = "preroll"; + this.adCounter[t] = this.adCounter[t] || 0, + this.adCounter[t]++, + "viewed" === e.breakStatus ? (this._send_atom_event("sg.ad.pr.viewed"), + this._broadcast("CONTENT_PAUSE_REQUESTED", { + message: "", + status: "success" + }), + this._broadcast("IMPRESSION", { + message: "", + status: "success" + }), + this._broadcast("COMPLETE", { + message: "", + status: "success" + }), + this._broadcast("AD_SUCCESS", { + message: "Ad succeeded.", + status: "success" + }), + this._broadcast("CONTENT_RESUME_REQUESTED", { + message: "", + status: "success" + })) : (this._broadcast("AD_ERROR", { + message: e.breakStatus, + status: "error" + }), + this._send_atom_event("sg.dbg.pr", e)) + } + .bind(this), + window.adsbygoogle.push({ + type: "preroll", + adBreakDone: r + }), + e.next = 19; + break; + case 15: + throw e.prev = 15, + e.t0 = e.catch(1), + this._onError(e.t0), + e.t0; + case 19: + case "end": + return e.stop() + } + }, e, this, [[1, 15]]) + })), + function(e) { + return xD.apply(this, arguments) + } + ) + }, { + key: "_startAdsensePlacementStart", + value: (AD = d(T.mark(function e(t) { + var r, n, o, i = this; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + if (t.params, + e.prev = 1, + this.requestRunning) + return this._broadcast("AD_IS_ALREADY_RUNNING", { + status: "warning" + }), + e.abrupt("return"); + e.next = 5; + break; + case 5: + !function() { + if (D(this, i), + Nu.fictionalAdSenseError || t.params.shouldFail) + return this._broadcast("AD_ERROR", { + message: "fictional adsense preroll error 2", + status: "error" + }), + !0 + } + .bind(this), + e.next = 8; + break; + case 8: + this.requestRunning = !0, + this._send_atom_event("sg.ad.pr.requested"), + r = function() { + D(this, i), + this.fixOutOfBounds(), + this._broadcast("CONTENT_PAUSE_REQUESTED", { + message: "", + status: "success" + }), + this._broadcast("IMPRESSION", { + message: "", + status: "success" + }) + } + .bind(this), + n = function() { + D(this, i), + this._broadcast("CONTENT_RESUME_REQUESTED", { + message: "", + status: "success" + }) + } + .bind(this), + o = function(e) { + D(this, i), + this.resetForNext(); + var t = "preroll"; + this.adCounter[t] = this.adCounter[t] || 0, + this.adCounter[t]++, + "viewed" === e.breakStatus ? (this._send_atom_event("sg.ad.pr.viewed"), + this._broadcast("COMPLETE", { + message: "", + status: "success" + }), + this._broadcast("AD_SUCCESS", { + message: "Ad succeeded.", + status: "success" + })) : (this._broadcast("AD_ERROR", { + message: e.breakStatus, + status: "error" + }), + this._send_atom_event("sg.dbg.pr", e)) + } + .bind(this), + window.adsbygoogle.push({ + type: "start", + name: "start-in-game", + beforeAd: r, + afterAd: n, + adBreakDone: o + }), + e.next = 21; + break; + case 17: + throw e.prev = 17, + e.t0 = e.catch(1), + this._onError(e.t0), + e.t0; + case 21: + case "end": + return e.stop() + } + }, e, this, [[1, 17]]) + })), + function(e) { + return AD.apply(this, arguments) + } + ) + }, { + key: "_startAdsensePlacementNext", + value: (wD = d(T.mark(function e(t) { + var r, n, o, i = this; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + if (t.params, + e.prev = 1, + this.requestRunning) + return this._broadcast("AD_IS_ALREADY_RUNNING", { + status: "warning" + }), + e.abrupt("return"); + e.next = 5; + break; + case 5: + !function() { + if (D(this, i), + Nu.fictionalAdSenseError || t.params.shouldFail) + return this._broadcast("AD_ERROR", { + message: "fictional adsense midroll error", + status: "error" + }), + !0 + } + .bind(this), + e.next = 8; + break; + case 8: + this.requestRunning = !0, + this._send_atom_event("sg.ad.mr.requested"), + r = function() { + D(this, i), + this.fixOutOfBounds(), + this._broadcast("CONTENT_PAUSE_REQUESTED", { + message: "", + status: "success" + }), + this._broadcast("IMPRESSION", { + message: "", + status: "success" + }) + } + .bind(this), + n = function() { + D(this, i), + this._broadcast("CONTENT_RESUME_REQUESTED", { + message: "", + status: "success" + }) + } + .bind(this), + o = function(e) { + D(this, i), + this.resetForNext(); + var t = "midroll"; + this.adCounter[t] = this.adCounter[t] || 0, + this.adCounter[t]++, + "viewed" === e.breakStatus ? (this._send_atom_event("sg.ad.mr.viewed"), + this._broadcast("COMPLETE", { + message: "", + status: "success" + }), + this._broadcast("AD_SUCCESS", { + message: "Ad succeeded.", + status: "success" + })) : (this._broadcast("AD_ERROR", { + message: e.breakStatus, + status: "error" + }), + this._send_atom_event("sg.dbg.mr", e)) + } + .bind(this), + window.adsbygoogle.push({ + type: "next", + name: "next-in-game", + beforeAd: r, + afterAd: n, + adBreakDone: o + }), + e.next = 21; + break; + case 17: + throw e.prev = 17, + e.t0 = e.catch(1), + this._onError(e.t0), + e.t0; + case 21: + case "end": + return e.stop() + } + }, e, this, [[1, 17]]) + })), + function(e) { + return wD.apply(this, arguments) + } + ) + }, { + key: "_send", + value: function(e, t) { + try { + var r = this.msgrt + , n = r._layout + , o = r._ua + , i = { + tp: e, + ct: 0, + vrs: this.PackageJSON.version, + url: this.parentURL, + rfr: document.referrer, + tdmn: this.topDomain || this.parentDomain, + dpth: 0, + args: t, + ua: { + brnm: o.browser.name, + brvs: o.browser.version, + osnm: o.os.name, + osvs: o.os.version, + dvmd: o.device.model, + w: n.w, + h: n.h + } + }; + fetch("patch/json/null.json?https://tag.atom.gamedistribution.com/v1/dmp?ar=".concat(encodeURIComponent(cn(JSON.stringify(i))))) + } catch (e) {} + } + }, { + key: "_send_atom_event", + value: function(e, t) { + var r = { + gid: this.gameData.slug, + md5: this.gameData.gameId, + pid: 0, + pnm: this.gameData.pname, + ctry: this.gameData.ctry, + lcl: "en", + hle: 1, + ads: 1, + args: t, + href: window.location.href + } + , n = (new qk).get() + , r = yD(yD({}, r), n); + r = t ? yD(yD({}, r), t) : r, + this._send(e, r) + } + }, { + key: "_isAfgPositionNext", + value: function(e) { + return void 0 !== e.adTimestamp + } + }, { + key: "_isAfgPositionStart", + value: function(e) { + return void 0 === e.adTimestamp && (this.adCounter[e = "preroll"] = this.adCounter[e] || 0, + 0 === this.adCounter[e]) + } + }, { + key: "attachAfgPosition", + value: function(e) { + var t = e.params.position; + switch (t) { + case "preroll": + case "start": + case "pause": + case "next": + case "browse": + case "reward": + return + } + var r = e.adType; + r === m.Rewarded ? t = "reward" : r === m.Interstitial && (this._isAfgPositionStart(e) ? t = null == (r = this.gameData.pAds) || !r.enabled || null != (r = this.gameData.loader) && r.enabled ? "start" : "next" : this._isAfgPositionNext(e) && (t = "next")), + e.params.position = t = t || "preroll" + } + }, { + key: "_broadcast", + value: function(t, e) { + var r = this + , n = !1 + , o = (["AD_ERROR"].some(function(e) { + return D(this, r), + e === t + } + .bind(this)) && (n = !this.adContext.isLastAdapter || this.adContext.extraPromoRunOnFail), + this.getCurrentAdPosition(this.adContext.adType)); + this.eventBus.broadcast(t, yD(yD({}, e), {}, { + skipForward: n, + adPosition: o + })) + } + }]), + XD), qD = pe(function e(t) { + var r = this + , n = (le(this, e), + Fu(this, "load", d(T.mark(function e() { + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return e.next = 2, + pg(r.moduleName); + case 2: + r.module = e.sent; + case 3: + case "end": + return e.stop() + } + }, e) + }))), + Fu(this, "promo", d(T.mark(function e() { + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + if (r.module) { + e.next = 3; + break + } + return e.next = 3, + r.load(); + case 3: + return e.abrupt("return", r.module[r.moduleDefault]); + case 4: + case "end": + return e.stop() + } + }, e) + }))), + t.package || "gd-sdk-stone-dynamic") + , o = t.package_version || "1.1.1" + , i = t.template || "puzzle" + , t = t.dependencies || []; + this.moduleName = "GDPromoByOrbit", + this.moduleDefault = i.charAt(0).toUpperCase() + i.slice(1), + this.moduleConfig = { + source: "https://pm.gamedistribution.com/@bygd/".concat(n, "/").concat(o, "/dist/").concat(i.toLowerCase(), "/iife/index.js"), + dependencies: t + }, + rg(this.moduleName, this.moduleConfig) + }), VD = pe(function e(t) { + var r = this + , n = (le(this, e), + Fu(this, "load", d(T.mark(function e() { + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return e.next = 2, + pg(r.moduleName); + case 2: + r.module = e.sent; + case 3: + case "end": + return e.stop() + } + }, e) + }))), + Fu(this, "splash", d(T.mark(function e() { + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + if (r.module) { + e.next = 3; + break + } + return e.next = 3, + r.load(); + case 3: + return e.abrupt("return", r.module[r.moduleDefault]); + case 4: + case "end": + return e.stop() + } + }, e) + }))), + t.package || "gd-sdk-air-dynamic") + , o = t.package_version || "1.2.0" + , i = t.template || "pluto" + , t = t.dependencies || []; + this.moduleName = "GDSplashDynamic", + this.moduleDefault = i.charAt(0).toUpperCase() + i.slice(1), + this.moduleConfig = { + source: "https://pm.gamedistribution.com/@bygd/".concat(n, "/").concat(o, "/dist/").concat(i.toLowerCase(), "/iife/index.js"), + dependencies: t + }, + rg(this.moduleName, this.moduleConfig) + }), WD = {}, YD = {}, JD = null; + function XD(e, t, r) { + var n = this; + if (le(this, XD), + HD) + return HD; + var o = { + debug: !1, + width: 640, + height: 360, + locale: "en" + } + , t = ((HD = this).options = t ? dn(o, t) : o, + this.prefix = "gdsdk__", + this.adsLoader = null, + this.adsManager = null, + this.adDisplayContainer = null, + this.eventBus = new $n, + this.safetyTimer = null, + this.containerTransitionSpeed = 0, + this.adCounter = {}, + this.adPrerollCount = 0, + this.adMidrollCount = 0, + this.adRewardedCount = 0, + this.preloadedAdType = null, + this.requestRunning = !1, + this.parentDomain = r.parentDomain, + this.topDomain = r.topDomain, + this.parentURL = r.parentURL, + this.adDisplayContainerInitialized = !1, + this.IMASampleTags = { + interstitial: ["https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dskippablelinear&correlator=", "https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dredirectlinear&correlator=", "https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dredirecterror&correlator="], + rewarded: ["https://pubads.g.doubleclick.net/gampad/ads?sz=640x480&iu=/124319096/external/single_ad_samples&ciu_szs=300x250&impl=s&gdfp_req=1&env=vp&output=vast&unviewed_position_start=1&cust_params=deployment%3Ddevsite%26sample_ct%3Dlinear&correlator="] + }, + this.atom_display, + this.adType_ = "", + this.clickCount = { + midroll: 0, + preroll: 0, + rewarded: 0 + }, + this.userAllowedPersonalizedAds = 0 <= document.location.search.indexOf("gdpr-targeting=0") || 0 <= document.cookie.indexOf("ogdpr_advertisement=0") ? "0" : "1", + this.parentDomain.includes("girlsgogames") && (this.userAllowedPersonalizedAds = !1), + this.thirdPartyContainer = "" !== e ? document.getElementById(e) : null, + this.options.width = "number" == typeof this.options.width ? this.options.width : "100%" === this.options.width ? 640 : this.options.width.replace(/[^0-9]/g, ""), + this.options.height = "number" == typeof this.options.height ? this.options.height : "100%" === this.options.height ? 360 : this.options.height.replace(/[^0-9]/g, ""), + window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth) + , o = window.innerHeight || document.documentElement.clientHeight || document.body.clientHeight; + this.options.width = this.thirdPartyContainer ? this.thirdPartyContainer.offsetWidth : t, + this.options.height = this.thirdPartyContainer ? this.thirdPartyContainer.offsetHeight : o, + this.category = "", + this.tags = [], + this.eventCategory = "AD", + this.eventBus.subscribe("LOADED", function() { + D(this, n), + this._clearSafetyTimer("LOADED"), + this._startSafetyTimer(8e3, "LOADED") + } + .bind(this), "ima"), + this.eventBus.subscribe("STARTED", function() { + D(this, n), + this._clearSafetyTimer("STARTED") + } + .bind(this), "ima") + } + function QD() { + for (var e, t = window, r = null, n = null; !e; ) { + try { + if ("function" == typeof t.__tcfapi || "function" == typeof t.__cmp) { + r = "function" == typeof t.__tcfapi ? (n = 2, + t.__tcfapi) : (n = 1, + t.__cmp), + e = t; + break + } + } catch (e) {} + try { + if (t.frames.__tcfapiLocator) { + n = 2, + e = t; + break + } + } catch (e) {} + try { + if (t.frames.__cmpLocator) { + n = 1, + e = t; + break + } + } catch (e) {} + if (t === window.top) + break; + t = t.parent + } + WD.version = n, + WD.frame = e, + WD.function = r + } + function eT(n) { + var t = this; + return JD || (JD = new Promise(function(r) { + function e(e, t) { + if (_D("Received a response from CMP", e), + t) { + if (!1 !== e.gdprApplies) + return "tcloaded" === e.eventStatus || "useractioncomplete" === e.eventStatus ? (("boolean" != typeof (t = e && "boolean" == typeof e.gdprApplies ? e.gdprApplies : n.defaultGdprScope) || !0 === t && "string" != typeof e.tcString) && r({ + result: "cmpUnexpectedResponse", + cmp: WD, + consentData: e + }), + void r({ + result: "ok", + consentData: e + })) : void 0; + r({ + result: "ok", + consentData: e + }) + } else + r({ + result: "cmpCallFailed" + }) + } + D(this, t), + QD(), + WD.frame ? 2 === WD.version ? (_D("TCF v2 CMP found. Fetching the consent."), + WD.function ? (_D("CMP API is directly accessible, calling it now..."), + WD.function("addEventListener", WD.version, e)) : (_D("CMP API is outside the current iframe, calling it now..."), + function(i, e) { + var a = this + , s = "__tcfapi"; + window[s] = function(e, t, r, n) { + D(this, a); + var o = Math.random() + "" + , e = Fu({}, "".concat(s, "Call"), { + command: e, + parameter: n, + callId: o, + version: t + }); + YD[o] = r, + i.postMessage(e, "*") + } + .bind(this), + window.addEventListener("message", function e(t) { + var r = "".concat(s, "Return"); + (t = "string" == typeof t.data && 0 <= t.data.indexOf(r) ? JSON.parse(t.data) : t.data)[r] && t[r].callId && (t = t[r], + void 0 !== YD[t.callId]) && YD[t.callId](t.returnValue, t.success) + }, !1), + window[s]("addEventListener", WD.version, e) + }(WD.frame, e))) : r({ + result: "cmpVersionNotV2", + cmp: WD + }) : r({ + result: "cmpNotFound" + }) + } + .bind(this))) + } + pe(nT, [{ + key: "checkIfExcluded", + value: function(e) { + try { + var t, r; + return !(null == (t = e.diagnostic) || null == (r = t.gameDock) || !r.excluded) + } catch (e) { + return console.log("Error on checkIfExclude check", e), + !1 + } + } + }, { + key: "track", + value: (tT = d(T.mark(function e(t, r) { + var n, o, i, a; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + if (this.checkIfExcluded(r)) + return e.abrupt("return"); + e.next = 3; + break; + case 3: + if (n = null == t || null == (n = t.visitor) || null == (n = n.visitorData) ? void 0 : n.visitorId) { + e.next = 6; + break + } + return e.abrupt("return"); + case 6: + return o = encodeURIComponent(this.productName), + i = encodeURIComponent(n), + e.prev = 8, + a = "https://tracker-v4.gamedock.io/v1/events-tracker/track/product/".concat(o, "/user_id/").concat(i), + e.next = 12, + fetch(a, { + method: "POST" + }); + case 12: + e.sent, + e.next = 28; + break; + case 15: + return e.prev = 15, + e.t0 = e.catch(8), + console.log("GAME_DOCK. fail v4", e.t0), + e.prev = 18, + a = "https://tracker.gamedock.io/v1/events-tracker/track/product/".concat(o, "/user_id/").concat(i), + e.next = 22, + fetch(a, { + method: "POST" + }); + case 22: + e.sent, + e.next = 28; + break; + case 25: + e.prev = 25, + e.t1 = e.catch(18), + console.log("GAME_DOCK. fail v6", e.t1); + case 28: + case "end": + return e.stop() + } + }, e, this, [[8, 15], [18, 25]]) + })), + function(e, t) { + return tT.apply(this, arguments) + } + ) + }]); + var tT, rT = new nT; + function nT() { + le(this, nT), + this.productName = "Game Distribution" + } + function oT(e, t) { + (null == t || t > e.length) && (t = e.length); + for (var r = 0, n = new Array(t); r < t; r++) + n[r] = e[r]; + return n + } + function iT(e) { + var l = this + , d = e.src + , f = e.attributes + , p = e.target + , h = e.isAsync; + return new Promise(function(e, t) { + var r = this; + D(this, l); + try { + var n = document.createElement("script"); + if (n.async = null == h || h, + n.type = "text/javascript", + n.onload = function() { + D(this, r), + e() + } + .bind(this), + n.onerror = function() { + D(this, r); + var e = "Error on script load, Error: ".concat(d); + console.log(e), + t(e) + } + .bind(this), + n.src = d, + f) { + var o, i = function e(t, r) { + var n, o, i, a, s = "undefined" != typeof Symbol && t[Symbol.iterator] || t["@@iterator"]; + if (s) + return i = !(o = !0), + { + s: function() { + s = s.call(t) + }, + n: function() { + var e = s.next(); + return o = e.done, + e + }, + e: function(e) { + i = !0, + n = e + }, + f: function() { + try { + o || null == s.return || s.return() + } finally { + if (i) + throw n + } + } + }; + if (Array.isArray(t) || (s = function(e) { + var t; + if (e) + return "string" == typeof e ? oT(e, void 0) : "Map" === (t = "Object" === (t = Object.prototype.toString.call(e).slice(8, -1)) && e.constructor ? e.constructor.name : t) || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? oT(e, void 0) : void 0 + }(t)) || r && t && "number" == typeof t.length) + return s && (t = s), + a = 0, + { + s: r = function() {} + , + n: function() { + return a >= t.length ? { + done: !0 + } : { + done: !1, + value: t[a++] + } + }, + e: function(e) { + throw e + }, + f: r + }; + throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.") + }(f); + try { + for (i.s(); !(o = i.n()).done; ) { + var a = o.value + , s = a.key + , u = a.value; + n.setAttribute(s, u) + } + } catch (e) { + i.e(e) + } finally { + i.f() + } + } + (p = p || document.head).appendChild(n) + } catch (e) { + var c = "Error on script load catch, Error: ".concat(d); + console.log(c, e), + t(c) + } + } + .bind(this)) + } + var aT, sT, uT = "140feb72-7952-4420-8ae5-e8978d87bc17", cT = (sT = d(T.mark(function e() { + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return e.prev = 0, + e.next = 3, + iT({ + src: "https://cdn.cookielaw.org/consent/tcf.stub.js", + attributes: [{ + key: "id", + value: "gd-cookie-pro-tcf-stub" + }, { + key: "charset", + value: "UTF-8" + }], + isAsync: !1 + }); + case 3: + return e.next = 5, + iT({ + src: "https://cookie-cdn.cookiepro.com/consent/".concat(uT, "/OtAutoBlock.js"), + attributes: [{ + key: "id", + value: "gd-cookie-pro-autoblock" + }], + isAsync: !1 + }); + case 5: + return e.next = 7, + iT({ + src: "https://cookie-cdn.cookiepro.com/scripttemplates/otSDKStub.js", + attributes: [{ + key: "id", + value: "gd-cookie-pro-stub" + }, { + key: "charset", + value: "UTF-8" + }, { + key: "data-domain-script", + value: uT + }], + isAsync: !1 + }); + case 7: + o = n = void 0, + r = (t = { + inlineScript: "function OptanonWrapper() { }" + }).inlineScript, + n = t.target, + (o = document.createElement("script")).text = r, + (n = n || document.head).appendChild(o), + e.next = 13; + break; + case 10: + e.prev = 10, + e.t0 = e.catch(0), + console.log("GD: CMP error on load", e.t0); + case 13: + case "end": + return e.stop() + } + var t, r, n, o + }, e, null, [[0, 10]]) + })), + function() { + return sT.apply(this, arguments) + } + ), lT = new A.exports.EventEmitter, dT = { + "https://games.softgames.com": { + "splash-hidden": "splash-hidden" + }, + "https://sg.gamedistribution.com": { + "splash-hidden": "splash-hidden" + }, + "https://html5.gamedistribution.com": { + key: "value" + } + }, fT = !1, pT = (window.addEventListener("message", function(r) { + var n = this + , t = r.data + , o = r.origin + , e = t.type; + if (Object.keys(dT).some(function(e) { + return D(this, n), + e === o + } + .bind(this)) && (null == t || !t.__tcfapiCall)) { + var i = !t.type || !t.type.startsWith("gd-sdk") && !("parent-data-response" === t.type) || "sg-game-event" === t.type + , a = ("gd-sdk-on-event" === (null == t ? void 0 : t.type) && "midroll" === (null == t || null == (u = t.event) ? void 0 : u.adPosition) && (u = "CONTENT_RESUME_REQUESTED" === (null == (u = t.event) ? void 0 : u.name), + "CONTENT_PAUSE_REQUESTED" === (null == (a = t.event) ? void 0 : a.name) && (fT = !0), + u) && fT && (fT = !1, + window.parent.postMessage({ + type: "sg-game-event", + eventName: "levelFinish", + data: { + score: 100 + } + }, "*")), + function() { + D(this, n); + try { + var e, t; + return null == r || null == (e = r.source) || null == (t = e.location) ? void 0 : t.href + } catch (e) {} + } + .bind(this)); + if (window.parent && i) { + if ("https://html5.gamedistribution.com" === o) { + var s = a(); + if (!s) + return; + var u = s && ["9555f04e1900482aaaef710cd2f8c440"].some(function(e) { + return D(this, n), + 0 < s.indexOf(e) + } + .bind(this)) + , i = ["sg-game-event"].some(function(e) { + return D(this, n), + e === (null == t ? void 0 : t.type) + } + .bind(this)); + if (!u && !i) + return + } + var i = t.eventName + , c = t.data; + window.mpHelper && (console.log("SG_EVENTS sending to minijuegos!"), + "levelStart" !== i && "levelFinish" !== i || window.mpHelper.sendStat("level", c.level), + "levelFinish" === i) && window.mpHelper.sendStat("score", c.score), + window.parent.postMessage(t, "*") + } + e && (i = dT[o][e]) && lT.emit(i, t) + } + }, !1), + new Uint8Array(16)); + for (var hT = /^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i, mT = [], gT = 0; gT < 256; ++gT) + mT.push((gT + 256).toString(16).substr(1)); + function vT(e, t, r) { + var n = (e = e || {}).random || (e.rng || function e() { + if (aT = aT || "undefined" != typeof crypto && crypto.getRandomValues && crypto.getRandomValues.bind(crypto) || "undefined" != typeof msCrypto && "function" == typeof msCrypto.getRandomValues && msCrypto.getRandomValues.bind(msCrypto)) + return aT(pT); + throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported") + } + )(); + if (n[6] = 15 & n[6] | 64, + n[8] = 63 & n[8] | 128, + t) { + r = r || 0; + for (var o = 0; o < 16; ++o) + t[r + o] = n[o]; + return t + } + return function e(t, r) { + if ("string" == typeof (t = (mT[t[(r = 1 < arguments.length && void 0 !== r ? r : 0) + 0]] + mT[t[r + 1]] + mT[t[r + 2]] + mT[t[r + 3]] + "-" + mT[t[r + 4]] + mT[t[r + 5]] + "-" + mT[t[r + 6]] + mT[t[r + 7]] + "-" + mT[t[r + 8]] + mT[t[r + 9]] + "-" + mT[t[r + 10]] + mT[t[r + 11]] + mT[t[r + 12]] + mT[t[r + 13]] + mT[t[r + 14]] + mT[t[r + 15]]).toLowerCase()) && hT.test(t)) + return t; + throw TypeError("Stringified UUID is invalid") + }(n) + } + function bT(t, e) { + var r, n = Object.keys(t); + return Object.getOwnPropertySymbols && (r = Object.getOwnPropertySymbols(t), + e && (r = r.filter(function(e) { + return Object.getOwnPropertyDescriptor(t, e).enumerable + })), + n.push.apply(n, r)), + n + } + function yT(e) { + try { + var t = { + gameId: e.game.gameId, + target: e.game.evnts.domain, + event_name: e.event, + timestamp: Date.now() + } + , r = AT(window); + r === window.top || null != r && r.postMessage(t, "https://html5.gamedistribution.com") + } catch (e) {} + } + var _T = "__msgr" + , wT = vT() + , AT = function e(t) { + try { + var r, n, o = null == t ? void 0 : t.parent; + if ("game" === (null == (r = o.document) || null == (n = r.activeElement) ? void 0 : n.id)) + return o; + e(o) + } catch (e) { + return t + } + } + , xT = function(e) { + try { + window[_T] && window[_T].postMessage(e, "*") + } catch (e) { + console.log("GD Messager initialization, please wait....") + } + }; + function kT(t, e) { + var r, n = Object.keys(t); + return Object.getOwnPropertySymbols && (r = Object.getOwnPropertySymbols(t), + e && (r = r.filter(function(e) { + return Object.getOwnPropertyDescriptor(t, e).enumerable + })), + n.push.apply(n, r)), + n + } + function ET(t) { + for (var e = 1; e < arguments.length; e++) { + var r = null != arguments[e] ? arguments[e] : {}; + e % 2 ? kT(Object(r), !0).forEach(function(e) { + Fu(t, e, r[e]) + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : kT(Object(r)).forEach(function(e) { + Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(r, e)) + }) + } + return t + } + function ST(e, t) { + (null == t || t > e.length) && (t = e.length); + for (var r = 0, n = new Array(t); r < t; r++) + n[r] = e[r]; + return n + } + pe(CT, [{ + key: "runAdFlow", + value: (DT = d(T.mark(function e(t) { + var r, n, o, i, a, s, u, c, l, d, f, p, h, m, g, v, b, y, _, w, A, x, k, E, S, R, O = this; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + r = this._getAdTypeByAfgPosition(t), + t.params.position, + c = this._getAdFlow(r), + n = this._gameData, + s = n.afg_disabled, + o = null == (o = n.promo) || null == (o = o.rainbow) ? void 0 : o.enabled, + i = null == (i = n.promo) ? void 0 : i.onadsense, + a = "reward" === (null == (a = t.params) ? void 0 : a.position), + s = s ? c.filter(function(e) { + return D(this, O), + "adsense" !== e + } + .bind(this)) : c, + c = this.get_ad_system_init_result(), + u = c.afg, + c = c.ima, + this.adsBlocked = !u && !c, + this.adsBlocked ? (Cs("gd-adflow adsBlocked so changing the flow"), + s = [s[0]]) : (u || (s = s.filter(function(e) { + return D(this, O), + "adsense" !== e + } + .bind(this))), + c || (s = s.filter(function(e) { + return D(this, O), + "ima" !== e + } + .bind(this)))), + d = l = !1, + p = 0, + h = !(f = []), + m = function e(t, r) { + var n, o, i, a, s = "undefined" != typeof Symbol && t[Symbol.iterator] || t["@@iterator"]; + if (s) + return i = !(o = !0), + { + s: function() { + s = s.call(t) + }, + n: function() { + var e = s.next(); + return o = e.done, + e + }, + e: function(e) { + i = !0, + n = e + }, + f: function() { + try { + o || null == s.return || s.return() + } finally { + if (i) + throw n + } + } + }; + if (Array.isArray(t) || (s = function(e) { + var t; + if (e) + return "string" == typeof e ? ST(e, void 0) : "Map" === (t = "Object" === (t = Object.prototype.toString.call(e).slice(8, -1)) && e.constructor ? e.constructor.name : t) || "Set" === t ? Array.from(e) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? ST(e, void 0) : void 0 + }(t)) || r && t && "number" == typeof t.length) + return s && (t = s), + a = 0, + { + s: r = function() {} + , + n: function() { + return a >= t.length ? { + done: !0 + } : { + done: !1, + value: t[a++] + } + }, + e: function(e) { + throw e + }, + f: r + }; + throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.") + }(s), + e.prev = 21, + m.s(); + case 23: + if ((g = m.n()).done) { + e.next = 57; + break + } + return g = g.value, + t.params.adapter = g, + v = p === s.length - 1, + o && v && "ima" === g && (t.params.runPromoAsImaFallback = !0), + b = v && "adsense" === g && o && i && a, + t.params = ET(ET({}, t.params), {}, { + adapterIndex: p, + isLastAdapter: v, + shouldFail: !1, + extraPromoRunOnFail: b + }), + function() { + D(this, O), + Nu.firstSuccessOrder && !isNaN(Nu.firstSuccessOrder) && (t.params.shouldFail = p < Nu.firstSuccessOrder) + } + .bind(this), + Cs("gd-adflow, before adInvoke", p, g, t.params.shouldFail), + e.next = 34, + this.adInvoke(t); + case 34: + if (b = e.sent, + A = b.success, + y = b.args, + _ = b.isSkipped, + w = b.noVast, + A) + return Cs("gd-adflow, adapter-result-success", p, g, y), + l = !0, + d = !(null == y || !y.isPromoSuccess), + e.abrupt("break", 57); + e.next = 46; + break; + case 46: + if (Cs("gd-adflow, adapter-result-failure", p, g, y.message), + p++, + f.push(y.message), + _) + return e.abrupt("break", 57); + e.next = 51; + break; + case 51: + if (w) + return this._runAutoResume(), + e.abrupt("break", 57); + e.next = 54; + break; + case 54: + v && "adsense" === g && o && i && a && (h = !0); + case 55: + e.next = 23; + break; + case 57: + e.next = 62; + break; + case 59: + e.prev = 59, + e.t0 = e.catch(21), + m.e(e.t0); + case 62: + return e.prev = 62, + m.f(), + e.finish(62); + case 65: + if (h) + return t.params.adapter = "promo", + e.next = 70, + this.adInvoke(t); + e.next = 74; + break; + case 70: + A = e.sent, + x = A.success, + A.args, + x && (d = !0); + case 74: + (function() { + var e; + D(this, O), + Nu.disableGift && null != (e = n.gft) && e.enabled && (n.gft.enabled = !1) + } + ).bind(this), + x = f.join(" /n"), + l ? (this._setAdRequestTimer(), + this._onResumeGame("Advertisement(s) are done. Start / resume the game.", "success")) : this._onResumeGame(x, "warning"), + this._giveGift(), + k = "-1", + E = "none", + l && d ? k = "promo_ima" : l ? (k = "index_".concat(p), + E = s[p]) : d && (k = "promo_adsense"), + S = this.get_session_id(), + this.adsBlocked && "-1" === k ? (R = "rewarded" === r ? "rewarded" : this.blockedAdsMap.preroll ? "midroll" : "preroll", + this.blockedAdsMap[R] = this.blockedAdsMap[R] ? this.blockedAdsMap[R] + 1 : 1, + JSON.stringify(this.blockedAdsMap), + this._msgrt.send("adflow.blocked.pos", { + message: "".concat(R) + }), + this.send_atom_event("gd.adflow", { + adBlocker: !0, + afgBlocked: !0, + imaBlocked: !0, + adType: R, + sessionId: S, + successAdapter: "none", + adFlowIndex: k + })) : (this._msgrt.send("adflow.all.index", { + message: "".concat(k) + }), + this._msgrt.send("adflow.all.success_adapter", { + message: "".concat(E) + }), + this._msgrt.send("adflow.".concat(r, ".index"), { + message: "".concat(k) + }), + this._msgrt.send("adflow.".concat(r, ".success_adapter"), { + message: "".concat(E) + }), + this.send_atom_event("gd.adflow", { + adFlowIndex: k, + successAdapter: E, + adBlocker: !1, + afgBlocked: !u, + imaBlocked: !c, + adType: r, + sessionId: S + })); + case 84: + case "end": + return e.stop() + } + }, e, this, [[21, 59, 62, 65]]) + })), + function(e) { + return DT.apply(this, arguments) + } + ) + }, { + key: "adInvoke", + value: (OT = d(T.mark(function e(s) { + var u = this; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return e.abrupt("return", new Promise(function() { + var r = d(T.mark(function e(r, t) { + var n, o, i, a = this; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return n = "main.showad.".concat(s.params.adapter, ".").concat(s.params.adapterIndex), + o = function(e) { + D(this, a), + u._eventBus.unsubscribeScope(n); + var t = "dismissed" === (null == e ? void 0 : e.message); + r({ + success: !1, + args: e, + isSkipped: t, + noVast: e.noVast + }) + } + .bind(this), + i = function(e) { + D(this, a), + u._eventBus.unsubscribeScope(n), + r({ + success: !0, + args: e + }) + } + .bind(this), + u._eventBus.subscribe("AD_ERROR", o, n), + u._eventBus.subscribe("AD_SDK_CANCELED", o, n), + u._eventBus.subscribe("AD_SUCCESS", i, n), + e.prev = 6, + e.next = 9, + u._adInstance.startAd(s); + case 9: + e.next = 15; + break; + case 11: + e.prev = 11, + e.t0 = e.catch(6), + Ls("gd-adflow startAd error", e.t0), + r({ + success: !1, + err: e.t0 + }); + case 15: + case "end": + return e.stop() + } + }, e, this, [[6, 11]]) + })); + return function(e, t) { + return r.apply(this, arguments) + } + }())); + case 1: + case "end": + return e.stop() + } + }, e) + })), + function(e) { + return OT.apply(this, arguments) + } + ) + }, { + key: "_getAdFlow", + value: function(e) { + var t, r = this, n = (function() { + if (D(this, r), + Nu.customAdFlow) + return JSON.parse(Nu.customAdFlow) + } + .bind(this), + this._gameData.adflw), o = null != (o = n) && null != (o = o.adapters) && o.default ? null == (o = n) || null == (o = o.adapters) ? void 0 : o.default : ["ima", "adsense"]; + return null != (t = n) && null != (t = t.adapters) && t[e] ? null == (t = n) || null == (n = t.adapters) ? void 0 : n[e] : o + } + }]); + var RT, OT, DT, TT = CT, IT = new A.exports.EventEmitter, MT = ["https://games.softgames.com", "https://sg.gamedistribution.com", "https://minigame-stg.aeriagames.jp", "https://minigame.aeriagames.jp", "https://html5.gamedistribution.com", "http://localhost:3005", "https://yjgames.gamedistribution.com", "https://portal-staging-sgweb.gamedistribution.com/"]; + function CT(e) { + var t = this; + le(this, CT), + Fu(this, "_getAdTypeByAfgPosition", function(r) { + var n = this + , o = (D(this, t), + { + preroll: ["preroll", "start"], + midroll: ["next"], + rewarded: ["reward"] + }); + return Object.keys(o).find(function(e) { + var t = this; + return D(this, n), + o[e].some(function(e) { + return D(this, t), + e === r.params.position + } + .bind(this)) + } + .bind(this)) || "midroll" + } + .bind(this)), + this._gameData = e._gameData, + this._msgrt = e.msgrt, + this._adInstance = e.adInstance, + this._eventBus = e.eventBus, + this.blockedAdsMap = e.blockedAdsMap, + this._parentURL = e._parentURL, + this._onResumeGame = e.onResumeGame.bind(e), + this._setAdRequestTimer = e._setAdRequestTimer.bind(e), + this._giveGift = e._giveGift.bind(e), + this._runAutoResume = e._runAutoResume.bind(e), + this.send_atom_event = e.send_atom_event.bind(e), + this.get_session_id = e.get_session_id.bind(e), + this.get_ad_system_init_result = e.get_ad_system_init_result.bind(e) + } + window.addEventListener("message", function(e) { + var t, r, n = this, o = e.data, i = e.origin, e = e.source; + !MT.some(function(e) { + return D(this, n), + e === i + } + .bind(this)) || null != o && o.__tcfapiCall || (r = o.system, + o.action, + t = "aeriaExternalHostsConnector" === r, + "Softgames" === r ? (RT = e, + (window.parent || window).postMessage(o, "*"), + IT.emit("aeria-event", o)) : t && (RT && RT.postMessage(o, "*"), + r = window.parent || window) && r.postMessage(o, "*")) + }, !1); + var LT = "https://html5.gamedistribution.com" + , PT = "parent-data-request" + , jT = "parent-data-response"; + pe(BT, [{ + key: "init", + value: function(t) { + var r = this; + this._registerForDataRequests(t), + this._askForParentFrameData().then(function(e) { + D(this, r), + e && (e = e.adRequestTimer, + t.adRequestTimer = e, + t.adRequestTimer) + } + .bind(this)) + } + }, { + key: "_registerForDataRequests", + value: function(o) { + var i = this; + window.addEventListener("message", function(e) { + D(this, i); + var t = e.data + , r = e.origin + , e = e.source + , n = t.type; + t.value, + r === LT && n === PT && (t = { + adRequestTimer: o.adRequestTimer + }, + e.postMessage({ + type: jT, + value: t + })) + } + .bind(this)) + } + }, { + key: "_askForParentFrameData", + value: (UT = d(T.mark(function e() { + var i = this; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return e.abrupt("return", new Promise(function(n, e) { + var t = this + , o = (D(this, i), + !1) + , r = (window.addEventListener("message", function(e) { + var t = e.data + , r = e.origin + , e = (e.source, + t.type) + , t = t.value; + r === LT && e === jT && (n(t), + o = !0) + }), + setTimeout(function() { + D(this, t), + o || n() + } + .bind(this), 1e3), + { + type: PT + }); + window.parent.postMessage(r, "*") + } + .bind(this))); + case 1: + case "end": + return e.stop() + } + }, e, this) + })), + function() { + return UT.apply(this, arguments) + } + ) + }]); + var UT, $T = new BT; + function BT() { + le(this, BT) + } + function NT(t, e) { + var r, n = Object.keys(t); + return Object.getOwnPropertySymbols && (r = Object.getOwnPropertySymbols(t), + e && (r = r.filter(function(e) { + return Object.getOwnPropertyDescriptor(t, e).enumerable + })), + n.push.apply(n, r)), + n + } + function FT(t) { + for (var e = 1; e < arguments.length; e++) { + var r = null != arguments[e] ? arguments[e] : {}; + e % 2 ? NT(Object(r), !0).forEach(function(e) { + Fu(t, e, r[e]) + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : NT(Object(r)).forEach(function(e) { + Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(r, e)) + }) + } + return t + } + var GT, zT, ZT, HT, KT, qT, VT, WT, YT, JT, XT, QT, eI, tI, rI = vT(), nI = null, oI = null, iI = (pe(aI, [{ + key: "_initUnityHandler", + value: function() { + var t = this; + window.addEventListener("DOMNodeInserted", function() { + var e; + D(this, t), + this._gameData.block_exts && this._removeExternalsInHtml({ + enabled: !1 + }), + document.getElementsByClassName("webgl-content")[0] && (e = document.getElementsByClassName("webgl-content")[0].getElementsByClassName("footer")[0]) && e.setAttribute("style", "display:none") + } + .bind(this)) + } + }, { + key: "_send_gametag_data", + value: (eI = d(T.mark(function e(t) { + var r; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + this._getGdModeIfExist() && (r = vn() || "web", + this.adInstance._send("tg.created", { + gmid: this.options.gameId, + dvc: r, + qint: t + })); + case 1: + case "end": + return e.stop() + } + }, e, this) + })), + function(e) { + return eI.apply(this, arguments) + } + ) + }, { + key: "_loadCMP", + value: (QT = d(T.mark(function e() { + var t; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + if (this._isMasterGameURL()) + if (t = new qk, + 0 === (null == (t = t.get("depth")) ? void 0 : t.value) && null != (t = this._gameData) && null != (t = t.cmp) && t.enabled && "html5.gamedistribution.com" === this._topDomain) + return e.next = 6, + cT(); + e.next = 6; + break; + case 6: + case "end": + return e.stop() + } + }, e, this) + })), + function() { + return QT.apply(this, arguments) + } + ) + }, { + key: "testConsent", + value: function() { + try { + QD(), + d(T.mark(function e() { + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return e.next = 2, + eT({}); + case 2: + e.sent; + case 3: + case "end": + return e.stop() + } + }, e) + }))() + } catch (e) { + console.log("find CMP error", e) + } + } + }, { + key: "_sendLoaderDataEvent", + value: function() { + try { + this.options.onLoaderEvent && this.options.onLoaderEvent({ + name: "LOADER_DATA", + message: { + game: this._gameData, + bridge: this._bridge + }, + status: this._sdk_ready ? "success" : "error" + }) + } catch (e) {} + } + }, { + key: "_registerSGBridge", + value: function() { + var t = this; + lT.on("splash-hidden", function(e) { + D(this, t), + this._hideCMPButton() + } + .bind(this)) + } + }, { + key: "_hideCMPButton", + value: function() { + var e = document.getElementById("ot-sdk-btn-floating"); + e && (e.style.display = "none") + } + }, { + key: "_sendLoadedEvent", + value: function() { + if (!this._isLoaded && (this._isLoaded = !0, + "loader-frame" === this._whichFrame())) + try { + this._whichFrame(), + this._sendTunnlEvent(1), + this.msgrt.send("loaded", { + message: this._hasBlocker ? "Has Blocker" : "No Blocker" + }) + } catch (e) {} + } + }, { + key: "_sendGamedockGamePlay", + value: function() { + var e = this._isTokenGameURL(); + if (!(this._gameData.loader.enabled && e || this._gameDockGamePlaySent)) + try { + this._sendGamedockEvent("gameplay"), + this._gameDockGamePlaySent = !0 + } catch (e) {} + } + }, { + key: "_safeInit", + value: function() { + this._checkUserDeclinedTracking(), + this._checkWhitelabelPartner(); + var e = this._gameData.diagnostic; + void 0 !== e && void 0 !== e.close_ga && !1 !== e.close_ga || this._bridge.isCoreSDKMode || this._loadGoogleAnalytics(), + void 0 !== e && void 0 !== e.close_gamedock && !1 !== e.close_gamedock || this._bridge.isCoreSDKMode || this._bridge.noGamedockSDK || this._loadGamedockTracker(), + void 0 !== e && void 0 !== e.close_minijuegos && !1 !== e.close_minijuegos || (console.log("noMinijuegosSDK", !this._bridge.isCoreSDKMode, !this._bridge.noMinijuegosSDK, 0 <= document.location.search.indexOf("mp_game_id")), + !this._bridge.isCoreSDKMode && !this._bridge.noMinijuegosSDK && 0 <= document.location.search.indexOf("mp_game_id") && this._loadMiniJuegosGratisTracker()) + } + }, { + key: "_initializeSDKWithGameData", + value: (XT = d(T.mark(function e(t, r) { + var n, o = this; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return e.prev = 0, + e.next = 3, + this._getGameData(); + case 3: + return this._gameData = e.sent, + e.next = 6, + this._loadCMP(); + case 6: + this._bridge.isCoreSDKMode = (null == (n = this._gameData.disableAds) ? void 0 : n.default) || !1, + this._safeInit(), + this._checkGameId(), + this._checkGameDeleted(), + this._checkBlocking(), + this._changeMidrollInDebugMode(), + void 0 !== this._gameData.diagnostic && void 0 !== this._gameData.diagnostic.close_ads && !1 !== this._gameData.diagnostic.close_ads || (this.videoAdReady = this._initializeVideoAd().then(function() { + D(this, o), + (this._isMasterGameURL() || this._isExtHostedGameURL()) && (this.msgrt.send("adblocker.flw", { + message: "ok" + }), + this.msgrt.send("adblocker.adapters", { + message: "none" + })) + } + .bind(this)).catch(function(e) { + D(this, o); + var t = "".concat(e).startsWith("Error: Blocked:") + , t = (Cs("gd-adflow adsBlocked", t, e), + this.get_ad_system_init_result()) + , r = t.ima + , t = t.afg; + this.adsBlocked = !r && !t, + (this._isMasterGameURL() || this._isExtHostedGameURL()) && (this.msgrt.send("adblocker.flw", { + message: "".concat(this.adsBlocked ? "blocked" : "ok") + }), + this.msgrt.send("adblocker.adapters", { + message: "".concat(r || t ? r ? t ? "none" : "adsense" : "ima" : "all") + })), + console.error(e.message || e) + } + .bind(this))), + t(this._gameData), + e.next = 21; + break; + case 16: + e.prev = 16, + e.t0 = e.catch(0), + this._sendSDKError(e.t0), + this.onResumeGame(e.t0.message, "warning"), + r(e.t0); + case 21: + case "end": + return e.stop() + } + }, e, this, [[0, 16]]) + })), + function(e, t) { + return XT.apply(this, arguments) + } + ) + }, { + key: "_getDefaultOptions", + value: function() { + return { + debug: !1, + testing: !1, + gameId: "4f3d7d38d24b740c95da2b03dc3a2333", + prefix: "gdsdk__", + onEvent: function(e) {}, + onLoaderEvent: function(e) {}, + flashSettings: { + adContainerId: "", + splashContainerId: "" + }, + advertisementSettings: {}, + resumeGame: function() {}, + pauseGame: function() {}, + onInit: function(e) {}, + onError: function(e) {}, + loader: {} + } + } + }, { + key: "_extendDefaultOptions", + value: function(e, t) { + e = Ft(e); + this.options = t ? dn(e, t) : e, + this.options.gameId = this.options.gameId.trim() + } + }, { + key: "_setConsoleBanner", + value: function() { + var e; + this._bridge.noConsoleBanner || (e = $u.version, + e = console.log("%c %c %c GameDistribution.com HTML5 SDK | Version: " + e + " %c %c %c", "background: #9854d8", "background: #6c2ca7", "color: #fff; background: #450f78;", "background: #6c2ca7", "background: #9854d8", "background: #ffffff"), + console.log.apply(console, e)) + } + }, { + key: "_sendTunnlEvent", + value: function(e) { + var t = this + , e = (void 0 !== this._topDomain && "undefined" !== this._topDomain || (this._topDomain = void 0), + { + page_url: this._topDomain || this._parentDomain, + game_id: this.options.gameId, + eventtype: e, + ts: Date.now() + }); + fetch("https://ana.headerlift.com/event?".concat(Z.stringify(e))).catch(function(e) { + D(this, t) + } + .bind(this)), + this.adInstance._send_atom_event("hl.config", e), + this._send_gametag_data("sdk_gameplay") + } + }, { + key: "_sendAdRequestContext", + value: function(e) { + this.msgrt.send("adctx", { + message: e.adTag.bidder + }) + } + }, { + key: "_checkWhitelabelPartner", + value: function() { + this._whitelabelPartner = !1; + var e = mn(); + e.hasOwnProperty("xanthophyll") && "true" === e.xanthophyll && (this._whitelabelPartner = !0, + Dn("White label publisher", "".concat(this._whitelabelPartner), "success")) + } + }, { + key: "_checkConsole", + value: function() { + try { + kn && ("developer.gamedistribution.com" === this._parentDomain ? (Sn("gd_debug_ex", !0), + Sn("gd_disable_midroll_timer", !0), + Sn("gd_tag", !0)) : "localhost:3000" === this._parentDomain && (Sn("gd_debug_ex", !0), + Sn("gd_disable_midroll_timer", !0)), + xn("gd_debug_ex")) && (this.openConsole(), + this.msgrt.send("dev.console", { + message: this._parentDomain + })) + } catch (e) {} + } + }, { + key: "_checkUserDeclinedTracking", + value: function() { + this._userDeclinedTracking = this._bridge.isCoreSDKMode || 0 <= document.location.search.indexOf("gdpr-tracking=0") || 0 <= document.cookie.indexOf("ogdpr_tracking=0") + } + }, { + key: "_initializeMessageRouter", + value: function() { + this.msgrt = new Nn({ + gameId: this.options.gameId, + hours: (new Date).getHours(), + topDomain: this._topDomain, + domain: this._parentDomain, + referrer: this._parentURL, + depth: yn(), + version: $u.version, + tracking: this._userDeclinedTracking, + whitelabel: this._whitelabelPartner, + platform: vn(), + byloader: this._bridge.isTokenGameURL, + isTokenGameURL: this._bridge.isTokenGameURL, + isMasterGameURL: this._bridge.isMasterGameURL, + isExtHostedGameURL: this._bridge.isExtHostedGameURL, + byloaderVersion: this._bridge.version + }) + } + }, { + key: "_loadGamedockTracker", + value: function() { + var t = this; + try { + var e = ["patch/js/null.js?https://cdn.gamedock.io/gamemonkey-web-tracker/5.0.0/script/gamemonkey-sdk.js"]; + bn(e[0], "GamedockSDK", { + alternates: e + }).then(function() { + var e; + D(this, t), + oI = this._initGamedockTracker(window.GamedockSDK), + this._sendGamedockEvent("pageview"), + null != (e = this._gameData.diagnostic) && null != (e = e.gameDock) && e.adViewEvent && oI.tracking.enableHeartBeatForPage({ + pageId: this.options.gameId, + pageType: "game" + }, this._gameData.diagnostic.gameDock.heartbeatConfig), + rT.track(oI, this._gameData) + } + .bind(this)).catch(function(e) { + D(this, t), + this._sendSDKError(e) + } + .bind(this)) + } catch (t) {} + } + }, { + key: "_initGamedockTracker", + value: function(e) { + if (!this._bridge.isCoreSDKMode) + return e.initialize("gd", this._parentDomain) + } + }, { + key: "_sendGamedockEvent", + value: function(e) { + var t; + null != (t = oI) && null != (t = t.tracking) && t.trackEvent(e, { + pageId: this.options.gameId, + pageType: "game" + }) + } + }, { + key: "_loadMiniJuegosGratisTracker", + value: function() { + var t = this + , e = (window.mpConfig = { + game: this.options.gameId, + partner: "game-distribution" + }, + ["https://ext.minijuegosgratis.com/external-host/main.js"]); + console.log("noMinijuegosSDK loading"), + bn(e[0], "MinijuegosSDK", { + alternates: e + }).catch(function(e) { + D(this, t), + this._sendSDKError(e) + } + .bind(this)) + } + }, { + key: "_loadLocus", + value: (tI = d(T.mark(function e() { + var t, r = this; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return e.next = 2, + TE(); + case 2: + if (e.sent) { + e.next = 6; + break + } + return console.log("locus-disabled"), + e.abrupt("return"); + case 6: + t = ["patch/js/null.js?https://tag.atom.gamedistribution.com/v1/locus"], + console.log("locus loading"), + bn(t[0], "locus", { + alternates: t + }).catch(function(e) { + D(this, r), + this._sendSDKError(e) + } + .bind(this)); + case 9: + case "end": + return e.stop() + } + }, e, this) + })), + function() { + return tI.apply(this, arguments) + } + ) + }, { + key: "_loadGoogleAnalytics", + value: function() { + return false; + console.log("--fx--_loadGoogleAnalytics--") + var t = this + , e = ["https://www.google-analytics.com/analytics.js"]; + bn(e[0], "gdsdk_google_analytics", { + alternates: e, + error_prefix: "Blocked:", + exists: function() { + return D(this, t), + window.ga + } + .bind(this) + }).then(function() { + D(this, t), + window.ga("create", "UA-60359297-49", { + name: "gd", + cookieExpires: 7776e3, + sampleRate: 5 + }, "auto"), + this._bridge.noGAPageView || window.ga("gd.send", "pageview"), + this._userDeclinedTracking || window.ga("gd.set", "anonymizeIp", !0) + } + .bind(this)).catch(function(e) { + D(this, t), + this._sendSDKError(e) + } + .bind(this)) + } + }, { + key: "_subscribeToEvents", + value: function() { + var r = this; + this.eventBus = new $n, + Mn.forEach(function(e) { + var t = this; + return D(this, r), + this.eventBus.subscribe(e, function(e) { + return D(this, t), + this._onEvent(e) + } + .bind(this), "sdk") + } + .bind(this)), + Cn.forEach(function(e) { + var t = this; + return D(this, r), + this.eventBus.subscribe(e, function(e) { + return D(this, t), + this._onEvent(e) + } + .bind(this), "ima") + } + .bind(this)), + this.eventBus.subscribe("COMPLETE", function() { + if (D(this, r), + "developer.gamedistribution.com" === this._parentDomain || !0 === new RegExp("^localhost").test(this._parentDomain)) { + fetch("https://game.api.gamedistribution.com/game/v2/hasapi/".concat(this.options.gameId, "?timestamp=").concat((new Date).valueOf())); + try { + var e = JSON.stringify({ + type: "GD_SDK_IMPLEMENTED", + gameID: this.options.gameId + }); + window.location !== window.top.location ? window.top.postMessage(e, "*") : null !== window.opener && window.opener.location !== window.location && window.opener.postMessage(e, "*") + } catch (e) {} + } + fD("act", "ad complete") + } + .bind(this), "ima"), + this.eventBus.subscribe("CONTENT_PAUSE_REQUESTED", function() { + return D(this, r), + this.onPauseGame("New advertisements requested and loaded", "success") + } + .bind(this), "ima"), + this.eventBus.subscribe("IMPRESSION", function(e) { + var t; + D(this, r), + this.msgrt.send("ad.impression"), + fD("genp", "ad video"), + fD("act", "ad impression"), + null != (t = this._gameData.diagnostic) && null != (t = t.gameDock) && t.adViewEvent && rT.track(oI, this._gameData) + } + .bind(this), "ima"), + this.eventBus.subscribe("AD_ERROR", function(e) { + D(this, r), + this.msgrt.send("ad.error", { + message: e.message, + details: e.details + }) + } + .bind(this), "ima"), + this.eventBus.subscribe("AD_SDK_REQUEST", function(e) { + D(this, r), + this._sendAdRequestContext(e.message) + } + .bind(this), "sdk"), + this.eventBus.subscribe("SDK_ERROR", function(e) { + var t; + D(this, r), + e.message.startsWith("Blocked:") ? this._bridge.noBlockerEvent || (this.msgrt.send("error", { + message: e.message + }), + this._hasBlocker) || (this._hasBlocker = !0, + t = Math.random() < .25, + this.msgrt.send("adblck.src", { + message: e.message + }), + t && this._sendTunnlEvent(3)) : this.msgrt.send("error", { + message: e.message + }) + } + .bind(this), "sdk"), + this.eventBus.subscribe("AD_REQUEST_KEYS_EMPTY", function(e) { + D(this, r), + this.msgrt.send("tunnl.keys.empty", { + message: e.message, + details: e.details + }) + } + .bind(this), "sdk"), + this.eventBus.subscribe("AD_REQUEST_KEYS_FALLBACK", function(e) { + D(this, r), + this.msgrt.send("tunnl.keys.fallback", { + message: e.message, + details: e.details + }) + } + .bind(this), "sdk"), + this.eventBus.subscribe("AD_T4R", function(e) { + return D(this, r), + this.msgrt.send("adt4r") + } + .bind(this), "sdk") + } + }, { + key: "_checkGameId", + value: function() { + this.options.gameId === this._defaults.gameId && this._sendSDKError("Check correctness of your GAME ID. Otherwise, no revenue will be recorded.") + } + }, { + key: "_getDefaultGameData", + value: function() { + return { + gameId: this.options.gameId, + disableAds: {}, + preroll: !0, + midroll: 12e4, + rewardedAds: !1, + title: "", + tags: [], + category: "", + assets: [], + dmain: !0, + sdk: {}, + loader: {}, + splash: {}, + promo: {}, + dAds: {}, + pAds: {}, + mAds: {}, + rAds: {} + } + } + }, { + key: "_getGameDataUrl", + value: function() { + console.log("--fx--_getGameDataUrl--") + return {} + var e = void 0 !== this._topDomain && "undefined" !== this._topDomain ? this._topDomain : this._parentDomain; + return "https://game.api.gamedistribution.com/game/v4/get/".concat(this.options.gameId.replace(/-/g, ""), "/?domain=").concat(e, "&v=").concat($u.version, "&localTime=").concat((new Date).getHours()) + } + }, { + key: "_checkBlocking", + value: (JT = d(T.mark(function e() { + var t, r, n = this; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + r = this._gameData, + t = void 0 === this._gameData.dmain || this._gameData.dmain, + (r.bloc_gard && !0 === r.bloc_gard.enabled || !t) && (this.msgrt.send("blocked"), + setTimeout(function() { + D(this, n), + window.location.href == "https://html5.api.gamedistribution.com/blocked.html?".concat(Z.stringify({ + domain: this._parentDomain, + id: r.gameId, + img: this._get_game_thumbnail_url(), + title: r.title + })) + } + .bind(this), 100)); + case 5: + case "end": + return e.stop() + } + }, e, this) + })), + function() { + return JT.apply(this, arguments) + } + ) + }, { + key: "_checkGameDeleted", + value: function() { + var e = this; + 6 === this._gameData.status && (console.log("%c %c %c This game was deleted, please remove it in your website... ", "background: #F2181A", "background: #F23818", "color: #fff; background: #F23818;", "background: #F55E60", "background: #F55E60", "background: #c4161e; color: #fff;"), + setTimeout(function() { + D(this, e), + document.location = "https://html5.api.gamedistribution.com/deleted.html" + } + .bind(this), 100)) + } + }, { + key: "_changeMidrollInDebugMode", + value: function() { + var e = this._gameData; + kn && xn("gd_debug_ex") && (xn("gd_disable_midroll_timer") ? e.midroll = 0 : e.midroll = this._getDefaultGameData().midroll) + } + }, { + key: "_checkSplashAndPromoScreens", + value: function() { + this._gameData.loader && !1 === this._gameData.loader.mobile && this._getisMobile() && (this._gameData.loader.enabled = !1); + var e, t = this._gameData, r = t.gdpr && !0 === t.gdpr.consent, n = t.loader, o = null == (o = t.promo) ? void 0 : o[null == (o = t.promo) || null == (o = o.template) ? void 0 : o.preroll]; + t.preroll || (this.adRequestTimer = Date.now()), + this.options.loader.enabled ? null != o && o.enabled ? this._createPromoBeforeSplash(t, r) : n.enabled && !0 !== (null == (e = n.splash) ? void 0 : e.skip) ? this._createSplash(t, r) : this.onResumeGame("Skipped splash.", "success") : n.enabled || this._bridge.isTokenGameURL && this._bridge.isExtHostedGameURL || (this.options.advertisementSettings.autoplay || r ? null != o && o.enabled ? this._createPromoBeforeSplash(t, r) : !1 !== n.enabled && this._createSplash(t, r) : null != o && o.enabled && this._createPromo(t, r)) + } + }, { + key: "_initializeVideoAd", + value: (YT = d(T.mark(function e() { + var t; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + if (this._bridge.isCoreSDKMode) + return e.abrupt("return"); + e.next = 2; + break; + case 2: + return (t = this._gameData).sdk.enabled && (this.options.advertisementSettings = dn(this.options.advertisementSettings, t.sdk)), + this.macros = new Bn({ + game: t, + bridge: this._bridge + }), + this.adInstance = new KD(this.options.flashSettings.adContainerId,this.options.advertisementSettings,{ + parentURL: this._parentURL, + parentDomain: this._parentDomain, + topDomain: this._topDomain + }), + this.adInstance.gameId = t.gameId, + this.adInstance.category = t.category, + this.adInstance.tags = t.tags, + this.adInstance.noPreroll = this._bridge.noPreroll, + this.adInstance.macros = this.macros, + this.adInstance.gameData = t, + this.adInstance.msgrt = this.msgrt, + this.adInstance.PackageJSON = $u, + this.adInstance._send_atom_event("gd.location"), + e.next = 17, + this.adInstance.start(); + case 17: + this._executeMidrollPlus(); + case 18: + case "end": + return e.stop() + } + }, e, this) + })), + function() { + return YT.apply(this, arguments) + } + ) + }, { + key: "_sendSDKReady", + value: function() { + var e = "Everything is ready."; + this.eventBus.broadcast("SDK_READY", { + message: e, + status: "success" + }); + try { + this.options.onInit(e) + } catch (e) { + Dn("DEVELOPER_ERROR", e.message, "warning") + } + } + }, { + key: "_sendSDKError", + value: function(e) { + e = e.message ? e : { + message: e + }, + this.eventBus.broadcast("SDK_ERROR", { + message: e.message, + status: "error" + }); + try { + this.options.onError(e) + } catch (e) { + Dn("DEVELOPER_ERROR", e.message, "warning") + } + } + }, { + key: "_onEvent", + value: function(e) { + Dn(e.name, e.message, e.status); + try { + this.options.onEvent({ + name: e.name, + message: e.message, + status: e.status, + skipForward: e.skipForward, + adPosition: e.adPosition + }) + } catch (e) { + Dn("DEVELOPER_ERROR", e.message, "warning") + } + } + }, { + key: "_getGameData", + value: (WT = d(T.mark(function e() { + var r; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return e.next = 2, + EE(); + case 2: + return r = e.sent, + this.msgrt.setGameData(r), + t = r.diagnostic, + On = t, + e.abrupt("return", r); + case 6: + case "end": + return e.stop() + } + var t + }, e, this) + })), + function() { + return WT.apply(this, arguments) + } + ) + }, { + key: "_createSplash", + value: (VT = d(T.mark(function e(t, n) { + var o, r, i, a = this; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return e.next = 2, + this._getSplashTemplate(t); + case 2: + return r = e.sent, + o = new r(FT(FT({}, this.options), {}, { + isConsentDomain: n, + version: $u.version + }),t,this._parentDomain), + e.next = 6, + ME(); + case 6: + r = e.sent, + i = r.enabled, + o.on("playClick", function() { + var e, t, r = this; + D(this, a), + n && ((e = new Date).setDate(e.getDate() + 90), + document.cookie = "ogdpr_tracking=1; expires=".concat(e.toUTCString(), "; path=/")), + this._hideCMPButton(), + i ? window.gdsdk.showAd(m.Interstitial, { + position: "preroll" + }).catch(function(e) { + D(this, r), + o.hide() + } + .bind(this)) : (t = { + position: "preroll" + }, + function() { + D(this, r), + Nu.firstAdapterModeAdsense && (console.log("promo-test, set first adapter to adssense 1"), + t.adapter = "adsense") + } + .bind(this), + this.showAd(m.Interstitial, t).catch(function(e) { + D(this, r) + } + .bind(this))), + null != (e = this._gameData) && null != (e = e.evnts) && e.enabled && (yT({ + event: "FirstInteraction", + game: this._gameData + }), + this._send_gametag_data("first_interaction")) + } + .bind(this)), + this.onPauseGame("Pause the game and wait for a user gesture", "success"), + this.eventBus.subscribe("SDK_GAME_PAUSE", function() { + D(this, a), + o.hide() + } + .bind(this)), + this.eventBus.subscribe("SDK_GAME_START", function() { + D(this, a), + o.hide() + } + .bind(this)); + case 12: + case "end": + return e.stop() + } + }, e, this) + })), + function(e, t) { + return VT.apply(this, arguments) + } + ) + }, { + key: "_createPromoBeforeSplash", + value: (qT = d(T.mark(function e(t, r) { + var n, o, i = this; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return e.prev = 0, + e.next = 3, + this._createPrerollPromoTemplate(t); + case 3: + n = e.sent, + (o = new n(FT(FT({}, this.options), {}, { + isConsentDomain: r, + version: $u.version, + template: null == (n = t.promo) || null == (n = n.template) ? void 0 : n.preroll + }),t)).on("done", function() { + D(this, i), + o.hide(), + this._createSplash(t, r) + } + .bind(this)), + e.next = 12; + break; + case 8: + e.prev = 8, + e.t0 = e.catch(0), + console.log(e.t0), + this._createSplash(t, r); + case 12: + case "end": + return e.stop() + } + }, e, this, [[0, 8]]) + })), + function(e, t) { + return qT.apply(this, arguments) + } + ) + }, { + key: "_createPromo", + value: (KT = d(T.mark(function e(t, r) { + var n, o, i = this; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return e.prev = 0, + e.next = 3, + this._createPrerollPromoTemplate(t); + case 3: + n = e.sent, + (o = new n(FT(FT({}, this.options), {}, { + isConsentDomain: r, + version: $u.version, + template: null == (n = t.promo) || null == (n = n.template) ? void 0 : n.preroll + }),t)).on("done", function() { + D(this, i), + o.hide(), + this.onResumeGame("Resumed after the promo", "warning") + } + .bind(this)), + this.onPauseGame("Pause the game for the promo", "success"), + e.next = 12; + break; + case 9: + e.prev = 9, + e.t0 = e.catch(0), + this.onResumeGame("Resumed after the promo", "warning"); + case 12: + case "end": + return e.stop() + } + }, e, this, [[0, 9]]) + })), + function(e, t) { + return KT.apply(this, arguments) + } + ) + }, { + key: "showBanner", + value: function() { + var e = this; + this.showAd(m.Interstitial).catch(function() { + D(this, e) + } + .bind(this)) + } + }, { + key: "showAd", + value: (HT = d(T.mark(function e(a) { + var s, u = this, t = arguments; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return s = 1 < t.length && void 0 !== t[1] ? t[1] : {}, + e.abrupt("return", new Promise(function() { + var r = d(T.mark(function e(t, r) { + var n, o, i; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + if (e.prev = 0, + u._autoResumeIfAdsAreDisabled(a || "interstitial")) + return e.abrupt("return", t()); + e.next = 5; + break; + case 5: + return n = { + adType: a || "interstitial", + params: s, + adTimestamp: u.adRequestTimer + }, + e.next = 9, + u.sdkReady; + case 9: + return o = e.sent, + e.next = 12, + u.videoAdReady; + case 12: + if (null != (i = u._gameData.lp) && i.load || u._sendLoadedEvent(), + u._sendGamedockGamePlay(), + u._rejectAdIfGameBlocked({ + gameData: o, + adRequest: n + }), + u._rejectAdIfAdDisabled({ + gameData: o, + adRequest: n + }), + u._rejectAdIfUnsupportedType({ + adRequest: n + }), + "rewarded" === a && u._setGameRewardedFlag(), + null != s && s.isGift || u._rejectAdIfAdRateHits({ + gameData: o, + adRequest: n + }), + u.adInstance.attachAfgPosition(n), + u.adFlowRunning) + return e.abrupt("return", t()); + e.next = 22; + break; + case 22: + return u.adFlowRunning = !0, + i = new TT(u), + e.next = 26, + i.runAdFlow(n); + case 26: + u.adFlowRunning = !1, + t(), + u._post_message({ + topic: "adrequest.instream" + }), + e.next = 36; + break; + case 31: + e.prev = 31, + e.t0 = e.catch(0), + u.adFlowRunning = !1, + u.onResumeGame(e.t0.message, "warning"), + r(e.t0.message); + case 36: + case "end": + return e.stop() + } + }, e, null, [[0, 31]]) + })); + return function(e, t) { + return r.apply(this, arguments) + } + }())); + case 2: + case "end": + return e.stop() + } + }, e) + })), + function(e) { + return HT.apply(this, arguments) + } + ) + }, { + key: "_autoResumeIfAdsAreDisabled", + value: function(e) { + var t = !1 + , r = this._gameData.diagnostic.close_ads + , e = this._gameData.disableAds[e]; + return this._gameData.diagnostic, + this._gameData.disableAds, + (r || e) && (this._runAutoResume(), + t = !0), + t + } + }, { + key: "_runAutoResume", + value: function() { + var e = "CONTENT_PAUSE_REQUESTED" + , t = "CONTENT_RESUME_REQUESTED"; + this.eventBus.broadcast(e, { + name: e, + message: "Auto pause when ads are disabled" + }), + this.eventBus.broadcast(t, { + name: t, + message: "Auto resume when ads are disabled" + }), + this.onResumeGame("Advertisement(s) are cancelled. Start / resume the game.", "success") + } + }, { + key: "_giveGift", + value: function() { + var e; + null != (e = this._gameData) && null != (e = e.gft) && e.enabled && (null == (e = this._gameData) || null == (e = e.gft) || null == (e = e.durations[this._giftCount]) ? void 0 : e.after) === this.adInstance.adMidrollCount && this.decideToGiveAGift() + } + }, { + key: "_setAdRequestTimer", + value: function() { + this.adRequestTimer = Date.now() + } + }, { + key: "clearSession", + value: function() { + this.adInstance.clearSession() + } + }, { + key: "_attachAfgFallback", + value: function(e) { + var t = e.gameData + , r = e.adRequest; + if (!t.afg_disabled && !r.params.hasOwnProperty("fallback_adsense")) + switch (r.params.position) { + case "preroll": + case "start": + case "next": + r.params.fallback_adsense = !0 + } + } + }, { + key: "_rejectAdIfGameBlocked", + value: function(e) { + e = e.gameData; + if (e.bloc_gard && !0 === e.bloc_gard.enabled) + throw new Error("Game or domain is blocked.") + } + }, { + key: "_rejectAdIfAdDisabled", + value: function(e) { + var t = e.gameData + , e = e.adRequest; + if (t.disableAds[e.adType] || this._whitelabelPartner) + throw new Error("Advertisements are disabled.") + } + }, { + key: "_rejectAdIfUnsupportedType", + value: function(e) { + e = e.adRequest; + if (e.adType) { + if (e.adType !== m.Interstitial && e.adType !== m.Rewarded) + throw new Error("Unsupported an advertisement type: ",e.adType) + } else + e.adType = m.Interstitial + } + }, { + key: "_rejectAdIfRewardedDisabled", + value: function(e) { + var t = e.gameData; + if (e.adRequest.adType === m.Rewarded && !t.rewardedAds) + throw new Error("Rewarded ads are disabled.") + } + }, { + key: "_rejectAdIfAdRateHits", + value: function(e) { + var t, r = e.gameData, e = e.adRequest, n = null; + if (e.adType === m.Interstitial && null != (t = r.diagnostic) && null != (t = t.useMidrollIndex) && t.enabled && this.adInstance.noPreroll ? this.adInstance.adMidrollCount > (null == (t = r.diagnostic) || null == (t = t.useMidrollIndex) ? void 0 : t.indexes.length) - 1 || (n = 6e4 * (null == (t = r.diagnostic) || null == (t = t.useMidrollIndex) ? void 0 : t.indexes[this.adInstance.adMidrollCount])) : n = r.midroll, + e.adType === m.Interstitial && void 0 !== this.adRequestTimer && Date.now() - this.adRequestTimer < n) + throw new Error("The advertisement was requested too soon.") + } + }, { + key: "preloadAd", + value: (ZT = d(T.mark(function e(i) { + var a = this; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return e.abrupt("return", new Promise(function() { + var r = d(T.mark(function e(t, r) { + var n, o; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return e.prev = 0, + e.next = 3, + a.sdkReady; + case 3: + return n = e.sent, + e.next = 6, + a.videoAdReady; + case 6: + if (n.bloc_gard && !0 === n.bloc_gard.enabled) + throw new Error("Game or domain is blocked."); + e.next = 8; + break; + case 8: + if (n.disableAds[i] || a._whitelabelPartner) + throw new Error("Advertisements are disabled for this ad type => ".concat(i, "...")); + e.next = 10; + break; + case 10: + i ? e.next = 14 : (i = m.Rewarded, + e.next = 16); + break; + case 14: + if (i !== m.Interstitial && i !== m.Rewarded) + throw new Error("Unsupported an advertisement type:" + i); + e.next = 16; + break; + case 16: + return e.next = 18, + a.adInstance.preloadAd(i); + case 18: + o = e.sent, + t(o), + e.next = 25; + break; + case 22: + e.prev = 22, + e.t0 = e.catch(0), + r(e.t0); + case 25: + case "end": + return e.stop() + } + }, e, null, [[0, 22]]) + })); + return function(e, t) { + return r.apply(this, arguments) + } + }())); + case 1: + case "end": + return e.stop() + } + }, e) + })), + function(e) { + return ZT.apply(this, arguments) + } + ) + }, { + key: "cancelAd", + value: (zT = d(T.mark(function e() { + var n = this; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return e.abrupt("return", new Promise(function() { + var r = d(T.mark(function e(t, r) { + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + try { + n.adInstance.cancel(), + n.onResumeGame("Advertisement(s) are cancelled. Start / resume the game.", "success"), + r() + } catch (e) { + n.onResumeGame("Advertisement(s) are cancelled. Start / resume the game.", "success"), + t(e.message) + } + case 1: + case "end": + return e.stop() + } + }, e) + })); + return function(e, t) { + return r.apply(this, arguments) + } + }())); + case 1: + case "end": + return e.stop() + } + }, e) + })), + function() { + return zT.apply(this, arguments) + } + ) + }, { + key: "showDisplayAd", + value: function(o) { + var r, i = this; + return new Promise((r = d(T.mark(function e(t, r) { + var n; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return e.prev = 0, + e.next = 3, + i.sdkReady; + case 3: + return n = e.sent, + e.next = 6, + i.videoAdReady; + case 6: + if (n.dAds.enabled) + return e.next = 9, + i.adInstance.loadDisplayAd(o); + e.next = 13; + break; + case 9: + i._post_message({ + topic: "adrequest.display" + }), + t(), + e.next = 14; + break; + case 13: + r("Display-Ads are disabled."); + case 14: + e.next = 19; + break; + case 16: + e.prev = 16, + e.t0 = e.catch(0), + r(e.t0.message || e.t0); + case 19: + case "end": + return e.stop() + } + }, e, null, [[0, 16]]) + })), + function(e, t) { + return r.apply(this, arguments) + } + )) + } + }, { + key: "onResumeGame", + value: function(e, t) { + this._allowExternals({ + enabled: !1 + }); + try { + this.options.resumeGame() + } catch (e) { + console.log("gd-adflow error onResumeGame", e), + Dn("DEVELOPER_ERROR", e.message, "warning") + } + var r = "SDK_GAME_START"; + this.eventBus.broadcast(r, { + name: r, + message: e, + status: t, + analytics: { + category: "SDK", + action: r, + label: this.options.gameId + "" + } + }), + this.adInstance && this.adInstance._hideAddResume(), + null == (t = this._gameData.evnts) || !t.enabled || this._isMasterGameURL() && !this._isExtHostedGameURL() || (yT({ + event: "GameStarted", + game: this._gameData + }), + this._send_gametag_data("game_started")) + } + }, { + key: "onPauseGame", + value: function(e, t) { + this._allowExternals({ + enabled: !0 + }); + try { + this.options.pauseGame() + } catch (e) { + Dn("DEVELOPER_ERROR", e.message, "warning") + } + var r = "SDK_GAME_PAUSE"; + this.eventBus.broadcast(r, { + name: r, + message: e, + status: t, + analytics: { + category: "SDK", + action: r, + label: this.options.gameId + "" + } + }), + null == (t = this._gameData.evnts) || !t.enabled || this._isMasterGameURL() && !this._isExtHostedGameURL() || (yT({ + event: "GamePaused", + game: this._gameData + }), + this._send_gametag_data("game_paused")) + } + }, { + key: "openConsole", + value: function() { + try { + new Gn(this).start(), + Sn("gd_debug_ex", !0) + } catch (e) { + console.log(e) + } + } + }, { + key: "_initBlockingExternals", + value: function() { + var e = this._gameData; + (e.failed || e.block_exts && e.block_exts.enabled) && (this.window_open = window.open, + this._allowExternals({ + enabled: !1 + }), + this._removeExternalsInHtml({ + enabled: !1 + })) + } + }, { + key: "_checkFullscreen", + value: function() { + var r = this; + try { + var e = this._gameData; + e.sdk.fullscreen && "auto" === e.sdk.fullscreen && document.addEventListener("click", function() { + var e, t; + D(this, r), + this._isFullScreen || ((t = (e = document.body).requestFullScreen || e.webkitRequestFullScreen || e.mozRequestFullScreen || e.msRequestFullscreen) ? t.call(e) : void 0 !== window.ActiveXObject && null !== (t = new ActiveXObject("WScript.Shell")) && t.SendKeys("{F11}"), + this._isFullScreen = !0) + } + .bind(this)) + } catch (r) { + console.log("Fullscreen error handled...", r) + } + } + }, { + key: "_allowExternals", + value: function(e) { + var t = this; + void 0 !== this.window_open && (!1 === e.enabled ? window.open = function(e) { + D(this, t), + this.msgrt.send("external", { + message: "C> ".concat(e) + }), + (e.startsWith("https://play.google.com") || e.startsWith("https://itunes.apple.com")) && this.window_open.call(null, e) + } + .bind(this) : window.open = this.window_open) + } + }, { + key: "_removeExternalsInHtml", + value: function(e) { + var o = this; + !1 === e.enabled && window.document.querySelectorAll("a").forEach(function(e) { + var t = this + , r = (D(this, o), + !!(e.innerText.toLowerCase().includes("start") || e.innerText.toLowerCase().includes("play") || e.innerText.toLowerCase().includes("continue"))) + , n = e.getAttribute("href"); + e.removeAttribute("href"), + r || (e.onclick = function(e) { + return D(this, t), + e.preventDefault(), + this.msgrt.send("external", { + message: "H> ".concat(n) + }), + !1 + } + .bind(this)) + } + .bind(this)) + } + }, { + key: "_getBridgeContext", + value: function() { + var e = this._isTokenGameURL() + , t = this._isMasterGameURL() + , r = this._isExtHostedGameURL() + , n = (e || r ? this._getTokenGameURLConfig() : {}) || {} + , o = decodeURIComponent((e || r) && n.parentURL ? n.parentURL : pn()) + , i = decodeURIComponent((e || r) && n.parentDomain ? n.parentDomain : fn()) + , a = decodeURIComponent((e || r) && n.topDomain ? n.topDomain : r && 0 === yn() ? i : An()) + , s = (e || r) && n.loaderEnabled + , u = (e || r) && n.loaderEnabled + , c = (e || r) && n.loaderEnabled + , l = (e || r) && n.loaderEnabled + , d = (e || r) && n.loaderEnabled + , f = (e || r) && n.loaderEnabled + , p = (e || r) && n.loaderEnabled + , h = (e || r) && n.loaderEnabled + , m = (e || r) && n.loaderEnabled && n.hasImpression && "1.1.24" <= n.version; + return { + isTokenGameURL: e, + isMasterGameURL: t, + isExtHostedGameURL: r, + noConsoleBanner: s, + noLoadedEvent: u, + noBlockerEvent: c, + noPreroll: h, + parentURL: o, + parentDomain: i, + topDomain: a && a.length ? a : i, + noGAPageView: l, + noLotamePageView: d, + noGamedockSDK: f, + noMinijuegosSDK: p, + version: n.version, + pauseGameOnStartup: m, + depth: yn(), + domainMatched: i === a, + exports: { + formatTokenURLSearch: this._formatTokenURLSearch.bind(this), + extendUrlQuery: this._extendUrlQuery.bind(this), + base64Encode: this._base64_encode.bind(this) + } + } + } + }, { + key: "_whichFrame", + value: function() { + return !this._isMasterGameURL() && !this._isExtHostedGameURL() || this._isTokenGameURL() ? "game-frame" : "loader-frame" + } + }, { + key: "_isMasterGameURL", + value: function() { + var e = /http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Fa-f0-9]{32})(.*)$/i; + return e.test(location.href) || !this._isTokenGameURL() && e.test(document.referrer) + } + }, { + key: "_isTokenGameURL", + value: function() { + var e = /http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Za-z0-9]{8})\/(.*)$/i; + return e.test(location.href) || e.test(document.referrer) + } + }, { + key: "_isExtHostedGameURL", + value: function() { + var e = /^http[s]?:\/\/.*?gd_sdk_referrer_url=.*$/i; + return e.test(location.href) || e.test(document.referrer) + } + }, { + key: "_isLoaderGameURL", + value: function() { + return /http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Fa-f0-9]{32})(.*)$/i.test(location.href) && location.href.startsWith("https://html5.gamedistribution.com") + } + }, { + key: "_getTokenGameURLConfig", + value: function() { + try { + var e, t = /http[s]?:\/\/html5\.gamedistribution\.com\/[A-Za-z0-9]{8}\/[A-Fa-f0-9]{32}\/.*/i; + if (t.test(location.href)) { + var r = new ce(location.href,!0); + if (!r.query.gd_zone_config) + return; + e = r.query.gd_zone_config + } else if (t.test(document.referrer)) { + var n = new ce(document.referrer,!0); + if (!n.query.gd_zone_config) + return; + e = n.query.gd_zone_config + } else { + var o = new ce(location.href,!0); + if (!o.query.gd_zone_config) + return; + e = o.query.gd_zone_config + } + return JSON.parse(ln(decodeURIComponent(e))) + } catch (e) {} + } + }, { + key: "_getSplashTemplate", + value: function(e) { + e = e.splash; + return new VD(e).splash() + } + }, { + key: "_createPrerollPromoTemplate", + value: (GT = d(T.mark(function e(t) { + var r; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return r = null == (r = t.promo) ? void 0 : r[null == (r = t.promo) || null == (r = r.template) ? void 0 : r.preroll], + r = new qD(r), + e.abrupt("return", r.promo()); + case 3: + case "end": + return e.stop() + } + }, e) + })), + function(e) { + return GT.apply(this, arguments) + } + ) + }, { + key: "_formatTokenURLSearch", + value: function(e) { + var t = ""; + try { + t = encodeURIComponent(cn(JSON.stringify(e))) + } catch (e) {} + try { + var r = new ce(location.href,!0); + return r.query = r.query || {}, + r.query.gd_zone_config = t, + "?".concat(Z.stringify(r.query)) + } catch (e) { + return "?gd_zone_config=".concat(t) + } + } + }, { + key: "_extendUrlQuery", + value: function(e, t) { + e = new ce(e,!0); + return e.query = FT(FT({}, e.query), t), + e.toString() + } + }, { + key: "_base64_encode", + value: function(e) { + return cn(JSON.stringify(e)) + } + }, { + key: "session", + value: function() { + var r, o = this; + return new Promise((r = d(T.mark(function e(t, r) { + var n; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return e.prev = 0, + e.next = 3, + o.sdkReady; + case 3: + e.next = 7; + break; + case 5: + e.prev = 5, + e.t0 = e.catch(0); + case 7: + n = o._gameData, + t({ + ads: { + display: { + enabled: n.dAds.enabled + }, + rewarded: { + enabled: n.rewardedAds + } + }, + location: { + parentDomain: o._bridge.parentDomain, + topDomain: o._bridge.topDomain, + parentURL: o._bridge.parentURL, + depth: o._bridge.depth, + loadedByGameZone: o._bridge.isTokenGameURL + } + }); + case 9: + case "end": + return e.stop() + } + }, e, null, [[0, 5]]) + })), + function(e, t) { + return r.apply(this, arguments) + } + )) + } + }, { + key: "sendGenericEvent", + value: function(e) { + console.log("Received generic event", e, this._isMasterGameURL()); + try { + var t, r; + if ("track-milestone" == e.eventName) + oI.tracking.trackEvent("milestoneAchieved", { + pageId: this.options.gameId, + pageType: "game", + isAuthorized: null == (t = e.data) ? void 0 : t.isAuthorized, + milestoneDescription: null == (r = e.data) ? void 0 : r.milestoneDescription + }); + else if ("game_event" == e.eventName) + return this._gameEventPostMessage(e) + } catch (e) { + console.log(e.message) + } + } + }, { + key: "_gameEventPostMessage", + value: function(e) { + void 0 !== e.data.level && this._numberValidator(e.data.level) && void 0 !== e.data.score && this._numberValidator(e.data.score) ? (e = { + type: e.eventName, + data: e.data + }, + window.location !== window.top.location && window.top.postMessage(e, "*")) : console.log("Level data type should be number!") + } + }, { + key: "_numberValidator", + value: function(e) { + return "number" == typeof e && /^\d*$/.test(e) + } + }, { + key: "_getisMobile", + value: function() { + var e = !1 + , t = navigator.userAgent || navigator.vendor || window.opera; + return e = !1 === (e = /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(t) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0, 4)) ? !0 : e) && -1 < window.orientation ? !0 : e + } + }, { + key: "_get_game_thumbnail_url", + value: function() { + var t = this + , e = this._gameData + , r = (r = e.assets.find(function(e) { + return D(this, t), + e.hasOwnProperty("name") && 512 === e.width && 512 === e.height + } + .bind(this))) || (0 < e.assets.length ? e.assets[0] : { + name: "logo.svg" + }); + return "https://img.gamedistribution.com/".concat(r.name) + } + }, { + key: "_post_message", + value: function(e) { + var t = e.topic + , r = e.data + , n = null != (n = location.ancestorOrigins) && n.length ? location.ancestorOrigins[location.ancestorOrigins.length - 1] : "*"; + try { + var o = window.top || window.parent; + o && o.postMessage({ + source: "gdsdk", + topic: t, + data: r + }, n) + } catch (e) { + console.error((null == e ? void 0 : e.message) || e) + } + } + }, { + key: "decideToGiveAGift", + value: function() { + var r = this; + try { + var e, t = null == (e = this._gameData) ? void 0 : e.gft, n = setInterval(d(T.mark(function e() { + var t = this; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + r.adInstance.requestRunning || r.adFlowRunning ? console.log("Advertisement already running...") : (r.showAd(m.Interstitial, { + position: "midroll", + isGift: !0 + }).catch(function(e) { + D(this, t) + } + .bind(this)), + clearInterval(n), + r._giftCount++); + case 1: + case "end": + return e.stop() + } + }, e, this) + })), 1e3 * t.durations[this._giftCount].wait) + } catch (r) { + console.log("Advertisement Error...") + } + } + }, { + key: "send_atom_event", + value: function(e, t) { + this.adInstance._send_atom_event(e, t) + } + }, { + key: "get_session_id", + value: function() { + return rI + } + }, { + key: "get_ad_system_init_result", + value: function() { + return { + afg: this.adInstance.afgInitSuccess, + ima: this.adInstance.imaInitSuccess + } + } + }, { + key: "_setGameRewardedFlag", + value: function() { + try { + if ("developer.gamedistribution.com" === this._parentDomain || !0 === new RegExp("^localhost").test(this._parentDomain)) { + fetch("https://game.api.gamedistribution.com/game/v2/hasrewarded/".concat(this.options.gameId, "?timestamp=").concat((new Date).valueOf())); + try { + var e = JSON.stringify({ + type: "GD_SDK_REWARDED_SET", + gameID: this.options.gameId + }); + window.location !== window.top.location ? window.top.postMessage(e, "*") : null !== window.opener && window.opener.location !== window.location && window.opener.postMessage(e, "*") + } catch (e) {} + } + } catch (e) {} + } + }, { + key: "_getGdModeIfExist", + value: function() { + var r = this + , e = new Proxy(new URLSearchParams(window.location.search),{ + get: function(e, t) { + return D(this, r), + e.get(t) + } + .bind(this) + }); + return !e.gd_mode && window.location.search.includes("gd_mode") ? window.location.search.split("gd_mode=")[1] : e.gd_mode + } + }, { + key: "_executeMidrollPlus", + value: function() { + var e, r, n = this; + null != (e = this._gameData.midroll_plus) && e.enabled && this.adInstance.adMidrollCount <= 0 && (null != (e = this._gameData.midroll_plus) && e.interval ? r = setInterval(function() { + var e, t = this; + D(this, n), + this.showAd(m.Interstitial, { + position: "midroll", + isGift: !0 + }).catch(function(e) { + D(this, t) + } + .bind(this)), + this._mplus_count++, + "infinite" !== (null == (e = this._gameData.midroll_plus) ? void 0 : e.interval) && this._mplus_count === (null == (e = this._gameData.midroll_plus) ? void 0 : e.interval) && clearInterval(r) + } + .bind(this), 6e4 * this._gameData.midroll_plus.timer) : setTimeout(function() { + var t = this; + D(this, n), + this.showAd(m.Interstitial, { + position: "midroll", + isGift: !0 + }).catch(function(e) { + D(this, t) + } + .bind(this)) + } + .bind(this), this._gameData.midroll)) + } + }]), + aI); + function aI(e) { + var r = this; + if (le(this, aI), + nI) + return nI; + (nI = this).blockedAdsMap = {}, + this._defaults = this._getDefaultOptions(), + this._extendDefaultOptions(this._defaults, e), + this._version = e.version || "0.0.0", + this._bridge = this._getBridgeContext(), + this._location = new qk, + this._location.print(), + this._parentURL = 0 === this._bridge.depth ? encodeURIComponent(this._bridge.parentURL) : this._bridge.parentURL, + this._parentDomain = this._bridge.parentDomain, + this._topDomain = this._bridge.topDomain, + this._isFullScreen = !1, + this._giftCount = 0, + this._mplus_count = 0, + this._setConsoleBanner(), + this._initializeMessageRouter(), + this._checkConsole(), + this._subscribeToEvents(), + this.sdkReady = new Promise(this._initializeSDKWithGameData.bind(this)), + this.sdkReady.then(function(e) { + D(this, r), + this._sdk_ready = !0 + } + .bind(this)).catch(function(e) { + D(this, r), + this._sdk_ready = !1 + } + .bind(this)).finally(function() { + var e, t = this; + D(this, r), + !0 === (null == (e = this._gameData.lp) ? void 0 : e.load) && this._sendLoadedEvent(1), + this._sendLoaderDataEvent(), + this._checkSplashAndPromoScreens(), + this._initBlockingExternals(), + this._initUnityHandler(), + this._checkFullscreen(), + null != (e = this._gameData.evnts) && e.enabled && this._isLoaderGameURL() && (function(e) { + var t, r, n = this; + window[_T] || ((t = document.createElement("iframe")).src = "https://static.gamedistribution.com/message/index.html", + t.style.display = "none", + t.name = _T, + document.body.appendChild(t), + window !== window.top && (r = { + gameId: e.gameId, + target: e.evnts.domain, + token: wT, + event_name: "TokenGenerated", + timestamp: Date.now() + }, + t.onload = function() { + xT(r) + } + , + setInterval(function() { + D(this, n), + r.timestamp = Date.now(), + r.event_name = "Heartbeat", + xT(r) + } + .bind(this), 1e3 * e.evnts.heartbeatDuration))), + window.addEventListener("message", function(e) { + D(this, n); + try { + var t = function(t) { + for (var e = 1; e < arguments.length; e++) { + var r = null != arguments[e] ? arguments[e] : {}; + e % 2 ? bT(Object(r), !0).forEach(function(e) { + Fu(t, e, r[e]) + }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(r)) : bT(Object(r)).forEach(function(e) { + Object.defineProperty(t, e, Object.getOwnPropertyDescriptor(r, e)) + }) + } + return t + }({}, e.data); + t.event_name && (t.token = wT, + xT(t)) + } catch (e) { + console.error("GD Messager Error", e.message) + } + } + .bind(this), !1) + }(this._gameData), + this._gameData.evnts.gameId === this.options.gameId) && setInterval(function() { + D(this, t), + this._send_gametag_data("heartbeat") + } + .bind(this), 1e3 * this._gameData.evnts.heartbeatDuration), + $T.init(this), + this._send_gametag_data("sdk_init") + } + .bind(this)), + this._registerSGBridge(), + this._whichFrame(), + this._loadLocus() + } + function sI() { + return (sI = d(T.mark(function e() { + var t, r = this; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return e.next = 2, + TE(); + case 2: + if (e.sent) { + e.next = 6; + break + } + return console.log("locus-disabled on proxy level"), + e.abrupt("return"); + case 6: + t = ["https://tag.atom.gamedistribution.com/v1/locus"], + console.log("locus loading"), + bn(t[0], "locus", { + alternates: t + }).catch(function(e) { + D(this, r), + this._sendSDKError(e) + } + .bind(this)); + case 9: + case "end": + return e.stop() + } + }, e, this) + }))).apply(this, arguments) + } + function uI(e) { + return (e = function(t) { + var r = this; + !function() { + sI.apply(this, arguments) + }(); + var e, n = function(o) { + var i = this; + return D(this, r), + new Promise(function(t, e) { + var r = this + , n = (D(this, i), + function(e) { + D(this, r), + "SDK_GAME_START" === e.name && (dI.off("sdk-event", n), + t()) + } + .bind(this)); + dI.on("sdk-event", n), + h("showAd", { + adType: o + }) + } + .bind(this)) + } + .bind(this), o = function() { + return D(this, r), + e = e || new iI(t) + } + .bind(this), i = function(e) { + return D(this, r), + n(e) + } + .bind(this), a = function(e) { + return D(this, r), + "gdsdk://preloaded" + } + .bind(this), s = function(e) { + return D(this, r), + o().showDisplayAd(e) + } + .bind(this), u = function() { + return D(this, r), + h("cancelAd") + } + .bind(this), c = function() { + return D(this, r), + h("openConsole") + } + .bind(this), l = function() { + return D(this, r), + h("showBanner") + } + .bind(this), d = function() { + return D(this, r), + h("session") + } + .bind(this), f = function(e) { + return D(this, r), + h("sendGenericEvent", { + options: e + }) + } + .bind(this), p = function() { + D(this, r), + console.log("_sendSDKReady") + } + .bind(this), h = function(n, o) { + var i = this; + return D(this, r), + o = o || {}, + new Promise(function(t, e) { + D(this, i); + try { + var r = { + type: "gd-sdk", + method: n, + options: o + }; + window.parent.postMessage(r, "*"), + t() + } catch (e) { + console.log("gd:adp:m:s:error", e), + t() + } + } + .bind(this)) + } + .bind(this), m = function() { + D(this, r), + window.addEventListener("message", function(e) { + var t = e.data + , e = (e.origin, + e.source, + t.type) + , t = t.event; + "gd-sdk-on-event" === e && t && v(t) + }, !1) + } + .bind(this), g = function() { + D(this, r), + m(), + h("init") + } + .bind(this), v = function(e) { + D(this, r); + try { + dI.emit("sdk-event", e), + t.onEvent && t.onEvent(e) + } catch (e) { + console.log("DEVELOPER ERROR on forwarder-sdk") + } + } + .bind(this); + return { + showBanner: l, + showAd: i, + preloadAd: a, + showDisplayAd: s, + cancelAd: u, + openConsole: c, + getSession: d, + onEvent: v, + init: g, + _sendSDKReady: p, + sendGenericEvent: f + } + }(e)).init(), + e + } + function cI(s) { + return function(e) { + for (var t, r = vI(e), n = gI(r), o = n.length, i = 0, a = []; i < o; ) + t = n[i++], + mI && !bI(r, t) || yI(a, s ? [t, r[t]] : r[t]); + return a + } + } + var lI, dI = new A.exports.EventEmitter, fI = "gd-sdk-frame-handshake-request", pI = "gd-sdk-frame-handshake-response", hI = (lI = d(T.mark(function e() { + var t, r, n, o, i; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return e.next = 2, + DE(); + case 2: + return t = e.sent, + n = !t, + e.next = 6, + function(i) { + var a = this; + return new Promise(function(n, e) { + var t = this + , r = (D(this, a), + { + type: fI + }) + , o = !1; + window.addEventListener("message", function(e) { + var t = e.data + , r = e.origin + , e = e.source + , t = t.type; + t === fI ? e.postMessage({ + type: pI + }, r) : t === pI && (o = !0, + n({ + origin: r, + source: e + })) + }), + !i && (setTimeout(function() { + D(this, t), + o || n() + } + .bind(this), 200), + window.parent !== window) ? window.parent.postMessage(r, "*") : n() + } + .bind(this)) + }(n); + case 6: + if (r = e.sent, + t) { + e.next = 9; + break + } + return e.abrupt("return", !1); + case 9: + return n = function() { + var e = this; + return { + isMasterGameURL: function() { + return D(this, e), + /http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Fa-f0-9]{32})(.*)$/i.test(location.href) + } + .bind(this), + isTokenGameURL: function() { + return D(this, e), + /http[s]?:\/\/(html5\.gamedistribution\.com\/[A-Za-z0-9]{8})\/(.*)$/i.test(location.href) + } + .bind(this), + isExtHostedGameURL: function() { + return D(this, e), + /^http[s]?:\/\/.*?gd_sdk_referrer_url=.*$/i.test(location.href) + } + .bind(this) + } + }(), + o = n.isMasterGameURL, + n.isTokenGameURL, + o = o(), + e.next = 13, + IE(); + case 13: + return i = e.sent, + i = i ? !o && !!r : !o, + e.abrupt("return", i); + case 17: + case "end": + return e.stop() + } + }, e) + })), + function() { + return lI.apply(this, arguments) + } + ), mI = Kn, iA = r, gI = Pu, vI = Es, bI = iA(Ps.f), yI = iA([].push), _I = (cI(!0), + cI(!1)); + Is({ + target: "Object", + stat: !0 + }, { + values: function(e) { + return _I(e) + } + }); + function wI(e) { + try { + var t; + e.skipForward || kI.source && (t = { + type: "gd-sdk-on-event", + event: e + }, + kI.source.postMessage(t, kI.origin)) + } catch (e) { + console.log("gd-sdk forwardEvent err", e) + } + } + function AI(e) { + t = e.onEvent, + e.onEvent = function(e) { + wI(e), + t.apply(this, arguments) + } + ; + var t, s, e = new iI(e); + return s = e, + window.addEventListener("message", function(e) { + var n, t = e.data, r = e.origin, e = e.source, o = t.type, i = t.method, a = t.options; + "gd-sdk-self" !== o ? "gd-sdk" === o && (kI.source || "init" !== i ? (n = s[i]) && d(T.mark(function e() { + var t, r = this; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + if (e.prev = 0, + function() { + D(this, r), + "showAd" === i && Nu.firstAdapterModeAdsense && "rewarded" !== a.adType && (console.log("promo-test, set first adapter to adssense 3"), + a.params = a.params || {}, + a.params.adapter = "adsense") + } + .bind(this), + (t = n.apply(s, Object.values(a))) && t.then) + return e.next = 6, + t; + e.next = 6; + break; + case 6: + e.next = 11; + break; + case 8: + e.prev = 8, + e.t0 = e.catch(0), + console.log("gd:adp:m:r onFrameMessage error", e.t0); + case 11: + case "end": + return e.stop() + } + }, e, this, [[0, 8]]) + }))() : (kI = { + source: (t = { + source: e, + origin: r + }).source, + origin: t.origin + }, + EI())) : window.postMessage({ + type: "gd-sdk", + method: i, + options: a + }, location.origin) + }, !1), + e + } + var xI, kI = {}, EI = function() { + wI({ + name: "SDK_READY", + status: "success", + message: "Everything is ready." + }), + wI({ + name: "SDK_GAME_START", + status: "success", + message: "Advertisement(s) are done. Start / resume the game." + }), + wI({ + name: "CONTENT_RESUME_REQUESTED", + status: "success", + message: "Fired when content should be resumed. This usually happens when an ad finishes or collapses." + }) + }; + SI = d(T.mark(function e(n) { + var o; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + e.prev = 0; + var t = n; + try { + var r = Vk(t); + t.gameId || r.send("nogameid", { + message: "".concat(uv.parentURL) + }) + } catch (t) {} + return pE = Vk(mE = n), + e.next = 5, + hI(); + case 5: + return o = e.sent, + o = (o ? uI : AI)(n), + CE(), + e.abrupt("return", o); + case 11: + return e.prev = 11, + e.t0 = e.catch(0), + console.log("gd:adp: sdk adaptor create failed, fallback to default adapter", e.t0), + e.abrupt("return", AI(n)); + case 15: + case "end": + return e.stop() + } + }, e, null, [[0, 11]]) + })); + var SI, RI = { + create: function(e) { + return SI.apply(this, arguments) + } + }; + function OI() { + return (OI = d(T.mark(function e(t, n) { + var o; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return e.next = 2, + new Promise((r = d(T.mark(function e(t, r) { + var n, o, i, a, s, u = this; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + if (LE) + return e.abrupt("return", t(PE)); + e.next = 4; + break; + case 4: + LE = !0; + case 5: + return e.next = 7, + ME(); + case 7: + if ((n = e.sent).enabled) { + e.next = 10; + break + } + return e.abrupt("return", t(!1)); + case 10: + if (o = n.loadedFlag, + (i = n.loadedFlagCheck) && !o) + return e.abrupt("return", t(!1)); + e.next = 13; + break; + case 13: + if (i) { + e.next = 16; + break + } + return PE = !0, + e.abrupt("return", t(!0)); + case 16: + a = !0, + setTimeout(function() { + D(this, u), + a && t(!(LE = !(a = !1))) + } + .bind(this), 5e3), + s = setInterval(function() { + D(this, u), + a && i && window[o] ? (PE = LE = !(a = !1), + clearInterval(s), + t(!0)) : a || clearInterval(s) + } + .bind(this), 100); + case 19: + case "end": + return e.stop() + } + }, e, this) + })), + function(e, t) { + return r.apply(this, arguments) + } + )); + var r; + case 2: + e.sent ? (e.t0 = window.gdsdk, + e.next = 10) : e.next = 7; + break; + case 7: + return e.next = 9, + TI(t); + case 9: + e.t0 = e.sent; + case 10: + return o = e.t0, + e.abrupt("return", n(o)); + case 12: + case "end": + return e.stop() + } + }, e) + }))).apply(this, arguments) + } + var DI = !1; + function TI(o) { + var i = this; + return new Promise(function(t, e) { + var r, n = this; + if (D(this, i), + xI) + return t(xI); + DI ? r = setInterval(function() { + D(this, n), + xI && (DI = !1, + clearInterval(r), + t(xI)) + } + .bind(this), 100) : (DI = !0, + RI.create(o).then(function(e) { + D(this, n), + (xI = e)._sendSDKReady(), + DI = !1, + t(xI) + } + .bind(this))) + } + .bind(this)) + } + window.addEventListener("load", function() { + var t; + xE.once("game-data-ready", (t = d(T.mark(function e(t) { + var r; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + if (e.prev = 1, + e.t0 = null != uv && uv.noLotamePageView, + e.t0) + return e.next = 6, + DE(); + e.next = 7; + break; + case 6: + e.t0 = e.sent; + case 7: + if (e.t0) + return e.abrupt("return"); + e.next = 10; + break; + case 10: + if (null != (r = t.lotm) && r.enabled) { + e.next = 13; + break + } + return e.abrupt("return"); + case 13: + return e.next = 16, + bn(cD[0], "LOTCC_".concat(sD), { + alternates: cD + }); + case 16: + "object" === U(window[uD]) && (aD = window[uD]), + lD() && function(e) { + var t = this; + try { + dD("act", "play"), + dD("med", "game"), + "complete" === document.readyState ? aD.bcpf() : aD.bcp(), + e.tags.forEach(function(e) { + D(this, t), + fD("int", "tags : ".concat(e.title.toLowerCase())) + } + .bind(this)), + fD("int", "category : ".concat(e.category.toLowerCase())) + } catch (e) {} + }(t), + e.next = 23; + break; + case 20: + e.prev = 20, + e.t1 = e.catch(1), + e.t1; + case 23: + case "end": + return e.stop() + } + }, e, null, [[1, 20]]) + })), + function(e) { + return t.apply(this, arguments) + } + )) + }); + TI(II = function() { + var e = {}; + try { + "object" === ("undefined" == typeof GD_OPTIONS ? "undefined" : U(GD_OPTIONS)) && GD_OPTIONS ? e = GD_OPTIONS : window.gdApi && "object" === U(window.gdApi.q[0][0]) && window.gdApi.q[0][0] && ((e = window.gdApi.q[0][0]).hasOwnProperty("advertisementSettings") || (e.advertisementSettings = { + autoplay: !0 + })) + } catch (e) { + console.log("_get_developer_sets failed", e) + } + return e + }()); + var II, MI = { + invoke: function(e) { + return function() { + return OI.apply(this, arguments) + }(II, e) + } + }; + function CI() { + var r, t = this; + this.AdType = m, + this.preloadAd = function(t) { + var r = this; + return MI.invoke(function(e) { + return D(this, r), + e.preloadAd(t) + } + .bind(this)) + } + , + this.showAd = (r = d(T.mark(function e(n, o) { + var i = this; + return T.wrap(function(e) { + for (; ; ) + switch (e.prev = e.next) { + case 0: + return e.abrupt("return", MI.invoke(function(e) { + var t, r = this; + return D(this, i), + n === m.Display ? e.showDisplayAd(o) : (t = {}, + function() { + D(this, r), + Nu.firstAdapterModeAdsense && (console.log("promo-test, set first adapter to adssense 2"), + t.adapter = "adsense") + } + .bind(this), + e.showAd(n, t)) + } + .bind(this))); + case 1: + case "end": + return e.stop() + } + }, e, this) + })), + function(e, t) { + return r.apply(this, arguments) + } + ), + this.cancelAd = function() { + var t = this; + return MI.invoke(function(e) { + return D(this, t), + e.cancelAd() + } + .bind(this)) + } + , + this.openConsole = function() { + var t = this; + return MI.invoke(function(e) { + return D(this, t), + e.openConsole() + } + .bind(this)) + } + , + this.getSession = function() { + var t = this; + return MI.invoke(function(e) { + return D(this, t), + e.session() + } + .bind(this)) + } + , + this.sendEvent = function(t) { + var r = this; + return MI.invoke(function(e) { + return D(this, r), + e.sendGenericEvent(t) + } + .bind(this)) + } + , + this.leaderboard = { + show: function() { + D(this, t), + hg.showLeaderboard() + } + .bind(this), + addScore: function(e) { + D(this, t), + hg.addScore(e) + } + .bind(this) + } + } + CI.prototype = new function() { + this.showBanner = function() { + var t = this; + return MI.invoke(function(e) { + return D(this, t), + e.showBanner() + } + .bind(this)) + } + , + this.play = function() {} + , + this.customLog = function() {} + } + , + window.gdsdk = new CI, + window.gdApi = window.gdsdk + }() + } + .call(this) + } + .call(this, e("_process"), "undefined" != typeof global ? global : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {}, e("buffer").Buffer) + } + , { + _process: 5, + buffer: 3 + }], + 2: [function(e, t, r) { + "use strict"; + r.byteLength = function e(t) { + var t = d(t) + , r = t[0] + , t = t[1]; + return 3 * (r + t) / 4 - t + } + , + r.toByteArray = function e(t) { + var r, n, o = d(t), i = o[0], o = o[1], a = new l(function e(t, r, n) { + return 3 * (r + n) / 4 - n + }(0, i, o)), s = 0, u = 0 < o ? i - 4 : i; + for (n = 0; n < u; n += 4) + r = c[t.charCodeAt(n)] << 18 | c[t.charCodeAt(n + 1)] << 12 | c[t.charCodeAt(n + 2)] << 6 | c[t.charCodeAt(n + 3)], + a[s++] = r >> 16 & 255, + a[s++] = r >> 8 & 255, + a[s++] = 255 & r; + 2 === o && (r = c[t.charCodeAt(n)] << 2 | c[t.charCodeAt(n + 1)] >> 4, + a[s++] = 255 & r); + 1 === o && (r = c[t.charCodeAt(n)] << 10 | c[t.charCodeAt(n + 1)] << 4 | c[t.charCodeAt(n + 2)] >> 2, + a[s++] = r >> 8 & 255, + a[s++] = 255 & r); + return a + } + , + r.fromByteArray = function e(t) { + for (var r, n = t.length, o = n % 3, i = [], a = 0, s = n - o; a < s; a += 16383) + i.push(function e(t, r, n) { + for (var o, i = [], a = r; a < n; a += 3) + o = (t[a] << 16 & 16711680) + (t[a + 1] << 8 & 65280) + (255 & t[a + 2]), + i.push(function e(t) { + return u[t >> 18 & 63] + u[t >> 12 & 63] + u[t >> 6 & 63] + u[63 & t] + }(o)); + return i.join("") + }(t, a, s < a + 16383 ? s : a + 16383)); + 1 == o ? (r = t[n - 1], + i.push(u[r >> 2] + u[r << 4 & 63] + "==")) : 2 == o && (r = (t[n - 2] << 8) + t[n - 1], + i.push(u[r >> 10] + u[r >> 4 & 63] + u[r << 2 & 63] + "=")); + return i.join("") + } + ; + for (var u = [], c = [], l = "undefined" != typeof Uint8Array ? Uint8Array : Array, n = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", o = 0, i = n.length; o < i; ++o) + u[o] = n[o], + c[n.charCodeAt(o)] = o; + function d(e) { + var t = e.length; + if (0 < t % 4) + throw new Error("Invalid string. Length must be a multiple of 4"); + e = e.indexOf("="), + t = (e = -1 === e ? t : e) === t ? 0 : 4 - e % 4; + return [e, t] + } + c["-".charCodeAt(0)] = 62, + c["_".charCodeAt(0)] = 63 + } + , {}], + 3: [function(I, e, M) { + !function(e) { + !function() { + "use strict"; + var o = I("base64-js") + , i = I("ieee754") + , t = (M.Buffer = f, + M.SlowBuffer = function e(t) { + +t != t && (t = 0); + return f.alloc(+t) + } + , + M.INSPECT_MAX_BYTES = 50, + 2147483647); + function a(e) { + if (t < e) + throw new RangeError('The value "' + e + '" is invalid for option "size"'); + e = new Uint8Array(e); + return e.__proto__ = f.prototype, + e + } + function f(e, t, r) { + if ("number" != typeof e) + return n(e, t, r); + if ("string" == typeof t) + throw new TypeError('The "string" argument must be of type string. Received type number'); + return u(e) + } + function n(e, t, r) { + if ("string" == typeof e) + return function e(t, r) { + "string" == typeof r && "" !== r || (r = "utf8"); + if (!f.isEncoding(r)) + throw new TypeError("Unknown encoding: " + r); + var n = 0 | d(t, r) + , o = a(n) + , t = o.write(t, r); + t !== n && (o = o.slice(0, t)); + return o + }(e, t); + if (ArrayBuffer.isView(e)) + return c(e); + if (null == e) + throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof e); + if (D(e, ArrayBuffer) || e && D(e.buffer, ArrayBuffer)) + return function e(t, r, n) { + if (r < 0 || t.byteLength < r) + throw new RangeError('"offset" is outside of buffer bounds'); + if (t.byteLength < r + (n || 0)) + throw new RangeError('"length" is outside of buffer bounds'); + t = void 0 === r && void 0 === n ? new Uint8Array(t) : void 0 === n ? new Uint8Array(t,r) : new Uint8Array(t,r,n); + return t.__proto__ = f.prototype, + t + }(e, t, r); + if ("number" == typeof e) + throw new TypeError('The "value" argument must not be of type number. Received type number'); + var n = e.valueOf && e.valueOf(); + if (null != n && n !== e) + return f.from(n, t, r); + n = function e(t) { + { + var r, n; + if (f.isBuffer(t)) + return r = 0 | l(t.length), + 0 !== (n = a(r)).length && t.copy(n, 0, 0, r), + n + } + if (void 0 !== t.length) + return "number" != typeof t.length || T(t.length) ? a(0) : c(t); + if ("Buffer" === t.type && Array.isArray(t.data)) + return c(t.data) + }(e); + if (n) + return n; + if ("undefined" != typeof Symbol && null != Symbol.toPrimitive && "function" == typeof e[Symbol.toPrimitive]) + return f.from(e[Symbol.toPrimitive]("string"), t, r); + throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof e) + } + function s(e) { + if ("number" != typeof e) + throw new TypeError('"size" argument must be of type number'); + if (e < 0) + throw new RangeError('The value "' + e + '" is invalid for option "size"') + } + function u(e) { + return s(e), + a(e < 0 ? 0 : 0 | l(e)) + } + function c(e) { + for (var t = e.length < 0 ? 0 : 0 | l(e.length), r = a(t), n = 0; n < t; n += 1) + r[n] = 255 & e[n]; + return r + } + function l(e) { + if (t <= e) + throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + t.toString(16) + " bytes"); + return 0 | e + } + function d(e, t) { + if (f.isBuffer(e)) + return e.length; + if (ArrayBuffer.isView(e) || D(e, ArrayBuffer)) + return e.byteLength; + if ("string" != typeof e) + throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof e); + var r = e.length + , n = 2 < arguments.length && !0 === arguments[2]; + if (!n && 0 === r) + return 0; + for (var o = !1; ; ) + switch (t) { + case "ascii": + case "latin1": + case "binary": + return r; + case "utf8": + case "utf-8": + return S(e).length; + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + return 2 * r; + case "hex": + return r >>> 1; + case "base64": + return R(e).length; + default: + if (o) + return n ? -1 : S(e).length; + t = ("" + t).toLowerCase(), + o = !0 + } + } + function r(e, t, r) { + var n = !1; + if ((t = void 0 === t || t < 0 ? 0 : t) > this.length) + return ""; + if ((r = void 0 === r || r > this.length ? this.length : r) <= 0) + return ""; + if ((r >>>= 0) <= (t >>>= 0)) + return ""; + for (e = e || "utf8"; ; ) + switch (e) { + case "hex": + return function e(t, r, n) { + var o = t.length; + (!r || r < 0) && (r = 0); + (!n || n < 0 || o < n) && (n = o); + for (var i = "", a = r; a < n; ++a) + i += function e(t) { + return t < 16 ? "0" + t.toString(16) : t.toString(16) + }(t[a]); + return i + }(this, t, r); + case "utf8": + case "utf-8": + return b(this, t, r); + case "ascii": + return function e(t, r, n) { + var o = ""; + n = Math.min(t.length, n); + for (var i = r; i < n; ++i) + o += String.fromCharCode(127 & t[i]); + return o + }(this, t, r); + case "latin1": + case "binary": + return function e(t, r, n) { + var o = ""; + n = Math.min(t.length, n); + for (var i = r; i < n; ++i) + o += String.fromCharCode(t[i]); + return o + }(this, t, r); + case "base64": + return function e(t, r, n) { + return 0 === r && n === t.length ? o.fromByteArray(t) : o.fromByteArray(t.slice(r, n)) + }(this, t, r); + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + return function e(t, r, n) { + for (var o = t.slice(r, n), i = "", a = 0; a < o.length; a += 2) + i += String.fromCharCode(o[a] + 256 * o[a + 1]); + return i + }(this, t, r); + default: + if (n) + throw new TypeError("Unknown encoding: " + e); + e = (e + "").toLowerCase(), + n = !0 + } + } + function p(e, t, r) { + var n = e[t]; + e[t] = e[r], + e[r] = n + } + function h(e, t, r, n, o) { + if (0 === e.length) + return -1; + if ("string" == typeof r ? (n = r, + r = 0) : 2147483647 < r ? r = 2147483647 : r < -2147483648 && (r = -2147483648), + (r = (r = T(r = +r) ? o ? 0 : e.length - 1 : r) < 0 ? e.length + r : r) >= e.length) { + if (o) + return -1; + r = e.length - 1 + } else if (r < 0) { + if (!o) + return -1; + r = 0 + } + if ("string" == typeof t && (t = f.from(t, n)), + f.isBuffer(t)) + return 0 === t.length ? -1 : m(e, t, r, n, o); + if ("number" == typeof t) + return t &= 255, + "function" == typeof Uint8Array.prototype.indexOf ? (o ? Uint8Array.prototype.indexOf : Uint8Array.prototype.lastIndexOf).call(e, t, r) : m(e, [t], r, n, o); + throw new TypeError("val must be string, number or Buffer") + } + function m(e, t, r, n, o) { + var i = 1 + , a = e.length + , s = t.length; + if (void 0 !== n && ("ucs2" === (n = String(n).toLowerCase()) || "ucs-2" === n || "utf16le" === n || "utf-16le" === n)) { + if (e.length < 2 || t.length < 2) + return -1; + a /= i = 2, + s /= 2, + r /= 2 + } + function u(e, t) { + return 1 === i ? e[t] : e.readUInt16BE(t * i) + } + if (o) + for (var c = -1, l = r; l < a; l++) + if (u(e, l) === u(t, -1 === c ? 0 : l - c)) { + if (l - (c = -1 === c ? l : c) + 1 === s) + return c * i + } else + -1 !== c && (l -= l - c), + c = -1; + else + for (l = r = a < r + s ? a - s : r; 0 <= l; l--) { + for (var d = !0, f = 0; f < s; f++) + if (u(e, l + f) !== u(t, f)) { + d = !1; + break + } + if (d) + return l + } + return -1 + } + function g(e, t, r, n) { + return O(function e(t) { + for (var r = [], n = 0; n < t.length; ++n) + r.push(255 & t.charCodeAt(n)); + return r + }(t), e, r, n) + } + function v(e, t, r, n) { + return O(function e(t, r) { + for (var n, o, i = [], a = 0; a < t.length && !((r -= 2) < 0); ++a) + n = t.charCodeAt(a), + o = n >> 8, + i.push(n % 256), + i.push(o); + return i + }(t, e.length - r), e, r, n) + } + function b(e, t, r) { + r = Math.min(e.length, r); + for (var n = [], o = t; o < r; ) { + var i, a, s, u, c = e[o], l = null, d = 239 < c ? 4 : 223 < c ? 3 : 191 < c ? 2 : 1; + if (o + d <= r) + switch (d) { + case 1: + c < 128 && (l = c); + break; + case 2: + 128 == (192 & (i = e[o + 1])) && 127 < (u = (31 & c) << 6 | 63 & i) && (l = u); + break; + case 3: + i = e[o + 1], + a = e[o + 2], + 128 == (192 & i) && 128 == (192 & a) && 2047 < (u = (15 & c) << 12 | (63 & i) << 6 | 63 & a) && (u < 55296 || 57343 < u) && (l = u); + break; + case 4: + i = e[o + 1], + a = e[o + 2], + s = e[o + 3], + 128 == (192 & i) && 128 == (192 & a) && 128 == (192 & s) && 65535 < (u = (15 & c) << 18 | (63 & i) << 12 | (63 & a) << 6 | 63 & s) && u < 1114112 && (l = u) + } + null === l ? (l = 65533, + d = 1) : 65535 < l && (n.push((l -= 65536) >>> 10 & 1023 | 55296), + l = 56320 | 1023 & l), + n.push(l), + o += d + } + return function e(t) { + var r = t.length; + if (r <= y) + return String.fromCharCode.apply(String, t); + var n = "" + , o = 0; + for (; o < r; ) + n += String.fromCharCode.apply(String, t.slice(o, o += y)); + return n + }(n) + } + M.kMaxLength = t, + (f.TYPED_ARRAY_SUPPORT = function e() { + try { + var t = new Uint8Array(1); + return t.__proto__ = { + __proto__: Uint8Array.prototype, + foo: function() { + return 42 + } + }, + 42 === t.foo() + } catch (e) { + return !1 + } + }()) || "undefined" == typeof console || "function" != typeof console.error || console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."), + Object.defineProperty(f.prototype, "parent", { + enumerable: !0, + get: function() { + if (f.isBuffer(this)) + return this.buffer + } + }), + Object.defineProperty(f.prototype, "offset", { + enumerable: !0, + get: function() { + if (f.isBuffer(this)) + return this.byteOffset + } + }), + "undefined" != typeof Symbol && null != Symbol.species && f[Symbol.species] === f && Object.defineProperty(f, Symbol.species, { + value: null, + configurable: !0, + enumerable: !1, + writable: !1 + }), + f.poolSize = 8192, + f.from = n, + f.prototype.__proto__ = Uint8Array.prototype, + f.__proto__ = Uint8Array, + f.alloc = function e(t, r, n) { + return s(t), + !(t <= 0) && void 0 !== r ? "string" == typeof n ? a(t).fill(r, n) : a(t).fill(r) : a(t) + } + , + f.allocUnsafe = u, + f.allocUnsafeSlow = u, + f.isBuffer = function e(t) { + return null != t && !0 === t._isBuffer && t !== f.prototype + } + , + f.compare = function e(t, r) { + if (D(t, Uint8Array) && (t = f.from(t, t.offset, t.byteLength)), + D(r, Uint8Array) && (r = f.from(r, r.offset, r.byteLength)), + !f.isBuffer(t) || !f.isBuffer(r)) + throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'); + if (t === r) + return 0; + for (var n = t.length, o = r.length, i = 0, a = Math.min(n, o); i < a; ++i) + if (t[i] !== r[i]) { + n = t[i], + o = r[i]; + break + } + return n < o ? -1 : o < n ? 1 : 0 + } + , + f.isEncoding = function e(t) { + switch (String(t).toLowerCase()) { + case "hex": + case "utf8": + case "utf-8": + case "ascii": + case "latin1": + case "binary": + case "base64": + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + return !0; + default: + return !1 + } + } + , + f.concat = function e(t, r) { + if (!Array.isArray(t)) + throw new TypeError('"list" argument must be an Array of Buffers'); + if (0 === t.length) + return f.alloc(0); + if (void 0 === r) + for (i = r = 0; i < t.length; ++i) + r += t[i].length; + for (var n = f.allocUnsafe(r), o = 0, i = 0; i < t.length; ++i) { + var a = t[i]; + if (D(a, Uint8Array) && (a = f.from(a)), + !f.isBuffer(a)) + throw new TypeError('"list" argument must be an Array of Buffers'); + a.copy(n, o), + o += a.length + } + return n + } + , + f.byteLength = d, + f.prototype._isBuffer = !0, + f.prototype.swap16 = function e() { + var t = this.length; + if (t % 2 != 0) + throw new RangeError("Buffer size must be a multiple of 16-bits"); + for (var r = 0; r < t; r += 2) + p(this, r, r + 1); + return this + } + , + f.prototype.swap32 = function e() { + var t = this.length; + if (t % 4 != 0) + throw new RangeError("Buffer size must be a multiple of 32-bits"); + for (var r = 0; r < t; r += 4) + p(this, r, r + 3), + p(this, r + 1, r + 2); + return this + } + , + f.prototype.swap64 = function e() { + var t = this.length; + if (t % 8 != 0) + throw new RangeError("Buffer size must be a multiple of 64-bits"); + for (var r = 0; r < t; r += 8) + p(this, r, r + 7), + p(this, r + 1, r + 6), + p(this, r + 2, r + 5), + p(this, r + 3, r + 4); + return this + } + , + f.prototype.toLocaleString = f.prototype.toString = function e() { + var t = this.length; + return 0 === t ? "" : 0 === arguments.length ? b(this, 0, t) : r.apply(this, arguments) + } + , + f.prototype.equals = function e(t) { + if (f.isBuffer(t)) + return this === t || 0 === f.compare(this, t); + throw new TypeError("Argument must be a Buffer") + } + , + f.prototype.inspect = function e() { + var t = "" + , r = M.INSPECT_MAX_BYTES + , t = this.toString("hex", 0, r).replace(/(.{2})/g, "$1 ").trim(); + return this.length > r && (t += " ... "), + "" + } + , + f.prototype.compare = function e(t, r, n, o, i) { + if (D(t, Uint8Array) && (t = f.from(t, t.offset, t.byteLength)), + !f.isBuffer(t)) + throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof t); + if (void 0 === n && (n = t ? t.length : 0), + void 0 === o && (o = 0), + void 0 === i && (i = this.length), + (r = void 0 === r ? 0 : r) < 0 || n > t.length || o < 0 || i > this.length) + throw new RangeError("out of range index"); + if (i <= o && n <= r) + return 0; + if (i <= o) + return -1; + if (n <= r) + return 1; + if (this === t) + return 0; + for (var a = (i >>>= 0) - (o >>>= 0), s = (n >>>= 0) - (r >>>= 0), u = Math.min(a, s), c = this.slice(o, i), l = t.slice(r, n), d = 0; d < u; ++d) + if (c[d] !== l[d]) { + a = c[d], + s = l[d]; + break + } + return a < s ? -1 : s < a ? 1 : 0 + } + , + f.prototype.includes = function e(t, r, n) { + return -1 !== this.indexOf(t, r, n) + } + , + f.prototype.indexOf = function e(t, r, n) { + return h(this, t, r, n, !0) + } + , + f.prototype.lastIndexOf = function e(t, r, n) { + return h(this, t, r, n, !1) + } + , + f.prototype.write = function e(t, r, n, o) { + if (void 0 === r) + o = "utf8", + n = this.length, + r = 0; + else if (void 0 === n && "string" == typeof r) + o = r, + n = this.length, + r = 0; + else { + if (!isFinite(r)) + throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported"); + r >>>= 0, + isFinite(n) ? (n >>>= 0, + void 0 === o && (o = "utf8")) : (o = n, + n = void 0) + } + var i = this.length - r; + if ((void 0 === n || i < n) && (n = i), + 0 < t.length && (n < 0 || r < 0) || r > this.length) + throw new RangeError("Attempt to write outside buffer bounds"); + o = o || "utf8"; + for (var a = !1; ; ) + switch (o) { + case "hex": + return function e(t, r, n, o) { + n = Number(n) || 0; + var i = t.length - n; + (!o || i < (o = Number(o))) && (o = i), + (i = r.length) / 2 < o && (o = i / 2); + for (var a = 0; a < o; ++a) { + var s = parseInt(r.substr(2 * a, 2), 16); + if (T(s)) + return a; + t[n + a] = s + } + return a + }(this, t, r, n); + case "utf8": + case "utf-8": + return function e(t, r, n, o) { + return O(S(r, t.length - n), t, n, o) + }(this, t, r, n); + case "ascii": + return g(this, t, r, n); + case "latin1": + case "binary": + return g(this, t, r, n); + case "base64": + return function e(t, r, n, o) { + return O(R(r), t, n, o) + }(this, t, r, n); + case "ucs2": + case "ucs-2": + case "utf16le": + case "utf-16le": + return v(this, t, r, n); + default: + if (a) + throw new TypeError("Unknown encoding: " + o); + o = ("" + o).toLowerCase(), + a = !0 + } + } + , + f.prototype.toJSON = function e() { + return { + type: "Buffer", + data: Array.prototype.slice.call(this._arr || this, 0) + } + } + ; + var y = 4096; + function _(e, t, r) { + if (e % 1 != 0 || e < 0) + throw new RangeError("offset is not uint"); + if (r < e + t) + throw new RangeError("Trying to access beyond buffer length") + } + function w(e, t, r, n, o, i) { + if (!f.isBuffer(e)) + throw new TypeError('"buffer" argument must be a Buffer instance'); + if (o < t || t < i) + throw new RangeError('"value" argument is out of bounds'); + if (r + n > e.length) + throw new RangeError("Index out of range") + } + function A(e, t, r, n) { + if (r + n > e.length) + throw new RangeError("Index out of range"); + if (r < 0) + throw new RangeError("Index out of range") + } + function x(e, t, r, n, o) { + return t = +t, + r >>>= 0, + o || A(e, 0, r, 4), + i.write(e, t, r, n, 23, 4), + r + 4 + } + function k(e, t, r, n, o) { + return t = +t, + r >>>= 0, + o || A(e, 0, r, 8), + i.write(e, t, r, n, 52, 8), + r + 8 + } + f.prototype.slice = function e(t, r) { + var n = this.length + , n = ((t = ~~t) < 0 ? (t += n) < 0 && (t = 0) : n < t && (t = n), + (r = void 0 === r ? n : ~~r) < 0 ? (r += n) < 0 && (r = 0) : n < r && (r = n), + r < t && (r = t), + this.subarray(t, r)); + return n.__proto__ = f.prototype, + n + } + , + f.prototype.readUIntLE = function e(t, r, n) { + t >>>= 0, + r >>>= 0, + n || _(t, r, this.length); + for (var o = this[t], i = 1, a = 0; ++a < r && (i *= 256); ) + o += this[t + a] * i; + return o + } + , + f.prototype.readUIntBE = function e(t, r, n) { + t >>>= 0, + r >>>= 0, + n || _(t, r, this.length); + for (var o = this[t + --r], i = 1; 0 < r && (i *= 256); ) + o += this[t + --r] * i; + return o + } + , + f.prototype.readUInt8 = function e(t, r) { + return t >>>= 0, + r || _(t, 1, this.length), + this[t] + } + , + f.prototype.readUInt16LE = function e(t, r) { + return t >>>= 0, + r || _(t, 2, this.length), + this[t] | this[t + 1] << 8 + } + , + f.prototype.readUInt16BE = function e(t, r) { + return t >>>= 0, + r || _(t, 2, this.length), + this[t] << 8 | this[t + 1] + } + , + f.prototype.readUInt32LE = function e(t, r) { + return t >>>= 0, + r || _(t, 4, this.length), + (this[t] | this[t + 1] << 8 | this[t + 2] << 16) + 16777216 * this[t + 3] + } + , + f.prototype.readUInt32BE = function e(t, r) { + return t >>>= 0, + r || _(t, 4, this.length), + 16777216 * this[t] + (this[t + 1] << 16 | this[t + 2] << 8 | this[t + 3]) + } + , + f.prototype.readIntLE = function e(t, r, n) { + t >>>= 0, + r >>>= 0, + n || _(t, r, this.length); + for (var o = this[t], i = 1, a = 0; ++a < r && (i *= 256); ) + o += this[t + a] * i; + return (i *= 128) <= o && (o -= Math.pow(2, 8 * r)), + o + } + , + f.prototype.readIntBE = function e(t, r, n) { + t >>>= 0, + r >>>= 0, + n || _(t, r, this.length); + for (var o = r, i = 1, a = this[t + --o]; 0 < o && (i *= 256); ) + a += this[t + --o] * i; + return (i *= 128) <= a && (a -= Math.pow(2, 8 * r)), + a + } + , + f.prototype.readInt8 = function e(t, r) { + return t >>>= 0, + r || _(t, 1, this.length), + 128 & this[t] ? -1 * (255 - this[t] + 1) : this[t] + } + , + f.prototype.readInt16LE = function e(t, r) { + t >>>= 0, + r || _(t, 2, this.length); + r = this[t] | this[t + 1] << 8; + return 32768 & r ? 4294901760 | r : r + } + , + f.prototype.readInt16BE = function e(t, r) { + t >>>= 0, + r || _(t, 2, this.length); + r = this[t + 1] | this[t] << 8; + return 32768 & r ? 4294901760 | r : r + } + , + f.prototype.readInt32LE = function e(t, r) { + return t >>>= 0, + r || _(t, 4, this.length), + this[t] | this[t + 1] << 8 | this[t + 2] << 16 | this[t + 3] << 24 + } + , + f.prototype.readInt32BE = function e(t, r) { + return t >>>= 0, + r || _(t, 4, this.length), + this[t] << 24 | this[t + 1] << 16 | this[t + 2] << 8 | this[t + 3] + } + , + f.prototype.readFloatLE = function e(t, r) { + return t >>>= 0, + r || _(t, 4, this.length), + i.read(this, t, !0, 23, 4) + } + , + f.prototype.readFloatBE = function e(t, r) { + return t >>>= 0, + r || _(t, 4, this.length), + i.read(this, t, !1, 23, 4) + } + , + f.prototype.readDoubleLE = function e(t, r) { + return t >>>= 0, + r || _(t, 8, this.length), + i.read(this, t, !0, 52, 8) + } + , + f.prototype.readDoubleBE = function e(t, r) { + return t >>>= 0, + r || _(t, 8, this.length), + i.read(this, t, !1, 52, 8) + } + , + f.prototype.writeUIntLE = function e(t, r, n, o) { + t = +t, + r >>>= 0, + n >>>= 0, + o || w(this, t, r, n, Math.pow(2, 8 * n) - 1, 0); + var i = 1 + , a = 0; + for (this[r] = 255 & t; ++a < n && (i *= 256); ) + this[r + a] = t / i & 255; + return r + n + } + , + f.prototype.writeUIntBE = function e(t, r, n, o) { + t = +t, + r >>>= 0, + n >>>= 0, + o || w(this, t, r, n, Math.pow(2, 8 * n) - 1, 0); + var i = n - 1 + , a = 1; + for (this[r + i] = 255 & t; 0 <= --i && (a *= 256); ) + this[r + i] = t / a & 255; + return r + n + } + , + f.prototype.writeUInt8 = function e(t, r, n) { + return t = +t, + r >>>= 0, + n || w(this, t, r, 1, 255, 0), + this[r] = 255 & t, + r + 1 + } + , + f.prototype.writeUInt16LE = function e(t, r, n) { + return t = +t, + r >>>= 0, + n || w(this, t, r, 2, 65535, 0), + this[r] = 255 & t, + this[r + 1] = t >>> 8, + r + 2 + } + , + f.prototype.writeUInt16BE = function e(t, r, n) { + return t = +t, + r >>>= 0, + n || w(this, t, r, 2, 65535, 0), + this[r] = t >>> 8, + this[r + 1] = 255 & t, + r + 2 + } + , + f.prototype.writeUInt32LE = function e(t, r, n) { + return t = +t, + r >>>= 0, + n || w(this, t, r, 4, 4294967295, 0), + this[r + 3] = t >>> 24, + this[r + 2] = t >>> 16, + this[r + 1] = t >>> 8, + this[r] = 255 & t, + r + 4 + } + , + f.prototype.writeUInt32BE = function e(t, r, n) { + return t = +t, + r >>>= 0, + n || w(this, t, r, 4, 4294967295, 0), + this[r] = t >>> 24, + this[r + 1] = t >>> 16, + this[r + 2] = t >>> 8, + this[r + 3] = 255 & t, + r + 4 + } + , + f.prototype.writeIntLE = function e(t, r, n, o) { + t = +t, + r >>>= 0, + o || w(this, t, r, n, (o = Math.pow(2, 8 * n - 1)) - 1, -o); + var i = 0 + , a = 1 + , s = 0; + for (this[r] = 255 & t; ++i < n && (a *= 256); ) + t < 0 && 0 === s && 0 !== this[r + i - 1] && (s = 1), + this[r + i] = (t / a >> 0) - s & 255; + return r + n + } + , + f.prototype.writeIntBE = function e(t, r, n, o) { + t = +t, + r >>>= 0, + o || w(this, t, r, n, (o = Math.pow(2, 8 * n - 1)) - 1, -o); + var i = n - 1 + , a = 1 + , s = 0; + for (this[r + i] = 255 & t; 0 <= --i && (a *= 256); ) + t < 0 && 0 === s && 0 !== this[r + i + 1] && (s = 1), + this[r + i] = (t / a >> 0) - s & 255; + return r + n + } + , + f.prototype.writeInt8 = function e(t, r, n) { + return t = +t, + r >>>= 0, + n || w(this, t, r, 1, 127, -128), + this[r] = 255 & (t = t < 0 ? 255 + t + 1 : t), + r + 1 + } + , + f.prototype.writeInt16LE = function e(t, r, n) { + return t = +t, + r >>>= 0, + n || w(this, t, r, 2, 32767, -32768), + this[r] = 255 & t, + this[r + 1] = t >>> 8, + r + 2 + } + , + f.prototype.writeInt16BE = function e(t, r, n) { + return t = +t, + r >>>= 0, + n || w(this, t, r, 2, 32767, -32768), + this[r] = t >>> 8, + this[r + 1] = 255 & t, + r + 2 + } + , + f.prototype.writeInt32LE = function e(t, r, n) { + return t = +t, + r >>>= 0, + n || w(this, t, r, 4, 2147483647, -2147483648), + this[r] = 255 & t, + this[r + 1] = t >>> 8, + this[r + 2] = t >>> 16, + this[r + 3] = t >>> 24, + r + 4 + } + , + f.prototype.writeInt32BE = function e(t, r, n) { + return t = +t, + r >>>= 0, + n || w(this, t, r, 4, 2147483647, -2147483648), + this[r] = (t = t < 0 ? 4294967295 + t + 1 : t) >>> 24, + this[r + 1] = t >>> 16, + this[r + 2] = t >>> 8, + this[r + 3] = 255 & t, + r + 4 + } + , + f.prototype.writeFloatLE = function e(t, r, n) { + return x(this, t, r, !0, n) + } + , + f.prototype.writeFloatBE = function e(t, r, n) { + return x(this, t, r, !1, n) + } + , + f.prototype.writeDoubleLE = function e(t, r, n) { + return k(this, t, r, !0, n) + } + , + f.prototype.writeDoubleBE = function e(t, r, n) { + return k(this, t, r, !1, n) + } + , + f.prototype.copy = function e(t, r, n, o) { + if (!f.isBuffer(t)) + throw new TypeError("argument should be a Buffer"); + if (n = n || 0, + o || 0 === o || (o = this.length), + r >= t.length && (r = t.length), + (o = 0 < o && o < n ? n : o) === n) + return 0; + if (0 === t.length || 0 === this.length) + return 0; + if ((r = r || 0) < 0) + throw new RangeError("targetStart out of bounds"); + if (n < 0 || n >= this.length) + throw new RangeError("Index out of range"); + if (o < 0) + throw new RangeError("sourceEnd out of bounds"); + o > this.length && (o = this.length); + var i = (o = t.length - r < o - n ? t.length - r + n : o) - n; + if (this === t && "function" == typeof Uint8Array.prototype.copyWithin) + this.copyWithin(r, n, o); + else if (this === t && n < r && r < o) + for (var a = i - 1; 0 <= a; --a) + t[a + r] = this[a + n]; + else + Uint8Array.prototype.set.call(t, this.subarray(n, o), r); + return i + } + , + f.prototype.fill = function e(t, r, n, o) { + if ("string" == typeof t) { + if ("string" == typeof r ? (o = r, + r = 0, + n = this.length) : "string" == typeof n && (o = n, + n = this.length), + void 0 !== o && "string" != typeof o) + throw new TypeError("encoding must be a string"); + if ("string" == typeof o && !f.isEncoding(o)) + throw new TypeError("Unknown encoding: " + o); + var i; + 1 === t.length && (i = t.charCodeAt(0), + "utf8" === o && i < 128 || "latin1" === o) && (t = i) + } else + "number" == typeof t && (t &= 255); + if (r < 0 || this.length < r || this.length < n) + throw new RangeError("Out of range index"); + var a; + if (!(n <= r)) + if (r >>>= 0, + n = void 0 === n ? this.length : n >>> 0, + "number" == typeof (t = t || 0)) + for (a = r; a < n; ++a) + this[a] = t; + else { + var s = f.isBuffer(t) ? t : f.from(t, o) + , u = s.length; + if (0 === u) + throw new TypeError('The value "' + t + '" is invalid for argument "value"'); + for (a = 0; a < n - r; ++a) + this[a + r] = s[a % u] + } + return this + } + ; + var E = /[^+/0-9A-Za-z-_]/g; + function S(e, t) { + t = t || 1 / 0; + for (var r, n = e.length, o = null, i = [], a = 0; a < n; ++a) { + if (55295 < (r = e.charCodeAt(a)) && r < 57344) { + if (!o) { + if (56319 < r) { + -1 < (t -= 3) && i.push(239, 191, 189); + continue + } + if (a + 1 === n) { + -1 < (t -= 3) && i.push(239, 191, 189); + continue + } + o = r; + continue + } + if (r < 56320) { + -1 < (t -= 3) && i.push(239, 191, 189), + o = r; + continue + } + r = 65536 + (o - 55296 << 10 | r - 56320) + } else + o && -1 < (t -= 3) && i.push(239, 191, 189); + if (o = null, + r < 128) { + if (--t < 0) + break; + i.push(r) + } else if (r < 2048) { + if ((t -= 2) < 0) + break; + i.push(r >> 6 | 192, 63 & r | 128) + } else if (r < 65536) { + if ((t -= 3) < 0) + break; + i.push(r >> 12 | 224, r >> 6 & 63 | 128, 63 & r | 128) + } else { + if (!(r < 1114112)) + throw new Error("Invalid code point"); + if ((t -= 4) < 0) + break; + i.push(r >> 18 | 240, r >> 12 & 63 | 128, r >> 6 & 63 | 128, 63 & r | 128) + } + } + return i + } + function R(e) { + return o.toByteArray(function e(t) { + if ((t = (t = t.split("=")[0]).trim().replace(E, "")).length < 2) + return ""; + for (; t.length % 4 != 0; ) + t += "="; + return t + }(e)) + } + function O(e, t, r, n) { + for (var o = 0; o < n && !(o + r >= t.length || o >= e.length); ++o) + t[o + r] = e[o]; + return o + } + function D(e, t) { + return e instanceof t || null != e && null != e.constructor && null != e.constructor.name && e.constructor.name === t.name + } + function T(e) { + return e != e + } + } + .call(this) + } + .call(this, I("buffer").Buffer) + } + , { + "base64-js": 2, + buffer: 3, + ieee754: 4 + }], + 4: [function(e, t, r) { + r.read = function(e, t, r, n, o) { + var i, a, s = 8 * o - n - 1, u = (1 << s) - 1, c = u >> 1, l = -7, d = r ? o - 1 : 0, f = r ? -1 : 1, o = e[t + d]; + for (d += f, + i = o & (1 << -l) - 1, + o >>= -l, + l += s; 0 < l; i = 256 * i + e[t + d], + d += f, + l -= 8) + ; + for (a = i & (1 << -l) - 1, + i >>= -l, + l += n; 0 < l; a = 256 * a + e[t + d], + d += f, + l -= 8) + ; + if (0 === i) + i = 1 - c; + else { + if (i === u) + return a ? NaN : 1 / 0 * (o ? -1 : 1); + a += Math.pow(2, n), + i -= c + } + return (o ? -1 : 1) * a * Math.pow(2, i - n) + } + , + r.write = function(e, t, r, n, o, i) { + var a, s, u = 8 * i - o - 1, c = (1 << u) - 1, l = c >> 1, d = 23 === o ? Math.pow(2, -24) - Math.pow(2, -77) : 0, f = n ? 0 : i - 1, p = n ? 1 : -1, i = t < 0 || 0 === t && 1 / t < 0 ? 1 : 0; + for (t = Math.abs(t), + isNaN(t) || t === 1 / 0 ? (s = isNaN(t) ? 1 : 0, + a = c) : (a = Math.floor(Math.log(t) / Math.LN2), + t * (n = Math.pow(2, -a)) < 1 && (a--, + n *= 2), + 2 <= (t += 1 <= a + l ? d / n : d * Math.pow(2, 1 - l)) * n && (a++, + n /= 2), + c <= a + l ? (s = 0, + a = c) : 1 <= a + l ? (s = (t * n - 1) * Math.pow(2, o), + a += l) : (s = t * Math.pow(2, l - 1) * Math.pow(2, o), + a = 0)); 8 <= o; e[r + f] = 255 & s, + f += p, + s /= 256, + o -= 8) + ; + for (a = a << o | s, + u += o; 0 < u; e[r + f] = 255 & a, + f += p, + a /= 256, + u -= 8) + ; + e[r + f - p] |= 128 * i + } + } + , {}], + 5: [function(e, t, r) { + var n, o, t = t.exports = {}; + function i() { + throw new Error("setTimeout has not been defined") + } + function a() { + throw new Error("clearTimeout has not been defined") + } + try { + n = "function" == typeof setTimeout ? setTimeout : i + } catch (e) { + n = i + } + try { + o = "function" == typeof clearTimeout ? clearTimeout : a + } catch (e) { + o = a + } + function s(t) { + if (n === setTimeout) + return setTimeout(t, 0); + if ((n === i || !n) && setTimeout) + return (n = setTimeout)(t, 0); + try { + return n(t, 0) + } catch (e) { + try { + return n.call(null, t, 0) + } catch (e) { + return n.call(this, t, 0) + } + } + } + var u, c = [], l = !1, d = -1; + function f() { + l && u && (l = !1, + u.length ? c = u.concat(c) : d = -1, + c.length) && p() + } + function p() { + if (!l) { + for (var e = s(f), t = (l = !0, + c.length); t; ) { + for (u = c, + c = []; ++d < t; ) + u && u[d].run(); + d = -1, + t = c.length + } + u = null, + l = !1, + !function e(t) { + if (o === clearTimeout) + return clearTimeout(t); + if ((o === a || !o) && clearTimeout) + return (o = clearTimeout)(t); + try { + o(t) + } catch (e) { + try { + return o.call(null, t) + } catch (e) { + return o.call(this, t) + } + } + }(e) + } + } + function h(e, t) { + this.fun = e, + this.array = t + } + function m() {} + t.nextTick = function(e) { + var t = new Array(arguments.length - 1); + if (1 < arguments.length) + for (var r = 1; r < arguments.length; r++) + t[r - 1] = arguments[r]; + c.push(new h(e,t)), + 1 !== c.length || l || s(p) + } + , + h.prototype.run = function() { + this.fun.apply(null, this.array) + } + , + t.title = "browser", + t.browser = !0, + t.env = {}, + t.argv = [], + t.version = "", + t.versions = {}, + t.on = m, + t.addListener = m, + t.once = m, + t.off = m, + t.removeListener = m, + t.removeAllListeners = m, + t.emit = m, + t.prependListener = m, + t.prependOnceListener = m, + t.listeners = function(e) { + return [] + } + , + t.binding = function(e) { + throw new Error("process.binding is not supported") + } + , + t.cwd = function() { + return "/" + } + , + t.chdir = function(e) { + throw new Error("process.chdir is not supported") + } + , + t.umask = function() { + return 0 + } + } + , {}], + 6: [function(e, t, r) { + "use strict"; + e("@bygd/gd-sdk-pes/dist/default") + } + , { + "@bygd/gd-sdk-pes/dist/default": 1 + }] +}, {}, [6]); diff --git a/vex8/patch/js/gd-main-o.js b/vex8/patch/js/gd-main-o.js new file mode 100644 index 000000000..4bffa1e0b --- /dev/null +++ b/vex8/patch/js/gd-main-o.js @@ -0,0 +1,10982 @@ +/* +* Project: @gamedistribution.com/html5-sdk +* Description: GameDistribution.com HTML5 SDK +* Development By: GameDistribution.com +* Copyright(c): 2021 +* Version: 1.15.7 (01-09-2021 11:07) +*/ +!function r(i, o, a) { + function s(t, e) { + if (!o[t]) { + if (!i[t]) { + var n = "function" == typeof require && require; + if (!e && n) + return n(t, !0); + if (c) + return c(t, !0); + throw (n = new Error("Cannot find module '" + t + "'")).code = "MODULE_NOT_FOUND", + n + } + n = o[t] = { + exports: {} + }, + i[t][0].call(n.exports, function(e) { + return s(i[t][1][e] || e) + }, n, n.exports, r, i, o, a) + } + return o[t].exports + } + for (var c = "function" == typeof require && require, e = 0; e < a.length; e++) + s(a[e]); + return s +}({ + 1: [function(e, t, n) { + !function(pf, gf) { + !function() { + !function() { + "use strict"; + function p(e, t) { + if (e !== t) + throw new TypeError("Cannot instantiate an arrow function") + } + function t(e) { + return (t = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { + return typeof e + } + : function(e) { + return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e + } + )(e) + } + var je = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : void 0 !== pf ? pf : "undefined" != typeof self ? self : {} + , e = function(e) { + return e && e.Math == Math && e + } + , n = e("object" == typeof globalThis && globalThis) || e("object" == typeof window && window) || e("object" == typeof self && self) || e("object" == typeof je && je) || function() { + return this + }() || Function("return this")() + , r = {} + , i = function(e) { + try { + return !!e() + } catch (e) { + return !0 + } + } + , o = !i(function() { + return 7 != Object.defineProperty({}, 1, { + get: function() { + return 7 + } + })[1] + }) + , a = {} + , s = {}.propertyIsEnumerable + , c = Object.getOwnPropertyDescriptor + , u = c && !s.call({ + 1: 2 + }, 1); + a.f = u ? function(e) { + e = c(this, e); + return !!e && e.enumerable + } + : s; + function d(e, t) { + return { + enumerable: !(1 & e), + configurable: !(2 & e), + writable: !(4 & e), + value: t + } + } + function l(e) { + if (null == e) + throw TypeError("Can't call method on " + e); + return e + } + function h(e) { + return _(w(e)) + } + function f(e) { + return "object" == typeof e ? null !== e : "function" == typeof e + } + var g = {}.toString + , m = function(e) { + return g.call(e).slice(8, -1) + } + , v = m + , y = "".split + , b = i(function() { + return !Object("z").propertyIsEnumerable(0) + }) ? function(e) { + return "String" == v(e) ? y.call(e, "") : Object(e) + } + : Object + , _ = b + , w = l + , A = n + , E = function(e, t) { + return arguments.length < 2 ? "function" == typeof (n = A[e]) ? n : void 0 : A[e] && A[e][t]; + var n + } + , k = E("navigator", "userAgent") || "" + , x = k + , S = n.process + , D = n.Deno + , T = S && S.versions || D && D.version + , R = T && T.v8; + R ? yn = (mn = R.split("."))[0] < 4 ? 1 : mn[0] + mn[1] : x && (!(mn = x.match(/Edge\/(\d+)/)) || 74 <= mn[1]) && (mn = x.match(/Chrome\/(\d+)/)) && (yn = mn[1]); + var O = yn && +yn + , C = O + , I = i + , P = !!Object.getOwnPropertySymbols && !I(function() { + var e = Symbol(); + return !String(e) || !(Object(e)instanceof Symbol) || !Symbol.sham && C && C < 41 + }) + , L = P && !Symbol.sham && "symbol" == typeof Symbol.iterator + , j = E + , B = L ? function(e) { + return "symbol" == typeof e + } + : function(e) { + var t = j("Symbol"); + return "function" == typeof t && Object(e)instanceof t + } + , M = f + , U = { + exports: {} + } + , N = n + , G = function(t, n) { + try { + Object.defineProperty(N, t, { + value: n, + configurable: !0, + writable: !0 + }) + } catch (e) { + N[t] = n + } + return n + } + , F = G + , q = "__core-js_shared__" + , z = n[q] || F(q, {}) + , V = z; + (U.exports = function(e, t) { + return V[e] || (V[e] = void 0 !== t ? t : {}) + } + )("versions", []).push({ + version: "3.16.1", + mode: "global", + copyright: "© 2021 Denis Pushkarev (zloirock.ru)" + }); + var K = l + , H = function(e) { + return Object(K(e)) + } + , W = H + , $ = {}.hasOwnProperty + , Y = Object.hasOwn || function(e, t) { + return $.call(W(e), t) + } + , Q = 0 + , J = Math.random() + , Z = function(e) { + return "Symbol(" + String(void 0 === e ? "" : e) + ")_" + (++Q + J).toString(36) + } + , X = n + , ee = U.exports + , te = Y + , ne = Z + , re = P + , ie = L + , oe = ee("wks") + , ae = X.Symbol + , se = ie ? ae : ae && ae.withoutSetter || ne + , ce = function(e) { + return te(oe, e) && (re || "string" == typeof oe[e]) || (re && te(ae, e) ? oe[e] = ae[e] : oe[e] = se("Symbol." + e)), + oe[e] + } + , ue = f + , de = B + , le = function(e, t) { + var n, r; + if ("string" === t && "function" == typeof (n = e.toString) && !M(r = n.call(e))) + return r; + if ("function" == typeof (n = e.valueOf) && !M(r = n.call(e))) + return r; + if ("string" !== t && "function" == typeof (n = e.toString) && !M(r = n.call(e))) + return r; + throw TypeError("Can't convert object to primitive value") + } + , he = ce("toPrimitive") + , fe = B + , pe = function(e) { + e = function(e, t) { + if (!ue(e) || de(e)) + return e; + var n = e[he]; + if (void 0 === n) + return le(e, t = void 0 === t ? "number" : t); + if (t = n.call(e, t = void 0 === t ? "default" : t), + !ue(t) || de(t)) + return t; + throw TypeError("Can't convert object to primitive value") + }(e, "string"); + return fe(e) ? e : String(e) + } + , ge = f + , me = n.document + , ve = ge(me) && ge(me.createElement) + , ye = function(e) { + return ve ? me.createElement(e) : {} + } + , be = ye + , _e = !o && !i(function() { + return 7 != Object.defineProperty(be("div"), "a", { + get: function() { + return 7 + } + }).a + }) + , we = a + , Ae = d + , Ee = h + , ke = pe + , xe = Y + , Se = _e + , De = Object.getOwnPropertyDescriptor; + r.f = o ? De : function(e, t) { + if (e = Ee(e), + t = ke(t), + Se) + try { + return De(e, t) + } catch (e) {} + if (xe(e, t)) + return Ae(!we.f.call(e, t), e[t]) + } + ; + function Te(e) { + if (!Oe(e)) + throw TypeError(String(e) + " is not an object"); + return e + } + var Re = {} + , Oe = f + , Ce = _e + , Ie = Te + , Pe = pe + , Le = Object.defineProperty; + Re.f = o ? Le : function(e, t, n) { + if (Ie(e), + t = Pe(t), + Ie(n), + Ce) + try { + return Le(e, t, n) + } catch (e) {} + if ("get"in n || "set"in n) + throw TypeError("Accessors not supported"); + return "value"in n && (e[t] = n.value), + e + } + ; + var Be = Re + , Me = d + , Ue = o ? function(e, t, n) { + return Be.f(e, t, Me(1, n)) + } + : function(e, t, n) { + return e[t] = n, + e + } + , Ne = { + exports: {} + } + , Ge = z + , Fe = Function.toString; + "function" != typeof Ge.inspectSource && (Ge.inspectSource = function(e) { + return Fe.call(e) + } + ); + var qe, ze, Ve, Ke, He, We, $e, Ye, Qe = Ge.inspectSource, Je = Qe, Ze = n.WeakMap, Xe = "function" == typeof Ze && /native code/.test(Je(Ze)), et = U.exports, tt = Z, nt = et("keys"), rt = function(e) { + return nt[e] || (nt[e] = tt(e)) + }, it = {}, ot = f, at = Ue, st = Y, ct = z, ut = rt, dt = it, lt = "Object already initialized", ht = n.WeakMap; + $e = Xe || ct.state ? (qe = ct.state || (ct.state = new ht), + ze = qe.get, + Ve = qe.has, + Ke = qe.set, + He = function(e, t) { + if (Ve.call(qe, e)) + throw new TypeError(lt); + return t.facade = e, + Ke.call(qe, e, t), + t + } + , + We = function(e) { + return ze.call(qe, e) || {} + } + , + function(e) { + return Ve.call(qe, e) + } + ) : (dt[Ye = ut("state")] = !0, + He = function(e, t) { + if (st(e, Ye)) + throw new TypeError(lt); + return t.facade = e, + at(e, Ye, t), + t + } + , + We = function(e) { + return st(e, Ye) ? e[Ye] : {} + } + , + function(e) { + return st(e, Ye) + } + ); + var ft = { + set: He, + get: We, + has: $e, + enforce: function(e) { + return $e(e) ? We(e) : He(e, {}) + }, + getterFor: function(n) { + return function(e) { + var t; + if (!ot(e) || (t = We(e)).type !== n) + throw TypeError("Incompatible receiver, " + n + " required"); + return t + } + } + } + , pt = n + , gt = Ue + , mt = Y + , vt = G + , yt = Qe + , bt = ft.get + , _t = ft.enforce + , wt = String(String).split("String"); + (Ne.exports = function(e, t, n, r) { + var i = !!r && !!r.unsafe + , o = !!r && !!r.enumerable + , a = !!r && !!r.noTargetGet; + "function" == typeof n && ("string" != typeof t || mt(n, "name") || gt(n, "name", t), + (r = _t(n)).source || (r.source = wt.join("string" == typeof t ? t : ""))), + e !== pt ? (i ? !a && e[t] && (o = !0) : delete e[t], + o ? e[t] = n : gt(e, t, n)) : o ? e[t] = n : vt(t, n) + } + )(Function.prototype, "toString", function() { + return "function" == typeof this && bt(this).source || yt(this) + }); + function At(e) { + return 0 < e ? Tt(Dt(e), 9007199254740991) : 0 + } + var Et = {} + , kt = Math.ceil + , xt = Math.floor + , St = function(e) { + return isNaN(e = +e) ? 0 : (0 < e ? xt : kt)(e) + } + , Dt = St + , Tt = Math.min + , Rt = St + , Ot = Math.max + , Ct = Math.min + , It = function(e, t) { + e = Rt(e); + return e < 0 ? Ot(e + t, 0) : Ct(e, t) + } + , Pt = h + , Lt = At + , jt = It + , Bt = function(s) { + return function(e, t, n) { + var r, i = Pt(e), o = Lt(i.length), a = jt(n, o); + if (s && t != t) { + for (; a < o; ) + if ((r = i[a++]) != r) + return !0 + } else + for (; a < o; a++) + if ((s || a in i) && i[a] === t) + return s || a || 0; + return !s && -1 + } + } + , Mt = { + includes: Bt(!0), + indexOf: Bt(!1) + } + , Ut = Y + , Nt = h + , Gt = Mt.indexOf + , Ft = it + , qt = function(e, t) { + var n, r = Nt(e), i = 0, o = []; + for (n in r) + !Ut(Ft, n) && Ut(r, n) && o.push(n); + for (; t.length > i; ) + Ut(r, n = t[i++]) && (~Gt(o, n) || o.push(n)); + return o + } + , e = ["constructor", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "toLocaleString", "toString", "valueOf"] + , zt = qt + , Vt = e.concat("length", "prototype"); + Et.f = Object.getOwnPropertyNames || function(e) { + return zt(e, Vt) + } + ; + u = {}; + u.f = Object.getOwnPropertySymbols; + var Kt = Et + , Ht = u + , Wt = Te + , s = E("Reflect", "ownKeys") || function(e) { + var t = Kt.f(Wt(e)) + , n = Ht.f; + return n ? t.concat(n(e)) : t + } + , $t = Y + , Yt = s + , Qt = r + , Jt = Re + , S = function(e, t) { + for (var n = Yt(t), r = Jt.f, i = Qt.f, o = 0; o < n.length; o++) { + var a = n[o]; + $t(e, a) || r(e, a, i(t, a)) + } + } + , Zt = i + , Xt = /#|\.prototype\./ + , D = function(e, t) { + e = tn[en(e)]; + return e == rn || e != nn && ("function" == typeof t ? Zt(t) : !!t) + } + , en = D.normalize = function(e) { + return String(e).replace(Xt, ".").toLowerCase() + } + , tn = D.data = {} + , nn = D.NATIVE = "N" + , rn = D.POLYFILL = "P" + , T = D + , on = n + , an = r.f + , sn = Ue + , cn = Ne.exports + , un = G + , dn = S + , ln = T + , R = function(e, t) { + var n, r, i, o, a = e.target, s = e.global, c = e.stat; + if (n = s ? on : c ? on[a] || un(a, {}) : (on[a] || {}).prototype) + for (r in t) { + if (i = t[r], + o = e.noTargetGet ? (o = an(n, r)) && o.value : n[r], + !ln(s ? r : a + (c ? "." : "#") + r, e.forced) && void 0 !== o) { + if (typeof i == typeof o) + continue; + dn(i, o) + } + (e.sham || o && o.sham) && sn(i, "sham", !0), + cn(n, r, i, e) + } + } + , hn = qt + , fn = e + , x = Object.keys || function(e) { + return hn(e, fn) + } + , pn = H + , gn = x; + R({ + target: "Object", + stat: !0, + forced: i(function() { + gn(1) + }) + }, { + keys: function(e) { + return gn(pn(e)) + } + }); + var mn = function(e) { + if ("function" != typeof e) + throw TypeError(String(e) + " is not a function"); + return e + } + , vn = mn + , yn = function(r, i, e) { + if (vn(r), + void 0 === i) + return r; + switch (e) { + case 0: + return function() { + return r.call(i) + } + ; + case 1: + return function(e) { + return r.call(i, e) + } + ; + case 2: + return function(e, t) { + return r.call(i, e, t) + } + ; + case 3: + return function(e, t, n) { + return r.call(i, e, t, n) + } + } + return function() { + return r.apply(i, arguments) + } + } + , bn = m + , I = Array.isArray || function(e) { + return "Array" == bn(e) + } + , _n = f + , wn = I + , An = ce("species") + , F = function(e, t) { + return new (void 0 === (n = wn(e = e) && ("function" == typeof (n = e.constructor) && (n === Array || wn(n.prototype)) || _n(n) && null === (n = n[An])) ? void 0 : n) ? Array : n)(0 === t ? 0 : t); + var n + } + , En = yn + , kn = b + , xn = H + , Sn = At + , Dn = F + , Tn = [].push + , q = function(h) { + var f = 1 == h + , p = 2 == h + , g = 3 == h + , m = 4 == h + , v = 6 == h + , y = 7 == h + , b = 5 == h || v; + return function(e, t, n, r) { + for (var i, o, a = xn(e), s = kn(a), c = En(t, n, 3), u = Sn(s.length), d = 0, r = r || Dn, l = f ? r(e, u) : p || y ? r(e, 0) : void 0; d < u; d++) + if ((b || d in s) && (o = c(i = s[d], d, a), + h)) + if (f) + l[d] = o; + else if (o) + switch (h) { + case 3: + return !0; + case 5: + return i; + case 6: + return d; + case 2: + Tn.call(l, i) + } + else + switch (h) { + case 4: + return !1; + case 7: + Tn.call(l, i) + } + return v ? -1 : g || m ? m : l + } + } + , L = { + forEach: q(0), + map: q(1), + filter: q(2), + some: q(3), + every: q(4), + find: q(5), + findIndex: q(6), + filterReject: q(7) + } + , Rn = i + , On = O + , Cn = ce("species") + , ee = function(t) { + return 51 <= On || !Rn(function() { + var e = []; + return (e.constructor = {})[Cn] = function() { + return { + foo: 1 + } + } + , + 1 !== e[t](Boolean).foo + }) + } + , In = L.filter; + R({ + target: "Array", + proto: !0, + forced: !ee("filter") + }, { + filter: function(e) { + return In(this, e, 1 < arguments.length ? arguments[1] : void 0) + } + }); + var X = R + , ie = i + , Pn = h + , Ln = r.f + , ne = o + , ge = ie(function() { + Ln(1) + }); + X({ + target: "Object", + stat: !0, + forced: !ne || ge, + sham: !ne + }, { + getOwnPropertyDescriptor: function(e, t) { + return Ln(Pn(e), t) + } + }); + var jn = pe + , Bn = Re + , Mn = d + , _e = function(e, t, n) { + t = jn(t); + t in e ? Bn.f(e, t, Mn(0, n)) : e[t] = n + } + , Un = s + , Nn = h + , Gn = r + , Fn = _e; + function qn(e, t, n) { + return t in e ? Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }) : e[t] = n, + e + } + function zn(e, t, n, r, i, o, a) { + try { + var s = e[o](a) + , c = s.value + } catch (e) { + return n(e), + 0 + } + s.done ? t(c) : Promise.resolve(c).then(r, i) + } + function Vn(s) { + return function() { + var e = this + , a = arguments; + return new Promise(function(t, n) { + var r = s.apply(e, a); + function i(e) { + zn(r, t, n, i, o, "next", e) + } + function o(e) { + zn(r, t, n, i, o, "throw", e) + } + i(void 0) + } + ) + } + } + function Kn(e, t) { + if (!(e instanceof t)) + throw new TypeError("Cannot call a class as a function") + } + function Hn(e, t) { + for (var n = 0; n < t.length; n++) { + var r = t[n]; + r.enumerable = r.enumerable || !1, + r.configurable = !0, + "value"in r && (r.writable = !0), + Object.defineProperty(e, r.key, r) + } + } + function Wn(e, t, n) { + return t && Hn(e.prototype, t), + n && Hn(e, n), + e + } + R({ + target: "Object", + stat: !0, + sham: !o + }, { + getOwnPropertyDescriptors: function(e) { + for (var t, n, r = Nn(e), i = Gn.f, o = Un(r), a = {}, s = 0; o.length > s; ) + void 0 !== (n = i(r, t = o[s++])) && Fn(a, t, n); + return a + } + }); + var $n = { + exports: {} + }; + !function() { + var t = function(a) { + var c, e = Object.prototype, u = e.hasOwnProperty, t = "function" == typeof Symbol ? Symbol : {}, r = t.iterator || "@@iterator", n = t.asyncIterator || "@@asyncIterator", i = t.toStringTag || "@@toStringTag"; + function o(e, t, n) { + return Object.defineProperty(e, t, { + value: n, + enumerable: !0, + configurable: !0, + writable: !0 + }), + e[t] + } + try { + o({}, "") + } catch (a) { + o = function(e, t, n) { + return e[t] = n + } + } + function s(e, t, n, r) { + var i, o, a, s, t = t && t.prototype instanceof m ? t : m, t = Object.create(t.prototype), r = new x(r || []); + return t._invoke = (i = e, + o = n, + a = r, + s = l, + function(e, t) { + if (s === f) + throw new Error("Generator is already running"); + if (s === p) { + if ("throw" === e) + throw t; + return D() + } + for (a.method = e, + a.arg = t; ; ) { + var n = a.delegate; + if (n) { + var r = function e(t, n) { + var r = t.iterator[n.method]; + if (r === c) { + if (n.delegate = null, + "throw" === n.method) { + if (t.iterator.return && (n.method = "return", + n.arg = c, + e(t, n), + "throw" === n.method)) + return g; + n.method = "throw", + n.arg = new TypeError("The iterator does not provide a 'throw' method") + } + return g + } + var r = d(r, t.iterator, n.arg); + if ("throw" === r.type) + return n.method = "throw", + n.arg = r.arg, + n.delegate = null, + g; + r = r.arg; + return r ? r.done ? (n[t.resultName] = r.value, + n.next = t.nextLoc, + "return" !== n.method && (n.method = "next", + n.arg = c), + n.delegate = null, + g) : r : (n.method = "throw", + n.arg = new TypeError("iterator result is not an object"), + n.delegate = null, + g) + }(n, a); + if (r) { + if (r === g) + continue; + return r + } + } + if ("next" === a.method) + a.sent = a._sent = a.arg; + else if ("throw" === a.method) { + if (s === l) + throw s = p, + a.arg; + a.dispatchException(a.arg) + } else + "return" === a.method && a.abrupt("return", a.arg); + s = f; + r = d(i, o, a); + if ("normal" === r.type) { + if (s = a.done ? p : h, + r.arg === g) + continue; + return { + value: r.arg, + done: a.done + } + } + "throw" === r.type && (s = p, + a.method = "throw", + a.arg = r.arg) + } + } + ), + t + } + function d(e, t, n) { + try { + return { + type: "normal", + arg: e.call(t, n) + } + } catch (e) { + return { + type: "throw", + arg: e + } + } + } + a.wrap = s; + var l = "suspendedStart" + , h = "suspendedYield" + , f = "executing" + , p = "completed" + , g = {}; + function m() {} + function v() {} + function y() {} + var b = {}; + o(b, r, function() { + return this + }); + t = Object.getPrototypeOf, + t = t && t(t(S([]))); + t && t !== e && u.call(t, r) && (b = t); + var _ = y.prototype = m.prototype = Object.create(b); + function w(e) { + ["next", "throw", "return"].forEach(function(t) { + o(e, t, function(e) { + return this._invoke(t, e) + }) + }) + } + function A(a, s) { + var t; + this._invoke = function(n, r) { + function e() { + return new s(function(e, t) { + !function t(e, n, r, i) { + e = d(a[e], a, n); + if ("throw" !== e.type) { + var o = e.arg; + return (n = o.value) && "object" == typeof n && u.call(n, "__await") ? s.resolve(n.__await).then(function(e) { + t("next", e, r, i) + }, function(e) { + t("throw", e, r, i) + }) : s.resolve(n).then(function(e) { + o.value = e, + r(o) + }, function(e) { + return t("throw", e, r, i) + }) + } + i(e.arg) + }(n, r, e, t) + } + ) + } + return t = t ? t.then(e, e) : e() + } + } + function E(e) { + var t = { + tryLoc: e[0] + }; + 1 in e && (t.catchLoc = e[1]), + 2 in e && (t.finallyLoc = e[2], + t.afterLoc = e[3]), + this.tryEntries.push(t) + } + function k(e) { + var t = e.completion || {}; + t.type = "normal", + delete t.arg, + e.completion = t + } + function x(e) { + this.tryEntries = [{ + tryLoc: "root" + }], + e.forEach(E, this), + this.reset(!0) + } + function S(t) { + if (t) { + var e = t[r]; + if (e) + return e.call(t); + if ("function" == typeof t.next) + return t; + if (!isNaN(t.length)) { + var n = -1 + , e = function e() { + for (; ++n < t.length; ) + if (u.call(t, n)) + return e.value = t[n], + e.done = !1, + e; + return e.value = c, + e.done = !0, + e + }; + return e.next = e + } + } + return { + next: D + } + } + function D() { + return { + value: c, + done: !0 + } + } + return o(_, "constructor", v.prototype = y), + o(y, "constructor", v), + v.displayName = o(y, i, "GeneratorFunction"), + a.isGeneratorFunction = function(e) { + e = "function" == typeof e && e.constructor; + return !!e && (e === v || "GeneratorFunction" === (e.displayName || e.name)) + } + , + a.mark = function(e) { + return Object.setPrototypeOf ? Object.setPrototypeOf(e, y) : (e.__proto__ = y, + o(e, i, "GeneratorFunction")), + e.prototype = Object.create(_), + e + } + , + a.awrap = function(e) { + return { + __await: e + } + } + , + w(A.prototype), + o(A.prototype, n, function() { + return this + }), + a.AsyncIterator = A, + a.async = function(e, t, n, r, i) { + void 0 === i && (i = Promise); + var o = new A(s(e, t, n, r),i); + return a.isGeneratorFunction(t) ? o : o.next().then(function(e) { + return e.done ? e.value : o.next() + }) + } + , + w(_), + o(_, i, "Generator"), + o(_, r, function() { + return this + }), + o(_, "toString", function() { + return "[object Generator]" + }), + a.keys = function(n) { + var e, r = []; + for (e in n) + r.push(e); + return r.reverse(), + function e() { + for (; r.length; ) { + var t = r.pop(); + if (t in n) + return e.value = t, + e.done = !1, + e + } + return e.done = !0, + e + } + } + , + a.values = S, + x.prototype = { + constructor: x, + reset: function(e) { + if (this.prev = 0, + this.next = 0, + this.sent = this._sent = c, + this.done = !1, + this.delegate = null, + this.method = "next", + this.arg = c, + this.tryEntries.forEach(k), + !e) + for (var t in this) + "t" === t.charAt(0) && u.call(this, t) && !isNaN(+t.slice(1)) && (this[t] = c) + }, + stop: function() { + this.done = !0; + var e = this.tryEntries[0].completion; + if ("throw" === e.type) + throw e.arg; + return this.rval + }, + dispatchException: function(n) { + if (this.done) + throw n; + var r = this; + function e(e, t) { + return o.type = "throw", + o.arg = n, + r.next = e, + t && (r.method = "next", + r.arg = c), + !!t + } + for (var t = this.tryEntries.length - 1; 0 <= t; --t) { + var i = this.tryEntries[t] + , o = i.completion; + if ("root" === i.tryLoc) + return e("end"); + if (i.tryLoc <= this.prev) { + var a = u.call(i, "catchLoc") + , s = u.call(i, "finallyLoc"); + if (a && s) { + if (this.prev < i.catchLoc) + return e(i.catchLoc, !0); + if (this.prev < i.finallyLoc) + return e(i.finallyLoc) + } else if (a) { + if (this.prev < i.catchLoc) + return e(i.catchLoc, !0) + } else { + if (!s) + throw new Error("try statement without catch or finally"); + if (this.prev < i.finallyLoc) + return e(i.finallyLoc) + } + } + } + }, + abrupt: function(e, t) { + for (var n = this.tryEntries.length - 1; 0 <= n; --n) { + var r = this.tryEntries[n]; + if (r.tryLoc <= this.prev && u.call(r, "finallyLoc") && this.prev < r.finallyLoc) { + var i = r; + break + } + } + var o = (i = i && ("break" === e || "continue" === e) && i.tryLoc <= t && t <= i.finallyLoc ? null : i) ? i.completion : {}; + return o.type = e, + o.arg = t, + i ? (this.method = "next", + this.next = i.finallyLoc, + g) : this.complete(o) + }, + complete: function(e, t) { + if ("throw" === e.type) + throw e.arg; + return "break" === e.type || "continue" === e.type ? this.next = e.arg : "return" === e.type ? (this.rval = this.arg = e.arg, + this.method = "return", + this.next = "end") : "normal" === e.type && t && (this.next = t), + g + }, + finish: function(e) { + for (var t = this.tryEntries.length - 1; 0 <= t; --t) { + var n = this.tryEntries[t]; + if (n.finallyLoc === e) + return this.complete(n.completion, n.afterLoc), + k(n), + g + } + }, + catch: function(e) { + for (var t = this.tryEntries.length - 1; 0 <= t; --t) { + var n = this.tryEntries[t]; + if (n.tryLoc === e) { + var r, i = n.completion; + return "throw" === i.type && (r = i.arg, + k(n)), + r + } + } + throw new Error("illegal catch attempt") + }, + delegateYield: function(e, t, n) { + return this.delegate = { + iterator: S(e), + resultName: t, + nextLoc: n + }, + "next" === this.method && (this.arg = c), + g + } + }, + a + }($n.exports); + try { + regeneratorRuntime = t + } catch (e) { + "object" == typeof globalThis ? globalThis.regeneratorRuntime = t : Function("r", "regeneratorRuntime = r")(t) + } + }(); + var Yn = $n.exports + , Ge = {}; + Ge[ce("toStringTag")] = "z"; + var Je = "[object z]" === String(Ge) + , Ze = Je + , Qn = m + , Jn = ce("toStringTag") + , Zn = "Arguments" == Qn(function() { + return arguments + }()) + , et = Ze ? Qn : function(e) { + var t; + return void 0 === e ? "Undefined" : null === e ? "Null" : "string" == typeof (e = function(e, t) { + try { + return e[t] + } catch (e) {} + }(t = Object(e), Jn)) ? e : Zn ? Qn(t) : "Object" == (e = Qn(t)) && "function" == typeof t.callee ? "Arguments" : e + } + , Xn = et + , z = Ne.exports; + Je || z(Object.prototype, "toString", Je ? {}.toString : function() { + return "[object " + Xn(this) + "]" + } + , { + unsafe: !0 + }); + function er(e, t) { + this.stopped = e, + this.result = t + } + var Xe = n.Promise + , tr = Ne.exports + , nr = f + , rr = Te + , ct = Object.setPrototypeOf || ("__proto__"in {} ? function() { + var n, r = !1, e = {}; + try { + (n = Object.getOwnPropertyDescriptor(Object.prototype, "__proto__").set).call(e, []), + r = e instanceof Array + } catch (n) {} + return function(e, t) { + return rr(e), + function(e) { + if (!nr(e) && null !== e) + throw TypeError("Can't set " + String(e) + " as a prototype") + }(t), + r ? n.call(e, t) : e.__proto__ = t, + e + } + }() : void 0) + , ir = Re.f + , or = Y + , ar = ce("toStringTag") + , ht = function(e, t, n) { + e && !or(e = n ? e : e.prototype, ar) && ir(e, ar, { + configurable: !0, + value: t + }) + } + , sr = E + , cr = Re + , ur = o + , dr = ce("species") + , dt = function(e) { + var t = sr(e) + , e = cr.f; + ur && t && !t[dr] && e(t, dr, { + configurable: !0, + get: function() { + return this + } + }) + } + , ut = {} + , lr = ut + , hr = ce("iterator") + , fr = Array.prototype + , Bt = function(e) { + return void 0 !== e && (lr.Array === e || fr[hr] === e) + } + , pr = et + , gr = ut + , mr = ce("iterator") + , D = function(e) { + if (null != e) + return e[mr] || e["@@iterator"] || gr[pr(e)] + } + , vr = Te + , G = function(e) { + var t = e.return; + if (void 0 !== t) + return vr(t.call(e)).value + } + , yr = Te + , br = Bt + , _r = At + , wr = yn + , Ar = D + , Er = G + , kr = ce("iterator") + , xr = !1; + try { + var Sr = 0 + , Dr = { + next: function() { + return { + done: !!Sr++ + } + }, + return: function() { + xr = !0 + } + }; + Dr[kr] = function() { + return this + } + , + Array.from(Dr, function() { + throw 2 + }) + } catch (p) {} + var Tr, Rr, qt = function(e, t) { + if (!t && !xr) + return !1; + var n = !1; + try { + var r = {}; + r[kr] = function() { + return { + next: function() { + return { + done: n = !0 + } + } + } + } + , + e(r) + } catch (e) {} + return n + }, Or = Te, Cr = mn, Ir = ce("species"), b = function(e, t) { + var n, e = Or(e).constructor; + return void 0 === e || null == (n = Or(e)[Ir]) ? t : Cr(n) + }, q = E("document", "documentElement"), ie = /(?:iphone|ipod|ipad).*applewebkit/i.test(k), X = "process" == m(n.process), Pr = n, ge = i, ne = yn, Lr = q, jr = ye, s = ie, Ge = X, Ze = Pr.setImmediate, z = Pr.clearImmediate, Br = Pr.process, Je = Pr.MessageChannel, Mr = Pr.Dispatch, Ur = 0, Nr = {}; + try { + Tr = Pr.location + } catch (p) {} + function Gr(e) { + return function() { + Fr(e) + } + } + var Fr = function(e) { + var t; + Nr.hasOwnProperty(e) && (t = Nr[e], + delete Nr[e], + t()) + } + , et = function(e) { + Fr(e.data) + } + , Dr = function(e) { + Pr.postMessage(String(e), Tr.protocol + "//" + Tr.host) + }; + Ze && z || (Ze = function(e) { + for (var t = [], n = arguments.length, r = 1; r < n; ) + t.push(arguments[r++]); + return Nr[++Ur] = function() { + ("function" == typeof e ? e : Function(e)).apply(void 0, t) + } + , + Rr(Ur), + Ur + } + , + z = function(e) { + delete Nr[e] + } + , + Ge ? Rr = function(e) { + Br.nextTick(Gr(e)) + } + : Mr && Mr.now ? Rr = function(e) { + Mr.now(Gr(e)) + } + : Je && !s ? (Zr = (Qr = new Je).port2, + Qr.port1.onmessage = et, + Rr = ne(Zr.postMessage, Zr, 1)) : Pr.addEventListener && "function" == typeof postMessage && !Pr.importScripts && Tr && "file:" !== Tr.protocol && !ge(Dr) ? (Rr = Dr, + Pr.addEventListener("message", et, !1)) : Rr = "onreadystatechange"in jr("script") ? function(e) { + Lr.appendChild(jr("script")).onreadystatechange = function() { + Lr.removeChild(this), + Fr(e) + } + } + : function(e) { + setTimeout(Gr(e), 0) + } + ); + var qr, zr, Vr, Kr, Hr, Wr, $r, Yr, s = { + set: Ze, + clear: z + }, Je = n, Qr = /iphone|ipod|ipad/i.test(k) && void 0 !== Je.Pebble, ne = /web0s(?!.*chrome)/i.test(k), Jr = n, Zr = r.f, Xr = s.set, ge = ie, Dr = Qr, et = ne, ei = X, Ze = Jr.MutationObserver || Jr.WebKitMutationObserver, z = Jr.document, ti = Jr.process, Je = Jr.Promise, k = Zr(Jr, "queueMicrotask"), ie = k && k.value; + ie || (qr = function() { + var e, t; + for (ei && (e = ti.domain) && e.exit(); zr; ) { + t = zr.fn, + zr = zr.next; + try { + t() + } catch (e) { + throw zr ? Kr() : Vr = void 0, + e + } + } + Vr = void 0, + e && e.enter() + } + , + Kr = ge || ei || et || !Ze || !z ? !Dr && Je && Je.resolve ? (($r = Je.resolve(void 0)).constructor = Je, + Yr = $r.then, + function() { + Yr.call($r, qr) + } + ) : ei ? function() { + ti.nextTick(qr) + } + : function() { + Xr.call(Jr, qr) + } + : (Hr = !0, + Wr = z.createTextNode(""), + new Ze(qr).observe(Wr, { + characterData: !0 + }), + function() { + Wr.data = Hr = !Hr + } + )); + function ni(e) { + var n, r; + this.promise = new e(function(e, t) { + if (void 0 !== n || void 0 !== r) + throw TypeError("Bad Promise constructor"); + n = e, + r = t + } + ), + this.resolve = ri(n), + this.reject = ri(r) + } + var Qr = ie || function(e) { + e = { + fn: e, + next: void 0 + }; + Vr && (Vr.next = e), + zr || (zr = e, + Kr()), + Vr = e + } + , ne = {} + , ri = mn; + ne.f = function(e) { + return new ni(e) + } + ; + function ii(e, t, n) { + function r(e) { + return o && Er(o), + new er(!0,e) + } + function i(e) { + return h ? (yr(e), + p ? g(e[0], e[1], r) : g(e[0], e[1])) : p ? g(e, r) : g(e) + } + var o, a, s, c, u, d, l = n && n.that, h = !(!n || !n.AS_ENTRIES), f = !(!n || !n.IS_ITERATOR), p = !(!n || !n.INTERRUPTED), g = wr(t, l, 1 + h + p); + if (f) + o = e; + else { + if ("function" != typeof (f = Ar(e))) + throw TypeError("Target is not iterable"); + if (br(f)) { + for (a = 0, + s = _r(e.length); a < s; a++) + if ((c = i(e[a])) && c instanceof er) + return c; + return new er(!1) + } + o = f.call(e) + } + for (u = o.next; !(d = u.call(o)).done; ) { + try { + c = i(d.value) + } catch (e) { + throw Er(o), + e + } + if ("object" == typeof c && c && c instanceof er) + return c + } + return new er(!1) + } + var oi, ai, si, ci, ui = Te, di = f, li = ne, Zr = function(e, t) { + if (ui(e), + di(t) && t.constructor === e) + return t; + e = li.f(e); + return (0, + e.resolve)(t), + e.promise + }, hi = n, k = "object" == typeof window, ge = R, fi = n, et = E, Dr = Xe, Je = Ne.exports, z = ct, Ze = ht, ie = dt, pi = f, gi = mn, mi = Qe, Qe = qt, vi = b, yi = s.set, bi = Qr, _i = Zr, s = ne, wi = function(e) { + try { + return { + error: !1, + value: e() + } + } catch (e) { + return { + error: !0, + value: e + } + } + }, Qr = ft, ne = T, Ai = k, Ei = X, ki = O, xi = ce("species"), Si = "Promise", Di = Qr.get, Ti = Qr.set, Ri = Qr.getterFor(Si), X = Dr && Dr.prototype, Oi = Dr, Qr = X, Ci = fi.TypeError, Ii = fi.document, Pi = fi.process, Li = s.f, ji = Li, Bi = !!(Ii && Ii.createEvent && fi.dispatchEvent), Mi = "function" == typeof PromiseRejectionEvent, Ui = "unhandledrejection", Ni = !1, ne = ne(Si, function() { + var e = mi(Oi) + , t = e !== String(Oi); + if (!t && 66 === ki) + return !0; + if (51 <= ki && /native code/.test(e)) + return !1; + var n = new Oi(function(e) { + e(1) + } + ) + , e = function(e) { + e(function() {}, function() {}) + }; + return (n.constructor = {})[xi] = e, + !(Ni = n.then(function() {})instanceof e) || !t && Ai && !Mi + }), Qe = ne || !Qe(function(e) { + Oi.all(e).catch(function() {}) + }), Gi = function(e) { + var t; + return !(!pi(e) || "function" != typeof (t = e.then)) && t + }, Fi = function(h, f) { + var p; + h.notified || (h.notified = !0, + p = h.reactions, + bi(function() { + for (var r, e = h.value, t = 1 == h.state, n = 0; p.length > n; ) { + var i, o, a, s = p[n++], c = t ? s.ok : s.fail, u = s.resolve, d = s.reject, l = s.domain; + try { + c ? (t || (2 === h.rejection && function(t) { + yi.call(fi, function() { + var e = t.facade; + Ei ? Pi.emit("rejectionHandled", e) : qi("rejectionhandled", e, t.value) + }) + }(h), + h.rejection = 1), + !0 === c ? i = e : (l && l.enter(), + i = c(e), + l && (l.exit(), + a = !0)), + i === s.promise ? d(Ci("Promise-chain cycle")) : (o = Gi(i)) ? o.call(i, u, d) : u(i)) : d(e) + } catch (e) { + l && !a && l.exit(), + d(e) + } + } + h.reactions = [], + h.notified = !1, + f && !h.rejection && (r = h, + yi.call(fi, function() { + var e, t = r.facade, n = r.value; + if (zi(r) && (e = wi(function() { + Ei ? Pi.emit("unhandledRejection", n, t) : qi(Ui, t, n) + }), + r.rejection = Ei || zi(r) ? 2 : 1, + e.error)) + throw e.value + })) + })) + }, qi = function(e, t, n) { + var r, i; + Bi ? ((r = Ii.createEvent("Event")).promise = t, + r.reason = n, + r.initEvent(e, !1, !0), + fi.dispatchEvent(r)) : r = { + promise: t, + reason: n + }, + !Mi && (i = fi["on" + e]) ? i(r) : e === Ui && function(e, t) { + var n = hi.console; + n && n.error && (1 === arguments.length ? n.error(e) : n.error(e, t)) + }("Unhandled promise rejection", n) + }, zi = function(e) { + return 1 !== e.rejection && !e.parent + }, Vi = function(t, n, r) { + return function(e) { + t(n, e, r) + } + }, Ki = function(e, t, n) { + e.done || (e.done = !0, + (e = n ? n : e).value = t, + e.state = 2, + Fi(e, !0)) + }, Hi = function(n, e, t) { + if (!n.done) { + n.done = !0, + t && (n = t); + try { + if (n.facade === e) + throw Ci("Promise can't be resolved itself"); + var r = Gi(e); + r ? bi(function() { + var t = { + done: !1 + }; + try { + r.call(e, Vi(Hi, t, n), Vi(Ki, t, n)) + } catch (e) { + Ki(t, e, n) + } + }) : (n.value = e, + n.state = 1, + Fi(n, !1)) + } catch (e) { + Ki({ + done: !1 + }, e, n) + } + } + }; + if (ne && (Qr = (Oi = function(e) { + (function(e, t, n) { + if (!(e instanceof t)) + throw TypeError("Incorrect " + (n ? n + " " : "") + "invocation") + } + )(this, Oi, Si), + gi(e), + oi.call(this); + var t = Di(this); + try { + e(Vi(Hi, t), Vi(Ki, t)) + } catch (e) { + Ki(t, e) + } + } + ).prototype, + (oi = function(e) { + Ti(this, { + type: Si, + done: !1, + notified: !1, + parent: !1, + reactions: [], + rejection: !1, + state: 0, + value: void 0 + }) + } + ).prototype = function(e, t, n) { + for (var r in t) + tr(e, r, t[r], n); + return e + }(Qr, { + then: function(e, t) { + var n = Ri(this) + , r = Li(vi(this, Oi)); + return r.ok = "function" != typeof e || e, + r.fail = "function" == typeof t && t, + r.domain = Ei ? Pi.domain : void 0, + n.parent = !0, + n.reactions.push(r), + 0 != n.state && Fi(n, !1), + r.promise + }, + catch: function(e) { + return this.then(void 0, e) + } + }), + ai = function() { + var e = new oi + , t = Di(e); + this.promise = e, + this.resolve = Vi(Hi, t), + this.reject = Vi(Ki, t) + } + , + s.f = Li = function(e) { + return e === Oi || e === si ? new ai : ji(e) + } + , + "function" == typeof Dr && X !== Object.prototype)) { + ci = X.then, + Ni || (Je(X, "then", function(e, t) { + var n = this; + return new Oi(function(e, t) { + ci.call(n, e, t) + } + ).then(e, t) + }, { + unsafe: !0 + }), + Je(X, "catch", Qr.catch, { + unsafe: !0 + })); + try { + delete X.constructor + } catch (p) {} + z && z(X, Qr) + } + ge({ + global: !0, + wrap: !0, + forced: ne + }, { + Promise: Oi + }), + Ze(Oi, Si, !1), + ie(Si), + si = et(Si), + ge({ + target: Si, + stat: !0, + forced: ne + }, { + reject: function(e) { + var t = Li(this); + return t.reject.call(void 0, e), + t.promise + } + }), + ge({ + target: Si, + stat: !0, + forced: ne + }, { + resolve: function(e) { + return _i(this, e) + } + }), + ge({ + target: Si, + stat: !0, + forced: Qe + }, { + all: function(e) { + var s = this + , t = Li(s) + , c = t.resolve + , u = t.reject + , n = wi(function() { + var r = gi(s.resolve) + , i = [] + , o = 0 + , a = 1; + ii(e, function(e) { + var t = o++ + , n = !1; + i.push(void 0), + a++, + r.call(s, e).then(function(e) { + n || (n = !0, + i[t] = e, + --a || c(i)) + }, u) + }), + --a || c(i) + }); + return n.error && u(n.value), + t.promise + }, + race: function(e) { + var n = this + , r = Li(n) + , i = r.reject + , t = wi(function() { + var t = gi(n.resolve); + ii(e, function(e) { + t.call(n, e).then(r.resolve, i) + }) + }); + return t.error && i(t.value), + r.promise + } + }); + var Je = R + , Wi = Xe + , z = i + , $i = E + , Yi = b + , Qi = Zr + , X = Ne.exports; + Je({ + target: "Promise", + proto: !0, + real: !0, + forced: !!Wi && z(function() { + Wi.prototype.finally.call({ + then: function() {} + }, function() {}) + }) + }, { + finally: function(t) { + var n = Yi(this, $i("Promise")) + , e = "function" == typeof t; + return this.then(e ? function(e) { + return Qi(n, t()).then(function() { + return e + }) + } + : t, e ? function(e) { + return Qi(n, t()).then(function() { + throw e + }) + } + : t) + } + }), + "function" == typeof Wi && (bo = $i("Promise").prototype.finally, + Wi.prototype.finally !== bo && X(Wi.prototype, "finally", bo, { + unsafe: !0 + })); + function Ji(e, t) { + return RegExp(e, t) + } + var Zi = B + , Qr = function(e) { + if (Zi(e)) + throw TypeError("Cannot convert a Symbol value to a string"); + return String(e) + } + , Xi = Te + , Ze = function() { + var e = Xi(this) + , t = ""; + return e.global && (t += "g"), + e.ignoreCase && (t += "i"), + e.multiline && (t += "m"), + e.dotAll && (t += "s"), + e.unicode && (t += "u"), + e.sticky && (t += "y"), + t + } + , ie = {} + , et = i; + ie.UNSUPPORTED_Y = et(function() { + var e = Ji("a", "y"); + return e.lastIndex = 2, + null != e.exec("abcd") + }), + ie.BROKEN_CARET = et(function() { + var e = Ji("^r", "gy"); + return e.lastIndex = 2, + null != e.exec("str") + }); + function eo() {} + function to(e) { + e.write(fo("")), + e.close(); + var t = e.parentWindow.Object; + return e = null, + t + } + var no, ro = Re, io = Te, oo = x, ne = o ? Object.defineProperties : function(e, t) { + io(e); + for (var n, r = oo(t), i = r.length, o = 0; o < i; ) + ro.f(e, n = r[o++], t[n]); + return e + } + , ao = Te, so = ne, co = e, ge = it, uo = q, lo = ye, ho = rt("IE_PROTO"), fo = function(e) { + return " + + diff --git a/vex8/version.js b/vex8/version.js new file mode 100644 index 000000000..a16238072 --- /dev/null +++ b/vex8/version.js @@ -0,0 +1,2 @@ +version="tc-5"; +libs=[]; \ No newline at end of file diff --git a/vex8/vex8.min.js b/vex8/vex8.min.js new file mode 100644 index 000000000..5b6f0144e --- /dev/null +++ b/vex8/vex8.min.js @@ -0,0 +1 @@ +function x(){function h(t,e){this.x=t||0,this.y=e||0}function t(t,e){this.pos=t||new h,this.r=e||0}function s(t,e){this.pos=t||new h,this.angle=0,this.offset=new h,this.u(e||[])}function l(t,e,i){this.pos=t||new h,this.w=e||0,this.h=i||0}function e(){this.b=this.a=null,this.overlapN=new h,this.overlapV=new h,this.clear()}function u(t,e,i){for(var s=Number.MAX_VALUE,n=-Number.MAX_VALUE,r=t.length,o=0;oa[1]||a[0]>o[1]?(v.push(t),d.push(o),d.push(a),!0):(r&&(o[0]a[1]?(i=o[0]-a[1],r.aInB=!1):i=(i=o[1]-a[0])<(s=a[1]-o[0])?i:-s),(s=Math.abs(i))r&&(i.aInB=!1),y(h,l));if(-1===g){if(h.c(t.edges[d]),1===(g=y(h,c=v.pop().c(s).sub(o[d])))){if(n<(g=l.j()))return v.push(s),v.push(h),v.push(l),v.push(c),!1;i&&(i.bInA=!1,f=l.normalize(),p=n-g)}v.push(c)}else if(1===g){if(h.c(t.edges[c]),l.c(s).sub(o[c]),-1===(g=y(h,l))){if(n<(g=l.j()))return v.push(s),v.push(h),v.push(l),!1;i&&(i.bInA=!1,f=l.normalize(),p=n-g)}}else{if(c=h.m().normalize(),g=l.f(c),d=Math.abs(g),0n&&(n=a.x),a.yr&&(r=a.y)}return new l(this.pos.clone().add(new h(i,s)),n-i,r-s).l()},(r.Box=l).prototype.toPolygon=l.prototype.l=function(){var t=this.pos,e=this.w,i=this.h;return new s(new h(t.x,t.y),[new h,new h(e,0),new h(e,i),new h(0,i)])},(r.Response=e).prototype.clear=e.prototype.clear=function(){return this.bInA=this.aInB=!0,this.overlap=Number.MAX_VALUE,this};for(var v=[],o=0;o<10;o++)v.push(new h);for(var d=[],o=0;o<5;o++)d.push([]);var a=new e,p=new l(new h,1e-6,1e-6).l();return r.isSeparatingAxis=c,r.pointInCircle=function(t,e){var t=v.pop().c(t).sub(e.pos),e=e.r*e.r,i=t.g();return v.push(t),i<=e},r.pointInPolygon=function(t,e){return p.pos.c(t),a.clear(),i(p,e,a)&&a.aInB},r.testCircleCircle=function(t,e,i){var s=v.pop().c(e.pos).sub(t.pos),n=t.r+e.r,r=s.g();return n*n{return s={6659:t=>{"use strict";var s=Object.prototype.hasOwnProperty,p="~";function i(){}function r(t,e,i){this.fn=t,this.context=e,this.once=i||!1}function n(t,e,i,s,n){if("function"!=typeof i)throw new TypeError("The listener must be a function");i=new r(i,s||t,n),s=p?p+e:e;return t._events[s]?t._events[s].fn?t._events[s]=[t._events[s],i]:t._events[s].push(i):(t._events[s]=i,t._eventsCount++),t}function h(t,e){0==--t._eventsCount?t._events=new i:delete t._events[e]}function e(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(p=!1)),e.prototype.eventNames=function(){var t,e,i=[];if(0===this._eventsCount)return i;for(e in t=this._events)s.call(t,e)&&i.push(p?e.slice(1):e);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},e.prototype.listeners=function(t){var t=p?p+t:t,e=this._events[t];if(!e)return[];if(e.fn)return[e.fn];for(var i=0,s=e.length,n=new Array(s);i{var a=i(82590);t.exports=function(t,e,i,s){for(var n=t[0],r=1;r{var r=i(6124);t.exports=function(t,e,i,s,n){return r(t,"angle",e,i,s,n)}},22015:t=>{t.exports=function(t,e,i){for(var s=0;s{t.exports=function(t,e,i){for(var s=i=void 0===i?0:i;s{t.exports=function(t,e,i){for(var s=i=void 0===i?0:i;s{var y=i(40327),v=i(84093),m=i(72632),s=i(72283),x=new(i(71030))({sys:{queueDepthSort:s,events:{once:s}}},0,0,1,1).setOrigin(0,0);t.exports=function(t,e){var i=(e=void 0===e?{}:e).hasOwnProperty("width"),s=e.hasOwnProperty("height"),n=m(e,"width",-1),r=m(e,"height",-1),o=m(e,"cellWidth",1),a=m(e,"cellHeight",o),h=m(e,"position",v.TOP_LEFT),l=m(e,"x",0),u=m(e,"y",0),c=0,d=0,p=n*o,f=r*a;x.setPosition(l,u),x.setSize(o,a);for(var g=0;g{var r=i(6124);t.exports=function(t,e,i,s,n){return r(t,"alpha",e,i,s,n)}},3877:(t,e,i)=>{var r=i(6124);t.exports=function(t,e,i,s,n){return r(t,"x",e,i,s,n)}},71020:(t,e,i)=>{var a=i(6124);t.exports=function(t,e,i,s,n,r,o){return null==i&&(i=e),a(t,"x",e,s,r,o),a(t,"y",i,n,r,o)}},28970:(t,e,i)=>{var r=i(6124);t.exports=function(t,e,i,s,n){return r(t,"y",e,i,s,n)}},82249:t=>{t.exports=function(t,e,i,s){for(var n=i=void 0===i?0:i,r=((s=void 0===s?6.28:s)-i)/t.length,o=e.x,a=e.y,h=e.radius,l=0;l{t.exports=function(t,e,i,s){for(var n=i=void 0===i?0:i,r=((s=void 0===s?6.28:s)-i)/t.length,o=e.width/2,a=e.height/2,h=0;h{var o=i(8570);t.exports=function(t,e){for(var i=o(e,t.length),s=0;s{var r=i(40053),o=i(77640),a=i(38487);t.exports=function(t,e,i){void 0===i&&(i=0);var s=r(e,!1,t.length);0{var u=i(58813);t.exports=function(t,e,i){var s=u({x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2},i),n=u({x1:e.x2,y1:e.y2,x2:e.x3,y2:e.y3},i),e=u({x1:e.x3,y1:e.y3,x2:e.x1,y2:e.y1},i);s.pop(),n.pop(),e.pop();for(var r=(s=s.concat(n,e)).length/t.length,o=0,a=0;a{t.exports=function(t,e,i){for(var s=0;s{t.exports=function(t,e,i,s,n,r){void 0===s&&(s=0),void 0===n&&(n=0);var o,a=0,h=t.length;if(1===(r=void 0===r?1:r))for(o=n;o{t.exports=function(t,e,i,s,n,r){void 0===s&&(s=0),void 0===n&&(n=0);var o,a=0,h=t.length;if(1===(r=void 0===r?1:r))for(o=n;o{var s=i(30977);t.exports=function(t,e){for(var i=0;i{var s=i(72006);t.exports=function(t,e){for(var i=0;i{var s=i(74077);t.exports=function(t,e){for(var i=0;i{var s=i(30001);t.exports=function(t,e){for(var i=0;i{var s=i(99761);t.exports=function(t,e){for(var i=0;i{var r=i(6124);t.exports=function(t,e,i,s,n){return r(t,"rotation",e,i,s,n)}},87299:(t,e,i)=>{var a=i(72395),h=i(53996);t.exports=function(t,e,i){for(var s=e.x,n=e.y,r=0;r{var a=i(72395);t.exports=function(t,e,i,s){var n=e.x,r=e.y;if(0!==s)for(var o=0;o{var r=i(6124);t.exports=function(t,e,i,s,n){return r(t,"scaleX",e,i,s,n)}},51449:(t,e,i)=>{var a=i(6124);t.exports=function(t,e,i,s,n,r,o){return null==i&&(i=e),a(t,"scaleX",e,s,r,o),a(t,"scaleY",i,n,r,o)}},64895:(t,e,i)=>{var r=i(6124);t.exports=function(t,e,i,s,n){return r(t,"scaleY",e,i,s,n)}},30329:(t,e,i)=>{var r=i(23646);t.exports=function(t,e,i,s,n){return r(t,"alpha",e,i,s,n)}},43954:(t,e,i)=>{var n=i(23646);t.exports=function(t,e,i,s){return n(t,"blendMode",e,0,i,s)}},70688:(t,e,i)=>{var r=i(23646);t.exports=function(t,e,i,s,n){return r(t,"depth",e,i,s,n)}},8314:t=>{t.exports=function(t,e,i){for(var s=0;s{var a=i(23646);t.exports=function(t,e,i,s,n,r,o){return null==i&&(i=e),a(t,"originX",e,s,r,o),a(t,"originY",i,n,r,o),t.forEach(function(t){t.updateDisplayOrigin()}),t}},38767:(t,e,i)=>{var r=i(23646);t.exports=function(t,e,i,s,n){return r(t,"rotation",e,i,s,n)}},18584:(t,e,i)=>{var a=i(23646);t.exports=function(t,e,i,s,n,r,o){return null==i&&(i=e),a(t,"scaleX",e,s,r,o),a(t,"scaleY",i,n,r,o)}},17381:(t,e,i)=>{var r=i(23646);t.exports=function(t,e,i,s,n){return r(t,"scaleX",e,i,s,n)}},74370:(t,e,i)=>{var r=i(23646);t.exports=function(t,e,i,s,n){return r(t,"scaleY",e,i,s,n)}},27773:(t,e,i)=>{var a=i(23646);t.exports=function(t,e,i,s,n,r,o){return null==i&&(i=e),a(t,"scrollFactorX",e,s,r,o),a(t,"scrollFactorY",i,n,r,o)}},75257:(t,e,i)=>{var r=i(23646);t.exports=function(t,e,i,s,n){return r(t,"scrollFactorX",e,i,s,n)}},54512:(t,e,i)=>{var r=i(23646);t.exports=function(t,e,i,s,n){return r(t,"scrollFactorY",e,i,s,n)}},69423:t=>{t.exports=function(t,e,i,s,n){for(var r=0;r{var n=i(23646);t.exports=function(t,e,i,s){return n(t,"visible",e,0,i,s)}},94833:(t,e,i)=>{var r=i(23646);t.exports=function(t,e,i,s,n){return r(t,"x",e,i,s,n)}},14284:(t,e,i)=>{var a=i(23646);t.exports=function(t,e,i,s,n,r,o){return null==i&&(i=e),a(t,"x",e,s,r,o),a(t,"y",i,n,r,o)}},96574:(t,e,i)=>{var r=i(23646);t.exports=function(t,e,i,s,n){return r(t,"y",e,i,s,n)}},74086:(t,e,i)=>{var f=i(93736);t.exports=function(t,e,i,s,n){void 0===s&&(s=0),void 0===n&&(n=new f);var r,o,a=t.length;if(1===a)r=t[0].x,o=t[0].y,t[0].x=e,t[0].y=i;else{var h=1,l=0;0===s&&(l=a-1,h=a-2),r=t[l].x,o=t[l].y,t[l].x=e,t[l].y=i;for(var u,c,d,p=0;p{var s=i(18592);t.exports=function(t){return s(t)}},1558:(t,e,i)=>{var a=i(5514);t.exports=function(t,e,i,s,n){void 0===n&&(n=!1);var r,o=Math.abs(s-i)/t.length;if(n)for(r=0;r{var a=i(87736);t.exports=function(t,e,i,s,n){void 0===n&&(n=!1);var r,o=Math.abs(s-i)/t.length;if(n)for(r=0;r{t.exports=function(t,e,i,s,n){if(void 0===n&&(n=!1),0!==t.length)if(1===t.length)n?t[0][e]+=(s+i)/2:t[0][e]=(s+i)/2;else{var r,o=Math.abs(s-i)/(t.length-1);if(n)for(r=0;r{t.exports=function(t){for(var e=0;e{var r=i(1071);t.exports=function(t,e,i){void 0===i&&(i=0);for(var s=0;s{t.exports={AlignTo:i(62270),Angle:i(61148),Call:i(22015),GetFirst:i(31060),GetLast:i(52367),GridAlign:i(12673),IncAlpha:i(691),IncX:i(3877),IncXY:i(71020),IncY:i(28970),PlaceOnCircle:i(82249),PlaceOnEllipse:i(30285),PlaceOnLine:i(61557),PlaceOnRectangle:i(63549),PlaceOnTriangle:i(51629),PlayAnimation:i(1045),PropertyValueInc:i(6124),PropertyValueSet:i(23646),RandomCircle:i(4392),RandomEllipse:i(94985),RandomLine:i(63305),RandomRectangle:i(90739),RandomTriangle:i(91417),Rotate:i(26182),RotateAround:i(87299),RotateAroundDistance:i(92194),ScaleX:i(30363),ScaleXY:i(51449),ScaleY:i(64895),SetAlpha:i(30329),SetBlendMode:i(43954),SetDepth:i(70688),SetHitArea:i(8314),SetOrigin:i(12894),SetRotation:i(38767),SetScale:i(18584),SetScaleX:i(17381),SetScaleY:i(74370),SetScrollFactor:i(27773),SetScrollFactorX:i(75257),SetScrollFactorY:i(54512),SetTint:i(69423),SetVisible:i(58291),SetX:i(94833),SetXY:i(14284),SetY:i(96574),ShiftPosition:i(74086),Shuffle:i(86347),SmootherStep:i(9938),SmoothStep:i(1558),Spread:i(71060),ToggleVisible:i(11207),WrapInRectangle:i(24404)}},85463:(t,e,i)=>{var s=i(82897),n=i(56694),r=i(16938),o=i(2406),y=i(71519),v=i(10850),m=i(28834),i=new n({initialize:function(t,e,i){this.manager=t,this.key=e,this.type="frame",this.frames=this.getFrames(t.textureManager,v(i,"frames",[]),v(i,"defaultTextureKey",null),v(i,"sortFrames",!0)),this.frameRate=v(i,"frameRate",null),this.duration=v(i,"duration",null),this.msPerFrame,this.skipMissedFrames=v(i,"skipMissedFrames",!0),this.delay=v(i,"delay",0),this.repeat=v(i,"repeat",0),this.repeatDelay=v(i,"repeatDelay",0),this.yoyo=v(i,"yoyo",!1),this.showBeforeDelay=v(i,"showBeforeDelay",!1),this.showOnStart=v(i,"showOnStart",!1),this.hideOnComplete=v(i,"hideOnComplete",!1),this.paused=!1,this.calculateDuration(this,this.getTotalFrames(),this.duration,this.frameRate),this.manager.on&&(this.manager.on(r.PAUSE_ALL,this.pause,this),this.manager.on(r.RESUME_ALL,this.resume,this))},getTotalFrames:function(){return this.frames.length},calculateDuration:function(t,e,i,s){null===i&&null===s?(t.frameRate=24,t.duration=24/e*1e3):i&&null===s?(t.duration=i,t.frameRate=e/(i/1e3)):(t.frameRate=s,t.duration=e/s*1e3),t.msPerFrame=1e3/t.frameRate},addFrame:function(t){return this.addFrameAt(this.frames.length,t)},addFrameAt:function(t,e){var i,e=this.getFrames(this.manager.textureManager,e);return 0{i=new(i(56694))({initialize:function(t,e,i,s,n){void 0===n&&(n=!1),this.textureKey=t,this.textureFrame=e,this.index=i,this.frame=s,this.isFirst=!1,this.isLast=!1,this.prevFrame=null,this.nextFrame=null,this.duration=0,this.progress=0,this.isKeyFrame=n},toJSON:function(){return{key:this.textureKey,frame:this.textureFrame,duration:this.duration,keyframe:this.isKeyFrame}},destroy:function(){this.frame=void 0}});t.exports=i},90249:(t,e,i)=>{var s=i(85463),n=i(56694),r=i(33885),o=i(6659),a=i(16938),h=i(97081),v=i(72632),m=i(10850),x=i(83392),d=i(13401),p=i(76400),i=new n({Extends:o,initialize:function(t){o.call(this),this.game=t,this.textureManager=null,this.globalTimeScale=1,this.anims=new r,this.mixes=new r,this.paused=!1,this.name="AnimationManager",t.events.once(h.BOOT,this.boot,this)},boot:function(){this.textureManager=this.game.textures,this.game.events.once(h.DESTROY,this.destroy,this)},addMix:function(t,e,i){var s=this.anims,n=this.mixes,t="string"==typeof t?t:t.key,e="string"==typeof e?e:e.key;return s.has(t)&&s.has(e)&&((s=(s=n.get(t))||{})[e]=i,n.set(t,s)),this},removeMix:function(t,e){var i=this.mixes,t="string"==typeof t?t:t.key,s=i.get(t);return s&&(e?(e="string"==typeof e?e:e.key,s.hasOwnProperty(e)&&delete s[e]):i.delete(t)),this},getMix:function(t,e){var i=this.mixes,t="string"==typeof t?t:t.key,e="string"==typeof e?e:e.key,i=i.get(t);return i&&i.hasOwnProperty(e)?i[e]:0},add:function(t,e){return this.anims.has(t)||(e.key=t,this.anims.set(t,e),this.emit(a.ADD_ANIMATION,t,e)),this},exists:function(t){return this.anims.has(t)},createFromAseprite:function(c,d,p){var f,t,g,y=[],e=this.game.cache.json.get(c);return e&&(f=this,t=m(e,"meta",null),g=m(e,"frames",null),t)&&g&&m(t,"frameTags",[]).forEach(function(t){var e=[],i=v(t,"name",null),s=v(t,"from",0),n=v(t,"to",0),t=v(t,"direction","forward");if(i&&(!d||-1{var s=i(56694),n=i(33885),r=i(72632),o=i(16938),a=i(85463),i=new s({initialize:function(t){this.parent=t,this.animationManager=t.scene.sys.anims,this.animationManager.on(o.REMOVE_ANIMATION,this.globalRemove,this),this.textureManager=this.animationManager.textureManager,this.anims=null,this.isPlaying=!1,this.hasStarted=!1,this.currentAnim=null,this.currentFrame=null,this.nextAnim=null,this.nextAnimsQueue=[],this.timeScale=1,this.frameRate=0,this.duration=0,this.msPerFrame=0,this.skipMissedFrames=!0,this.delay=0,this.repeat=0,this.repeatDelay=0,this.yoyo=!1,this.showBeforeDelay=!1,this.showOnStart=!1,this.hideOnComplete=!1,this.forward=!0,this.inReverse=!1,this.accumulator=0,this.nextTick=0,this.delayCounter=0,this.repeatCounter=0,this.pendingRepeat=!1,this._paused=!1,this._wasPlaying=!1,this._pendingStop=0,this._pendingStopValue},chain:function(t){var e=this.parent;if(void 0===t)return this.nextAnimsQueue.length=0,this.nextAnim=null,e;Array.isArray(t)||(t=[t]);for(var i=0;is.getTotalFrames()&&(n=0),i=s.frames[n],0!==n||this.forward||(i=s.getLastFrame()),this.currentFrame=i),this.parent},pause:function(t){return this._paused||(this._paused=!0,this._wasPlaying=this.isPlaying,this.isPlaying=!1),void 0!==t&&this.setCurrentFrame(t),this.parent},resume:function(t){return this._paused&&(this._paused=!1,this.isPlaying=this._wasPlaying),void 0!==t&&this.setCurrentFrame(t),this.parent},playAfterDelay:function(t,e){var i,s;return this.isPlaying?(i=this.nextAnim,s=this.nextAnimsQueue,i&&s.unshift(i),this.nextAnim=t,this._pendingStop=1,this._pendingStopValue=e):(this.delayCounter=e,this.play(t,!0)),this.parent},playAfterRepeat:function(t,e){var i,s;return void 0===e&&(e=1),this.isPlaying?(i=this.nextAnim,s=this.nextAnimsQueue,i&&s.unshift(i),-1!==this.repeatCounter&&e>this.repeatCounter&&(e=this.repeatCounter),this.nextAnim=t,this._pendingStop=2,this._pendingStopValue=e):this.play(t),this.parent},play:function(t,e){var i=this.currentAnim,s=this.parent,n="string"==typeof t?t:t.key;if((e=void 0===e?!1:e)&&this.isPlaying&&i.key===n)return s;if(i&&this.isPlaying){e=this.animationManager.getMix(i.key,t);if(0this.repeatCounter&&(t=this.repeatCounter),this._pendingStop=2,this._pendingStopValue=t,this.parent},stopOnFrame:function(t){return this._pendingStop=3,this._pendingStopValue=t,this.parent},getTotalFrames:function(){return this.currentAnim?this.currentAnim.getTotalFrames():0},update:function(t,e){var i=this.currentAnim;if(this.isPlaying&&i&&!i.paused){if(this.accumulator+=e*this.timeScale,1===this._pendingStop&&(this._pendingStopValue-=e,this._pendingStopValue<=0))return this.stop();if(this.hasStarted){if(this.accumulator>=this.nextTick&&(this.forward?i.nextFrame(this):i.previousFrame(this),this.isPlaying)&&0===this._pendingStop&&this.skipMissedFrames&&this.accumulator>this.nextTick)for(var s=0;this.forward?i.nextFrame(this):i.previousFrame(this),s++,this.isPlaying&&this.accumulator>this.nextTick&&s<60;);}else this.accumulator>=this.delayCounter&&(this.accumulator-=this.delayCounter,this.handleStart())}},setCurrentFrame:function(t){var e=this.parent;return this.currentFrame=t,e.texture=t.frame.texture,e.frame=t.frame,e.isCropped&&e.frame.updateCropUVs(e._crop,e.flipX,e.flipY),t.setAlpha&&(e.alpha=t.alpha),e.setSizeToFrame(),e._originComponent&&(t.frame.customPivot?e.setOrigin(t.frame.pivotX,t.frame.pivotY):e.updateDisplayOrigin()),this.isPlaying&&this.hasStarted&&(this.emitEvents(o.ANIMATION_UPDATE),3===this._pendingStop)&&this._pendingStopValue===t&&this.stop(),e},nextFrame:function(){return this.currentAnim&&this.currentAnim.nextFrame(this),this.parent},previousFrame:function(){return this.currentAnim&&this.currentAnim.previousFrame(this),this.parent},get:function(t){return this.anims?this.anims.get(t):null},exists:function(t){return!!this.anims&&this.anims.has(t)},create:function(t){var e=t.key,i=!1;return e&&!(i=this.get(e))&&(i=new a(this,e,t),this.anims||(this.anims=new n),this.anims.set(e,i)),i},createFromAseprite:function(t,e){return this.animationManager.createFromAseprite(t,e,this.parent)},generateFrameNames:function(t,e){return this.animationManager.generateFrameNames(t,e)},generateFrameNumbers:function(t,e){return this.animationManager.generateFrameNumbers(t,e)},remove:function(t){var e=this.get(t);return e&&(this.currentAnim===e&&this.stop(),this.anims.delete(t)),e},destroy:function(){this.animationManager.off(o.REMOVE_ANIMATION,this.globalRemove,this),this.anims&&this.anims.clear(),this.animationManager=null,this.parent=null,this.nextAnim=null,this.nextAnimsQueue.length=0,this.currentAnim=null,this.currentFrame=null},isPaused:{get:function(){return this._paused}}});t.exports=i},44509:t=>{t.exports="add"},84563:t=>{t.exports="animationcomplete"},61586:t=>{t.exports="animationcomplete-"},72175:t=>{t.exports="animationrepeat"},568:t=>{t.exports="animationrestart"},37690:t=>{t.exports="animationstart"},58525:t=>{t.exports="animationstop"},5243:t=>{t.exports="animationupdate"},10598:t=>{t.exports="pauseall"},4860:t=>{t.exports="remove"},31865:t=>{t.exports="resumeall"},16938:(t,e,i)=>{t.exports={ADD_ANIMATION:i(44509),ANIMATION_COMPLETE:i(84563),ANIMATION_COMPLETE_KEY:i(61586),ANIMATION_REPEAT:i(72175),ANIMATION_RESTART:i(568),ANIMATION_START:i(37690),ANIMATION_STOP:i(58525),ANIMATION_UPDATE:i(5243),PAUSE_ALL:i(10598),REMOVE_ANIMATION:i(4860),RESUME_ALL:i(31865)}},13517:(t,e,i)=>{t.exports={Animation:i(85463),AnimationFrame:i(71519),AnimationManager:i(90249),AnimationState:i(16569),Events:i(16938)}},23740:(t,e,i)=>{var s=i(56694),n=i(33885),r=i(6659),o=i(69773),i=new s({initialize:function(){this.entries=new n,this.events=new r},add:function(t,e){return this.entries.set(t,e),this.events.emit(o.ADD,this,t,e),this},has:function(t){return this.entries.has(t)},exists:function(t){return this.entries.has(t)},get:function(t){return this.entries.get(t)},remove:function(t){var e=this.get(t);return e&&(this.entries.delete(t),this.events.emit(o.REMOVE,this,t,e.data)),this},getKeys:function(){return this.entries.keys()},destroy:function(){this.entries.clear(),this.events.removeAllListeners(),this.entries=null,this.events=null}});t.exports=i},43474:(t,e,i)=>{var s=i(23740),n=i(56694),r=i(97081),i=new n({initialize:function(t){this.game=t,this.binary=new s,this.bitmapFont=new s,this.json=new s,this.physics=new s,this.shader=new s,this.audio=new s,this.video=new s,this.text=new s,this.html=new s,this.obj=new s,this.tilemap=new s,this.xml=new s,this.custom={},this.game.events.once(r.DESTROY,this.destroy,this)},addCustom:function(t){return this.custom.hasOwnProperty(t)||(this.custom[t]=new s),this.custom[t]},destroy:function(){for(var t,e=["binary","bitmapFont","json","physics","shader","audio","video","text","html","obj","tilemap","xml"],i=0;i{t.exports="add"},75968:t=>{t.exports="remove"},69773:(t,e,i)=>{t.exports={ADD:i(94762),REMOVE:i(75968)}},45820:(t,e,i)=>{t.exports={BaseCache:i(23740),CacheManager:i(43474),Events:i(69773)}},51052:(t,e,i)=>{var s=i(56694),n=i(64937),r=i(75606),o=i(6659),a=i(89787),h=i(74118),l=i(69360),u=i(93222),g=i(93736),i=new s({Extends:o,Mixins:[n.AlphaSingle,n.Visible],initialize:function(t,e,i,s){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=0),o.call(this),this.scene,this.sceneManager,this.scaleManager,this.cameraManager,this.id=0,this.name="",this.roundPixels=!1,this.useBounds=!1,this.worldView=new h,this.dirty=!0,this._x=t,this._y=e,this._width=i,this._height=s,this._bounds=new h,this._scrollX=0,this._scrollY=0,this._zoomX=1,this._zoomY=1,this._rotation=0,this.matrix=new l,this.transparent=!0,this.backgroundColor=u("rgba(0,0,0,0)"),this.disableCull=!1,this.culledObjects=[],this.midPoint=new g(i/2,s/2),this.originX=.5,this.originY=.5,this._customViewport=!1,this.mask=null,this._maskCamera=null,this.renderList=[],this.isSceneCamera=!0},addToRenderList:function(t){this.renderList.push(t)},setOrigin:function(t,e){return void 0===t&&(t=.5),void 0===e&&(e=t),this.originX=t,this.originY=e,this},getScroll:function(t,e,i){void 0===i&&(i=new g);var s=.5*this.width,n=.5*this.height;return i.x=t-s,i.y=e-n,this.useBounds&&(i.x=this.clampX(i.x),i.y=this.clampY(i.y)),i},centerOnX:function(t){var e=.5*this.width;return this.midPoint.x=t,this.scrollX=t-e,this.useBounds&&(this.scrollX=this.clampX(this.scrollX)),this},centerOnY:function(t){var e=.5*this.height;return this.midPoint.y=t,this.scrollY=t-e,this.useBounds&&(this.scrollY=this.clampY(this.scrollY)),this},centerOn:function(t,e){return this.centerOnX(t),this.centerOnY(e),this},centerToBounds:function(){var t,e,i;return this.useBounds&&(t=this._bounds,e=.5*this.width,i=.5*this.height,this.midPoint.set(t.centerX,t.centerY),this.scrollX=t.centerX-e,this.scrollY=t.centerY-i),this},centerToSize:function(){return this.scrollX=.5*this.width,this.scrollY=.5*this.height,this},cull:function(t){if(this.disableCull)return t;var e=this.matrix.matrix,i=e[0],s=e[1],n=e[2],r=e[3];if(!(i*r-s*n))return t;for(var o=e[4],a=e[5],h=this.scrollX,l=this.scrollY,e=this.width,u=this.height,c=this.y,d=c+u,p=this.x,f=p+e,g=this.culledObjects,y=t.length,v=g.length=0;v{var n=i(51052),y=i(79993),o=i(82897),s=i(56694),r=i(64937),a=i(53030),v=i(89787),m=i(42798),h=i(74118),l=i(93736),i=new s({Extends:n,Mixins:[r.PostPipeline],initialize:function(t,e,i,s){n.call(this,t,e,i,s),this.initPostPipeline(),this.inputEnabled=!0,this.fadeEffect=new a.Fade(this),this.flashEffect=new a.Flash(this),this.shakeEffect=new a.Shake(this),this.panEffect=new a.Pan(this),this.rotateToEffect=new a.RotateTo(this),this.zoomEffect=new a.Zoom(this),this.lerp=new l(1,1),this.followOffset=new l,this.deadzone=null,this._follow=null},setDeadzone:function(t,e){var i,s;return void 0===t?this.deadzone=null:(this.deadzone?(this.deadzone.width=t,this.deadzone.height=e):this.deadzone=new h(0,0,t,e),this._follow&&(t=this.width/2,e=this.height/2,i=this._follow.x-this.followOffset.x,s=this._follow.y-this.followOffset.y,this.midPoint.set(i,s),this.scrollX=i-t,this.scrollY=s-e),y(this.deadzone,this.midPoint.x,this.midPoint.y)),this},fadeIn:function(t,e,i,s,n,r){return this.fadeEffect.start(!1,t,e,i,s,!0,n,r)},fadeOut:function(t,e,i,s,n,r){return this.fadeEffect.start(!0,t,e,i,s,!0,n,r)},fadeFrom:function(t,e,i,s,n,r,o){return this.fadeEffect.start(!1,t,e,i,s,n,r,o)},fade:function(t,e,i,s,n,r,o){return this.fadeEffect.start(!0,t,e,i,s,n,r,o)},flash:function(t,e,i,s,n,r,o){return this.flashEffect.start(t,e,i,s,n,r,o)},shake:function(t,e,i,s,n){return this.shakeEffect.start(t,e,i,s,n)},pan:function(t,e,i,s,n,r,o){return this.panEffect.start(t,e,i,s,n,r,o)},rotateTo:function(t,e,i,s,n,r,o){return this.rotateToEffect.start(t,e,i,s,n,r,o)},zoomTo:function(t,e,i,s,n,r){return this.zoomEffect.start(t,e,i,s,n,r)},preRender:function(){this.renderList.length=0;var t=this.width,e=this.height,i=.5*t,s=.5*e,n=this.zoom,r=this.matrix,o=t*this.originX,a=e*this.originY,h=this._follow,l=this.deadzone,u=this.scrollX,c=this.scrollY,d=(l&&y(l,this.midPoint.x,this.midPoint.y),!1),l=(this.roundPixels&&(o=Math.floor(o),a=Math.floor(a)),h&&!this.panEffect.isRunning&&(g=this.lerp,p=h.x-this.followOffset.x,f=h.y-this.followOffset.y,this.roundPixels&&(p=Math.floor(p),f=Math.floor(f)),l?(pl.right&&(u=m(u,u+(p-l.right),g.x)),fl.bottom&&(c=m(c,c+(f-l.bottom),g.y))):(u=m(u,p-o,g.x),c=m(c,f-a,g.y)),d=!0),this.useBounds&&(u=this.clampX(u),c=this.clampY(c)),this.roundPixels&&(u=Math.floor(u),c=Math.floor(c)),(this.scrollX=u)+i),p=(this.scrollY=c)+s,f=(this.midPoint.set(l,p),t/n),g=e/n,u=l-f/2,i=p-g/2;this.roundPixels&&(u=Math.floor(u),i=Math.floor(i)),this.worldView.setTo(u,i,f,g),r.applyITRS(Math.floor(this.x+o),Math.floor(this.y+a),this.rotation,n,n),r.translate(-o,-a),this.shakeEffect.preRender(),d&&this.emit(v.FOLLOW_UPDATE,this,h)},setLerp:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=t),this.lerp.set(t,e),this},setFollowOffset:function(t,e){return this.followOffset.set(t=void 0===t?0:t,e=void 0===e?0:e),this},startFollow:function(t,e,i,s,n,r){void 0===e&&(e=!1),void 0===i&&(i=1),void 0===s&&(s=i),void 0===n&&(n=0),void 0===r&&(r=n),this._follow=t,this.roundPixels=e,i=o(i,0,1),s=o(s,0,1),this.lerp.set(i,s),this.followOffset.set(n,r);e=this.width/2,i=this.height/2,s=t.x-n,n=t.y-r;return this.midPoint.set(s,n),this.scrollX=s-e,this.scrollY=n-i,this.useBounds&&(this.scrollX=this.clampX(this.scrollX),this.scrollY=this.clampY(this.scrollY)),this},stopFollow:function(){return this._follow=null,this},resetFX:function(){return this.rotateToEffect.reset(),this.panEffect.reset(),this.shakeEffect.reset(),this.flashEffect.reset(),this.fadeEffect.reset(),this},update:function(t,e){this.visible&&(this.rotateToEffect.update(t,e),this.panEffect.update(t,e),this.zoomEffect.update(t,e),this.shakeEffect.update(t,e),this.flashEffect.update(t,e),this.fadeEffect.update(t,e))},destroy:function(){this.resetFX(),n.prototype.destroy.call(this),this._follow=null,this.deadzone=null}});t.exports=i},62382:(t,e,i)=>{var o=i(47751),s=i(56694),l=i(72632),n=i(91963),a=i(94287),r=i(40444),h=i(7599),i=new s({initialize:function(t){this.scene=t,this.systems=t.sys,this.roundPixels=t.sys.game.config.roundPixels,this.cameras=[],this.main,this.default,t.sys.events.once(h.BOOT,this.boot,this),t.sys.events.on(h.START,this.start,this)},boot:function(){var t=this.systems;t.settings.cameras?this.fromJSON(t.settings.cameras):this.add(),this.main=this.cameras[0],this.default=new o(0,0,t.scale.width,t.scale.height).setScene(this.scene),t.game.scale.on(r.RESIZE,this.onResize,this),this.systems.events.once(h.DESTROY,this.destroy,this)},start:function(){this.main||((t=this.systems).settings.cameras?this.fromJSON(t.settings.cameras):this.add(),this.main=this.cameras[0]);var t=this.systems.events;t.on(h.UPDATE,this.update,this),t.once(h.SHUTDOWN,this.shutdown,this)},add:function(t,e,i,s,n,r){void 0===i&&(i=this.scene.sys.scale.width),void 0===s&&(s=this.scene.sys.scale.height),void 0===n&&(n=!1),void 0===r&&(r="");t=new o(t=void 0===t?0:t,e=void 0===e?0:e,i,s);return t.setName(r),t.setScene(this.scene),t.setRoundPixels(this.roundPixels),t.id=this.getNextID(),this.cameras.push(t),n&&(this.main=t),t},addExisting:function(t,e){return void 0===e&&(e=!1),-1===this.cameras.indexOf(t)?(t.id=this.getNextID(),t.setRoundPixels(this.roundPixels),this.cameras.push(t),e&&(this.main=t),t):null},getNextID:function(){for(var t=this.cameras,e=1,i=0;i<32;i++){for(var s=!1,n=0;n{var s=i(82897),n=i(56694),h=i(89787),i=new n({initialize:function(t){this.camera=t,this.isRunning=!1,this.isComplete=!1,this.direction=!0,this.duration=0,this.red=0,this.green=0,this.blue=0,this.alpha=0,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope},start:function(t,e,i,s,n,r,o,a){return void 0===t&&(t=!0),void 0===e&&(e=1e3),void 0===i&&(i=0),void 0===s&&(s=0),void 0===n&&(n=0),void 0===o&&(o=null),void 0===a&&(a=this.camera.scene),!(r=void 0===r?!1:r)&&this.isRunning||(this.isRunning=!0,this.isComplete=!1,this.duration=e,this.direction=t,this.progress=0,this.red=i,this.green=s,this.blue=n,this.alpha=t?Number.MIN_VALUE:1,this._elapsed=0,this._onUpdate=o,this._onUpdateScope=a,r=t?h.FADE_OUT_START:h.FADE_IN_START,this.camera.emit(r,this.camera,this,e,i,s,n)),this.camera},update:function(t,e){this.isRunning&&(this._elapsed+=e,this.progress=s(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed{var s=i(82897),n=i(56694),a=i(89787),i=new n({initialize:function(t){this.camera=t,this.isRunning=!1,this.duration=0,this.red=0,this.green=0,this.blue=0,this.alpha=1,this.progress=0,this._elapsed=0,this._alpha,this._onUpdate,this._onUpdateScope},start:function(t,e,i,s,n,r,o){return void 0===t&&(t=250),void 0===e&&(e=255),void 0===i&&(i=255),void 0===s&&(s=255),void 0===r&&(r=null),void 0===o&&(o=this.camera.scene),!(n=void 0===n?!1:n)&&this.isRunning||(this.isRunning=!0,this.duration=t,this.progress=0,this.red=e,this.green=i,this.blue=s,this._alpha=this.alpha,this._elapsed=0,this._onUpdate=r,this._onUpdateScope=o,this.camera.emit(a.FLASH_START,this.camera,this,t,e,i,s)),this.camera},update:function(t,e){this.isRunning&&(this._elapsed+=e,this.progress=s(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed{var r=i(82897),s=i(56694),h=i(35060),l=i(89787),n=i(93736),i=new s({initialize:function(t){this.camera=t,this.isRunning=!1,this.duration=0,this.source=new n,this.current=new n,this.destination=new n,this.ease,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope},start:function(t,e,i,s,n,r,o){void 0===i&&(i=1e3),void 0===s&&(s=h.Linear),void 0===r&&(r=null),void 0===o&&(o=this.camera.scene);var a=this.camera;return!(n=void 0===n?!1:n)&&this.isRunning||(this.isRunning=!0,this.duration=i,this.progress=0,this.source.set(a.scrollX,a.scrollY),this.destination.set(t,e),a.getScroll(t,e,this.current),"string"==typeof s&&h.hasOwnProperty(s)?this.ease=h[s]:"function"==typeof s&&(this.ease=s),this._elapsed=0,this._onUpdate=r,this._onUpdateScope=o,this.camera.emit(l.PAN_START,this.camera,this,i,t,e)),a},update:function(t,e){var i,s,n;this.isRunning&&(this._elapsed+=e,e=r(this._elapsed/this.duration,0,1),this.progress=e,i=this.camera,this._elapsed{var h=i(82897),s=i(56694),l=i(89787),u=i(35060),i=new s({initialize:function(t){this.camera=t,this.isRunning=!1,this.duration=0,this.source=0,this.current=0,this.destination=0,this.ease,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope,this.clockwise=!0,this.shortestPath=!1},start:function(t,e,i,s,n,r,o){void 0===i&&(i=1e3),void 0===s&&(s=u.Linear),void 0===n&&(n=!1),void 0===r&&(r=null),void 0===o&&(o=this.camera.scene),this.shortestPath=e=void 0===e?!1:e;var e=t,t=(t<0?(e=-1*t,this.clockwise=!1):this.clockwise=!0,360*Math.PI/180),a=(e-=Math.floor(e/t)*t,this.camera);return!n&&this.isRunning||(this.isRunning=!0,this.duration=i,this.progress=0,this.source=a.rotation,this.destination=e,"string"==typeof s&&u.hasOwnProperty(s)?this.ease=u[s]:"function"==typeof s&&(this.ease=s),this._elapsed=0,this._onUpdate=r,this._onUpdateScope=o,this.shortestPath&&(s=n=0,(n=this.destination>this.source?Math.abs(this.destination-this.source):Math.abs(this.destination+t)-this.source)<(s=this.source>this.destination?Math.abs(this.source-this.destination):Math.abs(this.source+t)-this.destination)?this.clockwise=!0:s{var r=i(82897),s=i(56694),o=i(89787),n=i(93736),i=new s({initialize:function(t){this.camera=t,this.isRunning=!1,this.duration=0,this.intensity=new n,this.progress=0,this._elapsed=0,this._offsetX=0,this._offsetY=0,this._onUpdate,this._onUpdateScope},start:function(t,e,i,s,n){return void 0===t&&(t=100),void 0===e&&(e=.05),void 0===s&&(s=null),void 0===n&&(n=this.camera.scene),!(i=void 0===i?!1:i)&&this.isRunning||(this.isRunning=!0,this.duration=t,this.progress=0,"number"==typeof e?this.intensity.set(e):this.intensity.set(e.x,e.y),this._elapsed=0,this._offsetX=0,this._offsetY=0,this._onUpdate=s,this._onUpdateScope=n,this.camera.emit(o.SHAKE_START,this.camera,this,t,e)),this.camera},preRender:function(){this.isRunning&&this.camera.matrix.translate(this._offsetX,this._offsetY)},update:function(t,e){var i,s,n;this.isRunning&&(this._elapsed+=e,this.progress=r(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed{var s=i(82897),n=i(56694),a=i(35060),h=i(89787),i=new n({initialize:function(t){this.camera=t,this.isRunning=!1,this.duration=0,this.source=1,this.destination=1,this.ease,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope},start:function(t,e,i,s,n,r){void 0===e&&(e=1e3),void 0===i&&(i=a.Linear),void 0===n&&(n=null),void 0===r&&(r=this.camera.scene);var o=this.camera;return!(s=void 0===s?!1:s)&&this.isRunning||(this.isRunning=!0,this.duration=e,this.progress=0,this.source=o.zoom,this.destination=t,"string"==typeof i&&a.hasOwnProperty(i)?this.ease=a[i]:"function"==typeof i&&(this.ease=i),this._elapsed=0,this._onUpdate=n,this._onUpdateScope=r,this.camera.emit(h.ZOOM_START,this.camera,this,e,t)),o},update:function(t,e){this.isRunning&&(this._elapsed+=e,this.progress=s(this._elapsed/this.duration,0,1),this._elapsed{t.exports={Fade:i(92522),Flash:i(22151),Pan:i(37551),Shake:i(3241),RotateTo:i(1771),Zoom:i(13383)}},39577:t=>{t.exports="cameradestroy"},85373:t=>{t.exports="camerafadeincomplete"},92057:t=>{t.exports="camerafadeinstart"},1903:t=>{t.exports="camerafadeoutcomplete"},96131:t=>{t.exports="camerafadeoutstart"},85409:t=>{t.exports="cameraflashcomplete"},25500:t=>{t.exports="cameraflashstart"},44071:t=>{t.exports="followupdate"},19818:t=>{t.exports="camerapancomplete"},80002:t=>{t.exports="camerapanstart"},87966:t=>{t.exports="postrender"},74217:t=>{t.exports="prerender"},34805:t=>{t.exports="camerarotatecomplete"},30408:t=>{t.exports="camerarotatestart"},49856:t=>{t.exports="camerashakecomplete"},69189:t=>{t.exports="camerashakestart"},67657:t=>{t.exports="camerazoomcomplete"},14229:t=>{t.exports="camerazoomstart"},89787:(t,e,i)=>{t.exports={DESTROY:i(39577),FADE_IN_COMPLETE:i(85373),FADE_IN_START:i(92057),FADE_OUT_COMPLETE:i(1903),FADE_OUT_START:i(96131),FLASH_COMPLETE:i(85409),FLASH_START:i(25500),FOLLOW_UPDATE:i(44071),PAN_COMPLETE:i(19818),PAN_START:i(80002),POST_RENDER:i(87966),PRE_RENDER:i(74217),ROTATE_COMPLETE:i(34805),ROTATE_START:i(30408),SHAKE_COMPLETE:i(49856),SHAKE_START:i(69189),ZOOM_COMPLETE:i(67657),ZOOM_START:i(14229)}},32356:(t,e,i)=>{t.exports={Camera:i(47751),BaseCamera:i(51052),CameraManager:i(62382),Effects:i(53030),Events:i(89787)}},84219:(t,e,i)=>{var s=i(56694),n=i(10850),i=new s({initialize:function(t){this.camera=n(t,"camera",null),this.left=n(t,"left",null),this.right=n(t,"right",null),this.up=n(t,"up",null),this.down=n(t,"down",null),this.zoomIn=n(t,"zoomIn",null),this.zoomOut=n(t,"zoomOut",null),this.zoomSpeed=n(t,"zoomSpeed",.01),this.minZoom=n(t,"minZoom",.001),this.maxZoom=n(t,"maxZoom",1e3),this.speedX=0,this.speedY=0;var e=n(t,"speed",null);"number"==typeof e?(this.speedX=e,this.speedY=e):(this.speedX=n(t,"speed.x",0),this.speedY=n(t,"speed.y",0)),this._zoom=0,this.active=null!==this.camera},start:function(){return this.active=null!==this.camera,this},stop:function(){return this.active=!1,this},setCamera:function(t){return this.camera=t,this},update:function(t){var e;this.active&&(void 0===t&&(t=1),e=this.camera,this.up&&this.up.isDown?e.scrollY-=this.speedY*t|0:this.down&&this.down.isDown&&(e.scrollY+=this.speedY*t|0),this.left&&this.left.isDown?e.scrollX-=this.speedX*t|0:this.right&&this.right.isDown&&(e.scrollX+=this.speedX*t|0),this.zoomIn&&this.zoomIn.isDown?(e.zoom-=this.zoomSpeed,e.zoomthis.maxZoom)&&(e.zoom=this.maxZoom))},destroy:function(){this.camera=null,this.left=null,this.right=null,this.up=null,this.down=null,this.zoomIn=null,this.zoomOut=null}});t.exports=i},69370:(t,e,i)=>{var s=i(56694),n=i(10850),i=new s({initialize:function(t){this.camera=n(t,"camera",null),this.left=n(t,"left",null),this.right=n(t,"right",null),this.up=n(t,"up",null),this.down=n(t,"down",null),this.zoomIn=n(t,"zoomIn",null),this.zoomOut=n(t,"zoomOut",null),this.zoomSpeed=n(t,"zoomSpeed",.01),this.minZoom=n(t,"minZoom",.001),this.maxZoom=n(t,"maxZoom",1e3),this.accelX=0,this.accelY=0;var e=n(t,"acceleration",null),e=("number"==typeof e?(this.accelX=e,this.accelY=e):(this.accelX=n(t,"acceleration.x",0),this.accelY=n(t,"acceleration.y",0)),this.dragX=0,this.dragY=0,n(t,"drag",null)),e=("number"==typeof e?(this.dragX=e,this.dragY=e):(this.dragX=n(t,"drag.x",0),this.dragY=n(t,"drag.y",0)),this.maxSpeedX=0,this.maxSpeedY=0,n(t,"maxSpeed",null));"number"==typeof e?(this.maxSpeedX=e,this.maxSpeedY=e):(this.maxSpeedX=n(t,"maxSpeed.x",0),this.maxSpeedY=n(t,"maxSpeed.y",0)),this._speedX=0,this._speedY=0,this._zoom=0,this.active=null!==this.camera},start:function(){return this.active=null!==this.camera,this},stop:function(){return this.active=!1,this},setCamera:function(t){return this.camera=t,this},update:function(t){var e;this.active&&(void 0===t&&(t=1),e=this.camera,0this.maxSpeedY&&(this._speedY=this.maxSpeedY)):this.down&&this.down.isDown&&(this._speedY-=this.accelY,this._speedY<-this.maxSpeedY)&&(this._speedY=-this.maxSpeedY),this.left&&this.left.isDown?(this._speedX+=this.accelX,this._speedX>this.maxSpeedX&&(this._speedX=this.maxSpeedX)):this.right&&this.right.isDown&&(this._speedX-=this.accelX,this._speedX<-this.maxSpeedX)&&(this._speedX=-this.maxSpeedX),this.zoomIn&&this.zoomIn.isDown?this._zoom=-this.zoomSpeed:this.zoomOut&&this.zoomOut.isDown?this._zoom=this.zoomSpeed:this._zoom=0,0!==this._speedX&&(e.scrollX-=this._speedX*t|0),0!==this._speedY&&(e.scrollY-=this._speedY*t|0),0!==this._zoom)&&(e.zoom+=this._zoom,e.zoomthis.maxZoom&&(e.zoom=this.maxZoom))},destroy:function(){this.camera=null,this.left=null,this.right=null,this.up=null,this.down=null,this.zoomIn=null,this.zoomOut=null}});t.exports=i},6524:(t,e,i)=>{t.exports={FixedKeyControl:i(84219),SmoothedKeyControl:i(69370)}},44143:(t,e,i)=>{t.exports={Controls:i(6524),Scene2D:i(32356)}},86459:(t,e,i)=>{i={VERSION:"3.60.0",BlendModes:i(95723),ScaleModes:i(27394),AUTO:0,CANVAS:1,WEBGL:2,HEADLESS:3,FOREVER:-1,NONE:4,UP:5,DOWN:6,LEFT:7,RIGHT:8};t.exports=i},14033:(t,e,i)=>{var s=i(56694),n=i(86459),r=i(18360),o=i(77290),a=i(72632),h=i(10850),l=i(42911),u=i(72283),c=i(5923),d=i(65641),p=i(93222),i=new s({initialize:function(t){var e=h(t=void 0===t?{}:t,"scale",null),e=(this.width=h(e,"width",1024,t),this.height=h(e,"height",768,t),this.zoom=h(e,"zoom",1,t),this.parent=h(e,"parent",void 0,t),this.scaleMode=h(e,e?"mode":"scaleMode",0,t),this.expandParent=h(e,"expandParent",!0,t),this.autoRound=h(e,"autoRound",!1,t),this.autoCenter=h(e,"autoCenter",0,t),this.resizeInterval=h(e,"resizeInterval",500,t),this.fullscreenTarget=h(e,"fullscreenTarget",null,t),this.minWidth=h(e,"minWidth",0,t),this.maxWidth=h(e,"maxWidth",0,t),this.minHeight=h(e,"minHeight",0,t),this.maxHeight=h(e,"maxHeight",0,t),this.renderType=h(t,"type",n.AUTO),this.canvas=h(t,"canvas",null),this.context=h(t,"context",null),this.canvasStyle=h(t,"canvasStyle",null),this.customEnvironment=h(t,"customEnvironment",!1),this.sceneConfig=h(t,"scene",null),this.seed=h(t,"seed",[(Date.now()*Math.random()).toString()]),c.RND=new c.RandomDataGenerator(this.seed),this.gameTitle=h(t,"title",""),this.gameURL=h(t,"url","https://phaser.io"),this.gameVersion=h(t,"version",""),this.autoFocus=h(t,"autoFocus",!0),this.stableSort=h(t,"stableSort",-1),-1===this.stableSort&&(this.stableSort=o.browser.es2019?1:0),o.features.stableSort=this.stableSort,this.domCreateContainer=h(t,"dom.createContainer",!1),this.domPointerEvents=h(t,"dom.pointerEvents","none"),this.inputKeyboard=h(t,"input.keyboard",!0),this.inputKeyboardEventTarget=h(t,"input.keyboard.target",window),this.inputKeyboardCapture=h(t,"input.keyboard.capture",[]),this.inputMouse=h(t,"input.mouse",!0),this.inputMouseEventTarget=h(t,"input.mouse.target",null),this.inputMousePreventDefaultDown=h(t,"input.mouse.preventDefaultDown",!0),this.inputMousePreventDefaultUp=h(t,"input.mouse.preventDefaultUp",!0),this.inputMousePreventDefaultMove=h(t,"input.mouse.preventDefaultMove",!0),this.inputMousePreventDefaultWheel=h(t,"input.mouse.preventDefaultWheel",!0),this.inputTouch=h(t,"input.touch",o.input.touch),this.inputTouchEventTarget=h(t,"input.touch.target",null),this.inputTouchCapture=h(t,"input.touch.capture",!0),this.inputActivePointers=h(t,"input.activePointers",1),this.inputSmoothFactor=h(t,"input.smoothFactor",0),this.inputWindowEvents=h(t,"input.windowEvents",!0),this.inputGamepad=h(t,"input.gamepad",!1),this.inputGamepadEventTarget=h(t,"input.gamepad.target",window),this.disableContextMenu=h(t,"disableContextMenu",!1),this.audio=h(t,"audio",{}),this.hideBanner=!1===h(t,"banner",null),this.hidePhaser=h(t,"banner.hidePhaser",!1),this.bannerTextColor=h(t,"banner.text","#ffffff"),this.bannerBackgroundColor=h(t,"banner.background",["#ff0000","#ffff00","#00ff00","#00ffff","#000000"]),""===this.gameTitle&&this.hidePhaser&&(this.hideBanner=!0),this.fps=h(t,"fps",null),h(t,"render",null)),e=(this.pipeline=h(e,"pipeline",null,t),this.autoMobilePipeline=h(e,"autoMobilePipeline",!0,t),this.defaultPipeline=h(e,"defaultPipeline",d.MULTI_PIPELINE,t),this.antialias=h(e,"antialias",!0,t),this.antialiasGL=h(e,"antialiasGL",!0,t),this.mipmapFilter=h(e,"mipmapFilter","",t),this.desynchronized=h(e,"desynchronized",!1,t),this.roundPixels=h(e,"roundPixels",!1,t),this.pixelArt=h(e,"pixelArt",1!==this.zoom,t),this.pixelArt&&(this.antialias=!1,this.antialiasGL=!1,this.roundPixels=!0),this.transparent=h(e,"transparent",!1,t),this.clearBeforeRender=h(e,"clearBeforeRender",!0,t),this.preserveDrawingBuffer=h(e,"preserveDrawingBuffer",!1,t),this.premultipliedAlpha=h(e,"premultipliedAlpha",!0,t),this.failIfMajorPerformanceCaveat=h(e,"failIfMajorPerformanceCaveat",!1,t),this.powerPreference=h(e,"powerPreference","default",t),this.batchSize=h(e,"batchSize",4096,t),this.maxTextures=h(e,"maxTextures",-1,t),this.maxLights=h(e,"maxLights",10,t),h(t,"backgroundColor",0)),e=(this.backgroundColor=p(e),this.transparent&&(this.backgroundColor=p(0),this.backgroundColor.alpha=0),this.preBoot=h(t,"callbacks.preBoot",u),this.postBoot=h(t,"callbacks.postBoot",u),this.physics=h(t,"physics",{}),this.defaultPhysicsSystem=h(this.physics,"default",!1),this.loaderBaseURL=h(t,"loader.baseURL",""),this.loaderPath=h(t,"loader.path",""),this.loaderMaxParallelDownloads=h(t,"loader.maxParallelDownloads",o.os.android?6:32),this.loaderCrossOrigin=h(t,"loader.crossOrigin",void 0),this.loaderResponseType=h(t,"loader.responseType",""),this.loaderAsync=h(t,"loader.async",!0),this.loaderUser=h(t,"loader.user",""),this.loaderPassword=h(t,"loader.password",""),this.loaderTimeout=h(t,"loader.timeout",0),this.loaderWithCredentials=h(t,"loader.withCredentials",!1),this.loaderImageLoadType=h(t,"loader.imageLoadType","XHR"),this.loaderLocalScheme=h(t,"loader.localScheme",["file://","capacitor://"]),this.glowFXQuality=h(t,"fx.glow.quality",.1),this.glowFXDistance=h(t,"fx.glow.distance",10),this.installGlobalPlugins=[],this.installScenePlugins=[],h(t,"plugins",null)),i=r.DefaultScene,e=(e&&(Array.isArray(e)?this.defaultPlugins=e:l(e)&&(this.installGlobalPlugins=a(e,"global",[]),this.installScenePlugins=a(e,"scene",[]),Array.isArray(e.default)?i=e.default:Array.isArray(e.defaultMerge)&&(i=i.concat(e.defaultMerge)))),this.defaultPlugins=i,"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAg");this.defaultImage=h(t,"images.default",e+"AQMAAABJtOi3AAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAABVJREFUeF7NwIEAAAAAgKD9qdeocAMAoAABm3DkcAAAAABJRU5ErkJggg=="),this.missingImage=h(t,"images.missing",e+"CAIAAAD8GO2jAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJ9JREFUeNq01ssOwyAMRFG46v//Mt1ESmgh+DFmE2GPOBARKb2NVjo+17PXLD8a1+pl5+A+wSgFygymWYHBb0FtsKhJDdZlncG2IzJ4ayoMDv20wTmSMzClEgbWYNTAkQ0Z+OJ+A/eWnAaR9+oxCF4Os0H8htsMUp+pwcgBBiMNnAwF8GqIgL2hAzaGFFgZauDPKABmowZ4GL369/0rwACp2yA/ttmvsQAAAABJRU5ErkJggg=="),this.whiteImage=h(t,"images.white","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAIAAAAmkwkpAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABdJREFUeNpi/P//PwMMMDEgAdwcgAADAJZuAwXJYZOzAAAAAElFTkSuQmCC"),window&&(window.FORCE_WEBGL?this.renderType=n.WEBGL:window.FORCE_CANVAS&&(this.renderType=n.CANVAS))}});t.exports=i},50150:(t,e,n)=>{var r=n(70616),o=n(61068),a=n(86459),h=n(90185);t.exports=function(t){var e=t.config;if((e.customEnvironment||e.canvas)&&e.renderType===a.AUTO)throw new Error("Must set explicit renderType in custom environment");if(!e.customEnvironment&&!e.canvas&&e.renderType!==a.HEADLESS)if(e.renderType===a.AUTO&&(e.renderType=h.webGL?a.WEBGL:a.CANVAS),e.renderType===a.WEBGL){if(!h.webGL)throw new Error("Cannot create WebGL context, aborting.")}else{if(e.renderType!==a.CANVAS)throw new Error("Unknown value for renderer type: "+e.renderType);if(!h.canvas)throw new Error("Cannot create Canvas context, aborting.")}e.antialias||o.disableSmoothing();var i=t.scale.baseSize,s=i.width,i=i.height;e.canvas?(t.canvas=e.canvas,t.canvas.width=s,t.canvas.height=i):t.canvas=o.create(t,s,i,e.renderType),e.canvasStyle&&(t.canvas.style=e.canvasStyle),e.antialias||r.setCrisp(t.canvas),e.renderType!==a.HEADLESS&&(s=n(91135),i=n(11857),e.renderType===a.WEBGL?t.renderer=new i(t):(t.renderer=new s(t),t.context=t.renderer.gameContext))}},77291:(t,e,i)=>{var h=i(86459);t.exports=function(t){var e,i,s,n,r,o,a=t.config;a.hideBanner||(e="WebGL",a.renderType===h.CANVAS?e="Canvas":a.renderType===h.HEADLESS&&(e="Headless"),o=a.audio,o=(i=t.device.audio).webAudio&&!o.disableWebAudio?"Web Audio":o.noAudio||!i.webAudio&&!i.audioData?"No Audio":"HTML5 Audio",t.device.browser.ie?window.console:(r=[n=""],Array.isArray(a.bannerBackgroundColor)?(a.bannerBackgroundColor.forEach(function(t){n=n.concat("%c "),r.push("background: "+t),s=t}),r[r.length-1]="color: "+a.bannerTextColor+"; background: "+s):(n=n.concat("%c "),r.push("color: "+a.bannerTextColor+"; background: "+a.bannerBackgroundColor)),r.push("background: transparent"),a.gameTitle&&(n=n.concat(a.gameTitle),a.gameVersion&&(n=n.concat(" v"+a.gameVersion)),a.hidePhaser||(n=n.concat(" / "))),n=(n=a.hidePhaser?n:n.concat("Phaser v"+h.VERSION+" ("+e+" | "+o+")")).concat(" %c "+a.gameURL),r[0]=n))}},15213:(t,e,i)=>{var s=i(99584),n=i(90249),r=i(43474),o=i(61068),a=i(56694),h=i(14033),l=i(85178),u=i(50150),c=i(81078),d=i(77291),p=i(77290),f=i(21546),g=i(6659),y=i(97081),v=i(69898),m=i(91963),x=i(49274),w=i(756),T=i(13553),b=i(38203),S=i(6237),P=i(26617),_=i(26493),E=i(84191),i=new a({initialize:function(t){this.config=new h(t),this.renderer=null,this.domContainer=null,this.canvas=null,this.context=null,this.isBooted=!1,this.isRunning=!1,this.events=new g,this.anims=new n(this),this.textures=new S(this),this.cache=new r(this),this.registry=new c(this,new g),this.input=new v(this,this.config),this.scene=new T(this,this.config.sceneConfig),this.device=p,this.scale=new w(this,this.config),this.sound=null,this.sound=E.create(this),this.loop=new P(this,this.config.fps),this.plugins=new x(this,this.config),this.pendingDestroy=!1,this.removeCanvas=!1,this.noReturn=!1,this.hasFocus=!1,this.isPaused=!1,f(this.boot.bind(this))},boot:function(){m.hasCore("EventEmitter")&&(this.isBooted=!0,this.config.preBoot(this),this.scale.preBoot(),u(this),l(this),d(this),s(this.canvas,this.config.parent),this.textures.once(b.READY,this.texturesReady,this),this.events.emit(y.BOOT))},texturesReady:function(){this.events.emit(y.READY),this.start()},start:function(){this.isRunning=!0,this.config.postBoot(this),this.renderer?this.loop.start(this.step.bind(this)):this.loop.start(this.headlessStep.bind(this)),_(this);var t=this.events;t.on(y.HIDDEN,this.onHidden,this),t.on(y.VISIBLE,this.onVisible,this),t.on(y.BLUR,this.onBlur,this),t.on(y.FOCUS,this.onFocus,this)},step:function(t,e){if(this.pendingDestroy)return this.runDestroy();var i,s;this.isPaused||((i=this.events).emit(y.PRE_STEP,t,e),i.emit(y.STEP,t,e),this.scene.update(t,e),i.emit(y.POST_STEP,t,e),(s=this.renderer).preRender(),i.emit(y.PRE_RENDER,s,t,e),this.scene.render(s),s.postRender(),i.emit(y.POST_RENDER,s,t,e))},headlessStep:function(t,e){if(this.pendingDestroy)return this.runDestroy();var i;this.isPaused||((i=this.events).emit(y.PRE_STEP,t,e),i.emit(y.STEP,t,e),this.scene.update(t,e),i.emit(y.POST_STEP,t,e),this.scene.isProcessing=!1,i.emit(y.PRE_RENDER,null,t,e),i.emit(y.POST_RENDER,null,t,e))},onHidden:function(){this.loop.pause(),this.events.emit(y.PAUSE)},pause:function(){var t=this.isPaused;this.isPaused=!0,t||this.events.emit(y.PAUSE)},onVisible:function(){this.loop.resume(),this.events.emit(y.RESUME)},resume:function(){var t=this.isPaused;this.isPaused=!1,t&&this.events.emit(y.RESUME)},onBlur:function(){this.hasFocus=!1,this.loop.blur()},onFocus:function(){this.hasFocus=!0,this.loop.focus()},getFrame:function(){return this.loop.frame},getTime:function(){return this.loop.now},destroy:function(t,e){void 0===e&&(e=!1),this.pendingDestroy=!0,this.removeCanvas=t,this.noReturn=e},runDestroy:function(){this.scene.destroy(),this.events.emit(y.DESTROY),this.events.removeAllListeners(),this.renderer&&this.renderer.destroy(),this.removeCanvas&&this.canvas&&(o.remove(this.canvas),this.canvas.parentNode)&&this.canvas.parentNode.removeChild(this.canvas),this.domContainer&&this.domContainer.parentNode.removeChild(this.domContainer),this.loop.destroy(),this.pendingDestroy=!1}});t.exports=i},26617:(t,e,i)=>{var s=i(56694),n=i(10850),r=i(72283),o=i(27385),i=new s({initialize:function(t,e){this.game=t,this.raf=new o,this.started=!1,this.running=!1,this.minFps=n(e,"min",5),this.targetFps=n(e,"target",60),this.fpsLimit=n(e,"limit",0),this.hasFpsLimit=0this._min&&(t=i[e],t=Math.min(t,this._min)),i[e]=t,this.deltaIndex++,this.deltaIndex>=s&&(this.deltaIndex=0);for(var n=0,r=0;r=this.nextFpsUpdate&&this.updateFPS(t),this.framesThisSecond++,this.delta>=this._limitRate&&(this.callback(t,this.delta),this.delta=0),this.lastTime=t,this.frame++},step:function(t){this.now=t;var e=Math.max(0,t-this.lastTime);this.rawDelta=e,this.time+=this.rawDelta,this.smoothStep&&(e=this.smoothDelta(e)),this.delta=e,t>=this.nextFpsUpdate&&this.updateFPS(t),this.framesThisSecond++,this.callback(t,e),this.lastTime=t,this.frame++},tick:function(){var t=window.performance.now();this.hasFpsLimit?this.stepLimitFPS(t):this.step(t)},sleep:function(){this.running&&(this.raf.stop(),this.running=!1)},wake:function(t){void 0===t&&(t=!1);var e=window.performance.now();this.running||(t&&(this.startTime+=-this.lastTime+(this.lastTime+e)),t=(this.hasFpsLimit?this.stepLimitFPS:this.step).bind(this),this.raf.start(t,this.forceSetTimeOut,this._target),this.running=!0,this.nextFpsUpdate=e+1e3,this.framesThisSecond=0,this.fpsLimitTriggered=!1,this.tick())},getDuration:function(){return Math.round(this.lastTime-this.startTime)/1e3},getDurationMS:function(){return Math.round(this.lastTime-this.startTime)},stop:function(){return this.running=!1,this.started=!1,this.raf.stop(),this},destroy:function(){this.stop(),this.raf.destroy(),this.raf=null,this.game=null,this.callback=null}});t.exports=i},26493:(t,e,i)=>{var s=i(97081);t.exports=function(t){var e,i=t.events;void 0!==document.hidden?e="visibilitychange":["webkit","moz","ms"].forEach(function(t){void 0!==document[t+"Hidden"]&&(document.hidden=function(){return document[t+"Hidden"]},e=t+"visibilitychange")}),e&&document.addEventListener(e,function(t){document.hidden||"pause"===t.type?i.emit(s.HIDDEN):i.emit(s.VISIBLE)},!1),window.onblur=function(){i.emit(s.BLUR)},window.onfocus=function(){i.emit(s.FOCUS)},window.focus&&t.config.autoFocus&&window.focus()}},41651:t=>{t.exports="blur"},5520:t=>{t.exports="boot"},51673:t=>{t.exports="contextlost"},25055:t=>{t.exports="destroy"},23767:t=>{t.exports="focus"},57564:t=>{t.exports="hidden"},38327:t=>{t.exports="pause"},43807:t=>{t.exports="postrender"},73652:t=>{t.exports="poststep"},780:t=>{t.exports="prerender"},13781:t=>{t.exports="prestep"},38247:t=>{t.exports="ready"},29129:t=>{t.exports="resume"},34994:t=>{t.exports="step"},98704:t=>{t.exports="visible"},97081:(t,e,i)=>{t.exports={BLUR:i(41651),BOOT:i(5520),CONTEXT_LOST:i(51673),DESTROY:i(25055),FOCUS:i(23767),HIDDEN:i(57564),PAUSE:i(38327),POST_RENDER:i(43807),POST_STEP:i(73652),PRE_RENDER:i(780),PRE_STEP:i(13781),READY:i(38247),RESUME:i(29129),STEP:i(34994),VISIBLE:i(98704)}},80293:(t,e,i)=>{t.exports={Config:i(14033),CreateRenderer:i(50150),DebugHeader:i(77291),Events:i(97081),TimeStep:i(26617),VisibilityHandler:i(26493)}},52780:(t,e,i)=>{var y=i(81543),v=i(61068),m=i(10850);t.exports=function(t){var e=m(t,"data",[]),i=m(t,"canvas",null),s=m(t,"palette",y),n=m(t,"pixelWidth",1),r=m(t,"pixelHeight",n),o=m(t,"resizeCanvas",!0),a=m(t,"clearCanvas",!0),h=m(t,"preRender",null),t=m(t,"postRender",null),l=Math.floor(Math.abs(e[0].length*n)),u=Math.floor(Math.abs(e.length*r)),c=(i||(i=v.create2D(this,l,u),a=o=!1),o&&(i.width=l,i.height=u),i.getContext("2d",{willReadFrequently:!0}));a&&c.clearRect(0,0,l,u),h&&h(i,c);for(var d=0;d{t.exports={GenerateTexture:i(52780),Palettes:i(25235)}},81543:t=>{t.exports={0:"#000",1:"#9D9D9D",2:"#FFF",3:"#BE2633",4:"#E06F8B",5:"#493C2B",6:"#A46422",7:"#EB8931",8:"#F7E26B",9:"#2F484E",A:"#44891A",B:"#A3CE27",C:"#1B2632",D:"#005784",E:"#31A2F2",F:"#B2DCEF"}},75846:t=>{t.exports={0:"#000",1:"#fff",2:"#8b4131",3:"#7bbdc5",4:"#8b41ac",5:"#6aac41",6:"#3931a4",7:"#d5de73",8:"#945a20",9:"#5a4100",A:"#bd736a",B:"#525252",C:"#838383",D:"#acee8b",E:"#7b73de",F:"#acacac"}},83206:t=>{t.exports={0:"#000",1:"#2234d1",2:"#0c7e45",3:"#44aacc",4:"#8a3622",5:"#5c2e78",6:"#aa5c3d",7:"#b5b5b5",8:"#5e606e",9:"#4c81fb",A:"#6cd947",B:"#7be2f9",C:"#eb8a60",D:"#e23d69",E:"#ffd93f",F:"#fff"}},13194:t=>{t.exports={0:"#000",1:"#191028",2:"#46af45",3:"#a1d685",4:"#453e78",5:"#7664fe",6:"#833129",7:"#9ec2e8",8:"#dc534b",9:"#e18d79",A:"#d6b97b",B:"#e9d8a1",C:"#216c4b",D:"#d365c8",E:"#afaab9",F:"#f5f4eb"}},50686:t=>{t.exports={0:"#000",1:"#191028",2:"#46af45",3:"#a1d685",4:"#453e78",5:"#7664fe",6:"#833129",7:"#9ec2e8",8:"#dc534b",9:"#e18d79",A:"#d6b97b",B:"#e9d8a1",C:"#216c4b",D:"#d365c8",E:"#afaab9",F:"#fff"}},25235:(t,e,i)=>{t.exports={ARNE16:i(81543),C64:i(75846),CGA:i(83206),JMP:i(13194),MSX:i(50686)}},63120:(t,e,i)=>{var s=i(56694),o=i(34631),n=i(38517),a=i(93736),r=new s({Extends:n,initialize:function(t,e,i,s){n.call(this,"CubicBezierCurve"),Array.isArray(t)&&(s=new a(t[6],t[7]),i=new a(t[4],t[5]),e=new a(t[2],t[3]),t=new a(t[0],t[1])),this.p0=t,this.p1=e,this.p2=i,this.p3=s},getStartPoint:function(t){return(t=void 0===t?new a:t).copy(this.p0)},getResolution:function(t){return t},getPoint:function(t,e){void 0===e&&(e=new a);var i=this.p0,s=this.p1,n=this.p2,r=this.p3;return e.set(o(t,i.x,s.x,n.x,r.x),o(t,i.y,s.y,n.y,r.y))},draw:function(t,e){var i=this.getPoints(e=void 0===e?32:e);t.beginPath(),t.moveTo(this.p0.x,this.p0.y);for(var s=1;s{var s=i(56694),n=i(80222),r=i(74118),o=i(93736),i=new s({initialize:function(t){this.type=t,this.defaultDivisions=5,this.arcLengthDivisions=100,this.cacheArcLengths=[],this.needsUpdate=!0,this.active=!0,this._tmpVec2A=new o,this._tmpVec2B=new o},draw:function(t,e){return t.strokePoints(this.getPoints(e=void 0===e?32:e))},getBounds:function(t,e){t=t||new r,void 0===e&&(e=16);var i=this.getLength(),i=(i{var s=i(56694),l=i(38517),u=i(75606),c=i(10850),n=i(23701),d=i(93736),r=new s({Extends:l,initialize:function(t,e,i,s,n,r,o,a){var h;"object"==typeof t?(t=c(h=t,"x",0),e=c(h,"y",0),i=c(h,"xRadius",0),s=c(h,"yRadius",i),n=c(h,"startAngle",0),r=c(h,"endAngle",360),o=c(h,"clockwise",!1),a=c(h,"rotation",0)):(void 0===s&&(s=i),void 0===n&&(n=0),void 0===r&&(r=360),void 0===o&&(o=!1),void 0===a&&(a=0)),l.call(this,"EllipseCurve"),this.p0=new d(t,e),this._xRadius=i,this._yRadius=s,this._startAngle=u(n),this._endAngle=u(r),this._clockwise=o,this._rotation=u(a)},getStartPoint:function(t){return void 0===t&&(t=new d),this.getPoint(0,t)},getResolution:function(t){return 2*t},getPoint:function(t,e){void 0===e&&(e=new d);for(var i=2*Math.PI,s=this._endAngle-this._startAngle,n=Math.abs(s){var s=i(56694),n=i(38517),r=i(80222),o=i(74118),a=i(93736),h=new s({Extends:n,initialize:function(t,e){n.call(this,"LineCurve"),Array.isArray(t)&&(e=new a(t[2],t[3]),t=new a(t[0],t[1])),this.p0=t,this.p1=e,this.arcLengthDivisions=1},getBounds:function(t){return void 0===t&&(t=new o),r([this.p0,this.p1],t)},getStartPoint:function(t){return(t=void 0===t?new a:t).copy(this.p0)},getResolution:function(t){return t=void 0===t?1:t},getPoint:function(t,e){return void 0===e&&(e=new a),1===t?e.copy(this.p1):(e.copy(this.p1).subtract(this.p0).scale(t).add(this.p0),e)},getPointAt:function(t,e){return this.getPoint(t,e)},getTangent:function(t,e){return(e=void 0===e?new a:e).copy(this.p1).subtract(this.p0).normalize(),e},getUtoTmapping:function(t,e,i){return e?(i=(i=this.getLengths(i))[i.length-1],Math.min(e,i)/i):t},draw:function(t){return t.lineBetween(this.p0.x,this.p0.y,this.p1.x,this.p1.y),t},toJSON:function(){return{type:this.type,points:[this.p0.x,this.p0.y,this.p1.x,this.p1.y]}}});h.fromJSON=function(t){var t=t.points,e=new a(t[0],t[1]),t=new a(t[2],t[3]);return new h(e,t)},t.exports=h},64761:(t,e,i)=>{var s=i(56694),n=i(38517),r=i(16252),o=i(93736),a=new s({Extends:n,initialize:function(t,e,i){n.call(this,"QuadraticBezierCurve"),Array.isArray(t)&&(i=new o(t[4],t[5]),e=new o(t[2],t[3]),t=new o(t[0],t[1])),this.p0=t,this.p1=e,this.p2=i},getStartPoint:function(t){return(t=void 0===t?new o:t).copy(this.p0)},getResolution:function(t){return t},getPoint:function(t,e){void 0===e&&(e=new o);var i=this.p0,s=this.p1,n=this.p2;return e.set(r(t,i.x,s.x,n.x),r(t,i.y,s.y,n.y))},draw:function(t,e){var i=this.getPoints(e=void 0===e?32:e);t.beginPath(),t.moveTo(this.p0.x,this.p0.y);for(var s=1;s{var a=i(14976),s=i(56694),n=i(38517),h=i(93736),r=new s({Extends:n,initialize:function(t){void 0===t&&(t=[]),n.call(this,"SplineCurve"),this.points=[],this.addPoints(t)},addPoints:function(t){for(var e=0;ei.length-2?i.length-1:s+1],i=i[s>i.length-3?i.length-1:s+2];return e.set(a(t,n.x,r.x,o.x,i.x),a(t,n.y,r.y,o.y,i.y))},toJSON:function(){for(var t=[],e=0;e{t.exports={Path:i(12822),MoveTo:i(53639),CubicBezier:i(63120),Curve:i(38517),Ellipse:i(48835),Line:i(58084),QuadraticBezier:i(64761),Spline:i(11956)}},53639:(t,e,i)=>{var s=i(56694),n=i(93736),i=new s({initialize:function(t,e){this.active=!1,this.p0=new n(t,e)},getPoint:function(t,e){return(e=void 0===e?new n:e).copy(this.p0)},getPointAt:function(t,e){return this.getPoint(t,e)},getResolution:function(){return 1},getLength:function(){return 0},toJSON:function(){return{type:"MoveTo",points:[this.p0.x,this.p0.y]}}});t.exports=i},12822:(t,e,i)=>{var s=i(56694),l=i(63120),o=i(48835),n=i(61286),r=i(58084),a=i(53639),h=i(64761),u=i(74118),c=i(11956),d=i(93736),p=i(83392),f=new s({initialize:function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.name="",this.curves=[],this.cacheLengths=[],this.autoClose=!1,this.startPoint=new d,this._tmpVec2A=new d,this._tmpVec2B=new d,"object"==typeof t?this.fromJSON(t):this.startPoint.set(t,e)},add:function(t){return this.curves.push(t),this},circleTo:function(t,e,i){return this.ellipseTo(t,t,0,360,e=void 0===e?!1:e,i)},closePath:function(){var t=this.curves[0].getPoint(0),e=this.curves[this.curves.length-1].getPoint(1);return t.equals(e)||this.curves.push(new r(e,t)),this},cubicBezierTo:function(t,e,i,s,n,r){var o,a,h=this.getEndPoint(),i=t instanceof d?(o=t,a=e,i):(o=new d(i,s),a=new d(n,r),new d(t,e));return this.add(new l(h,o,a,i))},quadraticBezierTo:function(t,e,i,s){var n,r=this.getEndPoint(),i=t instanceof d?(n=t,e):(n=new d(i,s),new d(t,e));return this.add(new h(r,n,i))},draw:function(t,e){for(var i=0;i=e)return this.curves[s];s++}return null},getEndPoint:function(t){return void 0===t&&(t=new d),0=r)return i=o[a]-r,n=(s=this.curves[a]).getLength(),s.getPointAt(0===n?0:1-i/n,e);a++}return null},getPoints:function(t){void 0===t&&(t=12);for(var e,i=[],s=0;s=r)return i=o[a]-r,n=(s=this.curves[a]).getLength(),s.getTangentAt(0===n?0:1-i/n,e);a++}return null},lineTo:function(t,e){t instanceof d?this._tmpVec2B.copy(t):this._tmpVec2B.set(t,e);t=this.getEndPoint(this._tmpVec2A);return this.add(new r([t.x,t.y,this._tmpVec2B.x,this._tmpVec2B.y]))},splineTo:function(t){return t.unshift(this.getEndPoint()),this.add(new c(t))},moveTo:function(t,e){return t instanceof d?this.add(new a(t.x,t.y)):this.add(new a(t,e))},toJSON:function(){for(var t=[],e=0;e{var s=i(56694),a=i(35026),i=new s({initialize:function(t,e){this.parent=t,(this.events=e)||(this.events=t.events||t),this.list={},this.values={},this._frozen=!1,!t.hasOwnProperty("sys")&&this.events&&this.events.once(a.DESTROY,this.destroy,this)},get:function(t){var e=this.list;if(Array.isArray(t)){for(var i=[],s=0;s{var s=i(56694),n=i(81078),r=i(91963),o=i(7599),i=new s({Extends:n,initialize:function(t){n.call(this,t,t.sys.events),this.scene=t,this.systems=t.sys,t.sys.events.once(o.BOOT,this.boot,this),t.sys.events.on(o.START,this.start,this)},boot:function(){this.events=this.systems.events,this.events.once(o.DESTROY,this.destroy,this)},start:function(){this.events.once(o.SHUTDOWN,this.shutdown,this)},shutdown:function(){this.systems.events.off(o.SHUTDOWN,this.shutdown,this)},destroy:function(){n.prototype.destroy.call(this),this.events.off(o.START,this.start,this),this.scene=null,this.systems=null}});r.register("DataManagerPlugin",i,"data"),t.exports=i},73569:t=>{t.exports="changedata"},15590:t=>{t.exports="changedata-"},37669:t=>{t.exports="destroy"},87090:t=>{t.exports="removedata"},90142:t=>{t.exports="setdata"},35026:(t,e,i)=>{t.exports={CHANGE_DATA:i(73569),CHANGE_DATA_KEY:i(15590),DESTROY:i(37669),REMOVE_DATA:i(87090),SET_DATA:i(90142)}},1999:(t,e,i)=>{t.exports={DataManager:i(81078),DataManagerPlugin:i(76508),Events:i(35026)}},10720:(t,e,i)=>{var r=i(1350),o={flac:!1,aac:!1,audioData:!1,dolby:!1,m4a:!1,mp3:!1,ogg:!1,opus:!1,wav:!1,webAudio:!1,webm:!1};t.exports=function(){if("function"!=typeof importScripts){o.audioData=!!window.Audio,o.webAudio=!(!window.AudioContext&&!window.webkitAudioContext);var t,e,i,s=document.createElement("audio"),n=!!s.canPlayType;try{n&&(t=function(t,e){t=s.canPlayType("audio/"+t).replace(/^no$/,"");return e?Boolean(t||s.canPlayType("audio/"+e).replace(/^no$/,"")):Boolean(t)},o.ogg=t('ogg; codecs="vorbis"'),o.opus=t('ogg; codecs="opus"',"opus"),o.mp3=t("mpeg"),o.wav=t("wav"),o.m4a=t("x-m4a"),o.aac=t("aac"),o.flac=t("flac","x-flac"),o.webm=t('webm; codecs="vorbis"'),""!==s.canPlayType('audio/mp4; codecs="ec-3"'))&&(r.edge||r.safari&&9<=r.safariVersion&&/Mac OS X (\d+)_(\d+)/.test(navigator.userAgent)&&(e=parseInt(RegExp.$1,10),i=parseInt(RegExp.$2,10),10===e&&11<=i||10{var i=i(36580),s={chrome:!1,chromeVersion:0,edge:!1,firefox:!1,firefoxVersion:0,ie:!1,ieVersion:0,mobileSafari:!1,opera:!1,safari:!1,safariVersion:0,silk:!1,trident:!1,tridentVersion:0,es2019:!1};t.exports=(t=navigator.userAgent,/Edg\/\d+/.test(t)?(s.edge=!0,s.es2019=!0):/OPR/.test(t)?(s.opera=!0,s.es2019=!0):/Chrome\/(\d+)/.test(t)&&!i.windowsPhone?(s.chrome=!0,s.chromeVersion=parseInt(RegExp.$1,10),s.es2019=69{var s,n,r,o=i(61068),a={supportInverseAlpha:!1,supportNewBlendModes:!1};t.exports=("function"!=typeof importScripts&&void 0!==document&&(a.supportNewBlendModes=(s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAABAQMAAADD8p2OAAAAA1BMVEX/",n="AAAACklEQVQI12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg==",(r=new Image).onload=function(){var e=new Image;e.onload=function(){var t=o.create2D(e,6).getContext("2d",{willReadFrequently:!0});if(t.globalCompositeOperation="multiply",t.drawImage(r,0,0),t.drawImage(e,2,0),!t.getImageData(2,0,1,1))return!1;t=t.getImageData(2,0,1,1).data;o.remove(e),a.supportNewBlendModes=255===t[0]&&0===t[1]&&0===t[2]},e.src=s+"/wCKxvRF"+n},r.src=s+"AP804Oa6"+n,!1),a.supportInverseAlpha=function(){var t=o.create2D(this,2).getContext("2d",{willReadFrequently:!0}),e=(t.fillStyle="rgba(10, 20, 30, 0.5)",t.fillRect(0,0,1,1),t.getImageData(0,0,1,1));if(null===e)return!1;t.putImageData(e,1,0);t=t.getImageData(1,0,1,1),t=t.data[0]===e.data[0]&&t.data[1]===e.data[1]&&t.data[2]===e.data[2]&&t.data[3]===e.data[3];return o.remove(this),t}()),a)},90185:(t,e,i)=>{var s=i(36580),r=i(1350),o=i(61068),a={canvas:!1,canvasBitBltShift:null,file:!1,fileSystem:!1,getUserMedia:!0,littleEndian:!1,localStorage:!1,pointerLock:!1,stableSort:!1,support32bit:!1,vibration:!1,webGL:!1,worker:!1};t.exports=function(){if("function"!=typeof importScripts){a.canvas=!!window.CanvasRenderingContext2D;try{a.localStorage=!!localStorage.getItem}catch(t){a.localStorage=!1}a.file=!!(window.File&&window.FileReader&&window.FileList&&window.Blob),a.fileSystem=!!window.requestFileSystem;var t,e,i,n=!1;a.webGL=function(){if(window.WebGLRenderingContext)try{var t=o.createWebGL(this),e=t.getContext("webgl")||t.getContext("experimental-webgl"),i=o.create2D(this),s=i.getContext("2d",{willReadFrequently:!0}).createImageData(1,1);return n=s.data instanceof Uint8ClampedArray,o.remove(t),o.remove(i),!!e}catch(t){}return!1}(),a.worker=!!window.Worker,a.pointerLock="pointerLockElement"in document||"mozPointerLockElement"in document||"webkitPointerLockElement"in document,navigator.getUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia||navigator.oGetUserMedia,window.URL=window.URL||window.webkitURL||window.mozURL||window.msURL,a.getUserMedia=a.getUserMedia&&!!navigator.getUserMedia&&!!window.URL,r.firefox&&r.firefoxVersion<21&&(a.getUserMedia=!1),!s.iOS&&(r.ie||r.firefox||r.chrome)&&(a.canvasBitBltShift=!0),(r.safari||r.mobileSafari)&&(a.canvasBitBltShift=!1),navigator.vibrate=navigator.vibrate||navigator.webkitVibrate||navigator.mozVibrate||navigator.msVibrate,navigator.vibrate&&(a.vibration=!0),"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint32Array&&(a.littleEndian=(t=new ArrayBuffer(4),e=new Uint8Array(t),i=new Uint32Array(t),e[0]=161,e[1]=178,e[2]=195,e[3]=212,3569595041===i[0]||2712847316!==i[0]&&null)),a.support32bit="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof Int32Array&&null!==a.littleEndian&&n}return a}()},33553:t=>{var r={available:!1,cancel:"",keyboard:!1,request:""};t.exports=function(){if("function"!=typeof importScripts){for(var t="Fullscreen",e="FullScreen",i=["request"+t,"request"+e,"webkitRequest"+t,"webkitRequest"+e,"msRequest"+t,"msRequest"+e,"mozRequest"+e,"mozRequest"+t],s=0;s{var i=i(1350),s={gamepads:!1,mspointer:!1,touch:!1,wheelEvent:null};t.exports=("function"!=typeof importScripts&&(("ontouchstart"in document.documentElement||navigator.maxTouchPoints&&1<=navigator.maxTouchPoints)&&(s.touch=!0),(navigator.msPointerEnabled||navigator.pointerEnabled)&&(s.mspointer=!0),navigator.getGamepads&&(s.gamepads=!0),"onwheel"in window||i.ie&&"WheelEvent"in window?s.wheelEvent="wheel":"onmousewheel"in window?s.wheelEvent="mousewheel":i.firefox&&"MouseScrollEvent"in window&&(s.wheelEvent="DOMMouseScroll")),s)},36580:t=>{var e,i={android:!1,chromeOS:!1,cordova:!1,crosswalk:!1,desktop:!1,ejecta:!1,electron:!1,iOS:!1,iOSVersion:0,iPad:!1,iPhone:!1,kindle:!1,linux:!1,macOS:!1,node:!1,nodeWebkit:!1,pixelRatio:1,webApp:!1,windows:!1,windowsPhone:!1};t.exports=("function"!=typeof importScripts&&(t=navigator.userAgent,/Windows/.test(t)?i.windows=!0:/Mac OS/.test(t)&&!/like Mac OS/.test(t)?navigator.maxTouchPoints&&2{var n=i(72632),r={h264:!1,hls:!1,mp4:!1,m4v:!1,ogg:!1,vp9:!1,webm:!1,hasRequestVideoFrame:!1};t.exports=function(){if("function"!=typeof importScripts){var t=document.createElement("video"),e=!!t.canPlayType,i=/^no$/;try{e&&(t.canPlayType('video/ogg; codecs="theora"').replace(i,"")&&(r.ogg=!0),t.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(i,"")&&(r.h264=!0,r.mp4=!0),t.canPlayType("video/x-m4v").replace(i,"")&&(r.m4v=!0),t.canPlayType('video/webm; codecs="vp8, vorbis"').replace(i,"")&&(r.webm=!0),t.canPlayType('video/webm; codecs="vp9"').replace(i,"")&&(r.vp9=!0),t.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(i,""))&&(r.hls=!0)}catch(t){}t.parentNode&&t.parentNode.removeChild(t),r.getVideoURL=function(t){Array.isArray(t)||(t=[t]);for(var e=0;e{t.exports={os:i(36580),browser:i(1350),features:i(90185),input:i(95872),audio:i(10720),video:i(53861),fullscreen:i(33553),canvasFeatures:i(98581)}},65246:(t,e,i)=>{var i=i(56694),s=new Float32Array(20),n=new i({initialize:function(){this._matrix=new Float32Array(20),this.alpha=1,this._dirty=!0,this._data=new Float32Array(20),this.reset()},set:function(t){return this._matrix.set(t),this._dirty=!0,this},reset:function(){var t=this._matrix;return t.fill(0),t[0]=1,t[6]=1,t[12]=1,t[18]=1,this.alpha=1,this._dirty=!0,this},getData:function(){var t=this._data;return this._dirty&&(t.set(this._matrix),t[4]/=255,t[9]/=255,t[14]/=255,t[19]/=255,this._dirty=!1),t},brightness:function(t,e){t=void 0===t?0:t;return this.multiply([t,0,0,0,0,0,t,0,0,0,0,0,t,0,0,0,0,0,1,0],e=void 0===e?!1:e)},saturate:function(t,e){var t=2*(t=void 0===t?0:t)/3+1,i=-.5*(t-1);return this.multiply([t,i,i,0,0,i,t,i,0,0,i,i,t,0,0,0,0,0,1,0],e=void 0===e?!1:e)},desaturate:function(t){return this.saturate(-1,t=void 0===t?!1:t)},hue:function(t,e){void 0===e&&(e=!1),t=(t=void 0===t?0:t)/180*Math.PI;var i=Math.cos(t),t=Math.sin(t),s=.213,n=.715,r=.072;return this.multiply([s+.787*i+t*-s,n+i*-n+t*-n,r+i*-r+.928*t,0,0,s+i*-s+.143*t,n+i*(1-n)+.14*t,r+i*-r+-.283*t,0,0,s+i*-s+-.787*t,n+i*-n+t*n,r+.928*i+t*r,0,0,0,0,0,1,0],e)},grayscale:function(t,e){return this.saturate(-(t=void 0===t?1:t),e=void 0===e?!1:e)},blackWhite:function(t){return this.multiply(n.BLACK_WHITE,t=void 0===t?!1:t)},contrast:function(t,e){var t=(t=void 0===t?0:t)+1,i=-.5*(t-1);return this.multiply([t,0,0,0,i,0,t,0,0,i,0,0,t,0,i,0,0,0,1,0],e=void 0===e?!1:e)},negative:function(t){return this.multiply(n.NEGATIVE,t=void 0===t?!1:t)},desaturateLuminance:function(t){return this.multiply(n.DESATURATE_LUMINANCE,t=void 0===t?!1:t)},sepia:function(t){return this.multiply(n.SEPIA,t=void 0===t?!1:t)},night:function(t,e){return this.multiply([-2*(t=void 0===t?.1:t),-t,0,0,0,-t,0,t,0,0,0,t,2*t,0,0,0,0,0,1,0],e=void 0===e?!1:e)},lsd:function(t){return this.multiply(n.LSD,t=void 0===t?!1:t)},brown:function(t){return this.multiply(n.BROWN,t=void 0===t?!1:t)},vintagePinhole:function(t){return this.multiply(n.VINTAGE,t=void 0===t?!1:t)},kodachrome:function(t){return this.multiply(n.KODACHROME,t=void 0===t?!1:t)},technicolor:function(t){return this.multiply(n.TECHNICOLOR,t=void 0===t?!1:t)},polaroid:function(t){return this.multiply(n.POLAROID,t=void 0===t?!1:t)},shiftToBGR:function(t){return this.multiply(n.SHIFT_BGR,t=void 0===t?!1:t)},multiply:function(t,e){(e=void 0===e?!1:e)||this.reset();var e=this._matrix,i=s;return i.set(e),e.set([i[0]*t[0]+i[1]*t[5]+i[2]*t[10]+i[3]*t[15],i[0]*t[1]+i[1]*t[6]+i[2]*t[11]+i[3]*t[16],i[0]*t[2]+i[1]*t[7]+i[2]*t[12]+i[3]*t[17],i[0]*t[3]+i[1]*t[8]+i[2]*t[13]+i[3]*t[18],i[0]*t[4]+i[1]*t[9]+i[2]*t[14]+i[3]*t[19]+i[4],i[5]*t[0]+i[6]*t[5]+i[7]*t[10]+i[8]*t[15],i[5]*t[1]+i[6]*t[6]+i[7]*t[11]+i[8]*t[16],i[5]*t[2]+i[6]*t[7]+i[7]*t[12]+i[8]*t[17],i[5]*t[3]+i[6]*t[8]+i[7]*t[13]+i[8]*t[18],i[5]*t[4]+i[6]*t[9]+i[7]*t[14]+i[8]*t[19]+i[9],i[10]*t[0]+i[11]*t[5]+i[12]*t[10]+i[13]*t[15],i[10]*t[1]+i[11]*t[6]+i[12]*t[11]+i[13]*t[16],i[10]*t[2]+i[11]*t[7]+i[12]*t[12]+i[13]*t[17],i[10]*t[3]+i[11]*t[8]+i[12]*t[13]+i[13]*t[18],i[10]*t[4]+i[11]*t[9]+i[12]*t[14]+i[13]*t[19]+i[14],i[15]*t[0]+i[16]*t[5]+i[17]*t[10]+i[18]*t[15],i[15]*t[1]+i[16]*t[6]+i[17]*t[11]+i[18]*t[16],i[15]*t[2]+i[16]*t[7]+i[17]*t[12]+i[18]*t[17],i[15]*t[3]+i[16]*t[8]+i[17]*t[13]+i[18]*t[18],i[15]*t[4]+i[16]*t[9]+i[17]*t[14]+i[18]*t[19]+i[19]]),this._dirty=!0,this}});n.BLACK_WHITE=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0],n.NEGATIVE=[-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0],n.DESATURATE_LUMINANCE=[.2764723,.929708,.0938197,0,-37.1,.2764723,.929708,.0938197,0,-37.1,.2764723,.929708,.0938197,0,-37.1,0,0,0,1,0],n.SEPIA=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0],n.LSD=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0],n.BROWN=[.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0],n.VINTAGE=[.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0],n.KODACHROME=[1.1285582396593525,-.3967382283601348,-.03992559172921793,0,63.72958762196502,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,24.732407896706203,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,35.62982807460946,0,0,0,1,0],n.TECHNICOLOR=[1.9125277891456083,-.8545344976951645,-.09155508482755585,0,11.793603434377337,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-70.35205161461398,-.231103377548616,-.7501899197440212,1.847597816108189,0,30.950940869491138,0,0,0,1,0],n.POLAROID=[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],n.SHIFT_BGR=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0],t.exports=n},39298:(t,e,i)=>{var s=i(56694),n=i(72283),i=new s({initialize:function(t,e,i){this._rgb=[0,0,0],this.onChangeCallback=n,this.dirty=!1,this.set(t,e,i)},set:function(t,e,i){return this._rgb=[t=void 0===t?0:t,e=void 0===e?0:e,i=void 0===i?0:i],this.onChange(),this},equals:function(t,e,i){var s=this._rgb;return s[0]===t&&s[1]===e&&s[2]===i},onChange:function(){this.dirty=!0;var t=this._rgb;this.onChangeCallback.call(this,t[0],t[1],t[2])},r:{get:function(){return this._rgb[0]},set:function(t){this._rgb[0]=t,this.onChange()}},g:{get:function(){return this._rgb[1]},set:function(t){this._rgb[1]=t,this.onChange()}},b:{get:function(){return this._rgb[2]},set:function(t){this._rgb[2]=t,this.onChange()}},destroy:function(){this.onChangeCallback=null}});t.exports=i},84093:t=>{t.exports={TOP_LEFT:0,TOP_CENTER:1,TOP_RIGHT:2,LEFT_TOP:3,LEFT_CENTER:4,LEFT_BOTTOM:5,CENTER:6,RIGHT_TOP:7,RIGHT_CENTER:8,RIGHT_BOTTOM:9,BOTTOM_LEFT:10,BOTTOM_CENTER:11,BOTTOM_RIGHT:12}},32058:(t,e,i)=>{var n=i(97328),r=i(59994),o=i(73174),a=i(28417);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),a(t,r(e)+i),o(t,n(e)+s),t}},85535:(t,e,i)=>{var n=i(97328),r=i(40163),o=i(73174),a=i(74465);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),a(t,r(e)-i),o(t,n(e)+s),t}},9605:(t,e,i)=>{var n=i(97328),r=i(70271),o=i(73174),a=i(19298);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),a(t,r(e)+i),o(t,n(e)+s),t}},22529:(t,e,i)=>{var n=i(21843),r=i(59994),o=i(29568);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),n(t,r(e)+i,o(e)+s),t}},5739:(t,e,i)=>{var n=i(29568),r=i(40163),o=i(81711),a=i(74465);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),a(t,r(e)-i),o(t,n(e)+s),t}},40327:(t,e,i)=>{var s=i(84093),r=[];r[s.BOTTOM_CENTER]=i(32058),r[s.BOTTOM_LEFT]=i(85535),r[s.BOTTOM_RIGHT]=i(9605),r[s.CENTER]=i(22529),r[s.LEFT_CENTER]=i(5739),r[s.RIGHT_CENTER]=i(27683),r[s.TOP_CENTER]=i(96439),r[s.TOP_LEFT]=i(81447),r[s.TOP_RIGHT]=i(47888),r[s.LEFT_BOTTOM]=r[s.BOTTOM_LEFT],r[s.LEFT_TOP]=r[s.TOP_LEFT],r[s.RIGHT_BOTTOM]=r[s.BOTTOM_RIGHT],r[s.RIGHT_TOP]=r[s.TOP_RIGHT],t.exports=function(t,e,i,s,n){return r[i](t,e,s,n)}},27683:(t,e,i)=>{var n=i(29568),r=i(70271),o=i(81711),a=i(19298);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),a(t,r(e)+i),o(t,n(e)+s),t}},96439:(t,e,i)=>{var n=i(59994),r=i(47196),o=i(28417),a=i(84349);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),o(t,n(e)+i),a(t,r(e)-s),t}},81447:(t,e,i)=>{var n=i(40163),r=i(47196),o=i(74465),a=i(84349);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),o(t,n(e)-i),a(t,r(e)-s),t}},47888:(t,e,i)=>{var n=i(70271),r=i(47196),o=i(19298),a=i(84349);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),o(t,n(e)+i),a(t,r(e)-s),t}},46997:(t,e,i)=>{t.exports={BottomCenter:i(32058),BottomLeft:i(85535),BottomRight:i(9605),Center:i(22529),LeftCenter:i(5739),QuickSet:i(40327),RightCenter:i(27683),TopCenter:i(96439),TopLeft:i(81447),TopRight:i(47888)}},93545:(t,e,i)=>{var s=i(84093),i=i(98611)(!1,{In:i(46997),To:i(86639)},s);t.exports=i},27118:(t,e,i)=>{var n=i(97328),r=i(59994),o=i(28417),a=i(84349);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),o(t,r(e)+i),a(t,n(e)+s),t}},84469:(t,e,i)=>{var n=i(97328),r=i(40163),o=i(74465),a=i(84349);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),o(t,r(e)-i),a(t,n(e)+s),t}},51577:(t,e,i)=>{var n=i(97328),r=i(70271),o=i(19298),a=i(84349);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),o(t,r(e)+i),a(t,n(e)+s),t}},90271:(t,e,i)=>{var n=i(97328),r=i(40163),o=i(73174),a=i(19298);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),a(t,r(e)-i),o(t,n(e)+s),t}},30466:(t,e,i)=>{var n=i(29568),r=i(40163),o=i(81711),a=i(19298);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),a(t,r(e)-i),o(t,n(e)+s),t}},50087:(t,e,i)=>{var n=i(40163),r=i(47196),o=i(19298),a=i(84349);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),o(t,n(e)-i),a(t,r(e)-s),t}},82590:(t,e,i)=>{var s=i(84093),r=[];r[s.BOTTOM_CENTER]=i(27118),r[s.BOTTOM_LEFT]=i(84469),r[s.BOTTOM_RIGHT]=i(51577),r[s.LEFT_BOTTOM]=i(90271),r[s.LEFT_CENTER]=i(30466),r[s.LEFT_TOP]=i(50087),r[s.RIGHT_BOTTOM]=i(13555),r[s.RIGHT_CENTER]=i(99049),r[s.RIGHT_TOP]=i(67788),r[s.TOP_CENTER]=i(78170),r[s.TOP_LEFT]=i(54145),r[s.TOP_RIGHT]=i(75548),t.exports=function(t,e,i,s,n){return r[i](t,e,s,n)}},13555:(t,e,i)=>{var n=i(97328),r=i(70271),o=i(73174),a=i(74465);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),a(t,r(e)+i),o(t,n(e)+s),t}},99049:(t,e,i)=>{var n=i(29568),r=i(70271),o=i(81711),a=i(74465);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),a(t,r(e)+i),o(t,n(e)+s),t}},67788:(t,e,i)=>{var n=i(70271),r=i(47196),o=i(74465),a=i(84349);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),o(t,n(e)+i),a(t,r(e)-s),t}},78170:(t,e,i)=>{var n=i(59994),r=i(47196),o=i(73174),a=i(28417);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),a(t,n(e)+i),o(t,r(e)-s),t}},54145:(t,e,i)=>{var n=i(40163),r=i(47196),o=i(73174),a=i(74465);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),a(t,n(e)-i),o(t,r(e)-s),t}},75548:(t,e,i)=>{var n=i(70271),r=i(47196),o=i(73174),a=i(19298);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),a(t,n(e)+i),o(t,r(e)-s),t}},86639:(t,e,i)=>{t.exports={BottomCenter:i(27118),BottomLeft:i(84469),BottomRight:i(51577),LeftBottom:i(90271),LeftCenter:i(30466),LeftTop:i(50087),QuickSet:i(82590),RightBottom:i(13555),RightCenter:i(99049),RightTop:i(67788),TopCenter:i(78170),TopLeft:i(54145),TopRight:i(75548)}},21843:(t,e,i)=>{var s=i(28417),n=i(81711);t.exports=function(t,e,i){return s(t,e),n(t,i)}},97328:t=>{t.exports=function(t){return t.y+t.height-t.height*t.originY}},7126:(t,e,i)=>{var n=i(97328),r=i(40163),o=i(70271),a=i(47196),h=i(74118);t.exports=function(t,e){void 0===e&&(e=new h);var i=r(t),s=a(t);return e.x=i,e.y=s,e.width=o(t)-i,e.height=n(t)-s,e}},59994:t=>{t.exports=function(t){return t.x-t.width*t.originX+.5*t.width}},29568:t=>{t.exports=function(t){return t.y-t.height*t.originY+.5*t.height}},40163:t=>{t.exports=function(t){return t.x-t.width*t.originX}},52088:t=>{t.exports=function(t){return t.width*t.originX}},23379:t=>{t.exports=function(t){return t.height*t.originY}},70271:t=>{t.exports=function(t){return t.x+t.width-t.width*t.originX}},47196:t=>{t.exports=function(t){return t.y-t.height*t.originY}},73174:t=>{t.exports=function(t,e){return t.y=e-t.height+t.height*t.originY,t}},28417:t=>{t.exports=function(t,e){var i=t.width*t.originX;return t.x=e+i-.5*t.width,t}},81711:t=>{t.exports=function(t,e){var i=t.height*t.originY;return t.y=e+i-.5*t.height,t}},74465:t=>{t.exports=function(t,e){return t.x=e+t.width*t.originX,t}},19298:t=>{t.exports=function(t,e){return t.x=e-t.width+t.width*t.originX,t}},84349:t=>{t.exports=function(t,e){return t.y=e+t.height*t.originY,t}},15252:(t,e,i)=>{t.exports={CenterOn:i(21843),GetBottom:i(97328),GetBounds:i(7126),GetCenterX:i(59994),GetCenterY:i(29568),GetLeft:i(40163),GetOffsetX:i(52088),GetOffsetY:i(23379),GetRight:i(70271),GetTop:i(47196),SetBottom:i(73174),SetCenterX:i(28417),SetCenterY:i(81711),SetLeft:i(74465),SetRight:i(19298),SetTop:i(84349)}},70616:t=>{t.exports={setCrisp:function(e){return["optimizeSpeed","-moz-crisp-edges","-o-crisp-edges","-webkit-optimize-contrast","optimize-contrast","crisp-edges","pixelated"].forEach(function(t){e.style["image-rendering"]=t}),e.style.msInterpolationMode="nearest-neighbor",e},setBicubic:function(t){return t.style["image-rendering"]="auto",t.style.msInterpolationMode="bicubic",t}}},61068:(t,e,i)=>{var s,o,n,a=i(86459),h=i(8213),l=[],u=!1;t.exports={create2D:function(t,e,i){return s(t,e,i,a.CANVAS)},create:s=function(t,e,i,s,n){void 0===e&&(e=1),void 0===i&&(i=1),void 0===s&&(s=a.CANVAS),void 0===n&&(n=!1);var r=o(s),t=(null===r?(r={parent:t,canvas:document.createElement("canvas"),type:s},s===a.CANVAS&&l.push(r)):r.parent=t,r.canvas);return n&&(r.parent=t),t.width=e,t.height=i,u&&s===a.CANVAS&&h.disable(t.getContext("2d",{willReadFrequently:!1})),t},createWebGL:function(t,e,i){return s(t,e,i,a.WEBGL)},disableSmoothing:function(){u=!0},enableSmoothing:function(){u=!1},first:o=function(t){if((t=void 0===t?a.CANVAS:t)!==a.WEBGL)for(var e=0;e{var e,i="";t.exports={disable:function(t){return(i=""===i?e(t):i)&&(t[i]=!1),t},enable:function(t){return(i=""===i?e(t):i)&&(t[i]=!0),t},getPrefix:e=function(t){for(var e=["i","webkitI","msI","mozI","oI"],i=0;i{t.exports=function(t,e){return t.style.msTouchAction=e=void 0===e?"none":e,t.style["ms-touch-action"]=e,t.style["touch-action"]=e,t}},36505:t=>{t.exports=function(e,i){return void 0===i&&(i="none"),["-webkit-","-khtml-","-moz-","-ms-",""].forEach(function(t){e.style[t+"user-select"]=i}),e.style["-webkit-touch-callout"]=i,e.style["-webkit-tap-highlight-color"]="rgba(0, 0, 0, 0)",e}},23514:(t,e,i)=>{t.exports={CanvasInterpolation:i(70616),CanvasPool:i(61068),Smoothing:i(8213),TouchAction:i(59271),UserSelect:i(36505)}},27119:(t,e,i)=>{var s=i(56694),r=i(22946),o=i(5657),n=i(24650),a=i(68033),h=new s({initialize:function(t,e,i,s){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=255),this.r=0,this.g=0,this.b=0,this.a=255,this._h=0,this._s=0,this._v=0,this._locked=!1,this.gl=[0,0,0,1],this._color=0,this._color32=0,this._rgba="",this.setTo(t,e,i,s)},transparent:function(){return this._locked=!0,this.red=0,this.green=0,this.blue=0,this.alpha=0,this._locked=!1,this.update(!0)},setTo:function(t,e,i,s,n){return void 0===s&&(s=255),void 0===n&&(n=!0),this._locked=!0,this.red=t,this.green=e,this.blue=i,this.alpha=s,this._locked=!1,this.update(n)},setGLTo:function(t,e,i,s){return void 0===s&&(s=1),this._locked=!0,this.redGL=t,this.greenGL=e,this.blueGL=i,this.alphaGL=s,this._locked=!1,this.update(!0)},setFromRGB:function(t){return this._locked=!0,this.red=t.r,this.green=t.g,this.blue=t.b,t.hasOwnProperty("a")&&(this.alpha=t.a),this._locked=!1,this.update(!0)},setFromHSV:function(t,e,i){return n(t,e,i,this)},update:function(t){var e,i,s,n;return void 0===t&&(t=!1),this._locked||(e=this.r,i=this.g,s=this.b,n=this.a,this._color=r(e,i,s),this._color32=o(e,i,s,n),this._rgba="rgba("+e+","+i+","+s+","+n/255+")",t&&a(e,i,s,this)),this},updateHSV:function(){var t=this.r,e=this.g,i=this.b;return a(t,e,i,this),this},clone:function(){return new h(this.r,this.g,this.b,this.a)},gray:function(t){return this.setTo(t,t,t)},random:function(t,e){void 0===t&&(t=0),void 0===e&&(e=255);var i=Math.floor(t+Math.random()*(e-t)),s=Math.floor(t+Math.random()*(e-t)),e=Math.floor(t+Math.random()*(e-t));return this.setTo(i,s,e)},randomGray:function(t,e){void 0===t&&(t=0),void 0===e&&(e=255);e=Math.floor(t+Math.random()*(e-t));return this.setTo(e,e,e)},saturate:function(t){return this.s+=t/100,this},desaturate:function(t){return this.s-=t/100,this},lighten:function(t){return this.v+=t/100,this},darken:function(t){return this.v-=t/100,this},brighten:function(t){var e=this.r,i=this.g,s=this.b,e=Math.max(0,Math.min(255,e-Math.round(-t/100*255))),i=Math.max(0,Math.min(255,i-Math.round(-t/100*255))),s=Math.max(0,Math.min(255,s-Math.round(-t/100*255)));return this.setTo(e,i,s)},color:{get:function(){return this._color}},color32:{get:function(){return this._color32}},rgba:{get:function(){return this._rgba}},redGL:{get:function(){return this.gl[0]},set:function(t){this.gl[0]=Math.min(Math.abs(t),1),this.r=Math.floor(255*this.gl[0]),this.update(!0)}},greenGL:{get:function(){return this.gl[1]},set:function(t){this.gl[1]=Math.min(Math.abs(t),1),this.g=Math.floor(255*this.gl[1]),this.update(!0)}},blueGL:{get:function(){return this.gl[2]},set:function(t){this.gl[2]=Math.min(Math.abs(t),1),this.b=Math.floor(255*this.gl[2]),this.update(!0)}},alphaGL:{get:function(){return this.gl[3]},set:function(t){this.gl[3]=Math.min(Math.abs(t),1),this.a=Math.floor(255*this.gl[3]),this.update()}},red:{get:function(){return this.r},set:function(t){t=Math.floor(Math.abs(t)),this.r=Math.min(t,255),this.gl[0]=t/255,this.update(!0)}},green:{get:function(){return this.g},set:function(t){t=Math.floor(Math.abs(t)),this.g=Math.min(t,255),this.gl[1]=t/255,this.update(!0)}},blue:{get:function(){return this.b},set:function(t){t=Math.floor(Math.abs(t)),this.b=Math.min(t,255),this.gl[2]=t/255,this.update(!0)}},alpha:{get:function(){return this.a},set:function(t){t=Math.floor(Math.abs(t)),this.a=Math.min(t,255),this.gl[3]=t/255,this.update()}},h:{get:function(){return this._h},set:function(t){this._h=t,n(t,this._s,this._v,this)}},s:{get:function(){return this._s},set:function(t){this._s=t,n(this._h,t,this._v,this)}},v:{get:function(){return this._v},set:function(t){this._v=t,n(this._h,this._s,t,this)}}});t.exports=h},30245:(t,e,i)=>{var l=i(22946);t.exports=function(t){void 0===t&&(t=1024);for(var e=[],i=255,s=0,n=0,r=0;r<=255;r++)e.push({r:i,g:r,b:n,color:l(i,r,n)});for(r=s=255;0<=r;r--)e.push({r:r,g:s,b:n,color:l(r,s,n)});for(r=i=0;r<=255;r++,s--)e.push({r:i,g:s,b:r,color:l(i,s,r)});for(n=255,r=s=0;r<=255;r++,n--,i++)e.push({r:i,g:s,b:n,color:l(i,s,n)});if(1024===t)return e;var o=[],a=0,h=1024/t;for(r=0;r{t.exports=function(t){var e={r:t>>16&255,g:t>>8&255,b:255&t,a:255};return 16777215>>24),e}},25409:t=>{t.exports=function(t){t=t.toString(16);return 1===t.length?"0"+t:t}},22946:t=>{t.exports=function(t,e,i){return t<<16|e<<8|i}},5657:t=>{t.exports=function(t,e,i,s){return s<<24|t<<16|e<<8|i}},74777:(t,e,i)=>{var o=i(27119),a=i(59998);t.exports=function(t,e,i){var s=i,n=i,r=i;return 0!==e&&(s=a(e=2*i-(i=i<.5?i*(1+e):i+e-i*e),i,t+1/3),n=a(e,i,t),r=a(e,i,t-1/3)),(new o).setGLTo(s,n,r,1)}},89263:(t,e,i)=>{var n=i(24650);t.exports=function(t,e){void 0===t&&(t=1),void 0===e&&(e=1);for(var i=[],s=0;s<=359;s++)i.push(n(s/359,t,e));return i}},24650:(t,e,i)=>{var o=i(22946);function a(t,e,i,s){t=(t+6*e)%6,e=Math.min(t,4-t,1);return Math.round(255*(s-s*i*Math.max(0,e)))}t.exports=function(t,e,i,s){var n=a(5,t,e=void 0===e?1:e,i=void 0===i?1:i),r=a(3,t,e,i),t=a(1,t,e,i);return s?s.setTo?s.setTo(n,r,t,s.alpha,!0):(s.r=n,s.g=r,s.b=t,s.color=o(n,r,t),s):{r:n,g:r,b:t,color:o(n,r,t)}}},91487:(t,e,i)=>{var n=i(27119);t.exports=function(t){var e,i,s=new n,t=(t=t.replace(/^(?:#|0x)?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,i,s){return e+e+i+i+s+s}),/^(?:#|0x)?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t));return t&&(e=parseInt(t[1],16),i=parseInt(t[2],16),t=parseInt(t[3],16),s.setTo(e,i,t)),s}},59998:t=>{t.exports=function(t,e,i){return i<0&&(i+=1),1{var s=i(27119),n=i(15978);t.exports=function(t){t=n(t);return new s(t.r,t.g,t.b,t.a)}},15978:t=>{t.exports=function(t){return 16777215>>24,r:t>>16&255,g:t>>8&255,b:255&t}:{a:255,r:t>>16&255,g:t>>8&255,b:255&t}}},53756:(t,e,i)=>{function o(t,e,i,s,n,r,o,a){return a=(a=void 0===a?0:a)/(o=void 0===o?100:o),{r:h(t,s,a),g:h(e,n,a),b:h(i,r,a)}}var h=i(42798);t.exports={RGBWithRGB:o,ColorWithRGB:function(t,e,i,s,n,r){return o(t.r,t.g,t.b,e,i,s,n=void 0===n?100:n,r=void 0===r?0:r)},ColorWithColor:function(t,e,i,s){return o(t.r,t.g,t.b,e.r,e.g,e.b,i=void 0===i?100:i,s=void 0===s?0:s)}}},73904:(t,e,i)=>{var s=i(27119);t.exports=function(t){return new s(t.r,t.g,t.b,t.a)}},26841:(t,e,i)=>{var r=i(27119);t.exports=function(t){var e,i,s,n=new r,t=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d+(?:\.\d+)?))?\s*\)$/.exec(t.toLowerCase());return t&&(e=parseInt(t[1],10),i=parseInt(t[2],10),s=parseInt(t[3],10),t=void 0!==t[4]?parseFloat(t[4]):1,n.setTo(e,i,s,255*t)),n}},68033:t=>{t.exports=function(t,e,i,s){void 0===s&&(s={h:0,s:0,v:0}),t/=255,e/=255,i/=255;var n=Math.min(t,e,i),r=Math.max(t,e,i),o=r-n,a=0,h=0===r?0:o/r,l=r;return r!==n&&(r===t?a=(e-i)/o+(e{var r=i(25409);t.exports=function(t,e,i,s,n){return void 0===s&&(s=255),"#"===(n=void 0===n?"#":n)?"#"+((1<<24)+(t<<16)+(e<<8)+i).toString(16).slice(1,7):"0x"+r(s)+r(t)+r(e)+r(i)}},37243:(t,e,i)=>{var s=i(17489),n=i(27119);t.exports=function(t,e){return new n(s(t=void 0===t?0:t,e=void 0===e?255:e),s(t,e),s(t,e))}},93222:(t,e,i)=>{var s=i(91487),n=i(74853),r=i(73904),o=i(26841);t.exports=function(t){switch(typeof t){case"string":return("rgb"===t.substr(0,3).toLowerCase()?o:s)(t);case"number":return n(t);case"object":return r(t)}}},95509:(t,e,i)=>{var s=i(27119);s.ColorSpectrum=i(30245),s.ColorToRGBA=i(86672),s.ComponentToHex=i(25409),s.GetColor=i(22946),s.GetColor32=i(5657),s.HexStringToColor=i(91487),s.HSLToColor=i(74777),s.HSVColorWheel=i(89263),s.HSVToRGB=i(24650),s.HueToComponent=i(59998),s.IntegerToColor=i(74853),s.IntegerToRGB=i(15978),s.Interpolate=i(53756),s.ObjectToColor=i(73904),s.RandomRGB=i(37243),s.RGBStringToColor=i(26841),s.RGBToHSV=i(68033),s.RGBToString=i(4880),s.ValueToColor=i(93222),t.exports=s},24816:(t,e,i)=>{t.exports={Align:i(93545),BaseShader:i(31053),Bounds:i(15252),Canvas:i(23514),Color:i(95509),ColorMatrix:i(65246),Masks:i(93310),RGB:i(39298)}},76756:(t,e,i)=>{var s=i(56694),i=i(61286),r=new s({initialize:function(t,e,i,s,n,r){e=e||t.sys.make.image({x:i,y:s,key:n,frame:r,add:!1}),this.bitmapMask=e,this.invertAlpha=!1,this.isStencil=!1},setBitmap:function(t){this.bitmapMask=t},preRenderWebGL:function(t,e,i){t.pipelines.BITMAPMASK_PIPELINE.beginMask(this,e,i)},postRenderWebGL:function(t,e,i){t.pipelines.BITMAPMASK_PIPELINE.endMask(this,e,i)},preRenderCanvas:function(){},postRenderCanvas:function(){},destroy:function(){this.bitmapMask=null}});i.register("bitmapMask",function(t,e,i,s,n){return new r(this.scene,t,e,i,s,n)}),t.exports=r},63037:(t,e,i)=>{i=new(i(56694))({initialize:function(t,e){this.geometryMask=e,this.invertAlpha=!1,this.isStencil=!0,this.level=0},setShape:function(t){return this.geometryMask=t,this},setInvertAlpha:function(t){return this.invertAlpha=t=void 0===t?!0:t,this},preRenderWebGL:function(t,e,i){var s=t.gl;t.flush(),0===t.maskStack.length&&(s.enable(s.STENCIL_TEST),s.clear(s.STENCIL_BUFFER_BIT),t.maskCount=0),t.currentCameraMask.mask!==this&&(t.currentMask.mask=this),t.maskStack.push({mask:this,camera:i}),this.applyStencil(t,i,!0),t.maskCount++},applyStencil:function(t,e,i){var s=t.gl,n=this.geometryMask,r=t.maskCount;s.colorMask(!1,!1,!1,!1),i?(s.stencilFunc(s.EQUAL,r,255),s.stencilOp(s.KEEP,s.KEEP,s.INCR),r++):(s.stencilFunc(s.EQUAL,r+1,255),s.stencilOp(s.KEEP,s.KEEP,s.DECR)),this.level=r,n.renderWebGL(t,n,e),t.flush(),s.colorMask(!0,!0,!0,!0),s.stencilOp(s.KEEP,s.KEEP,s.KEEP),this.invertAlpha?s.stencilFunc(s.NOTEQUAL,r,255):s.stencilFunc(s.EQUAL,r,255)},postRenderWebGL:function(t){var e=t.gl,i=(t.maskStack.pop(),t.maskCount--,t.flush(),t.currentMask);0===t.maskStack.length?(i.mask=null,e.disable(e.STENCIL_TEST)):((e=t.maskStack[t.maskStack.length-1]).mask.applyStencil(t,e.camera,!1),t.currentCameraMask.mask!==e.mask?(i.mask=e.mask,i.camera=e.camera):i.mask=null)},preRenderCanvas:function(t,e,i){var s=this.geometryMask;t.currentContext.save(),s.renderCanvas(t,s,i,null,null,!0),t.currentContext.clip()},postRenderCanvas:function(t){t.currentContext.restore()},destroy:function(){this.geometryMask=null}});t.exports=i},93310:(t,e,i)=>{t.exports={BitmapMask:i(76756),GeometryMask:i(63037)}},31053:(t,e,i)=>{i=new(i(56694))({initialize:function(t,e,i,s){e&&""!==e||(e=["precision mediump float;","uniform vec2 resolution;","varying vec2 fragCoord;","void main () {"," vec2 uv = fragCoord / resolution.xy;"," gl_FragColor = vec4(uv.xyx, 1.0);","}"].join("\n")),i&&""!==i||(i=["precision mediump float;","uniform mat4 uProjectionMatrix;","uniform mat4 uViewMatrix;","uniform vec2 uResolution;","attribute vec2 inPosition;","varying vec2 fragCoord;","varying vec2 outTexCoord;","void main () {"," gl_Position = uProjectionMatrix * uViewMatrix * vec4(inPosition, 1.0, 1.0);"," fragCoord = vec2(inPosition.x, uResolution.y - inPosition.y);"," outTexCoord = vec2(inPosition.x / uResolution.x, fragCoord.y / uResolution.y);","}"].join("\n")),void 0===s&&(s=null),this.key=t,this.fragmentSrc=e,this.vertexSrc=i,this.uniforms=s}});t.exports=i},99584:t=>{t.exports=function(t,e){var i;if(e)"string"==typeof e?i=document.getElementById(e):"object"==typeof e&&1===e.nodeType&&(i=e);else if(t.parentElement||null===e)return t;return(i=i||document.body).appendChild(t),t}},85178:(t,e,i)=>{var s=i(99584);t.exports=function(t){var e,i=t.config;i.parent&&i.domCreateContainer&&((e=document.createElement("div")).style.cssText=["display: block;","width: "+t.scale.width+"px;","height: "+t.scale.height+"px;","padding: 0; margin: 0;","position: absolute;","overflow: hidden;","pointer-events: "+i.domPointerEvents+";","transform: scale(1);","transform-origin: left top;"].join(" "),t.domContainer=e,s(e,i.parent))}},21546:(t,e,i)=>{var s=i(36580);t.exports=function(t){var e;"complete"!==document.readyState&&"interactive"!==document.readyState?(e=function(){document.removeEventListener("deviceready",e,!0),document.removeEventListener("DOMContentLoaded",e,!0),window.removeEventListener("load",e,!0),t()},document.body?s.cordova?document.addEventListener("deviceready",e,!1):(document.addEventListener("DOMContentLoaded",e,!0),window.addEventListener("load",e,!0)):window.setTimeout(e,20)):t()}},74181:t=>{t.exports=function(t){var e,i;return t?(t=Math.abs(window.orientation),e={w:0,h:0},(i=document.createElement("div")).setAttribute("style","position: fixed; height: 100vh; width: 0; top: 0"),document.documentElement.appendChild(i),e.w=90===t?i.offsetHeight:window.innerWidth,e.h=90===t?window.innerWidth:i.offsetHeight,document.documentElement.removeChild(i),i=null,90!==Math.abs(window.orientation)?e.h:e.w):window.innerHeight}},9229:(t,e,i)=>{var s=i(55301);t.exports=function(t,e){var i=window.screen,i=!!i&&(i.orientation||i.mozOrientation||i.msOrientation);return i&&"string"==typeof i.type?i.type:"string"==typeof i?i:"number"==typeof window.orientation?0===window.orientation||180===window.orientation?s.ORIENTATION.PORTRAIT:s.ORIENTATION.LANDSCAPE:window.matchMedia?window.matchMedia("(orientation: portrait)").matches?s.ORIENTATION.PORTRAIT:window.matchMedia("(orientation: landscape)").matches?s.ORIENTATION.LANDSCAPE:void 0:t{t.exports=function(t){var e;return""!==t&&("string"==typeof t?e=document.getElementById(t):t&&1===t.nodeType&&(e=t)),e=e||document.body}},89200:t=>{t.exports=function(t){var e="";try{window.DOMParser?e=(new DOMParser).parseFromString(t,"text/xml"):(e=new ActiveXObject("Microsoft.XMLDOM")).loadXML(t)}catch(t){e=null}return e&&e.documentElement&&!e.getElementsByTagName("parsererror").length?e:null}},55638:t=>{t.exports=function(t){t.parentNode&&t.parentNode.removeChild(t)}},27385:(t,e,i)=>{var s=i(56694),n=i(72283),i=new s({initialize:function(){this.isRunning=!1,this.callback=n,this.isSetTimeOut=!1,this.timeOutID=null,this.delay=0;var i=this;this.step=function t(e){i.callback(e),i.isRunning&&(i.timeOutID=window.requestAnimationFrame(t))},this.stepTimeout=function t(){i.isRunning&&(i.timeOutID=window.setTimeout(t,i.delay)),i.callback(window.performance.now())}},start:function(t,e,i){this.isRunning||(this.callback=t,this.isSetTimeOut=e,this.delay=i,this.isRunning=!0,this.timeOutID=e?window.setTimeout(this.stepTimeout,0):window.requestAnimationFrame(this.step))},stop:function(){this.isRunning=!1,this.isSetTimeOut?clearTimeout(this.timeOutID):window.cancelAnimationFrame(this.timeOutID)},destroy:function(){this.stop(),this.callback=n}});t.exports=i},3590:(t,e,i)=>{i={AddToDOM:i(99584),DOMContentLoaded:i(21546),GetInnerHeight:i(74181),GetScreenOrientation:i(9229),GetTarget:i(2893),ParseXML:i(89200),RemoveFromDOM:i(55638),RequestAnimationFrame:i(27385)};t.exports=i},78491:(t,e,i)=>{var s=i(56694),n=i(6659),i=i(91963),s=new s({Extends:n,initialize:function(){n.call(this)},shutdown:function(){this.removeAllListeners()},destroy:function(){this.removeAllListeners()}});i.register("EventEmitter",s,"events"),t.exports=s},95146:(t,e,i)=>{t.exports={EventEmitter:i(78491)}},20170:(t,e,i)=>{var s=i(56694),n=i(47551),r=i(47406),i=new s({Extends:n,initialize:function(t,e){void 0===e&&(e=1),n.call(this,r.BARREL,t),this.amount=e}});t.exports=i},51182:(t,e,i)=>{var s=i(56694),a=i(47551),h=i(47406),i=new s({Extends:a,initialize:function(t,e,i,s,n,r,o){void 0===i&&(i=1),void 0===s&&(s=1),void 0===n&&(n=1),void 0===r&&(r=1),void 0===o&&(o=4),a.call(this,h.BLOOM,t),this.steps=o,this.offsetX=i,this.offsetY=s,this.blurStrength=n,this.strength=r,this.glcolor=[1,1,1],null!=e&&(this.color=e)},color:{get:function(){var t=this.glcolor;return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)},set:function(t){var e=this.glcolor;e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255}}});t.exports=i},51498:(t,e,i)=>{var s=i(56694),a=i(47551),h=i(47406),i=new s({Extends:a,initialize:function(t,e,i,s,n,r,o){void 0===e&&(e=0),void 0===i&&(i=2),void 0===s&&(s=2),void 0===n&&(n=1),void 0===o&&(o=4),a.call(this,h.BLUR,t),this.quality=0,this.x=i,this.y=s,this.steps=o,this.strength=n,this.glcolor=[1,1,1],null!=r&&(this.color=r)},color:{get:function(){var t=this.glcolor;return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)},set:function(t){var e=this.glcolor;e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255}}});t.exports=i},12042:(t,e,i)=>{var s=i(56694),h=i(47551),l=i(47406),i=new s({Extends:h,initialize:function(t,e,i,s,n,r,o,a){void 0===e&&(e=.5),void 0===i&&(i=1),void 0===s&&(s=.2),void 0===n&&(n=!1),void 0===r&&(r=1),void 0===o&&(o=1),void 0===a&&(a=1),h.call(this,l.BOKEH,t),this.radius=e,this.amount=i,this.contrast=s,this.isTiltShift=n,this.strength=a,this.blurX=r,this.blurY=o}});t.exports=i},69900:(t,e,i)=>{var s=i(56694),o=i(47551),a=i(47406),i=new s({Extends:o,initialize:function(t,e,i,s,n,r){void 0===e&&(e=8),void 0===n&&(n=1),void 0===r&&(r=.005),o.call(this,a.CIRCLE,t),this.scale=n,this.feather=r,this.thickness=e,this.glcolor=[1,.2,.7],this.glcolor2=[1,0,0,.4],null!=i&&(this.color=i),null!=s&&(this.backgroundColor=s)},color:{get:function(){var t=this.glcolor;return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)},set:function(t){var e=this.glcolor;e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255}},backgroundColor:{get:function(){var t=this.glcolor2;return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)},set:function(t){var e=this.glcolor2;e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255}}});t.exports=i},48991:(t,e,i)=>{var s=i(56694),n=i(65246),r=i(47406),i=new s({Extends:n,initialize:function(t){n.call(this),this.type=r.COLOR_MATRIX,this.gameObject=t,this.active=!0},destroy:function(){this.gameObject=null,this._matrix=null,this._data=null}});t.exports=i},47551:(t,e,i)=>{i=new(i(56694))({initialize:function(t,e){this.type=t,this.gameObject=e,this.active=!0},setActive:function(t){return this.active=t,this},destroy:function(){this.gameObject=null,this.active=!1}});t.exports=i},47909:(t,e,i)=>{var s=i(56694),n=i(47551),r=i(47406),i=new s({Extends:n,initialize:function(t,e,i,s){void 0===e&&(e="__WHITE"),void 0===i&&(i=.005),void 0===s&&(s=.005),n.call(this,r.DISPLACEMENT,t),this.x=i,this.y=s,this.glTexture,this.setTexture(e)},setTexture:function(t){t=this.gameObject.scene.sys.textures.getFrame(t);return t&&(this.glTexture=t.glTexture),this}});t.exports=i},18919:(t,e,i)=>{var s=i(56694),r=i(47551),o=i(47406),i=new s({Extends:r,initialize:function(t,e,i,s,n){void 0===i&&(i=4),void 0===s&&(s=0),void 0===n&&(n=!1),r.call(this,o.GLOW,t),this.outerStrength=i,this.innerStrength=s,this.knockout=n,this.glcolor=[1,1,1,1],void 0!==e&&(this.color=e)},color:{get:function(){var t=this.glcolor;return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)},set:function(t){var e=this.glcolor;e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255}}});t.exports=i},62494:(t,e,i)=>{var s=i(56694),l=i(47551),u=i(47406),i=new s({Extends:l,initialize:function(t,e,i,s,n,r,o,a,h){void 0===s&&(s=.2),void 0===n&&(n=0),void 0===r&&(r=0),void 0===o&&(o=0),void 0===a&&(a=1),void 0===h&&(h=0),l.call(this,u.GRADIENT,t),this.alpha=s,this.size=h,this.fromX=n,this.fromY=r,this.toX=o,this.toY=a,this.glcolor1=[255,0,0],this.glcolor2=[0,255,0],null!=e&&(this.color1=e),null!=i&&(this.color2=i)},color1:{get:function(){var t=this.glcolor1;return(t[0]<<16)+(t[1]<<8)+(0|t[2])},set:function(t){var e=this.glcolor1;e[0]=t>>16&255,e[1]=t>>8&255,e[2]=255&t}},color2:{get:function(){var t=this.glcolor2;return(t[0]<<16)+(t[1]<<8)+(0|t[2])},set:function(t){var e=this.glcolor2;e[0]=t>>16&255,e[1]=t>>8&255,e[2]=255&t}}});t.exports=i},68897:(t,e,i)=>{var s=i(56694),n=i(47551),r=i(47406),i=new s({Extends:n,initialize:function(t,e){void 0===e&&(e=1),n.call(this,r.PIXELATE,t),this.amount=e}});t.exports=i},58575:(t,e,i)=>{var s=i(56694),h=i(47551),l=i(47406),i=new s({Extends:h,initialize:function(t,e,i,s,n,r,o,a){void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=.1),void 0===n&&(n=1),void 0===o&&(o=6),void 0===a&&(a=1),h.call(this,l.SHADOW,t),this.x=e,this.y=i,this.decay=s,this.power=n,this.glcolor=[0,0,0,1],this.samples=o,this.intensity=a,void 0!==r&&(this.color=r)},color:{get:function(){var t=this.glcolor;return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)},set:function(t){var e=this.glcolor;e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255}}});t.exports=i},33755:(t,e,i)=>{var s=i(56694),r=i(47551),o=i(47406),i=new s({Extends:r,initialize:function(t,e,i,s,n){void 0===e&&(e=.5),void 0===i&&(i=.5),void 0===s&&(s=3),void 0===n&&(n=!1),r.call(this,o.SHINE,t),this.speed=e,this.lineWidth=i,this.gradient=s,this.reveal=n}});t.exports=i},24949:(t,e,i)=>{var s=i(56694),r=i(47551),o=i(47406),i=new s({Extends:r,initialize:function(t,e,i,s,n){void 0===e&&(e=.5),void 0===i&&(i=.5),void 0===s&&(s=.5),void 0===n&&(n=.5),r.call(this,o.VIGNETTE,t),this.x=e,this.y=i,this.radius=s,this.strength=n}});t.exports=i},66241:(t,e,i)=>{var s=i(56694),r=i(47551),o=i(47406),i=new s({Extends:r,initialize:function(t,e,i,s,n){void 0===e&&(e=.1),void 0===i&&(i=0),void 0===s&&(s=0),void 0===n&&(n=!1),r.call(this,o.WIPE,t),this.progress=0,this.wipeWidth=e,this.direction=i,this.axis=s,this.reveal=n}});t.exports=i},47406:t=>{t.exports={GLOW:4,SHADOW:5,PIXELATE:6,VIGNETTE:7,SHINE:8,BLUR:9,GRADIENT:12,BLOOM:13,COLOR_MATRIX:14,CIRCLE:15,BARREL:16,DISPLACEMENT:17,WIPE:18,BOKEH:19}},96910:(t,e,i)=>{var s=i(98611),n=i(47406),s=s(!1,{Barrel:i(20170),Controller:i(47551),Bloom:i(51182),Blur:i(51498),Bokeh:i(12042),Circle:i(69900),ColorMatrix:i(48991),Displacement:i(47909),Glow:i(18919),Gradient:i(62494),Pixelate:i(68897),Shadow:i(58575),Shine:i(33755),Vignette:i(24949),Wipe:i(66241)},n);t.exports=s},88933:(t,e,i)=>{var r=i(95723),o=i(20494);t.exports=function(t,e,i){e.x=o(i,"x",0),e.y=o(i,"y",0),e.depth=o(i,"depth",0),e.flipX=o(i,"flipX",!1),e.flipY=o(i,"flipY",!1);var s,n=o(i,"scale",null),n=("number"==typeof n?e.setScale(n):null!==n&&(e.scaleX=o(n,"x",1),e.scaleY=o(n,"y",1)),o(i,"scrollFactor",null)),n=("number"==typeof n?e.setScrollFactor(n):null!==n&&(e.scrollFactorX=o(n,"x",1),e.scrollFactorY=o(n,"y",1)),e.rotation=o(i,"rotation",0),o(i,"angle",null)),n=(null!==n&&(e.angle=n),e.alpha=o(i,"alpha",1),o(i,"origin",null));return"number"==typeof n?e.setOrigin(n):null!==n&&(s=o(n,"x",.5),n=o(n,"y",.5),e.setOrigin(s,n)),e.blendMode=o(i,"blendMode",r.NORMAL),e.visible=o(i,"visible",!0),o(i,"add",!0)&&t.sys.displayList.add(e),e.preUpdate&&t.sys.updateList.add(e),e}},32291:(t,e,i)=>{var u=i(20494);t.exports=function(t,e){var i,s,n,r,o,a,h,l,e=u(e,"anims",null);return null!==e&&("string"==typeof e?t.anims.play(e):"object"==typeof e&&(i=t.anims,l=u(e,"key",void 0))&&(s=u(e,"startFrame",void 0),n=u(e,"delay",0),r=u(e,"repeat",0),o=u(e,"repeatDelay",0),a=u(e,"yoyo",!1),h=u(e,"play",!1),e=u(e,"delayedPlay",0),l={key:l,delay:n,repeat:r,repeatDelay:o,yoyo:a,startFrame:s},h?i.play(l):0{var s=i(56694),n=i(71207),r=i(91963),o=i(56631),a=i(7599),h=i(17922),i=new s({Extends:n,initialize:function(t){n.call(this,t),this.sortChildrenFlag=!1,this.scene=t,this.systems=t.sys,this.events=t.sys.events,this.addCallback=this.addChildCallback,this.removeCallback=this.removeChildCallback,this.events.once(a.BOOT,this.boot,this),this.events.on(a.START,this.start,this)},boot:function(){this.events.once(a.DESTROY,this.destroy,this)},addChildCallback:function(t){t.displayList&&t.displayList!==this&&t.removeFromDisplayList(),t.parentContainer&&t.parentContainer.remove(t),t.displayList||(this.queueDepthSort(),t.displayList=this,t.emit(o.ADDED_TO_SCENE,t,this.scene),this.events.emit(a.ADDED_TO_SCENE,t,this.scene))},removeChildCallback:function(t){this.queueDepthSort(),t.displayList=null,t.emit(o.REMOVED_FROM_SCENE,t,this.scene),this.events.emit(a.REMOVED_FROM_SCENE,t,this.scene)},start:function(){this.events.once(a.SHUTDOWN,this.shutdown,this)},queueDepthSort:function(){this.sortChildrenFlag=!0},depthSort:function(){this.sortChildrenFlag&&(h(this.list,this.sortByDepth),this.sortChildrenFlag=!1)},sortByDepth:function(t,e){return t._depth-e._depth},getChildren:function(){return this.list},shutdown:function(){for(var t=this.list;t.length;)t[0].destroy(!0);this.events.off(a.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.events.off(a.START,this.start,this),this.scene=null,this.systems=null,this.events=null}});r.register("DisplayList",i,"displayList"),t.exports=i},89980:(t,e,i)=>{var s=i(56694),n=i(48129),r=i(81078),o=i(6659),a=i(56631),h=i(7599),l=new s({Extends:o,initialize:function(t,e){o.call(this),this.scene=t,this.displayList=null,this.type=e,this.state=0,this.parentContainer=null,this.name="",this.active=!0,this.tabIndex=-1,this.data=null,this.renderFlags=15,this.cameraFilter=0,this.input=null,this.body=null,this.ignoreDestroy=!1,this.on(a.ADDED_TO_SCENE,this.addedToScene,this),this.on(a.REMOVED_FROM_SCENE,this.removedFromScene,this),t.sys.queueDepthSort()},setActive:function(t){return this.active=t,this},setName:function(t){return this.name=t,this},setState:function(t){return this.state=t,this},setDataEnabled:function(){return this.data||(this.data=new r(this)),this},setData:function(t,e){return this.data||(this.data=new r(this)),this.data.set(t,e),this},incData:function(t,e){return this.data||(this.data=new r(this)),this.data.inc(t,e),this},toggleData:function(t){return this.data||(this.data=new r(this)),this.data.toggle(t),this},getData:function(t){return this.data||(this.data=new r(this)),this.data.get(t)},setInteractive:function(t,e,i){return this.scene.sys.input.enable(this,t,e,i),this},disableInteractive:function(){return this.scene.sys.input.disable(this),this},removeInteractive:function(){return this.scene.sys.input.clear(this),this.input=void 0,this},addedToScene:function(){},removedFromScene:function(){},update:function(){},toJSON:function(){return n(this)},willRender:function(t){return!(this.displayList&&this.displayList.active&&!this.displayList.willRender(t)||l.RENDER_MASK!==this.renderFlags||0!==this.cameraFilter&&this.cameraFilter&t.id)},getIndexList:function(){for(var t=this,e=this.parentContainer,i=[];e&&(i.unshift(e.getIndex(t)),(t=e).parentContainer);)e=e.parentContainer;return this.displayList?i.unshift(this.displayList.getIndex(t)):i.unshift(this.scene.sys.displayList.getIndex(t)),i},addToDisplayList:function(t){return void 0===t&&(t=this.scene.sys.displayList),this.displayList&&this.displayList!==t&&this.removeFromDisplayList(),t.exists(this)||((this.displayList=t).add(this,!0),t.queueDepthSort(),this.emit(a.ADDED_TO_SCENE,this,this.scene),t.events.emit(h.ADDED_TO_SCENE,this,this.scene)),this},addToUpdateList:function(){return this.scene&&this.preUpdate&&this.scene.sys.updateList.add(this),this},removeFromDisplayList:function(){var t=this.displayList||this.scene.sys.displayList;return t&&t.exists(this)&&(t.remove(this,!0),t.queueDepthSort(),this.displayList=null,this.emit(a.REMOVED_FROM_SCENE,this,this.scene),t.events.emit(h.REMOVED_FROM_SCENE,this,this.scene)),this},removeFromUpdateList:function(){return this.scene&&this.preUpdate&&this.scene.sys.updateList.remove(this),this},destroy:function(t){this.scene&&!this.ignoreDestroy&&(void 0===t&&(t=!1),this.preDestroy&&this.preDestroy.call(this),this.emit(a.DESTROY,this,t),this.removeAllListeners(),this.postPipelines&&this.resetPostPipeline(!0),this.removeFromDisplayList(),this.removeFromUpdateList(),this.input&&(this.scene.sys.input.clear(this),this.input=void 0),this.data&&(this.data.destroy(),this.data=void 0),this.body&&(this.body.destroy(),this.body=void 0),this.preFX&&(this.preFX.destroy(),this.preFX=void 0),this.postFX&&(this.postFX.destroy(),this.postFX=void 0),this.active=!1,this.visible=!1,this.scene=void 0,this.parentContainer=void 0)}});l.RENDER_MASK=15,t.exports=l},99325:(t,e,i)=>{var s=i(56694),n=i(91963),r=i(7599),o=new s({initialize:function(t){this.scene=t,this.systems=t.sys,this.events=t.sys.events,this.displayList,this.updateList,this.events.once(r.BOOT,this.boot,this),this.events.on(r.START,this.start,this)},boot:function(){this.displayList=this.systems.displayList,this.updateList=this.systems.updateList,this.events.once(r.DESTROY,this.destroy,this)},start:function(){this.events.once(r.SHUTDOWN,this.shutdown,this)},shutdown:function(){this.events.off(r.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.events.off(r.START,this.start,this),this.scene=null,this.systems=null,this.events=null,this.displayList=null,this.updateList=null}});o.register=function(t,e){o.prototype.hasOwnProperty(t)||(o.prototype[t]=e)},o.remove=function(t){o.prototype.hasOwnProperty(t)&&delete o.prototype[t]},n.register("GameObjectCreator",o,"make"),t.exports=o},61286:(t,e,i)=>{var s=i(56694),n=i(91963),r=i(7599),o=new s({initialize:function(t){this.scene=t,this.systems=t.sys,this.events=t.sys.events,this.displayList,this.updateList,this.events.once(r.BOOT,this.boot,this),this.events.on(r.START,this.start,this)},boot:function(){this.displayList=this.systems.displayList,this.updateList=this.systems.updateList,this.events.once(r.DESTROY,this.destroy,this)},start:function(){this.events.once(r.SHUTDOWN,this.shutdown,this)},existing:function(t){return(t.renderCanvas||t.renderWebGL)&&this.displayList.add(t),t.preUpdate&&this.updateList.add(t),t},shutdown:function(){this.events.off(r.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.events.off(r.START,this.start,this),this.scene=null,this.systems=null,this.events=null,this.displayList=null,this.updateList=null}});o.register=function(t,e){o.prototype.hasOwnProperty(t)||(o.prototype[t]=e)},o.remove=function(t){o.prototype.hasOwnProperty(t)&&delete o.prototype[t]},n.register("GameObjectFactory",o,"add"),t.exports=o},73329:(t,e,i)=>{var i=i(69360),o=new i,a=new i,h=new i,l={camera:o,sprite:a,calc:h};t.exports=function(t,e,i){var s=o,n=a,r=h;return n.applyITRS(t.x,t.y,t.rotation,t.scaleX,t.scaleY),s.copyFrom(e.matrix),i?(s.multiplyWithOffset(i,-e.scrollX*t.scrollFactorX,-e.scrollY*t.scrollFactorY),n.e=t.x,n.f=t.y):(n.e-=e.scrollX*t.scrollFactorX,n.f-=e.scrollY*t.scrollFactorY),s.multiply(n,r),l}},92034:(t,e,i)=>{var s=i(56694),n=i(74623),r=i(91963),o=i(7599),i=new s({Extends:n,initialize:function(t){n.call(this),this.checkQueue=!0,this.scene=t,this.systems=t.sys,t.sys.events.once(o.BOOT,this.boot,this),t.sys.events.on(o.START,this.start,this)},boot:function(){this.systems.events.once(o.DESTROY,this.destroy,this)},start:function(){var t=this.systems.events;t.on(o.PRE_UPDATE,this.update,this),t.on(o.UPDATE,this.sceneUpdate,this),t.once(o.SHUTDOWN,this.shutdown,this)},sceneUpdate:function(t,e){for(var i=this._active,s=i.length,n=0;n{t.exports=function(t,e,i,s,n,r,o,a,h,l,u,c,d,p,f){var n=i.x-e.displayOriginX+n,r=i.y-e.displayOriginY+r,g=n+i.w,i=r+i.h,y=o.getXRound(n,r,a),v=o.getYRound(n,r,a),m=o.getXRound(n,i,a),n=o.getYRound(n,i,a),x=o.getXRound(g,i,a),i=o.getYRound(g,i,a),w=o.getXRound(g,r,a),o=o.getYRound(g,r,a);t.batchQuad(e,y,v,m,n,x,i,w,o,s.u0,s.v0,s.u1,s.v1,h,l,u,c,d,p,f)}},82173:t=>{t.exports=function(t,I,B,e){if(void 0===B&&(B=!1),void 0===e)return{local:{x:0,y:0,width:0,height:0},global:{x:0,y:0,width:0,height:0},lines:{shortest:0,longest:0,lengths:null,height:0},wrappedText:"",words:[],characters:[],scaleX:0,scaleY:0};var N,X,U,i=t.text,z=i.length,Y=t.maxWidth,V=t.wordWrapCharCode,s=Number.MAX_VALUE,n=Number.MAX_VALUE,r=0,o=0,G=t.fontData.chars,a=t.fontData.lineHeight,W=t.letterSpacing,H=t.lineSpacing,h=0,l=0,u=0,c=null,j=t._align,d=0,p=0,f=t.fontSize/t.fontData.size,g=f*t.scaleX,y=f*t.scaleY,v=null,m=0,x=[],w=Number.MAX_VALUE,T=0,K=0,b=0,S=[],q=[],P=null;if(0{var l=i(31476);t.exports=function(t,e,i,s,n,r,o){var a=t.sys.textures.get(i),h=a.get(s),n=t.sys.cache.xml.get(n);return!(!h||!n||(n=l(n,h,r,o,a),t.sys.cache.bitmapFont.add(e,{data:n,texture:i,frame:s,fromAtlas:!0}),0))}},39860:(t,e,i)=>{var S=i(10850);t.exports=function(t,e){var i=e.width,s=e.height,n=Math.floor(i/2),r=Math.floor(s/2),o=S(e,"chars","");if(""!==o){var a=S(e,"image",""),t=t.sys.textures.getFrame(a),h=t.cutX,l=t.cutY,u=t.source.width,c=t.source.height,d=S(e,"offset.x",0),t=S(e,"offset.y",0),p=S(e,"spacing.x",0),f=S(e,"spacing.y",0),g=S(e,"lineSpacing",0),y=S(e,"charsPerRow",null);null===y&&(y=u/i)>o.length&&(y=o.length);for(var v=d,m=t,x={retroFont:!0,font:a,size:i,lineHeight:s+g,chars:{}},w=0,T=0;T{function L(t,e){return parseInt(t.getAttribute(e),10)}t.exports=function(t,e,i,s,n){void 0===i&&(i=0),void 0===s&&(s=0);var r,o,a=e.cutX,h=e.cutY,l=e.source.width,u=e.source.height,c=e.sourceIndex,d={},p=t.getElementsByTagName("info")[0],f=t.getElementsByTagName("common")[0],g=(d.font=p.getAttribute("face"),d.size=L(p,"size"),d.lineHeight=L(f,"lineHeight")+s,d.chars={},t.getElementsByTagName("char")),y=void 0!==e&&e.trimmed;y&&(r=e.height,o=e.width);for(var v=0;v{var s=i(66863),i=i(98611)(!1,{Parse:i(39860)},s);t.exports=i},66863:t=>{t.exports={TEXT_SET1:" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~",TEXT_SET2:" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET3:"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ",TEXT_SET4:"ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789",TEXT_SET5:"ABCDEFGHIJKLMNOPQRSTUVWXYZ.,/() '!?-*:0123456789",TEXT_SET6:"ABCDEFGHIJKLMNOPQRSTUVWXYZ!?:;0123456789\"(),-.' ",TEXT_SET7:"AGMSY+:4BHNTZ!;5CIOU.?06DJPV,(17EKQW\")28FLRX-'39",TEXT_SET8:"0123456789 .ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET9:"ABCDEFGHIJKLMNOPQRSTUVWXYZ()-0123456789.:,'\"?!",TEXT_SET10:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET11:"ABCDEFGHIJKLMNOPQRSTUVWXYZ.,\"-+!?()':;0123456789"}},13468:(t,e,i)=>{var a=i(44616),s=i(56694),i=i(88899),s=new s({Extends:a,Mixins:[i],initialize:function(t,e,i,s,n,r,o){a.call(this,t,e,i,s,n,r,o),this.type="DynamicBitmapText",this.scrollX=0,this.scrollY=0,this.cropWidth=0,this.cropHeight=0,this.displayCallback,this.callbackData={parent:this,color:0,tint:{topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},index:0,charCode:0,x:0,y:0,scale:0,rotation:0,data:0}},setSize:function(t,e){return this.cropWidth=t,this.cropHeight=e,this},setDisplayCallback:function(t){return this.displayCallback=t,this},setScrollX:function(t){return this.scrollX=t,this},setScrollY:function(t){return this.scrollY=t,this}});t.exports=s},93438:(t,e,i)=>{var N=i(49584);t.exports=function(t,e,i,s){var n=e._text,r=n.length,o=t.currentContext;if(0!==r&&N(t,o,e,i,s)){i.addToRenderList(e);var a,h,t=e.fromAtlas?e.frame:e.texture.frames.__BASE,l=e.displayCallback,u=e.callbackData,c=e.fontData.chars,d=e.fontData.lineHeight,p=e._letterSpacing,f=0,g=0,y=0,v=0,m=0,x=0,w=0,T=0,b=null,S=0,P=e.frame.source.image,_=t.cutX,E=t.cutY,A=0,C=0,I=e._fontSize/e.fontData.size,M=e._align,O=0,R=0,D=(e.getTextBounds(!1),e._bounds.lines),B=(1===M?R=(D.longest-D.lengths[0])/2:2===M&&(R=D.longest-D.lengths[0]),o.translate(-e.displayOriginX,-e.displayOriginY),i.roundPixels);0{var r=i(13468),o=i(88933),s=i(99325),a=i(20494);s.register("dynamicBitmapText",function(t,e){var i=a(t=void 0===t?{}:t,"font",""),s=a(t,"text",""),n=a(t,"size",!1),i=new r(this.scene,0,0,i,s,n);return void 0!==e&&(t.add=e),o(this.scene,i,t),i})},94145:(t,e,i)=>{var r=i(13468);i(61286).register("dynamicBitmapText",function(t,e,i,s,n){return this.displayList.add(new r(this.scene,t,e,i,s,n))})},88899:(t,e,i)=>{i(72283);var s=i(16873),i=i(93438);t.exports={renderWebGL:s,renderCanvas:i}},16873:(t,e,i)=>{var Q=i(73329),s=i(69360),$=i(75512),tt=new s;t.exports=function(t,e,i,s){var n=e.text,r=n.length;if(0!==r){i.addToRenderList(e);var o=t.pipelines.set(e.pipeline,e),s=Q(e,i,s),a=(t.pipelines.preBatch(e),s.sprite),h=s.calc,I=tt,s=0{var s=i(56694),p=i(82897),n=i(64937),a=i(89980),h=i(82173),r=i(68298),o=i(31476),l=i(74118),i=i(84557),u=new s({Extends:a,Mixins:[n.Alpha,n.BlendMode,n.Depth,n.GetBounds,n.Mask,n.Origin,n.Pipeline,n.PostPipeline,n.ScrollFactor,n.Texture,n.Tint,n.Transform,n.Visible,i],initialize:function(t,e,i,s,n,r,o){void 0===n&&(n=""),void 0===o&&(o=0),a.call(this,t,"BitmapText"),this.font=s;t=this.scene.sys.cache.bitmapFont.get(s);this.fontData=t.data,this._text="",this._fontSize=r||this.fontData.size,this._letterSpacing=0,this._lineSpacing=0,this._align=o,this._bounds=h(),this._dirty=!0,this._maxWidth=0,this.wordWrapCharCode=32,this.charColors=[],this.dropShadowX=0,this.dropShadowY=0,this.dropShadowColor=0,this.dropShadowAlpha=.5,this.fromAtlas=t.fromAtlas,this.setTexture(t.texture,t.frame),this.setPosition(e,i),this.setOrigin(0,0),this.initPipeline(),this.initPostPipeline(),this.setText(n)},setLeftAlign:function(){return this._align=u.ALIGN_LEFT,this._dirty=!0,this},setCenterAlign:function(){return this._align=u.ALIGN_CENTER,this._dirty=!0,this},setRightAlign:function(){return this._align=u.ALIGN_RIGHT,this._dirty=!0,this},setFontSize:function(t){return this._fontSize=t,this._dirty=!0,this},setLetterSpacing:function(t){return this._letterSpacing=t=void 0===t?0:t,this._dirty=!0,this},setLineSpacing:function(t){return this.lineSpacing=t=void 0===t?0:t,this},setText:function(t){return t||0===t||(t=""),(t=Array.isArray(t)?t.join("\n"):t)!==this.text&&(this._text=t.toString(),this._dirty=!0,this.updateDisplayOrigin()),this},setDropShadow:function(t,e,i,s){return void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=.5),this.dropShadowX=t=void 0===t?0:t,this.dropShadowY=e,this.dropShadowColor=i,this.dropShadowAlpha=s,this},setCharacterTint:function(t,e,i,s,n,r,o){void 0===i&&(i=!1),void 0===s&&(s=-1),void 0===n&&(o=r=n=s);var a=this.text.length;-1===(e=void 0===e?1:e)&&(e=a),t=p(t=(t=void 0===t?0:t)<0?a+t:t,0,a-1);for(var h=p(t+e,t,a),l=this.charColors,u=t;u{var k=i(49584);t.exports=function(t,e,i,s){var n=e._text,r=n.length,o=t.currentContext;if(0!==r&&k(t,o,e,i,s)){i.addToRenderList(e);var a,h,t=e.fromAtlas?e.frame:e.texture.frames.__BASE,l=e.fontData.chars,u=e.fontData.lineHeight,c=e._letterSpacing,d=e._lineSpacing,p=0,f=0,g=0,y=0,v=0,m=0,x=0,w=0,T=null,b=0,S=t.source.image,P=t.cutX,_=t.cutY,E=e._fontSize/e.fontData.size,A=e._align,C=0,M=0,s=e.getTextBounds(!1),O=(0{var o=i(44616),a=i(88933),s=i(99325),h=i(20494),l=i(10850);s.register("bitmapText",function(t,e){var i=l(t=void 0===t?{}:t,"font",""),s=h(t,"text",""),n=h(t,"size",!1),r=l(t,"align",0),i=new o(this.scene,0,0,i,s,n,r);return void 0!==e&&(t.add=e),a(this.scene,i,t),i})},21797:(t,e,i)=>{var o=i(44616);i(61286).register("bitmapText",function(t,e,i,s,n,r){return this.displayList.add(new o(this.scene,t,e,i,s,n,r))})},84557:(t,e,i)=>{i(72283);var s=i(26372),i=i(97545);t.exports={renderWebGL:s,renderCanvas:i}},26372:(t,e,i)=>{var D=i(8810),L=i(73329),k=i(75512);t.exports=function(t,e,i,s){if(0!==e._text.length){i.addToRenderList(e);var n=t.pipelines.set(e.pipeline,e),r=L(e,i,s).calc;t.pipelines.preBatch(e);var o,a=i.roundPixels,h=i.alpha,l=e.charColors,u=e.tintFill,c=k.getTintAppendFloatAlpha,d=c(e.tintTopLeft,h*e._alphaTL),p=c(e.tintTopRight,h*e._alphaTR),f=c(e.tintBottomLeft,h*e._alphaBL),g=c(e.tintBottomRight,h*e._alphaBR),y=e.frame.glTexture,v=n.setGameObject(e),m=e.getTextBounds(!1).characters,x=e.dropShadowX,w=e.dropShadowY;if(0!==x||0!==w)for(var s=e.dropShadowColor,i=e.dropShadowAlpha,T=c(s,h*i*e._alphaTL),b=c(s,h*i*e._alphaTR),S=c(s,h*i*e._alphaBL),P=c(s,h*i*e._alphaBR),_=0;_{var s=i(92246),r=i(41664),n=i(56694),o=i(64937),a=i(82047),h=i(89980),l=i(71207),i=new n({Extends:h,Mixins:[o.Alpha,o.BlendMode,o.Depth,o.Mask,o.Pipeline,o.PostPipeline,o.ScrollFactor,o.Size,o.Texture,o.Transform,o.Visible,s],initialize:function(t,e,i,s,n){h.call(this,t,"Blitter"),this.setTexture(s,n),this.setPosition(e,i),this.initPipeline(),this.initPostPipeline(),this.children=new l,this.renderList=[],this.dirty=!1},create:function(t,e,i,s,n){void 0===s&&(s=!0),void 0===n&&(n=this.children.length),void 0===i?i=this.frame:i instanceof a||(i=this.texture.get(i));t=new r(this,t,e,i,s);return this.children.addAt(t,n,!1),this.dirty=!0,t},createFromCallback:function(t,e,i,s){for(var n=this.createMultiple(e,i,s),r=0;r{t.exports=function(t,e,i,s){var n=e.getRenderList();if(0!==n.length){var r=t.currentContext,o=i.alpha*e.alpha;if(0!=o){i.addToRenderList(e),r.globalCompositeOperation=t.blendModes[e.blendMode],r.imageSmoothingEnabled=!e.frame.source.scaleMode;var a=e.x-i.scrollX*e.scrollFactorX,h=e.y-i.scrollY*e.scrollFactorY;r.save(),s&&s.copyToContext(r);for(var l=i.roundPixels,u=0;u{var n=i(52816),r=i(88933),s=i(99325),o=i(20494);s.register("blitter",function(t,e){var i=o(t=void 0===t?{}:t,"key",null),s=o(t,"frame",null),i=new n(this.scene,0,0,i,s);return void 0!==e&&(t.add=e),r(this.scene,i,t),i})},38906:(t,e,i)=>{var n=i(52816);i(61286).register("blitter",function(t,e,i,s){return this.displayList.add(new n(this.scene,t,e,i,s))})},92246:(t,e,i)=>{i(72283);var s=i(89165),i=i(33177);t.exports={renderWebGL:s,renderCanvas:i}},89165:(t,e,i)=>{var s=i(69360),S=i(75512),P=new s;t.exports=function(t,e,i,s){var n=e.getRenderList(),r=i.alpha*e.alpha;if(0!==n.length&&0!=r){i.addToRenderList(e);var o=t.pipelines.set(this.pipeline,e),a=i.scrollX*e.scrollFactorX,h=i.scrollY*e.scrollFactorY,l=P.copyFrom(i.matrix),u=(s&&(l.multiplyWithOffset(s,-a,-h),h=a=0),e.x-a),c=e.y-h,d=-1,p=i.roundPixels;t.pipelines.preBatch(e);for(var f=0;f{var s=i(56694),n=i(82047),i=new s({initialize:function(t,e,i,s,n){this.parent=t,this.x=e,this.y=i,this.frame=s,this.data={},this.tint=16777215,this._visible=n,this._alpha=1,this.flipX=!1,this.flipY=!1,this.hasTransformComponent=!0},setFrame:function(t){return void 0===t?this.frame=this.parent.frame:t instanceof n&&t.texture===this.parent.texture?this.frame=t:this.frame=this.parent.texture.get(t),this},resetFlip:function(){return this.flipX=!1,this.flipY=!1,this},reset:function(t,e,i){return this.x=t,this.y=e,this.flipX=!1,this.flipY=!1,this._alpha=1,this._visible=!0,this.parent.dirty=!0,i&&this.setFrame(i),this},setPosition:function(t,e){return this.x=t,this.y=e,this},setFlipX:function(t){return this.flipX=t,this},setFlipY:function(t){return this.flipY=t,this},setFlip:function(t,e){return this.flipX=t,this.flipY=e,this},setVisible:function(t){return this.visible=t,this},setAlpha:function(t){return this.alpha=t,this},setTint:function(t){return this.tint=t,this},destroy:function(){this.parent.dirty=!0,this.parent.children.remove(this),this.parent=void 0,this.frame=void 0,this.data=void 0},visible:{get:function(){return this._visible},set:function(t){this.parent.dirty|=this._visible!==t,this._visible=t}},alpha:{get:function(){return this._alpha},set:function(t){this.parent.dirty|=0{var n=i(82897);t.exports={_alpha:1,_alphaTL:1,_alphaTR:1,_alphaBL:1,_alphaBR:1,clearAlpha:function(){return this.setAlpha(1)},setAlpha:function(t,e,i,s){return void 0===t&&(t=1),void 0===e?this.alpha=t:(this._alphaTL=n(t,0,1),this._alphaTR=n(e,0,1),this._alphaBL=n(i,0,1),this._alphaBR=n(s,0,1)),this},alpha:{get:function(){return this._alpha},set:function(t){t=n(t,0,1);this._alpha=t,this._alphaTL=t,this._alphaTR=t,this._alphaBL=t,0===(this._alphaBR=t)?this.renderFlags&=-3:this.renderFlags|=2}},alphaTopLeft:{get:function(){return this._alphaTL},set:function(t){t=n(t,0,1);0!==(this._alphaTL=t)&&(this.renderFlags|=2)}},alphaTopRight:{get:function(){return this._alphaTR},set:function(t){t=n(t,0,1);0!==(this._alphaTR=t)&&(this.renderFlags|=2)}},alphaBottomLeft:{get:function(){return this._alphaBL},set:function(t){t=n(t,0,1);0!==(this._alphaBL=t)&&(this.renderFlags|=2)}},alphaBottomRight:{get:function(){return this._alphaBR},set:function(t){t=n(t,0,1);0!==(this._alphaBR=t)&&(this.renderFlags|=2)}}}},15720:(t,e,i)=>{var s=i(82897);t.exports={_alpha:1,clearAlpha:function(){return this.setAlpha(1)},setAlpha:function(t){return this.alpha=t=void 0===t?1:t,this},alpha:{get:function(){return this._alpha},set:function(t){t=s(t,0,1);0===(this._alpha=t)?this.renderFlags&=-3:this.renderFlags|=2}}}},69732:(t,e,i)=>{var s=i(95723),i={_blendMode:s.NORMAL,blendMode:{get:function(){return this._blendMode},set:function(t){"string"==typeof t&&(t=s[t]),-1<=(t|=0)&&(this._blendMode=t)}},setBlendMode:function(t){return this.blendMode=t,this}};t.exports=i},28284:t=>{t.exports={width:0,height:0,displayWidth:{get:function(){return this.scaleX*this.width},set:function(t){this.scaleX=t/this.width}},displayHeight:{get:function(){return this.scaleY*this.height},set:function(t){this.scaleY=t/this.height}},setSize:function(t,e){return this.width=t,this.height=e,this},setDisplaySize:function(t,e){return this.displayWidth=t,this.displayHeight=e,this}}},85293:t=>{t.exports={texture:null,frame:null,isCropped:!1,setCrop:function(t,e,i,s){return void 0===t?this.isCropped=!1:this.frame&&("number"==typeof t?this.frame.setCropUVs(this._crop,t,e,i,s,this.flipX,this.flipY):this.frame.setCropUVs(this._crop,t.x,t.y,t.width,t.height,this.flipX,this.flipY),this.isCropped=!0),this},resetCropObject:function(){return{u0:0,v0:0,u1:0,v1:0,width:0,height:0,x:0,y:0,flipX:!1,flipY:!1,cx:0,cy:0,cw:0,ch:0}}}},14975:t=>{t.exports={_depth:0,depth:{get:function(){return this._depth},set:function(t){this.displayList&&this.displayList.queueDepthSort(),this._depth=t}},setDepth:function(t){return this.depth=t=void 0===t?0:t,this}}},88677:(t,e,i)=>{var s=i(56694),h=i(96910),r=i(72677),i=new s({initialize:function(t,e){this.gameObject=t,this.isPost=e,this.enabled=!1,this.list=[],this.padding=0},setPadding:function(t){return this.padding=t=void 0===t?0:t,this.gameObject},onFXCopy:function(){},onFX:function(){},enable:function(t){var e;this.isPost||((e=this.gameObject.scene.sys.renderer)&&e.pipelines?(this.gameObject.pipeline=e.pipelines.FX_PIPELINE,void 0!==t&&(this.padding=t),this.enabled=!0):this.enabled=!1)},clear:function(){if(this.isPost)this.gameObject.resetPostPipeline(!0);else{for(var t=this.list,e=0;e{t.exports={flipX:!1,flipY:!1,toggleFlipX:function(){return this.flipX=!this.flipX,this},toggleFlipY:function(){return this.flipY=!this.flipY,this},setFlipX:function(t){return this.flipX=t,this},setFlipY:function(t){return this.flipY=t,this},setFlip:function(t,e){return this.flipX=t,this.flipY=e,this},resetFlip:function(){return this.flipX=!1,this.flipY=!1,this}}},80693:(t,e,i)=>{var l=i(74118),s=i(2386),n=i(93736);t.exports={prepareBoundsOutput:function(t,e){return void 0===e&&(e=!1),0!==this.rotation&&s(t,this.x,this.y,this.rotation),e&&this.parentContainer&&this.parentContainer.getBoundsTransformMatrix().transformPoint(t.x,t.y,t),t},getCenter:function(t,e){return(t=void 0===t?new n:t).x=this.x-this.displayWidth*this.originX+this.displayWidth/2,t.y=this.y-this.displayHeight*this.originY+this.displayHeight/2,this.prepareBoundsOutput(t,e)},getTopLeft:function(t,e){return(t=t||new n).x=this.x-this.displayWidth*this.originX,t.y=this.y-this.displayHeight*this.originY,this.prepareBoundsOutput(t,e)},getTopCenter:function(t,e){return(t=t||new n).x=this.x-this.displayWidth*this.originX+this.displayWidth/2,t.y=this.y-this.displayHeight*this.originY,this.prepareBoundsOutput(t,e)},getTopRight:function(t,e){return(t=t||new n).x=this.x-this.displayWidth*this.originX+this.displayWidth,t.y=this.y-this.displayHeight*this.originY,this.prepareBoundsOutput(t,e)},getLeftCenter:function(t,e){return(t=t||new n).x=this.x-this.displayWidth*this.originX,t.y=this.y-this.displayHeight*this.originY+this.displayHeight/2,this.prepareBoundsOutput(t,e)},getRightCenter:function(t,e){return(t=t||new n).x=this.x-this.displayWidth*this.originX+this.displayWidth,t.y=this.y-this.displayHeight*this.originY+this.displayHeight/2,this.prepareBoundsOutput(t,e)},getBottomLeft:function(t,e){return(t=t||new n).x=this.x-this.displayWidth*this.originX,t.y=this.y-this.displayHeight*this.originY+this.displayHeight,this.prepareBoundsOutput(t,e)},getBottomCenter:function(t,e){return(t=t||new n).x=this.x-this.displayWidth*this.originX+this.displayWidth/2,t.y=this.y-this.displayHeight*this.originY+this.displayHeight,this.prepareBoundsOutput(t,e)},getBottomRight:function(t,e){return(t=t||new n).x=this.x-this.displayWidth*this.originX+this.displayWidth,t.y=this.y-this.displayHeight*this.originY+this.displayHeight,this.prepareBoundsOutput(t,e)},getBounds:function(t){var e,i,s,n,r,o,a,h;return void 0===t&&(t=new l),a=(h=(this.parentContainer?(h=this.parentContainer.getBoundsTransformMatrix(),this.getTopLeft(t),h.transformPoint(t.x,t.y,t),e=t.x,i=t.y,this.getTopRight(t),h.transformPoint(t.x,t.y,t),s=t.x,n=t.y,this.getBottomLeft(t),h.transformPoint(t.x,t.y,t),r=t.x,o=t.y,this.getBottomRight(t),h.transformPoint(t.x,t.y,t)):(this.getTopLeft(t),e=t.x,i=t.y,this.getTopRight(t),s=t.x,n=t.y,this.getBottomLeft(t),r=t.x,o=t.y,this.getBottomRight(t)),t.x),t.y),t.x=Math.min(e,s,r,h),t.y=Math.min(i,n,o,a),t.width=Math.max(e,s,r,h)-t.x,t.height=Math.max(i,n,o,a)-t.y,t}}},39171:(t,e,i)=>{var r=i(76756),s=i(63037);t.exports={mask:null,setMask:function(t){return this.mask=t,this},clearMask:function(t){return(t=void 0===t?!1:t)&&this.mask&&this.mask.destroy(),this.mask=null,this},createBitmapMask:function(t,e,i,s,n){return void 0===t&&(this.texture||this.shader||this.geom)&&(t=this),new r(this.scene,t,e,i,s,n)},createGeometryMask:function(t){return void 0!==t||"Graphics"!==this.type&&!this.geom||(t=this),new s(this.scene,t)}}},28072:t=>{t.exports={_originComponent:!0,originX:.5,originY:.5,_displayOriginX:0,_displayOriginY:0,displayOriginX:{get:function(){return this._displayOriginX},set:function(t){this._displayOriginX=t,this.originX=t/this.width}},displayOriginY:{get:function(){return this._displayOriginY},set:function(t){this._displayOriginY=t,this.originY=t/this.height}},setOrigin:function(t,e){return void 0===t&&(t=.5),void 0===e&&(e=t),this.originX=t,this.originY=e,this.updateDisplayOrigin()},setOriginFromFrame:function(){return this.frame&&this.frame.customPivot?(this.originX=this.frame.pivotX,this.originY=this.frame.pivotY,this.updateDisplayOrigin()):this.setOrigin()},setDisplayOrigin:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.displayOriginX=t,this.displayOriginY=e,this},updateDisplayOrigin:function(){return this._displayOriginX=this.originX*this.width,this._displayOriginY=this.originY*this.height,this}}},54211:(t,e,i)=>{var n=i(75606),r=i(63130),o=i(10850),a=i(55303),h=i(93736),i={path:null,rotateToPath:!1,pathRotationOffset:0,pathOffset:null,pathVector:null,pathDelta:null,pathTween:null,pathConfig:null,_prevDirection:a.PLAYING_FORWARD,setPath:function(t,e){void 0===e&&(e=this.pathConfig);var i=this.pathTween;return i&&i.isPlaying()&&i.stop(),this.path=t,e&&this.startFollow(e),this},setRotateToPath:function(t,e){return void 0===e&&(e=0),this.rotateToPath=t,this.pathRotationOffset=e,this},isFollowing:function(){var t=this.pathTween;return t&&t.isPlaying()},startFollow:function(t,e){void 0===t&&(t={}),void 0===e&&(e=0);var i=this.pathTween,i=(i&&i.isPlaying()&&i.stop(),(t="number"==typeof t?{duration:t}:t).from=o(t,"from",0),t.to=o(t,"to",1),r(t,"positionOnPath",!1)),s=(this.rotateToPath=r(t,"rotateToPath",!1),this.pathRotationOffset=o(t,"rotationOffset",0),o(t,"startAt",e));return s&&(t.onStart=function(t){var t=t.data[0],e=(t.progress=s,t.elapsed=t.duration*s,t.ease(t.progress));t.current=t.start+(t.end-t.start)*e,t.setTargetValue()}),this.pathOffset||(this.pathOffset=new h(this.x,this.y)),this.pathVector||(this.pathVector=new h),this.pathDelta||(this.pathDelta=new h),this.pathDelta.reset(),t.persist=!0,this.pathTween=this.scene.sys.tweens.addCounter(t),this.path.getStartPoint(this.pathOffset),i&&(this.x=this.pathOffset.x,this.y=this.pathOffset.y),this.pathOffset.x=this.x-this.pathOffset.x,this.pathOffset.y=this.y-this.pathOffset.y,this._prevDirection=a.PLAYING_FORWARD,this.rotateToPath&&(e=this.path.getPoint(.1),this.rotation=Math.atan2(e.y-this.y,e.x-this.x)+n(this.pathRotationOffset)),this.pathConfig=t,this},pauseFollow:function(){var t=this.pathTween;return t&&t.isPlaying()&&t.pause(),this},resumeFollow:function(){var t=this.pathTween;return t&&t.isPaused()&&t.resume(),this},stopFollow:function(){var t=this.pathTween;return t&&t.isPlaying()&&t.stop(),this},pathUpdate:function(){var t,e,i,s=this.pathTween;s&&(t=s.data[0],e=this.pathDelta,i=this.pathVector,e.copy(i).negate(),t.state===a.COMPLETE?(this.path.getPoint(t.end,i),e.add(i),i.add(this.pathOffset),this.setPosition(i.x,i.y)):t.state!==a.PLAYING_FORWARD&&t.state!==a.PLAYING_BACKWARD||(this.path.getPoint(s.getValue(),i),e.add(i),i.add(this.pathOffset),s=this.x,e=this.y,this.setPosition(i.x,i.y),i=this.x-s,s=this.y-e,0==i&&0==s)||(t.state!==this._prevDirection?this._prevDirection=t.state:this.rotateToPath&&(this.rotation=Math.atan2(s,i)+n(this.pathRotationOffset))))}};t.exports=i},58210:(t,e,i)=>{var n=i(28699);t.exports={defaultPipeline:null,pipeline:null,pipelineData:null,initPipeline:function(t){this.pipelineData={};var e=this.scene.sys.renderer;if(e){e=e.pipelines;if(e){void 0===t&&(t=e.default);e=e.get(t);if(e)return this.defaultPipeline=e,this.pipeline=e,!0}}return!1},setPipeline:function(t,e,i){var s=this.scene.sys.renderer;return s&&(s=s.pipelines)&&((s=s.get(t))&&(this.pipeline=s),e)&&(this.pipelineData=i?n(e):e),this},setPipelineData:function(t,e){var i=this.pipelineData;return void 0===e?delete i[t]:i[t]=e,this},resetPipeline:function(t){return void 0===t&&(t=!1),this.pipeline=this.defaultPipeline,t&&(this.pipelineData={}),null!==this.pipeline},getPipelineName:function(){return this.pipeline.name}}},44086:(t,e,i)=>{var a=i(28699),s=i(88677),r=i(72677);t.exports={hasPostPipeline:!1,postPipelines:null,postPipelineData:null,preFX:null,postFX:null,initPostPipeline:function(t){this.postPipelines=[],this.postPipelineData={},this.postFX=new s(this,!0),t&&(this.preFX=new s(this,!1))},setPostPipeline:function(t,e,i){var s=this.scene.sys.renderer;if(s){var n=s.pipelines;if(n){Array.isArray(t)||(t=[t]);for(var r=0;r{t.exports={scrollFactorX:1,scrollFactorY:1,setScrollFactor:function(t,e){return void 0===e&&(e=t),this.scrollFactorX=t,this.scrollFactorY=e,this}}},31654:t=>{t.exports={_sizeComponent:!0,width:0,height:0,displayWidth:{get:function(){return Math.abs(this.scaleX*this.frame.realWidth)},set:function(t){this.scaleX=t/this.frame.realWidth}},displayHeight:{get:function(){return Math.abs(this.scaleY*this.frame.realHeight)},set:function(t){this.scaleY=t/this.frame.realHeight}},setSizeToFrame:function(t){t=t||this.frame,this.width=t.realWidth,this.height=t.realHeight;t=this.input;return t&&!t.customHitArea&&(t.hitArea.width=this.width,t.hitArea.height=this.height),this},setSize:function(t,e){return this.width=t,this.height=e,this},setDisplaySize:function(t,e){return this.displayWidth=t,this.displayHeight=e,this}}},82081:(t,e,i)=>{var s=i(82047);t.exports={texture:null,frame:null,isCropped:!1,setTexture:function(t,e){return this.texture=this.scene.sys.textures.get(t),this.setFrame(e)},setFrame:function(t,e,i){return void 0===e&&(e=!0),void 0===i&&(i=!0),t instanceof s?(this.texture=this.scene.sys.textures.get(t.texture.key),this.frame=t):this.frame=this.texture.get(t),this.frame.cutWidth&&this.frame.cutHeight?this.renderFlags|=8:this.renderFlags&=-9,this._sizeComponent&&e&&this.setSizeToFrame(),this._originComponent&&i&&(this.frame.customPivot?this.setOrigin(this.frame.pivotX,this.frame.pivotY):this.updateDisplayOrigin()),this}}},21850:(t,e,i)=>{var s=i(82047);t.exports={texture:null,frame:null,isCropped:!1,setCrop:function(t,e,i,s){return void 0===t?this.isCropped=!1:this.frame&&("number"==typeof t?this.frame.setCropUVs(this._crop,t,e,i,s,this.flipX,this.flipY):this.frame.setCropUVs(this._crop,t.x,t.y,t.width,t.height,this.flipX,this.flipY),this.isCropped=!0),this},setTexture:function(t,e){return this.texture=this.scene.sys.textures.get(t),this.setFrame(e)},setFrame:function(t,e,i){return void 0===e&&(e=!0),void 0===i&&(i=!0),t instanceof s?(this.texture=this.scene.sys.textures.get(t.texture.key),this.frame=t):this.frame=this.texture.get(t),this.frame.cutWidth&&this.frame.cutHeight?this.renderFlags|=8:this.renderFlags&=-9,this._sizeComponent&&e&&this.setSizeToFrame(),this._originComponent&&i&&(this.frame.customPivot?this.setOrigin(this.frame.pivotX,this.frame.pivotY):this.updateDisplayOrigin()),this.isCropped&&this.frame.updateCropUVs(this._crop,this.flipX,this.flipY),this},resetCropObject:function(){return{u0:0,v0:0,u1:0,v1:0,width:0,height:0,x:0,y:0,flipX:!1,flipY:!1,cx:0,cy:0,cw:0,ch:0}}}},58072:t=>{t.exports={tintTopLeft:16777215,tintTopRight:16777215,tintBottomLeft:16777215,tintBottomRight:16777215,tintFill:!1,clearTint:function(){return this.setTint(16777215),this},setTint:function(t,e,i,s){return void 0===t&&(t=16777215),void 0===e&&(s=i=e=t),this.tintTopLeft=t,this.tintTopRight=e,this.tintBottomLeft=i,this.tintBottomRight=s,this.tintFill=!1,this},setTintFill:function(t,e,i,s){return this.setTint(t,e,i,s),this.tintFill=!0,this},tint:{set:function(t){this.setTint(t,t,t,t)}},isTinted:{get:function(){var t=16777215;return this.tintFill||this.tintTopLeft!==t||this.tintTopRight!==t||this.tintBottomLeft!==t||this.tintBottomRight!==t}}}},48129:t=>{t.exports=function(t){var e={name:t.name,type:t.type,x:t.x,y:t.y,depth:t.depth,scale:{x:t.scaleX,y:t.scaleY},origin:{x:t.originX,y:t.originY},flipX:t.flipX,flipY:t.flipY,rotation:t.rotation,alpha:t.alpha,visible:t.visible,blendMode:t.blendMode,textureKey:"",frameKey:"",data:{}};return t.texture&&(e.textureKey=t.texture.key,e.frameKey=t.frame.name),e}},56584:(t,e,i)=>{var s=i(83392),n=i(69360),r=i(64462),o=i(35786),a=i(62138),h=i(93736);t.exports={hasTransformComponent:!0,_scaleX:1,_scaleY:1,_rotation:0,x:0,y:0,z:0,w:0,scale:{get:function(){return(this._scaleX+this._scaleY)/2},set:function(t){this._scaleX=t,0===(this._scaleY=t)?this.renderFlags&=-5:this.renderFlags|=4}},scaleX:{get:function(){return this._scaleX},set:function(t){0===(this._scaleX=t)?this.renderFlags&=-5:0!==this._scaleY&&(this.renderFlags|=4)}},scaleY:{get:function(){return this._scaleY},set:function(t){0===(this._scaleY=t)?this.renderFlags&=-5:0!==this._scaleX&&(this.renderFlags|=4)}},angle:{get:function(){return a(this._rotation*s.RAD_TO_DEG)},set:function(t){this.rotation=a(t)*s.DEG_TO_RAD}},rotation:{get:function(){return this._rotation},set:function(t){this._rotation=o(t)}},setPosition:function(t,e,i,s){return void 0===t&&(t=0),void 0===e&&(e=t),void 0===i&&(i=0),void 0===s&&(s=0),this.x=t,this.y=e,this.z=i,this.w=s,this},copyPosition:function(t){return void 0!==t.x&&(this.x=t.x),void 0!==t.y&&(this.y=t.y),void 0!==t.z&&(this.z=t.z),void 0!==t.w&&(this.w=t.w),this},setRandomPosition:function(t,e,i,s){return void 0===e&&(e=0),void 0===i&&(i=this.scene.sys.scale.width),void 0===s&&(s=this.scene.sys.scale.height),this.x=(t=void 0===t?0:t)+Math.random()*i,this.y=e+Math.random()*s,this},setRotation:function(t){return this.rotation=t=void 0===t?0:t,this},setAngle:function(t){return this.angle=t=void 0===t?0:t,this},setScale:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=t),this.scaleX=t,this.scaleY=e,this},setX:function(t){return this.x=t=void 0===t?0:t,this},setY:function(t){return this.y=t=void 0===t?0:t,this},setZ:function(t){return this.z=t=void 0===t?0:t,this},setW:function(t){return this.w=t=void 0===t?0:t,this},getLocalTransformMatrix:function(t){return(t=void 0===t?new n:t).applyITRS(this.x,this.y,this._rotation,this._scaleX,this._scaleY)},getWorldTransformMatrix:function(t,e){void 0===t&&(t=new n);var i=this.parentContainer;if(!i)return this.getLocalTransformMatrix(t);for(e=e||new n,t.applyITRS(this.x,this.y,this._rotation,this._scaleX,this._scaleY);i;)e.applyITRS(i.x,i.y,i._rotation,i._scaleX,i._scaleY),e.multiply(t,t),i=i.parentContainer;return t},getLocalPoint:function(t,e,i,s){i=i||new h;var n=(s=s||this.scene.sys.cameras.main).scrollX,s=s.scrollY,t=t+n*this.scrollFactorX-n,n=e+s*this.scrollFactorY-s;return this.parentContainer?this.getWorldTransformMatrix().applyInverse(t,n,i):r(t,n,this.x,this.y,this.rotation,this.scaleX,this.scaleY,i),this._originComponent&&(i.x+=this._displayOriginX,i.y+=this._displayOriginY),i},getParentRotation:function(){for(var t=0,e=this.parentContainer;e;)t+=e.rotation,e=e.parentContainer;return t}}},69360:(t,e,i)=>{var s=i(56694),n=i(83392),u=i(93736),i=new s({initialize:function(t,e,i,s,n,r){void 0===t&&(t=1),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=1),void 0===n&&(n=0),void 0===r&&(r=0),this.matrix=new Float32Array([t,e,i,s,n,r,0,0,1]),this.decomposedMatrix={translateX:0,translateY:0,scaleX:1,scaleY:1,rotation:0},this.quad=new Float32Array(8)},a:{get:function(){return this.matrix[0]},set:function(t){this.matrix[0]=t}},b:{get:function(){return this.matrix[1]},set:function(t){this.matrix[1]=t}},c:{get:function(){return this.matrix[2]},set:function(t){this.matrix[2]=t}},d:{get:function(){return this.matrix[3]},set:function(t){this.matrix[3]=t}},e:{get:function(){return this.matrix[4]},set:function(t){this.matrix[4]=t}},f:{get:function(){return this.matrix[5]},set:function(t){this.matrix[5]=t}},tx:{get:function(){return this.matrix[4]},set:function(t){this.matrix[4]=t}},ty:{get:function(){return this.matrix[5]},set:function(t){this.matrix[5]=t}},rotation:{get:function(){return Math.acos(this.a/this.scaleX)*(Math.atan(-this.c/this.a)<0?-1:1)}},rotationNormalized:{get:function(){var t=this.matrix,e=t[0],i=t[1],s=t[2],t=t[3];return e||i?0{t.exports={_visible:!0,visible:{get:function(){return this._visible},set:function(t){t?(this._visible=!0,this.renderFlags|=1):(this._visible=!1,this.renderFlags&=-2)}},setVisible:function(t){return this.visible=t,this}}},64937:(t,e,i)=>{t.exports={Alpha:i(97123),AlphaSingle:i(15720),BlendMode:i(69732),ComputedSize:i(28284),Crop:i(85293),Depth:i(14975),Flip:i(92972),FX:i(88677),GetBounds:i(80693),Mask:i(39171),Origin:i(28072),PathFollower:i(54211),Pipeline:i(58210),PostPipeline:i(44086),ScrollFactor:i(45900),Size:i(31654),Texture:i(82081),TextureCrop:i(21850),Tint:i(58072),ToJSON:i(48129),Transform:i(56584),TransformMatrix:i(69360),Visible:i(59694)}},70339:(t,e,i)=>{var r=i(59959),n=i(95723),s=i(56694),o=i(64937),a=i(56631),h=i(89980),l=i(74118),u=i(98524),c=i(58795),d=i(93736),i=new s({Extends:h,Mixins:[o.AlphaSingle,o.BlendMode,o.ComputedSize,o.Depth,o.Mask,o.PostPipeline,o.Transform,o.Visible,u],initialize:function(t,e,i,s){h.call(this,t,"Container"),this.list=[],this.exclusive=!0,this.maxSize=-1,this.position=0,this.localTransform=new o.TransformMatrix,this.tempTransformMatrix=new o.TransformMatrix,this._sortKey="",this._sysEvents=t.sys.events,this.scrollFactorX=1,this.scrollFactorY=1,this.initPostPipeline(),this.setPosition(e,i),this.setBlendMode(n.SKIP_CHECK),s&&this.add(s)},originX:{get:function(){return.5}},originY:{get:function(){return.5}},displayOriginX:{get:function(){return.5*this.width}},displayOriginY:{get:function(){return.5*this.height}},setExclusive:function(t){return this.exclusive=t=void 0===t?!0:t,this},getBounds:function(t){var e;if((t=void 0===t?new l:t).setTo(this.x,this.y,0,0),this.parentContainer&&(e=this.parentContainer.getBoundsTransformMatrix().transformPoint(this.x,this.y),t.setTo(e.x,e.y,0,0)),0{t.exports=function(t,e,i,s){i.addToRenderList(e);var n=e.list;if(0!==n.length){var r=e.localTransform,o=(s?(r.loadIdentity(),r.multiply(s),r.translate(e.x,e.y),r.rotate(e.rotation),r.scale(e.scaleX,e.scaleY)):r.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY),-1!==e.blendMode),a=(o||t.setBlendMode(0),e._alpha),h=e.scrollFactorX,l=e.scrollFactorY;e.mask&&e.mask.preRenderCanvas(t,null,i);for(var u=0;u{var r=i(88933),o=i(70339),s=i(99325),a=i(20494);s.register("container",function(t,e){var i=a(t=void 0===t?{}:t,"x",0),s=a(t,"y",0),n=a(t,"children",null),i=new o(this.scene,i,s,n);return void 0!==e&&(t.add=e),r(this.scene,i,t),i})},23400:(t,e,i)=>{var s=i(70339);i(61286).register("container",function(t,e,i){return this.displayList.add(new s(this.scene,t,e,i))})},98524:(t,e,i)=>{i(72283);var s=i(36934),i=i(13916);t.exports={renderWebGL:s,renderCanvas:i}},36934:t=>{t.exports=function(t,e,i,s){i.addToRenderList(e);var n=e.list,r=n.length;if(0!==r){var o=e.localTransform,a=(s?(o.loadIdentity(),o.multiply(s),o.translate(e.x,e.y),o.rotate(e.rotation),o.scale(e.scaleX,e.scaleY)):o.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY),t.pipelines.preBatch(e),-1!==e.blendMode);a||t.setBlendMode(0);for(var h=e.alpha,l=e.scrollFactorX,u=e.scrollFactorY,c=0;c{t.exports=["normal","multiply","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]},38943:(t,e,i)=>{var s=i(56694),n=i(64937),r=i(11603),o=i(89980),a=i(42911),h=i(55638),l=i(7599),u=i(51729),i=new s({Extends:o,Mixins:[n.AlphaSingle,n.BlendMode,n.Depth,n.Origin,n.ScrollFactor,n.Transform,n.Visible,r],initialize:function(t,e,i,s,n,r){o.call(this,t,"DOMElement"),this.parent=t.sys.game.domContainer,this.cache=t.sys.cache.html,this.node,this.transformOnly=!1,this.skewX=0,this.skewY=0,this.rotate3d=new u,this.rotate3dAngle="deg",this.pointerEvents="auto",this.width=0,this.height=0,this.displayWidth=0,this.displayHeight=0,this.handler=this.dispatchNativeEvent.bind(this),this.setPosition(e,i),"string"==typeof s?"#"===s[0]?this.setElement(s.substr(1),n,r):this.createElement(s,n,r):s&&this.setElement(s,n,r),t.sys.events.on(l.SLEEP,this.handleSceneEvent,this),t.sys.events.on(l.WAKE,this.handleSceneEvent,this),t.sys.events.on(l.PRE_RENDER,this.preRender,this)},handleSceneEvent:function(t){var e=this.node,i=e.style;e&&(i.display=t.settings.visible?"block":"none")},setSkew:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.skewX=t,this.skewY=e,this},setPerspective:function(t){return this.parent.style.perspective=t+"px",this},perspective:{get:function(){return parseFloat(this.parent.style.perspective)},set:function(t){this.parent.style.perspective=t+"px"}},addListener:function(t){if(this.node){t=t.split(" ");for(var e=0;e{var p=i(2452),f=i(89980),i=i(69360),g=new i,y=new i,v=new i;t.exports=function(t,e,i,s){var n,r,o,a,h,l,u,c,d;e.node&&(n=e.node.style,o=e.scene.sys.settings,!n||!o.visible||f.RENDER_MASK!==e.renderFlags||0!==e.cameraFilter&&e.cameraFilter&i.id||e.parentContainer&&!e.parentContainer.willRender()?n.display="none":(o=e.parentContainer,r=i.alpha*e.alpha,o&&(r*=o.alpha),o=g,a=y,h=v,u=l=0,d=c="0%",s?(l=e.width*e.scaleX*e.originX,u=e.height*e.scaleY*e.originY,a.applyITRS(e.x-l,e.y-u,e.rotation,e.scaleX,e.scaleY),o.copyFrom(i.matrix),o.multiplyWithOffset(s,-i.scrollX*e.scrollFactorX,-i.scrollY*e.scrollFactorY),a.e=e.x-l,a.f=e.y-u):(l=e.width*e.originX,u=e.height*e.originY,a.applyITRS(e.x-l,e.y-u,e.rotation,e.scaleX,e.scaleY),o.copyFrom(i.matrix),c=100*e.originX+"%",d=100*e.originY+"%",a.e-=i.scrollX*e.scrollFactorX,a.f-=i.scrollY*e.scrollFactorY),o.multiply(a,h),e.transformOnly||(n.display="block",n.opacity=r,n.zIndex=e._depth,n.pointerEvents=e.pointerEvents,n.mixBlendMode=p[e._blendMode]),n.transform=h.getCSSMatrix()+" skew("+e.skewX+"rad, "+e.skewY+"rad) rotate3d("+e.rotate3d.x+","+e.rotate3d.y+","+e.rotate3d.z+","+e.rotate3d.w+e.rotate3dAngle+")",n.transformOrigin=c+" "+d))}},66788:(t,e,i)=>{var r=i(38943);i(61286).register("dom",function(t,e,i,s,n){t=new r(this.scene,t,e,i,s,n);return this.displayList.add(t),t})},11603:(t,e,i)=>{i(72283);var s=i(66070),i=i(66070);t.exports={renderWebGL:s,renderCanvas:i}},65492:t=>{t.exports="addedtoscene"},98398:t=>{t.exports="destroy"},40239:t=>{t.exports="removedfromscene"},17286:t=>{t.exports="complete"},31496:t=>{t.exports="created"},89587:t=>{t.exports="error"},59792:t=>{t.exports="locked"},96342:t=>{t.exports="loop"},6017:t=>{t.exports="playing"},49614:t=>{t.exports="play"},24418:t=>{t.exports="seeked"},87318:t=>{t.exports="seeking"},50009:t=>{t.exports="stalled"},61922:t=>{t.exports="stop"},79501:t=>{t.exports="textureready"},4052:t=>{t.exports="unlocked"},54857:t=>{t.exports="unsupported"},56631:(t,e,i)=>{t.exports={ADDED_TO_SCENE:i(65492),DESTROY:i(98398),REMOVED_FROM_SCENE:i(40239),VIDEO_COMPLETE:i(17286),VIDEO_CREATED:i(31496),VIDEO_ERROR:i(89587),VIDEO_LOCKED:i(59792),VIDEO_LOOP:i(96342),VIDEO_PLAY:i(49614),VIDEO_PLAYING:i(6017),VIDEO_SEEKED:i(24418),VIDEO_SEEKING:i(87318),VIDEO_STALLED:i(50009),VIDEO_STOP:i(61922),VIDEO_TEXTURE:i(79501),VIDEO_UNLOCKED:i(4052),VIDEO_UNSUPPORTED:i(54857)}},39419:(t,e,i)=>{var s=i(56694),n=i(64937),r=i(89980),i=i(79394),s=new s({Extends:r,Mixins:[n.Alpha,n.BlendMode,n.Depth,n.Flip,n.Origin,n.ScrollFactor,n.Size,n.Texture,n.Tint,n.Transform,n.Visible,i],initialize:function(t){r.call(this,t,"Extern")},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},preUpdate:function(){},render:function(){}});t.exports=s},96699:()=>{},41155:(t,e,i)=>{var s=i(39419);i(61286).register("extern",function(){var t=new s(this.scene);return this.displayList.add(t),t})},79394:(t,e,i)=>{i(72283);var s=i(81410),i=i(96699);t.exports={renderWebGL:s,renderCanvas:i}},81410:(t,e,i)=>{var n=i(73329);t.exports=function(t,e,i,s){t.pipelines.clear();s=n(e,i,s).calc;e.render.call(e,t,i,s),t.pipelines.rebind()}},36266:t=>{t.exports={ARC:0,BEGIN_PATH:1,CLOSE_PATH:2,FILL_RECT:3,LINE_TO:4,MOVE_TO:5,LINE_STYLE:6,FILL_STYLE:7,FILL_PATH:8,STROKE_PATH:9,FILL_TRIANGLE:10,STROKE_TRIANGLE:11,SAVE:14,RESTORE:15,TRANSLATE:16,SCALE:17,ROTATE:18,GRADIENT_FILL_STYLE:21,GRADIENT_LINE_STYLE:22}},33182:(t,e,i)=>{var s=i(51052),n=i(56694),h=i(36266),r=i(64937),o=i(95669),a=i(89980),p=i(72632),l=i(10850),f=i(83392),i=i(60898),u=new n({Extends:a,Mixins:[r.AlphaSingle,r.BlendMode,r.Depth,r.Mask,r.Pipeline,r.PostPipeline,r.Transform,r.Visible,r.ScrollFactor,i],initialize:function(t,e){var i=l(e,"x",0),s=l(e,"y",0);a.call(this,t,"Graphics"),this.setPosition(i,s),this.initPipeline(),this.initPostPipeline(),this.displayOriginX=0,this.displayOriginY=0,this.commandBuffer=[],this.defaultFillColor=-1,this.defaultFillAlpha=1,this.defaultStrokeWidth=1,this.defaultStrokeColor=-1,this.defaultStrokeAlpha=1,this._lineWidth=1,this.setDefaultStyles(e)},setDefaultStyles:function(t){return l(t,"lineStyle",null)&&(this.defaultStrokeWidth=l(t,"lineStyle.width",1),this.defaultStrokeColor=l(t,"lineStyle.color",16777215),this.defaultStrokeAlpha=l(t,"lineStyle.alpha",1),this.lineStyle(this.defaultStrokeWidth,this.defaultStrokeColor,this.defaultStrokeAlpha)),l(t,"fillStyle",null)&&(this.defaultFillColor=l(t,"fillStyle.color",16777215),this.defaultFillAlpha=l(t,"fillStyle.alpha",1),this.fillStyle(this.defaultFillColor,this.defaultFillAlpha)),this},lineStyle:function(t,e,i){return this.commandBuffer.push(h.LINE_STYLE,t,e,i=void 0===i?1:i),this._lineWidth=t,this},fillStyle:function(t,e){return this.commandBuffer.push(h.FILL_STYLE,t,e=void 0===e?1:e),this},fillGradientStyle:function(t,e,i,s,n,r,o,a){return void 0===n&&(n=1),void 0===r&&(r=n),void 0===o&&(o=n),void 0===a&&(a=n),this.commandBuffer.push(h.GRADIENT_FILL_STYLE,n,r,o,a,t,e,i,s),this},lineGradientStyle:function(t,e,i,s,n,r){return this.commandBuffer.push(h.GRADIENT_LINE_STYLE,t,r=void 0===r?1:r,e,i,s,n),this},beginPath:function(){return this.commandBuffer.push(h.BEGIN_PATH),this},closePath:function(){return this.commandBuffer.push(h.CLOSE_PATH),this},fillPath:function(){return this.commandBuffer.push(h.FILL_PATH),this},fill:function(){return this.commandBuffer.push(h.FILL_PATH),this},strokePath:function(){return this.commandBuffer.push(h.STROKE_PATH),this},stroke:function(){return this.commandBuffer.push(h.STROKE_PATH),this},fillCircleShape:function(t){return this.fillCircle(t.x,t.y,t.radius)},strokeCircleShape:function(t){return this.strokeCircle(t.x,t.y,t.radius)},fillCircle:function(t,e,i){return this.beginPath(),this.arc(t,e,i,0,f.PI2),this.fillPath(),this},strokeCircle:function(t,e,i){return this.beginPath(),this.arc(t,e,i,0,f.PI2),this.strokePath(),this},fillRectShape:function(t){return this.fillRect(t.x,t.y,t.width,t.height)},strokeRectShape:function(t){return this.strokeRect(t.x,t.y,t.width,t.height)},fillRect:function(t,e,i,s){return this.commandBuffer.push(h.FILL_RECT,t,e,i,s),this},strokeRect:function(t,e,i,s){var n=this._lineWidth/2,r=t-n,n=t+n;return this.beginPath(),this.moveTo(t,e),this.lineTo(t,e+s),this.strokePath(),this.beginPath(),this.moveTo(t+i,e),this.lineTo(t+i,e+s),this.strokePath(),this.beginPath(),this.moveTo(r,e),this.lineTo(n+i,e),this.strokePath(),this.beginPath(),this.moveTo(r,e+s),this.lineTo(n+i,e+s),this.strokePath(),this},fillRoundedRect:function(t,e,i,s,n){var r=n=void 0===n?20:n,o=n,a=n,h=n,n=("number"!=typeof n&&(r=p(n,"tl",20),o=p(n,"tr",20),a=p(n,"bl",20),h=p(n,"br",20)),0<=r),l=0<=o,u=0<=a,c=0<=h,r=Math.abs(r),o=Math.abs(o),a=Math.abs(a),h=Math.abs(h);return this.beginPath(),this.moveTo(t+r,e),this.lineTo(t+i-o,e),l?this.arc(t+i-o,e+o,o,-f.TAU,0):this.arc(t+i,e,o,Math.PI,f.TAU,!0),this.lineTo(t+i,e+s-h),c?this.arc(t+i-h,e+s-h,h,0,f.TAU):this.arc(t+i,e+s,h,-f.TAU,Math.PI,!0),this.lineTo(t+a,e+s),u?this.arc(t+a,e+s-a,a,f.TAU,Math.PI):this.arc(t,e+s,a,0,-f.TAU,!0),this.lineTo(t,e+r),n?this.arc(t+r,e+r,r,-Math.PI,-f.TAU):this.arc(t,e,r,f.TAU,0,!0),this.fillPath(),this},strokeRoundedRect:function(t,e,i,s,n){var r=n=void 0===n?20:n,o=n,a=n,h=n,l=Math.min(i,s)/2,n=("number"!=typeof n&&(r=p(n,"tl",20),o=p(n,"tr",20),a=p(n,"bl",20),h=p(n,"br",20)),0<=r),u=0<=o,c=0<=a,d=0<=h,r=Math.min(Math.abs(r),l),o=Math.min(Math.abs(o),l),a=Math.min(Math.abs(a),l),h=Math.min(Math.abs(h),l);return this.beginPath(),this.moveTo(t+r,e),this.lineTo(t+i-o,e),this.moveTo(t+i-o,e),u?this.arc(t+i-o,e+o,o,-f.TAU,0):this.arc(t+i,e,o,Math.PI,f.TAU,!0),this.lineTo(t+i,e+s-h),this.moveTo(t+i,e+s-h),d?this.arc(t+i-h,e+s-h,h,0,f.TAU):this.arc(t+i,e+s,h,-f.TAU,Math.PI,!0),this.lineTo(t+a,e+s),this.moveTo(t+a,e+s),c?this.arc(t+a,e+s-a,a,f.TAU,Math.PI):this.arc(t,e+s,a,0,-f.TAU,!0),this.lineTo(t,e+r),this.moveTo(t,e+r),n?this.arc(t+r,e+r,r,-Math.PI,-f.TAU):this.arc(t,e,r,f.TAU,0,!0),this.strokePath(),this},fillPointShape:function(t,e){return this.fillPoint(t.x,t.y,e)},fillPoint:function(t,e,i){return!i||i<1?i=1:(t-=i/2,e-=i/2),this.commandBuffer.push(h.FILL_RECT,t,e,i,i),this},fillTriangleShape:function(t){return this.fillTriangle(t.x1,t.y1,t.x2,t.y2,t.x3,t.y3)},strokeTriangleShape:function(t){return this.strokeTriangle(t.x1,t.y1,t.x2,t.y2,t.x3,t.y3)},fillTriangle:function(t,e,i,s,n,r){return this.commandBuffer.push(h.FILL_TRIANGLE,t,e,i,s,n,r),this},strokeTriangle:function(t,e,i,s,n,r){return this.commandBuffer.push(h.STROKE_TRIANGLE,t,e,i,s,n,r),this},strokeLineShape:function(t){return this.lineBetween(t.x1,t.y1,t.x2,t.y2)},lineBetween:function(t,e,i,s){return this.beginPath(),this.moveTo(t,e),this.lineTo(i,s),this.strokePath(),this},lineTo:function(t,e){return this.commandBuffer.push(h.LINE_TO,t,e),this},moveTo:function(t,e){return this.commandBuffer.push(h.MOVE_TO,t,e),this},strokePoints:function(t,e,i,s){void 0===e&&(e=!1),void 0===i&&(i=!1),void 0===s&&(s=t.length),this.beginPath(),this.moveTo(t[0].x,t[0].y);for(var n=1;n{var p=i(36266),f=i(49584);t.exports=function(t,e,i,s,n,r){var o=e.commandBuffer,a=o.length,h=n||t.currentContext;if(0!==a&&f(t,h,e,i,s)){i.addToRenderList(e);var l,u,c;h.beginPath();for(var d=0;d>>16)+","+((65280&u)>>>8)+","+(255&u)+","+l+")",h.lineWidth=c,d+=3;break;case p.FILL_STYLE:u=o[d+1],l=o[d+2],h.fillStyle="rgba("+((16711680&u)>>>16)+","+((65280&u)>>>8)+","+(255&u)+","+l+")",d+=2;break;case p.BEGIN_PATH:h.beginPath();break;case p.CLOSE_PATH:h.closePath();break;case p.FILL_PATH:r||h.fill();break;case p.STROKE_PATH:r||h.stroke();break;case p.FILL_RECT:r?h.rect(o[d+1],o[d+2],o[d+3],o[d+4]):h.fillRect(o[d+1],o[d+2],o[d+3],o[d+4]),d+=4;break;case p.FILL_TRIANGLE:h.beginPath(),h.moveTo(o[d+1],o[d+2]),h.lineTo(o[d+3],o[d+4]),h.lineTo(o[d+5],o[d+6]),h.closePath(),r||h.fill(),d+=6;break;case p.STROKE_TRIANGLE:h.beginPath(),h.moveTo(o[d+1],o[d+2]),h.lineTo(o[d+3],o[d+4]),h.lineTo(o[d+5],o[d+6]),h.closePath(),r||h.stroke(),d+=6;break;case p.LINE_TO:h.lineTo(o[d+1],o[d+2]),d+=2;break;case p.MOVE_TO:h.moveTo(o[d+1],o[d+2]),d+=2;break;case p.LINE_FX_TO:h.lineTo(o[d+1],o[d+2]),d+=5;break;case p.MOVE_FX_TO:h.moveTo(o[d+1],o[d+2]),d+=5;break;case p.SAVE:h.save();break;case p.RESTORE:h.restore();break;case p.TRANSLATE:h.translate(o[d+1],o[d+2]),d+=2;break;case p.SCALE:h.scale(o[d+1],o[d+2]),d+=2;break;case p.ROTATE:h.rotate(o[d+1]),d+=1;break;case p.GRADIENT_FILL_STYLE:d+=5;break;case p.GRADIENT_LINE_STYLE:d+=6}h.restore()}}},41286:(t,e,i)=>{var s=i(99325),n=i(33182);s.register("graphics",function(t,e){void 0===t&&(t={}),void 0!==e&&(t.add=e);e=new n(this.scene,t);return t.add&&this.scene.sys.displayList.add(e),e})},13122:(t,e,i)=>{var s=i(33182);i(61286).register("graphics",function(t){return this.displayList.add(new s(this.scene,t))})},60898:(t,e,i)=>{i(72283);var s=i(34429);i(91543);i=i(91543),t.exports={renderWebGL:s,renderCanvas:i}},34429:(t,e,i)=>{function k(t,e,i){this.x=t,this.y=e,this.width=i}function F(t,e,i){this.points=[],this.pointsLength=1,this.points[0]=new k(t,e,i)}var I=i(36266),B=i(73329),s=i(69360),N=i(75512),X=[],U=new s;t.exports=function(t,e,i,s){if(0!==e.commandBuffer.length){i.addToRenderList(e);var n=t.pipelines.set(e.pipeline,e);t.pipelines.preBatch(e);for(var r=B(e,i,s).calc,o=U.loadIdentity(),a=e.commandBuffer,h=i.alpha*e.alpha,l=1,u=n.fillTint,c=n.strokeTint,d=0,p=0,f=0,g=2*Math.PI,y=[],v=0,m=!0,x=null,w=N.getTintAppendFloatAlpha,T=0;T{var y=i(83979),s=i(56694),r=i(56631),n=i(6659),o=i(71608),v=i(72632),m=i(10850),x=i(19256),a=i(42911),w=i(75757),h=i(58403),l=i(13747),i=new s({Extends:n,initialize:function(t,e,i){n.call(this),i?e&&!Array.isArray(e)&&(e=[e]):Array.isArray(e)?a(e[0])&&(i=e,e=null):a(e)&&(i=e,e=null),this.scene=t,this.children=new h,this.isParent=!0,this.type="Group",this.classType=v(i,"classType",l),this.name=v(i,"name",""),this.active=v(i,"active",!0),this.maxSize=v(i,"maxSize",-1),this.defaultKey=v(i,"defaultKey",null),this.defaultFrame=v(i,"defaultFrame",null),this.runChildUpdate=v(i,"runChildUpdate",!1),this.createCallback=v(i,"createCallback",null),this.removeCallback=v(i,"removeCallback",null),this.createMultipleCallback=v(i,"createMultipleCallback",null),this.internalCreateCallback=v(i,"internalCreateCallback",null),this.internalRemoveCallback=v(i,"internalRemoveCallback",null),e&&this.addMultiple(e),i&&this.createMultiple(i),this.on(r.ADDED_TO_SCENE,this.addedToScene,this),this.on(r.REMOVED_FROM_SCENE,this.removedFromScene,this)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},create:function(t,e,i,s,n,r){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.defaultKey),void 0===s&&(s=this.defaultFrame),void 0===n&&(n=!0),void 0===r&&(r=!0),this.isFull()?null:((t=new this.classType(this.scene,t,e,i,s)).addToDisplayList(this.scene.sys.displayList),t.addToUpdateList(),t.visible=n,t.setActive(r),this.add(t),t)},createMultiple:function(t){if(this.isFull())return[];var e=[];if((t=Array.isArray(t)?t:[t])[0].key)for(var i=0;i=this.maxSize},countActive:function(t){void 0===t&&(t=!0);for(var e=0,i=0;i{var s=i(99325),n=i(59192);s.register("group",function(t){return new n(this.scene,null,t)})},62598:(t,e,i)=>{var s=i(59192);i(61286).register("group",function(t,e){return this.updateList.add(new s(this.scene,t,e))})},1539:(t,e,i)=>{var s=i(56694),n=i(64937),r=i(89980),i=i(57322),s=new s({Extends:r,Mixins:[n.Alpha,n.BlendMode,n.Depth,n.Flip,n.GetBounds,n.Mask,n.Origin,n.Pipeline,n.PostPipeline,n.ScrollFactor,n.Size,n.TextureCrop,n.Tint,n.Transform,n.Visible,i],initialize:function(t,e,i,s,n){r.call(this,t,"Image"),this._crop=this.resetCropObject(),this.setTexture(s,n),this.setPosition(e,i),this.setSizeToFrame(),this.setOriginFromFrame(),this.initPipeline(),this.initPostPipeline(!0)}});t.exports=s},57786:t=>{t.exports=function(t,e,i,s){i.addToRenderList(e),t.batchSprite(e,e.frame,i,s)}},83556:(t,e,i)=>{var n=i(88933),s=i(99325),r=i(20494),o=i(1539);s.register("image",function(t,e){var i=r(t=void 0===t?{}:t,"key",null),s=r(t,"frame",null),i=new o(this.scene,0,0,i,s);return void 0!==e&&(t.add=e),n(this.scene,i,t),i})},20927:(t,e,i)=>{var n=i(1539);i(61286).register("image",function(t,e,i,s){return this.displayList.add(new n(this.scene,t,e,i,s))})},57322:(t,e,i)=>{i(72283);var s=i(59390),i=i(57786);t.exports={renderWebGL:s,renderCanvas:i}},59390:t=>{t.exports=function(t,e,i,s){i.addToRenderList(e),this.pipeline.batchSprite(e,i,s)}},48013:(t,e,i)=>{var s={Events:i(56631),DisplayList:i(91713),GameObjectCreator:i(99325),GameObjectFactory:i(61286),UpdateList:i(92034),Components:i(64937),GetCalcMatrix:i(73329),BuildGameObject:i(88933),BuildGameObjectAnimation:i(32291),GameObject:i(89980),BitmapText:i(44616),Blitter:i(52816),Bob:i(41664),Container:i(70339),DOMElement:i(38943),DynamicBitmapText:i(13468),Extern:i(39419),Graphics:i(33182),Group:i(59192),Image:i(1539),Layer:i(85305),Particles:i(27684),PathFollower:i(29598),RenderTexture:i(15996),RetroFont:i(55873),Rope:i(79968),Sprite:i(13747),Text:i(76555),GetTextSize:i(32979),MeasureText:i(27030),TextStyle:i(74744),TileSprite:i(35856),Zone:i(71030),Video:i(8630),Shape:i(91461),Arc:i(28593),Curve:i(15220),Ellipse:i(28591),Grid:i(39169),IsoBox:i(4415),IsoTriangle:i(65159),Line:i(579),Polygon:i(91249),Rectangle:i(517),Star:i(77843),Triangle:i(21873),Factories:{Blitter:i(38906),Container:i(23400),DOMElement:i(66788),DynamicBitmapText:i(94145),Extern:i(41155),Graphics:i(13122),Group:i(62598),Image:i(20927),Layer:i(17676),Particles:i(81212),PathFollower:i(19626),RenderTexture:i(29599),Rope:i(31982),Sprite:i(66135),StaticBitmapText:i(21797),Text:i(94627),TileSprite:i(20509),Zone:i(34546),Video:i(215),Arc:i(10369),Curve:i(10147),Ellipse:i(99869),Grid:i(9326),IsoBox:i(88154),IsoTriangle:i(67765),Line:i(85665),Polygon:i(88203),Rectangle:i(94355),Star:i(23962),Triangle:i(79296)},Creators:{Blitter:i(68452),Container:i(44516),DynamicBitmapText:i(67513),Graphics:i(41286),Group:i(61295),Image:i(83556),Layer:i(56378),Particles:i(765),RenderTexture:i(85692),Rope:i(96027),Sprite:i(89219),StaticBitmapText:i(95499),Text:i(75397),TileSprite:i(63950),Zone:i(24067),Video:i(65601)}};s.Shader=i(27902),s.Mesh=i(83321),s.NineSlice=i(44139),s.PointLight=i(13171),s.Plane=i(33412),s.Factories.Shader=i(51979),s.Factories.Mesh=i(8767),s.Factories.NineSlice=i(53778),s.Factories.PointLight=i(91201),s.Factories.Plane=i(58322),s.Creators.Shader=i(13908),s.Creators.Mesh=i(41839),s.Creators.NineSlice=i(40964),s.Creators.PointLight=i(162),s.Creators.Plane=i(10912),s.Light=i(14455),s.LightsManager=i(26193),s.LightsPlugin=i(50296),t.exports=s},85305:(t,e,i)=>{var s=i(95723),n=i(56694),r=i(64937),o=i(48129),a=i(81078),h=i(6659),l=i(56631),u=i(71207),c=i(58010),d=i(7599),p=i(17922),i=new n({Extends:u,Mixins:[r.AlphaSingle,r.BlendMode,r.Depth,r.Mask,r.PostPipeline,r.Visible,h,c],initialize:function(t,e){u.call(this,t),h.call(this),this.scene=t,this.displayList=null,this.type="Layer",this.state=0,this.parentContainer=null,this.name="",this.active=!0,this.tabIndex=-1,this.data=null,this.renderFlags=15,this.cameraFilter=0,this.input=null,this.body=null,this.ignoreDestroy=!1,this.systems=t.sys,this.events=t.sys.events,this.sortChildrenFlag=!1,this.addCallback=this.addChildCallback,this.removeCallback=this.removeChildCallback,this.initPostPipeline(),this.clearAlpha(),this.setBlendMode(s.SKIP_CHECK),e&&this.add(e),t.sys.queueDepthSort()},setActive:function(t){return this.active=t,this},setName:function(t){return this.name=t,this},setState:function(t){return this.state=t,this},setDataEnabled:function(){return this.data||(this.data=new a(this)),this},setData:function(t,e){return this.data||(this.data=new a(this)),this.data.set(t,e),this},incData:function(t,e){return this.data||(this.data=new a(this)),this.data.inc(t,e),this},toggleData:function(t){return this.data||(this.data=new a(this)),this.data.toggle(t),this},getData:function(t){return this.data||(this.data=new a(this)),this.data.get(t)},setInteractive:function(){return this},disableInteractive:function(){return this},removeInteractive:function(){return this},addedToScene:function(){},removedFromScene:function(){},update:function(){},toJSON:function(){return o(this)},willRender:function(t){return!(15!==this.renderFlags||0===this.list.length||0!==this.cameraFilter&&this.cameraFilter&t.id)},getIndexList:function(){for(var t=this,e=this.parentContainer,i=[];e&&(i.unshift(e.getIndex(t)),(t=e).parentContainer);)e=e.parentContainer;return i.unshift(this.displayList.getIndex(t)),i},addChildCallback:function(t){t.displayList&&t.displayList!==this&&t.removeFromDisplayList(),t.displayList||(this.queueDepthSort(),t.displayList=this,t.emit(l.ADDED_TO_SCENE,t,this.scene),this.events.emit(d.ADDED_TO_SCENE,t,this.scene))},removeChildCallback:function(t){this.queueDepthSort(),t.displayList=null,t.emit(l.REMOVED_FROM_SCENE,t,this.scene),this.events.emit(d.REMOVED_FROM_SCENE,t,this.scene)},queueDepthSort:function(){this.sortChildrenFlag=!0},depthSort:function(){this.sortChildrenFlag&&(p(this.list,this.sortByDepth),this.sortChildrenFlag=!1)},sortByDepth:function(t,e){return t._depth-e._depth},getChildren:function(){return this.list},addToDisplayList:function(t){return void 0===t&&(t=this.scene.sys.displayList),this.displayList&&this.displayList!==t&&this.removeFromDisplayList(),t.exists(this)||((this.displayList=t).add(this,!0),t.queueDepthSort(),this.emit(l.ADDED_TO_SCENE,this,this.scene),t.events.emit(d.ADDED_TO_SCENE,this,this.scene)),this},removeFromDisplayList:function(){var t=this.displayList||this.scene.sys.displayList;return t.exists(this)&&(t.remove(this,!0),t.queueDepthSort(),this.displayList=null,this.emit(l.REMOVED_FROM_SCENE,this,this.scene),t.events.emit(d.REMOVED_FROM_SCENE,this,this.scene)),this},destroy:function(t){if(this.scene&&!this.ignoreDestroy){this.emit(l.DESTROY,this);for(var e=this.list;e.length;)e[0].destroy(t);this.removeAllListeners(),this.resetPostPipeline(!0),this.displayList&&(this.displayList.remove(this,!0),this.displayList.queueDepthSort()),this.data&&(this.data.destroy(),this.data=void 0),this.active=!1,this.visible=!1,this.list=void 0,this.scene=void 0,this.displayList=void 0,this.systems=void 0,this.events=void 0}}});t.exports=i},834:t=>{t.exports=function(t,e,i){var s=e.list;if(0!==s.length){e.depthSort();var n=-1!==e.blendMode,r=(n||t.setBlendMode(0),e._alpha);e.mask&&e.mask.preRenderCanvas(t,null,i);for(var o=0;o{var s=i(88933),n=i(85305),r=i(99325),o=i(20494);r.register("layer",function(t,e){var i=o(t=void 0===t?{}:t,"children",null),i=new n(this.scene,i);return void 0!==e&&(t.add=e),s(this.scene,i,t),i})},17676:(t,e,i)=>{var s=i(85305);i(61286).register("layer",function(t){return this.displayList.add(new s(this.scene,t))})},58010:(t,e,i)=>{i(72283);var s=i(17576),i=i(834);t.exports={renderWebGL:s,renderCanvas:i}},17576:t=>{t.exports=function(t,e,i){var s=e.list,n=s.length;if(0!==n){e.depthSort(),t.pipelines.preBatch(e);var r=-1!==e.blendMode;r||t.setBlendMode(0);for(var o=e.alpha,a=0;a{var a=i(26673),s=i(56694),n=i(64937),h=i(39298),r=i(75512),o=new s({Extends:a,Mixins:[n.Origin,n.ScrollFactor,n.Transform,n.Visible],initialize:function(t,e,i,s,n,r,o){a.call(this,t,e,i),this.color=new h(s,n,r),this.intensity=o,this.renderFlags=15,this.cameraFilter=0,this.setScrollFactor(1,1),this.setOrigin(),this.setDisplayOrigin(i)},displayWidth:{get:function(){return this.diameter},set:function(t){this.diameter=t}},displayHeight:{get:function(){return this.diameter},set:function(t){this.diameter=t}},width:{get:function(){return this.diameter},set:function(t){this.diameter=t}},height:{get:function(){return this.diameter},set:function(t){this.diameter=t}},willRender:function(t){return!(o.RENDER_MASK!==this.renderFlags||0!==this.cameraFilter&&this.cameraFilter&t.id)},setColor:function(t){t=r.getFloatsFromUintRGB(t);return this.color.set(t[0],t[1],t[2]),this},setIntensity:function(t){return this.intensity=t,this},setRadius:function(t){return this.radius=t,this}});o.RENDER_MASK=15,t.exports=o},26193:(t,e,i)=>{var o=i(26535),s=i(56694),a=i(53996),r=i(14455),h=i(13171),n=i(39298),l=i(72677),u=i(17922),c=i(75512),i=new s({initialize:function(){this.lights=[],this.ambientColor=new n(.1,.1,.1),this.active=!1,this.maxLights=-1,this.visibleLights=0},addPointLight:function(t,e,i,s,n,r){return this.systems.displayList.add(new h(this.scene,t,e,i,s,n,r))},enable:function(){return-1===this.maxLights&&(this.maxLights=this.systems.renderer.config.maxLights),this.active=!0,this},disable:function(){return this.active=!1,this},getLights:function(t){for(var e=this.lights,i=t.worldView,s=[],n=0;nthis.maxLights&&(u(s,this.sortByDistance),s=s.slice(0,this.maxLights)),this.visibleLights=s.length,s},sortByDistance:function(t,e){return t.distance>=e.distance},setAmbientColor:function(t){t=c.getFloatsFromUintRGB(t);return this.ambientColor.set(t[0],t[1],t[2]),this},getMaxVisibleLights:function(){return this.maxLights},getLightCount:function(){return this.lights.length},addLight:function(t,e,i,s,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=128),void 0===n&&(n=1);s=c.getFloatsFromUintRGB(s=void 0===s?16777215:s),t=new r(t,e,i,s[0],s[1],s[2],n);return this.lights.push(t),t},removeLight:function(t){t=this.lights.indexOf(t);return 0<=t&&l(this.lights,t),this},shutdown:function(){this.lights.length=0},destroy:function(){this.shutdown()}});t.exports=i},50296:(t,e,i)=>{var s=i(56694),n=i(26193),r=i(91963),o=i(7599),i=new s({Extends:n,initialize:function(t){this.scene=t,this.systems=t.sys,t.sys.settings.isBooted||t.sys.events.once(o.BOOT,this.boot,this),n.call(this)},boot:function(){var t=this.systems.events;t.on(o.SHUTDOWN,this.shutdown,this),t.on(o.DESTROY,this.destroy,this)},destroy:function(){this.shutdown(),this.scene=void 0,this.systems=void 0}});r.register("LightsPlugin",i,"lights"),t.exports=i},83321:(t,e,i)=>{var s=i(56694),n=i(64937),r=i(75606),o=i(18693),d=i(89980),u=i(53267),a=i(67623),h=i(73329),p=i(16650),l=i(23464),c=i(23701),f=i(17922),g=i(70015),y=i(85769),i=new s({Extends:d,Mixins:[n.AlphaSingle,n.BlendMode,n.Depth,n.Mask,n.Pipeline,n.PostPipeline,n.ScrollFactor,n.Size,n.Texture,n.Transform,n.Visible,l],initialize:function(t,e,i,s,n,r,o,a,h,l,u,c){void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s="__WHITE"),d.call(this,t,"Mesh"),this.faces=[],this.vertices=[],this.tintFill=!1,this.debugCallback=null,this.debugGraphic=null,this.hideCCW=!0,this.modelPosition=new g,this.modelScale=new g(1,1,1),this.modelRotation=new g,this.dirtyCache=[0,0,0,0,0,0,0,0,0,0,0,0],this.transformMatrix=new p,this.viewPosition=new g,this.viewMatrix=new p,this.projectionMatrix=new p,this.totalRendered=0,this.totalFrame=0,this.ignoreDirtyCache=!1,this.fov,this.displayOriginX=0,this.displayOriginY=0;t=t.sys.renderer;this.setPosition(e,i),this.setTexture(s,n),this.setSize(t.width,t.height),this.initPipeline(),this.initPostPipeline(),this.setPerspective(t.width,t.height),r&&this.addVertices(r,o,a,h,l,u,c)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},panX:function(t){return this.viewPosition.addScale(g.LEFT,t),this.dirtyCache[10]=1,this},panY:function(t){return this.viewPosition.y+=g.DOWN.y*t,this.dirtyCache[10]=1,this},panZ:function(t){return this.viewPosition.z+=t,this.dirtyCache[10]=1,this},setPerspective:function(t,e,i,s,n){return void 0===s&&(s=.01),void 0===n&&(n=1e3),this.fov=i=void 0===i?45:i,this.projectionMatrix.perspective(r(i),t/e,s,n),this.dirtyCache[10]=1,this.dirtyCache[11]=0,this},setOrtho:function(t,e,i,s){return void 0===t&&(t=this.scene.sys.renderer.getAspectRatio()),void 0===e&&(e=1),void 0===i&&(i=-1e3),void 0===s&&(s=1e3),this.fov=0,this.projectionMatrix.ortho(-t,t,-e,e,i,s),this.dirtyCache[10]=1,this.dirtyCache[11]=1,this},clear:function(){return this.faces.forEach(function(t){t.destroy()}),this.faces=[],this.vertices=[],this},addVerticesFromObj:function(t,e,i,s,n,r,o,a,h){var l,t=this.scene.sys.cache.obj.get(t);return(l=t?u(t,this,e,i,s,n,r,o,a,h):l)&&l.verts.length,this},sortByDepth:function(t,e){return t.depth-e.depth},depthSort:function(){return f(this.faces,this.sortByDepth),this},addVertex:function(t,e,i,s,n,r,o){t=new y(t,e,i,s,n,r,o);return this.vertices.push(t),t},addFace:function(t,e,i){t=new o(t,e,i);return this.faces.push(t),this.dirtyCache[9]=-1,t},addVertices:function(t,e,i,s,n,r,o){t=a(t,e,i,s,n,r,o);return t&&(this.faces=this.faces.concat(t.faces),this.vertices=this.vertices.concat(t.vertices)),this.dirtyCache[9]=-1,this},getFaceCount:function(){return this.faces.length},getVertexCount:function(){return this.vertices.length},getFace:function(t){return this.faces[t]},hasFaceAt:function(t,e,i){void 0===i&&(i=this.scene.sys.cameras.main);for(var s=h(this,i).calc,n=this.faces,r=0;r{t.exports=function(){}},41839:(t,e,i)=>{var c=i(88933),s=i(99325),d=i(20494),p=i(10850),f=i(83321);s.register("mesh",function(t,e){var i=d(t=void 0===t?{}:t,"key",null),s=d(t,"frame",null),n=p(t,"vertices",[]),r=p(t,"uvs",[]),o=p(t,"indicies",[]),a=p(t,"containsZ",!1),h=p(t,"normals",[]),l=p(t,"colors",16777215),u=p(t,"alphas",1),i=new f(this.scene,0,0,i,s,n,r,o,a,h,l,u);return void 0!==e&&(t.add=e),c(this.scene,i,t),i})},8767:(t,e,i)=>{var c=i(83321);i(61286).register("mesh",function(t,e,i,s,n,r,o,a,h,l,u){return this.displayList.add(new c(this.scene,t,e,i,s,n,r,o,a,h,l,u))})},23464:(t,e,i)=>{i(72283);var s=i(57410),i=i(6317);t.exports={renderWebGL:s,renderCanvas:i}},57410:(t,e,i)=>{var A=i(73329);t.exports=function(t,e,i,s){var n=e.faces,r=n.length;if(0!==r){i.addToRenderList(e);var o=t.pipelines.set(e.pipeline,e),s=A(e,i,s).calc;t.pipelines.preBatch(e);for(var a=o.setGameObject(e),h=o.vertexViewF32,l=o.vertexViewU32,u=o.vertexCount*o.currentShader.vertexComponentCount-1,c=e.tintFill,d=[],p=e.debugCallback,f=s.a,g=s.b,y=s.c,v=s.d,m=s.e,x=s.f,w=e.viewPosition.z,T=e.hideCCW,b=i.roundPixels,S=i.alpha*e.alpha,P=0,_=0;_{var s=i(56694),n=i(64937),p=i(89980),r=i(94456),f=i(85769),i=new s({Extends:p,Mixins:[n.AlphaSingle,n.BlendMode,n.Depth,n.GetBounds,n.Mask,n.Origin,n.Pipeline,n.PostPipeline,n.ScrollFactor,n.Texture,n.Transform,n.Visible,r],initialize:function(t,e,i,s,n,r,o,a,h,l,u){void 0===r&&(r=256),void 0===o&&(o=256),void 0===a&&(a=10),void 0===h&&(h=10),void 0===l&&(l=0),void 0===u&&(u=0),p.call(this,t,"NineSlice"),this._width,this._height,this._originX=.5,this._originY=.5,this._sizeComponent=!0,this.vertices=[],this.leftWidth,this.rightWidth,this.topHeight,this.bottomHeight,this.tint=16777215,this.tintFill=!1,this.is3Slice=0===l&&0===u;for(var c=this.is3Slice?18:54,d=0;d{var u=i(88933),s=i(99325),c=i(20494),d=i(10850),p=i(44139);s.register("nineslice",function(t,e){var i=c(t=void 0===t?{}:t,"key",null),s=c(t,"frame",null),n=d(t,"width",256),r=d(t,"height",256),o=d(t,"leftWidth",10),a=d(t,"rightWidth",10),h=d(t,"topHeight",0),l=d(t,"bottomHeight",0),i=new p(this.scene,0,0,i,s,n,r,o,a,h,l);return void 0!==e&&(t.add=e),u(this.scene,i,t),i})},53778:(t,e,i)=>{var u=i(44139);i(61286).register("nineslice",function(t,e,i,s,n,r,o,a,h,l){return this.displayList.add(new u(this.scene,t,e,i,s,n,r,o,a,h,l))})},94456:(t,e,i)=>{var s=i(72283),i=i(27420);t.exports={renderWebGL:i,renderCanvas:s}},27420:(t,e,i)=>{var m=i(73329),x=i(75512);t.exports=function(t,e,i,s){var n=e.vertices,r=n.length;if(0!==r){i.addToRenderList(e);var o=t.pipelines.set(e.pipeline,e),a=m(e,i,s,!1).calc,h=(t.pipelines.preBatch(e),o.setGameObject(e)),l=o.vertexViewF32,u=o.vertexViewU32,c=o.vertexCount*o.currentShader.vertexComponentCount-1,d=i.roundPixels,p=e.tintFill,s=i.alpha*e.alpha,f=x.getTintAppendFloatAlpha(e.tint,s),i=o.vertexAvailable(),g=-1;i{var s=i(56694),n=i(93025),r=i(22946),o=i(21902),a=i(4840),h=i(15978),i=new s({Extends:n,initialize:function(t){n.call(this,t,null,!1),this.active=!1,this.easeName="Linear",this.r=[],this.g=[],this.b=[]},getMethod:function(){return null===this.propertyValue?0:9},setMethods:function(){var t=this.propertyValue,e=t,i=this.defaultEmit,s=this.defaultUpdate;if(9===this.method){this.start=t[0],this.ease=o("Linear"),this.interpolation=a("linear"),i=this.easedValueEmit,s=this.easeValueUpdate,e=t[0],this.active=!0;for(var n=0;n{var s=i(17489),n=i(82897),r=i(56694),o=i(61616),a=i(21902),h=i(72632),l=i(4840),u=i(88462),c=i(1071),i=new r({initialize:function(t,e,i){void 0===i&&(i=!1),this.propertyKey=t,this.propertyValue=e,this.defaultValue=e,this.steps=0,this.counter=0,this.yoyo=!1,this.direction=0,this.start=0,this.current=0,this.end=0,this.ease=null,this.interpolation=null,this.emitOnly=i,this.onEmit=this.defaultEmit,this.onUpdate=this.defaultUpdate,this.active=!0,this.method=0,this._onEmit,this._onUpdate},loadConfig:function(t,e){void 0===t&&(t={}),e&&(this.propertyKey=e),this.propertyValue=h(t,this.propertyKey,this.defaultValue),this.method=this.getMethod(),this.setMethods(),this.emitOnly&&(this.onUpdate=this.defaultUpdate)},toJSON:function(){return JSON.stringify(this.propertyValue)},onChange:function(t){switch(this.method){case 1:case 3:case 8:i=t;break;case 2:0<=this.propertyValue.indexOf(t)&&(i=t);break;case 4:var e=(this.end-this.start)/this.steps,i=u(t,e);this.counter=i;break;case 5:case 6:case 7:i=n(t,this.start,this.end);break;case 9:i=this.start[0]}return this.current=i,this},getMethod:function(){var t=this.propertyValue;if(null!==t){var e=typeof t;if("number"==e)return 1;if(Array.isArray(t))return 2;if("function"==e)return 3;if("object"==e){if(this.hasBoth(t,"start","end"))return this.has(t,"steps")?4:5;if(this.hasBoth(t,"min","max"))return 6;if(this.has(t,"random"))return 7;if(this.hasEither(t,"onEmit","onUpdate"))return 8;if(this.has(t,"interpolation"))return 9}}return 0},setMethods:function(){var t=this.propertyValue,e=t,i=this.defaultEmit,s=this.defaultUpdate;switch(this.method){case 1:i=this.staticValueEmit;break;case 2:i=this.randomStaticValueEmit,e=t[0];break;case 3:this._onEmit=t,i=this.proxyEmit;break;case 4:this.start=t.start,this.end=t.end,this.steps=t.steps,this.counter=this.start,this.yoyo=!!this.has(t,"yoyo")&&t.yoyo,this.direction=0,i=this.steppedEmit,e=this.start;break;case 5:this.start=t.start,this.end=t.end;var n=this.has(t,"ease")?t.ease:"Linear";this.ease=a(n,t.easeParams),i=this.has(t,"random")&&t.random?this.randomRangedValueEmit:this.easedValueEmit,s=this.easeValueUpdate,e=this.start;break;case 6:this.start=t.min,this.end=t.max,i=this.has(t,"int")&&t.int?this.randomRangedIntEmit:this.randomRangedValueEmit,e=this.start;break;case 7:n=t.random;Array.isArray(n)&&(this.start=n[0],this.end=n[1]),i=this.randomRangedIntEmit,e=this.start;break;case 8:this._onEmit=this.has(t,"onEmit")?t.onEmit:this.defaultEmit,this._onUpdate=this.has(t,"onUpdate")?t.onUpdate:this.defaultUpdate,i=this.proxyEmit,s=this.proxyUpdate;break;case 9:this.start=t.values;n=this.has(t,"ease")?t.ease:"Linear";this.ease=a(n,t.easeParams),this.interpolation=l(t.interpolation),i=this.easedValueEmit,s=this.easeValueUpdate,e=this.start[0]}return this.onEmit=i,this.onUpdate=s,this.current=e,this},has:function(t,e){return t.hasOwnProperty(e)},hasBoth:function(t,e,i){return t.hasOwnProperty(e)&&t.hasOwnProperty(i)},hasEither:function(t,e,i){return t.hasOwnProperty(e)||t.hasOwnProperty(i)},defaultEmit:function(t,e,i){return i},defaultUpdate:function(t,e,i,s){return s},proxyEmit:function(t,e,i){t=this._onEmit(t,e,i);return this.current=t},proxyUpdate:function(t,e,i,s){t=this._onUpdate(t,e,i,s);return this.current=t},staticValueEmit:function(){return this.current},staticValueUpdate:function(){return this.current},randomStaticValueEmit:function(){var t=Math.floor(Math.random()*this.propertyValue.length);return this.current=this.propertyValue[t],this.current},randomRangedValueEmit:function(t,e){var i=o(this.start,this.end);return t&&t.data[e]&&(t.data[e].min=i,t.data[e].max=this.end),this.current=i},randomRangedIntEmit:function(t,e){var i=s(this.start,this.end);return t&&t.data[e]&&(t.data[e].min=i,t.data[e].max=this.end),this.current=i},steppedEmit:function(){var t,e=this.counter,i=e,s=(this.end-this.start)/this.steps;return this.yoyo?(0===this.direction?(i+=s)>=this.end&&(t=i-this.end,i=this.end-t,this.direction=1):(i-=s)<=this.start&&(t=this.start-i,i=this.start+t,this.direction=0),this.counter=i):this.counter=c(i+s,this.start,this.end),this.current=e},easedValueEmit:function(t,e){return t&&t.data[e]&&((t=t.data[e]).min=this.start,t.max=this.end),this.current=this.start,this.start},easeValueUpdate:function(t,e,i){t=t.data[e],e=this.ease(i),i=this.interpolation?this.interpolation(this.start,e):(t.max-t.min)*e+t.min;return this.current=i},destroy:function(){this.propertyValue=null,this.defaultValue=null,this.ease=null,this.interpolation=null,this._onEmit=null,this._onUpdate=null}});t.exports=i},87811:(t,e,i)=>{var s=i(56694),o=i(72632),a=i(30891),i=new s({Extends:a,initialize:function(t,e,i,s,n){var r;"object"==typeof t?(t=o(r=t,"x",0),e=o(r,"y",0),i=o(r,"power",0),s=o(r,"epsilon",100),n=o(r,"gravity",50)):(void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=100),void 0===n&&(n=50)),a.call(this,t,e,!0),this._gravity=n,this._power=i*n,this._epsilon=s*s},update:function(t,e){var i,s=this.x-t.x,n=this.y-t.y,r=s*s+n*n;0!==r&&(i=Math.sqrt(r),r{var s=i(16569),f=i(82897),n=i(56694),l=i(75606),r=i(74118),u=i(2386),c=i(93736),i=new n({initialize:function(t){this.emitter=t,this.texture=null,this.frame=null,this.x=0,this.y=0,this.worldPosition=new c,this.velocityX=0,this.velocityY=0,this.accelerationX=0,this.accelerationY=0,this.maxVelocityX=1e4,this.maxVelocityY=1e4,this.bounce=0,this.scaleX=1,this.scaleY=1,this.alpha=1,this.angle=0,this.rotation=0,this.tint=16777215,this.life=1e3,this.lifeCurrent=1e3,this.delayCurrent=0,this.holdCurrent=0,this.lifeT=0,this.data={tint:{min:16777215,max:16777215},alpha:{min:1,max:1},rotate:{min:0,max:0},scaleX:{min:1,max:1},scaleY:{min:1,max:1},x:{min:0,max:0},y:{min:0,max:0},accelerationX:{min:0,max:0},accelerationY:{min:0,max:0},maxVelocityX:{min:0,max:0},maxVelocityY:{min:0,max:0},moveToX:{min:0,max:0},moveToY:{min:0,max:0},bounce:{min:0,max:0}},this.isCropped=!1,this.scene=t.scene,this.anims=new s(this),this.bounds=new r},emit:function(t,e,i,s,n,r){return this.emitter.emit(t,e,i,s,n,r)},isAlive:function(){return 0{var s=i(56694),h=i(30891),l=i(74118),i=new s({Extends:h,initialize:function(t,e,i,s,n,r,o,a){void 0===n&&(n=!0),void 0===r&&(r=!0),void 0===o&&(o=!0),void 0===a&&(a=!0),h.call(this,t,e,!0),this.bounds=new l(t,e,i,s),this.collideLeft=n,this.collideRight=r,this.collideTop=o,this.collideBottom=a},update:function(t){var e=this.bounds,i=-t.bounce,s=t.worldPosition;s.xe.right&&this.collideRight&&(t.x-=s.x-e.right,t.velocityX*=i),s.ye.bottom&&this.collideBottom&&(t.y-=s.y-e.bottom,t.velocityY*=i)}});t.exports=i},9216:(t,e,i)=>{var s=i(56694),n=i(64937),r=i(48129),u=i(29538),o=i(69361),c=i(54213),a=i(19737),h=i(93025),p=i(40629),l=i(89980),d=i(72632),f=i(72861),g=i(87811),y=i(53523),v=i(19256),m=i(7782),x=i(71207),w=i(14655),T=i(14909),b=i(68433),S=i(74118),P=i(90205),_=i(66458),E=i(69116),A=i(17922),C=i(69360),M=i(93736),O=i(1071),R=i(73106),D=["active","advance","blendMode","colorEase","deathCallback","deathCallbackScope","duration","emitCallback","emitCallbackScope","follow","frequency","gravityX","gravityY","maxAliveParticles","maxParticles","name","emitting","particleBringToTop","particleClass","radial","sortCallback","sortOrderAsc","sortProperty","stopAfter","tintFill","timeScale","trackVisible","visible"],L=["accelerationX","accelerationY","alpha","angle","bounce","color","delay","hold","lifespan","maxVelocityX","maxVelocityY","moveToX","moveToY","quantity","rotate","scaleX","scaleY","speedX","speedY","tint","x","y"],i=new s({Extends:l,Mixins:[n.AlphaSingle,n.BlendMode,n.Depth,n.Mask,n.Pipeline,n.PostPipeline,n.ScrollFactor,n.Texture,n.Transform,n.Visible,E],initialize:function(t,e,i,s,n){l.call(this,t,"ParticleEmitter"),this.particleClass=T,this.ops={accelerationX:new h("accelerationX",0),accelerationY:new h("accelerationY",0),alpha:new h("alpha",1),angle:new h("angle",{min:0,max:360},!0),bounce:new h("bounce",0),color:new a("color"),delay:new h("delay",0,!0),hold:new h("hold",0,!0),lifespan:new h("lifespan",1e3,!0),maxVelocityX:new h("maxVelocityX",1e4),maxVelocityY:new h("maxVelocityY",1e4),moveToX:new h("moveToX",0),moveToY:new h("moveToY",0),quantity:new h("quantity",1,!0),rotate:new h("rotate",0),scaleX:new h("scaleX",1),scaleY:new h("scaleY",1),speedX:new h("speedX",0,!0),speedY:new h("speedY",0,!0),tint:new h("tint",16777215),x:new h("x",0),y:new h("y",0)},this.radial=!0,this.gravityX=0,this.gravityY=0,this.acceleration=!1,this.moveTo=!1,this.emitCallback=null,this.emitCallbackScope=null,this.deathCallback=null,this.deathCallbackScope=null,this.maxParticles=0,this.maxAliveParticles=0,this.stopAfter=0,this.duration=0,this.frequency=0,this.emitting=!0,this.particleBringToTop=!0,this.timeScale=1,this.emitZones=[],this.deathZones=[],this.viewBounds=null,this.follow=null,this.followOffset=new M,this.trackVisible=!1,this.frames=[],this.randomFrame=!0,this.frameQuantity=1,this.anims=[],this.randomAnim=!0,this.animQuantity=1,this.dead=[],this.alive=[],this.counters=new Float32Array(10),this.skipping=!1,this.worldMatrix=new C,this.sortProperty="",this.sortOrderAsc=!0,this.sortCallback=this.depthSortCallback,this.processors=new x(this),this.tintFill=!1,this.initPipeline(),this.initPostPipeline(),this.setPosition(e,i),this.setTexture(s),n&&this.setConfig(n)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},setConfig:function(t){if(t){for(var e,i=0,s="",n=this.ops,i=0;i=this.animQuantity&&(this.animCounter=0,this.currentAnim=O(this.currentAnim+1,0,e-1)),t)},setAnim:function(t,e,i){void 0===i&&(i=1),this.randomAnim=e=void 0===e?!0:e,this.animQuantity=i,this.currentAnim=0;var e=typeof t;return this.anims.length=0,Array.isArray(t)?this.anims=this.anims.concat(t):"string"==e?this.anims.push(t):"object"==e&&((t=d(e=t,"anims",null))&&(this.anims=this.anims.concat(t)),t=d(e,"cycle",!1),this.randomAnim=!t,this.animQuantity=d(e,"quantity",i)),1===this.anims.length&&(this.animQuantity=1,this.randomAnim=!1),this},setRadial:function(t){return this.radial=t=void 0===t?!0:t,this},addParticleBounds:function(t,e,i,s,n,r,o,a){var h;return"object"==typeof t&&(t=(h=t).x,e=h.y,i=v(h,"w")?h.w:h.width,s=v(h,"h")?h.h:h.height),this.addParticleProcessor(new R(t,e,i,s,n,r,o,a))},setParticleSpeed:function(t,e){return void 0===e&&(e=t),this.ops.speedX.onChange(t),t===e?this.ops.speedY.active=!1:this.ops.speedY.onChange(e),this.radial=!0,this},setParticleScale:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=t),this.ops.scaleX.onChange(t),this.ops.scaleY.onChange(e),this},setParticleGravity:function(t,e){return this.gravityX=t,this.gravityY=e,this},setParticleAlpha:function(t){return this.ops.alpha.onChange(t),this},setParticleTint:function(t){return this.ops.tint.onChange(t),this},setEmitterAngle:function(t){return this.ops.angle.onChange(t),this},setParticleLifespan:function(t){return this.ops.lifespan.onChange(t),this},setQuantity:function(t){return this.quantity=t,this},setFrequency:function(t,e){return this.frequency=t,this.flowCounter=0this.maxParticles&&(t=this.maxParticles-(e+t));for(var s=0;s=this.maxParticles||0=this.maxAliveParticles},onParticleEmit:function(t,e){return void 0===t?(this.emitCallback=null,this.emitCallbackScope=null):"function"==typeof t&&(this.emitCallback=t,e)&&(this.emitCallbackScope=e),this},onParticleDeath:function(t,e){return void 0===t?(this.deathCallback=null,this.deathCallbackScope=null):"function"==typeof t&&(this.deathCallback=t,e)&&(this.deathCallbackScope=e),this},killAll:function(){for(var t=this.dead,e=this.alive;0=n))break;if(this.atLimit())break}return h}},fastForward:function(t,e){void 0===e&&(e=1e3/60);var i=0;for(this.skipping=!0;i=this.duration)&&this.stop(),0=this.stopAfter&&this.stop())}else 1===this.completeFlag&&0===n.length&&(this.completeFlag=0,this.emit(p.COMPLETE,this))},overlap:function(t){for(var e=this.getWorldTransformMatrix(),i=this.alive,s=i.length,n=[],r=0;r{var b=i(90205),i=i(69360),S=new i,P=new i,_=new i,E=new i;t.exports=function(t,e,i,s){var n=S,r=P,o=_,a=E,h=(s?(a.loadIdentity(),a.multiply(s),a.translate(e.x,e.y),a.rotate(e.rotation),a.scale(e.scaleX,e.scaleY)):a.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY),t.currentContext),l=i.roundPixels,u=i.alpha,c=e.alpha,d=e.alive,p=d.length,s=e.viewBounds;if(e.visible&&0!==p&&(!s||b(s,i.worldView))){e.sortCallback&&e.depthSort(),i.addToRenderList(e);var f=e.scrollFactorX,g=e.scrollFactorY;h.save(),h.globalCompositeOperation=t.blendModes[e.blendMode];for(var y=0;y{var n=i(88933),s=i(99325),r=i(20494),o=i(72632),a=i(9216);s.register("particles",function(t,e){var i=r(t=void 0===t?{}:t,"key",null),s=o(t,"config",null),i=new a(this.scene,0,0,i);return void 0!==e&&(t.add=e),n(this.scene,i,t),s&&i.setConfig(s),i})},81212:(t,e,i)=>{var s=i(61286),n=i(9216);s.register("particles",function(t,e,i,s){return this.displayList.add(new n(this.scene,t,e,i,s))})},69116:(t,e,i)=>{i(72283);var s=i(10275),i=i(10456);t.exports={renderWebGL:s,renderCanvas:i}},10275:(t,e,i)=>{var P=i(90205),s=i(69360),_=i(75512),E=new s,A=new s,C=new s,M=new s;t.exports=function(t,e,i,s){var n=t.pipelines.set(e.pipeline),r=E,o=A,a=C,h=M,l=(s?(h.loadIdentity(),h.multiply(s),h.translate(e.x,e.y),h.rotate(e.rotation),h.scale(e.scaleX,e.scaleY)):h.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY),i.roundPixels),u=_.getTintAppendFloatAlpha,c=i.alpha,d=e.alpha,p=e.frame.glTexture,f=(t.pipelines.preBatch(e),e.alive),g=f.length,s=e.viewBounds;if(0!==g&&(!s||P(s,i.worldView))){e.sortCallback&&e.depthSort();var y=n.setGameObject(e,e.frame);i.addToRenderList(e),r.copyFrom(i.matrix),r.multiplyWithOffset(h,-i.scrollX*e.scrollFactorX,-i.scrollY*e.scrollFactorY),t.setBlendMode(e.blendMode),e.mask&&(e.mask.preRenderWebGL(t,e,i),t.pipelines.set(e.pipeline));for(var v=e.tintFill,m=0;m{i=new(i(56694))({initialize:function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=!0),this.emitter,this.x=t=void 0===t?0:t,this.y=e,this.active=i},update:function(){},destroy:function(){this.emitter=null}});t.exports=i},76100:t=>{t.exports="complete"},26677:t=>{t.exports="deathzone"},62736:t=>{t.exports="explode"},56490:t=>{t.exports="start"},85715:t=>{t.exports="stop"},40629:(t,e,i)=>{t.exports={COMPLETE:i(76100),DEATH_ZONE:i(26677),EXPLODE:i(62736),START:i(56490),STOP:i(85715)}},27684:(t,e,i)=>{t.exports={EmitterColorOp:i(19737),EmitterOp:i(93025),Events:i(40629),GravityWell:i(87811),Particle:i(14909),ParticleBounds:i(73106),ParticleEmitter:i(9216),ParticleProcessor:i(30891),Zones:i(25962)}},69361:(t,e,i)=>{i=new(i(56694))({initialize:function(t,e){this.source=t,this.killOnEnter=e},willKill:function(t){t=t.worldPosition,t=this.source.contains(t.x,t.y);return t&&this.killOnEnter||!t&&!this.killOnEnter}});t.exports=i},54213:(t,e,i)=>{i=new(i(56694))({initialize:function(t,e,i,s,n,r){void 0===s&&(s=!1),void 0===n&&(n=!0),void 0===r&&(r=-1),this.source=t,this.points=[],this.quantity=e,this.stepRate=i,this.yoyo=s,this.counter=-1,this.seamless=n,this._length=0,this._direction=0,this.total=r,this.updateSource()},updateSource:function(){this.points=this.source.getPoints(this.quantity,this.stepRate),this.seamless&&(e=this.points[0],t=this.points[this.points.length-1],e.x===t.x)&&e.y===t.y&&this.points.pop();var t,e=this._length;return this._length=this.points.length,this._lengththis._length&&(this.counter=this._length-1),this},changeSource:function(t){return this.source=t,this.updateSource()},getPoint:function(t){0===this._direction?(this.counter++,this.counter>=this._length&&(this.yoyo?(this._direction=1,this.counter=this._length-1):this.counter=0)):(this.counter--,-1===this.counter&&(this.yoyo?(this._direction=0,this.counter=0):this.counter=this._length-1));var e=this.points[this.counter];e&&(t.x=e.x,t.y=e.y)}});t.exports=i},68433:(t,e,i)=>{var s=i(56694),n=i(93736),i=new s({initialize:function(t){this.source=t,this._tempVec=new n,this.total=-1},getPoint:function(t){var e=this._tempVec;this.source.getRandomPoint(e),t.x=e.x,t.y=e.y}});t.exports=i},25962:(t,e,i)=>{t.exports={DeathZone:i(69361),EdgeZone:i(54213),RandomZone:i(68433)}},29598:(t,e,i)=>{var s=i(56694),n=i(64937),o=i(13747),i=new s({Extends:o,Mixins:[n.PathFollower],initialize:function(t,e,i,s,n,r){o.call(this,t,i,s,n,r),this.path=e},preUpdate:function(t,e){this.anims.update(t,e),this.pathUpdate(t)}});t.exports=i},19626:(t,e,i)=>{var s=i(61286),r=i(29598);s.register("follower",function(t,e,i,s,n){t=new r(this.scene,t,e,i,s,n);return this.displayList.add(t),this.updateList.add(t),t})},33412:(t,e,i)=>{var h=i(16569),s=i(56694),n=i(99425),d=i(15978),l=i(83321),p=i(76583),i=new s({Extends:l,initialize:function(t,e,i,s,n,r,o,a){l.call(this,t,e,i,s=s||"__DEFAULT",n),this.type="Plane",this.anims=new h(this),this.gridWidth,this.gridHeight,this.isTiled,this._checkerboard=null,this.hideCCW=!1,this.setGridSize(r,o,a),this.setSizeToFrame(!1),this.setViewHeight()},setGridSize:function(t,e,i){void 0===e&&(e=8);var s=(i=void 0===i?!1:i)?!0:!1;return this.gridWidth=t=void 0===t?8:t,this.gridHeight=e,this.isTiled=i,this.clear(),n({mesh:this,widthSegments:t,heightSegments:e,isOrtho:!1,tile:i,flipY:s}),this},setSizeToFrame:function(t){void 0===t&&(t=!0);var e=this.frame;if(this.setPerspective(this.width/e.width,this.height/e.height),this._checkerboard&&this._checkerboard!==this.texture&&this.removeCheckerboard(),t){var i,s=this.gridWidth,n=this.gridHeight,r=this.vertices,o=e.u0,a=e.u1,h=e.v0,l=e.v1,u=0;if(this.isTiled)for(h=e.v1,l=e.v0,y=0;y{var a=i(88933),h=i(32291),s=i(99325),l=i(20494),u=i(10850),c=i(33412);s.register("plane",function(t,e){var i=l(t=void 0===t?{}:t,"key",null),s=l(t,"frame",null),n=u(t,"width",8),r=u(t,"height",8),o=u(t,"tile",!1),i=new c(this.scene,0,0,i,s,n,r,o),s=(void 0!==e&&(t.add=e),u(t,"checkerboard",null));return s&&(n=u(s,"color1",16777215),r=u(s,"color2",255),o=u(s,"alpha1",255),e=u(s,"alpha2",255),s=u(s,"height",128),i.createCheckerboard(n,r,o,e,s)),a(this.scene,i,t),h(i,t),i})},58322:(t,e,i)=>{var a=i(33412);i(61286).register("plane",function(t,e,i,s,n,r,o){return this.displayList.add(new a(this.scene,t,e,i,s,n,r,o))})},13171:(t,e,i)=>{var s=i(56694),n=i(64937),a=i(89980),h=i(74853),l=i(65641),i=i(71606),s=new s({Extends:a,Mixins:[n.AlphaSingle,n.BlendMode,n.Depth,n.Mask,n.Pipeline,n.PostPipeline,n.ScrollFactor,n.Transform,n.Visible,i],initialize:function(t,e,i,s,n,r,o){void 0===s&&(s=16777215),void 0===n&&(n=128),void 0===r&&(r=1),void 0===o&&(o=.1),a.call(this,t,"PointLight"),this.initPipeline(l.POINTLIGHT_PIPELINE),this.initPostPipeline(),this.setPosition(e,i),this.color=h(s),this.intensity=r,this.attenuation=o,this.width=2*n,this.height=2*n,this._radius=n},radius:{get:function(){return this._radius},set:function(t){this._radius=t,this.width=2*t,this.height=2*t}},originX:{get:function(){return.5}},originY:{get:function(){return.5}},displayOriginX:{get:function(){return this._radius}},displayOriginY:{get:function(){return this._radius}}});t.exports=s},162:(t,e,i)=>{var o=i(88933),s=i(99325),a=i(20494),h=i(13171);s.register("pointlight",function(t,e){var i=a(t=void 0===t?{}:t,"color",16777215),s=a(t,"radius",128),n=a(t,"intensity",1),r=a(t,"attenuation",.1),i=new h(this.scene,0,0,i,s,n,r);return void 0!==e&&(t.add=e),o(this.scene,i,t),i})},91201:(t,e,i)=>{var s=i(61286),o=i(13171);s.register("pointlight",function(t,e,i,s,n,r){return this.displayList.add(new o(this.scene,t,e,i,s,n,r))})},71606:(t,e,i)=>{var s=i(72283),i=i(80590);t.exports={renderWebGL:i,renderCanvas:s}},80590:(t,e,i)=>{var y=i(73329);t.exports=function(t,e,i,s){i.addToRenderList(e);var n=t.pipelines.set(e.pipeline),s=y(e,i,s).calc,r=e.width,o=e.height,a=-e._radius,h=-e._radius,r=a+r,o=h+o,l=s.getX(0,0),u=s.getY(0,0),c=s.getX(a,h),d=s.getY(a,h),p=s.getX(a,o),a=s.getY(a,o),f=s.getX(r,o),o=s.getY(r,o),g=s.getX(r,h),s=s.getY(r,h);t.pipelines.preBatch(e),n.batchPointLight(e,i,c,d,p,a,f,o,g,s,l,u),t.pipelines.postBatch(e)}},15996:(t,e,i)=>{var s=i(56694),r=i(845),o=i(1539),i=new s({Extends:o,initialize:function(t,e,i,s,n){void 0===e&&(e=0),void 0===i&&(i=0);s=new r(t.sys.textures,"",s=void 0===s?32:s,n=void 0===n?32:n);o.call(this,t,e,i,s),this.type="RenderTexture",this.camera=this.texture.camera,this._saved=!1},setSize:function(t,e){this.width=t,this.height=e,this.texture.setSize(t,e),this.updateDisplayOrigin();var i=this.input;return i&&!i.customHitArea&&(i.hitArea.width=t,i.hitArea.height=e),this},resize:function(t,e){return this.setSize(t,e),this},saveTexture:function(t){var e=this.texture;return e.key=t,e.manager.addDynamicTexture(e)&&(this._saved=!0),e},fill:function(t,e,i,s,n,r){return this.texture.fill(t,e,i,s,n,r),this},clear:function(){return this.texture.clear(),this},stamp:function(t,e,i,s,n){return this.texture.stamp(t,e,i,s,n),this},erase:function(t,e,i){return this.texture.erase(t,e,i),this},draw:function(t,e,i,s,n){return this.texture.draw(t,e,i,s,n),this},drawFrame:function(t,e,i,s,n,r){return this.texture.drawFrame(t,e,i,s,n,r),this},repeat:function(t,e,i,s,n,r,o,a,h){return this.texture.repeat(t,e,i,s,n,r,o,a,h),this},beginDraw:function(){return this.texture.beginDraw(),this},batchDraw:function(t,e,i,s,n){return this.texture.batchDraw(t,e,i,s,n),this},batchDrawFrame:function(t,e,i,s,n,r){return this.texture.batchDrawFrame(t,e,i,s,n,r),this},endDraw:function(t){return this.texture.endDraw(t),this},snapshotArea:function(t,e,i,s,n,r,o){return this.texture.snapshotArea(t,e,i,s,n,r,o),this},snapshot:function(t,e,i){return this.snapshotArea(0,0,this.width,this.height,t,e,i)},snapshotPixel:function(t,e,i){return this.snapshotArea(t,e,1,1,i,"pixel")},preDestroy:function(){this._saved||this.texture.destroy()}});t.exports=i},85692:(t,e,i)=>{var o=i(88933),s=i(99325),a=i(20494),h=i(15996);s.register("renderTexture",function(t,e){var i=a(t=void 0===t?{}:t,"x",0),s=a(t,"y",0),n=a(t,"width",32),r=a(t,"height",32),i=new h(this.scene,i,s,n,r);return void 0!==e&&(t.add=e),o(this.scene,i,t),i})},29599:(t,e,i)=>{var s=i(61286),n=i(15996);s.register("renderTexture",function(t,e,i,s){return this.displayList.add(new n(this.scene,t,e,i,s))})},79968:(t,e,i)=>{var l=i(16569),s=i(56694),n=i(64937),u=i(89980),c=i(65641),r=i(58912),d=i(93736),i=new s({Extends:u,Mixins:[n.AlphaSingle,n.BlendMode,n.Depth,n.Flip,n.Mask,n.Pipeline,n.PostPipeline,n.Size,n.Texture,n.Transform,n.Visible,n.ScrollFactor,r],initialize:function(t,e,i,s,n,r,o,a,h){void 0===s&&(s="__DEFAULT"),void 0===r&&(r=2),void 0===o&&(o=!0),u.call(this,t,"Rope"),this.anims=new l(this),this.points=r,this.vertices,this.uv,this.colors,this.alphas,this.tintFill="__DEFAULT"===s,this.dirty=!1,this.horizontal=o,this._flipX=!1,this._flipY=!1,this._perp=new d,this.debugCallback=null,this.debugGraphic=null,this.setTexture(s,n),this.setPosition(e,i),this.setSizeToFrame(),this.initPipeline(c.ROPE_PIPELINE),Array.isArray(r)&&this.resizeArrays(r.length),this.setPoints(r,a,h),this.updateVertices()},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},preUpdate:function(t,e){var i=this.anims.currentFrame;this.anims.update(t,e),this.anims.currentFrame!==i&&(this.updateUVs(),this.updateVertices())},play:function(t,e,i){return this.anims.play(t,e,i),this},setDirty:function(){return this.dirty=!0,this},setHorizontal:function(t,e,i){return void 0===t&&(t=this.points.length),this.horizontal?this:(this.horizontal=!0,this.setPoints(t,e,i))},setVertical:function(t,e,i){return void 0===t&&(t=this.points.length),this.horizontal?(this.horizontal=!1,this.setPoints(t,e,i)):this},setTintFill:function(t){return this.tintFill=t=void 0===t?!1:t,this},setAlphas:function(t,e){var i=this.points.length;if(!(i<1)){var s=this.alphas,n=(void 0===t?t=[1]:Array.isArray(t)||void 0!==e||(t=[t]),0);if(void 0!==e)for(o=0;o(n=2*o)&&(r=t[n]),s[n]=r,t.length>n+1&&(r=t[n+1]),s[n+1]=r}return this},setColors:function(t){var e=this.points.length;if(!(e<1)){var i=this.colors,s=(void 0===t?t=[16777215]:Array.isArray(t)||(t=[t]),0);if(t.length===e)for(r=0;r(s=2*r)&&(n=t[s]),i[s]=n,t.length>s+1&&(n=t[s+1]),i[s+1]=n}return this},setPoints:function(t,e,i){if("number"==typeof(t=void 0===t?2:t)){var s,n,r,o=t;if(o<2&&(o=2),t=[],this.horizontal)for(r=-this.frame.halfWidth,n=this.frame.width/(o-1),s=0;s{t.exports=function(){}},96027:(t,e,i)=>{var h=i(88933),s=i(99325),l=i(20494),u=i(10850),c=i(79968);s.register("rope",function(t,e){var i=l(t=void 0===t?{}:t,"key",null),s=l(t,"frame",null),n=l(t,"horizontal",!0),r=u(t,"points",void 0),o=u(t,"colors",void 0),a=u(t,"alphas",void 0),i=new c(this.scene,0,0,i,s,r,n,o,a);return void 0!==e&&(t.add=e),h(this.scene,i,t),i})},31982:(t,e,i)=>{var h=i(79968);i(61286).register("rope",function(t,e,i,s,n,r,o,a){return this.displayList.add(new h(this.scene,t,e,i,s,n,r,o,a))})},58912:(t,e,i)=>{i(72283);var s=i(49489),i=i(44598);t.exports={renderWebGL:s,renderCanvas:i}},49489:(t,e,i)=>{var E=i(73329),A=i(75512);t.exports=function(t,e,i,s){i.addToRenderList(e);var n=t.pipelines.set(e.pipeline,e),r=E(e,i,s).calc,o=e.vertices,a=e.uv,h=e.colors,l=e.alphas,u=e.alpha,c=A.getTintAppendFloatAlpha,d=i.roundPixels,p=o.length,s=Math.floor(.5*p),f=(n.flush(),t.pipelines.preBatch(e),n.setGameObject(e)),g=n.vertexViewF32,y=n.vertexViewU32,v=n.vertexCount*n.currentShader.vertexComponentCount-1,m=0,x=e.tintFill;e.dirty&&e.updateVertices();for(var w=e.debugCallback,T=[],b=0;b{var s=i(56694),n=i(64937),h=i(89980),u=i(72632),r=i(98611),o=i(22440),a=i(24252),l=i(69360),i=new s({Extends:h,Mixins:[n.ComputedSize,n.Depth,n.GetBounds,n.Mask,n.Origin,n.ScrollFactor,n.Transform,n.Visible,a],initialize:function(t,e,i,s,n,r,o,a){void 0===i&&(i=0),void 0===s&&(s=0),void 0===n&&(n=128),void 0===r&&(r=128),h.call(this,t,"Shader"),this.blendMode=-1,this.shader;t=t.sys.renderer;this.renderer=t,this.gl=t.gl,this.vertexData=new ArrayBuffer(2*Float32Array.BYTES_PER_ELEMENT*6),this.vertexBuffer=t.createVertexBuffer(this.vertexData.byteLength,this.gl.STREAM_DRAW),this.program=null,this.bytes=new Uint8Array(this.vertexData),this.vertexViewF32=new Float32Array(this.vertexData),this._tempMatrix1=new l,this._tempMatrix2=new l,this._tempMatrix3=new l,this.viewMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this.projectionMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this.uniforms={},this.pointer=null,this._rendererWidth=t.width,this._rendererHeight=t.height,this._textureCount=0,this.framebuffer=null,this.glTexture=null,this.renderToTexture=!1,this.texture=null,this.setPosition(i,s),this.setSize(n,r),this.setOrigin(.5,.5),this.setShader(e,o,a)},willRender:function(t){return!!this.renderToTexture||!(h.RENDER_MASK!==this.renderFlags||0!==this.cameraFilter&&this.cameraFilter&t.id)},setRenderToTexture:function(t,e){var i,s,n;return void 0===e&&(e=!1),this.renderToTexture||(i=this.width,s=this.height,n=this.renderer,this.glTexture=n.createTextureFromSource(null,i,s,0),this.glTexture.flipY=e,this.framebuffer=n.createFramebuffer(i,s,this.glTexture,!1),this._rendererWidth=i,this._rendererHeight=s,this.renderToTexture=!0,this.projOrtho(0,this.width,this.height,0),t&&(this.texture=this.scene.sys.textures.addGLTexture(t,this.glTexture,i,s))),this.shader&&(n.pipelines.clear(),this.load(),this.flush(),n.pipelines.rebind()),this},setShader:function(t,e,i){if(void 0===e&&(e=[]),"string"==typeof t){var s=this.scene.sys.cache.shader;if(!s.has(t))return this;this.shader=s.get(t)}else this.shader=t;s=this.gl,t=this.renderer,this.program&&s.deleteProgram(this.program),t=t.createProgram(this.shader.vertexSrc,this.shader.fragmentSrc),s.uniformMatrix4fv(s.getUniformLocation(t,"uViewMatrix"),!1,this.viewMatrix),s.uniformMatrix4fv(s.getUniformLocation(t,"uProjectionMatrix"),!1,this.projectionMatrix),s.uniform2f(s.getUniformLocation(t,"uResolution"),this.width,this.height),this.program=t,s=new Date,t={resolution:{type:"2f",value:{x:this.width,y:this.height}},time:{type:"1f",value:0},mouse:{type:"2f",value:{x:this.width/2,y:this.height/2}},date:{type:"4fv",value:[s.getFullYear(),s.getMonth(),s.getDate(),60*s.getHours()*60+60*s.getMinutes()+s.getSeconds()]},sampleRate:{type:"1f",value:44100},iChannel0:{type:"sampler2D",value:null,textureData:{repeat:!0}},iChannel1:{type:"sampler2D",value:null,textureData:{repeat:!0}},iChannel2:{type:"sampler2D",value:null,textureData:{repeat:!0}},iChannel3:{type:"sampler2D",value:null,textureData:{repeat:!0}}};this.shader.uniforms?this.uniforms=r(!0,{},this.shader.uniforms,t):this.uniforms=t;for(var n=0;n<4;n++)e[n]&&this.setSampler2D("iChannel"+n,e[n],n,i);return this.initUniforms(),this.projOrtho(0,this._rendererWidth,this._rendererHeight,0),this},setPointer:function(t){return this.pointer=t,this},projOrtho:function(t,e,i,s){var n=1/(t-e),r=1/(i-s),o=this.projectionMatrix,t=(o[0]=-2*n,o[5]=-2*r,o[10]=-.001,o[12]=(t+e)*n,o[13]=(s+i)*r,o[14]=-0,this.program),n=this.gl;this.renderer.setProgram(t),n.uniformMatrix4fv(n.getUniformLocation(t,"uProjectionMatrix"),!1,this.projectionMatrix),this._rendererWidth=e,this._rendererHeight=i},initUniforms:function(){var t,e=this.gl,i=this.renderer.glFuncMap,s=this.program;for(t in this._textureCount=0,this.uniforms){var n=this.uniforms[t],r=n.type,o=i[r];n.uniformLocation=e.getUniformLocation(s,t),"sampler2D"!==r&&(n.glMatrix=o.matrix,n.glValueLength=o.length,n.glFunc=o.func)}},setSampler2DBuffer:function(t,e,i,s,n,r){void 0===n&&(n=0),void 0===r&&(r={});t=this.uniforms[t];return t.value=e,r.width=i,r.height=s,t.textureData=r,this._textureCount=n,this.initSampler2D(t),this},setSampler2D:function(t,e,i,s){void 0===i&&(i=0);var n=this.scene.sys.textures;if(n.exists(e)){n=n.getFrame(e);if(n.glTexture&&n.glTexture.isRenderTexture)return this.setSampler2DBuffer(t,n.glTexture,n.width,n.height,i,s);var t=this.uniforms[t],r=n.source;t.textureKey=e,t.source=r.image,t.value=n.glTexture,r.isGLTexture&&((s=s||{}).width=r.width,s.height=r.height),s&&(t.textureData=s),this._textureCount=i,this.initSampler2D(t)}return this},setUniform:function(t,e){return o(this.uniforms,t,e),this},getUniform:function(t){return u(this.uniforms,t,null)},setChannel0:function(t,e){return this.setSampler2D("iChannel0",t,0,e)},setChannel1:function(t,e){return this.setSampler2D("iChannel1",t,1,e)},setChannel2:function(t,e){return this.setSampler2D("iChannel2",t,2,e)},setChannel3:function(t,e){return this.setSampler2D("iChannel3",t,3,e)},initSampler2D:function(t){var e,i,s,n,r,o,a,h,l;t.value&&((e=this.gl).activeTexture(e.TEXTURE0+this._textureCount),e.bindTexture(e.TEXTURE_2D,t.value),(l=t.textureData)&&!t.value.isRenderTexture&&(i=e[u(l,"magFilter","linear").toUpperCase()],s=e[u(l,"minFilter","linear").toUpperCase()],n=e[u(l,"wrapS","repeat").toUpperCase()],r=e[u(l,"wrapT","repeat").toUpperCase()],o=e[u(l,"format","rgba").toUpperCase()],l.repeat&&(n=e.REPEAT,r=e.REPEAT),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,!!l.flipY),l.width?(a=u(l,"width",512),h=u(l,"height",2),l=u(l,"border",0),e.texImage2D(e.TEXTURE_2D,0,o,a,h,l,o,e.UNSIGNED_BYTE,null)):e.texImage2D(e.TEXTURE_2D,0,o,e.RGBA,e.UNSIGNED_BYTE,t.source),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,i),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,s),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,n),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,r)),this.renderer.setProgram(this.program),e.uniform1i(t.uniformLocation,this._textureCount),this._textureCount++)},syncUniforms:function(){var t,e,i,s,n,r,o=this.gl,a=this.uniforms,h=0;for(r in a)i=(t=a[r]).glFunc,e=t.glValueLength,s=t.uniformLocation,null!==(n=t.value)&&(1===e?t.glMatrix?i.call(o,s,t.transpose,n):i.call(o,s,n):2===e?i.call(o,s,n.x,n.y):3===e?i.call(o,s,n.x,n.y,n.z):4===e?i.call(o,s,n.x,n.y,n.z,n.w):"sampler2D"===t.type&&(o.activeTexture(o.TEXTURE0+h),o.bindTexture(o.TEXTURE_2D,n),o.uniform1i(s,h),h++))},load:function(t){var e=this.gl,i=this.width,s=this.height,n=this.renderer,r=this.program,o=this.viewMatrix,t=(this.renderToTexture||(a=-this._displayOriginX,h=-this._displayOriginY,o[0]=t[0],o[1]=t[1],o[4]=t[2],o[5]=t[3],o[8]=t[4],o[9]=t[5],o[12]=o[0]*a+o[4]*h,o[13]=o[1]*a+o[5]*h),e.useProgram(r),e.uniformMatrix4fv(e.getUniformLocation(r,"uViewMatrix"),!1,o),e.uniform2f(e.getUniformLocation(r,"uResolution"),this.width,this.height),this.uniforms),a=t.resolution,h=(a.value.x=i,a.value.y=s,t.time.value=n.game.loop.getDuration(),this.pointer);h&&(o=t.mouse,e=h.x/i,r=1-h.y/s,o.value.x=e.toFixed(2),o.value.y=r.toFixed(2)),this.syncUniforms()},flush:function(){var t=this.width,e=this.height,i=this.program,s=this.gl,n=this.vertexBuffer,r=this.renderer,o=2*Float32Array.BYTES_PER_ELEMENT,n=(this.renderToTexture&&(r.setFramebuffer(this.framebuffer),s.clearColor(0,0,0,0),s.clear(s.COLOR_BUFFER_BIT)),s.bindBuffer(s.ARRAY_BUFFER,n),s.getAttribLocation(i,"inPosition")),i=(-1!==n&&(s.enableVertexAttribArray(n),s.vertexAttribPointer(n,2,s.FLOAT,!1,o,0)),this.vertexViewF32);i[3]=e,i[4]=t,i[5]=e,i[8]=t,i[9]=e,i[10]=t,s.bufferSubData(s.ARRAY_BUFFER,0,this.bytes.subarray(0,6*o)),s.drawArrays(s.TRIANGLES,0,6),this.renderToTexture&&r.setFramebuffer(null,!1)},setAlpha:function(){},setBlendMode:function(){},preDestroy:function(){var t=this.gl;t.deleteProgram(this.program),t.deleteBuffer(this.vertexBuffer),this.renderToTexture&&(this.renderer.deleteFramebuffer(this.framebuffer),this.texture.destroy(),this.framebuffer=null,this.glTexture=null,this.texture=null)}});t.exports=i},10612:t=>{t.exports=function(){}},13908:(t,e,i)=>{var a=i(88933),s=i(99325),h=i(20494),l=i(27902);s.register("shader",function(t,e){var i=h(t=void 0===t?{}:t,"key",null),s=h(t,"x",0),n=h(t,"y",0),r=h(t,"width",128),o=h(t,"height",128),i=new l(this.scene,i,s,n,r,o);return void 0!==e&&(t.add=e),a(this.scene,i,t),i})},51979:(t,e,i)=>{var a=i(27902);i(61286).register("shader",function(t,e,i,s,n,r,o){return this.displayList.add(new a(this.scene,t,e,i,s,n,r,o))})},24252:(t,e,i)=>{i(72283);var s=i(19782),i=i(10612);t.exports={renderWebGL:s,renderCanvas:i}},19782:(t,e,i)=>{var n=i(73329);t.exports=function(t,e,i,s){e.shader&&(i.addToRenderList(e),t.pipelines.clear(),e.renderToTexture?e.load():(i=n(e,i,s).calc,t.width===e._rendererWidth&&t.height===e._rendererHeight||e.projOrtho(0,t.width,t.height,0),e.load(i.matrix)),e.flush(),t.pipelines.rebind())}},19543:(t,e,i)=>{var v=i(75512);t.exports=function(t,e,i,s,n,r){for(var o=v.getTintAppendFloatAlpha(i.fillColor,i.fillAlpha*s),a=i.pathData,h=i.pathIndexes,l=0;l{t.exports=function(t,e,i,s){i=i||e.fillColor,s=s||e.fillAlpha;t.fillStyle="rgba("+((16711680&i)>>>16)+","+((65280&i)>>>8)+","+(255&i)+","+s+")"}},17876:t=>{t.exports=function(t,e,i,s){i=i||e.strokeColor,s=s||e.strokeAlpha;t.strokeStyle="rgba("+((16711680&i)>>>16)+","+((65280&i)>>>8)+","+(255&i)+","+s+")",t.lineWidth=e.lineWidth}},91461:(t,e,i)=>{var s=i(56694),n=i(64937),r=i(89980),o=i(88829),i=new s({Extends:r,Mixins:[n.AlphaSingle,n.BlendMode,n.Depth,n.GetBounds,n.Mask,n.Origin,n.Pipeline,n.PostPipeline,n.ScrollFactor,n.Transform,n.Visible],initialize:function(t,e,i){r.call(this,t,e=void 0===e?"Shape":e),this.geom=i,this.pathData=[],this.pathIndexes=[],this.fillColor=16777215,this.fillAlpha=1,this.strokeColor=16777215,this.strokeAlpha=1,this.lineWidth=1,this.isFilled=!1,this.isStroked=!1,this.closePath=!0,this._tempLine=new o,this.width=0,this.height=0,this.initPipeline(),this.initPostPipeline()},setFillStyle:function(t,e){return void 0===e&&(e=1),void 0===t?this.isFilled=!1:(this.fillColor=t,this.fillAlpha=e,this.isFilled=!0),this},setStrokeStyle:function(t,e,i){return void 0===i&&(i=1),void 0===t?this.isStroked=!1:(this.lineWidth=t,this.strokeColor=e,this.strokeAlpha=i,this.isStroked=!0),this},setClosePath:function(t){return this.closePath=t,this},setSize:function(t,e){return this.width=t,this.height=e,this},setDisplaySize:function(t,e){return this.displayWidth=t,this.displayHeight=e,this},preDestroy:function(){this.geom=null,this._tempLine=null,this.pathData=[],this.pathIndexes=[]},displayWidth:{get:function(){return this.scaleX*this.width},set:function(t){this.scaleX=t/this.width}},displayHeight:{get:function(){return this.scaleY*this.height},set:function(t){this.scaleY=t/this.height}}});t.exports=i},50262:(t,e,i)=>{var g=i(75512);t.exports=function(t,e,i,s,n){var r=t.strokeTint,i=g.getTintAppendFloatAlpha(e.strokeColor,e.strokeAlpha*i),o=(r.TL=i,r.TR=i,r.BL=i,r.BR=i,e.pathData),a=o.length-1,h=e.lineWidth,l=h/2,u=o[0]-s,c=o[1]-n;e.closePath||(a-=2);for(var d=2;d{var s=i(2213),n=i(56694),l=i(75606),u=i(11117),c=i(26673),d=i(83392),p=i(91461),i=new n({Extends:p,Mixins:[s],initialize:function(t,e,i,s,n,r,o,a,h){void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),void 0===r&&(r=360),void 0===o&&(o=!1),p.call(this,t,"Arc",new c(0,0,s=void 0===s?128:s)),this._startAngle=n,this._endAngle=r,this._anticlockwise=o,this._iterations=.01,this.setPosition(e,i);t=2*this.geom.radius;this.setSize(t,t),void 0!==a&&this.setFillStyle(a,h),this.updateDisplayOrigin(),this.updateData()},iterations:{get:function(){return this._iterations},set:function(t){this._iterations=t,this.updateData()}},radius:{get:function(){return this.geom.radius},set:function(t){t=2*(this.geom.radius=t);this.setSize(t,t),this.updateDisplayOrigin(),this.updateData()}},startAngle:{get:function(){return this._startAngle},set:function(t){this._startAngle=t,this.updateData()}},endAngle:{get:function(){return this._endAngle},set:function(t){this._endAngle=t,this.updateData()}},anticlockwise:{get:function(){return this._anticlockwise},set:function(t){this._anticlockwise=t,this.updateData()}},setRadius:function(t){return this.radius=t,this},setIterations:function(t){return this.iterations=t=void 0===t?.01:t,this},setStartAngle:function(t,e){return this._startAngle=t,void 0!==e&&(this._anticlockwise=e),this.updateData()},setEndAngle:function(t,e){return this._endAngle=t,void 0!==e&&(this._anticlockwise=e),this.updateData()},updateData:function(){var t=this._iterations,e=t,i=this.geom.radius,s=l(this._startAngle),n=l(this._endAngle),r=i,o=i;n-=s,this._anticlockwise?n<-d.PI2?n=-d.PI2:0d.PI2?n=d.PI2:n<0&&(n=d.PI2+n%d.PI2);for(var a,h=[r+Math.cos(s)*i,o+Math.sin(s)*i];e<1;)a=n*e+s,h.push(r+Math.cos(a)*i,o+Math.sin(a)*i),e+=t;return a=n+s,h.push(r+Math.cos(a)*i,o+Math.sin(a)*i),h.push(r+Math.cos(s)*i,o+Math.sin(s)*i),this.pathIndexes=u(h),this.pathData=h,this}});t.exports=i},23560:(t,e,i)=>{var r=i(75606),o=i(15608),a=i(17876),h=i(49584);t.exports=function(t,e,i,s){i.addToRenderList(e);var n=t.currentContext;h(t,n,e,i,s)&&(t=e.radius,n.beginPath(),n.arc(t-e.originX*(2*t),t-e.originY*(2*t),t,r(e._startAngle),r(e._endAngle),e.anticlockwise),e.closePath&&n.closePath(),e.isFilled&&(o(n,e),n.fill()),e.isStroked&&(a(n,e),n.stroke()),n.restore())}},10369:(t,e,i)=>{var h=i(28593),i=i(61286);i.register("arc",function(t,e,i,s,n,r,o,a){return this.displayList.add(new h(this.scene,t,e,i,s,n,r,o,a))}),i.register("circle",function(t,e,i,s,n){return this.displayList.add(new h(this.scene,t,e,i,0,360,!1,s,n))})},2213:(t,e,i)=>{i(72283);var s=i(58356),i=i(23560);t.exports={renderWebGL:s,renderCanvas:i}},58356:(t,e,i)=>{var a=i(73329),h=i(19543),l=i(50262);t.exports=function(t,e,i,s){i.addToRenderList(e);var n=t.pipelines.set(e.pipeline),s=a(e,i,s),s=n.calcMatrix.copyFrom(s.calc),r=e._displayOriginX,o=e._displayOriginY,i=i.alpha*e.alpha;t.pipelines.preBatch(e),e.isFilled&&h(n,s,e,i,r,o),e.isStroked&&l(n,e,i,r,o),t.pipelines.postBatch(e)}},15220:(t,e,i)=>{var s=i(56694),n=i(87203),r=i(11117),o=i(74118),a=i(91461),i=new s({Extends:a,Mixins:[n],initialize:function(t,e,i,s,n,r){void 0===e&&(e=0),void 0===i&&(i=0),a.call(this,t,"Curve",s),this._smoothness=32,this._curveBounds=new o,this.closePath=!1,this.setPosition(e,i),void 0!==n&&this.setFillStyle(n,r),this.updateData()},smoothness:{get:function(){return this._smoothness},set:function(t){this._smoothness=t,this.updateData()}},setSmoothness:function(t){return this._smoothness=t,this.updateData()},updateData:function(){var t=this._curveBounds,e=this._smoothness;this.geom.getBounds(t,e),this.setSize(t.width,t.height),this.updateDisplayOrigin();for(var i=[],s=this.geom.getPoints(e),n=0;n{var d=i(15608),p=i(17876),f=i(49584);t.exports=function(t,e,i,s){i.addToRenderList(e);var n=t.currentContext;if(f(t,n,e,i,s)){var r=e._displayOriginX+e._curveBounds.x,o=e._displayOriginY+e._curveBounds.y,a=e.pathData,h=a.length-1,t=a[0]-r,i=a[1]-o;n.beginPath(),n.moveTo(t,i),e.closePath||(h-=2);for(var l=2;l{var s=i(61286),r=i(15220);s.register("curve",function(t,e,i,s,n){return this.displayList.add(new r(this.scene,t,e,i,s,n))})},87203:(t,e,i)=>{i(72283);var s=i(82958),i=i(4024);t.exports={renderWebGL:s,renderCanvas:i}},82958:(t,e,i)=>{var a=i(19543),h=i(73329),l=i(50262);t.exports=function(t,e,i,s){i.addToRenderList(e);var n=t.pipelines.set(e.pipeline),s=h(e,i,s),s=n.calcMatrix.copyFrom(s.calc),r=e._displayOriginX+e._curveBounds.x,o=e._displayOriginY+e._curveBounds.y,i=i.alpha*e.alpha;t.pipelines.preBatch(e),e.isFilled&&a(n,s,e,i,r,o),e.isStroked&&l(n,e,i,r,o),t.pipelines.postBatch(e)}},28591:(t,e,i)=>{var s=i(56694),n=i(11117),r=i(84171),a=i(95669),h=i(91461),i=new s({Extends:h,Mixins:[r],initialize:function(t,e,i,s,n,r,o){void 0===e&&(e=0),void 0===i&&(i=0),h.call(this,t,"Ellipse",new a((s=void 0===s?128:s)/2,(n=void 0===n?128:n)/2,s,n)),this._smoothness=64,this.setPosition(e,i),this.width=s,this.height=n,void 0!==r&&this.setFillStyle(r,o),this.updateDisplayOrigin(),this.updateData()},smoothness:{get:function(){return this._smoothness},set:function(t){this._smoothness=t,this.updateData()}},setSize:function(t,e){return this.width=t,this.height=e,this.geom.setPosition(t/2,e/2),this.geom.setSize(t,e),this.updateData()},setSmoothness:function(t){return this._smoothness=t,this.updateData()},updateData:function(){for(var t=[],e=this.geom.getPoints(this._smoothness),i=0;i{var d=i(15608),p=i(17876),f=i(49584);t.exports=function(t,e,i,s){i.addToRenderList(e);var n=t.currentContext;if(f(t,n,e,i,s)){var r=e._displayOriginX,o=e._displayOriginY,a=e.pathData,h=a.length-1,t=a[0]-r,i=a[1]-o;n.beginPath(),n.moveTo(t,i),e.closePath||(h-=2);for(var l=2;l{var o=i(28591);i(61286).register("ellipse",function(t,e,i,s,n,r){return this.displayList.add(new o(this.scene,t,e,i,s,n,r))})},84171:(t,e,i)=>{i(72283);var s=i(17554),i=i(55881);t.exports={renderWebGL:s,renderCanvas:i}},17554:(t,e,i)=>{var a=i(19543),h=i(73329),l=i(50262);t.exports=function(t,e,i,s){i.addToRenderList(e);var n=t.pipelines.set(e.pipeline),s=h(e,i,s),s=n.calcMatrix.copyFrom(s.calc),r=e._displayOriginX,o=e._displayOriginY,i=i.alpha*e.alpha;t.pipelines.preBatch(e),e.isFilled&&a(n,s,e,i,r,o),e.isStroked&&l(n,e,i,r,o),t.pipelines.postBatch(e)}},39169:(t,e,i)=>{var s=i(56694),c=i(91461),i=i(88059),s=new s({Extends:c,Mixins:[i],initialize:function(t,e,i,s,n,r,o,a,h,l,u){void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=128),void 0===n&&(n=128),void 0===r&&(r=32),void 0===o&&(o=32),c.call(this,t,"Grid",null),this.cellWidth=r,this.cellHeight=o,this.showCells=!0,this.outlineFillColor=0,this.outlineFillAlpha=0,this.showOutline=!0,this.showAltCells=!1,this.altFillColor,this.altFillAlpha,this.setPosition(e,i),this.setSize(s,n),this.setFillStyle(a,h),void 0!==l&&this.setOutlineStyle(l,u),this.updateDisplayOrigin()},setFillStyle:function(t,e){return void 0===e&&(e=1),void 0===t?this.showCells=!1:(this.fillColor=t,this.fillAlpha=e,this.showCells=!0),this},setAltFillStyle:function(t,e){return void 0===e&&(e=1),void 0===t?this.showAltCells=!1:(this.altFillColor=t,this.altFillAlpha=e,this.showAltCells=!0),this},setOutlineStyle:function(t,e){return void 0===e&&(e=1),void 0===t?this.showOutline=!1:(this.outlineFillColor=t,this.outlineFillAlpha=e,this.showOutline=!0),this}});t.exports=s},95525:(t,e,i)=>{var S=i(15608),P=i(17876),_=i(49584);t.exports=function(t,e,i,s){i.addToRenderList(e);var n=t.currentContext;if(_(t,n,e,i,s)){var r=-e._displayOriginX,o=-e._displayOriginY,t=i.alpha*e.alpha,a=e.width,h=e.height,l=e.cellWidth,u=e.cellHeight,c=Math.ceil(a/l),d=Math.ceil(h/u),p=l,f=u,g=l-(c*l-a),y=u-(d*u-h),s=e.showCells,v=e.showAltCells,i=e.showOutline,m=0,x=0,w=0;if(i&&(p--,f--,g===l&&g--,y===u)&&y--,s&&0{var s=i(61286),u=i(39169);s.register("grid",function(t,e,i,s,n,r,o,a,h,l){return this.displayList.add(new u(this.scene,t,e,i,s,n,r,o,a,h,l))})},88059:(t,e,i)=>{i(72283);var s=i(50639),i=i(95525);t.exports={renderWebGL:s,renderCanvas:i}},50639:(t,e,i)=>{var P=i(73329),_=i(75512);t.exports=function(t,e,i,s){i.addToRenderList(e);var n=t.pipelines.set(e.pipeline),s=P(e,i,s);n.calcMatrix.copyFrom(s.calc).translate(-e._displayOriginX,-e._displayOriginY);var r,s=i.alpha*e.alpha,o=e.width,a=e.height,h=e.cellWidth,l=e.cellHeight,u=Math.ceil(o/h),c=Math.ceil(a/l),d=h,p=l,f=h-(u*h-o),g=l-(c*l-a),i=e.showCells,y=e.showAltCells,v=e.showOutline,m=0,x=0,w=0;if(v&&(d--,p--,f===h&&f--,g===l)&&g--,t.pipelines.preBatch(e),i&&0{var s=i(72296),n=i(56694),h=i(91461),i=new n({Extends:h,Mixins:[s],initialize:function(t,e,i,s,n,r,o,a){void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=48),void 0===n&&(n=32),void 0===r&&(r=15658734),void 0===o&&(o=10066329),void 0===a&&(a=13421772),h.call(this,t,"IsoBox",null),this.projection=4,this.fillTop=r,this.fillLeft=o,this.fillRight=a,this.showTop=!0,this.showLeft=!0,this.showRight=!0,this.isFilled=!0,this.setPosition(e,i),this.setSize(s,n),this.updateDisplayOrigin()},setProjection:function(t){return this.projection=t,this},setFaces:function(t,e,i){return void 0===e&&(e=!0),void 0===i&&(i=!0),this.showTop=t=void 0===t?!0:t,this.showLeft=e,this.showRight=i,this},setFillStyle:function(t,e,i){return this.fillTop=t,this.fillLeft=e,this.fillRight=i,this.isFilled=!0,this}});t.exports=i},32884:(t,e,i)=>{var r=i(15608),o=i(49584);t.exports=function(t,e,i,s){i.addToRenderList(e);var n=t.currentContext;o(t,n,e,i,s)&&e.isFilled&&(t=e.width,i=e.height,s=t/2,t=t/e.projection,e.showTop&&(r(n,e,e.fillTop),n.beginPath(),n.moveTo(-s,-i),n.lineTo(0,-t-i),n.lineTo(s,-i),n.lineTo(s,-1),n.lineTo(0,t-1),n.lineTo(-s,-1),n.lineTo(-s,-i),n.fill()),e.showLeft&&(r(n,e,e.fillLeft),n.beginPath(),n.moveTo(-s,0),n.lineTo(0,t),n.lineTo(0,t-i),n.lineTo(-s,-i),n.lineTo(-s,0),n.fill()),e.showRight&&(r(n,e,e.fillRight),n.beginPath(),n.moveTo(s,0),n.lineTo(0,t),n.lineTo(0,t-i),n.lineTo(s,-i),n.lineTo(s,0),n.fill()),n.restore())}},88154:(t,e,i)=>{var s=i(61286),a=i(4415);s.register("isobox",function(t,e,i,s,n,r,o){return this.displayList.add(new a(this.scene,t,e,i,s,n,r,o))})},72296:(t,e,i)=>{i(72283);var s=i(33101),i=i(32884);t.exports={renderWebGL:s,renderCanvas:i}},33101:(t,e,i)=>{var v=i(73329),m=i(75512);t.exports=function(t,e,i,s){i.addToRenderList(e);var n,r,o,a,h,l,u,c,d,p=t.pipelines.set(e.pipeline),s=v(e,i,s),s=p.calcMatrix.copyFrom(s.calc),f=e.width,g=e.height,y=f/2,f=f/e.projection,i=i.alpha*e.alpha;e.isFilled&&(t.pipelines.preBatch(e),e.showTop&&(n=m.getTintAppendFloatAlpha(e.fillTop,i),r=s.getX(-y,-g),o=s.getY(-y,-g),a=s.getX(0,-f-g),h=s.getY(0,-f-g),l=s.getX(y,-g),u=s.getY(y,-g),c=s.getX(0,f-g),d=s.getY(0,f-g),p.batchQuad(e,r,o,a,h,l,u,c,d,0,0,1,1,n,n,n,n,2)),e.showLeft&&(n=m.getTintAppendFloatAlpha(e.fillLeft,i),r=s.getX(-y,0),o=s.getY(-y,0),a=s.getX(0,f),h=s.getY(0,f),l=s.getX(0,f-g),u=s.getY(0,f-g),c=s.getX(-y,-g),d=s.getY(-y,-g),p.batchQuad(e,r,o,a,h,l,u,c,d,0,0,1,1,n,n,n,n,2)),e.showRight&&(n=m.getTintAppendFloatAlpha(e.fillRight,i),r=s.getX(y,0),o=s.getY(y,0),a=s.getX(0,f),h=s.getY(0,f),l=s.getX(0,f-g),u=s.getY(0,f-g),c=s.getX(y,-g),d=s.getY(y,-g),p.batchQuad(e,r,o,a,h,l,u,c,d,0,0,1,1,n,n,n,n,2)),t.pipelines.postBatch(e))}},65159:(t,e,i)=>{var s=i(56694),n=i(93387),l=i(91461),i=new s({Extends:l,Mixins:[n],initialize:function(t,e,i,s,n,r,o,a,h){void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=48),void 0===n&&(n=32),void 0===r&&(r=!1),void 0===o&&(o=15658734),void 0===a&&(a=10066329),void 0===h&&(h=13421772),l.call(this,t,"IsoTriangle",null),this.projection=4,this.fillTop=o,this.fillLeft=a,this.fillRight=h,this.showTop=!0,this.showLeft=!0,this.showRight=!0,this.isReversed=r,this.isFilled=!0,this.setPosition(e,i),this.setSize(s,n),this.updateDisplayOrigin()},setProjection:function(t){return this.projection=t,this},setReversed:function(t){return this.isReversed=t,this},setFaces:function(t,e,i){return void 0===e&&(e=!0),void 0===i&&(i=!0),this.showTop=t=void 0===t?!0:t,this.showLeft=e,this.showRight=i,this},setFillStyle:function(t,e,i){return this.fillTop=t,this.fillLeft=e,this.fillRight=i,this.isFilled=!0,this}});t.exports=i},9923:(t,e,i)=>{var o=i(15608),a=i(49584);t.exports=function(t,e,i,s){i.addToRenderList(e);var n,r=t.currentContext;a(t,r,e,i,s)&&e.isFilled&&(t=e.width,i=e.height,s=t/2,t=t/e.projection,n=e.isReversed,e.showTop&&n&&(o(r,e,e.fillTop),r.beginPath(),r.moveTo(-s,-i),r.lineTo(0,-t-i),r.lineTo(s,-i),r.lineTo(0,t-i),r.fill()),e.showLeft&&(o(r,e,e.fillLeft),r.beginPath(),n?r.moveTo(-s,-i):r.moveTo(-s,0),r.lineTo(0,t),r.lineTo(0,t-i),r.fill()),e.showRight&&(o(r,e,e.fillRight),r.beginPath(),n?r.moveTo(s,-i):r.moveTo(s,0),r.lineTo(0,t),r.lineTo(0,t-i),r.fill()),r.restore())}},67765:(t,e,i)=>{var s=i(61286),h=i(65159);s.register("isotriangle",function(t,e,i,s,n,r,o,a){return this.displayList.add(new h(this.scene,t,e,i,s,n,r,o,a))})},93387:(t,e,i)=>{i(72283);var s=i(54946),i=i(9923);t.exports={renderWebGL:s,renderCanvas:i}},54946:(t,e,i)=>{var m=i(73329),x=i(75512);t.exports=function(t,e,i,s){i.addToRenderList(e);var n,r,o,a,h,l,u,c,d,p=t.pipelines.set(e.pipeline),s=m(e,i,s),s=p.calcMatrix.copyFrom(s.calc),f=e.width,g=e.height,y=f/2,f=f/e.projection,v=e.isReversed,i=i.alpha*e.alpha;e.isFilled&&(t.pipelines.preBatch(e),e.showTop&&v&&(n=x.getTintAppendFloatAlpha(e.fillTop,i),r=s.getX(-y,-g),o=s.getY(-y,-g),a=s.getX(0,-f-g),h=s.getY(0,-f-g),l=s.getX(y,-g),u=s.getY(y,-g),c=s.getX(0,f-g),d=s.getY(0,f-g),p.batchQuad(e,r,o,a,h,l,u,c,d,0,0,1,1,n,n,n,n,2)),e.showLeft&&(n=x.getTintAppendFloatAlpha(e.fillLeft,i),u=(l=(h=(a=(o=v?(r=s.getX(-y,-g),s.getY(-y,-g)):(r=s.getX(-y,0),s.getY(-y,0)),s.getX(0,f)),s.getY(0,f)),s.getX(0,f-g)),s.getY(0,f-g)),p.batchTri(e,r,o,a,h,l,u,0,0,1,1,n,n,n,2)),e.showRight&&(n=x.getTintAppendFloatAlpha(e.fillRight,i),u=(l=(h=(a=(o=v?(r=s.getX(y,-g),s.getY(y,-g)):(r=s.getX(y,0),s.getY(y,0)),s.getX(0,f)),s.getY(0,f)),s.getX(0,f-g)),s.getY(0,f-g)),p.batchTri(e,r,o,a,h,l,u,0,0,1,1,n,n,n,2)),t.pipelines.postBatch(e))}},579:(t,e,i)=>{var s=i(56694),l=i(91461),u=i(88829),i=i(52660),s=new s({Extends:l,Mixins:[i],initialize:function(t,e,i,s,n,r,o,a,h){void 0===e&&(e=0),void 0===i&&(i=0),l.call(this,t,"Line",new u(s=void 0===s?0:s,n=void 0===n?0:n,r=void 0===r?128:r,o=void 0===o?0:o));t=Math.max(1,this.geom.right-this.geom.left),s=Math.max(1,this.geom.bottom-this.geom.top);this.lineWidth=1,this._startWidth=1,this._endWidth=1,this.setPosition(e,i),this.setSize(t,s),void 0!==a&&this.setStrokeStyle(1,a,h),this.updateDisplayOrigin()},setLineWidth:function(t,e){return void 0===e&&(e=t),this._startWidth=t,this._endWidth=e,this.lineWidth=t,this},setTo:function(t,e,i,s){return this.geom.setTo(t,e,i,s),this}});t.exports=s},52044:(t,e,i)=>{var r=i(17876),o=i(49584);t.exports=function(t,e,i,s){i.addToRenderList(e);var n=t.currentContext;o(t,n,e,i,s)&&(t=e._displayOriginX,i=e._displayOriginY,e.isStroked&&(r(n,e),n.beginPath(),n.moveTo(e.geom.x1-t,e.geom.y1-i),n.lineTo(e.geom.x2-t,e.geom.y2-i),n.stroke()),n.restore())}},85665:(t,e,i)=>{var s=i(61286),h=i(579);s.register("line",function(t,e,i,s,n,r,o,a){return this.displayList.add(new h(this.scene,t,e,i,s,n,r,o,a))})},52660:(t,e,i)=>{i(72283);var s=i(46952),i=i(52044);t.exports={renderWebGL:s,renderCanvas:i}},46952:(t,e,i)=>{var h=i(73329),l=i(75512);t.exports=function(t,e,i,s){i.addToRenderList(e);var n,r=t.pipelines.set(e.pipeline),s=h(e,i,s),o=(r.calcMatrix.copyFrom(s.calc),e._displayOriginX),a=e._displayOriginY,i=i.alpha*e.alpha;t.pipelines.preBatch(e),e.isStroked&&(n=r.strokeTint,i=l.getTintAppendFloatAlpha(e.strokeColor,e.strokeAlpha*i),n.TL=i,n.TR=i,n.BL=i,n.BR=i,n=e._startWidth,i=e._endWidth,r.batchLine(e.geom.x1-o,e.geom.y1-a,e.geom.x2-o,e.geom.y2-a,n,i,1,0,!1,s.sprite,s.camera)),t.pipelines.postBatch(e)}},91249:(t,e,i)=>{var s=i(70573),n=i(56694),r=i(11117),o=i(14045),a=i(8580),h=i(91461),l=i(18974),i=new n({Extends:h,Mixins:[s],initialize:function(t,e,i,s,n,r){void 0===e&&(e=0),void 0===i&&(i=0),h.call(this,t,"Polygon",new a(s));t=o(this.geom);this.setPosition(e,i),this.setSize(t.width,t.height),void 0!==n&&this.setFillStyle(n,r),this.updateDisplayOrigin(),this.updateData()},smooth:function(t){void 0===t&&(t=1);for(var e=0;e{var d=i(15608),p=i(17876),f=i(49584);t.exports=function(t,e,i,s){i.addToRenderList(e);var n=t.currentContext;if(f(t,n,e,i,s)){var r=e._displayOriginX,o=e._displayOriginY,a=e.pathData,h=a.length-1,t=a[0]-r,i=a[1]-o;n.beginPath(),n.moveTo(t,i),e.closePath||(h-=2);for(var l=2;l{var s=i(61286),r=i(91249);s.register("polygon",function(t,e,i,s,n){return this.displayList.add(new r(this.scene,t,e,i,s,n))})},70573:(t,e,i)=>{i(72283);var s=i(72841),i=i(40834);t.exports={renderWebGL:s,renderCanvas:i}},72841:(t,e,i)=>{var a=i(19543),h=i(73329),l=i(50262);t.exports=function(t,e,i,s){i.addToRenderList(e);var n=t.pipelines.set(e.pipeline),s=h(e,i,s),s=n.calcMatrix.copyFrom(s.calc),r=e._displayOriginX,o=e._displayOriginY,i=i.alpha*e.alpha;t.pipelines.preBatch(e),e.isFilled&&a(n,s,e,i,r,o),e.isStroked&&l(n,e,i,r,o),t.pipelines.postBatch(e)}},517:(t,e,i)=>{var s=i(56694),a=i(74118),h=i(91461),i=i(37673),s=new s({Extends:h,Mixins:[i],initialize:function(t,e,i,s,n,r,o){void 0===e&&(e=0),void 0===i&&(i=0),h.call(this,t,"Rectangle",new a(0,0,s=void 0===s?128:s,n=void 0===n?128:n)),this.setPosition(e,i),this.setSize(s,n),void 0!==r&&this.setFillStyle(r,o),this.updateDisplayOrigin(),this.updateData()},setSize:function(t,e){this.width=t,this.height=e,this.geom.setSize(t,e),this.updateData(),this.updateDisplayOrigin();var i=this.input;return i&&!i.customHitArea&&(i.hitArea.width=t,i.hitArea.height=e),this},updateData:function(){var t=[],e=this.geom,i=this._tempLine;return e.getLineA(i),t.push(i.x1,i.y1,i.x2,i.y2),e.getLineB(i),t.push(i.x2,i.y2),e.getLineC(i),t.push(i.x2,i.y2),e.getLineD(i),t.push(i.x2,i.y2),this.pathData=t,this}});t.exports=s},4091:(t,e,i)=>{var r=i(15608),o=i(17876),a=i(49584);t.exports=function(t,e,i,s){i.addToRenderList(e);var n=t.currentContext;a(t,n,e,i,s)&&(t=e._displayOriginX,i=e._displayOriginY,e.isFilled&&(r(n,e),n.fillRect(-t,-i,e.width,e.height)),e.isStroked&&(o(n,e),n.beginPath(),n.rect(-t,-i,e.width,e.height),n.stroke()),n.restore())}},94355:(t,e,i)=>{var s=i(61286),o=i(517);s.register("rectangle",function(t,e,i,s,n,r){return this.displayList.add(new o(this.scene,t,e,i,s,n,r))})},37673:(t,e,i)=>{i(72283);var s=i(43532),i=i(4091);t.exports={renderWebGL:s,renderCanvas:i}},43532:(t,e,i)=>{var h=i(73329),l=i(50262),u=i(75512);t.exports=function(t,e,i,s){i.addToRenderList(e);var n,r,o=t.pipelines.set(e.pipeline),s=h(e,i,s),s=(o.calcMatrix.copyFrom(s.calc),e._displayOriginX),a=e._displayOriginY,i=i.alpha*e.alpha;t.pipelines.preBatch(e),e.isFilled&&(n=o.fillTint,r=u.getTintAppendFloatAlpha(e.fillColor,e.fillAlpha*i),n.TL=r,n.TR=r,n.BL=r,n.BR=r,o.batchFillRect(-s,-a,e.width,e.height)),e.isStroked&&l(o,e,i,s,a),t.pipelines.postBatch(e)}},77843:(t,e,i)=>{var s=i(87956),n=i(56694),l=i(11117),h=i(91461),i=new n({Extends:h,Mixins:[s],initialize:function(t,e,i,s,n,r,o,a){void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=5),void 0===n&&(n=32),void 0===r&&(r=64),h.call(this,t,"Star",null),this._points=s,this._innerRadius=n,this._outerRadius=r,this.setPosition(e,i),this.setSize(2*r,2*r),void 0!==o&&this.setFillStyle(o,a),this.updateDisplayOrigin(),this.updateData()},setPoints:function(t){return this._points=t,this.updateData()},setInnerRadius:function(t){return this._innerRadius=t,this.updateData()},setOuterRadius:function(t){return this._outerRadius=t,this.updateData()},points:{get:function(){return this._points},set:function(t){this._points=t,this.updateData()}},innerRadius:{get:function(){return this._innerRadius},set:function(t){this._innerRadius=t,this.updateData()}},outerRadius:{get:function(){return this._outerRadius},set:function(t){this._outerRadius=t,this.updateData()}},updateData:function(){var t=[],e=this._points,i=this._innerRadius,s=this._outerRadius,n=Math.PI/2*3,r=Math.PI/e,o=s,a=s;t.push(o,a+-s);for(var h=0;h{var d=i(15608),p=i(17876),f=i(49584);t.exports=function(t,e,i,s){i.addToRenderList(e);var n=t.currentContext;if(f(t,n,e,i,s)){var r=e._displayOriginX,o=e._displayOriginY,a=e.pathData,h=a.length-1,t=a[0]-r,i=a[1]-o;n.beginPath(),n.moveTo(t,i),e.closePath||(h-=2);for(var l=2;l{var a=i(77843);i(61286).register("star",function(t,e,i,s,n,r,o){return this.displayList.add(new a(this.scene,t,e,i,s,n,r,o))})},87956:(t,e,i)=>{i(72283);var s=i(12037),i=i(11401);t.exports={renderWebGL:s,renderCanvas:i}},12037:(t,e,i)=>{var a=i(19543),h=i(73329),l=i(50262);t.exports=function(t,e,i,s){i.addToRenderList(e);var n=t.pipelines.set(e.pipeline),s=h(e,i,s),s=n.calcMatrix.copyFrom(s.calc),r=e._displayOriginX,o=e._displayOriginY,i=i.alpha*e.alpha;t.pipelines.preBatch(e),e.isFilled&&a(n,s,e,i,r,o),e.isStroked&&l(n,e,i,r,o),t.pipelines.postBatch(e)}},21873:(t,e,i)=>{var s=i(56694),c=i(91461),d=i(66349),i=i(70498),s=new s({Extends:c,Mixins:[i],initialize:function(t,e,i,s,n,r,o,a,h,l,u){void 0===e&&(e=0),void 0===i&&(i=0),c.call(this,t,"Triangle",new d(s=void 0===s?0:s,n=void 0===n?128:n,r=void 0===r?64:r,o=void 0===o?0:o,a=void 0===a?128:a,h=void 0===h?128:h));t=this.geom.right-this.geom.left,s=this.geom.bottom-this.geom.top;this.setPosition(e,i),this.setSize(t,s),void 0!==l&&this.setFillStyle(l,u),this.updateDisplayOrigin(),this.updateData()},setTo:function(t,e,i,s,n,r){return this.geom.setTo(t,e,i,s,n,r),this.updateData()},updateData:function(){var t=[],e=this.geom,i=this._tempLine;return e.getLineA(i),t.push(i.x1,i.y1,i.x2,i.y2),e.getLineB(i),t.push(i.x2,i.y2),e.getLineC(i),t.push(i.x2,i.y2),this.pathData=t,this}});t.exports=s},60213:(t,e,i)=>{var h=i(15608),l=i(17876),u=i(49584);t.exports=function(t,e,i,s){i.addToRenderList(e);var n,r,o,a=t.currentContext;u(t,a,e,i,s)&&(t=e._displayOriginX,i=e._displayOriginY,s=e.geom.x1-t,n=e.geom.y1-i,r=e.geom.x2-t,o=e.geom.y2-i,t=e.geom.x3-t,i=e.geom.y3-i,a.beginPath(),a.moveTo(s,n),a.lineTo(r,o),a.lineTo(t,i),a.closePath(),e.isFilled&&(h(a,e),a.fill()),e.isStroked&&(l(a,e),a.stroke()),a.restore())}},79296:(t,e,i)=>{var s=i(61286),u=i(21873);s.register("triangle",function(t,e,i,s,n,r,o,a,h,l){return this.displayList.add(new u(this.scene,t,e,i,s,n,r,o,a,h,l))})},70498:(t,e,i)=>{i(72283);var s=i(72291),i=i(60213);t.exports={renderWebGL:s,renderCanvas:i}},72291:(t,e,i)=>{var p=i(73329),f=i(50262),g=i(75512);t.exports=function(t,e,i,s){i.addToRenderList(e);var n,r,o,a,h,l,u=t.pipelines.set(e.pipeline),s=p(e,i,s),c=(u.calcMatrix.copyFrom(s.calc),e._displayOriginX),d=e._displayOriginY,i=i.alpha*e.alpha;t.pipelines.preBatch(e),e.isFilled&&(n=u.fillTint,r=g.getTintAppendFloatAlpha(e.fillColor,e.fillAlpha*i),n.TL=r,n.TR=r,n.BL=r,n.BR=r,n=e.geom.x1-c,r=e.geom.y1-d,o=e.geom.x2-c,a=e.geom.y2-d,h=e.geom.x3-c,l=e.geom.y3-d,u.batchFillTriangle(n,r,o,a,h,l,s.sprite,s.camera)),e.isStroked&&f(u,e,i,c,d),t.pipelines.postBatch(e)}},13747:(t,e,i)=>{var r=i(16569),s=i(56694),n=i(64937),o=i(89980),i=i(20791),s=new s({Extends:o,Mixins:[n.Alpha,n.BlendMode,n.Depth,n.Flip,n.GetBounds,n.Mask,n.Origin,n.Pipeline,n.PostPipeline,n.ScrollFactor,n.Size,n.TextureCrop,n.Tint,n.Transform,n.Visible,i],initialize:function(t,e,i,s,n){o.call(this,t,"Sprite"),this._crop=this.resetCropObject(),this.anims=new r(this),this.setTexture(s,n),this.setPosition(e,i),this.setSizeToFrame(),this.setOriginFromFrame(),this.initPipeline(),this.initPostPipeline(!0)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},preUpdate:function(t,e){this.anims.update(t,e)},play:function(t,e){return this.anims.play(t,e)},playReverse:function(t,e){return this.anims.playReverse(t,e)},playAfterDelay:function(t,e){return this.anims.playAfterDelay(t,e)},playAfterRepeat:function(t,e){return this.anims.playAfterRepeat(t,e)},chain:function(t){return this.anims.chain(t)},stop:function(){return this.anims.stop()},stopAfterDelay:function(t){return this.anims.stopAfterDelay(t)},stopAfterRepeat:function(t){return this.anims.stopAfterRepeat(t)},stopOnFrame:function(t){return this.anims.stopOnFrame(t)},toJSON:function(){return n.ToJSON(this)},preDestroy:function(){this.anims.destroy(),this.anims=void 0}});t.exports=s},27573:t=>{t.exports=function(t,e,i,s){i.addToRenderList(e),t.batchSprite(e,e.frame,i,s)}},89219:(t,e,i)=>{var n=i(88933),r=i(32291),s=i(99325),o=i(20494),a=i(13747);s.register("sprite",function(t,e){var i=o(t=void 0===t?{}:t,"key",null),s=o(t,"frame",null),i=new a(this.scene,0,0,i,s);return void 0!==e&&(t.add=e),n(this.scene,i,t),r(i,t),i})},66135:(t,e,i)=>{var s=i(61286),n=i(13747);s.register("sprite",function(t,e,i,s){return this.displayList.add(new n(this.scene,t,e,i,s))})},20791:(t,e,i)=>{i(72283);var s=i(21034),i=i(27573);t.exports={renderWebGL:s,renderCanvas:i}},21034:t=>{t.exports=function(t,e,i,s){i.addToRenderList(e),e.pipeline.batchSprite(e,i,s)}},32979:t=>{t.exports=function(t,e,i){var s=t.canvas,n=t.context,r=t.style,o=[],a=0,h=i.length;0{var p=i(61068);t.exports=function(t){var e=p.create(this),i=e.getContext("2d",{willReadFrequently:!0}),s=(t.syncFont(e,i),i.measureText(t.testString));if("actualBoundingBoxAscent"in s)return n=s.actualBoundingBoxAscent,r=s.actualBoundingBoxDescent,p.remove(e),{ascent:n,descent:r,fontSize:n+r};var n=Math.ceil(s.width*t.baselineX),r=2*n,o=n*t.baselineY|0,s=(e.width=n,e.height=r,i.fillStyle="#f00",i.fillRect(0,0,n,r),i.font=t._font,i.textBaseline="alphabetic",i.fillStyle="#000",i.fillText(t.testString,0,o),{ascent:0,descent:0,fontSize:0}),t=i.getImageData(0,0,n,r);if(t){for(var a,h=t.data,i=h.length,l=4*n,u=0,c=!1,d=0;d{var s=i(99584),r=i(61068),n=i(56694),o=i(64937),a=i(89980),w=i(32979),h=i(10850),l=i(55638),u=i(80032),c=i(74744),i=new n({Extends:a,Mixins:[o.Alpha,o.BlendMode,o.ComputedSize,o.Crop,o.Depth,o.Flip,o.GetBounds,o.Mask,o.Origin,o.Pipeline,o.PostPipeline,o.ScrollFactor,o.Tint,o.Transform,o.Visible,u],initialize:function(t,e,i,s,n){void 0===e&&(e=0),void 0===i&&(i=0),a.call(this,t,"Text"),this.renderer=t.sys.renderer,this.setPosition(e,i),this.setOrigin(0,0),this.initPipeline(),this.initPostPipeline(!0),this.canvas=r.create(this),this.context=this.canvas.getContext("2d",{willReadFrequently:!0}),this.style=new c(this,n),this.autoRound=!0,this.splitRegExp=/(?:\r\n|\r|\n)/,this._text=void 0,this.padding={left:0,right:0,top:0,bottom:0},this.width=1,this.height=1,this.lineSpacing=0,this.dirty=!1,0===this.style.resolution&&(this.style.resolution=1),this._crop=this.resetCropObject(),this.texture=t.sys.textures.addCanvas(null,this.canvas,!0),this.frame=this.texture.get(),this.frame.source.resolution=this.style.resolution,this.renderer&&this.renderer.gl&&(this.renderer.deleteTexture(this.frame.source.glTexture),this.frame.source.glTexture=null),this.initRTL(),this.setText(s),n&&n.padding&&this.setPadding(n.padding),n&&n.lineSpacing&&this.setLineSpacing(n.lineSpacing)},initRTL:function(){this.style.rtl&&(this.canvas.dir="rtl",this.context.direction="rtl",this.canvas.style.display="none",s(this.canvas,this.scene.sys.canvas),this.originX=1)},runWordWrap:function(t){var e,i=this.style;return i.wordWrapCallback?(e=i.wordWrapCallback.call(i.wordWrapCallbackScope,t,this),Array.isArray(e)?e.join("\n"):e):i.wordWrapWidth?i.wordWrapUseAdvanced?this.advancedWordWrap(t,this.context,this.style.wordWrapWidth):this.basicWordWrap(t,this.context,this.style.wordWrapWidth):t},advancedWordWrap:function(t,e,i){for(var s="",n=t.replace(/ +/gi," ").split(this.splitRegExp),r=n.length,o=0;o{t.exports=function(t,e,i,s){0!==e.width&&0!==e.height&&(i.addToRenderList(e),t.batchSprite(e,e.frame,i,s))}},75397:(t,e,i)=>{var r=i(88933),s=i(99325),o=i(20494),a=i(76555);s.register("text",function(t,e){var i=o(t=void 0===t?{}:t,"text",""),s=o(t,"style",null),n=o(t,"padding",null),n=(null!==n&&(s.padding=n),new a(this.scene,0,0,i,s));return void 0!==e&&(t.add=e),r(this.scene,n,t),n.autoRound=o(t,"autoRound",!0),n.resolution=o(t,"resolution",1),n})},94627:(t,e,i)=>{var n=i(76555);i(61286).register("text",function(t,e,i,s){return this.displayList.add(new n(this.scene,t,e,i,s))})},80032:(t,e,i)=>{i(72283);var s=i(76128),i=i(71649);t.exports={renderWebGL:s,renderCanvas:i}},74744:(t,e,i)=>{var s=i(56694),o=i(20494),a=i(10850),h=i(27030),l={fontFamily:["fontFamily","Courier"],fontSize:["fontSize","16px"],fontStyle:["fontStyle",""],backgroundColor:["backgroundColor",null],color:["color","#fff"],stroke:["stroke","#fff"],strokeThickness:["strokeThickness",0],shadowOffsetX:["shadow.offsetX",0],shadowOffsetY:["shadow.offsetY",0],shadowColor:["shadow.color","#000"],shadowBlur:["shadow.blur",0],shadowStroke:["shadow.stroke",!1],shadowFill:["shadow.fill",!1],align:["align","left"],maxLines:["maxLines",0],fixedWidth:["fixedWidth",0],fixedHeight:["fixedHeight",0],resolution:["resolution",0],rtl:["rtl",!1],testString:["testString","|MÉqgy"],baselineX:["baselineX",1.2],baselineY:["baselineY",1.4],wordWrapWidth:["wordWrap.width",null],wordWrapCallback:["wordWrap.callback",null],wordWrapCallbackScope:["wordWrap.callbackScope",null],wordWrapUseAdvanced:["wordWrap.useAdvancedWrap",!1]},i=new s({initialize:function(t,e){this.parent=t,this.fontFamily,this.fontSize,this.fontStyle,this.backgroundColor,this.color,this.stroke,this.strokeThickness,this.shadowOffsetX,this.shadowOffsetY,this.shadowColor,this.shadowBlur,this.shadowStroke,this.shadowFill,this.align,this.maxLines,this.fixedWidth,this.fixedHeight,this.resolution,this.rtl,this.testString,this.baselineX,this.baselineY,this.wordWrapWidth,this.wordWrapCallback,this.wordWrapCallbackScope,this.wordWrapUseAdvanced,this._font,this.setStyle(e,!1,!0)},setStyle:function(t,e,i){for(var s in void 0===e&&(e=!0),void 0===i&&(i=!1),t&&t.hasOwnProperty("fontSize")&&"number"==typeof t.fontSize&&(t.fontSize=t.fontSize.toString()+"px"),l){var n=i?l[s][1]:this[s];this[s]=("wordWrapCallback"===s||"wordWrapCallbackScope"===s?a:o)(t,l[s][0],n)}var r=a(t,"font",null),r=(null!==r&&this.setFont(r,!1),this._font=[this.fontStyle,this.fontSize,this.fontFamily].join(" ").trim(),a(t,"fill",null)),r=(null!==r&&(this.color=r),a(t,"metrics",!1));return r?this.metrics={ascent:a(r,"ascent",0),descent:a(r,"descent",0),fontSize:a(r,"fontSize",0)}:!e&&this.metrics||(this.metrics=h(this)),e?this.parent.updateText():this.parent},syncFont:function(t,e){e.font=this._font},syncStyle:function(t,e){e.textBaseline="alphabetic",e.fillStyle=this.color,e.strokeStyle=this.stroke,e.lineWidth=this.strokeThickness,e.lineCap="round",e.lineJoin="round"},syncShadow:function(t,e){e?(t.shadowOffsetX=this.shadowOffsetX,t.shadowOffsetY=this.shadowOffsetY,t.shadowColor=this.shadowColor,t.shadowBlur=this.shadowBlur):(t.shadowOffsetX=0,t.shadowOffsetY=0,t.shadowColor=0,t.shadowBlur=0)},update:function(t){return t&&(this._font=[this.fontStyle,this.fontSize,this.fontFamily].join(" ").trim(),this.metrics=h(this)),this.parent.updateText()},setFont:function(t,e){void 0===e&&(e=!0);var i,s=t,n="",r="";return"string"!=typeof t?(s=a(t,"fontFamily","Courier"),n=a(t,"fontSize","16px"),r=a(t,"fontStyle","")):(i=0,r=2<(t=t.split(" ")).length?t[i++]:"",n=t[i++]||"16px",s=t[i++]||"Courier"),s===this.fontFamily&&n===this.fontSize&&r===this.fontStyle||(this.fontFamily=s,this.fontSize=n,this.fontStyle=r,e&&this.update(!0)),this.parent},setFontFamily:function(t){return this.fontFamily!==t&&(this.fontFamily=t,this.update(!0)),this.parent},setFontStyle:function(t){return this.fontStyle!==t&&(this.fontStyle=t,this.update(!0)),this.parent},setFontSize:function(t){return"number"==typeof t&&(t=t.toString()+"px"),this.fontSize!==t&&(this.fontSize=t,this.update(!0)),this.parent},setTestString:function(t){return this.testString=t,this.update(!0)},setFixedSize:function(t,e){return this.fixedWidth=t,this.fixedHeight=e,t&&(this.parent.width=t),e&&(this.parent.height=e),this.update(!1)},setBackgroundColor:function(t){return this.backgroundColor=t,this.update(!1)},setFill:function(t){return this.color=t,this.update(!1)},setColor:function(t){return this.color=t,this.update(!1)},setResolution:function(t){return this.resolution=t,this.update(!1)},setStroke:function(t,e){return void 0===e&&(e=this.strokeThickness),void 0===t&&0!==this.strokeThickness?(this.strokeThickness=0,this.update(!0)):this.stroke===t&&this.strokeThickness===e||(this.stroke=t,this.strokeThickness=e,this.update(!0)),this.parent},setShadow:function(t,e,i,s,n,r){return void 0===e&&(e=0),void 0===i&&(i="#000"),void 0===s&&(s=0),void 0===n&&(n=!1),void 0===r&&(r=!0),this.shadowOffsetX=t=void 0===t?0:t,this.shadowOffsetY=e,this.shadowColor=i,this.shadowBlur=s,this.shadowStroke=n,this.shadowFill=r,this.update(!1)},setShadowOffset:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.shadowOffsetX=t,this.shadowOffsetY=e,this.update(!1)},setShadowColor:function(t){return this.shadowColor=t=void 0===t?"#000":t,this.update(!1)},setShadowBlur:function(t){return this.shadowBlur=t=void 0===t?0:t,this.update(!1)},setShadowStroke:function(t){return this.shadowStroke=t,this.update(!1)},setShadowFill:function(t){return this.shadowFill=t,this.update(!1)},setWordWrapWidth:function(t,e){return void 0===e&&(e=!1),this.wordWrapWidth=t,this.wordWrapUseAdvanced=e,this.update(!1)},setWordWrapCallback:function(t,e){return void 0===e&&(e=null),this.wordWrapCallback=t,this.wordWrapCallbackScope=e,this.update(!1)},setAlign:function(t){return this.align=t=void 0===t?"left":t,this.update(!1)},setMaxLines:function(t){return this.maxLines=t=void 0===t?0:t,this.update(!1)},getTextMetrics:function(){var t=this.metrics;return{ascent:t.ascent,descent:t.descent,fontSize:t.fontSize}},toJSON:function(){var t,e={};for(t in l)e[t]=this[t];return e.metrics=this.getTextMetrics(),e},destroy:function(){this.parent=void 0}});t.exports=i},76128:(t,e,i)=>{var l=i(75512);t.exports=function(t,e,i,s){var n,r,o,a,h;0!==e.width&&0!==e.height&&(i.addToRenderList(e),r=(n=e.frame).width,o=n.height,a=l.getTintAppendFloatAlpha,h=(t=t.pipelines.set(e.pipeline,e)).setTexture2D(n.glTexture,e),t.batchTexture(e,n.glTexture,r,o,e.x,e.y,r/e.style.resolution,o/e.style.resolution,e.scaleX,e.scaleY,e.rotation,e.flipX,e.flipY,e.scrollFactorX,e.scrollFactorY,e.displayOriginX,e.displayOriginY,0,0,r,o,a(e.tintTopLeft,i.alpha*e._alphaTL),a(e.tintTopRight,i.alpha*e._alphaTR),a(e.tintBottomLeft,i.alpha*e._alphaBL),a(e.tintBottomRight,i.alpha*e._alphaBR),e.tintFill,0,0,i,s,!1,h))}},35856:(t,e,i)=>{var l=i(61068),s=i(56694),n=i(64937),u=i(89980),c=i(3504),r=i(8213),o=i(9271),d=i(93736),i=new s({Extends:u,Mixins:[n.Alpha,n.BlendMode,n.ComputedSize,n.Crop,n.Depth,n.Flip,n.GetBounds,n.Mask,n.Origin,n.Pipeline,n.PostPipeline,n.ScrollFactor,n.Tint,n.Transform,n.Visible,o],initialize:function(t,e,i,s,n,r,o){var a=t.sys.renderer,r=(u.call(this,t,"TileSprite"),t.sys.textures.get(r)),h=r.get(o);h.source.compressionAlgorithm&&(h=(r=t.sys.textures.get("__MISSING")).get()),"DynamicTexture"===r.type&&(h=(r=t.sys.textures.get("__MISSING")).get()),n=s&&n?(s=Math.floor(s),Math.floor(n)):(s=h.width,h.height),this._tilePosition=new d,this._tileScale=new d(1,1),this.dirty=!1,this.renderer=a,this.canvas=l.create(this,s,n),this.context=this.canvas.getContext("2d",{willReadFrequently:!1}),this.displayTexture=r,this.displayFrame=h,this._crop=this.resetCropObject(),this.texture=t.sys.textures.addCanvas(null,this.canvas,!0),this.frame=this.texture.get(),this.potWidth=c(h.width),this.potHeight=c(h.height),this.fillCanvas=l.create2D(this,this.potWidth,this.potHeight),this.fillContext=this.fillCanvas.getContext("2d",{willReadFrequently:!1}),this.fillPattern=null,this.setPosition(e,i),this.setSize(s,n),this.setFrame(o),this.setOriginFromFrame(),this.initPipeline(),this.initPostPipeline(!0)},setTexture:function(t,e){return this.displayTexture=this.scene.sys.textures.get(t),this.setFrame(e)},setFrame:function(t){t=this.displayTexture.get(t);return this.potWidth=c(t.width),this.potHeight=c(t.height),this.canvas.width=0,t.cutWidth&&t.cutHeight?this.renderFlags|=8:this.renderFlags&=-9,this.displayFrame=t,this.dirty=!0,this.updateTileTexture(),this},setTilePosition:function(t,e){return void 0!==t&&(this.tilePositionX=t),void 0!==e&&(this.tilePositionY=e),this},setTileScale:function(t,e){return void 0===t&&(t=this.tileScaleX),void 0===e&&(e=t),this.tileScaleX=t,this.tileScaleY=e,this},updateTileTexture:function(){var t,e,i,s,n;this.dirty&&this.renderer&&((t=this.displayFrame).source.isRenderTexture||t.source.isGLTexture||(e=this.fillContext,i=this.fillCanvas,s=this.potWidth,n=this.potHeight,this.renderer&&this.renderer.gl||(s=t.cutWidth,n=t.cutHeight),e.clearRect(0,0,s,n),i.width=s,i.height=n,e.drawImage(t.source.image,t.cutX,t.cutY,t.cutWidth,t.cutHeight,0,0,s,n),this.renderer&&this.renderer.gl?this.fillPattern=this.renderer.canvasToTexture(i,this.fillPattern):this.fillPattern=e.createPattern(i,"repeat"),this.updateCanvas()),this.dirty=!1)},updateCanvas:function(){var t,e,i,s,n=this.canvas;n.width===this.width&&n.height===this.height||(n.width=this.width,n.height=this.height,this.frame.setSize(this.width,this.height),this.updateDisplayOrigin(),this.dirty=!0),!this.dirty||this.renderer&&this.renderer.gl||(n=this.context,this.scene.sys.game.config.antialias||r.disable(n),t=this._tileScale.x,e=this._tileScale.y,i=this._tilePosition.x,s=this._tilePosition.y,n.clearRect(0,0,this.width,this.height),n.save(),n.scale(t,e),n.translate(-i,-s),n.fillStyle=this.fillPattern,n.fillRect(i,s,this.width/t,this.height/e),n.restore()),this.dirty=!1},preDestroy:function(){this.renderer&&this.renderer.gl&&this.renderer.deleteTexture(this.fillPattern),l.remove(this.canvas),l.remove(this.fillCanvas),this.fillPattern=null,this.fillContext=null,this.fillCanvas=null,this.displayTexture=null,this.displayFrame=null,this.texture.destroy(),this.renderer=null},tilePositionX:{get:function(){return this._tilePosition.x},set:function(t){this._tilePosition.x=t,this.dirty=!0}},tilePositionY:{get:function(){return this._tilePosition.y},set:function(t){this._tilePosition.y=t,this.dirty=!0}},tileScaleX:{get:function(){return this._tileScale.x},set:function(t){this._tileScale.x=t,this.dirty=!0}},tileScaleY:{get:function(){return this._tileScale.y},set:function(t){this._tileScale.y=t,this.dirty=!0}}});t.exports=i},93305:t=>{t.exports=function(t,e,i,s){e.updateCanvas(),i.addToRenderList(e),t.batchSprite(e,e.frame,i,s)}},63950:(t,e,i)=>{var h=i(88933),s=i(99325),l=i(20494),u=i(35856);s.register("tileSprite",function(t,e){var i=l(t=void 0===t?{}:t,"x",0),s=l(t,"y",0),n=l(t,"width",512),r=l(t,"height",512),o=l(t,"key",""),a=l(t,"frame",""),i=new u(this.scene,i,s,n,r,o,a);return void 0!==e&&(t.add=e),h(this.scene,i,t),i})},20509:(t,e,i)=>{var o=i(35856);i(61286).register("tileSprite",function(t,e,i,s,n,r){return this.displayList.add(new o(this.scene,t,e,i,s,n,r))})},9271:(t,e,i)=>{i(72283);var s=i(74287),i=i(93305);t.exports={renderWebGL:s,renderCanvas:i}},74287:(t,e,i)=>{var h=i(75512);t.exports=function(t,e,i,s){e.updateCanvas();var n,r,o=e.width,a=e.height;0!==o&&0!==a&&(i.addToRenderList(e),n=h.getTintAppendFloatAlpha,r=(t=t.pipelines.set(e.pipeline,e)).setTexture2D(e.fillPattern,e),t.batchTexture(e,e.fillPattern,e.displayFrame.width*e.tileScaleX,e.displayFrame.height*e.tileScaleY,e.x,e.y,o,a,e.scaleX,e.scaleY,e.rotation,e.flipX,e.flipY,e.scrollFactorX,e.scrollFactorY,e.originX*o,e.originY*a,0,0,o,a,n(e.tintTopLeft,i.alpha*e._alphaTL),n(e.tintTopRight,i.alpha*e._alphaTR),n(e.tintBottomLeft,i.alpha*e._alphaBL),n(e.tintBottomRight,i.alpha*e._alphaBR),e.tintFill,e.tilePositionX%e.displayFrame.width/e.displayFrame.width,e.tilePositionY%e.displayFrame.height/e.displayFrame.height,i,s,!1,r))}},8630:(t,e,i)=>{var s=i(82897),n=i(56694),r=i(64937),h=i(56631),o=i(97081),a=i(89980),l=i(83392),u=i(76038),c=i(76583),i=i(77974),n=new n({Extends:a,Mixins:[r.Alpha,r.BlendMode,r.Depth,r.Flip,r.GetBounds,r.Mask,r.Origin,r.Pipeline,r.PostPipeline,r.ScrollFactor,r.Size,r.TextureCrop,r.Tint,r.Transform,r.Visible,i],initialize:function(t,e,i,s){a.call(this,t,"Video"),this.video,this.videoTexture,this.videoTextureSource,this.snapshotTexture,this.flipY=!1,this._key=c(),this.touchLocked=!1,this.playWhenUnlocked=!1,this.frameReady=!1,this.isStalled=!1,this.failedPlayAttempts=0,this.metadata,this.retry=0,this.retryInterval=500,this._systemMuted=!1,this._codeMuted=!1,this._systemPaused=!1,this._codePaused=!1,this._callbacks={ended:this.completeHandler.bind(this),legacy:this.legacyPlayHandler.bind(this),playing:this.playingHandler.bind(this),seeked:this.seekedHandler.bind(this),seeking:this.seekingHandler.bind(this),stalled:this.stalledHandler.bind(this),suspend:this.stalledHandler.bind(this),waiting:this.stalledHandler.bind(this)},this._loadCallbackHandler=this.loadErrorHandler.bind(this),this._crop=this.resetCropObject(),this.markers={},this._markerIn=0,this._markerOut=0,this._playingMarker=!1,this._lastUpdate=0,this.cacheKey="",this.isSeeking=!1,this._playCalled=!1,this._rfvCallbackId=0;var n=t.sys.game,e=(this._device=n.device.video,this.setPosition(e,i),this.setSize(256,256),this.initPipeline(),this.initPostPipeline(!0),n.events.on(o.PAUSE,this.globalPause,this),n.events.on(o.RESUME,this.globalResume,this),t.sys.sound);e&&e.on(u.GLOBAL_MUTE,this.globalMute,this),s&&this.load(s)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},load:function(t){var e=this.scene.sys.cache.video.get(t);return e&&(this.cacheKey=t,this.loadHandler(e.url,e.noAudio,e.crossOrigin)),this},changeSource:function(t,e,i,s,n){void 0===e&&(e=!0),void 0===i&&(i=!1),this.cacheKey!==t&&(this.load(t),e)&&this.play(i,s,n)},getVideoKey:function(){return this.cacheKey},loadURL:function(t,e,i){void 0===e&&(e=!1);t=this._device.getVideoURL(t);return t&&(this.cacheKey="",this.loadHandler(t.url,e,i)),this},loadMediaStream:function(t,e,i){return this.loadHandler(null,e,i,t)},loadHandler:function(t,e,i,s){e=e||!1;var n=this.video;if(n?(this.removeLoadEventHandlers(),this.stop()):((n=document.createElement("video")).controls=!1,n.setAttribute("playsinline","playsinline"),n.setAttribute("preload","auto"),n.setAttribute("disablePictureInPicture","true")),e?(n.muted=!0,n.defaultMuted=!0,n.setAttribute("autoplay","autoplay")):(n.muted=!1,n.defaultMuted=!1,n.removeAttribute("autoplay")),i?n.setAttribute("crossorigin",i):n.removeAttribute("crossorigin"),s)if("srcObject"in n)try{n.srcObject=s}catch(t){if("TypeError"!==t.name)throw t;n.src=URL.createObjectURL(s)}else n.src=URL.createObjectURL(s);else n.src=t;return this.addLoadEventHandlers(),this.retry=0,this.video=n,this._playCalled=!1,n.load(),this},requestVideoFrame:function(t,e){var i,s,n,r,o,a=this.video;a&&(i=e.width,s=e.height,o=this.videoTexture,n=this.videoTextureSource,(r=!o||n.source!==a)?(this._codePaused=a.paused,this._codeMuted=a.muted,o?(n.source=a,n.width=i,n.height=s,o.get().setSize(i,s)):((o=this.scene.sys.textures.create(this._key,a,i,s)).add("__BASE",0,0,0,i,s),this.setTexture(o),this.videoTexture=o,this.videoTextureSource=o.source[0],this.videoTextureSource.setFlipY(this.flipY),this.emit(h.VIDEO_TEXTURE,this,o)),this.setSizeToFrame(),this.updateDisplayOrigin()):n.update(),this.isStalled=!1,o=(this.metadata=e).mediaTime,r&&(this._lastUpdate=o,this.emit(h.VIDEO_CREATED,this,i,s),this.frameReady||(this.frameReady=!0,this.emit(h.VIDEO_PLAY,this))),this._playingMarker?o>=this._markerOut&&(a.loop?(a.currentTime=this._markerIn,this.emit(h.VIDEO_LOOP,this)):(this.stop(!1),this.emit(h.VIDEO_COMPLETE,this))):o=this.retryInterval)&&(this.createPlayPromise(!1),this.retry=0)},seekTo:function(t){var e=this.video;return e&&(e=e.duration)!==1/0&&!isNaN(e)&&this.setCurrentTime(e*t),this},getCurrentTime:function(){return this.video?this.video.currentTime:0},setCurrentTime:function(t){var e,i,s=this.video;return s&&("string"==typeof t&&(e=t[0],i=parseFloat(t.substr(1)),"+"===e?t=s.currentTime+i:"-"===e&&(t=s.currentTime-i)),s.currentTime=t),this},seekingHandler:function(){this.isSeeking=!0,this.emit(h.VIDEO_SEEKING,this)},seekedHandler:function(){this.isSeeking=!1,this.emit(h.VIDEO_SEEKED,this)},getProgress:function(){var t=this.video;if(t){var e=t.duration;if(e!==1/0&&!isNaN(e))return t.currentTime/e}return-1},getDuration:function(){return this.video?this.video.duration:0},setMute:function(t){this._codeMuted=t=void 0===t?!0:t;var e=this.video;return e&&(e.muted=!!this._systemMuted||t),this},isMuted:function(){return this._codeMuted},globalMute:function(t,e){this._systemMuted=e;var i=this.video;i&&(i.muted=!!this._codeMuted||e)},globalPause:function(){this._systemPaused=!0,this.video&&!this.video.ended&&(this.removeEventHandlers(),this.video.pause())},globalResume:function(){this._systemPaused=!1,!this.video||this._codePaused||this.video.ended||this.createPlayPromise()},setPaused:function(t){var e=this.video;return this._codePaused=t=void 0===t?!0:t,e&&!e.ended&&(t?e.paused||(this.removeEventHandlers(),e.pause()):this._playCalled?e.paused&&!this._systemPaused&&this.createPlayPromise():this.play()),this},pause:function(){return this.setPaused(!0)},resume:function(){return this.setPaused(!1)},getVolume:function(){return this.video?this.video.volume:1},setVolume:function(t){return void 0===t&&(t=1),this.video&&(this.video.volume=s(t,0,1)),this},getPlaybackRate:function(){return this.video?this.video.playbackRate:1},setPlaybackRate:function(t){return this.video&&(this.video.playbackRate=t),this},getLoop:function(){return!!this.video&&this.video.loop},setLoop:function(t){return void 0===t&&(t=!0),this.video&&(this.video.loop=t),this},isPlaying:function(){return!!this.video&&!(this.video.paused||this.video.ended)},isPaused:function(){return this.video&&this._playCalled&&this.video.paused||this._codePaused||this._systemPaused},saveTexture:function(t,e){return void 0===e&&(e=!1),this.videoTexture&&(this.scene.sys.textures.renameTexture(this._key,t),this.videoTextureSource.setFlipY(e)),this._key=t,this.flipY=e,!!this.videoTexture},stop:function(t){void 0===t&&(t=!0);var e=this.video;return e&&(this.removeEventHandlers(),e.cancelVideoFrameCallback(this._rfvCallbackId),e.pause()),this.retry=0,this._playCalled=!1,t&&this.emit(h.VIDEO_STOP,this),this},removeVideoElement:function(){var t=this.video;if(t){for(t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("autoplay"),t.removeAttribute("src"),this.video=null}},preDestroy:function(){this.stop(!1),this.removeLoadEventHandlers(),this.removeVideoElement();var t=this.scene.sys.game.events,t=(t.off(o.PAUSE,this.globalPause,this),t.off(o.RESUME,this.globalResume,this),this.scene.sys.sound);t&&t.off(u.GLOBAL_MUTE,this.globalMute,this)}});t.exports=n},56933:t=>{t.exports=function(t,e,i,s){e.videoTexture&&(i.addToRenderList(e),t.batchSprite(e,e.frame,i,s))}},65601:(t,e,i)=>{var s=i(88933),n=i(99325),r=i(20494),o=i(8630);n.register("video",function(t,e){var i=r(t=void 0===t?{}:t,"key",null),i=new o(this.scene,0,0,i);return void 0!==e&&(t.add=e),s(this.scene,i,t),i})},215:(t,e,i)=>{var s=i(8630);i(61286).register("video",function(t,e,i){return this.displayList.add(new s(this.scene,t,e,i))})},77974:(t,e,i)=>{i(72283);var s=i(83572),i=i(56933);t.exports={renderWebGL:s,renderCanvas:i}},83572:t=>{t.exports=function(t,e,i,s){e.videoTexture&&(i.addToRenderList(e),e.pipeline.batchSprite(e,i,s))}},71030:(t,e,i)=>{var r=i(95723),s=i(26673),n=i(65650),o=i(56694),a=i(64937),h=i(89980),l=i(74118),u=i(94287),i=new o({Extends:h,Mixins:[a.Depth,a.GetBounds,a.Origin,a.Transform,a.ScrollFactor,a.Visible],initialize:function(t,e,i,s,n){void 0===s&&(s=1),void 0===n&&(n=s),h.call(this,t,"Zone"),this.setPosition(e,i),this.width=s,this.height=n,this.blendMode=r.NORMAL,this.updateDisplayOrigin()},displayWidth:{get:function(){return this.scaleX*this.width},set:function(t){this.scaleX=t/this.width}},displayHeight:{get:function(){return this.scaleY*this.height},set:function(t){this.scaleY=t/this.height}},setSize:function(t,e,i){void 0===i&&(i=!0),this.width=t,this.height=e,this.updateDisplayOrigin();var s=this.input;return i&&s&&!s.customHitArea&&(s.hitArea.width=t,s.hitArea.height=e),this},setDisplaySize:function(t,e){return this.displayWidth=t,this.displayHeight=e,this},setCircleDropZone:function(t){return this.setDropZone(new s(0,0,t),n)},setRectangleDropZone:function(t,e){return this.setDropZone(new l(0,0,t,e),u)},setDropZone:function(t,e){return this.input||this.setInteractive(t,e,!0),this},setAlpha:function(){},setBlendMode:function(){},renderCanvas:function(t,e,i){i.addToRenderList(e)},renderWebGL:function(t,e,i){i.addToRenderList(e)}});t.exports=i},24067:(t,e,i)=>{var s=i(99325),n=i(20494),r=i(71030);s.register("zone",function(t){var e=n(t,"x",0),i=n(t,"y",0),s=n(t,"width",1),t=n(t,"height",s);return new r(this.scene,e,i,s,t)})},34546:(t,e,i)=>{var n=i(71030);i(61286).register("zone",function(t,e,i,s){return this.displayList.add(new n(this.scene,t,e,i,s))})},95847:t=>{t.exports=function(t){return 0{var s=i(56694),n=i(65650),r=i(94026),o=i(62941),a=i(52394),h=i(30977),i=new s({initialize:function(t,e,i){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),this.type=a.CIRCLE,this.x=t,this.y=e,this._radius=i,this._diameter=2*i},contains:function(t,e){return n(this,t,e)},getPoint:function(t,e){return r(this,t,e)},getPoints:function(t,e,i){return o(this,t,e,i)},getRandomPoint:function(t){return h(this,t)},setTo:function(t,e,i){return this.x=t,this.y=e,this._radius=i,this._diameter=2*i,this},setEmpty:function(){return this._radius=0,this._diameter=0,this},setPosition:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},isEmpty:function(){return this._radius<=0},radius:{get:function(){return this._radius},set:function(t){this._radius=t,this._diameter=2*t}},diameter:{get:function(){return this._diameter},set:function(t){this._diameter=t,this._radius=.5*t}},left:{get:function(){return this.x-this._radius},set:function(t){this.x=t+this._radius}},right:{get:function(){return this.x+this._radius},set:function(t){this.x=t-this._radius}},top:{get:function(){return this.y-this._radius},set:function(t){this.y=t+this._radius}},bottom:{get:function(){return this.y+this._radius},set:function(t){this.y=t-this._radius}}});t.exports=i},37964:t=>{t.exports=function(t){return Math.PI*t.radius*2}},72233:(t,e,i)=>{var s=i(79967);t.exports=function(t,e,i){return(i=void 0===i?new s:i).x=t.x+t.radius*Math.cos(e),i.y=t.y+t.radius*Math.sin(e),i}},61761:(t,e,i)=>{var s=i(26673);t.exports=function(t){return new s(t.x,t.y,t.radius)}},65650:t=>{t.exports=function(t,e,i){return 0=t.left&&e<=t.right&&i>=t.top&&i<=t.bottom&&(t.x-e)*(t.x-e)+(t.y-i)*(t.y-i)<=t.radius*t.radius}},39187:(t,e,i)=>{var s=i(65650);t.exports=function(t,e){return s(t,e.x,e.y)}},58672:(t,e,i)=>{var s=i(65650);t.exports=function(t,e){return s(t,e.x,e.y)&&s(t,e.right,e.y)&&s(t,e.x,e.bottom)&&s(t,e.right,e.bottom)}},42997:t=>{t.exports=function(t,e){return e.setTo(t.x,t.y,t.radius)}},94894:t=>{t.exports=function(t,e){return t.x===e.x&&t.y===e.y&&t.radius===e.radius}},48027:(t,e,i)=>{var s=i(74118);t.exports=function(t,e){return(e=void 0===e?new s:e).x=t.left,e.y=t.top,e.width=t.diameter,e.height=t.diameter,e}},94026:(t,e,i)=>{var s=i(72233),n=i(91806),r=i(83392),o=i(79967);t.exports=function(t,e,i){void 0===i&&(i=new o);e=n(e,0,r.PI2);return s(t,e,i)}},62941:(t,e,i)=>{var o=i(37964),a=i(72233),h=i(91806),l=i(83392);t.exports=function(t,e,i,s){void 0===s&&(s=[]),!e&&0{t.exports=function(t,e,i){return t.x+=e,t.y+=i,t}},88665:t=>{t.exports=function(t,e){return t.x+=e.x,t.y+=e.y,t}},30977:(t,e,i)=>{var r=i(79967);t.exports=function(t,e){void 0===e&&(e=new r);var i=2*Math.PI*Math.random(),s=Math.random()+Math.random(),s=1{var s=i(26673);s.Area=i(95847),s.Circumference=i(37964),s.CircumferencePoint=i(72233),s.Clone=i(61761),s.Contains=i(65650),s.ContainsPoint=i(39187),s.ContainsRect=i(58672),s.CopyFrom=i(42997),s.Equals=i(94894),s.GetBounds=i(48027),s.GetPoint=i(94026),s.GetPoints=i(62941),s.Offset=i(34585),s.OffsetPoint=i(88665),s.Random=i(30977),t.exports=s},52394:t=>{t.exports={CIRCLE:0,ELLIPSE:1,LINE:2,POINT:3,POLYGON:4,RECTANGLE:5,TRIANGLE:6}},58605:t=>{t.exports=function(t){return t.isEmpty()?0:t.getMajorRadius()*t.getMinorRadius()*Math.PI}},39507:t=>{t.exports=function(t){var e=t.width/2,t=t.height/2,i=Math.pow(e-t,2)/Math.pow(e+t,2);return Math.PI*(e+t)*(1+3*i/(10+Math.sqrt(4-3*i)))}},86998:(t,e,i)=>{var r=i(79967);t.exports=function(t,e,i){void 0===i&&(i=new r);var s=t.width/2,n=t.height/2;return i.x=t.x+s*Math.cos(e),i.y=t.y+n*Math.sin(e),i}},81773:(t,e,i)=>{var s=i(95669);t.exports=function(t){return new s(t.x,t.y,t.width,t.height)}},72313:t=>{t.exports=function(t,e,i){return!(t.width<=0||t.height<=0)&&(e=(e-t.x)/t.width,(e*=e)+(e=(i-t.y)/t.height)*e<.25)}},34368:(t,e,i)=>{var s=i(72313);t.exports=function(t,e){return s(t,e.x,e.y)}},71431:(t,e,i)=>{var s=i(72313);t.exports=function(t,e){return s(t,e.x,e.y)&&s(t,e.right,e.y)&&s(t,e.x,e.bottom)&&s(t,e.right,e.bottom)}},75459:t=>{t.exports=function(t,e){return e.setTo(t.x,t.y,t.width,t.height)}},95669:(t,e,i)=>{var s=i(56694),n=i(72313),r=i(95340),o=i(54978),a=i(52394),h=i(72006),i=new s({initialize:function(t,e,i,s){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=0),this.type=a.ELLIPSE,this.x=t,this.y=e,this.width=i,this.height=s},contains:function(t,e){return n(this,t,e)},getPoint:function(t,e){return r(this,t,e)},getPoints:function(t,e,i){return o(this,t,e,i)},getRandomPoint:function(t){return h(this,t)},setTo:function(t,e,i,s){return this.x=t,this.y=e,this.width=i,this.height=s,this},setEmpty:function(){return this.width=0,this.height=0,this},setPosition:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},setSize:function(t,e){return void 0===e&&(e=t),this.width=t,this.height=e,this},isEmpty:function(){return this.width<=0||this.height<=0},getMinorRadius:function(){return Math.min(this.width,this.height)/2},getMajorRadius:function(){return Math.max(this.width,this.height)/2},left:{get:function(){return this.x-this.width/2},set:function(t){this.x=t+this.width/2}},right:{get:function(){return this.x+this.width/2},set:function(t){this.x=t-this.width/2}},top:{get:function(){return this.y-this.height/2},set:function(t){this.y=t+this.height/2}},bottom:{get:function(){return this.y+this.height/2},set:function(t){this.y=t-this.height/2}}});t.exports=i},98068:t=>{t.exports=function(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}},72897:(t,e,i)=>{var s=i(74118);t.exports=function(t,e){return(e=void 0===e?new s:e).x=t.left,e.y=t.top,e.width=t.width,e.height=t.height,e}},95340:(t,e,i)=>{var s=i(86998),n=i(91806),r=i(83392),o=i(79967);t.exports=function(t,e,i){void 0===i&&(i=new o);e=n(e,0,r.PI2);return s(t,e,i)}},54978:(t,e,i)=>{var o=i(39507),a=i(86998),h=i(91806),l=i(83392);t.exports=function(t,e,i,s){void 0===s&&(s=[]),!e&&0{t.exports=function(t,e,i){return t.x+=e,t.y+=i,t}},36233:t=>{t.exports=function(t,e){return t.x+=e.x,t.y+=e.y,t}},72006:(t,e,i)=>{var n=i(79967);t.exports=function(t,e){void 0===e&&(e=new n);var i=Math.random()*Math.PI*2,s=Math.sqrt(Math.random());return e.x=t.x+s*Math.cos(i)*t.width/2,e.y=t.y+s*Math.sin(i)*t.height/2,e}},40652:(t,e,i)=>{var s=i(95669);s.Area=i(58605),s.Circumference=i(39507),s.CircumferencePoint=i(86998),s.Clone=i(81773),s.Contains=i(72313),s.ContainsPoint=i(34368),s.ContainsRect=i(71431),s.CopyFrom=i(75459),s.Equals=i(98068),s.GetBounds=i(72897),s.GetPoint=i(95340),s.GetPoints=i(54978),s.Offset=i(77951),s.OffsetPoint=i(36233),s.Random=i(72006),t.exports=s},84068:(t,e,i)=>{var s=i(52394),i=i(98611)(!1,{Circle:i(6112),Ellipse:i(40652),Intersects:i(7563),Line:i(28482),Mesh:i(14293),Point:i(63472),Polygon:i(44359),Rectangle:i(66658),Triangle:i(87619)},s);t.exports=i},22184:(t,e,i)=>{var s=i(53996);t.exports=function(t,e){return s(t.x,t.y,e.x,e.y)<=t.radius+e.radius}},26535:t=>{t.exports=function(t,e){var i=e.width/2,s=e.height/2,n=Math.abs(t.x-e.x-i),e=Math.abs(t.y-e.y-s),r=i+t.radius,o=s+t.radius;return!(r{var d=i(79967),p=i(22184);t.exports=function(t,e,i){var s,n,r,o,a,h,l,u,c;return void 0===i&&(i=[]),p(t,e)&&(a=t.x,h=t.y,t=t.radius,l=e.x,u=e.y,e=e.radius,h===u?0==(r=(n=-2*u)*n-4*(s=1)*(l*l+(o=(e*e-t*t-l*l+a*a)/(2*(a-l)))*o-2*l*o+u*u-e*e))?i.push(new d(o,-n/(2*s))):0{var o=i(26111),a=i(26535);t.exports=function(t,e,i){var s,n,r;return void 0===i&&(i=[]),a(t,e)&&(s=e.getLineA(),n=e.getLineB(),r=e.getLineC(),e=e.getLineD(),o(s,t,i),o(n,t,i),o(r,t,i),o(e,t,i)),i}},26111:(t,e,i)=>{var d=i(79967),p=i(61472);t.exports=function(t,e,i){var s,n,r,o,a,h,l,u,c;return void 0===i&&(i=[]),p(t,e)&&(s=t.x1,n=t.y1,r=t.x2,t=t.y2,0==(h=(a=2*((r=r-s)*(c=s-e.x)+(t=t-n)*(h=n-e.y)))*a-4*(o=r*r+t*t)*(c*c+h*h-(c=e.radius)*c))?(l=s+(e=-a/(2*o))*r,u=n+e*t,0<=e&&e<=1&&i.push(new d(l,u))):0{var f=i(70015);t.exports=function(t,e,i,s){var n,r,o,a=t.x1,h=t.y1,l=t.x2,t=t.y2,u=e.x1,c=e.y1,l=l-a,t=t-h,d=e.x2-u,e=e.y2-c,p=l*e-t*d;if(0==p)return null;if(i=void 0===i?!1:i){if((r=(u+d*(n=(l*(c-h)+t*(a-u))/(d*t-e*l))-a)/l)<0||n<0||1{var h=i(96537),s=i(88829),l=i(70015),u=new s,c=new l;t.exports=function(t,e,i,s){void 0===i&&(i=!1);var n=!1;(s=void 0===s?new l:s).set(),c.set();for(var r=e[0],o=1;o{var s=i(70015),o=i(51729),a=i(17647),h=new s;t.exports=function(t,e,i,s){void 0===s&&(s=new o),Array.isArray(e)||(e=[e]);var n=!1;s.set(),h.set();for(var r=0;r{var l=i(79967),u=i(25227),c=i(47910);t.exports=function(t,e,i){if(void 0===i&&(i=[]),c(t,e))for(var s=e.getLineA(),n=e.getLineB(),r=e.getLineC(),e=e.getLineD(),o=[new l,new l,new l,new l],a=[u(s,t,o[0]),u(n,t,o[1]),u(r,t,o[2]),u(e,t,o[3])],h=0;h<4;h++)a[h]&&i.push(o[h]);return i}},7449:(t,e,i)=>{var a=i(51729),h=i(68439),l=new(i(88829));function u(t,e,i,s,n){var r=Math.cos(t),o=Math.sin(t),e=(l.setTo(e,i,e+r,i+o),h(l,s,!0));e&&n.push(new a(e.x,e.y,t,e.w))}function c(t,e){return t.z-e.z}t.exports=function(t,e,i){Array.isArray(i)||(i=[i]);for(var s=[],n=[],r=0;r{var s=i(74118),n=i(90205);t.exports=function(t,e,i){return void 0===i&&(i=new s),n(t,e)&&(i.x=Math.max(t.x,e.x),i.y=Math.max(t.y,e.y),i.width=Math.min(t.right,e.right)-i.x,i.height=Math.min(t.bottom,e.bottom)-i.y),i}},1946:(t,e,i)=>{var o=i(9569),a=i(90205);t.exports=function(t,e,i){var s,n,r;return void 0===i&&(i=[]),a(t,e)&&(s=t.getLineA(),n=t.getLineB(),r=t.getLineC(),t=t.getLineD(),o(s,e,i),o(n,e,i),o(r,e,i),o(t,e,i)),i}},34211:(t,e,i)=>{var r=i(20370),o=i(9569);t.exports=function(t,e,i){var s,n;return void 0===i&&(i=[]),r(t,e)&&(s=e.getLineA(),n=e.getLineB(),e=e.getLineC(),o(s,t,i),o(n,t,i),o(e,t,i)),i}},80511:(t,e,i)=>{var r=i(26111),o=i(48411);t.exports=function(t,e,i){var s,n;return void 0===i&&(i=[]),o(t,e)&&(s=t.getLineA(),n=t.getLineB(),t=t.getLineC(),r(s,e,i),r(n,e,i),r(t,e,i)),i}},31343:(t,e,i)=>{var h=i(79967),l=i(86117),u=i(25227);t.exports=function(t,e,i){if(void 0===i&&(i=[]),l(t,e))for(var s=t.getLineA(),n=t.getLineB(),t=t.getLineC(),r=[new h,new h,new h],o=[u(s,e,r[0]),u(n,e,r[1]),u(t,e,r[2])],a=0;a<3;a++)o[a]&&i.push(r[a]);return i}},70534:(t,e,i)=>{var r=i(23589),o=i(31343);t.exports=function(t,e,i){var s,n;return void 0===i&&(i=[]),r(t,e)&&(s=e.getLineA(),n=e.getLineB(),e=e.getLineC(),o(t,s,i),o(t,n,i),o(t,e,i)),i}},61472:(t,e,i)=>{var u=i(65650),c=new(i(79967));t.exports=function(t,e,i){var s,n,r,o,a,h,l;return void 0===i&&(i=c),u(e,t.x1,t.y1)?(i.x=t.x1,i.y=t.y1,!0):u(e,t.x2,t.y2)?(i.x=t.x2,i.y=t.y2,!0):(s=t.x2-t.x1,n=t.y2-t.y1,l=e.x-t.x1,r=e.y-t.y1,0<(o=(a=s)*s+(h=n)*n)&&(a*=l=(l*s+r*n)/o,h*=l),i.x=t.x1+a,i.y=t.y1+h,a*a+h*h<=o&&0<=a*s+h*n&&u(e,i.x,i.y))}},25227:t=>{t.exports=function(t,e,i){var s,n,r=t.x1,o=t.y1,a=t.x2,t=t.y2,h=e.x1,l=e.y1,u=e.x2,e=e.y2;return!(r===a&&o===t||h===u&&l===e||0==(s=(e-l)*(a-r)-(u-h)*(t-o))||(n=((a-r)*(o-l)-(t-o)*(r-h))/s,(u=((u-h)*(o-l)-(e-l)*(r-h))/s)<0)||1{t.exports=function(t,e){var i=t.x1,s=t.y1,n=t.x2,t=t.y2,r=e.x,o=e.y,a=e.right,e=e.bottom,h=0;if(r<=i&&i<=a&&o<=s&&s<=e||r<=n&&n<=a&&o<=t&&t<=e)return!0;if(io&&h<=e)return!0}else if(a=o&&h<=e)return!0;if(s=r&&h<=a)return!0}else if(e=r&&h<=a)return!0;return!1}},34426:t=>{t.exports=function(t,e,i){void 0===i&&(i=1);var s,n=e.x1,r=e.y1,o=e.x2,e=e.y2,a=t.x,t=t.y,h=(o-n)*(o-n)+(e-r)*(e-r);return 0!=h&&((s=((a-n)*(o-n)+(t-r)*(e-r))/h)<0?Math.sqrt((n-a)*(n-a)+(r-t)*(r-t))<=i:0<=s&&s<=1?Math.abs(((r-t)*(o-n)-(n-a)*(e-r))/h)*Math.sqrt(h)<=i:Math.sqrt((o-a)*(o-a)+(e-t)*(e-t))<=i)}},81414:(t,e,i)=>{var r=i(34426);t.exports=function(t,e){var i,s,n;return!!r(t,e)&&(i=Math.min(e.x1,e.x2),s=Math.max(e.x1,e.x2),n=Math.min(e.y1,e.y2),e=Math.max(e.y1,e.y2),t.x>=i)&&t.x<=s&&t.y>=n&&t.y<=e}},90205:t=>{t.exports=function(t,e){return!(t.width<=0||t.height<=0||e.width<=0||e.height<=0||t.righte.right||t.y>e.bottom)}},20370:(t,e,i)=>{var l=i(25227),u=i(94287),c=i(86875),d=i(87279);t.exports=function(t,e){var i,s,n,r,o,a,h;return!(e.left>t.right||e.rightt.bottom||e.bottom{t.exports=function(t,e,i,s,n,r){return!(e>t.right+(r=void 0===r?0:r)||it.bottom+r||n{var s=i(61472),n=i(60689);t.exports=function(t,e){return!(t.left>e.right||t.righte.bottom||t.bottom{var s=i(25227);t.exports=function(t,e){return!!(t.contains(e.x1,e.y1)||t.contains(e.x2,e.y2)||s(t.getLineA(),e)||s(t.getLineB(),e)||s(t.getLineC(),e))}},23589:(t,e,i)=>{var h=i(86875),l=i(18680),u=i(25227);t.exports=function(t,e){var i,s,n,r,o,a;return!(t.left>e.right||t.righte.bottom||t.bottom{t.exports={CircleToCircle:i(22184),CircleToRectangle:i(26535),GetCircleToCircle:i(71145),GetCircleToRectangle:i(62508),GetLineToCircle:i(26111),GetLineToLine:i(96537),GetLineToPoints:i(17647),GetLineToPolygon:i(68439),GetLineToRectangle:i(9569),GetRaysFromPointToPolygon:i(7449),GetRectangleIntersection:i(82931),GetRectangleToRectangle:i(1946),GetRectangleToTriangle:i(34211),GetTriangleToCircle:i(80511),GetTriangleToLine:i(31343),GetTriangleToTriangle:i(70534),LineToCircle:i(61472),LineToLine:i(25227),LineToRectangle:i(47910),PointToLine:i(34426),PointToLineSegment:i(81414),RectangleToRectangle:i(90205),RectangleToTriangle:i(20370),RectangleToValues:i(8786),TriangleToCircle:i(48411),TriangleToLine:i(86117),TriangleToTriangle:i(23589)}},50599:t=>{t.exports=function(t){return Math.atan2(t.y2-t.y1,t.x2-t.x1)}},58813:t=>{t.exports=function(t,e,i){void 0===e&&(e=1),void 0===i&&(i=[]);var s=Math.round(t.x1),n=Math.round(t.y1),r=Math.round(t.x2),o=Math.round(t.y2),a=Math.abs(r-s),h=Math.abs(o-n),l=s{t.exports=function(t,e,i){e-=(t.x1+t.x2)/2,i-=(t.y1+t.y2)/2;return t.x1+=e,t.y1+=i,t.x2+=e,t.y2+=i,t}},26718:(t,e,i)=>{var s=i(88829);t.exports=function(t){return new s(t.x1,t.y1,t.x2,t.y2)}},88930:t=>{t.exports=function(t,e){return e.setTo(t.x1,t.y1,t.x2,t.y2)}},90656:t=>{t.exports=function(t,e){return t.x1===e.x1&&t.y1===e.y1&&t.x2===e.x2&&t.y2===e.y2}},30897:(t,e,i)=>{var o=i(16028);t.exports=function(t,e,i){void 0===i&&(i=e);var s=o(t),n=t.x2-t.x1,r=t.y2-t.y1;return e&&(t.x1=t.x1-n/s*e,t.y1=t.y1-r/s*e),i&&(t.x2=t.x2+n/s*i,t.y2=t.y2+r/s*i),t}},30684:(t,e,i)=>{var v=i(92951),m=i(21902),x=i(79967);t.exports=function(t,e,i,s,n){void 0===s&&(s=0);var r,o=[],a=t.x1,h=t.y1,l=t.x2-a,u=t.y2-h,c=m(e,n=void 0===n?[]:n),d=i-1;for(g=0;g=s&&(f.push(y),p=y)}t=o[o.length-1];return v(p,t){var s=i(79967);t.exports=function(t,e){return(e=void 0===e?new s:e).x=(t.x1+t.x2)/2,e.y=(t.y1+t.y2)/2,e}},11222:(t,e,i)=>{var a=i(79967);t.exports=function(t,e,i){void 0===i&&(i=new a);var s=t.x1,n=t.y1,r=t.x2,t=t.y2,o=(r-s)*(r-s)+(t-n)*(t-n);return 0!=o&&(e=((e.x-s)*(r-s)+(e.y-n)*(t-n))/o,i.x=s+e*(r-s),i.y=n+e*(t-n)),i}},7377:(t,e,i)=>{var s=i(83392),n=i(50599),r=i(79967);t.exports=function(t,e){void 0===e&&(e=new r);t=n(t)-s.TAU;return e.x=Math.cos(t),e.y=Math.sin(t),e}},66464:(t,e,i)=>{var s=i(79967);t.exports=function(t,e,i){return(i=void 0===i?new s:i).x=t.x1+(t.x2-t.x1)*e,i.y=t.y1+(t.y2-t.y1)*e,i}},8570:(t,e,i)=>{var u=i(16028),c=i(79967);t.exports=function(t,e,i,s){void 0===s&&(s=[]),!e&&0{t.exports=function(t,e){var i=t.x1,s=t.y1,n=t.x2,t=t.y2,r=(n-i)*(n-i)+(t-s)*(t-s);return 0!=r&&(n=((s-e.y)*(n-i)-(i-e.x)*(t-s))/r,Math.abs(n)*Math.sqrt(r))}},82996:t=>{t.exports=function(t){return Math.abs(t.y1-t.y2)}},16028:t=>{t.exports=function(t){return Math.sqrt((t.x2-t.x1)*(t.x2-t.x1)+(t.y2-t.y1)*(t.y2-t.y1))}},88829:(t,e,i)=>{var s=i(56694),n=i(66464),r=i(8570),o=i(52394),a=i(74077),h=i(93736),i=new s({initialize:function(t,e,i,s){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=0),this.type=o.LINE,this.x1=t,this.y1=e,this.x2=i,this.y2=s},getPoint:function(t,e){return n(this,t,e)},getPoints:function(t,e,i){return r(this,t,e,i)},getRandomPoint:function(t){return a(this,t)},setTo:function(t,e,i,s){return void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=0),this.x1=t=void 0===t?0:t,this.y1=e,this.x2=i,this.y2=s,this},getPointA:function(t){return(t=void 0===t?new h:t).set(this.x1,this.y1),t},getPointB:function(t){return(t=void 0===t?new h:t).set(this.x2,this.y2),t},left:{get:function(){return Math.min(this.x1,this.x2)},set:function(t){this.x1<=this.x2?this.x1=t:this.x2=t}},right:{get:function(){return Math.max(this.x1,this.x2)},set:function(t){this.x1>this.x2?this.x1=t:this.x2=t}},top:{get:function(){return Math.min(this.y1,this.y2)},set:function(t){this.y1<=this.y2?this.y1=t:this.y2=t}},bottom:{get:function(){return Math.max(this.y1,this.y2)},set:function(t){this.y1>this.y2?this.y1=t:this.y2=t}}});t.exports=i},73273:(t,e,i)=>{var s=i(83392),n=i(1071),r=i(50599);t.exports=function(t){t=r(t)-s.TAU;return n(t,-Math.PI,Math.PI)}},96936:(t,e,i)=>{var s=i(83392),n=i(50599);t.exports=function(t){return Math.cos(n(t)-s.TAU)}},43581:(t,e,i)=>{var s=i(83392),n=i(50599);t.exports=function(t){return Math.sin(n(t)-s.TAU)}},13990:t=>{t.exports=function(t,e,i){return t.x1+=e,t.y1+=i,t.x2+=e,t.y2+=i,t}},1298:t=>{t.exports=function(t){return-(t.x2-t.x1)/(t.y2-t.y1)}},74077:(t,e,i)=>{var s=i(79967);t.exports=function(t,e){void 0===e&&(e=new s);var i=Math.random();return e.x=t.x1+i*(t.x2-t.x1),e.y=t.y1+i*(t.y2-t.y1),e}},30473:(t,e,i)=>{var s=i(50599),n=i(73273);t.exports=function(t,e){return 2*n(e)-Math.PI-s(t)}},25968:(t,e,i)=>{var n=i(1809);t.exports=function(t,e){var i=(t.x1+t.x2)/2,s=(t.y1+t.y2)/2;return n(t,i,s,e)}},24296:(t,e,i)=>{var s=i(1809);t.exports=function(t,e,i){return s(t,e.x,e.y,i)}},1809:t=>{t.exports=function(t,e,i,s){var n=Math.cos(s),s=Math.sin(s),r=t.x1-e,o=t.y1-i;return t.x1=r*n-o*s+e,t.y1=r*s+o*n+i,r=t.x2-e,o=t.y2-i,t.x2=r*n-o*s+e,t.y2=r*s+o*n+i,t}},88171:t=>{t.exports=function(t,e,i,s,n){return t.x1=e,t.y1=i,t.x2=e+Math.cos(s)*n,t.y2=i+Math.sin(s)*n,t}},82797:t=>{t.exports=function(t){return(t.y2-t.y1)/(t.x2-t.x1)}},41067:t=>{t.exports=function(t){return Math.abs(t.x1-t.x2)}},28482:(t,e,i)=>{var s=i(88829);s.Angle=i(50599),s.BresenhamPoints=i(58813),s.CenterOn=i(88513),s.Clone=i(26718),s.CopyFrom=i(88930),s.Equals=i(90656),s.Extend=i(30897),s.GetEasedPoints=i(30684),s.GetMidPoint=i(20487),s.GetNearestPoint=i(11222),s.GetNormal=i(7377),s.GetPoint=i(66464),s.GetPoints=i(8570),s.GetShortestDistance=i(65269),s.Height=i(82996),s.Length=i(16028),s.NormalAngle=i(73273),s.NormalX=i(96936),s.NormalY=i(43581),s.Offset=i(13990),s.PerpSlope=i(1298),s.Random=i(74077),s.ReflectAngle=i(30473),s.Rotate=i(25968),s.RotateAroundPoint=i(24296),s.RotateAroundXY=i(1809),s.SetToAngle=i(88171),s.Slope=i(82797),s.Width=i(41067),t.exports=s},18693:(t,e,i)=>{var s=i(56694),n=i(74118),r=i(93736);function u(t,e,i,s){t-=i,i=e-s;return Math.sqrt(t*t+i*i)}i=new s({initialize:function(t,e,i){this.vertex1=t,this.vertex2=e,this.vertex3=i,this.bounds=new n,this._inCenter=new r},getInCenter:function(t){var e,i,s,n,r,o=this.vertex1,a=this.vertex2,h=this.vertex3,t=(t=void 0===t?!0:t)?(e=o.x,i=o.y,s=a.x,n=a.y,r=h.x,h.y):(e=o.vx,i=o.vy,s=a.vx,n=a.vy,r=h.vx,h.vy),o=u(r,t,s,n),a=u(e,i,r,t),h=u(s,n,e,i),l=o+a+h;return this._inCenter.set((e*o+s*a+r*h)/l,(i*o+n*a+t*h)/l)},contains:function(t,e,i){var s=this.vertex1,n=this.vertex2,r=this.vertex3,o=s.vx,a=s.vy,h=n.vx,l=n.vy,u=r.vx,c=r.vy,s=(i&&(d=i.a,g=i.b,p=i.c,y=i.d,f=i.e,i=i.f,o=s.vx*d+s.vy*p+f,a=s.vx*g+s.vy*y+i,h=n.vx*d+n.vy*p+f,l=n.vx*g+n.vy*y+i,u=r.vx*d+r.vy*p+f,c=r.vx*g+r.vy*y+i),u-o),n=c-a,d=h-o,p=l-a,f=t-o,g=e-a,r=s*s+n*n,y=s*d+n*p,i=s*f+n*g,u=d*d+p*p,c=d*f+p*g,h=r*u-y*y,l=0==h?0:1/h,t=(u*i-y*c)*l,o=(r*c-y*i)*l;return 0<=t&&0<=o&&t+o<1},isCounterClockwise:function(t){var e=this.vertex1,i=this.vertex2,s=this.vertex3,i=(i.vx-e.vx)*(s.vy-e.vy)-(i.vy-e.vy)*(s.vx-e.vx);return t<=0?0<=i:i<0},load:function(t,e,i,s,n){return i=this.vertex1.load(t,e,i,s,n),i=this.vertex2.load(t,e,i,s,n),this.vertex3.load(t,e,i,s,n)},transformCoordinatesLocal:function(t,e,i,s){return this.vertex1.transformCoordinatesLocal(t,e,i,s),this.vertex2.transformCoordinatesLocal(t,e,i,s),this.vertex3.transformCoordinatesLocal(t,e,i,s),this},updateBounds:function(){var t=this.vertex1,e=this.vertex2,i=this.vertex3,s=this.bounds;return s.x=Math.min(t.vx,e.vx,i.vx),s.y=Math.min(t.vy,e.vy,i.vy),s.width=Math.max(t.vx,e.vx,i.vx)-s.x,s.height=Math.max(t.vy,e.vy,i.vy)-s.y,this},isInView:function(t,e,i,s,n,r,o,a,h,l,u){this.update(s,n,r,o,a,h,l,u);s=this.vertex1,n=this.vertex2,r=this.vertex3;return!(s.ta<=0&&n.ta<=0&&r.ta<=0||e&&!this.isCounterClockwise(i)||((o=this.bounds).x=Math.min(s.tx,n.tx,r.tx),o.y=Math.min(s.ty,n.ty,r.ty),o.width=Math.max(s.tx,n.tx,r.tx)-o.x,o.height=Math.max(s.ty,n.ty,r.ty)-o.y,a=t.x+t.width,h=t.y+t.height,o.width<=0)||o.height<=0||t.width<=0||t.height<=0||o.righta||o.y>h)},scrollUV:function(t,e){return this.vertex1.scrollUV(t,e),this.vertex2.scrollUV(t,e),this.vertex3.scrollUV(t,e),this},scaleUV:function(t,e){return this.vertex1.scaleUV(t,e),this.vertex2.scaleUV(t,e),this.vertex3.scaleUV(t,e),this},setColor:function(t){return this.vertex1.color=t,this.vertex2.color=t,this.vertex3.color=t,this},update:function(t,e,i,s,n,r,o,a){return this.vertex1.update(e,i,s,n,r,o,a,t),this.vertex2.update(e,i,s,n,r,o,a,t),this.vertex3.update(e,i,s,n,r,o,a,t),this},translate:function(t,e){void 0===e&&(e=0);var i=this.vertex1,s=this.vertex2,n=this.vertex3;return i.x+=t,i.y+=e,s.x+=t,s.y+=e,n.x+=t,n.y+=e,this},x:{get:function(){return this.getInCenter().x},set:function(t){var e=this.getInCenter();this.translate(t-e.x,0)}},y:{get:function(){return this.getInCenter().y},set:function(t){var e=this.getInCenter();this.translate(0,t-e.y)}},alpha:{get:function(){var t=this.vertex1,e=this.vertex2,i=this.vertex3;return(t.alpha+e.alpha+i.alpha)/3},set:function(t){this.vertex1.alpha=t,this.vertex2.alpha=t,this.vertex3.alpha=t}},depth:{get:function(){var t=this.vertex1,e=this.vertex2,i=this.vertex3;return(t.vz+e.vz+i.vz)/3}},destroy:function(){this.vertex1=null,this.vertex2=null,this.vertex3=null}});t.exports=i},99425:(t,e,i)=>{var Z=i(18693),Q=i(72632),s=i(16650),n=i(70015),$=i(85769),tt=new n,et=new n,it=new s;t.exports=function(t){var e,i=Q(t,"mesh"),s=Q(t,"texture",null),n=Q(t,"frame"),r=Q(t,"width",1),o=Q(t,"height",r),a=Q(t,"widthSegments",1),h=Q(t,"heightSegments",a),l=Q(t,"x",0),u=Q(t,"y",0),c=Q(t,"z",0),I=Q(t,"rotateX",0),B=Q(t,"rotateY",0),N=Q(t,"rotateZ",0),X=Q(t,"zIsUp",!0),U=Q(t,"isOrtho",!!i&&i.dirtyCache[11]),d=Q(t,"colors",[16777215]),p=Q(t,"alphas",[1]),z=Q(t,"tile",!1),Y=Q(t,"flipY",!1),t=Q(t,"width",null),f={faces:[],verts:[]};if(tt.set(l,u,c),et.set(I,B,N),it.fromRotationXYTranslation(et,tt,X),!s&&i)s=i.texture,n||(e=i.frame);else if(i&&"string"==typeof s)s=i.scene.sys.textures.get(s);else if(!s)return f;e=e||s.get(n),!t&&U&&s&&i&&(r=e.width/i.height,o=e.height/i.height);for(var V=r/2,G=o/2,g=Math.floor(a),y=Math.floor(h),v=g+1,W=y+1,H=r/g,j=o/y,m=[],x=[],w=0,T=1,b=0,S=1,K=(e&&(w=e.u0,T=e.u1,S=Y?(b=e.v1,e.v0):(b=e.v0,e.v1)),T-w),q=S-b,P=0;P{var E=i(18693),s=i(16650),n=i(70015),A=i(85769),C=new n,M=new n,O=new s;t.exports=function(t,e,i,s,n,r,o,a,h,l){void 0===i&&(i=1),void 0===o&&(o=0),void 0===a&&(a=0),void 0===h&&(h=0),void 0===l&&(l=!0);var u={faces:[],verts:[]},c=t.materials;C.set(s=void 0===s?0:s,n=void 0===n?0:n,r=void 0===r?0:r),M.set(o,a,h),O.fromRotationXYTranslation(M,C,l);for(var d=0;d{var R=i(18693),D=i(85769);t.exports=function(t,e,i,s,n,r,o,a){if(void 0===s&&(s=!1),void 0===r&&(r=16777215),void 0===o&&(o=1),void 0===a&&(a=!1),t.length===e.length||s){var h,l,u={faces:[],vertices:[]},c=s?3:2,d=Array.isArray(r),p=Array.isArray(o);if(Array.isArray(i)&&0{var M,O="untitled",R="",D="";function L(t){return 0===t.models.length&&t.models.push({faces:[],name:O,textureCoords:[],vertexNormals:[],vertices:[]}),R="",t.models[t.models.length-1]}t.exports=function(t,e){M=e=void 0===e?!0:e;var i={materials:{},materialLibraries:[],models:[]};D=R="";for(var s,n,r,o,a,h,l,u,c,d,p,f,g,y=t.split("\n"),v=0;v{var u=i(22946);t.exports=function(t){for(var e={},i=t.split("\n"),s="",n=0;n{t.exports=function(t,e,i,s){void 0===i&&void 0===s&&(n=(i=t.getInCenter()).x,r=i.y);var n,r,s=Math.cos(e),i=Math.sin(e),e=t.vertex1,o=t.vertex2,t=t.vertex3,a=e.x-n,h=e.y-r;e.set(a*s-h*i+n,a*i+h*s+r),a=o.x-n,h=o.y-r,o.set(a*s-h*i+n,a*i+h*s+r),a=t.x-n,h=t.y-r,t.set(a*s-h*i+n,a*i+h*s+r)}},85769:(t,e,i)=>{var s=i(56694),r=i(75512),u=i(70015),i=new s({Extends:u,initialize:function(t,e,i,s,n,r,o,a,h,l){void 0===r&&(r=16777215),void 0===o&&(o=1),void 0===a&&(a=0),void 0===h&&(h=0),void 0===l&&(l=0),u.call(this,t,e,i),this.vx=0,this.vy=0,this.vz=0,this.nx=a,this.ny=h,this.nz=l,this.u=s,this.v=n,this.color=r,this.alpha=o,this.tx=0,this.ty=0,this.ta=0,this.tu=s,this.tv=n},setUVs:function(t,e){return this.u=t,this.v=e,this.tu=t,this.tv=e,this},scrollUV:function(t,e){return this.tu+=t,this.tv+=e,this},scaleUV:function(t,e){return this.tu=this.u*t,this.tv=this.v*e,this},transformCoordinatesLocal:function(t,e,i,s){var n=this.x,r=this.y,o=this.z,t=t.val,a=n*t[0]+r*t[4]+o*t[8]+t[12],h=n*t[1]+r*t[5]+o*t[9]+t[13],l=n*t[2]+r*t[6]+o*t[10]+t[14],n=n*t[3]+r*t[7]+o*t[11]+t[15];this.vx=a/n*e,this.vy=-h/n*i,this.vz=s<=0?l/n:-l/n},resize:function(t,e,i,s,n,r){return this.x=t,this.y=e,this.vx=this.x*i,this.vy=-this.y*s,this.vz=0,n<.5?this.vx+=i*(.5-n):.5{i={Face:i(18693),GenerateGridVerts:i(99425),GenerateObjVerts:i(53267),GenerateVerts:i(67623),ParseObj:i(27291),ParseObjMaterial:i(76799),RotateFace:i(15313),Vertex:i(85769)};t.exports=i},77601:t=>{t.exports=function(t){return t.setTo(Math.ceil(t.x),Math.ceil(t.y))}},38933:(t,e,i)=>{var s=i(79967);t.exports=function(t){return new s(t.x,t.y)}},47103:t=>{t.exports=function(t,e){return e.setTo(t.x,t.y)}},13625:t=>{t.exports=function(t,e){return t.x===e.x&&t.y===e.y}},12536:t=>{t.exports=function(t){return t.setTo(Math.floor(t.x),Math.floor(t.y))}},54205:(t,e,i)=>{var n=i(79967);t.exports=function(t,e){if(void 0===e&&(e=new n),!Array.isArray(t))throw new Error("GetCentroid points argument must be an array");var i=t.length;if(i<1)throw new Error("GetCentroid points array must not be empty");if(1===i)e.x=t[0].x,e.y=t[0].y;else{for(var s=0;s{t.exports=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)}},82712:t=>{t.exports=function(t){return t.x*t.x+t.y*t.y}},20052:(t,e,i)=>{var h=i(74118);t.exports=function(t,e){void 0===e&&(e=new h);for(var i=Number.NEGATIVE_INFINITY,s=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY,r=Number.POSITIVE_INFINITY,o=0;oi&&(i=a.x),a.xn&&(n=a.y),a.y{var n=i(79967);t.exports=function(t,e,i,s){return void 0===i&&(i=0),(s=void 0===s?new n:s).x=t.x+(e.x-t.x)*i,s.y=t.y+(e.y-t.y)*i,s}},42397:t=>{t.exports=function(t){return t.setTo(t.y,t.x)}},59464:(t,e,i)=>{var s=i(79967);t.exports=function(t,e){return(e=void 0===e?new s:e).setTo(-t.x,-t.y)}},79967:(t,e,i)=>{var s=i(56694),n=i(52394),i=new s({initialize:function(t,e){void 0===t&&(t=0),void 0===e&&(e=t),this.type=n.POINT,this.x=t,this.y=e},setTo:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.x=t,this.y=e,this}});t.exports=i},53581:(t,e,i)=>{var s=i(79967),n=i(82712);t.exports=function(t,e,i){void 0===i&&(i=new s);t=(t.x*e.x+t.y*e.y)/n(e);return 0!=t&&(i.x=t*e.x,i.y=t*e.y),i}},50817:(t,e,i)=>{var s=i(79967);t.exports=function(t,e,i){void 0===i&&(i=new s);t=t.x*e.x+t.y*e.y;return 0!=t&&(i.x=t*e.x,i.y=t*e.y),i}},40525:(t,e,i)=>{var s=i(50083);t.exports=function(t,e){var i;return 0===t.x&&0===t.y||(i=s(t),t.x/=i,t.y/=i),t.x*=e,t.y*=e,t}},63472:(t,e,i)=>{var s=i(79967);s.Ceil=i(77601),s.Clone=i(38933),s.CopyFrom=i(47103),s.Equals=i(13625),s.Floor=i(12536),s.GetCentroid=i(54205),s.GetMagnitude=i(50083),s.GetMagnitudeSq=i(82712),s.GetRectangleFromPoints=i(20052),s.Interpolate=i(77154),s.Invert=i(42397),s.Negative=i(59464),s.Project=i(53581),s.ProjectUnit=i(50817),s.SetMagnitude=i(40525),t.exports=s},19631:(t,e,i)=>{var s=i(8580);t.exports=function(t){return new s(t.points)}},45604:t=>{t.exports=function(t,e,i){for(var s=!1,n=-1,r=t.points.length-1;++n{var s=i(45604);t.exports=function(t,e){return s(t,e.x,e.y)}},11117:t=>{"use strict";function e(t,e,i){i=i||2;var s,n,r,o,a,h=e&&e.length,l=h?e[0]*i:t.length,u=g(t,0,l,i,!0),c=[];if(u&&u.next!==u.prev){if(h&&(u=function(t,e,i,s){for(var n,r,o,a,h=[],l=0,u=e.length;l=s.next.y&&s.next.y!==s.y){var a=s.x+(r-s.y)*(s.next.x-s.x)/(s.next.y-s.y);if(a<=n&&o=s.x&&s.x>=d&&n!==s.x&&C(ri.x||s.x===i.x&&(u=s,M((l=i).prev,l,u.prev)<0)&&M(u.next,l,l.next)<0))&&(i=s,f=h),(s=s.next)!==c;);return i}(r=h[l],o=i))?(_(r=L(a,r),r.next),_(a,a.next)):o;return i}(t,e,u,i)),t.length>80*i){for(var d=s=t[0],p=n=t[1],f=i;f=v&&w&&w.z<=m;){if(x.x>=p&&x.x<=g&&x.y>=f&&x.y<=y&&x!==n&&x!==o&&C(a,u,h,c,l,d,x.x,x.y)&&0<=M(x.prev,x,x.next))return;if(x=x.prevZ,w.x>=p&&w.x<=g&&w.y>=f&&w.y<=y&&w!==n&&w!==o&&C(a,u,h,c,l,d,w.x,w.y)&&0<=M(w.prev,w,w.next))return;w=w.nextZ}for(;x&&x.z>=v;){if(x.x>=p&&x.x<=g&&x.y>=f&&x.y<=y&&x!==n&&x!==o&&C(a,u,h,c,l,d,x.x,x.y)&&0<=M(x.prev,x,x.next))return;x=x.prevZ}for(;w&&w.z<=m;){if(w.x>=p&&w.x<=g&&w.y>=f&&w.y<=y&&w!==n&&w!==o&&C(a,u,h,c,l,d,w.x,w.y)&&0<=M(w.prev,w,w.next))return;w=w.nextZ}return 1}(t,s,n,r):function(t){var e=t.prev,i=t,t=t.next;if(0<=M(e,i,t))return;for(var s=e.x,n=i.x,r=t.x,o=e.y,a=i.y,h=t.y,l=s=l&&p.x<=c&&p.y>=u&&p.y<=d&&C(s,o,n,a,r,h,p.x,p.y)&&0<=M(p.prev,p,p.next))return;p=p.next}return 1}(t))e.push(b.i/i|0),e.push(t.i/i|0),e.push(S.i/i|0),k(t),t=S.next,P=S.next;else if((t=S)===P){o?1===o?E(t=function(t,e,i){var s=t;do{var n=s.prev,r=s.next.next}while(!O(n,r)&&R(n,s,s.next,r)&&D(n,r)&&D(r,n)&&(e.push(n.i/i|0),e.push(s.i/i|0),e.push(r.i/i|0),k(s),k(s.next),s=t=r),s=s.next,s!==t);return _(s)}(_(t),e,i),e,i,s,n,r,2):2===o&&function(t,e,i,s,n,r){var o=t;do{for(var a,h=o.next.next;h!==o.prev;){if(o.i!==h.i&&function(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var i=t;do{if(i.i!==t.i&&i.next.i!==t.i&&i.i!==e.i&&i.next.i!==e.i&&R(i,i.next,t,e))return 1}while((i=i.next)!==t)}(t,e)&&(D(t,e)&&D(e,t)&&function(t,e){for(var i=t,s=!1,n=(t.x+e.x)/2,r=(t.y+e.y)/2;i.y>r!=i.next.y>r&&i.next.y!==i.y&&n<(i.next.x-i.x)*(r-i.y)/(i.next.y-i.y)+i.x&&(s=!s),(i=i.next)!==t;);return s}(t,e)&&(M(t.prev,t,e.prev)||M(t,e.prev,e))||O(t,e)&&0=Math.min(t.x,i.x)&&e.y<=Math.max(t.y,i.y)&&e.y>=Math.min(t.y,i.y)}function l(t){return 0{var h=i(74118);t.exports=function(t,e){void 0===e&&(e=new h);for(var i,s=1/0,n=1/0,r=-s,o=-n,a=0;a{t.exports=function(t,e){void 0===e&&(e=[]);for(var i=0;i{var d=i(16028),p=i(88829),f=i(5159);t.exports=function(t,e,i,s){void 0===s&&(s=[]);var n=t.points,r=f(t);!e&&0{var o=i(16028),a=i(88829);t.exports=function(t){for(var e=t.points,i=0,s=0;s{var s=i(56694),n=i(45604),r=i(89294),o=i(52394),i=new s({initialize:function(t){this.type=o.POLYGON,this.area=0,this.points=[],t&&this.setTo(t)},contains:function(t,e){return n(this,t,e)},setTo:function(t){if(this.area=0,this.points=[],"string"==typeof t&&(t=t.split(" ")),Array.isArray(t)){for(var e,i=Number.MAX_VALUE,s=0;s{t.exports=function(t){return t.points.reverse(),t}},95874:t=>{function n(t,e){var i=t.length-1,s=[t[0]];return function t(e,i,s,n,r){for(var o,a,h,l,u,c,d,p=n,f=i+1;f{function l(t,e){return t[0]=e[0],t[1]=e[1],t}t.exports=function(t){for(var e=[],i=t.points,s=0;s{t.exports=function(t,e,i){for(var s=t.points,n=0;n{var s=i(8580);s.Clone=i(19631),s.Contains=i(45604),s.ContainsPoint=i(87289),s.Earcut=i(11117),s.GetAABB=i(14045),s.GetNumberArray=i(98286),s.GetPoints=i(89294),s.Perimeter=i(5159),s.Reverse=i(32244),s.Simplify=i(95874),s.Smooth=i(18974),s.Translate=i(23490),t.exports=s},1653:t=>{t.exports=function(t){return t.width*t.height}},33943:t=>{t.exports=function(t){return t.x=Math.ceil(t.x),t.y=Math.ceil(t.y),t}},58662:t=>{t.exports=function(t){return t.x=Math.ceil(t.x),t.y=Math.ceil(t.y),t.width=Math.ceil(t.width),t.height=Math.ceil(t.height),t}},79993:t=>{t.exports=function(t,e,i){return t.x=e-t.width/2,t.y=i-t.height/2,t}},81572:(t,e,i)=>{var s=i(74118);t.exports=function(t){return new s(t.x,t.y,t.width,t.height)}},94287:t=>{t.exports=function(t,e,i){return!(t.width<=0||t.height<=0)&&t.x<=e&&t.x+t.width>=e&&t.y<=i&&t.y+t.height>=i}},28687:(t,e,i)=>{var s=i(94287);t.exports=function(t,e){return s(t,e.x,e.y)}},73222:t=>{t.exports=function(t,e){return!(e.width*e.height>t.width*t.height)&&e.x>t.x&&e.xt.x&&e.rightt.y&&e.yt.y&&e.bottom{t.exports=function(t,e){return e.setTo(t.x,t.y,t.width,t.height)}},87279:t=>{t.exports=function(t,e){return(e=void 0===e?[]:e).push({x:t.x,y:t.y}),e.push({x:t.right,y:t.y}),e.push({x:t.right,y:t.bottom}),e.push({x:t.x,y:t.bottom}),e}},19989:t=>{t.exports=function(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}},92628:(t,e,i)=>{var s=i(6700);t.exports=function(t,e){var i=s(t);return i{var s=i(6700);t.exports=function(t,e){var i=s(t);return i>s(e)?t.setSize(e.height*i,e.height):t.setSize(e.width,e.width/i),t.setPosition(e.centerX-t.width/2,e.centerY-t.height/2)}},71356:t=>{t.exports=function(t){return t.x=Math.floor(t.x),t.y=Math.floor(t.y),t}},21687:t=>{t.exports=function(t){return t.x=Math.floor(t.x),t.y=Math.floor(t.y),t.width=Math.floor(t.width),t.height=Math.floor(t.height),t}},80222:(t,e,i)=>{var l=i(74118),u=i(83392);t.exports=function(t,e){if(void 0===e&&(e=new l),0!==t.length){for(var i,s,n=Number.MAX_VALUE,r=Number.MAX_VALUE,o=u.MIN_SAFE_INTEGER,a=u.MIN_SAFE_INTEGER,h=0;h{var r=i(74118);t.exports=function(t,e,i,s,n){return(n=void 0===n?new r:n).setTo(Math.min(t,i),Math.min(e,s),Math.abs(t-i),Math.abs(e-s))}},6700:t=>{t.exports=function(t){return 0===t.height?NaN:t.width/t.height}},35242:(t,e,i)=>{var s=i(79967);t.exports=function(t,e){return(e=void 0===e?new s:e).x=t.centerX,e.y=t.centerY,e}},47698:(t,e,i)=>{var n=i(85876),r=i(79967);t.exports=function(t,e,i){var s;return(void 0===i&&(i=new r),e<=0||1<=e)?(i.x=t.x,i.y=t.y):(s=n(t)*e,.5{var r=i(47698),o=i(85876);t.exports=function(t,e,i,s){void 0===s&&(s=[]),!e&&0{var s=i(79967);t.exports=function(t,e){return(e=void 0===e?new s:e).x=t.width,e.y=t.height,e}},7782:(t,e,i)=>{var r=i(79993);t.exports=function(t,e,i){var s=t.centerX,n=t.centerY;return t.setSize(t.width+2*e,t.height+2*i),r(t,s,n)}},66217:(t,e,i)=>{var s=i(74118),n=i(90205);t.exports=function(t,e,i){return void 0===i&&(i=new s),n(t,e)?(i.x=Math.max(t.x,e.x),i.y=Math.max(t.y,e.y),i.width=Math.min(t.right,e.right)-i.x,i.height=Math.min(t.bottom,e.bottom)-i.y):i.setEmpty(),i}},40053:(t,e,i)=>{var h=i(85876),l=i(79967);t.exports=function(t,e,i,s){if(void 0===s&&(s=[]),e||i){e?i=Math.round(h(t)/e):e=h(t)/i;for(var n=t.x,r=t.y,o=0,a=0;a=t.right&&(o=1,r+=n-t.right,n=t.right);break;case 1:(r+=e)>=t.bottom&&(o=2,n-=r-t.bottom,r=t.bottom);break;case 2:(n-=e)<=t.left&&(o=3,r-=t.left-n,n=t.left);break;case 3:(r-=e)<=t.top&&(o=0,r=t.top)}}return s}},86673:t=>{t.exports=function(t,e){for(var i=t.x,s=t.right,n=t.y,r=t.bottom,o=0;o{t.exports=function(t,e){var i=Math.min(t.x,e.x),s=Math.max(t.right,e.right),s=(t.x=i,t.width=s-i,Math.min(t.y,e.y)),i=Math.max(t.bottom,e.bottom);return t.y=s,t.height=i-s,t}},44755:t=>{t.exports=function(t,e,i){var s=Math.min(t.x,e),e=Math.max(t.right,e),e=(t.x=s,t.width=e-s,Math.min(t.y,i)),s=Math.max(t.bottom,i);return t.y=e,t.height=s-e,t}},74466:t=>{t.exports=function(t,e,i){return t.x+=e,t.y+=i,t}},55946:t=>{t.exports=function(t,e){return t.x+=e.x,t.y+=e.y,t}},97474:t=>{t.exports=function(t,e){return t.xe.x&&t.ye.y}},85876:t=>{t.exports=function(t){return 2*(t.width+t.height)}},20243:(t,e,i)=>{var o=i(79967),a=i(75606);t.exports=function(t,e,i){void 0===i&&(i=new o),e=a(e);var s=Math.sin(e),e=Math.cos(e),n=0{var s=i(79967);t.exports=function(t,e){return(e=void 0===e?new s:e).x=t.x+Math.random()*t.width,e.y=t.y+Math.random()*t.height,e}},97691:(t,e,i)=>{var s=i(17489),n=i(73222),r=i(79967);t.exports=function(t,e,i){if(void 0===i&&(i=new r),n(t,e))switch(s(0,3)){case 0:i.x=t.x+Math.random()*(e.right-t.x),i.y=t.y+Math.random()*(e.top-t.y);break;case 1:i.x=e.x+Math.random()*(t.right-e.x),i.y=e.bottom+Math.random()*(t.bottom-e.bottom);break;case 2:i.x=t.x+Math.random()*(e.x-t.x),i.y=e.y+Math.random()*(t.bottom-e.y);break;case 3:i.x=e.right+Math.random()*(t.right-e.right),i.y=t.y+Math.random()*(e.bottom-t.y)}return i}},74118:(t,e,i)=>{var s=i(56694),n=i(94287),r=i(47698),o=i(54932),a=i(52394),h=i(88829),l=i(30001),i=new s({initialize:function(t,e,i,s){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=0),this.type=a.RECTANGLE,this.x=t,this.y=e,this.width=i,this.height=s},contains:function(t,e){return n(this,t,e)},getPoint:function(t,e){return r(this,t,e)},getPoints:function(t,e,i){return o(this,t,e,i)},getRandomPoint:function(t){return l(this,t)},setTo:function(t,e,i,s){return this.x=t,this.y=e,this.width=i,this.height=s,this},setEmpty:function(){return this.setTo(0,0,0,0)},setPosition:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},setSize:function(t,e){return void 0===e&&(e=t),this.width=t,this.height=e,this},isEmpty:function(){return this.width<=0||this.height<=0},getLineA:function(t){return(t=void 0===t?new h:t).setTo(this.x,this.y,this.right,this.y),t},getLineB:function(t){return(t=void 0===t?new h:t).setTo(this.right,this.y,this.right,this.bottom),t},getLineC:function(t){return(t=void 0===t?new h:t).setTo(this.right,this.bottom,this.x,this.bottom),t},getLineD:function(t){return(t=void 0===t?new h:t).setTo(this.x,this.bottom,this.x,this.y),t},left:{get:function(){return this.x},set:function(t){t>=this.right?this.width=0:this.width=this.right-t,this.x=t}},right:{get:function(){return this.x+this.width},set:function(t){t<=this.x?this.width=0:this.width=t-this.x}},top:{get:function(){return this.y},set:function(t){t>=this.bottom?this.height=0:this.height=this.bottom-t,this.y=t}},bottom:{get:function(){return this.y+this.height},set:function(t){t<=this.y?this.height=0:this.height=t-this.y}},centerX:{get:function(){return this.x+this.width/2},set:function(t){this.x=t-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(t){this.y=t-this.height/2}}});t.exports=i},51828:t=>{t.exports=function(t,e){return t.width===e.width&&t.height===e.height}},5691:t=>{t.exports=function(t,e,i){return void 0===i&&(i=e),t.width*=e,t.height*=i,t}},58795:(t,e,i)=>{var o=i(74118);t.exports=function(t,e,i){void 0===i&&(i=new o);var s=Math.min(t.x,e.x),n=Math.min(t.y,e.y),r=Math.max(t.right,e.right)-s,t=Math.max(t.bottom,e.bottom)-n;return i.setTo(s,n,r,t)}},66658:(t,e,i)=>{var s=i(74118);s.Area=i(1653),s.Ceil=i(33943),s.CeilAll=i(58662),s.CenterOn=i(79993),s.Clone=i(81572),s.Contains=i(94287),s.ContainsPoint=i(28687),s.ContainsRect=i(73222),s.CopyFrom=i(29538),s.Decompose=i(87279),s.Equals=i(19989),s.FitInside=i(92628),s.FitOutside=i(85028),s.Floor=i(71356),s.FloorAll=i(21687),s.FromPoints=i(80222),s.FromXY=i(75785),s.GetAspectRatio=i(6700),s.GetCenter=i(35242),s.GetPoint=i(47698),s.GetPoints=i(54932),s.GetSize=i(31591),s.Inflate=i(7782),s.Intersection=i(66217),s.MarchingAnts=i(40053),s.MergePoints=i(86673),s.MergeRect=i(14655),s.MergeXY=i(44755),s.Offset=i(74466),s.OffsetPoint=i(55946),s.Overlaps=i(97474),s.Perimeter=i(85876),s.PerimeterPoint=i(20243),s.Random=i(30001),s.RandomOutside=i(97691),s.SameDimensions=i(51828),s.Scale=i(5691),s.Union=i(58795),t.exports=s},19108:t=>{t.exports=function(t){var e=t.x1,i=t.y1,s=t.x2,n=t.y2,r=t.x3,t=t.y3;return Math.abs(((r-e)*(n-i)-(s-e)*(t-i))/2)}},41199:(t,e,i)=>{var n=i(66349);t.exports=function(t,e,i){var s=i*(Math.sqrt(3)/2);return new n(t,e,t+i/2,e+s,t-i/2,e+s)}},88730:(t,e,i)=>{var p=i(11117),f=i(66349);t.exports=function(t,e,i,s,n){void 0===i&&(i=1),void 0===s&&(s=1),void 0===n&&(n=[]);for(var r,o,a,h,l,u,c=p(t,e=void 0===e?null:e),d=0;d{var n=i(66349);t.exports=function(t,e,i,s){return new n(t,e,t,e-(s=void 0===s?i:s),t+i,e)}},1882:(t,e,i)=>{var n=i(56595),r=i(9640);t.exports=function(t,e,i,s){s=(s=void 0===s?n:s)(t),e-=s.x,i-=s.y;return r(t,e,i)}},56595:(t,e,i)=>{var s=i(79967);t.exports=function(t,e){return(e=void 0===e?new s:e).x=(t.x1+t.x2+t.x3)/3,e.y=(t.y1+t.y2+t.y3)/3,e}},91835:(t,e,i)=>{var l=i(93736);t.exports=function(t,e){void 0===e&&(e=new l);var i=t.x3,s=t.y3,n=t.x1-i,r=t.y1-s,o=t.x2-i,t=t.y2-s,a=2*(n*t-r*o),h=n*(o*o+t*t)-(n*n+r*r)*o;return e.x=i-(r*(o*o+t*t)-(n*n+r*r)*t)/a,e.y=s+h/a,e}},97073:(t,e,i)=>{var m=i(26673);t.exports=function(t,e){void 0===e&&(e=new m);var i,s,n,r,o=t.x1,a=t.y1,h=t.x2,l=t.y2,u=t.x3,t=t.y3,c=h-o,d=l-a,p=u-o,f=t-a,g=c*(o+h)+d*(a+l),y=p*(o+u)+f*(a+t),v=2*(c*(t-l)-d*(u-h));return Math.abs(v)<1e-6?(i=Math.min(o,h,u),s=Math.min(a,l,t),n=.5*(Math.max(o,h,u)-i),r=.5*(Math.max(a,l,t)-s),e.x=i+n,e.y=s+r):(e.x=(f*g-d*y)/v,e.y=(c*y-p*g)/v,n=e.x-o,r=e.y-a),e.radius=Math.sqrt(n*n+r*r),e}},75974:(t,e,i)=>{var s=i(66349);t.exports=function(t){return new s(t.x1,t.y1,t.x2,t.y2,t.x3,t.y3)}},60689:t=>{t.exports=function(t,e,i){var s=t.x3-t.x1,n=t.y3-t.y1,r=t.x2-t.x1,o=t.y2-t.y1,e=e-t.x1,i=i-t.y1,t=s*s+n*n,a=s*r+n*o,s=s*e+n*i,n=r*r+o*o,r=r*e+o*i,e=t*n-a*a,o=0==e?0:1/e,i=(n*s-a*r)*o,e=(t*r-a*s)*o;return 0<=i&&0<=e&&i+e<1}},86875:t=>{t.exports=function(t,e,i,s){void 0===i&&(i=!1),void 0===s&&(s=[]);for(var n,r,o,a=t.x3-t.x1,h=t.y3-t.y1,l=t.x2-t.x1,u=t.y2-t.y1,c=a*a+h*h,d=a*l+h*u,p=l*l+u*u,f=c*p-d*d,g=0==f?0:1/f,y=t.x1,v=t.y1,m=0;m{var s=i(60689);t.exports=function(t,e){return s(t,e.x,e.y)}},42538:t=>{t.exports=function(t,e){return e.setTo(t.x1,t.y1,t.x2,t.y2,t.x3,t.y3)}},18680:t=>{t.exports=function(t,e){return(e=void 0===e?[]:e).push({x:t.x1,y:t.y1}),e.push({x:t.x2,y:t.y2}),e.push({x:t.x3,y:t.y3}),e}},29977:t=>{t.exports=function(t,e){return t.x1===e.x1&&t.y1===e.y1&&t.x2===e.x2&&t.y2===e.y2&&t.x3===e.x3&&t.y3===e.y3}},56088:(t,e,i)=>{var l=i(79967),u=i(16028);t.exports=function(t,e,i){void 0===i&&(i=new l);var s,n,r,o,a=t.getLineA(),h=t.getLineB(),t=t.getLineC();return e<=0||1<=e?(i.x=a.x1,i.y=a.y1):(o=0,(e=((s=u(a))+(n=u(h))+(r=u(t)))*e){var g=i(16028),y=i(79967);t.exports=function(t,e,i,s){void 0===s&&(s=[]);var n=t.getLineA(),r=t.getLineB(),o=t.getLineC(),a=g(n),h=g(r),l=g(o),u=a+h+l;!e&&0{var c=i(79967);function d(t,e,i,s){t-=i,i=e-s;return Math.sqrt(t*t+i*i)}t.exports=function(t,e){void 0===e&&(e=new c);var i=t.x1,s=t.y1,n=t.x2,r=t.y2,o=t.x3,t=t.y3,a=d(o,t,n,r),h=d(i,s,o,t),l=d(n,r,i,s),u=a+h+l;return e.x=(i*a+n*h+o*l)/u,e.y=(s*a+r*h+t*l)/u,e}},9640:t=>{t.exports=function(t,e,i){return t.x1+=e,t.y1+=i,t.x2+=e,t.y2+=i,t.x3+=e,t.y3+=i,t}},95290:(t,e,i)=>{var s=i(16028);t.exports=function(t){var e=t.getLineA(),i=t.getLineB(),t=t.getLineC();return s(e)+s(i)+s(t)}},99761:(t,e,i)=>{var h=i(79967);t.exports=function(t,e){void 0===e&&(e=new h);var i=t.x2-t.x1,s=t.y2-t.y1,n=t.x3-t.x1,r=t.y3-t.y1,o=Math.random(),a=Math.random();return 1<=o+a&&(o=1-o,a=1-a),e.x=t.x1+(i*o+n*a),e.y=t.y1+(s*o+r*a),e}},21934:(t,e,i)=>{var s=i(19211),n=i(83648);t.exports=function(t,e){var i=n(t);return s(t,i.x,i.y,e)}},68454:(t,e,i)=>{var s=i(19211);t.exports=function(t,e,i){return s(t,e.x,e.y,i)}},19211:t=>{t.exports=function(t,e,i,s){var n=Math.cos(s),s=Math.sin(s),r=t.x1-e,o=t.y1-i;return t.x1=r*n-o*s+e,t.y1=r*s+o*n+i,r=t.x2-e,o=t.y2-i,t.x2=r*n-o*s+e,t.y2=r*s+o*n+i,r=t.x3-e,o=t.y3-i,t.x3=r*n-o*s+e,t.y3=r*s+o*n+i,t}},66349:(t,e,i)=>{var s=i(56694),n=i(60689),r=i(56088),o=i(24402),a=i(52394),h=i(88829),l=i(99761),i=new s({initialize:function(t,e,i,s,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=0),void 0===n&&(n=0),void 0===r&&(r=0),this.type=a.TRIANGLE,this.x1=t,this.y1=e,this.x2=i,this.y2=s,this.x3=n,this.y3=r},contains:function(t,e){return n(this,t,e)},getPoint:function(t,e){return r(this,t,e)},getPoints:function(t,e,i){return o(this,t,e,i)},getRandomPoint:function(t){return l(this,t)},setTo:function(t,e,i,s,n,r){return void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=0),void 0===n&&(n=0),void 0===r&&(r=0),this.x1=t=void 0===t?0:t,this.y1=e,this.x2=i,this.y2=s,this.x3=n,this.y3=r,this},getLineA:function(t){return(t=void 0===t?new h:t).setTo(this.x1,this.y1,this.x2,this.y2),t},getLineB:function(t){return(t=void 0===t?new h:t).setTo(this.x2,this.y2,this.x3,this.y3),t},getLineC:function(t){return(t=void 0===t?new h:t).setTo(this.x3,this.y3,this.x1,this.y1),t},left:{get:function(){return Math.min(this.x1,this.x2,this.x3)},set:function(t){t=this.x1<=this.x2&&this.x1<=this.x3?this.x1-t:this.x2<=this.x1&&this.x2<=this.x3?this.x2-t:this.x3-t;this.x1-=t,this.x2-=t,this.x3-=t}},right:{get:function(){return Math.max(this.x1,this.x2,this.x3)},set:function(t){t=this.x1>=this.x2&&this.x1>=this.x3?this.x1-t:this.x2>=this.x1&&this.x2>=this.x3?this.x2-t:this.x3-t;this.x1-=t,this.x2-=t,this.x3-=t}},top:{get:function(){return Math.min(this.y1,this.y2,this.y3)},set:function(t){t=this.y1<=this.y2&&this.y1<=this.y3?this.y1-t:this.y2<=this.y1&&this.y2<=this.y3?this.y2-t:this.y3-t;this.y1-=t,this.y2-=t,this.y3-=t}},bottom:{get:function(){return Math.max(this.y1,this.y2,this.y3)},set:function(t){t=this.y1>=this.y2&&this.y1>=this.y3?this.y1-t:this.y2>=this.y1&&this.y2>=this.y3?this.y2-t:this.y3-t;this.y1-=t,this.y2-=t,this.y3-=t}}});t.exports=i},87619:(t,e,i)=>{var s=i(66349);s.Area=i(19108),s.BuildEquilateral=i(41199),s.BuildFromPolygon=i(88730),s.BuildRight=i(3635),s.CenterOn=i(1882),s.Centroid=i(56595),s.CircumCenter=i(91835),s.CircumCircle=i(97073),s.Clone=i(75974),s.Contains=i(60689),s.ContainsArray=i(86875),s.ContainsPoint=i(51532),s.CopyFrom=i(42538),s.Decompose=i(18680),s.Equals=i(29977),s.GetPoint=i(56088),s.GetPoints=i(24402),s.InCenter=i(83648),s.Perimeter=i(95290),s.Offset=i(9640),s.Random=i(99761),s.Rotate=i(21934),s.RotateAroundPoint=i(68454),s.RotateAroundXY=i(19211),t.exports=s},27395:t=>{t.exports=function(t,e,i){return{gameObject:t,enabled:!0,draggable:!1,dropZone:!1,cursor:!1,target:null,camera:null,hitArea:e,hitAreaCallback:i,hitAreaDebug:null,customHitArea:!1,localX:0,localY:0,dragState:0,dragStartX:0,dragStartY:0,dragStartXGlobal:0,dragStartYGlobal:0,dragX:0,dragY:0}}},18104:t=>{t.exports=function(n,r){return function(t,e,i,s){e=n.getPixelAlpha(e,i,s.texture.key,s.frame.name);return e&&r<=e}}},69898:(t,e,i)=>{var s=i(56694),h=i(72687),n=i(6659),r=i(33963),o=i(97081),a=i(71064),l=i(7905),u=i(40398),c=i(37579),d=i(69360),y=i(64462),i=new s({initialize:function(t,e){this.game=t,this.scaleManager,this.canvas,this.config=e,this.enabled=!0,this.events=new n,this.isOver=!0,this.defaultCursor="",this.keyboard=e.inputKeyboard?new a(this):null,this.mouse=e.inputMouse?new l(this):null,this.touch=e.inputTouch?new c(this):null,this.pointers=[],this.pointersTotal=e.inputActivePointers,e.inputTouch&&1===this.pointersTotal&&(this.pointersTotal=2);for(var i=0;i<=this.pointersTotal;i++){var s=new u(this,i);s.smoothFactor=e.inputSmoothFactor,this.pointers.push(s)}this.mousePointer=e.inputMouse?this.pointers[0]:null,this.activePointer=this.pointers[0],this.globalTopOnly=!0,this.time=0,this._tempPoint={x:0,y:0},this._tempHitTest=[],this._tempMatrix=new d,this._tempMatrix2=new d,this._tempSkip=!1,this.mousePointerContainer=[this.mousePointer],t.events.once(o.BOOT,this.boot,this)},boot:function(){var t=this.game,e=t.events;this.canvas=t.canvas,this.scaleManager=t.scale,this.events.emit(r.MANAGER_BOOT),e.on(o.PRE_RENDER,this.preRender,this),e.once(o.DESTROY,this.destroy,this)},setCanvasOver:function(t){this.isOver=!0,this.events.emit(r.GAME_OVER,t)},setCanvasOut:function(t){this.isOver=!1,this.events.emit(r.GAME_OUT,t)},preRender:function(){var t=this.game.loop.now,e=this.game.loop.delta,i=this.game.scene.getScenes(!0,!0);this.time=t,this.events.emit(r.MANAGER_UPDATE);for(var s=0;s{var r=i(26673),o=i(65650),s=i(56694),a=i(72687),p=i(27395),n=i(18104),h=i(53996),l=i(95669),u=i(72313),g=i(33963),c=i(6659),f=i(72632),d=i(52394),y=i(63399),v=i(42911),m=i(91963),x=i(74118),w=i(94287),T=i(7599),b=i(66349),S=i(60689),i=new s({Extends:c,initialize:function(t){c.call(this),this.scene=t,this.systems=t.sys,this.settings=t.sys.settings,this.manager=t.sys.game.input,this.pluginEvents=new c,this.enabled=!0,this.displayList,this.cameras,y.install(this),this.mouse=this.manager.mouse,this.topOnly=!0,this.pollRate=-1,this._pollTimer=0;var e={cancelled:!1};this._eventContainer={stopPropagation:function(){e.cancelled=!0}},this._eventData=e,this.dragDistanceThreshold=0,this.dragTimeThreshold=0,this._temp=[],this._tempZones=[],this._list=[],this._pendingInsertion=[],this._pendingRemoval=[],this._draggable=[],this._drag={0:[],1:[],2:[],3:[],4:[],5:[],6:[],7:[],8:[],9:[],10:[]},this._dragState=[],this._over={0:[],1:[],2:[],3:[],4:[],5:[],6:[],7:[],8:[],9:[],10:[]},this._validTypes=["onDown","onUp","onOver","onOut","onMove","onDragStart","onDrag","onDragEnd","onDragEnter","onDragLeave","onDragOver","onDrop"],this._updatedThisFrame=!1,t.sys.events.once(T.BOOT,this.boot,this),t.sys.events.on(T.START,this.start,this)},boot:function(){this.cameras=this.systems.cameras,this.displayList=this.systems.displayList,this.systems.events.once(T.DESTROY,this.destroy,this),this.pluginEvents.emit(g.BOOT)},start:function(){var t=this.systems.events;t.on(T.TRANSITION_START,this.transitionIn,this),t.on(T.TRANSITION_OUT,this.transitionOut,this),t.on(T.TRANSITION_COMPLETE,this.transitionComplete,this),t.on(T.PRE_UPDATE,this.preUpdate,this),t.once(T.SHUTDOWN,this.shutdown,this),this.manager.events.on(g.GAME_OUT,this.onGameOut,this),this.manager.events.on(g.GAME_OVER,this.onGameOver,this),this.enabled=!0,this._dragState=[0,0,0,0,0,0,0,0,0,0],this.pluginEvents.emit(g.START)},onGameOver:function(t){this.isActive()&&this.emit(g.GAME_OVER,t.timeStamp,t)},onGameOut:function(t){this.isActive()&&this.emit(g.GAME_OUT,t.timeStamp,t)},preUpdate:function(){this.pluginEvents.emit(g.PRE_UPDATE);var t=this._pendingRemoval,e=this._pendingInsertion,i=t.length,s=e.length;if(0!==i||0!==s){for(var n=this._list,r=0;r=n||0=t.downTime+s?!0:i)return this.setDragState(t,3),this.processDragStartList(t)},processDragStartList:function(t){if(3!==this.getDragState(t))return 0;for(var e=this._drag[t.id],i=0;i{var l=i(10850),u={};t.exports={register:function(t,e,i,s,n){u[t]={plugin:e,mapping:i,settingsKey:s,configKey:n}},getPlugin:function(t){return u[t]},install:function(t){var e,i=t.scene.sys,s=i.settings.input,n=i.game.config;for(e in u){var r=u[e].plugin,o=u[e].mapping,a=u[e].settingsKey,h=u[e].configKey;l(s,a,n[h])&&(t[o]=new r(t))}},remove:function(t){u.hasOwnProperty(t)&&delete u[t]}}},40398:(t,e,i)=>{var o=i(90447),s=i(56694),n=i(53996),a=i(88456),h=i(44521),r=i(93736),l=i(36580),i=new s({initialize:function(t,e){this.manager=t,this.id=e,this.event,this.downElement,this.upElement,this.camera=null,this.button=0,this.buttons=0,this.position=new r,this.prevPosition=new r,this.midPoint=new r(-1,-1),this.velocity=new r,this.angle=0,this.distance=0,this.smoothFactor=0,this.motionFactor=.2,this.worldX=0,this.worldY=0,this.moveTime=0,this.downX=0,this.downY=0,this.downTime=0,this.upX=0,this.upY=0,this.upTime=0,this.primaryDown=!1,this.isDown=!1,this.wasTouch=!1,this.wasCanceled=!1,this.movementX=0,this.movementY=0,this.identifier=0,this.pointerId=null,this.active=0===e,this.locked=!1,this.deltaX=0,this.deltaY=0,this.deltaZ=0},updateWorldPoint:function(t){t=t.getWorldPoint(this.x,this.y);return this.worldX=t.x,this.worldY=t.y,this},positionToCamera:function(t,e){return t.getWorldPoint(this.x,this.y,e)},updateMotion:function(){var t,e,i=this.position.x,s=this.position.y,n=this.midPoint.x,r=this.midPoint.y;i===n&&s===r||(n=h(this.motionFactor,n,i),r=h(this.motionFactor,r,s),a(n,i,.1)&&(n=i),a(r,s,.1)&&(r=s),this.midPoint.set(n,r),this.velocity.set(t=i-n,e=s-r),this.angle=o(n,r,i,s),this.distance=Math.sqrt(t*t+e*e))},up:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.button=t.button,this.upElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),0===t.button&&(this.primaryDown=!1,this.upX=this.x,this.upY=this.y),0===this.buttons&&(this.isDown=!1,this.upTime=t.timeStamp,this.wasTouch=!1)},down:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.button=t.button,this.downElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),0===t.button&&(this.primaryDown=!0,this.downX=this.x,this.downY=this.y),l.macOS&&t.ctrlKey&&(this.buttons=2,this.primaryDown=!1),this.isDown||(this.isDown=!0,this.downTime=t.timeStamp),this.wasTouch=!1},move:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.manager.transformPointer(this,t.pageX,t.pageY,!0),this.locked&&(this.movementX=t.movementX||t.mozMovementX||t.webkitMovementX||0,this.movementY=t.movementY||t.mozMovementY||t.webkitMovementY||0),this.moveTime=t.timeStamp,this.wasTouch=!1},wheel:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.deltaX=t.deltaX,this.deltaY=t.deltaY,this.deltaZ=t.deltaZ,this.wasTouch=!1},touchstart:function(t,e){t.pointerId&&(this.pointerId=t.pointerId),this.identifier=t.identifier,this.target=t.target,this.active=!0,this.buttons=1,this.event=e,this.downElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.primaryDown=!0,this.downX=this.x,this.downY=this.y,this.downTime=e.timeStamp,this.isDown=!0,this.wasTouch=!0,this.wasCanceled=!1,this.updateMotion()},touchmove:function(t,e){this.event=e,this.manager.transformPointer(this,t.pageX,t.pageY,!0),this.moveTime=e.timeStamp,this.wasTouch=!0,this.updateMotion()},touchend:function(t,e){this.buttons=0,this.event=e,this.upElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=e.timeStamp,this.isDown=!1,this.wasTouch=!0,this.wasCanceled=!1,this.active=!1,this.updateMotion()},touchcancel:function(t,e){this.buttons=0,this.event=e,this.upElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=e.timeStamp,this.isDown=!1,this.wasTouch=!0,this.wasCanceled=!0,this.active=!1},noButtonDown:function(){return 0===this.buttons},leftButtonDown:function(){return!!(1&this.buttons)},rightButtonDown:function(){return!!(2&this.buttons)},middleButtonDown:function(){return!!(4&this.buttons)},backButtonDown:function(){return!!(8&this.buttons)},forwardButtonDown:function(){return!!(16&this.buttons)},leftButtonReleased:function(){return 0===this.button&&!this.isDown},rightButtonReleased:function(){return 2===this.button&&!this.isDown},middleButtonReleased:function(){return 1===this.button&&!this.isDown},backButtonReleased:function(){return 3===this.button&&!this.isDown},forwardButtonReleased:function(){return 4===this.button&&!this.isDown},getDistance:function(){return this.isDown?n(this.downX,this.downY,this.x,this.y):n(this.downX,this.downY,this.upX,this.upY)},getDistanceX:function(){return this.isDown?Math.abs(this.downX-this.x):Math.abs(this.downX-this.upX)},getDistanceY:function(){return this.isDown?Math.abs(this.downY-this.y):Math.abs(this.downY-this.upY)},getDuration:function(){return this.isDown?this.manager.time-this.downTime:this.upTime-this.downTime},getAngle:function(){return this.isDown?o(this.downX,this.downY,this.x,this.y):o(this.downX,this.downY,this.upX,this.upY)},getInterpolatedPosition:function(t,e){void 0===t&&(t=10),void 0===e&&(e=[]);for(var i=this.prevPosition.x,s=this.prevPosition.y,n=this.position.x,r=this.position.y,o=0;o{t.exports={MOUSE_DOWN:0,MOUSE_MOVE:1,MOUSE_UP:2,TOUCH_START:3,TOUCH_MOVE:4,TOUCH_END:5,POINTER_LOCK_CHANGE:6,TOUCH_CANCEL:7,MOUSE_WHEEL:8}},14874:t=>{t.exports="boot"},54168:t=>{t.exports="destroy"},526:t=>{t.exports="dragend"},81623:t=>{t.exports="dragenter"},94472:t=>{t.exports="drag"},9304:t=>{t.exports="dragleave"},34265:t=>{t.exports="dragover"},50151:t=>{t.exports="dragstart"},98134:t=>{t.exports="drop"},56773:t=>{t.exports="gameobjectdown"},45824:t=>{t.exports="dragend"},39578:t=>{t.exports="dragenter"},72072:t=>{t.exports="drag"},82569:t=>{t.exports="dragleave"},70833:t=>{t.exports="dragover"},81442:t=>{t.exports="dragstart"},32936:t=>{t.exports="drop"},99658:t=>{t.exports="gameobjectmove"},60515:t=>{t.exports="gameobjectout"},55254:t=>{t.exports="gameobjectover"},34782:t=>{t.exports="pointerdown"},41769:t=>{t.exports="pointermove"},65588:t=>{t.exports="pointerout"},61640:t=>{t.exports="pointerover"},49342:t=>{t.exports="pointerup"},82662:t=>{t.exports="wheel"},13058:t=>{t.exports="gameobjectup"},52426:t=>{t.exports="gameobjectwheel"},78072:t=>{t.exports="gameout"},1545:t=>{t.exports="gameover"},67137:t=>{t.exports="boot"},27678:t=>{t.exports="process"},22257:t=>{t.exports="update"},90379:t=>{t.exports="pointerlockchange"},88909:t=>{t.exports="pointerdown"},36548:t=>{t.exports="pointerdownoutside"},18483:t=>{t.exports="pointermove"},22355:t=>{t.exports="pointerout"},7997:t=>{t.exports="pointerover"},66318:t=>{t.exports="pointerup"},94812:t=>{t.exports="pointerupoutside"},37310:t=>{t.exports="wheel"},24196:t=>{t.exports="preupdate"},27053:t=>{t.exports="shutdown"},29413:t=>{t.exports="start"},25165:t=>{t.exports="update"},33963:(t,e,i)=>{t.exports={BOOT:i(14874),DESTROY:i(54168),DRAG_END:i(526),DRAG_ENTER:i(81623),DRAG:i(94472),DRAG_LEAVE:i(9304),DRAG_OVER:i(34265),DRAG_START:i(50151),DROP:i(98134),GAME_OUT:i(78072),GAME_OVER:i(1545),GAMEOBJECT_DOWN:i(56773),GAMEOBJECT_DRAG_END:i(45824),GAMEOBJECT_DRAG_ENTER:i(39578),GAMEOBJECT_DRAG:i(72072),GAMEOBJECT_DRAG_LEAVE:i(82569),GAMEOBJECT_DRAG_OVER:i(70833),GAMEOBJECT_DRAG_START:i(81442),GAMEOBJECT_DROP:i(32936),GAMEOBJECT_MOVE:i(99658),GAMEOBJECT_OUT:i(60515),GAMEOBJECT_OVER:i(55254),GAMEOBJECT_POINTER_DOWN:i(34782),GAMEOBJECT_POINTER_MOVE:i(41769),GAMEOBJECT_POINTER_OUT:i(65588),GAMEOBJECT_POINTER_OVER:i(61640),GAMEOBJECT_POINTER_UP:i(49342),GAMEOBJECT_POINTER_WHEEL:i(82662),GAMEOBJECT_UP:i(13058),GAMEOBJECT_WHEEL:i(52426),MANAGER_BOOT:i(67137),MANAGER_PROCESS:i(27678),MANAGER_UPDATE:i(22257),POINTER_DOWN:i(88909),POINTER_DOWN_OUTSIDE:i(36548),POINTER_MOVE:i(18483),POINTER_OUT:i(22355),POINTER_OVER:i(7997),POINTER_UP:i(66318),POINTER_UP_OUTSIDE:i(94812),POINTER_WHEEL:i(37310),POINTERLOCK_CHANGE:i(90379),PRE_UPDATE:i(24196),SHUTDOWN:i(27053),START:i(29413),UPDATE:i(25165)}},70848:(t,e,i)=>{i=new(i(56694))({initialize:function(t,e){this.pad=t,this.events=t.events,this.index=e,this.value=0,this.threshold=.1},update:function(t){this.value=t},getValue:function(){return Math.abs(this.value){var s=i(56694),n=i(43200),i=new s({initialize:function(t,e){this.pad=t,this.events=t.manager,this.index=e,this.value=0,this.threshold=1,this.pressed=!1},update:function(t){this.value=t;var e=this.pad,i=this.index;t>=this.threshold?this.pressed||(this.pressed=!0,this.events.emit(n.BUTTON_DOWN,e,this,t),this.pad.emit(n.GAMEPAD_BUTTON_DOWN,i,t,this)):this.pressed&&(this.pressed=!1,this.events.emit(n.BUTTON_UP,e,this,t),this.pad.emit(n.GAMEPAD_BUTTON_UP,i,t,this))},destroy:function(){this.pad=null,this.events=null}});t.exports=i},75956:(t,e,i)=>{var r=i(70848),o=i(21274),s=i(56694),a=i(6659),h=i(93736),i=new s({Extends:a,initialize:function(t,e){a.call(this),this.manager=t,this.pad=e,this.id=e.id,this.index=e.index;for(var i=[],s=0;s{var s=i(56694),n=i(6659),r=i(43200),a=i(75956),o=i(10850),h=i(63399),l=i(33963),i=new s({Extends:n,initialize:function(t){n.call(this),this.scene=t.scene,this.settings=this.scene.sys.settings,this.sceneInputPlugin=t,this.enabled=!0,this.target,this.gamepads=[],this.queue=[],this.onGamepadHandler,this._pad1,this._pad2,this._pad3,this._pad4,t.pluginEvents.once(l.BOOT,this.boot,this),t.pluginEvents.on(l.START,this.start,this)},boot:function(){var t=this.scene.sys.game,e=this.settings.input,i=t.config;this.enabled=o(e,"gamepad",i.inputGamepad)&&t.device.input.gamepads,this.target=o(e,"gamepad.target",i.inputGamepadEventTarget),this.sceneInputPlugin.pluginEvents.once(l.DESTROY,this.destroy,this)},start:function(){this.enabled&&(this.startListeners(),this.refreshPads()),this.sceneInputPlugin.pluginEvents.once(l.SHUTDOWN,this.shutdown,this)},isActive:function(){return this.enabled&&this.scene.sys.isActive()},startListeners:function(){function t(t){!t.defaultPrevented&&e.isActive()&&(e.refreshPads(),e.queue.push(t))}var e=this,i=this.target;this.onGamepadHandler=t,i.addEventListener("gamepadconnected",t,!1),i.addEventListener("gamepaddisconnected",t,!1),this.sceneInputPlugin.pluginEvents.on(l.UPDATE,this.update,this)},stopListeners:function(){this.target.removeEventListener("gamepadconnected",this.onGamepadHandler),this.target.removeEventListener("gamepaddisconnected",this.onGamepadHandler),this.sceneInputPlugin.pluginEvents.off(l.UPDATE,this.update);for(var t=0;t{t.exports={UP:12,DOWN:13,LEFT:14,RIGHT:15,SELECT:8,START:9,B:0,A:1,Y:2,X:3,LEFT_SHOULDER:4,RIGHT_SHOULDER:5}},74982:t=>{t.exports={UP:12,DOWN:13,LEFT:14,RIGHT:15,SHARE:8,OPTIONS:9,PS:16,TOUCHBAR:17,X:0,CIRCLE:1,SQUARE:2,TRIANGLE:3,L1:4,R1:5,L2:6,R2:7,L3:10,R3:11,LEFT_STICK_H:0,LEFT_STICK_V:1,RIGHT_STICK_H:2,RIGHT_STICK_V:3}},43247:t=>{t.exports={UP:12,DOWN:13,LEFT:14,RIGHT:15,MENU:16,A:0,B:1,X:2,Y:3,LB:4,RB:5,LT:6,RT:7,BACK:8,START:9,LS:10,RS:11,LEFT_STICK_H:0,LEFT_STICK_V:1,RIGHT_STICK_H:2,RIGHT_STICK_V:3}},4898:(t,e,i)=>{t.exports={DUALSHOCK_4:i(74982),SNES_USB:i(33171),XBOX_360:i(43247)}},17344:t=>{t.exports="down"},36635:t=>{t.exports="up"},85724:t=>{t.exports="connected"},55832:t=>{t.exports="disconnected"},772:t=>{t.exports="down"},33608:t=>{t.exports="up"},43200:(t,e,i)=>{t.exports={BUTTON_DOWN:i(17344),BUTTON_UP:i(36635),CONNECTED:i(85724),DISCONNECTED:i(55832),GAMEPAD_BUTTON_DOWN:i(772),GAMEPAD_BUTTON_UP:i(33608)}},92636:(t,e,i)=>{t.exports={Axis:i(70848),Button:i(21274),Events:i(43200),Gamepad:i(75956),GamepadPlugin:i(1379),Configs:i(4898)}},20873:(t,e,i)=>{var s=i(72687),i=i(98611)(!1,{CreatePixelPerfectHandler:i(18104),CreateInteractiveObject:i(27395),Events:i(33963),Gamepad:i(92636),InputManager:i(69898),InputPlugin:i(12499),InputPluginCache:i(63399),Keyboard:i(28388),Mouse:i(11343),Pointer:i(40398),Touch:i(77423)},s);t.exports=i},71064:(t,e,i)=>{var n=i(66458),s=i(56694),r=i(97081),o=i(33963),a=i(11873),h=i(72283),i=new s({initialize:function(t){this.manager=t,this.queue=[],this.preventDefault=!0,this.captures=[],this.enabled=!1,this.target,this.onKeyDown=h,this.onKeyUp=h,t.events.once(o.MANAGER_BOOT,this.boot,this)},boot:function(){var t=this.manager.config;this.enabled=t.inputKeyboard,this.target=t.inputKeyboardEventTarget,this.addCapture(t.inputKeyboardCapture),!this.target&&window&&(this.target=window),this.enabled&&this.target&&this.startListeners(),this.manager.game.events.on(r.POST_STEP,this.postUpdate,this)},startListeners:function(){var i=this,t=(this.onKeyDown=function(t){var e;!t.defaultPrevented&&i.enabled&&i.manager&&(i.queue.push(t),i.manager.events.emit(o.MANAGER_PROCESS),e=t.altKey||t.ctrlKey||t.shiftKey||t.metaKey,i.preventDefault)&&!e&&-1{var s=i(56694),n=i(6659),h=i(94030),r=i(97081),o=i(10850),a=i(33963),l=i(63399),u=i(50165),c=i(11873),d=i(95625),p=i(48044),f=i(7599),g=i(84314),i=new s({Extends:n,initialize:function(t){n.call(this),this.game=t.systems.game,this.scene=t.scene,this.settings=this.scene.sys.settings,this.sceneInputPlugin=t,this.manager=t.manager.keyboard,this.enabled=!0,this.keys=[],this.combos=[],this.prevCode=null,this.prevTime=0,this.prevType=null,t.pluginEvents.once(a.BOOT,this.boot,this),t.pluginEvents.on(a.START,this.start,this)},boot:function(){var t=this.settings.input,t=(this.enabled=o(t,"keyboard",!0),o(t,"keyboard.capture",null));t&&this.addCaptures(t),this.sceneInputPlugin.pluginEvents.once(a.DESTROY,this.destroy,this)},start:function(){this.sceneInputPlugin.manager.events.on(a.MANAGER_PROCESS,this.update,this),this.sceneInputPlugin.pluginEvents.once(a.SHUTDOWN,this.shutdown,this),this.game.events.on(r.BLUR,this.resetKeys,this),this.scene.sys.events.on(f.PAUSE,this.resetKeys,this),this.scene.sys.events.on(f.SLEEP,this.resetKeys,this)},isActive:function(){return this.enabled&&this.scene.sys.canInput()},addCapture:function(t){return this.manager.addCapture(t),this},removeCapture:function(t){return this.manager.removeCapture(t),this},getCaptures:function(){return this.manager.captures},enableGlobalCapture:function(){return this.manager.preventDefault=!0,this},disableGlobalCapture:function(){return this.manager.preventDefault=!1,this},clearCaptures:function(){return this.manager.clearCaptures(),this},createCursorKeys:function(){return this.addKeys({up:c.UP,down:c.DOWN,left:c.LEFT,right:c.RIGHT,space:c.SPACE,shift:c.SHIFT})},addKeys:function(t,e,i){void 0===e&&(e=!0),void 0===i&&(i=!1);var s={};if("string"==typeof t){t=t.split(",");for(var n=0;nt._tick)return t._tick=e,!0}return!1},update:function(){var t=this.manager.queue,e=t.length;if(this.isActive()&&0!==e)for(var i=this.keys,s=0;s{t.exports=function(t,e){return e.timeLastMatched=t.timeStamp,e.index++,e.index===e.size||(e.current=e.keyCodes[e.index],!1)}},95625:(t,e,i)=>{var s=i(56694),o=i(94030),a=i(72632),h=i(2544),l=i(88754),i=new s({initialize:function(t,e,i){if(void 0===i&&(i={}),e.length<2)return!1;this.manager=t,this.enabled=!0,this.keyCodes=[];for(var s=0;s{var r=i(60258);t.exports=function(t,e){var i,s,n;return!!e.matched||(s=i=!1,t.keyCode!==e.current||0{t.exports=function(t){return t.current=t.keyCodes[0],t.index=0,t.timeLastMatched=0,t.matched=!1,t.timeMatched=0,t}},5044:t=>{t.exports="keydown"},40813:t=>{t.exports="keyup"},89319:t=>{t.exports="keycombomatch"},43267:t=>{t.exports="down"},78595:t=>{t.exports="keydown-"},30056:t=>{t.exports="keyup-"},81939:t=>{t.exports="up"},94030:(t,e,i)=>{t.exports={ANY_KEY_DOWN:i(5044),ANY_KEY_UP:i(40813),COMBO_MATCH:i(89319),DOWN:i(43267),KEY_DOWN:i(78595),KEY_UP:i(30056),UP:i(81939)}},28388:(t,e,i)=>{t.exports={Events:i(94030),KeyboardManager:i(71064),KeyboardPlugin:i(89666),Key:i(50165),KeyCodes:i(11873),KeyCombo:i(95625),AdvanceKeyCombo:i(60258),ProcessKeyCombo:i(2544),ResetKeyCombo:i(88754),JustDown:i(42460),JustUp:i(53162),DownDuration:i(64964),UpDuration:i(70331)}},64964:t=>{t.exports=function(t,e){void 0===e&&(e=50);var i=t.plugin.game.loop.time-t.timeDown;return t.isDown&&i{t.exports=function(t){return!!t._justDown&&!(t._justDown=!1)}},53162:t=>{t.exports=function(t){return!!t._justUp&&!(t._justUp=!1)}},50165:(t,e,i)=>{var s=i(56694),n=i(6659),r=i(94030),i=new s({Extends:n,initialize:function(t,e){n.call(this),this.plugin=t,this.keyCode=e,this.originalEvent=void 0,this.enabled=!0,this.isDown=!1,this.isUp=!0,this.altKey=!1,this.ctrlKey=!1,this.shiftKey=!1,this.metaKey=!1,this.location=0,this.timeDown=0,this.duration=0,this.timeUp=0,this.emitOnRepeat=!1,this.repeats=0,this._justDown=!1,this._justUp=!1,this._tick=-1},setEmitOnRepeat:function(t){return this.emitOnRepeat=t,this},onDown:function(t){this.originalEvent=t,this.enabled&&(this.altKey=t.altKey,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.location=t.location,this.repeats++,this.isDown?this.emitOnRepeat&&this.emit(r.DOWN,this,t):(this.isDown=!0,this.isUp=!1,this.timeDown=t.timeStamp,this.duration=0,this._justDown=!0,this._justUp=!1,this.emit(r.DOWN,this,t)))},onUp:function(t){this.originalEvent=t,this.enabled&&(this.isDown=!1,this.isUp=!0,this.timeUp=t.timeStamp,this.duration=this.timeUp-this.timeDown,this.repeats=0,this._justDown=!1,this._justUp=!0,this._tick=-1,this.emit(r.UP,this,t))},reset:function(){return this.isDown=!1,this.isUp=!0,this.altKey=!1,this.ctrlKey=!1,this.shiftKey=!1,this.metaKey=!1,this.timeDown=0,this.duration=0,this.timeUp=0,this.repeats=0,this._justDown=!1,this._justUp=!1,this._tick=-1,this},getDuration:function(){return this.isDown?this.plugin.game.loop.time-this.timeDown:0},destroy:function(){this.removeAllListeners(),this.originalEvent=null,this.plugin=null}});t.exports=i},11873:t=>{t.exports={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:42,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,NUMPAD_ZERO:96,NUMPAD_ONE:97,NUMPAD_TWO:98,NUMPAD_THREE:99,NUMPAD_FOUR:100,NUMPAD_FIVE:101,NUMPAD_SIX:102,NUMPAD_SEVEN:103,NUMPAD_EIGHT:104,NUMPAD_NINE:105,NUMPAD_ADD:107,NUMPAD_SUBTRACT:109,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,PLUS:187,COMMA:188,MINUS:189,PERIOD:190,FORWARD_SLASH:191,BACK_SLASH:220,QUOTES:222,BACKTICK:192,OPEN_BRACKET:219,CLOSED_BRACKET:221,SEMICOLON_FIREFOX:59,COLON:58,COMMA_FIREFOX_WINDOWS:60,COMMA_FIREFOX:62,BRACKET_RIGHT_FIREFOX:174,BRACKET_LEFT_FIREFOX:175}},48044:(t,e,i)=>{var s,n=i(11873),r={};for(s in n)r[n[s]]=s;t.exports=r},70331:t=>{t.exports=function(t,e){void 0===e&&(e=50);var i=t.plugin.game.loop.time-t.timeUp;return t.isUp&&i{var s=i(56694),o=i(90185),n=i(33963),r=i(72283),i=new s({initialize:function(t){this.manager=t,this.preventDefaultDown=!0,this.preventDefaultUp=!0,this.preventDefaultMove=!0,this.preventDefaultWheel=!1,this.enabled=!1,this.target,this.locked=!1,this.onMouseMove=r,this.onMouseDown=r,this.onMouseUp=r,this.onMouseDownWindow=r,this.onMouseUpWindow=r,this.onMouseOver=r,this.onMouseOut=r,this.onMouseWheel=r,this.pointerLockChange=r,this.isTop=!0,t.events.once(n.MANAGER_BOOT,this.boot,this)},boot:function(){var t=this.manager.config;this.enabled=t.inputMouse,this.target=t.inputMouseEventTarget,this.passive=t.inputMousePassive,this.preventDefaultDown=t.inputMousePreventDefaultDown,this.preventDefaultUp=t.inputMousePreventDefaultUp,this.preventDefaultMove=t.inputMousePreventDefaultMove,this.preventDefaultWheel=t.inputMousePreventDefaultWheel,this.target?"string"==typeof this.target&&(this.target=document.getElementById(this.target)):this.target=this.manager.game.canvas,t.disableContextMenu&&this.disableContextMenu(),this.enabled&&this.target&&this.startListeners()},disableContextMenu:function(){return this.target.addEventListener("contextmenu",function(t){return t.preventDefault(),!1}),this},requestPointerLock:function(){var t;o.pointerLock&&((t=this.target).requestPointerLock=t.requestPointerLock||t.mozRequestPointerLock||t.webkitRequestPointerLock,t.requestPointerLock())},releasePointerLock:function(){o.pointerLock&&(document.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock,document.exitPointerLock())},startListeners:function(){var t=this.target;if(t){var i=this,s=this.manager,e=s.canvas,n=window&&window.focus&&s.game.config.autoFocus,r=(this.onMouseMove=function(t){!t.defaultPrevented&&i.enabled&&s&&s.enabled&&(s.onMouseMove(t),i.preventDefaultMove)&&t.preventDefault()},this.onMouseDown=function(t){n&&window.focus(),!t.defaultPrevented&&i.enabled&&s&&s.enabled&&(s.onMouseDown(t),i.preventDefaultDown)&&t.target===e&&t.preventDefault()},this.onMouseDownWindow=function(t){!t.defaultPrevented&&i.enabled&&s&&s.enabled&&t.target!==e&&s.onMouseDown(t)},this.onMouseUp=function(t){!t.defaultPrevented&&i.enabled&&s&&s.enabled&&(s.onMouseUp(t),i.preventDefaultUp)&&t.target===e&&t.preventDefault()},this.onMouseUpWindow=function(t){!t.defaultPrevented&&i.enabled&&s&&s.enabled&&t.target!==e&&s.onMouseUp(t)},this.onMouseOver=function(t){!t.defaultPrevented&&i.enabled&&s&&s.enabled&&s.setCanvasOver(t)},this.onMouseOut=function(t){!t.defaultPrevented&&i.enabled&&s&&s.enabled&&s.setCanvasOut(t)},this.onMouseWheel=function(t){!t.defaultPrevented&&i.enabled&&s&&s.enabled&&s.onMouseWheel(t),i.preventDefaultWheel&&t.target===e&&t.preventDefault()},{passive:!0});if(t.addEventListener("mousemove",this.onMouseMove),t.addEventListener("mousedown",this.onMouseDown),t.addEventListener("mouseup",this.onMouseUp),t.addEventListener("mouseover",this.onMouseOver,r),t.addEventListener("mouseout",this.onMouseOut,r),this.preventDefaultWheel?t.addEventListener("wheel",this.onMouseWheel,{passive:!1}):t.addEventListener("wheel",this.onMouseWheel,r),window&&s.game.config.inputWindowEvents)try{window.top.addEventListener("mousedown",this.onMouseDownWindow,r),window.top.addEventListener("mouseup",this.onMouseUpWindow,r)}catch(t){window.addEventListener("mousedown",this.onMouseDownWindow,r),window.addEventListener("mouseup",this.onMouseUpWindow,r),this.isTop=!1}o.pointerLock&&(this.pointerLockChange=function(t){var e=i.target;i.locked=document.pointerLockElement===e||document.mozPointerLockElement===e||document.webkitPointerLockElement===e,s.onPointerLockChange(t)},document.addEventListener("pointerlockchange",this.pointerLockChange,!0),document.addEventListener("mozpointerlockchange",this.pointerLockChange,!0),document.addEventListener("webkitpointerlockchange",this.pointerLockChange,!0)),this.enabled=!0}},stopListeners:function(){var t=this.target;t.removeEventListener("mousemove",this.onMouseMove),t.removeEventListener("mousedown",this.onMouseDown),t.removeEventListener("mouseup",this.onMouseUp),t.removeEventListener("mouseover",this.onMouseOver),t.removeEventListener("mouseout",this.onMouseOut),window&&((t=this.isTop?window.top:window).removeEventListener("mousedown",this.onMouseDownWindow),t.removeEventListener("mouseup",this.onMouseUpWindow)),o.pointerLock&&(document.removeEventListener("pointerlockchange",this.pointerLockChange,!0),document.removeEventListener("mozpointerlockchange",this.pointerLockChange,!0),document.removeEventListener("webkitpointerlockchange",this.pointerLockChange,!0))},destroy:function(){this.stopListeners(),this.target=null,this.enabled=!1,this.manager=null}});t.exports=i},11343:(t,e,i)=>{t.exports={MouseManager:i(7905)}},37579:(t,e,i)=>{var s=i(56694),n=i(33963),r=i(72283),i=new s({initialize:function(t){this.manager=t,this.capture=!0,this.enabled=!1,this.target,this.onTouchStart=r,this.onTouchStartWindow=r,this.onTouchMove=r,this.onTouchEnd=r,this.onTouchEndWindow=r,this.onTouchCancel=r,this.onTouchCancelWindow=r,this.isTop=!0,t.events.once(n.MANAGER_BOOT,this.boot,this)},boot:function(){var t=this.manager.config;this.enabled=t.inputTouch,this.target=t.inputTouchEventTarget,this.capture=t.inputTouchCapture,this.target?"string"==typeof this.target&&(this.target=document.getElementById(this.target)):this.target=this.manager.game.canvas,t.disableContextMenu&&this.disableContextMenu(),this.enabled&&this.target&&this.startListeners()},disableContextMenu:function(){return this.target.addEventListener("contextmenu",function(t){return t.preventDefault(),!1}),this},startListeners:function(){var t=this.target;if(t){var e=this,i=this.manager,s=i.canvas,n=window&&window.focus&&i.game.config.autoFocus,r=(this.onTouchMove=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&(i.onTouchMove(t),e.capture)&&t.cancelable&&t.preventDefault()},this.onTouchStart=function(t){n&&window.focus(),!t.defaultPrevented&&e.enabled&&i&&i.enabled&&(i.onTouchStart(t),e.capture)&&t.cancelable&&t.target===s&&t.preventDefault()},this.onTouchStartWindow=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&t.target!==s&&i.onTouchStart(t)},this.onTouchEnd=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&(i.onTouchEnd(t),e.capture)&&t.cancelable&&t.target===s&&t.preventDefault()},this.onTouchEndWindow=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&t.target!==s&&i.onTouchEnd(t)},this.onTouchCancel=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&(i.onTouchCancel(t),e.capture)&&t.preventDefault()},this.onTouchCancelWindow=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&i.onTouchCancel(t)},this.capture),o={passive:!0},a={passive:!1};if(t.addEventListener("touchstart",this.onTouchStart,r?a:o),t.addEventListener("touchmove",this.onTouchMove,r?a:o),t.addEventListener("touchend",this.onTouchEnd,r?a:o),t.addEventListener("touchcancel",this.onTouchCancel,r?a:o),window&&i.game.config.inputWindowEvents)try{window.top.addEventListener("touchstart",this.onTouchStartWindow,a),window.top.addEventListener("touchend",this.onTouchEndWindow,a),window.top.addEventListener("touchcancel",this.onTouchCancelWindow,a)}catch(t){window.addEventListener("touchstart",this.onTouchStartWindow,a),window.addEventListener("touchend",this.onTouchEndWindow,a),window.addEventListener("touchcancel",this.onTouchCancelWindow,a),this.isTop=!1}this.enabled=!0}},stopListeners:function(){var t=this.target;t.removeEventListener("touchstart",this.onTouchStart),t.removeEventListener("touchmove",this.onTouchMove),t.removeEventListener("touchend",this.onTouchEnd),t.removeEventListener("touchcancel",this.onTouchCancel),window&&((t=this.isTop?window.top:window).removeEventListener("touchstart",this.onTouchStartWindow),t.removeEventListener("touchend",this.onTouchEndWindow),t.removeEventListener("touchcancel",this.onTouchCancelWindow))},destroy:function(){this.stopListeners(),this.target=null,this.enabled=!1,this.manager=null}});t.exports=i},77423:(t,e,i)=>{t.exports={TouchManager:i(37579)}},98035:(t,e,i)=>{var s=i(56694),n=i(12117),r=i(683),o=i(72632),a=i(30750),h=i(43531),l=i(88490),u=i(33868),i=new s({initialize:function(t,e){if(this.loader=t,this.cache=o(e,"cache",!1),this.type=o(e,"type",!1),!this.type)throw new Error("Invalid File type: "+this.type);this.key=o(e,"key",!1);var i=this.key;if(t.prefix&&""!==t.prefix&&(this.key=t.prefix+i),!this.key)throw new Error("Invalid File key: "+this.key);var s=o(e,"url");void 0===s?s=t.path+i+"."+o(e,"extension",""):"string"!=typeof s||s.match(/^(?:blob:|data:|capacitor:\/\/|http:\/\/|https:\/\/|\/\/)/)||(s=t.path+s),this.url=s,this.src="",this.xhrSettings=u(o(e,"responseType",void 0)),o(e,"xhrSettings",!1)&&(this.xhrSettings=h(this.xhrSettings,o(e,"xhrSettings",{}))),this.xhrLoader=null,this.state="function"==typeof this.url?n.FILE_POPULATED:n.FILE_PENDING,this.bytesTotal=0,this.bytesLoaded=-1,this.percentComplete=-1,this.crossOrigin=void 0,this.data=void 0,this.config=o(e,"config",{}),this.multiFile,this.linkFile},setLink:function(t){(this.linkFile=t).linkFile=this},resetXHR:function(){this.xhrLoader&&(this.xhrLoader.onload=void 0,this.xhrLoader.onerror=void 0,this.xhrLoader.onprogress=void 0)},load:function(){this.state===n.FILE_POPULATED?this.loader.nextFile(this,!0):(this.state=n.FILE_LOADING,this.src=a(this,this.loader.baseURL),0!==this.src.indexOf("data:")&&(this.xhrLoader=l(this,this.loader.xhr)))},onLoad:function(e,t){var i=e.responseURL&&this.loader.localSchemes.some(function(t){return 0===e.responseURL.indexOf(t)})&&0===t.target.status,t=!(t.target&&200!==t.target.status)||i;4===e.readyState&&400<=e.status&&e.status<=599&&(t=!1),this.state=n.FILE_LOADED,this.resetXHR(),this.loader.nextFile(this,t)},onError:function(){this.resetXHR(),this.loader.nextFile(this,!1)},onProgress:function(t){t.lengthComputable&&(this.bytesLoaded=t.loaded,this.bytesTotal=t.total,this.percentComplete=Math.min(this.bytesLoaded/this.bytesTotal,1),this.loader.emit(r.FILE_PROGRESS,this,this.percentComplete))},onProcess:function(){this.state=n.FILE_PROCESSING,this.onProcessComplete()},onProcessComplete:function(){this.state=n.FILE_COMPLETE,this.multiFile&&this.multiFile.onFileComplete(this),this.loader.fileProcessComplete(this)},onProcessError:function(){this.state=n.FILE_ERRORED,this.multiFile&&this.multiFile.onFileFailed(this),this.loader.fileProcessComplete(this)},hasCacheConflict:function(){return this.cache&&this.cache.exists(this.key)},addToCache:function(){this.cache&&this.data&&this.cache.add(this.key,this.data)},pendingDestroy:function(t){var e,i;this.state!==n.FILE_PENDING_DESTROY&&(void 0===t&&(t=this.data),e=this.key,i=this.type,this.loader.emit(r.FILE_COMPLETE,e,i,t),this.loader.emit(r.FILE_KEY_COMPLETE+i+"-"+e,e,i,t),this.loader.flagForRemoval(this),this.state=n.FILE_PENDING_DESTROY)},destroy:function(){this.loader=null,this.cache=null,this.xhrSettings=null,this.multiFile=null,this.linkFile=null,this.data=null}});i.createObjectURL=function(t,e,i){var s;"function"==typeof URL?t.src=URL.createObjectURL(e):((s=new FileReader).onload=function(){t.removeAttribute("crossOrigin"),t.src="data:"+(e.type||i)+";base64,"+s.result.split(",")[1]},s.onerror=t.onerror,s.readAsDataURL(e))},i.revokeObjectURL=function(t){"function"==typeof URL&&URL.revokeObjectURL(t.src)},t.exports=i},76846:t=>{var i={};t.exports={install:function(t){for(var e in i)t[e]=i[e]},register:function(t,e){i[t]=e},destroy:function(){i={}}}},30750:t=>{t.exports=function(t,e){return!!t.url&&(t.url.match(/^(?:blob:|data:|capacitor:\/\/|http:\/\/|https:\/\/|\/\/)/)?t.url:e+t.url)}},67285:(t,e,i)=>{var s=i(56694),n=i(12117),r=i(58403),o=i(6659),a=i(683),h=i(76846),y=i(72632),v=i(10850),l=i(91963),u=i(7599),c=i(33868),i=new s({Extends:o,initialize:function(t){o.call(this);var e=t.sys.game.config,i=t.sys.settings.loader;this.scene=t,this.systems=t.sys,this.cacheManager=t.sys.cache,this.textureManager=t.sys.textures,this.sceneManager=t.sys.game.scene,h.install(this),this.prefix="",this.path="",this.baseURL="",this.setBaseURL(y(i,"baseURL",e.loaderBaseURL)),this.setPath(y(i,"path",e.loaderPath)),this.setPrefix(y(i,"prefix",e.loaderPrefix)),this.maxParallelDownloads=y(i,"maxParallelDownloads",e.loaderMaxParallelDownloads),this.xhr=c(y(i,"responseType",e.loaderResponseType),y(i,"async",e.loaderAsync),y(i,"user",e.loaderUser),y(i,"password",e.loaderPassword),y(i,"timeout",e.loaderTimeout),y(i,"withCredentials",e.loaderWithCredentials)),this.crossOrigin=y(i,"crossOrigin",e.loaderCrossOrigin),this.imageLoadType=y(i,"imageLoadType",e.loaderImageLoadType),this.localSchemes=y(i,"localScheme",e.loaderLocalScheme),this.totalToLoad=0,this.progress=0,this.list=new r,this.inflight=new r,this.queue=new r,this._deleteQueue=new r,this.totalFailed=0,this.totalComplete=0,this.state=n.LOADER_IDLE,this.multiKeyIndex=0,t.sys.events.once(u.BOOT,this.boot,this),t.sys.events.on(u.START,this.pluginStart,this)},boot:function(){this.systems.events.once(u.DESTROY,this.destroy,this)},pluginStart:function(){this.systems.events.once(u.SHUTDOWN,this.shutdown,this)},setBaseURL:function(t){return""!==(t=void 0===t?"":t)&&"/"!==t.substr(-1)&&(t=t.concat("/")),this.baseURL=t,this},setPath:function(t){return""!==(t=void 0===t?"":t)&&"/"!==t.substr(-1)&&(t=t.concat("/")),this.path=t,this},setPrefix:function(t){return this.prefix=t=void 0===t?"":t,this},setCORS:function(t){return this.crossOrigin=t,this},addFile:function(t){Array.isArray(t)||(t=[t]);for(var e=0;e{var n=i(98611),r=i(33868);t.exports=function(t,e){var i=void 0===t?r():n({},t);if(e)for(var s in e)void 0!==e[s]&&(i[s]=e[s]);return i}},45176:(t,e,i)=>{var s=i(56694),o=i(12117),n=i(683),i=new s({initialize:function(t,e,i,s){var n=[];s.forEach(function(t){t&&n.push(t)}),this.loader=t,this.type=e,this.key=i,this.multiKeyIndex=t.multiKeyIndex++,this.files=n,this.state=o.FILE_PENDING,this.complete=!1,this.pending=n.length,this.failed=0,this.config={},this.baseURL=t.baseURL,this.path=t.path,this.prefix=t.prefix;for(var r=0;r{var r=i(43531);t.exports=function(t,e){var i=r(e,t.xhrSettings),s=new XMLHttpRequest;if(s.open("GET",t.src,i.async,i.user,i.password),s.responseType=t.xhrSettings.responseType,s.timeout=i.timeout,i.headers)for(var n in i.headers)s.setRequestHeader(n,i.headers[n]);return i.header&&i.headerValue&&s.setRequestHeader(i.header,i.headerValue),i.requestedWith&&s.setRequestHeader("X-Requested-With",i.requestedWith),i.overrideMimeType&&s.overrideMimeType(i.overrideMimeType),i.withCredentials&&(s.withCredentials=!0),s.onload=t.onLoad.bind(t,s),s.onerror=t.onError.bind(t,s),s.onprogress=t.onProgress.bind(t),s.send(),s}},33868:t=>{t.exports=function(t,e,i,s,n,r){return{responseType:t=void 0===t?"":t,async:e=void 0===e?!0:e,user:i=void 0===i?"":i,password:s=void 0===s?"":s,timeout:n=void 0===n?0:n,headers:void 0,header:void 0,headerValue:void 0,requestedWith:!1,overrideMimeType:void 0,withCredentials:r=void 0===r?!1:r}}},12117:t=>{t.exports={LOADER_IDLE:0,LOADER_LOADING:1,LOADER_PROCESSING:2,LOADER_COMPLETE:3,LOADER_SHUTDOWN:4,LOADER_DESTROYED:5,FILE_PENDING:10,FILE_LOADING:11,FILE_LOADED:12,FILE_FAILED:13,FILE_PROCESSING:14,FILE_ERRORED:16,FILE_COMPLETE:17,FILE_DESTROYED:18,FILE_POPULATED:19,FILE_PENDING_DESTROY:20}},7398:t=>{t.exports="addfile"},52187:t=>{t.exports="complete"},36627:t=>{t.exports="filecomplete"},81925:t=>{t.exports="filecomplete-"},29774:t=>{t.exports="loaderror"},20943:t=>{t.exports="load"},74693:t=>{t.exports="fileprogress"},71176:t=>{t.exports="postprocess"},88984:t=>{t.exports="progress"},72753:t=>{t.exports="start"},683:(t,e,i)=>{t.exports={ADD:i(7398),COMPLETE:i(52187),FILE_COMPLETE:i(36627),FILE_KEY_COMPLETE:i(81925),FILE_LOAD_ERROR:i(29774),FILE_LOAD:i(20943),FILE_PROGRESS:i(74693),POST_PROCESS:i(71176),PROGRESS:i(88984),START:i(72753)}},46468:(t,e,i)=>{var s=i(56694),n=i(76846),r=i(70806),o=i(683),a=new s({Extends:r,initialize:function(t,e,i,s,n){r.call(this,t,e,i,s,n),this.type="animationJSON"},onProcess:function(){this.loader.once(o.POST_PROCESS,this.onLoadComplete,this),r.prototype.onProcess.call(this)},onLoadComplete:function(){this.loader.systems.anims.fromJSON(this.data)}});n.register("animation",function(t,e,i,s){if(Array.isArray(t))for(var n=0;n{var s=i(56694),n=i(76846),h=i(72632),l=i(42927),u=i(42911),c=i(70806),d=i(45176),a=new s({Extends:d,initialize:function(t,e,i,s,n,r){var o,a=u(e)?(e=h(a=e,"key"),o=new l(t,{key:e,url:h(a,"textureURL"),extension:h(a,"textureExtension","png"),normalMap:h(a,"normalMap"),xhrSettings:h(a,"textureXhrSettings")}),new c(t,{key:e,url:h(a,"atlasURL"),extension:h(a,"atlasExtension","json"),xhrSettings:h(a,"atlasXhrSettings")})):(o=new l(t,e,i,n),new c(t,e,s,r));o.linkFile?d.call(this,t,"atlasjson",e,[o,a,o.linkFile]):d.call(this,t,"atlasjson",e,[o,a])},addToCache:function(){var t,e,i;this.isReadyToProcess()&&(t=this.files[0],e=this.files[1],i=this.files[2]?this.files[2].data:null,this.loader.textureManager.addAtlas(t.key,t.data,e.data,i),e.addToCache(),this.complete=!0)}});n.register("aseprite",function(t,e,i,s,n){var r;if(Array.isArray(t))for(var o=0;o{var s=i(56694),n=i(76846),h=i(72632),l=i(42927),u=i(42911),c=i(70806),d=i(45176),a=new s({Extends:d,initialize:function(t,e,i,s,n,r){var o,a=u(e)?(e=h(a=e,"key"),o=new l(t,{key:e,url:h(a,"textureURL"),extension:h(a,"textureExtension","png"),normalMap:h(a,"normalMap"),xhrSettings:h(a,"textureXhrSettings")}),new c(t,{key:e,url:h(a,"atlasURL"),extension:h(a,"atlasExtension","json"),xhrSettings:h(a,"atlasXhrSettings")})):(o=new l(t,e,i,n),new c(t,e,s,r));o.linkFile?d.call(this,t,"atlasjson",e,[o,a,o.linkFile]):d.call(this,t,"atlasjson",e,[o,a])},addToCache:function(){var t,e,i;this.isReadyToProcess()&&(t=this.files[0],e=this.files[1],i=this.files[2]?this.files[2].data:null,this.loader.textureManager.addAtlas(t.key,t.data,e.data,i),this.complete=!0)}});n.register("atlas",function(t,e,i,s,n){var r;if(Array.isArray(t))for(var o=0;o{var s=i(56694),n=i(76846),h=i(72632),l=i(42927),u=i(42911),c=i(45176),d=i(15297),a=new s({Extends:c,initialize:function(t,e,i,s,n,r){var o,a=u(e)?(e=h(a=e,"key"),o=new l(t,{key:e,url:h(a,"textureURL"),extension:h(a,"textureExtension","png"),normalMap:h(a,"normalMap"),xhrSettings:h(a,"textureXhrSettings")}),new d(t,{key:e,url:h(a,"atlasURL"),extension:h(a,"atlasExtension","xml"),xhrSettings:h(a,"atlasXhrSettings")})):(o=new l(t,e,i,n),new d(t,e,s,r));o.linkFile?c.call(this,t,"atlasxml",e,[o,a,o.linkFile]):c.call(this,t,"atlasxml",e,[o,a])},addToCache:function(){var t,e,i;this.isReadyToProcess()&&(t=this.files[0],e=this.files[1],i=this.files[2]?this.files[2].data:null,this.loader.textureManager.addAtlasXML(t.key,t.data,e.data,i),this.complete=!0)}});n.register("atlasXML",function(t,e,i,s,n){var r;if(Array.isArray(t))for(var o=0;o{var s=i(56694),n=i(12117),o=i(98035),r=i(76846),h=i(72632),l=i(30929),u=i(42911),c=new s({Extends:o,initialize:function(t,e,i,s,n){u(e)&&(e=h(r=e,"key"),s=h(r,"xhrSettings"),n=h(r,"context",n));var r={type:"audio",cache:t.cacheManager.audio,extension:i.type,responseType:"arraybuffer",key:e,url:i.url,xhrSettings:s,config:{context:n}};o.call(this,t,r)},onProcess:function(){this.state=n.FILE_PROCESSING;var e=this;this.config.context.decodeAudioData(this.xhrLoader.response,function(t){e.data=t,e.onProcessComplete()},function(t){e.onProcessError()}),this.config.context=null}});c.create=function(t,e,i,s,n){var r=t.systems.game,o=r.config.audio,a=r.device.audio,i=(u(e)&&(i=h(e,"url",[]),s=h(e,"config",{})),c.getAudioURL(r,i));return i?a.webAudio&&!o.disableWebAudio?new c(t,e,i,n,r.sound.context):new l(t,e,i,s):null},c.getAudioURL=function(t,e){Array.isArray(e)||(e=[e]);for(var i=0;i{var l=i(67448),s=i(56694),n=i(76846),u=i(72632),c=i(42911),d=i(70806),p=i(45176),f=new s({Extends:p,initialize:function(t,e,i,s,n,r,o){var a,h;c(e)&&(e=u(h=e,"key"),i=u(h,"jsonURL"),s=u(h,"audioURL"),n=u(h,"audioConfig"),r=u(h,"audioXhrSettings"),o=u(h,"jsonXhrSettings")),s?(h=l.create(t,e,s,n,r))&&(a=new d(t,e,i,o),p.call(this,t,"audiosprite",e,[h,a]),this.config.resourceLoad=!1):(a=new d(t,e,i,o),p.call(this,t,"audiosprite",e,[a]),this.config.resourceLoad=!0,this.config.audioConfig=n,this.config.audioXhrSettings=r)},onFileComplete:function(t){var e,i,s;-1!==this.files.indexOf(t)&&(this.pending--,this.config.resourceLoad)&&"json"===t.type&&t.data.hasOwnProperty("resources")&&(e=t.data.resources,i=u(this.config,"audioConfig"),s=u(this.config,"audioXhrSettings"),t=l.create(this.loader,t.key,e,i,s))&&(this.addToMultiFile(t),this.loader.addFile(t))},addToCache:function(){var t,e;this.isReadyToProcess()&&(t=this.files[0],e=this.files[1],t.addToCache(),e.addToCache(),this.complete=!0)}});n.register("audioSprite",function(t,e,i,s,n,r){var o,a=this.systems.game,h=a.config.audio,a=a.device.audio;if(!(h&&h.noAudio||!a.webAudio&&!a.audioData))if(Array.isArray(t))for(var l=0;l{var s=i(56694),n=i(12117),a=i(98035),r=i(76846),h=i(72632),l=i(42911),o=new s({Extends:a,initialize:function(t,e,i,s,n){var r="bin",o=(l(e)&&(e=h(o=e,"key"),i=h(o,"url"),s=h(o,"xhrSettings"),r=h(o,"extension",r),n=h(o,"dataType",n)),{type:"binary",cache:t.cacheManager.binary,extension:r,responseType:"arraybuffer",key:e,url:i,xhrSettings:s,config:{dataType:n}});a.call(this,t,o)},onProcess:function(){this.state=n.FILE_PROCESSING;var t=this.config.dataType;this.data=t?new t(this.xhrLoader.response):this.xhrLoader.response,this.onProcessComplete()}});r.register("binary",function(t,e,i,s){if(Array.isArray(t))for(var n=0;n{var s=i(56694),n=i(76846),h=i(72632),l=i(42927),u=i(42911),c=i(45176),r=i(31476),d=i(15297),a=new s({Extends:c,initialize:function(t,e,i,s,n,r){var o,a=u(e)?(e=h(a=e,"key"),o=new l(t,{key:e,url:h(a,"textureURL"),extension:h(a,"textureExtension","png"),normalMap:h(a,"normalMap"),xhrSettings:h(a,"textureXhrSettings")}),new d(t,{key:e,url:h(a,"fontDataURL"),extension:h(a,"fontDataExtension","xml"),xhrSettings:h(a,"fontDataXhrSettings")})):(o=new l(t,e,i,n),new d(t,e,s,r));o.linkFile?c.call(this,t,"bitmapfont",e,[o,a,o.linkFile]):c.call(this,t,"bitmapfont",e,[o,a])},addToCache:function(){var t,e,i;this.isReadyToProcess()&&(t=this.files[0],i=this.files[1],t.addToCache(),e=t.cache.get(t.key),i=r(i.data,t.cache.getFrame(t.key),0,0,e),this.loader.cacheManager.bitmapFont.add(t.key,{data:i,texture:t.key,frame:null}),this.complete=!0)}});n.register("bitmapFont",function(t,e,i,s,n){var r;if(Array.isArray(t))for(var o=0;o{var s=i(56694),n=i(12117),o=i(98035),r=i(76846),a=i(72632),h=i(42911),l=new s({Extends:o,initialize:function(t,e,i,s){var n="css",r=(h(e)&&(e=a(r=e,"key"),i=a(r,"url"),s=a(r,"xhrSettings"),n=a(r,"extension",n)),{type:"script",cache:!1,extension:n,responseType:"text",key:e,url:i,xhrSettings:s});o.call(this,t,r)},onProcess:function(){this.state=n.FILE_PROCESSING,this.data=document.createElement("style"),this.data.defer=!1,this.data.innerHTML=this.xhrLoader.responseText,document.head.appendChild(this.data),this.onProcessComplete()}});r.register("css",function(t,e,i){if(Array.isArray(t))for(var s=0;s{var u=i(73152),p=i(40612),s=i(56694),n=i(76846),f=i(72632),c=i(42927),d=i(42911),r=i(70806),g=i(67409),y=i(30657),v=i(80802),o=i(45176),m=i(24904),x=new s({Extends:o,initialize:function(t,e,i,s){var n;i.multiAtlasURL?(n=new r(t,{key:e,url:i.multiAtlasURL,xhrSettings:s,config:i}),o.call(this,t,"texture",e,[n])):(n=i.textureURL.substr(i.textureURL.length-3),i.type||(i.type="ktx"===n.toLowerCase()?"KTX":"PVR"),n=new p(t,{key:e,url:i.textureURL,extension:n,xhrSettings:s,config:i}),i.atlasURL?(s=new r(t,{key:e,url:i.atlasURL,xhrSettings:s,config:i}),o.call(this,t,"texture",e,[n,s])):o.call(this,t,"texture",e,[n])),this.config=i},onFileComplete:function(t){if(-1!==this.files.indexOf(t)&&(this.pending--,this.config.multiAtlasURL)&&"json"===t.type&&t.data.hasOwnProperty("textures")){var e=t.data.textures,t=this.config,i=this.loader,s=i.baseURL,n=i.path,r=i.prefix,o=f(t,"multiBaseURL",this.baseURL),a=f(t,"multiPath",this.path),h=f(t,"prefix",this.prefix),l=f(t,"textureXhrSettings");o&&i.setBaseURL(o),a&&i.setPath(a),h&&i.setPrefix(h);for(var u=0;u{var s=i(56694),n=i(12117),a=i(98035),r=i(76846),h=i(72632),l=i(42911),u=i(31053),o=new s({Extends:a,initialize:function(t,e,i,s,n){var r="glsl",o=(l(e)?(e=h(o=e,"key"),i=h(o,"url"),s=h(o,"shaderType","fragment"),n=h(o,"xhrSettings"),r=h(o,"extension",r)):void 0===s&&(s="fragment"),{type:"glsl",cache:t.cacheManager.shader,extension:r,responseType:"text",key:e,url:i,config:{shaderType:s},xhrSettings:n});a.call(this,t,o)},onProcess:function(){this.state=n.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()},addToCache:function(){var t=this.data.split("\n"),e=this.extractBlock(t,0);if(e)for(;e;){var i,s=this.getShaderName(e.header),n=this.getShaderType(e.header),r=this.getShaderUniforms(e.header),o=e.shader;this.cache.has(s)?(i=this.cache.get(s),"fragment"===n?i.fragmentSrc=o:i.vertexSrc=o,i.uniforms||(i.uniforms=r)):"fragment"===n?this.cache.add(s,new u(s,o,"",r)):this.cache.add(s,new u(s,"",o,r)),e=this.extractBlock(t,e.offset)}else"fragment"===this.config.shaderType?this.cache.add(this.key,new u(this.key,this.data)):this.cache.add(this.key,new u(this.key,"",this.data))},getShaderName:function(t){for(var e=0;e{var s=i(56694),n=i(683),r=i(98035),o=i(72632),a=i(30750),h=i(42911),i=new s({Extends:r,initialize:function(t,e,i,s){h(e)&&(e=o(n=e,"key"),s=o(n,"config",s));var n={type:"audio",cache:t.cacheManager.audio,extension:i.type,key:e,url:i.url,config:s};r.call(this,t,n),this.locked="ontouchstart"in window,this.loaded=!1,this.filesLoaded=0,this.filesTotal=0},onLoad:function(){this.loaded||(this.loaded=!0,this.loader.nextFile(this,!0))},onError:function(){for(var t=0;t{var s=i(56694),n=i(12117),o=i(98035),r=i(76846),a=i(72632),h=i(42911),l=new s({Extends:o,initialize:function(t,e,i,s){var n="html",r=(h(e)&&(e=a(r=e,"key"),i=a(r,"url"),s=a(r,"xhrSettings"),n=a(r,"extension",n)),{type:"text",cache:t.cacheManager.html,extension:n,responseType:"text",key:e,url:i,xhrSettings:s});o.call(this,t,r)},onProcess:function(){this.state=n.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()}});r.register("html",function(t,e,i){if(Array.isArray(t))for(var s=0;s{var s=i(56694),r=i(12117),h=i(98035),n=i(76846),l=i(72632),u=i(42911),o=new s({Extends:h,initialize:function(t,e,i,s,n,r){void 0===s&&(s=512),void 0===n&&(n=512);var o="html",a=(u(e)&&(e=l(a=e,"key"),i=l(a,"url"),r=l(a,"xhrSettings"),o=l(a,"extension",o),s=l(a,"width",s),n=l(a,"height",n)),{type:"html",cache:t.textureManager,extension:o,responseType:"text",key:e,url:i,xhrSettings:r,config:{width:s,height:n}});h.call(this,t,a)},onProcess:function(){this.state=r.FILE_PROCESSING;var t=this.config.width,e=this.config.height,i=[],e=(i.push(''),i.push(''),i.push(''),i.push(this.xhrLoader.responseText),i.push(""),i.push(""),i.push(""),[i.join("\n")]),s=this;try{var n=new window.Blob(e,{type:"image/svg+xml;charset=utf-8"})}catch(t){return s.state=r.FILE_ERRORED,void s.onProcessComplete()}this.data=new Image,this.data.crossOrigin=this.crossOrigin,this.data.onload=function(){h.revokeObjectURL(s.data),s.onProcessComplete()},this.data.onerror=function(){h.revokeObjectURL(s.data),s.onProcessError()},h.createObjectURL(this.data,n,"image/svg+xml")},addToCache:function(){this.cache.addImage(this.key,this.data)}});n.register("htmlTexture",function(t,e,i,s,n){if(Array.isArray(t))for(var r=0;r{var s=i(56694),n=i(12117),l=i(98035),r=i(76846),u=i(72632),c=i(42911),o=i(30750),a=new s({Extends:l,initialize:function t(e,i,s,n,r){var o,a="png",h=(c(i)&&(i=u(h=i,"key"),s=u(h,"url"),o=u(h,"normalMap"),n=u(h,"xhrSettings"),a=u(h,"extension",a),r=u(h,"frameConfig")),Array.isArray(s)&&(o=s[1],s=s[0]),{type:"image",cache:e.textureManager,extension:a,responseType:"blob",key:i,url:s,xhrSettings:n,config:r});l.call(this,e,h),o&&((a=new t(e,this.key,o,n,r)).type="normalMap",this.setLink(a),e.addFile(a)),this.useImageElementLoad="HTMLImageElement"===e.imageLoadType,this.useImageElementLoad&&(this.load=this.loadImage,this.onProcess=this.onProcessImage)},onProcess:function(){this.state=n.FILE_PROCESSING,this.data=new Image,this.data.crossOrigin=this.crossOrigin;var t=this;this.data.onload=function(){l.revokeObjectURL(t.data),t.onProcessComplete()},this.data.onerror=function(){l.revokeObjectURL(t.data),t.onProcessError()},l.createObjectURL(this.data,this.xhrLoader.response,"image/png")},onProcessImage:function(){var t=this.state;this.state=n.FILE_PROCESSING,t===n.FILE_LOADED?this.onProcessComplete():this.onProcessError()},loadImage:function(){var t;this.state=n.FILE_LOADING,this.src=o(this,this.loader.baseURL),0!==this.src.indexOf("data:")&&(this.data=new Image,this.data.crossOrigin=this.crossOrigin,(t=this).data.onload=function(){t.state=n.FILE_LOADED,t.loader.nextFile(t,!0)},this.data.onerror=function(){t.loader.nextFile(t,!1)},this.data.src=this.src)},addToCache:function(){var t=this.linkFile;t?t.state>=n.FILE_COMPLETE&&("normalMap"===this.type?this.cache.addImage(this.key,t.data,this.data):this.cache.addImage(this.key,this.data,t.data)):this.cache.addImage(this.key,this.data)}});r.register("image",function(t,e,i){if(Array.isArray(t))for(var s=0;s{var s=i(56694),a=i(12117),h=i(98035),n=i(76846),l=i(72632),u=i(10850),c=i(42911),r=new s({Extends:h,initialize:function(t,e,i,s,n){var r="json",o=(c(e)&&(e=l(o=e,"key"),i=l(o,"url"),s=l(o,"xhrSettings"),r=l(o,"extension",r),n=l(o,"dataKey",n)),{type:"json",cache:t.cacheManager.json,extension:r,responseType:"text",key:e,url:i,xhrSettings:s,config:n});h.call(this,t,o),c(i)&&(this.data=n?u(i,n):i,this.state=a.FILE_POPULATED)},onProcess:function(){if(this.state!==a.FILE_POPULATED){this.state=a.FILE_PROCESSING;try{var t=JSON.parse(this.xhrLoader.responseText)}catch(t){throw this.onProcessError(),t}var e=this.config;this.data="string"==typeof e?u(t,e,t):t}this.onProcessComplete()}});n.register("json",function(t,e,i,s){if(Array.isArray(t))for(var n=0;n{var s=i(56694),n=i(76846),p=i(72632),f=i(42927),h=i(42911),l=i(70806),u=i(45176),a=new s({Extends:u,initialize:function(t,e,i,s,n,r,o){h(e)&&(e=p(a=e,"key"),i=p(a,"url",!1)?p(a,"url"):p(a,"atlasURL"),r=p(a,"xhrSettings"),s=p(a,"path"),n=p(a,"baseURL"),o=p(a,"textureXhrSettings"));var a=new l(t,e,i,r);u.call(this,t,"multiatlas",e,[a]),this.config.path=s,this.config.baseURL=n,this.config.textureXhrSettings=o},onFileComplete:function(t){if(-1!==this.files.indexOf(t)&&(this.pending--,"json"===t.type)&&t.data.hasOwnProperty("textures")){var e=t.data.textures,t=this.config,i=this.loader,s=i.baseURL,n=i.path,r=i.prefix,o=p(t,"baseURL",this.baseURL),a=p(t,"path",this.path),h=p(t,"prefix",this.prefix),l=p(t,"textureXhrSettings");i.setBaseURL(o),i.setPath(a),i.setPrefix(h);for(var u=0;u{var s=i(56694),n=i(76846),l=i(72632),u=i(42911),c=i(45176),d=i(55188),r=new s({Extends:c,initialize:function(t,e,i,s){var n,r="js",o=[];u(e)&&(e=l(n=e,"key"),i=l(n,"url"),s=l(n,"xhrSettings"),r=l(n,"extension",r)),Array.isArray(i)||(i=[i]);for(var a=0;a{var s=i(56694),n=i(76846),u=i(72632),c=i(42911),d=i(45176),r=i(27291),o=i(76799),p=i(86897),a=new s({Extends:d,initialize:function(t,e,i,s,n,r){var o,a,h,l=t.cacheManager.obj;c(e)?(e=u(h=e,"key"),o=new p(t,{key:e,type:"obj",cache:l,url:u(h,"url"),extension:u(h,"extension","obj"),xhrSettings:u(h,"xhrSettings"),config:{flipUV:u(h,"flipUV",n)}}),(s=u(h,"matURL"))&&(a=new p(t,{key:e,type:"mat",cache:l,url:s,extension:u(h,"matExtension","mat"),xhrSettings:u(h,"xhrSettings")}))):(o=new p(t,{key:e,url:i,type:"obj",cache:l,extension:"obj",xhrSettings:r,config:{flipUV:n}}),s&&(a=new p(t,{key:e,url:s,type:"mat",cache:l,extension:"mat",xhrSettings:r}))),d.call(this,t,"obj",e,[o,a])},addToCache:function(){var t,e,i;this.isReadyToProcess()&&(t=this.files[0],e=this.files[1],i=r(t.data,t.config.flipUV),e&&(i.materials=o(e.data)),t.cache.add(t.key,i),this.complete=!0)}});n.register("obj",function(t,e,i,s,n){var r;if(Array.isArray(t))for(var o=0;o{var s=i(56694),n=i(12117),r=i(76846),o=i(70806),a=new s({Extends:o,initialize:function(t,e,i,s,n){o.call(this,t,e,i,s,n),this.type="packfile"},onProcess:function(){var t;this.state!==n.FILE_POPULATED&&(this.state=n.FILE_PROCESSING,this.data=JSON.parse(this.xhrLoader.responseText)),this.data.hasOwnProperty("files")&&this.config&&((t={})[this.config]=this.data,this.data=t),this.loader.addPack(this.data,this.config),this.onProcessComplete()}});r.register("pack",function(t,e,i,s){if(Array.isArray(t))for(var n=0;n{var s=i(56694),h=i(12117),l=i(98035),n=i(76846),u=i(72632),c=i(42911),o=new s({Extends:l,initialize:function(t,e,i,s,n,r){var o="js",a=(c(e)&&(e=u(a=e,"key"),i=u(a,"url"),r=u(a,"xhrSettings"),o=u(a,"extension",o),s=u(a,"start"),n=u(a,"mapping")),{type:"plugin",cache:!1,extension:o,responseType:"text",key:e,url:i,xhrSettings:r,config:{start:s,mapping:n}});l.call(this,t,a),"function"==typeof i&&(this.data=i,this.state=h.FILE_POPULATED)},onProcess:function(){var t=this.loader.systems.plugins,e=this.config,i=u(e,"start",!1),e=u(e,"mapping",null);this.state===h.FILE_POPULATED?t.install(this.key,this.data,i,e):(this.state=h.FILE_PROCESSING,this.data=document.createElement("script"),this.data.language="javascript",this.data.type="text/javascript",this.data.defer=!1,this.data.text=this.xhrLoader.responseText,document.head.appendChild(this.data),t=t.install(this.key,window[this.key],i,e),(i||e)&&(this.loader.systems[e]=t,this.loader.scene[e]=t)),this.onProcessComplete()}});n.register("plugin",function(t,e,i,s,n){if(Array.isArray(t))for(var r=0;r{var s=i(56694),d=i(12117),p=i(98035),n=i(76846),a=i(72632),h=i(42911),r=new s({Extends:p,initialize:function(t,e,i,s,n){var r="svg",o=(h(e)&&(e=a(o=e,"key"),i=a(o,"url"),s=a(o,"svgConfig",{}),n=a(o,"xhrSettings"),r=a(o,"extension",r)),{type:"svg",cache:t.textureManager,extension:r,responseType:"text",key:e,url:i,xhrSettings:n,config:{width:a(s,"width"),height:a(s,"height"),scale:a(s,"scale")}});p.call(this,t,o)},onProcess:function(){this.state=d.FILE_PROCESSING;var t=this.xhrLoader.responseText,e=[t],i=this.config.width,s=this.config.height,n=this.config.scale;t:if(i&&s||n){var r=(new DOMParser).parseFromString(t,"text/xml").getElementsByTagName("svg")[0],o=r.hasAttribute("viewBox"),a=parseFloat(r.getAttribute("width")),h=parseFloat(r.getAttribute("height"));if(!o&&a&&h?r.setAttribute("viewBox","0 0 "+a+" "+h):!o||a||h||(a=(o=r.getAttribute("viewBox").split(/\s+|,/))[2],h=o[3]),n){if(!a||!h)break t;i=a*n,s=h*n}r.setAttribute("width",i.toString()+"px"),r.setAttribute("height",s.toString()+"px"),e=[(new XMLSerializer).serializeToString(r)]}try{var l=new window.Blob(e,{type:"image/svg+xml;charset=utf-8"})}catch(t){return void this.onProcessError()}this.data=new Image,this.data.crossOrigin=this.crossOrigin;var u=this,c=!1;this.data.onload=function(){c||p.revokeObjectURL(u.data),u.onProcessComplete()},this.data.onerror=function(){c?u.onProcessError():(c=!0,p.revokeObjectURL(u.data),u.data.src="data:image/svg+xml,"+encodeURIComponent(e.join("")))},p.createObjectURL(this.data,l,"image/svg+xml")},addToCache:function(){this.cache.addImage(this.key,this.data)}});n.register("svg",function(t,e,i,s){if(Array.isArray(t))for(var n=0;n{var s=i(56694),n=i(12117),o=i(98035),r=i(76846),a=i(72632),h=i(42911),l=new s({Extends:o,initialize:function(t,e,i,s){var n="js",r=(h(e)&&(e=a(r=e,"key"),i=a(r,"url"),s=a(r,"xhrSettings"),n=a(r,"extension",n)),{type:"text",extension:n,responseType:"text",key:e,url:i,xhrSettings:s});o.call(this,t,r)},onProcess:function(){this.state=n.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()},addToCache:function(){var t=this.data.concat("(function(){\nreturn new "+this.key+"();\n}).call(this);"),e=eval;this.loader.sceneManager.add(this.key,e(t)),this.complete=!0}});r.register("sceneFile",function(t,e,i){if(Array.isArray(t))for(var s=0;s{var s=i(56694),h=i(12117),l=i(98035),n=i(76846),u=i(72632),c=i(42911),o=new s({Extends:l,initialize:function(t,e,i,s,n,r){var o="js",a=(c(e)&&(e=u(a=e,"key"),i=u(a,"url"),r=u(a,"xhrSettings"),o=u(a,"extension",o),s=u(a,"systemKey"),n=u(a,"sceneKey")),{type:"scenePlugin",cache:!1,extension:o,responseType:"text",key:e,url:i,xhrSettings:r,config:{systemKey:s,sceneKey:n}});l.call(this,t,a),"function"==typeof i&&(this.data=i,this.state=h.FILE_POPULATED)},onProcess:function(){var t=this.loader.systems.plugins,e=this.config,i=this.key,s=u(e,"systemKey",i),e=u(e,"sceneKey",i);this.state===h.FILE_POPULATED?t.installScenePlugin(s,this.data,e,this.loader.scene,!0):(this.state=h.FILE_PROCESSING,this.data=document.createElement("script"),this.data.language="javascript",this.data.type="text/javascript",this.data.defer=!1,this.data.text=this.xhrLoader.responseText,document.head.appendChild(this.data),t.installScenePlugin(s,window[this.key],e,this.loader.scene,!0)),this.onProcessComplete()}});n.register("scenePlugin",function(t,e,i,s,n){if(Array.isArray(t))for(var r=0;r{var s=i(56694),n=i(12117),a=i(98035),r=i(76846),h=i(72632),l=i(42911),o=new s({Extends:a,initialize:function(t,e,i,s,n){var r="js",o=(l(e)?(e=h(o=e,"key"),i=h(o,"url"),s=h(o,"type","script"),n=h(o,"xhrSettings"),r=h(o,"extension",r)):void 0===s&&(s="script"),{type:s,cache:!1,extension:r,responseType:"text",key:e,url:i,xhrSettings:n});a.call(this,t,o)},onProcess:function(){this.state=n.FILE_PROCESSING,this.data=document.createElement("script"),this.data.language="javascript",this.data.type="text/javascript",this.data.defer=!1,this.data.text=this.xhrLoader.responseText,document.head.appendChild(this.data),this.onProcessComplete()}});r.register("script",function(t,e,i,s){if(Array.isArray(t))for(var n=0;n{var s=i(56694),n=i(12117),r=i(76846),o=i(42927),a=new s({Extends:o,initialize:function(t,e,i,s,n){o.call(this,t,e,i,n,s),this.type="spritesheet"},addToCache:function(){var t=this.linkFile;t?t.state>=n.FILE_COMPLETE&&("normalMap"===this.type?this.cache.addSpriteSheet(this.key,t.data,this.config,this.data):this.cache.addSpriteSheet(this.key,this.data,this.config,t.data)):this.cache.addSpriteSheet(this.key,this.data,this.config)}});r.register("spritesheet",function(t,e,i,s){if(Array.isArray(t))for(var n=0;n{var s=i(56694),n=i(12117),h=i(98035),r=i(76846),l=i(72632),u=i(42911),o=new s({Extends:h,initialize:function(t,e,i,s){var n="text",r="txt",o=t.cacheManager.text,a=(u(e)&&(e=l(a=e,"key"),i=l(a,"url"),s=l(a,"xhrSettings"),r=l(a,"extension",r),n=l(a,"type",n),o=l(a,"cache",o)),{type:n,cache:o,extension:r,responseType:"text",key:e,url:i,xhrSettings:s});h.call(this,t,a)},onProcess:function(){this.state=n.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()}});r.register("text",function(t,e,i){if(Array.isArray(t))for(var s=0;s{var s=i(56694),n=i(12117),o=i(98035),r=i(76846),a=i(72632),h=i(42911),l=i(93560),u=new s({Extends:o,initialize:function(t,e,i,s){var n="csv",r=(h(e)&&(e=a(r=e,"key"),i=a(r,"url"),s=a(r,"xhrSettings"),n=a(r,"extension",n)),{type:"tilemapCSV",cache:t.cacheManager.tilemap,extension:n,responseType:"text",key:e,url:i,xhrSettings:s});o.call(this,t,r),this.tilemapFormat=l.CSV},onProcess:function(){this.state=n.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()},addToCache:function(){var t={format:this.tilemapFormat,data:this.data};this.cache.add(this.key,t)}});r.register("tilemapCSV",function(t,e,i){if(Array.isArray(t))for(var s=0;s{var s=i(56694),n=i(76846),r=i(70806),o=i(93560),a=new s({Extends:r,initialize:function(t,e,i,s){r.call(this,t,e,i,s),this.type="tilemapJSON",this.cache=t.cacheManager.tilemap},addToCache:function(){var t={format:o.WELTMEISTER,data:this.data};this.cache.add(this.key,t)}});n.register("tilemapImpact",function(t,e,i){if(Array.isArray(t))for(var s=0;s{var s=i(56694),n=i(76846),r=i(70806),o=i(93560),a=new s({Extends:r,initialize:function(t,e,i,s){r.call(this,t,e,i,s),this.type="tilemapJSON",this.cache=t.cacheManager.tilemap},addToCache:function(){var t={format:o.TILED_JSON,data:this.data};this.cache.add(this.key,t)}});n.register("tilemapTiledJSON",function(t,e,i){if(Array.isArray(t))for(var s=0;s{var s=i(56694),n=i(76846),h=i(72632),l=i(42927),u=i(42911),c=i(45176),d=i(86897),a=new s({Extends:c,initialize:function(t,e,i,s,n,r){var o,a=u(e)?(e=h(a=e,"key"),o=new l(t,{key:e,url:h(a,"textureURL"),extension:h(a,"textureExtension","png"),normalMap:h(a,"normalMap"),xhrSettings:h(a,"textureXhrSettings")}),new d(t,{key:e,url:h(a,"atlasURL"),extension:h(a,"atlasExtension","txt"),xhrSettings:h(a,"atlasXhrSettings")})):(o=new l(t,e,i,n),new d(t,e,s,r));o.linkFile?c.call(this,t,"unityatlas",e,[o,a,o.linkFile]):c.call(this,t,"unityatlas",e,[o,a])},addToCache:function(){var t,e,i;this.isReadyToProcess()&&(t=this.files[0],e=this.files[1],i=this.files[2]?this.files[2].data:null,this.loader.textureManager.addUnityAtlas(t.key,t.data,e.data,i),this.complete=!0)}});n.register("unityAtlas",function(t,e,i,s,n){var r;if(Array.isArray(t))for(var o=0;o{var s=i(56694),n=i(12117),r=i(98035),o=i(76846),a=i(30750),h=i(72632),l=i(42911),u=new s({Extends:r,initialize:function(t,e,i,s){void 0===s&&(s=!1),l(e)&&(e=h(n=e,"key"),i=h(n,"url",[]),s=h(n,"noAudio",!1));var n=t.systems.game.device.video.getVideoURL(i),i={type:"video",cache:t.cacheManager.video,extension:n.type,key:e,url:n.url,config:{noAudio:s}};r.call(this,t,i)},onProcess:function(){this.data={url:this.src,noAudio:this.config.noAudio,crossOrigin:this.crossOrigin},this.onProcessComplete()},load:function(){this.src=a(this,this.loader.baseURL),this.state=n.FILE_LOADED,this.loader.nextFile(this,!0)}});o.register("video",function(t,e,i){if(Array.isArray(t))for(var s=0;s{var s=i(56694),n=i(12117),o=i(98035),r=i(76846),a=i(72632),h=i(42911),l=i(89200),u=new s({Extends:o,initialize:function(t,e,i,s){var n="xml",r=(h(e)&&(e=a(r=e,"key"),i=a(r,"url"),s=a(r,"xhrSettings"),n=a(r,"extension",n)),{type:"xml",cache:t.cacheManager.xml,extension:n,responseType:"text",key:e,url:i,xhrSettings:s});o.call(this,t,r)},onProcess:function(){this.state=n.FILE_PROCESSING,this.data=l(this.xhrLoader.responseText),this.data?this.onProcessComplete():this.onProcessError()}});r.register("xml",function(t,e,i){if(Array.isArray(t))for(var s=0;s{t.exports={AnimationJSONFile:i(46468),AsepriteFile:i(31648),AtlasJSONFile:i(73152),AtlasXMLFile:i(24616),AudioFile:i(67448),AudioSpriteFile:i(66109),BinaryFile:i(40612),BitmapFontFile:i(54565),CompressedTextureFile:i(47375),CSSFile:i(99898),GLSLFile:i(46568),HTML5AudioFile:i(30929),HTMLFile:i(77459),HTMLTextureFile:i(9755),ImageFile:i(42927),JSONFile:i(70806),MultiAtlasFile:i(80802),MultiScriptFile:i(39034),OBJFile:i(85527),PackFile:i(3616),PluginFile:i(12217),SceneFile:i(95171),ScenePluginFile:i(82458),ScriptFile:i(55188),SpriteSheetFile:i(33536),SVGFile:i(4474),TextFile:i(86897),TilemapCSVFile:i(58673),TilemapImpactFile:i(98896),TilemapJSONFile:i(50563),UnityAtlasFile:i(82857),VideoFile:i(22833),XMLFile:i(15297)}},95695:(t,e,i)=>{var s=i(12117),i=i(98611)(!1,{Events:i(683),FileTypes:i(34034),File:i(98035),FileTypesManager:i(76846),GetURL:i(30750),LoaderPlugin:i(67285),MergeXHRSettings:i(43531),MultiFile:i(45176),XHRLoader:i(88490),XHRSettings:i(33868)},s);t.exports=i},26042:t=>{t.exports=function(t){for(var e=0,i=0;i{var s=i(8034);t.exports=function(t,e){return s(t)/s(e)/s(t-e)}},17489:t=>{t.exports=function(t,e){return Math.floor(Math.random()*(e-t+1)+t)}},14976:t=>{t.exports=function(t,e,i,s,n){var e=.5*(s-e),n=.5*(n-i),r=t*t;return t*r*(2*i-2*s+e+n)+(-3*i+3*s-2*e-n)*r+e*t+i}},89129:t=>{t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=10);i=Math.pow(i,-e);return Math.ceil(t*i)/i}},82897:t=>{t.exports=function(t,e,i){return Math.max(e,Math.min(i,t))}},75606:(t,e,i)=>{var s=i(83392);t.exports=function(t){return t*s.DEG_TO_RAD}},767:t=>{t.exports=function(t,e){return Math.abs(t-e)}},9849:(t,e,i)=>{var y=i(82897),s=i(56694),n=i(16650),r=i(72283),o=new n,i=new s({initialize:function t(e,i,s,n){void 0===i&&(i=0),void 0===s&&(s=0),void 0===n&&(n=t.DefaultOrder),this._x=e=void 0===e?0:e,this._y=i,this._z=s,this._order=n,this.onChangeCallback=r},x:{get:function(){return this._x},set:function(t){this._x=t,this.onChangeCallback(this)}},y:{get:function(){return this._y},set:function(t){this._y=t,this.onChangeCallback(this)}},z:{get:function(){return this._z},set:function(t){this._z=t,this.onChangeCallback(this)}},order:{get:function(){return this._order},set:function(t){this._order=t,this.onChangeCallback(this)}},set:function(t,e,i,s){return void 0===s&&(s=this._order),this._x=t,this._y=e,this._z=i,this._order=s,this.onChangeCallback(this),this},copy:function(t){return this.set(t.x,t.y,t.z,t.order)},setFromQuaternion:function(t,e,i){return void 0===e&&(e=this._order),void 0===i&&(i=!1),o.fromQuat(t),this.setFromRotationMatrix(o,e,i)},setFromRotationMatrix:function(t,e,i){void 0===e&&(e=this._order),void 0===i&&(i=!1);var t=t.val,s=t[0],n=t[4],r=t[8],o=t[1],a=t[5],h=t[9],l=t[2],u=t[6],c=t[10],d=0,p=0,f=0,g=.99999;switch(e){case"XYZ":p=Math.asin(y(r,-1,1)),Math.abs(r){t.exports=function(t){if(0===t)return 1;for(var e=t;--t;)e*=t;return e}},61616:t=>{t.exports=function(t,e){return Math.random()*(e-t)+t}},60679:t=>{t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=10);i=Math.pow(i,-e);return Math.floor(t*i)/i}},91806:(t,e,i)=>{var s=i(82897);t.exports=function(t,e,i){return(i-e)*(t=s(t,0,1))+e}},79366:t=>{t.exports=function(t,e){return t/e/1e3}},43776:t=>{t.exports=function(t){return t==parseFloat(t)?!(t%2):void 0}},58442:t=>{t.exports=function(t){return t===parseFloat(t)?!(t%2):void 0}},42798:t=>{t.exports=function(t,e,i){return(e-t)*i+t}},61072:t=>{t.exports=function(t,e,i){return void 0===i&&(i=0),t.clone().lerp(e,i)}},5341:(t,e,i)=>{var s=new(i(56694))({initialize:function(t){this.val=new Float32Array(9),t?this.copy(t):this.identity()},clone:function(){return new s(this)},set:function(t){return this.copy(t)},copy:function(t){var e=this.val,t=t.val;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],this},fromMat4:function(t){var t=t.val,e=this.val;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[4],e[4]=t[5],e[5]=t[6],e[6]=t[8],e[7]=t[9],e[8]=t[10],this},fromArray:function(t){var e=this.val;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],this},identity:function(){var t=this.val;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,this},transpose:function(){var t=this.val,e=t[1],i=t[2],s=t[5];return t[1]=t[3],t[2]=t[6],t[3]=e,t[5]=t[7],t[6]=i,t[7]=s,this},invert:function(){var t=this.val,e=t[0],i=t[1],s=t[2],n=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=l*r-o*h,c=-l*n+o*a,d=h*n-r*a,p=e*u+i*c+s*d;return p?(t[0]=u*(p=1/p),t[1]=(-l*i+s*h)*p,t[2]=(o*i-s*r)*p,t[3]=c*p,t[4]=(l*e-s*a)*p,t[5]=(-o*e+s*n)*p,t[6]=d*p,t[7]=(-h*e+i*a)*p,t[8]=(r*e-i*n)*p,this):null},adjoint:function(){var t=this.val,e=t[0],i=t[1],s=t[2],n=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8];return t[0]=r*l-o*h,t[1]=s*h-i*l,t[2]=i*o-s*r,t[3]=o*a-n*l,t[4]=e*l-s*a,t[5]=s*n-e*o,t[6]=n*h-r*a,t[7]=i*a-e*h,t[8]=e*r-i*n,this},determinant:function(){var t=this.val,e=t[0],i=t[1],s=t[2],n=t[3],r=t[4],o=t[5],a=t[6],h=t[7],t=t[8];return e*(t*r-o*h)+i*(-t*n+o*a)+s*(h*n-r*a)},multiply:function(t){var e=this.val,i=e[0],s=e[1],n=e[2],r=e[3],o=e[4],a=e[5],h=e[6],l=e[7],u=e[8],t=t.val,c=t[0],d=t[1],p=t[2],f=t[3],g=t[4],y=t[5],v=t[6],m=t[7],t=t[8];return e[0]=c*i+d*r+p*h,e[1]=c*s+d*o+p*l,e[2]=c*n+d*a+p*u,e[3]=f*i+g*r+y*h,e[4]=f*s+g*o+y*l,e[5]=f*n+g*a+y*u,e[6]=v*i+m*r+t*h,e[7]=v*s+m*o+t*l,e[8]=v*n+m*a+t*u,this},translate:function(t){var e=this.val,i=t.x,t=t.y;return e[6]=i*e[0]+t*e[3]+e[6],e[7]=i*e[1]+t*e[4]+e[7],e[8]=i*e[2]+t*e[5]+e[8],this},rotate:function(t){var e=this.val,i=e[0],s=e[1],n=e[2],r=e[3],o=e[4],a=e[5],h=Math.sin(t),t=Math.cos(t);return e[0]=t*i+h*r,e[1]=t*s+h*o,e[2]=t*n+h*a,e[3]=t*r-h*i,e[4]=t*o-h*s,e[5]=t*a-h*n,this},scale:function(t){var e=this.val,i=t.x,t=t.y;return e[0]=i*e[0],e[1]=i*e[1],e[2]=i*e[2],e[3]=t*e[3],e[4]=t*e[4],e[5]=t*e[5],this},fromQuat:function(t){var e=t.x,i=t.y,s=t.z,t=t.w,n=e+e,r=i+i,o=s+s,a=e*n,h=e*r,e=e*o,l=i*r,i=i*o,s=s*o,n=t*n,r=t*r,t=t*o,o=this.val;return o[0]=1-(l+s),o[3]=h+t,o[6]=e-r,o[1]=h-t,o[4]=1-(a+s),o[7]=i+n,o[2]=e+r,o[5]=i-n,o[8]=1-(a+l),this},normalFromMat4:function(t){var t=t.val,e=this.val,i=t[0],s=t[1],n=t[2],r=t[3],o=t[4],a=t[5],h=t[6],l=t[7],u=t[8],c=t[9],d=t[10],p=t[11],f=t[12],g=t[13],y=t[14],t=t[15],v=i*a-s*o,m=i*h-n*o,x=i*l-r*o,w=s*h-n*a,T=s*l-r*a,b=n*l-r*h,S=u*g-c*f,P=u*y-d*f,u=u*t-p*f,_=c*y-d*g,c=c*t-p*g,d=d*t-p*y,p=v*d-m*c+x*_+w*u-T*P+b*S;return p?(e[0]=(a*d-h*c+l*_)*(p=1/p),e[1]=(h*u-o*d-l*P)*p,e[2]=(o*c-a*u+l*S)*p,e[3]=(n*c-s*d-r*_)*p,e[4]=(i*d-n*u+r*P)*p,e[5]=(s*u-i*c-r*S)*p,e[6]=(g*b-y*T+t*w)*p,e[7]=(y*x-f*b-t*m)*p,e[8]=(f*T-g*x+t*v)*p,this):null}});t.exports=s},16650:(t,e,i)=>{var s=i(56694),i=i(70015),n=new s({initialize:function(t){this.val=new Float32Array(16),t?this.copy(t):this.identity()},clone:function(){return new n(this)},set:function(t){return this.copy(t)},setValues:function(t,e,i,s,n,r,o,a,h,l,u,c,d,p,f,g){var y=this.val;return y[0]=t,y[1]=e,y[2]=i,y[3]=s,y[4]=n,y[5]=r,y[6]=o,y[7]=a,y[8]=h,y[9]=l,y[10]=u,y[11]=c,y[12]=d,y[13]=p,y[14]=f,y[15]=g,this},copy:function(t){t=t.val;return this.setValues(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])},fromArray:function(t){return this.setValues(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])},zero:function(){return this.setValues(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)},transform:function(t,e,i){var i=a.fromQuat(i).val,s=e.x,n=e.y,e=e.z;return this.setValues(i[0]*s,i[1]*s,i[2]*s,0,i[4]*n,i[5]*n,i[6]*n,0,i[8]*e,i[9]*e,i[10]*e,0,t.x,t.y,t.z,1)},xyz:function(t,e,i){this.identity();var s=this.val;return s[12]=t,s[13]=e,s[14]=i,this},scaling:function(t,e,i){this.zero();var s=this.val;return s[0]=t,s[5]=e,s[10]=i,s[15]=1,this},identity:function(){return this.setValues(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)},transpose:function(){var t=this.val,e=t[1],i=t[2],s=t[3],n=t[6],r=t[7],o=t[11];return t[1]=t[4],t[2]=t[8],t[3]=t[12],t[4]=e,t[6]=t[9],t[7]=t[13],t[8]=i,t[9]=n,t[11]=t[14],t[12]=s,t[13]=r,t[14]=o,this},getInverse:function(t){return this.copy(t),this.invert()},invert:function(){var t=this.val,e=t[0],i=t[1],s=t[2],n=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=t[9],c=t[10],d=t[11],p=t[12],f=t[13],g=t[14],t=t[15],y=e*o-i*r,v=e*a-s*r,m=e*h-n*r,x=i*a-s*o,w=i*h-n*o,T=s*h-n*a,b=l*f-u*p,S=l*g-c*p,P=l*t-d*p,_=u*g-c*f,E=u*t-d*f,A=c*t-d*g,C=y*A-v*E+m*_+x*P-w*S+T*b;return C?this.setValues((o*A-a*E+h*_)*(C=1/C),(s*E-i*A-n*_)*C,(f*T-g*w+t*x)*C,(c*w-u*T-d*x)*C,(a*P-r*A-h*S)*C,(e*A-s*P+n*S)*C,(g*m-p*T-t*v)*C,(l*T-c*m+d*v)*C,(r*E-o*P+h*b)*C,(i*P-e*E-n*b)*C,(p*w-f*m+t*y)*C,(u*m-l*w-d*y)*C,(o*S-r*_-a*b)*C,(e*_-i*S+s*b)*C,(f*v-p*x-g*y)*C,(l*x-u*v+c*y)*C):this},adjoint:function(){var t=this.val,e=t[0],i=t[1],s=t[2],n=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=t[9],c=t[10],d=t[11],p=t[12],f=t[13],g=t[14],t=t[15];return this.setValues(o*(c*t-d*g)-u*(a*t-h*g)+f*(a*d-h*c),-(i*(c*t-d*g)-u*(s*t-n*g)+f*(s*d-n*c)),i*(a*t-h*g)-o*(s*t-n*g)+f*(s*h-n*a),-(i*(a*d-h*c)-o*(s*d-n*c)+u*(s*h-n*a)),-(r*(c*t-d*g)-l*(a*t-h*g)+p*(a*d-h*c)),e*(c*t-d*g)-l*(s*t-n*g)+p*(s*d-n*c),-(e*(a*t-h*g)-r*(s*t-n*g)+p*(s*h-n*a)),e*(a*d-h*c)-r*(s*d-n*c)+l*(s*h-n*a),r*(u*t-d*f)-l*(o*t-h*f)+p*(o*d-h*u),-(e*(u*t-d*f)-l*(i*t-n*f)+p*(i*d-n*u)),e*(o*t-h*f)-r*(i*t-n*f)+p*(i*h-n*o),-(e*(o*d-h*u)-r*(i*d-n*u)+l*(i*h-n*o)),-(r*(u*g-c*f)-l*(o*g-a*f)+p*(o*c-a*u)),e*(u*g-c*f)-l*(i*g-s*f)+p*(i*c-s*u),-(e*(o*g-a*f)-r*(i*g-s*f)+p*(i*a-s*o)),e*(o*c-a*u)-r*(i*c-s*u)+l*(i*a-s*o))},determinant:function(){var t=this.val,e=t[0],i=t[1],s=t[2],n=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=t[9],c=t[10],d=t[11],p=t[12],f=t[13],g=t[14],t=t[15];return(e*o-i*r)*(c*t-d*g)-(e*a-s*r)*(u*t-d*f)+(e*h-n*r)*(u*g-c*f)+(i*a-s*o)*(l*t-d*p)-(i*h-n*o)*(l*g-c*p)+(s*h-n*a)*(l*f-u*p)},multiply:function(t){var e=this.val,i=e[0],s=e[1],n=e[2],r=e[3],o=e[4],a=e[5],h=e[6],l=e[7],u=e[8],c=e[9],d=e[10],p=e[11],f=e[12],g=e[13],y=e[14],v=e[15],t=t.val,m=t[0],x=t[1],w=t[2],T=t[3];return e[0]=m*i+x*o+w*u+T*f,e[1]=m*s+x*a+w*c+T*g,e[2]=m*n+x*h+w*d+T*y,e[3]=m*r+x*l+w*p+T*v,m=t[4],x=t[5],w=t[6],T=t[7],e[4]=m*i+x*o+w*u+T*f,e[5]=m*s+x*a+w*c+T*g,e[6]=m*n+x*h+w*d+T*y,e[7]=m*r+x*l+w*p+T*v,m=t[8],x=t[9],w=t[10],T=t[11],e[8]=m*i+x*o+w*u+T*f,e[9]=m*s+x*a+w*c+T*g,e[10]=m*n+x*h+w*d+T*y,e[11]=m*r+x*l+w*p+T*v,m=t[12],x=t[13],w=t[14],T=t[15],e[12]=m*i+x*o+w*u+T*f,e[13]=m*s+x*a+w*c+T*g,e[14]=m*n+x*h+w*d+T*y,e[15]=m*r+x*l+w*p+T*v,this},multiplyLocal:function(t){var e=this.val,t=t.val;return this.setValues(e[0]*t[0]+e[1]*t[4]+e[2]*t[8]+e[3]*t[12],e[0]*t[1]+e[1]*t[5]+e[2]*t[9]+e[3]*t[13],e[0]*t[2]+e[1]*t[6]+e[2]*t[10]+e[3]*t[14],e[0]*t[3]+e[1]*t[7]+e[2]*t[11]+e[3]*t[15],e[4]*t[0]+e[5]*t[4]+e[6]*t[8]+e[7]*t[12],e[4]*t[1]+e[5]*t[5]+e[6]*t[9]+e[7]*t[13],e[4]*t[2]+e[5]*t[6]+e[6]*t[10]+e[7]*t[14],e[4]*t[3]+e[5]*t[7]+e[6]*t[11]+e[7]*t[15],e[8]*t[0]+e[9]*t[4]+e[10]*t[8]+e[11]*t[12],e[8]*t[1]+e[9]*t[5]+e[10]*t[9]+e[11]*t[13],e[8]*t[2]+e[9]*t[6]+e[10]*t[10]+e[11]*t[14],e[8]*t[3]+e[9]*t[7]+e[10]*t[11]+e[11]*t[15],e[12]*t[0]+e[13]*t[4]+e[14]*t[8]+e[15]*t[12],e[12]*t[1]+e[13]*t[5]+e[14]*t[9]+e[15]*t[13],e[12]*t[2]+e[13]*t[6]+e[14]*t[10]+e[15]*t[14],e[12]*t[3]+e[13]*t[7]+e[14]*t[11]+e[15]*t[15])},premultiply:function(t){return this.multiplyMatrices(t,this)},multiplyMatrices:function(t,e){var t=t.val,e=e.val,i=t[0],s=t[4],n=t[8],r=t[12],o=t[1],a=t[5],h=t[9],l=t[13],u=t[2],c=t[6],d=t[10],p=t[14],f=t[3],g=t[7],y=t[11],t=t[15],v=e[0],m=e[4],x=e[8],w=e[12],T=e[1],b=e[5],S=e[9],P=e[13],_=e[2],E=e[6],A=e[10],C=e[14],M=e[3],O=e[7],R=e[11],e=e[15];return this.setValues(i*v+s*T+n*_+r*M,o*v+a*T+h*_+l*M,u*v+c*T+d*_+p*M,f*v+g*T+y*_+t*M,i*m+s*b+n*E+r*O,o*m+a*b+h*E+l*O,u*m+c*b+d*E+p*O,f*m+g*b+y*E+t*O,i*x+s*S+n*A+r*R,o*x+a*S+h*A+l*R,u*x+c*S+d*A+p*R,f*x+g*S+y*A+t*R,i*w+s*P+n*C+r*e,o*w+a*P+h*C+l*e,u*w+c*P+d*C+p*e,f*w+g*P+y*C+t*e)},translate:function(t){return this.translateXYZ(t.x,t.y,t.z)},translateXYZ:function(t,e,i){var s=this.val;return s[12]=s[0]*t+s[4]*e+s[8]*i+s[12],s[13]=s[1]*t+s[5]*e+s[9]*i+s[13],s[14]=s[2]*t+s[6]*e+s[10]*i+s[14],s[15]=s[3]*t+s[7]*e+s[11]*i+s[15],this},scale:function(t){return this.scaleXYZ(t.x,t.y,t.z)},scaleXYZ:function(t,e,i){var s=this.val;return s[0]=s[0]*t,s[1]=s[1]*t,s[2]=s[2]*t,s[3]=s[3]*t,s[4]=s[4]*e,s[5]=s[5]*e,s[6]=s[6]*e,s[7]=s[7]*e,s[8]=s[8]*i,s[9]=s[9]*i,s[10]=s[10]*i,s[11]=s[11]*i,this},makeRotationAxis:function(t,e){var i=Math.cos(e),e=Math.sin(e),s=1-i,n=t.x,r=t.y,t=t.z,o=s*n,a=s*r;return this.setValues(o*n+i,o*r-e*t,o*t+e*r,0,o*r+e*t,a*r+i,a*t-e*n,0,o*t-e*r,a*t+e*n,s*t*t+i,0,0,0,0,1)},rotate:function(t,e){var i=this.val,s=e.x,n=e.y,e=e.z,r=Math.sqrt(s*s+n*n+e*e);if(Math.abs(r)<1e-6)return this;s*=r=1/r,n*=r,e*=r;var r=Math.sin(t),t=Math.cos(t),o=1-t,a=i[0],h=i[1],l=i[2],u=i[3],c=i[4],d=i[5],p=i[6],f=i[7],g=i[8],y=i[9],v=i[10],m=i[11],x=i[12],w=i[13],T=i[14],i=i[15],b=s*s*o+t,S=n*s*o+e*r,P=e*s*o-n*r,_=s*n*o-e*r,E=n*n*o+t,A=e*n*o+s*r,C=s*e*o+n*r,n=n*e*o-s*r,s=e*e*o+t;return this.setValues(a*b+c*S+g*P,h*b+d*S+y*P,l*b+p*S+v*P,u*b+f*S+m*P,a*_+c*E+g*A,h*_+d*E+y*A,l*_+p*E+v*A,u*_+f*E+m*A,a*C+c*n+g*s,h*C+d*n+y*s,l*C+p*n+v*s,u*C+f*n+m*s,x,w,T,i)},rotateX:function(t){var e=this.val,i=Math.sin(t),t=Math.cos(t),s=e[4],n=e[5],r=e[6],o=e[7],a=e[8],h=e[9],l=e[10],u=e[11];return e[4]=s*t+a*i,e[5]=n*t+h*i,e[6]=r*t+l*i,e[7]=o*t+u*i,e[8]=a*t-s*i,e[9]=h*t-n*i,e[10]=l*t-r*i,e[11]=u*t-o*i,this},rotateY:function(t){var e=this.val,i=Math.sin(t),t=Math.cos(t),s=e[0],n=e[1],r=e[2],o=e[3],a=e[8],h=e[9],l=e[10],u=e[11];return e[0]=s*t-a*i,e[1]=n*t-h*i,e[2]=r*t-l*i,e[3]=o*t-u*i,e[8]=s*i+a*t,e[9]=n*i+h*t,e[10]=r*i+l*t,e[11]=o*i+u*t,this},rotateZ:function(t){var e=this.val,i=Math.sin(t),t=Math.cos(t),s=e[0],n=e[1],r=e[2],o=e[3],a=e[4],h=e[5],l=e[6],u=e[7];return e[0]=s*t+a*i,e[1]=n*t+h*i,e[2]=r*t+l*i,e[3]=o*t+u*i,e[4]=a*t-s*i,e[5]=h*t-n*i,e[6]=l*t-r*i,e[7]=u*t-o*i,this},fromRotationTranslation:function(t,e){var i=t.x,s=t.y,n=t.z,t=t.w,r=i+i,o=s+s,a=n+n,h=i*r,l=i*o,i=i*a,u=s*o,s=s*a,n=n*a,r=t*r,o=t*o,t=t*a;return this.setValues(1-(u+n),l+t,i-o,0,l-t,1-(h+n),s+r,0,i+o,s-r,1-(h+u),0,e.x,e.y,e.z,1)},fromQuat:function(t){var e=t.x,i=t.y,s=t.z,t=t.w,n=e+e,r=i+i,o=s+s,a=e*n,h=e*r,e=e*o,l=i*r,i=i*o,s=s*o,n=t*n,r=t*r,t=t*o;return this.setValues(1-(l+s),h+t,e-r,0,h-t,1-(a+s),i+n,0,e+r,i-n,1-(a+l),0,0,0,0,1)},frustum:function(t,e,i,s,n,r){var o=1/(e-t),a=1/(s-i),h=1/(n-r);return this.setValues(2*n*o,0,0,0,0,2*n*a,0,0,(e+t)*o,(s+i)*a,(r+n)*h,-1,0,0,r*n*2*h,0)},perspective:function(t,e,i,s){var t=1/Math.tan(t/2),n=1/(i-s);return this.setValues(t/e,0,0,0,0,t,0,0,0,0,(s+i)*n,-1,0,0,2*s*i*n,0)},perspectiveLH:function(t,e,i,s){return this.setValues(2*i/t,0,0,0,0,2*i/e,0,0,0,0,-s/(i-s),1,0,0,i*s/(i-s),0)},ortho:function(t,e,i,s,n,r){var o=t-e,a=i-s,h=n-r;return this.setValues(-2*(o=0==o?o:1/o),0,0,0,0,-2*(a=0==a?a:1/a),0,0,0,0,2*(h=0==h?h:1/h),0,(t+e)*o,(s+i)*a,(r+n)*h,1)},lookAtRH:function(t,e,i){var s=this.val;return l.subVectors(t,e),0===l.getLengthSquared()&&(l.z=1),l.normalize(),r.crossVectors(i,l),0===r.getLengthSquared()&&(1===Math.abs(i.z)?l.x+=1e-4:l.z+=1e-4,l.normalize(),r.crossVectors(i,l)),r.normalize(),o.crossVectors(l,r),s[0]=r.x,s[1]=r.y,s[2]=r.z,s[4]=o.x,s[5]=o.y,s[6]=o.z,s[8]=l.x,s[9]=l.y,s[10]=l.z,this},lookAt:function(t,e,i){var s,n,r,o,a=t.x,h=t.y,t=t.z,l=i.x,u=i.y,i=i.z,c=e.x,d=e.y,e=e.z;return Math.abs(a-c)<1e-6&&Math.abs(h-d)<1e-6&&Math.abs(t-e)<1e-6?this.identity():(c=a-c,d=h-d,e=t-e,n=u*(e*=s=1/Math.sqrt(c*c+d*d+e*e))-i*(d*=s),i=i*(c*=s)-l*e,l=l*d-u*c,(s=Math.sqrt(n*n+i*i+l*l))?(n*=s=1/s,i*=s,l*=s):l=i=n=0,u=d*l-e*i,r=e*n-c*l,o=c*i-d*n,(s=Math.sqrt(u*u+r*r+o*o))?(u*=s=1/s,r*=s,o*=s):o=r=u=0,this.setValues(n,u,c,0,i,r,d,0,l,o,e,0,-(n*a+i*h+l*t),-(u*a+r*h+o*t),-(c*a+d*h+e*t),1))},yawPitchRoll:function(t,e,i){this.zero(),a.zero(),h.zero();var s=this.val,n=a.val,r=h.val,o=Math.sin(i),i=Math.cos(i);return s[10]=1,s[15]=1,s[0]=i,s[1]=o,s[4]=-o,s[5]=i,o=Math.sin(e),i=Math.cos(e),n[0]=1,n[15]=1,n[5]=i,n[10]=i,n[9]=-o,n[6]=o,o=Math.sin(t),i=Math.cos(t),r[5]=1,r[15]=1,r[0]=i,r[2]=-o,r[8]=o,r[10]=i,this.multiplyLocal(a),this.multiplyLocal(h),this},setWorldMatrix:function(t,e,i,s,n){return this.yawPitchRoll(t.y,t.x,t.z),a.scaling(i.x,i.y,i.z),h.xyz(e.x,e.y,e.z),this.multiplyLocal(a),this.multiplyLocal(h),s&&this.multiplyLocal(s),n&&this.multiplyLocal(n),this},multiplyToMat4:function(t,e){var i=this.val,t=t.val,s=i[0],n=i[1],r=i[2],o=i[3],a=i[4],h=i[5],l=i[6],u=i[7],c=i[8],d=i[9],p=i[10],f=i[11],g=i[12],y=i[13],v=i[14],i=i[15],m=t[0],x=t[1],w=t[2],T=t[3],b=t[4],S=t[5],P=t[6],_=t[7],E=t[8],A=t[9],C=t[10],M=t[11],O=t[12],R=t[13],D=t[14],t=t[15];return e.setValues(m*s+x*a+w*c+T*g,x*n+x*h+w*d+T*y,w*r+x*l+w*p+T*v,T*o+x*u+w*f+T*i,b*s+S*a+P*c+_*g,b*n+S*h+P*d+_*y,b*r+S*l+P*p+_*v,b*o+S*u+P*f+_*i,E*s+A*a+C*c+M*g,E*n+A*h+C*d+M*y,E*r+A*l+C*p+M*v,E*o+A*u+C*f+M*i,O*s+R*a+D*c+t*g,O*n+R*h+D*d+t*y,O*r+R*l+D*p+t*v,O*o+R*u+D*f+t*i)},fromRotationXYTranslation:function(t,e,i){var s=e.x,n=e.y,e=e.z,r=Math.sin(t.x),o=Math.cos(t.x),a=Math.sin(t.y),t=Math.cos(t.y),h=s,l=n,u=e,c=-r,d=0-c*a,p=0-o*a,c=c*t,f=o*t;return i||(h=t*s+a*e,l=d*s+o*n+c*e,u=p*s+r*n+f*e),this.setValues(t,d,p,0,0,o,r,0,a,c,f,0,h,l,u,1)},getMaxScaleOnAxis:function(){var t=this.val,e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],i=t[4]*t[4]+t[5]*t[5]+t[6]*t[6],t=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(e,i,t))}}),a=new n,h=new n,r=new i,o=new i,l=new i;t.exports=n},69635:t=>{t.exports=function(t,e,i){return Math.min(t+e,i)}},37394:t=>{t.exports=function(t){var e=t.length;if(0===e)return 0;t.sort(function(t,e){return t-e});var i=Math.floor(e/2);return e%2==0?(t[i]+t[i-1])/2:t[i]}},17259:t=>{t.exports=function(t,e,i){return Math.max(t-e,i)}},61820:t=>{t.exports=function(t,e,i,s){e=(t-e)/((i=void 0===i?e+1:i)-e);return 1{var s=i(56694),n=i(5341),r=i(72283),i=i(70015),o=new Int8Array([1,2,0]),a=new Float32Array([0,0,0]),h=new i(1,0,0),l=new i(0,1,0),u=new i,c=new n,i=new s({initialize:function(t,e,i,s){this.onChangeCallback=r,this.set(t,e,i,s)},x:{get:function(){return this._x},set:function(t){this._x=t,this.onChangeCallback(this)}},y:{get:function(){return this._y},set:function(t){this._y=t,this.onChangeCallback(this)}},z:{get:function(){return this._z},set:function(t){this._z=t,this.onChangeCallback(this)}},w:{get:function(){return this._w},set:function(t){this._w=t,this.onChangeCallback(this)}},copy:function(t){return this.set(t)},set:function(t,e,i,s,n){return void 0===n&&(n=!0),"object"==typeof t?(this._x=t.x||0,this._y=t.y||0,this._z=t.z||0,this._w=t.w||0):(this._x=t||0,this._y=e||0,this._z=i||0,this._w=s||0),n&&this.onChangeCallback(this),this},add:function(t){return this._x+=t.x,this._y+=t.y,this._z+=t.z,this._w+=t.w,this.onChangeCallback(this),this},subtract:function(t){return this._x-=t.x,this._y-=t.y,this._z-=t.z,this._w-=t.w,this.onChangeCallback(this),this},scale:function(t){return this._x*=t,this._y*=t,this._z*=t,this._w*=t,this.onChangeCallback(this),this},length:function(){var t=this.x,e=this.y,i=this.z,s=this.w;return Math.sqrt(t*t+e*e+i*i+s*s)},lengthSq:function(){var t=this.x,e=this.y,i=this.z,s=this.w;return t*t+e*e+i*i+s*s},normalize:function(){var t=this.x,e=this.y,i=this.z,s=this.w,n=t*t+e*e+i*i+s*s;return 0t[n=0]&&(n=1),t[8]>t[3*n+n]&&(n=2),e=o[n],i=o[e],s=Math.sqrt(t[3*n+n]-t[3*e+e]-t[3*i+i]+1),a[n]=.5*s,a[e]=(t[3*e+n]+t[3*n+e])*(s=.5/s),a[i]=(t[3*i+n]+t[3*n+i])*s,this._x=a[0],this._y=a[1],this._z=a[2],this._w=(t[3*i+e]-t[3*e+i])*s),this.onChangeCallback(this),this}});t.exports=i},23701:(t,e,i)=>{var s=i(83392);t.exports=function(t){return t*s.RAD_TO_DEG}},16906:t=>{t.exports=function(t,e){void 0===e&&(e=1);var i=2*Math.random()*Math.PI;return t.x=Math.cos(i)*e,t.y=Math.sin(i)*e,t}},52417:t=>{t.exports=function(t,e){void 0===e&&(e=1);var i=2*Math.random()*Math.PI,s=2*Math.random()-1,n=Math.sqrt(1-s*s)*e;return t.x=Math.cos(i)*n,t.y=Math.sin(i)*n,t.z=s*e,t}},17915:t=>{t.exports=function(t,e){return void 0===e&&(e=1),t.x=(2*Math.random()-1)*e,t.y=(2*Math.random()-1)*e,t.z=(2*Math.random()-1)*e,t.w=(2*Math.random()-1)*e,t}},52257:t=>{t.exports=function(t,e){var i=t.x,s=t.y;return t.x=i*Math.cos(e)-s*Math.sin(e),t.y=i*Math.sin(e)+s*Math.cos(e),t}},2386:t=>{t.exports=function(t,e,i,s){var n=Math.cos(s),s=Math.sin(s),r=t.x-e,o=t.y-i;return t.x=r*n-o*s+e,t.y=r*s+o*n+i,t}},72395:t=>{t.exports=function(t,e,i,s,n){s+=Math.atan2(t.y-i,t.x-e);return t.x=e+n*Math.cos(s),t.y=i+n*Math.sin(s),t}},41061:t=>{t.exports=function(t,e,i,s,n){return t.x=e+n*Math.cos(s),t.y=i+n*Math.sin(s),t}},93709:(t,e,i)=>{var s=i(70015),n=i(16650),i=i(75003),r=new n,o=new i,a=new s;t.exports=function(t,e,i){return o.setAxisAngle(e,i),r.fromRotationTranslation(o,a.set(0,0,0)),t.transformMat4(r)}},67233:t=>{t.exports=function(t){return 0{t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=10);i=Math.pow(i,-e);return Math.round(t*i)/i}},59533:t=>{t.exports=function(t,e,i,s){void 0===e&&(e=1),void 0===i&&(i=1),void 0===s&&(s=1),s*=Math.PI/t;for(var n=[],r=[],o=0;o{t.exports=function(t,e,i){return t<=e?0:i<=t?1:(t=(t-e)/(i-e))*t*(3-2*t)}},87736:t=>{t.exports=function(t,e,i){return(t=Math.max(0,Math.min(1,(t-e)/(i-e))))*t*t*(t*(6*t-15)+10)}},55805:(t,e,i)=>{var o=i(93736);t.exports=function(t,e,i,s){void 0===s&&(s=new o);var n=0,r=0;return 0{var u=i(93736);t.exports=function(t,e,i,s,n,r,o,a){void 0===a&&(a=new u);var h=Math.sin(n),n=Math.cos(n),l=n*r,r=h*r,h=-h*o,n=n*o,o=1/(l*n+h*-r);return a.x=n*o*t+-h*o*e+(s*h-i*n)*o,a.y=l*o*e+-r*o*t+(-s*l+i*r)*o,a}},93736:(t,e,i)=>{var s=i(56694),n=i(88456),r=new s({initialize:function(t,e){this.x=0,this.y=0,"object"==typeof t?(this.x=t.x||0,this.y=t.y||0):(void 0===e&&(e=t),this.x=t||0,this.y=e||0)},clone:function(){return new r(this.x,this.y)},copy:function(t){return this.x=t.x||0,this.y=t.y||0,this},setFromObject:function(t){return this.x=t.x||0,this.y=t.y||0,this},set:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},setTo:function(t,e){return this.set(t,e)},setToPolar:function(t,e){return null==e&&(e=1),this.x=Math.cos(t)*e,this.y=Math.sin(t)*e,this},equals:function(t){return this.x===t.x&&this.y===t.y},fuzzyEquals:function(t,e){return n(this.x,t.x,e)&&n(this.y,t.y,e)},angle:function(){var t=Math.atan2(this.y,this.x);return t<0&&(t+=2*Math.PI),t},setAngle:function(t){return this.setToPolar(t,this.length())},add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this},scale:function(t){return isFinite(t)?(this.x*=t,this.y*=t):(this.x=0,this.y=0),this},divide:function(t){return this.x/=t.x,this.y/=t.y,this},negate:function(){return this.x=-this.x,this.y=-this.y,this},distance:function(t){var e=t.x-this.x,t=t.y-this.y;return Math.sqrt(e*e+t*t)},distanceSq:function(t){var e=t.x-this.x,t=t.y-this.y;return e*e+t*t},length:function(){var t=this.x,e=this.y;return Math.sqrt(t*t+e*e)},setLength:function(t){return this.normalize().scale(t)},lengthSq:function(){var t=this.x,e=this.y;return t*t+e*e},normalize:function(){var t=this.x,e=this.y,i=t*t+e*e;return 0{var s=new(i(56694))({initialize:function(t,e,i){this.x=0,this.y=0,this.z=0,"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0):(this.x=t||0,this.y=e||0,this.z=i||0)},up:function(){return this.x=0,this.y=1,this.z=0,this},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this},clone:function(){return new s(this.x,this.y,this.z)},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this},crossVectors:function(t,e){var i=t.x,s=t.y,t=t.z,n=e.x,r=e.y,e=e.z;return this.x=s*e-t*r,this.y=t*n-i*e,this.z=i*r-s*n,this},equals:function(t){return this.x===t.x&&this.y===t.y&&this.z===t.z},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z||0,this},set:function(t,e,i){return"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0):(this.x=t||0,this.y=e||0,this.z=i||0),this},setFromMatrixPosition:function(t){return this.fromArray(t.val,12)},setFromMatrixColumn:function(t,e){return this.fromArray(t.val,4*e)},fromArray:function(t,e){return this.x=t[e=void 0===e?0:e],this.y=t[e+1],this.z=t[e+2],this},add:function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z||0,this},addScalar:function(t){return this.x+=t,this.y+=t,this.z+=t,this},addScale:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e||0,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z||0,this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z||1,this},scale:function(t){return isFinite(t)?(this.x*=t,this.y*=t,this.z*=t):(this.x=0,this.y=0,this.z=0),this},divide:function(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z||1,this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},distance:function(t){var e=t.x-this.x,i=t.y-this.y,t=t.z-this.z||0;return Math.sqrt(e*e+i*i+t*t)},distanceSq:function(t){var e=t.x-this.x,i=t.y-this.y,t=t.z-this.z||0;return e*e+i*i+t*t},length:function(){var t=this.x,e=this.y,i=this.z;return Math.sqrt(t*t+e*e+i*i)},lengthSq:function(){var t=this.x,e=this.y,i=this.z;return t*t+e*e+i*i},normalize:function(){var t=this.x,e=this.y,i=this.z,s=t*t+e*e+i*i;return 0{var s=new(i(56694))({initialize:function(t,e,i,s){this.x=0,this.y=0,this.z=0,this.w=0,"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=s||0)},clone:function(){return new s(this.x,this.y,this.z,this.w)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z||0,this.w=t.w||0,this},equals:function(t){return this.x===t.x&&this.y===t.y&&this.z===t.z&&this.w===t.w},set:function(t,e,i,s){return"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=s||0),this},add:function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z||0,this.w+=t.w||0,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z||0,this.w-=t.w||0,this},scale:function(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this},length:function(){var t=this.x,e=this.y,i=this.z,s=this.w;return Math.sqrt(t*t+e*e+i*i+s*s)},lengthSq:function(){var t=this.x,e=this.y,i=this.z,s=this.w;return t*t+e*e+i*i+s*s},normalize:function(){var t=this.x,e=this.y,i=this.z,s=this.w,n=t*t+e*e+i*i+s*s;return 0{t.exports=function(t,e,i){return Math.abs(t-e)<=i}},1071:t=>{t.exports=function(t,e,i){return e<=t&&t<=i?t:e+((t-e)%(t=i-e)+t)%t}},90447:t=>{t.exports=function(t,e,i,s){return Math.atan2(s-e,i-t)}},94240:t=>{t.exports=function(t,e){return Math.atan2(e.y-t.y,e.x-t.x)}},84066:t=>{t.exports=function(t,e){return Math.atan2(e.x-t.x,e.y-t.y)}},9678:t=>{t.exports=function(t,e,i,s){return Math.atan2(i-t,s-e)}},76861:(t,e,i)=>{var s=i(83392);t.exports=function(t){return t>Math.PI&&(t-=s.PI2),Math.abs(((t+s.TAU)%s.PI2-s.PI2)%s.PI2)}},37570:t=>{t.exports=function(t){return 0<=(t%=2*Math.PI)?t:t+2*Math.PI}},87597:(t,e,i)=>{var s=i(61616);t.exports=function(){return s(-Math.PI,Math.PI)}},74493:(t,e,i)=>{var s=i(61616);t.exports=function(){return s(-180,180)}},19049:(t,e,i)=>{var s=i(37570);t.exports=function(t){return s(t+Math.PI)}},90612:(t,e,i)=>{var s=i(83392);t.exports=function(t,e,i){return void 0===i&&(i=.05),t!==e&&(Math.abs(e-t)<=i||Math.abs(e-t)>=s.PI2-i?t=e:(Math.abs(e-t)>Math.PI&&(e{t.exports=function(t,e){e-=t;return 0==e?0:e-360*Math.floor((e+180)/360)}},35786:(t,e,i)=>{var s=i(1071);t.exports=function(t){return s(t,-Math.PI,Math.PI)}},62138:(t,e,i)=>{var s=i(1071);t.exports=function(t){return s(t,-180,180)}},22153:(t,e,i)=>{t.exports={Between:i(90447),BetweenPoints:i(94240),BetweenPointsY:i(84066),BetweenY:i(9678),CounterClockwise:i(76861),Normalize:i(37570),Random:i(87597),RandomDegrees:i(74493),Reverse:i(19049),RotateTo:i(90612),ShortestBetween:i(93954),Wrap:i(35786),WrapDegrees:i(62138)}},83392:t=>{var e={PI2:2*Math.PI,TAU:.5*Math.PI,EPSILON:1e-6,DEG_TO_RAD:Math.PI/180,RAD_TO_DEG:180/Math.PI,RND:null,MIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER||-9007199254740991,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991};t.exports=e},53996:t=>{t.exports=function(t,e,i,s){t-=i,i=e-s;return Math.sqrt(t*t+i*i)}},92951:t=>{t.exports=function(t,e){var i=t.x-e.x,t=t.y-e.y;return Math.sqrt(i*i+t*t)}},12161:t=>{t.exports=function(t,e){var i=t.x-e.x,t=t.y-e.y;return i*i+t*t}},38057:t=>{t.exports=function(t,e,i,s){return Math.max(Math.abs(t-i),Math.abs(e-s))}},33297:t=>{t.exports=function(t,e,i,s,n){return void 0===n&&(n=2),Math.sqrt(Math.pow(i-t,n)+Math.pow(s-e,n))}},90366:t=>{t.exports=function(t,e,i,s){return Math.abs(t-i)+Math.abs(e-s)}},35032:t=>{t.exports=function(t,e,i,s){t-=i,i=e-s;return t*t+i*i}},10130:(t,e,i)=>{t.exports={Between:i(53996),BetweenPoints:i(92951),BetweenPointsSquared:i(12161),Chebyshev:i(38057),Power:i(33297),Snake:i(90366),Squared:i(35032)}},35060:(t,e,i)=>{var s=i(25265),n=i(57428),r=i(73214),o=i(71778),a=i(36468),h=i(88258),l=i(52910),u=i(67799),c=i(74083),d=i(92284),p=i(28035),i=i(8754);t.exports={Power0:l,Power1:u.Out,Power2:o.Out,Power3:c.Out,Power4:d.Out,Linear:l,Quad:u.Out,Cubic:o.Out,Quart:c.Out,Quint:d.Out,Sine:p.Out,Expo:h.Out,Circ:r.Out,Elastic:a.Out,Back:s.Out,Bounce:n.Out,Stepped:i,"Quad.easeIn":u.In,"Cubic.easeIn":o.In,"Quart.easeIn":c.In,"Quint.easeIn":d.In,"Sine.easeIn":p.In,"Expo.easeIn":h.In,"Circ.easeIn":r.In,"Elastic.easeIn":a.In,"Back.easeIn":s.In,"Bounce.easeIn":n.In,"Quad.easeOut":u.Out,"Cubic.easeOut":o.Out,"Quart.easeOut":c.Out,"Quint.easeOut":d.Out,"Sine.easeOut":p.Out,"Expo.easeOut":h.Out,"Circ.easeOut":r.Out,"Elastic.easeOut":a.Out,"Back.easeOut":s.Out,"Bounce.easeOut":n.Out,"Quad.easeInOut":u.InOut,"Cubic.easeInOut":o.InOut,"Quart.easeInOut":c.InOut,"Quint.easeInOut":d.InOut,"Sine.easeInOut":p.InOut,"Expo.easeInOut":h.InOut,"Circ.easeInOut":r.InOut,"Elastic.easeInOut":a.InOut,"Back.easeInOut":s.InOut,"Bounce.easeInOut":n.InOut}},25860:t=>{t.exports=function(t,e){return t*t*(((e=void 0===e?1.70158:e)+1)*t-e)}},45264:t=>{t.exports=function(t,e){e=1.525*(e=void 0===e?1.70158:e);return(t*=2)<1?t*t*((1+e)*t-e)*.5:.5*((t-=2)*t*((1+e)*t+e)+2)}},36699:t=>{t.exports=function(t,e){return--t*t*(((e=void 0===e?1.70158:e)+1)*t+e)+1}},25265:(t,e,i)=>{t.exports={In:i(25860),Out:i(36699),InOut:i(45264)}},62191:t=>{t.exports=function(t){return(t=1-t)<1/2.75?1-7.5625*t*t:t<2/2.75?1-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}},24799:t=>{t.exports=function(t){var e=!1;return t<.5?(t=1-2*t,e=!0):t=2*t-1,t<1/2.75?t*=7.5625*t:t=t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5}},60819:t=>{t.exports=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}},57428:(t,e,i)=>{t.exports={In:i(62191),Out:i(60819),InOut:i(24799)}},86855:t=>{t.exports=function(t){return 1-Math.sqrt(1-t*t)}},7280:t=>{t.exports=function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}},18058:t=>{t.exports=function(t){return Math.sqrt(1- --t*t)}},73214:(t,e,i)=>{t.exports={In:i(86855),Out:i(18058),InOut:i(7280)}},91532:t=>{t.exports=function(t){return t*t*t}},63180:t=>{t.exports=function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)}},16518:t=>{t.exports=function(t){return--t*t*t+1}},71778:(t,e,i)=>{t.exports={In:i(91532),Out:i(16518),InOut:i(63180)}},24729:t=>{t.exports=function(t,e,i){var s;return void 0===e&&(e=.1),void 0===i&&(i=.1),0===t?0:1===t?1:(s=i/4,e<1?e=1:s=i*Math.asin(1/e)/(2*Math.PI),-e*Math.pow(2,10*--t)*Math.sin((t-s)*(2*Math.PI)/i))}},50325:t=>{t.exports=function(t,e,i){var s;return void 0===e&&(e=.1),void 0===i&&(i=.1),0===t?0:1===t?1:(s=i/4,e<1?e=1:s=i*Math.asin(1/e)/(2*Math.PI),(t*=2)<1?e*Math.pow(2,10*--t)*Math.sin((t-s)*(2*Math.PI)/i)*-.5:e*Math.pow(2,-10*--t)*Math.sin((t-s)*(2*Math.PI)/i)*.5+1)}},84074:t=>{t.exports=function(t,e,i){var s;return void 0===e&&(e=.1),void 0===i&&(i=.1),0===t?0:1===t?1:(s=i/4,e<1?e=1:s=i*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*t)*Math.sin((t-s)*(2*Math.PI)/i)+1)}},36468:(t,e,i)=>{t.exports={In:i(24729),Out:i(84074),InOut:i(50325)}},95638:t=>{t.exports=function(t){return Math.pow(2,10*(t-1))-.001}},10357:t=>{t.exports=function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))}},14894:t=>{t.exports=function(t){return 1-Math.pow(2,-10*t)}},88258:(t,e,i)=>{t.exports={In:i(95638),Out:i(14894),InOut:i(10357)}},33063:(t,e,i)=>{t.exports={Back:i(25265),Bounce:i(57428),Circular:i(73214),Cubic:i(71778),Elastic:i(36468),Expo:i(88258),Linear:i(52910),Quadratic:i(67799),Quartic:i(74083),Quintic:i(92284),Sine:i(28035),Stepped:i(8754)}},43927:t=>{t.exports=function(t){return t}},52910:(t,e,i)=>{t.exports=i(43927)},77471:t=>{t.exports=function(t){return t*t}},83863:t=>{t.exports=function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)}},44383:t=>{t.exports=function(t){return t*(2-t)}},67799:(t,e,i)=>{t.exports={In:i(77471),Out:i(44383),InOut:i(83863)}},48311:t=>{t.exports=function(t){return t*t*t*t}},55248:t=>{t.exports=function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)}},23135:t=>{t.exports=function(t){return 1- --t*t*t*t}},74083:(t,e,i)=>{t.exports={In:i(48311),Out:i(23135),InOut:i(55248)}},7313:t=>{t.exports=function(t){return t*t*t*t*t}},98759:t=>{t.exports=function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)}},26670:t=>{t.exports=function(t){return--t*t*t*t*t+1}},92284:(t,e,i)=>{t.exports={In:i(7313),Out:i(26670),InOut:i(98759)}},52929:t=>{t.exports=function(t){return 0===t?0:1===t?1:1-Math.cos(t*Math.PI/2)}},66333:t=>{t.exports=function(t){return 0===t?0:1===t?1:.5*(1-Math.cos(Math.PI*t))}},37255:t=>{t.exports=function(t){return 0===t?0:1===t?1:Math.sin(t*Math.PI/2)}},28035:(t,e,i)=>{t.exports={In:i(52929),Out:i(37255),InOut:i(66333)}},52770:t=>{t.exports=function(t,e){return void 0===e&&(e=1),t<=0?0:1<=t?1:1/e*(1+(e*t|0))}},8754:(t,e,i)=>{t.exports=i(52770)},17247:t=>{t.exports=function(t,e){return void 0===e&&(e=1e-4),Math.ceil(t-e)}},88456:t=>{t.exports=function(t,e,i){return void 0===i&&(i=1e-4),Math.abs(t-e){t.exports=function(t,e){return void 0===e&&(e=1e-4),Math.floor(t+e)}},41935:t=>{t.exports=function(t,e,i){return e-(i=void 0===i?1e-4:i){t.exports=function(t,e,i){return t{t.exports={Ceil:i(17247),Equal:i(88456),Floor:i(61824),GreaterThan:i(41935),LessThan:i(54726)}},5923:(t,e,i)=>{var s=i(83392),i=i(98611)(!1,{Angle:i(22153),Distance:i(10130),Easing:i(33063),Fuzzy:i(52778),Interpolation:i(48528),Pow2:i(73773),Snap:i(23679),RandomDataGenerator:i(81429),Average:i(26042),Bernstein:i(22824),Between:i(17489),CatmullRom:i(14976),CeilTo:i(89129),Clamp:i(82897),DegToRad:i(75606),Difference:i(767),Euler:i(9849),Factorial:i(8034),FloatBetween:i(61616),FloorTo:i(60679),FromPercent:i(91806),GetSpeed:i(79366),IsEven:i(43776),IsEvenStrict:i(58442),Linear:i(42798),LinearXY:i(61072),MaxAdd:i(69635),Median:i(37394),MinSub:i(17259),Percent:i(61820),RadToDeg:i(23701),RandomXY:i(16906),RandomXYZ:i(52417),RandomXYZW:i(17915),Rotate:i(52257),RotateAround:i(2386),RotateAroundDistance:i(72395),RotateTo:i(41061),RoundAwayFromZero:i(67233),RoundTo:i(64333),SinCosTableGenerator:i(59533),SmootherStep:i(87736),SmoothStep:i(5514),ToXY:i(55805),TransformXY:i(64462),Within:i(9557),Wrap:i(1071),Vector2:i(93736),Vector3:i(70015),Vector4:i(51729),Matrix3:i(5341),Matrix4:i(16650),Quaternion:i(75003),RotateVec3:i(93709)},s);t.exports=i},63210:(t,e,i)=>{var r=i(22824);t.exports=function(t,e){for(var i=0,s=t.length-1,n=0;n<=s;n++)i+=Math.pow(1-e,s-n)*Math.pow(e,n)*t[n]*r(s,n);return i}},88332:(t,e,i)=>{var r=i(14976);t.exports=function(t,e){var i=t.length-1,s=i*e,n=Math.floor(s);return t[0]===t[i]?(e<0&&(n=Math.floor(s=i*(1+e))),r(s-n,t[(n-1+i)%i],t[n],t[(n+1)%i],t[(n+2)%i])):e<0?t[0]-(r(-s,t[0],t[0],t[1],t[1])-t[0]):1{t.exports=function(t,e,i,s,n){return(r=1-t)*r*r*e+3*(r=1-t)*r*t*i+3*(1-t)*t*t*s+t*t*t*n;var r}},47614:(t,e,i)=>{var r=i(42798);t.exports=function(t,e){var i=t.length-1,s=i*e,n=Math.floor(s);return e<0?r(t[0],t[1],s):1{t.exports=function(t,e,i,s){return(n=1-t)*n*e+2*(1-t)*t*i+t*t*s;var n}},44521:(t,e,i)=>{var s=i(5514);t.exports=function(t,e,i){return e+(i-e)*s(t,0,1)}},45507:(t,e,i)=>{var s=i(87736);t.exports=function(t,e,i){return e+(i-e)*s(t,0,1)}},48528:(t,e,i)=>{t.exports={Bezier:i(63210),CatmullRom:i(88332),CubicBezier:i(34631),Linear:i(47614),QuadraticBezier:i(16252),SmoothStep:i(44521),SmootherStep:i(45507)}},3504:t=>{t.exports=function(t){t=Math.log(t)/.6931471805599453;return 1<{t.exports=function(t,e){return 0{t.exports=function(t){return 0{t.exports={GetNext:i(3504),IsSize:i(28621),IsValue:i(2018)}},81429:(t,e,i)=>{i=new(i(56694))({initialize:function(t){void 0===t&&(t=[(Date.now()*Math.random()).toString()]),this.c=1,this.s0=0,this.s1=0,this.s2=0,this.n=0,this.signs=[-1,1],t&&this.init(t)},rnd:function(){var t=2091639*this.s0+2.3283064365386963e-10*this.c;return this.c=0|t,this.s0=this.s1,this.s1=this.s2,this.s2=t-this.c,this.s2},hash:function(t){var e,i=this.n;t=t.toString();for(var s=0;s>>0))*i)>>>0,i+=4294967296*(e-=i);return 2.3283064365386963e-10*((this.n=i)>>>0)},init:function(t){"string"==typeof t?this.state(t):this.sow(t)},sow:function(t){if(this.n=4022871197,this.s0=this.hash(" "),this.s1=this.hash(" "),this.s2=this.hash(" "),this.c=1,t)for(var e=0;e{t.exports=function(t,e,i,s){return void 0===i&&(i=0),0===e?t:(t-=i,t=e*Math.ceil(t/e),s?(i+t)/e:i+t)}},84314:t=>{t.exports=function(t,e,i,s){return void 0===i&&(i=0),0===e?t:(t-=i,t=e*Math.floor(t/e),s?(i+t)/e:i+t)}},88462:t=>{t.exports=function(t,e,i,s){return void 0===i&&(i=0),0===e?t:(t-=i,t=e*Math.round(t/e),s?(i+t)/e:i+t)}},23679:(t,e,i)=>{t.exports={Ceil:i(82127),Floor:i(84314),To:i(88462)}},92491:(t,e,i)=>{i(75205);var s=i(86459),n=i(98611),r={Actions:i(83979),Animations:i(13517),BlendModes:i(95723),Cache:i(45820),Cameras:i(44143),Core:i(80293),Class:i(56694),Create:i(84106),Curves:i(73962),Data:i(1999),Display:i(24816),DOM:i(3590),Events:i(95146),FX:i(96910),Game:i(15213),GameObjects:i(48013),Geom:i(84068),Input:i(20873),Loader:i(95695),Math:i(5923),Physics:i(53954),Plugins:i(45615),Renderer:i(42069),Scale:i(86754),ScaleModes:i(27394),Scene:i(87157),Scenes:i(20436),Structs:i(20010),Textures:i(87499),Tilemaps:i(52678),Time:i(97121),Tweens:i(75193),Utils:i(22178)};r.Sound=i(56751),r=n(!1,r,s),t.exports=r,i.g.Phaser=r},62832:(t,e,i)=>{var s=i(56694),n=i(7864),r=i(1539),i=new s({Extends:r,Mixins:[n.Acceleration,n.Angular,n.Bounce,n.Debug,n.Drag,n.Enable,n.Friction,n.Gravity,n.Immovable,n.Mass,n.Pushable,n.Size,n.Velocity],initialize:function(t,e,i,s,n){r.call(this,t,e,i,s,n),this.body=null}});t.exports=i},66150:(t,e,i)=>{var s=i(56694),n=i(75606),o=i(53996),u=i(35032),r=i(99523),a=i(72632),h=i(30657),l=i(2732),c=i(15147),d=i(91963),p=i(7599),f=i(93736),g=i(85233),i=new s({initialize:function(t){this.scene=t,this.systems=t.sys,this.config=this.getConfig(),this.world,this.add,t.sys.events.once(p.BOOT,this.boot,this),t.sys.events.on(p.START,this.start,this)},boot:function(){this.world=new g(this.scene,this.config),this.add=new r(this.world),this.systems.events.once(p.DESTROY,this.destroy,this)},start:function(){this.world||(this.world=new g(this.scene,this.config),this.add=new r(this.world));var t=this.systems.events;a(this.config,"customUpdate",!1)||t.on(p.UPDATE,this.world.update,this.world),t.on(p.POST_UPDATE,this.world.postUpdate,this.world),t.once(p.SHUTDOWN,this.shutdown,this)},enableUpdate:function(){this.systems.events.on(p.UPDATE,this.world.update,this.world)},disableUpdate:function(){this.systems.events.off(p.UPDATE,this.world.update,this.world)},getConfig:function(){var t=this.systems.game.config.physics,e=this.systems.settings.physics;return h(a(e,"arcade",{}),a(t,"arcade",{}))},overlap:function(t,e,i,s,n){return void 0===i&&(i=null),void 0===n&&(n=i),this.world.collideObjects(t,e,i,s=void 0===s?null:s,n,!0)},collide:function(t,e,i,s,n){return void 0===i&&(i=null),void 0===n&&(n=i),this.world.collideObjects(t,e,i,s=void 0===s?null:s,n,!1)},collideTiles:function(t,e,i,s,n){return this.world.collideTiles(t,e,i,s,n)},overlapTiles:function(t,e,i,s,n){return this.world.overlapTiles(t,e,i,s,n)},pause:function(){return this.world.pause()},resume:function(){return this.world.resume()},accelerateTo:function(t,e,i,s,n,r){void 0===s&&(s=60);i=Math.atan2(i-t.y,e-t.x);return t.body.acceleration.setToPolar(i,s),void 0!==n&&void 0!==r&&t.body.maxVelocity.set(n,r),i},accelerateToObject:function(t,e,i,s,n){return this.accelerateTo(t,e.x,e.y,i,s,n)},closest:function(t,e){e=e||this.world.bodies.entries;for(var i=Number.MAX_VALUE,s=null,n=t.x,r=t.y,o=e.length,a=0;a{var s=i(56694),n=i(7864),r=i(13747),i=new s({Extends:r,Mixins:[n.Acceleration,n.Angular,n.Bounce,n.Debug,n.Drag,n.Enable,n.Friction,n.Gravity,n.Immovable,n.Mass,n.Pushable,n.Size,n.Velocity],initialize:function(t,e,i,s,n){r.call(this,t,e,i,s,n),this.body=null}});t.exports=i},97602:(t,e,i)=>{var s=i(56694),r=i(47401),n=i(27037),o=i(23701),a=i(74118),h=i(94287),l=i(93736),i=new s({initialize:function(t,e){var i=64,s=64,n=void 0!==e;n&&e.displayWidth&&(i=e.displayWidth,s=e.displayHeight),n||(e={x:0,y:0,angle:0,rotation:0,scaleX:1,scaleY:1,displayOriginX:0,displayOriginY:0}),this.world=t,this.gameObject=n?e:void 0,this.isBody=!0,this.transform={x:e.x,y:e.y,rotation:e.angle,scaleX:e.scaleX,scaleY:e.scaleY,displayOriginX:e.displayOriginX,displayOriginY:e.displayOriginY},this.debugShowBody=t.defaults.debugShowBody,this.debugShowVelocity=t.defaults.debugShowVelocity,this.debugBodyColor=t.defaults.bodyDebugColor,this.enable=!0,this.isCircle=!1,this.radius=0,this.offset=new l,this.position=new l(e.x-e.scaleX*e.displayOriginX,e.y-e.scaleY*e.displayOriginY),this.prev=this.position.clone(),this.prevFrame=this.position.clone(),this.allowRotation=!0,this.rotation=e.angle,this.preRotation=e.angle,this.width=i,this.height=s,this.sourceWidth=i,this.sourceHeight=s,e.frame&&(this.sourceWidth=e.frame.realWidth,this.sourceHeight=e.frame.realHeight),this.halfWidth=Math.abs(i/2),this.halfHeight=Math.abs(s/2),this.center=new l(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.velocity=new l,this.newVelocity=new l,this.deltaMax=new l,this.acceleration=new l,this.allowDrag=!0,this.drag=new l,this.allowGravity=!0,this.gravity=new l,this.bounce=new l,this.worldBounce=null,this.customBoundsRectangle=t.bounds,this.onWorldBounds=!1,this.onCollide=!1,this.onOverlap=!1,this.maxVelocity=new l(1e4,1e4),this.maxSpeed=-1,this.friction=new l(1,0),this.useDamping=!1,this.angularVelocity=0,this.angularAcceleration=0,this.angularDrag=0,this.maxAngular=1e3,this.mass=1,this.angle=0,this.speed=0,this.facing=r.FACING_NONE,this.immovable=!1,this.pushable=!0,this.moves=!0,this.customSeparateX=!1,this.customSeparateY=!1,this.overlapX=0,this.overlapY=0,this.overlapR=0,this.embedded=!1,this.collideWorldBounds=!1,this.checkCollision={none:!1,up:!0,down:!0,left:!0,right:!0},this.touching={none:!0,up:!1,down:!1,left:!1,right:!1},this.wasTouching={none:!0,up:!1,down:!1,left:!1,right:!1},this.blocked={none:!0,up:!1,down:!1,left:!1,right:!1},this.syncBounds=!1,this.physicsType=r.DYNAMIC_BODY,this._sx=e.scaleX,this._sy=e.scaleY,this._dx=0,this._dy=0,this._tx=0,this._ty=0,this._bounds=new a},updateBounds:function(){var t=this.gameObject,e=this.transform,i=(t.parentContainer?(i=t.getWorldTransformMatrix(this.world._tempMatrix,this.world._tempMatrix2),e.x=i.tx,e.y=i.ty,e.rotation=o(i.rotation),e.scaleX=i.scaleX,e.scaleY=i.scaleY):(e.x=t.x,e.y=t.y,e.rotation=t.angle,e.scaleX=t.scaleX,e.scaleY=t.scaleY),e.displayOriginX=t.displayOriginX,e.displayOriginY=t.displayOriginY,!1);this.syncBounds?(t=t.getBounds(this._bounds),this.width=t.width,this.height=t.height,i=!0):(t=Math.abs(e.scaleX),e=Math.abs(e.scaleY),this._sx===t&&this._sy===e||(this.width=this.sourceWidth*t,this.height=this.sourceHeight*e,this._sx=t,this._sy=e,i=!0)),i&&(this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.updateCenter())},updateCenter:function(){this.center.set(this.position.x+this.halfWidth,this.position.y+this.halfHeight)},updateFromGameObject:function(){this.updateBounds();var t=this.transform;this.position.x=t.x+t.scaleX*(this.offset.x-t.displayOriginX),this.position.y=t.y+t.scaleY*(this.offset.y-t.displayOriginY),this.updateCenter()},resetFlags:function(t){var e=this.wasTouching,i=this.touching,s=this.blocked;(t=void 0===t?!1:t)?(e.none=!0,e.up=!1,e.down=!1,e.left=!1,e.right=!1):(e.none=i.none,e.up=i.up,e.down=i.down,e.left=i.left,e.right=i.right),i.none=!0,i.up=!1,i.down=!1,i.left=!1,i.right=!1,s.none=!0,s.up=!1,s.down=!1,s.left=!1,s.right=!1,this.overlapR=0,this.overlapX=0,this.overlapY=0,this.embedded=!1},preUpdate:function(t,e){t&&this.resetFlags(),this.gameObject&&this.updateFromGameObject(),this.rotation=this.transform.rotation,this.preRotation=this.rotation,this.moves&&(this.prev.x=this.position.x,this.prev.y=this.position.y,this.prevFrame.x=this.position.x,this.prevFrame.y=this.position.y),t&&this.update(e)},update:function(t){var e,i;this.prev.x=this.position.x,this.prev.y=this.position.y,this.moves&&(this.world.updateMotion(this,t),e=this.velocity.x,i=this.velocity.y,this.newVelocity.set(e*t,i*t),this.position.add(this.newVelocity),this.updateCenter(),this.angle=Math.atan2(i,e),this.speed=Math.sqrt(e*e+i*i),this.collideWorldBounds)&&this.checkWorldBounds()&&this.onWorldBounds&&this.world.emit(n.WORLD_BOUNDS,this,this.blocked.up,this.blocked.down,this.blocked.left,this.blocked.right),this._dx=this.position.x-this.prev.x,this._dy=this.position.y-this.prev.y},postUpdate:function(){var t,e=this.position.x-this.prevFrame.x,i=this.position.y-this.prevFrame.y,s=this.gameObject;this.moves&&(0!==(t=this.deltaMax.x)&&0!==e&&(e<0&&e<-t?e=-t:0e.right&&i.right&&(t.x=e.right-this.width,this.velocity.x*=s,r=this.blocked.right=!0),t.ye.bottom&&i.down&&(t.y=e.bottom-this.height,this.velocity.y*=n,r=this.blocked.down=!0),r&&(this.blocked.none=!1,this.updateCenter()),r},setOffset:function(t,e){return this.offset.set(t,e=void 0===e?t:e),this},setGameObject:function(t,e){return void 0===e&&(e=!0),this.world.remove(this),this.gameObject&&this.gameObject.body&&(this.gameObject.body=null),(this.gameObject=t).body&&(t.body=this),this.setSize(),this.world.add(this),this.enable=e,this},setSize:function(t,e,i){void 0===i&&(i=!0);var s=this.gameObject;return s&&(!t&&s.frame&&(t=s.frame.realWidth),!e)&&s.frame&&(e=s.frame.realHeight),this.sourceWidth=t,this.sourceHeight=e,this.width=this.sourceWidth*this._sx,this.height=this.sourceHeight*this._sy,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.updateCenter(),i&&s&&s.getCenter&&(i=(s.width-t)/2,t=(s.height-e)/2,this.offset.set(i,t)),this.isCircle=!1,this.radius=0,this},setCircle:function(t,e,i){return void 0===e&&(e=this.offset.x),void 0===i&&(i=this.offset.y),0=this.left&&t<=this.right&&e>=this.top&&e<=this.bottom&&(this.center.x-t)*(this.center.x-t)+(this.center.y-e)*(this.center.y-e)<=this.radius*this.radius:h(this,t,e)},onFloor:function(){return this.blocked.down},onCeiling:function(){return this.blocked.up},onWall:function(){return this.blocked.left||this.blocked.right},deltaAbsX:function(){return 0{i=new(i(56694))({initialize:function(t,e,i,s,n,r,o){this.world=t,this.name="",this.active=!0,this.overlapOnly=e,this.object1=i,this.object2=s,this.collideCallback=n,this.processCallback=r,this.callbackContext=o},setName:function(t){return this.name=t,this},update:function(){this.world.collideObjects(this.object1,this.object2,this.collideCallback,this.processCallback,this.callbackContext,this.overlapOnly)},destroy:function(){this.world.removeCollider(this),this.active=!1,this.world=null,this.object1=null,this.object2=null,this.collideCallback=null,this.processCallback=null,this.callbackContext=null}});t.exports=i},99523:(t,e,i)=>{var n=i(62832),r=i(25084),o=i(97602),s=i(56694),a=i(47401),h=i(10481),l=i(66634),u=i(46346),i=new s({initialize:function(t){this.world=t,this.scene=t.scene,this.sys=t.scene.sys},collider:function(t,e,i,s,n){return this.world.addCollider(t,e,i,s,n)},overlap:function(t,e,i,s,n){return this.world.addOverlap(t,e,i,s,n)},existing:function(t,e){e=e?a.STATIC_BODY:a.DYNAMIC_BODY;return this.world.enableBody(t,e),t},staticImage:function(t,e,i,s){t=new n(this.scene,t,e,i,s);return this.sys.displayList.add(t),this.world.enableBody(t,a.STATIC_BODY),t},image:function(t,e,i,s){t=new n(this.scene,t,e,i,s);return this.sys.displayList.add(t),this.world.enableBody(t,a.DYNAMIC_BODY),t},staticSprite:function(t,e,i,s){t=new r(this.scene,t,e,i,s);return this.sys.displayList.add(t),this.sys.updateList.add(t),this.world.enableBody(t,a.STATIC_BODY),t},sprite:function(t,e,i,s){t=new r(this.scene,t,e,i,s);return this.sys.displayList.add(t),this.sys.updateList.add(t),this.world.enableBody(t,a.DYNAMIC_BODY),t},staticGroup:function(t,e){return this.sys.updateList.add(new u(this.world,this.world.scene,t,e))},group:function(t,e){return this.sys.updateList.add(new h(this.world,this.world.scene,t,e))},body:function(t,e,i,s){var n=new o(this.world);return n.position.set(t,e),i&&s&&n.setSize(i,s),this.world.add(n,a.DYNAMIC_BODY),n},staticBody:function(t,e,i,s){var n=new l(this.world);return n.position.set(t,e),i&&s&&n.setSize(i,s),this.world.add(n,a.STATIC_BODY),n},destroy:function(){this.world=null,this.scene=null,this.sys=null}});t.exports=i},75671:(t,e,i)=>{var r=i(47401);t.exports=function(t,e,i,s){var n=0,s=t.deltaAbsX()+e.deltaAbsX()+s;return 0===t._dx&&0===e._dx?(t.embedded=!0,e.embedded=!0):t._dx>e._dx?(n=t.right-e.x)>s&&!i||!1===t.checkCollision.right||!1===e.checkCollision.left?n=0:(t.touching.none=!1,t.touching.right=!0,e.touching.none=!1,e.touching.left=!0,e.physicsType!==r.STATIC_BODY||i||(t.blocked.none=!1,t.blocked.right=!0),t.physicsType!==r.STATIC_BODY||i||(e.blocked.none=!1,e.blocked.left=!0)):t._dxs&&!i||!1===t.checkCollision.left||!1===e.checkCollision.right?n=0:(t.touching.none=!1,t.touching.left=!0,e.touching.none=!1,e.touching.right=!0,e.physicsType!==r.STATIC_BODY||i||(t.blocked.none=!1,t.blocked.left=!0),t.physicsType!==r.STATIC_BODY||i||(e.blocked.none=!1,e.blocked.right=!0))),t.overlapX=n,e.overlapX=n}},66185:(t,e,i)=>{var r=i(47401);t.exports=function(t,e,i,s){var n=0,s=t.deltaAbsY()+e.deltaAbsY()+s;return 0===t._dy&&0===e._dy?(t.embedded=!0,e.embedded=!0):t._dy>e._dy?(n=t.bottom-e.y)>s&&!i||!1===t.checkCollision.down||!1===e.checkCollision.up?n=0:(t.touching.none=!1,t.touching.down=!0,e.touching.none=!1,e.touching.up=!0,e.physicsType!==r.STATIC_BODY||i||(t.blocked.none=!1,t.blocked.down=!0),t.physicsType!==r.STATIC_BODY||i||(e.blocked.none=!1,e.blocked.up=!0)):t._dys&&!i||!1===t.checkCollision.up||!1===e.checkCollision.down?n=0:(t.touching.none=!1,t.touching.up=!0,e.touching.none=!1,e.touching.down=!0,e.physicsType!==r.STATIC_BODY||i||(t.blocked.none=!1,t.blocked.up=!0),t.physicsType!==r.STATIC_BODY||i||(e.blocked.none=!1,e.blocked.down=!0))),t.overlapY=n,e.overlapY=n}},10481:(t,e,i)=>{var r=i(25084),s=i(56694),o=i(47401),a=i(72632),h=i(59192),l=i(42911),i=new s({Extends:h,initialize:function(t,e,i,s){var n;i||s?l(i)?(s=i,i=null,s.internalCreateCallback=this.createCallbackHandler,s.internalRemoveCallback=this.removeCallbackHandler):Array.isArray(i)&&l(i[0])?(s=i[0],n=this,i.forEach(function(t){t.internalCreateCallback=n.createCallbackHandler,t.internalRemoveCallback=n.removeCallbackHandler}),i=null):s={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler}:s={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler},this.world=t,s.classType=a(s,"classType",r),this.physicsType=o.DYNAMIC_BODY,this.defaults={setCollideWorldBounds:a(s,"collideWorldBounds",!1),setBoundsRectangle:a(s,"customBoundsRectangle",null),setAccelerationX:a(s,"accelerationX",0),setAccelerationY:a(s,"accelerationY",0),setAllowDrag:a(s,"allowDrag",!0),setAllowGravity:a(s,"allowGravity",!0),setAllowRotation:a(s,"allowRotation",!0),setDamping:a(s,"useDamping",!1),setBounceX:a(s,"bounceX",0),setBounceY:a(s,"bounceY",0),setDragX:a(s,"dragX",0),setDragY:a(s,"dragY",0),setEnable:a(s,"enable",!0),setGravityX:a(s,"gravityX",0),setGravityY:a(s,"gravityY",0),setFrictionX:a(s,"frictionX",0),setFrictionY:a(s,"frictionY",0),setMaxSpeed:a(s,"maxSpeed",-1),setMaxVelocityX:a(s,"maxVelocityX",1e4),setMaxVelocityY:a(s,"maxVelocityY",1e4),setVelocityX:a(s,"velocityX",0),setVelocityY:a(s,"velocityY",0),setAngularVelocity:a(s,"angularVelocity",0),setAngularAcceleration:a(s,"angularAcceleration",0),setAngularDrag:a(s,"angularDrag",0),setMass:a(s,"mass",1),setImmovable:a(s,"immovable",!1)},h.call(this,e,i,s),this.type="PhysicsGroup"},createCallbackHandler:function(t){t.body||this.world.enableBody(t,o.DYNAMIC_BODY);var e,i=t.body;for(e in this.defaults)i[e](this.defaults[e])},removeCallbackHandler:function(t){t.body&&this.world.disableBody(t)},setVelocity:function(t,e,i){void 0===i&&(i=0);for(var s=this.getChildren(),n=0;n{function s(){return f&&x&&o.blocked.right?(r.processX(-T,c,!1,!0),1):p&&w&&o.blocked.left?(r.processX(T,c,!0),1):v&&w&&r.blocked.right?(o.processX(-T,d,!1,!0),2):y&&x&&r.blocked.left?(o.processX(T,d,!0),2):0}function n(t){var e;return a&&h?(T*=.5,0===t||3===t?(r.processX(T,l),o.processX(-T,u)):(r.processX(-T,l),o.processX(T,u))):a&&!h?0===t||3===t?r.processX(T,c,!0):r.processX(-T,c,!1,!0):!a&&h?0===t||3===t?o.processX(-T,d,!1,!0):o.processX(T,d,!0):(e=.5*T,0===t?m?(r.processX(T,0,!0),o.processX(0,null,!1,!0)):v?(r.processX(e,0,!0),o.processX(-e,0,!1,!0)):(r.processX(e,o.velocity.x,!0),o.processX(-e,null,!1,!0)):1===t?g?(r.processX(0,null,!1,!0),o.processX(T,0,!0)):f?(r.processX(-e,0,!1,!0),o.processX(e,0,!0)):(r.processX(-e,null,!1,!0),o.processX(e,r.velocity.x,!0)):2===t?m?(r.processX(-T,0,!1,!0),o.processX(0,null,!0)):y?(r.processX(-e,0,!1,!0),o.processX(e,0,!0)):(r.processX(-e,o.velocity.x,!1,!0),o.processX(e,null,!0)):3===t&&(g?(r.processX(0,null,!0),o.processX(-T,0,!1,!0)):p?(r.processX(e,0,!0),o.processX(-e,0,!1,!0)):(r.processX(e,o.velocity.y,!0),o.processX(-e,null,!1,!0)))),!0}var r,o,a,h,l,u,c,d,p,f,g,y,v,m,x,w,T;t.exports={BlockCheck:s,Check:function(){var t=r.velocity.x,e=o.velocity.x,e=Math.sqrt(e*e*o.mass/r.mass)*(0{function s(){return f&&x&&o.blocked.down?(r.processY(-T,c,!1,!0),1):p&&w&&o.blocked.up?(r.processY(T,c,!0),1):v&&w&&r.blocked.down?(o.processY(-T,d,!1,!0),2):y&&x&&r.blocked.up?(o.processY(T,d,!0),2):0}function n(t){var e;return a&&h?(T*=.5,0===t||3===t?(r.processY(T,l),o.processY(-T,u)):(r.processY(-T,l),o.processY(T,u))):a&&!h?0===t||3===t?r.processY(T,c,!0):r.processY(-T,c,!1,!0):!a&&h?0===t||3===t?o.processY(-T,d,!1,!0):o.processY(T,d,!0):(e=.5*T,0===t?m?(r.processY(T,0,!0),o.processY(0,null,!1,!0)):v?(r.processY(e,0,!0),o.processY(-e,0,!1,!0)):(r.processY(e,o.velocity.y,!0),o.processY(-e,null,!1,!0)):1===t?g?(r.processY(0,null,!1,!0),o.processY(T,0,!0)):f?(r.processY(-e,0,!1,!0),o.processY(e,0,!0)):(r.processY(-e,null,!1,!0),o.processY(e,r.velocity.y,!0)):2===t?m?(r.processY(-T,0,!1,!0),o.processY(0,null,!0)):y?(r.processY(-e,0,!1,!0),o.processY(e,0,!0)):(r.processY(-e,o.velocity.y,!1,!0),o.processY(e,null,!0)):3===t&&(g?(r.processY(0,null,!0),o.processY(-T,0,!1,!0)):p?(r.processY(e,0,!0),o.processY(-e,0,!1,!0)):(r.processY(e,o.velocity.y,!0),o.processY(-e,null,!1,!0)))),!0}var r,o,a,h,l,u,c,d,p,f,g,y,v,m,x,w,T;t.exports={BlockCheck:s,Check:function(){var t=r.velocity.y,e=o.velocity.y,e=Math.sqrt(e*e*o.mass/r.mass)*(0{var o=i(75671),a=i(22916);t.exports=function(t,e,i,s,n){void 0===n&&(n=o(t,e,i,s));var s=t.immovable,r=e.immovable;return i||0===n||s&&r||t.customSeparateX||e.customSeparateX?0!==n||t.embedded&&e.embedded:(i=a.Set(t,e,n),s||r?(s?a.RunImmovableBody1(i):r&&a.RunImmovableBody2(i),!0):0{var o=i(66185),a=i(67050);t.exports=function(t,e,i,s,n){void 0===n&&(n=o(t,e,i,s));var s=t.immovable,r=e.immovable;return i||0===n||s&&r||t.customSeparateY||e.customSeparateY?0!==n||t.embedded&&e.embedded:(i=a.Set(t,e,n),s||r?(s?a.RunImmovableBody1(i):r&&a.RunImmovableBody2(i),!0):0{var s=i(65650),n=i(56694),r=i(47401),o=i(94287),a=i(93736),i=new n({initialize:function(t,e){var i=64,s=64,n=void 0!==e;n&&e.displayWidth&&(i=e.displayWidth,s=e.displayHeight),n||(e={x:0,y:0,angle:0,rotation:0,scaleX:1,scaleY:1,displayOriginX:0,displayOriginY:0}),this.world=t,this.gameObject=n?e:void 0,this.isBody=!0,this.debugShowBody=t.defaults.debugShowStaticBody,this.debugBodyColor=t.defaults.staticBodyDebugColor,this.enable=!0,this.isCircle=!1,this.radius=0,this.offset=new a,this.position=new a(e.x-i*e.originX,e.y-s*e.originY),this.width=i,this.height=s,this.halfWidth=Math.abs(this.width/2),this.halfHeight=Math.abs(this.height/2),this.center=new a(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.velocity=a.ZERO,this.allowGravity=!1,this.gravity=a.ZERO,this.bounce=a.ZERO,this.onWorldBounds=!1,this.onCollide=!1,this.onOverlap=!1,this.mass=1,this.immovable=!0,this.pushable=!1,this.customSeparateX=!1,this.customSeparateY=!1,this.overlapX=0,this.overlapY=0,this.overlapR=0,this.embedded=!1,this.collideWorldBounds=!1,this.checkCollision={none:!1,up:!0,down:!0,left:!0,right:!0},this.touching={none:!0,up:!1,down:!1,left:!1,right:!1},this.wasTouching={none:!0,up:!1,down:!1,left:!1,right:!1},this.blocked={none:!0,up:!1,down:!1,left:!1,right:!1},this.physicsType=r.STATIC_BODY,this._dx=0,this._dy=0},setGameObject:function(t,e){return t&&t!==this.gameObject&&(this.gameObject.body=null,(t.body=this).gameObject=t),e&&this.updateFromGameObject(),this},updateFromGameObject:function(){this.world.staticTree.remove(this);var t=this.gameObject;return t.getTopLeft(this.position),this.width=t.displayWidth,this.height=t.displayHeight,this.halfWidth=Math.abs(this.width/2),this.halfHeight=Math.abs(this.height/2),this.center.set(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.world.staticTree.insert(this),this},setOffset:function(t,e){return void 0===e&&(e=t),this.world.staticTree.remove(this),this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(t,e),this.position.x+=this.offset.x,this.position.y+=this.offset.y,this.updateCenter(),this.world.staticTree.insert(this),this},setSize:function(t,e,i){void 0===i&&(i=!0);var s=this.gameObject;return!t&&s.frame&&(t=s.frame.realWidth),!e&&s.frame&&(e=s.frame.realHeight),this.world.staticTree.remove(this),this.width=t,this.height=e,this.halfWidth=Math.floor(t/2),this.halfHeight=Math.floor(e/2),i&&s.getCenter&&(t=s.displayWidth/2,e=s.displayHeight/2,this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(t-this.halfWidth,e-this.halfHeight),this.position.x+=this.offset.x,this.position.y+=this.offset.y),this.updateCenter(),this.isCircle=!1,this.radius=0,this.world.staticTree.insert(this),this},setCircle:function(t,e,i){return void 0===e&&(e=this.offset.x),void 0===i&&(i=this.offset.y),0{var n=i(25084),s=i(56694),r=i(47401),o=i(72632),a=i(59192),h=i(42911),i=new s({Extends:a,initialize:function(t,e,i,s){i||s?h(i)?(s=i,i=null,s.internalCreateCallback=this.createCallbackHandler,s.internalRemoveCallback=this.removeCallbackHandler,s.createMultipleCallback=this.createMultipleCallbackHandler,s.classType=o(s,"classType",n)):Array.isArray(i)&&h(i[0])?(s=i,i=null,s.forEach(function(t){t.internalCreateCallback=this.createCallbackHandler,t.internalRemoveCallback=this.removeCallbackHandler,t.createMultipleCallback=this.createMultipleCallbackHandler,t.classType=o(t,"classType",n)})):s={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler}:s={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler,createMultipleCallback:this.createMultipleCallbackHandler,classType:n},this.world=t,this.physicsType=r.STATIC_BODY,a.call(this,e,i,s),this.type="StaticPhysicsGroup"},createCallbackHandler:function(t){t.body||this.world.enableBody(t,r.STATIC_BODY)},removeCallbackHandler:function(t){t.body&&this.world.disableBody(t)},createMultipleCallbackHandler:function(){this.refresh()},refresh:function(){for(var t=this.children.entries,e=0;e{var x=i(94240),s=i(97602),f=i(82897),n=i(56694),r=i(3909),g=i(47401),w=i(53996),T=i(92951),o=i(6659),y=i(27037),v=i(88456),m=i(41935),b=i(54726),S=i(75671),P=i(66185),d=i(44662),a=i(10850),_=i(83392),h=i(74623),E=i(25163),l=i(74118),u=i(68687),A=i(27354),c=i(61777),p=i(25299),C=i(58403),M=i(66634),O=i(28808),R=i(69360),D=i(93736),L=i(1071),i=new n({Extends:o,initialize:function(t,e){o.call(this),this.scene=t,this.bodies=new C,this.staticBodies=new C,this.pendingDestroy=new C,this.colliders=new h,this.gravity=new D(a(e,"gravity.x",0),a(e,"gravity.y",0)),this.bounds=new l(a(e,"x",0),a(e,"y",0),a(e,"width",t.sys.scale.width),a(e,"height",t.sys.scale.height)),this.checkCollision={up:a(e,"checkCollision.up",!0),down:a(e,"checkCollision.down",!0),left:a(e,"checkCollision.left",!0),right:a(e,"checkCollision.right",!0)},this.fps=a(e,"fps",60),this.fixedStep=a(e,"fixedStep",!0),this._elapsed=0,this._frameTime=1/this.fps,this._frameTimeMS=1e3*this._frameTime,this.stepsLastFrame=0,this.timeScale=a(e,"timeScale",1),this.OVERLAP_BIAS=a(e,"overlapBias",4),this.TILE_BIAS=a(e,"tileBias",16),this.forceX=a(e,"forceX",!1),this.isPaused=a(e,"isPaused",!1),this._total=0,this.drawDebug=a(e,"debug",!1),this.debugGraphic,this.defaults={debugShowBody:a(e,"debugShowBody",!0),debugShowStaticBody:a(e,"debugShowStaticBody",!0),debugShowVelocity:a(e,"debugShowVelocity",!0),bodyDebugColor:a(e,"debugBodyColor",16711935),staticBodyDebugColor:a(e,"debugStaticBodyColor",255),velocityDebugColor:a(e,"debugVelocityColor",65280)},this.maxEntries=a(e,"maxEntries",16),this.useTree=a(e,"useTree",!0),this.tree=new u(this.maxEntries),this.staticTree=new u(this.maxEntries),this.treeMinMax={minX:0,minY:0,maxX:0,maxY:0},this._tempMatrix=new R,this._tempMatrix2=new R,this.tileFilterOptions={isColliding:!0,isNotEmpty:!0,hasInterestingFace:!0},this.drawDebug&&this.createDebugGraphic()},enable:function(t,e){void 0===e&&(e=g.DYNAMIC_BODY),Array.isArray(t)||(t=[t]);for(var i=0;i=n;for(this.fixedStep||(s=.001*e,o=!0,this._elapsed=0),h=0;h=n;)this._elapsed-=n,this.step(s)}},step:function(t){for(var e,i=this.bodies.entries,s=i.length,n=0;nc&&(t.velocity.normalize().scale(c),u=c),t.speed=u},separate:function(t,e,i,s,n){var r,o,a=!1,h=!0;return!t.enable||!e.enable||t.checkCollision.none||e.checkCollision.none||!this.intersects(t,e)||i&&!1===i.call(s,t.gameObject,e.gameObject)||((h=t.isCircle||e.isCircle?(i=this.separateCircle(t,e,n)).result?!(a=!0):(r=i.x,o=i.y,!0):h)&&(i=s=!1,h=this.OVERLAP_BIAS,n?(s=c(t,e,n,h,r),i=p(t,e,n,h,o)):this.forceX||Math.abs(this.gravity.y+t.gravity.y)=e.right||t.top>=e.bottom))},circleBodyIntersects:function(t,e){var i=f(t.center.x,e.left,e.right),e=f(t.center.y,e.top,e.bottom);return(t.center.x-i)*(t.center.x-i)+(t.center.y-e)*(t.center.y-e)<=t.halfWidth*t.halfWidth},overlap:function(t,e,i,s,n){return void 0===i&&(i=null),void 0===n&&(n=i),this.collideObjects(t,e,i,s=void 0===s?null:s,n,!0)},collide:function(t,e,i,s,n){return void 0===i&&(i=null),void 0===n&&(n=i),this.collideObjects(t,e,i,s=void 0===s?null:s,n,!1)},collideObjects:function(t,e,i,s,n,r){!t.isParent||void 0!==t.physicsType&&void 0!==e&&t!==e||(t=t.children.entries),e&&e.isParent&&void 0===e.physicsType&&(e=e.children.entries);var o,a=Array.isArray(t),h=Array.isArray(e);if(this._total=0,a||h)if(!a&&h)for(o=0;ou.baseTileWidth&&(o-=l=(u.tileWidth-u.baseTileWidth)*e.scaleX,h+=l),u.tileHeight>u.baseTileHeight&&(c+=(u.tileHeight-u.baseTileHeight)*e.scaleY),l=r?null:this.tileFilterOptions,0!==(u=d(o,a,h,c,l,e.scene.cameras.main,e.layer)).length)&&this.collideSpriteVsTilesHandler(t,u,i,s,n,r,!0)},collideSpriteVsTilesHandler:function(t,e,i,s,n,r,o){for(var a,h,l=t.isBody?t:t.body,u={left:0,right:0,top:0,bottom:0},c=!1,d=0;d{t.exports={setAcceleration:function(t,e){return this.body.acceleration.set(t,e),this},setAccelerationX:function(t){return this.body.acceleration.x=t,this},setAccelerationY:function(t){return this.body.acceleration.y=t,this}}},29257:t=>{t.exports={setAngularVelocity:function(t){return this.body.angularVelocity=t,this},setAngularAcceleration:function(t){return this.body.angularAcceleration=t,this},setAngularDrag:function(t){return this.body.angularDrag=t,this}}},62122:t=>{t.exports={setBounce:function(t,e){return this.body.bounce.set(t,e),this},setBounceX:function(t){return this.body.bounce.x=t,this},setBounceY:function(t){return this.body.bounce.y=t,this},setCollideWorldBounds:function(t,e,i,s){return this.body.setCollideWorldBounds(t,e,i,s),this}}},99803:t=>{t.exports={setDebug:function(t,e,i){return this.debugShowBody=t,this.debugShowVelocity=e,this.debugBodyColor=i,this},setDebugBodyColor:function(t){return this.body.debugBodyColor=t,this},debugShowBody:{get:function(){return this.body.debugShowBody},set:function(t){this.body.debugShowBody=t}},debugShowVelocity:{get:function(){return this.body.debugShowVelocity},set:function(t){this.body.debugShowVelocity=t}},debugBodyColor:{get:function(){return this.body.debugBodyColor},set:function(t){this.body.debugBodyColor=t}}}},87145:t=>{t.exports={setDrag:function(t,e){return this.body.drag.set(t,e),this},setDragX:function(t){return this.body.drag.x=t,this},setDragY:function(t){return this.body.drag.y=t,this},setDamping:function(t){return this.body.useDamping=t,this}}},96174:t=>{t.exports={enableBody:function(t,e,i,s,n){return t&&this.body.reset(e,i),s&&(this.body.gameObject.active=!0),n&&(this.body.gameObject.visible=!0),this.body.enable=!0,this},disableBody:function(t,e){return void 0===t&&(t=!1),void 0===e&&(e=!1),this.body.stop(),this.body.enable=!1,t&&(this.body.gameObject.active=!1),e&&(this.body.gameObject.visible=!1),this},refreshBody:function(){return this.body.updateFromGameObject(),this}}},51702:t=>{t.exports={setFriction:function(t,e){return this.body.friction.set(t,e),this},setFrictionX:function(t){return this.body.friction.x=t,this},setFrictionY:function(t){return this.body.friction.y=t,this}}},25578:t=>{t.exports={setGravity:function(t,e){return this.body.gravity.set(t,e),this},setGravityX:function(t){return this.body.gravity.x=t,this},setGravityY:function(t){return this.body.gravity.y=t,this}}},72029:t=>{t.exports={setImmovable:function(t){return this.body.immovable=t=void 0===t?!0:t,this}}},34566:t=>{t.exports={setMass:function(t){return this.body.mass=t,this}}},2732:(t,e,i)=>{var d=i(15147),p=i(26673),f=i(22184),g=i(26535);t.exports=function(t,e,i,s,n,r){var o=d(t,e-s,i-s,2*s,2*s,n,r);if(0===o.length)return o;for(var a=new p(e,i,s),h=new p,l=[],u=0;u{t.exports=function(t,e,i,s,n,r,o){void 0===r&&(r=!0),void 0===o&&(o=!1);var a,h,l=[],u=[],c=t.treeMinMax;return c.minX=e,c.minY=i,c.maxX=e+s,c.maxY=i+n,o&&(u=t.staticTree.search(c)),r&&t.useTree?l=t.tree.search(c):r&&(o=t.bodies,a={position:{x:e,y:i},left:e,top:i,right:e+s,bottom:i+n,isCircle:!1},h=t.intersects,o.iterate(function(t){h(t,a)&&l.push(t)})),u.concat(l)}},57527:t=>{t.exports={setPushable:function(t){return this.body.pushable=t=void 0===t?!0:t,this}}},77687:t=>{t.exports={setOffset:function(t,e){return this.body.setOffset(t,e),this},setSize:function(t,e,i){return this.body.setSize(t,e,i),this},setBodySize:function(t,e,i){return this.body.setSize(t,e,i),this},setCircle:function(t,e,i){return this.body.setCircle(t,e,i),this}}},66536:t=>{t.exports={setVelocity:function(t,e){return this.body.setVelocity(t,e),this},setVelocityX:function(t){return this.body.setVelocityX(t),this},setVelocityY:function(t){return this.body.setVelocityY(t),this},setMaxVelocity:function(t,e){return this.body.maxVelocity.set(t,e),this}}},7864:(t,e,i)=>{t.exports={Acceleration:i(5321),Angular:i(29257),Bounce:i(62122),Debug:i(99803),Drag:i(87145),Enable:i(96174),Friction:i(51702),Gravity:i(25578),Immovable:i(72029),Mass:i(34566),OverlapCirc:i(2732),OverlapRect:i(15147),Pushable:i(57527),Size:i(77687),Velocity:i(66536)}},47401:t=>{t.exports={DYNAMIC_BODY:0,STATIC_BODY:1,GROUP:2,TILEMAPLAYER:3,FACING_NONE:10,FACING_UP:11,FACING_DOWN:12,FACING_LEFT:13,FACING_RIGHT:14}},22346:t=>{t.exports="collide"},95092:t=>{t.exports="overlap"},15775:t=>{t.exports="pause"},74142:t=>{t.exports="resume"},22825:t=>{t.exports="tilecollide"},10851:t=>{t.exports="tileoverlap"},7543:t=>{t.exports="worldbounds"},1487:t=>{t.exports="worldstep"},27037:(t,e,i)=>{t.exports={COLLIDE:i(22346),OVERLAP:i(95092),PAUSE:i(15775),RESUME:i(74142),TILE_COLLIDE:i(22825),TILE_OVERLAP:i(10851),WORLD_BOUNDS:i(7543),WORLD_STEP:i(1487)}},39977:(t,e,i)=>{var s=i(47401),i=i(98611)(!1,{ArcadePhysics:i(66150),Body:i(97602),Collider:i(3909),Components:i(7864),Events:i(27037),Factory:i(99523),GetOverlapX:i(75671),GetOverlapY:i(66185),SeparateX:i(61777),SeparateY:i(25299),Group:i(10481),Image:i(62832),Sprite:i(25084),StaticBody:i(66634),StaticGroup:i(46346),Tilemap:i(8413),World:i(85233)},s);t.exports=i},25163:t=>{t.exports=function(t,e){return t.collisionCallback?!t.collisionCallback.call(t.collisionCallbackContext,e,t):!t.layer.callbacks[t.index]||!t.layer.callbacks[t.index].callback.call(t.layer.callbacks[t.index].callbackContext,e,t)}},98209:t=>{t.exports=function(t,e){e<0?(t.blocked.none=!1,t.blocked.left=!0):0{t.exports=function(t,e){e<0?(t.blocked.none=!1,t.blocked.up=!0):0{var v=i(14405),m=i(52926),x=i(28808);t.exports=function(t,e,i,s,n,r,o){var a=s.left,h=s.top,l=s.right,u=s.bottom,c=i.faceLeft||i.faceRight,d=i.faceTop||i.faceBottom;if(o||(d=c=!0),!c&&!d)return!1;var p=0,f=0,g=0,y=1;if(e.deltaAbsX()>e.deltaAbsY()?g=-1:e.deltaAbsX(){var u=i(98209);t.exports=function(t,e,i,s,n,r){var o=0,a=e.faceLeft,h=e.faceRight,l=e.collideLeft,e=e.collideRight;return r||(e=l=h=a=!0),t.deltaX()<0&&e&&t.checkCollision.left?h&&t.xi&&(o=t.right-i)>n&&(o=0),0!==o&&(t.customSeparateX?t.overlapX=o:u(t,o)),o}},52926:(t,e,i)=>{var u=i(72792);t.exports=function(t,e,i,s,n,r){var o=0,a=e.faceTop,h=e.faceBottom,l=e.collideUp,e=e.collideDown;return r||(e=l=h=a=!0),t.deltaY()<0&&e&&t.checkCollision.up?h&&t.yi&&(o=t.bottom-i)>n&&(o=0),0!==o&&(t.customSeparateY?t.overlapY=o:u(t,o)),o}},28808:t=>{t.exports=function(t,e){return!(e.right<=t.left||e.bottom<=t.top||e.position.x>=t.right||e.position.y>=t.bottom)}},8413:(t,e,i)=>{i={ProcessTileCallbacks:i(25163),ProcessTileSeparationX:i(98209),ProcessTileSeparationY:i(72792),SeparateTile:i(27354),TileCheckX:i(14405),TileCheckY:i(52926),TileIntersectsBody:i(28808)};t.exports=i},53954:(t,e,i)=>{t.exports={Arcade:i(39977),Matter:i(45949)}},63568:(t,e,i)=>{var s=i(56694),n=i(93736),i=new s({initialize:function(){this.boundsCenter=new n,this.centerDiff=new n},parseBody:function(t){var e,i,s,n,r;return!(!(t=t.hasOwnProperty("body")?t.body:t).hasOwnProperty("bounds")||!t.hasOwnProperty("centerOfMass")||(e=this.boundsCenter,i=this.centerDiff,s=t.bounds.max.x-t.bounds.min.x,n=t.bounds.max.y-t.bounds.min.y,r=s*t.centerOfMass.x,t=n*t.centerOfMass.y,e.set(s/2,n/2),i.set(r-e.x,t-e.y),0))},getTopLeft:function(t,e,i){var s;return void 0===e&&(e=0),void 0===i&&(i=0),!!this.parseBody(t)&&(t=this.boundsCenter,s=this.centerDiff,new n(e+t.x+s.x,i+t.y+s.y))},getTopCenter:function(t,e,i){var s;return void 0===e&&(e=0),void 0===i&&(i=0),!!this.parseBody(t)&&(t=this.boundsCenter,s=this.centerDiff,new n(e+s.x,i+t.y+s.y))},getTopRight:function(t,e,i){var s;return void 0===e&&(e=0),void 0===i&&(i=0),!!this.parseBody(t)&&(t=this.boundsCenter,s=this.centerDiff,new n(e-(t.x-s.x),i+t.y+s.y))},getLeftCenter:function(t,e,i){var s;return void 0===e&&(e=0),void 0===i&&(i=0),!!this.parseBody(t)&&(t=this.boundsCenter,s=this.centerDiff,new n(e+t.x+s.x,i+s.y))},getCenter:function(t,e,i){return void 0===e&&(e=0),void 0===i&&(i=0),!!this.parseBody(t)&&(t=this.centerDiff,new n(e+t.x,i+t.y))},getRightCenter:function(t,e,i){var s;return void 0===e&&(e=0),void 0===i&&(i=0),!!this.parseBody(t)&&(t=this.boundsCenter,s=this.centerDiff,new n(e-(t.x-s.x),i+s.y))},getBottomLeft:function(t,e,i){var s;return void 0===e&&(e=0),void 0===i&&(i=0),!!this.parseBody(t)&&(t=this.boundsCenter,s=this.centerDiff,new n(e+t.x+s.x,i-(t.y-s.y)))},getBottomCenter:function(t,e,i){var s;return void 0===e&&(e=0),void 0===i&&(i=0),!!this.parseBody(t)&&(t=this.boundsCenter,s=this.centerDiff,new n(e+s.x,i-(t.y-s.y)))},getBottomRight:function(t,e,i){var s;return void 0===e&&(e=0),void 0===i&&(i=0),!!this.parseBody(t)&&(t=this.boundsCenter,s=this.centerDiff,new n(e-(t.x-s.x),i-(t.y-s.y)))}});t.exports=i},18171:(t,e,i)=>{var s=i(16929);s.Body=i(84125),s.Composite=i(11299),s.World=i(72005),s.Collision=i(63454),s.Detector=i(13657),s.Pairs=i(91327),s.Pair=i(70584),s.Query=i(13390),s.Resolver=i(44272),s.Constraint=i(52838),s.Common=i(68758),s.Engine=i(45775),s.Events=i(39073),s.Sleeping=i(22806),s.Plugin=i(84474),s.Bodies=i(68516),s.Composites=i(56643),s.Axes=i(50658),s.Bounds=i(84091),s.Svg=i(92765),s.Vector=i(10438),s.Vertices=i(39745),s.World.add=s.Composite.add,s.World.remove=s.Composite.remove,s.World.addComposite=s.Composite.addComposite,s.World.addBody=s.Composite.addBody,s.World.addConstraint=s.Composite.addConstraint,s.World.clear=s.Composite.clear,t.exports=s},72653:(t,e,i)=>{var u=i(68516),s=i(56694),c=i(56643),r=i(52838),d=i(92765),n=i(3860),p=i(7030),o=i(73658),a=i(84720),h=i(10998),l=i(72829),f=i(88596),g=i(39745),i=new s({initialize:function(t){this.world=t,this.scene=t.scene,this.sys=t.scene.sys},rectangle:function(t,e,i,s,n){t=u.rectangle(t,e,i,s,n);return this.world.add(t),t},trapezoid:function(t,e,i,s,n,r){t=u.trapezoid(t,e,i,s,n,r);return this.world.add(t),t},circle:function(t,e,i,s,n){t=u.circle(t,e,i,s,n);return this.world.add(t),t},polygon:function(t,e,i,s,n){t=u.polygon(t,e,i,s,n);return this.world.add(t),t},fromVertices:function(t,e,i,s,n,r,o){"string"==typeof i&&(i=g.fromPath(i));t=u.fromVertices(t,e,i,s,n,r,o);return this.world.add(t),t},fromPhysicsEditor:function(t,e,i,s,n){void 0===n&&(n=!0);t=h.parseBody(t,e,i,s);return n&&!this.world.has(t)&&this.world.add(t),t},fromSVG:function(t,e,i,s,n,r){void 0===s&&(s=1),void 0===n&&(n={}),void 0===r&&(r=!0);for(var o=i.getElementsByTagName("path"),a=[],h=0;h{var o=i(74527),a=i(72632),h=i(93736);t.exports=function(t,s,e,i){void 0===e&&(e={}),void 0===i&&(i=!0);var n=s.x,r=s.y;return s.body={temp:!0,position:{x:n,y:r}},[o.Bounce,o.Collision,o.Force,o.Friction,o.Gravity,o.Mass,o.Sensor,o.SetBody,o.Sleep,o.Static,o.Transform,o.Velocity].forEach(function(t){for(var e in t)(i=t[e]).get&&"function"==typeof i.get||i.set&&"function"==typeof i.set?Object.defineProperty(s,e,{get:t[e].get,set:t[e].set}):Object.defineProperty(s,e,{value:t[e]});var i}),s.world=t,s._tempVec2=new h(n,r),e.hasOwnProperty("type")&&"body"===e.type?s.setExistingBody(e,i):(t=(t=a(e,"shape",null))||"rectangle",e.addToWorld=i,s.setBody(t,e)),s}},7030:(t,e,i)=>{var s=i(56694),n=i(74527),o=i(89980),a=i(72632),r=i(1539),h=i(58210),l=i(93736),i=new s({Extends:r,Mixins:[n.Bounce,n.Collision,n.Force,n.Friction,n.Gravity,n.Mass,n.Sensor,n.SetBody,n.Sleep,n.Static,n.Transform,n.Velocity,h],initialize:function(t,e,i,s,n,r){o.call(this,t.scene,"Image"),this._crop=this.resetCropObject(),this.setTexture(s,n),this.setSizeToFrame(),this.setOrigin(),this.world=t,this._tempVec2=new l(e,i);s=a(r,"shape",null);s?this.setBody(s,r):this.setRectangle(this.width,this.height,r),this.setPosition(e,i),this.initPipeline(),this.initPostPipeline(!0)}});t.exports=i},50583:(t,e,i)=>{var r=i(84093),s=i(50658),n=i(68516),o=i(84125),a=i(63568),h=i(84091),l=i(56694),u=i(63454),c=i(68758),d=i(11299),p=i(56643),f=i(52838),g=i(13657),y=i(53996),v=i(72653),m=i(72632),x=i(10850),w=i(1675),T=i(80391),b=i(16929),S=i(44097),P=i(30657),_=i(70584),E=i(91327),A=i(84474),C=i(91963),M=i(13390),O=i(44272),R=i(7599),D=i(92765),L=i(10438),k=i(39745),F=i(31468),c=(c.setDecomp(i(81084)),new l({initialize:function(t){this.scene=t,this.systems=t.sys,this.config=this.getConfig(),this.world,this.add,this.bodyBounds,this.body=o,this.composite=d,this.collision=u,this.detector=g,this.pair=_,this.pairs=E,this.query=M,this.resolver=O,this.constraint=f,this.bodies=n,this.composites=p,this.axes=s,this.bounds=h,this.svg=D,this.vector=L,this.vertices=k,this.verts=k,this._tempVec2=L.create(),x(this.config,"plugins.collisionevents",!0)&&this.enableCollisionEventsPlugin(),x(this.config,"plugins.attractors",!1)&&this.enableAttractorPlugin(),x(this.config,"plugins.wrap",!1)&&this.enableWrapPlugin(),O._restingThresh=x(this.config,"restingThresh",4),O._restingThreshTangent=x(this.config,"restingThreshTangent",6),O._positionDampen=x(this.config,"positionDampen",.9),O._positionWarming=x(this.config,"positionWarming",.8),O._frictionNormalMultiplier=x(this.config,"frictionNormalMultiplier",5),t.sys.events.once(R.BOOT,this.boot,this),t.sys.events.on(R.START,this.start,this)},boot:function(){this.world=new F(this.scene,this.config),this.add=new v(this.world),this.bodyBounds=new a,this.systems.events.once(R.DESTROY,this.destroy,this)},start:function(){this.world||(this.world=new F(this.scene,this.config),this.add=new v(this.world));var t=this.systems.events;t.on(R.UPDATE,this.world.update,this.world),t.on(R.POST_UPDATE,this.world.postUpdate,this.world),t.once(R.SHUTDOWN,this.shutdown,this)},getConfig:function(){var t=this.systems.game.config.physics,e=this.systems.settings.physics;return P(m(e,"matter",{}),m(t,"matter",{}))},enableAttractorPlugin:function(){return A.register(w),A.use(b,w),this},enableWrapPlugin:function(){return A.register(S),A.use(b,S),this},enableCollisionEventsPlugin:function(){return A.register(T),A.use(b,T),this},pause:function(){return this.world.pause()},resume:function(){return this.world.resume()},set60Hz:function(){return this.world.getDelta=this.world.update60Hz,this.world.autoUpdate=!0,this},set30Hz:function(){return this.world.getDelta=this.world.update30Hz,this.world.autoUpdate=!0,this},step:function(t,e){this.world.step(t,e)},containsPoint:function(t,e,i){t=this.getMatterBodies(t);e=L.create(e,i);return 0{var o=i(16569),s=i(56694),n=i(74527),a=i(89980),h=i(72632),r=i(58210),l=i(13747),u=i(93736),i=new s({Extends:l,Mixins:[n.Bounce,n.Collision,n.Force,n.Friction,n.Gravity,n.Mass,n.Sensor,n.SetBody,n.Sleep,n.Static,n.Transform,n.Velocity,r],initialize:function(t,e,i,s,n,r){a.call(this,t.scene,"Sprite"),this._crop=this.resetCropObject(),this.anims=new o(this),this.setTexture(s,n),this.setSizeToFrame(),this.setOrigin(),this.world=t,this._tempVec2=new u(e,i);s=h(r,"shape",null);s?this.setBody(s,r):this.setRectangle(this.width,this.height,r),this.setPosition(e,i),this.initPipeline(),this.initPostPipeline(!0)}});t.exports=i},84720:(t,e,i)=>{var g=i(68516),y=i(84125),s=i(56694),n=i(74527),v=i(28699),r=i(6659),m=i(72632),x=i(19256),w=i(39745),i=new s({Extends:r,Mixins:[n.Bounce,n.Collision,n.Friction,n.Gravity,n.Mass,n.Sensor,n.Sleep,n.Static],initialize:function(t,e,i){r.call(this),this.tile=e,this.world=t,e.physics.matterBody&&e.physics.matterBody.destroy(),e.physics.matterBody=this;var t=m(i,"body",null),s=m(i,"addToWorld",!0);t?this.setBody(t,s):(s=e.getCollisionGroup(),0{var r=i(68516),l=i(84125),u=i(68758),c=i(72632),n=i(39745);t.exports={parseBody:function(t,e,i,s){void 0===s&&(s={});for(var n=c(i,"fixtures",[]),r=[],o=0;o{var l=i(68516),u=i(84125);t.exports={parseBody:function(t,e,i,s){void 0===s&&(s={});var n,r=i.vertices;if(1===r.length)s.vertices=r[0],n=u.create(s),l.flagCoincidentParts(n.parts);else{for(var o=[],a=0;a{var o=i(84091),s=i(56694),a=i(11299),n=i(52838),h=i(13657),l=i(35416),r=i(33963),u=i(30657),c=i(22806),d=i(93736),p=i(39745),i=new s({initialize:function(t,e,i){void 0===i&&(i={}),this.scene=t,this.world=e,this.camera=null,this.pointer=null,this.active=!0,this.position=new d,this.body=null,this.part=null,this.constraint=n.create(u(i,{label:"Pointer Constraint",pointA:{x:0,y:0},pointB:{x:0,y:0},length:.01,stiffness:.1,angularStiffness:1,collisionFilter:{category:1,mask:4294967295,group:0}})),this.world.on(l.BEFORE_UPDATE,this.update,this),t.sys.input.on(r.POINTER_DOWN,this.onDown,this),t.sys.input.on(r.POINTER_UP,this.onUp,this)},onDown:function(t){this.pointer||(this.pointer=t,this.camera=t.camera)},onUp:function(t){t===this.pointer&&(this.pointer=null)},getBody:function(t){var e=this.position,i=this.constraint;this.camera.getWorldPoint(t.x,t.y,e);for(var s=a.allBodies(this.world.localWorld),n=0;n{var r=i(68516),s=i(84125),n=i(56694),y=i(68758),l=i(11299),u=i(45775),c=i(6659),o=i(35416),d=i(72632),p=i(10850),a=i(84125),h=i(39073),f=i(84720),g=i(72005),v=i(10438),i=new n({Extends:c,initialize:function(t,e){c.call(this),this.scene=t,this.engine=u.create(e),this.localWorld=this.engine.world;var i,s=p(e,"gravity",null),s=(s?this.setGravity(s.x,s.y,s.scale):!1===s&&this.setGravity(0,0,0),this.walls={left:null,right:null,top:null,bottom:null},this.enabled=p(e,"enabled",!0),this.getDelta=p(e,"getDelta",this.update60Hz),d(e,"runner",{})),n=d(s,"fps",!1),r=d(s,"fps",60),o=d(s,"delta",1e3/r),a=d(s,"deltaMin",1e3/r),h=d(s,"deltaMax",1e3/(.5*r)),n=(this.runner={fps:r=n?r:1e3/o,deltaSampleSize:d(s,"deltaSampleSize",60),counterTimestamp:0,frameCounter:0,deltaHistory:[],timePrev:null,timeScalePrev:1,frameRequestId:null,isFixed:d(s,"isFixed",!1),delta:o,deltaMin:a,deltaMax:h},this.autoUpdate=p(e,"autoUpdate",!0),p(e,"debug",!1));this.drawDebug="object"==typeof n||n,this.debugGraphic,this.debugConfig={showAxes:d(n,"showAxes",!1),showAngleIndicator:d(n,"showAngleIndicator",!1),angleColor:d(n,"angleColor",15208787),showBroadphase:d(n,"showBroadphase",!1),broadphaseColor:d(n,"broadphaseColor",16757760),showBounds:d(n,"showBounds",!1),boundsColor:d(n,"boundsColor",16777215),showVelocity:d(n,"showVelocity",!1),velocityColor:d(n,"velocityColor",44783),showCollisions:d(n,"showCollisions",!1),collisionColor:d(n,"collisionColor",16094476),showSeparations:d(n,"showSeparations",!1),separationColor:d(n,"separationColor",16753920),showBody:d(n,"showBody",!0),showStaticBody:d(n,"showStaticBody",!0),showInternalEdges:d(n,"showInternalEdges",!1),renderFill:d(n,"renderFill",!1),renderLine:d(n,"renderLine",!0),fillColor:d(n,"fillColor",1075465),fillOpacity:d(n,"fillOpacity",1),lineColor:d(n,"lineColor",2678297),lineOpacity:d(n,"lineOpacity",1),lineThickness:d(n,"lineThickness",1),staticFillColor:d(n,"staticFillColor",857979),staticLineColor:d(n,"staticLineColor",1255396),showSleeping:d(n,"showSleeping",!1),staticBodySleepOpacity:d(n,"staticBodySleepOpacity",.7),sleepFillColor:d(n,"sleepFillColor",4605510),sleepLineColor:d(n,"sleepLineColor",10066585),showSensors:d(n,"showSensors",!0),sensorFillColor:d(n,"sensorFillColor",857979),sensorLineColor:d(n,"sensorLineColor",1255396),showPositions:d(n,"showPositions",!0),positionSize:d(n,"positionSize",4),positionColor:d(n,"positionColor",14697178),showJoint:d(n,"showJoint",!0),jointColor:d(n,"jointColor",14737474),jointLineOpacity:d(n,"jointLineOpacity",1),jointLineThickness:d(n,"jointLineThickness",2),pinSize:d(n,"pinSize",4),pinColor:d(n,"pinColor",4382944),springColor:d(n,"springColor",14697184),anchorColor:d(n,"anchorColor",15724527),anchorSize:d(n,"anchorSize",4),showConvexHulls:d(n,"showConvexHulls",!1),hullColor:d(n,"hullColor",14091216)},this.drawDebug&&this.createDebugGraphic(),this.setEventsProxy(),d(e,"setBounds",!1)&&("boolean"==typeof(r=e.setBounds)?this.setBounds():(s=d(r,"x",0),o=d(r,"y",0),a=d(r,"width",t.sys.scale.width),h=d(r,"height",t.sys.scale.height),n=d(r,"thickness",64),e=d(r,"left",!0),t=d(r,"right",!0),i=d(r,"top",!0),r=d(r,"bottom",!0),this.setBounds(s,o,a,h,n,e,t,i,r)))},setCompositeRenderStyle:function(t){for(var e,i,s=t.bodies,n=t.constraints,r=t.composites,o=0;os.deltaMax?s.deltaMax:e,s.delta=e),s.timeScalePrev=n.timeScale,s.frameCounter+=1,1e3<=t-s.counterTimestamp&&(s.fps=s.frameCounter*((t-s.counterTimestamp)/1e3),s.counterTimestamp=t,s.frameCounter=0),u.update(i,e))},step:function(t){u.update(this.engine,t)},update60Hz:function(){return 1e3/60},update30Hz:function(){return 1e3/30},has:function(t){t=t.hasOwnProperty("body")?t.body:t;return null!==l.get(this.localWorld,t.id,t.type)},getAllBodies:function(){return l.allBodies(this.localWorld)},getAllConstraints:function(){return l.allConstraints(this.localWorld)},getAllComposites:function(){return l.allComposites(this.localWorld)},postUpdate:function(){var t,e,i,s;this.drawDebug&&(t=this.debugConfig,e=this.engine,i=this.debugGraphic,s=l.allBodies(this.localWorld),this.debugGraphic.clear(),t.showBroadphase&&e.broadphase.controller&&this.renderGrid(e.broadphase,i,t.broadphaseColor,.5),t.showBounds&&this.renderBodyBounds(s,i,t.boundsColor,.5),(t.showBody||t.showStaticBody)&&this.renderBodies(s),t.showJoint&&this.renderJoints(),(t.showAxes||t.showAngleIndicator)&&this.renderBodyAxes(s,i,t.showAxes,t.angleColor,.5),t.showVelocity&&this.renderBodyVelocity(s,i,t.velocityColor,1,2),t.showSeparations&&this.renderSeparations(e.pairs.list,i,t.separationColor),t.showCollisions)&&this.renderCollisions(e.pairs.list,i,t.collisionColor)},renderGrid:function(t,e,i,s){e.lineStyle(1,i,s);for(var n=y.keys(t.buckets),r=0;r{t.exports={setBounce:function(t){return this.body.restitution=t,this}}},70679:t=>{t.exports={setCollisionCategory:function(t){return this.body.collisionFilter.category=t,this},setCollisionGroup:function(t){return this.body.collisionFilter.group=t,this},setCollidesWith:function(t){var e=0;if(Array.isArray(t))for(var i=0;i{var s=i(84125);t.exports={applyForce:function(t){return this._tempVec2.set(this.body.position.x,this.body.position.y),s.applyForce(this.body,this._tempVec2,t),this},applyForceFrom:function(t,e){return s.applyForce(this.body,t,e),this},thrust:function(t){var e=this.body.angle;return this._tempVec2.set(t*Math.cos(e),t*Math.sin(e)),s.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this},thrustLeft:function(t){var e=this.body.angle-Math.PI/2;return this._tempVec2.set(t*Math.cos(e),t*Math.sin(e)),s.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this},thrustRight:function(t){var e=this.body.angle+Math.PI/2;return this._tempVec2.set(t*Math.cos(e),t*Math.sin(e)),s.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this},thrustBack:function(t){var e=this.body.angle-Math.PI;return this._tempVec2.set(t*Math.cos(e),t*Math.sin(e)),s.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this}}},74015:t=>{t.exports={setFriction:function(t,e,i){return this.body.friction=t,void 0!==e&&(this.body.frictionAir=e),void 0!==i&&(this.body.frictionStatic=i),this},setFrictionAir:function(t){return this.body.frictionAir=t,this},setFrictionStatic:function(t){return this.body.frictionStatic=t,this}}},11535:t=>{t.exports={setIgnoreGravity:function(t){return this.body.ignoreGravity=t,this}}},74497:(t,e,i)=>{var s=i(84125),n=i(93736);t.exports={setMass:function(t){return s.setMass(this.body,t),this},setDensity:function(t){return s.setDensity(this.body,t),this},centerOfMass:{get:function(){return new n(this.body.centerOfMass.x,this.body.centerOfMass.y)}}}},75529:t=>{t.exports={setSensor:function(t){return this.body.isSensor=t,this},isSensor:function(){return this.body.isSensor}}},64024:(t,e,i)=>{var d=i(68516),p=i(84125),a=i(88456),f=i(72632),g=i(10998),y=i(72829),v=i(39745);t.exports={setRectangle:function(t,e,i){return this.setBody({type:"rectangle",width:t,height:e},i)},setCircle:function(t,e){return this.setBody({type:"circle",radius:t},e)},setPolygon:function(t,e,i){return this.setBody({type:"polygon",sides:e,radius:t},i)},setTrapezoid:function(t,e,i,s){return this.setBody({type:"trapezoid",width:t,height:e,slope:i},s)},setExistingBody:function(t,e){void 0===e&&(e=!0),this.body&&this.world.remove(this.body,!0),this.body=t;for(var i=0;i{var s=i(35416),n=i(22806),r=i(39073);t.exports={setToSleep:function(){return n.set(this.body,!0),this},setAwake:function(){return n.set(this.body,!1),this},setSleepThreshold:function(t){return this.body.sleepThreshold=t=void 0===t?60:t,this},setSleepEvents:function(t,e){return this.setSleepStartEvent(t),this.setSleepEndEvent(e),this},setSleepStartEvent:function(t){var e;return t?(e=this.world,r.on(this.body,"sleepStart",function(t){e.emit(s.SLEEP_START,t,this)})):r.off(this.body,"sleepStart"),this},setSleepEndEvent:function(t){var e;return t?(e=this.world,r.on(this.body,"sleepEnd",function(t){e.emit(s.SLEEP_END,t,this)})):r.off(this.body,"sleepEnd"),this}}},82884:(t,e,i)=>{var s=i(84125);t.exports={setStatic:function(t){return s.setStatic(this.body,t),this},isStatic:function(){return this.body.isStatic}}},4753:(t,e,i)=>{var r=i(84125),s=i(83392),n=i(35786),o=i(62138);t.exports={x:{get:function(){return this.body.position.x},set:function(t){this._tempVec2.set(t,this.y),r.setPosition(this.body,this._tempVec2)}},y:{get:function(){return this.body.position.y},set:function(t){this._tempVec2.set(this.x,t),r.setPosition(this.body,this._tempVec2)}},scaleX:{get:function(){return this._scaleX},set:function(t){var e=1/this._scaleX,i=1/this._scaleY;this._scaleX=t,0===this._scaleX?this.renderFlags&=-5:this.renderFlags|=4,r.scale(this.body,e,i),r.scale(this.body,t,this._scaleY)}},scaleY:{get:function(){return this._scaleY},set:function(t){var e=1/this._scaleX,i=1/this._scaleY;this._scaleY=t,0===this._scaleY?this.renderFlags&=-5:this.renderFlags|=4,r.scale(this.body,e,i),r.scale(this.body,this._scaleX,t)}},angle:{get:function(){return o(this.body.angle*s.RAD_TO_DEG)},set:function(t){this.rotation=o(t)*s.DEG_TO_RAD}},rotation:{get:function(){return this.body.angle},set:function(t){this._rotation=n(t),r.setAngle(this.body,this._rotation)}},setPosition:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this._tempVec2.set(t,e),r.setPosition(this.body,this._tempVec2),this},setRotation:function(t){return this._rotation=n(t=void 0===t?0:t),r.setAngle(this.body,t),this},setFixedRotation:function(){return r.setInertia(this.body,1/0),this},setAngle:function(t){return this.angle=t=void 0===t?0:t,r.setAngle(this.body,this.rotation),this},setScale:function(t,e,i){void 0===t&&(t=1),void 0===e&&(e=t);var s=1/this._scaleX,n=1/this._scaleY;return this._scaleX=t,this._scaleY=e,r.scale(this.body,s,n,i),r.scale(this.body,t,e,i),this}}},37268:(t,e,i)=>{var s=i(84125);t.exports={setVelocityX:function(t){return this._tempVec2.set(t,this.body.velocity.y),s.setVelocity(this.body,this._tempVec2),this},setVelocityY:function(t){return this._tempVec2.set(this.body.velocity.x,t),s.setVelocity(this.body,this._tempVec2),this},setVelocity:function(t,e){return this._tempVec2.set(t,e),s.setVelocity(this.body,this._tempVec2),this},getVelocity:function(){return s.getVelocity(this.body)},setAngularVelocity:function(t){return s.setAngularVelocity(this.body,t),this},getAngularVelocity:function(){return s.getAngularVelocity(this.body)},setAngularSpeed:function(t){return s.setAngularSpeed(this.body,t),this},getAngularSpeed:function(){return s.getAngularSpeed(this.body)}}},74527:(t,e,i)=>{t.exports={Bounce:i(95349),Collision:i(70679),Force:i(77178),Friction:i(74015),Gravity:i(11535),Mass:i(74497),Sensor:i(75529),SetBody:i(64024),Sleep:i(25106),Static:i(82884),Transform:i(4753),Velocity:i(37268)}},63201:t=>{t.exports="afteradd"},30474:t=>{t.exports="afterremove"},44822:t=>{t.exports="afterupdate"},88820:t=>{t.exports="beforeadd"},94849:t=>{t.exports="beforeremove"},6391:t=>{t.exports="beforeupdate"},96738:t=>{t.exports="collisionactive"},7916:t=>{t.exports="collisionend"},59529:t=>{t.exports="collisionstart"},10219:t=>{t.exports="dragend"},183:t=>{t.exports="drag"},39143:t=>{t.exports="dragstart"},16483:t=>{t.exports="pause"},35806:t=>{t.exports="resume"},22106:t=>{t.exports="sleepend"},5803:t=>{t.exports="sleepstart"},35416:(t,e,i)=>{t.exports={AFTER_ADD:i(63201),AFTER_REMOVE:i(30474),AFTER_UPDATE:i(44822),BEFORE_ADD:i(88820),BEFORE_REMOVE:i(94849),BEFORE_UPDATE:i(6391),COLLISION_ACTIVE:i(96738),COLLISION_END:i(7916),COLLISION_START:i(59529),DRAG_END:i(10219),DRAG:i(183),DRAG_START:i(39143),PAUSE:i(16483),RESUME:i(35806),SLEEP_END:i(22106),SLEEP_START:i(5803)}},45949:(t,e,i)=>{t.exports={BodyBounds:i(63568),Components:i(74527),Events:i(35416),Factory:i(72653),MatterGameObject:i(3860),Image:i(7030),Matter:i(18171),MatterPhysics:i(50583),PolyDecomp:i(81084),Sprite:i(73658),TileBody:i(84720),PhysicsEditorParser:i(10998),PhysicsJSONParser:i(72829),PointerConstraint:i(88596),World:i(31468)}},84125:(t,e,i)=>{var s,c={},d=(t.exports=c,i(39745)),l=i(10438),n=i(22806),u=i(68758),p=i(84091),f=i(50658);c._timeCorrection=!0,c._inertiaScale=4,c._nextCollidingGroupId=1,c._nextNonCollidingGroupId=-1,c._nextCategory=1,c._baseDelta=1e3/60,c.create=function(t){var e={id:u.nextId(),type:"body",label:"Body",parts:[],plugin:{},angle:0,vertices:null,position:{x:0,y:0},force:{x:0,y:0},torque:0,positionImpulse:{x:0,y:0},constraintImpulse:{x:0,y:0,angle:0},totalContacts:0,speed:0,angularSpeed:0,velocity:{x:0,y:0},angularVelocity:0,isSensor:!1,isStatic:!1,isSleeping:!1,motion:0,sleepThreshold:60,density:.001,restitution:0,friction:.1,frictionStatic:.5,frictionAir:.01,collisionFilter:{category:1,mask:4294967295,group:0},slop:.05,timeScale:1,events:null,bounds:null,chamfer:null,circleRadius:0,positionPrev:null,anglePrev:0,parent:null,axes:null,area:0,mass:0,inverseMass:0,inertia:0,deltaTime:1e3/60,inverseInertia:0,_original:null,render:{visible:!0,opacity:1,sprite:{xOffset:0,yOffset:0},fillColor:null,fillOpacity:null,lineColor:null,lineOpacity:null,lineThickness:null},gameObject:null,scale:{x:1,y:1},centerOfMass:{x:0,y:0},centerOffset:{x:0,y:0},gravityScale:{x:1,y:1},ignoreGravity:!1,ignorePointer:!1,onCollideCallback:null,onCollideEndCallback:null,onCollideActiveCallback:null,onCollideWith:{}},e=(!t.hasOwnProperty("position")&&t.hasOwnProperty("vertices")?t.position=d.centre(t.vertices):t.hasOwnProperty("vertices")||(e.vertices=d.fromPath("L 0 0 L 40 0 L 40 40 L 0 40")),u.extend(e,t));return s(e,t),e.setOnCollideWith=function(t,e){return e?this.onCollideWith[t.id]=e:delete this.onCollideWith[t.id],this},e},c.nextGroup=function(t){return t?c._nextNonCollidingGroupId--:c._nextCollidingGroupId++},c.nextCategory=function(){return c._nextCategory=c._nextCategory<<1,c._nextCategory},s=function(t,e){var i,s,n,r;e=e||{},c.set(t,{bounds:t.bounds||p.create(t.vertices),positionPrev:t.positionPrev||l.clone(t.position),anglePrev:t.anglePrev||t.angle,vertices:t.vertices,parts:t.parts||[t],isStatic:t.isStatic,isSleeping:t.isSleeping,parent:t.parent||t}),d.rotate(t.vertices,t.angle,t.position),f.rotate(t.axes,t.angle),p.update(t.bounds,t.vertices,t.velocity),c.set(t,{axes:e.axes||t.axes,area:e.area||t.area,mass:e.mass||t.mass,inertia:e.inertia||t.inertia}),1===t.parts.length&&(e=t.bounds,i=t.centerOfMass,s=t.centerOffset,n=e.max.x-e.min.x,r=e.max.y-e.min.y,i.x=-(e.min.x-t.position.x)/n,i.y=-(e.min.y-t.position.y)/r,s.x=n*i.x,s.y=r*i.y)},c.set=function(t,e,i){for(var s in"string"==typeof e&&(s=e,(e={})[s]=i),e)if(Object.prototype.hasOwnProperty.call(e,s))switch(i=e[s],s){case"isStatic":c.setStatic(t,i);break;case"isSleeping":n.set(t,i);break;case"mass":c.setMass(t,i);break;case"density":c.setDensity(t,i);break;case"inertia":c.setInertia(t,i);break;case"vertices":c.setVertices(t,i);break;case"position":c.setPosition(t,i);break;case"angle":c.setAngle(t,i);break;case"velocity":c.setVelocity(t,i);break;case"angularVelocity":c.setAngularVelocity(t,i);break;case"speed":c.setSpeed(t,i);break;case"angularSpeed":c.setAngularSpeed(t,i);break;case"parts":c.setParts(t,i);break;case"centre":c.setCentre(t,i);break;default:t[s]=i}},c.setStatic=function(t,e){for(var i=0;i{var c={},o=(t.exports=c,i(39073)),r=i(68758),a=i(84091),d=i(84125);c.create=function(t){return r.extend({id:r.nextId(),type:"composite",parent:null,isModified:!1,bodies:[],constraints:[],composites:[],label:"Composite",plugin:{},cache:{allBodies:null,allConstraints:null,allComposites:null}},t)},c.setModified=function(t,e,i,s){if(o.trigger(t,"compositeModified",t),(t.isModified=e)&&t.cache&&(t.cache.allBodies=null,t.cache.allConstraints=null,t.cache.allComposites=null),i&&t.parent&&c.setModified(t.parent,e,i,s),s)for(var n=0;n{var s={},t=(t.exports=s,i(11299));s.create=t.create,s.add=t.add,s.remove=t.remove,s.clear=t.clear,s.addComposite=t.addComposite,s.addBody=t.addBody,s.addConstraint=t.addConstraint},63454:(t,e,i)=>{var h={};t.exports=h;var l=i(39745),u=i(70584),g=[],c={overlap:0,axis:null},d={overlap:0,axis:null};h.create=function(t,e){return{pair:null,collided:!1,bodyA:t,bodyB:e,parentA:t.parent,parentB:e.parent,depth:0,normal:{x:0,y:0},tangent:{x:0,y:0},penetration:{x:0,y:0},supports:[]}},h.collides=function(t,e,i){var s,n,r,o,a;return h._overlapAxes(c,t.vertices,e.vertices,t.axes),c.overlap<=0||(h._overlapAxes(d,e.vertices,t.vertices,e.axes),d.overlap<=0)?null:((i=i&&i.table[u.id(t,e)])?s=i.collision:((s=h.create(t,e)).collided=!0,s.bodyA=t.idT?T=r:rb?b=r:r{var e={};(t.exports=e).create=function(t){return{vertex:t,normalImpulse:0,tangentImpulse:0}}},13657:(t,e,i)=>{var E={},s=(t.exports=E,i(68758)),A=i(63454);E.create=function(t){return s.extend({bodies:[],pairs:null},t)},E.setBodies=function(t,e){t.bodies=e.slice(0)},E.clear=function(t){t.bodies=[]},E.collisions=function(t){var e,i=[],s=t.pairs,n=t.bodies,r=n.length,o=E.canCollide,a=A.collides;for(n.sort(E._compareBoundsX),e=0;eu)break;if(!(c<_.min.y||d>_.max.y)&&(!p||!v.isStatic&&!v.isSleeping)&&o(l.collisionFilter,v.collisionFilter)){var m=v.parts.length;if(g&&1===m)(S=a(l,v,s))&&i.push(S);else for(var x=1_.max.x||h.max.x<_.min.x||h.max.y<_.min.y||h.min.y>_.max.y||(S=a(T,P,s))&&i.push(S)}}}return i},E.canCollide=function(t,e){return t.group===e.group&&0!==t.group?0{var n={},p=(t.exports=n,i(17319));n.create=function(t,e){var i=t.bodyA,s=t.bodyB,i={id:n.id(i,s),bodyA:i,bodyB:s,collision:t,contacts:[],activeContacts:[],separation:0,isActive:!0,confirmedActive:!0,isSensor:i.isSensor||s.isSensor,timeCreated:e,timeUpdated:e,inverseMass:0,friction:0,frictionStatic:0,restitution:0,slop:0};return n.update(i,t,e),i},n.update=function(t,e,i){var s=t.contacts,n=e.supports,r=t.activeContacts,o=e.parentA,a=e.parentB,h=o.vertices.length;t.isActive=!0,t.timeUpdated=i,t.collision=e,t.separation=e.depth,t.inverseMass=o.inverseMass+a.inverseMass,t.friction=(o.frictiona.frictionStatic?o:a).frictionStatic,t.restitution=(o.restitution>a.restitution?o:a).restitution,t.slop=(o.slop>a.slop?o:a).slop,e.pair=t;for(var l=r.length=0;l{var s={},g=(t.exports=s,i(70584)),n=i(68758);s.create=function(t){return n.extend({table:{},list:[],collisionStart:[],collisionActive:[],collisionEnd:[]},t)},s.update=function(t,e,i){var s,n,r,o=t.list,a=o.length,h=t.table,l=e.length,u=t.collisionStart,c=t.collisionEnd,d=t.collisionActive;for(u.length=0,c.length=0,f=d.length=0;f{var u={},c=(t.exports=u,i(10438)),p=i(63454),f=i(84091),d=i(68516),a=i(39745);u.collides=function(t,e){for(var i=[],s=e.length,n=t.bounds,r=p.collides,o=f.overlaps,a=0;a{var I={},p=(t.exports=I,i(39745)),B=i(68758),f=i(84091);I._restingThresh=2,I._restingThreshTangent=Math.sqrt(6),I._positionDampen=.9,I._positionWarming=.8,I._frictionNormalMultiplier=5,I._frictionMaxStatic=Number.MAX_VALUE,I.preSolvePosition=function(t){for(var e,i,s=t.length,n=0;ns&&(A.tangentImpulse=s),i=A.tangentImpulse-k),m*L+w*i),D=x*L+T*i;f.isStatic||f.isSleeping||(f.positionPrev.x+=F*f.inverseMass,f.positionPrev.y+=D*f.inverseMass,f.anglePrev+=(M*D-O*F)*f.inverseInertia),g.isStatic||g.isSleeping||(g.positionPrev.x-=F*g.inverseMass,g.positionPrev.y-=D*g.inverseMass,g.anglePrev-=(R*D-C*F)*g.inverseInertia)}}}}},52838:(t,e,i)=>{var g={},o=(t.exports=g,i(39745)),y=i(10438),a=i(22806),h=i(84091),l=i(50658),u=i(68758);g._warming=.4,g._torqueDampen=1,g._minLength=1e-6,g.create=function(t){t.bodyA&&!t.pointA&&(t.pointA={x:0,y:0}),t.bodyB&&!t.pointB&&(t.pointB={x:0,y:0});var e=t.bodyA?y.add(t.bodyA.position,t.pointA):t.pointA,i=t.bodyB?y.add(t.bodyB.position,t.pointB):t.pointB,e=y.magnitude(y.sub(e,i)),i=(t.length=void 0!==t.length?t.length:e,t.id=t.id||u.nextId(),t.label=t.label||"Constraint",t.type="constraint",t.stiffness=t.stiffness||(0{var s,h={};(t.exports=h)._baseDelta=1e3/60,h._nextId=0,h._seed=0,h._nowStartTime=+new Date,h._warnedOnce={},h._decomp=null,h.extend=function(t,e){for(var i,s="boolean"==typeof e?(i=2,e):(i=1,!0),n=i;n{var p={},f=(t.exports=p,i(22806)),g=i(44272),y=i(13657),v=i(91327),m=i(39073),x=i(11299),w=i(52838),T=i(68758),r=i(84125);p.create=function(t){var e=T.extend({positionIterations:6,velocityIterations:4,constraintIterations:2,enableSleeping:!1,events:[],plugin:{},gravity:{x:0,y:1,scale:.001},timing:{timestamp:0,timeScale:1,lastDelta:0,lastElapsed:0}},t=t||{});return e.world=t.world||x.create({label:"World"}),e.pairs=t.pairs||v.create(),e.detector=t.detector||y.create(),e.grid={buckets:[]},e.world.gravity=e.gravity,e.broadphase=e.grid,e.metrics={},e},p.update=function(t,e){var i,s=T.now(),n=t.world,r=t.detector,o=t.pairs,a=t.timing,h=a.timestamp,l=(e=void 0!==e?e:T._baseDelta,e*=a.timeScale,a.timestamp+=e,a.lastDelta=e,{timestamp:a.timestamp,delta:e}),u=(m.trigger(t,"beforeUpdate",l),x.allBodies(n)),c=x.allConstraints(n);for(n.isModified&&(y.setBodies(r,u),x.setModified(n,!1,!1,!0)),t.enableSleeping&&f.update(u,e),p._bodiesApplyGravity(u,t.gravity),0{var s={},u=(t.exports=s,i(68758));s.on=function(t,e,i){for(var s,n=e.split(" "),r=0;r{var s={},n=(t.exports=s,i(84474)),r=i(68758);s.name="matter-js",s.version="0.19.0",s.uses=[],s.used=[],s.use=function(){n.use(s,Array.prototype.slice.call(arguments))},s.before=function(t,e){return t=t.replace(/^Matter./,""),r.chainPathBefore(s,t,e)},s.after=function(t,e){return t=t.replace(/^Matter./,""),r.chainPathAfter(s,t,e)}},84474:(t,e,i)=>{var o={},a=(t.exports=o,i(68758));o._registry={},o.register=function(t){var e,i,s;return o.isPlugin(t)||a.warn("Plugin.register:",o.toString(t),"does not implement all required fields."),t.name in o._registry?(e=o._registry[t.name],i=o.versionParse(t.version).number,(s=o.versionParse(e.version).number)=|>)?\s*((\d+)\.(\d+)\.(\d+))(-[0-9A-Za-z-+]+)?$/,e=(e.test(t)||a.warn("Plugin.versionParse:",t,"is not a valid version or range."),e.exec(t)),i=Number(e[4]),s=Number(e[5]),n=Number(e[6]);return{isRange:Boolean(e[1]||e[2]),version:e[3],range:t,operator:e[1]||e[2]||"",major:i,minor:s,patch:n,parts:[i,s,n],prerelease:e[7],number:1e8*i+1e4*s+n}},o.versionSatisfies=function(t,e){var i=o.versionParse(e=e||"*"),s=o.versionParse(t);if(i.isRange){if("*"===i.operator||"*"===t)return!0;if(">"===i.operator)return s.number>i.number;if(">="===i.operator)return s.number>=i.number;if("~"===i.operator)return s.major===i.major&&s.minor===i.minor&&s.patch>=i.patch;if("^"===i.operator)return 0=i.number:0=i.patch:s.patch===i.patch}return t===e||"*"===t}},22806:(t,e,i)=>{var h={},l=(t.exports=h,i(84125)),s=i(39073),u=i(68758);h._motionWakeThreshold=.18,h._motionSleepThreshold=.08,h._minBias=.9,h.update=function(t,e){for(var i=e/u._baseDelta,s=h._motionSleepThreshold,n=0;n=r.sleepThreshold/i&&h.set(r,!0)):0e&&h.set(n,!1))}},h.set=function(t,e){var i=t.isSleeping;e?(t.isSleeping=!0,t.sleepCounter=t.sleepThreshold,t.positionImpulse.x=0,t.positionImpulse.y=0,t.positionPrev.x=t.position.x,t.positionPrev.y=t.position.y,t.anglePrev=t.angle,t.speed=0,t.angularSpeed=0,t.motion=0,i||s.trigger(t,"sleepStart")):(t.isSleeping=!1,t.sleepCounter=0,i&&s.trigger(t,"sleepEnd"))}},68516:(t,e,i)=>{var c={},E=(t.exports=c,i(39745)),A=i(68758),C=i(84125),M=i(84091),O=i(10438);c.rectangle=function(t,e,i,s,n){n=n||{};t={label:"Rectangle Body",position:{x:t,y:e},vertices:E.fromPath("L 0 0 L "+i+" 0 L "+i+" "+s+" L 0 "+s)};return n.chamfer&&(e=n.chamfer,t.vertices=E.chamfer(t.vertices,e.radius,e.quality,e.qualityMin,e.qualityMax),delete n.chamfer),C.create(A.extend({},t,n))},c.trapezoid=function(t,e,i,s,n,r){r=r||{};var o=i*(n*=.5),i=o+(1-2*n)*i,a=i+o,t={label:"Trapezoid Body",position:{x:t,y:e},vertices:E.fromPath(n<.5?"L 0 0 L "+o+" "+-s+" L "+i+" "+-s+" L "+a+" 0":"L 0 0 L "+i+" "+-s+" L "+a+" 0")};return r.chamfer&&(e=r.chamfer,t.vertices=E.chamfer(t.vertices,e.radius,e.quality,e.qualityMin,e.qualityMax),delete r.chamfer),C.create(A.extend({},t,r))},c.circle=function(t,e,i,s,n){s=s||{};var r={label:"Circle Body",circleRadius:i},n=(n=n||25,Math.ceil(Math.max(10,Math.min(n,i))));return n%2==1&&(n+=1),c.polygon(t,e,n,i,A.extend({},r,s))},c.polygon=function(t,e,i,s,n){if(n=n||{},i<3)return c.circle(t,e,s,n);for(var r=2*Math.PI/i,o="",a=.5*r,h=0;h{var p={},m=(t.exports=p,i(11299)),f=i(52838),g=i(68758),x=i(84125),u=i(68516);p.stack=function(t,e,i,s,n,r,o){for(var a,h=m.create({label:"Stack"}),l=t,u=e,c=0,d=0;d{var s={},n=(t.exports=s,i(10438)),r=i(68758);s.fromVertices=function(t){for(var e={},i=0;i{var i={};(t.exports=i).create=function(t){var e={min:{x:0,y:0},max:{x:0,y:0}};return t&&i.update(e,t),e},i.update=function(t,e,i){t.min.x=1/0,t.max.x=-1/0,t.min.y=1/0,t.max.y=-1/0;for(var s=0;st.max.x&&(t.max.x=n.x),n.xt.max.y&&(t.max.y=n.y),n.y=t.min.x&&e.x<=t.max.x&&e.y>=t.min.y&&e.y<=t.max.y},i.overlaps=function(t,e){return t.min.x<=e.max.x&&t.max.x>=e.min.x&&t.max.y>=e.min.y&&t.min.y<=e.max.y},i.translate=function(t,e){t.min.x+=e.x,t.max.x+=e.x,t.min.y+=e.y,t.max.y+=e.y},i.shift=function(t,e){var i=t.max.x-t.min.x,s=t.max.y-t.min.y;t.min.x=e.x,t.max.x=e.x+i,t.min.y=e.y,t.max.y=e.y+s}},92765:(t,e,i)=>{var x={},w=(t.exports=x,i(84091),i(68758));x.pathToVertices=function(t,e){"undefined"==typeof window||"SVGPathSeg"in window||w.warn("Svg.pathToVertices: SVGPathSeg not defined, a polyfill is required.");function i(t,e,i){var s,i=i%2==1&&1{var i={};(t.exports=i).create=function(t,e){return{x:t||0,y:e||0}},i.clone=function(t){return{x:t.x,y:t.y}},i.magnitude=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},i.magnitudeSquared=function(t){return t.x*t.x+t.y*t.y},i.rotate=function(t,e,i){var s=Math.cos(e),e=Math.sin(e),n=t.x*s-t.y*e;return(i=i||{}).y=t.x*e+t.y*s,i.x=n,i},i.rotateAbout=function(t,e,i,s){var n=Math.cos(e),e=Math.sin(e),r=i.x+((t.x-i.x)*n-(t.y-i.y)*e);return(s=s||{}).y=i.y+((t.x-i.x)*e+(t.y-i.y)*n),s.x=r,s},i.normalise=function(t){var e=i.magnitude(t);return 0===e?{x:0,y:0}:{x:t.x/e,y:t.y/e}},i.dot=function(t,e){return t.x*e.x+t.y*e.y},i.cross=function(t,e){return t.x*e.y-t.y*e.x},i.cross3=function(t,e,i){return(e.x-t.x)*(i.y-t.y)-(e.y-t.y)*(i.x-t.x)},i.add=function(t,e,i){return(i=i||{}).x=t.x+e.x,i.y=t.y+e.y,i},i.sub=function(t,e,i){return(i=i||{}).x=t.x-e.x,i.y=t.y-e.y,i},i.mult=function(t,e){return{x:t.x*e,y:t.y*e}},i.div=function(t,e){return{x:t.x/e,y:t.y/e}},i.perp=function(t,e){return{x:(e=!0===e?-1:1)*-t.y,y:e*t.x}},i.neg=function(t){return{x:-t.x,y:-t.y}},i.angle=function(t,e){return Math.atan2(e.y-t.y,e.x-t.x)},i._temp=[i.create(),i.create(),i.create(),i.create(),i.create(),i.create()]},39745:(t,e,i)=>{var o={},m=(t.exports=o,i(10438)),x=i(68758);o.create=function(t,e){for(var i=[],s=0;s{var u=i(18171),n={name:"matter-attractors",version:"0.1.7",for:"matter-js@^0.19.0",silent:!0,install:function(t){t.after("Body.create",function(){n.Body.init(this)}),t.before("Engine.update",function(t){n.Engine.update(t)})},Body:{init:function(t){t.plugin.attractors=t.plugin.attractors||[]}},Engine:{update:function(t){for(var e=u.Composite.allBodies(t.world),i=0;i{t.exports={name:"matter-collision-events",version:"0.1.6",for:"matter-js@^0.19.0",silent:!0,install:function(s){s.after("Engine.create",function(){s.Events.on(this,"collisionStart",function(t){t.pairs.map(function(t){var e=t.bodyA,i=t.bodyB;e.gameObject&&e.gameObject.emit("collide",e,i,t),i.gameObject&&i.gameObject.emit("collide",i,e,t),s.Events.trigger(e,"onCollide",{pair:t}),s.Events.trigger(i,"onCollide",{pair:t}),e.onCollideCallback&&e.onCollideCallback(t),i.onCollideCallback&&i.onCollideCallback(t),e.onCollideWith[i.id]&&e.onCollideWith[i.id](i,t),i.onCollideWith[e.id]&&i.onCollideWith[e.id](e,t)})}),s.Events.on(this,"collisionActive",function(t){t.pairs.map(function(t){var e=t.bodyA,i=t.bodyB;e.gameObject&&e.gameObject.emit("collideActive",e,i,t),i.gameObject&&i.gameObject.emit("collideActive",i,e,t),s.Events.trigger(e,"onCollideActive",{pair:t}),s.Events.trigger(i,"onCollideActive",{pair:t}),e.onCollideActiveCallback&&e.onCollideActiveCallback(t),i.onCollideActiveCallback&&i.onCollideActiveCallback(t)})}),s.Events.on(this,"collisionEnd",function(t){t.pairs.map(function(t){var e=t.bodyA,i=t.bodyB;e.gameObject&&e.gameObject.emit("collideEnd",e,i,t),i.gameObject&&i.gameObject.emit("collideEnd",i,e,t),s.Events.trigger(e,"onCollideEnd",{pair:t}),s.Events.trigger(i,"onCollideEnd",{pair:t}),e.onCollideEndCallback&&e.onCollideEndCallback(t),i.onCollideEndCallback&&i.onCollideEndCallback(t)})})})}}},44097:(t,e,i)=>{var o=i(18171),a={name:"matter-wrap",version:"0.1.4",for:"matter-js@^0.19.0",silent:!0,install:function(t){t.after("Engine.update",function(){a.Engine.update(this)})},Engine:{update:function(t){for(var t=t.world,e=o.Composite.allBodies(t),i=o.Composite.allComposites(t),s=0;se.max.x?i=e.min.x-t.max.x:t.max.xe.max.y?s=e.min.y-t.max.y:t.max.y{function P(t,e,i,s){var n,r=e[0]-t[0],e=e[1]-t[1],o=s[0]-i[0],s=s[1]-i[1];if(o*e-s*r!=0)return n=(r*(i[1]-t[1])+e*(t[0]-i[0]))/(o*e-s*r),i=(o*(t[1]-i[1])+s*(i[0]-t[0]))/(s*r-o*e),0<=n&&n<=1&&0<=i&&i<=1}function a(t,e,i){return(e[0]-t[0])*(i[1]-t[1])-(i[0]-t[0])*(e[1]-t[1])}function _(t,e,i){return 0o)){for(var b=0;bi[e][0])&&(e=s);return!_(O(t,e-1),O(t,e),O(t,e+1))&&(function(t){for(var e=[],i=t.length,s=0;s!==i;s++)e.push(t.pop());for(s=0;s!==i;s++)t[s]=e[s]}(t),!0)}};var h=[],l=[];function M(t,e){var i=e[0]-t[0],e=e[1]-t[1];return i*i+e*e}function O(t,e){var i=t.length;return t[e<0?e%i+i:e%i]}function R(t,e,i,s){for(var n=i;n{i=new(i(56694))({initialize:function(t){this.pluginManager=t,this.game=t.game},init:function(){},start:function(){},stop:function(){},destroy:function(){this.pluginManager=null,this.game=null,this.scene=null,this.systems=null}});t.exports=i},18360:t=>{t.exports={Global:["game","anims","cache","plugins","registry","scale","sound","textures","renderer"],CoreScene:["EventEmitter","CameraManager","GameObjectCreator","GameObjectFactory","ScenePlugin","DisplayList","UpdateList"],DefaultScene:["Clock","DataManagerPlugin","InputPlugin","Loader","TweenManager","LightsPlugin"]}},91963:t=>{var n={},r={};t.exports={register:function(t,e,i,s){n[t]={plugin:e,mapping:i,custom:s=void 0===s?!1:s}},registerCustom:function(t,e,i,s){r[t]={plugin:e,mapping:i,data:s}},hasCore:function(t){return n.hasOwnProperty(t)},hasCustom:function(t){return r.hasOwnProperty(t)},getCore:function(t){return n[t]},getCustom:function(t){return r[t]},getCustomClass:function(t){return r.hasOwnProperty(t)?r[t].plugin:null},remove:function(t){n.hasOwnProperty(t)&&delete n[t]},removeCustom:function(t){r.hasOwnProperty(t)&&delete r[t]},destroyCorePlugins:function(){for(var t in n)n.hasOwnProperty(t)&&delete n[t]},destroyCustomPlugins:function(){for(var t in r)r.hasOwnProperty(t)&&delete r[t]}}},49274:(t,e,i)=>{var s=i(56694),l=i(97081),n=i(6659),r=i(76846),o=i(99325),a=i(61286),u=i(72632),g=i(91963),h=i(66458),i=new s({Extends:n,initialize:function(t){n.call(this),this.game=t,this.plugins=[],this.scenePlugins=[],this._pendingGlobal=[],this._pendingScene=[],t.isBooted?this.boot():t.events.once(l.BOOT,this.boot,this)},boot:function(){for(var t,e,i,s,n,r,o=this.game.config,a=(a=o.installGlobalPlugins).concat(this._pendingGlobal),h=0;h{var s=i(88257),n=i(56694),r=i(7599),i=new n({Extends:s,initialize:function(t,e,i){s.call(this,e),this.scene=t,this.systems=t.sys,this.pluginKey=i,t.sys.events.once(r.BOOT,this.boot,this)},boot:function(){},destroy:function(){this.pluginManager=null,this.game=null,this.scene=null,this.systems=null}});t.exports=i},45615:(t,e,i)=>{t.exports={BasePlugin:i(88257),DefaultPlugins:i(18360),PluginCache:i(91963),PluginManager:i(49274),ScenePlugin:i(39283)}},75205:()=>{!("requestVideoFrameCallback"in HTMLVideoElement.prototype)&&"getVideoPlaybackQuality"in HTMLVideoElement.prototype&&(HTMLVideoElement.prototype._rvfcpolyfillmap={},HTMLVideoElement.prototype.requestVideoFrameCallback=function(n){const r=performance.now(),o=this.getVideoPlaybackQuality(),a=this.mozPresentedFrames||this.mozPaintedFrames||o.totalVideoFrames-o.droppedVideoFrames,h=(t,e)=>{var i=this.getVideoPlaybackQuality(),s=this.mozPresentedFrames||this.mozPaintedFrames||i.totalVideoFrames-i.droppedVideoFrames;if(s>a){const a=this.mozFrameDelay||i.totalFrameDelay-o.totalFrameDelay||0,h=e-t;n(e,{presentationTime:e+1e3*a,expectedDisplayTime:e+h,width:this.videoWidth,height:this.videoHeight,mediaTime:Math.max(0,this.currentTime||0)+h/1e3,presentedFrames:s,processingDuration:a}),delete this._rvfcpolyfillmap[r]}else this._rvfcpolyfillmap[r]=requestAnimationFrame(t=>h(e,t))};return this._rvfcpolyfillmap[r]=requestAnimationFrame(t=>h(r,t)),r},HTMLVideoElement.prototype.cancelVideoFrameCallback=function(t){cancelAnimationFrame(this._rvfcpolyfillmap[t]),delete this._rvfcpolyfillmap[t]})},95723:t=>{t.exports={SKIP_CHECK:-1,NORMAL:0,ADD:1,MULTIPLY:2,SCREEN:3,OVERLAY:4,DARKEN:5,LIGHTEN:6,COLOR_DODGE:7,COLOR_BURN:8,HARD_LIGHT:9,SOFT_LIGHT:10,DIFFERENCE:11,EXCLUSION:12,HUE:13,SATURATION:14,COLOR:15,LUMINOSITY:16,ERASE:17,SOURCE_IN:18,SOURCE_OUT:19,SOURCE_ATOP:20,DESTINATION_OVER:21,DESTINATION_IN:22,DESTINATION_OUT:23,DESTINATION_ATOP:24,LIGHTER:25,COPY:26,XOR:27}},27394:t=>{t.exports={DEFAULT:0,LINEAR:0,NEAREST:1}},91135:(t,e,i)=>{var d=i(89787),l=i(61840),s=i(56694),n=i(86459),r=i(6659),p=i(81044),o=i(32834),a=i(40444),h=i(38203),u=i(69360),i=new s({Extends:r,initialize:function(t){r.call(this);var e=t.config,i=(this.config={clearBeforeRender:e.clearBeforeRender,backgroundColor:e.backgroundColor,antialias:e.antialias,roundPixels:e.roundPixels},this.game=t,this.type=n.CANVAS,this.drawCount=0,this.width=0,this.height=0,this.gameCanvas=t.canvas,{alpha:t.config.transparent,desynchronized:t.config.desynchronized,willReadFrequently:!1});this.gameContext=e.context||this.gameCanvas.getContext("2d",i),this.currentContext=this.gameContext,this.antialias=t.config.antialias,this.blendModes=o(),this.snapshotState={x:0,y:0,width:1,height:1,getPixel:!1,callback:null,type:"image/png",encoder:.92},this._tempMatrix1=new u,this._tempMatrix2=new u,this._tempMatrix3=new u,this.isBooted=!1,this.init()},init:function(){this.game.textures.once(h.READY,this.boot,this)},boot:function(){var t=this.game,e=t.scale.baseSize;this.width=e.width,this.height=e.height,this.isBooted=!0,t.scale.on(a.RESIZE,this.onResize,this),this.resize(e.width,e.height)},onResize:function(t,e){e.width===this.width&&e.height===this.height||this.resize(e.width,e.height)},resize:function(t,e){this.width=t,this.height=e,this.emit(p.RESIZE,t,e)},resetTransform:function(){this.currentContext.setTransform(1,0,0,1,0,0)},setBlendMode:function(t){return this.currentContext.globalCompositeOperation=t,this},setContext:function(t){return this.currentContext=t||this.gameContext,this},setAlpha:function(t){return this.currentContext.globalAlpha=t,this},preRender:function(){var t=this.gameContext,e=this.config,i=this.width,s=this.height;t.globalAlpha=1,t.globalCompositeOperation="source-over",t.setTransform(1,0,0,1,0,0),e.clearBeforeRender&&(t.clearRect(0,0,i,s),e.transparent||(t.fillStyle=e.backgroundColor.rgba,t.fillRect(0,0,i,s))),t.save(),this.drawCount=0,this.emit(p.PRE_RENDER)},render:function(t,e,i){var s=e.length,n=(this.emit(p.RENDER,t,i),i.x),r=i.y,o=i.width,a=i.height,h=(i.renderToTexture?i:t.sys).context,l=(h.save(),this.game.scene.customViewports&&(h.beginPath(),h.rect(n,r,o,a),h.clip()),i.emit(d.PRE_RENDER,i),this.currentContext=h,i.mask);l&&l.preRenderCanvas(this,null,i._maskCamera),i.transparent||(h.fillStyle=i.backgroundColor.rgba,h.fillRect(n,r,o,a)),h.globalAlpha=i.alpha,h.globalCompositeOperation="source-over",this.drawCount+=s,i.renderToTexture&&i.emit(d.PRE_RENDER,i),i.matrix.copyToContext(h);for(var u=0;u{t.exports={CanvasRenderer:i(91135),GetBlendModes:i(32834),SetTransform:i(49584)}},32834:(t,e,i)=>{var s=i(95723),n=i(98581);t.exports=function(){var t=[],e=n.supportNewBlendModes,i="source-over";return t[s.NORMAL]=i,t[s.ADD]="lighter",t[s.MULTIPLY]=e?"multiply":i,t[s.SCREEN]=e?"screen":i,t[s.OVERLAY]=e?"overlay":i,t[s.DARKEN]=e?"darken":i,t[s.LIGHTEN]=e?"lighten":i,t[s.COLOR_DODGE]=e?"color-dodge":i,t[s.COLOR_BURN]=e?"color-burn":i,t[s.HARD_LIGHT]=e?"hard-light":i,t[s.SOFT_LIGHT]=e?"soft-light":i,t[s.DIFFERENCE]=e?"difference":i,t[s.EXCLUSION]=e?"exclusion":i,t[s.HUE]=e?"hue":i,t[s.SATURATION]=e?"saturation":i,t[s.COLOR]=e?"color":i,t[s.LUMINOSITY]=e?"luminosity":i,t[s.ERASE]="destination-out",t[s.SOURCE_IN]="source-in",t[s.SOURCE_OUT]="source-out",t[s.SOURCE_ATOP]="source-atop",t[s.DESTINATION_OVER]="destination-over",t[s.DESTINATION_IN]="destination-in",t[s.DESTINATION_OUT]="destination-out",t[s.DESTINATION_ATOP]="destination-atop",t[s.LIGHTER]="lighter",t[s.COPY]="copy",t[s.XOR]="xor",t}},49584:(t,e,i)=>{var o=i(73329);t.exports=function(t,e,i,s,n){var r=s.alpha*i.alpha;return!(r<=0||(s=o(i,s,n).calc,e.globalCompositeOperation=t.blendModes[i.blendMode],e.globalAlpha=r,e.save(),s.setToContext(e),e.imageSmoothingEnabled=i.frame?!i.frame.source.scaleMode:t.antialias,0))}},70936:t=>{t.exports="postrender"},99298:t=>{t.exports="prerender"},7743:t=>{t.exports="render"},99519:t=>{t.exports="resize"},81044:(t,e,i)=>{t.exports={POST_RENDER:i(70936),PRE_RENDER:i(99298),RENDER:i(7743),RESIZE:i(99519)}},42069:(t,e,i)=>{t.exports={Canvas:i(6046),Events:i(81044),Snapshot:i(95528),WebGL:i(55478)}},61840:(t,e,i)=>{var d=i(61068),p=i(27119),f=i(72632);t.exports=function(t,e){var i,s,n,r=f(e,"callback"),o=f(e,"type","image/png"),a=f(e,"encoder",.92),h=Math.abs(Math.round(f(e,"x",0))),l=Math.abs(Math.round(f(e,"y",0))),u=Math.floor(f(e,"width",t.width)),c=Math.floor(f(e,"height",t.height));f(e,"getPixel",!1)?(e=t.getContext("2d",{willReadFrequently:!1}).getImageData(h,l,1,1).data,r.call(null,new p(e[0],e[1],e[2],e[3]))):0!==h||0!==l||u!==t.width||c!==t.height?(e=(i=d.createWebGL(this,u,c)).getContext("2d",{willReadFrequently:!0}),0{var b=i(61068),S=i(27119),P=i(72632);t.exports=function(t,e){var i=P(e,"callback"),s=P(e,"type","image/png"),n=P(e,"encoder",.92),r=Math.abs(Math.round(P(e,"x",0))),o=Math.abs(Math.round(P(e,"y",0))),a=P(e,"getPixel",!1),h=P(e,"isFramebuffer",!1),l=h?P(e,"bufferWidth",1):t.drawingBufferWidth,u=h?P(e,"bufferHeight",1):t.drawingBufferHeight;if(a){a=new Uint8Array(4);t.readPixels(r,h?o:u-o,1,1,t.RGBA,t.UNSIGNED_BYTE,a),i.call(null,new S(a[0],a[1],a[2],a[3]))}else{var c=Math.floor(P(e,"width",l)),d=Math.floor(P(e,"height",u)),p=c*d*4,f=new Uint8Array(p);t.readPixels(r,u-o-d,c,d,t.RGBA,t.UNSIGNED_BYTE,f);for(var g=b.createWebGL(this,c,d),a=g.getContext("2d",{willReadFrequently:!0}),l=a.getImageData(0,0,c,d),y=l.data,v=0;v{t.exports={Canvas:i(61840),WebGL:i(1217)}},35217:(t,e,i)=>{var s=i(56694),y=i(65641),n=i(33885),v=i(77290),m=i(72632),x=i(37410),r=i(82127),o=i(5583),a=i(58136),h=i(47406),l=i(81828),u=i(66901),c=i(71264),d=i(77310),p=i(10919),f=i(21213),g=i(51212),w=i(60848),i=new s({initialize:function(t){this.game=t.game,this.renderer=t,this.classes=new n([[y.UTILITY_PIPELINE,w],[y.MULTI_PIPELINE,d],[y.BITMAPMASK_PIPELINE,o],[y.SINGLE_PIPELINE,g],[y.ROPE_PIPELINE,f],[y.LIGHT_PIPELINE,u],[y.POINTLIGHT_PIPELINE,p],[y.MOBILE_PIPELINE,c],[y.FX_PIPELINE,l]]),this.postPipelineClasses=new n([[String(h.BARREL),a.Barrel],[String(h.BLOOM),a.Bloom],[String(h.BLUR),a.Blur],[String(h.BOKEH),a.Bokeh],[String(h.CIRCLE),a.Circle],[String(h.COLOR_MATRIX),a.ColorMatrix],[String(h.DISPLACEMENT),a.Displacement],[String(h.GLOW),a.Glow],[String(h.GRADIENT),a.Gradient],[String(h.PIXELATE),a.Pixelate],[String(h.SHADOW),a.Shadow],[String(h.SHINE),a.Shine],[String(h.VIGNETTE),a.Vignette],[String(h.WIPE),a.Wipe]]),this.pipelines=new n,this.default=null,this.current=null,this.previous=null,this.MULTI_PIPELINE=null,this.BITMAPMASK_PIPELINE=null,this.UTILITY_PIPELINE=null,this.MOBILE_PIPELINE=null,this.FX_PIPELINE=null,this.fullFrame1,this.fullFrame2,this.halfFrame1,this.halfFrame2,this.renderTargets=[],this.maxDimension=0,this.frameInc=32,this.targetIndex=0},boot:function(t,e,i){var s=this.renderer,n=this.renderTargets;this.frameInc=Math.floor(m(t,"frameInc",32));for(var r,o,a=s.width,h=s.height,l=Math.min(a,h),u=Math.ceil(l/this.frameInc),c=1;cthis.maxDimension?(this.targetIndex=e.length-3,e[this.targetIndex]):(t=3*(r(t,this.frameInc,0,!0)-1),e[this.targetIndex=t])},getSwapRenderTarget:function(){return this.renderTargets[this.targetIndex+1]},getAltSwapRenderTarget:function(){return this.renderTargets[this.targetIndex+2]},destroy:function(){this.flush(),this.classes.clear(),this.postPipelineClasses.clear(),this.pipelines.clear(),this.renderer=null,this.game=null,this.classes=null,this.postPipelineClasses=null,this.pipelines=null,this.default=null,this.current=null,this.previous=null}});t.exports=i},37410:(t,e,i)=>{var s=i(56694),n=i(81044),i=new s({initialize:function(t,e,i,s,n,r,o,a,h){void 0===s&&(s=1),void 0===n&&(n=0),void 0===r&&(r=!0),void 0===o&&(o=!1),void 0===a&&(a=!0),void 0===h&&(h=!0),this.renderer=t,this.framebuffer=null,this.texture=null,this.width=0,this.height=0,this.scale=s,this.minFilter=n,this.autoClear=r,this.autoResize=!0,this.hasDepthBuffer=a,this.forceClamp=h,this.resize(e,i),o?this.setAutoResize(!0):this.autoResize=!1},setAutoResize:function(t){return t&&!this.autoResize?(this.renderer.on(n.RESIZE,this.resize,this),this.autoResize=!0):!t&&this.autoResize&&(this.renderer.off(n.RESIZE,this.resize,this),this.autoResize=!1),this},resize:function(t,e){var i=t*this.scale,s=e*this.scale;return!this.autoResize||i===this.width&&s===this.height||((i=this.renderer).deleteFramebuffer(this.framebuffer),i.deleteTexture(this.texture),t*=this.scale,e*=this.scale,(t=Math.round(t))<=0&&(t=1),(e=Math.round(e))<=0&&(e=1),this.texture=i.createTextureFromSource(null,t,e,this.minFilter,this.forceClamp),this.framebuffer=i.createFramebuffer(t,e,this.texture,this.hasDepthBuffer),this.width=t,this.height=e),this},bind:function(t,e,i){var s=this.renderer;(t=void 0===t?!1:t)&&s.flush(),e&&i&&this.resize(e,i),s.pushFramebuffer(this.framebuffer,!1,!1),t&&this.adjustViewport(),this.autoClear&&((e=this.renderer.gl).clearColor(0,0,0,0),e.clear(e.COLOR_BUFFER_BIT)),s.clearStencilMask()},adjustViewport:function(){var t=this.renderer.gl;t.viewport(0,0,this.width,this.height),t.disable(t.SCISSOR_TEST)},clear:function(){var t=this.renderer,e=t.gl;t.pushFramebuffer(this.framebuffer),e.disable(e.SCISSOR_TEST),e.clearColor(0,0,0,0),e.clear(e.COLOR_BUFFER_BIT),t.popFramebuffer(),t.resetScissor()},unbind:function(t){var e=this.renderer;return(t=void 0===t?!1:t)&&e.flush(),e.popFramebuffer()},destroy:function(){var t=this.renderer;t.deleteFramebuffer(this.framebuffer),t.deleteTexture(this.texture),t.off(n.RESIZE,this.resize,this),this.renderer=null,this.framebuffer=null,this.texture=null}});t.exports=i},75512:t=>{t.exports={getTintFromFloats:function(t,e,i,s){return((255&(255*s|0))<<24|(255&(255*t|0))<<16|(255&(255*e|0))<<8|255&(255*i|0))>>>0},getTintAppendFloatAlpha:function(t,e){return((255&(255*e|0))<<24|t)>>>0},getTintAppendFloatAlphaAndSwap:function(t,e){return((255&(255*e|0))<<24|(255&(0|t))<<16|(255&(t>>8|0))<<8|255&(t>>16|0))>>>0},getFloatsFromUintRGB:function(t){return[(255&(t>>16|0))/255,(255&(t>>8|0))/255,(255&(0|t))/255]},checkShaderMax:function(t,e){t=Math.min(16,t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS));return e&&-1!==e?Math.min(t,e):t},parseFragmentShaderMaxTextures:function(t,e){if(!t)return"";for(var i="",s=0;s{var s=i(56694),m=i(28699),n=i(6659),y=i(18970),x=i(72632),v=i(16650),w=i(81044),T=i(37410),b=i(75512),S=i(71305),i=new s({Extends:n,initialize:function(t){n.call(this);var e=t.game,i=e.renderer,s=i.gl;this.name=x(t,"name","WebGLPipeline"),this.game=e,this.renderer=i,this.manager,this.gl=s,this.view=e.canvas,this.width=0,this.height=0,this.vertexCount=0,this.vertexCapacity=0,this.vertexData,this.vertexBuffer,this.activeBuffer,this.topology=x(t,"topology",s.TRIANGLES),this.bytes,this.vertexViewF32,this.vertexViewU32,this.active=!0,this.forceZero=x(t,"forceZero",!1),this.hasBooted=!1,this.isPostFX=!1,this.isPreFX=!1,this.renderTargets=[],this.currentRenderTarget,this.shaders=[],this.currentShader,this.projectionMatrix,this.projectionWidth=0,this.projectionHeight=0,this.config=t,this.glReset=!1,this.batch=[],this.currentBatch=null,this.currentTexture=null,this.currentUnit=0,this.activeTextures=[]},boot:function(){var t=this.gl,e=this.config,i=this.renderer,s=(this.isPostFX||(this.projectionMatrix=(new v).identity()),this.renderTargets),n=x(e,"renderTarget",!1),r=i.width,o=i.height;if("number"==typeof(n="boolean"==typeof n?n&&1:n))for(f=0;fp&&(p=d[f].vertexSize);var g=x(e,"batchSize",i.config.batchSize),g=(this.vertexCapacity=6*g,new ArrayBuffer(this.vertexCapacity*p)),e=(this.vertexData=g,this.bytes=new Uint8Array(g),this.vertexViewF32=new Float32Array(g),this.vertexViewU32=new Uint32Array(g),x(e,"vertices",null));for(e?(this.vertexViewF32.set(e),this.vertexBuffer=i.createVertexBuffer(g,t.STATIC_DRAW)):this.vertexBuffer=i.createVertexBuffer(g.byteLength,t.DYNAMIC_DRAW),this.setVertexBuffer(),f=d.length-1;0<=f;f--)d[f].rebind();this.hasBooted=!0,i.on(w.RESIZE,this.resize,this),i.on(w.PRE_RENDER,this.onPreRender,this),i.on(w.RENDER,this.onRender,this),i.on(w.POST_RENDER,this.onPostRender,this),this.emit(y.BOOT,this),this.onBoot()},onBoot:function(){},onResize:function(){},setShader:function(t,e,i){var s=this.renderer;return t===this.currentShader&&s.currentProgram===this.currentShader.program||(this.flush(),this.setVertexBuffer(i)&&!e&&(e=!0),t.bind(e,!1),this.currentShader=t),this},getShaderByName:function(t){for(var e=this.shaders,i=0;ithis.vertexCapacity},vertexAvailable:function(){return this.vertexCapacity-this.vertexCount},resize:function(t,e){t===this.width&&e===this.height||this.flush(),this.width=t,this.height=e;for(var i=this.renderTargets,s=0;s{var s=i(66458),o=i(89787),n=i(56694),u=i(86459),r=i(6659),h=i(81044),y=i(28621),c=i(16650),a=i(72283),d=i(35217),l=i(37410),p=i(40444),f=i(38203),g=i(75512),v=i(1217),i=new n({Extends:r,initialize:function(t){r.call(this);var e=t.config,i={alpha:e.transparent,desynchronized:e.desynchronized,depth:!0,antialias:e.antialiasGL,premultipliedAlpha:e.premultipliedAlpha,stencil:!0,failIfMajorPerformanceCaveat:e.failIfMajorPerformanceCaveat,powerPreference:e.powerPreference,preserveDrawingBuffer:e.preserveDrawingBuffer,willReadFrequently:!1};this.config={clearBeforeRender:e.clearBeforeRender,antialias:e.antialias,backgroundColor:e.backgroundColor,contextCreation:i,roundPixels:e.roundPixels,maxTextures:e.maxTextures,maxTextureSize:e.maxTextureSize,batchSize:e.batchSize,maxLights:e.maxLights,mipmapFilter:e.mipmapFilter},this.game=t,this.type=u.WEBGL,this.pipelines=null,this.width=0,this.height=0,this.canvas=t.canvas,this.blendModes=[],this.contextLost=!1,this.snapshotState={x:0,y:0,width:1,height:1,getPixel:!1,callback:null,type:"image/png",encoder:.92,isFramebuffer:!1,bufferWidth:0,bufferHeight:0},this.maxTextures=0,this.textureIndexes,this.currentFramebuffer=null,this.fboStack=[],this.currentProgram=null,this.currentBlendMode=1/0,this.currentScissorEnabled=!1,this.currentScissor=null,this.scissorStack=[],this.contextLostHandler=a,this.contextRestoredHandler=a,this.gl=null,this.supportedExtensions=null,this.instancedArraysExtension=null,this.vaoExtension=null,this.extensions={},this.glFormats,this.compression,this.drawingBufferHeight=0,this.blankTexture=null,this.whiteTexture=null,this.maskCount=0,this.maskStack=[],this.currentMask={mask:null,camera:null},this.currentCameraMask={mask:null,camera:null},this.glFuncMap=null,this.currentType="",this.newType=!1,this.nextTypeMatch=!1,this.finalType=!1,this.mipmapFilter=null,this.defaultScissor=[0,0,0,0],this.isBooted=!1,this.renderTarget=null,this.projectionMatrix,this.projectionWidth=0,this.projectionHeight=0,this.maskSource=null,this.maskTarget=null,this.spector=null,this._debugCapture=!1,this.init(this.config)},init:function(t){var e,i=this.game,s=this.canvas,n=t.backgroundColor;if(!(e=i.config.context||s.getContext("webgl",t.contextCreation)||s.getContext("experimental-webgl",t.contextCreation))||e.isContextLost())throw this.contextLost=!0,new Error("WebGL unsupported");this.gl=e;var r=this;this.contextLostHandler=function(t){r.contextLost=!0,console,t.preventDefault()},s.addEventListener("webglcontextlost",this.contextLostHandler,!1),i.context=e;for(var o=0;o<=27;o++)this.blendModes.push({func:[e.ONE,e.ONE_MINUS_SRC_ALPHA],equation:e.FUNC_ADD});this.blendModes[1].func=[e.ONE,e.DST_ALPHA],this.blendModes[2].func=[e.DST_COLOR,e.ONE_MINUS_SRC_ALPHA],this.blendModes[3].func=[e.ONE,e.ONE_MINUS_SRC_COLOR],this.blendModes[17]={func:[e.ZERO,e.ONE_MINUS_SRC_ALPHA],equation:e.FUNC_REVERSE_SUBTRACT},this.glFormats=[e.BYTE,e.SHORT,e.UNSIGNED_BYTE,e.UNSIGNED_SHORT,e.FLOAT],this.glFuncMap={mat2:{func:e.uniformMatrix2fv,length:1,matrix:!0},mat3:{func:e.uniformMatrix3fv,length:1,matrix:!0},mat4:{func:e.uniformMatrix4fv,length:1,matrix:!0},"1f":{func:e.uniform1f,length:1},"1fv":{func:e.uniform1fv,length:1},"1i":{func:e.uniform1i,length:1},"1iv":{func:e.uniform1iv,length:1},"2f":{func:e.uniform2f,length:2},"2fv":{func:e.uniform2fv,length:1},"2i":{func:e.uniform2i,length:2},"2iv":{func:e.uniform2iv,length:1},"3f":{func:e.uniform3f,length:3},"3fv":{func:e.uniform3fv,length:1},"3i":{func:e.uniform3i,length:3},"3iv":{func:e.uniform3iv,length:1},"4f":{func:e.uniform4f,length:4},"4fv":{func:e.uniform4fv,length:1},"4i":{func:e.uniform4i,length:4},"4iv":{func:e.uniform4iv,length:1}};var s=e.getSupportedExtensions(),a=(t.maxTextures&&-1!==t.maxTextures||(t.maxTextures=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS)),t.maxTextureSize||(t.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE)),this.compression=this.getCompressedTextures(),this.supportedExtensions=s,"ANGLE_instanced_arrays"),a=(this.instancedArraysExtension=-1{var s=i(56694),u=i(72632),c=i(71402),i=new s({initialize:function(t,e,i,s,n){this.pipeline=t,this.name=e,this.renderer=t.renderer,this.gl=this.renderer.gl,this.fragSrc=s,this.vertSrc=i,this.program=this.renderer.createProgram(i,s),this.attributes,this.vertexComponentCount=0,this.vertexSize=0,this.uniforms={},this.createAttributes(n),this.createUniforms()},createAttributes:function(t){for(var e=0,i=0,s=[],n=this.vertexComponentCount=0;n{t.exports={BYTE:{enum:5120,size:1},UNSIGNED_BYTE:{enum:5121,size:1},SHORT:{enum:5122,size:2},UNSIGNED_SHORT:{enum:5123,size:2},INT:{enum:5124,size:4},UNSIGNED_INT:{enum:5125,size:4},FLOAT:{enum:5126,size:4}}},55478:(t,e,i)=>{var s=i(71402),i=i(98611)(!1,{PipelineManager:i(35217),Pipelines:i(62253),RenderTarget:i(37410),Utils:i(75512),WebGLPipeline:i(44775),WebGLRenderer:i(11857),WebGLShader:i(71305)},s);t.exports=i},5583:(t,e,i)=>{var s=i(56694),n=i(72632),r=i(91679),o=i(89053),a=i(71402),h=i(44775),i=new s({Extends:h,initialize:function(t){t.fragShader=n(t,"fragShader",r),t.vertShader=n(t,"vertShader",o),t.batchSize=n(t,"batchSize",1),t.vertices=n(t,"vertices",[-1,1,-1,-7,7,1]),t.attributes=n(t,"attributes",[{name:"inPosition",size:2,type:a.FLOAT}]),h.call(this,t)},boot:function(){h.prototype.boot.call(this),this.set1i("uMainSampler",0),this.set1i("uMaskSampler",1)},resize:function(t,e){h.prototype.resize.call(this,t,e),this.set2f("uResolution",t,e)},beginMask:function(t,e,i){this.renderer.beginBitmapMask(t,i)},endMask:function(t,e,i){var s=this.gl,n=this.renderer,r=t.bitmapMask;r&&s&&(n.drawBitmapMask(r,e,this),i&&this.set2f("uResolution",i.width,i.height),this.set1i("uInvertMaskAlpha",t.invertAlpha),s.drawArrays(this.topology,0,3),i&&this.set2f("uResolution",this.width,this.height),s.bindTexture(s.TEXTURE_2D,null))}});t.exports=i},81828:(t,e,i)=>{var s=i(56694),n=i(58136),h=i(47406),l=i(72632),r=i(87228),o=i(92462),a=i(75512),i=new s({Extends:r,initialize:function(t){t.shaders=[a.setGlowQuality(o.FXGlowFrag,t.game),o.FXShadowFrag,o.FXPixelateFrag,o.FXVignetteFrag,o.FXShineFrag,o.FXBlurLowFrag,o.FXBlurMedFrag,o.FXBlurHighFrag,o.FXGradientFrag,o.FXBloomFrag,o.ColorMatrixFrag,o.FXCircleFrag,o.FXBarrelFrag,o.FXDisplacementFrag,o.FXWipeFrag,o.FXBokehFrag],r.call(this,t);t=this.game,this.glow=new n.Glow(t),this.shadow=new n.Shadow(t),this.pixelate=new n.Pixelate(t),this.vignette=new n.Vignette(t),this.shine=new n.Shine(t),this.gradient=new n.Gradient(t),this.circle=new n.Circle(t),this.barrel=new n.Barrel(t),this.wipe=new n.Wipe(t),this.bokeh=new n.Bokeh(t),t=[];t[h.GLOW]=this.onGlow,t[h.SHADOW]=this.onShadow,t[h.PIXELATE]=this.onPixelate,t[h.VIGNETTE]=this.onVignette,t[h.SHINE]=this.onShine,t[h.BLUR]=this.onBlur,t[h.GRADIENT]=this.onGradient,t[h.BLOOM]=this.onBloom,t[h.COLOR_MATRIX]=this.onColorMatrix,t[h.CIRCLE]=this.onCircle,t[h.BARREL]=this.onBarrel,t[h.DISPLACEMENT]=this.onDisplacement,t[h.WIPE]=this.onWipe,t[h.BOKEH]=this.onBokeh,this.fxHandlers=t,this.source,this.target,this.swap},onDraw:function(t,e,i){this.source=t,this.target=e,this.swap=i;var s=t.width,n=t.height,e=this.tempSprite,r=this.fxHandlers;if(e&&e.preFX)for(var o=e.preFX.list,a=0;a{var s=i(56694),n=i(72632),r=i(65045),D=i(77310),o=i(69360),a=i(93736),h=i(44775),i=new s({Extends:D,initialize:function(t){var e=n(t,"fragShader",r);t.fragShader=e.replace("%LIGHT_COUNT%",t.game.renderer.config.maxLights),D.call(this,t),this.inverseRotationMatrix=new Float32Array([1,0,0,0,1,0,0,0,1]),this.defaultNormalMap,this.currentNormalMap,this.lightsActive=!0,this.tempVec2=new a,this._tempMatrix=new o,this._tempMatrix2=new o},boot:function(){h.prototype.boot.call(this);var t=this.gl,e=t.createTexture();t.activeTexture(t.TEXTURE0),t.bindTexture(t.TEXTURE_2D,e),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,1,1,0,t.RGBA,t.UNSIGNED_BYTE,new Uint8Array([127,127,255,255])),this.defaultNormalMap={glTexture:e}},onRender:function(t,e){t=t.sys.lights;if(this.lightsActive=!1,t&&t.active){var i,s=t.getLights(e),n=s.length,r=(this.lightsActive=!0,this.renderer.height),o=e.matrix,a=this.tempVec2;for(this.set1i("uMainSampler",0),this.set1i("uNormSampler",1),this.set2f("uResolution",this.width/2,this.height/2),this.set4f("uCamera",e.x,e.y,e.rotation,e.zoom),this.set3f("uAmbientLightColor",t.ambientColor.r,t.ambientColor.g,t.ambientColor.b),this.set1i("uLightCount",n),i=0;i{var s=i(56694),n=i(72632),r=i(77310),o=i(85060),a=i(18166),h=i(71402),l=i(44775),i=new s({Extends:r,initialize:function(t){t.fragShader=n(t,"fragShader",o),t.vertShader=n(t,"vertShader",a),t.attributes=n(t,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2},{name:"inTexId"},{name:"inTintEffect"},{name:"inTint",size:4,type:h.UNSIGNED_BYTE,normalized:!0}]),t.forceZero=!0,r.call(this,t)},boot:function(){l.prototype.boot.call(this),this.set1i("uMainSampler",0)}});t.exports=i},77310:(t,e,i)=>{var s=i(56694),w=i(11117),n=i(72632),r=i(53787),o=i(15968),a=i(69360),T=i(75512),h=i(71402),l=i(44775),i=new s({Extends:l,initialize:function(t){var e=t.game.renderer,i=n(t,"fragShader",r);t.fragShader=T.parseFragmentShaderMaxTextures(i,e.maxTextures),t.vertShader=n(t,"vertShader",o),t.attributes=n(t,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2},{name:"inTexId"},{name:"inTintEffect"},{name:"inTint",size:4,type:h.UNSIGNED_BYTE,normalized:!0}]),l.call(this,t),this._tempMatrix1=new a,this._tempMatrix2=new a,this._tempMatrix3=new a,this.calcMatrix=new a,this.tempTriangle=[{x:0,y:0,width:0},{x:0,y:0,width:0},{x:0,y:0,width:0},{x:0,y:0,width:0}],this.strokeTint={TL:0,TR:0,BL:0,BR:0},this.fillTint={TL:0,TR:0,BL:0,BR:0},this.currentFrame={u0:0,v0:0,u1:1,v1:1},this.firstQuad=[0,0,0,0,0],this.prevQuad=[0,0,0,0,0],this.polygonCache=[]},boot:function(){l.prototype.boot.call(this),this.currentShader.set1iv("uMainSampler",this.renderer.textureIndexes)},batchSprite:function(t,e,i){this.manager.set(this,t);var s=this._tempMatrix1,n=this._tempMatrix2,r=this._tempMatrix3,o=t.frame,a=o.glTexture,h=o.u0,l=o.v0,u=o.u1,c=o.v1,d=o.x,p=o.y,f=o.cutWidth,g=o.cutHeight,y=o.customPivot,v=t.displayOriginX,m=t.displayOriginY,d=-v+d,p=-m+p,x=(t.isCropped&&((x=t._crop).flipX===t.flipX&&x.flipY===t.flipY||o.updateCropUVs(x,t.flipX,t.flipY),h=x.u0,l=x.v0,u=x.u1,c=x.v1,f=x.width,g=x.height,d=-v+x.x,p=-m+x.y),1),w=1,v=(t.flipX&&(y||(d+=-o.realWidth+2*v),x=-1),(t.flipY||o.source.isGLTexture&&!a.flipY)&&(y||(p+=-o.realHeight+2*m),w=-1),t.x),y=t.y,m=(n.applyITRS(v,y,t.rotation,t.scaleX*x,t.scaleY*w),s.copyFrom(e.matrix),i?(s.multiplyWithOffset(i,-e.scrollX*t.scrollFactorX,-e.scrollY*t.scrollFactorY),n.e=v,n.f=y):(n.e-=e.scrollX*t.scrollFactorX,n.f-=e.scrollY*t.scrollFactorY),s.multiply(n,r),r.setQuad(d,p,d+f,p+g,e.roundPixels)),x=T.getTintAppendFloatAlpha,w=e.alpha,i=x(t.tintTopLeft,w*t._alphaTL),v=x(t.tintTopRight,w*t._alphaTR),y=x(t.tintBottomLeft,w*t._alphaBL),s=x(t.tintBottomRight,w*t._alphaBR),n=(this.shouldFlush(6)&&this.flush(),this.setGameObject(t,o));this.manager.preBatch(t),this.batchQuad(t,m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],h,l,u,c,i,v,y,s,t.tintFill,a,n),this.manager.postBatch(t)},batchTexture:function(t,e,i,s,n,r,o,a,I,B,N,h,l,u,c,d,p,f,g,y,v,X,U,z,Y,V,m,x,w,T,G,b){this.manager.set(this,t);var S,P,_,E,A,C=this._tempMatrix1,M=this._tempMatrix2,O=this._tempMatrix3,R=f/i+m,W=g/s+x,H=(f+y)/i+m,j=(g+v)/s+x,D=o,L=a,k=-d,F=-p,y=(t.isCropped&&(P=(S=t._crop).width,_=S.height,E=f=S.x,A=g=S.y,R=(E=h?y-S.x-P:E)/i+m,W=(A=l?v-S.y-_:A)/s+x,H=(E+(o=D=P))/i+m,j=(A+(a=L=_))/s+x,k=-d+f,F=-p+g),h&&(D*=-1,k+=o),(l^=!G&&e.isRenderTexture?1:0)&&(L*=-1,F+=a),M.applyITRS(n,r,N,I,B),C.copyFrom(w.matrix),T?(C.multiplyWithOffset(T,-w.scrollX*u,-w.scrollY*c),M.e=n,M.f=r):(M.e-=w.scrollX*u,M.f-=w.scrollY*c),C.multiply(M,O),O.setQuad(k,F,k+D,F+L,w.roundPixels));void 0===b&&(b=this.setTexture2D(e)),t&&this.manager.preBatch(t),this.batchQuad(t,y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],R,W,H,j,X,U,z,Y,V,e,b),t&&this.manager.postBatch(t)},batchTextureFrame:function(t,e,i,s,n,r,o){this.manager.set(this);var r=this._tempMatrix1.copyFrom(r),a=this._tempMatrix2,o=(o?r.multiply(o,a):a=r,a.setQuad(e,i,e+t.width,i+t.height,!1)),r=this.setTexture2D(t.source.glTexture);s=T.getTintAppendFloatAlpha(s,n),this.batchQuad(null,o[0],o[1],o[2],o[3],o[4],o[5],o[6],o[7],t.u0,t.v0,t.u1,t.v1,s,s,s,s,0,t.glTexture,r)},batchFillRect:function(t,e,i,s,n,r){this.renderer.pipelines.set(this);var o=this.calcMatrix,r=(r&&r.multiply(n,o),o.setQuad(t,e,t+i,e+s,!1)),n=this.fillTint;this.batchQuad(null,r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],0,0,1,1,n.TL,n.TR,n.BL,n.BR,2)},batchFillTriangle:function(t,e,i,s,n,r,o,a){this.renderer.pipelines.set(this);var h=this.calcMatrix,a=(a&&a.multiply(o,h),h.getX(t,e)),o=h.getY(t,e),t=h.getX(i,s),e=h.getY(i,s),i=h.getX(n,r),s=h.getY(n,r),h=this.fillTint;this.batchTri(null,a,o,t,e,i,s,0,0,1,1,h.TL,h.TR,h.BL,2)},batchStrokeTriangle:function(t,e,i,s,n,r,o,a,h){var l=this.tempTriangle;l[0].x=t,l[0].y=e,l[0].width=o,l[1].x=i,l[1].y=s,l[1].width=o,l[2].x=n,l[2].y=r,l[2].width=o,l[3].x=t,l[3].y=e,l[3].width=o,this.batchStrokePath(l,o,!1,a,h)},batchFillPath:function(t,e,i){this.renderer.pipelines.set(this);var s=this.calcMatrix;i&&i.multiply(e,s);for(var n,r,o=t.length,a=this.polygonCache,h=this.fillTint.TL,l=this.fillTint.TR,u=this.fillTint.BL,c=0;c{var s=i(56694),n=i(72632),r=i(83327),o=i(54677),a=i(44775),i=new s({Extends:a,initialize:function(t){t.vertShader=n(t,"vertShader",o),t.fragShader=n(t,"fragShader",r),t.attributes=n(t,"attributes",[{name:"inPosition",size:2},{name:"inLightPosition",size:2},{name:"inLightRadius"},{name:"inLightAttenuation"},{name:"inLightColor",size:4}]),a.call(this,t)},onRender:function(t,e){this.set2f("uResolution",this.width,this.height),this.set1f("uCameraZoom",e.zoom)},batchPointLight:function(t,e,i,s,n,r,o,a,h,l,u,c){var d=t.color,p=t.intensity,f=t.radius,g=t.attenuation,y=d.r*p,v=d.g*p,d=d.b*p,p=e.alpha*t.alpha;this.shouldFlush(6)&&this.flush(),this.currentBatch||this.setTexture2D(),this.batchLightVert(i,s,u,c,f,g,y,v,d,p),this.batchLightVert(n,r,u,c,f,g,y,v,d,p),this.batchLightVert(o,a,u,c,f,g,y,v,d,p),this.batchLightVert(i,s,u,c,f,g,y,v,d,p),this.batchLightVert(o,a,u,c,f,g,y,v,d,p),this.batchLightVert(h,l,u,c,f,g,y,v,d,p),this.currentBatch.count=this.vertexCount-this.currentBatch.start},batchLightVert:function(t,e,i,s,n,r,o,a,h,l){var u=this.vertexViewF32,c=this.vertexCount*this.currentShader.vertexComponentCount-1;u[++c]=t,u[++c]=e,u[++c]=i,u[++c]=s,u[++c]=n,u[++c]=r,u[++c]=o,u[++c]=a,u[++c]=h,u[++c]=l,this.vertexCount++}});t.exports=i},80486:(t,e,i)=>{var s=i(56694),n=i(65246),r=i(72632),o=i(12569),a=i(99365),h=i(44775),i=new s({Extends:h,initialize:function(t){t.renderTarget=r(t,"renderTarget",1),t.fragShader=r(t,"fragShader",o),t.vertShader=r(t,"vertShader",a),t.attributes=r(t,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2}]),t.batchSize=1,t.vertices=[-1,-1,0,0,-1,1,0,1,1,1,1,1,-1,-1,0,0,1,1,1,1,1,-1,1,0],h.call(this,t),this.isPostFX=!0,this.gameObject,this.controller,this.colorMatrix=new n,this.fullFrame1,this.fullFrame2,this.halfFrame1,this.halfFrame2,this.renderer.isBooted&&(this.manager=this.renderer.pipelines,this.boot())},boot:function(){h.prototype.boot.call(this);var t=this.manager.UTILITY_PIPELINE;this.fullFrame1=t.fullFrame1,this.fullFrame2=t.fullFrame2,this.halfFrame1=t.halfFrame1,this.halfFrame2=t.halfFrame2,this.set1i("uMainSampler",0)},onDraw:function(t){this.bindAndDraw(t)},getController:function(t){return void 0!==t?t:this.controller||this},copySprite:function(t,e,i){void 0===i&&(i=!1);var s=this.gl,t=(s.activeTexture(s.TEXTURE0),s.bindTexture(s.TEXTURE_2D,t.texture),s.getParameter(s.FRAMEBUFFER_BINDING));s.bindFramebuffer(s.FRAMEBUFFER,e.framebuffer),s.framebufferTexture2D(s.FRAMEBUFFER,s.COLOR_ATTACHMENT0,s.TEXTURE_2D,e.texture,0),s.clearColor(0,0,0,0),s.clear(s.COLOR_BUFFER_BIT),s.bufferData(s.ARRAY_BUFFER,this.vertexData,s.STATIC_DRAW),s.drawArrays(s.TRIANGLES,0,6),i&&(s.bindTexture(s.TEXTURE_2D,null),s.bindFramebuffer(s.FRAMEBUFFER,t))},copyFrame:function(t,e,i,s,n){this.manager.copyFrame(t,e,i,s,n)},copyToGame:function(t){this.manager.copyToGame(t)},drawFrame:function(t,e,i){this.manager.drawFrame(t,e,i,this.colorMatrix)},blendFrames:function(t,e,i,s,n){this.manager.blendFrames(t,e,i,s,n)},blendFramesAdditive:function(t,e,i,s,n){this.manager.blendFramesAdditive(t,e,i,s,n)},clearFrame:function(t,e){this.manager.clearFrame(t,e)},blitFrame:function(t,e,i,s,n,r){this.manager.blitFrame(t,e,i,s,n,r)},copyFrameRect:function(t,e,i,s,n,r,o,a){this.manager.copyFrameRect(t,e,i,s,n,r,o,a)},bindAndDraw:function(t,e,i,s,n){void 0===i&&(i=!0),void 0===s&&(s=!0);var r=this.gl,o=this.renderer;this.bind(n),this.set1i("uMainSampler",0),e?(r.viewport(0,0,e.width,e.height),r.bindFramebuffer(r.FRAMEBUFFER,e.framebuffer),r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,e.texture,0),i&&(s?r.clearColor(0,0,0,0):r.clearColor(0,0,0,1),r.clear(r.COLOR_BUFFER_BIT))):(o.popFramebuffer(!1,!1),o.currentFramebuffer||r.viewport(0,0,o.width,o.height)),o.restoreStencilMask(),r.activeTexture(r.TEXTURE0),r.bindTexture(r.TEXTURE_2D,t.texture),r.bufferData(r.ARRAY_BUFFER,this.vertexData,r.STATIC_DRAW),r.drawArrays(r.TRIANGLES,0,6),e&&(r.bindTexture(r.TEXTURE_2D,null),r.bindFramebuffer(r.FRAMEBUFFER,o.currentFramebuffer))},destroy:function(){return this.controller&&this.controller.destroy(),this.gameObject=null,this.controller=null,this.colorMatrix=null,this.fullFrame1=null,this.fullFrame2=null,this.halfFrame1=null,this.halfFrame2=null,h.prototype.destroy.call(this),this}});t.exports=i},87228:(t,e,i)=>{var c=i(95723),P=i(79993),s=i(56694),n=i(37486),r=i(72632),o=i(77310),a=i(12569),h=i(74118),l=i(37410),u=i(85060),d=i(18166),p=i(44775),i=new s({Extends:o,initialize:function(t){var e=r(t,"fragShader",a),i=r(t,"vertShader",d),s=r(t,"drawShader",a),e=[{name:"DrawSprite",fragShader:u,vertShader:d},{name:"CopySprite",fragShader:e,vertShader:i},{name:"DrawGame",fragShader:s,vertShader:d},{name:"ColorMatrix",fragShader:n}],s=r(t,"shaders",[]);t.shaders=e.concat(s),t.vertShader||(t.vertShader=i),t.batchSize=1,o.call(this,t),this.isPreFX=!0,this.customMainSampler=null,this.drawSpriteShader,this.copyShader,this.gameShader,this.colorMatrixShader,this.quadVertexData,this.quadVertexBuffer,this.quadVertexViewF32,this.spriteBounds=new h,this.targetBounds=new h,this.fsTarget,this.tempSprite,this.renderer.isBooted&&(this.manager=this.renderer.pipelines,this.boot())},boot:function(){p.prototype.boot.call(this);var t=this.shaders,e=this.renderer,t=(this.drawSpriteShader=t[0],this.copyShader=t[1],this.gameShader=t[2],this.colorMatrixShader=t[3],this.fsTarget=new l(e,e.width,e.height,1,0,!0,!0),this.renderTargets=this.manager.renderTargets.concat(this.fsTarget),new ArrayBuffer(168));this.quadVertexData=t,this.quadVertexViewF32=new Float32Array(t),this.quadVertexBuffer=e.createVertexBuffer(t,this.gl.STATIC_DRAW),this.onResize(e.width,e.height),this.currentShader=this.copyShader},onResize:function(t,e){var i=this.quadVertexViewF32;i[1]=e,i[22]=e,i[14]=t,i[28]=t,i[35]=t,i[36]=e},batchQuad:function(t,e,i,s,n,r,o,a,h,l,u,c,d,p,f,g,y,v,m){var x=Math.min(e,s,r,a),w=Math.min(i,n,o,h),T=Math.max(e,s,r,a)-x,b=Math.max(i,n,o,h)-w,x=this.spriteBounds.setTo(x,w,T,b),w=t?t.preFX.padding:0,T=Math.abs(Math.max(T+2*w,b+2*w)),b=this.manager.getRenderTarget(T),w=this.targetBounds.setTo(0,0,b.width,b.height),T=(P(w,x.centerX,x.centerY),this.tempSprite=t,this.gl),x=this.renderer,S=(x.clearStencilMask(),this.setShader(this.drawSpriteShader),this.set1i("uMainSampler",0),this.flipProjectionMatrix(!0),t&&(this.onDrawSprite(t,b),t.preFX.onFX(this)),this.fsTarget);return this.flush(),T.viewport(0,0,x.width,x.height),T.bindFramebuffer(T.FRAMEBUFFER,S.framebuffer),T.framebufferTexture2D(T.FRAMEBUFFER,T.COLOR_ATTACHMENT0,T.TEXTURE_2D,S.texture,0),T.clearColor(0,0,0,0),T.clear(T.COLOR_BUFFER_BIT),this.setTexture2D(m),this.batchVert(e,i,l,u,0,v,p),this.batchVert(s,n,l,d,0,v,g),this.batchVert(r,o,c,d,0,v,y),this.batchVert(e,i,l,u,0,v,p),this.batchVert(r,o,c,d,0,v,y),this.batchVert(a,h,c,u,0,v,f),this.flush(),this.flipProjectionMatrix(!1),T.activeTexture(T.TEXTURE0),T.bindTexture(T.TEXTURE_2D,b.texture),T.copyTexSubImage2D(T.TEXTURE_2D,0,0,0,w.x,w.y,w.width,w.height),T.bindFramebuffer(T.FRAMEBUFFER,null),T.bindTexture(T.TEXTURE_2D,null),this.onBatch(t),this.currentShader=this.copyShader,this.onDraw(b,this.manager.getSwapRenderTarget(),this.manager.getAltSwapRenderTarget()),!0},onDrawSprite:function(){},onCopySprite:function(){},copySprite:function(t,e,i,s,n,r,o){void 0===i&&(i=!0),void 0===s&&(s=!0),void 0===n&&(n=!1),void 0===o&&(o=this.copyShader);var a,h=this.gl,l=this.tempSprite,u=(r&&(o=this.colorMatrixShader),this.currentShader=o,this.setVertexBuffer(this.quadVertexBuffer));o.bind(u,!1),this.set1i("uMainSampler",0),l.preFX.onFXCopy(this),this.onCopySprite(t,e,l),r&&(this.set1fv("uColorMatrix",r.getData()),this.set1f("uAlpha",r.alpha)),h.activeTexture(h.TEXTURE0),h.bindTexture(h.TEXTURE_2D,t.texture),t.height>e.height?(h.viewport(0,0,t.width,t.height),this.setTargetUVs(t,e)):(o=e.height-t.height,h.viewport(0,o,t.width,t.height),this.resetUVs()),h.bindFramebuffer(h.FRAMEBUFFER,e.framebuffer),h.framebufferTexture2D(h.FRAMEBUFFER,h.COLOR_ATTACHMENT0,h.TEXTURE_2D,e.texture,0),i&&(h.clearColor(0,0,0,Number(!s)),h.clear(h.COLOR_BUFFER_BIT)),n&&(a=this.renderer.currentBlendMode,this.renderer.setBlendMode(c.ERASE)),h.bufferData(h.ARRAY_BUFFER,this.quadVertexData,h.STATIC_DRAW),h.drawArrays(h.TRIANGLES,0,6),n&&this.renderer.setBlendMode(a),h.bindFramebuffer(h.FRAMEBUFFER,null)},copy:function(t,e){var i=this.gl;this.set1i("uMainSampler",0),i.activeTexture(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,t.texture),i.viewport(0,0,t.width,t.height),this.setUVs(0,0,0,1,1,1,1,0),i.bindFramebuffer(i.FRAMEBUFFER,e.framebuffer),i.framebufferTexture2D(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0,i.TEXTURE_2D,e.texture,0),i.clearColor(0,0,0,0),i.clear(i.COLOR_BUFFER_BIT),i.bufferData(i.ARRAY_BUFFER,this.quadVertexData,i.STATIC_DRAW),i.drawArrays(i.TRIANGLES,0,6),i.bindFramebuffer(i.FRAMEBUFFER,null)},blendFrames:function(t,e,i,s,n){this.manager.blendFrames(t,e,i,s,n)},blendFramesAdditive:function(t,e,i,s,n){this.manager.blendFramesAdditive(t,e,i,s,n)},drawToGame:function(t){this.currentShader=null,this.setShader(this.copyShader),this.bindAndDraw(t)},copyToGame:function(t){this.currentShader=null,this.setShader(this.gameShader),this.bindAndDraw(t)},bindAndDraw:function(t){var e=this.gl,i=this.renderer,s=(this.set1i("uMainSampler",0),this.customMainSampler?this.setTexture2D(this.customMainSampler):this.setTexture2D(t.texture),this._tempMatrix1.loadIdentity()),n=this.targetBounds.x,r=this.targetBounds.y,o=n+t.width,t=r+t.height,a=s.getX(n,r),h=s.getX(n,t),l=s.getX(o,t),u=s.getX(o,r),c=s.getY(n,r),n=s.getY(n,t),t=s.getY(o,t),s=s.getY(o,r),o=16777215;this.batchVert(a,c,0,0,0,0,o),this.batchVert(h,n,0,1,0,0,o),this.batchVert(l,t,1,1,0,0,o),this.batchVert(a,c,0,0,0,0,o),this.batchVert(l,t,1,1,0,0,o),this.batchVert(u,s,1,0,0,0,o),i.restoreFramebuffer(!1,!0),i.currentFramebuffer||e.viewport(0,0,i.width,i.height),i.restoreStencilMask(),this.flush(),this.tempSprite=null},onDraw:function(t){this.drawToGame(t)},setUVs:function(t,e,i,s,n,r,o,a){var h=this.quadVertexViewF32;h[2]=t,h[3]=e,h[9]=i,h[10]=s,h[16]=n,h[17]=r,h[23]=t,h[24]=e,h[30]=n,h[31]=r,h[37]=o,h[38]=a},setTargetUVs:function(t,e){e=e.height/t.height;this.setUVs(0,e=.5{var s=i(56694),n=i(72632),r=i(77310),i=new s({Extends:r,initialize:function(t){t.topology=5,t.batchSize=n(t,"batchSize",256),r.call(this,t)}});t.exports=i},51212:(t,e,i)=>{var s=i(56694),n=i(72632),r=i(77310),o=i(85060),a=i(18166),h=i(44775),i=new s({Extends:r,initialize:function(t){t.fragShader=n(t,"fragShader",o),t.vertShader=n(t,"vertShader",a),t.forceZero=!0,r.call(this,t)},boot:function(){h.prototype.boot.call(this),this.set1i("uMainSampler",0)}});t.exports=i},60848:(t,e,i)=>{var s=i(2529),l=i(95723),n=i(56694),r=i(65246),o=i(37486),a=i(79060),h=i(72632),u=i(98921),c=i(99365),d=i(44775),i=new n({Extends:d,initialize:function(t){t.renderTarget=h(t,"renderTarget",[{scale:1},{scale:1},{scale:.5},{scale:.5}]),t.vertShader=h(t,"vertShader",c),t.shaders=h(t,"shaders",[{name:"Copy",fragShader:a},{name:"AddBlend",fragShader:s},{name:"LinearBlend",fragShader:u},{name:"ColorMatrix",fragShader:o}]),t.attributes=h(t,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2}]),t.vertices=[-1,-1,0,0,-1,1,0,1,1,1,1,1,-1,-1,0,0,1,1,1,1,1,-1,1,0],t.batchSize=1,d.call(this,t),this.colorMatrix=new r,this.copyShader,this.addShader,this.linearShader,this.colorMatrixShader,this.fullFrame1,this.fullFrame2,this.halfFrame1,this.halfFrame2},boot:function(){d.prototype.boot.call(this);var t=this.shaders,e=this.renderTargets;this.copyShader=t[0],this.addShader=t[1],this.linearShader=t[2],this.colorMatrixShader=t[3],this.fullFrame1=e[0],this.fullFrame2=e[1],this.halfFrame1=e[2],this.halfFrame2=e[3]},copyFrame:function(t,e,i,s,n){void 0===i&&(i=1),void 0===s&&(s=!0),void 0===n&&(n=!0);var r=this.gl;this.setShader(this.copyShader),this.set1i("uMainSampler",0),this.set1f("uBrightness",i),r.activeTexture(r.TEXTURE0),r.bindTexture(r.TEXTURE_2D,t.texture),e?(r.viewport(0,0,e.width,e.height),r.bindFramebuffer(r.FRAMEBUFFER,e.framebuffer),r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,e.texture,0)):r.viewport(0,0,t.width,t.height),s&&(n?r.clearColor(0,0,0,0):r.clearColor(0,0,0,1),r.clear(r.COLOR_BUFFER_BIT)),r.bufferData(r.ARRAY_BUFFER,this.vertexData,r.STATIC_DRAW),r.drawArrays(r.TRIANGLES,0,6),r.bindFramebuffer(r.FRAMEBUFFER,null),r.bindTexture(r.TEXTURE_2D,null)},blitFrame:function(t,e,i,s,n,r,o){void 0===i&&(i=1),void 0===s&&(s=!0),void 0===n&&(n=!0),void 0===r&&(r=!1),void 0===o&&(o=!1);var a,h=this.gl;this.setShader(this.copyShader),this.set1i("uMainSampler",0),this.set1f("uBrightness",i),h.activeTexture(h.TEXTURE0),h.bindTexture(h.TEXTURE_2D,t.texture),t.height>e.height?(h.viewport(0,0,t.width,t.height),this.setTargetUVs(t,e)):(i=e.height-t.height,h.viewport(0,i,t.width,t.height)),h.bindFramebuffer(h.FRAMEBUFFER,e.framebuffer),h.framebufferTexture2D(h.FRAMEBUFFER,h.COLOR_ATTACHMENT0,h.TEXTURE_2D,e.texture,0),s&&(n?h.clearColor(0,0,0,0):h.clearColor(0,0,0,1),h.clear(h.COLOR_BUFFER_BIT)),r&&(a=this.renderer.currentBlendMode,this.renderer.setBlendMode(l.ERASE)),o&&this.flipY(),h.bufferData(h.ARRAY_BUFFER,this.vertexData,h.STATIC_DRAW),h.drawArrays(h.TRIANGLES,0,6),r&&this.renderer.setBlendMode(a),h.bindFramebuffer(h.FRAMEBUFFER,null),h.bindTexture(h.TEXTURE_2D,null),this.resetUVs()},copyFrameRect:function(t,e,i,s,n,r,o,a){void 0===o&&(o=!0),void 0===a&&(a=!0);var h=this.gl;h.bindFramebuffer(h.FRAMEBUFFER,t.framebuffer),h.framebufferTexture2D(h.FRAMEBUFFER,h.COLOR_ATTACHMENT0,h.TEXTURE_2D,t.texture,0),o&&(a?h.clearColor(0,0,0,0):h.clearColor(0,0,0,1),h.clear(h.COLOR_BUFFER_BIT)),h.activeTexture(h.TEXTURE0),h.bindTexture(h.TEXTURE_2D,e.texture),h.copyTexSubImage2D(h.TEXTURE_2D,0,0,0,i,s,n,r),h.bindFramebuffer(h.FRAMEBUFFER,null),h.bindTexture(h.TEXTURE_2D,null)},copyToGame:function(t){var e=this.gl;this.setShader(this.copyShader),this.set1i("uMainSampler",0),this.set1f("uBrightness",1),this.renderer.popFramebuffer(),e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,t.texture),e.bufferData(e.ARRAY_BUFFER,this.vertexData,e.STATIC_DRAW),e.drawArrays(e.TRIANGLES,0,6)},drawFrame:function(t,e,i,s){void 0===i&&(i=!0),void 0===s&&(s=this.colorMatrix);var n=this.gl;this.setShader(this.colorMatrixShader),this.set1i("uMainSampler",0),this.set1fv("uColorMatrix",s.getData()),this.set1f("uAlpha",s.alpha),n.activeTexture(n.TEXTURE0),n.bindTexture(n.TEXTURE_2D,t.texture),e?(n.viewport(0,0,e.width,e.height),n.bindFramebuffer(n.FRAMEBUFFER,e.framebuffer),n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,e.texture,0)):n.viewport(0,0,t.width,t.height),i?n.clearColor(0,0,0,0):n.clearColor(0,0,0,1),n.clear(n.COLOR_BUFFER_BIT),n.bufferData(n.ARRAY_BUFFER,this.vertexData,n.STATIC_DRAW),n.drawArrays(n.TRIANGLES,0,6),n.bindFramebuffer(n.FRAMEBUFFER,null),n.bindTexture(n.TEXTURE_2D,null)},blendFrames:function(t,e,i,s,n,r){void 0===s&&(s=1),void 0===n&&(n=!0),void 0===r&&(r=this.linearShader);var o=this.gl;this.setShader(r),this.set1i("uMainSampler1",0),this.set1i("uMainSampler2",1),this.set1f("uStrength",s),o.activeTexture(o.TEXTURE0),o.bindTexture(o.TEXTURE_2D,t.texture),o.activeTexture(o.TEXTURE1),o.bindTexture(o.TEXTURE_2D,e.texture),i?(o.bindFramebuffer(o.FRAMEBUFFER,i.framebuffer),o.framebufferTexture2D(o.FRAMEBUFFER,o.COLOR_ATTACHMENT0,o.TEXTURE_2D,i.texture,0),o.viewport(0,0,i.width,i.height)):o.viewport(0,0,t.width,t.height),n?o.clearColor(0,0,0,0):o.clearColor(0,0,0,1),o.clear(o.COLOR_BUFFER_BIT),o.bufferData(o.ARRAY_BUFFER,this.vertexData,o.STATIC_DRAW),o.drawArrays(o.TRIANGLES,0,6),o.bindFramebuffer(o.FRAMEBUFFER,null),o.bindTexture(o.TEXTURE_2D,null)},blendFramesAdditive:function(t,e,i,s,n){this.blendFrames(t,e,i,s,n,this.addShader)},clearFrame:function(t,e){void 0===e&&(e=!0);var i=this.gl,t=(i.viewport(0,0,t.width,t.height),i.bindFramebuffer(i.FRAMEBUFFER,t.framebuffer),e?i.clearColor(0,0,0,0):i.clearColor(0,0,0,1),i.clear(i.COLOR_BUFFER_BIT),this.renderer.currentFramebuffer);i.bindFramebuffer(i.FRAMEBUFFER,t)},setUVs:function(t,e,i,s,n,r,o,a){var h=this.vertexViewF32;h[2]=t,h[3]=e,h[6]=i,h[7]=s,h[10]=n,h[11]=r,h[14]=t,h[15]=e,h[18]=n,h[19]=r,h[22]=o,h[23]=a},setTargetUVs:function(t,e){e=e.height/t.height;this.setUVs(0,e=.5{t.exports={BITMAPMASK_PIPELINE:"BitmapMaskPipeline",LIGHT_PIPELINE:"Light2D",POINTLIGHT_PIPELINE:"PointLightPipeline",SINGLE_PIPELINE:"SinglePipeline",MULTI_PIPELINE:"MultiPipeline",ROPE_PIPELINE:"RopePipeline",GRAPHICS_PIPELINE:"GraphicsPipeline",POSTFX_PIPELINE:"PostFXPipeline",UTILITY_PIPELINE:"UtilityPipeline",MOBILE_PIPELINE:"MobilePipeline",FX_PIPELINE:"FxPipeline"}},68726:t=>{t.exports="pipelineafterflush"},67186:t=>{t.exports="pipelinebeforeflush"},22709:t=>{t.exports="pipelinebind"},74469:t=>{t.exports="pipelineboot"},93953:t=>{t.exports="pipelinedestroy"},51687:t=>{t.exports="pipelinerebind"},25034:t=>{t.exports="pipelineresize"},18970:(t,e,i)=>{t.exports={AFTER_FLUSH:i(68726),BEFORE_FLUSH:i(67186),BIND:i(22709),BOOT:i(74469),DESTROY:i(93953),REBIND:i(51687),RESIZE:i(25034)}},32469:(t,e,i)=>{var s=i(56694),n=i(87751),r=i(80486),i=new s({Extends:r,initialize:function(t){r.call(this,{game:t,fragShader:n}),this.amount=1},onPreRender:function(t,e){t=this.getController(t),this.set1f("amount",t.amount,e)}});t.exports=i},2134:(t,e,i)=>{var s=i(56694),n=i(88222),r=i(80486),i=new s({Extends:r,initialize:function(t){r.call(this,{game:t,fragShader:n}),this.steps=4,this.offsetX=1,this.offsetY=1,this.blurStrength=1,this.strength=1,this.glcolor=[1,1,1]},onPreRender:function(t){t=this.getController(t),this.set1f("strength",t.blurStrength),this.set3fv("color",t.glcolor)},onDraw:function(t){var e=this.getController(),i=this.fullFrame1,s=this.fullFrame2;this.copyFrame(t,s);for(var n=2/t.width*e.offsetX,r=2/t.height*e.offsetY,o=0;o{var s=i(56694),n=i(35491),r=i(75568),o=i(44481),a=i(80486),i=new s({Extends:a,initialize:function(t){a.call(this,{game:t,shaders:[{name:"Gaussian5",fragShader:n},{name:"Gaussian9",fragShader:r},{name:"Gaussian13",fragShader:o}]}),this.activeShader=this.shaders[0],this.x=2,this.y=2,this.steps=4,this.strength=1,this.glcolor=[1,1,1]},setQualityLow:function(){return this.activeShader=this.shaders[0],this},setQualityMedium:function(){return this.activeShader=this.shaders[1],this},setQualityHigh:function(){return this.activeShader=this.shaders[2],this},onDraw:function(t){var e=this.getController(),i=this.gl,s=this.fullFrame1,n=i.getParameter(i.FRAMEBUFFER_BINDING);this.bind(this.activeShader),i.activeTexture(i.TEXTURE0),i.viewport(0,0,t.width,t.height),this.set1i("uMainSampler",0),this.set2f("resolution",t.width,t.height),this.set1f("strength",e.strength),this.set3fv("color",e.glcolor);for(var r=0;r{var s=i(56694),n=i(69960),r=i(80486),i=new s({Extends:r,initialize:function(t){r.call(this,{game:t,fragShader:n}),this.isTiltShift=!1,this.strength=1,this.blurX=1,this.blurY=1,this.radius=.5,this.amount=1,this.contrast=.2},onPreRender:function(t,e,i,s){t=this.getController(t),this.set1f("radius",t.radius,e),this.set1f("amount",t.amount,e),this.set1f("contrast",t.contrast,e),this.set1f("strength",t.strength,e),this.set2f("blur",t.blurX,t.blurY,e),this.setBoolean("isTiltShift",t.isTiltShift,e),i&&s&&this.set2f("resolution",i,s,e)},onDraw:function(t){this.set2f("resolution",t.width,t.height),this.bindAndDraw(t)}});t.exports=i},4323:(t,e,i)=>{var s=i(56694),n=i(33754),r=i(80486),i=new s({Extends:r,initialize:function(t){r.call(this,{game:t,fragShader:n}),this.scale=1,this.feather=.005,this.thickness=8,this.glcolor=[1,.2,.7],this.glcolor2=[1,0,0,.4]},onPreRender:function(t,e,i,s){t=this.getController(t),this.set1f("scale",t.scale,e),this.set1f("feather",t.feather,e),this.set1f("thickness",t.thickness,e),this.set3fv("color",t.glcolor,e),this.set4fv("backgroundColor",t.glcolor2,e),i&&s&&this.set2f("resolution",i,s,e)},onDraw:function(t){this.set2f("resolution",t.width,t.height),this.bindAndDraw(t)}});t.exports=i},92066:(t,e,i)=>{var s=i(56694),n=i(80486),i=new s({Extends:n,initialize:function(t){n.call(this,{game:t})},onDraw:function(t){var e=this.fullFrame1;this.controller?this.manager.drawFrame(t,e,!0,this.controller):this.drawFrame(t,e),this.copyToGame(e)}});t.exports=i},89581:(t,e,i)=>{var s=i(56694),n=i(35668),r=i(80486),i=new s({Extends:r,initialize:function(t){r.call(this,{game:t,fragShader:n}),this.x=.005,this.y=.005,this.glTexture},onBoot:function(){this.setTexture("__WHITE")},setTexture:function(t){t=this.game.textures.getFrame(t);t&&(this.glTexture=t.glTexture)},onDraw:function(t){var e=this.getController(),i=this.fullFrame1;this.bind(),this.set1i("uMainSampler",0),this.set1i("uDisplacementSampler",1),this.set2f("amount",e.x,e.y),this.bindTexture(e.glTexture,1),this.copySprite(t,i),this.copyToGame(i)}});t.exports=i},55084:(t,e,i)=>{var s=i(56694),n=i(72632),r=i(69675),o=i(80486),a=i(75512),i=new s({Extends:o,initialize:function(t,e){var i=n(e,"quality",.1),e=n(e,"distance",10);o.call(this,{game:t,fragShader:a.setGlowQuality(r,t,i,e)}),this.outerStrength=4,this.innerStrength=0,this.knockout=!1,this.glcolor=[1,1,1,1]},onPreRender:function(t,e,i,s){t=this.getController(t),this.set1f("outerStrength",t.outerStrength,e),this.set1f("innerStrength",t.innerStrength,e),this.set4fv("glowColor",t.glcolor,e),this.setBoolean("knockout",t.knockout,e),i&&s&&this.set2f("resolution",i,s,e)},onDraw:function(t){this.set2f("resolution",t.width,t.height),this.bindAndDraw(t)}});t.exports=i},41653:(t,e,i)=>{var s=i(56694),n=i(90993),r=i(80486),i=new s({Extends:r,initialize:function(t){r.call(this,{game:t,fragShader:n}),this.alpha=.2,this.size=0,this.fromX=0,this.fromY=0,this.toX=0,this.toY=1,this.glcolor1=[255,0,0],this.glcolor2=[0,255,0]},onPreRender:function(t,e){t=this.getController(t),this.set1f("alpha",t.alpha,e),this.set1i("size",t.size,e),this.set3fv("color1",t.glcolor1,e),this.set3fv("color2",t.glcolor2,e),this.set2f("positionFrom",t.fromX,t.fromY,e),this.set2f("positionTo",t.toX,t.toY,e)}});t.exports=i},73416:(t,e,i)=>{var s=i(56694),n=i(37945),r=i(80486),i=new s({Extends:r,initialize:function(t){r.call(this,{game:t,fragShader:n}),this.amount=1},onPreRender:function(t,e,i,s){t=this.getController(t),this.set1f("amount",t.amount,e),i&&s&&this.set2f("resolution",i,s,e)},onDraw:function(t){this.set2f("resolution",t.width,t.height),this.bindAndDraw(t)}});t.exports=i},58049:(t,e,i)=>{var s=i(56694),n=i(85718),r=i(80486),i=new s({Extends:r,initialize:function(t){r.call(this,{game:t,fragShader:n}),this.x=0,this.y=0,this.decay=.1,this.power=1,this.glcolor=[0,0,0,1],this.samples=6,this.intensity=1},onPreRender:function(t,e){var i=(t=this.getController(t)).samples;this.set1i("samples",i,e),this.set1f("intensity",t.intensity,e),this.set1f("decay",t.decay,e),this.set1f("power",t.power/i,e),this.set2f("lightPosition",t.x,t.y,e),this.set4fv("color",t.glcolor,e)}});t.exports=i},18026:(t,e,i)=>{var s=i(56694),n=i(13740),r=i(80486),i=new s({Extends:r,initialize:function(t){r.call(this,{game:t,fragShader:n}),this.speed=.5,this.lineWidth=.5,this.gradient=3,this.reveal=!1},onPreRender:function(t,e,i,s){t=this.getController(t),this.setTime("time",e),this.set1f("speed",t.speed,e),this.set1f("lineWidth",t.lineWidth,e),this.set1f("gradient",t.gradient,e),this.setBoolean("reveal",t.reveal,e),i&&s&&this.set2f("resolution",i,s,e)},onDraw:function(t){this.set2f("resolution",t.width,t.height),this.bindAndDraw(t)}});t.exports=i},72381:(t,e,i)=>{var s=i(56694),n=i(80617),r=i(80486),i=new s({Extends:r,initialize:function(t){r.call(this,{game:t,fragShader:n}),this.x=.5,this.y=.5,this.radius=.5,this.strength=.5},onPreRender:function(t,e){t=this.getController(t),this.set1f("radius",t.radius,e),this.set1f("strength",t.strength,e),this.set2f("position",t.x,t.y,e)}});t.exports=i},80542:(t,e,i)=>{var s=i(56694),n=i(62879),r=i(80486),i=new s({Extends:r,initialize:function(t){r.call(this,{game:t,fragShader:n}),this.progress=0,this.wipeWidth=.1,this.direction=0,this.axis=0,this.reveal=!1},onPreRender:function(t,e){var i=(t=this.getController(t)).progress,s=t.wipeWidth,n=t.direction,r=t.axis;this.set4f("config",i,s,n,r,e),this.setBoolean("reveal",t.reveal,e)}});t.exports=i},58136:(t,e,i)=>{i={Barrel:i(32469),Bloom:i(2134),Blur:i(63377),Bokeh:i(49745),Circle:i(4323),ColorMatrix:i(92066),Displacement:i(89581),Glow:i(55084),Gradient:i(41653),Pixelate:i(73416),Shadow:i(58049),Shine:i(18026),Vignette:i(72381),Wipe:i(80542)};t.exports=i},62253:(t,e,i)=>{var s=i(65641),i=i(98611)(!1,{FX:i(58136),BitmapMaskPipeline:i(5583),Events:i(18970),FXPipeline:i(81828),LightPipeline:i(66901),MobilePipeline:i(71264),MultiPipeline:i(77310),PointLightPipeline:i(10919),PostFXPipeline:i(80486),PreFXPipeline:i(87228),RopePipeline:i(21213),SinglePipeline:i(51212),UtilityPipeline:i(60848)},s);t.exports=i},2529:t=>{t.exports=["#define SHADER_NAME PHASER_ADD_BLEND_FS","precision mediump float;","uniform sampler2D uMainSampler1;","uniform sampler2D uMainSampler2;","uniform float uStrength;","varying vec2 outTexCoord;","void main ()","{"," vec4 frame1 = texture2D(uMainSampler1, outTexCoord);"," vec4 frame2 = texture2D(uMainSampler2, outTexCoord);"," gl_FragColor = frame1 + frame2 * uStrength;","}"].join("\n")},91679:t=>{t.exports=["#define SHADER_NAME PHASER_BITMAP_MASK_FS","precision mediump float;","uniform vec2 uResolution;","uniform sampler2D uMainSampler;","uniform sampler2D uMaskSampler;","uniform bool uInvertMaskAlpha;","void main ()","{"," vec2 uv = gl_FragCoord.xy / uResolution;"," vec4 mainColor = texture2D(uMainSampler, uv);"," vec4 maskColor = texture2D(uMaskSampler, uv);"," if (!uInvertMaskAlpha)"," {"," mainColor *= maskColor.a;"," }"," else"," {"," mainColor *= (1.0 - maskColor.a);"," }"," gl_FragColor = mainColor;","}"].join("\n")},89053:t=>{t.exports=["#define SHADER_NAME PHASER_BITMAP_MASK_VS","precision mediump float;","attribute vec2 inPosition;","void main ()","{"," gl_Position = vec4(inPosition, 0.0, 1.0);","}"].join("\n")},37486:t=>{t.exports=["#define SHADER_NAME PHASER_COLORMATRIX_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform float uColorMatrix[20];","uniform float uAlpha;","varying vec2 outTexCoord;","void main ()","{"," vec4 c = texture2D(uMainSampler, outTexCoord);"," if (uAlpha == 0.0)"," {"," gl_FragColor = c;"," return;"," }"," if (c.a > 0.0)"," {"," c.rgb /= c.a;"," }"," vec4 result;"," result.r = (uColorMatrix[0] * c.r) + (uColorMatrix[1] * c.g) + (uColorMatrix[2] * c.b) + (uColorMatrix[3] * c.a) + uColorMatrix[4];"," result.g = (uColorMatrix[5] * c.r) + (uColorMatrix[6] * c.g) + (uColorMatrix[7] * c.b) + (uColorMatrix[8] * c.a) + uColorMatrix[9];"," result.b = (uColorMatrix[10] * c.r) + (uColorMatrix[11] * c.g) + (uColorMatrix[12] * c.b) + (uColorMatrix[13] * c.a) + uColorMatrix[14];"," result.a = (uColorMatrix[15] * c.r) + (uColorMatrix[16] * c.g) + (uColorMatrix[17] * c.b) + (uColorMatrix[18] * c.a) + uColorMatrix[19];"," vec3 rgb = mix(c.rgb, result.rgb, uAlpha);"," rgb *= result.a;"," gl_FragColor = vec4(rgb, result.a);","}"].join("\n")},79060:t=>{t.exports=["#define SHADER_NAME PHASER_COPY_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform float uBrightness;","varying vec2 outTexCoord;","void main ()","{"," gl_FragColor = texture2D(uMainSampler, outTexCoord) * uBrightness;","}"].join("\n")},87751:t=>{t.exports=["#define SHADER_NAME BARREL_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform float amount;","varying vec2 outTexCoord;","vec2 Distort(vec2 p)","{"," float theta = atan(p.y, p.x);"," float radius = length(p);"," radius = pow(radius, amount);"," p.x = radius * cos(theta);"," p.y = radius * sin(theta);"," return 0.5 * (p + 1.0);","}","void main()","{"," vec2 xy = 2.0 * outTexCoord - 1.0;"," vec2 texCoord = outTexCoord;"," if (length(xy) < 1.0)"," {"," texCoord = Distort(xy);"," }"," gl_FragColor = texture2D(uMainSampler, texCoord);","}"].join("\n")},88222:t=>{t.exports=["#define SHADER_NAME BLOOM_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 offset;","uniform float strength;","uniform vec3 color;","varying vec2 outTexCoord;","void main ()","{"," vec4 sum = texture2D(uMainSampler, outTexCoord) * 0.204164 * strength;"," sum = sum + texture2D(uMainSampler, outTexCoord + offset * 1.407333) * 0.304005;"," sum = sum + texture2D(uMainSampler, outTexCoord - offset * 1.407333) * 0.304005;"," sum = sum + texture2D(uMainSampler, outTexCoord + offset * 3.294215) * 0.093913;"," gl_FragColor = (sum + texture2D(uMainSampler, outTexCoord - offset * 3.294215) * 0.093913) * vec4(color, 1);","}"].join("\n")},44481:t=>{t.exports=["#define SHADER_NAME BLUR_HIGH_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform vec2 offset;","uniform float strength;","uniform vec3 color;","varying vec2 outTexCoord;","void main ()","{"," vec2 uv = outTexCoord;"," vec4 col = vec4(0.0);"," vec2 off1 = vec2(1.411764705882353) * offset * strength;"," vec2 off2 = vec2(3.2941176470588234) * offset * strength;"," vec2 off3 = vec2(5.176470588235294) * offset * strength;"," col += texture2D(uMainSampler, uv) * 0.1964825501511404;"," col += texture2D(uMainSampler, uv + (off1 / resolution)) * 0.2969069646728344;"," col += texture2D(uMainSampler, uv - (off1 / resolution)) * 0.2969069646728344;"," col += texture2D(uMainSampler, uv + (off2 / resolution)) * 0.09447039785044732;"," col += texture2D(uMainSampler, uv - (off2 / resolution)) * 0.09447039785044732;"," col += texture2D(uMainSampler, uv + (off3 / resolution)) * 0.010381362401148057;"," col += texture2D(uMainSampler, uv - (off3 / resolution)) * 0.010381362401148057;"," gl_FragColor = col * vec4(color, 1.0);","}"].join("\n")},35491:t=>{t.exports=["#define SHADER_NAME BLUR_LOW_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform float strength;","uniform vec3 color;","varying vec2 outTexCoord;","void main ()","{"," vec2 uv = outTexCoord;"," vec4 col = vec4(0.0);"," vec2 offset = vec2(1.333) * strength;"," col += texture2D(uMainSampler, uv) * 0.29411764705882354;"," col += texture2D(uMainSampler, uv + (offset / resolution)) * 0.35294117647058826;"," col += texture2D(uMainSampler, uv - (offset / resolution)) * 0.35294117647058826;"," gl_FragColor = col * vec4(color, 1.0);","}"].join("\n")},75568:t=>{t.exports=["#define SHADER_NAME BLUR_MED_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform vec2 offset;","uniform float strength;","uniform vec3 color;","varying vec2 outTexCoord;","void main ()","{"," vec2 uv = outTexCoord;"," vec4 col = vec4(0.0);"," vec2 off1 = vec2(1.3846153846) * offset * strength;"," vec2 off2 = vec2(3.2307692308) * offset * strength;"," col += texture2D(uMainSampler, uv) * 0.2270270270;"," col += texture2D(uMainSampler, uv + (off1 / resolution)) * 0.3162162162;"," col += texture2D(uMainSampler, uv - (off1 / resolution)) * 0.3162162162;"," col += texture2D(uMainSampler, uv + (off2 / resolution)) * 0.0702702703;"," col += texture2D(uMainSampler, uv - (off2 / resolution)) * 0.0702702703;"," gl_FragColor = col * vec4(color, 1.0);","}"].join("\n")},69960:t=>{t.exports=["#define SHADER_NAME BOKEH_FS","precision mediump float;","#define ITERATIONS 100.0","#define ONEOVER_ITR 1.0 / ITERATIONS","#define PI 3.141596","#define GOLDEN_ANGLE 2.39996323","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform float radius;","uniform float amount;","uniform float contrast;","uniform bool isTiltShift;","uniform float strength;","uniform vec2 blur;","varying vec2 outTexCoord;","vec2 Sample (in float theta, inout float r)","{"," r += 1.0 / r;"," return (r - 1.0) * vec2(cos(theta), sin(theta)) * 0.06;","}","vec3 Bokeh (sampler2D tex, vec2 uv, float radius)","{"," vec3 acc = vec3(0.0);"," vec3 div = vec3(0.0);"," vec2 pixel = vec2(resolution.y / resolution.x, 1.0) * radius * .025;"," float r = 1.0;"," for (float j = 0.0; j < GOLDEN_ANGLE * ITERATIONS; j += GOLDEN_ANGLE)"," {"," vec3 col = texture2D(tex, uv + pixel * Sample(j, r)).xyz;"," col = contrast > 0.0 ? col * col * (1.0 + contrast) : col;"," vec3 bokeh = vec3(0.5) + pow(col, vec3(10.0)) * amount;"," acc += col * bokeh;"," div += bokeh;"," }"," return acc / div;","}","void main ()","{"," float shift = 1.0;"," if (isTiltShift)"," {"," vec2 uv = vec2(gl_FragCoord.xy / resolution + vec2(-0.5, -0.5)) * 2.0;"," float centerStrength = 1.0;"," shift = length(uv * blur * strength) * centerStrength;"," }"," gl_FragColor = vec4(Bokeh(uMainSampler, outTexCoord * vec2(1.0, 1.0), radius * shift), 0.0);","}"].join("\n")},33754:t=>{t.exports=["#define SHADER_NAME CIRCLE_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform vec3 color;","uniform vec4 backgroundColor;","uniform float thickness;","uniform float scale;","uniform float feather;","varying vec2 outTexCoord;","void main ()","{"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec2 position = (gl_FragCoord.xy / resolution.xy) * 2.0 - 1.0;"," float aspectRatio = resolution.x / resolution.y;"," position.x *= aspectRatio;"," float grad = length(position);"," float outer = aspectRatio;"," float inner = outer - (thickness * 2.0 / resolution.y);"," if (aspectRatio >= 1.0)"," {"," float f = 2.0 + (resolution.y / resolution.x);"," outer = 1.0;"," inner = 1.0 - (thickness * f / resolution.x);"," }"," outer *= scale;"," inner *= scale;"," float circle = smoothstep(outer, outer - 0.01, grad);"," float ring = circle - smoothstep(inner, inner - feather, grad);"," texture = mix(backgroundColor * backgroundColor.a, texture, texture.a);"," texture = (texture * (circle - ring));"," gl_FragColor = vec4(texture.rgb + (ring * color), texture.a);","}"].join("\n")},35668:t=>{t.exports=["#define SHADER_NAME DISPLACEMENT_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform sampler2D uDisplacementSampler;","uniform vec2 amount;","varying vec2 outTexCoord;","void main ()","{"," vec2 disp = (-vec2(0.5, 0.5) + texture2D(uDisplacementSampler, outTexCoord).rr) * amount;"," gl_FragColor = texture2D(uMainSampler, outTexCoord + disp).rgba;","}"].join("\n")},69675:t=>{t.exports=["#define SHADER_NAME GLOW_FS","precision mediump float;","uniform sampler2D uMainSampler;","varying vec2 outTexCoord;","uniform float outerStrength;","uniform float innerStrength;","uniform vec2 resolution;","uniform vec4 glowColor;","uniform bool knockout;","const float PI = 3.14159265358979323846264;","const float DIST = __DIST__;","const float SIZE = min(__SIZE__, PI * 2.0);","const float STEP = ceil(PI * 2.0 / SIZE);","const float MAX_ALPHA = STEP * DIST * (DIST + 1.0) / 2.0;","void main ()","{"," vec2 px = vec2(1.0 / resolution.x, 1.0 / resolution.y);"," float totalAlpha = 0.0;"," vec2 direction;"," vec2 displaced;"," vec4 color;"," for (float angle = 0.0; angle < PI * 2.0; angle += SIZE)"," {"," direction = vec2(cos(angle), sin(angle)) * px;"," for (float curDistance = 0.0; curDistance < DIST; curDistance++)"," {"," displaced = outTexCoord + direction * (curDistance + 1.0);"," color = texture2D(uMainSampler, displaced);"," totalAlpha += (DIST - curDistance) * color.a;"," }"," }"," color = texture2D(uMainSampler, outTexCoord);"," float alphaRatio = (totalAlpha / MAX_ALPHA);"," float innerGlowAlpha = (1.0 - alphaRatio) * innerStrength * color.a;"," float innerGlowStrength = min(1.0, innerGlowAlpha);"," vec4 innerColor = mix(color, glowColor, innerGlowStrength);"," float outerGlowAlpha = alphaRatio * outerStrength * (1.0 - color.a);"," float outerGlowStrength = min(1.0 - innerColor.a, outerGlowAlpha);"," vec4 outerGlowColor = outerGlowStrength * glowColor.rgba;"," if (knockout)"," {"," float resultAlpha = outerGlowAlpha + innerGlowAlpha;"," gl_FragColor = vec4(glowColor.rgb * resultAlpha, resultAlpha);"," }"," else"," {"," gl_FragColor = innerColor + outerGlowColor;"," }","}"].join("\n")},90993:t=>{t.exports=["#define SHADER_NAME GRADIENT_FS","#define SRGB_TO_LINEAR(c) pow((c), vec3(2.2))","#define LINEAR_TO_SRGB(c) pow((c), vec3(1.0 / 2.2))","#define SRGB(r, g, b) SRGB_TO_LINEAR(vec3(float(r), float(g), float(b)) / 255.0)","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 positionFrom;","uniform vec2 positionTo;","uniform vec3 color1;","uniform vec3 color2;","uniform float alpha;","uniform int size;","varying vec2 outTexCoord;","float gradientNoise(in vec2 uv)","{"," const vec3 magic = vec3(0.06711056, 0.00583715, 52.9829189);"," return fract(magic.z * fract(dot(uv, magic.xy)));","}","float stepped (in float s, in float scale, in int steps)","{"," return steps > 0 ? floor( s / ((1.0 * scale) / float(steps))) * 1.0 / float(steps - 1) : s;","}","void main ()","{"," vec2 a = positionFrom;"," vec2 b = positionTo;"," vec2 ba = b - a;"," float d = dot(outTexCoord - a, ba) / dot(ba, ba);"," float t = size > 0 ? stepped(d, 1.0, size) : d;"," t = smoothstep(0.0, 1.0, clamp(t, 0.0, 1.0));"," vec3 color = mix(SRGB(color1.r, color1.g, color1.b), SRGB(color2.r, color2.g, color2.b), t);"," color = LINEAR_TO_SRGB(color);"," color += (1.0 / 255.0) * gradientNoise(outTexCoord) - (0.5 / 255.0);"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," gl_FragColor = vec4(mix(color.rgb, texture.rgb, alpha), 1.0) * texture.a;","}"].join("\n")},37945:t=>{t.exports=["#define SHADER_NAME PIXELATE_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform float amount;","varying vec2 outTexCoord;","void main ()","{"," float pixelSize = floor(2.0 + amount);"," vec2 center = pixelSize * floor(outTexCoord * resolution / pixelSize) + pixelSize * vec2(0.5, 0.5);"," vec2 corner1 = center + pixelSize * vec2(-0.5, -0.5);"," vec2 corner2 = center + pixelSize * vec2(+0.5, -0.5);"," vec2 corner3 = center + pixelSize * vec2(+0.5, +0.5);"," vec2 corner4 = center + pixelSize * vec2(-0.5, +0.5);"," vec4 pixel = 0.4 * texture2D(uMainSampler, center / resolution);"," pixel += 0.15 * texture2D(uMainSampler, corner1 / resolution);"," pixel += 0.15 * texture2D(uMainSampler, corner2 / resolution);"," pixel += 0.15 * texture2D(uMainSampler, corner3 / resolution);"," pixel += 0.15 * texture2D(uMainSampler, corner4 / resolution);"," gl_FragColor = pixel;","}"].join("\n")},85718:t=>{t.exports=["#define SHADER_NAME SHADOW_FS","precision mediump float;","uniform sampler2D uMainSampler;","varying vec2 outTexCoord;","uniform vec2 lightPosition;","uniform vec4 color;","uniform float decay;","uniform float power;","uniform float intensity;","uniform int samples;","const int MAX = 12;","void main ()","{"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec2 pc = (lightPosition - outTexCoord) * intensity;"," float shadow = 0.0;"," float limit = max(float(MAX), float(samples));"," for (int i = 0; i < MAX; ++i)"," {"," if (i >= samples)"," {"," break;"," }"," shadow += texture2D(uMainSampler, outTexCoord + float(i) * decay / limit * pc).a * power;"," }"," float mask = 1.0 - texture.a;"," gl_FragColor = mix(texture, color, shadow * mask);","}"].join("\n")},13740:t=>{t.exports=["#define SHADER_NAME SHINE_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform bool reveal;","uniform float speed;","uniform float time;","uniform float lineWidth;","uniform float gradient;","varying vec2 outTexCoord;","void main ()","{","\tvec2 uv = gl_FragCoord.xy / resolution.xy;"," vec4 tex = texture2D(uMainSampler, outTexCoord);"," vec4 col1 = vec4(0.3, 0.0, 0.0, 1.0);"," vec4 col2 = vec4(0.85, 0.85, 0.85, 1.0);"," uv.x = uv.x - mod(time * speed, 2.0) + 0.5;"," float y = uv.x * gradient;"," float s = smoothstep(y - lineWidth, y, uv.y) - smoothstep(y, y + lineWidth, uv.y);"," gl_FragColor = (((s * col1) + (s * col2)) * tex);"," if (!reveal)"," {"," gl_FragColor += tex;"," }","}"].join("\n")},80617:t=>{t.exports=["#define SHADER_NAME VIGNETTE_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform float radius;","uniform float strength;","uniform vec2 position;","varying vec2 outTexCoord;","void main ()","{"," vec4 col = vec4(1.0);"," float d = length(outTexCoord - position);"," if (d <= radius)"," {"," float g = d / radius;"," g = sin(g * 3.14 * strength);"," \tcol = vec4(g * g * g);"," }"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," gl_FragColor = texture * (1.0 - col);","}"].join("\n")},62879:t=>{t.exports=["#define SHADER_NAME WIPE_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec4 config;","uniform bool reveal;","varying vec2 outTexCoord;","void main ()","{"," vec2 uv = outTexCoord;"," vec4 color0;"," vec4 color1;"," if (reveal)"," {"," color0 = vec4(0);"," color1 = texture2D(uMainSampler, uv);"," }"," else"," {"," color0 = texture2D(uMainSampler, uv);"," color1 = vec4(0);"," }"," float distance = config.x;"," float width = config.y;"," float direction = config.z;"," float axis = uv.x;"," if (config.w == 1.0)"," {"," axis = uv.y;"," }"," float adjust = mix(width, -width, distance);"," float value = smoothstep(distance - width, distance + width, abs(direction - axis) + adjust);"," gl_FragColor = mix(color1, color0, value);","}"].join("\n")},65045:t=>{t.exports=["#define SHADER_NAME PHASER_LIGHT_FS","precision mediump float;","struct Light","{"," vec2 position;"," vec3 color;"," float intensity;"," float radius;","};","const int kMaxLights = %LIGHT_COUNT%;","uniform vec4 uCamera; /* x, y, rotation, zoom */","uniform vec2 uResolution;","uniform sampler2D uMainSampler;","uniform sampler2D uNormSampler;","uniform vec3 uAmbientLightColor;","uniform Light uLights[kMaxLights];","uniform mat3 uInverseRotationMatrix;","uniform int uLightCount;","varying vec2 outTexCoord;","varying float outTexId;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," vec3 finalColor = vec3(0.0, 0.0, 0.0);"," vec4 texel = vec4(outTint.bgr * outTint.a, outTint.a);"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec4 color = texture * texel;"," if (outTintEffect == 1.0)"," {"," color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a);"," }"," else if (outTintEffect == 2.0)"," {"," color = texel;"," }"," vec3 normalMap = texture2D(uNormSampler, outTexCoord).rgb;"," vec3 normal = normalize(uInverseRotationMatrix * vec3(normalMap * 2.0 - 1.0));"," vec2 res = vec2(min(uResolution.x, uResolution.y)) * uCamera.w;"," for (int index = 0; index < kMaxLights; ++index)"," {"," if (index < uLightCount)"," {"," Light light = uLights[index];"," vec3 lightDir = vec3((light.position.xy / res) - (gl_FragCoord.xy / res), 0.1);"," vec3 lightNormal = normalize(lightDir);"," float distToSurf = length(lightDir) * uCamera.w;"," float diffuseFactor = max(dot(normal, lightNormal), 0.0);"," float radius = (light.radius / res.x * uCamera.w) * uCamera.w;"," float attenuation = clamp(1.0 - distToSurf * distToSurf / (radius * radius), 0.0, 1.0);"," vec3 diffuse = light.color * diffuseFactor;"," finalColor += (attenuation * diffuse) * light.intensity;"," }"," }"," vec4 colorOutput = vec4(uAmbientLightColor + finalColor, 1.0);"," gl_FragColor = color * vec4(colorOutput.rgb * colorOutput.a, colorOutput.a);","}"].join("\n")},98921:t=>{t.exports=["#define SHADER_NAME PHASER_LINEAR_BLEND_FS","precision mediump float;","uniform sampler2D uMainSampler1;","uniform sampler2D uMainSampler2;","uniform float uStrength;","varying vec2 outTexCoord;","void main ()","{"," vec4 frame1 = texture2D(uMainSampler1, outTexCoord);"," vec4 frame2 = texture2D(uMainSampler2, outTexCoord);"," gl_FragColor = mix(frame1, frame2 * uStrength, 0.5);","}"].join("\n")},25005:t=>{t.exports=["#define SHADER_NAME PHASER_MESH_FS","precision mediump float;","uniform vec3 uLightPosition;","uniform vec3 uLightAmbient;","uniform vec3 uLightDiffuse;","uniform vec3 uLightSpecular;","uniform vec3 uFogColor;","uniform float uFogNear;","uniform float uFogFar;","uniform vec3 uMaterialAmbient;","uniform vec3 uMaterialDiffuse;","uniform vec3 uMaterialSpecular;","uniform float uMaterialShine;","uniform vec3 uCameraPosition;","uniform sampler2D uTexture;","varying vec2 vTextureCoord;","varying vec3 vNormal;","varying vec3 vPosition;","void main (void)","{"," vec4 color = texture2D(uTexture, vTextureCoord);"," vec3 ambient = uLightAmbient * uMaterialAmbient;"," vec3 norm = normalize(vNormal);"," vec3 lightDir = normalize(uLightPosition - vPosition);"," float diff = max(dot(norm, lightDir), 0.0);"," vec3 diffuse = uLightDiffuse * (diff * uMaterialDiffuse);"," vec3 viewDir = normalize(uCameraPosition - vPosition);"," vec3 reflectDir = reflect(-lightDir, norm);"," float spec = pow(max(dot(viewDir, reflectDir), 0.0), uMaterialShine);"," vec3 specular = uLightSpecular * (spec * uMaterialSpecular);"," vec3 result = (ambient + diffuse + specular) * color.rgb;"," float depth = gl_FragCoord.z / gl_FragCoord.w;"," float fogFactor = smoothstep(uFogNear, uFogFar, depth);"," gl_FragColor.rgb = mix(result.rgb, uFogColor, fogFactor);"," gl_FragColor.a = color.a;","}"].join("\n")},94914:t=>{t.exports=["#define SHADER_NAME PHASER_MESH_VS","precision mediump float;","attribute vec3 aVertexPosition;","attribute vec3 aVertexNormal;","attribute vec2 aTextureCoord;","uniform mat4 uViewProjectionMatrix;","uniform mat4 uModelMatrix;","uniform mat4 uNormalMatrix;","varying vec2 vTextureCoord;","varying vec3 vNormal;","varying vec3 vPosition;","void main ()","{"," vTextureCoord = aTextureCoord;"," vPosition = vec3(uModelMatrix * vec4(aVertexPosition, 1.0));"," vNormal = vec3(uNormalMatrix * vec4(aVertexNormal, 1.0));"," gl_Position = uViewProjectionMatrix * uModelMatrix * vec4(aVertexPosition, 1.0);","}"].join("\n")},11263:t=>{t.exports=["#define SHADER_NAME PHASER_MOBILE_FS","#ifdef GL_FRAGMENT_PRECISION_HIGH","precision highp float;","#else","precision mediump float;","#endif","uniform sampler2D uMainSampler;","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," vec4 texel = vec4(outTint.bgr * outTint.a, outTint.a);"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec4 color = texture * texel;"," if (outTintEffect == 1.0)"," {"," color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a);"," }"," else if (outTintEffect == 2.0)"," {"," color = texel;"," }"," gl_FragColor = color;","}"].join("\n")},51852:t=>{t.exports=["#define SHADER_NAME PHASER_MOBILE_VS","#ifdef GL_FRAGMENT_PRECISION_HIGH","precision highp float;","#else","precision mediump float;","#endif","uniform mat4 uProjectionMatrix;","attribute vec2 inPosition;","attribute vec2 inTexCoord;","attribute float inTexId;","attribute float inTintEffect;","attribute vec4 inTint;","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);"," outTexCoord = inTexCoord;"," outTint = inTint;"," outTintEffect = inTintEffect;","}"].join("\n")},53787:t=>{t.exports=["#define SHADER_NAME PHASER_MULTI_FS","#ifdef GL_FRAGMENT_PRECISION_HIGH","precision highp float;","#else","precision mediump float;","#endif","uniform sampler2D uMainSampler[%count%];","varying vec2 outTexCoord;","varying float outTexId;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," vec4 texture;"," %forloop%"," vec4 texel = vec4(outTint.bgr * outTint.a, outTint.a);"," vec4 color = texture * texel;"," if (outTintEffect == 1.0)"," {"," color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a);"," }"," else if (outTintEffect == 2.0)"," {"," color = texel;"," }"," gl_FragColor = color;","}"].join("\n")},15968:t=>{t.exports=["#define SHADER_NAME PHASER_MULTI_VS","#ifdef GL_FRAGMENT_PRECISION_HIGH","precision highp float;","#else","precision mediump float;","#endif","uniform mat4 uProjectionMatrix;","attribute vec2 inPosition;","attribute vec2 inTexCoord;","attribute float inTexId;","attribute float inTintEffect;","attribute vec4 inTint;","varying vec2 outTexCoord;","varying float outTexId;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);"," outTexCoord = inTexCoord;"," outTexId = inTexId;"," outTint = inTint;"," outTintEffect = inTintEffect;","}"].join("\n")},83327:t=>{t.exports=["#define SHADER_NAME PHASER_POINTLIGHT_FS","precision mediump float;","uniform vec2 uResolution;","uniform float uCameraZoom;","varying vec4 lightPosition;","varying vec4 lightColor;","varying float lightRadius;","varying float lightAttenuation;","void main ()","{"," vec2 center = (lightPosition.xy + 1.0) * (uResolution.xy * 0.5);"," float distToSurf = length(center - gl_FragCoord.xy);"," float radius = 1.0 - distToSurf / (lightRadius * uCameraZoom);"," float intensity = smoothstep(0.0, 1.0, radius * lightAttenuation);"," vec4 color = vec4(intensity, intensity, intensity, 0.0) * lightColor;"," gl_FragColor = vec4(color.rgb * lightColor.a, color.a);","}"].join("\n")},54677:t=>{t.exports=["#define SHADER_NAME PHASER_POINTLIGHT_VS","precision mediump float;","uniform mat4 uProjectionMatrix;","attribute vec2 inPosition;","attribute vec2 inLightPosition;","attribute vec4 inLightColor;","attribute float inLightRadius;","attribute float inLightAttenuation;","varying vec4 lightPosition;","varying vec4 lightColor;","varying float lightRadius;","varying float lightAttenuation;","void main ()","{"," lightColor = inLightColor;"," lightRadius = inLightRadius;"," lightAttenuation = inLightAttenuation;"," lightPosition = uProjectionMatrix * vec4(inLightPosition, 1.0, 1.0);"," gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);","}"].join("\n")},12569:t=>{t.exports=["#define SHADER_NAME PHASER_POSTFX_FS","precision mediump float;","uniform sampler2D uMainSampler;","varying vec2 outTexCoord;","void main ()","{"," gl_FragColor = texture2D(uMainSampler, outTexCoord);","}"].join("\n")},99365:t=>{t.exports=["#define SHADER_NAME PHASER_QUAD_VS","precision mediump float;","attribute vec2 inPosition;","attribute vec2 inTexCoord;","varying vec2 outFragCoord;","varying vec2 outTexCoord;","void main ()","{"," outFragCoord = inPosition.xy * 0.5 + 0.5;"," outTexCoord = inTexCoord;"," gl_Position = vec4(inPosition, 0, 1);","}"].join("\n")},85060:t=>{t.exports=["#define SHADER_NAME PHASER_SINGLE_FS","#ifdef GL_FRAGMENT_PRECISION_HIGH","precision highp float;","#else","precision mediump float;","#endif","uniform sampler2D uMainSampler;","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec4 texel = vec4(outTint.bgr * outTint.a, outTint.a);"," vec4 color = texture * texel;"," if (outTintEffect == 1.0)"," {"," color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a);"," }"," else if (outTintEffect == 2.0)"," {"," color = texel;"," }"," gl_FragColor = color;","}"].join("\n")},18166:t=>{t.exports=["#define SHADER_NAME PHASER_SINGLE_VS","precision mediump float;","uniform mat4 uProjectionMatrix;","attribute vec2 inPosition;","attribute vec2 inTexCoord;","attribute float inTexId;","attribute float inTintEffect;","attribute vec4 inTint;","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);"," outTexCoord = inTexCoord;"," outTint = inTint;"," outTintEffect = inTintEffect;","}"].join("\n")},92462:(t,e,i)=>{t.exports={AddBlendFrag:i(2529),BitmapMaskFrag:i(91679),BitmapMaskVert:i(89053),ColorMatrixFrag:i(37486),CopyFrag:i(79060),FXBarrelFrag:i(87751),FXBloomFrag:i(88222),FXBlurHighFrag:i(44481),FXBlurLowFrag:i(35491),FXBlurMedFrag:i(75568),FXBokehFrag:i(69960),FXCircleFrag:i(33754),FXDisplacementFrag:i(35668),FXGlowFrag:i(69675),FXGradientFrag:i(90993),FXPixelateFrag:i(37945),FXShadowFrag:i(85718),FXShineFrag:i(13740),FXVignetteFrag:i(80617),FXWipeFrag:i(62879),LightFrag:i(65045),LinearBlendFrag:i(98921),MeshFrag:i(25005),MeshVert:i(94914),MobileFrag:i(11263),MobileVert:i(51852),MultiFrag:i(53787),MultiVert:i(15968),PointLightFrag:i(83327),PointLightVert:i(54677),PostFXFrag:i(12569),QuadVert:i(99365),SingleFrag:i(85060),SingleVert:i(18166)}},756:(t,e,i)=>{var h=i(55301),s=i(56694),n=i(6659),r=i(40444),o=i(97081),a=i(74181),l=i(2893),u=i(9229),c=i(72283),d=i(74118),p=i(90881),f=i(84314),g=i(93736),y=i(47751),i=new s({Extends:n,initialize:function(t){n.call(this),this.game=t,this.canvas,this.canvasBounds=new d,this.parent=null,this.parentIsWindow=!1,this.parentSize=new p,this.gameSize=new p,this.baseSize=new p,this.displaySize=new p,this.scaleMode=h.SCALE_MODE.NONE,this.zoom=1,this._resetZoom=!1,this.displayScale=new g(1,1),this.autoRound=!1,this.autoCenter=h.CENTER.NO_CENTER,this.orientation=h.ORIENTATION.LANDSCAPE,this.fullscreen,this.fullscreenTarget=null,this._createdFullscreenTarget=!1,this.dirty=!1,this.resizeInterval=500,this._lastCheck=0,this._checkOrientation=!1,this.domlisteners={orientationChange:c,windowResize:c,fullScreenChange:c,fullScreenError:c}},preBoot:function(){this.parseConfig(this.game.config),this.game.events.once(o.BOOT,this.boot,this)},boot:function(){var t=this.game;this.canvas=t.canvas,this.fullscreen=t.device.fullscreen,this.scaleMode!==h.SCALE_MODE.RESIZE&&this.displaySize.setAspectMode(this.scaleMode),this.scaleMode===h.SCALE_MODE.NONE?this.resize(this.width,this.height):(this.getParentBounds(),0=n.width?i.width:i.width-(n.width-s.width)*r.x,i=s.height>=n.height?i.height:i.height-(n.height-s.height)*r.y;return e.setTo(o,a,h,i),t&&(e.width/=t.zoomX,e.height/=t.zoomY,e.centerX=t.centerX+t.scrollX,e.centerY=t.centerY+t.scrollY),e},step:function(t,e){this.parent&&(this._lastCheck+=e,this.dirty||this._lastCheck>this.resizeInterval)&&(this.getParentBounds()&&this.refresh(),this.dirty=!1,this._lastCheck=0)},stopListeners:function(){var e=this.domlisteners;window.removeEventListener("orientationchange",e.orientationChange,!1),window.removeEventListener("resize",e.windowResize,!1),["webkit","moz",""].forEach(function(t){document.removeEventListener(t+"fullscreenchange",e.fullScreenChange,!1),document.removeEventListener(t+"fullscreenerror",e.fullScreenError,!1)}),document.removeEventListener("MSFullscreenChange",e.fullScreenChange,!1),document.removeEventListener("MSFullscreenError",e.fullScreenError,!1)},destroy:function(){this.removeAllListeners(),this.stopListeners(),this.game=null,this.canvas=null,this.canvasBounds=null,this.parent=null,this.fullscreenTarget=null,this.parentSize.destroy(),this.gameSize.destroy(),this.baseSize.destroy(),this.displaySize.destroy()},isFullscreen:{get:function(){return this.fullscreen.active}},width:{get:function(){return this.gameSize.width}},height:{get:function(){return this.gameSize.height}},isPortrait:{get:function(){return this.orientation===h.ORIENTATION.PORTRAIT}},isLandscape:{get:function(){return this.orientation===h.ORIENTATION.LANDSCAPE}},isGamePortrait:{get:function(){return this.height>this.width}},isGameLandscape:{get:function(){return this.width>this.height}}});t.exports=i},35098:t=>{t.exports={NO_CENTER:0,CENTER_BOTH:1,CENTER_HORIZONTALLY:2,CENTER_VERTICALLY:3}},53539:t=>{t.exports={LANDSCAPE:"landscape-primary",PORTRAIT:"portrait-primary"}},12637:t=>{t.exports={NONE:0,WIDTH_CONTROLS_HEIGHT:1,HEIGHT_CONTROLS_WIDTH:2,FIT:3,ENVELOP:4,RESIZE:5}},10217:t=>{t.exports={NO_ZOOM:1,ZOOM_2X:2,ZOOM_4X:4,MAX_ZOOM:-1}},55301:(t,e,i)=>{i={CENTER:i(35098),ORIENTATION:i(53539),SCALE_MODE:i(12637),ZOOM:i(10217)};t.exports=i},82085:t=>{t.exports="enterfullscreen"},11826:t=>{t.exports="fullscreenfailed"},56691:t=>{t.exports="fullscreenunsupported"},34739:t=>{t.exports="leavefullscreen"},26681:t=>{t.exports="orientationchange"},11428:t=>{t.exports="resize"},40444:(t,e,i)=>{t.exports={ENTER_FULLSCREEN:i(82085),FULLSCREEN_FAILED:i(11826),FULLSCREEN_UNSUPPORTED:i(56691),LEAVE_FULLSCREEN:i(34739),ORIENTATION_CHANGE:i(26681),RESIZE:i(11428)}},86754:(t,e,i)=>{var s=i(98611),n=i(55301),i=s(!1,{Center:i(35098),Events:i(40444),Orientation:i(53539),ScaleManager:i(756),ScaleModes:i(12637),Zoom:i(10217)},n.CENTER);i=s(!1,i,n.ORIENTATION),i=s(!1,i,n.SCALE_MODE),i=s(!1,i,n.ZOOM),t.exports=i},47736:(t,e,i)=>{var n=i(72632),r=i(40587);t.exports=function(t){var e=t.game.config.defaultPhysicsSystem,t=n(t.settings,"physics",!1);if(e||t){var i=[];if(e&&i.push(r(e+"Physics")),t)for(var s in t)s=r(s.concat("Physics")),-1===i.indexOf(s)&&i.push(s);return i}}},91088:(t,e,i)=>{var s=i(72632);t.exports=function(t){var e=t.plugins.getDefaultScenePlugins(),t=s(t.settings,"plugins",!1);return Array.isArray(t)?t:e||[]}},90415:t=>{t.exports={game:"game",renderer:"renderer",anims:"anims",cache:"cache",plugins:"plugins",registry:"registry",scale:"scale",sound:"sound",textures:"textures",events:"events",cameras:"cameras",add:"add",make:"make",scenePlugin:"scene",displayList:"children",lights:"lights",data:"data",input:"input",load:"load",time:"time",tweens:"tweens",arcadePhysics:"physics",impactPhysics:"impact",matterPhysics:"matter"}},87157:(t,e,i)=>{var s=i(56694),n=i(63946),i=new s({initialize:function(t){this.sys=new n(this,t),this.game,this.anims,this.cache,this.registry,this.sound,this.textures,this.events,this.cameras,this.add,this.make,this.scene,this.children,this.lights,this.data,this.input,this.load,this.time,this.tweens,this.physics,this.matter,this.scale,this.plugins,this.renderer},update:function(){}});t.exports=i},13553:(t,e,i)=>{var s=i(56694),o=i(92980),n=i(7599),r=i(97081),l=i(10850),a=i(683),h=i(72283),u=i(87157),c=i(63946),i=new s({initialize:function(t,e){if(this.game=t,this.keys={},this.scenes=[],this._pending=[],this._start=[],this._queue=[],this._data={},this.isProcessing=!1,this.isBooted=!1,this.customViewports=0,this.systemScene,e){Array.isArray(e)||(e=[e]);for(var i=0;io.START&&s.settings.status<=o.RUNNING&&s.step(t,e),s.scenePlugin._target&&s.scenePlugin.step(t,e)}},render:function(t){for(var e=0;e=o.LOADING&&i.settings.status=o.START&&r<=o.CREATING)){if(r>=o.RUNNING&&r<=o.SLEEPING)n.shutdown(),n.sceneUpdate=h,n.start(e);else if(n.sceneUpdate=h,n.start(e),(s=n.load?n.load:s)&&n.settings.hasOwnProperty("pack")&&(s.reset(),s.addPack({payload:n.settings.pack})))return n.settings.status=o.LOADING,s.once(a.COMPLETE,this.payloadComplete,this),s.start(),this;this.bootScene(i)}}}else this._data[t]={autoStart:!0,data:e};return this},stop:function(t,e){var i,t=this.getScene(t);return t&&!t.sys.isTransitioning()&&t.sys.settings.status!==o.SHUTDOWN&&((i=t.sys.load)&&(i.off(a.COMPLETE,this.loadComplete,this),i.off(a.COMPLETE,this.payloadComplete,this)),t.sys.shutdown(e)),this},switch:function(t,e){var i=this.getScene(t),s=this.getScene(e);return i&&s&&i!==s&&(this.sleep(t),this.isSleeping(e)?this.wake(e):this.start(e)),this},getAt:function(t){return this.scenes[t]},getIndex:function(t){t=this.getScene(t);return this.scenes.indexOf(t)},bringToTop:function(t){var e;return this.isProcessing?this._queue.push({op:"bringToTop",keyA:t,keyB:null}):-1!==(e=this.getIndex(t))&&e{var s=i(82897),n=i(56694),o=i(7599),a=i(72632),i=i(91963),n=new n({initialize:function(t){this.scene=t,this.systems=t.sys,this.settings=t.sys.settings,this.key=t.sys.settings.key,this.manager=t.sys.game.scene,this.transitionProgress=0,this._elapsed=0,this._target=null,this._duration=0,this._onUpdate,this._onUpdateScope,this._willSleep=!1,this._willRemove=!1,t.sys.events.once(o.BOOT,this.boot,this),t.sys.events.on(o.START,this.pluginStart,this)},boot:function(){this.systems.events.once(o.DESTROY,this.destroy,this)},pluginStart:function(){this._target=null,this.systems.events.once(o.SHUTDOWN,this.shutdown,this)},start:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("stop",this.key),this.manager.queueOp("start",t,e),this},restart:function(t){var e=this.key;return this.manager.queueOp("stop",e),this.manager.queueOp("start",e,t),this},transition:function(t){var e,i,s,n=a(t=void 0===t?{}:t,"target",!1),r=this.manager.getScene(n);return!(!n||!this.checkValidTransition(r)||(e=a(t,"duration",1e3),this._elapsed=0,this._target=r,this._duration=e,this._willSleep=a(t,"sleep",!1),this._willRemove=a(t,"remove",!1),(s=a(t,"onUpdate",null))&&(this._onUpdate=s,this._onUpdateScope=a(t,"onUpdateScope",this.scene)),s=a(t,"allowInput",!1),this.settings.transitionAllowInput=s,(i=r.sys.settings).isTransition=!0,i.transitionFrom=this.scene,i.transitionDuration=e,i.transitionAllowInput=s,a(t,"moveAbove",!1)?this.manager.moveAbove(this.key,n):a(t,"moveBelow",!1)&&this.manager.moveBelow(this.key,n),r.sys.isSleeping()?r.sys.wake(a(t,"data")):this.manager.start(n,a(t,"data")),i=a(t,"onStart",null),s=a(t,"onStartScope",this.scene),i&&i.call(s,this.scene,r,e),this.systems.events.emit(o.TRANSITION_OUT,r,e),0))},checkValidTransition:function(t){return!(!t||t.sys.isActive()||t.sys.isTransitioning()||t===this.scene||this.systems.isTransitioning())},step:function(t,e){this._elapsed+=e,this.transitionProgress=s(this._elapsed/this._duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.transitionProgress),this._elapsed>=this._duration&&this.transitionComplete()},transitionComplete:function(){var t=this._target.sys,e=this._target.sys.settings;t.events.emit(o.TRANSITION_COMPLETE,this.scene),e.isTransition=!1,e.transitionFrom=null,this._duration=0,this._target=null,this._onUpdate=null,this._onUpdateScope=null,this._willRemove?this.manager.remove(this.key):this._willSleep?this.systems.sleep():this.manager.stop(this.key)},add:function(t,e,i,s){return this.manager.add(t,e,i,s)},launch:function(t,e){return t&&t!==this.key&&this.manager.queueOp("start",t,e),this},run:function(t,e){return t&&t!==this.key&&this.manager.queueOp("run",t,e),this},pause:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("pause",t,e),this},resume:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("resume",t,e),this},sleep:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("sleep",t,e),this},wake:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("wake",t,e),this},switch:function(t){return t!==this.key&&this.manager.queueOp("switch",this.key,t),this},stop:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("stop",t,e),this},setActive:function(t,e,i){void 0===e&&(e=this.key);e=this.manager.getScene(e);return e&&e.sys.setActive(t,i),this},setVisible:function(t,e){void 0===e&&(e=this.key);e=this.manager.getScene(e);return e&&e.sys.setVisible(t),this},isSleeping:function(t){return void 0===t&&(t=this.key),this.manager.isSleeping(t)},isActive:function(t){return void 0===t&&(t=this.key),this.manager.isActive(t)},isPaused:function(t){return void 0===t&&(t=this.key),this.manager.isPaused(t)},isVisible:function(t){return void 0===t&&(t=this.key),this.manager.isVisible(t)},swapPosition:function(t,e){return t!==(e=void 0===e?this.key:e)&&this.manager.swapPosition(t,e),this},moveAbove:function(t,e){return t!==(e=void 0===e?this.key:e)&&this.manager.moveAbove(t,e),this},moveBelow:function(t,e){return t!==(e=void 0===e?this.key:e)&&this.manager.moveBelow(t,e),this},remove:function(t){return void 0===t&&(t=this.key),this.manager.remove(t),this},moveUp:function(t){return void 0===t&&(t=this.key),this.manager.moveUp(t),this},moveDown:function(t){return void 0===t&&(t=this.key),this.manager.moveDown(t),this},bringToTop:function(t){return void 0===t&&(t=this.key),this.manager.bringToTop(t),this},sendToBack:function(t){return void 0===t&&(t=this.key),this.manager.sendToBack(t),this},get:function(t){return this.manager.getScene(t)},getStatus:function(t){t=this.manager.getScene(t);if(t)return t.sys.getStatus()},getIndex:function(t){return void 0===t&&(t=this.key),this.manager.getIndex(t)},shutdown:function(){var t=this.systems.events;t.off(o.SHUTDOWN,this.shutdown,this),t.off(o.TRANSITION_OUT)},destroy:function(){this.shutdown(),this.scene.sys.events.off(o.START,this.start,this),this.scene=null,this.systems=null,this.settings=null,this.manager=null}});i.register("ScenePlugin",n,"scenePlugin"),t.exports=n},36765:(t,e,i)=>{var s=i(92980),n=i(10850),r=i(30657),o=i(90415);t.exports={create:function(t){return"string"==typeof t?t={key:t}:void 0===t&&(t={}),{status:s.PENDING,key:n(t,"key",""),active:n(t,"active",!1),visible:n(t,"visible",!0),isBooted:!1,isTransition:!1,transitionFrom:null,transitionDuration:0,transitionAllowInput:!0,data:{},pack:n(t,"pack",!1),cameras:n(t,"cameras",null),map:n(t,"map",r(o,n(t,"mapAdd",{}))),physics:n(t,"physics",{}),loader:n(t,"loader",{}),plugins:n(t,"plugins",!1),input:n(t,"input",{})}}}},63946:(t,e,i)=>{var s=i(56694),n=i(92980),r=i(18360),o=i(7599),a=i(47736),h=i(91088),l=i(72283),u=i(36765),i=new s({initialize:function(t,e){this.scene=t,this.game,this.renderer,this.config=e,this.settings=u.create(e),this.canvas,this.context,this.anims,this.cache,this.plugins,this.registry,this.scale,this.sound,this.textures,this.add,this.cameras,this.displayList,this.events,this.make,this.scenePlugin,this.updateList,this.sceneUpdate=l},init:function(t){this.settings.status=n.INIT,this.sceneUpdate=l,this.game=t,this.renderer=t.renderer,this.canvas=t.canvas,this.context=t.context;t=t.plugins;(this.plugins=t).addToScene(this,r.Global,[r.CoreScene,h(this),a(this)]),this.events.emit(o.BOOT,this),this.settings.isBooted=!0},step:function(t,e){var i=this.events;i.emit(o.PRE_UPDATE,t,e),i.emit(o.UPDATE,t,e),this.sceneUpdate.call(this.scene,t,e),i.emit(o.POST_UPDATE,t,e)},render:function(t){var e=this.displayList;e.depthSort(),this.events.emit(o.PRE_RENDER,t),this.cameras.render(t,e),this.events.emit(o.RENDER,t)},queueDepthSort:function(){this.displayList.queueDepthSort()},depthSort:function(){this.displayList.depthSort()},pause:function(t){var e=this.settings,i=this.getStatus();return i!==n.CREATING&&i!==n.RUNNING||!this.settings.active||(e.status=n.PAUSED,e.active=!1,this.events.emit(o.PAUSE,this,t)),this},resume:function(t){var e=this.events,i=this.settings;return this.settings.active||(i.status=n.RUNNING,i.active=!0,e.emit(o.RESUME,this,t)),this},sleep:function(t){var e=this.settings,i=this.getStatus();return i!==n.CREATING&&i!==n.RUNNING||(e.status=n.SLEEPING,e.active=!1,e.visible=!1,this.events.emit(o.SLEEP,this,t)),this},wake:function(t){var e=this.events,i=this.settings;return i.status=n.RUNNING,i.active=!0,i.visible=!0,e.emit(o.WAKE,this,t),i.isTransition&&e.emit(o.TRANSITION_WAKE,i.transitionFrom,i.transitionDuration),this},getData:function(){return this.settings.data},getStatus:function(){return this.settings.status},canInput:function(){var t=this.settings.status;return t>n.PENDING&&t<=n.RUNNING},isSleeping:function(){return this.settings.status===n.SLEEPING},isActive:function(){return this.settings.status===n.RUNNING},isPaused:function(){return this.settings.status===n.PAUSED},isTransitioning:function(){return this.settings.isTransition||null!==this.scenePlugin._target},isTransitionOut:function(){return null!==this.scenePlugin._target&&0{t.exports={PENDING:0,INIT:1,START:2,LOADING:3,CREATING:4,RUNNING:5,PAUSED:6,SLEEPING:7,SHUTDOWN:8,DESTROYED:9}},31803:t=>{t.exports="addedtoscene"},94817:t=>{t.exports="boot"},28977:t=>{t.exports="create"},91959:t=>{t.exports="destroy"},363:t=>{t.exports="pause"},15643:t=>{t.exports="postupdate"},17058:t=>{t.exports="prerender"},77125:t=>{t.exports="preupdate"},76018:t=>{t.exports="ready"},28620:t=>{t.exports="removedfromscene"},41538:t=>{t.exports="render"},34268:t=>{t.exports="resume"},2342:t=>{t.exports="shutdown"},96541:t=>{t.exports="sleep"},74244:t=>{t.exports="start"},17046:t=>{t.exports="transitioncomplete"},13637:t=>{t.exports="transitioninit"},14733:t=>{t.exports="transitionout"},33899:t=>{t.exports="transitionstart"},52418:t=>{t.exports="transitionwake"},31735:t=>{t.exports="update"},8470:t=>{t.exports="wake"},7599:(t,e,i)=>{t.exports={ADDED_TO_SCENE:i(31803),BOOT:i(94817),CREATE:i(28977),DESTROY:i(91959),PAUSE:i(363),POST_UPDATE:i(15643),PRE_RENDER:i(17058),PRE_UPDATE:i(77125),READY:i(76018),REMOVED_FROM_SCENE:i(28620),RENDER:i(41538),RESUME:i(34268),SHUTDOWN:i(2342),SLEEP:i(96541),START:i(74244),TRANSITION_COMPLETE:i(17046),TRANSITION_INIT:i(13637),TRANSITION_OUT:i(14733),TRANSITION_START:i(33899),TRANSITION_WAKE:i(52418),UPDATE:i(31735),WAKE:i(8470)}},20436:(t,e,i)=>{var s=i(92980),i=i(98611)(!1,{Events:i(7599),GetPhysicsPlugins:i(47736),GetScenePlugins:i(91088),SceneManager:i(13553),ScenePlugin:i(64051),Settings:i(36765),Systems:i(63946)},s);t.exports=i},25798:(t,e,i)=>{var s=i(56694),n=i(6659),r=i(76038),o=i(98611),i=i(72283),s=new s({Extends:n,initialize:function(t,e,i){n.call(this),this.manager=t,this.key=e,this.isPlaying=!1,this.isPaused=!1,this.totalRate=1,this.duration=this.duration||0,this.totalDuration=this.totalDuration||0,this.config={mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0,pan:0},this.currentConfig=this.config,this.config=o(this.config,i),this.markers={},this.currentMarker=null,this.pendingRemove=!1},addMarker:function(t){return!(!t||!t.name||"string"!=typeof t.name||this.markers[t.name]||(t=o(!0,{name:"",start:0,duration:this.totalDuration-(t.start||0),config:{mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0,pan:0}},t),this.markers[t.name]=t,0))},updateMarker:function(t){return!(!t||!t.name||"string"!=typeof t.name||!this.markers[t.name]||(this.markers[t.name]=o(!0,this.markers[t.name],t),0))},removeMarker:function(t){var e=this.markers[t];return e?(this.markers[t]=null,e):null},play:function(t,e){if("object"==typeof(t=void 0===t?"":t)&&(e=t,t=""),"string"!=typeof t)return!1;if(t){if(!this.markers[t])return!1;this.currentMarker=this.markers[t],this.currentConfig=this.currentMarker.config,this.duration=this.currentMarker.duration}else this.currentMarker=null,this.currentConfig=this.config,this.duration=this.totalDuration;return this.resetConfig(),this.currentConfig=o(this.currentConfig,e),this.isPlaying=!0,!(this.isPaused=!1)},pause:function(){return!(this.isPaused||!this.isPlaying||(this.isPlaying=!1,this.isPaused=!0,0))},resume:function(){return!(!this.isPaused||this.isPlaying||(this.isPlaying=!0,this.isPaused=!1))},stop:function(){return!(!this.isPaused&&!this.isPlaying||(this.isPlaying=!1,this.isPaused=!1,this.resetConfig(),0))},applyConfig:function(){this.mute=this.currentConfig.mute,this.volume=this.currentConfig.volume,this.rate=this.currentConfig.rate,this.detune=this.currentConfig.detune,this.loop=this.currentConfig.loop,this.pan=this.currentConfig.pan},resetConfig:function(){this.currentConfig.seek=0,this.currentConfig.delay=0},update:i,calculateRate:function(){var t=this.currentConfig.detune+this.manager.detune,t=Math.pow(1.0005777895065548,t);this.totalRate=this.currentConfig.rate*this.manager.rate*t},destroy:function(){this.pendingRemove||(this.emit(r.DESTROY,this),this.removeAllListeners(),this.pendingRemove=!0,this.manager=null,this.config=null,this.currentConfig=null,this.markers=null,this.currentMarker=null)}});t.exports=s},12486:(t,e,i)=>{var s=i(56694),o=i(32742),n=i(6659),r=i(76038),a=i(97081),h=i(71608),l=i(51463),u=i(72283),c=i(93736),i=new s({Extends:n,initialize:function(t){n.call(this),this.game=t,this.jsonCache=t.cache.json,this.sounds=[],this.mute=!1,this.volume=1,this.pauseOnBlur=!0,this._rate=1,this._detune=0,this.locked=this.locked||!1,this.unlocked=!1,this.gameLostFocus=!1,this.listenerPosition=new c,t.events.on(a.BLUR,this.onGameBlur,this),t.events.on(a.FOCUS,this.onGameFocus,this),t.events.on(a.PRE_STEP,this.update,this),t.events.once(a.DESTROY,this.destroy,this)},add:u,addAudioSprite:function(t,e){var i,s,n,r=this.add(t,e=void 0===e?{}:e);for(i in r.spritemap=this.jsonCache.get(t).spritemap,r.spritemap)r.spritemap.hasOwnProperty(i)&&(s=o(e),n=r.spritemap[i],s.loop=!!n.hasOwnProperty("loop")&&n.loop,r.addMarker({name:i,start:n.start,duration:n.end-n.start,config:s}));return r},get:function(t){return l(this.sounds,"key",t)},getAll:function(t){return t?h(this.sounds,"key",t):h(this.sounds)},getAllPlaying:function(){return h(this.sounds,"isPlaying",!0)},play:function(t,e){t=this.add(t);return t.once(r.COMPLETE,t.destroy,t),e?e.name?(t.addMarker(e),t.play(e.name)):t.play(e):t.play()},playAudioSprite:function(t,e,i){t=this.addAudioSprite(t);return t.once(r.COMPLETE,t.destroy,t),t.play(e,i)},remove:function(t){var e=this.sounds.indexOf(t);return-1!==e&&(t.destroy(),this.sounds.splice(e,1),!0)},removeAll:function(){this.sounds.forEach(function(t){t.destroy()}),this.sounds.length=0},removeByKey:function(t){for(var e=0,i=this.sounds.length-1;0<=i;i--){var s=this.sounds[i];s.key===t&&(s.destroy(),this.sounds.splice(i,1),e++)}return e},pauseAll:function(){this.forEachActiveSound(function(t){t.pause()}),this.emit(r.PAUSE_ALL,this)},resumeAll:function(){this.forEachActiveSound(function(t){t.resume()}),this.emit(r.RESUME_ALL,this)},setListenerPosition:u,stopAll:function(){this.forEachActiveSound(function(t){t.stop()}),this.emit(r.STOP_ALL,this)},stopByKey:function(t){var e=0;return this.getAll(t).forEach(function(t){t.stop()&&e++}),e},unlock:u,onBlur:u,onFocus:u,onGameBlur:function(){this.gameLostFocus=!0,this.pauseOnBlur&&this.onBlur()},onGameFocus:function(){this.gameLostFocus=!1,this.pauseOnBlur&&this.onFocus()},update:function(e,i){this.unlocked&&(this.unlocked=!1,this.locked=!1,this.emit(r.UNLOCKED,this));for(var t=this.sounds.length-1;0<=t;t--)this.sounds[t].pendingRemove&&this.sounds.splice(t,1);this.sounds.forEach(function(t){t.update(e,i)})},destroy:function(){this.game.events.off(a.BLUR,this.onGameBlur,this),this.game.events.off(a.FOCUS,this.onGameFocus,this),this.game.events.off(a.PRE_STEP,this.update,this),this.removeAllListeners(),this.removeAll(),this.sounds.length=0,this.sounds=null,this.listenerPosition=null,this.game=null},forEachActiveSound:function(i,s){var n=this;this.sounds.forEach(function(t,e){t&&!t.pendingRemove&&i.call(s||n,t,e,n.sounds)})},setRate:function(t){return this.rate=t,this},rate:{get:function(){return this._rate},set:function(t){this._rate=t,this.forEachActiveSound(function(t){t.calculateRate()}),this.emit(r.GLOBAL_RATE,this,t)}},setDetune:function(t){return this.detune=t,this},detune:{get:function(){return this._detune},set:function(t){this._detune=t,this.forEachActiveSound(function(t){t.calculateRate()}),this.emit(r.GLOBAL_DETUNE,this,t)}}});t.exports=i},84191:(t,e,i)=>{var s=i(27622),n=i(17546),r=i(55491);t.exports={create:function(t){var e=t.config.audio,i=t.device.audio;return new(e.noAudio||!i.webAudio&&!i.audioData?n:i.webAudio&&!e.disableWebAudio?r:s)(t)}}},77578:t=>{t.exports="complete"},19679:t=>{t.exports="decodedall"},56951:t=>{t.exports="decoded"},16436:t=>{t.exports="destroy"},55154:t=>{t.exports="detune"},57818:t=>{t.exports="detune"},57890:t=>{t.exports="mute"},83022:t=>{t.exports="rate"},99170:t=>{t.exports="volume"},64289:t=>{t.exports="looped"},67214:t=>{t.exports="loop"},53128:t=>{t.exports="mute"},73078:t=>{t.exports="pan"},76763:t=>{t.exports="pauseall"},88426:t=>{t.exports="pause"},13765:t=>{t.exports="play"},80291:t=>{t.exports="rate"},11124:t=>{t.exports="resumeall"},55382:t=>{t.exports="resume"},71157:t=>{t.exports="seek"},31776:t=>{t.exports="stopall"},39450:t=>{t.exports="stop"},21939:t=>{t.exports="unlocked"},33019:t=>{t.exports="volume"},76038:(t,e,i)=>{t.exports={COMPLETE:i(77578),DECODED:i(56951),DECODED_ALL:i(19679),DESTROY:i(16436),DETUNE:i(55154),GLOBAL_DETUNE:i(57818),GLOBAL_MUTE:i(57890),GLOBAL_RATE:i(83022),GLOBAL_VOLUME:i(99170),LOOP:i(67214),LOOPED:i(64289),MUTE:i(53128),PAN:i(73078),PAUSE_ALL:i(76763),PAUSE:i(88426),PLAY:i(13765),RATE:i(80291),RESUME_ALL:i(11124),RESUME:i(55382),SEEK:i(71157),STOP_ALL:i(31776),STOP:i(39450),UNLOCKED:i(21939),VOLUME:i(33019)}},34350:(t,e,i)=>{var s=i(25798),n=i(56694),r=i(76038),o=i(82897),i=new n({Extends:s,initialize:function(t,e,i){if(void 0===i&&(i={}),this.tags=t.game.cache.audio.get(e),!this.tags)throw new Error('No cached audio asset with key "'+e);this.audio=null,this.startTime=0,this.previousTime=0,this.duration=this.tags[0].duration,this.totalDuration=this.tags[0].duration,s.call(this,t,e,i)},play:function(t,e){return!(this.manager.isLocked(this,"play",[t,e])||!s.prototype.play.call(this,t,e)||!this.pickAndPlayAudioTag()||(this.emit(r.PLAY,this),0))},pause:function(){return!(this.manager.isLocked(this,"pause")||0=e-this.manager.loopEndOffset?(this.audio.currentTime=t+Math.max(0,i-e),i=this.audio.currentTime):i{var s=i(12486),n=i(56694),o=i(76038),r=i(34350),i=new n({Extends:s,initialize:function(t){this.override=!0,this.audioPlayDelay=.1,this.loopEndOffset=.05,this.onBlurPausedSounds=[],this.locked="ontouchstart"in window,this.lockedActionsQueue=this.locked?[]:null,this._mute=!1,this._volume=1,s.call(this,t)},add:function(t,e){t=new r(this,t,e);return this.sounds.push(t),t},unlock:function(){this.locked=!1;var e,i,s,r=this;this.game.cache.audio.entries.each(function(t,e){for(var i=0;i{t.exports={SoundManagerCreator:i(84191),Events:i(76038),BaseSound:i(25798),BaseSoundManager:i(12486),WebAudioSound:i(96008),WebAudioSoundManager:i(55491),HTML5AudioSound:i(34350),HTML5AudioSoundManager:i(27622),NoAudioSound:i(38662),NoAudioSoundManager:i(17546)}},38662:(t,e,i)=>{function s(){return!1}function n(){return null}function r(){return this}var o=i(25798),a=i(56694),h=i(6659),l=i(98611),i=i(72283),a=new a({Extends:h,initialize:function(t,e,i){void 0===i&&(i={}),h.call(this),this.manager=t,this.key=e,this.isPlaying=!1,this.isPaused=!1,this.totalRate=1,this.duration=0,this.totalDuration=0,this.config=l({mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0,pan:0},i),this.currentConfig=this.config,this.mute=!1,this.volume=1,this.rate=1,this.detune=0,this.seek=0,this.loop=!1,this.pan=0,this.markers={},this.currentMarker=null,this.pendingRemove=!1},addMarker:s,updateMarker:s,removeMarker:n,play:s,pause:s,resume:s,stop:s,setMute:r,setVolume:r,setRate:r,setDetune:r,setSeek:r,setLoop:r,setPan:r,applyConfig:n,resetConfig:n,update:i,calculateRate:n,destroy:function(){o.prototype.destroy.call(this)}});t.exports=a},17546:(t,e,i)=>{var s=i(12486),n=i(56694),r=i(6659),o=i(38662),i=i(72283),n=new n({Extends:r,initialize:function(t){r.call(this),this.game=t,this.sounds=[],this.mute=!1,this.volume=1,this.rate=1,this.detune=0,this.pauseOnBlur=!0,this.locked=!1},add:function(t,e){t=new o(this,t,e);return this.sounds.push(t),t},addAudioSprite:function(t,e){t=this.add(t,e);return t.spritemap={},t},get:function(t){return s.prototype.get.call(this,t)},getAll:function(t){return s.prototype.getAll.call(this,t)},play:function(t,e){return!1},playAudioSprite:function(t,e,i){return!1},remove:function(t){return s.prototype.remove.call(this,t)},removeAll:function(){return s.prototype.removeAll.call(this)},removeByKey:function(t){return s.prototype.removeByKey.call(this,t)},stopByKey:function(t){return s.prototype.stopByKey.call(this,t)},onBlur:i,onFocus:i,onGameBlur:i,onGameFocus:i,pauseAll:i,resumeAll:i,stopAll:i,update:i,setRate:i,setDetune:i,setMute:i,setVolume:i,unlock:i,forEachActiveSound:function(t,e){s.prototype.forEachActiveSound.call(this,t,e)},destroy:function(){s.prototype.destroy.call(this)}});t.exports=n},96008:(t,e,i)=>{var s=i(25798),n=i(56694),r=i(76038),o=i(72632),i=new n({Extends:s,initialize:function(t,e,i){if(void 0===i&&(i={}),this.audioBuffer=t.game.cache.audio.get(e),!this.audioBuffer)throw new Error('Audio key "'+e+'" missing from cache');this.source=null,this.loopSource=null,this.muteNode=t.context.createGain(),this.volumeNode=t.context.createGain(),this.pannerNode=null,this.spatialNode=null,this.spatialSource=null,this.playTime=0,this.startTime=0,this.loopTime=0,this.rateUpdates=[],this.hasEnded=!1,this.hasLooped=!1,this.muteNode.connect(this.volumeNode),t.context.createPanner&&(this.spatialNode=t.context.createPanner(),this.volumeNode.connect(this.spatialNode)),(t.context.createStereoPanner?(this.pannerNode=t.context.createStereoPanner(),(t.context.createPanner?this.spatialNode:this.volumeNode).connect(this.pannerNode),this.pannerNode):t.context.createPanner?this.spatialNode:this.volumeNode).connect(t.destination),this.duration=this.audioBuffer.duration,this.totalDuration=this.audioBuffer.duration,s.call(this,t,e,i)},play:function(t,e){return!!s.prototype.play.call(this,t,e)&&(this.stopAndRemoveBufferSource(),this.createAndStartBufferSource(),this.emit(r.PLAY,this),!0)},pause:function(){return!(this.manager.context.currentTime{var l=i(82329),r=i(12486),s=i(56694),u=i(76038),n=i(97081),o=i(96008),a=i(72632),i=new s({Extends:r,initialize:function(t){this.context=this.createAudioContext(t),this.masterMuteNode=this.context.createGain(),this.masterVolumeNode=this.context.createGain(),this.masterMuteNode.connect(this.masterVolumeNode),this.masterVolumeNode.connect(this.context.destination),this.destination=this.masterMuteNode,this.locked="suspended"===this.context.state&&("ontouchstart"in window||"onclick"in window),r.call(this,t),this.locked&&t.isBooted?this.unlock():t.events.once(n.BOOT,this.unlock,this)},createAudioContext:function(t){t=t.config.audio;return t.context?(t.context.resume(),t.context):window.hasOwnProperty("AudioContext")?new AudioContext:window.hasOwnProperty("webkitAudioContext")?new window.webkitAudioContext:void 0},setAudioContext:function(t){return this.context&&this.context.close(),this.masterMuteNode&&this.masterMuteNode.disconnect(),this.masterVolumeNode&&this.masterVolumeNode.disconnect(),this.context=t,this.masterMuteNode=t.createGain(),this.masterVolumeNode=t.createGain(),this.masterMuteNode.connect(this.masterVolumeNode),this.masterVolumeNode.connect(t.destination),this.destination=this.masterMuteNode,this},add:function(t,e){t=new o(this,t,e);return this.sounds.push(t),t},decodeAudio:function(t,e){for(var i=Array.isArray(t)?t:[{key:t,data:e}],s=this.game.cache.audio,n=i.length,r=0;r{var n=i(59959),s=i(56694),r=i(72283),o=i(17922),i=new s({initialize:function(t){this.parent=t,this.list=[],this.position=0,this.addCallback=r,this.removeCallback=r,this._sortKey=""},add:function(t,e){return e?n.Add(this.list,t):n.Add(this.list,t,0,this.addCallback,this)},addAt:function(t,e,i){return i?n.AddAt(this.list,t,e):n.AddAt(this.list,t,e,0,this.addCallback,this)},getAt:function(t){return this.list[t]},getIndex:function(t){return this.list.indexOf(t)},sort:function(i,t){return i&&o(this.list,t=void 0===t?function(t,e){return t[i]-e[i]}:t),this},getByName:function(t){return n.GetFirst(this.list,"name",t)},getRandom:function(t,e){return n.GetRandom(this.list,t,e)},getFirst:function(t,e,i,s){return n.GetFirst(this.list,t,e,i,s)},getAll:function(t,e,i,s){return n.GetAll(this.list,t,e,i,s)},count:function(t,e){return n.CountAllMatching(this.list,t,e)},swap:function(t,e){n.Swap(this.list,t,e)},moveTo:function(t,e){return n.MoveTo(this.list,t,e)},moveAbove:function(t,e){return n.MoveAbove(this.list,t,e)},moveBelow:function(t,e){return n.MoveBelow(this.list,t,e)},remove:function(t,e){return e?n.Remove(this.list,t):n.Remove(this.list,t,this.removeCallback,this)},removeAt:function(t,e){return e?n.RemoveAt(this.list,t):n.RemoveAt(this.list,t,this.removeCallback,this)},removeBetween:function(t,e,i){return i?n.RemoveBetween(this.list,t,e):n.RemoveBetween(this.list,t,e,this.removeCallback,this)},removeAll:function(t){for(var e=this.list.length;e--;)this.remove(this.list[e],t);return this},bringToTop:function(t){return n.BringToTop(this.list,t)},sendToBack:function(t){return n.SendToBack(this.list,t)},moveUp:function(t){return n.MoveUp(this.list,t),t},moveDown:function(t){return n.MoveDown(this.list,t),t},reverse:function(){return this.list.reverse(),this},shuffle:function(){return n.Shuffle(this.list),this},replace:function(t,e){return n.Replace(this.list,t,e)},exists:function(t){return-1{i=new(i(56694))({initialize:function(t){if(this.entries={},this.size=0,Array.isArray(t))for(var e=0;e{var s=i(56694),n=i(6659),r=i(36716),i=new s({Extends:n,initialize:function(){n.call(this),this._pending=[],this._active=[],this._destroy=[],this._toProcess=0,this.checkQueue=!1},isActive:function(t){return-1{var a=i(53466);function s(t){if(!(this instanceof s))return new s(t);this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}function p(t,e){f(t,0,t.children.length,e,t)}function f(t,e,i,s,n){(n=n||y(null)).minX=1/0,n.minY=1/0,n.maxX=-1/0,n.maxY=-1/0;for(var r,o=e;o=t.minX&&e.maxY>=t.minY}function y(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function v(t,e,i,s,n){for(var r,o=[e,i];o.length;)(i=o.pop())-(e=o.pop())<=s||(r=e+Math.ceil((i-e)/s/2)*s,a(t,r,e,i,n),o.push(e,r,r,i))}s.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,i=[],s=this.toBBox;if(l(t,e))for(var n,r,o,a,h=[];e;){for(n=0,r=e.children.length;nthis._maxEntries;)this._split(n,e),e--;this._adjustParentBBoxes(i,n,e)},_split:function(t,e){var i=t[e],s=i.children.length,n=this._minEntries,n=(this._chooseSplitAxis(i,n,s),this._chooseSplitIndex(i,n,s)),s=y(i.children.splice(n,i.children.length-n));s.height=i.height,s.leaf=i.leaf,p(i,this.toBBox),p(s,this.toBBox),e?t[e-1].children.push(s):this._splitRoot(i,s)},_splitRoot:function(t,e){this.data=y([t,e]),this.data.height=t.height+1,this.data.leaf=!1,p(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,i){for(var s,n,r,o,a,h,l,u,c,d=r=1/0,p=e;p<=i-e;p++)c=s=f(t,0,p,this.toBBox),a=n=f(t,p,i,this.toBBox),0,h=Math.max(c.minX,a.minX),l=Math.max(c.minY,a.minY),u=Math.min(c.maxX,a.maxX),c=Math.min(c.maxY,a.maxY),a=Math.max(0,u-h)*Math.max(0,c-l),u=g(s)+g(n),a{var s=new(i(56694))({initialize:function(t){if(this.entries=[],Array.isArray(t))for(var e=0;e{var s=i(82897),n=i(56694),r=i(84314),o=i(93736),a=new n({initialize:function(t,e,i,s){void 0===t&&(t=0),void 0===e&&(e=t),void 0===i&&(i=0),void 0===s&&(s=null),this._width=t,this._height=e,this._parent=s,this.aspectMode=i,this.aspectRatio=0===e?1:t/e,this.minWidth=0,this.minHeight=0,this.maxWidth=Number.MAX_VALUE,this.maxHeight=Number.MAX_VALUE,this.snapTo=new o},setAspectMode:function(t){return this.aspectMode=t=void 0===t?0:t,this.setSize(this._width,this._height)},setSnap:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.snapTo.set(t,e),this.setSize(this._width,this._height)},setParent:function(t){return this._parent=t,this.setSize(this._width,this._height)},setMin:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.minWidth=s(t,0,this.maxWidth),this.minHeight=s(e,0,this.maxHeight),this.setSize(this._width,this._height)},setMax:function(t,e){return void 0===t&&(t=Number.MAX_VALUE),void 0===e&&(e=t),this.maxWidth=s(t,this.minWidth,Number.MAX_VALUE),this.maxHeight=s(e,this.minHeight,Number.MAX_VALUE),this.setSize(this._width,this._height)},setSize:function(t,e){switch(void 0===t&&(t=0),void 0===e&&(e=t),this.aspectMode){case a.NONE:this._width=this.getNewWidth(r(t,this.snapTo.x)),this._height=this.getNewHeight(r(e,this.snapTo.y)),this.aspectRatio=0===this._height?1:this._width/this._height;break;case a.WIDTH_CONTROLS_HEIGHT:this._width=this.getNewWidth(r(t,this.snapTo.x)),this._height=this.getNewHeight(this._width*(1/this.aspectRatio),!1);break;case a.HEIGHT_CONTROLS_WIDTH:this._height=this.getNewHeight(r(e,this.snapTo.y)),this._width=this.getNewWidth(this._height*this.aspectRatio,!1);break;case a.FIT:this.constrain(t,e,!0);break;case a.ENVELOP:this.constrain(t,e,!1)}return this},setAspectRatio:function(t){return this.aspectRatio=t,this.setSize(this._width,this._height)},resize:function(t,e){return this._width=this.getNewWidth(r(t,this.snapTo.x)),this._height=this.getNewHeight(r(e,this.snapTo.y)),this.aspectRatio=0===this._height?1:this._width/this._height,this},getNewWidth:function(t,e){return void 0===e&&(e=!0),t=s(t,this.minWidth,this.maxWidth),t=e&&this._parent&&t>this._parent.width?Math.max(this.minWidth,this._parent.width):t},getNewHeight:function(t,e){return void 0===e&&(e=!0),t=s(t,this.minHeight,this.maxHeight),t=e&&this._parent&&t>this._parent.height?Math.max(this.minHeight,this._parent.height):t},constrain:function(t,e,i){void 0===t&&(t=0),void 0===e&&(e=t),void 0===i&&(i=!0),t=this.getNewWidth(t),e=this.getNewHeight(e);var s=this.snapTo,n=0===e?1:t/e;return i&&this.aspectRatio>n||!i&&this.aspectRation)&&(t=(e=r(e,s.y))*this.aspectRatio,0{t.exports="add"},95393:t=>{t.exports="remove"},36716:(t,e,i)=>{t.exports={PROCESS_QUEUE_ADD:i(94160),PROCESS_QUEUE_REMOVE:i(95393)}},20010:(t,e,i)=>{t.exports={Events:i(36716),List:i(71207),Map:i(33885),ProcessQueue:i(74623),RTree:i(68687),Set:i(58403),Size:i(90881)}},17487:(t,e,i)=>{var s=i(56694),d=i(82897),p=i(27119),n=i(86459),r=i(28621),o=i(31673),i=new s({Extends:o,initialize:function(t,e,i,s,n){o.call(this,t,e,i,s,n),this.add("__BASE",0,0,0,s,n),this._source=this.frames.__BASE.source,this.canvas=this._source.image,this.context=this.canvas.getContext("2d",{willReadFrequently:!0}),this.width=s,this.height=n,this.imageData=this.context.getImageData(0,0,s,n),this.data=null,this.imageData&&(this.data=this.imageData.data),this.pixels=null,this.buffer,this.data&&(this.imageData.data.buffer?(this.buffer=this.imageData.data.buffer,this.pixels=new Uint32Array(this.buffer)):window.ArrayBuffer?(this.buffer=new ArrayBuffer(this.imageData.data.length),this.pixels=new Uint32Array(this.buffer)):this.pixels=this.imageData.data)},update:function(){return this.imageData=this.context.getImageData(0,0,this.width,this.height),this.data=this.imageData.data,this.imageData.data.buffer?(this.buffer=this.imageData.data.buffer,this.pixels=new Uint32Array(this.buffer)):window.ArrayBuffer?(this.buffer=new ArrayBuffer(this.imageData.data.length),this.pixels=new Uint32Array(this.buffer)):this.pixels=this.imageData.data,this.manager.game.config.renderType===n.WEBGL&&this.refresh(),this},draw:function(t,e,i,s){return void 0===s&&(s=!0),this.context.drawImage(i,t,e),s&&this.update(),this},drawFrame:function(t,e,i,s,n){void 0===i&&(i=0),void 0===s&&(s=0),void 0===n&&(n=!0);var r,o,a,t=this.manager.getFrame(t,e);return t&&(e=t.canvasData,r=t.cutWidth,o=t.cutHeight,a=t.source.resolution,this.context.drawImage(t.source.image,e.x,e.y,r,o,i,s,r/a,o/a),n)&&this.update(),this},setPixel:function(t,e,i,s,n,r){var o;return void 0===r&&(r=255),t=Math.abs(Math.floor(t)),e=Math.abs(Math.floor(e)),-1{var u=i(95723),a=i(51052),h=i(61068),s=i(56694),l=i(86459),b=i(82047),g=i(72632),c=i(65641),d=i(37410),p=i(31673),f=i(75512),i=new s({Extends:p,initialize:function(t,e,i,s){void 0===i&&(i=256),void 0===s&&(s=256),this.type="DynamicTexture";var n=t.game.renderer,r=n&&n.type===l.CANVAS,o=r?h.create2D(this,i,s):[this];p.call(this,t,e,o,i,s),this.add("__BASE",0,0,0,i,s),this.renderer=n,this.isDrawing=!1,this.canvas=r?o:null,this.context=r?o.getContext("2d",{willReadFrequently:!0}):null,this.dirty=!1,this.isSpriteTexture=!0,this._eraseMode=!1,this.camera=new a(0,0,i,s).setScene(t.game.scene.systemScene,!1),this.renderTarget=r?null:new d(n,i,s,1,0,!1,!0,!0,!1),this.pipeline=r?null:n.pipelines.get(c.SINGLE_PIPELINE),this.setSize(i,s)},setSize:function(t,e){void 0===e&&(e=t);var i,s=this.get(),n=s.source;return t!==this.width||e!==this.height?(this.canvas&&(this.canvas.width=t,this.canvas.height=e),(i=this.renderTarget)&&(i.resize(t,e),s.glTexture=i.texture,n.isRenderTexture=!0,n.isGLTexture=!0,n.glTexture=i.texture,n.glTexture.flipY=!0),this.camera.setSize(t,e),n.width=t,n.height=e,s.setSize(t,e),this.width=t,this.height=e):(i=this.getSourceImage(),s.cutX+t>i.width&&(t=i.width-s.cutX),s.cutY+e>i.height&&(e=i.height-s.cutY),s.setSize(t,e,s.cutX,s.cutY)),this},setIsSpriteTexture:function(t){return this.isSpriteTexture=t,this},fill:function(t,e,i,s,n,r){var o,a,h=this.camera,l=this.renderer,u=(void 0===e&&(e=1),void 0===i&&(i=0),void 0===s&&(s=0),void 0===n&&(n=this.width),void 0===r&&(r=this.height),t>>16&255),c=t>>8&255,t=255&t,d=this.renderTarget;return h.preRender(),d?(d.bind(!0),h=this.pipeline.manager.set(this.pipeline),o=l.width/d.width,a=l.height/d.height,h.drawFillRect(i*o,s*a,n*o,r*a,f.getTintFromFloats(t/255,c/255,u/255,1),e),d.unbind(!0)):(h=this.context,l.setContext(h),h.globalCompositeOperation="source-over",h.fillStyle="rgba("+u+","+c+","+t+","+e+")",h.fillRect(i,s,n,r),l.setContext()),this.dirty=!0,this},clear:function(){var t,e;return this.dirty&&(t=this.context,(e=this.renderTarget)?e.clear():t&&(t.save(),t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,this.width,this.height),t.restore()),this.dirty=!1),this},stamp:function(t,e,i,s,n){void 0===i&&(i=0),void 0===s&&(s=0);var r=g(n,"alpha",1),o=g(n,"tint",16777215),a=g(n,"angle",0),h=g(n,"rotation",0),l=g(n,"scale",1),u=g(n,"scaleX",l),l=g(n,"scaleY",l),c=g(n,"originX",.5),d=g(n,"originY",.5),p=g(n,"blendMode",0),f=g(n,"erase",!1),n=g(n,"skipBatch",!1),r=this.manager.resetStamp(r,o);return r.setAngle(0),0!==a?r.setAngle(a):0!==h&&r.setRotation(h),r.setScale(u,l),r.setTexture(t,e),r.setOrigin(c,d),r.setBlendMode(p),f&&(this._eraseMode=!0),n?this.batchGameObject(r,i,s):this.draw(r,i,s),f&&(this._eraseMode=!1),this},erase:function(t,e,i){return this._eraseMode=!0,this.draw(t,e,i),this._eraseMode=!1,this},draw:function(t,e,i,s,n){return this.beginDraw(),this.batchDraw(t,e,i,s,n),this.endDraw(),this},drawFrame:function(t,e,i,s,n,r){return this.beginDraw(),this.batchDrawFrame(t,e,i,s,n,r),this.endDraw(),this},repeat:function(t,e,i,s,n,r,o,a,h){if(void 0===i&&(i=0),void 0===s&&(s=0),void 0===n&&(n=this.width),void 0===r&&(r=this.height),void 0===o&&(o=1),void 0===a&&(a=16777215),void 0===h&&(h=!1),e=t instanceof b?t:this.manager.getFrame(t,e)){var l=this.manager.resetStamp(o,a),u=(l.setFrame(e),l.setOrigin(0),e.width),c=e.height,d=(n=Math.floor(n),r=Math.floor(r),Math.ceil(n/u)),p=Math.ceil(r/c),f=d*u-n,g=p*c-r,y=(0{var s=i(56694),w=i(82897),n=i(98611),r=new s({initialize:function(t,e,i,s,n,r,o){this.texture=t,this.name=e,this.source=t.source[i],this.sourceIndex=i,this.glTexture=this.source.glTexture,this.cutX,this.cutY,this.cutWidth,this.cutHeight,this.x=0,this.y=0,this.width,this.height,this.halfWidth,this.halfHeight,this.centerX,this.centerY,this.pivotX=0,this.pivotY=0,this.customPivot=!1,this.rotated=!1,this.autoRound=-1,this.customData={},this.u0=0,this.v0=0,this.u1=0,this.v1=0,this.data={cut:{x:0,y:0,w:0,h:0,r:0,b:0},trim:!1,sourceSize:{w:0,h:0},spriteSourceSize:{x:0,y:0,w:0,h:0,r:0,b:0},radius:0,drawImage:{x:0,y:0,width:0,height:0}},this.setSize(r,o,s,n)},setSize:function(t,e,i,s){void 0===s&&(s=0),this.cutX=i=void 0===i?0:i,this.cutY=s,this.cutWidth=t,this.cutHeight=e,this.width=t,this.height=e,this.halfWidth=Math.floor(.5*t),this.halfHeight=Math.floor(.5*e),this.centerX=Math.floor(t/2),this.centerY=Math.floor(e/2);var n=this.data,r=n.cut,r=(r.x=i,r.y=s,r.w=t,r.h=e,r.r=i+t,r.b=s+e,n.sourceSize.w=t,n.sourceSize.h=e,n.spriteSourceSize.w=t,n.spriteSourceSize.h=e,n.radius=.5*Math.sqrt(t*t+e*e),n.drawImage);return r.x=i,r.y=s,r.width=t,r.height=e,this.updateUVs()},setTrim:function(t,e,i,s,n,r){var o=this.data,a=o.spriteSourceSize;return o.trim=!0,o.sourceSize.w=t,o.sourceSize.h=e,a.x=i,a.y=s,a.w=n,a.h=r,a.r=i+n,a.b=s+r,this.x=i,this.y=s,this.width=n,this.height=r,this.halfWidth=.5*n,this.halfHeight=.5*r,this.centerX=Math.floor(n/2),this.centerY=Math.floor(r/2),this.updateUVs()},setCropUVs:function(t,e,i,s,n,r,o){var a,h,l,u=this.cutX,c=this.cutY,d=this.cutWidth,p=this.cutHeight,f=this.realWidth,g=this.realHeight,y=u+(e=w(e,0,f)),v=c+(i=w(i,0,g)),f=s=w(s,0,f-e),g=n=w(n,0,g-i),m=this.data,m=(m.trim?(m=m.spriteSourceSize,h=e+(s=w(s,0,d-e)),l=i+(n=w(n,0,p-i)),m.rh||m.y>l?g=f=v=y=0:(x=Math.max(m.x,e),a=Math.max(m.y,i),h=Math.min(m.r,h)-x,l=Math.min(m.b,l)-a,y=r?u+(d-(x-m.x)-h):u+(x-m.x),v=o?c+(p-(a-m.y)-l):c+(a-m.y),e=x,i=a,s=f=h,n=g=l)):(r&&(y=u+(d-e-s)),o&&(v=c+(p-i-n))),this.source.width),x=this.source.height;return t.u0=Math.max(0,y/m),t.v0=Math.max(0,v/x),t.u1=Math.min(1,(y+f)/m),t.v1=Math.min(1,(v+g)/x),t.x=e,t.y=i,t.cx=y,t.cy=v,t.cw=f,t.ch=g,t.width=s,t.height=n,t.flipX=r,t.flipY=o,t},updateCropUVs:function(t,e,i){return this.setCropUVs(t,t.x,t.y,t.width,t.height,e,i)},setUVs:function(t,e,i,s,n,r){var o=this.data.drawImage;return o.width=t,o.height=e,this.u0=i,this.v0=s,this.u1=n,this.v1=r,this},updateUVs:function(){var t=this.cutX,e=this.cutY,i=this.cutWidth,s=this.cutHeight,n=this.data.drawImage,n=(n.width=i,n.height=s,this.source.width),r=this.source.height;return this.u0=t/n,this.v0=e/r,this.u1=(t+i)/n,this.v1=(e+s)/r,this},updateUVsInverted:function(){var t=this.source.width,e=this.source.height;return this.u0=(this.cutX+this.cutHeight)/t,this.v0=this.cutY/e,this.u1=this.cutX/t,this.v1=(this.cutY+this.cutWidth)/e,this},clone:function(){var t=new r(this.texture,this.name,this.sourceIndex);return t.cutX=this.cutX,t.cutY=this.cutY,t.cutWidth=this.cutWidth,t.cutHeight=this.cutHeight,t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t.halfWidth=this.halfWidth,t.halfHeight=this.halfHeight,t.centerX=this.centerX,t.centerY=this.centerY,t.rotated=this.rotated,t.data=n(!0,t.data,this.data),t.updateUVs(),t},destroy:function(){this.source=null,this.texture=null,this.glTexture=null,this.customData=null,this.data=null},realWidth:{get:function(){return this.data.sourceSize.w}},realHeight:{get:function(){return this.data.sourceSize.h}},radius:{get:function(){return this.data.radius}},trimmed:{get:function(){return this.data.trim}},canvasData:{get:function(){return this.data.drawImage}}});t.exports=r},31673:(t,e,i)=>{var s=i(56694),o=i(82047),a=i(32547),i=new s({initialize:function(t,e,i,s,n){Array.isArray(i)||(i=[i]),this.manager=t,this.key=e,this.source=[],this.dataSource=[],this.frames={},this.customData={},this.firstFrame="__BASE";for(var r=this.frameTotal=0;r{var a=i(61068),n=i(17487),s=i(56694),r=i(27119),o=i(86459),h=i(845),l=i(6659),u=i(38203),c=i(82047),d=i(97081),p=i(52780),f=i(10850),g=i(1539),y=i(42911),v=i(69150),m=i(74118),x=i(31673),i=new s({Extends:l,initialize:function(t){l.call(this),this.game=t,this.name="TextureManager",this.list={},this._tempCanvas=a.create2D(this),this._tempContext=this._tempCanvas.getContext("2d",{willReadFrequently:!0}),this._pending=0,this.stamp,this.stampCrop=new m,this.silentWarnings=!1,t.events.once(d.BOOT,this.boot,this)},boot:function(){this._pending=3,this.on(u.LOAD,this.updatePending,this),this.on(u.ERROR,this.updatePending,this);var t=this.game.config;this.addBase64("__DEFAULT",t.defaultImage),this.addBase64("__MISSING",t.missingImage),this.addBase64("__WHITE",t.whiteImage),this.game.events.once(d.DESTROY,this.destroy,this)},updatePending:function(){this._pending--,0===this._pending&&(this.off(u.LOAD),this.off(u.ERROR),this.emit(u.READY),this.stamp=new g(this.game.scene.systemScene).setOrigin(0))},checkKey:function(t){return!this.exists(t)||(this.silentWarnings,!1)},remove:function(t){if("string"==typeof t){if(!this.exists(t))return this.silentWarnings,this;t=this.get(t)}return this.list.hasOwnProperty(t.key)&&(t.destroy(),this.emit(u.REMOVE,t.key),this.emit(u.REMOVE_KEY+t.key)),this},removeKey:function(t){return this.list.hasOwnProperty(t)&&delete this.list[t],this},addBase64:function(e,t){var i,s;return this.checkKey(e)&&(i=this,(s=new Image).onerror=function(){i.emit(u.ERROR,e)},s.onload=function(){var t=i.create(e,s);v.Image(t,0),i.emit(u.ADD,e,t),i.emit(u.ADD_KEY+e,t),i.emit(u.LOAD,e,t)},s.src=t),this},getBase64:function(t,e,i,s){void 0===i&&(i="image/png"),void 0===s&&(s=.92);var n,r,o="",t=this.getFrame(t,e);return t&&(t.source.isRenderTexture||t.source.isGLTexture)?this.silentWarnings:t&&(e=t.canvasData,r=(n=a.create2D(this,e.width,e.height)).getContext("2d",{willReadFrequently:!0}),0=s.x&&t=s.y&&e=s.x&&t=s.y&&e{var s=i(61068),n=i(56694),o=i(28621),a=i(27394),i=new n({initialize:function(t,e,i,s,n){void 0===n&&(n=!1);var r=t.manager.game;this.renderer=r.renderer,this.texture=t,this.source=e,this.image=e.compressed?null:e,this.compressionAlgorithm=e.compressed?e.format:null,this.resolution=1,this.width=i||e.naturalWidth||e.videoWidth||e.width||0,this.height=s||e.naturalHeight||e.videoHeight||e.height||0,this.scaleMode=a.DEFAULT,this.isCanvas=e instanceof HTMLCanvasElement,this.isVideo=window.hasOwnProperty("HTMLVideoElement")&&e instanceof HTMLVideoElement,this.isRenderTexture="RenderTexture"===e.type||"DynamicTexture"===e.type,this.isGLTexture=window.hasOwnProperty("WebGLTexture")&&e instanceof WebGLTexture,this.isPowerOf2=o(this.width,this.height),this.glTexture=null,this.flipY=n,this.init(r)},init:function(t){var e,i,s,n,r,o,a=this.renderer;a&&(e=this.source,a.gl?(i=this.image,s=this.flipY,n=this.width,r=this.height,o=this.scaleMode,this.isCanvas?this.glTexture=a.createCanvasTexture(i,!1,s):this.isVideo?this.glTexture=a.createVideoTexture(i,!1,s):this.isRenderTexture?this.glTexture=a.createTextureFromSource(null,n,r,o):this.isGLTexture?this.glTexture=e:this.compressionAlgorithm?this.glTexture=a.createTextureFromSource(e):this.glTexture=a.createTextureFromSource(i,n,r,o)):this.isRenderTexture&&(this.image=e.canvas)),t.config.antialias||this.setFilter(1)},setFilter:function(t){this.renderer.gl&&this.renderer.setTextureFilter(this.glTexture,t),this.scaleMode=t},setFlipY:function(t){return this.flipY=t=void 0===t?!0:t,this},update:function(){var t=this.renderer,e=this.image,i=this.flipY,s=t.gl;s&&this.isCanvas?this.glTexture=t.updateCanvasTexture(e,this.glTexture,i):s&&this.isVideo&&(this.glTexture=t.updateVideoTexture(e,this.glTexture,i))},destroy:function(){this.glTexture&&this.renderer.deleteTexture(this.glTexture,!0),this.isCanvas&&s.remove(this.image),this.renderer=null,this.texture=null,this.source=null,this.image=null,this.glTexture=null}});t.exports=i},65154:t=>{t.exports={LINEAR:0,NEAREST:1}},49644:t=>{t.exports="addtexture"},29569:t=>{t.exports="addtexture-"},60079:t=>{t.exports="onerror"},72665:t=>{t.exports="onload"},93006:t=>{t.exports="ready"},69018:t=>{t.exports="removetexture"},85549:t=>{t.exports="removetexture-"},38203:(t,e,i)=>{t.exports={ADD:i(49644),ADD_KEY:i(29569),ERROR:i(60079),LOAD:i(72665),READY:i(93006),REMOVE:i(69018),REMOVE_KEY:i(85549)}},87499:(t,e,i)=>{var s=i(98611),n=i(65154),s=s(!1,{CanvasTexture:i(17487),DynamicTexture:i(845),Events:i(38203),FilterMode:n,Frame:i(82047),Parsers:i(69150),Texture:i(31673),TextureManager:i(6237),TextureSource:i(32547)},n);t.exports=s},35082:t=>{t.exports=function(t,e,i){if(i.getElementsByTagName("TextureAtlas")){var s=t.source[e];t.add("__BASE",e,0,0,s.width,s.height);for(var n=i.getElementsByTagName("SubTexture"),r=0;r{t.exports=function(t,e){var i=t.source[e];return t.add("__BASE",e,0,0,i.width,i.height),t}},21560:t=>{t.exports=function(t,e){var i=t.source[e];return t.add("__BASE",e,0,0,i.width,i.height),t}},64423:(t,e,i)=>{var u=i(32742);t.exports=function(t,e,i){if(i.frames||i.textures){var s=t.source[e];t.add("__BASE",e,0,0,s.width,s.height);for(var n,r,o=(Array.isArray(i.textures)?i.textures[e]:i).frames,a=0;a{var u=i(32742);t.exports=function(t,e,i){if(i.frames){var s=t.source[e];t.add("__BASE",e,0,0,s.width,s.height);var n,r,o,a,h,l=i.frames;for(r in l)l.hasOwnProperty(r)&&(o=l[r],n=t.add(r,e,o.frame.x,o.frame.y,o.frame.w,o.frame.h))&&(o.trimmed&&n.setTrim(o.sourceSize.w,o.sourceSize.h,o.spriteSourceSize.x,o.spriteSourceSize.y,o.spriteSourceSize.w,o.spriteSourceSize.h),o.rotated&&(n.rotated=!0,n.updateUVsInverted()),(a=o.anchor||o.pivot)&&(n.customPivot=!0,n.pivotX=a.x,n.pivotY=a.y),n.customData=u(o));for(h in i)"frames"!==h&&(Array.isArray(i[h])?t.customData[h]=i[h].slice(0):t.customData[h]=i[h]);return t}}},67409:t=>{t.exports=function(t){var e=[171,75,84,88,32,49,49,187,13,10,26,10],i=new Uint8Array(t,0,12);for(f=0;f>1),p=Math.max(1,p>>1),c+=g}return{mipmaps:u,width:a,height:h,internalFormat:o,compressed:!0,generateMipmap:!1}}}},24904:t=>{function i(t,e,i,s,n,r,o){return void 0===o&&(o=16),Math.floor((t+i)/n)*Math.floor((e+s)/r)*o}function e(t,e){return(t=Math.max(t,16))*Math.max(e,8)/4}function s(t,e){return(t=Math.max(t,8))*Math.max(e,8)/2}function n(t,e){return i(t,e,3,3,4,4,8)}function r(t,e){return i(t,e,3,3,4,4)}var f={0:{sizeFunc:e,glFormat:35841},1:{sizeFunc:e,glFormat:35843},2:{sizeFunc:s,glFormat:35840},3:{sizeFunc:s,glFormat:35842},6:{sizeFunc:n,glFormat:36196},7:{sizeFunc:n,glFormat:33776},8:{sizeFunc:r,glFormat:33777},9:{sizeFunc:r,glFormat:33778},11:{sizeFunc:r,glFormat:33779},22:{sizeFunc:n,glFormat:37492},23:{sizeFunc:r,glFormat:37496},24:{sizeFunc:n,glFormat:37494},25:{sizeFunc:n,glFormat:37488},26:{sizeFunc:r,glFormat:37490},27:{sizeFunc:r,glFormat:37808},28:{sizeFunc:function(t,e){return i(t,e,4,3,5,4)},glFormat:37809},29:{sizeFunc:function(t,e){return i(t,e,4,4,5,5)},glFormat:37810},30:{sizeFunc:function(t,e){return i(t,e,5,4,6,5)},glFormat:37811},31:{sizeFunc:function(t,e){return i(t,e,5,5,6,6)},glFormat:37812},32:{sizeFunc:function(t,e){return i(t,e,7,4,8,5)},glFormat:37813},33:{sizeFunc:function(t,e){return i(t,e,7,5,8,6)},glFormat:37814},34:{sizeFunc:function(t,e){return i(t,e,7,7,8,8)},glFormat:37815},35:{sizeFunc:function(t,e){return i(t,e,9,4,10,5)},glFormat:37816},36:{sizeFunc:function(t,e){return i(t,e,9,5,10,6)},glFormat:37817},37:{sizeFunc:function(t,e){return i(t,e,9,7,10,8)},glFormat:37818},38:{sizeFunc:function(t,e){return i(t,e,9,9,10,10)},glFormat:37819},39:{sizeFunc:function(t,e){return i(t,e,11,9,12,10)},glFormat:37820},40:{sizeFunc:function(t,e){return i(t,e,11,11,12,12)},glFormat:37821}};t.exports=function(t){for(var e=new Uint32Array(t,0,13),i=e[2],s=f[i].glFormat,n=f[i].sizeFunc,r=e[11],i=e[7],o=e[6],e=52+e[12],a=new Uint8Array(t,e),h=new Array(r),l=0,u=i,c=o,d=0;d>1),c=Math.max(1,c>>1),l+=p}return{mipmaps:h,width:i,height:o,internalFormat:s,compressed:!0,generateMipmap:!1}}},6143:(t,e,i)=>{var S=i(72632);t.exports=function(t,e,i,s,n,r,o){var a=S(o,"frameWidth",null),h=S(o,"frameHeight",a);if(null===a)throw new Error("TextureManager.SpriteSheet: Invalid frameWidth given.");var l=t.source[e],u=(t.add("__BASE",e,0,0,l.width,l.height),S(o,"startFrame",0)),c=S(o,"endFrame",-1),d=S(o,"margin",0),p=S(o,"spacing",0),f=Math.floor((n-d+p)/(a+p))*Math.floor((r-d+p)/(h+p));(u=fn&&(g=d,y+=h+p)}return t}},20030:(t,e,i)=>{var B=i(72632);t.exports=function(t,e,i){var s=B(i,"frameWidth",null),n=B(i,"frameHeight",s);if(!s)throw new Error("TextureManager.SpriteSheetFromAtlas: Invalid frameWidth given.");var r=t.source[0];t.add("__BASE",0,0,0,r.width,r.height);var r=B(i,"startFrame",0),I=B(i,"endFrame",-1),o=B(i,"margin",0),a=B(i,"spacing",0),h=e.cutX,l=e.cutY,i=e.cutWidth,u=e.cutHeight,c=e.realWidth,d=e.realHeight,p=Math.floor((c-o+a)/(s+a)),f=Math.floor((d-o+a)/(n+a)),g=p*f,y=e.x,v=s-y,m=s-(c-i-y),x=e.y,w=n-x,T=n-(d-u-x);(r=g{function f(t,e,i,s){var n=g-s.y-s.height;t.add(i,e,s.x,n,s.width,s.height)}var g;t.exports=function(t,e,i){var s=t.source[e];t.add("__BASE",e,0,0,s.width,s.height),g=s.height;for(var n=i.split("\n"),r=/^[ ]*(- )*(\w+)+[: ]+(.*)/,o="",a="",h={x:0,y:0,width:0,height:0},l=0;l{t.exports={AtlasXML:i(35082),Canvas:i(83332),Image:i(21560),JSONArray:i(64423),JSONHash:i(17264),KTXParser:i(67409),PVRParser:i(24904),SpriteSheet:i(6143),SpriteSheetFromAtlas:i(20030),UnityYAML:i(89187)}},93560:t=>{t.exports={CSV:0,TILED_JSON:1,ARRAY_2D:2,WELTMEISTER:3}},97042:(t,e,i)=>{i=new(i(56694))({initialize:function(t,e,i,s,n,r,o){(void 0===i||i<=0)&&(i=32),(void 0===s||s<=0)&&(s=32),void 0===n&&(n=0),void 0===r&&(r=0),this.name=t,this.firstgid=0|e,this.imageWidth=0|i,this.imageHeight=0|s,this.imageMargin=0|n,this.imageSpacing=0|r,this.properties=o||{},this.images=[],this.total=0},containsImageIndex:function(t){return t>=this.firstgid&&t{i=new(i(56694))({initialize:function(t){if(this.gids=[],void 0!==t)for(var e=0;e{var l=i(93560),u=i(16586),c=i(90715),d=i(89797);t.exports=function(t,e,i,s,n,r,o,a){void 0===i&&(i=32),void 0===s&&(s=32),void 0===n&&(n=10),void 0===r&&(r=10),void 0===a&&(a=!1);var h=null;return Array.isArray(o)?h=c(void 0!==e?e:"map",l.ARRAY_2D,o,i,s,a):void 0!==e&&(o=t.cache.tilemap.get(e))&&(h=c(e,o.format,o.data,i,s,a)),null===h&&(h=new u({tileWidth:i,tileHeight:s,width:n,height:r})),new d(t,h)}},29633:(t,e,i)=>{var s=i(56694),n=i(64937),r=i(12920),o=i(28699),a=i(66658),i=new s({Mixins:[n.Alpha,n.Flip,n.Visible],initialize:function(t,e,i,s,n,r,o,a){this.layer=t,this.index=e,this.x=i,this.y=s,this.width=n,this.height=r,this.right,this.bottom,this.baseWidth=void 0!==o?o:n,this.baseHeight=void 0!==a?a:r,this.pixelX=0,this.pixelY=0,this.updatePixelXY(),this.properties={},this.rotation=0,this.collideLeft=!1,this.collideRight=!1,this.collideUp=!1,this.collideDown=!1,this.faceLeft=!1,this.faceRight=!1,this.faceTop=!1,this.faceBottom=!1,this.collisionCallback=void 0,(this.collisionCallbackContext=this).tint=16777215,this.physics={}},containsPoint:function(t,e){return!(tthis.right||e>this.bottom)},copy:function(t){return this.index=t.index,this.alpha=t.alpha,this.properties=o(t.properties),this.visible=t.visible,this.setFlip(t.flipX,t.flipY),this.tint=t.tint,this.rotation=t.rotation,this.collideUp=t.collideUp,this.collideDown=t.collideDown,this.collideLeft=t.collideLeft,this.collideRight=t.collideRight,this.collisionCallback=t.collisionCallback,this.collisionCallbackContext=t.collisionCallbackContext,this},getCollisionGroup:function(){return this.tileset?this.tileset.getTileCollisionGroup(this.index):null},getTileData:function(){return this.tileset?this.tileset.getTileData(this.index):null},getLeft:function(t){var e=this.tilemapLayer;return e?e.tileToWorldXY(this.x,this.y,void 0,t).x:this.x*this.baseWidth},getRight:function(t){var e=this.tilemapLayer;return e?this.getLeft(t)+this.width*e.scaleX:this.getLeft(t)+this.width},getTop:function(t){var e=this.tilemapLayer;return e?e.tileToWorldXY(this.x,this.y,void 0,t).y:this.y*this.baseWidth-(this.height-this.baseHeight)},getBottom:function(t){var e=this.tilemapLayer;return e?this.getTop(t)+this.height*e.scaleY:this.getTop(t)+this.height},getBounds:function(t,e){return(e=void 0===e?new a:e).x=this.getLeft(t),e.y=this.getTop(t),e.width=this.getRight(t)-e.x,e.height=this.getBottom(t)-e.y,e},getCenterX:function(t){return(this.getLeft(t)+this.getRight(t))/2},getCenterY:function(t){return(this.getTop(t)+this.getBottom(t))/2},intersects:function(t,e,i,s){return!(i<=this.pixelX||s<=this.pixelY||t>=this.right||e>=this.bottom)},isInteresting:function(t,e){return t&&e?this.canCollide||this.hasInterestingFace:t?this.collides:!!e&&this.hasInterestingFace},resetCollision:function(t){return void 0===t&&(t=!0),this.collideLeft=!1,this.collideRight=!1,this.collideUp=!1,this.collideDown=!1,this.faceTop=!1,this.faceBottom=!1,this.faceLeft=!1,this.faceRight=!1,t&&this.tilemapLayer&&this.tilemapLayer.calculateFacesAt(this.x,this.y),this},resetFaces:function(){return this.faceTop=!1,this.faceBottom=!1,this.faceLeft=!1,this.faceRight=!1,this},setCollision:function(t,e,i,s,n){return void 0===e&&(e=t),void 0===i&&(i=t),void 0===s&&(s=t),void 0===n&&(n=!0),this.collideLeft=t,this.collideRight=e,this.collideUp=i,this.collideDown=s,this.faceLeft=t,this.faceRight=e,this.faceTop=i,this.faceBottom=s,n&&this.tilemapLayer&&this.tilemapLayer.calculateFacesAt(this.x,this.y),this},setCollisionCallback:function(t,e){return null===t?(this.collisionCallback=void 0,this.collisionCallbackContext=void 0):(this.collisionCallback=t,this.collisionCallbackContext=e),this},setSize:function(t,e,i,s){return void 0!==t&&(this.width=t),void 0!==e&&(this.height=e),void 0!==i&&(this.baseWidth=i),void 0!==s&&(this.baseHeight=s),this.updatePixelXY(),this},updatePixelXY:function(){var t,e,i,s=this.layer.orientation;return s===r.ORTHOGONAL?(this.pixelX=this.x*this.baseWidth,this.pixelY=this.y*this.baseHeight):s===r.ISOMETRIC?(this.pixelX=(this.x-this.y)*this.baseWidth*.5,this.pixelY=(this.x+this.y)*this.baseHeight*.5):s===r.STAGGERED?(this.pixelX=this.x*this.baseWidth+this.y%2*(this.baseWidth/2),this.pixelY=this.y*(this.baseHeight/2)):s===r.HEXAGONAL&&(s=this.layer.staggerAxis,e=this.layer.staggerIndex,i=this.layer.hexSideLength,"y"===s?(t=(this.baseHeight-i)/2+i,this.pixelX="odd"===e?this.x*this.baseWidth+this.y%2*(this.baseWidth/2):this.x*this.baseWidth-this.y%2*(this.baseWidth/2),this.pixelY=this.y*t):"x"===s&&(t=(this.baseWidth-i)/2+i,this.pixelX=this.x*t,this.pixelY="odd"===e?this.y*this.baseHeight+this.x%2*(this.baseHeight/2):this.y*this.baseHeight-this.x%2*(this.baseHeight/2))),this.right=this.pixelX+this.baseWidth,this.bottom=this.pixelY+this.baseHeight,this},destroy:function(){this.collisionCallback=void 0,this.collisionCallbackContext=void 0,this.properties=void 0},canCollide:{get:function(){return this.collideLeft||this.collideRight||this.collideUp||this.collideDown||void 0!==this.collisionCallback}},collides:{get:function(){return this.collideLeft||this.collideRight||this.collideUp||this.collideDown}},hasInterestingFace:{get:function(){return this.faceTop||this.faceBottom||this.faceLeft||this.faceRight}},tileset:{get:function(){var t=this.layer.tilemapLayer;if(t){t=t.gidMap[this.index];if(t)return t}return null}},tilemapLayer:{get:function(){return this.layer.tilemapLayer}},tilemap:{get:function(){var t=this.tilemapLayer;return t?t.tilemap:null}}});t.exports=i},89797:(t,e,i)=>{var l=i(14556),s=i(56694),P=i(75606),u=i(93560),_=i(72632),d=i(94990),E=i(46422),A=i(12920),C=i(52257),n=i(72677),M=i(13747),p=i(29633),h=i(5047),f=i(87177),c=i(47975),i=new s({initialize:function(t,e){this.scene=t,this.tileWidth=e.tileWidth,this.tileHeight=e.tileHeight,this.width=e.width,this.height=e.height,this.orientation=e.orientation,this.renderOrder=e.renderOrder,this.format=e.format,this.version=e.version,this.properties=e.properties,this.widthInPixels=e.widthInPixels,this.heightInPixels=e.heightInPixels,this.imageCollections=e.imageCollections,this.images=e.images,this.layers=e.layers,this.tiles=e.tiles,this.tilesets=e.tilesets,this.objects=e.objects,this.currentLayerIndex=0,this.hexSideLength=e.hexSideLength;t=this.orientation;this._convert={WorldToTileXY:h.GetWorldToTileXYFunction(t),WorldToTileX:h.GetWorldToTileXFunction(t),WorldToTileY:h.GetWorldToTileYFunction(t),TileToWorldXY:h.GetTileToWorldXYFunction(t),TileToWorldX:h.GetTileToWorldXFunction(t),TileToWorldY:h.GetTileToWorldYFunction(t),GetTileCorners:h.GetTileCornersFunction(t)}},setRenderOrder:function(t){var e=["right-down","left-down","right-up","left-up"];return"number"==typeof t&&(t=e[t]),-1{var s=i(99325),n=i(15043);s.register("tilemap",function(t){t=void 0!==t?t:{};return n(this.scene,t.key,t.tileWidth,t.tileHeight,t.width,t.height,t.data,t.insertNull)})},37940:(t,e,i)=>{var s=i(61286),a=i(15043);s.register("tilemap",function(t,e,i,s,n,r,o){return a(this.scene,t=null===t?void 0:t,e=null===e?void 0:e,i=null===i?void 0:i,s=null===s?void 0:s,n=null===n?void 0:n,r,o)})},87177:(t,e,i)=>{var s=i(56694),n=i(64937),o=i(89980),a=i(5047),r=i(96193),h=i(93736),i=new s({Extends:o,Mixins:[n.Alpha,n.BlendMode,n.ComputedSize,n.Depth,n.Flip,n.GetBounds,n.Mask,n.Origin,n.Pipeline,n.PostPipeline,n.Transform,n.Visible,n.ScrollFactor,r],initialize:function(t,e,i,s,n,r){o.call(this,t,"TilemapLayer"),this.isTilemap=!0,this.tilemap=e,this.layerIndex=i,this.layer=e.layers[i],(this.layer.tilemapLayer=this).tileset=[],this.tilesDrawn=0,this.tilesTotal=this.layer.width*this.layer.height,this.culledTiles=[],this.skipCull=!1,this.cullPaddingX=1,this.cullPaddingY=1,this.cullCallback=a.GetCullTilesFunction(this.layer.orientation),this._renderOrder=0,this.gidMap=[],this.tempVec=new h,this.setTilesets(s),this.setAlpha(this.layer.alpha),this.setPosition(n,r),this.setOrigin(0,0),this.setSize(e.tileWidth*this.layer.width,e.tileHeight*this.layer.height),this.initPipeline(),this.initPostPipeline(!1)},setTilesets:function(t){var e=[],i=[],s=this.tilemap;Array.isArray(t)||(t=[t]);for(var n=0;n{var i=i(69360),T=new i,b=new i,S=new i;t.exports=function(t,e,i,s){var n=e.cull(i),r=n.length,o=i.alpha*e.alpha;if(!(0===r||o<=0)){var a=T,h=b,l=S,u=(h.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY),a.copyFrom(i.matrix),t.currentContext),c=e.gidMap;u.save(),(s?(a.multiplyWithOffset(s,-i.scrollX*e.scrollFactorX,-i.scrollY*e.scrollFactorY),h.e=e.x,h.f=e.y,a.multiply(h,l),l):(h.e-=i.scrollX*e.scrollFactorX,h.f-=i.scrollY*e.scrollFactorY,h)).copyToContext(u),(!t.antialias||1{i(72283);var s=i(51395),i=i(17394);t.exports={renderWebGL:s,renderCanvas:i}},51395:(t,e,i)=>{var C=i(75512);t.exports=function(t,e,i){var s=e.cull(i),n=s.length,r=i.alpha*e.alpha;if(!(0===n||r<=0)){var o=e.gidMap,a=t.pipelines.set(e.pipeline,e),h=C.getTintAppendFloatAlpha,l=e.scrollFactorX,u=e.scrollFactorY,c=e.x,d=e.y,p=e.scaleX,f=e.scaleY;t.pipelines.preBatch(e);for(var g=0;g{var s=i(56694),l=i(93736),i=new s({initialize:function(t,e,i,s,n,r,o,a,h){(void 0===i||i<=0)&&(i=32),(void 0===s||s<=0)&&(s=32),void 0===n&&(n=0),void 0===r&&(r=0),void 0===o&&(o={}),void 0===a&&(a={}),this.name=t,this.firstgid=e,this.tileWidth=i,this.tileHeight=s,this.tileMargin=n,this.tileSpacing=r,this.tileProperties=o,this.tileData=a,this.tileOffset=new l,void 0!==h&&this.tileOffset.set(h.x,h.y),this.image=null,this.glTexture=null,this.rows=0,this.columns=0,this.total=0,this.texCoordinates=[]},getTileProperties:function(t){return this.containsTileIndex(t)?this.tileProperties[t-this.firstgid]:null},getTileData:function(t){return this.containsTileIndex(t)?this.tileData[t-this.firstgid]:null},getTileCollisionGroup:function(t){t=this.getTileData(t);return t&&t.objectgroup?t.objectgroup:null},containsTileIndex:function(t){return t>=this.firstgid&&t{var a=i(15494);t.exports=function(t,e,i){var s=a(t,e,!0,i),n=a(t,e-1,!0,i),r=a(t,e+1,!0,i),o=a(t-1,e,!0,i),t=a(t+1,e,!0,i),e=s&&s.collides;return e&&(s.faceTop=!0,s.faceBottom=!0,s.faceLeft=!0,s.faceRight=!0),n&&n.collides&&(e&&(s.faceTop=!1),n.faceBottom=!e),r&&r.collides&&(e&&(s.faceBottom=!1),r.faceTop=!e),o&&o.collides&&(e&&(s.faceLeft=!1),o.faceRight=!e),t&&t.collides&&(e&&(s.faceRight=!1),t.faceLeft=!e),s&&!s.collides&&s.resetFaces(),s}},60386:(t,e,i)=>{var d=i(15494),p=i(50811);t.exports=function(t,e,i,s,n){for(var r,o,a,h,l=p(t,e,i,s,null,n),u=0;u{var a=new(i(93736));t.exports=function(t,e,i,s){var n=i.tilemapLayer,r=n.cullPaddingX,o=n.cullPaddingY,t=n.tilemap.tileToWorldXY(t,e,a,s,n);return t.x>s.worldView.x+n.scaleX*i.tileWidth*(-r-.5)&&t.xs.worldView.y+n.scaleY*i.tileHeight*(-o-1)&&t.y{var y=i(60386),v=i(50811),m=i(62839),x=i(29633);t.exports=function(t,e,i,s,n,r,o,a){void 0===o&&(o=!0);var h=v(t,e,i,s,null,a),l=[];h.forEach(function(t){var e=new x(t.layer,t.index,t.x,t.y,t.width,t.height,t.baseWidth,t.baseHeight);e.copy(t),l.push(e)});for(var u=n-t,c=r-e,d=0;d{var c=i(50811),d=i(51202);t.exports=function(t,e,i,s,n,r){i=i||{},Array.isArray(t)||(t=[t]);var o=r.tilemapLayer;s=s||o.scene,n=n||s.cameras.main;for(var a=c(0,0,r.width,r.height,null,r),h=[],l=0;l{var s=i(74118),o=i(82127),a=i(84314),h=new s;t.exports=function(t,e){var i=t.tilemapLayer.tilemap,t=t.tilemapLayer,s=Math.floor(i.tileWidth*t.scaleX),i=Math.floor(i.tileHeight*t.scaleY),n=a(e.worldView.x-t.x,s,0,!0)-t.cullPaddingX,s=o(e.worldView.right-t.x,s,0,!0)+t.cullPaddingX,r=a(e.worldView.y-t.y,i,0,!0)-t.cullPaddingY,e=o(e.worldView.bottom-t.y,i,0,!0)+t.cullPaddingY;return h.setTo(n,r,s-n,e-r)}},381:(t,e,i)=>{var r=i(71586),o=i(6987);t.exports=function(t,e,i,s){void 0===s&&(s=0),(i=void 0===i?[]:i).length=0;var n=t.tilemapLayer,e=r(t,e);return!n.skipCull&&1===n.scrollFactorX&&1===n.scrollFactorY||(e.left=0,e.right=t.width,e.top=0,e.bottom=t.height),o(t,e,s,i),i}},97734:(t,e,i)=>{var u=i(50811),c=i(60386),d=i(68234);t.exports=function(t,e,i,s,n,r,o){for(var a=-1!==o.collideIndexes.indexOf(t),h=u(e,i,s,n,null,o),l=0;l{var h=i(50811);t.exports=function(t,e,i,s,n,r,o,a){return h(i,s,n,r,o,a).filter(t,e)}},37982:t=>{t.exports=function(t,e,i,s){void 0===e&&(e=0);var n,r,o,a=0;if(i=void 0===i?!1:i){for(r=s.height-1;0<=r;r--)for(n=s.width-1;0<=n;n--)if((o=s.data[r][n])&&o.index===t){if(a===e)return o;a+=1}}else for(r=0;r{var h=i(50811);t.exports=function(t,e,i,s,n,r,o,a){return h(i,s,n,r,o,a).find(t,e)||null}},80916:(t,e,i)=>{var h=i(50811);t.exports=function(t,e,i,s,n,r,o,a){h(i,s,n,r,o,a).forEach(t,e)}},31493:(t,e,i)=>{var s=i(12920),n=i(381),r=i(37524),o=i(20887),a=i(72283),h=i(19242);t.exports=function(t){return t===s.ORTHOGONAL?n:t===s.HEXAGONAL?r:t===s.STAGGERED?h:t===s.ISOMETRIC?o:a}},15494:(t,e,i)=>{var n=i(62839);t.exports=function(t,e,i,s){return void 0===i&&(i=!1),n(t,e,s)&&(s=s.data[e][t]||null)&&(-1!==s.index||i)?s:null}},24640:(t,e,i)=>{var r=i(15494),o=new(i(93736));t.exports=function(t,e,i,s,n){return n.tilemapLayer.worldToTileXY(t,e,!0,o,s),r(o.x,o.y,i,n)}},48495:(t,e,i)=>{var h=i(93736);t.exports=function(t,e,i,s){var n=s.baseTileWidth,r=s.baseTileHeight,s=s.tilemapLayer,o=0,a=0,i=(s&&(i=i||s.scene.cameras.main,o=s.x+i.scrollX*(1-s.scrollFactorX),a=s.y+i.scrollY*(1-s.scrollFactorY),n*=s.scaleX,r*=s.scaleY),o+t*n),s=a+e*r;return[new h(i,s),new h(i+n,s),new h(i+n,s+r),new h(i,s+r)]}},7160:(t,e,i)=>{var s=i(12920),n=i(63634),r=i(72283),o=i(48495);t.exports=function(t){return t===s.ORTHOGONAL?o:t===s.ISOMETRIC?r:t===s.HEXAGONAL?n:(s.STAGGERED,r)}},16884:(t,e,i)=>{var s=i(12920),n=i(72283),r=i(44150);t.exports=function(t){return t===s.ORTHOGONAL?r:n}},68182:(t,e,i)=>{var s=i(12920),n=i(21715),r=i(21808),o=i(72283),a=i(33388),h=i(46836);t.exports=function(t){return t===s.ORTHOGONAL?h:t===s.ISOMETRIC?r:t===s.HEXAGONAL?n:t===s.STAGGERED?a:o}},3752:(t,e,i)=>{var s=i(12920),n=i(72283),r=i(84132),o=i(42477);t.exports=function(t){return t===s.ORTHOGONAL?o:t===s.STAGGERED?r:n}},50811:(t,e,i)=>{var p=i(72632);t.exports=function(t,e,i,s,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=r.width),void 0===s&&(s=r.height);var o=p(n=n||{},"isNotEmpty",!1),a=p(n,"isColliding",!1),h=p(n,"hasInterestingFace",!1);t<0&&(i+=t,t=0),e<0&&(s+=e,e=0),t+i>r.width&&(i=Math.max(r.width-t,0)),e+s>r.height&&(s=Math.max(r.height-e,0));for(var l=[],u=e;u{function f(t,e){return v.RectangleToTriangle(e,t)}var g=i(84068),y=i(50811),v=i(7563),m=i(72283),i=i(93736),x=new i,w=new i,T=new i;t.exports=function(t,e,i,s){if(void 0===t)return[];var n=m,r=(t instanceof g.Circle?n=v.CircleToRectangle:t instanceof g.Rectangle?n=v.RectangleToRectangle:t instanceof g.Triangle?n=f:t instanceof g.Line&&(n=v.LineToRectangle),s.tilemapLayer.worldToTileXY(t.left,t.top,!0,w,i),w.x),o=w.y,a=(s.tilemapLayer.worldToTileXY(t.right,t.bottom,!1,T,i),Math.ceil(T.x)),h=Math.ceil(T.y),a=Math.max(a-r,1),h=Math.max(h-o,1),l=y(r,o,a,h,e,s),r=s.tileWidth,o=s.tileHeight;s.tilemapLayer&&(r*=s.tilemapLayer.scaleX,o*=s.tilemapLayer.scaleY);for(var u=[],c=new g.Rectangle(0,0,r,o),d=0;d{var u=i(50811),i=i(93736),c=new i,d=new i;t.exports=function(t,e,i,s,n,r,o){var a=o.tilemapLayer.tilemap._convert.WorldToTileXY,h=(a(t,e,!0,c,r,o),c.x),l=c.y,a=(a(t+i,e+s,!1,d,r,o),Math.ceil(d.x)),t=Math.ceil(d.y);return u(h,l,a-h,t-l,n,o)}},29296:(t,e,i)=>{var s=i(12920),n=i(10618),r=i(806);t.exports=function(t){return t===s.ORTHOGONAL?r:n}},32688:(t,e,i)=>{var s=i(12920),n=i(11516),r=i(18750),o=i(72283),a=i(90562),h=i(45676);t.exports=function(t){return t===s.ORTHOGONAL?h:t===s.ISOMETRIC?r:t===s.HEXAGONAL?n:t===s.STAGGERED?a:o}},74326:(t,e,i)=>{var s=i(12920),n=i(10618),r=i(3689),o=i(70520);t.exports=function(t){return t===s.ORTHOGONAL?o:t===s.STAGGERED?r:n}},46598:(t,e,i)=>{var s=i(62839);t.exports=function(t,e,i){return!!s(t,e,i)&&null!==(i=i.data[e][t])&&-1{var n=i(46598),r=new(i(93736));t.exports=function(t,e,i,s){s.tilemapLayer.worldToTileXY(t,e,!0,r,i);t=r.x,e=r.y;return n(t,e,s)}},6358:(t,e,i)=>{var l=i(82127),u=i(84314);t.exports=function(t,e){var i,s,n,r,o=t.tilemapLayer.tilemap,a=t.tilemapLayer,h=Math.floor(o.tileWidth*a.scaleX),o=Math.floor(o.tileHeight*a.scaleY),t=t.hexSideLength;return h="y"===this.staggerAxis?(r=(o-t)/2+t,i=u(e.worldView.x-a.x,h,0,!0)-a.cullPaddingX,s=l(e.worldView.right-a.x,h,0,!0)+a.cullPaddingX,n=u(e.worldView.y-a.y,r,0,!0)-a.cullPaddingY,l(e.worldView.bottom-a.y,r,0,!0)+a.cullPaddingY):(i=u(e.worldView.x-a.x,r=(h-t)/2+t,0,!0)-a.cullPaddingX,s=l(e.worldView.right-a.x,r,0,!0)+a.cullPaddingX,n=u(e.worldView.y-a.y,o,0,!0)-a.cullPaddingY,l(e.worldView.bottom-a.y,o,0,!0)+a.cullPaddingY),{left:i,right:s,top:n,bottom:h}}},37524:(t,e,i)=>{var r=i(6358),o=i(6987);t.exports=function(t,e,i,s){void 0===s&&(s=0),(i=void 0===i?[]:i).length=0;var n=t.tilemapLayer,e=r(t,e);return n.skipCull&&1===n.scrollFactorX&&1===n.scrollFactorY&&(e.left=0,e.right=t.width,e.top=0,e.bottom=t.height),o(t,e,s,i),i}},63634:(t,e,i)=>{var p=i(21715),f=i(93736),g=new f;t.exports=function(t,e,i,s){var n=s.baseTileWidth,r=s.baseTileHeight,o=s.tilemapLayer;o&&(n*=o.scaleX,r*=o.scaleY);for(var a,h=p(t,e,g,i,s),l=[],o=.5773502691896257,u="y"===this.staggerAxis?(a=o*n,r/2):(a=n/2,o*r),c=0;c<6;c++){var d=2*Math.PI*(.5-c)/6;l.push(new f(h.x+a*Math.cos(d),h.y+u*Math.sin(d)))}return l}},21715:(t,e,i)=>{var c=i(93736);t.exports=function(t,e,i,s,n){i=i||new c;var r=n.baseTileWidth,o=n.baseTileHeight,n=n.tilemapLayer,a=0,h=0;n&&(s=s||n.scene.cameras.main,a=n.x+s.scrollX*(1-n.scrollFactorX),h=n.y+s.scrollY*(1-n.scrollFactorY),r*=n.scaleX,o*=n.scaleY);var l,u,s=r/2,n=o/2;return"y"===this.staggerAxis?(l=a+r*t+r,u=h+1.5*e*n+n,e%2==0&&("odd"===this.staggerIndex?l-=s:l+=s)):"x"===this.staggerAxis&&"odd"===this.staggerIndex&&(l=a+1.5*t*s+s,u=h+o*t+o,t%2==0)&&("odd"===this.staggerIndex?u-=n:u+=n),i.set(l,u)}},11516:(t,e,i)=>{var g=i(93736);t.exports=function(t,e,i,s,n,r){s=s||new g;var o=r.baseTileWidth,a=r.baseTileHeight,h=r.tilemapLayer;h&&(n=n||h.scene.cameras.main,t-=h.x+n.scrollX*(1-h.scrollFactorX),e-=h.y+n.scrollY*(1-h.scrollFactorY),o*=h.scaleX,a*=h.scaleY);var l,u,n=.5773502691896257,h=-.3333333333333333,c=.6666666666666666,d=o/2,p=a/2,o="y"===r.staggerAxis?(u=n*(f=(t-d)/(n*o))+h*(l=(e-p)/p),0*f+c*l):(u=h*(f=(t-d)/d)+n*(l=(e-p)/(n*a)),c*f+0*l),h=-u-o,t=Math.round(u),d=Math.round(o),e=Math.round(h),p=Math.abs(t-u),n=Math.abs(d-o),a=Math.abs(e-h),c=(n{t.exports=function(t,e,i){return 0<=t&&t{var f=i(13125);t.exports=function(t,e,i,s){void 0===s&&(s=0),(i=void 0===i?[]:i).length=0;var n,r,o,a=t.tilemapLayer,h=t.data,l=t.width,u=t.height,c=a.skipCull,d=l,p=u;if(0===s){for(r=0;r{var l=i(93736);t.exports=function(t,e,i,s,n){i=i||new l;var r=n.baseTileWidth,o=n.baseTileHeight,n=n.tilemapLayer,a=0,h=0;return n&&(s=s||n.scene.cameras.main,a=n.x+s.scrollX*(1-n.scrollFactorX),r*=n.scaleX,h=n.y+s.scrollY*(1-n.scrollFactorY),o*=n.scaleY),i.set(a+r/2*(t-e),h+(t+e)*(o/2))}},18750:(t,e,i)=>{var l=i(93736);t.exports=function(t,e,i,s,n,r,o){s=s||new l;var a=r.baseTileWidth,h=r.baseTileHeight,r=r.tilemapLayer,n=(r&&(n=n||r.scene.cameras.main,e-=r.y+n.scrollY*(1-r.scrollFactorY),h*=r.scaleY,t-=r.x+n.scrollX*(1-r.scrollFactorX),a*=r.scaleX),a/2),r=h/2,a=(o||(e-=h),.5*((t-=n)/n+e/r)),o=.5*(-t/n+e/r);return i&&(a=Math.floor(a),o=Math.floor(o)),s.set(a,o)}},29003:(t,e,i)=>{var l=i(29633),u=i(62839),c=i(92839),d=i(68234);t.exports=function(t,e,i,s,n){var r,o,a,h;return void 0===s&&(s=!0),u(e,i,n)?(r=(r=n.data[i][e])&&r.collides,t instanceof l?(null===n.data[i][e]&&(n.data[i][e]=new l(n,t.index,e,i,n.tileWidth,n.tileHeight)),n.data[i][e].copy(t)):(h=t,null===n.data[i][e]?n.data[i][e]=new l(n,h,e,i,n.tileWidth,n.tileHeight):n.data[i][e].index=h),o=n.data[i][e],a=-1!==n.collideIndexes.indexOf(o.index),-1===(h=t instanceof l?t.index:t)?(o.width=n.tileWidth,o.height=n.tileHeight):(t=n.tilemapLayer.tilemap.tiles[h][2],h=n.tilemapLayer.tileset[t],o.width=h.tileWidth,o.height=h.tileHeight),d(o,a),s&&r!==o.collides&&c(e,i,n),o):null}},48565:(t,e,i)=>{var o=i(29003),a=new(i(93736));t.exports=function(t,e,i,s,n,r){return r.tilemapLayer.worldToTileXY(e,i,!0,a,n,r),o(t,a.x,a.y,s,r)}},56547:(t,e,i)=>{var u=i(60386),c=i(29003);t.exports=function(t,e,i,s,n){if(void 0===s&&(s=!0),!Array.isArray(t))return null;for(var r=(t=Array.isArray(t[0])?t:[t]).length,o=t[0].length,a=0;a{var h=i(50811),l=i(72861);t.exports=function(t,e,i,s,n,r){var o,a=h(t,e,i,s,{},r);if(!n)for(n=[],o=0;o{var o=i(29633),a=i(62839),h=i(92839);t.exports=function(t,e,i,s,n){var r;return void 0===i&&(i=!0),void 0===s&&(s=!0),a(t,e,n)&&(r=n.data[e][t])?(n.data[e][t]=i?null:new o(n,-1,t,e,n.tileWidth,n.tileHeight),s&&r&&r.collides&&h(t,e,n),r):null}},17384:(t,e,i)=>{var o=i(929),a=new(i(93736));t.exports=function(t,e,i,s,n,r){return r.tilemapLayer.worldToTileXY(t,e,!0,a,n,r),o(a.x,a.y,i,s,r)}},93763:(t,e,i)=>{var f=i(50811),i=i(95509),g=new i(105,210,231,150),y=new i(243,134,48,200),v=new i(40,39,37,150);t.exports=function(t,e,i){var s=void 0!==(e=void 0===e?{}:e).tileColor?e.tileColor:g,n=void 0!==e.collidingTileColor?e.collidingTileColor:y,r=void 0!==e.faceColor?e.faceColor:v,o=f(0,0,i.width,i.height,null,i);t.translateCanvas(i.tilemapLayer.x,i.tilemapLayer.y),t.scaleCanvas(i.tilemapLayer.scaleX,i.tilemapLayer.scaleY);for(var a=0;a{var l=i(50811);t.exports=function(t,e,i,s,n,r,o){for(var a=l(i,s,n,r,null,o),h=0;h{t.exports=function(t,e,i,s){var n,r,o,a=t.data,h=t.width,l=t.height,t=t.tilemapLayer,u=Math.max(0,e.left),c=Math.min(h,e.right),d=Math.max(0,e.top),p=Math.min(l,e.bottom);if(0===i)for(r=d;r{var l=i(68234),u=i(60386),c=i(91181);t.exports=function(t,e,i,s,n){void 0===e&&(e=!0),void 0===i&&(i=!0),void 0===n&&(n=!0),Array.isArray(t)||(t=[t]);for(var r=0;r{var u=i(68234),c=i(60386),d=i(91181);t.exports=function(t,e,i,s,n,r){if(void 0===i&&(i=!0),void 0===s&&(s=!0),void 0===r&&(r=!0),!(e=t&&l.index<=e&&u(l,i)}s&&c(0,0,n.width,n.height,n)}}},33158:(t,e,i)=>{var a=i(68234),h=i(60386),l=i(91181);t.exports=function(t,e,i,s){void 0===e&&(e=!0),void 0===i&&(i=!0),Array.isArray(t)||(t=[t]);for(var n=0;n{var u=i(68234),c=i(60386),d=i(19256);t.exports=function(t,e,i,s){void 0===e&&(e=!0),void 0===i&&(i=!0);for(var n=0;n{var a=i(68234),h=i(60386);t.exports=function(t,e,i){void 0===t&&(t=!0),void 0===e&&(e=!0);for(var s=0;s{t.exports=function(t,e,i){var s=i.collideIndexes.indexOf(t);e&&-1===s?i.collideIndexes.push(t):e||-1===s||i.collideIndexes.splice(s,1)}},68234:t=>{t.exports=function(t,e){e?t.setCollision(!0,!0,!0,!0,!1):t.resetCollision(!1)}},11628:t=>{t.exports=function(t,e,i,s){if("number"==typeof t)s.callbacks[t]=null!==e?{callback:e,callbackContext:i}:void 0;else for(var n=0,r=t.length;n{var l=i(50811);t.exports=function(t,e,i,s,n,r,o){for(var a=l(t,e,i,s,null,o),h=0;h{var h=i(50811),l=i(18592);t.exports=function(t,e,i,s,n){var r=h(t,e,i,s,null,n),o=r.map(function(t){return t.index});l(o);for(var a=0;a{var n=i(82127),r=i(84314);t.exports=function(t,e){var i=t.tilemapLayer.tilemap,t=t.tilemapLayer,s=Math.floor(i.tileWidth*t.scaleX),i=Math.floor(i.tileHeight*t.scaleY);return{left:r(e.worldView.x-t.x,s,0,!0)-t.cullPaddingX,right:n(e.worldView.right-t.x,s,0,!0)+t.cullPaddingX,top:r(e.worldView.y-t.y,i/2,0,!0)-t.cullPaddingY,bottom:n(e.worldView.bottom-t.y,i/2,0,!0)+t.cullPaddingY}}},19242:(t,e,i)=>{var r=i(53945),o=i(6987);t.exports=function(t,e,i,s){void 0===s&&(s=0),(i=void 0===i?[]:i).length=0;var n=t.tilemapLayer,e=r(t,e);return n.skipCull&&1===n.scrollFactorX&&1===n.scrollFactorY&&(e.left=0,e.right=t.width,e.top=0,e.bottom=t.height),o(t,e,s,i),i}},33388:(t,e,i)=>{var l=i(93736);t.exports=function(t,e,i,s,n){i=i||new l;var r=n.baseTileWidth,o=n.baseTileHeight,n=n.tilemapLayer,a=0,h=0;return n&&(s=s||n.scene.cameras.main,a=n.x+s.scrollX*(1-n.scrollFactorX),r*=n.scaleX,h=n.y+s.scrollY*(1-n.scrollFactorY),o*=n.scaleY),i.set(a+t*r+e%2*(r/2),h+e*(o/2))}},84132:t=>{t.exports=function(t,e,i){var s=i.baseTileHeight,i=i.tilemapLayer,n=0;return i&&(void 0===e&&(e=i.scene.cameras.main),n=i.y+e.scrollY*(1-i.scrollFactorY),s*=i.scaleY),n+t*(s/2)+s}},90562:(t,e,i)=>{var h=i(93736);t.exports=function(t,e,i,s,n,r){s=s||new h;var o=r.baseTileWidth,a=r.baseTileHeight,r=r.tilemapLayer,n=(r&&(n=n||r.scene.cameras.main,e-=r.y+n.scrollY*(1-r.scrollFactorY),a*=r.scaleY,t-=r.x+n.scrollX*(1-r.scrollFactorX),o*=r.scaleX),i?Math.floor(e/(a/2)):e/(a/2)),r=i?Math.floor((t+n%2*.5*o)/o):(t+n%2*.5*o)/o;return s.set(r,n)}},3689:t=>{t.exports=function(t,e,i,s){var n=s.baseTileHeight,s=s.tilemapLayer;return s&&(i=i||s.scene.cameras.main,t-=s.y+i.scrollY*(1-s.scrollFactorY),n*=s.scaleY),e?Math.floor(t/(n/2)):t/(n/2)}},55217:(t,e,i)=>{var l=i(50811);t.exports=function(t,e,i,s,n,r,o){for(var a=l(i,s,n,r,null,o),h=0;h{t.exports=function(t,e,i){var s=i.baseTileWidth,i=i.tilemapLayer,n=0;return i&&(e=e||i.scene.cameras.main,n=i.x+e.scrollX*(1-i.scrollFactorX),s*=i.scaleX),n+t*s}},46836:(t,e,i)=>{var r=i(44150),o=i(42477),a=i(93736);t.exports=function(t,e,i,s,n){return(i=i||new a(0,0)).x=r(t,s,n),i.y=o(e,s,n),i}},42477:t=>{t.exports=function(t,e,i){var s=i.baseTileHeight,i=i.tilemapLayer,n=0;return i&&(e=e||i.scene.cameras.main,n=i.y+e.scrollY*(1-i.scrollFactorY),s*=i.scaleY),n+t*s}},39677:(t,e,i)=>{var f=i(50811);t.exports=function(t,e,i,s,n,r){if(n){for(var o=f(t,e,i,s,null,r),a=0,h=0;h{var n=i(45676),r=new(i(93736));t.exports=function(t,e,i,s){return n(t,0,e,r,i,s),r.x}},45676:(t,e,i)=>{var h=i(93736);t.exports=function(t,e,i,s,n,r){void 0===i&&(i=!0),s=s||new h;var o=r.baseTileWidth,a=r.baseTileHeight,r=r.tilemapLayer,n=(r&&(n=n||r.scene.cameras.main,t-=r.x+n.scrollX*(1-r.scrollFactorX),e-=r.y+n.scrollY*(1-r.scrollFactorY),o*=r.scaleX,a*=r.scaleY),t/o),r=e/a;return i&&(n=Math.floor(n),r=Math.floor(r)),s.set(n,r)}},70520:(t,e,i)=>{var n=i(45676),r=new(i(93736));t.exports=function(t,e,i,s){return n(0,t,e,r,i,s),r.y}},5047:(t,e,i)=>{t.exports={CalculateFacesAt:i(92839),CalculateFacesWithin:i(60386),CheckIsoBounds:i(13125),Copy:i(17347),CreateFromTiles:i(93604),CullBounds:i(71586),CullTiles:i(381),Fill:i(97734),FilterTiles:i(63555),FindByIndex:i(37982),FindTile:i(48297),ForEachTile:i(80916),GetCullTilesFunction:i(31493),GetTileAt:i(15494),GetTileAtWorldXY:i(24640),GetTileCorners:i(48495),GetTileCornersFunction:i(7160),GetTilesWithin:i(50811),GetTilesWithinShape:i(31674),GetTilesWithinWorldXY:i(44662),GetTileToWorldXFunction:i(16884),GetTileToWorldXYFunction:i(68182),GetTileToWorldYFunction:i(3752),GetWorldToTileXFunction:i(29296),GetWorldToTileXYFunction:i(32688),GetWorldToTileYFunction:i(74326),HasTileAt:i(46598),HasTileAtWorldXY:i(28654),HexagonalCullBounds:i(6358),HexagonalCullTiles:i(37524),HexagonalGetTileCorners:i(63634),HexagonalTileToWorldXY:i(21715),HexagonalWorldToTileXY:i(11516),IsInLayerBounds:i(62839),IsometricCullTiles:i(20887),IsometricTileToWorldXY:i(21808),IsometricWorldToTileXY:i(18750),PutTileAt:i(29003),PutTileAtWorldXY:i(48565),PutTilesAt:i(56547),Randomize:i(91180),RemoveTileAt:i(929),RemoveTileAtWorldXY:i(17384),RenderDebug:i(93763),ReplaceByIndex:i(51202),RunCull:i(6987),SetCollision:i(51710),SetCollisionBetween:i(15216),SetCollisionByExclusion:i(33158),SetCollisionByProperty:i(4180),SetCollisionFromCollisionGroup:i(18625),SetLayerCollisionIndex:i(91181),SetTileCollision:i(68234),SetTileIndexCallback:i(11628),SetTileLocationCallback:i(72732),Shuffle:i(34397),StaggeredCullBounds:i(53945),StaggeredCullTiles:i(19242),StaggeredTileToWorldXY:i(33388),StaggeredTileToWorldY:i(84132),StaggeredWorldToTileXY:i(90562),StaggeredWorldToTileY:i(3689),SwapByIndex:i(55217),TileToWorldX:i(44150),TileToWorldXY:i(46836),TileToWorldY:i(42477),WeightedRandomize:i(39677),WorldToTileX:i(806),WorldToTileXY:i(45676),WorldToTileY:i(70520)}},12920:t=>{t.exports={ORTHOGONAL:0,ISOMETRIC:1,STAGGERED:2,HEXAGONAL:3}},84758:(t,e,i)=>{i={ORIENTATION:i(12920)};t.exports=i},52678:(t,e,i)=>{var s=i(98611),n=i(84758),s=s(!1,{Components:i(5047),Parsers:i(34124),Formats:i(93560),ImageCollection:i(97042),ParseToTilemap:i(15043),Tile:i(29633),Tilemap:i(89797),TilemapCreator:i(4843),TilemapFactory:i(37940),Tileset:i(47975),TilemapLayer:i(87177),Orientation:i(12920),LayerData:i(94990),MapData:i(16586),ObjectLayer:i(15256)},n.ORIENTATION);t.exports=s},94990:(t,e,i)=>{var s=i(56694),n=i(12920),r=i(72632),i=new s({initialize:function(t){this.name=r(t=void 0===t?{}:t,"name","layer"),this.x=r(t,"x",0),this.y=r(t,"y",0),this.width=r(t,"width",0),this.height=r(t,"height",0),this.tileWidth=r(t,"tileWidth",0),this.tileHeight=r(t,"tileHeight",0),this.baseTileWidth=r(t,"baseTileWidth",this.tileWidth),this.baseTileHeight=r(t,"baseTileHeight",this.tileHeight),this.orientation=r(t,"orientation",n.ORTHOGONAL),this.widthInPixels=r(t,"widthInPixels",this.width*this.baseTileWidth),this.heightInPixels=r(t,"heightInPixels",this.height*this.baseTileHeight),this.alpha=r(t,"alpha",1),this.visible=r(t,"visible",!0),this.properties=r(t,"properties",[]),this.indexes=r(t,"indexes",[]),this.collideIndexes=r(t,"collideIndexes",[]),this.callbacks=r(t,"callbacks",[]),this.bodies=r(t,"bodies",[]),this.data=r(t,"data",[]),this.tilemapLayer=r(t,"tilemapLayer",null),this.hexSideLength=r(t,"hexSideLength",0),this.staggerAxis=r(t,"staggerAxis","y"),this.staggerIndex=r(t,"staggerIndex","odd")}});t.exports=i},16586:(t,e,i)=>{var s=i(56694),n=i(12920),r=i(72632),i=new s({initialize:function(t){this.name=r(t=void 0===t?{}:t,"name","map"),this.width=r(t,"width",0),this.height=r(t,"height",0),this.infinite=r(t,"infinite",!1),this.tileWidth=r(t,"tileWidth",0),this.tileHeight=r(t,"tileHeight",0),this.widthInPixels=r(t,"widthInPixels",this.width*this.tileWidth),this.heightInPixels=r(t,"heightInPixels",this.height*this.tileHeight),this.format=r(t,"format",null),this.orientation=r(t,"orientation",n.ORTHOGONAL),this.renderOrder=r(t,"renderOrder","right-down"),this.version=r(t,"version","1"),this.properties=r(t,"properties",{}),this.layers=r(t,"layers",[]),this.images=r(t,"images",[]),this.objects=r(t,"objects",[]),Array.isArray(this.objects)||(this.objects=[]),this.collision=r(t,"collision",{}),this.tilesets=r(t,"tilesets",[]),this.imageCollections=r(t,"imageCollections",[]),this.tiles=r(t,"tiles",[]),this.hexSideLength=r(t,"hexSideLength",0),this.staggerAxis=r(t,"staggerAxis","y"),this.staggerIndex=r(t,"staggerIndex","odd")}});t.exports=i},15256:(t,e,i)=>{var s=i(56694),n=i(72632),i=new s({initialize:function(t){this.name=n(t=void 0===t?{}:t,"name","object layer"),this.opacity=n(t,"opacity",1),this.properties=n(t,"properties",{}),this.propertyTypes=n(t,"propertytypes",{}),this.type=n(t,"type","objectgroup"),this.visible=n(t,"visible",!0),this.objects=n(t,"objects",[]),Array.isArray(this.objects)||(this.objects=[])}});t.exports=i},21394:(t,e,i)=>{var s=i(12920);t.exports=function(t){return"isometric"===(t=t.toLowerCase())?s.ISOMETRIC:"staggered"===t?s.STAGGERED:"hexagonal"===t?s.HEXAGONAL:s.ORTHOGONAL}},90715:(t,e,i)=>{var a=i(93560),h=i(84346),l=i(96097),u=i(2378),c=i(44909);t.exports=function(t,e,i,s,n,r){var o;switch(e){case a.ARRAY_2D:o=h(t,i,s,n,r);break;case a.CSV:o=l(t,i,s,n,r);break;case a.TILED_JSON:o=u(t,i,r);break;case a.WELTMEISTER:o=c(t,i,r);break;default:o=null}return o}},84346:(t,e,i)=>{var p=i(93560),f=i(94990),g=i(16586),y=i(29633);t.exports=function(t,e,i,s,n){for(var r=new f({tileWidth:i,tileHeight:s}),t=new g({name:t,tileWidth:i,tileHeight:s,format:p.ARRAY_2D,layers:[r]}),o=[],a=e.length,h=0,l=0;l{var r=i(93560),o=i(84346);t.exports=function(t,e,i,s,n){e=e.trim().split("\n").map(function(t){return t.split(",")}),t=o(t,e,i,s,n);return t.format=r.CSV,t}},30951:(t,e,i)=>{var c=i(94990),d=i(29633);t.exports=function(t,e){for(var i=[],s=0;s{var o=i(47975);t.exports=function(t){for(var e=[],i=[],s=0;s{var o=i(93560),a=i(16586),h=i(30951),l=i(47488);t.exports=function(t,e,i){if(0===e.layer.length)return null;for(var s=0,n=0,r=0;rs&&(s=e.layer[r].width),e.layer[r].height>n&&(n=e.layer[r].height);t=new a({width:s,height:n,name:t,tileWidth:e.layer[0].tilesize,tileHeight:e.layer[0].tilesize,format:o.WELTMEISTER});return t.layers=h(e,i),t.tilesets=l(e),t}},24507:(t,e,i)=>{t.exports={ParseTileLayers:i(30951),ParseTilesets:i(47488),ParseWeltmeister:i(44909)}},34124:(t,e,i)=>{t.exports={FromOrientationString:i(21394),Parse:i(90715),Parse2DArray:i(84346),ParseCSV:i(96097),Impact:i(24507),Tiled:i(50044)}},48646:(t,e,i)=>{var h=i(98611);t.exports=function(t){for(var e,i=0;i{t.exports=function(t){for(var e=window.atob(t),i=e.length,s=new Array(i/4),n=0;n>>0;return s}},14556:(t,e,i)=>{var f=i(47975);t.exports=function(t){for(var e,i=[],s=0;s{var r=i(72632);t.exports=function(t,e,i){var s,n;return e?(s=e.x+r(e,"startx",0)*t.tilewidth+r(e,"offsetx",0),n=e.y+r(e,"starty",0)*t.tileheight+r(e,"offsety",0),{i:0,layers:e.layers,name:i.name+e.name+"/",opacity:i.opacity*e.opacity,visible:i.visible&&e.visible,x:i.x+s,y:i.y+n}):{i:0,layers:t.layers,name:"",opacity:1,visible:!0,x:0,y:0}}},8847:t=>{t.exports=function(t){var e=Boolean(2147483648&t),i=Boolean(1073741824&t),s=Boolean(536870912&t),n=(t&=536870911,0),r=!1;return e&&i&&s?(n=Math.PI/2,r=!0):e&&i&&!s?(n=Math.PI,r=!1):e&&!i&&s?(n=Math.PI/2,r=!1):!e||i||s?!e&&i&&s?(n=3*Math.PI/2,r=!1):e||!i||s?e||i||!s?e||i||s||(n=0,r=!1):(n=3*Math.PI/2,r=!0):(n=Math.PI,r=!0):r=!(n=0),{gid:t,flippedHorizontal:e,flippedVertical:i,flippedAntiDiagonal:s,rotation:n,flipped:r}}},78339:(t,e,i)=>{var a=i(72632),h=i(92044);t.exports=function(t){for(var e=[],i=[],s=h(t);s.i=s.layers.length){if(i.length<1)break;s=i.pop()}else{var n,r,o=s.layers[s.i];s.i++,"imagelayer"===o.type?(r=a(o,"offsetx",0)+a(o,"startx",0),n=a(o,"offsety",0)+a(o,"starty",0),e.push({name:s.name+o.name,image:o.image,x:s.x+r+o.x,y:s.y+n+o.y,alpha:s.opacity*o.opacity,visible:s.visible&&o.visible,properties:a(o,"properties",{})})):"group"===o.type&&(r=h(t,o,s),i.push(s),s=r)}return e}},2378:(t,e,i)=>{var s=i(48646),n=i(14556),r=i(12920),o=i(28699),a=i(93560),h=i(21394),l=i(16586),u=i(78339),c=i(61136),d=i(95925),p=i(93392);t.exports=function(t,e,i){e=o(e),t=new l({width:e.width,height:e.height,name:t,tileWidth:e.tilewidth,tileHeight:e.tileheight,orientation:h(e.orientation),format:a.TILED_JSON,version:e.version,properties:e.properties,renderOrder:e.renderorder,infinite:e.infinite}),t.orientation===r.HEXAGONAL&&(t.hexSideLength=e.hexsidelength,t.staggerAxis=e.staggeraxis,t.staggerIndex=e.staggerindex),t.layers=d(e,i),t.images=u(e),i=p(e);return t.tilesets=i.tilesets,t.imageCollections=i.imageCollections,t.objects=c(e),t.tiles=n(t),s(t),t}},4281:(t,e,i)=>{function n(t){return{x:t.x,y:t.y}}var r=i(28820),o=i(8847),a=["id","name","type","rotation","properties","visible","x","y","width","height"];t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=0);var s=r(t,a);return s.x+=e,s.y+=i,t.gid?(e=o(t.gid),s.gid=e.gid,s.flippedHorizontal=e.flippedHorizontal,s.flippedVertical=e.flippedVertical,s.flippedAntiDiagonal=e.flippedAntiDiagonal):t.polyline?s.polyline=t.polyline.map(n):t.polygon?s.polygon=t.polygon.map(n):t.ellipse?s.ellipse=t.ellipse:t.text?s.text=t.text:t.point?s.point=!0:s.rectangle=!0,s}},61136:(t,e,i)=>{var c=i(72632),d=i(4281),p=i(15256),f=i(92044);t.exports=function(t){for(var e=[],i=[],s=f(t);s.i=s.layers.length){if(i.length<1)break;s=i.pop()}else{var n=s.layers[s.i];if(s.i++,n.opacity*=s.opacity,n.visible=s.visible&&n.visible,"objectgroup"===n.type){n.name=s.name+n.name;for(var r=s.x+c(n,"startx",0)+c(n,"offsetx",0),o=s.y+c(n,"starty",0)+c(n,"offsety",0),a=[],h=0;h{var O=i(43908),R=i(12920),D=i(92044),L=i(21394),k=i(72632),F=i(94990),I=i(8847),B=i(29633);t.exports=function(t,e){for(var i=k(t,"infinite",!1),s=[],n=[],r=D(t);r.i=r.layers.length){if(n.length<1)break;r=n.pop()}else{var o,a=r.layers[r.i];if(r.i++,"tilelayer"===a.type){if(!a.compression){if(a.encoding&&"base64"===a.encoding){if(a.chunks)for(var h=0;h{var w=i(47975),T=i(97042),b=i(4281),S=i(39642);t.exports=function(t){for(var e,i=[],s=[],n=null,r=0;r{t.exports=function(t,e){for(var i=0;i{t.exports={AssignTileProperties:i(48646),Base64Decode:i(43908),BuildTilesetIndex:i(14556),CreateGroupLayer:i(92044),ParseGID:i(8847),ParseImageLayers:i(78339),ParseJSONTiled:i(2378),ParseObject:i(4281),ParseObjectLayers:i(61136),ParseTileLayers:i(95925),ParseTilesets:i(93392)}},73779:(t,e,i)=>{var s=i(56694),n=i(91963),r=i(7599),o=i(57911),a=i(66458),i=new s({initialize:function(t){this.scene=t,this.systems=t.sys,this.now=0,this.startTime=0,this.timeScale=1,this.paused=!1,this._active=[],this._pendingInsertion=[],this._pendingRemoval=[],t.sys.events.once(r.BOOT,this.boot,this),t.sys.events.on(r.START,this.start,this)},boot:function(){this.now=this.systems.game.loop.time,this.systems.events.once(r.DESTROY,this.destroy,this)},start:function(){this.startTime=this.systems.game.loop.time;var t=this.systems.events;t.on(r.PRE_UPDATE,this.preUpdate,this),t.on(r.UPDATE,this.update,this),t.once(r.SHUTDOWN,this.shutdown,this)},addEvent:function(t){var e;return t instanceof o?(this.removeEvent(e=t),e.elapsed=e.startAt,e.hasDispatched=!1,e.repeatCount=-1===e.repeat||e.loop?999999999999:e.repeat):e=new o(t),this._pendingInsertion.push(e),e},delayedCall:function(t,e,i,s){return this.addEvent({delay:t,callback:e,args:i,callbackScope:s})},clearPendingEvents:function(){return this._pendingInsertion=[],this},removeEvent:function(t){Array.isArray(t)||(t=[t]);for(var e=0;e=s.delay)){var n=s.elapsed-s.delay;if(s.elapsed=s.delay,!s.hasDispatched&&s.callback&&(s.hasDispatched=!0,s.callback.apply(s.callbackScope,s.args)),0=s.delay)for(;n>=s.delay&&0{var s=i(56694),n=i(6659),r=i(61286),a=i(72632),o=i(7599),h=new s({Extends:n,initialize:function(t,e){n.call(this),this.scene=t,this.systems=t.sys,this.elapsed=0,this.paused=!0,this.complete=!1,this.totalComplete=0,this.events=[];t=this.systems.events;t.on(o.PRE_UPDATE,this.preUpdate,this),t.on(o.UPDATE,this.update,this),t.once(o.SHUTDOWN,this.destroy,this),e&&this.add(e)},preUpdate:function(t,e){this.paused||(this.elapsed+=e)},update:function(){if(!this.paused){for(var t,e=this.events,i=!1,s=this.systems,n=0;n=e.length&&(this.complete=!0)}},play:function(t){return void 0===t&&(t=!0),this.paused=!1,this.complete=!1,this.totalComplete=0,t&&this.reset(),this},pause:function(){return this.paused=!0,this},resume:function(){return this.paused=!1,this},stop:function(){return this.paused=!0,this.complete=!0,this},reset:function(){for(var t=this.elapsed=0;t{var s=i(56694),n=i(72632),i=new s({initialize:function(t){this.delay=0,this.repeat=0,this.repeatCount=0,this.loop=!1,this.callback,this.callbackScope,this.args,this.timeScale=1,this.startAt=0,this.elapsed=0,this.paused=!1,this.hasDispatched=!1,this.reset(t)},reset:function(t){if(this.delay=n(t,"delay",0),this.repeat=n(t,"repeat",0),this.loop=n(t,"loop",!1),this.callback=n(t,"callback",void 0),this.callbackScope=n(t,"callbackScope",this),this.args=n(t,"args",[]),this.timeScale=n(t,"timeScale",1),this.startAt=n(t,"startAt",0),this.paused=n(t,"paused",!1),this.elapsed=this.startAt,this.hasDispatched=!1,this.repeatCount=-1===this.repeat||this.loop?999999999999:this.repeat,0===this.delay&&(0{t.exports={Clock:i(73779),Timeline:i(20517),TimerEvent:i(57911)}},64532:(t,e,i)=>{var s=i(66458),n=i(56694),a=i(5454),r=i(68710),o=i(91963),h=i(7599),l=i(91944),u=i(39366),c=i(68061),d=i(45641),p=i(56034),i=new n({initialize:function(t){this.scene=t,this.events=t.sys.events,this.timeScale=1,this.paused=!1,this.processing=!1,this.tweens=[],this.time=0,this.startTime=0,this.nextTime=0,this.prevTime=0,this.maxLag=500,this.lagSkip=33,this.gap=1e3/240,this.events.once(h.BOOT,this.boot,this),this.events.on(h.START,this.start,this)},boot:function(){this.events.once(h.DESTROY,this.destroy,this)},start:function(){this.timeScale=1,this.paused=!1,this.startTime=Date.now(),this.prevTime=this.startTime,this.nextTime=this.gap,this.events.on(h.UPDATE,this.update,this),this.events.once(h.SHUTDOWN,this.shutdown,this)},create:function(t){Array.isArray(t)||(t=[t]);for(var e=[],i=0;ithis.maxLag&&(this.startTime+=e-this.lagSkip),this.prevTime+=e,this.prevTime-this.startTime),i=e-this.nextTime,s=e-1e3*this.time;return 0=this.gap?4:this.gap-i)):s=0,s},tick:function(){return this.step(!0),this},update:function(){this.paused||this.step(!1)},step:function(t){var e=this.getDelta(t=void 0===t?!1:t);if(!(e<=0)){this.processing=!0;for(var i=[],s=this.tweens,n=0;n{t.exports=function(t,e,i){return t&&t.hasOwnProperty(e)?t[e]:i}},21902:(t,e,i)=>{var o=i(35060),a=i(40587);t.exports=function(t,e){var i,s,n,r=o.Power0;return"string"==typeof t?(o.hasOwnProperty(t)||(i="",t.indexOf(".")&&("in"===(s=(i=t.substring(t.indexOf(".")+1)).toLowerCase())?i="easeIn":"out"===s?i="easeOut":"inout"===s&&(i="easeInOut")),t=a(t.substring(0,t.indexOf(".")+1)+i),o.hasOwnProperty(t)))&&(r=o[t]):"function"==typeof t&&(r=t),e?((n=e.slice(0)).unshift(0),function(t){return n[0]=t,r.apply(this,n)}):r}},4840:(t,e,i)=>{var s=i(63210),n=i(88332),r={bezier:s,catmull:n,catmullrom:n,linear:i(47614)};t.exports=function(t){var e;return null===t?null:(e=r.linear,"string"==typeof t?r.hasOwnProperty(t)&&(e=r[t]):"function"==typeof t&&(e=t),e)}},28348:t=>{t.exports=function(o,a,t){var e=o.hasOwnProperty(a)?"function"==typeof o[a]?function(t,e,i,s,n,r){return o[a](t,e,i,s,n,r)}:function(){return o[a]}:"function"==typeof t?t:function(){return t};return e}},92407:(t,e,i)=>{var s=i(53709);t.exports=function(t){var e,i=[];if(t.hasOwnProperty("props"))for(e in t.props)"_"!==e.substring(0,1)&&i.push({key:e,value:t.props[e]});else for(e in t)-1===s.indexOf(e)&&"_"!==e.substring(0,1)&&i.push({key:e,value:t[e]});return i}},65868:(t,e,i)=>{var s=i(10850);t.exports=function(t){t=s(t,"targets",null);return t=null===t||("function"==typeof t&&(t=t.call()),Array.isArray(t))?t:[t]}},9744:(t,e,i)=>{var g=i(17489),y=i(61616);function v(t){return t.getActive&&"function"==typeof t.getActive}function m(t){return t.getStart&&"function"==typeof t.getStart}function x(t){return t.getEnd&&"function"==typeof t.getEnd}function w(t,e){var i,s=function(t,e,i){return i},n=function(t,e,i){return i},r=null,o=typeof e;if("number"==o)s=function(){return e};else if(Array.isArray(e))n=function(){return e[0]},s=function(){return e[e.length-1]};else if("string"==o){var a="random"===(p=e.toLowerCase()).substring(0,6),h="int"===p.substring(0,3);if(a||h){var h=p.indexOf("("),l=p.indexOf(")"),u=p.indexOf(",");if(!(h&&l&&u))throw new Error("invalid random() format");var c=parseFloat(p.substring(h+1,u)),d=parseFloat(p.substring(u+1,l)),s=a?function(){return y(c,d)}:function(){return g(c,d)}}else{var p=p[0],f=parseFloat(e.substr(2));switch(p){case"+":s=function(t,e,i){return i+f};break;case"-":s=function(t,e,i){return i-f};break;case"*":s=function(t,e,i){return i*f};break;case"/":s=function(t,e,i){return i/f};break;default:s=function(){return parseFloat(e)}}}}else"function"==o?s=e:"object"==o&&(m(h=e)||x(h)||v(h)?(v(e)&&(r=e.getActive),x(e)&&(s=e.getEnd),m(e)&&(n=e.getStart)):e.hasOwnProperty("value")?i=w(t,e.value):(u=e.hasOwnProperty("to"),l=e.hasOwnProperty("from"),a=e.hasOwnProperty("start"),u&&(l||a)&&(i=w(t,e.to),a&&(p=w(t,e.start),i.getActive=p.getEnd),l)&&(o=w(t,e.from),i.getStart=o.getEnd)));return i=i||{getActive:r,getEnd:s,getStart:n}}t.exports=w},68710:(t,e,i)=>{var g=i(502),y=i(99730),v=i(20494),m=i(63130),x=i(21902),w=i(28348),T=i(10850),b=i(9744),S=i(72066),P=i(39366);t.exports=function(t,e,i){if(e instanceof P)return e.parent=t,e;i=void 0===i?y:S(y,i);var s=T(e,"from",0),n=T(e,"to",1),r=[{value:s}],o=T(e,"delay",i.delay),a=T(e,"easeParams",i.easeParams),h=T(e,"ease",i.ease),n=b("value",n),l=new P(t,r),t=l.add(0,"value",n.getEnd,n.getStart,n.getActive,x(T(e,"ease",h),T(e,"easeParams",a)),w(e,"delay",o),T(e,"duration",i.duration),m(e,"yoyo",i.yoyo),T(e,"hold",i.hold),T(e,"repeat",i.repeat),T(e,"repeatDelay",i.repeatDelay),!1,!1);t.start=s,t.current=s,l.completeDelay=v(e,"completeDelay",0),l.loop=Math.round(v(e,"loop",0)),l.loopDelay=Math.round(v(e,"loopDelay",0)),l.paused=m(e,"paused",!1),l.persist=m(e,"persist",!1),l.callbackScope=T(e,"callbackScope",l);for(var u=g.TYPES,c=0;c{var _=i(21902),E=i(10850),A=i(83392);t.exports=function(t,e){var o=E(e=void 0===e?{}:e,"start",0),i=E(e,"ease",null),s=E(e,"grid",null),a=E(e,"from",0),h="first"===a,l="center"===a,u="last"===a,c="number"==typeof a,d=Array.isArray(t),p=d?parseFloat(t[0]):parseFloat(t),f=d?parseFloat(t[1]):0,g=Math.max(p,f);if(d&&(o+=p),s){var y=s[0],v=s[1],n=0,r=0,m=[];u?(n=y-1,r=v-1):c?(n=a%y,r=Math.floor(a/y)):l&&(n=(y-1)/2,r=(v-1)/2);for(var x=A.MIN_SAFE_INTEGER,w=0;w{var A=i(502),C=i(99730),M=i(20494),O=i(63130),R=i(21902),D=i(4840),L=i(28348),k=i(92407),F=i(65868),I=i(10850),B=i(9744),N=i(72066),X=i(39366);t.exports=function(t,e,i){if(e instanceof X)return e.parent=t,e;i=void 0===i?C:N(C,i);var s=F(e);!s&&i.targets&&(s=i.targets);function n(t,e,i,s){var n,r;"texture"===i?(n=s,r=void 0,Array.isArray(s)?(n=s[0],r=s[1]):s.hasOwnProperty("value")?(n=s.value,Array.isArray(s.value)?(n=s.value[0],r=s.value[1]):"string"==typeof s.value&&(n=s.value)):"string"==typeof s&&(n=s),t.addFrame(e,n,r,L(s,"delay",o),I(s,"duration",a),I(s,"hold",u),I(s,"repeat",c),I(s,"repeatDelay",d),O(s,"flipX",f),O(s,"flipY",g))):(n=B(i,s),r=D(I(s,"interpolation",y)),t.add(e,i,n.getEnd,n.getStart,n.getActive,R(I(s,"ease",l),I(s,"easeParams",h)),L(s,"delay",o),I(s,"duration",a),O(s,"yoyo",p),I(s,"hold",u),I(s,"repeat",c),I(s,"repeatDelay",d),O(s,"flipX",f),O(s,"flipY",g),r,r?s:null))}for(var r=k(e),o=I(e,"delay",i.delay),a=I(e,"duration",i.duration),h=I(e,"easeParams",i.easeParams),l=I(e,"ease",i.ease),u=I(e,"hold",i.hold),c=I(e,"repeat",i.repeat),d=I(e,"repeatDelay",i.repeatDelay),p=O(e,"yoyo",i.yoyo),f=O(e,"flipX",i.flipX),g=O(e,"flipY",i.flipY),y=I(e,"interpolation",i.interpolation),v=new X(t,s),m=0;m{var c=i(502),d=i(20494),p=i(63130),f=i(65868),g=i(10850),y=i(68061),v=i(45641);t.exports=function(t,e){if(e instanceof v)return e.parent=t,e;var i=new v(t),s=(i.startDelay=g(e,"delay",0),i.completeDelay=d(e,"completeDelay",0),i.loop=Math.round(d(e,"loop",g(e,"repeat",0))),i.loopDelay=Math.round(d(e,"loopDelay",g(e,"repeatDelay",0))),i.paused=p(e,"paused",!1),i.persist=p(e,"persist",!0),i.callbackScope=g(e,"callbackScope",i),c.TYPES);for(u=0;u{t.exports={GetBoolean:i(63130),GetEaseFunction:i(21902),GetInterpolationFunction:i(4840),GetNewValue:i(28348),GetProps:i(92407),GetTargets:i(65868),GetValueOp:i(9744),NumberTweenBuilder:i(68710),StaggerBuilder:i(91944),TweenBuilder:i(68061)}},5570:t=>{t.exports="active"},6383:t=>{t.exports="complete"},72582:t=>{t.exports="loop"},90281:t=>{t.exports="pause"},80803:t=>{t.exports="repeat"},13640:t=>{t.exports="resume"},10472:t=>{t.exports="start"},5379:t=>{t.exports="stop"},43449:t=>{t.exports="update"},61541:t=>{t.exports="yoyo"},54272:(t,e,i)=>{t.exports={TWEEN_ACTIVE:i(5570),TWEEN_COMPLETE:i(6383),TWEEN_LOOP:i(72582),TWEEN_PAUSE:i(90281),TWEEN_RESUME:i(13640),TWEEN_REPEAT:i(80803),TWEEN_START:i(10472),TWEEN_STOP:i(5379),TWEEN_UPDATE:i(43449),TWEEN_YOYO:i(61541)}},75193:(t,e,i)=>{i={States:i(55303),Builders:i(79619),Events:i(54272),TweenManager:i(64532),Tween:i(39366),TweenData:i(15718),TweenFrameData:i(96490),BaseTween:i(502),TweenChain:i(45641)};t.exports=i},502:(t,e,i)=>{var s=i(56694),n=i(6659),r=i(54272),o=i(55303),i=new s({Extends:n,initialize:function(t){n.call(this),this.parent=t,this.data=[],this.totalData=0,this.startDelay=0,this.hasStarted=!1,this.timeScale=1,this.loop=0,this.loopDelay=0,this.loopCounter=0,this.completeDelay=0,this.countdown=0,this.state=o.PENDING,this.paused=!1,this.callbacks={onActive:null,onComplete:null,onLoop:null,onPause:null,onRepeat:null,onResume:null,onStart:null,onStop:null,onUpdate:null,onYoyo:null},this.callbackScope,this.persist=!1},setTimeScale:function(t){return this.timeScale=t,this},getTimeScale:function(){return this.timeScale},isPlaying:function(){return!this.paused&&this.isActive()},isPaused:function(){return this.paused},pause:function(){return this.paused||(this.paused=!0,this.dispatchEvent(r.TWEEN_PAUSE,"onPause")),this},resume:function(){return this.paused&&(this.paused=!1,this.dispatchEvent(r.TWEEN_RESUME,"onResume")),this},makeActive:function(){this.parent.makeActive(this),this.dispatchEvent(r.TWEEN_ACTIVE,"onActive")},onCompleteHandler:function(){this.setPendingRemoveState(),this.dispatchEvent(r.TWEEN_COMPLETE,"onComplete")},complete:function(t){return(t=void 0===t?0:t)?(this.setCompleteDelayState(),this.countdown=t):this.onCompleteHandler(),this},completeAfterLoop:function(t){return this.loopCounter>(t=void 0===t?0:t)&&(this.loopCounter=t),this},remove:function(){return this.parent.remove(this),this},stop:function(){return this.isRemoved()||this.isPendingRemove()||this.isDestroyed()||(this.dispatchEvent(r.TWEEN_STOP,"onStop"),this.setPendingRemoveState()),this},updateLoopCountdown:function(t){this.countdown-=t,this.countdown<=0&&(this.setActiveState(),this.dispatchEvent(r.TWEEN_LOOP,"onLoop"))},updateStartCountdown:function(t){return this.countdown-=t,this.countdown<=0&&(this.hasStarted=!0,this.setActiveState(),this.dispatchEvent(r.TWEEN_START,"onStart"),t=0),t},updateCompleteDelay:function(t){this.countdown-=t,this.countdown<=0&&this.onCompleteHandler()},setCallback:function(t,e,i){return void 0===i&&(i=[]),this.callbacks.hasOwnProperty(t)&&(this.callbacks[t]={func:e,params:i}),this},setPendingState:function(){this.state=o.PENDING},setActiveState:function(){this.state=o.ACTIVE},setLoopDelayState:function(){this.state=o.LOOP_DELAY},setCompleteDelayState:function(){this.state=o.COMPLETE_DELAY},setStartDelayState:function(){this.state=o.START_DELAY,this.countdown=this.startDelay,this.hasStarted=!1},setPendingRemoveState:function(){this.state=o.PENDING_REMOVE},setRemovedState:function(){this.state=o.REMOVED},setFinishedState:function(){this.state=o.FINISHED},setDestroyedState:function(){this.state=o.DESTROYED},isPending:function(){return this.state===o.PENDING},isActive:function(){return this.state===o.ACTIVE},isLoopDelayed:function(){return this.state===o.LOOP_DELAY},isCompleteDelayed:function(){return this.state===o.COMPLETE_DELAY},isStartDelayed:function(){return this.state===o.START_DELAY},isPendingRemove:function(){return this.state===o.PENDING_REMOVE},isRemoved:function(){return this.state===o.REMOVED},isFinished:function(){return this.state===o.FINISHED},isDestroyed:function(){return this.state===o.DESTROYED},destroy:function(){this.data&&this.data.forEach(function(t){t.destroy()}),this.removeAllListeners(),this.callbacks=null,this.data=null,this.parent=null,this.setDestroyedState()}});i.TYPES=["onActive","onComplete","onLoop","onPause","onRepeat","onResume","onStart","onStop","onUpdate","onYoyo"],t.exports=i},65521:(t,e,i)=>{var s=i(56694),l=i(54272),r=i(55303),i=new s({initialize:function(t,e,i,s,n,r,o,a,h,l){this.tween=t,this.targetIndex=e,this.duration=s,this.totalDuration=0,this.delay=0,this.getDelay=i,this.yoyo=n,this.hold=r,this.repeat=o,this.repeatDelay=a,this.repeatCounter=0,this.flipX=h,this.flipY=l,this.progress=0,this.elapsed=0,this.state=0,this.isCountdown=!1},getTarget:function(){return this.tween.targets[this.targetIndex]},setTargetValue:function(t){void 0===t&&(t=this.current),this.tween.targets[this.targetIndex][this.key]=t},setCreatedState:function(){this.state=r.CREATED,this.isCountdown=!1},setDelayState:function(){this.state=r.DELAY,this.isCountdown=!0},setPendingRenderState:function(){this.state=r.PENDING_RENDER,this.isCountdown=!1},setPlayingForwardState:function(){this.state=r.PLAYING_FORWARD,this.isCountdown=!1},setPlayingBackwardState:function(){this.state=r.PLAYING_BACKWARD,this.isCountdown=!1},setHoldState:function(){this.state=r.HOLD_DELAY,this.isCountdown=!0},setRepeatState:function(){this.state=r.REPEAT_DELAY,this.isCountdown=!0},setCompleteState:function(){this.state=r.COMPLETE,this.isCountdown=!1},isCreated:function(){return this.state===r.CREATED},isDelayed:function(){return this.state===r.DELAY},isPendingRender:function(){return this.state===r.PENDING_RENDER},isPlayingForward:function(){return this.state===r.PLAYING_FORWARD},isPlayingBackward:function(){return this.state===r.PLAYING_BACKWARD},isHolding:function(){return this.state===r.HOLD_DELAY},isRepeating:function(){return this.state===r.REPEAT_DELAY},isComplete:function(){return this.state===r.COMPLETE},setStateFromEnd:function(t){this.yoyo?this.onRepeat(t,!0,!0):0t.duration&&(t.duration=this.totalDuration),this.delay{t.exports={targets:null,delay:0,duration:1e3,ease:"Power0",easeParams:null,hold:0,repeat:0,repeatDelay:0,yoyo:!1,flipX:!1,flipY:!1,persist:!1,interpolation:null}},53709:t=>{t.exports=["callbackScope","completeDelay","delay","duration","ease","easeParams","flipX","flipY","hold","interpolation","loop","loopDelay","onActive","onActiveParams","onComplete","onCompleteParams","onLoop","onLoopParams","onPause","onPauseParams","onRepeat","onRepeatParams","onResume","onResumeParams","onStart","onStartParams","onStop","onStopParams","onUpdate","onUpdateParams","onYoyo","onYoyoParams","paused","persist","props","repeat","repeatDelay","targets","yoyo"]},39366:(t,e,i)=>{var s=i(502),n=i(56694),r=i(54272),o=i(99325),a=i(61286),h=i(83392),l=i(55303),y=i(15718),u=i(96490),i=new n({Extends:s,initialize:function(t,e){s.call(this,t),this.targets=e,this.totalTargets=e.length,this.isSeeking=!1,this.isInfinite=!1,this.elapsed=0,this.totalElapsed=0,this.duration=0,this.progress=0,this.totalDuration=0,this.totalProgress=0},add:function(t,e,i,s,n,r,o,a,h,l,u,c,d,p,f,g){t=new y(this,t,e,i,s,n,r,o,a,h,l,u,c,d,p,f,g);return this.totalData=this.data.push(t),t},addFrame:function(t,e,i,s,n,r,o,a,h,l){t=new u(this,t,e,i,s,n,r,o,a,h,l);return this.totalData=this.data.push(t),t},getValue:function(t){void 0===t&&(t=0);var e=null;return e=this.data?this.data[t].current:e},hasTarget:function(t){return this.targets&&-1!==this.targets.indexOf(t)},updateTo:function(t,e,i){if(void 0===i&&(i=!1),"texture"!==t)for(var s=0;s{var s=i(66458),n=i(502),r=i(56694),o=i(54272),a=i(99325),h=i(61286),l=i(55303),i=new r({Extends:n,initialize:function(t){n.call(this,t),this.currentTween=null,this.currentIndex=0},init:function(){return this.loopCounter=-1===this.loop?l.MAX:this.loop,this.setCurrentTween(0),0{var v=i(65521),a=i(82897),s=i(56694),h=i(54272),i=new s({Extends:v,initialize:function(t,e,i,s,n,r,o,a,h,l,u,c,d,p,f,g,y){v.call(this,t,e,a,h,l,u,c,d,p,f),this.key=i,this.getActiveValue=r,this.getEndValue=s,this.getStartValue=n,this.ease=o,this.start=0,this.previous=0,this.current=0,this.end=0,this.interpolation=g,this.interpolationData=y},reset:function(t){v.prototype.reset.call(this);var e=this.tween.targets[this.targetIndex],i=this.key;t&&(e[i]=this.start),this.start=0,this.previous=0,this.current=0,this.end=0,this.getActiveValue&&(e[i]=this.getActiveValue(e,i,0))},update:function(t){var e,i=this.tween,s=i.totalTargets,n=this.targetIndex,r=i.targets[n],o=this.key;return r?(this.isCountdown&&(this.elapsed-=t,this.elapsed<=0)&&(t=this.elapsed=0,this.isDelayed()?this.setPendingRenderState():this.isRepeating()?(this.setPlayingForwardState(),this.dispatchEvent(h.TWEEN_REPEAT,"onRepeat")):this.isHolding()&&this.setStateFromEnd(0)),this.isPendingRender()?(this.start=this.getStartValue(r,o,r[o],n,s,i),this.end=this.getEndValue(r,o,this.start,n,s,i),this.current=this.start,r[o]=this.start,this.setPlayingForwardState(),!0):(n=this.isPlayingForward(),s=this.isPlayingBackward(),(n||s)&&(i=this.elapsed,s=0,e=!1,(i+=t)>=(t=this.duration)?(s=i-t,i=t,e=!0):i<0&&(i=0),t=a(i/t,0,1),this.elapsed=i,this.progress=t,this.previous=this.current,e?n?(this.current=this.end,r[o]=this.end,0{var c=i(65521),o=i(82897),s=i(56694),a=i(54272),i=new s({Extends:c,initialize:function(t,e,i,s,n,r,o,a,h,l,u){c.call(this,t,e,n,r,!1,o,a,h,l,u),this.key="texture",this.startTexture=null,this.endTexture=i,this.startFrame=null,this.endFrame=s,this.yoyo=0!==a},reset:function(t){c.prototype.reset.call(this);var e=this.tween.targets[this.targetIndex];this.startTexture||(this.startTexture=e.texture.key,this.startFrame=e.frame.name),t&&e.setTexture(this.startTexture,this.startFrame)},update:function(t){var e,i,s,n=this.tween,r=this.targetIndex,n=n.targets[r];return n?(this.isCountdown&&(this.elapsed-=t,this.elapsed<=0)&&(t=this.elapsed=0,this.isDelayed()?this.setPendingRenderState():this.isRepeating()?(this.setPlayingForwardState(),this.dispatchEvent(a.TWEEN_REPEAT,"onRepeat")):this.isHolding()&&this.setStateFromEnd(0)),this.isPendingRender()?(this.startTexture&&n.setTexture(this.startTexture,this.startFrame),this.setPlayingForwardState(),!0):(r=this.isPlayingForward(),e=this.isPlayingBackward(),(r||e)&&(e=this.elapsed,i=0,s=!1,(e+=t)>=(t=this.duration)?(i=e-t,e=t,s=!0):e<0&&(e=0),t=o(e/t,0,1),this.elapsed=e,this.progress=t,s&&(r?(n.setTexture(this.endTexture,this.endFrame),0{t.exports={CREATED:0,DELAY:2,PENDING_RENDER:4,PLAYING_FORWARD:5,PLAYING_BACKWARD:6,HOLD_DELAY:7,REPEAT_DELAY:8,COMPLETE:9,PENDING:20,ACTIVE:21,LOOP_DELAY:22,COMPLETE_DELAY:23,START_DELAY:24,PENDING_REMOVE:25,REMOVED:26,FINISHED:27,DESTROYED:28,MAX:999999999999}},56694:t=>{function r(t,e,i,s){for(var n in e)if(e.hasOwnProperty(n)){r=e,o=n,r=(a=i)?r[o]:Object.getOwnPropertyDescriptor(r,o);a=!!((r=!a&&r.value&&"object"==typeof r.value?r.value:r)&&((o=r).get&&"function"==typeof o.get||o.set&&"function"==typeof o.set))&&(void 0===r.enumerable&&(r.enumerable=!0),void 0===r.configurable&&(r.configurable=!0),r);if(!1!==a){if(o=(s||t).prototype,r=n,(o=Object.getOwnPropertyDescriptor(o,r))&&!1===(o=o.value&&"object"==typeof o.value?o.value:o).configurable){if(h.ignoreFinals)continue;throw new Error("cannot override final property '"+n+"', set Class.ignoreFinals = true to skip")}Object.defineProperty(t.prototype,n,a)}else t.prototype[n]=e[n]}var r,o,a}function o(t,e){if(e){Array.isArray(e)||(e=[e]);for(var i=0;i{t.exports=function(){}},10618:t=>{t.exports=function(){return null}},78991:t=>{t.exports=function(t,e,i,s,n){if(void 0===n&&(n=t),0{t.exports=function(t,e,i,s,n,r){if(void 0===i&&(i=0),void 0===r&&(r=t),0{t.exports=function(t,e){var i=t.indexOf(e);return-1!==i&&i{var a=i(45838);t.exports=function(t,e,i,s,n){void 0===n&&(n=t.length);var r=0;if(a(t,s=void 0===s?0:s,n))for(var o=s;o{t.exports=function(t,e,i){for(var s=[null],n=3;n{var a=i(45838);t.exports=function(t,e,i,s,n){if(void 0===n&&(n=t.length),a(t,s=void 0===s?0:s,n)){for(var r=[null],o=5;o{t.exports=function(t,e,i){if(!e.length)return NaN;if(1===e.length)return e[0];var s,n,r=1;if(i){if(te.length&&(r=e.length),i?(s=e[r-1][i],(n=e[r][i])-t<=t-s?e[r]:e[r-1]):(s=e[r-1],(n=e[r])-t<=t-s?n:s)}},5454:t=>{function s(t,e){void 0===e&&(e=[]);for(var i=0;i{var h=i(45838);t.exports=function(t,e,i,s,n){void 0===n&&(n=t.length);var r=[];if(h(t,s=void 0===s?0:s,n))for(var o=s;o{var a=i(45838);t.exports=function(t,e,i,s,n){if(void 0===n&&(n=t.length),a(t,s=void 0===s?0:s,n))for(var r=s;r{t.exports=function(t,e,i){void 0===i&&(i=t.length);e=(e=void 0===e?0:e)+Math.floor(Math.random()*i);return void 0===t[e]?null:t[e]}},24218:t=>{t.exports=function(t,e,i){if(e!==i){var s=t.indexOf(e),i=t.indexOf(i);if(s<0||i<0)throw new Error("Supplied items must be elements of the same array");i{t.exports=function(t,e,i){if(e!==i){var s=t.indexOf(e),i=t.indexOf(i);if(s<0||i<0)throw new Error("Supplied items must be elements of the same array");s{t.exports=function(t,e){var i,s,n=t.indexOf(e);return 0{t.exports=function(t,e,i){var s=t.indexOf(e);if(-1===s||i<0||i>=t.length)throw new Error("Supplied index out of bounds");return s!==i&&(t.splice(s,1),t.splice(i,0,e)),e}},27555:t=>{t.exports=function(t,e){var i,s,n=t.indexOf(e);return-1!==n&&n{t.exports=function(t,e,i,s){var n,r=[],o=!1;if((i||s)&&(o=!0,i=i||"",s=s||""),e{var o=i(67233);t.exports=function(t,e,i){void 0===t&&(t=0),void 0===i&&(i=1),null===(e=void 0===e?null:e)&&(e=t,t=0);for(var s=[],n=Math.max(o((e-t)/(i||1)),0),r=0;r{function p(t,e,i){var s=t[e];t[e]=t[i],t[i]=s}function f(t,e){return t{var d=i(10850),p=i(18592);t.exports=function(t,e,i){var s=d(i,"max",0),n=d(i,"qty",1),r=d(i,"random",!1),o=d(i,"randomB",!1),a=d(i,"repeat",0),h=d(i,"yoyo",!1),l=[];o&&p(e),-1===a&&(a=0===s?0:(i=t.length*e.length*n,h&&(i*=2),Math.ceil(s/i)));for(var u=0;u<=a;u++){var c=function(t,e,i){for(var s=[],n=0;n{var h=i(72677);t.exports=function(t,e,i,s){var n;if(void 0===s&&(s=t),!Array.isArray(e))return-1!==(n=t.indexOf(e))?(h(t,n),i&&i.call(s,e),e):null;for(var r=e.length-1,o=[];0<=r;){var a=e[r];-1!==(n=t.indexOf(a))&&(h(t,n),o.push(a),i)&&i.call(s,a),r--}return o}},8324:(t,e,i)=>{var n=i(72677);t.exports=function(t,e,i,s){if(void 0===s&&(s=t),e<0||e>t.length-1)throw new Error("Index out of bounds");t=n(t,e);return i&&i.call(s,t),t}},47427:(t,e,i)=>{var h=i(45838);t.exports=function(t,e,i,s,n){if(void 0===i&&(i=t.length),void 0===n&&(n=t),h(t,e=void 0===e?0:e,i)){var r=t.splice(e,i-e);if(s)for(var o=0;o{var s=i(72677);t.exports=function(t,e,i){void 0===i&&(i=t.length);e=(e=void 0===e?0:e)+Math.floor(Math.random()*i);return s(t,e)}},80402:t=>{t.exports=function(t,e,i){var e=t.indexOf(e),s=t.indexOf(i);return-1!==e&&-1===s&&(t[e]=i,!0)}},77640:t=>{t.exports=function(t,e){void 0===e&&(e=1);for(var i=null,s=0;s{t.exports=function(t,e){void 0===e&&(e=1);for(var i=null,s=0;s{t.exports=function(t,e,i,s){t=t.length;if(e<0||t{t.exports=function(t,e){var i=t.indexOf(e);return-1!==i&&0{var a=i(45838);t.exports=function(t,e,i,s,n){if(void 0===n&&(n=t.length),a(t,s=void 0===s?0:s,n))for(var r=s;r{t.exports=function(t){for(var e=t.length-1;0{t.exports=function(t){var i=/\D/g;return t.sort(function(t,e){return parseInt(t.replace(i,""),10)-parseInt(e.replace(i,""),10)}),t}},72677:t=>{t.exports=function(t,e){if(!(e>=t.length)){for(var i=t.length-1,s=t[e],n=e;n{var s=i(77290);function n(t,e){return String(t).localeCompare(e)}function o(t,e,i,s){for(var n,r,o,a,h=t.length,l=0,u=2*i,c=0;c{t.exports=function(t,e,i){if(e!==i){var s=t.indexOf(e),n=t.indexOf(i);if(s<0||n<0)throw new Error("Supplied items must be elements of the same array");t[s]=i,t[n]=e}return t}},59959:(t,e,i)=>{t.exports={Matrix:i(13515),Add:i(78991),AddAt:i(48522),BringToTop:i(58742),CountAllMatching:i(30164),Each:i(36337),EachInRange:i(46208),FindClosestInSorted:i(2406),Flatten:i(5454),GetAll:i(71608),GetFirst:i(51463),GetRandom:i(72861),MoveDown:i(51172),MoveTo:i(68396),MoveUp:i(27555),MoveAbove:i(24218),MoveBelow:i(58258),NumberArray:i(13401),NumberArrayStep:i(89955),QuickSelect:i(53466),Range:i(75757),Remove:i(66458),RemoveAt:i(8324),RemoveBetween:i(47427),RemoveRandomElement:i(50147),Replace:i(80402),RotateLeft:i(77640),RotateRight:i(38487),SafeRange:i(45838),SendToBack:i(27847),SetAll:i(6034),Shuffle:i(18592),SortByDigits:i(28834),SpliceOne:i(72677),StableSort:i(17922),Swap:i(96928)}},97494:t=>{t.exports=function(t){if(!Array.isArray(t)||!Array.isArray(t[0]))return!1;for(var e=t[0].length,i=1;i{var o=i(76400),a=i(97494);t.exports=function(t){var e="";if(a(t))for(var i=0;i{t.exports=function(t){return t.reverse()}},51995:t=>{t.exports=function(t){for(var e=0;e{var s=i(63515);t.exports=function(t){return s(t,180)}},42549:(t,e,i)=>{var s=i(63515);t.exports=function(t){return s(t,90)}},63515:(t,e,i)=>{var s=i(97494),n=i(78581);t.exports=function(t,e){if(void 0===e&&(e=90),!s(t))return null;if(90===(e="string"!=typeof e?(e%360+360)%360:e)||-270===e||"rotateLeft"===e)(t=n(t)).reverse();else if(-90===e||270===e||"rotateRight"===e)t.reverse(),t=n(t);else if(180===Math.abs(e)||"rotate180"===e){for(var i=0;i{var s=i(63515);t.exports=function(t){return s(t,-90)}},27365:(t,e,i)=>{var r=i(77640),o=i(38487);t.exports=function(t,e,i){if(void 0===e&&(e=0),0!==(i=void 0===i?0:i)&&(i<0?r(t,Math.abs(i)):o(t,i)),0!==e)for(var s=0;s{t.exports=function(t){for(var e=t.length,i=t[0].length,s=new Array(i),n=0;n{t.exports={CheckMatrix:i(97494),MatrixToString:i(68428),ReverseColumns:i(59521),ReverseRows:i(51995),Rotate180:i(89011),RotateLeft:i(42549),RotateMatrix:i(63515),RotateRight:i(14305),Translate:i(27365),TransposeMatrix:i(78581)}},40581:t=>{var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";t.exports=function(t,e){for(var i=new Uint8Array(t),s=i.length,n=e?"data:"+e+";base64,":"",r=0;r>2])+o[(3&i[r])<<4|i[r+1]>>4])+o[(15&i[r+1])<<2|i[r+2]>>6])+o[63&i[r+2]];return s%3==2?n=n.substring(0,n.length-1)+"=":s%3==1&&(n=n.substring(0,n.length-2)+"=="),n}},82329:t=>{for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=new Uint8Array(256),i=0;i>4,h[a++]=(15&i)<<4|s>>2,h[a++]=(3&s)<<6|63&n;return o}},78417:(t,e,i)=>{t.exports={ArrayBufferToBase64:i(40581),Base64ToArrayBuffer:i(82329)}},22178:(t,e,i)=>{t.exports={Array:i(59959),Base64:i(78417),Objects:i(64615),String:i(50379),NOOP:i(72283),NULL:i(10618)}},32742:t=>{t.exports=function(t){var e,i={};for(e in t)Array.isArray(t[e])?i[e]=t[e].slice(0):i[e]=t[e];return i}},28699:t=>{function n(t){var e,i,s;if("object"!=typeof t||null===t)return t;for(s in e=Array.isArray(t)?[]:{},t)i=t[s],e[s]=n(i);return e}t.exports=n},98611:(t,e,i)=>{function l(){var t,e,i,s,n,r=arguments[0]||{},o=1,a=arguments.length,h=!1;for("boolean"==typeof r&&(h=r,r=arguments[1]||{},o=2),a===o&&(r=this,--o);o{var s=i(5923),n=i(10850);t.exports=function(t,e,i){t=n(t,e,null);if(null===t)return i;if(Array.isArray(t))return s.RND.pick(t);if("object"==typeof t){if(t.hasOwnProperty("randInt"))return s.RND.integerInRange(t.randInt[0],t.randInt[1]);if(t.hasOwnProperty("randFloat"))return s.RND.realInRange(t.randFloat[0],t.randFloat[1])}else if("function"==typeof t)return t(e);return t}},72632:t=>{t.exports=function(t,e,i){var s=typeof t;return t&&"number"!=s&&"string"!=s&&t.hasOwnProperty(e)&&void 0!==t[e]?t[e]:i}},94324:(t,e,i)=>{var r=i(10850),o=i(82897);t.exports=function(t,e,i,s,n){t=r(t,e,n=void 0===n?i:n);return o(t,i,s)}},10850:t=>{t.exports=function(t,e,i,s){if(!t&&!s||"number"==typeof t)return i;if(t&&t.hasOwnProperty(e))return t[e];if(s&&s.hasOwnProperty(e))return s[e];if(-1===e.indexOf("."))return i;for(var n=e.split("."),r=t,o=s,a=i,h=i,l=!0,u=!0,c=0;c{t.exports=function(t,e){for(var i=0;i{t.exports=function(t,e){for(var i=0;i{t.exports=function(t,e){return t.hasOwnProperty(e)}},42911:t=>{t.exports=function(t){if(!t||"object"!=typeof t||t.nodeType||t===t.window)return!1;try{if(t.constructor&&!{}.hasOwnProperty.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}return!0}},30657:(t,e,i)=>{var n=i(32742);t.exports=function(t,e){var i,s=n(t);for(i in e)s.hasOwnProperty(i)||(s[i]=e[i]);return s}},72066:(t,e,i)=>{var n=i(32742);t.exports=function(t,e){var i,s=n(t);for(i in e)s.hasOwnProperty(i)&&(s[i]=e[i]);return s}},28820:(t,e,i)=>{var r=i(19256);t.exports=function(t,e){for(var i={},s=0;s{t.exports=function(t,e,i){if(!t||"number"==typeof t)return!1;if(t.hasOwnProperty(e))t[e]=i;else{if(-1===e.indexOf("."))return!1;for(var s=e.split("."),n=t,r=t,o=0;o{t.exports={Clone:i(32742),DeepCopy:i(28699),Extend:i(98611),GetAdvancedValue:i(20494),GetFastValue:i(72632),GetMinMaxValue:i(94324),GetValue:i(10850),HasAll:i(87701),HasAny:i(53523),HasValue:i(19256),IsPlainObject:i(42911),Merge:i(30657),MergeRight:i(72066),Pick:i(28820),SetValue:i(22440)}},69429:t=>{t.exports=function(t,i){return t.replace(/%([0-9]+)/g,function(t,e){return i[Number(e)-1]})}},76400:t=>{t.exports=function(t,e,i,s){void 0===i&&(i=" "),void 0===s&&(s=3);var n;if((e=void 0===e?0:e)+1>=(t=t.toString()).length)switch(s){case 1:t=new Array(e+1-t.length).join(i)+t;break;case 3:var r=Math.ceil((n=e-t.length)/2);t=new Array(n-r+1).join(i)+t+new Array(r+1).join(i);break;default:t+=new Array(e+1-t.length).join(i)}return t}},76872:t=>{t.exports=function(t,e){return 0===e?t.slice(1):t.slice(0,e-1)+t.slice(e)}},8051:t=>{t.exports=function(t){return t.split("").reverse().join("")}},76583:t=>{t.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})}},40587:t=>{t.exports=function(t){return t&&t[0].toUpperCase()+t.slice(1)}},50379:(t,e,i)=>{t.exports={Format:i(69429),Pad:i(76400),RemoveAt:i(76872),Reverse:i(8051),UppercaseFirst:i(40587),UUID:i(76583)}}},n={},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i(92491);function i(t){var e=n[t];return void 0!==e||(e=n[t]={exports:{}},s[t](e,e.exports,i)),e.exports}var s,n}),(()=>{var s={4399:t=>{"use strict";var s=Object.prototype.hasOwnProperty,p="~";function i(){}function r(t,e,i){this.fn=t,this.context=e,this.once=i||!1}function n(t,e,i,s,n){if("function"!=typeof i)throw new TypeError("The listener must be a function");i=new r(i,s||t,n),s=p?p+e:e;return t._events[s]?t._events[s].fn?t._events[s]=[t._events[s],i]:t._events[s].push(i):(t._events[s]=i,t._eventsCount++),t}function h(t,e){0==--t._eventsCount?t._events=new i:delete t._events[e]}function e(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(p=!1)),e.prototype.eventNames=function(){var t,e,i=[];if(0===this._eventsCount)return i;for(e in t=this._events)s.call(t,e)&&i.push(p?e.slice(1):e);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},e.prototype.listeners=function(t){var t=p?p+t:t,e=this._events[t];if(!e)return[];if(e.fn)return[e.fn];for(var i=0,s=e.length,n=new Array(s);i{!function(){var P,O,t,R,D,L,k,F,I,i,U,z,G,B,Y,V,j,q,J,Z,Q,$,l,et,it,st,nt,rt,ot,C,at,ht,lt,ut,ct,dt,pt,ft,gt,yt,vt,mt,xt,wt,Tt,bt,St,Pt,_t,Et,At,_,Ct,Mt,Ot,tt,Rt,Dt,Lt,m,kt,Ft,K,It,Bt,Nt,Xt,E,Ut,zt,e=this&&this.__extends||(P=function(t,e){return(P=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}P(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),N=t=t||{};Wt.prototype.hasTimeline=function(t){return 1==this.timelineIds[t]},Wt.prototype.apply=function(t,e,i,s,n,r,o,a){if(null==t)throw new Error("skeleton cannot be null.");s&&0!=this.duration&&(i%=this.duration,0>>1;;){if(t[(r+1)*i]<=e?s=r+1:n=r,s==n)return(s+1)*i;r=s+n>>>1}},Wt.linearSearch=function(t,e,i){for(var s=0,n=t.length-i;s<=n;s+=i)if(t[s]>e)return s;return-1};var X,Yt,Vt,Gt=Wt;function Wt(t,e,i){if(null==t)throw new Error("name cannot be null.");if(null==e)throw new Error("timelines cannot be null.");this.name=t,this.timelines=e,this.timelineIds=[];for(var s=0;s=e)return r=n=void 0,(r=s==a?n=0:(n=i[s-2],i[s-1]))+(i[s+1]-r)*(e-n)/(o-n);t=i[s-1];return t+(1-t)*(e-o)/(1-o)},x.LINEAR=0,x.STEPPED=1,x.BEZIER=2,x.BEZIER_SIZE=19;var s=x;function x(t){if(t<=0)throw new Error("frameCount must be > 0: "+t);this.curves=N.Utils.newFloatArray((t-1)*x.BEZIER_SIZE)}N.CurveTimeline=s,e(jt,Ht=s),jt.prototype.getPropertyId=function(){return(Vt.rotate<<24)+this.boneIndex},jt.prototype.setFrame=function(t,e,i){this.frames[t<<=1]=e,this.frames[t+jt.ROTATION]=i},jt.prototype.apply=function(t,e,i,s,n,r,o){var a=this.frames,h=t.bones[this.boneIndex];if(h.active)if(i=a[a.length-jt.ENTRIES]){var u=a[a.length+jt.PREV_ROTATION];switch(r){case X.setup:h.rotation=h.data.rotation+u*n;break;case X.first:case X.replace:u=(u+=h.data.rotation-h.rotation)-360*(16384-(16384.499999999996-u/360|0));case X.add:h.rotation+=u*n}}else{var t=Gt.binarySearch(a,i,jt.ENTRIES),c=a[t+jt.PREV_ROTATION],d=a[t],i=this.getCurvePercent((t>>1)-1,1-(i-d)/(a[t+jt.PREV_TIME]-d)),p=c+((p=a[t+jt.ROTATION]-c)-360*(16384-(16384.499999999996-p/360|0)))*i;switch(r){case X.setup:h.rotation=h.data.rotation+(p-360*(16384-(16384.499999999996-p/360|0)))*n;break;case X.first:case X.replace:p+=h.data.rotation-h.rotation;case X.add:h.rotation+=(p-360*(16384-(16384.499999999996-p/360|0)))*n}}},jt.ENTRIES=2,jt.PREV_TIME=-2,jt.PREV_ROTATION=-1,jt.ROTATION=1;var Ht,n=jt;function jt(t){var e=Ht.call(this,t)||this;return e.frames=N.Utils.newFloatArray(t<<1),e}N.RotateTimeline=jt,e(d,Kt=s),d.prototype.getPropertyId=function(){return(Vt.translate<<24)+this.boneIndex},d.prototype.setFrame=function(t,e,i,s){this.frames[t*=d.ENTRIES]=e,this.frames[t+d.X]=i,this.frames[t+d.Y]=s},d.prototype.apply=function(t,e,i,s,n,r,o){var a=this.frames,h=t.bones[this.boneIndex];if(h.active)if(i=a[a.length-d.ENTRIES]?(u=a[a.length+d.PREV_X],c=a[a.length+d.PREV_Y]):(u=a[(t=Gt.binarySearch(a,i,d.ENTRIES))+d.PREV_X],c=a[t+d.PREV_Y],l=a[t],i=this.getCurvePercent(t/d.ENTRIES-1,1-(i-l)/(a[t+d.PREV_TIME]-l)),u+=(a[t+d.X]-u)*i,c+=(a[t+d.Y]-c)*i),r){case X.setup:h.x=h.data.x+u*n,h.y=h.data.y+c*n;break;case X.first:case X.replace:h.x+=(h.data.x+u-h.x)*n,h.y+=(h.data.y+c-h.y)*n;break;case X.add:h.x+=u*n,h.y+=c*n}}},d.ENTRIES=3,d.PREV_TIME=-3,d.PREV_X=-2,d.PREV_Y=-1,d.X=1,d.Y=2;var Kt,n=d;function d(t){var e=Kt.call(this,t)||this;return e.frames=N.Utils.newFloatArray(t*d.ENTRIES),e}N.TranslateTimeline=n,e(Jt,qt=n),Jt.prototype.getPropertyId=function(){return(Vt.scale<<24)+this.boneIndex},Jt.prototype.apply=function(t,e,i,s,n,r,o){var a=this.frames,h=t.bones[this.boneIndex];if(h.active)if(i=a[a.length-Jt.ENTRIES]?(u=a[a.length+Jt.PREV_X]*h.data.scaleX,a[a.length+Jt.PREV_Y]*h.data.scaleY):(u=a[(t=Gt.binarySearch(a,i,Jt.ENTRIES))+Jt.PREV_X],c=a[t+Jt.PREV_Y],l=a[t],i=this.getCurvePercent(t/Jt.ENTRIES-1,1-(i-l)/(a[t+Jt.PREV_TIME]-l)),u=(u+(a[t+Jt.X]-u)*i)*h.data.scaleX,(c+(a[t+Jt.Y]-c)*i)*h.data.scaleY),1==n)r==X.add?(h.scaleX+=u-h.data.scaleX,h.scaleY+=c-h.data.scaleY):(h.scaleX=u,h.scaleY=c);else{var d=0,p=0;if(o==Yt.mixOut)switch(r){case X.setup:d=h.data.scaleX,p=h.data.scaleY,h.scaleX=d+(Math.abs(u)*N.MathUtils.signum(d)-d)*n,h.scaleY=p+(Math.abs(c)*N.MathUtils.signum(p)-p)*n;break;case X.first:case X.replace:d=h.scaleX,p=h.scaleY,h.scaleX=d+(Math.abs(u)*N.MathUtils.signum(d)-d)*n,h.scaleY=p+(Math.abs(c)*N.MathUtils.signum(p)-p)*n;break;case X.add:d=h.scaleX,p=h.scaleY,h.scaleX=d+(Math.abs(u)*N.MathUtils.signum(d)-h.data.scaleX)*n,h.scaleY=p+(Math.abs(c)*N.MathUtils.signum(p)-h.data.scaleY)*n}else switch(r){case X.setup:d=Math.abs(h.data.scaleX)*N.MathUtils.signum(u),p=Math.abs(h.data.scaleY)*N.MathUtils.signum(c),h.scaleX=d+(u-d)*n,h.scaleY=p+(c-p)*n;break;case X.first:case X.replace:d=Math.abs(h.scaleX)*N.MathUtils.signum(u),p=Math.abs(h.scaleY)*N.MathUtils.signum(c),h.scaleX=d+(u-d)*n,h.scaleY=p+(c-p)*n;break;case X.add:d=N.MathUtils.signum(u),p=N.MathUtils.signum(c),h.scaleX=Math.abs(h.scaleX)*d+(u-Math.abs(h.data.scaleX)*d)*n,h.scaleY=Math.abs(h.scaleY)*p+(c-Math.abs(h.data.scaleY)*p)*n}}}};var qt,r=Jt;function Jt(t){return qt.call(this,t)||this}N.ScaleTimeline=Jt,e(Qt,Zt=n),Qt.prototype.getPropertyId=function(){return(Vt.shear<<24)+this.boneIndex},Qt.prototype.apply=function(t,e,i,s,n,r,o){var a=this.frames,h=t.bones[this.boneIndex];if(h.active)if(i=a[a.length-Qt.ENTRIES]?(u=a[a.length+Qt.PREV_X],c=a[a.length+Qt.PREV_Y]):(u=a[(t=Gt.binarySearch(a,i,Qt.ENTRIES))+Qt.PREV_X],c=a[t+Qt.PREV_Y],l=a[t],i=this.getCurvePercent(t/Qt.ENTRIES-1,1-(i-l)/(a[t+Qt.PREV_TIME]-l)),u+=(a[t+Qt.X]-u)*i,c+=(a[t+Qt.Y]-c)*i),r){case X.setup:h.shearX=h.data.shearX+u*n,h.shearY=h.data.shearY+c*n;break;case X.first:case X.replace:h.shearX+=(h.data.shearX+u-h.shearX)*n,h.shearY+=(h.data.shearY+c-h.shearY)*n;break;case X.add:h.shearX+=u*n,h.shearY+=c*n}}};var Zt,r=Qt;function Qt(t){return Zt.call(this,t)||this}N.ShearTimeline=Qt,e(y,$t=s),y.prototype.getPropertyId=function(){return(Vt.color<<24)+this.slotIndex},y.prototype.setFrame=function(t,e,i,s,n,r){this.frames[t*=y.ENTRIES]=e,this.frames[t+y.R]=i,this.frames[t+y.G]=s,this.frames[t+y.B]=n,this.frames[t+y.A]=r},y.prototype.apply=function(t,e,i,s,n,r,o){var a=t.slots[this.slotIndex];if(a.bone.active){t=this.frames;if(i=t[t.length-y.ENTRIES]?(d=t[(u=t.length)+y.PREV_R],p=t[u+y.PREV_G],f=t[u+y.PREV_B],g=t[u+y.PREV_A]):(d=t[(u=Gt.binarySearch(t,i,y.ENTRIES))+y.PREV_R],p=t[u+y.PREV_G],f=t[u+y.PREV_B],g=t[u+y.PREV_A],c=t[u],i=this.getCurvePercent(u/y.ENTRIES-1,1-(i-c)/(t[u+y.PREV_TIME]-c)),d+=(t[u+y.R]-d)*i,p+=(t[u+y.G]-p)*i,f+=(t[u+y.B]-f)*i,g+=(t[u+y.A]-g)*i),1==n?a.color.set(d,p,f,g):(h=a.color,r==X.setup&&h.setFromColor(a.data.color),h.add((d-h.r)*n,(p-h.g)*n,(f-h.b)*n,(g-h.a)*n))}}},y.ENTRIES=5,y.PREV_TIME=-5,y.PREV_R=-4,y.PREV_G=-3,y.PREV_B=-2,y.PREV_A=-1,y.R=1,y.G=2,y.B=3,y.A=4;var $t,n=y;function y(t){var e=$t.call(this,t)||this;return e.frames=N.Utils.newFloatArray(t*y.ENTRIES),e}N.ColorTimeline=y,e(T,te=s),T.prototype.getPropertyId=function(){return(Vt.twoColor<<24)+this.slotIndex},T.prototype.setFrame=function(t,e,i,s,n,r,o,a,h){this.frames[t*=T.ENTRIES]=e,this.frames[t+T.R]=i,this.frames[t+T.G]=s,this.frames[t+T.B]=n,this.frames[t+T.A]=r,this.frames[t+T.R2]=o,this.frames[t+T.G2]=a,this.frames[t+T.B2]=h},T.prototype.apply=function(t,e,i,s,n,r,o){var a=t.slots[this.slotIndex];if(a.bone.active){t=this.frames;if(i=t[t.length-T.ENTRIES]?(f=t[(d=t.length)+T.PREV_R],g=t[d+T.PREV_G],y=t[d+T.PREV_B],v=t[d+T.PREV_A],m=t[d+T.PREV_R2],x=t[d+T.PREV_G2],w=t[d+T.PREV_B2]):(f=t[(d=Gt.binarySearch(t,i,T.ENTRIES))+T.PREV_R],g=t[d+T.PREV_G],y=t[d+T.PREV_B],v=t[d+T.PREV_A],m=t[d+T.PREV_R2],x=t[d+T.PREV_G2],w=t[d+T.PREV_B2],p=t[d],i=this.getCurvePercent(d/T.ENTRIES-1,1-(i-p)/(t[d+T.PREV_TIME]-p)),f+=(t[d+T.R]-f)*i,g+=(t[d+T.G]-g)*i,y+=(t[d+T.B]-y)*i,v+=(t[d+T.A]-v)*i,m+=(t[d+T.R2]-m)*i,x+=(t[d+T.G2]-x)*i,w+=(t[d+T.B2]-w)*i),1==n?(a.color.set(f,g,y,v),a.darkColor.set(m,x,w,1)):(h=a.color,l=a.darkColor,r==X.setup&&(h.setFromColor(a.data.color),l.setFromColor(a.data.darkColor)),h.add((f-h.r)*n,(g-h.g)*n,(y-h.b)*n,(v-h.a)*n),l.add((m-l.r)*n,(x-l.g)*n,(w-l.b)*n,0))}}},T.ENTRIES=8,T.PREV_TIME=-8,T.PREV_R=-7,T.PREV_G=-6,T.PREV_B=-5,T.PREV_A=-4,T.PREV_R2=-3,T.PREV_G2=-2,T.PREV_B2=-1,T.R=1,T.G=2,T.B=3,T.A=4,T.R2=5,T.G2=6,T.B2=7;var te,r=T;function T(t){var e=te.call(this,t)||this;return e.frames=N.Utils.newFloatArray(t*T.ENTRIES),e}function ee(t){this.frames=N.Utils.newFloatArray(t),this.attachmentNames=new Array(t)}N.TwoColorTimeline=T,ee.prototype.getPropertyId=function(){return(Vt.attachment<<24)+this.slotIndex},ee.prototype.getFrameCount=function(){return this.frames.length},ee.prototype.setFrame=function(t,e,i){this.frames[t]=e,this.attachmentNames[t]=i},ee.prototype.apply=function(t,e,i,s,n,r,o){var a,h=t.slots[this.slotIndex];h.bone.active&&(o!=Yt.mixOut?i<(o=this.frames)[0]?r!=X.setup&&r!=X.first||this.setAttachment(t,h,h.data.attachmentName):(a=0,a=i>=o[o.length-1]?o.length-1:Gt.binarySearch(o,i,1)-1,o=this.attachmentNames[a],t.slots[this.slotIndex].setAttachment(null==o?null:t.getAttachment(this.slotIndex,o))):r==X.setup&&this.setAttachment(t,h,h.data.attachmentName))},ee.prototype.setAttachment=function(t,e,i){e.setAttachment(null==i?null:t.getAttachment(this.slotIndex,i))},N.AttachmentTimeline=ee;var ie,se=null,n=(e(ne,ie=s),ne.prototype.getPropertyId=function(){return(Vt.deform<<27)+ +this.attachment.id+this.slotIndex},ne.prototype.setFrame=function(t,e,i){this.frames[t]=e,this.frameVertices[t]=i},ne.prototype.apply=function(t,F,e,I,i,s,B){t=t.slots[this.slotIndex];if(t.bone.active){var n=t.getAttachment();if(n instanceof N.VertexAttachment&&n.deformAttachment==this.attachment){var r=t.deform,t=(0==r.length&&(s=X.setup),this.frameVertices),o=t[0].length,a=this.frames;if(e=a[a.length-1]){var p=t[a.length-1];if(1==i)if(s==X.add)if(null==(h=n).bones)for(var u=h.vertices,f=0;f=a[h-1])return;if(!(i=a[l];l++)s.push(this.events[l])}}},N.EventTimeline=re,oe.prototype.getPropertyId=function(){return Vt.drawOrder<<24},oe.prototype.getFrameCount=function(){return this.frames.length},oe.prototype.setFrame=function(t,e,i){this.frames[t]=e,this.drawOrders[t]=i},oe.prototype.apply=function(t,e,i,s,n,r,o){var a=t.drawOrder,h=t.slots;if(o!=Yt.mixOut){o=this.frames;if(i=o[o.length-1]?o.length-1:Gt.binarySearch(o,i)-1,l=this.drawOrders[o];if(null==l)N.Utils.arrayCopy(h,0,a,0,h.length);else for(var u=0,c=l.length;u=u[u.length-p.ENTRIES]?r==X.setup?(c.mix=c.data.mix+(u[u.length+p.PREV_MIX]-c.data.mix)*n,c.softness=c.data.softness+(u[u.length+p.PREV_SOFTNESS]-c.data.softness)*n,o==Yt.mixOut?(c.bendDirection=c.data.bendDirection,c.compress=c.data.compress,c.stretch=c.data.stretch):(c.bendDirection=u[u.length+p.PREV_BEND_DIRECTION],c.compress=0!=u[u.length+p.PREV_COMPRESS],c.stretch=0!=u[u.length+p.PREV_STRETCH])):(c.mix+=(u[u.length+p.PREV_MIX]-c.mix)*n,c.softness+=(u[u.length+p.PREV_SOFTNESS]-c.softness)*n,o==Yt.mixIn&&(c.bendDirection=u[u.length+p.PREV_BEND_DIRECTION],c.compress=0!=u[u.length+p.PREV_COMPRESS],c.stretch=0!=u[u.length+p.PREV_STRETCH])):(a=u[(t=Gt.binarySearch(u,i,p.ENTRIES))+p.PREV_MIX],h=u[t+p.PREV_SOFTNESS],l=u[t],i=this.getCurvePercent(t/p.ENTRIES-1,1-(i-l)/(u[t+p.PREV_TIME]-l)),r==X.setup?(c.mix=c.data.mix+(a+(u[t+p.MIX]-a)*i-c.data.mix)*n,c.softness=c.data.softness+(h+(u[t+p.SOFTNESS]-h)*i-c.data.softness)*n,o==Yt.mixOut?(c.bendDirection=c.data.bendDirection,c.compress=c.data.compress,c.stretch=c.data.stretch):(c.bendDirection=u[t+p.PREV_BEND_DIRECTION],c.compress=0!=u[t+p.PREV_COMPRESS],c.stretch=0!=u[t+p.PREV_STRETCH])):(c.mix+=(a+(u[t+p.MIX]-a)*i-c.mix)*n,c.softness+=(h+(u[t+p.SOFTNESS]-h)*i-c.softness)*n,o==Yt.mixIn&&(c.bendDirection=u[t+p.PREV_BEND_DIRECTION],c.compress=0!=u[t+p.PREV_COMPRESS],c.stretch=0!=u[t+p.PREV_STRETCH])))},p.ENTRIES=6,p.PREV_TIME=-6,p.PREV_MIX=-5,p.PREV_SOFTNESS=-4,p.PREV_BEND_DIRECTION=-3,p.PREV_COMPRESS=-2,p.PREV_STRETCH=-1,p.MIX=1,p.SOFTNESS=2,p.BEND_DIRECTION=3,p.COMPRESS=4,p.STRETCH=5;var ae,r=p;function p(t){var e=ae.call(this,t)||this;return e.frames=N.Utils.newFloatArray(t*p.ENTRIES),e}N.IkConstraintTimeline=p,e(g,he=s),g.prototype.getPropertyId=function(){return(Vt.transformConstraint<<24)+this.transformConstraintIndex},g.prototype.setFrame=function(t,e,i,s,n,r){this.frames[t*=g.ENTRIES]=e,this.frames[t+g.ROTATE]=i,this.frames[t+g.TRANSLATE]=s,this.frames[t+g.SCALE]=n,this.frames[t+g.SHEAR]=r},g.prototype.apply=function(t,e,i,s,n,r,o){var a=this.frames,h=t.transformConstraints[this.transformConstraintIndex];if(h.active)if(i=a[a.length-g.ENTRIES]?(t=a[(u=a.length)+g.PREV_ROTATE],d=a[u+g.PREV_TRANSLATE],p=a[u+g.PREV_SCALE],f=a[u+g.PREV_SHEAR]):(t=a[(u=Gt.binarySearch(a,i,g.ENTRIES))+g.PREV_ROTATE],d=a[u+g.PREV_TRANSLATE],p=a[u+g.PREV_SCALE],f=a[u+g.PREV_SHEAR],c=a[u],i=this.getCurvePercent(u/g.ENTRIES-1,1-(i-c)/(a[u+g.PREV_TIME]-c)),t+=(a[u+g.ROTATE]-t)*i,d+=(a[u+g.TRANSLATE]-d)*i,p+=(a[u+g.SCALE]-p)*i,f+=(a[u+g.SHEAR]-f)*i),r==X.setup?(l=h.data,h.rotateMix=l.rotateMix+(t-l.rotateMix)*n,h.translateMix=l.translateMix+(d-l.translateMix)*n,h.scaleMix=l.scaleMix+(p-l.scaleMix)*n,h.shearMix=l.shearMix+(f-l.shearMix)*n):(h.rotateMix+=(t-h.rotateMix)*n,h.translateMix+=(d-h.translateMix)*n,h.scaleMix+=(p-h.scaleMix)*n,h.shearMix+=(f-h.shearMix)*n)}},g.ENTRIES=5,g.PREV_TIME=-5,g.PREV_ROTATE=-4,g.PREV_TRANSLATE=-3,g.PREV_SCALE=-2,g.PREV_SHEAR=-1,g.ROTATE=1,g.TRANSLATE=2,g.SCALE=3,g.SHEAR=4;var he,n=g;function g(t){var e=he.call(this,t)||this;return e.frames=N.Utils.newFloatArray(t*g.ENTRIES),e}N.TransformConstraintTimeline=g,e(c,le=s),c.prototype.getPropertyId=function(){return(Vt.pathConstraintPosition<<24)+this.pathConstraintIndex},c.prototype.setFrame=function(t,e,i){this.frames[t*=c.ENTRIES]=e,this.frames[t+c.VALUE]=i},c.prototype.apply=function(t,e,i,s,n,r,o){var a=this.frames,h=t.pathConstraints[this.pathConstraintIndex];if(h.active)if(i=a[a.length-c.ENTRIES]?t=a[a.length+c.PREV_VALUE]:(t=a[(l=Gt.binarySearch(a,i,c.ENTRIES))+c.PREV_VALUE],u=a[l],i=this.getCurvePercent(l/c.ENTRIES-1,1-(i-u)/(a[l+c.PREV_TIME]-u)),t+=(a[l+c.VALUE]-t)*i),r==X.setup?h.position=h.data.position+(t-h.data.position)*n:h.position+=(t-h.position)*n}},c.ENTRIES=2,c.PREV_TIME=-2,c.PREV_VALUE=-1,c.VALUE=1;var le,r=c;function c(t){var e=le.call(this,t)||this;return e.frames=N.Utils.newFloatArray(t*c.ENTRIES),e}N.PathConstraintPositionTimeline=r,e(ce,ue=r),ce.prototype.getPropertyId=function(){return(Vt.pathConstraintSpacing<<24)+this.pathConstraintIndex},ce.prototype.apply=function(t,e,i,s,n,r,o){var a=this.frames,h=t.pathConstraints[this.pathConstraintIndex];if(h.active)if(i=a[a.length-ce.ENTRIES]?t=a[a.length+ce.PREV_VALUE]:(t=a[(l=Gt.binarySearch(a,i,ce.ENTRIES))+ce.PREV_VALUE],u=a[l],i=this.getCurvePercent(l/ce.ENTRIES-1,1-(i-u)/(a[l+ce.PREV_TIME]-u)),t+=(a[l+ce.VALUE]-t)*i),r==X.setup?h.spacing=h.data.spacing+(t-h.data.spacing)*n:h.spacing+=(t-h.spacing)*n}};var ue,n=ce;function ce(t){return ue.call(this,t)||this}N.PathConstraintSpacingTimeline=ce,e(f,de=s),f.prototype.getPropertyId=function(){return(Vt.pathConstraintMix<<24)+this.pathConstraintIndex},f.prototype.setFrame=function(t,e,i,s){this.frames[t*=f.ENTRIES]=e,this.frames[t+f.ROTATE]=i,this.frames[t+f.TRANSLATE]=s},f.prototype.apply=function(t,e,i,s,n,r,o){var a=this.frames,h=t.pathConstraints[this.pathConstraintIndex];if(h.active)if(i=a[a.length-f.ENTRIES]?(t=a[a.length+f.PREV_ROTATE],c=a[a.length+f.PREV_TRANSLATE]):(t=a[(l=Gt.binarySearch(a,i,f.ENTRIES))+f.PREV_ROTATE],c=a[l+f.PREV_TRANSLATE],u=a[l],i=this.getCurvePercent(l/f.ENTRIES-1,1-(i-u)/(a[l+f.PREV_TIME]-u)),t+=(a[l+f.ROTATE]-t)*i,c+=(a[l+f.TRANSLATE]-c)*i),r==X.setup?(h.rotateMix=h.data.rotateMix+(t-h.data.rotateMix)*n,h.translateMix=h.data.translateMix+(c-h.data.translateMix)*n):(h.rotateMix+=(t-h.rotateMix)*n,h.translateMix+=(c-h.translateMix)*n)}},f.ENTRIES=3,f.PREV_TIME=-3,f.PREV_ROTATE=-2,f.PREV_TRANSLATE=-1,f.ROTATE=1,f.TRANSLATE=2;var de,r=f;function f(t){var e=de.call(this,t)||this;return e.frames=N.Utils.newFloatArray(t*f.ENTRIES),e}N.PathConstraintMixTimeline=f;var A=t=t||{},n=(M.prototype.update=function(t){t*=this.timeScale;for(var e=this.tracks,i=0,s=e.length;i=n.trackEnd&&null==n.mixingFrom){e[i]=null,this.queue.end(n),this.disposeNext(n);continue}if(null!=n.mixingFrom&&this.updateMixingFrom(n,t)){var h=n.mixingFrom;for((n.mixingFrom=null)!=h&&(h.mixingTo=null);null!=h;)this.queue.end(h),h=h.mixingFrom}n.trackTime+=r}}this.queue.drain()},M.prototype.updateMixingFrom=function(t,e){var i,s=t.mixingFrom;return null==s||(i=this.updateMixingFrom(s,e),s.animationLast=s.nextAnimationLast,s.trackLast=s.nextTrackLast,0=t.mixDuration?(0!=s.totalAlpha&&0!=t.mixDuration||(t.mixingFrom=s.mixingFrom,null!=s.mixingFrom&&(s.mixingFrom.mixingTo=t),t.interruptAlpha=s.interruptAlpha,this.queue.end(s)),i):(s.trackTime+=e*s.timeScale,t.mixTime+=e,!1))},M.prototype.apply=function(t){if(null==t)throw new Error("skeleton cannot be null.");this.animationsChanged&&this._animationsChanged();for(var e=this.events,i=this.tracks,s=!1,n=0,r=i.length;n=o.trackEnd&&null==o.next&&(h=0),o.animationLast),u=o.getAnimationTime(),c=o.animation.timelines.length,d=o.animation.timelines;if(0==n&&1==h||a==A.MixBlend.add)for(var p=0;p=r[r.length-1]?r.length-1:A.Animation.binarySearch(r,i)-1,this.setAttachment(e,o,t.attachmentNames[s],n)),o.attachmentState<=this.unkeyedState)&&(o.attachmentState=this.unkeyedState+M.SETUP)},M.prototype.setAttachment=function(t,e,i,s){e.setAttachment(null==i?null:t.getAttachment(e.data.index,i)),s&&(e.attachmentState=this.unkeyedState+M.CURRENT)},M.prototype.applyRotateTimeline=function(t,e,i,s,n,r,o,a){if(a&&(r[o]=0),1!=s){var h=t,l=h.frames,u=e.bones[h.boneIndex];if(u.active){var c=0,d=0;if(i=l[l.length-A.RotateTimeline.ENTRIES]?d=u.data.rotation+l[l.length+A.RotateTimeline.PREV_ROTATION]:(f=l[(p=A.Animation.binarySearch(l,i,A.RotateTimeline.ENTRIES))+A.RotateTimeline.PREV_ROTATION],g=l[p],h=h.getCurvePercent((p>>1)-1,1-(i-g)/(l[p+A.RotateTimeline.PREV_TIME]-g)),d=l[p+A.RotateTimeline.ROTATION]-f,d=f+(d-=360*(16384-(16384.499999999996-d/360|0)))*h+u.data.rotation,d-=360*(16384-(16384.499999999996-d/360|0)));var p,f,g=0,l=d-c;0==(l-=360*(16384-(16384.499999999996-l/360|0)))?g=r[o]:(f=p=0,f=a?(p=0,l):(p=r[o],r[o+1]),h=0s||this.queue.event(t,l)}for((t.loop?0==n||r>t.trackTime%n:s<=e&&t.animationLast=this.tracks.length)){t=this.tracks[t];if(null!=t){this.queue.end(t),this.disposeNext(t);for(var e=t;;){var i=e.mixingFrom;if(null==i)break;this.queue.end(i),e.mixingFrom=null,e.mixingTo=null,e=i}this.tracks[t.trackIndex]=null,this.queue.drain()}}},M.prototype.setCurrent=function(t,e,i){var s=this.expandToIndex(t);this.tracks[t]=e,null!=s&&(i&&this.queue.interrupt(s),((e.mixingFrom=s).mixingTo=e).mixTime=0,null!=s.mixingFrom&&0=this.tracks.length?null:this.tracks[t]},M.prototype.addListener=function(t){if(null==t)throw new Error("listener cannot be null.");this.listeners.push(t)},M.prototype.removeListener=function(t){t=this.listeners.indexOf(t);0<=t&&this.listeners.splice(t,1)},M.prototype.clearListeners=function(){this.listeners.length=0},M.prototype.clearListenerNotifications=function(){this.queue.clear()},M.emptyAnimation=new A.Animation("",[],0),M.SUBSEQUENT=0,M.FIRST=1,M.HOLD_SUBSEQUENT=2,M.HOLD_FIRST=3,M.HOLD_MIX=4,M.SETUP=1,M.CURRENT=2,M);function M(t){this.tracks=new Array,this.timeScale=1,this.unkeyedState=0,this.events=new Array,this.listeners=new Array,this.queue=new ye(this),this.propertyIDs=new A.IntSet,this.animationsChanged=!1,this.trackEntryPool=new A.Pool(function(){return new pe}),this.data=t}A.AnimationState=n,fe.prototype.reset=function(){this.next=null,this.mixingFrom=null,this.mixingTo=null,this.animation=null,this.listener=null,this.timelineMode.length=0,this.timelineHoldMix.length=0,this.timelinesRotation.length=0},fe.prototype.getAnimationTime=function(){var t;return this.loop?0==(t=this.animationEnd-this.animationStart)?this.animationStart:this.trackTime%t+this.animationStart:Math.min(this.trackTime+this.animationStart,this.animationEnd)},fe.prototype.setAnimationLast=function(t){this.animationLast=t,this.nextAnimationLast=t},fe.prototype.isComplete=function(){return this.trackTime>=this.animationEnd-this.animationStart},fe.prototype.resetRotationDirections=function(){this.timelinesRotation.length=0};var pe=fe;function fe(){this.mixBlend=A.MixBlend.replace,this.timelineMode=new Array,this.timelineHoldMix=new Array,this.timelinesRotation=new Array}A.TrackEntry=pe,ve.prototype.start=function(t){this.objects.push(ge.start),this.objects.push(t),this.animState.animationsChanged=!0},ve.prototype.interrupt=function(t){this.objects.push(ge.interrupt),this.objects.push(t)},ve.prototype.end=function(t){this.objects.push(ge.end),this.objects.push(t),this.animState.animationsChanged=!0},ve.prototype.dispose=function(t){this.objects.push(ge.dispose),this.objects.push(t)},ve.prototype.complete=function(t){this.objects.push(ge.complete),this.objects.push(t)},ve.prototype.event=function(t,e){this.objects.push(ge.event),this.objects.push(t),this.objects.push(e)},ve.prototype.drain=function(){if(!this.drainDisabled){this.drainDisabled=!0;for(var t=this.objects,e=this.animState.listeners,i=0;i= 0.");if(null==e)throw new Error("name cannot be null.");this.index=t,this.name=e,this.parent=i},(n=Xt=Nt.TransformMode||(Nt.TransformMode={}))[n.Normal=0]="Normal",n[n.OnlyTranslation=1]="OnlyTranslation",n[n.NoRotationOrReflection=2]="NoRotationOrReflection",n[n.NoScale=3]="NoScale",n[n.NoScaleOrReflection=4]="NoScaleOrReflection",(t||(t={})).ConstraintData=function(t,e,i){this.name=t,this.order=e,this.skinRequired=i},(t||(t={})).Event=function(t,e){if(null==e)throw new Error("data cannot be null.");this.time=t,this.data=e},(t||(t={})).EventData=function(t){this.name=t},Bt=t=t||{},Ui.prototype.isActive=function(){return this.active},Ui.prototype.apply=function(){this.update()},Ui.prototype.update=function(){var t=this.target,e=this.bones;switch(e.length){case 1:this.apply1(e[0],t.worldX,t.worldY,this.compress,this.stretch,this.data.uniform,this.mix);break;case 2:this.apply2(e[0],e[1],t.worldX,t.worldY,this.bendDirection,this.stretch,this.softness,this.mix)}},Ui.prototype.apply1=function(t,e,i,s,n,r,o){t.appliedValid||t.updateAppliedTransform();var a=t.parent,h=a.a,l=a.b,u=a.c,c=a.d,d=-t.ashearX-t.arotation,p=0,f=0;switch(t.data.transformMode){case Bt.TransformMode.OnlyTranslation:p=e-t.worldX,f=i-t.worldY;break;case Bt.TransformMode.NoRotationOrReflection:var g=Math.abs(h*c-l*u)/(h*h+u*u),y=h/t.skeleton.scaleX,v=u/t.skeleton.scaleY,l=-v*g*t.skeleton.scaleX,c=y*g*t.skeleton.scaleY;d+=Math.atan2(v,y)*Bt.MathUtils.radDeg;default:var v=e-a.worldX,y=i-a.worldY,m=h*c-l*u,p=(v*c-y*l)/m-t.ax,f=(y*h-v*u)/m-t.ay}d+=Math.atan2(f,p)*Bt.MathUtils.radDeg,t.ascaleX<0&&(d+=180),180K.MathUtils.PI?F-=K.MathUtils.PI2:F<-K.MathUtils.PI&&(F+=K.MathUtils.PI2),F*=e,L=Math.cos(F),k=Math.sin(F),E.a=L*M-k*R,E.b=L*O-k*D,E.c=k*M+L*R,E.d=k*O+L*D),E.appliedValid=!1}}}},Ni.prototype.computeWorldPositions=function(t,e,I,B,N){var i=this.target,s=this.position,n=this.spaces,r=K.Utils.setArraySize(this.positions,3*e+2),o=null,a=t.closed,h=t.worldVerticesLength,l=h/6,u=Ni.NONE;if(t.constantSpeed){a?(o=K.Utils.setArraySize(this.world,h+=2),t.computeWorldVertices(i,2,h-4,o,0,2),t.computeWorldVertices(i,0,2,o,h-4,2),o[h-2]=o[0],o[h-1]=o[1]):(l--,o=K.Utils.setArraySize(this.world,h-=4),t.computeWorldVertices(i,2,h,o,0,2));for(var X=K.Utils.setArraySize(this.curves,l),c=0,d=o[0],p=o[1],f=0,g=0,y=0,v=0,m=0,U=0,z=0,Y=0,x=0,w=0,T=0,b=0,S=0,P=0,_=(L=0,2);L>>1^-(1&i)},be.prototype.readStringRef=function(){var t=this.readInt(!0);return 0==t?null:this.strings[t-1]},be.prototype.readString=function(){var t=this.readInt(!0);switch(t){case 0:return null;case 1:return""}t--;for(var e="",i=0;i>4){case 12:case 13:e+=String.fromCharCode((31&s)<<6|63&this.readByte()),i+=2;break;case 14:e+=String.fromCharCode((15&s)<<12|(63&this.readByte())<<6|63&this.readByte()),i+=3;break;default:e+=String.fromCharCode(s),i++}}return e},be.prototype.readFloat=function(){var t=this.buffer.getFloat32(this.index);return this.index+=4,t},be.prototype.readBoolean=function(){return 0!=this.readByte()};var xe=be,we=function(t,e,i,s,n){this.mesh=t,this.skin=e,this.slotIndex=i,this.parent=s,this.inheritDeform=n},Te=function(t,e){void 0===e&&(e=null),this.bones=t=void 0===t?null:t,this.vertices=e};function be(t,e,i,s){void 0===e&&(e=new Array),void 0===i&&(i=0),void 0===s&&(s=new DataView(t.buffer)),this.strings=e,this.index=i,this.buffer=s}Lt=t=t||{},ki.prototype.update=function(t,e){if(null==t)throw new Error("skeleton cannot be null.");var i=this.boundingBoxes,s=this.polygons,n=this.polygonPool,r=t.slots,o=r.length;i.length=0,n.freeAll(s);for(var a=s.length=0;a=this.minX&&t<=this.maxX&&e>=this.minY&&e<=this.maxY},ki.prototype.aabbIntersectsSegment=function(t,e,i,s){var n=this.minX,r=this.minY,o=this.maxX,a=this.maxY;return!(t<=n&&i<=n||e<=r&&s<=r||o<=t&&o<=i||a<=e&&a<=s)&&(r<(i=(s=(s-e)/(i-t))*(n-t)+e)&&ir&&in&&it.minX&&this.minYt.minY},ki.prototype.containsPoint=function(t,e){for(var i=this.polygons,s=0,n=i.length;s>1,G=this.clipOutput,O=Dt.Utils.setArraySize(a,E+M*l),R=0;R>1;o=s.length&&(s.length=t+1),s[t]||(s[t]={}),s[t][e]=i},Oi.prototype.addSkin=function(t){for(var e=0;e= 0.");if(null==e)throw new Error("name cannot be null.");if(null==i)throw new Error("boneData cannot be null.");this.index=t,this.name=e,this.boneData=i};var s=t=t||{};_e.prototype.getImage=function(){return this._image},_e.filterFromString=function(t){switch(t.toLowerCase()){case"nearest":return Se.Nearest;case"linear":return Se.Linear;case"mipmap":return Se.MipMap;case"mipmapnearestnearest":return Se.MipMapNearestNearest;case"mipmaplinearnearest":return Se.MipMapLinearNearest;case"mipmapnearestlinear":return Se.MipMapNearestLinear;case"mipmaplinearlinear":return Se.MipMapLinearLinear;default:throw new Error("Unknown texture filter ".concat(t))}},_e.wrapFromString=function(t){switch(t.toLowerCase()){case"mirroredtepeat":return Pe.MirroredRepeat;case"clamptoedge":return Pe.ClampToEdge;case"repeat":return Pe.Repeat;default:throw new Error("Unknown texture wrap ".concat(t))}};var Se,Pe,r=_e;function _e(t){this._image=t}s.Texture=r,(n=Se=s.TextureFilter||(s.TextureFilter={}))[n.Nearest=9728]="Nearest",n[n.Linear=9729]="Linear",n[n.MipMap=9987]="MipMap",n[n.MipMapNearestNearest=9984]="MipMapNearestNearest",n[n.MipMapLinearNearest=9985]="MipMapLinearNearest",n[n.MipMapNearestLinear=9986]="MipMapNearestLinear",n[n.MipMapLinearLinear=9987]="MipMapLinearLinear",(n=Pe=s.TextureWrap||(s.TextureWrap={}))[n.MirroredRepeat=33648]="MirroredRepeat",n[n.ClampToEdge=33071]="ClampToEdge",n[n.Repeat=10497]="Repeat",s.TextureRegion=function(){this.u=0,this.v=0,this.u2=0,this.v2=0,this.width=0,this.height=0,this.rotate=!1,this.offsetX=0,this.offsetY=0,this.originalWidth=0,this.originalHeight=0},e(Ae,Ee=r),Ae.prototype.setFilters=function(t,e){},Ae.prototype.setWraps=function(t,e){},Ae.prototype.dispose=function(){};var Ee,n=Ae;function Ae(){return null!==Ee&&Ee.apply(this,arguments)||this}s.FakeTexture=n;var Ce=t=t||{};function Me(t,e){this.pages=new Array,this.regions=new Array,this.load(t,e)}Me.prototype.load=function(t,e){if(null==e)throw new Error("textureLoader cannot be null.");for(var i=new Oe(t),s=new Array(4),n=null;;){var r,o,a,h,l,u=i.readLine();if(null==u)break;0==(u=u.trim()).length?n=null:n?((r=new ke).name=u,r.page=n,"true"==(l=i.readValue()).toLocaleLowerCase()?r.degrees=90:"false"==l.toLocaleLowerCase()?r.degrees=0:r.degrees=parseFloat(l),r.rotate=90==r.degrees,i.readTuple(s),l=parseInt(s[0]),o=parseInt(s[1]),i.readTuple(s),a=parseInt(s[0]),h=parseInt(s[1]),r.u=l/n.width,r.v=o/n.height,r.rotate?(r.u2=(l+h)/n.width,r.v2=(o+a)/n.height):(r.u2=(l+a)/n.width,r.v2=(o+h)/n.height),r.x=l,r.y=o,r.width=Math.abs(a),r.height=Math.abs(h),4==i.readTuple(s)&&4==i.readTuple(s)&&i.readTuple(s),r.originalWidth=parseInt(s[0]),r.originalHeight=parseInt(s[1]),i.readTuple(s),r.offsetX=parseInt(s[0]),r.offsetY=parseInt(s[1]),r.index=parseInt(i.readValue()),r.texture=n.texture,this.regions.push(r)):((n=new Re).name=u,2==i.readTuple(s)&&(n.width=parseInt(s[0]),n.height=parseInt(s[1]),i.readTuple(s)),i.readTuple(s),n.minFilter=Ce.Texture.filterFromString(s[0]),n.magFilter=Ce.Texture.filterFromString(s[1]),l=i.readValue(),n.uWrap=Ce.TextureWrap.ClampToEdge,n.vWrap=Ce.TextureWrap.ClampToEdge,"x"==l?n.uWrap=Ce.TextureWrap.Repeat:"y"==l?n.vWrap=Ce.TextureWrap.Repeat:"xy"==l&&(n.uWrap=n.vWrap=Ce.TextureWrap.Repeat),n.texture=e(u),n.texture.setFilters(n.minFilter,n.magFilter),n.texture.setWraps(n.uWrap,n.vWrap),n.width=n.texture.getImage().width,n.height=n.texture.getImage().height,this.pages.push(n))}},Me.prototype.findRegion=function(t){for(var e=0;e=this.lines.length?null:this.lines[this.index++]},De.prototype.readValue=function(){var t=this.readLine(),e=t.indexOf(":");if(-1==e)throw new Error("Invalid line: "+t);return t.substring(e+1).trim()},De.prototype.readTuple=function(t){var e=this.readLine(),i=e.indexOf(":");if(-1==i)throw new Error("Invalid line: "+e);for(var s=0,n=i+1;s<3;s++){var r=e.indexOf(",",n);if(-1==r)break;t[s]=e.substr(n,r-n).trim(),n=r+1}return t[s]=e.substring(n).trim(),s+1};var Oe=De,Re=function(){};function De(t){this.index=0,this.lines=t.split(/\r\n|\r|\n/)}Ce.TextureAtlasPage=Re,Le=Ce.TextureRegion,e(Fe,Le);var Le,ke=Fe;function Fe(){return null!==Le&&Le.apply(this,arguments)||this}Ce.TextureAtlasRegion=ke,_=t=t||{},Ai.prototype.isActive=function(){return this.active},Ai.prototype.apply=function(){this.update()},Ai.prototype.update=function(){this.data.local?this.data.relative?this.applyRelativeLocal():this.applyAbsoluteLocal():this.data.relative?this.applyRelativeWorld():this.applyAbsoluteWorld()},Ai.prototype.applyAbsoluteWorld=function(){for(var t=this.rotateMix,e=this.translateMix,i=this.scaleMix,s=this.shearMix,n=this.target,r=n.a,o=n.b,a=n.c,h=n.d,l=0_.MathUtils.PI?T-=_.MathUtils.PI2:T<-_.MathUtils.PI&&(T+=_.MathUtils.PI2),T*=t,g=Math.cos(T),b=Math.sin(T),S.a=g*y-b*m,S.b=g*x-b*w,S.c=b*y+g*m,S.d=b*x+g*w,P=!0),0!=e&&(y=this.temp,n.localToWorld(y.set(this.data.offsetX,this.data.offsetY)),S.worldX+=(y.x-S.worldX)*e,S.worldY+=(y.y-S.worldY)*e,P=!0),0_.MathUtils.PI?T-=_.MathUtils.PI2:T<-_.MathUtils.PI&&(T+=_.MathUtils.PI2),T=b+(T+c)*s,v=Math.sqrt(x*x+w*w),S.b=Math.cos(T)*v,S.d=Math.sin(T)*v,P=!0),P&&(S.appliedValid=!1)}},Ai.prototype.applyRelativeWorld=function(){for(var t=this.rotateMix,e=this.translateMix,i=this.scaleMix,s=this.shearMix,n=this.target,r=n.a,o=n.b,a=n.c,h=n.d,l=0_.MathUtils.PI?b-=_.MathUtils.PI2:b<-_.MathUtils.PI&&(b+=_.MathUtils.PI2),b*=t,m=Math.cos(b),x=Math.sin(b),S.a=m*w-x*y,S.b=m*g-x*v,S.c=x*w+m*y,S.d=x*g+m*v,P=!0),0!=e&&(w=this.temp,n.localToWorld(w.set(this.data.offsetX,this.data.offsetY)),S.worldX+=w.x*e,S.worldY+=w.y*e,P=!0),0_.MathUtils.PI?b-=_.MathUtils.PI2:b<-_.MathUtils.PI&&(b+=_.MathUtils.PI2),g=S.b,v=S.d,b=Math.atan2(v,g)+(b-_.MathUtils.PI/2+c)*s,T=Math.sqrt(g*g+v*v),S.b=Math.cos(b)*T,S.d=Math.sin(b)*T,P=!0),P&&(S.appliedValid=!1)}},Ai.prototype.applyAbsoluteLocal=function(){var t=this.rotateMix,e=this.translateMix,i=this.scaleMix,s=this.shearMix,n=this.target;n.appliedValid||n.updateAppliedTransform();for(var r=this.bones,o=0,a=r.length;o>1,s=this.indicesArray,n=s.length=0;n>>24)/255,t.g=((16711680&e)>>>16)/255,t.b=((65280&e)>>>8)/255,t.a=(255&e)/255},Be.rgb888ToColor=function(t,e){t.r=((16711680&e)>>>16)/255,t.g=((65280&e)>>>8)/255,t.b=(255&e)/255},Be.WHITE=new Be(1,1,1,1),Be.RED=new Be(1,0,0,1),Be.GREEN=new Be(0,1,0,1),Be.BLUE=new Be(0,0,1,1),Be.MAGENTA=new Be(1,0,1,1),s.Color=Be,o.clamp=function(t,e,i){return t=e?t:Ve.setArraySize(t,e,i)},Ve.newArray=function(t,e){for(var i=new Array(t),s=0;sthis.maxDelta&&(this.delta=this.maxDelta),this.lastTime=t,this.frameCount++,1=this.values.length},Ke.prototype.addValue=function(t){this.addedValuesthis.values.length-1&&(this.lastValue=0),this.dirty=!0},Ke.prototype.getMean=function(){if(this.hasEnoughData()){if(this.dirty){for(var t=0,e=0;e>1)*r;var o=t.bone.skeleton,a=t.deform,h=this.vertices,l=this.bones;if(null!=l){for(var u=0,c=0,d=0;dthis.vertices.length)throw Error("Mesh can't store more than "+this.maxVertices()+" vertices");this.vertices.set(t,0),this.verticesLength=t.length},a.prototype.setIndices=function(t){if(this.dirtyIndices=!0,t.length>this.indices.length)throw Error("Mesh can't store more than "+this.maxIndices()+" indices");this.indices.set(t,0),this.indicesLength=t.length},a.prototype.draw=function(t,e){this.drawWithOffset(t,e,0,0this.mesh.getVertices().length||this.indicesLength+i.length>this.mesh.getIndices().length)&&this.flush();var s=this.mesh.numVertices();this.mesh.getVertices().set(e,this.verticesLength),this.verticesLength+=e.length,this.mesh.setVerticesLength(this.verticesLength);for(var n=this.mesh.getIndices(),r=this.indicesLength,o=0;o 0.");null===n&&(n=this.color);var o=2*Y.MathUtils.PI/r,a=Math.cos(o),h=Math.sin(o),l=s,u=0;if(t){for(this.check(j.Filled,3*r+3),r--,d=0;d>1))-2],B=g[f-1],v=0,m=f;v>1,d.numFloats=d.numVertices*b,d.numFloats>d.vertices.length&&(d.vertices=this.vertices=U.Utils.newFloatArray(d.numFloats)),E.computeWorldVertices(S,0,E.worldVerticesLength,d.vertices,0,b),f=E.triangles,_=E.region.renderObject.texture,p=E.uvs,y=E.color}if(null!=_){var P=S.color,A=this.tempColor,C=(A.r=v.r*P.r*y.r,A.g=v.g*P.g*y.g,A.b=v.b*P.b*y.b,A.a=v.a*P.a*y.a,r&&(A.r*=A.a,A.g*=A.a,A.b*=A.a),this.tempColor2),b=(null==S.darkColor?C.set(0,0,0,1):(r?(C.r=S.darkColor.r*A.a,C.g=S.darkColor.g*A.a,C.b=S.darkColor.b*A.a):C.setFromColor(S.darkColor),C.a=r?1:0),S.data.blendMode);if(b!=a&&t.setBlendMode(z.WebGLBlendModeConverter.getSourceGLBlendMode(a=b,r),z.WebGLBlendModeConverter.getDestGLBlendMode(a)),n.isClipping()){n.clipTriangles(d.vertices,d.numFloats,f,f.length,p,A,C,o);P=new Float32Array(n.clippedVertices),b=n.clippedTriangles;if(null!=this.vertexEffect){var M=this.vertexEffect,O=P;if(o){D=0;for(var R=P.length;D{var s=i(7473),y=i(4597),v=i(6732),p=i(2482),f=i(704),g=i(3137),m=i(1192),i=new s({Extends:g,initialize:function(t,e,i,s,n,r,o){var a,h,l,u=[],c=t.cacheManager.custom.spine;if(p(e)){var d=e;for(e=y(d,"key"),h=new f(t,{key:e,url:y(d,"jsonURL"),extension:y(d,"jsonExtension","json"),xhrSettings:y(d,"jsonXhrSettings")}),s=y(d,"atlasURL"),n=y(d,"preMultipliedAlpha"),Array.isArray(s)||(s=[s]),a=0;a{var h=i(2494),s=i(7473),l=i(5851),n=i(3527),r=i(5722),u=i(1847),c=i(3524),d=i(8332),p=i(5782),f=i(1984),i=new s({Extends:r,initialize:function(t,e,o){r.call(this,t,e,o);var i=e.game,a=(this.isWebGL=2===i.config.renderType,this.cache=i.cache.addCustom("spine"),this.spineTextures=i.cache.addCustom("spineTextures"),this.json=i.cache.json,this.textures=i.textures,this.drawDebug=!1,this.gl,this.renderer,this.sceneRenderer,this.skeletonRenderer,this.skeletonDebugRenderer,this.plugin=u,this.temp1,this.temp2,this.isWebGL?(this.runtime=u.webgl,this.renderer=i.renderer,this.gl=i.renderer.gl,this.getAtlas=this.getAtlasWebGL):(this.runtime=u.canvas,this.renderer=i.renderer,this.getAtlas=this.getAtlasCanvas),this.renderer||(this.renderer={width:i.scale.width,height:i.scale.height,preRender:f,postRender:f,render:f,destroy:f}),this.isWebGL);e.registerFileType("spine",this.spineFileCallback,t),e.registerGameObject("spine",function(t,e,i,s,n){a&&this.scene.sys.renderer.pipelines.clear();var r=this.scene.sys[o],r=new d(this.scene,r,t,e,i,s,n);return this.displayList.add(r),this.updateList.add(r),a&&this.scene.sys.renderer.pipelines.rebind(),r},function(t,e){void 0===t&&(t={}),a&&this.scene.sys.renderer.pipelines.clear();var i=l(t,"key",null),s=l(t,"animationName",null),n=l(t,"loop",!1),r=this.scene.sys[o],r=new d(this.scene,r,0,0,i,s,n),i=(void 0!==e&&(t.add=e),h(this.scene,r,t),l(t,"skinName",!1)),s=(i&&r.setSkinByName(i),l(t,"slotName",!1)),n=l(t,"attachmentName",null);return s&&r.setAttachment(s,n),a&&this.scene.sys.renderer.pipelines.rebind(),r.refresh()}),e.registerGameObject("spineContainer",function(t,e,i){var s=this.scene.sys[o],s=new p(this.scene,s,t,e,i);return this.displayList.add(s),s},function(t,e){var i=l(t=void 0===t?{}:t,"x",0),s=l(t,"y",0),n=l(t,"children",null),r=this.scene.sys[o],r=new p(this.scene,r,i,s,n);return void 0!==e&&(t.add=e),h(this.scene,r,t),r})},boot:function(){this.isWebGL?(this.bootWebGL(),this.onResize(),this.game.scale.on(n,this.onResize,this)):this.bootCanvas();var t=this.systems.events;t.once("shutdown",this.shutdown,this),t.once("destroy",this.destroy,this),this.game.events.once("destroy",this.gameDestroy,this)},bootCanvas:function(){this.skeletonRenderer=new u.canvas.SkeletonRenderer(this.scene.sys.context)},bootWebGL:function(){function t(t,e){var i;t===this.srcBlend&&e===this.dstBlend||(i=this.context.gl,this.srcBlend=t,this.dstBlend=e,this.isDrawing&&(this.flush(),i.blendFunc(this.srcBlend,this.dstBlend)))}var e=this.renderer.spineSceneRenderer;e||((e=new u.webgl.SceneRenderer(this.renderer.canvas,this.gl,!0)).batcher.setBlendMode=t,e.shapes.setBlendMode=t,this.renderer.spineSceneRenderer=e),this.sceneRenderer=e,this.skeletonRenderer=e.skeletonRenderer,this.skeletonDebugRenderer=e.skeletonDebugRenderer,this.temp1=new u.webgl.Vector3(0,0,0),this.temp2=new u.webgl.Vector3(0,0,0)},getAtlasCanvas:function(e){var t,i,s=this.cache.get(e);if(s)return(t=this.spineTextures).has(e)?t.get(e):(i=this.textures,new u.TextureAtlas(s.data,function(t){return new u.canvas.CanvasTexture(i.get(s.prefix+e+":"+t).getSourceImage())}))},getAtlasWebGL:function(e){var t,i,s,n=this.cache.get(e);if(n)return(t=this.spineTextures).has(e)?t.get(e):(i=this.textures,(s=this.sceneRenderer.context.gl).pixelStorei(s.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!1),new u.TextureAtlas(n.data,function(t){return new u.webgl.GLTexture(s,i.get(n.prefix+e+":"+t).getSourceImage(),!1)}))},spineFileCallback:function(t,e,i,s,n,r,o){var a;if(o=o||{},Array.isArray(t))for(var h=0;h{var s=i(7473),r=i(7361),i=i(7738),s=new s({Extends:r,Mixins:[i],initialize:function(t,e,i,s,n){r.call(this,t,i,s,n),this.type="Spine",this.plugin=e},preDestroy:function(){this.removeAll(!!this.exclusive),this.localTransform.destroy(),this.tempTransformMatrix.destroy(),this.list=[],this._displayList=null,this.plugin=null}});t.exports=s},8064:t=>{t.exports=function(t,e,i,s){var n=e.list;if(0!==n.length){i.addToRenderList(e);var r=e.localTransform,o=(s?(r.loadIdentity(),r.multiply(s),r.translate(e.x,e.y),r.rotate(e.rotation),r.scale(e.scaleX,e.scaleY)):r.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY),-1!==e.blendMode),a=(o||t.setBlendMode(0),e._alpha),h=e.scrollFactorX,l=e.scrollFactorY;e.mask&&e.mask.preRenderCanvas(t,null,i);for(var u=0;u{i(1984),i(1984);var s=i(434),i=i(8064);t.exports={renderWebGL:s,renderCanvas:i}},434:t=>{t.exports=function(t,e,i,s){var n=e.plugin.sceneRenderer,r=e.list;if(0!==r.length){i.addToRenderList(e);var o=e.localTransform,s=(s?(o.loadIdentity(),o.multiply(s),o.translate(e.x,e.y),o.rotate(e.rotation),o.scale(e.scaleX,e.scaleY)):o.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY),t.newType&&(t.pipelines.clear(),n.begin()),t.nextTypeMatch);t.nextTypeMatch=!0,t.newType=!1;for(var a=0;a{t.exports="complete"},8621:t=>{t.exports="dispose"},8944:t=>{t.exports="end"},7494:t=>{t.exports="event"},1908:t=>{t.exports="interrupted"},5591:t=>{t.exports="start"},5146:(t,e,i)=>{t.exports={COMPLETE:i(6576),DISPOSE:i(8621),END:i(8944),EVENT:i(7494),INTERRUPTED:i(1908),START:i(5591)}},8332:(t,e,i)=>{var a=i(6412),h=i(2915),s=i(7473),n=i(1991),r=i(3131),o=i(9660),l=i(4627),u=i(3212),c=i(8414),d=i(3426),p=i(7149),f=i(2273),g=i(4208),y=i(5146),i=i(2762),s=new s({Extends:f,Mixins:[n,r,o,l,u,c,i],initialize:function(t,e,i,s,n,r,o){f.call(this,t,"Spine"),this.plugin=e,this.skeleton=null,this.skeletonData=null,this.state=null,this.stateData=null,this.root=null,this.bounds=null,this.drawDebug=!1,this.timeScale=1,this.displayOriginX=0,this.displayOriginY=0,this.preMultipliedAlpha=!1,this.blendMode=-1,this.setPosition(i,s),n&&this.setSkeleton(n,r,o)},willRender:function(t,e){var i,t=!this.skeleton||!(15!==this.renderFlags||0!==this.cameraFilter&&this.cameraFilter&t.id);return e||t||!this.parentContainer||(i=(e=this.plugin).sceneRenderer,e.gl&&i.batcher.isDrawing&&(i.end(),e.renderer.pipelines.rebind())),t},setAlpha:function(t,e){return void 0===t&&(t=1),e?(e=this.findSlot(e))&&(e.color.a=h(t,0,1)):this.alpha=t,this},alpha:{get:function(){return this.skeleton.color.a},set:function(t){t=h(t,0,1);this.skeleton&&(this.skeleton.color.a=t),0===t?this.renderFlags&=-3:this.renderFlags|=2}},red:{get:function(){return this.skeleton.color.r},set:function(t){t=h(t,0,1);this.skeleton&&(this.skeleton.color.r=t)}},green:{get:function(){return this.skeleton.color.g},set:function(t){t=h(t,0,1);this.skeleton&&(this.skeleton.color.g=t)}},blue:{get:function(){return this.skeleton.color.b},set:function(t){t=h(t,0,1);this.skeleton&&(this.skeleton.color.b=t)}},setColor:function(t,e){var i=((t=void 0===t?16777215:t)>>16&255)/255,s=(t>>8&255)/255,n=(255&t)/255,t=16777215>>24)/255:null,r=this.skeleton;return(r=e&&(e=this.findSlot(e))?e:r).color.r=i,r.color.g=s,r.color.b=n,null!==t&&(r.color.a=t),this},setSkeletonFromJSON:function(t,e,i,s){return this.setSkeleton(t,e,i,s)},setSkeleton:function(t,e,i,s){this.state&&(this.state.clearListeners(),this.state.clearListenerNotifications());t=this.plugin.createSkeleton(t,s),this.skeletonData=t.skeletonData,this.preMultipliedAlpha=t.preMultipliedAlpha,s=t.skeleton;return s.setSkin(),s.setToSetupPose(),this.skeleton=s,t=this.plugin.createAnimationState(s),this.state&&(this.state.clearListeners(),this.state.clearListenerNotifications()),this.state=t.state,this.stateData=t.stateData,this.state.addListener({event:this.onEvent.bind(this),complete:this.onComplete.bind(this),start:this.onStart.bind(this),end:this.onEnd.bind(this),dispose:this.onDispose.bind(this),interrupted:this.onInterrupted.bind(this)}),e&&this.setAnimation(0,e,i),this.root=this.getRootBone(),this.root&&(this.root.rotation=g(d(this.rotation))+90),this.state.apply(s),s.updateCache(),this.updateSize()},onComplete:function(t){this.emit(y.COMPLETE,t)},onDispose:function(t){this.emit(y.DISPOSE,t)},onEnd:function(t){this.emit(y.END,t)},onEvent:function(t,e){this.emit(y.EVENT,t,e)},onInterrupted:function(t){this.emit(y.INTERRUPTED,t)},onStart:function(t){this.emit(y.START,t)},refresh:function(){return this.root&&(this.root.rotation=g(d(this.rotation))+90),this.updateSize(),this.skeleton.updateCache(),this},setSize:function(t,e,i,s){var n=this.skeleton;return void 0===t&&(t=n.data.width),void 0===e&&(e=n.data.height),void 0===i&&(i=0),void 0===s&&(s=0),this.width=t,this.height=e,this.displayOriginX=n.x-i,this.displayOriginY=n.y-s,this},setOffset:function(t,e){var i=this.skeleton;return void 0===e&&(e=0),this.displayOriginX=i.x-(t=void 0===t?0:t),this.displayOriginY=i.y-e,this},updateSize:function(){var t=this.skeleton,e=this.plugin.renderer.height,i=this.scaleX,s=this.scaleY,n=(t.x=this.x,t.y=e-this.y,t.scaleX=1,t.scaleY=1,t.updateWorldTransform(),this.getBounds());return this.width=n.size.x,this.height=n.size.y,this.displayOriginX=this.x-n.offset.x,this.displayOriginY=this.y-(e-(this.height+n.offset.y)),t.scaleX=i,t.scaleY=s,t.updateWorldTransform(),this},scaleX:{get:function(){return this._scaleX},set:function(t){this._scaleX=t,this.refresh()}},scaleY:{get:function(){return this._scaleY},set:function(t){this._scaleY=t,this.refresh()}},getBoneList:function(){var t=[],e=this.skeletonData;if(e)for(var i=0;i{var u=i(3426),c=i(4208),d=i(8445);t.exports=function(t,e,i,s){var n=t.currentContext,r=e.plugin,o=e.skeleton,a=r.skeletonRenderer,h=t._tempMatrix1,l=t._tempMatrix2,t=t._tempMatrix3;i.addToRenderList(e),l.applyITRS(e.x,e.y,e.rotation,Math.abs(e.scaleX),Math.abs(e.scaleY)),h.copyFrom(i.matrix),s?(h.multiplyWithOffset(s,-i.scrollX*e.scrollFactorX,-i.scrollY*e.scrollFactorY),l.e=e.x,l.f=e.y):(l.e-=i.scrollX*e.scrollFactorX,l.f-=i.scrollY*e.scrollFactorY),h.multiply(l,t),o.x=t.tx,o.y=t.ty,o.scaleX=t.scaleX,o.scaleY=-1*t.scaleY,e.scaleX<0?(o.scaleX*=-1,e.root.rotation=c(t.rotationNormalized)):e.root.rotation=d(c(u(t.rotationNormalized))+90,0,360),e.scaleY<0&&(o.scaleY*=-1,e.scaleX<0?e.root.rotation-=2*c(t.rotationNormalized):e.root.rotation+=2*c(t.rotationNormalized)),i.renderToTexture&&(o.y=t.ty,o.scaleY*=-1),o.updateWorldTransform(),a.ctx=n,a.debugRendering=r.drawDebug||e.drawDebug,n.save(),a.draw(o),n.restore()}},2762:(t,e,i)=>{i(1984),i(1984),i(1984);var s=i(4290),n=i(780),i=i(2753);t.exports={renderWebGL:s,renderCanvas:i,renderDirect:n}},780:(t,e,i)=>{var c=i(2915),d=i(3426),p=i(2208),f=i(4208),g=i(8445);t.exports=function(t,e,i,s,n){var r=e.plugin,o=e.skeleton,a=r.sceneRenderer,h=(t.pipelines.clear(),a.begin(),e.scrollFactorX),l=e.scrollFactorY,u=o.color.a,i=(n&&(e.scrollFactorX=n.scrollFactorX,e.scrollFactorY=n.scrollFactorY,o.color.a=c(u*n.alpha,0,1)),i.addToRenderList(e),p(e,i,s).calc),s=t.height;o.x=i.tx,o.y=s-i.ty,o.scaleX=i.scaleX,o.scaleY=i.scaleY,e.scaleX<0?(o.scaleX*=-1,e.root.rotation=g(f(i.rotationNormalized)-180,0,360)):e.root.rotation=g(f(d(i.rotationNormalized))+90,0,360),e.scaleY<0&&(o.scaleY*=-1,e.scaleX<0?e.root.rotation-=2*f(i.rotationNormalized):e.root.rotation+=2*f(i.rotationNormalized)),o.updateWorldTransform(),a.drawSkeleton(o,e.preMultipliedAlpha),n&&(e.scrollFactorX=h,e.scrollFactorY=l,o.color.a=u),(r.drawDebug||e.drawDebug)&&(s=o.x,i=o.y,o.x=0,o.y=0,a.drawSkeletonDebug(o,e.preMultipliedAlpha),o.x=s,o.y=i),a.end(),t.pipelines.rebind()}},4290:(t,e,i)=>{var c=i(2915),d=i(3426),p=i(2208),f=i(4208),g=i(8445);t.exports=function(t,e,i,s,n){var r=e.plugin,o=e.skeleton,a=r.sceneRenderer,h=(t.newType&&(t.pipelines.clear(),a.begin()),e.scrollFactorX),l=e.scrollFactorY,u=o.color.a,i=(n&&(e.scrollFactorX=n.scrollFactorX,e.scrollFactorY=n.scrollFactorY,o.color.a=c(u*n.alpha,0,1)),i.addToRenderList(e),p(e,i,s).calc),s=t.height;o.x=i.tx,o.y=s-i.ty,o.scaleX=i.scaleX,o.scaleY=i.scaleY,e.scaleX<0?(o.scaleX*=-1,e.root.rotation=g(f(i.rotationNormalized)-180,0,360)):e.root.rotation=g(f(d(i.rotationNormalized))+90,0,360),e.scaleY<0&&(o.scaleY*=-1,e.scaleX<0?e.root.rotation-=2*f(i.rotationNormalized):e.root.rotation+=2*f(i.rotationNormalized)),o.updateWorldTransform(),a.drawSkeleton(o,e.preMultipliedAlpha),n&&(e.scrollFactorX=h,e.scrollFactorY=l,o.color.a=u),r.drawDebug||e.drawDebug?(s=o.x,i=o.y,o.x=0,o.y=0,a.drawSkeletonDebug(o,e.preMultipliedAlpha),o.x=s,o.y=i,a.end(),t.pipelines.rebind()):t.nextTypeMatch||(a.end(),t.pipelines.rebind())}},9454:(t,e,i)=>{i={VERSION:"3.60.0",BlendModes:i(8351),ScaleModes:i(8196),AUTO:0,CANVAS:1,WEBGL:2,HEADLESS:3,FOREVER:-1,NONE:4,UP:5,DOWN:6,LEFT:7,RIGHT:8};t.exports=i},1081:(t,e,i)=>{var s=i(7473),a=i(6748),i=new s({initialize:function(t,e){this.parent=t,(this.events=e)||(this.events=t.events||t),this.list={},this.values={},this._frozen=!1,!t.hasOwnProperty("sys")&&this.events&&this.events.once(a.DESTROY,this.destroy,this)},get:function(t){var e=this.list;if(Array.isArray(t)){for(var i=[],s=0;s{t.exports="changedata"},7801:t=>{t.exports="changedata-"},4873:t=>{t.exports="destroy"},9966:t=>{t.exports="removedata"},4586:t=>{t.exports="setdata"},6748:(t,e,i)=>{t.exports={CHANGE_DATA:i(9044),CHANGE_DATA_KEY:i(7801),DESTROY:i(4873),REMOVE_DATA:i(9966),SET_DATA:i(4586)}},3004:(t,e,i)=>{var r=i(2776),o={flac:!1,aac:!1,audioData:!1,dolby:!1,m4a:!1,mp3:!1,ogg:!1,opus:!1,wav:!1,webAudio:!1,webm:!1};t.exports=function(){if("function"!=typeof importScripts){o.audioData=!!window.Audio,o.webAudio=!(!window.AudioContext&&!window.webkitAudioContext);var t,e,i,s=document.createElement("audio"),n=!!s.canPlayType;try{n&&(t=function(t,e){t=s.canPlayType("audio/"+t).replace(/^no$/,"");return e?Boolean(t||s.canPlayType("audio/"+e).replace(/^no$/,"")):Boolean(t)},o.ogg=t('ogg; codecs="vorbis"'),o.opus=t('ogg; codecs="opus"',"opus"),o.mp3=t("mpeg"),o.wav=t("wav"),o.m4a=t("x-m4a"),o.aac=t("aac"),o.flac=t("flac","x-flac"),o.webm=t('webm; codecs="vorbis"'),""!==s.canPlayType('audio/mp4; codecs="ec-3"'))&&(r.edge||r.safari&&9<=r.safariVersion&&/Mac OS X (\d+)_(\d+)/.test(navigator.userAgent)&&(e=parseInt(RegExp.$1,10),i=parseInt(RegExp.$2,10),10===e&&11<=i||10{var i=i(5203),s={chrome:!1,chromeVersion:0,edge:!1,firefox:!1,firefoxVersion:0,ie:!1,ieVersion:0,mobileSafari:!1,opera:!1,safari:!1,safariVersion:0,silk:!1,trident:!1,tridentVersion:0,es2019:!1};t.exports=(t=navigator.userAgent,/Edg\/\d+/.test(t)?(s.edge=!0,s.es2019=!0):/OPR/.test(t)?(s.opera=!0,s.es2019=!0):/Chrome\/(\d+)/.test(t)&&!i.windowsPhone?(s.chrome=!0,s.chromeVersion=parseInt(RegExp.$1,10),s.es2019=69{var s,n,r,o=i(8073),a={supportInverseAlpha:!1,supportNewBlendModes:!1};t.exports=("function"!=typeof importScripts&&void 0!==document&&(a.supportNewBlendModes=(s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAABAQMAAADD8p2OAAAAA1BMVEX/",n="AAAACklEQVQI12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg==",(r=new Image).onload=function(){var e=new Image;e.onload=function(){var t=o.create2D(e,6).getContext("2d",{willReadFrequently:!0});if(t.globalCompositeOperation="multiply",t.drawImage(r,0,0),t.drawImage(e,2,0),!t.getImageData(2,0,1,1))return!1;t=t.getImageData(2,0,1,1).data;o.remove(e),a.supportNewBlendModes=255===t[0]&&0===t[1]&&0===t[2]},e.src=s+"/wCKxvRF"+n},r.src=s+"AP804Oa6"+n,!1),a.supportInverseAlpha=function(){var t=o.create2D(this,2).getContext("2d",{willReadFrequently:!0}),e=(t.fillStyle="rgba(10, 20, 30, 0.5)",t.fillRect(0,0,1,1),t.getImageData(0,0,1,1));if(null===e)return!1;t.putImageData(e,1,0);t=t.getImageData(1,0,1,1),t=t.data[0]===e.data[0]&&t.data[1]===e.data[1]&&t.data[2]===e.data[2]&&t.data[3]===e.data[3];return o.remove(this),t}()),a)},6543:(t,e,i)=>{var s=i(5203),r=i(2776),o=i(8073),a={canvas:!1,canvasBitBltShift:null,file:!1,fileSystem:!1,getUserMedia:!0,littleEndian:!1,localStorage:!1,pointerLock:!1,stableSort:!1,support32bit:!1,vibration:!1,webGL:!1,worker:!1};t.exports=function(){if("function"!=typeof importScripts){a.canvas=!!window.CanvasRenderingContext2D;try{a.localStorage=!!localStorage.getItem}catch(t){a.localStorage=!1}a.file=!!(window.File&&window.FileReader&&window.FileList&&window.Blob),a.fileSystem=!!window.requestFileSystem;var t,e,i,n=!1;a.webGL=function(){if(window.WebGLRenderingContext)try{var t=o.createWebGL(this),e=t.getContext("webgl")||t.getContext("experimental-webgl"),i=o.create2D(this),s=i.getContext("2d",{willReadFrequently:!0}).createImageData(1,1);return n=s.data instanceof Uint8ClampedArray,o.remove(t),o.remove(i),!!e}catch(t){}return!1}(),a.worker=!!window.Worker,a.pointerLock="pointerLockElement"in document||"mozPointerLockElement"in document||"webkitPointerLockElement"in document,navigator.getUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia||navigator.oGetUserMedia,window.URL=window.URL||window.webkitURL||window.mozURL||window.msURL,a.getUserMedia=a.getUserMedia&&!!navigator.getUserMedia&&!!window.URL,r.firefox&&r.firefoxVersion<21&&(a.getUserMedia=!1),!s.iOS&&(r.ie||r.firefox||r.chrome)&&(a.canvasBitBltShift=!0),(r.safari||r.mobileSafari)&&(a.canvasBitBltShift=!1),navigator.vibrate=navigator.vibrate||navigator.webkitVibrate||navigator.mozVibrate||navigator.msVibrate,navigator.vibrate&&(a.vibration=!0),"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint32Array&&(a.littleEndian=(t=new ArrayBuffer(4),e=new Uint8Array(t),i=new Uint32Array(t),e[0]=161,e[1]=178,e[2]=195,e[3]=212,3569595041===i[0]||2712847316!==i[0]&&null)),a.support32bit="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof Int32Array&&null!==a.littleEndian&&n}return a}()},3922:t=>{var r={available:!1,cancel:"",keyboard:!1,request:""};t.exports=function(){if("function"!=typeof importScripts){for(var t="Fullscreen",e="FullScreen",i=["request"+t,"request"+e,"webkitRequest"+t,"webkitRequest"+e,"msRequest"+t,"msRequest"+e,"mozRequest"+e,"mozRequest"+t],s=0;s{var i=i(2776),s={gamepads:!1,mspointer:!1,touch:!1,wheelEvent:null};t.exports=("function"!=typeof importScripts&&(("ontouchstart"in document.documentElement||navigator.maxTouchPoints&&1<=navigator.maxTouchPoints)&&(s.touch=!0),(navigator.msPointerEnabled||navigator.pointerEnabled)&&(s.mspointer=!0),navigator.getGamepads&&(s.gamepads=!0),"onwheel"in window||i.ie&&"WheelEvent"in window?s.wheelEvent="wheel":"onmousewheel"in window?s.wheelEvent="mousewheel":i.firefox&&"MouseScrollEvent"in window&&(s.wheelEvent="DOMMouseScroll")),s)},5203:t=>{var e,i={android:!1,chromeOS:!1,cordova:!1,crosswalk:!1,desktop:!1,ejecta:!1,electron:!1,iOS:!1,iOSVersion:0,iPad:!1,iPhone:!1,kindle:!1,linux:!1,macOS:!1,node:!1,nodeWebkit:!1,pixelRatio:1,webApp:!1,windows:!1,windowsPhone:!1};t.exports=("function"!=typeof importScripts&&(t=navigator.userAgent,/Windows/.test(t)?i.windows=!0:/Mac OS/.test(t)&&!/like Mac OS/.test(t)?navigator.maxTouchPoints&&2{var n=i(4597),r={h264:!1,hls:!1,mp4:!1,m4v:!1,ogg:!1,vp9:!1,webm:!1,hasRequestVideoFrame:!1};t.exports=function(){if("function"!=typeof importScripts){var t=document.createElement("video"),e=!!t.canPlayType,i=/^no$/;try{e&&(t.canPlayType('video/ogg; codecs="theora"').replace(i,"")&&(r.ogg=!0),t.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(i,"")&&(r.h264=!0,r.mp4=!0),t.canPlayType("video/x-m4v").replace(i,"")&&(r.m4v=!0),t.canPlayType('video/webm; codecs="vp8, vorbis"').replace(i,"")&&(r.webm=!0),t.canPlayType('video/webm; codecs="vp9"').replace(i,"")&&(r.vp9=!0),t.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(i,""))&&(r.hls=!0)}catch(t){}t.parentNode&&t.parentNode.removeChild(t),r.getVideoURL=function(t){Array.isArray(t)||(t=[t]);for(var e=0;e{t.exports={os:i(5203),browser:i(2776),features:i(6543),input:i(1454),audio:i(3004),video:i(2131),fullscreen:i(3922),canvasFeatures:i(6505)}},5686:(t,e,i)=>{var i=i(7473),s=new Float32Array(20),n=new i({initialize:function(){this._matrix=new Float32Array(20),this.alpha=1,this._dirty=!0,this._data=new Float32Array(20),this.reset()},set:function(t){return this._matrix.set(t),this._dirty=!0,this},reset:function(){var t=this._matrix;return t.fill(0),t[0]=1,t[6]=1,t[12]=1,t[18]=1,this.alpha=1,this._dirty=!0,this},getData:function(){var t=this._data;return this._dirty&&(t.set(this._matrix),t[4]/=255,t[9]/=255,t[14]/=255,t[19]/=255,this._dirty=!1),t},brightness:function(t,e){t=void 0===t?0:t;return this.multiply([t,0,0,0,0,0,t,0,0,0,0,0,t,0,0,0,0,0,1,0],e=void 0===e?!1:e)},saturate:function(t,e){var t=2*(t=void 0===t?0:t)/3+1,i=-.5*(t-1);return this.multiply([t,i,i,0,0,i,t,i,0,0,i,i,t,0,0,0,0,0,1,0],e=void 0===e?!1:e)},desaturate:function(t){return this.saturate(-1,t=void 0===t?!1:t)},hue:function(t,e){void 0===e&&(e=!1),t=(t=void 0===t?0:t)/180*Math.PI;var i=Math.cos(t),t=Math.sin(t);return this.multiply([.213+.787*i+-.213*t,.715+-.715*i+-.715*t,.072+-.072*i+.928*t,0,0,.213+-.213*i+.143*t,.715+i*(1-.715)+.14*t,.072+-.072*i+-.283*t,0,0,.213+-.213*i+-.787*t,.715+-.715*i+.715*t,.072+.928*i+.072*t,0,0,0,0,0,1,0],e)},grayscale:function(t,e){return this.saturate(-(t=void 0===t?1:t),e=void 0===e?!1:e)},blackWhite:function(t){return this.multiply(n.BLACK_WHITE,t=void 0===t?!1:t)},contrast:function(t,e){var t=(t=void 0===t?0:t)+1,i=-.5*(t-1);return this.multiply([t,0,0,0,i,0,t,0,0,i,0,0,t,0,i,0,0,0,1,0],e=void 0===e?!1:e)},negative:function(t){return this.multiply(n.NEGATIVE,t=void 0===t?!1:t)},desaturateLuminance:function(t){return this.multiply(n.DESATURATE_LUMINANCE,t=void 0===t?!1:t)},sepia:function(t){return this.multiply(n.SEPIA,t=void 0===t?!1:t)},night:function(t,e){return this.multiply([-2*(t=void 0===t?.1:t),-t,0,0,0,-t,0,t,0,0,0,t,2*t,0,0,0,0,0,1,0],e=void 0===e?!1:e)},lsd:function(t){return this.multiply(n.LSD,t=void 0===t?!1:t)},brown:function(t){return this.multiply(n.BROWN,t=void 0===t?!1:t)},vintagePinhole:function(t){return this.multiply(n.VINTAGE,t=void 0===t?!1:t)},kodachrome:function(t){return this.multiply(n.KODACHROME,t=void 0===t?!1:t)},technicolor:function(t){return this.multiply(n.TECHNICOLOR,t=void 0===t?!1:t)},polaroid:function(t){return this.multiply(n.POLAROID,t=void 0===t?!1:t)},shiftToBGR:function(t){return this.multiply(n.SHIFT_BGR,t=void 0===t?!1:t)},multiply:function(t,e){(e=void 0===e?!1:e)||this.reset();var e=this._matrix,i=s;return i.set(e),e.set([i[0]*t[0]+i[1]*t[5]+i[2]*t[10]+i[3]*t[15],i[0]*t[1]+i[1]*t[6]+i[2]*t[11]+i[3]*t[16],i[0]*t[2]+i[1]*t[7]+i[2]*t[12]+i[3]*t[17],i[0]*t[3]+i[1]*t[8]+i[2]*t[13]+i[3]*t[18],i[0]*t[4]+i[1]*t[9]+i[2]*t[14]+i[3]*t[19]+i[4],i[5]*t[0]+i[6]*t[5]+i[7]*t[10]+i[8]*t[15],i[5]*t[1]+i[6]*t[6]+i[7]*t[11]+i[8]*t[16],i[5]*t[2]+i[6]*t[7]+i[7]*t[12]+i[8]*t[17],i[5]*t[3]+i[6]*t[8]+i[7]*t[13]+i[8]*t[18],i[5]*t[4]+i[6]*t[9]+i[7]*t[14]+i[8]*t[19]+i[9],i[10]*t[0]+i[11]*t[5]+i[12]*t[10]+i[13]*t[15],i[10]*t[1]+i[11]*t[6]+i[12]*t[11]+i[13]*t[16],i[10]*t[2]+i[11]*t[7]+i[12]*t[12]+i[13]*t[17],i[10]*t[3]+i[11]*t[8]+i[12]*t[13]+i[13]*t[18],i[10]*t[4]+i[11]*t[9]+i[12]*t[14]+i[13]*t[19]+i[14],i[15]*t[0]+i[16]*t[5]+i[17]*t[10]+i[18]*t[15],i[15]*t[1]+i[16]*t[6]+i[17]*t[11]+i[18]*t[16],i[15]*t[2]+i[16]*t[7]+i[17]*t[12]+i[18]*t[17],i[15]*t[3]+i[16]*t[8]+i[17]*t[13]+i[18]*t[18],i[15]*t[4]+i[16]*t[9]+i[17]*t[14]+i[18]*t[19]+i[19]]),this._dirty=!0,this}});n.BLACK_WHITE=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0],n.NEGATIVE=[-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0],n.DESATURATE_LUMINANCE=[.2764723,.929708,.0938197,0,-37.1,.2764723,.929708,.0938197,0,-37.1,.2764723,.929708,.0938197,0,-37.1,0,0,0,1,0],n.SEPIA=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0],n.LSD=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0],n.BROWN=[.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0],n.VINTAGE=[.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0],n.KODACHROME=[1.1285582396593525,-.3967382283601348,-.03992559172921793,0,63.72958762196502,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,24.732407896706203,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,35.62982807460946,0,0,0,1,0],n.TECHNICOLOR=[1.9125277891456083,-.8545344976951645,-.09155508482755585,0,11.793603434377337,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-70.35205161461398,-.231103377548616,-.7501899197440212,1.847597816108189,0,30.950940869491138,0,0,0,1,0],n.POLAROID=[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],n.SHIFT_BGR=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0],t.exports=n},8073:(t,e,i)=>{var s,o,n,a=i(9454),h=i(2150),l=[],u=!1;t.exports={create2D:function(t,e,i){return s(t,e,i,a.CANVAS)},create:s=function(t,e,i,s,n){void 0===e&&(e=1),void 0===i&&(i=1),void 0===s&&(s=a.CANVAS),void 0===n&&(n=!1);var r=o(s),t=(null===r?(r={parent:t,canvas:document.createElement("canvas"),type:s},s===a.CANVAS&&l.push(r)):r.parent=t,r.canvas);return n&&(r.parent=t),t.width=e,t.height=i,u&&s===a.CANVAS&&h.disable(t.getContext("2d",{willReadFrequently:!1})),t},createWebGL:function(t,e,i){return s(t,e,i,a.WEBGL)},disableSmoothing:function(){u=!0},enableSmoothing:function(){u=!1},first:o=function(t){if((t=void 0===t?a.CANVAS:t)!==a.WEBGL)for(var e=0;e{var e,i="";t.exports={disable:function(t){return(i=""===i?e(t):i)&&(t[i]=!1),t},enable:function(t){return(i=""===i?e(t):i)&&(t[i]=!0),t},getPrefix:e=function(t){for(var e=["i","webkitI","msI","mozI","oI"],i=0;i{var s=i(7473),i=i(3649),r=new s({initialize:function(t,e,i,s,n,r){e=e||t.sys.make.image({x:i,y:s,key:n,frame:r,add:!1}),this.bitmapMask=e,this.invertAlpha=!1,this.isStencil=!1},setBitmap:function(t){this.bitmapMask=t},preRenderWebGL:function(t,e,i){t.pipelines.BITMAPMASK_PIPELINE.beginMask(this,e,i)},postRenderWebGL:function(t,e,i){t.pipelines.BITMAPMASK_PIPELINE.endMask(this,e,i)},preRenderCanvas:function(){},postRenderCanvas:function(){},destroy:function(){this.bitmapMask=null}});i.register("bitmapMask",function(t,e,i,s,n){return new r(this.scene,t,e,i,s,n)}),t.exports=r},6726:(t,e,i)=>{i=new(i(7473))({initialize:function(t,e){this.geometryMask=e,this.invertAlpha=!1,this.isStencil=!0,this.level=0},setShape:function(t){return this.geometryMask=t,this},setInvertAlpha:function(t){return this.invertAlpha=t=void 0===t?!0:t,this},preRenderWebGL:function(t,e,i){var s=t.gl;t.flush(),0===t.maskStack.length&&(s.enable(s.STENCIL_TEST),s.clear(s.STENCIL_BUFFER_BIT),t.maskCount=0),t.currentCameraMask.mask!==this&&(t.currentMask.mask=this),t.maskStack.push({mask:this,camera:i}),this.applyStencil(t,i,!0),t.maskCount++},applyStencil:function(t,e,i){var s=t.gl,n=this.geometryMask,r=t.maskCount;s.colorMask(!1,!1,!1,!1),i?(s.stencilFunc(s.EQUAL,r,255),s.stencilOp(s.KEEP,s.KEEP,s.INCR),r++):(s.stencilFunc(s.EQUAL,r+1,255),s.stencilOp(s.KEEP,s.KEEP,s.DECR)),this.level=r,n.renderWebGL(t,n,e),t.flush(),s.colorMask(!0,!0,!0,!0),s.stencilOp(s.KEEP,s.KEEP,s.KEEP),this.invertAlpha?s.stencilFunc(s.NOTEQUAL,r,255):s.stencilFunc(s.EQUAL,r,255)},postRenderWebGL:function(t){var e=t.gl,i=(t.maskStack.pop(),t.maskCount--,t.flush(),t.currentMask);0===t.maskStack.length?(i.mask=null,e.disable(e.STENCIL_TEST)):((e=t.maskStack[t.maskStack.length-1]).mask.applyStencil(t,e.camera,!1),t.currentCameraMask.mask!==e.mask?(i.mask=e.mask,i.camera=e.camera):i.mask=null)},preRenderCanvas:function(t,e,i){var s=this.geometryMask;t.currentContext.save(),s.renderCanvas(t,s,i,null,null,!0),t.currentContext.clip()},postRenderCanvas:function(t){t.currentContext.restore()},destroy:function(){this.geometryMask=null}});t.exports=i},7340:(t,e,i)=>{var s=i(7473),n=i(6128),r=i(1571),i=new s({Extends:n,initialize:function(t,e){void 0===e&&(e=1),n.call(this,r.BARREL,t),this.amount=e}});t.exports=i},5170:(t,e,i)=>{var s=i(7473),a=i(6128),h=i(1571),i=new s({Extends:a,initialize:function(t,e,i,s,n,r,o){void 0===i&&(i=1),void 0===s&&(s=1),void 0===n&&(n=1),void 0===r&&(r=1),void 0===o&&(o=4),a.call(this,h.BLOOM,t),this.steps=o,this.offsetX=i,this.offsetY=s,this.blurStrength=n,this.strength=r,this.glcolor=[1,1,1],null!=e&&(this.color=e)},color:{get:function(){var t=this.glcolor;return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)},set:function(t){var e=this.glcolor;e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255}}});t.exports=i},4199:(t,e,i)=>{var s=i(7473),a=i(6128),h=i(1571),i=new s({Extends:a,initialize:function(t,e,i,s,n,r,o){void 0===e&&(e=0),void 0===i&&(i=2),void 0===s&&(s=2),void 0===n&&(n=1),void 0===o&&(o=4),a.call(this,h.BLUR,t),this.quality=0,this.x=i,this.y=s,this.steps=o,this.strength=n,this.glcolor=[1,1,1],null!=r&&(this.color=r)},color:{get:function(){var t=this.glcolor;return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)},set:function(t){var e=this.glcolor;e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255}}});t.exports=i},3132:(t,e,i)=>{var s=i(7473),h=i(6128),l=i(1571),i=new s({Extends:h,initialize:function(t,e,i,s,n,r,o,a){void 0===e&&(e=.5),void 0===i&&(i=1),void 0===s&&(s=.2),void 0===n&&(n=!1),void 0===r&&(r=1),void 0===o&&(o=1),void 0===a&&(a=1),h.call(this,l.BOKEH,t),this.radius=e,this.amount=i,this.contrast=s,this.isTiltShift=n,this.strength=a,this.blurX=r,this.blurY=o}});t.exports=i},6610:(t,e,i)=>{var s=i(7473),o=i(6128),a=i(1571),i=new s({Extends:o,initialize:function(t,e,i,s,n,r){void 0===e&&(e=8),void 0===n&&(n=1),void 0===r&&(r=.005),o.call(this,a.CIRCLE,t),this.scale=n,this.feather=r,this.thickness=e,this.glcolor=[1,.2,.7],this.glcolor2=[1,0,0,.4],null!=i&&(this.color=i),null!=s&&(this.backgroundColor=s)},color:{get:function(){var t=this.glcolor;return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)},set:function(t){var e=this.glcolor;e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255}},backgroundColor:{get:function(){var t=this.glcolor2;return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)},set:function(t){var e=this.glcolor2;e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255}}});t.exports=i},4931:(t,e,i)=>{var s=i(7473),n=i(5686),r=i(1571),i=new s({Extends:n,initialize:function(t){n.call(this),this.type=r.COLOR_MATRIX,this.gameObject=t,this.active=!0},destroy:function(){this.gameObject=null,this._matrix=null,this._data=null}});t.exports=i},6128:(t,e,i)=>{i=new(i(7473))({initialize:function(t,e){this.type=t,this.gameObject=e,this.active=!0},setActive:function(t){return this.active=t,this},destroy:function(){this.gameObject=null,this.active=!1}});t.exports=i},9195:(t,e,i)=>{var s=i(7473),n=i(6128),r=i(1571),i=new s({Extends:n,initialize:function(t,e,i,s){void 0===e&&(e="__WHITE"),void 0===i&&(i=.005),void 0===s&&(s=.005),n.call(this,r.DISPLACEMENT,t),this.x=i,this.y=s,this.glTexture,this.setTexture(e)},setTexture:function(t){t=this.gameObject.scene.sys.textures.getFrame(t);return t&&(this.glTexture=t.glTexture),this}});t.exports=i},445:(t,e,i)=>{var s=i(7473),r=i(6128),o=i(1571),i=new s({Extends:r,initialize:function(t,e,i,s,n){void 0===i&&(i=4),void 0===s&&(s=0),void 0===n&&(n=!1),r.call(this,o.GLOW,t),this.outerStrength=i,this.innerStrength=s,this.knockout=n,this.glcolor=[1,1,1,1],void 0!==e&&(this.color=e)},color:{get:function(){var t=this.glcolor;return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)},set:function(t){var e=this.glcolor;e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255}}});t.exports=i},7724:(t,e,i)=>{var s=i(7473),l=i(6128),u=i(1571),i=new s({Extends:l,initialize:function(t,e,i,s,n,r,o,a,h){void 0===s&&(s=.2),void 0===n&&(n=0),void 0===r&&(r=0),void 0===o&&(o=0),void 0===a&&(a=1),void 0===h&&(h=0),l.call(this,u.GRADIENT,t),this.alpha=s,this.size=h,this.fromX=n,this.fromY=r,this.toX=o,this.toY=a,this.glcolor1=[255,0,0],this.glcolor2=[0,255,0],null!=e&&(this.color1=e),null!=i&&(this.color2=i)},color1:{get:function(){var t=this.glcolor1;return(t[0]<<16)+(t[1]<<8)+(0|t[2])},set:function(t){var e=this.glcolor1;e[0]=t>>16&255,e[1]=t>>8&255,e[2]=255&t}},color2:{get:function(){var t=this.glcolor2;return(t[0]<<16)+(t[1]<<8)+(0|t[2])},set:function(t){var e=this.glcolor2;e[0]=t>>16&255,e[1]=t>>8&255,e[2]=255&t}}});t.exports=i},4412:(t,e,i)=>{var s=i(7473),n=i(6128),r=i(1571),i=new s({Extends:n,initialize:function(t,e){void 0===e&&(e=1),n.call(this,r.PIXELATE,t),this.amount=e}});t.exports=i},75:(t,e,i)=>{var s=i(7473),h=i(6128),l=i(1571),i=new s({Extends:h,initialize:function(t,e,i,s,n,r,o,a){void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=.1),void 0===n&&(n=1),void 0===o&&(o=6),void 0===a&&(a=1),h.call(this,l.SHADOW,t),this.x=e,this.y=i,this.decay=s,this.power=n,this.glcolor=[0,0,0,1],this.samples=o,this.intensity=a,void 0!==r&&(this.color=r)},color:{get:function(){var t=this.glcolor;return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)},set:function(t){var e=this.glcolor;e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255}}});t.exports=i},8734:(t,e,i)=>{var s=i(7473),r=i(6128),o=i(1571),i=new s({Extends:r,initialize:function(t,e,i,s,n){void 0===e&&(e=.5),void 0===i&&(i=.5),void 0===s&&(s=3),void 0===n&&(n=!1),r.call(this,o.SHINE,t),this.speed=e,this.lineWidth=i,this.gradient=s,this.reveal=n}});t.exports=i},2437:(t,e,i)=>{var s=i(7473),r=i(6128),o=i(1571),i=new s({Extends:r,initialize:function(t,e,i,s,n){void 0===e&&(e=.5),void 0===i&&(i=.5),void 0===s&&(s=.5),void 0===n&&(n=.5),r.call(this,o.VIGNETTE,t),this.x=e,this.y=i,this.radius=s,this.strength=n}});t.exports=i},5984:(t,e,i)=>{var s=i(7473),r=i(6128),o=i(1571),i=new s({Extends:r,initialize:function(t,e,i,s,n){void 0===e&&(e=.1),void 0===i&&(i=0),void 0===s&&(s=0),void 0===n&&(n=!1),r.call(this,o.WIPE,t),this.progress=0,this.wipeWidth=e,this.direction=i,this.axis=s,this.reveal=n}});t.exports=i},1571:t=>{t.exports={GLOW:4,SHADOW:5,PIXELATE:6,VIGNETTE:7,SHINE:8,BLUR:9,GRADIENT:12,BLOOM:13,COLOR_MATRIX:14,CIRCLE:15,BARREL:16,DISPLACEMENT:17,WIPE:18,BOKEH:19}},7347:(t,e,i)=>{var s=i(1030),n=i(1571),s=s(!1,{Barrel:i(7340),Controller:i(6128),Bloom:i(5170),Blur:i(4199),Bokeh:i(3132),Circle:i(6610),ColorMatrix:i(4931),Displacement:i(9195),Glow:i(445),Gradient:i(7724),Pixelate:i(4412),Shadow:i(75),Shine:i(8734),Vignette:i(2437),Wipe:i(5984)},n);t.exports=s},2494:(t,e,i)=>{var r=i(8351),o=i(8361);t.exports=function(t,e,i){e.x=o(i,"x",0),e.y=o(i,"y",0),e.depth=o(i,"depth",0),e.flipX=o(i,"flipX",!1),e.flipY=o(i,"flipY",!1);var s,n=o(i,"scale",null),n=("number"==typeof n?e.setScale(n):null!==n&&(e.scaleX=o(n,"x",1),e.scaleY=o(n,"y",1)),o(i,"scrollFactor",null)),n=("number"==typeof n?e.setScrollFactor(n):null!==n&&(e.scrollFactorX=o(n,"x",1),e.scrollFactorY=o(n,"y",1)),e.rotation=o(i,"rotation",0),o(i,"angle",null)),n=(null!==n&&(e.angle=n),e.alpha=o(i,"alpha",1),o(i,"origin",null));return"number"==typeof n?e.setOrigin(n):null!==n&&(s=o(n,"x",.5),n=o(n,"y",.5),e.setOrigin(s,n)),e.blendMode=o(i,"blendMode",r.NORMAL),e.visible=o(i,"visible",!0),o(i,"add",!0)&&t.sys.displayList.add(e),e.preUpdate&&t.sys.updateList.add(e),e}},2273:(t,e,i)=>{var s=i(7473),n=i(6125),r=i(1081),o=i(4399),a=i(3389),h=i(204),l=new s({Extends:o,initialize:function(t,e){o.call(this),this.scene=t,this.displayList=null,this.type=e,this.state=0,this.parentContainer=null,this.name="",this.active=!0,this.tabIndex=-1,this.data=null,this.renderFlags=15,this.cameraFilter=0,this.input=null,this.body=null,this.ignoreDestroy=!1,this.on(a.ADDED_TO_SCENE,this.addedToScene,this),this.on(a.REMOVED_FROM_SCENE,this.removedFromScene,this),t.sys.queueDepthSort()},setActive:function(t){return this.active=t,this},setName:function(t){return this.name=t,this},setState:function(t){return this.state=t,this},setDataEnabled:function(){return this.data||(this.data=new r(this)),this},setData:function(t,e){return this.data||(this.data=new r(this)),this.data.set(t,e),this},incData:function(t,e){return this.data||(this.data=new r(this)),this.data.inc(t,e),this},toggleData:function(t){return this.data||(this.data=new r(this)),this.data.toggle(t),this},getData:function(t){return this.data||(this.data=new r(this)),this.data.get(t)},setInteractive:function(t,e,i){return this.scene.sys.input.enable(this,t,e,i),this},disableInteractive:function(){return this.scene.sys.input.disable(this),this},removeInteractive:function(){return this.scene.sys.input.clear(this),this.input=void 0,this},addedToScene:function(){},removedFromScene:function(){},update:function(){},toJSON:function(){return n(this)},willRender:function(t){return!(this.displayList&&this.displayList.active&&!this.displayList.willRender(t)||l.RENDER_MASK!==this.renderFlags||0!==this.cameraFilter&&this.cameraFilter&t.id)},getIndexList:function(){for(var t=this,e=this.parentContainer,i=[];e&&(i.unshift(e.getIndex(t)),(t=e).parentContainer);)e=e.parentContainer;return this.displayList?i.unshift(this.displayList.getIndex(t)):i.unshift(this.scene.sys.displayList.getIndex(t)),i},addToDisplayList:function(t){return void 0===t&&(t=this.scene.sys.displayList),this.displayList&&this.displayList!==t&&this.removeFromDisplayList(),t.exists(this)||((this.displayList=t).add(this,!0),t.queueDepthSort(),this.emit(a.ADDED_TO_SCENE,this,this.scene),t.events.emit(h.ADDED_TO_SCENE,this,this.scene)),this},addToUpdateList:function(){return this.scene&&this.preUpdate&&this.scene.sys.updateList.add(this),this},removeFromDisplayList:function(){var t=this.displayList||this.scene.sys.displayList;return t&&t.exists(this)&&(t.remove(this,!0),t.queueDepthSort(),this.displayList=null,this.emit(a.REMOVED_FROM_SCENE,this,this.scene),t.events.emit(h.REMOVED_FROM_SCENE,this,this.scene)),this},removeFromUpdateList:function(){return this.scene&&this.preUpdate&&this.scene.sys.updateList.remove(this),this},destroy:function(t){this.scene&&!this.ignoreDestroy&&(void 0===t&&(t=!1),this.preDestroy&&this.preDestroy.call(this),this.emit(a.DESTROY,this,t),this.removeAllListeners(),this.postPipelines&&this.resetPostPipeline(!0),this.removeFromDisplayList(),this.removeFromUpdateList(),this.input&&(this.scene.sys.input.clear(this),this.input=void 0),this.data&&(this.data.destroy(),this.data=void 0),this.body&&(this.body.destroy(),this.body=void 0),this.preFX&&(this.preFX.destroy(),this.preFX=void 0),this.postFX&&(this.postFX.destroy(),this.postFX=void 0),this.active=!1,this.visible=!1,this.scene=void 0,this.parentContainer=void 0)}});l.RENDER_MASK=15,t.exports=l},3649:(t,e,i)=>{var s=i(7473),n=i(8456),r=i(204),o=new s({initialize:function(t){this.scene=t,this.systems=t.sys,this.events=t.sys.events,this.displayList,this.updateList,this.events.once(r.BOOT,this.boot,this),this.events.on(r.START,this.start,this)},boot:function(){this.displayList=this.systems.displayList,this.updateList=this.systems.updateList,this.events.once(r.DESTROY,this.destroy,this)},start:function(){this.events.once(r.SHUTDOWN,this.shutdown,this)},existing:function(t){return(t.renderCanvas||t.renderWebGL)&&this.displayList.add(t),t.preUpdate&&this.updateList.add(t),t},shutdown:function(){this.events.off(r.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.events.off(r.START,this.start,this),this.scene=null,this.systems=null,this.events=null,this.displayList=null,this.updateList=null}});o.register=function(t,e){o.prototype.hasOwnProperty(t)||(o.prototype[t]=e)},o.remove=function(t){o.prototype.hasOwnProperty(t)&&delete o.prototype[t]},n.register("GameObjectFactory",o,"add"),t.exports=o},2208:(t,e,i)=>{var i=i(4227),o=new i,a=new i,h=new i,l={camera:o,sprite:a,calc:h};t.exports=function(t,e,i){var s=o,n=a,r=h;return n.applyITRS(t.x,t.y,t.rotation,t.scaleX,t.scaleY),s.copyFrom(e.matrix),i?(s.multiplyWithOffset(i,-e.scrollX*t.scrollFactorX,-e.scrollY*t.scrollFactorY),n.e=t.x,n.f=t.y):(n.e-=e.scrollX*t.scrollFactorX,n.f-=e.scrollY*t.scrollFactorY),s.multiply(n,r),l}},4344:(t,e,i)=>{var n=i(2915);t.exports={_alpha:1,_alphaTL:1,_alphaTR:1,_alphaBL:1,_alphaBR:1,clearAlpha:function(){return this.setAlpha(1)},setAlpha:function(t,e,i,s){return void 0===t&&(t=1),void 0===e?this.alpha=t:(this._alphaTL=n(t,0,1),this._alphaTR=n(e,0,1),this._alphaBL=n(i,0,1),this._alphaBR=n(s,0,1)),this},alpha:{get:function(){return this._alpha},set:function(t){t=n(t,0,1);this._alpha=t,this._alphaTL=t,this._alphaTR=t,this._alphaBL=t,0===(this._alphaBR=t)?this.renderFlags&=-3:this.renderFlags|=2}},alphaTopLeft:{get:function(){return this._alphaTL},set:function(t){t=n(t,0,1);0!==(this._alphaTL=t)&&(this.renderFlags|=2)}},alphaTopRight:{get:function(){return this._alphaTR},set:function(t){t=n(t,0,1);0!==(this._alphaTR=t)&&(this.renderFlags|=2)}},alphaBottomLeft:{get:function(){return this._alphaBL},set:function(t){t=n(t,0,1);0!==(this._alphaBL=t)&&(this.renderFlags|=2)}},alphaBottomRight:{get:function(){return this._alphaBR},set:function(t){t=n(t,0,1);0!==(this._alphaBR=t)&&(this.renderFlags|=2)}}}},4518:(t,e,i)=>{var s=i(2915);t.exports={_alpha:1,clearAlpha:function(){return this.setAlpha(1)},setAlpha:function(t){return this.alpha=t=void 0===t?1:t,this},alpha:{get:function(){return this._alpha},set:function(t){t=s(t,0,1);0===(this._alpha=t)?this.renderFlags&=-3:this.renderFlags|=2}}}},5173:(t,e,i)=>{var s=i(8351),i={_blendMode:s.NORMAL,blendMode:{get:function(){return this._blendMode},set:function(t){"string"==typeof t&&(t=s[t]),-1<=(t|=0)&&(this._blendMode=t)}},setBlendMode:function(t){return this.blendMode=t,this}};t.exports=i},1991:t=>{t.exports={width:0,height:0,displayWidth:{get:function(){return this.scaleX*this.width},set:function(t){this.scaleX=t/this.width}},displayHeight:{get:function(){return this.scaleY*this.height},set:function(t){this.scaleY=t/this.height}},setSize:function(t,e){return this.width=t,this.height=e,this},setDisplaySize:function(t,e){return this.displayWidth=t,this.displayHeight=e,this}}},8305:t=>{t.exports={texture:null,frame:null,isCropped:!1,setCrop:function(t,e,i,s){return void 0===t?this.isCropped=!1:this.frame&&("number"==typeof t?this.frame.setCropUVs(this._crop,t,e,i,s,this.flipX,this.flipY):this.frame.setCropUVs(this._crop,t.x,t.y,t.width,t.height,this.flipX,this.flipY),this.isCropped=!0),this},resetCropObject:function(){return{u0:0,v0:0,u1:0,v1:0,width:0,height:0,x:0,y:0,flipX:!1,flipY:!1,cx:0,cy:0,cw:0,ch:0}}}},3131:t=>{t.exports={_depth:0,depth:{get:function(){return this._depth},set:function(t){this.displayList&&this.displayList.queueDepthSort(),this._depth=t}},setDepth:function(t){return this.depth=t=void 0===t?0:t,this}}},1626:(t,e,i)=>{var s=i(7473),h=i(7347),r=i(8935),i=new s({initialize:function(t,e){this.gameObject=t,this.isPost=e,this.enabled=!1,this.list=[],this.padding=0},setPadding:function(t){return this.padding=t=void 0===t?0:t,this.gameObject},onFXCopy:function(){},onFX:function(){},enable:function(t){var e;this.isPost||((e=this.gameObject.scene.sys.renderer)&&e.pipelines?(this.gameObject.pipeline=e.pipelines.FX_PIPELINE,void 0!==t&&(this.padding=t),this.enabled=!0):this.enabled=!1)},clear:function(){if(this.isPost)this.gameObject.resetPostPipeline(!0);else{for(var t=this.list,e=0;e{t.exports={flipX:!1,flipY:!1,toggleFlipX:function(){return this.flipX=!this.flipX,this},toggleFlipY:function(){return this.flipY=!this.flipY,this},setFlipX:function(t){return this.flipX=t,this},setFlipY:function(t){return this.flipY=t,this},setFlip:function(t,e){return this.flipX=t,this.flipY=e,this},resetFlip:function(){return this.flipX=!1,this.flipY=!1,this}}},3671:(t,e,i)=>{var l=i(1392),s=i(9876),n=i(2529);t.exports={prepareBoundsOutput:function(t,e){return void 0===e&&(e=!1),0!==this.rotation&&s(t,this.x,this.y,this.rotation),e&&this.parentContainer&&this.parentContainer.getBoundsTransformMatrix().transformPoint(t.x,t.y,t),t},getCenter:function(t,e){return(t=void 0===t?new n:t).x=this.x-this.displayWidth*this.originX+this.displayWidth/2,t.y=this.y-this.displayHeight*this.originY+this.displayHeight/2,this.prepareBoundsOutput(t,e)},getTopLeft:function(t,e){return(t=t||new n).x=this.x-this.displayWidth*this.originX,t.y=this.y-this.displayHeight*this.originY,this.prepareBoundsOutput(t,e)},getTopCenter:function(t,e){return(t=t||new n).x=this.x-this.displayWidth*this.originX+this.displayWidth/2,t.y=this.y-this.displayHeight*this.originY,this.prepareBoundsOutput(t,e)},getTopRight:function(t,e){return(t=t||new n).x=this.x-this.displayWidth*this.originX+this.displayWidth,t.y=this.y-this.displayHeight*this.originY,this.prepareBoundsOutput(t,e)},getLeftCenter:function(t,e){return(t=t||new n).x=this.x-this.displayWidth*this.originX,t.y=this.y-this.displayHeight*this.originY+this.displayHeight/2,this.prepareBoundsOutput(t,e)},getRightCenter:function(t,e){return(t=t||new n).x=this.x-this.displayWidth*this.originX+this.displayWidth,t.y=this.y-this.displayHeight*this.originY+this.displayHeight/2,this.prepareBoundsOutput(t,e)},getBottomLeft:function(t,e){return(t=t||new n).x=this.x-this.displayWidth*this.originX,t.y=this.y-this.displayHeight*this.originY+this.displayHeight,this.prepareBoundsOutput(t,e)},getBottomCenter:function(t,e){return(t=t||new n).x=this.x-this.displayWidth*this.originX+this.displayWidth/2,t.y=this.y-this.displayHeight*this.originY+this.displayHeight,this.prepareBoundsOutput(t,e)},getBottomRight:function(t,e){return(t=t||new n).x=this.x-this.displayWidth*this.originX+this.displayWidth,t.y=this.y-this.displayHeight*this.originY+this.displayHeight,this.prepareBoundsOutput(t,e)},getBounds:function(t){var e,i,s,n,r,o,a,h;return void 0===t&&(t=new l),a=(h=(this.parentContainer?(h=this.parentContainer.getBoundsTransformMatrix(),this.getTopLeft(t),h.transformPoint(t.x,t.y,t),e=t.x,i=t.y,this.getTopRight(t),h.transformPoint(t.x,t.y,t),s=t.x,n=t.y,this.getBottomLeft(t),h.transformPoint(t.x,t.y,t),r=t.x,o=t.y,this.getBottomRight(t),h.transformPoint(t.x,t.y,t)):(this.getTopLeft(t),e=t.x,i=t.y,this.getTopRight(t),s=t.x,n=t.y,this.getBottomLeft(t),r=t.x,o=t.y,this.getBottomRight(t)),t.x),t.y),t.x=Math.min(e,s,r,h),t.y=Math.min(i,n,o,a),t.width=Math.max(e,s,r,h)-t.x,t.height=Math.max(i,n,o,a)-t.y,t}}},2246:(t,e,i)=>{var r=i(7499),s=i(6726);t.exports={mask:null,setMask:function(t){return this.mask=t,this},clearMask:function(t){return(t=void 0===t?!1:t)&&this.mask&&this.mask.destroy(),this.mask=null,this},createBitmapMask:function(t,e,i,s,n){return void 0===t&&(this.texture||this.shader||this.geom)&&(t=this),new r(this.scene,t,e,i,s,n)},createGeometryMask:function(t){return void 0!==t||"Graphics"!==this.type&&!this.geom||(t=this),new s(this.scene,t)}}},5085:t=>{t.exports={_originComponent:!0,originX:.5,originY:.5,_displayOriginX:0,_displayOriginY:0,displayOriginX:{get:function(){return this._displayOriginX},set:function(t){this._displayOriginX=t,this.originX=t/this.width}},displayOriginY:{get:function(){return this._displayOriginY},set:function(t){this._displayOriginY=t,this.originY=t/this.height}},setOrigin:function(t,e){return void 0===t&&(t=.5),void 0===e&&(e=t),this.originX=t,this.originY=e,this.updateDisplayOrigin()},setOriginFromFrame:function(){return this.frame&&this.frame.customPivot?(this.originX=this.frame.pivotX,this.originY=this.frame.pivotY,this.updateDisplayOrigin()):this.setOrigin()},setDisplayOrigin:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.displayOriginX=t,this.displayOriginY=e,this},updateDisplayOrigin:function(){return this._displayOriginX=this.originX*this.width,this._displayOriginY=this.originY*this.height,this}}},77:(t,e,i)=>{var n=i(7149),r=i(1864),o=i(5851),a=i(3747),h=i(2529),i={path:null,rotateToPath:!1,pathRotationOffset:0,pathOffset:null,pathVector:null,pathDelta:null,pathTween:null,pathConfig:null,_prevDirection:a.PLAYING_FORWARD,setPath:function(t,e){void 0===e&&(e=this.pathConfig);var i=this.pathTween;return i&&i.isPlaying()&&i.stop(),this.path=t,e&&this.startFollow(e),this},setRotateToPath:function(t,e){return void 0===e&&(e=0),this.rotateToPath=t,this.pathRotationOffset=e,this},isFollowing:function(){var t=this.pathTween;return t&&t.isPlaying()},startFollow:function(t,e){void 0===t&&(t={}),void 0===e&&(e=0);var i=this.pathTween,i=(i&&i.isPlaying()&&i.stop(),(t="number"==typeof t?{duration:t}:t).from=o(t,"from",0),t.to=o(t,"to",1),r(t,"positionOnPath",!1)),s=(this.rotateToPath=r(t,"rotateToPath",!1),this.pathRotationOffset=o(t,"rotationOffset",0),o(t,"startAt",e));return s&&(t.onStart=function(t){var t=t.data[0],e=(t.progress=s,t.elapsed=t.duration*s,t.ease(t.progress));t.current=t.start+(t.end-t.start)*e,t.setTargetValue()}),this.pathOffset||(this.pathOffset=new h(this.x,this.y)),this.pathVector||(this.pathVector=new h),this.pathDelta||(this.pathDelta=new h),this.pathDelta.reset(),t.persist=!0,this.pathTween=this.scene.sys.tweens.addCounter(t),this.path.getStartPoint(this.pathOffset),i&&(this.x=this.pathOffset.x,this.y=this.pathOffset.y),this.pathOffset.x=this.x-this.pathOffset.x,this.pathOffset.y=this.y-this.pathOffset.y,this._prevDirection=a.PLAYING_FORWARD,this.rotateToPath&&(e=this.path.getPoint(.1),this.rotation=Math.atan2(e.y-this.y,e.x-this.x)+n(this.pathRotationOffset)),this.pathConfig=t,this},pauseFollow:function(){var t=this.pathTween;return t&&t.isPlaying()&&t.pause(),this},resumeFollow:function(){var t=this.pathTween;return t&&t.isPaused()&&t.resume(),this},stopFollow:function(){var t=this.pathTween;return t&&t.isPlaying()&&t.stop(),this},pathUpdate:function(){var t,e,i,s=this.pathTween;s&&(t=s.data[0],e=this.pathDelta,i=this.pathVector,e.copy(i).negate(),t.state===a.COMPLETE?(this.path.getPoint(t.end,i),e.add(i),i.add(this.pathOffset),this.setPosition(i.x,i.y)):t.state!==a.PLAYING_FORWARD&&t.state!==a.PLAYING_BACKWARD||(this.path.getPoint(s.getValue(),i),e.add(i),i.add(this.pathOffset),s=this.x,e=this.y,this.setPosition(i.x,i.y),i=this.x-s,s=this.y-e,0==i&&0==s)||(t.state!==this._prevDirection?this._prevDirection=t.state:this.rotateToPath&&(this.rotation=Math.atan2(s,i)+n(this.pathRotationOffset))))}};t.exports=i},986:(t,e,i)=>{var n=i(3911);t.exports={defaultPipeline:null,pipeline:null,pipelineData:null,initPipeline:function(t){this.pipelineData={};var e=this.scene.sys.renderer;if(e){e=e.pipelines;if(e){void 0===t&&(t=e.default);e=e.get(t);if(e)return this.defaultPipeline=e,this.pipeline=e,!0}}return!1},setPipeline:function(t,e,i){var s=this.scene.sys.renderer;return s&&(s=s.pipelines)&&((s=s.get(t))&&(this.pipeline=s),e)&&(this.pipelineData=i?n(e):e),this},setPipelineData:function(t,e){var i=this.pipelineData;return void 0===e?delete i[t]:i[t]=e,this},resetPipeline:function(t){return void 0===t&&(t=!1),this.pipeline=this.defaultPipeline,t&&(this.pipelineData={}),null!==this.pipeline},getPipelineName:function(){return this.pipeline.name}}},4461:(t,e,i)=>{var a=i(3911),s=i(1626),r=i(8935);t.exports={hasPostPipeline:!1,postPipelines:null,postPipelineData:null,preFX:null,postFX:null,initPostPipeline:function(t){this.postPipelines=[],this.postPipelineData={},this.postFX=new s(this,!0),t&&(this.preFX=new s(this,!1))},setPostPipeline:function(t,e,i){var s=this.scene.sys.renderer;if(s){var n=s.pipelines;if(n){Array.isArray(t)||(t=[t]);for(var r=0;r{t.exports={scrollFactorX:1,scrollFactorY:1,setScrollFactor:function(t,e){return void 0===e&&(e=t),this.scrollFactorX=t,this.scrollFactorY=e,this}}},1868:t=>{t.exports={_sizeComponent:!0,width:0,height:0,displayWidth:{get:function(){return Math.abs(this.scaleX*this.frame.realWidth)},set:function(t){this.scaleX=t/this.frame.realWidth}},displayHeight:{get:function(){return Math.abs(this.scaleY*this.frame.realHeight)},set:function(t){this.scaleY=t/this.frame.realHeight}},setSizeToFrame:function(t){t=t||this.frame,this.width=t.realWidth,this.height=t.realHeight;t=this.input;return t&&!t.customHitArea&&(t.hitArea.width=this.width,t.hitArea.height=this.height),this},setSize:function(t,e){return this.width=t,this.height=e,this},setDisplaySize:function(t,e){return this.displayWidth=t,this.displayHeight=e,this}}},4976:(t,e,i)=>{var s=i(2362);t.exports={texture:null,frame:null,isCropped:!1,setTexture:function(t,e){return this.texture=this.scene.sys.textures.get(t),this.setFrame(e)},setFrame:function(t,e,i){return void 0===e&&(e=!0),void 0===i&&(i=!0),t instanceof s?(this.texture=this.scene.sys.textures.get(t.texture.key),this.frame=t):this.frame=this.texture.get(t),this.frame.cutWidth&&this.frame.cutHeight?this.renderFlags|=8:this.renderFlags&=-9,this._sizeComponent&&e&&this.setSizeToFrame(),this._originComponent&&i&&(this.frame.customPivot?this.setOrigin(this.frame.pivotX,this.frame.pivotY):this.updateDisplayOrigin()),this}}},9243:(t,e,i)=>{var s=i(2362);t.exports={texture:null,frame:null,isCropped:!1,setCrop:function(t,e,i,s){return void 0===t?this.isCropped=!1:this.frame&&("number"==typeof t?this.frame.setCropUVs(this._crop,t,e,i,s,this.flipX,this.flipY):this.frame.setCropUVs(this._crop,t.x,t.y,t.width,t.height,this.flipX,this.flipY),this.isCropped=!0),this},setTexture:function(t,e){return this.texture=this.scene.sys.textures.get(t),this.setFrame(e)},setFrame:function(t,e,i){return void 0===e&&(e=!0),void 0===i&&(i=!0),t instanceof s?(this.texture=this.scene.sys.textures.get(t.texture.key),this.frame=t):this.frame=this.texture.get(t),this.frame.cutWidth&&this.frame.cutHeight?this.renderFlags|=8:this.renderFlags&=-9,this._sizeComponent&&e&&this.setSizeToFrame(),this._originComponent&&i&&(this.frame.customPivot?this.setOrigin(this.frame.pivotX,this.frame.pivotY):this.updateDisplayOrigin()),this.isCropped&&this.frame.updateCropUVs(this._crop,this.flipX,this.flipY),this},resetCropObject:function(){return{u0:0,v0:0,u1:0,v1:0,width:0,height:0,x:0,y:0,flipX:!1,flipY:!1,cx:0,cy:0,cw:0,ch:0}}}},5693:t=>{t.exports={tintTopLeft:16777215,tintTopRight:16777215,tintBottomLeft:16777215,tintBottomRight:16777215,tintFill:!1,clearTint:function(){return this.setTint(16777215),this},setTint:function(t,e,i,s){return void 0===t&&(t=16777215),void 0===e&&(s=i=e=t),this.tintTopLeft=t,this.tintTopRight=e,this.tintBottomLeft=i,this.tintBottomRight=s,this.tintFill=!1,this},setTintFill:function(t,e,i,s){return this.setTint(t,e,i,s),this.tintFill=!0,this},tint:{set:function(t){this.setTint(t,t,t,t)}},isTinted:{get:function(){var t=16777215;return this.tintFill||this.tintTopLeft!==t||this.tintTopRight!==t||this.tintBottomLeft!==t||this.tintBottomRight!==t}}}},6125:t=>{t.exports=function(t){var e={name:t.name,type:t.type,x:t.x,y:t.y,depth:t.depth,scale:{x:t.scaleX,y:t.scaleY},origin:{x:t.originX,y:t.originY},flipX:t.flipX,flipY:t.flipY,rotation:t.rotation,alpha:t.alpha,visible:t.visible,blendMode:t.blendMode,textureKey:"",frameKey:"",data:{}};return t.texture&&(e.textureKey=t.texture.key,e.frameKey=t.frame.name),e}},3212:(t,e,i)=>{var s=i(7425),n=i(4227),r=i(7556),o=i(3692),a=i(2820),h=i(2529);t.exports={hasTransformComponent:!0,_scaleX:1,_scaleY:1,_rotation:0,x:0,y:0,z:0,w:0,scale:{get:function(){return(this._scaleX+this._scaleY)/2},set:function(t){this._scaleX=t,0===(this._scaleY=t)?this.renderFlags&=-5:this.renderFlags|=4}},scaleX:{get:function(){return this._scaleX},set:function(t){0===(this._scaleX=t)?this.renderFlags&=-5:0!==this._scaleY&&(this.renderFlags|=4)}},scaleY:{get:function(){return this._scaleY},set:function(t){0===(this._scaleY=t)?this.renderFlags&=-5:0!==this._scaleX&&(this.renderFlags|=4)}},angle:{get:function(){return a(this._rotation*s.RAD_TO_DEG)},set:function(t){this.rotation=a(t)*s.DEG_TO_RAD}},rotation:{get:function(){return this._rotation},set:function(t){this._rotation=o(t)}},setPosition:function(t,e,i,s){return void 0===t&&(t=0),void 0===e&&(e=t),void 0===i&&(i=0),void 0===s&&(s=0),this.x=t,this.y=e,this.z=i,this.w=s,this},copyPosition:function(t){return void 0!==t.x&&(this.x=t.x),void 0!==t.y&&(this.y=t.y),void 0!==t.z&&(this.z=t.z),void 0!==t.w&&(this.w=t.w),this},setRandomPosition:function(t,e,i,s){return void 0===e&&(e=0),void 0===i&&(i=this.scene.sys.scale.width),void 0===s&&(s=this.scene.sys.scale.height),this.x=(t=void 0===t?0:t)+Math.random()*i,this.y=e+Math.random()*s,this},setRotation:function(t){return this.rotation=t=void 0===t?0:t,this},setAngle:function(t){return this.angle=t=void 0===t?0:t,this},setScale:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=t),this.scaleX=t,this.scaleY=e,this},setX:function(t){return this.x=t=void 0===t?0:t,this},setY:function(t){return this.y=t=void 0===t?0:t,this},setZ:function(t){return this.z=t=void 0===t?0:t,this},setW:function(t){return this.w=t=void 0===t?0:t,this},getLocalTransformMatrix:function(t){return(t=void 0===t?new n:t).applyITRS(this.x,this.y,this._rotation,this._scaleX,this._scaleY)},getWorldTransformMatrix:function(t,e){void 0===t&&(t=new n);var i=this.parentContainer;if(!i)return this.getLocalTransformMatrix(t);for(e=e||new n,t.applyITRS(this.x,this.y,this._rotation,this._scaleX,this._scaleY);i;)e.applyITRS(i.x,i.y,i._rotation,i._scaleX,i._scaleY),e.multiply(t,t),i=i.parentContainer;return t},getLocalPoint:function(t,e,i,s){i=i||new h;var n=(s=s||this.scene.sys.cameras.main).scrollX,s=s.scrollY,t=t+n*this.scrollFactorX-n,n=e+s*this.scrollFactorY-s;return this.parentContainer?this.getWorldTransformMatrix().applyInverse(t,n,i):r(t,n,this.x,this.y,this.rotation,this.scaleX,this.scaleY,i),this._originComponent&&(i.x+=this._displayOriginX,i.y+=this._displayOriginY),i},getParentRotation:function(){for(var t=0,e=this.parentContainer;e;)t+=e.rotation,e=e.parentContainer;return t}}},4227:(t,e,i)=>{var s=i(7473),n=i(7425),u=i(2529),i=new s({initialize:function(t,e,i,s,n,r){void 0===t&&(t=1),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=1),void 0===n&&(n=0),void 0===r&&(r=0),this.matrix=new Float32Array([t,e,i,s,n,r,0,0,1]),this.decomposedMatrix={translateX:0,translateY:0,scaleX:1,scaleY:1,rotation:0},this.quad=new Float32Array(8)},a:{get:function(){return this.matrix[0]},set:function(t){this.matrix[0]=t}},b:{get:function(){return this.matrix[1]},set:function(t){this.matrix[1]=t}},c:{get:function(){return this.matrix[2]},set:function(t){this.matrix[2]=t}},d:{get:function(){return this.matrix[3]},set:function(t){this.matrix[3]=t}},e:{get:function(){return this.matrix[4]},set:function(t){this.matrix[4]=t}},f:{get:function(){return this.matrix[5]},set:function(t){this.matrix[5]=t}},tx:{get:function(){return this.matrix[4]},set:function(t){this.matrix[4]=t}},ty:{get:function(){return this.matrix[5]},set:function(t){this.matrix[5]=t}},rotation:{get:function(){return Math.acos(this.a/this.scaleX)*(Math.atan(-this.c/this.a)<0?-1:1)}},rotationNormalized:{get:function(){var t=this.matrix,e=t[0],i=t[1],s=t[2],t=t[3];return e||i?0{t.exports={_visible:!0,visible:{get:function(){return this._visible},set:function(t){t?(this._visible=!0,this.renderFlags|=1):(this._visible=!1,this.renderFlags&=-2)}},setVisible:function(t){return this.visible=t,this}}},4286:(t,e,i)=>{t.exports={Alpha:i(4344),AlphaSingle:i(4518),BlendMode:i(5173),ComputedSize:i(1991),Crop:i(8305),Depth:i(3131),Flip:i(9660),FX:i(1626),GetBounds:i(3671),Mask:i(2246),Origin:i(5085),PathFollower:i(77),Pipeline:i(986),PostPipeline:i(4461),ScrollFactor:i(4627),Size:i(1868),Texture:i(4976),TextureCrop:i(9243),Tint:i(5693),ToJSON:i(6125),Transform:i(3212),TransformMatrix:i(4227),Visible:i(8414)}},7361:(t,e,i)=>{var r=i(1953),n=i(8351),s=i(7473),o=i(4286),a=i(3389),h=i(2273),l=i(1392),u=i(3232),c=i(9422),d=i(2529),i=new s({Extends:h,Mixins:[o.AlphaSingle,o.BlendMode,o.ComputedSize,o.Depth,o.Mask,o.PostPipeline,o.Transform,o.Visible,u],initialize:function(t,e,i,s){h.call(this,t,"Container"),this.list=[],this.exclusive=!0,this.maxSize=-1,this.position=0,this.localTransform=new o.TransformMatrix,this.tempTransformMatrix=new o.TransformMatrix,this._sortKey="",this._sysEvents=t.sys.events,this.scrollFactorX=1,this.scrollFactorY=1,this.initPostPipeline(),this.setPosition(e,i),this.setBlendMode(n.SKIP_CHECK),s&&this.add(s)},originX:{get:function(){return.5}},originY:{get:function(){return.5}},displayOriginX:{get:function(){return.5*this.width}},displayOriginY:{get:function(){return.5*this.height}},setExclusive:function(t){return this.exclusive=t=void 0===t?!0:t,this},getBounds:function(t){var e;if((t=void 0===t?new l:t).setTo(this.x,this.y,0,0),this.parentContainer&&(e=this.parentContainer.getBoundsTransformMatrix().transformPoint(this.x,this.y),t.setTo(e.x,e.y,0,0)),0{t.exports=function(t,e,i,s){i.addToRenderList(e);var n=e.list;if(0!==n.length){var r=e.localTransform,o=(s?(r.loadIdentity(),r.multiply(s),r.translate(e.x,e.y),r.rotate(e.rotation),r.scale(e.scaleX,e.scaleY)):r.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY),-1!==e.blendMode),a=(o||t.setBlendMode(0),e._alpha),h=e.scrollFactorX,l=e.scrollFactorY;e.mask&&e.mask.preRenderCanvas(t,null,i);for(var u=0;u{i(1984);var s=i(4343),i=i(2840);t.exports={renderWebGL:s,renderCanvas:i}},4343:t=>{t.exports=function(t,e,i,s){i.addToRenderList(e);var n=e.list,r=n.length;if(0!==r){var o=e.localTransform,a=(s?(o.loadIdentity(),o.multiply(s),o.translate(e.x,e.y),o.rotate(e.rotation),o.scale(e.scaleX,e.scaleY)):o.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY),t.pipelines.preBatch(e),-1!==e.blendMode);a||t.setBlendMode(0);for(var h=e.alpha,l=e.scrollFactorX,u=e.scrollFactorY,c=0;c{t.exports="addedtoscene"},4265:t=>{t.exports="destroy"},8671:t=>{t.exports="removedfromscene"},3420:t=>{t.exports="complete"},601:t=>{t.exports="created"},7919:t=>{t.exports="error"},6231:t=>{t.exports="locked"},5241:t=>{t.exports="loop"},8325:t=>{t.exports="playing"},3356:t=>{t.exports="play"},7513:t=>{t.exports="seeked"},5788:t=>{t.exports="seeking"},7111:t=>{t.exports="stalled"},8118:t=>{t.exports="stop"},9184:t=>{t.exports="textureready"},4287:t=>{t.exports="unlocked"},857:t=>{t.exports="unsupported"},3389:(t,e,i)=>{t.exports={ADDED_TO_SCENE:i(6608),DESTROY:i(4265),REMOVED_FROM_SCENE:i(8671),VIDEO_COMPLETE:i(3420),VIDEO_CREATED:i(601),VIDEO_ERROR:i(7919),VIDEO_LOCKED:i(6231),VIDEO_LOOP:i(5241),VIDEO_PLAY:i(3356),VIDEO_PLAYING:i(8325),VIDEO_SEEKED:i(7513),VIDEO_SEEKING:i(5788),VIDEO_STALLED:i(7111),VIDEO_STOP:i(8118),VIDEO_TEXTURE:i(9184),VIDEO_UNLOCKED:i(4287),VIDEO_UNSUPPORTED:i(857)}},1643:t=>{t.exports={CIRCLE:0,ELLIPSE:1,LINE:2,POINT:3,POLYGON:4,RECTANGLE:5,TRIANGLE:6}},8881:(t,e,i)=>{var s=i(7655);t.exports=function(t,e,i){return(i=void 0===i?new s:i).x=t.x1+(t.x2-t.x1)*e,i.y=t.y1+(t.y2-t.y1)*e,i}},4479:(t,e,i)=>{var u=i(4771),c=i(7655);t.exports=function(t,e,i,s){void 0===s&&(s=[]),!e&&0{t.exports=function(t){return Math.sqrt((t.x2-t.x1)*(t.x2-t.x1)+(t.y2-t.y1)*(t.y2-t.y1))}},284:(t,e,i)=>{var s=i(7473),n=i(8881),r=i(4479),o=i(1643),a=i(3915),h=i(2529),i=new s({initialize:function(t,e,i,s){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=0),this.type=o.LINE,this.x1=t,this.y1=e,this.x2=i,this.y2=s},getPoint:function(t,e){return n(this,t,e)},getPoints:function(t,e,i){return r(this,t,e,i)},getRandomPoint:function(t){return a(this,t)},setTo:function(t,e,i,s){return void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=0),this.x1=t=void 0===t?0:t,this.y1=e,this.x2=i,this.y2=s,this},getPointA:function(t){return(t=void 0===t?new h:t).set(this.x1,this.y1),t},getPointB:function(t){return(t=void 0===t?new h:t).set(this.x2,this.y2),t},left:{get:function(){return Math.min(this.x1,this.x2)},set:function(t){this.x1<=this.x2?this.x1=t:this.x2=t}},right:{get:function(){return Math.max(this.x1,this.x2)},set:function(t){this.x1>this.x2?this.x1=t:this.x2=t}},top:{get:function(){return Math.min(this.y1,this.y2)},set:function(t){this.y1<=this.y2?this.y1=t:this.y2=t}},bottom:{get:function(){return Math.max(this.y1,this.y2)},set:function(t){this.y1>this.y2?this.y1=t:this.y2=t}}});t.exports=i},3915:(t,e,i)=>{var s=i(7655);t.exports=function(t,e){void 0===e&&(e=new s);var i=Math.random();return e.x=t.x1+i*(t.x2-t.x1),e.y=t.y1+i*(t.y2-t.y1),e}},7655:(t,e,i)=>{var s=i(7473),n=i(1643),i=new s({initialize:function(t,e){void 0===t&&(t=0),void 0===e&&(e=t),this.type=n.POINT,this.x=t,this.y=e},setTo:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.x=t,this.y=e,this}});t.exports=i},5956:t=>{t.exports=function(t,e,i){return!(t.width<=0||t.height<=0)&&t.x<=e&&t.x+t.width>=e&&t.y<=i&&t.y+t.height>=i}},716:(t,e,i)=>{var n=i(7120),r=i(7655);t.exports=function(t,e,i){var s;return(void 0===i&&(i=new r),e<=0||1<=e)?(i.x=t.x,i.y=t.y):(s=n(t)*e,.5{var r=i(716),o=i(7120);t.exports=function(t,e,i,s){void 0===s&&(s=[]),!e&&0{t.exports=function(t){return 2*(t.width+t.height)}},2161:(t,e,i)=>{var s=i(7655);t.exports=function(t,e){return(e=void 0===e?new s:e).x=t.x+Math.random()*t.width,e.y=t.y+Math.random()*t.height,e}},1392:(t,e,i)=>{var s=i(7473),n=i(5956),r=i(716),o=i(8151),a=i(1643),h=i(284),l=i(2161),i=new s({initialize:function(t,e,i,s){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=0),this.type=a.RECTANGLE,this.x=t,this.y=e,this.width=i,this.height=s},contains:function(t,e){return n(this,t,e)},getPoint:function(t,e){return r(this,t,e)},getPoints:function(t,e,i){return o(this,t,e,i)},getRandomPoint:function(t){return l(this,t)},setTo:function(t,e,i,s){return this.x=t,this.y=e,this.width=i,this.height=s,this},setEmpty:function(){return this.setTo(0,0,0,0)},setPosition:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},setSize:function(t,e){return void 0===e&&(e=t),this.width=t,this.height=e,this},isEmpty:function(){return this.width<=0||this.height<=0},getLineA:function(t){return(t=void 0===t?new h:t).setTo(this.x,this.y,this.right,this.y),t},getLineB:function(t){return(t=void 0===t?new h:t).setTo(this.right,this.y,this.right,this.bottom),t},getLineC:function(t){return(t=void 0===t?new h:t).setTo(this.right,this.bottom,this.x,this.bottom),t},getLineD:function(t){return(t=void 0===t?new h:t).setTo(this.x,this.bottom,this.x,this.y),t},left:{get:function(){return this.x},set:function(t){t>=this.right?this.width=0:this.width=this.right-t,this.x=t}},right:{get:function(){return this.x+this.width},set:function(t){t<=this.x?this.width=0:this.width=t-this.x}},top:{get:function(){return this.y},set:function(t){t>=this.bottom?this.height=0:this.height=this.bottom-t,this.y=t}},bottom:{get:function(){return this.y+this.height},set:function(t){t<=this.y?this.height=0:this.height=t-this.y}},centerX:{get:function(){return this.x+this.width/2},set:function(t){this.x=t-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(t){this.y=t-this.height/2}}});t.exports=i},9422:(t,e,i)=>{var o=i(1392);t.exports=function(t,e,i){void 0===i&&(i=new o);var s=Math.min(t.x,e.x),n=Math.min(t.y,e.y),r=Math.max(t.right,e.right)-s,t=Math.max(t.bottom,e.bottom)-n;return i.setTo(s,n,r,t)}},1593:(t,e,i)=>{var s=i(7473),n=i(4359),r=i(1179),o=i(4597),a=i(5593),h=i(7410),l=i(5874),u=i(707),i=new s({initialize:function(t,e){if(this.loader=t,this.cache=o(e,"cache",!1),this.type=o(e,"type",!1),!this.type)throw new Error("Invalid File type: "+this.type);this.key=o(e,"key",!1);var i=this.key;if(t.prefix&&""!==t.prefix&&(this.key=t.prefix+i),!this.key)throw new Error("Invalid File key: "+this.key);var s=o(e,"url");void 0===s?s=t.path+i+"."+o(e,"extension",""):"string"!=typeof s||s.match(/^(?:blob:|data:|capacitor:\/\/|http:\/\/|https:\/\/|\/\/)/)||(s=t.path+s),this.url=s,this.src="",this.xhrSettings=u(o(e,"responseType",void 0)),o(e,"xhrSettings",!1)&&(this.xhrSettings=h(this.xhrSettings,o(e,"xhrSettings",{}))),this.xhrLoader=null,this.state="function"==typeof this.url?n.FILE_POPULATED:n.FILE_PENDING,this.bytesTotal=0,this.bytesLoaded=-1,this.percentComplete=-1,this.crossOrigin=void 0,this.data=void 0,this.config=o(e,"config",{}),this.multiFile,this.linkFile},setLink:function(t){(this.linkFile=t).linkFile=this},resetXHR:function(){this.xhrLoader&&(this.xhrLoader.onload=void 0,this.xhrLoader.onerror=void 0,this.xhrLoader.onprogress=void 0)},load:function(){this.state===n.FILE_POPULATED?this.loader.nextFile(this,!0):(this.state=n.FILE_LOADING,this.src=a(this,this.loader.baseURL),0!==this.src.indexOf("data:")&&(this.xhrLoader=l(this,this.loader.xhr)))},onLoad:function(e,t){var i=e.responseURL&&this.loader.localSchemes.some(function(t){return 0===e.responseURL.indexOf(t)})&&0===t.target.status,t=!(t.target&&200!==t.target.status)||i;4===e.readyState&&400<=e.status&&e.status<=599&&(t=!1),this.state=n.FILE_LOADED,this.resetXHR(),this.loader.nextFile(this,t)},onError:function(){this.resetXHR(),this.loader.nextFile(this,!1)},onProgress:function(t){t.lengthComputable&&(this.bytesLoaded=t.loaded,this.bytesTotal=t.total,this.percentComplete=Math.min(this.bytesLoaded/this.bytesTotal,1),this.loader.emit(r.FILE_PROGRESS,this,this.percentComplete))},onProcess:function(){this.state=n.FILE_PROCESSING,this.onProcessComplete()},onProcessComplete:function(){this.state=n.FILE_COMPLETE,this.multiFile&&this.multiFile.onFileComplete(this),this.loader.fileProcessComplete(this)},onProcessError:function(){this.state=n.FILE_ERRORED,this.multiFile&&this.multiFile.onFileFailed(this),this.loader.fileProcessComplete(this)},hasCacheConflict:function(){return this.cache&&this.cache.exists(this.key)},addToCache:function(){this.cache&&this.data&&this.cache.add(this.key,this.data)},pendingDestroy:function(t){var e,i;this.state!==n.FILE_PENDING_DESTROY&&(void 0===t&&(t=this.data),e=this.key,i=this.type,this.loader.emit(r.FILE_COMPLETE,e,i,t),this.loader.emit(r.FILE_KEY_COMPLETE+i+"-"+e,e,i,t),this.loader.flagForRemoval(this),this.state=n.FILE_PENDING_DESTROY)},destroy:function(){this.loader=null,this.cache=null,this.xhrSettings=null,this.multiFile=null,this.linkFile=null,this.data=null}});i.createObjectURL=function(t,e,i){var s;"function"==typeof URL?t.src=URL.createObjectURL(e):((s=new FileReader).onload=function(){t.removeAttribute("crossOrigin"),t.src="data:"+(e.type||i)+";base64,"+s.result.split(",")[1]},s.onerror=t.onerror,s.readAsDataURL(e))},i.revokeObjectURL=function(t){"function"==typeof URL&&URL.revokeObjectURL(t.src)},t.exports=i},9845:t=>{var i={};t.exports={install:function(t){for(var e in i)t[e]=i[e]},register:function(t,e){i[t]=e},destroy:function(){i={}}}},5593:t=>{t.exports=function(t,e){return!!t.url&&(t.url.match(/^(?:blob:|data:|capacitor:\/\/|http:\/\/|https:\/\/|\/\/)/)?t.url:e+t.url)}},7410:(t,e,i)=>{var n=i(1030),r=i(707);t.exports=function(t,e){var i=void 0===t?r():n({},t);if(e)for(var s in e)void 0!==e[s]&&(i[s]=e[s]);return i}},3137:(t,e,i)=>{var s=i(7473),o=i(4359),n=i(1179),i=new s({initialize:function(t,e,i,s){var n=[];s.forEach(function(t){t&&n.push(t)}),this.loader=t,this.type=e,this.key=i,this.multiKeyIndex=t.multiKeyIndex++,this.files=n,this.state=o.FILE_PENDING,this.complete=!1,this.pending=n.length,this.failed=0,this.config={},this.baseURL=t.baseURL,this.path=t.path,this.prefix=t.prefix;for(var r=0;r{var r=i(7410);t.exports=function(t,e){var i=r(e,t.xhrSettings),s=new XMLHttpRequest;if(s.open("GET",t.src,i.async,i.user,i.password),s.responseType=t.xhrSettings.responseType,s.timeout=i.timeout,i.headers)for(var n in i.headers)s.setRequestHeader(n,i.headers[n]);return i.header&&i.headerValue&&s.setRequestHeader(i.header,i.headerValue),i.requestedWith&&s.setRequestHeader("X-Requested-With",i.requestedWith),i.overrideMimeType&&s.overrideMimeType(i.overrideMimeType),i.withCredentials&&(s.withCredentials=!0),s.onload=t.onLoad.bind(t,s),s.onerror=t.onError.bind(t,s),s.onprogress=t.onProgress.bind(t),s.send(),s}},707:t=>{t.exports=function(t,e,i,s,n,r){return{responseType:t=void 0===t?"":t,async:e=void 0===e?!0:e,user:i=void 0===i?"":i,password:s=void 0===s?"":s,timeout:n=void 0===n?0:n,headers:void 0,header:void 0,headerValue:void 0,requestedWith:!1,overrideMimeType:void 0,withCredentials:r=void 0===r?!1:r}}},4359:t=>{t.exports={LOADER_IDLE:0,LOADER_LOADING:1,LOADER_PROCESSING:2,LOADER_COMPLETE:3,LOADER_SHUTDOWN:4,LOADER_DESTROYED:5,FILE_PENDING:10,FILE_LOADING:11,FILE_LOADED:12,FILE_FAILED:13,FILE_PROCESSING:14,FILE_ERRORED:16,FILE_COMPLETE:17,FILE_DESTROYED:18,FILE_POPULATED:19,FILE_PENDING_DESTROY:20}},462:t=>{t.exports="addfile"},7297:t=>{t.exports="complete"},8660:t=>{t.exports="filecomplete"},6484:t=>{t.exports="filecomplete-"},7972:t=>{t.exports="loaderror"},1906:t=>{t.exports="load"},1441:t=>{t.exports="fileprogress"},1072:t=>{t.exports="postprocess"},1927:t=>{t.exports="progress"},6597:t=>{t.exports="start"},1179:(t,e,i)=>{t.exports={ADD:i(462),COMPLETE:i(7297),FILE_COMPLETE:i(8660),FILE_KEY_COMPLETE:i(6484),FILE_LOAD_ERROR:i(7972),FILE_LOAD:i(1906),FILE_PROGRESS:i(1441),POST_PROCESS:i(1072),PROGRESS:i(1927),START:i(6597)}},6732:(t,e,i)=>{var s=i(7473),n=i(4359),l=i(1593),r=i(9845),u=i(4597),c=i(2482),o=i(5593),a=new s({Extends:l,initialize:function t(e,i,s,n,r){var o,a="png",h=(c(i)&&(i=u(h=i,"key"),s=u(h,"url"),o=u(h,"normalMap"),n=u(h,"xhrSettings"),a=u(h,"extension",a),r=u(h,"frameConfig")),Array.isArray(s)&&(o=s[1],s=s[0]),{type:"image",cache:e.textureManager,extension:a,responseType:"blob",key:i,url:s,xhrSettings:n,config:r});l.call(this,e,h),o&&((a=new t(e,this.key,o,n,r)).type="normalMap",this.setLink(a),e.addFile(a)),this.useImageElementLoad="HTMLImageElement"===e.imageLoadType,this.useImageElementLoad&&(this.load=this.loadImage,this.onProcess=this.onProcessImage)},onProcess:function(){this.state=n.FILE_PROCESSING,this.data=new Image,this.data.crossOrigin=this.crossOrigin;var t=this;this.data.onload=function(){l.revokeObjectURL(t.data),t.onProcessComplete()},this.data.onerror=function(){l.revokeObjectURL(t.data),t.onProcessError()},l.createObjectURL(this.data,this.xhrLoader.response,"image/png")},onProcessImage:function(){var t=this.state;this.state=n.FILE_PROCESSING,t===n.FILE_LOADED?this.onProcessComplete():this.onProcessError()},loadImage:function(){var t;this.state=n.FILE_LOADING,this.src=o(this,this.loader.baseURL),0!==this.src.indexOf("data:")&&(this.data=new Image,this.data.crossOrigin=this.crossOrigin,(t=this).data.onload=function(){t.state=n.FILE_LOADED,t.loader.nextFile(t,!0)},this.data.onerror=function(){t.loader.nextFile(t,!1)},this.data.src=this.src)},addToCache:function(){var t=this.linkFile;t?t.state>=n.FILE_COMPLETE&&("normalMap"===this.type?this.cache.addImage(this.key,t.data,this.data):this.cache.addImage(this.key,this.data,t.data)):this.cache.addImage(this.key,this.data)}});r.register("image",function(t,e,i){if(Array.isArray(t))for(var s=0;s{var s=i(7473),a=i(4359),h=i(1593),n=i(9845),l=i(4597),u=i(5851),c=i(2482),r=new s({Extends:h,initialize:function(t,e,i,s,n){var r="json",o=(c(e)&&(e=l(o=e,"key"),i=l(o,"url"),s=l(o,"xhrSettings"),r=l(o,"extension",r),n=l(o,"dataKey",n)),{type:"json",cache:t.cacheManager.json,extension:r,responseType:"text",key:e,url:i,xhrSettings:s,config:n});h.call(this,t,o),c(i)&&(this.data=n?u(i,n):i,this.state=a.FILE_POPULATED)},onProcess:function(){if(this.state!==a.FILE_POPULATED){this.state=a.FILE_PROCESSING;try{var t=JSON.parse(this.xhrLoader.responseText)}catch(t){throw this.onProcessError(),t}var e=this.config;this.data="string"==typeof e?u(t,e,t):t}this.onProcessComplete()}});n.register("json",function(t,e,i,s){if(Array.isArray(t))for(var n=0;n{var s=i(7473),n=i(4359),h=i(1593),r=i(9845),l=i(4597),u=i(2482),o=new s({Extends:h,initialize:function(t,e,i,s){var n="text",r="txt",o=t.cacheManager.text,a=(u(e)&&(e=l(a=e,"key"),i=l(a,"url"),s=l(a,"xhrSettings"),r=l(a,"extension",r),n=l(a,"type",n),o=l(a,"cache",o)),{type:n,cache:o,extension:r,responseType:"text",key:e,url:i,xhrSettings:s});h.call(this,t,a)},onProcess:function(){this.state=n.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()}});r.register("text",function(t,e,i){if(Array.isArray(t))for(var s=0;s{t.exports=function(t){for(var e=0,i=0;i{var s=i(3916);t.exports=function(t,e){return s(t)/s(e)/s(t-e)}},7025:t=>{t.exports=function(t,e){return Math.floor(Math.random()*(e-t+1)+t)}},48:t=>{t.exports=function(t,e,i,s,n){var e=.5*(s-e),n=.5*(n-i),r=t*t;return t*r*(2*i-2*s+e+n)+(-3*i+3*s-2*e-n)*r+e*t+i}},5035:t=>{t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=10);i=Math.pow(i,-e);return Math.ceil(t*i)/i}},2915:t=>{t.exports=function(t,e,i){return Math.max(e,Math.min(i,t))}},7149:(t,e,i)=>{var s=i(7425);t.exports=function(t){return t*s.DEG_TO_RAD}},2975:t=>{t.exports=function(t,e){return Math.abs(t-e)}},2107:(t,e,i)=>{var y=i(2915),s=i(7473),n=i(9652),r=i(1984),o=new n,i=new s({initialize:function t(e,i,s,n){void 0===i&&(i=0),void 0===s&&(s=0),void 0===n&&(n=t.DefaultOrder),this._x=e=void 0===e?0:e,this._y=i,this._z=s,this._order=n,this.onChangeCallback=r},x:{get:function(){return this._x},set:function(t){this._x=t,this.onChangeCallback(this)}},y:{get:function(){return this._y},set:function(t){this._y=t,this.onChangeCallback(this)}},z:{get:function(){return this._z},set:function(t){this._z=t,this.onChangeCallback(this)}},order:{get:function(){return this._order},set:function(t){this._order=t,this.onChangeCallback(this)}},set:function(t,e,i,s){return void 0===s&&(s=this._order),this._x=t,this._y=e,this._z=i,this._order=s,this.onChangeCallback(this),this},copy:function(t){return this.set(t.x,t.y,t.z,t.order)},setFromQuaternion:function(t,e,i){return void 0===e&&(e=this._order),void 0===i&&(i=!1),o.fromQuat(t),this.setFromRotationMatrix(o,e,i)},setFromRotationMatrix:function(t,e,i){void 0===e&&(e=this._order),void 0===i&&(i=!1);var t=t.val,s=t[0],n=t[4],r=t[8],o=t[1],a=t[5],h=t[9],l=t[2],u=t[6],c=t[10],d=0,p=0,f=0,g=.99999;switch(e){case"XYZ":p=Math.asin(y(r,-1,1)),Math.abs(r){t.exports=function(t){if(0===t)return 1;for(var e=t;--t;)e*=t;return e}},104:t=>{t.exports=function(t,e){return Math.random()*(e-t)+t}},4941:t=>{t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=10);i=Math.pow(i,-e);return Math.floor(t*i)/i}},1555:(t,e,i)=>{var s=i(2915);t.exports=function(t,e,i){return(i-e)*(t=s(t,0,1))+e}},5005:t=>{t.exports=function(t,e){return t/e/1e3}},3702:t=>{t.exports=function(t){return t==parseFloat(t)?!(t%2):void 0}},8820:t=>{t.exports=function(t){return t===parseFloat(t)?!(t%2):void 0}},1743:t=>{t.exports=function(t,e,i){return(e-t)*i+t}},3416:t=>{t.exports=function(t,e,i){return void 0===i&&(i=0),t.clone().lerp(e,i)}},2149:(t,e,i)=>{var s=new(i(7473))({initialize:function(t){this.val=new Float32Array(9),t?this.copy(t):this.identity()},clone:function(){return new s(this)},set:function(t){return this.copy(t)},copy:function(t){var e=this.val,t=t.val;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],this},fromMat4:function(t){var t=t.val,e=this.val;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[4],e[4]=t[5],e[5]=t[6],e[6]=t[8],e[7]=t[9],e[8]=t[10],this},fromArray:function(t){var e=this.val;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],this},identity:function(){var t=this.val;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,this},transpose:function(){var t=this.val,e=t[1],i=t[2],s=t[5];return t[1]=t[3],t[2]=t[6],t[3]=e,t[5]=t[7],t[6]=i,t[7]=s,this},invert:function(){var t=this.val,e=t[0],i=t[1],s=t[2],n=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=l*r-o*h,c=-l*n+o*a,d=h*n-r*a,p=e*u+i*c+s*d;return p?(t[0]=u*(p=1/p),t[1]=(-l*i+s*h)*p,t[2]=(o*i-s*r)*p,t[3]=c*p,t[4]=(l*e-s*a)*p,t[5]=(-o*e+s*n)*p,t[6]=d*p,t[7]=(-h*e+i*a)*p,t[8]=(r*e-i*n)*p,this):null},adjoint:function(){var t=this.val,e=t[0],i=t[1],s=t[2],n=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8];return t[0]=r*l-o*h,t[1]=s*h-i*l,t[2]=i*o-s*r,t[3]=o*a-n*l,t[4]=e*l-s*a,t[5]=s*n-e*o,t[6]=n*h-r*a,t[7]=i*a-e*h,t[8]=e*r-i*n,this},determinant:function(){var t=this.val,e=t[0],i=t[1],s=t[2],n=t[3],r=t[4],o=t[5],a=t[6],h=t[7],t=t[8];return e*(t*r-o*h)+i*(-t*n+o*a)+s*(h*n-r*a)},multiply:function(t){var e=this.val,i=e[0],s=e[1],n=e[2],r=e[3],o=e[4],a=e[5],h=e[6],l=e[7],u=e[8],t=t.val,c=t[0],d=t[1],p=t[2],f=t[3],g=t[4],y=t[5],v=t[6],m=t[7],t=t[8];return e[0]=c*i+d*r+p*h,e[1]=c*s+d*o+p*l,e[2]=c*n+d*a+p*u,e[3]=f*i+g*r+y*h,e[4]=f*s+g*o+y*l,e[5]=f*n+g*a+y*u,e[6]=v*i+m*r+t*h,e[7]=v*s+m*o+t*l,e[8]=v*n+m*a+t*u,this},translate:function(t){var e=this.val,i=t.x,t=t.y;return e[6]=i*e[0]+t*e[3]+e[6],e[7]=i*e[1]+t*e[4]+e[7],e[8]=i*e[2]+t*e[5]+e[8],this},rotate:function(t){var e=this.val,i=e[0],s=e[1],n=e[2],r=e[3],o=e[4],a=e[5],h=Math.sin(t),t=Math.cos(t);return e[0]=t*i+h*r,e[1]=t*s+h*o,e[2]=t*n+h*a,e[3]=t*r-h*i,e[4]=t*o-h*s,e[5]=t*a-h*n,this},scale:function(t){var e=this.val,i=t.x,t=t.y;return e[0]=i*e[0],e[1]=i*e[1],e[2]=i*e[2],e[3]=t*e[3],e[4]=t*e[4],e[5]=t*e[5],this},fromQuat:function(t){var e=t.x,i=t.y,s=t.z,t=t.w,n=e+e,r=i+i,o=s+s,a=e*n,h=e*r,e=e*o,l=i*r,i=i*o,s=s*o,n=t*n,r=t*r,t=t*o,o=this.val;return o[0]=1-(l+s),o[3]=h+t,o[6]=e-r,o[1]=h-t,o[4]=1-(a+s),o[7]=i+n,o[2]=e+r,o[5]=i-n,o[8]=1-(a+l),this},normalFromMat4:function(t){var t=t.val,e=this.val,i=t[0],s=t[1],n=t[2],r=t[3],o=t[4],a=t[5],h=t[6],l=t[7],u=t[8],c=t[9],d=t[10],p=t[11],f=t[12],g=t[13],y=t[14],t=t[15],v=i*a-s*o,m=i*h-n*o,x=i*l-r*o,w=s*h-n*a,T=s*l-r*a,b=n*l-r*h,S=u*g-c*f,P=u*y-d*f,u=u*t-p*f,_=c*y-d*g,c=c*t-p*g,d=d*t-p*y,p=v*d-m*c+x*_+w*u-T*P+b*S;return p?(e[0]=(a*d-h*c+l*_)*(p=1/p),e[1]=(h*u-o*d-l*P)*p,e[2]=(o*c-a*u+l*S)*p,e[3]=(n*c-s*d-r*_)*p,e[4]=(i*d-n*u+r*P)*p,e[5]=(s*u-i*c-r*S)*p,e[6]=(g*b-y*T+t*w)*p,e[7]=(y*x-f*b-t*m)*p,e[8]=(f*T-g*x+t*v)*p,this):null}});t.exports=s},9652:(t,e,i)=>{var s=i(7473),i=i(5689),n=new s({initialize:function(t){this.val=new Float32Array(16),t?this.copy(t):this.identity()},clone:function(){return new n(this)},set:function(t){return this.copy(t)},setValues:function(t,e,i,s,n,r,o,a,h,l,u,c,d,p,f,g){var y=this.val;return y[0]=t,y[1]=e,y[2]=i,y[3]=s,y[4]=n,y[5]=r,y[6]=o,y[7]=a,y[8]=h,y[9]=l,y[10]=u,y[11]=c,y[12]=d,y[13]=p,y[14]=f,y[15]=g,this},copy:function(t){t=t.val;return this.setValues(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])},fromArray:function(t){return this.setValues(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])},zero:function(){return this.setValues(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)},transform:function(t,e,i){var i=a.fromQuat(i).val,s=e.x,n=e.y,e=e.z;return this.setValues(i[0]*s,i[1]*s,i[2]*s,0,i[4]*n,i[5]*n,i[6]*n,0,i[8]*e,i[9]*e,i[10]*e,0,t.x,t.y,t.z,1)},xyz:function(t,e,i){this.identity();var s=this.val;return s[12]=t,s[13]=e,s[14]=i,this},scaling:function(t,e,i){this.zero();var s=this.val;return s[0]=t,s[5]=e,s[10]=i,s[15]=1,this},identity:function(){return this.setValues(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)},transpose:function(){var t=this.val,e=t[1],i=t[2],s=t[3],n=t[6],r=t[7],o=t[11];return t[1]=t[4],t[2]=t[8],t[3]=t[12],t[4]=e,t[6]=t[9],t[7]=t[13],t[8]=i,t[9]=n,t[11]=t[14],t[12]=s,t[13]=r,t[14]=o,this},getInverse:function(t){return this.copy(t),this.invert()},invert:function(){var t=this.val,e=t[0],i=t[1],s=t[2],n=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=t[9],c=t[10],d=t[11],p=t[12],f=t[13],g=t[14],t=t[15],y=e*o-i*r,v=e*a-s*r,m=e*h-n*r,x=i*a-s*o,w=i*h-n*o,T=s*h-n*a,b=l*f-u*p,S=l*g-c*p,P=l*t-d*p,_=u*g-c*f,E=u*t-d*f,A=c*t-d*g,C=y*A-v*E+m*_+x*P-w*S+T*b;return C?this.setValues((o*A-a*E+h*_)*(C=1/C),(s*E-i*A-n*_)*C,(f*T-g*w+t*x)*C,(c*w-u*T-d*x)*C,(a*P-r*A-h*S)*C,(e*A-s*P+n*S)*C,(g*m-p*T-t*v)*C,(l*T-c*m+d*v)*C,(r*E-o*P+h*b)*C,(i*P-e*E-n*b)*C,(p*w-f*m+t*y)*C,(u*m-l*w-d*y)*C,(o*S-r*_-a*b)*C,(e*_-i*S+s*b)*C,(f*v-p*x-g*y)*C,(l*x-u*v+c*y)*C):this},adjoint:function(){var t=this.val,e=t[0],i=t[1],s=t[2],n=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=t[9],c=t[10],d=t[11],p=t[12],f=t[13],g=t[14],t=t[15];return this.setValues(o*(c*t-d*g)-u*(a*t-h*g)+f*(a*d-h*c),-(i*(c*t-d*g)-u*(s*t-n*g)+f*(s*d-n*c)),i*(a*t-h*g)-o*(s*t-n*g)+f*(s*h-n*a),-(i*(a*d-h*c)-o*(s*d-n*c)+u*(s*h-n*a)),-(r*(c*t-d*g)-l*(a*t-h*g)+p*(a*d-h*c)),e*(c*t-d*g)-l*(s*t-n*g)+p*(s*d-n*c),-(e*(a*t-h*g)-r*(s*t-n*g)+p*(s*h-n*a)),e*(a*d-h*c)-r*(s*d-n*c)+l*(s*h-n*a),r*(u*t-d*f)-l*(o*t-h*f)+p*(o*d-h*u),-(e*(u*t-d*f)-l*(i*t-n*f)+p*(i*d-n*u)),e*(o*t-h*f)-r*(i*t-n*f)+p*(i*h-n*o),-(e*(o*d-h*u)-r*(i*d-n*u)+l*(i*h-n*o)),-(r*(u*g-c*f)-l*(o*g-a*f)+p*(o*c-a*u)),e*(u*g-c*f)-l*(i*g-s*f)+p*(i*c-s*u),-(e*(o*g-a*f)-r*(i*g-s*f)+p*(i*a-s*o)),e*(o*c-a*u)-r*(i*c-s*u)+l*(i*a-s*o))},determinant:function(){var t=this.val,e=t[0],i=t[1],s=t[2],n=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=t[9],c=t[10],d=t[11],p=t[12],f=t[13],g=t[14],t=t[15];return(e*o-i*r)*(c*t-d*g)-(e*a-s*r)*(u*t-d*f)+(e*h-n*r)*(u*g-c*f)+(i*a-s*o)*(l*t-d*p)-(i*h-n*o)*(l*g-c*p)+(s*h-n*a)*(l*f-u*p)},multiply:function(t){var e=this.val,i=e[0],s=e[1],n=e[2],r=e[3],o=e[4],a=e[5],h=e[6],l=e[7],u=e[8],c=e[9],d=e[10],p=e[11],f=e[12],g=e[13],y=e[14],v=e[15],t=t.val,m=t[0],x=t[1],w=t[2],T=t[3];return e[0]=m*i+x*o+w*u+T*f,e[1]=m*s+x*a+w*c+T*g,e[2]=m*n+x*h+w*d+T*y,e[3]=m*r+x*l+w*p+T*v,m=t[4],x=t[5],w=t[6],T=t[7],e[4]=m*i+x*o+w*u+T*f,e[5]=m*s+x*a+w*c+T*g,e[6]=m*n+x*h+w*d+T*y,e[7]=m*r+x*l+w*p+T*v,m=t[8],x=t[9],w=t[10],T=t[11],e[8]=m*i+x*o+w*u+T*f,e[9]=m*s+x*a+w*c+T*g,e[10]=m*n+x*h+w*d+T*y,e[11]=m*r+x*l+w*p+T*v,m=t[12],x=t[13],w=t[14],T=t[15],e[12]=m*i+x*o+w*u+T*f,e[13]=m*s+x*a+w*c+T*g,e[14]=m*n+x*h+w*d+T*y,e[15]=m*r+x*l+w*p+T*v,this},multiplyLocal:function(t){var e=this.val,t=t.val;return this.setValues(e[0]*t[0]+e[1]*t[4]+e[2]*t[8]+e[3]*t[12],e[0]*t[1]+e[1]*t[5]+e[2]*t[9]+e[3]*t[13],e[0]*t[2]+e[1]*t[6]+e[2]*t[10]+e[3]*t[14],e[0]*t[3]+e[1]*t[7]+e[2]*t[11]+e[3]*t[15],e[4]*t[0]+e[5]*t[4]+e[6]*t[8]+e[7]*t[12],e[4]*t[1]+e[5]*t[5]+e[6]*t[9]+e[7]*t[13],e[4]*t[2]+e[5]*t[6]+e[6]*t[10]+e[7]*t[14],e[4]*t[3]+e[5]*t[7]+e[6]*t[11]+e[7]*t[15],e[8]*t[0]+e[9]*t[4]+e[10]*t[8]+e[11]*t[12],e[8]*t[1]+e[9]*t[5]+e[10]*t[9]+e[11]*t[13],e[8]*t[2]+e[9]*t[6]+e[10]*t[10]+e[11]*t[14],e[8]*t[3]+e[9]*t[7]+e[10]*t[11]+e[11]*t[15],e[12]*t[0]+e[13]*t[4]+e[14]*t[8]+e[15]*t[12],e[12]*t[1]+e[13]*t[5]+e[14]*t[9]+e[15]*t[13],e[12]*t[2]+e[13]*t[6]+e[14]*t[10]+e[15]*t[14],e[12]*t[3]+e[13]*t[7]+e[14]*t[11]+e[15]*t[15])},premultiply:function(t){return this.multiplyMatrices(t,this)},multiplyMatrices:function(t,e){var t=t.val,e=e.val,i=t[0],s=t[4],n=t[8],r=t[12],o=t[1],a=t[5],h=t[9],l=t[13],u=t[2],c=t[6],d=t[10],p=t[14],f=t[3],g=t[7],y=t[11],t=t[15],v=e[0],m=e[4],x=e[8],w=e[12],T=e[1],b=e[5],S=e[9],P=e[13],_=e[2],E=e[6],A=e[10],C=e[14],M=e[3],O=e[7],R=e[11],e=e[15];return this.setValues(i*v+s*T+n*_+r*M,o*v+a*T+h*_+l*M,u*v+c*T+d*_+p*M,f*v+g*T+y*_+t*M,i*m+s*b+n*E+r*O,o*m+a*b+h*E+l*O,u*m+c*b+d*E+p*O,f*m+g*b+y*E+t*O,i*x+s*S+n*A+r*R,o*x+a*S+h*A+l*R,u*x+c*S+d*A+p*R,f*x+g*S+y*A+t*R,i*w+s*P+n*C+r*e,o*w+a*P+h*C+l*e,u*w+c*P+d*C+p*e,f*w+g*P+y*C+t*e)},translate:function(t){return this.translateXYZ(t.x,t.y,t.z)},translateXYZ:function(t,e,i){var s=this.val;return s[12]=s[0]*t+s[4]*e+s[8]*i+s[12],s[13]=s[1]*t+s[5]*e+s[9]*i+s[13],s[14]=s[2]*t+s[6]*e+s[10]*i+s[14],s[15]=s[3]*t+s[7]*e+s[11]*i+s[15],this},scale:function(t){return this.scaleXYZ(t.x,t.y,t.z)},scaleXYZ:function(t,e,i){var s=this.val;return s[0]=s[0]*t,s[1]=s[1]*t,s[2]=s[2]*t,s[3]=s[3]*t,s[4]=s[4]*e,s[5]=s[5]*e,s[6]=s[6]*e,s[7]=s[7]*e,s[8]=s[8]*i,s[9]=s[9]*i,s[10]=s[10]*i,s[11]=s[11]*i,this},makeRotationAxis:function(t,e){var i=Math.cos(e),e=Math.sin(e),s=1-i,n=t.x,r=t.y,t=t.z,o=s*n,a=s*r;return this.setValues(o*n+i,o*r-e*t,o*t+e*r,0,o*r+e*t,a*r+i,a*t-e*n,0,o*t-e*r,a*t+e*n,s*t*t+i,0,0,0,0,1)},rotate:function(t,e){var i=this.val,s=e.x,n=e.y,e=e.z,r=Math.sqrt(s*s+n*n+e*e);if(Math.abs(r)<1e-6)return this;s*=r=1/r,n*=r,e*=r;var r=Math.sin(t),t=Math.cos(t),o=1-t,a=i[0],h=i[1],l=i[2],u=i[3],c=i[4],d=i[5],p=i[6],f=i[7],g=i[8],y=i[9],v=i[10],m=i[11],x=i[12],w=i[13],T=i[14],i=i[15],b=s*s*o+t,S=n*s*o+e*r,P=e*s*o-n*r,_=s*n*o-e*r,E=n*n*o+t,A=e*n*o+s*r,C=s*e*o+n*r,n=n*e*o-s*r,s=e*e*o+t;return this.setValues(a*b+c*S+g*P,h*b+d*S+y*P,l*b+p*S+v*P,u*b+f*S+m*P,a*_+c*E+g*A,h*_+d*E+y*A,l*_+p*E+v*A,u*_+f*E+m*A,a*C+c*n+g*s,h*C+d*n+y*s,l*C+p*n+v*s,u*C+f*n+m*s,x,w,T,i)},rotateX:function(t){var e=this.val,i=Math.sin(t),t=Math.cos(t),s=e[4],n=e[5],r=e[6],o=e[7],a=e[8],h=e[9],l=e[10],u=e[11];return e[4]=s*t+a*i,e[5]=n*t+h*i,e[6]=r*t+l*i,e[7]=o*t+u*i,e[8]=a*t-s*i,e[9]=h*t-n*i,e[10]=l*t-r*i,e[11]=u*t-o*i,this},rotateY:function(t){var e=this.val,i=Math.sin(t),t=Math.cos(t),s=e[0],n=e[1],r=e[2],o=e[3],a=e[8],h=e[9],l=e[10],u=e[11];return e[0]=s*t-a*i,e[1]=n*t-h*i,e[2]=r*t-l*i,e[3]=o*t-u*i,e[8]=s*i+a*t,e[9]=n*i+h*t,e[10]=r*i+l*t,e[11]=o*i+u*t,this},rotateZ:function(t){var e=this.val,i=Math.sin(t),t=Math.cos(t),s=e[0],n=e[1],r=e[2],o=e[3],a=e[4],h=e[5],l=e[6],u=e[7];return e[0]=s*t+a*i,e[1]=n*t+h*i,e[2]=r*t+l*i,e[3]=o*t+u*i,e[4]=a*t-s*i,e[5]=h*t-n*i,e[6]=l*t-r*i,e[7]=u*t-o*i,this},fromRotationTranslation:function(t,e){var i=t.x,s=t.y,n=t.z,t=t.w,r=i+i,o=s+s,a=n+n,h=i*r,l=i*o,i=i*a,u=s*o,s=s*a,n=n*a,r=t*r,o=t*o,t=t*a;return this.setValues(1-(u+n),l+t,i-o,0,l-t,1-(h+n),s+r,0,i+o,s-r,1-(h+u),0,e.x,e.y,e.z,1)},fromQuat:function(t){var e=t.x,i=t.y,s=t.z,t=t.w,n=e+e,r=i+i,o=s+s,a=e*n,h=e*r,e=e*o,l=i*r,i=i*o,s=s*o,n=t*n,r=t*r,t=t*o;return this.setValues(1-(l+s),h+t,e-r,0,h-t,1-(a+s),i+n,0,e+r,i-n,1-(a+l),0,0,0,0,1)},frustum:function(t,e,i,s,n,r){var o=1/(e-t),a=1/(s-i),h=1/(n-r);return this.setValues(2*n*o,0,0,0,0,2*n*a,0,0,(e+t)*o,(s+i)*a,(r+n)*h,-1,0,0,r*n*2*h,0)},perspective:function(t,e,i,s){var t=1/Math.tan(t/2),n=1/(i-s);return this.setValues(t/e,0,0,0,0,t,0,0,0,0,(s+i)*n,-1,0,0,2*s*i*n,0)},perspectiveLH:function(t,e,i,s){return this.setValues(2*i/t,0,0,0,0,2*i/e,0,0,0,0,-s/(i-s),1,0,0,i*s/(i-s),0)},ortho:function(t,e,i,s,n,r){var o=t-e,a=i-s,h=n-r;return this.setValues(-2*(o=0==o?o:1/o),0,0,0,0,-2*(a=0==a?a:1/a),0,0,0,0,2*(h=0==h?h:1/h),0,(t+e)*o,(s+i)*a,(r+n)*h,1)},lookAtRH:function(t,e,i){var s=this.val;return l.subVectors(t,e),0===l.getLengthSquared()&&(l.z=1),l.normalize(),r.crossVectors(i,l),0===r.getLengthSquared()&&(1===Math.abs(i.z)?l.x+=1e-4:l.z+=1e-4,l.normalize(),r.crossVectors(i,l)),r.normalize(),o.crossVectors(l,r),s[0]=r.x,s[1]=r.y,s[2]=r.z,s[4]=o.x,s[5]=o.y,s[6]=o.z,s[8]=l.x,s[9]=l.y,s[10]=l.z,this},lookAt:function(t,e,i){var s,n,r,o,a=t.x,h=t.y,t=t.z,l=i.x,u=i.y,i=i.z,c=e.x,d=e.y,e=e.z;return Math.abs(a-c)<1e-6&&Math.abs(h-d)<1e-6&&Math.abs(t-e)<1e-6?this.identity():(c=a-c,d=h-d,e=t-e,n=u*(e*=s=1/Math.sqrt(c*c+d*d+e*e))-i*(d*=s),i=i*(c*=s)-l*e,l=l*d-u*c,(s=Math.sqrt(n*n+i*i+l*l))?(n*=s=1/s,i*=s,l*=s):l=i=n=0,u=d*l-e*i,r=e*n-c*l,o=c*i-d*n,(s=Math.sqrt(u*u+r*r+o*o))?(u*=s=1/s,r*=s,o*=s):o=r=u=0,this.setValues(n,u,c,0,i,r,d,0,l,o,e,0,-(n*a+i*h+l*t),-(u*a+r*h+o*t),-(c*a+d*h+e*t),1))},yawPitchRoll:function(t,e,i){this.zero(),a.zero(),h.zero();var s=this.val,n=a.val,r=h.val,o=Math.sin(i),i=Math.cos(i);return s[10]=1,s[15]=1,s[0]=i,s[1]=o,s[4]=-o,s[5]=i,o=Math.sin(e),i=Math.cos(e),n[0]=1,n[15]=1,n[5]=i,n[10]=i,n[9]=-o,n[6]=o,o=Math.sin(t),i=Math.cos(t),r[5]=1,r[15]=1,r[0]=i,r[2]=-o,r[8]=o,r[10]=i,this.multiplyLocal(a),this.multiplyLocal(h),this},setWorldMatrix:function(t,e,i,s,n){return this.yawPitchRoll(t.y,t.x,t.z),a.scaling(i.x,i.y,i.z),h.xyz(e.x,e.y,e.z),this.multiplyLocal(a),this.multiplyLocal(h),s&&this.multiplyLocal(s),n&&this.multiplyLocal(n),this},multiplyToMat4:function(t,e){var i=this.val,t=t.val,s=i[0],n=i[1],r=i[2],o=i[3],a=i[4],h=i[5],l=i[6],u=i[7],c=i[8],d=i[9],p=i[10],f=i[11],g=i[12],y=i[13],v=i[14],i=i[15],m=t[0],x=t[1],w=t[2],T=t[3],b=t[4],S=t[5],P=t[6],_=t[7],E=t[8],A=t[9],C=t[10],M=t[11],O=t[12],R=t[13],D=t[14],t=t[15];return e.setValues(m*s+x*a+w*c+T*g,x*n+x*h+w*d+T*y,w*r+x*l+w*p+T*v,T*o+x*u+w*f+T*i,b*s+S*a+P*c+_*g,b*n+S*h+P*d+_*y,b*r+S*l+P*p+_*v,b*o+S*u+P*f+_*i,E*s+A*a+C*c+M*g,E*n+A*h+C*d+M*y,E*r+A*l+C*p+M*v,E*o+A*u+C*f+M*i,O*s+R*a+D*c+t*g,O*n+R*h+D*d+t*y,O*r+R*l+D*p+t*v,O*o+R*u+D*f+t*i)},fromRotationXYTranslation:function(t,e,i){var s=e.x,n=e.y,e=e.z,r=Math.sin(t.x),o=Math.cos(t.x),a=Math.sin(t.y),t=Math.cos(t.y),h=s,l=n,u=e,c=-r,d=0-c*a,p=0-o*a,c=c*t,f=o*t;return i||(h=t*s+a*e,l=d*s+o*n+c*e,u=p*s+r*n+f*e),this.setValues(t,d,p,0,0,o,r,0,a,c,f,0,h,l,u,1)},getMaxScaleOnAxis:function(){var t=this.val,e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],i=t[4]*t[4]+t[5]*t[5]+t[6]*t[6],t=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(e,i,t))}}),a=new n,h=new n,r=new i,o=new i,l=new i;t.exports=n},3733:t=>{t.exports=function(t,e,i){return Math.min(t+e,i)}},44:t=>{t.exports=function(t){var e=t.length;if(0===e)return 0;t.sort(function(t,e){return t-e});var i=Math.floor(e/2);return e%2==0?(t[i]+t[i-1])/2:t[i]}},5385:t=>{t.exports=function(t,e,i){return Math.max(t-e,i)}},8585:t=>{t.exports=function(t,e,i,s){e=(t-e)/((i=void 0===i?e+1:i)-e);return 1{var s=i(7473),n=i(2149),r=i(1984),i=i(5689),o=new Int8Array([1,2,0]),a=new Float32Array([0,0,0]),h=new i(1,0,0),l=new i(0,1,0),u=new i,c=new n,i=new s({initialize:function(t,e,i,s){this.onChangeCallback=r,this.set(t,e,i,s)},x:{get:function(){return this._x},set:function(t){this._x=t,this.onChangeCallback(this)}},y:{get:function(){return this._y},set:function(t){this._y=t,this.onChangeCallback(this)}},z:{get:function(){return this._z},set:function(t){this._z=t,this.onChangeCallback(this)}},w:{get:function(){return this._w},set:function(t){this._w=t,this.onChangeCallback(this)}},copy:function(t){return this.set(t)},set:function(t,e,i,s,n){return void 0===n&&(n=!0),"object"==typeof t?(this._x=t.x||0,this._y=t.y||0,this._z=t.z||0,this._w=t.w||0):(this._x=t||0,this._y=e||0,this._z=i||0,this._w=s||0),n&&this.onChangeCallback(this),this},add:function(t){return this._x+=t.x,this._y+=t.y,this._z+=t.z,this._w+=t.w,this.onChangeCallback(this),this},subtract:function(t){return this._x-=t.x,this._y-=t.y,this._z-=t.z,this._w-=t.w,this.onChangeCallback(this),this},scale:function(t){return this._x*=t,this._y*=t,this._z*=t,this._w*=t,this.onChangeCallback(this),this},length:function(){var t=this.x,e=this.y,i=this.z,s=this.w;return Math.sqrt(t*t+e*e+i*i+s*s)},lengthSq:function(){var t=this.x,e=this.y,i=this.z,s=this.w;return t*t+e*e+i*i+s*s},normalize:function(){var t=this.x,e=this.y,i=this.z,s=this.w,n=t*t+e*e+i*i+s*s;return 0t[n=0]&&(n=1),t[8]>t[3*n+n]&&(n=2),e=o[n],i=o[e],s=Math.sqrt(t[3*n+n]-t[3*e+e]-t[3*i+i]+1),a[n]=.5*s,a[e]=(t[3*e+n]+t[3*n+e])*(s=.5/s),a[i]=(t[3*i+n]+t[3*n+i])*s,this._x=a[0],this._y=a[1],this._z=a[2],this._w=(t[3*i+e]-t[3*e+i])*s),this.onChangeCallback(this),this}});t.exports=i},4208:(t,e,i)=>{var s=i(7425);t.exports=function(t){return t*s.RAD_TO_DEG}},1705:t=>{t.exports=function(t,e){void 0===e&&(e=1);var i=2*Math.random()*Math.PI;return t.x=Math.cos(i)*e,t.y=Math.sin(i)*e,t}},6650:t=>{t.exports=function(t,e){void 0===e&&(e=1);var i=2*Math.random()*Math.PI,s=2*Math.random()-1,n=Math.sqrt(1-s*s)*e;return t.x=Math.cos(i)*n,t.y=Math.sin(i)*n,t.z=s*e,t}},2037:t=>{t.exports=function(t,e){return void 0===e&&(e=1),t.x=(2*Math.random()-1)*e,t.y=(2*Math.random()-1)*e,t.z=(2*Math.random()-1)*e,t.w=(2*Math.random()-1)*e,t}},6283:t=>{t.exports=function(t,e){var i=t.x,s=t.y;return t.x=i*Math.cos(e)-s*Math.sin(e),t.y=i*Math.sin(e)+s*Math.cos(e),t}},9876:t=>{t.exports=function(t,e,i,s){var n=Math.cos(s),s=Math.sin(s),r=t.x-e,o=t.y-i;return t.x=r*n-o*s+e,t.y=r*s+o*n+i,t}},8348:t=>{t.exports=function(t,e,i,s,n){s+=Math.atan2(t.y-i,t.x-e);return t.x=e+n*Math.cos(s),t.y=i+n*Math.sin(s),t}},4497:t=>{t.exports=function(t,e,i,s,n){return t.x=e+n*Math.cos(s),t.y=i+n*Math.sin(s),t}},9640:(t,e,i)=>{var s=i(5689),n=i(9652),i=i(372),r=new n,o=new i,a=new s;t.exports=function(t,e,i){return o.setAxisAngle(e,i),r.fromRotationTranslation(o,a.set(0,0,0)),t.transformMat4(r)}},4078:t=>{t.exports=function(t){return 0{t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=10);i=Math.pow(i,-e);return Math.round(t*i)/i}},4936:t=>{t.exports=function(t,e,i,s){void 0===e&&(e=1),void 0===i&&(i=1),void 0===s&&(s=1),s*=Math.PI/t;for(var n=[],r=[],o=0;o{t.exports=function(t,e,i){return t<=e?0:i<=t?1:(t=(t-e)/(i-e))*t*(3-2*t)}},278:t=>{t.exports=function(t,e,i){return(t=Math.max(0,Math.min(1,(t-e)/(i-e))))*t*t*(t*(6*t-15)+10)}},163:(t,e,i)=>{var o=i(2529);t.exports=function(t,e,i,s){void 0===s&&(s=new o);var n=0,r=0;return 0{var u=i(2529);t.exports=function(t,e,i,s,n,r,o,a){void 0===a&&(a=new u);var h=Math.sin(n),n=Math.cos(n),l=n*r,r=h*r,h=-h*o,n=n*o,o=1/(l*n+h*-r);return a.x=n*o*t+-h*o*e+(s*h-i*n)*o,a.y=l*o*e+-r*o*t+(-s*l+i*r)*o,a}},2529:(t,e,i)=>{var s=i(7473),n=i(12),r=new s({initialize:function(t,e){this.x=0,this.y=0,"object"==typeof t?(this.x=t.x||0,this.y=t.y||0):(void 0===e&&(e=t),this.x=t||0,this.y=e||0)},clone:function(){return new r(this.x,this.y)},copy:function(t){return this.x=t.x||0,this.y=t.y||0,this},setFromObject:function(t){return this.x=t.x||0,this.y=t.y||0,this},set:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},setTo:function(t,e){return this.set(t,e)},setToPolar:function(t,e){return null==e&&(e=1),this.x=Math.cos(t)*e,this.y=Math.sin(t)*e,this},equals:function(t){return this.x===t.x&&this.y===t.y},fuzzyEquals:function(t,e){return n(this.x,t.x,e)&&n(this.y,t.y,e)},angle:function(){var t=Math.atan2(this.y,this.x);return t<0&&(t+=2*Math.PI),t},setAngle:function(t){return this.setToPolar(t,this.length())},add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this},scale:function(t){return isFinite(t)?(this.x*=t,this.y*=t):(this.x=0,this.y=0),this},divide:function(t){return this.x/=t.x,this.y/=t.y,this},negate:function(){return this.x=-this.x,this.y=-this.y,this},distance:function(t){var e=t.x-this.x,t=t.y-this.y;return Math.sqrt(e*e+t*t)},distanceSq:function(t){var e=t.x-this.x,t=t.y-this.y;return e*e+t*t},length:function(){var t=this.x,e=this.y;return Math.sqrt(t*t+e*e)},setLength:function(t){return this.normalize().scale(t)},lengthSq:function(){var t=this.x,e=this.y;return t*t+e*e},normalize:function(){var t=this.x,e=this.y,i=t*t+e*e;return 0{var s=new(i(7473))({initialize:function(t,e,i){this.x=0,this.y=0,this.z=0,"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0):(this.x=t||0,this.y=e||0,this.z=i||0)},up:function(){return this.x=0,this.y=1,this.z=0,this},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this},clone:function(){return new s(this.x,this.y,this.z)},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this},crossVectors:function(t,e){var i=t.x,s=t.y,t=t.z,n=e.x,r=e.y,e=e.z;return this.x=s*e-t*r,this.y=t*n-i*e,this.z=i*r-s*n,this},equals:function(t){return this.x===t.x&&this.y===t.y&&this.z===t.z},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z||0,this},set:function(t,e,i){return"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0):(this.x=t||0,this.y=e||0,this.z=i||0),this},setFromMatrixPosition:function(t){return this.fromArray(t.val,12)},setFromMatrixColumn:function(t,e){return this.fromArray(t.val,4*e)},fromArray:function(t,e){return this.x=t[e=void 0===e?0:e],this.y=t[e+1],this.z=t[e+2],this},add:function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z||0,this},addScalar:function(t){return this.x+=t,this.y+=t,this.z+=t,this},addScale:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e||0,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z||0,this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z||1,this},scale:function(t){return isFinite(t)?(this.x*=t,this.y*=t,this.z*=t):(this.x=0,this.y=0,this.z=0),this},divide:function(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z||1,this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},distance:function(t){var e=t.x-this.x,i=t.y-this.y,t=t.z-this.z||0;return Math.sqrt(e*e+i*i+t*t)},distanceSq:function(t){var e=t.x-this.x,i=t.y-this.y,t=t.z-this.z||0;return e*e+i*i+t*t},length:function(){var t=this.x,e=this.y,i=this.z;return Math.sqrt(t*t+e*e+i*i)},lengthSq:function(){var t=this.x,e=this.y,i=this.z;return t*t+e*e+i*i},normalize:function(){var t=this.x,e=this.y,i=this.z,s=t*t+e*e+i*i;return 0{var s=new(i(7473))({initialize:function(t,e,i,s){this.x=0,this.y=0,this.z=0,this.w=0,"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=s||0)},clone:function(){return new s(this.x,this.y,this.z,this.w)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z||0,this.w=t.w||0,this},equals:function(t){return this.x===t.x&&this.y===t.y&&this.z===t.z&&this.w===t.w},set:function(t,e,i,s){return"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=s||0),this},add:function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z||0,this.w+=t.w||0,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z||0,this.w-=t.w||0,this},scale:function(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this},length:function(){var t=this.x,e=this.y,i=this.z,s=this.w;return Math.sqrt(t*t+e*e+i*i+s*s)},lengthSq:function(){var t=this.x,e=this.y,i=this.z,s=this.w;return t*t+e*e+i*i+s*s},normalize:function(){var t=this.x,e=this.y,i=this.z,s=this.w,n=t*t+e*e+i*i+s*s;return 0{t.exports=function(t,e,i){return Math.abs(t-e)<=i}},8445:t=>{t.exports=function(t,e,i){return e<=t&&t<=i?t:e+((t-e)%(t=i-e)+t)%t}},6412:t=>{t.exports=function(t,e,i,s){return Math.atan2(s-e,i-t)}},760:t=>{t.exports=function(t,e){return Math.atan2(e.y-t.y,e.x-t.x)}},6909:t=>{t.exports=function(t,e){return Math.atan2(e.x-t.x,e.y-t.y)}},6947:t=>{t.exports=function(t,e,i,s){return Math.atan2(i-t,s-e)}},3426:(t,e,i)=>{var s=i(7425);t.exports=function(t){return t>Math.PI&&(t-=s.PI2),Math.abs(((t+s.TAU)%s.PI2-s.PI2)%s.PI2)}},6906:t=>{t.exports=function(t){return 0<=(t%=2*Math.PI)?t:t+2*Math.PI}},3270:(t,e,i)=>{var s=i(104);t.exports=function(){return s(-Math.PI,Math.PI)}},2748:(t,e,i)=>{var s=i(104);t.exports=function(){return s(-180,180)}},936:(t,e,i)=>{var s=i(6906);t.exports=function(t){return s(t+Math.PI)}},1935:(t,e,i)=>{var s=i(7425);t.exports=function(t,e,i){return void 0===i&&(i=.05),t!==e&&(Math.abs(e-t)<=i||Math.abs(e-t)>=s.PI2-i?t=e:(Math.abs(e-t)>Math.PI&&(e{t.exports=function(t,e){e-=t;return 0==e?0:e-360*Math.floor((e+180)/360)}},3692:(t,e,i)=>{var s=i(8445);t.exports=function(t){return s(t,-Math.PI,Math.PI)}},2820:(t,e,i)=>{var s=i(8445);t.exports=function(t){return s(t,-180,180)}},1833:(t,e,i)=>{t.exports={Between:i(6412),BetweenPoints:i(760),BetweenPointsY:i(6909),BetweenY:i(6947),CounterClockwise:i(3426),Normalize:i(6906),Random:i(3270),RandomDegrees:i(2748),Reverse:i(936),RotateTo:i(1935),ShortestBetween:i(5393),Wrap:i(3692),WrapDegrees:i(2820)}},7425:t=>{var e={PI2:2*Math.PI,TAU:.5*Math.PI,EPSILON:1e-6,DEG_TO_RAD:Math.PI/180,RAD_TO_DEG:180/Math.PI,RND:null,MIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER||-9007199254740991,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991};t.exports=e},1518:t=>{t.exports=function(t,e,i,s){t-=i,i=e-s;return Math.sqrt(t*t+i*i)}},5372:t=>{t.exports=function(t,e){var i=t.x-e.x,t=t.y-e.y;return Math.sqrt(i*i+t*t)}},4430:t=>{t.exports=function(t,e){var i=t.x-e.x,t=t.y-e.y;return i*i+t*t}},4361:t=>{t.exports=function(t,e,i,s){return Math.max(Math.abs(t-i),Math.abs(e-s))}},7798:t=>{t.exports=function(t,e,i,s,n){return void 0===n&&(n=2),Math.sqrt(Math.pow(i-t,n)+Math.pow(s-e,n))}},8290:t=>{t.exports=function(t,e,i,s){return Math.abs(t-i)+Math.abs(e-s)}},3788:t=>{t.exports=function(t,e,i,s){t-=i,i=e-s;return t*t+i*i}},6338:(t,e,i)=>{t.exports={Between:i(1518),BetweenPoints:i(5372),BetweenPointsSquared:i(4430),Chebyshev:i(4361),Power:i(7798),Snake:i(8290),Squared:i(3788)}},5751:t=>{t.exports=function(t,e){return t*t*(((e=void 0===e?1.70158:e)+1)*t-e)}},6203:t=>{t.exports=function(t,e){e=1.525*(e=void 0===e?1.70158:e);return(t*=2)<1?t*t*((1+e)*t-e)*.5:.5*((t-=2)*t*((1+e)*t+e)+2)}},9103:t=>{t.exports=function(t,e){return--t*t*(((e=void 0===e?1.70158:e)+1)*t+e)+1}},4938:(t,e,i)=>{t.exports={In:i(5751),Out:i(9103),InOut:i(6203)}},8677:t=>{t.exports=function(t){return(t=1-t)<1/2.75?1-7.5625*t*t:t<2/2.75?1-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}},4649:t=>{t.exports=function(t){var e=!1;return t<.5?(t=1-2*t,e=!0):t=2*t-1,t<1/2.75?t*=7.5625*t:t=t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5}},504:t=>{t.exports=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}},8872:(t,e,i)=>{t.exports={In:i(8677),Out:i(504),InOut:i(4649)}},3170:t=>{t.exports=function(t){return 1-Math.sqrt(1-t*t)}},2627:t=>{t.exports=function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}},1349:t=>{t.exports=function(t){return Math.sqrt(1- --t*t)}},5006:(t,e,i)=>{t.exports={In:i(3170),Out:i(1349),InOut:i(2627)}},6046:t=>{t.exports=function(t){return t*t*t}},9531:t=>{t.exports=function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)}},4836:t=>{t.exports=function(t){return--t*t*t+1}},875:(t,e,i)=>{t.exports={In:i(6046),Out:i(4836),InOut:i(9531)}},7619:t=>{t.exports=function(t,e,i){var s;return void 0===e&&(e=.1),void 0===i&&(i=.1),0===t?0:1===t?1:(s=i/4,e<1?e=1:s=i*Math.asin(1/e)/(2*Math.PI),-e*Math.pow(2,10*--t)*Math.sin((t-s)*(2*Math.PI)/i))}},7437:t=>{t.exports=function(t,e,i){var s;return void 0===e&&(e=.1),void 0===i&&(i=.1),0===t?0:1===t?1:(s=i/4,e<1?e=1:s=i*Math.asin(1/e)/(2*Math.PI),(t*=2)<1?e*Math.pow(2,10*--t)*Math.sin((t-s)*(2*Math.PI)/i)*-.5:e*Math.pow(2,-10*--t)*Math.sin((t-s)*(2*Math.PI)/i)*.5+1)}},8119:t=>{t.exports=function(t,e,i){var s;return void 0===e&&(e=.1),void 0===i&&(i=.1),0===t?0:1===t?1:(s=i/4,e<1?e=1:s=i*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*t)*Math.sin((t-s)*(2*Math.PI)/i)+1)}},2884:(t,e,i)=>{t.exports={In:i(7619),Out:i(8119),InOut:i(7437)}},5456:t=>{t.exports=function(t){return Math.pow(2,10*(t-1))-.001}},3461:t=>{t.exports=function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))}},2711:t=>{t.exports=function(t){return 1-Math.pow(2,-10*t)}},6287:(t,e,i)=>{t.exports={In:i(5456),Out:i(2711),InOut:i(3461)}},8613:(t,e,i)=>{t.exports={Back:i(4938),Bounce:i(8872),Circular:i(5006),Cubic:i(875),Elastic:i(2884),Expo:i(6287),Linear:i(4233),Quadratic:i(6341),Quartic:i(762),Quintic:i(345),Sine:i(8698),Stepped:i(7051)}},744:t=>{t.exports=function(t){return t}},4233:(t,e,i)=>{t.exports=i(744)},9810:t=>{t.exports=function(t){return t*t}},8163:t=>{t.exports=function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)}},6123:t=>{t.exports=function(t){return t*(2-t)}},6341:(t,e,i)=>{t.exports={In:i(9810),Out:i(6123),InOut:i(8163)}},7337:t=>{t.exports=function(t){return t*t*t*t}},4878:t=>{t.exports=function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)}},9012:t=>{t.exports=function(t){return 1- --t*t*t*t}},762:(t,e,i)=>{t.exports={In:i(7337),Out:i(9012),InOut:i(4878)}},303:t=>{t.exports=function(t){return t*t*t*t*t}},553:t=>{t.exports=function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)}},1632:t=>{t.exports=function(t){return--t*t*t*t*t+1}},345:(t,e,i)=>{t.exports={In:i(303),Out:i(1632),InOut:i(553)}},8455:t=>{t.exports=function(t){return 0===t?0:1===t?1:1-Math.cos(t*Math.PI/2)}},1844:t=>{t.exports=function(t){return 0===t?0:1===t?1:.5*(1-Math.cos(Math.PI*t))}},990:t=>{t.exports=function(t){return 0===t?0:1===t?1:Math.sin(t*Math.PI/2)}},8698:(t,e,i)=>{t.exports={In:i(8455),Out:i(990),InOut:i(1844)}},6745:t=>{t.exports=function(t,e){return void 0===e&&(e=1),t<=0?0:1<=t?1:1/e*(1+(e*t|0))}},7051:(t,e,i)=>{t.exports=i(6745)},3158:t=>{t.exports=function(t,e){return void 0===e&&(e=1e-4),Math.ceil(t-e)}},12:t=>{t.exports=function(t,e,i){return void 0===i&&(i=1e-4),Math.abs(t-e){t.exports=function(t,e){return void 0===e&&(e=1e-4),Math.floor(t+e)}},7373:t=>{t.exports=function(t,e,i){return e-(i=void 0===i?1e-4:i){t.exports=function(t,e,i){return t{t.exports={Ceil:i(3158),Equal:i(12),Floor:i(1326),GreaterThan:i(7373),LessThan:i(2622)}},4675:(t,e,i)=>{var s=i(7425),i=i(1030)(!1,{Angle:i(1833),Distance:i(6338),Easing:i(8613),Fuzzy:i(7927),Interpolation:i(2140),Pow2:i(7897),Snap:i(3943),RandomDataGenerator:i(6957),Average:i(3136),Bernstein:i(785),Between:i(7025),CatmullRom:i(48),CeilTo:i(5035),Clamp:i(2915),DegToRad:i(7149),Difference:i(2975),Euler:i(2107),Factorial:i(3916),FloatBetween:i(104),FloorTo:i(4941),FromPercent:i(1555),GetSpeed:i(5005),IsEven:i(3702),IsEvenStrict:i(8820),Linear:i(1743),LinearXY:i(3416),MaxAdd:i(3733),Median:i(44),MinSub:i(5385),Percent:i(8585),RadToDeg:i(4208),RandomXY:i(1705),RandomXYZ:i(6650),RandomXYZW:i(2037),Rotate:i(6283),RotateAround:i(9876),RotateAroundDistance:i(8348),RotateTo:i(4497),RoundAwayFromZero:i(4078),RoundTo:i(855),SinCosTableGenerator:i(4936),SmootherStep:i(278),SmoothStep:i(2733),ToXY:i(163),TransformXY:i(7556),Within:i(4119),Wrap:i(8445),Vector2:i(2529),Vector3:i(5689),Vector4:i(9279),Matrix3:i(2149),Matrix4:i(9652),Quaternion:i(372),RotateVec3:i(9640)},s);t.exports=i},1640:(t,e,i)=>{var r=i(785);t.exports=function(t,e){for(var i=0,s=t.length-1,n=0;n<=s;n++)i+=Math.pow(1-e,s-n)*Math.pow(e,n)*t[n]*r(s,n);return i}},6105:(t,e,i)=>{var r=i(48);t.exports=function(t,e){var i=t.length-1,s=i*e,n=Math.floor(s);return t[0]===t[i]?(e<0&&(n=Math.floor(s=i*(1+e))),r(s-n,t[(n-1+i)%i],t[n],t[(n+1)%i],t[(n+2)%i])):e<0?t[0]-(r(-s,t[0],t[0],t[1],t[1])-t[0]):1{t.exports=function(t,e,i,s,n){return(r=1-t)*r*r*e+3*(r=1-t)*r*t*i+3*(1-t)*t*t*s+t*t*t*n;var r}},6765:(t,e,i)=>{var r=i(1743);t.exports=function(t,e){var i=t.length-1,s=i*e,n=Math.floor(s);return e<0?r(t[0],t[1],s):1{t.exports=function(t,e,i,s){return(n=1-t)*n*e+2*(1-t)*t*i+t*t*s;var n}},5735:(t,e,i)=>{var s=i(2733);t.exports=function(t,e,i){return e+(i-e)*s(t,0,1)}},8705:(t,e,i)=>{var s=i(278);t.exports=function(t,e,i){return e+(i-e)*s(t,0,1)}},2140:(t,e,i)=>{t.exports={Bezier:i(1640),CatmullRom:i(6105),CubicBezier:i(4002),Linear:i(6765),QuadraticBezier:i(6388),SmoothStep:i(5735),SmootherStep:i(8705)}},5443:t=>{t.exports=function(t){t=Math.log(t)/.6931471805599453;return 1<{t.exports=function(t,e){return 0{t.exports=function(t){return 0{t.exports={GetNext:i(5443),IsSize:i(725),IsValue:i(167)}},6957:(t,e,i)=>{i=new(i(7473))({initialize:function(t){void 0===t&&(t=[(Date.now()*Math.random()).toString()]),this.c=1,this.s0=0,this.s1=0,this.s2=0,this.n=0,this.signs=[-1,1],t&&this.init(t)},rnd:function(){var t=2091639*this.s0+2.3283064365386963e-10*this.c;return this.c=0|t,this.s0=this.s1,this.s1=this.s2,this.s2=t-this.c,this.s2},hash:function(t){var e,i=this.n;t=t.toString();for(var s=0;s>>0))*i)>>>0,i+=4294967296*(e-=i);return 2.3283064365386963e-10*((this.n=i)>>>0)},init:function(t){"string"==typeof t?this.state(t):this.sow(t)},sow:function(t){if(this.n=4022871197,this.s0=this.hash(" "),this.s1=this.hash(" "),this.s2=this.hash(" "),this.c=1,t)for(var e=0;e{t.exports=function(t,e,i,s){return void 0===i&&(i=0),0===e?t:(t-=i,t=e*Math.ceil(t/e),s?(i+t)/e:i+t)}},5461:t=>{t.exports=function(t,e,i,s){return void 0===i&&(i=0),0===e?t:(t-=i,t=e*Math.floor(t/e),s?(i+t)/e:i+t)}},5131:t=>{t.exports=function(t,e,i,s){return void 0===i&&(i=0),0===e?t:(t-=i,t=e*Math.round(t/e),s?(i+t)/e:i+t)}},3943:(t,e,i)=>{t.exports={Ceil:i(5659),Floor:i(5461),To:i(5131)}},8666:(t,e,i)=>{i=new(i(7473))({initialize:function(t){this.pluginManager=t,this.game=t.game},init:function(){},start:function(){},stop:function(){},destroy:function(){this.pluginManager=null,this.game=null,this.scene=null,this.systems=null}});t.exports=i},8456:t=>{var n={},r={};t.exports={register:function(t,e,i,s){n[t]={plugin:e,mapping:i,custom:s=void 0===s?!1:s}},registerCustom:function(t,e,i,s){r[t]={plugin:e,mapping:i,data:s}},hasCore:function(t){return n.hasOwnProperty(t)},hasCustom:function(t){return r.hasOwnProperty(t)},getCore:function(t){return n[t]},getCustom:function(t){return r[t]},getCustomClass:function(t){return r.hasOwnProperty(t)?r[t].plugin:null},remove:function(t){n.hasOwnProperty(t)&&delete n[t]},removeCustom:function(t){r.hasOwnProperty(t)&&delete r[t]},destroyCorePlugins:function(){for(var t in n)n.hasOwnProperty(t)&&delete n[t]},destroyCustomPlugins:function(){for(var t in r)r.hasOwnProperty(t)&&delete r[t]}}},5722:(t,e,i)=>{var s=i(8666),n=i(7473),r=i(204),i=new n({Extends:s,initialize:function(t,e,i){s.call(this,e),this.scene=t,this.systems=t.sys,this.pluginKey=i,t.sys.events.once(r.BOOT,this.boot,this)},boot:function(){},destroy:function(){this.pluginManager=null,this.game=null,this.scene=null,this.systems=null}});t.exports=i},8351:t=>{t.exports={SKIP_CHECK:-1,NORMAL:0,ADD:1,MULTIPLY:2,SCREEN:3,OVERLAY:4,DARKEN:5,LIGHTEN:6,COLOR_DODGE:7,COLOR_BURN:8,HARD_LIGHT:9,SOFT_LIGHT:10,DIFFERENCE:11,EXCLUSION:12,HUE:13,SATURATION:14,COLOR:15,LUMINOSITY:16,ERASE:17,SOURCE_IN:18,SOURCE_OUT:19,SOURCE_ATOP:20,DESTINATION_OVER:21,DESTINATION_IN:22,DESTINATION_OUT:23,DESTINATION_ATOP:24,LIGHTER:25,COPY:26,XOR:27}},8196:t=>{t.exports={DEFAULT:0,LINEAR:0,NEAREST:1}},3527:t=>{t.exports="resize"},8618:t=>{t.exports="addedtoscene"},4328:t=>{t.exports="boot"},6099:t=>{t.exports="create"},7645:t=>{t.exports="destroy"},2710:t=>{t.exports="pause"},2547:t=>{t.exports="postupdate"},8577:t=>{t.exports="prerender"},8197:t=>{t.exports="preupdate"},8997:t=>{t.exports="ready"},7604:t=>{t.exports="removedfromscene"},8999:t=>{t.exports="render"},9742:t=>{t.exports="resume"},3667:t=>{t.exports="shutdown"},3468:t=>{t.exports="sleep"},7840:t=>{t.exports="start"},9896:t=>{t.exports="transitioncomplete"},5103:t=>{t.exports="transitioninit"},3162:t=>{t.exports="transitionout"},7841:t=>{t.exports="transitionstart"},6454:t=>{t.exports="transitionwake"},6536:t=>{t.exports="update"},3875:t=>{t.exports="wake"},204:(t,e,i)=>{t.exports={ADDED_TO_SCENE:i(8618),BOOT:i(4328),CREATE:i(6099),DESTROY:i(7645),PAUSE:i(2710),POST_UPDATE:i(2547),PRE_RENDER:i(8577),PRE_UPDATE:i(8197),READY:i(8997),REMOVED_FROM_SCENE:i(7604),RENDER:i(8999),RESUME:i(9742),SHUTDOWN:i(3667),SLEEP:i(3468),START:i(7840),TRANSITION_COMPLETE:i(9896),TRANSITION_INIT:i(5103),TRANSITION_OUT:i(3162),TRANSITION_START:i(7841),TRANSITION_WAKE:i(6454),UPDATE:i(6536),WAKE:i(3875)}},2362:(t,e,i)=>{var s=i(7473),w=i(2915),n=i(1030),r=new s({initialize:function(t,e,i,s,n,r,o){this.texture=t,this.name=e,this.source=t.source[i],this.sourceIndex=i,this.glTexture=this.source.glTexture,this.cutX,this.cutY,this.cutWidth,this.cutHeight,this.x=0,this.y=0,this.width,this.height,this.halfWidth,this.halfHeight,this.centerX,this.centerY,this.pivotX=0,this.pivotY=0,this.customPivot=!1,this.rotated=!1,this.autoRound=-1,this.customData={},this.u0=0,this.v0=0,this.u1=0,this.v1=0,this.data={cut:{x:0,y:0,w:0,h:0,r:0,b:0},trim:!1,sourceSize:{w:0,h:0},spriteSourceSize:{x:0,y:0,w:0,h:0,r:0,b:0},radius:0,drawImage:{x:0,y:0,width:0,height:0}},this.setSize(r,o,s,n)},setSize:function(t,e,i,s){void 0===s&&(s=0),this.cutX=i=void 0===i?0:i,this.cutY=s,this.cutWidth=t,this.cutHeight=e,this.width=t,this.height=e,this.halfWidth=Math.floor(.5*t),this.halfHeight=Math.floor(.5*e),this.centerX=Math.floor(t/2),this.centerY=Math.floor(e/2);var n=this.data,r=n.cut,r=(r.x=i,r.y=s,r.w=t,r.h=e,r.r=i+t,r.b=s+e,n.sourceSize.w=t,n.sourceSize.h=e,n.spriteSourceSize.w=t,n.spriteSourceSize.h=e,n.radius=.5*Math.sqrt(t*t+e*e),n.drawImage);return r.x=i,r.y=s,r.width=t,r.height=e,this.updateUVs()},setTrim:function(t,e,i,s,n,r){var o=this.data,a=o.spriteSourceSize;return o.trim=!0,o.sourceSize.w=t,o.sourceSize.h=e,a.x=i,a.y=s,a.w=n,a.h=r,a.r=i+n,a.b=s+r,this.x=i,this.y=s,this.width=n,this.height=r,this.halfWidth=.5*n,this.halfHeight=.5*r,this.centerX=Math.floor(n/2),this.centerY=Math.floor(r/2),this.updateUVs()},setCropUVs:function(t,e,i,s,n,r,o){var a,h,l,u=this.cutX,c=this.cutY,d=this.cutWidth,p=this.cutHeight,f=this.realWidth,g=this.realHeight,y=u+(e=w(e,0,f)),v=c+(i=w(i,0,g)),f=s=w(s,0,f-e),g=n=w(n,0,g-i),m=this.data,m=(m.trim?(m=m.spriteSourceSize,h=e+(s=w(s,0,d-e)),l=i+(n=w(n,0,p-i)),m.rh||m.y>l?g=f=v=y=0:(x=Math.max(m.x,e),a=Math.max(m.y,i),h=Math.min(m.r,h)-x,l=Math.min(m.b,l)-a,y=r?u+(d-(x-m.x)-h):u+(x-m.x),v=o?c+(p-(a-m.y)-l):c+(a-m.y),e=x,i=a,s=f=h,n=g=l)):(r&&(y=u+(d-e-s)),o&&(v=c+(p-i-n))),this.source.width),x=this.source.height;return t.u0=Math.max(0,y/m),t.v0=Math.max(0,v/x),t.u1=Math.min(1,(y+f)/m),t.v1=Math.min(1,(v+g)/x),t.x=e,t.y=i,t.cx=y,t.cy=v,t.cw=f,t.ch=g,t.width=s,t.height=n,t.flipX=r,t.flipY=o,t},updateCropUVs:function(t,e,i){return this.setCropUVs(t,t.x,t.y,t.width,t.height,e,i)},setUVs:function(t,e,i,s,n,r){var o=this.data.drawImage;return o.width=t,o.height=e,this.u0=i,this.v0=s,this.u1=n,this.v1=r,this},updateUVs:function(){var t=this.cutX,e=this.cutY,i=this.cutWidth,s=this.cutHeight,n=this.data.drawImage,n=(n.width=i,n.height=s,this.source.width),r=this.source.height;return this.u0=t/n,this.v0=e/r,this.u1=(t+i)/n,this.v1=(e+s)/r,this},updateUVsInverted:function(){var t=this.source.width,e=this.source.height;return this.u0=(this.cutX+this.cutHeight)/t,this.v0=this.cutY/e,this.u1=this.cutX/t,this.v1=(this.cutY+this.cutWidth)/e,this},clone:function(){var t=new r(this.texture,this.name,this.sourceIndex);return t.cutX=this.cutX,t.cutY=this.cutY,t.cutWidth=this.cutWidth,t.cutHeight=this.cutHeight,t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t.halfWidth=this.halfWidth,t.halfHeight=this.halfHeight,t.centerX=this.centerX,t.centerY=this.centerY,t.rotated=this.rotated,t.data=n(!0,t.data,this.data),t.updateUVs(),t},destroy:function(){this.source=null,this.texture=null,this.glTexture=null,this.customData=null,this.data=null},realWidth:{get:function(){return this.data.sourceSize.w}},realHeight:{get:function(){return this.data.sourceSize.h}},radius:{get:function(){return this.data.radius}},trimmed:{get:function(){return this.data.trim}},canvasData:{get:function(){return this.data.drawImage}}});t.exports=r},1864:t=>{t.exports=function(t,e,i){return t&&t.hasOwnProperty(e)?t[e]:i}},3747:t=>{t.exports={CREATED:0,DELAY:2,PENDING_RENDER:4,PLAYING_FORWARD:5,PLAYING_BACKWARD:6,HOLD_DELAY:7,REPEAT_DELAY:8,COMPLETE:9,PENDING:20,ACTIVE:21,LOOP_DELAY:22,COMPLETE_DELAY:23,START_DELAY:24,PENDING_REMOVE:25,REMOVED:26,FINISHED:27,DESTROYED:28,MAX:999999999999}},7473:t=>{function r(t,e,i,s){for(var n in e)if(e.hasOwnProperty(n)){r=e,o=n,r=(a=i)?r[o]:Object.getOwnPropertyDescriptor(r,o);a=!!((r=!a&&r.value&&"object"==typeof r.value?r.value:r)&&((o=r).get&&"function"==typeof o.get||o.set&&"function"==typeof o.set))&&(void 0===r.enumerable&&(r.enumerable=!0),void 0===r.configurable&&(r.configurable=!0),r);if(!1!==a){if(o=(s||t).prototype,r=n,(o=Object.getOwnPropertyDescriptor(o,r))&&!1===(o=o.value&&"object"==typeof o.value?o.value:o).configurable){if(h.ignoreFinals)continue;throw new Error("cannot override final property '"+n+"', set Class.ignoreFinals = true to skip")}Object.defineProperty(t.prototype,n,a)}else t.prototype[n]=e[n]}var r,o,a}function o(t,e){if(e){Array.isArray(e)||(e=[e]);for(var i=0;i{t.exports=function(){}},1792:t=>{t.exports=function(t,e,i,s,n){if(void 0===n&&(n=t),0{t.exports=function(t,e,i,s,n,r){if(void 0===i&&(i=0),void 0===r&&(r=t),0{t.exports=function(t,e){var i=t.indexOf(e);return-1!==i&&i{var a=i(2497);t.exports=function(t,e,i,s,n){void 0===n&&(n=t.length);var r=0;if(a(t,s=void 0===s?0:s,n))for(var o=s;o{t.exports=function(t,e,i){for(var s=[null],n=3;n{var a=i(2497);t.exports=function(t,e,i,s,n){if(void 0===n&&(n=t.length),a(t,s=void 0===s?0:s,n)){for(var r=[null],o=5;o{t.exports=function(t,e,i){if(!e.length)return NaN;if(1===e.length)return e[0];var s,n,r=1;if(i){if(te.length&&(r=e.length),i?(s=e[r-1][i],(n=e[r][i])-t<=t-s?e[r]:e[r-1]):(s=e[r-1],(n=e[r])-t<=t-s?n:s)}},4493:t=>{function s(t,e){void 0===e&&(e=[]);for(var i=0;i{var h=i(2497);t.exports=function(t,e,i,s,n){void 0===n&&(n=t.length);var r=[];if(h(t,s=void 0===s?0:s,n))for(var o=s;o{var a=i(2497);t.exports=function(t,e,i,s,n){if(void 0===n&&(n=t.length),a(t,s=void 0===s?0:s,n))for(var r=s;r{t.exports=function(t,e,i){void 0===i&&(i=t.length);e=(e=void 0===e?0:e)+Math.floor(Math.random()*i);return void 0===t[e]?null:t[e]}},8683:t=>{t.exports=function(t,e,i){if(e!==i){var s=t.indexOf(e),i=t.indexOf(i);if(s<0||i<0)throw new Error("Supplied items must be elements of the same array");i{t.exports=function(t,e,i){if(e!==i){var s=t.indexOf(e),i=t.indexOf(i);if(s<0||i<0)throw new Error("Supplied items must be elements of the same array");s{t.exports=function(t,e){var i,s,n=t.indexOf(e);return 0{t.exports=function(t,e,i){var s=t.indexOf(e);if(-1===s||i<0||i>=t.length)throw new Error("Supplied index out of bounds");return s!==i&&(t.splice(s,1),t.splice(i,0,e)),e}},6512:t=>{t.exports=function(t,e){var i,s,n=t.indexOf(e);return-1!==n&&n{t.exports=function(t,e,i,s){var n,r=[],o=!1;if((i||s)&&(o=!0,i=i||"",s=s||""),e{var o=i(4078);t.exports=function(t,e,i){void 0===t&&(t=0),void 0===i&&(i=1),null===(e=void 0===e?null:e)&&(e=t,t=0);for(var s=[],n=Math.max(o((e-t)/(i||1)),0),r=0;r{function p(t,e,i){var s=t[e];t[e]=t[i],t[i]=s}function f(t,e){return t{var d=i(5851),p=i(4912);t.exports=function(t,e,i){var s=d(i,"max",0),n=d(i,"qty",1),r=d(i,"random",!1),o=d(i,"randomB",!1),a=d(i,"repeat",0),h=d(i,"yoyo",!1),l=[];o&&p(e),-1===a&&(a=0===s?0:(i=t.length*e.length*n,h&&(i*=2),Math.ceil(s/i)));for(var u=0;u<=a;u++){var c=function(t,e,i){for(var s=[],n=0;n{var h=i(8935);t.exports=function(t,e,i,s){var n;if(void 0===s&&(s=t),!Array.isArray(e))return-1!==(n=t.indexOf(e))?(h(t,n),i&&i.call(s,e),e):null;for(var r=e.length-1,o=[];0<=r;){var a=e[r];-1!==(n=t.indexOf(a))&&(h(t,n),o.push(a),i)&&i.call(s,a),r--}return o}},4725:(t,e,i)=>{var n=i(8935);t.exports=function(t,e,i,s){if(void 0===s&&(s=t),e<0||e>t.length-1)throw new Error("Index out of bounds");t=n(t,e);return i&&i.call(s,t),t}},8780:(t,e,i)=>{var h=i(2497);t.exports=function(t,e,i,s,n){if(void 0===i&&(i=t.length),void 0===n&&(n=t),h(t,e=void 0===e?0:e,i)){var r=t.splice(e,i-e);if(s)for(var o=0;o{var s=i(8935);t.exports=function(t,e,i){void 0===i&&(i=t.length);e=(e=void 0===e?0:e)+Math.floor(Math.random()*i);return s(t,e)}},6960:t=>{t.exports=function(t,e,i){var e=t.indexOf(e),s=t.indexOf(i);return-1!==e&&-1===s&&(t[e]=i,!0)}},1021:t=>{t.exports=function(t,e){void 0===e&&(e=1);for(var i=null,s=0;s{t.exports=function(t,e){void 0===e&&(e=1);for(var i=null,s=0;s{t.exports=function(t,e,i,s){t=t.length;if(e<0||t{t.exports=function(t,e){var i=t.indexOf(e);return-1!==i&&0{var a=i(2497);t.exports=function(t,e,i,s,n){if(void 0===n&&(n=t.length),a(t,s=void 0===s?0:s,n))for(var r=s;r{t.exports=function(t){for(var e=t.length-1;0{t.exports=function(t){var i=/\D/g;return t.sort(function(t,e){return parseInt(t.replace(i,""),10)-parseInt(e.replace(i,""),10)}),t}},8935:t=>{t.exports=function(t,e){if(!(e>=t.length)){for(var i=t.length-1,s=t[e],n=e;n{var s=i(9356);function n(t,e){return String(t).localeCompare(e)}function o(t,e,i,s){for(var n,r,o,a,h=t.length,l=0,u=2*i,c=0;c{t.exports=function(t,e,i){if(e!==i){var s=t.indexOf(e),n=t.indexOf(i);if(s<0||n<0)throw new Error("Supplied items must be elements of the same array");t[s]=i,t[n]=e}return t}},1953:(t,e,i)=>{t.exports={Matrix:i(1237),Add:i(1792),AddAt:i(2280),BringToTop:i(2513),CountAllMatching:i(1771),Each:i(7883),EachInRange:i(5856),FindClosestInSorted:i(3957),Flatten:i(4493),GetAll:i(6245),GetFirst:i(1647),GetRandom:i(5301),MoveDown:i(1842),MoveTo:i(1419),MoveUp:i(6512),MoveAbove:i(8683),MoveBelow:i(546),NumberArray:i(4130),NumberArrayStep:i(1316),QuickSelect:i(9465),Range:i(9703),Remove:i(7161),RemoveAt:i(4725),RemoveBetween:i(8780),RemoveRandomElement:i(5744),Replace:i(6960),RotateLeft:i(1021),RotateRight:i(4027),SafeRange:i(2497),SendToBack:i(5361),SetAll:i(3718),Shuffle:i(4912),SortByDigits:i(2071),SpliceOne:i(8935),StableSort:i(9992),Swap:i(2372)}},1816:t=>{t.exports=function(t){if(!Array.isArray(t)||!Array.isArray(t[0]))return!1;for(var e=t[0].length,i=1;i{var o=i(7222),a=i(1816);t.exports=function(t){var e="";if(a(t))for(var i=0;i{t.exports=function(t){return t.reverse()}},6063:t=>{t.exports=function(t){for(var e=0;e{var s=i(7116);t.exports=function(t){return s(t,180)}},2597:(t,e,i)=>{var s=i(7116);t.exports=function(t){return s(t,90)}},7116:(t,e,i)=>{var s=i(1816),n=i(4780);t.exports=function(t,e){if(void 0===e&&(e=90),!s(t))return null;if(90===(e="string"!=typeof e?(e%360+360)%360:e)||-270===e||"rotateLeft"===e)(t=n(t)).reverse();else if(-90===e||270===e||"rotateRight"===e)t.reverse(),t=n(t);else if(180===Math.abs(e)||"rotate180"===e){for(var i=0;i{var s=i(7116);t.exports=function(t){return s(t,-90)}},7711:(t,e,i)=>{var r=i(1021),o=i(4027);t.exports=function(t,e,i){if(void 0===e&&(e=0),0!==(i=void 0===i?0:i)&&(i<0?r(t,Math.abs(i)):o(t,i)),0!==e)for(var s=0;s{t.exports=function(t){for(var e=t.length,i=t[0].length,s=new Array(i),n=0;n{t.exports={CheckMatrix:i(1816),MatrixToString:i(6655),ReverseColumns:i(582),ReverseRows:i(6063),Rotate180:i(8321),RotateLeft:i(2597),RotateMatrix:i(7116),RotateRight:i(6285),Translate:i(7711),TransposeMatrix:i(4780)}},3911:t=>{function n(t){var e,i,s;if("object"!=typeof t||null===t)return t;for(s in e=Array.isArray(t)?[]:{},t)i=t[s],e[s]=n(i);return e}t.exports=n},1030:(t,e,i)=>{function l(){var t,e,i,s,n,r=arguments[0]||{},o=1,a=arguments.length,h=!1;for("boolean"==typeof r&&(h=r,r=arguments[1]||{},o=2),a===o&&(r=this,--o);o{var s=i(4675),n=i(5851);t.exports=function(t,e,i){t=n(t,e,null);if(null===t)return i;if(Array.isArray(t))return s.RND.pick(t);if("object"==typeof t){if(t.hasOwnProperty("randInt"))return s.RND.integerInRange(t.randInt[0],t.randInt[1]);if(t.hasOwnProperty("randFloat"))return s.RND.realInRange(t.randFloat[0],t.randFloat[1])}else if("function"==typeof t)return t(e);return t}},4597:t=>{t.exports=function(t,e,i){var s=typeof t;return t&&"number"!=s&&"string"!=s&&t.hasOwnProperty(e)&&void 0!==t[e]?t[e]:i}},5851:t=>{t.exports=function(t,e,i,s){if(!t&&!s||"number"==typeof t)return i;if(t&&t.hasOwnProperty(e))return t[e];if(s&&s.hasOwnProperty(e))return s[e];if(-1===e.indexOf("."))return i;for(var n=e.split("."),r=t,o=s,a=i,h=i,l=!0,u=!0,c=0;c{t.exports=function(t){if(!t||"object"!=typeof t||t.nodeType||t===t.window)return!1;try{if(t.constructor&&!{}.hasOwnProperty.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}return!0}},7222:t=>{t.exports=function(t,e,i,s){void 0===i&&(i=" "),void 0===s&&(s=3);var n;if((e=void 0===e?0:e)+1>=(t=t.toString()).length)switch(s){case 1:t=new Array(e+1-t.length).join(i)+t;break;case 3:var r=Math.ceil((n=e-t.length)/2);t=new Array(n-r+1).join(i)+t+new Array(r+1).join(i);break;default:t+=new Array(e+1-t.length).join(i)}return t}}},n={},t=function t(e){var i=n[e];return void 0!==i||(i=n[e]={exports:{}},s[e](i,i.exports,t)),i.exports}(4513);window.SpinePlugin=t})(),"function"==typeof define&&define.amd?define(x):"object"==typeof exports?module.exports=x():this.SAT=x(),!function(i){var s={};function n(t){var e;return(s[t]||(e=s[t]={i:t,l:!1,exports:{}},i[t].call(e.exports,e,e.exports,n),e.l=!0,e)).exports}n.m=i,n.c=s,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)n.d(i,s,function(t){return e[t]}.bind(null,s));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=71)}([function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Spines=e.Jsons=e.Fonts=e.Sounds=e.Atlases=e.Constants=e.Images=void 0;var s=i(77),n=(Object.defineProperty(e,"Images",{enumerable:!0,get:function(){return s.Images}}),i(78)),r=(Object.defineProperty(e,"Constants",{enumerable:!0,get:function(){return n.Constants}}),i(79)),o=(Object.defineProperty(e,"Atlases",{enumerable:!0,get:function(){return r.Atlases}}),i(80)),a=(Object.defineProperty(e,"Sounds",{enumerable:!0,get:function(){return o.Sounds}}),i(81)),h=(Object.defineProperty(e,"Fonts",{enumerable:!0,get:function(){return a.Fonts}}),i(82)),l=(Object.defineProperty(e,"Jsons",{enumerable:!0,get:function(){return h.Jsons}}),i(83));Object.defineProperty(e,"Spines",{enumerable:!0,get:function(){return l.Spines}})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JD9SliceRenderTexture=e.JD9SliceContainer=e.JDTextInput=e.JDMaskParent=e.JDImageNineSlice=e.JDSpineGameObject=e.JDTextTranslated=e.JDTextFit=e.JDText=e.JDImageSkew=e.JDImagePivot=e.JDBmpdTextStroke=e.JDBmpdTextTranslated=e.JDBmpdTextFit=e.JDBmpdText=e.JDImageAnim=e.JDImage=e.JDSprite=void 0;var s=i(85),n=(Object.defineProperty(e,"JDSprite",{enumerable:!0,get:function(){return s.JDSprite}}),i(36)),r=(Object.defineProperty(e,"JDImage",{enumerable:!0,get:function(){return n.JDImage}}),i(86)),o=(Object.defineProperty(e,"JDImageAnim",{enumerable:!0,get:function(){return r.JDImageAnim}}),i(37)),a=(Object.defineProperty(e,"JDBmpdText",{enumerable:!0,get:function(){return o.JDBmpdText}}),i(55)),h=(Object.defineProperty(e,"JDBmpdTextFit",{enumerable:!0,get:function(){return a.JDBmpdTextFit}}),i(87)),l=(Object.defineProperty(e,"JDBmpdTextTranslated",{enumerable:!0,get:function(){return h.JDBmpdTextTranslated}}),i(20)),u=(Object.defineProperty(e,"JDBmpdTextStroke",{enumerable:!0,get:function(){return l.JDBmpdTextStroke}}),i(56)),c=(Object.defineProperty(e,"JDImagePivot",{enumerable:!0,get:function(){return u.JDImagePivot}}),i(92)),d=(Object.defineProperty(e,"JDImageSkew",{enumerable:!0,get:function(){return c.JDImageSkew}}),i(38)),p=(Object.defineProperty(e,"JDText",{enumerable:!0,get:function(){return d.JDText}}),i(7)),f=(Object.defineProperty(e,"JDTextFit",{enumerable:!0,get:function(){return p.JDTextFit}}),i(93)),g=(Object.defineProperty(e,"JDTextTranslated",{enumerable:!0,get:function(){return f.JDTextTranslated}}),i(94)),y=(Object.defineProperty(e,"JDSpineGameObject",{enumerable:!0,get:function(){return g.JDSpineGameObject}}),i(95)),v=(Object.defineProperty(e,"JDImageNineSlice",{enumerable:!0,get:function(){return y.JDImageNineSlice}}),i(96)),m=(Object.defineProperty(e,"JDMaskParent",{enumerable:!0,get:function(){return v.JDMaskParent}}),i(39)),x=(Object.defineProperty(e,"JDTextInput",{enumerable:!0,get:function(){return m.JDTextInput}}),i(99)),w=(Object.defineProperty(e,"JD9SliceContainer",{enumerable:!0,get:function(){return x.JD9SliceContainer}}),i(100));Object.defineProperty(e,"JD9SliceRenderTexture",{enumerable:!0,get:function(){return w.JD9SliceRenderTexture}})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.DetectNoBlood=e.TexturesEdit=e.SoundManager=e.SkinsData=e.SaveGame=e.Localization=e.DailyTask=e.BalanceData=e.Achievements=void 0;var s=i(23),n=(Object.defineProperty(e,"Achievements",{enumerable:!0,get:function(){return s.Achievements}}),i(4)),r=(Object.defineProperty(e,"BalanceData",{enumerable:!0,get:function(){return n.BalanceData}}),i(30)),o=(Object.defineProperty(e,"DailyTask",{enumerable:!0,get:function(){return r.DailyTask}}),i(15)),a=(Object.defineProperty(e,"Localization",{enumerable:!0,get:function(){return o.Localization}}),i(18)),h=(Object.defineProperty(e,"SaveGame",{enumerable:!0,get:function(){return a.SaveGame}}),i(63)),l=(Object.defineProperty(e,"SkinsData",{enumerable:!0,get:function(){return h.SkinsData}}),i(17)),u=(Object.defineProperty(e,"SoundManager",{enumerable:!0,get:function(){return l.SoundManager}}),i(102)),c=(Object.defineProperty(e,"TexturesEdit",{enumerable:!0,get:function(){return u.TexturesEdit}}),i(103));Object.defineProperty(e,"DetectNoBlood",{enumerable:!0,get:function(){return c.DetectNoBlood}})},function(t,e,i){"use strict";function s(){}Object.defineProperty(e,"__esModule",{value:!0}),e.Tools=void 0,s.random=function(t,e){return Math.floor(Math.random()*(e-t+1))+t},s.randomNum=function(t,e){return Math.random()*(e-t)+t},s.simpleRandom=function(){return 100*Math.random()},s.randomVal=function(t){return(t=void 0===t?0:t)+Math.random()},s.randomOne=function(t){return void 0===t&&(t=.5),Math.random()>16&255)/255,g:(t>>8&255)/255,b:(255&t)/255}},s.getRGBFromString=function(t){t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return t?{r:parseInt(t[1],16)/255,g:parseInt(t[2],16)/255,b:parseInt(t[3],16)/255}:null},s.getRGB255=function(t){return{r:t>>16&255,g:t>>8&255,b:255&t}},s.getHexColorFromRBG255=function(t){return this.getHexColorFrom255(t.r,t.g,t.b)},s.getHexColorFrom255=function(t,e,i){return t<<16|e<<8|i},s.rgbToHexString=function(t,e,i,s){return(s=void 0===s?"#":s)+((1<<24)+(t<<16)+(e<<8)+i).toString(16).slice(1)},s.formatNumber=function(t){return t.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")},s.sortArrayObectsByKey=function(t,i,e){var s=-1,n=1;!1===(e=void 0===e?!0:e)&&(n=-(s=1)),t.sort(function(t,e){t=t[i],e=e[i];return tMath.PI?t=-(Math.PI-(t-Math.PI)):t<-Math.PI&&(t=Math.PI+(t+Math.PI)),t},s.smartRotation=function(t){return(t%=s.PI2)>Math.PI?t-=s.PI2:t<-Math.PI&&(t+=s.PI2),t},s.convertNumToStr=function(t,e){void 0===e&&(e=2);var i=String(Math.floor(t));for("NaN"===i&&(i="0");i.lengthMath.PI?e-=this.PI2:e<-Math.PI&&(e+=this.PI2),e*i):0},s.getURLParam=function(t){return new Proxy(new URLSearchParams(window.location.search),{get:function(t,e){return t.get(e)}})[t]},s.PI2=2*Math.PI,s.PI075=.75*Math.PI,s.PI05=.5*Math.PI,s.PI025=.25*Math.PI,s.degToRad=Math.PI/180,s.radToDeg=180/Math.PI,e.Tools=s},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BalanceData=e.BalanceConfig=void 0;var s,n=i(0),r=i(3),i=((i=s=e.BalanceConfig||(e.BalanceConfig={})).GridSnap="grs",i.WireSparkSpeed="wss",i.TimeNewElevator="tne",i.SpeedElevator="se",i.PortalTimeCooldown="ptc",i.RopeUpVelY="ruvy",i.RopeDownVelY="rdvy",i.AppearingBlockApper="aba",i.AppearingBlockDisapper="abd",i.SpikeBlockVelocity="sbv",i.ClassicLaserFireTime="clft",i.ClassicLaserFireDistance="clfd",i.MissileLauncherFireTime="mlft",i.MissileLauncherFireDistance="mlfd",i.MissileSpeed="ms",i.MissileLifeTime="mlt",i.MissileFollowSpeed="mfs",i.ClassicLaserCameraFireTime="clcft",i.SurveillanceCameraRotaionSpeed="scrs",i.SurveillanceCameraFollowSpeed="scfs",i.PulseBlockPushPlayer="pbpp",i.PulseBlockPushOther="pbpo",i.PulseBlockDistanceEmit="pbde",i.GameSpeed="gs",i.PlayerBreathSpeed="pbs",i.PlayerAcidSpeed="pas",i.FallingBlockCoef="fbc",o.init=function(){this.configDefault={},this.configDefault[s.GridSnap]=25,this.configDefault[s.WireSparkSpeed]=.15,this.configDefault[s.TimeNewElevator]=120,this.configDefault[s.SpeedElevator]=2,this.configDefault[s.PortalTimeCooldown]=240,this.configDefault[s.RopeUpVelY]=2.5,this.configDefault[s.RopeDownVelY]=2.5,this.configDefault[s.AppearingBlockApper]=.3,this.configDefault[s.AppearingBlockDisapper]=.3,this.configDefault[s.SpikeBlockVelocity]=.3,this.configDefault[s.ClassicLaserFireTime]=80,this.configDefault[s.ClassicLaserFireDistance]=250,this.configDefault[s.MissileLauncherFireTime]=80,this.configDefault[s.MissileLauncherFireDistance]=400,this.configDefault[s.MissileSpeed]=3,this.configDefault[s.MissileLifeTime]=150,this.configDefault[s.MissileFollowSpeed]=1,this.configDefault[s.ClassicLaserCameraFireTime]=50,this.configDefault[s.SurveillanceCameraRotaionSpeed]=1,this.configDefault[s.SurveillanceCameraFollowSpeed]=2,this.configDefault[s.PulseBlockPushPlayer]=20,this.configDefault[s.PulseBlockPushOther]=20,this.configDefault[s.PulseBlockDistanceEmit]=200,this.configDefault[s.GameSpeed]=100,this.configDefault[s.PlayerBreathSpeed]=100,this.configDefault[s.PlayerAcidSpeed]=100,this.configDefault[s.FallingBlockCoef]=100},o.getConfigData=function(t,e){t=t[e];return t=void 0===t?this.configDefault[e]:t},o.initConfig=function(t){this.config_GridSnap=this.getConfigData(t,s.GridSnap),this.config_ElevatorTimeNew=this.getConfigData(t,s.TimeNewElevator),this.config_ElevatorSpeed=this.getConfigData(t,s.SpeedElevator),this.config_PortalTimeCooldown=this.getConfigData(t,s.PortalTimeCooldown),this.config_RopeUpVelY=this.getConfigData(t,s.RopeUpVelY),this.config_RopeDownVelY=this.getConfigData(t,s.RopeUpVelY),this.config_AppearingBlockApper=this.getConfigData(t,s.AppearingBlockApper),this.config_AppearingBlockDisapper=this.getConfigData(t,s.AppearingBlockDisapper),this.config_SpikeBlockVelocity=this.getConfigData(t,s.SpikeBlockVelocity),this.config_WireSparkSpeed=this.getConfigData(t,s.WireSparkSpeed),this.config_ClassicLaserFireTime=this.getConfigData(t,s.ClassicLaserFireTime),this.config_ClassicLaserFireDistance=this.getConfigData(t,s.ClassicLaserFireDistance),this.config_MissileLauncherFireTime=this.getConfigData(t,s.MissileLauncherFireTime),this.config_MissileLauncherFireDistance=this.getConfigData(t,s.MissileLauncherFireDistance),this.config_MissileSpeed=this.getConfigData(t,s.MissileSpeed),this.config_MissileLifeTime=this.getConfigData(t,s.MissileLifeTime),this.config_MissileFollowSpeed=this.getConfigData(t,s.MissileFollowSpeed),this.config_ClassicLaserCameraFireTime=this.getConfigData(t,s.ClassicLaserCameraFireTime),this.config_SurveillanceCameraRotaionSpeed=r.Tools.toRad(this.getConfigData(t,s.SurveillanceCameraRotaionSpeed)/60),this.config_SurveillanceCameraFollowSpeed=r.Tools.toRad(this.getConfigData(t,s.SurveillanceCameraFollowSpeed))/10,this.config_PulseBlockPushPlayer=this.getConfigData(t,s.PulseBlockPushPlayer),this.config_PulseBlockPushOther=this.getConfigData(t,s.PulseBlockPushOther),this.config_PulseBlockDistanceEmit=this.getConfigData(t,s.PulseBlockDistanceEmit),this.config_GameSpeed=this.getConfigData(t,s.GameSpeed)/100,this.config_PlayerBreathSpeed=this.getConfigData(t,s.PlayerBreathSpeed)/100,this.config_PlayerAcidSpeed=this.getConfigData(t,s.PlayerAcidSpeed)/100,this.config_FallingBlockCoef=this.getConfigData(t,s.FallingBlockCoef)/100,!0===n.Constants.IS_MOBILE&&(this.particleLimit=0,this.blend=!1,this.parallax=!1)},o.setCurrencyForAd=function(t){this.currenctForAd=t},o.getCurrencyForAd=function(t){return this.currenctForAd[t]},o.setActHardcorePrice=function(t){this.acthardcorePrice=t},o.getActHardcorePrice=function(t){return this.acthardcorePrice[t]},o.setActTrophies=function(t){this.actTrophies=t},o.getActTrophies=function(t){return this.actTrophies[t]},o.getBasicBlockFrame=function(t){t=Number(t);return"basicBlockColors "+(1e4+(t=!t||t>=this.basicBlockColorFrames?0:t))},o.getSlopeFrame=function(t){t=Number(t);return"leftSlopeColors "+(1e4+(t=!t||t>=this.basicBlockColorFrames?0:t))},(i=o).mutedSfx=!1,o.mutedMusic=!1,o.incorrectOrientation=!1,o.actsStarts=1,o.totalActs=10,o.editID="edit",o.hubID="hub",o.challengeID="challenge",o.vexID=""+i.totalActs,o.basicBlockColorFrames=10,o.totalCardsBlue=0,o.totalCardsGold=0,o.totalCoins=0,o.totalDeaths=0,o.currSkin=0,o.autoReset=!1,o.autoRestart=!1,o.noBlood=!1,o.particleLimit=30,o.blend=!0,o.parallax=!0,o.challengeBestScore=-1,o.levelsCompleted=0,o.actFinishTime=0,o);function o(){}e.BalanceData=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.Block=void 0,i(14)),a=i(13),i=(n=o.Entity,r(h,n),h.prototype.update=function(){},h.prototype.landOn=function(t){this.landed=t},h.prototype.applyForce=function(t,e){},h.prototype.levelStart=function(){},h.prototype.destroy=function(){this.topPolygon=null,this.bottomPolygon=null,this.leftPolygon=null,this.rightPolygon=null,this.lhPolygon=null,this.rhPolygon=null,this.totalPolygon=null,this.layer=null,this.landed=null,n.prototype.destroy.call(this)},h.prototype.resetLevel=function(){this.landed=null},h.prototype.reset=function(){this.landed=null},h.prototype.init=function(t,e,i,s){this.xPos=t,this.yPos=e,this.prevX=t,this.prevY=e,this.startX=t,this.startY=e,this.width=i,this.height=s,this.xVelocity=0,this.yVelocity=0,this.landed=null,this.alive=!0,this.halfWidth=.5*this.width,this.halfHeight=.5*this.height,this.initEdges(),this.initBounds(),this.initOffsets()},h.prototype.initEdges=function(){this.leftEdge=this.xPos-this.halfWidth,this.rightEdge=this.xPos+this.halfWidth,this.topEdge=this.yPos-this.halfHeight,this.bottomEdge=this.yPos+this.halfHeight},h.prototype.initBounds=function(){this.lhPolygon=this.getPolygon(h.TOP_BOUND_WIDTH,h.TOP_BOUND_HEIGHT),this.rhPolygon=this.getPolygon(h.TOP_BOUND_WIDTH,h.TOP_BOUND_HEIGHT),this.totalPolygon=this.getPolygon(this.width,this.height),this.leftPolygon=this.getPolygon(h.TOP_BOUND_WIDTH,this.height),this.rightPolygon=this.getPolygon(h.TOP_BOUND_WIDTH,this.height),this.topPolygon=this.getPolygon(this.width,h.TOP_BOUND_HEIGHT),this.bottomPolygon=this.getPolygon(this.width,h.TOP_BOUND_HEIGHT)},h.prototype.getPolygon=function(t,e){return a.Helpers.getPolygon(this.xPos,this.yPos,t,e)},h.prototype.initOffsets=function(){this.lhPolygon.setOffset(new SAT.Vector(-this.halfWidth,-this.halfHeight)),this.rhPolygon.setOffset(new SAT.Vector(this.halfWidth-h.TOP_BOUND_WIDTH,-this.halfHeight)),this.totalPolygon.setOffset(new SAT.Vector(-this.halfWidth,-this.halfHeight)),this.leftPolygon.setOffset(new SAT.Vector(-this.halfWidth,-this.halfHeight)),this.rightPolygon.setOffset(new SAT.Vector(this.halfWidth-h.TOP_BOUND_WIDTH,-this.halfHeight)),this.topPolygon.setOffset(new SAT.Vector(-this.halfWidth,-this.halfHeight)),this.bottomPolygon.setOffset(new SAT.Vector(-this.halfWidth,this.halfHeight-h.TOP_BOUND_HEIGHT))},h.prototype.updatePosition=function(){this.initEdges(),this.totalPolygon.pos.x=this.xPos,this.totalPolygon.pos.y=this.yPos,this.topPolygon.pos.x=this.xPos,this.topPolygon.pos.y=this.yPos,this.lhPolygon.pos.x=this.xPos,this.lhPolygon.pos.y=this.yPos,this.rhPolygon.pos.x=this.xPos,this.rhPolygon.pos.y=this.yPos,this.leftPolygon.pos.x=this.xPos,this.leftPolygon.pos.y=this.yPos,this.rightPolygon.pos.x=this.xPos,this.rightPolygon.pos.y=this.yPos,this.bottomPolygon.pos.x=this.xPos,this.bottomPolygon.pos.y=this.yPos,this.updateGraphicPosition()},h.prototype.updateGraphicPosition=function(){},h.prototype.destroySelf=function(){this.main.removeBlockFrom(this.main.blocks,this),n.prototype.destroySelf.call(this)},h.prototype.drawTestBounds=function(){this.clearDebugGraphics(),this.drawDebugPolyLine(this.totalPolygon,16711680,1),this.drawDebugPoly(this.leftPolygon,16711680),this.drawDebugPoly(this.leftPolygon,16711680),this.drawDebugPoly(this.rightPolygon,65280),this.drawDebugPoly(this.topPolygon,255),this.drawDebugPoly(this.bottomPolygon,16711935)},h.TOP_BOUND_WIDTH=10,h.TOP_BOUND_HEIGHT=10,h);function h(t,e){t=n.call(this,t)||this;return t.scalable=!0,t.hangable=!0,t.layer=e,t}e.Block=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ButtonContainerFrame=e.ButtonFrame=e.ButtonScaleImage=e.ButtonImage=e.ButtonScale=e.ButtonContainer=e.BaseButton=void 0;var s=i(43),n=(Object.defineProperty(e,"BaseButton",{enumerable:!0,get:function(){return s.BaseButton}}),i(44)),r=(Object.defineProperty(e,"ButtonContainer",{enumerable:!0,get:function(){return n.ButtonContainer}}),i(113)),o=(Object.defineProperty(e,"ButtonScale",{enumerable:!0,get:function(){return r.ButtonScale}}),i(45)),a=(Object.defineProperty(e,"ButtonImage",{enumerable:!0,get:function(){return o.ButtonImage}}),i(114)),h=(Object.defineProperty(e,"ButtonScaleImage",{enumerable:!0,get:function(){return a.ButtonScaleImage}}),i(115)),l=(Object.defineProperty(e,"ButtonFrame",{enumerable:!0,get:function(){return h.ButtonFrame}}),i(116));Object.defineProperty(e,"ButtonContainerFrame",{enumerable:!0,get:function(){return l.ButtonContainerFrame}})},function(t,e,i){"use strict";var s,n=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.JDTextFit=e.JDTextFitParam=void 0;var h,l,u=i(38),i=((i=h=e.JDTextFitParam||(e.JDTextFitParam={}))[i.size=0]="size",i[i.wordWrap=1]="wordWrap",i[i.both=2]="both",l=u.JDText,n(r,l),r.prototype.setText=function(t){return l.prototype.setText.call(this,t),(this.maxWidth||this.maxHeight)&&this.calcFitSize(),this},r.prototype.setFitSize=function(t,e,i){void 0===e&&(e=h.size),void 0===i&&(i=0),this.maxWidth=t,this.maxHeight=i,this.fitParam=e,this.maxWidth<=0?this.style.setFontSize(this.fontSize):this.calcFitSize()},r.prototype.calcFitSize=function(){var t=this.fontSize;if(this.style.setFontSize(t),this.fitParam!==h.wordWrap)for(this.fitParam===h.both&&l.prototype.setText.call(this,this.customBasicWordWrap(this.text,this.context,this.maxWidth));this.width>this.maxWidth||0this.maxHeight;)this.style.setFontSize(--t);else l.prototype.setText.call(this,this.customBasicWordWrap(this.text,this.context,this.maxWidth))},r.prototype.customBasicWordWrap=function(t,e,i){for(var s="",n=t.split(this.splitRegExp),r=n.length-1,o=e.measureText(" ").width,a=0;a<=r;a++){for(var h=i,l=n[a].split(" "),u=l.length-1,c=0;c<=u;c++){var d=l[c],p=e.measureText(d).width,f=p;cthis.xPos?this.faceRight():this.facing===a.Right&&t",""+e):3===t?e<=1?r.Localization.getText("lvlTarget3"):r.Localization.getText("lvlTarget3less").replace("",""+e):void 0},a.getPolygon=function(t,e,i,s){return new SAT.Polygon(new SAT.Vector(t,e),[new SAT.Vector(0,0),new SAT.Vector(i,0),new SAT.Vector(i,s),new SAT.Vector(0,s)])},a.getPolygonOffset=function(t,e,i,s,n,r){t=this.getPolygon(t,e,i,s);return t.setOffset(new SAT.Vector(n,r)),t},a.isAnHour=function(t){return!!t&&1<=Math.floor(t/1e3/60/60)},e.Helpers=a},function(t,e,i){"use strict";function s(t){this.alive=!1,this.main=t}Object.defineProperty(e,"__esModule",{value:!0}),e.Entity=void 0,s.prototype.update=function(){},s.prototype.reset=function(){},s.prototype.resetLevel=function(){void 0!==this.startX&&void 0!==this.startY&&(this.xPos=this.startX,this.yPos=this.startY)},s.prototype.levelStart=function(){},s.prototype.destroy=function(){this.main=null,this.boundsGraphic&&this.boundsGraphic.destroy()},s.prototype.destroySelf=function(){this.destroy()},s.prototype.clearDebugGraphics=function(){this.boundsGraphic||(this.boundsGraphic=new Phaser.GameObjects.Graphics(this.main),this.main.cameraGroup.add(this.boundsGraphic)),this.boundsGraphic.clear()},s.prototype.drawDebugPoly=function(t,e,i){this.boundsGraphic.fillStyle(e,i=void 0===i?.3:i),this.boundsGraphic.beginPath();for(var s=t.pos.x,n=t.pos.y,r=t.offset.x,o=t.offset.y,a=0;a=this.achieveList[t].amount)this.openAchieve("award",t),this.achievements[t]=-1,delete this.achieveList[t];else{if(!0===this.achieveList[t].once)return;this.achievements[t]=e}!0===i&&this.save()}},o.getAchiveCount=function(t){return Number(this.achievements[t])||0},o.isAchieveCompleted=function(t){return!this.achieveList[t]},o.EVENT_ACHIEVEMENT_COMPLETE="event_achievement_complete",o.actCompletes=0,o.actHardCompletes=0,o.totalAchives=0,o.totalComplete=0,e.Achievements=o,(i=s=e.TrophieAchieves||(e.TrophieAchieves={})).vex="vex",i.death="death",i.playHour="playh",i.gasping="gasping",i.allActs="allActs",i.allActsHard="allActsHard",i.allSkins="allSkins",i.daily10="daily10",i.daily50="daily50"},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Background=e.SkinScroll=e.SkinSlot=e.DailyTaskPanel=e.ControllerStick=e.ControllerButton=void 0;var s=i(110),n=(Object.defineProperty(e,"ControllerButton",{enumerable:!0,get:function(){return s.ControllerButton}}),i(111)),r=(Object.defineProperty(e,"ControllerStick",{enumerable:!0,get:function(){return n.ControllerStick}}),i(112)),o=(Object.defineProperty(e,"DailyTaskPanel",{enumerable:!0,get:function(){return r.DailyTaskPanel}}),i(117)),a=(Object.defineProperty(e,"SkinSlot",{enumerable:!0,get:function(){return o.SkinSlot}}),i(118)),h=(Object.defineProperty(e,"SkinScroll",{enumerable:!0,get:function(){return a.SkinScroll}}),i(119));Object.defineProperty(e,"Background",{enumerable:!0,get:function(){return h.Background}})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PipelineManager=e.PipelineList=void 0;var s,n=i(26),i=((i=s=e.PipelineList||(e.PipelineList={})).PivotSkew="PivotSkew",i.Blur="Blur",i.ColorMatrix="ColorMatrix",i.MIXBlurColorMatrix="MIXBlurColorMatrix",r.init=function(t){this.game=t,this.pipelines={}},r.getPipeline=function(t,e){var e=t+(e=void 0===e?"":e),i=this.pipelines[e];return i||(t===s.PivotSkew?i=new n.PLPivotSkew(this.game):t===s.Blur?i=new n.PLBlur(this.game):t===s.ColorMatrix?i=new n.PLColorMatrix(this.game):t===s.MIXBlurColorMatrix&&(i=new n.PLMIXBlurColorMatrix(this.game)),this.game.renderer.pipelines.add(e,i),this.pipelines[e]=i),t},r);function r(){}e.PipelineManager=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PLMIXBlurColorMatrix=e.PLColorMatrix=e.PLPivotSkew=e.PLBlur=e.PipelineManager=e.JDRender=void 0;var s=i(88),n=(Object.defineProperty(e,"JDRender",{enumerable:!0,get:function(){return s.JDRender}}),i(25)),r=(Object.defineProperty(e,"PipelineManager",{enumerable:!0,get:function(){return n.PipelineManager}}),i(89)),o=(Object.defineProperty(e,"PLBlur",{enumerable:!0,get:function(){return r.PLBlur}}),i(57)),a=(Object.defineProperty(e,"PLPivotSkew",{enumerable:!0,get:function(){return o.PLPivotSkew}}),i(90)),h=(Object.defineProperty(e,"PLColorMatrix",{enumerable:!0,get:function(){return a.PLColorMatrix}}),i(91));Object.defineProperty(e,"PLMIXBlurColorMatrix",{enumerable:!0,get:function(){return h.PLMIXBlurColorMatrix}})},function(I,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LockedArea=t.AcidBlock=t.BouncePulsateBlock=t.HoverPlatform=t.PulseBlock=t.VexTNT=t.SkinsBlock=t.VerticalBlock=t.SwimmingPool=t.SpeedBlock=t.SparkBlock=t.SolarBlock=t.PushBlock=t.Slope=t.LockBlock=t.InvisBlockUp=t.InvisBlockDown=t.InvisBlock=t.IceBlock=t.HorizontalBlock=t.GlassBlock=t.FallingBlock=t.ExplosiveBlock=t.ElevatorGenerator=t.ElevatorEliminator=t.Elevator=t.BounceBlock=t.BlockSpike=t.BlockedWall=t.BasicBlock=t.AppearingBlock=t.ActBlock=t.BlockBehavior=t.Block=void 0;var i=e(5),s=(Object.defineProperty(t,"Block",{enumerable:!0,get:function(){return i.Block}}),e(33)),n=(Object.defineProperty(t,"BlockBehavior",{enumerable:!0,get:function(){return s.BlockBehavior}}),e(148)),r=(Object.defineProperty(t,"ActBlock",{enumerable:!0,get:function(){return n.ActBlock}}),e(149)),o=(Object.defineProperty(t,"AppearingBlock",{enumerable:!0,get:function(){return r.AppearingBlock}}),e(150)),a=(Object.defineProperty(t,"BasicBlock",{enumerable:!0,get:function(){return o.BasicBlock}}),e(151)),h=(Object.defineProperty(t,"BlockedWall",{enumerable:!0,get:function(){return a.BlockedWall}}),e(152)),l=(Object.defineProperty(t,"BlockSpike",{enumerable:!0,get:function(){return h.BlockSpike}}),e(204)),u=(Object.defineProperty(t,"BounceBlock",{enumerable:!0,get:function(){return l.BounceBlock}}),e(205)),c=(Object.defineProperty(t,"Elevator",{enumerable:!0,get:function(){return u.Elevator}}),e(206)),d=(Object.defineProperty(t,"ElevatorEliminator",{enumerable:!0,get:function(){return c.ElevatorEliminator}}),e(207)),p=(Object.defineProperty(t,"ElevatorGenerator",{enumerable:!0,get:function(){return d.ElevatorGenerator}}),e(208)),f=(Object.defineProperty(t,"ExplosiveBlock",{enumerable:!0,get:function(){return p.ExplosiveBlock}}),e(209)),g=(Object.defineProperty(t,"FallingBlock",{enumerable:!0,get:function(){return f.FallingBlock}}),e(210)),y=(Object.defineProperty(t,"GlassBlock",{enumerable:!0,get:function(){return g.GlassBlock}}),e(211)),v=(Object.defineProperty(t,"HorizontalBlock",{enumerable:!0,get:function(){return y.HorizontalBlock}}),e(212)),m=(Object.defineProperty(t,"IceBlock",{enumerable:!0,get:function(){return v.IceBlock}}),e(51)),x=(Object.defineProperty(t,"InvisBlock",{enumerable:!0,get:function(){return m.InvisBlock}}),e(213)),w=(Object.defineProperty(t,"InvisBlockDown",{enumerable:!0,get:function(){return x.InvisBlockDown}}),e(214)),T=(Object.defineProperty(t,"InvisBlockUp",{enumerable:!0,get:function(){return w.InvisBlockUp}}),e(215)),b=(Object.defineProperty(t,"LockBlock",{enumerable:!0,get:function(){return T.LockBlock}}),e(216)),S=(Object.defineProperty(t,"Slope",{enumerable:!0,get:function(){return b.Slope}}),e(217)),P=(Object.defineProperty(t,"PushBlock",{enumerable:!0,get:function(){return S.PushBlock}}),e(218)),_=(Object.defineProperty(t,"SolarBlock",{enumerable:!0,get:function(){return P.SolarBlock}}),e(219)),E=(Object.defineProperty(t,"SparkBlock",{enumerable:!0,get:function(){return _.SparkBlock}}),e(220)),A=(Object.defineProperty(t,"SpeedBlock",{enumerable:!0,get:function(){return E.SpeedBlock}}),e(221)),C=(Object.defineProperty(t,"SwimmingPool",{enumerable:!0,get:function(){return A.SwimmingPool}}),e(222)),M=(Object.defineProperty(t,"VerticalBlock",{enumerable:!0,get:function(){return C.VerticalBlock}}),e(223)),O=(Object.defineProperty(t,"SkinsBlock",{enumerable:!0,get:function(){return M.SkinsBlock}}),e(224)),R=(Object.defineProperty(t,"VexTNT",{enumerable:!0,get:function(){return O.VexTNT}}),e(225)),D=(Object.defineProperty(t,"PulseBlock",{enumerable:!0,get:function(){return R.PulseBlock}}),e(226)),L=(Object.defineProperty(t,"HoverPlatform",{enumerable:!0,get:function(){return D.HoverPlatform}}),e(227)),k=(Object.defineProperty(t,"BouncePulsateBlock",{enumerable:!0,get:function(){return L.BouncePulsateBlock}}),e(228)),F=(Object.defineProperty(t,"AcidBlock",{enumerable:!0,get:function(){return k.AcidBlock}}),e(229));Object.defineProperty(t,"LockedArea",{enumerable:!0,get:function(){return F.LockedArea}})},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.Buzzsaw=void 0,i(11)),a=i(0),h=i(3),l=i(9),i=(n=o.Obstacle,r(u,n),u.prototype.levelStart=function(){if(!1!==this.checkUnderPool)for(var t=0,e=this.main.pools;t=this.data.tasks[t].t&&(this.data.tasks[t].r=1,o.Achievements.saveAchive(o.TrophieAchieves.daily10,1,!1),o.Achievements.saveAchive(o.TrophieAchieves.daily50,1)),this.save())},u.canShowTaskI=function(){return!1},u.resetByAD=function(){this.reset(this.timeToReset),this.scene.events.emit(this.EVENT_TIMER_RESET)},u.reset=function(t){this.tasksIDs=Object.keys(s);var e={},i=a.BalanceData.levelsCompleted+1;i>a.BalanceData.totalActs&&(i=a.BalanceData.totalActs),e[s.completeLevel]={c:0,t:1,r:0,l:n.Tools.random(1,i)},e[s.collectCoins]={c:0,t:n.Tools.random(5,12),r:0},e[s.playChallenge]={c:0,t:1,r:0},e[s.completeAny3Levels]={c:0,t:3,r:0},delete e[s[n.Tools.getAndDelRandomCell(this.tasksIDs)]],this.data={rTime:Date.now()+t,tasks:e},this.resetTxt(),this.save()},u.resetTxt=function(){this.dataTxt={};for(var t=0;t",""+this.data.tasks[s.collectCoins].t);case s.playChallenge:return h.Localization.getText("dailyTaskDes2");case s.completeAny3Levels:return h.Localization.getText("dailyTaskDes3");default:return"no tast found"}},u.load=function(){if(this.data){this.tasksIDs=new Array(3);for(var t=Object.keys(s),e=Object.keys(this.data.tasks),i=0;i<3;i++)this.tasksIDs[i]=t[e[i]];this.resetTxt()}else this.reset(this.timeToReset)},u.save=function(){l.SaveGame.getInstance().saveDaily(this.data)},u.EVENT_REWARDED="event_daily_rewarded",u.EVENT_TIMER_TICK="event_daily_timer_tick",u.EVENT_TIMER_RESET="event_daily_timer_reset",u);function u(){}e.DailyTask=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Tools=e.GetSymbolsForBMPDText=void 0;var s=i(101),n=(Object.defineProperty(e,"GetSymbolsForBMPDText",{enumerable:!0,get:function(){return s.GetSymbolsForBMPDText}}),i(3));Object.defineProperty(e,"Tools",{enumerable:!0,get:function(){return n.Tools}})},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.PHubButtons=e.PSkinMoney=e.PSkinTitle=e.PTNT=e.PAchievement=e.PLevelChallenge=e.PCurrency=void 0;var s=i(139),n=(Object.defineProperty(e,"PCurrency",{enumerable:!0,get:function(){return s.PCurrency}}),i(140)),r=(Object.defineProperty(e,"PLevelChallenge",{enumerable:!0,get:function(){return n.PLevelChallenge}}),i(141)),o=(Object.defineProperty(e,"PAchievement",{enumerable:!0,get:function(){return r.PAchievement}}),i(142)),a=(Object.defineProperty(e,"PTNT",{enumerable:!0,get:function(){return o.PTNT}}),i(143)),h=(Object.defineProperty(e,"PSkinTitle",{enumerable:!0,get:function(){return a.PSkinTitle}}),i(144)),l=(Object.defineProperty(e,"PSkinMoney",{enumerable:!0,get:function(){return h.PSkinMoney}}),i(145));Object.defineProperty(e,"PHubButtons",{enumerable:!0,get:function(){return l.PHubButtons}})},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.BlockBehavior=void 0,n=i(5).Block,r(o,n),o.prototype.applyForce=function(t,e){this.xVelocity+=t,this.yVelocity+=e},o.prototype.update=function(){this.xPos+=this.xVelocity,this.yPos+=this.yVelocity,this.xVelocity*=this.fricitonX,this.yVelocity*=this.fricitonY,this.xPos===this.prevX&&this.yPos===this.prevY||this.updatePosition()},o);function o(){var t=null!==n&&n.apply(this,arguments)||this;return t.fricitonX=.97,t.fricitonY=.97,t}e.BlockBehavior=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.BasicSubScene=void 0,i(32)),i=(n=Phaser.GameObjects.Container,r(a,n),a.prototype.init=function(t){},a.prototype.initCurrency=function(){this.currency=new o.PCurrency(this.scene),this.add(this.currency),this.currency.setTotal()},a.prototype.resize=function(){this.currency&&this.currency.resize()},a.prototype.update=function(){},a.prototype.destroy=function(){n.prototype.destroy.call(this),this.scene=null,this.currency=null},a);function a(){return null!==n&&n.apply(this,arguments)||this}e.BasicSubScene=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.BasicScene=void 0,n=Phaser.Scene,r(o,n),o.prototype.init=function(){this.events.once(Phaser.Scenes.Events.SHUTDOWN,this.destroy,this)},o.prototype.create=function(){this.initResize()},o.prototype.initResize=function(){this.scale.on(Phaser.Scale.Events.RESIZE,this.resize,this),this.resize()},o.prototype.resize=function(){},o.prototype.destroy=function(){this.scale.off(Phaser.Scale.Events.RESIZE,this.resize,this)},o);function o(){return null!==n&&n.apply(this,arguments)||this}e.BasicScene=r},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.JDImage=void 0,n=Phaser.GameObjects.Image,r(o,n),o.prototype.setTexture=function(t,e){return n.prototype.setTexture.call(this,t,e),this.refreshDrawTint=!0,this},o.prototype.setFrame=function(t,e,i){return n.prototype.setFrame.call(this,t,e,i),this.refreshDrawTint=!0,this},o.prototype.destroy=function(){Phaser.GameObjects.GameObject.prototype.destroy.call(this)},o);function o(){var t=null!==n&&n.apply(this,arguments)||this;return t.refreshDrawTint=!1,t}e.JDImage=r},function(t,e,i){"use strict";var s,h,n=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),n=(Object.defineProperty(e,"__esModule",{value:!0}),e.JDBmpdText=void 0,h=Phaser.GameObjects.BitmapText,n(r,h),r.prototype.setText=function(t){return this.refreshDrawTint=!0,h.prototype.setText.call(this,t),this},r.prototype.setColor=function(t){this.tint=t},r.prototype.destroy=function(){Phaser.GameObjects.GameObject.prototype.destroy.call(this)},r.prototype.toUpperCase=function(){h.prototype.setText.call(this,this.text.toUpperCase())},r);function r(t,e,i,s,n,r,o,a){void 0===o&&(o=16777215);t=h.call(this,t,e,i,s,n,r,a=void 0===a?1:a)||this;return t.refreshDrawTint=!1,t.setOrigin(.5*a,.5),t.setColor(o),t}e.JDBmpdText=n},function(t,e,i){"use strict";var s,n=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.JDText=e.JDTextAlign=void 0;var u,c,d=i(0),i=((i=u=e.JDTextAlign||(e.JDTextAlign={})).left="left",i.right="right",i.center="center",c=Phaser.GameObjects.Text,n(r,c),r);function r(t,e,i,s,n,r,o,a){void 0===o&&(o="#ffffff"),void 0===a&&(a=u.center);var h=this,l=d.Fonts.getTextMetrics(r);return(h=c.call(this,t,e,i,n,{fontFamily:s,fontSize:r+"px",color:o,align:a,metrics:l})||this).setOrigin(.5,.5),l||d.Fonts.setTextMetrics(r,h.style.metrics),h}e.JDText=i},function(t,e,i){"use strict";var s,n=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.JDTextInput=e.JDTextInputType=e.JDTextInputBg=void 0;var r,o,a,h=i(97),l=i(0),u=i(58),c=i(38),i=((i=r=e.JDTextInputBg||(e.JDTextInputBg={}))[i.none=0]="none",i[i.both=1]="both",i[i.bg=2]="bg",i[i.border=3]="border",(i=o=e.JDTextInputType||(e.JDTextInputType={})).text="text",i.password="password",i.number="number",a=Phaser.GameObjects.Container,n(d,a),d.prototype.renderWebGL=function(t,e,i,s){a.prototype.renderWebGL.call(this,t,e,i,s),!1===this.inputText.visible&&u.InputField.render(i,s)},d.prototype.renderCanvas=function(t,e,i,s){a.prototype.renderCanvas.call(this,t,e,i,s),!1===this.inputText.visible&&u.InputField.render(i,s)},d.prototype.inputDown=function(){this.inputText.visible=!1,u.InputField.onTxtIn(this),this.emit(d.EVENT_FOCUS_IN,this)},d.prototype.inputUp=function(t,e){!1===this.inputText.visible&&this.inputBox!==e[0]&&u.InputField.onFocusOut()},d.prototype.onFocusOut=function(t){this.inputText.visible=!0,this.updateText(t),this.emit(d.EVENT_FOCUS_OUT,this)},d.prototype.updateText=function(t){this.realText=t=t||"";var e=this.options.bgWidth-2*this.options.textBorderOffX;if(this.options.type===o.password){this.inputText.text=this.checkPlaceHolder("");for(var i=0;ie));i++);}else for(t=this.checkPlaceHolder(t),this.inputText.text=t;this.inputText.width>e;)this.inputText.text=this.inputText.text.slice(0,-1)},d.prototype.checkPlaceHolder=function(t){return 0===this.realText.length&&this.options.placeHolder?(t=this.options.placeHolder,this.options.placeHolderColor&&this.inputText.setColor(this.options.placeHolderColor)):this.inputText.style.color!==this.options.fontColor&&this.inputText.setColor(this.options.fontColor),t},Object.defineProperty(d.prototype,"text",{get:function(){return this.realText},set:function(t){this.updateText(t)},enumerable:!1,configurable:!0}),d.prototype.getInput=function(){return this.inputBox.input},d.prototype.destroy=function(){this.scene.input.off(Phaser.Input.Events.POINTER_DOWN,this.inputUp,this),a.prototype.destroy.call(this),this.options=null,this.inputBox=null,this.inputText=null},d.EVENT_FOCUS_IN="EVENT_FOCUS_IN",d.EVENT_FOCUS_OUT="EVENT_FOCUS_OUT",d);function d(t,e,i,s){void 0===s&&(s={});e=a.call(this,t,e,i)||this;return e.options=s,e.options.text=void 0===s.text?"":s.text,e.options.fontFamily=void 0===s.fontFamily?l.Fonts.Main:s.fontFamily,e.options.fontSize=void 0===s.fontSize?30:s.fontSize,e.options.fontColor=void 0===s.fontColor?"#000000":s.fontColor,e.options.textAlign=void 0===s.textAlign?c.JDTextAlign.left:s.textAlign,e.options.textAlignVertical=void 0===s.textAlignVertical?.5:s.textAlignVertical,e.options.textBorderOffX=void 0===s.textBorderOffX?0:s.textBorderOffX,e.options.textBorderOffY=void 0===s.textBorderOffY?0:s.textBorderOffY,e.options.type=s.type||o.text,e.options.inputTextColor=void 0===s.inputTextColor?e.options.fontColor:s.inputTextColor,e.realText=e.options.text,e.inputText=new Phaser.GameObjects.Text(t,0,e.options.textBorderOffY,"",{fontFamily:e.options.fontFamily,fontSize:e.options.fontSize+"px",color:e.options.fontColor,align:e.options.textAlign}),e.options.textAlign===c.JDTextAlign.left?(e.inputText.setOrigin(0,e.options.textAlignVertical),e.inputText.x=e.options.textBorderOffX):e.options.textAlign===c.JDTextAlign.center?e.inputText.setOrigin(.5,e.options.textAlignVertical):e.options.textAlign===c.JDTextAlign.right&&(e.inputText.setOrigin(1,e.options.textAlignVertical),e.inputText.x=-e.options.textBorderOffX),e.options.bgShow=void 0===s.bgShow?r.both:s.bgShow,e.options.bgWidth=void 0===s.bgWidth?e.inputText.width:s.bgWidth,e.options.bgHeight=void 0===s.bgHeight?e.inputText.height:s.bgHeight,e.options.bgRadius=void 0===s.bgRadius?0:s.bgRadius,e.options.bgColor=void 0===s.bgColor?16777215:s.bgColor,e.options.bgBorderThickness=void 0===s.bgBorderThickness?2:s.bgBorderThickness,e.options.bgBorderColor=void 0===s.bgBorderColor?0:s.bgBorderColor,e.inputBox=new h.InputBox(t,e.options,e.inputText.originX,e.inputText.originY),e.add(e.inputBox),e.add(e.inputText),e.inputBox.on(Phaser.Input.Events.POINTER_DOWN,e.inputDown,e),e.scene.input.on(Phaser.Input.Events.POINTER_DOWN,e.inputUp,e),e.updateText(e.realText),e}e.JDTextInput=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.CustomResize=void 0;var a=i(0),s=i(4);function n(){}n.init=function(){(this.userRatio=1)<(window.devicePixelRatio||1)&&(this.userRatio=.85),this.orientationDiv=document.getElementById(a.Constants.DIV_ID_ORIENTATION),Phaser.Scale.ScaleManager.prototype.boot=function(){this.canvas=this.game.canvas,this.fullscreen=this.game.device.fullscreen,this.game.events.on(Phaser.Core.Events.PRE_STEP,this.step,this),this.game.events.once(Phaser.Core.Events.DESTROY,this.destroy,this),this.startListeners()},Phaser.Scale.ScaleManager.prototype.getParentBounds=function(){var t,e;return!(!this.parent||(t=window.innerWidth,e=window.innerHeight,this.parentSize.width===t&&this.parentSize.height===e)||(this.parentSize.setSize(t,e),0))},Phaser.Scale.ScaleManager.prototype.step=function(t,e){this.parent&&(this._lastCheck+=e,this.dirty||this._lastCheck>this.resizeInterval)&&(this.getParentBounds()&&n.resize(this.game,this.parentSize.width,this.parentSize.height),this.dirty=!1,this._lastCheck=0)},Phaser.Scale.ScaleManager.prototype.updateScale=function(){var t=this.parentSize.width,e=(this.gameSize.width===n.MaxCanvasW&&(t=n.MaxCanvasW/n.scaleFactor),this.parentSize.height),t=(this.gameSize.height===n.MaxCanvasH&&(e=n.MaxCanvasH/n.scaleFactor),this.displaySize.resize(t,e),this.canvas.style);t.width=this.displaySize.width+"px",t.height=this.displaySize.height+"px",this.getParentBounds(),this.updateCenter()}},n.setGameSize=function(t,e){a.Constants.GW=t,a.Constants.GH=e,a.Constants.GHW=Math.floor(a.Constants.GW/2),a.Constants.GHH=Math.floor(a.Constants.GH/2),a.Constants.GW>a.Constants.GH?a.Constants.ORIENTATION_LANDSCAPE=!0:a.Constants.ORIENTATION_LANDSCAPE=!1},n.setMaxCanvasSize=function(t,e){this.MaxCanvasW=t,this.MaxCanvasH=e,this.OW=(this.MaxCanvasW-a.Constants.GW)/2,this.OH=(this.MaxCanvasH-a.Constants.GH)/2},n.refresh=function(t){this.resize(t,window.innerWidth,window.innerHeight)},n.resize=function(t,e,i){var s=a.Constants.GW,n=a.Constants.GH;this.scaleFactor=this.userRatio,this.scaleFactor/=ithis.MaxCanvasW&&(this.CanvasW=this.MaxCanvasW),this.CanvasH>this.MaxCanvasH&&(this.CanvasH=this.MaxCanvasH),this.CanvasHalfW=this.CanvasW/2,this.CanvasHalfH=this.CanvasH/2,this.resizeUI(this.CanvasW,this.CanvasH,a.Constants.UI_WIDTH,a.Constants.UI_HEIGHT),this.nativeResize(t.scale,this.CanvasW,this.CanvasH),!0===a.Constants.IS_MOBILE&&(this.checkOrientation(e,i),window.scroll(0,0))},n.nativeResize=function(t,e,i){var s=t.width,n=t.height,r=(t.gameSize.resize(e,i),t.baseSize.resize(e,i),t.canvas.width=t.baseSize.width,t.canvas.height=t.baseSize.height,t.canvas.style);r.width=e+"px",r.height=i+"px",t.refresh(s,n)},n.checkOrientation=function(t,e){ethis.disappearDistSq&&(this.canDisappear=!0),!0===this.canAppear?(this.sprite.alpha-=.25*(this.sprite.alpha-1),t=this.sprite.scaleX,(t-=.25*(t-this.startScale))>=this.startScale-.01&&(this.canAppear=!1,this.reappear=0),this.sprite.scale=t):!0===this.canDisappear&&(this.reappear>=this.reappearTime?(this.sprite.alpha-=.25*this.sprite.alpha,t=this.sprite.scaleX,(t-=.25*t)<=0&&(this.canDisappear=!1),this.sprite.scale=t):this.reappear+=1)},a.prototype.destroy=function(){this.sprite.destroy(),this.sprite=null,n.prototype.destroy.call(this)},a);function a(){var t=null!==n&&n.apply(this,arguments)||this;return t.appearDistSq=150,t.disappearDistSq=170,t.reappearTime=30,t.startScale=1,t}e.BasicFade=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.InvisBlock=void 0,i(5)),a=i(0),h=i(3),i=(n=o.Block,r(l,n),l.prototype.initGraphics=function(){this.sprite=new Phaser.GameObjects.Image(this.main,0,0,a.Atlases.gameplay,"invisBlock 10000"),this.container.add(this.sprite)},l.prototype.spawn=function(t){this.init(t.x,t.y,t.width,t.height),this.updateGraphicPosition(),this.container.setScale(this.width/100,this.height/100)},l.prototype.updateGraphicPosition=function(){this.container.x=this.xPos,this.container.y=this.yPos},l.prototype.update=function(){var t;!1!==this.alive&&(t=this.main.player,(t=h.Tools.distance(this.xPos,this.yPos,t.xPos,t.yPos))>this.RANGE?this.container.alpha=1:tthis.maxSWidth||0this.maxSHeight;)--this.fontSize;this.setScale(t,e)}else this.setMaxWidth(this.maxSWidth)},a);function a(t,e,i,s,n,r,o,a){t=h.call(this,t,e,i,s,n,r,o=void 0===o?16777215:o,a=void 0===a?1:a)||this;return t.createFontSize=r,t}e.JDBmpdTextFit=i},function(t,e,i){"use strict";var s,r,n=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.JDImagePivot=void 0,i(25)),i=(r=i(36).JDImage,n(a,r),a.prototype.setPivot=function(t,e){this.pivotX=t,this.pivotY=e},a);function a(t,e,i,s,n){t=r.call(this,t,e,i,s,n)||this;return t.pivotX=0,t.pivotY=0,t.setPipeline(o.PipelineManager.getPipeline(o.PipelineList.PivotSkew)),t}e.JDImagePivot=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.PLPivotSkew=void 0,n=Phaser.Renderer.WebGL.Pipelines.MultiPipeline,r(T,n),T.prototype.batchSprite=function(t,e,i){this.manager.set(this,t);var s=this._tempMatrix1,n=this._tempMatrix2,r=this._tempMatrix3,o=t.frame,a=o.glTexture,h=o.u0,l=o.v0,u=o.u1,c=o.v1,d=o.x,p=o.y,f=o.cutWidth,g=o.cutHeight,y=o.customPivot,v=t.displayOriginX,m=t.displayOriginY,d=-v+d,p=-m+p,x=(t.isCropped&&((x=t._crop).flipX===t.flipX&&x.flipY===t.flipY||o.updateCropUVs(x,t.flipX,t.flipY),h=x.u0,l=x.v0,u=x.u1,c=x.v1,f=x.width,g=x.height,d=-v+x.x,p=-m+x.y),1),w=1,v=(t.flipX&&(y||(d+=-o.realWidth+2*v),x=-1),(t.flipY||o.source.isGLTexture&&!a.flipY)&&(y||(p+=-o.realHeight+2*m),w=-1),T.calculateMatrix(t,x,w,s,n,r,e,i),d+f),y=p+g,m=e.roundPixels,x=r.getXRound(d,p,m),w=r.getYRound(d,p,m),s=r.getXRound(d,y,m),n=r.getYRound(d,y,m),i=r.getXRound(v,y,m),f=r.getYRound(v,y,m),g=r.getXRound(v,p,m),d=r.getYRound(v,p,m),y=Phaser.Renderer.WebGL.Utils.getTintAppendFloatAlpha,r=e.alpha,v=y(t.tintTopLeft,r*t._alphaTL),p=y(t.tintTopRight,r*t._alphaTR),m=y(t.tintBottomLeft,r*t._alphaBL),e=y(t.tintBottomRight,r*t._alphaBR),y=(this.shouldFlush(6)&&this.flush(),this.setGameObject(t,o));this.manager.preBatch(t),this.batchQuad(t,x,w,s,n,i,f,g,d,h,l,u,c,v,p,m,e,t.tintFill,a,y),this.manager.postBatch(t)},T.calculateMatrix=function(i,t,e,s,n,r,o,a){var h,l,u,c,d,p,f=i.scaleX*t,g=i.scaleY*e,t=i.x,e=i.y;function y(){var t,e;c=0!==i.rotation?(t=Math.cos(i.rotation),e=Math.sin(i.rotation),h=t*f,l=e*f,u=-e*g,t*g):(h=f,u=l=0,g)}(i.skewX||i.skewY)&&(d=i.rotation+i.skewX,(p=i.rotation+i.skewY)%T.PI2||d%T.PI2)?(d===i._cachedRotX&&p===i._cachedRotY||(i._cachedRotX=d,i._cachedRotY=p,i._crA=Math.cos(p),i._srB=Math.sin(p),i._srC=Math.sin(-d),i._crD=Math.cos(d)),h=i._crA*f,l=i._srB*f,u=i._srC*g,c=i._crD*g):y(),(i.pivotX||i.pivotY)&&(t+=i.pivotX*h+i.pivotY*u,e+=i.pivotX*l+i.pivotY*c),s.copyFrom(o.matrix),a?s.multiplyWithOffset(a,-o.scrollX*i.scrollFactorX,-o.scrollY*i.scrollFactorY):(t-=o.scrollX*i.scrollFactorX,e-=o.scrollY*i.scrollFactorY),n.setTransform(h,l,u,c,t,e),s.multiply(n,r)},T.PI2=2*Math.PI,T);function T(t){return n.call(this,{game:t})||this}e.PLPivotSkew=r},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.InputField=void 0;var s=i(98);function n(){}n.init=function(t){this.game=t,this.dom=new s.InputDom(t)},n.onFocusOut=function(){this.txt&&this.endFocus()},n.onTxtIn=function(t){this.txt!==t&&(this.onTxtOut(),this.txt=t,this.dom.focus(this.txt.options,this.txt.text),!1===this.game.device.os.desktop)&&(n.KeyboardOpen=!0,this.game.events.emit(n.EVENT_KEYBOARD_OPEN))},n.onTxtOut=function(){this.txt&&this.txt.onFocusOut(this.dom.getValue()),this.txt=null},n.endFocus=function(){!1===this.game.device.os.desktop&&(n.KeyboardOpen=!1,this.game.events.emit(n.EVENT_KEYBOARD_CLOSED)),this.onTxtOut(),this.dom.blur()},n.render=function(t,e){this.dom.render(this.txt,t,e)},n.EVENT_KEYBOARD_OPEN="EVENT_KEYBOARD_OPEN",n.EVENT_KEYBOARD_CLOSED="EVENT_KEYBOARD_CLOSED",n.KeyboardOpen=!1,n.blockInput=!0,e.InputField=n},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.JD9SliceBase=void 0,(s=c=c||{}).tl="tl",s.tr="tr",s.br="br",s.bl="bl",s.tm="tm",s.bm="bm",s.lm="lm",s.rm="rm",s.c="c",d.addConfig=function(t,e,i,s,n){this.configs[t.key+this.getFrameName(t.frame)]={tl:{x:e,y:s},tr:{x:i,y:s},bl:{x:e,y:n},br:{x:i,y:n},minWidth:e+i,minHeight:s+n}},d.getConfig=function(t){return this.configs[t],this.configs[t]},d.getFrameName=function(t){return void 0!==t?t:this._baseFrameName},d.removeConfig=function(t,e){delete this.configs[t+this.getFrameName(e)]},d.removeFromTexture=function(t,e,i){var s=t.textures.get(e);i=i||e;for(var n=0,r=Object.keys(c);ns.minWidth?e:s.minWidth),i=i>s.minHeight?i:s.minHeight;s.minWidth>e||s.minHeight,this.data9Slice[t].width=n,this.data9Slice[t].height=i},d.prototype.tintFragments=function(t,e){},d.prototype.destroyInternal=function(){this.view=null,this.scene=null,this.data9Slice=null},d.prototype.destroy=function(){this.view.destroy()},d.configs={},d._baseFrameName="__BASE";var c,s=d;function d(t,e,i,s,n){this.scene=t,this.data9Slice=new Array,this.width=e,this.height=i,this.originX=s,this.originY=n}e.JD9SliceBase=s},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.PlayerBreatheBar=void 0,i(0)),a=i(2),h=i(23),i=(n=Phaser.GameObjects.Container,r(l,n),l.prototype.showBreath=function(){if(!0!==this.visible||!0!==this.isBreath){(this.visible=!0)!==this.isBreath&&(this.breathe=this.maxBreathe),this.isBreath=!0,this.power=a.BalanceData.config_PlayerBreathSpeed;for(var t=0;t<10;t++)this.breatheBlocks[t].setFrame("breatheBlock 10000")}},l.prototype.showHealth=function(){if(!0!==this.visible||!1!==this.isBreath){!(this.visible=!0)!==this.isBreath&&(this.breathe=this.maxBreathe),this.isBreath=!1,this.power=a.BalanceData.config_PlayerAcidSpeed;for(var t=0;t<10;t++)this.breatheBlocks[t].setFrame("heartSmall 10000")}},l.prototype.update=function(){return this.addCooldown=0,this.breathe-=this.scene.gameSpeed*this.power,!0===this.isBreath&&this.breathe<90&&a.Achievements.saveAchive(h.TrophieAchieves.gasping),this.scaleX<1&&(this.scaleX-=.05,1=this.maxBreathe&&this.justHide(),this.updateGraphic())},l.prototype.updateGraphic=function(){for(var t=Math.floor(this.breathe/60),e=0;e<10;e++){var i=this.breatheBlocks[e];t",t+" \n"),this.setText(e),e=this.text.indexOf(t),this.setCharacterTint(e,t.length,!0,16366384),e=this.getTextBounds(),this.goldOffX=e.lines.lengths[0]/2-30,this.goldOffY=-this.fontSize-4,"ja"===l.Localization.getLang()&&(this.goldOffX-=30,this.goldOffY-=8)):this.setText(l.Localization.getText(this.currText)))},c.prototype.isPressDown=function(){return!0===this.alive&&this.currType===r.downEndter},c.prototype.hide=function(){this.alive=!1,this.visible=!1,this.goldCard.visible=!1},c.prototype.update=function(){!1!==this.alive&&(this.currType===r.checkPoint?(-30=e||t===n.Currency.blueCard&&o.BalanceData.totalCardsBlue>=e||t===n.Currency.goldCard&&o.BalanceData.totalCardsGold>=e},h.getCurrency=function(t){return this.skinsData[t][s.currency]},h.getPrice=function(t){return this.skinsData[t][s.price]},h.openSkin=function(t){this.saveData[t]=1,this.save()},h.setSkinStatus2=function(t){this.saveData[t]=2,this.save()},h.getTotalAmount=function(){return this.totalSkins},h.getRandomLockedSlotId=function(){for(var t=[],e=0;ec.BalanceData.levelsCompleted&&(c.BalanceData.levelsCompleted=t),f.DailyTask.saveData(f.TaskID.completeLevel,t),f.DailyTask.saveData(f.TaskID.completeAny3Levels),this.currLevelID===c.BalanceData.vexID?p.Achievements.saveAchive(p.TrophieAchieves.vex):p.Achievements.completeAct(Number(this.currLevelID),this.isCurrLevelHard),this.panelManager.show(u.PanelList.LevelComplete),this.currentLevel.complete(c.BalanceData.actFinishTime,this.currentDeaths,this.isCurrLevelHard)},b.prototype.updateProgressTnt=function(t){this.subScene.updateProgressTnt&&this.subScene.updateProgressTnt(t)},b.prototype.resumeOnFinish=function(){this.showSubSceneTransition(v.SubSceneList.Hub),this.keys.show(),this.player.resume()},b.prototype.checkpointTriggered=function(t){if(this.checkpointReward=null,t instanceof l.CheckpointReward)this.checkpointReward=t;else{this.player.collideWithCheckPoint(t);for(var e=0;e<10;e++)this.particleManager.createColorParticle(t.xPos,t.yPos,10*Math.random()-5,-6-4*Math.random(),65280);d.SoundManager.playSFX("ding"),this.effectsOverlay.checkPoint(),this.currLevelID===c.BalanceData.hubID&&h.SaveGame.getInstance().saveCheckPoint(t.xPos,t.yPos);for(var i=0,s=this.obstacles;ithis.challengeElements[this.patternSpawnId][0].spawnX&&(this.spawnX=this.challengeElements[this.patternSpawnId][0].spawnX,this.spawnY=this.challengeElements[this.patternSpawnId][0].spawnY,this.patternSpawnId+=1,this.patternSpawnId===this.challengeElements.length&&--this.patternSpawnId,this.effectsOverlay.goLight()),this.challengeElements[0][0].patternEndXthis.currentLevel.getTopTime(this.isCurrLevelHard)&&this.resetLevel(!0)),!1===p.Achievements.isAchieveCompleted(p.TrophieAchieves.playHour)&&!0===x.Helpers.isAnHour(Date.now()-c.BalanceData.levelMapStartTime)&&p.Achievements.saveAchive(p.TrophieAchieves.playHour),o.prototype.updateLogic.call(this),this.effectsOverlay.update()},b.prototype.reset=function(){this.currentTime=Date.now();for(var t=0,e=this.blocks;t=this.fireRate&&(this.shootTimer=0,this.main.shootBullet(this.xPos,this.yPos,this.sprite.rotation,this.shootPower,this.isMissile))},l.prototype.reset=function(){this.shootTimer=0},l.prototype.resetLevel=function(){n.prototype.resetLevel.call(this),this.reset()},l.prototype.destroy=function(){this.sprite.destroy(),this.sprite=null,n.prototype.destroy.call(this)},l);function l(t,e){t=n.call(this,t,e)||this;return t.shootPower=12.5,t.isMissile=!1,t.fireRate=h.BalanceData.config_ClassicLaserFireTime,t.initGraphic(),t}e.ClassicLaserStatic=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.BreatheBlaster=void 0,i(8)),a=i(0),h=i(3),i=(n=o.Item,r(l,n),l.prototype.initGraphic=function(t,e,i){this.sprite=new Phaser.GameObjects.Image(this.main,0,0,a.Atlases.gameplay,e),t.add(this.sprite),this.sprite.visible=!1,this.spawnParticle=i},l.prototype.spawn=function(t){this.xPos=t.x,this.yPos=t.y,this.sprite.x=this.xPos,this.sprite.y=this.yPos,this.sprite.rotation=h.Tools.toRad(t.rotation),this.sprite.visible=!0,this.alive=!0,this.hitBoxPolygon.pos.x=this.xPos,this.hitBoxPolygon.pos.y=this.yPos,this.particelSpawnX=this.xPos+25*Math.cos(this.sprite.rotation),this.particelSpawnY=this.yPos+25*Math.sin(this.sprite.rotation)},l.prototype.update=function(){var t,e;!0===SAT.testPolygonPolygon(this.main.player.totalPolygon,this.hitBoxPolygon)&&this.main.player.collideWithBreatheBlaster(),!0===this.spawnParticle&&Math.random()<.15&&(t=4*Math.random(),e=this.sprite.rotation+h.Tools.toRad(4*Math.random()-2),this.main.particleManager.createColorParticle(this.particelSpawnX,this.particelSpawnY,Math.cos(e)*t,Math.sin(e)*t,3394815,4,!0,!0,100))},l.prototype.destroy=function(){this.sprite.destroy(),this.sprite=null,n.prototype.destroy.call(this)},l);function l(t,e){t=n.call(this,t)||this;return t.initGraphic(e,"breatheBlaster 10000",!0),t.hitBoxPolygon=new SAT.Box(new SAT.Vector(0,0),50,50).toPolygon(),t.hitBoxPolygon.setOffset(new SAT.Vector(-25,-25)),t.type="breatheBlaster",t}e.BreatheBlaster=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.HazardStrips=e.ZiplinePole=e.ZiplineWire=e.Wire=e.Rope=e.Pole=e.Cable=void 0;var s=i(240),n=(Object.defineProperty(e,"Cable",{enumerable:!0,get:function(){return s.Cable}}),i(241)),r=(Object.defineProperty(e,"Pole",{enumerable:!0,get:function(){return n.Pole}}),i(242)),o=(Object.defineProperty(e,"Rope",{enumerable:!0,get:function(){return r.Rope}}),i(243)),a=(Object.defineProperty(e,"Wire",{enumerable:!0,get:function(){return o.Wire}}),i(244)),h=(Object.defineProperty(e,"ZiplineWire",{enumerable:!0,get:function(){return a.ZiplineWire}}),i(245)),l=(Object.defineProperty(e,"ZiplinePole",{enumerable:!0,get:function(){return h.ZiplinePole}}),i(246));Object.defineProperty(e,"HazardStrips",{enumerable:!0,get:function(){return l.HazardStrips}})},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=this&&this.__assign||function(){return(o=Object.assign||function(t){for(var e,i=1,s=arguments.length;i{return s={6659:t=>{"use strict";var s=Object.prototype.hasOwnProperty,p="~";function i(){}function r(t,e,i){this.fn=t,this.context=e,this.once=i||!1}function n(t,e,i,s,n){if("function"!=typeof i)throw new TypeError("The listener must be a function");i=new r(i,s||t,n),s=p?p+e:e;return t._events[s]?t._events[s].fn?t._events[s]=[t._events[s],i]:t._events[s].push(i):(t._events[s]=i,t._eventsCount++),t}function h(t,e){0==--t._eventsCount?t._events=new i:delete t._events[e]}function e(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(p=!1)),e.prototype.eventNames=function(){var t,e,i=[];if(0===this._eventsCount)return i;for(e in t=this._events)s.call(t,e)&&i.push(p?e.slice(1):e);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},e.prototype.listeners=function(t){var t=p?p+t:t,e=this._events[t];if(!e)return[];if(e.fn)return[e.fn];for(var i=0,s=e.length,n=new Array(s);i{var a=i(82590);t.exports=function(t,e,i,s){for(var n=t[0],r=1;r{var r=i(6124);t.exports=function(t,e,i,s,n){return r(t,"angle",e,i,s,n)}},22015:t=>{t.exports=function(t,e,i){for(var s=0;s{t.exports=function(t,e,i){for(var s=i=void 0===i?0:i;s{t.exports=function(t,e,i){for(var s=i=void 0===i?0:i;s{var y=i(40327),v=i(84093),m=i(72632),s=i(72283),x=new(i(71030))({sys:{queueDepthSort:s,events:{once:s}}},0,0,1,1).setOrigin(0,0);t.exports=function(t,e){var i=(e=void 0===e?{}:e).hasOwnProperty("width"),s=e.hasOwnProperty("height"),n=m(e,"width",-1),r=m(e,"height",-1),o=m(e,"cellWidth",1),a=m(e,"cellHeight",o),h=m(e,"position",v.TOP_LEFT),l=m(e,"x",0),u=m(e,"y",0),c=0,d=0,p=n*o,f=r*a;x.setPosition(l,u),x.setSize(o,a);for(var g=0;g{var r=i(6124);t.exports=function(t,e,i,s,n){return r(t,"alpha",e,i,s,n)}},3877:(t,e,i)=>{var r=i(6124);t.exports=function(t,e,i,s,n){return r(t,"x",e,i,s,n)}},71020:(t,e,i)=>{var a=i(6124);t.exports=function(t,e,i,s,n,r,o){return null==i&&(i=e),a(t,"x",e,s,r,o),a(t,"y",i,n,r,o)}},28970:(t,e,i)=>{var r=i(6124);t.exports=function(t,e,i,s,n){return r(t,"y",e,i,s,n)}},82249:t=>{t.exports=function(t,e,i,s){for(var n=i=void 0===i?0:i,r=((s=void 0===s?6.28:s)-i)/t.length,o=e.x,a=e.y,h=e.radius,l=0;l{t.exports=function(t,e,i,s){for(var n=i=void 0===i?0:i,r=((s=void 0===s?6.28:s)-i)/t.length,o=e.width/2,a=e.height/2,h=0;h{var o=i(8570);t.exports=function(t,e){for(var i=o(e,t.length),s=0;s{var r=i(40053),o=i(77640),a=i(38487);t.exports=function(t,e,i){void 0===i&&(i=0);var s=r(e,!1,t.length);0{var u=i(58813);t.exports=function(t,e,i){var s=u({x1:e.x1,y1:e.y1,x2:e.x2,y2:e.y2},i),n=u({x1:e.x2,y1:e.y2,x2:e.x3,y2:e.y3},i),e=u({x1:e.x3,y1:e.y3,x2:e.x1,y2:e.y1},i);s.pop(),n.pop(),e.pop();for(var r=(s=s.concat(n,e)).length/t.length,o=0,a=0;a{t.exports=function(t,e,i){for(var s=0;s{t.exports=function(t,e,i,s,n,r){void 0===s&&(s=0),void 0===n&&(n=0);var o,a=0,h=t.length;if(1===(r=void 0===r?1:r))for(o=n;o{t.exports=function(t,e,i,s,n,r){void 0===s&&(s=0),void 0===n&&(n=0);var o,a=0,h=t.length;if(1===(r=void 0===r?1:r))for(o=n;o{var s=i(30977);t.exports=function(t,e){for(var i=0;i{var s=i(72006);t.exports=function(t,e){for(var i=0;i{var s=i(74077);t.exports=function(t,e){for(var i=0;i{var s=i(30001);t.exports=function(t,e){for(var i=0;i{var s=i(99761);t.exports=function(t,e){for(var i=0;i{var r=i(6124);t.exports=function(t,e,i,s,n){return r(t,"rotation",e,i,s,n)}},87299:(t,e,i)=>{var a=i(72395),h=i(53996);t.exports=function(t,e,i){for(var s=e.x,n=e.y,r=0;r{var a=i(72395);t.exports=function(t,e,i,s){var n=e.x,r=e.y;if(0!==s)for(var o=0;o{var r=i(6124);t.exports=function(t,e,i,s,n){return r(t,"scaleX",e,i,s,n)}},51449:(t,e,i)=>{var a=i(6124);t.exports=function(t,e,i,s,n,r,o){return null==i&&(i=e),a(t,"scaleX",e,s,r,o),a(t,"scaleY",i,n,r,o)}},64895:(t,e,i)=>{var r=i(6124);t.exports=function(t,e,i,s,n){return r(t,"scaleY",e,i,s,n)}},30329:(t,e,i)=>{var r=i(23646);t.exports=function(t,e,i,s,n){return r(t,"alpha",e,i,s,n)}},43954:(t,e,i)=>{var n=i(23646);t.exports=function(t,e,i,s){return n(t,"blendMode",e,0,i,s)}},70688:(t,e,i)=>{var r=i(23646);t.exports=function(t,e,i,s,n){return r(t,"depth",e,i,s,n)}},8314:t=>{t.exports=function(t,e,i){for(var s=0;s{var a=i(23646);t.exports=function(t,e,i,s,n,r,o){return null==i&&(i=e),a(t,"originX",e,s,r,o),a(t,"originY",i,n,r,o),t.forEach(function(t){t.updateDisplayOrigin()}),t}},38767:(t,e,i)=>{var r=i(23646);t.exports=function(t,e,i,s,n){return r(t,"rotation",e,i,s,n)}},18584:(t,e,i)=>{var a=i(23646);t.exports=function(t,e,i,s,n,r,o){return null==i&&(i=e),a(t,"scaleX",e,s,r,o),a(t,"scaleY",i,n,r,o)}},17381:(t,e,i)=>{var r=i(23646);t.exports=function(t,e,i,s,n){return r(t,"scaleX",e,i,s,n)}},74370:(t,e,i)=>{var r=i(23646);t.exports=function(t,e,i,s,n){return r(t,"scaleY",e,i,s,n)}},27773:(t,e,i)=>{var a=i(23646);t.exports=function(t,e,i,s,n,r,o){return null==i&&(i=e),a(t,"scrollFactorX",e,s,r,o),a(t,"scrollFactorY",i,n,r,o)}},75257:(t,e,i)=>{var r=i(23646);t.exports=function(t,e,i,s,n){return r(t,"scrollFactorX",e,i,s,n)}},54512:(t,e,i)=>{var r=i(23646);t.exports=function(t,e,i,s,n){return r(t,"scrollFactorY",e,i,s,n)}},69423:t=>{t.exports=function(t,e,i,s,n){for(var r=0;r{var n=i(23646);t.exports=function(t,e,i,s){return n(t,"visible",e,0,i,s)}},94833:(t,e,i)=>{var r=i(23646);t.exports=function(t,e,i,s,n){return r(t,"x",e,i,s,n)}},14284:(t,e,i)=>{var a=i(23646);t.exports=function(t,e,i,s,n,r,o){return null==i&&(i=e),a(t,"x",e,s,r,o),a(t,"y",i,n,r,o)}},96574:(t,e,i)=>{var r=i(23646);t.exports=function(t,e,i,s,n){return r(t,"y",e,i,s,n)}},74086:(t,e,i)=>{var f=i(93736);t.exports=function(t,e,i,s,n){void 0===s&&(s=0),void 0===n&&(n=new f);var r,o,a=t.length;if(1===a)r=t[0].x,o=t[0].y,t[0].x=e,t[0].y=i;else{var h=1,l=0;0===s&&(l=a-1,h=a-2),r=t[l].x,o=t[l].y,t[l].x=e,t[l].y=i;for(var u,c,d,p=0;p{var s=i(18592);t.exports=function(t){return s(t)}},1558:(t,e,i)=>{var a=i(5514);t.exports=function(t,e,i,s,n){void 0===n&&(n=!1);var r,o=Math.abs(s-i)/t.length;if(n)for(r=0;r{var a=i(87736);t.exports=function(t,e,i,s,n){void 0===n&&(n=!1);var r,o=Math.abs(s-i)/t.length;if(n)for(r=0;r{t.exports=function(t,e,i,s,n){if(void 0===n&&(n=!1),0!==t.length)if(1===t.length)n?t[0][e]+=(s+i)/2:t[0][e]=(s+i)/2;else{var r,o=Math.abs(s-i)/(t.length-1);if(n)for(r=0;r{t.exports=function(t){for(var e=0;e{var r=i(1071);t.exports=function(t,e,i){void 0===i&&(i=0);for(var s=0;s{t.exports={AlignTo:i(62270),Angle:i(61148),Call:i(22015),GetFirst:i(31060),GetLast:i(52367),GridAlign:i(12673),IncAlpha:i(691),IncX:i(3877),IncXY:i(71020),IncY:i(28970),PlaceOnCircle:i(82249),PlaceOnEllipse:i(30285),PlaceOnLine:i(61557),PlaceOnRectangle:i(63549),PlaceOnTriangle:i(51629),PlayAnimation:i(1045),PropertyValueInc:i(6124),PropertyValueSet:i(23646),RandomCircle:i(4392),RandomEllipse:i(94985),RandomLine:i(63305),RandomRectangle:i(90739),RandomTriangle:i(91417),Rotate:i(26182),RotateAround:i(87299),RotateAroundDistance:i(92194),ScaleX:i(30363),ScaleXY:i(51449),ScaleY:i(64895),SetAlpha:i(30329),SetBlendMode:i(43954),SetDepth:i(70688),SetHitArea:i(8314),SetOrigin:i(12894),SetRotation:i(38767),SetScale:i(18584),SetScaleX:i(17381),SetScaleY:i(74370),SetScrollFactor:i(27773),SetScrollFactorX:i(75257),SetScrollFactorY:i(54512),SetTint:i(69423),SetVisible:i(58291),SetX:i(94833),SetXY:i(14284),SetY:i(96574),ShiftPosition:i(74086),Shuffle:i(86347),SmootherStep:i(9938),SmoothStep:i(1558),Spread:i(71060),ToggleVisible:i(11207),WrapInRectangle:i(24404)}},85463:(t,e,i)=>{var s=i(82897),n=i(56694),r=i(16938),o=i(2406),y=i(71519),v=i(10850),m=i(28834),i=new n({initialize:function(t,e,i){this.manager=t,this.key=e,this.type="frame",this.frames=this.getFrames(t.textureManager,v(i,"frames",[]),v(i,"defaultTextureKey",null),v(i,"sortFrames",!0)),this.frameRate=v(i,"frameRate",null),this.duration=v(i,"duration",null),this.msPerFrame,this.skipMissedFrames=v(i,"skipMissedFrames",!0),this.delay=v(i,"delay",0),this.repeat=v(i,"repeat",0),this.repeatDelay=v(i,"repeatDelay",0),this.yoyo=v(i,"yoyo",!1),this.showBeforeDelay=v(i,"showBeforeDelay",!1),this.showOnStart=v(i,"showOnStart",!1),this.hideOnComplete=v(i,"hideOnComplete",!1),this.paused=!1,this.calculateDuration(this,this.getTotalFrames(),this.duration,this.frameRate),this.manager.on&&(this.manager.on(r.PAUSE_ALL,this.pause,this),this.manager.on(r.RESUME_ALL,this.resume,this))},getTotalFrames:function(){return this.frames.length},calculateDuration:function(t,e,i,s){null===i&&null===s?(t.frameRate=24,t.duration=24/e*1e3):i&&null===s?(t.duration=i,t.frameRate=e/(i/1e3)):(t.frameRate=s,t.duration=e/s*1e3),t.msPerFrame=1e3/t.frameRate},addFrame:function(t){return this.addFrameAt(this.frames.length,t)},addFrameAt:function(t,e){var i,e=this.getFrames(this.manager.textureManager,e);return 0{i=new(i(56694))({initialize:function(t,e,i,s,n){void 0===n&&(n=!1),this.textureKey=t,this.textureFrame=e,this.index=i,this.frame=s,this.isFirst=!1,this.isLast=!1,this.prevFrame=null,this.nextFrame=null,this.duration=0,this.progress=0,this.isKeyFrame=n},toJSON:function(){return{key:this.textureKey,frame:this.textureFrame,duration:this.duration,keyframe:this.isKeyFrame}},destroy:function(){this.frame=void 0}});t.exports=i},90249:(t,e,i)=>{var s=i(85463),n=i(56694),r=i(33885),o=i(6659),a=i(16938),h=i(97081),v=i(72632),m=i(10850),x=i(83392),d=i(13401),p=i(76400),i=new n({Extends:o,initialize:function(t){o.call(this),this.game=t,this.textureManager=null,this.globalTimeScale=1,this.anims=new r,this.mixes=new r,this.paused=!1,this.name="AnimationManager",t.events.once(h.BOOT,this.boot,this)},boot:function(){this.textureManager=this.game.textures,this.game.events.once(h.DESTROY,this.destroy,this)},addMix:function(t,e,i){var s=this.anims,n=this.mixes,t="string"==typeof t?t:t.key,e="string"==typeof e?e:e.key;return s.has(t)&&s.has(e)&&((s=(s=n.get(t))||{})[e]=i,n.set(t,s)),this},removeMix:function(t,e){var i=this.mixes,t="string"==typeof t?t:t.key,s=i.get(t);return s&&(e?(e="string"==typeof e?e:e.key,s.hasOwnProperty(e)&&delete s[e]):i.delete(t)),this},getMix:function(t,e){var i=this.mixes,t="string"==typeof t?t:t.key,e="string"==typeof e?e:e.key,i=i.get(t);return i&&i.hasOwnProperty(e)?i[e]:0},add:function(t,e){return this.anims.has(t)||(e.key=t,this.anims.set(t,e),this.emit(a.ADD_ANIMATION,t,e)),this},exists:function(t){return this.anims.has(t)},createFromAseprite:function(c,d,p){var f,t,g,y=[],e=this.game.cache.json.get(c);return e&&(f=this,t=m(e,"meta",null),g=m(e,"frames",null),t)&&g&&m(t,"frameTags",[]).forEach(function(t){var e=[],i=v(t,"name",null),s=v(t,"from",0),n=v(t,"to",0),t=v(t,"direction","forward");if(i&&(!d||-1{var s=i(56694),n=i(33885),r=i(72632),o=i(16938),a=i(85463),i=new s({initialize:function(t){this.parent=t,this.animationManager=t.scene.sys.anims,this.animationManager.on(o.REMOVE_ANIMATION,this.globalRemove,this),this.textureManager=this.animationManager.textureManager,this.anims=null,this.isPlaying=!1,this.hasStarted=!1,this.currentAnim=null,this.currentFrame=null,this.nextAnim=null,this.nextAnimsQueue=[],this.timeScale=1,this.frameRate=0,this.duration=0,this.msPerFrame=0,this.skipMissedFrames=!0,this.delay=0,this.repeat=0,this.repeatDelay=0,this.yoyo=!1,this.showBeforeDelay=!1,this.showOnStart=!1,this.hideOnComplete=!1,this.forward=!0,this.inReverse=!1,this.accumulator=0,this.nextTick=0,this.delayCounter=0,this.repeatCounter=0,this.pendingRepeat=!1,this._paused=!1,this._wasPlaying=!1,this._pendingStop=0,this._pendingStopValue},chain:function(t){var e=this.parent;if(void 0===t)return this.nextAnimsQueue.length=0,this.nextAnim=null,e;Array.isArray(t)||(t=[t]);for(var i=0;is.getTotalFrames()&&(n=0),i=s.frames[n],0!==n||this.forward||(i=s.getLastFrame()),this.currentFrame=i),this.parent},pause:function(t){return this._paused||(this._paused=!0,this._wasPlaying=this.isPlaying,this.isPlaying=!1),void 0!==t&&this.setCurrentFrame(t),this.parent},resume:function(t){return this._paused&&(this._paused=!1,this.isPlaying=this._wasPlaying),void 0!==t&&this.setCurrentFrame(t),this.parent},playAfterDelay:function(t,e){var i,s;return this.isPlaying?(i=this.nextAnim,s=this.nextAnimsQueue,i&&s.unshift(i),this.nextAnim=t,this._pendingStop=1,this._pendingStopValue=e):(this.delayCounter=e,this.play(t,!0)),this.parent},playAfterRepeat:function(t,e){var i,s;return void 0===e&&(e=1),this.isPlaying?(i=this.nextAnim,s=this.nextAnimsQueue,i&&s.unshift(i),-1!==this.repeatCounter&&e>this.repeatCounter&&(e=this.repeatCounter),this.nextAnim=t,this._pendingStop=2,this._pendingStopValue=e):this.play(t),this.parent},play:function(t,e){var i=this.currentAnim,s=this.parent,n="string"==typeof t?t:t.key;if((e=void 0===e?!1:e)&&this.isPlaying&&i.key===n)return s;if(i&&this.isPlaying){e=this.animationManager.getMix(i.key,t);if(0this.repeatCounter&&(t=this.repeatCounter),this._pendingStop=2,this._pendingStopValue=t,this.parent},stopOnFrame:function(t){return this._pendingStop=3,this._pendingStopValue=t,this.parent},getTotalFrames:function(){return this.currentAnim?this.currentAnim.getTotalFrames():0},update:function(t,e){var i=this.currentAnim;if(this.isPlaying&&i&&!i.paused){if(this.accumulator+=e*this.timeScale,1===this._pendingStop&&(this._pendingStopValue-=e,this._pendingStopValue<=0))return this.stop();if(this.hasStarted){if(this.accumulator>=this.nextTick&&(this.forward?i.nextFrame(this):i.previousFrame(this),this.isPlaying)&&0===this._pendingStop&&this.skipMissedFrames&&this.accumulator>this.nextTick)for(var s=0;this.forward?i.nextFrame(this):i.previousFrame(this),s++,this.isPlaying&&this.accumulator>this.nextTick&&s<60;);}else this.accumulator>=this.delayCounter&&(this.accumulator-=this.delayCounter,this.handleStart())}},setCurrentFrame:function(t){var e=this.parent;return this.currentFrame=t,e.texture=t.frame.texture,e.frame=t.frame,e.isCropped&&e.frame.updateCropUVs(e._crop,e.flipX,e.flipY),t.setAlpha&&(e.alpha=t.alpha),e.setSizeToFrame(),e._originComponent&&(t.frame.customPivot?e.setOrigin(t.frame.pivotX,t.frame.pivotY):e.updateDisplayOrigin()),this.isPlaying&&this.hasStarted&&(this.emitEvents(o.ANIMATION_UPDATE),3===this._pendingStop)&&this._pendingStopValue===t&&this.stop(),e},nextFrame:function(){return this.currentAnim&&this.currentAnim.nextFrame(this),this.parent},previousFrame:function(){return this.currentAnim&&this.currentAnim.previousFrame(this),this.parent},get:function(t){return this.anims?this.anims.get(t):null},exists:function(t){return!!this.anims&&this.anims.has(t)},create:function(t){var e=t.key,i=!1;return e&&!(i=this.get(e))&&(i=new a(this,e,t),this.anims||(this.anims=new n),this.anims.set(e,i)),i},createFromAseprite:function(t,e){return this.animationManager.createFromAseprite(t,e,this.parent)},generateFrameNames:function(t,e){return this.animationManager.generateFrameNames(t,e)},generateFrameNumbers:function(t,e){return this.animationManager.generateFrameNumbers(t,e)},remove:function(t){var e=this.get(t);return e&&(this.currentAnim===e&&this.stop(),this.anims.delete(t)),e},destroy:function(){this.animationManager.off(o.REMOVE_ANIMATION,this.globalRemove,this),this.anims&&this.anims.clear(),this.animationManager=null,this.parent=null,this.nextAnim=null,this.nextAnimsQueue.length=0,this.currentAnim=null,this.currentFrame=null},isPaused:{get:function(){return this._paused}}});t.exports=i},44509:t=>{t.exports="add"},84563:t=>{t.exports="animationcomplete"},61586:t=>{t.exports="animationcomplete-"},72175:t=>{t.exports="animationrepeat"},568:t=>{t.exports="animationrestart"},37690:t=>{t.exports="animationstart"},58525:t=>{t.exports="animationstop"},5243:t=>{t.exports="animationupdate"},10598:t=>{t.exports="pauseall"},4860:t=>{t.exports="remove"},31865:t=>{t.exports="resumeall"},16938:(t,e,i)=>{t.exports={ADD_ANIMATION:i(44509),ANIMATION_COMPLETE:i(84563),ANIMATION_COMPLETE_KEY:i(61586),ANIMATION_REPEAT:i(72175),ANIMATION_RESTART:i(568),ANIMATION_START:i(37690),ANIMATION_STOP:i(58525),ANIMATION_UPDATE:i(5243),PAUSE_ALL:i(10598),REMOVE_ANIMATION:i(4860),RESUME_ALL:i(31865)}},13517:(t,e,i)=>{t.exports={Animation:i(85463),AnimationFrame:i(71519),AnimationManager:i(90249),AnimationState:i(16569),Events:i(16938)}},23740:(t,e,i)=>{var s=i(56694),n=i(33885),r=i(6659),o=i(69773),i=new s({initialize:function(){this.entries=new n,this.events=new r},add:function(t,e){return this.entries.set(t,e),this.events.emit(o.ADD,this,t,e),this},has:function(t){return this.entries.has(t)},exists:function(t){return this.entries.has(t)},get:function(t){return this.entries.get(t)},remove:function(t){var e=this.get(t);return e&&(this.entries.delete(t),this.events.emit(o.REMOVE,this,t,e.data)),this},getKeys:function(){return this.entries.keys()},destroy:function(){this.entries.clear(),this.events.removeAllListeners(),this.entries=null,this.events=null}});t.exports=i},43474:(t,e,i)=>{var s=i(23740),n=i(56694),r=i(97081),i=new n({initialize:function(t){this.game=t,this.binary=new s,this.bitmapFont=new s,this.json=new s,this.physics=new s,this.shader=new s,this.audio=new s,this.video=new s,this.text=new s,this.html=new s,this.obj=new s,this.tilemap=new s,this.xml=new s,this.custom={},this.game.events.once(r.DESTROY,this.destroy,this)},addCustom:function(t){return this.custom.hasOwnProperty(t)||(this.custom[t]=new s),this.custom[t]},destroy:function(){for(var t,e=["binary","bitmapFont","json","physics","shader","audio","video","text","html","obj","tilemap","xml"],i=0;i{t.exports="add"},75968:t=>{t.exports="remove"},69773:(t,e,i)=>{t.exports={ADD:i(94762),REMOVE:i(75968)}},45820:(t,e,i)=>{t.exports={BaseCache:i(23740),CacheManager:i(43474),Events:i(69773)}},51052:(t,e,i)=>{var s=i(56694),n=i(64937),r=i(75606),o=i(6659),a=i(89787),h=i(74118),l=i(69360),u=i(93222),g=i(93736),i=new s({Extends:o,Mixins:[n.AlphaSingle,n.Visible],initialize:function(t,e,i,s){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=0),o.call(this),this.scene,this.sceneManager,this.scaleManager,this.cameraManager,this.id=0,this.name="",this.roundPixels=!1,this.useBounds=!1,this.worldView=new h,this.dirty=!0,this._x=t,this._y=e,this._width=i,this._height=s,this._bounds=new h,this._scrollX=0,this._scrollY=0,this._zoomX=1,this._zoomY=1,this._rotation=0,this.matrix=new l,this.transparent=!0,this.backgroundColor=u("rgba(0,0,0,0)"),this.disableCull=!1,this.culledObjects=[],this.midPoint=new g(i/2,s/2),this.originX=.5,this.originY=.5,this._customViewport=!1,this.mask=null,this._maskCamera=null,this.renderList=[],this.isSceneCamera=!0},addToRenderList:function(t){this.renderList.push(t)},setOrigin:function(t,e){return void 0===t&&(t=.5),void 0===e&&(e=t),this.originX=t,this.originY=e,this},getScroll:function(t,e,i){void 0===i&&(i=new g);var s=.5*this.width,n=.5*this.height;return i.x=t-s,i.y=e-n,this.useBounds&&(i.x=this.clampX(i.x),i.y=this.clampY(i.y)),i},centerOnX:function(t){var e=.5*this.width;return this.midPoint.x=t,this.scrollX=t-e,this.useBounds&&(this.scrollX=this.clampX(this.scrollX)),this},centerOnY:function(t){var e=.5*this.height;return this.midPoint.y=t,this.scrollY=t-e,this.useBounds&&(this.scrollY=this.clampY(this.scrollY)),this},centerOn:function(t,e){return this.centerOnX(t),this.centerOnY(e),this},centerToBounds:function(){var t,e,i;return this.useBounds&&(t=this._bounds,e=.5*this.width,i=.5*this.height,this.midPoint.set(t.centerX,t.centerY),this.scrollX=t.centerX-e,this.scrollY=t.centerY-i),this},centerToSize:function(){return this.scrollX=.5*this.width,this.scrollY=.5*this.height,this},cull:function(t){if(this.disableCull)return t;var e=this.matrix.matrix,i=e[0],s=e[1],n=e[2],r=e[3];if(!(i*r-s*n))return t;for(var o=e[4],a=e[5],h=this.scrollX,l=this.scrollY,e=this.width,u=this.height,c=this.y,d=c+u,p=this.x,f=p+e,g=this.culledObjects,y=t.length,v=g.length=0;v{var n=i(51052),y=i(79993),o=i(82897),s=i(56694),r=i(64937),a=i(53030),v=i(89787),m=i(42798),h=i(74118),l=i(93736),i=new s({Extends:n,Mixins:[r.PostPipeline],initialize:function(t,e,i,s){n.call(this,t,e,i,s),this.initPostPipeline(),this.inputEnabled=!0,this.fadeEffect=new a.Fade(this),this.flashEffect=new a.Flash(this),this.shakeEffect=new a.Shake(this),this.panEffect=new a.Pan(this),this.rotateToEffect=new a.RotateTo(this),this.zoomEffect=new a.Zoom(this),this.lerp=new l(1,1),this.followOffset=new l,this.deadzone=null,this._follow=null},setDeadzone:function(t,e){var i,s;return void 0===t?this.deadzone=null:(this.deadzone?(this.deadzone.width=t,this.deadzone.height=e):this.deadzone=new h(0,0,t,e),this._follow&&(t=this.width/2,e=this.height/2,i=this._follow.x-this.followOffset.x,s=this._follow.y-this.followOffset.y,this.midPoint.set(i,s),this.scrollX=i-t,this.scrollY=s-e),y(this.deadzone,this.midPoint.x,this.midPoint.y)),this},fadeIn:function(t,e,i,s,n,r){return this.fadeEffect.start(!1,t,e,i,s,!0,n,r)},fadeOut:function(t,e,i,s,n,r){return this.fadeEffect.start(!0,t,e,i,s,!0,n,r)},fadeFrom:function(t,e,i,s,n,r,o){return this.fadeEffect.start(!1,t,e,i,s,n,r,o)},fade:function(t,e,i,s,n,r,o){return this.fadeEffect.start(!0,t,e,i,s,n,r,o)},flash:function(t,e,i,s,n,r,o){return this.flashEffect.start(t,e,i,s,n,r,o)},shake:function(t,e,i,s,n){return this.shakeEffect.start(t,e,i,s,n)},pan:function(t,e,i,s,n,r,o){return this.panEffect.start(t,e,i,s,n,r,o)},rotateTo:function(t,e,i,s,n,r,o){return this.rotateToEffect.start(t,e,i,s,n,r,o)},zoomTo:function(t,e,i,s,n,r){return this.zoomEffect.start(t,e,i,s,n,r)},preRender:function(){this.renderList.length=0;var t=this.width,e=this.height,i=.5*t,s=.5*e,n=this.zoom,r=this.matrix,o=t*this.originX,a=e*this.originY,h=this._follow,l=this.deadzone,u=this.scrollX,c=this.scrollY,d=(l&&y(l,this.midPoint.x,this.midPoint.y),!1),l=(this.roundPixels&&(o=Math.floor(o),a=Math.floor(a)),h&&!this.panEffect.isRunning&&(g=this.lerp,p=h.x-this.followOffset.x,f=h.y-this.followOffset.y,this.roundPixels&&(p=Math.floor(p),f=Math.floor(f)),l?(pl.right&&(u=m(u,u+(p-l.right),g.x)),fl.bottom&&(c=m(c,c+(f-l.bottom),g.y))):(u=m(u,p-o,g.x),c=m(c,f-a,g.y)),d=!0),this.useBounds&&(u=this.clampX(u),c=this.clampY(c)),this.roundPixels&&(u=Math.floor(u),c=Math.floor(c)),(this.scrollX=u)+i),p=(this.scrollY=c)+s,f=(this.midPoint.set(l,p),t/n),g=e/n,u=l-f/2,i=p-g/2;this.roundPixels&&(u=Math.floor(u),i=Math.floor(i)),this.worldView.setTo(u,i,f,g),r.applyITRS(Math.floor(this.x+o),Math.floor(this.y+a),this.rotation,n,n),r.translate(-o,-a),this.shakeEffect.preRender(),d&&this.emit(v.FOLLOW_UPDATE,this,h)},setLerp:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=t),this.lerp.set(t,e),this},setFollowOffset:function(t,e){return this.followOffset.set(t=void 0===t?0:t,e=void 0===e?0:e),this},startFollow:function(t,e,i,s,n,r){void 0===e&&(e=!1),void 0===i&&(i=1),void 0===s&&(s=i),void 0===n&&(n=0),void 0===r&&(r=n),this._follow=t,this.roundPixels=e,i=o(i,0,1),s=o(s,0,1),this.lerp.set(i,s),this.followOffset.set(n,r);e=this.width/2,i=this.height/2,s=t.x-n,n=t.y-r;return this.midPoint.set(s,n),this.scrollX=s-e,this.scrollY=n-i,this.useBounds&&(this.scrollX=this.clampX(this.scrollX),this.scrollY=this.clampY(this.scrollY)),this},stopFollow:function(){return this._follow=null,this},resetFX:function(){return this.rotateToEffect.reset(),this.panEffect.reset(),this.shakeEffect.reset(),this.flashEffect.reset(),this.fadeEffect.reset(),this},update:function(t,e){this.visible&&(this.rotateToEffect.update(t,e),this.panEffect.update(t,e),this.zoomEffect.update(t,e),this.shakeEffect.update(t,e),this.flashEffect.update(t,e),this.fadeEffect.update(t,e))},destroy:function(){this.resetFX(),n.prototype.destroy.call(this),this._follow=null,this.deadzone=null}});t.exports=i},62382:(t,e,i)=>{var o=i(47751),s=i(56694),l=i(72632),n=i(91963),a=i(94287),r=i(40444),h=i(7599),i=new s({initialize:function(t){this.scene=t,this.systems=t.sys,this.roundPixels=t.sys.game.config.roundPixels,this.cameras=[],this.main,this.default,t.sys.events.once(h.BOOT,this.boot,this),t.sys.events.on(h.START,this.start,this)},boot:function(){var t=this.systems;t.settings.cameras?this.fromJSON(t.settings.cameras):this.add(),this.main=this.cameras[0],this.default=new o(0,0,t.scale.width,t.scale.height).setScene(this.scene),t.game.scale.on(r.RESIZE,this.onResize,this),this.systems.events.once(h.DESTROY,this.destroy,this)},start:function(){this.main||((t=this.systems).settings.cameras?this.fromJSON(t.settings.cameras):this.add(),this.main=this.cameras[0]);var t=this.systems.events;t.on(h.UPDATE,this.update,this),t.once(h.SHUTDOWN,this.shutdown,this)},add:function(t,e,i,s,n,r){void 0===i&&(i=this.scene.sys.scale.width),void 0===s&&(s=this.scene.sys.scale.height),void 0===n&&(n=!1),void 0===r&&(r="");t=new o(t=void 0===t?0:t,e=void 0===e?0:e,i,s);return t.setName(r),t.setScene(this.scene),t.setRoundPixels(this.roundPixels),t.id=this.getNextID(),this.cameras.push(t),n&&(this.main=t),t},addExisting:function(t,e){return void 0===e&&(e=!1),-1===this.cameras.indexOf(t)?(t.id=this.getNextID(),t.setRoundPixels(this.roundPixels),this.cameras.push(t),e&&(this.main=t),t):null},getNextID:function(){for(var t=this.cameras,e=1,i=0;i<32;i++){for(var s=!1,n=0;n{var s=i(82897),n=i(56694),h=i(89787),i=new n({initialize:function(t){this.camera=t,this.isRunning=!1,this.isComplete=!1,this.direction=!0,this.duration=0,this.red=0,this.green=0,this.blue=0,this.alpha=0,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope},start:function(t,e,i,s,n,r,o,a){return void 0===t&&(t=!0),void 0===e&&(e=1e3),void 0===i&&(i=0),void 0===s&&(s=0),void 0===n&&(n=0),void 0===o&&(o=null),void 0===a&&(a=this.camera.scene),!(r=void 0===r?!1:r)&&this.isRunning||(this.isRunning=!0,this.isComplete=!1,this.duration=e,this.direction=t,this.progress=0,this.red=i,this.green=s,this.blue=n,this.alpha=t?Number.MIN_VALUE:1,this._elapsed=0,this._onUpdate=o,this._onUpdateScope=a,r=t?h.FADE_OUT_START:h.FADE_IN_START,this.camera.emit(r,this.camera,this,e,i,s,n)),this.camera},update:function(t,e){this.isRunning&&(this._elapsed+=e,this.progress=s(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed{var s=i(82897),n=i(56694),a=i(89787),i=new n({initialize:function(t){this.camera=t,this.isRunning=!1,this.duration=0,this.red=0,this.green=0,this.blue=0,this.alpha=1,this.progress=0,this._elapsed=0,this._alpha,this._onUpdate,this._onUpdateScope},start:function(t,e,i,s,n,r,o){return void 0===t&&(t=250),void 0===e&&(e=255),void 0===i&&(i=255),void 0===s&&(s=255),void 0===r&&(r=null),void 0===o&&(o=this.camera.scene),!(n=void 0===n?!1:n)&&this.isRunning||(this.isRunning=!0,this.duration=t,this.progress=0,this.red=e,this.green=i,this.blue=s,this._alpha=this.alpha,this._elapsed=0,this._onUpdate=r,this._onUpdateScope=o,this.camera.emit(a.FLASH_START,this.camera,this,t,e,i,s)),this.camera},update:function(t,e){this.isRunning&&(this._elapsed+=e,this.progress=s(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed{var r=i(82897),s=i(56694),h=i(35060),l=i(89787),n=i(93736),i=new s({initialize:function(t){this.camera=t,this.isRunning=!1,this.duration=0,this.source=new n,this.current=new n,this.destination=new n,this.ease,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope},start:function(t,e,i,s,n,r,o){void 0===i&&(i=1e3),void 0===s&&(s=h.Linear),void 0===r&&(r=null),void 0===o&&(o=this.camera.scene);var a=this.camera;return!(n=void 0===n?!1:n)&&this.isRunning||(this.isRunning=!0,this.duration=i,this.progress=0,this.source.set(a.scrollX,a.scrollY),this.destination.set(t,e),a.getScroll(t,e,this.current),"string"==typeof s&&h.hasOwnProperty(s)?this.ease=h[s]:"function"==typeof s&&(this.ease=s),this._elapsed=0,this._onUpdate=r,this._onUpdateScope=o,this.camera.emit(l.PAN_START,this.camera,this,i,t,e)),a},update:function(t,e){var i,s,n;this.isRunning&&(this._elapsed+=e,e=r(this._elapsed/this.duration,0,1),this.progress=e,i=this.camera,this._elapsed{var a=i(82897),s=i(56694),h=i(89787),l=i(35060),i=new s({initialize:function(t){this.camera=t,this.isRunning=!1,this.duration=0,this.source=0,this.current=0,this.destination=0,this.ease,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope,this.clockwise=!0,this.shortestPath=!1},start:function(t,e,i,s,n,r,o){void 0===i&&(i=1e3),void 0===s&&(s=l.Linear),void 0===n&&(n=!1),void 0===r&&(r=null),void 0===o&&(o=this.camera.scene),this.shortestPath=e=void 0===e?!1:e;e=t,t<0?(e=-1*t,this.clockwise=!1):this.clockwise=!0,t=360*Math.PI/180;e-=Math.floor(e/t)*t;var a=this.camera;return!n&&this.isRunning||(this.isRunning=!0,this.duration=i,this.progress=0,this.source=a.rotation,this.destination=e,"string"==typeof s&&l.hasOwnProperty(s)?this.ease=l[s]:"function"==typeof s&&(this.ease=s),this._elapsed=0,this._onUpdate=r,this._onUpdateScope=o,this.shortestPath&&((n=this.destination>this.source?Math.abs(this.destination-this.source):Math.abs(this.destination+t)-this.source)<(s=this.source>this.destination?Math.abs(this.source-this.destination):Math.abs(this.source+t)-this.destination)?this.clockwise=!0:s{var r=i(82897),s=i(56694),o=i(89787),n=i(93736),i=new s({initialize:function(t){this.camera=t,this.isRunning=!1,this.duration=0,this.intensity=new n,this.progress=0,this._elapsed=0,this._offsetX=0,this._offsetY=0,this._onUpdate,this._onUpdateScope},start:function(t,e,i,s,n){return void 0===t&&(t=100),void 0===e&&(e=.05),void 0===s&&(s=null),void 0===n&&(n=this.camera.scene),!(i=void 0===i?!1:i)&&this.isRunning||(this.isRunning=!0,this.duration=t,this.progress=0,"number"==typeof e?this.intensity.set(e):this.intensity.set(e.x,e.y),this._elapsed=0,this._offsetX=0,this._offsetY=0,this._onUpdate=s,this._onUpdateScope=n,this.camera.emit(o.SHAKE_START,this.camera,this,t,e)),this.camera},preRender:function(){this.isRunning&&this.camera.matrix.translate(this._offsetX,this._offsetY)},update:function(t,e){var i,s,n;this.isRunning&&(this._elapsed+=e,this.progress=r(this._elapsed/this.duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.camera,this.progress),this._elapsed{var s=i(82897),n=i(56694),a=i(35060),h=i(89787),i=new n({initialize:function(t){this.camera=t,this.isRunning=!1,this.duration=0,this.source=1,this.destination=1,this.ease,this.progress=0,this._elapsed=0,this._onUpdate,this._onUpdateScope},start:function(t,e,i,s,n,r){void 0===e&&(e=1e3),void 0===i&&(i=a.Linear),void 0===n&&(n=null),void 0===r&&(r=this.camera.scene);var o=this.camera;return!(s=void 0===s?!1:s)&&this.isRunning||(this.isRunning=!0,this.duration=e,this.progress=0,this.source=o.zoom,this.destination=t,"string"==typeof i&&a.hasOwnProperty(i)?this.ease=a[i]:"function"==typeof i&&(this.ease=i),this._elapsed=0,this._onUpdate=n,this._onUpdateScope=r,this.camera.emit(h.ZOOM_START,this.camera,this,e,t)),o},update:function(t,e){this.isRunning&&(this._elapsed+=e,this.progress=s(this._elapsed/this.duration,0,1),this._elapsed{t.exports={Fade:i(92522),Flash:i(22151),Pan:i(37551),Shake:i(3241),RotateTo:i(1771),Zoom:i(13383)}},39577:t=>{t.exports="cameradestroy"},85373:t=>{t.exports="camerafadeincomplete"},92057:t=>{t.exports="camerafadeinstart"},1903:t=>{t.exports="camerafadeoutcomplete"},96131:t=>{t.exports="camerafadeoutstart"},85409:t=>{t.exports="cameraflashcomplete"},25500:t=>{t.exports="cameraflashstart"},44071:t=>{t.exports="followupdate"},19818:t=>{t.exports="camerapancomplete"},80002:t=>{t.exports="camerapanstart"},87966:t=>{t.exports="postrender"},74217:t=>{t.exports="prerender"},34805:t=>{t.exports="camerarotatecomplete"},30408:t=>{t.exports="camerarotatestart"},49856:t=>{t.exports="camerashakecomplete"},69189:t=>{t.exports="camerashakestart"},67657:t=>{t.exports="camerazoomcomplete"},14229:t=>{t.exports="camerazoomstart"},89787:(t,e,i)=>{t.exports={DESTROY:i(39577),FADE_IN_COMPLETE:i(85373),FADE_IN_START:i(92057),FADE_OUT_COMPLETE:i(1903),FADE_OUT_START:i(96131),FLASH_COMPLETE:i(85409),FLASH_START:i(25500),FOLLOW_UPDATE:i(44071),PAN_COMPLETE:i(19818),PAN_START:i(80002),POST_RENDER:i(87966),PRE_RENDER:i(74217),ROTATE_COMPLETE:i(34805),ROTATE_START:i(30408),SHAKE_COMPLETE:i(49856),SHAKE_START:i(69189),ZOOM_COMPLETE:i(67657),ZOOM_START:i(14229)}},32356:(t,e,i)=>{t.exports={Camera:i(47751),BaseCamera:i(51052),CameraManager:i(62382),Effects:i(53030),Events:i(89787)}},84219:(t,e,i)=>{var s=i(56694),n=i(10850),i=new s({initialize:function(t){this.camera=n(t,"camera",null),this.left=n(t,"left",null),this.right=n(t,"right",null),this.up=n(t,"up",null),this.down=n(t,"down",null),this.zoomIn=n(t,"zoomIn",null),this.zoomOut=n(t,"zoomOut",null),this.zoomSpeed=n(t,"zoomSpeed",.01),this.minZoom=n(t,"minZoom",.001),this.maxZoom=n(t,"maxZoom",1e3),this.speedX=0,this.speedY=0;var e=n(t,"speed",null);"number"==typeof e?(this.speedX=e,this.speedY=e):(this.speedX=n(t,"speed.x",0),this.speedY=n(t,"speed.y",0)),this._zoom=0,this.active=null!==this.camera},start:function(){return this.active=null!==this.camera,this},stop:function(){return this.active=!1,this},setCamera:function(t){return this.camera=t,this},update:function(t){var e;this.active&&(void 0===t&&(t=1),e=this.camera,this.up&&this.up.isDown?e.scrollY-=this.speedY*t|0:this.down&&this.down.isDown&&(e.scrollY+=this.speedY*t|0),this.left&&this.left.isDown?e.scrollX-=this.speedX*t|0:this.right&&this.right.isDown&&(e.scrollX+=this.speedX*t|0),this.zoomIn&&this.zoomIn.isDown?(e.zoom-=this.zoomSpeed,e.zoomthis.maxZoom)&&(e.zoom=this.maxZoom))},destroy:function(){this.camera=null,this.left=null,this.right=null,this.up=null,this.down=null,this.zoomIn=null,this.zoomOut=null}});t.exports=i},69370:(t,e,i)=>{var s=i(56694),n=i(10850),i=new s({initialize:function(t){this.camera=n(t,"camera",null),this.left=n(t,"left",null),this.right=n(t,"right",null),this.up=n(t,"up",null),this.down=n(t,"down",null),this.zoomIn=n(t,"zoomIn",null),this.zoomOut=n(t,"zoomOut",null),this.zoomSpeed=n(t,"zoomSpeed",.01),this.minZoom=n(t,"minZoom",.001),this.maxZoom=n(t,"maxZoom",1e3),this.accelX=0,this.accelY=0;var e=n(t,"acceleration",null),e=("number"==typeof e?(this.accelX=e,this.accelY=e):(this.accelX=n(t,"acceleration.x",0),this.accelY=n(t,"acceleration.y",0)),this.dragX=0,this.dragY=0,n(t,"drag",null)),e=("number"==typeof e?(this.dragX=e,this.dragY=e):(this.dragX=n(t,"drag.x",0),this.dragY=n(t,"drag.y",0)),this.maxSpeedX=0,this.maxSpeedY=0,n(t,"maxSpeed",null));"number"==typeof e?(this.maxSpeedX=e,this.maxSpeedY=e):(this.maxSpeedX=n(t,"maxSpeed.x",0),this.maxSpeedY=n(t,"maxSpeed.y",0)),this._speedX=0,this._speedY=0,this._zoom=0,this.active=null!==this.camera},start:function(){return this.active=null!==this.camera,this},stop:function(){return this.active=!1,this},setCamera:function(t){return this.camera=t,this},update:function(t){var e;this.active&&(void 0===t&&(t=1),e=this.camera,0this.maxSpeedY&&(this._speedY=this.maxSpeedY)):this.down&&this.down.isDown&&(this._speedY-=this.accelY,this._speedY<-this.maxSpeedY)&&(this._speedY=-this.maxSpeedY),this.left&&this.left.isDown?(this._speedX+=this.accelX,this._speedX>this.maxSpeedX&&(this._speedX=this.maxSpeedX)):this.right&&this.right.isDown&&(this._speedX-=this.accelX,this._speedX<-this.maxSpeedX)&&(this._speedX=-this.maxSpeedX),this.zoomIn&&this.zoomIn.isDown?this._zoom=-this.zoomSpeed:this.zoomOut&&this.zoomOut.isDown?this._zoom=this.zoomSpeed:this._zoom=0,0!==this._speedX&&(e.scrollX-=this._speedX*t|0),0!==this._speedY&&(e.scrollY-=this._speedY*t|0),0!==this._zoom)&&(e.zoom+=this._zoom,e.zoomthis.maxZoom&&(e.zoom=this.maxZoom))},destroy:function(){this.camera=null,this.left=null,this.right=null,this.up=null,this.down=null,this.zoomIn=null,this.zoomOut=null}});t.exports=i},6524:(t,e,i)=>{t.exports={FixedKeyControl:i(84219),SmoothedKeyControl:i(69370)}},44143:(t,e,i)=>{t.exports={Controls:i(6524),Scene2D:i(32356)}},86459:(t,e,i)=>{i={VERSION:"3.60.0",BlendModes:i(95723),ScaleModes:i(27394),AUTO:0,CANVAS:1,WEBGL:2,HEADLESS:3,FOREVER:-1,NONE:4,UP:5,DOWN:6,LEFT:7,RIGHT:8};t.exports=i},14033:(t,e,i)=>{var s=i(56694),n=i(86459),r=i(18360),o=i(77290),a=i(72632),h=i(10850),l=i(42911),u=i(72283),c=i(5923),d=i(65641),p=i(93222),i=new s({initialize:function(t){var e=h(t=void 0===t?{}:t,"scale",null),e=(this.width=h(e,"width",1024,t),this.height=h(e,"height",768,t),this.zoom=h(e,"zoom",1,t),this.parent=h(e,"parent",void 0,t),this.scaleMode=h(e,e?"mode":"scaleMode",0,t),this.expandParent=h(e,"expandParent",!0,t),this.autoRound=h(e,"autoRound",!1,t),this.autoCenter=h(e,"autoCenter",0,t),this.resizeInterval=h(e,"resizeInterval",500,t),this.fullscreenTarget=h(e,"fullscreenTarget",null,t),this.minWidth=h(e,"minWidth",0,t),this.maxWidth=h(e,"maxWidth",0,t),this.minHeight=h(e,"minHeight",0,t),this.maxHeight=h(e,"maxHeight",0,t),this.renderType=h(t,"type",n.AUTO),this.canvas=h(t,"canvas",null),this.context=h(t,"context",null),this.canvasStyle=h(t,"canvasStyle",null),this.customEnvironment=h(t,"customEnvironment",!1),this.sceneConfig=h(t,"scene",null),this.seed=h(t,"seed",[(Date.now()*Math.random()).toString()]),c.RND=new c.RandomDataGenerator(this.seed),this.gameTitle=h(t,"title",""),this.gameURL=h(t,"url","https://phaser.io"),this.gameVersion=h(t,"version",""),this.autoFocus=h(t,"autoFocus",!0),this.stableSort=h(t,"stableSort",-1),-1===this.stableSort&&(this.stableSort=o.browser.es2019?1:0),o.features.stableSort=this.stableSort,this.domCreateContainer=h(t,"dom.createContainer",!1),this.domPointerEvents=h(t,"dom.pointerEvents","none"),this.inputKeyboard=h(t,"input.keyboard",!0),this.inputKeyboardEventTarget=h(t,"input.keyboard.target",window),this.inputKeyboardCapture=h(t,"input.keyboard.capture",[]),this.inputMouse=h(t,"input.mouse",!0),this.inputMouseEventTarget=h(t,"input.mouse.target",null),this.inputMousePreventDefaultDown=h(t,"input.mouse.preventDefaultDown",!0),this.inputMousePreventDefaultUp=h(t,"input.mouse.preventDefaultUp",!0),this.inputMousePreventDefaultMove=h(t,"input.mouse.preventDefaultMove",!0),this.inputMousePreventDefaultWheel=h(t,"input.mouse.preventDefaultWheel",!0),this.inputTouch=h(t,"input.touch",o.input.touch),this.inputTouchEventTarget=h(t,"input.touch.target",null),this.inputTouchCapture=h(t,"input.touch.capture",!0),this.inputActivePointers=h(t,"input.activePointers",1),this.inputSmoothFactor=h(t,"input.smoothFactor",0),this.inputWindowEvents=h(t,"input.windowEvents",!0),this.inputGamepad=h(t,"input.gamepad",!1),this.inputGamepadEventTarget=h(t,"input.gamepad.target",window),this.disableContextMenu=h(t,"disableContextMenu",!1),this.audio=h(t,"audio",{}),this.hideBanner=!1===h(t,"banner",null),this.hidePhaser=h(t,"banner.hidePhaser",!1),this.bannerTextColor=h(t,"banner.text","#ffffff"),this.bannerBackgroundColor=h(t,"banner.background",["#ff0000","#ffff00","#00ff00","#00ffff","#000000"]),""===this.gameTitle&&this.hidePhaser&&(this.hideBanner=!0),this.fps=h(t,"fps",null),h(t,"render",null)),e=(this.pipeline=h(e,"pipeline",null,t),this.autoMobilePipeline=h(e,"autoMobilePipeline",!0,t),this.defaultPipeline=h(e,"defaultPipeline",d.MULTI_PIPELINE,t),this.antialias=h(e,"antialias",!0,t),this.antialiasGL=h(e,"antialiasGL",!0,t),this.mipmapFilter=h(e,"mipmapFilter","",t),this.desynchronized=h(e,"desynchronized",!1,t),this.roundPixels=h(e,"roundPixels",!1,t),this.pixelArt=h(e,"pixelArt",1!==this.zoom,t),this.pixelArt&&(this.antialias=!1,this.antialiasGL=!1,this.roundPixels=!0),this.transparent=h(e,"transparent",!1,t),this.clearBeforeRender=h(e,"clearBeforeRender",!0,t),this.preserveDrawingBuffer=h(e,"preserveDrawingBuffer",!1,t),this.premultipliedAlpha=h(e,"premultipliedAlpha",!0,t),this.failIfMajorPerformanceCaveat=h(e,"failIfMajorPerformanceCaveat",!1,t),this.powerPreference=h(e,"powerPreference","default",t),this.batchSize=h(e,"batchSize",4096,t),this.maxTextures=h(e,"maxTextures",-1,t),this.maxLights=h(e,"maxLights",10,t),h(t,"backgroundColor",0)),e=(this.backgroundColor=p(e),this.transparent&&(this.backgroundColor=p(0),this.backgroundColor.alpha=0),this.preBoot=h(t,"callbacks.preBoot",u),this.postBoot=h(t,"callbacks.postBoot",u),this.physics=h(t,"physics",{}),this.defaultPhysicsSystem=h(this.physics,"default",!1),this.loaderBaseURL=h(t,"loader.baseURL",""),this.loaderPath=h(t,"loader.path",""),this.loaderMaxParallelDownloads=h(t,"loader.maxParallelDownloads",o.os.android?6:32),this.loaderCrossOrigin=h(t,"loader.crossOrigin",void 0),this.loaderResponseType=h(t,"loader.responseType",""),this.loaderAsync=h(t,"loader.async",!0),this.loaderUser=h(t,"loader.user",""),this.loaderPassword=h(t,"loader.password",""),this.loaderTimeout=h(t,"loader.timeout",0),this.loaderWithCredentials=h(t,"loader.withCredentials",!1),this.loaderImageLoadType=h(t,"loader.imageLoadType","XHR"),this.loaderLocalScheme=h(t,"loader.localScheme",["file://","capacitor://"]),this.glowFXQuality=h(t,"fx.glow.quality",.1),this.glowFXDistance=h(t,"fx.glow.distance",10),this.installGlobalPlugins=[],this.installScenePlugins=[],h(t,"plugins",null)),i=r.DefaultScene,e=(e&&(Array.isArray(e)?this.defaultPlugins=e:l(e)&&(this.installGlobalPlugins=a(e,"global",[]),this.installScenePlugins=a(e,"scene",[]),Array.isArray(e.default)?i=e.default:Array.isArray(e.defaultMerge)&&(i=i.concat(e.defaultMerge)))),this.defaultPlugins=i,"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAg");this.defaultImage=h(t,"images.default",e+"AQMAAABJtOi3AAAAA1BMVEX///+nxBvIAAAAAXRSTlMAQObYZgAAABVJREFUeF7NwIEAAAAAgKD9qdeocAMAoAABm3DkcAAAAABJRU5ErkJggg=="),this.missingImage=h(t,"images.missing",e+"CAIAAAD8GO2jAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAJ9JREFUeNq01ssOwyAMRFG46v//Mt1ESmgh+DFmE2GPOBARKb2NVjo+17PXLD8a1+pl5+A+wSgFygymWYHBb0FtsKhJDdZlncG2IzJ4ayoMDv20wTmSMzClEgbWYNTAkQ0Z+OJ+A/eWnAaR9+oxCF4Os0H8htsMUp+pwcgBBiMNnAwF8GqIgL2hAzaGFFgZauDPKABmowZ4GL369/0rwACp2yA/ttmvsQAAAABJRU5ErkJggg=="),this.whiteImage=h(t,"images.white","data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAIAAAAmkwkpAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAABdJREFUeNpi/P//PwMMMDEgAdwcgAADAJZuAwXJYZOzAAAAAElFTkSuQmCC"),window&&(window.FORCE_WEBGL?this.renderType=n.WEBGL:window.FORCE_CANVAS&&(this.renderType=n.CANVAS))}});t.exports=i},50150:(t,e,n)=>{var r=n(70616),o=n(61068),a=n(86459),h=n(90185);t.exports=function(t){var e=t.config;if((e.customEnvironment||e.canvas)&&e.renderType===a.AUTO)throw new Error("Must set explicit renderType in custom environment");if(!e.customEnvironment&&!e.canvas&&e.renderType!==a.HEADLESS)if(e.renderType===a.AUTO&&(e.renderType=h.webGL?a.WEBGL:a.CANVAS),e.renderType===a.WEBGL){if(!h.webGL)throw new Error("Cannot create WebGL context, aborting.")}else{if(e.renderType!==a.CANVAS)throw new Error("Unknown value for renderer type: "+e.renderType);if(!h.canvas)throw new Error("Cannot create Canvas context, aborting.")}e.antialias||o.disableSmoothing();var i=t.scale.baseSize,s=i.width,i=i.height;e.canvas?(t.canvas=e.canvas,t.canvas.width=s,t.canvas.height=i):t.canvas=o.create(t,s,i,e.renderType),e.canvasStyle&&(t.canvas.style=e.canvasStyle),e.antialias||r.setCrisp(t.canvas),e.renderType!==a.HEADLESS&&(s=n(91135),i=n(11857),e.renderType===a.WEBGL?t.renderer=new i(t):(t.renderer=new s(t),t.context=t.renderer.gameContext))}},77291:(t,e,i)=>{var h=i(86459);t.exports=function(t){var e,i,s,n,r,o,a=t.config;a.hideBanner||(e="WebGL",a.renderType===h.CANVAS?e="Canvas":a.renderType===h.HEADLESS&&(e="Headless"),o=a.audio,o=(i=t.device.audio).webAudio&&!o.disableWebAudio?"Web Audio":o.noAudio||!i.webAudio&&!i.audioData?"No Audio":"HTML5 Audio",t.device.browser.ie?window.console:(r=[n=""],Array.isArray(a.bannerBackgroundColor)?(a.bannerBackgroundColor.forEach(function(t){n=n.concat("%c "),r.push("background: "+t),s=t}),r[r.length-1]="color: "+a.bannerTextColor+"; background: "+s):(n=n.concat("%c "),r.push("color: "+a.bannerTextColor+"; background: "+a.bannerBackgroundColor)),r.push("background: transparent"),a.gameTitle&&(n=n.concat(a.gameTitle),a.gameVersion&&(n=n.concat(" v"+a.gameVersion)),a.hidePhaser||(n=n.concat(" / "))),n=(n=a.hidePhaser?n:n.concat("Phaser v"+h.VERSION+" ("+e+" | "+o+")")).concat(" %c "+a.gameURL),r[0]=n))}},15213:(t,e,i)=>{var s=i(99584),n=i(90249),r=i(43474),o=i(61068),a=i(56694),h=i(14033),l=i(85178),u=i(50150),c=i(81078),d=i(77291),p=i(77290),f=i(21546),g=i(6659),y=i(97081),v=i(69898),m=i(91963),x=i(49274),w=i(756),T=i(13553),b=i(38203),S=i(6237),P=i(26617),_=i(26493),E=i(84191),i=new a({initialize:function(t){this.config=new h(t),this.renderer=null,this.domContainer=null,this.canvas=null,this.context=null,this.isBooted=!1,this.isRunning=!1,this.events=new g,this.anims=new n(this),this.textures=new S(this),this.cache=new r(this),this.registry=new c(this,new g),this.input=new v(this,this.config),this.scene=new T(this,this.config.sceneConfig),this.device=p,this.scale=new w(this,this.config),this.sound=null,this.sound=E.create(this),this.loop=new P(this,this.config.fps),this.plugins=new x(this,this.config),this.pendingDestroy=!1,this.removeCanvas=!1,this.noReturn=!1,this.hasFocus=!1,this.isPaused=!1,f(this.boot.bind(this))},boot:function(){m.hasCore("EventEmitter")&&(this.isBooted=!0,this.config.preBoot(this),this.scale.preBoot(),u(this),l(this),d(this),s(this.canvas,this.config.parent),this.textures.once(b.READY,this.texturesReady,this),this.events.emit(y.BOOT))},texturesReady:function(){this.events.emit(y.READY),this.start()},start:function(){this.isRunning=!0,this.config.postBoot(this),this.renderer?this.loop.start(this.step.bind(this)):this.loop.start(this.headlessStep.bind(this)),_(this);var t=this.events;t.on(y.HIDDEN,this.onHidden,this),t.on(y.VISIBLE,this.onVisible,this),t.on(y.BLUR,this.onBlur,this),t.on(y.FOCUS,this.onFocus,this)},step:function(t,e){if(this.pendingDestroy)return this.runDestroy();var i,s;this.isPaused||((i=this.events).emit(y.PRE_STEP,t,e),i.emit(y.STEP,t,e),this.scene.update(t,e),i.emit(y.POST_STEP,t,e),(s=this.renderer).preRender(),i.emit(y.PRE_RENDER,s,t,e),this.scene.render(s),s.postRender(),i.emit(y.POST_RENDER,s,t,e))},headlessStep:function(t,e){if(this.pendingDestroy)return this.runDestroy();var i;this.isPaused||((i=this.events).emit(y.PRE_STEP,t,e),i.emit(y.STEP,t,e),this.scene.update(t,e),i.emit(y.POST_STEP,t,e),this.scene.isProcessing=!1,i.emit(y.PRE_RENDER,null,t,e),i.emit(y.POST_RENDER,null,t,e))},onHidden:function(){this.loop.pause(),this.events.emit(y.PAUSE)},pause:function(){var t=this.isPaused;this.isPaused=!0,t||this.events.emit(y.PAUSE)},onVisible:function(){this.loop.resume(),this.events.emit(y.RESUME)},resume:function(){var t=this.isPaused;this.isPaused=!1,t&&this.events.emit(y.RESUME)},onBlur:function(){this.hasFocus=!1,this.loop.blur()},onFocus:function(){this.hasFocus=!0,this.loop.focus()},getFrame:function(){return this.loop.frame},getTime:function(){return this.loop.now},destroy:function(t,e){void 0===e&&(e=!1),this.pendingDestroy=!0,this.removeCanvas=t,this.noReturn=e},runDestroy:function(){this.scene.destroy(),this.events.emit(y.DESTROY),this.events.removeAllListeners(),this.renderer&&this.renderer.destroy(),this.removeCanvas&&this.canvas&&(o.remove(this.canvas),this.canvas.parentNode)&&this.canvas.parentNode.removeChild(this.canvas),this.domContainer&&this.domContainer.parentNode.removeChild(this.domContainer),this.loop.destroy(),this.pendingDestroy=!1}});t.exports=i},26617:(t,e,i)=>{var s=i(56694),n=i(10850),r=i(72283),o=i(27385),i=new s({initialize:function(t,e){this.game=t,this.raf=new o,this.started=!1,this.running=!1,this.minFps=n(e,"min",5),this.targetFps=n(e,"target",60),this.fpsLimit=n(e,"limit",0),this.hasFpsLimit=0this._min&&(t=i[e],t=Math.min(t,this._min)),i[e]=t,this.deltaIndex++,this.deltaIndex>=s&&(this.deltaIndex=0);for(var n=0,r=0;r=this.nextFpsUpdate&&this.updateFPS(t),this.framesThisSecond++,this.delta>=this._limitRate&&(this.callback(t,this.delta),this.delta=0),this.lastTime=t,this.frame++},step:function(t){this.now=t;var e=Math.max(0,t-this.lastTime);this.rawDelta=e,this.time+=this.rawDelta,this.smoothStep&&(e=this.smoothDelta(e)),this.delta=e,t>=this.nextFpsUpdate&&this.updateFPS(t),this.framesThisSecond++,this.callback(t,e),this.lastTime=t,this.frame++},tick:function(){var t=window.performance.now();this.hasFpsLimit?this.stepLimitFPS(t):this.step(t)},sleep:function(){this.running&&(this.raf.stop(),this.running=!1)},wake:function(t){void 0===t&&(t=!1);var e=window.performance.now();this.running||(t&&(this.startTime+=-this.lastTime+(this.lastTime+e)),t=(this.hasFpsLimit?this.stepLimitFPS:this.step).bind(this),this.raf.start(t,this.forceSetTimeOut,this._target),this.running=!0,this.nextFpsUpdate=e+1e3,this.framesThisSecond=0,this.fpsLimitTriggered=!1,this.tick())},getDuration:function(){return Math.round(this.lastTime-this.startTime)/1e3},getDurationMS:function(){return Math.round(this.lastTime-this.startTime)},stop:function(){return this.running=!1,this.started=!1,this.raf.stop(),this},destroy:function(){this.stop(),this.raf.destroy(),this.raf=null,this.game=null,this.callback=null}});t.exports=i},26493:(t,e,i)=>{var s=i(97081);t.exports=function(t){var e,i=t.events;void 0!==document.hidden?e="visibilitychange":["webkit","moz","ms"].forEach(function(t){void 0!==document[t+"Hidden"]&&(document.hidden=function(){return document[t+"Hidden"]},e=t+"visibilitychange")}),e&&document.addEventListener(e,function(t){document.hidden||"pause"===t.type?i.emit(s.HIDDEN):i.emit(s.VISIBLE)},!1),window.onblur=function(){i.emit(s.BLUR)},window.onfocus=function(){i.emit(s.FOCUS)},window.focus&&t.config.autoFocus&&window.focus()}},41651:t=>{t.exports="blur"},5520:t=>{t.exports="boot"},51673:t=>{t.exports="contextlost"},25055:t=>{t.exports="destroy"},23767:t=>{t.exports="focus"},57564:t=>{t.exports="hidden"},38327:t=>{t.exports="pause"},43807:t=>{t.exports="postrender"},73652:t=>{t.exports="poststep"},780:t=>{t.exports="prerender"},13781:t=>{t.exports="prestep"},38247:t=>{t.exports="ready"},29129:t=>{t.exports="resume"},34994:t=>{t.exports="step"},98704:t=>{t.exports="visible"},97081:(t,e,i)=>{t.exports={BLUR:i(41651),BOOT:i(5520),CONTEXT_LOST:i(51673),DESTROY:i(25055),FOCUS:i(23767),HIDDEN:i(57564),PAUSE:i(38327),POST_RENDER:i(43807),POST_STEP:i(73652),PRE_RENDER:i(780),PRE_STEP:i(13781),READY:i(38247),RESUME:i(29129),STEP:i(34994),VISIBLE:i(98704)}},80293:(t,e,i)=>{t.exports={Config:i(14033),CreateRenderer:i(50150),DebugHeader:i(77291),Events:i(97081),TimeStep:i(26617),VisibilityHandler:i(26493)}},52780:(t,e,i)=>{var y=i(81543),v=i(61068),m=i(10850);t.exports=function(t){var e=m(t,"data",[]),i=m(t,"canvas",null),s=m(t,"palette",y),n=m(t,"pixelWidth",1),r=m(t,"pixelHeight",n),o=m(t,"resizeCanvas",!0),a=m(t,"clearCanvas",!0),h=m(t,"preRender",null),t=m(t,"postRender",null),l=Math.floor(Math.abs(e[0].length*n)),u=Math.floor(Math.abs(e.length*r)),c=(i||(i=v.create2D(this,l,u),a=o=!1),o&&(i.width=l,i.height=u),i.getContext("2d",{willReadFrequently:!0}));a&&c.clearRect(0,0,l,u),h&&h(i,c);for(var d=0;d{t.exports={GenerateTexture:i(52780),Palettes:i(25235)}},81543:t=>{t.exports={0:"#000",1:"#9D9D9D",2:"#FFF",3:"#BE2633",4:"#E06F8B",5:"#493C2B",6:"#A46422",7:"#EB8931",8:"#F7E26B",9:"#2F484E",A:"#44891A",B:"#A3CE27",C:"#1B2632",D:"#005784",E:"#31A2F2",F:"#B2DCEF"}},75846:t=>{t.exports={0:"#000",1:"#fff",2:"#8b4131",3:"#7bbdc5",4:"#8b41ac",5:"#6aac41",6:"#3931a4",7:"#d5de73",8:"#945a20",9:"#5a4100",A:"#bd736a",B:"#525252",C:"#838383",D:"#acee8b",E:"#7b73de",F:"#acacac"}},83206:t=>{t.exports={0:"#000",1:"#2234d1",2:"#0c7e45",3:"#44aacc",4:"#8a3622",5:"#5c2e78",6:"#aa5c3d",7:"#b5b5b5",8:"#5e606e",9:"#4c81fb",A:"#6cd947",B:"#7be2f9",C:"#eb8a60",D:"#e23d69",E:"#ffd93f",F:"#fff"}},13194:t=>{t.exports={0:"#000",1:"#191028",2:"#46af45",3:"#a1d685",4:"#453e78",5:"#7664fe",6:"#833129",7:"#9ec2e8",8:"#dc534b",9:"#e18d79",A:"#d6b97b",B:"#e9d8a1",C:"#216c4b",D:"#d365c8",E:"#afaab9",F:"#f5f4eb"}},50686:t=>{t.exports={0:"#000",1:"#191028",2:"#46af45",3:"#a1d685",4:"#453e78",5:"#7664fe",6:"#833129",7:"#9ec2e8",8:"#dc534b",9:"#e18d79",A:"#d6b97b",B:"#e9d8a1",C:"#216c4b",D:"#d365c8",E:"#afaab9",F:"#fff"}},25235:(t,e,i)=>{t.exports={ARNE16:i(81543),C64:i(75846),CGA:i(83206),JMP:i(13194),MSX:i(50686)}},63120:(t,e,i)=>{var s=i(56694),o=i(34631),n=i(38517),a=i(93736),r=new s({Extends:n,initialize:function(t,e,i,s){n.call(this,"CubicBezierCurve"),Array.isArray(t)&&(s=new a(t[6],t[7]),i=new a(t[4],t[5]),e=new a(t[2],t[3]),t=new a(t[0],t[1])),this.p0=t,this.p1=e,this.p2=i,this.p3=s},getStartPoint:function(t){return(t=void 0===t?new a:t).copy(this.p0)},getResolution:function(t){return t},getPoint:function(t,e){void 0===e&&(e=new a);var i=this.p0,s=this.p1,n=this.p2,r=this.p3;return e.set(o(t,i.x,s.x,n.x,r.x),o(t,i.y,s.y,n.y,r.y))},draw:function(t,e){var i=this.getPoints(e=void 0===e?32:e);t.beginPath(),t.moveTo(this.p0.x,this.p0.y);for(var s=1;s{var s=i(56694),n=i(80222),r=i(74118),o=i(93736),i=new s({initialize:function(t){this.type=t,this.defaultDivisions=5,this.arcLengthDivisions=100,this.cacheArcLengths=[],this.needsUpdate=!0,this.active=!0,this._tmpVec2A=new o,this._tmpVec2B=new o},draw:function(t,e){return t.strokePoints(this.getPoints(e=void 0===e?32:e))},getBounds:function(t,e){t=t||new r,void 0===e&&(e=16);var i=this.getLength(),i=(i{var s=i(56694),l=i(38517),u=i(75606),c=i(10850),n=i(23701),d=i(93736),r=new s({Extends:l,initialize:function(t,e,i,s,n,r,o,a){var h;"object"==typeof t?(t=c(h=t,"x",0),e=c(h,"y",0),i=c(h,"xRadius",0),s=c(h,"yRadius",i),n=c(h,"startAngle",0),r=c(h,"endAngle",360),o=c(h,"clockwise",!1),a=c(h,"rotation",0)):(void 0===s&&(s=i),void 0===n&&(n=0),void 0===r&&(r=360),void 0===o&&(o=!1),void 0===a&&(a=0)),l.call(this,"EllipseCurve"),this.p0=new d(t,e),this._xRadius=i,this._yRadius=s,this._startAngle=u(n),this._endAngle=u(r),this._clockwise=o,this._rotation=u(a)},getStartPoint:function(t){return void 0===t&&(t=new d),this.getPoint(0,t)},getResolution:function(t){return 2*t},getPoint:function(t,e){void 0===e&&(e=new d);for(var i=2*Math.PI,s=this._endAngle-this._startAngle,n=Math.abs(s){var s=i(56694),n=i(38517),r=i(80222),o=i(74118),a=i(93736),h=new s({Extends:n,initialize:function(t,e){n.call(this,"LineCurve"),Array.isArray(t)&&(e=new a(t[2],t[3]),t=new a(t[0],t[1])),this.p0=t,this.p1=e,this.arcLengthDivisions=1},getBounds:function(t){return void 0===t&&(t=new o),r([this.p0,this.p1],t)},getStartPoint:function(t){return(t=void 0===t?new a:t).copy(this.p0)},getResolution:function(t){return t=void 0===t?1:t},getPoint:function(t,e){return void 0===e&&(e=new a),1===t?e.copy(this.p1):(e.copy(this.p1).subtract(this.p0).scale(t).add(this.p0),e)},getPointAt:function(t,e){return this.getPoint(t,e)},getTangent:function(t,e){return(e=void 0===e?new a:e).copy(this.p1).subtract(this.p0).normalize(),e},getUtoTmapping:function(t,e,i){return e?(i=(i=this.getLengths(i))[i.length-1],Math.min(e,i)/i):t},draw:function(t){return t.lineBetween(this.p0.x,this.p0.y,this.p1.x,this.p1.y),t},toJSON:function(){return{type:this.type,points:[this.p0.x,this.p0.y,this.p1.x,this.p1.y]}}});h.fromJSON=function(t){var t=t.points,e=new a(t[0],t[1]),t=new a(t[2],t[3]);return new h(e,t)},t.exports=h},64761:(t,e,i)=>{var s=i(56694),n=i(38517),r=i(16252),o=i(93736),a=new s({Extends:n,initialize:function(t,e,i){n.call(this,"QuadraticBezierCurve"),Array.isArray(t)&&(i=new o(t[4],t[5]),e=new o(t[2],t[3]),t=new o(t[0],t[1])),this.p0=t,this.p1=e,this.p2=i},getStartPoint:function(t){return(t=void 0===t?new o:t).copy(this.p0)},getResolution:function(t){return t},getPoint:function(t,e){void 0===e&&(e=new o);var i=this.p0,s=this.p1,n=this.p2;return e.set(r(t,i.x,s.x,n.x),r(t,i.y,s.y,n.y))},draw:function(t,e){var i=this.getPoints(e=void 0===e?32:e);t.beginPath(),t.moveTo(this.p0.x,this.p0.y);for(var s=1;s{var a=i(14976),s=i(56694),n=i(38517),h=i(93736),r=new s({Extends:n,initialize:function(t){void 0===t&&(t=[]),n.call(this,"SplineCurve"),this.points=[],this.addPoints(t)},addPoints:function(t){for(var e=0;ei.length-2?i.length-1:s+1],i=i[s>i.length-3?i.length-1:s+2];return e.set(a(t,n.x,r.x,o.x,i.x),a(t,n.y,r.y,o.y,i.y))},toJSON:function(){for(var t=[],e=0;e{t.exports={Path:i(12822),MoveTo:i(53639),CubicBezier:i(63120),Curve:i(38517),Ellipse:i(48835),Line:i(58084),QuadraticBezier:i(64761),Spline:i(11956)}},53639:(t,e,i)=>{var s=i(56694),n=i(93736),i=new s({initialize:function(t,e){this.active=!1,this.p0=new n(t,e)},getPoint:function(t,e){return(e=void 0===e?new n:e).copy(this.p0)},getPointAt:function(t,e){return this.getPoint(t,e)},getResolution:function(){return 1},getLength:function(){return 0},toJSON:function(){return{type:"MoveTo",points:[this.p0.x,this.p0.y]}}});t.exports=i},12822:(t,e,i)=>{var s=i(56694),l=i(63120),o=i(48835),n=i(61286),r=i(58084),a=i(53639),h=i(64761),u=i(74118),c=i(11956),d=i(93736),p=i(83392),f=new s({initialize:function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.name="",this.curves=[],this.cacheLengths=[],this.autoClose=!1,this.startPoint=new d,this._tmpVec2A=new d,this._tmpVec2B=new d,"object"==typeof t?this.fromJSON(t):this.startPoint.set(t,e)},add:function(t){return this.curves.push(t),this},circleTo:function(t,e,i){return this.ellipseTo(t,t,0,360,e=void 0===e?!1:e,i)},closePath:function(){var t=this.curves[0].getPoint(0),e=this.curves[this.curves.length-1].getPoint(1);return t.equals(e)||this.curves.push(new r(e,t)),this},cubicBezierTo:function(t,e,i,s,n,r){var o,a,h=this.getEndPoint(),i=t instanceof d?(o=t,a=e,i):(o=new d(i,s),a=new d(n,r),new d(t,e));return this.add(new l(h,o,a,i))},quadraticBezierTo:function(t,e,i,s){var n,r=this.getEndPoint(),i=t instanceof d?(n=t,e):(n=new d(i,s),new d(t,e));return this.add(new h(r,n,i))},draw:function(t,e){for(var i=0;i=e)return this.curves[s];s++}return null},getEndPoint:function(t){return void 0===t&&(t=new d),0=r)return i=o[a]-r,n=(s=this.curves[a]).getLength(),s.getPointAt(0===n?0:1-i/n,e);a++}return null},getPoints:function(t){void 0===t&&(t=12);for(var e,i=[],s=0;s=r)return i=o[a]-r,n=(s=this.curves[a]).getLength(),s.getTangentAt(0===n?0:1-i/n,e);a++}return null},lineTo:function(t,e){t instanceof d?this._tmpVec2B.copy(t):this._tmpVec2B.set(t,e);t=this.getEndPoint(this._tmpVec2A);return this.add(new r([t.x,t.y,this._tmpVec2B.x,this._tmpVec2B.y]))},splineTo:function(t){return t.unshift(this.getEndPoint()),this.add(new c(t))},moveTo:function(t,e){return t instanceof d?this.add(new a(t.x,t.y)):this.add(new a(t,e))},toJSON:function(){for(var t=[],e=0;e{var s=i(56694),a=i(35026),i=new s({initialize:function(t,e){this.parent=t,(this.events=e)||(this.events=t.events||t),this.list={},this.values={},this._frozen=!1,!t.hasOwnProperty("sys")&&this.events&&this.events.once(a.DESTROY,this.destroy,this)},get:function(t){var e=this.list;if(Array.isArray(t)){for(var i=[],s=0;s{var s=i(56694),n=i(81078),r=i(91963),o=i(7599),i=new s({Extends:n,initialize:function(t){n.call(this,t,t.sys.events),this.scene=t,this.systems=t.sys,t.sys.events.once(o.BOOT,this.boot,this),t.sys.events.on(o.START,this.start,this)},boot:function(){this.events=this.systems.events,this.events.once(o.DESTROY,this.destroy,this)},start:function(){this.events.once(o.SHUTDOWN,this.shutdown,this)},shutdown:function(){this.systems.events.off(o.SHUTDOWN,this.shutdown,this)},destroy:function(){n.prototype.destroy.call(this),this.events.off(o.START,this.start,this),this.scene=null,this.systems=null}});r.register("DataManagerPlugin",i,"data"),t.exports=i},73569:t=>{t.exports="changedata"},15590:t=>{t.exports="changedata-"},37669:t=>{t.exports="destroy"},87090:t=>{t.exports="removedata"},90142:t=>{t.exports="setdata"},35026:(t,e,i)=>{t.exports={CHANGE_DATA:i(73569),CHANGE_DATA_KEY:i(15590),DESTROY:i(37669),REMOVE_DATA:i(87090),SET_DATA:i(90142)}},1999:(t,e,i)=>{t.exports={DataManager:i(81078),DataManagerPlugin:i(76508),Events:i(35026)}},10720:(t,e,i)=>{var r=i(1350),o={flac:!1,aac:!1,audioData:!1,dolby:!1,m4a:!1,mp3:!1,ogg:!1,opus:!1,wav:!1,webAudio:!1,webm:!1};t.exports=function(){if("function"!=typeof importScripts){o.audioData=!!window.Audio,o.webAudio=!(!window.AudioContext&&!window.webkitAudioContext);var t,e,i,s=document.createElement("audio"),n=!!s.canPlayType;try{n&&(t=function(t,e){t=s.canPlayType("audio/"+t).replace(/^no$/,"");return e?Boolean(t||s.canPlayType("audio/"+e).replace(/^no$/,"")):Boolean(t)},o.ogg=t('ogg; codecs="vorbis"'),o.opus=t('ogg; codecs="opus"',"opus"),o.mp3=t("mpeg"),o.wav=t("wav"),o.m4a=t("x-m4a"),o.aac=t("aac"),o.flac=t("flac","x-flac"),o.webm=t('webm; codecs="vorbis"'),""!==s.canPlayType('audio/mp4; codecs="ec-3"'))&&(r.edge||r.safari&&9<=r.safariVersion&&/Mac OS X (\d+)_(\d+)/.test(navigator.userAgent)&&(e=parseInt(RegExp.$1,10),i=parseInt(RegExp.$2,10),10===e&&11<=i||10{var i=i(36580),s={chrome:!1,chromeVersion:0,edge:!1,firefox:!1,firefoxVersion:0,ie:!1,ieVersion:0,mobileSafari:!1,opera:!1,safari:!1,safariVersion:0,silk:!1,trident:!1,tridentVersion:0,es2019:!1};t.exports=(t=navigator.userAgent,/Edg\/\d+/.test(t)?(s.edge=!0,s.es2019=!0):/OPR/.test(t)?(s.opera=!0,s.es2019=!0):/Chrome\/(\d+)/.test(t)&&!i.windowsPhone?(s.chrome=!0,s.chromeVersion=parseInt(RegExp.$1,10),s.es2019=69{var s,n,r,o=i(61068),a={supportInverseAlpha:!1,supportNewBlendModes:!1};t.exports=("function"!=typeof importScripts&&void 0!==document&&(a.supportNewBlendModes=(s="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAABAQMAAADD8p2OAAAAA1BMVEX/",n="AAAACklEQVQI12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg==",(r=new Image).onload=function(){var e=new Image;e.onload=function(){var t=o.create2D(e,6).getContext("2d",{willReadFrequently:!0});if(t.globalCompositeOperation="multiply",t.drawImage(r,0,0),t.drawImage(e,2,0),!t.getImageData(2,0,1,1))return!1;t=t.getImageData(2,0,1,1).data;o.remove(e),a.supportNewBlendModes=255===t[0]&&0===t[1]&&0===t[2]},e.src=s+"/wCKxvRF"+n},r.src=s+"AP804Oa6"+n,!1),a.supportInverseAlpha=function(){var t=o.create2D(this,2).getContext("2d",{willReadFrequently:!0}),e=(t.fillStyle="rgba(10, 20, 30, 0.5)",t.fillRect(0,0,1,1),t.getImageData(0,0,1,1));if(null===e)return!1;t.putImageData(e,1,0);t=t.getImageData(1,0,1,1),t=t.data[0]===e.data[0]&&t.data[1]===e.data[1]&&t.data[2]===e.data[2]&&t.data[3]===e.data[3];return o.remove(this),t}()),a)},90185:(t,e,i)=>{var s=i(36580),r=i(1350),o=i(61068),a={canvas:!1,canvasBitBltShift:null,file:!1,fileSystem:!1,getUserMedia:!0,littleEndian:!1,localStorage:!1,pointerLock:!1,stableSort:!1,support32bit:!1,vibration:!1,webGL:!1,worker:!1};t.exports=function(){if("function"!=typeof importScripts){a.canvas=!!window.CanvasRenderingContext2D;try{a.localStorage=!!localStorage.getItem}catch(t){a.localStorage=!1}a.file=!!(window.File&&window.FileReader&&window.FileList&&window.Blob),a.fileSystem=!!window.requestFileSystem;var t,e,i,n=!1;a.webGL=function(){if(window.WebGLRenderingContext)try{var t=o.createWebGL(this),e=t.getContext("webgl")||t.getContext("experimental-webgl"),i=o.create2D(this),s=i.getContext("2d",{willReadFrequently:!0}).createImageData(1,1);return n=s.data instanceof Uint8ClampedArray,o.remove(t),o.remove(i),!!e}catch(t){}return!1}(),a.worker=!!window.Worker,a.pointerLock="pointerLockElement"in document||"mozPointerLockElement"in document||"webkitPointerLockElement"in document,navigator.getUserMedia=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||navigator.msGetUserMedia||navigator.oGetUserMedia,window.URL=window.URL||window.webkitURL||window.mozURL||window.msURL,a.getUserMedia=a.getUserMedia&&!!navigator.getUserMedia&&!!window.URL,r.firefox&&r.firefoxVersion<21&&(a.getUserMedia=!1),!s.iOS&&(r.ie||r.firefox||r.chrome)&&(a.canvasBitBltShift=!0),(r.safari||r.mobileSafari)&&(a.canvasBitBltShift=!1),navigator.vibrate=navigator.vibrate||navigator.webkitVibrate||navigator.mozVibrate||navigator.msVibrate,navigator.vibrate&&(a.vibration=!0),"undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint32Array&&(a.littleEndian=(t=new ArrayBuffer(4),e=new Uint8Array(t),i=new Uint32Array(t),e[0]=161,e[1]=178,e[2]=195,e[3]=212,3569595041===i[0]||2712847316!==i[0]&&null)),a.support32bit="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof Int32Array&&null!==a.littleEndian&&n}return a}()},33553:t=>{var r={available:!1,cancel:"",keyboard:!1,request:""};t.exports=function(){if("function"!=typeof importScripts){for(var t="Fullscreen",e="FullScreen",i=["request"+t,"request"+e,"webkitRequest"+t,"webkitRequest"+e,"msRequest"+t,"msRequest"+e,"mozRequest"+e,"mozRequest"+t],s=0;s{var i=i(1350),s={gamepads:!1,mspointer:!1,touch:!1,wheelEvent:null};t.exports=("function"!=typeof importScripts&&(("ontouchstart"in document.documentElement||navigator.maxTouchPoints&&1<=navigator.maxTouchPoints)&&(s.touch=!0),(navigator.msPointerEnabled||navigator.pointerEnabled)&&(s.mspointer=!0),navigator.getGamepads&&(s.gamepads=!0),"onwheel"in window||i.ie&&"WheelEvent"in window?s.wheelEvent="wheel":"onmousewheel"in window?s.wheelEvent="mousewheel":i.firefox&&"MouseScrollEvent"in window&&(s.wheelEvent="DOMMouseScroll")),s)},36580:t=>{var e,i={android:!1,chromeOS:!1,cordova:!1,crosswalk:!1,desktop:!1,ejecta:!1,electron:!1,iOS:!1,iOSVersion:0,iPad:!1,iPhone:!1,kindle:!1,linux:!1,macOS:!1,node:!1,nodeWebkit:!1,pixelRatio:1,webApp:!1,windows:!1,windowsPhone:!1};t.exports=("function"!=typeof importScripts&&(t=navigator.userAgent,/Windows/.test(t)?i.windows=!0:/Mac OS/.test(t)&&!/like Mac OS/.test(t)?navigator.maxTouchPoints&&2{var n=i(72632),r={h264:!1,hls:!1,mp4:!1,m4v:!1,ogg:!1,vp9:!1,webm:!1,hasRequestVideoFrame:!1};t.exports=function(){if("function"!=typeof importScripts){var t=document.createElement("video"),e=!!t.canPlayType,i=/^no$/;try{e&&(t.canPlayType('video/ogg; codecs="theora"').replace(i,"")&&(r.ogg=!0),t.canPlayType('video/mp4; codecs="avc1.42E01E"').replace(i,"")&&(r.h264=!0,r.mp4=!0),t.canPlayType("video/x-m4v").replace(i,"")&&(r.m4v=!0),t.canPlayType('video/webm; codecs="vp8, vorbis"').replace(i,"")&&(r.webm=!0),t.canPlayType('video/webm; codecs="vp9"').replace(i,"")&&(r.vp9=!0),t.canPlayType('application/x-mpegURL; codecs="avc1.42E01E"').replace(i,""))&&(r.hls=!0)}catch(t){}t.parentNode&&t.parentNode.removeChild(t),r.getVideoURL=function(t){Array.isArray(t)||(t=[t]);for(var e=0;e{t.exports={os:i(36580),browser:i(1350),features:i(90185),input:i(95872),audio:i(10720),video:i(53861),fullscreen:i(33553),canvasFeatures:i(98581)}},65246:(t,e,i)=>{var i=i(56694),s=new Float32Array(20),n=new i({initialize:function(){this._matrix=new Float32Array(20),this.alpha=1,this._dirty=!0,this._data=new Float32Array(20),this.reset()},set:function(t){return this._matrix.set(t),this._dirty=!0,this},reset:function(){var t=this._matrix;return t.fill(0),t[0]=1,t[6]=1,t[12]=1,t[18]=1,this.alpha=1,this._dirty=!0,this},getData:function(){var t=this._data;return this._dirty&&(t.set(this._matrix),t[4]/=255,t[9]/=255,t[14]/=255,t[19]/=255,this._dirty=!1),t},brightness:function(t,e){t=void 0===t?0:t;return this.multiply([t,0,0,0,0,0,t,0,0,0,0,0,t,0,0,0,0,0,1,0],e=void 0===e?!1:e)},saturate:function(t,e){var t=2*(t=void 0===t?0:t)/3+1,i=-.5*(t-1);return this.multiply([t,i,i,0,0,i,t,i,0,0,i,i,t,0,0,0,0,0,1,0],e=void 0===e?!1:e)},desaturate:function(t){return this.saturate(-1,t=void 0===t?!1:t)},hue:function(t,e){void 0===e&&(e=!1),t=(t=void 0===t?0:t)/180*Math.PI;var i=Math.cos(t),t=Math.sin(t);return this.multiply([.213+.787*i+-.213*t,.715+-.715*i+-.715*t,.072+-.072*i+.928*t,0,0,.213+-.213*i+.143*t,.715+i*(1-.715)+.14*t,.072+-.072*i+-.283*t,0,0,.213+-.213*i+-.787*t,.715+-.715*i+.715*t,.072+.928*i+.072*t,0,0,0,0,0,1,0],e)},grayscale:function(t,e){return this.saturate(-(t=void 0===t?1:t),e=void 0===e?!1:e)},blackWhite:function(t){return this.multiply(n.BLACK_WHITE,t=void 0===t?!1:t)},contrast:function(t,e){var t=(t=void 0===t?0:t)+1,i=-.5*(t-1);return this.multiply([t,0,0,0,i,0,t,0,0,i,0,0,t,0,i,0,0,0,1,0],e=void 0===e?!1:e)},negative:function(t){return this.multiply(n.NEGATIVE,t=void 0===t?!1:t)},desaturateLuminance:function(t){return this.multiply(n.DESATURATE_LUMINANCE,t=void 0===t?!1:t)},sepia:function(t){return this.multiply(n.SEPIA,t=void 0===t?!1:t)},night:function(t,e){return this.multiply([-2*(t=void 0===t?.1:t),-t,0,0,0,-t,0,t,0,0,0,t,2*t,0,0,0,0,0,1,0],e=void 0===e?!1:e)},lsd:function(t){return this.multiply(n.LSD,t=void 0===t?!1:t)},brown:function(t){return this.multiply(n.BROWN,t=void 0===t?!1:t)},vintagePinhole:function(t){return this.multiply(n.VINTAGE,t=void 0===t?!1:t)},kodachrome:function(t){return this.multiply(n.KODACHROME,t=void 0===t?!1:t)},technicolor:function(t){return this.multiply(n.TECHNICOLOR,t=void 0===t?!1:t)},polaroid:function(t){return this.multiply(n.POLAROID,t=void 0===t?!1:t)},shiftToBGR:function(t){return this.multiply(n.SHIFT_BGR,t=void 0===t?!1:t)},multiply:function(t,e){(e=void 0===e?!1:e)||this.reset();var e=this._matrix,i=s;return i.set(e),e.set([i[0]*t[0]+i[1]*t[5]+i[2]*t[10]+i[3]*t[15],i[0]*t[1]+i[1]*t[6]+i[2]*t[11]+i[3]*t[16],i[0]*t[2]+i[1]*t[7]+i[2]*t[12]+i[3]*t[17],i[0]*t[3]+i[1]*t[8]+i[2]*t[13]+i[3]*t[18],i[0]*t[4]+i[1]*t[9]+i[2]*t[14]+i[3]*t[19]+i[4],i[5]*t[0]+i[6]*t[5]+i[7]*t[10]+i[8]*t[15],i[5]*t[1]+i[6]*t[6]+i[7]*t[11]+i[8]*t[16],i[5]*t[2]+i[6]*t[7]+i[7]*t[12]+i[8]*t[17],i[5]*t[3]+i[6]*t[8]+i[7]*t[13]+i[8]*t[18],i[5]*t[4]+i[6]*t[9]+i[7]*t[14]+i[8]*t[19]+i[9],i[10]*t[0]+i[11]*t[5]+i[12]*t[10]+i[13]*t[15],i[10]*t[1]+i[11]*t[6]+i[12]*t[11]+i[13]*t[16],i[10]*t[2]+i[11]*t[7]+i[12]*t[12]+i[13]*t[17],i[10]*t[3]+i[11]*t[8]+i[12]*t[13]+i[13]*t[18],i[10]*t[4]+i[11]*t[9]+i[12]*t[14]+i[13]*t[19]+i[14],i[15]*t[0]+i[16]*t[5]+i[17]*t[10]+i[18]*t[15],i[15]*t[1]+i[16]*t[6]+i[17]*t[11]+i[18]*t[16],i[15]*t[2]+i[16]*t[7]+i[17]*t[12]+i[18]*t[17],i[15]*t[3]+i[16]*t[8]+i[17]*t[13]+i[18]*t[18],i[15]*t[4]+i[16]*t[9]+i[17]*t[14]+i[18]*t[19]+i[19]]),this._dirty=!0,this}});n.BLACK_WHITE=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0],n.NEGATIVE=[-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0],n.DESATURATE_LUMINANCE=[.2764723,.929708,.0938197,0,-37.1,.2764723,.929708,.0938197,0,-37.1,.2764723,.929708,.0938197,0,-37.1,0,0,0,1,0],n.SEPIA=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0],n.LSD=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0],n.BROWN=[.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0],n.VINTAGE=[.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0],n.KODACHROME=[1.1285582396593525,-.3967382283601348,-.03992559172921793,0,63.72958762196502,-.16404339962244616,1.0835251566291304,-.05498805115633132,0,24.732407896706203,-.16786010706155763,-.5603416277695248,1.6014850761964943,0,35.62982807460946,0,0,0,1,0],n.TECHNICOLOR=[1.9125277891456083,-.8545344976951645,-.09155508482755585,0,11.793603434377337,-.3087833385928097,1.7658908555458428,-.10601743074722245,0,-70.35205161461398,-.231103377548616,-.7501899197440212,1.847597816108189,0,30.950940869491138,0,0,0,1,0],n.POLAROID=[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],n.SHIFT_BGR=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0],t.exports=n},39298:(t,e,i)=>{var s=i(56694),n=i(72283),i=new s({initialize:function(t,e,i){this._rgb=[0,0,0],this.onChangeCallback=n,this.dirty=!1,this.set(t,e,i)},set:function(t,e,i){return this._rgb=[t=void 0===t?0:t,e=void 0===e?0:e,i=void 0===i?0:i],this.onChange(),this},equals:function(t,e,i){var s=this._rgb;return s[0]===t&&s[1]===e&&s[2]===i},onChange:function(){this.dirty=!0;var t=this._rgb;this.onChangeCallback.call(this,t[0],t[1],t[2])},r:{get:function(){return this._rgb[0]},set:function(t){this._rgb[0]=t,this.onChange()}},g:{get:function(){return this._rgb[1]},set:function(t){this._rgb[1]=t,this.onChange()}},b:{get:function(){return this._rgb[2]},set:function(t){this._rgb[2]=t,this.onChange()}},destroy:function(){this.onChangeCallback=null}});t.exports=i},84093:t=>{t.exports={TOP_LEFT:0,TOP_CENTER:1,TOP_RIGHT:2,LEFT_TOP:3,LEFT_CENTER:4,LEFT_BOTTOM:5,CENTER:6,RIGHT_TOP:7,RIGHT_CENTER:8,RIGHT_BOTTOM:9,BOTTOM_LEFT:10,BOTTOM_CENTER:11,BOTTOM_RIGHT:12}},32058:(t,e,i)=>{var n=i(97328),r=i(59994),o=i(73174),a=i(28417);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),a(t,r(e)+i),o(t,n(e)+s),t}},85535:(t,e,i)=>{var n=i(97328),r=i(40163),o=i(73174),a=i(74465);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),a(t,r(e)-i),o(t,n(e)+s),t}},9605:(t,e,i)=>{var n=i(97328),r=i(70271),o=i(73174),a=i(19298);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),a(t,r(e)+i),o(t,n(e)+s),t}},22529:(t,e,i)=>{var n=i(21843),r=i(59994),o=i(29568);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),n(t,r(e)+i,o(e)+s),t}},5739:(t,e,i)=>{var n=i(29568),r=i(40163),o=i(81711),a=i(74465);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),a(t,r(e)-i),o(t,n(e)+s),t}},40327:(t,e,i)=>{var s=i(84093),r=[];r[s.BOTTOM_CENTER]=i(32058),r[s.BOTTOM_LEFT]=i(85535),r[s.BOTTOM_RIGHT]=i(9605),r[s.CENTER]=i(22529),r[s.LEFT_CENTER]=i(5739),r[s.RIGHT_CENTER]=i(27683),r[s.TOP_CENTER]=i(96439),r[s.TOP_LEFT]=i(81447),r[s.TOP_RIGHT]=i(47888),r[s.LEFT_BOTTOM]=r[s.BOTTOM_LEFT],r[s.LEFT_TOP]=r[s.TOP_LEFT],r[s.RIGHT_BOTTOM]=r[s.BOTTOM_RIGHT],r[s.RIGHT_TOP]=r[s.TOP_RIGHT],t.exports=function(t,e,i,s,n){return r[i](t,e,s,n)}},27683:(t,e,i)=>{var n=i(29568),r=i(70271),o=i(81711),a=i(19298);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),a(t,r(e)+i),o(t,n(e)+s),t}},96439:(t,e,i)=>{var n=i(59994),r=i(47196),o=i(28417),a=i(84349);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),o(t,n(e)+i),a(t,r(e)-s),t}},81447:(t,e,i)=>{var n=i(40163),r=i(47196),o=i(74465),a=i(84349);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),o(t,n(e)-i),a(t,r(e)-s),t}},47888:(t,e,i)=>{var n=i(70271),r=i(47196),o=i(19298),a=i(84349);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),o(t,n(e)+i),a(t,r(e)-s),t}},46997:(t,e,i)=>{t.exports={BottomCenter:i(32058),BottomLeft:i(85535),BottomRight:i(9605),Center:i(22529),LeftCenter:i(5739),QuickSet:i(40327),RightCenter:i(27683),TopCenter:i(96439),TopLeft:i(81447),TopRight:i(47888)}},93545:(t,e,i)=>{var s=i(84093),i=i(98611)(!1,{In:i(46997),To:i(86639)},s);t.exports=i},27118:(t,e,i)=>{var n=i(97328),r=i(59994),o=i(28417),a=i(84349);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),o(t,r(e)+i),a(t,n(e)+s),t}},84469:(t,e,i)=>{var n=i(97328),r=i(40163),o=i(74465),a=i(84349);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),o(t,r(e)-i),a(t,n(e)+s),t}},51577:(t,e,i)=>{var n=i(97328),r=i(70271),o=i(19298),a=i(84349);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),o(t,r(e)+i),a(t,n(e)+s),t}},90271:(t,e,i)=>{var n=i(97328),r=i(40163),o=i(73174),a=i(19298);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),a(t,r(e)-i),o(t,n(e)+s),t}},30466:(t,e,i)=>{var n=i(29568),r=i(40163),o=i(81711),a=i(19298);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),a(t,r(e)-i),o(t,n(e)+s),t}},50087:(t,e,i)=>{var n=i(40163),r=i(47196),o=i(19298),a=i(84349);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),o(t,n(e)-i),a(t,r(e)-s),t}},82590:(t,e,i)=>{var s=i(84093),r=[];r[s.BOTTOM_CENTER]=i(27118),r[s.BOTTOM_LEFT]=i(84469),r[s.BOTTOM_RIGHT]=i(51577),r[s.LEFT_BOTTOM]=i(90271),r[s.LEFT_CENTER]=i(30466),r[s.LEFT_TOP]=i(50087),r[s.RIGHT_BOTTOM]=i(13555),r[s.RIGHT_CENTER]=i(99049),r[s.RIGHT_TOP]=i(67788),r[s.TOP_CENTER]=i(78170),r[s.TOP_LEFT]=i(54145),r[s.TOP_RIGHT]=i(75548),t.exports=function(t,e,i,s,n){return r[i](t,e,s,n)}},13555:(t,e,i)=>{var n=i(97328),r=i(70271),o=i(73174),a=i(74465);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),a(t,r(e)+i),o(t,n(e)+s),t}},99049:(t,e,i)=>{var n=i(29568),r=i(70271),o=i(81711),a=i(74465);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),a(t,r(e)+i),o(t,n(e)+s),t}},67788:(t,e,i)=>{var n=i(70271),r=i(47196),o=i(74465),a=i(84349);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),o(t,n(e)+i),a(t,r(e)-s),t}},78170:(t,e,i)=>{var n=i(59994),r=i(47196),o=i(73174),a=i(28417);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),a(t,n(e)+i),o(t,r(e)-s),t}},54145:(t,e,i)=>{var n=i(40163),r=i(47196),o=i(73174),a=i(74465);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),a(t,n(e)-i),o(t,r(e)-s),t}},75548:(t,e,i)=>{var n=i(70271),r=i(47196),o=i(73174),a=i(19298);t.exports=function(t,e,i,s){return void 0===i&&(i=0),void 0===s&&(s=0),a(t,n(e)+i),o(t,r(e)-s),t}},86639:(t,e,i)=>{t.exports={BottomCenter:i(27118),BottomLeft:i(84469),BottomRight:i(51577),LeftBottom:i(90271),LeftCenter:i(30466),LeftTop:i(50087),QuickSet:i(82590),RightBottom:i(13555),RightCenter:i(99049),RightTop:i(67788),TopCenter:i(78170),TopLeft:i(54145),TopRight:i(75548)}},21843:(t,e,i)=>{var s=i(28417),n=i(81711);t.exports=function(t,e,i){return s(t,e),n(t,i)}},97328:t=>{t.exports=function(t){return t.y+t.height-t.height*t.originY}},7126:(t,e,i)=>{var n=i(97328),r=i(40163),o=i(70271),a=i(47196),h=i(74118);t.exports=function(t,e){void 0===e&&(e=new h);var i=r(t),s=a(t);return e.x=i,e.y=s,e.width=o(t)-i,e.height=n(t)-s,e}},59994:t=>{t.exports=function(t){return t.x-t.width*t.originX+.5*t.width}},29568:t=>{t.exports=function(t){return t.y-t.height*t.originY+.5*t.height}},40163:t=>{t.exports=function(t){return t.x-t.width*t.originX}},52088:t=>{t.exports=function(t){return t.width*t.originX}},23379:t=>{t.exports=function(t){return t.height*t.originY}},70271:t=>{t.exports=function(t){return t.x+t.width-t.width*t.originX}},47196:t=>{t.exports=function(t){return t.y-t.height*t.originY}},73174:t=>{t.exports=function(t,e){return t.y=e-t.height+t.height*t.originY,t}},28417:t=>{t.exports=function(t,e){var i=t.width*t.originX;return t.x=e+i-.5*t.width,t}},81711:t=>{t.exports=function(t,e){var i=t.height*t.originY;return t.y=e+i-.5*t.height,t}},74465:t=>{t.exports=function(t,e){return t.x=e+t.width*t.originX,t}},19298:t=>{t.exports=function(t,e){return t.x=e-t.width+t.width*t.originX,t}},84349:t=>{t.exports=function(t,e){return t.y=e+t.height*t.originY,t}},15252:(t,e,i)=>{t.exports={CenterOn:i(21843),GetBottom:i(97328),GetBounds:i(7126),GetCenterX:i(59994),GetCenterY:i(29568),GetLeft:i(40163),GetOffsetX:i(52088),GetOffsetY:i(23379),GetRight:i(70271),GetTop:i(47196),SetBottom:i(73174),SetCenterX:i(28417),SetCenterY:i(81711),SetLeft:i(74465),SetRight:i(19298),SetTop:i(84349)}},70616:t=>{t.exports={setCrisp:function(e){return["optimizeSpeed","-moz-crisp-edges","-o-crisp-edges","-webkit-optimize-contrast","optimize-contrast","crisp-edges","pixelated"].forEach(function(t){e.style["image-rendering"]=t}),e.style.msInterpolationMode="nearest-neighbor",e},setBicubic:function(t){return t.style["image-rendering"]="auto",t.style.msInterpolationMode="bicubic",t}}},61068:(t,e,i)=>{var s,o,n,a=i(86459),h=i(8213),l=[],u=!1;t.exports={create2D:function(t,e,i){return s(t,e,i,a.CANVAS)},create:s=function(t,e,i,s,n){void 0===e&&(e=1),void 0===i&&(i=1),void 0===s&&(s=a.CANVAS),void 0===n&&(n=!1);var r=o(s),t=(null===r?(r={parent:t,canvas:document.createElement("canvas"),type:s},s===a.CANVAS&&l.push(r)):r.parent=t,r.canvas);return n&&(r.parent=t),t.width=e,t.height=i,u&&s===a.CANVAS&&h.disable(t.getContext("2d",{willReadFrequently:!1})),t},createWebGL:function(t,e,i){return s(t,e,i,a.WEBGL)},disableSmoothing:function(){u=!0},enableSmoothing:function(){u=!1},first:o=function(t){if((t=void 0===t?a.CANVAS:t)!==a.WEBGL)for(var e=0;e{var e,i="";t.exports={disable:function(t){return(i=""===i?e(t):i)&&(t[i]=!1),t},enable:function(t){return(i=""===i?e(t):i)&&(t[i]=!0),t},getPrefix:e=function(t){for(var e=["i","webkitI","msI","mozI","oI"],i=0;i{t.exports=function(t,e){return t.style.msTouchAction=e=void 0===e?"none":e,t.style["ms-touch-action"]=e,t.style["touch-action"]=e,t}},36505:t=>{t.exports=function(e,i){return void 0===i&&(i="none"),["-webkit-","-khtml-","-moz-","-ms-",""].forEach(function(t){e.style[t+"user-select"]=i}),e.style["-webkit-touch-callout"]=i,e.style["-webkit-tap-highlight-color"]="rgba(0, 0, 0, 0)",e}},23514:(t,e,i)=>{t.exports={CanvasInterpolation:i(70616),CanvasPool:i(61068),Smoothing:i(8213),TouchAction:i(59271),UserSelect:i(36505)}},27119:(t,e,i)=>{var s=i(56694),r=i(22946),o=i(5657),n=i(24650),a=i(68033),h=new s({initialize:function(t,e,i,s){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=255),this.r=0,this.g=0,this.b=0,this.a=255,this._h=0,this._s=0,this._v=0,this._locked=!1,this.gl=[0,0,0,1],this._color=0,this._color32=0,this._rgba="",this.setTo(t,e,i,s)},transparent:function(){return this._locked=!0,this.red=0,this.green=0,this.blue=0,this.alpha=0,this._locked=!1,this.update(!0)},setTo:function(t,e,i,s,n){return void 0===s&&(s=255),void 0===n&&(n=!0),this._locked=!0,this.red=t,this.green=e,this.blue=i,this.alpha=s,this._locked=!1,this.update(n)},setGLTo:function(t,e,i,s){return void 0===s&&(s=1),this._locked=!0,this.redGL=t,this.greenGL=e,this.blueGL=i,this.alphaGL=s,this._locked=!1,this.update(!0)},setFromRGB:function(t){return this._locked=!0,this.red=t.r,this.green=t.g,this.blue=t.b,t.hasOwnProperty("a")&&(this.alpha=t.a),this._locked=!1,this.update(!0)},setFromHSV:function(t,e,i){return n(t,e,i,this)},update:function(t){var e,i,s,n;return void 0===t&&(t=!1),this._locked||(e=this.r,i=this.g,s=this.b,n=this.a,this._color=r(e,i,s),this._color32=o(e,i,s,n),this._rgba="rgba("+e+","+i+","+s+","+n/255+")",t&&a(e,i,s,this)),this},updateHSV:function(){var t=this.r,e=this.g,i=this.b;return a(t,e,i,this),this},clone:function(){return new h(this.r,this.g,this.b,this.a)},gray:function(t){return this.setTo(t,t,t)},random:function(t,e){void 0===t&&(t=0),void 0===e&&(e=255);var i=Math.floor(t+Math.random()*(e-t)),s=Math.floor(t+Math.random()*(e-t)),e=Math.floor(t+Math.random()*(e-t));return this.setTo(i,s,e)},randomGray:function(t,e){void 0===t&&(t=0),void 0===e&&(e=255);e=Math.floor(t+Math.random()*(e-t));return this.setTo(e,e,e)},saturate:function(t){return this.s+=t/100,this},desaturate:function(t){return this.s-=t/100,this},lighten:function(t){return this.v+=t/100,this},darken:function(t){return this.v-=t/100,this},brighten:function(t){var e=this.r,i=this.g,s=this.b,e=Math.max(0,Math.min(255,e-Math.round(-t/100*255))),i=Math.max(0,Math.min(255,i-Math.round(-t/100*255))),s=Math.max(0,Math.min(255,s-Math.round(-t/100*255)));return this.setTo(e,i,s)},color:{get:function(){return this._color}},color32:{get:function(){return this._color32}},rgba:{get:function(){return this._rgba}},redGL:{get:function(){return this.gl[0]},set:function(t){this.gl[0]=Math.min(Math.abs(t),1),this.r=Math.floor(255*this.gl[0]),this.update(!0)}},greenGL:{get:function(){return this.gl[1]},set:function(t){this.gl[1]=Math.min(Math.abs(t),1),this.g=Math.floor(255*this.gl[1]),this.update(!0)}},blueGL:{get:function(){return this.gl[2]},set:function(t){this.gl[2]=Math.min(Math.abs(t),1),this.b=Math.floor(255*this.gl[2]),this.update(!0)}},alphaGL:{get:function(){return this.gl[3]},set:function(t){this.gl[3]=Math.min(Math.abs(t),1),this.a=Math.floor(255*this.gl[3]),this.update()}},red:{get:function(){return this.r},set:function(t){t=Math.floor(Math.abs(t)),this.r=Math.min(t,255),this.gl[0]=t/255,this.update(!0)}},green:{get:function(){return this.g},set:function(t){t=Math.floor(Math.abs(t)),this.g=Math.min(t,255),this.gl[1]=t/255,this.update(!0)}},blue:{get:function(){return this.b},set:function(t){t=Math.floor(Math.abs(t)),this.b=Math.min(t,255),this.gl[2]=t/255,this.update(!0)}},alpha:{get:function(){return this.a},set:function(t){t=Math.floor(Math.abs(t)),this.a=Math.min(t,255),this.gl[3]=t/255,this.update()}},h:{get:function(){return this._h},set:function(t){this._h=t,n(t,this._s,this._v,this)}},s:{get:function(){return this._s},set:function(t){this._s=t,n(this._h,t,this._v,this)}},v:{get:function(){return this._v},set:function(t){this._v=t,n(this._h,this._s,t,this)}}});t.exports=h},30245:(t,e,i)=>{var l=i(22946);t.exports=function(t){void 0===t&&(t=1024);for(var e=[],i=255,s=0,n=0,r=0;r<=255;r++)e.push({r:i,g:r,b:n,color:l(i,r,n)});for(r=s=255;0<=r;r--)e.push({r:r,g:s,b:n,color:l(r,s,n)});for(r=i=0;r<=255;r++,s--)e.push({r:i,g:s,b:r,color:l(i,s,r)});for(n=255,r=s=0;r<=255;r++,n--,i++)e.push({r:i,g:s,b:n,color:l(i,s,n)});if(1024===t)return e;var o=[],a=0,h=1024/t;for(r=0;r{t.exports=function(t){var e={r:t>>16&255,g:t>>8&255,b:255&t,a:255};return 16777215>>24),e}},25409:t=>{t.exports=function(t){t=t.toString(16);return 1===t.length?"0"+t:t}},22946:t=>{t.exports=function(t,e,i){return t<<16|e<<8|i}},5657:t=>{t.exports=function(t,e,i,s){return s<<24|t<<16|e<<8|i}},74777:(t,e,i)=>{var o=i(27119),a=i(59998);t.exports=function(t,e,i){var s=i,n=i,r=i;return 0!==e&&(s=a(e=2*i-(i=i<.5?i*(1+e):i+e-i*e),i,t+1/3),n=a(e,i,t),r=a(e,i,t-1/3)),(new o).setGLTo(s,n,r,1)}},89263:(t,e,i)=>{var n=i(24650);t.exports=function(t,e){void 0===t&&(t=1),void 0===e&&(e=1);for(var i=[],s=0;s<=359;s++)i.push(n(s/359,t,e));return i}},24650:(t,e,i)=>{var o=i(22946);function a(t,e,i,s){t=(t+6*e)%6,e=Math.min(t,4-t,1);return Math.round(255*(s-s*i*Math.max(0,e)))}t.exports=function(t,e,i,s){var n=a(5,t,e=void 0===e?1:e,i=void 0===i?1:i),r=a(3,t,e,i),t=a(1,t,e,i);return s?s.setTo?s.setTo(n,r,t,s.alpha,!0):(s.r=n,s.g=r,s.b=t,s.color=o(n,r,t),s):{r:n,g:r,b:t,color:o(n,r,t)}}},91487:(t,e,i)=>{var n=i(27119);t.exports=function(t){var e,i,s=new n,t=(t=t.replace(/^(?:#|0x)?([a-f\d])([a-f\d])([a-f\d])$/i,function(t,e,i,s){return e+e+i+i+s+s}),/^(?:#|0x)?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t));return t&&(e=parseInt(t[1],16),i=parseInt(t[2],16),t=parseInt(t[3],16),s.setTo(e,i,t)),s}},59998:t=>{t.exports=function(t,e,i){return i<0&&(i+=1),1{var s=i(27119),n=i(15978);t.exports=function(t){t=n(t);return new s(t.r,t.g,t.b,t.a)}},15978:t=>{t.exports=function(t){return 16777215>>24,r:t>>16&255,g:t>>8&255,b:255&t}:{a:255,r:t>>16&255,g:t>>8&255,b:255&t}}},53756:(t,e,i)=>{function o(t,e,i,s,n,r,o,a){return a=(a=void 0===a?0:a)/(o=void 0===o?100:o),{r:h(t,s,a),g:h(e,n,a),b:h(i,r,a)}}var h=i(42798);t.exports={RGBWithRGB:o,ColorWithRGB:function(t,e,i,s,n,r){return o(t.r,t.g,t.b,e,i,s,n=void 0===n?100:n,r=void 0===r?0:r)},ColorWithColor:function(t,e,i,s){return o(t.r,t.g,t.b,e.r,e.g,e.b,i=void 0===i?100:i,s=void 0===s?0:s)}}},73904:(t,e,i)=>{var s=i(27119);t.exports=function(t){return new s(t.r,t.g,t.b,t.a)}},26841:(t,e,i)=>{var r=i(27119);t.exports=function(t){var e,i,s,n=new r,t=/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*(\d+(?:\.\d+)?))?\s*\)$/.exec(t.toLowerCase());return t&&(e=parseInt(t[1],10),i=parseInt(t[2],10),s=parseInt(t[3],10),t=void 0!==t[4]?parseFloat(t[4]):1,n.setTo(e,i,s,255*t)),n}},68033:t=>{t.exports=function(t,e,i,s){void 0===s&&(s={h:0,s:0,v:0}),t/=255,e/=255,i/=255;var n=Math.min(t,e,i),r=Math.max(t,e,i),o=r-n,a=0,h=0===r?0:o/r,l=r;return r!==n&&(r===t?a=(e-i)/o+(e{var r=i(25409);t.exports=function(t,e,i,s,n){return void 0===s&&(s=255),"#"===(n=void 0===n?"#":n)?"#"+((1<<24)+(t<<16)+(e<<8)+i).toString(16).slice(1,7):"0x"+r(s)+r(t)+r(e)+r(i)}},37243:(t,e,i)=>{var s=i(17489),n=i(27119);t.exports=function(t,e){return new n(s(t=void 0===t?0:t,e=void 0===e?255:e),s(t,e),s(t,e))}},93222:(t,e,i)=>{var s=i(91487),n=i(74853),r=i(73904),o=i(26841);t.exports=function(t){switch(typeof t){case"string":return("rgb"===t.substr(0,3).toLowerCase()?o:s)(t);case"number":return n(t);case"object":return r(t)}}},95509:(t,e,i)=>{var s=i(27119);s.ColorSpectrum=i(30245),s.ColorToRGBA=i(86672),s.ComponentToHex=i(25409),s.GetColor=i(22946),s.GetColor32=i(5657),s.HexStringToColor=i(91487),s.HSLToColor=i(74777),s.HSVColorWheel=i(89263),s.HSVToRGB=i(24650),s.HueToComponent=i(59998),s.IntegerToColor=i(74853),s.IntegerToRGB=i(15978),s.Interpolate=i(53756),s.ObjectToColor=i(73904),s.RandomRGB=i(37243),s.RGBStringToColor=i(26841),s.RGBToHSV=i(68033),s.RGBToString=i(4880),s.ValueToColor=i(93222),t.exports=s},24816:(t,e,i)=>{t.exports={Align:i(93545),BaseShader:i(31053),Bounds:i(15252),Canvas:i(23514),Color:i(95509),ColorMatrix:i(65246),Masks:i(93310),RGB:i(39298)}},76756:(t,e,i)=>{var s=i(56694),i=i(61286),r=new s({initialize:function(t,e,i,s,n,r){e=e||t.sys.make.image({x:i,y:s,key:n,frame:r,add:!1}),this.bitmapMask=e,this.invertAlpha=!1,this.isStencil=!1},setBitmap:function(t){this.bitmapMask=t},preRenderWebGL:function(t,e,i){t.pipelines.BITMAPMASK_PIPELINE.beginMask(this,e,i)},postRenderWebGL:function(t,e,i){t.pipelines.BITMAPMASK_PIPELINE.endMask(this,e,i)},preRenderCanvas:function(){},postRenderCanvas:function(){},destroy:function(){this.bitmapMask=null}});i.register("bitmapMask",function(t,e,i,s,n){return new r(this.scene,t,e,i,s,n)}),t.exports=r},63037:(t,e,i)=>{i=new(i(56694))({initialize:function(t,e){this.geometryMask=e,this.invertAlpha=!1,this.isStencil=!0,this.level=0},setShape:function(t){return this.geometryMask=t,this},setInvertAlpha:function(t){return this.invertAlpha=t=void 0===t?!0:t,this},preRenderWebGL:function(t,e,i){var s=t.gl;t.flush(),0===t.maskStack.length&&(s.enable(s.STENCIL_TEST),s.clear(s.STENCIL_BUFFER_BIT),t.maskCount=0),t.currentCameraMask.mask!==this&&(t.currentMask.mask=this),t.maskStack.push({mask:this,camera:i}),this.applyStencil(t,i,!0),t.maskCount++},applyStencil:function(t,e,i){var s=t.gl,n=this.geometryMask,r=t.maskCount;s.colorMask(!1,!1,!1,!1),i?(s.stencilFunc(s.EQUAL,r,255),s.stencilOp(s.KEEP,s.KEEP,s.INCR),r++):(s.stencilFunc(s.EQUAL,r+1,255),s.stencilOp(s.KEEP,s.KEEP,s.DECR)),this.level=r,n.renderWebGL(t,n,e),t.flush(),s.colorMask(!0,!0,!0,!0),s.stencilOp(s.KEEP,s.KEEP,s.KEEP),this.invertAlpha?s.stencilFunc(s.NOTEQUAL,r,255):s.stencilFunc(s.EQUAL,r,255)},postRenderWebGL:function(t){var e=t.gl,i=(t.maskStack.pop(),t.maskCount--,t.flush(),t.currentMask);0===t.maskStack.length?(i.mask=null,e.disable(e.STENCIL_TEST)):((e=t.maskStack[t.maskStack.length-1]).mask.applyStencil(t,e.camera,!1),t.currentCameraMask.mask!==e.mask?(i.mask=e.mask,i.camera=e.camera):i.mask=null)},preRenderCanvas:function(t,e,i){var s=this.geometryMask;t.currentContext.save(),s.renderCanvas(t,s,i,null,null,!0),t.currentContext.clip()},postRenderCanvas:function(t){t.currentContext.restore()},destroy:function(){this.geometryMask=null}});t.exports=i},93310:(t,e,i)=>{t.exports={BitmapMask:i(76756),GeometryMask:i(63037)}},31053:(t,e,i)=>{i=new(i(56694))({initialize:function(t,e,i,s){e&&""!==e||(e=["precision mediump float;","uniform vec2 resolution;","varying vec2 fragCoord;","void main () {"," vec2 uv = fragCoord / resolution.xy;"," gl_FragColor = vec4(uv.xyx, 1.0);","}"].join("\n")),i&&""!==i||(i=["precision mediump float;","uniform mat4 uProjectionMatrix;","uniform mat4 uViewMatrix;","uniform vec2 uResolution;","attribute vec2 inPosition;","varying vec2 fragCoord;","varying vec2 outTexCoord;","void main () {"," gl_Position = uProjectionMatrix * uViewMatrix * vec4(inPosition, 1.0, 1.0);"," fragCoord = vec2(inPosition.x, uResolution.y - inPosition.y);"," outTexCoord = vec2(inPosition.x / uResolution.x, fragCoord.y / uResolution.y);","}"].join("\n")),void 0===s&&(s=null),this.key=t,this.fragmentSrc=e,this.vertexSrc=i,this.uniforms=s}});t.exports=i},99584:t=>{t.exports=function(t,e){var i;if(e)"string"==typeof e?i=document.getElementById(e):"object"==typeof e&&1===e.nodeType&&(i=e);else if(t.parentElement||null===e)return t;return(i=i||document.body).appendChild(t),t}},85178:(t,e,i)=>{var s=i(99584);t.exports=function(t){var e,i=t.config;i.parent&&i.domCreateContainer&&((e=document.createElement("div")).style.cssText=["display: block;","width: "+t.scale.width+"px;","height: "+t.scale.height+"px;","padding: 0; margin: 0;","position: absolute;","overflow: hidden;","pointer-events: "+i.domPointerEvents+";","transform: scale(1);","transform-origin: left top;"].join(" "),t.domContainer=e,s(e,i.parent))}},21546:(t,e,i)=>{var s=i(36580);t.exports=function(t){var e;"complete"!==document.readyState&&"interactive"!==document.readyState?(e=function(){document.removeEventListener("deviceready",e,!0),document.removeEventListener("DOMContentLoaded",e,!0),window.removeEventListener("load",e,!0),t()},document.body?s.cordova?document.addEventListener("deviceready",e,!1):(document.addEventListener("DOMContentLoaded",e,!0),window.addEventListener("load",e,!0)):window.setTimeout(e,20)):t()}},74181:t=>{t.exports=function(t){var e,i;return t?(t=Math.abs(window.orientation),e={w:0,h:0},(i=document.createElement("div")).setAttribute("style","position: fixed; height: 100vh; width: 0; top: 0"),document.documentElement.appendChild(i),e.w=90===t?i.offsetHeight:window.innerWidth,e.h=90===t?window.innerWidth:i.offsetHeight,document.documentElement.removeChild(i),i=null,90!==Math.abs(window.orientation)?e.h:e.w):window.innerHeight}},9229:(t,e,i)=>{var s=i(55301);t.exports=function(t,e){var i=window.screen,i=!!i&&(i.orientation||i.mozOrientation||i.msOrientation);return i&&"string"==typeof i.type?i.type:"string"==typeof i?i:"number"==typeof window.orientation?0===window.orientation||180===window.orientation?s.ORIENTATION.PORTRAIT:s.ORIENTATION.LANDSCAPE:window.matchMedia?window.matchMedia("(orientation: portrait)").matches?s.ORIENTATION.PORTRAIT:window.matchMedia("(orientation: landscape)").matches?s.ORIENTATION.LANDSCAPE:void 0:t{t.exports=function(t){var e;return""!==t&&("string"==typeof t?e=document.getElementById(t):t&&1===t.nodeType&&(e=t)),e=e||document.body}},89200:t=>{t.exports=function(t){var e="";try{window.DOMParser?e=(new DOMParser).parseFromString(t,"text/xml"):(e=new ActiveXObject("Microsoft.XMLDOM")).loadXML(t)}catch(t){e=null}return e&&e.documentElement&&!e.getElementsByTagName("parsererror").length?e:null}},55638:t=>{t.exports=function(t){t.parentNode&&t.parentNode.removeChild(t)}},27385:(t,e,i)=>{var s=i(56694),n=i(72283),i=new s({initialize:function(){this.isRunning=!1,this.callback=n,this.isSetTimeOut=!1,this.timeOutID=null,this.delay=0;var i=this;this.step=function t(e){i.callback(e),i.isRunning&&(i.timeOutID=window.requestAnimationFrame(t))},this.stepTimeout=function t(){i.isRunning&&(i.timeOutID=window.setTimeout(t,i.delay)),i.callback(window.performance.now())}},start:function(t,e,i){this.isRunning||(this.callback=t,this.isSetTimeOut=e,this.delay=i,this.isRunning=!0,this.timeOutID=e?window.setTimeout(this.stepTimeout,0):window.requestAnimationFrame(this.step))},stop:function(){this.isRunning=!1,this.isSetTimeOut?clearTimeout(this.timeOutID):window.cancelAnimationFrame(this.timeOutID)},destroy:function(){this.stop(),this.callback=n}});t.exports=i},3590:(t,e,i)=>{i={AddToDOM:i(99584),DOMContentLoaded:i(21546),GetInnerHeight:i(74181),GetScreenOrientation:i(9229),GetTarget:i(2893),ParseXML:i(89200),RemoveFromDOM:i(55638),RequestAnimationFrame:i(27385)};t.exports=i},78491:(t,e,i)=>{var s=i(56694),n=i(6659),i=i(91963),s=new s({Extends:n,initialize:function(){n.call(this)},shutdown:function(){this.removeAllListeners()},destroy:function(){this.removeAllListeners()}});i.register("EventEmitter",s,"events"),t.exports=s},95146:(t,e,i)=>{t.exports={EventEmitter:i(78491)}},20170:(t,e,i)=>{var s=i(56694),n=i(47551),r=i(47406),i=new s({Extends:n,initialize:function(t,e){void 0===e&&(e=1),n.call(this,r.BARREL,t),this.amount=e}});t.exports=i},51182:(t,e,i)=>{var s=i(56694),a=i(47551),h=i(47406),i=new s({Extends:a,initialize:function(t,e,i,s,n,r,o){void 0===i&&(i=1),void 0===s&&(s=1),void 0===n&&(n=1),void 0===r&&(r=1),void 0===o&&(o=4),a.call(this,h.BLOOM,t),this.steps=o,this.offsetX=i,this.offsetY=s,this.blurStrength=n,this.strength=r,this.glcolor=[1,1,1],null!=e&&(this.color=e)},color:{get:function(){var t=this.glcolor;return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)},set:function(t){var e=this.glcolor;e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255}}});t.exports=i},51498:(t,e,i)=>{var s=i(56694),a=i(47551),h=i(47406),i=new s({Extends:a,initialize:function(t,e,i,s,n,r,o){void 0===e&&(e=0),void 0===i&&(i=2),void 0===s&&(s=2),void 0===n&&(n=1),void 0===o&&(o=4),a.call(this,h.BLUR,t),this.quality=0,this.x=i,this.y=s,this.steps=o,this.strength=n,this.glcolor=[1,1,1],null!=r&&(this.color=r)},color:{get:function(){var t=this.glcolor;return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)},set:function(t){var e=this.glcolor;e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255}}});t.exports=i},12042:(t,e,i)=>{var s=i(56694),h=i(47551),l=i(47406),i=new s({Extends:h,initialize:function(t,e,i,s,n,r,o,a){void 0===e&&(e=.5),void 0===i&&(i=1),void 0===s&&(s=.2),void 0===n&&(n=!1),void 0===r&&(r=1),void 0===o&&(o=1),void 0===a&&(a=1),h.call(this,l.BOKEH,t),this.radius=e,this.amount=i,this.contrast=s,this.isTiltShift=n,this.strength=a,this.blurX=r,this.blurY=o}});t.exports=i},69900:(t,e,i)=>{var s=i(56694),o=i(47551),a=i(47406),i=new s({Extends:o,initialize:function(t,e,i,s,n,r){void 0===e&&(e=8),void 0===n&&(n=1),void 0===r&&(r=.005),o.call(this,a.CIRCLE,t),this.scale=n,this.feather=r,this.thickness=e,this.glcolor=[1,.2,.7],this.glcolor2=[1,0,0,.4],null!=i&&(this.color=i),null!=s&&(this.backgroundColor=s)},color:{get:function(){var t=this.glcolor;return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)},set:function(t){var e=this.glcolor;e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255}},backgroundColor:{get:function(){var t=this.glcolor2;return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)},set:function(t){var e=this.glcolor2;e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255}}});t.exports=i},48991:(t,e,i)=>{var s=i(56694),n=i(65246),r=i(47406),i=new s({Extends:n,initialize:function(t){n.call(this),this.type=r.COLOR_MATRIX,this.gameObject=t,this.active=!0},destroy:function(){this.gameObject=null,this._matrix=null,this._data=null}});t.exports=i},47551:(t,e,i)=>{i=new(i(56694))({initialize:function(t,e){this.type=t,this.gameObject=e,this.active=!0},setActive:function(t){return this.active=t,this},destroy:function(){this.gameObject=null,this.active=!1}});t.exports=i},47909:(t,e,i)=>{var s=i(56694),n=i(47551),r=i(47406),i=new s({Extends:n,initialize:function(t,e,i,s){void 0===e&&(e="__WHITE"),void 0===i&&(i=.005),void 0===s&&(s=.005),n.call(this,r.DISPLACEMENT,t),this.x=i,this.y=s,this.glTexture,this.setTexture(e)},setTexture:function(t){t=this.gameObject.scene.sys.textures.getFrame(t);return t&&(this.glTexture=t.glTexture),this}});t.exports=i},18919:(t,e,i)=>{var s=i(56694),r=i(47551),o=i(47406),i=new s({Extends:r,initialize:function(t,e,i,s,n){void 0===i&&(i=4),void 0===s&&(s=0),void 0===n&&(n=!1),r.call(this,o.GLOW,t),this.outerStrength=i,this.innerStrength=s,this.knockout=n,this.glcolor=[1,1,1,1],void 0!==e&&(this.color=e)},color:{get:function(){var t=this.glcolor;return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)},set:function(t){var e=this.glcolor;e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255}}});t.exports=i},62494:(t,e,i)=>{var s=i(56694),l=i(47551),u=i(47406),i=new s({Extends:l,initialize:function(t,e,i,s,n,r,o,a,h){void 0===s&&(s=.2),void 0===n&&(n=0),void 0===r&&(r=0),void 0===o&&(o=0),void 0===a&&(a=1),void 0===h&&(h=0),l.call(this,u.GRADIENT,t),this.alpha=s,this.size=h,this.fromX=n,this.fromY=r,this.toX=o,this.toY=a,this.glcolor1=[255,0,0],this.glcolor2=[0,255,0],null!=e&&(this.color1=e),null!=i&&(this.color2=i)},color1:{get:function(){var t=this.glcolor1;return(t[0]<<16)+(t[1]<<8)+(0|t[2])},set:function(t){var e=this.glcolor1;e[0]=t>>16&255,e[1]=t>>8&255,e[2]=255&t}},color2:{get:function(){var t=this.glcolor2;return(t[0]<<16)+(t[1]<<8)+(0|t[2])},set:function(t){var e=this.glcolor2;e[0]=t>>16&255,e[1]=t>>8&255,e[2]=255&t}}});t.exports=i},68897:(t,e,i)=>{var s=i(56694),n=i(47551),r=i(47406),i=new s({Extends:n,initialize:function(t,e){void 0===e&&(e=1),n.call(this,r.PIXELATE,t),this.amount=e}});t.exports=i},58575:(t,e,i)=>{var s=i(56694),h=i(47551),l=i(47406),i=new s({Extends:h,initialize:function(t,e,i,s,n,r,o,a){void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=.1),void 0===n&&(n=1),void 0===o&&(o=6),void 0===a&&(a=1),h.call(this,l.SHADOW,t),this.x=e,this.y=i,this.decay=s,this.power=n,this.glcolor=[0,0,0,1],this.samples=o,this.intensity=a,void 0!==r&&(this.color=r)},color:{get:function(){var t=this.glcolor;return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)},set:function(t){var e=this.glcolor;e[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255}}});t.exports=i},33755:(t,e,i)=>{var s=i(56694),r=i(47551),o=i(47406),i=new s({Extends:r,initialize:function(t,e,i,s,n){void 0===e&&(e=.5),void 0===i&&(i=.5),void 0===s&&(s=3),void 0===n&&(n=!1),r.call(this,o.SHINE,t),this.speed=e,this.lineWidth=i,this.gradient=s,this.reveal=n}});t.exports=i},24949:(t,e,i)=>{var s=i(56694),r=i(47551),o=i(47406),i=new s({Extends:r,initialize:function(t,e,i,s,n){void 0===e&&(e=.5),void 0===i&&(i=.5),void 0===s&&(s=.5),void 0===n&&(n=.5),r.call(this,o.VIGNETTE,t),this.x=e,this.y=i,this.radius=s,this.strength=n}});t.exports=i},66241:(t,e,i)=>{var s=i(56694),r=i(47551),o=i(47406),i=new s({Extends:r,initialize:function(t,e,i,s,n){void 0===e&&(e=.1),void 0===i&&(i=0),void 0===s&&(s=0),void 0===n&&(n=!1),r.call(this,o.WIPE,t),this.progress=0,this.wipeWidth=e,this.direction=i,this.axis=s,this.reveal=n}});t.exports=i},47406:t=>{t.exports={GLOW:4,SHADOW:5,PIXELATE:6,VIGNETTE:7,SHINE:8,BLUR:9,GRADIENT:12,BLOOM:13,COLOR_MATRIX:14,CIRCLE:15,BARREL:16,DISPLACEMENT:17,WIPE:18,BOKEH:19}},96910:(t,e,i)=>{var s=i(98611),n=i(47406),s=s(!1,{Barrel:i(20170),Controller:i(47551),Bloom:i(51182),Blur:i(51498),Bokeh:i(12042),Circle:i(69900),ColorMatrix:i(48991),Displacement:i(47909),Glow:i(18919),Gradient:i(62494),Pixelate:i(68897),Shadow:i(58575),Shine:i(33755),Vignette:i(24949),Wipe:i(66241)},n);t.exports=s},88933:(t,e,i)=>{var r=i(95723),o=i(20494);t.exports=function(t,e,i){e.x=o(i,"x",0),e.y=o(i,"y",0),e.depth=o(i,"depth",0),e.flipX=o(i,"flipX",!1),e.flipY=o(i,"flipY",!1);var s,n=o(i,"scale",null),n=("number"==typeof n?e.setScale(n):null!==n&&(e.scaleX=o(n,"x",1),e.scaleY=o(n,"y",1)),o(i,"scrollFactor",null)),n=("number"==typeof n?e.setScrollFactor(n):null!==n&&(e.scrollFactorX=o(n,"x",1),e.scrollFactorY=o(n,"y",1)),e.rotation=o(i,"rotation",0),o(i,"angle",null)),n=(null!==n&&(e.angle=n),e.alpha=o(i,"alpha",1),o(i,"origin",null));return"number"==typeof n?e.setOrigin(n):null!==n&&(s=o(n,"x",.5),n=o(n,"y",.5),e.setOrigin(s,n)),e.blendMode=o(i,"blendMode",r.NORMAL),e.visible=o(i,"visible",!0),o(i,"add",!0)&&t.sys.displayList.add(e),e.preUpdate&&t.sys.updateList.add(e),e}},32291:(t,e,i)=>{var u=i(20494);t.exports=function(t,e){var i,s,n,r,o,a,h,l,e=u(e,"anims",null);return null!==e&&("string"==typeof e?t.anims.play(e):"object"==typeof e&&(i=t.anims,l=u(e,"key",void 0))&&(s=u(e,"startFrame",void 0),n=u(e,"delay",0),r=u(e,"repeat",0),o=u(e,"repeatDelay",0),a=u(e,"yoyo",!1),h=u(e,"play",!1),e=u(e,"delayedPlay",0),l={key:l,delay:n,repeat:r,repeatDelay:o,yoyo:a,startFrame:s},h?i.play(l):0{var s=i(56694),n=i(71207),r=i(91963),o=i(56631),a=i(7599),h=i(17922),i=new s({Extends:n,initialize:function(t){n.call(this,t),this.sortChildrenFlag=!1,this.scene=t,this.systems=t.sys,this.events=t.sys.events,this.addCallback=this.addChildCallback,this.removeCallback=this.removeChildCallback,this.events.once(a.BOOT,this.boot,this),this.events.on(a.START,this.start,this)},boot:function(){this.events.once(a.DESTROY,this.destroy,this)},addChildCallback:function(t){t.displayList&&t.displayList!==this&&t.removeFromDisplayList(),t.parentContainer&&t.parentContainer.remove(t),t.displayList||(this.queueDepthSort(),t.displayList=this,t.emit(o.ADDED_TO_SCENE,t,this.scene),this.events.emit(a.ADDED_TO_SCENE,t,this.scene))},removeChildCallback:function(t){this.queueDepthSort(),t.displayList=null,t.emit(o.REMOVED_FROM_SCENE,t,this.scene),this.events.emit(a.REMOVED_FROM_SCENE,t,this.scene)},start:function(){this.events.once(a.SHUTDOWN,this.shutdown,this)},queueDepthSort:function(){this.sortChildrenFlag=!0},depthSort:function(){this.sortChildrenFlag&&(h(this.list,this.sortByDepth),this.sortChildrenFlag=!1)},sortByDepth:function(t,e){return t._depth-e._depth},getChildren:function(){return this.list},shutdown:function(){for(var t=this.list;t.length;)t[0].destroy(!0);this.events.off(a.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.events.off(a.START,this.start,this),this.scene=null,this.systems=null,this.events=null}});r.register("DisplayList",i,"displayList"),t.exports=i},89980:(t,e,i)=>{var s=i(56694),n=i(48129),r=i(81078),o=i(6659),a=i(56631),h=i(7599),l=new s({Extends:o,initialize:function(t,e){o.call(this),this.scene=t,this.displayList=null,this.type=e,this.state=0,this.parentContainer=null,this.name="",this.active=!0,this.tabIndex=-1,this.data=null,this.renderFlags=15,this.cameraFilter=0,this.input=null,this.body=null,this.ignoreDestroy=!1,this.on(a.ADDED_TO_SCENE,this.addedToScene,this),this.on(a.REMOVED_FROM_SCENE,this.removedFromScene,this),t.sys.queueDepthSort()},setActive:function(t){return this.active=t,this},setName:function(t){return this.name=t,this},setState:function(t){return this.state=t,this},setDataEnabled:function(){return this.data||(this.data=new r(this)),this},setData:function(t,e){return this.data||(this.data=new r(this)),this.data.set(t,e),this},incData:function(t,e){return this.data||(this.data=new r(this)),this.data.inc(t,e),this},toggleData:function(t){return this.data||(this.data=new r(this)),this.data.toggle(t),this},getData:function(t){return this.data||(this.data=new r(this)),this.data.get(t)},setInteractive:function(t,e,i){return this.scene.sys.input.enable(this,t,e,i),this},disableInteractive:function(){return this.scene.sys.input.disable(this),this},removeInteractive:function(){return this.scene.sys.input.clear(this),this.input=void 0,this},addedToScene:function(){},removedFromScene:function(){},update:function(){},toJSON:function(){return n(this)},willRender:function(t){return!(this.displayList&&this.displayList.active&&!this.displayList.willRender(t)||l.RENDER_MASK!==this.renderFlags||0!==this.cameraFilter&&this.cameraFilter&t.id)},getIndexList:function(){for(var t=this,e=this.parentContainer,i=[];e&&(i.unshift(e.getIndex(t)),(t=e).parentContainer);)e=e.parentContainer;return this.displayList?i.unshift(this.displayList.getIndex(t)):i.unshift(this.scene.sys.displayList.getIndex(t)),i},addToDisplayList:function(t){return void 0===t&&(t=this.scene.sys.displayList),this.displayList&&this.displayList!==t&&this.removeFromDisplayList(),t.exists(this)||((this.displayList=t).add(this,!0),t.queueDepthSort(),this.emit(a.ADDED_TO_SCENE,this,this.scene),t.events.emit(h.ADDED_TO_SCENE,this,this.scene)),this},addToUpdateList:function(){return this.scene&&this.preUpdate&&this.scene.sys.updateList.add(this),this},removeFromDisplayList:function(){var t=this.displayList||this.scene.sys.displayList;return t&&t.exists(this)&&(t.remove(this,!0),t.queueDepthSort(),this.displayList=null,this.emit(a.REMOVED_FROM_SCENE,this,this.scene),t.events.emit(h.REMOVED_FROM_SCENE,this,this.scene)),this},removeFromUpdateList:function(){return this.scene&&this.preUpdate&&this.scene.sys.updateList.remove(this),this},destroy:function(t){this.scene&&!this.ignoreDestroy&&(void 0===t&&(t=!1),this.preDestroy&&this.preDestroy.call(this),this.emit(a.DESTROY,this,t),this.removeAllListeners(),this.postPipelines&&this.resetPostPipeline(!0),this.removeFromDisplayList(),this.removeFromUpdateList(),this.input&&(this.scene.sys.input.clear(this),this.input=void 0),this.data&&(this.data.destroy(),this.data=void 0),this.body&&(this.body.destroy(),this.body=void 0),this.preFX&&(this.preFX.destroy(),this.preFX=void 0),this.postFX&&(this.postFX.destroy(),this.postFX=void 0),this.active=!1,this.visible=!1,this.scene=void 0,this.parentContainer=void 0)}});l.RENDER_MASK=15,t.exports=l},99325:(t,e,i)=>{var s=i(56694),n=i(91963),r=i(7599),o=new s({initialize:function(t){this.scene=t,this.systems=t.sys,this.events=t.sys.events,this.displayList,this.updateList,this.events.once(r.BOOT,this.boot,this),this.events.on(r.START,this.start,this)},boot:function(){this.displayList=this.systems.displayList,this.updateList=this.systems.updateList,this.events.once(r.DESTROY,this.destroy,this)},start:function(){this.events.once(r.SHUTDOWN,this.shutdown,this)},shutdown:function(){this.events.off(r.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.events.off(r.START,this.start,this),this.scene=null,this.systems=null,this.events=null,this.displayList=null,this.updateList=null}});o.register=function(t,e){o.prototype.hasOwnProperty(t)||(o.prototype[t]=e)},o.remove=function(t){o.prototype.hasOwnProperty(t)&&delete o.prototype[t]},n.register("GameObjectCreator",o,"make"),t.exports=o},61286:(t,e,i)=>{var s=i(56694),n=i(91963),r=i(7599),o=new s({initialize:function(t){this.scene=t,this.systems=t.sys,this.events=t.sys.events,this.displayList,this.updateList,this.events.once(r.BOOT,this.boot,this),this.events.on(r.START,this.start,this)},boot:function(){this.displayList=this.systems.displayList,this.updateList=this.systems.updateList,this.events.once(r.DESTROY,this.destroy,this)},start:function(){this.events.once(r.SHUTDOWN,this.shutdown,this)},existing:function(t){return(t.renderCanvas||t.renderWebGL)&&this.displayList.add(t),t.preUpdate&&this.updateList.add(t),t},shutdown:function(){this.events.off(r.SHUTDOWN,this.shutdown,this)},destroy:function(){this.shutdown(),this.events.off(r.START,this.start,this),this.scene=null,this.systems=null,this.events=null,this.displayList=null,this.updateList=null}});o.register=function(t,e){o.prototype.hasOwnProperty(t)||(o.prototype[t]=e)},o.remove=function(t){o.prototype.hasOwnProperty(t)&&delete o.prototype[t]},n.register("GameObjectFactory",o,"add"),t.exports=o},73329:(t,e,i)=>{var i=i(69360),o=new i,a=new i,h=new i,l={camera:o,sprite:a,calc:h};t.exports=function(t,e,i){var s=o,n=a,r=h;return n.applyITRS(t.x,t.y,t.rotation,t.scaleX,t.scaleY),s.copyFrom(e.matrix),i?(s.multiplyWithOffset(i,-e.scrollX*t.scrollFactorX,-e.scrollY*t.scrollFactorY),n.e=t.x,n.f=t.y):(n.e-=e.scrollX*t.scrollFactorX,n.f-=e.scrollY*t.scrollFactorY),s.multiply(n,r),l}},92034:(t,e,i)=>{var s=i(56694),n=i(74623),r=i(91963),o=i(7599),i=new s({Extends:n,initialize:function(t){n.call(this),this.checkQueue=!0,this.scene=t,this.systems=t.sys,t.sys.events.once(o.BOOT,this.boot,this),t.sys.events.on(o.START,this.start,this)},boot:function(){this.systems.events.once(o.DESTROY,this.destroy,this)},start:function(){var t=this.systems.events;t.on(o.PRE_UPDATE,this.update,this),t.on(o.UPDATE,this.sceneUpdate,this),t.once(o.SHUTDOWN,this.shutdown,this)},sceneUpdate:function(t,e){for(var i=this._active,s=i.length,n=0;n{t.exports=function(t,e,i,s,n,r,o,a,h,l,u,c,d,p,f){var n=i.x-e.displayOriginX+n,r=i.y-e.displayOriginY+r,g=n+i.w,i=r+i.h,y=o.getXRound(n,r,a),v=o.getYRound(n,r,a),m=o.getXRound(n,i,a),n=o.getYRound(n,i,a),x=o.getXRound(g,i,a),i=o.getYRound(g,i,a),w=o.getXRound(g,r,a),o=o.getYRound(g,r,a);t.batchQuad(e,y,v,m,n,x,i,w,o,s.u0,s.v0,s.u1,s.v1,h,l,u,c,d,p,f)}},82173:t=>{t.exports=function(t,I,B,e){if(void 0===B&&(B=!1),void 0===e)return{local:{x:0,y:0,width:0,height:0},global:{x:0,y:0,width:0,height:0},lines:{shortest:0,longest:0,lengths:null,height:0},wrappedText:"",words:[],characters:[],scaleX:0,scaleY:0};var N,X,U,i=t.text,z=i.length,Y=t.maxWidth,V=t.wordWrapCharCode,s=Number.MAX_VALUE,n=Number.MAX_VALUE,r=0,o=0,G=t.fontData.chars,a=t.fontData.lineHeight,W=t.letterSpacing,H=t.lineSpacing,h=0,l=0,u=0,c=null,j=t._align,d=0,p=0,f=t.fontSize/t.fontData.size,g=f*t.scaleX,y=f*t.scaleY,v=null,m=0,x=[],w=Number.MAX_VALUE,T=0,K=0,b=0,S=[],q=[],P=null;if(0{var l=i(31476);t.exports=function(t,e,i,s,n,r,o){var a=t.sys.textures.get(i),h=a.get(s),n=t.sys.cache.xml.get(n);return!(!h||!n||(n=l(n,h,r,o,a),t.sys.cache.bitmapFont.add(e,{data:n,texture:i,frame:s,fromAtlas:!0}),0))}},39860:(t,e,i)=>{var S=i(10850);t.exports=function(t,e){var i=e.width,s=e.height,n=Math.floor(i/2),r=Math.floor(s/2),o=S(e,"chars","");if(""!==o){var a=S(e,"image",""),t=t.sys.textures.getFrame(a),h=t.cutX,l=t.cutY,u=t.source.width,c=t.source.height,d=S(e,"offset.x",0),t=S(e,"offset.y",0),p=S(e,"spacing.x",0),f=S(e,"spacing.y",0),g=S(e,"lineSpacing",0),y=S(e,"charsPerRow",null);null===y&&(y=u/i)>o.length&&(y=o.length);for(var v=d,m=t,x={retroFont:!0,font:a,size:i,lineHeight:s+g,chars:{}},w=0,T=0;T{function L(t,e){return parseInt(t.getAttribute(e),10)}t.exports=function(t,e,i,s,n){void 0===i&&(i=0),void 0===s&&(s=0);var r,o,a=e.cutX,h=e.cutY,l=e.source.width,u=e.source.height,c=e.sourceIndex,d={},p=t.getElementsByTagName("info")[0],f=t.getElementsByTagName("common")[0],g=(d.font=p.getAttribute("face"),d.size=L(p,"size"),d.lineHeight=L(f,"lineHeight")+s,d.chars={},t.getElementsByTagName("char")),y=void 0!==e&&e.trimmed;y&&(r=e.height,o=e.width);for(var v=0;v{var s=i(66863),i=i(98611)(!1,{Parse:i(39860)},s);t.exports=i},66863:t=>{t.exports={TEXT_SET1:" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~",TEXT_SET2:" !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET3:"ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789 ",TEXT_SET4:"ABCDEFGHIJKLMNOPQRSTUVWXYZ 0123456789",TEXT_SET5:"ABCDEFGHIJKLMNOPQRSTUVWXYZ.,/() '!?-*:0123456789",TEXT_SET6:"ABCDEFGHIJKLMNOPQRSTUVWXYZ!?:;0123456789\"(),-.' ",TEXT_SET7:"AGMSY+:4BHNTZ!;5CIOU.?06DJPV,(17EKQW\")28FLRX-'39",TEXT_SET8:"0123456789 .ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET9:"ABCDEFGHIJKLMNOPQRSTUVWXYZ()-0123456789.:,'\"?!",TEXT_SET10:"ABCDEFGHIJKLMNOPQRSTUVWXYZ",TEXT_SET11:"ABCDEFGHIJKLMNOPQRSTUVWXYZ.,\"-+!?()':;0123456789"}},13468:(t,e,i)=>{var a=i(44616),s=i(56694),i=i(88899),s=new s({Extends:a,Mixins:[i],initialize:function(t,e,i,s,n,r,o){a.call(this,t,e,i,s,n,r,o),this.type="DynamicBitmapText",this.scrollX=0,this.scrollY=0,this.cropWidth=0,this.cropHeight=0,this.displayCallback,this.callbackData={parent:this,color:0,tint:{topLeft:0,topRight:0,bottomLeft:0,bottomRight:0},index:0,charCode:0,x:0,y:0,scale:0,rotation:0,data:0}},setSize:function(t,e){return this.cropWidth=t,this.cropHeight=e,this},setDisplayCallback:function(t){return this.displayCallback=t,this},setScrollX:function(t){return this.scrollX=t,this},setScrollY:function(t){return this.scrollY=t,this}});t.exports=s},93438:(t,e,i)=>{var N=i(49584);t.exports=function(t,e,i,s){var n=e._text,r=n.length,o=t.currentContext;if(0!==r&&N(t,o,e,i,s)){i.addToRenderList(e);var a,h,t=e.fromAtlas?e.frame:e.texture.frames.__BASE,l=e.displayCallback,u=e.callbackData,c=e.fontData.chars,d=e.fontData.lineHeight,p=e._letterSpacing,f=0,g=0,y=0,v=0,m=0,x=0,w=0,T=0,b=null,S=0,P=e.frame.source.image,_=t.cutX,E=t.cutY,A=0,C=0,I=e._fontSize/e.fontData.size,M=e._align,O=0,R=0,D=(e.getTextBounds(!1),e._bounds.lines),B=(1===M?R=(D.longest-D.lengths[0])/2:2===M&&(R=D.longest-D.lengths[0]),o.translate(-e.displayOriginX,-e.displayOriginY),i.roundPixels);0{var r=i(13468),o=i(88933),s=i(99325),a=i(20494);s.register("dynamicBitmapText",function(t,e){var i=a(t=void 0===t?{}:t,"font",""),s=a(t,"text",""),n=a(t,"size",!1),i=new r(this.scene,0,0,i,s,n);return void 0!==e&&(t.add=e),o(this.scene,i,t),i})},94145:(t,e,i)=>{var r=i(13468);i(61286).register("dynamicBitmapText",function(t,e,i,s,n){return this.displayList.add(new r(this.scene,t,e,i,s,n))})},88899:(t,e,i)=>{var s;i(72283),s=i(16873),i=i(93438),t.exports={renderWebGL:s,renderCanvas:i}},16873:(t,e,i)=>{var Q=i(73329),s=i(69360),$=i(75512),tt=new s;t.exports=function(t,e,i,s){var n=e.text,r=n.length;if(0!==r){i.addToRenderList(e);var o=t.pipelines.set(e.pipeline,e),s=Q(e,i,s),a=(t.pipelines.preBatch(e),s.sprite),h=s.calc,I=tt,s=0{var s=i(56694),p=i(82897),n=i(64937),a=i(89980),h=i(82173),r=i(68298),o=i(31476),l=i(74118),i=i(84557),u=new s({Extends:a,Mixins:[n.Alpha,n.BlendMode,n.Depth,n.GetBounds,n.Mask,n.Origin,n.Pipeline,n.PostPipeline,n.ScrollFactor,n.Texture,n.Tint,n.Transform,n.Visible,i],initialize:function(t,e,i,s,n,r,o){void 0===n&&(n=""),void 0===o&&(o=0),a.call(this,t,"BitmapText"),this.font=s;t=this.scene.sys.cache.bitmapFont.get(s);this.fontData=t.data,this._text="",this._fontSize=r||this.fontData.size,this._letterSpacing=0,this._lineSpacing=0,this._align=o,this._bounds=h(),this._dirty=!0,this._maxWidth=0,this.wordWrapCharCode=32,this.charColors=[],this.dropShadowX=0,this.dropShadowY=0,this.dropShadowColor=0,this.dropShadowAlpha=.5,this.fromAtlas=t.fromAtlas,this.setTexture(t.texture,t.frame),this.setPosition(e,i),this.setOrigin(0,0),this.initPipeline(),this.initPostPipeline(),this.setText(n)},setLeftAlign:function(){return this._align=u.ALIGN_LEFT,this._dirty=!0,this},setCenterAlign:function(){return this._align=u.ALIGN_CENTER,this._dirty=!0,this},setRightAlign:function(){return this._align=u.ALIGN_RIGHT,this._dirty=!0,this},setFontSize:function(t){return this._fontSize=t,this._dirty=!0,this},setLetterSpacing:function(t){return this._letterSpacing=t=void 0===t?0:t,this._dirty=!0,this},setLineSpacing:function(t){return this.lineSpacing=t=void 0===t?0:t,this},setText:function(t){return t||0===t||(t=""),(t=Array.isArray(t)?t.join("\n"):t)!==this.text&&(this._text=t.toString(),this._dirty=!0,this.updateDisplayOrigin()),this},setDropShadow:function(t,e,i,s){return void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=.5),this.dropShadowX=t=void 0===t?0:t,this.dropShadowY=e,this.dropShadowColor=i,this.dropShadowAlpha=s,this},setCharacterTint:function(t,e,i,s,n,r,o){void 0===i&&(i=!1),void 0===s&&(s=-1),void 0===n&&(o=r=n=s);var a=this.text.length;-1===(e=void 0===e?1:e)&&(e=a),t=p(t=(t=void 0===t?0:t)<0?a+t:t,0,a-1);for(var h=p(t+e,t,a),l=this.charColors,u=t;u{var k=i(49584);t.exports=function(t,e,i,s){var n=e._text,r=n.length,o=t.currentContext;if(0!==r&&k(t,o,e,i,s)){i.addToRenderList(e);var a,h,t=e.fromAtlas?e.frame:e.texture.frames.__BASE,l=e.fontData.chars,u=e.fontData.lineHeight,c=e._letterSpacing,d=e._lineSpacing,p=0,f=0,g=0,y=0,v=0,m=0,x=0,w=0,T=null,b=0,S=t.source.image,P=t.cutX,_=t.cutY,E=e._fontSize/e.fontData.size,A=e._align,C=0,M=0,s=e.getTextBounds(!1),O=(0{var o=i(44616),a=i(88933),s=i(99325),h=i(20494),l=i(10850);s.register("bitmapText",function(t,e){var i=l(t=void 0===t?{}:t,"font",""),s=h(t,"text",""),n=h(t,"size",!1),r=l(t,"align",0),i=new o(this.scene,0,0,i,s,n,r);return void 0!==e&&(t.add=e),a(this.scene,i,t),i})},21797:(t,e,i)=>{var o=i(44616);i(61286).register("bitmapText",function(t,e,i,s,n,r){return this.displayList.add(new o(this.scene,t,e,i,s,n,r))})},84557:(t,e,i)=>{var s;i(72283),s=i(26372),i=i(97545),t.exports={renderWebGL:s,renderCanvas:i}},26372:(t,e,i)=>{var D=i(8810),L=i(73329),k=i(75512);t.exports=function(t,e,i,s){if(0!==e._text.length){i.addToRenderList(e);var n=t.pipelines.set(e.pipeline,e),r=L(e,i,s).calc;t.pipelines.preBatch(e);var o,a=i.roundPixels,h=i.alpha,l=e.charColors,u=e.tintFill,c=k.getTintAppendFloatAlpha,d=c(e.tintTopLeft,h*e._alphaTL),p=c(e.tintTopRight,h*e._alphaTR),f=c(e.tintBottomLeft,h*e._alphaBL),g=c(e.tintBottomRight,h*e._alphaBR),y=e.frame.glTexture,v=n.setGameObject(e),m=e.getTextBounds(!1).characters,x=e.dropShadowX,w=e.dropShadowY;if(0!==x||0!==w)for(var s=e.dropShadowColor,i=e.dropShadowAlpha,T=c(s,h*i*e._alphaTL),b=c(s,h*i*e._alphaTR),S=c(s,h*i*e._alphaBL),P=c(s,h*i*e._alphaBR),_=0;_{var s=i(92246),r=i(41664),n=i(56694),o=i(64937),a=i(82047),h=i(89980),l=i(71207),i=new n({Extends:h,Mixins:[o.Alpha,o.BlendMode,o.Depth,o.Mask,o.Pipeline,o.PostPipeline,o.ScrollFactor,o.Size,o.Texture,o.Transform,o.Visible,s],initialize:function(t,e,i,s,n){h.call(this,t,"Blitter"),this.setTexture(s,n),this.setPosition(e,i),this.initPipeline(),this.initPostPipeline(),this.children=new l,this.renderList=[],this.dirty=!1},create:function(t,e,i,s,n){void 0===s&&(s=!0),void 0===n&&(n=this.children.length),void 0===i?i=this.frame:i instanceof a||(i=this.texture.get(i));t=new r(this,t,e,i,s);return this.children.addAt(t,n,!1),this.dirty=!0,t},createFromCallback:function(t,e,i,s){for(var n=this.createMultiple(e,i,s),r=0;r{t.exports=function(t,e,i,s){var n=e.getRenderList();if(0!==n.length){var r=t.currentContext,o=i.alpha*e.alpha;if(0!=o){i.addToRenderList(e),r.globalCompositeOperation=t.blendModes[e.blendMode],r.imageSmoothingEnabled=!e.frame.source.scaleMode;var a=e.x-i.scrollX*e.scrollFactorX,h=e.y-i.scrollY*e.scrollFactorY;r.save(),s&&s.copyToContext(r);for(var l=i.roundPixels,u=0;u{var n=i(52816),r=i(88933),s=i(99325),o=i(20494);s.register("blitter",function(t,e){var i=o(t=void 0===t?{}:t,"key",null),s=o(t,"frame",null),i=new n(this.scene,0,0,i,s);return void 0!==e&&(t.add=e),r(this.scene,i,t),i})},38906:(t,e,i)=>{var n=i(52816);i(61286).register("blitter",function(t,e,i,s){return this.displayList.add(new n(this.scene,t,e,i,s))})},92246:(t,e,i)=>{var s;i(72283),s=i(89165),i=i(33177),t.exports={renderWebGL:s,renderCanvas:i}},89165:(t,e,i)=>{var s=i(69360),S=i(75512),P=new s;t.exports=function(t,e,i,s){var n=e.getRenderList(),r=i.alpha*e.alpha;if(0!==n.length&&0!=r){i.addToRenderList(e);var o=t.pipelines.set(this.pipeline,e),a=i.scrollX*e.scrollFactorX,h=i.scrollY*e.scrollFactorY,l=P.copyFrom(i.matrix),u=(s&&(l.multiplyWithOffset(s,-a,-h),h=a=0),e.x-a),c=e.y-h,d=-1,p=i.roundPixels;t.pipelines.preBatch(e);for(var f=0;f{var s=i(56694),n=i(82047),i=new s({initialize:function(t,e,i,s,n){this.parent=t,this.x=e,this.y=i,this.frame=s,this.data={},this.tint=16777215,this._visible=n,this._alpha=1,this.flipX=!1,this.flipY=!1,this.hasTransformComponent=!0},setFrame:function(t){return void 0===t?this.frame=this.parent.frame:t instanceof n&&t.texture===this.parent.texture?this.frame=t:this.frame=this.parent.texture.get(t),this},resetFlip:function(){return this.flipX=!1,this.flipY=!1,this},reset:function(t,e,i){return this.x=t,this.y=e,this.flipX=!1,this.flipY=!1,this._alpha=1,this._visible=!0,this.parent.dirty=!0,i&&this.setFrame(i),this},setPosition:function(t,e){return this.x=t,this.y=e,this},setFlipX:function(t){return this.flipX=t,this},setFlipY:function(t){return this.flipY=t,this},setFlip:function(t,e){return this.flipX=t,this.flipY=e,this},setVisible:function(t){return this.visible=t,this},setAlpha:function(t){return this.alpha=t,this},setTint:function(t){return this.tint=t,this},destroy:function(){this.parent.dirty=!0,this.parent.children.remove(this),this.parent=void 0,this.frame=void 0,this.data=void 0},visible:{get:function(){return this._visible},set:function(t){this.parent.dirty|=this._visible!==t,this._visible=t}},alpha:{get:function(){return this._alpha},set:function(t){this.parent.dirty|=0{var n=i(82897);t.exports={_alpha:1,_alphaTL:1,_alphaTR:1,_alphaBL:1,_alphaBR:1,clearAlpha:function(){return this.setAlpha(1)},setAlpha:function(t,e,i,s){return void 0===t&&(t=1),void 0===e?this.alpha=t:(this._alphaTL=n(t,0,1),this._alphaTR=n(e,0,1),this._alphaBL=n(i,0,1),this._alphaBR=n(s,0,1)),this},alpha:{get:function(){return this._alpha},set:function(t){t=n(t,0,1);this._alpha=t,this._alphaTL=t,this._alphaTR=t,this._alphaBL=t,0===(this._alphaBR=t)?this.renderFlags&=-3:this.renderFlags|=2}},alphaTopLeft:{get:function(){return this._alphaTL},set:function(t){t=n(t,0,1);0!==(this._alphaTL=t)&&(this.renderFlags|=2)}},alphaTopRight:{get:function(){return this._alphaTR},set:function(t){t=n(t,0,1);0!==(this._alphaTR=t)&&(this.renderFlags|=2)}},alphaBottomLeft:{get:function(){return this._alphaBL},set:function(t){t=n(t,0,1);0!==(this._alphaBL=t)&&(this.renderFlags|=2)}},alphaBottomRight:{get:function(){return this._alphaBR},set:function(t){t=n(t,0,1);0!==(this._alphaBR=t)&&(this.renderFlags|=2)}}}},15720:(t,e,i)=>{var s=i(82897);t.exports={_alpha:1,clearAlpha:function(){return this.setAlpha(1)},setAlpha:function(t){return this.alpha=t=void 0===t?1:t,this},alpha:{get:function(){return this._alpha},set:function(t){t=s(t,0,1);0===(this._alpha=t)?this.renderFlags&=-3:this.renderFlags|=2}}}},69732:(t,e,i)=>{var s=i(95723),i={_blendMode:s.NORMAL,blendMode:{get:function(){return this._blendMode},set:function(t){"string"==typeof t&&(t=s[t]),-1<=(t|=0)&&(this._blendMode=t)}},setBlendMode:function(t){return this.blendMode=t,this}};t.exports=i},28284:t=>{t.exports={width:0,height:0,displayWidth:{get:function(){return this.scaleX*this.width},set:function(t){this.scaleX=t/this.width}},displayHeight:{get:function(){return this.scaleY*this.height},set:function(t){this.scaleY=t/this.height}},setSize:function(t,e){return this.width=t,this.height=e,this},setDisplaySize:function(t,e){return this.displayWidth=t,this.displayHeight=e,this}}},85293:t=>{t.exports={texture:null,frame:null,isCropped:!1,setCrop:function(t,e,i,s){return void 0===t?this.isCropped=!1:this.frame&&("number"==typeof t?this.frame.setCropUVs(this._crop,t,e,i,s,this.flipX,this.flipY):this.frame.setCropUVs(this._crop,t.x,t.y,t.width,t.height,this.flipX,this.flipY),this.isCropped=!0),this},resetCropObject:function(){return{u0:0,v0:0,u1:0,v1:0,width:0,height:0,x:0,y:0,flipX:!1,flipY:!1,cx:0,cy:0,cw:0,ch:0}}}},14975:t=>{t.exports={_depth:0,depth:{get:function(){return this._depth},set:function(t){this.displayList&&this.displayList.queueDepthSort(),this._depth=t}},setDepth:function(t){return this.depth=t=void 0===t?0:t,this}}},88677:(t,e,i)=>{var s=i(56694),h=i(96910),r=i(72677),i=new s({initialize:function(t,e){this.gameObject=t,this.isPost=e,this.enabled=!1,this.list=[],this.padding=0},setPadding:function(t){return this.padding=t=void 0===t?0:t,this.gameObject},onFXCopy:function(){},onFX:function(){},enable:function(t){var e;this.isPost||((e=this.gameObject.scene.sys.renderer)&&e.pipelines?(this.gameObject.pipeline=e.pipelines.FX_PIPELINE,void 0!==t&&(this.padding=t),this.enabled=!0):this.enabled=!1)},clear:function(){if(this.isPost)this.gameObject.resetPostPipeline(!0);else{for(var t=this.list,e=0;e{t.exports={flipX:!1,flipY:!1,toggleFlipX:function(){return this.flipX=!this.flipX,this},toggleFlipY:function(){return this.flipY=!this.flipY,this},setFlipX:function(t){return this.flipX=t,this},setFlipY:function(t){return this.flipY=t,this},setFlip:function(t,e){return this.flipX=t,this.flipY=e,this},resetFlip:function(){return this.flipX=!1,this.flipY=!1,this}}},80693:(t,e,i)=>{var l=i(74118),s=i(2386),n=i(93736);t.exports={prepareBoundsOutput:function(t,e){return void 0===e&&(e=!1),0!==this.rotation&&s(t,this.x,this.y,this.rotation),e&&this.parentContainer&&this.parentContainer.getBoundsTransformMatrix().transformPoint(t.x,t.y,t),t},getCenter:function(t,e){return(t=void 0===t?new n:t).x=this.x-this.displayWidth*this.originX+this.displayWidth/2,t.y=this.y-this.displayHeight*this.originY+this.displayHeight/2,this.prepareBoundsOutput(t,e)},getTopLeft:function(t,e){return(t=t||new n).x=this.x-this.displayWidth*this.originX,t.y=this.y-this.displayHeight*this.originY,this.prepareBoundsOutput(t,e)},getTopCenter:function(t,e){return(t=t||new n).x=this.x-this.displayWidth*this.originX+this.displayWidth/2,t.y=this.y-this.displayHeight*this.originY,this.prepareBoundsOutput(t,e)},getTopRight:function(t,e){return(t=t||new n).x=this.x-this.displayWidth*this.originX+this.displayWidth,t.y=this.y-this.displayHeight*this.originY,this.prepareBoundsOutput(t,e)},getLeftCenter:function(t,e){return(t=t||new n).x=this.x-this.displayWidth*this.originX,t.y=this.y-this.displayHeight*this.originY+this.displayHeight/2,this.prepareBoundsOutput(t,e)},getRightCenter:function(t,e){return(t=t||new n).x=this.x-this.displayWidth*this.originX+this.displayWidth,t.y=this.y-this.displayHeight*this.originY+this.displayHeight/2,this.prepareBoundsOutput(t,e)},getBottomLeft:function(t,e){return(t=t||new n).x=this.x-this.displayWidth*this.originX,t.y=this.y-this.displayHeight*this.originY+this.displayHeight,this.prepareBoundsOutput(t,e)},getBottomCenter:function(t,e){return(t=t||new n).x=this.x-this.displayWidth*this.originX+this.displayWidth/2,t.y=this.y-this.displayHeight*this.originY+this.displayHeight,this.prepareBoundsOutput(t,e)},getBottomRight:function(t,e){return(t=t||new n).x=this.x-this.displayWidth*this.originX+this.displayWidth,t.y=this.y-this.displayHeight*this.originY+this.displayHeight,this.prepareBoundsOutput(t,e)},getBounds:function(t){var e,i,s,n,r,o,a,h;return void 0===t&&(t=new l),a=(h=(this.parentContainer?(h=this.parentContainer.getBoundsTransformMatrix(),this.getTopLeft(t),h.transformPoint(t.x,t.y,t),e=t.x,i=t.y,this.getTopRight(t),h.transformPoint(t.x,t.y,t),s=t.x,n=t.y,this.getBottomLeft(t),h.transformPoint(t.x,t.y,t),r=t.x,o=t.y,this.getBottomRight(t),h.transformPoint(t.x,t.y,t)):(this.getTopLeft(t),e=t.x,i=t.y,this.getTopRight(t),s=t.x,n=t.y,this.getBottomLeft(t),r=t.x,o=t.y,this.getBottomRight(t)),t.x),t.y),t.x=Math.min(e,s,r,h),t.y=Math.min(i,n,o,a),t.width=Math.max(e,s,r,h)-t.x,t.height=Math.max(i,n,o,a)-t.y,t}}},39171:(t,e,i)=>{var r=i(76756),s=i(63037);t.exports={mask:null,setMask:function(t){return this.mask=t,this},clearMask:function(t){return(t=void 0===t?!1:t)&&this.mask&&this.mask.destroy(),this.mask=null,this},createBitmapMask:function(t,e,i,s,n){return void 0===t&&(this.texture||this.shader||this.geom)&&(t=this),new r(this.scene,t,e,i,s,n)},createGeometryMask:function(t){return void 0!==t||"Graphics"!==this.type&&!this.geom||(t=this),new s(this.scene,t)}}},28072:t=>{t.exports={_originComponent:!0,originX:.5,originY:.5,_displayOriginX:0,_displayOriginY:0,displayOriginX:{get:function(){return this._displayOriginX},set:function(t){this._displayOriginX=t,this.originX=t/this.width}},displayOriginY:{get:function(){return this._displayOriginY},set:function(t){this._displayOriginY=t,this.originY=t/this.height}},setOrigin:function(t,e){return void 0===t&&(t=.5),void 0===e&&(e=t),this.originX=t,this.originY=e,this.updateDisplayOrigin()},setOriginFromFrame:function(){return this.frame&&this.frame.customPivot?(this.originX=this.frame.pivotX,this.originY=this.frame.pivotY,this.updateDisplayOrigin()):this.setOrigin()},setDisplayOrigin:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.displayOriginX=t,this.displayOriginY=e,this},updateDisplayOrigin:function(){return this._displayOriginX=this.originX*this.width,this._displayOriginY=this.originY*this.height,this}}},54211:(t,e,i)=>{var n=i(75606),r=i(63130),o=i(10850),a=i(55303),h=i(93736),i={path:null,rotateToPath:!1,pathRotationOffset:0,pathOffset:null,pathVector:null,pathDelta:null,pathTween:null,pathConfig:null,_prevDirection:a.PLAYING_FORWARD,setPath:function(t,e){void 0===e&&(e=this.pathConfig);var i=this.pathTween;return i&&i.isPlaying()&&i.stop(),this.path=t,e&&this.startFollow(e),this},setRotateToPath:function(t,e){return void 0===e&&(e=0),this.rotateToPath=t,this.pathRotationOffset=e,this},isFollowing:function(){var t=this.pathTween;return t&&t.isPlaying()},startFollow:function(t,e){void 0===t&&(t={}),void 0===e&&(e=0);var i=this.pathTween,i=(i&&i.isPlaying()&&i.stop(),(t="number"==typeof t?{duration:t}:t).from=o(t,"from",0),t.to=o(t,"to",1),r(t,"positionOnPath",!1)),s=(this.rotateToPath=r(t,"rotateToPath",!1),this.pathRotationOffset=o(t,"rotationOffset",0),o(t,"startAt",e));return s&&(t.onStart=function(t){var t=t.data[0],e=(t.progress=s,t.elapsed=t.duration*s,t.ease(t.progress));t.current=t.start+(t.end-t.start)*e,t.setTargetValue()}),this.pathOffset||(this.pathOffset=new h(this.x,this.y)),this.pathVector||(this.pathVector=new h),this.pathDelta||(this.pathDelta=new h),this.pathDelta.reset(),t.persist=!0,this.pathTween=this.scene.sys.tweens.addCounter(t),this.path.getStartPoint(this.pathOffset),i&&(this.x=this.pathOffset.x,this.y=this.pathOffset.y),this.pathOffset.x=this.x-this.pathOffset.x,this.pathOffset.y=this.y-this.pathOffset.y,this._prevDirection=a.PLAYING_FORWARD,this.rotateToPath&&(e=this.path.getPoint(.1),this.rotation=Math.atan2(e.y-this.y,e.x-this.x)+n(this.pathRotationOffset)),this.pathConfig=t,this},pauseFollow:function(){var t=this.pathTween;return t&&t.isPlaying()&&t.pause(),this},resumeFollow:function(){var t=this.pathTween;return t&&t.isPaused()&&t.resume(),this},stopFollow:function(){var t=this.pathTween;return t&&t.isPlaying()&&t.stop(),this},pathUpdate:function(){var t,e,i,s=this.pathTween;s&&(t=s.data[0],e=this.pathDelta,i=this.pathVector,e.copy(i).negate(),t.state===a.COMPLETE?(this.path.getPoint(t.end,i),e.add(i),i.add(this.pathOffset),this.setPosition(i.x,i.y)):t.state!==a.PLAYING_FORWARD&&t.state!==a.PLAYING_BACKWARD||(this.path.getPoint(s.getValue(),i),e.add(i),i.add(this.pathOffset),s=this.x,e=this.y,this.setPosition(i.x,i.y),i=this.x-s,s=this.y-e,0==i&&0==s)||(t.state!==this._prevDirection?this._prevDirection=t.state:this.rotateToPath&&(this.rotation=Math.atan2(s,i)+n(this.pathRotationOffset))))}};t.exports=i},58210:(t,e,i)=>{var n=i(28699);t.exports={defaultPipeline:null,pipeline:null,pipelineData:null,initPipeline:function(t){this.pipelineData={};var e=this.scene.sys.renderer;if(e){e=e.pipelines;if(e){void 0===t&&(t=e.default);e=e.get(t);if(e)return this.defaultPipeline=e,this.pipeline=e,!0}}return!1},setPipeline:function(t,e,i){var s=this.scene.sys.renderer;return s&&(s=s.pipelines)&&((s=s.get(t))&&(this.pipeline=s),e)&&(this.pipelineData=i?n(e):e),this},setPipelineData:function(t,e){var i=this.pipelineData;return void 0===e?delete i[t]:i[t]=e,this},resetPipeline:function(t){return void 0===t&&(t=!1),this.pipeline=this.defaultPipeline,t&&(this.pipelineData={}),null!==this.pipeline},getPipelineName:function(){return this.pipeline.name}}},44086:(t,e,i)=>{var a=i(28699),s=i(88677),r=i(72677);t.exports={hasPostPipeline:!1,postPipelines:null,postPipelineData:null,preFX:null,postFX:null,initPostPipeline:function(t){this.postPipelines=[],this.postPipelineData={},this.postFX=new s(this,!0),t&&(this.preFX=new s(this,!1))},setPostPipeline:function(t,e,i){var s=this.scene.sys.renderer;if(s){var n=s.pipelines;if(n){Array.isArray(t)||(t=[t]);for(var r=0;r{t.exports={scrollFactorX:1,scrollFactorY:1,setScrollFactor:function(t,e){return void 0===e&&(e=t),this.scrollFactorX=t,this.scrollFactorY=e,this}}},31654:t=>{t.exports={_sizeComponent:!0,width:0,height:0,displayWidth:{get:function(){return Math.abs(this.scaleX*this.frame.realWidth)},set:function(t){this.scaleX=t/this.frame.realWidth}},displayHeight:{get:function(){return Math.abs(this.scaleY*this.frame.realHeight)},set:function(t){this.scaleY=t/this.frame.realHeight}},setSizeToFrame:function(t){t=t||this.frame,this.width=t.realWidth,this.height=t.realHeight;t=this.input;return t&&!t.customHitArea&&(t.hitArea.width=this.width,t.hitArea.height=this.height),this},setSize:function(t,e){return this.width=t,this.height=e,this},setDisplaySize:function(t,e){return this.displayWidth=t,this.displayHeight=e,this}}},82081:(t,e,i)=>{var s=i(82047);t.exports={texture:null,frame:null,isCropped:!1,setTexture:function(t,e){return this.texture=this.scene.sys.textures.get(t),this.setFrame(e)},setFrame:function(t,e,i){return void 0===e&&(e=!0),void 0===i&&(i=!0),t instanceof s?(this.texture=this.scene.sys.textures.get(t.texture.key),this.frame=t):this.frame=this.texture.get(t),this.frame.cutWidth&&this.frame.cutHeight?this.renderFlags|=8:this.renderFlags&=-9,this._sizeComponent&&e&&this.setSizeToFrame(),this._originComponent&&i&&(this.frame.customPivot?this.setOrigin(this.frame.pivotX,this.frame.pivotY):this.updateDisplayOrigin()),this}}},21850:(t,e,i)=>{var s=i(82047);t.exports={texture:null,frame:null,isCropped:!1,setCrop:function(t,e,i,s){return void 0===t?this.isCropped=!1:this.frame&&("number"==typeof t?this.frame.setCropUVs(this._crop,t,e,i,s,this.flipX,this.flipY):this.frame.setCropUVs(this._crop,t.x,t.y,t.width,t.height,this.flipX,this.flipY),this.isCropped=!0),this},setTexture:function(t,e){return this.texture=this.scene.sys.textures.get(t),this.setFrame(e)},setFrame:function(t,e,i){return void 0===e&&(e=!0),void 0===i&&(i=!0),t instanceof s?(this.texture=this.scene.sys.textures.get(t.texture.key),this.frame=t):this.frame=this.texture.get(t),this.frame.cutWidth&&this.frame.cutHeight?this.renderFlags|=8:this.renderFlags&=-9,this._sizeComponent&&e&&this.setSizeToFrame(),this._originComponent&&i&&(this.frame.customPivot?this.setOrigin(this.frame.pivotX,this.frame.pivotY):this.updateDisplayOrigin()),this.isCropped&&this.frame.updateCropUVs(this._crop,this.flipX,this.flipY),this},resetCropObject:function(){return{u0:0,v0:0,u1:0,v1:0,width:0,height:0,x:0,y:0,flipX:!1,flipY:!1,cx:0,cy:0,cw:0,ch:0}}}},58072:t=>{t.exports={tintTopLeft:16777215,tintTopRight:16777215,tintBottomLeft:16777215,tintBottomRight:16777215,tintFill:!1,clearTint:function(){return this.setTint(16777215),this},setTint:function(t,e,i,s){return void 0===t&&(t=16777215),void 0===e&&(s=i=e=t),this.tintTopLeft=t,this.tintTopRight=e,this.tintBottomLeft=i,this.tintBottomRight=s,this.tintFill=!1,this},setTintFill:function(t,e,i,s){return this.setTint(t,e,i,s),this.tintFill=!0,this},tint:{set:function(t){this.setTint(t,t,t,t)}},isTinted:{get:function(){var t=16777215;return this.tintFill||this.tintTopLeft!==t||this.tintTopRight!==t||this.tintBottomLeft!==t||this.tintBottomRight!==t}}}},48129:t=>{t.exports=function(t){var e={name:t.name,type:t.type,x:t.x,y:t.y,depth:t.depth,scale:{x:t.scaleX,y:t.scaleY},origin:{x:t.originX,y:t.originY},flipX:t.flipX,flipY:t.flipY,rotation:t.rotation,alpha:t.alpha,visible:t.visible,blendMode:t.blendMode,textureKey:"",frameKey:"",data:{}};return t.texture&&(e.textureKey=t.texture.key,e.frameKey=t.frame.name),e}},56584:(t,e,i)=>{var s=i(83392),n=i(69360),r=i(64462),o=i(35786),a=i(62138),h=i(93736);t.exports={hasTransformComponent:!0,_scaleX:1,_scaleY:1,_rotation:0,x:0,y:0,z:0,w:0,scale:{get:function(){return(this._scaleX+this._scaleY)/2},set:function(t){this._scaleX=t,0===(this._scaleY=t)?this.renderFlags&=-5:this.renderFlags|=4}},scaleX:{get:function(){return this._scaleX},set:function(t){0===(this._scaleX=t)?this.renderFlags&=-5:0!==this._scaleY&&(this.renderFlags|=4)}},scaleY:{get:function(){return this._scaleY},set:function(t){0===(this._scaleY=t)?this.renderFlags&=-5:0!==this._scaleX&&(this.renderFlags|=4)}},angle:{get:function(){return a(this._rotation*s.RAD_TO_DEG)},set:function(t){this.rotation=a(t)*s.DEG_TO_RAD}},rotation:{get:function(){return this._rotation},set:function(t){this._rotation=o(t)}},setPosition:function(t,e,i,s){return void 0===t&&(t=0),void 0===e&&(e=t),void 0===i&&(i=0),void 0===s&&(s=0),this.x=t,this.y=e,this.z=i,this.w=s,this},copyPosition:function(t){return void 0!==t.x&&(this.x=t.x),void 0!==t.y&&(this.y=t.y),void 0!==t.z&&(this.z=t.z),void 0!==t.w&&(this.w=t.w),this},setRandomPosition:function(t,e,i,s){return void 0===e&&(e=0),void 0===i&&(i=this.scene.sys.scale.width),void 0===s&&(s=this.scene.sys.scale.height),this.x=(t=void 0===t?0:t)+Math.random()*i,this.y=e+Math.random()*s,this},setRotation:function(t){return this.rotation=t=void 0===t?0:t,this},setAngle:function(t){return this.angle=t=void 0===t?0:t,this},setScale:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=t),this.scaleX=t,this.scaleY=e,this},setX:function(t){return this.x=t=void 0===t?0:t,this},setY:function(t){return this.y=t=void 0===t?0:t,this},setZ:function(t){return this.z=t=void 0===t?0:t,this},setW:function(t){return this.w=t=void 0===t?0:t,this},getLocalTransformMatrix:function(t){return(t=void 0===t?new n:t).applyITRS(this.x,this.y,this._rotation,this._scaleX,this._scaleY)},getWorldTransformMatrix:function(t,e){void 0===t&&(t=new n);var i=this.parentContainer;if(!i)return this.getLocalTransformMatrix(t);for(e=e||new n,t.applyITRS(this.x,this.y,this._rotation,this._scaleX,this._scaleY);i;)e.applyITRS(i.x,i.y,i._rotation,i._scaleX,i._scaleY),e.multiply(t,t),i=i.parentContainer;return t},getLocalPoint:function(t,e,i,s){i=i||new h;var n=(s=s||this.scene.sys.cameras.main).scrollX,s=s.scrollY,t=t+n*this.scrollFactorX-n,n=e+s*this.scrollFactorY-s;return this.parentContainer?this.getWorldTransformMatrix().applyInverse(t,n,i):r(t,n,this.x,this.y,this.rotation,this.scaleX,this.scaleY,i),this._originComponent&&(i.x+=this._displayOriginX,i.y+=this._displayOriginY),i},getParentRotation:function(){for(var t=0,e=this.parentContainer;e;)t+=e.rotation,e=e.parentContainer;return t}}},69360:(t,e,i)=>{var s=i(56694),n=i(83392),u=i(93736),i=new s({initialize:function(t,e,i,s,n,r){void 0===t&&(t=1),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=1),void 0===n&&(n=0),void 0===r&&(r=0),this.matrix=new Float32Array([t,e,i,s,n,r,0,0,1]),this.decomposedMatrix={translateX:0,translateY:0,scaleX:1,scaleY:1,rotation:0},this.quad=new Float32Array(8)},a:{get:function(){return this.matrix[0]},set:function(t){this.matrix[0]=t}},b:{get:function(){return this.matrix[1]},set:function(t){this.matrix[1]=t}},c:{get:function(){return this.matrix[2]},set:function(t){this.matrix[2]=t}},d:{get:function(){return this.matrix[3]},set:function(t){this.matrix[3]=t}},e:{get:function(){return this.matrix[4]},set:function(t){this.matrix[4]=t}},f:{get:function(){return this.matrix[5]},set:function(t){this.matrix[5]=t}},tx:{get:function(){return this.matrix[4]},set:function(t){this.matrix[4]=t}},ty:{get:function(){return this.matrix[5]},set:function(t){this.matrix[5]=t}},rotation:{get:function(){return Math.acos(this.a/this.scaleX)*(Math.atan(-this.c/this.a)<0?-1:1)}},rotationNormalized:{get:function(){var t=this.matrix,e=t[0],i=t[1],s=t[2],t=t[3];return e||i?0{t.exports={_visible:!0,visible:{get:function(){return this._visible},set:function(t){t?(this._visible=!0,this.renderFlags|=1):(this._visible=!1,this.renderFlags&=-2)}},setVisible:function(t){return this.visible=t,this}}},64937:(t,e,i)=>{t.exports={Alpha:i(97123),AlphaSingle:i(15720),BlendMode:i(69732),ComputedSize:i(28284),Crop:i(85293),Depth:i(14975),Flip:i(92972),FX:i(88677),GetBounds:i(80693),Mask:i(39171),Origin:i(28072),PathFollower:i(54211),Pipeline:i(58210),PostPipeline:i(44086),ScrollFactor:i(45900),Size:i(31654),Texture:i(82081),TextureCrop:i(21850),Tint:i(58072),ToJSON:i(48129),Transform:i(56584),TransformMatrix:i(69360),Visible:i(59694)}},70339:(t,e,i)=>{var r=i(59959),n=i(95723),s=i(56694),o=i(64937),a=i(56631),h=i(89980),l=i(74118),u=i(98524),c=i(58795),d=i(93736),i=new s({Extends:h,Mixins:[o.AlphaSingle,o.BlendMode,o.ComputedSize,o.Depth,o.Mask,o.PostPipeline,o.Transform,o.Visible,u],initialize:function(t,e,i,s){h.call(this,t,"Container"),this.list=[],this.exclusive=!0,this.maxSize=-1,this.position=0,this.localTransform=new o.TransformMatrix,this.tempTransformMatrix=new o.TransformMatrix,this._sortKey="",this._sysEvents=t.sys.events,this.scrollFactorX=1,this.scrollFactorY=1,this.initPostPipeline(),this.setPosition(e,i),this.setBlendMode(n.SKIP_CHECK),s&&this.add(s)},originX:{get:function(){return.5}},originY:{get:function(){return.5}},displayOriginX:{get:function(){return.5*this.width}},displayOriginY:{get:function(){return.5*this.height}},setExclusive:function(t){return this.exclusive=t=void 0===t?!0:t,this},getBounds:function(t){var e;if((t=void 0===t?new l:t).setTo(this.x,this.y,0,0),this.parentContainer&&(e=this.parentContainer.getBoundsTransformMatrix().transformPoint(this.x,this.y),t.setTo(e.x,e.y,0,0)),0{t.exports=function(t,e,i,s){i.addToRenderList(e);var n=e.list;if(0!==n.length){var r=e.localTransform,o=(s?(r.loadIdentity(),r.multiply(s),r.translate(e.x,e.y),r.rotate(e.rotation),r.scale(e.scaleX,e.scaleY)):r.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY),-1!==e.blendMode),a=(o||t.setBlendMode(0),e._alpha),h=e.scrollFactorX,l=e.scrollFactorY;e.mask&&e.mask.preRenderCanvas(t,null,i);for(var u=0;u{var r=i(88933),o=i(70339),s=i(99325),a=i(20494);s.register("container",function(t,e){var i=a(t=void 0===t?{}:t,"x",0),s=a(t,"y",0),n=a(t,"children",null),i=new o(this.scene,i,s,n);return void 0!==e&&(t.add=e),r(this.scene,i,t),i})},23400:(t,e,i)=>{var s=i(70339);i(61286).register("container",function(t,e,i){return this.displayList.add(new s(this.scene,t,e,i))})},98524:(t,e,i)=>{var s;i(72283),s=i(36934),i=i(13916),t.exports={renderWebGL:s,renderCanvas:i}},36934:t=>{t.exports=function(t,e,i,s){i.addToRenderList(e);var n=e.list,r=n.length;if(0!==r){var o=e.localTransform,a=(s?(o.loadIdentity(),o.multiply(s),o.translate(e.x,e.y),o.rotate(e.rotation),o.scale(e.scaleX,e.scaleY)):o.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY),t.pipelines.preBatch(e),-1!==e.blendMode);a||t.setBlendMode(0);for(var h=e.alpha,l=e.scrollFactorX,u=e.scrollFactorY,c=0;c{t.exports=["normal","multiply","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]},38943:(t,e,i)=>{var s=i(56694),n=i(64937),r=i(11603),o=i(89980),a=i(42911),h=i(55638),l=i(7599),u=i(51729),i=new s({Extends:o,Mixins:[n.AlphaSingle,n.BlendMode,n.Depth,n.Origin,n.ScrollFactor,n.Transform,n.Visible,r],initialize:function(t,e,i,s,n,r){o.call(this,t,"DOMElement"),this.parent=t.sys.game.domContainer,this.cache=t.sys.cache.html,this.node,this.transformOnly=!1,this.skewX=0,this.skewY=0,this.rotate3d=new u,this.rotate3dAngle="deg",this.pointerEvents="auto",this.width=0,this.height=0,this.displayWidth=0,this.displayHeight=0,this.handler=this.dispatchNativeEvent.bind(this),this.setPosition(e,i),"string"==typeof s?"#"===s[0]?this.setElement(s.substr(1),n,r):this.createElement(s,n,r):s&&this.setElement(s,n,r),t.sys.events.on(l.SLEEP,this.handleSceneEvent,this),t.sys.events.on(l.WAKE,this.handleSceneEvent,this),t.sys.events.on(l.PRE_RENDER,this.preRender,this)},handleSceneEvent:function(t){var e=this.node,i=e.style;e&&(i.display=t.settings.visible?"block":"none")},setSkew:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.skewX=t,this.skewY=e,this},setPerspective:function(t){return this.parent.style.perspective=t+"px",this},perspective:{get:function(){return parseFloat(this.parent.style.perspective)},set:function(t){this.parent.style.perspective=t+"px"}},addListener:function(t){if(this.node){t=t.split(" ");for(var e=0;e{var p=i(2452),f=i(89980),i=i(69360),g=new i,y=new i,v=new i;t.exports=function(t,e,i,s){var n,r,o,a,h,l,u,c,d;e.node&&(n=e.node.style,o=e.scene.sys.settings,!n||!o.visible||f.RENDER_MASK!==e.renderFlags||0!==e.cameraFilter&&e.cameraFilter&i.id||e.parentContainer&&!e.parentContainer.willRender()?n.display="none":(o=e.parentContainer,r=i.alpha*e.alpha,o&&(r*=o.alpha),o=g,a=y,h=v,u=l=0,d=c="0%",s?(l=e.width*e.scaleX*e.originX,u=e.height*e.scaleY*e.originY,a.applyITRS(e.x-l,e.y-u,e.rotation,e.scaleX,e.scaleY),o.copyFrom(i.matrix),o.multiplyWithOffset(s,-i.scrollX*e.scrollFactorX,-i.scrollY*e.scrollFactorY),a.e=e.x-l,a.f=e.y-u):(l=e.width*e.originX,u=e.height*e.originY,a.applyITRS(e.x-l,e.y-u,e.rotation,e.scaleX,e.scaleY),o.copyFrom(i.matrix),c=100*e.originX+"%",d=100*e.originY+"%",a.e-=i.scrollX*e.scrollFactorX,a.f-=i.scrollY*e.scrollFactorY),o.multiply(a,h),e.transformOnly||(n.display="block",n.opacity=r,n.zIndex=e._depth,n.pointerEvents=e.pointerEvents,n.mixBlendMode=p[e._blendMode]),n.transform=h.getCSSMatrix()+" skew("+e.skewX+"rad, "+e.skewY+"rad) rotate3d("+e.rotate3d.x+","+e.rotate3d.y+","+e.rotate3d.z+","+e.rotate3d.w+e.rotate3dAngle+")",n.transformOrigin=c+" "+d))}},66788:(t,e,i)=>{var r=i(38943);i(61286).register("dom",function(t,e,i,s,n){t=new r(this.scene,t,e,i,s,n);return this.displayList.add(t),t})},11603:(t,e,i)=>{var s;i(72283),s=i(66070),i=i(66070),t.exports={renderWebGL:s,renderCanvas:i}},65492:t=>{t.exports="addedtoscene"},98398:t=>{t.exports="destroy"},40239:t=>{t.exports="removedfromscene"},17286:t=>{t.exports="complete"},31496:t=>{t.exports="created"},89587:t=>{t.exports="error"},59792:t=>{t.exports="locked"},96342:t=>{t.exports="loop"},6017:t=>{t.exports="playing"},49614:t=>{t.exports="play"},24418:t=>{t.exports="seeked"},87318:t=>{t.exports="seeking"},50009:t=>{t.exports="stalled"},61922:t=>{t.exports="stop"},79501:t=>{t.exports="textureready"},4052:t=>{t.exports="unlocked"},54857:t=>{t.exports="unsupported"},56631:(t,e,i)=>{t.exports={ADDED_TO_SCENE:i(65492),DESTROY:i(98398),REMOVED_FROM_SCENE:i(40239),VIDEO_COMPLETE:i(17286),VIDEO_CREATED:i(31496),VIDEO_ERROR:i(89587),VIDEO_LOCKED:i(59792),VIDEO_LOOP:i(96342),VIDEO_PLAY:i(49614),VIDEO_PLAYING:i(6017),VIDEO_SEEKED:i(24418),VIDEO_SEEKING:i(87318),VIDEO_STALLED:i(50009),VIDEO_STOP:i(61922),VIDEO_TEXTURE:i(79501),VIDEO_UNLOCKED:i(4052),VIDEO_UNSUPPORTED:i(54857)}},39419:(t,e,i)=>{var s=i(56694),n=i(64937),r=i(89980),i=i(79394),s=new s({Extends:r,Mixins:[n.Alpha,n.BlendMode,n.Depth,n.Flip,n.Origin,n.ScrollFactor,n.Size,n.Texture,n.Tint,n.Transform,n.Visible,i],initialize:function(t){r.call(this,t,"Extern")},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},preUpdate:function(){},render:function(){}});t.exports=s},96699:()=>{},41155:(t,e,i)=>{var s=i(39419);i(61286).register("extern",function(){var t=new s(this.scene);return this.displayList.add(t),t})},79394:(t,e,i)=>{var s;i(72283),s=i(81410),i=i(96699),t.exports={renderWebGL:s,renderCanvas:i}},81410:(t,e,i)=>{var n=i(73329);t.exports=function(t,e,i,s){t.pipelines.clear();s=n(e,i,s).calc;e.render.call(e,t,i,s),t.pipelines.rebind()}},36266:t=>{t.exports={ARC:0,BEGIN_PATH:1,CLOSE_PATH:2,FILL_RECT:3,LINE_TO:4,MOVE_TO:5,LINE_STYLE:6,FILL_STYLE:7,FILL_PATH:8,STROKE_PATH:9,FILL_TRIANGLE:10,STROKE_TRIANGLE:11,SAVE:14,RESTORE:15,TRANSLATE:16,SCALE:17,ROTATE:18,GRADIENT_FILL_STYLE:21,GRADIENT_LINE_STYLE:22}},33182:(t,e,i)=>{var s=i(51052),n=i(56694),h=i(36266),r=i(64937),o=i(95669),a=i(89980),p=i(72632),l=i(10850),f=i(83392),i=i(60898),u=new n({Extends:a,Mixins:[r.AlphaSingle,r.BlendMode,r.Depth,r.Mask,r.Pipeline,r.PostPipeline,r.Transform,r.Visible,r.ScrollFactor,i],initialize:function(t,e){var i=l(e,"x",0),s=l(e,"y",0);a.call(this,t,"Graphics"),this.setPosition(i,s),this.initPipeline(),this.initPostPipeline(),this.displayOriginX=0,this.displayOriginY=0,this.commandBuffer=[],this.defaultFillColor=-1,this.defaultFillAlpha=1,this.defaultStrokeWidth=1,this.defaultStrokeColor=-1,this.defaultStrokeAlpha=1,this._lineWidth=1,this.setDefaultStyles(e)},setDefaultStyles:function(t){return l(t,"lineStyle",null)&&(this.defaultStrokeWidth=l(t,"lineStyle.width",1),this.defaultStrokeColor=l(t,"lineStyle.color",16777215),this.defaultStrokeAlpha=l(t,"lineStyle.alpha",1),this.lineStyle(this.defaultStrokeWidth,this.defaultStrokeColor,this.defaultStrokeAlpha)),l(t,"fillStyle",null)&&(this.defaultFillColor=l(t,"fillStyle.color",16777215),this.defaultFillAlpha=l(t,"fillStyle.alpha",1),this.fillStyle(this.defaultFillColor,this.defaultFillAlpha)),this},lineStyle:function(t,e,i){return this.commandBuffer.push(h.LINE_STYLE,t,e,i=void 0===i?1:i),this._lineWidth=t,this},fillStyle:function(t,e){return this.commandBuffer.push(h.FILL_STYLE,t,e=void 0===e?1:e),this},fillGradientStyle:function(t,e,i,s,n,r,o,a){return void 0===n&&(n=1),void 0===r&&(r=n),void 0===o&&(o=n),void 0===a&&(a=n),this.commandBuffer.push(h.GRADIENT_FILL_STYLE,n,r,o,a,t,e,i,s),this},lineGradientStyle:function(t,e,i,s,n,r){return this.commandBuffer.push(h.GRADIENT_LINE_STYLE,t,r=void 0===r?1:r,e,i,s,n),this},beginPath:function(){return this.commandBuffer.push(h.BEGIN_PATH),this},closePath:function(){return this.commandBuffer.push(h.CLOSE_PATH),this},fillPath:function(){return this.commandBuffer.push(h.FILL_PATH),this},fill:function(){return this.commandBuffer.push(h.FILL_PATH),this},strokePath:function(){return this.commandBuffer.push(h.STROKE_PATH),this},stroke:function(){return this.commandBuffer.push(h.STROKE_PATH),this},fillCircleShape:function(t){return this.fillCircle(t.x,t.y,t.radius)},strokeCircleShape:function(t){return this.strokeCircle(t.x,t.y,t.radius)},fillCircle:function(t,e,i){return this.beginPath(),this.arc(t,e,i,0,f.PI2),this.fillPath(),this},strokeCircle:function(t,e,i){return this.beginPath(),this.arc(t,e,i,0,f.PI2),this.strokePath(),this},fillRectShape:function(t){return this.fillRect(t.x,t.y,t.width,t.height)},strokeRectShape:function(t){return this.strokeRect(t.x,t.y,t.width,t.height)},fillRect:function(t,e,i,s){return this.commandBuffer.push(h.FILL_RECT,t,e,i,s),this},strokeRect:function(t,e,i,s){var n=this._lineWidth/2,r=t-n,n=t+n;return this.beginPath(),this.moveTo(t,e),this.lineTo(t,e+s),this.strokePath(),this.beginPath(),this.moveTo(t+i,e),this.lineTo(t+i,e+s),this.strokePath(),this.beginPath(),this.moveTo(r,e),this.lineTo(n+i,e),this.strokePath(),this.beginPath(),this.moveTo(r,e+s),this.lineTo(n+i,e+s),this.strokePath(),this},fillRoundedRect:function(t,e,i,s,n){var r=n=void 0===n?20:n,o=n,a=n,h=n,n=("number"!=typeof n&&(r=p(n,"tl",20),o=p(n,"tr",20),a=p(n,"bl",20),h=p(n,"br",20)),0<=r),l=0<=o,u=0<=a,c=0<=h,r=Math.abs(r),o=Math.abs(o),a=Math.abs(a),h=Math.abs(h);return this.beginPath(),this.moveTo(t+r,e),this.lineTo(t+i-o,e),l?this.arc(t+i-o,e+o,o,-f.TAU,0):this.arc(t+i,e,o,Math.PI,f.TAU,!0),this.lineTo(t+i,e+s-h),c?this.arc(t+i-h,e+s-h,h,0,f.TAU):this.arc(t+i,e+s,h,-f.TAU,Math.PI,!0),this.lineTo(t+a,e+s),u?this.arc(t+a,e+s-a,a,f.TAU,Math.PI):this.arc(t,e+s,a,0,-f.TAU,!0),this.lineTo(t,e+r),n?this.arc(t+r,e+r,r,-Math.PI,-f.TAU):this.arc(t,e,r,f.TAU,0,!0),this.fillPath(),this},strokeRoundedRect:function(t,e,i,s,n){var r=n=void 0===n?20:n,o=n,a=n,h=n,l=Math.min(i,s)/2,n=("number"!=typeof n&&(r=p(n,"tl",20),o=p(n,"tr",20),a=p(n,"bl",20),h=p(n,"br",20)),0<=r),u=0<=o,c=0<=a,d=0<=h,r=Math.min(Math.abs(r),l),o=Math.min(Math.abs(o),l),a=Math.min(Math.abs(a),l),h=Math.min(Math.abs(h),l);return this.beginPath(),this.moveTo(t+r,e),this.lineTo(t+i-o,e),this.moveTo(t+i-o,e),u?this.arc(t+i-o,e+o,o,-f.TAU,0):this.arc(t+i,e,o,Math.PI,f.TAU,!0),this.lineTo(t+i,e+s-h),this.moveTo(t+i,e+s-h),d?this.arc(t+i-h,e+s-h,h,0,f.TAU):this.arc(t+i,e+s,h,-f.TAU,Math.PI,!0),this.lineTo(t+a,e+s),this.moveTo(t+a,e+s),c?this.arc(t+a,e+s-a,a,f.TAU,Math.PI):this.arc(t,e+s,a,0,-f.TAU,!0),this.lineTo(t,e+r),this.moveTo(t,e+r),n?this.arc(t+r,e+r,r,-Math.PI,-f.TAU):this.arc(t,e,r,f.TAU,0,!0),this.strokePath(),this},fillPointShape:function(t,e){return this.fillPoint(t.x,t.y,e)},fillPoint:function(t,e,i){return!i||i<1?i=1:(t-=i/2,e-=i/2),this.commandBuffer.push(h.FILL_RECT,t,e,i,i),this},fillTriangleShape:function(t){return this.fillTriangle(t.x1,t.y1,t.x2,t.y2,t.x3,t.y3)},strokeTriangleShape:function(t){return this.strokeTriangle(t.x1,t.y1,t.x2,t.y2,t.x3,t.y3)},fillTriangle:function(t,e,i,s,n,r){return this.commandBuffer.push(h.FILL_TRIANGLE,t,e,i,s,n,r),this},strokeTriangle:function(t,e,i,s,n,r){return this.commandBuffer.push(h.STROKE_TRIANGLE,t,e,i,s,n,r),this},strokeLineShape:function(t){return this.lineBetween(t.x1,t.y1,t.x2,t.y2)},lineBetween:function(t,e,i,s){return this.beginPath(),this.moveTo(t,e),this.lineTo(i,s),this.strokePath(),this},lineTo:function(t,e){return this.commandBuffer.push(h.LINE_TO,t,e),this},moveTo:function(t,e){return this.commandBuffer.push(h.MOVE_TO,t,e),this},strokePoints:function(t,e,i,s){void 0===e&&(e=!1),void 0===i&&(i=!1),void 0===s&&(s=t.length),this.beginPath(),this.moveTo(t[0].x,t[0].y);for(var n=1;n{var p=i(36266),f=i(49584);t.exports=function(t,e,i,s,n,r){var o=e.commandBuffer,a=o.length,h=n||t.currentContext;if(0!==a&&f(t,h,e,i,s)){i.addToRenderList(e);var l,u,c;h.beginPath();for(var d=0;d>>16)+","+((65280&u)>>>8)+","+(255&u)+","+l+")",h.lineWidth=c,d+=3;break;case p.FILL_STYLE:u=o[d+1],l=o[d+2],h.fillStyle="rgba("+((16711680&u)>>>16)+","+((65280&u)>>>8)+","+(255&u)+","+l+")",d+=2;break;case p.BEGIN_PATH:h.beginPath();break;case p.CLOSE_PATH:h.closePath();break;case p.FILL_PATH:r||h.fill();break;case p.STROKE_PATH:r||h.stroke();break;case p.FILL_RECT:r?h.rect(o[d+1],o[d+2],o[d+3],o[d+4]):h.fillRect(o[d+1],o[d+2],o[d+3],o[d+4]),d+=4;break;case p.FILL_TRIANGLE:h.beginPath(),h.moveTo(o[d+1],o[d+2]),h.lineTo(o[d+3],o[d+4]),h.lineTo(o[d+5],o[d+6]),h.closePath(),r||h.fill(),d+=6;break;case p.STROKE_TRIANGLE:h.beginPath(),h.moveTo(o[d+1],o[d+2]),h.lineTo(o[d+3],o[d+4]),h.lineTo(o[d+5],o[d+6]),h.closePath(),r||h.stroke(),d+=6;break;case p.LINE_TO:h.lineTo(o[d+1],o[d+2]),d+=2;break;case p.MOVE_TO:h.moveTo(o[d+1],o[d+2]),d+=2;break;case p.LINE_FX_TO:h.lineTo(o[d+1],o[d+2]),d+=5;break;case p.MOVE_FX_TO:h.moveTo(o[d+1],o[d+2]),d+=5;break;case p.SAVE:h.save();break;case p.RESTORE:h.restore();break;case p.TRANSLATE:h.translate(o[d+1],o[d+2]),d+=2;break;case p.SCALE:h.scale(o[d+1],o[d+2]),d+=2;break;case p.ROTATE:h.rotate(o[d+1]),d+=1;break;case p.GRADIENT_FILL_STYLE:d+=5;break;case p.GRADIENT_LINE_STYLE:d+=6}h.restore()}}},41286:(t,e,i)=>{var s=i(99325),n=i(33182);s.register("graphics",function(t,e){void 0===t&&(t={}),void 0!==e&&(t.add=e);e=new n(this.scene,t);return t.add&&this.scene.sys.displayList.add(e),e})},13122:(t,e,i)=>{var s=i(33182);i(61286).register("graphics",function(t){return this.displayList.add(new s(this.scene,t))})},60898:(t,e,i)=>{var s;i(72283),s=i(34429),i(91543),i=i(91543),t.exports={renderWebGL:s,renderCanvas:i}},34429:(t,e,i)=>{function k(t,e,i){this.points=[],this.pointsLength=1,this.points[0]=new N(t,e,i)}var F=i(36266),I=i(73329),s=i(69360),B=i(75512),N=function(t,e,i){this.x=t,this.y=e,this.width=i},X=[],U=new s;t.exports=function(t,e,i,s){if(0!==e.commandBuffer.length){i.addToRenderList(e);var n=t.pipelines.set(e.pipeline,e);t.pipelines.preBatch(e);for(var r=I(e,i,s).calc,o=U.loadIdentity(),a=e.commandBuffer,h=i.alpha*e.alpha,l=1,u=n.fillTint,c=n.strokeTint,d=0,p=0,f=0,g=2*Math.PI,y=[],v=0,m=!0,x=null,w=B.getTintAppendFloatAlpha,T=0;T{var y=i(83979),s=i(56694),r=i(56631),n=i(6659),o=i(71608),v=i(72632),m=i(10850),x=i(19256),a=i(42911),w=i(75757),h=i(58403),l=i(13747),i=new s({Extends:n,initialize:function(t,e,i){n.call(this),i?e&&!Array.isArray(e)&&(e=[e]):Array.isArray(e)?a(e[0])&&(i=e,e=null):a(e)&&(i=e,e=null),this.scene=t,this.children=new h,this.isParent=!0,this.type="Group",this.classType=v(i,"classType",l),this.name=v(i,"name",""),this.active=v(i,"active",!0),this.maxSize=v(i,"maxSize",-1),this.defaultKey=v(i,"defaultKey",null),this.defaultFrame=v(i,"defaultFrame",null),this.runChildUpdate=v(i,"runChildUpdate",!1),this.createCallback=v(i,"createCallback",null),this.removeCallback=v(i,"removeCallback",null),this.createMultipleCallback=v(i,"createMultipleCallback",null),this.internalCreateCallback=v(i,"internalCreateCallback",null),this.internalRemoveCallback=v(i,"internalRemoveCallback",null),e&&this.addMultiple(e),i&&this.createMultiple(i),this.on(r.ADDED_TO_SCENE,this.addedToScene,this),this.on(r.REMOVED_FROM_SCENE,this.removedFromScene,this)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},create:function(t,e,i,s,n,r){return void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=this.defaultKey),void 0===s&&(s=this.defaultFrame),void 0===n&&(n=!0),void 0===r&&(r=!0),this.isFull()?null:((t=new this.classType(this.scene,t,e,i,s)).addToDisplayList(this.scene.sys.displayList),t.addToUpdateList(),t.visible=n,t.setActive(r),this.add(t),t)},createMultiple:function(t){if(this.isFull())return[];var e=[];if((t=Array.isArray(t)?t:[t])[0].key)for(var i=0;i=this.maxSize},countActive:function(t){void 0===t&&(t=!0);for(var e=0,i=0;i{var s=i(99325),n=i(59192);s.register("group",function(t){return new n(this.scene,null,t)})},62598:(t,e,i)=>{var s=i(59192);i(61286).register("group",function(t,e){return this.updateList.add(new s(this.scene,t,e))})},1539:(t,e,i)=>{var s=i(56694),n=i(64937),r=i(89980),i=i(57322),s=new s({Extends:r,Mixins:[n.Alpha,n.BlendMode,n.Depth,n.Flip,n.GetBounds,n.Mask,n.Origin,n.Pipeline,n.PostPipeline,n.ScrollFactor,n.Size,n.TextureCrop,n.Tint,n.Transform,n.Visible,i],initialize:function(t,e,i,s,n){r.call(this,t,"Image"),this._crop=this.resetCropObject(),this.setTexture(s,n),this.setPosition(e,i),this.setSizeToFrame(),this.setOriginFromFrame(),this.initPipeline(),this.initPostPipeline(!0)}});t.exports=s},57786:t=>{t.exports=function(t,e,i,s){i.addToRenderList(e),t.batchSprite(e,e.frame,i,s)}},83556:(t,e,i)=>{var n=i(88933),s=i(99325),r=i(20494),o=i(1539);s.register("image",function(t,e){var i=r(t=void 0===t?{}:t,"key",null),s=r(t,"frame",null),i=new o(this.scene,0,0,i,s);return void 0!==e&&(t.add=e),n(this.scene,i,t),i})},20927:(t,e,i)=>{var n=i(1539);i(61286).register("image",function(t,e,i,s){return this.displayList.add(new n(this.scene,t,e,i,s))})},57322:(t,e,i)=>{var s;i(72283),s=i(59390),i=i(57786),t.exports={renderWebGL:s,renderCanvas:i}},59390:t=>{t.exports=function(t,e,i,s){i.addToRenderList(e),this.pipeline.batchSprite(e,i,s)}},48013:(t,e,i)=>{var s={Events:i(56631),DisplayList:i(91713),GameObjectCreator:i(99325),GameObjectFactory:i(61286),UpdateList:i(92034),Components:i(64937),GetCalcMatrix:i(73329),BuildGameObject:i(88933),BuildGameObjectAnimation:i(32291),GameObject:i(89980),BitmapText:i(44616),Blitter:i(52816),Bob:i(41664),Container:i(70339),DOMElement:i(38943),DynamicBitmapText:i(13468),Extern:i(39419),Graphics:i(33182),Group:i(59192),Image:i(1539),Layer:i(85305),Particles:i(27684),PathFollower:i(29598),RenderTexture:i(15996),RetroFont:i(55873),Rope:i(79968),Sprite:i(13747),Text:i(76555),GetTextSize:i(32979),MeasureText:i(27030),TextStyle:i(74744),TileSprite:i(35856),Zone:i(71030),Video:i(8630),Shape:i(91461),Arc:i(28593),Curve:i(15220),Ellipse:i(28591),Grid:i(39169),IsoBox:i(4415),IsoTriangle:i(65159),Line:i(579),Polygon:i(91249),Rectangle:i(517),Star:i(77843),Triangle:i(21873),Factories:{Blitter:i(38906),Container:i(23400),DOMElement:i(66788),DynamicBitmapText:i(94145),Extern:i(41155),Graphics:i(13122),Group:i(62598),Image:i(20927),Layer:i(17676),Particles:i(81212),PathFollower:i(19626),RenderTexture:i(29599),Rope:i(31982),Sprite:i(66135),StaticBitmapText:i(21797),Text:i(94627),TileSprite:i(20509),Zone:i(34546),Video:i(215),Arc:i(10369),Curve:i(10147),Ellipse:i(99869),Grid:i(9326),IsoBox:i(88154),IsoTriangle:i(67765),Line:i(85665),Polygon:i(88203),Rectangle:i(94355),Star:i(23962),Triangle:i(79296)},Creators:{Blitter:i(68452),Container:i(44516),DynamicBitmapText:i(67513),Graphics:i(41286),Group:i(61295),Image:i(83556),Layer:i(56378),Particles:i(765),RenderTexture:i(85692),Rope:i(96027),Sprite:i(89219),StaticBitmapText:i(95499),Text:i(75397),TileSprite:i(63950),Zone:i(24067),Video:i(65601)}};s.Shader=i(27902),s.Mesh=i(83321),s.NineSlice=i(44139),s.PointLight=i(13171),s.Plane=i(33412),s.Factories.Shader=i(51979),s.Factories.Mesh=i(8767),s.Factories.NineSlice=i(53778),s.Factories.PointLight=i(91201),s.Factories.Plane=i(58322),s.Creators.Shader=i(13908),s.Creators.Mesh=i(41839),s.Creators.NineSlice=i(40964),s.Creators.PointLight=i(162),s.Creators.Plane=i(10912),s.Light=i(14455),s.LightsManager=i(26193),s.LightsPlugin=i(50296),t.exports=s},85305:(t,e,i)=>{var s=i(95723),n=i(56694),r=i(64937),o=i(48129),a=i(81078),h=i(6659),l=i(56631),u=i(71207),c=i(58010),d=i(7599),p=i(17922),i=new n({Extends:u,Mixins:[r.AlphaSingle,r.BlendMode,r.Depth,r.Mask,r.PostPipeline,r.Visible,h,c],initialize:function(t,e){u.call(this,t),h.call(this),this.scene=t,this.displayList=null,this.type="Layer",this.state=0,this.parentContainer=null,this.name="",this.active=!0,this.tabIndex=-1,this.data=null,this.renderFlags=15,this.cameraFilter=0,this.input=null,this.body=null,this.ignoreDestroy=!1,this.systems=t.sys,this.events=t.sys.events,this.sortChildrenFlag=!1,this.addCallback=this.addChildCallback,this.removeCallback=this.removeChildCallback,this.initPostPipeline(),this.clearAlpha(),this.setBlendMode(s.SKIP_CHECK),e&&this.add(e),t.sys.queueDepthSort()},setActive:function(t){return this.active=t,this},setName:function(t){return this.name=t,this},setState:function(t){return this.state=t,this},setDataEnabled:function(){return this.data||(this.data=new a(this)),this},setData:function(t,e){return this.data||(this.data=new a(this)),this.data.set(t,e),this},incData:function(t,e){return this.data||(this.data=new a(this)),this.data.inc(t,e),this},toggleData:function(t){return this.data||(this.data=new a(this)),this.data.toggle(t),this},getData:function(t){return this.data||(this.data=new a(this)),this.data.get(t)},setInteractive:function(){return this},disableInteractive:function(){return this},removeInteractive:function(){return this},addedToScene:function(){},removedFromScene:function(){},update:function(){},toJSON:function(){return o(this)},willRender:function(t){return!(15!==this.renderFlags||0===this.list.length||0!==this.cameraFilter&&this.cameraFilter&t.id)},getIndexList:function(){for(var t=this,e=this.parentContainer,i=[];e&&(i.unshift(e.getIndex(t)),(t=e).parentContainer);)e=e.parentContainer;return i.unshift(this.displayList.getIndex(t)),i},addChildCallback:function(t){t.displayList&&t.displayList!==this&&t.removeFromDisplayList(),t.displayList||(this.queueDepthSort(),t.displayList=this,t.emit(l.ADDED_TO_SCENE,t,this.scene),this.events.emit(d.ADDED_TO_SCENE,t,this.scene))},removeChildCallback:function(t){this.queueDepthSort(),t.displayList=null,t.emit(l.REMOVED_FROM_SCENE,t,this.scene),this.events.emit(d.REMOVED_FROM_SCENE,t,this.scene)},queueDepthSort:function(){this.sortChildrenFlag=!0},depthSort:function(){this.sortChildrenFlag&&(p(this.list,this.sortByDepth),this.sortChildrenFlag=!1)},sortByDepth:function(t,e){return t._depth-e._depth},getChildren:function(){return this.list},addToDisplayList:function(t){return void 0===t&&(t=this.scene.sys.displayList),this.displayList&&this.displayList!==t&&this.removeFromDisplayList(),t.exists(this)||((this.displayList=t).add(this,!0),t.queueDepthSort(),this.emit(l.ADDED_TO_SCENE,this,this.scene),t.events.emit(d.ADDED_TO_SCENE,this,this.scene)),this},removeFromDisplayList:function(){var t=this.displayList||this.scene.sys.displayList;return t.exists(this)&&(t.remove(this,!0),t.queueDepthSort(),this.displayList=null,this.emit(l.REMOVED_FROM_SCENE,this,this.scene),t.events.emit(d.REMOVED_FROM_SCENE,this,this.scene)),this},destroy:function(t){if(this.scene&&!this.ignoreDestroy){this.emit(l.DESTROY,this);for(var e=this.list;e.length;)e[0].destroy(t);this.removeAllListeners(),this.resetPostPipeline(!0),this.displayList&&(this.displayList.remove(this,!0),this.displayList.queueDepthSort()),this.data&&(this.data.destroy(),this.data=void 0),this.active=!1,this.visible=!1,this.list=void 0,this.scene=void 0,this.displayList=void 0,this.systems=void 0,this.events=void 0}}});t.exports=i},834:t=>{t.exports=function(t,e,i){var s=e.list;if(0!==s.length){e.depthSort();var n=-1!==e.blendMode,r=(n||t.setBlendMode(0),e._alpha);e.mask&&e.mask.preRenderCanvas(t,null,i);for(var o=0;o{var s=i(88933),n=i(85305),r=i(99325),o=i(20494);r.register("layer",function(t,e){var i=o(t=void 0===t?{}:t,"children",null),i=new n(this.scene,i);return void 0!==e&&(t.add=e),s(this.scene,i,t),i})},17676:(t,e,i)=>{var s=i(85305);i(61286).register("layer",function(t){return this.displayList.add(new s(this.scene,t))})},58010:(t,e,i)=>{var s;i(72283),s=i(17576),i=i(834),t.exports={renderWebGL:s,renderCanvas:i}},17576:t=>{t.exports=function(t,e,i){var s=e.list,n=s.length;if(0!==n){e.depthSort(),t.pipelines.preBatch(e);var r=-1!==e.blendMode;r||t.setBlendMode(0);for(var o=e.alpha,a=0;a{var a=i(26673),s=i(56694),n=i(64937),h=i(39298),r=i(75512),o=new s({Extends:a,Mixins:[n.Origin,n.ScrollFactor,n.Transform,n.Visible],initialize:function(t,e,i,s,n,r,o){a.call(this,t,e,i),this.color=new h(s,n,r),this.intensity=o,this.renderFlags=15,this.cameraFilter=0,this.setScrollFactor(1,1),this.setOrigin(),this.setDisplayOrigin(i)},displayWidth:{get:function(){return this.diameter},set:function(t){this.diameter=t}},displayHeight:{get:function(){return this.diameter},set:function(t){this.diameter=t}},width:{get:function(){return this.diameter},set:function(t){this.diameter=t}},height:{get:function(){return this.diameter},set:function(t){this.diameter=t}},willRender:function(t){return!(o.RENDER_MASK!==this.renderFlags||0!==this.cameraFilter&&this.cameraFilter&t.id)},setColor:function(t){t=r.getFloatsFromUintRGB(t);return this.color.set(t[0],t[1],t[2]),this},setIntensity:function(t){return this.intensity=t,this},setRadius:function(t){return this.radius=t,this}});o.RENDER_MASK=15,t.exports=o},26193:(t,e,i)=>{var o=i(26535),s=i(56694),a=i(53996),r=i(14455),h=i(13171),n=i(39298),l=i(72677),u=i(17922),c=i(75512),i=new s({initialize:function(){this.lights=[],this.ambientColor=new n(.1,.1,.1),this.active=!1,this.maxLights=-1,this.visibleLights=0},addPointLight:function(t,e,i,s,n,r){return this.systems.displayList.add(new h(this.scene,t,e,i,s,n,r))},enable:function(){return-1===this.maxLights&&(this.maxLights=this.systems.renderer.config.maxLights),this.active=!0,this},disable:function(){return this.active=!1,this},getLights:function(t){for(var e=this.lights,i=t.worldView,s=[],n=0;nthis.maxLights&&(u(s,this.sortByDistance),s=s.slice(0,this.maxLights)),this.visibleLights=s.length,s},sortByDistance:function(t,e){return t.distance>=e.distance},setAmbientColor:function(t){t=c.getFloatsFromUintRGB(t);return this.ambientColor.set(t[0],t[1],t[2]),this},getMaxVisibleLights:function(){return this.maxLights},getLightCount:function(){return this.lights.length},addLight:function(t,e,i,s,n){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=128),void 0===n&&(n=1);s=c.getFloatsFromUintRGB(s=void 0===s?16777215:s),t=new r(t,e,i,s[0],s[1],s[2],n);return this.lights.push(t),t},removeLight:function(t){t=this.lights.indexOf(t);return 0<=t&&l(this.lights,t),this},shutdown:function(){this.lights.length=0},destroy:function(){this.shutdown()}});t.exports=i},50296:(t,e,i)=>{var s=i(56694),n=i(26193),r=i(91963),o=i(7599),i=new s({Extends:n,initialize:function(t){this.scene=t,this.systems=t.sys,t.sys.settings.isBooted||t.sys.events.once(o.BOOT,this.boot,this),n.call(this)},boot:function(){var t=this.systems.events;t.on(o.SHUTDOWN,this.shutdown,this),t.on(o.DESTROY,this.destroy,this)},destroy:function(){this.shutdown(),this.scene=void 0,this.systems=void 0}});r.register("LightsPlugin",i,"lights"),t.exports=i},83321:(t,e,i)=>{var s=i(56694),n=i(64937),r=i(75606),o=i(18693),d=i(89980),u=i(53267),a=i(67623),h=i(73329),p=i(16650),l=i(23464),c=i(23701),f=i(17922),g=i(70015),y=i(85769),i=new s({Extends:d,Mixins:[n.AlphaSingle,n.BlendMode,n.Depth,n.Mask,n.Pipeline,n.PostPipeline,n.ScrollFactor,n.Size,n.Texture,n.Transform,n.Visible,l],initialize:function(t,e,i,s,n,r,o,a,h,l,u,c){void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s="__WHITE"),d.call(this,t,"Mesh"),this.faces=[],this.vertices=[],this.tintFill=!1,this.debugCallback=null,this.debugGraphic=null,this.hideCCW=!0,this.modelPosition=new g,this.modelScale=new g(1,1,1),this.modelRotation=new g,this.dirtyCache=[0,0,0,0,0,0,0,0,0,0,0,0],this.transformMatrix=new p,this.viewPosition=new g,this.viewMatrix=new p,this.projectionMatrix=new p,this.totalRendered=0,this.totalFrame=0,this.ignoreDirtyCache=!1,this.fov,this.displayOriginX=0,this.displayOriginY=0;t=t.sys.renderer;this.setPosition(e,i),this.setTexture(s,n),this.setSize(t.width,t.height),this.initPipeline(),this.initPostPipeline(),this.setPerspective(t.width,t.height),r&&this.addVertices(r,o,a,h,l,u,c)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},panX:function(t){return this.viewPosition.addScale(g.LEFT,t),this.dirtyCache[10]=1,this},panY:function(t){return this.viewPosition.y+=g.DOWN.y*t,this.dirtyCache[10]=1,this},panZ:function(t){return this.viewPosition.z+=t,this.dirtyCache[10]=1,this},setPerspective:function(t,e,i,s,n){return void 0===s&&(s=.01),void 0===n&&(n=1e3),this.fov=i=void 0===i?45:i,this.projectionMatrix.perspective(r(i),t/e,s,n),this.dirtyCache[10]=1,this.dirtyCache[11]=0,this},setOrtho:function(t,e,i,s){return void 0===t&&(t=this.scene.sys.renderer.getAspectRatio()),void 0===e&&(e=1),void 0===i&&(i=-1e3),void 0===s&&(s=1e3),this.fov=0,this.projectionMatrix.ortho(-t,t,-e,e,i,s),this.dirtyCache[10]=1,this.dirtyCache[11]=1,this},clear:function(){return this.faces.forEach(function(t){t.destroy()}),this.faces=[],this.vertices=[],this},addVerticesFromObj:function(t,e,i,s,n,r,o,a,h){var l,t=this.scene.sys.cache.obj.get(t);return(l=t?u(t,this,e,i,s,n,r,o,a,h):l)&&l.verts.length,this},sortByDepth:function(t,e){return t.depth-e.depth},depthSort:function(){return f(this.faces,this.sortByDepth),this},addVertex:function(t,e,i,s,n,r,o){t=new y(t,e,i,s,n,r,o);return this.vertices.push(t),t},addFace:function(t,e,i){t=new o(t,e,i);return this.faces.push(t),this.dirtyCache[9]=-1,t},addVertices:function(t,e,i,s,n,r,o){t=a(t,e,i,s,n,r,o);return t&&(this.faces=this.faces.concat(t.faces),this.vertices=this.vertices.concat(t.vertices)),this.dirtyCache[9]=-1,this},getFaceCount:function(){return this.faces.length},getVertexCount:function(){return this.vertices.length},getFace:function(t){return this.faces[t]},hasFaceAt:function(t,e,i){void 0===i&&(i=this.scene.sys.cameras.main);for(var s=h(this,i).calc,n=this.faces,r=0;r{t.exports=function(){}},41839:(t,e,i)=>{var c=i(88933),s=i(99325),d=i(20494),p=i(10850),f=i(83321);s.register("mesh",function(t,e){var i=d(t=void 0===t?{}:t,"key",null),s=d(t,"frame",null),n=p(t,"vertices",[]),r=p(t,"uvs",[]),o=p(t,"indicies",[]),a=p(t,"containsZ",!1),h=p(t,"normals",[]),l=p(t,"colors",16777215),u=p(t,"alphas",1),i=new f(this.scene,0,0,i,s,n,r,o,a,h,l,u);return void 0!==e&&(t.add=e),c(this.scene,i,t),i})},8767:(t,e,i)=>{var c=i(83321);i(61286).register("mesh",function(t,e,i,s,n,r,o,a,h,l,u){return this.displayList.add(new c(this.scene,t,e,i,s,n,r,o,a,h,l,u))})},23464:(t,e,i)=>{var s;i(72283),s=i(57410),i=i(6317),t.exports={renderWebGL:s,renderCanvas:i}},57410:(t,e,i)=>{var A=i(73329);t.exports=function(t,e,i,s){var n=e.faces,r=n.length;if(0!==r){i.addToRenderList(e);var o=t.pipelines.set(e.pipeline,e),s=A(e,i,s).calc;t.pipelines.preBatch(e);for(var a=o.setGameObject(e),h=o.vertexViewF32,l=o.vertexViewU32,u=o.vertexCount*o.currentShader.vertexComponentCount-1,c=e.tintFill,d=[],p=e.debugCallback,f=s.a,g=s.b,y=s.c,v=s.d,m=s.e,x=s.f,w=e.viewPosition.z,T=e.hideCCW,b=i.roundPixels,S=i.alpha*e.alpha,P=0,_=0;_{var s=i(56694),n=i(64937),p=i(89980),r=i(94456),f=i(85769),i=new s({Extends:p,Mixins:[n.AlphaSingle,n.BlendMode,n.Depth,n.GetBounds,n.Mask,n.Origin,n.Pipeline,n.PostPipeline,n.ScrollFactor,n.Texture,n.Transform,n.Visible,r],initialize:function(t,e,i,s,n,r,o,a,h,l,u){void 0===r&&(r=256),void 0===o&&(o=256),void 0===a&&(a=10),void 0===h&&(h=10),void 0===l&&(l=0),void 0===u&&(u=0),p.call(this,t,"NineSlice"),this._width,this._height,this._originX=.5,this._originY=.5,this._sizeComponent=!0,this.vertices=[],this.leftWidth,this.rightWidth,this.topHeight,this.bottomHeight,this.tint=16777215,this.tintFill=!1,this.is3Slice=0===l&&0===u;for(var c=this.is3Slice?18:54,d=0;d{var u=i(88933),s=i(99325),c=i(20494),d=i(10850),p=i(44139);s.register("nineslice",function(t,e){var i=c(t=void 0===t?{}:t,"key",null),s=c(t,"frame",null),n=d(t,"width",256),r=d(t,"height",256),o=d(t,"leftWidth",10),a=d(t,"rightWidth",10),h=d(t,"topHeight",0),l=d(t,"bottomHeight",0),i=new p(this.scene,0,0,i,s,n,r,o,a,h,l);return void 0!==e&&(t.add=e),u(this.scene,i,t),i})},53778:(t,e,i)=>{var u=i(44139);i(61286).register("nineslice",function(t,e,i,s,n,r,o,a,h,l){return this.displayList.add(new u(this.scene,t,e,i,s,n,r,o,a,h,l))})},94456:(t,e,i)=>{var s=i(72283),i=i(27420);t.exports={renderWebGL:i,renderCanvas:s}},27420:(t,e,i)=>{var m=i(73329),x=i(75512);t.exports=function(t,e,i,s){var n=e.vertices,r=n.length;if(0!==r){i.addToRenderList(e);var o=t.pipelines.set(e.pipeline,e),a=m(e,i,s,!1).calc,h=(t.pipelines.preBatch(e),o.setGameObject(e)),l=o.vertexViewF32,u=o.vertexViewU32,c=o.vertexCount*o.currentShader.vertexComponentCount-1,d=i.roundPixels,p=e.tintFill,s=i.alpha*e.alpha,f=x.getTintAppendFloatAlpha(e.tint,s),i=o.vertexAvailable(),g=-1;i{var s=i(56694),n=i(93025),r=i(22946),o=i(21902),a=i(4840),h=i(15978),i=new s({Extends:n,initialize:function(t){n.call(this,t,null,!1),this.active=!1,this.easeName="Linear",this.r=[],this.g=[],this.b=[]},getMethod:function(){return null===this.propertyValue?0:9},setMethods:function(){var t=this.propertyValue,e=t,i=this.defaultEmit,s=this.defaultUpdate;if(9===this.method){this.start=t[0],this.ease=o("Linear"),this.interpolation=a("linear"),i=this.easedValueEmit,s=this.easeValueUpdate,e=t[0],this.active=!0;for(var n=0;n{var s=i(17489),n=i(82897),r=i(56694),o=i(61616),a=i(21902),h=i(72632),l=i(4840),u=i(88462),c=i(1071),i=new r({initialize:function(t,e,i){void 0===i&&(i=!1),this.propertyKey=t,this.propertyValue=e,this.defaultValue=e,this.steps=0,this.counter=0,this.yoyo=!1,this.direction=0,this.start=0,this.current=0,this.end=0,this.ease=null,this.interpolation=null,this.emitOnly=i,this.onEmit=this.defaultEmit,this.onUpdate=this.defaultUpdate,this.active=!0,this.method=0,this._onEmit,this._onUpdate},loadConfig:function(t,e){void 0===t&&(t={}),e&&(this.propertyKey=e),this.propertyValue=h(t,this.propertyKey,this.defaultValue),this.method=this.getMethod(),this.setMethods(),this.emitOnly&&(this.onUpdate=this.defaultUpdate)},toJSON:function(){return JSON.stringify(this.propertyValue)},onChange:function(t){switch(this.method){case 1:case 3:case 8:i=t;break;case 2:0<=this.propertyValue.indexOf(t)&&(i=t);break;case 4:var e=(this.end-this.start)/this.steps,i=u(t,e);this.counter=i;break;case 5:case 6:case 7:i=n(t,this.start,this.end);break;case 9:i=this.start[0]}return this.current=i,this},getMethod:function(){var t=this.propertyValue;if(null!==t){var e=typeof t;if("number"==e)return 1;if(Array.isArray(t))return 2;if("function"==e)return 3;if("object"==e){if(this.hasBoth(t,"start","end"))return this.has(t,"steps")?4:5;if(this.hasBoth(t,"min","max"))return 6;if(this.has(t,"random"))return 7;if(this.hasEither(t,"onEmit","onUpdate"))return 8;if(this.has(t,"interpolation"))return 9}}return 0},setMethods:function(){var t=this.propertyValue,e=t,i=this.defaultEmit,s=this.defaultUpdate;switch(this.method){case 1:i=this.staticValueEmit;break;case 2:i=this.randomStaticValueEmit,e=t[0];break;case 3:this._onEmit=t,i=this.proxyEmit;break;case 4:this.start=t.start,this.end=t.end,this.steps=t.steps,this.counter=this.start,this.yoyo=!!this.has(t,"yoyo")&&t.yoyo,this.direction=0,i=this.steppedEmit,e=this.start;break;case 5:this.start=t.start,this.end=t.end;var n=this.has(t,"ease")?t.ease:"Linear";this.ease=a(n,t.easeParams),i=this.has(t,"random")&&t.random?this.randomRangedValueEmit:this.easedValueEmit,s=this.easeValueUpdate,e=this.start;break;case 6:this.start=t.min,this.end=t.max,i=this.has(t,"int")&&t.int?this.randomRangedIntEmit:this.randomRangedValueEmit,e=this.start;break;case 7:n=t.random;Array.isArray(n)&&(this.start=n[0],this.end=n[1]),i=this.randomRangedIntEmit,e=this.start;break;case 8:this._onEmit=this.has(t,"onEmit")?t.onEmit:this.defaultEmit,this._onUpdate=this.has(t,"onUpdate")?t.onUpdate:this.defaultUpdate,i=this.proxyEmit,s=this.proxyUpdate;break;case 9:this.start=t.values;n=this.has(t,"ease")?t.ease:"Linear";this.ease=a(n,t.easeParams),this.interpolation=l(t.interpolation),i=this.easedValueEmit,s=this.easeValueUpdate,e=this.start[0]}return this.onEmit=i,this.onUpdate=s,this.current=e,this},has:function(t,e){return t.hasOwnProperty(e)},hasBoth:function(t,e,i){return t.hasOwnProperty(e)&&t.hasOwnProperty(i)},hasEither:function(t,e,i){return t.hasOwnProperty(e)||t.hasOwnProperty(i)},defaultEmit:function(t,e,i){return i},defaultUpdate:function(t,e,i,s){return s},proxyEmit:function(t,e,i){t=this._onEmit(t,e,i);return this.current=t},proxyUpdate:function(t,e,i,s){t=this._onUpdate(t,e,i,s);return this.current=t},staticValueEmit:function(){return this.current},staticValueUpdate:function(){return this.current},randomStaticValueEmit:function(){var t=Math.floor(Math.random()*this.propertyValue.length);return this.current=this.propertyValue[t],this.current},randomRangedValueEmit:function(t,e){var i=o(this.start,this.end);return t&&t.data[e]&&(t.data[e].min=i,t.data[e].max=this.end),this.current=i},randomRangedIntEmit:function(t,e){var i=s(this.start,this.end);return t&&t.data[e]&&(t.data[e].min=i,t.data[e].max=this.end),this.current=i},steppedEmit:function(){var t,e=this.counter,i=e,s=(this.end-this.start)/this.steps;return this.yoyo?(0===this.direction?(i+=s)>=this.end&&(t=i-this.end,i=this.end-t,this.direction=1):(i-=s)<=this.start&&(t=this.start-i,i=this.start+t,this.direction=0),this.counter=i):this.counter=c(i+s,this.start,this.end),this.current=e},easedValueEmit:function(t,e){return t&&t.data[e]&&((t=t.data[e]).min=this.start,t.max=this.end),this.current=this.start,this.start},easeValueUpdate:function(t,e,i){t=t.data[e],e=this.ease(i),i=this.interpolation?this.interpolation(this.start,e):(t.max-t.min)*e+t.min;return this.current=i},destroy:function(){this.propertyValue=null,this.defaultValue=null,this.ease=null,this.interpolation=null,this._onEmit=null,this._onUpdate=null}});t.exports=i},87811:(t,e,i)=>{var s=i(56694),o=i(72632),a=i(30891),i=new s({Extends:a,initialize:function(t,e,i,s,n){var r;"object"==typeof t?(t=o(r=t,"x",0),e=o(r,"y",0),i=o(r,"power",0),s=o(r,"epsilon",100),n=o(r,"gravity",50)):(void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=100),void 0===n&&(n=50)),a.call(this,t,e,!0),this._gravity=n,this._power=i*n,this._epsilon=s*s},update:function(t,e){var i,s=this.x-t.x,n=this.y-t.y,r=s*s+n*n;0!==r&&(i=Math.sqrt(r),r{var s=i(16569),f=i(82897),n=i(56694),l=i(75606),r=i(74118),u=i(2386),c=i(93736),i=new n({initialize:function(t){this.emitter=t,this.texture=null,this.frame=null,this.x=0,this.y=0,this.worldPosition=new c,this.velocityX=0,this.velocityY=0,this.accelerationX=0,this.accelerationY=0,this.maxVelocityX=1e4,this.maxVelocityY=1e4,this.bounce=0,this.scaleX=1,this.scaleY=1,this.alpha=1,this.angle=0,this.rotation=0,this.tint=16777215,this.life=1e3,this.lifeCurrent=1e3,this.delayCurrent=0,this.holdCurrent=0,this.lifeT=0,this.data={tint:{min:16777215,max:16777215},alpha:{min:1,max:1},rotate:{min:0,max:0},scaleX:{min:1,max:1},scaleY:{min:1,max:1},x:{min:0,max:0},y:{min:0,max:0},accelerationX:{min:0,max:0},accelerationY:{min:0,max:0},maxVelocityX:{min:0,max:0},maxVelocityY:{min:0,max:0},moveToX:{min:0,max:0},moveToY:{min:0,max:0},bounce:{min:0,max:0}},this.isCropped=!1,this.scene=t.scene,this.anims=new s(this),this.bounds=new r},emit:function(t,e,i,s,n,r){return this.emitter.emit(t,e,i,s,n,r)},isAlive:function(){return 0{var s=i(56694),h=i(30891),l=i(74118),i=new s({Extends:h,initialize:function(t,e,i,s,n,r,o,a){void 0===n&&(n=!0),void 0===r&&(r=!0),void 0===o&&(o=!0),void 0===a&&(a=!0),h.call(this,t,e,!0),this.bounds=new l(t,e,i,s),this.collideLeft=n,this.collideRight=r,this.collideTop=o,this.collideBottom=a},update:function(t){var e=this.bounds,i=-t.bounce,s=t.worldPosition;s.xe.right&&this.collideRight&&(t.x-=s.x-e.right,t.velocityX*=i),s.ye.bottom&&this.collideBottom&&(t.y-=s.y-e.bottom,t.velocityY*=i)}});t.exports=i},9216:(t,e,i)=>{var s=i(56694),n=i(64937),r=i(48129),u=i(29538),o=i(69361),c=i(54213),a=i(19737),h=i(93025),p=i(40629),l=i(89980),d=i(72632),f=i(72861),g=i(87811),y=i(53523),v=i(19256),m=i(7782),x=i(71207),w=i(14655),T=i(14909),b=i(68433),S=i(74118),P=i(90205),_=i(66458),E=i(69116),A=i(17922),C=i(69360),M=i(93736),O=i(1071),R=i(73106),D=["active","advance","blendMode","colorEase","deathCallback","deathCallbackScope","duration","emitCallback","emitCallbackScope","follow","frequency","gravityX","gravityY","maxAliveParticles","maxParticles","name","emitting","particleBringToTop","particleClass","radial","sortCallback","sortOrderAsc","sortProperty","stopAfter","tintFill","timeScale","trackVisible","visible"],L=["accelerationX","accelerationY","alpha","angle","bounce","color","delay","hold","lifespan","maxVelocityX","maxVelocityY","moveToX","moveToY","quantity","rotate","scaleX","scaleY","speedX","speedY","tint","x","y"],i=new s({Extends:l,Mixins:[n.AlphaSingle,n.BlendMode,n.Depth,n.Mask,n.Pipeline,n.PostPipeline,n.ScrollFactor,n.Texture,n.Transform,n.Visible,E],initialize:function(t,e,i,s,n){l.call(this,t,"ParticleEmitter"),this.particleClass=T,this.ops={accelerationX:new h("accelerationX",0),accelerationY:new h("accelerationY",0),alpha:new h("alpha",1),angle:new h("angle",{min:0,max:360},!0),bounce:new h("bounce",0),color:new a("color"),delay:new h("delay",0,!0),hold:new h("hold",0,!0),lifespan:new h("lifespan",1e3,!0),maxVelocityX:new h("maxVelocityX",1e4),maxVelocityY:new h("maxVelocityY",1e4),moveToX:new h("moveToX",0),moveToY:new h("moveToY",0),quantity:new h("quantity",1,!0),rotate:new h("rotate",0),scaleX:new h("scaleX",1),scaleY:new h("scaleY",1),speedX:new h("speedX",0,!0),speedY:new h("speedY",0,!0),tint:new h("tint",16777215),x:new h("x",0),y:new h("y",0)},this.radial=!0,this.gravityX=0,this.gravityY=0,this.acceleration=!1,this.moveTo=!1,this.emitCallback=null,this.emitCallbackScope=null,this.deathCallback=null,this.deathCallbackScope=null,this.maxParticles=0,this.maxAliveParticles=0,this.stopAfter=0,this.duration=0,this.frequency=0,this.emitting=!0,this.particleBringToTop=!0,this.timeScale=1,this.emitZones=[],this.deathZones=[],this.viewBounds=null,this.follow=null,this.followOffset=new M,this.trackVisible=!1,this.frames=[],this.randomFrame=!0,this.frameQuantity=1,this.anims=[],this.randomAnim=!0,this.animQuantity=1,this.dead=[],this.alive=[],this.counters=new Float32Array(10),this.skipping=!1,this.worldMatrix=new C,this.sortProperty="",this.sortOrderAsc=!0,this.sortCallback=this.depthSortCallback,this.processors=new x(this),this.tintFill=!1,this.initPipeline(),this.initPostPipeline(),this.setPosition(e,i),this.setTexture(s),n&&this.setConfig(n)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},setConfig:function(t){if(t){for(var e,i=0,s="",n=this.ops,i=0;i=this.animQuantity&&(this.animCounter=0,this.currentAnim=O(this.currentAnim+1,0,e-1)),t)},setAnim:function(t,e,i){void 0===i&&(i=1),this.randomAnim=e=void 0===e?!0:e,this.animQuantity=i,this.currentAnim=0;var e=typeof t;return this.anims.length=0,Array.isArray(t)?this.anims=this.anims.concat(t):"string"==e?this.anims.push(t):"object"==e&&((t=d(e=t,"anims",null))&&(this.anims=this.anims.concat(t)),t=d(e,"cycle",!1),this.randomAnim=!t,this.animQuantity=d(e,"quantity",i)),1===this.anims.length&&(this.animQuantity=1,this.randomAnim=!1),this},setRadial:function(t){return this.radial=t=void 0===t?!0:t,this},addParticleBounds:function(t,e,i,s,n,r,o,a){var h;return"object"==typeof t&&(t=(h=t).x,e=h.y,i=v(h,"w")?h.w:h.width,s=v(h,"h")?h.h:h.height),this.addParticleProcessor(new R(t,e,i,s,n,r,o,a))},setParticleSpeed:function(t,e){return void 0===e&&(e=t),this.ops.speedX.onChange(t),t===e?this.ops.speedY.active=!1:this.ops.speedY.onChange(e),this.radial=!0,this},setParticleScale:function(t,e){return void 0===t&&(t=1),void 0===e&&(e=t),this.ops.scaleX.onChange(t),this.ops.scaleY.onChange(e),this},setParticleGravity:function(t,e){return this.gravityX=t,this.gravityY=e,this},setParticleAlpha:function(t){return this.ops.alpha.onChange(t),this},setParticleTint:function(t){return this.ops.tint.onChange(t),this},setEmitterAngle:function(t){return this.ops.angle.onChange(t),this},setParticleLifespan:function(t){return this.ops.lifespan.onChange(t),this},setQuantity:function(t){return this.quantity=t,this},setFrequency:function(t,e){return this.frequency=t,this.flowCounter=0this.maxParticles&&(t=this.maxParticles-(e+t));for(var s=0;s=this.maxParticles||0=this.maxAliveParticles},onParticleEmit:function(t,e){return void 0===t?(this.emitCallback=null,this.emitCallbackScope=null):"function"==typeof t&&(this.emitCallback=t,e)&&(this.emitCallbackScope=e),this},onParticleDeath:function(t,e){return void 0===t?(this.deathCallback=null,this.deathCallbackScope=null):"function"==typeof t&&(this.deathCallback=t,e)&&(this.deathCallbackScope=e),this},killAll:function(){for(var t=this.dead,e=this.alive;0=n))break;if(this.atLimit())break}return h}},fastForward:function(t,e){void 0===e&&(e=1e3/60);var i=0;for(this.skipping=!0;i=this.duration)&&this.stop(),0=this.stopAfter&&this.stop())}else 1===this.completeFlag&&0===n.length&&(this.completeFlag=0,this.emit(p.COMPLETE,this))},overlap:function(t){for(var e=this.getWorldTransformMatrix(),i=this.alive,s=i.length,n=[],r=0;r{var b=i(90205),i=i(69360),S=new i,P=new i,_=new i,E=new i;t.exports=function(t,e,i,s){var n=S,r=P,o=_,a=E,h=(s?(a.loadIdentity(),a.multiply(s),a.translate(e.x,e.y),a.rotate(e.rotation),a.scale(e.scaleX,e.scaleY)):a.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY),t.currentContext),l=i.roundPixels,u=i.alpha,c=e.alpha,d=e.alive,p=d.length,s=e.viewBounds;if(e.visible&&0!==p&&(!s||b(s,i.worldView))){e.sortCallback&&e.depthSort(),i.addToRenderList(e);var f=e.scrollFactorX,g=e.scrollFactorY;h.save(),h.globalCompositeOperation=t.blendModes[e.blendMode];for(var y=0;y{var n=i(88933),s=i(99325),r=i(20494),o=i(72632),a=i(9216);s.register("particles",function(t,e){var i=r(t=void 0===t?{}:t,"key",null),s=o(t,"config",null),i=new a(this.scene,0,0,i);return void 0!==e&&(t.add=e),n(this.scene,i,t),s&&i.setConfig(s),i})},81212:(t,e,i)=>{var s=i(61286),n=i(9216);s.register("particles",function(t,e,i,s){return this.displayList.add(new n(this.scene,t,e,i,s))})},69116:(t,e,i)=>{var s;i(72283),s=i(10275),i=i(10456),t.exports={renderWebGL:s,renderCanvas:i}},10275:(t,e,i)=>{var P=i(90205),s=i(69360),_=i(75512),E=new s,A=new s,C=new s,M=new s;t.exports=function(t,e,i,s){var n=t.pipelines.set(e.pipeline),r=E,o=A,a=C,h=M,l=(s?(h.loadIdentity(),h.multiply(s),h.translate(e.x,e.y),h.rotate(e.rotation),h.scale(e.scaleX,e.scaleY)):h.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY),i.roundPixels),u=_.getTintAppendFloatAlpha,c=i.alpha,d=e.alpha,p=e.frame.glTexture,f=(t.pipelines.preBatch(e),e.alive),g=f.length,s=e.viewBounds;if(0!==g&&(!s||P(s,i.worldView))){e.sortCallback&&e.depthSort();var y=n.setGameObject(e,e.frame);i.addToRenderList(e),r.copyFrom(i.matrix),r.multiplyWithOffset(h,-i.scrollX*e.scrollFactorX,-i.scrollY*e.scrollFactorY),t.setBlendMode(e.blendMode),e.mask&&(e.mask.preRenderWebGL(t,e,i),t.pipelines.set(e.pipeline));for(var v=e.tintFill,m=0;m{i=new(i(56694))({initialize:function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=!0),this.emitter,this.x=t=void 0===t?0:t,this.y=e,this.active=i},update:function(){},destroy:function(){this.emitter=null}});t.exports=i},76100:t=>{t.exports="complete"},26677:t=>{t.exports="deathzone"},62736:t=>{t.exports="explode"},56490:t=>{t.exports="start"},85715:t=>{t.exports="stop"},40629:(t,e,i)=>{t.exports={COMPLETE:i(76100),DEATH_ZONE:i(26677),EXPLODE:i(62736),START:i(56490),STOP:i(85715)}},27684:(t,e,i)=>{t.exports={EmitterColorOp:i(19737),EmitterOp:i(93025),Events:i(40629),GravityWell:i(87811),Particle:i(14909),ParticleBounds:i(73106),ParticleEmitter:i(9216),ParticleProcessor:i(30891),Zones:i(25962)}},69361:(t,e,i)=>{i=new(i(56694))({initialize:function(t,e){this.source=t,this.killOnEnter=e},willKill:function(t){t=t.worldPosition,t=this.source.contains(t.x,t.y);return t&&this.killOnEnter||!t&&!this.killOnEnter}});t.exports=i},54213:(t,e,i)=>{i=new(i(56694))({initialize:function(t,e,i,s,n,r){void 0===s&&(s=!1),void 0===n&&(n=!0),void 0===r&&(r=-1),this.source=t,this.points=[],this.quantity=e,this.stepRate=i,this.yoyo=s,this.counter=-1,this.seamless=n,this._length=0,this._direction=0,this.total=r,this.updateSource()},updateSource:function(){this.points=this.source.getPoints(this.quantity,this.stepRate),this.seamless&&(e=this.points[0],t=this.points[this.points.length-1],e.x===t.x)&&e.y===t.y&&this.points.pop();var t,e=this._length;return this._length=this.points.length,this._lengththis._length&&(this.counter=this._length-1),this},changeSource:function(t){return this.source=t,this.updateSource()},getPoint:function(t){0===this._direction?(this.counter++,this.counter>=this._length&&(this.yoyo?(this._direction=1,this.counter=this._length-1):this.counter=0)):(this.counter--,-1===this.counter&&(this.yoyo?(this._direction=0,this.counter=0):this.counter=this._length-1));var e=this.points[this.counter];e&&(t.x=e.x,t.y=e.y)}});t.exports=i},68433:(t,e,i)=>{var s=i(56694),n=i(93736),i=new s({initialize:function(t){this.source=t,this._tempVec=new n,this.total=-1},getPoint:function(t){var e=this._tempVec;this.source.getRandomPoint(e),t.x=e.x,t.y=e.y}});t.exports=i},25962:(t,e,i)=>{t.exports={DeathZone:i(69361),EdgeZone:i(54213),RandomZone:i(68433)}},29598:(t,e,i)=>{var s=i(56694),n=i(64937),o=i(13747),i=new s({Extends:o,Mixins:[n.PathFollower],initialize:function(t,e,i,s,n,r){o.call(this,t,i,s,n,r),this.path=e},preUpdate:function(t,e){this.anims.update(t,e),this.pathUpdate(t)}});t.exports=i},19626:(t,e,i)=>{var s=i(61286),r=i(29598);s.register("follower",function(t,e,i,s,n){t=new r(this.scene,t,e,i,s,n);return this.displayList.add(t),this.updateList.add(t),t})},33412:(t,e,i)=>{var h=i(16569),s=i(56694),n=i(99425),d=i(15978),l=i(83321),p=i(76583),i=new s({Extends:l,initialize:function(t,e,i,s,n,r,o,a){l.call(this,t,e,i,s=s||"__DEFAULT",n),this.type="Plane",this.anims=new h(this),this.gridWidth,this.gridHeight,this.isTiled,this._checkerboard=null,this.hideCCW=!1,this.setGridSize(r,o,a),this.setSizeToFrame(!1),this.setViewHeight()},setGridSize:function(t,e,i){void 0===e&&(e=8);var s=(i=void 0===i?!1:i)?!0:!1;return this.gridWidth=t=void 0===t?8:t,this.gridHeight=e,this.isTiled=i,this.clear(),n({mesh:this,widthSegments:t,heightSegments:e,isOrtho:!1,tile:i,flipY:s}),this},setSizeToFrame:function(t){void 0===t&&(t=!0);var e=this.frame;if(this.setPerspective(this.width/e.width,this.height/e.height),this._checkerboard&&this._checkerboard!==this.texture&&this.removeCheckerboard(),t){var i,s=this.gridWidth,n=this.gridHeight,r=this.vertices,o=e.u0,a=e.u1,h=e.v0,l=e.v1,u=0;if(this.isTiled)for(h=e.v1,l=e.v0,y=0;y{var a=i(88933),h=i(32291),s=i(99325),l=i(20494),u=i(10850),c=i(33412);s.register("plane",function(t,e){var i=l(t=void 0===t?{}:t,"key",null),s=l(t,"frame",null),n=u(t,"width",8),r=u(t,"height",8),o=u(t,"tile",!1),i=new c(this.scene,0,0,i,s,n,r,o),s=(void 0!==e&&(t.add=e),u(t,"checkerboard",null));return s&&(n=u(s,"color1",16777215),r=u(s,"color2",255),o=u(s,"alpha1",255),e=u(s,"alpha2",255),s=u(s,"height",128),i.createCheckerboard(n,r,o,e,s)),a(this.scene,i,t),h(i,t),i})},58322:(t,e,i)=>{var a=i(33412);i(61286).register("plane",function(t,e,i,s,n,r,o){return this.displayList.add(new a(this.scene,t,e,i,s,n,r,o))})},13171:(t,e,i)=>{var s=i(56694),n=i(64937),a=i(89980),h=i(74853),l=i(65641),i=i(71606),s=new s({Extends:a,Mixins:[n.AlphaSingle,n.BlendMode,n.Depth,n.Mask,n.Pipeline,n.PostPipeline,n.ScrollFactor,n.Transform,n.Visible,i],initialize:function(t,e,i,s,n,r,o){void 0===s&&(s=16777215),void 0===n&&(n=128),void 0===r&&(r=1),void 0===o&&(o=.1),a.call(this,t,"PointLight"),this.initPipeline(l.POINTLIGHT_PIPELINE),this.initPostPipeline(),this.setPosition(e,i),this.color=h(s),this.intensity=r,this.attenuation=o,this.width=2*n,this.height=2*n,this._radius=n},radius:{get:function(){return this._radius},set:function(t){this._radius=t,this.width=2*t,this.height=2*t}},originX:{get:function(){return.5}},originY:{get:function(){return.5}},displayOriginX:{get:function(){return this._radius}},displayOriginY:{get:function(){return this._radius}}});t.exports=s},162:(t,e,i)=>{var o=i(88933),s=i(99325),a=i(20494),h=i(13171);s.register("pointlight",function(t,e){var i=a(t=void 0===t?{}:t,"color",16777215),s=a(t,"radius",128),n=a(t,"intensity",1),r=a(t,"attenuation",.1),i=new h(this.scene,0,0,i,s,n,r);return void 0!==e&&(t.add=e),o(this.scene,i,t),i})},91201:(t,e,i)=>{var s=i(61286),o=i(13171);s.register("pointlight",function(t,e,i,s,n,r){return this.displayList.add(new o(this.scene,t,e,i,s,n,r))})},71606:(t,e,i)=>{var s=i(72283),i=i(80590);t.exports={renderWebGL:i,renderCanvas:s}},80590:(t,e,i)=>{var y=i(73329);t.exports=function(t,e,i,s){i.addToRenderList(e);var n=t.pipelines.set(e.pipeline),s=y(e,i,s).calc,r=e.width,o=e.height,a=-e._radius,h=-e._radius,r=a+r,o=h+o,l=s.getX(0,0),u=s.getY(0,0),c=s.getX(a,h),d=s.getY(a,h),p=s.getX(a,o),a=s.getY(a,o),f=s.getX(r,o),o=s.getY(r,o),g=s.getX(r,h),s=s.getY(r,h);t.pipelines.preBatch(e),n.batchPointLight(e,i,c,d,p,a,f,o,g,s,l,u),t.pipelines.postBatch(e)}},15996:(t,e,i)=>{var s=i(56694),r=i(845),o=i(1539),i=new s({Extends:o,initialize:function(t,e,i,s,n){void 0===e&&(e=0),void 0===i&&(i=0);s=new r(t.sys.textures,"",s=void 0===s?32:s,n=void 0===n?32:n);o.call(this,t,e,i,s),this.type="RenderTexture",this.camera=this.texture.camera,this._saved=!1},setSize:function(t,e){this.width=t,this.height=e,this.texture.setSize(t,e),this.updateDisplayOrigin();var i=this.input;return i&&!i.customHitArea&&(i.hitArea.width=t,i.hitArea.height=e),this},resize:function(t,e){return this.setSize(t,e),this},saveTexture:function(t){var e=this.texture;return e.key=t,e.manager.addDynamicTexture(e)&&(this._saved=!0),e},fill:function(t,e,i,s,n,r){return this.texture.fill(t,e,i,s,n,r),this},clear:function(){return this.texture.clear(),this},stamp:function(t,e,i,s,n){return this.texture.stamp(t,e,i,s,n),this},erase:function(t,e,i){return this.texture.erase(t,e,i),this},draw:function(t,e,i,s,n){return this.texture.draw(t,e,i,s,n),this},drawFrame:function(t,e,i,s,n,r){return this.texture.drawFrame(t,e,i,s,n,r),this},repeat:function(t,e,i,s,n,r,o,a,h){return this.texture.repeat(t,e,i,s,n,r,o,a,h),this},beginDraw:function(){return this.texture.beginDraw(),this},batchDraw:function(t,e,i,s,n){return this.texture.batchDraw(t,e,i,s,n),this},batchDrawFrame:function(t,e,i,s,n,r){return this.texture.batchDrawFrame(t,e,i,s,n,r),this},endDraw:function(t){return this.texture.endDraw(t),this},snapshotArea:function(t,e,i,s,n,r,o){return this.texture.snapshotArea(t,e,i,s,n,r,o),this},snapshot:function(t,e,i){return this.snapshotArea(0,0,this.width,this.height,t,e,i)},snapshotPixel:function(t,e,i){return this.snapshotArea(t,e,1,1,i,"pixel")},preDestroy:function(){this._saved||this.texture.destroy()}});t.exports=i},85692:(t,e,i)=>{var o=i(88933),s=i(99325),a=i(20494),h=i(15996);s.register("renderTexture",function(t,e){var i=a(t=void 0===t?{}:t,"x",0),s=a(t,"y",0),n=a(t,"width",32),r=a(t,"height",32),i=new h(this.scene,i,s,n,r);return void 0!==e&&(t.add=e),o(this.scene,i,t),i})},29599:(t,e,i)=>{var s=i(61286),n=i(15996);s.register("renderTexture",function(t,e,i,s){return this.displayList.add(new n(this.scene,t,e,i,s))})},79968:(t,e,i)=>{var l=i(16569),s=i(56694),n=i(64937),u=i(89980),c=i(65641),r=i(58912),d=i(93736),i=new s({Extends:u,Mixins:[n.AlphaSingle,n.BlendMode,n.Depth,n.Flip,n.Mask,n.Pipeline,n.PostPipeline,n.Size,n.Texture,n.Transform,n.Visible,n.ScrollFactor,r],initialize:function(t,e,i,s,n,r,o,a,h){void 0===s&&(s="__DEFAULT"),void 0===r&&(r=2),void 0===o&&(o=!0),u.call(this,t,"Rope"),this.anims=new l(this),this.points=r,this.vertices,this.uv,this.colors,this.alphas,this.tintFill="__DEFAULT"===s,this.dirty=!1,this.horizontal=o,this._flipX=!1,this._flipY=!1,this._perp=new d,this.debugCallback=null,this.debugGraphic=null,this.setTexture(s,n),this.setPosition(e,i),this.setSizeToFrame(),this.initPipeline(c.ROPE_PIPELINE),Array.isArray(r)&&this.resizeArrays(r.length),this.setPoints(r,a,h),this.updateVertices()},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},preUpdate:function(t,e){var i=this.anims.currentFrame;this.anims.update(t,e),this.anims.currentFrame!==i&&(this.updateUVs(),this.updateVertices())},play:function(t,e,i){return this.anims.play(t,e,i),this},setDirty:function(){return this.dirty=!0,this},setHorizontal:function(t,e,i){return void 0===t&&(t=this.points.length),this.horizontal?this:(this.horizontal=!0,this.setPoints(t,e,i))},setVertical:function(t,e,i){return void 0===t&&(t=this.points.length),this.horizontal?(this.horizontal=!1,this.setPoints(t,e,i)):this},setTintFill:function(t){return this.tintFill=t=void 0===t?!1:t,this},setAlphas:function(t,e){var i=this.points.length;if(!(i<1)){var s=this.alphas,n=(void 0===t?t=[1]:Array.isArray(t)||void 0!==e||(t=[t]),0);if(void 0!==e)for(o=0;o(n=2*o)&&(r=t[n]),s[n]=r,t.length>n+1&&(r=t[n+1]),s[n+1]=r}return this},setColors:function(t){var e=this.points.length;if(!(e<1)){var i=this.colors,s=(void 0===t?t=[16777215]:Array.isArray(t)||(t=[t]),0);if(t.length===e)for(r=0;r(s=2*r)&&(n=t[s]),i[s]=n,t.length>s+1&&(n=t[s+1]),i[s+1]=n}return this},setPoints:function(t,e,i){if("number"==typeof(t=void 0===t?2:t)){var s,n,r,o=t;if(o<2&&(o=2),t=[],this.horizontal)for(r=-this.frame.halfWidth,n=this.frame.width/(o-1),s=0;s{t.exports=function(){}},96027:(t,e,i)=>{var h=i(88933),s=i(99325),l=i(20494),u=i(10850),c=i(79968);s.register("rope",function(t,e){var i=l(t=void 0===t?{}:t,"key",null),s=l(t,"frame",null),n=l(t,"horizontal",!0),r=u(t,"points",void 0),o=u(t,"colors",void 0),a=u(t,"alphas",void 0),i=new c(this.scene,0,0,i,s,r,n,o,a);return void 0!==e&&(t.add=e),h(this.scene,i,t),i})},31982:(t,e,i)=>{var h=i(79968);i(61286).register("rope",function(t,e,i,s,n,r,o,a){return this.displayList.add(new h(this.scene,t,e,i,s,n,r,o,a))})},58912:(t,e,i)=>{var s;i(72283),s=i(49489),i=i(44598),t.exports={renderWebGL:s,renderCanvas:i}},49489:(t,e,i)=>{var E=i(73329),A=i(75512);t.exports=function(t,e,i,s){i.addToRenderList(e);var n=t.pipelines.set(e.pipeline,e),r=E(e,i,s).calc,o=e.vertices,a=e.uv,h=e.colors,l=e.alphas,u=e.alpha,c=A.getTintAppendFloatAlpha,d=i.roundPixels,p=o.length,s=Math.floor(.5*p),f=(n.flush(),t.pipelines.preBatch(e),n.setGameObject(e)),g=n.vertexViewF32,y=n.vertexViewU32,v=n.vertexCount*n.currentShader.vertexComponentCount-1,m=0,x=e.tintFill;e.dirty&&e.updateVertices();for(var w=e.debugCallback,T=[],b=0;b{var s=i(56694),n=i(64937),h=i(89980),u=i(72632),r=i(98611),o=i(22440),a=i(24252),l=i(69360),i=new s({Extends:h,Mixins:[n.ComputedSize,n.Depth,n.GetBounds,n.Mask,n.Origin,n.ScrollFactor,n.Transform,n.Visible,a],initialize:function(t,e,i,s,n,r,o,a){void 0===i&&(i=0),void 0===s&&(s=0),void 0===n&&(n=128),void 0===r&&(r=128),h.call(this,t,"Shader"),this.blendMode=-1,this.shader;t=t.sys.renderer;this.renderer=t,this.gl=t.gl,this.vertexData=new ArrayBuffer(2*Float32Array.BYTES_PER_ELEMENT*6),this.vertexBuffer=t.createVertexBuffer(this.vertexData.byteLength,this.gl.STREAM_DRAW),this.program=null,this.bytes=new Uint8Array(this.vertexData),this.vertexViewF32=new Float32Array(this.vertexData),this._tempMatrix1=new l,this._tempMatrix2=new l,this._tempMatrix3=new l,this.viewMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this.projectionMatrix=new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1]),this.uniforms={},this.pointer=null,this._rendererWidth=t.width,this._rendererHeight=t.height,this._textureCount=0,this.framebuffer=null,this.glTexture=null,this.renderToTexture=!1,this.texture=null,this.setPosition(i,s),this.setSize(n,r),this.setOrigin(.5,.5),this.setShader(e,o,a)},willRender:function(t){return!!this.renderToTexture||!(h.RENDER_MASK!==this.renderFlags||0!==this.cameraFilter&&this.cameraFilter&t.id)},setRenderToTexture:function(t,e){var i,s,n;return void 0===e&&(e=!1),this.renderToTexture||(i=this.width,s=this.height,n=this.renderer,this.glTexture=n.createTextureFromSource(null,i,s,0),this.glTexture.flipY=e,this.framebuffer=n.createFramebuffer(i,s,this.glTexture,!1),this._rendererWidth=i,this._rendererHeight=s,this.renderToTexture=!0,this.projOrtho(0,this.width,this.height,0),t&&(this.texture=this.scene.sys.textures.addGLTexture(t,this.glTexture,i,s))),this.shader&&(n.pipelines.clear(),this.load(),this.flush(),n.pipelines.rebind()),this},setShader:function(t,e,i){if(void 0===e&&(e=[]),"string"==typeof t){var s=this.scene.sys.cache.shader;if(!s.has(t))return this;this.shader=s.get(t)}else this.shader=t;s=this.gl,t=this.renderer,this.program&&s.deleteProgram(this.program),t=t.createProgram(this.shader.vertexSrc,this.shader.fragmentSrc),s.uniformMatrix4fv(s.getUniformLocation(t,"uViewMatrix"),!1,this.viewMatrix),s.uniformMatrix4fv(s.getUniformLocation(t,"uProjectionMatrix"),!1,this.projectionMatrix),s.uniform2f(s.getUniformLocation(t,"uResolution"),this.width,this.height),this.program=t,s=new Date,t={resolution:{type:"2f",value:{x:this.width,y:this.height}},time:{type:"1f",value:0},mouse:{type:"2f",value:{x:this.width/2,y:this.height/2}},date:{type:"4fv",value:[s.getFullYear(),s.getMonth(),s.getDate(),60*s.getHours()*60+60*s.getMinutes()+s.getSeconds()]},sampleRate:{type:"1f",value:44100},iChannel0:{type:"sampler2D",value:null,textureData:{repeat:!0}},iChannel1:{type:"sampler2D",value:null,textureData:{repeat:!0}},iChannel2:{type:"sampler2D",value:null,textureData:{repeat:!0}},iChannel3:{type:"sampler2D",value:null,textureData:{repeat:!0}}};this.shader.uniforms?this.uniforms=r(!0,{},this.shader.uniforms,t):this.uniforms=t;for(var n=0;n<4;n++)e[n]&&this.setSampler2D("iChannel"+n,e[n],n,i);return this.initUniforms(),this.projOrtho(0,this._rendererWidth,this._rendererHeight,0),this},setPointer:function(t){return this.pointer=t,this},projOrtho:function(t,e,i,s){var n=1/(t-e),r=1/(i-s),o=this.projectionMatrix,t=(o[0]=-2*n,o[5]=-2*r,o[10]=-.001,o[12]=(t+e)*n,o[13]=(s+i)*r,o[14]=-0,this.program),n=this.gl;this.renderer.setProgram(t),n.uniformMatrix4fv(n.getUniformLocation(t,"uProjectionMatrix"),!1,this.projectionMatrix),this._rendererWidth=e,this._rendererHeight=i},initUniforms:function(){var t,e=this.gl,i=this.renderer.glFuncMap,s=this.program;for(t in this._textureCount=0,this.uniforms){var n=this.uniforms[t],r=n.type,o=i[r];n.uniformLocation=e.getUniformLocation(s,t),"sampler2D"!==r&&(n.glMatrix=o.matrix,n.glValueLength=o.length,n.glFunc=o.func)}},setSampler2DBuffer:function(t,e,i,s,n,r){void 0===n&&(n=0),void 0===r&&(r={});t=this.uniforms[t];return t.value=e,r.width=i,r.height=s,t.textureData=r,this._textureCount=n,this.initSampler2D(t),this},setSampler2D:function(t,e,i,s){void 0===i&&(i=0);var n=this.scene.sys.textures;if(n.exists(e)){n=n.getFrame(e);if(n.glTexture&&n.glTexture.isRenderTexture)return this.setSampler2DBuffer(t,n.glTexture,n.width,n.height,i,s);var t=this.uniforms[t],r=n.source;t.textureKey=e,t.source=r.image,t.value=n.glTexture,r.isGLTexture&&((s=s||{}).width=r.width,s.height=r.height),s&&(t.textureData=s),this._textureCount=i,this.initSampler2D(t)}return this},setUniform:function(t,e){return o(this.uniforms,t,e),this},getUniform:function(t){return u(this.uniforms,t,null)},setChannel0:function(t,e){return this.setSampler2D("iChannel0",t,0,e)},setChannel1:function(t,e){return this.setSampler2D("iChannel1",t,1,e)},setChannel2:function(t,e){return this.setSampler2D("iChannel2",t,2,e)},setChannel3:function(t,e){return this.setSampler2D("iChannel3",t,3,e)},initSampler2D:function(t){var e,i,s,n,r,o,a,h,l;t.value&&((e=this.gl).activeTexture(e.TEXTURE0+this._textureCount),e.bindTexture(e.TEXTURE_2D,t.value),(l=t.textureData)&&!t.value.isRenderTexture&&(i=e[u(l,"magFilter","linear").toUpperCase()],s=e[u(l,"minFilter","linear").toUpperCase()],n=e[u(l,"wrapS","repeat").toUpperCase()],r=e[u(l,"wrapT","repeat").toUpperCase()],o=e[u(l,"format","rgba").toUpperCase()],l.repeat&&(n=e.REPEAT,r=e.REPEAT),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,!!l.flipY),l.width?(a=u(l,"width",512),h=u(l,"height",2),l=u(l,"border",0),e.texImage2D(e.TEXTURE_2D,0,o,a,h,l,o,e.UNSIGNED_BYTE,null)):e.texImage2D(e.TEXTURE_2D,0,o,e.RGBA,e.UNSIGNED_BYTE,t.source),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,i),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,s),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,n),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,r)),this.renderer.setProgram(this.program),e.uniform1i(t.uniformLocation,this._textureCount),this._textureCount++)},syncUniforms:function(){var t,e,i,s,n,r,o=this.gl,a=this.uniforms,h=0;for(r in a)i=(t=a[r]).glFunc,e=t.glValueLength,s=t.uniformLocation,null!==(n=t.value)&&(1===e?t.glMatrix?i.call(o,s,t.transpose,n):i.call(o,s,n):2===e?i.call(o,s,n.x,n.y):3===e?i.call(o,s,n.x,n.y,n.z):4===e?i.call(o,s,n.x,n.y,n.z,n.w):"sampler2D"===t.type&&(o.activeTexture(o.TEXTURE0+h),o.bindTexture(o.TEXTURE_2D,n),o.uniform1i(s,h),h++))},load:function(t){var e=this.gl,i=this.width,s=this.height,n=this.renderer,r=this.program,o=this.viewMatrix,t=(this.renderToTexture||(a=-this._displayOriginX,h=-this._displayOriginY,o[0]=t[0],o[1]=t[1],o[4]=t[2],o[5]=t[3],o[8]=t[4],o[9]=t[5],o[12]=o[0]*a+o[4]*h,o[13]=o[1]*a+o[5]*h),e.useProgram(r),e.uniformMatrix4fv(e.getUniformLocation(r,"uViewMatrix"),!1,o),e.uniform2f(e.getUniformLocation(r,"uResolution"),this.width,this.height),this.uniforms),a=t.resolution,h=(a.value.x=i,a.value.y=s,t.time.value=n.game.loop.getDuration(),this.pointer);h&&(o=t.mouse,e=h.x/i,r=1-h.y/s,o.value.x=e.toFixed(2),o.value.y=r.toFixed(2)),this.syncUniforms()},flush:function(){var t=this.width,e=this.height,i=this.program,s=this.gl,n=this.vertexBuffer,r=this.renderer,o=2*Float32Array.BYTES_PER_ELEMENT,n=(this.renderToTexture&&(r.setFramebuffer(this.framebuffer),s.clearColor(0,0,0,0),s.clear(s.COLOR_BUFFER_BIT)),s.bindBuffer(s.ARRAY_BUFFER,n),s.getAttribLocation(i,"inPosition")),i=(-1!==n&&(s.enableVertexAttribArray(n),s.vertexAttribPointer(n,2,s.FLOAT,!1,o,0)),this.vertexViewF32);i[3]=e,i[4]=t,i[5]=e,i[8]=t,i[9]=e,i[10]=t,s.bufferSubData(s.ARRAY_BUFFER,0,this.bytes.subarray(0,6*o)),s.drawArrays(s.TRIANGLES,0,6),this.renderToTexture&&r.setFramebuffer(null,!1)},setAlpha:function(){},setBlendMode:function(){},preDestroy:function(){var t=this.gl;t.deleteProgram(this.program),t.deleteBuffer(this.vertexBuffer),this.renderToTexture&&(this.renderer.deleteFramebuffer(this.framebuffer),this.texture.destroy(),this.framebuffer=null,this.glTexture=null,this.texture=null)}});t.exports=i},10612:t=>{t.exports=function(){}},13908:(t,e,i)=>{var a=i(88933),s=i(99325),h=i(20494),l=i(27902);s.register("shader",function(t,e){var i=h(t=void 0===t?{}:t,"key",null),s=h(t,"x",0),n=h(t,"y",0),r=h(t,"width",128),o=h(t,"height",128),i=new l(this.scene,i,s,n,r,o);return void 0!==e&&(t.add=e),a(this.scene,i,t),i})},51979:(t,e,i)=>{var a=i(27902);i(61286).register("shader",function(t,e,i,s,n,r,o){return this.displayList.add(new a(this.scene,t,e,i,s,n,r,o))})},24252:(t,e,i)=>{var s;i(72283),s=i(19782),i=i(10612),t.exports={renderWebGL:s,renderCanvas:i}},19782:(t,e,i)=>{var n=i(73329);t.exports=function(t,e,i,s){e.shader&&(i.addToRenderList(e),t.pipelines.clear(),e.renderToTexture?e.load():(i=n(e,i,s).calc,t.width===e._rendererWidth&&t.height===e._rendererHeight||e.projOrtho(0,t.width,t.height,0),e.load(i.matrix)),e.flush(),t.pipelines.rebind())}},19543:(t,e,i)=>{var v=i(75512);t.exports=function(t,e,i,s,n,r){for(var o=v.getTintAppendFloatAlpha(i.fillColor,i.fillAlpha*s),a=i.pathData,h=i.pathIndexes,l=0;l{t.exports=function(t,e,i,s){i=i||e.fillColor,s=s||e.fillAlpha;t.fillStyle="rgba("+((16711680&i)>>>16)+","+((65280&i)>>>8)+","+(255&i)+","+s+")"}},17876:t=>{t.exports=function(t,e,i,s){i=i||e.strokeColor,s=s||e.strokeAlpha;t.strokeStyle="rgba("+((16711680&i)>>>16)+","+((65280&i)>>>8)+","+(255&i)+","+s+")",t.lineWidth=e.lineWidth}},91461:(t,e,i)=>{var s=i(56694),n=i(64937),r=i(89980),o=i(88829),i=new s({Extends:r,Mixins:[n.AlphaSingle,n.BlendMode,n.Depth,n.GetBounds,n.Mask,n.Origin,n.Pipeline,n.PostPipeline,n.ScrollFactor,n.Transform,n.Visible],initialize:function(t,e,i){r.call(this,t,e=void 0===e?"Shape":e),this.geom=i,this.pathData=[],this.pathIndexes=[],this.fillColor=16777215,this.fillAlpha=1,this.strokeColor=16777215,this.strokeAlpha=1,this.lineWidth=1,this.isFilled=!1,this.isStroked=!1,this.closePath=!0,this._tempLine=new o,this.width=0,this.height=0,this.initPipeline(),this.initPostPipeline()},setFillStyle:function(t,e){return void 0===e&&(e=1),void 0===t?this.isFilled=!1:(this.fillColor=t,this.fillAlpha=e,this.isFilled=!0),this},setStrokeStyle:function(t,e,i){return void 0===i&&(i=1),void 0===t?this.isStroked=!1:(this.lineWidth=t,this.strokeColor=e,this.strokeAlpha=i,this.isStroked=!0),this},setClosePath:function(t){return this.closePath=t,this},setSize:function(t,e){return this.width=t,this.height=e,this},setDisplaySize:function(t,e){return this.displayWidth=t,this.displayHeight=e,this},preDestroy:function(){this.geom=null,this._tempLine=null,this.pathData=[],this.pathIndexes=[]},displayWidth:{get:function(){return this.scaleX*this.width},set:function(t){this.scaleX=t/this.width}},displayHeight:{get:function(){return this.scaleY*this.height},set:function(t){this.scaleY=t/this.height}}});t.exports=i},50262:(t,e,i)=>{var g=i(75512);t.exports=function(t,e,i,s,n){var r=t.strokeTint,i=g.getTintAppendFloatAlpha(e.strokeColor,e.strokeAlpha*i),o=(r.TL=i,r.TR=i,r.BL=i,r.BR=i,e.pathData),a=o.length-1,h=e.lineWidth,l=h/2,u=o[0]-s,c=o[1]-n;e.closePath||(a-=2);for(var d=2;d{var s=i(2213),n=i(56694),l=i(75606),u=i(11117),c=i(26673),d=i(83392),p=i(91461),i=new n({Extends:p,Mixins:[s],initialize:function(t,e,i,s,n,r,o,a,h){void 0===e&&(e=0),void 0===i&&(i=0),void 0===n&&(n=0),void 0===r&&(r=360),void 0===o&&(o=!1),p.call(this,t,"Arc",new c(0,0,s=void 0===s?128:s)),this._startAngle=n,this._endAngle=r,this._anticlockwise=o,this._iterations=.01,this.setPosition(e,i);t=2*this.geom.radius;this.setSize(t,t),void 0!==a&&this.setFillStyle(a,h),this.updateDisplayOrigin(),this.updateData()},iterations:{get:function(){return this._iterations},set:function(t){this._iterations=t,this.updateData()}},radius:{get:function(){return this.geom.radius},set:function(t){t=2*(this.geom.radius=t);this.setSize(t,t),this.updateDisplayOrigin(),this.updateData()}},startAngle:{get:function(){return this._startAngle},set:function(t){this._startAngle=t,this.updateData()}},endAngle:{get:function(){return this._endAngle},set:function(t){this._endAngle=t,this.updateData()}},anticlockwise:{get:function(){return this._anticlockwise},set:function(t){this._anticlockwise=t,this.updateData()}},setRadius:function(t){return this.radius=t,this},setIterations:function(t){return this.iterations=t=void 0===t?.01:t,this},setStartAngle:function(t,e){return this._startAngle=t,void 0!==e&&(this._anticlockwise=e),this.updateData()},setEndAngle:function(t,e){return this._endAngle=t,void 0!==e&&(this._anticlockwise=e),this.updateData()},updateData:function(){var t=this._iterations,e=t,i=this.geom.radius,s=l(this._startAngle),n=l(this._endAngle),r=i,o=i;n-=s,this._anticlockwise?n<-d.PI2?n=-d.PI2:0d.PI2?n=d.PI2:n<0&&(n=d.PI2+n%d.PI2);for(var a,h=[r+Math.cos(s)*i,o+Math.sin(s)*i];e<1;)a=n*e+s,h.push(r+Math.cos(a)*i,o+Math.sin(a)*i),e+=t;return a=n+s,h.push(r+Math.cos(a)*i,o+Math.sin(a)*i),h.push(r+Math.cos(s)*i,o+Math.sin(s)*i),this.pathIndexes=u(h),this.pathData=h,this}});t.exports=i},23560:(t,e,i)=>{var r=i(75606),o=i(15608),a=i(17876),h=i(49584);t.exports=function(t,e,i,s){i.addToRenderList(e);var n=t.currentContext;h(t,n,e,i,s)&&(t=e.radius,n.beginPath(),n.arc(t-e.originX*(2*t),t-e.originY*(2*t),t,r(e._startAngle),r(e._endAngle),e.anticlockwise),e.closePath&&n.closePath(),e.isFilled&&(o(n,e),n.fill()),e.isStroked&&(a(n,e),n.stroke()),n.restore())}},10369:(t,e,i)=>{var h=i(28593),i=i(61286);i.register("arc",function(t,e,i,s,n,r,o,a){return this.displayList.add(new h(this.scene,t,e,i,s,n,r,o,a))}),i.register("circle",function(t,e,i,s,n){return this.displayList.add(new h(this.scene,t,e,i,0,360,!1,s,n))})},2213:(t,e,i)=>{var s;i(72283),s=i(58356),i=i(23560),t.exports={renderWebGL:s,renderCanvas:i}},58356:(t,e,i)=>{var a=i(73329),h=i(19543),l=i(50262);t.exports=function(t,e,i,s){i.addToRenderList(e);var n=t.pipelines.set(e.pipeline),s=a(e,i,s),s=n.calcMatrix.copyFrom(s.calc),r=e._displayOriginX,o=e._displayOriginY,i=i.alpha*e.alpha;t.pipelines.preBatch(e),e.isFilled&&h(n,s,e,i,r,o),e.isStroked&&l(n,e,i,r,o),t.pipelines.postBatch(e)}},15220:(t,e,i)=>{var s=i(56694),n=i(87203),r=i(11117),o=i(74118),a=i(91461),i=new s({Extends:a,Mixins:[n],initialize:function(t,e,i,s,n,r){void 0===e&&(e=0),void 0===i&&(i=0),a.call(this,t,"Curve",s),this._smoothness=32,this._curveBounds=new o,this.closePath=!1,this.setPosition(e,i),void 0!==n&&this.setFillStyle(n,r),this.updateData()},smoothness:{get:function(){return this._smoothness},set:function(t){this._smoothness=t,this.updateData()}},setSmoothness:function(t){return this._smoothness=t,this.updateData()},updateData:function(){var t=this._curveBounds,e=this._smoothness;this.geom.getBounds(t,e),this.setSize(t.width,t.height),this.updateDisplayOrigin();for(var i=[],s=this.geom.getPoints(e),n=0;n{var d=i(15608),p=i(17876),f=i(49584);t.exports=function(t,e,i,s){i.addToRenderList(e);var n=t.currentContext;if(f(t,n,e,i,s)){var r=e._displayOriginX+e._curveBounds.x,o=e._displayOriginY+e._curveBounds.y,a=e.pathData,h=a.length-1,t=a[0]-r,i=a[1]-o;n.beginPath(),n.moveTo(t,i),e.closePath||(h-=2);for(var l=2;l{var s=i(61286),r=i(15220);s.register("curve",function(t,e,i,s,n){return this.displayList.add(new r(this.scene,t,e,i,s,n))})},87203:(t,e,i)=>{var s;i(72283),s=i(82958),i=i(4024),t.exports={renderWebGL:s,renderCanvas:i}},82958:(t,e,i)=>{var a=i(19543),h=i(73329),l=i(50262);t.exports=function(t,e,i,s){i.addToRenderList(e);var n=t.pipelines.set(e.pipeline),s=h(e,i,s),s=n.calcMatrix.copyFrom(s.calc),r=e._displayOriginX+e._curveBounds.x,o=e._displayOriginY+e._curveBounds.y,i=i.alpha*e.alpha;t.pipelines.preBatch(e),e.isFilled&&a(n,s,e,i,r,o),e.isStroked&&l(n,e,i,r,o),t.pipelines.postBatch(e)}},28591:(t,e,i)=>{var s=i(56694),n=i(11117),r=i(84171),a=i(95669),h=i(91461),i=new s({Extends:h,Mixins:[r],initialize:function(t,e,i,s,n,r,o){void 0===e&&(e=0),void 0===i&&(i=0),h.call(this,t,"Ellipse",new a((s=void 0===s?128:s)/2,(n=void 0===n?128:n)/2,s,n)),this._smoothness=64,this.setPosition(e,i),this.width=s,this.height=n,void 0!==r&&this.setFillStyle(r,o),this.updateDisplayOrigin(),this.updateData()},smoothness:{get:function(){return this._smoothness},set:function(t){this._smoothness=t,this.updateData()}},setSize:function(t,e){return this.width=t,this.height=e,this.geom.setPosition(t/2,e/2),this.geom.setSize(t,e),this.updateData()},setSmoothness:function(t){return this._smoothness=t,this.updateData()},updateData:function(){for(var t=[],e=this.geom.getPoints(this._smoothness),i=0;i{var d=i(15608),p=i(17876),f=i(49584);t.exports=function(t,e,i,s){i.addToRenderList(e);var n=t.currentContext;if(f(t,n,e,i,s)){var r=e._displayOriginX,o=e._displayOriginY,a=e.pathData,h=a.length-1,t=a[0]-r,i=a[1]-o;n.beginPath(),n.moveTo(t,i),e.closePath||(h-=2);for(var l=2;l{var o=i(28591);i(61286).register("ellipse",function(t,e,i,s,n,r){return this.displayList.add(new o(this.scene,t,e,i,s,n,r))})},84171:(t,e,i)=>{var s;i(72283),s=i(17554),i=i(55881),t.exports={renderWebGL:s,renderCanvas:i}},17554:(t,e,i)=>{var a=i(19543),h=i(73329),l=i(50262);t.exports=function(t,e,i,s){i.addToRenderList(e);var n=t.pipelines.set(e.pipeline),s=h(e,i,s),s=n.calcMatrix.copyFrom(s.calc),r=e._displayOriginX,o=e._displayOriginY,i=i.alpha*e.alpha;t.pipelines.preBatch(e),e.isFilled&&a(n,s,e,i,r,o),e.isStroked&&l(n,e,i,r,o),t.pipelines.postBatch(e)}},39169:(t,e,i)=>{var s=i(56694),c=i(91461),i=i(88059),s=new s({Extends:c,Mixins:[i],initialize:function(t,e,i,s,n,r,o,a,h,l,u){void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=128),void 0===n&&(n=128),void 0===r&&(r=32),void 0===o&&(o=32),c.call(this,t,"Grid",null),this.cellWidth=r,this.cellHeight=o,this.showCells=!0,this.outlineFillColor=0,this.outlineFillAlpha=0,this.showOutline=!0,this.showAltCells=!1,this.altFillColor,this.altFillAlpha,this.setPosition(e,i),this.setSize(s,n),this.setFillStyle(a,h),void 0!==l&&this.setOutlineStyle(l,u),this.updateDisplayOrigin()},setFillStyle:function(t,e){return void 0===e&&(e=1),void 0===t?this.showCells=!1:(this.fillColor=t,this.fillAlpha=e,this.showCells=!0),this},setAltFillStyle:function(t,e){return void 0===e&&(e=1),void 0===t?this.showAltCells=!1:(this.altFillColor=t,this.altFillAlpha=e,this.showAltCells=!0),this},setOutlineStyle:function(t,e){return void 0===e&&(e=1),void 0===t?this.showOutline=!1:(this.outlineFillColor=t,this.outlineFillAlpha=e,this.showOutline=!0),this}});t.exports=s},95525:(t,e,i)=>{var S=i(15608),P=i(17876),_=i(49584);t.exports=function(t,e,i,s){i.addToRenderList(e);var n=t.currentContext;if(_(t,n,e,i,s)){var r=-e._displayOriginX,o=-e._displayOriginY,t=i.alpha*e.alpha,a=e.width,h=e.height,l=e.cellWidth,u=e.cellHeight,c=Math.ceil(a/l),d=Math.ceil(h/u),p=l,f=u,g=l-(c*l-a),y=u-(d*u-h),s=e.showCells,v=e.showAltCells,i=e.showOutline,m=0,x=0,w=0;if(i&&(p--,f--,g===l&&g--,y===u)&&y--,s&&0{var s=i(61286),u=i(39169);s.register("grid",function(t,e,i,s,n,r,o,a,h,l){return this.displayList.add(new u(this.scene,t,e,i,s,n,r,o,a,h,l))})},88059:(t,e,i)=>{var s;i(72283),s=i(50639),i=i(95525),t.exports={renderWebGL:s,renderCanvas:i}},50639:(t,e,i)=>{var P=i(73329),_=i(75512);t.exports=function(t,e,i,s){i.addToRenderList(e);var n=t.pipelines.set(e.pipeline),s=P(e,i,s);n.calcMatrix.copyFrom(s.calc).translate(-e._displayOriginX,-e._displayOriginY);var r,s=i.alpha*e.alpha,o=e.width,a=e.height,h=e.cellWidth,l=e.cellHeight,u=Math.ceil(o/h),c=Math.ceil(a/l),d=h,p=l,f=h-(u*h-o),g=l-(c*l-a),i=e.showCells,y=e.showAltCells,v=e.showOutline,m=0,x=0,w=0;if(v&&(d--,p--,f===h&&f--,g===l)&&g--,t.pipelines.preBatch(e),i&&0{var s=i(72296),n=i(56694),h=i(91461),i=new n({Extends:h,Mixins:[s],initialize:function(t,e,i,s,n,r,o,a){void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=48),void 0===n&&(n=32),void 0===r&&(r=15658734),void 0===o&&(o=10066329),void 0===a&&(a=13421772),h.call(this,t,"IsoBox",null),this.projection=4,this.fillTop=r,this.fillLeft=o,this.fillRight=a,this.showTop=!0,this.showLeft=!0,this.showRight=!0,this.isFilled=!0,this.setPosition(e,i),this.setSize(s,n),this.updateDisplayOrigin()},setProjection:function(t){return this.projection=t,this},setFaces:function(t,e,i){return void 0===e&&(e=!0),void 0===i&&(i=!0),this.showTop=t=void 0===t?!0:t,this.showLeft=e,this.showRight=i,this},setFillStyle:function(t,e,i){return this.fillTop=t,this.fillLeft=e,this.fillRight=i,this.isFilled=!0,this}});t.exports=i},32884:(t,e,i)=>{var r=i(15608),o=i(49584);t.exports=function(t,e,i,s){i.addToRenderList(e);var n=t.currentContext;o(t,n,e,i,s)&&e.isFilled&&(t=e.width,i=e.height,s=t/2,t=t/e.projection,e.showTop&&(r(n,e,e.fillTop),n.beginPath(),n.moveTo(-s,-i),n.lineTo(0,-t-i),n.lineTo(s,-i),n.lineTo(s,-1),n.lineTo(0,t-1),n.lineTo(-s,-1),n.lineTo(-s,-i),n.fill()),e.showLeft&&(r(n,e,e.fillLeft),n.beginPath(),n.moveTo(-s,0),n.lineTo(0,t),n.lineTo(0,t-i),n.lineTo(-s,-i),n.lineTo(-s,0),n.fill()),e.showRight&&(r(n,e,e.fillRight),n.beginPath(),n.moveTo(s,0),n.lineTo(0,t),n.lineTo(0,t-i),n.lineTo(s,-i),n.lineTo(s,0),n.fill()),n.restore())}},88154:(t,e,i)=>{var s=i(61286),a=i(4415);s.register("isobox",function(t,e,i,s,n,r,o){return this.displayList.add(new a(this.scene,t,e,i,s,n,r,o))})},72296:(t,e,i)=>{var s;i(72283),s=i(33101),i=i(32884),t.exports={renderWebGL:s,renderCanvas:i}},33101:(t,e,i)=>{var v=i(73329),m=i(75512);t.exports=function(t,e,i,s){i.addToRenderList(e);var n,r,o,a,h,l,u,c,d,p=t.pipelines.set(e.pipeline),s=v(e,i,s),s=p.calcMatrix.copyFrom(s.calc),f=e.width,g=e.height,y=f/2,f=f/e.projection,i=i.alpha*e.alpha;e.isFilled&&(t.pipelines.preBatch(e),e.showTop&&(n=m.getTintAppendFloatAlpha(e.fillTop,i),r=s.getX(-y,-g),o=s.getY(-y,-g),a=s.getX(0,-f-g),h=s.getY(0,-f-g),l=s.getX(y,-g),u=s.getY(y,-g),c=s.getX(0,f-g),d=s.getY(0,f-g),p.batchQuad(e,r,o,a,h,l,u,c,d,0,0,1,1,n,n,n,n,2)),e.showLeft&&(n=m.getTintAppendFloatAlpha(e.fillLeft,i),r=s.getX(-y,0),o=s.getY(-y,0),a=s.getX(0,f),h=s.getY(0,f),l=s.getX(0,f-g),u=s.getY(0,f-g),c=s.getX(-y,-g),d=s.getY(-y,-g),p.batchQuad(e,r,o,a,h,l,u,c,d,0,0,1,1,n,n,n,n,2)),e.showRight&&(n=m.getTintAppendFloatAlpha(e.fillRight,i),r=s.getX(y,0),o=s.getY(y,0),a=s.getX(0,f),h=s.getY(0,f),l=s.getX(0,f-g),u=s.getY(0,f-g),c=s.getX(y,-g),d=s.getY(y,-g),p.batchQuad(e,r,o,a,h,l,u,c,d,0,0,1,1,n,n,n,n,2)),t.pipelines.postBatch(e))}},65159:(t,e,i)=>{var s=i(56694),n=i(93387),l=i(91461),i=new s({Extends:l,Mixins:[n],initialize:function(t,e,i,s,n,r,o,a,h){void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=48),void 0===n&&(n=32),void 0===r&&(r=!1),void 0===o&&(o=15658734),void 0===a&&(a=10066329),void 0===h&&(h=13421772),l.call(this,t,"IsoTriangle",null),this.projection=4,this.fillTop=o,this.fillLeft=a,this.fillRight=h,this.showTop=!0,this.showLeft=!0,this.showRight=!0,this.isReversed=r,this.isFilled=!0,this.setPosition(e,i),this.setSize(s,n),this.updateDisplayOrigin()},setProjection:function(t){return this.projection=t,this},setReversed:function(t){return this.isReversed=t,this},setFaces:function(t,e,i){return void 0===e&&(e=!0),void 0===i&&(i=!0),this.showTop=t=void 0===t?!0:t,this.showLeft=e,this.showRight=i,this},setFillStyle:function(t,e,i){return this.fillTop=t,this.fillLeft=e,this.fillRight=i,this.isFilled=!0,this}});t.exports=i},9923:(t,e,i)=>{var o=i(15608),a=i(49584);t.exports=function(t,e,i,s){i.addToRenderList(e);var n,r=t.currentContext;a(t,r,e,i,s)&&e.isFilled&&(t=e.width,i=e.height,s=t/2,t=t/e.projection,n=e.isReversed,e.showTop&&n&&(o(r,e,e.fillTop),r.beginPath(),r.moveTo(-s,-i),r.lineTo(0,-t-i),r.lineTo(s,-i),r.lineTo(0,t-i),r.fill()),e.showLeft&&(o(r,e,e.fillLeft),r.beginPath(),n?r.moveTo(-s,-i):r.moveTo(-s,0),r.lineTo(0,t),r.lineTo(0,t-i),r.fill()),e.showRight&&(o(r,e,e.fillRight),r.beginPath(),n?r.moveTo(s,-i):r.moveTo(s,0),r.lineTo(0,t),r.lineTo(0,t-i),r.fill()),r.restore())}},67765:(t,e,i)=>{var s=i(61286),h=i(65159);s.register("isotriangle",function(t,e,i,s,n,r,o,a){return this.displayList.add(new h(this.scene,t,e,i,s,n,r,o,a))})},93387:(t,e,i)=>{var s;i(72283),s=i(54946),i=i(9923),t.exports={renderWebGL:s,renderCanvas:i}},54946:(t,e,i)=>{var m=i(73329),x=i(75512);t.exports=function(t,e,i,s){i.addToRenderList(e);var n,r,o,a,h,l,u,c,d,p=t.pipelines.set(e.pipeline),s=m(e,i,s),s=p.calcMatrix.copyFrom(s.calc),f=e.width,g=e.height,y=f/2,f=f/e.projection,v=e.isReversed,i=i.alpha*e.alpha;e.isFilled&&(t.pipelines.preBatch(e),e.showTop&&v&&(n=x.getTintAppendFloatAlpha(e.fillTop,i),r=s.getX(-y,-g),o=s.getY(-y,-g),a=s.getX(0,-f-g),h=s.getY(0,-f-g),l=s.getX(y,-g),u=s.getY(y,-g),c=s.getX(0,f-g),d=s.getY(0,f-g),p.batchQuad(e,r,o,a,h,l,u,c,d,0,0,1,1,n,n,n,n,2)),e.showLeft&&(n=x.getTintAppendFloatAlpha(e.fillLeft,i),u=(l=(h=(a=(o=v?(r=s.getX(-y,-g),s.getY(-y,-g)):(r=s.getX(-y,0),s.getY(-y,0)),s.getX(0,f)),s.getY(0,f)),s.getX(0,f-g)),s.getY(0,f-g)),p.batchTri(e,r,o,a,h,l,u,0,0,1,1,n,n,n,2)),e.showRight&&(n=x.getTintAppendFloatAlpha(e.fillRight,i),u=(l=(h=(a=(o=v?(r=s.getX(y,-g),s.getY(y,-g)):(r=s.getX(y,0),s.getY(y,0)),s.getX(0,f)),s.getY(0,f)),s.getX(0,f-g)),s.getY(0,f-g)),p.batchTri(e,r,o,a,h,l,u,0,0,1,1,n,n,n,2)),t.pipelines.postBatch(e))}},579:(t,e,i)=>{var s=i(56694),l=i(91461),u=i(88829),i=i(52660),s=new s({Extends:l,Mixins:[i],initialize:function(t,e,i,s,n,r,o,a,h){void 0===e&&(e=0),void 0===i&&(i=0),l.call(this,t,"Line",new u(s=void 0===s?0:s,n=void 0===n?0:n,r=void 0===r?128:r,o=void 0===o?0:o));t=Math.max(1,this.geom.right-this.geom.left),s=Math.max(1,this.geom.bottom-this.geom.top);this.lineWidth=1,this._startWidth=1,this._endWidth=1,this.setPosition(e,i),this.setSize(t,s),void 0!==a&&this.setStrokeStyle(1,a,h),this.updateDisplayOrigin()},setLineWidth:function(t,e){return void 0===e&&(e=t),this._startWidth=t,this._endWidth=e,this.lineWidth=t,this},setTo:function(t,e,i,s){return this.geom.setTo(t,e,i,s),this}});t.exports=s},52044:(t,e,i)=>{var r=i(17876),o=i(49584);t.exports=function(t,e,i,s){i.addToRenderList(e);var n=t.currentContext;o(t,n,e,i,s)&&(t=e._displayOriginX,i=e._displayOriginY,e.isStroked&&(r(n,e),n.beginPath(),n.moveTo(e.geom.x1-t,e.geom.y1-i),n.lineTo(e.geom.x2-t,e.geom.y2-i),n.stroke()),n.restore())}},85665:(t,e,i)=>{var s=i(61286),h=i(579);s.register("line",function(t,e,i,s,n,r,o,a){return this.displayList.add(new h(this.scene,t,e,i,s,n,r,o,a))})},52660:(t,e,i)=>{var s;i(72283),s=i(46952),i=i(52044),t.exports={renderWebGL:s,renderCanvas:i}},46952:(t,e,i)=>{var h=i(73329),l=i(75512);t.exports=function(t,e,i,s){i.addToRenderList(e);var n,r=t.pipelines.set(e.pipeline),s=h(e,i,s),o=(r.calcMatrix.copyFrom(s.calc),e._displayOriginX),a=e._displayOriginY,i=i.alpha*e.alpha;t.pipelines.preBatch(e),e.isStroked&&(n=r.strokeTint,i=l.getTintAppendFloatAlpha(e.strokeColor,e.strokeAlpha*i),n.TL=i,n.TR=i,n.BL=i,n.BR=i,n=e._startWidth,i=e._endWidth,r.batchLine(e.geom.x1-o,e.geom.y1-a,e.geom.x2-o,e.geom.y2-a,n,i,1,0,!1,s.sprite,s.camera)),t.pipelines.postBatch(e)}},91249:(t,e,i)=>{var s=i(70573),n=i(56694),r=i(11117),o=i(14045),a=i(8580),h=i(91461),l=i(18974),i=new n({Extends:h,Mixins:[s],initialize:function(t,e,i,s,n,r){void 0===e&&(e=0),void 0===i&&(i=0),h.call(this,t,"Polygon",new a(s));t=o(this.geom);this.setPosition(e,i),this.setSize(t.width,t.height),void 0!==n&&this.setFillStyle(n,r),this.updateDisplayOrigin(),this.updateData()},smooth:function(t){void 0===t&&(t=1);for(var e=0;e{var d=i(15608),p=i(17876),f=i(49584);t.exports=function(t,e,i,s){i.addToRenderList(e);var n=t.currentContext;if(f(t,n,e,i,s)){var r=e._displayOriginX,o=e._displayOriginY,a=e.pathData,h=a.length-1,t=a[0]-r,i=a[1]-o;n.beginPath(),n.moveTo(t,i),e.closePath||(h-=2);for(var l=2;l{var s=i(61286),r=i(91249);s.register("polygon",function(t,e,i,s,n){return this.displayList.add(new r(this.scene,t,e,i,s,n))})},70573:(t,e,i)=>{var s;i(72283),s=i(72841),i=i(40834),t.exports={renderWebGL:s,renderCanvas:i}},72841:(t,e,i)=>{var a=i(19543),h=i(73329),l=i(50262);t.exports=function(t,e,i,s){i.addToRenderList(e);var n=t.pipelines.set(e.pipeline),s=h(e,i,s),s=n.calcMatrix.copyFrom(s.calc),r=e._displayOriginX,o=e._displayOriginY,i=i.alpha*e.alpha;t.pipelines.preBatch(e),e.isFilled&&a(n,s,e,i,r,o),e.isStroked&&l(n,e,i,r,o),t.pipelines.postBatch(e)}},517:(t,e,i)=>{var s=i(56694),a=i(74118),h=i(91461),i=i(37673),s=new s({Extends:h,Mixins:[i],initialize:function(t,e,i,s,n,r,o){void 0===e&&(e=0),void 0===i&&(i=0),h.call(this,t,"Rectangle",new a(0,0,s=void 0===s?128:s,n=void 0===n?128:n)),this.setPosition(e,i),this.setSize(s,n),void 0!==r&&this.setFillStyle(r,o),this.updateDisplayOrigin(),this.updateData()},setSize:function(t,e){this.width=t,this.height=e,this.geom.setSize(t,e),this.updateData(),this.updateDisplayOrigin();var i=this.input;return i&&!i.customHitArea&&(i.hitArea.width=t,i.hitArea.height=e),this},updateData:function(){var t=[],e=this.geom,i=this._tempLine;return e.getLineA(i),t.push(i.x1,i.y1,i.x2,i.y2),e.getLineB(i),t.push(i.x2,i.y2),e.getLineC(i),t.push(i.x2,i.y2),e.getLineD(i),t.push(i.x2,i.y2),this.pathData=t,this}});t.exports=s},4091:(t,e,i)=>{var r=i(15608),o=i(17876),a=i(49584);t.exports=function(t,e,i,s){i.addToRenderList(e);var n=t.currentContext;a(t,n,e,i,s)&&(t=e._displayOriginX,i=e._displayOriginY,e.isFilled&&(r(n,e),n.fillRect(-t,-i,e.width,e.height)),e.isStroked&&(o(n,e),n.beginPath(),n.rect(-t,-i,e.width,e.height),n.stroke()),n.restore())}},94355:(t,e,i)=>{var s=i(61286),o=i(517);s.register("rectangle",function(t,e,i,s,n,r){return this.displayList.add(new o(this.scene,t,e,i,s,n,r))})},37673:(t,e,i)=>{var s;i(72283),s=i(43532),i=i(4091),t.exports={renderWebGL:s,renderCanvas:i}},43532:(t,e,i)=>{var h=i(73329),l=i(50262),u=i(75512);t.exports=function(t,e,i,s){i.addToRenderList(e);var n,r,o=t.pipelines.set(e.pipeline),s=h(e,i,s),s=(o.calcMatrix.copyFrom(s.calc),e._displayOriginX),a=e._displayOriginY,i=i.alpha*e.alpha;t.pipelines.preBatch(e),e.isFilled&&(n=o.fillTint,r=u.getTintAppendFloatAlpha(e.fillColor,e.fillAlpha*i),n.TL=r,n.TR=r,n.BL=r,n.BR=r,o.batchFillRect(-s,-a,e.width,e.height)),e.isStroked&&l(o,e,i,s,a),t.pipelines.postBatch(e)}},77843:(t,e,i)=>{var s=i(87956),n=i(56694),l=i(11117),h=i(91461),i=new n({Extends:h,Mixins:[s],initialize:function(t,e,i,s,n,r,o,a){void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=5),void 0===n&&(n=32),void 0===r&&(r=64),h.call(this,t,"Star",null),this._points=s,this._innerRadius=n,this._outerRadius=r,this.setPosition(e,i),this.setSize(2*r,2*r),void 0!==o&&this.setFillStyle(o,a),this.updateDisplayOrigin(),this.updateData()},setPoints:function(t){return this._points=t,this.updateData()},setInnerRadius:function(t){return this._innerRadius=t,this.updateData()},setOuterRadius:function(t){return this._outerRadius=t,this.updateData()},points:{get:function(){return this._points},set:function(t){this._points=t,this.updateData()}},innerRadius:{get:function(){return this._innerRadius},set:function(t){this._innerRadius=t,this.updateData()}},outerRadius:{get:function(){return this._outerRadius},set:function(t){this._outerRadius=t,this.updateData()}},updateData:function(){var t=[],e=this._points,i=this._innerRadius,s=this._outerRadius,n=Math.PI/2*3,r=Math.PI/e,o=s,a=s;t.push(o,a+-s);for(var h=0;h{var d=i(15608),p=i(17876),f=i(49584);t.exports=function(t,e,i,s){i.addToRenderList(e);var n=t.currentContext;if(f(t,n,e,i,s)){var r=e._displayOriginX,o=e._displayOriginY,a=e.pathData,h=a.length-1,t=a[0]-r,i=a[1]-o;n.beginPath(),n.moveTo(t,i),e.closePath||(h-=2);for(var l=2;l{var a=i(77843);i(61286).register("star",function(t,e,i,s,n,r,o){return this.displayList.add(new a(this.scene,t,e,i,s,n,r,o))})},87956:(t,e,i)=>{var s;i(72283),s=i(12037),i=i(11401),t.exports={renderWebGL:s,renderCanvas:i}},12037:(t,e,i)=>{var a=i(19543),h=i(73329),l=i(50262);t.exports=function(t,e,i,s){i.addToRenderList(e);var n=t.pipelines.set(e.pipeline),s=h(e,i,s),s=n.calcMatrix.copyFrom(s.calc),r=e._displayOriginX,o=e._displayOriginY,i=i.alpha*e.alpha;t.pipelines.preBatch(e),e.isFilled&&a(n,s,e,i,r,o),e.isStroked&&l(n,e,i,r,o),t.pipelines.postBatch(e)}},21873:(t,e,i)=>{var s=i(56694),c=i(91461),d=i(66349),i=i(70498),s=new s({Extends:c,Mixins:[i],initialize:function(t,e,i,s,n,r,o,a,h,l,u){void 0===e&&(e=0),void 0===i&&(i=0),c.call(this,t,"Triangle",new d(s=void 0===s?0:s,n=void 0===n?128:n,r=void 0===r?64:r,o=void 0===o?0:o,a=void 0===a?128:a,h=void 0===h?128:h));t=this.geom.right-this.geom.left,s=this.geom.bottom-this.geom.top;this.setPosition(e,i),this.setSize(t,s),void 0!==l&&this.setFillStyle(l,u),this.updateDisplayOrigin(),this.updateData()},setTo:function(t,e,i,s,n,r){return this.geom.setTo(t,e,i,s,n,r),this.updateData()},updateData:function(){var t=[],e=this.geom,i=this._tempLine;return e.getLineA(i),t.push(i.x1,i.y1,i.x2,i.y2),e.getLineB(i),t.push(i.x2,i.y2),e.getLineC(i),t.push(i.x2,i.y2),this.pathData=t,this}});t.exports=s},60213:(t,e,i)=>{var h=i(15608),l=i(17876),u=i(49584);t.exports=function(t,e,i,s){i.addToRenderList(e);var n,r,o,a=t.currentContext;u(t,a,e,i,s)&&(t=e._displayOriginX,i=e._displayOriginY,s=e.geom.x1-t,n=e.geom.y1-i,r=e.geom.x2-t,o=e.geom.y2-i,t=e.geom.x3-t,i=e.geom.y3-i,a.beginPath(),a.moveTo(s,n),a.lineTo(r,o),a.lineTo(t,i),a.closePath(),e.isFilled&&(h(a,e),a.fill()),e.isStroked&&(l(a,e),a.stroke()),a.restore())}},79296:(t,e,i)=>{var s=i(61286),u=i(21873);s.register("triangle",function(t,e,i,s,n,r,o,a,h,l){return this.displayList.add(new u(this.scene,t,e,i,s,n,r,o,a,h,l))})},70498:(t,e,i)=>{var s;i(72283),s=i(72291),i=i(60213),t.exports={renderWebGL:s,renderCanvas:i}},72291:(t,e,i)=>{var p=i(73329),f=i(50262),g=i(75512);t.exports=function(t,e,i,s){i.addToRenderList(e);var n,r,o,a,h,l,u=t.pipelines.set(e.pipeline),s=p(e,i,s),c=(u.calcMatrix.copyFrom(s.calc),e._displayOriginX),d=e._displayOriginY,i=i.alpha*e.alpha;t.pipelines.preBatch(e),e.isFilled&&(n=u.fillTint,r=g.getTintAppendFloatAlpha(e.fillColor,e.fillAlpha*i),n.TL=r,n.TR=r,n.BL=r,n.BR=r,n=e.geom.x1-c,r=e.geom.y1-d,o=e.geom.x2-c,a=e.geom.y2-d,h=e.geom.x3-c,l=e.geom.y3-d,u.batchFillTriangle(n,r,o,a,h,l,s.sprite,s.camera)),e.isStroked&&f(u,e,i,c,d),t.pipelines.postBatch(e)}},13747:(t,e,i)=>{var r=i(16569),s=i(56694),n=i(64937),o=i(89980),i=i(20791),s=new s({Extends:o,Mixins:[n.Alpha,n.BlendMode,n.Depth,n.Flip,n.GetBounds,n.Mask,n.Origin,n.Pipeline,n.PostPipeline,n.ScrollFactor,n.Size,n.TextureCrop,n.Tint,n.Transform,n.Visible,i],initialize:function(t,e,i,s,n){o.call(this,t,"Sprite"),this._crop=this.resetCropObject(),this.anims=new r(this),this.setTexture(s,n),this.setPosition(e,i),this.setSizeToFrame(),this.setOriginFromFrame(),this.initPipeline(),this.initPostPipeline(!0)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},preUpdate:function(t,e){this.anims.update(t,e)},play:function(t,e){return this.anims.play(t,e)},playReverse:function(t,e){return this.anims.playReverse(t,e)},playAfterDelay:function(t,e){return this.anims.playAfterDelay(t,e)},playAfterRepeat:function(t,e){return this.anims.playAfterRepeat(t,e)},chain:function(t){return this.anims.chain(t)},stop:function(){return this.anims.stop()},stopAfterDelay:function(t){return this.anims.stopAfterDelay(t)},stopAfterRepeat:function(t){return this.anims.stopAfterRepeat(t)},stopOnFrame:function(t){return this.anims.stopOnFrame(t)},toJSON:function(){return n.ToJSON(this)},preDestroy:function(){this.anims.destroy(),this.anims=void 0}});t.exports=s},27573:t=>{t.exports=function(t,e,i,s){i.addToRenderList(e),t.batchSprite(e,e.frame,i,s)}},89219:(t,e,i)=>{var n=i(88933),r=i(32291),s=i(99325),o=i(20494),a=i(13747);s.register("sprite",function(t,e){var i=o(t=void 0===t?{}:t,"key",null),s=o(t,"frame",null),i=new a(this.scene,0,0,i,s);return void 0!==e&&(t.add=e),n(this.scene,i,t),r(i,t),i})},66135:(t,e,i)=>{var s=i(61286),n=i(13747);s.register("sprite",function(t,e,i,s){return this.displayList.add(new n(this.scene,t,e,i,s))})},20791:(t,e,i)=>{var s;i(72283),s=i(21034),i=i(27573),t.exports={renderWebGL:s,renderCanvas:i}},21034:t=>{t.exports=function(t,e,i,s){i.addToRenderList(e),e.pipeline.batchSprite(e,i,s)}},32979:t=>{t.exports=function(t,e,i){var s=t.canvas,n=t.context,r=t.style,o=[],a=0,h=i.length;0{var p=i(61068);t.exports=function(t){var e=p.create(this),i=e.getContext("2d",{willReadFrequently:!0}),s=(t.syncFont(e,i),i.measureText(t.testString));if("actualBoundingBoxAscent"in s)return n=s.actualBoundingBoxAscent,r=s.actualBoundingBoxDescent,p.remove(e),{ascent:n,descent:r,fontSize:n+r};var n=Math.ceil(s.width*t.baselineX),r=2*n,o=n*t.baselineY|0,s=(e.width=n,e.height=r,i.fillStyle="#f00",i.fillRect(0,0,n,r),i.font=t._font,i.textBaseline="alphabetic",i.fillStyle="#000",i.fillText(t.testString,0,o),{ascent:0,descent:0,fontSize:0}),t=i.getImageData(0,0,n,r);if(t){for(var a,h=t.data,i=h.length,l=4*n,u=0,c=!1,d=0;d{var s=i(99584),r=i(61068),n=i(56694),o=i(64937),a=i(89980),w=i(32979),h=i(10850),l=i(55638),u=i(80032),c=i(74744),i=new n({Extends:a,Mixins:[o.Alpha,o.BlendMode,o.ComputedSize,o.Crop,o.Depth,o.Flip,o.GetBounds,o.Mask,o.Origin,o.Pipeline,o.PostPipeline,o.ScrollFactor,o.Tint,o.Transform,o.Visible,u],initialize:function(t,e,i,s,n){void 0===e&&(e=0),void 0===i&&(i=0),a.call(this,t,"Text"),this.renderer=t.sys.renderer,this.setPosition(e,i),this.setOrigin(0,0),this.initPipeline(),this.initPostPipeline(!0),this.canvas=r.create(this),this.context=this.canvas.getContext("2d",{willReadFrequently:!0}),this.style=new c(this,n),this.autoRound=!0,this.splitRegExp=/(?:\r\n|\r|\n)/,this._text=void 0,this.padding={left:0,right:0,top:0,bottom:0},this.width=1,this.height=1,this.lineSpacing=0,this.dirty=!1,0===this.style.resolution&&(this.style.resolution=1),this._crop=this.resetCropObject(),this.texture=t.sys.textures.addCanvas(null,this.canvas,!0),this.frame=this.texture.get(),this.frame.source.resolution=this.style.resolution,this.renderer&&this.renderer.gl&&(this.renderer.deleteTexture(this.frame.source.glTexture),this.frame.source.glTexture=null),this.initRTL(),this.setText(s),n&&n.padding&&this.setPadding(n.padding),n&&n.lineSpacing&&this.setLineSpacing(n.lineSpacing)},initRTL:function(){this.style.rtl&&(this.canvas.dir="rtl",this.context.direction="rtl",this.canvas.style.display="none",s(this.canvas,this.scene.sys.canvas),this.originX=1)},runWordWrap:function(t){var e,i=this.style;return i.wordWrapCallback?(e=i.wordWrapCallback.call(i.wordWrapCallbackScope,t,this),Array.isArray(e)?e.join("\n"):e):i.wordWrapWidth?i.wordWrapUseAdvanced?this.advancedWordWrap(t,this.context,this.style.wordWrapWidth):this.basicWordWrap(t,this.context,this.style.wordWrapWidth):t},advancedWordWrap:function(t,e,i){for(var s="",n=t.replace(/ +/gi," ").split(this.splitRegExp),r=n.length,o=0;o{t.exports=function(t,e,i,s){0!==e.width&&0!==e.height&&(i.addToRenderList(e),t.batchSprite(e,e.frame,i,s))}},75397:(t,e,i)=>{var r=i(88933),s=i(99325),o=i(20494),a=i(76555);s.register("text",function(t,e){var i=o(t=void 0===t?{}:t,"text",""),s=o(t,"style",null),n=o(t,"padding",null),n=(null!==n&&(s.padding=n),new a(this.scene,0,0,i,s));return void 0!==e&&(t.add=e),r(this.scene,n,t),n.autoRound=o(t,"autoRound",!0),n.resolution=o(t,"resolution",1),n})},94627:(t,e,i)=>{var n=i(76555);i(61286).register("text",function(t,e,i,s){return this.displayList.add(new n(this.scene,t,e,i,s))})},80032:(t,e,i)=>{var s;i(72283),s=i(76128),i=i(71649),t.exports={renderWebGL:s,renderCanvas:i}},74744:(t,e,i)=>{var s=i(56694),o=i(20494),a=i(10850),h=i(27030),l={fontFamily:["fontFamily","Courier"],fontSize:["fontSize","16px"],fontStyle:["fontStyle",""],backgroundColor:["backgroundColor",null],color:["color","#fff"],stroke:["stroke","#fff"],strokeThickness:["strokeThickness",0],shadowOffsetX:["shadow.offsetX",0],shadowOffsetY:["shadow.offsetY",0],shadowColor:["shadow.color","#000"],shadowBlur:["shadow.blur",0],shadowStroke:["shadow.stroke",!1],shadowFill:["shadow.fill",!1],align:["align","left"],maxLines:["maxLines",0],fixedWidth:["fixedWidth",0],fixedHeight:["fixedHeight",0],resolution:["resolution",0],rtl:["rtl",!1],testString:["testString","|MÉqgy"],baselineX:["baselineX",1.2],baselineY:["baselineY",1.4],wordWrapWidth:["wordWrap.width",null],wordWrapCallback:["wordWrap.callback",null],wordWrapCallbackScope:["wordWrap.callbackScope",null],wordWrapUseAdvanced:["wordWrap.useAdvancedWrap",!1]},i=new s({initialize:function(t,e){this.parent=t,this.fontFamily,this.fontSize,this.fontStyle,this.backgroundColor,this.color,this.stroke,this.strokeThickness,this.shadowOffsetX,this.shadowOffsetY,this.shadowColor,this.shadowBlur,this.shadowStroke,this.shadowFill,this.align,this.maxLines,this.fixedWidth,this.fixedHeight,this.resolution,this.rtl,this.testString,this.baselineX,this.baselineY,this.wordWrapWidth,this.wordWrapCallback,this.wordWrapCallbackScope,this.wordWrapUseAdvanced,this._font,this.setStyle(e,!1,!0)},setStyle:function(t,e,i){for(var s in void 0===e&&(e=!0),void 0===i&&(i=!1),t&&t.hasOwnProperty("fontSize")&&"number"==typeof t.fontSize&&(t.fontSize=t.fontSize.toString()+"px"),l){var n=i?l[s][1]:this[s];this[s]=("wordWrapCallback"===s||"wordWrapCallbackScope"===s?a:o)(t,l[s][0],n)}var r=a(t,"font",null),r=(null!==r&&this.setFont(r,!1),this._font=[this.fontStyle,this.fontSize,this.fontFamily].join(" ").trim(),a(t,"fill",null)),r=(null!==r&&(this.color=r),a(t,"metrics",!1));return r?this.metrics={ascent:a(r,"ascent",0),descent:a(r,"descent",0),fontSize:a(r,"fontSize",0)}:!e&&this.metrics||(this.metrics=h(this)),e?this.parent.updateText():this.parent},syncFont:function(t,e){e.font=this._font},syncStyle:function(t,e){e.textBaseline="alphabetic",e.fillStyle=this.color,e.strokeStyle=this.stroke,e.lineWidth=this.strokeThickness,e.lineCap="round",e.lineJoin="round"},syncShadow:function(t,e){e?(t.shadowOffsetX=this.shadowOffsetX,t.shadowOffsetY=this.shadowOffsetY,t.shadowColor=this.shadowColor,t.shadowBlur=this.shadowBlur):(t.shadowOffsetX=0,t.shadowOffsetY=0,t.shadowColor=0,t.shadowBlur=0)},update:function(t){return t&&(this._font=[this.fontStyle,this.fontSize,this.fontFamily].join(" ").trim(),this.metrics=h(this)),this.parent.updateText()},setFont:function(t,e){void 0===e&&(e=!0);var i,s=t,n="",r="";return"string"!=typeof t?(s=a(t,"fontFamily","Courier"),n=a(t,"fontSize","16px"),r=a(t,"fontStyle","")):(i=0,r=2<(t=t.split(" ")).length?t[i++]:"",n=t[i++]||"16px",s=t[i++]||"Courier"),s===this.fontFamily&&n===this.fontSize&&r===this.fontStyle||(this.fontFamily=s,this.fontSize=n,this.fontStyle=r,e&&this.update(!0)),this.parent},setFontFamily:function(t){return this.fontFamily!==t&&(this.fontFamily=t,this.update(!0)),this.parent},setFontStyle:function(t){return this.fontStyle!==t&&(this.fontStyle=t,this.update(!0)),this.parent},setFontSize:function(t){return"number"==typeof t&&(t=t.toString()+"px"),this.fontSize!==t&&(this.fontSize=t,this.update(!0)),this.parent},setTestString:function(t){return this.testString=t,this.update(!0)},setFixedSize:function(t,e){return this.fixedWidth=t,this.fixedHeight=e,t&&(this.parent.width=t),e&&(this.parent.height=e),this.update(!1)},setBackgroundColor:function(t){return this.backgroundColor=t,this.update(!1)},setFill:function(t){return this.color=t,this.update(!1)},setColor:function(t){return this.color=t,this.update(!1)},setResolution:function(t){return this.resolution=t,this.update(!1)},setStroke:function(t,e){return void 0===e&&(e=this.strokeThickness),void 0===t&&0!==this.strokeThickness?(this.strokeThickness=0,this.update(!0)):this.stroke===t&&this.strokeThickness===e||(this.stroke=t,this.strokeThickness=e,this.update(!0)),this.parent},setShadow:function(t,e,i,s,n,r){return void 0===e&&(e=0),void 0===i&&(i="#000"),void 0===s&&(s=0),void 0===n&&(n=!1),void 0===r&&(r=!0),this.shadowOffsetX=t=void 0===t?0:t,this.shadowOffsetY=e,this.shadowColor=i,this.shadowBlur=s,this.shadowStroke=n,this.shadowFill=r,this.update(!1)},setShadowOffset:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.shadowOffsetX=t,this.shadowOffsetY=e,this.update(!1)},setShadowColor:function(t){return this.shadowColor=t=void 0===t?"#000":t,this.update(!1)},setShadowBlur:function(t){return this.shadowBlur=t=void 0===t?0:t,this.update(!1)},setShadowStroke:function(t){return this.shadowStroke=t,this.update(!1)},setShadowFill:function(t){return this.shadowFill=t,this.update(!1)},setWordWrapWidth:function(t,e){return void 0===e&&(e=!1),this.wordWrapWidth=t,this.wordWrapUseAdvanced=e,this.update(!1)},setWordWrapCallback:function(t,e){return void 0===e&&(e=null),this.wordWrapCallback=t,this.wordWrapCallbackScope=e,this.update(!1)},setAlign:function(t){return this.align=t=void 0===t?"left":t,this.update(!1)},setMaxLines:function(t){return this.maxLines=t=void 0===t?0:t,this.update(!1)},getTextMetrics:function(){var t=this.metrics;return{ascent:t.ascent,descent:t.descent,fontSize:t.fontSize}},toJSON:function(){var t,e={};for(t in l)e[t]=this[t];return e.metrics=this.getTextMetrics(),e},destroy:function(){this.parent=void 0}});t.exports=i},76128:(t,e,i)=>{var l=i(75512);t.exports=function(t,e,i,s){var n,r,o,a,h;0!==e.width&&0!==e.height&&(i.addToRenderList(e),r=(n=e.frame).width,o=n.height,a=l.getTintAppendFloatAlpha,h=(t=t.pipelines.set(e.pipeline,e)).setTexture2D(n.glTexture,e),t.batchTexture(e,n.glTexture,r,o,e.x,e.y,r/e.style.resolution,o/e.style.resolution,e.scaleX,e.scaleY,e.rotation,e.flipX,e.flipY,e.scrollFactorX,e.scrollFactorY,e.displayOriginX,e.displayOriginY,0,0,r,o,a(e.tintTopLeft,i.alpha*e._alphaTL),a(e.tintTopRight,i.alpha*e._alphaTR),a(e.tintBottomLeft,i.alpha*e._alphaBL),a(e.tintBottomRight,i.alpha*e._alphaBR),e.tintFill,0,0,i,s,!1,h))}},35856:(t,e,i)=>{var l=i(61068),s=i(56694),n=i(64937),u=i(89980),c=i(3504),r=i(8213),o=i(9271),d=i(93736),i=new s({Extends:u,Mixins:[n.Alpha,n.BlendMode,n.ComputedSize,n.Crop,n.Depth,n.Flip,n.GetBounds,n.Mask,n.Origin,n.Pipeline,n.PostPipeline,n.ScrollFactor,n.Tint,n.Transform,n.Visible,o],initialize:function(t,e,i,s,n,r,o){var a=t.sys.renderer,r=(u.call(this,t,"TileSprite"),t.sys.textures.get(r)),h=r.get(o);h.source.compressionAlgorithm&&(h=(r=t.sys.textures.get("__MISSING")).get()),"DynamicTexture"===r.type&&(h=(r=t.sys.textures.get("__MISSING")).get()),n=s&&n?(s=Math.floor(s),Math.floor(n)):(s=h.width,h.height),this._tilePosition=new d,this._tileScale=new d(1,1),this.dirty=!1,this.renderer=a,this.canvas=l.create(this,s,n),this.context=this.canvas.getContext("2d",{willReadFrequently:!1}),this.displayTexture=r,this.displayFrame=h,this._crop=this.resetCropObject(),this.texture=t.sys.textures.addCanvas(null,this.canvas,!0),this.frame=this.texture.get(),this.potWidth=c(h.width),this.potHeight=c(h.height),this.fillCanvas=l.create2D(this,this.potWidth,this.potHeight),this.fillContext=this.fillCanvas.getContext("2d",{willReadFrequently:!1}),this.fillPattern=null,this.setPosition(e,i),this.setSize(s,n),this.setFrame(o),this.setOriginFromFrame(),this.initPipeline(),this.initPostPipeline(!0)},setTexture:function(t,e){return this.displayTexture=this.scene.sys.textures.get(t),this.setFrame(e)},setFrame:function(t){t=this.displayTexture.get(t);return this.potWidth=c(t.width),this.potHeight=c(t.height),this.canvas.width=0,t.cutWidth&&t.cutHeight?this.renderFlags|=8:this.renderFlags&=-9,this.displayFrame=t,this.dirty=!0,this.updateTileTexture(),this},setTilePosition:function(t,e){return void 0!==t&&(this.tilePositionX=t),void 0!==e&&(this.tilePositionY=e),this},setTileScale:function(t,e){return void 0===t&&(t=this.tileScaleX),void 0===e&&(e=t),this.tileScaleX=t,this.tileScaleY=e,this},updateTileTexture:function(){var t,e,i,s,n;this.dirty&&this.renderer&&((t=this.displayFrame).source.isRenderTexture||t.source.isGLTexture||(e=this.fillContext,i=this.fillCanvas,s=this.potWidth,n=this.potHeight,this.renderer&&this.renderer.gl||(s=t.cutWidth,n=t.cutHeight),e.clearRect(0,0,s,n),i.width=s,i.height=n,e.drawImage(t.source.image,t.cutX,t.cutY,t.cutWidth,t.cutHeight,0,0,s,n),this.renderer&&this.renderer.gl?this.fillPattern=this.renderer.canvasToTexture(i,this.fillPattern):this.fillPattern=e.createPattern(i,"repeat"),this.updateCanvas()),this.dirty=!1)},updateCanvas:function(){var t,e,i,s,n=this.canvas;n.width===this.width&&n.height===this.height||(n.width=this.width,n.height=this.height,this.frame.setSize(this.width,this.height),this.updateDisplayOrigin(),this.dirty=!0),!this.dirty||this.renderer&&this.renderer.gl||(n=this.context,this.scene.sys.game.config.antialias||r.disable(n),t=this._tileScale.x,e=this._tileScale.y,i=this._tilePosition.x,s=this._tilePosition.y,n.clearRect(0,0,this.width,this.height),n.save(),n.scale(t,e),n.translate(-i,-s),n.fillStyle=this.fillPattern,n.fillRect(i,s,this.width/t,this.height/e),n.restore()),this.dirty=!1},preDestroy:function(){this.renderer&&this.renderer.gl&&this.renderer.deleteTexture(this.fillPattern),l.remove(this.canvas),l.remove(this.fillCanvas),this.fillPattern=null,this.fillContext=null,this.fillCanvas=null,this.displayTexture=null,this.displayFrame=null,this.texture.destroy(),this.renderer=null},tilePositionX:{get:function(){return this._tilePosition.x},set:function(t){this._tilePosition.x=t,this.dirty=!0}},tilePositionY:{get:function(){return this._tilePosition.y},set:function(t){this._tilePosition.y=t,this.dirty=!0}},tileScaleX:{get:function(){return this._tileScale.x},set:function(t){this._tileScale.x=t,this.dirty=!0}},tileScaleY:{get:function(){return this._tileScale.y},set:function(t){this._tileScale.y=t,this.dirty=!0}}});t.exports=i},93305:t=>{t.exports=function(t,e,i,s){e.updateCanvas(),i.addToRenderList(e),t.batchSprite(e,e.frame,i,s)}},63950:(t,e,i)=>{var h=i(88933),s=i(99325),l=i(20494),u=i(35856);s.register("tileSprite",function(t,e){var i=l(t=void 0===t?{}:t,"x",0),s=l(t,"y",0),n=l(t,"width",512),r=l(t,"height",512),o=l(t,"key",""),a=l(t,"frame",""),i=new u(this.scene,i,s,n,r,o,a);return void 0!==e&&(t.add=e),h(this.scene,i,t),i})},20509:(t,e,i)=>{var o=i(35856);i(61286).register("tileSprite",function(t,e,i,s,n,r){return this.displayList.add(new o(this.scene,t,e,i,s,n,r))})},9271:(t,e,i)=>{var s;i(72283),s=i(74287),i=i(93305),t.exports={renderWebGL:s,renderCanvas:i}},74287:(t,e,i)=>{var h=i(75512);t.exports=function(t,e,i,s){e.updateCanvas();var n,r,o=e.width,a=e.height;0!==o&&0!==a&&(i.addToRenderList(e),n=h.getTintAppendFloatAlpha,r=(t=t.pipelines.set(e.pipeline,e)).setTexture2D(e.fillPattern,e),t.batchTexture(e,e.fillPattern,e.displayFrame.width*e.tileScaleX,e.displayFrame.height*e.tileScaleY,e.x,e.y,o,a,e.scaleX,e.scaleY,e.rotation,e.flipX,e.flipY,e.scrollFactorX,e.scrollFactorY,e.originX*o,e.originY*a,0,0,o,a,n(e.tintTopLeft,i.alpha*e._alphaTL),n(e.tintTopRight,i.alpha*e._alphaTR),n(e.tintBottomLeft,i.alpha*e._alphaBL),n(e.tintBottomRight,i.alpha*e._alphaBR),e.tintFill,e.tilePositionX%e.displayFrame.width/e.displayFrame.width,e.tilePositionY%e.displayFrame.height/e.displayFrame.height,i,s,!1,r))}},8630:(t,e,i)=>{var s=i(82897),n=i(56694),r=i(64937),h=i(56631),o=i(97081),a=i(89980),l=i(83392),u=i(76038),c=i(76583),i=i(77974),n=new n({Extends:a,Mixins:[r.Alpha,r.BlendMode,r.Depth,r.Flip,r.GetBounds,r.Mask,r.Origin,r.Pipeline,r.PostPipeline,r.ScrollFactor,r.Size,r.TextureCrop,r.Tint,r.Transform,r.Visible,i],initialize:function(t,e,i,s){a.call(this,t,"Video"),this.video,this.videoTexture,this.videoTextureSource,this.snapshotTexture,this.flipY=!1,this._key=c(),this.touchLocked=!1,this.playWhenUnlocked=!1,this.frameReady=!1,this.isStalled=!1,this.failedPlayAttempts=0,this.metadata,this.retry=0,this.retryInterval=500,this._systemMuted=!1,this._codeMuted=!1,this._systemPaused=!1,this._codePaused=!1,this._callbacks={ended:this.completeHandler.bind(this),legacy:this.legacyPlayHandler.bind(this),playing:this.playingHandler.bind(this),seeked:this.seekedHandler.bind(this),seeking:this.seekingHandler.bind(this),stalled:this.stalledHandler.bind(this),suspend:this.stalledHandler.bind(this),waiting:this.stalledHandler.bind(this)},this._loadCallbackHandler=this.loadErrorHandler.bind(this),this._crop=this.resetCropObject(),this.markers={},this._markerIn=0,this._markerOut=0,this._playingMarker=!1,this._lastUpdate=0,this.cacheKey="",this.isSeeking=!1,this._playCalled=!1,this._rfvCallbackId=0;var n=t.sys.game,e=(this._device=n.device.video,this.setPosition(e,i),this.setSize(256,256),this.initPipeline(),this.initPostPipeline(!0),n.events.on(o.PAUSE,this.globalPause,this),n.events.on(o.RESUME,this.globalResume,this),t.sys.sound);e&&e.on(u.GLOBAL_MUTE,this.globalMute,this),s&&this.load(s)},addedToScene:function(){this.scene.sys.updateList.add(this)},removedFromScene:function(){this.scene.sys.updateList.remove(this)},load:function(t){var e=this.scene.sys.cache.video.get(t);return e&&(this.cacheKey=t,this.loadHandler(e.url,e.noAudio,e.crossOrigin)),this},changeSource:function(t,e,i,s,n){void 0===e&&(e=!0),void 0===i&&(i=!1),this.cacheKey!==t&&(this.load(t),e)&&this.play(i,s,n)},getVideoKey:function(){return this.cacheKey},loadURL:function(t,e,i){void 0===e&&(e=!1);t=this._device.getVideoURL(t);return t&&(this.cacheKey="",this.loadHandler(t.url,e,i)),this},loadMediaStream:function(t,e,i){return this.loadHandler(null,e,i,t)},loadHandler:function(t,e,i,s){e=e||!1;var n=this.video;if(n?(this.removeLoadEventHandlers(),this.stop()):((n=document.createElement("video")).controls=!1,n.setAttribute("playsinline","playsinline"),n.setAttribute("preload","auto"),n.setAttribute("disablePictureInPicture","true")),e?(n.muted=!0,n.defaultMuted=!0,n.setAttribute("autoplay","autoplay")):(n.muted=!1,n.defaultMuted=!1,n.removeAttribute("autoplay")),i?n.setAttribute("crossorigin",i):n.removeAttribute("crossorigin"),s)if("srcObject"in n)try{n.srcObject=s}catch(t){if("TypeError"!==t.name)throw t;n.src=URL.createObjectURL(s)}else n.src=URL.createObjectURL(s);else n.src=t;return this.addLoadEventHandlers(),this.retry=0,this.video=n,this._playCalled=!1,n.load(),this},requestVideoFrame:function(t,e){var i,s,n,r,o,a=this.video;a&&(i=e.width,s=e.height,o=this.videoTexture,n=this.videoTextureSource,(r=!o||n.source!==a)?(this._codePaused=a.paused,this._codeMuted=a.muted,o?(n.source=a,n.width=i,n.height=s,o.get().setSize(i,s)):((o=this.scene.sys.textures.create(this._key,a,i,s)).add("__BASE",0,0,0,i,s),this.setTexture(o),this.videoTexture=o,this.videoTextureSource=o.source[0],this.videoTextureSource.setFlipY(this.flipY),this.emit(h.VIDEO_TEXTURE,this,o)),this.setSizeToFrame(),this.updateDisplayOrigin()):n.update(),this.isStalled=!1,o=(this.metadata=e).mediaTime,r&&(this._lastUpdate=o,this.emit(h.VIDEO_CREATED,this,i,s),this.frameReady||(this.frameReady=!0,this.emit(h.VIDEO_PLAY,this))),this._playingMarker?o>=this._markerOut&&(a.loop?(a.currentTime=this._markerIn,this.emit(h.VIDEO_LOOP,this)):(this.stop(!1),this.emit(h.VIDEO_COMPLETE,this))):o=this.retryInterval)&&(this.createPlayPromise(!1),this.retry=0)},seekTo:function(t){var e=this.video;return e&&(e=e.duration)!==1/0&&!isNaN(e)&&this.setCurrentTime(e*t),this},getCurrentTime:function(){return this.video?this.video.currentTime:0},setCurrentTime:function(t){var e,i,s=this.video;return s&&("string"==typeof t&&(e=t[0],i=parseFloat(t.substr(1)),"+"===e?t=s.currentTime+i:"-"===e&&(t=s.currentTime-i)),s.currentTime=t),this},seekingHandler:function(){this.isSeeking=!0,this.emit(h.VIDEO_SEEKING,this)},seekedHandler:function(){this.isSeeking=!1,this.emit(h.VIDEO_SEEKED,this)},getProgress:function(){var t=this.video;if(t){var e=t.duration;if(e!==1/0&&!isNaN(e))return t.currentTime/e}return-1},getDuration:function(){return this.video?this.video.duration:0},setMute:function(t){this._codeMuted=t=void 0===t?!0:t;var e=this.video;return e&&(e.muted=!!this._systemMuted||t),this},isMuted:function(){return this._codeMuted},globalMute:function(t,e){this._systemMuted=e;var i=this.video;i&&(i.muted=!!this._codeMuted||e)},globalPause:function(){this._systemPaused=!0,this.video&&!this.video.ended&&(this.removeEventHandlers(),this.video.pause())},globalResume:function(){this._systemPaused=!1,!this.video||this._codePaused||this.video.ended||this.createPlayPromise()},setPaused:function(t){var e=this.video;return this._codePaused=t=void 0===t?!0:t,e&&!e.ended&&(t?e.paused||(this.removeEventHandlers(),e.pause()):this._playCalled?e.paused&&!this._systemPaused&&this.createPlayPromise():this.play()),this},pause:function(){return this.setPaused(!0)},resume:function(){return this.setPaused(!1)},getVolume:function(){return this.video?this.video.volume:1},setVolume:function(t){return void 0===t&&(t=1),this.video&&(this.video.volume=s(t,0,1)),this},getPlaybackRate:function(){return this.video?this.video.playbackRate:1},setPlaybackRate:function(t){return this.video&&(this.video.playbackRate=t),this},getLoop:function(){return!!this.video&&this.video.loop},setLoop:function(t){return void 0===t&&(t=!0),this.video&&(this.video.loop=t),this},isPlaying:function(){return!!this.video&&!(this.video.paused||this.video.ended)},isPaused:function(){return this.video&&this._playCalled&&this.video.paused||this._codePaused||this._systemPaused},saveTexture:function(t,e){return void 0===e&&(e=!1),this.videoTexture&&(this.scene.sys.textures.renameTexture(this._key,t),this.videoTextureSource.setFlipY(e)),this._key=t,this.flipY=e,!!this.videoTexture},stop:function(t){void 0===t&&(t=!0);var e=this.video;return e&&(this.removeEventHandlers(),e.cancelVideoFrameCallback(this._rfvCallbackId),e.pause()),this.retry=0,this._playCalled=!1,t&&this.emit(h.VIDEO_STOP,this),this},removeVideoElement:function(){var t=this.video;if(t){for(t.parentNode&&t.parentNode.removeChild(t);t.hasChildNodes();)t.removeChild(t.firstChild);t.removeAttribute("autoplay"),t.removeAttribute("src"),this.video=null}},preDestroy:function(){this.stop(!1),this.removeLoadEventHandlers(),this.removeVideoElement();var t=this.scene.sys.game.events,t=(t.off(o.PAUSE,this.globalPause,this),t.off(o.RESUME,this.globalResume,this),this.scene.sys.sound);t&&t.off(u.GLOBAL_MUTE,this.globalMute,this)}});t.exports=n},56933:t=>{t.exports=function(t,e,i,s){e.videoTexture&&(i.addToRenderList(e),t.batchSprite(e,e.frame,i,s))}},65601:(t,e,i)=>{var s=i(88933),n=i(99325),r=i(20494),o=i(8630);n.register("video",function(t,e){var i=r(t=void 0===t?{}:t,"key",null),i=new o(this.scene,0,0,i);return void 0!==e&&(t.add=e),s(this.scene,i,t),i})},215:(t,e,i)=>{var s=i(8630);i(61286).register("video",function(t,e,i){return this.displayList.add(new s(this.scene,t,e,i))})},77974:(t,e,i)=>{var s;i(72283),s=i(83572),i=i(56933),t.exports={renderWebGL:s,renderCanvas:i}},83572:t=>{t.exports=function(t,e,i,s){e.videoTexture&&(i.addToRenderList(e),e.pipeline.batchSprite(e,i,s))}},71030:(t,e,i)=>{var r=i(95723),s=i(26673),n=i(65650),o=i(56694),a=i(64937),h=i(89980),l=i(74118),u=i(94287),i=new o({Extends:h,Mixins:[a.Depth,a.GetBounds,a.Origin,a.Transform,a.ScrollFactor,a.Visible],initialize:function(t,e,i,s,n){void 0===s&&(s=1),void 0===n&&(n=s),h.call(this,t,"Zone"),this.setPosition(e,i),this.width=s,this.height=n,this.blendMode=r.NORMAL,this.updateDisplayOrigin()},displayWidth:{get:function(){return this.scaleX*this.width},set:function(t){this.scaleX=t/this.width}},displayHeight:{get:function(){return this.scaleY*this.height},set:function(t){this.scaleY=t/this.height}},setSize:function(t,e,i){void 0===i&&(i=!0),this.width=t,this.height=e,this.updateDisplayOrigin();var s=this.input;return i&&s&&!s.customHitArea&&(s.hitArea.width=t,s.hitArea.height=e),this},setDisplaySize:function(t,e){return this.displayWidth=t,this.displayHeight=e,this},setCircleDropZone:function(t){return this.setDropZone(new s(0,0,t),n)},setRectangleDropZone:function(t,e){return this.setDropZone(new l(0,0,t,e),u)},setDropZone:function(t,e){return this.input||this.setInteractive(t,e,!0),this},setAlpha:function(){},setBlendMode:function(){},renderCanvas:function(t,e,i){i.addToRenderList(e)},renderWebGL:function(t,e,i){i.addToRenderList(e)}});t.exports=i},24067:(t,e,i)=>{var s=i(99325),n=i(20494),r=i(71030);s.register("zone",function(t){var e=n(t,"x",0),i=n(t,"y",0),s=n(t,"width",1),t=n(t,"height",s);return new r(this.scene,e,i,s,t)})},34546:(t,e,i)=>{var n=i(71030);i(61286).register("zone",function(t,e,i,s){return this.displayList.add(new n(this.scene,t,e,i,s))})},95847:t=>{t.exports=function(t){return 0{var s=i(56694),n=i(65650),r=i(94026),o=i(62941),a=i(52394),h=i(30977),i=new s({initialize:function(t,e,i){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),this.type=a.CIRCLE,this.x=t,this.y=e,this._radius=i,this._diameter=2*i},contains:function(t,e){return n(this,t,e)},getPoint:function(t,e){return r(this,t,e)},getPoints:function(t,e,i){return o(this,t,e,i)},getRandomPoint:function(t){return h(this,t)},setTo:function(t,e,i){return this.x=t,this.y=e,this._radius=i,this._diameter=2*i,this},setEmpty:function(){return this._radius=0,this._diameter=0,this},setPosition:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},isEmpty:function(){return this._radius<=0},radius:{get:function(){return this._radius},set:function(t){this._radius=t,this._diameter=2*t}},diameter:{get:function(){return this._diameter},set:function(t){this._diameter=t,this._radius=.5*t}},left:{get:function(){return this.x-this._radius},set:function(t){this.x=t+this._radius}},right:{get:function(){return this.x+this._radius},set:function(t){this.x=t-this._radius}},top:{get:function(){return this.y-this._radius},set:function(t){this.y=t+this._radius}},bottom:{get:function(){return this.y+this._radius},set:function(t){this.y=t-this._radius}}});t.exports=i},37964:t=>{t.exports=function(t){return Math.PI*t.radius*2}},72233:(t,e,i)=>{var s=i(79967);t.exports=function(t,e,i){return(i=void 0===i?new s:i).x=t.x+t.radius*Math.cos(e),i.y=t.y+t.radius*Math.sin(e),i}},61761:(t,e,i)=>{var s=i(26673);t.exports=function(t){return new s(t.x,t.y,t.radius)}},65650:t=>{t.exports=function(t,e,i){return 0=t.left&&e<=t.right&&i>=t.top&&i<=t.bottom&&(t.x-e)*(t.x-e)+(t.y-i)*(t.y-i)<=t.radius*t.radius}},39187:(t,e,i)=>{var s=i(65650);t.exports=function(t,e){return s(t,e.x,e.y)}},58672:(t,e,i)=>{var s=i(65650);t.exports=function(t,e){return s(t,e.x,e.y)&&s(t,e.right,e.y)&&s(t,e.x,e.bottom)&&s(t,e.right,e.bottom)}},42997:t=>{t.exports=function(t,e){return e.setTo(t.x,t.y,t.radius)}},94894:t=>{t.exports=function(t,e){return t.x===e.x&&t.y===e.y&&t.radius===e.radius}},48027:(t,e,i)=>{var s=i(74118);t.exports=function(t,e){return(e=void 0===e?new s:e).x=t.left,e.y=t.top,e.width=t.diameter,e.height=t.diameter,e}},94026:(t,e,i)=>{var s=i(72233),n=i(91806),r=i(83392),o=i(79967);t.exports=function(t,e,i){void 0===i&&(i=new o);e=n(e,0,r.PI2);return s(t,e,i)}},62941:(t,e,i)=>{var o=i(37964),a=i(72233),h=i(91806),l=i(83392);t.exports=function(t,e,i,s){void 0===s&&(s=[]),!e&&0{t.exports=function(t,e,i){return t.x+=e,t.y+=i,t}},88665:t=>{t.exports=function(t,e){return t.x+=e.x,t.y+=e.y,t}},30977:(t,e,i)=>{var r=i(79967);t.exports=function(t,e){void 0===e&&(e=new r);var i=2*Math.PI*Math.random(),s=Math.random()+Math.random(),s=1{var s=i(26673);s.Area=i(95847),s.Circumference=i(37964),s.CircumferencePoint=i(72233),s.Clone=i(61761),s.Contains=i(65650),s.ContainsPoint=i(39187),s.ContainsRect=i(58672),s.CopyFrom=i(42997),s.Equals=i(94894),s.GetBounds=i(48027),s.GetPoint=i(94026),s.GetPoints=i(62941),s.Offset=i(34585),s.OffsetPoint=i(88665),s.Random=i(30977),t.exports=s},52394:t=>{t.exports={CIRCLE:0,ELLIPSE:1,LINE:2,POINT:3,POLYGON:4,RECTANGLE:5,TRIANGLE:6}},58605:t=>{t.exports=function(t){return t.isEmpty()?0:t.getMajorRadius()*t.getMinorRadius()*Math.PI}},39507:t=>{t.exports=function(t){var e=t.width/2,t=t.height/2,i=Math.pow(e-t,2)/Math.pow(e+t,2);return Math.PI*(e+t)*(1+3*i/(10+Math.sqrt(4-3*i)))}},86998:(t,e,i)=>{var r=i(79967);t.exports=function(t,e,i){void 0===i&&(i=new r);var s=t.width/2,n=t.height/2;return i.x=t.x+s*Math.cos(e),i.y=t.y+n*Math.sin(e),i}},81773:(t,e,i)=>{var s=i(95669);t.exports=function(t){return new s(t.x,t.y,t.width,t.height)}},72313:t=>{t.exports=function(t,e,i){return!(t.width<=0||t.height<=0)&&(e=(e-t.x)/t.width,(e*=e)+(e=(i-t.y)/t.height)*e<.25)}},34368:(t,e,i)=>{var s=i(72313);t.exports=function(t,e){return s(t,e.x,e.y)}},71431:(t,e,i)=>{var s=i(72313);t.exports=function(t,e){return s(t,e.x,e.y)&&s(t,e.right,e.y)&&s(t,e.x,e.bottom)&&s(t,e.right,e.bottom)}},75459:t=>{t.exports=function(t,e){return e.setTo(t.x,t.y,t.width,t.height)}},95669:(t,e,i)=>{var s=i(56694),n=i(72313),r=i(95340),o=i(54978),a=i(52394),h=i(72006),i=new s({initialize:function(t,e,i,s){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=0),this.type=a.ELLIPSE,this.x=t,this.y=e,this.width=i,this.height=s},contains:function(t,e){return n(this,t,e)},getPoint:function(t,e){return r(this,t,e)},getPoints:function(t,e,i){return o(this,t,e,i)},getRandomPoint:function(t){return h(this,t)},setTo:function(t,e,i,s){return this.x=t,this.y=e,this.width=i,this.height=s,this},setEmpty:function(){return this.width=0,this.height=0,this},setPosition:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},setSize:function(t,e){return void 0===e&&(e=t),this.width=t,this.height=e,this},isEmpty:function(){return this.width<=0||this.height<=0},getMinorRadius:function(){return Math.min(this.width,this.height)/2},getMajorRadius:function(){return Math.max(this.width,this.height)/2},left:{get:function(){return this.x-this.width/2},set:function(t){this.x=t+this.width/2}},right:{get:function(){return this.x+this.width/2},set:function(t){this.x=t-this.width/2}},top:{get:function(){return this.y-this.height/2},set:function(t){this.y=t+this.height/2}},bottom:{get:function(){return this.y+this.height/2},set:function(t){this.y=t-this.height/2}}});t.exports=i},98068:t=>{t.exports=function(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}},72897:(t,e,i)=>{var s=i(74118);t.exports=function(t,e){return(e=void 0===e?new s:e).x=t.left,e.y=t.top,e.width=t.width,e.height=t.height,e}},95340:(t,e,i)=>{var s=i(86998),n=i(91806),r=i(83392),o=i(79967);t.exports=function(t,e,i){void 0===i&&(i=new o);e=n(e,0,r.PI2);return s(t,e,i)}},54978:(t,e,i)=>{var o=i(39507),a=i(86998),h=i(91806),l=i(83392);t.exports=function(t,e,i,s){void 0===s&&(s=[]),!e&&0{t.exports=function(t,e,i){return t.x+=e,t.y+=i,t}},36233:t=>{t.exports=function(t,e){return t.x+=e.x,t.y+=e.y,t}},72006:(t,e,i)=>{var n=i(79967);t.exports=function(t,e){void 0===e&&(e=new n);var i=Math.random()*Math.PI*2,s=Math.sqrt(Math.random());return e.x=t.x+s*Math.cos(i)*t.width/2,e.y=t.y+s*Math.sin(i)*t.height/2,e}},40652:(t,e,i)=>{var s=i(95669);s.Area=i(58605),s.Circumference=i(39507),s.CircumferencePoint=i(86998),s.Clone=i(81773),s.Contains=i(72313),s.ContainsPoint=i(34368),s.ContainsRect=i(71431),s.CopyFrom=i(75459),s.Equals=i(98068),s.GetBounds=i(72897),s.GetPoint=i(95340),s.GetPoints=i(54978),s.Offset=i(77951),s.OffsetPoint=i(36233),s.Random=i(72006),t.exports=s},84068:(t,e,i)=>{var s=i(52394),i=i(98611)(!1,{Circle:i(6112),Ellipse:i(40652),Intersects:i(7563),Line:i(28482),Mesh:i(14293),Point:i(63472),Polygon:i(44359),Rectangle:i(66658),Triangle:i(87619)},s);t.exports=i},22184:(t,e,i)=>{var s=i(53996);t.exports=function(t,e){return s(t.x,t.y,e.x,e.y)<=t.radius+e.radius}},26535:t=>{t.exports=function(t,e){var i=e.width/2,s=e.height/2,n=Math.abs(t.x-e.x-i),e=Math.abs(t.y-e.y-s),r=i+t.radius,o=s+t.radius;return!(r{var d=i(79967),p=i(22184);t.exports=function(t,e,i){var s,n,r,o,a,h,l,u,c;return void 0===i&&(i=[]),p(t,e)&&(a=t.x,h=t.y,t=t.radius,l=e.x,u=e.y,e=e.radius,h===u?0==(r=(n=-2*u)*n-4*(s=1)*(l*l+(o=(e*e-t*t-l*l+a*a)/(2*(a-l)))*o-2*l*o+u*u-e*e))?i.push(new d(o,-n/(2*s))):0{var o=i(26111),a=i(26535);t.exports=function(t,e,i){var s,n,r;return void 0===i&&(i=[]),a(t,e)&&(s=e.getLineA(),n=e.getLineB(),r=e.getLineC(),e=e.getLineD(),o(s,t,i),o(n,t,i),o(r,t,i),o(e,t,i)),i}},26111:(t,e,i)=>{var d=i(79967),p=i(61472);t.exports=function(t,e,i){var s,n,r,o,a,h,l,u,c;return void 0===i&&(i=[]),p(t,e)&&(s=t.x1,n=t.y1,r=t.x2,t=t.y2,0==(h=(a=2*((r=r-s)*(c=s-e.x)+(t=t-n)*(h=n-e.y)))*a-4*(o=r*r+t*t)*(c*c+h*h-(c=e.radius)*c))?(l=s+(e=-a/(2*o))*r,u=n+e*t,0<=e&&e<=1&&i.push(new d(l,u))):0{var f=i(70015);t.exports=function(t,e,i,s){var n,r,o,a=t.x1,h=t.y1,l=t.x2,t=t.y2,u=e.x1,c=e.y1,l=l-a,t=t-h,d=e.x2-u,e=e.y2-c,p=l*e-t*d;if(0==p)return null;if(i=void 0===i?!1:i){if((r=(u+d*(n=(l*(c-h)+t*(a-u))/(d*t-e*l))-a)/l)<0||n<0||1{var h=i(96537),s=i(88829),l=i(70015),u=new s,c=new l;t.exports=function(t,e,i,s){void 0===i&&(i=!1);var n=!1;(s=void 0===s?new l:s).set(),c.set();for(var r=e[0],o=1;o{var s=i(70015),o=i(51729),a=i(17647),h=new s;t.exports=function(t,e,i,s){void 0===s&&(s=new o),Array.isArray(e)||(e=[e]);var n=!1;s.set(),h.set();for(var r=0;r{var l=i(79967),u=i(25227),c=i(47910);t.exports=function(t,e,i){if(void 0===i&&(i=[]),c(t,e))for(var s=e.getLineA(),n=e.getLineB(),r=e.getLineC(),e=e.getLineD(),o=[new l,new l,new l,new l],a=[u(s,t,o[0]),u(n,t,o[1]),u(r,t,o[2]),u(e,t,o[3])],h=0;h<4;h++)a[h]&&i.push(o[h]);return i}},7449:(t,e,i)=>{var a=i(51729),h=i(68439),l=new(i(88829));function u(t,e,i,s,n){var r=Math.cos(t),o=Math.sin(t),e=(l.setTo(e,i,e+r,i+o),h(l,s,!0));e&&n.push(new a(e.x,e.y,t,e.w))}function c(t,e){return t.z-e.z}t.exports=function(t,e,i){Array.isArray(i)||(i=[i]);for(var s=[],n=[],r=0;r{var s=i(74118),n=i(90205);t.exports=function(t,e,i){return void 0===i&&(i=new s),n(t,e)&&(i.x=Math.max(t.x,e.x),i.y=Math.max(t.y,e.y),i.width=Math.min(t.right,e.right)-i.x,i.height=Math.min(t.bottom,e.bottom)-i.y),i}},1946:(t,e,i)=>{var o=i(9569),a=i(90205);t.exports=function(t,e,i){var s,n,r;return void 0===i&&(i=[]),a(t,e)&&(s=t.getLineA(),n=t.getLineB(),r=t.getLineC(),t=t.getLineD(),o(s,e,i),o(n,e,i),o(r,e,i),o(t,e,i)),i}},34211:(t,e,i)=>{var r=i(20370),o=i(9569);t.exports=function(t,e,i){var s,n;return void 0===i&&(i=[]),r(t,e)&&(s=e.getLineA(),n=e.getLineB(),e=e.getLineC(),o(s,t,i),o(n,t,i),o(e,t,i)),i}},80511:(t,e,i)=>{var r=i(26111),o=i(48411);t.exports=function(t,e,i){var s,n;return void 0===i&&(i=[]),o(t,e)&&(s=t.getLineA(),n=t.getLineB(),t=t.getLineC(),r(s,e,i),r(n,e,i),r(t,e,i)),i}},31343:(t,e,i)=>{var h=i(79967),l=i(86117),u=i(25227);t.exports=function(t,e,i){if(void 0===i&&(i=[]),l(t,e))for(var s=t.getLineA(),n=t.getLineB(),t=t.getLineC(),r=[new h,new h,new h],o=[u(s,e,r[0]),u(n,e,r[1]),u(t,e,r[2])],a=0;a<3;a++)o[a]&&i.push(r[a]);return i}},70534:(t,e,i)=>{var r=i(23589),o=i(31343);t.exports=function(t,e,i){var s,n;return void 0===i&&(i=[]),r(t,e)&&(s=e.getLineA(),n=e.getLineB(),e=e.getLineC(),o(t,s,i),o(t,n,i),o(t,e,i)),i}},61472:(t,e,i)=>{var u=i(65650),c=new(i(79967));t.exports=function(t,e,i){var s,n,r,o,a,h,l;return void 0===i&&(i=c),u(e,t.x1,t.y1)?(i.x=t.x1,i.y=t.y1,!0):u(e,t.x2,t.y2)?(i.x=t.x2,i.y=t.y2,!0):(s=t.x2-t.x1,n=t.y2-t.y1,l=e.x-t.x1,r=e.y-t.y1,0<(o=(a=s)*s+(h=n)*n)&&(a*=l=(l*s+r*n)/o,h*=l),i.x=t.x1+a,i.y=t.y1+h,a*a+h*h<=o&&0<=a*s+h*n&&u(e,i.x,i.y))}},25227:t=>{t.exports=function(t,e,i){var s,n,r=t.x1,o=t.y1,a=t.x2,t=t.y2,h=e.x1,l=e.y1,u=e.x2,e=e.y2;return!(r===a&&o===t||h===u&&l===e||0==(s=(e-l)*(a-r)-(u-h)*(t-o))||(n=((a-r)*(o-l)-(t-o)*(r-h))/s,(u=((u-h)*(o-l)-(e-l)*(r-h))/s)<0)||1{t.exports=function(t,e){var i=t.x1,s=t.y1,n=t.x2,t=t.y2,r=e.x,o=e.y,a=e.right,e=e.bottom,h=0;if(r<=i&&i<=a&&o<=s&&s<=e||r<=n&&n<=a&&o<=t&&t<=e)return!0;if(io&&h<=e)return!0}else if(a=o&&h<=e)return!0;if(s=r&&h<=a)return!0}else if(e=r&&h<=a)return!0;return!1}},34426:t=>{t.exports=function(t,e,i){void 0===i&&(i=1);var s,n=e.x1,r=e.y1,o=e.x2,e=e.y2,a=t.x,t=t.y,h=(o-n)*(o-n)+(e-r)*(e-r);return 0!=h&&((s=((a-n)*(o-n)+(t-r)*(e-r))/h)<0?Math.sqrt((n-a)*(n-a)+(r-t)*(r-t))<=i:0<=s&&s<=1?Math.abs(((r-t)*(o-n)-(n-a)*(e-r))/h)*Math.sqrt(h)<=i:Math.sqrt((o-a)*(o-a)+(e-t)*(e-t))<=i)}},81414:(t,e,i)=>{var r=i(34426);t.exports=function(t,e){var i,s,n;return!!r(t,e)&&(i=Math.min(e.x1,e.x2),s=Math.max(e.x1,e.x2),n=Math.min(e.y1,e.y2),e=Math.max(e.y1,e.y2),t.x>=i)&&t.x<=s&&t.y>=n&&t.y<=e}},90205:t=>{t.exports=function(t,e){return!(t.width<=0||t.height<=0||e.width<=0||e.height<=0||t.righte.right||t.y>e.bottom)}},20370:(t,e,i)=>{var l=i(25227),u=i(94287),c=i(86875),d=i(87279);t.exports=function(t,e){var i,s,n,r,o,a,h;return!(e.left>t.right||e.rightt.bottom||e.bottom{t.exports=function(t,e,i,s,n,r){return!(e>t.right+(r=void 0===r?0:r)||it.bottom+r||n{var s=i(61472),n=i(60689);t.exports=function(t,e){return!(t.left>e.right||t.righte.bottom||t.bottom{var s=i(25227);t.exports=function(t,e){return!!(t.contains(e.x1,e.y1)||t.contains(e.x2,e.y2)||s(t.getLineA(),e)||s(t.getLineB(),e)||s(t.getLineC(),e))}},23589:(t,e,i)=>{var h=i(86875),l=i(18680),u=i(25227);t.exports=function(t,e){var i,s,n,r,o,a;return!(t.left>e.right||t.righte.bottom||t.bottom{t.exports={CircleToCircle:i(22184),CircleToRectangle:i(26535),GetCircleToCircle:i(71145),GetCircleToRectangle:i(62508),GetLineToCircle:i(26111),GetLineToLine:i(96537),GetLineToPoints:i(17647),GetLineToPolygon:i(68439),GetLineToRectangle:i(9569),GetRaysFromPointToPolygon:i(7449),GetRectangleIntersection:i(82931),GetRectangleToRectangle:i(1946),GetRectangleToTriangle:i(34211),GetTriangleToCircle:i(80511),GetTriangleToLine:i(31343),GetTriangleToTriangle:i(70534),LineToCircle:i(61472),LineToLine:i(25227),LineToRectangle:i(47910),PointToLine:i(34426),PointToLineSegment:i(81414),RectangleToRectangle:i(90205),RectangleToTriangle:i(20370),RectangleToValues:i(8786),TriangleToCircle:i(48411),TriangleToLine:i(86117),TriangleToTriangle:i(23589)}},50599:t=>{t.exports=function(t){return Math.atan2(t.y2-t.y1,t.x2-t.x1)}},58813:t=>{t.exports=function(t,e,i){void 0===e&&(e=1),void 0===i&&(i=[]);var s=Math.round(t.x1),n=Math.round(t.y1),r=Math.round(t.x2),o=Math.round(t.y2),a=Math.abs(r-s),h=Math.abs(o-n),l=s{t.exports=function(t,e,i){e-=(t.x1+t.x2)/2,i-=(t.y1+t.y2)/2;return t.x1+=e,t.y1+=i,t.x2+=e,t.y2+=i,t}},26718:(t,e,i)=>{var s=i(88829);t.exports=function(t){return new s(t.x1,t.y1,t.x2,t.y2)}},88930:t=>{t.exports=function(t,e){return e.setTo(t.x1,t.y1,t.x2,t.y2)}},90656:t=>{t.exports=function(t,e){return t.x1===e.x1&&t.y1===e.y1&&t.x2===e.x2&&t.y2===e.y2}},30897:(t,e,i)=>{var o=i(16028);t.exports=function(t,e,i){void 0===i&&(i=e);var s=o(t),n=t.x2-t.x1,r=t.y2-t.y1;return e&&(t.x1=t.x1-n/s*e,t.y1=t.y1-r/s*e),i&&(t.x2=t.x2+n/s*i,t.y2=t.y2+r/s*i),t}},30684:(t,e,i)=>{var v=i(92951),m=i(21902),x=i(79967);t.exports=function(t,e,i,s,n){void 0===s&&(s=0);var r,o=[],a=t.x1,h=t.y1,l=t.x2-a,u=t.y2-h,c=m(e,n=void 0===n?[]:n),d=i-1;for(g=0;g=s&&(f.push(y),p=y)}t=o[o.length-1];return v(p,t){var s=i(79967);t.exports=function(t,e){return(e=void 0===e?new s:e).x=(t.x1+t.x2)/2,e.y=(t.y1+t.y2)/2,e}},11222:(t,e,i)=>{var a=i(79967);t.exports=function(t,e,i){void 0===i&&(i=new a);var s=t.x1,n=t.y1,r=t.x2,t=t.y2,o=(r-s)*(r-s)+(t-n)*(t-n);return 0!=o&&(e=((e.x-s)*(r-s)+(e.y-n)*(t-n))/o,i.x=s+e*(r-s),i.y=n+e*(t-n)),i}},7377:(t,e,i)=>{var s=i(83392),n=i(50599),r=i(79967);t.exports=function(t,e){void 0===e&&(e=new r);t=n(t)-s.TAU;return e.x=Math.cos(t),e.y=Math.sin(t),e}},66464:(t,e,i)=>{var s=i(79967);t.exports=function(t,e,i){return(i=void 0===i?new s:i).x=t.x1+(t.x2-t.x1)*e,i.y=t.y1+(t.y2-t.y1)*e,i}},8570:(t,e,i)=>{var u=i(16028),c=i(79967);t.exports=function(t,e,i,s){void 0===s&&(s=[]),!e&&0{t.exports=function(t,e){var i=t.x1,s=t.y1,n=t.x2,t=t.y2,r=(n-i)*(n-i)+(t-s)*(t-s);return 0!=r&&(n=((s-e.y)*(n-i)-(i-e.x)*(t-s))/r,Math.abs(n)*Math.sqrt(r))}},82996:t=>{t.exports=function(t){return Math.abs(t.y1-t.y2)}},16028:t=>{t.exports=function(t){return Math.sqrt((t.x2-t.x1)*(t.x2-t.x1)+(t.y2-t.y1)*(t.y2-t.y1))}},88829:(t,e,i)=>{var s=i(56694),n=i(66464),r=i(8570),o=i(52394),a=i(74077),h=i(93736),i=new s({initialize:function(t,e,i,s){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=0),this.type=o.LINE,this.x1=t,this.y1=e,this.x2=i,this.y2=s},getPoint:function(t,e){return n(this,t,e)},getPoints:function(t,e,i){return r(this,t,e,i)},getRandomPoint:function(t){return a(this,t)},setTo:function(t,e,i,s){return void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=0),this.x1=t=void 0===t?0:t,this.y1=e,this.x2=i,this.y2=s,this},getPointA:function(t){return(t=void 0===t?new h:t).set(this.x1,this.y1),t},getPointB:function(t){return(t=void 0===t?new h:t).set(this.x2,this.y2),t},left:{get:function(){return Math.min(this.x1,this.x2)},set:function(t){this.x1<=this.x2?this.x1=t:this.x2=t}},right:{get:function(){return Math.max(this.x1,this.x2)},set:function(t){this.x1>this.x2?this.x1=t:this.x2=t}},top:{get:function(){return Math.min(this.y1,this.y2)},set:function(t){this.y1<=this.y2?this.y1=t:this.y2=t}},bottom:{get:function(){return Math.max(this.y1,this.y2)},set:function(t){this.y1>this.y2?this.y1=t:this.y2=t}}});t.exports=i},73273:(t,e,i)=>{var s=i(83392),n=i(1071),r=i(50599);t.exports=function(t){t=r(t)-s.TAU;return n(t,-Math.PI,Math.PI)}},96936:(t,e,i)=>{var s=i(83392),n=i(50599);t.exports=function(t){return Math.cos(n(t)-s.TAU)}},43581:(t,e,i)=>{var s=i(83392),n=i(50599);t.exports=function(t){return Math.sin(n(t)-s.TAU)}},13990:t=>{t.exports=function(t,e,i){return t.x1+=e,t.y1+=i,t.x2+=e,t.y2+=i,t}},1298:t=>{t.exports=function(t){return-(t.x2-t.x1)/(t.y2-t.y1)}},74077:(t,e,i)=>{var s=i(79967);t.exports=function(t,e){void 0===e&&(e=new s);var i=Math.random();return e.x=t.x1+i*(t.x2-t.x1),e.y=t.y1+i*(t.y2-t.y1),e}},30473:(t,e,i)=>{var s=i(50599),n=i(73273);t.exports=function(t,e){return 2*n(e)-Math.PI-s(t)}},25968:(t,e,i)=>{var n=i(1809);t.exports=function(t,e){var i=(t.x1+t.x2)/2,s=(t.y1+t.y2)/2;return n(t,i,s,e)}},24296:(t,e,i)=>{var s=i(1809);t.exports=function(t,e,i){return s(t,e.x,e.y,i)}},1809:t=>{t.exports=function(t,e,i,s){var n=Math.cos(s),s=Math.sin(s),r=t.x1-e,o=t.y1-i;return t.x1=r*n-o*s+e,t.y1=r*s+o*n+i,r=t.x2-e,o=t.y2-i,t.x2=r*n-o*s+e,t.y2=r*s+o*n+i,t}},88171:t=>{t.exports=function(t,e,i,s,n){return t.x1=e,t.y1=i,t.x2=e+Math.cos(s)*n,t.y2=i+Math.sin(s)*n,t}},82797:t=>{t.exports=function(t){return(t.y2-t.y1)/(t.x2-t.x1)}},41067:t=>{t.exports=function(t){return Math.abs(t.x1-t.x2)}},28482:(t,e,i)=>{var s=i(88829);s.Angle=i(50599),s.BresenhamPoints=i(58813),s.CenterOn=i(88513),s.Clone=i(26718),s.CopyFrom=i(88930),s.Equals=i(90656),s.Extend=i(30897),s.GetEasedPoints=i(30684),s.GetMidPoint=i(20487),s.GetNearestPoint=i(11222),s.GetNormal=i(7377),s.GetPoint=i(66464),s.GetPoints=i(8570),s.GetShortestDistance=i(65269),s.Height=i(82996),s.Length=i(16028),s.NormalAngle=i(73273),s.NormalX=i(96936),s.NormalY=i(43581),s.Offset=i(13990),s.PerpSlope=i(1298),s.Random=i(74077),s.ReflectAngle=i(30473),s.Rotate=i(25968),s.RotateAroundPoint=i(24296),s.RotateAroundXY=i(1809),s.SetToAngle=i(88171),s.Slope=i(82797),s.Width=i(41067),t.exports=s},18693:(t,e,i)=>{var s=i(56694),n=i(74118),r=i(93736);function u(t,e,i,s){t-=i,i=e-s;return Math.sqrt(t*t+i*i)}i=new s({initialize:function(t,e,i){this.vertex1=t,this.vertex2=e,this.vertex3=i,this.bounds=new n,this._inCenter=new r},getInCenter:function(t){var e,i,s,n,r,o=this.vertex1,a=this.vertex2,h=this.vertex3,t=(t=void 0===t?!0:t)?(e=o.x,i=o.y,s=a.x,n=a.y,r=h.x,h.y):(e=o.vx,i=o.vy,s=a.vx,n=a.vy,r=h.vx,h.vy),o=u(r,t,s,n),a=u(e,i,r,t),h=u(s,n,e,i),l=o+a+h;return this._inCenter.set((e*o+s*a+r*h)/l,(i*o+n*a+t*h)/l)},contains:function(t,e,i){var s=this.vertex1,n=this.vertex2,r=this.vertex3,o=s.vx,a=s.vy,h=n.vx,l=n.vy,u=r.vx,c=r.vy,s=(i&&(d=i.a,g=i.b,p=i.c,y=i.d,f=i.e,i=i.f,o=s.vx*d+s.vy*p+f,a=s.vx*g+s.vy*y+i,h=n.vx*d+n.vy*p+f,l=n.vx*g+n.vy*y+i,u=r.vx*d+r.vy*p+f,c=r.vx*g+r.vy*y+i),u-o),n=c-a,d=h-o,p=l-a,f=t-o,g=e-a,r=s*s+n*n,y=s*d+n*p,i=s*f+n*g,u=d*d+p*p,c=d*f+p*g,h=r*u-y*y,l=0==h?0:1/h,t=(u*i-y*c)*l,o=(r*c-y*i)*l;return 0<=t&&0<=o&&t+o<1},isCounterClockwise:function(t){var e=this.vertex1,i=this.vertex2,s=this.vertex3,i=(i.vx-e.vx)*(s.vy-e.vy)-(i.vy-e.vy)*(s.vx-e.vx);return t<=0?0<=i:i<0},load:function(t,e,i,s,n){return i=this.vertex1.load(t,e,i,s,n),i=this.vertex2.load(t,e,i,s,n),this.vertex3.load(t,e,i,s,n)},transformCoordinatesLocal:function(t,e,i,s){return this.vertex1.transformCoordinatesLocal(t,e,i,s),this.vertex2.transformCoordinatesLocal(t,e,i,s),this.vertex3.transformCoordinatesLocal(t,e,i,s),this},updateBounds:function(){var t=this.vertex1,e=this.vertex2,i=this.vertex3,s=this.bounds;return s.x=Math.min(t.vx,e.vx,i.vx),s.y=Math.min(t.vy,e.vy,i.vy),s.width=Math.max(t.vx,e.vx,i.vx)-s.x,s.height=Math.max(t.vy,e.vy,i.vy)-s.y,this},isInView:function(t,e,i,s,n,r,o,a,h,l,u){this.update(s,n,r,o,a,h,l,u);s=this.vertex1,n=this.vertex2,r=this.vertex3;return!(s.ta<=0&&n.ta<=0&&r.ta<=0||e&&!this.isCounterClockwise(i)||((o=this.bounds).x=Math.min(s.tx,n.tx,r.tx),o.y=Math.min(s.ty,n.ty,r.ty),o.width=Math.max(s.tx,n.tx,r.tx)-o.x,o.height=Math.max(s.ty,n.ty,r.ty)-o.y,a=t.x+t.width,h=t.y+t.height,o.width<=0)||o.height<=0||t.width<=0||t.height<=0||o.righta||o.y>h)},scrollUV:function(t,e){return this.vertex1.scrollUV(t,e),this.vertex2.scrollUV(t,e),this.vertex3.scrollUV(t,e),this},scaleUV:function(t,e){return this.vertex1.scaleUV(t,e),this.vertex2.scaleUV(t,e),this.vertex3.scaleUV(t,e),this},setColor:function(t){return this.vertex1.color=t,this.vertex2.color=t,this.vertex3.color=t,this},update:function(t,e,i,s,n,r,o,a){return this.vertex1.update(e,i,s,n,r,o,a,t),this.vertex2.update(e,i,s,n,r,o,a,t),this.vertex3.update(e,i,s,n,r,o,a,t),this},translate:function(t,e){void 0===e&&(e=0);var i=this.vertex1,s=this.vertex2,n=this.vertex3;return i.x+=t,i.y+=e,s.x+=t,s.y+=e,n.x+=t,n.y+=e,this},x:{get:function(){return this.getInCenter().x},set:function(t){var e=this.getInCenter();this.translate(t-e.x,0)}},y:{get:function(){return this.getInCenter().y},set:function(t){var e=this.getInCenter();this.translate(0,t-e.y)}},alpha:{get:function(){var t=this.vertex1,e=this.vertex2,i=this.vertex3;return(t.alpha+e.alpha+i.alpha)/3},set:function(t){this.vertex1.alpha=t,this.vertex2.alpha=t,this.vertex3.alpha=t}},depth:{get:function(){var t=this.vertex1,e=this.vertex2,i=this.vertex3;return(t.vz+e.vz+i.vz)/3}},destroy:function(){this.vertex1=null,this.vertex2=null,this.vertex3=null}});t.exports=i},99425:(t,e,i)=>{var Z=i(18693),Q=i(72632),s=i(16650),n=i(70015),$=i(85769),tt=new n,et=new n,it=new s;t.exports=function(t){var e,i=Q(t,"mesh"),s=Q(t,"texture",null),n=Q(t,"frame"),r=Q(t,"width",1),o=Q(t,"height",r),a=Q(t,"widthSegments",1),h=Q(t,"heightSegments",a),l=Q(t,"x",0),u=Q(t,"y",0),c=Q(t,"z",0),I=Q(t,"rotateX",0),B=Q(t,"rotateY",0),N=Q(t,"rotateZ",0),X=Q(t,"zIsUp",!0),U=Q(t,"isOrtho",!!i&&i.dirtyCache[11]),d=Q(t,"colors",[16777215]),p=Q(t,"alphas",[1]),z=Q(t,"tile",!1),Y=Q(t,"flipY",!1),t=Q(t,"width",null),f={faces:[],verts:[]};if(tt.set(l,u,c),et.set(I,B,N),it.fromRotationXYTranslation(et,tt,X),!s&&i)s=i.texture,n||(e=i.frame);else if(i&&"string"==typeof s)s=i.scene.sys.textures.get(s);else if(!s)return f;e=e||s.get(n),!t&&U&&s&&i&&(r=e.width/i.height,o=e.height/i.height);for(var V=r/2,G=o/2,g=Math.floor(a),y=Math.floor(h),v=g+1,W=y+1,H=r/g,j=o/y,m=[],x=[],w=0,T=1,b=0,S=1,K=(e&&(w=e.u0,T=e.u1,S=Y?(b=e.v1,e.v0):(b=e.v0,e.v1)),T-w),q=S-b,P=0;P{var E=i(18693),s=i(16650),n=i(70015),A=i(85769),C=new n,M=new n,O=new s;t.exports=function(t,e,i,s,n,r,o,a,h,l){void 0===i&&(i=1),void 0===o&&(o=0),void 0===a&&(a=0),void 0===h&&(h=0),void 0===l&&(l=!0);var u={faces:[],verts:[]},c=t.materials;C.set(s=void 0===s?0:s,n=void 0===n?0:n,r=void 0===r?0:r),M.set(o,a,h),O.fromRotationXYTranslation(M,C,l);for(var d=0;d{var R=i(18693),D=i(85769);t.exports=function(t,e,i,s,n,r,o,a){if(void 0===s&&(s=!1),void 0===r&&(r=16777215),void 0===o&&(o=1),void 0===a&&(a=!1),t.length===e.length||s){var h,l,u={faces:[],vertices:[]},c=s?3:2,d=Array.isArray(r),p=Array.isArray(o);if(Array.isArray(i)&&0{var M=!0,O="untitled",R="",D="";function L(t){return 0===t.models.length&&t.models.push({faces:[],name:O,textureCoords:[],vertexNormals:[],vertices:[]}),R="",t.models[t.models.length-1]}t.exports=function(t,e){M=e=void 0===e?!0:e;var i={materials:{},materialLibraries:[],models:[]};D=R="";for(var s,n,r,o,a,h,l,u,c,d,p,f,g,y=t.split("\n"),v=0;v{var u=i(22946);t.exports=function(t){for(var e={},i=t.split("\n"),s="",n=0;n{t.exports=function(t,e,i,s){void 0===i&&void 0===s&&(n=(i=t.getInCenter()).x,r=i.y);var n,r,s=Math.cos(e),i=Math.sin(e),e=t.vertex1,o=t.vertex2,t=t.vertex3,a=e.x-n,h=e.y-r;e.set(a*s-h*i+n,a*i+h*s+r),a=o.x-n,h=o.y-r,o.set(a*s-h*i+n,a*i+h*s+r),a=t.x-n,h=t.y-r,t.set(a*s-h*i+n,a*i+h*s+r)}},85769:(t,e,i)=>{var s=i(56694),r=i(75512),u=i(70015),i=new s({Extends:u,initialize:function(t,e,i,s,n,r,o,a,h,l){void 0===r&&(r=16777215),void 0===o&&(o=1),void 0===a&&(a=0),void 0===h&&(h=0),void 0===l&&(l=0),u.call(this,t,e,i),this.vx=0,this.vy=0,this.vz=0,this.nx=a,this.ny=h,this.nz=l,this.u=s,this.v=n,this.color=r,this.alpha=o,this.tx=0,this.ty=0,this.ta=0,this.tu=s,this.tv=n},setUVs:function(t,e){return this.u=t,this.v=e,this.tu=t,this.tv=e,this},scrollUV:function(t,e){return this.tu+=t,this.tv+=e,this},scaleUV:function(t,e){return this.tu=this.u*t,this.tv=this.v*e,this},transformCoordinatesLocal:function(t,e,i,s){var n=this.x,r=this.y,o=this.z,t=t.val,a=n*t[0]+r*t[4]+o*t[8]+t[12],h=n*t[1]+r*t[5]+o*t[9]+t[13],l=n*t[2]+r*t[6]+o*t[10]+t[14],n=n*t[3]+r*t[7]+o*t[11]+t[15];this.vx=a/n*e,this.vy=-h/n*i,this.vz=s<=0?l/n:-l/n},resize:function(t,e,i,s,n,r){return this.x=t,this.y=e,this.vx=this.x*i,this.vy=-this.y*s,this.vz=0,n<.5?this.vx+=i*(.5-n):.5{i={Face:i(18693),GenerateGridVerts:i(99425),GenerateObjVerts:i(53267),GenerateVerts:i(67623),ParseObj:i(27291),ParseObjMaterial:i(76799),RotateFace:i(15313),Vertex:i(85769)};t.exports=i},77601:t=>{t.exports=function(t){return t.setTo(Math.ceil(t.x),Math.ceil(t.y))}},38933:(t,e,i)=>{var s=i(79967);t.exports=function(t){return new s(t.x,t.y)}},47103:t=>{t.exports=function(t,e){return e.setTo(t.x,t.y)}},13625:t=>{t.exports=function(t,e){return t.x===e.x&&t.y===e.y}},12536:t=>{t.exports=function(t){return t.setTo(Math.floor(t.x),Math.floor(t.y))}},54205:(t,e,i)=>{var n=i(79967);t.exports=function(t,e){if(void 0===e&&(e=new n),!Array.isArray(t))throw new Error("GetCentroid points argument must be an array");var i=t.length;if(i<1)throw new Error("GetCentroid points array must not be empty");if(1===i)e.x=t[0].x,e.y=t[0].y;else{for(var s=0;s{t.exports=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)}},82712:t=>{t.exports=function(t){return t.x*t.x+t.y*t.y}},20052:(t,e,i)=>{var h=i(74118);t.exports=function(t,e){void 0===e&&(e=new h);for(var i=Number.NEGATIVE_INFINITY,s=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY,r=Number.POSITIVE_INFINITY,o=0;oi&&(i=a.x),a.xn&&(n=a.y),a.y{var n=i(79967);t.exports=function(t,e,i,s){return void 0===i&&(i=0),(s=void 0===s?new n:s).x=t.x+(e.x-t.x)*i,s.y=t.y+(e.y-t.y)*i,s}},42397:t=>{t.exports=function(t){return t.setTo(t.y,t.x)}},59464:(t,e,i)=>{var s=i(79967);t.exports=function(t,e){return(e=void 0===e?new s:e).setTo(-t.x,-t.y)}},79967:(t,e,i)=>{var s=i(56694),n=i(52394),i=new s({initialize:function(t,e){void 0===t&&(t=0),void 0===e&&(e=t),this.type=n.POINT,this.x=t,this.y=e},setTo:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.x=t,this.y=e,this}});t.exports=i},53581:(t,e,i)=>{var s=i(79967),n=i(82712);t.exports=function(t,e,i){void 0===i&&(i=new s);t=(t.x*e.x+t.y*e.y)/n(e);return 0!=t&&(i.x=t*e.x,i.y=t*e.y),i}},50817:(t,e,i)=>{var s=i(79967);t.exports=function(t,e,i){void 0===i&&(i=new s);t=t.x*e.x+t.y*e.y;return 0!=t&&(i.x=t*e.x,i.y=t*e.y),i}},40525:(t,e,i)=>{var s=i(50083);t.exports=function(t,e){var i;return 0===t.x&&0===t.y||(i=s(t),t.x/=i,t.y/=i),t.x*=e,t.y*=e,t}},63472:(t,e,i)=>{var s=i(79967);s.Ceil=i(77601),s.Clone=i(38933),s.CopyFrom=i(47103),s.Equals=i(13625),s.Floor=i(12536),s.GetCentroid=i(54205),s.GetMagnitude=i(50083),s.GetMagnitudeSq=i(82712),s.GetRectangleFromPoints=i(20052),s.Interpolate=i(77154),s.Invert=i(42397),s.Negative=i(59464),s.Project=i(53581),s.ProjectUnit=i(50817),s.SetMagnitude=i(40525),t.exports=s},19631:(t,e,i)=>{var s=i(8580);t.exports=function(t){return new s(t.points)}},45604:t=>{t.exports=function(t,e,i){for(var s=!1,n=-1,r=t.points.length-1;++n{var s=i(45604);t.exports=function(t,e){return s(t,e.x,e.y)}},11117:t=>{"use strict";function e(t,e,i){i=i||2;var s,n,r,o,a,h=e&&e.length,l=h?e[0]*i:t.length,u=g(t,0,l,i,!0),c=[];if(u&&u.next!==u.prev){if(h&&(u=function(t,e,i,s){for(var n,r,o,a,h=[],l=0,u=e.length;l=s.next.y&&s.next.y!==s.y){var a=s.x+(r-s.y)*(s.next.x-s.x)/(s.next.y-s.y);if(a<=n&&o=s.x&&s.x>=d&&n!==s.x&&C(ri.x||s.x===i.x&&(u=s,M((l=i).prev,l,u.prev)<0)&&M(u.next,l,l.next)<0))&&(i=s,f=h),(s=s.next)!==c;);return i}(r=h[l],o=i))?(_(r=L(a,r),r.next),_(a,a.next)):o;return i}(t,e,u,i)),t.length>80*i){for(var d=s=t[0],p=n=t[1],f=i;f=v&&w&&w.z<=m;){if(x.x>=p&&x.x<=g&&x.y>=f&&x.y<=y&&x!==n&&x!==o&&C(a,u,h,c,l,d,x.x,x.y)&&0<=M(x.prev,x,x.next))return;if(x=x.prevZ,w.x>=p&&w.x<=g&&w.y>=f&&w.y<=y&&w!==n&&w!==o&&C(a,u,h,c,l,d,w.x,w.y)&&0<=M(w.prev,w,w.next))return;w=w.nextZ}for(;x&&x.z>=v;){if(x.x>=p&&x.x<=g&&x.y>=f&&x.y<=y&&x!==n&&x!==o&&C(a,u,h,c,l,d,x.x,x.y)&&0<=M(x.prev,x,x.next))return;x=x.prevZ}for(;w&&w.z<=m;){if(w.x>=p&&w.x<=g&&w.y>=f&&w.y<=y&&w!==n&&w!==o&&C(a,u,h,c,l,d,w.x,w.y)&&0<=M(w.prev,w,w.next))return;w=w.nextZ}return 1}(t,s,n,r):function(t){var e=t.prev,i=t,t=t.next;if(0<=M(e,i,t))return;for(var s=e.x,n=i.x,r=t.x,o=e.y,a=i.y,h=t.y,l=s=l&&p.x<=c&&p.y>=u&&p.y<=d&&C(s,o,n,a,r,h,p.x,p.y)&&0<=M(p.prev,p,p.next))return;p=p.next}return 1}(t))e.push(b.i/i|0),e.push(t.i/i|0),e.push(S.i/i|0),k(t),t=S.next,P=S.next;else if((t=S)===P){o?1===o?E(t=function(t,e,i){var s=t;do{var n=s.prev,r=s.next.next}while(!O(n,r)&&R(n,s,s.next,r)&&D(n,r)&&D(r,n)&&(e.push(n.i/i|0),e.push(s.i/i|0),e.push(r.i/i|0),k(s),k(s.next),s=t=r),s=s.next,s!==t);return _(s)}(_(t),e,i),e,i,s,n,r,2):2===o&&function(t,e,i,s,n,r){var o=t;do{for(var a,h=o.next.next;h!==o.prev;){if(o.i!==h.i&&function(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var i=t;do{if(i.i!==t.i&&i.next.i!==t.i&&i.i!==e.i&&i.next.i!==e.i&&R(i,i.next,t,e))return 1}while((i=i.next)!==t)}(t,e)&&(D(t,e)&&D(e,t)&&function(t,e){for(var i=t,s=!1,n=(t.x+e.x)/2,r=(t.y+e.y)/2;i.y>r!=i.next.y>r&&i.next.y!==i.y&&n<(i.next.x-i.x)*(r-i.y)/(i.next.y-i.y)+i.x&&(s=!s),(i=i.next)!==t;);return s}(t,e)&&(M(t.prev,t,e.prev)||M(t,e.prev,e))||O(t,e)&&0=Math.min(t.x,i.x)&&e.y<=Math.max(t.y,i.y)&&e.y>=Math.min(t.y,i.y)}function l(t){return 0{var h=i(74118);t.exports=function(t,e){void 0===e&&(e=new h);for(var i,s=1/0,n=1/0,r=-s,o=-n,a=0;a{t.exports=function(t,e){void 0===e&&(e=[]);for(var i=0;i{var d=i(16028),p=i(88829),f=i(5159);t.exports=function(t,e,i,s){void 0===s&&(s=[]);var n=t.points,r=f(t);!e&&0{var o=i(16028),a=i(88829);t.exports=function(t){for(var e=t.points,i=0,s=0;s{var s=i(56694),n=i(45604),r=i(89294),o=i(52394),i=new s({initialize:function(t){this.type=o.POLYGON,this.area=0,this.points=[],t&&this.setTo(t)},contains:function(t,e){return n(this,t,e)},setTo:function(t){if(this.area=0,this.points=[],"string"==typeof t&&(t=t.split(" ")),Array.isArray(t)){for(var e,i=Number.MAX_VALUE,s=0;s{t.exports=function(t){return t.points.reverse(),t}},95874:t=>{function n(t,e){var i=t.length-1,s=[t[0]];return function t(e,i,s,n,r){for(var o,a,h,l,u,c,d,p=n,f=i+1;fe&&(a.push(i),o=i);return o!==i&&a.push(i),a}(s,e)),t.setTo(n(s,e))),t}},18974:t=>{function l(t,e){return t[0]=e[0],t[1]=e[1],t}t.exports=function(t){for(var e=[],i=t.points,s=0;s{t.exports=function(t,e,i){for(var s=t.points,n=0;n{var s=i(8580);s.Clone=i(19631),s.Contains=i(45604),s.ContainsPoint=i(87289),s.Earcut=i(11117),s.GetAABB=i(14045),s.GetNumberArray=i(98286),s.GetPoints=i(89294),s.Perimeter=i(5159),s.Reverse=i(32244),s.Simplify=i(95874),s.Smooth=i(18974),s.Translate=i(23490),t.exports=s},1653:t=>{t.exports=function(t){return t.width*t.height}},33943:t=>{t.exports=function(t){return t.x=Math.ceil(t.x),t.y=Math.ceil(t.y),t}},58662:t=>{t.exports=function(t){return t.x=Math.ceil(t.x),t.y=Math.ceil(t.y),t.width=Math.ceil(t.width),t.height=Math.ceil(t.height),t}},79993:t=>{t.exports=function(t,e,i){return t.x=e-t.width/2,t.y=i-t.height/2,t}},81572:(t,e,i)=>{var s=i(74118);t.exports=function(t){return new s(t.x,t.y,t.width,t.height)}},94287:t=>{t.exports=function(t,e,i){return!(t.width<=0||t.height<=0)&&t.x<=e&&t.x+t.width>=e&&t.y<=i&&t.y+t.height>=i}},28687:(t,e,i)=>{var s=i(94287);t.exports=function(t,e){return s(t,e.x,e.y)}},73222:t=>{t.exports=function(t,e){return!(e.width*e.height>t.width*t.height)&&e.x>t.x&&e.xt.x&&e.rightt.y&&e.yt.y&&e.bottom{t.exports=function(t,e){return e.setTo(t.x,t.y,t.width,t.height)}},87279:t=>{t.exports=function(t,e){return(e=void 0===e?[]:e).push({x:t.x,y:t.y}),e.push({x:t.right,y:t.y}),e.push({x:t.right,y:t.bottom}),e.push({x:t.x,y:t.bottom}),e}},19989:t=>{t.exports=function(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}},92628:(t,e,i)=>{var s=i(6700);t.exports=function(t,e){var i=s(t);return i{var s=i(6700);t.exports=function(t,e){var i=s(t);return i>s(e)?t.setSize(e.height*i,e.height):t.setSize(e.width,e.width/i),t.setPosition(e.centerX-t.width/2,e.centerY-t.height/2)}},71356:t=>{t.exports=function(t){return t.x=Math.floor(t.x),t.y=Math.floor(t.y),t}},21687:t=>{t.exports=function(t){return t.x=Math.floor(t.x),t.y=Math.floor(t.y),t.width=Math.floor(t.width),t.height=Math.floor(t.height),t}},80222:(t,e,i)=>{var l=i(74118),u=i(83392);t.exports=function(t,e){if(void 0===e&&(e=new l),0!==t.length){for(var i,s,n=Number.MAX_VALUE,r=Number.MAX_VALUE,o=u.MIN_SAFE_INTEGER,a=u.MIN_SAFE_INTEGER,h=0;h{var r=i(74118);t.exports=function(t,e,i,s,n){return(n=void 0===n?new r:n).setTo(Math.min(t,i),Math.min(e,s),Math.abs(t-i),Math.abs(e-s))}},6700:t=>{t.exports=function(t){return 0===t.height?NaN:t.width/t.height}},35242:(t,e,i)=>{var s=i(79967);t.exports=function(t,e){return(e=void 0===e?new s:e).x=t.centerX,e.y=t.centerY,e}},47698:(t,e,i)=>{var n=i(85876),r=i(79967);t.exports=function(t,e,i){var s;return(void 0===i&&(i=new r),e<=0||1<=e)?(i.x=t.x,i.y=t.y):(s=n(t)*e,.5{var r=i(47698),o=i(85876);t.exports=function(t,e,i,s){void 0===s&&(s=[]),!e&&0{var s=i(79967);t.exports=function(t,e){return(e=void 0===e?new s:e).x=t.width,e.y=t.height,e}},7782:(t,e,i)=>{var r=i(79993);t.exports=function(t,e,i){var s=t.centerX,n=t.centerY;return t.setSize(t.width+2*e,t.height+2*i),r(t,s,n)}},66217:(t,e,i)=>{var s=i(74118),n=i(90205);t.exports=function(t,e,i){return void 0===i&&(i=new s),n(t,e)?(i.x=Math.max(t.x,e.x),i.y=Math.max(t.y,e.y),i.width=Math.min(t.right,e.right)-i.x,i.height=Math.min(t.bottom,e.bottom)-i.y):i.setEmpty(),i}},40053:(t,e,i)=>{var h=i(85876),l=i(79967);t.exports=function(t,e,i,s){if(void 0===s&&(s=[]),e||i){e?i=Math.round(h(t)/e):e=h(t)/i;for(var n=t.x,r=t.y,o=0,a=0;a=t.right&&(o=1,r+=n-t.right,n=t.right);break;case 1:(r+=e)>=t.bottom&&(o=2,n-=r-t.bottom,r=t.bottom);break;case 2:(n-=e)<=t.left&&(o=3,r-=t.left-n,n=t.left);break;case 3:(r-=e)<=t.top&&(o=0,r=t.top)}}return s}},86673:t=>{t.exports=function(t,e){for(var i=t.x,s=t.right,n=t.y,r=t.bottom,o=0;o{t.exports=function(t,e){var i=Math.min(t.x,e.x),s=Math.max(t.right,e.right),s=(t.x=i,t.width=s-i,Math.min(t.y,e.y)),i=Math.max(t.bottom,e.bottom);return t.y=s,t.height=i-s,t}},44755:t=>{t.exports=function(t,e,i){var s=Math.min(t.x,e),e=Math.max(t.right,e),e=(t.x=s,t.width=e-s,Math.min(t.y,i)),s=Math.max(t.bottom,i);return t.y=e,t.height=s-e,t}},74466:t=>{t.exports=function(t,e,i){return t.x+=e,t.y+=i,t}},55946:t=>{t.exports=function(t,e){return t.x+=e.x,t.y+=e.y,t}},97474:t=>{t.exports=function(t,e){return t.xe.x&&t.ye.y}},85876:t=>{t.exports=function(t){return 2*(t.width+t.height)}},20243:(t,e,i)=>{var o=i(79967),a=i(75606);t.exports=function(t,e,i){void 0===i&&(i=new o),e=a(e);var s=Math.sin(e),e=Math.cos(e),n=0{var s=i(79967);t.exports=function(t,e){return(e=void 0===e?new s:e).x=t.x+Math.random()*t.width,e.y=t.y+Math.random()*t.height,e}},97691:(t,e,i)=>{var s=i(17489),n=i(73222),r=i(79967);t.exports=function(t,e,i){if(void 0===i&&(i=new r),n(t,e))switch(s(0,3)){case 0:i.x=t.x+Math.random()*(e.right-t.x),i.y=t.y+Math.random()*(e.top-t.y);break;case 1:i.x=e.x+Math.random()*(t.right-e.x),i.y=e.bottom+Math.random()*(t.bottom-e.bottom);break;case 2:i.x=t.x+Math.random()*(e.x-t.x),i.y=e.y+Math.random()*(t.bottom-e.y);break;case 3:i.x=e.right+Math.random()*(t.right-e.right),i.y=t.y+Math.random()*(e.bottom-t.y)}return i}},74118:(t,e,i)=>{var s=i(56694),n=i(94287),r=i(47698),o=i(54932),a=i(52394),h=i(88829),l=i(30001),i=new s({initialize:function(t,e,i,s){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=0),this.type=a.RECTANGLE,this.x=t,this.y=e,this.width=i,this.height=s},contains:function(t,e){return n(this,t,e)},getPoint:function(t,e){return r(this,t,e)},getPoints:function(t,e,i){return o(this,t,e,i)},getRandomPoint:function(t){return l(this,t)},setTo:function(t,e,i,s){return this.x=t,this.y=e,this.width=i,this.height=s,this},setEmpty:function(){return this.setTo(0,0,0,0)},setPosition:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},setSize:function(t,e){return void 0===e&&(e=t),this.width=t,this.height=e,this},isEmpty:function(){return this.width<=0||this.height<=0},getLineA:function(t){return(t=void 0===t?new h:t).setTo(this.x,this.y,this.right,this.y),t},getLineB:function(t){return(t=void 0===t?new h:t).setTo(this.right,this.y,this.right,this.bottom),t},getLineC:function(t){return(t=void 0===t?new h:t).setTo(this.right,this.bottom,this.x,this.bottom),t},getLineD:function(t){return(t=void 0===t?new h:t).setTo(this.x,this.bottom,this.x,this.y),t},left:{get:function(){return this.x},set:function(t){t>=this.right?this.width=0:this.width=this.right-t,this.x=t}},right:{get:function(){return this.x+this.width},set:function(t){t<=this.x?this.width=0:this.width=t-this.x}},top:{get:function(){return this.y},set:function(t){t>=this.bottom?this.height=0:this.height=this.bottom-t,this.y=t}},bottom:{get:function(){return this.y+this.height},set:function(t){t<=this.y?this.height=0:this.height=t-this.y}},centerX:{get:function(){return this.x+this.width/2},set:function(t){this.x=t-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(t){this.y=t-this.height/2}}});t.exports=i},51828:t=>{t.exports=function(t,e){return t.width===e.width&&t.height===e.height}},5691:t=>{t.exports=function(t,e,i){return void 0===i&&(i=e),t.width*=e,t.height*=i,t}},58795:(t,e,i)=>{var o=i(74118);t.exports=function(t,e,i){void 0===i&&(i=new o);var s=Math.min(t.x,e.x),n=Math.min(t.y,e.y),r=Math.max(t.right,e.right)-s,t=Math.max(t.bottom,e.bottom)-n;return i.setTo(s,n,r,t)}},66658:(t,e,i)=>{var s=i(74118);s.Area=i(1653),s.Ceil=i(33943),s.CeilAll=i(58662),s.CenterOn=i(79993),s.Clone=i(81572),s.Contains=i(94287),s.ContainsPoint=i(28687),s.ContainsRect=i(73222),s.CopyFrom=i(29538),s.Decompose=i(87279),s.Equals=i(19989),s.FitInside=i(92628),s.FitOutside=i(85028),s.Floor=i(71356),s.FloorAll=i(21687),s.FromPoints=i(80222),s.FromXY=i(75785),s.GetAspectRatio=i(6700),s.GetCenter=i(35242),s.GetPoint=i(47698),s.GetPoints=i(54932),s.GetSize=i(31591),s.Inflate=i(7782),s.Intersection=i(66217),s.MarchingAnts=i(40053),s.MergePoints=i(86673),s.MergeRect=i(14655),s.MergeXY=i(44755),s.Offset=i(74466),s.OffsetPoint=i(55946),s.Overlaps=i(97474),s.Perimeter=i(85876),s.PerimeterPoint=i(20243),s.Random=i(30001),s.RandomOutside=i(97691),s.SameDimensions=i(51828),s.Scale=i(5691),s.Union=i(58795),t.exports=s},19108:t=>{t.exports=function(t){var e=t.x1,i=t.y1,s=t.x2,n=t.y2,r=t.x3,t=t.y3;return Math.abs(((r-e)*(n-i)-(s-e)*(t-i))/2)}},41199:(t,e,i)=>{var n=i(66349);t.exports=function(t,e,i){var s=i*(Math.sqrt(3)/2);return new n(t,e,t+i/2,e+s,t-i/2,e+s)}},88730:(t,e,i)=>{var p=i(11117),f=i(66349);t.exports=function(t,e,i,s,n){void 0===i&&(i=1),void 0===s&&(s=1),void 0===n&&(n=[]);for(var r,o,a,h,l,u,c=p(t,e=void 0===e?null:e),d=0;d{var n=i(66349);t.exports=function(t,e,i,s){return new n(t,e,t,e-(s=void 0===s?i:s),t+i,e)}},1882:(t,e,i)=>{var n=i(56595),r=i(9640);t.exports=function(t,e,i,s){s=(s=void 0===s?n:s)(t),e-=s.x,i-=s.y;return r(t,e,i)}},56595:(t,e,i)=>{var s=i(79967);t.exports=function(t,e){return(e=void 0===e?new s:e).x=(t.x1+t.x2+t.x3)/3,e.y=(t.y1+t.y2+t.y3)/3,e}},91835:(t,e,i)=>{var l=i(93736);t.exports=function(t,e){void 0===e&&(e=new l);var i=t.x3,s=t.y3,n=t.x1-i,r=t.y1-s,o=t.x2-i,t=t.y2-s,a=2*(n*t-r*o),h=n*(o*o+t*t)-(n*n+r*r)*o;return e.x=i-(r*(o*o+t*t)-(n*n+r*r)*t)/a,e.y=s+h/a,e}},97073:(t,e,i)=>{var m=i(26673);t.exports=function(t,e){void 0===e&&(e=new m);var i,s,n,r,o=t.x1,a=t.y1,h=t.x2,l=t.y2,u=t.x3,t=t.y3,c=h-o,d=l-a,p=u-o,f=t-a,g=c*(o+h)+d*(a+l),y=p*(o+u)+f*(a+t),v=2*(c*(t-l)-d*(u-h));return Math.abs(v)<1e-6?(i=Math.min(o,h,u),s=Math.min(a,l,t),n=.5*(Math.max(o,h,u)-i),r=.5*(Math.max(a,l,t)-s),e.x=i+n,e.y=s+r):(e.x=(f*g-d*y)/v,e.y=(c*y-p*g)/v,n=e.x-o,r=e.y-a),e.radius=Math.sqrt(n*n+r*r),e}},75974:(t,e,i)=>{var s=i(66349);t.exports=function(t){return new s(t.x1,t.y1,t.x2,t.y2,t.x3,t.y3)}},60689:t=>{t.exports=function(t,e,i){var s=t.x3-t.x1,n=t.y3-t.y1,r=t.x2-t.x1,o=t.y2-t.y1,e=e-t.x1,i=i-t.y1,t=s*s+n*n,a=s*r+n*o,s=s*e+n*i,n=r*r+o*o,r=r*e+o*i,e=t*n-a*a,o=0==e?0:1/e,i=(n*s-a*r)*o,e=(t*r-a*s)*o;return 0<=i&&0<=e&&i+e<1}},86875:t=>{t.exports=function(t,e,i,s){void 0===i&&(i=!1),void 0===s&&(s=[]);for(var n,r,o,a=t.x3-t.x1,h=t.y3-t.y1,l=t.x2-t.x1,u=t.y2-t.y1,c=a*a+h*h,d=a*l+h*u,p=l*l+u*u,f=c*p-d*d,g=0==f?0:1/f,y=t.x1,v=t.y1,m=0;m{var s=i(60689);t.exports=function(t,e){return s(t,e.x,e.y)}},42538:t=>{t.exports=function(t,e){return e.setTo(t.x1,t.y1,t.x2,t.y2,t.x3,t.y3)}},18680:t=>{t.exports=function(t,e){return(e=void 0===e?[]:e).push({x:t.x1,y:t.y1}),e.push({x:t.x2,y:t.y2}),e.push({x:t.x3,y:t.y3}),e}},29977:t=>{t.exports=function(t,e){return t.x1===e.x1&&t.y1===e.y1&&t.x2===e.x2&&t.y2===e.y2&&t.x3===e.x3&&t.y3===e.y3}},56088:(t,e,i)=>{var l=i(79967),u=i(16028);t.exports=function(t,e,i){void 0===i&&(i=new l);var s,n,r,o,a=t.getLineA(),h=t.getLineB(),t=t.getLineC();return e<=0||1<=e?(i.x=a.x1,i.y=a.y1):(o=0,(e=((s=u(a))+(n=u(h))+(r=u(t)))*e){var g=i(16028),y=i(79967);t.exports=function(t,e,i,s){void 0===s&&(s=[]);var n=t.getLineA(),r=t.getLineB(),o=t.getLineC(),a=g(n),h=g(r),l=g(o),u=a+h+l;!e&&0{var c=i(79967);function d(t,e,i,s){t-=i,i=e-s;return Math.sqrt(t*t+i*i)}t.exports=function(t,e){void 0===e&&(e=new c);var i=t.x1,s=t.y1,n=t.x2,r=t.y2,o=t.x3,t=t.y3,a=d(o,t,n,r),h=d(i,s,o,t),l=d(n,r,i,s),u=a+h+l;return e.x=(i*a+n*h+o*l)/u,e.y=(s*a+r*h+t*l)/u,e}},9640:t=>{t.exports=function(t,e,i){return t.x1+=e,t.y1+=i,t.x2+=e,t.y2+=i,t.x3+=e,t.y3+=i,t}},95290:(t,e,i)=>{var s=i(16028);t.exports=function(t){var e=t.getLineA(),i=t.getLineB(),t=t.getLineC();return s(e)+s(i)+s(t)}},99761:(t,e,i)=>{var h=i(79967);t.exports=function(t,e){void 0===e&&(e=new h);var i=t.x2-t.x1,s=t.y2-t.y1,n=t.x3-t.x1,r=t.y3-t.y1,o=Math.random(),a=Math.random();return 1<=o+a&&(o=1-o,a=1-a),e.x=t.x1+(i*o+n*a),e.y=t.y1+(s*o+r*a),e}},21934:(t,e,i)=>{var s=i(19211),n=i(83648);t.exports=function(t,e){var i=n(t);return s(t,i.x,i.y,e)}},68454:(t,e,i)=>{var s=i(19211);t.exports=function(t,e,i){return s(t,e.x,e.y,i)}},19211:t=>{t.exports=function(t,e,i,s){var n=Math.cos(s),s=Math.sin(s),r=t.x1-e,o=t.y1-i;return t.x1=r*n-o*s+e,t.y1=r*s+o*n+i,r=t.x2-e,o=t.y2-i,t.x2=r*n-o*s+e,t.y2=r*s+o*n+i,r=t.x3-e,o=t.y3-i,t.x3=r*n-o*s+e,t.y3=r*s+o*n+i,t}},66349:(t,e,i)=>{var s=i(56694),n=i(60689),r=i(56088),o=i(24402),a=i(52394),h=i(88829),l=i(99761),i=new s({initialize:function(t,e,i,s,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=0),void 0===n&&(n=0),void 0===r&&(r=0),this.type=a.TRIANGLE,this.x1=t,this.y1=e,this.x2=i,this.y2=s,this.x3=n,this.y3=r},contains:function(t,e){return n(this,t,e)},getPoint:function(t,e){return r(this,t,e)},getPoints:function(t,e,i){return o(this,t,e,i)},getRandomPoint:function(t){return l(this,t)},setTo:function(t,e,i,s,n,r){return void 0===e&&(e=0),void 0===i&&(i=0),void 0===s&&(s=0),void 0===n&&(n=0),void 0===r&&(r=0),this.x1=t=void 0===t?0:t,this.y1=e,this.x2=i,this.y2=s,this.x3=n,this.y3=r,this},getLineA:function(t){return(t=void 0===t?new h:t).setTo(this.x1,this.y1,this.x2,this.y2),t},getLineB:function(t){return(t=void 0===t?new h:t).setTo(this.x2,this.y2,this.x3,this.y3),t},getLineC:function(t){return(t=void 0===t?new h:t).setTo(this.x3,this.y3,this.x1,this.y1),t},left:{get:function(){return Math.min(this.x1,this.x2,this.x3)},set:function(t){t=this.x1<=this.x2&&this.x1<=this.x3?this.x1-t:this.x2<=this.x1&&this.x2<=this.x3?this.x2-t:this.x3-t;this.x1-=t,this.x2-=t,this.x3-=t}},right:{get:function(){return Math.max(this.x1,this.x2,this.x3)},set:function(t){t=this.x1>=this.x2&&this.x1>=this.x3?this.x1-t:this.x2>=this.x1&&this.x2>=this.x3?this.x2-t:this.x3-t;this.x1-=t,this.x2-=t,this.x3-=t}},top:{get:function(){return Math.min(this.y1,this.y2,this.y3)},set:function(t){t=this.y1<=this.y2&&this.y1<=this.y3?this.y1-t:this.y2<=this.y1&&this.y2<=this.y3?this.y2-t:this.y3-t;this.y1-=t,this.y2-=t,this.y3-=t}},bottom:{get:function(){return Math.max(this.y1,this.y2,this.y3)},set:function(t){t=this.y1>=this.y2&&this.y1>=this.y3?this.y1-t:this.y2>=this.y1&&this.y2>=this.y3?this.y2-t:this.y3-t;this.y1-=t,this.y2-=t,this.y3-=t}}});t.exports=i},87619:(t,e,i)=>{var s=i(66349);s.Area=i(19108),s.BuildEquilateral=i(41199),s.BuildFromPolygon=i(88730),s.BuildRight=i(3635),s.CenterOn=i(1882),s.Centroid=i(56595),s.CircumCenter=i(91835),s.CircumCircle=i(97073),s.Clone=i(75974),s.Contains=i(60689),s.ContainsArray=i(86875),s.ContainsPoint=i(51532),s.CopyFrom=i(42538),s.Decompose=i(18680),s.Equals=i(29977),s.GetPoint=i(56088),s.GetPoints=i(24402),s.InCenter=i(83648),s.Perimeter=i(95290),s.Offset=i(9640),s.Random=i(99761),s.Rotate=i(21934),s.RotateAroundPoint=i(68454),s.RotateAroundXY=i(19211),t.exports=s},27395:t=>{t.exports=function(t,e,i){return{gameObject:t,enabled:!0,draggable:!1,dropZone:!1,cursor:!1,target:null,camera:null,hitArea:e,hitAreaCallback:i,hitAreaDebug:null,customHitArea:!1,localX:0,localY:0,dragState:0,dragStartX:0,dragStartY:0,dragStartXGlobal:0,dragStartYGlobal:0,dragX:0,dragY:0}}},18104:t=>{t.exports=function(n,r){return function(t,e,i,s){e=n.getPixelAlpha(e,i,s.texture.key,s.frame.name);return e&&r<=e}}},69898:(t,e,i)=>{var s=i(56694),h=i(72687),n=i(6659),r=i(33963),o=i(97081),a=i(71064),l=i(7905),u=i(40398),c=i(37579),d=i(69360),y=i(64462),i=new s({initialize:function(t,e){this.game=t,this.scaleManager,this.canvas,this.config=e,this.enabled=!0,this.events=new n,this.isOver=!0,this.defaultCursor="",this.keyboard=e.inputKeyboard?new a(this):null,this.mouse=e.inputMouse?new l(this):null,this.touch=e.inputTouch?new c(this):null,this.pointers=[],this.pointersTotal=e.inputActivePointers,e.inputTouch&&1===this.pointersTotal&&(this.pointersTotal=2);for(var i=0;i<=this.pointersTotal;i++){var s=new u(this,i);s.smoothFactor=e.inputSmoothFactor,this.pointers.push(s)}this.mousePointer=e.inputMouse?this.pointers[0]:null,this.activePointer=this.pointers[0],this.globalTopOnly=!0,this.time=0,this._tempPoint={x:0,y:0},this._tempHitTest=[],this._tempMatrix=new d,this._tempMatrix2=new d,this._tempSkip=!1,this.mousePointerContainer=[this.mousePointer],t.events.once(o.BOOT,this.boot,this)},boot:function(){var t=this.game,e=t.events;this.canvas=t.canvas,this.scaleManager=t.scale,this.events.emit(r.MANAGER_BOOT),e.on(o.PRE_RENDER,this.preRender,this),e.once(o.DESTROY,this.destroy,this)},setCanvasOver:function(t){this.isOver=!0,this.events.emit(r.GAME_OVER,t)},setCanvasOut:function(t){this.isOver=!1,this.events.emit(r.GAME_OUT,t)},preRender:function(){var t=this.game.loop.now,e=this.game.loop.delta,i=this.game.scene.getScenes(!0,!0);this.time=t,this.events.emit(r.MANAGER_UPDATE);for(var s=0;s{var r=i(26673),o=i(65650),s=i(56694),a=i(72687),p=i(27395),n=i(18104),h=i(53996),l=i(95669),u=i(72313),g=i(33963),c=i(6659),f=i(72632),d=i(52394),y=i(63399),v=i(42911),m=i(91963),x=i(74118),w=i(94287),T=i(7599),b=i(66349),S=i(60689),i=new s({Extends:c,initialize:function(t){c.call(this),this.scene=t,this.systems=t.sys,this.settings=t.sys.settings,this.manager=t.sys.game.input,this.pluginEvents=new c,this.enabled=!0,this.displayList,this.cameras,y.install(this),this.mouse=this.manager.mouse,this.topOnly=!0,this.pollRate=-1,this._pollTimer=0;var e={cancelled:!1};this._eventContainer={stopPropagation:function(){e.cancelled=!0}},this._eventData=e,this.dragDistanceThreshold=0,this.dragTimeThreshold=0,this._temp=[],this._tempZones=[],this._list=[],this._pendingInsertion=[],this._pendingRemoval=[],this._draggable=[],this._drag={0:[],1:[],2:[],3:[],4:[],5:[],6:[],7:[],8:[],9:[],10:[]},this._dragState=[],this._over={0:[],1:[],2:[],3:[],4:[],5:[],6:[],7:[],8:[],9:[],10:[]},this._validTypes=["onDown","onUp","onOver","onOut","onMove","onDragStart","onDrag","onDragEnd","onDragEnter","onDragLeave","onDragOver","onDrop"],this._updatedThisFrame=!1,t.sys.events.once(T.BOOT,this.boot,this),t.sys.events.on(T.START,this.start,this)},boot:function(){this.cameras=this.systems.cameras,this.displayList=this.systems.displayList,this.systems.events.once(T.DESTROY,this.destroy,this),this.pluginEvents.emit(g.BOOT)},start:function(){var t=this.systems.events;t.on(T.TRANSITION_START,this.transitionIn,this),t.on(T.TRANSITION_OUT,this.transitionOut,this),t.on(T.TRANSITION_COMPLETE,this.transitionComplete,this),t.on(T.PRE_UPDATE,this.preUpdate,this),t.once(T.SHUTDOWN,this.shutdown,this),this.manager.events.on(g.GAME_OUT,this.onGameOut,this),this.manager.events.on(g.GAME_OVER,this.onGameOver,this),this.enabled=!0,this._dragState=[0,0,0,0,0,0,0,0,0,0],this.pluginEvents.emit(g.START)},onGameOver:function(t){this.isActive()&&this.emit(g.GAME_OVER,t.timeStamp,t)},onGameOut:function(t){this.isActive()&&this.emit(g.GAME_OUT,t.timeStamp,t)},preUpdate:function(){this.pluginEvents.emit(g.PRE_UPDATE);var t=this._pendingRemoval,e=this._pendingInsertion,i=t.length,s=e.length;if(0!==i||0!==s){for(var n=this._list,r=0;r=n||0=t.downTime+s?!0:i)return this.setDragState(t,3),this.processDragStartList(t)},processDragStartList:function(t){if(3!==this.getDragState(t))return 0;for(var e=this._drag[t.id],i=0;i{var l=i(10850),u={};t.exports={register:function(t,e,i,s,n){u[t]={plugin:e,mapping:i,settingsKey:s,configKey:n}},getPlugin:function(t){return u[t]},install:function(t){var e,i=t.scene.sys,s=i.settings.input,n=i.game.config;for(e in u){var r=u[e].plugin,o=u[e].mapping,a=u[e].settingsKey,h=u[e].configKey;l(s,a,n[h])&&(t[o]=new r(t))}},remove:function(t){u.hasOwnProperty(t)&&delete u[t]}}},40398:(t,e,i)=>{var o=i(90447),s=i(56694),n=i(53996),a=i(88456),h=i(44521),r=i(93736),l=i(36580),i=new s({initialize:function(t,e){this.manager=t,this.id=e,this.event,this.downElement,this.upElement,this.camera=null,this.button=0,this.buttons=0,this.position=new r,this.prevPosition=new r,this.midPoint=new r(-1,-1),this.velocity=new r,this.angle=0,this.distance=0,this.smoothFactor=0,this.motionFactor=.2,this.worldX=0,this.worldY=0,this.moveTime=0,this.downX=0,this.downY=0,this.downTime=0,this.upX=0,this.upY=0,this.upTime=0,this.primaryDown=!1,this.isDown=!1,this.wasTouch=!1,this.wasCanceled=!1,this.movementX=0,this.movementY=0,this.identifier=0,this.pointerId=null,this.active=0===e,this.locked=!1,this.deltaX=0,this.deltaY=0,this.deltaZ=0},updateWorldPoint:function(t){t=t.getWorldPoint(this.x,this.y);return this.worldX=t.x,this.worldY=t.y,this},positionToCamera:function(t,e){return t.getWorldPoint(this.x,this.y,e)},updateMotion:function(){var t,e,i=this.position.x,s=this.position.y,n=this.midPoint.x,r=this.midPoint.y;i===n&&s===r||(n=h(this.motionFactor,n,i),r=h(this.motionFactor,r,s),a(n,i,.1)&&(n=i),a(r,s,.1)&&(r=s),this.midPoint.set(n,r),this.velocity.set(t=i-n,e=s-r),this.angle=o(n,r,i,s),this.distance=Math.sqrt(t*t+e*e))},up:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.button=t.button,this.upElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),0===t.button&&(this.primaryDown=!1,this.upX=this.x,this.upY=this.y),0===this.buttons&&(this.isDown=!1,this.upTime=t.timeStamp,this.wasTouch=!1)},down:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.button=t.button,this.downElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),0===t.button&&(this.primaryDown=!0,this.downX=this.x,this.downY=this.y),l.macOS&&t.ctrlKey&&(this.buttons=2,this.primaryDown=!1),this.isDown||(this.isDown=!0,this.downTime=t.timeStamp),this.wasTouch=!1},move:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.manager.transformPointer(this,t.pageX,t.pageY,!0),this.locked&&(this.movementX=t.movementX||t.mozMovementX||t.webkitMovementX||0,this.movementY=t.movementY||t.mozMovementY||t.webkitMovementY||0),this.moveTime=t.timeStamp,this.wasTouch=!1},wheel:function(t){"buttons"in t&&(this.buttons=t.buttons),this.event=t,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.deltaX=t.deltaX,this.deltaY=t.deltaY,this.deltaZ=t.deltaZ,this.wasTouch=!1},touchstart:function(t,e){t.pointerId&&(this.pointerId=t.pointerId),this.identifier=t.identifier,this.target=t.target,this.active=!0,this.buttons=1,this.event=e,this.downElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.primaryDown=!0,this.downX=this.x,this.downY=this.y,this.downTime=e.timeStamp,this.isDown=!0,this.wasTouch=!0,this.wasCanceled=!1,this.updateMotion()},touchmove:function(t,e){this.event=e,this.manager.transformPointer(this,t.pageX,t.pageY,!0),this.moveTime=e.timeStamp,this.wasTouch=!0,this.updateMotion()},touchend:function(t,e){this.buttons=0,this.event=e,this.upElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=e.timeStamp,this.isDown=!1,this.wasTouch=!0,this.wasCanceled=!1,this.active=!1,this.updateMotion()},touchcancel:function(t,e){this.buttons=0,this.event=e,this.upElement=t.target,this.manager.transformPointer(this,t.pageX,t.pageY,!1),this.primaryDown=!1,this.upX=this.x,this.upY=this.y,this.upTime=e.timeStamp,this.isDown=!1,this.wasTouch=!0,this.wasCanceled=!0,this.active=!1},noButtonDown:function(){return 0===this.buttons},leftButtonDown:function(){return!!(1&this.buttons)},rightButtonDown:function(){return!!(2&this.buttons)},middleButtonDown:function(){return!!(4&this.buttons)},backButtonDown:function(){return!!(8&this.buttons)},forwardButtonDown:function(){return!!(16&this.buttons)},leftButtonReleased:function(){return 0===this.button&&!this.isDown},rightButtonReleased:function(){return 2===this.button&&!this.isDown},middleButtonReleased:function(){return 1===this.button&&!this.isDown},backButtonReleased:function(){return 3===this.button&&!this.isDown},forwardButtonReleased:function(){return 4===this.button&&!this.isDown},getDistance:function(){return this.isDown?n(this.downX,this.downY,this.x,this.y):n(this.downX,this.downY,this.upX,this.upY)},getDistanceX:function(){return this.isDown?Math.abs(this.downX-this.x):Math.abs(this.downX-this.upX)},getDistanceY:function(){return this.isDown?Math.abs(this.downY-this.y):Math.abs(this.downY-this.upY)},getDuration:function(){return this.isDown?this.manager.time-this.downTime:this.upTime-this.downTime},getAngle:function(){return this.isDown?o(this.downX,this.downY,this.x,this.y):o(this.downX,this.downY,this.upX,this.upY)},getInterpolatedPosition:function(t,e){void 0===t&&(t=10),void 0===e&&(e=[]);for(var i=this.prevPosition.x,s=this.prevPosition.y,n=this.position.x,r=this.position.y,o=0;o{t.exports={MOUSE_DOWN:0,MOUSE_MOVE:1,MOUSE_UP:2,TOUCH_START:3,TOUCH_MOVE:4,TOUCH_END:5,POINTER_LOCK_CHANGE:6,TOUCH_CANCEL:7,MOUSE_WHEEL:8}},14874:t=>{t.exports="boot"},54168:t=>{t.exports="destroy"},526:t=>{t.exports="dragend"},81623:t=>{t.exports="dragenter"},94472:t=>{t.exports="drag"},9304:t=>{t.exports="dragleave"},34265:t=>{t.exports="dragover"},50151:t=>{t.exports="dragstart"},98134:t=>{t.exports="drop"},56773:t=>{t.exports="gameobjectdown"},45824:t=>{t.exports="dragend"},39578:t=>{t.exports="dragenter"},72072:t=>{t.exports="drag"},82569:t=>{t.exports="dragleave"},70833:t=>{t.exports="dragover"},81442:t=>{t.exports="dragstart"},32936:t=>{t.exports="drop"},99658:t=>{t.exports="gameobjectmove"},60515:t=>{t.exports="gameobjectout"},55254:t=>{t.exports="gameobjectover"},34782:t=>{t.exports="pointerdown"},41769:t=>{t.exports="pointermove"},65588:t=>{t.exports="pointerout"},61640:t=>{t.exports="pointerover"},49342:t=>{t.exports="pointerup"},82662:t=>{t.exports="wheel"},13058:t=>{t.exports="gameobjectup"},52426:t=>{t.exports="gameobjectwheel"},78072:t=>{t.exports="gameout"},1545:t=>{t.exports="gameover"},67137:t=>{t.exports="boot"},27678:t=>{t.exports="process"},22257:t=>{t.exports="update"},90379:t=>{t.exports="pointerlockchange"},88909:t=>{t.exports="pointerdown"},36548:t=>{t.exports="pointerdownoutside"},18483:t=>{t.exports="pointermove"},22355:t=>{t.exports="pointerout"},7997:t=>{t.exports="pointerover"},66318:t=>{t.exports="pointerup"},94812:t=>{t.exports="pointerupoutside"},37310:t=>{t.exports="wheel"},24196:t=>{t.exports="preupdate"},27053:t=>{t.exports="shutdown"},29413:t=>{t.exports="start"},25165:t=>{t.exports="update"},33963:(t,e,i)=>{t.exports={BOOT:i(14874),DESTROY:i(54168),DRAG_END:i(526),DRAG_ENTER:i(81623),DRAG:i(94472),DRAG_LEAVE:i(9304),DRAG_OVER:i(34265),DRAG_START:i(50151),DROP:i(98134),GAME_OUT:i(78072),GAME_OVER:i(1545),GAMEOBJECT_DOWN:i(56773),GAMEOBJECT_DRAG_END:i(45824),GAMEOBJECT_DRAG_ENTER:i(39578),GAMEOBJECT_DRAG:i(72072),GAMEOBJECT_DRAG_LEAVE:i(82569),GAMEOBJECT_DRAG_OVER:i(70833),GAMEOBJECT_DRAG_START:i(81442),GAMEOBJECT_DROP:i(32936),GAMEOBJECT_MOVE:i(99658),GAMEOBJECT_OUT:i(60515),GAMEOBJECT_OVER:i(55254),GAMEOBJECT_POINTER_DOWN:i(34782),GAMEOBJECT_POINTER_MOVE:i(41769),GAMEOBJECT_POINTER_OUT:i(65588),GAMEOBJECT_POINTER_OVER:i(61640),GAMEOBJECT_POINTER_UP:i(49342),GAMEOBJECT_POINTER_WHEEL:i(82662),GAMEOBJECT_UP:i(13058),GAMEOBJECT_WHEEL:i(52426),MANAGER_BOOT:i(67137),MANAGER_PROCESS:i(27678),MANAGER_UPDATE:i(22257),POINTER_DOWN:i(88909),POINTER_DOWN_OUTSIDE:i(36548),POINTER_MOVE:i(18483),POINTER_OUT:i(22355),POINTER_OVER:i(7997),POINTER_UP:i(66318),POINTER_UP_OUTSIDE:i(94812),POINTER_WHEEL:i(37310),POINTERLOCK_CHANGE:i(90379),PRE_UPDATE:i(24196),SHUTDOWN:i(27053),START:i(29413),UPDATE:i(25165)}},70848:(t,e,i)=>{i=new(i(56694))({initialize:function(t,e){this.pad=t,this.events=t.events,this.index=e,this.value=0,this.threshold=.1},update:function(t){this.value=t},getValue:function(){return Math.abs(this.value){var s=i(56694),n=i(43200),i=new s({initialize:function(t,e){this.pad=t,this.events=t.manager,this.index=e,this.value=0,this.threshold=1,this.pressed=!1},update:function(t){this.value=t;var e=this.pad,i=this.index;t>=this.threshold?this.pressed||(this.pressed=!0,this.events.emit(n.BUTTON_DOWN,e,this,t),this.pad.emit(n.GAMEPAD_BUTTON_DOWN,i,t,this)):this.pressed&&(this.pressed=!1,this.events.emit(n.BUTTON_UP,e,this,t),this.pad.emit(n.GAMEPAD_BUTTON_UP,i,t,this))},destroy:function(){this.pad=null,this.events=null}});t.exports=i},75956:(t,e,i)=>{var r=i(70848),o=i(21274),s=i(56694),a=i(6659),h=i(93736),i=new s({Extends:a,initialize:function(t,e){a.call(this),this.manager=t,this.pad=e,this.id=e.id,this.index=e.index;for(var i=[],s=0;s{var s=i(56694),n=i(6659),r=i(43200),a=i(75956),o=i(10850),h=i(63399),l=i(33963),i=new s({Extends:n,initialize:function(t){n.call(this),this.scene=t.scene,this.settings=this.scene.sys.settings,this.sceneInputPlugin=t,this.enabled=!0,this.target,this.gamepads=[],this.queue=[],this.onGamepadHandler,this._pad1,this._pad2,this._pad3,this._pad4,t.pluginEvents.once(l.BOOT,this.boot,this),t.pluginEvents.on(l.START,this.start,this)},boot:function(){var t=this.scene.sys.game,e=this.settings.input,i=t.config;this.enabled=o(e,"gamepad",i.inputGamepad)&&t.device.input.gamepads,this.target=o(e,"gamepad.target",i.inputGamepadEventTarget),this.sceneInputPlugin.pluginEvents.once(l.DESTROY,this.destroy,this)},start:function(){this.enabled&&(this.startListeners(),this.refreshPads()),this.sceneInputPlugin.pluginEvents.once(l.SHUTDOWN,this.shutdown,this)},isActive:function(){return this.enabled&&this.scene.sys.isActive()},startListeners:function(){function t(t){!t.defaultPrevented&&e.isActive()&&(e.refreshPads(),e.queue.push(t))}var e=this,i=this.target;this.onGamepadHandler=t,i.addEventListener("gamepadconnected",t,!1),i.addEventListener("gamepaddisconnected",t,!1),this.sceneInputPlugin.pluginEvents.on(l.UPDATE,this.update,this)},stopListeners:function(){this.target.removeEventListener("gamepadconnected",this.onGamepadHandler),this.target.removeEventListener("gamepaddisconnected",this.onGamepadHandler),this.sceneInputPlugin.pluginEvents.off(l.UPDATE,this.update);for(var t=0;t{t.exports={UP:12,DOWN:13,LEFT:14,RIGHT:15,SELECT:8,START:9,B:0,A:1,Y:2,X:3,LEFT_SHOULDER:4,RIGHT_SHOULDER:5}},74982:t=>{t.exports={UP:12,DOWN:13,LEFT:14,RIGHT:15,SHARE:8,OPTIONS:9,PS:16,TOUCHBAR:17,X:0,CIRCLE:1,SQUARE:2,TRIANGLE:3,L1:4,R1:5,L2:6,R2:7,L3:10,R3:11,LEFT_STICK_H:0,LEFT_STICK_V:1,RIGHT_STICK_H:2,RIGHT_STICK_V:3}},43247:t=>{t.exports={UP:12,DOWN:13,LEFT:14,RIGHT:15,MENU:16,A:0,B:1,X:2,Y:3,LB:4,RB:5,LT:6,RT:7,BACK:8,START:9,LS:10,RS:11,LEFT_STICK_H:0,LEFT_STICK_V:1,RIGHT_STICK_H:2,RIGHT_STICK_V:3}},4898:(t,e,i)=>{t.exports={DUALSHOCK_4:i(74982),SNES_USB:i(33171),XBOX_360:i(43247)}},17344:t=>{t.exports="down"},36635:t=>{t.exports="up"},85724:t=>{t.exports="connected"},55832:t=>{t.exports="disconnected"},772:t=>{t.exports="down"},33608:t=>{t.exports="up"},43200:(t,e,i)=>{t.exports={BUTTON_DOWN:i(17344),BUTTON_UP:i(36635),CONNECTED:i(85724),DISCONNECTED:i(55832),GAMEPAD_BUTTON_DOWN:i(772),GAMEPAD_BUTTON_UP:i(33608)}},92636:(t,e,i)=>{t.exports={Axis:i(70848),Button:i(21274),Events:i(43200),Gamepad:i(75956),GamepadPlugin:i(1379),Configs:i(4898)}},20873:(t,e,i)=>{var s=i(72687),i=i(98611)(!1,{CreatePixelPerfectHandler:i(18104),CreateInteractiveObject:i(27395),Events:i(33963),Gamepad:i(92636),InputManager:i(69898),InputPlugin:i(12499),InputPluginCache:i(63399),Keyboard:i(28388),Mouse:i(11343),Pointer:i(40398),Touch:i(77423)},s);t.exports=i},71064:(t,e,i)=>{var n=i(66458),s=i(56694),r=i(97081),o=i(33963),a=i(11873),h=i(72283),i=new s({initialize:function(t){this.manager=t,this.queue=[],this.preventDefault=!0,this.captures=[],this.enabled=!1,this.target,this.onKeyDown=h,this.onKeyUp=h,t.events.once(o.MANAGER_BOOT,this.boot,this)},boot:function(){var t=this.manager.config;this.enabled=t.inputKeyboard,this.target=t.inputKeyboardEventTarget,this.addCapture(t.inputKeyboardCapture),!this.target&&window&&(this.target=window),this.enabled&&this.target&&this.startListeners(),this.manager.game.events.on(r.POST_STEP,this.postUpdate,this)},startListeners:function(){var i=this,t=(this.onKeyDown=function(t){var e;!t.defaultPrevented&&i.enabled&&i.manager&&(i.queue.push(t),i.manager.events.emit(o.MANAGER_PROCESS),e=t.altKey||t.ctrlKey||t.shiftKey||t.metaKey,i.preventDefault)&&!e&&-1{var s=i(56694),n=i(6659),h=i(94030),r=i(97081),o=i(10850),a=i(33963),l=i(63399),u=i(50165),c=i(11873),d=i(95625),p=i(48044),f=i(7599),g=i(84314),i=new s({Extends:n,initialize:function(t){n.call(this),this.game=t.systems.game,this.scene=t.scene,this.settings=this.scene.sys.settings,this.sceneInputPlugin=t,this.manager=t.manager.keyboard,this.enabled=!0,this.keys=[],this.combos=[],this.prevCode=null,this.prevTime=0,this.prevType=null,t.pluginEvents.once(a.BOOT,this.boot,this),t.pluginEvents.on(a.START,this.start,this)},boot:function(){var t=this.settings.input,t=(this.enabled=o(t,"keyboard",!0),o(t,"keyboard.capture",null));t&&this.addCaptures(t),this.sceneInputPlugin.pluginEvents.once(a.DESTROY,this.destroy,this)},start:function(){this.sceneInputPlugin.manager.events.on(a.MANAGER_PROCESS,this.update,this),this.sceneInputPlugin.pluginEvents.once(a.SHUTDOWN,this.shutdown,this),this.game.events.on(r.BLUR,this.resetKeys,this),this.scene.sys.events.on(f.PAUSE,this.resetKeys,this),this.scene.sys.events.on(f.SLEEP,this.resetKeys,this)},isActive:function(){return this.enabled&&this.scene.sys.canInput()},addCapture:function(t){return this.manager.addCapture(t),this},removeCapture:function(t){return this.manager.removeCapture(t),this},getCaptures:function(){return this.manager.captures},enableGlobalCapture:function(){return this.manager.preventDefault=!0,this},disableGlobalCapture:function(){return this.manager.preventDefault=!1,this},clearCaptures:function(){return this.manager.clearCaptures(),this},createCursorKeys:function(){return this.addKeys({up:c.UP,down:c.DOWN,left:c.LEFT,right:c.RIGHT,space:c.SPACE,shift:c.SHIFT})},addKeys:function(t,e,i){void 0===e&&(e=!0),void 0===i&&(i=!1);var s={};if("string"==typeof t){t=t.split(",");for(var n=0;nt._tick)return t._tick=e,!0}return!1},update:function(){var t=this.manager.queue,e=t.length;if(this.isActive()&&0!==e)for(var i=this.keys,s=0;s{t.exports=function(t,e){return e.timeLastMatched=t.timeStamp,e.index++,e.index===e.size||(e.current=e.keyCodes[e.index],!1)}},95625:(t,e,i)=>{var s=i(56694),o=i(94030),a=i(72632),h=i(2544),l=i(88754),i=new s({initialize:function(t,e,i){if(void 0===i&&(i={}),e.length<2)return!1;this.manager=t,this.enabled=!0,this.keyCodes=[];for(var s=0;s{var r=i(60258);t.exports=function(t,e){var i,s,n;return!!e.matched||(s=i=!1,t.keyCode!==e.current||0{t.exports=function(t){return t.current=t.keyCodes[0],t.index=0,t.timeLastMatched=0,t.matched=!1,t.timeMatched=0,t}},5044:t=>{t.exports="keydown"},40813:t=>{t.exports="keyup"},89319:t=>{t.exports="keycombomatch"},43267:t=>{t.exports="down"},78595:t=>{t.exports="keydown-"},30056:t=>{t.exports="keyup-"},81939:t=>{t.exports="up"},94030:(t,e,i)=>{t.exports={ANY_KEY_DOWN:i(5044),ANY_KEY_UP:i(40813),COMBO_MATCH:i(89319),DOWN:i(43267),KEY_DOWN:i(78595),KEY_UP:i(30056),UP:i(81939)}},28388:(t,e,i)=>{t.exports={Events:i(94030),KeyboardManager:i(71064),KeyboardPlugin:i(89666),Key:i(50165),KeyCodes:i(11873),KeyCombo:i(95625),AdvanceKeyCombo:i(60258),ProcessKeyCombo:i(2544),ResetKeyCombo:i(88754),JustDown:i(42460),JustUp:i(53162),DownDuration:i(64964),UpDuration:i(70331)}},64964:t=>{t.exports=function(t,e){void 0===e&&(e=50);var i=t.plugin.game.loop.time-t.timeDown;return t.isDown&&i{t.exports=function(t){return!!t._justDown&&!(t._justDown=!1)}},53162:t=>{t.exports=function(t){return!!t._justUp&&!(t._justUp=!1)}},50165:(t,e,i)=>{var s=i(56694),n=i(6659),r=i(94030),i=new s({Extends:n,initialize:function(t,e){n.call(this),this.plugin=t,this.keyCode=e,this.originalEvent=void 0,this.enabled=!0,this.isDown=!1,this.isUp=!0,this.altKey=!1,this.ctrlKey=!1,this.shiftKey=!1,this.metaKey=!1,this.location=0,this.timeDown=0,this.duration=0,this.timeUp=0,this.emitOnRepeat=!1,this.repeats=0,this._justDown=!1,this._justUp=!1,this._tick=-1},setEmitOnRepeat:function(t){return this.emitOnRepeat=t,this},onDown:function(t){this.originalEvent=t,this.enabled&&(this.altKey=t.altKey,this.ctrlKey=t.ctrlKey,this.shiftKey=t.shiftKey,this.metaKey=t.metaKey,this.location=t.location,this.repeats++,this.isDown?this.emitOnRepeat&&this.emit(r.DOWN,this,t):(this.isDown=!0,this.isUp=!1,this.timeDown=t.timeStamp,this.duration=0,this._justDown=!0,this._justUp=!1,this.emit(r.DOWN,this,t)))},onUp:function(t){this.originalEvent=t,this.enabled&&(this.isDown=!1,this.isUp=!0,this.timeUp=t.timeStamp,this.duration=this.timeUp-this.timeDown,this.repeats=0,this._justDown=!1,this._justUp=!0,this._tick=-1,this.emit(r.UP,this,t))},reset:function(){return this.isDown=!1,this.isUp=!0,this.altKey=!1,this.ctrlKey=!1,this.shiftKey=!1,this.metaKey=!1,this.timeDown=0,this.duration=0,this.timeUp=0,this.repeats=0,this._justDown=!1,this._justUp=!1,this._tick=-1,this},getDuration:function(){return this.isDown?this.plugin.game.loop.time-this.timeDown:0},destroy:function(){this.removeAllListeners(),this.originalEvent=null,this.plugin=null}});t.exports=i},11873:t=>{t.exports={BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,PAUSE:19,CAPS_LOCK:20,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,PRINT_SCREEN:42,INSERT:45,DELETE:46,ZERO:48,ONE:49,TWO:50,THREE:51,FOUR:52,FIVE:53,SIX:54,SEVEN:55,EIGHT:56,NINE:57,NUMPAD_ZERO:96,NUMPAD_ONE:97,NUMPAD_TWO:98,NUMPAD_THREE:99,NUMPAD_FOUR:100,NUMPAD_FIVE:101,NUMPAD_SIX:102,NUMPAD_SEVEN:103,NUMPAD_EIGHT:104,NUMPAD_NINE:105,NUMPAD_ADD:107,NUMPAD_SUBTRACT:109,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,F1:112,F2:113,F3:114,F4:115,F5:116,F6:117,F7:118,F8:119,F9:120,F10:121,F11:122,F12:123,SEMICOLON:186,PLUS:187,COMMA:188,MINUS:189,PERIOD:190,FORWARD_SLASH:191,BACK_SLASH:220,QUOTES:222,BACKTICK:192,OPEN_BRACKET:219,CLOSED_BRACKET:221,SEMICOLON_FIREFOX:59,COLON:58,COMMA_FIREFOX_WINDOWS:60,COMMA_FIREFOX:62,BRACKET_RIGHT_FIREFOX:174,BRACKET_LEFT_FIREFOX:175}},48044:(t,e,i)=>{var s,n=i(11873),r={};for(s in n)r[n[s]]=s;t.exports=r},70331:t=>{t.exports=function(t,e){void 0===e&&(e=50);var i=t.plugin.game.loop.time-t.timeUp;return t.isUp&&i{var s=i(56694),o=i(90185),n=i(33963),r=i(72283),i=new s({initialize:function(t){this.manager=t,this.preventDefaultDown=!0,this.preventDefaultUp=!0,this.preventDefaultMove=!0,this.preventDefaultWheel=!1,this.enabled=!1,this.target,this.locked=!1,this.onMouseMove=r,this.onMouseDown=r,this.onMouseUp=r,this.onMouseDownWindow=r,this.onMouseUpWindow=r,this.onMouseOver=r,this.onMouseOut=r,this.onMouseWheel=r,this.pointerLockChange=r,this.isTop=!0,t.events.once(n.MANAGER_BOOT,this.boot,this)},boot:function(){var t=this.manager.config;this.enabled=t.inputMouse,this.target=t.inputMouseEventTarget,this.passive=t.inputMousePassive,this.preventDefaultDown=t.inputMousePreventDefaultDown,this.preventDefaultUp=t.inputMousePreventDefaultUp,this.preventDefaultMove=t.inputMousePreventDefaultMove,this.preventDefaultWheel=t.inputMousePreventDefaultWheel,this.target?"string"==typeof this.target&&(this.target=document.getElementById(this.target)):this.target=this.manager.game.canvas,t.disableContextMenu&&this.disableContextMenu(),this.enabled&&this.target&&this.startListeners()},disableContextMenu:function(){return this.target.addEventListener("contextmenu",function(t){return t.preventDefault(),!1}),this},requestPointerLock:function(){var t;o.pointerLock&&((t=this.target).requestPointerLock=t.requestPointerLock||t.mozRequestPointerLock||t.webkitRequestPointerLock,t.requestPointerLock())},releasePointerLock:function(){o.pointerLock&&(document.exitPointerLock=document.exitPointerLock||document.mozExitPointerLock||document.webkitExitPointerLock,document.exitPointerLock())},startListeners:function(){var t=this.target;if(t){var i=this,s=this.manager,e=s.canvas,n=window&&window.focus&&s.game.config.autoFocus,r=(this.onMouseMove=function(t){!t.defaultPrevented&&i.enabled&&s&&s.enabled&&(s.onMouseMove(t),i.preventDefaultMove)&&t.preventDefault()},this.onMouseDown=function(t){n&&window.focus(),!t.defaultPrevented&&i.enabled&&s&&s.enabled&&(s.onMouseDown(t),i.preventDefaultDown)&&t.target===e&&t.preventDefault()},this.onMouseDownWindow=function(t){!t.defaultPrevented&&i.enabled&&s&&s.enabled&&t.target!==e&&s.onMouseDown(t)},this.onMouseUp=function(t){!t.defaultPrevented&&i.enabled&&s&&s.enabled&&(s.onMouseUp(t),i.preventDefaultUp)&&t.target===e&&t.preventDefault()},this.onMouseUpWindow=function(t){!t.defaultPrevented&&i.enabled&&s&&s.enabled&&t.target!==e&&s.onMouseUp(t)},this.onMouseOver=function(t){!t.defaultPrevented&&i.enabled&&s&&s.enabled&&s.setCanvasOver(t)},this.onMouseOut=function(t){!t.defaultPrevented&&i.enabled&&s&&s.enabled&&s.setCanvasOut(t)},this.onMouseWheel=function(t){!t.defaultPrevented&&i.enabled&&s&&s.enabled&&s.onMouseWheel(t),i.preventDefaultWheel&&t.target===e&&t.preventDefault()},{passive:!0});if(t.addEventListener("mousemove",this.onMouseMove),t.addEventListener("mousedown",this.onMouseDown),t.addEventListener("mouseup",this.onMouseUp),t.addEventListener("mouseover",this.onMouseOver,r),t.addEventListener("mouseout",this.onMouseOut,r),this.preventDefaultWheel?t.addEventListener("wheel",this.onMouseWheel,{passive:!1}):t.addEventListener("wheel",this.onMouseWheel,r),window&&s.game.config.inputWindowEvents)try{window.top.addEventListener("mousedown",this.onMouseDownWindow,r),window.top.addEventListener("mouseup",this.onMouseUpWindow,r)}catch(t){window.addEventListener("mousedown",this.onMouseDownWindow,r),window.addEventListener("mouseup",this.onMouseUpWindow,r),this.isTop=!1}o.pointerLock&&(this.pointerLockChange=function(t){var e=i.target;i.locked=document.pointerLockElement===e||document.mozPointerLockElement===e||document.webkitPointerLockElement===e,s.onPointerLockChange(t)},document.addEventListener("pointerlockchange",this.pointerLockChange,!0),document.addEventListener("mozpointerlockchange",this.pointerLockChange,!0),document.addEventListener("webkitpointerlockchange",this.pointerLockChange,!0)),this.enabled=!0}},stopListeners:function(){var t=this.target;t.removeEventListener("mousemove",this.onMouseMove),t.removeEventListener("mousedown",this.onMouseDown),t.removeEventListener("mouseup",this.onMouseUp),t.removeEventListener("mouseover",this.onMouseOver),t.removeEventListener("mouseout",this.onMouseOut),window&&((t=this.isTop?window.top:window).removeEventListener("mousedown",this.onMouseDownWindow),t.removeEventListener("mouseup",this.onMouseUpWindow)),o.pointerLock&&(document.removeEventListener("pointerlockchange",this.pointerLockChange,!0),document.removeEventListener("mozpointerlockchange",this.pointerLockChange,!0),document.removeEventListener("webkitpointerlockchange",this.pointerLockChange,!0))},destroy:function(){this.stopListeners(),this.target=null,this.enabled=!1,this.manager=null}});t.exports=i},11343:(t,e,i)=>{t.exports={MouseManager:i(7905)}},37579:(t,e,i)=>{var s=i(56694),n=i(33963),r=i(72283),i=new s({initialize:function(t){this.manager=t,this.capture=!0,this.enabled=!1,this.target,this.onTouchStart=r,this.onTouchStartWindow=r,this.onTouchMove=r,this.onTouchEnd=r,this.onTouchEndWindow=r,this.onTouchCancel=r,this.onTouchCancelWindow=r,this.isTop=!0,t.events.once(n.MANAGER_BOOT,this.boot,this)},boot:function(){var t=this.manager.config;this.enabled=t.inputTouch,this.target=t.inputTouchEventTarget,this.capture=t.inputTouchCapture,this.target?"string"==typeof this.target&&(this.target=document.getElementById(this.target)):this.target=this.manager.game.canvas,t.disableContextMenu&&this.disableContextMenu(),this.enabled&&this.target&&this.startListeners()},disableContextMenu:function(){return this.target.addEventListener("contextmenu",function(t){return t.preventDefault(),!1}),this},startListeners:function(){var t=this.target;if(t){var e=this,i=this.manager,s=i.canvas,n=window&&window.focus&&i.game.config.autoFocus,r=(this.onTouchMove=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&(i.onTouchMove(t),e.capture)&&t.cancelable&&t.preventDefault()},this.onTouchStart=function(t){n&&window.focus(),!t.defaultPrevented&&e.enabled&&i&&i.enabled&&(i.onTouchStart(t),e.capture)&&t.cancelable&&t.target===s&&t.preventDefault()},this.onTouchStartWindow=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&t.target!==s&&i.onTouchStart(t)},this.onTouchEnd=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&(i.onTouchEnd(t),e.capture)&&t.cancelable&&t.target===s&&t.preventDefault()},this.onTouchEndWindow=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&t.target!==s&&i.onTouchEnd(t)},this.onTouchCancel=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&(i.onTouchCancel(t),e.capture)&&t.preventDefault()},this.onTouchCancelWindow=function(t){!t.defaultPrevented&&e.enabled&&i&&i.enabled&&i.onTouchCancel(t)},this.capture),o={passive:!0},a={passive:!1};if(t.addEventListener("touchstart",this.onTouchStart,r?a:o),t.addEventListener("touchmove",this.onTouchMove,r?a:o),t.addEventListener("touchend",this.onTouchEnd,r?a:o),t.addEventListener("touchcancel",this.onTouchCancel,r?a:o),window&&i.game.config.inputWindowEvents)try{window.top.addEventListener("touchstart",this.onTouchStartWindow,a),window.top.addEventListener("touchend",this.onTouchEndWindow,a),window.top.addEventListener("touchcancel",this.onTouchCancelWindow,a)}catch(t){window.addEventListener("touchstart",this.onTouchStartWindow,a),window.addEventListener("touchend",this.onTouchEndWindow,a),window.addEventListener("touchcancel",this.onTouchCancelWindow,a),this.isTop=!1}this.enabled=!0}},stopListeners:function(){var t=this.target;t.removeEventListener("touchstart",this.onTouchStart),t.removeEventListener("touchmove",this.onTouchMove),t.removeEventListener("touchend",this.onTouchEnd),t.removeEventListener("touchcancel",this.onTouchCancel),window&&((t=this.isTop?window.top:window).removeEventListener("touchstart",this.onTouchStartWindow),t.removeEventListener("touchend",this.onTouchEndWindow),t.removeEventListener("touchcancel",this.onTouchCancelWindow))},destroy:function(){this.stopListeners(),this.target=null,this.enabled=!1,this.manager=null}});t.exports=i},77423:(t,e,i)=>{t.exports={TouchManager:i(37579)}},98035:(t,e,i)=>{var s=i(56694),n=i(12117),r=i(683),o=i(72632),a=i(30750),h=i(43531),l=i(88490),u=i(33868),i=new s({initialize:function(t,e){if(this.loader=t,this.cache=o(e,"cache",!1),this.type=o(e,"type",!1),!this.type)throw new Error("Invalid File type: "+this.type);this.key=o(e,"key",!1);var i=this.key;if(t.prefix&&""!==t.prefix&&(this.key=t.prefix+i),!this.key)throw new Error("Invalid File key: "+this.key);var s=o(e,"url");void 0===s?s=t.path+i+"."+o(e,"extension",""):"string"!=typeof s||s.match(/^(?:blob:|data:|capacitor:\/\/|http:\/\/|https:\/\/|\/\/)/)||(s=t.path+s),this.url=s,this.src="",this.xhrSettings=u(o(e,"responseType",void 0)),o(e,"xhrSettings",!1)&&(this.xhrSettings=h(this.xhrSettings,o(e,"xhrSettings",{}))),this.xhrLoader=null,this.state="function"==typeof this.url?n.FILE_POPULATED:n.FILE_PENDING,this.bytesTotal=0,this.bytesLoaded=-1,this.percentComplete=-1,this.crossOrigin=void 0,this.data=void 0,this.config=o(e,"config",{}),this.multiFile,this.linkFile},setLink:function(t){(this.linkFile=t).linkFile=this},resetXHR:function(){this.xhrLoader&&(this.xhrLoader.onload=void 0,this.xhrLoader.onerror=void 0,this.xhrLoader.onprogress=void 0)},load:function(){this.state===n.FILE_POPULATED?this.loader.nextFile(this,!0):(this.state=n.FILE_LOADING,this.src=a(this,this.loader.baseURL),0!==this.src.indexOf("data:")&&(this.xhrLoader=l(this,this.loader.xhr)))},onLoad:function(e,t){var i=e.responseURL&&this.loader.localSchemes.some(function(t){return 0===e.responseURL.indexOf(t)})&&0===t.target.status,t=!(t.target&&200!==t.target.status)||i;4===e.readyState&&400<=e.status&&e.status<=599&&(t=!1),this.state=n.FILE_LOADED,this.resetXHR(),this.loader.nextFile(this,t)},onError:function(){this.resetXHR(),this.loader.nextFile(this,!1)},onProgress:function(t){t.lengthComputable&&(this.bytesLoaded=t.loaded,this.bytesTotal=t.total,this.percentComplete=Math.min(this.bytesLoaded/this.bytesTotal,1),this.loader.emit(r.FILE_PROGRESS,this,this.percentComplete))},onProcess:function(){this.state=n.FILE_PROCESSING,this.onProcessComplete()},onProcessComplete:function(){this.state=n.FILE_COMPLETE,this.multiFile&&this.multiFile.onFileComplete(this),this.loader.fileProcessComplete(this)},onProcessError:function(){this.state=n.FILE_ERRORED,this.multiFile&&this.multiFile.onFileFailed(this),this.loader.fileProcessComplete(this)},hasCacheConflict:function(){return this.cache&&this.cache.exists(this.key)},addToCache:function(){this.cache&&this.data&&this.cache.add(this.key,this.data)},pendingDestroy:function(t){var e,i;this.state!==n.FILE_PENDING_DESTROY&&(void 0===t&&(t=this.data),e=this.key,i=this.type,this.loader.emit(r.FILE_COMPLETE,e,i,t),this.loader.emit(r.FILE_KEY_COMPLETE+i+"-"+e,e,i,t),this.loader.flagForRemoval(this),this.state=n.FILE_PENDING_DESTROY)},destroy:function(){this.loader=null,this.cache=null,this.xhrSettings=null,this.multiFile=null,this.linkFile=null,this.data=null}});i.createObjectURL=function(t,e,i){var s;"function"==typeof URL?t.src=URL.createObjectURL(e):((s=new FileReader).onload=function(){t.removeAttribute("crossOrigin"),t.src="data:"+(e.type||i)+";base64,"+s.result.split(",")[1]},s.onerror=t.onerror,s.readAsDataURL(e))},i.revokeObjectURL=function(t){"function"==typeof URL&&URL.revokeObjectURL(t.src)},t.exports=i},76846:t=>{var i={};t.exports={install:function(t){for(var e in i)t[e]=i[e]},register:function(t,e){i[t]=e},destroy:function(){i={}}}},30750:t=>{t.exports=function(t,e){return!!t.url&&(t.url.match(/^(?:blob:|data:|capacitor:\/\/|http:\/\/|https:\/\/|\/\/)/)?t.url:e+t.url)}},67285:(t,e,i)=>{var s=i(56694),n=i(12117),r=i(58403),o=i(6659),a=i(683),h=i(76846),y=i(72632),v=i(10850),l=i(91963),u=i(7599),c=i(33868),i=new s({Extends:o,initialize:function(t){o.call(this);var e=t.sys.game.config,i=t.sys.settings.loader;this.scene=t,this.systems=t.sys,this.cacheManager=t.sys.cache,this.textureManager=t.sys.textures,this.sceneManager=t.sys.game.scene,h.install(this),this.prefix="",this.path="",this.baseURL="",this.setBaseURL(y(i,"baseURL",e.loaderBaseURL)),this.setPath(y(i,"path",e.loaderPath)),this.setPrefix(y(i,"prefix",e.loaderPrefix)),this.maxParallelDownloads=y(i,"maxParallelDownloads",e.loaderMaxParallelDownloads),this.xhr=c(y(i,"responseType",e.loaderResponseType),y(i,"async",e.loaderAsync),y(i,"user",e.loaderUser),y(i,"password",e.loaderPassword),y(i,"timeout",e.loaderTimeout),y(i,"withCredentials",e.loaderWithCredentials)),this.crossOrigin=y(i,"crossOrigin",e.loaderCrossOrigin),this.imageLoadType=y(i,"imageLoadType",e.loaderImageLoadType),this.localSchemes=y(i,"localScheme",e.loaderLocalScheme),this.totalToLoad=0,this.progress=0,this.list=new r,this.inflight=new r,this.queue=new r,this._deleteQueue=new r,this.totalFailed=0,this.totalComplete=0,this.state=n.LOADER_IDLE,this.multiKeyIndex=0,t.sys.events.once(u.BOOT,this.boot,this),t.sys.events.on(u.START,this.pluginStart,this)},boot:function(){this.systems.events.once(u.DESTROY,this.destroy,this)},pluginStart:function(){this.systems.events.once(u.SHUTDOWN,this.shutdown,this)},setBaseURL:function(t){return""!==(t=void 0===t?"":t)&&"/"!==t.substr(-1)&&(t=t.concat("/")),this.baseURL=t,this},setPath:function(t){return""!==(t=void 0===t?"":t)&&"/"!==t.substr(-1)&&(t=t.concat("/")),this.path=t,this},setPrefix:function(t){return this.prefix=t=void 0===t?"":t,this},setCORS:function(t){return this.crossOrigin=t,this},addFile:function(t){Array.isArray(t)||(t=[t]);for(var e=0;e{var n=i(98611),r=i(33868);t.exports=function(t,e){var i=void 0===t?r():n({},t);if(e)for(var s in e)void 0!==e[s]&&(i[s]=e[s]);return i}},45176:(t,e,i)=>{var s=i(56694),o=i(12117),n=i(683),i=new s({initialize:function(t,e,i,s){var n=[];s.forEach(function(t){t&&n.push(t)}),this.loader=t,this.type=e,this.key=i,this.multiKeyIndex=t.multiKeyIndex++,this.files=n,this.state=o.FILE_PENDING,this.complete=!1,this.pending=n.length,this.failed=0,this.config={},this.baseURL=t.baseURL,this.path=t.path,this.prefix=t.prefix;for(var r=0;r{var r=i(43531);t.exports=function(t,e){var i=r(e,t.xhrSettings),s=new XMLHttpRequest;if(s.open("GET",t.src,i.async,i.user,i.password),s.responseType=t.xhrSettings.responseType,s.timeout=i.timeout,i.headers)for(var n in i.headers)s.setRequestHeader(n,i.headers[n]);return i.header&&i.headerValue&&s.setRequestHeader(i.header,i.headerValue),i.requestedWith&&s.setRequestHeader("X-Requested-With",i.requestedWith),i.overrideMimeType&&s.overrideMimeType(i.overrideMimeType),i.withCredentials&&(s.withCredentials=!0),s.onload=t.onLoad.bind(t,s),s.onerror=t.onError.bind(t,s),s.onprogress=t.onProgress.bind(t),s.send(),s}},33868:t=>{t.exports=function(t,e,i,s,n,r){return{responseType:t=void 0===t?"":t,async:e=void 0===e?!0:e,user:i=void 0===i?"":i,password:s=void 0===s?"":s,timeout:n=void 0===n?0:n,headers:void 0,header:void 0,headerValue:void 0,requestedWith:!1,overrideMimeType:void 0,withCredentials:r=void 0===r?!1:r}}},12117:t=>{t.exports={LOADER_IDLE:0,LOADER_LOADING:1,LOADER_PROCESSING:2,LOADER_COMPLETE:3,LOADER_SHUTDOWN:4,LOADER_DESTROYED:5,FILE_PENDING:10,FILE_LOADING:11,FILE_LOADED:12,FILE_FAILED:13,FILE_PROCESSING:14,FILE_ERRORED:16,FILE_COMPLETE:17,FILE_DESTROYED:18,FILE_POPULATED:19,FILE_PENDING_DESTROY:20}},7398:t=>{t.exports="addfile"},52187:t=>{t.exports="complete"},36627:t=>{t.exports="filecomplete"},81925:t=>{t.exports="filecomplete-"},29774:t=>{t.exports="loaderror"},20943:t=>{t.exports="load"},74693:t=>{t.exports="fileprogress"},71176:t=>{t.exports="postprocess"},88984:t=>{t.exports="progress"},72753:t=>{t.exports="start"},683:(t,e,i)=>{t.exports={ADD:i(7398),COMPLETE:i(52187),FILE_COMPLETE:i(36627),FILE_KEY_COMPLETE:i(81925),FILE_LOAD_ERROR:i(29774),FILE_LOAD:i(20943),FILE_PROGRESS:i(74693),POST_PROCESS:i(71176),PROGRESS:i(88984),START:i(72753)}},46468:(t,e,i)=>{var s=i(56694),n=i(76846),r=i(70806),o=i(683),a=new s({Extends:r,initialize:function(t,e,i,s,n){r.call(this,t,e,i,s,n),this.type="animationJSON"},onProcess:function(){this.loader.once(o.POST_PROCESS,this.onLoadComplete,this),r.prototype.onProcess.call(this)},onLoadComplete:function(){this.loader.systems.anims.fromJSON(this.data)}});n.register("animation",function(t,e,i,s){if(Array.isArray(t))for(var n=0;n{var s=i(56694),n=i(76846),h=i(72632),l=i(42927),u=i(42911),c=i(70806),d=i(45176),a=new s({Extends:d,initialize:function(t,e,i,s,n,r){var o,a=u(e)?(e=h(a=e,"key"),o=new l(t,{key:e,url:h(a,"textureURL"),extension:h(a,"textureExtension","png"),normalMap:h(a,"normalMap"),xhrSettings:h(a,"textureXhrSettings")}),new c(t,{key:e,url:h(a,"atlasURL"),extension:h(a,"atlasExtension","json"),xhrSettings:h(a,"atlasXhrSettings")})):(o=new l(t,e,i,n),new c(t,e,s,r));o.linkFile?d.call(this,t,"atlasjson",e,[o,a,o.linkFile]):d.call(this,t,"atlasjson",e,[o,a])},addToCache:function(){var t,e,i;this.isReadyToProcess()&&(t=this.files[0],e=this.files[1],i=this.files[2]?this.files[2].data:null,this.loader.textureManager.addAtlas(t.key,t.data,e.data,i),e.addToCache(),this.complete=!0)}});n.register("aseprite",function(t,e,i,s,n){var r;if(Array.isArray(t))for(var o=0;o{var s=i(56694),n=i(76846),h=i(72632),l=i(42927),u=i(42911),c=i(70806),d=i(45176),a=new s({Extends:d,initialize:function(t,e,i,s,n,r){var o,a=u(e)?(e=h(a=e,"key"),o=new l(t,{key:e,url:h(a,"textureURL"),extension:h(a,"textureExtension","png"),normalMap:h(a,"normalMap"),xhrSettings:h(a,"textureXhrSettings")}),new c(t,{key:e,url:h(a,"atlasURL"),extension:h(a,"atlasExtension","json"),xhrSettings:h(a,"atlasXhrSettings")})):(o=new l(t,e,i,n),new c(t,e,s,r));o.linkFile?d.call(this,t,"atlasjson",e,[o,a,o.linkFile]):d.call(this,t,"atlasjson",e,[o,a])},addToCache:function(){var t,e,i;this.isReadyToProcess()&&(t=this.files[0],e=this.files[1],i=this.files[2]?this.files[2].data:null,this.loader.textureManager.addAtlas(t.key,t.data,e.data,i),this.complete=!0)}});n.register("atlas",function(t,e,i,s,n){var r;if(Array.isArray(t))for(var o=0;o{var s=i(56694),n=i(76846),h=i(72632),l=i(42927),u=i(42911),c=i(45176),d=i(15297),a=new s({Extends:c,initialize:function(t,e,i,s,n,r){var o,a=u(e)?(e=h(a=e,"key"),o=new l(t,{key:e,url:h(a,"textureURL"),extension:h(a,"textureExtension","png"),normalMap:h(a,"normalMap"),xhrSettings:h(a,"textureXhrSettings")}),new d(t,{key:e,url:h(a,"atlasURL"),extension:h(a,"atlasExtension","xml"),xhrSettings:h(a,"atlasXhrSettings")})):(o=new l(t,e,i,n),new d(t,e,s,r));o.linkFile?c.call(this,t,"atlasxml",e,[o,a,o.linkFile]):c.call(this,t,"atlasxml",e,[o,a])},addToCache:function(){var t,e,i;this.isReadyToProcess()&&(t=this.files[0],e=this.files[1],i=this.files[2]?this.files[2].data:null,this.loader.textureManager.addAtlasXML(t.key,t.data,e.data,i),this.complete=!0)}});n.register("atlasXML",function(t,e,i,s,n){var r;if(Array.isArray(t))for(var o=0;o{var s=i(56694),n=i(12117),o=i(98035),r=i(76846),h=i(72632),l=i(30929),u=i(42911),c=new s({Extends:o,initialize:function(t,e,i,s,n){u(e)&&(e=h(r=e,"key"),s=h(r,"xhrSettings"),n=h(r,"context",n));var r={type:"audio",cache:t.cacheManager.audio,extension:i.type,responseType:"arraybuffer",key:e,url:i.url,xhrSettings:s,config:{context:n}};o.call(this,t,r)},onProcess:function(){this.state=n.FILE_PROCESSING;var e=this;this.config.context.decodeAudioData(this.xhrLoader.response,function(t){e.data=t,e.onProcessComplete()},function(t){e.onProcessError()}),this.config.context=null}});c.create=function(t,e,i,s,n){var r=t.systems.game,o=r.config.audio,a=r.device.audio,i=(u(e)&&(i=h(e,"url",[]),s=h(e,"config",{})),c.getAudioURL(r,i));return i?a.webAudio&&!o.disableWebAudio?new c(t,e,i,n,r.sound.context):new l(t,e,i,s):null},c.getAudioURL=function(t,e){Array.isArray(e)||(e=[e]);for(var i=0;i{var l=i(67448),s=i(56694),n=i(76846),u=i(72632),c=i(42911),d=i(70806),p=i(45176),f=new s({Extends:p,initialize:function(t,e,i,s,n,r,o){var a,h;c(e)&&(e=u(h=e,"key"),i=u(h,"jsonURL"),s=u(h,"audioURL"),n=u(h,"audioConfig"),r=u(h,"audioXhrSettings"),o=u(h,"jsonXhrSettings")),s?(h=l.create(t,e,s,n,r))&&(a=new d(t,e,i,o),p.call(this,t,"audiosprite",e,[h,a]),this.config.resourceLoad=!1):(a=new d(t,e,i,o),p.call(this,t,"audiosprite",e,[a]),this.config.resourceLoad=!0,this.config.audioConfig=n,this.config.audioXhrSettings=r)},onFileComplete:function(t){var e,i,s;-1!==this.files.indexOf(t)&&(this.pending--,this.config.resourceLoad)&&"json"===t.type&&t.data.hasOwnProperty("resources")&&(e=t.data.resources,i=u(this.config,"audioConfig"),s=u(this.config,"audioXhrSettings"),t=l.create(this.loader,t.key,e,i,s))&&(this.addToMultiFile(t),this.loader.addFile(t))},addToCache:function(){var t,e;this.isReadyToProcess()&&(t=this.files[0],e=this.files[1],t.addToCache(),e.addToCache(),this.complete=!0)}});n.register("audioSprite",function(t,e,i,s,n,r){var o,a=this.systems.game,h=a.config.audio,a=a.device.audio;if(!(h&&h.noAudio||!a.webAudio&&!a.audioData))if(Array.isArray(t))for(var l=0;l{var s=i(56694),n=i(12117),a=i(98035),r=i(76846),h=i(72632),l=i(42911),o=new s({Extends:a,initialize:function(t,e,i,s,n){var r="bin",o=(l(e)&&(e=h(o=e,"key"),i=h(o,"url"),s=h(o,"xhrSettings"),r=h(o,"extension",r),n=h(o,"dataType",n)),{type:"binary",cache:t.cacheManager.binary,extension:r,responseType:"arraybuffer",key:e,url:i,xhrSettings:s,config:{dataType:n}});a.call(this,t,o)},onProcess:function(){this.state=n.FILE_PROCESSING;var t=this.config.dataType;this.data=t?new t(this.xhrLoader.response):this.xhrLoader.response,this.onProcessComplete()}});r.register("binary",function(t,e,i,s){if(Array.isArray(t))for(var n=0;n{var s=i(56694),n=i(76846),h=i(72632),l=i(42927),u=i(42911),c=i(45176),r=i(31476),d=i(15297),a=new s({Extends:c,initialize:function(t,e,i,s,n,r){var o,a=u(e)?(e=h(a=e,"key"),o=new l(t,{key:e,url:h(a,"textureURL"),extension:h(a,"textureExtension","png"),normalMap:h(a,"normalMap"),xhrSettings:h(a,"textureXhrSettings")}),new d(t,{key:e,url:h(a,"fontDataURL"),extension:h(a,"fontDataExtension","xml"),xhrSettings:h(a,"fontDataXhrSettings")})):(o=new l(t,e,i,n),new d(t,e,s,r));o.linkFile?c.call(this,t,"bitmapfont",e,[o,a,o.linkFile]):c.call(this,t,"bitmapfont",e,[o,a])},addToCache:function(){var t,e,i;this.isReadyToProcess()&&(t=this.files[0],i=this.files[1],t.addToCache(),e=t.cache.get(t.key),i=r(i.data,t.cache.getFrame(t.key),0,0,e),this.loader.cacheManager.bitmapFont.add(t.key,{data:i,texture:t.key,frame:null}),this.complete=!0)}});n.register("bitmapFont",function(t,e,i,s,n){var r;if(Array.isArray(t))for(var o=0;o{var s=i(56694),n=i(12117),o=i(98035),r=i(76846),a=i(72632),h=i(42911),l=new s({Extends:o,initialize:function(t,e,i,s){var n="css",r=(h(e)&&(e=a(r=e,"key"),i=a(r,"url"),s=a(r,"xhrSettings"),n=a(r,"extension",n)),{type:"script",cache:!1,extension:n,responseType:"text",key:e,url:i,xhrSettings:s});o.call(this,t,r)},onProcess:function(){this.state=n.FILE_PROCESSING,this.data=document.createElement("style"),this.data.defer=!1,this.data.innerHTML=this.xhrLoader.responseText,document.head.appendChild(this.data),this.onProcessComplete()}});r.register("css",function(t,e,i){if(Array.isArray(t))for(var s=0;s{var u=i(73152),p=i(40612),s=i(56694),n=i(76846),f=i(72632),c=i(42927),d=i(42911),r=i(70806),g=i(67409),y=i(30657),v=i(80802),o=i(45176),m=i(24904),x=new s({Extends:o,initialize:function(t,e,i,s){var n;i.multiAtlasURL?(n=new r(t,{key:e,url:i.multiAtlasURL,xhrSettings:s,config:i}),o.call(this,t,"texture",e,[n])):(n=i.textureURL.substr(i.textureURL.length-3),i.type||(i.type="ktx"===n.toLowerCase()?"KTX":"PVR"),n=new p(t,{key:e,url:i.textureURL,extension:n,xhrSettings:s,config:i}),i.atlasURL?(s=new r(t,{key:e,url:i.atlasURL,xhrSettings:s,config:i}),o.call(this,t,"texture",e,[n,s])):o.call(this,t,"texture",e,[n])),this.config=i},onFileComplete:function(t){if(-1!==this.files.indexOf(t)&&(this.pending--,this.config.multiAtlasURL)&&"json"===t.type&&t.data.hasOwnProperty("textures")){var e=t.data.textures,t=this.config,i=this.loader,s=i.baseURL,n=i.path,r=i.prefix,o=f(t,"multiBaseURL",this.baseURL),a=f(t,"multiPath",this.path),h=f(t,"prefix",this.prefix),l=f(t,"textureXhrSettings");o&&i.setBaseURL(o),a&&i.setPath(a),h&&i.setPrefix(h);for(var u=0;u{var s=i(56694),n=i(12117),a=i(98035),r=i(76846),h=i(72632),l=i(42911),u=i(31053),o=new s({Extends:a,initialize:function(t,e,i,s,n){var r="glsl",o=(l(e)?(e=h(o=e,"key"),i=h(o,"url"),s=h(o,"shaderType","fragment"),n=h(o,"xhrSettings"),r=h(o,"extension",r)):void 0===s&&(s="fragment"),{type:"glsl",cache:t.cacheManager.shader,extension:r,responseType:"text",key:e,url:i,config:{shaderType:s},xhrSettings:n});a.call(this,t,o)},onProcess:function(){this.state=n.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()},addToCache:function(){var t=this.data.split("\n"),e=this.extractBlock(t,0);if(e)for(;e;){var i,s=this.getShaderName(e.header),n=this.getShaderType(e.header),r=this.getShaderUniforms(e.header),o=e.shader;this.cache.has(s)?(i=this.cache.get(s),"fragment"===n?i.fragmentSrc=o:i.vertexSrc=o,i.uniforms||(i.uniforms=r)):"fragment"===n?this.cache.add(s,new u(s,o,"",r)):this.cache.add(s,new u(s,"",o,r)),e=this.extractBlock(t,e.offset)}else"fragment"===this.config.shaderType?this.cache.add(this.key,new u(this.key,this.data)):this.cache.add(this.key,new u(this.key,"",this.data))},getShaderName:function(t){for(var e=0;e{var s=i(56694),n=i(683),r=i(98035),o=i(72632),a=i(30750),h=i(42911),i=new s({Extends:r,initialize:function(t,e,i,s){h(e)&&(e=o(n=e,"key"),s=o(n,"config",s));var n={type:"audio",cache:t.cacheManager.audio,extension:i.type,key:e,url:i.url,config:s};r.call(this,t,n),this.locked="ontouchstart"in window,this.loaded=!1,this.filesLoaded=0,this.filesTotal=0},onLoad:function(){this.loaded||(this.loaded=!0,this.loader.nextFile(this,!0))},onError:function(){for(var t=0;t{var s=i(56694),n=i(12117),o=i(98035),r=i(76846),a=i(72632),h=i(42911),l=new s({Extends:o,initialize:function(t,e,i,s){var n="html",r=(h(e)&&(e=a(r=e,"key"),i=a(r,"url"),s=a(r,"xhrSettings"),n=a(r,"extension",n)),{type:"text",cache:t.cacheManager.html,extension:n,responseType:"text",key:e,url:i,xhrSettings:s});o.call(this,t,r)},onProcess:function(){this.state=n.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()}});r.register("html",function(t,e,i){if(Array.isArray(t))for(var s=0;s{var s=i(56694),r=i(12117),h=i(98035),n=i(76846),l=i(72632),u=i(42911),o=new s({Extends:h,initialize:function(t,e,i,s,n,r){void 0===s&&(s=512),void 0===n&&(n=512);var o="html",a=(u(e)&&(e=l(a=e,"key"),i=l(a,"url"),r=l(a,"xhrSettings"),o=l(a,"extension",o),s=l(a,"width",s),n=l(a,"height",n)),{type:"html",cache:t.textureManager,extension:o,responseType:"text",key:e,url:i,xhrSettings:r,config:{width:s,height:n}});h.call(this,t,a)},onProcess:function(){this.state=r.FILE_PROCESSING;var t=this.config.width,e=this.config.height,i=[],e=(i.push(''),i.push(''),i.push(''),i.push(this.xhrLoader.responseText),i.push(""),i.push(""),i.push(""),[i.join("\n")]),s=this;try{var n=new window.Blob(e,{type:"image/svg+xml;charset=utf-8"})}catch(t){return s.state=r.FILE_ERRORED,void s.onProcessComplete()}this.data=new Image,this.data.crossOrigin=this.crossOrigin,this.data.onload=function(){h.revokeObjectURL(s.data),s.onProcessComplete()},this.data.onerror=function(){h.revokeObjectURL(s.data),s.onProcessError()},h.createObjectURL(this.data,n,"image/svg+xml")},addToCache:function(){this.cache.addImage(this.key,this.data)}});n.register("htmlTexture",function(t,e,i,s,n){if(Array.isArray(t))for(var r=0;r{var s=i(56694),n=i(12117),l=i(98035),r=i(76846),u=i(72632),c=i(42911),o=i(30750),a=new s({Extends:l,initialize:function t(e,i,s,n,r){var o,a="png",h=(c(i)&&(i=u(h=i,"key"),s=u(h,"url"),o=u(h,"normalMap"),n=u(h,"xhrSettings"),a=u(h,"extension",a),r=u(h,"frameConfig")),Array.isArray(s)&&(o=s[1],s=s[0]),{type:"image",cache:e.textureManager,extension:a,responseType:"blob",key:i,url:s,xhrSettings:n,config:r});l.call(this,e,h),o&&((a=new t(e,this.key,o,n,r)).type="normalMap",this.setLink(a),e.addFile(a)),this.useImageElementLoad="HTMLImageElement"===e.imageLoadType,this.useImageElementLoad&&(this.load=this.loadImage,this.onProcess=this.onProcessImage)},onProcess:function(){this.state=n.FILE_PROCESSING,this.data=new Image,this.data.crossOrigin=this.crossOrigin;var t=this;this.data.onload=function(){l.revokeObjectURL(t.data),t.onProcessComplete()},this.data.onerror=function(){l.revokeObjectURL(t.data),t.onProcessError()},l.createObjectURL(this.data,this.xhrLoader.response,"image/png")},onProcessImage:function(){var t=this.state;this.state=n.FILE_PROCESSING,t===n.FILE_LOADED?this.onProcessComplete():this.onProcessError()},loadImage:function(){var t;this.state=n.FILE_LOADING,this.src=o(this,this.loader.baseURL),0!==this.src.indexOf("data:")&&(this.data=new Image,this.data.crossOrigin=this.crossOrigin,(t=this).data.onload=function(){t.state=n.FILE_LOADED,t.loader.nextFile(t,!0)},this.data.onerror=function(){t.loader.nextFile(t,!1)},this.data.src=this.src)},addToCache:function(){var t=this.linkFile;t?t.state>=n.FILE_COMPLETE&&("normalMap"===this.type?this.cache.addImage(this.key,t.data,this.data):this.cache.addImage(this.key,this.data,t.data)):this.cache.addImage(this.key,this.data)}});r.register("image",function(t,e,i){if(Array.isArray(t))for(var s=0;s{var s=i(56694),a=i(12117),h=i(98035),n=i(76846),l=i(72632),u=i(10850),c=i(42911),r=new s({Extends:h,initialize:function(t,e,i,s,n){var r="json",o=(c(e)&&(e=l(o=e,"key"),i=l(o,"url"),s=l(o,"xhrSettings"),r=l(o,"extension",r),n=l(o,"dataKey",n)),{type:"json",cache:t.cacheManager.json,extension:r,responseType:"text",key:e,url:i,xhrSettings:s,config:n});h.call(this,t,o),c(i)&&(this.data=n?u(i,n):i,this.state=a.FILE_POPULATED)},onProcess:function(){if(this.state!==a.FILE_POPULATED){this.state=a.FILE_PROCESSING;try{var t=JSON.parse(this.xhrLoader.responseText)}catch(t){throw this.onProcessError(),t}var e=this.config;this.data="string"==typeof e?u(t,e,t):t}this.onProcessComplete()}});n.register("json",function(t,e,i,s){if(Array.isArray(t))for(var n=0;n{var s=i(56694),n=i(76846),p=i(72632),f=i(42927),h=i(42911),l=i(70806),u=i(45176),a=new s({Extends:u,initialize:function(t,e,i,s,n,r,o){h(e)&&(e=p(a=e,"key"),i=p(a,"url",!1)?p(a,"url"):p(a,"atlasURL"),r=p(a,"xhrSettings"),s=p(a,"path"),n=p(a,"baseURL"),o=p(a,"textureXhrSettings"));var a=new l(t,e,i,r);u.call(this,t,"multiatlas",e,[a]),this.config.path=s,this.config.baseURL=n,this.config.textureXhrSettings=o},onFileComplete:function(t){if(-1!==this.files.indexOf(t)&&(this.pending--,"json"===t.type)&&t.data.hasOwnProperty("textures")){var e=t.data.textures,t=this.config,i=this.loader,s=i.baseURL,n=i.path,r=i.prefix,o=p(t,"baseURL",this.baseURL),a=p(t,"path",this.path),h=p(t,"prefix",this.prefix),l=p(t,"textureXhrSettings");i.setBaseURL(o),i.setPath(a),i.setPrefix(h);for(var u=0;u{var s=i(56694),n=i(76846),l=i(72632),u=i(42911),c=i(45176),d=i(55188),r=new s({Extends:c,initialize:function(t,e,i,s){var n,r="js",o=[];u(e)&&(e=l(n=e,"key"),i=l(n,"url"),s=l(n,"xhrSettings"),r=l(n,"extension",r)),Array.isArray(i)||(i=[i]);for(var a=0;a{var s=i(56694),n=i(76846),u=i(72632),c=i(42911),d=i(45176),r=i(27291),o=i(76799),p=i(86897),a=new s({Extends:d,initialize:function(t,e,i,s,n,r){var o,a,h,l=t.cacheManager.obj;c(e)?(e=u(h=e,"key"),o=new p(t,{key:e,type:"obj",cache:l,url:u(h,"url"),extension:u(h,"extension","obj"),xhrSettings:u(h,"xhrSettings"),config:{flipUV:u(h,"flipUV",n)}}),(s=u(h,"matURL"))&&(a=new p(t,{key:e,type:"mat",cache:l,url:s,extension:u(h,"matExtension","mat"),xhrSettings:u(h,"xhrSettings")}))):(o=new p(t,{key:e,url:i,type:"obj",cache:l,extension:"obj",xhrSettings:r,config:{flipUV:n}}),s&&(a=new p(t,{key:e,url:s,type:"mat",cache:l,extension:"mat",xhrSettings:r}))),d.call(this,t,"obj",e,[o,a])},addToCache:function(){var t,e,i;this.isReadyToProcess()&&(t=this.files[0],e=this.files[1],i=r(t.data,t.config.flipUV),e&&(i.materials=o(e.data)),t.cache.add(t.key,i),this.complete=!0)}});n.register("obj",function(t,e,i,s,n){var r;if(Array.isArray(t))for(var o=0;o{var s=i(56694),n=i(12117),r=i(76846),o=i(70806),a=new s({Extends:o,initialize:function(t,e,i,s,n){o.call(this,t,e,i,s,n),this.type="packfile"},onProcess:function(){var t;this.state!==n.FILE_POPULATED&&(this.state=n.FILE_PROCESSING,this.data=JSON.parse(this.xhrLoader.responseText)),this.data.hasOwnProperty("files")&&this.config&&((t={})[this.config]=this.data,this.data=t),this.loader.addPack(this.data,this.config),this.onProcessComplete()}});r.register("pack",function(t,e,i,s){if(Array.isArray(t))for(var n=0;n{var s=i(56694),h=i(12117),l=i(98035),n=i(76846),u=i(72632),c=i(42911),o=new s({Extends:l,initialize:function(t,e,i,s,n,r){var o="js",a=(c(e)&&(e=u(a=e,"key"),i=u(a,"url"),r=u(a,"xhrSettings"),o=u(a,"extension",o),s=u(a,"start"),n=u(a,"mapping")),{type:"plugin",cache:!1,extension:o,responseType:"text",key:e,url:i,xhrSettings:r,config:{start:s,mapping:n}});l.call(this,t,a),"function"==typeof i&&(this.data=i,this.state=h.FILE_POPULATED)},onProcess:function(){var t=this.loader.systems.plugins,e=this.config,i=u(e,"start",!1),e=u(e,"mapping",null);this.state===h.FILE_POPULATED?t.install(this.key,this.data,i,e):(this.state=h.FILE_PROCESSING,this.data=document.createElement("script"),this.data.language="javascript",this.data.type="text/javascript",this.data.defer=!1,this.data.text=this.xhrLoader.responseText,document.head.appendChild(this.data),t=t.install(this.key,window[this.key],i,e),(i||e)&&(this.loader.systems[e]=t,this.loader.scene[e]=t)),this.onProcessComplete()}});n.register("plugin",function(t,e,i,s,n){if(Array.isArray(t))for(var r=0;r{var s=i(56694),d=i(12117),p=i(98035),n=i(76846),a=i(72632),h=i(42911),r=new s({Extends:p,initialize:function(t,e,i,s,n){var r="svg",o=(h(e)&&(e=a(o=e,"key"),i=a(o,"url"),s=a(o,"svgConfig",{}),n=a(o,"xhrSettings"),r=a(o,"extension",r)),{type:"svg",cache:t.textureManager,extension:r,responseType:"text",key:e,url:i,xhrSettings:n,config:{width:a(s,"width"),height:a(s,"height"),scale:a(s,"scale")}});p.call(this,t,o)},onProcess:function(){this.state=d.FILE_PROCESSING;var t=this.xhrLoader.responseText,e=[t],i=this.config.width,s=this.config.height,n=this.config.scale;t:if(i&&s||n){var r=(new DOMParser).parseFromString(t,"text/xml").getElementsByTagName("svg")[0],o=r.hasAttribute("viewBox"),a=parseFloat(r.getAttribute("width")),h=parseFloat(r.getAttribute("height"));if(!o&&a&&h?r.setAttribute("viewBox","0 0 "+a+" "+h):!o||a||h||(a=(o=r.getAttribute("viewBox").split(/\s+|,/))[2],h=o[3]),n){if(!a||!h)break t;i=a*n,s=h*n}r.setAttribute("width",i.toString()+"px"),r.setAttribute("height",s.toString()+"px"),e=[(new XMLSerializer).serializeToString(r)]}try{var l=new window.Blob(e,{type:"image/svg+xml;charset=utf-8"})}catch(t){return void this.onProcessError()}this.data=new Image,this.data.crossOrigin=this.crossOrigin;var u=this,c=!1;this.data.onload=function(){c||p.revokeObjectURL(u.data),u.onProcessComplete()},this.data.onerror=function(){c?u.onProcessError():(c=!0,p.revokeObjectURL(u.data),u.data.src="data:image/svg+xml,"+encodeURIComponent(e.join("")))},p.createObjectURL(this.data,l,"image/svg+xml")},addToCache:function(){this.cache.addImage(this.key,this.data)}});n.register("svg",function(t,e,i,s){if(Array.isArray(t))for(var n=0;n{var s=i(56694),n=i(12117),o=i(98035),r=i(76846),a=i(72632),h=i(42911),l=new s({Extends:o,initialize:function(t,e,i,s){var n="js",r=(h(e)&&(e=a(r=e,"key"),i=a(r,"url"),s=a(r,"xhrSettings"),n=a(r,"extension",n)),{type:"text",extension:n,responseType:"text",key:e,url:i,xhrSettings:s});o.call(this,t,r)},onProcess:function(){this.state=n.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()},addToCache:function(){var t=this.data.concat("(function(){\nreturn new "+this.key+"();\n}).call(this);"),e=eval;this.loader.sceneManager.add(this.key,e(t)),this.complete=!0}});r.register("sceneFile",function(t,e,i){if(Array.isArray(t))for(var s=0;s{var s=i(56694),h=i(12117),l=i(98035),n=i(76846),u=i(72632),c=i(42911),o=new s({Extends:l,initialize:function(t,e,i,s,n,r){var o="js",a=(c(e)&&(e=u(a=e,"key"),i=u(a,"url"),r=u(a,"xhrSettings"),o=u(a,"extension",o),s=u(a,"systemKey"),n=u(a,"sceneKey")),{type:"scenePlugin",cache:!1,extension:o,responseType:"text",key:e,url:i,xhrSettings:r,config:{systemKey:s,sceneKey:n}});l.call(this,t,a),"function"==typeof i&&(this.data=i,this.state=h.FILE_POPULATED)},onProcess:function(){var t=this.loader.systems.plugins,e=this.config,i=this.key,s=u(e,"systemKey",i),e=u(e,"sceneKey",i);this.state===h.FILE_POPULATED?t.installScenePlugin(s,this.data,e,this.loader.scene,!0):(this.state=h.FILE_PROCESSING,this.data=document.createElement("script"),this.data.language="javascript",this.data.type="text/javascript",this.data.defer=!1,this.data.text=this.xhrLoader.responseText,document.head.appendChild(this.data),t.installScenePlugin(s,window[this.key],e,this.loader.scene,!0)),this.onProcessComplete()}});n.register("scenePlugin",function(t,e,i,s,n){if(Array.isArray(t))for(var r=0;r{var s=i(56694),n=i(12117),a=i(98035),r=i(76846),h=i(72632),l=i(42911),o=new s({Extends:a,initialize:function(t,e,i,s,n){var r="js",o=(l(e)?(e=h(o=e,"key"),i=h(o,"url"),s=h(o,"type","script"),n=h(o,"xhrSettings"),r=h(o,"extension",r)):void 0===s&&(s="script"),{type:s,cache:!1,extension:r,responseType:"text",key:e,url:i,xhrSettings:n});a.call(this,t,o)},onProcess:function(){this.state=n.FILE_PROCESSING,this.data=document.createElement("script"),this.data.language="javascript",this.data.type="text/javascript",this.data.defer=!1,this.data.text=this.xhrLoader.responseText,document.head.appendChild(this.data),this.onProcessComplete()}});r.register("script",function(t,e,i,s){if(Array.isArray(t))for(var n=0;n{var s=i(56694),n=i(12117),r=i(76846),o=i(42927),a=new s({Extends:o,initialize:function(t,e,i,s,n){o.call(this,t,e,i,n,s),this.type="spritesheet"},addToCache:function(){var t=this.linkFile;t?t.state>=n.FILE_COMPLETE&&("normalMap"===this.type?this.cache.addSpriteSheet(this.key,t.data,this.config,this.data):this.cache.addSpriteSheet(this.key,this.data,this.config,t.data)):this.cache.addSpriteSheet(this.key,this.data,this.config)}});r.register("spritesheet",function(t,e,i,s){if(Array.isArray(t))for(var n=0;n{var s=i(56694),n=i(12117),h=i(98035),r=i(76846),l=i(72632),u=i(42911),o=new s({Extends:h,initialize:function(t,e,i,s){var n="text",r="txt",o=t.cacheManager.text,a=(u(e)&&(e=l(a=e,"key"),i=l(a,"url"),s=l(a,"xhrSettings"),r=l(a,"extension",r),n=l(a,"type",n),o=l(a,"cache",o)),{type:n,cache:o,extension:r,responseType:"text",key:e,url:i,xhrSettings:s});h.call(this,t,a)},onProcess:function(){this.state=n.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()}});r.register("text",function(t,e,i){if(Array.isArray(t))for(var s=0;s{var s=i(56694),n=i(12117),o=i(98035),r=i(76846),a=i(72632),h=i(42911),l=i(93560),u=new s({Extends:o,initialize:function(t,e,i,s){var n="csv",r=(h(e)&&(e=a(r=e,"key"),i=a(r,"url"),s=a(r,"xhrSettings"),n=a(r,"extension",n)),{type:"tilemapCSV",cache:t.cacheManager.tilemap,extension:n,responseType:"text",key:e,url:i,xhrSettings:s});o.call(this,t,r),this.tilemapFormat=l.CSV},onProcess:function(){this.state=n.FILE_PROCESSING,this.data=this.xhrLoader.responseText,this.onProcessComplete()},addToCache:function(){var t={format:this.tilemapFormat,data:this.data};this.cache.add(this.key,t)}});r.register("tilemapCSV",function(t,e,i){if(Array.isArray(t))for(var s=0;s{var s=i(56694),n=i(76846),r=i(70806),o=i(93560),a=new s({Extends:r,initialize:function(t,e,i,s){r.call(this,t,e,i,s),this.type="tilemapJSON",this.cache=t.cacheManager.tilemap},addToCache:function(){var t={format:o.WELTMEISTER,data:this.data};this.cache.add(this.key,t)}});n.register("tilemapImpact",function(t,e,i){if(Array.isArray(t))for(var s=0;s{var s=i(56694),n=i(76846),r=i(70806),o=i(93560),a=new s({Extends:r,initialize:function(t,e,i,s){r.call(this,t,e,i,s),this.type="tilemapJSON",this.cache=t.cacheManager.tilemap},addToCache:function(){var t={format:o.TILED_JSON,data:this.data};this.cache.add(this.key,t)}});n.register("tilemapTiledJSON",function(t,e,i){if(Array.isArray(t))for(var s=0;s{var s=i(56694),n=i(76846),h=i(72632),l=i(42927),u=i(42911),c=i(45176),d=i(86897),a=new s({Extends:c,initialize:function(t,e,i,s,n,r){var o,a=u(e)?(e=h(a=e,"key"),o=new l(t,{key:e,url:h(a,"textureURL"),extension:h(a,"textureExtension","png"),normalMap:h(a,"normalMap"),xhrSettings:h(a,"textureXhrSettings")}),new d(t,{key:e,url:h(a,"atlasURL"),extension:h(a,"atlasExtension","txt"),xhrSettings:h(a,"atlasXhrSettings")})):(o=new l(t,e,i,n),new d(t,e,s,r));o.linkFile?c.call(this,t,"unityatlas",e,[o,a,o.linkFile]):c.call(this,t,"unityatlas",e,[o,a])},addToCache:function(){var t,e,i;this.isReadyToProcess()&&(t=this.files[0],e=this.files[1],i=this.files[2]?this.files[2].data:null,this.loader.textureManager.addUnityAtlas(t.key,t.data,e.data,i),this.complete=!0)}});n.register("unityAtlas",function(t,e,i,s,n){var r;if(Array.isArray(t))for(var o=0;o{var s=i(56694),n=i(12117),r=i(98035),o=i(76846),a=i(30750),h=i(72632),l=i(42911),u=new s({Extends:r,initialize:function(t,e,i,s){void 0===s&&(s=!1),l(e)&&(e=h(n=e,"key"),i=h(n,"url",[]),s=h(n,"noAudio",!1));var n=t.systems.game.device.video.getVideoURL(i),i={type:"video",cache:t.cacheManager.video,extension:n.type,key:e,url:n.url,config:{noAudio:s}};r.call(this,t,i)},onProcess:function(){this.data={url:this.src,noAudio:this.config.noAudio,crossOrigin:this.crossOrigin},this.onProcessComplete()},load:function(){this.src=a(this,this.loader.baseURL),this.state=n.FILE_LOADED,this.loader.nextFile(this,!0)}});o.register("video",function(t,e,i){if(Array.isArray(t))for(var s=0;s{var s=i(56694),n=i(12117),o=i(98035),r=i(76846),a=i(72632),h=i(42911),l=i(89200),u=new s({Extends:o,initialize:function(t,e,i,s){var n="xml",r=(h(e)&&(e=a(r=e,"key"),i=a(r,"url"),s=a(r,"xhrSettings"),n=a(r,"extension",n)),{type:"xml",cache:t.cacheManager.xml,extension:n,responseType:"text",key:e,url:i,xhrSettings:s});o.call(this,t,r)},onProcess:function(){this.state=n.FILE_PROCESSING,this.data=l(this.xhrLoader.responseText),this.data?this.onProcessComplete():this.onProcessError()}});r.register("xml",function(t,e,i){if(Array.isArray(t))for(var s=0;s{t.exports={AnimationJSONFile:i(46468),AsepriteFile:i(31648),AtlasJSONFile:i(73152),AtlasXMLFile:i(24616),AudioFile:i(67448),AudioSpriteFile:i(66109),BinaryFile:i(40612),BitmapFontFile:i(54565),CompressedTextureFile:i(47375),CSSFile:i(99898),GLSLFile:i(46568),HTML5AudioFile:i(30929),HTMLFile:i(77459),HTMLTextureFile:i(9755),ImageFile:i(42927),JSONFile:i(70806),MultiAtlasFile:i(80802),MultiScriptFile:i(39034),OBJFile:i(85527),PackFile:i(3616),PluginFile:i(12217),SceneFile:i(95171),ScenePluginFile:i(82458),ScriptFile:i(55188),SpriteSheetFile:i(33536),SVGFile:i(4474),TextFile:i(86897),TilemapCSVFile:i(58673),TilemapImpactFile:i(98896),TilemapJSONFile:i(50563),UnityAtlasFile:i(82857),VideoFile:i(22833),XMLFile:i(15297)}},95695:(t,e,i)=>{var s=i(12117),i=i(98611)(!1,{Events:i(683),FileTypes:i(34034),File:i(98035),FileTypesManager:i(76846),GetURL:i(30750),LoaderPlugin:i(67285),MergeXHRSettings:i(43531),MultiFile:i(45176),XHRLoader:i(88490),XHRSettings:i(33868)},s);t.exports=i},26042:t=>{t.exports=function(t){for(var e=0,i=0;i{var s=i(8034);t.exports=function(t,e){return s(t)/s(e)/s(t-e)}},17489:t=>{t.exports=function(t,e){return Math.floor(Math.random()*(e-t+1)+t)}},14976:t=>{t.exports=function(t,e,i,s,n){var e=.5*(s-e),n=.5*(n-i),r=t*t;return t*r*(2*i-2*s+e+n)+(-3*i+3*s-2*e-n)*r+e*t+i}},89129:t=>{t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=10);i=Math.pow(i,-e);return Math.ceil(t*i)/i}},82897:t=>{t.exports=function(t,e,i){return Math.max(e,Math.min(i,t))}},75606:(t,e,i)=>{var s=i(83392);t.exports=function(t){return t*s.DEG_TO_RAD}},767:t=>{t.exports=function(t,e){return Math.abs(t-e)}},9849:(t,e,i)=>{var y=i(82897),s=i(56694),n=i(16650),r=i(72283),o=new n,i=new s({initialize:function t(e,i,s,n){void 0===i&&(i=0),void 0===s&&(s=0),void 0===n&&(n=t.DefaultOrder),this._x=e=void 0===e?0:e,this._y=i,this._z=s,this._order=n,this.onChangeCallback=r},x:{get:function(){return this._x},set:function(t){this._x=t,this.onChangeCallback(this)}},y:{get:function(){return this._y},set:function(t){this._y=t,this.onChangeCallback(this)}},z:{get:function(){return this._z},set:function(t){this._z=t,this.onChangeCallback(this)}},order:{get:function(){return this._order},set:function(t){this._order=t,this.onChangeCallback(this)}},set:function(t,e,i,s){return void 0===s&&(s=this._order),this._x=t,this._y=e,this._z=i,this._order=s,this.onChangeCallback(this),this},copy:function(t){return this.set(t.x,t.y,t.z,t.order)},setFromQuaternion:function(t,e,i){return void 0===e&&(e=this._order),void 0===i&&(i=!1),o.fromQuat(t),this.setFromRotationMatrix(o,e,i)},setFromRotationMatrix:function(t,e,i){void 0===e&&(e=this._order),void 0===i&&(i=!1);var t=t.val,s=t[0],n=t[4],r=t[8],o=t[1],a=t[5],h=t[9],l=t[2],u=t[6],c=t[10],d=0,p=0,f=0,g=.99999;switch(e){case"XYZ":p=Math.asin(y(r,-1,1)),Math.abs(r){t.exports=function(t){if(0===t)return 1;for(var e=t;--t;)e*=t;return e}},61616:t=>{t.exports=function(t,e){return Math.random()*(e-t)+t}},60679:t=>{t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=10);i=Math.pow(i,-e);return Math.floor(t*i)/i}},91806:(t,e,i)=>{var s=i(82897);t.exports=function(t,e,i){return(i-e)*(t=s(t,0,1))+e}},79366:t=>{t.exports=function(t,e){return t/e/1e3}},43776:t=>{t.exports=function(t){return t==parseFloat(t)?!(t%2):void 0}},58442:t=>{t.exports=function(t){return t===parseFloat(t)?!(t%2):void 0}},42798:t=>{t.exports=function(t,e,i){return(e-t)*i+t}},61072:t=>{t.exports=function(t,e,i){return void 0===i&&(i=0),t.clone().lerp(e,i)}},5341:(t,e,i)=>{var s=new(i(56694))({initialize:function(t){this.val=new Float32Array(9),t?this.copy(t):this.identity()},clone:function(){return new s(this)},set:function(t){return this.copy(t)},copy:function(t){var e=this.val,t=t.val;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],this},fromMat4:function(t){var t=t.val,e=this.val;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[4],e[4]=t[5],e[5]=t[6],e[6]=t[8],e[7]=t[9],e[8]=t[10],this},fromArray:function(t){var e=this.val;return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4],e[5]=t[5],e[6]=t[6],e[7]=t[7],e[8]=t[8],this},identity:function(){var t=this.val;return t[0]=1,t[1]=0,t[2]=0,t[3]=0,t[4]=1,t[5]=0,t[6]=0,t[7]=0,t[8]=1,this},transpose:function(){var t=this.val,e=t[1],i=t[2],s=t[5];return t[1]=t[3],t[2]=t[6],t[3]=e,t[5]=t[7],t[6]=i,t[7]=s,this},invert:function(){var t=this.val,e=t[0],i=t[1],s=t[2],n=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=l*r-o*h,c=-l*n+o*a,d=h*n-r*a,p=e*u+i*c+s*d;return p?(t[0]=u*(p=1/p),t[1]=(-l*i+s*h)*p,t[2]=(o*i-s*r)*p,t[3]=c*p,t[4]=(l*e-s*a)*p,t[5]=(-o*e+s*n)*p,t[6]=d*p,t[7]=(-h*e+i*a)*p,t[8]=(r*e-i*n)*p,this):null},adjoint:function(){var t=this.val,e=t[0],i=t[1],s=t[2],n=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8];return t[0]=r*l-o*h,t[1]=s*h-i*l,t[2]=i*o-s*r,t[3]=o*a-n*l,t[4]=e*l-s*a,t[5]=s*n-e*o,t[6]=n*h-r*a,t[7]=i*a-e*h,t[8]=e*r-i*n,this},determinant:function(){var t=this.val,e=t[0],i=t[1],s=t[2],n=t[3],r=t[4],o=t[5],a=t[6],h=t[7],t=t[8];return e*(t*r-o*h)+i*(-t*n+o*a)+s*(h*n-r*a)},multiply:function(t){var e=this.val,i=e[0],s=e[1],n=e[2],r=e[3],o=e[4],a=e[5],h=e[6],l=e[7],u=e[8],t=t.val,c=t[0],d=t[1],p=t[2],f=t[3],g=t[4],y=t[5],v=t[6],m=t[7],t=t[8];return e[0]=c*i+d*r+p*h,e[1]=c*s+d*o+p*l,e[2]=c*n+d*a+p*u,e[3]=f*i+g*r+y*h,e[4]=f*s+g*o+y*l,e[5]=f*n+g*a+y*u,e[6]=v*i+m*r+t*h,e[7]=v*s+m*o+t*l,e[8]=v*n+m*a+t*u,this},translate:function(t){var e=this.val,i=t.x,t=t.y;return e[6]=i*e[0]+t*e[3]+e[6],e[7]=i*e[1]+t*e[4]+e[7],e[8]=i*e[2]+t*e[5]+e[8],this},rotate:function(t){var e=this.val,i=e[0],s=e[1],n=e[2],r=e[3],o=e[4],a=e[5],h=Math.sin(t),t=Math.cos(t);return e[0]=t*i+h*r,e[1]=t*s+h*o,e[2]=t*n+h*a,e[3]=t*r-h*i,e[4]=t*o-h*s,e[5]=t*a-h*n,this},scale:function(t){var e=this.val,i=t.x,t=t.y;return e[0]=i*e[0],e[1]=i*e[1],e[2]=i*e[2],e[3]=t*e[3],e[4]=t*e[4],e[5]=t*e[5],this},fromQuat:function(t){var e=t.x,i=t.y,s=t.z,t=t.w,n=e+e,r=i+i,o=s+s,a=e*n,h=e*r,e=e*o,l=i*r,i=i*o,s=s*o,n=t*n,r=t*r,t=t*o,o=this.val;return o[0]=1-(l+s),o[3]=h+t,o[6]=e-r,o[1]=h-t,o[4]=1-(a+s),o[7]=i+n,o[2]=e+r,o[5]=i-n,o[8]=1-(a+l),this},normalFromMat4:function(t){var t=t.val,e=this.val,i=t[0],s=t[1],n=t[2],r=t[3],o=t[4],a=t[5],h=t[6],l=t[7],u=t[8],c=t[9],d=t[10],p=t[11],f=t[12],g=t[13],y=t[14],t=t[15],v=i*a-s*o,m=i*h-n*o,x=i*l-r*o,w=s*h-n*a,T=s*l-r*a,b=n*l-r*h,S=u*g-c*f,P=u*y-d*f,u=u*t-p*f,_=c*y-d*g,c=c*t-p*g,d=d*t-p*y,p=v*d-m*c+x*_+w*u-T*P+b*S;return p?(e[0]=(a*d-h*c+l*_)*(p=1/p),e[1]=(h*u-o*d-l*P)*p,e[2]=(o*c-a*u+l*S)*p,e[3]=(n*c-s*d-r*_)*p,e[4]=(i*d-n*u+r*P)*p,e[5]=(s*u-i*c-r*S)*p,e[6]=(g*b-y*T+t*w)*p,e[7]=(y*x-f*b-t*m)*p,e[8]=(f*T-g*x+t*v)*p,this):null}});t.exports=s},16650:(t,e,i)=>{var s=i(56694),i=i(70015),n=new s({initialize:function(t){this.val=new Float32Array(16),t?this.copy(t):this.identity()},clone:function(){return new n(this)},set:function(t){return this.copy(t)},setValues:function(t,e,i,s,n,r,o,a,h,l,u,c,d,p,f,g){var y=this.val;return y[0]=t,y[1]=e,y[2]=i,y[3]=s,y[4]=n,y[5]=r,y[6]=o,y[7]=a,y[8]=h,y[9]=l,y[10]=u,y[11]=c,y[12]=d,y[13]=p,y[14]=f,y[15]=g,this},copy:function(t){t=t.val;return this.setValues(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])},fromArray:function(t){return this.setValues(t[0],t[1],t[2],t[3],t[4],t[5],t[6],t[7],t[8],t[9],t[10],t[11],t[12],t[13],t[14],t[15])},zero:function(){return this.setValues(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)},transform:function(t,e,i){var i=a.fromQuat(i).val,s=e.x,n=e.y,e=e.z;return this.setValues(i[0]*s,i[1]*s,i[2]*s,0,i[4]*n,i[5]*n,i[6]*n,0,i[8]*e,i[9]*e,i[10]*e,0,t.x,t.y,t.z,1)},xyz:function(t,e,i){this.identity();var s=this.val;return s[12]=t,s[13]=e,s[14]=i,this},scaling:function(t,e,i){this.zero();var s=this.val;return s[0]=t,s[5]=e,s[10]=i,s[15]=1,this},identity:function(){return this.setValues(1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1)},transpose:function(){var t=this.val,e=t[1],i=t[2],s=t[3],n=t[6],r=t[7],o=t[11];return t[1]=t[4],t[2]=t[8],t[3]=t[12],t[4]=e,t[6]=t[9],t[7]=t[13],t[8]=i,t[9]=n,t[11]=t[14],t[12]=s,t[13]=r,t[14]=o,this},getInverse:function(t){return this.copy(t),this.invert()},invert:function(){var t=this.val,e=t[0],i=t[1],s=t[2],n=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=t[9],c=t[10],d=t[11],p=t[12],f=t[13],g=t[14],t=t[15],y=e*o-i*r,v=e*a-s*r,m=e*h-n*r,x=i*a-s*o,w=i*h-n*o,T=s*h-n*a,b=l*f-u*p,S=l*g-c*p,P=l*t-d*p,_=u*g-c*f,E=u*t-d*f,A=c*t-d*g,C=y*A-v*E+m*_+x*P-w*S+T*b;return C?this.setValues((o*A-a*E+h*_)*(C=1/C),(s*E-i*A-n*_)*C,(f*T-g*w+t*x)*C,(c*w-u*T-d*x)*C,(a*P-r*A-h*S)*C,(e*A-s*P+n*S)*C,(g*m-p*T-t*v)*C,(l*T-c*m+d*v)*C,(r*E-o*P+h*b)*C,(i*P-e*E-n*b)*C,(p*w-f*m+t*y)*C,(u*m-l*w-d*y)*C,(o*S-r*_-a*b)*C,(e*_-i*S+s*b)*C,(f*v-p*x-g*y)*C,(l*x-u*v+c*y)*C):this},adjoint:function(){var t=this.val,e=t[0],i=t[1],s=t[2],n=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=t[9],c=t[10],d=t[11],p=t[12],f=t[13],g=t[14],t=t[15];return this.setValues(o*(c*t-d*g)-u*(a*t-h*g)+f*(a*d-h*c),-(i*(c*t-d*g)-u*(s*t-n*g)+f*(s*d-n*c)),i*(a*t-h*g)-o*(s*t-n*g)+f*(s*h-n*a),-(i*(a*d-h*c)-o*(s*d-n*c)+u*(s*h-n*a)),-(r*(c*t-d*g)-l*(a*t-h*g)+p*(a*d-h*c)),e*(c*t-d*g)-l*(s*t-n*g)+p*(s*d-n*c),-(e*(a*t-h*g)-r*(s*t-n*g)+p*(s*h-n*a)),e*(a*d-h*c)-r*(s*d-n*c)+l*(s*h-n*a),r*(u*t-d*f)-l*(o*t-h*f)+p*(o*d-h*u),-(e*(u*t-d*f)-l*(i*t-n*f)+p*(i*d-n*u)),e*(o*t-h*f)-r*(i*t-n*f)+p*(i*h-n*o),-(e*(o*d-h*u)-r*(i*d-n*u)+l*(i*h-n*o)),-(r*(u*g-c*f)-l*(o*g-a*f)+p*(o*c-a*u)),e*(u*g-c*f)-l*(i*g-s*f)+p*(i*c-s*u),-(e*(o*g-a*f)-r*(i*g-s*f)+p*(i*a-s*o)),e*(o*c-a*u)-r*(i*c-s*u)+l*(i*a-s*o))},determinant:function(){var t=this.val,e=t[0],i=t[1],s=t[2],n=t[3],r=t[4],o=t[5],a=t[6],h=t[7],l=t[8],u=t[9],c=t[10],d=t[11],p=t[12],f=t[13],g=t[14],t=t[15];return(e*o-i*r)*(c*t-d*g)-(e*a-s*r)*(u*t-d*f)+(e*h-n*r)*(u*g-c*f)+(i*a-s*o)*(l*t-d*p)-(i*h-n*o)*(l*g-c*p)+(s*h-n*a)*(l*f-u*p)},multiply:function(t){var e=this.val,i=e[0],s=e[1],n=e[2],r=e[3],o=e[4],a=e[5],h=e[6],l=e[7],u=e[8],c=e[9],d=e[10],p=e[11],f=e[12],g=e[13],y=e[14],v=e[15],t=t.val,m=t[0],x=t[1],w=t[2],T=t[3];return e[0]=m*i+x*o+w*u+T*f,e[1]=m*s+x*a+w*c+T*g,e[2]=m*n+x*h+w*d+T*y,e[3]=m*r+x*l+w*p+T*v,m=t[4],x=t[5],w=t[6],T=t[7],e[4]=m*i+x*o+w*u+T*f,e[5]=m*s+x*a+w*c+T*g,e[6]=m*n+x*h+w*d+T*y,e[7]=m*r+x*l+w*p+T*v,m=t[8],x=t[9],w=t[10],T=t[11],e[8]=m*i+x*o+w*u+T*f,e[9]=m*s+x*a+w*c+T*g,e[10]=m*n+x*h+w*d+T*y,e[11]=m*r+x*l+w*p+T*v,m=t[12],x=t[13],w=t[14],T=t[15],e[12]=m*i+x*o+w*u+T*f,e[13]=m*s+x*a+w*c+T*g,e[14]=m*n+x*h+w*d+T*y,e[15]=m*r+x*l+w*p+T*v,this},multiplyLocal:function(t){var e=this.val,t=t.val;return this.setValues(e[0]*t[0]+e[1]*t[4]+e[2]*t[8]+e[3]*t[12],e[0]*t[1]+e[1]*t[5]+e[2]*t[9]+e[3]*t[13],e[0]*t[2]+e[1]*t[6]+e[2]*t[10]+e[3]*t[14],e[0]*t[3]+e[1]*t[7]+e[2]*t[11]+e[3]*t[15],e[4]*t[0]+e[5]*t[4]+e[6]*t[8]+e[7]*t[12],e[4]*t[1]+e[5]*t[5]+e[6]*t[9]+e[7]*t[13],e[4]*t[2]+e[5]*t[6]+e[6]*t[10]+e[7]*t[14],e[4]*t[3]+e[5]*t[7]+e[6]*t[11]+e[7]*t[15],e[8]*t[0]+e[9]*t[4]+e[10]*t[8]+e[11]*t[12],e[8]*t[1]+e[9]*t[5]+e[10]*t[9]+e[11]*t[13],e[8]*t[2]+e[9]*t[6]+e[10]*t[10]+e[11]*t[14],e[8]*t[3]+e[9]*t[7]+e[10]*t[11]+e[11]*t[15],e[12]*t[0]+e[13]*t[4]+e[14]*t[8]+e[15]*t[12],e[12]*t[1]+e[13]*t[5]+e[14]*t[9]+e[15]*t[13],e[12]*t[2]+e[13]*t[6]+e[14]*t[10]+e[15]*t[14],e[12]*t[3]+e[13]*t[7]+e[14]*t[11]+e[15]*t[15])},premultiply:function(t){return this.multiplyMatrices(t,this)},multiplyMatrices:function(t,e){var t=t.val,e=e.val,i=t[0],s=t[4],n=t[8],r=t[12],o=t[1],a=t[5],h=t[9],l=t[13],u=t[2],c=t[6],d=t[10],p=t[14],f=t[3],g=t[7],y=t[11],t=t[15],v=e[0],m=e[4],x=e[8],w=e[12],T=e[1],b=e[5],S=e[9],P=e[13],_=e[2],E=e[6],A=e[10],C=e[14],M=e[3],O=e[7],R=e[11],e=e[15];return this.setValues(i*v+s*T+n*_+r*M,o*v+a*T+h*_+l*M,u*v+c*T+d*_+p*M,f*v+g*T+y*_+t*M,i*m+s*b+n*E+r*O,o*m+a*b+h*E+l*O,u*m+c*b+d*E+p*O,f*m+g*b+y*E+t*O,i*x+s*S+n*A+r*R,o*x+a*S+h*A+l*R,u*x+c*S+d*A+p*R,f*x+g*S+y*A+t*R,i*w+s*P+n*C+r*e,o*w+a*P+h*C+l*e,u*w+c*P+d*C+p*e,f*w+g*P+y*C+t*e)},translate:function(t){return this.translateXYZ(t.x,t.y,t.z)},translateXYZ:function(t,e,i){var s=this.val;return s[12]=s[0]*t+s[4]*e+s[8]*i+s[12],s[13]=s[1]*t+s[5]*e+s[9]*i+s[13],s[14]=s[2]*t+s[6]*e+s[10]*i+s[14],s[15]=s[3]*t+s[7]*e+s[11]*i+s[15],this},scale:function(t){return this.scaleXYZ(t.x,t.y,t.z)},scaleXYZ:function(t,e,i){var s=this.val;return s[0]=s[0]*t,s[1]=s[1]*t,s[2]=s[2]*t,s[3]=s[3]*t,s[4]=s[4]*e,s[5]=s[5]*e,s[6]=s[6]*e,s[7]=s[7]*e,s[8]=s[8]*i,s[9]=s[9]*i,s[10]=s[10]*i,s[11]=s[11]*i,this},makeRotationAxis:function(t,e){var i=Math.cos(e),e=Math.sin(e),s=1-i,n=t.x,r=t.y,t=t.z,o=s*n,a=s*r;return this.setValues(o*n+i,o*r-e*t,o*t+e*r,0,o*r+e*t,a*r+i,a*t-e*n,0,o*t-e*r,a*t+e*n,s*t*t+i,0,0,0,0,1)},rotate:function(t,e){var i=this.val,s=e.x,n=e.y,e=e.z,r=Math.sqrt(s*s+n*n+e*e);if(Math.abs(r)<1e-6)return this;s*=r=1/r,n*=r,e*=r;var r=Math.sin(t),t=Math.cos(t),o=1-t,a=i[0],h=i[1],l=i[2],u=i[3],c=i[4],d=i[5],p=i[6],f=i[7],g=i[8],y=i[9],v=i[10],m=i[11],x=i[12],w=i[13],T=i[14],i=i[15],b=s*s*o+t,S=n*s*o+e*r,P=e*s*o-n*r,_=s*n*o-e*r,E=n*n*o+t,A=e*n*o+s*r,C=s*e*o+n*r,n=n*e*o-s*r,s=e*e*o+t;return this.setValues(a*b+c*S+g*P,h*b+d*S+y*P,l*b+p*S+v*P,u*b+f*S+m*P,a*_+c*E+g*A,h*_+d*E+y*A,l*_+p*E+v*A,u*_+f*E+m*A,a*C+c*n+g*s,h*C+d*n+y*s,l*C+p*n+v*s,u*C+f*n+m*s,x,w,T,i)},rotateX:function(t){var e=this.val,i=Math.sin(t),t=Math.cos(t),s=e[4],n=e[5],r=e[6],o=e[7],a=e[8],h=e[9],l=e[10],u=e[11];return e[4]=s*t+a*i,e[5]=n*t+h*i,e[6]=r*t+l*i,e[7]=o*t+u*i,e[8]=a*t-s*i,e[9]=h*t-n*i,e[10]=l*t-r*i,e[11]=u*t-o*i,this},rotateY:function(t){var e=this.val,i=Math.sin(t),t=Math.cos(t),s=e[0],n=e[1],r=e[2],o=e[3],a=e[8],h=e[9],l=e[10],u=e[11];return e[0]=s*t-a*i,e[1]=n*t-h*i,e[2]=r*t-l*i,e[3]=o*t-u*i,e[8]=s*i+a*t,e[9]=n*i+h*t,e[10]=r*i+l*t,e[11]=o*i+u*t,this},rotateZ:function(t){var e=this.val,i=Math.sin(t),t=Math.cos(t),s=e[0],n=e[1],r=e[2],o=e[3],a=e[4],h=e[5],l=e[6],u=e[7];return e[0]=s*t+a*i,e[1]=n*t+h*i,e[2]=r*t+l*i,e[3]=o*t+u*i,e[4]=a*t-s*i,e[5]=h*t-n*i,e[6]=l*t-r*i,e[7]=u*t-o*i,this},fromRotationTranslation:function(t,e){var i=t.x,s=t.y,n=t.z,t=t.w,r=i+i,o=s+s,a=n+n,h=i*r,l=i*o,i=i*a,u=s*o,s=s*a,n=n*a,r=t*r,o=t*o,t=t*a;return this.setValues(1-(u+n),l+t,i-o,0,l-t,1-(h+n),s+r,0,i+o,s-r,1-(h+u),0,e.x,e.y,e.z,1)},fromQuat:function(t){var e=t.x,i=t.y,s=t.z,t=t.w,n=e+e,r=i+i,o=s+s,a=e*n,h=e*r,e=e*o,l=i*r,i=i*o,s=s*o,n=t*n,r=t*r,t=t*o;return this.setValues(1-(l+s),h+t,e-r,0,h-t,1-(a+s),i+n,0,e+r,i-n,1-(a+l),0,0,0,0,1)},frustum:function(t,e,i,s,n,r){var o=1/(e-t),a=1/(s-i),h=1/(n-r);return this.setValues(2*n*o,0,0,0,0,2*n*a,0,0,(e+t)*o,(s+i)*a,(r+n)*h,-1,0,0,r*n*2*h,0)},perspective:function(t,e,i,s){var t=1/Math.tan(t/2),n=1/(i-s);return this.setValues(t/e,0,0,0,0,t,0,0,0,0,(s+i)*n,-1,0,0,2*s*i*n,0)},perspectiveLH:function(t,e,i,s){return this.setValues(2*i/t,0,0,0,0,2*i/e,0,0,0,0,-s/(i-s),1,0,0,i*s/(i-s),0)},ortho:function(t,e,i,s,n,r){var o=t-e,a=i-s,h=n-r;return this.setValues(-2*(o=0==o?o:1/o),0,0,0,0,-2*(a=0==a?a:1/a),0,0,0,0,2*(h=0==h?h:1/h),0,(t+e)*o,(s+i)*a,(r+n)*h,1)},lookAtRH:function(t,e,i){var s=this.val;return l.subVectors(t,e),0===l.getLengthSquared()&&(l.z=1),l.normalize(),r.crossVectors(i,l),0===r.getLengthSquared()&&(1===Math.abs(i.z)?l.x+=1e-4:l.z+=1e-4,l.normalize(),r.crossVectors(i,l)),r.normalize(),o.crossVectors(l,r),s[0]=r.x,s[1]=r.y,s[2]=r.z,s[4]=o.x,s[5]=o.y,s[6]=o.z,s[8]=l.x,s[9]=l.y,s[10]=l.z,this},lookAt:function(t,e,i){var s,n,r,o,a=t.x,h=t.y,t=t.z,l=i.x,u=i.y,i=i.z,c=e.x,d=e.y,e=e.z;return Math.abs(a-c)<1e-6&&Math.abs(h-d)<1e-6&&Math.abs(t-e)<1e-6?this.identity():(c=a-c,d=h-d,e=t-e,n=u*(e*=s=1/Math.sqrt(c*c+d*d+e*e))-i*(d*=s),i=i*(c*=s)-l*e,l=l*d-u*c,(s=Math.sqrt(n*n+i*i+l*l))?(n*=s=1/s,i*=s,l*=s):l=i=n=0,u=d*l-e*i,r=e*n-c*l,o=c*i-d*n,(s=Math.sqrt(u*u+r*r+o*o))?(u*=s=1/s,r*=s,o*=s):o=r=u=0,this.setValues(n,u,c,0,i,r,d,0,l,o,e,0,-(n*a+i*h+l*t),-(u*a+r*h+o*t),-(c*a+d*h+e*t),1))},yawPitchRoll:function(t,e,i){this.zero(),a.zero(),h.zero();var s=this.val,n=a.val,r=h.val,o=Math.sin(i),i=Math.cos(i);return s[10]=1,s[15]=1,s[0]=i,s[1]=o,s[4]=-o,s[5]=i,o=Math.sin(e),i=Math.cos(e),n[0]=1,n[15]=1,n[5]=i,n[10]=i,n[9]=-o,n[6]=o,o=Math.sin(t),i=Math.cos(t),r[5]=1,r[15]=1,r[0]=i,r[2]=-o,r[8]=o,r[10]=i,this.multiplyLocal(a),this.multiplyLocal(h),this},setWorldMatrix:function(t,e,i,s,n){return this.yawPitchRoll(t.y,t.x,t.z),a.scaling(i.x,i.y,i.z),h.xyz(e.x,e.y,e.z),this.multiplyLocal(a),this.multiplyLocal(h),s&&this.multiplyLocal(s),n&&this.multiplyLocal(n),this},multiplyToMat4:function(t,e){var i=this.val,t=t.val,s=i[0],n=i[1],r=i[2],o=i[3],a=i[4],h=i[5],l=i[6],u=i[7],c=i[8],d=i[9],p=i[10],f=i[11],g=i[12],y=i[13],v=i[14],i=i[15],m=t[0],x=t[1],w=t[2],T=t[3],b=t[4],S=t[5],P=t[6],_=t[7],E=t[8],A=t[9],C=t[10],M=t[11],O=t[12],R=t[13],D=t[14],t=t[15];return e.setValues(m*s+x*a+w*c+T*g,x*n+x*h+w*d+T*y,w*r+x*l+w*p+T*v,T*o+x*u+w*f+T*i,b*s+S*a+P*c+_*g,b*n+S*h+P*d+_*y,b*r+S*l+P*p+_*v,b*o+S*u+P*f+_*i,E*s+A*a+C*c+M*g,E*n+A*h+C*d+M*y,E*r+A*l+C*p+M*v,E*o+A*u+C*f+M*i,O*s+R*a+D*c+t*g,O*n+R*h+D*d+t*y,O*r+R*l+D*p+t*v,O*o+R*u+D*f+t*i)},fromRotationXYTranslation:function(t,e,i){var s=e.x,n=e.y,e=e.z,r=Math.sin(t.x),o=Math.cos(t.x),a=Math.sin(t.y),t=Math.cos(t.y),h=s,l=n,u=e,c=-r,d=0-c*a,p=0-o*a,c=c*t,f=o*t;return i||(h=t*s+a*e,l=d*s+o*n+c*e,u=p*s+r*n+f*e),this.setValues(t,d,p,0,0,o,r,0,a,c,f,0,h,l,u,1)},getMaxScaleOnAxis:function(){var t=this.val,e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],i=t[4]*t[4]+t[5]*t[5]+t[6]*t[6],t=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(e,i,t))}}),a=new n,h=new n,r=new i,o=new i,l=new i;t.exports=n},69635:t=>{t.exports=function(t,e,i){return Math.min(t+e,i)}},37394:t=>{t.exports=function(t){var e=t.length;if(0===e)return 0;t.sort(function(t,e){return t-e});var i=Math.floor(e/2);return e%2==0?(t[i]+t[i-1])/2:t[i]}},17259:t=>{t.exports=function(t,e,i){return Math.max(t-e,i)}},61820:t=>{t.exports=function(t,e,i,s){e=(t-e)/((i=void 0===i?e+1:i)-e);return 1{var s=i(56694),n=i(5341),r=i(72283),i=i(70015),o=new Int8Array([1,2,0]),a=new Float32Array([0,0,0]),h=new i(1,0,0),l=new i(0,1,0),u=new i,c=new n,i=new s({initialize:function(t,e,i,s){this.onChangeCallback=r,this.set(t,e,i,s)},x:{get:function(){return this._x},set:function(t){this._x=t,this.onChangeCallback(this)}},y:{get:function(){return this._y},set:function(t){this._y=t,this.onChangeCallback(this)}},z:{get:function(){return this._z},set:function(t){this._z=t,this.onChangeCallback(this)}},w:{get:function(){return this._w},set:function(t){this._w=t,this.onChangeCallback(this)}},copy:function(t){return this.set(t)},set:function(t,e,i,s,n){return void 0===n&&(n=!0),"object"==typeof t?(this._x=t.x||0,this._y=t.y||0,this._z=t.z||0,this._w=t.w||0):(this._x=t||0,this._y=e||0,this._z=i||0,this._w=s||0),n&&this.onChangeCallback(this),this},add:function(t){return this._x+=t.x,this._y+=t.y,this._z+=t.z,this._w+=t.w,this.onChangeCallback(this),this},subtract:function(t){return this._x-=t.x,this._y-=t.y,this._z-=t.z,this._w-=t.w,this.onChangeCallback(this),this},scale:function(t){return this._x*=t,this._y*=t,this._z*=t,this._w*=t,this.onChangeCallback(this),this},length:function(){var t=this.x,e=this.y,i=this.z,s=this.w;return Math.sqrt(t*t+e*e+i*i+s*s)},lengthSq:function(){var t=this.x,e=this.y,i=this.z,s=this.w;return t*t+e*e+i*i+s*s},normalize:function(){var t=this.x,e=this.y,i=this.z,s=this.w,n=t*t+e*e+i*i+s*s;return 0t[n=0]&&(n=1),t[8]>t[3*n+n]&&(n=2),e=o[n],i=o[e],s=Math.sqrt(t[3*n+n]-t[3*e+e]-t[3*i+i]+1),a[n]=.5*s,a[e]=(t[3*e+n]+t[3*n+e])*(s=.5/s),a[i]=(t[3*i+n]+t[3*n+i])*s,this._x=a[0],this._y=a[1],this._z=a[2],this._w=(t[3*i+e]-t[3*e+i])*s),this.onChangeCallback(this),this}});t.exports=i},23701:(t,e,i)=>{var s=i(83392);t.exports=function(t){return t*s.RAD_TO_DEG}},16906:t=>{t.exports=function(t,e){void 0===e&&(e=1);var i=2*Math.random()*Math.PI;return t.x=Math.cos(i)*e,t.y=Math.sin(i)*e,t}},52417:t=>{t.exports=function(t,e){void 0===e&&(e=1);var i=2*Math.random()*Math.PI,s=2*Math.random()-1,n=Math.sqrt(1-s*s)*e;return t.x=Math.cos(i)*n,t.y=Math.sin(i)*n,t.z=s*e,t}},17915:t=>{t.exports=function(t,e){return void 0===e&&(e=1),t.x=(2*Math.random()-1)*e,t.y=(2*Math.random()-1)*e,t.z=(2*Math.random()-1)*e,t.w=(2*Math.random()-1)*e,t}},52257:t=>{t.exports=function(t,e){var i=t.x,s=t.y;return t.x=i*Math.cos(e)-s*Math.sin(e),t.y=i*Math.sin(e)+s*Math.cos(e),t}},2386:t=>{t.exports=function(t,e,i,s){var n=Math.cos(s),s=Math.sin(s),r=t.x-e,o=t.y-i;return t.x=r*n-o*s+e,t.y=r*s+o*n+i,t}},72395:t=>{t.exports=function(t,e,i,s,n){s+=Math.atan2(t.y-i,t.x-e);return t.x=e+n*Math.cos(s),t.y=i+n*Math.sin(s),t}},41061:t=>{t.exports=function(t,e,i,s,n){return t.x=e+n*Math.cos(s),t.y=i+n*Math.sin(s),t}},93709:(t,e,i)=>{var s=i(70015),n=i(16650),i=i(75003),r=new n,o=new i,a=new s;t.exports=function(t,e,i){return o.setAxisAngle(e,i),r.fromRotationTranslation(o,a.set(0,0,0)),t.transformMat4(r)}},67233:t=>{t.exports=function(t){return 0{t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=10);i=Math.pow(i,-e);return Math.round(t*i)/i}},59533:t=>{t.exports=function(t,e,i,s){void 0===e&&(e=1),void 0===i&&(i=1),void 0===s&&(s=1),s*=Math.PI/t;for(var n=[],r=[],o=0;o{t.exports=function(t,e,i){return t<=e?0:i<=t?1:(t=(t-e)/(i-e))*t*(3-2*t)}},87736:t=>{t.exports=function(t,e,i){return(t=Math.max(0,Math.min(1,(t-e)/(i-e))))*t*t*(t*(6*t-15)+10)}},55805:(t,e,i)=>{var o=i(93736);t.exports=function(t,e,i,s){void 0===s&&(s=new o);var n=0,r=0;return 0{var u=i(93736);t.exports=function(t,e,i,s,n,r,o,a){void 0===a&&(a=new u);var h=Math.sin(n),n=Math.cos(n),l=n*r,r=h*r,h=-h*o,n=n*o,o=1/(l*n+h*-r);return a.x=n*o*t+-h*o*e+(s*h-i*n)*o,a.y=l*o*e+-r*o*t+(-s*l+i*r)*o,a}},93736:(t,e,i)=>{var s=i(56694),n=i(88456),r=new s({initialize:function(t,e){this.x=0,this.y=0,"object"==typeof t?(this.x=t.x||0,this.y=t.y||0):(void 0===e&&(e=t),this.x=t||0,this.y=e||0)},clone:function(){return new r(this.x,this.y)},copy:function(t){return this.x=t.x||0,this.y=t.y||0,this},setFromObject:function(t){return this.x=t.x||0,this.y=t.y||0,this},set:function(t,e){return void 0===e&&(e=t),this.x=t,this.y=e,this},setTo:function(t,e){return this.set(t,e)},setToPolar:function(t,e){return null==e&&(e=1),this.x=Math.cos(t)*e,this.y=Math.sin(t)*e,this},equals:function(t){return this.x===t.x&&this.y===t.y},fuzzyEquals:function(t,e){return n(this.x,t.x,e)&&n(this.y,t.y,e)},angle:function(){var t=Math.atan2(this.y,this.x);return t<0&&(t+=2*Math.PI),t},setAngle:function(t){return this.setToPolar(t,this.length())},add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this},scale:function(t){return isFinite(t)?(this.x*=t,this.y*=t):(this.x=0,this.y=0),this},divide:function(t){return this.x/=t.x,this.y/=t.y,this},negate:function(){return this.x=-this.x,this.y=-this.y,this},distance:function(t){var e=t.x-this.x,t=t.y-this.y;return Math.sqrt(e*e+t*t)},distanceSq:function(t){var e=t.x-this.x,t=t.y-this.y;return e*e+t*t},length:function(){var t=this.x,e=this.y;return Math.sqrt(t*t+e*e)},setLength:function(t){return this.normalize().scale(t)},lengthSq:function(){var t=this.x,e=this.y;return t*t+e*e},normalize:function(){var t=this.x,e=this.y,i=t*t+e*e;return 0{var s=new(i(56694))({initialize:function(t,e,i){this.x=0,this.y=0,this.z=0,"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0):(this.x=t||0,this.y=e||0,this.z=i||0)},up:function(){return this.x=0,this.y=1,this.z=0,this},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this},clone:function(){return new s(this.x,this.y,this.z)},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this},crossVectors:function(t,e){var i=t.x,s=t.y,t=t.z,n=e.x,r=e.y,e=e.z;return this.x=s*e-t*r,this.y=t*n-i*e,this.z=i*r-s*n,this},equals:function(t){return this.x===t.x&&this.y===t.y&&this.z===t.z},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z||0,this},set:function(t,e,i){return"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0):(this.x=t||0,this.y=e||0,this.z=i||0),this},setFromMatrixPosition:function(t){return this.fromArray(t.val,12)},setFromMatrixColumn:function(t,e){return this.fromArray(t.val,4*e)},fromArray:function(t,e){return this.x=t[e=void 0===e?0:e],this.y=t[e+1],this.z=t[e+2],this},add:function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z||0,this},addScalar:function(t){return this.x+=t,this.y+=t,this.z+=t,this},addScale:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e||0,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z||0,this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this.z*=t.z||1,this},scale:function(t){return isFinite(t)?(this.x*=t,this.y*=t,this.z*=t):(this.x=0,this.y=0,this.z=0),this},divide:function(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z||1,this},negate:function(){return this.x=-this.x,this.y=-this.y,this.z=-this.z,this},distance:function(t){var e=t.x-this.x,i=t.y-this.y,t=t.z-this.z||0;return Math.sqrt(e*e+i*i+t*t)},distanceSq:function(t){var e=t.x-this.x,i=t.y-this.y,t=t.z-this.z||0;return e*e+i*i+t*t},length:function(){var t=this.x,e=this.y,i=this.z;return Math.sqrt(t*t+e*e+i*i)},lengthSq:function(){var t=this.x,e=this.y,i=this.z;return t*t+e*e+i*i},normalize:function(){var t=this.x,e=this.y,i=this.z,s=t*t+e*e+i*i;return 0{var s=new(i(56694))({initialize:function(t,e,i,s){this.x=0,this.y=0,this.z=0,this.w=0,"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=s||0)},clone:function(){return new s(this.x,this.y,this.z,this.w)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z||0,this.w=t.w||0,this},equals:function(t){return this.x===t.x&&this.y===t.y&&this.z===t.z&&this.w===t.w},set:function(t,e,i,s){return"object"==typeof t?(this.x=t.x||0,this.y=t.y||0,this.z=t.z||0,this.w=t.w||0):(this.x=t||0,this.y=e||0,this.z=i||0,this.w=s||0),this},add:function(t){return this.x+=t.x,this.y+=t.y,this.z+=t.z||0,this.w+=t.w||0,this},subtract:function(t){return this.x-=t.x,this.y-=t.y,this.z-=t.z||0,this.w-=t.w||0,this},scale:function(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this},length:function(){var t=this.x,e=this.y,i=this.z,s=this.w;return Math.sqrt(t*t+e*e+i*i+s*s)},lengthSq:function(){var t=this.x,e=this.y,i=this.z,s=this.w;return t*t+e*e+i*i+s*s},normalize:function(){var t=this.x,e=this.y,i=this.z,s=this.w,n=t*t+e*e+i*i+s*s;return 0{t.exports=function(t,e,i){return Math.abs(t-e)<=i}},1071:t=>{t.exports=function(t,e,i){return e<=t&&t<=i?t:e+((t-e)%(t=i-e)+t)%t}},90447:t=>{t.exports=function(t,e,i,s){return Math.atan2(s-e,i-t)}},94240:t=>{t.exports=function(t,e){return Math.atan2(e.y-t.y,e.x-t.x)}},84066:t=>{t.exports=function(t,e){return Math.atan2(e.x-t.x,e.y-t.y)}},9678:t=>{t.exports=function(t,e,i,s){return Math.atan2(i-t,s-e)}},76861:(t,e,i)=>{var s=i(83392);t.exports=function(t){return t>Math.PI&&(t-=s.PI2),Math.abs(((t+s.TAU)%s.PI2-s.PI2)%s.PI2)}},37570:t=>{t.exports=function(t){return 0<=(t%=2*Math.PI)?t:t+2*Math.PI}},87597:(t,e,i)=>{var s=i(61616);t.exports=function(){return s(-Math.PI,Math.PI)}},74493:(t,e,i)=>{var s=i(61616);t.exports=function(){return s(-180,180)}},19049:(t,e,i)=>{var s=i(37570);t.exports=function(t){return s(t+Math.PI)}},90612:(t,e,i)=>{var s=i(83392);t.exports=function(t,e,i){return void 0===i&&(i=.05),t!==e&&(Math.abs(e-t)<=i||Math.abs(e-t)>=s.PI2-i?t=e:(Math.abs(e-t)>Math.PI&&(e{t.exports=function(t,e){e-=t;return 0==e?0:e-360*Math.floor((e+180)/360)}},35786:(t,e,i)=>{var s=i(1071);t.exports=function(t){return s(t,-Math.PI,Math.PI)}},62138:(t,e,i)=>{var s=i(1071);t.exports=function(t){return s(t,-180,180)}},22153:(t,e,i)=>{t.exports={Between:i(90447),BetweenPoints:i(94240),BetweenPointsY:i(84066),BetweenY:i(9678),CounterClockwise:i(76861),Normalize:i(37570),Random:i(87597),RandomDegrees:i(74493),Reverse:i(19049),RotateTo:i(90612),ShortestBetween:i(93954),Wrap:i(35786),WrapDegrees:i(62138)}},83392:t=>{var e={PI2:2*Math.PI,TAU:.5*Math.PI,EPSILON:1e-6,DEG_TO_RAD:Math.PI/180,RAD_TO_DEG:180/Math.PI,RND:null,MIN_SAFE_INTEGER:Number.MIN_SAFE_INTEGER||-9007199254740991,MAX_SAFE_INTEGER:Number.MAX_SAFE_INTEGER||9007199254740991};t.exports=e},53996:t=>{t.exports=function(t,e,i,s){t-=i,i=e-s;return Math.sqrt(t*t+i*i)}},92951:t=>{t.exports=function(t,e){var i=t.x-e.x,t=t.y-e.y;return Math.sqrt(i*i+t*t)}},12161:t=>{t.exports=function(t,e){var i=t.x-e.x,t=t.y-e.y;return i*i+t*t}},38057:t=>{t.exports=function(t,e,i,s){return Math.max(Math.abs(t-i),Math.abs(e-s))}},33297:t=>{t.exports=function(t,e,i,s,n){return void 0===n&&(n=2),Math.sqrt(Math.pow(i-t,n)+Math.pow(s-e,n))}},90366:t=>{t.exports=function(t,e,i,s){return Math.abs(t-i)+Math.abs(e-s)}},35032:t=>{t.exports=function(t,e,i,s){t-=i,i=e-s;return t*t+i*i}},10130:(t,e,i)=>{t.exports={Between:i(53996),BetweenPoints:i(92951),BetweenPointsSquared:i(12161),Chebyshev:i(38057),Power:i(33297),Snake:i(90366),Squared:i(35032)}},35060:(t,e,i)=>{var s=i(25265),n=i(57428),r=i(73214),o=i(71778),a=i(36468),h=i(88258),l=i(52910),u=i(67799),c=i(74083),d=i(92284),p=i(28035),i=i(8754);t.exports={Power0:l,Power1:u.Out,Power2:o.Out,Power3:c.Out,Power4:d.Out,Linear:l,Quad:u.Out,Cubic:o.Out,Quart:c.Out,Quint:d.Out,Sine:p.Out,Expo:h.Out,Circ:r.Out,Elastic:a.Out,Back:s.Out,Bounce:n.Out,Stepped:i,"Quad.easeIn":u.In,"Cubic.easeIn":o.In,"Quart.easeIn":c.In,"Quint.easeIn":d.In,"Sine.easeIn":p.In,"Expo.easeIn":h.In,"Circ.easeIn":r.In,"Elastic.easeIn":a.In,"Back.easeIn":s.In,"Bounce.easeIn":n.In,"Quad.easeOut":u.Out,"Cubic.easeOut":o.Out,"Quart.easeOut":c.Out,"Quint.easeOut":d.Out,"Sine.easeOut":p.Out,"Expo.easeOut":h.Out,"Circ.easeOut":r.Out,"Elastic.easeOut":a.Out,"Back.easeOut":s.Out,"Bounce.easeOut":n.Out,"Quad.easeInOut":u.InOut,"Cubic.easeInOut":o.InOut,"Quart.easeInOut":c.InOut,"Quint.easeInOut":d.InOut,"Sine.easeInOut":p.InOut,"Expo.easeInOut":h.InOut,"Circ.easeInOut":r.InOut,"Elastic.easeInOut":a.InOut,"Back.easeInOut":s.InOut,"Bounce.easeInOut":n.InOut}},25860:t=>{t.exports=function(t,e){return t*t*(((e=void 0===e?1.70158:e)+1)*t-e)}},45264:t=>{t.exports=function(t,e){e=1.525*(e=void 0===e?1.70158:e);return(t*=2)<1?t*t*((1+e)*t-e)*.5:.5*((t-=2)*t*((1+e)*t+e)+2)}},36699:t=>{t.exports=function(t,e){return--t*t*(((e=void 0===e?1.70158:e)+1)*t+e)+1}},25265:(t,e,i)=>{t.exports={In:i(25860),Out:i(36699),InOut:i(45264)}},62191:t=>{t.exports=function(t){return(t=1-t)<1/2.75?1-7.5625*t*t:t<2/2.75?1-(7.5625*(t-=1.5/2.75)*t+.75):t<2.5/2.75?1-(7.5625*(t-=2.25/2.75)*t+.9375):1-(7.5625*(t-=2.625/2.75)*t+.984375)}},24799:t=>{t.exports=function(t){var e=!1;return t<.5?(t=1-2*t,e=!0):t=2*t-1,t<1/2.75?t*=7.5625*t:t=t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375,e?.5*(1-t):.5*t+.5}},60819:t=>{t.exports=function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375}},57428:(t,e,i)=>{t.exports={In:i(62191),Out:i(60819),InOut:i(24799)}},86855:t=>{t.exports=function(t){return 1-Math.sqrt(1-t*t)}},7280:t=>{t.exports=function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}},18058:t=>{t.exports=function(t){return Math.sqrt(1- --t*t)}},73214:(t,e,i)=>{t.exports={In:i(86855),Out:i(18058),InOut:i(7280)}},91532:t=>{t.exports=function(t){return t*t*t}},63180:t=>{t.exports=function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)}},16518:t=>{t.exports=function(t){return--t*t*t+1}},71778:(t,e,i)=>{t.exports={In:i(91532),Out:i(16518),InOut:i(63180)}},24729:t=>{t.exports=function(t,e,i){var s;return void 0===e&&(e=.1),void 0===i&&(i=.1),0===t?0:1===t?1:(s=i/4,e<1?e=1:s=i*Math.asin(1/e)/(2*Math.PI),-e*Math.pow(2,10*--t)*Math.sin((t-s)*(2*Math.PI)/i))}},50325:t=>{t.exports=function(t,e,i){var s;return void 0===e&&(e=.1),void 0===i&&(i=.1),0===t?0:1===t?1:(s=i/4,e<1?e=1:s=i*Math.asin(1/e)/(2*Math.PI),(t*=2)<1?e*Math.pow(2,10*--t)*Math.sin((t-s)*(2*Math.PI)/i)*-.5:e*Math.pow(2,-10*--t)*Math.sin((t-s)*(2*Math.PI)/i)*.5+1)}},84074:t=>{t.exports=function(t,e,i){var s;return void 0===e&&(e=.1),void 0===i&&(i=.1),0===t?0:1===t?1:(s=i/4,e<1?e=1:s=i*Math.asin(1/e)/(2*Math.PI),e*Math.pow(2,-10*t)*Math.sin((t-s)*(2*Math.PI)/i)+1)}},36468:(t,e,i)=>{t.exports={In:i(24729),Out:i(84074),InOut:i(50325)}},95638:t=>{t.exports=function(t){return Math.pow(2,10*(t-1))-.001}},10357:t=>{t.exports=function(t){return(t*=2)<1?.5*Math.pow(2,10*(t-1)):.5*(2-Math.pow(2,-10*(t-1)))}},14894:t=>{t.exports=function(t){return 1-Math.pow(2,-10*t)}},88258:(t,e,i)=>{t.exports={In:i(95638),Out:i(14894),InOut:i(10357)}},33063:(t,e,i)=>{t.exports={Back:i(25265),Bounce:i(57428),Circular:i(73214),Cubic:i(71778),Elastic:i(36468),Expo:i(88258),Linear:i(52910),Quadratic:i(67799),Quartic:i(74083),Quintic:i(92284),Sine:i(28035),Stepped:i(8754)}},43927:t=>{t.exports=function(t){return t}},52910:(t,e,i)=>{t.exports=i(43927)},77471:t=>{t.exports=function(t){return t*t}},83863:t=>{t.exports=function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)}},44383:t=>{t.exports=function(t){return t*(2-t)}},67799:(t,e,i)=>{t.exports={In:i(77471),Out:i(44383),InOut:i(83863)}},48311:t=>{t.exports=function(t){return t*t*t*t}},55248:t=>{t.exports=function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)}},23135:t=>{t.exports=function(t){return 1- --t*t*t*t}},74083:(t,e,i)=>{t.exports={In:i(48311),Out:i(23135),InOut:i(55248)}},7313:t=>{t.exports=function(t){return t*t*t*t*t}},98759:t=>{t.exports=function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)}},26670:t=>{t.exports=function(t){return--t*t*t*t*t+1}},92284:(t,e,i)=>{t.exports={In:i(7313),Out:i(26670),InOut:i(98759)}},52929:t=>{t.exports=function(t){return 0===t?0:1===t?1:1-Math.cos(t*Math.PI/2)}},66333:t=>{t.exports=function(t){return 0===t?0:1===t?1:.5*(1-Math.cos(Math.PI*t))}},37255:t=>{t.exports=function(t){return 0===t?0:1===t?1:Math.sin(t*Math.PI/2)}},28035:(t,e,i)=>{t.exports={In:i(52929),Out:i(37255),InOut:i(66333)}},52770:t=>{t.exports=function(t,e){return void 0===e&&(e=1),t<=0?0:1<=t?1:1/e*(1+(e*t|0))}},8754:(t,e,i)=>{t.exports=i(52770)},17247:t=>{t.exports=function(t,e){return void 0===e&&(e=1e-4),Math.ceil(t-e)}},88456:t=>{t.exports=function(t,e,i){return void 0===i&&(i=1e-4),Math.abs(t-e){t.exports=function(t,e){return void 0===e&&(e=1e-4),Math.floor(t+e)}},41935:t=>{t.exports=function(t,e,i){return e-(i=void 0===i?1e-4:i){t.exports=function(t,e,i){return t{t.exports={Ceil:i(17247),Equal:i(88456),Floor:i(61824),GreaterThan:i(41935),LessThan:i(54726)}},5923:(t,e,i)=>{var s=i(83392),i=i(98611)(!1,{Angle:i(22153),Distance:i(10130),Easing:i(33063),Fuzzy:i(52778),Interpolation:i(48528),Pow2:i(73773),Snap:i(23679),RandomDataGenerator:i(81429),Average:i(26042),Bernstein:i(22824),Between:i(17489),CatmullRom:i(14976),CeilTo:i(89129),Clamp:i(82897),DegToRad:i(75606),Difference:i(767),Euler:i(9849),Factorial:i(8034),FloatBetween:i(61616),FloorTo:i(60679),FromPercent:i(91806),GetSpeed:i(79366),IsEven:i(43776),IsEvenStrict:i(58442),Linear:i(42798),LinearXY:i(61072),MaxAdd:i(69635),Median:i(37394),MinSub:i(17259),Percent:i(61820),RadToDeg:i(23701),RandomXY:i(16906),RandomXYZ:i(52417),RandomXYZW:i(17915),Rotate:i(52257),RotateAround:i(2386),RotateAroundDistance:i(72395),RotateTo:i(41061),RoundAwayFromZero:i(67233),RoundTo:i(64333),SinCosTableGenerator:i(59533),SmootherStep:i(87736),SmoothStep:i(5514),ToXY:i(55805),TransformXY:i(64462),Within:i(9557),Wrap:i(1071),Vector2:i(93736),Vector3:i(70015),Vector4:i(51729),Matrix3:i(5341),Matrix4:i(16650),Quaternion:i(75003),RotateVec3:i(93709)},s);t.exports=i},63210:(t,e,i)=>{var r=i(22824);t.exports=function(t,e){for(var i=0,s=t.length-1,n=0;n<=s;n++)i+=Math.pow(1-e,s-n)*Math.pow(e,n)*t[n]*r(s,n);return i}},88332:(t,e,i)=>{var r=i(14976);t.exports=function(t,e){var i=t.length-1,s=i*e,n=Math.floor(s);return t[0]===t[i]?(e<0&&(n=Math.floor(s=i*(1+e))),r(s-n,t[(n-1+i)%i],t[n],t[(n+1)%i],t[(n+2)%i])):e<0?t[0]-(r(-s,t[0],t[0],t[1],t[1])-t[0]):1{t.exports=function(t,e,i,s,n){return(r=1-t)*r*r*e+3*(r=1-t)*r*t*i+3*(1-t)*t*t*s+t*t*t*n;var r}},47614:(t,e,i)=>{var r=i(42798);t.exports=function(t,e){var i=t.length-1,s=i*e,n=Math.floor(s);return e<0?r(t[0],t[1],s):1{t.exports=function(t,e,i,s){return(n=1-t)*n*e+2*(1-t)*t*i+t*t*s;var n}},44521:(t,e,i)=>{var s=i(5514);t.exports=function(t,e,i){return e+(i-e)*s(t,0,1)}},45507:(t,e,i)=>{var s=i(87736);t.exports=function(t,e,i){return e+(i-e)*s(t,0,1)}},48528:(t,e,i)=>{t.exports={Bezier:i(63210),CatmullRom:i(88332),CubicBezier:i(34631),Linear:i(47614),QuadraticBezier:i(16252),SmoothStep:i(44521),SmootherStep:i(45507)}},3504:t=>{t.exports=function(t){t=Math.log(t)/.6931471805599453;return 1<{t.exports=function(t,e){return 0{t.exports=function(t){return 0{t.exports={GetNext:i(3504),IsSize:i(28621),IsValue:i(2018)}},81429:(t,e,i)=>{i=new(i(56694))({initialize:function(t){void 0===t&&(t=[(Date.now()*Math.random()).toString()]),this.c=1,this.s0=0,this.s1=0,this.s2=0,this.n=0,this.signs=[-1,1],t&&this.init(t)},rnd:function(){var t=2091639*this.s0+2.3283064365386963e-10*this.c;return this.c=0|t,this.s0=this.s1,this.s1=this.s2,this.s2=t-this.c,this.s2},hash:function(t){var e,i=this.n;t=t.toString();for(var s=0;s>>0))*i)>>>0,i+=4294967296*(e-=i);return 2.3283064365386963e-10*((this.n=i)>>>0)},init:function(t){"string"==typeof t?this.state(t):this.sow(t)},sow:function(t){if(this.n=4022871197,this.s0=this.hash(" "),this.s1=this.hash(" "),this.s2=this.hash(" "),this.c=1,t)for(var e=0;e{t.exports=function(t,e,i,s){return void 0===i&&(i=0),0===e?t:(t-=i,t=e*Math.ceil(t/e),s?(i+t)/e:i+t)}},84314:t=>{t.exports=function(t,e,i,s){return void 0===i&&(i=0),0===e?t:(t-=i,t=e*Math.floor(t/e),s?(i+t)/e:i+t)}},88462:t=>{t.exports=function(t,e,i,s){return void 0===i&&(i=0),0===e?t:(t-=i,t=e*Math.round(t/e),s?(i+t)/e:i+t)}},23679:(t,e,i)=>{t.exports={Ceil:i(82127),Floor:i(84314),To:i(88462)}},92491:(t,e,i)=>{i(75205);var s=i(86459),n=i(98611),r={Actions:i(83979),Animations:i(13517),BlendModes:i(95723),Cache:i(45820),Cameras:i(44143),Core:i(80293),Class:i(56694),Create:i(84106),Curves:i(73962),Data:i(1999),Display:i(24816),DOM:i(3590),Events:i(95146),FX:i(96910),Game:i(15213),GameObjects:i(48013),Geom:i(84068),Input:i(20873),Loader:i(95695),Math:i(5923),Physics:i(53954),Plugins:i(45615),Renderer:i(42069),Scale:i(86754),ScaleModes:i(27394),Scene:i(87157),Scenes:i(20436),Structs:i(20010),Textures:i(87499),Tilemaps:i(52678),Time:i(97121),Tweens:i(75193),Utils:i(22178)};r.Sound=i(56751),r=n(!1,r,s),t.exports=r,i.g.Phaser=r},62832:(t,e,i)=>{var s=i(56694),n=i(7864),r=i(1539),i=new s({Extends:r,Mixins:[n.Acceleration,n.Angular,n.Bounce,n.Debug,n.Drag,n.Enable,n.Friction,n.Gravity,n.Immovable,n.Mass,n.Pushable,n.Size,n.Velocity],initialize:function(t,e,i,s,n){r.call(this,t,e,i,s,n),this.body=null}});t.exports=i},66150:(t,e,i)=>{var s=i(56694),n=i(75606),o=i(53996),u=i(35032),r=i(99523),a=i(72632),h=i(30657),l=i(2732),c=i(15147),d=i(91963),p=i(7599),f=i(93736),g=i(85233),i=new s({initialize:function(t){this.scene=t,this.systems=t.sys,this.config=this.getConfig(),this.world,this.add,t.sys.events.once(p.BOOT,this.boot,this),t.sys.events.on(p.START,this.start,this)},boot:function(){this.world=new g(this.scene,this.config),this.add=new r(this.world),this.systems.events.once(p.DESTROY,this.destroy,this)},start:function(){this.world||(this.world=new g(this.scene,this.config),this.add=new r(this.world));var t=this.systems.events;a(this.config,"customUpdate",!1)||t.on(p.UPDATE,this.world.update,this.world),t.on(p.POST_UPDATE,this.world.postUpdate,this.world),t.once(p.SHUTDOWN,this.shutdown,this)},enableUpdate:function(){this.systems.events.on(p.UPDATE,this.world.update,this.world)},disableUpdate:function(){this.systems.events.off(p.UPDATE,this.world.update,this.world)},getConfig:function(){var t=this.systems.game.config.physics,e=this.systems.settings.physics;return h(a(e,"arcade",{}),a(t,"arcade",{}))},overlap:function(t,e,i,s,n){return void 0===i&&(i=null),void 0===n&&(n=i),this.world.collideObjects(t,e,i,s=void 0===s?null:s,n,!0)},collide:function(t,e,i,s,n){return void 0===i&&(i=null),void 0===n&&(n=i),this.world.collideObjects(t,e,i,s=void 0===s?null:s,n,!1)},collideTiles:function(t,e,i,s,n){return this.world.collideTiles(t,e,i,s,n)},overlapTiles:function(t,e,i,s,n){return this.world.overlapTiles(t,e,i,s,n)},pause:function(){return this.world.pause()},resume:function(){return this.world.resume()},accelerateTo:function(t,e,i,s,n,r){void 0===s&&(s=60);i=Math.atan2(i-t.y,e-t.x);return t.body.acceleration.setToPolar(i,s),void 0!==n&&void 0!==r&&t.body.maxVelocity.set(n,r),i},accelerateToObject:function(t,e,i,s,n){return this.accelerateTo(t,e.x,e.y,i,s,n)},closest:function(t,e){e=e||this.world.bodies.entries;for(var i=Number.MAX_VALUE,s=null,n=t.x,r=t.y,o=e.length,a=0;a{var s=i(56694),n=i(7864),r=i(13747),i=new s({Extends:r,Mixins:[n.Acceleration,n.Angular,n.Bounce,n.Debug,n.Drag,n.Enable,n.Friction,n.Gravity,n.Immovable,n.Mass,n.Pushable,n.Size,n.Velocity],initialize:function(t,e,i,s,n){r.call(this,t,e,i,s,n),this.body=null}});t.exports=i},97602:(t,e,i)=>{var s=i(56694),r=i(47401),n=i(27037),o=i(23701),a=i(74118),h=i(94287),l=i(93736),i=new s({initialize:function(t,e){var i=64,s=64,n=void 0!==e;n&&e.displayWidth&&(i=e.displayWidth,s=e.displayHeight),n||(e={x:0,y:0,angle:0,rotation:0,scaleX:1,scaleY:1,displayOriginX:0,displayOriginY:0}),this.world=t,this.gameObject=n?e:void 0,this.isBody=!0,this.transform={x:e.x,y:e.y,rotation:e.angle,scaleX:e.scaleX,scaleY:e.scaleY,displayOriginX:e.displayOriginX,displayOriginY:e.displayOriginY},this.debugShowBody=t.defaults.debugShowBody,this.debugShowVelocity=t.defaults.debugShowVelocity,this.debugBodyColor=t.defaults.bodyDebugColor,this.enable=!0,this.isCircle=!1,this.radius=0,this.offset=new l,this.position=new l(e.x-e.scaleX*e.displayOriginX,e.y-e.scaleY*e.displayOriginY),this.prev=this.position.clone(),this.prevFrame=this.position.clone(),this.allowRotation=!0,this.rotation=e.angle,this.preRotation=e.angle,this.width=i,this.height=s,this.sourceWidth=i,this.sourceHeight=s,e.frame&&(this.sourceWidth=e.frame.realWidth,this.sourceHeight=e.frame.realHeight),this.halfWidth=Math.abs(i/2),this.halfHeight=Math.abs(s/2),this.center=new l(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.velocity=new l,this.newVelocity=new l,this.deltaMax=new l,this.acceleration=new l,this.allowDrag=!0,this.drag=new l,this.allowGravity=!0,this.gravity=new l,this.bounce=new l,this.worldBounce=null,this.customBoundsRectangle=t.bounds,this.onWorldBounds=!1,this.onCollide=!1,this.onOverlap=!1,this.maxVelocity=new l(1e4,1e4),this.maxSpeed=-1,this.friction=new l(1,0),this.useDamping=!1,this.angularVelocity=0,this.angularAcceleration=0,this.angularDrag=0,this.maxAngular=1e3,this.mass=1,this.angle=0,this.speed=0,this.facing=r.FACING_NONE,this.immovable=!1,this.pushable=!0,this.moves=!0,this.customSeparateX=!1,this.customSeparateY=!1,this.overlapX=0,this.overlapY=0,this.overlapR=0,this.embedded=!1,this.collideWorldBounds=!1,this.checkCollision={none:!1,up:!0,down:!0,left:!0,right:!0},this.touching={none:!0,up:!1,down:!1,left:!1,right:!1},this.wasTouching={none:!0,up:!1,down:!1,left:!1,right:!1},this.blocked={none:!0,up:!1,down:!1,left:!1,right:!1},this.syncBounds=!1,this.physicsType=r.DYNAMIC_BODY,this._sx=e.scaleX,this._sy=e.scaleY,this._dx=0,this._dy=0,this._tx=0,this._ty=0,this._bounds=new a},updateBounds:function(){var t=this.gameObject,e=this.transform,i=(t.parentContainer?(i=t.getWorldTransformMatrix(this.world._tempMatrix,this.world._tempMatrix2),e.x=i.tx,e.y=i.ty,e.rotation=o(i.rotation),e.scaleX=i.scaleX,e.scaleY=i.scaleY):(e.x=t.x,e.y=t.y,e.rotation=t.angle,e.scaleX=t.scaleX,e.scaleY=t.scaleY),e.displayOriginX=t.displayOriginX,e.displayOriginY=t.displayOriginY,!1);this.syncBounds?(t=t.getBounds(this._bounds),this.width=t.width,this.height=t.height,i=!0):(t=Math.abs(e.scaleX),e=Math.abs(e.scaleY),this._sx===t&&this._sy===e||(this.width=this.sourceWidth*t,this.height=this.sourceHeight*e,this._sx=t,this._sy=e,i=!0)),i&&(this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.updateCenter())},updateCenter:function(){this.center.set(this.position.x+this.halfWidth,this.position.y+this.halfHeight)},updateFromGameObject:function(){this.updateBounds();var t=this.transform;this.position.x=t.x+t.scaleX*(this.offset.x-t.displayOriginX),this.position.y=t.y+t.scaleY*(this.offset.y-t.displayOriginY),this.updateCenter()},resetFlags:function(t){var e=this.wasTouching,i=this.touching,s=this.blocked;(t=void 0===t?!1:t)?(e.none=!0,e.up=!1,e.down=!1,e.left=!1,e.right=!1):(e.none=i.none,e.up=i.up,e.down=i.down,e.left=i.left,e.right=i.right),i.none=!0,i.up=!1,i.down=!1,i.left=!1,i.right=!1,s.none=!0,s.up=!1,s.down=!1,s.left=!1,s.right=!1,this.overlapR=0,this.overlapX=0,this.overlapY=0,this.embedded=!1},preUpdate:function(t,e){t&&this.resetFlags(),this.gameObject&&this.updateFromGameObject(),this.rotation=this.transform.rotation,this.preRotation=this.rotation,this.moves&&(this.prev.x=this.position.x,this.prev.y=this.position.y,this.prevFrame.x=this.position.x,this.prevFrame.y=this.position.y),t&&this.update(e)},update:function(t){var e,i;this.prev.x=this.position.x,this.prev.y=this.position.y,this.moves&&(this.world.updateMotion(this,t),e=this.velocity.x,i=this.velocity.y,this.newVelocity.set(e*t,i*t),this.position.add(this.newVelocity),this.updateCenter(),this.angle=Math.atan2(i,e),this.speed=Math.sqrt(e*e+i*i),this.collideWorldBounds)&&this.checkWorldBounds()&&this.onWorldBounds&&this.world.emit(n.WORLD_BOUNDS,this,this.blocked.up,this.blocked.down,this.blocked.left,this.blocked.right),this._dx=this.position.x-this.prev.x,this._dy=this.position.y-this.prev.y},postUpdate:function(){var t,e=this.position.x-this.prevFrame.x,i=this.position.y-this.prevFrame.y,s=this.gameObject;this.moves&&(0!==(t=this.deltaMax.x)&&0!==e&&(e<0&&e<-t?e=-t:0e.right&&i.right&&(t.x=e.right-this.width,this.velocity.x*=s,r=this.blocked.right=!0),t.ye.bottom&&i.down&&(t.y=e.bottom-this.height,this.velocity.y*=n,r=this.blocked.down=!0),r&&(this.blocked.none=!1,this.updateCenter()),r},setOffset:function(t,e){return this.offset.set(t,e=void 0===e?t:e),this},setGameObject:function(t,e){return void 0===e&&(e=!0),this.world.remove(this),this.gameObject&&this.gameObject.body&&(this.gameObject.body=null),(this.gameObject=t).body&&(t.body=this),this.setSize(),this.world.add(this),this.enable=e,this},setSize:function(t,e,i){void 0===i&&(i=!0);var s=this.gameObject;return s&&(!t&&s.frame&&(t=s.frame.realWidth),!e)&&s.frame&&(e=s.frame.realHeight),this.sourceWidth=t,this.sourceHeight=e,this.width=this.sourceWidth*this._sx,this.height=this.sourceHeight*this._sy,this.halfWidth=Math.floor(this.width/2),this.halfHeight=Math.floor(this.height/2),this.updateCenter(),i&&s&&s.getCenter&&(i=(s.width-t)/2,t=(s.height-e)/2,this.offset.set(i,t)),this.isCircle=!1,this.radius=0,this},setCircle:function(t,e,i){return void 0===e&&(e=this.offset.x),void 0===i&&(i=this.offset.y),0=this.left&&t<=this.right&&e>=this.top&&e<=this.bottom&&(this.center.x-t)*(this.center.x-t)+(this.center.y-e)*(this.center.y-e)<=this.radius*this.radius:h(this,t,e)},onFloor:function(){return this.blocked.down},onCeiling:function(){return this.blocked.up},onWall:function(){return this.blocked.left||this.blocked.right},deltaAbsX:function(){return 0{i=new(i(56694))({initialize:function(t,e,i,s,n,r,o){this.world=t,this.name="",this.active=!0,this.overlapOnly=e,this.object1=i,this.object2=s,this.collideCallback=n,this.processCallback=r,this.callbackContext=o},setName:function(t){return this.name=t,this},update:function(){this.world.collideObjects(this.object1,this.object2,this.collideCallback,this.processCallback,this.callbackContext,this.overlapOnly)},destroy:function(){this.world.removeCollider(this),this.active=!1,this.world=null,this.object1=null,this.object2=null,this.collideCallback=null,this.processCallback=null,this.callbackContext=null}});t.exports=i},99523:(t,e,i)=>{var n=i(62832),r=i(25084),o=i(97602),s=i(56694),a=i(47401),h=i(10481),l=i(66634),u=i(46346),i=new s({initialize:function(t){this.world=t,this.scene=t.scene,this.sys=t.scene.sys},collider:function(t,e,i,s,n){return this.world.addCollider(t,e,i,s,n)},overlap:function(t,e,i,s,n){return this.world.addOverlap(t,e,i,s,n)},existing:function(t,e){e=e?a.STATIC_BODY:a.DYNAMIC_BODY;return this.world.enableBody(t,e),t},staticImage:function(t,e,i,s){t=new n(this.scene,t,e,i,s);return this.sys.displayList.add(t),this.world.enableBody(t,a.STATIC_BODY),t},image:function(t,e,i,s){t=new n(this.scene,t,e,i,s);return this.sys.displayList.add(t),this.world.enableBody(t,a.DYNAMIC_BODY),t},staticSprite:function(t,e,i,s){t=new r(this.scene,t,e,i,s);return this.sys.displayList.add(t),this.sys.updateList.add(t),this.world.enableBody(t,a.STATIC_BODY),t},sprite:function(t,e,i,s){t=new r(this.scene,t,e,i,s);return this.sys.displayList.add(t),this.sys.updateList.add(t),this.world.enableBody(t,a.DYNAMIC_BODY),t},staticGroup:function(t,e){return this.sys.updateList.add(new u(this.world,this.world.scene,t,e))},group:function(t,e){return this.sys.updateList.add(new h(this.world,this.world.scene,t,e))},body:function(t,e,i,s){var n=new o(this.world);return n.position.set(t,e),i&&s&&n.setSize(i,s),this.world.add(n,a.DYNAMIC_BODY),n},staticBody:function(t,e,i,s){var n=new l(this.world);return n.position.set(t,e),i&&s&&n.setSize(i,s),this.world.add(n,a.STATIC_BODY),n},destroy:function(){this.world=null,this.scene=null,this.sys=null}});t.exports=i},75671:(t,e,i)=>{var r=i(47401);t.exports=function(t,e,i,s){var n=0,s=t.deltaAbsX()+e.deltaAbsX()+s;return 0===t._dx&&0===e._dx?(t.embedded=!0,e.embedded=!0):t._dx>e._dx?(n=t.right-e.x)>s&&!i||!1===t.checkCollision.right||!1===e.checkCollision.left?n=0:(t.touching.none=!1,t.touching.right=!0,e.touching.none=!1,e.touching.left=!0,e.physicsType!==r.STATIC_BODY||i||(t.blocked.none=!1,t.blocked.right=!0),t.physicsType!==r.STATIC_BODY||i||(e.blocked.none=!1,e.blocked.left=!0)):t._dxs&&!i||!1===t.checkCollision.left||!1===e.checkCollision.right?n=0:(t.touching.none=!1,t.touching.left=!0,e.touching.none=!1,e.touching.right=!0,e.physicsType!==r.STATIC_BODY||i||(t.blocked.none=!1,t.blocked.left=!0),t.physicsType!==r.STATIC_BODY||i||(e.blocked.none=!1,e.blocked.right=!0))),t.overlapX=n,e.overlapX=n}},66185:(t,e,i)=>{var r=i(47401);t.exports=function(t,e,i,s){var n=0,s=t.deltaAbsY()+e.deltaAbsY()+s;return 0===t._dy&&0===e._dy?(t.embedded=!0,e.embedded=!0):t._dy>e._dy?(n=t.bottom-e.y)>s&&!i||!1===t.checkCollision.down||!1===e.checkCollision.up?n=0:(t.touching.none=!1,t.touching.down=!0,e.touching.none=!1,e.touching.up=!0,e.physicsType!==r.STATIC_BODY||i||(t.blocked.none=!1,t.blocked.down=!0),t.physicsType!==r.STATIC_BODY||i||(e.blocked.none=!1,e.blocked.up=!0)):t._dys&&!i||!1===t.checkCollision.up||!1===e.checkCollision.down?n=0:(t.touching.none=!1,t.touching.up=!0,e.touching.none=!1,e.touching.down=!0,e.physicsType!==r.STATIC_BODY||i||(t.blocked.none=!1,t.blocked.up=!0),t.physicsType!==r.STATIC_BODY||i||(e.blocked.none=!1,e.blocked.down=!0))),t.overlapY=n,e.overlapY=n}},10481:(t,e,i)=>{var r=i(25084),s=i(56694),o=i(47401),a=i(72632),h=i(59192),l=i(42911),i=new s({Extends:h,initialize:function(t,e,i,s){var n;i||s?l(i)?(s=i,i=null,s.internalCreateCallback=this.createCallbackHandler,s.internalRemoveCallback=this.removeCallbackHandler):Array.isArray(i)&&l(i[0])?(s=i[0],n=this,i.forEach(function(t){t.internalCreateCallback=n.createCallbackHandler,t.internalRemoveCallback=n.removeCallbackHandler}),i=null):s={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler}:s={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler},this.world=t,s.classType=a(s,"classType",r),this.physicsType=o.DYNAMIC_BODY,this.defaults={setCollideWorldBounds:a(s,"collideWorldBounds",!1),setBoundsRectangle:a(s,"customBoundsRectangle",null),setAccelerationX:a(s,"accelerationX",0),setAccelerationY:a(s,"accelerationY",0),setAllowDrag:a(s,"allowDrag",!0),setAllowGravity:a(s,"allowGravity",!0),setAllowRotation:a(s,"allowRotation",!0),setDamping:a(s,"useDamping",!1),setBounceX:a(s,"bounceX",0),setBounceY:a(s,"bounceY",0),setDragX:a(s,"dragX",0),setDragY:a(s,"dragY",0),setEnable:a(s,"enable",!0),setGravityX:a(s,"gravityX",0),setGravityY:a(s,"gravityY",0),setFrictionX:a(s,"frictionX",0),setFrictionY:a(s,"frictionY",0),setMaxSpeed:a(s,"maxSpeed",-1),setMaxVelocityX:a(s,"maxVelocityX",1e4),setMaxVelocityY:a(s,"maxVelocityY",1e4),setVelocityX:a(s,"velocityX",0),setVelocityY:a(s,"velocityY",0),setAngularVelocity:a(s,"angularVelocity",0),setAngularAcceleration:a(s,"angularAcceleration",0),setAngularDrag:a(s,"angularDrag",0),setMass:a(s,"mass",1),setImmovable:a(s,"immovable",!1)},h.call(this,e,i,s),this.type="PhysicsGroup"},createCallbackHandler:function(t){t.body||this.world.enableBody(t,o.DYNAMIC_BODY);var e,i=t.body;for(e in this.defaults)i[e](this.defaults[e])},removeCallbackHandler:function(t){t.body&&this.world.disableBody(t)},setVelocity:function(t,e,i){void 0===i&&(i=0);for(var s=this.getChildren(),n=0;n{function s(){return f&&x&&o.blocked.right?(r.processX(-T,c,!1,!0),1):p&&w&&o.blocked.left?(r.processX(T,c,!0),1):v&&w&&r.blocked.right?(o.processX(-T,d,!1,!0),2):y&&x&&r.blocked.left?(o.processX(T,d,!0),2):0}function n(t){var e;return a&&h?(T*=.5,0===t||3===t?(r.processX(T,l),o.processX(-T,u)):(r.processX(-T,l),o.processX(T,u))):a&&!h?0===t||3===t?r.processX(T,c,!0):r.processX(-T,c,!1,!0):!a&&h?0===t||3===t?o.processX(-T,d,!1,!0):o.processX(T,d,!0):(e=.5*T,0===t?m?(r.processX(T,0,!0),o.processX(0,null,!1,!0)):v?(r.processX(e,0,!0),o.processX(-e,0,!1,!0)):(r.processX(e,o.velocity.x,!0),o.processX(-e,null,!1,!0)):1===t?g?(r.processX(0,null,!1,!0),o.processX(T,0,!0)):f?(r.processX(-e,0,!1,!0),o.processX(e,0,!0)):(r.processX(-e,null,!1,!0),o.processX(e,r.velocity.x,!0)):2===t?m?(r.processX(-T,0,!1,!0),o.processX(0,null,!0)):y?(r.processX(-e,0,!1,!0),o.processX(e,0,!0)):(r.processX(-e,o.velocity.x,!1,!0),o.processX(e,null,!0)):3===t&&(g?(r.processX(0,null,!0),o.processX(-T,0,!1,!0)):p?(r.processX(e,0,!0),o.processX(-e,0,!1,!0)):(r.processX(e,o.velocity.y,!0),o.processX(-e,null,!1,!0)))),!0}var r,o,a,h,l,u,c,d,p,f,g,y,v,m,x,w,T;t.exports={BlockCheck:s,Check:function(){var t=r.velocity.x,e=o.velocity.x,e=Math.sqrt(e*e*o.mass/r.mass)*(0{function s(){return f&&x&&o.blocked.down?(r.processY(-T,c,!1,!0),1):p&&w&&o.blocked.up?(r.processY(T,c,!0),1):v&&w&&r.blocked.down?(o.processY(-T,d,!1,!0),2):y&&x&&r.blocked.up?(o.processY(T,d,!0),2):0}function n(t){var e;return a&&h?(T*=.5,0===t||3===t?(r.processY(T,l),o.processY(-T,u)):(r.processY(-T,l),o.processY(T,u))):a&&!h?0===t||3===t?r.processY(T,c,!0):r.processY(-T,c,!1,!0):!a&&h?0===t||3===t?o.processY(-T,d,!1,!0):o.processY(T,d,!0):(e=.5*T,0===t?m?(r.processY(T,0,!0),o.processY(0,null,!1,!0)):v?(r.processY(e,0,!0),o.processY(-e,0,!1,!0)):(r.processY(e,o.velocity.y,!0),o.processY(-e,null,!1,!0)):1===t?g?(r.processY(0,null,!1,!0),o.processY(T,0,!0)):f?(r.processY(-e,0,!1,!0),o.processY(e,0,!0)):(r.processY(-e,null,!1,!0),o.processY(e,r.velocity.y,!0)):2===t?m?(r.processY(-T,0,!1,!0),o.processY(0,null,!0)):y?(r.processY(-e,0,!1,!0),o.processY(e,0,!0)):(r.processY(-e,o.velocity.y,!1,!0),o.processY(e,null,!0)):3===t&&(g?(r.processY(0,null,!0),o.processY(-T,0,!1,!0)):p?(r.processY(e,0,!0),o.processY(-e,0,!1,!0)):(r.processY(e,o.velocity.y,!0),o.processY(-e,null,!1,!0)))),!0}var r,o,a,h,l,u,c,d,p,f,g,y,v,m,x,w,T;t.exports={BlockCheck:s,Check:function(){var t=r.velocity.y,e=o.velocity.y,e=Math.sqrt(e*e*o.mass/r.mass)*(0{var o=i(75671),a=i(22916);t.exports=function(t,e,i,s,n){void 0===n&&(n=o(t,e,i,s));var s=t.immovable,r=e.immovable;return i||0===n||s&&r||t.customSeparateX||e.customSeparateX?0!==n||t.embedded&&e.embedded:(i=a.Set(t,e,n),s||r?(s?a.RunImmovableBody1(i):r&&a.RunImmovableBody2(i),!0):0{var o=i(66185),a=i(67050);t.exports=function(t,e,i,s,n){void 0===n&&(n=o(t,e,i,s));var s=t.immovable,r=e.immovable;return i||0===n||s&&r||t.customSeparateY||e.customSeparateY?0!==n||t.embedded&&e.embedded:(i=a.Set(t,e,n),s||r?(s?a.RunImmovableBody1(i):r&&a.RunImmovableBody2(i),!0):0{var s=i(65650),n=i(56694),r=i(47401),o=i(94287),a=i(93736),i=new n({initialize:function(t,e){var i=64,s=64,n=void 0!==e;n&&e.displayWidth&&(i=e.displayWidth,s=e.displayHeight),n||(e={x:0,y:0,angle:0,rotation:0,scaleX:1,scaleY:1,displayOriginX:0,displayOriginY:0}),this.world=t,this.gameObject=n?e:void 0,this.isBody=!0,this.debugShowBody=t.defaults.debugShowStaticBody,this.debugBodyColor=t.defaults.staticBodyDebugColor,this.enable=!0,this.isCircle=!1,this.radius=0,this.offset=new a,this.position=new a(e.x-i*e.originX,e.y-s*e.originY),this.width=i,this.height=s,this.halfWidth=Math.abs(this.width/2),this.halfHeight=Math.abs(this.height/2),this.center=new a(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.velocity=a.ZERO,this.allowGravity=!1,this.gravity=a.ZERO,this.bounce=a.ZERO,this.onWorldBounds=!1,this.onCollide=!1,this.onOverlap=!1,this.mass=1,this.immovable=!0,this.pushable=!1,this.customSeparateX=!1,this.customSeparateY=!1,this.overlapX=0,this.overlapY=0,this.overlapR=0,this.embedded=!1,this.collideWorldBounds=!1,this.checkCollision={none:!1,up:!0,down:!0,left:!0,right:!0},this.touching={none:!0,up:!1,down:!1,left:!1,right:!1},this.wasTouching={none:!0,up:!1,down:!1,left:!1,right:!1},this.blocked={none:!0,up:!1,down:!1,left:!1,right:!1},this.physicsType=r.STATIC_BODY,this._dx=0,this._dy=0},setGameObject:function(t,e){return t&&t!==this.gameObject&&(this.gameObject.body=null,(t.body=this).gameObject=t),e&&this.updateFromGameObject(),this},updateFromGameObject:function(){this.world.staticTree.remove(this);var t=this.gameObject;return t.getTopLeft(this.position),this.width=t.displayWidth,this.height=t.displayHeight,this.halfWidth=Math.abs(this.width/2),this.halfHeight=Math.abs(this.height/2),this.center.set(this.position.x+this.halfWidth,this.position.y+this.halfHeight),this.world.staticTree.insert(this),this},setOffset:function(t,e){return void 0===e&&(e=t),this.world.staticTree.remove(this),this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(t,e),this.position.x+=this.offset.x,this.position.y+=this.offset.y,this.updateCenter(),this.world.staticTree.insert(this),this},setSize:function(t,e,i){void 0===i&&(i=!0);var s=this.gameObject;return!t&&s.frame&&(t=s.frame.realWidth),!e&&s.frame&&(e=s.frame.realHeight),this.world.staticTree.remove(this),this.width=t,this.height=e,this.halfWidth=Math.floor(t/2),this.halfHeight=Math.floor(e/2),i&&s.getCenter&&(t=s.displayWidth/2,e=s.displayHeight/2,this.position.x-=this.offset.x,this.position.y-=this.offset.y,this.offset.set(t-this.halfWidth,e-this.halfHeight),this.position.x+=this.offset.x,this.position.y+=this.offset.y),this.updateCenter(),this.isCircle=!1,this.radius=0,this.world.staticTree.insert(this),this},setCircle:function(t,e,i){return void 0===e&&(e=this.offset.x),void 0===i&&(i=this.offset.y),0{var n=i(25084),s=i(56694),r=i(47401),o=i(72632),a=i(59192),h=i(42911),i=new s({Extends:a,initialize:function(t,e,i,s){i||s?h(i)?(s=i,i=null,s.internalCreateCallback=this.createCallbackHandler,s.internalRemoveCallback=this.removeCallbackHandler,s.createMultipleCallback=this.createMultipleCallbackHandler,s.classType=o(s,"classType",n)):Array.isArray(i)&&h(i[0])?(s=i,i=null,s.forEach(function(t){t.internalCreateCallback=this.createCallbackHandler,t.internalRemoveCallback=this.removeCallbackHandler,t.createMultipleCallback=this.createMultipleCallbackHandler,t.classType=o(t,"classType",n)})):s={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler}:s={internalCreateCallback:this.createCallbackHandler,internalRemoveCallback:this.removeCallbackHandler,createMultipleCallback:this.createMultipleCallbackHandler,classType:n},this.world=t,this.physicsType=r.STATIC_BODY,a.call(this,e,i,s),this.type="StaticPhysicsGroup"},createCallbackHandler:function(t){t.body||this.world.enableBody(t,r.STATIC_BODY)},removeCallbackHandler:function(t){t.body&&this.world.disableBody(t)},createMultipleCallbackHandler:function(){this.refresh()},refresh:function(){for(var t=this.children.entries,e=0;e{var x=i(94240),s=i(97602),f=i(82897),n=i(56694),r=i(3909),g=i(47401),w=i(53996),T=i(92951),o=i(6659),y=i(27037),v=i(88456),m=i(41935),b=i(54726),S=i(75671),P=i(66185),d=i(44662),a=i(10850),_=i(83392),h=i(74623),E=i(25163),l=i(74118),u=i(68687),A=i(27354),c=i(61777),p=i(25299),C=i(58403),M=i(66634),O=i(28808),R=i(69360),D=i(93736),L=i(1071),i=new n({Extends:o,initialize:function(t,e){o.call(this),this.scene=t,this.bodies=new C,this.staticBodies=new C,this.pendingDestroy=new C,this.colliders=new h,this.gravity=new D(a(e,"gravity.x",0),a(e,"gravity.y",0)),this.bounds=new l(a(e,"x",0),a(e,"y",0),a(e,"width",t.sys.scale.width),a(e,"height",t.sys.scale.height)),this.checkCollision={up:a(e,"checkCollision.up",!0),down:a(e,"checkCollision.down",!0),left:a(e,"checkCollision.left",!0),right:a(e,"checkCollision.right",!0)},this.fps=a(e,"fps",60),this.fixedStep=a(e,"fixedStep",!0),this._elapsed=0,this._frameTime=1/this.fps,this._frameTimeMS=1e3*this._frameTime,this.stepsLastFrame=0,this.timeScale=a(e,"timeScale",1),this.OVERLAP_BIAS=a(e,"overlapBias",4),this.TILE_BIAS=a(e,"tileBias",16),this.forceX=a(e,"forceX",!1),this.isPaused=a(e,"isPaused",!1),this._total=0,this.drawDebug=a(e,"debug",!1),this.debugGraphic,this.defaults={debugShowBody:a(e,"debugShowBody",!0),debugShowStaticBody:a(e,"debugShowStaticBody",!0),debugShowVelocity:a(e,"debugShowVelocity",!0),bodyDebugColor:a(e,"debugBodyColor",16711935),staticBodyDebugColor:a(e,"debugStaticBodyColor",255),velocityDebugColor:a(e,"debugVelocityColor",65280)},this.maxEntries=a(e,"maxEntries",16),this.useTree=a(e,"useTree",!0),this.tree=new u(this.maxEntries),this.staticTree=new u(this.maxEntries),this.treeMinMax={minX:0,minY:0,maxX:0,maxY:0},this._tempMatrix=new R,this._tempMatrix2=new R,this.tileFilterOptions={isColliding:!0,isNotEmpty:!0,hasInterestingFace:!0},this.drawDebug&&this.createDebugGraphic()},enable:function(t,e){void 0===e&&(e=g.DYNAMIC_BODY),Array.isArray(t)||(t=[t]);for(var i=0;i=n;for(this.fixedStep||(s=.001*e,o=!0,this._elapsed=0),h=0;h=n;)this._elapsed-=n,this.step(s)}},step:function(t){for(var e,i=this.bodies.entries,s=i.length,n=0;nc&&(t.velocity.normalize().scale(c),u=c),t.speed=u},separate:function(t,e,i,s,n){var r,o,a=!1,h=!0;return!t.enable||!e.enable||t.checkCollision.none||e.checkCollision.none||!this.intersects(t,e)||i&&!1===i.call(s,t.gameObject,e.gameObject)||((h=t.isCircle||e.isCircle?(i=this.separateCircle(t,e,n)).result?!(a=!0):(r=i.x,o=i.y,!0):h)&&(i=s=!1,h=this.OVERLAP_BIAS,n?(s=c(t,e,n,h,r),i=p(t,e,n,h,o)):this.forceX||Math.abs(this.gravity.y+t.gravity.y)=e.right||t.top>=e.bottom))},circleBodyIntersects:function(t,e){var i=f(t.center.x,e.left,e.right),e=f(t.center.y,e.top,e.bottom);return(t.center.x-i)*(t.center.x-i)+(t.center.y-e)*(t.center.y-e)<=t.halfWidth*t.halfWidth},overlap:function(t,e,i,s,n){return void 0===i&&(i=null),void 0===n&&(n=i),this.collideObjects(t,e,i,s=void 0===s?null:s,n,!0)},collide:function(t,e,i,s,n){return void 0===i&&(i=null),void 0===n&&(n=i),this.collideObjects(t,e,i,s=void 0===s?null:s,n,!1)},collideObjects:function(t,e,i,s,n,r){!t.isParent||void 0!==t.physicsType&&void 0!==e&&t!==e||(t=t.children.entries),e&&e.isParent&&void 0===e.physicsType&&(e=e.children.entries);var o,a=Array.isArray(t),h=Array.isArray(e);if(this._total=0,a||h)if(!a&&h)for(o=0;ou.baseTileWidth&&(o-=l=(u.tileWidth-u.baseTileWidth)*e.scaleX,h+=l),u.tileHeight>u.baseTileHeight&&(c+=(u.tileHeight-u.baseTileHeight)*e.scaleY),l=r?null:this.tileFilterOptions,0!==(u=d(o,a,h,c,l,e.scene.cameras.main,e.layer)).length)&&this.collideSpriteVsTilesHandler(t,u,i,s,n,r,!0)},collideSpriteVsTilesHandler:function(t,e,i,s,n,r,o){for(var a,h,l=t.isBody?t:t.body,u={left:0,right:0,top:0,bottom:0},c=!1,d=0;d{t.exports={setAcceleration:function(t,e){return this.body.acceleration.set(t,e),this},setAccelerationX:function(t){return this.body.acceleration.x=t,this},setAccelerationY:function(t){return this.body.acceleration.y=t,this}}},29257:t=>{t.exports={setAngularVelocity:function(t){return this.body.angularVelocity=t,this},setAngularAcceleration:function(t){return this.body.angularAcceleration=t,this},setAngularDrag:function(t){return this.body.angularDrag=t,this}}},62122:t=>{t.exports={setBounce:function(t,e){return this.body.bounce.set(t,e),this},setBounceX:function(t){return this.body.bounce.x=t,this},setBounceY:function(t){return this.body.bounce.y=t,this},setCollideWorldBounds:function(t,e,i,s){return this.body.setCollideWorldBounds(t,e,i,s),this}}},99803:t=>{t.exports={setDebug:function(t,e,i){return this.debugShowBody=t,this.debugShowVelocity=e,this.debugBodyColor=i,this},setDebugBodyColor:function(t){return this.body.debugBodyColor=t,this},debugShowBody:{get:function(){return this.body.debugShowBody},set:function(t){this.body.debugShowBody=t}},debugShowVelocity:{get:function(){return this.body.debugShowVelocity},set:function(t){this.body.debugShowVelocity=t}},debugBodyColor:{get:function(){return this.body.debugBodyColor},set:function(t){this.body.debugBodyColor=t}}}},87145:t=>{t.exports={setDrag:function(t,e){return this.body.drag.set(t,e),this},setDragX:function(t){return this.body.drag.x=t,this},setDragY:function(t){return this.body.drag.y=t,this},setDamping:function(t){return this.body.useDamping=t,this}}},96174:t=>{t.exports={enableBody:function(t,e,i,s,n){return t&&this.body.reset(e,i),s&&(this.body.gameObject.active=!0),n&&(this.body.gameObject.visible=!0),this.body.enable=!0,this},disableBody:function(t,e){return void 0===t&&(t=!1),void 0===e&&(e=!1),this.body.stop(),this.body.enable=!1,t&&(this.body.gameObject.active=!1),e&&(this.body.gameObject.visible=!1),this},refreshBody:function(){return this.body.updateFromGameObject(),this}}},51702:t=>{t.exports={setFriction:function(t,e){return this.body.friction.set(t,e),this},setFrictionX:function(t){return this.body.friction.x=t,this},setFrictionY:function(t){return this.body.friction.y=t,this}}},25578:t=>{t.exports={setGravity:function(t,e){return this.body.gravity.set(t,e),this},setGravityX:function(t){return this.body.gravity.x=t,this},setGravityY:function(t){return this.body.gravity.y=t,this}}},72029:t=>{t.exports={setImmovable:function(t){return this.body.immovable=t=void 0===t?!0:t,this}}},34566:t=>{t.exports={setMass:function(t){return this.body.mass=t,this}}},2732:(t,e,i)=>{var d=i(15147),p=i(26673),f=i(22184),g=i(26535);t.exports=function(t,e,i,s,n,r){var o=d(t,e-s,i-s,2*s,2*s,n,r);if(0===o.length)return o;for(var a=new p(e,i,s),h=new p,l=[],u=0;u{t.exports=function(t,e,i,s,n,r,o){void 0===r&&(r=!0),void 0===o&&(o=!1);var a,h,l=[],u=[],c=t.treeMinMax;return c.minX=e,c.minY=i,c.maxX=e+s,c.maxY=i+n,o&&(u=t.staticTree.search(c)),r&&t.useTree?l=t.tree.search(c):r&&(o=t.bodies,a={position:{x:e,y:i},left:e,top:i,right:e+s,bottom:i+n,isCircle:!1},h=t.intersects,o.iterate(function(t){h(t,a)&&l.push(t)})),u.concat(l)}},57527:t=>{t.exports={setPushable:function(t){return this.body.pushable=t=void 0===t?!0:t,this}}},77687:t=>{t.exports={setOffset:function(t,e){return this.body.setOffset(t,e),this},setSize:function(t,e,i){return this.body.setSize(t,e,i),this},setBodySize:function(t,e,i){return this.body.setSize(t,e,i),this},setCircle:function(t,e,i){return this.body.setCircle(t,e,i),this}}},66536:t=>{t.exports={setVelocity:function(t,e){return this.body.setVelocity(t,e),this},setVelocityX:function(t){return this.body.setVelocityX(t),this},setVelocityY:function(t){return this.body.setVelocityY(t),this},setMaxVelocity:function(t,e){return this.body.maxVelocity.set(t,e),this}}},7864:(t,e,i)=>{t.exports={Acceleration:i(5321),Angular:i(29257),Bounce:i(62122),Debug:i(99803),Drag:i(87145),Enable:i(96174),Friction:i(51702),Gravity:i(25578),Immovable:i(72029),Mass:i(34566),OverlapCirc:i(2732),OverlapRect:i(15147),Pushable:i(57527),Size:i(77687),Velocity:i(66536)}},47401:t=>{t.exports={DYNAMIC_BODY:0,STATIC_BODY:1,GROUP:2,TILEMAPLAYER:3,FACING_NONE:10,FACING_UP:11,FACING_DOWN:12,FACING_LEFT:13,FACING_RIGHT:14}},22346:t=>{t.exports="collide"},95092:t=>{t.exports="overlap"},15775:t=>{t.exports="pause"},74142:t=>{t.exports="resume"},22825:t=>{t.exports="tilecollide"},10851:t=>{t.exports="tileoverlap"},7543:t=>{t.exports="worldbounds"},1487:t=>{t.exports="worldstep"},27037:(t,e,i)=>{t.exports={COLLIDE:i(22346),OVERLAP:i(95092),PAUSE:i(15775),RESUME:i(74142),TILE_COLLIDE:i(22825),TILE_OVERLAP:i(10851),WORLD_BOUNDS:i(7543),WORLD_STEP:i(1487)}},39977:(t,e,i)=>{var s=i(47401),i=i(98611)(!1,{ArcadePhysics:i(66150),Body:i(97602),Collider:i(3909),Components:i(7864),Events:i(27037),Factory:i(99523),GetOverlapX:i(75671),GetOverlapY:i(66185),SeparateX:i(61777),SeparateY:i(25299),Group:i(10481),Image:i(62832),Sprite:i(25084),StaticBody:i(66634),StaticGroup:i(46346),Tilemap:i(8413),World:i(85233)},s);t.exports=i},25163:t=>{t.exports=function(t,e){return t.collisionCallback?!t.collisionCallback.call(t.collisionCallbackContext,e,t):!t.layer.callbacks[t.index]||!t.layer.callbacks[t.index].callback.call(t.layer.callbacks[t.index].callbackContext,e,t)}},98209:t=>{t.exports=function(t,e){e<0?(t.blocked.none=!1,t.blocked.left=!0):0{t.exports=function(t,e){e<0?(t.blocked.none=!1,t.blocked.up=!0):0{var v=i(14405),m=i(52926),x=i(28808);t.exports=function(t,e,i,s,n,r,o){var a=s.left,h=s.top,l=s.right,u=s.bottom,c=i.faceLeft||i.faceRight,d=i.faceTop||i.faceBottom;if(o||(d=c=!0),!c&&!d)return!1;var p=0,f=0,g=0,y=1;if(e.deltaAbsX()>e.deltaAbsY()?g=-1:e.deltaAbsX(){var u=i(98209);t.exports=function(t,e,i,s,n,r){var o=0,a=e.faceLeft,h=e.faceRight,l=e.collideLeft,e=e.collideRight;return r||(e=l=h=a=!0),t.deltaX()<0&&e&&t.checkCollision.left?h&&t.xi&&(o=t.right-i)>n&&(o=0),0!==o&&(t.customSeparateX?t.overlapX=o:u(t,o)),o}},52926:(t,e,i)=>{var u=i(72792);t.exports=function(t,e,i,s,n,r){var o=0,a=e.faceTop,h=e.faceBottom,l=e.collideUp,e=e.collideDown;return r||(e=l=h=a=!0),t.deltaY()<0&&e&&t.checkCollision.up?h&&t.yi&&(o=t.bottom-i)>n&&(o=0),0!==o&&(t.customSeparateY?t.overlapY=o:u(t,o)),o}},28808:t=>{t.exports=function(t,e){return!(e.right<=t.left||e.bottom<=t.top||e.position.x>=t.right||e.position.y>=t.bottom)}},8413:(t,e,i)=>{i={ProcessTileCallbacks:i(25163),ProcessTileSeparationX:i(98209),ProcessTileSeparationY:i(72792),SeparateTile:i(27354),TileCheckX:i(14405),TileCheckY:i(52926),TileIntersectsBody:i(28808)};t.exports=i},53954:(t,e,i)=>{t.exports={Arcade:i(39977),Matter:i(45949)}},63568:(t,e,i)=>{var s=i(56694),n=i(93736),i=new s({initialize:function(){this.boundsCenter=new n,this.centerDiff=new n},parseBody:function(t){var e,i,s,n,r;return!(!(t=t.hasOwnProperty("body")?t.body:t).hasOwnProperty("bounds")||!t.hasOwnProperty("centerOfMass")||(e=this.boundsCenter,i=this.centerDiff,s=t.bounds.max.x-t.bounds.min.x,n=t.bounds.max.y-t.bounds.min.y,r=s*t.centerOfMass.x,t=n*t.centerOfMass.y,e.set(s/2,n/2),i.set(r-e.x,t-e.y),0))},getTopLeft:function(t,e,i){var s;return void 0===e&&(e=0),void 0===i&&(i=0),!!this.parseBody(t)&&(t=this.boundsCenter,s=this.centerDiff,new n(e+t.x+s.x,i+t.y+s.y))},getTopCenter:function(t,e,i){var s;return void 0===e&&(e=0),void 0===i&&(i=0),!!this.parseBody(t)&&(t=this.boundsCenter,s=this.centerDiff,new n(e+s.x,i+t.y+s.y))},getTopRight:function(t,e,i){var s;return void 0===e&&(e=0),void 0===i&&(i=0),!!this.parseBody(t)&&(t=this.boundsCenter,s=this.centerDiff,new n(e-(t.x-s.x),i+t.y+s.y))},getLeftCenter:function(t,e,i){var s;return void 0===e&&(e=0),void 0===i&&(i=0),!!this.parseBody(t)&&(t=this.boundsCenter,s=this.centerDiff,new n(e+t.x+s.x,i+s.y))},getCenter:function(t,e,i){return void 0===e&&(e=0),void 0===i&&(i=0),!!this.parseBody(t)&&(t=this.centerDiff,new n(e+t.x,i+t.y))},getRightCenter:function(t,e,i){var s;return void 0===e&&(e=0),void 0===i&&(i=0),!!this.parseBody(t)&&(t=this.boundsCenter,s=this.centerDiff,new n(e-(t.x-s.x),i+s.y))},getBottomLeft:function(t,e,i){var s;return void 0===e&&(e=0),void 0===i&&(i=0),!!this.parseBody(t)&&(t=this.boundsCenter,s=this.centerDiff,new n(e+t.x+s.x,i-(t.y-s.y)))},getBottomCenter:function(t,e,i){var s;return void 0===e&&(e=0),void 0===i&&(i=0),!!this.parseBody(t)&&(t=this.boundsCenter,s=this.centerDiff,new n(e+s.x,i-(t.y-s.y)))},getBottomRight:function(t,e,i){var s;return void 0===e&&(e=0),void 0===i&&(i=0),!!this.parseBody(t)&&(t=this.boundsCenter,s=this.centerDiff,new n(e-(t.x-s.x),i-(t.y-s.y)))}});t.exports=i},18171:(t,e,i)=>{var s=i(16929);s.Body=i(84125),s.Composite=i(11299),s.World=i(72005),s.Collision=i(63454),s.Detector=i(13657),s.Pairs=i(91327),s.Pair=i(70584),s.Query=i(13390),s.Resolver=i(44272),s.Constraint=i(52838),s.Common=i(68758),s.Engine=i(45775),s.Events=i(39073),s.Sleeping=i(22806),s.Plugin=i(84474),s.Bodies=i(68516),s.Composites=i(56643),s.Axes=i(50658),s.Bounds=i(84091),s.Svg=i(92765),s.Vector=i(10438),s.Vertices=i(39745),s.World.add=s.Composite.add,s.World.remove=s.Composite.remove,s.World.addComposite=s.Composite.addComposite,s.World.addBody=s.Composite.addBody,s.World.addConstraint=s.Composite.addConstraint,s.World.clear=s.Composite.clear,t.exports=s},72653:(t,e,i)=>{var u=i(68516),s=i(56694),c=i(56643),r=i(52838),d=i(92765),n=i(3860),p=i(7030),o=i(73658),a=i(84720),h=i(10998),l=i(72829),f=i(88596),g=i(39745),i=new s({initialize:function(t){this.world=t,this.scene=t.scene,this.sys=t.scene.sys},rectangle:function(t,e,i,s,n){t=u.rectangle(t,e,i,s,n);return this.world.add(t),t},trapezoid:function(t,e,i,s,n,r){t=u.trapezoid(t,e,i,s,n,r);return this.world.add(t),t},circle:function(t,e,i,s,n){t=u.circle(t,e,i,s,n);return this.world.add(t),t},polygon:function(t,e,i,s,n){t=u.polygon(t,e,i,s,n);return this.world.add(t),t},fromVertices:function(t,e,i,s,n,r,o){"string"==typeof i&&(i=g.fromPath(i));t=u.fromVertices(t,e,i,s,n,r,o);return this.world.add(t),t},fromPhysicsEditor:function(t,e,i,s,n){void 0===n&&(n=!0);t=h.parseBody(t,e,i,s);return n&&!this.world.has(t)&&this.world.add(t),t},fromSVG:function(t,e,i,s,n,r){void 0===s&&(s=1),void 0===n&&(n={}),void 0===r&&(r=!0);for(var o=i.getElementsByTagName("path"),a=[],h=0;h{var o=i(74527),a=i(72632),h=i(93736);t.exports=function(t,s,e,i){void 0===e&&(e={}),void 0===i&&(i=!0);var n=s.x,r=s.y;return s.body={temp:!0,position:{x:n,y:r}},[o.Bounce,o.Collision,o.Force,o.Friction,o.Gravity,o.Mass,o.Sensor,o.SetBody,o.Sleep,o.Static,o.Transform,o.Velocity].forEach(function(t){for(var e in t)(i=t[e]).get&&"function"==typeof i.get||i.set&&"function"==typeof i.set?Object.defineProperty(s,e,{get:t[e].get,set:t[e].set}):Object.defineProperty(s,e,{value:t[e]});var i}),s.world=t,s._tempVec2=new h(n,r),e.hasOwnProperty("type")&&"body"===e.type?s.setExistingBody(e,i):(t=(t=a(e,"shape",null))||"rectangle",e.addToWorld=i,s.setBody(t,e)),s}},7030:(t,e,i)=>{var s=i(56694),n=i(74527),o=i(89980),a=i(72632),r=i(1539),h=i(58210),l=i(93736),i=new s({Extends:r,Mixins:[n.Bounce,n.Collision,n.Force,n.Friction,n.Gravity,n.Mass,n.Sensor,n.SetBody,n.Sleep,n.Static,n.Transform,n.Velocity,h],initialize:function(t,e,i,s,n,r){o.call(this,t.scene,"Image"),this._crop=this.resetCropObject(),this.setTexture(s,n),this.setSizeToFrame(),this.setOrigin(),this.world=t,this._tempVec2=new l(e,i);s=a(r,"shape",null);s?this.setBody(s,r):this.setRectangle(this.width,this.height,r),this.setPosition(e,i),this.initPipeline(),this.initPostPipeline(!0)}});t.exports=i},50583:(t,e,i)=>{var r=i(84093),s=i(50658),n=i(68516),o=i(84125),a=i(63568),h=i(84091),l=i(56694),u=i(63454),c=i(68758),d=i(11299),p=i(56643),f=i(52838),g=i(13657),y=i(53996),v=i(72653),m=i(72632),x=i(10850),w=i(1675),T=i(80391),b=i(16929),S=i(44097),P=i(30657),_=i(70584),E=i(91327),A=i(84474),C=i(91963),M=i(13390),O=i(44272),R=i(7599),D=i(92765),L=i(10438),k=i(39745),F=i(31468),c=(c.setDecomp(i(81084)),new l({initialize:function(t){this.scene=t,this.systems=t.sys,this.config=this.getConfig(),this.world,this.add,this.bodyBounds,this.body=o,this.composite=d,this.collision=u,this.detector=g,this.pair=_,this.pairs=E,this.query=M,this.resolver=O,this.constraint=f,this.bodies=n,this.composites=p,this.axes=s,this.bounds=h,this.svg=D,this.vector=L,this.vertices=k,this.verts=k,this._tempVec2=L.create(),x(this.config,"plugins.collisionevents",!0)&&this.enableCollisionEventsPlugin(),x(this.config,"plugins.attractors",!1)&&this.enableAttractorPlugin(),x(this.config,"plugins.wrap",!1)&&this.enableWrapPlugin(),O._restingThresh=x(this.config,"restingThresh",4),O._restingThreshTangent=x(this.config,"restingThreshTangent",6),O._positionDampen=x(this.config,"positionDampen",.9),O._positionWarming=x(this.config,"positionWarming",.8),O._frictionNormalMultiplier=x(this.config,"frictionNormalMultiplier",5),t.sys.events.once(R.BOOT,this.boot,this),t.sys.events.on(R.START,this.start,this)},boot:function(){this.world=new F(this.scene,this.config),this.add=new v(this.world),this.bodyBounds=new a,this.systems.events.once(R.DESTROY,this.destroy,this)},start:function(){this.world||(this.world=new F(this.scene,this.config),this.add=new v(this.world));var t=this.systems.events;t.on(R.UPDATE,this.world.update,this.world),t.on(R.POST_UPDATE,this.world.postUpdate,this.world),t.once(R.SHUTDOWN,this.shutdown,this)},getConfig:function(){var t=this.systems.game.config.physics,e=this.systems.settings.physics;return P(m(e,"matter",{}),m(t,"matter",{}))},enableAttractorPlugin:function(){return A.register(w),A.use(b,w),this},enableWrapPlugin:function(){return A.register(S),A.use(b,S),this},enableCollisionEventsPlugin:function(){return A.register(T),A.use(b,T),this},pause:function(){return this.world.pause()},resume:function(){return this.world.resume()},set60Hz:function(){return this.world.getDelta=this.world.update60Hz,this.world.autoUpdate=!0,this},set30Hz:function(){return this.world.getDelta=this.world.update30Hz,this.world.autoUpdate=!0,this},step:function(t,e){this.world.step(t,e)},containsPoint:function(t,e,i){t=this.getMatterBodies(t);e=L.create(e,i);return 0{var o=i(16569),s=i(56694),n=i(74527),a=i(89980),h=i(72632),r=i(58210),l=i(13747),u=i(93736),i=new s({Extends:l,Mixins:[n.Bounce,n.Collision,n.Force,n.Friction,n.Gravity,n.Mass,n.Sensor,n.SetBody,n.Sleep,n.Static,n.Transform,n.Velocity,r],initialize:function(t,e,i,s,n,r){a.call(this,t.scene,"Sprite"),this._crop=this.resetCropObject(),this.anims=new o(this),this.setTexture(s,n),this.setSizeToFrame(),this.setOrigin(),this.world=t,this._tempVec2=new u(e,i);s=h(r,"shape",null);s?this.setBody(s,r):this.setRectangle(this.width,this.height,r),this.setPosition(e,i),this.initPipeline(),this.initPostPipeline(!0)}});t.exports=i},84720:(t,e,i)=>{var g=i(68516),y=i(84125),s=i(56694),n=i(74527),v=i(28699),r=i(6659),m=i(72632),x=i(19256),w=i(39745),i=new s({Extends:r,Mixins:[n.Bounce,n.Collision,n.Friction,n.Gravity,n.Mass,n.Sensor,n.Sleep,n.Static],initialize:function(t,e,i){r.call(this),this.tile=e,this.world=t,e.physics.matterBody&&e.physics.matterBody.destroy(),e.physics.matterBody=this;var t=m(i,"body",null),s=m(i,"addToWorld",!0);t?this.setBody(t,s):(s=e.getCollisionGroup(),0{var r=i(68516),l=i(84125),u=i(68758),c=i(72632),n=i(39745);t.exports={parseBody:function(t,e,i,s){void 0===s&&(s={});for(var n=c(i,"fixtures",[]),r=[],o=0;o{var l=i(68516),u=i(84125);t.exports={parseBody:function(t,e,i,s){void 0===s&&(s={});var n,r=i.vertices;if(1===r.length)s.vertices=r[0],n=u.create(s),l.flagCoincidentParts(n.parts);else{for(var o=[],a=0;a{var o=i(84091),s=i(56694),a=i(11299),n=i(52838),h=i(13657),l=i(35416),r=i(33963),u=i(30657),c=i(22806),d=i(93736),p=i(39745),i=new s({initialize:function(t,e,i){void 0===i&&(i={}),this.scene=t,this.world=e,this.camera=null,this.pointer=null,this.active=!0,this.position=new d,this.body=null,this.part=null,this.constraint=n.create(u(i,{label:"Pointer Constraint",pointA:{x:0,y:0},pointB:{x:0,y:0},length:.01,stiffness:.1,angularStiffness:1,collisionFilter:{category:1,mask:4294967295,group:0}})),this.world.on(l.BEFORE_UPDATE,this.update,this),t.sys.input.on(r.POINTER_DOWN,this.onDown,this),t.sys.input.on(r.POINTER_UP,this.onUp,this)},onDown:function(t){this.pointer||(this.pointer=t,this.camera=t.camera)},onUp:function(t){t===this.pointer&&(this.pointer=null)},getBody:function(t){var e=this.position,i=this.constraint;this.camera.getWorldPoint(t.x,t.y,e);for(var s=a.allBodies(this.world.localWorld),n=0;n{var r=i(68516),s=i(84125),n=i(56694),y=i(68758),l=i(11299),u=i(45775),c=i(6659),o=i(35416),d=i(72632),p=i(10850),a=i(84125),h=i(39073),f=i(84720),g=i(72005),v=i(10438),i=new n({Extends:c,initialize:function(t,e){c.call(this),this.scene=t,this.engine=u.create(e),this.localWorld=this.engine.world;var i,s=p(e,"gravity",null),s=(s?this.setGravity(s.x,s.y,s.scale):!1===s&&this.setGravity(0,0,0),this.walls={left:null,right:null,top:null,bottom:null},this.enabled=p(e,"enabled",!0),this.getDelta=p(e,"getDelta",this.update60Hz),d(e,"runner",{})),n=d(s,"fps",!1),r=d(s,"fps",60),o=d(s,"delta",1e3/r),a=d(s,"deltaMin",1e3/r),h=d(s,"deltaMax",1e3/(.5*r)),n=(this.runner={fps:r=n?r:1e3/o,deltaSampleSize:d(s,"deltaSampleSize",60),counterTimestamp:0,frameCounter:0,deltaHistory:[],timePrev:null,timeScalePrev:1,frameRequestId:null,isFixed:d(s,"isFixed",!1),delta:o,deltaMin:a,deltaMax:h},this.autoUpdate=p(e,"autoUpdate",!0),p(e,"debug",!1));this.drawDebug="object"==typeof n||n,this.debugGraphic,this.debugConfig={showAxes:d(n,"showAxes",!1),showAngleIndicator:d(n,"showAngleIndicator",!1),angleColor:d(n,"angleColor",15208787),showBroadphase:d(n,"showBroadphase",!1),broadphaseColor:d(n,"broadphaseColor",16757760),showBounds:d(n,"showBounds",!1),boundsColor:d(n,"boundsColor",16777215),showVelocity:d(n,"showVelocity",!1),velocityColor:d(n,"velocityColor",44783),showCollisions:d(n,"showCollisions",!1),collisionColor:d(n,"collisionColor",16094476),showSeparations:d(n,"showSeparations",!1),separationColor:d(n,"separationColor",16753920),showBody:d(n,"showBody",!0),showStaticBody:d(n,"showStaticBody",!0),showInternalEdges:d(n,"showInternalEdges",!1),renderFill:d(n,"renderFill",!1),renderLine:d(n,"renderLine",!0),fillColor:d(n,"fillColor",1075465),fillOpacity:d(n,"fillOpacity",1),lineColor:d(n,"lineColor",2678297),lineOpacity:d(n,"lineOpacity",1),lineThickness:d(n,"lineThickness",1),staticFillColor:d(n,"staticFillColor",857979),staticLineColor:d(n,"staticLineColor",1255396),showSleeping:d(n,"showSleeping",!1),staticBodySleepOpacity:d(n,"staticBodySleepOpacity",.7),sleepFillColor:d(n,"sleepFillColor",4605510),sleepLineColor:d(n,"sleepLineColor",10066585),showSensors:d(n,"showSensors",!0),sensorFillColor:d(n,"sensorFillColor",857979),sensorLineColor:d(n,"sensorLineColor",1255396),showPositions:d(n,"showPositions",!0),positionSize:d(n,"positionSize",4),positionColor:d(n,"positionColor",14697178),showJoint:d(n,"showJoint",!0),jointColor:d(n,"jointColor",14737474),jointLineOpacity:d(n,"jointLineOpacity",1),jointLineThickness:d(n,"jointLineThickness",2),pinSize:d(n,"pinSize",4),pinColor:d(n,"pinColor",4382944),springColor:d(n,"springColor",14697184),anchorColor:d(n,"anchorColor",15724527),anchorSize:d(n,"anchorSize",4),showConvexHulls:d(n,"showConvexHulls",!1),hullColor:d(n,"hullColor",14091216)},this.drawDebug&&this.createDebugGraphic(),this.setEventsProxy(),d(e,"setBounds",!1)&&("boolean"==typeof(r=e.setBounds)?this.setBounds():(s=d(r,"x",0),o=d(r,"y",0),a=d(r,"width",t.sys.scale.width),h=d(r,"height",t.sys.scale.height),n=d(r,"thickness",64),e=d(r,"left",!0),t=d(r,"right",!0),i=d(r,"top",!0),r=d(r,"bottom",!0),this.setBounds(s,o,a,h,n,e,t,i,r)))},setCompositeRenderStyle:function(t){for(var e,i,s=t.bodies,n=t.constraints,r=t.composites,o=0;os.deltaMax?s.deltaMax:e,s.delta=e),s.timeScalePrev=n.timeScale,s.frameCounter+=1,1e3<=t-s.counterTimestamp&&(s.fps=s.frameCounter*((t-s.counterTimestamp)/1e3),s.counterTimestamp=t,s.frameCounter=0),u.update(i,e))},step:function(t){u.update(this.engine,t)},update60Hz:function(){return 1e3/60},update30Hz:function(){return 1e3/30},has:function(t){t=t.hasOwnProperty("body")?t.body:t;return null!==l.get(this.localWorld,t.id,t.type)},getAllBodies:function(){return l.allBodies(this.localWorld)},getAllConstraints:function(){return l.allConstraints(this.localWorld)},getAllComposites:function(){return l.allComposites(this.localWorld)},postUpdate:function(){var t,e,i,s;this.drawDebug&&(t=this.debugConfig,e=this.engine,i=this.debugGraphic,s=l.allBodies(this.localWorld),this.debugGraphic.clear(),t.showBroadphase&&e.broadphase.controller&&this.renderGrid(e.broadphase,i,t.broadphaseColor,.5),t.showBounds&&this.renderBodyBounds(s,i,t.boundsColor,.5),(t.showBody||t.showStaticBody)&&this.renderBodies(s),t.showJoint&&this.renderJoints(),(t.showAxes||t.showAngleIndicator)&&this.renderBodyAxes(s,i,t.showAxes,t.angleColor,.5),t.showVelocity&&this.renderBodyVelocity(s,i,t.velocityColor,1,2),t.showSeparations&&this.renderSeparations(e.pairs.list,i,t.separationColor),t.showCollisions)&&this.renderCollisions(e.pairs.list,i,t.collisionColor)},renderGrid:function(t,e,i,s){e.lineStyle(1,i,s);for(var n=y.keys(t.buckets),r=0;r{t.exports={setBounce:function(t){return this.body.restitution=t,this}}},70679:t=>{t.exports={setCollisionCategory:function(t){return this.body.collisionFilter.category=t,this},setCollisionGroup:function(t){return this.body.collisionFilter.group=t,this},setCollidesWith:function(t){var e=0;if(Array.isArray(t))for(var i=0;i{var s=i(84125);t.exports={applyForce:function(t){return this._tempVec2.set(this.body.position.x,this.body.position.y),s.applyForce(this.body,this._tempVec2,t),this},applyForceFrom:function(t,e){return s.applyForce(this.body,t,e),this},thrust:function(t){var e=this.body.angle;return this._tempVec2.set(t*Math.cos(e),t*Math.sin(e)),s.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this},thrustLeft:function(t){var e=this.body.angle-Math.PI/2;return this._tempVec2.set(t*Math.cos(e),t*Math.sin(e)),s.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this},thrustRight:function(t){var e=this.body.angle+Math.PI/2;return this._tempVec2.set(t*Math.cos(e),t*Math.sin(e)),s.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this},thrustBack:function(t){var e=this.body.angle-Math.PI;return this._tempVec2.set(t*Math.cos(e),t*Math.sin(e)),s.applyForce(this.body,{x:this.body.position.x,y:this.body.position.y},this._tempVec2),this}}},74015:t=>{t.exports={setFriction:function(t,e,i){return this.body.friction=t,void 0!==e&&(this.body.frictionAir=e),void 0!==i&&(this.body.frictionStatic=i),this},setFrictionAir:function(t){return this.body.frictionAir=t,this},setFrictionStatic:function(t){return this.body.frictionStatic=t,this}}},11535:t=>{t.exports={setIgnoreGravity:function(t){return this.body.ignoreGravity=t,this}}},74497:(t,e,i)=>{var s=i(84125),n=i(93736);t.exports={setMass:function(t){return s.setMass(this.body,t),this},setDensity:function(t){return s.setDensity(this.body,t),this},centerOfMass:{get:function(){return new n(this.body.centerOfMass.x,this.body.centerOfMass.y)}}}},75529:t=>{t.exports={setSensor:function(t){return this.body.isSensor=t,this},isSensor:function(){return this.body.isSensor}}},64024:(t,e,i)=>{var d=i(68516),p=i(84125),a=i(88456),f=i(72632),g=i(10998),y=i(72829),v=i(39745);t.exports={setRectangle:function(t,e,i){return this.setBody({type:"rectangle",width:t,height:e},i)},setCircle:function(t,e){return this.setBody({type:"circle",radius:t},e)},setPolygon:function(t,e,i){return this.setBody({type:"polygon",sides:e,radius:t},i)},setTrapezoid:function(t,e,i,s){return this.setBody({type:"trapezoid",width:t,height:e,slope:i},s)},setExistingBody:function(t,e){void 0===e&&(e=!0),this.body&&this.world.remove(this.body,!0),this.body=t;for(var i=0;i{var s=i(35416),n=i(22806),r=i(39073);t.exports={setToSleep:function(){return n.set(this.body,!0),this},setAwake:function(){return n.set(this.body,!1),this},setSleepThreshold:function(t){return this.body.sleepThreshold=t=void 0===t?60:t,this},setSleepEvents:function(t,e){return this.setSleepStartEvent(t),this.setSleepEndEvent(e),this},setSleepStartEvent:function(t){var e;return t?(e=this.world,r.on(this.body,"sleepStart",function(t){e.emit(s.SLEEP_START,t,this)})):r.off(this.body,"sleepStart"),this},setSleepEndEvent:function(t){var e;return t?(e=this.world,r.on(this.body,"sleepEnd",function(t){e.emit(s.SLEEP_END,t,this)})):r.off(this.body,"sleepEnd"),this}}},82884:(t,e,i)=>{var s=i(84125);t.exports={setStatic:function(t){return s.setStatic(this.body,t),this},isStatic:function(){return this.body.isStatic}}},4753:(t,e,i)=>{var r=i(84125),s=i(83392),n=i(35786),o=i(62138);t.exports={x:{get:function(){return this.body.position.x},set:function(t){this._tempVec2.set(t,this.y),r.setPosition(this.body,this._tempVec2)}},y:{get:function(){return this.body.position.y},set:function(t){this._tempVec2.set(this.x,t),r.setPosition(this.body,this._tempVec2)}},scaleX:{get:function(){return this._scaleX},set:function(t){var e=1/this._scaleX,i=1/this._scaleY;this._scaleX=t,0===this._scaleX?this.renderFlags&=-5:this.renderFlags|=4,r.scale(this.body,e,i),r.scale(this.body,t,this._scaleY)}},scaleY:{get:function(){return this._scaleY},set:function(t){var e=1/this._scaleX,i=1/this._scaleY;this._scaleY=t,0===this._scaleY?this.renderFlags&=-5:this.renderFlags|=4,r.scale(this.body,e,i),r.scale(this.body,this._scaleX,t)}},angle:{get:function(){return o(this.body.angle*s.RAD_TO_DEG)},set:function(t){this.rotation=o(t)*s.DEG_TO_RAD}},rotation:{get:function(){return this.body.angle},set:function(t){this._rotation=n(t),r.setAngle(this.body,this._rotation)}},setPosition:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this._tempVec2.set(t,e),r.setPosition(this.body,this._tempVec2),this},setRotation:function(t){return this._rotation=n(t=void 0===t?0:t),r.setAngle(this.body,t),this},setFixedRotation:function(){return r.setInertia(this.body,1/0),this},setAngle:function(t){return this.angle=t=void 0===t?0:t,r.setAngle(this.body,this.rotation),this},setScale:function(t,e,i){void 0===t&&(t=1),void 0===e&&(e=t);var s=1/this._scaleX,n=1/this._scaleY;return this._scaleX=t,this._scaleY=e,r.scale(this.body,s,n,i),r.scale(this.body,t,e,i),this}}},37268:(t,e,i)=>{var s=i(84125);t.exports={setVelocityX:function(t){return this._tempVec2.set(t,this.body.velocity.y),s.setVelocity(this.body,this._tempVec2),this},setVelocityY:function(t){return this._tempVec2.set(this.body.velocity.x,t),s.setVelocity(this.body,this._tempVec2),this},setVelocity:function(t,e){return this._tempVec2.set(t,e),s.setVelocity(this.body,this._tempVec2),this},getVelocity:function(){return s.getVelocity(this.body)},setAngularVelocity:function(t){return s.setAngularVelocity(this.body,t),this},getAngularVelocity:function(){return s.getAngularVelocity(this.body)},setAngularSpeed:function(t){return s.setAngularSpeed(this.body,t),this},getAngularSpeed:function(){return s.getAngularSpeed(this.body)}}},74527:(t,e,i)=>{t.exports={Bounce:i(95349),Collision:i(70679),Force:i(77178),Friction:i(74015),Gravity:i(11535),Mass:i(74497),Sensor:i(75529),SetBody:i(64024),Sleep:i(25106),Static:i(82884),Transform:i(4753),Velocity:i(37268)}},63201:t=>{t.exports="afteradd"},30474:t=>{t.exports="afterremove"},44822:t=>{t.exports="afterupdate"},88820:t=>{t.exports="beforeadd"},94849:t=>{t.exports="beforeremove"},6391:t=>{t.exports="beforeupdate"},96738:t=>{t.exports="collisionactive"},7916:t=>{t.exports="collisionend"},59529:t=>{t.exports="collisionstart"},10219:t=>{t.exports="dragend"},183:t=>{t.exports="drag"},39143:t=>{t.exports="dragstart"},16483:t=>{t.exports="pause"},35806:t=>{t.exports="resume"},22106:t=>{t.exports="sleepend"},5803:t=>{t.exports="sleepstart"},35416:(t,e,i)=>{t.exports={AFTER_ADD:i(63201),AFTER_REMOVE:i(30474),AFTER_UPDATE:i(44822),BEFORE_ADD:i(88820),BEFORE_REMOVE:i(94849),BEFORE_UPDATE:i(6391),COLLISION_ACTIVE:i(96738),COLLISION_END:i(7916),COLLISION_START:i(59529),DRAG_END:i(10219),DRAG:i(183),DRAG_START:i(39143),PAUSE:i(16483),RESUME:i(35806),SLEEP_END:i(22106),SLEEP_START:i(5803)}},45949:(t,e,i)=>{t.exports={BodyBounds:i(63568),Components:i(74527),Events:i(35416),Factory:i(72653),MatterGameObject:i(3860),Image:i(7030),Matter:i(18171),MatterPhysics:i(50583),PolyDecomp:i(81084),Sprite:i(73658),TileBody:i(84720),PhysicsEditorParser:i(10998),PhysicsJSONParser:i(72829),PointerConstraint:i(88596),World:i(31468)}},84125:(t,e,i)=>{var s,c={},d=(t.exports=c,i(39745)),l=i(10438),n=i(22806),u=i(68758),p=i(84091),f=i(50658);c._timeCorrection=!0,c._inertiaScale=4,c._nextCollidingGroupId=1,c._nextNonCollidingGroupId=-1,c._nextCategory=1,c._baseDelta=1e3/60,c.create=function(t){var e={id:u.nextId(),type:"body",label:"Body",parts:[],plugin:{},angle:0,vertices:null,position:{x:0,y:0},force:{x:0,y:0},torque:0,positionImpulse:{x:0,y:0},constraintImpulse:{x:0,y:0,angle:0},totalContacts:0,speed:0,angularSpeed:0,velocity:{x:0,y:0},angularVelocity:0,isSensor:!1,isStatic:!1,isSleeping:!1,motion:0,sleepThreshold:60,density:.001,restitution:0,friction:.1,frictionStatic:.5,frictionAir:.01,collisionFilter:{category:1,mask:4294967295,group:0},slop:.05,timeScale:1,events:null,bounds:null,chamfer:null,circleRadius:0,positionPrev:null,anglePrev:0,parent:null,axes:null,area:0,mass:0,inverseMass:0,inertia:0,deltaTime:1e3/60,inverseInertia:0,_original:null,render:{visible:!0,opacity:1,sprite:{xOffset:0,yOffset:0},fillColor:null,fillOpacity:null,lineColor:null,lineOpacity:null,lineThickness:null},gameObject:null,scale:{x:1,y:1},centerOfMass:{x:0,y:0},centerOffset:{x:0,y:0},gravityScale:{x:1,y:1},ignoreGravity:!1,ignorePointer:!1,onCollideCallback:null,onCollideEndCallback:null,onCollideActiveCallback:null,onCollideWith:{}},e=(!t.hasOwnProperty("position")&&t.hasOwnProperty("vertices")?t.position=d.centre(t.vertices):t.hasOwnProperty("vertices")||(e.vertices=d.fromPath("L 0 0 L 40 0 L 40 40 L 0 40")),u.extend(e,t));return s(e,t),e.setOnCollideWith=function(t,e){return e?this.onCollideWith[t.id]=e:delete this.onCollideWith[t.id],this},e},c.nextGroup=function(t){return t?c._nextNonCollidingGroupId--:c._nextCollidingGroupId++},c.nextCategory=function(){return c._nextCategory=c._nextCategory<<1,c._nextCategory},s=function(t,e){var i,s,n,r;e=e||{},c.set(t,{bounds:t.bounds||p.create(t.vertices),positionPrev:t.positionPrev||l.clone(t.position),anglePrev:t.anglePrev||t.angle,vertices:t.vertices,parts:t.parts||[t],isStatic:t.isStatic,isSleeping:t.isSleeping,parent:t.parent||t}),d.rotate(t.vertices,t.angle,t.position),f.rotate(t.axes,t.angle),p.update(t.bounds,t.vertices,t.velocity),c.set(t,{axes:e.axes||t.axes,area:e.area||t.area,mass:e.mass||t.mass,inertia:e.inertia||t.inertia}),1===t.parts.length&&(e=t.bounds,i=t.centerOfMass,s=t.centerOffset,n=e.max.x-e.min.x,r=e.max.y-e.min.y,i.x=-(e.min.x-t.position.x)/n,i.y=-(e.min.y-t.position.y)/r,s.x=n*i.x,s.y=r*i.y)},c.set=function(t,e,i){for(var s in"string"==typeof e&&(s=e,(e={})[s]=i),e)if(Object.prototype.hasOwnProperty.call(e,s))switch(i=e[s],s){case"isStatic":c.setStatic(t,i);break;case"isSleeping":n.set(t,i);break;case"mass":c.setMass(t,i);break;case"density":c.setDensity(t,i);break;case"inertia":c.setInertia(t,i);break;case"vertices":c.setVertices(t,i);break;case"position":c.setPosition(t,i);break;case"angle":c.setAngle(t,i);break;case"velocity":c.setVelocity(t,i);break;case"angularVelocity":c.setAngularVelocity(t,i);break;case"speed":c.setSpeed(t,i);break;case"angularSpeed":c.setAngularSpeed(t,i);break;case"parts":c.setParts(t,i);break;case"centre":c.setCentre(t,i);break;default:t[s]=i}},c.setStatic=function(t,e){for(var i=0;i{var c={},o=(t.exports=c,i(39073)),r=i(68758),a=i(84091),d=i(84125);c.create=function(t){return r.extend({id:r.nextId(),type:"composite",parent:null,isModified:!1,bodies:[],constraints:[],composites:[],label:"Composite",plugin:{},cache:{allBodies:null,allConstraints:null,allComposites:null}},t)},c.setModified=function(t,e,i,s){if(o.trigger(t,"compositeModified",t),(t.isModified=e)&&t.cache&&(t.cache.allBodies=null,t.cache.allConstraints=null,t.cache.allComposites=null),i&&t.parent&&c.setModified(t.parent,e,i,s),s)for(var n=0;n{var s={},t=(t.exports=s,i(11299));s.create=t.create,s.add=t.add,s.remove=t.remove,s.clear=t.clear,s.addComposite=t.addComposite,s.addBody=t.addBody,s.addConstraint=t.addConstraint},63454:(t,e,i)=>{var h={};t.exports=h;var l=i(39745),u=i(70584),g=[],c={overlap:0,axis:null},d={overlap:0,axis:null};h.create=function(t,e){return{pair:null,collided:!1,bodyA:t,bodyB:e,parentA:t.parent,parentB:e.parent,depth:0,normal:{x:0,y:0},tangent:{x:0,y:0},penetration:{x:0,y:0},supports:[]}},h.collides=function(t,e,i){var s,n,r,o,a;return h._overlapAxes(c,t.vertices,e.vertices,t.axes),c.overlap<=0||(h._overlapAxes(d,e.vertices,t.vertices,e.axes),d.overlap<=0)?null:((i=i&&i.table[u.id(t,e)])?s=i.collision:((s=h.create(t,e)).collided=!0,s.bodyA=t.idT?T=r:rb?b=r:r{var e={};(t.exports=e).create=function(t){return{vertex:t,normalImpulse:0,tangentImpulse:0}}},13657:(t,e,i)=>{var E={},s=(t.exports=E,i(68758)),A=i(63454);E.create=function(t){return s.extend({bodies:[],pairs:null},t)},E.setBodies=function(t,e){t.bodies=e.slice(0)},E.clear=function(t){t.bodies=[]},E.collisions=function(t){var e,i=[],s=t.pairs,n=t.bodies,r=n.length,o=E.canCollide,a=A.collides;for(n.sort(E._compareBoundsX),e=0;eu)break;if(!(c<_.min.y||d>_.max.y)&&(!p||!v.isStatic&&!v.isSleeping)&&o(l.collisionFilter,v.collisionFilter)){var m=v.parts.length;if(g&&1===m)(S=a(l,v,s))&&i.push(S);else for(var x=1_.max.x||h.max.x<_.min.x||h.max.y<_.min.y||h.min.y>_.max.y||(S=a(T,P,s))&&i.push(S)}}}return i},E.canCollide=function(t,e){return t.group===e.group&&0!==t.group?0{var n={},p=(t.exports=n,i(17319));n.create=function(t,e){var i=t.bodyA,s=t.bodyB,i={id:n.id(i,s),bodyA:i,bodyB:s,collision:t,contacts:[],activeContacts:[],separation:0,isActive:!0,confirmedActive:!0,isSensor:i.isSensor||s.isSensor,timeCreated:e,timeUpdated:e,inverseMass:0,friction:0,frictionStatic:0,restitution:0,slop:0};return n.update(i,t,e),i},n.update=function(t,e,i){var s=t.contacts,n=e.supports,r=t.activeContacts,o=e.parentA,a=e.parentB,h=o.vertices.length;t.isActive=!0,t.timeUpdated=i,t.collision=e,t.separation=e.depth,t.inverseMass=o.inverseMass+a.inverseMass,t.friction=(o.frictiona.frictionStatic?o:a).frictionStatic,t.restitution=(o.restitution>a.restitution?o:a).restitution,t.slop=(o.slop>a.slop?o:a).slop,e.pair=t;for(var l=r.length=0;l{var s={},g=(t.exports=s,i(70584)),n=i(68758);s.create=function(t){return n.extend({table:{},list:[],collisionStart:[],collisionActive:[],collisionEnd:[]},t)},s.update=function(t,e,i){var s,n,r,o=t.list,a=o.length,h=t.table,l=e.length,u=t.collisionStart,c=t.collisionEnd,d=t.collisionActive;for(u.length=0,c.length=0,f=d.length=0;f{var u={},c=(t.exports=u,i(10438)),p=i(63454),f=i(84091),d=i(68516),a=i(39745);u.collides=function(t,e){for(var i=[],s=e.length,n=t.bounds,r=p.collides,o=f.overlaps,a=0;a{var I={},p=(t.exports=I,i(39745)),B=i(68758),f=i(84091);I._restingThresh=2,I._restingThreshTangent=Math.sqrt(6),I._positionDampen=.9,I._positionWarming=.8,I._frictionNormalMultiplier=5,I._frictionMaxStatic=Number.MAX_VALUE,I.preSolvePosition=function(t){for(var e,i,s=t.length,n=0;ns&&(A.tangentImpulse=s),i=A.tangentImpulse-k),m*L+w*i),D=x*L+T*i;f.isStatic||f.isSleeping||(f.positionPrev.x+=F*f.inverseMass,f.positionPrev.y+=D*f.inverseMass,f.anglePrev+=(M*D-O*F)*f.inverseInertia),g.isStatic||g.isSleeping||(g.positionPrev.x-=F*g.inverseMass,g.positionPrev.y-=D*g.inverseMass,g.anglePrev-=(R*D-C*F)*g.inverseInertia)}}}}},52838:(t,e,i)=>{var g={},o=(t.exports=g,i(39745)),y=i(10438),a=i(22806),h=i(84091),l=i(50658),u=i(68758);g._warming=.4,g._torqueDampen=1,g._minLength=1e-6,g.create=function(t){t.bodyA&&!t.pointA&&(t.pointA={x:0,y:0}),t.bodyB&&!t.pointB&&(t.pointB={x:0,y:0});var e=t.bodyA?y.add(t.bodyA.position,t.pointA):t.pointA,i=t.bodyB?y.add(t.bodyB.position,t.pointB):t.pointB,e=y.magnitude(y.sub(e,i)),i=(t.length=void 0!==t.length?t.length:e,t.id=t.id||u.nextId(),t.label=t.label||"Constraint",t.type="constraint",t.stiffness=t.stiffness||(0{var s,h={};(t.exports=h)._baseDelta=1e3/60,h._nextId=0,h._seed=0,h._nowStartTime=+new Date,h._warnedOnce={},h._decomp=null,h.extend=function(t,e){for(var i,s="boolean"==typeof e?(i=2,e):(i=1,!0),n=i;n{var p={},f=(t.exports=p,i(22806)),g=i(44272),y=i(13657),v=i(91327),m=i(39073),x=i(11299),w=i(52838),T=i(68758),r=i(84125);p.create=function(t){var e=T.extend({positionIterations:6,velocityIterations:4,constraintIterations:2,enableSleeping:!1,events:[],plugin:{},gravity:{x:0,y:1,scale:.001},timing:{timestamp:0,timeScale:1,lastDelta:0,lastElapsed:0}},t=t||{});return e.world=t.world||x.create({label:"World"}),e.pairs=t.pairs||v.create(),e.detector=t.detector||y.create(),e.grid={buckets:[]},e.world.gravity=e.gravity,e.broadphase=e.grid,e.metrics={},e},p.update=function(t,e){var i,s=T.now(),n=t.world,r=t.detector,o=t.pairs,a=t.timing,h=a.timestamp,l=(e=void 0!==e?e:T._baseDelta,e*=a.timeScale,a.timestamp+=e,a.lastDelta=e,{timestamp:a.timestamp,delta:e}),u=(m.trigger(t,"beforeUpdate",l),x.allBodies(n)),c=x.allConstraints(n);for(n.isModified&&(y.setBodies(r,u),x.setModified(n,!1,!1,!0)),t.enableSleeping&&f.update(u,e),p._bodiesApplyGravity(u,t.gravity),0{var s={},u=(t.exports=s,i(68758));s.on=function(t,e,i){for(var s,n=e.split(" "),r=0;r{var s={},n=(t.exports=s,i(84474)),r=i(68758);s.name="matter-js",s.version="0.19.0",s.uses=[],s.used=[],s.use=function(){n.use(s,Array.prototype.slice.call(arguments))},s.before=function(t,e){return t=t.replace(/^Matter./,""),r.chainPathBefore(s,t,e)},s.after=function(t,e){return t=t.replace(/^Matter./,""),r.chainPathAfter(s,t,e)}},84474:(t,e,i)=>{var o={},a=(t.exports=o,i(68758));o._registry={},o.register=function(t){var e,i,s;return o.isPlugin(t)||a.warn("Plugin.register:",o.toString(t),"does not implement all required fields."),t.name in o._registry?(e=o._registry[t.name],i=o.versionParse(t.version).number,(s=o.versionParse(e.version).number)=|>)?\s*((\d+)\.(\d+)\.(\d+))(-[0-9A-Za-z-+]+)?$/,e=(e.test(t)||a.warn("Plugin.versionParse:",t,"is not a valid version or range."),e.exec(t)),i=Number(e[4]),s=Number(e[5]),n=Number(e[6]);return{isRange:Boolean(e[1]||e[2]),version:e[3],range:t,operator:e[1]||e[2]||"",major:i,minor:s,patch:n,parts:[i,s,n],prerelease:e[7],number:1e8*i+1e4*s+n}},o.versionSatisfies=function(t,e){var i=o.versionParse(e=e||"*"),s=o.versionParse(t);if(i.isRange){if("*"===i.operator||"*"===t)return!0;if(">"===i.operator)return s.number>i.number;if(">="===i.operator)return s.number>=i.number;if("~"===i.operator)return s.major===i.major&&s.minor===i.minor&&s.patch>=i.patch;if("^"===i.operator)return 0=i.number:0=i.patch:s.patch===i.patch}return t===e||"*"===t}},22806:(t,e,i)=>{var h={},l=(t.exports=h,i(84125)),s=i(39073),u=i(68758);h._motionWakeThreshold=.18,h._motionSleepThreshold=.08,h._minBias=.9,h.update=function(t,e){for(var i=e/u._baseDelta,s=h._motionSleepThreshold,n=0;n=r.sleepThreshold/i&&h.set(r,!0)):0e&&h.set(n,!1))}},h.set=function(t,e){var i=t.isSleeping;e?(t.isSleeping=!0,t.sleepCounter=t.sleepThreshold,t.positionImpulse.x=0,t.positionImpulse.y=0,t.positionPrev.x=t.position.x,t.positionPrev.y=t.position.y,t.anglePrev=t.angle,t.speed=0,t.angularSpeed=0,t.motion=0,i||s.trigger(t,"sleepStart")):(t.isSleeping=!1,t.sleepCounter=0,i&&s.trigger(t,"sleepEnd"))}},68516:(t,e,i)=>{var c={},E=(t.exports=c,i(39745)),A=i(68758),C=i(84125),M=i(84091),O=i(10438);c.rectangle=function(t,e,i,s,n){n=n||{};t={label:"Rectangle Body",position:{x:t,y:e},vertices:E.fromPath("L 0 0 L "+i+" 0 L "+i+" "+s+" L 0 "+s)};return n.chamfer&&(e=n.chamfer,t.vertices=E.chamfer(t.vertices,e.radius,e.quality,e.qualityMin,e.qualityMax),delete n.chamfer),C.create(A.extend({},t,n))},c.trapezoid=function(t,e,i,s,n,r){r=r||{};var o=i*(n*=.5),i=o+(1-2*n)*i,a=i+o,t={label:"Trapezoid Body",position:{x:t,y:e},vertices:E.fromPath(n<.5?"L 0 0 L "+o+" "+-s+" L "+i+" "+-s+" L "+a+" 0":"L 0 0 L "+i+" "+-s+" L "+a+" 0")};return r.chamfer&&(e=r.chamfer,t.vertices=E.chamfer(t.vertices,e.radius,e.quality,e.qualityMin,e.qualityMax),delete r.chamfer),C.create(A.extend({},t,r))},c.circle=function(t,e,i,s,n){s=s||{};var r={label:"Circle Body",circleRadius:i},n=(n=n||25,Math.ceil(Math.max(10,Math.min(n,i))));return n%2==1&&(n+=1),c.polygon(t,e,n,i,A.extend({},r,s))},c.polygon=function(t,e,i,s,n){if(n=n||{},i<3)return c.circle(t,e,s,n);for(var r=2*Math.PI/i,o="",a=.5*r,h=0;h{var p={},m=(t.exports=p,i(11299)),f=i(52838),g=i(68758),x=i(84125),u=i(68516);p.stack=function(t,e,i,s,n,r,o){for(var a,h=m.create({label:"Stack"}),l=t,u=e,c=0,d=0;d{var s={},n=(t.exports=s,i(10438)),r=i(68758);s.fromVertices=function(t){for(var e={},i=0;i{var i={};(t.exports=i).create=function(t){var e={min:{x:0,y:0},max:{x:0,y:0}};return t&&i.update(e,t),e},i.update=function(t,e,i){t.min.x=1/0,t.max.x=-1/0,t.min.y=1/0,t.max.y=-1/0;for(var s=0;st.max.x&&(t.max.x=n.x),n.xt.max.y&&(t.max.y=n.y),n.y=t.min.x&&e.x<=t.max.x&&e.y>=t.min.y&&e.y<=t.max.y},i.overlaps=function(t,e){return t.min.x<=e.max.x&&t.max.x>=e.min.x&&t.max.y>=e.min.y&&t.min.y<=e.max.y},i.translate=function(t,e){t.min.x+=e.x,t.max.x+=e.x,t.min.y+=e.y,t.max.y+=e.y},i.shift=function(t,e){var i=t.max.x-t.min.x,s=t.max.y-t.min.y;t.min.x=e.x,t.max.x=e.x+i,t.min.y=e.y,t.max.y=e.y+s}},92765:(t,e,i)=>{var x={},w=(t.exports=x,i(84091),i(68758));x.pathToVertices=function(t,e){"undefined"==typeof window||"SVGPathSeg"in window||w.warn("Svg.pathToVertices: SVGPathSeg not defined, a polyfill is required.");function i(t){var e=t.pathSegTypeAsLetter.toUpperCase();if("Z"!==e){switch(e){case"M":case"L":case"T":case"C":case"S":case"Q":y=t.x,v=t.y;break;case"H":y=t.x;break;case"V":v=t.y}m(y,v,t.pathSegType)}}var s,n,r,o,a,h,l,u,c,d,p,f=[],g=0,y=0,v=0,m=(e=e||15,function(t,e,i){var s,i=i%2==1&&1{var i={};(t.exports=i).create=function(t,e){return{x:t||0,y:e||0}},i.clone=function(t){return{x:t.x,y:t.y}},i.magnitude=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},i.magnitudeSquared=function(t){return t.x*t.x+t.y*t.y},i.rotate=function(t,e,i){var s=Math.cos(e),e=Math.sin(e),n=t.x*s-t.y*e;return(i=i||{}).y=t.x*e+t.y*s,i.x=n,i},i.rotateAbout=function(t,e,i,s){var n=Math.cos(e),e=Math.sin(e),r=i.x+((t.x-i.x)*n-(t.y-i.y)*e);return(s=s||{}).y=i.y+((t.x-i.x)*e+(t.y-i.y)*n),s.x=r,s},i.normalise=function(t){var e=i.magnitude(t);return 0===e?{x:0,y:0}:{x:t.x/e,y:t.y/e}},i.dot=function(t,e){return t.x*e.x+t.y*e.y},i.cross=function(t,e){return t.x*e.y-t.y*e.x},i.cross3=function(t,e,i){return(e.x-t.x)*(i.y-t.y)-(e.y-t.y)*(i.x-t.x)},i.add=function(t,e,i){return(i=i||{}).x=t.x+e.x,i.y=t.y+e.y,i},i.sub=function(t,e,i){return(i=i||{}).x=t.x-e.x,i.y=t.y-e.y,i},i.mult=function(t,e){return{x:t.x*e,y:t.y*e}},i.div=function(t,e){return{x:t.x/e,y:t.y/e}},i.perp=function(t,e){return{x:(e=!0===e?-1:1)*-t.y,y:e*t.x}},i.neg=function(t){return{x:-t.x,y:-t.y}},i.angle=function(t,e){return Math.atan2(e.y-t.y,e.x-t.x)},i._temp=[i.create(),i.create(),i.create(),i.create(),i.create(),i.create()]},39745:(t,e,i)=>{var o={},m=(t.exports=o,i(10438)),x=i(68758);o.create=function(t,e){for(var i=[],s=0;s{var u=i(18171),n={name:"matter-attractors",version:"0.1.7",for:"matter-js@^0.19.0",silent:!0,install:function(t){t.after("Body.create",function(){n.Body.init(this)}),t.before("Engine.update",function(t){n.Engine.update(t)})},Body:{init:function(t){t.plugin.attractors=t.plugin.attractors||[]}},Engine:{update:function(t){for(var e=u.Composite.allBodies(t.world),i=0;i{t.exports={name:"matter-collision-events",version:"0.1.6",for:"matter-js@^0.19.0",silent:!0,install:function(s){s.after("Engine.create",function(){s.Events.on(this,"collisionStart",function(t){t.pairs.map(function(t){var e=t.bodyA,i=t.bodyB;e.gameObject&&e.gameObject.emit("collide",e,i,t),i.gameObject&&i.gameObject.emit("collide",i,e,t),s.Events.trigger(e,"onCollide",{pair:t}),s.Events.trigger(i,"onCollide",{pair:t}),e.onCollideCallback&&e.onCollideCallback(t),i.onCollideCallback&&i.onCollideCallback(t),e.onCollideWith[i.id]&&e.onCollideWith[i.id](i,t),i.onCollideWith[e.id]&&i.onCollideWith[e.id](e,t)})}),s.Events.on(this,"collisionActive",function(t){t.pairs.map(function(t){var e=t.bodyA,i=t.bodyB;e.gameObject&&e.gameObject.emit("collideActive",e,i,t),i.gameObject&&i.gameObject.emit("collideActive",i,e,t),s.Events.trigger(e,"onCollideActive",{pair:t}),s.Events.trigger(i,"onCollideActive",{pair:t}),e.onCollideActiveCallback&&e.onCollideActiveCallback(t),i.onCollideActiveCallback&&i.onCollideActiveCallback(t)})}),s.Events.on(this,"collisionEnd",function(t){t.pairs.map(function(t){var e=t.bodyA,i=t.bodyB;e.gameObject&&e.gameObject.emit("collideEnd",e,i,t),i.gameObject&&i.gameObject.emit("collideEnd",i,e,t),s.Events.trigger(e,"onCollideEnd",{pair:t}),s.Events.trigger(i,"onCollideEnd",{pair:t}),e.onCollideEndCallback&&e.onCollideEndCallback(t),i.onCollideEndCallback&&i.onCollideEndCallback(t)})})})}}},44097:(t,e,i)=>{var o=i(18171),a={name:"matter-wrap",version:"0.1.4",for:"matter-js@^0.19.0",silent:!0,install:function(t){t.after("Engine.update",function(){a.Engine.update(this)})},Engine:{update:function(t){for(var t=t.world,e=o.Composite.allBodies(t),i=o.Composite.allComposites(t),s=0;se.max.x?i=e.min.x-t.max.x:t.max.xe.max.y?s=e.min.y-t.max.y:t.max.y{function P(t,e,i,s){var n,r=e[0]-t[0],e=e[1]-t[1],o=s[0]-i[0],s=s[1]-i[1];if(o*e-s*r!=0)return n=(r*(i[1]-t[1])+e*(t[0]-i[0]))/(o*e-s*r),i=(o*(t[1]-i[1])+s*(i[0]-t[0]))/(s*r-o*e),0<=n&&n<=1&&0<=i&&i<=1}function a(t,e,i){return(e[0]-t[0])*(i[1]-t[1])-(i[0]-t[0])*(e[1]-t[1])}function _(t,e,i){return 0o)){for(var b=0;bi[e][0])&&(e=s);return!_(O(t,e-1),O(t,e),O(t,e+1))&&(function(t){for(var e=[],i=t.length,s=0;s!==i;s++)e.push(t.pop());for(s=0;s!==i;s++)t[s]=e[s]}(t),!0)}};var h=[],l=[];function M(t,e){var i=e[0]-t[0],e=e[1]-t[1];return i*i+e*e}function O(t,e){var i=t.length;return t[e<0?e%i+i:e%i]}function R(t,e,i,s){for(var n=i;n{i=new(i(56694))({initialize:function(t){this.pluginManager=t,this.game=t.game},init:function(){},start:function(){},stop:function(){},destroy:function(){this.pluginManager=null,this.game=null,this.scene=null,this.systems=null}});t.exports=i},18360:t=>{t.exports={Global:["game","anims","cache","plugins","registry","scale","sound","textures","renderer"],CoreScene:["EventEmitter","CameraManager","GameObjectCreator","GameObjectFactory","ScenePlugin","DisplayList","UpdateList"],DefaultScene:["Clock","DataManagerPlugin","InputPlugin","Loader","TweenManager","LightsPlugin"]}},91963:t=>{var n={},r={};t.exports={register:function(t,e,i,s){n[t]={plugin:e,mapping:i,custom:s=void 0===s?!1:s}},registerCustom:function(t,e,i,s){r[t]={plugin:e,mapping:i,data:s}},hasCore:function(t){return n.hasOwnProperty(t)},hasCustom:function(t){return r.hasOwnProperty(t)},getCore:function(t){return n[t]},getCustom:function(t){return r[t]},getCustomClass:function(t){return r.hasOwnProperty(t)?r[t].plugin:null},remove:function(t){n.hasOwnProperty(t)&&delete n[t]},removeCustom:function(t){r.hasOwnProperty(t)&&delete r[t]},destroyCorePlugins:function(){for(var t in n)n.hasOwnProperty(t)&&delete n[t]},destroyCustomPlugins:function(){for(var t in r)r.hasOwnProperty(t)&&delete r[t]}}},49274:(t,e,i)=>{var s=i(56694),l=i(97081),n=i(6659),r=i(76846),o=i(99325),a=i(61286),u=i(72632),g=i(91963),h=i(66458),i=new s({Extends:n,initialize:function(t){n.call(this),this.game=t,this.plugins=[],this.scenePlugins=[],this._pendingGlobal=[],this._pendingScene=[],t.isBooted?this.boot():t.events.once(l.BOOT,this.boot,this)},boot:function(){for(var t,e,i,s,n,r,o=this.game.config,a=(a=o.installGlobalPlugins).concat(this._pendingGlobal),h=0;h{var s=i(88257),n=i(56694),r=i(7599),i=new n({Extends:s,initialize:function(t,e,i){s.call(this,e),this.scene=t,this.systems=t.sys,this.pluginKey=i,t.sys.events.once(r.BOOT,this.boot,this)},boot:function(){},destroy:function(){this.pluginManager=null,this.game=null,this.scene=null,this.systems=null}});t.exports=i},45615:(t,e,i)=>{t.exports={BasePlugin:i(88257),DefaultPlugins:i(18360),PluginCache:i(91963),PluginManager:i(49274),ScenePlugin:i(39283)}},75205:()=>{!("requestVideoFrameCallback"in HTMLVideoElement.prototype)&&"getVideoPlaybackQuality"in HTMLVideoElement.prototype&&(HTMLVideoElement.prototype._rvfcpolyfillmap={},HTMLVideoElement.prototype.requestVideoFrameCallback=function(n){const r=performance.now(),o=this.getVideoPlaybackQuality(),a=this.mozPresentedFrames||this.mozPaintedFrames||o.totalVideoFrames-o.droppedVideoFrames,h=(t,e)=>{var i=this.getVideoPlaybackQuality(),s=this.mozPresentedFrames||this.mozPaintedFrames||i.totalVideoFrames-i.droppedVideoFrames;if(s>a){const a=this.mozFrameDelay||i.totalFrameDelay-o.totalFrameDelay||0,h=e-t;n(e,{presentationTime:e+1e3*a,expectedDisplayTime:e+h,width:this.videoWidth,height:this.videoHeight,mediaTime:Math.max(0,this.currentTime||0)+h/1e3,presentedFrames:s,processingDuration:a}),delete this._rvfcpolyfillmap[r]}else this._rvfcpolyfillmap[r]=requestAnimationFrame(t=>h(e,t))};return this._rvfcpolyfillmap[r]=requestAnimationFrame(t=>h(r,t)),r},HTMLVideoElement.prototype.cancelVideoFrameCallback=function(t){cancelAnimationFrame(this._rvfcpolyfillmap[t]),delete this._rvfcpolyfillmap[t]})},95723:t=>{t.exports={SKIP_CHECK:-1,NORMAL:0,ADD:1,MULTIPLY:2,SCREEN:3,OVERLAY:4,DARKEN:5,LIGHTEN:6,COLOR_DODGE:7,COLOR_BURN:8,HARD_LIGHT:9,SOFT_LIGHT:10,DIFFERENCE:11,EXCLUSION:12,HUE:13,SATURATION:14,COLOR:15,LUMINOSITY:16,ERASE:17,SOURCE_IN:18,SOURCE_OUT:19,SOURCE_ATOP:20,DESTINATION_OVER:21,DESTINATION_IN:22,DESTINATION_OUT:23,DESTINATION_ATOP:24,LIGHTER:25,COPY:26,XOR:27}},27394:t=>{t.exports={DEFAULT:0,LINEAR:0,NEAREST:1}},91135:(t,e,i)=>{var d=i(89787),l=i(61840),s=i(56694),n=i(86459),r=i(6659),p=i(81044),o=i(32834),a=i(40444),h=i(38203),u=i(69360),i=new s({Extends:r,initialize:function(t){r.call(this);var e=t.config,i=(this.config={clearBeforeRender:e.clearBeforeRender,backgroundColor:e.backgroundColor,antialias:e.antialias,roundPixels:e.roundPixels},this.game=t,this.type=n.CANVAS,this.drawCount=0,this.width=0,this.height=0,this.gameCanvas=t.canvas,{alpha:t.config.transparent,desynchronized:t.config.desynchronized,willReadFrequently:!1});this.gameContext=e.context||this.gameCanvas.getContext("2d",i),this.currentContext=this.gameContext,this.antialias=t.config.antialias,this.blendModes=o(),this.snapshotState={x:0,y:0,width:1,height:1,getPixel:!1,callback:null,type:"image/png",encoder:.92},this._tempMatrix1=new u,this._tempMatrix2=new u,this._tempMatrix3=new u,this.isBooted=!1,this.init()},init:function(){this.game.textures.once(h.READY,this.boot,this)},boot:function(){var t=this.game,e=t.scale.baseSize;this.width=e.width,this.height=e.height,this.isBooted=!0,t.scale.on(a.RESIZE,this.onResize,this),this.resize(e.width,e.height)},onResize:function(t,e){e.width===this.width&&e.height===this.height||this.resize(e.width,e.height)},resize:function(t,e){this.width=t,this.height=e,this.emit(p.RESIZE,t,e)},resetTransform:function(){this.currentContext.setTransform(1,0,0,1,0,0)},setBlendMode:function(t){return this.currentContext.globalCompositeOperation=t,this},setContext:function(t){return this.currentContext=t||this.gameContext,this},setAlpha:function(t){return this.currentContext.globalAlpha=t,this},preRender:function(){var t=this.gameContext,e=this.config,i=this.width,s=this.height;t.globalAlpha=1,t.globalCompositeOperation="source-over",t.setTransform(1,0,0,1,0,0),e.clearBeforeRender&&(t.clearRect(0,0,i,s),e.transparent||(t.fillStyle=e.backgroundColor.rgba,t.fillRect(0,0,i,s))),t.save(),this.drawCount=0,this.emit(p.PRE_RENDER)},render:function(t,e,i){var s=e.length,n=(this.emit(p.RENDER,t,i),i.x),r=i.y,o=i.width,a=i.height,h=(i.renderToTexture?i:t.sys).context,l=(h.save(),this.game.scene.customViewports&&(h.beginPath(),h.rect(n,r,o,a),h.clip()),i.emit(d.PRE_RENDER,i),this.currentContext=h,i.mask);l&&l.preRenderCanvas(this,null,i._maskCamera),i.transparent||(h.fillStyle=i.backgroundColor.rgba,h.fillRect(n,r,o,a)),h.globalAlpha=i.alpha,h.globalCompositeOperation="source-over",this.drawCount+=s,i.renderToTexture&&i.emit(d.PRE_RENDER,i),i.matrix.copyToContext(h);for(var u=0;u{t.exports={CanvasRenderer:i(91135),GetBlendModes:i(32834),SetTransform:i(49584)}},32834:(t,e,i)=>{var s=i(95723),n=i(98581);t.exports=function(){var t=[],e=n.supportNewBlendModes,i="source-over";return t[s.NORMAL]=i,t[s.ADD]="lighter",t[s.MULTIPLY]=e?"multiply":i,t[s.SCREEN]=e?"screen":i,t[s.OVERLAY]=e?"overlay":i,t[s.DARKEN]=e?"darken":i,t[s.LIGHTEN]=e?"lighten":i,t[s.COLOR_DODGE]=e?"color-dodge":i,t[s.COLOR_BURN]=e?"color-burn":i,t[s.HARD_LIGHT]=e?"hard-light":i,t[s.SOFT_LIGHT]=e?"soft-light":i,t[s.DIFFERENCE]=e?"difference":i,t[s.EXCLUSION]=e?"exclusion":i,t[s.HUE]=e?"hue":i,t[s.SATURATION]=e?"saturation":i,t[s.COLOR]=e?"color":i,t[s.LUMINOSITY]=e?"luminosity":i,t[s.ERASE]="destination-out",t[s.SOURCE_IN]="source-in",t[s.SOURCE_OUT]="source-out",t[s.SOURCE_ATOP]="source-atop",t[s.DESTINATION_OVER]="destination-over",t[s.DESTINATION_IN]="destination-in",t[s.DESTINATION_OUT]="destination-out",t[s.DESTINATION_ATOP]="destination-atop",t[s.LIGHTER]="lighter",t[s.COPY]="copy",t[s.XOR]="xor",t}},49584:(t,e,i)=>{var o=i(73329);t.exports=function(t,e,i,s,n){var r=s.alpha*i.alpha;return!(r<=0||(s=o(i,s,n).calc,e.globalCompositeOperation=t.blendModes[i.blendMode],e.globalAlpha=r,e.save(),s.setToContext(e),e.imageSmoothingEnabled=i.frame?!i.frame.source.scaleMode:t.antialias,0))}},70936:t=>{t.exports="postrender"},99298:t=>{t.exports="prerender"},7743:t=>{t.exports="render"},99519:t=>{t.exports="resize"},81044:(t,e,i)=>{t.exports={POST_RENDER:i(70936),PRE_RENDER:i(99298),RENDER:i(7743),RESIZE:i(99519)}},42069:(t,e,i)=>{t.exports={Canvas:i(6046),Events:i(81044),Snapshot:i(95528),WebGL:i(55478)}},61840:(t,e,i)=>{var d=i(61068),p=i(27119),f=i(72632);t.exports=function(t,e){var i,s,n,r=f(e,"callback"),o=f(e,"type","image/png"),a=f(e,"encoder",.92),h=Math.abs(Math.round(f(e,"x",0))),l=Math.abs(Math.round(f(e,"y",0))),u=Math.floor(f(e,"width",t.width)),c=Math.floor(f(e,"height",t.height));f(e,"getPixel",!1)?(e=t.getContext("2d",{willReadFrequently:!1}).getImageData(h,l,1,1).data,r.call(null,new p(e[0],e[1],e[2],e[3]))):0!==h||0!==l||u!==t.width||c!==t.height?(e=(i=d.createWebGL(this,u,c)).getContext("2d",{willReadFrequently:!0}),0{var b=i(61068),S=i(27119),P=i(72632);t.exports=function(t,e){var i=P(e,"callback"),s=P(e,"type","image/png"),n=P(e,"encoder",.92),r=Math.abs(Math.round(P(e,"x",0))),o=Math.abs(Math.round(P(e,"y",0))),a=P(e,"getPixel",!1),h=P(e,"isFramebuffer",!1),l=h?P(e,"bufferWidth",1):t.drawingBufferWidth,u=h?P(e,"bufferHeight",1):t.drawingBufferHeight;if(a){a=new Uint8Array(4);t.readPixels(r,h?o:u-o,1,1,t.RGBA,t.UNSIGNED_BYTE,a),i.call(null,new S(a[0],a[1],a[2],a[3]))}else{var c=Math.floor(P(e,"width",l)),d=Math.floor(P(e,"height",u)),p=c*d*4,f=new Uint8Array(p);t.readPixels(r,u-o-d,c,d,t.RGBA,t.UNSIGNED_BYTE,f);for(var g=b.createWebGL(this,c,d),a=g.getContext("2d",{willReadFrequently:!0}),l=a.getImageData(0,0,c,d),y=l.data,v=0;v{t.exports={Canvas:i(61840),WebGL:i(1217)}},35217:(t,e,i)=>{var s=i(56694),y=i(65641),n=i(33885),v=i(77290),m=i(72632),x=i(37410),r=i(82127),o=i(5583),a=i(58136),h=i(47406),l=i(81828),u=i(66901),c=i(71264),d=i(77310),p=i(10919),f=i(21213),g=i(51212),w=i(60848),i=new s({initialize:function(t){this.game=t.game,this.renderer=t,this.classes=new n([[y.UTILITY_PIPELINE,w],[y.MULTI_PIPELINE,d],[y.BITMAPMASK_PIPELINE,o],[y.SINGLE_PIPELINE,g],[y.ROPE_PIPELINE,f],[y.LIGHT_PIPELINE,u],[y.POINTLIGHT_PIPELINE,p],[y.MOBILE_PIPELINE,c],[y.FX_PIPELINE,l]]),this.postPipelineClasses=new n([[String(h.BARREL),a.Barrel],[String(h.BLOOM),a.Bloom],[String(h.BLUR),a.Blur],[String(h.BOKEH),a.Bokeh],[String(h.CIRCLE),a.Circle],[String(h.COLOR_MATRIX),a.ColorMatrix],[String(h.DISPLACEMENT),a.Displacement],[String(h.GLOW),a.Glow],[String(h.GRADIENT),a.Gradient],[String(h.PIXELATE),a.Pixelate],[String(h.SHADOW),a.Shadow],[String(h.SHINE),a.Shine],[String(h.VIGNETTE),a.Vignette],[String(h.WIPE),a.Wipe]]),this.pipelines=new n,this.default=null,this.current=null,this.previous=null,this.MULTI_PIPELINE=null,this.BITMAPMASK_PIPELINE=null,this.UTILITY_PIPELINE=null,this.MOBILE_PIPELINE=null,this.FX_PIPELINE=null,this.fullFrame1,this.fullFrame2,this.halfFrame1,this.halfFrame2,this.renderTargets=[],this.maxDimension=0,this.frameInc=32,this.targetIndex=0},boot:function(t,e,i){var s=this.renderer,n=this.renderTargets;this.frameInc=Math.floor(m(t,"frameInc",32));for(var r,o,a=s.width,h=s.height,l=Math.min(a,h),u=Math.ceil(l/this.frameInc),c=1;cthis.maxDimension?(this.targetIndex=e.length-3,e[this.targetIndex]):(t=3*(r(t,this.frameInc,0,!0)-1),e[this.targetIndex=t])},getSwapRenderTarget:function(){return this.renderTargets[this.targetIndex+1]},getAltSwapRenderTarget:function(){return this.renderTargets[this.targetIndex+2]},destroy:function(){this.flush(),this.classes.clear(),this.postPipelineClasses.clear(),this.pipelines.clear(),this.renderer=null,this.game=null,this.classes=null,this.postPipelineClasses=null,this.pipelines=null,this.default=null,this.current=null,this.previous=null}});t.exports=i},37410:(t,e,i)=>{var s=i(56694),n=i(81044),i=new s({initialize:function(t,e,i,s,n,r,o,a,h){void 0===s&&(s=1),void 0===n&&(n=0),void 0===r&&(r=!0),void 0===o&&(o=!1),void 0===a&&(a=!0),void 0===h&&(h=!0),this.renderer=t,this.framebuffer=null,this.texture=null,this.width=0,this.height=0,this.scale=s,this.minFilter=n,this.autoClear=r,this.autoResize=!0,this.hasDepthBuffer=a,this.forceClamp=h,this.resize(e,i),o?this.setAutoResize(!0):this.autoResize=!1},setAutoResize:function(t){return t&&!this.autoResize?(this.renderer.on(n.RESIZE,this.resize,this),this.autoResize=!0):!t&&this.autoResize&&(this.renderer.off(n.RESIZE,this.resize,this),this.autoResize=!1),this},resize:function(t,e){var i=t*this.scale,s=e*this.scale;return!this.autoResize||i===this.width&&s===this.height||((i=this.renderer).deleteFramebuffer(this.framebuffer),i.deleteTexture(this.texture),t*=this.scale,e*=this.scale,(t=Math.round(t))<=0&&(t=1),(e=Math.round(e))<=0&&(e=1),this.texture=i.createTextureFromSource(null,t,e,this.minFilter,this.forceClamp),this.framebuffer=i.createFramebuffer(t,e,this.texture,this.hasDepthBuffer),this.width=t,this.height=e),this},bind:function(t,e,i){var s=this.renderer;(t=void 0===t?!1:t)&&s.flush(),e&&i&&this.resize(e,i),s.pushFramebuffer(this.framebuffer,!1,!1),t&&this.adjustViewport(),this.autoClear&&((e=this.renderer.gl).clearColor(0,0,0,0),e.clear(e.COLOR_BUFFER_BIT)),s.clearStencilMask()},adjustViewport:function(){var t=this.renderer.gl;t.viewport(0,0,this.width,this.height),t.disable(t.SCISSOR_TEST)},clear:function(){var t=this.renderer,e=t.gl;t.pushFramebuffer(this.framebuffer),e.disable(e.SCISSOR_TEST),e.clearColor(0,0,0,0),e.clear(e.COLOR_BUFFER_BIT),t.popFramebuffer(),t.resetScissor()},unbind:function(t){var e=this.renderer;return(t=void 0===t?!1:t)&&e.flush(),e.popFramebuffer()},destroy:function(){var t=this.renderer;t.deleteFramebuffer(this.framebuffer),t.deleteTexture(this.texture),t.off(n.RESIZE,this.resize,this),this.renderer=null,this.framebuffer=null,this.texture=null}});t.exports=i},75512:t=>{t.exports={getTintFromFloats:function(t,e,i,s){return((255&(255*s|0))<<24|(255&(255*t|0))<<16|(255&(255*e|0))<<8|255&(255*i|0))>>>0},getTintAppendFloatAlpha:function(t,e){return((255&(255*e|0))<<24|t)>>>0},getTintAppendFloatAlphaAndSwap:function(t,e){return((255&(255*e|0))<<24|(255&(0|t))<<16|(255&(t>>8|0))<<8|255&(t>>16|0))>>>0},getFloatsFromUintRGB:function(t){return[(255&(t>>16|0))/255,(255&(t>>8|0))/255,(255&(0|t))/255]},checkShaderMax:function(t,e){t=Math.min(16,t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS));return e&&-1!==e?Math.min(t,e):t},parseFragmentShaderMaxTextures:function(t,e){if(!t)return"";for(var i="",s=0;s{var s=i(56694),m=i(28699),n=i(6659),y=i(18970),x=i(72632),v=i(16650),w=i(81044),T=i(37410),b=i(75512),S=i(71305),i=new s({Extends:n,initialize:function(t){n.call(this);var e=t.game,i=e.renderer,s=i.gl;this.name=x(t,"name","WebGLPipeline"),this.game=e,this.renderer=i,this.manager,this.gl=s,this.view=e.canvas,this.width=0,this.height=0,this.vertexCount=0,this.vertexCapacity=0,this.vertexData,this.vertexBuffer,this.activeBuffer,this.topology=x(t,"topology",s.TRIANGLES),this.bytes,this.vertexViewF32,this.vertexViewU32,this.active=!0,this.forceZero=x(t,"forceZero",!1),this.hasBooted=!1,this.isPostFX=!1,this.isPreFX=!1,this.renderTargets=[],this.currentRenderTarget,this.shaders=[],this.currentShader,this.projectionMatrix,this.projectionWidth=0,this.projectionHeight=0,this.config=t,this.glReset=!1,this.batch=[],this.currentBatch=null,this.currentTexture=null,this.currentUnit=0,this.activeTextures=[]},boot:function(){var t=this.gl,e=this.config,i=this.renderer,s=(this.isPostFX||(this.projectionMatrix=(new v).identity()),this.renderTargets),n=x(e,"renderTarget",!1),r=i.width,o=i.height;if("number"==typeof(n="boolean"==typeof n?n&&1:n))for(f=0;fp&&(p=d[f].vertexSize);var g=x(e,"batchSize",i.config.batchSize),g=(this.vertexCapacity=6*g,new ArrayBuffer(this.vertexCapacity*p)),e=(this.vertexData=g,this.bytes=new Uint8Array(g),this.vertexViewF32=new Float32Array(g),this.vertexViewU32=new Uint32Array(g),x(e,"vertices",null));for(e?(this.vertexViewF32.set(e),this.vertexBuffer=i.createVertexBuffer(g,t.STATIC_DRAW)):this.vertexBuffer=i.createVertexBuffer(g.byteLength,t.DYNAMIC_DRAW),this.setVertexBuffer(),f=d.length-1;0<=f;f--)d[f].rebind();this.hasBooted=!0,i.on(w.RESIZE,this.resize,this),i.on(w.PRE_RENDER,this.onPreRender,this),i.on(w.RENDER,this.onRender,this),i.on(w.POST_RENDER,this.onPostRender,this),this.emit(y.BOOT,this),this.onBoot()},onBoot:function(){},onResize:function(){},setShader:function(t,e,i){var s=this.renderer;return t===this.currentShader&&s.currentProgram===this.currentShader.program||(this.flush(),this.setVertexBuffer(i)&&!e&&(e=!0),t.bind(e,!1),this.currentShader=t),this},getShaderByName:function(t){for(var e=this.shaders,i=0;ithis.vertexCapacity},vertexAvailable:function(){return this.vertexCapacity-this.vertexCount},resize:function(t,e){t===this.width&&e===this.height||this.flush(),this.width=t,this.height=e;for(var i=this.renderTargets,s=0;s{var s=i(66458),o=i(89787),n=i(56694),u=i(86459),r=i(6659),h=i(81044),y=i(28621),c=i(16650),a=i(72283),d=i(35217),l=i(37410),p=i(40444),f=i(38203),g=i(75512),v=i(1217),i=new n({Extends:r,initialize:function(t){r.call(this);var e=t.config,i={alpha:e.transparent,desynchronized:e.desynchronized,depth:!0,antialias:e.antialiasGL,premultipliedAlpha:e.premultipliedAlpha,stencil:!0,failIfMajorPerformanceCaveat:e.failIfMajorPerformanceCaveat,powerPreference:e.powerPreference,preserveDrawingBuffer:e.preserveDrawingBuffer,willReadFrequently:!1};this.config={clearBeforeRender:e.clearBeforeRender,antialias:e.antialias,backgroundColor:e.backgroundColor,contextCreation:i,roundPixels:e.roundPixels,maxTextures:e.maxTextures,maxTextureSize:e.maxTextureSize,batchSize:e.batchSize,maxLights:e.maxLights,mipmapFilter:e.mipmapFilter},this.game=t,this.type=u.WEBGL,this.pipelines=null,this.width=0,this.height=0,this.canvas=t.canvas,this.blendModes=[],this.contextLost=!1,this.snapshotState={x:0,y:0,width:1,height:1,getPixel:!1,callback:null,type:"image/png",encoder:.92,isFramebuffer:!1,bufferWidth:0,bufferHeight:0},this.maxTextures=0,this.textureIndexes,this.currentFramebuffer=null,this.fboStack=[],this.currentProgram=null,this.currentBlendMode=1/0,this.currentScissorEnabled=!1,this.currentScissor=null,this.scissorStack=[],this.contextLostHandler=a,this.contextRestoredHandler=a,this.gl=null,this.supportedExtensions=null,this.instancedArraysExtension=null,this.vaoExtension=null,this.extensions={},this.glFormats,this.compression,this.drawingBufferHeight=0,this.blankTexture=null,this.whiteTexture=null,this.maskCount=0,this.maskStack=[],this.currentMask={mask:null,camera:null},this.currentCameraMask={mask:null,camera:null},this.glFuncMap=null,this.currentType="",this.newType=!1,this.nextTypeMatch=!1,this.finalType=!1,this.mipmapFilter=null,this.defaultScissor=[0,0,0,0],this.isBooted=!1,this.renderTarget=null,this.projectionMatrix,this.projectionWidth=0,this.projectionHeight=0,this.maskSource=null,this.maskTarget=null,this.spector=null,this._debugCapture=!1,this.init(this.config)},init:function(t){var e,i=this.game,s=this.canvas,n=t.backgroundColor;if(!(e=i.config.context||s.getContext("webgl",t.contextCreation)||s.getContext("experimental-webgl",t.contextCreation))||e.isContextLost())throw this.contextLost=!0,new Error("WebGL unsupported");this.gl=e;var r=this;this.contextLostHandler=function(t){r.contextLost=!0,console,t.preventDefault()},s.addEventListener("webglcontextlost",this.contextLostHandler,!1),i.context=e;for(var o=0;o<=27;o++)this.blendModes.push({func:[e.ONE,e.ONE_MINUS_SRC_ALPHA],equation:e.FUNC_ADD});this.blendModes[1].func=[e.ONE,e.DST_ALPHA],this.blendModes[2].func=[e.DST_COLOR,e.ONE_MINUS_SRC_ALPHA],this.blendModes[3].func=[e.ONE,e.ONE_MINUS_SRC_COLOR],this.blendModes[17]={func:[e.ZERO,e.ONE_MINUS_SRC_ALPHA],equation:e.FUNC_REVERSE_SUBTRACT},this.glFormats=[e.BYTE,e.SHORT,e.UNSIGNED_BYTE,e.UNSIGNED_SHORT,e.FLOAT],this.glFuncMap={mat2:{func:e.uniformMatrix2fv,length:1,matrix:!0},mat3:{func:e.uniformMatrix3fv,length:1,matrix:!0},mat4:{func:e.uniformMatrix4fv,length:1,matrix:!0},"1f":{func:e.uniform1f,length:1},"1fv":{func:e.uniform1fv,length:1},"1i":{func:e.uniform1i,length:1},"1iv":{func:e.uniform1iv,length:1},"2f":{func:e.uniform2f,length:2},"2fv":{func:e.uniform2fv,length:1},"2i":{func:e.uniform2i,length:2},"2iv":{func:e.uniform2iv,length:1},"3f":{func:e.uniform3f,length:3},"3fv":{func:e.uniform3fv,length:1},"3i":{func:e.uniform3i,length:3},"3iv":{func:e.uniform3iv,length:1},"4f":{func:e.uniform4f,length:4},"4fv":{func:e.uniform4fv,length:1},"4i":{func:e.uniform4i,length:4},"4iv":{func:e.uniform4iv,length:1}};var s=e.getSupportedExtensions(),a=(t.maxTextures&&-1!==t.maxTextures||(t.maxTextures=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS)),t.maxTextureSize||(t.maxTextureSize=e.getParameter(e.MAX_TEXTURE_SIZE)),this.compression=this.getCompressedTextures(),this.supportedExtensions=s,"ANGLE_instanced_arrays"),a=(this.instancedArraysExtension=-1{var s=i(56694),u=i(72632),c=i(71402),i=new s({initialize:function(t,e,i,s,n){this.pipeline=t,this.name=e,this.renderer=t.renderer,this.gl=this.renderer.gl,this.fragSrc=s,this.vertSrc=i,this.program=this.renderer.createProgram(i,s),this.attributes,this.vertexComponentCount=0,this.vertexSize=0,this.uniforms={},this.createAttributes(n),this.createUniforms()},createAttributes:function(t){for(var e=0,i=0,s=[],n=this.vertexComponentCount=0;n{t.exports={BYTE:{enum:5120,size:1},UNSIGNED_BYTE:{enum:5121,size:1},SHORT:{enum:5122,size:2},UNSIGNED_SHORT:{enum:5123,size:2},INT:{enum:5124,size:4},UNSIGNED_INT:{enum:5125,size:4},FLOAT:{enum:5126,size:4}}},55478:(t,e,i)=>{var s=i(71402),i=i(98611)(!1,{PipelineManager:i(35217),Pipelines:i(62253),RenderTarget:i(37410),Utils:i(75512),WebGLPipeline:i(44775),WebGLRenderer:i(11857),WebGLShader:i(71305)},s);t.exports=i},5583:(t,e,i)=>{var s=i(56694),n=i(72632),r=i(91679),o=i(89053),a=i(71402),h=i(44775),i=new s({Extends:h,initialize:function(t){t.fragShader=n(t,"fragShader",r),t.vertShader=n(t,"vertShader",o),t.batchSize=n(t,"batchSize",1),t.vertices=n(t,"vertices",[-1,1,-1,-7,7,1]),t.attributes=n(t,"attributes",[{name:"inPosition",size:2,type:a.FLOAT}]),h.call(this,t)},boot:function(){h.prototype.boot.call(this),this.set1i("uMainSampler",0),this.set1i("uMaskSampler",1)},resize:function(t,e){h.prototype.resize.call(this,t,e),this.set2f("uResolution",t,e)},beginMask:function(t,e,i){this.renderer.beginBitmapMask(t,i)},endMask:function(t,e,i){var s=this.gl,n=this.renderer,r=t.bitmapMask;r&&s&&(n.drawBitmapMask(r,e,this),i&&this.set2f("uResolution",i.width,i.height),this.set1i("uInvertMaskAlpha",t.invertAlpha),s.drawArrays(this.topology,0,3),i&&this.set2f("uResolution",this.width,this.height),s.bindTexture(s.TEXTURE_2D,null))}});t.exports=i},81828:(t,e,i)=>{var s=i(56694),n=i(58136),h=i(47406),l=i(72632),r=i(87228),o=i(92462),a=i(75512),i=new s({Extends:r,initialize:function(t){t.shaders=[a.setGlowQuality(o.FXGlowFrag,t.game),o.FXShadowFrag,o.FXPixelateFrag,o.FXVignetteFrag,o.FXShineFrag,o.FXBlurLowFrag,o.FXBlurMedFrag,o.FXBlurHighFrag,o.FXGradientFrag,o.FXBloomFrag,o.ColorMatrixFrag,o.FXCircleFrag,o.FXBarrelFrag,o.FXDisplacementFrag,o.FXWipeFrag,o.FXBokehFrag],r.call(this,t);t=this.game,this.glow=new n.Glow(t),this.shadow=new n.Shadow(t),this.pixelate=new n.Pixelate(t),this.vignette=new n.Vignette(t),this.shine=new n.Shine(t),this.gradient=new n.Gradient(t),this.circle=new n.Circle(t),this.barrel=new n.Barrel(t),this.wipe=new n.Wipe(t),this.bokeh=new n.Bokeh(t),t=[];t[h.GLOW]=this.onGlow,t[h.SHADOW]=this.onShadow,t[h.PIXELATE]=this.onPixelate,t[h.VIGNETTE]=this.onVignette,t[h.SHINE]=this.onShine,t[h.BLUR]=this.onBlur,t[h.GRADIENT]=this.onGradient,t[h.BLOOM]=this.onBloom,t[h.COLOR_MATRIX]=this.onColorMatrix,t[h.CIRCLE]=this.onCircle,t[h.BARREL]=this.onBarrel,t[h.DISPLACEMENT]=this.onDisplacement,t[h.WIPE]=this.onWipe,t[h.BOKEH]=this.onBokeh,this.fxHandlers=t,this.source,this.target,this.swap},onDraw:function(t,e,i){this.source=t,this.target=e,this.swap=i;var s=t.width,n=t.height,e=this.tempSprite,r=this.fxHandlers;if(e&&e.preFX)for(var o=e.preFX.list,a=0;a{var s=i(56694),n=i(72632),r=i(65045),D=i(77310),o=i(69360),a=i(93736),h=i(44775),i=new s({Extends:D,initialize:function(t){var e=n(t,"fragShader",r);t.fragShader=e.replace("%LIGHT_COUNT%",t.game.renderer.config.maxLights),D.call(this,t),this.inverseRotationMatrix=new Float32Array([1,0,0,0,1,0,0,0,1]),this.defaultNormalMap,this.currentNormalMap,this.lightsActive=!0,this.tempVec2=new a,this._tempMatrix=new o,this._tempMatrix2=new o},boot:function(){h.prototype.boot.call(this);var t=this.gl,e=t.createTexture();t.activeTexture(t.TEXTURE0),t.bindTexture(t.TEXTURE_2D,e),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,1,1,0,t.RGBA,t.UNSIGNED_BYTE,new Uint8Array([127,127,255,255])),this.defaultNormalMap={glTexture:e}},onRender:function(t,e){t=t.sys.lights;if(this.lightsActive=!1,t&&t.active){var i,s=t.getLights(e),n=s.length,r=(this.lightsActive=!0,this.renderer.height),o=e.matrix,a=this.tempVec2;for(this.set1i("uMainSampler",0),this.set1i("uNormSampler",1),this.set2f("uResolution",this.width/2,this.height/2),this.set4f("uCamera",e.x,e.y,e.rotation,e.zoom),this.set3f("uAmbientLightColor",t.ambientColor.r,t.ambientColor.g,t.ambientColor.b),this.set1i("uLightCount",n),i=0;i{var s=i(56694),n=i(72632),r=i(77310),o=i(85060),a=i(18166),h=i(71402),l=i(44775),i=new s({Extends:r,initialize:function(t){t.fragShader=n(t,"fragShader",o),t.vertShader=n(t,"vertShader",a),t.attributes=n(t,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2},{name:"inTexId"},{name:"inTintEffect"},{name:"inTint",size:4,type:h.UNSIGNED_BYTE,normalized:!0}]),t.forceZero=!0,r.call(this,t)},boot:function(){l.prototype.boot.call(this),this.set1i("uMainSampler",0)}});t.exports=i},77310:(t,e,i)=>{var s=i(56694),w=i(11117),n=i(72632),r=i(53787),o=i(15968),a=i(69360),T=i(75512),h=i(71402),l=i(44775),i=new s({Extends:l,initialize:function(t){var e=t.game.renderer,i=n(t,"fragShader",r);t.fragShader=T.parseFragmentShaderMaxTextures(i,e.maxTextures),t.vertShader=n(t,"vertShader",o),t.attributes=n(t,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2},{name:"inTexId"},{name:"inTintEffect"},{name:"inTint",size:4,type:h.UNSIGNED_BYTE,normalized:!0}]),l.call(this,t),this._tempMatrix1=new a,this._tempMatrix2=new a,this._tempMatrix3=new a,this.calcMatrix=new a,this.tempTriangle=[{x:0,y:0,width:0},{x:0,y:0,width:0},{x:0,y:0,width:0},{x:0,y:0,width:0}],this.strokeTint={TL:0,TR:0,BL:0,BR:0},this.fillTint={TL:0,TR:0,BL:0,BR:0},this.currentFrame={u0:0,v0:0,u1:1,v1:1},this.firstQuad=[0,0,0,0,0],this.prevQuad=[0,0,0,0,0],this.polygonCache=[]},boot:function(){l.prototype.boot.call(this),this.currentShader.set1iv("uMainSampler",this.renderer.textureIndexes)},batchSprite:function(t,e,i){this.manager.set(this,t);var s=this._tempMatrix1,n=this._tempMatrix2,r=this._tempMatrix3,o=t.frame,a=o.glTexture,h=o.u0,l=o.v0,u=o.u1,c=o.v1,d=o.x,p=o.y,f=o.cutWidth,g=o.cutHeight,y=o.customPivot,v=t.displayOriginX,m=t.displayOriginY,d=-v+d,p=-m+p,x=(t.isCropped&&((x=t._crop).flipX===t.flipX&&x.flipY===t.flipY||o.updateCropUVs(x,t.flipX,t.flipY),h=x.u0,l=x.v0,u=x.u1,c=x.v1,f=x.width,g=x.height,d=-v+x.x,p=-m+x.y),1),w=1,v=(t.flipX&&(y||(d+=-o.realWidth+2*v),x=-1),(t.flipY||o.source.isGLTexture&&!a.flipY)&&(y||(p+=-o.realHeight+2*m),w=-1),t.x),y=t.y,m=(n.applyITRS(v,y,t.rotation,t.scaleX*x,t.scaleY*w),s.copyFrom(e.matrix),i?(s.multiplyWithOffset(i,-e.scrollX*t.scrollFactorX,-e.scrollY*t.scrollFactorY),n.e=v,n.f=y):(n.e-=e.scrollX*t.scrollFactorX,n.f-=e.scrollY*t.scrollFactorY),s.multiply(n,r),r.setQuad(d,p,d+f,p+g,e.roundPixels)),x=T.getTintAppendFloatAlpha,w=e.alpha,i=x(t.tintTopLeft,w*t._alphaTL),v=x(t.tintTopRight,w*t._alphaTR),y=x(t.tintBottomLeft,w*t._alphaBL),s=x(t.tintBottomRight,w*t._alphaBR),n=(this.shouldFlush(6)&&this.flush(),this.setGameObject(t,o));this.manager.preBatch(t),this.batchQuad(t,m[0],m[1],m[2],m[3],m[4],m[5],m[6],m[7],h,l,u,c,i,v,y,s,t.tintFill,a,n),this.manager.postBatch(t)},batchTexture:function(t,e,i,s,n,r,o,a,I,B,N,h,l,u,c,d,p,f,g,y,v,X,U,z,Y,V,m,x,w,T,G,b){this.manager.set(this,t);var S,P,_,E,A,C=this._tempMatrix1,M=this._tempMatrix2,O=this._tempMatrix3,R=f/i+m,W=g/s+x,H=(f+y)/i+m,j=(g+v)/s+x,D=o,L=a,k=-d,F=-p,y=(t.isCropped&&(P=(S=t._crop).width,_=S.height,E=f=S.x,A=g=S.y,R=(E=h?y-S.x-P:E)/i+m,W=(A=l?v-S.y-_:A)/s+x,H=(E+(o=D=P))/i+m,j=(A+(a=L=_))/s+x,k=-d+f,F=-p+g),h&&(D*=-1,k+=o),(l^=!G&&e.isRenderTexture?1:0)&&(L*=-1,F+=a),M.applyITRS(n,r,N,I,B),C.copyFrom(w.matrix),T?(C.multiplyWithOffset(T,-w.scrollX*u,-w.scrollY*c),M.e=n,M.f=r):(M.e-=w.scrollX*u,M.f-=w.scrollY*c),C.multiply(M,O),O.setQuad(k,F,k+D,F+L,w.roundPixels));void 0===b&&(b=this.setTexture2D(e)),t&&this.manager.preBatch(t),this.batchQuad(t,y[0],y[1],y[2],y[3],y[4],y[5],y[6],y[7],R,W,H,j,X,U,z,Y,V,e,b),t&&this.manager.postBatch(t)},batchTextureFrame:function(t,e,i,s,n,r,o){this.manager.set(this);var r=this._tempMatrix1.copyFrom(r),a=this._tempMatrix2,o=(o?r.multiply(o,a):a=r,a.setQuad(e,i,e+t.width,i+t.height,!1)),r=this.setTexture2D(t.source.glTexture);s=T.getTintAppendFloatAlpha(s,n),this.batchQuad(null,o[0],o[1],o[2],o[3],o[4],o[5],o[6],o[7],t.u0,t.v0,t.u1,t.v1,s,s,s,s,0,t.glTexture,r)},batchFillRect:function(t,e,i,s,n,r){this.renderer.pipelines.set(this);var o=this.calcMatrix,r=(r&&r.multiply(n,o),o.setQuad(t,e,t+i,e+s,!1)),n=this.fillTint;this.batchQuad(null,r[0],r[1],r[2],r[3],r[4],r[5],r[6],r[7],0,0,1,1,n.TL,n.TR,n.BL,n.BR,2)},batchFillTriangle:function(t,e,i,s,n,r,o,a){this.renderer.pipelines.set(this);var h=this.calcMatrix,a=(a&&a.multiply(o,h),h.getX(t,e)),o=h.getY(t,e),t=h.getX(i,s),e=h.getY(i,s),i=h.getX(n,r),s=h.getY(n,r),h=this.fillTint;this.batchTri(null,a,o,t,e,i,s,0,0,1,1,h.TL,h.TR,h.BL,2)},batchStrokeTriangle:function(t,e,i,s,n,r,o,a,h){var l=this.tempTriangle;l[0].x=t,l[0].y=e,l[0].width=o,l[1].x=i,l[1].y=s,l[1].width=o,l[2].x=n,l[2].y=r,l[2].width=o,l[3].x=t,l[3].y=e,l[3].width=o,this.batchStrokePath(l,o,!1,a,h)},batchFillPath:function(t,e,i){this.renderer.pipelines.set(this);var s=this.calcMatrix;i&&i.multiply(e,s);for(var n,r,o=t.length,a=this.polygonCache,h=this.fillTint.TL,l=this.fillTint.TR,u=this.fillTint.BL,c=0;c{var s=i(56694),n=i(72632),r=i(83327),o=i(54677),a=i(44775),i=new s({Extends:a,initialize:function(t){t.vertShader=n(t,"vertShader",o),t.fragShader=n(t,"fragShader",r),t.attributes=n(t,"attributes",[{name:"inPosition",size:2},{name:"inLightPosition",size:2},{name:"inLightRadius"},{name:"inLightAttenuation"},{name:"inLightColor",size:4}]),a.call(this,t)},onRender:function(t,e){this.set2f("uResolution",this.width,this.height),this.set1f("uCameraZoom",e.zoom)},batchPointLight:function(t,e,i,s,n,r,o,a,h,l,u,c){var d=t.color,p=t.intensity,f=t.radius,g=t.attenuation,y=d.r*p,v=d.g*p,d=d.b*p,p=e.alpha*t.alpha;this.shouldFlush(6)&&this.flush(),this.currentBatch||this.setTexture2D(),this.batchLightVert(i,s,u,c,f,g,y,v,d,p),this.batchLightVert(n,r,u,c,f,g,y,v,d,p),this.batchLightVert(o,a,u,c,f,g,y,v,d,p),this.batchLightVert(i,s,u,c,f,g,y,v,d,p),this.batchLightVert(o,a,u,c,f,g,y,v,d,p),this.batchLightVert(h,l,u,c,f,g,y,v,d,p),this.currentBatch.count=this.vertexCount-this.currentBatch.start},batchLightVert:function(t,e,i,s,n,r,o,a,h,l){var u=this.vertexViewF32,c=this.vertexCount*this.currentShader.vertexComponentCount-1;u[++c]=t,u[++c]=e,u[++c]=i,u[++c]=s,u[++c]=n,u[++c]=r,u[++c]=o,u[++c]=a,u[++c]=h,u[++c]=l,this.vertexCount++}});t.exports=i},80486:(t,e,i)=>{var s=i(56694),n=i(65246),r=i(72632),o=i(12569),a=i(99365),h=i(44775),i=new s({Extends:h,initialize:function(t){t.renderTarget=r(t,"renderTarget",1),t.fragShader=r(t,"fragShader",o),t.vertShader=r(t,"vertShader",a),t.attributes=r(t,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2}]),t.batchSize=1,t.vertices=[-1,-1,0,0,-1,1,0,1,1,1,1,1,-1,-1,0,0,1,1,1,1,1,-1,1,0],h.call(this,t),this.isPostFX=!0,this.gameObject,this.controller,this.colorMatrix=new n,this.fullFrame1,this.fullFrame2,this.halfFrame1,this.halfFrame2,this.renderer.isBooted&&(this.manager=this.renderer.pipelines,this.boot())},boot:function(){h.prototype.boot.call(this);var t=this.manager.UTILITY_PIPELINE;this.fullFrame1=t.fullFrame1,this.fullFrame2=t.fullFrame2,this.halfFrame1=t.halfFrame1,this.halfFrame2=t.halfFrame2,this.set1i("uMainSampler",0)},onDraw:function(t){this.bindAndDraw(t)},getController:function(t){return void 0!==t?t:this.controller||this},copySprite:function(t,e,i){void 0===i&&(i=!1);var s=this.gl,t=(s.activeTexture(s.TEXTURE0),s.bindTexture(s.TEXTURE_2D,t.texture),s.getParameter(s.FRAMEBUFFER_BINDING));s.bindFramebuffer(s.FRAMEBUFFER,e.framebuffer),s.framebufferTexture2D(s.FRAMEBUFFER,s.COLOR_ATTACHMENT0,s.TEXTURE_2D,e.texture,0),s.clearColor(0,0,0,0),s.clear(s.COLOR_BUFFER_BIT),s.bufferData(s.ARRAY_BUFFER,this.vertexData,s.STATIC_DRAW),s.drawArrays(s.TRIANGLES,0,6),i&&(s.bindTexture(s.TEXTURE_2D,null),s.bindFramebuffer(s.FRAMEBUFFER,t))},copyFrame:function(t,e,i,s,n){this.manager.copyFrame(t,e,i,s,n)},copyToGame:function(t){this.manager.copyToGame(t)},drawFrame:function(t,e,i){this.manager.drawFrame(t,e,i,this.colorMatrix)},blendFrames:function(t,e,i,s,n){this.manager.blendFrames(t,e,i,s,n)},blendFramesAdditive:function(t,e,i,s,n){this.manager.blendFramesAdditive(t,e,i,s,n)},clearFrame:function(t,e){this.manager.clearFrame(t,e)},blitFrame:function(t,e,i,s,n,r){this.manager.blitFrame(t,e,i,s,n,r)},copyFrameRect:function(t,e,i,s,n,r,o,a){this.manager.copyFrameRect(t,e,i,s,n,r,o,a)},bindAndDraw:function(t,e,i,s,n){void 0===i&&(i=!0),void 0===s&&(s=!0);var r=this.gl,o=this.renderer;this.bind(n),this.set1i("uMainSampler",0),e?(r.viewport(0,0,e.width,e.height),r.bindFramebuffer(r.FRAMEBUFFER,e.framebuffer),r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,e.texture,0),i&&(s?r.clearColor(0,0,0,0):r.clearColor(0,0,0,1),r.clear(r.COLOR_BUFFER_BIT))):(o.popFramebuffer(!1,!1),o.currentFramebuffer||r.viewport(0,0,o.width,o.height)),o.restoreStencilMask(),r.activeTexture(r.TEXTURE0),r.bindTexture(r.TEXTURE_2D,t.texture),r.bufferData(r.ARRAY_BUFFER,this.vertexData,r.STATIC_DRAW),r.drawArrays(r.TRIANGLES,0,6),e&&(r.bindTexture(r.TEXTURE_2D,null),r.bindFramebuffer(r.FRAMEBUFFER,o.currentFramebuffer))},destroy:function(){return this.controller&&this.controller.destroy(),this.gameObject=null,this.controller=null,this.colorMatrix=null,this.fullFrame1=null,this.fullFrame2=null,this.halfFrame1=null,this.halfFrame2=null,h.prototype.destroy.call(this),this}});t.exports=i},87228:(t,e,i)=>{var c=i(95723),P=i(79993),s=i(56694),n=i(37486),r=i(72632),o=i(77310),a=i(12569),h=i(74118),l=i(37410),u=i(85060),d=i(18166),p=i(44775),i=new s({Extends:o,initialize:function(t){var e=r(t,"fragShader",a),i=r(t,"vertShader",d),s=r(t,"drawShader",a),e=[{name:"DrawSprite",fragShader:u,vertShader:d},{name:"CopySprite",fragShader:e,vertShader:i},{name:"DrawGame",fragShader:s,vertShader:d},{name:"ColorMatrix",fragShader:n}],s=r(t,"shaders",[]);t.shaders=e.concat(s),t.vertShader||(t.vertShader=i),t.batchSize=1,o.call(this,t),this.isPreFX=!0,this.customMainSampler=null,this.drawSpriteShader,this.copyShader,this.gameShader,this.colorMatrixShader,this.quadVertexData,this.quadVertexBuffer,this.quadVertexViewF32,this.spriteBounds=new h,this.targetBounds=new h,this.fsTarget,this.tempSprite,this.renderer.isBooted&&(this.manager=this.renderer.pipelines,this.boot())},boot:function(){p.prototype.boot.call(this);var t=this.shaders,e=this.renderer,t=(this.drawSpriteShader=t[0],this.copyShader=t[1],this.gameShader=t[2],this.colorMatrixShader=t[3],this.fsTarget=new l(e,e.width,e.height,1,0,!0,!0),this.renderTargets=this.manager.renderTargets.concat(this.fsTarget),new ArrayBuffer(168));this.quadVertexData=t,this.quadVertexViewF32=new Float32Array(t),this.quadVertexBuffer=e.createVertexBuffer(t,this.gl.STATIC_DRAW),this.onResize(e.width,e.height),this.currentShader=this.copyShader},onResize:function(t,e){var i=this.quadVertexViewF32;i[1]=e,i[22]=e,i[14]=t,i[28]=t,i[35]=t,i[36]=e},batchQuad:function(t,e,i,s,n,r,o,a,h,l,u,c,d,p,f,g,y,v,m){var x=Math.min(e,s,r,a),w=Math.min(i,n,o,h),T=Math.max(e,s,r,a)-x,b=Math.max(i,n,o,h)-w,x=this.spriteBounds.setTo(x,w,T,b),w=t?t.preFX.padding:0,T=Math.abs(Math.max(T+2*w,b+2*w)),b=this.manager.getRenderTarget(T),w=this.targetBounds.setTo(0,0,b.width,b.height),T=(P(w,x.centerX,x.centerY),this.tempSprite=t,this.gl),x=this.renderer,S=(x.clearStencilMask(),this.setShader(this.drawSpriteShader),this.set1i("uMainSampler",0),this.flipProjectionMatrix(!0),t&&(this.onDrawSprite(t,b),t.preFX.onFX(this)),this.fsTarget);return this.flush(),T.viewport(0,0,x.width,x.height),T.bindFramebuffer(T.FRAMEBUFFER,S.framebuffer),T.framebufferTexture2D(T.FRAMEBUFFER,T.COLOR_ATTACHMENT0,T.TEXTURE_2D,S.texture,0),T.clearColor(0,0,0,0),T.clear(T.COLOR_BUFFER_BIT),this.setTexture2D(m),this.batchVert(e,i,l,u,0,v,p),this.batchVert(s,n,l,d,0,v,g),this.batchVert(r,o,c,d,0,v,y),this.batchVert(e,i,l,u,0,v,p),this.batchVert(r,o,c,d,0,v,y),this.batchVert(a,h,c,u,0,v,f),this.flush(),this.flipProjectionMatrix(!1),T.activeTexture(T.TEXTURE0),T.bindTexture(T.TEXTURE_2D,b.texture),T.copyTexSubImage2D(T.TEXTURE_2D,0,0,0,w.x,w.y,w.width,w.height),T.bindFramebuffer(T.FRAMEBUFFER,null),T.bindTexture(T.TEXTURE_2D,null),this.onBatch(t),this.currentShader=this.copyShader,this.onDraw(b,this.manager.getSwapRenderTarget(),this.manager.getAltSwapRenderTarget()),!0},onDrawSprite:function(){},onCopySprite:function(){},copySprite:function(t,e,i,s,n,r,o){void 0===i&&(i=!0),void 0===s&&(s=!0),void 0===n&&(n=!1),void 0===o&&(o=this.copyShader);var a,h=this.gl,l=this.tempSprite,u=(r&&(o=this.colorMatrixShader),this.currentShader=o,this.setVertexBuffer(this.quadVertexBuffer));o.bind(u,!1),this.set1i("uMainSampler",0),l.preFX.onFXCopy(this),this.onCopySprite(t,e,l),r&&(this.set1fv("uColorMatrix",r.getData()),this.set1f("uAlpha",r.alpha)),h.activeTexture(h.TEXTURE0),h.bindTexture(h.TEXTURE_2D,t.texture),t.height>e.height?(h.viewport(0,0,t.width,t.height),this.setTargetUVs(t,e)):(o=e.height-t.height,h.viewport(0,o,t.width,t.height),this.resetUVs()),h.bindFramebuffer(h.FRAMEBUFFER,e.framebuffer),h.framebufferTexture2D(h.FRAMEBUFFER,h.COLOR_ATTACHMENT0,h.TEXTURE_2D,e.texture,0),i&&(h.clearColor(0,0,0,Number(!s)),h.clear(h.COLOR_BUFFER_BIT)),n&&(a=this.renderer.currentBlendMode,this.renderer.setBlendMode(c.ERASE)),h.bufferData(h.ARRAY_BUFFER,this.quadVertexData,h.STATIC_DRAW),h.drawArrays(h.TRIANGLES,0,6),n&&this.renderer.setBlendMode(a),h.bindFramebuffer(h.FRAMEBUFFER,null)},copy:function(t,e){var i=this.gl;this.set1i("uMainSampler",0),i.activeTexture(i.TEXTURE0),i.bindTexture(i.TEXTURE_2D,t.texture),i.viewport(0,0,t.width,t.height),this.setUVs(0,0,0,1,1,1,1,0),i.bindFramebuffer(i.FRAMEBUFFER,e.framebuffer),i.framebufferTexture2D(i.FRAMEBUFFER,i.COLOR_ATTACHMENT0,i.TEXTURE_2D,e.texture,0),i.clearColor(0,0,0,0),i.clear(i.COLOR_BUFFER_BIT),i.bufferData(i.ARRAY_BUFFER,this.quadVertexData,i.STATIC_DRAW),i.drawArrays(i.TRIANGLES,0,6),i.bindFramebuffer(i.FRAMEBUFFER,null)},blendFrames:function(t,e,i,s,n){this.manager.blendFrames(t,e,i,s,n)},blendFramesAdditive:function(t,e,i,s,n){this.manager.blendFramesAdditive(t,e,i,s,n)},drawToGame:function(t){this.currentShader=null,this.setShader(this.copyShader),this.bindAndDraw(t)},copyToGame:function(t){this.currentShader=null,this.setShader(this.gameShader),this.bindAndDraw(t)},bindAndDraw:function(t){var e=this.gl,i=this.renderer,s=(this.set1i("uMainSampler",0),this.customMainSampler?this.setTexture2D(this.customMainSampler):this.setTexture2D(t.texture),this._tempMatrix1.loadIdentity()),n=this.targetBounds.x,r=this.targetBounds.y,o=n+t.width,t=r+t.height,a=s.getX(n,r),h=s.getX(n,t),l=s.getX(o,t),u=s.getX(o,r),c=s.getY(n,r),n=s.getY(n,t),t=s.getY(o,t),s=s.getY(o,r),o=16777215;this.batchVert(a,c,0,0,0,0,o),this.batchVert(h,n,0,1,0,0,o),this.batchVert(l,t,1,1,0,0,o),this.batchVert(a,c,0,0,0,0,o),this.batchVert(l,t,1,1,0,0,o),this.batchVert(u,s,1,0,0,0,o),i.restoreFramebuffer(!1,!0),i.currentFramebuffer||e.viewport(0,0,i.width,i.height),i.restoreStencilMask(),this.flush(),this.tempSprite=null},onDraw:function(t){this.drawToGame(t)},setUVs:function(t,e,i,s,n,r,o,a){var h=this.quadVertexViewF32;h[2]=t,h[3]=e,h[9]=i,h[10]=s,h[16]=n,h[17]=r,h[23]=t,h[24]=e,h[30]=n,h[31]=r,h[37]=o,h[38]=a},setTargetUVs:function(t,e){e=e.height/t.height;this.setUVs(0,e=.5{var s=i(56694),n=i(72632),r=i(77310),i=new s({Extends:r,initialize:function(t){t.topology=5,t.batchSize=n(t,"batchSize",256),r.call(this,t)}});t.exports=i},51212:(t,e,i)=>{var s=i(56694),n=i(72632),r=i(77310),o=i(85060),a=i(18166),h=i(44775),i=new s({Extends:r,initialize:function(t){t.fragShader=n(t,"fragShader",o),t.vertShader=n(t,"vertShader",a),t.forceZero=!0,r.call(this,t)},boot:function(){h.prototype.boot.call(this),this.set1i("uMainSampler",0)}});t.exports=i},60848:(t,e,i)=>{var s=i(2529),l=i(95723),n=i(56694),r=i(65246),o=i(37486),a=i(79060),h=i(72632),u=i(98921),c=i(99365),d=i(44775),i=new n({Extends:d,initialize:function(t){t.renderTarget=h(t,"renderTarget",[{scale:1},{scale:1},{scale:.5},{scale:.5}]),t.vertShader=h(t,"vertShader",c),t.shaders=h(t,"shaders",[{name:"Copy",fragShader:a},{name:"AddBlend",fragShader:s},{name:"LinearBlend",fragShader:u},{name:"ColorMatrix",fragShader:o}]),t.attributes=h(t,"attributes",[{name:"inPosition",size:2},{name:"inTexCoord",size:2}]),t.vertices=[-1,-1,0,0,-1,1,0,1,1,1,1,1,-1,-1,0,0,1,1,1,1,1,-1,1,0],t.batchSize=1,d.call(this,t),this.colorMatrix=new r,this.copyShader,this.addShader,this.linearShader,this.colorMatrixShader,this.fullFrame1,this.fullFrame2,this.halfFrame1,this.halfFrame2},boot:function(){d.prototype.boot.call(this);var t=this.shaders,e=this.renderTargets;this.copyShader=t[0],this.addShader=t[1],this.linearShader=t[2],this.colorMatrixShader=t[3],this.fullFrame1=e[0],this.fullFrame2=e[1],this.halfFrame1=e[2],this.halfFrame2=e[3]},copyFrame:function(t,e,i,s,n){void 0===i&&(i=1),void 0===s&&(s=!0),void 0===n&&(n=!0);var r=this.gl;this.setShader(this.copyShader),this.set1i("uMainSampler",0),this.set1f("uBrightness",i),r.activeTexture(r.TEXTURE0),r.bindTexture(r.TEXTURE_2D,t.texture),e?(r.viewport(0,0,e.width,e.height),r.bindFramebuffer(r.FRAMEBUFFER,e.framebuffer),r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,e.texture,0)):r.viewport(0,0,t.width,t.height),s&&(n?r.clearColor(0,0,0,0):r.clearColor(0,0,0,1),r.clear(r.COLOR_BUFFER_BIT)),r.bufferData(r.ARRAY_BUFFER,this.vertexData,r.STATIC_DRAW),r.drawArrays(r.TRIANGLES,0,6),r.bindFramebuffer(r.FRAMEBUFFER,null),r.bindTexture(r.TEXTURE_2D,null)},blitFrame:function(t,e,i,s,n,r,o){void 0===i&&(i=1),void 0===s&&(s=!0),void 0===n&&(n=!0),void 0===r&&(r=!1),void 0===o&&(o=!1);var a,h=this.gl;this.setShader(this.copyShader),this.set1i("uMainSampler",0),this.set1f("uBrightness",i),h.activeTexture(h.TEXTURE0),h.bindTexture(h.TEXTURE_2D,t.texture),t.height>e.height?(h.viewport(0,0,t.width,t.height),this.setTargetUVs(t,e)):(i=e.height-t.height,h.viewport(0,i,t.width,t.height)),h.bindFramebuffer(h.FRAMEBUFFER,e.framebuffer),h.framebufferTexture2D(h.FRAMEBUFFER,h.COLOR_ATTACHMENT0,h.TEXTURE_2D,e.texture,0),s&&(n?h.clearColor(0,0,0,0):h.clearColor(0,0,0,1),h.clear(h.COLOR_BUFFER_BIT)),r&&(a=this.renderer.currentBlendMode,this.renderer.setBlendMode(l.ERASE)),o&&this.flipY(),h.bufferData(h.ARRAY_BUFFER,this.vertexData,h.STATIC_DRAW),h.drawArrays(h.TRIANGLES,0,6),r&&this.renderer.setBlendMode(a),h.bindFramebuffer(h.FRAMEBUFFER,null),h.bindTexture(h.TEXTURE_2D,null),this.resetUVs()},copyFrameRect:function(t,e,i,s,n,r,o,a){void 0===o&&(o=!0),void 0===a&&(a=!0);var h=this.gl;h.bindFramebuffer(h.FRAMEBUFFER,t.framebuffer),h.framebufferTexture2D(h.FRAMEBUFFER,h.COLOR_ATTACHMENT0,h.TEXTURE_2D,t.texture,0),o&&(a?h.clearColor(0,0,0,0):h.clearColor(0,0,0,1),h.clear(h.COLOR_BUFFER_BIT)),h.activeTexture(h.TEXTURE0),h.bindTexture(h.TEXTURE_2D,e.texture),h.copyTexSubImage2D(h.TEXTURE_2D,0,0,0,i,s,n,r),h.bindFramebuffer(h.FRAMEBUFFER,null),h.bindTexture(h.TEXTURE_2D,null)},copyToGame:function(t){var e=this.gl;this.setShader(this.copyShader),this.set1i("uMainSampler",0),this.set1f("uBrightness",1),this.renderer.popFramebuffer(),e.activeTexture(e.TEXTURE0),e.bindTexture(e.TEXTURE_2D,t.texture),e.bufferData(e.ARRAY_BUFFER,this.vertexData,e.STATIC_DRAW),e.drawArrays(e.TRIANGLES,0,6)},drawFrame:function(t,e,i,s){void 0===i&&(i=!0),void 0===s&&(s=this.colorMatrix);var n=this.gl;this.setShader(this.colorMatrixShader),this.set1i("uMainSampler",0),this.set1fv("uColorMatrix",s.getData()),this.set1f("uAlpha",s.alpha),n.activeTexture(n.TEXTURE0),n.bindTexture(n.TEXTURE_2D,t.texture),e?(n.viewport(0,0,e.width,e.height),n.bindFramebuffer(n.FRAMEBUFFER,e.framebuffer),n.framebufferTexture2D(n.FRAMEBUFFER,n.COLOR_ATTACHMENT0,n.TEXTURE_2D,e.texture,0)):n.viewport(0,0,t.width,t.height),i?n.clearColor(0,0,0,0):n.clearColor(0,0,0,1),n.clear(n.COLOR_BUFFER_BIT),n.bufferData(n.ARRAY_BUFFER,this.vertexData,n.STATIC_DRAW),n.drawArrays(n.TRIANGLES,0,6),n.bindFramebuffer(n.FRAMEBUFFER,null),n.bindTexture(n.TEXTURE_2D,null)},blendFrames:function(t,e,i,s,n,r){void 0===s&&(s=1),void 0===n&&(n=!0),void 0===r&&(r=this.linearShader);var o=this.gl;this.setShader(r),this.set1i("uMainSampler1",0),this.set1i("uMainSampler2",1),this.set1f("uStrength",s),o.activeTexture(o.TEXTURE0),o.bindTexture(o.TEXTURE_2D,t.texture),o.activeTexture(o.TEXTURE1),o.bindTexture(o.TEXTURE_2D,e.texture),i?(o.bindFramebuffer(o.FRAMEBUFFER,i.framebuffer),o.framebufferTexture2D(o.FRAMEBUFFER,o.COLOR_ATTACHMENT0,o.TEXTURE_2D,i.texture,0),o.viewport(0,0,i.width,i.height)):o.viewport(0,0,t.width,t.height),n?o.clearColor(0,0,0,0):o.clearColor(0,0,0,1),o.clear(o.COLOR_BUFFER_BIT),o.bufferData(o.ARRAY_BUFFER,this.vertexData,o.STATIC_DRAW),o.drawArrays(o.TRIANGLES,0,6),o.bindFramebuffer(o.FRAMEBUFFER,null),o.bindTexture(o.TEXTURE_2D,null)},blendFramesAdditive:function(t,e,i,s,n){this.blendFrames(t,e,i,s,n,this.addShader)},clearFrame:function(t,e){void 0===e&&(e=!0);var i=this.gl,t=(i.viewport(0,0,t.width,t.height),i.bindFramebuffer(i.FRAMEBUFFER,t.framebuffer),e?i.clearColor(0,0,0,0):i.clearColor(0,0,0,1),i.clear(i.COLOR_BUFFER_BIT),this.renderer.currentFramebuffer);i.bindFramebuffer(i.FRAMEBUFFER,t)},setUVs:function(t,e,i,s,n,r,o,a){var h=this.vertexViewF32;h[2]=t,h[3]=e,h[6]=i,h[7]=s,h[10]=n,h[11]=r,h[14]=t,h[15]=e,h[18]=n,h[19]=r,h[22]=o,h[23]=a},setTargetUVs:function(t,e){e=e.height/t.height;this.setUVs(0,e=.5{t.exports={BITMAPMASK_PIPELINE:"BitmapMaskPipeline",LIGHT_PIPELINE:"Light2D",POINTLIGHT_PIPELINE:"PointLightPipeline",SINGLE_PIPELINE:"SinglePipeline",MULTI_PIPELINE:"MultiPipeline",ROPE_PIPELINE:"RopePipeline",GRAPHICS_PIPELINE:"GraphicsPipeline",POSTFX_PIPELINE:"PostFXPipeline",UTILITY_PIPELINE:"UtilityPipeline",MOBILE_PIPELINE:"MobilePipeline",FX_PIPELINE:"FxPipeline"}},68726:t=>{t.exports="pipelineafterflush"},67186:t=>{t.exports="pipelinebeforeflush"},22709:t=>{t.exports="pipelinebind"},74469:t=>{t.exports="pipelineboot"},93953:t=>{t.exports="pipelinedestroy"},51687:t=>{t.exports="pipelinerebind"},25034:t=>{t.exports="pipelineresize"},18970:(t,e,i)=>{t.exports={AFTER_FLUSH:i(68726),BEFORE_FLUSH:i(67186),BIND:i(22709),BOOT:i(74469),DESTROY:i(93953),REBIND:i(51687),RESIZE:i(25034)}},32469:(t,e,i)=>{var s=i(56694),n=i(87751),r=i(80486),i=new s({Extends:r,initialize:function(t){r.call(this,{game:t,fragShader:n}),this.amount=1},onPreRender:function(t,e){t=this.getController(t),this.set1f("amount",t.amount,e)}});t.exports=i},2134:(t,e,i)=>{var s=i(56694),n=i(88222),r=i(80486),i=new s({Extends:r,initialize:function(t){r.call(this,{game:t,fragShader:n}),this.steps=4,this.offsetX=1,this.offsetY=1,this.blurStrength=1,this.strength=1,this.glcolor=[1,1,1]},onPreRender:function(t){t=this.getController(t),this.set1f("strength",t.blurStrength),this.set3fv("color",t.glcolor)},onDraw:function(t){var e=this.getController(),i=this.fullFrame1,s=this.fullFrame2;this.copyFrame(t,s);for(var n=2/t.width*e.offsetX,r=2/t.height*e.offsetY,o=0;o{var s=i(56694),n=i(35491),r=i(75568),o=i(44481),a=i(80486),i=new s({Extends:a,initialize:function(t){a.call(this,{game:t,shaders:[{name:"Gaussian5",fragShader:n},{name:"Gaussian9",fragShader:r},{name:"Gaussian13",fragShader:o}]}),this.activeShader=this.shaders[0],this.x=2,this.y=2,this.steps=4,this.strength=1,this.glcolor=[1,1,1]},setQualityLow:function(){return this.activeShader=this.shaders[0],this},setQualityMedium:function(){return this.activeShader=this.shaders[1],this},setQualityHigh:function(){return this.activeShader=this.shaders[2],this},onDraw:function(t){var e=this.getController(),i=this.gl,s=this.fullFrame1,n=i.getParameter(i.FRAMEBUFFER_BINDING);this.bind(this.activeShader),i.activeTexture(i.TEXTURE0),i.viewport(0,0,t.width,t.height),this.set1i("uMainSampler",0),this.set2f("resolution",t.width,t.height),this.set1f("strength",e.strength),this.set3fv("color",e.glcolor);for(var r=0;r{var s=i(56694),n=i(69960),r=i(80486),i=new s({Extends:r,initialize:function(t){r.call(this,{game:t,fragShader:n}),this.isTiltShift=!1,this.strength=1,this.blurX=1,this.blurY=1,this.radius=.5,this.amount=1,this.contrast=.2},onPreRender:function(t,e,i,s){t=this.getController(t),this.set1f("radius",t.radius,e),this.set1f("amount",t.amount,e),this.set1f("contrast",t.contrast,e),this.set1f("strength",t.strength,e),this.set2f("blur",t.blurX,t.blurY,e),this.setBoolean("isTiltShift",t.isTiltShift,e),i&&s&&this.set2f("resolution",i,s,e)},onDraw:function(t){this.set2f("resolution",t.width,t.height),this.bindAndDraw(t)}});t.exports=i},4323:(t,e,i)=>{var s=i(56694),n=i(33754),r=i(80486),i=new s({Extends:r,initialize:function(t){r.call(this,{game:t,fragShader:n}),this.scale=1,this.feather=.005,this.thickness=8,this.glcolor=[1,.2,.7],this.glcolor2=[1,0,0,.4]},onPreRender:function(t,e,i,s){t=this.getController(t),this.set1f("scale",t.scale,e),this.set1f("feather",t.feather,e),this.set1f("thickness",t.thickness,e),this.set3fv("color",t.glcolor,e),this.set4fv("backgroundColor",t.glcolor2,e),i&&s&&this.set2f("resolution",i,s,e)},onDraw:function(t){this.set2f("resolution",t.width,t.height),this.bindAndDraw(t)}});t.exports=i},92066:(t,e,i)=>{var s=i(56694),n=i(80486),i=new s({Extends:n,initialize:function(t){n.call(this,{game:t})},onDraw:function(t){var e=this.fullFrame1;this.controller?this.manager.drawFrame(t,e,!0,this.controller):this.drawFrame(t,e),this.copyToGame(e)}});t.exports=i},89581:(t,e,i)=>{var s=i(56694),n=i(35668),r=i(80486),i=new s({Extends:r,initialize:function(t){r.call(this,{game:t,fragShader:n}),this.x=.005,this.y=.005,this.glTexture},onBoot:function(){this.setTexture("__WHITE")},setTexture:function(t){t=this.game.textures.getFrame(t);t&&(this.glTexture=t.glTexture)},onDraw:function(t){var e=this.getController(),i=this.fullFrame1;this.bind(),this.set1i("uMainSampler",0),this.set1i("uDisplacementSampler",1),this.set2f("amount",e.x,e.y),this.bindTexture(e.glTexture,1),this.copySprite(t,i),this.copyToGame(i)}});t.exports=i},55084:(t,e,i)=>{var s=i(56694),n=i(72632),r=i(69675),o=i(80486),a=i(75512),i=new s({Extends:o,initialize:function(t,e){var i=n(e,"quality",.1),e=n(e,"distance",10);o.call(this,{game:t,fragShader:a.setGlowQuality(r,t,i,e)}),this.outerStrength=4,this.innerStrength=0,this.knockout=!1,this.glcolor=[1,1,1,1]},onPreRender:function(t,e,i,s){t=this.getController(t),this.set1f("outerStrength",t.outerStrength,e),this.set1f("innerStrength",t.innerStrength,e),this.set4fv("glowColor",t.glcolor,e),this.setBoolean("knockout",t.knockout,e),i&&s&&this.set2f("resolution",i,s,e)},onDraw:function(t){this.set2f("resolution",t.width,t.height),this.bindAndDraw(t)}});t.exports=i},41653:(t,e,i)=>{var s=i(56694),n=i(90993),r=i(80486),i=new s({Extends:r,initialize:function(t){r.call(this,{game:t,fragShader:n}),this.alpha=.2,this.size=0,this.fromX=0,this.fromY=0,this.toX=0,this.toY=1,this.glcolor1=[255,0,0],this.glcolor2=[0,255,0]},onPreRender:function(t,e){t=this.getController(t),this.set1f("alpha",t.alpha,e),this.set1i("size",t.size,e),this.set3fv("color1",t.glcolor1,e),this.set3fv("color2",t.glcolor2,e),this.set2f("positionFrom",t.fromX,t.fromY,e),this.set2f("positionTo",t.toX,t.toY,e)}});t.exports=i},73416:(t,e,i)=>{var s=i(56694),n=i(37945),r=i(80486),i=new s({Extends:r,initialize:function(t){r.call(this,{game:t,fragShader:n}),this.amount=1},onPreRender:function(t,e,i,s){t=this.getController(t),this.set1f("amount",t.amount,e),i&&s&&this.set2f("resolution",i,s,e)},onDraw:function(t){this.set2f("resolution",t.width,t.height),this.bindAndDraw(t)}});t.exports=i},58049:(t,e,i)=>{var s=i(56694),n=i(85718),r=i(80486),i=new s({Extends:r,initialize:function(t){r.call(this,{game:t,fragShader:n}),this.x=0,this.y=0,this.decay=.1,this.power=1,this.glcolor=[0,0,0,1],this.samples=6,this.intensity=1},onPreRender:function(t,e){var i=(t=this.getController(t)).samples;this.set1i("samples",i,e),this.set1f("intensity",t.intensity,e),this.set1f("decay",t.decay,e),this.set1f("power",t.power/i,e),this.set2f("lightPosition",t.x,t.y,e),this.set4fv("color",t.glcolor,e)}});t.exports=i},18026:(t,e,i)=>{var s=i(56694),n=i(13740),r=i(80486),i=new s({Extends:r,initialize:function(t){r.call(this,{game:t,fragShader:n}),this.speed=.5,this.lineWidth=.5,this.gradient=3,this.reveal=!1},onPreRender:function(t,e,i,s){t=this.getController(t),this.setTime("time",e),this.set1f("speed",t.speed,e),this.set1f("lineWidth",t.lineWidth,e),this.set1f("gradient",t.gradient,e),this.setBoolean("reveal",t.reveal,e),i&&s&&this.set2f("resolution",i,s,e)},onDraw:function(t){this.set2f("resolution",t.width,t.height),this.bindAndDraw(t)}});t.exports=i},72381:(t,e,i)=>{var s=i(56694),n=i(80617),r=i(80486),i=new s({Extends:r,initialize:function(t){r.call(this,{game:t,fragShader:n}),this.x=.5,this.y=.5,this.radius=.5,this.strength=.5},onPreRender:function(t,e){t=this.getController(t),this.set1f("radius",t.radius,e),this.set1f("strength",t.strength,e),this.set2f("position",t.x,t.y,e)}});t.exports=i},80542:(t,e,i)=>{var s=i(56694),n=i(62879),r=i(80486),i=new s({Extends:r,initialize:function(t){r.call(this,{game:t,fragShader:n}),this.progress=0,this.wipeWidth=.1,this.direction=0,this.axis=0,this.reveal=!1},onPreRender:function(t,e){var i=(t=this.getController(t)).progress,s=t.wipeWidth,n=t.direction,r=t.axis;this.set4f("config",i,s,n,r,e),this.setBoolean("reveal",t.reveal,e)}});t.exports=i},58136:(t,e,i)=>{i={Barrel:i(32469),Bloom:i(2134),Blur:i(63377),Bokeh:i(49745),Circle:i(4323),ColorMatrix:i(92066),Displacement:i(89581),Glow:i(55084),Gradient:i(41653),Pixelate:i(73416),Shadow:i(58049),Shine:i(18026),Vignette:i(72381),Wipe:i(80542)};t.exports=i},62253:(t,e,i)=>{var s=i(65641),i=i(98611)(!1,{FX:i(58136),BitmapMaskPipeline:i(5583),Events:i(18970),FXPipeline:i(81828),LightPipeline:i(66901),MobilePipeline:i(71264),MultiPipeline:i(77310),PointLightPipeline:i(10919),PostFXPipeline:i(80486),PreFXPipeline:i(87228),RopePipeline:i(21213),SinglePipeline:i(51212),UtilityPipeline:i(60848)},s);t.exports=i},2529:t=>{t.exports=["#define SHADER_NAME PHASER_ADD_BLEND_FS","precision mediump float;","uniform sampler2D uMainSampler1;","uniform sampler2D uMainSampler2;","uniform float uStrength;","varying vec2 outTexCoord;","void main ()","{"," vec4 frame1 = texture2D(uMainSampler1, outTexCoord);"," vec4 frame2 = texture2D(uMainSampler2, outTexCoord);"," gl_FragColor = frame1 + frame2 * uStrength;","}"].join("\n")},91679:t=>{t.exports=["#define SHADER_NAME PHASER_BITMAP_MASK_FS","precision mediump float;","uniform vec2 uResolution;","uniform sampler2D uMainSampler;","uniform sampler2D uMaskSampler;","uniform bool uInvertMaskAlpha;","void main ()","{"," vec2 uv = gl_FragCoord.xy / uResolution;"," vec4 mainColor = texture2D(uMainSampler, uv);"," vec4 maskColor = texture2D(uMaskSampler, uv);"," if (!uInvertMaskAlpha)"," {"," mainColor *= maskColor.a;"," }"," else"," {"," mainColor *= (1.0 - maskColor.a);"," }"," gl_FragColor = mainColor;","}"].join("\n")},89053:t=>{t.exports=["#define SHADER_NAME PHASER_BITMAP_MASK_VS","precision mediump float;","attribute vec2 inPosition;","void main ()","{"," gl_Position = vec4(inPosition, 0.0, 1.0);","}"].join("\n")},37486:t=>{t.exports=["#define SHADER_NAME PHASER_COLORMATRIX_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform float uColorMatrix[20];","uniform float uAlpha;","varying vec2 outTexCoord;","void main ()","{"," vec4 c = texture2D(uMainSampler, outTexCoord);"," if (uAlpha == 0.0)"," {"," gl_FragColor = c;"," return;"," }"," if (c.a > 0.0)"," {"," c.rgb /= c.a;"," }"," vec4 result;"," result.r = (uColorMatrix[0] * c.r) + (uColorMatrix[1] * c.g) + (uColorMatrix[2] * c.b) + (uColorMatrix[3] * c.a) + uColorMatrix[4];"," result.g = (uColorMatrix[5] * c.r) + (uColorMatrix[6] * c.g) + (uColorMatrix[7] * c.b) + (uColorMatrix[8] * c.a) + uColorMatrix[9];"," result.b = (uColorMatrix[10] * c.r) + (uColorMatrix[11] * c.g) + (uColorMatrix[12] * c.b) + (uColorMatrix[13] * c.a) + uColorMatrix[14];"," result.a = (uColorMatrix[15] * c.r) + (uColorMatrix[16] * c.g) + (uColorMatrix[17] * c.b) + (uColorMatrix[18] * c.a) + uColorMatrix[19];"," vec3 rgb = mix(c.rgb, result.rgb, uAlpha);"," rgb *= result.a;"," gl_FragColor = vec4(rgb, result.a);","}"].join("\n")},79060:t=>{t.exports=["#define SHADER_NAME PHASER_COPY_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform float uBrightness;","varying vec2 outTexCoord;","void main ()","{"," gl_FragColor = texture2D(uMainSampler, outTexCoord) * uBrightness;","}"].join("\n")},87751:t=>{t.exports=["#define SHADER_NAME BARREL_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform float amount;","varying vec2 outTexCoord;","vec2 Distort(vec2 p)","{"," float theta = atan(p.y, p.x);"," float radius = length(p);"," radius = pow(radius, amount);"," p.x = radius * cos(theta);"," p.y = radius * sin(theta);"," return 0.5 * (p + 1.0);","}","void main()","{"," vec2 xy = 2.0 * outTexCoord - 1.0;"," vec2 texCoord = outTexCoord;"," if (length(xy) < 1.0)"," {"," texCoord = Distort(xy);"," }"," gl_FragColor = texture2D(uMainSampler, texCoord);","}"].join("\n")},88222:t=>{t.exports=["#define SHADER_NAME BLOOM_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 offset;","uniform float strength;","uniform vec3 color;","varying vec2 outTexCoord;","void main ()","{"," vec4 sum = texture2D(uMainSampler, outTexCoord) * 0.204164 * strength;"," sum = sum + texture2D(uMainSampler, outTexCoord + offset * 1.407333) * 0.304005;"," sum = sum + texture2D(uMainSampler, outTexCoord - offset * 1.407333) * 0.304005;"," sum = sum + texture2D(uMainSampler, outTexCoord + offset * 3.294215) * 0.093913;"," gl_FragColor = (sum + texture2D(uMainSampler, outTexCoord - offset * 3.294215) * 0.093913) * vec4(color, 1);","}"].join("\n")},44481:t=>{t.exports=["#define SHADER_NAME BLUR_HIGH_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform vec2 offset;","uniform float strength;","uniform vec3 color;","varying vec2 outTexCoord;","void main ()","{"," vec2 uv = outTexCoord;"," vec4 col = vec4(0.0);"," vec2 off1 = vec2(1.411764705882353) * offset * strength;"," vec2 off2 = vec2(3.2941176470588234) * offset * strength;"," vec2 off3 = vec2(5.176470588235294) * offset * strength;"," col += texture2D(uMainSampler, uv) * 0.1964825501511404;"," col += texture2D(uMainSampler, uv + (off1 / resolution)) * 0.2969069646728344;"," col += texture2D(uMainSampler, uv - (off1 / resolution)) * 0.2969069646728344;"," col += texture2D(uMainSampler, uv + (off2 / resolution)) * 0.09447039785044732;"," col += texture2D(uMainSampler, uv - (off2 / resolution)) * 0.09447039785044732;"," col += texture2D(uMainSampler, uv + (off3 / resolution)) * 0.010381362401148057;"," col += texture2D(uMainSampler, uv - (off3 / resolution)) * 0.010381362401148057;"," gl_FragColor = col * vec4(color, 1.0);","}"].join("\n")},35491:t=>{t.exports=["#define SHADER_NAME BLUR_LOW_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform float strength;","uniform vec3 color;","varying vec2 outTexCoord;","void main ()","{"," vec2 uv = outTexCoord;"," vec4 col = vec4(0.0);"," vec2 offset = vec2(1.333) * strength;"," col += texture2D(uMainSampler, uv) * 0.29411764705882354;"," col += texture2D(uMainSampler, uv + (offset / resolution)) * 0.35294117647058826;"," col += texture2D(uMainSampler, uv - (offset / resolution)) * 0.35294117647058826;"," gl_FragColor = col * vec4(color, 1.0);","}"].join("\n")},75568:t=>{t.exports=["#define SHADER_NAME BLUR_MED_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform vec2 offset;","uniform float strength;","uniform vec3 color;","varying vec2 outTexCoord;","void main ()","{"," vec2 uv = outTexCoord;"," vec4 col = vec4(0.0);"," vec2 off1 = vec2(1.3846153846) * offset * strength;"," vec2 off2 = vec2(3.2307692308) * offset * strength;"," col += texture2D(uMainSampler, uv) * 0.2270270270;"," col += texture2D(uMainSampler, uv + (off1 / resolution)) * 0.3162162162;"," col += texture2D(uMainSampler, uv - (off1 / resolution)) * 0.3162162162;"," col += texture2D(uMainSampler, uv + (off2 / resolution)) * 0.0702702703;"," col += texture2D(uMainSampler, uv - (off2 / resolution)) * 0.0702702703;"," gl_FragColor = col * vec4(color, 1.0);","}"].join("\n")},69960:t=>{t.exports=["#define SHADER_NAME BOKEH_FS","precision mediump float;","#define ITERATIONS 100.0","#define ONEOVER_ITR 1.0 / ITERATIONS","#define PI 3.141596","#define GOLDEN_ANGLE 2.39996323","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform float radius;","uniform float amount;","uniform float contrast;","uniform bool isTiltShift;","uniform float strength;","uniform vec2 blur;","varying vec2 outTexCoord;","vec2 Sample (in float theta, inout float r)","{"," r += 1.0 / r;"," return (r - 1.0) * vec2(cos(theta), sin(theta)) * 0.06;","}","vec3 Bokeh (sampler2D tex, vec2 uv, float radius)","{"," vec3 acc = vec3(0.0);"," vec3 div = vec3(0.0);"," vec2 pixel = vec2(resolution.y / resolution.x, 1.0) * radius * .025;"," float r = 1.0;"," for (float j = 0.0; j < GOLDEN_ANGLE * ITERATIONS; j += GOLDEN_ANGLE)"," {"," vec3 col = texture2D(tex, uv + pixel * Sample(j, r)).xyz;"," col = contrast > 0.0 ? col * col * (1.0 + contrast) : col;"," vec3 bokeh = vec3(0.5) + pow(col, vec3(10.0)) * amount;"," acc += col * bokeh;"," div += bokeh;"," }"," return acc / div;","}","void main ()","{"," float shift = 1.0;"," if (isTiltShift)"," {"," vec2 uv = vec2(gl_FragCoord.xy / resolution + vec2(-0.5, -0.5)) * 2.0;"," float centerStrength = 1.0;"," shift = length(uv * blur * strength) * centerStrength;"," }"," gl_FragColor = vec4(Bokeh(uMainSampler, outTexCoord * vec2(1.0, 1.0), radius * shift), 0.0);","}"].join("\n")},33754:t=>{t.exports=["#define SHADER_NAME CIRCLE_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform vec3 color;","uniform vec4 backgroundColor;","uniform float thickness;","uniform float scale;","uniform float feather;","varying vec2 outTexCoord;","void main ()","{"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec2 position = (gl_FragCoord.xy / resolution.xy) * 2.0 - 1.0;"," float aspectRatio = resolution.x / resolution.y;"," position.x *= aspectRatio;"," float grad = length(position);"," float outer = aspectRatio;"," float inner = outer - (thickness * 2.0 / resolution.y);"," if (aspectRatio >= 1.0)"," {"," float f = 2.0 + (resolution.y / resolution.x);"," outer = 1.0;"," inner = 1.0 - (thickness * f / resolution.x);"," }"," outer *= scale;"," inner *= scale;"," float circle = smoothstep(outer, outer - 0.01, grad);"," float ring = circle - smoothstep(inner, inner - feather, grad);"," texture = mix(backgroundColor * backgroundColor.a, texture, texture.a);"," texture = (texture * (circle - ring));"," gl_FragColor = vec4(texture.rgb + (ring * color), texture.a);","}"].join("\n")},35668:t=>{t.exports=["#define SHADER_NAME DISPLACEMENT_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform sampler2D uDisplacementSampler;","uniform vec2 amount;","varying vec2 outTexCoord;","void main ()","{"," vec2 disp = (-vec2(0.5, 0.5) + texture2D(uDisplacementSampler, outTexCoord).rr) * amount;"," gl_FragColor = texture2D(uMainSampler, outTexCoord + disp).rgba;","}"].join("\n")},69675:t=>{t.exports=["#define SHADER_NAME GLOW_FS","precision mediump float;","uniform sampler2D uMainSampler;","varying vec2 outTexCoord;","uniform float outerStrength;","uniform float innerStrength;","uniform vec2 resolution;","uniform vec4 glowColor;","uniform bool knockout;","const float PI = 3.14159265358979323846264;","const float DIST = __DIST__;","const float SIZE = min(__SIZE__, PI * 2.0);","const float STEP = ceil(PI * 2.0 / SIZE);","const float MAX_ALPHA = STEP * DIST * (DIST + 1.0) / 2.0;","void main ()","{"," vec2 px = vec2(1.0 / resolution.x, 1.0 / resolution.y);"," float totalAlpha = 0.0;"," vec2 direction;"," vec2 displaced;"," vec4 color;"," for (float angle = 0.0; angle < PI * 2.0; angle += SIZE)"," {"," direction = vec2(cos(angle), sin(angle)) * px;"," for (float curDistance = 0.0; curDistance < DIST; curDistance++)"," {"," displaced = outTexCoord + direction * (curDistance + 1.0);"," color = texture2D(uMainSampler, displaced);"," totalAlpha += (DIST - curDistance) * color.a;"," }"," }"," color = texture2D(uMainSampler, outTexCoord);"," float alphaRatio = (totalAlpha / MAX_ALPHA);"," float innerGlowAlpha = (1.0 - alphaRatio) * innerStrength * color.a;"," float innerGlowStrength = min(1.0, innerGlowAlpha);"," vec4 innerColor = mix(color, glowColor, innerGlowStrength);"," float outerGlowAlpha = alphaRatio * outerStrength * (1.0 - color.a);"," float outerGlowStrength = min(1.0 - innerColor.a, outerGlowAlpha);"," vec4 outerGlowColor = outerGlowStrength * glowColor.rgba;"," if (knockout)"," {"," float resultAlpha = outerGlowAlpha + innerGlowAlpha;"," gl_FragColor = vec4(glowColor.rgb * resultAlpha, resultAlpha);"," }"," else"," {"," gl_FragColor = innerColor + outerGlowColor;"," }","}"].join("\n")},90993:t=>{t.exports=["#define SHADER_NAME GRADIENT_FS","#define SRGB_TO_LINEAR(c) pow((c), vec3(2.2))","#define LINEAR_TO_SRGB(c) pow((c), vec3(1.0 / 2.2))","#define SRGB(r, g, b) SRGB_TO_LINEAR(vec3(float(r), float(g), float(b)) / 255.0)","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 positionFrom;","uniform vec2 positionTo;","uniform vec3 color1;","uniform vec3 color2;","uniform float alpha;","uniform int size;","varying vec2 outTexCoord;","float gradientNoise(in vec2 uv)","{"," const vec3 magic = vec3(0.06711056, 0.00583715, 52.9829189);"," return fract(magic.z * fract(dot(uv, magic.xy)));","}","float stepped (in float s, in float scale, in int steps)","{"," return steps > 0 ? floor( s / ((1.0 * scale) / float(steps))) * 1.0 / float(steps - 1) : s;","}","void main ()","{"," vec2 a = positionFrom;"," vec2 b = positionTo;"," vec2 ba = b - a;"," float d = dot(outTexCoord - a, ba) / dot(ba, ba);"," float t = size > 0 ? stepped(d, 1.0, size) : d;"," t = smoothstep(0.0, 1.0, clamp(t, 0.0, 1.0));"," vec3 color = mix(SRGB(color1.r, color1.g, color1.b), SRGB(color2.r, color2.g, color2.b), t);"," color = LINEAR_TO_SRGB(color);"," color += (1.0 / 255.0) * gradientNoise(outTexCoord) - (0.5 / 255.0);"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," gl_FragColor = vec4(mix(color.rgb, texture.rgb, alpha), 1.0) * texture.a;","}"].join("\n")},37945:t=>{t.exports=["#define SHADER_NAME PIXELATE_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform float amount;","varying vec2 outTexCoord;","void main ()","{"," float pixelSize = floor(2.0 + amount);"," vec2 center = pixelSize * floor(outTexCoord * resolution / pixelSize) + pixelSize * vec2(0.5, 0.5);"," vec2 corner1 = center + pixelSize * vec2(-0.5, -0.5);"," vec2 corner2 = center + pixelSize * vec2(+0.5, -0.5);"," vec2 corner3 = center + pixelSize * vec2(+0.5, +0.5);"," vec2 corner4 = center + pixelSize * vec2(-0.5, +0.5);"," vec4 pixel = 0.4 * texture2D(uMainSampler, center / resolution);"," pixel += 0.15 * texture2D(uMainSampler, corner1 / resolution);"," pixel += 0.15 * texture2D(uMainSampler, corner2 / resolution);"," pixel += 0.15 * texture2D(uMainSampler, corner3 / resolution);"," pixel += 0.15 * texture2D(uMainSampler, corner4 / resolution);"," gl_FragColor = pixel;","}"].join("\n")},85718:t=>{t.exports=["#define SHADER_NAME SHADOW_FS","precision mediump float;","uniform sampler2D uMainSampler;","varying vec2 outTexCoord;","uniform vec2 lightPosition;","uniform vec4 color;","uniform float decay;","uniform float power;","uniform float intensity;","uniform int samples;","const int MAX = 12;","void main ()","{"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec2 pc = (lightPosition - outTexCoord) * intensity;"," float shadow = 0.0;"," float limit = max(float(MAX), float(samples));"," for (int i = 0; i < MAX; ++i)"," {"," if (i >= samples)"," {"," break;"," }"," shadow += texture2D(uMainSampler, outTexCoord + float(i) * decay / limit * pc).a * power;"," }"," float mask = 1.0 - texture.a;"," gl_FragColor = mix(texture, color, shadow * mask);","}"].join("\n")},13740:t=>{t.exports=["#define SHADER_NAME SHINE_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec2 resolution;","uniform bool reveal;","uniform float speed;","uniform float time;","uniform float lineWidth;","uniform float gradient;","varying vec2 outTexCoord;","void main ()","{","\tvec2 uv = gl_FragCoord.xy / resolution.xy;"," vec4 tex = texture2D(uMainSampler, outTexCoord);"," vec4 col1 = vec4(0.3, 0.0, 0.0, 1.0);"," vec4 col2 = vec4(0.85, 0.85, 0.85, 1.0);"," uv.x = uv.x - mod(time * speed, 2.0) + 0.5;"," float y = uv.x * gradient;"," float s = smoothstep(y - lineWidth, y, uv.y) - smoothstep(y, y + lineWidth, uv.y);"," gl_FragColor = (((s * col1) + (s * col2)) * tex);"," if (!reveal)"," {"," gl_FragColor += tex;"," }","}"].join("\n")},80617:t=>{t.exports=["#define SHADER_NAME VIGNETTE_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform float radius;","uniform float strength;","uniform vec2 position;","varying vec2 outTexCoord;","void main ()","{"," vec4 col = vec4(1.0);"," float d = length(outTexCoord - position);"," if (d <= radius)"," {"," float g = d / radius;"," g = sin(g * 3.14 * strength);"," \tcol = vec4(g * g * g);"," }"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," gl_FragColor = texture * (1.0 - col);","}"].join("\n")},62879:t=>{t.exports=["#define SHADER_NAME WIPE_FS","precision mediump float;","uniform sampler2D uMainSampler;","uniform vec4 config;","uniform bool reveal;","varying vec2 outTexCoord;","void main ()","{"," vec2 uv = outTexCoord;"," vec4 color0;"," vec4 color1;"," if (reveal)"," {"," color0 = vec4(0);"," color1 = texture2D(uMainSampler, uv);"," }"," else"," {"," color0 = texture2D(uMainSampler, uv);"," color1 = vec4(0);"," }"," float distance = config.x;"," float width = config.y;"," float direction = config.z;"," float axis = uv.x;"," if (config.w == 1.0)"," {"," axis = uv.y;"," }"," float adjust = mix(width, -width, distance);"," float value = smoothstep(distance - width, distance + width, abs(direction - axis) + adjust);"," gl_FragColor = mix(color1, color0, value);","}"].join("\n")},65045:t=>{t.exports=["#define SHADER_NAME PHASER_LIGHT_FS","precision mediump float;","struct Light","{"," vec2 position;"," vec3 color;"," float intensity;"," float radius;","};","const int kMaxLights = %LIGHT_COUNT%;","uniform vec4 uCamera; /* x, y, rotation, zoom */","uniform vec2 uResolution;","uniform sampler2D uMainSampler;","uniform sampler2D uNormSampler;","uniform vec3 uAmbientLightColor;","uniform Light uLights[kMaxLights];","uniform mat3 uInverseRotationMatrix;","uniform int uLightCount;","varying vec2 outTexCoord;","varying float outTexId;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," vec3 finalColor = vec3(0.0, 0.0, 0.0);"," vec4 texel = vec4(outTint.bgr * outTint.a, outTint.a);"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec4 color = texture * texel;"," if (outTintEffect == 1.0)"," {"," color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a);"," }"," else if (outTintEffect == 2.0)"," {"," color = texel;"," }"," vec3 normalMap = texture2D(uNormSampler, outTexCoord).rgb;"," vec3 normal = normalize(uInverseRotationMatrix * vec3(normalMap * 2.0 - 1.0));"," vec2 res = vec2(min(uResolution.x, uResolution.y)) * uCamera.w;"," for (int index = 0; index < kMaxLights; ++index)"," {"," if (index < uLightCount)"," {"," Light light = uLights[index];"," vec3 lightDir = vec3((light.position.xy / res) - (gl_FragCoord.xy / res), 0.1);"," vec3 lightNormal = normalize(lightDir);"," float distToSurf = length(lightDir) * uCamera.w;"," float diffuseFactor = max(dot(normal, lightNormal), 0.0);"," float radius = (light.radius / res.x * uCamera.w) * uCamera.w;"," float attenuation = clamp(1.0 - distToSurf * distToSurf / (radius * radius), 0.0, 1.0);"," vec3 diffuse = light.color * diffuseFactor;"," finalColor += (attenuation * diffuse) * light.intensity;"," }"," }"," vec4 colorOutput = vec4(uAmbientLightColor + finalColor, 1.0);"," gl_FragColor = color * vec4(colorOutput.rgb * colorOutput.a, colorOutput.a);","}"].join("\n")},98921:t=>{t.exports=["#define SHADER_NAME PHASER_LINEAR_BLEND_FS","precision mediump float;","uniform sampler2D uMainSampler1;","uniform sampler2D uMainSampler2;","uniform float uStrength;","varying vec2 outTexCoord;","void main ()","{"," vec4 frame1 = texture2D(uMainSampler1, outTexCoord);"," vec4 frame2 = texture2D(uMainSampler2, outTexCoord);"," gl_FragColor = mix(frame1, frame2 * uStrength, 0.5);","}"].join("\n")},25005:t=>{t.exports=["#define SHADER_NAME PHASER_MESH_FS","precision mediump float;","uniform vec3 uLightPosition;","uniform vec3 uLightAmbient;","uniform vec3 uLightDiffuse;","uniform vec3 uLightSpecular;","uniform vec3 uFogColor;","uniform float uFogNear;","uniform float uFogFar;","uniform vec3 uMaterialAmbient;","uniform vec3 uMaterialDiffuse;","uniform vec3 uMaterialSpecular;","uniform float uMaterialShine;","uniform vec3 uCameraPosition;","uniform sampler2D uTexture;","varying vec2 vTextureCoord;","varying vec3 vNormal;","varying vec3 vPosition;","void main (void)","{"," vec4 color = texture2D(uTexture, vTextureCoord);"," vec3 ambient = uLightAmbient * uMaterialAmbient;"," vec3 norm = normalize(vNormal);"," vec3 lightDir = normalize(uLightPosition - vPosition);"," float diff = max(dot(norm, lightDir), 0.0);"," vec3 diffuse = uLightDiffuse * (diff * uMaterialDiffuse);"," vec3 viewDir = normalize(uCameraPosition - vPosition);"," vec3 reflectDir = reflect(-lightDir, norm);"," float spec = pow(max(dot(viewDir, reflectDir), 0.0), uMaterialShine);"," vec3 specular = uLightSpecular * (spec * uMaterialSpecular);"," vec3 result = (ambient + diffuse + specular) * color.rgb;"," float depth = gl_FragCoord.z / gl_FragCoord.w;"," float fogFactor = smoothstep(uFogNear, uFogFar, depth);"," gl_FragColor.rgb = mix(result.rgb, uFogColor, fogFactor);"," gl_FragColor.a = color.a;","}"].join("\n")},94914:t=>{t.exports=["#define SHADER_NAME PHASER_MESH_VS","precision mediump float;","attribute vec3 aVertexPosition;","attribute vec3 aVertexNormal;","attribute vec2 aTextureCoord;","uniform mat4 uViewProjectionMatrix;","uniform mat4 uModelMatrix;","uniform mat4 uNormalMatrix;","varying vec2 vTextureCoord;","varying vec3 vNormal;","varying vec3 vPosition;","void main ()","{"," vTextureCoord = aTextureCoord;"," vPosition = vec3(uModelMatrix * vec4(aVertexPosition, 1.0));"," vNormal = vec3(uNormalMatrix * vec4(aVertexNormal, 1.0));"," gl_Position = uViewProjectionMatrix * uModelMatrix * vec4(aVertexPosition, 1.0);","}"].join("\n")},11263:t=>{t.exports=["#define SHADER_NAME PHASER_MOBILE_FS","#ifdef GL_FRAGMENT_PRECISION_HIGH","precision highp float;","#else","precision mediump float;","#endif","uniform sampler2D uMainSampler;","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," vec4 texel = vec4(outTint.bgr * outTint.a, outTint.a);"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec4 color = texture * texel;"," if (outTintEffect == 1.0)"," {"," color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a);"," }"," else if (outTintEffect == 2.0)"," {"," color = texel;"," }"," gl_FragColor = color;","}"].join("\n")},51852:t=>{t.exports=["#define SHADER_NAME PHASER_MOBILE_VS","#ifdef GL_FRAGMENT_PRECISION_HIGH","precision highp float;","#else","precision mediump float;","#endif","uniform mat4 uProjectionMatrix;","attribute vec2 inPosition;","attribute vec2 inTexCoord;","attribute float inTexId;","attribute float inTintEffect;","attribute vec4 inTint;","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);"," outTexCoord = inTexCoord;"," outTint = inTint;"," outTintEffect = inTintEffect;","}"].join("\n")},53787:t=>{t.exports=["#define SHADER_NAME PHASER_MULTI_FS","#ifdef GL_FRAGMENT_PRECISION_HIGH","precision highp float;","#else","precision mediump float;","#endif","uniform sampler2D uMainSampler[%count%];","varying vec2 outTexCoord;","varying float outTexId;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," vec4 texture;"," %forloop%"," vec4 texel = vec4(outTint.bgr * outTint.a, outTint.a);"," vec4 color = texture * texel;"," if (outTintEffect == 1.0)"," {"," color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a);"," }"," else if (outTintEffect == 2.0)"," {"," color = texel;"," }"," gl_FragColor = color;","}"].join("\n")},15968:t=>{t.exports=["#define SHADER_NAME PHASER_MULTI_VS","#ifdef GL_FRAGMENT_PRECISION_HIGH","precision highp float;","#else","precision mediump float;","#endif","uniform mat4 uProjectionMatrix;","attribute vec2 inPosition;","attribute vec2 inTexCoord;","attribute float inTexId;","attribute float inTintEffect;","attribute vec4 inTint;","varying vec2 outTexCoord;","varying float outTexId;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);"," outTexCoord = inTexCoord;"," outTexId = inTexId;"," outTint = inTint;"," outTintEffect = inTintEffect;","}"].join("\n")},83327:t=>{t.exports=["#define SHADER_NAME PHASER_POINTLIGHT_FS","precision mediump float;","uniform vec2 uResolution;","uniform float uCameraZoom;","varying vec4 lightPosition;","varying vec4 lightColor;","varying float lightRadius;","varying float lightAttenuation;","void main ()","{"," vec2 center = (lightPosition.xy + 1.0) * (uResolution.xy * 0.5);"," float distToSurf = length(center - gl_FragCoord.xy);"," float radius = 1.0 - distToSurf / (lightRadius * uCameraZoom);"," float intensity = smoothstep(0.0, 1.0, radius * lightAttenuation);"," vec4 color = vec4(intensity, intensity, intensity, 0.0) * lightColor;"," gl_FragColor = vec4(color.rgb * lightColor.a, color.a);","}"].join("\n")},54677:t=>{t.exports=["#define SHADER_NAME PHASER_POINTLIGHT_VS","precision mediump float;","uniform mat4 uProjectionMatrix;","attribute vec2 inPosition;","attribute vec2 inLightPosition;","attribute vec4 inLightColor;","attribute float inLightRadius;","attribute float inLightAttenuation;","varying vec4 lightPosition;","varying vec4 lightColor;","varying float lightRadius;","varying float lightAttenuation;","void main ()","{"," lightColor = inLightColor;"," lightRadius = inLightRadius;"," lightAttenuation = inLightAttenuation;"," lightPosition = uProjectionMatrix * vec4(inLightPosition, 1.0, 1.0);"," gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);","}"].join("\n")},12569:t=>{t.exports=["#define SHADER_NAME PHASER_POSTFX_FS","precision mediump float;","uniform sampler2D uMainSampler;","varying vec2 outTexCoord;","void main ()","{"," gl_FragColor = texture2D(uMainSampler, outTexCoord);","}"].join("\n")},99365:t=>{t.exports=["#define SHADER_NAME PHASER_QUAD_VS","precision mediump float;","attribute vec2 inPosition;","attribute vec2 inTexCoord;","varying vec2 outFragCoord;","varying vec2 outTexCoord;","void main ()","{"," outFragCoord = inPosition.xy * 0.5 + 0.5;"," outTexCoord = inTexCoord;"," gl_Position = vec4(inPosition, 0, 1);","}"].join("\n")},85060:t=>{t.exports=["#define SHADER_NAME PHASER_SINGLE_FS","#ifdef GL_FRAGMENT_PRECISION_HIGH","precision highp float;","#else","precision mediump float;","#endif","uniform sampler2D uMainSampler;","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," vec4 texture = texture2D(uMainSampler, outTexCoord);"," vec4 texel = vec4(outTint.bgr * outTint.a, outTint.a);"," vec4 color = texture * texel;"," if (outTintEffect == 1.0)"," {"," color.rgb = mix(texture.rgb, outTint.bgr * outTint.a, texture.a);"," }"," else if (outTintEffect == 2.0)"," {"," color = texel;"," }"," gl_FragColor = color;","}"].join("\n")},18166:t=>{t.exports=["#define SHADER_NAME PHASER_SINGLE_VS","precision mediump float;","uniform mat4 uProjectionMatrix;","attribute vec2 inPosition;","attribute vec2 inTexCoord;","attribute float inTexId;","attribute float inTintEffect;","attribute vec4 inTint;","varying vec2 outTexCoord;","varying float outTintEffect;","varying vec4 outTint;","void main ()","{"," gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);"," outTexCoord = inTexCoord;"," outTint = inTint;"," outTintEffect = inTintEffect;","}"].join("\n")},92462:(t,e,i)=>{t.exports={AddBlendFrag:i(2529),BitmapMaskFrag:i(91679),BitmapMaskVert:i(89053),ColorMatrixFrag:i(37486),CopyFrag:i(79060),FXBarrelFrag:i(87751),FXBloomFrag:i(88222),FXBlurHighFrag:i(44481),FXBlurLowFrag:i(35491),FXBlurMedFrag:i(75568),FXBokehFrag:i(69960),FXCircleFrag:i(33754),FXDisplacementFrag:i(35668),FXGlowFrag:i(69675),FXGradientFrag:i(90993),FXPixelateFrag:i(37945),FXShadowFrag:i(85718),FXShineFrag:i(13740),FXVignetteFrag:i(80617),FXWipeFrag:i(62879),LightFrag:i(65045),LinearBlendFrag:i(98921),MeshFrag:i(25005),MeshVert:i(94914),MobileFrag:i(11263),MobileVert:i(51852),MultiFrag:i(53787),MultiVert:i(15968),PointLightFrag:i(83327),PointLightVert:i(54677),PostFXFrag:i(12569),QuadVert:i(99365),SingleFrag:i(85060),SingleVert:i(18166)}},756:(t,e,i)=>{var h=i(55301),s=i(56694),n=i(6659),r=i(40444),o=i(97081),a=i(74181),l=i(2893),u=i(9229),c=i(72283),d=i(74118),p=i(90881),f=i(84314),g=i(93736),y=i(47751),i=new s({Extends:n,initialize:function(t){n.call(this),this.game=t,this.canvas,this.canvasBounds=new d,this.parent=null,this.parentIsWindow=!1,this.parentSize=new p,this.gameSize=new p,this.baseSize=new p,this.displaySize=new p,this.scaleMode=h.SCALE_MODE.NONE,this.zoom=1,this._resetZoom=!1,this.displayScale=new g(1,1),this.autoRound=!1,this.autoCenter=h.CENTER.NO_CENTER,this.orientation=h.ORIENTATION.LANDSCAPE,this.fullscreen,this.fullscreenTarget=null,this._createdFullscreenTarget=!1,this.dirty=!1,this.resizeInterval=500,this._lastCheck=0,this._checkOrientation=!1,this.domlisteners={orientationChange:c,windowResize:c,fullScreenChange:c,fullScreenError:c}},preBoot:function(){this.parseConfig(this.game.config),this.game.events.once(o.BOOT,this.boot,this)},boot:function(){var t=this.game;this.canvas=t.canvas,this.fullscreen=t.device.fullscreen,this.scaleMode!==h.SCALE_MODE.RESIZE&&this.displaySize.setAspectMode(this.scaleMode),this.scaleMode===h.SCALE_MODE.NONE?this.resize(this.width,this.height):(this.getParentBounds(),0=n.width?i.width:i.width-(n.width-s.width)*r.x,i=s.height>=n.height?i.height:i.height-(n.height-s.height)*r.y;return e.setTo(o,a,h,i),t&&(e.width/=t.zoomX,e.height/=t.zoomY,e.centerX=t.centerX+t.scrollX,e.centerY=t.centerY+t.scrollY),e},step:function(t,e){this.parent&&(this._lastCheck+=e,this.dirty||this._lastCheck>this.resizeInterval)&&(this.getParentBounds()&&this.refresh(),this.dirty=!1,this._lastCheck=0)},stopListeners:function(){var e=this.domlisteners;window.removeEventListener("orientationchange",e.orientationChange,!1),window.removeEventListener("resize",e.windowResize,!1),["webkit","moz",""].forEach(function(t){document.removeEventListener(t+"fullscreenchange",e.fullScreenChange,!1),document.removeEventListener(t+"fullscreenerror",e.fullScreenError,!1)}),document.removeEventListener("MSFullscreenChange",e.fullScreenChange,!1),document.removeEventListener("MSFullscreenError",e.fullScreenError,!1)},destroy:function(){this.removeAllListeners(),this.stopListeners(),this.game=null,this.canvas=null,this.canvasBounds=null,this.parent=null,this.fullscreenTarget=null,this.parentSize.destroy(),this.gameSize.destroy(),this.baseSize.destroy(),this.displaySize.destroy()},isFullscreen:{get:function(){return this.fullscreen.active}},width:{get:function(){return this.gameSize.width}},height:{get:function(){return this.gameSize.height}},isPortrait:{get:function(){return this.orientation===h.ORIENTATION.PORTRAIT}},isLandscape:{get:function(){return this.orientation===h.ORIENTATION.LANDSCAPE}},isGamePortrait:{get:function(){return this.height>this.width}},isGameLandscape:{get:function(){return this.width>this.height}}});t.exports=i},35098:t=>{t.exports={NO_CENTER:0,CENTER_BOTH:1,CENTER_HORIZONTALLY:2,CENTER_VERTICALLY:3}},53539:t=>{t.exports={LANDSCAPE:"landscape-primary",PORTRAIT:"portrait-primary"}},12637:t=>{t.exports={NONE:0,WIDTH_CONTROLS_HEIGHT:1,HEIGHT_CONTROLS_WIDTH:2,FIT:3,ENVELOP:4,RESIZE:5}},10217:t=>{t.exports={NO_ZOOM:1,ZOOM_2X:2,ZOOM_4X:4,MAX_ZOOM:-1}},55301:(t,e,i)=>{i={CENTER:i(35098),ORIENTATION:i(53539),SCALE_MODE:i(12637),ZOOM:i(10217)};t.exports=i},82085:t=>{t.exports="enterfullscreen"},11826:t=>{t.exports="fullscreenfailed"},56691:t=>{t.exports="fullscreenunsupported"},34739:t=>{t.exports="leavefullscreen"},26681:t=>{t.exports="orientationchange"},11428:t=>{t.exports="resize"},40444:(t,e,i)=>{t.exports={ENTER_FULLSCREEN:i(82085),FULLSCREEN_FAILED:i(11826),FULLSCREEN_UNSUPPORTED:i(56691),LEAVE_FULLSCREEN:i(34739),ORIENTATION_CHANGE:i(26681),RESIZE:i(11428)}},86754:(t,e,i)=>{var s=i(98611),n=i(55301),i=s(!1,{Center:i(35098),Events:i(40444),Orientation:i(53539),ScaleManager:i(756),ScaleModes:i(12637),Zoom:i(10217)},n.CENTER);i=s(!1,i,n.ORIENTATION),i=s(!1,i,n.SCALE_MODE),i=s(!1,i,n.ZOOM),t.exports=i},47736:(t,e,i)=>{var n=i(72632),r=i(40587);t.exports=function(t){var e=t.game.config.defaultPhysicsSystem,t=n(t.settings,"physics",!1);if(e||t){var i=[];if(e&&i.push(r(e+"Physics")),t)for(var s in t)s=r(s.concat("Physics")),-1===i.indexOf(s)&&i.push(s);return i}}},91088:(t,e,i)=>{var s=i(72632);t.exports=function(t){var e=t.plugins.getDefaultScenePlugins(),t=s(t.settings,"plugins",!1);return Array.isArray(t)?t:e||[]}},90415:t=>{t.exports={game:"game",renderer:"renderer",anims:"anims",cache:"cache",plugins:"plugins",registry:"registry",scale:"scale",sound:"sound",textures:"textures",events:"events",cameras:"cameras",add:"add",make:"make",scenePlugin:"scene",displayList:"children",lights:"lights",data:"data",input:"input",load:"load",time:"time",tweens:"tweens",arcadePhysics:"physics",impactPhysics:"impact",matterPhysics:"matter"}},87157:(t,e,i)=>{var s=i(56694),n=i(63946),i=new s({initialize:function(t){this.sys=new n(this,t),this.game,this.anims,this.cache,this.registry,this.sound,this.textures,this.events,this.cameras,this.add,this.make,this.scene,this.children,this.lights,this.data,this.input,this.load,this.time,this.tweens,this.physics,this.matter,this.scale,this.plugins,this.renderer},update:function(){}});t.exports=i},13553:(t,e,i)=>{var s=i(56694),o=i(92980),n=i(7599),r=i(97081),l=i(10850),a=i(683),h=i(72283),u=i(87157),c=i(63946),i=new s({initialize:function(t,e){if(this.game=t,this.keys={},this.scenes=[],this._pending=[],this._start=[],this._queue=[],this._data={},this.isProcessing=!1,this.isBooted=!1,this.customViewports=0,this.systemScene,e){Array.isArray(e)||(e=[e]);for(var i=0;io.START&&s.settings.status<=o.RUNNING&&s.step(t,e),s.scenePlugin._target&&s.scenePlugin.step(t,e)}},render:function(t){for(var e=0;e=o.LOADING&&i.settings.status=o.START&&r<=o.CREATING)){if(r>=o.RUNNING&&r<=o.SLEEPING)n.shutdown(),n.sceneUpdate=h,n.start(e);else if(n.sceneUpdate=h,n.start(e),(s=n.load?n.load:s)&&n.settings.hasOwnProperty("pack")&&(s.reset(),s.addPack({payload:n.settings.pack})))return n.settings.status=o.LOADING,s.once(a.COMPLETE,this.payloadComplete,this),s.start(),this;this.bootScene(i)}}}else this._data[t]={autoStart:!0,data:e};return this},stop:function(t,e){var i,t=this.getScene(t);return t&&!t.sys.isTransitioning()&&t.sys.settings.status!==o.SHUTDOWN&&((i=t.sys.load)&&(i.off(a.COMPLETE,this.loadComplete,this),i.off(a.COMPLETE,this.payloadComplete,this)),t.sys.shutdown(e)),this},switch:function(t,e){var i=this.getScene(t),s=this.getScene(e);return i&&s&&i!==s&&(this.sleep(t),this.isSleeping(e)?this.wake(e):this.start(e)),this},getAt:function(t){return this.scenes[t]},getIndex:function(t){t=this.getScene(t);return this.scenes.indexOf(t)},bringToTop:function(t){var e;return this.isProcessing?this._queue.push({op:"bringToTop",keyA:t,keyB:null}):-1!==(e=this.getIndex(t))&&e{var s=i(82897),n=i(56694),o=i(7599),a=i(72632),i=i(91963),n=new n({initialize:function(t){this.scene=t,this.systems=t.sys,this.settings=t.sys.settings,this.key=t.sys.settings.key,this.manager=t.sys.game.scene,this.transitionProgress=0,this._elapsed=0,this._target=null,this._duration=0,this._onUpdate,this._onUpdateScope,this._willSleep=!1,this._willRemove=!1,t.sys.events.once(o.BOOT,this.boot,this),t.sys.events.on(o.START,this.pluginStart,this)},boot:function(){this.systems.events.once(o.DESTROY,this.destroy,this)},pluginStart:function(){this._target=null,this.systems.events.once(o.SHUTDOWN,this.shutdown,this)},start:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("stop",this.key),this.manager.queueOp("start",t,e),this},restart:function(t){var e=this.key;return this.manager.queueOp("stop",e),this.manager.queueOp("start",e,t),this},transition:function(t){var e,i,s,n=a(t=void 0===t?{}:t,"target",!1),r=this.manager.getScene(n);return!(!n||!this.checkValidTransition(r)||(e=a(t,"duration",1e3),this._elapsed=0,this._target=r,this._duration=e,this._willSleep=a(t,"sleep",!1),this._willRemove=a(t,"remove",!1),(s=a(t,"onUpdate",null))&&(this._onUpdate=s,this._onUpdateScope=a(t,"onUpdateScope",this.scene)),s=a(t,"allowInput",!1),this.settings.transitionAllowInput=s,(i=r.sys.settings).isTransition=!0,i.transitionFrom=this.scene,i.transitionDuration=e,i.transitionAllowInput=s,a(t,"moveAbove",!1)?this.manager.moveAbove(this.key,n):a(t,"moveBelow",!1)&&this.manager.moveBelow(this.key,n),r.sys.isSleeping()?r.sys.wake(a(t,"data")):this.manager.start(n,a(t,"data")),i=a(t,"onStart",null),s=a(t,"onStartScope",this.scene),i&&i.call(s,this.scene,r,e),this.systems.events.emit(o.TRANSITION_OUT,r,e),0))},checkValidTransition:function(t){return!(!t||t.sys.isActive()||t.sys.isTransitioning()||t===this.scene||this.systems.isTransitioning())},step:function(t,e){this._elapsed+=e,this.transitionProgress=s(this._elapsed/this._duration,0,1),this._onUpdate&&this._onUpdate.call(this._onUpdateScope,this.transitionProgress),this._elapsed>=this._duration&&this.transitionComplete()},transitionComplete:function(){var t=this._target.sys,e=this._target.sys.settings;t.events.emit(o.TRANSITION_COMPLETE,this.scene),e.isTransition=!1,e.transitionFrom=null,this._duration=0,this._target=null,this._onUpdate=null,this._onUpdateScope=null,this._willRemove?this.manager.remove(this.key):this._willSleep?this.systems.sleep():this.manager.stop(this.key)},add:function(t,e,i,s){return this.manager.add(t,e,i,s)},launch:function(t,e){return t&&t!==this.key&&this.manager.queueOp("start",t,e),this},run:function(t,e){return t&&t!==this.key&&this.manager.queueOp("run",t,e),this},pause:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("pause",t,e),this},resume:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("resume",t,e),this},sleep:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("sleep",t,e),this},wake:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("wake",t,e),this},switch:function(t){return t!==this.key&&this.manager.queueOp("switch",this.key,t),this},stop:function(t,e){return void 0===t&&(t=this.key),this.manager.queueOp("stop",t,e),this},setActive:function(t,e,i){void 0===e&&(e=this.key);e=this.manager.getScene(e);return e&&e.sys.setActive(t,i),this},setVisible:function(t,e){void 0===e&&(e=this.key);e=this.manager.getScene(e);return e&&e.sys.setVisible(t),this},isSleeping:function(t){return void 0===t&&(t=this.key),this.manager.isSleeping(t)},isActive:function(t){return void 0===t&&(t=this.key),this.manager.isActive(t)},isPaused:function(t){return void 0===t&&(t=this.key),this.manager.isPaused(t)},isVisible:function(t){return void 0===t&&(t=this.key),this.manager.isVisible(t)},swapPosition:function(t,e){return t!==(e=void 0===e?this.key:e)&&this.manager.swapPosition(t,e),this},moveAbove:function(t,e){return t!==(e=void 0===e?this.key:e)&&this.manager.moveAbove(t,e),this},moveBelow:function(t,e){return t!==(e=void 0===e?this.key:e)&&this.manager.moveBelow(t,e),this},remove:function(t){return void 0===t&&(t=this.key),this.manager.remove(t),this},moveUp:function(t){return void 0===t&&(t=this.key),this.manager.moveUp(t),this},moveDown:function(t){return void 0===t&&(t=this.key),this.manager.moveDown(t),this},bringToTop:function(t){return void 0===t&&(t=this.key),this.manager.bringToTop(t),this},sendToBack:function(t){return void 0===t&&(t=this.key),this.manager.sendToBack(t),this},get:function(t){return this.manager.getScene(t)},getStatus:function(t){t=this.manager.getScene(t);if(t)return t.sys.getStatus()},getIndex:function(t){return void 0===t&&(t=this.key),this.manager.getIndex(t)},shutdown:function(){var t=this.systems.events;t.off(o.SHUTDOWN,this.shutdown,this),t.off(o.TRANSITION_OUT)},destroy:function(){this.shutdown(),this.scene.sys.events.off(o.START,this.start,this),this.scene=null,this.systems=null,this.settings=null,this.manager=null}});i.register("ScenePlugin",n,"scenePlugin"),t.exports=n},36765:(t,e,i)=>{var s=i(92980),n=i(10850),r=i(30657),o=i(90415);t.exports={create:function(t){return"string"==typeof t?t={key:t}:void 0===t&&(t={}),{status:s.PENDING,key:n(t,"key",""),active:n(t,"active",!1),visible:n(t,"visible",!0),isBooted:!1,isTransition:!1,transitionFrom:null,transitionDuration:0,transitionAllowInput:!0,data:{},pack:n(t,"pack",!1),cameras:n(t,"cameras",null),map:n(t,"map",r(o,n(t,"mapAdd",{}))),physics:n(t,"physics",{}),loader:n(t,"loader",{}),plugins:n(t,"plugins",!1),input:n(t,"input",{})}}}},63946:(t,e,i)=>{var s=i(56694),n=i(92980),r=i(18360),o=i(7599),a=i(47736),h=i(91088),l=i(72283),u=i(36765),i=new s({initialize:function(t,e){this.scene=t,this.game,this.renderer,this.config=e,this.settings=u.create(e),this.canvas,this.context,this.anims,this.cache,this.plugins,this.registry,this.scale,this.sound,this.textures,this.add,this.cameras,this.displayList,this.events,this.make,this.scenePlugin,this.updateList,this.sceneUpdate=l},init:function(t){this.settings.status=n.INIT,this.sceneUpdate=l,this.game=t,this.renderer=t.renderer,this.canvas=t.canvas,this.context=t.context;t=t.plugins;(this.plugins=t).addToScene(this,r.Global,[r.CoreScene,h(this),a(this)]),this.events.emit(o.BOOT,this),this.settings.isBooted=!0},step:function(t,e){var i=this.events;i.emit(o.PRE_UPDATE,t,e),i.emit(o.UPDATE,t,e),this.sceneUpdate.call(this.scene,t,e),i.emit(o.POST_UPDATE,t,e)},render:function(t){var e=this.displayList;e.depthSort(),this.events.emit(o.PRE_RENDER,t),this.cameras.render(t,e),this.events.emit(o.RENDER,t)},queueDepthSort:function(){this.displayList.queueDepthSort()},depthSort:function(){this.displayList.depthSort()},pause:function(t){var e=this.settings,i=this.getStatus();return i!==n.CREATING&&i!==n.RUNNING||!this.settings.active||(e.status=n.PAUSED,e.active=!1,this.events.emit(o.PAUSE,this,t)),this},resume:function(t){var e=this.events,i=this.settings;return this.settings.active||(i.status=n.RUNNING,i.active=!0,e.emit(o.RESUME,this,t)),this},sleep:function(t){var e=this.settings,i=this.getStatus();return i!==n.CREATING&&i!==n.RUNNING||(e.status=n.SLEEPING,e.active=!1,e.visible=!1,this.events.emit(o.SLEEP,this,t)),this},wake:function(t){var e=this.events,i=this.settings;return i.status=n.RUNNING,i.active=!0,i.visible=!0,e.emit(o.WAKE,this,t),i.isTransition&&e.emit(o.TRANSITION_WAKE,i.transitionFrom,i.transitionDuration),this},getData:function(){return this.settings.data},getStatus:function(){return this.settings.status},canInput:function(){var t=this.settings.status;return t>n.PENDING&&t<=n.RUNNING},isSleeping:function(){return this.settings.status===n.SLEEPING},isActive:function(){return this.settings.status===n.RUNNING},isPaused:function(){return this.settings.status===n.PAUSED},isTransitioning:function(){return this.settings.isTransition||null!==this.scenePlugin._target},isTransitionOut:function(){return null!==this.scenePlugin._target&&0{t.exports={PENDING:0,INIT:1,START:2,LOADING:3,CREATING:4,RUNNING:5,PAUSED:6,SLEEPING:7,SHUTDOWN:8,DESTROYED:9}},31803:t=>{t.exports="addedtoscene"},94817:t=>{t.exports="boot"},28977:t=>{t.exports="create"},91959:t=>{t.exports="destroy"},363:t=>{t.exports="pause"},15643:t=>{t.exports="postupdate"},17058:t=>{t.exports="prerender"},77125:t=>{t.exports="preupdate"},76018:t=>{t.exports="ready"},28620:t=>{t.exports="removedfromscene"},41538:t=>{t.exports="render"},34268:t=>{t.exports="resume"},2342:t=>{t.exports="shutdown"},96541:t=>{t.exports="sleep"},74244:t=>{t.exports="start"},17046:t=>{t.exports="transitioncomplete"},13637:t=>{t.exports="transitioninit"},14733:t=>{t.exports="transitionout"},33899:t=>{t.exports="transitionstart"},52418:t=>{t.exports="transitionwake"},31735:t=>{t.exports="update"},8470:t=>{t.exports="wake"},7599:(t,e,i)=>{t.exports={ADDED_TO_SCENE:i(31803),BOOT:i(94817),CREATE:i(28977),DESTROY:i(91959),PAUSE:i(363),POST_UPDATE:i(15643),PRE_RENDER:i(17058),PRE_UPDATE:i(77125),READY:i(76018),REMOVED_FROM_SCENE:i(28620),RENDER:i(41538),RESUME:i(34268),SHUTDOWN:i(2342),SLEEP:i(96541),START:i(74244),TRANSITION_COMPLETE:i(17046),TRANSITION_INIT:i(13637),TRANSITION_OUT:i(14733),TRANSITION_START:i(33899),TRANSITION_WAKE:i(52418),UPDATE:i(31735),WAKE:i(8470)}},20436:(t,e,i)=>{var s=i(92980),i=i(98611)(!1,{Events:i(7599),GetPhysicsPlugins:i(47736),GetScenePlugins:i(91088),SceneManager:i(13553),ScenePlugin:i(64051),Settings:i(36765),Systems:i(63946)},s);t.exports=i},25798:(t,e,i)=>{var s=i(56694),n=i(6659),r=i(76038),o=i(98611),i=i(72283),s=new s({Extends:n,initialize:function(t,e,i){n.call(this),this.manager=t,this.key=e,this.isPlaying=!1,this.isPaused=!1,this.totalRate=1,this.duration=this.duration||0,this.totalDuration=this.totalDuration||0,this.config={mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0,pan:0},this.currentConfig=this.config,this.config=o(this.config,i),this.markers={},this.currentMarker=null,this.pendingRemove=!1},addMarker:function(t){return!(!t||!t.name||"string"!=typeof t.name||this.markers[t.name]||(t=o(!0,{name:"",start:0,duration:this.totalDuration-(t.start||0),config:{mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0,pan:0}},t),this.markers[t.name]=t,0))},updateMarker:function(t){return!(!t||!t.name||"string"!=typeof t.name||!this.markers[t.name]||(this.markers[t.name]=o(!0,this.markers[t.name],t),0))},removeMarker:function(t){var e=this.markers[t];return e?(this.markers[t]=null,e):null},play:function(t,e){if("object"==typeof(t=void 0===t?"":t)&&(e=t,t=""),"string"!=typeof t)return!1;if(t){if(!this.markers[t])return!1;this.currentMarker=this.markers[t],this.currentConfig=this.currentMarker.config,this.duration=this.currentMarker.duration}else this.currentMarker=null,this.currentConfig=this.config,this.duration=this.totalDuration;return this.resetConfig(),this.currentConfig=o(this.currentConfig,e),this.isPlaying=!0,!(this.isPaused=!1)},pause:function(){return!(this.isPaused||!this.isPlaying||(this.isPlaying=!1,this.isPaused=!0,0))},resume:function(){return!(!this.isPaused||this.isPlaying||(this.isPlaying=!0,this.isPaused=!1))},stop:function(){return!(!this.isPaused&&!this.isPlaying||(this.isPlaying=!1,this.isPaused=!1,this.resetConfig(),0))},applyConfig:function(){this.mute=this.currentConfig.mute,this.volume=this.currentConfig.volume,this.rate=this.currentConfig.rate,this.detune=this.currentConfig.detune,this.loop=this.currentConfig.loop,this.pan=this.currentConfig.pan},resetConfig:function(){this.currentConfig.seek=0,this.currentConfig.delay=0},update:i,calculateRate:function(){var t=this.currentConfig.detune+this.manager.detune,t=Math.pow(1.0005777895065548,t);this.totalRate=this.currentConfig.rate*this.manager.rate*t},destroy:function(){this.pendingRemove||(this.emit(r.DESTROY,this),this.removeAllListeners(),this.pendingRemove=!0,this.manager=null,this.config=null,this.currentConfig=null,this.markers=null,this.currentMarker=null)}});t.exports=s},12486:(t,e,i)=>{var s=i(56694),o=i(32742),n=i(6659),r=i(76038),a=i(97081),h=i(71608),l=i(51463),u=i(72283),c=i(93736),i=new s({Extends:n,initialize:function(t){n.call(this),this.game=t,this.jsonCache=t.cache.json,this.sounds=[],this.mute=!1,this.volume=1,this.pauseOnBlur=!0,this._rate=1,this._detune=0,this.locked=this.locked||!1,this.unlocked=!1,this.gameLostFocus=!1,this.listenerPosition=new c,t.events.on(a.BLUR,this.onGameBlur,this),t.events.on(a.FOCUS,this.onGameFocus,this),t.events.on(a.PRE_STEP,this.update,this),t.events.once(a.DESTROY,this.destroy,this)},add:u,addAudioSprite:function(t,e){var i,s,n,r=this.add(t,e=void 0===e?{}:e);for(i in r.spritemap=this.jsonCache.get(t).spritemap,r.spritemap)r.spritemap.hasOwnProperty(i)&&(s=o(e),n=r.spritemap[i],s.loop=!!n.hasOwnProperty("loop")&&n.loop,r.addMarker({name:i,start:n.start,duration:n.end-n.start,config:s}));return r},get:function(t){return l(this.sounds,"key",t)},getAll:function(t){return t?h(this.sounds,"key",t):h(this.sounds)},getAllPlaying:function(){return h(this.sounds,"isPlaying",!0)},play:function(t,e){t=this.add(t);return t.once(r.COMPLETE,t.destroy,t),e?e.name?(t.addMarker(e),t.play(e.name)):t.play(e):t.play()},playAudioSprite:function(t,e,i){t=this.addAudioSprite(t);return t.once(r.COMPLETE,t.destroy,t),t.play(e,i)},remove:function(t){var e=this.sounds.indexOf(t);return-1!==e&&(t.destroy(),this.sounds.splice(e,1),!0)},removeAll:function(){this.sounds.forEach(function(t){t.destroy()}),this.sounds.length=0},removeByKey:function(t){for(var e=0,i=this.sounds.length-1;0<=i;i--){var s=this.sounds[i];s.key===t&&(s.destroy(),this.sounds.splice(i,1),e++)}return e},pauseAll:function(){this.forEachActiveSound(function(t){t.pause()}),this.emit(r.PAUSE_ALL,this)},resumeAll:function(){this.forEachActiveSound(function(t){t.resume()}),this.emit(r.RESUME_ALL,this)},setListenerPosition:u,stopAll:function(){this.forEachActiveSound(function(t){t.stop()}),this.emit(r.STOP_ALL,this)},stopByKey:function(t){var e=0;return this.getAll(t).forEach(function(t){t.stop()&&e++}),e},unlock:u,onBlur:u,onFocus:u,onGameBlur:function(){this.gameLostFocus=!0,this.pauseOnBlur&&this.onBlur()},onGameFocus:function(){this.gameLostFocus=!1,this.pauseOnBlur&&this.onFocus()},update:function(e,i){this.unlocked&&(this.unlocked=!1,this.locked=!1,this.emit(r.UNLOCKED,this));for(var t=this.sounds.length-1;0<=t;t--)this.sounds[t].pendingRemove&&this.sounds.splice(t,1);this.sounds.forEach(function(t){t.update(e,i)})},destroy:function(){this.game.events.off(a.BLUR,this.onGameBlur,this),this.game.events.off(a.FOCUS,this.onGameFocus,this),this.game.events.off(a.PRE_STEP,this.update,this),this.removeAllListeners(),this.removeAll(),this.sounds.length=0,this.sounds=null,this.listenerPosition=null,this.game=null},forEachActiveSound:function(i,s){var n=this;this.sounds.forEach(function(t,e){t&&!t.pendingRemove&&i.call(s||n,t,e,n.sounds)})},setRate:function(t){return this.rate=t,this},rate:{get:function(){return this._rate},set:function(t){this._rate=t,this.forEachActiveSound(function(t){t.calculateRate()}),this.emit(r.GLOBAL_RATE,this,t)}},setDetune:function(t){return this.detune=t,this},detune:{get:function(){return this._detune},set:function(t){this._detune=t,this.forEachActiveSound(function(t){t.calculateRate()}),this.emit(r.GLOBAL_DETUNE,this,t)}}});t.exports=i},84191:(t,e,i)=>{var s=i(27622),n=i(17546),r=i(55491);t.exports={create:function(t){var e=t.config.audio,i=t.device.audio;return new(e.noAudio||!i.webAudio&&!i.audioData?n:i.webAudio&&!e.disableWebAudio?r:s)(t)}}},77578:t=>{t.exports="complete"},19679:t=>{t.exports="decodedall"},56951:t=>{t.exports="decoded"},16436:t=>{t.exports="destroy"},55154:t=>{t.exports="detune"},57818:t=>{t.exports="detune"},57890:t=>{t.exports="mute"},83022:t=>{t.exports="rate"},99170:t=>{t.exports="volume"},64289:t=>{t.exports="looped"},67214:t=>{t.exports="loop"},53128:t=>{t.exports="mute"},73078:t=>{t.exports="pan"},76763:t=>{t.exports="pauseall"},88426:t=>{t.exports="pause"},13765:t=>{t.exports="play"},80291:t=>{t.exports="rate"},11124:t=>{t.exports="resumeall"},55382:t=>{t.exports="resume"},71157:t=>{t.exports="seek"},31776:t=>{t.exports="stopall"},39450:t=>{t.exports="stop"},21939:t=>{t.exports="unlocked"},33019:t=>{t.exports="volume"},76038:(t,e,i)=>{t.exports={COMPLETE:i(77578),DECODED:i(56951),DECODED_ALL:i(19679),DESTROY:i(16436),DETUNE:i(55154),GLOBAL_DETUNE:i(57818),GLOBAL_MUTE:i(57890),GLOBAL_RATE:i(83022),GLOBAL_VOLUME:i(99170),LOOP:i(67214),LOOPED:i(64289),MUTE:i(53128),PAN:i(73078),PAUSE_ALL:i(76763),PAUSE:i(88426),PLAY:i(13765),RATE:i(80291),RESUME_ALL:i(11124),RESUME:i(55382),SEEK:i(71157),STOP_ALL:i(31776),STOP:i(39450),UNLOCKED:i(21939),VOLUME:i(33019)}},34350:(t,e,i)=>{var s=i(25798),n=i(56694),r=i(76038),o=i(82897),i=new n({Extends:s,initialize:function(t,e,i){if(void 0===i&&(i={}),this.tags=t.game.cache.audio.get(e),!this.tags)throw new Error('No cached audio asset with key "'+e);this.audio=null,this.startTime=0,this.previousTime=0,this.duration=this.tags[0].duration,this.totalDuration=this.tags[0].duration,s.call(this,t,e,i)},play:function(t,e){return!(this.manager.isLocked(this,"play",[t,e])||!s.prototype.play.call(this,t,e)||!this.pickAndPlayAudioTag()||(this.emit(r.PLAY,this),0))},pause:function(){return!(this.manager.isLocked(this,"pause")||0=e-this.manager.loopEndOffset?(this.audio.currentTime=t+Math.max(0,i-e),i=this.audio.currentTime):i{var s=i(12486),n=i(56694),o=i(76038),r=i(34350),i=new n({Extends:s,initialize:function(t){this.override=!0,this.audioPlayDelay=.1,this.loopEndOffset=.05,this.onBlurPausedSounds=[],this.locked="ontouchstart"in window,this.lockedActionsQueue=this.locked?[]:null,this._mute=!1,this._volume=1,s.call(this,t)},add:function(t,e){t=new r(this,t,e);return this.sounds.push(t),t},unlock:function(){this.locked=!1;var e,i,s,r=this;this.game.cache.audio.entries.each(function(t,e){for(var i=0;i{t.exports={SoundManagerCreator:i(84191),Events:i(76038),BaseSound:i(25798),BaseSoundManager:i(12486),WebAudioSound:i(96008),WebAudioSoundManager:i(55491),HTML5AudioSound:i(34350),HTML5AudioSoundManager:i(27622),NoAudioSound:i(38662),NoAudioSoundManager:i(17546)}},38662:(t,e,i)=>{function s(){return!1}function n(){return null}function r(){return this}var o=i(25798),a=i(56694),h=i(6659),l=i(98611),i=i(72283),a=new a({Extends:h,initialize:function(t,e,i){void 0===i&&(i={}),h.call(this),this.manager=t,this.key=e,this.isPlaying=!1,this.isPaused=!1,this.totalRate=1,this.duration=0,this.totalDuration=0,this.config=l({mute:!1,volume:1,rate:1,detune:0,seek:0,loop:!1,delay:0,pan:0},i),this.currentConfig=this.config,this.mute=!1,this.volume=1,this.rate=1,this.detune=0,this.seek=0,this.loop=!1,this.pan=0,this.markers={},this.currentMarker=null,this.pendingRemove=!1},addMarker:s,updateMarker:s,removeMarker:n,play:s,pause:s,resume:s,stop:s,setMute:r,setVolume:r,setRate:r,setDetune:r,setSeek:r,setLoop:r,setPan:r,applyConfig:n,resetConfig:n,update:i,calculateRate:n,destroy:function(){o.prototype.destroy.call(this)}});t.exports=a},17546:(t,e,i)=>{var s=i(12486),n=i(56694),r=i(6659),o=i(38662),i=i(72283),n=new n({Extends:r,initialize:function(t){r.call(this),this.game=t,this.sounds=[],this.mute=!1,this.volume=1,this.rate=1,this.detune=0,this.pauseOnBlur=!0,this.locked=!1},add:function(t,e){t=new o(this,t,e);return this.sounds.push(t),t},addAudioSprite:function(t,e){t=this.add(t,e);return t.spritemap={},t},get:function(t){return s.prototype.get.call(this,t)},getAll:function(t){return s.prototype.getAll.call(this,t)},play:function(t,e){return!1},playAudioSprite:function(t,e,i){return!1},remove:function(t){return s.prototype.remove.call(this,t)},removeAll:function(){return s.prototype.removeAll.call(this)},removeByKey:function(t){return s.prototype.removeByKey.call(this,t)},stopByKey:function(t){return s.prototype.stopByKey.call(this,t)},onBlur:i,onFocus:i,onGameBlur:i,onGameFocus:i,pauseAll:i,resumeAll:i,stopAll:i,update:i,setRate:i,setDetune:i,setMute:i,setVolume:i,unlock:i,forEachActiveSound:function(t,e){s.prototype.forEachActiveSound.call(this,t,e)},destroy:function(){s.prototype.destroy.call(this)}});t.exports=n},96008:(t,e,i)=>{var s=i(25798),n=i(56694),r=i(76038),o=i(72632),i=new n({Extends:s,initialize:function(t,e,i){if(void 0===i&&(i={}),this.audioBuffer=t.game.cache.audio.get(e),!this.audioBuffer)throw new Error('Audio key "'+e+'" missing from cache');this.source=null,this.loopSource=null,this.muteNode=t.context.createGain(),this.volumeNode=t.context.createGain(),this.pannerNode=null,this.spatialNode=null,this.spatialSource=null,this.playTime=0,this.startTime=0,this.loopTime=0,this.rateUpdates=[],this.hasEnded=!1,this.hasLooped=!1,this.muteNode.connect(this.volumeNode),t.context.createPanner&&(this.spatialNode=t.context.createPanner(),this.volumeNode.connect(this.spatialNode)),(t.context.createStereoPanner?(this.pannerNode=t.context.createStereoPanner(),(t.context.createPanner?this.spatialNode:this.volumeNode).connect(this.pannerNode),this.pannerNode):t.context.createPanner?this.spatialNode:this.volumeNode).connect(t.destination),this.duration=this.audioBuffer.duration,this.totalDuration=this.audioBuffer.duration,s.call(this,t,e,i)},play:function(t,e){return!!s.prototype.play.call(this,t,e)&&(this.stopAndRemoveBufferSource(),this.createAndStartBufferSource(),this.emit(r.PLAY,this),!0)},pause:function(){return!(this.manager.context.currentTime{var l=i(82329),r=i(12486),s=i(56694),u=i(76038),n=i(97081),o=i(96008),a=i(72632),i=new s({Extends:r,initialize:function(t){this.context=this.createAudioContext(t),this.masterMuteNode=this.context.createGain(),this.masterVolumeNode=this.context.createGain(),this.masterMuteNode.connect(this.masterVolumeNode),this.masterVolumeNode.connect(this.context.destination),this.destination=this.masterMuteNode,this.locked="suspended"===this.context.state&&("ontouchstart"in window||"onclick"in window),r.call(this,t),this.locked&&t.isBooted?this.unlock():t.events.once(n.BOOT,this.unlock,this)},createAudioContext:function(t){t=t.config.audio;return t.context?(t.context.resume(),t.context):window.hasOwnProperty("AudioContext")?new AudioContext:window.hasOwnProperty("webkitAudioContext")?new window.webkitAudioContext:void 0},setAudioContext:function(t){return this.context&&this.context.close(),this.masterMuteNode&&this.masterMuteNode.disconnect(),this.masterVolumeNode&&this.masterVolumeNode.disconnect(),this.context=t,this.masterMuteNode=t.createGain(),this.masterVolumeNode=t.createGain(),this.masterMuteNode.connect(this.masterVolumeNode),this.masterVolumeNode.connect(t.destination),this.destination=this.masterMuteNode,this},add:function(t,e){t=new o(this,t,e);return this.sounds.push(t),t},decodeAudio:function(t,e){for(var i=Array.isArray(t)?t:[{key:t,data:e}],s=this.game.cache.audio,n=i.length,r=0;r{var n=i(59959),s=i(56694),r=i(72283),o=i(17922),i=new s({initialize:function(t){this.parent=t,this.list=[],this.position=0,this.addCallback=r,this.removeCallback=r,this._sortKey=""},add:function(t,e){return e?n.Add(this.list,t):n.Add(this.list,t,0,this.addCallback,this)},addAt:function(t,e,i){return i?n.AddAt(this.list,t,e):n.AddAt(this.list,t,e,0,this.addCallback,this)},getAt:function(t){return this.list[t]},getIndex:function(t){return this.list.indexOf(t)},sort:function(i,t){return i&&o(this.list,t=void 0===t?function(t,e){return t[i]-e[i]}:t),this},getByName:function(t){return n.GetFirst(this.list,"name",t)},getRandom:function(t,e){return n.GetRandom(this.list,t,e)},getFirst:function(t,e,i,s){return n.GetFirst(this.list,t,e,i,s)},getAll:function(t,e,i,s){return n.GetAll(this.list,t,e,i,s)},count:function(t,e){return n.CountAllMatching(this.list,t,e)},swap:function(t,e){n.Swap(this.list,t,e)},moveTo:function(t,e){return n.MoveTo(this.list,t,e)},moveAbove:function(t,e){return n.MoveAbove(this.list,t,e)},moveBelow:function(t,e){return n.MoveBelow(this.list,t,e)},remove:function(t,e){return e?n.Remove(this.list,t):n.Remove(this.list,t,this.removeCallback,this)},removeAt:function(t,e){return e?n.RemoveAt(this.list,t):n.RemoveAt(this.list,t,this.removeCallback,this)},removeBetween:function(t,e,i){return i?n.RemoveBetween(this.list,t,e):n.RemoveBetween(this.list,t,e,this.removeCallback,this)},removeAll:function(t){for(var e=this.list.length;e--;)this.remove(this.list[e],t);return this},bringToTop:function(t){return n.BringToTop(this.list,t)},sendToBack:function(t){return n.SendToBack(this.list,t)},moveUp:function(t){return n.MoveUp(this.list,t),t},moveDown:function(t){return n.MoveDown(this.list,t),t},reverse:function(){return this.list.reverse(),this},shuffle:function(){return n.Shuffle(this.list),this},replace:function(t,e){return n.Replace(this.list,t,e)},exists:function(t){return-1{i=new(i(56694))({initialize:function(t){if(this.entries={},this.size=0,Array.isArray(t))for(var e=0;e{var s=i(56694),n=i(6659),r=i(36716),i=new s({Extends:n,initialize:function(){n.call(this),this._pending=[],this._active=[],this._destroy=[],this._toProcess=0,this.checkQueue=!1},isActive:function(t){return-1{var a=i(53466);function s(t){if(!(this instanceof s))return new s(t);this._maxEntries=Math.max(4,t||9),this._minEntries=Math.max(2,Math.ceil(.4*this._maxEntries)),this.clear()}function p(t,e){f(t,0,t.children.length,e,t)}function f(t,e,i,s,n){(n=n||y(null)).minX=1/0,n.minY=1/0,n.maxX=-1/0,n.maxY=-1/0;for(var r,o=e;o=t.minX&&e.maxY>=t.minY}function y(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function v(t,e,i,s,n){for(var r,o=[e,i];o.length;)(i=o.pop())-(e=o.pop())<=s||(r=e+Math.ceil((i-e)/s/2)*s,a(t,r,e,i,n),o.push(e,r,r,i))}s.prototype={all:function(){return this._all(this.data,[])},search:function(t){var e=this.data,i=[],s=this.toBBox;if(l(t,e))for(var n,r,o,a,h=[];e;){for(n=0,r=e.children.length;nthis._maxEntries;)this._split(n,e),e--;this._adjustParentBBoxes(i,n,e)},_split:function(t,e){var i=t[e],s=i.children.length,n=this._minEntries,n=(this._chooseSplitAxis(i,n,s),this._chooseSplitIndex(i,n,s)),s=y(i.children.splice(n,i.children.length-n));s.height=i.height,s.leaf=i.leaf,p(i,this.toBBox),p(s,this.toBBox),e?t[e-1].children.push(s):this._splitRoot(i,s)},_splitRoot:function(t,e){this.data=y([t,e]),this.data.height=t.height+1,this.data.leaf=!1,p(this.data,this.toBBox)},_chooseSplitIndex:function(t,e,i){for(var s,n,r,o,a,h,l,u,c,d=r=1/0,p=e;p<=i-e;p++)c=s=f(t,0,p,this.toBBox),a=n=f(t,p,i,this.toBBox),h=Math.max(c.minX,a.minX),l=Math.max(c.minY,a.minY),u=Math.min(c.maxX,a.maxX),c=Math.min(c.maxY,a.maxY),a=Math.max(0,u-h)*Math.max(0,c-l),u=g(s)+g(n),a{var s=new(i(56694))({initialize:function(t){if(this.entries=[],Array.isArray(t))for(var e=0;e{var s=i(82897),n=i(56694),r=i(84314),o=i(93736),a=new n({initialize:function(t,e,i,s){void 0===t&&(t=0),void 0===e&&(e=t),void 0===i&&(i=0),void 0===s&&(s=null),this._width=t,this._height=e,this._parent=s,this.aspectMode=i,this.aspectRatio=0===e?1:t/e,this.minWidth=0,this.minHeight=0,this.maxWidth=Number.MAX_VALUE,this.maxHeight=Number.MAX_VALUE,this.snapTo=new o},setAspectMode:function(t){return this.aspectMode=t=void 0===t?0:t,this.setSize(this._width,this._height)},setSnap:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.snapTo.set(t,e),this.setSize(this._width,this._height)},setParent:function(t){return this._parent=t,this.setSize(this._width,this._height)},setMin:function(t,e){return void 0===t&&(t=0),void 0===e&&(e=t),this.minWidth=s(t,0,this.maxWidth),this.minHeight=s(e,0,this.maxHeight),this.setSize(this._width,this._height)},setMax:function(t,e){return void 0===t&&(t=Number.MAX_VALUE),void 0===e&&(e=t),this.maxWidth=s(t,this.minWidth,Number.MAX_VALUE),this.maxHeight=s(e,this.minHeight,Number.MAX_VALUE),this.setSize(this._width,this._height)},setSize:function(t,e){switch(void 0===t&&(t=0),void 0===e&&(e=t),this.aspectMode){case a.NONE:this._width=this.getNewWidth(r(t,this.snapTo.x)),this._height=this.getNewHeight(r(e,this.snapTo.y)),this.aspectRatio=0===this._height?1:this._width/this._height;break;case a.WIDTH_CONTROLS_HEIGHT:this._width=this.getNewWidth(r(t,this.snapTo.x)),this._height=this.getNewHeight(this._width*(1/this.aspectRatio),!1);break;case a.HEIGHT_CONTROLS_WIDTH:this._height=this.getNewHeight(r(e,this.snapTo.y)),this._width=this.getNewWidth(this._height*this.aspectRatio,!1);break;case a.FIT:this.constrain(t,e,!0);break;case a.ENVELOP:this.constrain(t,e,!1)}return this},setAspectRatio:function(t){return this.aspectRatio=t,this.setSize(this._width,this._height)},resize:function(t,e){return this._width=this.getNewWidth(r(t,this.snapTo.x)),this._height=this.getNewHeight(r(e,this.snapTo.y)),this.aspectRatio=0===this._height?1:this._width/this._height,this},getNewWidth:function(t,e){return void 0===e&&(e=!0),t=s(t,this.minWidth,this.maxWidth),t=e&&this._parent&&t>this._parent.width?Math.max(this.minWidth,this._parent.width):t},getNewHeight:function(t,e){return void 0===e&&(e=!0),t=s(t,this.minHeight,this.maxHeight),t=e&&this._parent&&t>this._parent.height?Math.max(this.minHeight,this._parent.height):t},constrain:function(t,e,i){void 0===t&&(t=0),void 0===e&&(e=t),void 0===i&&(i=!0),t=this.getNewWidth(t),e=this.getNewHeight(e);var s=this.snapTo,n=0===e?1:t/e;return i&&this.aspectRatio>n||!i&&this.aspectRation)&&(t=(e=r(e,s.y))*this.aspectRatio,0{t.exports="add"},95393:t=>{t.exports="remove"},36716:(t,e,i)=>{t.exports={PROCESS_QUEUE_ADD:i(94160),PROCESS_QUEUE_REMOVE:i(95393)}},20010:(t,e,i)=>{t.exports={Events:i(36716),List:i(71207),Map:i(33885),ProcessQueue:i(74623),RTree:i(68687),Set:i(58403),Size:i(90881)}},17487:(t,e,i)=>{var s=i(56694),d=i(82897),p=i(27119),n=i(86459),r=i(28621),o=i(31673),i=new s({Extends:o,initialize:function(t,e,i,s,n){o.call(this,t,e,i,s,n),this.add("__BASE",0,0,0,s,n),this._source=this.frames.__BASE.source,this.canvas=this._source.image,this.context=this.canvas.getContext("2d",{willReadFrequently:!0}),this.width=s,this.height=n,this.imageData=this.context.getImageData(0,0,s,n),this.data=null,this.imageData&&(this.data=this.imageData.data),this.pixels=null,this.buffer,this.data&&(this.imageData.data.buffer?(this.buffer=this.imageData.data.buffer,this.pixels=new Uint32Array(this.buffer)):window.ArrayBuffer?(this.buffer=new ArrayBuffer(this.imageData.data.length),this.pixels=new Uint32Array(this.buffer)):this.pixels=this.imageData.data)},update:function(){return this.imageData=this.context.getImageData(0,0,this.width,this.height),this.data=this.imageData.data,this.imageData.data.buffer?(this.buffer=this.imageData.data.buffer,this.pixels=new Uint32Array(this.buffer)):window.ArrayBuffer?(this.buffer=new ArrayBuffer(this.imageData.data.length),this.pixels=new Uint32Array(this.buffer)):this.pixels=this.imageData.data,this.manager.game.config.renderType===n.WEBGL&&this.refresh(),this},draw:function(t,e,i,s){return void 0===s&&(s=!0),this.context.drawImage(i,t,e),s&&this.update(),this},drawFrame:function(t,e,i,s,n){void 0===i&&(i=0),void 0===s&&(s=0),void 0===n&&(n=!0);var r,o,a,t=this.manager.getFrame(t,e);return t&&(e=t.canvasData,r=t.cutWidth,o=t.cutHeight,a=t.source.resolution,this.context.drawImage(t.source.image,e.x,e.y,r,o,i,s,r/a,o/a),n)&&this.update(),this},setPixel:function(t,e,i,s,n,r){var o;return void 0===r&&(r=255),t=Math.abs(Math.floor(t)),e=Math.abs(Math.floor(e)),-1{var u=i(95723),a=i(51052),h=i(61068),s=i(56694),l=i(86459),b=i(82047),g=i(72632),c=i(65641),d=i(37410),p=i(31673),f=i(75512),i=new s({Extends:p,initialize:function(t,e,i,s){void 0===i&&(i=256),void 0===s&&(s=256),this.type="DynamicTexture";var n=t.game.renderer,r=n&&n.type===l.CANVAS,o=r?h.create2D(this,i,s):[this];p.call(this,t,e,o,i,s),this.add("__BASE",0,0,0,i,s),this.renderer=n,this.isDrawing=!1,this.canvas=r?o:null,this.context=r?o.getContext("2d",{willReadFrequently:!0}):null,this.dirty=!1,this.isSpriteTexture=!0,this._eraseMode=!1,this.camera=new a(0,0,i,s).setScene(t.game.scene.systemScene,!1),this.renderTarget=r?null:new d(n,i,s,1,0,!1,!0,!0,!1),this.pipeline=r?null:n.pipelines.get(c.SINGLE_PIPELINE),this.setSize(i,s)},setSize:function(t,e){void 0===e&&(e=t);var i,s=this.get(),n=s.source;return t!==this.width||e!==this.height?(this.canvas&&(this.canvas.width=t,this.canvas.height=e),(i=this.renderTarget)&&(i.resize(t,e),s.glTexture=i.texture,n.isRenderTexture=!0,n.isGLTexture=!0,n.glTexture=i.texture,n.glTexture.flipY=!0),this.camera.setSize(t,e),n.width=t,n.height=e,s.setSize(t,e),this.width=t,this.height=e):(i=this.getSourceImage(),s.cutX+t>i.width&&(t=i.width-s.cutX),s.cutY+e>i.height&&(e=i.height-s.cutY),s.setSize(t,e,s.cutX,s.cutY)),this},setIsSpriteTexture:function(t){return this.isSpriteTexture=t,this},fill:function(t,e,i,s,n,r){var o,a,h=this.camera,l=this.renderer,u=(void 0===e&&(e=1),void 0===i&&(i=0),void 0===s&&(s=0),void 0===n&&(n=this.width),void 0===r&&(r=this.height),t>>16&255),c=t>>8&255,t=255&t,d=this.renderTarget;return h.preRender(),d?(d.bind(!0),h=this.pipeline.manager.set(this.pipeline),o=l.width/d.width,a=l.height/d.height,h.drawFillRect(i*o,s*a,n*o,r*a,f.getTintFromFloats(t/255,c/255,u/255,1),e),d.unbind(!0)):(h=this.context,l.setContext(h),h.globalCompositeOperation="source-over",h.fillStyle="rgba("+u+","+c+","+t+","+e+")",h.fillRect(i,s,n,r),l.setContext()),this.dirty=!0,this},clear:function(){var t,e;return this.dirty&&(t=this.context,(e=this.renderTarget)?e.clear():t&&(t.save(),t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,this.width,this.height),t.restore()),this.dirty=!1),this},stamp:function(t,e,i,s,n){void 0===i&&(i=0),void 0===s&&(s=0);var r=g(n,"alpha",1),o=g(n,"tint",16777215),a=g(n,"angle",0),h=g(n,"rotation",0),l=g(n,"scale",1),u=g(n,"scaleX",l),l=g(n,"scaleY",l),c=g(n,"originX",.5),d=g(n,"originY",.5),p=g(n,"blendMode",0),f=g(n,"erase",!1),n=g(n,"skipBatch",!1),r=this.manager.resetStamp(r,o);return r.setAngle(0),0!==a?r.setAngle(a):0!==h&&r.setRotation(h),r.setScale(u,l),r.setTexture(t,e),r.setOrigin(c,d),r.setBlendMode(p),f&&(this._eraseMode=!0),n?this.batchGameObject(r,i,s):this.draw(r,i,s),f&&(this._eraseMode=!1),this},erase:function(t,e,i){return this._eraseMode=!0,this.draw(t,e,i),this._eraseMode=!1,this},draw:function(t,e,i,s,n){return this.beginDraw(),this.batchDraw(t,e,i,s,n),this.endDraw(),this},drawFrame:function(t,e,i,s,n,r){return this.beginDraw(),this.batchDrawFrame(t,e,i,s,n,r),this.endDraw(),this},repeat:function(t,e,i,s,n,r,o,a,h){if(void 0===i&&(i=0),void 0===s&&(s=0),void 0===n&&(n=this.width),void 0===r&&(r=this.height),void 0===o&&(o=1),void 0===a&&(a=16777215),void 0===h&&(h=!1),e=t instanceof b?t:this.manager.getFrame(t,e)){var l=this.manager.resetStamp(o,a),u=(l.setFrame(e),l.setOrigin(0),e.width),c=e.height,d=(n=Math.floor(n),r=Math.floor(r),Math.ceil(n/u)),p=Math.ceil(r/c),f=d*u-n,g=p*c-r,y=(0{var s=i(56694),w=i(82897),n=i(98611),r=new s({initialize:function(t,e,i,s,n,r,o){this.texture=t,this.name=e,this.source=t.source[i],this.sourceIndex=i,this.glTexture=this.source.glTexture,this.cutX,this.cutY,this.cutWidth,this.cutHeight,this.x=0,this.y=0,this.width,this.height,this.halfWidth,this.halfHeight,this.centerX,this.centerY,this.pivotX=0,this.pivotY=0,this.customPivot=!1,this.rotated=!1,this.autoRound=-1,this.customData={},this.u0=0,this.v0=0,this.u1=0,this.v1=0,this.data={cut:{x:0,y:0,w:0,h:0,r:0,b:0},trim:!1,sourceSize:{w:0,h:0},spriteSourceSize:{x:0,y:0,w:0,h:0,r:0,b:0},radius:0,drawImage:{x:0,y:0,width:0,height:0}},this.setSize(r,o,s,n)},setSize:function(t,e,i,s){void 0===s&&(s=0),this.cutX=i=void 0===i?0:i,this.cutY=s,this.cutWidth=t,this.cutHeight=e,this.width=t,this.height=e,this.halfWidth=Math.floor(.5*t),this.halfHeight=Math.floor(.5*e),this.centerX=Math.floor(t/2),this.centerY=Math.floor(e/2);var n=this.data,r=n.cut,r=(r.x=i,r.y=s,r.w=t,r.h=e,r.r=i+t,r.b=s+e,n.sourceSize.w=t,n.sourceSize.h=e,n.spriteSourceSize.w=t,n.spriteSourceSize.h=e,n.radius=.5*Math.sqrt(t*t+e*e),n.drawImage);return r.x=i,r.y=s,r.width=t,r.height=e,this.updateUVs()},setTrim:function(t,e,i,s,n,r){var o=this.data,a=o.spriteSourceSize;return o.trim=!0,o.sourceSize.w=t,o.sourceSize.h=e,a.x=i,a.y=s,a.w=n,a.h=r,a.r=i+n,a.b=s+r,this.x=i,this.y=s,this.width=n,this.height=r,this.halfWidth=.5*n,this.halfHeight=.5*r,this.centerX=Math.floor(n/2),this.centerY=Math.floor(r/2),this.updateUVs()},setCropUVs:function(t,e,i,s,n,r,o){var a,h,l,u=this.cutX,c=this.cutY,d=this.cutWidth,p=this.cutHeight,f=this.realWidth,g=this.realHeight,y=u+(e=w(e,0,f)),v=c+(i=w(i,0,g)),f=s=w(s,0,f-e),g=n=w(n,0,g-i),m=this.data,m=(m.trim?(m=m.spriteSourceSize,h=e+(s=w(s,0,d-e)),l=i+(n=w(n,0,p-i)),m.rh||m.y>l?g=f=v=y=0:(x=Math.max(m.x,e),a=Math.max(m.y,i),h=Math.min(m.r,h)-x,l=Math.min(m.b,l)-a,y=r?u+(d-(x-m.x)-h):u+(x-m.x),v=o?c+(p-(a-m.y)-l):c+(a-m.y),e=x,i=a,s=f=h,n=g=l)):(r&&(y=u+(d-e-s)),o&&(v=c+(p-i-n))),this.source.width),x=this.source.height;return t.u0=Math.max(0,y/m),t.v0=Math.max(0,v/x),t.u1=Math.min(1,(y+f)/m),t.v1=Math.min(1,(v+g)/x),t.x=e,t.y=i,t.cx=y,t.cy=v,t.cw=f,t.ch=g,t.width=s,t.height=n,t.flipX=r,t.flipY=o,t},updateCropUVs:function(t,e,i){return this.setCropUVs(t,t.x,t.y,t.width,t.height,e,i)},setUVs:function(t,e,i,s,n,r){var o=this.data.drawImage;return o.width=t,o.height=e,this.u0=i,this.v0=s,this.u1=n,this.v1=r,this},updateUVs:function(){var t=this.cutX,e=this.cutY,i=this.cutWidth,s=this.cutHeight,n=this.data.drawImage,n=(n.width=i,n.height=s,this.source.width),r=this.source.height;return this.u0=t/n,this.v0=e/r,this.u1=(t+i)/n,this.v1=(e+s)/r,this},updateUVsInverted:function(){var t=this.source.width,e=this.source.height;return this.u0=(this.cutX+this.cutHeight)/t,this.v0=this.cutY/e,this.u1=this.cutX/t,this.v1=(this.cutY+this.cutWidth)/e,this},clone:function(){var t=new r(this.texture,this.name,this.sourceIndex);return t.cutX=this.cutX,t.cutY=this.cutY,t.cutWidth=this.cutWidth,t.cutHeight=this.cutHeight,t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t.halfWidth=this.halfWidth,t.halfHeight=this.halfHeight,t.centerX=this.centerX,t.centerY=this.centerY,t.rotated=this.rotated,t.data=n(!0,t.data,this.data),t.updateUVs(),t},destroy:function(){this.source=null,this.texture=null,this.glTexture=null,this.customData=null,this.data=null},realWidth:{get:function(){return this.data.sourceSize.w}},realHeight:{get:function(){return this.data.sourceSize.h}},radius:{get:function(){return this.data.radius}},trimmed:{get:function(){return this.data.trim}},canvasData:{get:function(){return this.data.drawImage}}});t.exports=r},31673:(t,e,i)=>{var s=i(56694),o=i(82047),a=i(32547),i=new s({initialize:function(t,e,i,s,n){Array.isArray(i)||(i=[i]),this.manager=t,this.key=e,this.source=[],this.dataSource=[],this.frames={},this.customData={},this.firstFrame="__BASE";for(var r=this.frameTotal=0;r{var a=i(61068),n=i(17487),s=i(56694),r=i(27119),o=i(86459),h=i(845),l=i(6659),u=i(38203),c=i(82047),d=i(97081),p=i(52780),f=i(10850),g=i(1539),y=i(42911),v=i(69150),m=i(74118),x=i(31673),i=new s({Extends:l,initialize:function(t){l.call(this),this.game=t,this.name="TextureManager",this.list={},this._tempCanvas=a.create2D(this),this._tempContext=this._tempCanvas.getContext("2d",{willReadFrequently:!0}),this._pending=0,this.stamp,this.stampCrop=new m,this.silentWarnings=!1,t.events.once(d.BOOT,this.boot,this)},boot:function(){this._pending=3,this.on(u.LOAD,this.updatePending,this),this.on(u.ERROR,this.updatePending,this);var t=this.game.config;this.addBase64("__DEFAULT",t.defaultImage),this.addBase64("__MISSING",t.missingImage),this.addBase64("__WHITE",t.whiteImage),this.game.events.once(d.DESTROY,this.destroy,this)},updatePending:function(){this._pending--,0===this._pending&&(this.off(u.LOAD),this.off(u.ERROR),this.emit(u.READY),this.stamp=new g(this.game.scene.systemScene).setOrigin(0))},checkKey:function(t){return!this.exists(t)||(this.silentWarnings,!1)},remove:function(t){if("string"==typeof t){if(!this.exists(t))return this.silentWarnings,this;t=this.get(t)}return this.list.hasOwnProperty(t.key)&&(t.destroy(),this.emit(u.REMOVE,t.key),this.emit(u.REMOVE_KEY+t.key)),this},removeKey:function(t){return this.list.hasOwnProperty(t)&&delete this.list[t],this},addBase64:function(e,t){var i,s;return this.checkKey(e)&&(i=this,(s=new Image).onerror=function(){i.emit(u.ERROR,e)},s.onload=function(){var t=i.create(e,s);v.Image(t,0),i.emit(u.ADD,e,t),i.emit(u.ADD_KEY+e,t),i.emit(u.LOAD,e,t)},s.src=t),this},getBase64:function(t,e,i,s){void 0===i&&(i="image/png"),void 0===s&&(s=.92);var n,r,o="",t=this.getFrame(t,e);return t&&(t.source.isRenderTexture||t.source.isGLTexture)?this.silentWarnings:t&&(e=t.canvasData,r=(n=a.create2D(this,e.width,e.height)).getContext("2d",{willReadFrequently:!0}),0=s.x&&t=s.y&&e=s.x&&t=s.y&&e{var s=i(61068),n=i(56694),o=i(28621),a=i(27394),i=new n({initialize:function(t,e,i,s,n){void 0===n&&(n=!1);var r=t.manager.game;this.renderer=r.renderer,this.texture=t,this.source=e,this.image=e.compressed?null:e,this.compressionAlgorithm=e.compressed?e.format:null,this.resolution=1,this.width=i||e.naturalWidth||e.videoWidth||e.width||0,this.height=s||e.naturalHeight||e.videoHeight||e.height||0,this.scaleMode=a.DEFAULT,this.isCanvas=e instanceof HTMLCanvasElement,this.isVideo=window.hasOwnProperty("HTMLVideoElement")&&e instanceof HTMLVideoElement,this.isRenderTexture="RenderTexture"===e.type||"DynamicTexture"===e.type,this.isGLTexture=window.hasOwnProperty("WebGLTexture")&&e instanceof WebGLTexture,this.isPowerOf2=o(this.width,this.height),this.glTexture=null,this.flipY=n,this.init(r)},init:function(t){var e,i,s,n,r,o,a=this.renderer;a&&(e=this.source,a.gl?(i=this.image,s=this.flipY,n=this.width,r=this.height,o=this.scaleMode,this.isCanvas?this.glTexture=a.createCanvasTexture(i,!1,s):this.isVideo?this.glTexture=a.createVideoTexture(i,!1,s):this.isRenderTexture?this.glTexture=a.createTextureFromSource(null,n,r,o):this.isGLTexture?this.glTexture=e:this.compressionAlgorithm?this.glTexture=a.createTextureFromSource(e):this.glTexture=a.createTextureFromSource(i,n,r,o)):this.isRenderTexture&&(this.image=e.canvas)),t.config.antialias||this.setFilter(1)},setFilter:function(t){this.renderer.gl&&this.renderer.setTextureFilter(this.glTexture,t),this.scaleMode=t},setFlipY:function(t){return this.flipY=t=void 0===t?!0:t,this},update:function(){var t=this.renderer,e=this.image,i=this.flipY,s=t.gl;s&&this.isCanvas?this.glTexture=t.updateCanvasTexture(e,this.glTexture,i):s&&this.isVideo&&(this.glTexture=t.updateVideoTexture(e,this.glTexture,i))},destroy:function(){this.glTexture&&this.renderer.deleteTexture(this.glTexture,!0),this.isCanvas&&s.remove(this.image),this.renderer=null,this.texture=null,this.source=null,this.image=null,this.glTexture=null}});t.exports=i},65154:t=>{t.exports={LINEAR:0,NEAREST:1}},49644:t=>{t.exports="addtexture"},29569:t=>{t.exports="addtexture-"},60079:t=>{t.exports="onerror"},72665:t=>{t.exports="onload"},93006:t=>{t.exports="ready"},69018:t=>{t.exports="removetexture"},85549:t=>{t.exports="removetexture-"},38203:(t,e,i)=>{t.exports={ADD:i(49644),ADD_KEY:i(29569),ERROR:i(60079),LOAD:i(72665),READY:i(93006),REMOVE:i(69018),REMOVE_KEY:i(85549)}},87499:(t,e,i)=>{var s=i(98611),n=i(65154),s=s(!1,{CanvasTexture:i(17487),DynamicTexture:i(845),Events:i(38203),FilterMode:n,Frame:i(82047),Parsers:i(69150),Texture:i(31673),TextureManager:i(6237),TextureSource:i(32547)},n);t.exports=s},35082:t=>{t.exports=function(t,e,i){if(i.getElementsByTagName("TextureAtlas")){var s=t.source[e];t.add("__BASE",e,0,0,s.width,s.height);for(var n=i.getElementsByTagName("SubTexture"),r=0;r{t.exports=function(t,e){var i=t.source[e];return t.add("__BASE",e,0,0,i.width,i.height),t}},21560:t=>{t.exports=function(t,e){var i=t.source[e];return t.add("__BASE",e,0,0,i.width,i.height),t}},64423:(t,e,i)=>{var u=i(32742);t.exports=function(t,e,i){if(i.frames||i.textures){var s=t.source[e];t.add("__BASE",e,0,0,s.width,s.height);for(var n,r,o=(Array.isArray(i.textures)?i.textures[e]:i).frames,a=0;a{var u=i(32742);t.exports=function(t,e,i){if(i.frames){var s=t.source[e];t.add("__BASE",e,0,0,s.width,s.height);var n,r,o,a,h,l=i.frames;for(r in l)l.hasOwnProperty(r)&&(o=l[r],n=t.add(r,e,o.frame.x,o.frame.y,o.frame.w,o.frame.h))&&(o.trimmed&&n.setTrim(o.sourceSize.w,o.sourceSize.h,o.spriteSourceSize.x,o.spriteSourceSize.y,o.spriteSourceSize.w,o.spriteSourceSize.h),o.rotated&&(n.rotated=!0,n.updateUVsInverted()),(a=o.anchor||o.pivot)&&(n.customPivot=!0,n.pivotX=a.x,n.pivotY=a.y),n.customData=u(o));for(h in i)"frames"!==h&&(Array.isArray(i[h])?t.customData[h]=i[h].slice(0):t.customData[h]=i[h]);return t}}},67409:t=>{t.exports=function(t){var e=[171,75,84,88,32,49,49,187,13,10,26,10],i=new Uint8Array(t,0,12);for(f=0;f>1),p=Math.max(1,p>>1),c+=g}return{mipmaps:u,width:a,height:h,internalFormat:o,compressed:!0,generateMipmap:!1}}}},24904:t=>{function i(t,e,i,s,n,r,o){return void 0===o&&(o=16),Math.floor((t+i)/n)*Math.floor((e+s)/r)*o}function e(t,e){return(t=Math.max(t,16))*Math.max(e,8)/4}function s(t,e){return(t=Math.max(t,8))*Math.max(e,8)/2}function n(t,e){return i(t,e,3,3,4,4,8)}function r(t,e){return i(t,e,3,3,4,4)}var f={0:{sizeFunc:e,glFormat:35841},1:{sizeFunc:e,glFormat:35843},2:{sizeFunc:s,glFormat:35840},3:{sizeFunc:s,glFormat:35842},6:{sizeFunc:n,glFormat:36196},7:{sizeFunc:n,glFormat:33776},8:{sizeFunc:r,glFormat:33777},9:{sizeFunc:r,glFormat:33778},11:{sizeFunc:r,glFormat:33779},22:{sizeFunc:n,glFormat:37492},23:{sizeFunc:r,glFormat:37496},24:{sizeFunc:n,glFormat:37494},25:{sizeFunc:n,glFormat:37488},26:{sizeFunc:r,glFormat:37490},27:{sizeFunc:r,glFormat:37808},28:{sizeFunc:function(t,e){return i(t,e,4,3,5,4)},glFormat:37809},29:{sizeFunc:function(t,e){return i(t,e,4,4,5,5)},glFormat:37810},30:{sizeFunc:function(t,e){return i(t,e,5,4,6,5)},glFormat:37811},31:{sizeFunc:function(t,e){return i(t,e,5,5,6,6)},glFormat:37812},32:{sizeFunc:function(t,e){return i(t,e,7,4,8,5)},glFormat:37813},33:{sizeFunc:function(t,e){return i(t,e,7,5,8,6)},glFormat:37814},34:{sizeFunc:function(t,e){return i(t,e,7,7,8,8)},glFormat:37815},35:{sizeFunc:function(t,e){return i(t,e,9,4,10,5)},glFormat:37816},36:{sizeFunc:function(t,e){return i(t,e,9,5,10,6)},glFormat:37817},37:{sizeFunc:function(t,e){return i(t,e,9,7,10,8)},glFormat:37818},38:{sizeFunc:function(t,e){return i(t,e,9,9,10,10)},glFormat:37819},39:{sizeFunc:function(t,e){return i(t,e,11,9,12,10)},glFormat:37820},40:{sizeFunc:function(t,e){return i(t,e,11,11,12,12)},glFormat:37821}};t.exports=function(t){for(var e=new Uint32Array(t,0,13),i=e[2],s=f[i].glFormat,n=f[i].sizeFunc,r=e[11],i=e[7],o=e[6],e=52+e[12],a=new Uint8Array(t,e),h=new Array(r),l=0,u=i,c=o,d=0;d>1),c=Math.max(1,c>>1),l+=p}return{mipmaps:h,width:i,height:o,internalFormat:s,compressed:!0,generateMipmap:!1}}},6143:(t,e,i)=>{var S=i(72632);t.exports=function(t,e,i,s,n,r,o){var a=S(o,"frameWidth",null),h=S(o,"frameHeight",a);if(null===a)throw new Error("TextureManager.SpriteSheet: Invalid frameWidth given.");var l=t.source[e],u=(t.add("__BASE",e,0,0,l.width,l.height),S(o,"startFrame",0)),c=S(o,"endFrame",-1),d=S(o,"margin",0),p=S(o,"spacing",0),f=Math.floor((n-d+p)/(a+p))*Math.floor((r-d+p)/(h+p));(u=fn&&(g=d,y+=h+p)}return t}},20030:(t,e,i)=>{var B=i(72632);t.exports=function(t,e,i){var s=B(i,"frameWidth",null),n=B(i,"frameHeight",s);if(!s)throw new Error("TextureManager.SpriteSheetFromAtlas: Invalid frameWidth given.");var r=t.source[0];t.add("__BASE",0,0,0,r.width,r.height);var r=B(i,"startFrame",0),I=B(i,"endFrame",-1),o=B(i,"margin",0),a=B(i,"spacing",0),h=e.cutX,l=e.cutY,i=e.cutWidth,u=e.cutHeight,c=e.realWidth,d=e.realHeight,p=Math.floor((c-o+a)/(s+a)),f=Math.floor((d-o+a)/(n+a)),g=p*f,y=e.x,v=s-y,m=s-(c-i-y),x=e.y,w=n-x,T=n-(d-u-x);(r=g{function f(t,e,i,s){var n=g-s.y-s.height;t.add(i,e,s.x,n,s.width,s.height)}var g=0;t.exports=function(t,e,i){var s=t.source[e];t.add("__BASE",e,0,0,s.width,s.height),g=s.height;for(var n=i.split("\n"),r=/^[ ]*(- )*(\w+)+[: ]+(.*)/,o="",a="",h={x:0,y:0,width:0,height:0},l=0;l{t.exports={AtlasXML:i(35082),Canvas:i(83332),Image:i(21560),JSONArray:i(64423),JSONHash:i(17264),KTXParser:i(67409),PVRParser:i(24904),SpriteSheet:i(6143),SpriteSheetFromAtlas:i(20030),UnityYAML:i(89187)}},93560:t=>{t.exports={CSV:0,TILED_JSON:1,ARRAY_2D:2,WELTMEISTER:3}},97042:(t,e,i)=>{i=new(i(56694))({initialize:function(t,e,i,s,n,r,o){(void 0===i||i<=0)&&(i=32),(void 0===s||s<=0)&&(s=32),void 0===n&&(n=0),void 0===r&&(r=0),this.name=t,this.firstgid=0|e,this.imageWidth=0|i,this.imageHeight=0|s,this.imageMargin=0|n,this.imageSpacing=0|r,this.properties=o||{},this.images=[],this.total=0},containsImageIndex:function(t){return t>=this.firstgid&&t{i=new(i(56694))({initialize:function(t){if(this.gids=[],void 0!==t)for(var e=0;e{var l=i(93560),u=i(16586),c=i(90715),d=i(89797);t.exports=function(t,e,i,s,n,r,o,a){void 0===i&&(i=32),void 0===s&&(s=32),void 0===n&&(n=10),void 0===r&&(r=10),void 0===a&&(a=!1);var h=null;return Array.isArray(o)?h=c(void 0!==e?e:"map",l.ARRAY_2D,o,i,s,a):void 0!==e&&(o=t.cache.tilemap.get(e))&&(h=c(e,o.format,o.data,i,s,a)),null===h&&(h=new u({tileWidth:i,tileHeight:s,width:n,height:r})),new d(t,h)}},29633:(t,e,i)=>{var s=i(56694),n=i(64937),r=i(12920),o=i(28699),a=i(66658),i=new s({Mixins:[n.Alpha,n.Flip,n.Visible],initialize:function(t,e,i,s,n,r,o,a){this.layer=t,this.index=e,this.x=i,this.y=s,this.width=n,this.height=r,this.right,this.bottom,this.baseWidth=void 0!==o?o:n,this.baseHeight=void 0!==a?a:r,this.pixelX=0,this.pixelY=0,this.updatePixelXY(),this.properties={},this.rotation=0,this.collideLeft=!1,this.collideRight=!1,this.collideUp=!1,this.collideDown=!1,this.faceLeft=!1,this.faceRight=!1,this.faceTop=!1,this.faceBottom=!1,this.collisionCallback=void 0,(this.collisionCallbackContext=this).tint=16777215,this.physics={}},containsPoint:function(t,e){return!(tthis.right||e>this.bottom)},copy:function(t){return this.index=t.index,this.alpha=t.alpha,this.properties=o(t.properties),this.visible=t.visible,this.setFlip(t.flipX,t.flipY),this.tint=t.tint,this.rotation=t.rotation,this.collideUp=t.collideUp,this.collideDown=t.collideDown,this.collideLeft=t.collideLeft,this.collideRight=t.collideRight,this.collisionCallback=t.collisionCallback,this.collisionCallbackContext=t.collisionCallbackContext,this},getCollisionGroup:function(){return this.tileset?this.tileset.getTileCollisionGroup(this.index):null},getTileData:function(){return this.tileset?this.tileset.getTileData(this.index):null},getLeft:function(t){var e=this.tilemapLayer;return e?e.tileToWorldXY(this.x,this.y,void 0,t).x:this.x*this.baseWidth},getRight:function(t){var e=this.tilemapLayer;return e?this.getLeft(t)+this.width*e.scaleX:this.getLeft(t)+this.width},getTop:function(t){var e=this.tilemapLayer;return e?e.tileToWorldXY(this.x,this.y,void 0,t).y:this.y*this.baseWidth-(this.height-this.baseHeight)},getBottom:function(t){var e=this.tilemapLayer;return e?this.getTop(t)+this.height*e.scaleY:this.getTop(t)+this.height},getBounds:function(t,e){return(e=void 0===e?new a:e).x=this.getLeft(t),e.y=this.getTop(t),e.width=this.getRight(t)-e.x,e.height=this.getBottom(t)-e.y,e},getCenterX:function(t){return(this.getLeft(t)+this.getRight(t))/2},getCenterY:function(t){return(this.getTop(t)+this.getBottom(t))/2},intersects:function(t,e,i,s){return!(i<=this.pixelX||s<=this.pixelY||t>=this.right||e>=this.bottom)},isInteresting:function(t,e){return t&&e?this.canCollide||this.hasInterestingFace:t?this.collides:!!e&&this.hasInterestingFace},resetCollision:function(t){return void 0===t&&(t=!0),this.collideLeft=!1,this.collideRight=!1,this.collideUp=!1,this.collideDown=!1,this.faceTop=!1,this.faceBottom=!1,this.faceLeft=!1,this.faceRight=!1,t&&this.tilemapLayer&&this.tilemapLayer.calculateFacesAt(this.x,this.y),this},resetFaces:function(){return this.faceTop=!1,this.faceBottom=!1,this.faceLeft=!1,this.faceRight=!1,this},setCollision:function(t,e,i,s,n){return void 0===e&&(e=t),void 0===i&&(i=t),void 0===s&&(s=t),void 0===n&&(n=!0),this.collideLeft=t,this.collideRight=e,this.collideUp=i,this.collideDown=s,this.faceLeft=t,this.faceRight=e,this.faceTop=i,this.faceBottom=s,n&&this.tilemapLayer&&this.tilemapLayer.calculateFacesAt(this.x,this.y),this},setCollisionCallback:function(t,e){return null===t?(this.collisionCallback=void 0,this.collisionCallbackContext=void 0):(this.collisionCallback=t,this.collisionCallbackContext=e),this},setSize:function(t,e,i,s){return void 0!==t&&(this.width=t),void 0!==e&&(this.height=e),void 0!==i&&(this.baseWidth=i),void 0!==s&&(this.baseHeight=s),this.updatePixelXY(),this},updatePixelXY:function(){var t,e,i,s=this.layer.orientation;return s===r.ORTHOGONAL?(this.pixelX=this.x*this.baseWidth,this.pixelY=this.y*this.baseHeight):s===r.ISOMETRIC?(this.pixelX=(this.x-this.y)*this.baseWidth*.5,this.pixelY=(this.x+this.y)*this.baseHeight*.5):s===r.STAGGERED?(this.pixelX=this.x*this.baseWidth+this.y%2*(this.baseWidth/2),this.pixelY=this.y*(this.baseHeight/2)):s===r.HEXAGONAL&&(s=this.layer.staggerAxis,e=this.layer.staggerIndex,i=this.layer.hexSideLength,"y"===s?(t=(this.baseHeight-i)/2+i,this.pixelX="odd"===e?this.x*this.baseWidth+this.y%2*(this.baseWidth/2):this.x*this.baseWidth-this.y%2*(this.baseWidth/2),this.pixelY=this.y*t):"x"===s&&(t=(this.baseWidth-i)/2+i,this.pixelX=this.x*t,this.pixelY="odd"===e?this.y*this.baseHeight+this.x%2*(this.baseHeight/2):this.y*this.baseHeight-this.x%2*(this.baseHeight/2))),this.right=this.pixelX+this.baseWidth,this.bottom=this.pixelY+this.baseHeight,this},destroy:function(){this.collisionCallback=void 0,this.collisionCallbackContext=void 0,this.properties=void 0},canCollide:{get:function(){return this.collideLeft||this.collideRight||this.collideUp||this.collideDown||void 0!==this.collisionCallback}},collides:{get:function(){return this.collideLeft||this.collideRight||this.collideUp||this.collideDown}},hasInterestingFace:{get:function(){return this.faceTop||this.faceBottom||this.faceLeft||this.faceRight}},tileset:{get:function(){var t=this.layer.tilemapLayer;if(t){t=t.gidMap[this.index];if(t)return t}return null}},tilemapLayer:{get:function(){return this.layer.tilemapLayer}},tilemap:{get:function(){var t=this.tilemapLayer;return t?t.tilemap:null}}});t.exports=i},89797:(t,e,i)=>{var l=i(14556),s=i(56694),P=i(75606),u=i(93560),_=i(72632),d=i(94990),E=i(46422),A=i(12920),C=i(52257),n=i(72677),M=i(13747),p=i(29633),h=i(5047),f=i(87177),c=i(47975),i=new s({initialize:function(t,e){this.scene=t,this.tileWidth=e.tileWidth,this.tileHeight=e.tileHeight,this.width=e.width,this.height=e.height,this.orientation=e.orientation,this.renderOrder=e.renderOrder,this.format=e.format,this.version=e.version,this.properties=e.properties,this.widthInPixels=e.widthInPixels,this.heightInPixels=e.heightInPixels,this.imageCollections=e.imageCollections,this.images=e.images,this.layers=e.layers,this.tiles=e.tiles,this.tilesets=e.tilesets,this.objects=e.objects,this.currentLayerIndex=0,this.hexSideLength=e.hexSideLength;t=this.orientation;this._convert={WorldToTileXY:h.GetWorldToTileXYFunction(t),WorldToTileX:h.GetWorldToTileXFunction(t),WorldToTileY:h.GetWorldToTileYFunction(t),TileToWorldXY:h.GetTileToWorldXYFunction(t),TileToWorldX:h.GetTileToWorldXFunction(t),TileToWorldY:h.GetTileToWorldYFunction(t),GetTileCorners:h.GetTileCornersFunction(t)}},setRenderOrder:function(t){var e=["right-down","left-down","right-up","left-up"];return"number"==typeof t&&(t=e[t]),-1{var s=i(99325),n=i(15043);s.register("tilemap",function(t){t=void 0!==t?t:{};return n(this.scene,t.key,t.tileWidth,t.tileHeight,t.width,t.height,t.data,t.insertNull)})},37940:(t,e,i)=>{var s=i(61286),a=i(15043);s.register("tilemap",function(t,e,i,s,n,r,o){return a(this.scene,t=null===t?void 0:t,e=null===e?void 0:e,i=null===i?void 0:i,s=null===s?void 0:s,n=null===n?void 0:n,r,o)})},87177:(t,e,i)=>{var s=i(56694),n=i(64937),o=i(89980),a=i(5047),r=i(96193),h=i(93736),i=new s({Extends:o,Mixins:[n.Alpha,n.BlendMode,n.ComputedSize,n.Depth,n.Flip,n.GetBounds,n.Mask,n.Origin,n.Pipeline,n.PostPipeline,n.Transform,n.Visible,n.ScrollFactor,r],initialize:function(t,e,i,s,n,r){o.call(this,t,"TilemapLayer"),this.isTilemap=!0,this.tilemap=e,this.layerIndex=i,this.layer=e.layers[i],(this.layer.tilemapLayer=this).tileset=[],this.tilesDrawn=0,this.tilesTotal=this.layer.width*this.layer.height,this.culledTiles=[],this.skipCull=!1,this.cullPaddingX=1,this.cullPaddingY=1,this.cullCallback=a.GetCullTilesFunction(this.layer.orientation),this._renderOrder=0,this.gidMap=[],this.tempVec=new h,this.setTilesets(s),this.setAlpha(this.layer.alpha),this.setPosition(n,r),this.setOrigin(0,0),this.setSize(e.tileWidth*this.layer.width,e.tileHeight*this.layer.height),this.initPipeline(),this.initPostPipeline(!1)},setTilesets:function(t){var e=[],i=[],s=this.tilemap;Array.isArray(t)||(t=[t]);for(var n=0;n{var i=i(69360),T=new i,b=new i,S=new i;t.exports=function(t,e,i,s){var n=e.cull(i),r=n.length,o=i.alpha*e.alpha;if(!(0===r||o<=0)){var a=T,h=b,l=S,u=(h.applyITRS(e.x,e.y,e.rotation,e.scaleX,e.scaleY),a.copyFrom(i.matrix),t.currentContext),c=e.gidMap;u.save(),(s?(a.multiplyWithOffset(s,-i.scrollX*e.scrollFactorX,-i.scrollY*e.scrollFactorY),h.e=e.x,h.f=e.y,a.multiply(h,l),l):(h.e-=i.scrollX*e.scrollFactorX,h.f-=i.scrollY*e.scrollFactorY,h)).copyToContext(u),(!t.antialias||1{var s;i(72283),s=i(51395),i=i(17394),t.exports={renderWebGL:s,renderCanvas:i}},51395:(t,e,i)=>{var C=i(75512);t.exports=function(t,e,i){var s=e.cull(i),n=s.length,r=i.alpha*e.alpha;if(!(0===n||r<=0)){var o=e.gidMap,a=t.pipelines.set(e.pipeline,e),h=C.getTintAppendFloatAlpha,l=e.scrollFactorX,u=e.scrollFactorY,c=e.x,d=e.y,p=e.scaleX,f=e.scaleY;t.pipelines.preBatch(e);for(var g=0;g{var s=i(56694),l=i(93736),i=new s({initialize:function(t,e,i,s,n,r,o,a,h){(void 0===i||i<=0)&&(i=32),(void 0===s||s<=0)&&(s=32),void 0===n&&(n=0),void 0===r&&(r=0),void 0===o&&(o={}),void 0===a&&(a={}),this.name=t,this.firstgid=e,this.tileWidth=i,this.tileHeight=s,this.tileMargin=n,this.tileSpacing=r,this.tileProperties=o,this.tileData=a,this.tileOffset=new l,void 0!==h&&this.tileOffset.set(h.x,h.y),this.image=null,this.glTexture=null,this.rows=0,this.columns=0,this.total=0,this.texCoordinates=[]},getTileProperties:function(t){return this.containsTileIndex(t)?this.tileProperties[t-this.firstgid]:null},getTileData:function(t){return this.containsTileIndex(t)?this.tileData[t-this.firstgid]:null},getTileCollisionGroup:function(t){t=this.getTileData(t);return t&&t.objectgroup?t.objectgroup:null},containsTileIndex:function(t){return t>=this.firstgid&&t{var a=i(15494);t.exports=function(t,e,i){var s=a(t,e,!0,i),n=a(t,e-1,!0,i),r=a(t,e+1,!0,i),o=a(t-1,e,!0,i),t=a(t+1,e,!0,i),e=s&&s.collides;return e&&(s.faceTop=!0,s.faceBottom=!0,s.faceLeft=!0,s.faceRight=!0),n&&n.collides&&(e&&(s.faceTop=!1),n.faceBottom=!e),r&&r.collides&&(e&&(s.faceBottom=!1),r.faceTop=!e),o&&o.collides&&(e&&(s.faceLeft=!1),o.faceRight=!e),t&&t.collides&&(e&&(s.faceRight=!1),t.faceLeft=!e),s&&!s.collides&&s.resetFaces(),s}},60386:(t,e,i)=>{var d=i(15494),p=i(50811);t.exports=function(t,e,i,s,n){for(var r,o,a,h,l=p(t,e,i,s,null,n),u=0;u{var a=new(i(93736));t.exports=function(t,e,i,s){var n=i.tilemapLayer,r=n.cullPaddingX,o=n.cullPaddingY,t=n.tilemap.tileToWorldXY(t,e,a,s,n);return t.x>s.worldView.x+n.scaleX*i.tileWidth*(-r-.5)&&t.xs.worldView.y+n.scaleY*i.tileHeight*(-o-1)&&t.y{var y=i(60386),v=i(50811),m=i(62839),x=i(29633);t.exports=function(t,e,i,s,n,r,o,a){void 0===o&&(o=!0);var h=v(t,e,i,s,null,a),l=[];h.forEach(function(t){var e=new x(t.layer,t.index,t.x,t.y,t.width,t.height,t.baseWidth,t.baseHeight);e.copy(t),l.push(e)});for(var u=n-t,c=r-e,d=0;d{var c=i(50811),d=i(51202);t.exports=function(t,e,i,s,n,r){i=i||{},Array.isArray(t)||(t=[t]);var o=r.tilemapLayer;s=s||o.scene,n=n||s.cameras.main;for(var a=c(0,0,r.width,r.height,null,r),h=[],l=0;l{var s=i(74118),o=i(82127),a=i(84314),h=new s;t.exports=function(t,e){var i=t.tilemapLayer.tilemap,t=t.tilemapLayer,s=Math.floor(i.tileWidth*t.scaleX),i=Math.floor(i.tileHeight*t.scaleY),n=a(e.worldView.x-t.x,s,0,!0)-t.cullPaddingX,s=o(e.worldView.right-t.x,s,0,!0)+t.cullPaddingX,r=a(e.worldView.y-t.y,i,0,!0)-t.cullPaddingY,e=o(e.worldView.bottom-t.y,i,0,!0)+t.cullPaddingY;return h.setTo(n,r,s-n,e-r)}},381:(t,e,i)=>{var r=i(71586),o=i(6987);t.exports=function(t,e,i,s){void 0===s&&(s=0),(i=void 0===i?[]:i).length=0;var n=t.tilemapLayer,e=r(t,e);return!n.skipCull&&1===n.scrollFactorX&&1===n.scrollFactorY||(e.left=0,e.right=t.width,e.top=0,e.bottom=t.height),o(t,e,s,i),i}},97734:(t,e,i)=>{var u=i(50811),c=i(60386),d=i(68234);t.exports=function(t,e,i,s,n,r,o){for(var a=-1!==o.collideIndexes.indexOf(t),h=u(e,i,s,n,null,o),l=0;l{var h=i(50811);t.exports=function(t,e,i,s,n,r,o,a){return h(i,s,n,r,o,a).filter(t,e)}},37982:t=>{t.exports=function(t,e,i,s){void 0===e&&(e=0);var n,r,o,a=0;if(i=void 0===i?!1:i){for(r=s.height-1;0<=r;r--)for(n=s.width-1;0<=n;n--)if((o=s.data[r][n])&&o.index===t){if(a===e)return o;a+=1}}else for(r=0;r{var h=i(50811);t.exports=function(t,e,i,s,n,r,o,a){return h(i,s,n,r,o,a).find(t,e)||null}},80916:(t,e,i)=>{var h=i(50811);t.exports=function(t,e,i,s,n,r,o,a){h(i,s,n,r,o,a).forEach(t,e)}},31493:(t,e,i)=>{var s=i(12920),n=i(381),r=i(37524),o=i(20887),a=i(72283),h=i(19242);t.exports=function(t){return t===s.ORTHOGONAL?n:t===s.HEXAGONAL?r:t===s.STAGGERED?h:t===s.ISOMETRIC?o:a}},15494:(t,e,i)=>{var n=i(62839);t.exports=function(t,e,i,s){return void 0===i&&(i=!1),n(t,e,s)&&(s=s.data[e][t]||null)&&(-1!==s.index||i)?s:null}},24640:(t,e,i)=>{var r=i(15494),o=new(i(93736));t.exports=function(t,e,i,s,n){return n.tilemapLayer.worldToTileXY(t,e,!0,o,s),r(o.x,o.y,i,n)}},48495:(t,e,i)=>{var h=i(93736);t.exports=function(t,e,i,s){var n=s.baseTileWidth,r=s.baseTileHeight,s=s.tilemapLayer,o=0,a=0,i=(s&&(i=i||s.scene.cameras.main,o=s.x+i.scrollX*(1-s.scrollFactorX),a=s.y+i.scrollY*(1-s.scrollFactorY),n*=s.scaleX,r*=s.scaleY),o+t*n),s=a+e*r;return[new h(i,s),new h(i+n,s),new h(i+n,s+r),new h(i,s+r)]}},7160:(t,e,i)=>{var s=i(12920),n=i(63634),r=i(72283),o=i(48495);t.exports=function(t){return t===s.ORTHOGONAL?o:t===s.ISOMETRIC?r:t===s.HEXAGONAL?n:(s.STAGGERED,r)}},16884:(t,e,i)=>{var s=i(12920),n=i(72283),r=i(44150);t.exports=function(t){return t===s.ORTHOGONAL?r:n}},68182:(t,e,i)=>{var s=i(12920),n=i(21715),r=i(21808),o=i(72283),a=i(33388),h=i(46836);t.exports=function(t){return t===s.ORTHOGONAL?h:t===s.ISOMETRIC?r:t===s.HEXAGONAL?n:t===s.STAGGERED?a:o}},3752:(t,e,i)=>{var s=i(12920),n=i(72283),r=i(84132),o=i(42477);t.exports=function(t){return t===s.ORTHOGONAL?o:t===s.STAGGERED?r:n}},50811:(t,e,i)=>{var p=i(72632);t.exports=function(t,e,i,s,n,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===i&&(i=r.width),void 0===s&&(s=r.height);var o=p(n=n||{},"isNotEmpty",!1),a=p(n,"isColliding",!1),h=p(n,"hasInterestingFace",!1);t<0&&(i+=t,t=0),e<0&&(s+=e,e=0),t+i>r.width&&(i=Math.max(r.width-t,0)),e+s>r.height&&(s=Math.max(r.height-e,0));for(var l=[],u=e;u{function f(t,e){return v.RectangleToTriangle(e,t)}var g=i(84068),y=i(50811),v=i(7563),m=i(72283),i=i(93736),x=new i,w=new i,T=new i;t.exports=function(t,e,i,s){if(void 0===t)return[];var n=m,r=(t instanceof g.Circle?n=v.CircleToRectangle:t instanceof g.Rectangle?n=v.RectangleToRectangle:t instanceof g.Triangle?n=f:t instanceof g.Line&&(n=v.LineToRectangle),s.tilemapLayer.worldToTileXY(t.left,t.top,!0,w,i),w.x),o=w.y,a=(s.tilemapLayer.worldToTileXY(t.right,t.bottom,!1,T,i),Math.ceil(T.x)),h=Math.ceil(T.y),a=Math.max(a-r,1),h=Math.max(h-o,1),l=y(r,o,a,h,e,s),r=s.tileWidth,o=s.tileHeight;s.tilemapLayer&&(r*=s.tilemapLayer.scaleX,o*=s.tilemapLayer.scaleY);for(var u=[],c=new g.Rectangle(0,0,r,o),d=0;d{var u=i(50811),i=i(93736),c=new i,d=new i;t.exports=function(t,e,i,s,n,r,o){var a=o.tilemapLayer.tilemap._convert.WorldToTileXY,h=(a(t,e,!0,c,r,o),c.x),l=c.y,a=(a(t+i,e+s,!1,d,r,o),Math.ceil(d.x)),t=Math.ceil(d.y);return u(h,l,a-h,t-l,n,o)}},29296:(t,e,i)=>{var s=i(12920),n=i(10618),r=i(806);t.exports=function(t){return t===s.ORTHOGONAL?r:n}},32688:(t,e,i)=>{var s=i(12920),n=i(11516),r=i(18750),o=i(72283),a=i(90562),h=i(45676);t.exports=function(t){return t===s.ORTHOGONAL?h:t===s.ISOMETRIC?r:t===s.HEXAGONAL?n:t===s.STAGGERED?a:o}},74326:(t,e,i)=>{var s=i(12920),n=i(10618),r=i(3689),o=i(70520);t.exports=function(t){return t===s.ORTHOGONAL?o:t===s.STAGGERED?r:n}},46598:(t,e,i)=>{var s=i(62839);t.exports=function(t,e,i){return!!s(t,e,i)&&null!==(i=i.data[e][t])&&-1{var n=i(46598),r=new(i(93736));t.exports=function(t,e,i,s){s.tilemapLayer.worldToTileXY(t,e,!0,r,i);t=r.x,e=r.y;return n(t,e,s)}},6358:(t,e,i)=>{var l=i(82127),u=i(84314);t.exports=function(t,e){var i,s,n,r,o=t.tilemapLayer.tilemap,a=t.tilemapLayer,h=Math.floor(o.tileWidth*a.scaleX),o=Math.floor(o.tileHeight*a.scaleY),t=t.hexSideLength;return h="y"===this.staggerAxis?(r=(o-t)/2+t,i=u(e.worldView.x-a.x,h,0,!0)-a.cullPaddingX,s=l(e.worldView.right-a.x,h,0,!0)+a.cullPaddingX,n=u(e.worldView.y-a.y,r,0,!0)-a.cullPaddingY,l(e.worldView.bottom-a.y,r,0,!0)+a.cullPaddingY):(i=u(e.worldView.x-a.x,r=(h-t)/2+t,0,!0)-a.cullPaddingX,s=l(e.worldView.right-a.x,r,0,!0)+a.cullPaddingX,n=u(e.worldView.y-a.y,o,0,!0)-a.cullPaddingY,l(e.worldView.bottom-a.y,o,0,!0)+a.cullPaddingY),{left:i,right:s,top:n,bottom:h}}},37524:(t,e,i)=>{var r=i(6358),o=i(6987);t.exports=function(t,e,i,s){void 0===s&&(s=0),(i=void 0===i?[]:i).length=0;var n=t.tilemapLayer,e=r(t,e);return n.skipCull&&1===n.scrollFactorX&&1===n.scrollFactorY&&(e.left=0,e.right=t.width,e.top=0,e.bottom=t.height),o(t,e,s,i),i}},63634:(t,e,i)=>{var p=i(21715),f=i(93736),g=new f;t.exports=function(t,e,i,s){var n=s.baseTileWidth,r=s.baseTileHeight,o=s.tilemapLayer;o&&(n*=o.scaleX,r*=o.scaleY);for(var a,h=p(t,e,g,i,s),l=[],o=.5773502691896257,u="y"===this.staggerAxis?(a=o*n,r/2):(a=n/2,o*r),c=0;c<6;c++){var d=2*Math.PI*(.5-c)/6;l.push(new f(h.x+a*Math.cos(d),h.y+u*Math.sin(d)))}return l}},21715:(t,e,i)=>{var c=i(93736);t.exports=function(t,e,i,s,n){i=i||new c;var r=n.baseTileWidth,o=n.baseTileHeight,n=n.tilemapLayer,a=0,h=0;n&&(s=s||n.scene.cameras.main,a=n.x+s.scrollX*(1-n.scrollFactorX),h=n.y+s.scrollY*(1-n.scrollFactorY),r*=n.scaleX,o*=n.scaleY);var l,u,s=r/2,n=o/2;return"y"===this.staggerAxis?(l=a+r*t+r,u=h+1.5*e*n+n,e%2==0&&("odd"===this.staggerIndex?l-=s:l+=s)):"x"===this.staggerAxis&&"odd"===this.staggerIndex&&(l=a+1.5*t*s+s,u=h+o*t+o,t%2==0)&&("odd"===this.staggerIndex?u-=n:u+=n),i.set(l,u)}},11516:(t,e,i)=>{var g=i(93736);t.exports=function(t,e,i,s,n,r){s=s||new g;var o=r.baseTileWidth,a=r.baseTileHeight,h=r.tilemapLayer;h&&(n=n||h.scene.cameras.main,t-=h.x+n.scrollX*(1-h.scrollFactorX),e-=h.y+n.scrollY*(1-h.scrollFactorY),o*=h.scaleX,a*=h.scaleY);var l,u,n=.5773502691896257,h=-.3333333333333333,c=.6666666666666666,d=o/2,p=a/2,o="y"===r.staggerAxis?(u=n*(f=(t-d)/(n*o))+h*(l=(e-p)/p),0*f+c*l):(u=h*(f=(t-d)/d)+n*(l=(e-p)/(n*a)),c*f+0*l),h=-u-o,t=Math.round(u),d=Math.round(o),e=Math.round(h),p=Math.abs(t-u),n=Math.abs(d-o),a=Math.abs(e-h),c=(n{t.exports=function(t,e,i){return 0<=t&&t{var f=i(13125);t.exports=function(t,e,i,s){void 0===s&&(s=0),(i=void 0===i?[]:i).length=0;var n,r,o,a=t.tilemapLayer,h=t.data,l=t.width,u=t.height,c=a.skipCull,d=l,p=u;if(0===s){for(r=0;r{var l=i(93736);t.exports=function(t,e,i,s,n){i=i||new l;var r=n.baseTileWidth,o=n.baseTileHeight,n=n.tilemapLayer,a=0,h=0;return n&&(s=s||n.scene.cameras.main,a=n.x+s.scrollX*(1-n.scrollFactorX),r*=n.scaleX,h=n.y+s.scrollY*(1-n.scrollFactorY),o*=n.scaleY),i.set(a+r/2*(t-e),h+(t+e)*(o/2))}},18750:(t,e,i)=>{var l=i(93736);t.exports=function(t,e,i,s,n,r,o){s=s||new l;var a=r.baseTileWidth,h=r.baseTileHeight,r=r.tilemapLayer,n=(r&&(n=n||r.scene.cameras.main,e-=r.y+n.scrollY*(1-r.scrollFactorY),h*=r.scaleY,t-=r.x+n.scrollX*(1-r.scrollFactorX),a*=r.scaleX),a/2),r=h/2,a=(o||(e-=h),.5*((t-=n)/n+e/r)),o=.5*(-t/n+e/r);return i&&(a=Math.floor(a),o=Math.floor(o)),s.set(a,o)}},29003:(t,e,i)=>{var l=i(29633),u=i(62839),c=i(92839),d=i(68234);t.exports=function(t,e,i,s,n){var r,o,a,h;return void 0===s&&(s=!0),u(e,i,n)?(r=(r=n.data[i][e])&&r.collides,t instanceof l?(null===n.data[i][e]&&(n.data[i][e]=new l(n,t.index,e,i,n.tileWidth,n.tileHeight)),n.data[i][e].copy(t)):(h=t,null===n.data[i][e]?n.data[i][e]=new l(n,h,e,i,n.tileWidth,n.tileHeight):n.data[i][e].index=h),o=n.data[i][e],a=-1!==n.collideIndexes.indexOf(o.index),-1===(h=t instanceof l?t.index:t)?(o.width=n.tileWidth,o.height=n.tileHeight):(t=n.tilemapLayer.tilemap.tiles[h][2],h=n.tilemapLayer.tileset[t],o.width=h.tileWidth,o.height=h.tileHeight),d(o,a),s&&r!==o.collides&&c(e,i,n),o):null}},48565:(t,e,i)=>{var o=i(29003),a=new(i(93736));t.exports=function(t,e,i,s,n,r){return r.tilemapLayer.worldToTileXY(e,i,!0,a,n,r),o(t,a.x,a.y,s,r)}},56547:(t,e,i)=>{var u=i(60386),c=i(29003);t.exports=function(t,e,i,s,n){if(void 0===s&&(s=!0),!Array.isArray(t))return null;for(var r=(t=Array.isArray(t[0])?t:[t]).length,o=t[0].length,a=0;a{var h=i(50811),l=i(72861);t.exports=function(t,e,i,s,n,r){var o,a=h(t,e,i,s,{},r);if(!n)for(n=[],o=0;o{var o=i(29633),a=i(62839),h=i(92839);t.exports=function(t,e,i,s,n){var r;return void 0===i&&(i=!0),void 0===s&&(s=!0),a(t,e,n)&&(r=n.data[e][t])?(n.data[e][t]=i?null:new o(n,-1,t,e,n.tileWidth,n.tileHeight),s&&r&&r.collides&&h(t,e,n),r):null}},17384:(t,e,i)=>{var o=i(929),a=new(i(93736));t.exports=function(t,e,i,s,n,r){return r.tilemapLayer.worldToTileXY(t,e,!0,a,n,r),o(a.x,a.y,i,s,r)}},93763:(t,e,i)=>{var f=i(50811),i=i(95509),g=new i(105,210,231,150),y=new i(243,134,48,200),v=new i(40,39,37,150);t.exports=function(t,e,i){var s=void 0!==(e=void 0===e?{}:e).tileColor?e.tileColor:g,n=void 0!==e.collidingTileColor?e.collidingTileColor:y,r=void 0!==e.faceColor?e.faceColor:v,o=f(0,0,i.width,i.height,null,i);t.translateCanvas(i.tilemapLayer.x,i.tilemapLayer.y),t.scaleCanvas(i.tilemapLayer.scaleX,i.tilemapLayer.scaleY);for(var a=0;a{var l=i(50811);t.exports=function(t,e,i,s,n,r,o){for(var a=l(i,s,n,r,null,o),h=0;h{t.exports=function(t,e,i,s){var n,r,o,a=t.data,h=t.width,l=t.height,t=t.tilemapLayer,u=Math.max(0,e.left),c=Math.min(h,e.right),d=Math.max(0,e.top),p=Math.min(l,e.bottom);if(0===i)for(r=d;r{var l=i(68234),u=i(60386),c=i(91181);t.exports=function(t,e,i,s,n){void 0===e&&(e=!0),void 0===i&&(i=!0),void 0===n&&(n=!0),Array.isArray(t)||(t=[t]);for(var r=0;r{var u=i(68234),c=i(60386),d=i(91181);t.exports=function(t,e,i,s,n,r){if(void 0===i&&(i=!0),void 0===s&&(s=!0),void 0===r&&(r=!0),!(e=t&&l.index<=e&&u(l,i)}s&&c(0,0,n.width,n.height,n)}}},33158:(t,e,i)=>{var a=i(68234),h=i(60386),l=i(91181);t.exports=function(t,e,i,s){void 0===e&&(e=!0),void 0===i&&(i=!0),Array.isArray(t)||(t=[t]);for(var n=0;n{var u=i(68234),c=i(60386),d=i(19256);t.exports=function(t,e,i,s){void 0===e&&(e=!0),void 0===i&&(i=!0);for(var n=0;n{var a=i(68234),h=i(60386);t.exports=function(t,e,i){void 0===t&&(t=!0),void 0===e&&(e=!0);for(var s=0;s{t.exports=function(t,e,i){var s=i.collideIndexes.indexOf(t);e&&-1===s?i.collideIndexes.push(t):e||-1===s||i.collideIndexes.splice(s,1)}},68234:t=>{t.exports=function(t,e){e?t.setCollision(!0,!0,!0,!0,!1):t.resetCollision(!1)}},11628:t=>{t.exports=function(t,e,i,s){if("number"==typeof t)s.callbacks[t]=null!==e?{callback:e,callbackContext:i}:void 0;else for(var n=0,r=t.length;n{var l=i(50811);t.exports=function(t,e,i,s,n,r,o){for(var a=l(t,e,i,s,null,o),h=0;h{var h=i(50811),l=i(18592);t.exports=function(t,e,i,s,n){var r=h(t,e,i,s,null,n),o=r.map(function(t){return t.index});l(o);for(var a=0;a{var n=i(82127),r=i(84314);t.exports=function(t,e){var i=t.tilemapLayer.tilemap,t=t.tilemapLayer,s=Math.floor(i.tileWidth*t.scaleX),i=Math.floor(i.tileHeight*t.scaleY);return{left:r(e.worldView.x-t.x,s,0,!0)-t.cullPaddingX,right:n(e.worldView.right-t.x,s,0,!0)+t.cullPaddingX,top:r(e.worldView.y-t.y,i/2,0,!0)-t.cullPaddingY,bottom:n(e.worldView.bottom-t.y,i/2,0,!0)+t.cullPaddingY}}},19242:(t,e,i)=>{var r=i(53945),o=i(6987);t.exports=function(t,e,i,s){void 0===s&&(s=0),(i=void 0===i?[]:i).length=0;var n=t.tilemapLayer,e=r(t,e);return n.skipCull&&1===n.scrollFactorX&&1===n.scrollFactorY&&(e.left=0,e.right=t.width,e.top=0,e.bottom=t.height),o(t,e,s,i),i}},33388:(t,e,i)=>{var l=i(93736);t.exports=function(t,e,i,s,n){i=i||new l;var r=n.baseTileWidth,o=n.baseTileHeight,n=n.tilemapLayer,a=0,h=0;return n&&(s=s||n.scene.cameras.main,a=n.x+s.scrollX*(1-n.scrollFactorX),r*=n.scaleX,h=n.y+s.scrollY*(1-n.scrollFactorY),o*=n.scaleY),i.set(a+t*r+e%2*(r/2),h+e*(o/2))}},84132:t=>{t.exports=function(t,e,i){var s=i.baseTileHeight,i=i.tilemapLayer,n=0;return i&&(void 0===e&&(e=i.scene.cameras.main),n=i.y+e.scrollY*(1-i.scrollFactorY),s*=i.scaleY),n+t*(s/2)+s}},90562:(t,e,i)=>{var h=i(93736);t.exports=function(t,e,i,s,n,r){s=s||new h;var o=r.baseTileWidth,a=r.baseTileHeight,r=r.tilemapLayer,n=(r&&(n=n||r.scene.cameras.main,e-=r.y+n.scrollY*(1-r.scrollFactorY),a*=r.scaleY,t-=r.x+n.scrollX*(1-r.scrollFactorX),o*=r.scaleX),i?Math.floor(e/(a/2)):e/(a/2)),r=i?Math.floor((t+n%2*.5*o)/o):(t+n%2*.5*o)/o;return s.set(r,n)}},3689:t=>{t.exports=function(t,e,i,s){var n=s.baseTileHeight,s=s.tilemapLayer;return s&&(i=i||s.scene.cameras.main,t-=s.y+i.scrollY*(1-s.scrollFactorY),n*=s.scaleY),e?Math.floor(t/(n/2)):t/(n/2)}},55217:(t,e,i)=>{var l=i(50811);t.exports=function(t,e,i,s,n,r,o){for(var a=l(i,s,n,r,null,o),h=0;h{t.exports=function(t,e,i){var s=i.baseTileWidth,i=i.tilemapLayer,n=0;return i&&(e=e||i.scene.cameras.main,n=i.x+e.scrollX*(1-i.scrollFactorX),s*=i.scaleX),n+t*s}},46836:(t,e,i)=>{var r=i(44150),o=i(42477),a=i(93736);t.exports=function(t,e,i,s,n){return(i=i||new a(0,0)).x=r(t,s,n),i.y=o(e,s,n),i}},42477:t=>{t.exports=function(t,e,i){var s=i.baseTileHeight,i=i.tilemapLayer,n=0;return i&&(e=e||i.scene.cameras.main,n=i.y+e.scrollY*(1-i.scrollFactorY),s*=i.scaleY),n+t*s}},39677:(t,e,i)=>{var f=i(50811);t.exports=function(t,e,i,s,n,r){if(n){for(var o=f(t,e,i,s,null,r),a=0,h=0;h{var n=i(45676),r=new(i(93736));t.exports=function(t,e,i,s){return n(t,0,e,r,i,s),r.x}},45676:(t,e,i)=>{var h=i(93736);t.exports=function(t,e,i,s,n,r){void 0===i&&(i=!0),s=s||new h;var o=r.baseTileWidth,a=r.baseTileHeight,r=r.tilemapLayer,n=(r&&(n=n||r.scene.cameras.main,t-=r.x+n.scrollX*(1-r.scrollFactorX),e-=r.y+n.scrollY*(1-r.scrollFactorY),o*=r.scaleX,a*=r.scaleY),t/o),r=e/a;return i&&(n=Math.floor(n),r=Math.floor(r)),s.set(n,r)}},70520:(t,e,i)=>{var n=i(45676),r=new(i(93736));t.exports=function(t,e,i,s){return n(0,t,e,r,i,s),r.y}},5047:(t,e,i)=>{t.exports={CalculateFacesAt:i(92839),CalculateFacesWithin:i(60386),CheckIsoBounds:i(13125),Copy:i(17347),CreateFromTiles:i(93604),CullBounds:i(71586),CullTiles:i(381),Fill:i(97734),FilterTiles:i(63555),FindByIndex:i(37982),FindTile:i(48297),ForEachTile:i(80916),GetCullTilesFunction:i(31493),GetTileAt:i(15494),GetTileAtWorldXY:i(24640),GetTileCorners:i(48495),GetTileCornersFunction:i(7160),GetTilesWithin:i(50811),GetTilesWithinShape:i(31674),GetTilesWithinWorldXY:i(44662),GetTileToWorldXFunction:i(16884),GetTileToWorldXYFunction:i(68182),GetTileToWorldYFunction:i(3752),GetWorldToTileXFunction:i(29296),GetWorldToTileXYFunction:i(32688),GetWorldToTileYFunction:i(74326),HasTileAt:i(46598),HasTileAtWorldXY:i(28654),HexagonalCullBounds:i(6358),HexagonalCullTiles:i(37524),HexagonalGetTileCorners:i(63634),HexagonalTileToWorldXY:i(21715),HexagonalWorldToTileXY:i(11516),IsInLayerBounds:i(62839),IsometricCullTiles:i(20887),IsometricTileToWorldXY:i(21808),IsometricWorldToTileXY:i(18750),PutTileAt:i(29003),PutTileAtWorldXY:i(48565),PutTilesAt:i(56547),Randomize:i(91180),RemoveTileAt:i(929),RemoveTileAtWorldXY:i(17384),RenderDebug:i(93763),ReplaceByIndex:i(51202),RunCull:i(6987),SetCollision:i(51710),SetCollisionBetween:i(15216),SetCollisionByExclusion:i(33158),SetCollisionByProperty:i(4180),SetCollisionFromCollisionGroup:i(18625),SetLayerCollisionIndex:i(91181),SetTileCollision:i(68234),SetTileIndexCallback:i(11628),SetTileLocationCallback:i(72732),Shuffle:i(34397),StaggeredCullBounds:i(53945),StaggeredCullTiles:i(19242),StaggeredTileToWorldXY:i(33388),StaggeredTileToWorldY:i(84132),StaggeredWorldToTileXY:i(90562),StaggeredWorldToTileY:i(3689),SwapByIndex:i(55217),TileToWorldX:i(44150),TileToWorldXY:i(46836),TileToWorldY:i(42477),WeightedRandomize:i(39677),WorldToTileX:i(806),WorldToTileXY:i(45676),WorldToTileY:i(70520)}},12920:t=>{t.exports={ORTHOGONAL:0,ISOMETRIC:1,STAGGERED:2,HEXAGONAL:3}},84758:(t,e,i)=>{i={ORIENTATION:i(12920)};t.exports=i},52678:(t,e,i)=>{var s=i(98611),n=i(84758),s=s(!1,{Components:i(5047),Parsers:i(34124),Formats:i(93560),ImageCollection:i(97042),ParseToTilemap:i(15043),Tile:i(29633),Tilemap:i(89797),TilemapCreator:i(4843),TilemapFactory:i(37940),Tileset:i(47975),TilemapLayer:i(87177),Orientation:i(12920),LayerData:i(94990),MapData:i(16586),ObjectLayer:i(15256)},n.ORIENTATION);t.exports=s},94990:(t,e,i)=>{var s=i(56694),n=i(12920),r=i(72632),i=new s({initialize:function(t){this.name=r(t=void 0===t?{}:t,"name","layer"),this.x=r(t,"x",0),this.y=r(t,"y",0),this.width=r(t,"width",0),this.height=r(t,"height",0),this.tileWidth=r(t,"tileWidth",0),this.tileHeight=r(t,"tileHeight",0),this.baseTileWidth=r(t,"baseTileWidth",this.tileWidth),this.baseTileHeight=r(t,"baseTileHeight",this.tileHeight),this.orientation=r(t,"orientation",n.ORTHOGONAL),this.widthInPixels=r(t,"widthInPixels",this.width*this.baseTileWidth),this.heightInPixels=r(t,"heightInPixels",this.height*this.baseTileHeight),this.alpha=r(t,"alpha",1),this.visible=r(t,"visible",!0),this.properties=r(t,"properties",[]),this.indexes=r(t,"indexes",[]),this.collideIndexes=r(t,"collideIndexes",[]),this.callbacks=r(t,"callbacks",[]),this.bodies=r(t,"bodies",[]),this.data=r(t,"data",[]),this.tilemapLayer=r(t,"tilemapLayer",null),this.hexSideLength=r(t,"hexSideLength",0),this.staggerAxis=r(t,"staggerAxis","y"),this.staggerIndex=r(t,"staggerIndex","odd")}});t.exports=i},16586:(t,e,i)=>{var s=i(56694),n=i(12920),r=i(72632),i=new s({initialize:function(t){this.name=r(t=void 0===t?{}:t,"name","map"),this.width=r(t,"width",0),this.height=r(t,"height",0),this.infinite=r(t,"infinite",!1),this.tileWidth=r(t,"tileWidth",0),this.tileHeight=r(t,"tileHeight",0),this.widthInPixels=r(t,"widthInPixels",this.width*this.tileWidth),this.heightInPixels=r(t,"heightInPixels",this.height*this.tileHeight),this.format=r(t,"format",null),this.orientation=r(t,"orientation",n.ORTHOGONAL),this.renderOrder=r(t,"renderOrder","right-down"),this.version=r(t,"version","1"),this.properties=r(t,"properties",{}),this.layers=r(t,"layers",[]),this.images=r(t,"images",[]),this.objects=r(t,"objects",[]),Array.isArray(this.objects)||(this.objects=[]),this.collision=r(t,"collision",{}),this.tilesets=r(t,"tilesets",[]),this.imageCollections=r(t,"imageCollections",[]),this.tiles=r(t,"tiles",[]),this.hexSideLength=r(t,"hexSideLength",0),this.staggerAxis=r(t,"staggerAxis","y"),this.staggerIndex=r(t,"staggerIndex","odd")}});t.exports=i},15256:(t,e,i)=>{var s=i(56694),n=i(72632),i=new s({initialize:function(t){this.name=n(t=void 0===t?{}:t,"name","object layer"),this.opacity=n(t,"opacity",1),this.properties=n(t,"properties",{}),this.propertyTypes=n(t,"propertytypes",{}),this.type=n(t,"type","objectgroup"),this.visible=n(t,"visible",!0),this.objects=n(t,"objects",[]),Array.isArray(this.objects)||(this.objects=[])}});t.exports=i},21394:(t,e,i)=>{var s=i(12920);t.exports=function(t){return"isometric"===(t=t.toLowerCase())?s.ISOMETRIC:"staggered"===t?s.STAGGERED:"hexagonal"===t?s.HEXAGONAL:s.ORTHOGONAL}},90715:(t,e,i)=>{var a=i(93560),h=i(84346),l=i(96097),u=i(2378),c=i(44909);t.exports=function(t,e,i,s,n,r){var o;switch(e){case a.ARRAY_2D:o=h(t,i,s,n,r);break;case a.CSV:o=l(t,i,s,n,r);break;case a.TILED_JSON:o=u(t,i,r);break;case a.WELTMEISTER:o=c(t,i,r);break;default:o=null}return o}},84346:(t,e,i)=>{var p=i(93560),f=i(94990),g=i(16586),y=i(29633);t.exports=function(t,e,i,s,n){for(var r=new f({tileWidth:i,tileHeight:s}),t=new g({name:t,tileWidth:i,tileHeight:s,format:p.ARRAY_2D,layers:[r]}),o=[],a=e.length,h=0,l=0;l{var r=i(93560),o=i(84346);t.exports=function(t,e,i,s,n){e=e.trim().split("\n").map(function(t){return t.split(",")}),t=o(t,e,i,s,n);return t.format=r.CSV,t}},30951:(t,e,i)=>{var c=i(94990),d=i(29633);t.exports=function(t,e){for(var i=[],s=0;s{var o=i(47975);t.exports=function(t){for(var e=[],i=[],s=0;s{var o=i(93560),a=i(16586),h=i(30951),l=i(47488);t.exports=function(t,e,i){if(0===e.layer.length)return null;for(var s=0,n=0,r=0;rs&&(s=e.layer[r].width),e.layer[r].height>n&&(n=e.layer[r].height);t=new a({width:s,height:n,name:t,tileWidth:e.layer[0].tilesize,tileHeight:e.layer[0].tilesize,format:o.WELTMEISTER});return t.layers=h(e,i),t.tilesets=l(e),t}},24507:(t,e,i)=>{t.exports={ParseTileLayers:i(30951),ParseTilesets:i(47488),ParseWeltmeister:i(44909)}},34124:(t,e,i)=>{t.exports={FromOrientationString:i(21394),Parse:i(90715),Parse2DArray:i(84346),ParseCSV:i(96097),Impact:i(24507),Tiled:i(50044)}},48646:(t,e,i)=>{var h=i(98611);t.exports=function(t){for(var e,i=0;i{t.exports=function(t){for(var e=window.atob(t),i=e.length,s=new Array(i/4),n=0;n>>0;return s}},14556:(t,e,i)=>{var f=i(47975);t.exports=function(t){for(var e,i=[],s=0;s{var r=i(72632);t.exports=function(t,e,i){var s,n;return e?(s=e.x+r(e,"startx",0)*t.tilewidth+r(e,"offsetx",0),n=e.y+r(e,"starty",0)*t.tileheight+r(e,"offsety",0),{i:0,layers:e.layers,name:i.name+e.name+"/",opacity:i.opacity*e.opacity,visible:i.visible&&e.visible,x:i.x+s,y:i.y+n}):{i:0,layers:t.layers,name:"",opacity:1,visible:!0,x:0,y:0}}},8847:t=>{t.exports=function(t){var e=Boolean(2147483648&t),i=Boolean(1073741824&t),s=Boolean(536870912&t),n=(t&=536870911,0),r=!1;return e&&i&&s?(n=Math.PI/2,r=!0):e&&i&&!s?(n=Math.PI,r=!1):e&&!i&&s?(n=Math.PI/2,r=!1):!e||i||s?!e&&i&&s?(n=3*Math.PI/2,r=!1):e||!i||s?e||i||!s?e||i||s||(n=0,r=!1):(n=3*Math.PI/2,r=!0):(n=Math.PI,r=!0):r=!(n=0),{gid:t,flippedHorizontal:e,flippedVertical:i,flippedAntiDiagonal:s,rotation:n,flipped:r}}},78339:(t,e,i)=>{var a=i(72632),h=i(92044);t.exports=function(t){for(var e=[],i=[],s=h(t);s.i=s.layers.length){if(i.length<1)break;s=i.pop()}else{var n,r,o=s.layers[s.i];s.i++,"imagelayer"===o.type?(r=a(o,"offsetx",0)+a(o,"startx",0),n=a(o,"offsety",0)+a(o,"starty",0),e.push({name:s.name+o.name,image:o.image,x:s.x+r+o.x,y:s.y+n+o.y,alpha:s.opacity*o.opacity,visible:s.visible&&o.visible,properties:a(o,"properties",{})})):"group"===o.type&&(r=h(t,o,s),i.push(s),s=r)}return e}},2378:(t,e,i)=>{var s=i(48646),n=i(14556),r=i(12920),o=i(28699),a=i(93560),h=i(21394),l=i(16586),u=i(78339),c=i(61136),d=i(95925),p=i(93392);t.exports=function(t,e,i){e=o(e),t=new l({width:e.width,height:e.height,name:t,tileWidth:e.tilewidth,tileHeight:e.tileheight,orientation:h(e.orientation),format:a.TILED_JSON,version:e.version,properties:e.properties,renderOrder:e.renderorder,infinite:e.infinite}),t.orientation===r.HEXAGONAL&&(t.hexSideLength=e.hexsidelength,t.staggerAxis=e.staggeraxis,t.staggerIndex=e.staggerindex),t.layers=d(e,i),t.images=u(e),i=p(e);return t.tilesets=i.tilesets,t.imageCollections=i.imageCollections,t.objects=c(e),t.tiles=n(t),s(t),t}},4281:(t,e,i)=>{function n(t){return{x:t.x,y:t.y}}var r=i(28820),o=i(8847),a=["id","name","type","rotation","properties","visible","x","y","width","height"];t.exports=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=0);var s=r(t,a);return s.x+=e,s.y+=i,t.gid?(e=o(t.gid),s.gid=e.gid,s.flippedHorizontal=e.flippedHorizontal,s.flippedVertical=e.flippedVertical,s.flippedAntiDiagonal=e.flippedAntiDiagonal):t.polyline?s.polyline=t.polyline.map(n):t.polygon?s.polygon=t.polygon.map(n):t.ellipse?s.ellipse=t.ellipse:t.text?s.text=t.text:t.point?s.point=!0:s.rectangle=!0,s}},61136:(t,e,i)=>{var c=i(72632),d=i(4281),p=i(15256),f=i(92044);t.exports=function(t){for(var e=[],i=[],s=f(t);s.i=s.layers.length){if(i.length<1)break;s=i.pop()}else{var n=s.layers[s.i];if(s.i++,n.opacity*=s.opacity,n.visible=s.visible&&n.visible,"objectgroup"===n.type){n.name=s.name+n.name;for(var r=s.x+c(n,"startx",0)+c(n,"offsetx",0),o=s.y+c(n,"starty",0)+c(n,"offsety",0),a=[],h=0;h{var O=i(43908),R=i(12920),D=i(92044),L=i(21394),k=i(72632),F=i(94990),I=i(8847),B=i(29633);t.exports=function(t,e){for(var i=k(t,"infinite",!1),s=[],n=[],r=D(t);r.i=r.layers.length){if(n.length<1)break;r=n.pop()}else{var o,a=r.layers[r.i];if(r.i++,"tilelayer"===a.type){if(!a.compression){if(a.encoding&&"base64"===a.encoding){if(a.chunks)for(var h=0;h{var w=i(47975),T=i(97042),b=i(4281),S=i(39642);t.exports=function(t){for(var e,i=[],s=[],n=null,r=0;r{t.exports=function(t,e){for(var i=0;i{t.exports={AssignTileProperties:i(48646),Base64Decode:i(43908),BuildTilesetIndex:i(14556),CreateGroupLayer:i(92044),ParseGID:i(8847),ParseImageLayers:i(78339),ParseJSONTiled:i(2378),ParseObject:i(4281),ParseObjectLayers:i(61136),ParseTileLayers:i(95925),ParseTilesets:i(93392)}},73779:(t,e,i)=>{var s=i(56694),n=i(91963),r=i(7599),o=i(57911),a=i(66458),i=new s({initialize:function(t){this.scene=t,this.systems=t.sys,this.now=0,this.startTime=0,this.timeScale=1,this.paused=!1,this._active=[],this._pendingInsertion=[],this._pendingRemoval=[],t.sys.events.once(r.BOOT,this.boot,this),t.sys.events.on(r.START,this.start,this)},boot:function(){this.now=this.systems.game.loop.time,this.systems.events.once(r.DESTROY,this.destroy,this)},start:function(){this.startTime=this.systems.game.loop.time;var t=this.systems.events;t.on(r.PRE_UPDATE,this.preUpdate,this),t.on(r.UPDATE,this.update,this),t.once(r.SHUTDOWN,this.shutdown,this)},addEvent:function(t){var e;return t instanceof o?(this.removeEvent(e=t),e.elapsed=e.startAt,e.hasDispatched=!1,e.repeatCount=-1===e.repeat||e.loop?999999999999:e.repeat):e=new o(t),this._pendingInsertion.push(e),e},delayedCall:function(t,e,i,s){return this.addEvent({delay:t,callback:e,args:i,callbackScope:s})},clearPendingEvents:function(){return this._pendingInsertion=[],this},removeEvent:function(t){Array.isArray(t)||(t=[t]);for(var e=0;e=s.delay)){var n=s.elapsed-s.delay;if(s.elapsed=s.delay,!s.hasDispatched&&s.callback&&(s.hasDispatched=!0,s.callback.apply(s.callbackScope,s.args)),0=s.delay)for(;n>=s.delay&&0{var s=i(56694),n=i(6659),r=i(61286),a=i(72632),o=i(7599),h=new s({Extends:n,initialize:function(t,e){n.call(this),this.scene=t,this.systems=t.sys,this.elapsed=0,this.paused=!0,this.complete=!1,this.totalComplete=0,this.events=[];t=this.systems.events;t.on(o.PRE_UPDATE,this.preUpdate,this),t.on(o.UPDATE,this.update,this),t.once(o.SHUTDOWN,this.destroy,this),e&&this.add(e)},preUpdate:function(t,e){this.paused||(this.elapsed+=e)},update:function(){if(!this.paused){for(var t,e=this.events,i=!1,s=this.systems,n=0;n=e.length&&(this.complete=!0)}},play:function(t){return void 0===t&&(t=!0),this.paused=!1,this.complete=!1,this.totalComplete=0,t&&this.reset(),this},pause:function(){return this.paused=!0,this},resume:function(){return this.paused=!1,this},stop:function(){return this.paused=!0,this.complete=!0,this},reset:function(){for(var t=this.elapsed=0;t{var s=i(56694),n=i(72632),i=new s({initialize:function(t){this.delay=0,this.repeat=0,this.repeatCount=0,this.loop=!1,this.callback,this.callbackScope,this.args,this.timeScale=1,this.startAt=0,this.elapsed=0,this.paused=!1,this.hasDispatched=!1,this.reset(t)},reset:function(t){if(this.delay=n(t,"delay",0),this.repeat=n(t,"repeat",0),this.loop=n(t,"loop",!1),this.callback=n(t,"callback",void 0),this.callbackScope=n(t,"callbackScope",this),this.args=n(t,"args",[]),this.timeScale=n(t,"timeScale",1),this.startAt=n(t,"startAt",0),this.paused=n(t,"paused",!1),this.elapsed=this.startAt,this.hasDispatched=!1,this.repeatCount=-1===this.repeat||this.loop?999999999999:this.repeat,0===this.delay&&(0{t.exports={Clock:i(73779),Timeline:i(20517),TimerEvent:i(57911)}},64532:(t,e,i)=>{var s=i(66458),n=i(56694),a=i(5454),r=i(68710),o=i(91963),h=i(7599),l=i(91944),u=i(39366),c=i(68061),d=i(45641),p=i(56034),i=new n({initialize:function(t){this.scene=t,this.events=t.sys.events,this.timeScale=1,this.paused=!1,this.processing=!1,this.tweens=[],this.time=0,this.startTime=0,this.nextTime=0,this.prevTime=0,this.maxLag=500,this.lagSkip=33,this.gap=1e3/240,this.events.once(h.BOOT,this.boot,this),this.events.on(h.START,this.start,this)},boot:function(){this.events.once(h.DESTROY,this.destroy,this)},start:function(){this.timeScale=1,this.paused=!1,this.startTime=Date.now(),this.prevTime=this.startTime,this.nextTime=this.gap,this.events.on(h.UPDATE,this.update,this),this.events.once(h.SHUTDOWN,this.shutdown,this)},create:function(t){Array.isArray(t)||(t=[t]);for(var e=[],i=0;ithis.maxLag&&(this.startTime+=e-this.lagSkip),this.prevTime+=e,this.prevTime-this.startTime),i=e-this.nextTime,s=e-1e3*this.time;return 0=this.gap?4:this.gap-i)):s=0,s},tick:function(){return this.step(!0),this},update:function(){this.paused||this.step(!1)},step:function(t){var e=this.getDelta(t=void 0===t?!1:t);if(!(e<=0)){this.processing=!0;for(var i=[],s=this.tweens,n=0;n{t.exports=function(t,e,i){return t&&t.hasOwnProperty(e)?t[e]:i}},21902:(t,e,i)=>{var o=i(35060),a=i(40587);t.exports=function(t,e){var i,s,n,r=o.Power0;return"string"==typeof t?(o.hasOwnProperty(t)||(i="",t.indexOf(".")&&("in"===(s=(i=t.substring(t.indexOf(".")+1)).toLowerCase())?i="easeIn":"out"===s?i="easeOut":"inout"===s&&(i="easeInOut")),t=a(t.substring(0,t.indexOf(".")+1)+i),o.hasOwnProperty(t)))&&(r=o[t]):"function"==typeof t&&(r=t),e?((n=e.slice(0)).unshift(0),function(t){return n[0]=t,r.apply(this,n)}):r}},4840:(t,e,i)=>{var s=i(63210),n=i(88332),r={bezier:s,catmull:n,catmullrom:n,linear:i(47614)};t.exports=function(t){var e;return null===t?null:(e=r.linear,"string"==typeof t?r.hasOwnProperty(t)&&(e=r[t]):"function"==typeof t&&(e=t),e)}},28348:t=>{t.exports=function(o,a,t){return o.hasOwnProperty(a)?"function"==typeof o[a]?function(t,e,i,s,n,r){return o[a](t,e,i,s,n,r)}:function(){return o[a]}:"function"==typeof t?t:function(){return t}}},92407:(t,e,i)=>{var s=i(53709);t.exports=function(t){var e,i=[];if(t.hasOwnProperty("props"))for(e in t.props)"_"!==e.substring(0,1)&&i.push({key:e,value:t.props[e]});else for(e in t)-1===s.indexOf(e)&&"_"!==e.substring(0,1)&&i.push({key:e,value:t[e]});return i}},65868:(t,e,i)=>{var s=i(10850);t.exports=function(t){t=s(t,"targets",null);return t=null===t||("function"==typeof t&&(t=t.call()),Array.isArray(t))?t:[t]}},9744:(t,e,i)=>{var g=i(17489),y=i(61616);function v(t){return t.getActive&&"function"==typeof t.getActive}function m(t){return t.getStart&&"function"==typeof t.getStart}function x(t){return t.getEnd&&"function"==typeof t.getEnd}var w=function(t,e){var i,s=function(t,e,i){return i},n=function(t,e,i){return i},r=null,o=typeof e;if("number"==o)s=function(){return e};else if(Array.isArray(e))n=function(){return e[0]},s=function(){return e[e.length-1]};else if("string"==o){var a="random"===(p=e.toLowerCase()).substring(0,6),h="int"===p.substring(0,3);if(a||h){var h=p.indexOf("("),l=p.indexOf(")"),u=p.indexOf(",");if(!(h&&l&&u))throw new Error("invalid random() format");var c=parseFloat(p.substring(h+1,u)),d=parseFloat(p.substring(u+1,l)),s=a?function(){return y(c,d)}:function(){return g(c,d)}}else{var p=p[0],f=parseFloat(e.substr(2));switch(p){case"+":s=function(t,e,i){return i+f};break;case"-":s=function(t,e,i){return i-f};break;case"*":s=function(t,e,i){return i*f};break;case"/":s=function(t,e,i){return i/f};break;default:s=function(){return parseFloat(e)}}}}else"function"==o?s=e:"object"==o&&(m(h=e)||x(h)||v(h)?(v(e)&&(r=e.getActive),x(e)&&(s=e.getEnd),m(e)&&(n=e.getStart)):e.hasOwnProperty("value")?i=w(t,e.value):(u=e.hasOwnProperty("to"),l=e.hasOwnProperty("from"),a=e.hasOwnProperty("start"),u&&(l||a)&&(i=w(t,e.to),a&&(p=w(t,e.start),i.getActive=p.getEnd),l)&&(o=w(t,e.from),i.getStart=o.getEnd)));return i=i||{getActive:r,getEnd:s,getStart:n}};t.exports=w},68710:(t,e,i)=>{var g=i(502),y=i(99730),v=i(20494),m=i(63130),x=i(21902),w=i(28348),T=i(10850),b=i(9744),S=i(72066),P=i(39366);t.exports=function(t,e,i){if(e instanceof P)return e.parent=t,e;i=void 0===i?y:S(y,i);var s=T(e,"from",0),n=T(e,"to",1),r=[{value:s}],o=T(e,"delay",i.delay),a=T(e,"easeParams",i.easeParams),h=T(e,"ease",i.ease),n=b("value",n),l=new P(t,r),t=l.add(0,"value",n.getEnd,n.getStart,n.getActive,x(T(e,"ease",h),T(e,"easeParams",a)),w(e,"delay",o),T(e,"duration",i.duration),m(e,"yoyo",i.yoyo),T(e,"hold",i.hold),T(e,"repeat",i.repeat),T(e,"repeatDelay",i.repeatDelay),!1,!1);t.start=s,t.current=s,l.completeDelay=v(e,"completeDelay",0),l.loop=Math.round(v(e,"loop",0)),l.loopDelay=Math.round(v(e,"loopDelay",0)),l.paused=m(e,"paused",!1),l.persist=m(e,"persist",!1),l.callbackScope=T(e,"callbackScope",l);for(var u=g.TYPES,c=0;c{var _=i(21902),E=i(10850),A=i(83392);t.exports=function(t,e){var o=E(e=void 0===e?{}:e,"start",0),i=E(e,"ease",null),s=E(e,"grid",null),a=E(e,"from",0),h="first"===a,l="center"===a,u="last"===a,c="number"==typeof a,d=Array.isArray(t),p=d?parseFloat(t[0]):parseFloat(t),f=d?parseFloat(t[1]):0,g=Math.max(p,f);if(d&&(o+=p),s){var y=s[0],v=s[1],n=0,r=0,m=[];u?(n=y-1,r=v-1):c?(n=a%y,r=Math.floor(a/y)):l&&(n=(y-1)/2,r=(v-1)/2);for(var x=A.MIN_SAFE_INTEGER,w=0;w{var A=i(502),C=i(99730),M=i(20494),O=i(63130),R=i(21902),D=i(4840),L=i(28348),k=i(92407),F=i(65868),I=i(10850),B=i(9744),N=i(72066),X=i(39366);t.exports=function(t,e,i){if(e instanceof X)return e.parent=t,e;i=void 0===i?C:N(C,i);var s=F(e);!s&&i.targets&&(s=i.targets);function n(t,e,i,s){var n,r;"texture"===i?(n=s,r=void 0,Array.isArray(s)?(n=s[0],r=s[1]):s.hasOwnProperty("value")?(n=s.value,Array.isArray(s.value)?(n=s.value[0],r=s.value[1]):"string"==typeof s.value&&(n=s.value)):"string"==typeof s&&(n=s),t.addFrame(e,n,r,L(s,"delay",o),I(s,"duration",a),I(s,"hold",u),I(s,"repeat",c),I(s,"repeatDelay",d),O(s,"flipX",f),O(s,"flipY",g))):(n=B(i,s),r=D(I(s,"interpolation",y)),t.add(e,i,n.getEnd,n.getStart,n.getActive,R(I(s,"ease",l),I(s,"easeParams",h)),L(s,"delay",o),I(s,"duration",a),O(s,"yoyo",p),I(s,"hold",u),I(s,"repeat",c),I(s,"repeatDelay",d),O(s,"flipX",f),O(s,"flipY",g),r,r?s:null))}for(var r=k(e),o=I(e,"delay",i.delay),a=I(e,"duration",i.duration),h=I(e,"easeParams",i.easeParams),l=I(e,"ease",i.ease),u=I(e,"hold",i.hold),c=I(e,"repeat",i.repeat),d=I(e,"repeatDelay",i.repeatDelay),p=O(e,"yoyo",i.yoyo),f=O(e,"flipX",i.flipX),g=O(e,"flipY",i.flipY),y=I(e,"interpolation",i.interpolation),v=new X(t,s),m=0;m{var c=i(502),d=i(20494),p=i(63130),f=i(65868),g=i(10850),y=i(68061),v=i(45641);t.exports=function(t,e){if(e instanceof v)return e.parent=t,e;var i=new v(t),s=(i.startDelay=g(e,"delay",0),i.completeDelay=d(e,"completeDelay",0),i.loop=Math.round(d(e,"loop",g(e,"repeat",0))),i.loopDelay=Math.round(d(e,"loopDelay",g(e,"repeatDelay",0))),i.paused=p(e,"paused",!1),i.persist=p(e,"persist",!0),i.callbackScope=g(e,"callbackScope",i),c.TYPES);for(u=0;u{t.exports={GetBoolean:i(63130),GetEaseFunction:i(21902),GetInterpolationFunction:i(4840),GetNewValue:i(28348),GetProps:i(92407),GetTargets:i(65868),GetValueOp:i(9744),NumberTweenBuilder:i(68710),StaggerBuilder:i(91944),TweenBuilder:i(68061)}},5570:t=>{t.exports="active"},6383:t=>{t.exports="complete"},72582:t=>{t.exports="loop"},90281:t=>{t.exports="pause"},80803:t=>{t.exports="repeat"},13640:t=>{t.exports="resume"},10472:t=>{t.exports="start"},5379:t=>{t.exports="stop"},43449:t=>{t.exports="update"},61541:t=>{t.exports="yoyo"},54272:(t,e,i)=>{t.exports={TWEEN_ACTIVE:i(5570),TWEEN_COMPLETE:i(6383),TWEEN_LOOP:i(72582),TWEEN_PAUSE:i(90281),TWEEN_RESUME:i(13640),TWEEN_REPEAT:i(80803),TWEEN_START:i(10472),TWEEN_STOP:i(5379),TWEEN_UPDATE:i(43449),TWEEN_YOYO:i(61541)}},75193:(t,e,i)=>{i={States:i(55303),Builders:i(79619),Events:i(54272),TweenManager:i(64532),Tween:i(39366),TweenData:i(15718),TweenFrameData:i(96490),BaseTween:i(502),TweenChain:i(45641)};t.exports=i},502:(t,e,i)=>{var s=i(56694),n=i(6659),r=i(54272),o=i(55303),i=new s({Extends:n,initialize:function(t){n.call(this),this.parent=t,this.data=[],this.totalData=0,this.startDelay=0,this.hasStarted=!1,this.timeScale=1,this.loop=0,this.loopDelay=0,this.loopCounter=0,this.completeDelay=0,this.countdown=0,this.state=o.PENDING,this.paused=!1,this.callbacks={onActive:null,onComplete:null,onLoop:null,onPause:null,onRepeat:null,onResume:null,onStart:null,onStop:null,onUpdate:null,onYoyo:null},this.callbackScope,this.persist=!1},setTimeScale:function(t){return this.timeScale=t,this},getTimeScale:function(){return this.timeScale},isPlaying:function(){return!this.paused&&this.isActive()},isPaused:function(){return this.paused},pause:function(){return this.paused||(this.paused=!0,this.dispatchEvent(r.TWEEN_PAUSE,"onPause")),this},resume:function(){return this.paused&&(this.paused=!1,this.dispatchEvent(r.TWEEN_RESUME,"onResume")),this},makeActive:function(){this.parent.makeActive(this),this.dispatchEvent(r.TWEEN_ACTIVE,"onActive")},onCompleteHandler:function(){this.setPendingRemoveState(),this.dispatchEvent(r.TWEEN_COMPLETE,"onComplete")},complete:function(t){return(t=void 0===t?0:t)?(this.setCompleteDelayState(),this.countdown=t):this.onCompleteHandler(),this},completeAfterLoop:function(t){return this.loopCounter>(t=void 0===t?0:t)&&(this.loopCounter=t),this},remove:function(){return this.parent.remove(this),this},stop:function(){return this.isRemoved()||this.isPendingRemove()||this.isDestroyed()||(this.dispatchEvent(r.TWEEN_STOP,"onStop"),this.setPendingRemoveState()),this},updateLoopCountdown:function(t){this.countdown-=t,this.countdown<=0&&(this.setActiveState(),this.dispatchEvent(r.TWEEN_LOOP,"onLoop"))},updateStartCountdown:function(t){return this.countdown-=t,this.countdown<=0&&(this.hasStarted=!0,this.setActiveState(),this.dispatchEvent(r.TWEEN_START,"onStart"),t=0),t},updateCompleteDelay:function(t){this.countdown-=t,this.countdown<=0&&this.onCompleteHandler()},setCallback:function(t,e,i){return void 0===i&&(i=[]),this.callbacks.hasOwnProperty(t)&&(this.callbacks[t]={func:e,params:i}),this},setPendingState:function(){this.state=o.PENDING},setActiveState:function(){this.state=o.ACTIVE},setLoopDelayState:function(){this.state=o.LOOP_DELAY},setCompleteDelayState:function(){this.state=o.COMPLETE_DELAY},setStartDelayState:function(){this.state=o.START_DELAY,this.countdown=this.startDelay,this.hasStarted=!1},setPendingRemoveState:function(){this.state=o.PENDING_REMOVE},setRemovedState:function(){this.state=o.REMOVED},setFinishedState:function(){this.state=o.FINISHED},setDestroyedState:function(){this.state=o.DESTROYED},isPending:function(){return this.state===o.PENDING},isActive:function(){return this.state===o.ACTIVE},isLoopDelayed:function(){return this.state===o.LOOP_DELAY},isCompleteDelayed:function(){return this.state===o.COMPLETE_DELAY},isStartDelayed:function(){return this.state===o.START_DELAY},isPendingRemove:function(){return this.state===o.PENDING_REMOVE},isRemoved:function(){return this.state===o.REMOVED},isFinished:function(){return this.state===o.FINISHED},isDestroyed:function(){return this.state===o.DESTROYED},destroy:function(){this.data&&this.data.forEach(function(t){t.destroy()}),this.removeAllListeners(),this.callbacks=null,this.data=null,this.parent=null,this.setDestroyedState()}});i.TYPES=["onActive","onComplete","onLoop","onPause","onRepeat","onResume","onStart","onStop","onUpdate","onYoyo"],t.exports=i},65521:(t,e,i)=>{var s=i(56694),l=i(54272),r=i(55303),i=new s({initialize:function(t,e,i,s,n,r,o,a,h,l){this.tween=t,this.targetIndex=e,this.duration=s,this.totalDuration=0,this.delay=0,this.getDelay=i,this.yoyo=n,this.hold=r,this.repeat=o,this.repeatDelay=a,this.repeatCounter=0,this.flipX=h,this.flipY=l,this.progress=0,this.elapsed=0,this.state=0,this.isCountdown=!1},getTarget:function(){return this.tween.targets[this.targetIndex]},setTargetValue:function(t){void 0===t&&(t=this.current),this.tween.targets[this.targetIndex][this.key]=t},setCreatedState:function(){this.state=r.CREATED,this.isCountdown=!1},setDelayState:function(){this.state=r.DELAY,this.isCountdown=!0},setPendingRenderState:function(){this.state=r.PENDING_RENDER,this.isCountdown=!1},setPlayingForwardState:function(){this.state=r.PLAYING_FORWARD,this.isCountdown=!1},setPlayingBackwardState:function(){this.state=r.PLAYING_BACKWARD,this.isCountdown=!1},setHoldState:function(){this.state=r.HOLD_DELAY,this.isCountdown=!0},setRepeatState:function(){this.state=r.REPEAT_DELAY,this.isCountdown=!0},setCompleteState:function(){this.state=r.COMPLETE,this.isCountdown=!1},isCreated:function(){return this.state===r.CREATED},isDelayed:function(){return this.state===r.DELAY},isPendingRender:function(){return this.state===r.PENDING_RENDER},isPlayingForward:function(){return this.state===r.PLAYING_FORWARD},isPlayingBackward:function(){return this.state===r.PLAYING_BACKWARD},isHolding:function(){return this.state===r.HOLD_DELAY},isRepeating:function(){return this.state===r.REPEAT_DELAY},isComplete:function(){return this.state===r.COMPLETE},setStateFromEnd:function(t){this.yoyo?this.onRepeat(t,!0,!0):0t.duration&&(t.duration=this.totalDuration),this.delay{t.exports={targets:null,delay:0,duration:1e3,ease:"Power0",easeParams:null,hold:0,repeat:0,repeatDelay:0,yoyo:!1,flipX:!1,flipY:!1,persist:!1,interpolation:null}},53709:t=>{t.exports=["callbackScope","completeDelay","delay","duration","ease","easeParams","flipX","flipY","hold","interpolation","loop","loopDelay","onActive","onActiveParams","onComplete","onCompleteParams","onLoop","onLoopParams","onPause","onPauseParams","onRepeat","onRepeatParams","onResume","onResumeParams","onStart","onStartParams","onStop","onStopParams","onUpdate","onUpdateParams","onYoyo","onYoyoParams","paused","persist","props","repeat","repeatDelay","targets","yoyo"]},39366:(t,e,i)=>{var s=i(502),n=i(56694),r=i(54272),o=i(99325),a=i(61286),h=i(83392),l=i(55303),y=i(15718),u=i(96490),i=new n({Extends:s,initialize:function(t,e){s.call(this,t),this.targets=e,this.totalTargets=e.length,this.isSeeking=!1,this.isInfinite=!1,this.elapsed=0,this.totalElapsed=0,this.duration=0,this.progress=0,this.totalDuration=0,this.totalProgress=0},add:function(t,e,i,s,n,r,o,a,h,l,u,c,d,p,f,g){t=new y(this,t,e,i,s,n,r,o,a,h,l,u,c,d,p,f,g);return this.totalData=this.data.push(t),t},addFrame:function(t,e,i,s,n,r,o,a,h,l){t=new u(this,t,e,i,s,n,r,o,a,h,l);return this.totalData=this.data.push(t),t},getValue:function(t){void 0===t&&(t=0);var e=null;return e=this.data?this.data[t].current:e},hasTarget:function(t){return this.targets&&-1!==this.targets.indexOf(t)},updateTo:function(t,e,i){if(void 0===i&&(i=!1),"texture"!==t)for(var s=0;s{var s=i(66458),n=i(502),r=i(56694),o=i(54272),a=i(99325),h=i(61286),l=i(55303),i=new r({Extends:n,initialize:function(t){n.call(this,t),this.currentTween=null,this.currentIndex=0},init:function(){return this.loopCounter=-1===this.loop?l.MAX:this.loop,this.setCurrentTween(0),0{var v=i(65521),a=i(82897),s=i(56694),h=i(54272),i=new s({Extends:v,initialize:function(t,e,i,s,n,r,o,a,h,l,u,c,d,p,f,g,y){v.call(this,t,e,a,h,l,u,c,d,p,f),this.key=i,this.getActiveValue=r,this.getEndValue=s,this.getStartValue=n,this.ease=o,this.start=0,this.previous=0,this.current=0,this.end=0,this.interpolation=g,this.interpolationData=y},reset:function(t){v.prototype.reset.call(this);var e=this.tween.targets[this.targetIndex],i=this.key;t&&(e[i]=this.start),this.start=0,this.previous=0,this.current=0,this.end=0,this.getActiveValue&&(e[i]=this.getActiveValue(e,i,0))},update:function(t){var e,i=this.tween,s=i.totalTargets,n=this.targetIndex,r=i.targets[n],o=this.key;return r?(this.isCountdown&&(this.elapsed-=t,this.elapsed<=0)&&(t=this.elapsed=0,this.isDelayed()?this.setPendingRenderState():this.isRepeating()?(this.setPlayingForwardState(),this.dispatchEvent(h.TWEEN_REPEAT,"onRepeat")):this.isHolding()&&this.setStateFromEnd(0)),this.isPendingRender()?(this.start=this.getStartValue(r,o,r[o],n,s,i),this.end=this.getEndValue(r,o,this.start,n,s,i),this.current=this.start,r[o]=this.start,this.setPlayingForwardState(),!0):(n=this.isPlayingForward(),s=this.isPlayingBackward(),(n||s)&&(i=this.elapsed,s=0,e=!1,(i+=t)>=(t=this.duration)?(s=i-t,i=t,e=!0):i<0&&(i=0),t=a(i/t,0,1),this.elapsed=i,this.progress=t,this.previous=this.current,e?n?(this.current=this.end,r[o]=this.end,0{var c=i(65521),o=i(82897),s=i(56694),a=i(54272),i=new s({Extends:c,initialize:function(t,e,i,s,n,r,o,a,h,l,u){c.call(this,t,e,n,r,!1,o,a,h,l,u),this.key="texture",this.startTexture=null,this.endTexture=i,this.startFrame=null,this.endFrame=s,this.yoyo=0!==a},reset:function(t){c.prototype.reset.call(this);var e=this.tween.targets[this.targetIndex];this.startTexture||(this.startTexture=e.texture.key,this.startFrame=e.frame.name),t&&e.setTexture(this.startTexture,this.startFrame)},update:function(t){var e,i,s,n=this.tween,r=this.targetIndex,n=n.targets[r];return n?(this.isCountdown&&(this.elapsed-=t,this.elapsed<=0)&&(t=this.elapsed=0,this.isDelayed()?this.setPendingRenderState():this.isRepeating()?(this.setPlayingForwardState(),this.dispatchEvent(a.TWEEN_REPEAT,"onRepeat")):this.isHolding()&&this.setStateFromEnd(0)),this.isPendingRender()?(this.startTexture&&n.setTexture(this.startTexture,this.startFrame),this.setPlayingForwardState(),!0):(r=this.isPlayingForward(),e=this.isPlayingBackward(),(r||e)&&(e=this.elapsed,i=0,s=!1,(e+=t)>=(t=this.duration)?(i=e-t,e=t,s=!0):e<0&&(e=0),t=o(e/t,0,1),this.elapsed=e,this.progress=t,s&&(r?(n.setTexture(this.endTexture,this.endFrame),0{t.exports={CREATED:0,DELAY:2,PENDING_RENDER:4,PLAYING_FORWARD:5,PLAYING_BACKWARD:6,HOLD_DELAY:7,REPEAT_DELAY:8,COMPLETE:9,PENDING:20,ACTIVE:21,LOOP_DELAY:22,COMPLETE_DELAY:23,START_DELAY:24,PENDING_REMOVE:25,REMOVED:26,FINISHED:27,DESTROYED:28,MAX:999999999999}},56694:t=>{function r(t,e,i,s){for(var n in e)if(e.hasOwnProperty(n)){r=e,o=n,r=(a=i)?r[o]:Object.getOwnPropertyDescriptor(r,o);a=!!((r=!a&&r.value&&"object"==typeof r.value?r.value:r)&&((o=r).get&&"function"==typeof o.get||o.set&&"function"==typeof o.set))&&(void 0===r.enumerable&&(r.enumerable=!0),void 0===r.configurable&&(r.configurable=!0),r);if(!1!==a){if(o=(s||t).prototype,r=n,(o=Object.getOwnPropertyDescriptor(o,r))&&!1===(o=o.value&&"object"==typeof o.value?o.value:o).configurable){if(h.ignoreFinals)continue;throw new Error("cannot override final property '"+n+"', set Class.ignoreFinals = true to skip")}Object.defineProperty(t.prototype,n,a)}else t.prototype[n]=e[n]}var r,o,a}function o(t,e){if(e){Array.isArray(e)||(e=[e]);for(var i=0;i{t.exports=function(){}},10618:t=>{t.exports=function(){return null}},78991:t=>{t.exports=function(t,e,i,s,n){if(void 0===n&&(n=t),0{t.exports=function(t,e,i,s,n,r){if(void 0===i&&(i=0),void 0===r&&(r=t),0{t.exports=function(t,e){var i=t.indexOf(e);return-1!==i&&i{var a=i(45838);t.exports=function(t,e,i,s,n){void 0===n&&(n=t.length);var r=0;if(a(t,s=void 0===s?0:s,n))for(var o=s;o{t.exports=function(t,e,i){for(var s=[null],n=3;n{var a=i(45838);t.exports=function(t,e,i,s,n){if(void 0===n&&(n=t.length),a(t,s=void 0===s?0:s,n)){for(var r=[null],o=5;o{t.exports=function(t,e,i){if(!e.length)return NaN;if(1===e.length)return e[0];var s,n,r=1;if(i){if(te.length&&(r=e.length),i?(s=e[r-1][i],(n=e[r][i])-t<=t-s?e[r]:e[r-1]):(s=e[r-1],(n=e[r])-t<=t-s?n:s)}},5454:t=>{var s=function(t,e){void 0===e&&(e=[]);for(var i=0;i{var h=i(45838);t.exports=function(t,e,i,s,n){void 0===n&&(n=t.length);var r=[];if(h(t,s=void 0===s?0:s,n))for(var o=s;o{var a=i(45838);t.exports=function(t,e,i,s,n){if(void 0===n&&(n=t.length),a(t,s=void 0===s?0:s,n))for(var r=s;r{t.exports=function(t,e,i){void 0===i&&(i=t.length);e=(e=void 0===e?0:e)+Math.floor(Math.random()*i);return void 0===t[e]?null:t[e]}},24218:t=>{t.exports=function(t,e,i){if(e!==i){var s=t.indexOf(e),i=t.indexOf(i);if(s<0||i<0)throw new Error("Supplied items must be elements of the same array");i{t.exports=function(t,e,i){if(e!==i){var s=t.indexOf(e),i=t.indexOf(i);if(s<0||i<0)throw new Error("Supplied items must be elements of the same array");s{t.exports=function(t,e){var i,s,n=t.indexOf(e);return 0{t.exports=function(t,e,i){var s=t.indexOf(e);if(-1===s||i<0||i>=t.length)throw new Error("Supplied index out of bounds");return s!==i&&(t.splice(s,1),t.splice(i,0,e)),e}},27555:t=>{t.exports=function(t,e){var i,s,n=t.indexOf(e);return-1!==n&&n{t.exports=function(t,e,i,s){var n,r=[],o=!1;if((i||s)&&(o=!0,i=i||"",s=s||""),e{var o=i(67233);t.exports=function(t,e,i){void 0===t&&(t=0),void 0===i&&(i=1),null===(e=void 0===e?null:e)&&(e=t,t=0);for(var s=[],n=Math.max(o((e-t)/(i||1)),0),r=0;r{function p(t,e,i){var s=t[e];t[e]=t[i],t[i]=s}function f(t,e){return t{var d=i(10850),p=i(18592);t.exports=function(t,e,i){var s=d(i,"max",0),n=d(i,"qty",1),r=d(i,"random",!1),o=d(i,"randomB",!1),a=d(i,"repeat",0),h=d(i,"yoyo",!1),l=[];o&&p(e),-1===a&&(a=0===s?0:(i=t.length*e.length*n,h&&(i*=2),Math.ceil(s/i)));for(var u=0;u<=a;u++){var c=function(t,e,i){for(var s=[],n=0;n{var h=i(72677);t.exports=function(t,e,i,s){var n;if(void 0===s&&(s=t),!Array.isArray(e))return-1!==(n=t.indexOf(e))?(h(t,n),i&&i.call(s,e),e):null;for(var r=e.length-1,o=[];0<=r;){var a=e[r];-1!==(n=t.indexOf(a))&&(h(t,n),o.push(a),i)&&i.call(s,a),r--}return o}},8324:(t,e,i)=>{var n=i(72677);t.exports=function(t,e,i,s){if(void 0===s&&(s=t),e<0||e>t.length-1)throw new Error("Index out of bounds");t=n(t,e);return i&&i.call(s,t),t}},47427:(t,e,i)=>{var h=i(45838);t.exports=function(t,e,i,s,n){if(void 0===i&&(i=t.length),void 0===n&&(n=t),h(t,e=void 0===e?0:e,i)){var r=t.splice(e,i-e);if(s)for(var o=0;o{var s=i(72677);t.exports=function(t,e,i){void 0===i&&(i=t.length);e=(e=void 0===e?0:e)+Math.floor(Math.random()*i);return s(t,e)}},80402:t=>{t.exports=function(t,e,i){var e=t.indexOf(e),s=t.indexOf(i);return-1!==e&&-1===s&&(t[e]=i,!0)}},77640:t=>{t.exports=function(t,e){void 0===e&&(e=1);for(var i=null,s=0;s{t.exports=function(t,e){void 0===e&&(e=1);for(var i=null,s=0;s{t.exports=function(t,e,i,s){t=t.length;if(e<0||t{t.exports=function(t,e){var i=t.indexOf(e);return-1!==i&&0{var a=i(45838);t.exports=function(t,e,i,s,n){if(void 0===n&&(n=t.length),a(t,s=void 0===s?0:s,n))for(var r=s;r{t.exports=function(t){for(var e=t.length-1;0{t.exports=function(t){var i=/\D/g;return t.sort(function(t,e){return parseInt(t.replace(i,""),10)-parseInt(e.replace(i,""),10)}),t}},72677:t=>{t.exports=function(t,e){if(!(e>=t.length)){for(var i=t.length-1,s=t[e],n=e;n{var s=i(77290);function n(t,e){return String(t).localeCompare(e)}function o(t,e,i,s){for(var n,r,o,a,h=t.length,l=0,u=2*i,c=0;c{t.exports=function(t,e,i){if(e!==i){var s=t.indexOf(e),n=t.indexOf(i);if(s<0||n<0)throw new Error("Supplied items must be elements of the same array");t[s]=i,t[n]=e}return t}},59959:(t,e,i)=>{t.exports={Matrix:i(13515),Add:i(78991),AddAt:i(48522),BringToTop:i(58742),CountAllMatching:i(30164),Each:i(36337),EachInRange:i(46208),FindClosestInSorted:i(2406),Flatten:i(5454),GetAll:i(71608),GetFirst:i(51463),GetRandom:i(72861),MoveDown:i(51172),MoveTo:i(68396),MoveUp:i(27555),MoveAbove:i(24218),MoveBelow:i(58258),NumberArray:i(13401),NumberArrayStep:i(89955),QuickSelect:i(53466),Range:i(75757),Remove:i(66458),RemoveAt:i(8324),RemoveBetween:i(47427),RemoveRandomElement:i(50147),Replace:i(80402),RotateLeft:i(77640),RotateRight:i(38487),SafeRange:i(45838),SendToBack:i(27847),SetAll:i(6034),Shuffle:i(18592),SortByDigits:i(28834),SpliceOne:i(72677),StableSort:i(17922),Swap:i(96928)}},97494:t=>{t.exports=function(t){if(!Array.isArray(t)||!Array.isArray(t[0]))return!1;for(var e=t[0].length,i=1;i{var o=i(76400),a=i(97494);t.exports=function(t){var e="";if(a(t))for(var i=0;i{t.exports=function(t){return t.reverse()}},51995:t=>{t.exports=function(t){for(var e=0;e{var s=i(63515);t.exports=function(t){return s(t,180)}},42549:(t,e,i)=>{var s=i(63515);t.exports=function(t){return s(t,90)}},63515:(t,e,i)=>{var s=i(97494),n=i(78581);t.exports=function(t,e){if(void 0===e&&(e=90),!s(t))return null;if(90===(e="string"!=typeof e?(e%360+360)%360:e)||-270===e||"rotateLeft"===e)(t=n(t)).reverse();else if(-90===e||270===e||"rotateRight"===e)t.reverse(),t=n(t);else if(180===Math.abs(e)||"rotate180"===e){for(var i=0;i{var s=i(63515);t.exports=function(t){return s(t,-90)}},27365:(t,e,i)=>{var r=i(77640),o=i(38487);t.exports=function(t,e,i){if(void 0===e&&(e=0),0!==(i=void 0===i?0:i)&&(i<0?r(t,Math.abs(i)):o(t,i)),0!==e)for(var s=0;s{t.exports=function(t){for(var e=t.length,i=t[0].length,s=new Array(i),n=0;n{t.exports={CheckMatrix:i(97494),MatrixToString:i(68428),ReverseColumns:i(59521),ReverseRows:i(51995),Rotate180:i(89011),RotateLeft:i(42549),RotateMatrix:i(63515),RotateRight:i(14305),Translate:i(27365),TransposeMatrix:i(78581)}},40581:t=>{var o="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";t.exports=function(t,e){for(var i=new Uint8Array(t),s=i.length,n=e?"data:"+e+";base64,":"",r=0;r>2])+o[(3&i[r])<<4|i[r+1]>>4])+o[(15&i[r+1])<<2|i[r+2]>>6])+o[63&i[r+2]];return s%3==2?n=n.substring(0,n.length-1)+"=":s%3==1&&(n=n.substring(0,n.length-2)+"=="),n}},82329:t=>{for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",u=new Uint8Array(256),i=0;i>4,h[a++]=(15&i)<<4|s>>2,h[a++]=(3&s)<<6|63&n;return o}},78417:(t,e,i)=>{t.exports={ArrayBufferToBase64:i(40581),Base64ToArrayBuffer:i(82329)}},22178:(t,e,i)=>{t.exports={Array:i(59959),Base64:i(78417),Objects:i(64615),String:i(50379),NOOP:i(72283),NULL:i(10618)}},32742:t=>{t.exports=function(t){var e,i={};for(e in t)Array.isArray(t[e])?i[e]=t[e].slice(0):i[e]=t[e];return i}},28699:t=>{var n=function(t){var e,i,s;if("object"!=typeof t||null===t)return t;for(s in e=Array.isArray(t)?[]:{},t)i=t[s],e[s]=n(i);return e};t.exports=n},98611:(t,e,i)=>{var l=i(42911),u=function(){var t,e,i,s,n,r=arguments[0]||{},o=1,a=arguments.length,h=!1;for("boolean"==typeof r&&(h=r,r=arguments[1]||{},o=2),a===o&&(r=this,--o);o{var s=i(5923),n=i(10850);t.exports=function(t,e,i){t=n(t,e,null);if(null===t)return i;if(Array.isArray(t))return s.RND.pick(t);if("object"==typeof t){if(t.hasOwnProperty("randInt"))return s.RND.integerInRange(t.randInt[0],t.randInt[1]);if(t.hasOwnProperty("randFloat"))return s.RND.realInRange(t.randFloat[0],t.randFloat[1])}else if("function"==typeof t)return t(e);return t}},72632:t=>{t.exports=function(t,e,i){var s=typeof t;return t&&"number"!=s&&"string"!=s&&t.hasOwnProperty(e)&&void 0!==t[e]?t[e]:i}},94324:(t,e,i)=>{var r=i(10850),o=i(82897);t.exports=function(t,e,i,s,n){t=r(t,e,n=void 0===n?i:n);return o(t,i,s)}},10850:t=>{t.exports=function(t,e,i,s){if(!t&&!s||"number"==typeof t)return i;if(t&&t.hasOwnProperty(e))return t[e];if(s&&s.hasOwnProperty(e))return s[e];if(-1===e.indexOf("."))return i;for(var n=e.split("."),r=t,o=s,a=i,h=i,l=!0,u=!0,c=0;c{t.exports=function(t,e){for(var i=0;i{t.exports=function(t,e){for(var i=0;i{t.exports=function(t,e){return t.hasOwnProperty(e)}},42911:t=>{t.exports=function(t){if(!t||"object"!=typeof t||t.nodeType||t===t.window)return!1;try{if(t.constructor&&!{}.hasOwnProperty.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}return!0}},30657:(t,e,i)=>{var n=i(32742);t.exports=function(t,e){var i,s=n(t);for(i in e)s.hasOwnProperty(i)||(s[i]=e[i]);return s}},72066:(t,e,i)=>{var n=i(32742);t.exports=function(t,e){var i,s=n(t);for(i in e)s.hasOwnProperty(i)&&(s[i]=e[i]);return s}},28820:(t,e,i)=>{var r=i(19256);t.exports=function(t,e){for(var i={},s=0;s{t.exports=function(t,e,i){if(!t||"number"==typeof t)return!1;if(t.hasOwnProperty(e))t[e]=i;else{if(-1===e.indexOf("."))return!1;for(var s=e.split("."),n=t,r=t,o=0;o{t.exports={Clone:i(32742),DeepCopy:i(28699),Extend:i(98611),GetAdvancedValue:i(20494),GetFastValue:i(72632),GetMinMaxValue:i(94324),GetValue:i(10850),HasAll:i(87701),HasAny:i(53523),HasValue:i(19256),IsPlainObject:i(42911),Merge:i(30657),MergeRight:i(72066),Pick:i(28820),SetValue:i(22440)}},69429:t=>{t.exports=function(t,i){return t.replace(/%([0-9]+)/g,function(t,e){return i[Number(e)-1]})}},76400:t=>{t.exports=function(t,e,i,s){void 0===i&&(i=" "),void 0===s&&(s=3);var n;if((e=void 0===e?0:e)+1>=(t=t.toString()).length)switch(s){case 1:t=new Array(e+1-t.length).join(i)+t;break;case 3:var r=Math.ceil((n=e-t.length)/2);t=new Array(n-r+1).join(i)+t+new Array(r+1).join(i);break;default:t+=new Array(e+1-t.length).join(i)}return t}},76872:t=>{t.exports=function(t,e){return 0===e?t.slice(1):t.slice(0,e-1)+t.slice(e)}},8051:t=>{t.exports=function(t){return t.split("").reverse().join("")}},76583:t=>{t.exports=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)})}},40587:t=>{t.exports=function(t){return t&&t[0].toUpperCase()+t.slice(1)}},50379:(t,e,i)=>{t.exports={Format:i(69429),Pad:i(76400),RemoveAt:i(76872),Reverse:i(8051),UppercaseFirst:i(40587),UUID:i(76583)}}},n={},i.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),i(92491);function i(t){var e=n[t];return void 0!==e||(e=n[t]={exports:{}},s[t](e,e.exports,i)),e.exports}var s,n})()}.call(this,i(75))},function(t,e){var i,s,t=t.exports={};function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(e){if(i===setTimeout)return setTimeout(e,0);if((i===n||!i)&&setTimeout)return(i=setTimeout)(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}try{i="function"==typeof setTimeout?setTimeout:n}catch(t){i=n}try{s="function"==typeof clearTimeout?clearTimeout:r}catch(t){s=r}var a,h=[],l=!1,u=-1;function c(){l&&a&&(l=!1,a.length?h=a.concat(h):u=-1,h.length)&&d()}function d(){if(!l){var t=o(c);l=!0;for(var e=h.length;e;){for(a=h,h=[];++uthis.startFrame)&&(t=this.startFrame,this.startFrame=this.endFrame,this.endFrame=t),!1===this.isPlaying&&this.playFrames(this.startFrame,this.endFrame,this.loop,Math.abs(this.dir))},r.prototype.setAnimFrame=function(t){t=Math.floor(t);this.currFrame!==t&&(this.currFrame=t,this.setFrame(this.frameName+(1e4+this.currFrame)))},r.prototype.update=function(){!0===this.isPlaying&&(this.counterAnim+=this.dir,(0this.endFrame||this.dir<0&&this.counterAnim>16&255)/255,a=(s>>8&255)/255,s=(255&s)/255,h=((n=n||3375104)>>16&255)/255,l=(n>>8&255)/255,n=(255&n)/255,e=[.3,.59,.11,0,0,o,a,s,e=e||.2,0,h,l,n,i=i||.15,0,o-h,a-l,s-n,0,0];this._loadMatrix(t,e,r)},o.night=function(t,e,i){e=[-2*(e=e||.1),-e,0,0,0,-e,0,e,0,0,0,e,2*e,0,0,0,0,0,1,0];this._loadMatrix(t,e,i)},o.predator=function(t,e,i){this._loadMatrix(t,[11.224130630493164*e,-4.794486999511719*e,-2.8746118545532227*e,0*e,.40342438220977783*e,-3.6330697536468506*e,9.193157196044922*e,-2.951810836791992*e,0*e,-1.316135048866272*e,-3.2184197902679443*e,-4.2375030517578125*e,7.476448059082031*e,0*e,.8044459223747253*e,0,0,0,1,0],i)},o.lsd=function(t,e){this._loadMatrix(t,[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0],e)},o.reset=function(t){this._loadMatrix(t,this.getDefaultColorMatrix(),!1)},o.kill=function(t,e,i){t.resetPipeline(e,i)},o._loadMatrix=function(t,e,i){var s=e;(i=!!i)&&(i=(i=t.pipelineData.colorMatrix)||o.getDefaultColorMatrix(),this._multiply(s,i,e),s=this._colorMatrix(s)),t.pipelineData.colorMatrix=s},o._multiply=function(t,e,i){return t[0]=e[0]*i[0]+e[1]*i[5]+e[2]*i[10]+e[3]*i[15],t[1]=e[0]*i[1]+e[1]*i[6]+e[2]*i[11]+e[3]*i[16],t[2]=e[0]*i[2]+e[1]*i[7]+e[2]*i[12]+e[3]*i[17],t[3]=e[0]*i[3]+e[1]*i[8]+e[2]*i[13]+e[3]*i[18],t[4]=e[0]*i[4]+e[1]*i[9]+e[2]*i[14]+e[3]*i[19],t[5]=e[5]*i[0]+e[6]*i[5]+e[7]*i[10]+e[8]*i[15],t[6]=e[5]*i[1]+e[6]*i[6]+e[7]*i[11]+e[8]*i[16],t[7]=e[5]*i[2]+e[6]*i[7]+e[7]*i[12]+e[8]*i[17],t[8]=e[5]*i[3]+e[6]*i[8]+e[7]*i[13]+e[8]*i[18],t[9]=e[5]*i[4]+e[6]*i[9]+e[7]*i[14]+e[8]*i[19],t[10]=e[10]*i[0]+e[11]*i[5]+e[12]*i[10]+e[13]*i[15],t[11]=e[10]*i[1]+e[11]*i[6]+e[12]*i[11]+e[13]*i[16],t[12]=e[10]*i[2]+e[11]*i[7]+e[12]*i[12]+e[13]*i[17],t[13]=e[10]*i[3]+e[11]*i[8]+e[12]*i[13]+e[13]*i[18],t[14]=e[10]*i[4]+e[11]*i[9]+e[12]*i[14]+e[13]*i[19],t[15]=e[15]*i[0]+e[16]*i[5]+e[17]*i[10]+e[18]*i[15],t[16]=e[15]*i[1]+e[16]*i[6]+e[17]*i[11]+e[18]*i[16],t[17]=e[15]*i[2]+e[16]*i[7]+e[17]*i[12]+e[18]*i[17],t[18]=e[15]*i[3]+e[16]*i[8]+e[17]*i[13]+e[18]*i[18],t[19]=e[15]*i[4]+e[16]*i[9]+e[17]*i[14]+e[18]*i[19],t},o._colorMatrix=function(t){t=new Float32Array(t);return t[4]/=255,t[9]/=255,t[14]/=255,t[19]/=255,t},o.getDefaultColorMatrix=function(){return[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0]},o);function o(t){return n.call(this,{game:t,vertShader:"\n precision mediump float;\n uniform mat4 uProjectionMatrix;\n\n attribute vec2 inPosition;\n attribute vec2 inTexCoord;\n attribute vec4 inTint;\n\n varying vec2 outTexCoord;\n varying vec4 outTint;\n\n void main () {\n gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);\n\n outTexCoord = inTexCoord;\n outTint = inTint;\n }\n ",fragShader:"precision mediump float;\n varying vec2 outTexCoord;\n uniform float m[20];\n uniform sampler2D uSampler;\n\n varying vec4 outTint;\n\n void main(void){\n vec4 c = texture2D(uSampler, outTexCoord) * vec4(outTint.rgb * outTint.a, outTint.a);\n\n gl_FragColor.r = (m[0] * c.r);\n gl_FragColor.r += (m[1] * c.g);\n gl_FragColor.r += (m[2] * c.b);\n gl_FragColor.r += (m[3] * c.a);\n gl_FragColor.r += m[4];\n gl_FragColor.g = (m[5] * c.r);\n gl_FragColor.g += (m[6] * c.g);\n gl_FragColor.g += (m[7] * c.b);\n gl_FragColor.g += (m[8] * c.a);\n gl_FragColor.g += m[9];\n gl_FragColor.b = (m[10] * c.r);\n gl_FragColor.b += (m[11] * c.g);\n gl_FragColor.b += (m[12] * c.b);\n gl_FragColor.b += (m[13] * c.a);\n gl_FragColor.b += m[14];\n gl_FragColor.a = (m[15] * c.r);\n gl_FragColor.a += (m[16] * c.g);\n gl_FragColor.a += (m[17] * c.b);\n gl_FragColor.a += (m[18] * c.a);\n gl_FragColor.a += m[19];\n }",uniforms:["m"]})||this}e.PLColorMatrix=r},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.PLMIXBlurColorMatrix=void 0,i(26)),i=(n=Phaser.Renderer.WebGL.Pipelines.SinglePipeline,r(a,n),a.prototype.onBoot=function(){this.set1fv("m",o.PLColorMatrix.getDefaultColorMatrix())},a.prototype.onBind=function(t){n.prototype.onBind.call(this);t=t.pipelineData;t.blurX&&this.set1f("blurX",t.blurX),t.blurY&&this.set1f("blurY",t.blurY),t.colorMatrix&&this.set1fv("m",t.colorMatrix)},a.prototype.onBatch=function(t){t&&this.flush()},a);function a(t){return n.call(this,{game:t,vertShader:"\n precision mediump float;\n uniform mat4 uProjectionMatrix;\n\n attribute vec2 inPosition;\n attribute vec2 inTexCoord;\n attribute vec4 inTint;\n\n varying vec2 outTexCoord;\n varying vec4 outTint;\n\n void main () {\n gl_Position = uProjectionMatrix * vec4(inPosition, 1.0, 1.0);\n\n outTexCoord = inTexCoord;\n outTint = inTint;\n }\n ",fragShader:"precision mediump float;\n varying vec2 outTexCoord;\n varying vec4 vColor;\n uniform float blurX;\n uniform float blurY;\n uniform sampler2D uSampler;\n\n uniform float m[20];\n varying vec4 outTint;\n\n void main(void) {\n //blur\n vec4 sum = vec4(0.0);\n sum += texture2D(uSampler, vec2(outTexCoord.x - 4.0*blurX, outTexCoord.y - 4.0*blurY)) * 0.05;\n sum += texture2D(uSampler, vec2(outTexCoord.x - 3.0*blurX, outTexCoord.y - 3.0*blurY)) * 0.09;\n sum += texture2D(uSampler, vec2(outTexCoord.x - 2.0*blurX, outTexCoord.y - 2.0*blurY)) * 0.12;\n sum += texture2D(uSampler, vec2(outTexCoord.x - blurX, outTexCoord.y - blurY)) * 0.15;\n\n sum += texture2D(uSampler, vec2(outTexCoord.x, outTexCoord.y)) * 0.16;\n\n sum += texture2D(uSampler, vec2(outTexCoord.x + blurX, outTexCoord.y + blurY)) * 0.15;\n sum += texture2D(uSampler, vec2(outTexCoord.x + 2.0*blurX, outTexCoord.y + 2.0*blurY)) * 0.12;\n sum += texture2D(uSampler, vec2(outTexCoord.x + 3.0*blurX, outTexCoord.y + 3.0*blurY)) * 0.09;\n sum += texture2D(uSampler, vec2(outTexCoord.x + 4.0*blurX, outTexCoord.y + 4.0*blurY)) * 0.05;\n\n //color matrix\n vec4 c = sum * vec4(outTint.rgb * outTint.a, outTint.a);\n\n gl_FragColor.r = (m[0] * c.r);\n gl_FragColor.r += (m[1] * c.g);\n gl_FragColor.r += (m[2] * c.b);\n gl_FragColor.r += (m[3] * c.a);\n gl_FragColor.r += m[4];\n gl_FragColor.g = (m[5] * c.r);\n gl_FragColor.g += (m[6] * c.g);\n gl_FragColor.g += (m[7] * c.b);\n gl_FragColor.g += (m[8] * c.a);\n gl_FragColor.g += m[9];\n gl_FragColor.b = (m[10] * c.r);\n gl_FragColor.b += (m[11] * c.g);\n gl_FragColor.b += (m[12] * c.b);\n gl_FragColor.b += (m[13] * c.a);\n gl_FragColor.b += m[14];\n gl_FragColor.a = (m[15] * c.r);\n gl_FragColor.a += (m[16] * c.g);\n gl_FragColor.a += (m[17] * c.b);\n gl_FragColor.a += (m[18] * c.a);\n gl_FragColor.a += m[19];\n }",uniforms:["blurX","blurY","m"]})||this}e.PLMIXBlurColorMatrix=i},function(t,e,i){"use strict";var s,r,n=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.JDImageSkew=void 0,r=i(56).JDImagePivot,n(o,r),o.prototype.setSkew=function(t,e){this.skewX=t,this.skewY=e},Object.defineProperty(o.prototype,"skewX",{get:function(){return this._skewX},set:function(t){this._skewX=this.checkSkewValue(t)},enumerable:!1,configurable:!0}),Object.defineProperty(o.prototype,"skewY",{get:function(){return this._skewY},set:function(t){this._skewY=this.checkSkewValue(t)},enumerable:!1,configurable:!0}),o.prototype.checkSkewValue=function(t){return t>Math.PI?t=-(Math.PI-(t-Math.PI)):t<-Math.PI&&(t=Math.PI+(t+Math.PI)),t},o);function o(t,e,i,s,n){t=r.call(this,t,e,i,s,n)||this;return t._skewX=0,t._skewY=0,t._srB=0,t._srC=0,t._crA=1,t._crD=1,t._cachedRotX=0,t._cachedRotY=0,t}e.JDImageSkew=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.JDTextTranslated=void 0,i(7)),a=i(15),i=(n=o.JDTextFit,r(h,n),h.prototype.setText=function(t,e){return void 0===e&&(e=""),this.setKey(t),this.updateTranslate(e),this},h.prototype.setKey=function(t){this.key=t},h.prototype.getLocale=function(){return a.Localization.getText(this.key)},h.prototype.updateTranslate=function(t){void 0===t&&(t=""),n.prototype.setText.call(this,this.getLocale()+t)},h.prototype.setTextNoLocale=function(t){n.prototype.setText.call(this,t)},h);function h(){return null!==n&&n.apply(this,arguments)||this}e.JDTextTranslated=i},function(t,e,i){"use strict";function s(t,e,i,s,n,r){this.currTimeScale=1,this.additionalTimeScale=1,this.isPaused=!1,this.isPlaying=!1,this.scene=t,this.spine=t.make.spine({key:s,animationName:n,loop:r},!1),this.x=e,this.y=i}Object.defineProperty(e,"__esModule",{value:!0}),e.JDSpineGameObject=void 0,s.prototype.pause=function(){this.isPaused=!0,this.spine.timeScale=0},s.prototype.resume=function(){this.isPaused=!1,this.spine.timeScale=this.currTimeScale},s.prototype.stop=function(){this.spine.timeScale=0,this.isPlaying=!1},s.prototype.getView=function(){return this.spine},s.prototype.updateAnim=function(){this.spine.preUpdate(0,0)},s.prototype.setSkin=function(t){this.spine.setSkinByName(t)},s.prototype.play=function(t,e,i,s){this.currTimeScale=(i=void 0===i?1:i)*this.additionalTimeScale,this.spine.timeScale=this.currTimeScale,this.spine.play(t,e,s),this.isPlaying=!0,this.currAnimationName=t},s.prototype.playFromProgress=function(t,e,i,s,n){this.play(t,i,s=void 0===s?1:s,n),this.spine.state.getCurrent(0)&&(this.spine.state.getCurrent(0).trackTime=this.getCurrentAnimationDuration()*e)},s.prototype.getCurrentAnimationName=function(){return this.currAnimationName},s.prototype.getCurrentAnimationDuration=function(){return this.spine.getCurrentAnimation()?this.spine.getCurrentAnimation().duration:0},s.prototype.getAnimationDuration=function(t){return this.spine.findAnimation(t).duration},s.prototype.getAnimationProgress=function(){var t;return this.spine.state.getCurrent(0)?(t=this.getCurrentAnimationDuration(),this.spine.state.getCurrent(0).trackTime%t/t):0},Object.defineProperty(s.prototype,"x",{get:function(){return this.spine.x},set:function(t){this.spine.x=t},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"y",{get:function(){return this.spine.y},set:function(t){this.spine.y=t},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"rotation",{get:function(){return this.spine.rotation},set:function(t){this.spine.rotation=t},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"scaleX",{get:function(){return this.spine.scaleX},set:function(t){this.spine.scaleX=t},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"scaleY",{get:function(){return this.spine.scaleY},set:function(t){this.spine.scaleY=t},enumerable:!1,configurable:!0}),Object.defineProperty(s.prototype,"visible",{get:function(){return this.spine.visible},set:function(t){this.spine.visible=t},enumerable:!1,configurable:!0}),s.prototype.destroy=function(){this.scene=null,this.spine.destroy(),this.spine=null},s.EVENT_COMPLETE="complete",s.EVENT_DISPOSE="dispose",s.EVENT_END="end",s.EVENT_EVENT="event",s.EVENT_INTERRUPTED="interrupted",s.EVENT_START="start",e.JDSpineGameObject=s},function(t,e,i){"use strict";var s,h,n=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),n=(Object.defineProperty(e,"__esModule",{value:!0}),e.JDImageNineSlice=void 0,h=Phaser.GameObjects.RenderTexture,n(u,h),u.defaultSliceConfig=function(t){"number"==typeof t.sourceLayout.width&&(i=(s=t.sourceLayout).width,s=s.height,t.sourceLayout={topLeft:{width:i,height:s}});var e,i=t.sourceLayout,s=(i.topRight=i.topRight||i.topLeft,i.bottomRight=i.bottomRight||i.topLeft,i.bottomLeft=i.bottomLeft||i.topLeft,Math.max(i.topLeft.height,i.topRight.height)),n=Math.max(i.topRight.width,i.bottomRight.width),r=Math.max(i.bottomLeft.height,i.bottomRight.height),i=Math.max(i.topLeft.width,i.bottomLeft.width);return t.safeOffsets||(t.safeOffsets={top:s,right:n,bottom:r,left:i}),void 0===t.minSizing||!1!==t.minSizing?(e=t.safeOffsets,t.minSizing={width:e?Math.max(e.left+e.right,i+n):i+n,height:e?Math.max(e.top+e.bottom,s+r):s+r}):t.minSizing=!1,t},u.shortSliceLayout=function(t){return{tl:{x:t.topLeft.width,y:t.topLeft.height},tr:{x:t.topRight.width,y:t.topRight.height},bl:{x:t.bottomLeft.width,y:t.bottomLeft.height},br:{x:t.bottomRight.width,y:t.bottomRight.height}}},u.prototype.changeFrame=function(t,e,i){void 0===e&&(e=0),void 0===i&&(i=0),this.sourceFrame=this.sourceTex.get(t),this.initFrames(),0===e&&0===i?this.drawFrames():this.resize(e,i)},u.prototype.resize=function(t,e){var i,s;this.sliceConfig&&(i=(s=this.sliceConfig.minSizing)?Math.max(s.height,e):e,s=s?Math.max(s.width,t):t,(ex.BalanceData.levelsCompleted)){this.currLevelID===x.BalanceData.challengeID&&(h.x+=r,h.y+=o);var l=h.id,u=void 0,c=void 0;switch(l){case"spawnPoint":this.spawnX=h.x,this.spawnY=h.y;break;case"challengeEndPoint":this.challengePatternEndX=h.x,this.challengePatternEndY=h.y;break;case"actChallenge":(u=new T.ActChallenge(this,this.layerTopObstacle)).spawn(h),this.items.push(u);break;case"basicBlock":(u=new w.BasicBlock(this,this.layerBlocks)).spawn(h),this.blocks.push(u);break;case"verticalBlock":(u=new w.VerticalBlock(this,this.layerBlocks)).spawn(h),this.blocks.push(u);break;case"horizontalBlock":(u=new w.HorizontalBlock(this,this.layerBlocks)).spawn(h),this.blocks.push(u);break;case"fallingBlock":(u=new w.FallingBlock(this,this.layerBlocks)).spawn(h),this.blocks.push(u);break;case"bounceBlock":(u=new w.BounceBlock(this,this.layerBlocks)).spawn(h),this.blocks.push(u);break;case"pushBlock":(u=new w.PushBlock(this,this.layerBlocks)).spawn(h),this.blocks.push(u);break;case"iceBlock":(u=new w.IceBlock(this,this.layerBlocks)).spawn(h),this.blocks.push(u);break;case"glassBlock":(u=new w.GlassBlock(this,this.layerBlocks)).spawn(h),this.blocks.push(u);break;case"speedBlock":(u=new w.SpeedBlock(this,this.layerBlocks,1)).spawn(h),this.blocks.push(u);break;case"speedBlockLeft":(u=new w.SpeedBlock(this,this.layerBlocks,-1)).spawn(h),this.blocks.push(u);break;case"sparkBlock":(u=new w.SparkBlock(this,this.layerBlocks)).spawn(h),this.blocks.push(u);break;case"solarBlock":(u=new w.SolarBlock(this,this.layerBlocks)).spawn(h),this.blocks.push(u),this.solarBlocks.push(u);break;case"invisBlock":(u=new w.InvisBlock(this,this.layerBlocks)).spawn(h),this.blocks.push(u);break;case"invisBlockUp":(u=new w.InvisBlockUp(this,this.layerBlocks)).spawn(h),this.blocks.push(u);break;case"invisBlockDown":(u=new w.InvisBlockDown(this,this.layerBlocks)).spawn(h),this.blocks.push(u);break;case"explosiveBlock":(u=new w.ExplosiveBlock(this,this.layerBlocks)).spawn(h),this.blocks.push(u);break;case"blockedWall":(u=new w.BlockedWall(this,this.layerObstacle)).spawn(h),this.blocks.push(u);break;case"actBlock":(u=new w.ActBlock(this,this.layerTopObstacle,h.actNum,!1)).spawn(h),this.blocks.push(u),this.actBlocks[h.actNum+"false"]=u;break;case"actBlockHard":(u=new w.ActBlock(this,this.layerTopObstacle,h.actNum,!0)).spawn(h),this.blocks.push(u),this.actBlocks[h.actNum+"true"]=u;break;case"skinsBlock":(u=new w.SkinsBlock(this,this.layerTopObstacle,n)).spawn(h),this.blocks.push(u),(this.actBlocks["skin"+n+"false"]=u).levelStart(),n+=1;break;case"swimmingPool":(u=new w.SwimmingPool(this,this.layerPool)).spawn(h),this.pools.push(u);break;case"leftSlope":(u=new w.Slope(this,this.layerBlocks,-1)).spawn(h),this.slopes.push(u);break;case"rightSlope":(u=new w.Slope(this,this.layerBlocks,1)).spawn(h),this.slopes.push(u);break;case"ziplinePole":(u=new S.ZiplinePole(this,this.layerObstacle)).spawn(h),e=e?(this.ziplines.push(e.attach(u)),null):u,this.misc.push(u);break;case"pole":(u=new S.Pole(this,this.layerTopObstacle)).spawn(h),this.poles.push(u);break;case"checkpoint":(u=new T.Checkpoint(this,this.layerObstacle,!1)).spawn(h),this.items.push(u);break;case"checkpointSwimming":var d=new T.Checkpoint(this,this.layerObstacle,!0);d.spawn(h),this.items.push(d);break;case"checkpointHome":(u=new T.CheckpointHome(this,this.layerObstacle,!1)).spawn(h),this.items.push(u);break;case"checkpointReward":(u=new T.CheckpointReward(this,this.layerObstacle,!1)).spawn(h),this.items.push(u);break;case"coin":(u=new T.Coin(this,this.layerTopObstacle)).spawn(h),this.items.push(u);break;case"windBlaster":(u=new T.WindBlaster(this,this.layerObstacle)).spawn(h),this.items.push(u);break;case"finishPortal":(u=new T.FinishPortal(this,this.layerObstacle)).spawn(h),this.items.push(u);break;case"lockBlock":(u=new w.LockBlock(this,this.layerBlocks)).spawn(h),this.blocks.push(u);break;case"key":(u=new T.Key(this,this.layerObstacle)).spawn(h),this.items.push(u);break;case"timedKey":(u=new T.TimedKey(this,this.layerObstacle)).spawn(h),this.items.push(u);break;case"torch":(u=new T.Torch(this,this.layerObstacle)).spawn(h),this.items.push(u);break;case"circularCannon":(u=new T.CircularCannon(this,this.layerTopObstacle)).spawn(h),this.items.push(u);break;case"lightSwitch":(u=new T.LightSwitch(this,this.layerTopObstacle)).spawn(h),this.items.push(u);break;case"wire":(u=new S.Wire(this,this.layerTopObstacle)).spawn(h),this.wires.push(u);break;case"buzzsaw":(u=new b.Buzzsaw(this,this.layerObstacle)).spawn(h),this.obstacles.push(u);break;case"buzzsawVertical":(u=new b.BuzzsawVertical(this,this.layerObstacle)).spawn(h),this.obstacles.push(u);break;case"buzzsawHorizontal":(u=new b.BuzzsawHorizontal(this,this.layerObstacle)).spawn(h),this.obstacles.push(u);break;case"buzzsawBouncing":(u=new b.BuzzsawBouncing(this,this.layerObstacle)).spawn(h),this.obstacles.push(u);break;case"buzzsawEnlarging":(u=new b.BuzzsawEnlarging(this,this.layerObstacle)).spawn(h),this.obstacles.push(u);break;case"buzzsawOnStick":(u=new b.BuzzsawOnStick(this,this.layerTopObstacle)).spawn(h),this.obstacles.push(u);break;case"buzzsawOnStickHard":(u=new b.BuzzsawOnStickHard(this,this.layerTopObstacle)).spawn(h),this.obstacles.push(u);break;case"spike":(u=new b.Spike(this,this.layerObstacle)).spawn(h),this.obstacles.push(u);break;case"spike5x":(u=new b.Spike5x(this,this.layerObstacle)).spawn(h),this.obstacles.push(u);break;case"spike10x":(u=new b.Spike10x(this,this.layerObstacle)).spawn(h),this.obstacles.push(u);break;case"spike15x":(u=new b.Spike15x(this,this.layerObstacle)).spawn(h),this.obstacles.push(u);break;case"spike20x":(u=new b.Spike20x(this,this.layerObstacle)).spawn(h),this.obstacles.push(u);break;case"spike25x":(u=new b.Spike25x(this,this.layerObstacle)).spawn(h),this.obstacles.push(u);break;case"spike30x":(u=new b.Spike30x(this,this.layerObstacle)).spawn(h),this.obstacles.push(u);break;case"fallingSpike":(u=new b.FallingSpike(this,this.layerObstacle)).spawn(h),this.obstacles.push(u);break;case"shurikanSpawner":(u=new b.ShurikanSpawner(this,this.layerObstacle)).spawn(h),this.obstacles.push(u);break;case"classicLaser":(u=new b.ClassicLaser(this,this.layerTopObstacle)).spawn(h),this.obstacles.push(u);break;case"classicLaserStatic":(u=new b.ClassicLaserStatic(this,this.layerTopObstacle)).spawn(h),this.obstacles.push(u);break;case"quadrantRight":(u=new b.Quadrant(this,this.layerObstacle,2)).spawn(h),this.obstacles.push(u);break;case"quadrantLeft":(u=new b.Quadrant(this,this.layerObstacle,-2)).spawn(h),this.obstacles.push(u);break;case"laserPoint":i=i?((u=new b.LaserPoint(this,this.layerObstacle)).spawn(i.x,i.y,h.x,h.y),this.obstacles.push(u),null):new Phaser.Geom.Point(h.x,h.y);break;case"reaper":(u=new b.Reaper(this,this.layerObstacle)).spawn(h),this.obstacles.push(u);break;case"shurikanDispenser":(u=new b.ShurikanDispenser(this,this.layerObstacle)).spawn(h),this.obstacles.push(u);break;case"hazardStrips":(u=new S.HazardStrips(this,this.layerTopObstacle)).spawn(h),this.misc.push(u);break;case"breatheBlaster":(u=new T.BreatheBlaster(this,this.layerUnderPool)).spawn(h),this.items.push(u);break;case"healthBlaster":(u=new T.HealthBlaster(this,this.layerUnderPool)).spawn(h),this.items.push(u);break;case"greenRedZone":(u=new b.GreenRedZone(this,this.layerUnderPool)).spawn(h),this.obstacles.push(u);break;case"textFade":(u=new T.FadeText(this,this.layerText)).spawn(h),this.items.push(u);break;case"arrowFade":(u=new T.FadeArrow(this,this.layerText)).spawn(h),this.items.push(u);break;case"portal":(u=new T.Portal(this,this.layerTopObstacle,this.portalGetColorHue())).spawn(h),s?(u.attachPortal(s),s.attachPortal(u),s=null,this.portalCalcNextColor()):s=u,this.items.push(u);break;case"elevatorGeneratorUp":u=new w.ElevatorGenerator(this,this.layerTopObstacle),c=new b.Spike15x(this,this.layerObstacle),this.obstacles.push(c),u.addSpikes(c,!0),u.spawn(h),this.blocks.push(u);break;case"elevatorGeneratorDown":u=new w.ElevatorGenerator(this,this.layerTopObstacle),c=new b.Spike15x(this,this.layerObstacle),this.obstacles.push(c),u.addSpikes(c,!1),u.spawn(h),this.blocks.push(u);break;case"elevatorEliminatorUp":u=new w.ElevatorEliminator(this,this.layerTopObstacle),c=new b.Spike15x(this,this.layerObstacle),this.obstacles.push(c),u.addSpikes(c,!1),u.spawn(h),this.blocks.push(u),this.elevatorEliminator.push(u);break;case"elevatorEliminatorDown":u=new w.ElevatorEliminator(this,this.layerTopObstacle),c=new b.Spike15x(this,this.layerObstacle),this.obstacles.push(c),u.addSpikes(c,!0),u.spawn(h),this.blocks.push(u),this.elevatorEliminator.push(u);break;case"appearingBlock":(u=new w.AppearingBlock(this,this.layerTopObstacle)).spawn(h),this.blocks.push(u);break;case"rope":(u=new S.Rope(this,this.layerUnderPool)).spawn(h),this.ropes.push(u);break;case"blockSpike":(u=new w.BlockSpike(this,this.layerBlocks)).spawn(h),this.blocks.push(u);break;case"kite":(u=new T.Kite(this,this.layerTopObstacle)).spawn(h),this.items.push(u);break;case"vexTNT":(u=new w.VexTNT(this,this.layerBlocks)).spawn(h),this.blocks.push(u),this.vexTNT=u;break;case"grapplePad":(u=new T.GrapplePad(this,this.layerTopObstacle)).spawn(h),this.items.push(u);break;case"grapplePointA":(u=new T.GrapplePoint(this,this.layerText,!1)).spawn(h),this.items.push(u);break;case"grapplePointB":(u=new T.GrapplePoint(this,this.layerText,!0)).spawn(h),this.items.push(u);break;case"pulseBlock":(u=new w.PulseBlock(this,this.layerBlocks)).spawn(h),this.blocks.push(u);break;case"hoverPlatform":(u=new w.HoverPlatform(this,this.layerBlocks)).spawn(h),this.blocks.push(u);break;case"leverPulse":(u=new T.LeverPulse(this,this.layerObstacle)).spawn(h),this.items.push(u);break;case"jumpPotion":(u=new T.JumpPotion(this,this.layerObstacle)).spawn(h),this.items.push(u);break;case"surveillanceCamera":(u=new b.SurveillanceCamera(this,this.layerObstacle)).spawn(h),this.obstacles.push(u);break;case"classicLaserCamera":(u=new b.ClassicLaserCamera(this,this.layerObstacle)).spawn(h),this.obstacles.push(u);break;case"missileLauncher":(u=new b.MissileLauncher(this,this.layerTopObstacle)).spawn(h),this.obstacles.push(u);break;case"bouncePulsateBlock":(u=new w.BouncePulsateBlock(this,this.layerTopObstacle)).spawn(h),this.blocks.push(u);break;case"acidBlock":(u=new w.AcidBlock(this,this.layerBlocks)).spawn(h),this.blocks.push(u);break;case"lockedArea":(u=new w.LockedArea(this,this.layerBlocks)).spawn(h),this.blocks.push(u);break;case"swingingSpikes":(u=new b.SwingingSpikes(this,this.layerTopObstacle)).spawn(h),this.obstacles.push(u);break;case"trophy":(u=new T.Trophy(this,this.layerObstacle)).spawn(h),this.items.push(u);break;case"keycardBlue":(u=new T.KeycardBlue(this,this.layerObstacle)).spawn(h),this.items.push(u);break;case"chest":(u=new T.Chest(this,this.layerTopObstacle)).spawn(h),this.items.push(u);break;case"trafficLight":(u=new T.TrafficLight(this,this.layerTopObstacle)).spawn(h),this.items.push(u)}c=u=null}}for(var p=0,f=this.blocks;p=this.currentLevel.getTargetDeath(this.isCurrLevelHard))){if(g.BalanceData.totalDeaths+=1,100<=g.BalanceData.totalDeaths&&v.Achievements.saveAchive(x.TrophieAchieves.death),this.currSubScene===y.SubSceneList.Hub?this.subScene.updateDeaths(g.BalanceData.totalDeaths):this.subScene.updateDeaths(this.currentDeaths),v.SaveGame.getInstance().saveProgress(),!1===t?v.SoundManager.playSFX("death"+(Math.random()<.5?1:2)):v.SoundManager.playSFX("electricity"),!1===g.BalanceData.noBlood){for(var r=0;r<5;r++)this.particleManager.createColorParticle(e+10*Math.random()-5,i-s*Math.random(),10*Math.random()-5,-10*Math.random(),16711680);this.particleManager.createPlayerGib(e+10*Math.random()-5,i-s*Math.random(),10*Math.random()-5,-10*Math.random(),"player-head 10000"),this.particleManager.createPlayerGib(e+10*Math.random()-5,i-s*Math.random(),10*Math.random()-5,-10*Math.random(),"player-body 10000",2*Math.random()*Math.PI,8*Math.random()-4),this.particleManager.createPlayerGib(e+10*Math.random()-5,i-s*Math.random(),10*Math.random()-5,-10*Math.random(),"player-arm 10000",2*Math.random()*Math.PI,8*Math.random()-4),this.particleManager.createPlayerGib(e+10*Math.random()-5,i-s*Math.random(),10*Math.random()-5,-10*Math.random(),"player-arm 10000",2*Math.random()*Math.PI,8*Math.random()-4),this.particleManager.createPlayerGib(e+10*Math.random()-5,i-s*Math.random(),10*Math.random()-5,-10*Math.random(),"player-leg 10000",2*Math.random()*Math.PI,8*Math.random()-4),this.particleManager.createPlayerGib(e+10*Math.random()-5,i-s*Math.random(),10*Math.random()-5,-10*Math.random(),"player-leg 10000",2*Math.random()*Math.PI,8*Math.random()-4)}else this.effectsOverlay.explode();return this.reset(),!(!0===this.deathPanelShow&&(this.deathPanelCount+=1,3<=this.deathPanelCount)&&(this.deathPanelCount=0,this.checkpointReward?this.panelManager.show(c.PanelList.CheckPointReward):!0===a.Constants.SHOW_PANEL_ARE_YOU_OK?this.panelManager.show(c.PanelList.AreYouOk):this.panelManager.show(c.PanelList.PowerUp),this.deathPanelShow=!1,setTimeout(function(){n.deathPanelShow=!0},6e4),1))}this.resetLevel()},T.prototype.playerRevive=function(){this.player.spawn(null,this.checkpointReward),this.player.addShield()},T.prototype.resetVars=function(){this.deathPanelCount=0},T.prototype.reset=function(){},Object.defineProperty(T.prototype,"cameraZoom",{get:function(){return this._cameraZoom},set:function(t){this._cameraZoom!==t&&(this._cameraZoom=t,this.cameraGroup.scale=this._cameraZoom)},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"cameraX",{get:function(){return this._cameraX},set:function(t){this._cameraX=t,this.cameraGroup.x=-this._cameraX*this._cameraZoom+this.getGameHalfWidth()},enumerable:!1,configurable:!0}),Object.defineProperty(T.prototype,"cameraY",{get:function(){return this._cameraY},set:function(t){this._cameraY=t,this.cameraGroup.y=-this._cameraY*this._cameraZoom+this.getGameHalfHeight()},enumerable:!1,configurable:!0}),T.prototype.setCameraZero=function(){this._cameraX=0,this._cameraY=0,this.cameraGroup.x=0,this.cameraGroup.y=0},T.prototype.inCameraView=function(t,e,i,s){var n=this.getGameHalfWidth()/this._cameraZoom,r=this.getGameHalfHeight()/this._cameraZoom,o=this._cameraX-n,n=this._cameraX+n,a=this._cameraY-r,r=this._cameraY+r;return!(e=this.maxDur&&(this.anim="none")):"out"===this.anim&&(--this.counter,this.updateElements(),0===this.counter)&&(this.visible=!1),this.logo.update())},l.prototype.updateElements=function(){for(var t=0;ta.Constants.UI_SCALE_FIT_Y?a.Constants.UI_SCALE_FIT_X:a.Constants.UI_SCALE_FIT_Y)},l);function l(t){var e,i=o.call(this,t,a.Constants.GHW,a.Constants.GHH)||this;i.elementsStart=[0,1,2,3,4,5,4,1,2,3,4,5,4,3,2,3,4,5,4,3,2,3,4,5,4,3,2,1,4,5,4,3,2,1,0],i.countStep=2,i.elements=new Array,i.maxDur=Math.ceil(6*i.countStep);for(var s=-296,n=-444,r=0;r<35;r++)e=new d(t,n,s,i.elementsStart[r],i.countStep),i.add(e),i.elements.push(e),(r+1)%7==0?(n=-444,s+=148):n+=148;return e=null,i.logo=new p(t,i.countStep),i.logo.on("animInComp",i.onInComplete,i),i.add(i.logo),i.visible=!1,i}e.Transition=i;c=Phaser.GameObjects.Image,n(g,c),g.prototype.update=function(t){t>=this.start&&t<=this.duration&&(this.scaleX=(t-this.start)/(this.duration-this.start))};var u,c,d=g,p=(u=Phaser.GameObjects.Image,n(f,u),f.prototype.showIn=function(){this.start(),this.durationID=0,this.angle=-10,this.scale=0,this.duration=this.durationIn[this.durationID].d,this.updateAnim=r.Bool3.true},f.prototype.showOut=function(){this.start(),this.duration=1,this.durationID=-1,this.updateAnim=r.Bool3.false},f.prototype.start=function(){this.counter=0,this.visible=!0,this.stepScale=0,this.stepAngle=0},f.prototype.update=function(){var t,e;this.updateAnim===r.Bool3.true?(this.counter+=1,this.scale+=this.stepScale,this.angle+=this.stepAngle,this.counter===this.duration&&(this.durationID+=1,this.durationID===this.durationIn.length?(this.updateAnim=r.Bool3.none,this.emit("animInComp")):(t=this.durationIn[this.durationID],this.duration=t.d,e=this.duration-this.counter,this.stepScale=(t.sc-this.scale)/e,this.stepAngle=(t.a-this.angle)/e))):this.updateAnim===r.Bool3.false&&(this.counter+=1,this.scale+=this.stepScale,this.counter===this.duration)&&(this.durationID+=1,this.durationID===this.durationOut.length?this.updateAnim=r.Bool3.none:(t=this.durationOut[this.durationID],this.duration=t.d,e=this.duration-this.counter,this.stepScale=(t.sc-this.scale)/e))},f);function f(t,e){t=u.call(this,t,0,0,"logo")||this;function i(t){return Math.ceil(t/125*e)}return t.durationIn=new Array,t.durationIn.push({d:i(700),sc:0,a:-10}),t.durationIn.push({d:i(850),sc:.6,a:6}),t.durationIn.push({d:i(975),sc:.45,a:-3}),t.durationIn.push({d:i(1100),sc:.5,a:0}),t.durationOut=new Array,t.durationOut.push({d:i(50),sc:.6}),t.durationOut.push({d:i(175),sc:0}),t.visible=!1,t.updateAnim=r.Bool3.none,t}function g(t,e,i,s,n){t=c.call(this,t,e,i,a.Atlases.ui,"transition_romb 10000")||this;return t.rotation=h.Tools.PI025,t.start=s*n,t.duration=t.start+n,t.scaleX=0,t}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Overlays=void 0;var n=i(0),r=i(40);function s(t,e){this.scene=t;var i=r.CustomResize.MaxCanvasW,s=r.CustomResize.MaxCanvasH;this.dark=new Phaser.GameObjects.Image(t,0,0,n.Atlases.gameplay,"blackPixel 10000"),e.add(this.dark),this.dark.scale=10,this.darkBackground=new Phaser.GameObjects.Image(t,0,0,"darkOverlay"),this.darkBackground.scale=2,e.add(this.darkBackground),this.flash=new Phaser.GameObjects.Image(t,i/2,s/2,n.Atlases.gameplay,"whiteBlock 10000"),this.flash.setScale(i/100,s/100),t.add.existing(this.flash),this.reset()}s.prototype.hideDark=function(){this.isDark=!1,this.dark.visible=!1,this.darkBackground.visible=!1},s.prototype.hideFlash=function(){this.flash.visible=!1},s.prototype.reset=function(){this.hideDark(),this.hideFlash(),this.isExploding=!1},s.prototype.checkPoint=function(){!0===this.isDark&&this.goLight()},s.prototype.goDark=function(){if(!0!==this.isDark){this.isDark=!0,this.darkDelay=6,this.dark.visible=!0,this.dark.alpha=1,this.darkBackground.visible=!0,this.hideFlash();for(var t=0,e=this.scene.solarBlocks;t=this.fadeAfter){if(this.graphics.alpha-=.05,this.scaleOut&&(this.graphics.scale*=.9),this.graphics.alpha<=0)return void this.destroy(this.isUI)}else this.fadeTime+=1;var t=this.xPos,e=this.yPos;h.prototype.update.call(this),!this.alive||t===this.xPos&&e===this.yPos||(this.graphics.x=this.xPos,this.graphics.y=this.yPos,this.updateHitBox())}},o);function o(t,e,i,s,n,r,o,a){n=h.call(this,t,s,n,r,o)||this;return n.scaleOut=a,n.size=s,n.graphics=new Phaser.GameObjects.Image(t,0,0,l.Atlases.gameplay,"particle"+s+" 10000"),n.graphics.tint=i,e.add(n.graphics),n.fadeAfter=o,n.isUI=!1,n}e.ColorParticle=i},function(t,e,i){"use strict";var s,l,n=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),u=(Object.defineProperty(e,"__esModule",{value:!0}),e.MoveCurrency=void 0,i(0)),r=i(3),i=(l=Phaser.GameObjects.Image,n(o,l),o.prototype.update=function(){1=this.sizeDuration&&(this.sizeCounter=this.sizeDuration,this.sizeDir=0),this.setTargetSize(this.sizeCounter/this.sizeDuration))},u.prototype.setCurrencyPos=function(){var t=this.txt.width+this.imgCurrency.width+15,e=this.txt.width/2;this.txt.x=this.txtX-(t/2-e),this.imgCurrency.x=this.txt.x+e+this.imgCurrency.width/2+15},u.prototype.open=function(){this.status=1,this.txt.x=this.txtX,this.imgCurrency.destroy(),h.SkinsData.openSkin(this.id)},u.prototype.select=function(){this.bg.setFrame("act-box 10002"),this.txt.text=h.Localization.getText("selected"),this.txt.setColor(16777215),this.imgSkin.play("run",!0)},u.prototype.unselect=function(){this.bg.setFrame("act-box 10000"),this.txt.text=h.Localization.getText("take"),this.txt.setColor(1388651),this.imgSkin.play("run"),this.imgSkin.stop()},u.prototype.destroy=function(){r.prototype.destroy.call(this),this.bg=null,this.imgSkin.destroy(),this.imgSkin=null,this.txt=null,this.imgCurrency=null},u);function u(t,e,i,s){var n=r.call(this,t.scene,e,i)||this;return n.txtX=-20,n.sizeDir=0,n.sizeCounter=0,n.sizeDuration=6,n.id=s,n.currency=h.SkinsData.getCurrency(s),n.price=h.SkinsData.getPrice(s),n.bg=new Phaser.GameObjects.Image(n.scene,0,0,o.Atlases.ui,"act-box 10000"),n.bg.name="skinSlot",n.bg.setInteractive(),n.bg.input.cursor="pointer",n.bg.on(Phaser.Input.Events.POINTER_OVER,n.over,n),n.bg.on(Phaser.Input.Events.POINTER_OUT,n.out,n),n.add(n.bg),n.txt=new a.JDBmpdTextFit(n.scene,n.txtX,85,o.Fonts.Main,"",40,1388651),n.status=h.SkinsData.getSlotStatus(s),0===n.status?(n.bg.setFrame("act-box 10003"),n.txt.text=""+n.price,n.txt.setColor(16777215),n.imgCurrency=new Phaser.GameObjects.Image(n.scene,30,n.txt.y,o.Atlases.ui,"skins-currency-"+n.currency+" 10000"),n.add(n.imgCurrency),n.setCurrencyPos()):n.txt.text=h.Localization.getText("take"),n.add(n.txt),n.imgSkin=new a.JDSpineGameObject(n.scene,e-10,i,"player","run"),n.imgSkin.setSkin(l.Helpers.formatNumberZeroLess10(h.SkinsData.getSlotIndex(s))),t.spineContainer.add(n.imgSkin.getView()),n.imgSkin.stop(),n.setTargetSize(0),n}e.SkinSlot=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),l=(Object.defineProperty(e,"__esModule",{value:!0}),e.SkinScroll=void 0,i(24)),u=i(0),o=i(16),c=i(2),i=(n=Phaser.GameObjects.Container,r(a,n),a.prototype.createStots=function(){for(var t,e=this.skinsOnPage/2,i=u.Constants.GHW-e/2*300+150-10-10,s=u.Constants.GHH+140-270-30,n=i,r=s,o=0,a=0,h=0;hthis.notChangeWorld?this.currentWorld+=1:this.currentWorld=Math.abs(Math.round(this.x/this.offsetWorldX)),this.updatable=o.Bool3.true,this.newX=-this.currentWorld*this.offsetWorldX,this.checkWorldBorders())},a.prototype.selectSlot=function(t,e){if(void 0===e&&(e=!1),this.currSelected!==t.id){if(0===t.status){if(!1===c.SkinsData.enouthMoney(t.currency,t.price))return void this.subScene.currency.needCurrency(t.currency);this.subScene.currency.addCurrency(t.currency,-t.price),t.open()}this.lastPressedItem&&t.id!==this.lastPressedItem.id&&this.lastPressedItem.unselect(),this.currSelected=t.id,c.BalanceData.currSkin=this.currSelected,this.scene.player.setSkin(c.BalanceData.currSkin),c.SaveGame.getInstance().saveProgress(),t.select(),this.lastPressedItem=t}},Object.defineProperty(a.prototype,"currentWorld",{get:function(){return this._currentWorld},set:function(t){this._currentWorld!==t&&(this._currentWorld=t,this.setWorldDots())},enumerable:!1,configurable:!0}),a.prototype.setCurrentWorld=function(){this.currentWorld=Math.floor(this.currSelected/this.skinsOnPage),this.x=this.startWorldX-this.offsetWorldX*this.currentWorld},a.prototype.createDots=function(t){var e=Math.floor(this.maxWorld/2),i=0;this.maxWorld%2==0&&(i=this.stepDotX/2),this.startDotX=u.Constants.GHW+(i-this.stepDotX*e);var s,n=u.Constants.GH-250;this.dots=new Array(this.maxWorld);for(var r=0;rthis.endX&&(t.x=-t.displayWidth)},r.prototype.resize=function(){this.x=-a.Constants.UI_SHIFT_X,this.scale=a.Constants.UI_SCALE_FIT_X>a.Constants.UI_SCALE_FIT_Y?a.Constants.UI_SCALE_FIT_X:a.Constants.UI_SCALE_FIT_Y,this.endX=a.Constants.GW+a.Constants.UI_SHIFT_X},r.prototype.destroy=function(t){o.prototype.destroy.call(this,t),this.bg=null},r);function r(t,e){var i=o.call(this,t,0,a.Constants.GHH)||this;i.arrowAmount=5,i.texture=e,i.bg=new Phaser.GameObjects.Image(t,0,0,i.texture),i.bg.setOrigin(0,.5),i.add(i.bg);for(var s,n=0,r=0;r=this.scene.getTargetCoins()&&(this.scene.completeTargetCoins(),this.completeTarget(2)),0===this.scene.isTargetDeathComplete()&&(0===this.scene.currentDeaths||this.scene.currentDeaths",t+"\n")),e=(this.txtDes.setText(e),this.txtDes.text.indexOf(t)),e=(this.txtDes.setCharacterTint(e,t.length,!0,16366384),this.txtDes.getTextBounds().lines.lengths[0]/2+20),t=-this.txtDes.fontSize-2;"ja"===d.Localization.getLang()&&(e-=30,t-=8),this.goldCard.x=this.txtDes.x+e,this.goldCard.y=this.txtDes.y+t},f.prototype.adComplete=function(t,e){this.close(),!0===t||!1===t&&!0===e?(this.block.openHard(),this.scene.subScene.currency.addCardGold(-this.useToUnlock),this.scene.showSubSceneTransition(p.SubSceneList.Act,this.block.levelNum,this.block.isHard),!0===e&&this.scene.showNoRewardAD()):this.close()},f.prototype.close=function(){this.scene.panelManager.hideCurrent(),this.scene.resumeWorld()},f.prototype.destroy=function(){this.scene.events.off(d.Localization.EVENT_CHANGE_LANG,this.changeLang,this),n.prototype.destroy.call(this),this.txtDes=null,this.block=null,this.goldCard=null},f);function f(){return null!==n&&n.apply(this,arguments)||this}e.PanelOpenActHard=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.PanelChest=void 0,i(10)),a=i(12),h=i(0),l=i(6),u=i(7),c=i(31),d=i(2),p=i(1),f=i(13),g=i(20),i=(n=o.BasicPanel,r(y,n),y.prototype.init=function(){var i=this,t=(this.addTitle("watchADDes",!1),this.imgBox=new Phaser.GameObjects.Image(this.scene,0,50,h.Atlases.ui,"act-box 10000"),this.add(this.imgBox),this.imgAds=new Phaser.GameObjects.Image(this.scene,0,0,h.Atlases.ui,"ads-image 10000"),this.imgAds.scale=.5,this.add(this.imgAds),this.txtCurrency=new p.JDBmpdTextStroke(this.scene,0,46,h.Fonts.Main,"",70,16777215,1388651,1,g.JDBmpdTextStrokeType.text),this.add(this.txtCurrency),this.txtCurrency.visible=!1,this.imgCurrency=new Phaser.GameObjects.Image(this.scene,0,this.txtCurrency.y,h.Atlases.ui,"currency-c 10000"),this.add(this.imgCurrency),this.imgCurrency.visible=!1,this.skin=new p.JDSpineGameObject(this.scene,-20,0,"player","stand"),this.add(this.skin.getView()),this.skin.play("run",!0),this.skin.scaleX=this.skin.scaleY=6,this.skin.visible=!1,new l.ButtonScale(this.scene,-240,400));t.addImageEvents(h.Atlases.ui,"red-buttonBig 10000"),t.addTxtStroke("decline",h.Fonts.Main,70,16777215,1388651),t.txtStroke.setFitSize(380,u.JDTextFitParam.both,120),t.onUp=function(){return i.adComplete(!1,!1)},this.add(t.getView()),(t=new l.ButtonScale(this.scene,-t.x,t.y)).addImageEvents(h.Atlases.ui,"green-buttonBig 10000"),t.addTxtStroke("accept",h.Fonts.Main,70,16777215,1388651),t.txtStroke.setFitSize(380,u.JDTextFitParam.both,120),t.onUp=function(){return a.AzerionSDK.showRewardedAd("",function(t,e){return i.adComplete(t,e)})},this.add(t.getView())},y.prototype.show=function(){n.prototype.show.call(this),this.scene.pauseWorld(),this.calcReward(c.Tools.simpleRandom())},y.prototype.calcReward=function(t){if(this.skin.visible=!1,this.imgCurrency.visible=!1,this.txtCurrency.visible=!1,t<10)return this.amountReward=d.SkinsData.getRandomLockedSlotId(),this.amountReward<0?void this.calcReward(10+c.Tools.simpleRandom()):(this.typeReward="skin",this.skin.visible=!0,this.skin.setSkin(f.Helpers.formatNumberZeroLess10(d.SkinsData.getSlotIndex(this.amountReward))),this.skin.y=this.imgBox.y+1.7*this.skin.getView().height,this.imgBox.scale=1.3,this.imgBox.setFrame("act-box 10000"),void(this.imgAds.y=-270));10<=t&&t<30?(this.typeReward="coins",this.amountReward=100):30<=t&&t<50?(this.typeReward="coins",this.amountReward=50):50<=t&&(this.typeReward="coins",this.amountReward=10),this.imgCurrency.visible=!0,this.txtCurrency.visible=!0,this.txtCurrency.text="+"+this.amountReward,this.imgBox.scale=1,this.imgBox.setFrame("language-button 10000"),this.imgAds.y=-200;var t=this.txtCurrency.txtStroke.width+this.imgCurrency.width+15,e=this.txtCurrency.txtStroke.width/2;this.txtCurrency.x=-10-(t/2-e),this.imgCurrency.x=this.txtCurrency.x+e+this.imgCurrency.width/2+15},y.prototype.adComplete=function(t,e){this.close(),(!0===t||!1===t&&!0===e)&&("skin"===this.typeReward?(d.BalanceData.currSkin=d.SkinsData.getSlotIndex(this.amountReward),this.scene.player.setSkin(d.BalanceData.currSkin),d.SkinsData.setSkinStatus2(this.amountReward)):this.scene.subScene.currency.addCoins(this.amountReward),!1===t)&&!0===e&&this.scene.showNoRewardAD()},y.prototype.clikcOnBlack=function(){},y.prototype.close=function(){this.scene.panelManager.hideCurrent(),this.scene.resumeWorld()},y.prototype.destroy=function(){n.prototype.destroy.call(this),this.txtCurrency=null,this.skin=null,this.imgCurrency=null,this.imgBox=null,this.imgAds=null},y);function y(){return null!==n&&n.apply(this,arguments)||this}e.PanelChest=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.PanelRestart=void 0,i(10)),a=i(0),h=i(6),l=i(12),u=i(7),i=(n=o.BasicPanel,r(c,n),c.prototype.init=function(){var t=this,e=(this.addTitle("restartLvl",!1),this.txtTitle.scale=1.5,this.txtTitle.y=-200,new h.ButtonScale(this.scene,-240,200));e.addImageEvents(a.Atlases.ui,"red-buttonBig 10000"),e.addTxtStroke("no",a.Fonts.Main,70,16777215,1388651),e.txtStroke.setFitSize(380,u.JDTextFitParam.both,120),e.onUp=function(){return l.AzerionSDK.showInterstitialAd("click_no_death_popup",function(){return t.close()})},this.add(e.getView()),(e=new h.ButtonScale(this.scene,-e.x,e.y)).addImageEvents(a.Atlases.ui,"green-buttonBig 10000"),e.addTxtStroke("yes",a.Fonts.Main,70,16777215,1388651),e.txtStroke.setFitSize(380,u.JDTextFitParam.both,120),e.onUp=function(){return l.AzerionSDK.showInterstitialAd("click_yes_death_popup",function(){return t.restart()})},this.add(e.getView())},c.prototype.show=function(){n.prototype.show.call(this),this.scene.pauseWorld()},c.prototype.close=function(){this.scene.panelManager.hideCurrent(),this.scene.resumeWorld()},c.prototype.restart=function(){this.close(),this.scene.resetLevel()},c.prototype.resize=function(){this.scale=a.Constants.UI_ADDITIONAL_PANELS_SCALE},c.prototype.clikcOnBlack=function(){},c);function c(){return null!==n&&n.apply(this,arguments)||this}e.PanelRestart=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.PanelNoReward=void 0,i(10)),a=i(0),h=i(6),l=i(7),u=i(2),i=(n=o.BasicPanel,r(c,n),c.prototype.init=function(){var t=this;this.addTitle("noAd",!1),this.txtTitle.y=-200,this.txtTitle.setFitSize(800,l.JDTextFitParam.wordWrap),this.btnOk=new h.ButtonScale(this.scene,0,200),this.btnOk.addImageEvents(a.Atlases.ui,"red-buttonBig 10000"),this.btnOk.addTxtStroke("ok",a.Fonts.Main,70,16777215,1388651),this.btnOk.txtStroke.setFitSize(380,l.JDTextFitParam.both,120),this.btnOk.onUp=function(){return t.close()},this.add(this.btnOk.getView()),this.scene.events.on(u.Localization.EVENT_CHANGE_LANG,this.changeLang,this)},c.prototype.changeLang=function(){this.txtTitle.setFont(a.Fonts.Main),this.txtTitle.text="noAd",this.btnOk.txtStroke.setFont(a.Fonts.Main),this.btnOk.txtStroke.text="ok"},c.prototype.show=function(t){n.prototype.show.call(this),this.scene.pauseWorld(),this.resumeOnClose=t},c.prototype.close=function(){this.scene.panelManager.hideCurrent(),!0===this.resumeOnClose&&this.scene.resumeWorld()},c.prototype.resize=function(){this.scale=a.Constants.UI_ADDITIONAL_PANELS_SCALE},c.prototype.clikcOnBlack=function(){},c.prototype.destroy=function(){this.scene.events.off(u.Localization.EVENT_CHANGE_LANG,this.changeLang,this),n.prototype.destroy.call(this),this.btnOk=null},c);function c(){return null!==n&&n.apply(this,arguments)||this}e.PanelNoReward=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.PCurrency=void 0,i(0)),a=i(16),h=i(6),l=i(1),u=i(2),c=i(13),d=i(21),i=(n=Phaser.GameObjects.Container,r(p,n),p.prototype.needCurrency=function(t){var e=this;this.scene.panelManager.show(d.PanelList.WatchAD,{callback:function(t){return e.receiveCurrency(t)},data:{currency:t,amount:u.BalanceData.getCurrencyForAd(t)}})},p.prototype.receiveCurrency=function(t){this.addCurrency(t.currency,t.amount)},p.prototype.setTotal=function(){this.setCurrency(u.BalanceData.totalCoins,u.BalanceData.totalCardsBlue,u.BalanceData.totalCardsGold)},p.prototype.addCoins=function(t){u.BalanceData.totalCoins+=t,this.setCoins(u.BalanceData.totalCoins),u.SaveGame.getInstance().saveProgress()},p.prototype.setCoins=function(t){this.txtCoins.text=c.Helpers.moneyDecorator(t),this.updateGraphics()},p.prototype.addCardBlue=function(t){u.BalanceData.totalCardsBlue+=t,this.setCardsBlue(u.BalanceData.totalCardsBlue),u.SaveGame.getInstance().saveProgress()},p.prototype.setCardsBlue=function(t){this.txtBlue.text=c.Helpers.moneyDecorator(t),this.updateGraphics()},p.prototype.addCardGold=function(t){u.BalanceData.totalCardsGold+=t,this.setCardsGold(u.BalanceData.totalCardsGold),u.SaveGame.getInstance().saveProgress()},p.prototype.setCardsGold=function(t){this.txtGold.text=c.Helpers.moneyDecorator(t),this.updateGraphics()},p.prototype.addCurrency=function(t,e){t===a.Currency.coins?this.addCoins(e):t===a.Currency.blueCard?this.addCardBlue(e):t===a.Currency.goldCard&&this.addCardGold(e)},p.prototype.setCurrency=function(t,e,i){this.txtCoins.text=c.Helpers.moneyDecorator(t),this.txtBlue.text=c.Helpers.moneyDecorator(e),this.txtGold.text=c.Helpers.moneyDecorator(i),this.updateGraphics()},p.prototype.updateGraphics=function(){this.coinsIcon.x=this.txtCoins.x-this.txtCoins.width-60,this.coinsBg.displayWidth=this.coinsAd.x-this.coinsIcon.x,this.blueBg.x=this.coinsIcon.x-110,this.blueAd.x=this.blueBg.x,this.txtBlue.x=this.blueBg.x-60,this.blueIcon.x=this.txtBlue.x-this.txtBlue.width-75,this.blueBg.displayWidth=this.blueAd.x-this.blueIcon.x,this.goldBg.x=this.blueIcon.x-125,this.goldAd.x=this.goldBg.x,this.txtGold.x=this.goldBg.x-60,this.goldIcon.x=this.txtGold.x-this.txtGold.width-75,this.goldBg.displayWidth=this.goldAd.x-this.goldIcon.x,this.onCurrencyUpdate&&this.onCurrencyUpdate()},p.prototype.getPositionCoin=function(){return{x:o.Constants.GW+o.Constants.UI_SHIFT_X+this.coinsIcon.x,y:this.coinsIcon.y}},p.prototype.getPositionCardBlue=function(){return{x:o.Constants.GW+o.Constants.UI_SHIFT_X+this.blueIcon.x,y:this.blueIcon.y}},p.prototype.getPositionCardGold=function(){return{x:o.Constants.GW+o.Constants.UI_SHIFT_X+this.goldIcon.x,y:this.goldIcon.y}},p.prototype.getLeftX=function(){return o.Constants.GW+o.Constants.UI_SHIFT_X+(this.goldIcon.x-this.goldIcon.width/2)},p.prototype.resize=function(){this.scale=o.Constants.UI_ADDITIONAL_TOP_PANELS_SCALE,this.x=o.Constants.GW+o.Constants.UI_SHIFT_X,this.y=-o.Constants.UI_SHIFT_Y},p.prototype.destroy=function(){n.prototype.destroy.call(this),this.scene=null,this.coinsBg=null,this.coinsIcon=null,this.coinsAd=null,this.txtCoins=null,this.blueBg=null,this.blueIcon=null,this.blueAd=null,this.txtBlue=null,this.goldBg=null,this.goldIcon=null,this.goldAd=null,this.txtGold=null,this.onCurrencyUpdate=null},p);function p(t){var e=n.call(this,t)||this;return e.coinsBg=new Phaser.GameObjects.Image(t,-100,100,o.Atlases.ui,"currency-panel 10000"),e.coinsBg.setOrigin(1,.5),e.add(e.coinsBg),e.txtCoins=new l.JDBmpdTextFit(t,e.coinsBg.x-60,e.coinsBg.y,o.Fonts.Main,"00000",50,16777215,2),e.add(e.txtCoins),e.coinsIcon=new Phaser.GameObjects.Image(t,0,e.coinsBg.y,o.Atlases.ui,"currency-c 10000"),e.add(e.coinsIcon),e.coinsAd=new h.ButtonScaleImage(t,e.coinsBg.x,e.coinsBg.y,o.Atlases.ui,"ads-icon 10000"),e.coinsAd.onUp=function(){return e.needCurrency(a.Currency.coins)},e.add(e.coinsAd.getView()),e.blueBg=new Phaser.GameObjects.Image(t,0,e.coinsBg.y,o.Atlases.ui,"currency-panel 10000"),e.blueBg.setOrigin(1,.5),e.add(e.blueBg),e.txtBlue=new l.JDBmpdTextFit(t,0,e.blueBg.y,o.Fonts.Main,"0",50,16777215,2),e.add(e.txtBlue),e.blueIcon=new Phaser.GameObjects.Image(t,0,e.blueBg.y,o.Atlases.ui,"currency-b 10000"),e.add(e.blueIcon),e.blueAd=new h.ButtonScaleImage(t,0,e.blueBg.y,o.Atlases.ui,"ads-icon 10000"),e.blueAd.onUp=function(){return e.needCurrency(a.Currency.blueCard)},e.add(e.blueAd.getView()),e.goldBg=new Phaser.GameObjects.Image(t,0,e.coinsBg.y,o.Atlases.ui,"currency-panel 10000"),e.goldBg.setOrigin(1,.5),e.add(e.goldBg),e.txtGold=new l.JDBmpdTextFit(t,0,e.goldBg.y,o.Fonts.Main,"0",50,16777215,2),e.add(e.txtGold),e.goldIcon=new Phaser.GameObjects.Image(t,0,e.goldBg.y,o.Atlases.ui,"currency-g 10000"),e.add(e.goldIcon),e.goldAd=new h.ButtonScaleImage(t,0,e.goldBg.y,o.Atlases.ui,"ads-icon 10000"),e.goldAd.onUp=function(){return e.needCurrency(a.Currency.goldCard)},e.add(e.goldAd.getView()),e}e.PCurrency=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.PLevelChallenge=void 0,i(0)),a=i(1),i=(n=Phaser.GameObjects.Container,r(h,n),h.prototype.resize=function(){this.scale=o.Constants.UI_ADDITIONAL_TOP_PANELS_SCALE,this.x=-o.Constants.UI_SHIFT_X,this.y=-o.Constants.UI_SHIFT_Y},h.prototype.destroy=function(){n.prototype.destroy.call(this),this.txtLevel=null,this.bgBar=null,this.bgCorner=null},h);function h(t,e){t=n.call(this,t)||this;return t.bgBar=new Phaser.GameObjects.Image(t.scene,0,31,o.Atlases.ui,"top_bar 10000"),t.bgBar.setOrigin(0,.5),t.add(t.bgBar),t.bgCorner=new Phaser.GameObjects.Image(t.scene,0,30.5,o.Atlases.ui,"top_corner 10000"),t.bgCorner.setOrigin(0,.5),t.bgCorner.flipX=!0,t.add(t.bgCorner),t.txtLevel=new a.JDBmpdTextTranslated(t.scene,30,31,o.Fonts.Main,e,40),t.txtLevel.setOrigin(0,.5),t.add(t.txtLevel),t.bgBar.displayWidth=t.txtLevel.x+t.txtLevel.width+25,t.bgCorner.x=t.bgBar.x+t.bgBar.displayWidth-3,t}e.PLevelChallenge=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.PAchievement=void 0,i(0)),a=i(16),h=i(1),l=i(7),u=i(23),c=i(15),d=i(17),i=(n=Phaser.GameObjects.Container,r(p,n),p.prototype.changeLang=function(){this.txtNewAchive.setFont(o.Fonts.Main),this.txtNewAchive.text="newAchive"},p.prototype.showAchievement=function(t,e){this.achiList.push({type:t,id:e}),1===this.achiList.length&&this.checkNext()},p.prototype.hide=function(){this.visible=!1,this.show=a.Bool3.false},p.prototype.update=function(){var t;!1!==this.visible&&(this.show===a.Bool3.true?(t=this.showX-this.x,this.x+=t/10,-1=this.durationWait&&(this.show=a.Bool3.false)):this.show===a.Bool3.false&&(t=this.hideX-this.x,this.x+=t/10,t<1)&&(this.achiList.shift(),0===this.achiList.length?this.hide():this.checkNext()))},p.prototype.checkNext=function(){this.counterWait=0,this.visible=!0,this.show=a.Bool3.true,d.SoundManager.playSFX("achievementUnlocked")},p.prototype.resize=function(){this.showX=o.Constants.GW+o.Constants.UI_SHIFT_X-270*this.scaleX,this.hideX=o.Constants.GW+o.Constants.UI_SHIFT_X+320*this.scaleX,this.x=this.hideX,this.y=270-o.Constants.UI_SHIFT_Y},p);function p(t){t=n.call(this,t,o.Constants.GHW-50,0)||this;return t.durationWait=240,t.achiList=new Array,t.add(new Phaser.GameObjects.Image(t.scene,0,0,o.Atlases.ui,"language-button 10000")),t.add(new Phaser.GameObjects.Image(t.scene,-200,0,o.Atlases.ui,"medal-box 10001")),t.txtNewAchive=new h.JDBmpdTextStroke(t.scene,50,0,o.Fonts.Main,"newAchive",30,16777215,1388651),t.txtNewAchive.setFitSize(300,l.JDTextFitParam.wordWrap),t.add(t.txtNewAchive),t.hide(),t.scale=o.Constants.UI_ADDITIONAL_TOP_PANELS_SCALE,t.scene.events.on(u.Achievements.EVENT_ACHIEVEMENT_COMPLETE,t.showAchievement,t),t.scene.events.on(c.Localization.EVENT_CHANGE_LANG,t.changeLang,t),t}e.PAchievement=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.PTNT=void 0,i(0)),a=i(1),i=(n=Phaser.GameObjects.Container,r(h,n),h.prototype.setTnt=function(t){this.txtTnt.setText(Math.floor(100*t)+"%");t=this.progressBar.width*(1-t);this.progressBar.setCrop(t,0,this.progressBar.width,this.progressBar.height),this.sparkSprite.x=this.progressBar.x-this.progressBar.width+t,Math.random()<.2&&this.scene.particleManager.createColorParticleUI(this.sparkSprite.x,this.sparkSprite.y,this,5*Math.random()-2.5,5*Math.random()-2.5,16763904,4,!1,!1,20,!0)},h.prototype.destroy=function(){n.prototype.destroy.call(this),this.scene=null,this.txtTnt=null,this.sparkSprite=null,this.progressBar=null},h);function h(t){var e=n.call(this,t,o.Constants.GHW)||this,i=new Phaser.GameObjects.Image(e.scene,0,0,o.Atlases.ui,"vexTntPanel 10000"),s=(i.setOrigin(.5,0),e.add(i),new a.JDBmpdText(e.scene,0,42,o.Fonts.Main,"TNT",50));return e.add(s),e.txtTnt=new a.JDBmpdText(e.scene,75,116,o.Fonts.Main,"100%",30),e.add(e.txtTnt),(i=new Phaser.GameObjects.Image(e.scene,40,120,o.Atlases.ui,"tntBarBg 10000")).setOrigin(1,.5),e.add(i),e.progressBar=new Phaser.GameObjects.Image(e.scene,40,120,o.Atlases.ui,"tntBarProgress 10000"),e.progressBar.setOrigin(1,.5),e.add(e.progressBar),e.sparkSprite=new Phaser.GameObjects.Image(t,e.progressBar.x-e.progressBar.displayWidth,e.progressBar.y,o.Atlases.ui,"spark 10000"),e.add(e.sparkSprite),i=null,e}e.PTNT=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.PSkinTitle=void 0,i(0)),a=i(1),i=(n=Phaser.GameObjects.Container,r(h,n),h.prototype.resize=function(){this.scale=o.Constants.UI_ADDITIONAL_TOP_PANELS_SCALE,this.x=-o.Constants.UI_SHIFT_X,this.y=-o.Constants.UI_SHIFT_Y},h.prototype.destroy=function(){n.prototype.destroy.call(this),this.txtLevel=null,this.bgBar=null,this.bgCorner=null},h);function h(t){t=n.call(this,t)||this;return t.bgBar=new Phaser.GameObjects.Image(t.scene,0,31,o.Atlases.ui,"top_bar 10000"),t.bgBar.setOrigin(0,.5),t.add(t.bgBar),t.bgCorner=new Phaser.GameObjects.Image(t.scene,0,30.5,o.Atlases.ui,"top_corner 10000"),t.bgCorner.setOrigin(0,.5),t.bgCorner.flipX=!0,t.add(t.bgCorner),t.txtLevel=new a.JDBmpdTextTranslated(t.scene,30,31,o.Fonts.Main,"skins",40),t.txtLevel.setOrigin(0,.5),t.add(t.txtLevel),t.bgBar.displayWidth=t.txtLevel.x+t.txtLevel.width+20,t.bgCorner.x=t.bgBar.x+t.bgBar.displayWidth-3,t}e.PSkinTitle=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.PSkinMoney=void 0,i(0)),a=i(1),h=i(2),l=i(13),i=(n=Phaser.GameObjects.Container,r(u,n),u.prototype.updateCoins=function(){this.txtCoins.text=l.Helpers.moneyDecorator(h.BalanceData.totalCoins),this.txtCoinTower.text=l.Helpers.moneyDecorator(0),this.coin.x=-(this.txtCoins.width+60),this.bgSeparator.x=this.coin.x-40,this.txtCoinTower.x=this.bgSeparator.x-25,this.coinTower.x=this.txtCoinTower.x-(this.txtCoinTower.width+35),this.bgBar.displayWidth=500,this.bgBar.displayWidth=-(this.coinTower.x-30),this.bgCorner.x=this.bgBar.x-this.bgBar.displayWidth+2},u.prototype.getCoinPos=function(){return{x:this.x+this.coin.x,y:this.y+this.coin.y}},u.prototype.resize=function(){this.scale=o.Constants.UI_ADDITIONAL_TOP_PANELS_SCALE,this.x=o.Constants.GW+o.Constants.UI_SHIFT_X,this.y=-o.Constants.UI_SHIFT_Y},u.prototype.destroy=function(){n.prototype.destroy.call(this),this.txtCoins=null,this.bgBar=null,this.bgCorner=null,this.coin=null,this.bgSeparator=null,this.coinTower=null,this.txtCoinTower=null},u);function u(t){t=n.call(this,t)||this;return t.bgBar=new Phaser.GameObjects.Image(t.scene,0,31,o.Atlases.ui,"top_bar 10000"),t.bgBar.setOrigin(1,.5),t.add(t.bgBar),t.bgCorner=new Phaser.GameObjects.Image(t.scene,0,31,o.Atlases.ui,"top_corner 10000"),t.bgCorner.setOrigin(1,.5),t.add(t.bgCorner),t.txtCoins=new a.JDBmpdText(t.scene,-25,31,o.Fonts.Main,"0",40,16777215,2),t.add(t.txtCoins),t.coin=new Phaser.GameObjects.Image(t.scene,0,31,o.Atlases.ui,"coin 10000"),t.coin.scale=.9,t.add(t.coin),t.bgSeparator=new Phaser.GameObjects.Image(t.scene,0,31,o.Atlases.ui,"top_separator 10000"),t.add(t.bgSeparator),t.txtCoinTower=new a.JDBmpdText(t.scene,-25,31,o.Fonts.Main,"0",40,16777215,2),t.add(t.txtCoinTower),t.coinTower=new Phaser.GameObjects.Image(t.scene,0,31,o.Atlases.ui,"coinTower 10000"),t.coinTower.scale=.85,t.add(t.coinTower),t.updateCoins(),t}e.PSkinMoney=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.PHubButtons=void 0,i(0)),a=i(16),h=i(6),l=i(21),i=(n=Phaser.GameObjects.Container,r(u,n),u.prototype.addTxt=function(t,e,i){return null},u.prototype.changeLang=function(){},u.prototype.resize=function(){this.scale=o.Constants.UI_ADDITIONAL_TOP_PANELS_SCALE,this.x=-o.Constants.UI_SHIFT_X,this.y=-o.Constants.UI_SHIFT_Y},u.prototype.destroy=function(){n.prototype.destroy.call(this)},u);function u(t){var e=n.call(this,t)||this,i=new h.ButtonScaleImage(t,100,100,o.Atlases.ui,"settings-button 10000");return i.onUp=function(){return t.panelManager.show(l.PanelList.Settings)},e.add(i.getView()),(i=new h.ButtonScaleImage(t,i.x+160,i.y+0,o.Atlases.ui,"btn_actSelect 10000")).onUp=function(){return t.panelManager.show(l.PanelList.ActSelect)},e.add(i.getView()),e.addTxt("actNorm",i.x,i.y),(i=new h.ButtonScaleImage(t,i.x+160,i.y+0,o.Atlases.ui,"btnSkin 10000")).onUp=function(){return t.showSubSceneTransition(a.SubSceneList.Skins)},e.add(i.getView()),e.addTxt("skins",i.x,i.y),(i=new h.ButtonScaleImage(t,i.x+160,i.y+0,o.Atlases.ui,"btn_medals 10000")).onUp=function(){return t.showSubSceneTransition(a.SubSceneList.Medals)},e.add(i.getView()),e.addTxt("trophies",i.x,i.y),(i=new h.ButtonScaleImage(t,i.x+160,i.y+0,o.Atlases.ui,"btn_dailyTasks 10000")).onUp=function(){return t.panelManager.show(l.PanelList.DailyTasks)},e.add(i.getView()),e.addTxt("dailyTasks",i.x,i.y),(i=new h.ButtonScaleImage(e.scene,i.x+160,i.y+0,o.Atlases.ui,"btn_challenge 10000")).onUp=function(){return t.showSubSceneTransition(a.SubSceneList.Challenge)},e.add(i.getView()),e.addTxt("tower",i.x,i.y),i=null,e}e.PHubButtons=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),f=(Object.defineProperty(e,"__esModule",{value:!0}),e.ParticleManager=void 0,i(65)),o=i(0),l=i(16),a=i(1),u=i(3),g=i(2),d=i(66),i=(n=Phaser.GameObjects.Container,r(h,n),h.prototype.reset=function(){this.particles=[],this.particlesUI=[],this.particleNum=0,this.particleUINum=0,this.expolsions=[],this.coins=[]},h.prototype.moveCurrency=function(t,e,i,s,n){var r;void 0===n&&(n=10),s===l.Currency.coins?r=this.scene.subScene.currency.getPositionCoin():s===l.Currency.blueCard?r=this.scene.subScene.currency.getPositionCardBlue():s===l.Currency.goldCard&&(r=this.scene.subScene.currency.getPositionCardGold());for(var o,a=u.Tools.PI2/n,h=0;h=g.BalanceData.particleLimit)for(var l=0,u=this.particles;l=g.BalanceData.particleLimit)for(var u=0,c=this.particles;u=g.BalanceData.particleLimit)for(var c=0,d=this.particlesUI;ce&&(o.yVelocity-=.3),o.xPost&&(o.xVelocity-=.3))}},h.prototype.showExplosion=function(t,e){for(var i,s=0,n=this.expolsions;s=this.useToUnlock&&(t.openHard(),this.main.subScene.currency.addCardGold(-this.useToUnlock)),this.landActiveBlock(t,e),this.showPressDown=!0)}this.state!==d.PlayerState.Jumping&&this.state!==d.PlayerState.Scaling&&this.state!==d.PlayerState.Hanging&&this.state!==d.PlayerState.Kite&&this.state!==d.PlayerState.Falling||(l.SoundManager.playSFX("land"),!0===this.keys.isKeyPressed(p.KeyPressed.left)||!0===this.keys.isKeyPressed(p.KeyPressed.right)?this.setRun():this.setStand())},f.prototype.landActiveBlock=function(t,e){!0!==e&&!1!==this.crouching&&("dailyStage"===t.type?(this.main.playerEnterTowerBlock=!0,this.main.showSubSceneTransition(c.SubSceneList.Challenge)):"play"===t.type?this.main.showSubSceneTransition(c.SubSceneList.Hub):"skins"===t.type?this.main.showSubSceneTransition(c.SubSceneList.Skins,t.id):t.levelNum===Number(u.BalanceData.vexID)?this.main.showSubSceneTransition(c.SubSceneList.Vex,t.levelNum,t.isHard):this.main.showSubSceneTransition(c.SubSceneList.Act,t.levelNum,t.isHard))},f.prototype.landOn=function(t,e){t.landOn(e),this.currentLandBlock=null,e&&(this.currentLandBlock=t)},f.prototype.scale=function(t,e){var i;void 0===e&&(e=!0),this.state===d.PlayerState.Kite||this.state===d.PlayerState.Grapple&&a.Tools.distance(this.xPos,this.yPos,this.grapplePoint.xPos,this.grapplePoint.yPos)<50||("acid"===t.type&&(this.onAcidBlock=!0,this.breatheGroup.showHealth()),this.scaleTime>=this.maxScaleTime?(i=void 0,!1===e?(i=t.leftEdge-this.bodyInfo.width/2-this.offX_scale_hang)this.xPos&&(this.xPos=i)):(!0===this.scaling?(this.lastPool=null,t instanceof o.Elevator&&(this.yVelocity+=.5*t.yVelocity),1this.maxScaleTime&&(this.scaling=!1,this.falling=!0,this.setJump()),this.xVelocity=this.forcedXVelocity=0):(e&&this.scaleHistory!==t.rightEdge||!e&&this.scaleHistory!==t.leftEdge)&&(this.unGrapple(!1),this.scaleTime=0,this.scaling=!0,this.falling=!1,this.rPos=0,this.rPosDest=0,5this.xPos+10||u.topEdge>this.yPos||u.bottomEdgethis.fallingMax&&SAT.testPolygonPolygon(this.totalPolygon,u.topPolygon)){if("bounce"===u.type){this.land(u);continue}this.kill(d.DeathType.hardLanding)}if(0=this.fallingMax/2&&(this.yVelocity=this.fallingMax/2)):(this.xPos>u.leftEdge&&this.xPosu.rightEdge)continue;if(!0===this.hanging||this.yVelocity-u.yVelocity<=.5){this.scaling||this.hanging?(this.setJump(),this.scaling=!1,this.scaleTime=0,this.hanging=!1,this.hangTime=0,this.currentHang=null,this.yVelocity=1,this.falling=!0,this.scaleHistory=void 0,this.lastZipline=null):this.yVelocity*=-.5,"ice"===u.type?this.yPos=u.yPos+u.halfHeight+u.yVelocity+this.height+2:this.yPos=u.yPos+u.halfHeight+4*u.yVelocity+this.height+1,0!==u.yVelocity&&(this.yPos+=20,this.yVelocity=0),i=u,t=!0;continue}}if(!this.currentHang&&this.poolCoolDown<=0&&!1===this.swimming){if(this.hangTime>=this.maxHangCoolDown&&(!0===u.hangable&&!0===this.falling&&(0<=this.yVelocity||u.yVelocity<0)||!0===this.grapplingHook)){if(SAT.testPolygonPolygon(this.handsPolygon,u.lhPolygon)&&!this.checkForBlock(u.leftEdge+3,u.topEdge-5)&&!this.checkForBlock(u.leftEdge-3,u.topEdge-5)){this.hang(u),t=!0,o=(n=u).xVelocity;continue}if(SAT.testPolygonPolygon(this.handsPolygon,u.rhPolygon)&&!this.checkForBlock(u.rightEdge+3,u.topEdge-5)&&!this.checkForBlock(u.rightEdge+-3,u.topEdge-5)){this.hang(u,!1),t=!0,r=(s=u).xVelocity;continue}}}else{if(this.currentHang&&!1===this.currentHang.alive){this.unHang(),this.setRun(),this.xVelocity=0;continue}if(this.facing===d.FacingDir.Right&&this.currentHang===u){this.hang(this.currentHang),t=!0,o=(n=u).xVelocity;continue}if(this.facing===d.FacingDir.Left&&this.currentHang===u){this.hang(this.currentHang,!1),t=!0,r=(s=u).xVelocity;continue}}if((this.xPos>u.rightEdge||this.xPosthis.xVelocity&&(u.xVelocity=this.xVelocity),this.xPos=(l=u).rightEdge+this.halfWidth+this.xVelocity,l.pushingLeft=!0,l.pushed=!0,this.state!==d.PlayerState.Pushing&&this.setPush()):(this.xVelocity=this.forcedXVelocity=0,this.xPos=u.rightEdge+this.bodyInfo.width/2,t=!0,r=(s=u).xVelocity)):(!0===this.hanging&&this.facing===d.FacingDir.Right&&this.unHang(),"push"===u.type&&!1===this.falling&&!1===this.crouching&&this.facing===d.FacingDir.Right?(u.xVelocityi.leftEdge&&this.xPos=i.bottomEdge+this.halfHeight&&this.yVelocity<0&&(this.yPos=i.bottomEdge+this.height,this.yVelocity*=-.5,this.yPos+=this.yVelocity,this.updatePositions(),this.scaleHistory=void 0,this.currentZipline=null),this.xPos>i.leftEdge&&this.xPosi.topEdge&&this.yPos=i.bottomEdge-i.height*s&&-3.5-this.maxVelocity?(this.xVelocity-=this.acc,0this.maxVelocityPush&&(this.xVelocity=this.maxVelocityPush),this.facing===d.FacingDir.Left&&(this.state===d.PlayerState.Pushing&&this.setRun(),this.faceRight()),this.state!==d.PlayerState.Stand&&this.state!==d.PlayerState.Land||this.setRun()):(this.state!==d.PlayerState.Running&&this.state!==d.PlayerState.Pushing||this.setStand(),this.calcXvelocityDamp())),this.forcedXVelocity*=.98)},f.prototype.calcXvelocityDamp=function(){!0===this.falling?this.xVelocity*=.75:!0===this.onIce?this.xVelocity*=.95:0this.maxVelocity&&(this.xVelocity*=.94),this.onIce?this.xVelocity*=.993:this.xVelocity*=.982):this.calcXvelocityDamp()},f.prototype.checkCrouch=function(){if(!0!==this.disableControls){var t=this.keys.isKeyPressed(p.KeyPressed.down);if(this.state!==d.PlayerState.Kite){if(!1===this.swimming&&!1===this.falling&&!1===this.scaling&&!1===this.hanging&&!1===this.kicking)if(!0===t){if(this.currentZipline)return this.falling=!0,this.setJump(),this.ziplineCount=10,this.lastZipline=this.currentZipline,this.currentZipline=null,void l.SoundManager.stopSFXLoop("ziplineFull");if(this.currentPole)return this.setJump(),this.poleConnectCounter=10,void(this.currentPole=null);!1===this.crouching?this.xVelocity<1.6&&-1.6this.fallingMaxKite?this.yVelocity-=2*this.main.gravity:!0===t&&this.yVelocity>this.fallingMaxKiteFast&&(this.yVelocity=this.fallingMaxKiteFast)}},f.prototype.checkZipline=function(){if(0s.rightEdge||this.xPos+40s.bottomEdge||this.yPos+80-a.Tools.PI2&&t<-Math.PI)?this.faceRight():this.facing===d.FacingDir.Right&&(t<0&&t>-Math.PI||t>Math.PI&&ti*n||i<0&&this.xVelocitys*n||s<0&&this.yVelocityi*n||i<0&&this.xVelocitys*n||s<0&&this.yVelocitythis.xPos+40||e.topEdge>this.yPos+80||e.bottomEdgee.bottomEdge||(this.xVelocity*=-1,this.xPos=e.rightEdge+s):this.yPose.bottomEdge||(this.xVelocity*=-1,this.xPos=e.leftEdge-s)}}},f.prototype.kill=function(t,e){void 0===e&&(e=!1),!0!==this.god&&(t===d.DeathType.squashed||!0!==this.isShield&&!1!==this.alive?this.main.currLevelID!==u.BalanceData.challengeID?(this.breatheGroup.hide(),!0===this.main.playerDeath(e,this.xPos,this.yPos,this.height)&&(this.spawn(),this.appearText.show(this.xPos,this.yPos,h.Helpers.getDeathText(t)))):this.main.showDefeatChallengepPanel():this.shield&&this.shieldCounter<0&&(this.shieldCounter=0))},f.prototype.getRotation=function(){var t=a.Tools.toRad(5+Math.abs(this.xVelocity));this.rPosDest=this.rPosDest%a.Tools.PI2,this.rPos=this.rPos%a.Tools.PI2,Math.abs(this.rPosDest-this.rPos)<=t&&(this.rPos=this.rPosDest),Math.abs(this.rPosDest-this.rPos)>Math.PI&&(this.rPosDestthis.rPos?this.rPos+=t+(this.rPosDest-this.rPos)/6:this.rPosDesta.Tools.PI2&&(this.rPos-=a.Tools.PI2,this.rPosDest-=a.Tools.PI2),this.falling=!1,this.yVelocity=this.xVelocity=this.forcedXVelocity=0,this.xPos=this.currentCannon.xPos+50*Math.cos(this.currentCannon.rad),this.yPos=this.currentCannon.yPos+50*Math.sin(this.currentCannon.rad)):(!1===this.swimming&&!1===this.kicking&&!1===this.climb&&(this.checkKeyboard(),this.checkCrouch(),this.state!==d.PlayerState.Grapple&&(this.yVelocity+=this.main.gravity,this.yVelocity>this.fallingMax)&&(this.yVelocity=this.fallingMax+1e-4,this.state!==d.PlayerState.Falling&&(this.setFall(),this.fallingVelY=this.yVelocity),this.fallingVelY+=this.main.gravity,this.rPosDest+=a.Tools.toRad(-this.spine.scaleX*this.fallingVelY*.25*this.main.gameSpeed),(t=Math.abs(this.rPos))>a.Tools.PI05&&!0===this.canPlaySFXFall?(l.SoundManager.playSFX("fall"),this.canPlaySFXFall=!1):t>Math.PI&&this.kill(d.DeathType.fall)),this.checkRopeCollisions()),this.xPos+=(this.xVelocity+this.forcedXVelocity)*this.main.gameSpeed,this.yPos+=this.yVelocity*this.main.gameSpeed,this.currentSlope&&(this.yPos+=this.xVelocity*this.currentSlope.side*this.main.gameSpeed),this.hangTimei.halfHeight-40)return;this.rPosDest=0,this.rPos=0,this.setClimb(),this.currentRope=i,this.climb=!0,this.falling=!1,this.forcedXVelocity=0,this.yVelocity=0,this.xVelocity=0,this.facing===d.FacingDir.Right?this.climbFaceRight():this.climbFaceLeft()}}},f.prototype.climbFaceLeft=function(){this.xPos=this.currentRope.xPos+this.offX_climb_right,this.faceLeft()},f.prototype.climbFaceRight=function(){this.xPos=this.currentRope.xPos-this.offX_climb_left,this.faceRight()},f.prototype.climbJumpOut=function(t,e){this.climb=!1,this.xPos+=t,this.xVelocity=e,this.yVelocity-=4*this.main.gameSpeed,this.setJump(),this.falling=!0,this.climbCounter=0},f.prototype.updateStateClimb=function(){!0===this.keys.isKeyPressed(p.KeyPressed.up)?(("rope"!==this.spine.currAnimationName||!1===this.spine.isPlaying&&"rope"===this.spine.currAnimationName)&&this.spine.play("rope",!0),this.yPos>this.currentRope.yPos-this.currentRope.halfHeight+40&&(this.yPos-=u.BalanceData.config_RopeUpVelY*this.main.gameSpeed,this.checkSwimBlockCollisions())):!0===this.keys.isKeyPressed(p.KeyPressed.down)?("rope_down"!==this.spine.currAnimationName&&this.spine.play("rope_down"),this.yPos+=u.BalanceData.config_RopeDownVelY*this.main.gameSpeed,this.checkSwimBlockCollisions(),this.yPos>this.currentRope.yPos+this.currentRope.halfHeight+10&&(this.climb=!1,this.currentRope=null)):this.spine.stop()},f.prototype.updateStateGrapple=function(){var t=+this.scaleX,e=this.height-11,i=this.xPos-t,s=this.yPos-e;this.ropeAngle=a.Tools.angleOfPoints(i,s,this.grapplePoint.xPos,this.grapplePoint.yPos);var n,r=a.Tools.distance(i,s,this.grapplePoint.xPos,this.grapplePoint.yPos)-14;!1===this.grapplingHook?(r<=(n=this.grappleRope.displayWidth+30)&&(n=r,this.spine.play("stand"),this.setStateInfos(),this.resetHitBoxes(),this.setSpineOffX(0),this.setSpineOffY(0),this.grapplingHook=!0,this.grappleFlyTo=!0,this.falling=!0,this.xVelocity=0,this.forcedXVelocity=2*Math.cos(this.grappleRope.rotation),this.yVelocity=2*Math.sin(this.grappleRope.rotation),!0!==this.hanging&&!0!==this.scaling||(this.setDirTo(this.grapplePoint.xPos),this.unHang(),this.scaling=!1,this.scaleHistory=void 0,this.scaleTime=0)),this.grappleRope.displayWidth=n):(!0===this.grappleFlyTo?(a.Tools.vec2Length(this.forcedXVelocity,this.yVelocity)<13&&(this.forcedXVelocity*=1.12,this.yVelocity*=1.12),!0===this.grapplePoint.isB&&r<=100&&(this.ropeAngleVel=0,this.xVelocity=0,this.yVelocity=0,this.forcedXVelocity=0,this.grappleFlyTo=!1)):(r=100,n=-a.Tools.toRad(.2)*Math.cos(this.ropeAngle),!0===this.keys.isKeyPressed(p.KeyPressed.left)?(n+=.001,this.faceLeft()):!0===this.keys.isKeyPressed(p.KeyPressed.right)&&(n-=.001,this.faceRight()),this.ropeAngleVel+=n,this.ropeAngle+=this.ropeAngleVel,this.ropeAngleVel*=.987,i=this.grapplePoint.xPos-Math.cos(this.ropeAngle)*r,s=this.grapplePoint.yPos-Math.sin(this.ropeAngle)*r,this.xPos+=i-this.xPos+t,this.yPos+=s-this.yPos+e,r-=14),this.grappleRope.displayWidth=r),n=this.facing===d.FacingDir.Right?a.Tools.toDeg(-this.ropeAngle-a.Tools.PI05):a.Tools.toDeg(this.ropeAngle+a.Tools.PI05),"stand"===this.spine.currAnimationName?this.spine.getView().findBone("L_arm").rotation=n-8:this.spine.getView().findBone("L_arm").rotation=n+5,this.spine.getView().findBone("R_arm").rotation=this.spine.getView().findBone("L_arm").rotation,this.grappleRope.x=i+14*Math.cos(this.ropeAngle),this.grappleRope.y=s+14*Math.sin(this.ropeAngle),this.grappleRope.rotation=this.ropeAngle},f.prototype.checkCollideWithCannon=function(t){!0!==this.alive||this.currentCannon||a.Tools.distance(this.xPos,this.yPos,t.xPos,t.yPos)<85&&(this.addToNewLayer(this.main.layerUnderPool),l.SoundManager.playSFX("cannonEnter"),this.currentCannon=t,!1===this.swimming)&&this.setStand()},f.prototype.cannonFire=function(t,e,i,s,n,r){var o=i*n,a=s*n;!(this.currentCannon=null)===this.swimming?this.xVelocity=o:this.forcedXVelocity=o,this.yVelocity=a,this.xPos=t+i*r,this.yPos=e+s*r,this.rPosDest=0,l.SoundManager.playSFX("cannonFire");for(var h=0;h<10;h++)this.main.particleManager.createColorParticle(this.xPos,this.yPos,o*(Math.random()+.25),a*(Math.random()+.25),16759552,4);!1===this.swimming&&(this.falling=!0,this.setJump()),this.addToNewLayer(this.main.layerPlayer),this.updateHitBoxesPos()},f.prototype.checkCollideWithFinish=function(t,e){void 0===e&&(e=!1),this.state===d.PlayerState.Finish?(this.xPos+=(t.xPos-this.xPos)/20,this.yPos+=(t.yPos-this.yPos)/20,this.container.rotation+=.07*this.spine.scaleX,this.spine.scaleX*=.97,this.spine.scaleY=Math.abs(this.spine.scaleX),this.spine.scaleY<.3&&this.main.finishLevel(),this.updatePositions()):!0!==e&&!SAT.testPolygonPolygon(this.totalPolygon,t.hitBoxPolygon)||(this.alive=!1,this.spine.play("fall"),this.state=d.PlayerState.Finish,this.main.timerLive=!1,u.BalanceData.actFinishTime=Date.now()-u.BalanceData.actStartTime)},f.prototype.collideWithKey=function(t){this.heldKeys.push(t),this.keysObtained+=1},f.prototype.collideWithTorch=function(t){this.currentTorch=t},f.prototype.collideWithKite=function(t){this.currentKite=t,this.setKite(),l.SoundManager.playSFX("kite",.7,!0)},f.prototype.collideWithJumpPotion=function(){this.jumpPotion.start(),this.scaleHistory=void 0,this.scaleTime=0},f.prototype.collideWithCheckPoint=function(t){this.checkpoint.setTo(t.xPos,t.yPos),this.appearText.show(t.xPos,t.yPos-30,"checkpoint")},f.prototype.collideWithBreatheBlaster=function(){this.breatheGroup.addBreath(2.5,!0)},f);function f(t){t=n.call(this,t)||this;return t.timeScale_spawn=1.5,t.timeScale_crouch=1.5,t.timeScale_slide=1.3,t.timeScale_jumpFrontBackFlip=1.3,t.timeScale_kick=1.6,t.offX_climb_left=15,t.offX_climb_right=10,t.offX_swing=5,t.offY_swing=7,t.offX_scale_hang=1,t.maxVelocity=3.5,t.maxVelocityPush=2.5,t.acc=.5,t.fallingMax=16,t.fallingMaxKite=1.5,t.fallingMaxKiteFast=5,t.scaleHistoryTime=0,t.maxScaleTime=90,t.maxHangCoolDown=20,t.god=!1,t.alive=!1,t.deaths=0,t}e.Player=i},function(t,e,i){"use strict";var s,a,n=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.ActBlock=void 0,i(5)),h=i(0),l=i(1),u=i(4),c=i(13),i=(a=r.Block,n(o,a),o.prototype.openHard=function(){this.level.openHardAct()},o.prototype.getPrice=function(){return!0===this.level.isHardActLocked()&&!0===this.isHard?u.BalanceData.getActHardcorePrice(this.levelNum-1):0},o.prototype.changeLang=function(){this.title.setFont(h.Fonts.Main),this.title.text="actNorm",this.txtMyTime.setFont(h.Fonts.Main);var t=this.level.getTopTime(this.isHard);this.txtMyTime.setText("bestTime","\n"+c.Helpers.timeDecoratorActBlock(-1=this.timeHide?this.hide():!this.alive&&this.actTime>=this.timeShow&&this.show(),this.alive&&this.actTime>=this.timeHide*(1-h.BalanceData.config_AppearingBlockDisapper)?this.sprite.tint=30583:!this.alive&&this.actTime>=this.timeShow*(1-h.BalanceData.config_AppearingBlockApper)&&(this.sprite.alpha=.2,this.sprite.tint=16777215)},l.prototype.show=function(){this.actTime=0,this.alive=!0,this.sprite.alpha=1},l.prototype.hide=function(){this.actTime=0,this.alive=!1,this.sprite.alpha=0},l.prototype.destroy=function(){this.sprite.destroy(),this.sprite=null,n.prototype.destroy.call(this)},l.prototype.resetLevel=function(){n.prototype.resetLevel.call(this),this.actTime=0,this.alive=this.initVisible,this.sprite.alpha=this.initVisible?1:0},l);function l(t,e){var i=n.call(this,t,e)||this;return i.sprite=new Phaser.GameObjects.Image(t,0,0,a.Atlases.gameplay,"appearingBlock 10000"),e.add(i.sprite),i.sprite.visible=!1,i.type="appearingBlock",i.isIgnore=!1,i}e.AppearingBlock=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.BasicBlock=void 0,i(0)),a=i(4),i=(n=i(5).Block,r(h,n),h.prototype.spawn=function(t){this.init(t.x,t.y,t.width,t.height),this.updateGraphicPosition(),this.sprite.setFrame(a.BalanceData.getBasicBlockFrame(this.main.currLevelID)),this.sprite.setScale(this.width/100,this.height/100),this.sprite.visible=!0},h.prototype.update=function(){this.xPos===this.prevX&&this.yPos===this.prevY||this.updatePosition()},h.prototype.updateGraphicPosition=function(){this.sprite.x=this.xPos,this.sprite.y=this.yPos},h.prototype.destroy=function(){this.sprite.destroy(),this.sprite=null,n.prototype.destroy.call(this)},h);function h(t,e){e=n.call(this,t,e)||this;return e.sprite=new Phaser.GameObjects.Image(t,0,0,o.Atlases.gameplay),e.layer.add(e.sprite),e.sprite.visible=!1,e}e.BasicBlock=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.BlockedWall=void 0,i(5)),a=i(0),h=i(3),i=(n=o.Block,r(l,n),l.prototype.spawn=function(t){var e=h.Tools.toRad(t.rotation);Math.abs(e)===h.Tools.PI05?this.init(t.x,t.y,444,65):this.init(t.x,t.y,65,444),this.sprite.rotation=e,this.sprite.visible=!0,this.updateGraphicPosition()},l.prototype.updateGraphicPosition=function(){this.sprite.x=this.xPos,this.sprite.y=this.yPos},l.prototype.update=function(){this.xPos===this.prevX&&this.yPos===this.prevY||this.updatePosition()},l.prototype.destroy=function(){this.sprite.destroy(),this.sprite=null,n.prototype.destroy.call(this)},l.prototype.reset=function(){},l);function l(t,e){var i=n.call(this,t,e)||this;return i.sprite=new Phaser.GameObjects.Image(t,0,0,a.Atlases.gameplay,"blockedWall 10000"),e.add(i.sprite),i.sprite.visible=!1,i.hangable=!1,i.scalable=!1,i.type="wall",i}e.BlockedWall=i},function(t,e,i){"use strict";var s,n=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)});Object.defineProperty(e,"__esModule",{value:!0}),e.BlockSpike=e.SpikeDirection=void 0;var r,o,a=i(5),h=i(0),l=i(4),u=i(19),i=((i=r=e.SpikeDirection||(e.SpikeDirection={}))[i.up=0]="up",i[i.down=1]="down",i[i.left=2]="left",i[i.right=3]="right",o=a.Block,n(c,o),c.prototype.spawn=function(t){this.init(t.x,t.y,100,100),this.spikeMove=0,this.isSpikeUp=t.spikeUp,this.startSpikeUp=t.spikeUp,this.timeDown=t.timeDown,this.timeUp=t.timeUp,this.actTime=this.isSpikeUp?this.timeDown:this.timeUp,this.isDelay=!0,t.upEnable&&this.enableSpike(r.up),t.downEnable&&this.enableSpike(r.down),t.leftEnable&&this.enableSpike(r.left),t.rightEnable&&this.enableSpike(r.right);t=this.isSpikeUp?this.spikeBlockUp:this.spikeBlockDown;this.spikesUp&&this.spikesUp.spawn({x:this.xPos,y:this.yPos-(49.5+this.spikesUp.height/2)-t,rotation:0}),this.spikesDown&&this.spikesDown.spawn({x:this.xPos,y:this.yPos+(49.5+this.spikesDown.height/2)+t,rotation:180}),this.spikesLeft&&this.spikesLeft.spawn({x:this.xPos-(49.5+this.spikesLeft.height/2)-t,y:this.yPos,rotation:-90}),this.spikesRight&&this.spikesRight.spawn({x:this.xPos+(49.5+this.spikesRight.height/2)+t,y:this.yPos,rotation:90}),this.updateGraphicPosition(),this.sprite.setFrame(l.BalanceData.getBasicBlockFrame(this.main.currLevelID)),this.sprite.setScale(this.width/this.sprite.width,this.height/this.sprite.height),this.sprite.visible=!0},c.prototype.updateGraphicPosition=function(){this.sprite.x=this.xPos,this.sprite.y=this.yPos},c.prototype.enableSpike=function(t){var e;t===r.up?this.spikesUp||(e=new u.Spike10xHigh(this.main,this.main.layerObstacle),this.main.obstacles.push(e),this.spikesUp=e):t===r.down?this.spikesDown||(e=new u.Spike10xHigh(this.main,this.main.layerObstacle),this.main.obstacles.push(e),this.spikesDown=e):t===r.left?this.spikesLeft||(e=new u.Spike10xHigh(this.main,this.main.layerObstacle),this.main.obstacles.push(e),this.spikesLeft=e):t!==r.right||this.spikesRight||(e=new u.Spike10xHigh(this.main,this.main.layerObstacle),this.main.obstacles.push(e),this.spikesRight=e)},c.prototype.disableSpike=function(t){t===r.up?(this.destroySpike(this.spikesUp),this.spikesUp=null):t===r.down?(this.destroySpike(this.spikesDown),this.spikesDown=null):t===r.left?(this.destroySpike(this.spikesLeft),this.spikesLeft=null):t===r.right&&(this.destroySpike(this.spikesRight),this.spikesRight=null)},c.prototype.update=function(){var t,e,i,s;this.isDelay?(this.actTime-=.5*this.main.gameSpeed,this.actTime<=0&&(this.isDelay=!1)):(t=l.BalanceData.config_SpikeBlockVelocity*this.main.gameSpeed,this.spikeMove=this.spikeMove+t,s=Math.abs(this.spikeBlockDown-this.spikeBlockUp),this.spikeMove>=s&&(t=s-(this.spikeMove-t),this.spikeMove=0),this.isSpikeUp&&(t*=-1),this.spikesUp&&(e=this.spikesUp.yPos-t,this.spikesUp.movePosition(this.spikesUp.xPos,e)),this.spikesDown&&(e=this.spikesDown.yPos+t,this.spikesDown.movePosition(this.spikesDown.xPos,e)),this.spikesLeft&&(i=this.spikesLeft.xPos-t,this.spikesLeft.movePosition(i,this.spikesLeft.yPos)),this.spikesRight&&(i=this.spikesRight.xPos+t,this.spikesRight.movePosition(i,this.spikesRight.yPos)),0===this.spikeMove&&(this.isSpikeUp=!this.isSpikeUp,this.isDelay=!0,this.actTime=this.isSpikeUp?this.timeUp:this.timeDown),this.xPos===this.prevX&&this.yPos===this.prevY||this.updatePosition())},c.prototype.destroySpike=function(t){var e;t&&(e=this.main.obstacles.indexOf(t),this.main.obstacles.splice(e,1),t.destroy())},c.prototype.destroy=function(){this.spikesUp=null,this.spikesDown=null,this.spikesLeft=null,this.spikesRight=null,this.sprite.destroy(),this.sprite=null,o.prototype.destroy.call(this)},c.prototype.resetLevel=function(){this.spikeMove=0,this.isSpikeUp=this.startSpikeUp;var t=this.isSpikeUp?this.spikeBlockUp:this.spikeBlockDown;this.spikesUp&&this.spikesUp.movePosition(this.xPos,this.yPos-(49.5+this.spikesUp.halfHeight)-t),this.spikesDown&&this.spikesDown.movePosition(this.xPos,this.yPos+(49.5+this.spikesDown.halfHeight)+t),this.spikesLeft&&this.spikesLeft.movePosition(this.xPos-(49.5+this.spikesLeft.halfHeight)-t,this.yPos),this.spikesRight&&this.spikesRight.movePosition(this.xPos+(49.5+this.spikesRight.halfHeight)+t,this.yPos)},c);function c(t,e){var i=o.call(this,t,e)||this;return i.spikeBlockUp=-10,i.spikeBlockDown=-90,i.sprite=new Phaser.GameObjects.Image(t,0,0,h.Atlases.gameplay),e.add(i.sprite),i.sprite.visible=!1,i.spikesUp=null,i.spikesDown=null,i.spikesLeft=null,i.spikesRight=null,i}e.BlockSpike=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.BulletMissile=void 0,i(67)),a=i(9),h=i(3),l=i(2),u=i(13),i=(n=o.Bullet,r(c,n),c.prototype.initGraphic=function(t){n.prototype.initGraphic.call(this,"missileLauncherBullet 10000"),this.explodeBody=new SAT.Circle(new SAT.Vector(this.xPos,this.yPos),40)},c.prototype.addDeathBox=function(){this.deathBoxPolygon=u.Helpers.getPolygonOffset(0,0,26,14,-13,-7)},c.prototype.spawn=function(t,e,i,s){n.prototype.spawn.call(this,t,e,i,s),this.shootPower=s,this.rPos=i,this.lifeTime=l.BalanceData.config_MissileLifeTime,this.exploding=!1,this.deathByBlast=!1,this.sprite.visible=!0},c.prototype.explode=function(){this.sprite.visible=!1,this.exploding=!0,this.main.particleManager.showExplosion(this.xPos,this.yPos),this.explodeBody.pos.x=this.xPos,this.explodeBody.pos.y=this.yPos,this.lifeTime=0},c.prototype.update=function(){if(!1!==this.alive){var t=this.main.player;if(!0===this.exploding)this.lifeTime+=1,!1===this.deathByBlast&&!0===this.main.checkPlayerDeathByCircle(this.explodeBody,a.DeathType.laser)?this.deathByBlast=!0:16this.startX+this.moveDist&&(this.xVelocity=-this.xVelocity):this.xPosthis.startY+this.moveDist&&(this.yVelocity=-this.yVelocity),this.yPos+=this.yVelocity,this.updatePosition(),n.prototype.update.call(this))},o.prototype.reset=function(){this.yVelocity=this.startSpeed,this.xPos=this.startX,this.setStartPos()},o.prototype.setStartPos=function(){this.yPos=this.startY-this.moveDist+2*this.moveDist*(this.startPos/100),this.updatePosition(),this.counterDelay=0},o.prototype.resetLevel=function(){this.reset()},o);function o(){var t=null!==n&&n.apply(this,arguments)||this;return t.moveDist=100,t}e.BuzzsawVertical=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.BuzzsawBouncing=void 0,i(27)),i=(n=i(28).Buzzsaw,r(a,n),a.prototype.spawn=function(t){n.prototype.spawn.call(this,t),this.yVelocity=0,this.speedUp=-1},a.prototype.update=function(){!1!==this.alive&&(this.yVelocity+=this.main.gravity,this.yPos+=this.yVelocity,this.updatePosition(),this.checkBlockCollisions(),n.prototype.update.call(this))},a.prototype.checkBlockCollisions=function(){for(var t=0,e=this.main.blocks;tthis.scaleEnd||this.scalethis.scaleMax?(this.scaleStart=this.scaleMax,this.scaleEnd=this.scaleMin,this.scaleSpeed=-.01*this.scaleStart*this.main.gameSpeed):(this.scaleStart=this.scaleMin,this.scaleEnd=this.scaleMax,this.scaleSpeed=.01*this.scaleStart*this.main.gameSpeed),this.updatePosition()},o.prototype.resetLevel=function(){this.reset(),n.prototype.resetLevel.call(this)},o);function o(){return null!==n&&n.apply(this,arguments)||this}e.BuzzsawEnlarging=i},function(t,e,i){"use strict";var s,o,n=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.FallingSpike=void 0,i(11)),a=i(0),h=i(3),l=i(9),i=(o=r.Obstacle,n(u,o),u.prototype.spawn=function(t){this.xPos=t.x,this.yPos=t.y,this.startX=this.xPos,this.startY=this.yPos,this.xVelocity=0,this.yVelocity=0,this.sprite.rotation=h.Tools.toRad(t.rotation),this.sprite.visible=!1,(this.alive=!1)===this.dispenser&&(this.sprite.visible=!0,this.alive=!0),this.deathBoxPolygon.setAngle(this.sprite.rotation),this.updatePosition(),this.falling=!1,this.fallDist=0,this.speed=0},u.prototype.levelStart=function(){var t=this.sprite.rotation+h.Tools.PI05;this.radCos=Math.cos(t),this.radSin=Math.sin(t),this.hitDist=this.main.raycastToClosestBlock(this.startX,this.startY+this.radSin*(this.width/2),this.radCos,this.radSin,350),!1===this.dispenser&&(this.searchHitBox=new SAT.Box(new SAT.Vector(this.startX,this.startY),this.hitDist,this.width).toPolygon(),this.searchHitBox.setAngle(t))},u.prototype.update=function(){var t,e;!1!==this.alive&&(!0===this.falling?(this.xVelocity+=this.radCos*this.gravity,this.yVelocity+=this.radSin*this.gravity,this.speed+=this.gravity,this.xPos+=this.xVelocity,this.yPos+=this.yVelocity,this.fallDist+=this.speed,this.updatePosition(),(this.fallDist>this.hitDist||!0===this.main.checkPlayerDeathByPolygon(this.deathBoxPolygon,l.DeathType.spike))&&(this.xPos=this.startX-this.radCos*this.height,this.yPos=this.startY-this.radSin*this.height,this.reset())):(this.xPos===this.startX&&this.yPos===this.startY||(t=this.startX-this.xPos,e=this.startY-this.yPos,Math.abs(t)<1?this.xPos=this.startX:this.xPos+=t/10,Math.abs(e)<1?this.yPos=this.startY:this.yPos+=(this.startY-this.yPos)/10,this.updatePosition()),this.falling=SAT.testPolygonPolygon(this.searchHitBox,this.main.player.totalPolygon)))},u.prototype.updatePosition=function(){this.sprite.x=this.xPos,this.sprite.y=this.yPos,this.deathBoxPolygon.pos.x=this.xPos,this.deathBoxPolygon.pos.y=this.yPos},u.prototype.reset=function(){!1===this.dispenser?(this.falling=!1,this.xVelocity=0,this.yVelocity=0,this.updatePosition(),this.fallDist=0,this.speed=0):this.die()},u.prototype.dispenserFire=function(){this.falling=!0,this.alive=!0,this.xPos=this.startX+this.radCos*this.height,this.yPos=this.startY+this.radSin*this.height,this.xVelocity=0,this.yVelocity=0,this.sprite.visible=!0,this.updatePosition(),this.fallDist=0,this.speed=0},u.prototype.die=function(){this.sprite.visible=!1,this.alive=!1},u.prototype.destroy=function(){this.sprite&&this.sprite.destroy(),this.sprite=null,this.searchHitBox=null,this.deathBoxPolygon=null,o.prototype.destroy.call(this)},u.prototype.resetLevel=function(){this.xPos=this.startX,this.yPos=this.startY,this.reset()},u);function u(t,e,i){void 0===i&&(i=!1);var s=o.call(this,t,e)||this,e=(s.sprite=new Phaser.GameObjects.Image(t,0,0,a.Atlases.gameplay,"fallingSpike 10000"),e.add(s.sprite),s.sprite.visible=!1,s.dispenser=i,s.width=12,s.height=18,s.width/2),n=s.height/2,r=n;return!1===i&&(s.sprite.setOrigin(.5,0),n=0,r=s.height),s.deathBoxPolygon=new SAT.Polygon(new SAT.Vector(0,0),[new SAT.Vector(-e,-n),new SAT.Vector(e,-n),new SAT.Vector(e,r),new SAT.Vector(-e,r)]),s.gravity=.6*t.gravity,s}e.FallingSpike=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.LaserPoint=void 0,i(11)),a=i(0),h=i(3),l=i(9),i=(n=o.Obstacle,r(u,n),u.prototype.spawn=function(t,e,i,s){this.xPos=t,this.yPos=e,this.xLength=i-t,this.yLength=s-e,this.alive=!0,this.deathHitBoxPolygon=new SAT.Polygon(new SAT.Vector(this.xPos,this.yPos),[new SAT.Vector(0,0),new SAT.Vector(i-t,s-e)]),this.laserGraphic.x=this.xPos,this.laserGraphic.y=this.yPos,this.laserGraphic.displayWidth=h.Tools.distance(t,e,i,s),this.laserGraphic.rotation=h.Tools.angleOfPoints(t,e,i,s),this.point1.x=t,this.point1.y=e,this.point2.x=i,this.point2.y=s},u.prototype.update=function(){var t,e;Math.random()<.05&&(e=Math.random(),t=this.xPos+this.xLength*e,e=this.yPos+this.yLength*e,this.main.particleManager.createColorParticle(t,e,10*Math.random()-5,-5*Math.random(),16711680,4,!1,!1,10,!0)),this.main.checkPlayerDeathByPolygon(this.deathHitBoxPolygon,l.DeathType.laser)},u.prototype.destroy=function(){this.laserGraphic.destroy(),this.laserGraphic=null,this.point1.destroy(),this.point1=null,this.point2.destroy(),this.point2=null,n.prototype.destroy.call(this)},u);function u(t,e){var i=n.call(this,t,e)||this;return i.laserGraphic=new Phaser.GameObjects.Image(t,0,0,a.Atlases.gameplay,"whiteLine 10000"),i.laserGraphic.setOrigin(0,.5),i.laserGraphic.tint=16724787,e.add(i.laserGraphic),i.point1=new Phaser.GameObjects.Image(t,0,0,a.Atlases.gameplay,"laserPoint 10000"),e.add(i.point1),i.point2=new Phaser.GameObjects.Image(t,0,0,a.Atlases.gameplay,"laserPoint 10000"),e.add(i.point2),i}e.LaserPoint=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.Quadrant=void 0,i(11)),a=i(0),h=i(3),l=i(9),i=(n=o.Obstacle,r(u,n),u.prototype.spawn=function(t){this.xPos=t.x,this.yPos=t.y,this.startX=this.xPos,this.startY=this.yPos,this.startRad=h.Tools.toRad(t.rotation),this.sprite.visible=!0;var t=t.size/this.sprite.width,e=(this.sprite.setScale(t,t),this.alive=!0,new SAT.Box(new SAT.Vector(0,0),10*t,10*t).toPolygon());e.setOffset(new SAT.Vector(75*t,0)),this.deathHitBoxPolygons.push(e),(e=new SAT.Box(new SAT.Vector(0,0),10*t,10*t).toPolygon()).setOffset(new SAT.Vector(0,75*t)),this.deathHitBoxPolygons.push(e),(e=new SAT.Box(new SAT.Vector(0,0),10*t,10*t).toPolygon()).setOffset(new SAT.Vector(-75*t,0)),this.deathHitBoxPolygons.push(e),(e=new SAT.Box(new SAT.Vector(0,0),10*t,10*t).toPolygon()).setOffset(new SAT.Vector(0,-75*t)),this.deathHitBoxPolygons.push(e),this.updatePosition()},u.prototype.update=function(){this.sprite.rotation+=this.rotSpeed,this.updatePosition(),this.main.checkPlayerDeathByPolygons(this.deathHitBoxPolygons,l.DeathType.quadrant)},u.prototype.updatePosition=function(){this.sprite.x=this.xPos,this.sprite.y=this.yPos;for(var t=0,e=this.deathHitBoxPolygons;t=c.CHARGE_TIME&&(this.fireSpikes(),this.charge=0,this.rad=0),this.chargethis.fireTimer)&&(this.cooldown=0,t=this.shurikanPool[this.spawned],e=1.3*Math.cos(this.sprite.rotation),i=1.3*Math.sin(this.sprite.rotation),s=0,this.sprite.rotation===l.Tools.PI05||this.sprite.rotation===-l.Tools.PI05?s=1:0!==this.sprite.rotation&&this.sprite.rotation!==-Math.PI&&this.sprite.rotation!==Math.PI&&(s=2),t.spawn(this.xPos,this.yPos,e/2,i/2,s),this.spawned+=1,3===this.spawned&&(this.cooldown=-120))},u.prototype.resetLevel=function(){this.spawned=0,this.cooldown=0},u.prototype.destroy=function(){this.sprite.destroy(),this.sprite=null,this.shurikanPool=null,r.prototype.destroy.call(this)},u.prototype.destroySelf=function(){for(;0this.sparkBlock.rightEdge&&(this.xPos=this.sparkBlock.rightEdge,this.direction="down")):"down"===this.direction?(this.yPos+=2.5*this.main.gameSpeed,this.yPos>this.sparkBlock.bottomEdge&&(this.yPos=this.sparkBlock.bottomEdge,this.direction="left")):"left"===this.direction?(this.xPos-=2.5*this.main.gameSpeed,this.xPosMath.PI||this.maxR>Math.PI)&&(t=l.Tools.PI2+t),this.rPos=this.getFollowRotation(this.rPos,t,u.BalanceData.config_SurveillanceCameraFollowSpeed),this.rPosthis.maxR&&(this.rPos=this.maxR),this.updatePosition())}else if(!0===SAT.testPolygonPolygon(this.scanBoxPolygonSmall,this.main.player.totalPolygon))if(!1===this.main.raycastToPlayerTwoLines(this.platforms,this.xPos,this.yPos))this.targetlost();else{this.isHeroFound=!0,this.scanGraphic.setFillStyle(16711680,.3);for(var e=0,i=this.lasers;ethis.maxR&&(this.scanSpeed=-this.startSpeed),this.updatePosition()),!0===this.isHeroFound){this.scanGraphic.setFillStyle(65280,.3),this.isHeroFound=!1;for(var t=0,e=this.lasers;t=this.timeShow)&&(t=this.counter-this.timeShow,this.sprite.alpha=this.baseAlpha*(.5+.5*Math.cos(t/5)),t>=this.timeHide&&(this.counter=0,this.enable=!this.enable,this.setEnableSprite()))},u.prototype.reset=function(){this.enable=this.startEnable,this.counter=0,this.setEnableSprite(),this.updatePosition()},u.prototype.resetLevel=function(){this.reset(),n.prototype.resetLevel.call(this)},u.prototype.setEnableSprite=function(){this.sprite.alpha=this.baseAlpha,!0===this.enable?(this.sprite.tint=16711680,this.trafficLight&&this.trafficLight.setRed()):(this.sprite.tint=65280,this.trafficLight&&this.trafficLight.setGreen())},u.prototype.updatePosition=function(){this.sprite.x=this.xPos,this.sprite.y=this.yPos,this.deathBoxPolygon.pos.x=this.xPos,this.deathBoxPolygon.pos.y=this.yPos},u.prototype.destroy=function(){n.prototype.destroy.call(this),this.sprite.destroy(),this.sprite=null,this.deathBoxPolygon=null,this.trafficLight=null},u);function u(t,e){var i=n.call(this,t,e)||this;return i.baseAlpha=.5,i.sprite=new Phaser.GameObjects.Image(t,0,0,a.Atlases.gameplay,"whiteBlock 10000"),e.add(i.sprite),i.sprite.visible=!1,i.type="greenRedZone",i}e.GreenRedZone=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.CircularCannon=void 0,i(0)),a=i(3),i=(n=i(8).Item,r(h,n),h.prototype.spawn=function(t){this.xPos=t.x,this.yPos=t.y,this.container.x=this.xPos,this.container.y=this.yPos,this.alive=!0,this.rad=0,this.cannonSpeed=a.Tools.toRad(2),this.firing=!1,this.power=13},h.prototype.update=function(){var t=this.main.player;t.checkCollideWithCannon(this),!0===this.firing?(this.tubeSprite.scaleX-=.075*(this.tubeSprite.scaleX-.75),this.tubeSprite.scaleY-=.075*(this.tubeSprite.scaleY-1.35),this.tubeSprite.scaleX<.9&&(this.main.player.cannonFire(this.xPos,this.yPos,Math.cos(this.rad),Math.sin(this.rad),this.power,80),this.firing=!1)):(this.tubeSprite.scaleX-=.15*(this.tubeSprite.scaleX-1),this.tubeSprite.scaleY=this.tubeSprite.scaleX,t.currentCannon!==this?this.rad=Math.atan2(t.yPos-this.yPos,t.xPos-this.xPos):this.rad=(this.rad+this.cannonSpeed)%a.Tools.PI2,this.tubeSprite.rotation=this.rad)},h.prototype.reset=function(){n.prototype.reset.call(this),this.firing=!1},h.prototype.resetLevel=function(){this.reset()},h.prototype.destroy=function(){this.sprite.destroy(),this.sprite=null,this.tubeSprite.destroy(),this.tubeSprite=null,this.container.destroy(),this.container=null,n.prototype.destroy.call(this)},h);function h(t,e){var i=n.call(this,t)||this;return i.container=new Phaser.GameObjects.Container(t),e.add(i.container),i.sprite=new Phaser.GameObjects.Image(t,0,0,o.Atlases.gameplay,"cannonBase 10000"),i.container.add(i.sprite),i.tubeSprite=new Phaser.GameObjects.Image(t,0,0,o.Atlases.gameplay,"cannonTube 10000"),i.container.add(i.tubeSprite),i.tubeSprite.setOrigin(3/37,.5),i}e.CircularCannon=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.LightSwitch=void 0,i(0)),i=(n=i(8).Item,r(a,n),a.prototype.spawn=function(t){this.xPos=t.x,this.yPos=t.y,this.sprite.x=this.xPos,this.sprite.y=this.yPos,this.hitBoxPolygon.pos.x=this.xPos,this.hitBoxPolygon.pos.y=this.yPos,this.alive=!0},a.prototype.update=function(){!1===this.main.effectsOverlay.isDark&&!0===SAT.testPolygonPolygon(this.main.player.bodyPolygon,this.hitBoxPolygon)&&this.main.effectsOverlay.goDark()},a.prototype.destroy=function(){this.sprite.destroy(),this.sprite=null,n.prototype.destroy.call(this)},a);function a(t,e){var i=n.call(this,t)||this;return i.sprite=new Phaser.GameObjects.Image(t,0,0,o.Atlases.gameplay,"lightSwitch 10000"),e.add(i.sprite),i.hitBoxPolygon=new SAT.Box(new SAT.Vector(0,0),20,20).toPolygon(),i.hitBoxPolygon.setOffset(new SAT.Vector(-10,-10)),i}e.LightSwitch=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),i=(Object.defineProperty(e,"__esModule",{value:!0}),e.TimedKey=void 0,n=i(49).Key,r(o,n),o.prototype.spawn=function(t){n.prototype.spawn.call(this,t),this.timer=0},o.prototype.init=function(t){n.prototype.init.call(this,t,"timedKey 10000",16711680)},o.prototype.collideWithHero=function(){n.prototype.collideWithHero.call(this),this.timer=300},o.prototype.update=function(){!0===this.following&&!1===this.used&&0this.yPos-5&&(t=-2,i.yPos=this.yPos-5,i.falling=!0,i.updatePositions()),this.inc<2.5?this.inc+=.25:this.inc=2.5,i.applyForce(0,t*this.main.gameSpeed)):(this.inc-=.25,this.inc<0&&(this.inc=0));for(var s=0,n=this.main.blocks;sthis.particleSpawnRate&&(this.main.particleManager.createColorParticle(this.xPos-80+160*Math.random(),this.yPos-80+160*Math.random(),0,0,4649252,4,!1),this.particleTimer=0),this.main.particleManager.magnetTo(this.xPos,this.yPos,250,50),this.main.player.checkCollideWithFinish(this)},c.prototype.destroy=function(){this.sprite.destroy(),this.sprite=null,this.hitBoxPolygon=null,n.prototype.destroy.call(this)},c);function c(t,e){var i=n.call(this,t)||this;return i.particleSpawnRate=3,i.sprite=new a.JDImageAnim(t,0,0,o.Atlases.gameplay,"finish "),i.sprite.scale=1.18,i.sprite.playFrames(0,59,-1,.3),e.add(i.sprite),!0===u.BalanceData.blend&&(i.sprite.setPipeline(h.PipelineManager.getPipeline(l.PipelineList.Blur)),h.PLBlur.setBlur(i.sprite,4,4)),i.hitBoxPolygon=new SAT.Box(new SAT.Vector(0,0),60,60).toPolygon(),i.hitBoxPolygon.setOffset(new SAT.Vector(-30,-30)),i}e.FinishPortal=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.FadeText=void 0,i(0)),a=i(1),h=i(7),l=i(15),i=(n=i(50).BasicFade,r(u,n),u.prototype.spawn=function(t){n.prototype.spawn.call(this,t),this.sprite.setColor(Number("0x"+t.color)),this.text="tf"+this.id,!0!==o.Constants.IS_MOBILE||13!==this.id&&44!==this.id&&47!==this.id||(this.text+="Mob"),this.changeLang(),this.sprite.setFitSize(t.width,h.JDTextFitParam.both,t.height)},u.prototype.changeLang=function(){this.sprite.setFont(o.Fonts.TutDeath),this.sprite.setText(l.Localization.getText(this.text))},u.prototype.destroy=function(){n.prototype.destroy.call(this),this.sprite=null},u);function u(t,e){var i=n.call(this,t)||this;return i.sprite=new a.JDBmpdTextFit(t,0,0,o.Fonts.TutDeath,"",20),e.add(i.sprite),i.sprite.visible=!1,i}e.FadeText=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.FadeArrow=void 0,i(50)),a=i(0),i=(n=o.BasicFade,r(h,n),h.prototype.spawn=function(t){this.startScale=t.size/100,n.prototype.spawn.call(this,t),this.sprite.setFrame("gamearrow"+this.id+" 10000")},h);function h(t,e){var i=n.call(this,t)||this;return i.sprite=new Phaser.GameObjects.Image(t,0,0,a.Atlases.gameplay),e.add(i.sprite),i.sprite.visible=!1,i}e.FadeArrow=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.JumpPotion=void 0,i(0)),i=(n=i(8).Item,r(a,n),a.prototype.spawn=function(t){this.xPos=t.x,this.yPos=t.y,this.sprite.x=this.xPos,this.sprite.y=this.yPos,this.sprite.visible=!0,this.hitBoxPolygon.pos.x=this.xPos,this.hitBoxPolygon.pos.y=this.yPos,this.alive=!0},a.prototype.update=function(){!0===this.alive?!0===SAT.testPolygonPolygon(this.main.player.bodyPolygon,this.hitBoxPolygon)&&(this.alive=!1,this.sprite.visible=!1,this.counter=0,this.main.player.collideWithJumpPotion()):!1===this.sprite.visible&&(this.counter+=1,180<=this.counter)&&this.resetLevel()},a.prototype.resetLevel=function(){this.alive=!0,this.sprite.visible=!0},a.prototype.destroy=function(){this.sprite.destroy(),this.sprite=null,this.hitBoxPolygon=null,n.prototype.destroy.call(this)},a);function a(t,e){var i=n.call(this,t)||this;return i.sprite=new Phaser.GameObjects.Image(t,0,0,o.Atlases.gameplay,"jumpPotion 10000"),e.add(i.sprite),i.sprite.visible=!1,i.hitBoxPolygon=new SAT.Box(new SAT.Vector(0,0),24,30).toPolygon(),i.hitBoxPolygon.setOffset(new SAT.Vector(-12,-15)),i}e.JumpPotion=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.LeverPulse=void 0,i(0)),a=i(9),h=i(27),i=(n=i(8).Item,r(l,n),l.prototype.spawn=function(t){this.xPos=t.x,this.yPos=t.y,this.currID=t.currID,this.startX=this.xPos,this.startY=this.yPos,this.updatePositions(),this.hitBoxPolygon.pos.x=this.xPos,this.hitBoxPolygon.pos.y=this.yPos,this.alive=!0,this.isContacted=!1,this.isActive=!1},l.prototype.levelStart=function(){this.pulseBlocks=[];for(var t=0,e=this.main.blocks;t",""+l.BalanceData.getActTrophies(this.currID))},u.prototype.update=function(){!1!==this.alive&&!0!==o.Constants.IS_EDITOR?(this.rotateImg.rotation+=.02,!0===this.picked?(this.rotateImg.scale-=.05,this.sprite.scale=this.rotateImg.scaleX,this.rotateImg.y=this.sprite.y-this.sprite.displayHeight/2,this.sprite.scaleX<=0&&(this.alive=!1,this.sprite.visible=!1,this.rotateImg.visible=!1)):!0===SAT.testPolygonPolygon(this.main.player.bodyPolygon,this.hitBoxPolygon)&&(this.picked=!0,l.SaveGame.getInstance().saveLvlTrophies(this.currID))):this.txt&&(this.txt.visible=SAT.testPolygonPolygon(this.main.player.bodyPolygon,this.hitBoxPolygon))},u.prototype.destroy=function(){this.rotateImg.destroy(),this.rotateImg=null,this.sprite.destroy(),this.sprite=null,this.hitBoxPolygon=null,this.txt&&this.txt.destroy(),this.txt=null,n.prototype.destroy.call(this)},u);function u(t,e){var i=n.call(this,t)||this;return i.rotateImg=new Phaser.GameObjects.Image(t,0,0,o.Atlases.gameplay,"throhyRotation 10000"),i.rotateImg.visible=!1,e.add(i.rotateImg),i.sprite=new Phaser.GameObjects.Image(t,0,0,o.Atlases.gameplay,"trophy0 10000"),i.sprite.setOrigin(.5,1),e.add(i.sprite),i.hitBoxPolygon=new SAT.Box(new SAT.Vector(0,0),60,60).toPolygon(),i.hitBoxPolygon.setOffset(new SAT.Vector(-30,-30)),i}e.Trophy=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.KeycardBlue=void 0,i(0)),a=i(2),i=(n=i(8).Item,r(h,n),h.prototype.spawn=function(t){this.xPos=t.x,this.yPos=t.y,this.sprite.x=this.xPos,this.sprite.y=this.yPos,this.hitBoxPolygon.pos.x=this.xPos,this.hitBoxPolygon.pos.y=this.yPos,this.alive=!0},h.prototype.update=function(){if(!1!==this.alive&&!0===SAT.testPolygonPolygon(this.main.player.bodyPolygon,this.hitBoxPolygon)){this.collect();for(var t=0;t<10;t++)this.main.particleManager.createColorParticle(this.xPos,this.yPos,10*Math.random()-5,-10*Math.random(),3382764)}},h.prototype.collect=function(){this.main.collectBlueCard(),a.SoundManager.playSFX("starPickup"),this.die()},h.prototype.die=function(){this.alive=!1,this.sprite.visible=!1},h.prototype.resetLevel=function(){this.alive=!0,this.sprite.visible=!0},h.prototype.destroy=function(){this.sprite.destroy(),this.sprite=null,this.hitBoxPolygon=null,n.prototype.destroy.call(this)},h);function h(t,e){var i=n.call(this,t)||this;return i.sprite=new Phaser.GameObjects.Image(t,0,0,o.Atlases.gameplay,"keycardBlue 10000"),e.add(i.sprite),i.hitBoxPolygon=new SAT.Box(new SAT.Vector(0,0),30,60).toPolygon(),i.hitBoxPolygon.setOffset(new SAT.Vector(-15,-30)),i}e.KeycardBlue=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.ActChallenge=void 0,i(0)),a=i(16),i=(n=i(8).Item,r(h,n),h.prototype.spawn=function(t){this.alive=!0,this.xPos=t.x,this.yPos=t.y,this.sprite.x=this.xPos,this.sprite.y=this.yPos,this.hitBoxPolygon.pos.x=this.xPos,this.hitBoxPolygon.pos.y=this.yPos},h.prototype.update=function(){!0===this.alive&&!0===SAT.testPolygonPolygon(this.main.player.totalPolygon,this.hitBoxPolygon)&&(this.alive=!1,this.main.showSubSceneTransition(a.SubSceneList.Challenge))},h.prototype.destroy=function(){this.sprite.destroy(),this.sprite=null,n.prototype.destroy.call(this)},h);function h(t,e){var i=n.call(this,t)||this;return i.sprite=new Phaser.GameObjects.Image(t,0,1,o.Atlases.gameplay,"infinityBlock 10000"),e.add(i.sprite),i.hitBoxPolygon=new SAT.Box(new SAT.Vector(0,0),40,60).toPolygon(),i.hitBoxPolygon.setOffset(new SAT.Vector(-20,-30)),i}e.ActChallenge=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.Chest=void 0,i(0)),a=i(3),i=(n=i(8).Item,r(h,n),h.prototype.spawn=function(t){this.xPos=t.x,this.yPos=t.y,!0===this.main.checkChest(this)?(this.alive=!1,this.sprite.visible=!1):(this.sprite.visible=!0,this.sprite.x=this.xPos,this.sprite.y=this.yPos,this.alive=!0)},h.prototype.update=function(){!0===this.alive&&a.Tools.distance(this.xPos,this.yPos,this.main.player.xPos,this.main.player.yPos-this.main.player.halfHeight)<=40&&(this.alive=!1,this.sprite.visible=!1,this.main.openChest(this))},h.prototype.reset=function(){!0===o.Constants.IS_EDITOR&&(this.sprite.visible=!0,this.sprite.x=this.xPos,this.sprite.y=this.yPos,this.alive=!0)},h.prototype.resetLevel=function(){this.reset()},h.prototype.destroy=function(){this.sprite.destroy(),this.sprite=null,n.prototype.destroy.call(this)},h);function h(t,e){var i=n.call(this,t)||this;return i.sprite=new Phaser.GameObjects.Image(t,0,0,o.Atlases.gameplay,"chest 10000"),e.add(i.sprite),i.sprite.visible=!1,i}e.Chest=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.TrafficLight=void 0,i(0)),i=(n=i(8).Item,r(a,n),a.prototype.spawn=function(t){this.xPos=t.x,this.yPos=t.y,this.currID=t.currID,this.sprite.visible=!0,this.sprite.x=this.xPos,this.sprite.y=this.yPos,this.alive=!0},a.prototype.setRed=function(){this.sprite.setFrame("trafficLight 10001")},a.prototype.setGreen=function(){this.sprite.setFrame("trafficLight 10000")},a.prototype.update=function(){},a.prototype.reset=function(){},a.prototype.resetLevel=function(){this.reset()},a.prototype.destroy=function(){this.sprite.destroy(),this.sprite=null,n.prototype.destroy.call(this)},a);function a(t,e){var i=n.call(this,t)||this;return i.sprite=new Phaser.GameObjects.Image(t,0,0,o.Atlases.gameplay,"trafficLight 10000"),e.add(i.sprite),i}e.TrafficLight=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.BounceBlock=void 0,i(0)),a=i(1),h=i(4),l=i(17),i=(n=i(5).Block,r(u,n),u.prototype.spawn=function(t){this.init(t.x,t.y,t.width,t.height),t.power||(t.power=100),this.power=t.power/100,this.offScale=0,this.startScaleX=this.width/100,this.startScaleY=this.height/100,this.updateGraphicPosition(),this.container.setScale(this.startScaleX,this.startScaleY),!0===h.BalanceData.blend&&this.arrowAnimation.playFrames(0,23,-1,.5*this.main.gameSpeed),this.bouncing=!1},u.prototype.updateGraphicPosition=function(){this.container.x=this.xPos,this.container.y=this.yPos},u.prototype.update=function(){this.arrowAnimation.update(),this.landed?this.specificLand():1===this.container.scaleX&&1===this.container.scaleY||(this.container.scaleY-=(this.container.scaleY-this.startScaleY)*(.075*this.main.gameSpeed),this.container.scaleX-=(this.container.scaleX-this.startScaleX)*(.075*this.main.gameSpeed),this.offScale=1-this.container.scaleY/this.startScaleY),this.container.y=this.yPos+this.halfHeight*this.offScale},u.prototype.specificLand=function(){this.container.scaleX+=.02*this.main.gameSpeed,this.container.scaleY-=.02*this.main.gameSpeed,this.offScale=1-this.container.scaleY/this.startScaleY;var t=this.main.player;!1===this.bouncing?(this.lockX=t.xPos,t.setCrouch(),t.disableControls=!0,t.disableCollision=!0,this.bouncing=!0):(t.yVelocity=0,t.xPos=this.lockX,t.yPos=this.yPos-this.halfHeight,t.setSpineOffY(this.height*this.offScale),t.updatePositions()),this.container.scaleY<.25&&(t.outOfBounceBlock(-.26*this.height*this.power),this.bouncing=!1,l.SoundManager.playSFX("bounce1"))},u.prototype.destroy=function(){this.sprite.destroy(),this.sprite=null,this.arrowAnimation.destroy(),this.arrowAnimation=null,this.container.destroy(),this.container=null,n.prototype.destroy.call(this)},u);function u(t,e){var i=n.call(this,t,e)||this;return i.container=new Phaser.GameObjects.Container(t),e.add(i.container),i.sprite=new Phaser.GameObjects.Image(t,0,0,o.Atlases.gameplay,"bounceBlock 10000"),i.container.add(i.sprite),i.arrowAnimation=new a.JDImageAnim(t,0,0,o.Atlases.gameplay,"bounceBlockArrow "),i.container.add(i.arrowAnimation),i.type="bounce",i}e.BounceBlock=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.Elevator=void 0,i(5)),a=i(0),h=i(2),i=(n=o.Block,r(l,n),l.prototype.spawn=function(t,e,i){this.init(t,e,100,50),this.activate(t,e,i)},l.prototype.updateGraphicPosition=function(){this.sprite.x=this.xPos,this.sprite.y=this.yPos},l.prototype.update=function(){!1!==this.alive&&(this.yPos+=this.yVelocity,this.updatePosition(),this.yVelocity<0&&this.yPosthis.eliminatorY)&&(this.sprite.visible=!1,this.alive=!1)},l.prototype.activate=function(t,e,i){e=this.xPos&&i.xPos-i.width/2<=this.xPos){if(i.yPos>this.yPos)return this.cable.y=this.yPos,this.cable.setCrop(0,0,6,i.yPos-this.yPos),void(this.eliminatorY=i.yPos);if(i.yPosthis.startX+this.moveDist&&(this.xVelocity=-this.xVelocity):this.xPosthis.startY+this.maxMoveDist&&(this.yVelocity=-this.yVelocity,this.landed&&(this.main.player.yPos+=2*this.yVelocity),this.main.player.updatePositions()),this.yPos+=this.yVelocity,n.prototype.update.call(this)},l.prototype.reset=function(){n.prototype.reset.call(this),this.yVelocity=1,this.yPos=this.startY,this.updatePosition()},l.prototype.destroy=function(){this.arrowAnimation.destroy(),this.arrowAnimation=null,n.prototype.destroy.call(this)},l);function l(){var t=null!==n&&n.apply(this,arguments)||this;return t.maxMoveDist=100,t}e.InvisBlockDown=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.InvisBlockUp=void 0,i(0)),a=i(1),h=i(4),i=(n=i(51).InvisBlock,r(l,n),l.prototype.initGraphics=function(){n.prototype.initGraphics.call(this),this.arrowAnimation=new a.JDImageAnim(this.main,0,0,o.Atlases.gameplay,"invisBlockUpArrow "),this.container.add(this.arrowAnimation)},l.prototype.spawn=function(t){n.prototype.spawn.call(this,t),!0===h.BalanceData.blend&&this.arrowAnimation.playFrames(0,23,-1,.5),this.yVelocity=-1},l.prototype.update=function(){this.arrowAnimation.update(),this.yVelocity<0?this.yPosthis.startY+this.maxMoveDist&&(this.yVelocity=-this.yVelocity,this.landed&&(this.main.player.yPos+=2*this.yVelocity),this.main.player.updatePositions()),this.yPos+=this.yVelocity,n.prototype.update.call(this)},l.prototype.reset=function(){n.prototype.reset.call(this),this.yVelocity=-1,this.yPos=this.startY,this.updatePosition()},l.prototype.destroy=function(){this.arrowAnimation.destroy(),this.arrowAnimation=null,n.prototype.destroy.call(this)},l);function l(){var t=null!==n&&n.apply(this,arguments)||this;return t.maxMoveDist=100,t}e.InvisBlockUp=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.LockBlock=void 0,i(5)),a=i(0),i=(n=o.Block,r(h,n),h.prototype.spawn=function(t){this.init(t.x,t.y,t.width,t.height),this.updateGraphicPosition(),this.sprite.setScale(this.width/100,this.height/100)},h.prototype.unlock=function(){this.unlocked=!0,this.alive=!1,this.sprite.visible=!1},h.prototype.update=function(){},h.prototype.updateGraphicPosition=function(){this.sprite.x=this.xPos,this.sprite.y=this.yPos},h.prototype.reset=function(){},h.prototype.resetLevel=function(){this.alive=!0,this.unlocked=!1,this.sprite.visible=!0},h.prototype.destroy=function(){this.sprite.destroy(),this.sprite=null,n.prototype.destroy.call(this)},h);function h(t,e){var i=n.call(this,t,e)||this;return i.unlocked=!1,i.sprite=new Phaser.GameObjects.Image(t,0,0,a.Atlases.gameplay,"lockBlock 10000"),e.add(i.sprite),i.type="lock",i}e.LockBlock=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.Slope=void 0,i(14)),a=i(0),h=i(4),i=(n=o.Entity,r(l,n),l.prototype.destroySelf=function(){this.main.removeBlockFrom(this.main.slopes,this),n.prototype.destroySelf.call(this)},l.prototype.spawn=function(t){this.xPos=t.x,this.yPos=t.y,this.width=t.size,this.height=t.size,this.sprite.x=this.xPos,this.sprite.y=this.yPos,this.sprite.setFrame(h.BalanceData.getSlopeFrame(this.main.currLevelID)),this.sprite.scaleY=this.width/100,this.sprite.scaleX=this.sprite.scaleY*-this.side,this.alive=!0;var t=this.width/2,e=this.height/2;this.topEdge=this.yPos-e,this.bottomEdge=this.yPos+e,this.leftEdge=this.xPos-t,this.rightEdge=this.xPos+t,this.wallPoly=new SAT.Box(new SAT.Vector(this.xPos,this.yPos),10,this.height-20).toPolygon(),1===this.side?this.wallPoly.setOffset(new SAT.Vector(-t,20-e)):this.wallPoly.setOffset(new SAT.Vector(t-10,20-e)),this.bottomPoly=new SAT.Box(new SAT.Vector(this.xPos,this.yPos),this.width,10).toPolygon(),this.bottomPoly.setOffset(new SAT.Vector(-t,e-10)),this.clearDebugGraphics(),this.drawDebugPolyLine(this.wallPoly,16711680,1),this.drawDebugPolyLine(this.bottomPoly,65280,1)},l.prototype.destroy=function(){this.sprite.destroy(),this.sprite=null,n.prototype.destroy.call(this)},l);function l(t,e,i){var s=n.call(this,t)||this;return s.side=i,s.sprite=new Phaser.GameObjects.Image(t,0,0,a.Atlases.gameplay),e.add(s.sprite),s}e.Slope=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.PushBlock=void 0,i(0)),i=(n=i(33).BlockBehavior,r(a,n),a.prototype.spawn=function(t){this.init(t.x,t.y,t.width,t.height),this.updateGraphicPosition(),this.sprite.setScale(this.width/100,this.height/100),this.pushingRight=!1,this.pushingLeft=!1,this.pushed=!1,this.inWater=!1,this.onIce=!1,this.stuckLeft=!1,this.stuckRight=!1,this.land=!1},a.prototype.checkBlockCollisions=function(){this.land=!1,this.onIce=!1;for(var t=0,e=this.main.blocks;ti.yPos-.5*i.height)&&(t||this.yVelocity,this.yVelocity-=this.main.gameSpeed,this.yVelocity<-3&&(this.yVelocity=-3),this.inWater=!0)}},a.prototype.checkTrapped=function(){for(var t=new SAT.Vector(this.leftEdge-5,this.topEdge+10),e=new SAT.Vector(this.rightEdge+5,this.topEdge+10),i=0,s=this.main.blocks;ithis.maxSpeed)&&(this.main.player.xVelocity+=this.speedInc,this.main.player.xVelocity===this.speedInc)&&(this.main.player.xVelocity+=this.addSpeed)},u.prototype.destroy=function(){this.sprite.destroy(),this.sprite=null,this.container.destroy(),this.container=null,this.arrowAnimation=null,n.prototype.destroy.call(this)},u);function u(t,e,i){var s=n.call(this,t,e)||this;return s.container=new Phaser.GameObjects.Container(t),e.add(s.container),s.speedInc=1.6*i,s.maxSpeed=5*s.speedInc,s.addSpeed=.75*s.speedInc,s.sprite=new Phaser.GameObjects.Image(t,0,0,a.Atlases.gameplay,"speedBlock 10000"),s.container.add(s.sprite),s.arrowAnimation=new h.JDImageAnim(t,0,0,a.Atlases.gameplay,"speedBlockArrow "),s.container.add(s.arrowAnimation),0this.startY+this.moveDist&&(this.yVelocity=-this.yVelocity,this.landed)&&(this.main.player.yPos+=2*this.yVelocity,this.main.player.updatePositions()),this.yPos+=this.yVelocity,this.updatePosition())},h.prototype.destroy=function(){this.sprite.destroy(),this.sprite=null,n.prototype.destroy.call(this)},h);function h(t,e){var i=n.call(this,t,e)||this;return i.sprite=new Phaser.GameObjects.Image(t,0,0,a.Atlases.gameplay,"verticalUpBlock 10000"),e.add(i.sprite),i}e.VerticalBlock=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.SkinsBlock=void 0,i(5)),a=i(0),h=i(1),i=(n=o.Block,r(l,n),l.prototype.changeLang=function(){this.txt.setFont(a.Fonts.Main),this.txt.text="actSkin"},l.prototype.toggleTickBox=function(){},l.prototype.spawn=function(t){this.init(t.x,t.y,120,10),this.sprite.visible=!0,this.sprite.x=this.xPos,this.sprite.y=this.yPos-4,this.txt.x=this.xPos,this.txt.y=this.sprite.y+7},l.prototype.destroy=function(){this.sprite.destroy(),this.sprite=null,this.txt.destroy(),this.txt=null,n.prototype.destroy.call(this)},l);function l(t,e,i){void 0===i&&(i=0);e=n.call(this,t,e)||this;return e.id=i,e.sprite=new Phaser.GameObjects.Image(t,0,0,a.Atlases.gameplay,"charactersBlock 10000"),e.sprite.setOrigin(.5,1),e.layer.add(e.sprite),e.txt=new h.JDBmpdTextTranslated(t,0,0,a.Fonts.Main,"actSkin",28),e.txt.setOrigin(.5,0),e.layer.add(e.txt),e.type="skins",e.hangable=!1,e.scalable=!1,e}e.SkinsBlock=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.VexTNT=void 0,i(0)),a=i(17),i=(n=i(5).Block,r(h,n),h.prototype.spawn=function(t){this.init(t.x,t.y,t.width,t.height),this.used=!1,this.updateGraphicPosition(),this.container.setScale(this.width/100,this.height/100),this.container.visible=!0,this.explodingOverlay.visible=!0,this.explodingOverlay.alpha=0},h.prototype.updateGraphicPosition=function(){this.container.x=this.xPos,this.container.y=this.yPos},h.prototype.update=function(){!1!==this.alive&&(!0===this.exploding&&(this.container.scaleX-=.1*(this.container.scaleX-1.5),this.container.scaleY=this.container.scaleX,this.explodingOverlay.alpha+=.05,1<=this.explodingOverlay.alpha)&&(this.exploding=!1,this.alive=!1,this.used=!0,a.SoundManager.playSFX("explosion"),this.main.effectsOverlay.explode()),this.xPos===this.prevX&&this.yPos===this.prevY||this.updatePosition())},h.prototype.resetLevel=function(){this.used=!1,this.alive=!0,this.exploding=!1,this.explodingOverlay.alpha=0,this.container.setScale(1,1),this.container.visible=!0},h.prototype.reset=function(){},h.prototype.destroy=function(){this.sprite.destroy(),this.sprite=null,this.explodingOverlay.destroy(),this.explodingOverlay=null,this.container.destroy(),this.container=null,n.prototype.destroy.call(this)},h);function h(t,e){var i=n.call(this,t,e)||this;return i.container=new Phaser.GameObjects.Container(t),e.add(i.container),i.container.visible=!1,i.sprite=new Phaser.GameObjects.Image(t,0,0,o.Atlases.gameplay,"bigTNT 10000"),i.container.add(i.sprite),i.explodingOverlay=new Phaser.GameObjects.Image(t,0,0,o.Atlases.gameplay,"whiteBlock 10000"),i.container.add(i.explodingOverlay),i.used=!1,i.type="explosive",i}e.VexTNT=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.PulseBlock=void 0,i(0)),a=i(2),h=i(5),l=i(33),i=(n=h.Block,r(u,n),u.prototype.spawn=function(t){this.init(t.x,t.y,100,100),this.horizontal.pos.x=this.xPos,this.horizontal.pos.y=this.yPos,this.vertical.pos.x=this.xPos,this.vertical.pos.y=this.yPos,this.pulseTime=t.time,this.currID=t.currID,this.reset(),this.updateGraphicPosition(),this.sprite.visible=!0},u.prototype.enablePulsing=function(t,e){void 0===e&&(e=this.pulseTime),this.canPulse=t,this.pulseCount=e,!0===this.canPulse?this.sprite.setFrame("pulseBlock 10001"):this.sprite.setFrame("pulseBlock 10000")},u.prototype.update=function(){if(!0===this.canPulse&&(this.pulseCount+=1,this.pulseCount>=this.pulseTime))for(var t=this.pulseCount=0,e=this.main.blocks;t=this.amount&&!0===SAT.testPolygonPolygon(this.main.player.totalPolygon,this.totalPolygon)&&(this.alive=!1,this.container.visible=!1,u.SaveGame.getInstance().saveLvlLockedArea(this.currID),this.main.subScene.currency.addCardGold(-this.amount))},c.prototype.destroy=function(){this.container.destroy(),this.container=null,this.txtAmount=null,this.cardImg=null,n.prototype.destroy.call(this)},c.prototype.reset=function(){},c);function c(t,e){var i=n.call(this,t,e)||this;return i.container=new Phaser.GameObjects.Container(t),e.add(i.container),i.sprite=new Phaser.GameObjects.Image(t,0,0,a.Atlases.gameplay,"lockedArea 10000"),i.container.add(i.sprite),i.txtAmount=new l.JDBmpdText(t,0,0,a.Fonts.Main,"",40),i.container.add(i.txtAmount),i.cardImg=new Phaser.GameObjects.Image(t,0,0,a.Atlases.gameplay,"skins-currency-g 10000"),i.container.add(i.cardImg),i.hangable=!1,i.scalable=!1,i.type="lockedArea",i}e.LockedArea=i},function(t,e,i){"use strict";var s,o,n=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),r=(Object.defineProperty(e,"__esModule",{value:!0}),e.PlayerGib=void 0,i(41)),a=i(0),i=(o=r.Particle,n(h,o),h.prototype.spawn=function(t,e,i,s,n,r){o.prototype.spawnBase.call(this,t,e,i,s),this.rotation=n,this.rotSpeed=r,this.sprite.x=t,this.sprite.y=e,this.sprite.rotation=n},h.prototype.update=function(){if(this.alive){if(this.fadeTime>=this.fadeAfter){if(this.sprite.alpha-=.1*this.main.gameSpeed,this.sprite.alpha<=0)return void this.destroy()}else this.fadeTime++;var t=this.xPos,e=this.yPos;o.prototype.update.call(this),this.alive&&(this.rotation+=this.rotSpeed,0this.currScore&&(this.currScore=this.score,this.txtScore.text=u.Localization.getText("score")+" "+this.score)},d.prototype.resize=function(){n.prototype.resize.call(this),this.btnPause.x=100-o.Constants.UI_SHIFT_X,this.btnPause.y=100-o.Constants.UI_SHIFT_Y;var t=this.btnPause.x+(this.currency.getLeftX()-this.btnPause.x)/2;this.txtScore.x=t-this.txtScoreOffX,this.txtScore.y=this.btnPause.y,this.txtBestScore.x=t,this.txtBestScore.y=this.txtScore.y+60},d.prototype.destroy=function(){n.prototype.destroy.call(this),this.btnPause=null,this.txtScore=null,this.txtBestScore=null},d);function d(){return null!==n&&n.apply(this,arguments)||this}e.SubChallenge=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.SubVex=void 0,i(29)),a=i(0),h=i(21),l=i(32),u=i(6),i=(n=o.BasicSubGamePlay,r(c,n),c.prototype.init=function(){var t=this;n.prototype.init.call(this),this.btnPause=new u.ButtonScaleImage(this.scene,0,0,a.Atlases.ui,"pause-button 10000"),this.btnPause.onUp=function(){return t.scene.panelManager.show(h.PanelList.Pause)},this.add(this.btnPause.getView()),this.initCurrency(),this.tnt=new l.PTNT(this.scene),this.add(this.tnt)},c.prototype.enterLevel=function(){this.resetLevel(),this.scene.panelManager.show(h.PanelList.LevelObjectives)},c.prototype.updateProgressTnt=function(t){this.tnt.setTnt(t)},c.prototype.resize=function(){n.prototype.resize.call(this),this.btnPause.x=100-a.Constants.UI_SHIFT_X,this.btnPause.y=100-a.Constants.UI_SHIFT_Y,this.tnt.x=this.btnPause.x+(this.currency.getLeftX()-this.btnPause.x)/2,this.tnt.y=25-a.Constants.UI_SHIFT_Y},c.prototype.destroy=function(){n.prototype.destroy.call(this),this.btnPause=null,this.tnt=null},c);function c(){return null!==n&&n.apply(this,arguments)||this}e.SubVex=i},function(t,e,i){"use strict";var s,n,r=this&&this.__extends||(s=function(t,e){return(s=Object.setPrototypeOf||({__proto__:[]}instanceof Array?function(t,e){t.__proto__=e}:function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}))(t,e)},function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}s(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}),o=(Object.defineProperty(e,"__esModule",{value:!0}),e.SubSkins=void 0,i(0)),a=i(6),h=i(1),l=i(24),i=(n=i(34).BasicSubScene,r(u,n),u.prototype.init=function(){var e=this;n.prototype.init.call(this),this.bg=new l.Background(this.scene,"panelBgWhite"),this.bg.bg.setInteractive(),this.bg.bg.name="scrollBG",this.add(this.bg),this.scroll=new l.SkinScroll(this),this.scroll.onCheckWorldBorders=function(t){return e.checkWorldBorders(t)},this.add(this.scroll),this.btnExit=new a.ButtonScaleImage(this.scene,0,0,o.Atlases.ui,"back-button 10000"),this.btnExit.onUp=function(){return e.scene.backFromSubSkin()},this.add(this.btnExit.getView()),this.initCurrency(),this.currency.onCurrencyUpdate=function(){return e.updateTitleX()},this.title=new h.JDBmpdTextTranslated(this.scene,0,0,o.Fonts.Main,"skins",80,1388651),this.add(this.title),this.btnLeft=new a.ButtonScaleImage(this.scene,0,0,o.Atlases.ui,"pagination-left-button 10000"),this.btnLeft.onUp=function(){return e.scroll.moveWorld(-1)},this.add(this.btnLeft.getView()),this.btnRight=new a.ButtonScaleImage(this.scene,0,0,o.Atlases.ui,"pagination-left-button 10000"),this.btnRight.onUp=function(){return e.scroll.moveWorld(1)},this.btnRight.flipX=!0,this.add(this.btnRight.getView()),this.scroll.checkWorldBorders()},u.prototype.checkWorldBorders=function(t){var e=this.btnLeft.getInteractiveElement(),i=this.btnRight.getInteractiveElement();t<0?(e.visible=!1,i.visible=!0):0",""+e):1===t?i=g.Localization.getText("trophieDesActHard").replace("",""+(e-9)):2===t&&(i=g.Localization.getText("trophieDesHard"+(e-18))),this.txtDes.text=i.toUpperCase()},r.prototype.out=function(){this.txtDes.visible=!1},r.prototype.updateTitleX=function(){this.title.x=this.btnExit.x+(this.currency.getLeftX()-this.btnExit.x)/2},r.prototype.update=function(){c.prototype.update.call(this),this.bg.update()},r.prototype.resize=function(){c.prototype.resize.call(this),this.bg.resize(),this.btnExit.x=100-d.Constants.UI_SHIFT_X,this.btnExit.y=100-d.Constants.UI_SHIFT_Y,this.updateTitleX(),this.title.y=this.btnExit.y,this.txtDes.y=this.title.y+(this.medalsStartY-this.title.y)/2},r.prototype.destroy=function(){c.prototype.destroy.call(this),this.bg=null,this.btnExit=null,this.title=null,this.txtDes=null},r);function r(){return null!==c&&c.apply(this,arguments)||this}e.SubMedals=i},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Levels=void 0;var s=i(239),r=i(4),o=i(0);function n(){this.levels={},r.BalanceData.init()}n.prototype.loadLevels=function(t){for(var e=o.Jsons.getJson(t,"levels"),i=0,s=Object.keys(e);ithis._min&&(e=s[i],e=Math.min(e,this._min)),s[i]=e,this.deltaIndex++,this.deltaIndex>n&&(this.deltaIndex=0);for(var r=0,o=0;othis.nextFpsUpdate&&(this.actualFps=.25*this.framesThisSecond+.75*this.actualFps,this.nextFpsUpdate=t+1e3,this.framesThisSecond=0),this.framesThisSecond++;i=r/this._target;this.callback(t,r,i),this.lastTime=t,this.frame++}}},s.updateText=function(w,T){Phaser.GameObjects.Text.prototype.updateText=function(){var t=this.canvas,e=this.context,i=this.style,s=i.resolution,n=i.metrics,r=(i.syncFont(t,e),this._text),o=(r=i.wordWrapWidth||i.wordWrapCallback?this.runWordWrap(this._text):r).split(this.splitRegExp),a=Phaser.GameObjects.GetTextSize(this,n,o),r=i.fontSize;"string"==typeof r&&(r=Number(r.replace("px",""))),this.lineSpacing=w*(r/T);var h,r=this.padding;0===i.fixedWidth?(this.width=a.width+r.left+r.right,h=a.width):(this.width=i.fixedWidth,(h=this.width-r.left-r.right)