!function(t){var e={};function n(A){if(e[A])return e[A].exports;var r=e[A]={i:A,l:!1,exports:{}};return t[A].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=t,n.c=e,n.d=function(t,e,A){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:A})},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(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var A=Object.create(null);if(n.r(A),Object.defineProperty(A,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)n.d(A,r,function(e){return t[e]}.bind(null,r));return A},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=184)}([function(t,e,n){var A=n(18),r=n(8);t.exports=function(t,e){return!e||"object"!==A(e)&&"function"!=typeof e?r(t):e}},function(t,e){function n(e){return t.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},n(e)}t.exports=n},function(t,e){t.exports=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}},function(t,e,n){var A=n(186);t.exports=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&A(t,e)}},function(t,e){function n(t,e){for(var n=0;n",'"',"`"," ","\r","\n","\t"]),c=["'"].concat(h),u=["%","/","?",";","#"].concat(c),l=["/","?","#"],p=/^[+a-z0-9A-Z_-]{0,63}$/,d=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,f={javascript:!0,"javascript:":!0},g={javascript:!0,"javascript:":!0},w={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=n(194);function m(t,e,n){if(t&&r.isObject(t)&&t instanceof i)return t;var A=new i;return A.parse(t,e,n),A}i.prototype.parse=function(t,e,n){if(!r.isString(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var i=t.indexOf("?"),a=-1!==i&&i127?O+="x":O+=M[Q];if(!O.match(p)){var z=P.slice(0,D),H=P.slice(D+1),L=M.match(d);L&&(z.push(L[1]),H.unshift(L[2])),H.length&&(m="/"+H.join(".")+m),this.hostname=z.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),k||(this.hostname=A.toASCII(this.hostname));var N=this.port?":"+this.port:"",F=this.hostname||"";this.host=F+N,this.href+=this.host,k&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==m[0]&&(m="/"+m))}if(!f[b])for(D=0,T=c.length;D0)&&n.host.split("@"))&&(n.auth=k.shift(),n.host=n.hostname=k.shift());return n.search=t.search,n.query=t.query,r.isNull(n.pathname)&&r.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!C.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var S=C.slice(-1)[0],E=(n.host||t.host||C.length>1)&&("."===S||".."===S)||""===S,D=0,I=C.length;I>=0;I--)"."===(S=C[I])?C.splice(I,1):".."===S?(C.splice(I,1),D++):D&&(C.splice(I,1),D--);if(!v&&!b)for(;D--;D)C.unshift("..");!v||""===C[0]||C[0]&&"/"===C[0].charAt(0)||C.unshift(""),E&&"/"!==C.join("/").substr(-1)&&C.push("");var k,P=""===C[0]||C[0]&&"/"===C[0].charAt(0);B&&(n.hostname=n.host=P?"":C.length?C.shift():"",(k=!!(n.host&&n.host.indexOf("@")>0)&&n.host.split("@"))&&(n.auth=k.shift(),n.host=n.hostname=k.shift()));return(v=v||n.host&&C.length)&&!P&&C.unshift(""),C.length?n.pathname=C.join("/"):(n.pathname=null,n.path=null),r.isNull(n.pathname)&&r.isNull(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},i.prototype.parseHost=function(){var t=this.host,e=a.exec(t);e&&(":"!==(e=e[0])&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADIAAAAyCAYAAAAeP4ixAAADEklEQVRogc2asW4TQRCG/3VSQAJxOmhQXEOR8ASJhJCoSAr6uKEObxCJGolIPIBFQZ3Q0tgdZUxJgRwKFAokmwREA3wUexdOts+3u7d39idZWXnXN/N7vDNzezGKCLAk6ZqkpqTrklaSv9nxiqSvki4lfTLGfIth28S4SAqwKumGpJvJa9p4/L1fkvqSTowx56G2G6U8n8Qk12xkxmZsPD5/S9ITSW+BV8DdEMPRhACujs+afyjpHfAGaPrYjxmREMfz5h9LOgO2fYzHIkZEsvPrknrAQd1CYkYk69cR0HExHovYEcnSLhKzqBGZVhZmiqkrIuPvFc3n+dUGXk6bWI6lIjGOpB+ShpL+SFpKXsuZ8R1J9yTdl7Sm/Cjl8QzoG2NeZ9+MVtmBZWPMb4/1K5IeSHoq6bYmO4BZv5aRpJYx5nu4x5EBVoEXwEfgC3AB/KWYwkw2F4B94By4dBCR4lwwawV4Dvz0EHI8b5+nAqwB7z2EAGxI8bvfUhhjLiQ9km3rXdmryJ3yAJseETmdt78zAQ49xDSj3iHGBHs/MnJcvrdQeyRLUux6jst3FlZIguum31p0IT3Hda2rpjHJx+3M5Ej2ZONzPL+8cd0jLUlX7UEeu5W5WQDQdE1brjl7bj2Nj5Bjh3XdRRdiAFwuaIypveYAm3LLXCPnrJVctG62HNf1G3LPDDthvpTC1eZZQ+5Fpx3kSjlcO9t+Q+5FZ6vO7IU9YVx3XN7zbZkHVTqfgq0fQx+fGsaYD5LOHG20gMPKFPznSO7ROLka4df7A+xX4r4Ku4xpbGY/vOH5YaigdQEOPH2YLNRAJ0BMtMgE2p9MPvhtsCyl9kxi16VNGif/gA7/0KZ0CUjNwC4wCLA3pOjRHGHfTsop9svIbWeAbWxyCRGQUrw/saE+LWGkatx/ytgiGbJfqsb/4BorZpEiM/UBj4+gzrwVECvNM18xcbsIwlNzKEOq6rax+6Zbg4gOyeOCSsFGZ1CBgAHzOLHBdqrdCAKOywqIcjKCbRfasocFLRXfa/dkb7HT/9Mq/XT2HywGHGG+XJ2rAAAAAElFTkSuQmCC"},function(t,e){t.exports="data:image/png;base64,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"},function(t,e){function n(t,e,n,A,r,i,o){try{var a=t[i](o),s=a.value}catch(t){return void n(t)}a.done?e(s):Promise.resolve(s).then(A,r)}t.exports=function(t){return function(){var e=this,A=arguments;return new Promise((function(r,i){var o=t.apply(e,A);function a(t){n(o,r,i,a,s,"next",t)}function s(t){n(o,r,i,a,s,"throw",t)}a(void 0)}))}}},function(t,e){function n(e){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?t.exports=n=function(t){return typeof t}:t.exports=n=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},n(e)}t.exports=n},function(t,e){t.exports="data:image/png;base64,/9j/4AAQSkZJRgABAQEASABIAAD/4QAiRXhpZgAATU0AKgAAAAgAAQESAAMAAAABAAEAAAAAAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcGBwcICQsJCAgKCAcHCg0KCgsMDAwMBwkODw0MDgsMDAz/2wBDAQICAgMDAwYDAwYMCAcIDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAz/wAARCAUAAAEDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDPooor+lD+WwooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKACiiigAooooAKKKKAH7BRS0VnzGdwxRUmKKzAkooorO4DvLop2KKz5iSSinbKKzJDb70VJ5dFZ3AdRRRWYEmKKd5dFZ8wuVDqKkorMNQoqTFFZ3IuO2UU6is+YAoqTFFZXQDtlFOoqBWF2Gin0VF2Go/YKKWiseYi4uw0U/FFRcCSiiiswHeXRTsUVnzE6klFLsNFY8wXH0U7y6Km4rsdRRRWYiTFFO8uis+YB1FO2UVjzE6jqKkxRU3JHbKKdRWdx3YUVJiiseYQ/YKKWipuAuw0U+isronUfsFFLRWXMTckooxRWfMVzElFFFZ8xI7ZRTsUVF0BJRRRWXMTzElFO8uis+Ym46ipKKz5gCineXRWfMA6inbKKyuwHUVJiio5ieYdsop1FZXZIUVJiio5gH7BRSbKKz5gH7DRT6Kz5ieYfsFFLRWNw5hdhop+KKzuSf/Z"},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAUACAIAAAAJE6/cAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAWNJREFUeJytmGsOwjAMgxvuyR04HrcbGhMqXerETvtj4iH3c+oErePxej8frTV3mfvOrtfDa+tXzPQ1rPHYy7ZweAbe50od1t8fapbjWi6z1ZrnnnndFT/rXHpdngn8zdA+as9s/Jx42GI9eU8UvnUWqY3Ybv6oOkatCdqIa7QW68JZIpjcfMdMPVM2T47ncoTaOa+Wof35C54wP2YPXjPPjme5vROePreJJmHhzHLWUl5Ox9QOshJYWla330fBr6/V/eZZAQ7Q4LkKOENWmh+eq9zvp4P3K4LVs2L8gv4GunlW/P5gVoXawzMHwbrySvx253WuZTyD2vxca7z0rJbwrOgbZifw6PzOXlDnX6yLmHGOHNMW/PNMNW58prxxv/0iZqR6jqcy5moZ61KfwXD9MHNpv+MauQeET+15A3hVeiP7Kc8lhC9Yn/ZvR1btfoZZ2IPASc96O2ua8Pj/cNj7b/sA7Sx5zG8OMpoAAAAASUVORK5CYII="},function(t,e){t.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAUACAMAAACxr8i5AAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAZJQTFRFiP7qh/7qh/3qhv3qhf3qhfzqhPzqhPzrg/zrg/vrgvvrgfvrgfrrgPrrf/rrf/nrfvnrffnrffjrfPjre/fre/fsevfsefbsePbsePXsd/XsdvXsdvTsdfTsdPTsdPPsc/Psc/PtcvPtcvLtcfLtcPLtcPHtb/HtbvHtbvDtbfDtbPDtbO/ta+/tau/tau/uau7uae7uaO7uaO3uZ+3uZu3uZuzuZezuZOzuZOvuY+vuYuvuYuruYurvYervYOrvYOnvX+nvXujvXejvXOfvW+fvW+bvWubvWebvWebwWeXwWOXwV+XwV+TwVuTwVeTwVePwVOPwU+PwU+LwUuLwUeLwUeHwUeHxUOHxT+HxT+DxTuDxTeDxTd/xTN/xS9/xS97xSt7xSd7xSd3xSN3xSN3yR93yR9zyRtzyRdzyRdvyRNvyQ9vyQ9ryQtryQdnyQNnyQNnzP9jzPtjzPtfzPdfzPNfzPNbzO9bzOtbzOtXzOdXzONXzONTzN9TzN9T0NtT0NtP0NdP0NNP0NNL0M9L0ln8ggQAAASBJREFUeJydwYOOwEAQANA927Zt27Zt27b/+zabZtNOZ6a9e08IggfTk+n15962PmRfF/10f9MAZqDLQXowM8RxqDGMGe44Qo5kRzmMNsagY9lx7HhmgkhkJqGT1RRyKjFNTkdmGDNts9RsZg6Yq+cR88ECvZBYZFlsWkIsVcvkcrACXalXgdXEGrXWto5YrzaAjeQm0Qy2yK3oNrkd3YHuJHehu9E9xF7Rh+5XBywHxRB52HZEHiWPgePqBHnSckqfRs+As/KcOk9csFw0XSIu6yvgKnFNXwc3mJvGLXDbuIPcVffQ+8wD+RB9xDwWJ8xT9hn7nHihXjq+Yl+LG8e3zDvjvYsP5Ef9yeVn5ovpq/7m4jvzA/z8xy/yN/OH/gvlAU0F7jXVzAAAAABJRU5ErkJggg=="},function(t,e,n){t.exports=n.p+"images/aa84c8a26feb433c29f94bfb613c12b4-background_halloween_pattern.png"},function(t,e,n){t.exports=n.p+"images/a1a9a7d8ce931e059ea334c4a51b6ba4-background_christmas_pattern.png"},function(t,e,n){t.exports=n.p+"images/ce19b05c082fbafe1157911888ca156e-SHOP_UI0005.png"},function(t,e,n){t.exports=n.p+"images/ad4e2c9b5318d4f807fac17dc5c56407-SHOP_UI0005_Christmas.png"},function(t,e,n){"use strict";t.exports=function(t,e){e=e||{};for(var n={key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},A=n.parser[e.strictMode?"strict":"loose"].exec(t),r={},i=14;i--;)r[n.key[i]]=A[i]||"";return r[n.q.name]={},r[n.key[12]].replace(n.q.parser,(function(t,e,A){e&&(r[n.q.name][e]=A)})),r}},function(t){t.exports=JSON.parse('[{"name":"LEVEL_009","start":"START006","mid":"MIDDLE002","end":"FINISH005"},{"name":"LEVEL_012","start":"START027","mid":"MIDDLE030","end":"FINISH001"},{"name":"LEVEL_013","start":"START011","mid":"MIDDLE021","end":"FINISH000"},{"name":"LEVEL_016","start":"START012","mid":"MIDDLE004","end":"FINISH035"},{"name":"LEVEL_017","start":"START013","mid":"MIDDLE002","end":"FINISH009"},{"name":"LEVEL_018","start":"START002","mid":"MIDDLE008","end":"FINISH004"},{"name":"LEVEL_020","start":"START006","mid":"MIDDLE003","end":"FINISH008"},{"name":"LEVEL_021","start":"START014","mid":"MIDDLE020","end":"FINISH003"},{"name":"LEVEL_023","start":"START007","mid":"MIDDLE038","end":"FINISH032"},{"name":"LEVEL_024","start":"START003","mid":"MIDDLE020","end":"FINISH000"},{"name":"LEVEL_029","start":"START010","mid":"MIDDLE034","end":"FINISH011"},{"name":"LEVEL_031","start":"START006","mid":"MIDDLE039","end":"FINISH016"},{"name":"LEVEL_033","start":"START023","mid":"MIDDLE013","end":"FINISH008"},{"name":"LEVEL_036","start":"START001","mid":"MIDDLE028","end":"FINISH018"},{"name":"LEVEL_037","start":"START020","mid":"MIDDLE021","end":"FINISH030"},{"name":"LEVEL_038","start":"START019","mid":"MIDDLE016","end":"FINISH020"},{"name":"LEVEL_041","start":"START005","mid":"MIDDLE024","end":"FINISH006"},{"name":"LEVEL_046","start":"START001","mid":"MIDDLE011","end":"FINISH014"},{"name":"LEVEL_048","start":"START006","mid":"MIDDLE012","end":"FINISH017"},{"name":"LEVEL_049","start":"START027","mid":"MIDDLE003","end":"FINISH019"},{"name":"LEVEL_050","start":"START030","mid":"MIDDLE029","end":"FINISH009"},{"name":"LEVEL_052","start":"START003","mid":"MIDDLE005","end":"FINISH005"},{"name":"LEVEL_053","start":"START010","mid":"MIDDLE009","end":"FINISH013"},{"name":"LEVEL_054","start":"START026","mid":"MIDDLE019","end":"FINISH001"},{"name":"LEVEL_056","start":"START014","mid":"MIDDLE026","end":"FINISH003"},{"name":"LEVEL_057","start":"START007","mid":"MIDDLE015","end":"FINISH007"},{"name":"LEVEL_058","start":"START011","mid":"MIDDLE027","end":"FINISH004"},{"name":"LEVEL_060","start":"START007","mid":"MIDDLE035","end":"FINISH036"},{"name":"LEVEL_062","start":"START002","mid":"MIDDLE041","end":"FINISH021"},{"name":"LEVEL_063","start":"START007","mid":"MIDDLE035","end":"FINISH036"}]')},function(t,e,n){"use strict";var A=Object.prototype.hasOwnProperty,r="~";function i(){}function o(t,e,n){this.fn=t,this.context=e,this.once=n||!1}function a(t,e,n,A,i){if("function"!=typeof n)throw new TypeError("The listener must be a function");var a=new o(n,A||t,i),s=r?r+e:e;return t._events[s]?t._events[s].fn?t._events[s]=[t._events[s],a]:t._events[s].push(a):(t._events[s]=a,t._eventsCount++),t}function s(t,e){0==--t._eventsCount?t._events=new i:delete t._events[e]}function h(){this._events=new i,this._eventsCount=0}Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(r=!1)),h.prototype.eventNames=function(){var t,e,n=[];if(0===this._eventsCount)return n;for(e in t=this._events)A.call(t,e)&&n.push(r?e.slice(1):e);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(t)):n},h.prototype.listeners=function(t){var e=r?r+t:t,n=this._events[e];if(!n)return[];if(n.fn)return[n.fn];for(var A=0,i=n.length,o=new Array(i);A80*n){A=s=t[0],a=h=t[1];for(var x=n;xs&&(s=c),p>h&&(h=p);d=0!==(d=Math.max(s-A,h-a))?1/d:0}return o(y,m,n,A,a,d),m}function r(t,e,n,A,r){var i,o;if(r===I(t,e,n,A)>0)for(i=e;i=e;i-=A)o=S(i,t[i],t[i+1],o);return o&&m(o,o.next)&&(E(o),o=o.next),o}function i(t,e){if(!t)return t;e||(e=t);var n,A=t;do{if(n=!1,A.steiner||!m(A,A.next)&&0!==y(A.prev,A,A.next))A=A.next;else{if(E(A),(A=e=A.prev)===A.next)break;n=!0}}while(n||A!==e);return e}function o(t,e,n,A,r,u,l){if(t){!l&&u&&function(t,e,n,A){var r=t;do{null===r.z&&(r.z=d(r.x,r.y,e,n,A)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next}while(r!==t);r.prevZ.nextZ=null,r.prevZ=null,function(t){var e,n,A,r,i,o,a,s,h=1;do{for(n=t,t=null,i=null,o=0;n;){for(o++,A=n,a=0,e=0;e0||s>0&&A;)0!==a&&(0===s||!A||n.z<=A.z)?(r=n,n=n.nextZ,a--):(r=A,A=A.nextZ,s--),i?i.nextZ=r:t=r,r.prevZ=i,i=r;n=A}i.nextZ=null,h*=2}while(o>1)}(r)}(t,A,r,u);for(var p,f,g=t;t.prev!==t.next;)if(p=t.prev,f=t.next,u?s(t,A,r,u):a(t))e.push(p.i/n),e.push(t.i/n),e.push(f.i/n),E(t),t=f.next,g=f.next;else if((t=f)===g){l?1===l?o(t=h(i(t),e,n),e,n,A,r,u,2):2===l&&c(t,e,n,A,r,u):o(i(t),e,n,A,r,u,1);break}}}function a(t){var e=t.prev,n=t,A=t.next;if(y(e,n,A)>=0)return!1;for(var r=t.next.next;r!==t.prev;){if(g(e.x,e.y,n.x,n.y,A.x,A.y,r.x,r.y)&&y(r.prev,r,r.next)>=0)return!1;r=r.next}return!0}function s(t,e,n,A){var r=t.prev,i=t,o=t.next;if(y(r,i,o)>=0)return!1;for(var a=r.xi.x?r.x>o.x?r.x:o.x:i.x>o.x?i.x:o.x,c=r.y>i.y?r.y>o.y?r.y:o.y:i.y>o.y?i.y:o.y,u=d(a,s,e,n,A),l=d(h,c,e,n,A),p=t.prevZ,f=t.nextZ;p&&p.z>=u&&f&&f.z<=l;){if(p!==t.prev&&p!==t.next&&g(r.x,r.y,i.x,i.y,o.x,o.y,p.x,p.y)&&y(p.prev,p,p.next)>=0)return!1;if(p=p.prevZ,f!==t.prev&&f!==t.next&&g(r.x,r.y,i.x,i.y,o.x,o.y,f.x,f.y)&&y(f.prev,f,f.next)>=0)return!1;f=f.nextZ}for(;p&&p.z>=u;){if(p!==t.prev&&p!==t.next&&g(r.x,r.y,i.x,i.y,o.x,o.y,p.x,p.y)&&y(p.prev,p,p.next)>=0)return!1;p=p.prevZ}for(;f&&f.z<=l;){if(f!==t.prev&&f!==t.next&&g(r.x,r.y,i.x,i.y,o.x,o.y,f.x,f.y)&&y(f.prev,f,f.next)>=0)return!1;f=f.nextZ}return!0}function h(t,e,n){var A=t;do{var r=A.prev,o=A.next.next;!m(r,o)&&x(r,A,A.next,o)&&C(r,o)&&C(o,r)&&(e.push(r.i/n),e.push(A.i/n),e.push(o.i/n),E(A),E(A.next),A=t=o),A=A.next}while(A!==t);return i(A)}function c(t,e,n,A,r,a){var s=t;do{for(var h=s.next.next;h!==s.prev;){if(s.i!==h.i&&w(s,h)){var c=B(s,h);return s=i(s,s.next),c=i(c,c.next),o(s,e,n,A,r,a),void o(c,e,n,A,r,a)}h=h.next}s=s.next}while(s!==t)}function u(t,e){return t.x-e.x}function l(t,e){if(e=function(t,e){var n,A=e,r=t.x,i=t.y,o=-1/0;do{if(i<=A.y&&i>=A.next.y&&A.next.y!==A.y){var a=A.x+(i-A.y)*(A.next.x-A.x)/(A.next.y-A.y);if(a<=r&&a>o){if(o=a,a===r){if(i===A.y)return A;if(i===A.next.y)return A.next}n=A.x=A.x&&A.x>=c&&r!==A.x&&g(in.x||A.x===n.x&&p(n,A)))&&(n=A,l=s)),A=A.next}while(A!==h);return n}(t,e)){var n=B(e,t);i(e,e.next),i(n,n.next)}}function p(t,e){return y(t.prev,t,e.prev)<0&&y(e.next,t,t.next)<0}function d(t,e,n,A,r){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*r)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-A)*r)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function f(t){var e=t,n=t;do{(e.x=0&&(t-o)*(A-a)-(n-o)*(e-a)>=0&&(n-o)*(i-a)-(r-o)*(A-a)>=0}function w(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&x(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&(C(t,e)&&C(e,t)&&function(t,e){var n=t,A=!1,r=(t.x+e.x)/2,i=(t.y+e.y)/2;do{n.y>i!=n.next.y>i&&n.next.y!==n.y&&r<(n.next.x-n.x)*(i-n.y)/(n.next.y-n.y)+n.x&&(A=!A),n=n.next}while(n!==t);return A}(t,e)&&(y(t.prev,t,e.prev)||y(t,e.prev,e))||m(t,e)&&y(t.prev,t,t.next)>0&&y(e.prev,e,e.next)>0)}function y(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function m(t,e){return t.x===e.x&&t.y===e.y}function x(t,e,n,A){var r=b(y(t,e,n)),i=b(y(t,e,A)),o=b(y(n,A,t)),a=b(y(n,A,e));return r!==i&&o!==a||(!(0!==r||!v(t,n,e))||(!(0!==i||!v(t,A,e))||(!(0!==o||!v(n,t,A))||!(0!==a||!v(n,e,A)))))}function v(t,e,n){return e.x<=Math.max(t.x,n.x)&&e.x>=Math.min(t.x,n.x)&&e.y<=Math.max(t.y,n.y)&&e.y>=Math.min(t.y,n.y)}function b(t){return t>0?1:t<0?-1:0}function C(t,e){return y(t.prev,t,t.next)<0?y(t,e,t.next)>=0&&y(t,t.prev,e)>=0:y(t,e,t.prev)<0||y(t,t.next,e)<0}function B(t,e){var n=new D(t.i,t.x,t.y),A=new D(e.i,e.x,e.y),r=t.next,i=e.prev;return t.next=e,e.prev=t,n.next=r,r.prev=n,A.next=n,n.prev=A,i.next=A,A.prev=i,A}function S(t,e,n,A){var r=new D(t,e,n);return A?(r.next=A.next,r.prev=A,A.next.prev=r,A.next=r):(r.prev=r,r.next=r),r}function E(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function D(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function I(t,e,n,A){for(var r=0,i=e,o=n-A;i0&&(A+=t[r-1].length,n.holes.push(A))}return n}},function(t,e,n){(function(A,r){var i;!function(A){var o=A.Promise,a=o&&"resolve"in o&&"reject"in o&&"all"in o&&"race"in o&&function(){var t;return new o((function(e){t=e})),"function"==typeof t}();e?(e.Promise=a?o:C,e.Polyfill=C):void 0===(i=function(){return a?o:C}.call(e,n,e,t))||(t.exports=i);var s=function(){};function h(t){return"[object Array]"===Object.prototype.toString.call(t)}var c,u=void 0!==r?r:setTimeout,l=[];function p(){for(var t=0;t=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return A("end");if(i.tryLoc<=this.prev){var a=n.call(i,"catchLoc"),s=n.call(i,"finallyLoc");if(a&&s){if(this.prev=0;--A){var r=this.tryEntries[A];if(r.tryLoc<=this.prev&&n.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),v(n),h}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var A=n.completion;if("throw"===A.type){var r=A.arg;v(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:C(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}(t.exports);try{regeneratorRuntime=A}catch(t){Function("r","regeneratorRuntime = r")(A)}},function(t,e){function n(e,A){return t.exports=n=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},n(e,A)}t.exports=n},function(t,e,n){"use strict";(function(t){var e=n(30),A=n(31),r=n.n(A); /*! * @pixi/polyfill - v5.2.1 * Compiled Tue, 28 Jan 2020 23:33:11 UTC * * @pixi/polyfill is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license */ window.Promise||(window.Promise=e.Polyfill),Object.assign||(Object.assign=r.a);var i="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==t?t:"undefined"!=typeof self?self:{};if(Date.now&&Date.prototype.getTime||(Date.now=function(){return(new Date).getTime()}),!i.performance||!i.performance.now){var o=Date.now();i.performance||(i.performance={}),i.performance.now=function(){return Date.now()-o}}for(var a=Date.now(),s=["ms","moz","webkit","o"],h=0;h0?1:-1}),Number.isInteger||(Number.isInteger=function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}),window.ArrayBuffer||(window.ArrayBuffer=Array),window.Float32Array||(window.Float32Array=Array),window.Uint32Array||(window.Uint32Array=Array),window.Uint16Array||(window.Uint16Array=Array),window.Uint8Array||(window.Uint8Array=Array),window.Int32Array||(window.Int32Array=Array)}).call(this,n(11))},function(t,e,n){(function(t){var A=void 0!==t&&t||"undefined"!=typeof self&&self||window,r=Function.prototype.apply;function i(t,e){this._id=t,this._clearFn=e}e.setTimeout=function(){return new i(r.call(setTimeout,A,arguments),clearTimeout)},e.setInterval=function(){return new i(r.call(setInterval,A,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},i.prototype.unref=i.prototype.ref=function(){},i.prototype.close=function(){this._clearFn.call(A,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(189),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(11))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var A,r,i,o,a,s=1,h={},c=!1,u=t.document,l=Object.getPrototypeOf&&Object.getPrototypeOf(t);l=l&&l.setTimeout?l:t,"[object process]"==={}.toString.call(t.process)?A=function(t){e.nextTick((function(){d(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((i=new MessageChannel).port1.onmessage=function(t){d(t.data)},A=function(t){i.port2.postMessage(t)}):u&&"onreadystatechange"in u.createElement("script")?(r=u.documentElement,A=function(t){var e=u.createElement("script");e.onreadystatechange=function(){d(t),e.onreadystatechange=null,r.removeChild(e),e=null},r.appendChild(e)}):A=function(t){setTimeout(d,0,t)}:(o="setImmediate$"+Math.random()+"$",a=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(o)&&d(+e.data.slice(o.length))},t.addEventListener?t.addEventListener("message",a,!1):t.attachEvent("onmessage",a),A=function(e){t.postMessage(o+e,"*")}),l.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n1)for(var n=1;n= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,d=String.fromCharCode;function f(t){throw RangeError(l[t])}function g(t,e){for(var n=t.length,A=[];n--;)A[n]=e(t[n]);return A}function w(t,e){var n=t.split("@"),A="";return n.length>1&&(A=n[0]+"@",t=n[1]),A+g((t=t.replace(u,".")).split("."),e).join(".")}function y(t){for(var e,n,A=[],r=0,i=t.length;r=55296&&e<=56319&&r65535&&(e+=d((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=d(t)})).join("")}function x(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function v(t,e,n){var A=0;for(t=n?p(t/700):t>>1,t+=p(t/e);t>455;A+=36)t=p(t/35);return p(A+36*t/(t+38))}function b(t){var e,n,A,r,i,o,a,h,c,u,l,d=[],g=t.length,w=0,y=128,x=72;for((n=t.lastIndexOf("-"))<0&&(n=0),A=0;A=128&&f("not-basic"),d.push(t.charCodeAt(A));for(r=n>0?n+1:0;r=g&&f("invalid-input"),((h=(l=t.charCodeAt(r++))-48<10?l-22:l-65<26?l-65:l-97<26?l-97:36)>=36||h>p((s-w)/o))&&f("overflow"),w+=h*o,!(h<(c=a<=x?1:a>=x+26?26:a-x));a+=36)o>p(s/(u=36-c))&&f("overflow"),o*=u;x=v(w-i,e=d.length+1,0==i),p(w/e)>s-y&&f("overflow"),y+=p(w/e),w%=e,d.splice(w++,0,y)}return m(d)}function C(t){var e,n,A,r,i,o,a,h,c,u,l,g,w,m,b,C=[];for(g=(t=y(t)).length,e=128,n=0,i=72,o=0;o=e&&lp((s-n)/(w=A+1))&&f("overflow"),n+=(a-e)*w,e=a,o=0;os&&f("overflow"),l==e){for(h=n,c=36;!(h<(u=c<=i?1:c>=i+26?26:c-i));c+=36)b=h-u,m=36-u,C.push(d(x(u+b%m,0))),h=p(b/m);C.push(d(x(h,0))),i=v(n,w,A==r),n=0,++A}++n,++e}return C.join("")}a={version:"1.3.2",ucs2:{decode:y,encode:m},decode:b,encode:C,toASCII:function(t){return w(t,(function(t){return c.test(t)?"xn--"+C(t):t}))},toUnicode:function(t){return w(t,(function(t){return h.test(t)?b(t.slice(4).toLowerCase()):t}))}},void 0===(r=function(){return a}.call(e,n,e,t))||(t.exports=r)}()}).call(this,n(192)(t),n(11))},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";t.exports={isString:function(t){return"string"==typeof t},isObject:function(t){return"object"==typeof t&&null!==t},isNull:function(t){return null===t},isNullOrUndefined:function(t){return null==t}}},function(t,e,n){"use strict";e.decode=e.parse=n(195),e.encode=e.stringify=n(196)},function(t,e,n){"use strict";function A(t,e){return Object.prototype.hasOwnProperty.call(t,e)}t.exports=function(t,e,n,i){e=e||"&",n=n||"=";var o={};if("string"!=typeof t||0===t.length)return o;var a=/\+/g;t=t.split(e);var s=1e3;i&&"number"==typeof i.maxKeys&&(s=i.maxKeys);var h=t.length;s>0&&h>s&&(h=s);for(var c=0;c=0?(u=f.substr(0,g),l=f.substr(g+1)):(u=f,l=""),p=decodeURIComponent(u),d=decodeURIComponent(l),A(o,p)?r(o[p])?o[p].push(d):o[p]=[o[p],d]:o[p]=d}return o};var r=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},function(t,e,n){"use strict";var A=function(t){switch(typeof t){case"string":return t;case"boolean":return t?"true":"false";case"number":return isFinite(t)?t:"";default:return""}};t.exports=function(t,e,n,a){return e=e||"&",n=n||"=",null===t&&(t=void 0),"object"==typeof t?i(o(t),(function(o){var a=encodeURIComponent(A(o))+n;return r(t[o])?i(t[o],(function(t){return a+encodeURIComponent(A(t))})).join(e):a+encodeURIComponent(A(t[o]))})).join(e):a?encodeURIComponent(A(a))+n+encodeURIComponent(A(t)):""};var r=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function i(t,e){if(t.map)return t.map(e);for(var n=[],A=0;A .load-icon {\r\n position: absolute;\r\n width: 20px;\r\n height: 20px;\r\n top: 7px;\r\n right: 7px;\r\n animation-name: spin;\r\n animation-duration: 1s;\r\n animation-iteration-count: infinite;\r\n animation-timing-function: linear;\r\n}\r\n\r\n.shop-button > .text {\r\n position: absolute;\r\n top: 55px;\r\n left: 6px;\r\n right: 6px;\r\n bottom: 4px;\r\n}\r\n\r\n.shop-button > .image {\r\n width: 80px;\r\n position: absolute;\r\n top: -6px;\r\n left: 0;\r\n}\r\n\r\n.shop-button > .lock {\r\n position: absolute;\r\n top: 6px;\r\n left: 6px;\r\n width: 16px;\r\n height: 16px;\r\n}\r\n\r\n.shop-button.type-rewarded.locked > .text,\r\n.shop-button.type-rewarded.locked > .lock {\r\n display: none;\r\n}\r\n\r\n.row {\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n margin: 15px 0;\r\n}\r\n\r\n.title-buttons {\r\n position: absolute;\r\n bottom: 50px;\r\n left: 0;\r\n right: 0;\r\n}\r\n\r\n.title-buttons .button {\r\n margin: 5px;\r\n}\r\n\r\n.shop-content {\r\n background-image: url("+nt+");\r\n background-size: 100% 100%;\r\n position: absolute;\r\n bottom: 0;\r\n left: 0;\r\n right: 0;\r\n top: 33%;\r\n}\r\n\r\n.shop-content-halloween {\r\n background-image: url("+At+");\r\n}\r\n\r\n.shop-content-halloween-pattern {\r\n background-image: url("+rt+");\r\n background-repeat: repeat;\r\n opacity: 0.05;\r\n background-size: 35%;\r\n position: absolute;\r\n bottom: 0;\r\n left: 0;\r\n right: 0;\r\n top: 40px;\r\n}\r\n\r\n.shop-content-christmas {\r\n background-image: url("+it+");\r\n}\r\n\r\n.shop-content-christmas-pattern {\r\n background-image: url("+ot+');\r\n background-repeat: repeat;\r\n opacity: 0.05;\r\n background-size: 35%;\r\n position: absolute;\r\n bottom: 0;\r\n left: 0;\r\n right: 0;\r\n top: 40px;\r\n}\r\n\r\n.skins-lists-container {\r\n position: relative;\r\n height: calc(100% - 68px);\r\n left: 0%;\r\n transition: ease 0.5s;\r\n}\r\n\r\n.skins-list {\r\n text-align: center;\r\n overflow: auto;\r\n height: 100%;\r\n display: inline-block;\r\n}\r\n\r\n.shop-progress {\r\n position: absolute;\r\n top: 10px;\r\n right: 10px;\r\n color: white;\r\n font-size: 20px;\r\n}\r\n\r\n/*TODO: find good color */\r\n.shop-progress-christmas {\r\n color: #000;\r\n text-shadow: 0px 3px #6c6c6c80;\r\n font-size: x-large;\r\n}\r\n\r\n.shop .shop-button {\r\n text-shadow: none;\r\n}\r\n\r\n.shop-category-name {\r\n background-color: white;\r\n color: #00b9dc;\r\n text-align: center;\r\n text-shadow: none;\r\n padding: 5px;\r\n line-height: 25px;\r\n}\r\n\r\n.shop-category-name-halloween {\r\n color: #b865c9;\r\n}\r\n\r\n.shop-category-name-christmas {\r\n color: #f90;\r\n}\r\n\r\n.shop-category-name > span {\r\n width: 200px;\r\n display: inline-block;\r\n}\r\n\r\n.clicked-skin-info {\r\n color: white;\r\n background-color: #5496f1;\r\n text-align: center;\r\n padding: 5px;\r\n filter: drop-shadow(0px 3px 0px rgba(0, 6, 95, 0.5));\r\n margin-bottom: 10px;\r\n}\r\n\r\n.clicked-skin-info-halloween {\r\n background-color: #b865c9;\r\n}\r\n\r\n.clicked-skin-info-christmas {\r\n background: linear-gradient(180deg, #f7d13f, #ff9f00);\r\n text-shadow: rgb(95 0 0 / 20%) 0 3px 0;\r\n}\r\n\r\n.red-arrow {\r\n cursor: pointer;\r\n width: 25px;\r\n vertical-align: middle;\r\n}\r\n\r\n.red-arrow.orientation-left {\r\n transform: scaleX(-1);\r\n}\r\n\r\n.red-arrow.disabled {\r\n opacity: 0.5;\r\n}\r\n\r\n.level-debug-infos {\r\n font-size: 10px;\r\n font-family: Arial, Helvetica, sans-serif;\r\n text-shadow: none;\r\n position: absolute;\r\n left: 0;\r\n bottom: 0;\r\n}\r\n\r\n.popup-container {\r\n position: fixed;\r\n top: 0;\r\n bottom: 0;\r\n left: 0;\r\n right: 0;\r\n background-color: rgba(0, 6, 95, 0.5);\r\n}\r\n\r\n.popup-container > div {\r\n position: absolute;\r\n top: 0;\r\n bottom: 50px;\r\n left: 0;\r\n right: 0;\r\n}\r\n\r\n.skin-unlocked-popup {\r\n color: white;\r\n border: 6px solid white;\r\n border-radius: 20px;\r\n width: 250px;\r\n height: 250px;\r\n text-align: center;\r\n position: absolute;\r\n margin: auto;\r\n left: 0;\r\n right: 0;\r\n top: 0;\r\n bottom: 0;\r\n overflow: hidden;\r\n}\r\n\r\n.skin-unlocked-popup::before {\r\n content: "";\r\n position: absolute;\r\n width: 200%;\r\n height: 200%;\r\n top: -50%;\r\n left: -50%;\r\n z-index: -1;\r\n background-color: #438dbe;\r\n background-image: url('+at+');\r\n background-position: 50% 50%;\r\n animation-name: spin;\r\n animation-duration: 5s;\r\n animation-iteration-count: infinite;\r\n animation-timing-function: linear;\r\n}\r\n\r\n.random-skin-popup {\r\n color: white;\r\n border: 6px solid white;\r\n border-radius: 20px;\r\n width: 250px;\r\n height: 250px;\r\n text-align: center;\r\n position: absolute;\r\n margin: auto;\r\n left: 0;\r\n right: 0;\r\n top: 0;\r\n bottom: 0;\r\n}\r\n\r\n.random-skin-popup-before::before {\r\n content: "";\r\n position: absolute;\r\n width: 200%;\r\n height: 200%;\r\n top: -50%;\r\n left: -50%;\r\n z-index: -1;\r\n background-color: #438dbe;\r\n background-image: url('+at+');\r\n background-position: 50% 50%;\r\n animation-name: spin;\r\n animation-duration: 5s;\r\n animation-iteration-count: infinite;\r\n animation-timing-function: linear;\r\n}\r\n\r\n.random-skin-popup-before-no-image::before {\r\n content: "";\r\n position: absolute;\r\n width: 200%;\r\n height: 200%;\r\n top: -50%;\r\n left: -50%;\r\n z-index: -1;\r\n background-color: #438dbe;\r\n background-image: none !important;\r\n /* background-image: url("../../assets/images/png/SHOP_UI0005.png");\r\n background-position: 50% 50%;\r\n background-repeat: no-repeat;\r\n animation-name: spin, scaleUpBgImage;\r\n animation-duration: 5s, 7s;\r\n animation-iteration-count: infinite;\r\n animation-timing-function: linear; */\r\n}\r\n\r\n@keyframes scaleUpBgImage {\r\n from {\r\n background-size: 0%;\r\n }\r\n to {\r\n background-size: 100%;\r\n }\r\n}\r\n\r\n.random-skin-popup-before {\r\n overflow: hidden;\r\n width: 250px;\r\n height: 250px;\r\n border-radius: 10px;\r\n position: absolute;\r\n top: 0;\r\n}\r\n\r\n.random-skin-popup-before-no-image {\r\n overflow: hidden;\r\n width: 250px;\r\n height: 250px;\r\n border-radius: 10px;\r\n position: absolute;\r\n top: 0;\r\n}\r\n\r\n.random-skin-popup-before-no-image-halloween {\r\n border-color: white !important;\r\n}\r\n\r\n.random-skin-popup-before-no-image-halloween::before {\r\n content: "";\r\n background-color: #aa49d9 !important;\r\n background-image: url('+st+');\r\n background-position: 50% 50%;\r\n background-repeat: no-repeat;\r\n animation-name: spin, scaleUpBgImage;\r\n animation-duration: 5s, 7s;\r\n animation-iteration-count: infinite;\r\n animation-timing-function: linear;\r\n}\r\n\r\n.random-skin-popup-before-no-image-christmas {\r\n border-color: white !important;\r\n}\r\n\r\n.random-skin-popup-before-no-image-christmas::before {\r\n content: "";\r\n background-color: #54d7ff !important;\r\n background-image: url('+ht+");\r\n background-position: 50% 50%;\r\n background-repeat: no-repeat;\r\n animation-name: spin, scaleUpBgImage;\r\n animation-duration: 5s, 7s;\r\n animation-iteration-count: infinite;\r\n animation-timing-function: linear;\r\n}\r\n\r\n.random-skin-popup img {\r\n width: 200px;\r\n height: 200px;\r\n margin-top: 25px;\r\n}\r\n\r\n.random-skin-popup > p {\r\n text-shadow: rgba(0, 6, 95, 0.5) 0 2px 4px;\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n right: 0;\r\n}\r\n\r\n.random-skin-popup .equip-skin-button {\r\n background-color: #0171a3;\r\n padding: 8px 4px;\r\n border-radius: 20px;\r\n font-size: 12pt;\r\n border: 4px solid #00b9dc;\r\n color: white;\r\n filter: none;\r\n text-shadow: rgba(0, 6, 95, 0.5) 0 2px 0;\r\n margin: auto;\r\n position: absolute;\r\n bottom: 30px;\r\n left: 0;\r\n right: 0;\r\n width: 115px !important;\r\n}\r\n\r\n.random-skin-popup .again-button {\r\n background-color: #0171a3;\r\n padding: 6px 12px;\r\n border-radius: 20px;\r\n font-size: 15pt;\r\n border: 4px solid #00b9dc;\r\n color: white;\r\n filter: none;\r\n text-shadow: rgba(0, 6, 95, 0.5) 0 2px 0;\r\n margin: auto;\r\n position: absolute;\r\n bottom: -25px;\r\n left: 0;\r\n right: 0;\r\n width: 140px;\r\n padding-left: 45px;\r\n animation: halloween-popup-button 2.25s ease 1s infinite normal none;\r\n}\r\n\r\n.random-skin-popup > p {\r\n font-size: 15pt;\r\n}\r\n\r\n.skin-unlocked-popup img {\r\n width: 200px;\r\n height: 200px;\r\n margin-top: 25px;\r\n}\r\n\r\n.skin-unlocked-popup > p {\r\n text-shadow: rgba(0, 6, 95, 0.5) 0 2px 4px;\r\n position: absolute;\r\n top: 0;\r\n left: 0;\r\n right: 0;\r\n}\r\n\r\n.skin-unlocked-popup .equip-skin-button {\r\n background-color: #0171a3;\r\n padding: 7px 12px;\r\n border-radius: 20px;\r\n font-size: 15pt;\r\n border: 4px solid #00b9dc;\r\n color: white;\r\n filter: none;\r\n text-shadow: rgba(0, 6, 95, 0.5) 0 2px 0;\r\n margin: auto;\r\n position: absolute;\r\n bottom: 10px;\r\n left: 0;\r\n right: 0;\r\n width: 125px;\r\n}\r\n\r\n.equip-skin-button {\r\n width: 150px !important;\r\n font-weight: lighter;\r\n}\r\n\r\n.skin-unlocked-popup > p {\r\n font-size: 15pt;\r\n}\r\n\r\n.halloween-popup-container {\r\n display: grid;\r\n justify-content: center;\r\n align-content: center;\r\n position: fixed;\r\n top: 0;\r\n bottom: 0;\r\n left: 0;\r\n overflow: hidden;\r\n right: 0;\r\n background-color: rgba(0, 6, 95, 0.5);\r\n}\r\n\r\n.halloween-nopopup-container {\r\n display: grid;\r\n justify-content: center;\r\n align-content: center;\r\n position: fixed;\r\n top: 0;\r\n bottom: 0;\r\n left: 0;\r\n overflow: hidden;\r\n right: 0;\r\n}\r\n\r\n.halloween-nopopup {\r\n overflow: hidden;\r\n align-content: center;\r\n flex-direction: column;\r\n background-color: #a746d5;\r\n border-radius: 20px;\r\n border: 8px solid white;\r\n color: white;\r\n overflow: hidden;\r\n filter: none;\r\n transform: scale(0.85);\r\n text-shadow: rgba(0, 6, 95, 0.5) 0 2px 0;\r\n width: 250px;\r\n height: 250px;\r\n}\r\n\r\n.christmas-popup-container {\r\n display: grid;\r\n justify-content: center;\r\n align-content: center;\r\n position: fixed;\r\n top: 0;\r\n bottom: 0;\r\n left: 0;\r\n overflow: hidden;\r\n right: 0;\r\n background-color: rgba(0, 6, 95, 0.5);\r\n}\r\n\r\n.christmas-nopopup-container {\r\n display: grid;\r\n justify-content: center;\r\n align-content: center;\r\n position: fixed;\r\n top: 0;\r\n bottom: 0;\r\n left: 0;\r\n overflow: hidden;\r\n right: 0;\r\n}\r\n\r\n.christmas-nopopup {\r\n overflow: hidden;\r\n align-content: center;\r\n flex-direction: column;\r\n background-color: #54d7ff;\r\n border-radius: 20px;\r\n border: 8px solid white;\r\n color: white;\r\n overflow: hidden;\r\n filter: none;\r\n transform: scale(0.85);\r\n text-shadow: rgba(0, 6, 95, 0.5) 0 2px 0;\r\n width: 250px;\r\n height: 250px;\r\n box-shadow: 1px 3px rgba(0, 0, 0, 0.336);\r\n}\r\n\r\n@media (max-width: 800px) {\r\n .back-button {\r\n right: 10px;\r\n left: auto;\r\n }\r\n .pause-button {\r\n right: 10px;\r\n left: auto;\r\n }\r\n .shop-progress {\r\n top: 15px;\r\n right: 50px;\r\n }\r\n .shop-progress-christmas {\r\n top: 11px;\r\n }\r\n .halloween-nopopup-container > div {\r\n display: none;\r\n }\r\n .halloween-nopopup {\r\n transform: scale(0.27) translate(-355px, -680px);\r\n overflow: visible;\r\n top: 0px;\r\n left: 0px;\r\n }\r\n .halloween-popup-image-bg {\r\n background-image: url("+ct+");\r\n background-position: center;\r\n background-size: 120%;\r\n background-repeat: no-repeat;\r\n width: 100%;\r\n height: 100%;\r\n }\r\n .halloween-popup-image-title {\r\n display: none;\r\n background-image: url("+ut+");\r\n background-position: center;\r\n background-size: contain;\r\n background-repeat: no-repeat;\r\n width: 550px;\r\n height: 100px;\r\n position: absolute;\r\n top: -40px;\r\n left: -135px;\r\n }\r\n .halloween-popup-image-ribbon {\r\n background-image: url("+lt+");\r\n background-position: center;\r\n background-size: 125%;\r\n background-repeat: no-repeat;\r\n width: 100%;\r\n height: 100%;\r\n position: absolute;\r\n bottom: -100px;\r\n transform: rotate(22deg);\r\n }\r\n .halloween-nopopup > img {\r\n width: 300px !important;\r\n height: 300px !important;\r\n left: -25px;\r\n top: -40px;\r\n }\r\n .christmas-nopopup-container > div {\r\n display: none;\r\n }\r\n .christmas-nopopup {\r\n background: linear-gradient(180deg, #f7d13f, #ff9f00);\r\n transform: scale(0.27) translate(-380px, -710px);\r\n overflow: visible;\r\n border-width: 12px;\r\n top: 0px;\r\n left: 0px;\r\n }\r\n .christmas-popup-image-bg {\r\n background-image: url("+pt+");\r\n background-position: center;\r\n background-size: 120%;\r\n background-repeat: no-repeat;\r\n width: 100%;\r\n height: 100%;\r\n }\r\n .christmas-popup-image-title {\r\n display: none;\r\n background-image: url("+dt+");\r\n background-position: center;\r\n background-size: contain;\r\n background-repeat: no-repeat;\r\n width: 550px;\r\n height: 100px;\r\n position: absolute;\r\n top: -40px;\r\n left: -135px;\r\n }\r\n .christmas-popup-image-ribbon {\r\n background-image: url("+lt+');\r\n background-position: center;\r\n background-size: 95%;\r\n background-repeat: no-repeat;\r\n width: 115%;\r\n height: 115%;\r\n position: absolute;\r\n bottom: 51px;\r\n transform: rotate(22deg);\r\n left: -5px;\r\n }\r\n .christmas-nopopup > img {\r\n width: 300px !important;\r\n height: 300px !important;\r\n left: -25px;\r\n top: -40px;\r\n }\r\n .shop-button-halloween-nopopup {\r\n width: 60px;\r\n height: 60px;\r\n }\r\n .shop-button-halloween-nopopup > div {\r\n width: 60px;\r\n height: 60px;\r\n }\r\n .shop-button-christmas-nopopup {\r\n width: 60px;\r\n height: 60px;\r\n overflow: show;\r\n }\r\n .shop-button-christmas-nopopup > div {\r\n width: 60px;\r\n height: 60px;\r\n }\r\n}\r\n\r\n@media (max-width: 800px) and (max-height: 360px) {\r\n .title-buttons .halloween-nopopup {\r\n transform: scale(0.27) translate(-60px, -395px);\r\n }\r\n\r\n .title-buttons .christmas-nopopup {\r\n transform: scale(0.27) translate(-60px, -400px);\r\n }\r\n .title-buttons .christmas-popup-image-ribbon {\r\n bottom: -33px;\r\n transform: rotate(22deg);\r\n left: 82px;\r\n }\r\n\r\n .title-buttons .small-popup-ad-icon-christmas {\r\n right: -100px !important;\r\n top: -17px !important;\r\n }\r\n}\r\n\r\n@media (min-width: 801px) {\r\n .halloween-nopopup-container > div {\r\n position: absolute;\r\n top: 30px;\r\n right: 30px;\r\n animation: hangingRotate 5s ease-in-out 0s infinite;\r\n position: fixed;\r\n }\r\n .christmas-nopopup-container > div {\r\n position: absolute;\r\n top: 30px;\r\n right: 30px;\r\n animation: hangingRotate 5s ease-in-out 0s infinite;\r\n position: fixed;\r\n }\r\n .shop-button-halloween-nopopup {\r\n display: none;\r\n }\r\n .shop-button-christmas-nopopup {\r\n display: none;\r\n }\r\n}\r\n\r\n.halloween-nopopup-container > div {\r\n position: absolute;\r\n position: fixed;\r\n}\r\n.christmas-nopopup-container > div {\r\n position: absolute;\r\n position: fixed;\r\n}\r\n\r\n@keyframes hangingRotate {\r\n 0% {\r\n transform: translate(-6px, 0px) rotate(3deg);\r\n }\r\n 2% {\r\n transform: translate(-6px, 0px) rotate(3deg);\r\n }\r\n 50% {\r\n transform: translate(6px, 0px) rotate(-3deg);\r\n }\r\n 52% {\r\n transform: translate(6px, 0px) rotate(-3deg);\r\n }\r\n 100% {\r\n transform: translate(-6px, 0px) rotate(3deg);\r\n }\r\n}\r\n\r\n.halloween-popup-container > div {\r\n position: absolute;\r\n top: 0;\r\n bottom: 50px;\r\n left: 0;\r\n right: 0;\r\n display: grid;\r\n justify-content: center;\r\n align-content: center;\r\n position: fixed;\r\n}\r\n\r\n.halloween-popup-before {\r\n content: "";\r\n position: absolute;\r\n overflow: hidden;\r\n width: 250px;\r\n border-radius: 20px;\r\n height: 250px;\r\n}\r\n\r\n.halloween-popup-before:before {\r\n content: "";\r\n position: absolute;\r\n width: 500px;\r\n height: 500px;\r\n top: -125px;\r\n left: -125px;\r\n background: url('+st+');\r\n background-position: center;\r\n background-repeat: no-repeat;\r\n background-size: 400px;\r\n animation: rotating 5s linear infinite;\r\n -webkit-animation: rotating 5s linear infinite;\r\n}\r\n\r\n.christmas-popup-container > div {\r\n position: absolute;\r\n top: 0;\r\n bottom: 50px;\r\n left: 0;\r\n right: 0;\r\n display: grid;\r\n justify-content: center;\r\n align-content: center;\r\n position: fixed;\r\n}\r\n\r\n.christmas-popup-before {\r\n content: "";\r\n position: absolute;\r\n overflow: hidden;\r\n width: 250px;\r\n border-radius: 10px;\r\n height: 250px;\r\n}\r\n\r\n.noPointerEvents {\r\n pointer-events: none;\r\n}\r\n\r\n.christmas-popup-before:before {\r\n content: "";\r\n position: absolute;\r\n width: 500px;\r\n height: 500px;\r\n top: -125px;\r\n opacity: 0.6;\r\n left: -125px;\r\n background: url('+ft+");\r\n background-position: center;\r\n background-repeat: no-repeat;\r\n background-size: 400px;\r\n animation: rotating 5s linear infinite;\r\n -webkit-animation: rotating 5s linear infinite;\r\n}\r\n\r\n@keyframes rotating {\r\n from {\r\n -webkit-transform: rotate(0deg);\r\n }\r\n to {\r\n -webkit-transform: rotate(360deg);\r\n }\r\n}\r\n\r\n@-webkit-keyframes rotating {\r\n from {\r\n -webkit-transform: rotate(0deg);\r\n }\r\n to {\r\n -webkit-transform: rotate(360deg);\r\n }\r\n}\r\n\r\n.halloween-popup {\r\n overflow: hidden;\r\n align-content: center;\r\n flex-direction: column;\r\n background-color: #a746d5;\r\n border-radius: 20px;\r\n border: 6px solid white;\r\n color: white;\r\n overflow: hidden;\r\n filter: none;\r\n text-shadow: rgba(0, 6, 95, 0.5) 0 2px 0;\r\n width: 250px;\r\n height: 250px;\r\n}\r\n\r\n.halloween-popup-button {\r\n margin-left: 15% !important;\r\n margin-right: 15% !important;\r\n margin-top: 180px !important;\r\n background-image: url("+gt+');\r\n width: 70%;\r\n background-size: contain;\r\n background-position: center;\r\n background-repeat: no-repeat;\r\n height: 70px;\r\n animation: halloween-popup-button 2.25s ease 1s infinite normal none;\r\n}\r\n\r\n.christmas-popup {\r\n overflow: hidden;\r\n align-content: center;\r\n flex-direction: column;\r\n background-color: #54d7ff;\r\n border-radius: 20px;\r\n border: 6px solid white;\r\n color: white;\r\n overflow: hidden;\r\n filter: none;\r\n text-shadow: rgba(0, 6, 95, 0.5) 0 2px 0;\r\n width: 250px;\r\n height: 250px;\r\n}\r\n\r\n.popup-button-ad-icon {\r\n content: "";\r\n width: 50px;\r\n height: 40px;\r\n background-size: cover;\r\n background-position: center;\r\n background-repeat: no-repeat;\r\n background-image: url('+wt+');\r\n right: -20px;\r\n top: -8px;\r\n transform: rotate(30deg);\r\n position: absolute;\r\n}\r\n\r\n.again-button-ad-icon {\r\n content: "";\r\n width: 50px;\r\n height: 40px;\r\n background-size: contain;\r\n background-position: center;\r\n background-repeat: no-repeat;\r\n background-image: url('+wt+');\r\n left: 2px;\r\n top: 0px;\r\n position: absolute;\r\n}\r\n\r\n.small-popup-ad-icon-halloween {\r\n content: "";\r\n width: 200px;\r\n height: 150px;\r\n background-size: contain;\r\n background-position: center;\r\n background-repeat: no-repeat;\r\n background-image: url('+wt+');\r\n right: -90px;\r\n top: -90px;\r\n transform: rotate(30deg);\r\n position: absolute;\r\n}\r\n\r\n.small-popup-ad-icon-christmas {\r\n content: "";\r\n width: 50px;\r\n height: 40px;\r\n background-size: contain;\r\n background-position: center;\r\n background-repeat: no-repeat;\r\n background-image: url('+wt+");\r\n right: -16px;\r\n top: -103px;\r\n transform: rotate(30deg);\r\n position: absolute;\r\n}\r\n\r\n.christmas-popup-button {\r\n margin-left: 15% !important;\r\n margin-right: 15% !important;\r\n margin-top: 180px !important;\r\n background-image: url("+yt+');\r\n width: 70%;\r\n background-size: contain;\r\n background-position: center;\r\n background-repeat: no-repeat;\r\n height: 70px;\r\n animation: halloween-popup-button 2.25s ease 1s infinite normal none;\r\n}\r\n\r\n@keyframes halloween-popup-button {\r\n 0% {\r\n }\r\n 7.5% {\r\n transform: scale(1.1);\r\n }\r\n 9% {\r\n transform: scale(1.1);\r\n }\r\n 19% {\r\n transform: scale(0.9);\r\n }\r\n 26% {\r\n transform: scale(1);\r\n }\r\n 34% {\r\n transform: scale(1);\r\n }\r\n 42% {\r\n transform: scale(1) rotate(5deg);\r\n }\r\n 48% {\r\n transform: scale(1) rotate(-5deg);\r\n }\r\n 54% {\r\n transform: scale(1) rotate(5deg);\r\n }\r\n 60% {\r\n transform: scale(1) rotate(-5deg);\r\n }\r\n 66% {\r\n transform: scale(1) rotate(0deg);\r\n }\r\n}\r\n\r\n.halloween-popup-image {\r\n position: absolute;\r\n width: 250px;\r\n height: 250px;\r\n}\r\n.christmas-popup-image {\r\n position: absolute;\r\n width: 250px;\r\n height: 250px;\r\n}\r\n\r\n.skin-unlocked-popup-halloween {\r\n border-color: white !important;\r\n}\r\n.equip-skin-button-halloween {\r\n border-color: #ffde00 !important;\r\n background-color: #e28700 !important;\r\n}\r\n\r\n.skin-unlocked-popup-halloween::before {\r\n content: "";\r\n background-color: #aa49d9 !important;\r\n background-image: url('+st+') !important;\r\n}\r\n\r\n.generic-popup {\r\n height: 65px;\r\n background-color: #3fa9f0;\r\n}\r\n\r\n.generic-popup > img {\r\n height: 128px;\r\n position: absolute;\r\n top: -50px;\r\n left: -28px;\r\n width: auto;\r\n}\r\n\r\n.generic-popup-halloween {\r\n background-color: #aa49d9 !important;\r\n}\r\n\r\n.generic-popup-christmas {\r\n background-color: #54d7ff !important;\r\n}\r\n\r\n.generic-popup-christmas > p {\r\n color: #000 !important;\r\n}\r\n\r\n.skin-unlocked-popup-christmas {\r\n border-color: white !important;\r\n color: #ffb429;\r\n}\r\n.skin-unlocked-popup-christmas > p {\r\n text-shadow: rgb(0 0 0 / 20%) 0 2px 0px;\r\n}\r\n\r\n.equip-skin-button-christmas {\r\n border-color: #ff710c !important;\r\n background: linear-gradient(180deg, #f7d13f, #ff9f00);\r\n}\r\n\r\n.skin-unlocked-popup-christmas::before {\r\n content: "";\r\n background-color: #54d7ff !important;\r\n background-image: url('+ht+") !important;\r\n}\r\n\r\n.share-button {\r\n color: white;\r\n padding: 9px 12px;\r\n font-size: 18px;\r\n font-weight: normal;\r\n width: 100px;\r\n height: 50px;\r\n background-image: url("+mt+");\r\n background-size: 100px 50px;\r\n}\r\n\r\n.victory {\r\n margin: auto;\r\n width: 300px;\r\n}\r\n\r\n.victory .shop-button {\r\n position: absolute;\r\n bottom: 15px;\r\n right: 4%;\r\n}\r\n\r\n.victory .share-button {\r\n position: absolute;\r\n bottom: 125px;\r\n left: 4%;\r\n font-size: 12px;\r\n}\r\n\r\n.leaderboard-button {\r\n color: white;\r\n padding: 10px 20px;\r\n font-size: 12px;\r\n font-weight: normal;\r\n width: 123px;\r\n height: 50px;\r\n background-image: url("+xt+');\r\n background-size: 123px 50px;\r\n}\r\n\r\n.victory .leaderboard-button {\r\n position: absolute;\r\n bottom: 65px;\r\n left: 4%;\r\n width: 100px;\r\n height: 50px;\r\n background-size: 100px 50px;\r\n font-size: 10px;\r\n padding: 10px 10px;\r\n}\r\n\r\n.leaderboard {\r\n height: 100%;\r\n overflow: auto;\r\n pointer-events: all;\r\n color: white;\r\n}\r\n\r\n.leaderboard h2,\r\n.leaderboard h3 {\r\n text-align: center;\r\n}\r\n\r\n.leaderboard .leaderboard-button {\r\n display: inline-block;\r\n margin: 0 5px 15px;\r\n}\r\n\r\n.leaderboard-entries {\r\n display: table;\r\n width: 100%;\r\n border-collapse: separate;\r\n border-spacing: 0 5px;\r\n}\r\n\r\n.leaderboard-row {\r\n display: table-row;\r\n background-color: rgba(0, 6, 95, 0.5);\r\n}\r\n\r\n.leaderboard-row.current {\r\n background-color: rgba(86, 255, 128, 0.5);\r\n}\r\n\r\n.leaderboard-col {\r\n display: table-cell;\r\n vertical-align: middle;\r\n padding: 5px;\r\n}\r\n\r\n.leaderboard-col.photo,\r\n.leaderboard-col.photo img {\r\n width: 50px;\r\n height: 50px;\r\n}\r\n\r\n.leaderboard-col.photo img {\r\n display: block;\r\n word-break: break-word;\r\n}\r\n\r\n.pagination {\r\n text-align: center;\r\n}\r\n\r\n.pagination .page-number {\r\n display: inline-block;\r\n width: 200px;\r\n margin: 20px 0;\r\n}\r\n\r\n.center {\r\n text-align: center;\r\n}\r\n\r\n.loading-ui {\r\n background-color: white;\r\n color: white;\r\n text-align: center;\r\n height: 100%;\r\n width: 100;\r\n margin: 0;\r\n}\r\n\r\n.loading-ui.fade-out {\r\n opacity: 0;\r\n transition: 1s ease-in;\r\n}\r\n\r\n.loading-ui > img {\r\n text-align: center;\r\n position: absolute;\r\n margin: auto;\r\n left: 0;\r\n right: 0;\r\n top: 0;\r\n bottom: 0;\r\n overflow: hidden;\r\n max-width: 100%;\r\n animation-name: fadeIn;\r\n animation-duration: 0.3s;\r\n animation-timing-function: ease-in;\r\n}\r\n\r\n.loading-ui > img.fade-out {\r\n opacity: 0;\r\n transition: 1s ease-in;\r\n}\r\n\r\n.loading-ui > img::before {\r\n content: "";\r\n position: absolute;\r\n width: 200%;\r\n height: 200%;\r\n top: -50%;\r\n left: -50%;\r\n}\r\n\r\n.loading-ui .title {\r\n margin-top: 0;\r\n padding-top: 100px;\r\n}\r\n\r\n.loading-ui .loading-bg {\r\n background-image: url('+nt+");\r\n background-size: 100% 100%;\r\n height: 100%;\r\n}\r\n\r\n.loading-text {\r\n filter: drop-shadow(0px 5px 0px rgba(0, 6, 95, 0.5));\r\n text-shadow: none;\r\n text-align: center;\r\n color: white;\r\n margin-top: 100px;\r\n}\r\n\r\n.loading-text > .load-icon {\r\n width: 14px;\r\n height: 14px;\r\n animation-name: spin;\r\n animation-duration: 1s;\r\n animation-iteration-count: infinite;\r\n animation-timing-function: linear;\r\n}\r\n\r\n.present-button {\r\n width: 50px;\r\n height: 50px;\r\n background-image: url("+vt+");\r\n background-size: 50px 50px;\r\n}\r\n\r\n.add-button {\r\n width: 65px;\r\n height: 65px;\r\n background-image: url("+bt+");\r\n background-size: 65px 65px;\r\n}\r\n\r\n.present-row {\r\n background: rgba(0, 6, 95, 0.5);\r\n padding: 0;\r\n color: white;\r\n}\r\n\r\n.present-row .present-button {\r\n margin-right: 15px;\r\n flex: 0 0 50px;\r\n}\r\n\r\n.present-row .add-button {\r\n margin-left: 15px;\r\n flex: 0 0 65px;\r\n filter: none;\r\n}\r\n\r\n.leaderboard-col.share {\r\n text-align: right;\r\n}\r\n\r\n.leaderboard-col.share .share-button {\r\n display: inline-block;\r\n padding: 10px;\r\n font-size: 12px;\r\n}\r\n\r\n.title-buttons .share-button {\r\n font-size: 12px;\r\n}\r\n\r\n.leaderboard .center .share-button {\r\n display: inline-block;\r\n margin: 0 5px 15px;\r\n vertical-align: bottom;\r\n}\r\n\r\n.store-links {\r\n color: white;\r\n text-align: center;\r\n max-width: 140px;\r\n display: block;\r\n position: fixed;\r\n top: 5px;\r\n right: 5px;\r\n}\r\n\r\n.store-links img {\r\n display: block;\r\n max-width: 140px;\r\n}\r\n\r\n@media (max-height: 420px) {\r\n .victory .title {\r\n display: none;\r\n }\r\n}\r\n\r\n@media (max-height: 500px) {\r\n .victory .title {\r\n height: 65px;\r\n width: auto;\r\n }\r\n}\r\n\r\n@media (max-height: 525px) {\r\n .victory .level-cleared {\r\n margin-top: 10px;\r\n font-size: 1em;\r\n }\r\n\r\n .title-buttons {\r\n bottom: 20px;\r\n }\r\n}\r\n\r\n@media (max-width: 600px) {\r\n .store-links {\r\n display: none;\r\n }\r\n}\r\n\r\n.random-skin-select {\r\n filter: brightness(0) invert();\r\n}\r\n\r\n.random-skin-select-halloween {\r\n filter: brightness(0) invert() sepia(1) saturate(100) hue-rotate(270deg)\r\n brightness(0.2);\r\n}\r\n\r\n/*TODO: Couleurs christmas*/\r\n.random-skin-select-christmas {\r\n filter: brightness(0) invert() sepia(1) saturate(100) hue-rotate(169deg)\r\n brightness(0.3) saturate(10);\r\n}\r\n\r\n.random-skin-white-flash {\r\n width: 101%;\r\n height: 100%;\r\n position: absolute;\r\n top: 0;\r\n background-color: white;\r\n animation: 4s cubic-bezier(0.55, 0, 1, 0.45) fadeIn;\r\n pointer-events: none;\r\n}\r\n\r\n.random-skin-white-flash-2 {\r\n width: 101%;\r\n height: 100%;\r\n position: absolute;\r\n top: 0;\r\n background-color: white;\r\n opacity: 0;\r\n animation: 0.1s ease-out fadeOut;\r\n pointer-events: none;\r\n}\r\n",""]),t.exports=e},function(t,e,n){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=function(t,e){var n=t[1]||"",A=t[3];if(!A)return n;if(e&&"function"==typeof btoa){var r=(o=A,a=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(a),"/*# ".concat(s," */")),i=A.sources.map((function(t){return"/*# sourceURL=".concat(A.sourceRoot||"").concat(t," */")}));return[n].concat(i).concat([r]).join("\n")}var o,a,s;return[n].join("\n")}(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,A){"string"==typeof t&&(t=[[null,t,""]]);var r={};if(A)for(var i=0;i=0&&u.splice(e,1)}function w(t){var e=document.createElement("style");if(void 0===t.attrs.type&&(t.attrs.type="text/css"),void 0===t.attrs.nonce){var A=function(){0;return n.nc}();A&&(t.attrs.nonce=A)}return y(e,t.attrs),f(t,e),e}function y(t,e){Object.keys(e).forEach((function(n){t.setAttribute(n,e[n])}))}function m(t,e){var n,A,r,i;if(e.transform&&t.css){if(!(i="function"==typeof e.transform?e.transform(t.css):e.transform.default(t.css)))return function(){};t.css=i}if(e.singleton){var o=c++;n=h||(h=w(e)),A=b.bind(null,n,o,!1),r=b.bind(null,n,o,!0)}else t.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(t){var e=document.createElement("link");return void 0===t.attrs.type&&(t.attrs.type="text/css"),t.attrs.rel="stylesheet",y(e,t.attrs),f(t,e),e}(e),A=B.bind(null,n,e),r=function(){g(n),n.href&&URL.revokeObjectURL(n.href)}):(n=w(e),A=C.bind(null,n),r=function(){g(n)});return A(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;A(t=e)}else r()}}t.exports=function(t,e){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(e=e||{}).attrs="object"==typeof e.attrs?e.attrs:{},e.singleton||"boolean"==typeof e.singleton||(e.singleton=o()),e.insertInto||(e.insertInto="head"),e.insertAt||(e.insertAt="bottom");var n=d(t,e);return p(n,e),function(t){for(var A=[],r=0;r=11&&(e=!0)}if(N.android.device){var A=navigator.userAgent.match(/Android\s([0-9.]*)/);if(A)parseInt(A[1],10)>=7&&(e=!0)}}return e?t:4}(32),SPRITE_BATCH_SIZE:4096,RENDER_OPTIONS:{view:null,antialias:!1,forceFXAA:!1,autoDensity:!1,transparent:!1,backgroundColor:0,clearBeforeRender:!0,preserveDrawingBuffer:!1,width:800,height:600,legacy:!1},GC_MODE:0,GC_MAX_IDLE:3600,GC_MAX_CHECK_COUNT:600,WRAP_MODE:33071,SCALE_MODE:1,PRECISION_VERTEX:"highp",PRECISION_FRAGMENT:N.apple.device?"highp":"mediump",CAN_UPLOAD_SAME_BUFFER:!N.apple.device,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1},et=n(28),nt=n.n(et),At=n(29),rt=n.n(At),it=n(14),ot=n.n(it);!function(t){t[t.WEBGL_LEGACY=0]="WEBGL_LEGACY",t[t.WEBGL=1]="WEBGL",t[t.WEBGL2=2]="WEBGL2"}(F||(F={})),function(t){t[t.UNKNOWN=0]="UNKNOWN",t[t.WEBGL=1]="WEBGL",t[t.CANVAS=2]="CANVAS"}(U||(U={})),function(t){t[t.NORMAL=0]="NORMAL",t[t.ADD=1]="ADD",t[t.MULTIPLY=2]="MULTIPLY",t[t.SCREEN=3]="SCREEN",t[t.OVERLAY=4]="OVERLAY",t[t.DARKEN=5]="DARKEN",t[t.LIGHTEN=6]="LIGHTEN",t[t.COLOR_DODGE=7]="COLOR_DODGE",t[t.COLOR_BURN=8]="COLOR_BURN",t[t.HARD_LIGHT=9]="HARD_LIGHT",t[t.SOFT_LIGHT=10]="SOFT_LIGHT",t[t.DIFFERENCE=11]="DIFFERENCE",t[t.EXCLUSION=12]="EXCLUSION",t[t.HUE=13]="HUE",t[t.SATURATION=14]="SATURATION",t[t.COLOR=15]="COLOR",t[t.LUMINOSITY=16]="LUMINOSITY",t[t.NORMAL_NPM=17]="NORMAL_NPM",t[t.ADD_NPM=18]="ADD_NPM",t[t.SCREEN_NPM=19]="SCREEN_NPM",t[t.NONE=20]="NONE",t[t.SRC_OVER=0]="SRC_OVER",t[t.SRC_IN=21]="SRC_IN",t[t.SRC_OUT=22]="SRC_OUT",t[t.SRC_ATOP=23]="SRC_ATOP",t[t.DST_OVER=24]="DST_OVER",t[t.DST_IN=25]="DST_IN",t[t.DST_OUT=26]="DST_OUT",t[t.DST_ATOP=27]="DST_ATOP",t[t.ERASE=26]="ERASE",t[t.SUBTRACT=28]="SUBTRACT",t[t.XOR=29]="XOR"}(j||(j={})),function(t){t[t.POINTS=0]="POINTS",t[t.LINES=1]="LINES",t[t.LINE_LOOP=2]="LINE_LOOP",t[t.LINE_STRIP=3]="LINE_STRIP",t[t.TRIANGLES=4]="TRIANGLES",t[t.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",t[t.TRIANGLE_FAN=6]="TRIANGLE_FAN"}(G||(G={})),function(t){t[t.RGBA=6408]="RGBA",t[t.RGB=6407]="RGB",t[t.ALPHA=6406]="ALPHA",t[t.LUMINANCE=6409]="LUMINANCE",t[t.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",t[t.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",t[t.DEPTH_STENCIL=34041]="DEPTH_STENCIL"}(Y||(Y={})),function(t){t[t.TEXTURE_2D=3553]="TEXTURE_2D",t[t.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",t[t.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",t[t.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",t[t.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",t[t.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",t[t.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",t[t.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z"}(J||(J={})),function(t){t[t.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",t[t.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",t[t.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",t[t.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",t[t.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",t[t.FLOAT=5126]="FLOAT",t[t.HALF_FLOAT=36193]="HALF_FLOAT"}(X||(X={})),function(t){t[t.NEAREST=0]="NEAREST",t[t.LINEAR=1]="LINEAR"}(K||(K={})),function(t){t[t.CLAMP=33071]="CLAMP",t[t.REPEAT=10497]="REPEAT",t[t.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT"}(V||(V={})),function(t){t[t.OFF=0]="OFF",t[t.POW2=1]="POW2",t[t.ON=2]="ON"}(W||(W={})),function(t){t[t.NPM=0]="NPM",t[t.UNPACK=1]="UNPACK",t[t.PMA=2]="PMA",t[t.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",t[t.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",t[t.PREMULTIPLY_ALPHA=2]="PREMULTIPLY_ALPHA"}(_||(_={})),function(t){t[t.AUTO=0]="AUTO",t[t.MANUAL=1]="MANUAL"}(Z||(Z={})),function(t){t.LOW="lowp",t.MEDIUM="mediump",t.HIGH="highp"}(q||(q={})),function(t){t[t.NONE=0]="NONE",t[t.SCISSOR=1]="SCISSOR",t[t.STENCIL=2]="STENCIL",t[t.SPRITE=3]="SPRITE"}($||($={})), /*! * @pixi/utils - v5.2.1 * Compiled Tue, 28 Jan 2020 23:33:11 UTC * * @pixi/utils is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license */ tt.RETINA_PREFIX=/@([0-9\.]+)x/,tt.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!0;var at,st=!1;function ht(){st=!0}function ct(t){}function ut(){return void 0===at&&(at=function(){var t={stencil:!0,failIfMajorPerformanceCaveat:tt.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!window.WebGLRenderingContext)return!1;var e=document.createElement("canvas"),n=e.getContext("webgl",t)||e.getContext("experimental-webgl",t),A=!(!n||!n.getContextAttributes().stencil);if(n){var r=n.getExtension("WEBGL_lose_context");r&&r.loseContext()}return n=null,A}catch(t){return!1}}()),at}function lt(t,e){return(e=e||[])[0]=(t>>16&255)/255,e[1]=(t>>8&255)/255,e[2]=(255&t)/255,e}function pt(t){var e=t.toString(16);return"#"+(e="000000".substr(0,6-e.length)+e)}function dt(t){return"string"==typeof t&&"#"===t[0]&&(t=t.substr(1)),parseInt(t,16)}function ft(t){return(255*t[0]<<16)+(255*t[1]<<8)+(255*t[2]|0)}var gt=function(){for(var t=[],e=[],n=0;n<32;n++)t[n]=n,e[n]=n;t[j.NORMAL_NPM]=j.NORMAL,t[j.ADD_NPM]=j.ADD,t[j.SCREEN_NPM]=j.SCREEN,e[j.NORMAL]=j.NORMAL_NPM,e[j.ADD]=j.ADD_NPM,e[j.SCREEN]=j.SCREEN_NPM;var A=[];return A.push(e),A.push(t),A}();function wt(t,e){return gt[e?1:0][t]}function yt(t,e,n,A){return n=n||new Float32Array(4),A||void 0===A?(n[0]=t[0]*e,n[1]=t[1]*e,n[2]=t[2]*e):(n[0]=t[0],n[1]=t[1],n[2]=t[2]),n[3]=e,n}function mt(t,e){if(1===e)return(255*e<<24)+t;if(0===e)return 0;var n=t>>16&255,A=t>>8&255,r=255&t;return(255*e<<24)+((n=n*e+.5|0)<<16)+((A=A*e+.5|0)<<8)+(r=r*e+.5|0)}function xt(t,e,n,A){return(n=n||new Float32Array(4))[0]=(t>>16&255)/255,n[1]=(t>>8&255)/255,n[2]=(255&t)/255,(A||void 0===A)&&(n[0]*=e,n[1]*=e,n[2]*=e),n[3]=e,n}function vt(t,e){void 0===e&&(e=null);var n=6*t;if((e=e||new Uint16Array(n)).length!==n)throw new Error("Out buffer length is incorrect, got "+e.length+" and expected "+n);for(var A=0,r=0;A>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,(t|=t>>>16)+1}function Et(t){return!(t&t-1||!t)}function Dt(t){var e=(t>65535?1:0)<<4,n=((t>>>=e)>255?1:0)<<3;return e|=n,e|=n=((t>>>=n)>15?1:0)<<2,(e|=n=((t>>>=n)>3?1:0)<<1)|(t>>>=n)>>1}function It(t,e,n){var A,r=t.length;if(!(e>=r||0===n)){var i=r-(n=e+n>r?r-e:n);for(A=e;A=0?oe.S:oe.N:2*Math.abs(e)<=Math.abs(t)?t>0?oe.E:oe.W:e>0?t>0?oe.SE:oe.SW:t>0?oe.NE:oe.NW},matrixAppendRotationInv:function(t,e,n,A){void 0===n&&(n=0),void 0===A&&(A=0);var r=re[oe.inv(e)];r.tx=n,r.ty=A,t.append(r)}},ae=function(){function t(){this.worldTransform=new qt,this.localTransform=new qt,this.position=new Vt(this.onChange,this,0,0),this.scale=new Vt(this.onChange,this,1,1),this.pivot=new Vt(this.onChange,this,0,0),this.skew=new Vt(this.updateSkew,this,0,0),this._rotation=0,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._localID=0,this._currentLocalID=0,this._worldID=0,this._parentID=0}return t.prototype.onChange=function(){this._localID++},t.prototype.updateSkew=function(){this._cx=Math.cos(this._rotation+this.skew.y),this._sx=Math.sin(this._rotation+this.skew.y),this._cy=-Math.sin(this._rotation-this.skew.x),this._sy=Math.cos(this._rotation-this.skew.x),this._localID++},t.prototype.updateLocalTransform=function(){var t=this.localTransform;this._localID!==this._currentLocalID&&(t.a=this._cx*this.scale.x,t.b=this._sx*this.scale.x,t.c=this._cy*this.scale.y,t.d=this._sy*this.scale.y,t.tx=this.position.x-(this.pivot.x*t.a+this.pivot.y*t.c),t.ty=this.position.y-(this.pivot.x*t.b+this.pivot.y*t.d),this._currentLocalID=this._localID,this._parentID=-1)},t.prototype.updateTransform=function(t){var e=this.localTransform;if(this._localID!==this._currentLocalID&&(e.a=this._cx*this.scale.x,e.b=this._sx*this.scale.x,e.c=this._cy*this.scale.y,e.d=this._sy*this.scale.y,e.tx=this.position.x-(this.pivot.x*e.a+this.pivot.y*e.c),e.ty=this.position.y-(this.pivot.x*e.b+this.pivot.y*e.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==t._worldID){var n=t.worldTransform,A=this.worldTransform;A.a=e.a*n.a+e.b*n.c,A.b=e.a*n.b+e.b*n.d,A.c=e.c*n.a+e.d*n.c,A.d=e.c*n.b+e.d*n.d,A.tx=e.tx*n.a+e.ty*n.c+n.tx,A.ty=e.tx*n.b+e.ty*n.d+n.ty,this._parentID=t._worldID,this._worldID++}},t.prototype.setFromMatrix=function(t){t.decompose(this),this._localID++},Object.defineProperty(t.prototype,"rotation",{get:function(){return this._rotation},set:function(t){this._rotation!==t&&(this._rotation=t,this.updateSkew())},enumerable:!0,configurable:!0}),t.IDENTITY=new t,t}(),se=function(){function t(t,e,n,A){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===A&&(A=0),this.x=Number(t),this.y=Number(e),this.width=Number(n),this.height=Number(A),this.type=Xt.RECT}return Object.defineProperty(t.prototype,"left",{get:function(){return this.x},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"right",{get:function(){return this.x+this.width},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"top",{get:function(){return this.y},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"bottom",{get:function(){return this.y+this.height},enumerable:!0,configurable:!0}),Object.defineProperty(t,"EMPTY",{get:function(){return new t(0,0,0,0)},enumerable:!0,configurable:!0}),t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.copyFrom=function(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this},t.prototype.copyTo=function(t){return t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t},t.prototype.contains=function(t,e){return!(this.width<=0||this.height<=0)&&(t>=this.x&&t=this.y&&ee!=h>e&&t<(e-a)/(h-a)*(s-o)+o&&(n=!n)}return n},t}(),le=function(){function t(t,e,n,A,r){void 0===t&&(t=0),void 0===e&&(e=0),void 0===n&&(n=0),void 0===A&&(A=0),void 0===r&&(r=20),this.x=t,this.y=e,this.width=n,this.height=A,this.radius=r,this.type=Xt.RREC}return t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height,this.radius)},t.prototype.contains=function(t,e){if(this.width<=0||this.height<=0)return!1;if(t>=this.x&&t<=this.x+this.width&&e>=this.y&&e<=this.y+this.height){if(e>=this.y+this.radius&&e<=this.y+this.height-this.radius||t>=this.x+this.radius&&t<=this.x+this.width-this.radius)return!0;var n=t-(this.x+this.radius),A=e-(this.y+this.radius),r=this.radius*this.radius;if(n*n+A*A<=r)return!0;if((n=t-(this.x+this.width-this.radius))*n+A*A<=r)return!0;if(n*n+(A=e-(this.y+this.height-this.radius))*A<=r)return!0;if((n=t-(this.x+this.radius))*n+A*A<=r)return!0}return!1},t}(); /*! * @pixi/display - v5.2.1 * Compiled Tue, 28 Jan 2020 23:33:11 UTC * * @pixi/display is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license */ tt.SORTABLE_CHILDREN=!1;var pe=function(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null};pe.prototype.isEmpty=function(){return this.minX>this.maxX||this.minY>this.maxY},pe.prototype.clear=function(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0},pe.prototype.getRectangle=function(t){return this.minX>this.maxX||this.minY>this.maxY?se.EMPTY:((t=t||new se(0,0,1,1)).x=this.minX,t.y=this.minY,t.width=this.maxX-this.minX,t.height=this.maxY-this.minY,t)},pe.prototype.addPoint=function(t){this.minX=Math.min(this.minX,t.x),this.maxX=Math.max(this.maxX,t.x),this.minY=Math.min(this.minY,t.y),this.maxY=Math.max(this.maxY,t.y)},pe.prototype.addQuad=function(t){var e=this.minX,n=this.minY,A=this.maxX,r=this.maxY,i=t[0],o=t[1];e=iA?i:A,r=o>r?o:r,e=(i=t[2])A?i:A,r=o>r?o:r,e=(i=t[4])A?i:A,r=o>r?o:r,e=(i=t[6])A?i:A,r=o>r?o:r,this.minX=e,this.minY=n,this.maxX=A,this.maxY=r},pe.prototype.addFrame=function(t,e,n,A,r){this.addFrameMatrix(t.worldTransform,e,n,A,r)},pe.prototype.addFrameMatrix=function(t,e,n,A,r){var i=t.a,o=t.b,a=t.c,s=t.d,h=t.tx,c=t.ty,u=this.minX,l=this.minY,p=this.maxX,d=this.maxY,f=i*e+a*n+h,g=o*e+s*n+c;u=fp?f:p,d=g>d?g:d,u=(f=i*A+a*n+h)p?f:p,d=g>d?g:d,u=(f=i*e+a*r+h)p?f:p,d=g>d?g:d,u=(f=i*A+a*r+h)p?f:p,d=g>d?g:d,this.minX=u,this.minY=l,this.maxX=p,this.maxY=d},pe.prototype.addVertexData=function(t,e,n){for(var A=this.minX,r=this.minY,i=this.maxX,o=this.maxY,a=e;ai?s:i,o=h>o?h:o}this.minX=A,this.minY=r,this.maxX=i,this.maxY=o},pe.prototype.addVertices=function(t,e,n,A){this.addVerticesMatrix(t.worldTransform,e,n,A)},pe.prototype.addVerticesMatrix=function(t,e,n,A,r,i){var o=t.a,a=t.b,s=t.c,h=t.d,c=t.tx,u=t.ty;r=r||0,i=i||0;for(var l=this.minX,p=this.minY,d=this.maxX,f=this.maxY,g=n;gA?t.maxX:A,this.maxY=t.maxY>r?t.maxY:r},pe.prototype.addBoundsMask=function(t,e){var n=t.minX>e.minX?t.minX:e.minX,A=t.minY>e.minY?t.minY:e.minY,r=t.maxXs?r:s,this.maxY=i>h?i:h}},pe.prototype.addBoundsMatrix=function(t,e){this.addFrameMatrix(e,t.minX,t.minY,t.maxX,t.maxY)},pe.prototype.addBoundsArea=function(t,e){var n=t.minX>e.x?t.minX:e.x,A=t.minY>e.y?t.minY:e.y,r=t.maxXs?r:s,this.maxY=i>h?i:h}},pe.prototype.pad=function(t,e){t=t||0,e=e||(0!==e?t:0),this.isEmpty()||(this.minX-=t,this.maxX+=t,this.minY-=e,this.maxY+=e)},pe.prototype.addFramePad=function(t,e,n,A,r,i){t-=r,e-=i,n+=r,A+=i,this.minX=this.minXn?this.maxX:n,this.minY=this.minYA?this.maxY:A};var de=function(t){function e(){t.call(this),this.tempDisplayObjectParent=null,this.transform=new ae,this.alpha=1,this.visible=!0,this.renderable=!0,this.parent=null,this.worldAlpha=1,this._lastSortedIndex=0,this._zIndex=0,this.filterArea=null,this.filters=null,this._enabledFilters=null,this._bounds=new pe,this._boundsID=0,this._lastBoundsID=-1,this._boundsRect=null,this._localBoundsRect=null,this._mask=null,this._destroyed=!1,this.isSprite=!1,this.isMask=!1}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={_tempDisplayObjectParent:{configurable:!0},x:{configurable:!0},y:{configurable:!0},worldTransform:{configurable:!0},localTransform:{configurable:!0},position:{configurable:!0},scale:{configurable:!0},pivot:{configurable:!0},skew:{configurable:!0},rotation:{configurable:!0},angle:{configurable:!0},zIndex:{configurable:!0},worldVisible:{configurable:!0},mask:{configurable:!0}};return e.mixin=function(t){for(var n=Object.keys(t),A=0;A1)for(var A=0;Athis.children.length)throw new Error(t+"addChildAt: The index "+e+" supplied is out of bounds "+this.children.length);return t.parent&&t.parent.removeChild(t),t.parent=this,this.sortDirty=!0,t.transform._parentID=-1,this.children.splice(e,0,t),this._boundsID++,this.onChildrenChange(e),t.emit("added",this),this.emit("childAdded",t,this,e),t},e.prototype.swapChildren=function(t,e){if(t!==e){var n=this.getChildIndex(t),A=this.getChildIndex(e);this.children[n]=e,this.children[A]=t,this.onChildrenChange(n=this.children.length)throw new Error("The index "+e+" supplied is out of bounds "+this.children.length);var n=this.getChildIndex(t);It(this.children,n,1),this.children.splice(e,0,t),this.onChildrenChange(e)},e.prototype.getChildAt=function(t){if(t<0||t>=this.children.length)throw new Error("getChildAt: Index ("+t+") does not exist.");return this.children[t]},e.prototype.removeChild=function(t){var e=arguments,n=arguments.length;if(n>1)for(var A=0;A0&&i<=r){n=this.children.splice(A,i);for(var o=0;o1&&this.children.sort(fe),this.sortDirty=!1},e.prototype.updateTransform=function(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(var t=0,e=this.children.length;t title : "+t.title+"
tabIndex: "+t.tabIndex},we.prototype.capHitArea=function(t){t.x<0&&(t.width+=t.x,t.x=0),t.y<0&&(t.height+=t.y,t.y=0),t.x+t.width>this.renderer.width&&(t.width=this.renderer.width-t.x),t.y+t.height>this.renderer.height&&(t.height=this.renderer.height-t.y)},we.prototype.addChild=function(t){var e=this.pool.pop();e||((e=document.createElement("button")).style.width="100px",e.style.height="100px",e.style.backgroundColor=this.debug?"rgba(255,255,255,0.5)":"transparent",e.style.position="absolute",e.style.zIndex=2,e.style.borderStyle="none",navigator.userAgent.toLowerCase().indexOf("chrome")>-1?e.setAttribute("aria-live","off"):e.setAttribute("aria-live","polite"),navigator.userAgent.match(/rv:.*Gecko\//)?e.setAttribute("aria-relevant","additions"):e.setAttribute("aria-relevant","text"),e.addEventListener("click",this._onClick.bind(this)),e.addEventListener("focus",this._onFocus.bind(this)),e.addEventListener("focusout",this._onFocusOut.bind(this))),e.style.pointerEvents=t.accessiblePointerEvents,e.type=t.accessibleType,t.accessibleTitle&&null!==t.accessibleTitle?e.title=t.accessibleTitle:t.accessibleHint&&null!==t.accessibleHint||(e.title="displayObject "+t.tabIndex),t.accessibleHint&&null!==t.accessibleHint&&e.setAttribute("aria-label",t.accessibleHint),this.debug&&this.updateDebugHTML(e),t._accessibleActive=!0,t._accessibleDiv=e,e.displayObject=t,this.children.push(t),this.div.appendChild(t._accessibleDiv),t._accessibleDiv.tabIndex=t.tabIndex},we.prototype._onClick=function(t){var e=this.renderer.plugins.interaction;e.dispatchEvent(t.target.displayObject,"click",e.eventData),e.dispatchEvent(t.target.displayObject,"pointertap",e.eventData),e.dispatchEvent(t.target.displayObject,"tap",e.eventData)},we.prototype._onFocus=function(t){t.target.getAttribute("aria-live","off")||t.target.setAttribute("aria-live","assertive");var e=this.renderer.plugins.interaction;e.dispatchEvent(t.target.displayObject,"mouseover",e.eventData)},we.prototype._onFocusOut=function(t){t.target.getAttribute("aria-live","off")||t.target.setAttribute("aria-live","polite");var e=this.renderer.plugins.interaction;e.dispatchEvent(t.target.displayObject,"mouseout",e.eventData)},we.prototype._onKeyDown=function(t){9===t.keyCode&&this.activate()},we.prototype._onMouseMove=function(t){0===t.movementX&&0===t.movementY||this.deactivate()},we.prototype.destroy=function(){this.destroyTouchHook(),this.div=null;for(var t=0;t8)throw new Error("max arguments reached");var s=this,h=s.name,c=s.items;this._aliasCount++;for(var u=0,l=c.length;u0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))},t.prototype.add=function(t){return t[this._name]&&(this.ensureNonAliasedItems(),this.remove(t),this.items.push(t)),this},t.prototype.remove=function(t){var e=this.items.indexOf(t);return-1!==e&&(this.ensureNonAliasedItems(),this.items.splice(e,1)),this},t.prototype.contains=function(t){return-1!==this.items.indexOf(t)},t.prototype.removeAll=function(){return this.ensureNonAliasedItems(),this.items.length=0,this},t.prototype.destroy=function(){this.removeAll(),this.items=null,this._name=null},Object.defineProperty(t.prototype,"empty",{get:function(){return 0===this.items.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),t}();Object.defineProperties(me.prototype,{dispatch:{value:me.prototype.emit},run:{value:me.prototype.emit}}), /*! * @pixi/ticker - v5.2.1 * Compiled Tue, 28 Jan 2020 23:33:11 UTC * * @pixi/ticker is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license */ tt.TARGET_FPMS=.06,function(t){t[t.INTERACTION=50]="INTERACTION",t[t.HIGH=25]="HIGH",t[t.NORMAL=0]="NORMAL",t[t.LOW=-25]="LOW",t[t.UTILITY=-50]="UTILITY"}(ye||(ye={}));var xe=function(){function t(t,e,n,A){void 0===e&&(e=null),void 0===n&&(n=0),void 0===A&&(A=!1),this.fn=t,this.context=e,this.priority=n,this.once=A,this.next=null,this.previous=null,this._destroyed=!1}return t.prototype.match=function(t,e){return void 0===e&&(e=null),this.fn===t&&this.context===e},t.prototype.emit=function(t){this.fn&&(this.context?this.fn.call(this.context,t):this.fn(t));var e=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),e},t.prototype.connect=function(t){this.previous=t,t.next&&(t.next.previous=this),this.next=t.next,t.next=this},t.prototype.destroy=function(t){void 0===t&&(t=!1),this._destroyed=!0,this.fn=null,this.context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);var e=this.next;return this.next=t?null:e,this.previous=null,e},t}(),ve=function(){function t(){var t=this;this._head=new xe(null,null,1/0),this._requestId=null,this._maxElapsedMS=100,this._minElapsedMS=0,this.autoStart=!1,this.deltaTime=1,this.deltaMS=1/tt.TARGET_FPMS,this.elapsedMS=1/tt.TARGET_FPMS,this.lastTime=-1,this.speed=1,this.started=!1,this._protected=!1,this._lastFrame=-1,this._tick=function(e){t._requestId=null,t.started&&(t.update(e),t.started&&null===t._requestId&&t._head.next&&(t._requestId=requestAnimationFrame(t._tick)))}}return t.prototype._requestIfNeeded=function(){null===this._requestId&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))},t.prototype._cancelIfNeeded=function(){null!==this._requestId&&(cancelAnimationFrame(this._requestId),this._requestId=null)},t.prototype._startIfPossible=function(){this.started?this._requestIfNeeded():this.autoStart&&this.start()},t.prototype.add=function(t,e,n){return void 0===n&&(n=ye.NORMAL),this._addListener(new xe(t,e,n))},t.prototype.addOnce=function(t,e,n){return void 0===n&&(n=ye.NORMAL),this._addListener(new xe(t,e,n,!0))},t.prototype._addListener=function(t){var e=this._head.next,n=this._head;if(e){for(;e;){if(t.priority>e.priority){t.connect(n);break}n=e,e=e.next}t.previous||t.connect(n)}else t.connect(n);return this._startIfPossible(),this},t.prototype.remove=function(t,e){for(var n=this._head.next;n;)n=n.match(t,e)?n.destroy():n.next;return this._head.next||this._cancelIfNeeded(),this},Object.defineProperty(t.prototype,"count",{get:function(){if(!this._head)return 0;for(var t=0,e=this._head;e=e.next;)t++;return t},enumerable:!0,configurable:!0}),t.prototype.start=function(){this.started||(this.started=!0,this._requestIfNeeded())},t.prototype.stop=function(){this.started&&(this.started=!1,this._cancelIfNeeded())},t.prototype.destroy=function(){if(!this._protected){this.stop();for(var t=this._head.next;t;)t=t.destroy(!0);this._head.destroy(),this._head=null}},t.prototype.update=function(t){var e;if(void 0===t&&(t=performance.now()),t>this.lastTime){if((e=this.elapsedMS=t-this.lastTime)>this._maxElapsedMS&&(e=this._maxElapsedMS),e*=this.speed,this._minElapsedMS){var n=t-this._lastFrame|0;if(n=0;--r){var i=De[r];if(i.test&&i.test(t,n))return new i(t,e)}return new Ee(t,e)}var ke=function(t){function e(e,n){var A=n||{},r=A.width,i=A.height;if(!r||!i)throw new Error("BufferResource width or height invalid");t.call(this,r,i),this.data=e}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.upload=function(t,e,n){var A=t.gl;return A.pixelStorei(A.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e.alphaMode===_.UNPACK),n.width===e.width&&n.height===e.height?A.texSubImage2D(e.target,0,0,0,e.width,e.height,e.format,e.type,this.data):(n.width=e.width,n.height=e.height,A.texImage2D(e.target,0,n.internalFormat,e.width,e.height,0,e.format,n.type,this.data)),!0},e.prototype.dispose=function(){this.data=null},e.test=function(t){return t instanceof Float32Array||t instanceof Uint8Array||t instanceof Uint32Array},e}(Ce),Pe={scaleMode:K.NEAREST,format:Y.RGBA,alphaMode:_.NPM},Te=function(t){function e(e,n){void 0===e&&(e=null),void 0===n&&(n=null),t.call(this);var A=(n=n||{}).alphaMode,r=n.mipmap,i=n.anisotropicLevel,o=n.scaleMode,a=n.width,s=n.height,h=n.wrapMode,c=n.format,u=n.type,l=n.target,p=n.resolution,d=n.resourceOptions;!e||e instanceof Ce||((e=Ie(e,d)).internal=!0),this.width=a||0,this.height=s||0,this.resolution=p||tt.RESOLUTION,this.mipmap=void 0!==r?r:tt.MIPMAP_TEXTURES,this.anisotropicLevel=void 0!==i?i:tt.ANISOTROPIC_LEVEL,this.wrapMode=h||tt.WRAP_MODE,this.scaleMode=void 0!==o?o:tt.SCALE_MODE,this.format=c||Y.RGBA,this.type=u||X.UNSIGNED_BYTE,this.target=l||J.TEXTURE_2D,this.alphaMode=void 0!==A?A:_.UNPACK,void 0!==n.premultiplyAlpha&&(this.premultiplyAlpha=n.premultiplyAlpha),this.uid=Tt(),this.touched=0,this.isPowerOfTwo=!1,this._refreshPOT(),this._glTextures={},this.dirtyId=0,this.dirtyStyleId=0,this.cacheId=null,this.valid=a>0&&s>0,this.textureCacheIds=[],this.destroyed=!1,this.resource=null,this._batchEnabled=0,this._batchLocation=0,this.setResource(e)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={realWidth:{configurable:!0},realHeight:{configurable:!0}};return n.realWidth.get=function(){return Math.ceil(this.width*this.resolution-1e-4)},n.realHeight.get=function(){return Math.ceil(this.height*this.resolution-1e-4)},e.prototype.setStyle=function(t,e){var n;return void 0!==t&&t!==this.scaleMode&&(this.scaleMode=t,n=!0),void 0!==e&&e!==this.mipmap&&(this.mipmap=e,n=!0),n&&this.dirtyStyleId++,this},e.prototype.setSize=function(t,e,n){return this.resolution=n||this.resolution,this.width=t,this.height=e,this._refreshPOT(),this.update(),this},e.prototype.setRealSize=function(t,e,n){return this.resolution=n||this.resolution,this.width=t/this.resolution,this.height=e/this.resolution,this._refreshPOT(),this.update(),this},e.prototype._refreshPOT=function(){this.isPowerOfTwo=Et(this.realWidth)&&Et(this.realHeight)},e.prototype.setResolution=function(t){var e=this.resolution;return e===t?this:(this.resolution=t,this.valid&&(this.width=this.width*e/t,this.height=this.height*e/t,this.emit("update",this)),this._refreshPOT(),this)},e.prototype.setResource=function(t){if(this.resource===t)return this;if(this.resource)throw new Error("Resource can be set only once");return t.bind(this),this.resource=t,this},e.prototype.update=function(){this.valid?(this.dirtyId++,this.dirtyStyleId++,this.emit("update",this)):this.width>0&&this.height>0&&(this.valid=!0,this.emit("loaded",this),this.emit("update",this))},e.prototype.onError=function(t){this.emit("error",this,t)},e.prototype.destroy=function(){this.resource&&(this.resource.unbind(this),this.resource.internal&&this.resource.destroy(),this.resource=null),this.cacheId&&(delete zt[this.cacheId],delete Rt[this.cacheId],this.cacheId=null),this.dispose(),e.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0},e.prototype.dispose=function(){this.emit("dispose",this)},e.from=function(t,n,A){void 0===A&&(A=tt.STRICT_TEXTURE_CACHE);var r="string"==typeof t,i=null;r?i=t:(t._pixiId||(t._pixiId="pixiid_"+Tt()),i=t._pixiId);var o=zt[i];if(r&&A&&!o)throw new Error('The cacheId "'+i+'" does not exist in BaseTextureCache.');return o||((o=new e(t,n)).cacheId=i,e.addToCache(o,i)),o},e.fromBuffer=function(t,n,A,r){t=t||new Float32Array(n*A*4);var i=new ke(t,{width:n,height:A}),o=t instanceof Float32Array?X.FLOAT:X.UNSIGNED_BYTE;return new e(i,Object.assign(Pe,r||{width:n,height:A,type:o}))},e.addToCache=function(t,e){e&&(-1===t.textureCacheIds.indexOf(e)&&t.textureCacheIds.push(e),zt[e]&&console.warn("BaseTexture added to the cache with an id ["+e+"] that already had an entry"),zt[e]=t)},e.removeFromCache=function(t){if("string"==typeof t){var e=zt[t];if(e){var n=e.textureCacheIds.indexOf(t);return n>-1&&e.textureCacheIds.splice(n,1),delete zt[t],e}}else if(t&&t.textureCacheIds){for(var A=0;A]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i;var ze=function(t){function e(e,n){if(n=n||{},!(e instanceof HTMLVideoElement)){var A=document.createElement("video");A.setAttribute("preload","auto"),A.setAttribute("webkit-playsinline",""),A.setAttribute("playsinline",""),"string"==typeof e&&(e=[e]),t.crossOrigin(A,e[0].src||e[0],n.crossorigin);for(var r=0;r0&&!1===t.paused&&!1===t.ended&&t.readyState>2},e.prototype._isSourceReady=function(){return 3===this.source.readyState||4===this.source.readyState},e.prototype._onPlayStart=function(){this.valid||this._onCanPlay(),!this._isAutoUpdating&&this.autoUpdate&&(ve.shared.add(this.update,this),this._isAutoUpdating=!0)},e.prototype._onPlayStop=function(){this._isAutoUpdating&&(ve.shared.remove(this.update,this),this._isAutoUpdating=!1)},e.prototype._onCanPlay=function(){var t=this.source;t.removeEventListener("canplay",this._onCanPlay),t.removeEventListener("canplaythrough",this._onCanPlay);var e=this.valid;this.resize(t.videoWidth,t.videoHeight),!e&&this._resolve&&(this._resolve(this),this._resolve=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&t.play()},e.prototype.dispose=function(){this._isAutoUpdating&&ve.shared.remove(this.update,this),this.source&&(this.source.removeEventListener("error",this._onError,!0),this.source.pause(),this.source.src="",this.source.load()),t.prototype.dispose.call(this)},n.autoUpdate.get=function(){return this._autoUpdate},n.autoUpdate.set=function(t){t!==this._autoUpdate&&(this._autoUpdate=t,!this._autoUpdate&&this._isAutoUpdating?(ve.shared.remove(this.update,this),this._isAutoUpdating=!1):this._autoUpdate&&!this._isAutoUpdating&&(ve.shared.add(this.update,this),this._isAutoUpdating=!0))},n.updateFPS.get=function(){return this._updateFPS},n.updateFPS.set=function(t){t!==this._updateFPS&&(this._updateFPS=t)},e.test=function(t,n){return t instanceof HTMLVideoElement||e.TYPES.indexOf(n)>-1},Object.defineProperties(e.prototype,n),e}(Se);ze.TYPES=["mp4","m4v","webm","ogg","ogv","h264","avi","mov"];var He=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.test=function(t){return!!window.createImageBitmap&&t instanceof ImageBitmap},e}(Se);De.push(Ee,He,Oe,ze,Re,ke,Qe,Me);var Le=function(t){this.renderer=t};Le.prototype.destroy=function(){this.renderer=null};var Ne=function(t){function e(){t.apply(this,arguments)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.upload=function(t,e,n){var A=t.gl;return A.pixelStorei(A.UNPACK_PREMULTIPLY_ALPHA_WEBGL,e.alphaMode===_.UNPACK),n.width===e.width&&n.height===e.height?A.texSubImage2D(e.target,0,0,0,e.width,e.height,e.format,e.type,this.data):(n.width=e.width,n.height=e.height,A.texImage2D(e.target,0,A.DEPTH_COMPONENT16,e.width,e.height,0,e.format,e.type,this.data)),!0},e}(ke),Fe=function(t,e){this.width=Math.ceil(t||100),this.height=Math.ceil(e||100),this.stencil=!1,this.depth=!1,this.dirtyId=0,this.dirtyFormat=0,this.dirtySize=0,this.depthTexture=null,this.colorTextures=[],this.glFramebuffers={},this.disposeRunner=new me("disposeFramebuffer",2)},Ue={colorTexture:{configurable:!0}};Ue.colorTexture.get=function(){return this.colorTextures[0]},Fe.prototype.addColorTexture=function(t,e){return void 0===t&&(t=0),this.colorTextures[t]=e||new Te(null,{scaleMode:0,resolution:1,mipmap:!1,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this},Fe.prototype.addDepthTexture=function(t){return this.depthTexture=t||new Te(new Ne(null,{width:this.width,height:this.height}),{scaleMode:0,resolution:1,width:this.width,height:this.height,mipmap:!1,format:Y.DEPTH_COMPONENT,type:X.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this},Fe.prototype.enableDepth=function(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this},Fe.prototype.enableStencil=function(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this},Fe.prototype.resize=function(t,e){if(t=Math.ceil(t),e=Math.ceil(e),t!==this.width||e!==this.height){this.width=t,this.height=e,this.dirtyId++,this.dirtySize++;for(var n=0;n-1&&e.textureCacheIds.splice(n,1),delete Rt[t],e}}else if(t&&t.textureCacheIds){for(var A=0;Athis.baseTexture.width,o=n+r>this.baseTexture.height;if(i||o){var a=i&&o?"and":"or",s="X: "+e+" + "+A+" = "+(e+A)+" > "+this.baseTexture.width,h="Y: "+n+" + "+r+" = "+(n+r)+" > "+this.baseTexture.height;throw new Error("Texture Error: frame does not fit inside the base Texture dimensions: "+s+" "+a+" "+h)}this.valid=A&&r&&this.baseTexture.valid,this.trim||this.rotate||(this.orig=t),this.valid&&this.updateUvs()},n.rotate.get=function(){return this._rotate},n.rotate.set=function(t){this._rotate=t,this.valid&&this.updateUvs()},n.width.get=function(){return this.orig.width},n.height.get=function(){return this.orig.height},Object.defineProperties(e.prototype,n),e}(nt.a);function Xe(t){t.destroy=function(){},t.on=function(){},t.once=function(){},t.emit=function(){}}Je.EMPTY=new Je(new Te),Xe(Je.EMPTY),Xe(Je.EMPTY.baseTexture),Je.WHITE=function(){var t=document.createElement("canvas");t.width=16,t.height=16;var e=t.getContext("2d");return e.fillStyle="white",e.fillRect(0,0,16,16),new Je(new Te(new Oe(t)))}(),Xe(Je.WHITE),Xe(Je.WHITE.baseTexture);var Ke=function(t){function e(e,n){var A=null;if(!(e instanceof je)){var r=arguments[1],i=arguments[2],o=arguments[3],a=arguments[4];console.warn("Please use RenderTexture.create("+r+", "+i+") instead of the ctor directly."),A=arguments[0],n=null,e=new je({width:r,height:i,scaleMode:o,resolution:a})}t.call(this,e,n),this.legacyRenderer=A,this.valid=!0,this.filterFrame=null,this.filterPoolKey=null,this.updateUvs()}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.resize=function(t,e,n){void 0===n&&(n=!0),t=Math.ceil(t),e=Math.ceil(e),this.valid=t>0&&e>0,this._frame.width=this.orig.width=t,this._frame.height=this.orig.height=e,n&&this.baseTexture.resize(t,e),this.updateUvs()},e.prototype.setResolution=function(t){var e=this.baseTexture;e.resolution!==t&&(e.setResolution(t),this.resize(e.width,e.height,!1))},e.create=function(t){return"number"==typeof t&&(t={width:t,height:arguments[1],scaleMode:arguments[2],resolution:arguments[3]}),new e(new je(t))},e}(Je),Ve=function(t){this.texturePool={},this.textureOptions=t||{},this.enableFullScreen=!1,this._pixelsWidth=0,this._pixelsHeight=0};Ve.prototype.createTexture=function(t,e){var n=new je(Object.assign({width:t,height:e,resolution:1},this.textureOptions));return new Ke(n)},Ve.prototype.getOptimalTexture=function(t,e,n){void 0===n&&(n=1);var A=Ve.SCREEN_KEY;t*=n,e*=n,this.enableFullScreen&&t===this._pixelsWidth&&e===this._pixelsHeight||(A=(65535&(t=St(t)))<<16|65535&(e=St(e))),this.texturePool[A]||(this.texturePool[A]=[]);var r=this.texturePool[A].pop();return r||(r=this.createTexture(t,e)),r.filterPoolKey=A,r.setResolution(n),r},Ve.prototype.getFilterTexture=function(t,e){var n=this.getOptimalTexture(t.width,t.height,e||t.resolution);return n.filterFrame=t.filterFrame,n},Ve.prototype.returnTexture=function(t){var e=t.filterPoolKey;t.filterFrame=null,this.texturePool[e].push(t)},Ve.prototype.returnFilterTexture=function(t){this.returnTexture(t)},Ve.prototype.clear=function(t){if(t=!1!==t)for(var e in this.texturePool){var n=this.texturePool[e];if(n)for(var A=0;A0&&t.height>0,n)for(var A=0;A1){for(var h=0;h=0;--A)t[A]=n[A]||null,t[A]&&(t[A]._batchLocation=A)},e.prototype.boundArray=function(t,e,n,A){for(var r=t.elements,i=t.ids,o=t.count,a=0,s=0;s=0&&c=F.WEBGL2&&(n=t.getContext("webgl2",e)),n)this.webGLVersion=2;else if(this.webGLVersion=1,!(n=t.getContext("webgl",e)||t.getContext("experimental-webgl",e)))throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=n,this.getExtensions(),n},e.prototype.getExtensions=function(){var t=this.gl;1===this.webGLVersion?Object.assign(this.extensions,{drawBuffers:t.getExtension("WEBGL_draw_buffers"),depthTexture:t.getExtension("WEBKIT_WEBGL_depth_texture"),loseContext:t.getExtension("WEBGL_lose_context"),vertexArrayObject:t.getExtension("OES_vertex_array_object")||t.getExtension("MOZ_OES_vertex_array_object")||t.getExtension("WEBKIT_OES_vertex_array_object"),anisotropicFiltering:t.getExtension("EXT_texture_filter_anisotropic"),uint32ElementIndex:t.getExtension("OES_element_index_uint"),floatTexture:t.getExtension("OES_texture_float"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),textureHalfFloat:t.getExtension("OES_texture_half_float"),textureHalfFloatLinear:t.getExtension("OES_texture_half_float_linear")}):2===this.webGLVersion&&Object.assign(this.extensions,{anisotropicFiltering:t.getExtension("EXT_texture_filter_anisotropic"),colorBufferFloat:t.getExtension("EXT_color_buffer_float"),floatTextureLinear:t.getExtension("OES_texture_float_linear")})},e.prototype.handleContextLost=function(t){t.preventDefault()},e.prototype.handleContextRestored=function(){this.renderer.runners.contextChange.run(this.gl)},e.prototype.destroy=function(){var t=this.renderer.view;t.removeEventListener("webglcontextlost",this.handleContextLost),t.removeEventListener("webglcontextrestored",this.handleContextRestored),this.gl.useProgram(null),this.extensions.loseContext&&this.extensions.loseContext.loseContext()},e.prototype.postrender=function(){this.renderer.renderingToScreen&&this.gl.flush()},e.prototype.validateContext=function(t){t.getContextAttributes().stencil||console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly")},Object.defineProperties(e.prototype,n),e}(Le),fn=function(t){function e(e){t.call(this,e),this.managedFramebuffers=[],this.unknownFramebuffer=new Fe(10,10)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={size:{configurable:!0}};return e.prototype.contextChange=function(){var t=this.gl=this.renderer.gl;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.current=this.unknownFramebuffer,this.viewport=new se,this.hasMRT=!0,this.writeDepthTexture=!0,this.disposeAll(!0),1===this.renderer.context.webGLVersion){var e=this.renderer.context.extensions.drawBuffers,n=this.renderer.context.extensions.depthTexture;tt.PREFER_ENV===F.WEBGL_LEGACY&&(e=null,n=null),e?t.drawBuffers=function(t){return e.drawBuffersWEBGL(t)}:(this.hasMRT=!1,t.drawBuffers=function(){}),n||(this.writeDepthTexture=!1)}},e.prototype.bind=function(t,e){var n=this.gl;if(t){var A=t.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(t);this.current!==t&&(this.current=t,n.bindFramebuffer(n.FRAMEBUFFER,A.framebuffer)),A.dirtyId!==t.dirtyId&&(A.dirtyId=t.dirtyId,A.dirtyFormat!==t.dirtyFormat?(A.dirtyFormat=t.dirtyFormat,this.updateFramebuffer(t)):A.dirtySize!==t.dirtySize&&(A.dirtySize=t.dirtySize,this.resizeFramebuffer(t)));for(var r=0;r1&&e.drawBuffers(r),t.depthTexture)&&this.writeDepthTexture){var a=t.depthTexture;this.renderer.texture.bind(a,0),e.framebufferTexture2D(e.FRAMEBUFFER,e.DEPTH_ATTACHMENT,e.TEXTURE_2D,a._glTextures[this.CONTEXT_UID].texture,0)}n.stencil||!t.stencil&&!t.depth||(n.stencil=e.createRenderbuffer(),e.bindRenderbuffer(e.RENDERBUFFER,n.stencil),e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_STENCIL,t.width,t.height),t.depthTexture||e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_STENCIL_ATTACHMENT,e.RENDERBUFFER,n.stencil))},e.prototype.disposeFramebuffer=function(t,e){var n=t.glFramebuffers[this.CONTEXT_UID],A=this.gl;if(n){delete t.glFramebuffers[this.CONTEXT_UID];var r=this.managedFramebuffers.indexOf(t);r>=0&&this.managedFramebuffers.splice(r,1),t.disposeRunner.remove(this),e||(A.deleteFramebuffer(n.framebuffer),n.stencil&&A.deleteRenderbuffer(n.stencil))}},e.prototype.disposeAll=function(t){var e=this.managedFramebuffers;this.managedFramebuffers=[];for(var n=0;n=A.data.byteLength)e.bufferSubData(i,0,A.data);else{var o=A.static?e.STATIC_DRAW:e.DYNAMIC_DRAW;r.byteLength=A.data.byteLength,e.bufferData(i,A.data,o)}}}},e.prototype.checkCompatibility=function(t,e){var n=t.attributes,A=e.attributeData;for(var r in A)if(!n[r])throw new Error('shader and geometry incompatible, geometry missing the "'+r+'" attribute')},e.prototype.getSignature=function(t,e){var n=t.attributes,A=e.attributeData,r=["g",t.id];for(var i in n)A[i]&&r.push(i);return r.join("-")},e.prototype.initGeometryVao=function(t,e){this.checkCompatibility(t,e);var n=this.gl,A=this.CONTEXT_UID,r=this.getSignature(t,e),i=t.glVertexArrayObjects[this.CONTEXT_UID],o=i[r];if(o)return i[e.id]=o,o;var a=t.buffers,s=t.attributes,h={},c={};for(var u in a)h[u]=0,c[u]=0;for(var l in s)!s[l].size&&e.attributeData[l]?s[l].size=e.attributeData[l].size:s[l].size||console.warn("PIXI Geometry attribute '"+l+"' size cannot be determined (likely the bound shader does not have the attribute)"),h[s[l].buffer]+=s[l].size*wn[s[l].type];for(var p in s){var d=s[p],f=d.size;void 0===d.stride&&(h[d.buffer]===f*wn[d.type]?d.stride=0:d.stride=h[d.buffer]),void 0===d.start&&(d.start=c[d.buffer],c[d.buffer]+=f*wn[d.type])}o=n.createVertexArray(),n.bindVertexArray(o);for(var g=0;g=F.WEBGL2&&(t=e.getContext("webgl2",{})),t||((t=e.getContext("webgl",{})||e.getContext("experimental-webgl",{}))?t.getExtension("WEBGL_draw_buffers"):t=null),En=t}return En}function In(t,e,n){if("precision"!==t.substring(0,9)){var A=e;return e===q.HIGH&&n!==q.HIGH&&(A=q.MEDIUM),"precision "+A+" float;\n"+t}return n!==q.HIGH&&"precision highp"===t.substring(0,15)?t.replace("precision highp","precision mediump"):t}var kn={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};function Pn(t){return kn[t]}var Tn=null,Mn={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube",SAMPLER_2D_ARRAY:"sampler2DArray"};function On(t,e){if(!Tn){var n=Object.keys(Mn);Tn={};for(var A=0;A0&&(e+="\nelse "),ne.name?1:-1}));for(var h=0;h0?this._useCurrent():t.disable(t.SCISSOR_TEST)},e.prototype._useCurrent=function(){var t=this.maskStack[this.maskStack.length-1]._scissorRect,e=this.renderer.renderTexture.current,n=this.renderer.projection,A=n.transform,r=n.sourceFrame,i=n.destinationFrame,o=e?e.resolution:this.renderer.resolution,a=(t.x-r.x)*o+i.x,s=(t.y-r.y)*o+i.y,h=t.width*o,c=t.height*o;A&&(a+=A.tx*o,s+=A.ty*o),e||(s=this.renderer.height-c-s),this.renderer.gl.scissor(a,s,h,c)},e}($n),eA=function(t){function e(e){t.call(this,e),this.glConst=WebGLRenderingContext.STENCIL_TEST}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.getStackLength=function(){var t=this.maskStack[this.maskStack.length-1];return t?t._stencilCounter:0},e.prototype.push=function(t){var e=t.maskObject,n=this.renderer.gl,A=t._stencilCounter;0===A&&(this.renderer.framebuffer.forceStencil(),n.enable(n.STENCIL_TEST)),t._stencilCounter++,n.colorMask(!1,!1,!1,!1),n.stencilFunc(n.EQUAL,A,this._getBitwiseMask()),n.stencilOp(n.KEEP,n.KEEP,n.INCR),e.renderable=!0,e.render(this.renderer),this.renderer.batch.flush(),e.renderable=!1,this._useCurrent()},e.prototype.pop=function(t){var e=this.renderer.gl;0===this.getStackLength()?(e.disable(e.STENCIL_TEST),e.clear(e.STENCIL_BUFFER_BIT),e.clearStencil(0)):(e.colorMask(!1,!1,!1,!1),e.stencilOp(e.KEEP,e.KEEP,e.DECR),t.renderable=!0,t.render(this.renderer),this.renderer.batch.flush(),t.renderable=!1,this._useCurrent())},e.prototype._useCurrent=function(){var t=this.renderer.gl;t.colorMask(!0,!0,!0,!0),t.stencilFunc(t.EQUAL,this.getStackLength(),this._getBitwiseMask()),t.stencilOp(t.KEEP,t.KEEP,t.KEEP)},e.prototype._getBitwiseMask=function(){return(1<>=1,n++;this.stateId=t.data}for(var A=0;Athis.checkCountMax&&(this.checkCount=0,this.run())))},e.prototype.run=function(){for(var t=this.renderer.texture,e=t.managedTextures,n=!1,A=0;Athis.maxIdle&&(t.destroyTexture(r,!0),e[A]=null,n=!0)}if(n){for(var i=0,o=0;o=0;n--)this.unload(t.children[n])},e}(Le),uA=function(t){this.texture=t,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=6408,this.internalFormat=5121},lA=function(t){function e(e){t.call(this,e),this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new Te}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.contextChange=function(){var t=this.gl=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.webGLVersion=this.renderer.context.webGLVersion;var e=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS);this.boundTextures.length=e;for(var n=0;n=1:e.mipmap=0,2===this.webGLVersion||t.isPowerOfTwo?e.wrapMode=t.wrapMode:e.wrapMode=V.CLAMP,t.resource&&t.resource.style(this.renderer,t,e)||this.setStyle(t,e),e.dirtyStyleId=t.dirtyStyleId)},e.prototype.setStyle=function(t,e){var n=this.gl;if(e.mipmap&&n.generateMipmap(t.target),n.texParameteri(t.target,n.TEXTURE_WRAP_S,e.wrapMode),n.texParameteri(t.target,n.TEXTURE_WRAP_T,e.wrapMode),e.mipmap){n.texParameteri(t.target,n.TEXTURE_MIN_FILTER,t.scaleMode?n.LINEAR_MIPMAP_LINEAR:n.NEAREST_MIPMAP_NEAREST);var A=this.renderer.context.extensions.anisotropicFiltering;if(A&&t.anisotropicLevel>0&&t.scaleMode===K.LINEAR){var r=Math.min(t.anisotropicLevel,n.getParameter(A.MAX_TEXTURE_MAX_ANISOTROPY_EXT));n.texParameterf(t.target,A.TEXTURE_MAX_ANISOTROPY_EXT,r)}}else n.texParameteri(t.target,n.TEXTURE_MIN_FILTER,t.scaleMode?n.LINEAR:n.NEAREST);n.texParameteri(t.target,n.TEXTURE_MAG_FILTER,t.scaleMode?n.LINEAR:n.NEAREST)},e}(Le),pA=new qt,dA=function(t){function e(n){void 0===n&&(n={}),t.call(this,"WebGL",n),n=this.options,this.type=U.WEBGL,this.gl=null,this.CONTEXT_UID=0,this.runners={destroy:new me("destroy"),contextChange:new me("contextChange",1),reset:new me("reset"),update:new me("update"),postrender:new me("postrender"),prerender:new me("prerender"),resize:new me("resize",2)},this.globalUniforms=new sn({projectionMatrix:new qt},!0),this.addSystem(qn,"mask").addSystem(dn,"context").addSystem(hA,"state").addSystem(sA,"shader").addSystem(lA,"texture").addSystem(yn,"geometry").addSystem(fn,"framebuffer").addSystem(tA,"scissor").addSystem(eA,"stencil").addSystem(nA,"projection").addSystem(cA,"textureGC").addSystem(cn,"filter").addSystem(rA,"renderTexture").addSystem(ln,"batch"),this.initPlugins(e.__plugins),n.context?this.context.initFromContext(n.context):this.context.initFromOptions({alpha:this.transparent,antialias:n.antialias,premultipliedAlpha:this.transparent&&"notMultiplied"!==this.transparent,stencil:!0,preserveDrawingBuffer:n.preserveDrawingBuffer,powerPreference:this.options.powerPreference}),this.renderingToScreen=!0,ct(2===this.context.webGLVersion?"WebGL 2":"WebGL 1"),this.resize(this.options.width,this.options.height)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.create=function(t){if(ut())return new e(t);throw new Error('WebGL unsupported in this browser, use "pixi.js-legacy" for fallback canvas2d support.')},e.prototype.addSystem=function(t,e){e||(e=t.name);var n=new t(this);if(this[e])throw new Error('Whoops! The name "'+e+'" is already in use');for(var A in this[e]=n,this.runners)this.runners[A].add(n);return this},e.prototype.render=function(t,e,n,A,r){if(this.renderingToScreen=!e,this.runners.prerender.run(),this.emit("prerender"),this.projection.transform=A,!this.context.isLost){if(e||(this._lastObjectRendered=t),!r){var i=t.parent;t.parent=this._tempDisplayObjectParent,t.updateTransform(),t.parent=i}this.renderTexture.bind(e),this.batch.currentRenderer.start(),(void 0!==n?n:this.clearBeforeRender)&&this.renderTexture.clear(),t.render(this),this.batch.currentRenderer.flush(),e&&e.baseTexture.update(),this.runners.postrender.run(),this.projection.transform=null,this.emit("postrender")}},e.prototype.resize=function(e,n){t.prototype.resize.call(this,e,n),this.runners.resize.run(e,n)},e.prototype.reset=function(){return this.runners.reset.run(),this},e.prototype.clear=function(){this.framebuffer.bind(),this.framebuffer.clear()},e.prototype.destroy=function(e){for(var n in this.runners.destroy.run(),this.runners)this.runners[n].destroy();t.prototype.destroy.call(this,e),this.gl=null},e.registerPlugin=function(t,n){e.__plugins=e.__plugins||{},e.__plugins[t]=n},e}(function(t){function e(e,n){t.call(this),(n=Object.assign({},tt.RENDER_OPTIONS,n)).roundPixels&&(tt.ROUND_PIXELS=n.roundPixels,Ot("5.0.0","Renderer roundPixels option is deprecated, please use PIXI.settings.ROUND_PIXELS",2)),this.options=n,this.type=U.UNKNOWN,this.screen=new se(0,0,n.width,n.height),this.view=n.view||document.createElement("canvas"),this.resolution=n.resolution||tt.RESOLUTION,this.transparent=n.transparent,this.autoDensity=n.autoDensity||n.autoResize||!1,this.preserveDrawingBuffer=n.preserveDrawingBuffer,this.clearBeforeRender=n.clearBeforeRender,this._backgroundColor=0,this._backgroundColorRgba=[0,0,0,0],this._backgroundColorString="#000000",this.backgroundColor=n.backgroundColor||this._backgroundColor,this._tempDisplayObjectParent=new ge,this._lastObjectRendered=this._tempDisplayObjectParent,this.plugins={}}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={width:{configurable:!0},height:{configurable:!0},backgroundColor:{configurable:!0}};return e.prototype.initPlugins=function(t){for(var e in t)this.plugins[e]=new t[e](this)},n.width.get=function(){return this.view.width},n.height.get=function(){return this.view.height},e.prototype.resize=function(t,e){this.screen.width=t,this.screen.height=e,this.view.width=t*this.resolution,this.view.height=e*this.resolution,this.autoDensity&&(this.view.style.width=t+"px",this.view.style.height=e+"px")},e.prototype.generateTexture=function(t,e,n,A){0===(A=A||t.getLocalBounds()).width&&(A.width=1),0===A.height&&(A.height=1);var r=Ke.create(0|A.width,0|A.height,e,n);return pA.tx=-A.x,pA.ty=-A.y,this.render(t,r,!1,pA,!!t.parent),r},e.prototype.destroy=function(t){for(var e in this.plugins)this.plugins[e].destroy(),this.plugins[e]=null;t&&this.view.parentNode&&this.view.parentNode.removeChild(this.view),this.plugins=null,this.type=U.UNKNOWN,this.view=null,this.screen=null,this.resolution=0,this.transparent=!1,this.autoDensity=!1,this.blendModes=null,this.options=null,this.preserveDrawingBuffer=!1,this.clearBeforeRender=!1,this._backgroundColor=0,this._backgroundColorRgba=null,this._backgroundColorString=null,this._tempDisplayObjectParent=null,this._lastObjectRendered=null},n.backgroundColor.get=function(){return this._backgroundColor},n.backgroundColor.set=function(t){this._backgroundColor=t,this._backgroundColorString=pt(t),lt(t,this._backgroundColorRgba)},Object.defineProperties(e.prototype,n),e}(nt.a));var fA="attribute vec2 aVertexPosition;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nuniform vec4 inputSize;\nuniform vec4 outputFrame;\n\nvec4 filterVertexPosition( void )\n{\n vec2 position = aVertexPosition * max(outputFrame.zw, vec2(0.)) + outputFrame.xy;\n\n return vec4((projectionMatrix * vec3(position, 1.0)).xy, 0.0, 1.0);\n}\n\nvec2 filterTextureCoord( void )\n{\n return aVertexPosition * (outputFrame.zw * inputSize.zw);\n}\n\nvoid main(void)\n{\n gl_Position = filterVertexPosition();\n vTextureCoord = filterTextureCoord();\n}\n",gA=function(){this.texArray=null,this.blend=0,this.type=G.TRIANGLES,this.start=0,this.size=0,this.data=null},wA=function(){this.elements=[],this.ids=[],this.count=0};wA.prototype.clear=function(){for(var t=0;tthis.size&&this.flush(),this._vertexCount+=t.vertexData.length/2,this._indexCount+=t.indices.length,this._bufferedTextures[this._bufferSize]=t._texture.baseTexture,this._bufferedElements[this._bufferSize++]=t)},e.prototype.buildTexturesAndDrawCalls=function(){var t=this._bufferedTextures,n=this.MAX_TEXTURES,A=e._textureArrayPool,r=this.renderer.batch,i=this._tempBoundTextures,o=this.renderer.textureGC.count,a=++Te._globalBatch,s=0,h=A[0],c=0;r.copyBoundTextures(i,n);for(var u=0;u=n&&(r.boundArray(h,i,a,n),this.buildDrawCalls(h,c,u),c=u,h=A[++s],++a),l._batchEnabled=a,l.touched=o,h.elements[h.count++]=l)}h.count>0&&(r.boundArray(h,i,a,n),this.buildDrawCalls(h,c,this._bufferSize),++s,++a);for(var p=0;p0&&(e+="\nelse "),n=0;c--){var u=h[c],l=this.recursiveFindHit(t,u,n,A,a);if(l){if(!u.parent)continue;a=!1,l&&(t.target&&(A=!1),o=!0)}}return r&&(A&&!t.target&&!e.hitArea&&e.containsPoint&&e.containsPoint(i)&&(o=!0),e.interactive&&(o&&!t.target&&(t.target=e),n&&n(t,e,!!o))),o},RA.prototype.findHit=function(t,e,n,A){this.recursiveFindHit(t,e,n,A,!1)};var zA={interactive:!1,interactiveChildren:!0,hitArea:null,get buttonMode(){return"pointer"===this.cursor},set buttonMode(t){t?this.cursor="pointer":"pointer"===this.cursor&&(this.cursor=null)},cursor:null,get trackedPointers(){return void 0===this._trackedPointers&&(this._trackedPointers={}),this._trackedPointers},_trackedPointers:void 0};de.mixin(zA);var HA={target:null,data:{global:null}},LA=function(t){function e(e,n){t.call(this),n=n||{},this.renderer=e,this.autoPreventDefault=void 0===n.autoPreventDefault||n.autoPreventDefault,this.interactionFrequency=n.interactionFrequency||10,this.mouse=new PA,this.mouse.identifier=1,this.mouse.global.set(-999999),this.activeInteractionData={},this.activeInteractionData[1]=this.mouse,this.interactionDataPool=[],this.eventData=new MA,this.interactionDOMElement=null,this.moveWhenInside=!1,this.eventsAdded=!1,this.tickerAdded=!1,this.mouseOverRenderer=!1,this.supportsTouchEvents="ontouchstart"in window,this.supportsPointerEvents=!!window.PointerEvent,this.onPointerUp=this.onPointerUp.bind(this),this.processPointerUp=this.processPointerUp.bind(this),this.onPointerCancel=this.onPointerCancel.bind(this),this.processPointerCancel=this.processPointerCancel.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.processPointerDown=this.processPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.processPointerMove=this.processPointerMove.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.processPointerOverOut=this.processPointerOverOut.bind(this),this.onPointerOver=this.onPointerOver.bind(this),this.cursorStyles={default:"inherit",pointer:"pointer"},this.currentCursorMode=null,this.cursor=null,this.resolution=1,this.delayedEvents=[],this.search=new RA,this._useSystemTicker=void 0===n.useSystemTicker||n.useSystemTicker,this.setTargetElement(this.renderer.view,this.renderer.resolution)}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={useSystemTicker:{configurable:!0}};return n.useSystemTicker.get=function(){return this._useSystemTicker},n.useSystemTicker.set=function(t){this._useSystemTicker=t,t?this.addTickerListener():this.removeTickerListener()},e.prototype.hitTest=function(t,e){return HA.target=null,HA.data.global=t,e||(e=this.renderer._lastObjectRendered),this.processInteractive(HA,e,null,!0),HA.target},e.prototype.setTargetElement=function(t,e){void 0===e&&(e=1),this.removeTickerListener(),this.removeEvents(),this.interactionDOMElement=t,this.resolution=e,this.addEvents(),this.addTickerListener()},e.prototype.addTickerListener=function(){!this.tickerAdded&&this.interactionDOMElement&&this._useSystemTicker&&(ve.system.add(this.tickerUpdate,this,ye.INTERACTION),this.tickerAdded=!0)},e.prototype.removeTickerListener=function(){this.tickerAdded&&(ve.system.remove(this.tickerUpdate,this),this.tickerAdded=!1)},e.prototype.addEvents=function(){!this.eventsAdded&&this.interactionDOMElement&&(window.navigator.msPointerEnabled?(this.interactionDOMElement.style["-ms-content-zooming"]="none",this.interactionDOMElement.style["-ms-touch-action"]="none"):this.supportsPointerEvents&&(this.interactionDOMElement.style["touch-action"]="none"),this.supportsPointerEvents?(window.document.addEventListener("pointermove",this.onPointerMove,!0),this.interactionDOMElement.addEventListener("pointerdown",this.onPointerDown,!0),this.interactionDOMElement.addEventListener("pointerleave",this.onPointerOut,!0),this.interactionDOMElement.addEventListener("pointerover",this.onPointerOver,!0),window.addEventListener("pointercancel",this.onPointerCancel,!0),window.addEventListener("pointerup",this.onPointerUp,!0)):(window.document.addEventListener("mousemove",this.onPointerMove,!0),this.interactionDOMElement.addEventListener("mousedown",this.onPointerDown,!0),this.interactionDOMElement.addEventListener("mouseout",this.onPointerOut,!0),this.interactionDOMElement.addEventListener("mouseover",this.onPointerOver,!0),window.addEventListener("mouseup",this.onPointerUp,!0)),this.supportsTouchEvents&&(this.interactionDOMElement.addEventListener("touchstart",this.onPointerDown,!0),this.interactionDOMElement.addEventListener("touchcancel",this.onPointerCancel,!0),this.interactionDOMElement.addEventListener("touchend",this.onPointerUp,!0),this.interactionDOMElement.addEventListener("touchmove",this.onPointerMove,!0)),this.eventsAdded=!0)},e.prototype.removeEvents=function(){this.eventsAdded&&this.interactionDOMElement&&(window.navigator.msPointerEnabled?(this.interactionDOMElement.style["-ms-content-zooming"]="",this.interactionDOMElement.style["-ms-touch-action"]=""):this.supportsPointerEvents&&(this.interactionDOMElement.style["touch-action"]=""),this.supportsPointerEvents?(window.document.removeEventListener("pointermove",this.onPointerMove,!0),this.interactionDOMElement.removeEventListener("pointerdown",this.onPointerDown,!0),this.interactionDOMElement.removeEventListener("pointerleave",this.onPointerOut,!0),this.interactionDOMElement.removeEventListener("pointerover",this.onPointerOver,!0),window.removeEventListener("pointercancel",this.onPointerCancel,!0),window.removeEventListener("pointerup",this.onPointerUp,!0)):(window.document.removeEventListener("mousemove",this.onPointerMove,!0),this.interactionDOMElement.removeEventListener("mousedown",this.onPointerDown,!0),this.interactionDOMElement.removeEventListener("mouseout",this.onPointerOut,!0),this.interactionDOMElement.removeEventListener("mouseover",this.onPointerOver,!0),window.removeEventListener("mouseup",this.onPointerUp,!0)),this.supportsTouchEvents&&(this.interactionDOMElement.removeEventListener("touchstart",this.onPointerDown,!0),this.interactionDOMElement.removeEventListener("touchcancel",this.onPointerCancel,!0),this.interactionDOMElement.removeEventListener("touchend",this.onPointerUp,!0),this.interactionDOMElement.removeEventListener("touchmove",this.onPointerMove,!0)),this.interactionDOMElement=null,this.eventsAdded=!1)},e.prototype.tickerUpdate=function(t){this._deltaTime+=t,this._deltaTimethis.maxSegments&&(n=this.maxSegments),n}},FA=function(){this.reset()};FA.prototype.clone=function(){var t=new FA;return t.color=this.color,t.alpha=this.alpha,t.texture=this.texture,t.matrix=this.matrix,t.visible=this.visible,t},FA.prototype.reset=function(){this.color=16777215,this.alpha=1,this.texture=Je.WHITE,this.matrix=null,this.visible=!1},FA.prototype.destroy=function(){this.texture=null,this.matrix=null};var UA={build:function(t){t.points=t.shape.points.slice()},triangulate:function(t,e){var n=t.points,A=t.holes,r=e.points,i=e.indices;if(n.length>=6){for(var o=[],a=0;a196*g*g?(D=C-S,I=B-E,k=Math.sqrt(D*D+I*I),D/=k,I/=k,D*=g,I*=g,l.push(m-D*T,x-I*T),l.push(m+D*M,x+I*M),l.push(m-D*M*T,x-I*T),d++):(l.push(m+(U-m)*T,x+(j-x)*T),l.push(m-(U-m)*M,x-(j-x)*M))}}w=A[2*(p-2)],y=A[2*(p-2)+1],m=A[2*(p-1)],x=A[2*(p-1)+1],C=-(y-x),B=w-m,k=Math.sqrt(C*C+B*B),C/=k,B/=k,C*=g,B*=g,l.push(m-C*T,x-B*T),l.push(m+C*M,x+B*M);for(var G=e.indices,Y=0;Yc*a}},WA.arc=function(t,e,n,A,r,i,o,a,s){for(var h=o-i,c=NA._segmentsCount(Math.abs(h)*r,40*Math.ceil(Math.abs(h)/Wt)),u=h/(2*c),l=2*u,p=Math.cos(u),d=Math.sin(u),f=c-1,g=f%1/f,w=0;w<=f;++w){var y=u+i+l*(w+g*w),m=Math.cos(y),x=-Math.sin(y);s.push((p*m+d*x)*r+n,(p*-x+d*m)*r+A)}};var _A=function(){};_A.curveLength=function(t,e,n,A,r,i,o,a){for(var s=0,h=0,c=0,u=0,l=0,p=0,d=0,f=0,g=0,w=0,y=0,m=t,x=e,v=1;v<=10;++v)w=m-(f=(d=(p=(l=1-(h=v/10))*l)*l)*t+3*p*h*n+3*l*(c=h*h)*r+(u=c*h)*o),y=x-(g=d*e+3*p*h*A+3*l*c*i+u*a),m=f,x=g,s+=Math.sqrt(w*w+y*y);return s},_A.curveTo=function(t,e,n,A,r,i,o){var a=o[o.length-2],s=o[o.length-1];o.length-=2;var h=NA._segmentsCount(_A.curveLength(a,s,t,e,n,A,r,i)),c=0,u=0,l=0,p=0,d=0;o.push(a,s);for(var f=1,g=0;f<=h;++f)l=(u=(c=1-(g=f/h))*c)*c,d=(p=g*g)*g,o.push(l*a+3*u*g*t+3*c*p*n+d*r,l*s+3*u*g*e+3*c*p*A+d*i)};var ZA=function(){};ZA.curveLength=function(t,e,n,A,r,i){var o=t-2*n+r,a=e-2*A+i,s=2*n-2*t,h=2*A-2*e,c=4*(o*o+a*a),u=4*(o*s+a*h),l=s*s+h*h,p=2*Math.sqrt(c+u+l),d=Math.sqrt(c),f=2*c*d,g=2*Math.sqrt(l),w=u/d;return(f*p+d*u*(p-g)+(4*l*c-u*u)*Math.log((2*d+w+p)/(w+g)))/(4*f)},ZA.curveTo=function(t,e,n,A,r){for(var i=r[r.length-2],o=r[r.length-1],a=NA._segmentsCount(ZA.curveLength(i,o,t,e,n,A)),s=0,h=0,c=1;c<=a;++c){var u=c/a;s=i+(t-i)*u,h=o+(e-o)*u,r.push(s+(t+(n-t)*u-s)*u,h+(e+(A-e)*u-h)*u)}};var qA=function(){this.reset()};qA.prototype.begin=function(t,e,n){this.reset(),this.style=t,this.start=e,this.attribStart=n},qA.prototype.end=function(t,e){this.attribSize=e-this.attribStart,this.size=t-this.start},qA.prototype.reset=function(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0};var $A={};$A[Xt.POLY]=UA,$A[Xt.CIRC]=jA,$A[Xt.ELIP]=jA,$A[Xt.RECT]=GA,$A[Xt.RREC]=YA;var tr=[],er=[],nr=function(t,e,n,A){void 0===e&&(e=null),void 0===n&&(n=null),void 0===A&&(A=null),this.shape=t,this.lineStyle=n,this.fillStyle=e,this.matrix=A,this.type=t.type,this.points=[],this.holes=[]};nr.prototype.clone=function(){return new nr(this.shape,this.fillStyle,this.lineStyle,this.matrix)},nr.prototype.destroy=function(){this.shape=null,this.holes.length=0,this.holes=null,this.points.length=0,this.points=null,this.lineStyle=null,this.fillStyle=null};var Ar=new Kt,rr=new pe,ir=function(t){function e(){t.call(this),this.points=[],this.colors=[],this.uvs=[],this.indices=[],this.textureIds=[],this.graphicsData=[],this.dirty=0,this.batchDirty=-1,this.cacheDirty=-1,this.clearDirty=0,this.drawCalls=[],this.batches=[],this.shapeIndex=0,this._bounds=new pe,this.boundsDirty=-1,this.boundsPadding=0,this.batchable=!1,this.indicesUint16=null,this.uvsFloat32=null,this.closePointEps=1e-4}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={bounds:{configurable:!0}};return n.bounds.get=function(){return this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.calculateBounds()),this._bounds},e.prototype.invalidate=function(){this.boundsDirty=-1,this.dirty++,this.batchDirty++,this.shapeIndex=0,this.points.length=0,this.colors.length=0,this.uvs.length=0,this.indices.length=0,this.textureIds.length=0;for(var t=0;t0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this},e.prototype.drawShape=function(t,e,n,A){var r=new nr(t,e,n,A);return this.graphicsData.push(r),this.dirty++,this},e.prototype.drawHole=function(t,e){if(!this.graphicsData.length)return null;var n=new nr(t,null,null,e),A=this.graphicsData[this.graphicsData.length-1];return n.lineStyle=A.lineStyle,A.holes.push(n),this.dirty++,this},e.prototype.destroy=function(e){t.prototype.destroy.call(this,e);for(var n=0;n0&&(A=(n=this.batches[this.batches.length-1]).style);for(var r=this.shapeIndex;r0&&((r=er.pop())||((r=new gA).textures=new wA),this.drawCalls.push(r)),r.start=c,r.size=0,r.textures.count=0,r.type=h),d.touched=1,d._batchEnabled=t,d._batchLocation=i,d.wrapMode=10497,r.textures.elements[r.textures.count++]=d,i++)),r.size+=l.size,c+=l.size,a=d._batchLocation,this.addColors(n,p.color,p.alpha,l.attribSize),this.addTextureIds(A,a,l.attribSize)}Te._globalBatch=t,this.packAttributes()},e.prototype.packAttributes=function(){for(var t=this.points,e=this.uvs,n=this.colors,A=this.textureIds,r=new ArrayBuffer(3*t.length*4),i=new Float32Array(r),o=new Uint32Array(r),a=0,s=0;s>16)+(65280&e)+((255&e)<<16),n);A-- >0;)t.push(r)},e.prototype.addTextureIds=function(t,e,n){for(;n-- >0;)t.push(e)},e.prototype.addUvs=function(t,e,n,A,r,i){for(var o=0,a=e.length,s=n.frame;o0&&t.alpha>0;return s?(t.matrix&&(t.matrix=t.matrix.clone(),t.matrix.invert()),Object.assign(this._lineStyle,{visible:s},t)):this._lineStyle.reset(),this},e.prototype.startPoly=function(){if(this.currentPath){var t=this.currentPath.points,e=this.currentPath.points.length;e>2&&(this.drawShape(this.currentPath),this.currentPath=new ue,this.currentPath.closeStroke=!1,this.currentPath.points.push(t[e-2],t[e-1]))}else this.currentPath=new ue,this.currentPath.closeStroke=!1},e.prototype.finishPoly=function(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)},e.prototype.moveTo=function(t,e){return this.startPoly(),this.currentPath.points[0]=t,this.currentPath.points[1]=e,this},e.prototype.lineTo=function(t,e){this.currentPath||this.moveTo(0,0);var n=this.currentPath.points,A=n[n.length-2],r=n[n.length-1];return A===t&&r===e||n.push(t,e),this},e.prototype._initCurve=function(t,e){void 0===t&&(t=0),void 0===e&&(e=0),this.currentPath?0===this.currentPath.points.length&&(this.currentPath.points=[t,e]):this.moveTo(t,e)},e.prototype.quadraticCurveTo=function(t,e,n,A){this._initCurve();var r=this.currentPath.points;return 0===r.length&&this.moveTo(0,0),ZA.curveTo(t,e,n,A,r),this},e.prototype.bezierCurveTo=function(t,e,n,A,r,i){return this._initCurve(),_A.curveTo(t,e,n,A,r,i,this.currentPath.points),this},e.prototype.arcTo=function(t,e,n,A,r){this._initCurve(t,e);var i=this.currentPath.points,o=WA.curveTo(t,e,n,A,r,i);if(o){var a=o.cx,s=o.cy,h=o.radius,c=o.startAngle,u=o.endAngle,l=o.anticlockwise;this.arc(a,s,h,c,u,l)}return this},e.prototype.arc=function(t,e,n,A,r,i){if(void 0===i&&(i=!1),A===r)return this;if(!i&&r<=A?r+=Wt:i&&A<=r&&(A+=Wt),0===r-A)return this;var o=t+Math.cos(A)*n,a=e+Math.sin(A)*n,s=this.geometry.closePointEps,h=this.currentPath?this.currentPath.points:null;if(h){var c=Math.abs(h[h.length-2]-o),u=Math.abs(h[h.length-1]-a);c0;return i?(t.matrix&&(t.matrix=t.matrix.clone(),t.matrix.invert()),Object.assign(this._fillStyle,{visible:i},t)):this._fillStyle.reset(),this},e.prototype.endFill=function(){return this.finishPoly(),this._fillStyle.reset(),this},e.prototype.drawRect=function(t,e,n,A){return this.drawShape(new se(t,e,n,A))},e.prototype.drawRoundedRect=function(t,e,n,A,r){return this.drawShape(new le(t,e,n,A,r))},e.prototype.drawCircle=function(t,e,n){return this.drawShape(new he(t,e,n))},e.prototype.drawEllipse=function(t,e,n,A){return this.drawShape(new ce(t,e,n,A))},e.prototype.drawPolygon=function(t){var e=arguments,n=t,A=!0;if(n.points&&(A=n.closeStroke,n=n.points),!Array.isArray(n)){n=new Array(arguments.length);for(var r=0;r>16&255)/255*r,i.tint[1]=(A>>8&255)/255*r,i.tint[2]=(255&A)/255*r,i.tint[3]=r,t.shader.bind(e),t.geometry.bind(n,e),t.state.set(this.state);for(var a=0,s=o.length;a>16)+(65280&r)+((255&r)<<16)}}},e.prototype.calculateVertices=function(){if(this._transformID!==this.transform._worldID){this._transformID=this.transform._worldID;for(var t=this.transform.worldTransform,e=t.a,n=t.b,A=t.c,r=t.d,i=t.tx,o=t.ty,a=this.geometry.points,s=this.vertexData,h=0,c=0;c=A&&cr.x=r&&cr.y>16)+(65280&t)+((255&t)<<16)},n.texture.get=function(){return this._texture},n.texture.set=function(t){this._texture!==t&&(this._texture&&this._texture.off("update",this._onTextureUpdate,this),this._texture=t||Je.EMPTY,this._cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,t&&(t.baseTexture.valid?this._onTextureUpdate():t.once("update",this._onTextureUpdate,this)))},Object.defineProperties(e.prototype,n),e}(ge),pr=0,dr={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fillGradientType:pr,fillGradientStops:[],fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",letterSpacing:0,lineHeight:0,lineJoin:"miter",miterLimit:10,padding:0,stroke:"black",strokeThickness:0,textBaseline:"alphabetic",trim:!1,whiteSpace:"pre",wordWrap:!1,wordWrapWidth:100,leading:0},fr=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],gr=function(t){this.styleID=0,this.reset(),xr(this,t,t)},wr={align:{configurable:!0},breakWords:{configurable:!0},dropShadow:{configurable:!0},dropShadowAlpha:{configurable:!0},dropShadowAngle:{configurable:!0},dropShadowBlur:{configurable:!0},dropShadowColor:{configurable:!0},dropShadowDistance:{configurable:!0},fill:{configurable:!0},fillGradientType:{configurable:!0},fillGradientStops:{configurable:!0},fontFamily:{configurable:!0},fontSize:{configurable:!0},fontStyle:{configurable:!0},fontVariant:{configurable:!0},fontWeight:{configurable:!0},letterSpacing:{configurable:!0},lineHeight:{configurable:!0},leading:{configurable:!0},lineJoin:{configurable:!0},miterLimit:{configurable:!0},padding:{configurable:!0},stroke:{configurable:!0},strokeThickness:{configurable:!0},textBaseline:{configurable:!0},trim:{configurable:!0},whiteSpace:{configurable:!0},wordWrap:{configurable:!0},wordWrapWidth:{configurable:!0}};function yr(t){return"number"==typeof t?pt(t):("string"==typeof t&&0===t.indexOf("0x")&&(t=t.replace("0x","#")),t)}function mr(t){if(Array.isArray(t)){for(var e=0;e=0;n--){var A=e[n].trim();!/([\"\'])[^\'\"]+\1/.test(A)&&fr.indexOf(A)<0&&(A='"'+A+'"'),e[n]=A}return this.fontStyle+" "+this.fontVariant+" "+this.fontWeight+" "+t+" "+e.join(",")},Object.defineProperties(gr.prototype,wr);var vr=function(t,e,n,A,r,i,o,a,s){this.text=t,this.style=e,this.width=n,this.height=A,this.lines=r,this.lineWidths=i,this.lineHeight=o,this.maxLineWidth=a,this.fontProperties=s};vr.measureText=function(t,e,n,A){void 0===A&&(A=vr._canvas),n=null==n?e.wordWrap:n;var r=e.toFontString(),i=vr.measureFont(r);0===i.fontSize&&(i.fontSize=e.fontSize,i.ascent=e.fontSize);var o=A.getContext("2d");o.font=r;for(var a=(n?vr.wordWrap(t,e,A):t).split(/(?:\r\n|\r|\n)/),s=new Array(a.length),h=0,c=0;cp)if(""!==i&&(o+=vr.addLine(i),i="",r=0),vr.canBreakWords(g,e.breakWords))for(var x=vr.wordWrapSplit(g),v=0;vp&&(o+=vr.addLine(i),l=!1,i="",r=0),i+=b,r+=E}else{i.length>0&&(o+=vr.addLine(i),i="",r=0);var D=f===d.length-1;o+=vr.addLine(g,!D),l=!1,i="",r=0}else m+r>p&&(l=!1,o+=vr.addLine(i),i="",r=0),(i.length>0||!vr.isBreakingSpace(g)||l)&&(i+=g,r+=m)}return o+=vr.addLine(i,!1)},vr.addLine=function(t,e){return void 0===e&&(e=!0),t=vr.trimRight(t),t=e?t+"\n":t},vr.getFromCache=function(t,e,n,A){var r=n[t];if(void 0===r){var i=t.length*e;r=A.measureText(t).width+i,n[t]=r}return r},vr.collapseSpaces=function(t){return"normal"===t||"pre-line"===t},vr.collapseNewlines=function(t){return"normal"===t},vr.trimRight=function(t){if("string"!=typeof t)return"";for(var e=t.length-1;e>=0;e--){var n=t[e];if(!vr.isBreakingSpace(n))break;t=t.slice(0,-1)}return t},vr.isNewline=function(t){return"string"==typeof t&&vr._newlines.indexOf(t.charCodeAt(0))>=0},vr.isBreakingSpace=function(t){return"string"==typeof t&&vr._breakingSpaces.indexOf(t.charCodeAt(0))>=0},vr.tokenize=function(t){var e=[],n="";if("string"!=typeof t)return e;for(var A=0;Ao;--u){for(var f=0;f0};var Er=function(t){var e=this;this.limiter=new Sr(tt.UPLOADS_PER_FRAME),this.renderer=t,this.uploadHookHelper=null,this.queue=[],this.addHooks=[],this.uploadHooks=[],this.completes=[],this.ticking=!1,this.delayedTick=function(){e.queue&&e.prepareItems()},this.registerFindHook(Mr),this.registerFindHook(Or),this.registerFindHook(Dr),this.registerFindHook(Ir),this.registerFindHook(kr),this.registerUploadHook(Pr),this.registerUploadHook(Tr)};function Dr(t,e){var n=!1;if(t&&t._textures&&t._textures.length)for(var A=0;A=0;A--)this.add(t.children[A]);return this},Er.prototype.destroy=function(){this.ticking&&ve.system.remove(this.tick,this),this.ticking=!1,this.addHooks=null,this.uploadHooks=null,this.renderer=null,this.completes=null,this.queue=null,this.limiter=null,this.uploadHookHelper=null};var Qr=function(t){function e(e){t.call(this,e),this.uploadHookHelper=this.renderer,this.registerFindHook(Hr),this.registerUploadHook(Rr),this.registerUploadHook(zr)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e}(Er);function Rr(t,e){return e instanceof Te&&(e._glTextures[t.CONTEXT_UID]||t.texture.bind(e),!0)}function zr(t,e){if(!(e instanceof hr))return!1;var n=e.geometry;e.finishPoly(),n.updateBatches();for(var A=n.batches,r=0;r0||e.responseType===t.XHR_RESPONSE_TYPE.BUFFER)?A=200:1223===A&&(A=204),2===(A/100|0)){if(this.xhrType===t.XHR_RESPONSE_TYPE.TEXT)this.data=n,this.type=t.TYPE.TEXT;else if(this.xhrType===t.XHR_RESPONSE_TYPE.JSON)try{this.data=JSON.parse(n),this.type=t.TYPE.JSON}catch(t){return void this.abort("Error trying to parse loaded json: "+t)}else if(this.xhrType===t.XHR_RESPONSE_TYPE.DOCUMENT)try{if(window.DOMParser){var r=new DOMParser;this.data=r.parseFromString(n,"text/xml")}else{var i=document.createElement("div");i.innerHTML=n,this.data=i}this.type=t.TYPE.XML}catch(t){return void this.abort("Error trying to parse loaded xml: "+t)}else this.data=e.response||n;this.complete()}else this.abort("["+e.status+"] "+e.statusText+": "+e.responseURL)},e._determineCrossOrigin=function(t,e){if(0===t.indexOf("data:"))return"";if(window.origin!==window.location.origin)return"anonymous";e=e||window.location,ti||(ti=document.createElement("a")),ti.href=t;var n=!(t=Gr()(ti.href,{strictMode:!0})).port&&""===e.port||t.port===e.port,A=t.protocol?t.protocol+":":"";return t.host===e.hostname&&n&&A===e.protocol?"":"anonymous"},e._determineXhrType=function(){return t._xhrTypeMap[this.extension]||t.XHR_RESPONSE_TYPE.TEXT},e._determineLoadType=function(){return t._loadTypeMap[this.extension]||t.LOAD_TYPE.XHR},e._getExtension=function(){var t=this.url,e="";if(this.isDataUrl){var n=t.indexOf("/");e=t.substring(n+1,t.indexOf(";",n))}else{var A=t.indexOf("?"),r=t.indexOf("#"),i=Math.min(A>-1?A:t.length,r>-1?r:t.length);e=(t=t.substring(0,i)).substring(t.lastIndexOf(".")+1)}return e.toLowerCase()},e._getMimeFromXhrType=function(e){switch(e){case t.XHR_RESPONSE_TYPE.BUFFER:return"application/octet-binary";case t.XHR_RESPONSE_TYPE.BLOB:return"application/blob";case t.XHR_RESPONSE_TYPE.DOCUMENT:return"application/xml";case t.XHR_RESPONSE_TYPE.JSON:return"application/json";case t.XHR_RESPONSE_TYPE.DEFAULT:case t.XHR_RESPONSE_TYPE.TEXT:default:return"text/plain"}},qr(t,[{key:"isDataUrl",get:function(){return this._hasFlag(t.STATUS_FLAGS.DATA_URL)}},{key:"isComplete",get:function(){return this._hasFlag(t.STATUS_FLAGS.COMPLETE)}},{key:"isLoading",get:function(){return this._hasFlag(t.STATUS_FLAGS.LOADING)}}]),t}();function Ai(t,e,n){e&&0===e.indexOf(".")&&(e=e.substring(1)),e&&(t[e]=n)}function ri(t){return t.toString().replace("object ","")}ni.STATUS_FLAGS={NONE:0,DATA_URL:1,COMPLETE:2,LOADING:4},ni.TYPE={UNKNOWN:0,JSON:1,XML:2,IMAGE:3,AUDIO:4,VIDEO:5,TEXT:6},ni.LOAD_TYPE={XHR:1,IMAGE:2,AUDIO:3,VIDEO:4},ni.XHR_RESPONSE_TYPE={DEFAULT:"text",BUFFER:"arraybuffer",BLOB:"blob",DOCUMENT:"document",JSON:"json",TEXT:"text"},ni._loadTypeMap={gif:ni.LOAD_TYPE.IMAGE,png:ni.LOAD_TYPE.IMAGE,bmp:ni.LOAD_TYPE.IMAGE,jpg:ni.LOAD_TYPE.IMAGE,jpeg:ni.LOAD_TYPE.IMAGE,tif:ni.LOAD_TYPE.IMAGE,tiff:ni.LOAD_TYPE.IMAGE,webp:ni.LOAD_TYPE.IMAGE,tga:ni.LOAD_TYPE.IMAGE,svg:ni.LOAD_TYPE.IMAGE,"svg+xml":ni.LOAD_TYPE.IMAGE,mp3:ni.LOAD_TYPE.AUDIO,ogg:ni.LOAD_TYPE.AUDIO,wav:ni.LOAD_TYPE.AUDIO,mp4:ni.LOAD_TYPE.VIDEO,webm:ni.LOAD_TYPE.VIDEO},ni._xhrTypeMap={xhtml:ni.XHR_RESPONSE_TYPE.DOCUMENT,html:ni.XHR_RESPONSE_TYPE.DOCUMENT,htm:ni.XHR_RESPONSE_TYPE.DOCUMENT,xml:ni.XHR_RESPONSE_TYPE.DOCUMENT,tmx:ni.XHR_RESPONSE_TYPE.DOCUMENT,svg:ni.XHR_RESPONSE_TYPE.DOCUMENT,tsx:ni.XHR_RESPONSE_TYPE.DOCUMENT,gif:ni.XHR_RESPONSE_TYPE.BLOB,png:ni.XHR_RESPONSE_TYPE.BLOB,bmp:ni.XHR_RESPONSE_TYPE.BLOB,jpg:ni.XHR_RESPONSE_TYPE.BLOB,jpeg:ni.XHR_RESPONSE_TYPE.BLOB,tif:ni.XHR_RESPONSE_TYPE.BLOB,tiff:ni.XHR_RESPONSE_TYPE.BLOB,webp:ni.XHR_RESPONSE_TYPE.BLOB,tga:ni.XHR_RESPONSE_TYPE.BLOB,json:ni.XHR_RESPONSE_TYPE.JSON,text:ni.XHR_RESPONSE_TYPE.TEXT,txt:ni.XHR_RESPONSE_TYPE.TEXT,ttf:ni.XHR_RESPONSE_TYPE.BUFFER,otf:ni.XHR_RESPONSE_TYPE.BUFFER},ni.EMPTY_GIF="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==";var ii=window.URL||window.webkitURL;var oi={caching:function(t,e){var n=this;_r[t.url]?(t.data=_r[t.url],t.complete()):t.onComplete.once((function(){return _r[n.url]=n.data})),e()},parsing:function(t,e){if(t.data){if(t.xhr&&t.xhrType===ni.XHR_RESPONSE_TYPE.BLOB)if(window.Blob&&"string"!=typeof t.data){if(0===t.data.type.indexOf("image")){var n=ii.createObjectURL(t.data);return t.blob=t.data,t.data=new Image,t.data.src=n,t.type=ni.TYPE.IMAGE,void(t.data.onload=function(){ii.revokeObjectURL(n),t.data.onload=null,e()})}}else{var A=t.xhr.getResponseHeader("content-type");if(A&&0===A.indexOf("image"))return t.data=new Image,t.data.src="data:"+A+";base64,"+function(t){for(var e="",n=0;n>2,r[1]=(3&A[0])<<4|A[1]>>4,r[2]=(15&A[1])<<2|A[2]>>6,r[3]=63&A[2],n-(t.length-1)){case 2:r[3]=64,r[2]=64;break;case 1:r[3]=64}for(var o=0;on&&!t.autoResize&&(i=n);var o=t._buffers;o||(o=t._buffers=this.generateBuffers(t));var a=e[0]._texture.baseTexture;this.state.blendMode=wt(t.blendMode,a.alphaMode),r.state.set(this.state);var s=r.gl,h=t.worldTransform.copyTo(this.tempMatrix);h.prepend(r.globalUniforms.uniforms.projectionMatrix),this.shader.uniforms.translationMatrix=h.toArray(!0),this.shader.uniforms.uColor=yt(t.tintRgb,t.worldAlpha,this.shader.uniforms.uColor,a.alphaMode),this.shader.uniforms.uSampler=a,this.renderer.shader.bind(this.shader);for(var c=!1,u=0,l=0;uA&&(p=A),l>=o.length&&o.push(this._generateOneMoreBuffer(t));var d=o[l];d.uploadDynamic(e,u,p);var f=t._bufferUpdateIDs[l]||0;(c=c||d._updateID0,h=a.alpha,c=h<1&&s?mt(a._tintRGB,h):a._tintRGB+(255*h<<24);A[i]=c,A[i+r]=c,A[i+2*r]=c,A[i+3*r]=c,i+=4*r}},e.prototype.destroy=function(){t.prototype.destroy.call(this),this.shader&&(this.shader.destroy(),this.shader=null),this.tempMatrix=null},e}(un),fi=function(t,e,n){void 0===n&&(n=null),this.baseTexture=t,this.textures={},this.animations={},this.data=e,this.resolution=this._updateResolution(n||(this.baseTexture.resource?this.baseTexture.resource.url:null)),this._frames=this.data.frames,this._frameKeys=Object.keys(this._frames),this._batchIndex=0,this._callback=null},gi={BATCH_SIZE:{configurable:!0}};gi.BATCH_SIZE.get=function(){return 1e3},fi.prototype._updateResolution=function(t){var e=this.data.meta.scale,n=Jt(t,null);return null===n&&(n=void 0!==e?parseFloat(e):1),1!==n&&this.baseTexture.setResolution(n),n},fi.prototype.parse=function(t){this._batchIndex=0,this._callback=t,this._frameKeys.length<=fi.BATCH_SIZE?(this._processFrames(0),this._processAnimations(),this._parseComplete()):this._nextBatch()},fi.prototype._processFrames=function(t){for(var e=t,n=fi.BATCH_SIZE;e-t=A&&yi.x=r&&yi.y0&&A.x>s&&(It(r,1+p-++f,1+w-p),w=p,p=-1,i.push(d),u=Math.max(u,d),l++,A.x=0,A.y+=t.lineHeight,h=null))}else i.push(c),u=Math.max(u,c),++l,++f,A.x=0,A.y+=t.lineHeight,h=null}var v=o.charAt(o.length-1);"\r"!==v&&"\n"!==v&&(/(?:\s)/.test(v)&&(c=d),i.push(c),u=Math.max(u,c));for(var b=[],C=0;C<=l;C++){var B=0;"right"===this._font.align?B=u-i[C]:"center"===this._font.align&&(B=(u-i[C])/2),b.push(B)}for(var S=r.length,E=this.tint,D=0;D=0?t:16777215,this.dirty=!0},n.align.get=function(){return this._font.align},n.align.set=function(t){this._font.align=t||"left",this.dirty=!0},n.anchor.get=function(){return this._anchor},n.anchor.set=function(t){"number"==typeof t?this._anchor.set(t):this._anchor.copyFrom(t)},n.font.get=function(){return this._font},n.font.set=function(t){t&&("string"==typeof t?(t=t.split(" "),this._font.name=1===t.length?t[0]:t.slice(1).join(" "),this._font.size=t.length>=2?parseInt(t[0],10):e.fonts[this._font.name].size):(this._font.name=t.name,this._font.size="number"==typeof t.size?t.size:parseInt(t.size,10)),this.dirty=!0)},n.text.get=function(){return this._text},n.text.set=function(t){t=String(null==t?"":t),this._text!==t&&(this._text=t,this.dirty=!0)},n.maxWidth.get=function(){return this._maxWidth},n.maxWidth.set=function(t){this._maxWidth!==t&&(this._maxWidth=t,this.dirty=!0)},n.maxLineHeight.get=function(){return this.validate(),this._maxLineHeight},n.textWidth.get=function(){return this.validate(),this._textWidth},n.letterSpacing.get=function(){return this._letterSpacing},n.letterSpacing.set=function(t){this._letterSpacing!==t&&(this._letterSpacing=t,this.dirty=!0)},n.textHeight.get=function(){return this.validate(),this._textHeight},e.registerFont=function(t,n){var A={},r=t.getElementsByTagName("info")[0],i=t.getElementsByTagName("common")[0],o=t.getElementsByTagName("page"),a=Jt(o[0].getAttribute("file"),tt.RESOLUTION),s={};A.font=r.getAttribute("face"),A.size=parseInt(r.getAttribute("size"),10),A.lineHeight=parseInt(i.getAttribute("lineHeight"),10)/a,A.chars={},n instanceof Je&&(n=[n]);for(var h=0;h 0.0) {\n c.rgb /= c.a;\n }\n\n vec4 result;\n\n result.r = (m[0] * c.r);\n result.r += (m[1] * c.g);\n result.r += (m[2] * c.b);\n result.r += (m[3] * c.a);\n result.r += m[4];\n\n result.g = (m[5] * c.r);\n result.g += (m[6] * c.g);\n result.g += (m[7] * c.b);\n result.g += (m[8] * c.a);\n result.g += m[9];\n\n result.b = (m[10] * c.r);\n result.b += (m[11] * c.g);\n result.b += (m[12] * c.b);\n result.b += (m[13] * c.a);\n result.b += m[14];\n\n result.a = (m[15] * c.r);\n result.a += (m[16] * c.g);\n result.a += (m[17] * c.b);\n result.a += (m[18] * c.a);\n result.a += m[19];\n\n vec3 rgb = mix(c.rgb, result.rgb, uAlpha);\n\n // Premultiply alpha again.\n rgb *= result.a;\n\n gl_FragColor = vec4(rgb, result.a);\n}\n",e),this.alpha=1}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={matrix:{configurable:!0},alpha:{configurable:!0}};return e.prototype._loadMatrix=function(t,e){void 0===e&&(e=!1);var n=t;e&&(this._multiply(n,this.uniforms.m,t),n=this._colorMatrix(n)),this.uniforms.m=n},e.prototype._multiply=function(t,e,n){return t[0]=e[0]*n[0]+e[1]*n[5]+e[2]*n[10]+e[3]*n[15],t[1]=e[0]*n[1]+e[1]*n[6]+e[2]*n[11]+e[3]*n[16],t[2]=e[0]*n[2]+e[1]*n[7]+e[2]*n[12]+e[3]*n[17],t[3]=e[0]*n[3]+e[1]*n[8]+e[2]*n[13]+e[3]*n[18],t[4]=e[0]*n[4]+e[1]*n[9]+e[2]*n[14]+e[3]*n[19]+e[4],t[5]=e[5]*n[0]+e[6]*n[5]+e[7]*n[10]+e[8]*n[15],t[6]=e[5]*n[1]+e[6]*n[6]+e[7]*n[11]+e[8]*n[16],t[7]=e[5]*n[2]+e[6]*n[7]+e[7]*n[12]+e[8]*n[17],t[8]=e[5]*n[3]+e[6]*n[8]+e[7]*n[13]+e[8]*n[18],t[9]=e[5]*n[4]+e[6]*n[9]+e[7]*n[14]+e[8]*n[19]+e[9],t[10]=e[10]*n[0]+e[11]*n[5]+e[12]*n[10]+e[13]*n[15],t[11]=e[10]*n[1]+e[11]*n[6]+e[12]*n[11]+e[13]*n[16],t[12]=e[10]*n[2]+e[11]*n[7]+e[12]*n[12]+e[13]*n[17],t[13]=e[10]*n[3]+e[11]*n[8]+e[12]*n[13]+e[13]*n[18],t[14]=e[10]*n[4]+e[11]*n[9]+e[12]*n[14]+e[13]*n[19]+e[14],t[15]=e[15]*n[0]+e[16]*n[5]+e[17]*n[10]+e[18]*n[15],t[16]=e[15]*n[1]+e[16]*n[6]+e[17]*n[11]+e[18]*n[16],t[17]=e[15]*n[2]+e[16]*n[7]+e[17]*n[12]+e[18]*n[17],t[18]=e[15]*n[3]+e[16]*n[8]+e[17]*n[13]+e[18]*n[18],t[19]=e[15]*n[4]+e[16]*n[9]+e[17]*n[14]+e[18]*n[19]+e[19],t},e.prototype._colorMatrix=function(t){var e=new Float32Array(t);return e[4]/=255,e[9]/=255,e[14]/=255,e[19]/=255,e},e.prototype.brightness=function(t,e){var n=[t,0,0,0,0,0,t,0,0,0,0,0,t,0,0,0,0,0,1,0];this._loadMatrix(n,e)},e.prototype.greyscale=function(t,e){var n=[t,t,t,0,0,t,t,t,0,0,t,t,t,0,0,0,0,0,1,0];this._loadMatrix(n,e)},e.prototype.blackAndWhite=function(t){this._loadMatrix([.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0],t)},e.prototype.hue=function(t,e){t=(t||0)/180*Math.PI;var n=Math.cos(t),A=Math.sin(t),r=1/3,i=(0,Math.sqrt)(r),o=[n+(1-n)*r,r*(1-n)-i*A,r*(1-n)+i*A,0,0,r*(1-n)+i*A,n+r*(1-n),r*(1-n)-i*A,0,0,r*(1-n)-i*A,r*(1-n)+i*A,n+r*(1-n),0,0,0,0,0,1,0];this._loadMatrix(o,e)},e.prototype.contrast=function(t,e){var n=(t||0)+1,A=-.5*(n-1),r=[n,0,0,0,A,0,n,0,0,A,0,0,n,0,A,0,0,0,1,0];this._loadMatrix(r,e)},e.prototype.saturate=function(t,e){void 0===t&&(t=0);var n=2*t/3+1,A=-.5*(n-1),r=[n,A,A,0,0,A,n,A,0,0,A,A,n,0,0,0,0,0,1,0];this._loadMatrix(r,e)},e.prototype.desaturate=function(){this.saturate(-1)},e.prototype.negative=function(t){this._loadMatrix([-1,0,0,1,0,0,-1,0,1,0,0,0,-1,1,0,0,0,0,1,0],t)},e.prototype.sepia=function(t){this._loadMatrix([.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0],t)},e.prototype.technicolor=function(t){this._loadMatrix([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],t)},e.prototype.polaroid=function(t){this._loadMatrix([1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0],t)},e.prototype.toBGR=function(t){this._loadMatrix([0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0],t)},e.prototype.kodachrome=function(t){this._loadMatrix([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],t)},e.prototype.browni=function(t){this._loadMatrix([.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0],t)},e.prototype.vintage=function(t){this._loadMatrix([.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0],t)},e.prototype.colorTone=function(t,e,n,A,r){var i=((n=n||16770432)>>16&255)/255,o=(n>>8&255)/255,a=(255&n)/255,s=((A=A||3375104)>>16&255)/255,h=(A>>8&255)/255,c=(255&A)/255,u=[.3,.59,.11,0,0,i,o,a,t=t||.2,0,s,h,c,e=e||.15,0,i-s,o-h,a-c,0,0];this._loadMatrix(u,r)},e.prototype.night=function(t,e){var n=[-2*(t=t||.1),-t,0,0,0,-t,0,t,0,0,0,t,2*t,0,0,0,0,0,1,0];this._loadMatrix(n,e)},e.prototype.predator=function(t,e){var n=[11.224130630493164*t,-4.794486999511719*t,-2.8746118545532227*t,0*t,.40342438220977783*t,-3.6330697536468506*t,9.193157196044922*t,-2.951810836791992*t,0*t,-1.316135048866272*t,-3.2184197902679443*t,-4.2375030517578125*t,7.476448059082031*t,0*t,.8044459223747253*t,0,0,0,1,0];this._loadMatrix(n,e)},e.prototype.lsd=function(t){this._loadMatrix([2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0],t)},e.prototype.reset=function(){this._loadMatrix([1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],!1)},n.matrix.get=function(){return this.uniforms.m},n.matrix.set=function(t){this.uniforms.m=t},n.alpha.get=function(){return this.uniforms.uAlpha},n.alpha.set=function(t){this.uniforms.uAlpha=t},Object.defineProperties(e.prototype,n),e}(Kn);Si.prototype.grayscale=Si.prototype.greyscale; /*! * @pixi/filter-displacement - v5.2.1 * Compiled Tue, 28 Jan 2020 23:33:11 UTC * * @pixi/filter-displacement is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license */ var Ei=new qt;de.prototype._cacheAsBitmap=!1,de.prototype._cacheData=!1;var Di=function(){this.textureCacheId=null,this.originalRender=null,this.originalRenderCanvas=null,this.originalCalculateBounds=null,this.originalGetLocalBounds=null,this.originalUpdateTransform=null,this.originalHitTest=null,this.originalDestroy=null,this.originalMask=null,this.originalFilterArea=null,this.sprite=null};Object.defineProperties(de.prototype,{cacheAsBitmap:{get:function(){return this._cacheAsBitmap},set:function(t){var e;this._cacheAsBitmap!==t&&(this._cacheAsBitmap=t,t?(this._cacheData||(this._cacheData=new Di),(e=this._cacheData).originalRender=this.render,e.originalRenderCanvas=this.renderCanvas,e.originalUpdateTransform=this.updateTransform,e.originalCalculateBounds=this.calculateBounds,e.originalGetLocalBounds=this.getLocalBounds,e.originalDestroy=this.destroy,e.originalContainsPoint=this.containsPoint,e.originalMask=this._mask,e.originalFilterArea=this.filterArea,this.render=this._renderCached,this.renderCanvas=this._renderCachedCanvas,this.destroy=this._cacheAsBitmapDestroy):((e=this._cacheData).sprite&&this._destroyCachedDisplayObject(),this.render=e.originalRender,this.renderCanvas=e.originalRenderCanvas,this.calculateBounds=e.originalCalculateBounds,this.getLocalBounds=e.originalGetLocalBounds,this.destroy=e.originalDestroy,this.updateTransform=e.originalUpdateTransform,this.containsPoint=e.originalContainsPoint,this._mask=e.originalMask,this.filterArea=e.originalFilterArea))}}}),de.prototype._renderCached=function(t){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObject(t),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._render(t))},de.prototype._initCachedDisplayObject=function(t){if(!this._cacheData||!this._cacheData.sprite){var e=this.alpha;this.alpha=1,t.batch.flush();var n=this.getLocalBounds().clone();if(this.filters){var A=this.filters[0].padding;n.pad(A)}n.ceil(tt.RESOLUTION);var r=t.renderTexture.current,i=t.renderTexture.sourceFrame,o=t.projection.transform,a=Ke.create(n.width,n.height),s="cacheAsBitmap_"+Tt();this._cacheData.textureCacheId=s,Te.addToCache(a.baseTexture,s),Je.addToCache(a,s);var h=Ei;h.tx=-n.x,h.ty=-n.y,this.transform.worldTransform.identity(),this.render=this._cacheData.originalRender,t.render(this,a,!0,h,!0),t.projection.transform=o,t.renderTexture.bind(r,i),this.render=this._renderCached,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null;var c=new lr(a);c.transform.worldTransform=this.transform.worldTransform,c.anchor.x=-n.x/n.width,c.anchor.y=-n.y/n.height,c.alpha=e,c._bounds=this._bounds,this._cacheData.sprite=c,this.transform._parentID=-1,this.parent?this.updateTransform():(this.parent=t._tempDisplayObjectParent,this.updateTransform(),this.parent=null),this.containsPoint=c.containsPoint.bind(c)}},de.prototype._renderCachedCanvas=function(t){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObjectCanvas(t),this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._renderCanvas(t))},de.prototype._initCachedDisplayObjectCanvas=function(t){if(!this._cacheData||!this._cacheData.sprite){var e=this.getLocalBounds(),n=this.alpha;this.alpha=1;var A=t.context;e.ceil(tt.RESOLUTION);var r=Ke.create(e.width,e.height),i="cacheAsBitmap_"+Tt();this._cacheData.textureCacheId=i,Te.addToCache(r.baseTexture,i),Je.addToCache(r,i);var o=Ei;this.transform.localTransform.copyTo(o),o.invert(),o.tx-=e.x,o.ty-=e.y,this.renderCanvas=this._cacheData.originalRenderCanvas,t.render(this,r,!0,o,!1),t.context=A,this.renderCanvas=this._renderCachedCanvas,this.updateTransform=this.displayObjectUpdateTransform,this.calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._mask=null,this.filterArea=null;var a=new lr(r);a.transform.worldTransform=this.transform.worldTransform,a.anchor.x=-e.x/e.width,a.anchor.y=-e.y/e.height,a.alpha=n,a._bounds=this._bounds,this._cacheData.sprite=a,this.transform._parentID=-1,this.parent?this.updateTransform():(this.parent=t._tempDisplayObjectParent,this.updateTransform(),this.parent=null),this.containsPoint=a.containsPoint.bind(a)}},de.prototype._calculateCachedBounds=function(){this._bounds.clear(),this._cacheData.sprite.transform._worldID=this.transform._worldID,this._cacheData.sprite._calculateBounds(),this._lastBoundsID=this._boundsID},de.prototype._getCachedLocalBounds=function(){return this._cacheData.sprite.getLocalBounds()},de.prototype._destroyCachedDisplayObject=function(){this._cacheData.sprite._texture.destroy(!0),this._cacheData.sprite=null,Te.removeFromCache(this._cacheData.textureCacheId),Je.removeFromCache(this._cacheData.textureCacheId),this._cacheData.textureCacheId=null},de.prototype._cacheAsBitmapDestroy=function(t){this.cacheAsBitmap=!1,this.destroy(t)}, /*! * @pixi/mixin-get-child-by-name - v5.2.1 * Compiled Tue, 28 Jan 2020 23:33:11 UTC * * @pixi/mixin-get-child-by-name is licensed under the MIT License. * http://www.opensource.org/licenses/mit-license */ de.prototype.name=null,ge.prototype.getChildByName=function(t){for(var e=0;e=this._durations[this.currentFrame];)A-=this._durations[this.currentFrame]*r,this._currentTime+=r;this._currentTime+=A/this._durations[this.currentFrame]}else this._currentTime+=e;this._currentTime<0&&!this.loop?(this._currentTime=0,this.stop(),this.onComplete&&this.onComplete()):this._currentTime>=this._textures.length&&!this.loop?(this._currentTime=this._textures.length-1,this.stop(),this.onComplete&&this.onComplete()):n!==this.currentFrame&&(this.loop&&this.onLoop&&(this.animationSpeed>0&&this.currentFramen&&this.onLoop()),this.updateTexture())},e.prototype.updateTexture=function(){this._texture=this._textures[this.currentFrame],this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this.uvs=this._texture._uvs.uvsFloat32,this.updateAnchor&&this._anchor.copyFrom(this._texture.defaultAnchor),this.onFrameChange&&this.onFrameChange(this.currentFrame)},e.prototype.destroy=function(e){this.stop(),t.prototype.destroy.call(this,e),this.onComplete=null,this.onFrameChange=null,this.onLoop=null},e.fromFrames=function(t){for(var n=[],A=0;A2;)Ri.push(arguments[i]);for(e&&null!=e.children&&(Ri.length||Ri.push(e.children),delete e.children);Ri.length;)if((A=Ri.pop())&&void 0!==A.pop)for(i=A.length;i--;)Ri.push(A[i]);else"boolean"==typeof A&&(A=null),(r="function"!=typeof t)&&(null==A?A="":"number"==typeof A?A=String(A):"string"!=typeof A&&(r=!1)),r&&n?o[o.length-1]+=A:o===zi?o=[A]:o.push(A),n=r;var a=new Oi;return a.nodeName=t,a.children=o,a.attributes=null==e?void 0:e,a.key=null==e?void 0:e.key,void 0!==Qi.vnode&&Qi.vnode(a),a}function Li(t,e){for(var n in e)t[n]=e[n];return t}function Ni(t,e){null!=t&&("function"==typeof t?t(e):t.current=e)}var Fi="function"==typeof Promise?Promise.resolve().then.bind(Promise.resolve()):setTimeout;var Ui=/acit|ex(?:s|g|n|p|$)|rph|ows|mnc|ntw|ine[ch]|zoo|^ord/i,ji=[];function Gi(t){!t._dirty&&(t._dirty=!0)&&1==ji.push(t)&&(Qi.debounceRendering||Fi)(Yi)}function Yi(){for(var t;t=ji.pop();)t._dirty&&co(t)}function Ji(t,e,n){return"string"==typeof e||"number"==typeof e?void 0!==t.splitText:"string"==typeof e.nodeName?!t._componentConstructor&&Xi(t,e.nodeName):n||t._componentConstructor===e.nodeName}function Xi(t,e){return t.normalizedNodeName===e||t.nodeName.toLowerCase()===e.toLowerCase()}function Ki(t){var e=Li({},t.attributes);e.children=t.children;var n=t.nodeName.defaultProps;if(void 0!==n)for(var A in n)void 0===e[A]&&(e[A]=n[A]);return e}function Vi(t){var e=t.parentNode;e&&e.removeChild(t)}function Wi(t,e,n,A,r){if("className"===e&&(e="class"),"key"===e);else if("ref"===e)Ni(n,null),Ni(A,t);else if("class"!==e||r)if("style"===e){if(A&&"string"!=typeof A&&"string"!=typeof n||(t.style.cssText=A||""),A&&"object"==typeof A){if("string"!=typeof n)for(var i in n)i in A||(t.style[i]="");for(var i in A)t.style[i]="number"==typeof A[i]&&!1===Ui.test(i)?A[i]+"px":A[i]}}else if("dangerouslySetInnerHTML"===e)A&&(t.innerHTML=A.__html||"");else if("o"==e[0]&&"n"==e[1]){var o=e!==(e=e.replace(/Capture$/,""));e=e.toLowerCase().substring(2),A?n||t.addEventListener(e,_i,o):t.removeEventListener(e,_i,o),(t._listeners||(t._listeners={}))[e]=A}else if("list"!==e&&"type"!==e&&!r&&e in t){try{t[e]=null==A?"":A}catch(t){}null!=A&&!1!==A||"spellcheck"==e||t.removeAttribute(e)}else{var a=r&&e!==(e=e.replace(/^xlink:?/,""));null==A||!1===A?a?t.removeAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase()):t.removeAttribute(e):"function"!=typeof A&&(a?t.setAttributeNS("http://www.w3.org/1999/xlink",e.toLowerCase(),A):t.setAttribute(e,A))}else t.className=A||""}function _i(t){return this._listeners[t.type](Qi.event&&Qi.event(t)||t)}var Zi=[],qi=0,$i=!1,to=!1;function eo(){for(var t;t=Zi.shift();)Qi.afterMount&&Qi.afterMount(t),t.componentDidMount&&t.componentDidMount()}function no(t,e,n,A,r,i){qi++||($i=null!=r&&void 0!==r.ownerSVGElement,to=null!=t&&!("__preactattr_"in t));var o=Ao(t,e,n,A,i);return r&&o.parentNode!==r&&r.appendChild(o),--qi||(to=!1,i||eo()),o}function Ao(t,e,n,A,r){var i=t,o=$i;if(null!=e&&"boolean"!=typeof e||(e=""),"string"==typeof e||"number"==typeof e)return t&&void 0!==t.splitText&&t.parentNode&&(!t._component||r)?t.nodeValue!=e&&(t.nodeValue=e):(i=document.createTextNode(e),t&&(t.parentNode&&t.parentNode.replaceChild(i,t),ro(t,!0))),i.__preactattr_=!0,i;var a,s,h=e.nodeName;if("function"==typeof h)return function(t,e,n,A){var r=t&&t._component,i=r,o=t,a=r&&t._componentConstructor===e.nodeName,s=a,h=Ki(e);for(;r&&!s&&(r=r._parentComponent);)s=r.constructor===e.nodeName;r&&s&&(!A||r._component)?(ho(r,h,3,n,A),t=r.base):(i&&!a&&(uo(i),t=o=null),r=ao(e.nodeName,h,n),t&&!r.nextBase&&(r.nextBase=t,o=null),ho(r,h,1,n,A),t=r.base,o&&t!==o&&(o._component=null,ro(o,!1)));return t}(t,e,n,A);if($i="svg"===h||"foreignObject"!==h&&$i,h=String(h),(!t||!Xi(t,h))&&(a=h,(s=$i?document.createElementNS("http://www.w3.org/2000/svg",a):document.createElement(a)).normalizedNodeName=a,i=s,t)){for(;t.firstChild;)i.appendChild(t.firstChild);t.parentNode&&t.parentNode.replaceChild(i,t),ro(t,!0)}var c=i.firstChild,u=i.__preactattr_,l=e.children;if(null==u){u=i.__preactattr_={};for(var p=i.attributes,d=p.length;d--;)u[p[d].name]=p[d].value}return!to&&l&&1===l.length&&"string"==typeof l[0]&&null!=c&&void 0!==c.splitText&&null==c.nextSibling?c.nodeValue!=l[0]&&(c.nodeValue=l[0]):(l&&l.length||null!=c)&&function(t,e,n,A,r){var i,o,a,s,h,c=t.childNodes,u=[],l={},p=0,d=0,f=c.length,g=0,w=e?e.length:0;if(0!==f)for(var y=0;y2?[].slice.call(arguments,2):t.children)},createRef:function(){return{}},Component:lo,render:function(t,e,n){return no(n,t,{},!1,e,!1)},rerender:Yi,options:Qi},fo=n(5),go=n.n(fo);function wo(t,e){this.x=t||0,this.y=e||0}Object.defineProperties(wo.prototype,{width:{get:function(){return this.x},set:function(t){this.x=t}},height:{get:function(){return this.y},set:function(t){this.y=t}}}),Object.assign(wo.prototype,{isVector2:!0,set:function(t,e){return this.x=t,this.y=e,this},setScalar:function(t){return this.x=t,this.y=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;default:throw new Error("index is out of range: "+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+t)}},clone:function(){return new this.constructor(this.x,this.y)},copy:function(t){return this.x=t.x,this.y=t.y,this},add:function(t,e){return void 0!==e?(console.warn("THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this)},addScalar:function(t){return this.x+=t,this.y+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this},sub:function(t,e){return void 0!==e?(console.warn("THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this)},subScalar:function(t){return this.x-=t,this.y-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this},multiplyScalar:function(t){return this.x*=t,this.y*=t,this},divide:function(t){return this.x/=t.x,this.y/=t.y,this},divideScalar:function(t){return this.multiplyScalar(1/t)},applyMatrix3:function(t){var e=this.x,n=this.y,A=t.elements;return this.x=A[0]*e+A[3]*n+A[6],this.y=A[1]*e+A[4]*n+A[7],this},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this},clampScalar:function(t,e){return this.x=Math.max(t,Math.min(e,this.x)),this.y=Math.max(t,Math.min(e,this.y)),this},clampLength:function(t,e){var n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))},floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},roundToZero:function(){return this.x=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this},negate:function(){return this.x=-this.x,this.y=-this.y,this},dot:function(t){return this.x*t.x+this.y*t.y},cross:function(t){return this.x*t.y-this.y*t.x},lengthSq:function(){return this.x*this.x+this.y*this.y},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},manhattanLength:function(){return Math.abs(this.x)+Math.abs(this.y)},normalize:function(){return this.divideScalar(this.length()||1)},angle:function(){var t=Math.atan2(this.y,this.x);return t<0&&(t+=2*Math.PI),t},distanceTo:function(t){return Math.sqrt(this.distanceToSquared(t))},distanceToSquared:function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},manhattanDistanceTo:function(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)},setLength:function(t){return this.normalize().multiplyScalar(t)},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this},lerpVectors:function(t,e,n){return this.subVectors(e,t).multiplyScalar(n).add(t)},equals:function(t){return t.x===this.x&&t.y===this.y},fromArray:function(t,e){return void 0===e&&(e=0),this.x=t[e],this.y=t[e+1],this},toArray:function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this.x,t[e+1]=this.y,t},fromBufferAttribute:function(t,e,n){return void 0!==n&&console.warn("THREE.Vector2: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this},rotateAround:function(t,e){var n=Math.cos(e),A=Math.sin(e),r=this.x-t.x,i=this.y-t.y;return this.x=r*n-i*A+t.x,this.y=r*A+i*n+t.y,this},normal:function(){var t=new wo(this.x,this.y);return t.rotateAround({x:0,y:0},90*Math.PI/180),t.normalize()}});var yo=wo,mo=function(t){function e(t){var n,A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:65535;return p()(this,e),(n=w()(this,m()(e).call(this))).target=null,n.color=0,n.lastPositions=[],n.maxLength=20,n.target=t,n.color=A,n}return C()(e,t),f()(e,[{key:"render",value:function(t){var n=this;this.lastPositions.push({x:this.target.position.x,y:this.target.position.y}),this.clear(),this.lineStyle(Kl.SCALE,this.color,1),this.moveTo(this.lastPositions[0].x,this.lastPositions[0].y),this.lastPositions.forEach((function(t,e){n.lineStyle(20*Kl.SCALE*(e/n.maxLength),n.color,e/n.maxLength),n.lineTo(t.x,t.y)})),this.lastPositions.length>this.maxLength&&this.lastPositions.shift(),go()(m()(e.prototype),"render",this).call(this,t)}},{key:"destroy",value:function(){go()(m()(e.prototype),"destroy",this).call(this),this.target=null}}]),e}(hr),xo=function(t){function e(t,n,A,r,i){var o;return p()(this,e),(o=w()(this,m()(e).call(this,t))).target=n,o.container=A,o.px=r,o.py=i,o.anchor=n.anchor,o.scale=n.scale,o.tint=0,o.alpha=.5,o}return C()(e,t),f()(e,[{key:"render",value:function(t){this.texture!==this.target.texture&&(this.texture=this.target.texture),this.scale=this.target.scale,this.target!==this.container&&(this.x=this.px*Math.cos(this.container.rotation)+this.py*Math.sin(this.container.rotation),this.y=this.px*Math.sin(this.container.rotation)+this.py*Math.cos(this.container.rotation)),go()(m()(e.prototype),"render",this).call(this,t)}}]),e}(lr);function vo(t,e,n,A){return new xo(t.texture,t,e,n,A)}var bo={};function Co(t){var e=t.id;return bo[e]?bo[e]:(bo[e]=new fi(Kl.instance.resources[t.texture].texture.baseTexture,Kl.instance.resources[t.atlas]),bo[e].parse((function(){})),bo[e])}var Bo=function(t){function e(t){var n;p()(this,e),(n=w()(this,m()(e).call(this))).radius=.017,n.r=0,n.theta=0,n.vtheta=0,n.speed=new yo(0,0),n.acceleration=new yo(0,0),n.hook=null,n.rope=null,n.hookPullRemaining=0,n.applyGravity=!0,n.trail=null,n.sprite=null,n.shadow=null,n.skin=null,n.angularVelocity=0,n.step=function(t){if(n.hook){n.hookPullRemaining>0&&(n.r-=.3*Math.min(t,n.hookPullRemaining),n.r<.05&&(n.r=.05,n.hookPullRemaining=0),n.hookPullRemaining-=t);var e=-Kl.instance.gravity.y*Math.sin(n.theta)/n.r;n.vtheta+=e*t,n.theta+=n.vtheta*t,n.position.set(n.r*Math.sin(n.theta)+n.hook.position.x,n.r*Math.cos(n.theta)+n.hook.position.y),n.rotation=-n.theta,n.rope.rotation=-n.theta+Math.PI/2,n.rope.position.set(n.hook.position.x,n.hook.position.y),n.rope.visible=!0,n.rope.scale.x=n.r,n.vtheta>0?n.scale.x=n.scale.y:(n.scale.x=-n.scale.y,n.shadow.x*=-1),Math.abs(n.vtheta)<.5?n.gotoFrame("hooked0"):n.theta<0&&n.vtheta<0||n.theta>0&&n.vtheta>0?n.gotoFrame("hooked1"):n.gotoFrame("hooked2"),n.speed.set(n.r*n.vtheta*Math.cos(n.theta),-n.r*n.vtheta*Math.sin(n.theta),0)}else{n.acceleration=n.speed.clone().multiplyScalar(-Kl.AIR_FRICTION),n.applyGravity&&n.acceleration.add(Kl.instance.gravity),n.speed.add(n.acceleration.clone().multiplyScalar(t));var A=n.speed.clone().multiplyScalar(t);n.position.set(n.position.x+A.x,n.position.y+A.y),n.rotation+=n.angularVelocity*t}},n.hookTo=function(t){var e={x:-1*(t.position.x-n.position.x),y:1*(t.position.y-n.position.y)};n.theta=Math.atan2(e.x,-e.y),n.r=Math.sqrt(e.x*e.x+e.y*e.y),n.vtheta=-(Math.cos(n.theta)*-n.speed.x+Math.sin(n.theta)*n.speed.y)/n.r,n.vtheta*=1.075,n.hook=t,n.hookPullRemaining=.2,n.parent.addChildAt(n.rope,1),n.gotoFrame("hooked2")},n.unhook=function(){n.hook&&(n.speed.multiplyScalar(1.2),n.angularVelocity=20*n.speed.x,n.parent.removeChild(n.rope),n.hook=null,n.hookPullRemaining=0,n.gotoFrame("ball"),n.scale.x=n.scale.y)},n.onHit=function(t){n.hookPullRemaining=0,n.hook||(n.gotoFrame("ball"),n.angularVelocity=20*n.speed.x)},n.skin=t,n.sprite=new Mi(Co(n.skin).animations[t.id]),n.sprite.anchor.set(.5,.5),n.rope=new hr;var A=.002,r=16777215;return Kl.instance.features.halloween?(A=.002,r=16777215):Kl.instance.features.christmas&&(A=.002,r=16724787),n.rope.lineStyle(A,r).moveTo(0,0).lineTo(1,0),n.on("added",(function(t){n.trail=new mo(v()(n));var e=n.parent.getChildIndex(v()(n));n.parent.addChildAt(n.trail,e)})),n.scale.set(.5*Kl.SCALE),n.gotoFrame("spawn"),n.shadow=vo(n.sprite,v()(n),0,20),n.addChild(n.shadow),n.addChild(n.sprite),n}return C()(e,t),f()(e,[{key:"gotoFrame",value:function(t){this.sprite.gotoAndStop(this.skin.frames[t])}},{key:"dance",value:function(){this.sprite.textures=Co(this.skin).animations.dance,this.sprite.loop=!0,this.sprite.animationSpeed=.125,this.sprite.play()}},{key:"destroy",value:function(){go()(m()(e.prototype),"destroy",this).call(this),this.trail&&(this.trail.destroy(),this.trail=null),this.shadow&&(this.shadow.destroy(),this.shadow=null)}}]),e}(ge),So=n(32),Eo=n.n(So),Do=n(15),Io=n.n(Do),ko=n(33),Po=n.n(ko),To=n(12),Mo=n.n(To),Oo=function(t){function e(){var t,n,A;p()(this,e);for(var r=arguments.length,i=new Array(r),o=0;o1&&void 0!==arguments[1]?arguments[1]:0;this.timeout=setTimeout((function(){n>4e3?e.flash():e.setSkinTimeout(.9*t>75?Math.round(.9*t):75,n+t),e.setState({time:t,skinIndex:(e.state.skinIndex+1)%e.state.skins.length})}),t)}},{key:"startAnimation",value:function(){var t=this,e=this.props.onClose;this.setState({skinIndex:0,time:400});var n=this.state.skins.map((function(t,e){return[t,e]})).filter((function(t){return!is(t[0])}));0===n.length?e():Kl.instance.eventEmitter.emit("requestRewarded",{onComplete:function(A){A?(t.setState({flash:!1,flashStart:!0,selectedSkinIndex:n[Math.floor(Math.random()*n.length)][1]}),t.setSkinTimeout(t.state.time)):e(1)},onFail:function(){e(2)}})}},{key:"componentDidMount",value:function(){this.startAnimation(),document.addEventListener("keyup",this.onKeyPress)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keyup",this.onKeyPress)}},{key:"render",value:function(){var t=this,e=this.props,n=e.onClose,A=e.onEquip;return po.h("div",{class:"popup-container clickable",onClick:function(){t.state.flash&&n&&n()}},po.h("div",null,po.h("div",{class:"random-skin-popup clickable".concat(!Kl.instance.features.halloween||!Kl.instance.features.halloween_popup?"":" skin-unlocked-popup-halloween").concat(!Kl.instance.features.christmas||!Kl.instance.features.christmas_popup?"":" skin-unlocked-popup-christmas"),onClick:function(t){return t.stopImmediatePropagation()}},this.state.flash?po.h("div",{class:"random-skin-popup-before".concat(!Kl.instance.features.halloween||!Kl.instance.features.halloween_popup?"":" skin-unlocked-popup-halloween").concat(!Kl.instance.features.christmas||!Kl.instance.features.christmas_popup?"":" skin-unlocked-popup-christmas")}):po.h("div",{class:"random-skin-popup-before-no-image".concat(!Kl.instance.features.halloween||!Kl.instance.features.halloween_popup?"":" random-skin-popup-before-no-image-halloween").concat(!Kl.instance.features.christmas||!Kl.instance.features.christmas_popup?"":" random-skin-popup-before-no-image-christmas")}),this.state.flash&&po.h("p",null,"NEW SKIN UNLOCKED!"),po.h("img",{class:!this.state.flash&&"random-skin-select"+(Kl.instance.features.halloween?"-halloween":Kl.instance.features.christmas?"-christmas":""),src:this.state.flash?this.state.skins[this.state.selectedSkinIndex].thumbnail:this.state.skins[this.state.skinIndex].thumbnail,style:this.state.flash?{animation:"0.5s cubic-bezier(0.34, 1.56, 0.64, 1) scaleUp2"}:{animation:"".concat((this.state.time+100)/1e3,"s ease-out scaleUp infinite")}}),this.state.flash&&po.h("div",null,po.h("button",{class:"equip-skin-button button".concat(!Kl.instance.features.halloween||!Kl.instance.features.halloween_popup?"":" equip-skin-button-halloween").concat(!Kl.instance.features.christmas||!Kl.instance.features.christmas_popup?"":" equip-skin-button-christmas"),onClick:A},"EQUIP NOW"),po.h("button",{class:"again-button button".concat(!Kl.instance.features.halloween||!Kl.instance.features.halloween_popup?"":" equip-skin-button-halloween").concat(!Kl.instance.features.christmas||!Kl.instance.features.christmas_popup?"":" equip-skin-button-christmas"),onClick:function(e){t.startAnimation()}},"AGAIN !",po.h("div",{class:"again-button-ad-icon"}))),this.state.flash?po.h("div",{class:"random-skin-white-flash-2"}):this.state.flashStart&&po.h("div",{class:"random-skin-white-flash"}))))}}]),e}(po.Component),fs=function(t){function e(){var t,n,A;p()(this,e);for(var r=arguments.length,i=new Array(r),o=0;o0&&void 0!==arguments[0]?arguments[0]:0;t.setState({showRandomSkin:!1}),Kl.instance.gotoShop(0,e)},onEquip:function(){Kl.instance.gotoNextLevel()}}),po.h("div",{class:"row"},Kl.instance.features.share?po.h(cs,{onClick:function(){return Kl.instance.eventEmitter.emit("playWith",null)}},"Challenge",po.h("br",null),"a friend"):null,Kl.instance.features.leaderboard?po.h("button",{class:"leaderboard-button button",onClick:function(){return Kl.instance.gotoLeaderboard()}},"Leaderboard"):null))}}]),e}(po.Component),gs=function(t){function e(){var t;if(p()(this,e),(t=w()(this,m()(e).call(this))).uiComponent=fs,t.sceneName="title",t.snowParticles=[],t.particleContainer=null,t.onResize=function(){t.bg.width=100,t.bg.height=1,t.bg2&&(t.bg2.tileScale={x:75e-5,y:75e-5},t.bg2.width=1e3,t.bg2.height=1e3,t.bg2.alpha=t.bg2Alpha||.05),t.title.scale.set(1.75*Kl.SCALE),t.title.x=Kl.instance.width/Kl.instance.height/2,t.title.y=t.title.height/2.5,t.shadow.x=t.title.x,t.shadow.y=t.title.y+.008,t.hook.position.x=t.title.x+t.title.width/13,t.hook.position.y=t.title.y+t.title.height/6,t.stickman.scale.set(1*Kl.SCALE),t.particleContainer&&t.particleContainer.scale.set(1/Kl.instance.height)},t.step=function(e){t.stickman.step(e),t.snowParticles.forEach((function(t){t.yOffset>1.1&&(t.yOffset=-.1),t.scale.set(t.initScale,t.initScale),t.x=(t.initX+.03*Math.sin((t.yOffset+t.offset)*t.speed*200))*Kl.instance.width,t.yOffset+=t.speed*e,t.y=Kl.instance.height*t.yOffset}))},Kl.instance.features.halloween?(t.bg=new lr(Kl.instance.resources.background_halloween_0.texture),t.bg2=new mi(Kl.instance.resources.background_halloween_pattern.texture),t.bg2Alpha=.05):Kl.instance.features.christmas?(t.bg=new lr(Kl.instance.resources.background_christmas_0.texture),t.bg2=new mi(Kl.instance.resources.background_christmas_pattern.texture),t.bg2Alpha=.11):(t.bg=new lr(Kl.instance.resources.background_1.texture),t.bg2=null),t.title=new lr(Kl.instance.resources.title.texture),t.title.anchor.set(.5,.5),t.shadow=vo(t.title,t.title,0,0),t.stickman=new Bo(Kl.instance.playerSkin),t.addChild(t.bg),t.bg2&&t.addChild(t.bg2),t.addChild(t.shadow),t.addChild(t.title),t.addChild(t.stickman),t.hook={position:{x:0,y:0}},Kl.instance.features.christmas){t.particleContainer=new ge,t.particleContainer.position.x=0,t.particleContainer.position.y=0,t.particleContainer.scale.set(1/Kl.instance.height);for(var n=[Kl.instance.resources.snowflake_circle_big.texture,Kl.instance.resources.snowflake_circle_small.texture,Kl.instance.resources.snowflake_big.texture,Kl.instance.resources.snowflake_small.texture],A=0;A<75;A++){var r=new lr(n[A%n.length]);r.anchor.set(.5,.5);r.initScale=.1*Math.random()+.15,r.speed=.05*Math.random()+.05,r.offset=Math.random(),r.initX=Math.random(),r.yOffset=2*Math.random()-1,r.x=r.initX*Kl.instance.width,t.particleContainer.addChild(r),t.snowParticles.push(r)}}return t.onResize(),t.stickman.position.set(Kl.instance.width/Kl.instance.height*.4,t.hook.position.y+.2),t.stickman.hookTo(t.hook),t.particleContainer&&t.addChildAt(t.particleContainer,1),t}return C()(e,t),f()(e,[{key:"destroy",value:function(){go()(m()(e.prototype),"destroy",this).call(this),this.stickman=null,this.title=null,this.shadow=null,this.bg=null}}]),e}(ge),ws=null;var ys=function(t){function e(t,n,A,r,i){var o;return p()(this,e),(o=w()(this,m()(e).call(this))).onHit=function(t){o.sprite.playing||o.sprite.gotoAndPlay(0)},o.position.set(t.x,t.y),o.rotation=n,o.w=A,o.h=r,o.bounciness=i&&i.bounce||1.2,o.maxSpeed=3,o.minSpeed=.1,o.bounceForce=i?i.force:void 0,o.bounceAngle=i?i.angle:void 0,o.scale.set(Kl.SCALE),o.sprite=new Mi((ws||((ws=new fi(Kl.instance.resources.bumper_texture.texture.baseTexture,Kl.instance.resources.bumper_json)).parse((function(){})),ws)).animations.AN_Grap1_BumperLarge),o.sprite.anchor.set(.49,.635),o.addChild(o.sprite),o.radius=Math.sqrt(o.w*o.w,o.h*o.h),o.sprite.animationSpeed=.5,o.sprite.loop=!1,o.sprite.gotoAndStop(4),o.shadow=vo(o.sprite,v()(o),0,20),o.addChildAt(o.shadow,0),o}return C()(e,t),f()(e,[{key:"destroy",value:function(){go()(m()(e.prototype),"destroy",this).call(this),this.sprite.destroy(),this.shadow.destroy(),this.sprite=null,this.shadow=null}}]),e}(ge),ms=function(t){function e(t){var n;return p()(this,e),(n=w()(this,m()(e).call(this))).sprite=null,n.nearSprite=null,n.activeSprite=null,n.step=function(t){n.nearSprite.visible&&n.nearSprite.scale.set(Math.min(n.nearSprite.scale.x+5*t,1))},n.position.set(t.x,t.y),n.scale.set(Kl.SCALE),n.sprite=new lr(Kl.instance.resources.hook.texture),n.sprite.anchor.set(.5,.5),n.addChild(n.sprite),n.nearSprite=new lr(Kl.instance.resources.hook_near.texture),n.nearSprite.anchor.set(.5),n.addChild(n.nearSprite),n.isNear(!1),n.activeSprite=new lr(Kl.instance.resources.hook_active.texture),n.activeSprite.anchor.set(.5),n.addChild(n.activeSprite),n.isActive(!1),n}return C()(e,t),f()(e,[{key:"isNear",value:function(t){this.nearSprite.visible=t,this.nearSprite.scale.set(.4)}},{key:"isActive",value:function(t){this.activeSprite.visible=t}}]),e}(ge);var xs=function(t,e,n){if(0===n)return!1;var A=e.x-t.x,r=e.y-t.y;return A*A+r*r<=n*n};function vs(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(t);e&&(A=A.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,A)}return n}var bs={x:0,y:0};var Cs=function(t,e,n,A){if(xs(t,n,A))return t;if(xs(e,n,A))return e;var r=t.x,i=t.y,o=e.x,a=e.y,s=n.x,c=n.y,u=o-r,l=a-i,p=u*u+l*l,d=u,f=l;if(p>0){var g=((s-r)*u+(c-i)*l)/p;d*=g,f*=g}var w=bs;w.x=r+d,w.y=i+f;var y=d*d+f*f;return!!(xs(w,n,A)&&y<=p&&d*u+f*l>=0)&&function(t){for(var e=1;ei*i)return!1;var o=e.rotation,a=Ss(A,o);return!(Math.abs(a.x)>n.width/2+t.radius||Math.abs(a.y)>n.height/2+t.radius)&&a}(t,e);if(n){t.onHit&&t.onHit(e),e.onHit&&e.onHit(t);var A=e.bounciness||1.2;if(t.hook){if(t.ignoreNextCollision)return;return t.ignoreNextCollision=!0,t.theta-=t.vtheta/60,void(e.bounceForce?t.vtheta=e.bounceForce*(t.vtheta>0?-1:1)/t.r:(t.vtheta*=-A,t.vtheta*t.r>3&&(t.vtheta=3/t.r)))}var r,i=e.rotation,o=Ss(t.speed,i),a=Ss(t.position,i),s=Ss(e.position,i),h=e.w,c=e.h,u=Math.abs(n.y)-c/2>Math.abs(n.x)-h/2,l=u?"y":"x";r=u?n.y>0?s.y+c/2+t.radius:s.y-c/2-t.radius:n.x>0?s.x+h/2+t.radius:s.x-h/2-t.radius,e.bounceForce?o[l]=e.bounceForce*(o[l]>0?-1:1):o[l]*=-1*A;var p=o[l]>0?1:-1;e.minSpeed&&(o[l]=Math.max(Math.abs(o[l]),e.minSpeed)*p),e.maxSpeed&&(o[l]=Math.min(Math.abs(o[l]),e.maxSpeed)*p),a[l]=2*r-a[l],t.speed.copy(Ss(o,-i)),void 0!==e.bounceAngle&&t.speed.rotateAround({x:0,y:0},-t.speed.angle()+e.bounceAngle);var d=Ss(a,-i);t.position.x=d.x,t.position.y=d.y}}function Ss(t,e){var n=new yo;return n.set(t.x*Math.cos(e)+t.y*Math.sin(e),-t.x*Math.sin(e)+t.y*Math.cos(e),t.z),n}var Es=function(t){function e(){var t,n,A;p()(this,e);for(var r=arguments.length,i=new Array(r),o=0;othis.radius&&(this.radius=o),Ms.x+=this.position.x,Ms.y+=this.position.y,A.push({x:Ms.x,y:Ms.y})}this.shapes.push(A)}return this.shapes}}]),e}(lr),Qs=function(t){function e(t,n){var A;if(p()(this,e),(A=w()(this,m()(e).call(this))).uiComponent=Is,A.sceneName="level",A.id=0,A.ld=null,A._zoom=1,A.ratio=1,A.stickman=null,A.spawnPoint=null,A.bumpers=[],A.hooks=[],A.obstacles=[],A.container=null,A.closestHook=null,A.finishLine=null,A.completed=!1,A.confettis=[],A.progress=0,A.cameraXOffset=0,A.attempts=0,A.spawnTime=0,A.pausable=!0,A.onResize=function(){},A.substep=function(t){A.stickman&&A.stickman.step(t),A.bumpers.forEach((function(t){Bs(A.stickman,t)})),A.obstacles.forEach((function(t){return function(t,e){var n=t.position.x-e.position.x,A=t.position.y-e.position.y,r=n*n+A*A,i=t.radius+e.radius;if(!(r>i*i)){var o=e.shapes,a=null,s=null;if(o.some((function(e){for(var n=0;nMath.abs(p.x)?"y":"x"]*=-.1,t.speed=Ss(l,-u),t.angularVelocity=20*t.speed.x}}}}(A.stickman,t)}))},A.step=function(t){var e=A.completed?.2*t:t;A.stickman.ignoreNextCollision=!1;for(var n=0;n<4;n++)A.substep(e/4);var r=A.findClosestHook();r!==A.closestHook&&(r.isNear(!0),A.closestHook&&A.closestHook.isNear(!1),A.closestHook=r),A.closestHook.step(e),!A.completed&&A.stickman.x>A.finishLine.x&&A.onComplete(),!A.completed&&(A.stickman.y>1.15||A.stickman.x<0)&&!A.stickman.hook&&A.stickman.speed.y>0&&A.onDead(),A.updateCamera(t),A.confettis.forEach((function(t){t.x+=t.vx*e,t.y+=t.vy*e,t.rotation+=t.vr*e}));var i=(A.stickman.x-A.ld.spawnPoint.x)/(A.finishLine.x-A.ld.spawnPoint.x);i>A.progress&&(A.progress=Math.min(1,i),Kl.instance.eventEmitter.emit("levelProgress",100*A.progress))},A.onMouseDown=function(){Kl.instance.paused||A.completed||A.stickman.hook||!A.closestHook||(A.stickman.hookTo(A.closestHook),A.closestHook.isActive(!0))},A.onMouseUp=function(){Kl.instance.paused||A.completed||!A.stickman.hook||(A.stickman.hook.isActive(!1),A.stickman.unhook())},A.onKeyDown=function(t){32===t.keyCode&&A.onMouseDown(),82===t.keyCode&&(Kl.instance.paused||A.completed||(A.stickman.hook&&A.onMouseUp(),A.onDead()))},A.onKeyUp=function(t){32===t.keyCode?A.onMouseUp():27===t.keyCode&&(Kl.instance.paused?Kl.instance.resume():Kl.instance.pause())},A.onDead=function(){A.closestHook=null,Kl.instance.eventEmitter.emit("levelFailed",{mode:"classic",score:A.progress,status:"FAILED",level:A.id+1,attempt:A.attempts,time:Date.now()-A.spawnTime,completion:A.progress}),A.spawn()},A.onComplete=function(){A.completed=!0,A.pausable=!1,A.stickman.hook&&A.stickman.unhook(),A.gotoVictoryTimeout=setTimeout((function(){Kl.instance.gotoVictory(A.ld.background)}),2e3);var t=new ge;t.position.x=A.ld.finishLine,t.position.y=A.stickman.position.y,t.scale.set(Kl.SCALE);var e=[Kl.instance.resources.confetti.texture];Kl.instance.features.halloween?e=[Kl.instance.resources.bone.texture]:Kl.instance.features.christmas&&(e=[Kl.instance.resources.snowflake_circle_big.texture,Kl.instance.resources.snowflake_circle_small.texture,Kl.instance.resources.snowflake_big.texture,Kl.instance.resources.snowflake_small.texture,Kl.instance.resources.sugarcane.texture,Kl.instance.resources.houx.texture,Kl.instance.resources.gift_1.texture,Kl.instance.resources.gift_2.texture]);for(var n=50+(Kl.instance.features.christmas?25:0),r=0;r2&&void 0!==arguments[2]?arguments[2]:.15,A=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.04,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:null,o=new ys({x:t,y:e},r,n,A,i);return this.bumpers.push(o),this.container.addChild(o),o}},{key:"addHook",value:function(t,e){var n=new ms({x:t,y:e});return this.hooks.push(n),this.container.addChild(n),n}},{key:"addObstacle",value:function(t,e,n){var A=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,r=new Os(t,{x:e,y:n},A);return this.obstacles.push(r),this.container.addChild(r),r}},{key:"updateCamera",value:function(t){if(this.completed){if(this.completeTime=(this.completeTime||0)+t,this.completeTime<.6){this.zoom=ks(this._zoom,this.completeTime,1,3,.6);var e=-this._zoom/2+.5;this.container.y=ks(this.container.y,this.completeTime,e,-this.stickman.y*this._zoom+.5-e,.6)}else this.container.y=-this.stickman.y*this._zoom+.5;this.container.x=Math.min(0,(-this.stickman.x-.05/this._zoom)*this._zoom+this.ratio/2)}else{var n=this.stickman.speed,A=n.x>.1?.2:n.x<-.1?-.2:0;this.cameraXOffset=Math.min(.1,Math.max(-.1,this.cameraXOffset+A*t)),this.container.x=Math.min(0,(-this.stickman.x-this.cameraXOffset/this._zoom)*this._zoom+this.ratio/2)}}},{key:"findClosestHook",value:function(){var t=this,e=1/0,n=null;return this.hooks.forEach((function(A){var r=A.x-t.stickman.position.x,i=A.y-t.stickman.position.y,o=r*r+i*i;o0&&void 0!==arguments[0]?arguments[0]:"background_0";if(p()(this,e),(t=w()(this,m()(e).call(this))).uiComponent=ll,t.sceneName="victory",t.snowParticles=[],t.particleContainer=null,t.onResize=function(){t.bg.width=100,t.bg.height=1,t.bg2&&(t.bg2.tileScale={x:75e-5,y:75e-5},t.bg2.width=1e3,t.bg2.height=1e3,t.bg2.alpha=t.bg2Alpha||.05),Kl.instance.height<=420?t.stickman.position.y=.3:Kl.instance.height<=500?t.stickman.position.y=.45:t.stickman.position.y=.5,t.stickman.position.x=Kl.instance.width/Kl.instance.height/2,t.stickman.scale.set(.5*Kl.SCALE*3),t.platform.position.x=t.stickman.position.x,t.platform.position.y=t.stickman.position.y,t.particleContainer&&t.particleContainer.scale.set(1/Kl.instance.height)},t.step=function(e){t.snowParticles.forEach((function(t){t.yOffset>1.1&&(t.yOffset=-.1),t.scale.set(t.initScale,t.initScale),t.x=(t.initX+.03*Math.sin((t.yOffset+t.offset)*t.speed*200))*Kl.instance.width,t.yOffset+=t.speed*e,t.y=Kl.instance.height*t.yOffset}))},Kl.instance.features.halloween?("background_0"===n&&(n="background_halloween_0"),"background_1"===n&&(n="background_halloween_1"),t.bg2=new mi(Kl.instance.resources.background_halloween_pattern.texture),t.bg2Alpha=.05):Kl.instance.features.christmas&&("background_0"===n&&(n="background_christmas_0"),"background_1"===n&&(n="background_christmas_1"),"background_christmas_0"===n&&(t.bg2Alpha=.11),"background_christmas_1"===n&&(t.bg2Alpha=.06),t.bg2=new mi(Kl.instance.resources.background_christmas_pattern.texture)),t.bg=new lr(Kl.instance.resources[n].texture),t.addChild(t.bg),t.bg2&&t.addChild(t.bg2),t.platform=new dl,t.addChild(t.platform),t.stickman=new Bo(Kl.instance.playerSkin),t.stickman.dance(),t.addChild(t.stickman),Kl.instance.features.christmas){t.particleContainer=new ge,t.particleContainer.position.x=0,t.particleContainer.position.y=0,t.particleContainer.scale.set(1/Kl.instance.height);for(var A=[Kl.instance.resources.snowflake_circle_big.texture,Kl.instance.resources.snowflake_circle_small.texture,Kl.instance.resources.snowflake_big.texture,Kl.instance.resources.snowflake_small.texture],r=75,i=0;i.5?"background_1":"background_0",hooks:A,bumpers:r,obstacles:i,files:o}}var Pl=function(t){if(t0},filter:function(t){return!!is(t)&&((!Kl.instance.features||!Kl.instance.features.christmas||"christmas"!==t.type)&&((!Kl.instance.features||!Kl.instance.features.halloween||"halloween"!==t.type)&&("christmas"===t.type||"halloween"===t.type)))}}],Ll=function(t){function e(){var t,n,A;p()(this,e);for(var r=arguments.length,i=new Array(r),o=0;o100){A.touch=t.touches[0];var n=A.state.page+(e>0?1:-1);n>=0&&n=o-1,onClick:function(){return t.setState({page:A+1})}})),po.h("div",{class:"clicked-skin-info".concat(!Kl.instance.features.halloween_shop?"":" clicked-skin-info-halloween").concat(!Kl.instance.features.christmas_shop?"":" clicked-skin-info-christmas")},n.description),po.h("div",{class:"skins-lists-container",style:{left:"-".concat(100*A,"%"),width:"".concat(100*o,"%")}},Hl.filter((function(t){return!t.condition||t.condition()})).map((function(e){return po.h(Ml,{width:"".concat(1/o*100,"%"),skins:ss.filter(e.filter),onSelectSkin:function(e){return t.onSelectSkin(e)},rewardedReady:r})})))),i>0&&po.h("div",null,po.h(zl,{onClose:function(){t.setState({showAdFailed:0})},image:Vo.a,text:["","NO AD AVAILABLE","DISABLE ADBLOCK"][i]})))}}]),e}(po.Component),Nl=function(t){function e(){var t,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return p()(this,e),(t=w()(this,m()(e).call(this))).uiComponent=Ll,t.sceneName="shop",t.onResize=function(){t.bg.width=100,t.bg.height=1,t.bg2&&(t.bg2.tileScale={x:75e-5,y:75e-5},t.bg2.width=1e3,t.bg2.height=1e3,t.bg2.alpha=.06),t.stickman.x=Kl.instance.width/Kl.instance.height/2,t.stickman.y=.2,t.spinningBg.x=t.stickman.x,t.spinningBg.y=t.stickman.y},t.onChangeSkin=function(e){t.stickman&&t.stickman.destroy(),t.stickman=new Bo(Kl.instance.playerSkin),t.stickman.dance(),t.stickman.position.y=.5,t.stickman.position.x=Kl.instance.width/Kl.instance.height/2,t.stickman.scale.set(3*t.stickman.scale.x),t.addChild(t.stickman),t.onResize()},t.step=function(e){t.spinningBg.rotation+=e},Kl.instance.features.halloween&&Kl.instance.features.halloween_shop?(t.bg=new lr(Kl.instance.resources.background_halloween_1.texture),t.bg2=null):Kl.instance.features.christmas&&Kl.instance.features.christmas_shop?(t.bg=new lr(Kl.instance.resources.background_christmas_0.texture),t.bg2=null):(t.bg=new lr(Kl.instance.resources.background_1.texture),t.bg2=null),Kl.instance.features.halloween&&Kl.instance.features.halloween_shop?t.spinningBg=new lr(Kl.instance.resources.shop_background_halloween.texture):Kl.instance.features.christmas&&Kl.instance.features.christmas_shop?(t.spinningBg=new lr(Kl.instance.resources.shop_background_christmas.texture),t.spinningBg.alpha=.75):t.spinningBg=new lr(Kl.instance.resources.shop_background.texture),t.uiInitialState={page:n,showAdFailed:A},t.spinningBg.anchor.set(.5,.5),t.spinningBg.scale.set(5*Kl.SCALE),t.addChild(t.bg),t.bg2&&t.addChild(t.bg2),t.addChild(t.spinningBg),t.onChangeSkin(Kl.instance.playerSkin),Kl.instance.eventEmitter.addListener("changeSkin",t.onChangeSkin),t}return C()(e,t),f()(e,[{key:"destroy",value:function(){go()(m()(e.prototype),"destroy",this).call(this),Kl.instance.eventEmitter.removeListener("changeSkin",this.onChangeSkin),this.stickman=null}}]),e}(ge),Fl=function(t){function e(t,n){var A;return p()(this,e),(A=w()(this,m()(e).call(this))).uiComponent=null,A.sceneName="empty",A.onResize=function(){A.bg.width=100,A.bg.height=1},A.sceneName=t,A.uiComponent=n,A.bg=new lr(Kl.instance.resources.background_1.texture),A.addChild(A.bg),A.onResize(),A}return C()(e,t),f()(e,[{key:"destroy",value:function(){go()(m()(e.prototype),"destroy",this).call(this),this.bg=null}}]),e}(ge),Ul=n(183),jl=n.n(Ul),Gl=function(t){function e(){return p()(this,e),w()(this,m()(e).apply(this,arguments))}return C()(e,t),f()(e,[{key:"render",value:function(){var t=this.props,e=t.id,n=t.name,A=t.photo,r=t.rank,i=t.score,o=t.isFriend,a=t.isMe;return po.h("div",{class:"leaderboard-row ".concat(a?"current":"")},po.h("div",{class:"leaderboard-col rank"},"#",r),po.h("div",{class:"leaderboard-col photo"},po.h("img",{src:A})),po.h("div",{class:"leaderboard-col name"},n),po.h("div",{class:"leaderboard-col score"},i),po.h("div",{class:"leaderboard-col share"},o?po.h(cs,{onClick:function(){Kl.instance.eventEmitter.emit("playWith",e)}},"Challenge"):null))}}]),e}(po.Component),Yl=function(t){function e(){var t,n,A;p()(this,e);for(var r=arguments.length,i=new Array(r),o=0;o1&&void 0!==arguments[1]?arguments[1]:"auto",n="auto"===e;Kl.instance.eventEmitter.emit("requestLeaderboard",{count:10,offset:n?"auto":10*e,type:t}),this.setState({leaderboard:null,type:t,page:n?0:e})}},{key:"render",value:function(){var t=this,e=this.state,n=e.leaderboard,A=e.page,r=e.numPages,i=e.type;return po.h("div",{class:"leaderboard"},po.h("button",{class:"back-button button".concat(Kl.instance.features.christmas?" back-button-christmas":""),onClick:function(){return Kl.instance.gotoTitle()}}),po.h("h2",null,"Leaderboard"),n?po.h("div",null,po.h("div",{class:"center"},po.h("button",{class:"leaderboard-button button",onClick:function(){return t.requestLeaderboard("world")}},"World"),po.h("button",{class:"leaderboard-button button",onClick:function(){return t.requestLeaderboard("friends")}},"Friends"),po.h(cs,{onClick:function(){return Kl.instance.eventEmitter.emit("share")}})),po.h("h3",null,i),po.h("div",{class:"leaderboard-entries"},n.entries.map((function(t){return po.h(Gl,jl()({},t,{isMe:t.id===Kl.instance.playerInfos.id,isFriend:Kl.instance.features.share&&"friends"===i&&t.id!==Kl.instance.playerInfos.id}))}))),po.h("div",{class:"pagination"},po.h(Rl,{orientation:"left",disabled:A<=0,onClick:function(){return t.requestLeaderboard(i,A-1)}}),po.h("span",{class:"page-number"},A+1," / ",r),po.h(Rl,{orientation:"right",disabled:A>=r-1,onClick:function(){return t.requestLeaderboard(i,A+1)}}))):po.h(ml,null))}}]),e}(po.Component);function Jl(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var A=Object.getOwnPropertySymbols(t);e&&(A=A.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,A)}return n}function Xl(t,e,n,A){tt.RESOLUTION=window.devicePixelRatio||1;var r=new Kl(n?function(){return r.setActiveScene(new gs)}:function(){return setTimeout((function(){return r.setActiveScene(new gs)}),0)},t,e,A);return r}var Kl=function(t){function e(t,n,r,i){var o;p()(this,e);var a=i&&i.width||window.innerWidth,s=i&&i.height||window.innerHeight;(o=w()(this,m()(e).call(this,{width:a,height:s,antialias:!0}))).level=0,o.resources=null,o.scene=null,o.lastFrame=0,o.gravity=new yo(0,1),o.eventEmitter=new A.EventEmitter,o.paused=!1,o._playerSkin=ss[0],o.playerInfos={},o.features={},o.isRewardedReady=!1,o.interstitialReady=!1,o.lastInterstitialTime=0,o.playedAtLeastOnce=!1,o.onResize=function(){var t=o._optionsResize?o._optionsResize():null,e=t?t.width:window.innerWidth,n=t?t.height:window.innerHeight;o.width=e,o.height=n,o.renderer.resize(e,n),o.scene&&o.scene.onResize&&(o.scene.scale.set(n),o.scene.onResize())},o.setActiveScene=function(t){o.scene&&(o.stage.removeChild(o.scene),o.scene.destroy()),o.scene=t,o.scene.scale.set(o.height),o.stage.addChild(t),o.eventEmitter.emit("sceneChange",{component:t.uiComponent,name:t.sceneName,initialState:t.uiInitialState})},o.step=function(){var t=(new Date).getTime();o.scene&&o.scene.step&&o.scene.step(Math.min((t-o.lastFrame)/1e3,.025)),o.lastFrame=t},o.gotoLevel=function(t){var e=Pl(t),n=new Qs(t,e);o.setActiveScene(n)},o.gotoVictory=function(t){o.level++,o.playedAtLeastOnce=!0;var e=new fl(t);o.setActiveScene(e)},o.gotoTitle=function(){o.setActiveScene(new gs)},o.gotoShop=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;o.setActiveScene(new Nl(t,e))},o.gotoLeaderboard=function(){o.setActiveScene(new Fl("leaderboard",Yl))},o.pause=function(){o.paused||(o.ticker.stop(),o.paused=!0,o.eventEmitter.emit("pause"))},o.resume=function(){o.paused&&(o.ticker.start(),o.paused=!1,o.eventEmitter.emit("resume"))},o.width=a,o.height=s,i&&i.onResize&&(o._optionsResize=i.onResize),n&&(o.playerInfos=n,n.skin&&(o._playerSkin=ss.find((function(t){return t.id===n.skin}))||ss[0]),o.level=parseInt(o.playerInfos.level,10)||0),r&&(o.features=r),e.instance=v()(o),window.addEventListener("resize",o.onResize);var c={};return Object.keys(sl).forEach((function(t){"object"===u()(sl[t])?c[t]=sl[t]:o.loader.add(t,sl[t])})),document.body.appendChild(o.view),po.render(po.h(gl,null),document.body),o.eventEmitter.emit("sceneChange",{component:xl,name:"loading"}),o.loader.load((function(e,n){o.resources=function(t){for(var e=1;e0)return this.interstitialReady=!1,this.eventEmitter.emit("requestInterstitial"),void this.eventEmitter.once("intersitialWatched",(function(e){t.lastInterstitialTime=Date.now(),t.gotoNextLevel()}));this.gotoLevel(this.level)}},{key:"fakeMaxLevel",get:function(){return 5*Math.floor((this.level+1)/5+1)}},{key:"playerSkin",get:function(){return this._playerSkin},set:function(t){t!==this._playerSkin&&(this._playerSkin=t,this.eventEmitter.emit("changeSkin",t))}}]),e}(Nr);function Vl(t,e,n){window.FB&&window.FB.AppEvents.logEvent(t,e,n)}function Wl(t){var e=t.mode,n=t.score,A=t.status,r=t.level,i=t.completion,o=t.time,a=t.attempt;Vl("end game",1,{mode:e,score:n,status:A,level:r,completion:i,time:o/1e3}),Vl("game attempt",a,{mode:e,level:r}),Vl("game reached",1,{mode:e,level:r}),Vl("game time",o/1e3,{mode:e,level:r})}Kl.instance=null,Kl.SCALE=5e-4,Kl.AIR_FRICTION=0;var _l=null;function Zl(t){var e=t.ad_type,n=t.success,A=t.location;Vl("shown ".concat(e),1,{success:n,location:A})}function ql(t){var e=t.ad_type,n=t.error;Vl("failed displaying ".concat(e),1,{error:n})}function $l(t){try{return JSON.parse(localStorage.getItem(t))}catch(t){return console.error(t),null}}function tp(t,e){if("undefined"!=typeof localStorage)try{localStorage.setItem(t,JSON.stringify(e))}catch(t){}}function ep(){var t={};if(t.level=$l("STICKMANHOOK_currentLevel"),t.skin=$l("STICKMANHOOK_currentSkin"),t.unlockedSkins=$l("STICKMANHOOK_unlockedSkins"),!t.level){var e=$l("Stickman_Hook_NormalCurrentLevel");e&&e.data&&e.data.length&&(t.level=e.data[0].value)}if(!t.unlockedSkins){var n={burger:"CHAR_Burger",cactus:"CHAR_Cactus",unicorn:"CHAR_Unicorn",ninja:"CHAR_Ninja",robot:"CHAR_RobotMan",dragon:"CHAR_Dragon",hotdog:"CHAR_HotDog",lemon:"CHAR_LemonMan",tiki:"CHAR_TikiMan",plant:"CHAR_Plant"};t.unlockedSkins=Object.keys(n).map((function(t){var e=$l("Stickman_Hook_ACHIEVEMENTS_".concat(t));if(e&&e.data&&e.data.length&&e.data[0].user_value)return n[t]})).filter((function(t){return t}))}return t}function np(t){tp("STICKMANHOOK_currentLevel",t)}function Ap(t){tp("STICKMANHOOK_currentSkin",t)}function rp(t){tp("STICKMANHOOK_unlockedSkins",t)}var ip={mobile:{w:320,h:50},desktop:{w:728,h:90}};a()(i.a.mark((function t(){var e,n,A,r,o,s,h,c,u;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return e=!1,PokiSDK.setDebug("localhost"===window.location.hostname),t.prev=2,t.next=5,PokiSDK.init();case 5:t.next=11;break;case 7:t.prev=7,t.t0=t.catch(2),console.error("Adblock enabled"),e=!0;case 11:PokiSDK.gameLoadingStart(),n=!1,A=function(t){n&&(t.preventDefault(),t.stopImmediatePropagation())},document.addEventListener("keydown",A),document.addEventListener("keyup",A),r={rewarded:!e,interstitial:!e,share:!1,leaderboard:!1,halloween:!1,halloween_shop:!1,halloween_popup:!1,christmas:!1,christmas_shop:!1,christmas_popup:!1},o=ep(),s={level:o.level||0,skin:o.skin||null,unlockedSkins:Array.isArray(o.unlockedSkins)?o.unlockedSkins:[]},PokiSDK.gameLoadingFinished(),h=Xl(s,r,!1),c=null,(u=document.createElement("div")).style.position="absolute",u.style.bottom=0,u.style.left=0,u.style.right=0,document.body.appendChild(u),h.eventEmitter.addListener("sceneChange",(function(t){try{e=t.name,_l&&Vl("close menu",1,{name:_l.name,time:(Date.now()-_l.openTime)/1e3}),_l={name:e,openTime:Date.now()},Vl("open menu",1,{name:e})}catch(t){}var e;"victory"!==t.name&&c&&(PokiSDK.destroyAd(c),c.remove(),c=null,document.getElementsByClassName("ui")[0].style.bottom="0px")})),h.eventEmitter.addListener("levelStarted",(function(t){try{n=(e=t).mode,A=e.level,r=e.skin,i=e.attempt,o=e.retry,Vl("start game",1,{mode:n,level:A,attempt:i,"skin name":r.name,retry:o})}catch(t){}var e,n,A,r,i,o;PokiSDK.gameplayStart()})),h.eventEmitter.addListener("levelFailed",(function(t){try{Wl(t)}catch(t){}PokiSDK.gameplayStop()})),h.eventEmitter.addListener("levelComplete",function(){var t=a()(i.a.mark((function t(e){var n;return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:try{Wl(e)}catch(t){}PokiSDK.gameplayStop(),PokiSDK.happyTime(.5),np(e.level),n=window.innerWidth<768?ip.mobile:ip.desktop,(c=document.createElement("div")).style.width="".concat(n.w,"px"),c.style.height="".concat(n.h,"px"),c.style.margin="auto",u.appendChild(c),PokiSDK.displayAd(c,"".concat(n.w,"x").concat(n.h)),document.getElementsByClassName("ui")[0].style.bottom="".concat(n.h,"px");case 13:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}()),h.eventEmitter.addListener("levelAbandon",(function(t){PokiSDK.gameplayStop()})),r.rewarded&&Kl.instance.eventEmitter.emit("rewardedReady",!0),r.interstitial&&Kl.instance.eventEmitter.emit("interstitialReady",!0),h.eventEmitter.addListener("requestRewarded",(function(t){var A,i,o,a=t.skin,h=t.onComplete,c=t.onFail;if(r.rewarded){try{i=(A={ad_type:"REWARDED",location:"shop"}).ad_type,o=A.location,Vl("print ".concat(i),1,{location:o})}catch(t){}n=!0,PokiSDK.rewardedBreak().then((function(t){t&&a&&(Kl.instance.playerSkin=a,s.unlockedSkins.push(a.id),rp(s.unlockedSkins)),h&&(e?c&&c():h(t));try{Zl({ad_type:"REWARDED",location:"shop",success:!0})}catch(t){}n=!1})).catch((function(t){console.error("error watching rewarded:",t);try{ql({ad_type:"REWARDED",error:t.code})}catch(t){}c&&c(),n=!1}))}else c&&c()})),h.eventEmitter.addListener("unlockSkin",(function(t){Kl.instance.playerSkin=t,s.unlockedSkins.push(t.id),rp(s.unlockedSkins)})),h.eventEmitter.addListener("requestInterstitial",(function(){r.interstitial&&(n=!0,PokiSDK.commercialBreak().then((function(){Zl({ad_type:"INTERSTITIAL",location:"menu",success:!0}),n=!1,h.eventEmitter.emit("intersitialWatched",!0),h.eventEmitter.emit("interstitialReady",!0)})).catch((function(t){console.error("error watching interstitial:",t),ql({ad_type:"INTERSTITIAL",error:t.code}),n=!1,h.eventEmitter.emit("intersitialWatched",!1),h.eventEmitter.emit("interstitialReady",!0)})))})),h.eventEmitter.addListener("changeSkin",(function(t){Ap(t.id)})),h.eventEmitter.addListener("skinUnlocked",function(){var t=a()(i.a.mark((function t(e){return i.a.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:PokiSDK.happyTime(1);case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}());case 40:case"end":return t.stop()}}),t,null,[[2,7]])})))().catch((function(t){return console.error(t)}))}]);