parcelRequire=function(e,r,n,t){var i="function"==typeof parcelRequire&&parcelRequire,o="function"==typeof require&&require;function u(n,t){if(!r[n]){if(!e[n]){var f="function"==typeof parcelRequire&&parcelRequire;if(!t&&f)return f(n,!0);if(i)return i(n,!0);if(o&&"string"==typeof n)return o(n);var c=new Error("Cannot find module '"+n+"'");throw c.code="MODULE_NOT_FOUND",c}p.resolve=function(r){return e[n][1][r]||r},p.cache={};var l=r[n]=new u.Module(n);e[n][0].call(l.exports,p,l,l.exports,this)}return r[n].exports;function p(e){return u(p.resolve(e))}}u.isParcelRequire=!0,u.Module=function(e){this.id=e,this.bundle=u,this.exports={}},u.modules=e,u.cache=r,u.parent=i,u.register=function(r,n){e[r]=[function(e,r){r.exports=n},{}]};for(var f=0;f<n.length;f++)u(n[f]);if(n.length){var c=u(n[n.length-1]);"object"==typeof exports&&"undefined"!=typeof module?module.exports=c:"function"==typeof define&&define.amd?define(function(){return c}):t&&(this[t]=c)}return u}({"KP3W":[function(require,module,exports) {

},{}],"J4Nk":[function(require,module,exports) {
"use strict";var r=Object.getOwnPropertySymbols,t=Object.prototype.hasOwnProperty,e=Object.prototype.propertyIsEnumerable;function n(r){if(null==r)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(r)}function o(){try{if(!Object.assign)return!1;var r=new String("abc");if(r[5]="de","5"===Object.getOwnPropertyNames(r)[0])return!1;for(var t={},e=0;e<10;e++)t["_"+String.fromCharCode(e)]=e;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(r){return t[r]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(r){n[r]=r}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(o){return!1}}module.exports=o()?Object.assign:function(o,c){for(var a,i,s=n(o),f=1;f<arguments.length;f++){for(var u in a=Object(arguments[f]))t.call(a,u)&&(s[u]=a[u]);if(r){i=r(a);for(var b=0;b<i.length;b++)e.call(a,i[b])&&(s[i[b]]=a[i[b]])}}return s};
},{}],"lp9P":[function(require,module,exports) {
"use strict";var e=require("object-assign"),s=t(e);function t(e){return e&&e.__esModule?e:{default:e}}Object.assign||(Object.assign=s.default);
},{"object-assign":"J4Nk"}],"/lqD":[function(require,module,exports) {
var global = arguments[3];
var e=arguments[3],n=16;if(Date.now&&Date.prototype.getTime||(Date.now=function(){return(new Date).getTime()}),!e.performance||!e.performance.now){var t=Date.now();e.performance||(e.performance={}),e.performance.now=function(){return Date.now()-t}}for(var a=Date.now(),r=["ms","moz","webkit","o"],o=0;o<r.length&&!e.requestAnimationFrame;++o){var i=r[o];e.requestAnimationFrame=e[i+"RequestAnimationFrame"],e.cancelAnimationFrame=e[i+"CancelAnimationFrame"]||e[i+"CancelRequestAnimationFrame"]}e.requestAnimationFrame||(e.requestAnimationFrame=function(e){if("function"!=typeof e)throw new TypeError(e+"is not a function");var t=Date.now(),r=n+a-t;return r<0&&(r=0),a=t,setTimeout(function(){a=Date.now(),e(performance.now())},r)}),e.cancelAnimationFrame||(e.cancelAnimationFrame=function(e){return clearTimeout(e)});
},{}],"XgiD":[function(require,module,exports) {
"use strict";Math.sign||(Math.sign=function(t){return 0===(t=Number(t))||isNaN(t)?t:t>0?1:-1});
},{}],"bPsC":[function(require,module,exports) {
"use strict";require("./Object.assign"),require("./requestAnimationFrame"),require("./Math.sign"),window.ArrayBuffer||(window.ArrayBuffer=Array),window.Float32Array||(window.Float32Array=Array),window.Uint32Array||(window.Uint32Array=Array),window.Uint16Array||(window.Uint16Array=Array);
},{"./Object.assign":"lp9P","./requestAnimationFrame":"/lqD","./Math.sign":"XgiD"}],"YEQi":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var E=exports.VERSION="4.5.6",R=exports.PI_2=2*Math.PI,I=exports.RAD_TO_DEG=180/Math.PI,N=exports.DEG_TO_RAD=Math.PI/180,A=exports.RENDERER_TYPE={UNKNOWN:0,WEBGL:1,CANVAS:2},O=exports.BLEND_MODES={NORMAL:0,ADD:1,MULTIPLY:2,SCREEN:3,OVERLAY:4,DARKEN:5,LIGHTEN:6,COLOR_DODGE:7,COLOR_BURN:8,HARD_LIGHT:9,SOFT_LIGHT:10,DIFFERENCE:11,EXCLUSION:12,HUE:13,SATURATION:14,COLOR:15,LUMINOSITY:16,NORMAL_NPM:17,ADD_NPM:18,SCREEN_NPM:19},L=exports.DRAW_MODES={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},T=exports.SCALE_MODES={LINEAR:0,NEAREST:1},_=exports.WRAP_MODES={CLAMP:0,REPEAT:1,MIRRORED_REPEAT:2},t=exports.GC_MODES={AUTO:0,MANUAL:1},s=exports.URL_FILE_EXTENSION=/\.(\w{3,4})(?:$|\?|#)/i,D=exports.DATA_URI=/^\s*data:(?:([\w-]+)\/([\w+.-]+))?(?:;(charset=[\w-]+|base64))?,(.*)/i,S=exports.SVG_SIZE=/<svg[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i,e=exports.SHAPES={POLY:0,RECT:1,CIRC:2,ELIP:3,RREC:4},M=exports.PRECISION={LOW:"lowp",MEDIUM:"mediump",HIGH:"highp"},p=exports.TRANSFORM_MODE={STATIC:0,DYNAMIC:1},P=exports.TEXT_GRADIENT={LINEAR_VERTICAL:0,LINEAR_HORIZONTAL:1},r=exports.UPDATE_PRIORITY={INTERACTION:50,HIGH:25,NORMAL:0,LOW:-25,UTILITY:-50};
},{}],"TceE":[function(require,module,exports) {
"use strict";function t(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}exports.__esModule=!0;var n=function(){function n(){var o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;t(this,n),this.x=o,this.y=i}return n.prototype.clone=function(){return new n(this.x,this.y)},n.prototype.copy=function(t){this.set(t.x,t.y)},n.prototype.equals=function(t){return t.x===this.x&&t.y===this.y},n.prototype.set=function(t,n){this.x=t||0,this.y=n||(0!==n?this.x:0)},n}();exports.default=n;
},{}],"aG0R":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=function(){function t(t,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(i,e,n){return e&&t(i.prototype,e),n&&t(i,n),i}}();function i(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}var e=function(){function e(t,n){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;i(this,e),this._x=s,this._y=o,this.cb=t,this.scope=n}return e.prototype.set=function(t,i){var e=t||0,n=i||(0!==i?e:0);this._x===e&&this._y===n||(this._x=e,this._y=n,this.cb.call(this.scope))},e.prototype.copy=function(t){this._x===t.x&&this._y===t.y||(this._x=t.x,this._y=t.y,this.cb.call(this.scope))},t(e,[{key:"x",get:function(){return this._x},set:function(t){this._x!==t&&(this._x=t,this.cb.call(this.scope))}},{key:"y",get:function(){return this._y},set:function(t){this._y!==t&&(this._y=t,this.cb.call(this.scope))}}]),e}();exports.default=e;
},{}],"dh7x":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=function(){function t(t,i){for(var s=0;s<i.length;s++){var h=i[s];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(t,h.key,h)}}return function(i,s,h){return s&&t(i.prototype,s),h&&t(i,h),i}}(),i=require("./Point"),s=h(i);function h(t){return t&&t.__esModule?t:{default:t}}function n(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}var r=function(){function i(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,h=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,e=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;n(this,i),this.a=t,this.b=s,this.c=h,this.d=r,this.tx=a,this.ty=e,this.array=null}return i.prototype.fromArray=function(t){this.a=t[0],this.b=t[1],this.c=t[3],this.d=t[4],this.tx=t[2],this.ty=t[5]},i.prototype.set=function(t,i,s,h,n,r){return this.a=t,this.b=i,this.c=s,this.d=h,this.tx=n,this.ty=r,this},i.prototype.toArray=function(t,i){this.array||(this.array=new Float32Array(9));var s=i||this.array;return t?(s[0]=this.a,s[1]=this.b,s[2]=0,s[3]=this.c,s[4]=this.d,s[5]=0,s[6]=this.tx,s[7]=this.ty,s[8]=1):(s[0]=this.a,s[1]=this.c,s[2]=this.tx,s[3]=this.b,s[4]=this.d,s[5]=this.ty,s[6]=0,s[7]=0,s[8]=1),s},i.prototype.apply=function(t,i){i=i||new s.default;var h=t.x,n=t.y;return i.x=this.a*h+this.c*n+this.tx,i.y=this.b*h+this.d*n+this.ty,i},i.prototype.applyInverse=function(t,i){i=i||new s.default;var h=1/(this.a*this.d+this.c*-this.b),n=t.x,r=t.y;return i.x=this.d*h*n+-this.c*h*r+(this.ty*this.c-this.tx*this.d)*h,i.y=this.a*h*r+-this.b*h*n+(-this.ty*this.a+this.tx*this.b)*h,i},i.prototype.translate=function(t,i){return this.tx+=t,this.ty+=i,this},i.prototype.scale=function(t,i){return this.a*=t,this.d*=i,this.c*=t,this.b*=i,this.tx*=t,this.ty*=i,this},i.prototype.rotate=function(t){var i=Math.cos(t),s=Math.sin(t),h=this.a,n=this.c,r=this.tx;return this.a=h*i-this.b*s,this.b=h*s+this.b*i,this.c=n*i-this.d*s,this.d=n*s+this.d*i,this.tx=r*i-this.ty*s,this.ty=r*s+this.ty*i,this},i.prototype.append=function(t){var i=this.a,s=this.b,h=this.c,n=this.d;return this.a=t.a*i+t.b*h,this.b=t.a*s+t.b*n,this.c=t.c*i+t.d*h,this.d=t.c*s+t.d*n,this.tx=t.tx*i+t.ty*h+this.tx,this.ty=t.tx*s+t.ty*n+this.ty,this},i.prototype.setTransform=function(t,i,s,h,n,r,a,e,o){var c=Math.sin(a),y=Math.cos(a),u=Math.cos(o),d=Math.sin(o),p=-Math.sin(e),b=Math.cos(e),f=y*n,x=c*n,l=-c*r,v=y*r;return this.a=u*f+d*l,this.b=u*x+d*v,this.c=p*f+b*l,this.d=p*x+b*v,this.tx=t+(s*f+h*l),this.ty=i+(s*x+h*v),this},i.prototype.prepend=function(t){var i=this.tx;if(1!==t.a||0!==t.b||0!==t.c||1!==t.d){var s=this.a,h=this.c;this.a=s*t.a+this.b*t.c,this.b=s*t.b+this.b*t.d,this.c=h*t.a+this.d*t.c,this.d=h*t.b+this.d*t.d}return this.tx=i*t.a+this.ty*t.c+t.tx,this.ty=i*t.b+this.ty*t.d+t.ty,this},i.prototype.decompose=function(t){var i=this.a,s=this.b,h=this.c,n=this.d,r=-Math.atan2(-h,n),a=Math.atan2(s,i);return Math.abs(r+a)<1e-5?(t.rotation=a,i<0&&n>=0&&(t.rotation+=t.rotation<=0?Math.PI:-Math.PI),t.skew.x=t.skew.y=0):(t.skew.x=r,t.skew.y=a),t.scale.x=Math.sqrt(i*i+s*s),t.scale.y=Math.sqrt(h*h+n*n),t.position.x=this.tx,t.position.y=this.ty,t},i.prototype.invert=function(){var t=this.a,i=this.b,s=this.c,h=this.d,n=this.tx,r=t*h-i*s;return this.a=h/r,this.b=-i/r,this.c=-s/r,this.d=t/r,this.tx=(s*this.ty-h*n)/r,this.ty=-(t*this.ty-i*n)/r,this},i.prototype.identity=function(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this},i.prototype.clone=function(){var t=new i;return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t},i.prototype.copy=function(t){return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t},t(i,null,[{key:"IDENTITY",get:function(){return new i}},{key:"TEMP_MATRIX",get:function(){return new i}}]),i}();exports.default=r;
},{"./Point":"TceE"}],"PGIZ":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var n=require("./Matrix"),t=r(n);function r(n){return n&&n.__esModule?n:{default:n}}var u=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],e=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],i=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],a=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],o=[],f=[];function v(n){return n<0?-1:n>0?1:0}function c(){for(var n=0;n<16;n++){var r=[];f.push(r);for(var c=0;c<16;c++)for(var s=v(u[n]*u[c]+i[n]*e[c]),d=v(e[n]*u[c]+a[n]*e[c]),h=v(u[n]*i[c]+i[n]*a[c]),p=v(e[n]*i[c]+a[n]*a[c]),M=0;M<16;M++)if(u[M]===s&&e[M]===d&&i[M]===h&&a[M]===p){r.push(M);break}}for(var R=0;R<16;R++){var b=new t.default;b.set(u[R],e[R],i[R],a[R],0,0),o.push(b)}}c();var s={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MIRROR_HORIZONTAL:12,uX:function(n){return u[n]},uY:function(n){return e[n]},vX:function(n){return i[n]},vY:function(n){return a[n]},inv:function(n){return 8&n?15&n:7&-n},add:function(n,t){return f[n][t]},sub:function(n,t){return f[n][s.inv(t)]},rotate180:function(n){return 4^n},isSwapWidthHeight:function(n){return 2==(3&n)},byDirection:function(n,t){return 2*Math.abs(n)<=Math.abs(t)?t>=0?s.S:s.N:2*Math.abs(t)<=Math.abs(n)?n>0?s.E:s.W:t>0?n>0?s.SE:s.SW:n>0?s.NE:s.NW},matrixAppendRotationInv:function(n,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,e=o[s.inv(t)];e.tx=r,e.ty=u,n.append(e)}};exports.default=s;
},{"./Matrix":"dh7x"}],"MxpT":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=function(){function t(t,i){for(var h=0;h<i.length;h++){var e=i[h];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}return function(i,h,e){return h&&t(i.prototype,h),e&&t(i,e),i}}(),i=require("../../const");function h(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}var e=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;h(this,e),this.x=Number(t),this.y=Number(s),this.width=Number(n),this.height=Number(r),this.type=i.SHAPES.RECT}return e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this},e.prototype.contains=function(t,i){return!(this.width<=0||this.height<=0)&&(t>=this.x&&t<this.x+this.width&&i>=this.y&&i<this.y+this.height)},e.prototype.pad=function(t,i){t=t||0,i=i||(0!==i?t:0),this.x-=t,this.y-=i,this.width+=2*t,this.height+=2*i},e.prototype.fit=function(t){this.x<t.x&&(this.width+=this.x,this.width<0&&(this.width=0),this.x=t.x),this.y<t.y&&(this.height+=this.y,this.height<0&&(this.height=0),this.y=t.y),this.x+this.width>t.x+t.width&&(this.width=t.width-this.x,this.width<0&&(this.width=0)),this.y+this.height>t.y+t.height&&(this.height=t.height-this.y,this.height<0&&(this.height=0))},e.prototype.enlarge=function(t){var i=Math.min(this.x,t.x),h=Math.max(this.x+this.width,t.x+t.width),e=Math.min(this.y,t.y),s=Math.max(this.y+this.height,t.y+t.height);this.x=i,this.width=h-i,this.y=e,this.height=s-e},t(e,[{key:"left",get:function(){return this.x}},{key:"right",get:function(){return this.x+this.width}},{key:"top",get:function(){return this.y}},{key:"bottom",get:function(){return this.y+this.height}}],[{key:"EMPTY",get:function(){return new e(0,0,0,0)}}]),e}();exports.default=e;
},{"../../const":"YEQi"}],"8SKy":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=require("./Rectangle"),i=r(t),s=require("../../const");function r(t){return t&&t.__esModule?t:{default:t}}function n(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}var e=function(){function t(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;n(this,t),this.x=i,this.y=r,this.radius=e,this.type=s.SHAPES.CIRC}return t.prototype.clone=function(){return new t(this.x,this.y,this.radius)},t.prototype.contains=function(t,i){if(this.radius<=0)return!1;var s=this.radius*this.radius,r=this.x-t,n=this.y-i;return(r*=r)+(n*=n)<=s},t.prototype.getBounds=function(){return new i.default(this.x-this.radius,this.y-this.radius,2*this.radius,2*this.radius)},t}();exports.default=e;
},{"./Rectangle":"MxpT","../../const":"YEQi"}],"TKYo":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=require("./Rectangle"),i=e(t),h=require("../../const");function e(t){return t&&t.__esModule?t:{default:t}}function n(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}var s=function(){function t(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;n(this,t),this.x=i,this.y=e,this.width=s,this.height=o,this.type=h.SHAPES.ELIP}return t.prototype.clone=function(){return new t(this.x,this.y,this.width,this.height)},t.prototype.contains=function(t,i){if(this.width<=0||this.height<=0)return!1;var h=(t-this.x)/this.width,e=(i-this.y)/this.height;return(h*=h)+(e*=e)<=1},t.prototype.getBounds=function(){return new i.default(this.x-this.width,this.y-this.height,this.width,this.height)},t}();exports.default=s;
},{"./Rectangle":"MxpT","../../const":"YEQi"}],"vamC":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=require("../Point"),n=i(t),o=require("../../const");function i(t){return t&&t.__esModule?t:{default:t}}function r(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}var s=function(){function t(){for(var i=arguments.length,s=Array(i),e=0;e<i;e++)s[e]=arguments[e];if(r(this,t),Array.isArray(s[0])&&(s=s[0]),s[0]instanceof n.default){for(var a=[],u=0,p=s.length;u<p;u++)a.push(s[u].x,s[u].y);s=a}this.closed=!0,this.points=s,this.type=o.SHAPES.POLY}return t.prototype.clone=function(){return new t(this.points.slice())},t.prototype.close=function(){var t=this.points;t[0]===t[t.length-2]&&t[1]===t[t.length-1]||t.push(t[0],t[1])},t.prototype.contains=function(t,n){for(var o=!1,i=this.points.length/2,r=0,s=i-1;r<i;s=r++){var e=this.points[2*r],a=this.points[2*r+1],u=this.points[2*s],p=this.points[2*s+1];a>n!=p>n&&t<(n-a)/(p-a)*(u-e)+e&&(o=!o)}return o},t}();exports.default=s;
},{"../Point":"TceE","../../const":"YEQi"}],"p/wO":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var i=require("../../const");function t(i,t){if(!(i instanceof t))throw new TypeError("Cannot call a class as a function")}var h=function(){function h(){var s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,u=arguments.length>4&&void 0!==arguments[4]?arguments[4]:20;t(this,h),this.x=s,this.y=r,this.width=e,this.height=n,this.radius=u,this.type=i.SHAPES.RREC}return h.prototype.clone=function(){return new h(this.x,this.y,this.width,this.height,this.radius)},h.prototype.contains=function(i,t){if(this.width<=0||this.height<=0)return!1;if(i>=this.x&&i<=this.x+this.width&&t>=this.y&&t<=this.y+this.height){if(t>=this.y+this.radius&&t<=this.y+this.height-this.radius||i>=this.x+this.radius&&i<=this.x+this.width-this.radius)return!0;var h=i-(this.x+this.radius),s=t-(this.y+this.radius),r=this.radius*this.radius;if(h*h+s*s<=r)return!0;if((h=i-(this.x+this.width-this.radius))*h+s*s<=r)return!0;if(h*h+(s=t-(this.y+this.height-this.radius))*s<=r)return!0;if((h=i-(this.x+this.radius))*h+s*s<=r)return!0}return!1},h}();exports.default=h;
},{"../../const":"YEQi"}],"e3iB":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=require("./Point");Object.defineProperty(exports,"Point",{enumerable:!0,get:function(){return f(e).default}});var r=require("./ObservablePoint");Object.defineProperty(exports,"ObservablePoint",{enumerable:!0,get:function(){return f(r).default}});var t=require("./Matrix");Object.defineProperty(exports,"Matrix",{enumerable:!0,get:function(){return f(t).default}});var n=require("./GroupD8");Object.defineProperty(exports,"GroupD8",{enumerable:!0,get:function(){return f(n).default}});var u=require("./shapes/Circle");Object.defineProperty(exports,"Circle",{enumerable:!0,get:function(){return f(u).default}});var o=require("./shapes/Ellipse");Object.defineProperty(exports,"Ellipse",{enumerable:!0,get:function(){return f(o).default}});var a=require("./shapes/Polygon");Object.defineProperty(exports,"Polygon",{enumerable:!0,get:function(){return f(a).default}});var i=require("./shapes/Rectangle");Object.defineProperty(exports,"Rectangle",{enumerable:!0,get:function(){return f(i).default}});var l=require("./shapes/RoundedRectangle");function f(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"RoundedRectangle",{enumerable:!0,get:function(){return f(l).default}});
},{"./Point":"TceE","./ObservablePoint":"aG0R","./Matrix":"dh7x","./GroupD8":"PGIZ","./shapes/Circle":"8SKy","./shapes/Ellipse":"TKYo","./shapes/Polygon":"vamC","./shapes/Rectangle":"MxpT","./shapes/RoundedRectangle":"p/wO"}],"yTo9":[function(require,module,exports) {
var e=function(e,r){var t=e.getContext("webgl",r)||e.getContext("experimental-webgl",r);if(!t)throw new Error("This browser does not support webGL. Try using the canvas renderer");return t};module.exports=e;
},{}],"FtW/":[function(require,module,exports) {
var t=function(t,r,e){var a;if(e){var i=e.tempAttribState,b=e.attribState;for(a=0;a<i.length;a++)i[a]=!1;for(a=0;a<r.length;a++)i[r[a].attribute.location]=!0;for(a=0;a<b.length;a++)b[a]!==i[a]&&(b[a]=i[a],e.attribState[a]?t.enableVertexAttribArray(a):t.disableVertexAttribArray(a))}else for(a=0;a<r.length;a++){var l=r[a];t.enableVertexAttribArray(l.attribute.location)}};module.exports=t;
},{}],"aBLe":[function(require,module,exports) {

var t=new ArrayBuffer(0),e=function(e,r,i,f){this.gl=e,this.buffer=e.createBuffer(),this.type=r||e.ARRAY_BUFFER,this.drawType=f||e.STATIC_DRAW,this.data=t,i&&this.upload(i),this._updateID=0};e.prototype.upload=function(t,e,r){r||this.bind();var i=this.gl;t=t||this.data,e=e||0,this.data.byteLength>=t.byteLength?i.bufferSubData(this.type,e,t):i.bufferData(this.type,t,this.drawType),this.data=t},e.prototype.bind=function(){this.gl.bindBuffer(this.type,this.buffer)},e.createVertexBuffer=function(t,r,i){return new e(t,t.ARRAY_BUFFER,r,i)},e.createIndexBuffer=function(t,r,i){return new e(t,t.ELEMENT_ARRAY_BUFFER,r,i)},e.create=function(t,r,i,f){return new e(t,r,i,f)},e.prototype.destroy=function(){this.gl.deleteBuffer(this.buffer)},module.exports=e;
},{}],"l5aM":[function(require,module,exports) {
var t=function(t,i,e,r,a){this.gl=t,this.texture=t.createTexture(),this.mipmap=!1,this.premultiplyAlpha=!1,this.width=i||-1,this.height=e||-1,this.format=r||t.RGBA,this.type=a||t.UNSIGNED_BYTE};t.prototype.upload=function(t){this.bind();var i=this.gl;i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.premultiplyAlpha);var e=t.videoWidth||t.width,r=t.videoHeight||t.height;r!==this.height||e!==this.width?i.texImage2D(i.TEXTURE_2D,0,this.format,this.format,this.type,t):i.texSubImage2D(i.TEXTURE_2D,0,0,0,this.format,this.type,t),this.width=e,this.height=r};var i=!1;t.prototype.uploadData=function(t,e,r){this.bind();var a=this.gl;if(t instanceof Float32Array){if(!i){if(!a.getExtension("OES_texture_float"))throw new Error("floating point textures not available");i=!0}this.type=a.FLOAT}else this.type=this.type||a.UNSIGNED_BYTE;a.pixelStorei(a.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.premultiplyAlpha),e!==this.width||r!==this.height?a.texImage2D(a.TEXTURE_2D,0,this.format,e,r,0,this.format,this.type,t||null):a.texSubImage2D(a.TEXTURE_2D,0,0,0,e,r,this.format,this.type,t||null),this.width=e,this.height=r},t.prototype.bind=function(t){var i=this.gl;void 0!==t&&i.activeTexture(i.TEXTURE0+t),i.bindTexture(i.TEXTURE_2D,this.texture)},t.prototype.unbind=function(){var t=this.gl;t.bindTexture(t.TEXTURE_2D,null)},t.prototype.minFilter=function(t){var i=this.gl;this.bind(),this.mipmap?i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,t?i.LINEAR_MIPMAP_LINEAR:i.NEAREST_MIPMAP_NEAREST):i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MIN_FILTER,t?i.LINEAR:i.NEAREST)},t.prototype.magFilter=function(t){var i=this.gl;this.bind(),i.texParameteri(i.TEXTURE_2D,i.TEXTURE_MAG_FILTER,t?i.LINEAR:i.NEAREST)},t.prototype.enableMipmap=function(){var t=this.gl;this.bind(),this.mipmap=!0,t.generateMipmap(t.TEXTURE_2D)},t.prototype.enableLinearScaling=function(){this.minFilter(!0),this.magFilter(!0)},t.prototype.enableNearestScaling=function(){this.minFilter(!1),this.magFilter(!1)},t.prototype.enableWrapClamp=function(){var t=this.gl;this.bind(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE)},t.prototype.enableWrapRepeat=function(){var t=this.gl;this.bind(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.REPEAT)},t.prototype.enableWrapMirrorRepeat=function(){var t=this.gl;this.bind(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.MIRRORED_REPEAT),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.MIRRORED_REPEAT)},t.prototype.destroy=function(){this.gl.deleteTexture(this.texture)},t.fromSource=function(i,e,r){var a=new t(i);return a.premultiplyAlpha=r||!1,a.upload(e),a},t.fromData=function(i,e,r,a){var E=new t(i);return E.uploadData(e,r,a),E},module.exports=t;
},{}],"rtye":[function(require,module,exports) {
var e=require("./GLTexture"),t=function(e,t,r){this.gl=e,this.framebuffer=e.createFramebuffer(),this.stencil=null,this.texture=null,this.width=t||100,this.height=r||100};t.prototype.enableTexture=function(t){var r=this.gl;this.texture=t||new e(r),this.texture.bind(),this.bind(),r.framebufferTexture2D(r.FRAMEBUFFER,r.COLOR_ATTACHMENT0,r.TEXTURE_2D,this.texture.texture,0)},t.prototype.enableStencil=function(){if(!this.stencil){var e=this.gl;this.stencil=e.createRenderbuffer(),e.bindRenderbuffer(e.RENDERBUFFER,this.stencil),e.framebufferRenderbuffer(e.FRAMEBUFFER,e.DEPTH_STENCIL_ATTACHMENT,e.RENDERBUFFER,this.stencil),e.renderbufferStorage(e.RENDERBUFFER,e.DEPTH_STENCIL,this.width,this.height)}},t.prototype.clear=function(e,t,r,i){this.bind();var n=this.gl;n.clearColor(e,t,r,i),n.clear(n.COLOR_BUFFER_BIT|n.DEPTH_BUFFER_BIT)},t.prototype.bind=function(){var e=this.gl;e.bindFramebuffer(e.FRAMEBUFFER,this.framebuffer)},t.prototype.unbind=function(){var e=this.gl;e.bindFramebuffer(e.FRAMEBUFFER,null)},t.prototype.resize=function(e,t){var r=this.gl;this.width=e,this.height=t,this.texture&&this.texture.uploadData(null,e,t),this.stencil&&(r.bindRenderbuffer(r.RENDERBUFFER,this.stencil),r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,e,t))},t.prototype.destroy=function(){var e=this.gl;this.texture&&this.texture.destroy(),e.deleteFramebuffer(this.framebuffer),this.gl=null,this.stencil=null,this.texture=null},t.createRGBA=function(r,i,n,u){var a=e.fromData(r,null,i,n);a.enableNearestScaling(),a.enableWrapClamp();var l=new t(r,i,n);return l.enableTexture(a),l.unbind(),l},t.createFloat32=function(r,i,n,u){var a=new e.fromData(r,u,i,n);a.enableNearestScaling(),a.enableWrapClamp();var l=new t(r,i,n);return l.enableTexture(a),l.unbind(),l},module.exports=t;
},{"./GLTexture":"l5aM"}],"x48B":[function(require,module,exports) {
var r=function(r,o,a,t){var g=e(r,r.VERTEX_SHADER,o),n=e(r,r.FRAGMENT_SHADER,a),l=r.createProgram();if(r.attachShader(l,g),r.attachShader(l,n),t)for(var S in t)r.bindAttribLocation(l,t[S],S);return r.linkProgram(l),r.getProgramParameter(l,r.LINK_STATUS)||(console.error("Pixi.js Error: Could not initialize shader."),console.error("gl.VALIDATE_STATUS",r.getProgramParameter(l,r.VALIDATE_STATUS)),console.error("gl.getError()",r.getError()),""!==r.getProgramInfoLog(l)&&console.warn("Pixi.js Warning: gl.getProgramInfoLog()",r.getProgramInfoLog(l)),r.deleteProgram(l),l=null),r.deleteShader(g),r.deleteShader(n),l},e=function(r,e,o){var a=r.createShader(e);return r.shaderSource(a,o),r.compileShader(a),r.getShaderParameter(a,r.COMPILE_STATUS)?a:(console.log(r.getShaderInfoLog(a)),null)};module.exports=r;
},{}],"3hrJ":[function(require,module,exports) {
var e=function(e,v){if(!O){var _=Object.keys(T);O={};for(var L=0;L<_.length;++L){var c=_[L];O[e[c]]=T[c]}}return O[v]},O=null,T={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"};module.exports=e;
},{}],"KK7d":[function(require,module,exports) {
var e=function(e){return c[e]},c={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};module.exports=e;
},{}],"LN7j":[function(require,module,exports) {
var e=require("./mapType"),t=require("./mapSize"),r=function(r,o){for(var a={},n=r.getProgramParameter(o,r.ACTIVE_ATTRIBUTES),m=0;m<n;m++){var p=r.getActiveAttrib(o,m),A=e(r,p.type);a[p.name]={type:A,size:t(A),location:r.getAttribLocation(o,p.name),pointer:i}}return a},i=function(e,t,r,i){gl.vertexAttribPointer(this.location,this.size,e||gl.FLOAT,t||!1,r||0,i||0)};module.exports=r;
},{"./mapType":"3hrJ","./mapSize":"KK7d"}],"7Hmw":[function(require,module,exports) {
var r=function(r,a){switch(r){case"float":return 0;case"vec2":return new Float32Array(2*a);case"vec3":return new Float32Array(3*a);case"vec4":return new Float32Array(4*a);case"int":case"sampler2D":return 0;case"ivec2":return new Int32Array(2*a);case"ivec3":return new Int32Array(3*a);case"ivec4":return new Int32Array(4*a);case"bool":return!1;case"bvec2":return e(2*a);case"bvec3":return e(3*a);case"bvec4":return e(4*a);case"mat2":return new Float32Array([1,0,0,1]);case"mat3":return new Float32Array([1,0,0,0,1,0,0,0,1]);case"mat4":return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}},e=function(r){for(var e=new Array(r),a=0;a<e.length;a++)e[a]=!1;return e};module.exports=r;
},{}],"sq5Z":[function(require,module,exports) {
var e=require("./mapType"),r=require("./defaultValue"),a=function(a,t){for(var i={},o=a.getProgramParameter(t,a.ACTIVE_UNIFORMS),n=0;n<o;n++){var u=a.getActiveUniform(t,n),m=u.name.replace(/\[.*?\]/,""),l=e(a,u.type);i[m]={type:l,size:u.size,location:a.getUniformLocation(t,m),value:r(l,u.size)}}return i};module.exports=a;
},{"./mapType":"3hrJ","./defaultValue":"7Hmw"}],"F9WP":[function(require,module,exports) {
var n=function(n,r){return"precision"!==n.substring(0,9)?"precision "+r+" float;\n"+n:n};module.exports=n;
},{}],"lval":[function(require,module,exports) {
var n=function(n,f){var o={data:{}};o.gl=n;for(var c=Object.keys(f),r=0;r<c.length;r++){var e=c[r],v=e.split("."),m=v[v.length-1],a=u(v,o),l=f[e];a.data[m]=l,a.gl=n,Object.defineProperty(a,m,{get:i(m),set:t(m,l)})}return o},i=function(n){return function(){return this.data[n].value}},f={float:function(n,i,f){n.uniform1f(i,f)},vec2:function(n,i,f){n.uniform2f(i,f[0],f[1])},vec3:function(n,i,f){n.uniform3f(i,f[0],f[1],f[2])},vec4:function(n,i,f){n.uniform4f(i,f[0],f[1],f[2],f[3])},int:function(n,i,f){n.uniform1i(i,f)},ivec2:function(n,i,f){n.uniform2i(i,f[0],f[1])},ivec3:function(n,i,f){n.uniform3i(i,f[0],f[1],f[2])},ivec4:function(n,i,f){n.uniform4i(i,f[0],f[1],f[2],f[3])},bool:function(n,i,f){n.uniform1i(i,f)},bvec2:function(n,i,f){n.uniform2i(i,f[0],f[1])},bvec3:function(n,i,f){n.uniform3i(i,f[0],f[1],f[2])},bvec4:function(n,i,f){n.uniform4i(i,f[0],f[1],f[2],f[3])},mat2:function(n,i,f){n.uniformMatrix2fv(i,!1,f)},mat3:function(n,i,f){n.uniformMatrix3fv(i,!1,f)},mat4:function(n,i,f){n.uniformMatrix4fv(i,!1,f)},sampler2D:function(n,i,f){n.uniform1i(i,f)}},o={float:function(n,i,f){n.uniform1fv(i,f)},vec2:function(n,i,f){n.uniform2fv(i,f)},vec3:function(n,i,f){n.uniform3fv(i,f)},vec4:function(n,i,f){n.uniform4fv(i,f)},int:function(n,i,f){n.uniform1iv(i,f)},ivec2:function(n,i,f){n.uniform2iv(i,f)},ivec3:function(n,i,f){n.uniform3iv(i,f)},ivec4:function(n,i,f){n.uniform4iv(i,f)},bool:function(n,i,f){n.uniform1iv(i,f)},bvec2:function(n,i,f){n.uniform2iv(i,f)},bvec3:function(n,i,f){n.uniform3iv(i,f)},bvec4:function(n,i,f){n.uniform4iv(i,f)},sampler2D:function(n,i,f){n.uniform1iv(i,f)}};function t(n,i){return function(t){this.data[n].value=t;var u=this.data[n].location;1===i.size?f[i.type](this.gl,u,t):o[i.type](this.gl,u,t)}}function u(n,i){for(var f=i,o=0;o<n.length-1;o++){var t=f[n[o]]||{data:{}};f[n[o]]=t,f=t}return f}module.exports=n;
},{}],"VwmF":[function(require,module,exports) {
var r=require("./shader/compileProgram"),t=require("./shader/extractAttributes"),e=require("./shader/extractUniforms"),i=require("./shader/setPrecision"),s=require("./shader/generateUniformAccessObject"),o=function(o,a,u,h,n){this.gl=o,h&&(a=i(a,h),u=i(u,h)),this.program=r(o,a,u,n),this.attributes=t(o,this.program),this.uniformData=e(o,this.program),this.uniforms=s(o,this.uniformData)};o.prototype.bind=function(){return this.gl.useProgram(this.program),this},o.prototype.destroy=function(){this.attributes=null,this.uniformData=null,this.uniforms=null,this.gl.deleteProgram(this.program)},module.exports=o;
},{"./shader/compileProgram":"x48B","./shader/extractAttributes":"LN7j","./shader/extractUniforms":"sq5Z","./shader/setPrecision":"F9WP","./shader/generateUniformAccessObject":"lval"}],"iM49":[function(require,module,exports) {
var t=require("./setVertexAttribArrays");function e(t,i){if(this.nativeVaoExtension=null,e.FORCE_NATIVE||(this.nativeVaoExtension=t.getExtension("OES_vertex_array_object")||t.getExtension("MOZ_OES_vertex_array_object")||t.getExtension("WEBKIT_OES_vertex_array_object")),this.nativeState=i,this.nativeVaoExtension){this.nativeVao=this.nativeVaoExtension.createVertexArrayOES();var r=t.getParameter(t.MAX_VERTEX_ATTRIBS);this.nativeState={tempAttribState:new Array(r),attribState:new Array(r)}}this.gl=t,this.attributes=[],this.indexBuffer=null,this.dirty=!1}e.prototype.constructor=e,module.exports=e,e.FORCE_NATIVE=!1,e.prototype.bind=function(){if(this.nativeVao){if(this.nativeVaoExtension.bindVertexArrayOES(this.nativeVao),this.dirty)return this.dirty=!1,this.activate(),this;this.indexBuffer&&this.indexBuffer.bind()}else this.activate();return this},e.prototype.unbind=function(){return this.nativeVao&&this.nativeVaoExtension.bindVertexArrayOES(null),this},e.prototype.activate=function(){for(var e=this.gl,i=null,r=0;r<this.attributes.length;r++){var n=this.attributes[r];i!==n.buffer&&(n.buffer.bind(),i=n.buffer),e.vertexAttribPointer(n.attribute.location,n.attribute.size,n.type||e.FLOAT,n.normalized||!1,n.stride||0,n.start||0)}return t(e,this.attributes,this.nativeState),this.indexBuffer&&this.indexBuffer.bind(),this},e.prototype.addAttribute=function(t,e,i,r,n,a){return this.attributes.push({buffer:t,attribute:e,location:e.location,type:i||this.gl.FLOAT,normalized:r||!1,stride:n||0,start:a||0}),this.dirty=!0,this},e.prototype.addIndex=function(t){return this.indexBuffer=t,this.dirty=!0,this},e.prototype.clear=function(){return this.nativeVao&&this.nativeVaoExtension.bindVertexArrayOES(this.nativeVao),this.attributes.length=0,this.indexBuffer=null,this},e.prototype.draw=function(t,e,i){var r=this.gl;return this.indexBuffer?r.drawElements(t,e||this.indexBuffer.data.length,r.UNSIGNED_SHORT,2*(i||0)):r.drawArrays(t,i,e||this.getSize()),this},e.prototype.destroy=function(){this.gl=null,this.indexBuffer=null,this.attributes=null,this.nativeState=null,this.nativeVao&&this.nativeVaoExtension.deleteVertexArrayOES(this.nativeVao),this.nativeVaoExtension=null,this.nativeVao=null},e.prototype.getSize=function(){var t=this.attributes[0];return t.buffer.data.length/(t.stride/4||t.attribute.size)};
},{"./setVertexAttribArrays":"FtW/"}],"5ZOS":[function(require,module,exports) {
module.exports={compileProgram:require("./compileProgram"),defaultValue:require("./defaultValue"),extractAttributes:require("./extractAttributes"),extractUniforms:require("./extractUniforms"),generateUniformAccessObject:require("./generateUniformAccessObject"),setPrecision:require("./setPrecision"),mapSize:require("./mapSize"),mapType:require("./mapType")};
},{"./compileProgram":"x48B","./defaultValue":"7Hmw","./extractAttributes":"LN7j","./extractUniforms":"sq5Z","./generateUniformAccessObject":"lval","./setPrecision":"F9WP","./mapSize":"KK7d","./mapType":"3hrJ"}],"PJsv":[function(require,module,exports) {
var e={createContext:require("./createContext"),setVertexAttribArrays:require("./setVertexAttribArrays"),GLBuffer:require("./GLBuffer"),GLFramebuffer:require("./GLFramebuffer"),GLShader:require("./GLShader"),GLTexture:require("./GLTexture"),VertexArrayObject:require("./VertexArrayObject"),shader:require("./shader")};"undefined"!=typeof module&&module.exports&&(module.exports=e),"undefined"!=typeof window&&(window.PIXI=window.PIXI||{},window.PIXI.glCore=e);
},{"./createContext":"yTo9","./setVertexAttribArrays":"FtW/","./GLBuffer":"aBLe","./GLFramebuffer":"rtye","./GLShader":"VwmF","./GLTexture":"l5aM","./VertexArrayObject":"iM49","./shader":"5ZOS"}],"Me0q":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var i=require("../math");function t(i,t){if(!(i instanceof t))throw new TypeError("Cannot call a class as a function")}var m=function(){function m(){t(this,m),this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null}return m.prototype.isEmpty=function(){return this.minX>this.maxX||this.minY>this.maxY},m.prototype.clear=function(){this.updateID++,this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0},m.prototype.getRectangle=function(t){return this.minX>this.maxX||this.minY>this.maxY?i.Rectangle.EMPTY:((t=t||new i.Rectangle(0,0,1,1)).x=this.minX,t.y=this.minY,t.width=this.maxX-this.minX,t.height=this.maxY-this.minY,t)},m.prototype.addPoint=function(i){this.minX=Math.min(this.minX,i.x),this.maxX=Math.max(this.maxX,i.x),this.minY=Math.min(this.minY,i.y),this.maxY=Math.max(this.maxY,i.y)},m.prototype.addQuad=function(i){var t=this.minX,m=this.minY,n=this.maxX,a=this.maxY,s=i[0],h=i[1];t=s<t?s:t,m=h<m?h:m,n=s>n?s:n,a=h>a?h:a,t=(s=i[2])<t?s:t,m=(h=i[3])<m?h:m,n=s>n?s:n,a=h>a?h:a,t=(s=i[4])<t?s:t,m=(h=i[5])<m?h:m,n=s>n?s:n,a=h>a?h:a,t=(s=i[6])<t?s:t,m=(h=i[7])<m?h:m,n=s>n?s:n,a=h>a?h:a,this.minX=t,this.minY=m,this.maxX=n,this.maxY=a},m.prototype.addFrame=function(i,t,m,n,a){var s=i.worldTransform,h=s.a,x=s.b,Y=s.c,X=s.d,o=s.tx,r=s.ty,e=this.minX,d=this.minY,u=this.maxX,c=this.maxY,p=h*t+Y*m+o,f=x*t+X*m+r;e=p<e?p:e,d=f<d?f:d,u=p>u?p:u,c=f>c?f:c,e=(p=h*n+Y*m+o)<e?p:e,d=(f=x*n+X*m+r)<d?f:d,u=p>u?p:u,c=f>c?f:c,e=(p=h*t+Y*a+o)<e?p:e,d=(f=x*t+X*a+r)<d?f:d,u=p>u?p:u,c=f>c?f:c,e=(p=h*n+Y*a+o)<e?p:e,d=(f=x*n+X*a+r)<d?f:d,u=p>u?p:u,c=f>c?f:c,this.minX=e,this.minY=d,this.maxX=u,this.maxY=c},m.prototype.addVertices=function(i,t,m,n){for(var a=i.worldTransform,s=a.a,h=a.b,x=a.c,Y=a.d,X=a.tx,o=a.ty,r=this.minX,e=this.minY,d=this.maxX,u=this.maxY,c=m;c<n;c+=2){var p=t[c],f=t[c+1],y=s*p+x*f+X,l=Y*f+h*p+o;r=y<r?y:r,e=l<e?l:e,d=y>d?y:d,u=l>u?l:u}this.minX=r,this.minY=e,this.maxX=d,this.maxY=u},m.prototype.addBounds=function(i){var t=this.minX,m=this.minY,n=this.maxX,a=this.maxY;this.minX=i.minX<t?i.minX:t,this.minY=i.minY<m?i.minY:m,this.maxX=i.maxX>n?i.maxX:n,this.maxY=i.maxY>a?i.maxY:a},m.prototype.addBoundsMask=function(i,t){var m=i.minX>t.minX?i.minX:t.minX,n=i.minY>t.minY?i.minY:t.minY,a=i.maxX<t.maxX?i.maxX:t.maxX,s=i.maxY<t.maxY?i.maxY:t.maxY;if(m<=a&&n<=s){var h=this.minX,x=this.minY,Y=this.maxX,X=this.maxY;this.minX=m<h?m:h,this.minY=n<x?n:x,this.maxX=a>Y?a:Y,this.maxY=s>X?s:X}},m.prototype.addBoundsArea=function(i,t){var m=i.minX>t.x?i.minX:t.x,n=i.minY>t.y?i.minY:t.y,a=i.maxX<t.x+t.width?i.maxX:t.x+t.width,s=i.maxY<t.y+t.height?i.maxY:t.y+t.height;if(m<=a&&n<=s){var h=this.minX,x=this.minY,Y=this.maxX,X=this.maxY;this.minX=m<h?m:h,this.minY=n<x?n:x,this.maxX=a>Y?a:Y,this.maxY=s>X?s:X}},m}();exports.default=m;
},{"../math":"e3iB"}],"2JJl":[function(require,module,exports) {
"use strict";var e=Object.prototype.hasOwnProperty,t="~";function n(){}function s(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function r(){this._events=new n,this._eventsCount=0}Object.create&&(n.prototype=Object.create(null),(new n).__proto__||(t=!1)),r.prototype.eventNames=function(){var n,s,r=[];if(0===this._eventsCount)return r;for(s in n=this._events)e.call(n,s)&&r.push(t?s.slice(1):s);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(n)):r},r.prototype.listeners=function(e,n){var s=t?t+e:e,r=this._events[s];if(n)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var o=0,i=r.length,c=new Array(i);o<i;o++)c[o]=r[o].fn;return c},r.prototype.emit=function(e,n,s,r,o,i){var c=t?t+e:e;if(!this._events[c])return!1;var h,v,f=this._events[c],a=arguments.length;if(f.fn){switch(f.once&&this.removeListener(e,f.fn,void 0,!0),a){case 1:return f.fn.call(f.context),!0;case 2:return f.fn.call(f.context,n),!0;case 3:return f.fn.call(f.context,n,s),!0;case 4:return f.fn.call(f.context,n,s,r),!0;case 5:return f.fn.call(f.context,n,s,r,o),!0;case 6:return f.fn.call(f.context,n,s,r,o,i),!0}for(v=1,h=new Array(a-1);v<a;v++)h[v-1]=arguments[v];f.fn.apply(f.context,h)}else{var u,l=f.length;for(v=0;v<l;v++)switch(f[v].once&&this.removeListener(e,f[v].fn,void 0,!0),a){case 1:f[v].fn.call(f[v].context);break;case 2:f[v].fn.call(f[v].context,n);break;case 3:f[v].fn.call(f[v].context,n,s);break;case 4:f[v].fn.call(f[v].context,n,s,r);break;default:if(!h)for(u=1,h=new Array(a-1);u<a;u++)h[u-1]=arguments[u];f[v].fn.apply(f[v].context,h)}}return!0},r.prototype.on=function(e,n,r){var o=new s(n,r||this),i=t?t+e:e;return this._events[i]?this._events[i].fn?this._events[i]=[this._events[i],o]:this._events[i].push(o):(this._events[i]=o,this._eventsCount++),this},r.prototype.once=function(e,n,r){var o=new s(n,r||this,!0),i=t?t+e:e;return this._events[i]?this._events[i].fn?this._events[i]=[this._events[i],o]:this._events[i].push(o):(this._events[i]=o,this._eventsCount++),this},r.prototype.removeListener=function(e,s,r,o){var i=t?t+e:e;if(!this._events[i])return this;if(!s)return 0==--this._eventsCount?this._events=new n:delete this._events[i],this;var c=this._events[i];if(c.fn)c.fn!==s||o&&!c.once||r&&c.context!==r||(0==--this._eventsCount?this._events=new n:delete this._events[i]);else{for(var h=0,v=[],f=c.length;h<f;h++)(c[h].fn!==s||o&&!c[h].once||r&&c[h].context!==r)&&v.push(c[h]);v.length?this._events[i]=1===v.length?v[0]:v:0==--this._eventsCount?this._events=new n:delete this._events[i]}return this},r.prototype.removeAllListeners=function(e){var s;return e?(s=t?t+e:e,this._events[s]&&(0==--this._eventsCount?this._events=new n:delete this._events[s])):(this._events=new n,this._eventsCount=0),this},r.prototype.off=r.prototype.removeListener,r.prototype.addListener=r.prototype.on,r.prototype.setMaxListeners=function(){return this},r.prefixed=t,r.EventEmitter=r,"undefined"!=typeof module&&(module.exports=r);
},{}],"OrLe":[function(require,module,exports) {
var define;
var global = arguments[3];
var i,e=arguments[3];!function(e){var o=/iPhone/i,t=/iPod/i,n=/iPad/i,d=/(?=.*\bAndroid\b)(?=.*\bMobile\b)/i,s=/Android/i,r=/(?=.*\bAndroid\b)(?=.*\bSD4930UR\b)/i,b=/(?=.*\bAndroid\b)(?=.*\b(?:KFOT|KFTT|KFJWI|KFJWA|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|KFARWI|KFASWI|KFSAWI|KFSAWA)\b)/i,h=/Windows Phone/i,a=/(?=.*\bWindows\b)(?=.*\bARM\b)/i,l=/BlackBerry/i,p=/BB10/i,u=/Opera Mini/i,c=/(CriOS|Chrome)(?=.*\bMobile\b)/i,f=/(?=.*\bFirefox\b)(?=.*\bMobile\b)/i,w=new RegExp("(?:Nexus 7|BNTV250|Kindle Fire|Silk|GT-P1000)","i"),v=function(i,e){return i.test(e)},A=function(i){var e=i||navigator.userAgent,A=e.split("[FBAN");if(void 0!==A[1]&&(e=A[0]),void 0!==(A=e.split("Twitter"))[1]&&(e=A[0]),this.apple={phone:v(o,e),ipod:v(t,e),tablet:!v(o,e)&&v(n,e),device:v(o,e)||v(t,e)||v(n,e)},this.amazon={phone:v(r,e),tablet:!v(r,e)&&v(b,e),device:v(r,e)||v(b,e)},this.android={phone:v(r,e)||v(d,e),tablet:!v(r,e)&&!v(d,e)&&(v(b,e)||v(s,e)),device:v(r,e)||v(b,e)||v(d,e)||v(s,e)},this.windows={phone:v(h,e),tablet:v(a,e),device:v(h,e)||v(a,e)},this.other={blackberry:v(l,e),blackberry10:v(p,e),opera:v(u,e),firefox:v(f,e),chrome:v(c,e),device:v(l,e)||v(p,e)||v(u,e)||v(f,e)||v(c,e)},this.seven_inch=v(w,e),this.any=this.apple.device||this.android.device||this.windows.device||this.other.device||this.seven_inch,this.phone=this.apple.phone||this.android.phone||this.windows.phone,this.tablet=this.apple.tablet||this.android.tablet||this.windows.tablet,"undefined"==typeof window)return this},F=function(){var i=new A;return i.Class=A,i};"undefined"!=typeof module&&module.exports&&"undefined"==typeof window?module.exports=A:"undefined"!=typeof module&&module.exports&&"undefined"!=typeof window?module.exports=F():"function"==typeof i&&i.amd?i("isMobile",[],e.isMobile=F()):e.isMobile=F()}(this);
},{}],"4eqS":[function(require,module,exports) {
"use strict";exports.__esModule=!0,exports.default=r;var e=require("ismobilejs"),t=u(e);function u(e){return e&&e.__esModule?e:{default:e}}function r(e){return t.default.tablet||t.default.phone?4:e}
},{"ismobilejs":"OrLe"}],"JVKT":[function(require,module,exports) {
"use strict";function t(){return!(!!navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform))}exports.__esModule=!0,exports.default=t;
},{}],"tMVT":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=require("./utils/maxRecommendedTextures"),E=R(e),_=require("./utils/canUploadSameBuffer"),r=R(_);function R(e){return e&&e.__esModule?e:{default:e}}exports.default={TARGET_FPMS:.06,MIPMAP_TEXTURES:!0,RESOLUTION:1,FILTER_RESOLUTION:1,SPRITE_MAX_TEXTURES:(0,E.default)(32),SPRITE_BATCH_SIZE:4096,RETINA_PREFIX:/@([0-9\.]+)x/,RENDER_OPTIONS:{view:null,antialias:!1,forceFXAA:!1,autoResize:!1,transparent:!1,backgroundColor:0,clearBeforeRender:!0,preserveDrawingBuffer:!1,roundPixels:!1,width:800,height:600,legacy:!1},TRANSFORM_MODE:0,GC_MODE:0,GC_MAX_IDLE:3600,GC_MAX_CHECK_COUNT:600,WRAP_MODE:0,SCALE_MODE:0,PRECISION_VERTEX:"highp",PRECISION_FRAGMENT:"mediump",CAN_UPLOAD_SAME_BUFFER:(0,r.default)()};
},{"./utils/maxRecommendedTextures":"4eqS","./utils/canUploadSameBuffer":"JVKT"}],"Pszr":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=require("../math");function r(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}var o=function(){function o(){r(this,o),this.worldTransform=new t.Matrix,this.localTransform=new t.Matrix,this._worldID=0,this._parentID=0}return o.prototype.updateLocalTransform=function(){},o.prototype.updateTransform=function(t){var r=t.worldTransform,o=this.worldTransform,a=this.localTransform;o.a=a.a*r.a+a.b*r.c,o.b=a.a*r.b+a.b*r.d,o.c=a.c*r.a+a.d*r.c,o.d=a.c*r.b+a.d*r.d,o.tx=a.tx*r.a+a.ty*r.c+r.tx,o.ty=a.tx*r.b+a.ty*r.d+r.ty,this._worldID++},o}();exports.default=o,o.prototype.updateWorldTransform=o.prototype.updateTransform,o.IDENTITY=new o;
},{"../math":"e3iB"}],"pc4T":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=function(){function t(t,o){for(var e=0;e<o.length;e++){var i=o[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(o,e,i){return e&&t(o.prototype,e),i&&t(o,i),o}}(),o=require("../math"),e=require("./TransformBase"),i=s(e);function s(t){return t&&t.__esModule?t:{default:t}}function n(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}function r(t,o){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!o||"object"!=typeof o&&"function"!=typeof o?t:o}function a(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Super expression must either be null or a function, not "+typeof o);t.prototype=Object.create(o&&o.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(t,o):t.__proto__=o)}var c=function(e){function i(){n(this,i);var t=r(this,e.call(this));return t.position=new o.ObservablePoint(t.onChange,t,0,0),t.scale=new o.ObservablePoint(t.onChange,t,1,1),t.pivot=new o.ObservablePoint(t.onChange,t,0,0),t.skew=new o.ObservablePoint(t.updateSkew,t,0,0),t._rotation=0,t._cx=1,t._sx=0,t._cy=0,t._sy=1,t._localID=0,t._currentLocalID=0,t}return a(i,e),i.prototype.onChange=function(){this._localID++},i.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++},i.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)},i.prototype.updateTransform=function(t){var o=this.localTransform;if(this._localID!==this._currentLocalID&&(o.a=this._cx*this.scale._x,o.b=this._sx*this.scale._x,o.c=this._cy*this.scale._y,o.d=this._sy*this.scale._y,o.tx=this.position._x-(this.pivot._x*o.a+this.pivot._y*o.c),o.ty=this.position._y-(this.pivot._x*o.b+this.pivot._y*o.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==t._worldID){var e=t.worldTransform,i=this.worldTransform;i.a=o.a*e.a+o.b*e.c,i.b=o.a*e.b+o.b*e.d,i.c=o.c*e.a+o.d*e.c,i.d=o.c*e.b+o.d*e.d,i.tx=o.tx*e.a+o.ty*e.c+e.tx,i.ty=o.tx*e.b+o.ty*e.d+e.ty,this._parentID=t._worldID,this._worldID++}},i.prototype.setFromMatrix=function(t){t.decompose(this),this._localID++},t(i,[{key:"rotation",get:function(){return this._rotation},set:function(t){this._rotation=t,this.updateSkew()}}]),i}(i.default);exports.default=c;
},{"../math":"e3iB","./TransformBase":"Pszr"}],"ThH+":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=function(){function t(t,i){for(var o=0;o<i.length;o++){var e=i[o];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(t,e.key,e)}}return function(i,o,e){return o&&t(i.prototype,o),e&&t(i,e),i}}(),i=require("../math"),o=require("./TransformBase"),e=s(o);function s(t){return t&&t.__esModule?t:{default:t}}function n(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}function r(t,i){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!i||"object"!=typeof i&&"function"!=typeof i?t:i}function a(t,i){if("function"!=typeof i&&null!==i)throw new TypeError("Super expression must either be null or a function, not "+typeof i);t.prototype=Object.create(i&&i.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(t,i):t.__proto__=i)}var c=function(o){function e(){n(this,e);var t=r(this,o.call(this));return t.position=new i.Point(0,0),t.scale=new i.Point(1,1),t.skew=new i.ObservablePoint(t.updateSkew,t,0,0),t.pivot=new i.Point(0,0),t._rotation=0,t._cx=1,t._sx=0,t._cy=0,t._sy=1,t}return a(e,o),e.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)},e.prototype.updateLocalTransform=function(){var t=this.localTransform;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)},e.prototype.updateTransform=function(t){var i=this.localTransform;i.a=this._cx*this.scale.x,i.b=this._sx*this.scale.x,i.c=this._cy*this.scale.y,i.d=this._sy*this.scale.y,i.tx=this.position.x-(this.pivot.x*i.a+this.pivot.y*i.c),i.ty=this.position.y-(this.pivot.x*i.b+this.pivot.y*i.d);var o=t.worldTransform,e=this.worldTransform;e.a=i.a*o.a+i.b*o.c,e.b=i.a*o.b+i.b*o.d,e.c=i.c*o.a+i.d*o.c,e.d=i.c*o.b+i.d*o.d,e.tx=i.tx*o.a+i.ty*o.c+o.tx,e.ty=i.tx*o.b+i.ty*o.d+o.ty,this._worldID++},e.prototype.setFromMatrix=function(t){t.decompose(this)},t(e,[{key:"rotation",get:function(){return this._rotation},set:function(t){this._rotation=t,this.updateSkew()}}]),e}(e.default);exports.default=c;
},{"../math":"e3iB","./TransformBase":"Pszr"}],"rGF6":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),e=require("eventemitter3"),r=c(e),n=require("../const"),s=require("../settings"),i=c(s),o=require("./TransformStatic"),a=c(o),l=require("./Transform"),u=c(l),h=require("./Bounds"),p=c(h),f=require("../math");function c(t){return t&&t.__esModule?t:{default:t}}function d(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function m(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function y(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var _=function(e){function r(){d(this,r);var t=m(this,e.call(this)),s=i.default.TRANSFORM_MODE===n.TRANSFORM_MODE.STATIC?a.default:u.default;return t.tempDisplayObjectParent=null,t.transform=new s,t.alpha=1,t.visible=!0,t.renderable=!0,t.parent=null,t.worldAlpha=1,t.filterArea=null,t._filters=null,t._enabledFilters=null,t._bounds=new p.default,t._boundsID=0,t._lastBoundsID=-1,t._boundsRect=null,t._localBoundsRect=null,t._mask=null,t._destroyed=!1,t}return y(r,e),r.prototype.updateTransform=function(){this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha,this._bounds.updateID++},r.prototype._recursivePostUpdateTransform=function(){this.parent?(this.parent._recursivePostUpdateTransform(),this.transform.updateTransform(this.parent.transform)):this.transform.updateTransform(this._tempDisplayObjectParent.transform)},r.prototype.getBounds=function(t,e){return t||(this.parent?(this._recursivePostUpdateTransform(),this.updateTransform()):(this.parent=this._tempDisplayObjectParent,this.updateTransform(),this.parent=null)),this._boundsID!==this._lastBoundsID&&this.calculateBounds(),e||(this._boundsRect||(this._boundsRect=new f.Rectangle),e=this._boundsRect),this._bounds.getRectangle(e)},r.prototype.getLocalBounds=function(t){var e=this.transform,r=this.parent;this.parent=null,this.transform=this._tempDisplayObjectParent.transform,t||(this._localBoundsRect||(this._localBoundsRect=new f.Rectangle),t=this._localBoundsRect);var n=this.getBounds(!1,t);return this.parent=r,this.transform=e,n},r.prototype.toGlobal=function(t,e){return arguments.length>2&&void 0!==arguments[2]&&arguments[2]||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.apply(t,e)},r.prototype.toLocal=function(t,e,r,n){return e&&(t=e.toGlobal(t,r,n)),n||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.applyInverse(t,r)},r.prototype.renderWebGL=function(t){},r.prototype.renderCanvas=function(t){},r.prototype.setParent=function(t){if(!t||!t.addChild)throw new Error("setParent: Argument must be a Container");return t.addChild(this),t},r.prototype.setTransform=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,l=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0;return this.position.x=t,this.position.y=e,this.scale.x=r||1,this.scale.y=n||1,this.rotation=s,this.skew.x=i,this.skew.y=o,this.pivot.x=a,this.pivot.y=l,this},r.prototype.destroy=function(){this.removeAllListeners(),this.parent&&this.parent.removeChild(this),this.transform=null,this.parent=null,this._bounds=null,this._currentBounds=null,this._mask=null,this.filterArea=null,this.interactive=!1,this.interactiveChildren=!1,this._destroyed=!0},t(r,[{key:"_tempDisplayObjectParent",get:function(){return null===this.tempDisplayObjectParent&&(this.tempDisplayObjectParent=new r),this.tempDisplayObjectParent}},{key:"x",get:function(){return this.position.x},set:function(t){this.transform.position.x=t}},{key:"y",get:function(){return this.position.y},set:function(t){this.transform.position.y=t}},{key:"worldTransform",get:function(){return this.transform.worldTransform}},{key:"localTransform",get:function(){return this.transform.localTransform}},{key:"position",get:function(){return this.transform.position},set:function(t){this.transform.position.copy(t)}},{key:"scale",get:function(){return this.transform.scale},set:function(t){this.transform.scale.copy(t)}},{key:"pivot",get:function(){return this.transform.pivot},set:function(t){this.transform.pivot.copy(t)}},{key:"skew",get:function(){return this.transform.skew},set:function(t){this.transform.skew.copy(t)}},{key:"rotation",get:function(){return this.transform.rotation},set:function(t){this.transform.rotation=t}},{key:"worldVisible",get:function(){var t=this;do{if(!t.visible)return!1;t=t.parent}while(t);return!0}},{key:"mask",get:function(){return this._mask},set:function(t){this._mask&&(this._mask.renderable=!0),this._mask=t,this._mask&&(this._mask.renderable=!1)}},{key:"filters",get:function(){return this._filters&&this._filters.slice()},set:function(t){this._filters=t&&t.slice()}}]),r}(r.default);exports.default=_,_.prototype.displayObjectUpdateTransform=_.prototype.updateTransform;
},{"eventemitter3":"2JJl","../const":"YEQi","../settings":"tMVT","./TransformStatic":"pc4T","./Transform":"ThH+","./Bounds":"Me0q","../math":"e3iB"}],"Mag4":[function(require,module,exports) {
"use strict";function i(i){i.__plugins={},i.registerPlugin=function(n,s){i.__plugins[n]=s},i.prototype.initPlugins=function(){for(var n in this.plugins=this.plugins||{},i.__plugins)this.plugins[n]=new i.__plugins[n](this)},i.prototype.destroyPlugins=function(){for(var i in this.plugins)this.plugins[i].destroy(),this.plugins[i]=null;this.plugins=null}}exports.__esModule=!0,exports.default={mixin:function(n){i(n)}};
},{}],"hJHU":[function(require,module,exports) {
"use strict";function e(e,r){if(e&&r)for(var t=Object.keys(r),n=0;n<t.length;++n){var o=t[n];Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(r,o))}}exports.__esModule=!0,exports.mixin=e,exports.delayMixin=t,exports.performMixins=n;var r=[];function t(e,t){r.push(e,t)}function n(){for(var t=0;t<r.length;t+=2)e(r[t],r[t+1]);r.length=0}
},{}],"n9cH":[function(require,module,exports) {
"use strict";module.exports=function(t,e,r){var n,o=t.length;if(!(e>=o||0===r)){var f=o-(r=e+r>o?o-e:r);for(n=e;n<f;++n)t[n]=t[n+r];t.length=f}};
},{}],"UALW":[function(require,module,exports) {
"use strict";exports.__esModule=!0,exports.default=E;var D=require("../const");function E(){for(var E=[],N=[],M=0;M<32;M++)E[M]=M,N[M]=M;E[D.BLEND_MODES.NORMAL_NPM]=D.BLEND_MODES.NORMAL,E[D.BLEND_MODES.ADD_NPM]=D.BLEND_MODES.ADD,E[D.BLEND_MODES.SCREEN_NPM]=D.BLEND_MODES.SCREEN,N[D.BLEND_MODES.NORMAL]=D.BLEND_MODES.NORMAL_NPM,N[D.BLEND_MODES.ADD]=D.BLEND_MODES.ADD_NPM,N[D.BLEND_MODES.SCREEN]=D.BLEND_MODES.SCREEN_NPM;var _=[];return _.push(N),_.push(E),_}
},{"../const":"YEQi"}],"dDI1":[function(require,module,exports) {
"use strict";exports.__esModule=!0,exports.premultiplyBlendMode=exports.BaseTextureCache=exports.TextureCache=exports.mixins=exports.pluginTarget=exports.EventEmitter=exports.removeItems=exports.isMobile=void 0,exports.uid=w,exports.hex2rgb=y,exports.hex2string=h,exports.rgb2hex=C,exports.getResolutionOfUrl=T,exports.decomposeDataUri=E,exports.getUrlFileExtension=_,exports.getSvgSize=M,exports.skipHello=I,exports.sayHello=S,exports.isWebGLSupported=k,exports.sign=L,exports.destroyTextureCache=q,exports.clearTextureCache=F,exports.correctBlendMode=A,exports.premultiplyTint=B,exports.premultiplyRgba=P,exports.premultiplyTintToRgba=N;var e=require("../const"),r=require("../settings"),t=v(r),o=require("eventemitter3"),n=v(o),i=require("./pluginTarget"),a=v(i),u=require("./mixin"),s=g(u),p=require("ismobilejs"),c=g(p),l=require("remove-array-items"),d=v(l),f=require("./mapPremultipliedBlendModes"),x=v(f);function g(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r.default=e,r}function v(e){return e&&e.__esModule?e:{default:e}}var m=0,b=!1;function w(){return++m}function y(e,r){return(r=r||[])[0]=(e>>16&255)/255,r[1]=(e>>8&255)/255,r[2]=(255&e)/255,r}function h(e){return e=e.toString(16),"#"+(e="000000".substr(0,6-e.length)+e)}function C(e){return(255*e[0]<<16)+(255*e[1]<<8)+(255*e[2]|0)}function T(e,r){var o=t.default.RETINA_PREFIX.exec(e);return o?parseFloat(o[1]):void 0!==r?r:1}function E(r){var t=e.DATA_URI.exec(r);if(t)return{mediaType:t[1]?t[1].toLowerCase():void 0,subType:t[2]?t[2].toLowerCase():void 0,encoding:t[3]?t[3].toLowerCase():void 0,data:t[4]}}function _(r){var t=e.URL_FILE_EXTENSION.exec(r);if(t)return t[1].toLowerCase()}function M(r){var t=e.SVG_SIZE.exec(r),o={};return t&&(o[t[1]]=Math.round(parseFloat(t[3])),o[t[5]]=Math.round(parseFloat(t[7]))),o}function I(){b=!0}function S(r){if(!b){if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var t=["\n %c %c %c PixiJS "+e.VERSION+" - ✰ "+r+" ✰  %c  %c  http://www.pixijs.com/  %c %c ♥%c♥%c♥ \n\n","background: #ff66a5; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff66a5; background: #030307; padding:5px 0;","background: #ff66a5; padding:5px 0;","background: #ffc3dc; padding:5px 0;","background: #ff66a5; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;"];window.console.log.apply(console,t)}else window.console&&window.console.log("PixiJS "+e.VERSION+" - "+r+" - http://www.pixijs.com/");b=!0}}function k(){var e={stencil:!0,failIfMajorPerformanceCaveat:!0};try{if(!window.WebGLRenderingContext)return!1;var r=document.createElement("canvas"),t=r.getContext("webgl",e)||r.getContext("experimental-webgl",e),o=!(!t||!t.getContextAttributes().stencil);if(t){var n=t.getExtension("WEBGL_lose_context");n&&n.loseContext()}return t=null,o}catch(i){return!1}}function L(e){return 0===e?0:e<0?-1:1}exports.isMobile=c,exports.removeItems=d.default,exports.EventEmitter=n.default,exports.pluginTarget=a.default,exports.mixins=s;var R=exports.TextureCache=Object.create(null),O=exports.BaseTextureCache=Object.create(null);function q(){var e=void 0;for(e in R)R[e].destroy();for(e in O)O[e].destroy()}function F(){var e=void 0;for(e in R)delete R[e];for(e in O)delete O[e]}var j=exports.premultiplyBlendMode=(0,x.default)();function A(e,r){return j[r?1:0][e]}function B(e,r){if(1===r)return(255*r<<24)+e;if(0===r)return 0;var t=e>>16&255,o=e>>8&255,n=255&e;return(255*r<<24)+((t=t*r+.5|0)<<16)+((o=o*r+.5|0)<<8)+(n=n*r+.5|0)}function P(e,r,t,o){return t=t||new Float32Array(4),o||void 0===o?(t[0]=e[0]*r,t[1]=e[1]*r,t[2]=e[2]*r):(t[0]=e[0],t[1]=e[1],t[2]=e[2]),t[3]=r,t}function N(e,r,t,o){return(t=t||new Float32Array(4))[0]=(e>>16&255)/255,t[1]=(e>>8&255)/255,t[2]=(255&e)/255,(o||void 0===o)&&(t[0]*=r,t[1]*=r,t[2]*=r),t[3]=r,t}
},{"../const":"YEQi","../settings":"tMVT","eventemitter3":"2JJl","./pluginTarget":"Mag4","./mixin":"hJHU","ismobilejs":"OrLe","remove-array-items":"n9cH","./mapPremultipliedBlendModes":"UALW"}],"OzBO":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),t=require("../utils"),r=require("./DisplayObject"),n=i(r);function i(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function h(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=function(r){function n(){s(this,n);var e=h(this,r.call(this));return e.children=[],e}return o(n,r),n.prototype.onChildrenChange=function(){},n.prototype.addChild=function(e){var t=arguments.length;if(t>1)for(var r=0;r<t;r++)this.addChild(arguments[r]);else e.parent&&e.parent.removeChild(e),e.parent=this,e.transform._parentID=-1,this.children.push(e),this._boundsID++,this.onChildrenChange(this.children.length-1),e.emit("added",this);return e},n.prototype.addChildAt=function(e,t){if(t<0||t>this.children.length)throw new Error(e+"addChildAt: The index "+t+" supplied is out of bounds "+this.children.length);return e.parent&&e.parent.removeChild(e),e.parent=this,e.transform._parentID=-1,this.children.splice(t,0,e),this._boundsID++,this.onChildrenChange(t),e.emit("added",this),e},n.prototype.swapChildren=function(e,t){if(e!==t){var r=this.getChildIndex(e),n=this.getChildIndex(t);this.children[r]=t,this.children[n]=e,this.onChildrenChange(r<n?r:n)}},n.prototype.getChildIndex=function(e){var t=this.children.indexOf(e);if(-1===t)throw new Error("The supplied DisplayObject must be a child of the caller");return t},n.prototype.setChildIndex=function(e,r){if(r<0||r>=this.children.length)throw new Error("The supplied index is out of bounds");var n=this.getChildIndex(e);(0,t.removeItems)(this.children,n,1),this.children.splice(r,0,e),this.onChildrenChange(r)},n.prototype.getChildAt=function(e){if(e<0||e>=this.children.length)throw new Error("getChildAt: Index ("+e+") does not exist.");return this.children[e]},n.prototype.removeChild=function(e){var r=arguments.length;if(r>1)for(var n=0;n<r;n++)this.removeChild(arguments[n]);else{var i=this.children.indexOf(e);if(-1===i)return null;e.parent=null,e.transform._parentID=-1,(0,t.removeItems)(this.children,i,1),this._boundsID++,this.onChildrenChange(i),e.emit("removed",this)}return e},n.prototype.removeChildAt=function(e){var r=this.getChildAt(e);return r.parent=null,r.transform._parentID=-1,(0,t.removeItems)(this.children,e,1),this._boundsID++,this.onChildrenChange(e),r.emit("removed",this),r},n.prototype.removeChildren=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments[1],r=e,n="number"==typeof t?t:this.children.length,i=n-r,s=void 0;if(i>0&&i<=n){s=this.children.splice(r,i);for(var h=0;h<s.length;++h)s[h].parent=null,s[h].transform&&(s[h].transform._parentID=-1);this._boundsID++,this.onChildrenChange(e);for(var o=0;o<s.length;++o)s[o].emit("removed",this);return s}if(0===i&&0===this.children.length)return[];throw new RangeError("removeChildren: numeric values are outside the acceptable range.")},n.prototype.updateTransform=function(){this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(var e=0,t=this.children.length;e<t;++e){var r=this.children[e];r.visible&&r.updateTransform()}},n.prototype.calculateBounds=function(){this._bounds.clear(),this._calculateBounds();for(var e=0;e<this.children.length;e++){var t=this.children[e];t.visible&&t.renderable&&(t.calculateBounds(),t._mask?(t._mask.calculateBounds(),this._bounds.addBoundsMask(t._bounds,t._mask._bounds)):t.filterArea?this._bounds.addBoundsArea(t._bounds,t.filterArea):this._bounds.addBounds(t._bounds))}this._lastBoundsID=this._boundsID},n.prototype._calculateBounds=function(){},n.prototype.renderWebGL=function(e){if(this.visible&&!(this.worldAlpha<=0)&&this.renderable)if(this._mask||this._filters)this.renderAdvancedWebGL(e);else{this._renderWebGL(e);for(var t=0,r=this.children.length;t<r;++t)this.children[t].renderWebGL(e)}},n.prototype.renderAdvancedWebGL=function(e){e.flush();var t=this._filters,r=this._mask;if(t){this._enabledFilters||(this._enabledFilters=[]),this._enabledFilters.length=0;for(var n=0;n<t.length;n++)t[n].enabled&&this._enabledFilters.push(t[n]);this._enabledFilters.length&&e.filterManager.pushFilter(this,this._enabledFilters)}r&&e.maskManager.pushMask(this,this._mask),this._renderWebGL(e);for(var i=0,s=this.children.length;i<s;i++)this.children[i].renderWebGL(e);e.flush(),r&&e.maskManager.popMask(this,this._mask),t&&this._enabledFilters&&this._enabledFilters.length&&e.filterManager.popFilter()},n.prototype._renderWebGL=function(e){},n.prototype._renderCanvas=function(e){},n.prototype.renderCanvas=function(e){if(this.visible&&!(this.worldAlpha<=0)&&this.renderable){this._mask&&e.maskManager.pushMask(this._mask),this._renderCanvas(e);for(var t=0,r=this.children.length;t<r;++t)this.children[t].renderCanvas(e);this._mask&&e.maskManager.popMask(e)}},n.prototype.destroy=function(e){r.prototype.destroy.call(this);var t="boolean"==typeof e?e:e&&e.children,n=this.removeChildren(0,this.children.length);if(t)for(var i=0;i<n.length;++i)n[i].destroy(e)},e(n,[{key:"width",get:function(){return this.scale.x*this.getLocalBounds().width},set:function(e){var t=this.getLocalBounds().width;this.scale.x=0!==t?e/t:1,this._width=e}},{key:"height",get:function(){return this.scale.y*this.getLocalBounds().height},set:function(e){var t=this.getLocalBounds().height;this.scale.y=0!==t?e/t:1,this._height=e}}]),n}(n.default);exports.default=a,a.prototype.containerUpdateTransform=a.prototype.updateTransform;
},{"../utils":"dDI1","./DisplayObject":"rGF6"}],"FIMm":[function(require,module,exports) {
var global = arguments[3];
var define;
var o,e=arguments[3];!function(n){var r="object"==typeof exports&&exports&&!exports.nodeType&&exports,t="object"==typeof module&&module&&!module.nodeType&&module,u="object"==typeof e&&e;u.global!==u&&u.window!==u&&u.self!==u||(n=u);var i,f,c=2147483647,l=36,s=1,p=26,a=38,d=700,h=72,v=128,g="-",w=/^xn--/,x=/[^\x20-\x7E]/,y=/[\x2E\u3002\uFF0E\uFF61]/g,m={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},C=l-s,b=Math.floor,j=String.fromCharCode;function A(o){throw new RangeError(m[o])}function I(o,e){for(var n=o.length,r=[];n--;)r[n]=e(o[n]);return r}function E(o,e){var n=o.split("@"),r="";return n.length>1&&(r=n[0]+"@",o=n[1]),r+I((o=o.replace(y,".")).split("."),e).join(".")}function F(o){for(var e,n,r=[],t=0,u=o.length;t<u;)(e=o.charCodeAt(t++))>=55296&&e<=56319&&t<u?56320==(64512&(n=o.charCodeAt(t++)))?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),t--):r.push(e);return r}function O(o){return I(o,function(o){var e="";return o>65535&&(e+=j((o-=65536)>>>10&1023|55296),o=56320|1023&o),e+=j(o)}).join("")}function S(o,e){return o+22+75*(o<26)-((0!=e)<<5)}function T(o,e,n){var r=0;for(o=n?b(o/d):o>>1,o+=b(o/e);o>C*p>>1;r+=l)o=b(o/C);return b(r+(C+1)*o/(o+a))}function L(o){var e,n,r,t,u,i,f,a,d,w,x,y=[],m=o.length,C=0,j=v,I=h;for((n=o.lastIndexOf(g))<0&&(n=0),r=0;r<n;++r)o.charCodeAt(r)>=128&&A("not-basic"),y.push(o.charCodeAt(r));for(t=n>0?n+1:0;t<m;){for(u=C,i=1,f=l;t>=m&&A("invalid-input"),((a=(x=o.charCodeAt(t++))-48<10?x-22:x-65<26?x-65:x-97<26?x-97:l)>=l||a>b((c-C)/i))&&A("overflow"),C+=a*i,!(a<(d=f<=I?s:f>=I+p?p:f-I));f+=l)i>b(c/(w=l-d))&&A("overflow"),i*=w;I=T(C-u,e=y.length+1,0==u),b(C/e)>c-j&&A("overflow"),j+=b(C/e),C%=e,y.splice(C++,0,j)}return O(y)}function M(o){var e,n,r,t,u,i,f,a,d,w,x,y,m,C,I,E=[];for(y=(o=F(o)).length,e=v,n=0,u=h,i=0;i<y;++i)(x=o[i])<128&&E.push(j(x));for(r=t=E.length,t&&E.push(g);r<y;){for(f=c,i=0;i<y;++i)(x=o[i])>=e&&x<f&&(f=x);for(f-e>b((c-n)/(m=r+1))&&A("overflow"),n+=(f-e)*m,e=f,i=0;i<y;++i)if((x=o[i])<e&&++n>c&&A("overflow"),x==e){for(a=n,d=l;!(a<(w=d<=u?s:d>=u+p?p:d-u));d+=l)I=a-w,C=l-w,E.push(j(S(w+I%C,0))),a=b(I/C);E.push(j(S(a,0))),u=T(n,m,r==t),n=0,++r}++n,++e}return E.join("")}if(i={version:"1.4.1",ucs2:{decode:F,encode:O},decode:L,encode:M,toASCII:function(o){return E(o,function(o){return x.test(o)?"xn--"+M(o):o})},toUnicode:function(o){return E(o,function(o){return w.test(o)?L(o.slice(4).toLowerCase()):o})}},"function"==typeof o&&"object"==typeof o.amd&&o.amd)o("punycode",function(){return i});else if(r&&t)if(module.exports==r)t.exports=i;else for(f in i)i.hasOwnProperty(f)&&(r[f]=i[f]);else n.punycode=i}(this);
},{}],"5YsI":[function(require,module,exports) {
"use strict";module.exports={isString:function(n){return"string"==typeof n},isObject:function(n){return"object"==typeof n&&null!==n},isNull:function(n){return null===n},isNullOrUndefined:function(n){return null==n}};
},{}],"J6GP":[function(require,module,exports) {
"use strict";function r(r,e){return Object.prototype.hasOwnProperty.call(r,e)}module.exports=function(t,n,o,a){n=n||"&",o=o||"=";var s={};if("string"!=typeof t||0===t.length)return s;var p=/\+/g;t=t.split(n);var u=1e3;a&&"number"==typeof a.maxKeys&&(u=a.maxKeys);var c=t.length;u>0&&c>u&&(c=u);for(var i=0;i<c;++i){var y,l,f,v,b=t[i].replace(p,"%20"),d=b.indexOf(o);d>=0?(y=b.substr(0,d),l=b.substr(d+1)):(y=b,l=""),f=decodeURIComponent(y),v=decodeURIComponent(l),r(s,f)?e(s[f])?s[f].push(v):s[f]=[s[f],v]:s[f]=v}return s};var e=Array.isArray||function(r){return"[object Array]"===Object.prototype.toString.call(r)};
},{}],"bvhO":[function(require,module,exports) {
"use strict";var n=function(n){switch(typeof n){case"string":return n;case"boolean":return n?"true":"false";case"number":return isFinite(n)?n:"";default:return""}};module.exports=function(o,u,c,a){return u=u||"&",c=c||"=",null===o&&(o=void 0),"object"==typeof o?r(t(o),function(t){var a=encodeURIComponent(n(t))+c;return e(o[t])?r(o[t],function(e){return a+encodeURIComponent(n(e))}).join(u):a+encodeURIComponent(n(o[t]))}).join(u):a?encodeURIComponent(n(a))+c+encodeURIComponent(n(o)):""};var e=Array.isArray||function(n){return"[object Array]"===Object.prototype.toString.call(n)};function r(n,e){if(n.map)return n.map(e);for(var r=[],t=0;t<n.length;t++)r.push(e(n[t],t));return r}var t=Object.keys||function(n){var e=[];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.push(r);return e};
},{}],"+00f":[function(require,module,exports) {
"use strict";exports.decode=exports.parse=require("./decode"),exports.encode=exports.stringify=require("./encode");
},{"./decode":"J6GP","./encode":"bvhO"}],"Mej7":[function(require,module,exports) {
"use strict";var t=require("punycode"),s=require("./util");function h(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}exports.parse=b,exports.resolve=O,exports.resolveObject=d,exports.format=q,exports.Url=h;var e=/^([a-z0-9.+-]+:)/i,a=/:[0-9]*$/,r=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,o=["<",">",'"',"`"," ","\r","\n","\t"],n=["{","}","|","\\","^","`"].concat(o),i=["'"].concat(n),l=["%","/","?",";","#"].concat(i),p=["/","?","#"],c=255,u=/^[+a-z0-9A-Z_-]{0,63}$/,f=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,m={javascript:!0,"javascript:":!0},v={javascript:!0,"javascript:":!0},g={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},y=require("querystring");function b(t,e,a){if(t&&s.isObject(t)&&t instanceof h)return t;var r=new h;return r.parse(t,e,a),r}function q(t){return s.isString(t)&&(t=b(t)),t instanceof h?t.format():h.prototype.format.call(t)}function O(t,s){return b(t,!1,!0).resolve(s)}function d(t,s){return t?b(t,!1,!0).resolveObject(s):s}h.prototype.parse=function(h,a,o){if(!s.isString(h))throw new TypeError("Parameter 'url' must be a string, not "+typeof h);var n=h.indexOf("?"),b=-1!==n&&n<h.indexOf("#")?"?":"#",q=h.split(b);q[0]=q[0].replace(/\\/g,"/");var O=h=q.join(b);if(O=O.trim(),!o&&1===h.split("#").length){var d=r.exec(O);if(d)return this.path=O,this.href=O,this.pathname=d[1],d[2]?(this.search=d[2],this.query=a?y.parse(this.search.substr(1)):this.search.substr(1)):a&&(this.search="",this.query={}),this}var j=e.exec(O);if(j){var x=(j=j[0]).toLowerCase();this.protocol=x,O=O.substr(j.length)}if(o||j||O.match(/^\/\/[^@\/]+@[^@\/]+/)){var A="//"===O.substr(0,2);!A||j&&v[j]||(O=O.substr(2),this.slashes=!0)}if(!v[j]&&(A||j&&!g[j])){for(var C,I,w=-1,U=0;U<p.length;U++){-1!==(k=O.indexOf(p[U]))&&(-1===w||k<w)&&(w=k)}-1!==(I=-1===w?O.lastIndexOf("@"):O.lastIndexOf("@",w))&&(C=O.slice(0,I),O=O.slice(I+1),this.auth=decodeURIComponent(C)),w=-1;for(U=0;U<l.length;U++){var k;-1!==(k=O.indexOf(l[U]))&&(-1===w||k<w)&&(w=k)}-1===w&&(w=O.length),this.host=O.slice(0,w),O=O.slice(w),this.parseHost(),this.hostname=this.hostname||"";var N="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!N)for(var R=this.hostname.split(/\./),S=(U=0,R.length);U<S;U++){var $=R[U];if($&&!$.match(u)){for(var z="",H=0,L=$.length;H<L;H++)$.charCodeAt(H)>127?z+="x":z+=$[H];if(!z.match(u)){var Z=R.slice(0,U),_=R.slice(U+1),E=$.match(f);E&&(Z.push(E[1]),_.unshift(E[2])),_.length&&(O="/"+_.join(".")+O),this.hostname=Z.join(".");break}}}this.hostname.length>c?this.hostname="":this.hostname=this.hostname.toLowerCase(),N||(this.hostname=t.toASCII(this.hostname));var P=this.port?":"+this.port:"",T=this.hostname||"";this.host=T+P,this.href+=this.host,N&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==O[0]&&(O="/"+O))}if(!m[x])for(U=0,S=i.length;U<S;U++){var B=i[U];if(-1!==O.indexOf(B)){var D=encodeURIComponent(B);D===B&&(D=escape(B)),O=O.split(B).join(D)}}var F=O.indexOf("#");-1!==F&&(this.hash=O.substr(F),O=O.slice(0,F));var G=O.indexOf("?");if(-1!==G?(this.search=O.substr(G),this.query=O.substr(G+1),a&&(this.query=y.parse(this.query)),O=O.slice(0,G)):a&&(this.search="",this.query={}),O&&(this.pathname=O),g[x]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){P=this.pathname||"";var J=this.search||"";this.path=P+J}return this.href=this.format(),this},h.prototype.format=function(){var t=this.auth||"";t&&(t=(t=encodeURIComponent(t)).replace(/%3A/i,":"),t+="@");var h=this.protocol||"",e=this.pathname||"",a=this.hash||"",r=!1,o="";this.host?r=t+this.host:this.hostname&&(r=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(r+=":"+this.port)),this.query&&s.isObject(this.query)&&Object.keys(this.query).length&&(o=y.stringify(this.query));var n=this.search||o&&"?"+o||"";return h&&":"!==h.substr(-1)&&(h+=":"),this.slashes||(!h||g[h])&&!1!==r?(r="//"+(r||""),e&&"/"!==e.charAt(0)&&(e="/"+e)):r||(r=""),a&&"#"!==a.charAt(0)&&(a="#"+a),n&&"?"!==n.charAt(0)&&(n="?"+n),h+r+(e=e.replace(/[?#]/g,function(t){return encodeURIComponent(t)}))+(n=n.replace("#","%23"))+a},h.prototype.resolve=function(t){return this.resolveObject(b(t,!1,!0)).format()},h.prototype.resolveObject=function(t){if(s.isString(t)){var e=new h;e.parse(t,!1,!0),t=e}for(var a=new h,r=Object.keys(this),o=0;o<r.length;o++){var n=r[o];a[n]=this[n]}if(a.hash=t.hash,""===t.href)return a.href=a.format(),a;if(t.slashes&&!t.protocol){for(var i=Object.keys(t),l=0;l<i.length;l++){var p=i[l];"protocol"!==p&&(a[p]=t[p])}return g[a.protocol]&&a.hostname&&!a.pathname&&(a.path=a.pathname="/"),a.href=a.format(),a}if(t.protocol&&t.protocol!==a.protocol){if(!g[t.protocol]){for(var c=Object.keys(t),u=0;u<c.length;u++){var f=c[u];a[f]=t[f]}return a.href=a.format(),a}if(a.protocol=t.protocol,t.host||v[t.protocol])a.pathname=t.pathname;else{for(var m=(t.pathname||"").split("/");m.length&&!(t.host=m.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==m[0]&&m.unshift(""),m.length<2&&m.unshift(""),a.pathname=m.join("/")}if(a.search=t.search,a.query=t.query,a.host=t.host||"",a.auth=t.auth,a.hostname=t.hostname||t.host,a.port=t.port,a.pathname||a.search){var y=a.pathname||"",b=a.search||"";a.path=y+b}return a.slashes=a.slashes||t.slashes,a.href=a.format(),a}var q=a.pathname&&"/"===a.pathname.charAt(0),O=t.host||t.pathname&&"/"===t.pathname.charAt(0),d=O||q||a.host&&t.pathname,j=d,x=a.pathname&&a.pathname.split("/")||[],A=(m=t.pathname&&t.pathname.split("/")||[],a.protocol&&!g[a.protocol]);if(A&&(a.hostname="",a.port=null,a.host&&(""===x[0]?x[0]=a.host:x.unshift(a.host)),a.host="",t.protocol&&(t.hostname=null,t.port=null,t.host&&(""===m[0]?m[0]=t.host:m.unshift(t.host)),t.host=null),d=d&&(""===m[0]||""===x[0])),O)a.host=t.host||""===t.host?t.host:a.host,a.hostname=t.hostname||""===t.hostname?t.hostname:a.hostname,a.search=t.search,a.query=t.query,x=m;else if(m.length)x||(x=[]),x.pop(),x=x.concat(m),a.search=t.search,a.query=t.query;else if(!s.isNullOrUndefined(t.search)){if(A)a.hostname=a.host=x.shift(),(k=!!(a.host&&a.host.indexOf("@")>0)&&a.host.split("@"))&&(a.auth=k.shift(),a.host=a.hostname=k.shift());return a.search=t.search,a.query=t.query,s.isNull(a.pathname)&&s.isNull(a.search)||(a.path=(a.pathname?a.pathname:"")+(a.search?a.search:"")),a.href=a.format(),a}if(!x.length)return a.pathname=null,a.search?a.path="/"+a.search:a.path=null,a.href=a.format(),a;for(var C=x.slice(-1)[0],I=(a.host||t.host||x.length>1)&&("."===C||".."===C)||""===C,w=0,U=x.length;U>=0;U--)"."===(C=x[U])?x.splice(U,1):".."===C?(x.splice(U,1),w++):w&&(x.splice(U,1),w--);if(!d&&!j)for(;w--;w)x.unshift("..");!d||""===x[0]||x[0]&&"/"===x[0].charAt(0)||x.unshift(""),I&&"/"!==x.join("/").substr(-1)&&x.push("");var k,N=""===x[0]||x[0]&&"/"===x[0].charAt(0);A&&(a.hostname=a.host=N?"":x.length?x.shift():"",(k=!!(a.host&&a.host.indexOf("@")>0)&&a.host.split("@"))&&(a.auth=k.shift(),a.host=a.hostname=k.shift()));return(d=d||a.host&&x.length)&&!N&&x.unshift(""),x.length?a.pathname=x.join("/"):(a.pathname=null,a.path=null),s.isNull(a.pathname)&&s.isNull(a.search)||(a.path=(a.pathname?a.pathname:"")+(a.search?a.search:"")),a.auth=t.auth||a.auth,a.slashes=a.slashes||t.slashes,a.href=a.format(),a},h.prototype.parseHost=function(){var t=this.host,s=a.exec(t);s&&(":"!==(s=s[0])&&(this.port=s.substr(1)),t=t.substr(0,t.length-s.length)),t&&(this.hostname=t)};
},{"punycode":"FIMm","./util":"5YsI","querystring":"+00f"}],"f1vj":[function(require,module,exports) {
"use strict";exports.__esModule=!0,exports.default=n;var o=require("url"),e=t(o);function t(o){return o&&o.__esModule?o:{default:o}}var r=void 0;function n(o){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location;if(0===o.indexOf("data:"))return"";t=t||window.location,r||(r=document.createElement("a")),r.href=o;var n=!(o=e.default.parse(r.href)).port&&""===t.port||o.port===t.port;return o.hostname===t.hostname&&n&&o.protocol===t.protocol?"":"anonymous"}
},{"url":"Mej7"}],"gXRl":[function(require,module,exports) {
"use strict";var r=32;function n(r){var n=32;return(r&=-r)&&n--,65535&r&&(n-=16),16711935&r&&(n-=8),252645135&r&&(n-=4),858993459&r&&(n-=2),1431655765&r&&(n-=1),n}exports.INT_BITS=r,exports.INT_MAX=2147483647,exports.INT_MIN=-1<<r-1,exports.sign=function(r){return(r>0)-(r<0)},exports.abs=function(n){var t=n>>r-1;return(n^t)-t},exports.min=function(r,n){return n^(r^n)&-(r<n)},exports.max=function(r,n){return r^(r^n)&-(r<n)},exports.isPow2=function(r){return!(r&r-1||!r)},exports.log2=function(r){var n,t;return n=(r>65535)<<4,n|=t=((r>>>=n)>255)<<3,n|=t=((r>>>=t)>15)<<2,(n|=t=((r>>>=t)>3)<<1)|(r>>>=t)>>1},exports.log10=function(r){return r>=1e9?9:r>=1e8?8:r>=1e7?7:r>=1e6?6:r>=1e5?5:r>=1e4?4:r>=1e3?3:r>=100?2:r>=10?1:0},exports.popCount=function(r){return 16843009*((r=(858993459&(r-=r>>>1&1431655765))+(r>>>2&858993459))+(r>>>4)&252645135)>>>24},exports.countTrailingZeros=n,exports.nextPow2=function(r){return r+=0===r,--r,r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,(r|=r>>>16)+1},exports.prevPow2=function(r){return r|=r>>>1,r|=r>>>2,r|=r>>>4,r|=r>>>8,(r|=r>>>16)-(r>>>1)},exports.parity=function(r){return r^=r>>>16,r^=r>>>8,r^=r>>>4,27030>>>(r&=15)&1};var t=new Array(256);!function(r){for(var n=0;n<256;++n){var t=n,e=n,o=7;for(t>>>=1;t;t>>>=1)e<<=1,e|=1&t,--o;r[n]=e<<o&255}}(t),exports.reverse=function(r){return t[255&r]<<24|t[r>>>8&255]<<16|t[r>>>16&255]<<8|t[r>>>24&255]},exports.interleave2=function(r,n){return(r=1431655765&((r=858993459&((r=252645135&((r=16711935&((r&=65535)|r<<8))|r<<4))|r<<2))|r<<1))|(n=1431655765&((n=858993459&((n=252645135&((n=16711935&((n&=65535)|n<<8))|n<<4))|n<<2))|n<<1))<<1},exports.deinterleave2=function(r,n){return(r=65535&((r=16711935&((r=252645135&((r=858993459&((r=r>>>n&1431655765)|r>>>1))|r>>>2))|r>>>4))|r>>>16))<<16>>16},exports.interleave3=function(r,n,t){return r=1227133513&((r=3272356035&((r=251719695&((r=4278190335&((r&=1023)|r<<16))|r<<8))|r<<4))|r<<2),(r|=(n=1227133513&((n=3272356035&((n=251719695&((n=4278190335&((n&=1023)|n<<16))|n<<8))|n<<4))|n<<2))<<1)|(t=1227133513&((t=3272356035&((t=251719695&((t=4278190335&((t&=1023)|t<<16))|t<<8))|t<<4))|t<<2))<<2},exports.deinterleave3=function(r,n){return(r=1023&((r=4278190335&((r=251719695&((r=3272356035&((r=r>>>n&1227133513)|r>>>2))|r>>>4))|r>>>8))|r>>>16))<<22>>22},exports.nextCombination=function(r){var t=r|r-1;return t+1|(~t&-~t)-1>>>n(r)+1};
},{}],"ce6K":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=require("../utils"),t=require("../settings"),i=h(t),r=require("eventemitter3"),o=h(r),s=require("../utils/determineCrossOrigin"),a=h(s),n=require("bit-twiddle"),u=h(n);function h(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function c(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=function(t){function r(o,s,a){d(this,r);var n=l(this,t.call(this));return n.uid=(0,e.uid)(),n.touched=0,n.resolution=a||i.default.RESOLUTION,n.width=100,n.height=100,n.realWidth=100,n.realHeight=100,n.scaleMode=void 0!==s?s:i.default.SCALE_MODE,n.hasLoaded=!1,n.isLoading=!1,n.source=null,n.origSource=null,n.imageType=null,n.sourceScale=1,n.premultipliedAlpha=!0,n.imageUrl=null,n.isPowerOfTwo=!1,n.mipmap=i.default.MIPMAP_TEXTURES,n.wrapMode=i.default.WRAP_MODE,n._glTextures={},n._enabled=0,n._virtalBoundId=-1,n._destroyed=!1,n.textureCacheIds=[],o&&n.loadSource(o),n}return c(r,t),r.prototype.update=function(){"svg"!==this.imageType&&(this.realWidth=this.source.naturalWidth||this.source.videoWidth||this.source.width,this.realHeight=this.source.naturalHeight||this.source.videoHeight||this.source.height,this._updateDimensions()),this.emit("update",this)},r.prototype._updateDimensions=function(){this.width=this.realWidth/this.resolution,this.height=this.realHeight/this.resolution,this.isPowerOfTwo=u.default.isPow2(this.realWidth)&&u.default.isPow2(this.realHeight)},r.prototype.loadSource=function(e){var t=this.isLoading;this.hasLoaded=!1,this.isLoading=!1,t&&this.source&&(this.source.onload=null,this.source.onerror=null);var i=!this.source;if(this.source=e,(e.src&&e.complete||e.getContext)&&e.width&&e.height)this._updateImageType(),"svg"===this.imageType?this._loadSvgSource():this._sourceLoaded(),i&&this.emit("loaded",this);else if(!e.getContext){this.isLoading=!0;var r=this;if(e.onload=function(){r._updateImageType(),e.onload=null,e.onerror=null,r.isLoading&&(r.isLoading=!1,r._sourceLoaded(),"svg"!==r.imageType?r.emit("loaded",r):r._loadSvgSource())},e.onerror=function(){e.onload=null,e.onerror=null,r.isLoading&&(r.isLoading=!1,r.emit("error",r))},e.complete&&e.src){if(e.onload=null,e.onerror=null,"svg"===r.imageType)return void r._loadSvgSource();this.isLoading=!1,e.width&&e.height?(this._sourceLoaded(),t&&this.emit("loaded",this)):t&&this.emit("error",this)}}},r.prototype._updateImageType=function(){if(this.imageUrl){var t=(0,e.decomposeDataUri)(this.imageUrl),i=void 0;if(t&&"image"===t.mediaType){var r=t.subType.split("+")[0];if(!(i=(0,e.getUrlFileExtension)("."+r)))throw new Error("Invalid image type in data URI.")}else(i=(0,e.getUrlFileExtension)(this.imageUrl))||(i="png");this.imageType=i}},r.prototype._loadSvgSource=function(){if("svg"===this.imageType){var t=(0,e.decomposeDataUri)(this.imageUrl);t?this._loadSvgSourceUsingDataUri(t):this._loadSvgSourceUsingXhr()}},r.prototype._loadSvgSourceUsingDataUri=function(e){var t=void 0;if("base64"===e.encoding){if(!atob)throw new Error("Your browser doesn't support base64 conversions.");t=atob(e.data)}else t=e.data;this._loadSvgSourceUsingString(t)},r.prototype._loadSvgSourceUsingXhr=function(){var e=this,t=new XMLHttpRequest;t.onload=function(){if(t.readyState!==t.DONE||200!==t.status)throw new Error("Failed to load SVG using XHR.");e._loadSvgSourceUsingString(t.response)},t.onerror=function(){return e.emit("error",e)},t.open("GET",this.imageUrl,!0),t.send()},r.prototype._loadSvgSourceUsingString=function(t){var i=(0,e.getSvgSize)(t),o=i.width,s=i.height;if(!o||!s)throw new Error("The SVG image must have width and height defined (in pixels), canvas API needs them.");this.realWidth=Math.round(o*this.sourceScale),this.realHeight=Math.round(s*this.sourceScale),this._updateDimensions();var a=document.createElement("canvas");a.width=this.realWidth,a.height=this.realHeight,a._pixiId="canvas_"+(0,e.uid)(),a.getContext("2d").drawImage(this.source,0,0,o,s,0,0,this.realWidth,this.realHeight),this.origSource=this.source,this.source=a,r.addToCache(this,a._pixiId),this.isLoading=!1,this._sourceLoaded(),this.emit("loaded",this)},r.prototype._sourceLoaded=function(){this.hasLoaded=!0,this.update()},r.prototype.destroy=function(){this.imageUrl&&(delete e.TextureCache[this.imageUrl],this.imageUrl=null,navigator.isCocoonJS||(this.source.src="")),this.source=null,this.dispose(),r.removeFromCache(this),this.textureCacheIds=null,this._destroyed=!0},r.prototype.dispose=function(){this.emit("dispose",this)},r.prototype.updateSourceImage=function(e){this.source.src=e,this.loadSource(this.source)},r.fromImage=function(t,i,o,s){var n=e.BaseTextureCache[t];if(!n){var u=new Image;void 0===i&&0!==t.indexOf("data:")?u.crossOrigin=(0,a.default)(t):i&&(u.crossOrigin="string"==typeof i?i:"anonymous"),(n=new r(u,o)).imageUrl=t,s&&(n.sourceScale=s),n.resolution=(0,e.getResolutionOfUrl)(t),u.src=t,r.addToCache(n,t)}return n},r.fromCanvas=function(t,i){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"canvas";t._pixiId||(t._pixiId=o+"_"+(0,e.uid)());var s=e.BaseTextureCache[t._pixiId];return s||(s=new r(t,i),r.addToCache(s,t._pixiId)),s},r.from=function(t,i,o){if("string"==typeof t)return r.fromImage(t,void 0,i,o);if(t instanceof HTMLImageElement){var s=t.src,a=e.BaseTextureCache[s];return a||((a=new r(t,i)).imageUrl=s,o&&(a.sourceScale=o),a.resolution=(0,e.getResolutionOfUrl)(s),r.addToCache(a,s)),a}return t instanceof HTMLCanvasElement?r.fromCanvas(t,i):t},r.addToCache=function(t,i){i&&(-1===t.textureCacheIds.indexOf(i)&&t.textureCacheIds.push(i),e.BaseTextureCache[i]&&console.warn("BaseTexture added to the cache with an id ["+i+"] that already had an entry"),e.BaseTextureCache[i]=t)},r.removeFromCache=function(t){if("string"==typeof t){var i=e.BaseTextureCache[t];if(i){var r=i.textureCacheIds.indexOf(t);return r>-1&&i.textureCacheIds.splice(r,1),delete e.BaseTextureCache[t],i}}else if(t&&t.textureCacheIds){for(var o=0;o<t.textureCacheIds.length;++o)delete e.BaseTextureCache[t.textureCacheIds[o]];return t.textureCacheIds.length=0,t}return null},r}(o.default);exports.default=g;
},{"../utils":"dDI1","../settings":"tMVT","eventemitter3":"2JJl","../utils/determineCrossOrigin":"f1vj","bit-twiddle":"gXRl"}],"3ilc":[function(require,module,exports) {
"use strict";function t(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}exports.__esModule=!0;var n=function(){function n(i){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t(this,n),this.fn=i,this.context=e,this.priority=s,this.once=o,this.next=null,this.previous=null,this._destroyed=!1}return n.prototype.match=function(t,n){return n=n||null,this.fn===t&&this.context===n},n.prototype.emit=function(t){this.fn&&(this.context?this.fn.call(this.context,t):this.fn(t));var n=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),n},n.prototype.connect=function(t){this.previous=t,t.next&&(t.next.previous=this),this.next=t.next,t.next=this},n.prototype.destroy=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._destroyed=!0,this.fn=null,this.context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);var n=this.previous;return this.next=t?null:n,this.previous=null,n},n}();exports.default=n;
},{}],"nuOJ":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=function(){function t(t,e){for(var i=0;i<e.length;i++){var s=e[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(t,s.key,s)}}return function(e,i,s){return i&&t(e.prototype,i),s&&t(e,s),e}}(),e=require("../settings"),i=a(e),s=require("../const"),n=require("./TickerListener"),r=a(n);function a(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var d=function(){function e(){var t=this;o(this,e),this._head=new r.default(null,null,1/0),this._requestId=null,this._maxElapsedMS=100,this.autoStart=!1,this.deltaTime=1,this.elapsedMS=1/i.default.TARGET_FPMS,this.lastTime=-1,this.speed=1,this.started=!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 e.prototype._requestIfNeeded=function(){null===this._requestId&&this._head.next&&(this.lastTime=performance.now(),this._requestId=requestAnimationFrame(this._tick))},e.prototype._cancelIfNeeded=function(){null!==this._requestId&&(cancelAnimationFrame(this._requestId),this._requestId=null)},e.prototype._startIfPossible=function(){this.started?this._requestIfNeeded():this.autoStart&&this.start()},e.prototype.add=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.UPDATE_PRIORITY.NORMAL;return this._addListener(new r.default(t,e,i))},e.prototype.addOnce=function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.UPDATE_PRIORITY.NORMAL;return this._addListener(new r.default(t,e,i,!0))},e.prototype._addListener=function(t){var e=this._head.next,i=this._head;if(e){for(;e;){if(t.priority>e.priority){t.connect(i);break}i=e,e=e.next}t.previous||t.connect(i)}else t.connect(i);return this._startIfPossible(),this},e.prototype.remove=function(t,e){for(var i=this._head.next;i;)i=i.match(t,e)?i.destroy():i.next;return this._head.next||this._cancelIfNeeded(),this},e.prototype.start=function(){this.started||(this.started=!0,this._requestIfNeeded())},e.prototype.stop=function(){this.started&&(this.started=!1,this._cancelIfNeeded())},e.prototype.destroy=function(){this.stop();for(var t=this._head.next;t;)t=t.destroy(!0);this._head.destroy(),this._head=null},e.prototype.update=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:performance.now(),e=void 0;if(t>this.lastTime){(e=this.elapsedMS=t-this.lastTime)>this._maxElapsedMS&&(e=this._maxElapsedMS),this.deltaTime=e*i.default.TARGET_FPMS*this.speed;for(var s=this._head,n=s.next;n;)n=n.emit(this.deltaTime);s.next||this._cancelIfNeeded()}else this.deltaTime=this.elapsedMS=0;this.lastTime=t},t(e,[{key:"FPS",get:function(){return 1e3/this.elapsedMS}},{key:"minFPS",get:function(){return 1e3/this._maxElapsedMS},set:function(t){var e=Math.min(Math.max(0,t)/1e3,i.default.TARGET_FPMS);this._maxElapsedMS=1/e}}]),e}();exports.default=d;
},{"../settings":"tMVT","../const":"YEQi","./TickerListener":"3ilc"}],"5u59":[function(require,module,exports) {
"use strict";exports.__esModule=!0,exports.Ticker=exports.shared=void 0;var e=require("./Ticker"),r=t(e);function t(e){return e&&e.__esModule?e:{default:e}}var o=new r.default;o.autoStart=!0,o.destroy=function(){},exports.shared=o,exports.Ticker=r.default;
},{"./Ticker":"nuOJ"}],"U1Rh":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=function(){function t(t,e){for(var i=0;i<e.length;i++){var o=e[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(e,i,o){return i&&t(e.prototype,i),o&&t(e,o),e}}(),e=require("./BaseTexture"),i=n(e),o=require("../utils"),r=require("../ticker"),a=require("../const");function n(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function u(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function d(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var h=function(e){function n(t,i){if(s(this,n),!t)throw new Error("No video source element specified.");(t.readyState===t.HAVE_ENOUGH_DATA||t.readyState===t.HAVE_FUTURE_DATA)&&t.width&&t.height&&(t.complete=!0);var o=u(this,e.call(this,t,i));return o.width=t.videoWidth,o.height=t.videoHeight,o._autoUpdate=!0,o._isAutoUpdating=!1,o.autoPlay=!0,o.update=o.update.bind(o),o._onCanPlay=o._onCanPlay.bind(o),t.addEventListener("play",o._onPlayStart.bind(o)),t.addEventListener("pause",o._onPlayStop.bind(o)),o.hasLoaded=!1,o.__loaded=!1,o._isSourceReady()?o._onCanPlay():(t.addEventListener("canplay",o._onCanPlay),t.addEventListener("canplaythrough",o._onCanPlay)),o}return d(n,e),n.prototype._isSourcePlaying=function(){var t=this.source;return t.currentTime>0&&!1===t.paused&&!1===t.ended&&t.readyState>2},n.prototype._isSourceReady=function(){return 3===this.source.readyState||4===this.source.readyState},n.prototype._onPlayStart=function(){this.hasLoaded||this._onCanPlay(),!this._isAutoUpdating&&this.autoUpdate&&(r.shared.add(this.update,this,a.UPDATE_PRIORITY.HIGH),this._isAutoUpdating=!0)},n.prototype._onPlayStop=function(){this._isAutoUpdating&&(r.shared.remove(this.update,this),this._isAutoUpdating=!1)},n.prototype._onCanPlay=function(){this.hasLoaded=!0,this.source&&(this.source.removeEventListener("canplay",this._onCanPlay),this.source.removeEventListener("canplaythrough",this._onCanPlay),this.width=this.source.videoWidth,this.height=this.source.videoHeight,this.__loaded||(this.__loaded=!0,this.emit("loaded",this)),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&this.source.play())},n.prototype.destroy=function(){this._isAutoUpdating&&r.shared.remove(this.update,this),this.source&&this.source._pixiId&&(i.default.removeFromCache(this.source._pixiId),delete this.source._pixiId),e.prototype.destroy.call(this)},n.fromVideo=function(t,e){t._pixiId||(t._pixiId="video_"+(0,o.uid)());var r=o.BaseTextureCache[t._pixiId];return r||(r=new n(t,e),i.default.addToCache(r,t._pixiId)),r},n.fromUrl=function(t,e){var i=document.createElement("video");if(i.setAttribute("webkit-playsinline",""),i.setAttribute("playsinline",""),Array.isArray(t))for(var o=0;o<t.length;++o)i.appendChild(p(t[o].src||t[o],t[o].mime));else i.appendChild(p(t.src||t,t.mime));return i.load(),n.fromVideo(i,e)},t(n,[{key:"autoUpdate",get:function(){return this._autoUpdate},set:function(t){t!==this._autoUpdate&&(this._autoUpdate=t,!this._autoUpdate&&this._isAutoUpdating?(r.shared.remove(this.update,this),this._isAutoUpdating=!1):this._autoUpdate&&!this._isAutoUpdating&&(r.shared.add(this.update,this,a.UPDATE_PRIORITY.HIGH),this._isAutoUpdating=!0))}}]),n}(i.default);function p(t,e){e||(e="video/"+t.substr(t.lastIndexOf(".")+1));var i=document.createElement("source");return i.src=t,i.type=e,i}exports.default=h,h.fromUrls=h.fromUrl;
},{"./BaseTexture":"ce6K","../utils":"dDI1","../ticker":"5u59","../const":"YEQi"}],"sUm+":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=require("../math/GroupD8"),i=s(t);function s(t){return t&&t.__esModule?t:{default:t}}function h(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}var u=function(){function t(){h(this,t),this.x0=0,this.y0=0,this.x1=1,this.y1=0,this.x2=1,this.y2=1,this.x3=0,this.y3=1,this.uvsUint32=new Uint32Array(4)}return t.prototype.set=function(t,s,h){var u=s.width,e=s.height;if(h){var a=t.width/2/u,d=t.height/2/e,n=t.x/u+a,f=t.y/e+d;h=i.default.add(h,i.default.NW),this.x0=n+a*i.default.uX(h),this.y0=f+d*i.default.uY(h),h=i.default.add(h,2),this.x1=n+a*i.default.uX(h),this.y1=f+d*i.default.uY(h),h=i.default.add(h,2),this.x2=n+a*i.default.uX(h),this.y2=f+d*i.default.uY(h),h=i.default.add(h,2),this.x3=n+a*i.default.uX(h),this.y3=f+d*i.default.uY(h)}else this.x0=t.x/u,this.y0=t.y/e,this.x1=(t.x+t.width)/u,this.y1=t.y/e,this.x2=(t.x+t.width)/u,this.y2=(t.y+t.height)/e,this.x3=t.x/u,this.y3=(t.y+t.height)/e;this.uvsUint32[0]=(65535*this.y0&65535)<<16|65535*this.x0&65535,this.uvsUint32[1]=(65535*this.y1&65535)<<16|65535*this.x1&65535,this.uvsUint32[2]=(65535*this.y2&65535)<<16|65535*this.x2&65535,this.uvsUint32[3]=(65535*this.y3&65535)<<16|65535*this.x3&65535},t}();exports.default=u;
},{"../math/GroupD8":"PGIZ"}],"xUki":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=function(){function e(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(t,r,a){return r&&e(t.prototype,r),a&&e(t,a),t}}(),t=require("./BaseTexture"),r=l(t),a=require("./VideoBaseTexture"),n=l(a),i=require("./TextureUvs"),o=l(i),u=require("eventemitter3"),s=l(u),h=require("../math"),f=require("../utils"),d=require("../settings"),c=l(d);function l(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function T(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var p=function(t){function a(e,r,n,i,o){m(this,a);var u=x(this,t.call(this));if(u.noFrame=!1,r||(u.noFrame=!0,r=new h.Rectangle(0,0,1,1)),e instanceof a&&(e=e.baseTexture),u.baseTexture=e,u._frame=r,u.trim=i,u.valid=!1,u.requiresUpdate=!1,u._uvs=null,u.orig=n||r,u._rotate=Number(o||0),!0===o)u._rotate=2;else if(u._rotate%2!=0)throw new Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");return e.hasLoaded?(u.noFrame&&(r=new h.Rectangle(0,0,e.width,e.height),e.on("update",u.onBaseTextureUpdated,u)),u.frame=r):e.once("loaded",u.onBaseTextureLoaded,u),u._updateID=0,u.transform=null,u.textureCacheIds=[],u}return T(a,t),a.prototype.update=function(){this.baseTexture.update()},a.prototype.onBaseTextureLoaded=function(e){this._updateID++,this.noFrame?this.frame=new h.Rectangle(0,0,e.width,e.height):this.frame=this._frame,this.baseTexture.on("update",this.onBaseTextureUpdated,this),this.emit("update",this)},a.prototype.onBaseTextureUpdated=function(e){this._updateID++,this._frame.width=e.width,this._frame.height=e.height,this.emit("update",this)},a.prototype.destroy=function(e){this.baseTexture&&(e&&(f.TextureCache[this.baseTexture.imageUrl]&&a.removeFromCache(this.baseTexture.imageUrl),this.baseTexture.destroy()),this.baseTexture.off("update",this.onBaseTextureUpdated,this),this.baseTexture.off("loaded",this.onBaseTextureLoaded,this),this.baseTexture=null),this._frame=null,this._uvs=null,this.trim=null,this.orig=null,this.valid=!1,a.removeFromCache(this),this.textureCacheIds=null},a.prototype.clone=function(){return new a(this.baseTexture,this.frame,this.orig,this.trim,this.rotate)},a.prototype._updateUvs=function(){this._uvs||(this._uvs=new o.default),this._uvs.set(this._frame,this.baseTexture,this.rotate),this._updateID++},a.fromImage=function(e,t,n,i){var o=f.TextureCache[e];return o||(o=new a(r.default.fromImage(e,t,n,i)),a.addToCache(o,e)),o},a.fromFrame=function(e){var t=f.TextureCache[e];if(!t)throw new Error('The frameId "'+e+'" does not exist in the texture cache');return t},a.fromCanvas=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"canvas";return new a(r.default.fromCanvas(e,t,n))},a.fromVideo=function(e,t){return"string"==typeof e?a.fromVideoUrl(e,t):new a(n.default.fromVideo(e,t))},a.fromVideoUrl=function(e,t){return new a(n.default.fromUrl(e,t))},a.from=function(e){if("string"==typeof e){var t=f.TextureCache[e];return t||(null!==e.match(/\.(mp4|webm|ogg|h264|avi|mov)$/)?a.fromVideoUrl(e):a.fromImage(e))}return e instanceof HTMLImageElement?new a(r.default.from(e)):e instanceof HTMLCanvasElement?a.fromCanvas(e,c.default.SCALE_MODE,"HTMLCanvasElement"):e instanceof HTMLVideoElement?a.fromVideo(e):e instanceof r.default?new a(e):e},a.fromLoader=function(e,t,n){var i=new r.default(e,void 0,(0,f.getResolutionOfUrl)(t)),o=new a(i);return i.imageUrl=t,n||(n=t),r.default.addToCache(o.baseTexture,n),a.addToCache(o,n),n!==t&&(r.default.addToCache(o.baseTexture,t),a.addToCache(o,t)),o},a.addToCache=function(e,t){t&&(-1===e.textureCacheIds.indexOf(t)&&e.textureCacheIds.push(t),f.TextureCache[t]&&console.warn("Texture added to the cache with an id ["+t+"] that already had an entry"),f.TextureCache[t]=e)},a.removeFromCache=function(e){if("string"==typeof e){var t=f.TextureCache[e];if(t){var r=t.textureCacheIds.indexOf(e);return r>-1&&t.textureCacheIds.splice(r,1),delete f.TextureCache[e],t}}else if(e&&e.textureCacheIds){for(var a=0;a<e.textureCacheIds.length;++a)f.TextureCache[e.textureCacheIds[a]]===e&&delete f.TextureCache[e.textureCacheIds[a]];return e.textureCacheIds.length=0,e}return null},e(a,[{key:"frame",get:function(){return this._frame},set:function(e){this._frame=e,this.noFrame=!1;var t=e.x,r=e.y,a=e.width,n=e.height,i=t+a>this.baseTexture.width,o=r+n>this.baseTexture.height;if(i||o){var u=i&&o?"and":"or",s="X: "+t+" + "+a+" = "+(t+a)+" > "+this.baseTexture.width,h="Y: "+r+" + "+n+" = "+(r+n)+" > "+this.baseTexture.height;throw new Error("Texture Error: frame does not fit inside the base Texture dimensions: "+s+" "+u+" "+h)}this.valid=a&&n&&this.baseTexture.hasLoaded,this.trim||this.rotate||(this.orig=e),this.valid&&this._updateUvs()}},{key:"rotate",get:function(){return this._rotate},set:function(e){this._rotate=e,this.valid&&this._updateUvs()}},{key:"width",get:function(){return this.orig.width}},{key:"height",get:function(){return this.orig.height}}]),a}(s.default);function v(){var e=document.createElement("canvas");e.width=10,e.height=10;var t=e.getContext("2d");return t.fillStyle="white",t.fillRect(0,0,10,10),new p(new r.default(e))}function w(e){e.destroy=function(){},e.on=function(){},e.once=function(){},e.emit=function(){}}exports.default=p,p.EMPTY=new p(new r.default),w(p.EMPTY),w(p.EMPTY.baseTexture),p.WHITE=v(),w(p.WHITE),w(p.WHITE.baseTexture);
},{"./BaseTexture":"ce6K","./VideoBaseTexture":"U1Rh","./TextureUvs":"sUm+","eventemitter3":"2JJl","../math":"e3iB","../utils":"dDI1","../settings":"tMVT"}],"oWLW":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=function(){function t(t,e){for(var r=0;r<e.length;r++){var i=e[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,r,i){return r&&t(e.prototype,r),i&&t(e,i),e}}(),e=require("../math"),r=require("../utils"),i=require("../const"),n=require("../textures/Texture"),s=a(n),h=require("../display/Container"),o=a(h);function a(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function _(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var l=new e.Point,d=function(n){function h(t){u(this,h);var r=c(this,n.call(this));return r._anchor=new e.ObservablePoint(r._onAnchorUpdate,r),r._texture=null,r._width=0,r._height=0,r._tint=null,r._tintRGB=null,r.tint=16777215,r.blendMode=i.BLEND_MODES.NORMAL,r.shader=null,r.cachedTint=16777215,r.texture=t||s.default.EMPTY,r.vertexData=new Float32Array(8),r.vertexTrimmedData=null,r._transformID=-1,r._textureID=-1,r._transformTrimmedID=-1,r._textureTrimmedID=-1,r.pluginName="sprite",r}return _(h,n),h.prototype._onTextureUpdate=function(){this._textureID=-1,this._textureTrimmedID=-1,this.cachedTint=16777215,this._width&&(this.scale.x=(0,r.sign)(this.scale.x)*this._width/this._texture.orig.width),this._height&&(this.scale.y=(0,r.sign)(this.scale.y)*this._height/this._texture.orig.height)},h.prototype._onAnchorUpdate=function(){this._transformID=-1,this._transformTrimmedID=-1},h.prototype.calculateVertices=function(){if(this._transformID!==this.transform._worldID||this._textureID!==this._texture._updateID){this._transformID=this.transform._worldID,this._textureID=this._texture._updateID;var t=this._texture,e=this.transform.worldTransform,r=e.a,i=e.b,n=e.c,s=e.d,h=e.tx,o=e.ty,a=this.vertexData,u=t.trim,c=t.orig,_=this._anchor,l=0,d=0,f=0,x=0;u?(l=(d=u.x-_._x*c.width)+u.width,f=(x=u.y-_._y*c.height)+u.height):(l=(d=-_._x*c.width)+c.width,f=(x=-_._y*c.height)+c.height),a[0]=r*d+n*x+h,a[1]=s*x+i*d+o,a[2]=r*l+n*x+h,a[3]=s*x+i*l+o,a[4]=r*l+n*f+h,a[5]=s*f+i*l+o,a[6]=r*d+n*f+h,a[7]=s*f+i*d+o}},h.prototype.calculateTrimmedVertices=function(){if(this.vertexTrimmedData){if(this._transformTrimmedID===this.transform._worldID&&this._textureTrimmedID===this._texture._updateID)return}else this.vertexTrimmedData=new Float32Array(8);this._transformTrimmedID=this.transform._worldID,this._textureTrimmedID=this._texture._updateID;var t=this._texture,e=this.vertexTrimmedData,r=t.orig,i=this._anchor,n=this.transform.worldTransform,s=n.a,h=n.b,o=n.c,a=n.d,u=n.tx,c=n.ty,_=-i._x*r.width,l=_+r.width,d=-i._y*r.height,f=d+r.height;e[0]=s*_+o*d+u,e[1]=a*d+h*_+c,e[2]=s*l+o*d+u,e[3]=a*d+h*l+c,e[4]=s*l+o*f+u,e[5]=a*f+h*l+c,e[6]=s*_+o*f+u,e[7]=a*f+h*_+c},h.prototype._renderWebGL=function(t){this.calculateVertices(),t.setObjectRenderer(t.plugins[this.pluginName]),t.plugins[this.pluginName].render(this)},h.prototype._renderCanvas=function(t){t.plugins[this.pluginName].render(this)},h.prototype._calculateBounds=function(){var t=this._texture.trim,e=this._texture.orig;!t||t.width===e.width&&t.height===e.height?(this.calculateVertices(),this._bounds.addQuad(this.vertexData)):(this.calculateTrimmedVertices(),this._bounds.addQuad(this.vertexTrimmedData))},h.prototype.getLocalBounds=function(t){return 0===this.children.length?(this._bounds.minX=this._texture.orig.width*-this._anchor._x,this._bounds.minY=this._texture.orig.height*-this._anchor._y,this._bounds.maxX=this._texture.orig.width*(1-this._anchor._x),this._bounds.maxY=this._texture.orig.height*(1-this._anchor._y),t||(this._localBoundsRect||(this._localBoundsRect=new e.Rectangle),t=this._localBoundsRect),this._bounds.getRectangle(t)):n.prototype.getLocalBounds.call(this,t)},h.prototype.containsPoint=function(t){this.worldTransform.applyInverse(t,l);var e=this._texture.orig.width,r=this._texture.orig.height,i=-e*this.anchor.x,n=0;return l.x>=i&&l.x<i+e&&(n=-r*this.anchor.y,l.y>=n&&l.y<n+r)},h.prototype.destroy=function(t){if(n.prototype.destroy.call(this,t),this._anchor=null,"boolean"==typeof t?t:t&&t.texture){var e="boolean"==typeof t?t:t&&t.baseTexture;this._texture.destroy(!!e)}this._texture=null,this.shader=null},h.from=function(t){return new h(s.default.from(t))},h.fromFrame=function(t){var e=r.TextureCache[t];if(!e)throw new Error('The frameId "'+t+'" does not exist in the texture cache');return new h(e)},h.fromImage=function(t,e,r){return new h(s.default.fromImage(t,e,r))},t(h,[{key:"width",get:function(){return Math.abs(this.scale.x)*this._texture.orig.width},set:function(t){var e=(0,r.sign)(this.scale.x)||1;this.scale.x=e*t/this._texture.orig.width,this._width=t}},{key:"height",get:function(){return Math.abs(this.scale.y)*this._texture.orig.height},set:function(t){var e=(0,r.sign)(this.scale.y)||1;this.scale.y=e*t/this._texture.orig.height,this._height=t}},{key:"anchor",get:function(){return this._anchor},set:function(t){this._anchor.copy(t)}},{key:"tint",get:function(){return this._tint},set:function(t){this._tint=t,this._tintRGB=(t>>16)+(65280&t)+((255&t)<<16)}},{key:"texture",get:function(){return this._texture},set:function(t){this._texture!==t&&(this._texture=t,this.cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,t&&(t.baseTexture.hasLoaded?this._onTextureUpdate():t.once("update",this._onTextureUpdate,this)))}}]),h}(o.default);exports.default=d;
},{"../math":"e3iB","../utils":"dDI1","../const":"YEQi","../textures/Texture":"xUki","../display/Container":"OzBO"}],"8ODW":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=require("./BaseTexture"),e=o(t),i=require("../settings"),r=o(i);function o(t){return t&&t.__esModule?t:{default:t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var l=function(t){function e(){var i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,h=arguments[2],l=arguments[3];n(this,e);var u=s(this,t.call(this,null,h));return u.resolution=l||r.default.RESOLUTION,u.width=i,u.height=o,u.realWidth=u.width*u.resolution,u.realHeight=u.height*u.resolution,u.scaleMode=void 0!==h?h:r.default.SCALE_MODE,u.hasLoaded=!0,u._glRenderTargets={},u._canvasRenderTarget=null,u.valid=!1,u}return h(e,t),e.prototype.resize=function(t,e){t===this.width&&e===this.height||(this.valid=t>0&&e>0,this.width=t,this.height=e,this.realWidth=this.width*this.resolution,this.realHeight=this.height*this.resolution,this.valid&&this.emit("update",this))},e.prototype.destroy=function(){t.prototype.destroy.call(this,!0),this.renderer=null},e}(e.default);exports.default=l;
},{"./BaseTexture":"ce6K","../settings":"tMVT"}],"Jb0W":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=require("./BaseRenderTexture"),t=o(e),r=require("./Texture"),n=o(r);function o(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(e){function r(n,o){i(this,r);var a=null;if(!(n instanceof t.default)){var s=arguments[1],f=arguments[2],c=arguments[3],l=arguments[4];console.warn("Please use RenderTexture.create("+s+", "+f+") instead of the ctor directly."),a=arguments[0],o=null,n=new t.default(s,f,c,l)}var h=u(this,e.call(this,n,o));return h.legacyRenderer=a,h.valid=!0,h._updateUvs(),h}return a(r,e),r.prototype.resize=function(e,t,r){this.valid=e>0&&t>0,this._frame.width=this.orig.width=e,this._frame.height=this.orig.height=t,r||this.baseTexture.resize(e,t),this._updateUvs()},r.create=function(e,n,o,i){return new r(new t.default(e,n,o,i))},r}(n.default);exports.default=s;
},{"./BaseRenderTexture":"8ODW","./Texture":"xUki"}],"Hz2Z":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),t=require("../utils"),r=require("../math"),n=require("../const"),i=require("../settings"),o=d(i),s=require("../display/Container"),u=d(s),a=require("../textures/RenderTexture"),l=d(a),h=require("eventemitter3"),c=d(h);function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var b=new r.Matrix,w=function(i){function s(e,a,l,h){f(this,s);var c=p(this,i.call(this));return(0,t.sayHello)(e),"number"==typeof a&&(a=Object.assign({width:a,height:l||o.default.RENDER_OPTIONS.height},h)),a=Object.assign({},o.default.RENDER_OPTIONS,a),c.options=a,c.type=n.RENDERER_TYPE.UNKNOWN,c.screen=new r.Rectangle(0,0,a.width,a.height),c.view=a.view||document.createElement("canvas"),c.resolution=a.resolution||o.default.RESOLUTION,c.transparent=a.transparent,c.autoResize=a.autoResize||!1,c.blendModes=null,c.preserveDrawingBuffer=a.preserveDrawingBuffer,c.clearBeforeRender=a.clearBeforeRender,c.roundPixels=a.roundPixels,c._backgroundColor=0,c._backgroundColorRgba=[0,0,0,0],c._backgroundColorString="#000000",c.backgroundColor=a.backgroundColor||c._backgroundColor,c._tempDisplayObjectParent=new u.default,c._lastObjectRendered=c._tempDisplayObjectParent,c}return g(s,i),s.prototype.resize=function(e,t){this.screen.width=e,this.screen.height=t,this.view.width=e*this.resolution,this.view.height=t*this.resolution,this.autoResize&&(this.view.style.width=e+"px",this.view.style.height=t+"px")},s.prototype.generateTexture=function(e,t,r){var n=e.getLocalBounds(),i=l.default.create(0|n.width,0|n.height,t,r);return b.tx=-n.x,b.ty=-n.y,this.render(e,i,!1,b,!0),i},s.prototype.destroy=function(e){e&&this.view.parentNode&&this.view.parentNode.removeChild(this.view),this.type=n.RENDERER_TYPE.UNKNOWN,this.view=null,this.screen=null,this.resolution=0,this.transparent=!1,this.autoResize=!1,this.blendModes=null,this.options=null,this.preserveDrawingBuffer=!1,this.clearBeforeRender=!1,this.roundPixels=!1,this._backgroundColor=0,this._backgroundColorRgba=null,this._backgroundColorString=null,this._tempDisplayObjectParent=null,this._lastObjectRendered=null},e(s,[{key:"width",get:function(){return this.view.width}},{key:"height",get:function(){return this.view.height}},{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(e){this._backgroundColor=e,this._backgroundColorString=(0,t.hex2string)(e),(0,t.hex2rgb)(e,this._backgroundColorRgba)}}]),s}(c.default);exports.default=w;
},{"../utils":"dDI1","../math":"e3iB","../const":"YEQi","../settings":"tMVT","../display/Container":"OzBO","../textures/RenderTexture":"Jb0W","eventemitter3":"2JJl"}],"FydA":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=require("../../../const");function t(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var r=function(){function r(e){t(this,r),this.renderer=e}return r.prototype.pushMask=function(e){var t=this.renderer;t.context.save();var r=e.alpha,o=e.transform.worldTransform,a=t.resolution;t.context.setTransform(o.a*a,o.b*a,o.c*a,o.d*a,o.tx*a,o.ty*a),e._texture||(this.renderGraphicsShape(e),t.context.clip()),e.worldAlpha=r},r.prototype.renderGraphicsShape=function(t){var r=this.renderer.context,o=t.graphicsData.length;if(0!==o){r.beginPath();for(var a=0;a<o;a++){var i=t.graphicsData[a],n=i.shape;if(i.type===e.SHAPES.POLY){var s=n.points;r.moveTo(s[0],s[1]);for(var h=1;h<s.length/2;h++)r.lineTo(s[2*h],s[2*h+1]);s[0]===s[s.length-2]&&s[1]===s[s.length-1]&&r.closePath()}else if(i.type===e.SHAPES.RECT)r.rect(n.x,n.y,n.width,n.height),r.closePath();else if(i.type===e.SHAPES.CIRC)r.arc(n.x,n.y,n.radius,0,2*Math.PI),r.closePath();else if(i.type===e.SHAPES.ELIP){var c=2*n.width,l=2*n.height,p=n.x-c/2,u=n.y-l/2,v=c/2*.5522848,d=l/2*.5522848,f=p+c,T=u+l,y=p+c/2,P=u+l/2;r.moveTo(p,P),r.bezierCurveTo(p,P-d,y-v,u,y,u),r.bezierCurveTo(y+v,u,f,P-d,f,P),r.bezierCurveTo(f,P+d,y+v,T,y,T),r.bezierCurveTo(y-v,T,p,P+d,p,P),r.closePath()}else if(i.type===e.SHAPES.RREC){var x=n.x,C=n.y,S=n.width,g=n.height,E=n.radius,m=Math.min(S,g)/2|0;E=E>m?m:E,r.moveTo(x,C+E),r.lineTo(x,C+g-E),r.quadraticCurveTo(x,C+g,x+E,C+g),r.lineTo(x+S-E,C+g),r.quadraticCurveTo(x+S,C+g,x+S,C+g-E),r.lineTo(x+S,C+E),r.quadraticCurveTo(x+S,C,x+S-E,C),r.lineTo(x+E,C),r.quadraticCurveTo(x,C,x,C+E),r.closePath()}}}},r.prototype.popMask=function(e){e.context.restore(),e.invalidateBlendMode()},r.prototype.destroy=function(){},r}();exports.default=r;
},{"../../../const":"YEQi"}],"khQn":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),e=require("../../../settings"),n=i(e);function i(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(t,i,o){s(this,e),this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.resolution=o||n.default.RESOLUTION,this.resize(t,i)}return e.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},e.prototype.resize=function(t,e){this.canvas.width=t*this.resolution,this.canvas.height=e*this.resolution},e.prototype.destroy=function(){this.context=null,this.canvas=null},t(e,[{key:"width",get:function(){return this.canvas.width},set:function(t){this.canvas.width=t}},{key:"height",get:function(){return this.canvas.height},set:function(t){this.canvas.height=t}}]),e}();exports.default=o;
},{"../../../settings":"tMVT"}],"StZv":[function(require,module,exports) {
"use strict";function e(e){var t=document.createElement("canvas");t.width=6,t.height=1;var a=t.getContext("2d");return a.fillStyle=e,a.fillRect(0,0,6,1),t}function t(){if("undefined"==typeof document)return!1;var t=e("#ff00ff"),a=e("#ffff00"),r=document.createElement("canvas");r.width=6,r.height=1;var n=r.getContext("2d");n.globalCompositeOperation="multiply",n.drawImage(t,0,0),n.drawImage(a,2,0);var f=n.getImageData(2,0,1,1);if(!f)return!1;var i=f.data;return 255===i[0]&&0===i[1]&&0===i[2]}exports.__esModule=!0,exports.default=t;
},{}],"pZ9z":[function(require,module,exports) {
"use strict";exports.__esModule=!0,exports.default=L;var E=require("../../../const"),D=require("./canUseNewCanvasBlendModes"),e=O(D);function O(E){return E&&E.__esModule?E:{default:E}}function L(){var D=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,e.default)()?(D[E.BLEND_MODES.NORMAL]="source-over",D[E.BLEND_MODES.ADD]="lighter",D[E.BLEND_MODES.MULTIPLY]="multiply",D[E.BLEND_MODES.SCREEN]="screen",D[E.BLEND_MODES.OVERLAY]="overlay",D[E.BLEND_MODES.DARKEN]="darken",D[E.BLEND_MODES.LIGHTEN]="lighten",D[E.BLEND_MODES.COLOR_DODGE]="color-dodge",D[E.BLEND_MODES.COLOR_BURN]="color-burn",D[E.BLEND_MODES.HARD_LIGHT]="hard-light",D[E.BLEND_MODES.SOFT_LIGHT]="soft-light",D[E.BLEND_MODES.DIFFERENCE]="difference",D[E.BLEND_MODES.EXCLUSION]="exclusion",D[E.BLEND_MODES.HUE]="hue",D[E.BLEND_MODES.SATURATION]="saturate",D[E.BLEND_MODES.COLOR]="color",D[E.BLEND_MODES.LUMINOSITY]="luminosity"):(D[E.BLEND_MODES.NORMAL]="source-over",D[E.BLEND_MODES.ADD]="lighter",D[E.BLEND_MODES.MULTIPLY]="source-over",D[E.BLEND_MODES.SCREEN]="source-over",D[E.BLEND_MODES.OVERLAY]="source-over",D[E.BLEND_MODES.DARKEN]="source-over",D[E.BLEND_MODES.LIGHTEN]="source-over",D[E.BLEND_MODES.COLOR_DODGE]="source-over",D[E.BLEND_MODES.COLOR_BURN]="source-over",D[E.BLEND_MODES.HARD_LIGHT]="source-over",D[E.BLEND_MODES.SOFT_LIGHT]="source-over",D[E.BLEND_MODES.DIFFERENCE]="source-over",D[E.BLEND_MODES.EXCLUSION]="source-over",D[E.BLEND_MODES.HUE]="source-over",D[E.BLEND_MODES.SATURATION]="source-over",D[E.BLEND_MODES.COLOR]="source-over",D[E.BLEND_MODES.LUMINOSITY]="source-over"),D[E.BLEND_MODES.NORMAL_NPM]=D[E.BLEND_MODES.NORMAL],D[E.BLEND_MODES.ADD_NPM]=D[E.BLEND_MODES.ADD],D[E.BLEND_MODES.SCREEN_NPM]=D[E.BLEND_MODES.SCREEN],D}
},{"../../../const":"YEQi","./canUseNewCanvasBlendModes":"StZv"}],"GzOR":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=require("../SystemRenderer"),e=p(t),o=require("./utils/CanvasMaskManager"),n=p(o),r=require("./utils/CanvasRenderTarget"),i=p(r),s=require("./utils/mapCanvasBlendModesToPixi"),a=p(s),l=require("../../utils"),h=require("../../const"),d=require("../../settings"),c=p(d);function p(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function g(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function m(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(t){function e(o,r,i){u(this,e);var s=g(this,t.call(this,"Canvas",o,r,i));return s.type=h.RENDERER_TYPE.CANVAS,s.rootContext=s.view.getContext("2d",{alpha:s.transparent}),s.context=s.rootContext,s.refresh=!0,s.maskManager=new n.default(s),s.smoothProperty="imageSmoothingEnabled",s.rootContext.imageSmoothingEnabled||(s.rootContext.webkitImageSmoothingEnabled?s.smoothProperty="webkitImageSmoothingEnabled":s.rootContext.mozImageSmoothingEnabled?s.smoothProperty="mozImageSmoothingEnabled":s.rootContext.oImageSmoothingEnabled?s.smoothProperty="oImageSmoothingEnabled":s.rootContext.msImageSmoothingEnabled&&(s.smoothProperty="msImageSmoothingEnabled")),s.initPlugins(),s.blendModes=(0,a.default)(),s._activeBlendMode=null,s.renderingToScreen=!1,s.resize(s.options.width,s.options.height),s}return m(e,t),e.prototype.render=function(t,e,o,n,r){if(this.view){this.renderingToScreen=!e,this.emit("prerender");var s=this.resolution;e?((e=e.baseTexture||e)._canvasRenderTarget||(e._canvasRenderTarget=new i.default(e.width,e.height,e.resolution),e.source=e._canvasRenderTarget.canvas,e.valid=!0),this.context=e._canvasRenderTarget.context,this.resolution=e._canvasRenderTarget.resolution):this.context=this.rootContext;var a=this.context;if(e||(this._lastObjectRendered=t),!r){var l=t.parent,d=this._tempDisplayObjectParent.transform.worldTransform;n?(n.copy(d),this._tempDisplayObjectParent.transform._worldID=-1):d.identity(),t.parent=this._tempDisplayObjectParent,t.updateTransform(),t.parent=l}a.setTransform(1,0,0,1,0,0),a.globalAlpha=1,this._activeBlendMode=h.BLEND_MODES.NORMAL,a.globalCompositeOperation=this.blendModes[h.BLEND_MODES.NORMAL],navigator.isCocoonJS&&this.view.screencanvas&&(a.fillStyle="black",a.clear()),(void 0!==o?o:this.clearBeforeRender)&&this.renderingToScreen&&(this.transparent?a.clearRect(0,0,this.width,this.height):(a.fillStyle=this._backgroundColorString,a.fillRect(0,0,this.width,this.height)));var c=this.context;this.context=a,t.renderCanvas(this),this.context=c,this.resolution=s,this.emit("postrender")}},e.prototype.clear=function(t){var e=this.context;t=t||this._backgroundColorString,!this.transparent&&t?(e.fillStyle=t,e.fillRect(0,0,this.width,this.height)):e.clearRect(0,0,this.width,this.height)},e.prototype.setBlendMode=function(t){this._activeBlendMode!==t&&(this._activeBlendMode=t,this.context.globalCompositeOperation=this.blendModes[t])},e.prototype.destroy=function(e){this.destroyPlugins(),t.prototype.destroy.call(this,e),this.context=null,this.refresh=!0,this.maskManager.destroy(),this.maskManager=null,this.smoothProperty=null},e.prototype.resize=function(e,o){t.prototype.resize.call(this,e,o),this.smoothProperty&&(this.rootContext[this.smoothProperty]=c.default.SCALE_MODE===h.SCALE_MODES.LINEAR)},e.prototype.invalidateBlendMode=function(){this._activeBlendMode=this.blendModes.indexOf(this.context.globalCompositeOperation)},e}(e.default);exports.default=f,l.pluginTarget.mixin(f);
},{"../SystemRenderer":"Hz2Z","./utils/CanvasMaskManager":"FydA","./utils/CanvasRenderTarget":"khQn","./utils/mapCanvasBlendModesToPixi":"pZ9z","../../utils":"dDI1","../../const":"YEQi","../../settings":"tMVT"}],"xwA8":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=require("../../utils"),e=require("../../renderers/canvas/utils/canUseNewCanvasBlendModes"),i=a(e);function a(t){return t&&t.__esModule?t:{default:t}}var h={getTintedTexture:function(t,e){var i=t._texture,a="#"+("00000"+(0|(e=h.roundColor(e))).toString(16)).substr(-6);i.tintCache=i.tintCache||{};var r=i.tintCache[a],n=void 0;if(r){if(r.tintId===i._updateID)return i.tintCache[a];n=i.tintCache[a]}else n=h.canvas||document.createElement("canvas");if(h.tintMethod(i,e,n),n.tintId=i._updateID,h.convertTintToImage){var o=new Image;o.src=n.toDataURL(),i.tintCache[a]=o}else i.tintCache[a]=n,h.canvas=null;return n},tintWithMultiply:function(t,e,i){var a=i.getContext("2d"),h=t._frame.clone(),r=t.baseTexture.resolution;h.x*=r,h.y*=r,h.width*=r,h.height*=r,i.width=Math.ceil(h.width),i.height=Math.ceil(h.height),a.save(),a.fillStyle="#"+("00000"+(0|e).toString(16)).substr(-6),a.fillRect(0,0,h.width,h.height),a.globalCompositeOperation="multiply",a.drawImage(t.baseTexture.source,h.x,h.y,h.width,h.height,0,0,h.width,h.height),a.globalCompositeOperation="destination-atop",a.drawImage(t.baseTexture.source,h.x,h.y,h.width,h.height,0,0,h.width,h.height),a.restore()},tintWithOverlay:function(t,e,i){var a=i.getContext("2d"),h=t._frame.clone(),r=t.baseTexture.resolution;h.x*=r,h.y*=r,h.width*=r,h.height*=r,i.width=Math.ceil(h.width),i.height=Math.ceil(h.height),a.save(),a.globalCompositeOperation="copy",a.fillStyle="#"+("00000"+(0|e).toString(16)).substr(-6),a.fillRect(0,0,h.width,h.height),a.globalCompositeOperation="destination-atop",a.drawImage(t.baseTexture.source,h.x,h.y,h.width,h.height,0,0,h.width,h.height),a.restore()},tintWithPerPixel:function(e,i,a){var h=a.getContext("2d"),r=e._frame.clone(),n=e.baseTexture.resolution;r.x*=n,r.y*=n,r.width*=n,r.height*=n,a.width=Math.ceil(r.width),a.height=Math.ceil(r.height),h.save(),h.globalCompositeOperation="copy",h.drawImage(e.baseTexture.source,r.x,r.y,r.width,r.height,0,0,r.width,r.height),h.restore();for(var o=(0,t.hex2rgb)(i),l=o[0],s=o[1],u=o[2],d=h.getImageData(0,0,r.width,r.height),c=d.data,g=0;g<c.length;g+=4)c[g+0]*=l,c[g+1]*=s,c[g+2]*=u;h.putImageData(d,0,0)},roundColor:function(e){var i=h.cacheStepsPerColorChannel,a=(0,t.hex2rgb)(e);return a[0]=Math.min(255,a[0]/i*i),a[1]=Math.min(255,a[1]/i*i),a[2]=Math.min(255,a[2]/i*i),(0,t.rgb2hex)(a)},cacheStepsPerColorChannel:8,convertTintToImage:!1,canUseMultiply:(0,i.default)(),tintMethod:0};h.tintMethod=h.canUseMultiply?h.tintWithMultiply:h.tintWithPerPixel,exports.default=h;
},{"../../utils":"dDI1","../../renderers/canvas/utils/canUseNewCanvasBlendModes":"StZv"}],"3rZB":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=require("../../renderers/canvas/CanvasRenderer"),e=a(t),r=require("../../const"),o=require("../../math"),n=require("./CanvasTinter"),i=a(n);function a(t){return t&&t.__esModule?t:{default:t}}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var u=new o.Matrix,d=function(){function t(e){s(this,t),this.renderer=e}return t.prototype.render=function(t){var e=t._texture,n=this.renderer,a=e._frame.width,s=e._frame.height,d=t.transform.worldTransform,l=0,c=0;if(!(e.orig.width<=0||e.orig.height<=0)&&e.baseTexture.source&&(n.setBlendMode(t.blendMode),e.valid)){n.context.globalAlpha=t.worldAlpha;var h=e.baseTexture.scaleMode===r.SCALE_MODES.LINEAR;n.smoothProperty&&n.context[n.smoothProperty]!==h&&(n.context[n.smoothProperty]=h),e.trim?(l=e.trim.width/2+e.trim.x-t.anchor.x*e.orig.width,c=e.trim.height/2+e.trim.y-t.anchor.y*e.orig.height):(l=(.5-t.anchor.x)*e.orig.width,c=(.5-t.anchor.y)*e.orig.height),e.rotate&&(d.copy(u),d=u,o.GroupD8.matrixAppendRotationInv(d,e.rotate,l,c),l=0,c=0),l-=a/2,c-=s/2,n.roundPixels?(n.context.setTransform(d.a,d.b,d.c,d.d,d.tx*n.resolution|0,d.ty*n.resolution|0),l|=0,c|=0):n.context.setTransform(d.a,d.b,d.c,d.d,d.tx*n.resolution,d.ty*n.resolution);var x=e.baseTexture.resolution;16777215!==t.tint?(t.cachedTint===t.tint&&t.tintedTexture.tintId===t._texture._updateID||(t.cachedTint=t.tint,t.tintedTexture=i.default.getTintedTexture(t,t.tint)),n.context.drawImage(t.tintedTexture,0,0,a*x,s*x,l*n.resolution,c*n.resolution,a*n.resolution,s*n.resolution)):n.context.drawImage(e.baseTexture.source,e._frame.x*x,e._frame.y*x,a*x,s*x,l*n.resolution,c*n.resolution,a*n.resolution,s*n.resolution)}},t.prototype.destroy=function(){this.renderer=null},t}();exports.default=d,e.default.registerPlugin("sprite",d);
},{"../../renderers/canvas/CanvasRenderer":"GzOR","../../const":"YEQi","../../math":"e3iB","./CanvasTinter":"xwA8"}],"ClQe":[function(require,module,exports) {
"use strict";function t(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}exports.__esModule=!0;var n=function(){function n(e){t(this,n),this.renderer=e,this.renderer.on("context",this.onContextChange,this)}return n.prototype.onContextChange=function(){},n.prototype.destroy=function(){this.renderer.off("context",this.onContextChange,this),this.renderer=null},n}();exports.default=n;
},{}],"oXPp":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=require("../managers/WebGLManager"),e=o(t);function o(t){return t&&t.__esModule?t:{default:t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function r(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var i=function(t){function e(){return n(this,e),r(this,t.apply(this,arguments))}return u(e,t),e.prototype.start=function(){},e.prototype.stop=function(){this.flush()},e.prototype.flush=function(){},e.prototype.render=function(t){},e}(e.default);exports.default=i;
},{"../managers/WebGLManager":"ClQe"}],"s0lT":[function(require,module,exports) {
"use strict";exports.__esModule=!0,exports.default=i;var e=require("pixi-gl-core"),r=t(e);function t(e){return e&&e.__esModule?e:{default:e}}var a=r.default.shader.defaultValue;function i(e,r,t){var a=u(e,t),i=u(r,t);return Object.assign(a,i)}function u(e){for(var r=new RegExp("^(projectionMatrix|uSampler|filterArea|filterClamp)$"),t={},i=void 0,u=e.replace(/\s+/g," ").split(/\s*;\s*/),l=0;l<u.length;l++){var n=u[l].trim();if(n.indexOf("uniform")>-1){var s=n.split(" "),f=s[1],o=s[2],p=1;o.indexOf("[")>-1&&(i=o.split(/\[|]/),o=i[0],p*=Number(i[1])),o.match(r)||(t[o]={value:a(f,p),name:o,type:f})}}return t}
},{"pixi-gl-core":"PJsv"}],"AVkB":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=function(){function e(e,r){for(var t=0;t<r.length;t++){var i=r[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(r,t,i){return t&&e(r.prototype,t),i&&e(r,i),r}}(),r=require("./extractUniformsFromSrc"),t=u(r),i=require("../../../utils"),o=require("../../../const"),n=require("../../../settings"),a=u(n);function u(e){return e&&e.__esModule?e:{default:e}}function s(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}var l={},c=function(){function r(e,n,u){for(var c in s(this,r),this.vertexSrc=e||r.defaultVertexSrc,this.fragmentSrc=n||r.defaultFragmentSrc,this._blendMode=o.BLEND_MODES.NORMAL,this.uniformData=u||(0,t.default)(this.vertexSrc,this.fragmentSrc,"projectionMatrix|uSampler"),this.uniforms={},this.uniformData)this.uniforms[c]=this.uniformData[c].value,this.uniformData[c].type&&(this.uniformData[c].type=this.uniformData[c].type.toLowerCase());this.glShaders={},l[this.vertexSrc+this.fragmentSrc]||(l[this.vertexSrc+this.fragmentSrc]=(0,i.uid)()),this.glShaderKey=l[this.vertexSrc+this.fragmentSrc],this.padding=4,this.resolution=a.default.RESOLUTION,this.enabled=!0,this.autoFit=!0}return r.prototype.apply=function(e,r,t,i,o){e.applyFilter(this,r,t,i)},e(r,[{key:"blendMode",get:function(){return this._blendMode},set:function(e){this._blendMode=e}}],[{key:"defaultVertexSrc",get:function(){return["attribute vec2 aVertexPosition;","attribute vec2 aTextureCoord;","uniform mat3 projectionMatrix;","uniform mat3 filterMatrix;","varying vec2 vTextureCoord;","varying vec2 vFilterCoord;","void main(void){","   gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);","   vFilterCoord = ( filterMatrix * vec3( aTextureCoord, 1.0)  ).xy;","   vTextureCoord = aTextureCoord ;","}"].join("\n")}},{key:"defaultFragmentSrc",get:function(){return["varying vec2 vTextureCoord;","varying vec2 vFilterCoord;","uniform sampler2D uSampler;","uniform sampler2D filterSampler;","void main(void){","   vec4 masky = texture2D(filterSampler, vFilterCoord);","   vec4 sample = texture2D(uSampler, vTextureCoord);","   vec4 color;","   if(mod(vFilterCoord.x, 1.0) > 0.5)","   {","     color = vec4(1.0, 0.0, 0.0, 1.0);","   }","   else","   {","     color = vec4(0.0, 1.0, 0.0, 1.0);","   }","   gl_FragColor = mix(sample, masky, 0.5);","   gl_FragColor *= sample.a;","}"].join("\n")}}]),r}();exports.default=c;
},{"./extractUniformsFromSrc":"s0lT","../../../utils":"dDI1","../../../const":"YEQi","../../../settings":"tMVT"}],"pBGv":[function(require,module,exports) {

var t,e,n=module.exports={};function r(){throw new Error("setTimeout has not been defined")}function o(){throw new Error("clearTimeout has not been defined")}function i(e){if(t===setTimeout)return setTimeout(e,0);if((t===r||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}function u(t){if(e===clearTimeout)return clearTimeout(t);if((e===o||!e)&&clearTimeout)return e=clearTimeout,clearTimeout(t);try{return e(t)}catch(n){try{return e.call(null,t)}catch(n){return e.call(this,t)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:r}catch(n){t=r}try{e="function"==typeof clearTimeout?clearTimeout:o}catch(n){e=o}}();var c,s=[],l=!1,a=-1;function f(){l&&c&&(l=!1,c.length?s=c.concat(s):a=-1,s.length&&h())}function h(){if(!l){var t=i(f);l=!0;for(var e=s.length;e;){for(c=s,s=[];++a<e;)c&&c[a].run();a=-1,e=s.length}c=null,l=!1,u(t)}}function m(t,e){this.fun=t,this.array=e}function p(){}n.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];s.push(new m(t,e)),1!==s.length||l||i(h)},m.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=p,n.addListener=p,n.once=p,n.off=p,n.removeListener=p,n.removeAllListeners=p,n.emit=p,n.prependListener=p,n.prependOnceListener=p,n.listeners=function(t){return[]},n.binding=function(t){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(t){throw new Error("process.chdir is not supported")},n.umask=function(){return 0};
},{}],"UUq2":[function(require,module,exports) {
var process = require("process");
var r=require("process");function t(r,t){for(var e=0,n=r.length-1;n>=0;n--){var s=r[n];"."===s?r.splice(n,1):".."===s?(r.splice(n,1),e++):e&&(r.splice(n,1),e--)}if(t)for(;e--;e)r.unshift("..");return r}var e=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,n=function(r){return e.exec(r).slice(1)};function s(r,t){if(r.filter)return r.filter(t);for(var e=[],n=0;n<r.length;n++)t(r[n],n,r)&&e.push(r[n]);return e}exports.resolve=function(){for(var e="",n=!1,o=arguments.length-1;o>=-1&&!n;o--){var i=o>=0?arguments[o]:r.cwd();if("string"!=typeof i)throw new TypeError("Arguments to path.resolve must be strings");i&&(e=i+"/"+e,n="/"===i.charAt(0))}return(n?"/":"")+(e=t(s(e.split("/"),function(r){return!!r}),!n).join("/"))||"."},exports.normalize=function(r){var e=exports.isAbsolute(r),n="/"===o(r,-1);return(r=t(s(r.split("/"),function(r){return!!r}),!e).join("/"))||e||(r="."),r&&n&&(r+="/"),(e?"/":"")+r},exports.isAbsolute=function(r){return"/"===r.charAt(0)},exports.join=function(){var r=Array.prototype.slice.call(arguments,0);return exports.normalize(s(r,function(r,t){if("string"!=typeof r)throw new TypeError("Arguments to path.join must be strings");return r}).join("/"))},exports.relative=function(r,t){function e(r){for(var t=0;t<r.length&&""===r[t];t++);for(var e=r.length-1;e>=0&&""===r[e];e--);return t>e?[]:r.slice(t,e-t+1)}r=exports.resolve(r).substr(1),t=exports.resolve(t).substr(1);for(var n=e(r.split("/")),s=e(t.split("/")),o=Math.min(n.length,s.length),i=o,u=0;u<o;u++)if(n[u]!==s[u]){i=u;break}var l=[];for(u=i;u<n.length;u++)l.push("..");return(l=l.concat(s.slice(i))).join("/")},exports.sep="/",exports.delimiter=":",exports.dirname=function(r){var t=n(r),e=t[0],s=t[1];return e||s?(s&&(s=s.substr(0,s.length-1)),e+s):"."},exports.basename=function(r,t){var e=n(r)[2];return t&&e.substr(-1*t.length)===t&&(e=e.substr(0,e.length-t.length)),e},exports.extname=function(r){return n(r)[3]};var o="b"==="ab".substr(-1)?function(r,t,e){return r.substr(t,e)}:function(r,t,e){return t<0&&(t=r.length+t),r.substr(t,e)};
},{"process":"pBGv"}],"VuLC":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=require("../Filter"),t=o(e),r=require("../../../../math"),n=require("path");function o(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(n){a(this,t);var o=new r.Matrix,s=i(this,e.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 otherMatrix;\n\nvarying vec2 vMaskCoord;\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n    vTextureCoord = aTextureCoord;\n    vMaskCoord = ( otherMatrix * vec3( aTextureCoord, 1.0)  ).xy;\n}\n","varying vec2 vMaskCoord;\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform float alpha;\nuniform sampler2D mask;\n\nvoid main(void)\n{\n    // check clip! this will stop the mask bleeding out from the edges\n    vec2 text = abs( vMaskCoord - 0.5 );\n    text = step(0.5, text);\n\n    float clip = 1.0 - max(text.y, text.x);\n    vec4 original = texture2D(uSampler, vTextureCoord);\n    vec4 masky = texture2D(mask, vMaskCoord);\n\n    original *= (masky.r * masky.a * alpha * clip);\n\n    gl_FragColor = original;\n}\n"));return n.renderable=!1,s.maskSprite=n,s.maskMatrix=o,s}return s(t,e),t.prototype.apply=function(e,t,r){var n=this.maskSprite;this.uniforms.mask=n._texture,this.uniforms.otherMatrix=e.calculateSpriteMatrix(this.maskMatrix,n),this.uniforms.alpha=n.worldAlpha,e.applyFilter(this,t,r)},t}(t.default);exports.default=u;
},{"../Filter":"AVkB","../../../../math":"e3iB","path":"UUq2"}],"OOwQ":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=require("./WebGLManager"),t=i(e),r=require("../filters/spriteMask/SpriteMaskFilter"),s=i(r);function i(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){function t(r){n(this,t);var s=a(this,e.call(this,r));return s.scissor=!1,s.scissorData=null,s.scissorRenderTarget=null,s.enableScissor=!0,s.alphaMaskPool=[],s.alphaMaskIndex=0,s}return o(t,e),t.prototype.pushMask=function(e,t){if(t.texture)this.pushSpriteMask(e,t);else if(this.enableScissor&&!this.scissor&&this.renderer._activeRenderTarget.root&&!this.renderer.stencilManager.stencilMaskStack.length&&t.isFastRect()){var r=t.worldTransform,s=Math.atan2(r.b,r.a);(s=Math.round(s*(180/Math.PI)))%90?this.pushStencilMask(t):this.pushScissorMask(e,t)}else this.pushStencilMask(t)},t.prototype.popMask=function(e,t){t.texture?this.popSpriteMask(e,t):this.enableScissor&&!this.renderer.stencilManager.stencilMaskStack.length?this.popScissorMask(e,t):this.popStencilMask(e,t)},t.prototype.pushSpriteMask=function(e,t){var r=this.alphaMaskPool[this.alphaMaskIndex];r||(r=this.alphaMaskPool[this.alphaMaskIndex]=[new s.default(t)]),r[0].resolution=this.renderer.resolution,r[0].maskSprite=t,e.filterArea=t.getBounds(!0),this.renderer.filterManager.pushFilter(e,r),this.alphaMaskIndex++},t.prototype.popSpriteMask=function(){this.renderer.filterManager.popFilter(),this.alphaMaskIndex--},t.prototype.pushStencilMask=function(e){this.renderer.currentRenderer.stop(),this.renderer.stencilManager.pushStencil(e)},t.prototype.popStencilMask=function(){this.renderer.currentRenderer.stop(),this.renderer.stencilManager.popStencil()},t.prototype.pushScissorMask=function(e,t){t.renderable=!0;var r=this.renderer._activeRenderTarget,s=t.getBounds();s.fit(r.size),t.renderable=!1,this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST);var i=this.renderer.resolution;this.renderer.gl.scissor(s.x*i,(r.root?r.size.height-s.y-s.height:s.y)*i,s.width*i,s.height*i),this.scissorRenderTarget=r,this.scissorData=t,this.scissor=!0},t.prototype.popScissorMask=function(){this.scissorRenderTarget=null,this.scissorData=null,this.scissor=!1;var e=this.renderer.gl;e.disable(e.SCISSOR_TEST)},t}(t.default);exports.default=l;
},{"./WebGLManager":"ClQe","../filters/spriteMask/SpriteMaskFilter":"VuLC"}],"juli":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=require("./WebGLManager"),t=r(e);function r(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){function r(t){n(this,r);var i=s(this,e.call(this,t));return i.stencilMaskStack=null,i}return i(r,e),r.prototype.setMaskStack=function(e){this.stencilMaskStack=e;var t=this.renderer.gl;0===e.length?t.disable(t.STENCIL_TEST):t.enable(t.STENCIL_TEST)},r.prototype.pushStencil=function(e){this.renderer.setObjectRenderer(this.renderer.plugins.graphics),this.renderer._activeRenderTarget.attachStencilBuffer();var t=this.renderer.gl,r=this.stencilMaskStack.length;0===r&&t.enable(t.STENCIL_TEST),this.stencilMaskStack.push(e),t.colorMask(!1,!1,!1,!1),t.stencilFunc(t.EQUAL,r,this._getBitwiseMask()),t.stencilOp(t.KEEP,t.KEEP,t.INCR),this.renderer.plugins.graphics.render(e),this._useCurrent()},r.prototype.popStencil=function(){this.renderer.setObjectRenderer(this.renderer.plugins.graphics);var e=this.renderer.gl,t=this.stencilMaskStack.pop();0===this.stencilMaskStack.length?(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),this.renderer.plugins.graphics.render(t),this._useCurrent())},r.prototype._useCurrent=function(){var e=this.renderer.gl;e.colorMask(!0,!0,!0,!0),e.stencilFunc(e.EQUAL,this.stencilMaskStack.length,this._getBitwiseMask()),e.stencilOp(e.KEEP,e.KEEP,e.KEEP)},r.prototype._getBitwiseMask=function(){return(1<<this.stencilMaskStack.length)-1},r.prototype.destroy=function(){t.default.prototype.destroy.call(this),this.stencilMaskStack.stencilStack=null},r}(t.default);exports.default=c;
},{"./WebGLManager":"ClQe"}],"Xw9x":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=require("../../../math"),e=require("../../../const"),i=require("../../../settings"),r=a(i),s=require("pixi-gl-core");function a(t){return t&&t.__esModule?t:{default:t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function i(a,o,h,f,u,l){n(this,i),this.gl=a,this.frameBuffer=null,this.texture=null,this.clearColor=[0,0,0,0],this.size=new t.Rectangle(0,0,1,1),this.resolution=u||r.default.RESOLUTION,this.projectionMatrix=new t.Matrix,this.transform=null,this.frame=null,this.defaultFrame=new t.Rectangle,this.destinationFrame=null,this.sourceFrame=null,this.stencilBuffer=null,this.stencilMaskStack=[],this.filterData=null,this.scaleMode=void 0!==f?f:r.default.SCALE_MODE,this.root=l,this.root?(this.frameBuffer=new s.GLFramebuffer(a,100,100),this.frameBuffer.framebuffer=null):(this.frameBuffer=s.GLFramebuffer.createRGBA(a,100,100),this.scaleMode===e.SCALE_MODES.NEAREST?this.frameBuffer.texture.enableNearestScaling():this.frameBuffer.texture.enableLinearScaling(),this.texture=this.frameBuffer.texture),this.setFrame(),this.resize(o,h)}return i.prototype.clear=function(t){var e=t||this.clearColor;this.frameBuffer.clear(e[0],e[1],e[2],e[3])},i.prototype.attachStencilBuffer=function(){this.root||this.frameBuffer.enableStencil()},i.prototype.setFrame=function(t,e){this.destinationFrame=t||this.destinationFrame||this.defaultFrame,this.sourceFrame=e||this.sourceFrame||this.destinationFrame},i.prototype.activate=function(){var t=this.gl;this.frameBuffer.bind(),this.calculateProjection(this.destinationFrame,this.sourceFrame),this.transform&&this.projectionMatrix.append(this.transform),this.destinationFrame!==this.sourceFrame?(t.enable(t.SCISSOR_TEST),t.scissor(0|this.destinationFrame.x,0|this.destinationFrame.y,this.destinationFrame.width*this.resolution|0,this.destinationFrame.height*this.resolution|0)):t.disable(t.SCISSOR_TEST),t.viewport(0|this.destinationFrame.x,0|this.destinationFrame.y,this.destinationFrame.width*this.resolution|0,this.destinationFrame.height*this.resolution|0)},i.prototype.calculateProjection=function(t,e){var i=this.projectionMatrix;e=e||t,i.identity(),this.root?(i.a=1/t.width*2,i.d=-1/t.height*2,i.tx=-1-e.x*i.a,i.ty=1-e.y*i.d):(i.a=1/t.width*2,i.d=1/t.height*2,i.tx=-1-e.x*i.a,i.ty=-1-e.y*i.d)},i.prototype.resize=function(t,e){if(t|=0,e|=0,this.size.width!==t||this.size.height!==e){this.size.width=t,this.size.height=e,this.defaultFrame.width=t,this.defaultFrame.height=e,this.frameBuffer.resize(t*this.resolution,e*this.resolution);var i=this.frame||this.size;this.calculateProjection(i)}},i.prototype.destroy=function(){this.frameBuffer.destroy(),this.frameBuffer=null,this.texture=null},i}();exports.default=o;
},{"../../../math":"e3iB","../../../const":"YEQi","../../../settings":"tMVT","pixi-gl-core":"PJsv"}],"DI0o":[function(require,module,exports) {
"use strict";function r(r){for(var e=6*r,t=new Uint16Array(e),n=0,o=0;n<e;n+=6,o+=4)t[n+0]=o+0,t[n+1]=o+1,t[n+2]=o+2,t[n+3]=o+0,t[n+4]=o+2,t[n+5]=o+3;return t}exports.__esModule=!0,exports.default=r;
},{}],"tknA":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=require("pixi-gl-core"),e=r(t),i=require("../../../utils/createIndicesForQuads"),s=r(i);function r(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var u=function(){function t(i,r){h(this,t),this.gl=i,this.vertices=new Float32Array([-1,-1,1,-1,1,1,-1,1]),this.uvs=new Float32Array([0,0,1,0,1,1,0,1]),this.interleaved=new Float32Array(16);for(var u=0;u<4;u++)this.interleaved[4*u]=this.vertices[2*u],this.interleaved[4*u+1]=this.vertices[2*u+1],this.interleaved[4*u+2]=this.uvs[2*u],this.interleaved[4*u+3]=this.uvs[2*u+1];this.indices=(0,s.default)(1),this.vertexBuffer=e.default.GLBuffer.createVertexBuffer(i,this.interleaved,i.STATIC_DRAW),this.indexBuffer=e.default.GLBuffer.createIndexBuffer(i,this.indices,i.STATIC_DRAW),this.vao=new e.default.VertexArrayObject(i,r)}return t.prototype.initVao=function(t){this.vao.clear().addIndex(this.indexBuffer).addAttribute(this.vertexBuffer,t.attributes.aVertexPosition,this.gl.FLOAT,!1,16,0).addAttribute(this.vertexBuffer,t.attributes.aTextureCoord,this.gl.FLOAT,!1,16,8)},t.prototype.map=function(t,e){var i=0,s=0;return this.uvs[0]=i,this.uvs[1]=s,this.uvs[2]=i+e.width/t.width,this.uvs[3]=s,this.uvs[4]=i+e.width/t.width,this.uvs[5]=s+e.height/t.height,this.uvs[6]=i,this.uvs[7]=s+e.height/t.height,i=e.x,s=e.y,this.vertices[0]=i,this.vertices[1]=s,this.vertices[2]=i+e.width,this.vertices[3]=s,this.vertices[4]=i+e.width,this.vertices[5]=s+e.height,this.vertices[6]=i,this.vertices[7]=s+e.height,this},t.prototype.upload=function(){for(var t=0;t<4;t++)this.interleaved[4*t]=this.vertices[2*t],this.interleaved[4*t+1]=this.vertices[2*t+1],this.interleaved[4*t+2]=this.uvs[2*t],this.interleaved[4*t+3]=this.uvs[2*t+1];return this.vertexBuffer.upload(this.interleaved),this},t.prototype.destroy=function(){var t=this.gl;t.deleteBuffer(this.vertexBuffer),t.deleteBuffer(this.indexBuffer)},t}();exports.default=u;
},{"pixi-gl-core":"PJsv","../../../utils/createIndicesForQuads":"DI0o"}],"wBQE":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=require("pixi-gl-core"),t=require("./settings"),r=n(t);function n(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function u(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function s(e,t){if(e instanceof Array){if("precision"!==e[0].substring(0,9)){var r=e.slice(0);return r.unshift("precision "+t+" float;"),r}}else if("precision"!==e.substring(0,9))return"precision "+t+" float;\n"+e;return e}var f=function(e){function t(n,u,f){return o(this,t),i(this,e.call(this,n,s(u,r.default.PRECISION_VERTEX),s(f,r.default.PRECISION_FRAGMENT)))}return u(t,e),t}(e.GLShader);exports.default=f;
},{"pixi-gl-core":"PJsv","./settings":"tMVT"}],"O70i":[function(require,module,exports) {
"use strict";exports.__esModule=!0,exports.calculateScreenSpaceMatrix=e,exports.calculateNormalizedScreenSpaceMatrix=r,exports.calculateSpriteMatrix=a;var t=require("../../../math");function e(t,e,r){var a=t.identity();return a.translate(e.x/r.width,e.y/r.height),a.scale(r.width,r.height),a}function r(t,e,r){var a=t.identity();a.translate(e.x/r.width,e.y/r.height);var i=r.width/e.width,h=r.height/e.height;return a.scale(i,h),a}function a(e,r,a,i){var h=i._texture.baseTexture,n=e.set(a.width,0,0,a.height,r.x,r.y),c=i.worldTransform.copy(t.Matrix.TEMP_MATRIX);return c.invert(),n.prepend(c),n.scale(1/h.width,1/h.height),n.translate(i.anchor.x,i.anchor.y),n}
},{"../../../math":"e3iB"}],"S5Wx":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=require("./WebGLManager"),r=g(e),t=require("../utils/RenderTarget"),a=g(t),i=require("../utils/Quad"),n=g(i),s=require("../../../math"),o=require("../../../Shader"),l=g(o),d=require("../filters/filterTransforms"),u=c(d),h=require("bit-twiddle"),f=g(h);function c(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r.default=e,r}function g(e){return e&&e.__esModule?e:{default:e}}function p(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||"object"!=typeof r&&"function"!=typeof r?e:r}function T(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}function m(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}var v=function e(){m(this,e),this.renderTarget=null,this.sourceFrame=new s.Rectangle,this.destinationFrame=new s.Rectangle,this.filters=[],this.target=null,this.resolution=1},x=function(e){function r(t){m(this,r);var a=p(this,e.call(this,t));return a.gl=a.renderer.gl,a.quad=new n.default(a.gl,t.state.attribState),a.shaderCache={},a.pool={},a.filterData=null,a.managedFilters=[],a}return T(r,e),r.prototype.pushFilter=function(e,r){var t=this.renderer,a=this.filterData;if(!a){a=this.renderer._activeRenderTarget.filterStack;var i=new v;i.sourceFrame=i.destinationFrame=this.renderer._activeRenderTarget.size,i.renderTarget=t._activeRenderTarget,this.renderer._activeRenderTarget.filterData=a={index:0,stack:[i]},this.filterData=a}var n=a.stack[++a.index];n||(n=a.stack[a.index]=new v);var s=r[0].resolution,o=0|r[0].padding,l=e.filterArea||e.getBounds(!0),d=n.sourceFrame,u=n.destinationFrame;d.x=(l.x*s|0)/s,d.y=(l.y*s|0)/s,d.width=(l.width*s|0)/s,d.height=(l.height*s|0)/s,a.stack[0].renderTarget.transform||r[0].autoFit&&d.fit(a.stack[0].destinationFrame),d.pad(o),u.width=d.width,u.height=d.height;var h=this.getPotRenderTarget(t.gl,d.width,d.height,s);n.target=e,n.filters=r,n.resolution=s,n.renderTarget=h,h.setFrame(u,d),t.bindRenderTarget(h),h.clear()},r.prototype.popFilter=function(){var e=this.filterData,r=e.stack[e.index-1],t=e.stack[e.index];this.quad.map(t.renderTarget.size,t.sourceFrame).upload();var a=t.filters;if(1===a.length)a[0].apply(this,t.renderTarget,r.renderTarget,!1,t),this.freePotRenderTarget(t.renderTarget);else{var i=t.renderTarget,n=this.getPotRenderTarget(this.renderer.gl,t.sourceFrame.width,t.sourceFrame.height,t.resolution);n.setFrame(t.destinationFrame,t.sourceFrame),n.clear();var s=0;for(s=0;s<a.length-1;++s){a[s].apply(this,i,n,!0,t);var o=i;i=n,n=o}a[s].apply(this,i,r.renderTarget,!1,t),this.freePotRenderTarget(i),this.freePotRenderTarget(n)}e.index--,0===e.index&&(this.filterData=null)},r.prototype.applyFilter=function(e,r,t,a){var i=this.renderer,n=i.gl,s=e.glShaders[i.CONTEXT_UID];s||(e.glShaderKey?(s=this.shaderCache[e.glShaderKey])||(s=new l.default(this.gl,e.vertexSrc,e.fragmentSrc),e.glShaders[i.CONTEXT_UID]=this.shaderCache[e.glShaderKey]=s):s=e.glShaders[i.CONTEXT_UID]=new l.default(this.gl,e.vertexSrc,e.fragmentSrc),this.managedFilters.push(e),i.bindVao(null),this.quad.initVao(s)),i.bindVao(this.quad.vao),i.bindRenderTarget(t),a&&(n.disable(n.SCISSOR_TEST),i.clear(),n.enable(n.SCISSOR_TEST)),t===i.maskManager.scissorRenderTarget&&i.maskManager.pushScissorMask(null,i.maskManager.scissorData),i.bindShader(s);var o=this.renderer.emptyTextures[0];this.renderer.boundTextures[0]=o,this.syncUniforms(s,e),i.state.setBlendMode(e.blendMode),n.activeTexture(n.TEXTURE0),n.bindTexture(n.TEXTURE_2D,r.texture.texture),this.quad.vao.draw(this.renderer.gl.TRIANGLES,6,0),n.bindTexture(n.TEXTURE_2D,o._glTextures[this.renderer.CONTEXT_UID].texture)},r.prototype.syncUniforms=function(e,r){var t=r.uniformData,a=r.uniforms,i=1,n=void 0;if(e.uniforms.filterArea){n=this.filterData.stack[this.filterData.index];var s=e.uniforms.filterArea;s[0]=n.renderTarget.size.width,s[1]=n.renderTarget.size.height,s[2]=n.sourceFrame.x,s[3]=n.sourceFrame.y,e.uniforms.filterArea=s}if(e.uniforms.filterClamp){n=n||this.filterData.stack[this.filterData.index];var o=e.uniforms.filterClamp;o[0]=0,o[1]=0,o[2]=(n.sourceFrame.width-1)/n.renderTarget.size.width,o[3]=(n.sourceFrame.height-1)/n.renderTarget.size.height,e.uniforms.filterClamp=o}for(var l in t){var d=t[l].type;if("sampler2d"===d&&0!==a[l]){if(a[l].baseTexture)e.uniforms[l]=this.renderer.bindTexture(a[l].baseTexture,i);else{e.uniforms[l]=i;var u=this.renderer.gl;this.renderer.boundTextures[i]=this.renderer.emptyTextures[i],u.activeTexture(u.TEXTURE0+i),a[l].texture.bind()}i++}else if("mat3"===d)void 0!==a[l].a?e.uniforms[l]=a[l].toArray(!0):e.uniforms[l]=a[l];else if("vec2"===d)if(void 0!==a[l].x){var h=e.uniforms[l]||new Float32Array(2);h[0]=a[l].x,h[1]=a[l].y,e.uniforms[l]=h}else e.uniforms[l]=a[l];else"float"===d?e.uniforms.data[l].value!==t[l]&&(e.uniforms[l]=a[l]):e.uniforms[l]=a[l]}},r.prototype.getRenderTarget=function(e,r){var t=this.filterData.stack[this.filterData.index],a=this.getPotRenderTarget(this.renderer.gl,t.sourceFrame.width,t.sourceFrame.height,r||t.resolution);return a.setFrame(t.destinationFrame,t.sourceFrame),a},r.prototype.returnRenderTarget=function(e){this.freePotRenderTarget(e)},r.prototype.calculateScreenSpaceMatrix=function(e){var r=this.filterData.stack[this.filterData.index];return u.calculateScreenSpaceMatrix(e,r.sourceFrame,r.renderTarget.size)},r.prototype.calculateNormalizedScreenSpaceMatrix=function(e){var r=this.filterData.stack[this.filterData.index];return u.calculateNormalizedScreenSpaceMatrix(e,r.sourceFrame,r.renderTarget.size,r.destinationFrame)},r.prototype.calculateSpriteMatrix=function(e,r){var t=this.filterData.stack[this.filterData.index];return u.calculateSpriteMatrix(e,t.sourceFrame,t.renderTarget.size,r)},r.prototype.destroy=function(){for(var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],r=this.renderer,t=this.managedFilters,a=0;a<t.length;a++)e||t[a].glShaders[r.CONTEXT_UID].destroy(),delete t[a].glShaders[r.CONTEXT_UID];this.shaderCache={},e?this.pool={}:this.emptyPool()},r.prototype.getPotRenderTarget=function(e,r,t,i){var n=(65535&(r=f.default.nextPow2(r*i)))<<16|65535&(t=f.default.nextPow2(t*i));this.pool[n]||(this.pool[n]=[]);var s=this.pool[n].pop();if(!s){var o=this.renderer.boundTextures[0];e.activeTexture(e.TEXTURE0),s=new a.default(e,r,t,null,1),e.bindTexture(e.TEXTURE_2D,o._glTextures[this.renderer.CONTEXT_UID].texture)}return s.resolution=i,s.defaultFrame.width=s.size.width=r/i,s.defaultFrame.height=s.size.height=t/i,s},r.prototype.emptyPool=function(){for(var e in this.pool){var r=this.pool[e];if(r)for(var t=0;t<r.length;t++)r[t].destroy(!0)}this.pool={}},r.prototype.freePotRenderTarget=function(e){var r=(65535&e.size.width*e.resolution)<<16|65535&e.size.height*e.resolution;this.pool[r].push(e)},r}(r.default);exports.default=x;
},{"./WebGLManager":"ClQe","../utils/RenderTarget":"Xw9x","../utils/Quad":"tknA","../../../math":"e3iB","../../../Shader":"wBQE","../filters/filterTransforms":"O70i","bit-twiddle":"gXRl"}],"+UA8":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=require("pixi-gl-core"),t=require("../../const"),r=require("./utils/RenderTarget"),s=a(r),i=require("../../utils");function a(e){return e&&e.__esModule?e:{default:e}}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=function(){function r(e){n(this,r),this.renderer=e,this.gl=e.gl,this._managedTextures=[]}return r.prototype.bindTexture=function(){},r.prototype.getTexture=function(){},r.prototype.updateTexture=function(r,i){var a=this.gl,n=!!r._glRenderTargets;if(!r.hasLoaded)return null;var u=this.renderer.boundTextures;if(void 0===i){i=0;for(var o=0;o<u.length;++o)if(u[o]===r){i=o;break}}u[i]=r,a.activeTexture(a.TEXTURE0+i);var d=r._glTextures[this.renderer.CONTEXT_UID];if(d)n?r._glRenderTargets[this.renderer.CONTEXT_UID].resize(r.width,r.height):d.upload(r.source);else{if(n){var l=new s.default(this.gl,r.width,r.height,r.scaleMode,r.resolution);l.resize(r.width,r.height),r._glRenderTargets[this.renderer.CONTEXT_UID]=l,d=l.texture}else(d=new e.GLTexture(this.gl,null,null,null,null)).bind(i),d.premultiplyAlpha=!0,d.upload(r.source);r._glTextures[this.renderer.CONTEXT_UID]=d,r.on("update",this.updateTexture,this),r.on("dispose",this.destroyTexture,this),this._managedTextures.push(r),r.isPowerOfTwo?(r.mipmap&&d.enableMipmap(),r.wrapMode===t.WRAP_MODES.CLAMP?d.enableWrapClamp():r.wrapMode===t.WRAP_MODES.REPEAT?d.enableWrapRepeat():d.enableWrapMirrorRepeat()):d.enableWrapClamp(),r.scaleMode===t.SCALE_MODES.NEAREST?d.enableNearestScaling():d.enableLinearScaling()}return d},r.prototype.destroyTexture=function(e,t){if((e=e.baseTexture||e).hasLoaded){var r=this.renderer.CONTEXT_UID,s=e._glTextures,a=e._glRenderTargets;if(s[r]&&(this.renderer.unbindTexture(e),s[r].destroy(),e.off("update",this.updateTexture,this),e.off("dispose",this.destroyTexture,this),delete s[r],!t)){var n=this._managedTextures.indexOf(e);-1!==n&&(0,i.removeItems)(this._managedTextures,n,1)}a&&a[r]&&(a[r].destroy(),delete a[r])}},r.prototype.removeAll=function(){for(var e=0;e<this._managedTextures.length;++e){var t=this._managedTextures[e];t._glTextures[this.renderer.CONTEXT_UID]&&delete t._glTextures[this.renderer.CONTEXT_UID]}},r.prototype.destroy=function(){for(var e=0;e<this._managedTextures.length;++e){var t=this._managedTextures[e];this.destroyTexture(t,!0),t.off("update",this.updateTexture,this),t.off("dispose",this.destroyTexture,this)}this._managedTextures=null},r}();exports.default=u;
},{"pixi-gl-core":"PJsv","../../const":"YEQi","./utils/RenderTarget":"Xw9x","../../utils":"dDI1"}],"qM/P":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=require("../../const"),e=require("../../settings"),r=n(e);function n(t){return t&&t.__esModule?t:{default:t}}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function e(t){u(this,e),this.renderer=t,this.count=0,this.checkCount=0,this.maxIdle=r.default.GC_MAX_IDLE,this.checkCountMax=r.default.GC_MAX_CHECK_COUNT,this.mode=r.default.GC_MODE}return e.prototype.update=function(){this.count++,this.mode!==t.GC_MODES.MANUAL&&(this.checkCount++,this.checkCount>this.checkCountMax&&(this.checkCount=0,this.run()))},e.prototype.run=function(){for(var t=this.renderer.textureManager,e=t._managedTextures,r=!1,n=0;n<e.length;n++){var u=e[n];!u._glRenderTargets&&this.count-u.touched>this.maxIdle&&(t.destroyTexture(u,!0),e[n]=null,r=!0)}if(r){for(var o=0,s=0;s<e.length;s++)null!==e[s]&&(e[o++]=e[s]);e.length=o}},e.prototype.unload=function(t){var e=this.renderer.textureManager;t._texture&&t._texture._glRenderTargets&&e.destroyTexture(t._texture,!0);for(var r=t.children.length-1;r>=0;r--)this.unload(t.children[r])},e}();exports.default=o;
},{"../../const":"YEQi","../../settings":"tMVT"}],"KoUQ":[function(require,module,exports) {
"use strict";exports.__esModule=!0,exports.default=N;var _=require("../../../const");function N(N){var E=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return E[_.BLEND_MODES.NORMAL]=[N.ONE,N.ONE_MINUS_SRC_ALPHA],E[_.BLEND_MODES.ADD]=[N.ONE,N.DST_ALPHA],E[_.BLEND_MODES.MULTIPLY]=[N.DST_COLOR,N.ONE_MINUS_SRC_ALPHA],E[_.BLEND_MODES.SCREEN]=[N.ONE,N.ONE_MINUS_SRC_COLOR],E[_.BLEND_MODES.OVERLAY]=[N.ONE,N.ONE_MINUS_SRC_ALPHA],E[_.BLEND_MODES.DARKEN]=[N.ONE,N.ONE_MINUS_SRC_ALPHA],E[_.BLEND_MODES.LIGHTEN]=[N.ONE,N.ONE_MINUS_SRC_ALPHA],E[_.BLEND_MODES.COLOR_DODGE]=[N.ONE,N.ONE_MINUS_SRC_ALPHA],E[_.BLEND_MODES.COLOR_BURN]=[N.ONE,N.ONE_MINUS_SRC_ALPHA],E[_.BLEND_MODES.HARD_LIGHT]=[N.ONE,N.ONE_MINUS_SRC_ALPHA],E[_.BLEND_MODES.SOFT_LIGHT]=[N.ONE,N.ONE_MINUS_SRC_ALPHA],E[_.BLEND_MODES.DIFFERENCE]=[N.ONE,N.ONE_MINUS_SRC_ALPHA],E[_.BLEND_MODES.EXCLUSION]=[N.ONE,N.ONE_MINUS_SRC_ALPHA],E[_.BLEND_MODES.HUE]=[N.ONE,N.ONE_MINUS_SRC_ALPHA],E[_.BLEND_MODES.SATURATION]=[N.ONE,N.ONE_MINUS_SRC_ALPHA],E[_.BLEND_MODES.COLOR]=[N.ONE,N.ONE_MINUS_SRC_ALPHA],E[_.BLEND_MODES.LUMINOSITY]=[N.ONE,N.ONE_MINUS_SRC_ALPHA],E[_.BLEND_MODES.NORMAL_NPM]=[N.SRC_ALPHA,N.ONE_MINUS_SRC_ALPHA,N.ONE,N.ONE_MINUS_SRC_ALPHA],E[_.BLEND_MODES.ADD_NPM]=[N.SRC_ALPHA,N.DST_ALPHA,N.ONE,N.DST_ALPHA],E[_.BLEND_MODES.SCREEN_NPM]=[N.SRC_ALPHA,N.ONE_MINUS_SRC_COLOR,N.ONE,N.ONE_MINUS_SRC_COLOR],E}
},{"../../../const":"YEQi"}],"TVBW":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=require("./utils/mapWebGLBlendModesToPixi"),e=i(t);function i(t){return t&&t.__esModule?t:{default:t}}function a(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var s=0,r=1,n=2,h=3,o=4,l=function(){function t(i){a(this,t),this.activeState=new Uint8Array(16),this.defaultState=new Uint8Array(16),this.defaultState[0]=1,this.stackIndex=0,this.stack=[],this.gl=i,this.maxAttribs=i.getParameter(i.MAX_VERTEX_ATTRIBS),this.attribState={tempAttribState:new Array(this.maxAttribs),attribState:new Array(this.maxAttribs)},this.blendModes=(0,e.default)(i),this.nativeVaoExtension=i.getExtension("OES_vertex_array_object")||i.getExtension("MOZ_OES_vertex_array_object")||i.getExtension("WEBKIT_OES_vertex_array_object")}return t.prototype.push=function(){var t=this.stack[this.stackIndex];t||(t=this.stack[this.stackIndex]=new Uint8Array(16)),++this.stackIndex;for(var e=0;e<this.activeState.length;e++)t[e]=this.activeState[e]},t.prototype.pop=function(){var t=this.stack[--this.stackIndex];this.setState(t)},t.prototype.setState=function(t){this.setBlend(t[s]),this.setDepthTest(t[r]),this.setFrontFace(t[n]),this.setCullFace(t[h]),this.setBlendMode(t[o])},t.prototype.setBlend=function(t){t=t?1:0,this.activeState[s]!==t&&(this.activeState[s]=t,this.gl[t?"enable":"disable"](this.gl.BLEND))},t.prototype.setBlendMode=function(t){if(t!==this.activeState[o]){this.activeState[o]=t;var e=this.blendModes[t];2===e.length?this.gl.blendFunc(e[0],e[1]):this.gl.blendFuncSeparate(e[0],e[1],e[2],e[3])}},t.prototype.setDepthTest=function(t){t=t?1:0,this.activeState[r]!==t&&(this.activeState[r]=t,this.gl[t?"enable":"disable"](this.gl.DEPTH_TEST))},t.prototype.setCullFace=function(t){t=t?1:0,this.activeState[h]!==t&&(this.activeState[h]=t,this.gl[t?"enable":"disable"](this.gl.CULL_FACE))},t.prototype.setFrontFace=function(t){t=t?1:0,this.activeState[n]!==t&&(this.activeState[n]=t,this.gl.frontFace(this.gl[t?"CW":"CCW"]))},t.prototype.resetAttributes=function(){for(var t=0;t<this.attribState.tempAttribState.length;t++)this.attribState.tempAttribState[t]=0;for(var e=0;e<this.attribState.attribState.length;e++)this.attribState.attribState[e]=0;for(var i=1;i<this.maxAttribs;i++)this.gl.disableVertexAttribArray(i)},t.prototype.resetToDefault=function(){this.nativeVaoExtension&&this.nativeVaoExtension.bindVertexArrayOES(null),this.resetAttributes();for(var t=0;t<this.activeState.length;++t)this.activeState[t]=32;this.gl.pixelStorei(this.gl.UNPACK_FLIP_Y_WEBGL,!1),this.setState(this.defaultState)},t}();exports.default=l;
},{"./utils/mapWebGLBlendModesToPixi":"KoUQ"}],"p4CC":[function(require,module,exports) {
"use strict";exports.__esModule=!0,exports.default=I;var E=require("../../../const");function I(I){var R=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return R[E.DRAW_MODES.POINTS]=I.POINTS,R[E.DRAW_MODES.LINES]=I.LINES,R[E.DRAW_MODES.LINE_LOOP]=I.LINE_LOOP,R[E.DRAW_MODES.LINE_STRIP]=I.LINE_STRIP,R[E.DRAW_MODES.TRIANGLES]=I.TRIANGLES,R[E.DRAW_MODES.TRIANGLE_STRIP]=I.TRIANGLE_STRIP,R[E.DRAW_MODES.TRIANGLE_FAN]=I.TRIANGLE_FAN,R}
},{"../../../const":"YEQi"}],"b6AE":[function(require,module,exports) {
"use strict";function e(e){e.getContextAttributes().stencil||console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly")}exports.__esModule=!0,exports.default=e;
},{}],"i77b":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=require("../SystemRenderer"),t=L(e),r=require("./managers/MaskManager"),n=L(r),i=require("./managers/StencilManager"),s=L(i),o=require("./managers/FilterManager"),a=L(o),u=require("./utils/RenderTarget"),l=L(u),h=require("./utils/ObjectRenderer"),d=L(h),c=require("./TextureManager"),x=L(c),p=require("../../textures/BaseTexture"),T=L(p),g=require("./TextureGarbageCollector"),f=L(g),_=require("./WebGLState"),R=L(_),b=require("./utils/mapWebGLDrawModesToPixi"),v=L(b),y=require("./utils/validateContext"),E=L(y),M=require("../../utils"),m=require("pixi-gl-core"),C=L(m),w=require("../../const");function L(e){return e&&e.__esModule?e:{default:e}}function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function D(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var j=0,q=function(e){function r(t,i,o){O(this,r);var a=S(this,e.call(this,"WebGL",t,i,o));return a.legacy=a.options.legacy,a.legacy&&(C.default.VertexArrayObject.FORCE_NATIVE=!0),a.type=w.RENDERER_TYPE.WEBGL,a.handleContextLost=a.handleContextLost.bind(a),a.handleContextRestored=a.handleContextRestored.bind(a),a.view.addEventListener("webglcontextlost",a.handleContextLost,!1),a.view.addEventListener("webglcontextrestored",a.handleContextRestored,!1),a._contextOptions={alpha:a.transparent,antialias:a.options.antialias,premultipliedAlpha:a.transparent&&"notMultiplied"!==a.transparent,stencil:!0,preserveDrawingBuffer:a.options.preserveDrawingBuffer,powerPreference:a.options.powerPreference},a._backgroundColorRgba[3]=a.transparent?0:1,a.maskManager=new n.default(a),a.stencilManager=new s.default(a),a.emptyRenderer=new d.default(a),a.currentRenderer=a.emptyRenderer,a.textureManager=null,a.filterManager=null,a.initPlugins(),a.options.context&&(0,E.default)(a.options.context),a.gl=a.options.context||C.default.createContext(a.view,a._contextOptions),a.CONTEXT_UID=j++,a.state=new R.default(a.gl),a.renderingToScreen=!0,a.boundTextures=null,a._activeShader=null,a._activeVao=null,a._activeRenderTarget=null,a._initContext(),a.drawModes=(0,v.default)(a.gl),a._nextTextureLocation=0,a.setBlendMode(0),a}return D(r,e),r.prototype._initContext=function(){var e=this.gl;e.isContextLost()&&e.getExtension("WEBGL_lose_context")&&e.getExtension("WEBGL_lose_context").restoreContext();var t=e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS);this._activeShader=null,this._activeVao=null,this.boundTextures=new Array(t),this.emptyTextures=new Array(t),this.textureManager=new x.default(this),this.filterManager=new a.default(this),this.textureGC=new f.default(this),this.state.resetToDefault(),this.rootRenderTarget=new l.default(e,this.width,this.height,null,this.resolution,!0),this.rootRenderTarget.clearColor=this._backgroundColorRgba,this.bindRenderTarget(this.rootRenderTarget);var r=new C.default.GLTexture.fromData(e,null,1,1),n={_glTextures:{}};n._glTextures[this.CONTEXT_UID]={};for(var i=0;i<t;i++){var s=new T.default;s._glTextures[this.CONTEXT_UID]=r,this.boundTextures[i]=n,this.emptyTextures[i]=s,this.bindTexture(null,i)}this.emit("context",e),this.resize(this.screen.width,this.screen.height)},r.prototype.render=function(e,t,r,n,i){if(this.renderingToScreen=!t,this.emit("prerender"),this.gl&&!this.gl.isContextLost()){if(this._nextTextureLocation=0,t||(this._lastObjectRendered=e),!i){var s=e.parent;e.parent=this._tempDisplayObjectParent,e.updateTransform(),e.parent=s}this.bindRenderTexture(t,n),this.currentRenderer.start(),(void 0!==r?r:this.clearBeforeRender)&&this._activeRenderTarget.clear(),e.renderWebGL(this),this.currentRenderer.flush(),this.textureGC.update(),this.emit("postrender")}},r.prototype.setObjectRenderer=function(e){this.currentRenderer!==e&&(this.currentRenderer.stop(),this.currentRenderer=e,this.currentRenderer.start())},r.prototype.flush=function(){this.setObjectRenderer(this.emptyRenderer)},r.prototype.resize=function(e,r){t.default.prototype.resize.call(this,e,r),this.rootRenderTarget.resize(e,r),this._activeRenderTarget===this.rootRenderTarget&&(this.rootRenderTarget.activate(),this._activeShader&&(this._activeShader.uniforms.projectionMatrix=this.rootRenderTarget.projectionMatrix.toArray(!0)))},r.prototype.setBlendMode=function(e){this.state.setBlendMode(e)},r.prototype.clear=function(e){this._activeRenderTarget.clear(e)},r.prototype.setTransform=function(e){this._activeRenderTarget.transform=e},r.prototype.clearRenderTexture=function(e,t){var r=e.baseTexture._glRenderTargets[this.CONTEXT_UID];return r&&r.clear(t),this},r.prototype.bindRenderTexture=function(e,t){var r=void 0;if(e){var n=e.baseTexture;n._glRenderTargets[this.CONTEXT_UID]||this.textureManager.updateTexture(n,0),this.unbindTexture(n),(r=n._glRenderTargets[this.CONTEXT_UID]).setFrame(e.frame)}else r=this.rootRenderTarget;return r.transform=t,this.bindRenderTarget(r),this},r.prototype.bindRenderTarget=function(e){return e!==this._activeRenderTarget&&(this._activeRenderTarget=e,e.activate(),this._activeShader&&(this._activeShader.uniforms.projectionMatrix=e.projectionMatrix.toArray(!0)),this.stencilManager.setMaskStack(e.stencilMaskStack)),this},r.prototype.bindShader=function(e,t){return this._activeShader!==e&&(this._activeShader=e,e.bind(),!1!==t&&(e.uniforms.projectionMatrix=this._activeRenderTarget.projectionMatrix.toArray(!0))),this},r.prototype.bindTexture=function(e,t,r){if((e=(e=e||this.emptyTextures[t]).baseTexture||e).touched=this.textureGC.count,r)t=t||0;else{for(var n=0;n<this.boundTextures.length;n++)if(this.boundTextures[n]===e)return n;void 0===t&&(this._nextTextureLocation++,this._nextTextureLocation%=this.boundTextures.length,t=this.boundTextures.length-this._nextTextureLocation-1)}var i=this.gl,s=e._glTextures[this.CONTEXT_UID];return s?(this.boundTextures[t]=e,i.activeTexture(i.TEXTURE0+t),i.bindTexture(i.TEXTURE_2D,s.texture)):this.textureManager.updateTexture(e,t),t},r.prototype.unbindTexture=function(e){var t=this.gl;e=e.baseTexture||e;for(var r=0;r<this.boundTextures.length;r++)this.boundTextures[r]===e&&(this.boundTextures[r]=this.emptyTextures[r],t.activeTexture(t.TEXTURE0+r),t.bindTexture(t.TEXTURE_2D,this.emptyTextures[r]._glTextures[this.CONTEXT_UID].texture));return this},r.prototype.createVao=function(){return new C.default.VertexArrayObject(this.gl,this.state.attribState)},r.prototype.bindVao=function(e){return this._activeVao===e?this:(e?e.bind():this._activeVao&&this._activeVao.unbind(),this._activeVao=e,this)},r.prototype.reset=function(){return this.setObjectRenderer(this.emptyRenderer),this._activeShader=null,this._activeRenderTarget=this.rootRenderTarget,this.rootRenderTarget.activate(),this.state.resetToDefault(),this},r.prototype.handleContextLost=function(e){e.preventDefault()},r.prototype.handleContextRestored=function(){this.textureManager.removeAll(),this.filterManager.destroy(!0),this._initContext()},r.prototype.destroy=function(t){this.destroyPlugins(),this.view.removeEventListener("webglcontextlost",this.handleContextLost),this.view.removeEventListener("webglcontextrestored",this.handleContextRestored),this.textureManager.destroy(),e.prototype.destroy.call(this,t),this.uid=0,this.maskManager.destroy(),this.stencilManager.destroy(),this.filterManager.destroy(),this.maskManager=null,this.filterManager=null,this.textureManager=null,this.currentRenderer=null,this.handleContextLost=null,this.handleContextRestored=null,this._contextOptions=null,this.gl.useProgram(null),this.gl.getExtension("WEBGL_lose_context")&&this.gl.getExtension("WEBGL_lose_context").loseContext(),this.gl=null},r}(t.default);exports.default=q,M.pluginTarget.mixin(q);
},{"../SystemRenderer":"Hz2Z","./managers/MaskManager":"OOwQ","./managers/StencilManager":"juli","./managers/FilterManager":"S5Wx","./utils/RenderTarget":"Xw9x","./utils/ObjectRenderer":"oXPp","./TextureManager":"+UA8","../../textures/BaseTexture":"ce6K","./TextureGarbageCollector":"qM/P","./WebGLState":"TVBW","./utils/mapWebGLDrawModesToPixi":"p4CC","./utils/validateContext":"b6AE","../../utils":"dDI1","pixi-gl-core":"PJsv","../../const":"YEQi"}],"fst5":[function(require,module,exports) {
"use strict";exports.__esModule=!0,exports.default=a;var r=require("../../Shader"),e=t(r),o=require("path");function t(r){return r&&r.__esModule?r:{default:r}}var n=["varying vec2 vTextureCoord;","varying vec4 vColor;","varying float vTextureId;","uniform sampler2D uSamplers[%count%];","void main(void){","vec4 color;","float textureId = floor(vTextureId+0.5);","%forloop%","gl_FragColor = color * vColor;","}"].join("\n");function a(r,o){var t=n;t=(t=t.replace(/%count%/gi,o)).replace(/%forloop%/gi,i(o));for(var a=new e.default(r,"precision highp float;\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\nattribute vec4 aColor;\nattribute float aTextureId;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\nvarying float vTextureId;\n\nvoid main(void){\n    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n    vTextureCoord = aTextureCoord;\n    vTextureId = aTextureId;\n    vColor = aColor;\n}\n",t),u=[],v=0;v<o;v++)u[v]=v;return a.bind(),a.uniforms.uSamplers=u,a}function i(r){var e="";e+="\n",e+="\n";for(var o=0;o<r;o++)o>0&&(e+="\nelse "),o<r-1&&(e+="if(textureId == "+o+".0)"),e+="\n{",e+="\n\tcolor = texture2D(uSamplers["+o+"], vTextureCoord);",e+="\n}";return e+="\n",e+="\n"}
},{"../../Shader":"wBQE","path":"UUq2"}],"GkaI":[function(require,module,exports) {
"use strict";exports.__esModule=!0,exports.default=a;var e=require("pixi-gl-core"),t=r(e);function r(e){return e&&e.__esModule?e:{default:e}}var o=["precision mediump float;","void main(void){","float test = 0.1;","%forloop%","gl_FragColor = vec4(0.0);","}"].join("\n");function a(e,r){var a=!r;if(0===e)throw new Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");if(a){var i=document.createElement("canvas");i.width=1,i.height=1,r=t.default.createContext(i)}for(var l=r.createShader(r.FRAGMENT_SHADER);;){var s=o.replace(/%forloop%/gi,n(e));if(r.shaderSource(l,s),r.compileShader(l),r.getShaderParameter(l,r.COMPILE_STATUS))break;e=e/2|0}return a&&r.getExtension("WEBGL_lose_context")&&r.getExtension("WEBGL_lose_context").loseContext(),e}function n(e){for(var t="",r=0;r<e;++r)r>0&&(t+="\nelse "),r<e-1&&(t+="if(test == "+r+".0){}");return t}
},{"pixi-gl-core":"PJsv"}],"llp6":[function(require,module,exports) {

"use strict";function t(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}exports.__esModule=!0;var i=function(){function i(s){t(this,i),this.vertices=new ArrayBuffer(s),this.float32View=new Float32Array(this.vertices),this.uint32View=new Uint32Array(this.vertices)}return i.prototype.destroy=function(){this.vertices=null,this.positions=null,this.uvs=null,this.colors=null},i}();exports.default=i;
},{}],"lQAb":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=require("../../renderers/webgl/utils/ObjectRenderer"),t=B(e),r=require("../../renderers/webgl/WebGLRenderer"),i=B(r),s=require("../../utils/createIndicesForQuads"),n=B(s),u=require("./generateMultiTextureShader"),d=B(u),o=require("../../renderers/webgl/utils/checkMaxIfStatmentsInShader"),a=B(o),h=require("./BatchBuffer"),l=B(h),f=require("../../settings"),v=B(f),x=require("../../utils"),p=require("pixi-gl-core"),c=B(p),_=require("bit-twiddle"),b=B(_);function B(e){return e&&e.__esModule?e:{default:e}}function T(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function A(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=0,E=0,I=function(e){function t(r){T(this,t);var i=S(this,e.call(this,r));i.vertSize=5,i.vertByteSize=4*i.vertSize,i.size=v.default.SPRITE_BATCH_SIZE,i.buffers=[];for(var s=1;s<=b.default.nextPow2(i.size);s*=2)i.buffers.push(new l.default(4*s*i.vertByteSize));i.indices=(0,n.default)(i.size),i.shader=null,i.currentIndex=0,i.groups=[];for(var u=0;u<i.size;u++)i.groups[u]={textures:[],textureCount:0,ids:[],size:0,start:0,blend:0};return i.sprites=[],i.vertexBuffers=[],i.vaos=[],i.vaoMax=2,i.vertexCount=0,i.renderer.on("prerender",i.onPrerender,i),i}return A(t,e),t.prototype.onContextChange=function(){var e=this.renderer.gl;this.renderer.legacy?this.MAX_TEXTURES=1:(this.MAX_TEXTURES=Math.min(e.getParameter(e.MAX_TEXTURE_IMAGE_UNITS),v.default.SPRITE_MAX_TEXTURES),this.MAX_TEXTURES=(0,a.default)(this.MAX_TEXTURES,e)),this.shader=(0,d.default)(e,this.MAX_TEXTURES),this.indexBuffer=c.default.GLBuffer.createIndexBuffer(e,this.indices,e.STATIC_DRAW),this.renderer.bindVao(null);for(var t=this.shader.attributes,r=0;r<this.vaoMax;r++){var i=this.vertexBuffers[r]=c.default.GLBuffer.createVertexBuffer(e,null,e.STREAM_DRAW),s=this.renderer.createVao().addIndex(this.indexBuffer).addAttribute(i,t.aVertexPosition,e.FLOAT,!1,this.vertByteSize,0).addAttribute(i,t.aTextureCoord,e.UNSIGNED_SHORT,!0,this.vertByteSize,8).addAttribute(i,t.aColor,e.UNSIGNED_BYTE,!0,this.vertByteSize,12);t.aTextureId&&s.addAttribute(i,t.aTextureId,e.FLOAT,!1,this.vertByteSize,16),this.vaos[r]=s}this.vao=this.vaos[0],this.currentBlendMode=99999,this.boundTextures=new Array(this.MAX_TEXTURES)},t.prototype.onPrerender=function(){this.vertexCount=0},t.prototype.render=function(e){this.currentIndex>=this.size&&this.flush(),e._texture._uvs&&(this.sprites[this.currentIndex++]=e)},t.prototype.flush=function(){if(0!==this.currentIndex){var e=this.renderer.gl,t=this.MAX_TEXTURES,r=b.default.nextPow2(this.currentIndex),i=b.default.log2(r),s=this.buffers[i],n=this.sprites,u=this.groups,d=s.float32View,o=s.uint32View,a=this.boundTextures,h=this.renderer.boundTextures,l=this.renderer.textureGC.count,f=0,p=void 0,_=void 0,B=1,T=0,S=u[0],A=void 0,I=void 0,M=x.premultiplyBlendMode[n[0]._texture.baseTexture.premultipliedAlpha?1:0][n[0].blendMode];S.textureCount=0,S.start=0,S.blend=M,y++;var C=void 0;for(C=0;C<t;++C)a[C]=h[C],a[C]._virtalBoundId=C;for(C=0;C<this.currentIndex;++C){var R=n[C];p=R._texture.baseTexture;var z=x.premultiplyBlendMode[Number(p.premultipliedAlpha)][R.blendMode];if(M!==z&&(M=z,_=null,T=t,y++),_!==p&&(_=p,p._enabled!==y)){if(T===t&&(y++,S.size=C-S.start,T=0,(S=u[B++]).blend=M,S.textureCount=0,S.start=C),p.touched=l,-1===p._virtalBoundId)for(var U=0;U<t;++U){var g=(U+E)%t,w=a[g];if(w._enabled!==y){E++,w._virtalBoundId=-1,p._virtalBoundId=g,a[g]=p;break}}p._enabled=y,S.textureCount++,S.ids[T]=p._virtalBoundId,S.textures[T++]=p}if(A=R.vertexData,I=R._texture._uvs.uvsUint32,this.renderer.roundPixels){var X=this.renderer.resolution;d[f]=(A[0]*X|0)/X,d[f+1]=(A[1]*X|0)/X,d[f+5]=(A[2]*X|0)/X,d[f+6]=(A[3]*X|0)/X,d[f+10]=(A[4]*X|0)/X,d[f+11]=(A[5]*X|0)/X,d[f+15]=(A[6]*X|0)/X,d[f+16]=(A[7]*X|0)/X}else d[f]=A[0],d[f+1]=A[1],d[f+5]=A[2],d[f+6]=A[3],d[f+10]=A[4],d[f+11]=A[5],d[f+15]=A[6],d[f+16]=A[7];o[f+2]=I[0],o[f+7]=I[1],o[f+12]=I[2],o[f+17]=I[3];var P=Math.min(R.worldAlpha,1),N=P<1&&p.premultipliedAlpha?(0,x.premultiplyTint)(R._tintRGB,P):R._tintRGB+(255*P<<24);o[f+3]=o[f+8]=o[f+13]=o[f+18]=N,d[f+4]=d[f+9]=d[f+14]=d[f+19]=p._virtalBoundId,f+=20}if(S.size=C-S.start,v.default.CAN_UPLOAD_SAME_BUFFER)this.vertexBuffers[this.vertexCount].upload(s.vertices,0,!0);else{if(this.vaoMax<=this.vertexCount){this.vaoMax++;var O=this.shader.attributes,m=this.vertexBuffers[this.vertexCount]=c.default.GLBuffer.createVertexBuffer(e,null,e.STREAM_DRAW),G=this.renderer.createVao().addIndex(this.indexBuffer).addAttribute(m,O.aVertexPosition,e.FLOAT,!1,this.vertByteSize,0).addAttribute(m,O.aTextureCoord,e.UNSIGNED_SHORT,!0,this.vertByteSize,8).addAttribute(m,O.aColor,e.UNSIGNED_BYTE,!0,this.vertByteSize,12);O.aTextureId&&G.addAttribute(m,O.aTextureId,e.FLOAT,!1,this.vertByteSize,16),this.vaos[this.vertexCount]=G}this.renderer.bindVao(this.vaos[this.vertexCount]),this.vertexBuffers[this.vertexCount].upload(s.vertices,0,!1),this.vertexCount++}for(C=0;C<t;++C)h[C]._virtalBoundId=-1;for(C=0;C<B;++C){for(var D=u[C],L=D.textureCount,V=0;V<L;V++)_=D.textures[V],h[D.ids[V]]!==_&&this.renderer.bindTexture(_,D.ids[V],!0),_._virtalBoundId=-1;this.renderer.state.setBlendMode(D.blend),e.drawElements(e.TRIANGLES,6*D.size,e.UNSIGNED_SHORT,6*D.start*2)}this.currentIndex=0}},t.prototype.start=function(){this.renderer.bindShader(this.shader),v.default.CAN_UPLOAD_SAME_BUFFER&&(this.renderer.bindVao(this.vaos[this.vertexCount]),this.vertexBuffers[this.vertexCount].bind())},t.prototype.stop=function(){this.flush()},t.prototype.destroy=function(){for(var t=0;t<this.vaoMax;t++)this.vertexBuffers[t]&&this.vertexBuffers[t].destroy(),this.vaos[t]&&this.vaos[t].destroy();this.indexBuffer&&this.indexBuffer.destroy(),this.renderer.off("prerender",this.onPrerender,this),e.prototype.destroy.call(this),this.shader&&(this.shader.destroy(),this.shader=null),this.vertexBuffers=null,this.vaos=null,this.indexBuffer=null,this.indices=null,this.sprites=null;for(var r=0;r<this.buffers.length;++r)this.buffers[r].destroy()},t}(t.default);exports.default=I,i.default.registerPlugin("sprite",I);
},{"../../renderers/webgl/utils/ObjectRenderer":"oXPp","../../renderers/webgl/WebGLRenderer":"i77b","../../utils/createIndicesForQuads":"DI0o","./generateMultiTextureShader":"fst5","../../renderers/webgl/utils/checkMaxIfStatmentsInShader":"GkaI","./BatchBuffer":"llp6","../../settings":"tMVT","../../utils":"dDI1","pixi-gl-core":"PJsv","bit-twiddle":"gXRl"}],"gZse":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=function(){function t(t,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(i,e,n){return e&&t(i.prototype,e),n&&t(i,n),i}}(),i=require("../const"),e=require("../utils");function n(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}var r={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fillGradientType:i.TEXT_GRADIENT.LINEAR_VERTICAL,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,wordWrap:!1,wordWrapWidth:100,leading:0},s=function(){function i(t){n(this,i),this.styleID=0,Object.assign(this,r,t)}return i.prototype.clone=function(){var t={};for(var e in r)t[e]=this[e];return new i(t)},i.prototype.reset=function(){Object.assign(this,r)},i.prototype.toFontString=function(){var t="number"==typeof this.fontSize?this.fontSize+"px":this.fontSize,i=this.fontFamily;Array.isArray(this.fontFamily)||(i=this.fontFamily.split(","));for(var e=i.length-1;e>=0;e--){var n=i[e].trim();/([\"\'])[^\'\"]+\1/.test(n)||(n='"'+n+'"'),i[e]=n}return this.fontStyle+" "+this.fontVariant+" "+this.fontWeight+" "+t+" "+i.join(",")},t(i,[{key:"align",get:function(){return this._align},set:function(t){this._align!==t&&(this._align=t,this.styleID++)}},{key:"breakWords",get:function(){return this._breakWords},set:function(t){this._breakWords!==t&&(this._breakWords=t,this.styleID++)}},{key:"dropShadow",get:function(){return this._dropShadow},set:function(t){this._dropShadow!==t&&(this._dropShadow=t,this.styleID++)}},{key:"dropShadowAlpha",get:function(){return this._dropShadowAlpha},set:function(t){this._dropShadowAlpha!==t&&(this._dropShadowAlpha=t,this.styleID++)}},{key:"dropShadowAngle",get:function(){return this._dropShadowAngle},set:function(t){this._dropShadowAngle!==t&&(this._dropShadowAngle=t,this.styleID++)}},{key:"dropShadowBlur",get:function(){return this._dropShadowBlur},set:function(t){this._dropShadowBlur!==t&&(this._dropShadowBlur=t,this.styleID++)}},{key:"dropShadowColor",get:function(){return this._dropShadowColor},set:function(t){var i=h(t);this._dropShadowColor!==i&&(this._dropShadowColor=i,this.styleID++)}},{key:"dropShadowDistance",get:function(){return this._dropShadowDistance},set:function(t){this._dropShadowDistance!==t&&(this._dropShadowDistance=t,this.styleID++)}},{key:"fill",get:function(){return this._fill},set:function(t){var i=h(t);this._fill!==i&&(this._fill=i,this.styleID++)}},{key:"fillGradientType",get:function(){return this._fillGradientType},set:function(t){this._fillGradientType!==t&&(this._fillGradientType=t,this.styleID++)}},{key:"fillGradientStops",get:function(){return this._fillGradientStops},set:function(t){a(this._fillGradientStops,t)||(this._fillGradientStops=t,this.styleID++)}},{key:"fontFamily",get:function(){return this._fontFamily},set:function(t){this.fontFamily!==t&&(this._fontFamily=t,this.styleID++)}},{key:"fontSize",get:function(){return this._fontSize},set:function(t){this._fontSize!==t&&(this._fontSize=t,this.styleID++)}},{key:"fontStyle",get:function(){return this._fontStyle},set:function(t){this._fontStyle!==t&&(this._fontStyle=t,this.styleID++)}},{key:"fontVariant",get:function(){return this._fontVariant},set:function(t){this._fontVariant!==t&&(this._fontVariant=t,this.styleID++)}},{key:"fontWeight",get:function(){return this._fontWeight},set:function(t){this._fontWeight!==t&&(this._fontWeight=t,this.styleID++)}},{key:"letterSpacing",get:function(){return this._letterSpacing},set:function(t){this._letterSpacing!==t&&(this._letterSpacing=t,this.styleID++)}},{key:"lineHeight",get:function(){return this._lineHeight},set:function(t){this._lineHeight!==t&&(this._lineHeight=t,this.styleID++)}},{key:"leading",get:function(){return this._leading},set:function(t){this._leading!==t&&(this._leading=t,this.styleID++)}},{key:"lineJoin",get:function(){return this._lineJoin},set:function(t){this._lineJoin!==t&&(this._lineJoin=t,this.styleID++)}},{key:"miterLimit",get:function(){return this._miterLimit},set:function(t){this._miterLimit!==t&&(this._miterLimit=t,this.styleID++)}},{key:"padding",get:function(){return this._padding},set:function(t){this._padding!==t&&(this._padding=t,this.styleID++)}},{key:"stroke",get:function(){return this._stroke},set:function(t){var i=h(t);this._stroke!==i&&(this._stroke=i,this.styleID++)}},{key:"strokeThickness",get:function(){return this._strokeThickness},set:function(t){this._strokeThickness!==t&&(this._strokeThickness=t,this.styleID++)}},{key:"textBaseline",get:function(){return this._textBaseline},set:function(t){this._textBaseline!==t&&(this._textBaseline=t,this.styleID++)}},{key:"trim",get:function(){return this._trim},set:function(t){this._trim!==t&&(this._trim=t,this.styleID++)}},{key:"wordWrap",get:function(){return this._wordWrap},set:function(t){this._wordWrap!==t&&(this._wordWrap=t,this.styleID++)}},{key:"wordWrapWidth",get:function(){return this._wordWrapWidth},set:function(t){this._wordWrapWidth!==t&&(this._wordWrapWidth=t,this.styleID++)}}]),i}();function o(t){return"number"==typeof t?(0,e.hex2string)(t):("string"==typeof t&&0===t.indexOf("0x")&&(t=t.replace("0x","#")),t)}function h(t){if(Array.isArray(t)){for(var i=0;i<t.length;++i)t[i]=o(t[i]);return t}return o(t)}function a(t,i){if(!Array.isArray(t)||!Array.isArray(i))return!1;if(t.length!==i.length)return!1;for(var e=0;e<t.length;++e)if(t[e]!==i[e])return!1;return!0}exports.default=s;
},{"../const":"YEQi","../utils":"dDI1"}],"nMdc":[function(require,module,exports) {
"use strict";function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}exports.__esModule=!0;var e=function(){function e(n,a,r,i,o,s,h,l,f){t(this,e),this.text=n,this.style=a,this.width=r,this.height=i,this.lines=o,this.lineWidths=s,this.lineHeight=h,this.maxLineWidth=l,this.fontProperties=f}return e.measureText=function(t,n,a){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e._canvas;a=a||n.wordWrap;var i=n.toFontString(),o=e.measureFont(i),s=r.getContext("2d");s.font=i;for(var h=(a?e.wordWrap(t,n,r):t).split(/(?:\r\n|\r|\n)/),l=new Array(h.length),f=0,d=0;d<h.length;d++){var c=s.measureText(h[d]).width+(h[d].length-1)*n.letterSpacing;l[d]=c,f=Math.max(f,c)}var v=f+n.strokeThickness;n.dropShadow&&(v+=n.dropShadowDistance);var g=n.lineHeight||o.fontSize+n.strokeThickness,u=Math.max(g,o.fontSize+n.strokeThickness)+(h.length-1)*(g+n.leading);return n.dropShadow&&(u+=n.dropShadowDistance),new e(t,n,v,u,h,l,g+n.leading,f,o)},e.wordWrap=function(t,n){for(var a=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:e._canvas).getContext("2d"),r="",i=t.split("\n"),o=n.wordWrapWidth,s={},h=0;h<i.length;h++){for(var l=o,f=i[h].split(" "),d=0;d<f.length;d++){var c=a.measureText(f[d]).width;if(n.breakWords&&c>o)for(var v=f[d].split(""),g=0;g<v.length;g++){var u=v[g],w=s[u];void 0===w&&(w=a.measureText(u).width,s[u]=w),w>l?(r+="\n"+u,l=o-w):(0===g&&(r+=" "),r+=u,l-=w)}else{var x=c+a.measureText(" ").width;0===d||x>l?(d>0&&(r+="\n"),r+=f[d],l=o-c):(l-=x,r+=" "+f[d])}}h<i.length-1&&(r+="\n")}return r},e.measureFont=function(t){if(e._fonts[t])return e._fonts[t];var n={},a=e._canvas,r=e._context;r.font=t;var i=Math.ceil(r.measureText("|MÉq").width),o=Math.ceil(r.measureText("M").width),s=2*o;o=1.4*o|0,a.width=i,a.height=s,r.fillStyle="#f00",r.fillRect(0,0,i,s),r.font=t,r.textBaseline="alphabetic",r.fillStyle="#000",r.fillText("|MÉq",0,o);var h=r.getImageData(0,0,i,s).data,l=h.length,f=4*i,d=0,c=0,v=!1;for(d=0;d<o;++d){for(var g=0;g<f;g+=4)if(255!==h[c+g]){v=!0;break}if(v)break;c+=f}for(n.ascent=o-d,c=l-f,v=!1,d=s;d>o;--d){for(var u=0;u<f;u+=4)if(255!==h[c+u]){v=!0;break}if(v)break;c-=f}return n.descent=d-o,n.fontSize=n.ascent+n.descent,e._fonts[t]=n,n},e}();exports.default=e;var n=document.createElement("canvas");n.width=n.height=10,e._canvas=n,e._context=n.getContext("2d"),e._fonts={};
},{}],"dt3n":[function(require,module,exports) {
"use strict";function t(t){var l=t.width,o=t.height,e=t.getContext("2d"),i=e.getImageData(0,0,l,o).data,g=i.length,h={top:null,left:null,right:null,bottom:null},n=void 0,r=void 0,u=void 0;for(n=0;n<g;n+=4)0!==i[n+3]&&(r=n/4%l,u=~~(n/4/l),null===h.top&&(h.top=u),null===h.left?h.left=r:r<h.left&&(h.left=r),null===h.right?h.right=r+1:h.right<r&&(h.right=r+1),null===h.bottom?h.bottom=u:h.bottom<u&&(h.bottom=u));return l=h.right-h.left,{height:o=h.bottom-h.top+1,width:l,data:e.getImageData(h.left,h.top,l,o)}}exports.__esModule=!0,exports.default=t;
},{}],"sdh2":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),e=require("../sprites/Sprite"),i=y(e),r=require("../textures/Texture"),s=y(r),n=require("../math"),o=require("../utils"),a=require("../const"),h=require("../settings"),l=y(h),u=require("./TextStyle"),d=y(u),c=require("./TextMetrics"),p=y(c),f=require("../utils/trimCanvas"),g=y(f);function y(t){return t&&t.__esModule?t:{default:t}}function x(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function w(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var v={texture:!0,children:!1,baseTexture:!0},S=function(e){function i(t,r,o){x(this,i),(o=o||document.createElement("canvas")).width=3,o.height=3;var a=s.default.fromCanvas(o,l.default.SCALE_MODE,"text");a.orig=new n.Rectangle,a.trim=new n.Rectangle;var h=_(this,e.call(this,a));return s.default.addToCache(h._texture,h._texture.baseTexture.textureCacheIds[0]),h.canvas=o,h.context=h.canvas.getContext("2d"),h.resolution=l.default.RESOLUTION,h._text=null,h._style=null,h._styleListener=null,h._font="",h.text=t,h.style=r,h.localStyleID=-1,h}return w(i,e),i.prototype.updateText=function(t){var e=this._style;if(this.localStyleID!==e.styleID&&(this.dirty=!0,this.localStyleID=e.styleID),this.dirty||!t){this._font=this._style.toFontString();var i=this.context,r=p.default.measureText(this._text,this._style,this._style.wordWrap,this.canvas),s=r.width,n=r.height,o=r.lines,a=r.lineHeight,h=r.lineWidths,l=r.maxLineWidth,u=r.fontProperties;this.canvas.width=Math.ceil((s+2*e.padding)*this.resolution),this.canvas.height=Math.ceil((n+2*e.padding)*this.resolution),i.scale(this.resolution,this.resolution),i.clearRect(0,0,this.canvas.width,this.canvas.height),i.font=this._font,i.strokeStyle=e.stroke,i.lineWidth=e.strokeThickness,i.textBaseline=e.textBaseline,i.lineJoin=e.lineJoin,i.miterLimit=e.miterLimit;var d=void 0,c=void 0;if(e.dropShadow){i.fillStyle=e.dropShadowColor,i.globalAlpha=e.dropShadowAlpha,i.shadowBlur=e.dropShadowBlur,e.dropShadowBlur>0&&(i.shadowColor=e.dropShadowColor);for(var f=Math.cos(e.dropShadowAngle)*e.dropShadowDistance,g=Math.sin(e.dropShadowAngle)*e.dropShadowDistance,y=0;y<o.length;y++)d=e.strokeThickness/2,c=e.strokeThickness/2+y*a+u.ascent,"right"===e.align?d+=l-h[y]:"center"===e.align&&(d+=(l-h[y])/2),e.fill&&(this.drawLetterSpacing(o[y],d+f+e.padding,c+g+e.padding),e.stroke&&e.strokeThickness&&(i.strokeStyle=e.dropShadowColor,this.drawLetterSpacing(o[y],d+f+e.padding,c+g+e.padding,!0),i.strokeStyle=e.stroke))}i.shadowBlur=0,i.globalAlpha=1,i.fillStyle=this._generateFillStyle(e,o);for(var x=0;x<o.length;x++)d=e.strokeThickness/2,c=e.strokeThickness/2+x*a+u.ascent,"right"===e.align?d+=l-h[x]:"center"===e.align&&(d+=(l-h[x])/2),e.stroke&&e.strokeThickness&&this.drawLetterSpacing(o[x],d+e.padding,c+e.padding,!0),e.fill&&this.drawLetterSpacing(o[x],d+e.padding,c+e.padding);this.updateTexture()}},i.prototype.drawLetterSpacing=function(t,e,i){var r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],s=this._style.letterSpacing;if(0!==s)for(var n=String.prototype.split.call(t,""),o=e,a=0,h="";a<t.length;)h=n[a++],r?this.context.strokeText(h,o,i):this.context.fillText(h,o,i),o+=this.context.measureText(h).width+s;else r?this.context.strokeText(t,e,i):this.context.fillText(t,e,i)},i.prototype.updateTexture=function(){var t=this.canvas;if(this._style.trim){var e=(0,g.default)(t);t.width=e.width,t.height=e.height,this.context.putImageData(e.data,0,0)}var i=this._texture,r=this._style,s=r.trim?0:r.padding,n=i.baseTexture;n.hasLoaded=!0,n.resolution=this.resolution,n.realWidth=t.width,n.realHeight=t.height,n.width=t.width/this.resolution,n.height=t.height/this.resolution,i.trim.width=i._frame.width=t.width/this.resolution,i.trim.height=i._frame.height=t.height/this.resolution,i.trim.x=-s,i.trim.y=-s,i.orig.width=i._frame.width-2*s,i.orig.height=i._frame.height-2*s,this._onTextureUpdate(),n.emit("update",n),this.dirty=!1},i.prototype.renderWebGL=function(t){this.resolution!==t.resolution&&(this.resolution=t.resolution,this.dirty=!0),this.updateText(!0),e.prototype.renderWebGL.call(this,t)},i.prototype._renderCanvas=function(t){this.resolution!==t.resolution&&(this.resolution=t.resolution,this.dirty=!0),this.updateText(!0),e.prototype._renderCanvas.call(this,t)},i.prototype.getLocalBounds=function(t){return this.updateText(!0),e.prototype.getLocalBounds.call(this,t)},i.prototype._calculateBounds=function(){this.updateText(!0),this.calculateVertices(),this._bounds.addQuad(this.vertexData)},i.prototype._onStyleChange=function(){this.dirty=!0},i.prototype._generateFillStyle=function(t,e){if(!Array.isArray(t.fill))return t.fill;if(navigator.isCocoonJS)return t.fill[0];var i=void 0,r=void 0,s=void 0,n=void 0,o=this.canvas.width/this.resolution,h=this.canvas.height/this.resolution,l=t.fill.slice(),u=t.fillGradientStops.slice();if(!u.length)for(var d=l.length+1,c=1;c<d;++c)u.push(c/d);if(l.unshift(t.fill[0]),u.unshift(0),l.push(t.fill[t.fill.length-1]),u.push(1),t.fillGradientType===a.TEXT_GRADIENT.LINEAR_VERTICAL){i=this.context.createLinearGradient(o/2,0,o/2,h),r=(l.length+1)*e.length,s=0;for(var p=0;p<e.length;p++){s+=1;for(var f=0;f<l.length;f++)n="number"==typeof u[f]?u[f]/e.length+p/e.length:s/r,i.addColorStop(n,l[f]),s++}}else{i=this.context.createLinearGradient(0,h/2,o,h/2),r=l.length+1,s=1;for(var g=0;g<l.length;g++)n="number"==typeof u[g]?u[g]:s/r,i.addColorStop(n,l[g]),s++}return i},i.prototype.destroy=function(t){"boolean"==typeof t&&(t={children:t}),t=Object.assign({},v,t),e.prototype.destroy.call(this,t),this.context=null,this.canvas=null,this._style=null},t(i,[{key:"width",get:function(){return this.updateText(!0),Math.abs(this.scale.x)*this._texture.orig.width},set:function(t){this.updateText(!0);var e=(0,o.sign)(this.scale.x)||1;this.scale.x=e*t/this._texture.orig.width,this._width=t}},{key:"height",get:function(){return this.updateText(!0),Math.abs(this.scale.y)*this._texture.orig.height},set:function(t){this.updateText(!0);var e=(0,o.sign)(this.scale.y)||1;this.scale.y=e*t/this._texture.orig.height,this._height=t}},{key:"style",get:function(){return this._style},set:function(t){(t=t||{})instanceof d.default?this._style=t:this._style=new d.default(t),this.localStyleID=-1,this.dirty=!0}},{key:"text",get:function(){return this._text},set:function(t){t=String(""===t||null==t?" ":t),this._text!==t&&(this._text=t,this.dirty=!0)}}]),i}(i.default);exports.default=S;
},{"../sprites/Sprite":"oWLW","../textures/Texture":"xUki","../math":"e3iB","../utils":"dDI1","../const":"YEQi","../settings":"tMVT","./TextStyle":"gZse","./TextMetrics":"nMdc","../utils/trimCanvas":"dt3n"}],"i0q3":[function(require,module,exports) {
"use strict";function i(i,t){if(!(i instanceof t))throw new TypeError("Cannot call a class as a function")}exports.__esModule=!0;var t=function(){function t(l,s,h,n,e,o,r,a){i(this,t),this.lineWidth=l,this.nativeLines=r,this.lineColor=s,this.lineAlpha=h,this._lineTint=s,this.fillColor=n,this.fillAlpha=e,this._fillTint=n,this.fill=o,this.holes=[],this.shape=a,this.type=a.type}return t.prototype.clone=function(){return new t(this.lineWidth,this.lineColor,this.lineAlpha,this.fillColor,this.fillAlpha,this.fill,this.nativeLines,this.shape)},t.prototype.addHole=function(i){this.holes.push(i)},t.prototype.destroy=function(){this.shape=null,this.holes=null},t}();exports.default=t;
},{}],"AHbX":[function(require,module,exports) {
"use strict";function e(e,r,t,s,u,o,n,p){var a=arguments.length>8&&void 0!==arguments[8]?arguments[8]:[],d=0,f=0,h=0,i=0,l=0;a.push(e,r);for(var v=1,c=0;v<=20;++v)h=(f=(d=1-(c=v/20))*d)*d,l=(i=c*c)*c,a.push(h*e+3*f*c*t+3*d*i*u+l*n,h*r+3*f*c*s+3*d*i*o+l*p);return a}exports.__esModule=!0,exports.default=e;
},{}],"f5iX":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=require("../display/Container"),e=w(t),i=require("../textures/RenderTexture"),r=w(i),h=require("../textures/Texture"),s=w(h),a=require("./GraphicsData"),n=w(a),o=require("../sprites/Sprite"),l=w(o),p=require("../math"),u=require("../utils"),c=require("../const"),d=require("../display/Bounds"),f=w(d),g=require("./utils/bezierCurveTo"),y=w(g),v=require("../renderers/canvas/CanvasRenderer"),P=w(v);function w(t){return t&&t.__esModule?t:{default:t}}function b(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function _(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function D(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var R=void 0,M=new p.Matrix,T=new p.Point,m=new Float32Array(4),S=new Float32Array(4),C=function(t){function e(){var i=arguments.length>0&&void 0!==arguments[0]&&arguments[0];b(this,e);var r=_(this,t.call(this));return r.fillAlpha=1,r.lineWidth=0,r.nativeLines=i,r.lineColor=0,r.graphicsData=[],r.tint=16777215,r._prevTint=16777215,r.blendMode=c.BLEND_MODES.NORMAL,r.currentPath=null,r._webGL={},r.isMask=!1,r.boundsPadding=0,r._localBounds=new f.default,r.dirty=0,r.fastRectDirty=-1,r.clearDirty=0,r.boundsDirty=-1,r.cachedSpriteDirty=!1,r._spriteRect=null,r._fastRect=!1,r}return D(e,t),e.prototype.clone=function(){var t=new e;t.renderable=this.renderable,t.fillAlpha=this.fillAlpha,t.lineWidth=this.lineWidth,t.lineColor=this.lineColor,t.tint=this.tint,t.blendMode=this.blendMode,t.isMask=this.isMask,t.boundsPadding=this.boundsPadding,t.dirty=0,t.cachedSpriteDirty=this.cachedSpriteDirty;for(var i=0;i<this.graphicsData.length;++i)t.graphicsData.push(this.graphicsData[i].clone());return t.currentPath=t.graphicsData[t.graphicsData.length-1],t.updateLocalBounds(),t},e.prototype.lineStyle=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(this.lineWidth=t,this.lineColor=e,this.lineAlpha=i,this.currentPath)if(this.currentPath.shape.points.length){var r=new p.Polygon(this.currentPath.shape.points.slice(-2));r.closed=!1,this.drawShape(r)}else this.currentPath.lineWidth=this.lineWidth,this.currentPath.lineColor=this.lineColor,this.currentPath.lineAlpha=this.lineAlpha;return this},e.prototype.moveTo=function(t,e){var i=new p.Polygon([t,e]);return i.closed=!1,this.drawShape(i),this},e.prototype.lineTo=function(t,e){return this.currentPath.shape.points.push(t,e),this.dirty++,this},e.prototype.quadraticCurveTo=function(t,e,i,r){this.currentPath?0===this.currentPath.shape.points.length&&(this.currentPath.shape.points=[0,0]):this.moveTo(0,0);var h=this.currentPath.shape.points,s=0,a=0;0===h.length&&this.moveTo(0,0);for(var n=h[h.length-2],o=h[h.length-1],l=1;l<=20;++l){var p=l/20;s=n+(t-n)*p,a=o+(e-o)*p,h.push(s+(t+(i-t)*p-s)*p,a+(e+(r-e)*p-a)*p)}return this.dirty++,this},e.prototype.bezierCurveTo=function(t,e,i,r,h,s){this.currentPath?0===this.currentPath.shape.points.length&&(this.currentPath.shape.points=[0,0]):this.moveTo(0,0);var a=this.currentPath.shape.points,n=a[a.length-2],o=a[a.length-1];return a.length-=2,(0,y.default)(n,o,t,e,i,r,h,s,a),this.dirty++,this},e.prototype.arcTo=function(t,e,i,r,h){this.currentPath?0===this.currentPath.shape.points.length&&this.currentPath.shape.points.push(t,e):this.moveTo(t,e);var s=this.currentPath.shape.points,a=s[s.length-2],n=s[s.length-1]-e,o=a-t,l=r-e,p=i-t,u=Math.abs(n*p-o*l);if(u<1e-8||0===h)s[s.length-2]===t&&s[s.length-1]===e||s.push(t,e);else{var c=n*n+o*o,d=l*l+p*p,f=n*l+o*p,g=h*Math.sqrt(c)/u,y=h*Math.sqrt(d)/u,v=g*f/c,P=y*f/d,w=g*p+y*o,b=g*l+y*n,_=o*(y+v),D=n*(y+v),R=p*(g+P),M=l*(g+P),T=Math.atan2(D-b,_-w),m=Math.atan2(M-b,R-w);this.arc(w+t,b+e,h,T,m,o*l>p*n)}return this.dirty++,this},e.prototype.arc=function(t,e,i,r,h){var s=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(r===h)return this;!s&&h<=r?h+=2*Math.PI:s&&r<=h&&(r+=2*Math.PI);var a=h-r,n=40*Math.ceil(Math.abs(a)/(2*Math.PI));if(0===a)return this;var o=t+Math.cos(r)*i,l=e+Math.sin(r)*i,p=this.currentPath?this.currentPath.shape.points:null;p?p[p.length-2]===o&&p[p.length-1]===l||p.push(o,l):(this.moveTo(o,l),p=this.currentPath.shape.points);for(var u=a/(2*n),c=2*u,d=Math.cos(u),f=Math.sin(u),g=n-1,y=g%1/g,v=0;v<=g;++v){var P=u+r+c*(v+y*v),w=Math.cos(P),b=-Math.sin(P);p.push((d*w+f*b)*i+t,(d*-b+f*w)*i+e)}return this.dirty++,this},e.prototype.beginFill=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.filling=!0,this.fillColor=t,this.fillAlpha=e,this.currentPath&&this.currentPath.shape.points.length<=2&&(this.currentPath.fill=this.filling,this.currentPath.fillColor=this.fillColor,this.currentPath.fillAlpha=this.fillAlpha),this},e.prototype.endFill=function(){return this.filling=!1,this.fillColor=null,this.fillAlpha=1,this},e.prototype.drawRect=function(t,e,i,r){return this.drawShape(new p.Rectangle(t,e,i,r)),this},e.prototype.drawRoundedRect=function(t,e,i,r,h){return this.drawShape(new p.RoundedRectangle(t,e,i,r,h)),this},e.prototype.drawCircle=function(t,e,i){return this.drawShape(new p.Circle(t,e,i)),this},e.prototype.drawEllipse=function(t,e,i,r){return this.drawShape(new p.Ellipse(t,e,i,r)),this},e.prototype.drawPolygon=function(t){var e=t,i=!0;if(e instanceof p.Polygon&&(i=e.closed,e=e.points),!Array.isArray(e)){e=new Array(arguments.length);for(var r=0;r<e.length;++r)e[r]=arguments[r]}var h=new p.Polygon(e);return h.closed=i,this.drawShape(h),this},e.prototype.clear=function(){return(this.lineWidth||this.filling||this.graphicsData.length>0)&&(this.lineWidth=0,this.filling=!1,this.boundsDirty=-1,this.dirty++,this.clearDirty++,this.graphicsData.length=0),this.currentPath=null,this._spriteRect=null,this},e.prototype.isFastRect=function(){return 1===this.graphicsData.length&&this.graphicsData[0].shape.type===c.SHAPES.RECT&&!this.graphicsData[0].lineWidth},e.prototype._renderWebGL=function(t){this.dirty!==this.fastRectDirty&&(this.fastRectDirty=this.dirty,this._fastRect=this.isFastRect()),this._fastRect?this._renderSpriteRect(t):(t.setObjectRenderer(t.plugins.graphics),t.plugins.graphics.render(this))},e.prototype._renderSpriteRect=function(t){var e=this.graphicsData[0].shape;this._spriteRect||(this._spriteRect=new l.default(new s.default(s.default.WHITE)));var i=this._spriteRect;if(16777215===this.tint)i.tint=this.graphicsData[0].fillColor;else{var r=m,h=S;(0,u.hex2rgb)(this.graphicsData[0].fillColor,r),(0,u.hex2rgb)(this.tint,h),r[0]*=h[0],r[1]*=h[1],r[2]*=h[2],i.tint=(0,u.rgb2hex)(r)}i.alpha=this.graphicsData[0].fillAlpha,i.worldAlpha=this.worldAlpha*i.alpha,i.blendMode=this.blendMode,i._texture._frame.width=e.width,i._texture._frame.height=e.height,i.transform.worldTransform=this.transform.worldTransform,i.anchor.set(-e.x/e.width,-e.y/e.height),i._onAnchorUpdate(),i._renderWebGL(t)},e.prototype._renderCanvas=function(t){!0!==this.isMask&&t.plugins.graphics.render(this)},e.prototype._calculateBounds=function(){this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.updateLocalBounds(),this.cachedSpriteDirty=!0);var t=this._localBounds;this._bounds.addFrame(this.transform,t.minX,t.minY,t.maxX,t.maxY)},e.prototype.containsPoint=function(t){this.worldTransform.applyInverse(t,T);for(var e=this.graphicsData,i=0;i<e.length;++i){var r=e[i];if(r.fill&&(r.shape&&r.shape.contains(T.x,T.y))){if(r.holes)for(var h=0;h<r.holes.length;h++){if(r.holes[h].contains(T.x,T.y))return!1}return!0}}return!1},e.prototype.updateLocalBounds=function(){var t=1/0,e=-1/0,i=1/0,r=-1/0;if(this.graphicsData.length)for(var h=0,s=0,a=0,n=0,o=0,l=0;l<this.graphicsData.length;l++){var p=this.graphicsData[l],u=p.type,d=p.lineWidth;if(h=p.shape,u===c.SHAPES.RECT||u===c.SHAPES.RREC)s=h.x-d/2,a=h.y-d/2,t=s<t?s:t,e=s+(n=h.width+d)>e?s+n:e,i=a<i?a:i,r=a+(o=h.height+d)>r?a+o:r;else if(u===c.SHAPES.CIRC)s=h.x,a=h.y,t=s-(n=h.radius+d/2)<t?s-n:t,e=s+n>e?s+n:e,i=a-(o=h.radius+d/2)<i?a-o:i,r=a+o>r?a+o:r;else if(u===c.SHAPES.ELIP)s=h.x,a=h.y,t=s-(n=h.width+d/2)<t?s-n:t,e=s+n>e?s+n:e,i=a-(o=h.height+d/2)<i?a-o:i,r=a+o>r?a+o:r;else for(var f=h.points,g=0,y=0,v=0,P=0,w=0,b=0,_=0,D=0,R=0;R+2<f.length;R+=2)s=f[R],a=f[R+1],g=f[R+2],y=f[R+3],v=Math.abs(g-s),P=Math.abs(y-a),o=d,(n=Math.sqrt(v*v+P*P))<1e-9||(t=(_=(g+s)/2)-(w=(o/n*P+v)/2)<t?_-w:t,e=_+w>e?_+w:e,i=(D=(y+a)/2)-(b=(o/n*v+P)/2)<i?D-b:i,r=D+b>r?D+b:r)}else t=0,e=0,i=0,r=0;var M=this.boundsPadding;this._localBounds.minX=t-M,this._localBounds.maxX=e+M,this._localBounds.minY=i-M,this._localBounds.maxY=r+M},e.prototype.drawShape=function(t){this.currentPath&&this.currentPath.shape.points.length<=2&&this.graphicsData.pop(),this.currentPath=null;var e=new n.default(this.lineWidth,this.lineColor,this.lineAlpha,this.fillColor,this.fillAlpha,this.filling,this.nativeLines,t);return this.graphicsData.push(e),e.type===c.SHAPES.POLY&&(e.shape.closed=e.shape.closed||this.filling,this.currentPath=e),this.dirty++,e},e.prototype.generateCanvasTexture=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=this.getLocalBounds(),h=r.default.create(i.width,i.height,t,e);R||(R=new P.default),this.transform.updateLocalTransform(),this.transform.localTransform.copy(M),M.invert(),M.tx-=i.x,M.ty-=i.y,R.render(this,h,!0,M);var a=s.default.fromCanvas(h.baseTexture._canvasRenderTarget.canvas,t,"graphics");return a.baseTexture.resolution=e,a.baseTexture.update(),a},e.prototype.closePath=function(){var t=this.currentPath;return t&&t.shape&&t.shape.close(),this},e.prototype.addHole=function(){var t=this.graphicsData.pop();return this.currentPath=this.graphicsData[this.graphicsData.length-1],this.currentPath.addHole(t.shape),this.currentPath=null,this},e.prototype.destroy=function(e){t.prototype.destroy.call(this,e);for(var i=0;i<this.graphicsData.length;++i)this.graphicsData[i].destroy();for(var r in this._webgl)for(var h=0;h<this._webgl[r].data.length;++h)this._webgl[r].data[h].destroy();this._spriteRect&&this._spriteRect.destroy(),this.graphicsData=null,this.currentPath=null,this._webgl=null,this._localBounds=null},e}(e.default);exports.default=C,C._SPRITE_TEXTURE=null;
},{"../display/Container":"OzBO","../textures/RenderTexture":"Jb0W","../textures/Texture":"xUki","./GraphicsData":"i0q3","../sprites/Sprite":"oWLW","../math":"e3iB","../utils":"dDI1","../const":"YEQi","../display/Bounds":"Me0q","./utils/bezierCurveTo":"AHbX","../renderers/canvas/CanvasRenderer":"GzOR"}],"3MQf":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=require("pixi-gl-core"),i=e(t);function e(t){return t&&t.__esModule?t:{default:t}}function s(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}var n=function(){function t(e,n,r){s(this,t),this.gl=e,this.color=[0,0,0],this.points=[],this.indices=[],this.buffer=i.default.GLBuffer.createVertexBuffer(e),this.indexBuffer=i.default.GLBuffer.createIndexBuffer(e),this.dirty=!0,this.nativeLines=!1,this.glPoints=null,this.glIndices=null,this.shader=n,this.vao=new i.default.VertexArrayObject(e,r).addIndex(this.indexBuffer).addAttribute(this.buffer,n.attributes.aVertexPosition,e.FLOAT,!1,24,0).addAttribute(this.buffer,n.attributes.aColor,e.FLOAT,!1,24,8)}return t.prototype.reset=function(){this.points.length=0,this.indices.length=0},t.prototype.upload=function(){this.glPoints=new Float32Array(this.points),this.buffer.upload(this.glPoints),this.glIndices=new Uint16Array(this.indices),this.indexBuffer.upload(this.glIndices),this.dirty=!1},t.prototype.destroy=function(){this.color=null,this.points=null,this.indices=null,this.vao.destroy(),this.buffer.destroy(),this.indexBuffer.destroy(),this.gl=null,this.buffer=null,this.indexBuffer=null,this.glPoints=null,this.glIndices=null},t}();exports.default=n;
},{"pixi-gl-core":"PJsv"}],"udb+":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=require("../../../Shader"),o=e(t);function e(t){return t&&t.__esModule?t:{default:t}}function r(t,o){if(!(t instanceof o))throw new TypeError("Cannot call a class as a function")}function n(t,o){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!o||"object"!=typeof o&&"function"!=typeof o?t:o}function i(t,o){if("function"!=typeof o&&null!==o)throw new TypeError("Super expression must either be null or a function, not "+typeof o);t.prototype=Object.create(o&&o.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),o&&(Object.setPrototypeOf?Object.setPrototypeOf(t,o):t.__proto__=o)}var a=function(t){function o(e){return r(this,o),n(this,t.call(this,e,["attribute vec2 aVertexPosition;","attribute vec4 aColor;","uniform mat3 translationMatrix;","uniform mat3 projectionMatrix;","uniform float alpha;","uniform vec3 tint;","varying vec4 vColor;","void main(void){","   gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);","   vColor = aColor * vec4(tint * alpha, alpha);","}"].join("\n"),["varying vec4 vColor;","void main(void){","   gl_FragColor = vColor;","}"].join("\n")))}return i(o,t),o}(o.default);exports.default=a;
},{"../../../Shader":"wBQE"}],"MEjA":[function(require,module,exports) {
"use strict";exports.__esModule=!0,exports.default=function(h,s,e){h.nativeLines?p(h,e):t(h,s)};var h=require("../../../math"),s=require("../../../utils");function t(t,p){var e=t.points;if(0!==e.length){var u=new h.Point(e[0],e[1]),n=new h.Point(e[e.length-2],e[e.length-1]);if(u.x===n.x&&u.y===n.y){(e=e.slice()).pop(),e.pop();var r=(n=new h.Point(e[e.length-2],e[e.length-1])).x+.5*(u.x-n.x),i=n.y+.5*(u.y-n.y);e.unshift(r,i),e.push(r,i)}var a=p.points,l=p.indices,o=e.length/2,v=e.length,f=a.length/6,g=t.lineWidth/2,x=(0,s.hex2rgb)(t.lineColor),q=t.lineAlpha,M=x[0]*q,c=x[1]*q,y=x[2]*q,d=e[0],b=e[1],w=e[2],P=e[3],A=0,C=0,_=-(b-P),m=d-w,L=0,W=0,j=0,k=0,z=Math.sqrt(_*_+m*m);_/=z,m/=z,_*=g,m*=g,a.push(d-_,b-m,M,c,y,q),a.push(d+_,b+m,M,c,y,q);for(var B=1;B<o-1;++B){d=e[2*(B-1)],b=e[2*(B-1)+1],w=e[2*B],P=e[2*B+1],A=e[2*(B+1)],C=e[2*(B+1)+1],_=-(b-P),m=d-w,_/=z=Math.sqrt(_*_+m*m),m/=z,_*=g,m*=g,L=-(P-C),W=w-A,L/=z=Math.sqrt(L*L+W*W),W/=z;var D=-m+b-(-m+P),E=-_+w-(-_+d),F=(-_+d)*(-m+P)-(-_+w)*(-m+b),G=-(W*=g)+C-(-W+P),H=-(L*=g)+w-(-L+A),I=(-L+A)*(-W+P)-(-L+w)*(-W+C),J=D*H-G*E;if(Math.abs(J)<.1)J+=10.1,a.push(w-_,P-m,M,c,y,q),a.push(w+_,P+m,M,c,y,q);else{var K=(E*I-H*F)/J,N=(G*F-D*I)/J;(K-w)*(K-w)+(N-P)*(N-P)>196*g*g?(j=_-L,k=m-W,j/=z=Math.sqrt(j*j+k*k),k/=z,j*=g,k*=g,a.push(w-j,P-k),a.push(M,c,y,q),a.push(w+j,P+k),a.push(M,c,y,q),a.push(w-j,P-k),a.push(M,c,y,q),v++):(a.push(K,N),a.push(M,c,y,q),a.push(w-(K-w),P-(N-P)),a.push(M,c,y,q))}}d=e[2*(o-2)],b=e[2*(o-2)+1],w=e[2*(o-1)],_=-(b-(P=e[2*(o-1)+1])),m=d-w,_/=z=Math.sqrt(_*_+m*m),m/=z,_*=g,m*=g,a.push(w-_,P-m),a.push(M,c,y,q),a.push(w+_,P+m),a.push(M,c,y,q),l.push(f);for(var O=0;O<v;++O)l.push(f++);l.push(f-1)}}function p(h,t){var p=0,e=h.points;if(0!==e.length){var u=t.points,n=e.length/2,r=(0,s.hex2rgb)(h.lineColor),i=h.lineAlpha,a=r[0]*i,l=r[1]*i,o=r[2]*i;for(p=1;p<n;p++){var v=e[2*(p-1)],f=e[2*(p-1)+1],g=e[2*p],x=e[2*p+1];u.push(v,f),u.push(a,l,o,i),u.push(g,x),u.push(a,l,o,i)}}}
},{"../../../math":"e3iB","../../../utils":"dDI1"}],"vwhv":[function(require,module,exports) {
"use strict";function e(e,t,x){x=x||2;var i,u,v,y,o,p,l,a=t&&t.length,h=a?t[0]*x:e.length,s=n(e,0,h,x,!0),c=[];if(!s||s.next===s.prev)return c;if(a&&(s=f(e,t,s,x)),e.length>80*x){i=v=e[0],u=y=e[1];for(var Z=x;Z<h;Z+=x)(o=e[Z])<i&&(i=o),(p=e[Z+1])<u&&(u=p),o>v&&(v=o),p>y&&(y=p);l=0!==(l=Math.max(v-i,y-u))?1/l:0}return r(s,c,x,i,u,l),c}function n(e,n,t,r,x){var i,u;if(x===A(e,n,t,r)>0)for(i=n;i<t;i+=r)u=k(i,e[i],e[i+1],u);else for(i=t-r;i>=n;i-=r)u=k(i,e[i],e[i+1],u);return u&&g(u,u.next)&&(j(u),u=u.next),u}function t(e,n){if(!e)return e;n||(n=e);var t,r=e;do{if(t=!1,r.steiner||!g(r,r.next)&&0!==d(r.prev,r,r.next))r=r.next;else{if(j(r),(r=n=r.prev)===r.next)break;t=!0}}while(t||r!==n);return n}function r(e,n,f,y,o,p,a){if(e){!a&&p&&l(e,y,o,p);for(var h,s,c=e;e.prev!==e.next;)if(h=e.prev,s=e.next,p?i(e,y,o,p):x(e))n.push(h.i/f),n.push(e.i/f),n.push(s.i/f),j(e),e=s.next,c=s.next;else if((e=s)===c){a?1===a?r(e=u(e,n,f),n,f,y,o,p,2):2===a&&v(e,n,f,y,o,p):r(t(e),n,f,y,o,p,1);break}}}function x(e){var n=e.prev,t=e,r=e.next;if(d(n,t,r)>=0)return!1;for(var x=e.next.next;x!==e.prev;){if(c(n.x,n.y,t.x,t.y,r.x,r.y,x.x,x.y)&&d(x.prev,x,x.next)>=0)return!1;x=x.next}return!0}function i(e,n,t,r){var x=e.prev,i=e,u=e.next;if(d(x,i,u)>=0)return!1;for(var v=x.x<i.x?x.x<u.x?x.x:u.x:i.x<u.x?i.x:u.x,f=x.y<i.y?x.y<u.y?x.y:u.y:i.y<u.y?i.y:u.y,y=x.x>i.x?x.x>u.x?x.x:u.x:i.x>u.x?i.x:u.x,o=x.y>i.y?x.y>u.y?x.y:u.y:i.y>u.y?i.y:u.y,p=h(v,f,n,t,r),l=h(y,o,n,t,r),a=e.prevZ,s=e.nextZ;a&&a.z>=p&&s&&s.z<=l;){if(a!==e.prev&&a!==e.next&&c(x.x,x.y,i.x,i.y,u.x,u.y,a.x,a.y)&&d(a.prev,a,a.next)>=0)return!1;if(a=a.prevZ,s!==e.prev&&s!==e.next&&c(x.x,x.y,i.x,i.y,u.x,u.y,s.x,s.y)&&d(s.prev,s,s.next)>=0)return!1;s=s.nextZ}for(;a&&a.z>=p;){if(a!==e.prev&&a!==e.next&&c(x.x,x.y,i.x,i.y,u.x,u.y,a.x,a.y)&&d(a.prev,a,a.next)>=0)return!1;a=a.prevZ}for(;s&&s.z<=l;){if(s!==e.prev&&s!==e.next&&c(x.x,x.y,i.x,i.y,u.x,u.y,s.x,s.y)&&d(s.prev,s,s.next)>=0)return!1;s=s.nextZ}return!0}function u(e,n,t){var r=e;do{var x=r.prev,i=r.next.next;!g(x,i)&&w(x,r,r.next,i)&&b(x,i)&&b(i,x)&&(n.push(x.i/t),n.push(r.i/t),n.push(i.i/t),j(r),j(r.next),r=e=i),r=r.next}while(r!==e);return r}function v(e,n,x,i,u,v){var f=e;do{for(var y=f.next.next;y!==f.prev;){if(f.i!==y.i&&Z(f,y)){var o=m(f,y);return f=t(f,f.next),o=t(o,o.next),r(f,n,x,i,u,v),void r(o,n,x,i,u,v)}y=y.next}f=f.next}while(f!==e)}function f(e,r,x,i){var u,v,f,p=[];for(u=0,v=r.length;u<v;u++)(f=n(e,r[u]*i,u<v-1?r[u+1]*i:e.length,i,!1))===f.next&&(f.steiner=!0),p.push(s(f));for(p.sort(y),u=0;u<p.length;u++)o(p[u],x),x=t(x,x.next);return x}function y(e,n){return e.x-n.x}function o(e,n){if(n=p(e,n)){var r=m(n,e);t(r,r.next)}}function p(e,n){var t,r=n,x=e.x,i=e.y,u=-1/0;do{if(i<=r.y&&i>=r.next.y&&r.next.y!==r.y){var v=r.x+(i-r.y)*(r.next.x-r.x)/(r.next.y-r.y);if(v<=x&&v>u){if(u=v,v===x){if(i===r.y)return r;if(i===r.next.y)return r.next}t=r.x<r.next.x?r:r.next}}r=r.next}while(r!==n);if(!t)return null;if(x===u)return t.prev;var f,y=t,o=t.x,p=t.y,l=1/0;for(r=t.next;r!==y;)x>=r.x&&r.x>=o&&x!==r.x&&c(i<p?x:u,i,o,p,i<p?u:x,i,r.x,r.y)&&((f=Math.abs(i-r.y)/(x-r.x))<l||f===l&&r.x>t.x)&&b(r,e)&&(t=r,l=f),r=r.next;return t}function l(e,n,t,r){var x=e;do{null===x.z&&(x.z=h(x.x,x.y,n,t,r)),x.prevZ=x.prev,x.nextZ=x.next,x=x.next}while(x!==e);x.prevZ.nextZ=null,x.prevZ=null,a(x)}function a(e){var n,t,r,x,i,u,v,f,y=1;do{for(t=e,e=null,i=null,u=0;t;){for(u++,r=t,v=0,n=0;n<y&&(v++,r=r.nextZ);n++);for(f=y;v>0||f>0&&r;)0!==v&&(0===f||!r||t.z<=r.z)?(x=t,t=t.nextZ,v--):(x=r,r=r.nextZ,f--),i?i.nextZ=x:e=x,x.prevZ=i,i=x;t=r}i.nextZ=null,y*=2}while(u>1);return e}function h(e,n,t,r,x){return(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-t)*x)|e<<8))|e<<4))|e<<2))|e<<1))|(n=1431655765&((n=858993459&((n=252645135&((n=16711935&((n=32767*(n-r)*x)|n<<8))|n<<4))|n<<2))|n<<1))<<1}function s(e){var n=e,t=e;do{n.x<t.x&&(t=n),n=n.next}while(n!==e);return t}function c(e,n,t,r,x,i,u,v){return(x-u)*(n-v)-(e-u)*(i-v)>=0&&(e-u)*(r-v)-(t-u)*(n-v)>=0&&(t-u)*(i-v)-(x-u)*(r-v)>=0}function Z(e,n){return e.next.i!==n.i&&e.prev.i!==n.i&&!z(e,n)&&b(e,n)&&b(n,e)&&M(e,n)}function d(e,n,t){return(n.y-e.y)*(t.x-n.x)-(n.x-e.x)*(t.y-n.y)}function g(e,n){return e.x===n.x&&e.y===n.y}function w(e,n,t,r){return!!(g(e,n)&&g(t,r)||g(e,r)&&g(t,n))||d(e,n,t)>0!=d(e,n,r)>0&&d(t,r,e)>0!=d(t,r,n)>0}function z(e,n){var t=e;do{if(t.i!==e.i&&t.next.i!==e.i&&t.i!==n.i&&t.next.i!==n.i&&w(t,t.next,e,n))return!0;t=t.next}while(t!==e);return!1}function b(e,n){return d(e.prev,e,e.next)<0?d(e,n,e.next)>=0&&d(e,e.prev,n)>=0:d(e,n,e.prev)<0||d(e,e.next,n)<0}function M(e,n){var t=e,r=!1,x=(e.x+n.x)/2,i=(e.y+n.y)/2;do{t.y>i!=t.next.y>i&&t.next.y!==t.y&&x<(t.next.x-t.x)*(i-t.y)/(t.next.y-t.y)+t.x&&(r=!r),t=t.next}while(t!==e);return r}function m(e,n){var t=new q(e.i,e.x,e.y),r=new q(n.i,n.x,n.y),x=e.next,i=n.prev;return e.next=n,n.prev=e,t.next=x,x.prev=t,r.next=t,t.prev=r,i.next=r,r.prev=i,r}function k(e,n,t,r){var x=new q(e,n,t);return r?(x.next=r.next,x.prev=r,r.next.prev=x,r.next=x):(x.prev=x,x.next=x),x}function j(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function q(e,n,t){this.i=e,this.x=n,this.y=t,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function A(e,n,t,r){for(var x=0,i=n,u=t-r;i<t;i+=r)x+=(e[u]-e[i])*(e[i+1]+e[u+1]),u=i;return x}module.exports=e,module.exports.default=e,e.deviation=function(e,n,t,r){var x=n&&n.length,i=x?n[0]*t:e.length,u=Math.abs(A(e,0,i,t));if(x)for(var v=0,f=n.length;v<f;v++){var y=n[v]*t,o=v<f-1?n[v+1]*t:e.length;u-=Math.abs(A(e,y,o,t))}var p=0;for(v=0;v<r.length;v+=3){var l=r[v]*t,a=r[v+1]*t,h=r[v+2]*t;p+=Math.abs((e[l]-e[h])*(e[a+1]-e[l+1])-(e[l]-e[a])*(e[h+1]-e[l+1]))}return 0===u&&0===p?0:Math.abs((p-u)/u)},e.flatten=function(e){for(var n=e[0][0].length,t={vertices:[],holes:[],dimensions:n},r=0,x=0;x<e.length;x++){for(var i=0;i<e[x].length;i++)for(var u=0;u<n;u++)t.vertices.push(e[x][i][u]);x>0&&(r+=e[x-1].length,t.holes.push(r))}return t};
},{}],"EYtC":[function(require,module,exports) {
"use strict";exports.__esModule=!0,exports.default=s;var e=require("./buildLine"),t=u(e),r=require("../../../utils"),l=require("earcut"),i=u(l);function u(e){return e&&e.__esModule?e:{default:e}}function s(e,l,u){e.points=e.shape.points.slice();var s=e.points;if(e.fill&&s.length>=6){for(var n=[],h=e.holes,o=0;o<h.length;o++){var p=h[o];n.push(s.length/2),s=s.concat(p.points)}var a=l.points,f=l.indices,d=s.length/2,c=(0,r.hex2rgb)(e.fillColor),g=e.fillAlpha,v=c[0]*g,_=c[1]*g,q=c[2]*g,x=(0,i.default)(s,n,2);if(!x)return;for(var b=a.length/6,M=0;M<x.length;M+=3)f.push(x[M]+b),f.push(x[M]+b),f.push(x[M+1]+b),f.push(x[M+2]+b),f.push(x[M+2]+b);for(var A=0;A<d;A++)a.push(s[2*A],s[2*A+1],v,_,q,g)}e.lineWidth>0&&(0,t.default)(e,l,u)}
},{"./buildLine":"MEjA","../../../utils":"dDI1","earcut":"vwhv"}],"raNh":[function(require,module,exports) {
"use strict";exports.__esModule=!0,exports.default=t;var i=require("./buildLine"),e=u(i),s=require("../../../utils");function u(i){return i&&i.__esModule?i:{default:i}}function t(i,u,t){var h=i.shape,l=h.x,p=h.y,r=h.width,n=h.height;if(i.fill){var o=(0,s.hex2rgb)(i.fillColor),f=i.fillAlpha,a=o[0]*f,d=o[1]*f,c=o[2]*f,v=u.points,x=u.indices,_=v.length/6;v.push(l,p),v.push(a,d,c,f),v.push(l+r,p),v.push(a,d,c,f),v.push(l,p+n),v.push(a,d,c,f),v.push(l+r,p+n),v.push(a,d,c,f),x.push(_,_,_+1,_+2,_+3,_+3)}if(i.lineWidth){var g=i.points;i.points=[l,p,l+r,p,l+r,p+n,l,p+n,l,p],(0,e.default)(i,u,t),i.points=g}}
},{"./buildLine":"MEjA","../../../utils":"dDI1"}],"BGVx":[function(require,module,exports) {
"use strict";exports.__esModule=!0,exports.default=n;var e=require("earcut"),u=l(e),i=require("./buildLine"),r=l(i),t=require("../../../utils");function l(e){return e&&e.__esModule?e:{default:e}}function n(e,i,l){var n=e.shape,s=n.x,o=n.y,f=n.width,p=n.height,a=n.radius,d=[];if(d.push(s,o+a),h(s,o+p-a,s,o+p,s+a,o+p,d),h(s+f-a,o+p,s+f,o+p,s+f,o+p-a,d),h(s+f,o+a,s+f,o,s+f-a,o,d),h(s+a,o,s,o,s,o+a+1e-10,d),e.fill){for(var c=(0,t.hex2rgb)(e.fillColor),v=e.fillAlpha,g=c[0]*v,x=c[1]*v,_=c[2]*v,q=i.points,b=i.indices,M=q.length/6,w=(0,u.default)(d,null,2),y=0,A=w.length;y<A;y+=3)b.push(w[y]+M),b.push(w[y]+M),b.push(w[y+1]+M),b.push(w[y+2]+M),b.push(w[y+2]+M);for(var C=0,L=d.length;C<L;C++)q.push(d[C],d[++C],g,x,_,v)}if(e.lineWidth){var W=e.points;e.points=d,(0,r.default)(e,i,l),e.points=W}}function s(e,u,i){return e+(u-e)*i}function h(e,u,i,r,t,l){for(var n=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[],h=0,o=0,f=0,p=0,a=0,d=0,c=0,v=0;c<=20;++c)h=s(e,i,v=c/20),o=s(u,r,v),f=s(i,t,v),p=s(r,l,v),a=s(h,f,v),d=s(o,p,v),n.push(a,d);return n}
},{"earcut":"vwhv","./buildLine":"MEjA","../../../utils":"dDI1"}],"gTSb":[function(require,module,exports) {
"use strict";exports.__esModule=!0,exports.default=h;var i=require("./buildLine"),t=e(i),s=require("../../../const"),r=require("../../../utils");function e(i){return i&&i.__esModule?i:{default:i}}function h(i,e,h){var a=i.shape,o=a.x,u=a.y,l=void 0,n=void 0;if(i.type===s.SHAPES.CIRC?(l=a.radius,n=a.radius):(l=a.width,n=a.height),0!==l&&0!==n){var p=Math.floor(30*Math.sqrt(a.radius))||Math.floor(15*Math.sqrt(a.width+a.height)),d=2*Math.PI/p;if(i.fill){var f=(0,r.hex2rgb)(i.fillColor),M=i.fillAlpha,v=f[0]*M,c=f[1]*M,q=f[2]*M,g=e.points,x=e.indices,_=g.length/6;x.push(_);for(var C=0;C<p+1;C++)g.push(o,u,v,c,q,M),g.push(o+Math.sin(d*C)*l,u+Math.cos(d*C)*n,v,c,q,M),x.push(_++,_++);x.push(_-1)}if(i.lineWidth){var b=i.points;i.points=[];for(var w=0;w<p+1;w++)i.points.push(o+Math.sin(d*w)*l,u+Math.cos(d*w)*n);(0,t.default)(i,e,h),i.points=b}}}
},{"./buildLine":"MEjA","../../../const":"YEQi","../../../utils":"dDI1"}],"tXzk":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=require("../../utils"),t=require("../../const"),r=require("../../renderers/webgl/utils/ObjectRenderer"),a=v(r),i=require("../../renderers/webgl/WebGLRenderer"),n=v(i),o=require("./WebGLGraphicsData"),s=v(o),l=require("./shaders/PrimitiveShader"),d=v(l),u=require("./utils/buildPoly"),h=v(u),p=require("./utils/buildRectangle"),c=v(p),f=require("./utils/buildRoundedRectangle"),g=v(f),y=require("./utils/buildCircle"),b=v(y);function v(e){return e&&e.__esModule?e:{default:e}}function D(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function E(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var T=function(r){function i(e){D(this,i);var t=S(this,r.call(this,e));return t.graphicsDataPool=[],t.primitiveShader=null,t.gl=e.gl,t.CONTEXT_UID=0,t}return E(i,r),i.prototype.onContextChange=function(){this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.primitiveShader=new d.default(this.gl)},i.prototype.destroy=function(){a.default.prototype.destroy.call(this);for(var e=0;e<this.graphicsDataPool.length;++e)this.graphicsDataPool[e].destroy();this.graphicsDataPool=null},i.prototype.render=function(t){var r=this.renderer,a=r.gl,i=void 0,n=t._webGL[this.CONTEXT_UID];n&&t.dirty===n.dirty||(this.updateGraphics(t),n=t._webGL[this.CONTEXT_UID]);var o=this.primitiveShader;r.bindShader(o),r.state.setBlendMode(t.blendMode);for(var s=0,l=n.data.length;s<l;s++){var d=(i=n.data[s]).shader;r.bindShader(d),d.uniforms.translationMatrix=t.transform.worldTransform.toArray(!0),d.uniforms.tint=(0,e.hex2rgb)(t.tint),d.uniforms.alpha=t.worldAlpha,r.bindVao(i.vao),i.nativeLines?a.drawArrays(a.LINES,0,i.points.length/6):i.vao.draw(a.TRIANGLE_STRIP,i.indices.length)}},i.prototype.updateGraphics=function(e){var r=this.renderer.gl,a=e._webGL[this.CONTEXT_UID];if(a||(a=e._webGL[this.CONTEXT_UID]={lastIndex:0,data:[],gl:r,clearDirty:-1,dirty:-1}),a.dirty=e.dirty,e.clearDirty!==a.clearDirty){a.clearDirty=e.clearDirty;for(var i=0;i<a.data.length;i++)this.graphicsDataPool.push(a.data[i]);a.data.length=0,a.lastIndex=0}for(var n=void 0,o=void 0,s=a.lastIndex;s<e.graphicsData.length;s++){var l=e.graphicsData[s];n=this.getWebGLData(a,0),l.nativeLines&&l.lineWidth&&(o=this.getWebGLData(a,0,!0),a.lastIndex++),l.type===t.SHAPES.POLY&&(0,h.default)(l,n,o),l.type===t.SHAPES.RECT?(0,c.default)(l,n,o):l.type===t.SHAPES.CIRC||l.type===t.SHAPES.ELIP?(0,b.default)(l,n,o):l.type===t.SHAPES.RREC&&(0,g.default)(l,n,o),a.lastIndex++}this.renderer.bindVao(null);for(var d=0;d<a.data.length;d++)(n=a.data[d]).dirty&&n.upload()},i.prototype.getWebGLData=function(e,t,r){var a=e.data[e.data.length-1];return(!a||a.nativeLines!==r||a.points.length>32e4)&&((a=this.graphicsDataPool.pop()||new s.default(this.renderer.gl,this.primitiveShader,this.renderer.state.attribsState)).nativeLines=r,a.reset(t),e.data.push(a)),a.dirty=!0,a},i}(a.default);exports.default=T,n.default.registerPlugin("graphics",T);
},{"../../utils":"dDI1","../../const":"YEQi","../../renderers/webgl/utils/ObjectRenderer":"oXPp","../../renderers/webgl/WebGLRenderer":"i77b","./WebGLGraphicsData":"3MQf","./shaders/PrimitiveShader":"udb+","./utils/buildPoly":"EYtC","./utils/buildRectangle":"raNh","./utils/buildRoundedRectangle":"BGVx","./utils/buildCircle":"gTSb"}],"bG99":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=require("../../renderers/canvas/CanvasRenderer"),l=i(t),e=require("../../const");function i(t){return t&&t.__esModule?t:{default:t}}function r(t,l){if(!(t instanceof l))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(l){r(this,t),this.renderer=l}return t.prototype.render=function(t){var l=this.renderer,i=l.context,r=t.worldAlpha,o=t.transform.worldTransform,n=l.resolution;this._prevTint!==this.tint&&(this.dirty=!0),i.setTransform(o.a*n,o.b*n,o.c*n,o.d*n,o.tx*n,o.ty*n),t.dirty&&(this.updateGraphicsTint(t),t.dirty=!1),l.setBlendMode(t.blendMode);for(var a=0;a<t.graphicsData.length;a++){var s=t.graphicsData[a],h=s.shape,f=s._fillTint,p=s._lineTint;if(i.lineWidth=s.lineWidth,s.type===e.SHAPES.POLY){i.beginPath(),this.renderPolygon(h.points,h.closed,i);for(var u=0;u<s.holes.length;u++)this.renderPolygon(s.holes[u].points,!0,i);s.fill&&(i.globalAlpha=s.fillAlpha*r,i.fillStyle="#"+("00000"+(0|f).toString(16)).substr(-6),i.fill()),s.lineWidth&&(i.globalAlpha=s.lineAlpha*r,i.strokeStyle="#"+("00000"+(0|p).toString(16)).substr(-6),i.stroke())}else if(s.type===e.SHAPES.RECT)(s.fillColor||0===s.fillColor)&&(i.globalAlpha=s.fillAlpha*r,i.fillStyle="#"+("00000"+(0|f).toString(16)).substr(-6),i.fillRect(h.x,h.y,h.width,h.height)),s.lineWidth&&(i.globalAlpha=s.lineAlpha*r,i.strokeStyle="#"+("00000"+(0|p).toString(16)).substr(-6),i.strokeRect(h.x,h.y,h.width,h.height));else if(s.type===e.SHAPES.CIRC)i.beginPath(),i.arc(h.x,h.y,h.radius,0,2*Math.PI),i.closePath(),s.fill&&(i.globalAlpha=s.fillAlpha*r,i.fillStyle="#"+("00000"+(0|f).toString(16)).substr(-6),i.fill()),s.lineWidth&&(i.globalAlpha=s.lineAlpha*r,i.strokeStyle="#"+("00000"+(0|p).toString(16)).substr(-6),i.stroke());else if(s.type===e.SHAPES.ELIP){var d=2*h.width,g=2*h.height,c=h.x-d/2,y=h.y-g/2;i.beginPath();var b=d/2*.5522848,S=g/2*.5522848,T=c+d,v=y+g,A=c+d/2,C=y+g/2;i.moveTo(c,C),i.bezierCurveTo(c,C-S,A-b,y,A,y),i.bezierCurveTo(A+b,y,T,C-S,T,C),i.bezierCurveTo(T,C+S,A+b,v,A,v),i.bezierCurveTo(A-b,v,c,C+S,c,C),i.closePath(),s.fill&&(i.globalAlpha=s.fillAlpha*r,i.fillStyle="#"+("00000"+(0|f).toString(16)).substr(-6),i.fill()),s.lineWidth&&(i.globalAlpha=s.lineAlpha*r,i.strokeStyle="#"+("00000"+(0|p).toString(16)).substr(-6),i.stroke())}else if(s.type===e.SHAPES.RREC){var P=h.x,k=h.y,_=h.width,x=h.height,E=h.radius,w=Math.min(_,x)/2|0;E=E>w?w:E,i.beginPath(),i.moveTo(P,k+E),i.lineTo(P,k+x-E),i.quadraticCurveTo(P,k+x,P+E,k+x),i.lineTo(P+_-E,k+x),i.quadraticCurveTo(P+_,k+x,P+_,k+x-E),i.lineTo(P+_,k+E),i.quadraticCurveTo(P+_,k,P+_-E,k),i.lineTo(P+E,k),i.quadraticCurveTo(P,k,P,k+E),i.closePath(),(s.fillColor||0===s.fillColor)&&(i.globalAlpha=s.fillAlpha*r,i.fillStyle="#"+("00000"+(0|f).toString(16)).substr(-6),i.fill()),s.lineWidth&&(i.globalAlpha=s.lineAlpha*r,i.strokeStyle="#"+("00000"+(0|p).toString(16)).substr(-6),i.stroke())}}},t.prototype.updateGraphicsTint=function(t){t._prevTint=t.tint;for(var l=(t.tint>>16&255)/255,e=(t.tint>>8&255)/255,i=(255&t.tint)/255,r=0;r<t.graphicsData.length;++r){var o=t.graphicsData[r],n=0|o.fillColor,a=0|o.lineColor;o._fillTint=((n>>16&255)/255*l*255<<16)+((n>>8&255)/255*e*255<<8)+(255&n)/255*i*255,o._lineTint=((a>>16&255)/255*l*255<<16)+((a>>8&255)/255*e*255<<8)+(255&a)/255*i*255}},t.prototype.renderPolygon=function(t,l,e){e.moveTo(t[0],t[1]);for(var i=1;i<t.length/2;++i)e.lineTo(t[2*i],t[2*i+1]);l&&e.closePath()},t.prototype.destroy=function(){this.renderer=null},t}();exports.default=o,l.default.registerPlugin("graphics",o);
},{"../../renderers/canvas/CanvasRenderer":"GzOR","../../const":"YEQi"}],"hX4Q":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=function(){function t(t,e){for(var s=0;s<e.length;s++){var r=e[s];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,s,r){return s&&t(e.prototype,s),r&&t(e,r),e}}(),e=require("../"),s=require("../utils");function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function o(t,e){var s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;r(this,o),this.baseTexture=t,this.textures={},this.data=e,this.resolution=this._updateResolution(s||this.baseTexture.imageUrl),this._frames=this.data.frames,this._frameKeys=Object.keys(this._frames),this._batchIndex=0,this._callback=null}return t(o,null,[{key:"BATCH_SIZE",get:function(){return 1e3}}]),o.prototype._updateResolution=function(t){var e=this.data.meta.scale,r=(0,s.getResolutionOfUrl)(t,null);return null===r&&(r=void 0!==e?parseFloat(e):1),1!==r&&(this.baseTexture.resolution=r,this.baseTexture.update()),r},o.prototype.parse=function(t){this._batchIndex=0,this._callback=t,this._frameKeys.length<=o.BATCH_SIZE?(this._processFrames(0),this._parseComplete()):this._nextBatch()},o.prototype._processFrames=function(t){for(var s=t,r=o.BATCH_SIZE,i=this.baseTexture.sourceScale;s-t<r&&s<this._frameKeys.length;){var a=this._frameKeys[s],h=this._frames[a].frame;if(h){var n=null,l=null,u=new e.Rectangle(0,0,Math.floor(this._frames[a].sourceSize.w*i)/this.resolution,Math.floor(this._frames[a].sourceSize.h*i)/this.resolution);n=this._frames[a].rotated?new e.Rectangle(Math.floor(h.x*i)/this.resolution,Math.floor(h.y*i)/this.resolution,Math.floor(h.h*i)/this.resolution,Math.floor(h.w*i)/this.resolution):new e.Rectangle(Math.floor(h.x*i)/this.resolution,Math.floor(h.y*i)/this.resolution,Math.floor(h.w*i)/this.resolution,Math.floor(h.h*i)/this.resolution),this._frames[a].trimmed&&(l=new e.Rectangle(Math.floor(this._frames[a].spriteSourceSize.x*i)/this.resolution,Math.floor(this._frames[a].spriteSourceSize.y*i)/this.resolution,Math.floor(h.w*i)/this.resolution,Math.floor(h.h*i)/this.resolution)),this.textures[a]=new e.Texture(this.baseTexture,n,u,l,this._frames[a].rotated?2:0),e.Texture.addToCache(this.textures[a],a)}s++}},o.prototype._parseComplete=function(){var t=this._callback;this._callback=null,this._batchIndex=0,t.call(this,this.textures)},o.prototype._nextBatch=function(){var t=this;this._processFrames(this._batchIndex*o.BATCH_SIZE),this._batchIndex++,setTimeout(function(){t._batchIndex*o.BATCH_SIZE<t._frameKeys.length?t._nextBatch():t._parseComplete()},0)},o.prototype.destroy=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];for(var e in this.textures)this.textures[e].destroy();this._frames=null,this._frameKeys=null,this.data=null,this.textures=null,t&&this.baseTexture.destroy(),this.baseTexture=null},o}();exports.default=o;
},{"../":"RjZD","../utils":"dDI1"}],"DqsF":[function(require,module,exports) {
"use strict";exports.__esModule=!0,exports.autoDetectRenderer=d;var e=require("./utils"),r=s(e),t=require("./renderers/canvas/CanvasRenderer"),n=o(t),u=require("./renderers/webgl/WebGLRenderer"),a=o(u);function o(e){return e&&e.__esModule?e:{default:e}}function s(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r.default=e,r}function d(e,t,u,o){var s=e&&e.forceCanvas;return void 0!==o&&(s=o),!s&&r.isWebGLSupported()?new a.default(e,t,u):new n.default(e,t,u)}
},{"./utils":"dDI1","./renderers/canvas/CanvasRenderer":"GzOR","./renderers/webgl/WebGLRenderer":"i77b"}],"Y4lo":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),t=require("./autoDetectRenderer"),r=require("./display/Container"),i=u(r),n=require("./ticker"),s=require("./settings"),o=u(s),a=require("./const");function u(e){return e&&e.__esModule?e:{default:e}}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var h=function(){function r(e,s,a,u,h){c(this,r),"number"==typeof e&&(e=Object.assign({width:e,height:s||o.default.RENDER_OPTIONS.height,forceCanvas:!!u,sharedTicker:!!h},a)),this._options=e=Object.assign({autoStart:!0,sharedTicker:!1,forceCanvas:!1,sharedLoader:!1},e),this.renderer=(0,t.autoDetectRenderer)(e),this.stage=new i.default,this._ticker=null,this.ticker=e.sharedTicker?n.shared:new n.Ticker,e.autoStart&&this.start()}return r.prototype.render=function(){this.renderer.render(this.stage)},r.prototype.stop=function(){this._ticker.stop()},r.prototype.start=function(){this._ticker.start()},r.prototype.destroy=function(e){var t=this._ticker;this.ticker=null,t.destroy(),this.stage.destroy(),this.stage=null,this.renderer.destroy(e),this.renderer=null,this._options=null},e(r,[{key:"ticker",set:function(e){this._ticker&&this._ticker.remove(this.render,this),this._ticker=e,e&&e.add(this.render,this,a.UPDATE_PRIORITY.LOW)},get:function(){return this._ticker}},{key:"view",get:function(){return this.renderer.view}},{key:"screen",get:function(){return this.renderer.screen}}]),r}();exports.default=h;
},{"./autoDetectRenderer":"DqsF","./display/Container":"OzBO","./ticker":"5u59","./settings":"tMVT","./const":"YEQi"}],"RjZD":[function(require,module,exports) {
"use strict";exports.__esModule=!0,exports.autoDetectRenderer=exports.Application=exports.Filter=exports.SpriteMaskFilter=exports.Quad=exports.RenderTarget=exports.ObjectRenderer=exports.WebGLManager=exports.Shader=exports.CanvasRenderTarget=exports.TextureUvs=exports.VideoBaseTexture=exports.BaseRenderTexture=exports.RenderTexture=exports.BaseTexture=exports.Texture=exports.Spritesheet=exports.CanvasGraphicsRenderer=exports.GraphicsRenderer=exports.GraphicsData=exports.Graphics=exports.TextMetrics=exports.TextStyle=exports.Text=exports.SpriteRenderer=exports.CanvasTinter=exports.CanvasSpriteRenderer=exports.Sprite=exports.TransformBase=exports.TransformStatic=exports.Transform=exports.Container=exports.DisplayObject=exports.Bounds=exports.glCore=exports.WebGLRenderer=exports.CanvasRenderer=exports.ticker=exports.utils=exports.settings=void 0;var e=require("./const");Object.keys(e).forEach(function(r){"default"!==r&&"__esModule"!==r&&Object.defineProperty(exports,r,{enumerable:!0,get:function(){return e[r]}})});var r=require("./math");Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return r[e]}})});var t=require("pixi-gl-core");Object.defineProperty(exports,"glCore",{enumerable:!0,get:function(){return K(t).default}});var n=require("./display/Bounds");Object.defineProperty(exports,"Bounds",{enumerable:!0,get:function(){return K(n).default}});var a=require("./display/DisplayObject");Object.defineProperty(exports,"DisplayObject",{enumerable:!0,get:function(){return K(a).default}});var u=require("./display/Container");Object.defineProperty(exports,"Container",{enumerable:!0,get:function(){return K(u).default}});var s=require("./display/Transform");Object.defineProperty(exports,"Transform",{enumerable:!0,get:function(){return K(s).default}});var i=require("./display/TransformStatic");Object.defineProperty(exports,"TransformStatic",{enumerable:!0,get:function(){return K(i).default}});var o=require("./display/TransformBase");Object.defineProperty(exports,"TransformBase",{enumerable:!0,get:function(){return K(o).default}});var p=require("./sprites/Sprite");Object.defineProperty(exports,"Sprite",{enumerable:!0,get:function(){return K(p).default}});var d=require("./sprites/canvas/CanvasSpriteRenderer");Object.defineProperty(exports,"CanvasSpriteRenderer",{enumerable:!0,get:function(){return K(d).default}});var f=require("./sprites/canvas/CanvasTinter");Object.defineProperty(exports,"CanvasTinter",{enumerable:!0,get:function(){return K(f).default}});var c=require("./sprites/webgl/SpriteRenderer");Object.defineProperty(exports,"SpriteRenderer",{enumerable:!0,get:function(){return K(c).default}});var l=require("./text/Text");Object.defineProperty(exports,"Text",{enumerable:!0,get:function(){return K(l).default}});var x=require("./text/TextStyle");Object.defineProperty(exports,"TextStyle",{enumerable:!0,get:function(){return K(x).default}});var b=require("./text/TextMetrics");Object.defineProperty(exports,"TextMetrics",{enumerable:!0,get:function(){return K(b).default}});var g=require("./graphics/Graphics");Object.defineProperty(exports,"Graphics",{enumerable:!0,get:function(){return K(g).default}});var v=require("./graphics/GraphicsData");Object.defineProperty(exports,"GraphicsData",{enumerable:!0,get:function(){return K(v).default}});var y=require("./graphics/webgl/GraphicsRenderer");Object.defineProperty(exports,"GraphicsRenderer",{enumerable:!0,get:function(){return K(y).default}});var m=require("./graphics/canvas/CanvasGraphicsRenderer");Object.defineProperty(exports,"CanvasGraphicsRenderer",{enumerable:!0,get:function(){return K(m).default}});var O=require("./textures/Spritesheet");Object.defineProperty(exports,"Spritesheet",{enumerable:!0,get:function(){return K(O).default}});var j=require("./textures/Texture");Object.defineProperty(exports,"Texture",{enumerable:!0,get:function(){return K(j).default}});var T=require("./textures/BaseTexture");Object.defineProperty(exports,"BaseTexture",{enumerable:!0,get:function(){return K(T).default}});var q=require("./textures/RenderTexture");Object.defineProperty(exports,"RenderTexture",{enumerable:!0,get:function(){return K(q).default}});var P=require("./textures/BaseRenderTexture");Object.defineProperty(exports,"BaseRenderTexture",{enumerable:!0,get:function(){return K(P).default}});var R=require("./textures/VideoBaseTexture");Object.defineProperty(exports,"VideoBaseTexture",{enumerable:!0,get:function(){return K(R).default}});var h=require("./textures/TextureUvs");Object.defineProperty(exports,"TextureUvs",{enumerable:!0,get:function(){return K(h).default}});var S=require("./renderers/canvas/utils/CanvasRenderTarget");Object.defineProperty(exports,"CanvasRenderTarget",{enumerable:!0,get:function(){return K(S).default}});var C=require("./Shader");Object.defineProperty(exports,"Shader",{enumerable:!0,get:function(){return K(C).default}});var G=require("./renderers/webgl/managers/WebGLManager");Object.defineProperty(exports,"WebGLManager",{enumerable:!0,get:function(){return K(G).default}});var B=require("./renderers/webgl/utils/ObjectRenderer");Object.defineProperty(exports,"ObjectRenderer",{enumerable:!0,get:function(){return K(B).default}});var M=require("./renderers/webgl/utils/RenderTarget");Object.defineProperty(exports,"RenderTarget",{enumerable:!0,get:function(){return K(M).default}});var w=require("./renderers/webgl/utils/Quad");Object.defineProperty(exports,"Quad",{enumerable:!0,get:function(){return K(w).default}});var D=require("./renderers/webgl/filters/spriteMask/SpriteMaskFilter");Object.defineProperty(exports,"SpriteMaskFilter",{enumerable:!0,get:function(){return K(D).default}});var _=require("./renderers/webgl/filters/Filter");Object.defineProperty(exports,"Filter",{enumerable:!0,get:function(){return K(_).default}});var k=require("./Application");Object.defineProperty(exports,"Application",{enumerable:!0,get:function(){return K(k).default}});var F=require("./autoDetectRenderer");Object.defineProperty(exports,"autoDetectRenderer",{enumerable:!0,get:function(){return F.autoDetectRenderer}});var L=require("./utils"),W=J(L),A=require("./ticker"),Q=J(A),U=require("./settings"),V=K(U),E=require("./renderers/canvas/CanvasRenderer"),z=K(E),H=require("./renderers/webgl/WebGLRenderer"),I=K(H);function J(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r.default=e,r}function K(e){return e&&e.__esModule?e:{default:e}}exports.settings=V.default,exports.utils=W,exports.ticker=Q,exports.CanvasRenderer=z.default,exports.WebGLRenderer=I.default;
},{"./const":"YEQi","./math":"e3iB","pixi-gl-core":"PJsv","./display/Bounds":"Me0q","./display/DisplayObject":"rGF6","./display/Container":"OzBO","./display/Transform":"ThH+","./display/TransformStatic":"pc4T","./display/TransformBase":"Pszr","./sprites/Sprite":"oWLW","./sprites/canvas/CanvasSpriteRenderer":"3rZB","./sprites/canvas/CanvasTinter":"xwA8","./sprites/webgl/SpriteRenderer":"lQAb","./text/Text":"sdh2","./text/TextStyle":"gZse","./text/TextMetrics":"nMdc","./graphics/Graphics":"f5iX","./graphics/GraphicsData":"i0q3","./graphics/webgl/GraphicsRenderer":"tXzk","./graphics/canvas/CanvasGraphicsRenderer":"bG99","./textures/Spritesheet":"hX4Q","./textures/Texture":"xUki","./textures/BaseTexture":"ce6K","./textures/RenderTexture":"Jb0W","./textures/BaseRenderTexture":"8ODW","./textures/VideoBaseTexture":"U1Rh","./textures/TextureUvs":"sUm+","./renderers/canvas/utils/CanvasRenderTarget":"khQn","./Shader":"wBQE","./renderers/webgl/managers/WebGLManager":"ClQe","./renderers/webgl/utils/ObjectRenderer":"oXPp","./renderers/webgl/utils/RenderTarget":"Xw9x","./renderers/webgl/utils/Quad":"tknA","./renderers/webgl/filters/spriteMask/SpriteMaskFilter":"VuLC","./renderers/webgl/filters/Filter":"AVkB","./Application":"Y4lo","./autoDetectRenderer":"DqsF","./utils":"dDI1","./ticker":"5u59","./settings":"tMVT","./renderers/canvas/CanvasRenderer":"GzOR","./renderers/webgl/WebGLRenderer":"i77b"}],"+E8Q":[function(require,module,exports) {
"use strict";function e(e){var t=(new Error).stack;void 0===t?console.warn("Deprecation Warning: ",e):(t=t.split("\n").splice(3).join("\n"),console.groupCollapsed?(console.groupCollapsed("%cDeprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",e),console.warn(t),console.groupEnd()):(console.warn("Deprecation Warning: ",e),console.warn(t)))}function t(t){var r=t.mesh,n=t.particles,s=t.extras,a=t.filters,o=t.prepare,i=t.loaders,u=t.interaction;Object.defineProperties(t,{SpriteBatch:{get:function(){throw new ReferenceError("SpriteBatch does not exist any more, please use the new ParticleContainer instead.")}},AssetLoader:{get:function(){throw new ReferenceError("The loader system was overhauled in PixiJS v3, please see the new PIXI.loaders.Loader class.")}},Stage:{get:function(){return e("You do not need to use a PIXI Stage any more, you can simply render any container."),t.Container}},DisplayObjectContainer:{get:function(){return e("DisplayObjectContainer has been shortened to Container, please use Container from now on."),t.Container}},Strip:{get:function(){return e("The Strip class has been renamed to Mesh and moved to mesh.Mesh, please use mesh.Mesh from now on."),r.Mesh}},Rope:{get:function(){return e("The Rope class has been moved to mesh.Rope, please use mesh.Rope from now on."),r.Rope}},ParticleContainer:{get:function(){return e("The ParticleContainer class has been moved to particles.ParticleContainer, please use particles.ParticleContainer from now on."),n.ParticleContainer}},MovieClip:{get:function(){return e("The MovieClip class has been moved to extras.AnimatedSprite, please use extras.AnimatedSprite."),s.AnimatedSprite}},TilingSprite:{get:function(){return e("The TilingSprite class has been moved to extras.TilingSprite, please use extras.TilingSprite from now on."),s.TilingSprite}},BitmapText:{get:function(){return e("The BitmapText class has been moved to extras.BitmapText, please use extras.BitmapText from now on."),s.BitmapText}},blendModes:{get:function(){return e("The blendModes has been moved to BLEND_MODES, please use BLEND_MODES from now on."),t.BLEND_MODES}},scaleModes:{get:function(){return e("The scaleModes has been moved to SCALE_MODES, please use SCALE_MODES from now on."),t.SCALE_MODES}},BaseTextureCache:{get:function(){return e("The BaseTextureCache class has been moved to utils.BaseTextureCache, please use utils.BaseTextureCache from now on."),t.utils.BaseTextureCache}},TextureCache:{get:function(){return e("The TextureCache class has been moved to utils.TextureCache, please use utils.TextureCache from now on."),t.utils.TextureCache}},math:{get:function(){return e("The math namespace is deprecated, please access members already accessible on PIXI."),t}},AbstractFilter:{get:function(){return e("AstractFilter has been renamed to Filter, please use PIXI.Filter"),t.Filter}},TransformManual:{get:function(){return e("TransformManual has been renamed to TransformBase, please update your pixi-spine"),t.TransformBase}},TARGET_FPMS:{get:function(){return e("PIXI.TARGET_FPMS has been deprecated, please use PIXI.settings.TARGET_FPMS"),t.settings.TARGET_FPMS},set:function(r){e("PIXI.TARGET_FPMS has been deprecated, please use PIXI.settings.TARGET_FPMS"),t.settings.TARGET_FPMS=r}},FILTER_RESOLUTION:{get:function(){return e("PIXI.FILTER_RESOLUTION has been deprecated, please use PIXI.settings.FILTER_RESOLUTION"),t.settings.FILTER_RESOLUTION},set:function(r){e("PIXI.FILTER_RESOLUTION has been deprecated, please use PIXI.settings.FILTER_RESOLUTION"),t.settings.FILTER_RESOLUTION=r}},RESOLUTION:{get:function(){return e("PIXI.RESOLUTION has been deprecated, please use PIXI.settings.RESOLUTION"),t.settings.RESOLUTION},set:function(r){e("PIXI.RESOLUTION has been deprecated, please use PIXI.settings.RESOLUTION"),t.settings.RESOLUTION=r}},MIPMAP_TEXTURES:{get:function(){return e("PIXI.MIPMAP_TEXTURES has been deprecated, please use PIXI.settings.MIPMAP_TEXTURES"),t.settings.MIPMAP_TEXTURES},set:function(r){e("PIXI.MIPMAP_TEXTURES has been deprecated, please use PIXI.settings.MIPMAP_TEXTURES"),t.settings.MIPMAP_TEXTURES=r}},SPRITE_BATCH_SIZE:{get:function(){return e("PIXI.SPRITE_BATCH_SIZE has been deprecated, please use PIXI.settings.SPRITE_BATCH_SIZE"),t.settings.SPRITE_BATCH_SIZE},set:function(r){e("PIXI.SPRITE_BATCH_SIZE has been deprecated, please use PIXI.settings.SPRITE_BATCH_SIZE"),t.settings.SPRITE_BATCH_SIZE=r}},SPRITE_MAX_TEXTURES:{get:function(){return e("PIXI.SPRITE_MAX_TEXTURES has been deprecated, please use PIXI.settings.SPRITE_MAX_TEXTURES"),t.settings.SPRITE_MAX_TEXTURES},set:function(r){e("PIXI.SPRITE_MAX_TEXTURES has been deprecated, please use PIXI.settings.SPRITE_MAX_TEXTURES"),t.settings.SPRITE_MAX_TEXTURES=r}},RETINA_PREFIX:{get:function(){return e("PIXI.RETINA_PREFIX has been deprecated, please use PIXI.settings.RETINA_PREFIX"),t.settings.RETINA_PREFIX},set:function(r){e("PIXI.RETINA_PREFIX has been deprecated, please use PIXI.settings.RETINA_PREFIX"),t.settings.RETINA_PREFIX=r}},DEFAULT_RENDER_OPTIONS:{get:function(){return e("PIXI.DEFAULT_RENDER_OPTIONS has been deprecated, please use PIXI.settings.DEFAULT_RENDER_OPTIONS"),t.settings.RENDER_OPTIONS}}});for(var p=[{parent:"TRANSFORM_MODE",target:"TRANSFORM_MODE"},{parent:"GC_MODES",target:"GC_MODE"},{parent:"WRAP_MODES",target:"WRAP_MODE"},{parent:"SCALE_MODES",target:"SCALE_MODE"},{parent:"PRECISION",target:"PRECISION_FRAGMENT"}],c=function(r){var n=p[r];Object.defineProperty(t[n.parent],"DEFAULT",{get:function(){return e("PIXI."+n.parent+".DEFAULT has been deprecated, please use PIXI.settings."+n.target),t.settings[n.target]},set:function(r){e("PIXI."+n.parent+".DEFAULT has been deprecated, please use PIXI.settings."+n.target),t.settings[n.target]=r}})},l=0;l<p.length;l++)c(l);Object.defineProperties(t.settings,{PRECISION:{get:function(){return e("PIXI.settings.PRECISION has been deprecated, please use PIXI.settings.PRECISION_FRAGMENT"),t.settings.PRECISION_FRAGMENT},set:function(r){e("PIXI.settings.PRECISION has been deprecated, please use PIXI.settings.PRECISION_FRAGMENT"),t.settings.PRECISION_FRAGMENT=r}}}),s.AnimatedSprite&&Object.defineProperties(s,{MovieClip:{get:function(){return e("The MovieClip class has been renamed to AnimatedSprite, please use AnimatedSprite from now on."),s.AnimatedSprite}}}),t.DisplayObject.prototype.generateTexture=function(t,r,n){return e("generateTexture has moved to the renderer, please use renderer.generateTexture(displayObject)"),t.generateTexture(this,r,n)},t.Graphics.prototype.generateTexture=function(t,r){return e("graphics generate texture has moved to the renderer. Or to render a graphics to a texture using canvas please use generateCanvasTexture"),this.generateCanvasTexture(t,r)},t.RenderTexture.prototype.render=function(t,r,n,s){this.legacyRenderer.render(t,this,n,r,!s),e("RenderTexture.render is now deprecated, please use renderer.render(displayObject, renderTexture)")},t.RenderTexture.prototype.getImage=function(t){return e("RenderTexture.getImage is now deprecated, please use renderer.extract.image(target)"),this.legacyRenderer.extract.image(t)},t.RenderTexture.prototype.getBase64=function(t){return e("RenderTexture.getBase64 is now deprecated, please use renderer.extract.base64(target)"),this.legacyRenderer.extract.base64(t)},t.RenderTexture.prototype.getCanvas=function(t){return e("RenderTexture.getCanvas is now deprecated, please use renderer.extract.canvas(target)"),this.legacyRenderer.extract.canvas(t)},t.RenderTexture.prototype.getPixels=function(t){return e("RenderTexture.getPixels is now deprecated, please use renderer.extract.pixels(target)"),this.legacyRenderer.pixels(t)},t.Sprite.prototype.setTexture=function(t){this.texture=t,e("setTexture is now deprecated, please use the texture property, e.g : sprite.texture = texture;")},s.BitmapText&&(s.BitmapText.prototype.setText=function(t){this.text=t,e("setText is now deprecated, please use the text property, e.g : myBitmapText.text = 'my text';")}),t.Text.prototype.setText=function(t){this.text=t,e("setText is now deprecated, please use the text property, e.g : myText.text = 'my text';")},t.Text.calculateFontProperties=function(r){return e("Text.calculateFontProperties is now deprecated, please use the TextMetrics.measureFont"),t.TextMetrics.measureFont(r)},Object.defineProperties(t.Text,{fontPropertiesCache:{get:function(){return e("Text.fontPropertiesCache is deprecated"),t.TextMetrics._fonts}},fontPropertiesCanvas:{get:function(){return e("Text.fontPropertiesCanvas is deprecated"),t.TextMetrics._canvas}},fontPropertiesContext:{get:function(){return e("Text.fontPropertiesContext is deprecated"),t.TextMetrics._context}}}),t.Text.prototype.setStyle=function(t){this.style=t,e("setStyle is now deprecated, please use the style property, e.g : myText.style = style;")},t.Text.prototype.determineFontProperties=function(r){return e("determineFontProperties is now deprecated, please use TextMetrics.measureFont method"),t.TextMetrics.measureFont(r)},t.Text.getFontStyle=function(r){return e("getFontStyle is now deprecated, please use TextStyle.toFontString() instead"),(r=r||{})instanceof t.TextStyle||(r=new t.TextStyle(r)),r.toFontString()},Object.defineProperties(t.TextStyle.prototype,{font:{get:function(){e("text style property 'font' is now deprecated, please use the 'fontFamily', 'fontSize', 'fontStyle', 'fontVariant' and 'fontWeight' properties from now on");var t="number"==typeof this._fontSize?this._fontSize+"px":this._fontSize;return this._fontStyle+" "+this._fontVariant+" "+this._fontWeight+" "+t+" "+this._fontFamily},set:function(t){e("text style property 'font' is now deprecated, please use the 'fontFamily','fontSize',fontStyle','fontVariant' and 'fontWeight' properties from now on"),t.indexOf("italic")>1?this._fontStyle="italic":t.indexOf("oblique")>-1?this._fontStyle="oblique":this._fontStyle="normal",t.indexOf("small-caps")>-1?this._fontVariant="small-caps":this._fontVariant="normal";var r=t.split(" "),n=-1;this._fontSize=26;for(var s=0;s<r.length;++s)if(r[s].match(/(px|pt|em|%)/)){n=s,this._fontSize=r[s];break}this._fontWeight="normal";for(var a=0;a<n;++a)if(r[a].match(/(bold|bolder|lighter|100|200|300|400|500|600|700|800|900)/)){this._fontWeight=r[a];break}if(n>-1&&n<r.length-1){this._fontFamily="";for(var o=n+1;o<r.length;++o)this._fontFamily+=r[o]+" ";this._fontFamily=this._fontFamily.slice(0,-1)}else this._fontFamily="Arial";this.styleID++}}}),t.Texture.prototype.setFrame=function(t){this.frame=t,e("setFrame is now deprecated, please use the frame property, e.g: myTexture.frame = frame;")},t.Texture.addTextureToCache=function(r,n){t.Texture.addToCache(r,n),e("Texture.addTextureToCache is deprecated, please use Texture.addToCache from now on.")},t.Texture.removeTextureFromCache=function(r){return e("Texture.removeTextureFromCache is deprecated, please use Texture.removeFromCache from now on. Be aware that Texture.removeFromCache does not automatically its BaseTexture from the BaseTextureCache. For that, use BaseTexture.removeFromCache"),t.BaseTexture.removeFromCache(r),t.Texture.removeFromCache(r)},Object.defineProperties(a,{AbstractFilter:{get:function(){return e("AstractFilter has been renamed to Filter, please use PIXI.Filter"),t.AbstractFilter}},SpriteMaskFilter:{get:function(){return e("filters.SpriteMaskFilter is an undocumented alias, please use SpriteMaskFilter from now on."),t.SpriteMaskFilter}}}),t.utils.uuid=function(){return e("utils.uuid() is deprecated, please use utils.uid() from now on."),t.utils.uid()},t.utils.canUseNewCanvasBlendModes=function(){return e("utils.canUseNewCanvasBlendModes() is deprecated, please use CanvasTinter.canUseMultiply from now on"),t.CanvasTinter.canUseMultiply};var d=!0;if(Object.defineProperty(t.utils,"_saidHello",{set:function(t){t&&(e("PIXI.utils._saidHello is deprecated, please use PIXI.utils.skipHello()"),this.skipHello()),d=t},get:function(){return d}}),o.BasePrepare&&(o.BasePrepare.prototype.register=function(t,r){return e("renderer.plugins.prepare.register is now deprecated, please use renderer.plugins.prepare.registerFindHook & renderer.plugins.prepare.registerUploadHook"),t&&this.registerFindHook(t),r&&this.registerUploadHook(r),this}),o.canvas&&Object.defineProperty(o.canvas,"UPLOADS_PER_FRAME",{set:function(){e("PIXI.CanvasPrepare.UPLOADS_PER_FRAME has been removed. Please set renderer.plugins.prepare.limiter.maxItemsPerFrame on your renderer")},get:function(){return e("PIXI.CanvasPrepare.UPLOADS_PER_FRAME has been removed. Please use renderer.plugins.prepare.limiter"),NaN}}),o.webgl&&Object.defineProperty(o.webgl,"UPLOADS_PER_FRAME",{set:function(){e("PIXI.WebGLPrepare.UPLOADS_PER_FRAME has been removed. Please set renderer.plugins.prepare.limiter.maxItemsPerFrame on your renderer")},get:function(){return e("PIXI.WebGLPrepare.UPLOADS_PER_FRAME has been removed. Please use renderer.plugins.prepare.limiter"),NaN}}),i.Loader){var T=i.Resource,f=i.Loader;Object.defineProperties(T.prototype,{isJson:{get:function(){return e("The isJson property is deprecated, please use `resource.type === Resource.TYPE.JSON`."),this.type===T.TYPE.JSON}},isXml:{get:function(){return e("The isXml property is deprecated, please use `resource.type === Resource.TYPE.XML`."),this.type===T.TYPE.XML}},isImage:{get:function(){return e("The isImage property is deprecated, please use `resource.type === Resource.TYPE.IMAGE`."),this.type===T.TYPE.IMAGE}},isAudio:{get:function(){return e("The isAudio property is deprecated, please use `resource.type === Resource.TYPE.AUDIO`."),this.type===T.TYPE.AUDIO}},isVideo:{get:function(){return e("The isVideo property is deprecated, please use `resource.type === Resource.TYPE.VIDEO`."),this.type===T.TYPE.VIDEO}}}),Object.defineProperties(f.prototype,{before:{get:function(){return e("The before() method is deprecated, please use pre()."),this.pre}},after:{get:function(){return e("The after() method is deprecated, please use use()."),this.use}}})}u.interactiveTarget&&Object.defineProperty(u.interactiveTarget,"defaultCursor",{set:function(t){e("Property defaultCursor has been replaced with 'cursor'. "),this.cursor=t},get:function(){return e("Property defaultCursor has been replaced with 'cursor'. "),this.cursor}}),u.InteractionManager&&(Object.defineProperty(u.InteractionManager,"defaultCursorStyle",{set:function(t){e("Property defaultCursorStyle has been replaced with 'cursorStyles.default'. "),this.cursorStyles.default=t},get:function(){return e("Property defaultCursorStyle has been replaced with 'cursorStyles.default'. "),this.cursorStyles.default}}),Object.defineProperty(u.InteractionManager,"currentCursorStyle",{set:function(t){e("Property currentCursorStyle has been removed.See the currentCursorMode property, which works differently."),this.currentCursorMode=t},get:function(){return e("Property currentCursorStyle has been removed.See the currentCursorMode property, which works differently."),this.currentCursorMode}}))}exports.__esModule=!0,exports.default=t;
},{}],"2kJT":[function(require,module,exports) {
"use strict";exports.__esModule=!0,exports.default={accessible:!1,accessibleTitle:null,accessibleHint:null,tabIndex:0,_accessibleActive:!1,_accessibleDiv:!1};
},{}],"lTmO":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=require("../core"),t=d(e),i=require("ismobilejs"),s=r(i),n=require("./accessibleTarget"),o=r(n);function r(e){return e&&e.__esModule?e:{default:e}}function d(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.utils.mixins.delayMixin(t.DisplayObject.prototype,o.default);var l=9,c=100,a=0,p=0,u=2,v=1,y=-1e3,b=-1e3,f=2,w=function(){function e(t){h(this,e),!s.default.tablet&&!s.default.phone||navigator.isCocoonJS||this.createTouchHook();var i=document.createElement("div");i.style.width=c+"px",i.style.height=c+"px",i.style.position="absolute",i.style.top=a+"px",i.style.left=p+"px",i.style.zIndex=u,this.div=i,this.pool=[],this.renderId=0,this.debug=!1,this.renderer=t,this.children=[],this._onKeyDown=this._onKeyDown.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this.isActive=!1,this.isMobileAccessabillity=!1,window.addEventListener("keydown",this._onKeyDown,!1)}return e.prototype.createTouchHook=function(){var e=this,t=document.createElement("button");t.style.width=v+"px",t.style.height=v+"px",t.style.position="absolute",t.style.top=y+"px",t.style.left=b+"px",t.style.zIndex=f,t.style.backgroundColor="#FF0000",t.title="HOOK DIV",t.addEventListener("focus",function(){e.isMobileAccessabillity=!0,e.activate(),document.body.removeChild(t)}),document.body.appendChild(t)},e.prototype.activate=function(){this.isActive||(this.isActive=!0,window.document.addEventListener("mousemove",this._onMouseMove,!0),window.removeEventListener("keydown",this._onKeyDown,!1),this.renderer.on("postrender",this.update,this),this.renderer.view.parentNode&&this.renderer.view.parentNode.appendChild(this.div))},e.prototype.deactivate=function(){this.isActive&&!this.isMobileAccessabillity&&(this.isActive=!1,window.document.removeEventListener("mousemove",this._onMouseMove),window.addEventListener("keydown",this._onKeyDown,!1),this.renderer.off("postrender",this.update),this.div.parentNode&&this.div.parentNode.removeChild(this.div))},e.prototype.updateAccessibleObjects=function(e){if(e.visible){e.accessible&&e.interactive&&(e._accessibleActive||this.addChild(e),e.renderId=this.renderId);for(var t=e.children,i=t.length-1;i>=0;i--)this.updateAccessibleObjects(t[i])}},e.prototype.update=function(){if(this.renderer.renderingToScreen){this.updateAccessibleObjects(this.renderer._lastObjectRendered);var e=this.renderer.view.getBoundingClientRect(),i=e.width/this.renderer.width,s=e.height/this.renderer.height,n=this.div;n.style.left=e.left+"px",n.style.top=e.top+"px",n.style.width=this.renderer.width+"px",n.style.height=this.renderer.height+"px";for(var o=0;o<this.children.length;o++){var r=this.children[o];if(r.renderId!==this.renderId)r._accessibleActive=!1,t.utils.removeItems(this.children,o,1),this.div.removeChild(r._accessibleDiv),this.pool.push(r._accessibleDiv),r._accessibleDiv=null,o--,0===this.children.length&&this.deactivate();else{n=r._accessibleDiv;var d=r.hitArea,h=r.worldTransform;r.hitArea?(n.style.left=(h.tx+d.x*h.a)*i+"px",n.style.top=(h.ty+d.y*h.d)*s+"px",n.style.width=d.width*h.a*i+"px",n.style.height=d.height*h.d*s+"px"):(d=r.getBounds(),this.capHitArea(d),n.style.left=d.x*i+"px",n.style.top=d.y*s+"px",n.style.width=d.width*i+"px",n.style.height=d.height*s+"px")}}this.renderId++}},e.prototype.capHitArea=function(e){e.x<0&&(e.width+=e.x,e.x=0),e.y<0&&(e.height+=e.y,e.y=0),e.x+e.width>this.renderer.width&&(e.width=this.renderer.width-e.x),e.y+e.height>this.renderer.height&&(e.height=this.renderer.height-e.y)},e.prototype.addChild=function(e){var t=this.pool.pop();t||((t=document.createElement("button")).style.width=c+"px",t.style.height=c+"px",t.style.backgroundColor=this.debug?"rgba(255,0,0,0.5)":"transparent",t.style.position="absolute",t.style.zIndex=u,t.style.borderStyle="none",t.addEventListener("click",this._onClick.bind(this)),t.addEventListener("focus",this._onFocus.bind(this)),t.addEventListener("focusout",this._onFocusOut.bind(this))),e.accessibleTitle?t.title=e.accessibleTitle:e.accessibleTitle||e.accessibleHint||(t.title="displayObject "+this.tabIndex),e.accessibleHint&&t.setAttribute("aria-label",e.accessibleHint),e._accessibleActive=!0,e._accessibleDiv=t,t.displayObject=e,this.children.push(e),this.div.appendChild(e._accessibleDiv),e._accessibleDiv.tabIndex=e.tabIndex},e.prototype._onClick=function(e){var t=this.renderer.plugins.interaction;t.dispatchEvent(e.target.displayObject,"click",t.eventData)},e.prototype._onFocus=function(e){var t=this.renderer.plugins.interaction;t.dispatchEvent(e.target.displayObject,"mouseover",t.eventData)},e.prototype._onFocusOut=function(e){var t=this.renderer.plugins.interaction;t.dispatchEvent(e.target.displayObject,"mouseout",t.eventData)},e.prototype._onKeyDown=function(e){e.keyCode===l&&this.activate()},e.prototype._onMouseMove=function(){this.deactivate()},e.prototype.destroy=function(){this.div=null;for(var e=0;e<this.children.length;e++)this.children[e].div=null;window.document.removeEventListener("mousemove",this._onMouseMove),window.removeEventListener("keydown",this._onKeyDown),this.pool=null,this.children=null,this.renderer=null},e}();exports.default=w,t.WebGLRenderer.registerPlugin("accessibility",w),t.CanvasRenderer.registerPlugin("accessibility",w);
},{"../core":"RjZD","ismobilejs":"OrLe","./accessibleTarget":"2kJT"}],"l7H0":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=require("./accessibleTarget");Object.defineProperty(exports,"accessibleTarget",{enumerable:!0,get:function(){return t(e).default}});var r=require("./AccessibilityManager");function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"AccessibilityManager",{enumerable:!0,get:function(){return t(r).default}});
},{"./accessibleTarget":"2kJT","./AccessibilityManager":"lTmO"}],"rjpc":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=require("../../core"),r=t(e);function t(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r.default=e,r}function n(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}var i=new r.Rectangle,a=4,o=function(){function e(r){n(this,e),this.renderer=r,r.extract=this}return e.prototype.image=function(e){var r=new Image;return r.src=this.base64(e),r},e.prototype.base64=function(e){return this.canvas(e).toDataURL()},e.prototype.canvas=function(e){var t=this.renderer,n=void 0,o=void 0,s=void 0,d=!1,u=void 0;e&&(u=e instanceof r.RenderTexture?e:this.renderer.generateTexture(e)),u?(o=(n=u.baseTexture._glRenderTargets[this.renderer.CONTEXT_UID]).resolution,s=u.frame,d=!1):(o=(n=this.renderer.rootRenderTarget).resolution,d=!0,(s=i).width=n.size.width,s.height=n.size.height);var h=s.width*o,c=s.height*o,l=new r.CanvasRenderTarget(h,c);if(n){t.bindRenderTarget(n);var g=new Uint8Array(a*h*c),v=t.gl;v.readPixels(s.x*o,s.y*o,h,c,v.RGBA,v.UNSIGNED_BYTE,g);var f=l.context.getImageData(0,0,h,c);f.data.set(g),l.context.putImageData(f,0,0),d&&(l.context.scale(1,-1),l.context.drawImage(l.canvas,0,-c))}return l.canvas},e.prototype.pixels=function(e){var t=this.renderer,n=void 0,o=void 0,s=void 0,d=void 0;e&&(d=e instanceof r.RenderTexture?e:this.renderer.generateTexture(e)),d?(o=(n=d.baseTexture._glRenderTargets[this.renderer.CONTEXT_UID]).resolution,s=d.frame):(o=(n=this.renderer.rootRenderTarget).resolution,(s=i).width=n.size.width,s.height=n.size.height);var u=s.width*o,h=s.height*o,c=new Uint8Array(a*u*h);if(n){t.bindRenderTarget(n);var l=t.gl;l.readPixels(s.x*o,s.y*o,u,h,l.RGBA,l.UNSIGNED_BYTE,c)}return c},e.prototype.destroy=function(){this.renderer.extract=null,this.renderer=null},e}();exports.default=o,r.WebGLRenderer.registerPlugin("extract",o);
},{"../../core":"RjZD"}],"QFWM":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=require("../../core"),t=r(e);function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var a=new t.Rectangle,o=function(){function e(t){n(this,e),this.renderer=t,t.extract=this}return e.prototype.image=function(e){var t=new Image;return t.src=this.base64(e),t},e.prototype.base64=function(e){return this.canvas(e).toDataURL()},e.prototype.canvas=function(e){var r=this.renderer,n=void 0,o=void 0,i=void 0,s=void 0;e&&(s=e instanceof t.RenderTexture?e:r.generateTexture(e)),s?(n=s.baseTexture._canvasRenderTarget.context,o=s.baseTexture._canvasRenderTarget.resolution,i=s.frame):(n=r.rootContext,(i=a).width=this.renderer.width,i.height=this.renderer.height);var u=i.width*o,d=i.height*o,c=new t.CanvasRenderTarget(u,d),h=n.getImageData(i.x*o,i.y*o,u,d);return c.context.putImageData(h,0,0),c.canvas},e.prototype.pixels=function(e){var r=this.renderer,n=void 0,o=void 0,i=void 0,s=void 0;return e&&(s=e instanceof t.RenderTexture?e:r.generateTexture(e)),s?(n=s.baseTexture._canvasRenderTarget.context,o=s.baseTexture._canvasRenderTarget.resolution,i=s.frame):(n=r.rootContext,(i=a).width=r.width,i.height=r.height),n.getImageData(0,0,i.width*o,i.height*o).data},e.prototype.destroy=function(){this.renderer.extract=null,this.renderer=null},e}();exports.default=o,t.CanvasRenderer.registerPlugin("extract",o);
},{"../../core":"RjZD"}],"jvu7":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=require("./webgl/WebGLExtract");Object.defineProperty(exports,"webgl",{enumerable:!0,get:function(){return t(e).default}});var r=require("./canvas/CanvasExtract");function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"canvas",{enumerable:!0,get:function(){return t(r).default}});
},{"./webgl/WebGLExtract":"rjpc","./canvas/CanvasExtract":"QFWM"}],"Qekk":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),e=require("../core"),r=n(e);function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var u=function(e){function n(t,s){i(this,n);var u=o(this,e.call(this,t[0]instanceof r.Texture?t[0]:t[0].texture));return u._textures=null,u._durations=null,u.textures=t,u._autoUpdate=!1!==s,u.animationSpeed=1,u.loop=!0,u.onComplete=null,u.onFrameChange=null,u.onLoop=null,u._currentTime=0,u.playing=!1,u}return s(n,e),n.prototype.stop=function(){this.playing&&(this.playing=!1,this._autoUpdate&&r.ticker.shared.remove(this.update,this))},n.prototype.play=function(){this.playing||(this.playing=!0,this._autoUpdate&&r.ticker.shared.add(this.update,this,r.UPDATE_PRIORITY.HIGH))},n.prototype.gotoAndStop=function(t){this.stop();var e=this.currentFrame;this._currentTime=t,e!==this.currentFrame&&this.updateTexture()},n.prototype.gotoAndPlay=function(t){var e=this.currentFrame;this._currentTime=t,e!==this.currentFrame&&this.updateTexture(),this.play()},n.prototype.update=function(t){var e=this.animationSpeed*t,r=this.currentFrame;if(null!==this._durations){var n=this._currentTime%1*this._durations[this.currentFrame];for(n+=e/60*1e3;n<0;)this._currentTime--,n+=this._durations[this.currentFrame];var i=Math.sign(this.animationSpeed*t);for(this._currentTime=Math.floor(this._currentTime);n>=this._durations[this.currentFrame];)n-=this._durations[this.currentFrame]*i,this._currentTime+=i;this._currentTime+=n/this._durations[this.currentFrame]}else this._currentTime+=e;this._currentTime<0&&!this.loop?(this.gotoAndStop(0),this.onComplete&&this.onComplete()):this._currentTime>=this._textures.length&&!this.loop?(this.gotoAndStop(this._textures.length-1),this.onComplete&&this.onComplete()):r!==this.currentFrame&&(this.loop&&this.onLoop&&(this.animationSpeed>0&&this.currentFrame<r?this.onLoop():this.animationSpeed<0&&this.currentFrame>r&&this.onLoop()),this.updateTexture())},n.prototype.updateTexture=function(){this._texture=this._textures[this.currentFrame],this._textureID=-1,this.cachedTint=16777215,this.onFrameChange&&this.onFrameChange(this.currentFrame)},n.prototype.destroy=function(t){this.stop(),e.prototype.destroy.call(this,t)},n.fromFrames=function(t){for(var e=[],i=0;i<t.length;++i)e.push(r.Texture.fromFrame(t[i]));return new n(e)},n.fromImages=function(t){for(var e=[],i=0;i<t.length;++i)e.push(r.Texture.fromImage(t[i]));return new n(e)},t(n,[{key:"totalFrames",get:function(){return this._textures.length}},{key:"textures",get:function(){return this._textures},set:function(t){if(t[0]instanceof r.Texture)this._textures=t,this._durations=null;else{this._textures=[],this._durations=[];for(var e=0;e<t.length;e++)this._textures.push(t[e].texture),this._durations.push(t[e].time)}this.gotoAndStop(0),this.updateTexture()}},{key:"currentFrame",get:function(){var t=Math.floor(this._currentTime)%this._textures.length;return t<0&&(t+=this._textures.length),t}}]),n}(r.Sprite);exports.default=u;
},{"../core":"RjZD"}],"mK02":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=function(){function t(t,e){for(var r=0;r<e.length;r++){var a=e[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(t,a.key,a)}}return function(e,r,a){return r&&t(e.prototype,r),a&&t(e,a),e}}(),e=require("../core/math/Matrix"),r=a(e);function a(t){return t&&t.__esModule?t:{default:t}}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var u=new r.default,n=function(){function e(t,a){i(this,e),this._texture=t,this.mapCoord=new r.default,this.uClampFrame=new Float32Array(4),this.uClampOffset=new Float32Array(2),this._lastTextureID=-1,this.clampOffset=0,this.clampMargin=void 0===a?.5:a}return e.prototype.multiplyUvs=function(t,e){void 0===e&&(e=t);for(var r=this.mapCoord,a=0;a<t.length;a+=2){var i=t[a],u=t[a+1];e[a]=i*r.a+u*r.c+r.tx,e[a+1]=i*r.b+u*r.d+r.ty}return e},e.prototype.update=function(t){var e=this._texture;if(!e||!e.valid)return!1;if(!t&&this._lastTextureID===e._updateID)return!1;this._lastTextureID=e._updateID;var r=e._uvs;this.mapCoord.set(r.x1-r.x0,r.y1-r.y0,r.x3-r.x0,r.y3-r.y0,r.x0,r.y0);var a=e.orig,i=e.trim;i&&(u.set(a.width/i.width,0,0,a.height/i.height,-i.x/i.width,-i.y/i.height),this.mapCoord.append(u));var n=e.baseTexture,s=this.uClampFrame,h=this.clampMargin/n.resolution,o=this.clampOffset;return s[0]=(e._frame.x+h+o)/n.width,s[1]=(e._frame.y+h+o)/n.height,s[2]=(e._frame.x+e._frame.width-h+o)/n.width,s[3]=(e._frame.y+e._frame.height-h+o)/n.height,this.uClampOffset[0]=o/n.realWidth,this.uClampOffset[1]=o/n.realHeight,!0},t(e,[{key:"texture",get:function(){return this._texture},set:function(t){this._texture=t,this._lastTextureID=-1}}]),e}();exports.default=n;
},{"../core/math/Matrix":"dh7x"}],"+ghv":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),e=require("../core"),i=h(e),r=require("../core/sprites/canvas/CanvasTinter"),n=a(r),s=require("./TextureTransform"),o=a(s);function a(t){return t&&t.__esModule?t:{default:t}}function h(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function c(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=new i.Point,_=function(e){function r(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;u(this,r);var a=c(this,e.call(this,t));return a.tileTransform=new i.TransformStatic,a._width=n,a._height=s,a._canvasPattern=null,a.uvTransform=t.transform||new o.default(t),a.pluginName="tilingSprite",a.uvRespectAnchor=!1,a}return l(r,e),r.prototype._onTextureUpdate=function(){this.uvTransform&&(this.uvTransform.texture=this._texture),this.cachedTint=16777215},r.prototype._renderWebGL=function(t){var e=this._texture;e&&e.valid&&(this.tileTransform.updateLocalTransform(),this.uvTransform.update(),t.setObjectRenderer(t.plugins[this.pluginName]),t.plugins[this.pluginName].render(this))},r.prototype._renderCanvas=function(t){var e=this._texture;if(e.baseTexture.hasLoaded){var r=t.context,s=this.worldTransform,o=t.resolution,a=e.baseTexture,h=a.resolution,u=this.tilePosition.x/this.tileScale.x%e._frame.width*h,c=this.tilePosition.y/this.tileScale.y%e._frame.height*h;if(this._textureID!==this._texture._updateID||this.cachedTint!==this.tint){this._textureID=this._texture._updateID;var l=new i.CanvasRenderTarget(e._frame.width,e._frame.height,h);16777215!==this.tint?(this.tintedTexture=n.default.getTintedTexture(this,this.tint),l.context.drawImage(this.tintedTexture,0,0)):l.context.drawImage(a.source,-e._frame.x*h,-e._frame.y*h),this.cachedTint=this.tint,this._canvasPattern=l.context.createPattern(l.canvas,"repeat")}r.globalAlpha=this.worldAlpha,r.setTransform(s.a*o,s.b*o,s.c*o,s.d*o,s.tx*o,s.ty*o),t.setBlendMode(this.blendMode),r.fillStyle=this._canvasPattern,r.scale(this.tileScale.x/h,this.tileScale.y/h);var f=this.anchor.x*-this._width,_=this.anchor.y*-this._height;this.uvRespectAnchor?(r.translate(u,c),r.fillRect(-u+f,-c+_,this._width/this.tileScale.x*h,this._height/this.tileScale.y*h)):(r.translate(u+f,c+_),r.fillRect(-u,-c,this._width/this.tileScale.x*h,this._height/this.tileScale.y*h))}},r.prototype._calculateBounds=function(){var t=this._width*-this._anchor._x,e=this._height*-this._anchor._y,i=this._width*(1-this._anchor._x),r=this._height*(1-this._anchor._y);this._bounds.addFrame(this.transform,t,e,i,r)},r.prototype.getLocalBounds=function(t){return 0===this.children.length?(this._bounds.minX=this._width*-this._anchor._x,this._bounds.minY=this._height*-this._anchor._y,this._bounds.maxX=this._width*(1-this._anchor._x),this._bounds.maxY=this._height*(1-this._anchor._x),t||(this._localBoundsRect||(this._localBoundsRect=new i.Rectangle),t=this._localBoundsRect),this._bounds.getRectangle(t)):e.prototype.getLocalBounds.call(this,t)},r.prototype.containsPoint=function(t){this.worldTransform.applyInverse(t,f);var e=this._width,i=this._height,r=-e*this.anchor._x;if(f.x>=r&&f.x<r+e){var n=-i*this.anchor._y;if(f.y>=n&&f.y<n+i)return!0}return!1},r.prototype.destroy=function(t){e.prototype.destroy.call(this,t),this.tileTransform=null,this.uvTransform=null},r.from=function(t,e,n){return new r(i.Texture.from(t),e,n)},r.fromFrame=function(t,e,n){var s=i.utils.TextureCache[t];if(!s)throw new Error('The frameId "'+t+'" does not exist in the texture cache '+this);return new r(s,e,n)},r.fromImage=function(t,e,n,s,o){return new r(i.Texture.fromImage(t,s,o),e,n)},t(r,[{key:"clampMargin",get:function(){return this.uvTransform.clampMargin},set:function(t){this.uvTransform.clampMargin=t,this.uvTransform.update(!0)}},{key:"tileScale",get:function(){return this.tileTransform.scale},set:function(t){this.tileTransform.scale.copy(t)}},{key:"tilePosition",get:function(){return this.tileTransform.position},set:function(t){this.tileTransform.position.copy(t)}},{key:"width",get:function(){return this._width},set:function(t){this._width=t}},{key:"height",get:function(){return this._height},set:function(t){this._height=t}}]),r}(i.Sprite);exports.default=_;
},{"../core":"RjZD","../core/sprites/canvas/CanvasTinter":"xwA8","./TextureTransform":"mK02"}],"PpCh":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var r=require("../../core"),e=t(r),o=require("../../core/const"),n=require("path");function t(r){if(r&&r.__esModule)return r;var e={};if(null!=r)for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o]);return e.default=r,e}function a(r,e){if(!(r instanceof e))throw new TypeError("Cannot call a class as a function")}function i(r,e){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?r:e}function u(r,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);r.prototype=Object.create(e&&e.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(r,e):r.__proto__=e)}var l=new e.Matrix,s=function(r){function n(e){a(this,n);var o=i(this,r.call(this,e));return o.shader=null,o.simpleShader=null,o.quad=null,o}return u(n,r),n.prototype.onContextChange=function(){var r=this.renderer.gl;this.shader=new e.Shader(r,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTransform;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n    vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;\n}\n","varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\nuniform mat3 uMapCoord;\nuniform vec4 uClampFrame;\nuniform vec2 uClampOffset;\n\nvoid main(void)\n{\n    vec2 coord = mod(vTextureCoord - uClampOffset, vec2(1.0, 1.0)) + uClampOffset;\n    coord = (uMapCoord * vec3(coord, 1.0)).xy;\n    coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);\n\n    vec4 sample = texture2D(uSampler, coord);\n    gl_FragColor = sample * uColor;\n}\n"),this.simpleShader=new e.Shader(r,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTransform;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n    vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;\n}\n","varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 uColor;\n\nvoid main(void)\n{\n    vec4 sample = texture2D(uSampler, vTextureCoord);\n    gl_FragColor = sample * uColor;\n}\n"),this.renderer.bindVao(null),this.quad=new e.Quad(r,this.renderer.state.attribState),this.quad.initVao(this.shader)},n.prototype.render=function(r){var n=this.renderer,t=this.quad;n.bindVao(t.vao);var a=t.vertices;a[0]=a[6]=r._width*-r.anchor.x,a[1]=a[3]=r._height*-r.anchor.y,a[2]=a[4]=r._width*(1-r.anchor.x),a[5]=a[7]=r._height*(1-r.anchor.y),r.uvRespectAnchor&&((a=t.uvs)[0]=a[6]=-r.anchor.x,a[1]=a[3]=-r.anchor.y,a[2]=a[4]=1-r.anchor.x,a[5]=a[7]=1-r.anchor.y),t.upload();var i=r._texture,u=i.baseTexture,s=r.tileTransform.localTransform,d=r.uvTransform,c=u.isPowerOfTwo&&i.frame.width===u.width&&i.frame.height===u.height;c&&(u._glTextures[n.CONTEXT_UID]?c=u.wrapMode!==o.WRAP_MODES.CLAMP:u.wrapMode===o.WRAP_MODES.CLAMP&&(u.wrapMode=o.WRAP_MODES.REPEAT));var m=c?this.simpleShader:this.shader;n.bindShader(m);var p=i.width,f=i.height,h=r._width,v=r._height;l.set(s.a*p/h,s.b*p/v,s.c*f/h,s.d*f/v,s.tx/h,s.ty/v),l.invert(),c?l.prepend(d.mapCoord):(m.uniforms.uMapCoord=d.mapCoord.toArray(!0),m.uniforms.uClampFrame=d.uClampFrame,m.uniforms.uClampOffset=d.uClampOffset),m.uniforms.uTransform=l.toArray(!0),m.uniforms.uColor=e.utils.premultiplyTintToRgba(r.tint,r.worldAlpha,m.uniforms.uColor,u.premultipliedAlpha),m.uniforms.translationMatrix=r.transform.worldTransform.toArray(!0),m.uniforms.uSampler=n.bindTexture(i),n.setBlendMode(e.utils.correctBlendMode(r.blendMode,u.premultipliedAlpha)),t.vao.draw(this.renderer.gl.TRIANGLES,6,0)},n}(e.ObjectRenderer);exports.default=s,e.WebGLRenderer.registerPlugin("tilingSprite",s);
},{"../../core":"RjZD","../../core/const":"YEQi","path":"UUq2"}],"qyFb":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),e=require("../core"),n=h(e),i=require("../core/math/ObservablePoint"),r=a(i),s=require("../core/settings"),o=a(s);function a(t){return t&&t.__esModule?t:{default:t}}function h(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var c=function(e){function i(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u(this,i);var s=f(this,e.call(this));return s._textWidth=0,s._textHeight=0,s._glyphs=[],s._font={tint:void 0!==n.tint?n.tint:16777215,align:n.align||"left",name:null,size:0},s.font=n.font,s._text=t,s._maxWidth=0,s._maxLineHeight=0,s._anchor=new r.default(function(){s.dirty=!0},s,0,0),s.dirty=!1,s.updateText(),s}return l(i,e),i.prototype.updateText=function(){for(var t=i.fonts[this._font.name],e=this._font.size/t.size,r=new n.Point,s=[],o=[],a=null,h=0,u=0,f=0,l=-1,c=0,g=0,p=0,x=0;x<this.text.length;x++){var y=this.text.charCodeAt(x);if(/(\s)/.test(this.text.charAt(x))&&(l=x,c=h),/(?:\r\n|\r|\n)/.test(this.text.charAt(x)))o.push(h),u=Math.max(u,h),f++,r.x=0,r.y+=t.lineHeight,a=null;else if(-1!==l&&this._maxWidth>0&&r.x*e>this._maxWidth)n.utils.removeItems(s,l-g,x-l),x=l,l=-1,++g,o.push(c),u=Math.max(u,c),f++,r.x=0,r.y+=t.lineHeight,a=null;else{var d=t.chars[y];d&&(a&&d.kerning[a]&&(r.x+=d.kerning[a]),s.push({texture:d.texture,line:f,charCode:y,position:new n.Point(r.x+d.xOffset,r.y+d.yOffset)}),h=r.x+(d.texture.width+d.xOffset),r.x+=d.xAdvance,p=Math.max(p,d.yOffset+d.texture.height),a=y)}}o.push(h),u=Math.max(u,h);for(var _=[],m=0;m<=f;m++){var v=0;"right"===this._font.align?v=u-o[m]:"center"===this._font.align&&(v=(u-o[m])/2),_.push(v)}for(var b=s.length,A=this.tint,w=0;w<b;w++){var I=this._glyphs[w];I?I.texture=s[w].texture:(I=new n.Sprite(s[w].texture),this._glyphs.push(I)),I.position.x=(s[w].position.x+_[s[w].line])*e,I.position.y=s[w].position.y*e,I.scale.x=I.scale.y=e,I.tint=A,I.parent||this.addChild(I)}for(var O=b;O<this._glyphs.length;++O)this.removeChild(this._glyphs[O]);if(this._textWidth=u*e,this._textHeight=(r.y+t.lineHeight)*e,0!==this.anchor.x||0!==this.anchor.y)for(var k=0;k<b;k++)this._glyphs[k].x-=this._textWidth*this.anchor.x,this._glyphs[k].y-=this._textHeight*this.anchor.y;this._maxLineHeight=p*e},i.prototype.updateTransform=function(){this.validate(),this.containerUpdateTransform()},i.prototype.getLocalBounds=function(){return this.validate(),e.prototype.getLocalBounds.call(this)},i.prototype.validate=function(){this.dirty&&(this.updateText(),this.dirty=!1)},i.registerFont=function(t,e){var r={},s=t.getElementsByTagName("info")[0],a=t.getElementsByTagName("common")[0],h=e.baseTexture.resolution||o.default.RESOLUTION;r.font=s.getAttribute("face"),r.size=parseInt(s.getAttribute("size"),10),r.lineHeight=parseInt(a.getAttribute("lineHeight"),10)/h,r.chars={};for(var u=t.getElementsByTagName("char"),f=0;f<u.length;f++){var l=u[f],c=parseInt(l.getAttribute("id"),10),g=new n.Rectangle(parseInt(l.getAttribute("x"),10)/h+e.frame.x/h,parseInt(l.getAttribute("y"),10)/h+e.frame.y/h,parseInt(l.getAttribute("width"),10)/h,parseInt(l.getAttribute("height"),10)/h);r.chars[c]={xOffset:parseInt(l.getAttribute("xoffset"),10)/h,yOffset:parseInt(l.getAttribute("yoffset"),10)/h,xAdvance:parseInt(l.getAttribute("xadvance"),10)/h,kerning:{},texture:new n.Texture(e.baseTexture,g)}}for(var p=t.getElementsByTagName("kerning"),x=0;x<p.length;x++){var y=p[x],d=parseInt(y.getAttribute("first"),10)/h,_=parseInt(y.getAttribute("second"),10)/h,m=parseInt(y.getAttribute("amount"),10)/h;r.chars[_]&&(r.chars[_].kerning[d]=m)}return i.fonts[r.font]=r,r},t(i,[{key:"tint",get:function(){return this._font.tint},set:function(t){this._font.tint="number"==typeof t&&t>=0?t:16777215,this.dirty=!0}},{key:"align",get:function(){return this._font.align},set:function(t){this._font.align=t||"left",this.dirty=!0}},{key:"anchor",get:function(){return this._anchor},set:function(t){"number"==typeof t?this._anchor.set(t):this._anchor.copy(t)}},{key:"font",get:function(){return this._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):i.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)}},{key:"text",get:function(){return this._text},set:function(t){t=t.toString()||" ",this._text!==t&&(this._text=t,this.dirty=!0)}},{key:"maxWidth",get:function(){return this._maxWidth},set:function(t){this._maxWidth!==t&&(this._maxWidth=t,this.dirty=!0)}},{key:"maxLineHeight",get:function(){return this.validate(),this._maxLineHeight}},{key:"textWidth",get:function(){return this.validate(),this._textWidth}},{key:"textHeight",get:function(){return this.validate(),this._textHeight}}]),i}(n.Container);exports.default=c,c.fonts={};
},{"../core":"RjZD","../core/math/ObservablePoint":"aG0R","../core/settings":"tMVT"}],"64fV":[function(require,module,exports) {
"use strict";var t=require("../core"),a=o(t),e=require("../core/textures/Texture"),i=h(e),r=require("../core/textures/BaseTexture"),s=h(r),n=require("../core/utils");function h(t){return t&&t.__esModule?t:{default:t}}function o(t){if(t&&t.__esModule)return t;var a={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(a[e]=t[e]);return a.default=t,a}function c(t,a){if(!(t instanceof a))throw new TypeError("Cannot call a class as a function")}var l=a.DisplayObject,d=new a.Matrix;l.prototype._cacheAsBitmap=!1,l.prototype._cacheData=!1;var u=function t(){c(this,t),this.textureCacheId=null,this.originalRenderWebGL=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(l.prototype,{cacheAsBitmap:{get:function(){return this._cacheAsBitmap},set:function(t){if(this._cacheAsBitmap!==t){this._cacheAsBitmap=t;var a=void 0;t?(this._cacheData||(this._cacheData=new u),(a=this._cacheData).originalRenderWebGL=this.renderWebGL,a.originalRenderCanvas=this.renderCanvas,a.originalUpdateTransform=this.updateTransform,a.originalCalculateBounds=this._calculateBounds,a.originalGetLocalBounds=this.getLocalBounds,a.originalDestroy=this.destroy,a.originalContainsPoint=this.containsPoint,a.originalMask=this._mask,a.originalFilterArea=this.filterArea,this.renderWebGL=this._renderCachedWebGL,this.renderCanvas=this._renderCachedCanvas,this.destroy=this._cacheAsBitmapDestroy):((a=this._cacheData).sprite&&this._destroyCachedDisplayObject(),this.renderWebGL=a.originalRenderWebGL,this.renderCanvas=a.originalRenderCanvas,this._calculateBounds=a.originalCalculateBounds,this.getLocalBounds=a.originalGetLocalBounds,this.destroy=a.originalDestroy,this.updateTransform=a.originalUpdateTransform,this.containsPoint=a.originalContainsPoint,this._mask=a.originalMask,this.filterArea=a.originalFilterArea)}}}}),l.prototype._renderCachedWebGL=function(t){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObject(t),this._cacheData.sprite._transformID=-1,this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._renderWebGL(t))},l.prototype._initCachedDisplayObject=function(t){if(!this._cacheData||!this._cacheData.sprite){var e=this.alpha;this.alpha=1,t.currentRenderer.flush();var r=this.getLocalBounds().clone();if(this._filters){var h=this._filters[0].padding;r.pad(h)}var o=t._activeRenderTarget,c=t.filterManager.filterStack,l=a.RenderTexture.create(0|r.width,0|r.height),u="cacheAsBitmap_"+(0,n.uid)();this._cacheData.textureCacheId=u,s.default.addToCache(l.baseTexture,u),i.default.addToCache(l,u);var p=d;p.tx=-r.x,p.ty=-r.y,this.transform.worldTransform.identity(),this.renderWebGL=this._cacheData.originalRenderWebGL,t.render(this,l,!0,p,!0),t.bindRenderTarget(o),t.filterManager.filterStack=c,this.renderWebGL=this._renderCachedWebGL,this.updateTransform=this.displayObjectUpdateTransform,this._mask=null,this.filterArea=null;var _=new a.Sprite(l);_.transform.worldTransform=this.transform.worldTransform,_.anchor.x=-r.x/r.width,_.anchor.y=-r.y/r.height,_.alpha=e,_._bounds=this._bounds,this._calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._cacheData.sprite=_,this.transform._parentID=-1,this.parent?this.updateTransform():(this.parent=t._tempDisplayObjectParent,this.updateTransform(),this.parent=null),this.containsPoint=_.containsPoint.bind(_)}},l.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))},l.prototype._initCachedDisplayObjectCanvas=function(t){if(!this._cacheData||!this._cacheData.sprite){var e=this.getLocalBounds(),r=this.alpha;this.alpha=1;var h=t.context,o=a.RenderTexture.create(0|e.width,0|e.height),c="cacheAsBitmap_"+(0,n.uid)();this._cacheData.textureCacheId=c,s.default.addToCache(o.baseTexture,c),i.default.addToCache(o,c);var l=d;this.transform.localTransform.copy(l),l.invert(),l.tx-=e.x,l.ty-=e.y,this.renderCanvas=this._cacheData.originalRenderCanvas,t.render(this,o,!0,l,!1),t.context=h,this.renderCanvas=this._renderCachedCanvas,this._calculateBounds=this._calculateCachedBounds,this._mask=null,this.filterArea=null;var u=new a.Sprite(o);u.transform.worldTransform=this.transform.worldTransform,u.anchor.x=-e.x/e.width,u.anchor.y=-e.y/e.height,u._bounds=this._bounds,u.alpha=r,this.parent?this.updateTransform():(this.parent=t._tempDisplayObjectParent,this.updateTransform(),this.parent=null),this.updateTransform=this.displayObjectUpdateTransform,this._cacheData.sprite=u,this.containsPoint=u.containsPoint.bind(u)}},l.prototype._calculateCachedBounds=function(){this._cacheData.sprite._calculateBounds()},l.prototype._getCachedLocalBounds=function(){return this._cacheData.sprite.getLocalBounds()},l.prototype._destroyCachedDisplayObject=function(){this._cacheData.sprite._texture.destroy(!0),this._cacheData.sprite=null,s.default.removeFromCache(this._cacheData.textureCacheId),i.default.removeFromCache(this._cacheData.textureCacheId),this._cacheData.textureCacheId=null},l.prototype._cacheAsBitmapDestroy=function(t){this.cacheAsBitmap=!1,this.destroy(t)};
},{"../core":"RjZD","../core/textures/Texture":"xUki","../core/textures/BaseTexture":"ce6K","../core/utils":"dDI1"}],"yM7h":[function(require,module,exports) {
"use strict";var r=require("../core"),e=t(r);function t(r){if(r&&r.__esModule)return r;var e={};if(null!=r)for(var t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=r[t]);return e.default=r,e}e.DisplayObject.prototype.name=null,e.Container.prototype.getChildByName=function(r){for(var e=0;e<this.children.length;e++)if(this.children[e].name===r)return this.children[e];return null};
},{"../core":"RjZD"}],"7F5b":[function(require,module,exports) {
"use strict";var t=require("../core"),i=o(t);function o(t){if(t&&t.__esModule)return t;var i={};if(null!=t)for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(i[o]=t[o]);return i.default=t,i}i.DisplayObject.prototype.getGlobalPosition=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new i.Point,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.parent?this.parent.toGlobal(this.position,t,o):(t.x=this.position.x,t.y=this.position.y),t};
},{"../core":"RjZD"}],"KRVa":[function(require,module,exports) {
"use strict";exports.__esModule=!0,exports.BitmapText=exports.TilingSpriteRenderer=exports.TilingSprite=exports.TextureTransform=exports.AnimatedSprite=void 0;var e=require("./AnimatedSprite");Object.defineProperty(exports,"AnimatedSprite",{enumerable:!0,get:function(){return u(e).default}});var r=require("./TextureTransform");Object.defineProperty(exports,"TextureTransform",{enumerable:!0,get:function(){return u(r).default}});var t=require("./TilingSprite");Object.defineProperty(exports,"TilingSprite",{enumerable:!0,get:function(){return u(t).default}});var i=require("./webgl/TilingSpriteRenderer");Object.defineProperty(exports,"TilingSpriteRenderer",{enumerable:!0,get:function(){return u(i).default}});var n=require("./BitmapText");function u(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"BitmapText",{enumerable:!0,get:function(){return u(n).default}}),require("./cacheAsBitmap"),require("./getChildByName"),require("./getGlobalPosition");
},{"./AnimatedSprite":"Qekk","./TextureTransform":"mK02","./TilingSprite":"+ghv","./webgl/TilingSpriteRenderer":"PpCh","./BitmapText":"qyFb","./cacheAsBitmap":"64fV","./getChildByName":"yM7h","./getGlobalPosition":"7F5b"}],"106G":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=require("../../core"),n=o(e),r=require("path");function o(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n.default=e,n}function t(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function i(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?e:n}function a(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}var v=function(e){function n(){return t(this,n),i(this,e.call(this,"\nattribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 v_rgbNW;\nvarying vec2 v_rgbNE;\nvarying vec2 v_rgbSW;\nvarying vec2 v_rgbSE;\nvarying vec2 v_rgbM;\n\nuniform vec4 filterArea;\n\nvarying vec2 vTextureCoord;\n\nvec2 mapCoord( vec2 coord )\n{\n    coord *= filterArea.xy;\n    coord += filterArea.zw;\n\n    return coord;\n}\n\nvec2 unmapCoord( vec2 coord )\n{\n    coord -= filterArea.zw;\n    coord /= filterArea.xy;\n\n    return coord;\n}\n\nvoid texcoords(vec2 fragCoord, vec2 resolution,\n               out vec2 v_rgbNW, out vec2 v_rgbNE,\n               out vec2 v_rgbSW, out vec2 v_rgbSE,\n               out vec2 v_rgbM) {\n    vec2 inverseVP = 1.0 / resolution.xy;\n    v_rgbNW = (fragCoord + vec2(-1.0, -1.0)) * inverseVP;\n    v_rgbNE = (fragCoord + vec2(1.0, -1.0)) * inverseVP;\n    v_rgbSW = (fragCoord + vec2(-1.0, 1.0)) * inverseVP;\n    v_rgbSE = (fragCoord + vec2(1.0, 1.0)) * inverseVP;\n    v_rgbM = vec2(fragCoord * inverseVP);\n}\n\nvoid main(void) {\n\n   gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n   vTextureCoord = aTextureCoord;\n\n   vec2 fragCoord = vTextureCoord * filterArea.xy;\n\n   texcoords(fragCoord, filterArea.xy, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);\n}",'varying vec2 v_rgbNW;\nvarying vec2 v_rgbNE;\nvarying vec2 v_rgbSW;\nvarying vec2 v_rgbSE;\nvarying vec2 v_rgbM;\n\nvarying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\n\n/**\n Basic FXAA implementation based on the code on geeks3d.com with the\n modification that the texture2DLod stuff was removed since it\'s\n unsupported by WebGL.\n \n --\n \n From:\n https://github.com/mitsuhiko/webgl-meincraft\n \n Copyright (c) 2011 by Armin Ronacher.\n \n Some rights reserved.\n \n Redistribution and use in source and binary forms, with or without\n modification, are permitted provided that the following conditions are\n met:\n \n * Redistributions of source code must retain the above copyright\n notice, this list of conditions and the following disclaimer.\n \n * Redistributions in binary form must reproduce the above\n copyright notice, this list of conditions and the following\n disclaimer in the documentation and/or other materials provided\n with the distribution.\n \n * The names of the contributors may not be used to endorse or\n promote products derived from this software without specific\n prior written permission.\n \n THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS\n "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT\n LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR\n A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT\n OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,\n SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT\n LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,\n DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY\n THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE\n OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n */\n\n#ifndef FXAA_REDUCE_MIN\n#define FXAA_REDUCE_MIN   (1.0/ 128.0)\n#endif\n#ifndef FXAA_REDUCE_MUL\n#define FXAA_REDUCE_MUL   (1.0 / 8.0)\n#endif\n#ifndef FXAA_SPAN_MAX\n#define FXAA_SPAN_MAX     8.0\n#endif\n\n//optimized version for mobile, where dependent\n//texture reads can be a bottleneck\nvec4 fxaa(sampler2D tex, vec2 fragCoord, vec2 resolution,\n          vec2 v_rgbNW, vec2 v_rgbNE,\n          vec2 v_rgbSW, vec2 v_rgbSE,\n          vec2 v_rgbM) {\n    vec4 color;\n    mediump vec2 inverseVP = vec2(1.0 / resolution.x, 1.0 / resolution.y);\n    vec3 rgbNW = texture2D(tex, v_rgbNW).xyz;\n    vec3 rgbNE = texture2D(tex, v_rgbNE).xyz;\n    vec3 rgbSW = texture2D(tex, v_rgbSW).xyz;\n    vec3 rgbSE = texture2D(tex, v_rgbSE).xyz;\n    vec4 texColor = texture2D(tex, v_rgbM);\n    vec3 rgbM  = texColor.xyz;\n    vec3 luma = vec3(0.299, 0.587, 0.114);\n    float lumaNW = dot(rgbNW, luma);\n    float lumaNE = dot(rgbNE, luma);\n    float lumaSW = dot(rgbSW, luma);\n    float lumaSE = dot(rgbSE, luma);\n    float lumaM  = dot(rgbM,  luma);\n    float lumaMin = min(lumaM, min(min(lumaNW, lumaNE), min(lumaSW, lumaSE)));\n    float lumaMax = max(lumaM, max(max(lumaNW, lumaNE), max(lumaSW, lumaSE)));\n    \n    mediump vec2 dir;\n    dir.x = -((lumaNW + lumaNE) - (lumaSW + lumaSE));\n    dir.y =  ((lumaNW + lumaSW) - (lumaNE + lumaSE));\n    \n    float dirReduce = max((lumaNW + lumaNE + lumaSW + lumaSE) *\n                          (0.25 * FXAA_REDUCE_MUL), FXAA_REDUCE_MIN);\n    \n    float rcpDirMin = 1.0 / (min(abs(dir.x), abs(dir.y)) + dirReduce);\n    dir = min(vec2(FXAA_SPAN_MAX, FXAA_SPAN_MAX),\n              max(vec2(-FXAA_SPAN_MAX, -FXAA_SPAN_MAX),\n                  dir * rcpDirMin)) * inverseVP;\n    \n    vec3 rgbA = 0.5 * (\n                       texture2D(tex, fragCoord * inverseVP + dir * (1.0 / 3.0 - 0.5)).xyz +\n                       texture2D(tex, fragCoord * inverseVP + dir * (2.0 / 3.0 - 0.5)).xyz);\n    vec3 rgbB = rgbA * 0.5 + 0.25 * (\n                                     texture2D(tex, fragCoord * inverseVP + dir * -0.5).xyz +\n                                     texture2D(tex, fragCoord * inverseVP + dir * 0.5).xyz);\n    \n    float lumaB = dot(rgbB, luma);\n    if ((lumaB < lumaMin) || (lumaB > lumaMax))\n        color = vec4(rgbA, texColor.a);\n    else\n        color = vec4(rgbB, texColor.a);\n    return color;\n}\n\nvoid main() {\n\n      vec2 fragCoord = vTextureCoord * filterArea.xy;\n\n      vec4 color;\n\n    color = fxaa(uSampler, fragCoord, filterArea.xy, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);\n\n      gl_FragColor = color;\n}\n'))}return a(n,e),n}(n.Filter);exports.default=v;
},{"../../core":"RjZD","path":"UUq2"}],"qmQd":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=function(){function e(e,n){for(var o=0;o<n.length;o++){var r=n[o];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(n,o,r){return o&&e(n.prototype,o),r&&e(n,r),n}}(),n=require("../../core"),o=t(n),r=require("path");function t(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n.default=e,n}function i(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function a(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!=typeof n&&"function"!=typeof n?e:n}function u(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+typeof n);e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)}var l=function(n){function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.5,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Math.random();i(this,o);var t=a(this,n.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n}","precision highp float;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform float uNoise;\nuniform float uSeed;\nuniform sampler2D uSampler;\n\nfloat rand(vec2 co)\n{\n    return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);\n}\n\nvoid main()\n{\n    vec4 color = texture2D(uSampler, vTextureCoord);\n    float randomValue = rand(gl_FragCoord.xy * uSeed);\n    float diff = (randomValue - 0.5) * uNoise;\n\n    // Un-premultiply alpha before applying the color matrix. See issue #3539.\n    if (color.a > 0.0) {\n        color.rgb /= color.a;\n    }\n\n    color.r += diff;\n    color.g += diff;\n    color.b += diff;\n\n    // Premultiply alpha again.\n    color.rgb *= color.a;\n\n    gl_FragColor = color;\n}\n"));return t.noise=e,t.seed=r,t}return u(o,n),e(o,[{key:"noise",get:function(){return this.uniforms.uNoise},set:function(e){this.uniforms.uNoise=e}},{key:"seed",get:function(){return this.uniforms.uSeed},set:function(e){this.uniforms.uSeed=e}}]),o}(o.Filter);exports.default=l;
},{"../../core":"RjZD","path":"UUq2"}],"fRpE":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=function(){function e(e,r){for(var t=0;t<r.length;t++){var n=r[t];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(r,t,n){return t&&e(r.prototype,t),n&&e(r,n),r}}(),r=require("../../core"),t=i(r),n=require("path");function i(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r.default=e,r}function o(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function a(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||"object"!=typeof r&&"function"!=typeof r?e:r}function u(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}var l=function(r){function n(e,i){o(this,n);var u=new t.Matrix;e.renderable=!1;var l=a(this,r.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 filterMatrix;\n\nvarying vec2 vTextureCoord;\nvarying vec2 vFilterCoord;\n\nvoid main(void)\n{\n   gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n   vFilterCoord = ( filterMatrix * vec3( aTextureCoord, 1.0)  ).xy;\n   vTextureCoord = aTextureCoord;\n}","varying vec2 vFilterCoord;\nvarying vec2 vTextureCoord;\n\nuniform vec2 scale;\n\nuniform sampler2D uSampler;\nuniform sampler2D mapSampler;\n\nuniform vec4 filterClamp;\n\nvoid main(void)\n{\n   vec4 map =  texture2D(mapSampler, vFilterCoord);\n\n   map -= 0.5;\n   map.xy *= scale;\n\n   gl_FragColor = texture2D(uSampler, clamp(vec2(vTextureCoord.x + map.x, vTextureCoord.y + map.y), filterClamp.xy, filterClamp.zw));\n}\n"));return l.maskSprite=e,l.maskMatrix=u,l.uniforms.mapSampler=e._texture,l.uniforms.filterMatrix=u,l.uniforms.scale={x:1,y:1},null==i&&(i=20),l.scale=new t.Point(i,i),l}return u(n,r),n.prototype.apply=function(e,r,t){var n=1/t.destinationFrame.width*(t.size.width/r.size.width);this.uniforms.filterMatrix=e.calculateSpriteMatrix(this.maskMatrix,this.maskSprite),this.uniforms.scale.x=this.scale.x*n,this.uniforms.scale.y=this.scale.y*n,e.applyFilter(this,r,t)},e(n,[{key:"map",get:function(){return this.uniforms.mapSampler},set:function(e){this.uniforms.mapSampler=e}}]),n}(t.Filter);exports.default=l;
},{"../../core":"RjZD","path":"UUq2"}],"Ga9O":[function(require,module,exports) {
"use strict";exports.__esModule=!0,exports.default=r;var e=["attribute vec2 aVertexPosition;","attribute vec2 aTextureCoord;","uniform float strength;","uniform mat3 projectionMatrix;","varying vec2 vBlurTexCoords[%size%];","void main(void)","{","gl_Position = vec4((projectionMatrix * vec3((aVertexPosition), 1.0)).xy, 0.0, 1.0);","%blur%","}"].join("\n");function r(r,o){var t=Math.ceil(r/2),i=e,a="",n=void 0;n=o?"vBlurTexCoords[%index%] = aTextureCoord + vec2(%sampleIndex% * strength, 0.0);":"vBlurTexCoords[%index%] = aTextureCoord + vec2(0.0, %sampleIndex% * strength);";for(var s=0;s<r;s++){var x=n.replace("%index%",s);a+=x=x.replace("%sampleIndex%",s-(t-1)+".0"),a+="\n"}return i=(i=i.replace("%blur%",a)).replace("%size%",r)}
},{}],"z7q+":[function(require,module,exports) {
"use strict";exports.__esModule=!0,exports.default=l;var e={5:[.153388,.221461,.250301],7:[.071303,.131514,.189879,.214607],9:[.028532,.067234,.124009,.179044,.20236],11:[.0093,.028002,.065984,.121703,.175713,.198596],13:[.002406,.009255,.027867,.065666,.121117,.174868,.197641],15:[489e-6,.002403,.009246,.02784,.065602,.120999,.174697,.197448]},r=["varying vec2 vBlurTexCoords[%size%];","uniform sampler2D uSampler;","void main(void)","{","    gl_FragColor = vec4(0.0);","    %blur%","}"].join("\n");function l(l){for(var o=e[l],a=o.length,u=r,i="",v=void 0,n=0;n<l;n++){var s="gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;".replace("%index%",n);v=n,n>=a&&(v=l-n-1),i+=s=s.replace("%value%",o[v]),i+="\n"}return u=(u=u.replace("%blur%",i)).replace("%size%",l)}
},{}],"39pn":[function(require,module,exports) {
"use strict";function e(e){for(var r=e.getParameter(e.MAX_VARYING_VECTORS),t=15;t>r;)t-=2;return t}exports.__esModule=!0,exports.default=e;
},{}],"Zx84":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),e=require("../../core"),r=f(e),n=require("./generateBlurVertSource"),i=l(n),s=require("./generateBlurFragSource"),u=l(s),o=require("./getMaxBlurKernelSize"),a=l(o);function l(t){return t&&t.__esModule?t:{default:t}}function f(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function c(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function h(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function p(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var y=function(e){function n(t,s,o,a){c(this,n),a=a||5;var l=(0,i.default)(a,!0),f=(0,u.default)(a),p=h(this,e.call(this,l,f));return p.resolution=o||r.settings.RESOLUTION,p._quality=0,p.quality=s||4,p.strength=t||8,p.firstRun=!0,p}return p(n,e),n.prototype.apply=function(t,e,r,n){if(this.firstRun){var s=t.renderer.gl,o=(0,a.default)(s);this.vertexSrc=(0,i.default)(o,!0),this.fragmentSrc=(0,u.default)(o),this.firstRun=!1}if(this.uniforms.strength=1/r.size.width*(r.size.width/e.size.width),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,1===this.passes)t.applyFilter(this,e,r,n);else{for(var l=t.getRenderTarget(!0),f=e,c=l,h=0;h<this.passes-1;h++){t.applyFilter(this,f,c,!0);var p=c;c=f,f=p}t.applyFilter(this,f,r,n),t.returnRenderTarget(l)}},t(n,[{key:"blur",get:function(){return this.strength},set:function(t){this.padding=2*Math.abs(t),this.strength=t}},{key:"quality",get:function(){return this._quality},set:function(t){this._quality=t,this.passes=t}}]),n}(r.Filter);exports.default=y;
},{"../../core":"RjZD","./generateBlurVertSource":"Ga9O","./generateBlurFragSource":"z7q+","./getMaxBlurKernelSize":"39pn"}],"KYHG":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),t=require("../../core"),r=f(t),n=require("./generateBlurVertSource"),i=l(n),s=require("./generateBlurFragSource"),u=l(s),o=require("./getMaxBlurKernelSize"),a=l(o);function l(e){return e&&e.__esModule?e:{default:e}}function f(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function p(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=function(t){function n(e,s,o,a){h(this,n),a=a||5;var l=(0,i.default)(a,!1),f=(0,u.default)(a),p=c(this,t.call(this,l,f));return p.resolution=o||r.settings.RESOLUTION,p._quality=0,p.quality=s||4,p.strength=e||8,p.firstRun=!0,p}return p(n,t),n.prototype.apply=function(e,t,r,n){if(this.firstRun){var s=e.renderer.gl,o=(0,a.default)(s);this.vertexSrc=(0,i.default)(o,!1),this.fragmentSrc=(0,u.default)(o),this.firstRun=!1}if(this.uniforms.strength=1/r.size.height*(r.size.height/t.size.height),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,1===this.passes)e.applyFilter(this,t,r,n);else{for(var l=e.getRenderTarget(!0),f=t,h=l,c=0;c<this.passes-1;c++){e.applyFilter(this,f,h,!0);var p=h;h=f,f=p}e.applyFilter(this,f,r,n),e.returnRenderTarget(l)}},e(n,[{key:"blur",get:function(){return this.strength},set:function(e){this.padding=2*Math.abs(e),this.strength=e}},{key:"quality",get:function(){return this._quality},set:function(e){this._quality=e,this.passes=e}}]),n}(r.Filter);exports.default=y;
},{"../../core":"RjZD","./generateBlurVertSource":"Ga9O","./generateBlurFragSource":"z7q+","./getMaxBlurKernelSize":"39pn"}],"//1e":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),e=require("../../core"),r=a(e),n=require("./BlurXFilter"),i=o(n),l=require("./BlurYFilter"),u=o(l);function o(t){return t&&t.__esModule?t:{default:t}}function a(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function s(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function b(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function h(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var f=function(e){function n(t,l,o,a){s(this,n);var h=b(this,e.call(this));return h.blurXFilter=new i.default(t,l,o,a),h.blurYFilter=new u.default(t,l,o,a),h.padding=0,h.resolution=o||r.settings.RESOLUTION,h.quality=l||4,h.blur=t||8,h}return h(n,e),n.prototype.apply=function(t,e,r){var n=t.getRenderTarget(!0);this.blurXFilter.apply(t,e,n,!0),this.blurYFilter.apply(t,n,r,!1),t.returnRenderTarget(n)},t(n,[{key:"blur",get:function(){return this.blurXFilter.blur},set:function(t){this.blurXFilter.blur=this.blurYFilter.blur=t,this.padding=2*Math.max(Math.abs(this.blurXFilter.strength),Math.abs(this.blurYFilter.strength))}},{key:"quality",get:function(){return this.blurXFilter.quality},set:function(t){this.blurXFilter.quality=this.blurYFilter.quality=t}},{key:"blurX",get:function(){return this.blurXFilter.blur},set:function(t){this.blurXFilter.blur=t,this.padding=2*Math.max(Math.abs(this.blurXFilter.strength),Math.abs(this.blurYFilter.strength))}},{key:"blurY",get:function(){return this.blurYFilter.blur},set:function(t){this.blurYFilter.blur=t,this.padding=2*Math.max(Math.abs(this.blurXFilter.strength),Math.abs(this.blurYFilter.strength))}},{key:"blendMode",get:function(){return this.blurYFilter._blendMode},set:function(t){this.blurYFilter._blendMode=t}}]),n}(r.Filter);exports.default=f;
},{"../../core":"RjZD","./BlurXFilter":"Zx84","./BlurYFilter":"KYHG"}],"fxiT":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=function(){function t(t,r){for(var n=0;n<r.length;n++){var o=r[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(t,o.key,o)}}return function(r,n,o){return n&&t(r.prototype,n),o&&t(r,o),r}}(),r=require("../../core"),n=e(r),o=require("path");function e(t){if(t&&t.__esModule)return t;var r={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n]);return r.default=t,r}function i(t,r){if(!(t instanceof r))throw new TypeError("Cannot call a class as a function")}function a(t,r){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||"object"!=typeof r&&"function"!=typeof r?t:r}function u(t,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);t.prototype=Object.create(r&&r.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(t,r):t.__proto__=r)}var l=function(r){function n(){i(this,n);var t=a(this,r.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform float m[20];\nuniform float uAlpha;\n\nvoid main(void)\n{\n    vec4 c = texture2D(uSampler, vTextureCoord);\n\n    if (uAlpha == 0.0) {\n        gl_FragColor = c;\n        return;\n    }\n\n    // Un-premultiply alpha before applying the color matrix. See issue #3539.\n    if (c.a > 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"));return t.uniforms.m=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],t.alpha=1,t}return u(n,r),n.prototype._loadMatrix=function(t){var r=t;arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(this._multiply(r,this.uniforms.m,t),r=this._colorMatrix(r)),this.uniforms.m=r},n.prototype._multiply=function(t,r,n){return t[0]=r[0]*n[0]+r[1]*n[5]+r[2]*n[10]+r[3]*n[15],t[1]=r[0]*n[1]+r[1]*n[6]+r[2]*n[11]+r[3]*n[16],t[2]=r[0]*n[2]+r[1]*n[7]+r[2]*n[12]+r[3]*n[17],t[3]=r[0]*n[3]+r[1]*n[8]+r[2]*n[13]+r[3]*n[18],t[4]=r[0]*n[4]+r[1]*n[9]+r[2]*n[14]+r[3]*n[19]+r[4],t[5]=r[5]*n[0]+r[6]*n[5]+r[7]*n[10]+r[8]*n[15],t[6]=r[5]*n[1]+r[6]*n[6]+r[7]*n[11]+r[8]*n[16],t[7]=r[5]*n[2]+r[6]*n[7]+r[7]*n[12]+r[8]*n[17],t[8]=r[5]*n[3]+r[6]*n[8]+r[7]*n[13]+r[8]*n[18],t[9]=r[5]*n[4]+r[6]*n[9]+r[7]*n[14]+r[8]*n[19]+r[9],t[10]=r[10]*n[0]+r[11]*n[5]+r[12]*n[10]+r[13]*n[15],t[11]=r[10]*n[1]+r[11]*n[6]+r[12]*n[11]+r[13]*n[16],t[12]=r[10]*n[2]+r[11]*n[7]+r[12]*n[12]+r[13]*n[17],t[13]=r[10]*n[3]+r[11]*n[8]+r[12]*n[13]+r[13]*n[18],t[14]=r[10]*n[4]+r[11]*n[9]+r[12]*n[14]+r[13]*n[19]+r[14],t[15]=r[15]*n[0]+r[16]*n[5]+r[17]*n[10]+r[18]*n[15],t[16]=r[15]*n[1]+r[16]*n[6]+r[17]*n[11]+r[18]*n[16],t[17]=r[15]*n[2]+r[16]*n[7]+r[17]*n[12]+r[18]*n[17],t[18]=r[15]*n[3]+r[16]*n[8]+r[17]*n[13]+r[18]*n[18],t[19]=r[15]*n[4]+r[16]*n[9]+r[17]*n[14]+r[18]*n[19]+r[19],t},n.prototype._colorMatrix=function(t){var r=new Float32Array(t);return r[4]/=255,r[9]/=255,r[14]/=255,r[19]/=255,r},n.prototype.brightness=function(t,r){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,r)},n.prototype.greyscale=function(t,r){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,r)},n.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)},n.prototype.hue=function(t,r){t=(t||0)/180*Math.PI;var n=Math.cos(t),o=Math.sin(t),e=1/3,i=(0,Math.sqrt)(e),a=[n+(1-n)*e,e*(1-n)-i*o,e*(1-n)+i*o,0,0,e*(1-n)+i*o,n+e*(1-n),e*(1-n)-i*o,0,0,e*(1-n)-i*o,e*(1-n)+i*o,n+e*(1-n),0,0,0,0,0,1,0];this._loadMatrix(a,r)},n.prototype.contrast=function(t,r){var n=(t||0)+1,o=-.5*(n-1),e=[n,0,0,0,o,0,n,0,0,o,0,0,n,0,o,0,0,0,1,0];this._loadMatrix(e,r)},n.prototype.saturate=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments[1],n=2*t/3+1,o=-.5*(n-1),e=[n,o,o,0,0,o,n,o,0,0,o,o,n,0,0,0,0,0,1,0];this._loadMatrix(e,r)},n.prototype.desaturate=function(){this.saturate(-1)},n.prototype.negative=function(t){this._loadMatrix([0,1,1,0,0,1,0,1,0,0,1,1,0,0,0,0,0,0,1,0],t)},n.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)},n.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)},n.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)},n.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)},n.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)},n.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)},n.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)},n.prototype.colorTone=function(t,r,n,o,e){var i=((n=n||16770432)>>16&255)/255,a=(n>>8&255)/255,u=(255&n)/255,l=((o=o||3375104)>>16&255)/255,c=(o>>8&255)/255,s=(255&o)/255,p=[.3,.59,.11,0,0,i,a,u,t=t||.2,0,l,c,s,r=r||.15,0,i-l,a-c,u-s,0,0];this._loadMatrix(p,e)},n.prototype.night=function(t,r){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,r)},n.prototype.predator=function(t,r){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,r)},n.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)},n.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)},t(n,[{key:"matrix",get:function(){return this.uniforms.m},set:function(t){this.uniforms.m=t}},{key:"alpha",get:function(){return this.uniforms.uAlpha},set:function(t){this.uniforms.uAlpha=t}}]),n}(n.Filter);exports.default=l,l.prototype.grayscale=l.prototype.greyscale;
},{"../../core":"RjZD","path":"UUq2"}],"k0J5":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=require("../../core"),t=o(e),r=require("path");function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=function(e){function t(){n(this,t);var r=i(this,e.call(this,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n}","varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\n\nvoid main(void)\n{\n   gl_FragColor = texture2D(uSampler, vTextureCoord);\n}\n"));return r.glShaderKey="void",r}return a(t,e),t}(t.Filter);exports.default=u;
},{"../../core":"RjZD","path":"UUq2"}],"lFUL":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=require("./fxaa/FXAAFilter");Object.defineProperty(exports,"FXAAFilter",{enumerable:!0,get:function(){return a(e).default}});var r=require("./noise/NoiseFilter");Object.defineProperty(exports,"NoiseFilter",{enumerable:!0,get:function(){return a(r).default}});var t=require("./displacement/DisplacementFilter");Object.defineProperty(exports,"DisplacementFilter",{enumerable:!0,get:function(){return a(t).default}});var u=require("./blur/BlurFilter");Object.defineProperty(exports,"BlurFilter",{enumerable:!0,get:function(){return a(u).default}});var i=require("./blur/BlurXFilter");Object.defineProperty(exports,"BlurXFilter",{enumerable:!0,get:function(){return a(i).default}});var l=require("./blur/BlurYFilter");Object.defineProperty(exports,"BlurYFilter",{enumerable:!0,get:function(){return a(l).default}});var n=require("./colormatrix/ColorMatrixFilter");Object.defineProperty(exports,"ColorMatrixFilter",{enumerable:!0,get:function(){return a(n).default}});var o=require("./void/VoidFilter");function a(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"VoidFilter",{enumerable:!0,get:function(){return a(o).default}});
},{"./fxaa/FXAAFilter":"106G","./noise/NoiseFilter":"qmQd","./displacement/DisplacementFilter":"fRpE","./blur/BlurFilter":"//1e","./blur/BlurXFilter":"Zx84","./blur/BlurYFilter":"KYHG","./colormatrix/ColorMatrixFilter":"fxiT","./void/VoidFilter":"k0J5"}],"VcKu":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=function(){function t(t,i){for(var e=0;e<i.length;e++){var n=i[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(i,e,n){return e&&t(i.prototype,e),n&&t(i,n),i}}(),i=require("../core"),e=n(i);function n(t){if(t&&t.__esModule)return t;var i={};if(null!=t)for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&(i[e]=t[e]);return i.default=t,i}function r(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}var s=function(){function i(){r(this,i),this.global=new e.Point,this.target=null,this.originalEvent=null,this.identifier=null,this.isPrimary=!1,this.button=0,this.buttons=0,this.width=0,this.height=0,this.tiltX=0,this.tiltY=0,this.pointerType=null,this.pressure=0,this.rotationAngle=0,this.twist=0,this.tangentialPressure=0}return i.prototype.getLocalPosition=function(t,i,e){return t.worldTransform.applyInverse(e||this.global,i)},i.prototype._copyEvent=function(t){t.isPrimary&&(this.isPrimary=!0),this.button=t.button,this.buttons=t.buttons,this.width=t.width,this.height=t.height,this.tiltX=t.tiltX,this.tiltY=t.tiltY,this.pointerType=t.pointerType,this.pressure=t.pressure,this.rotationAngle=t.rotationAngle,this.twist=t.twist||0,this.tangentialPressure=t.tangentialPressure||0},i.prototype._reset=function(){this.isPrimary=!1},t(i,[{key:"pointerId",get:function(){return this.identifier}}]),i}();exports.default=s;
},{"../core":"RjZD"}],"mpmK":[function(require,module,exports) {
"use strict";function t(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}exports.__esModule=!0;var n=function(){function n(){t(this,n),this.stopped=!1,this.target=null,this.currentTarget=null,this.type=null,this.data=null}return n.prototype.stopPropagation=function(){this.stopped=!0},n.prototype._reset=function(){this.stopped=!1,this.currentTarget=null,this.target=null},n}();exports.default=n;
},{}],"aVqp":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=function(){function t(t,n){for(var e=0;e<n.length;e++){var r=n[e];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(n,e,r){return e&&t(n.prototype,e),r&&t(n,r),n}}();function n(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}var e=function(){function e(t){n(this,e),this._pointerId=t,this._flags=e.FLAGS.NONE}return e.prototype._doSet=function(t,n){this._flags=n?this._flags|t:this._flags&~t},t(e,[{key:"pointerId",get:function(){return this._pointerId}},{key:"flags",get:function(){return this._flags},set:function(t){this._flags=t}},{key:"none",get:function(){return this._flags===this.constructor.FLAGS.NONE}},{key:"over",get:function(){return 0!=(this._flags&this.constructor.FLAGS.OVER)},set:function(t){this._doSet(this.constructor.FLAGS.OVER,t)}},{key:"rightDown",get:function(){return 0!=(this._flags&this.constructor.FLAGS.RIGHT_DOWN)},set:function(t){this._doSet(this.constructor.FLAGS.RIGHT_DOWN,t)}},{key:"leftDown",get:function(){return 0!=(this._flags&this.constructor.FLAGS.LEFT_DOWN)},set:function(t){this._doSet(this.constructor.FLAGS.LEFT_DOWN,t)}}]),e}();exports.default=e,e.FLAGS=Object.freeze({NONE:0,OVER:1,LEFT_DOWN:2,RIGHT_DOWN:4});
},{}],"ya0i":[function(require,module,exports) {
"use strict";exports.__esModule=!0,exports.default={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};
},{}],"IdKE":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e=require("../core"),n=d(e),i=require("./InteractionData"),o=v(i),r=require("./InteractionEvent"),s=v(r),a=require("./InteractionTrackingData"),c=v(a),h=require("eventemitter3"),p=v(h),u=require("./interactiveTarget"),l=v(u);function v(t){return t&&t.__esModule?t:{default:t}}function d(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}function m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function P(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function E(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}n.utils.mixins.delayMixin(n.DisplayObject.prototype,l.default);var f="MOUSE",y={target:null,data:{global:null}},D=function(e){function i(t,r){m(this,i);var a=P(this,e.call(this));return r=r||{},a.renderer=t,a.autoPreventDefault=void 0===r.autoPreventDefault||r.autoPreventDefault,a.interactionFrequency=r.interactionFrequency||10,a.mouse=new o.default,a.mouse.identifier=f,a.mouse.global.set(-999999),a.activeInteractionData={},a.activeInteractionData[f]=a.mouse,a.interactionDataPool=[],a.eventData=new s.default,a.interactionDOMElement=null,a.moveWhenInside=!1,a.eventsAdded=!1,a.mouseOverRenderer=!1,a.supportsTouchEvents="ontouchstart"in window,a.supportsPointerEvents=!!window.PointerEvent,a.onPointerUp=a.onPointerUp.bind(a),a.processPointerUp=a.processPointerUp.bind(a),a.onPointerCancel=a.onPointerCancel.bind(a),a.processPointerCancel=a.processPointerCancel.bind(a),a.onPointerDown=a.onPointerDown.bind(a),a.processPointerDown=a.processPointerDown.bind(a),a.onPointerMove=a.onPointerMove.bind(a),a.processPointerMove=a.processPointerMove.bind(a),a.onPointerOut=a.onPointerOut.bind(a),a.processPointerOverOut=a.processPointerOverOut.bind(a),a.onPointerOver=a.onPointerOver.bind(a),a.cursorStyles={default:"inherit",pointer:"pointer"},a.currentCursorMode=null,a.cursor=null,a._tempPoint=new n.Point,a.resolution=1,a.setTargetElement(a.renderer.view,a.renderer.resolution),a}return E(i,e),i.prototype.hitTest=function(t,e){return y.target=null,y.data.global=t,e||(e=this.renderer._lastObjectRendered),this.processInteractive(y,e,null,!0),y.target},i.prototype.setTargetElement=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.removeEvents(),this.interactionDOMElement=t,this.resolution=e,this.addEvents()},i.prototype.addEvents=function(){this.interactionDOMElement&&(n.ticker.shared.add(this.update,this,n.UPDATE_PRIORITY.INTERACTION),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)},i.prototype.removeEvents=function(){this.interactionDOMElement&&(n.ticker.shared.remove(this.update,this),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)},i.prototype.update=function(t){if(this._deltaTime+=t,!(this._deltaTime<this.interactionFrequency)&&(this._deltaTime=0,this.interactionDOMElement))if(this.didMove)this.didMove=!1;else{for(var e in this.cursor=null,this.activeInteractionData)if(this.activeInteractionData.hasOwnProperty(e)){var n=this.activeInteractionData[e];if(n.originalEvent&&"touch"!==n.pointerType){var i=this.configureInteractionEventForDOMEvent(this.eventData,n.originalEvent,n);this.processInteractive(i,this.renderer._lastObjectRendered,this.processPointerOverOut,!0)}}this.setCursorMode(this.cursor)}},i.prototype.setCursorMode=function(e){if(e=e||"default",this.currentCursorMode!==e){this.currentCursorMode=e;var n=this.cursorStyles[e];if(n)switch(void 0===n?"undefined":t(n)){case"string":this.interactionDOMElement.style.cursor=n;break;case"function":n(e);break;case"object":Object.assign(this.interactionDOMElement.style,n)}else"string"!=typeof e||Object.prototype.hasOwnProperty.call(this.cursorStyles,e)||(this.interactionDOMElement.style.cursor=e)}},i.prototype.dispatchEvent=function(t,e,n){n.stopped||(n.currentTarget=t,n.type=e,t.emit(e,n),t[e]&&t[e](n))},i.prototype.mapPositionToPoint=function(t,e,n){var i=void 0;i=this.interactionDOMElement.parentElement?this.interactionDOMElement.getBoundingClientRect():{x:0,y:0,width:0,height:0};var o=navigator.isCocoonJS?this.resolution:1/this.resolution;t.x=(e-i.left)*(this.interactionDOMElement.width/i.width)*o,t.y=(n-i.top)*(this.interactionDOMElement.height/i.height)*o},i.prototype.processInteractive=function(t,e,n,i,o){if(!e||!e.visible)return!1;var r=t.data.global,s=!1,a=o=e.interactive||o;if(e.hitArea?a=!1:i&&e._mask&&(e._mask.containsPoint(r)||(i=!1)),e.interactiveChildren&&e.children)for(var c=e.children,h=c.length-1;h>=0;h--){var p=c[h],u=this.processInteractive(t,p,n,i,a);if(u){if(!p.parent)continue;a=!1,u&&(t.target&&(i=!1),s=!0)}}return o&&(i&&!t.target&&(e.hitArea?(e.worldTransform.applyInverse(r,this._tempPoint),e.hitArea.contains(this._tempPoint.x,this._tempPoint.y)&&(s=!0)):e.containsPoint&&e.containsPoint(r)&&(s=!0)),e.interactive&&(s&&!t.target&&(t.target=e),n&&n(t,e,!!s))),s},i.prototype.onPointerDown=function(t){if(!this.supportsTouchEvents||"touch"!==t.pointerType){var e=this.normalizeToPointerData(t);this.autoPreventDefault&&e[0].isNormalized&&t.preventDefault();for(var n=e.length,i=0;i<n;i++){var o=e[i],r=this.getInteractionDataForPointerId(o),s=this.configureInteractionEventForDOMEvent(this.eventData,o,r);if(s.data.originalEvent=t,this.processInteractive(s,this.renderer._lastObjectRendered,this.processPointerDown,!0),this.emit("pointerdown",s),"touch"===o.pointerType)this.emit("touchstart",s);else if("mouse"===o.pointerType||"pen"===o.pointerType){var a=2===o.button;this.emit(a?"rightdown":"mousedown",this.eventData)}}}},i.prototype.processPointerDown=function(t,e,n){var i=t.data,o=t.data.identifier;if(n)if(e.trackedPointers[o]||(e.trackedPointers[o]=new c.default(o)),this.dispatchEvent(e,"pointerdown",t),"touch"===i.pointerType)this.dispatchEvent(e,"touchstart",t);else if("mouse"===i.pointerType||"pen"===i.pointerType){var r=2===i.button;r?e.trackedPointers[o].rightDown=!0:e.trackedPointers[o].leftDown=!0,this.dispatchEvent(e,r?"rightdown":"mousedown",t)}},i.prototype.onPointerComplete=function(t,e,n){for(var i=this.normalizeToPointerData(t),o=i.length,r=t.target!==this.interactionDOMElement?"outside":"",s=0;s<o;s++){var a=i[s],c=this.getInteractionDataForPointerId(a),h=this.configureInteractionEventForDOMEvent(this.eventData,a,c);if(h.data.originalEvent=t,this.processInteractive(h,this.renderer._lastObjectRendered,n,e||!r),this.emit(e?"pointercancel":"pointerup"+r,h),"mouse"===a.pointerType||"pen"===a.pointerType){var p=2===a.button;this.emit(p?"rightup"+r:"mouseup"+r,h)}else"touch"===a.pointerType&&(this.emit(e?"touchcancel":"touchend"+r,h),this.releaseInteractionDataForPointerId(a.pointerId,c))}},i.prototype.onPointerCancel=function(t){this.supportsTouchEvents&&"touch"===t.pointerType||this.onPointerComplete(t,!0,this.processPointerCancel)},i.prototype.processPointerCancel=function(t,e){var n=t.data,i=t.data.identifier;void 0!==e.trackedPointers[i]&&(delete e.trackedPointers[i],this.dispatchEvent(e,"pointercancel",t),"touch"===n.pointerType&&this.dispatchEvent(e,"touchcancel",t))},i.prototype.onPointerUp=function(t){this.supportsTouchEvents&&"touch"===t.pointerType||this.onPointerComplete(t,!1,this.processPointerUp)},i.prototype.processPointerUp=function(t,e,n){var i=t.data,o=t.data.identifier,r=e.trackedPointers[o],s="touch"===i.pointerType;if("mouse"===i.pointerType||"pen"===i.pointerType){var a=2===i.button,h=c.default.FLAGS,p=a?h.RIGHT_DOWN:h.LEFT_DOWN,u=void 0!==r&&r.flags&p;n?(this.dispatchEvent(e,a?"rightup":"mouseup",t),u&&this.dispatchEvent(e,a?"rightclick":"click",t)):u&&this.dispatchEvent(e,a?"rightupoutside":"mouseupoutside",t),r&&(a?r.rightDown=!1:r.leftDown=!1)}n?(this.dispatchEvent(e,"pointerup",t),s&&this.dispatchEvent(e,"touchend",t),r&&(this.dispatchEvent(e,"pointertap",t),s&&(this.dispatchEvent(e,"tap",t),r.over=!1))):r&&(this.dispatchEvent(e,"pointerupoutside",t),s&&this.dispatchEvent(e,"touchendoutside",t)),r&&r.none&&delete e.trackedPointers[o]},i.prototype.onPointerMove=function(t){if(!this.supportsTouchEvents||"touch"!==t.pointerType){var e=this.normalizeToPointerData(t);"mouse"===e[0].pointerType&&(this.didMove=!0,this.cursor=null);for(var n=e.length,i=0;i<n;i++){var o=e[i],r=this.getInteractionDataForPointerId(o),s=this.configureInteractionEventForDOMEvent(this.eventData,o,r);s.data.originalEvent=t;var a="touch"!==o.pointerType||this.moveWhenInside;this.processInteractive(s,this.renderer._lastObjectRendered,this.processPointerMove,a),this.emit("pointermove",s),"touch"===o.pointerType&&this.emit("touchmove",s),"mouse"!==o.pointerType&&"pen"!==o.pointerType||this.emit("mousemove",s)}"mouse"===e[0].pointerType&&this.setCursorMode(this.cursor)}},i.prototype.processPointerMove=function(t,e,n){var i=t.data,o="touch"===i.pointerType,r="mouse"===i.pointerType||"pen"===i.pointerType;r&&this.processPointerOverOut(t,e,n),this.moveWhenInside&&!n||(this.dispatchEvent(e,"pointermove",t),o&&this.dispatchEvent(e,"touchmove",t),r&&this.dispatchEvent(e,"mousemove",t))},i.prototype.onPointerOut=function(t){if(!this.supportsTouchEvents||"touch"!==t.pointerType){var e=this.normalizeToPointerData(t)[0];"mouse"===e.pointerType&&(this.mouseOverRenderer=!1,this.setCursorMode(null));var n=this.getInteractionDataForPointerId(e),i=this.configureInteractionEventForDOMEvent(this.eventData,e,n);i.data.originalEvent=e,this.processInteractive(i,this.renderer._lastObjectRendered,this.processPointerOverOut,!1),this.emit("pointerout",i),"mouse"===e.pointerType||"pen"===e.pointerType?this.emit("mouseout",i):this.releaseInteractionDataForPointerId(n.identifier)}},i.prototype.processPointerOverOut=function(t,e,n){var i=t.data,o=t.data.identifier,r="mouse"===i.pointerType||"pen"===i.pointerType,s=e.trackedPointers[o];n&&!s&&(s=e.trackedPointers[o]=new c.default(o)),void 0!==s&&(n&&this.mouseOverRenderer?(s.over||(s.over=!0,this.dispatchEvent(e,"pointerover",t),r&&this.dispatchEvent(e,"mouseover",t)),r&&null===this.cursor&&(this.cursor=e.cursor)):s.over&&(s.over=!1,this.dispatchEvent(e,"pointerout",this.eventData),r&&this.dispatchEvent(e,"mouseout",t),s.none&&delete e.trackedPointers[o]))},i.prototype.onPointerOver=function(t){var e=this.normalizeToPointerData(t)[0],n=this.getInteractionDataForPointerId(e),i=this.configureInteractionEventForDOMEvent(this.eventData,e,n);i.data.originalEvent=e,"mouse"===e.pointerType&&(this.mouseOverRenderer=!0),this.emit("pointerover",i),"mouse"!==e.pointerType&&"pen"!==e.pointerType||this.emit("mouseover",i)},i.prototype.getInteractionDataForPointerId=function(t){var e=t.pointerId,n=void 0;return e===f||"mouse"===t.pointerType?n=this.mouse:this.activeInteractionData[e]?n=this.activeInteractionData[e]:((n=this.interactionDataPool.pop()||new o.default).identifier=e,this.activeInteractionData[e]=n),n._copyEvent(t),n},i.prototype.releaseInteractionDataForPointerId=function(t){var e=this.activeInteractionData[t];e&&(delete this.activeInteractionData[t],e._reset(),this.interactionDataPool.push(e))},i.prototype.configureInteractionEventForDOMEvent=function(t,e,n){return t.data=n,this.mapPositionToPoint(n.global,e.clientX,e.clientY),navigator.isCocoonJS&&"touch"===e.pointerType&&(n.global.x=n.global.x/this.resolution,n.global.y=n.global.y/this.resolution),"touch"===e.pointerType&&(e.globalX=n.global.x,e.globalY=n.global.y),n.originalEvent=e,t._reset(),t},i.prototype.normalizeToPointerData=function(t){var e=[];if(this.supportsTouchEvents&&t instanceof TouchEvent)for(var n=0,i=t.changedTouches.length;n<i;n++){var o=t.changedTouches[n];void 0===o.button&&(o.button=t.touches.length?1:0),void 0===o.buttons&&(o.buttons=t.touches.length?1:0),void 0===o.isPrimary&&(o.isPrimary=1===t.touches.length&&"touchstart"===t.type),void 0===o.width&&(o.width=o.radiusX||1),void 0===o.height&&(o.height=o.radiusY||1),void 0===o.tiltX&&(o.tiltX=0),void 0===o.tiltY&&(o.tiltY=0),void 0===o.pointerType&&(o.pointerType="touch"),void 0===o.pointerId&&(o.pointerId=o.identifier||0),void 0===o.pressure&&(o.pressure=o.force||.5),o.twist=0,o.tangentialPressure=0,void 0===o.layerX&&(o.layerX=o.offsetX=o.clientX),void 0===o.layerY&&(o.layerY=o.offsetY=o.clientY),o.isNormalized=!0,e.push(o)}else!(t instanceof MouseEvent)||this.supportsPointerEvents&&t instanceof window.PointerEvent?e.push(t):(void 0===t.isPrimary&&(t.isPrimary=!0),void 0===t.width&&(t.width=1),void 0===t.height&&(t.height=1),void 0===t.tiltX&&(t.tiltX=0),void 0===t.tiltY&&(t.tiltY=0),void 0===t.pointerType&&(t.pointerType="mouse"),void 0===t.pointerId&&(t.pointerId=f),void 0===t.pressure&&(t.pressure=.5),t.twist=0,t.tangentialPressure=0,t.isNormalized=!0,e.push(t));return e},i.prototype.destroy=function(){this.removeEvents(),this.removeAllListeners(),this.renderer=null,this.mouse=null,this.eventData=null,this.interactionDOMElement=null,this.onPointerDown=null,this.processPointerDown=null,this.onPointerUp=null,this.processPointerUp=null,this.onPointerCancel=null,this.processPointerCancel=null,this.onPointerMove=null,this.processPointerMove=null,this.onPointerOut=null,this.processPointerOverOut=null,this.onPointerOver=null,this._tempPoint=null},i}(p.default);exports.default=D,n.WebGLRenderer.registerPlugin("interaction",D),n.CanvasRenderer.registerPlugin("interaction",D);
},{"../core":"RjZD","./InteractionData":"VcKu","./InteractionEvent":"mpmK","./InteractionTrackingData":"aVqp","eventemitter3":"2JJl","./interactiveTarget":"ya0i"}],"/j6N":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=require("./InteractionData");Object.defineProperty(exports,"InteractionData",{enumerable:!0,get:function(){return i(e).default}});var t=require("./InteractionManager");Object.defineProperty(exports,"InteractionManager",{enumerable:!0,get:function(){return i(t).default}});var r=require("./interactiveTarget");Object.defineProperty(exports,"interactiveTarget",{enumerable:!0,get:function(){return i(r).default}});var n=require("./InteractionTrackingData");Object.defineProperty(exports,"InteractionTrackingData",{enumerable:!0,get:function(){return i(n).default}});var a=require("./InteractionEvent");function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"InteractionEvent",{enumerable:!0,get:function(){return i(a).default}});
},{"./InteractionData":"VcKu","./InteractionManager":"IdKE","./interactiveTarget":"ya0i","./InteractionTrackingData":"aVqp","./InteractionEvent":"mpmK"}],"vKdq":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var n=function(){function n(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}return function(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}}();function t(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")}var e=function(){function e(n,i,r){void 0===i&&(i=!1),t(this,e),this._fn=n,this._once=i,this._thisArg=r,this._next=this._prev=this._owner=null}return n(e,[{key:"detach",value:function(){return null!==this._owner&&(this._owner.detach(this),!0)}}]),e}();function i(n,t){return n._head?(n._tail._next=t,t._prev=n._tail,n._tail=t):(n._head=t,n._tail=t),t._owner=n,t}var r=function(){function r(){t(this,r),this._head=this._tail=void 0}return n(r,[{key:"handlers",value:function(){var n=!(arguments.length<=0||void 0===arguments[0])&&arguments[0],t=this._head;if(n)return!!t;for(var e=[];t;)e.push(t),t=t._next;return e}},{key:"has",value:function(n){if(!(n instanceof e))throw new Error("MiniSignal#has(): First arg must be a MiniSignalBinding object.");return n._owner===this}},{key:"dispatch",value:function(){var n=this._head;if(!n)return!1;for(;n;)n._once&&this.detach(n),n._fn.apply(n._thisArg,arguments),n=n._next;return!0}},{key:"add",value:function(n){var t=arguments.length<=1||void 0===arguments[1]?null:arguments[1];if("function"!=typeof n)throw new Error("MiniSignal#add(): First arg must be a Function.");return i(this,new e(n,!1,t))}},{key:"once",value:function(n){var t=arguments.length<=1||void 0===arguments[1]?null:arguments[1];if("function"!=typeof n)throw new Error("MiniSignal#once(): First arg must be a Function.");return i(this,new e(n,!0,t))}},{key:"detach",value:function(n){if(!(n instanceof e))throw new Error("MiniSignal#detach(): First arg must be a MiniSignalBinding object.");return n._owner!==this?this:(n._prev&&(n._prev._next=n._next),n._next&&(n._next._prev=n._prev),n===this._head?(this._head=n._next,null===n._next&&(this._tail=null)):n===this._tail&&(this._tail=n._prev,this._tail._next=null),n._owner=null,this)}},{key:"detachAll",value:function(){var n=this._head;if(!n)return this;for(this._head=this._tail=null;n;)n._owner=null,n=n._next;return this}}]),r}();r.MiniSignalBinding=e,exports.default=r,module.exports=exports.default;
},{}],"01sX":[function(require,module,exports) {
"use strict";module.exports=function(e,r){r=r||{};for(var o={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*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},t=o.parser[r.strictMode?"strict":"loose"].exec(e),s={},a=14;a--;)s[o.key[a]]=t[a]||"";return s[o.q.name]={},s[o.key[12]].replace(o.q.parser,function(e,r,t){r&&(s[o.q.name][r]=t)}),s};
},{}],"bC3n":[function(require,module,exports) {
"use strict";function n(){}function t(n,t,e,r){var u=0,s=n.length;!function a(c){c||u===s?e&&e(c):r?setTimeout(function(){t(n[u++],a)},1):t(n[u++],a)}()}function e(n){return function(){if(null===n)throw new Error("Callback was already called.");var t=n;n=null,t.apply(this,arguments)}}function r(t,r){if(null==r)r=1;else if(0===r)throw new Error("Concurrency must not be zero");var u=0,s={_tasks:[],concurrency:r,saturated:n,unsaturated:n,buffer:r/4,empty:n,drain:n,error:n,started:!1,paused:!1,push:function(n,t){a(n,!1,t)},kill:function(){u=0,s.drain=n,s.started=!1,s._tasks=[]},unshift:function(n,t){a(n,!0,t)},process:function(){for(;!s.paused&&u<s.concurrency&&s._tasks.length;){var n=s._tasks.shift();0===s._tasks.length&&s.empty(),(u+=1)===s.concurrency&&s.saturated(),t(n.data,e(c(n)))}},length:function(){return s._tasks.length},running:function(){return u},idle:function(){return s._tasks.length+u===0},pause:function(){!0!==s.paused&&(s.paused=!0)},resume:function(){if(!1!==s.paused){s.paused=!1;for(var n=1;n<=s.concurrency;n++)s.process()}}};function a(t,e,r){if(null!=r&&"function"!=typeof r)throw new Error("task callback must be a function");if(s.started=!0,null==t&&s.idle())setTimeout(function(){return s.drain()},1);else{var u={data:t,callback:"function"==typeof r?r:n};e?s._tasks.unshift(u):s._tasks.push(u),setTimeout(function(){return s.process()},1)}}function c(n){return function(){u-=1,n.callback.apply(n,arguments),null!=arguments[0]&&s.error(arguments[0],n.data),u<=s.concurrency-s.buffer&&s.unsaturated(),s.idle()&&s.drain(),s.process()}}return s}exports.__esModule=!0,exports.eachSeries=t,exports.queue=r;
},{}],"F/bs":[function(require,module,exports) {
"use strict";exports.__esModule=!0,exports.Resource=void 0;var t=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),e=require("parse-uri"),i=o(e),r=require("mini-signals"),s=o(r);function o(t){return t&&t.__esModule?t:{default:t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var a=!(!window.XDomainRequest||"withCredentials"in new XMLHttpRequest),h=null,E=0,d=200,u=204,_=1223,l=2;function p(){}var T=exports.Resource=function(){function e(t,i,r){if(n(this,e),"string"!=typeof t||"string"!=typeof i)throw new Error("Both name and url are required for constructing a resource.");r=r||{},this._flags=0,this._setFlag(e.STATUS_FLAGS.DATA_URL,0===i.indexOf("data:")),this.name=t,this.url=i,this.extension=this._getExtension(),this.data=null,this.crossOrigin=!0===r.crossOrigin?"anonymous":r.crossOrigin,this.timeout=r.timeout||0,this.loadType=r.loadType||this._determineLoadType(),this.xhrType=r.xhrType,this.metadata=r.metadata||{},this.error=null,this.xhr=null,this.children=[],this.type=e.TYPE.UNKNOWN,this.progressChunk=0,this._dequeue=p,this._onLoadBinding=null,this._elementTimer=0,this._boundComplete=this.complete.bind(this),this._boundOnError=this._onError.bind(this),this._boundOnProgress=this._onProgress.bind(this),this._boundOnTimeout=this._onTimeout.bind(this),this._boundXhrOnError=this._xhrOnError.bind(this),this._boundXhrOnTimeout=this._xhrOnTimeout.bind(this),this._boundXhrOnAbort=this._xhrOnAbort.bind(this),this._boundXhrOnLoad=this._xhrOnLoad.bind(this),this.onStart=new s.default,this.onProgress=new s.default,this.onComplete=new s.default,this.onAfterMiddleware=new s.default}return e.setExtensionLoadType=function(t,i){O(e._loadTypeMap,t,i)},e.setExtensionXhrType=function(t,i){O(e._xhrTypeMap,t,i)},e.prototype.complete=function(){this._clearEvents(),this._finish()},e.prototype.abort=function(t){if(!this.error){if(this.error=new Error(t),this._clearEvents(),this.xhr)this.xhr.abort();else if(this.xdr)this.xdr.abort();else if(this.data)if(this.data.src)this.data.src=e.EMPTY_GIF;else for(;this.data.firstChild;)this.data.removeChild(this.data.firstChild);this._finish()}},e.prototype.load=function(t){var i=this;if(!this.isLoading)if(this.isComplete)t&&setTimeout(function(){return t(i)},1);else switch(t&&this.onComplete.once(t),this._setFlag(e.STATUS_FLAGS.LOADING,!0),this.onStart.dispatch(this),!1!==this.crossOrigin&&"string"==typeof this.crossOrigin||(this.crossOrigin=this._determineCrossOrigin(this.url)),this.loadType){case e.LOAD_TYPE.IMAGE:this.type=e.TYPE.IMAGE,this._loadElement("image");break;case e.LOAD_TYPE.AUDIO:this.type=e.TYPE.AUDIO,this._loadSourceElement("audio");break;case e.LOAD_TYPE.VIDEO:this.type=e.TYPE.VIDEO,this._loadSourceElement("video");break;case e.LOAD_TYPE.XHR:default:a&&this.crossOrigin?this._loadXdr():this._loadXhr()}},e.prototype._hasFlag=function(t){return 0!=(this._flags&t)},e.prototype._setFlag=function(t,e){this._flags=e?this._flags|t:this._flags&~t},e.prototype._clearEvents=function(){clearTimeout(this._elementTimer),this.data&&this.data.removeEventListener&&(this.data.removeEventListener("error",this._boundOnError,!1),this.data.removeEventListener("load",this._boundComplete,!1),this.data.removeEventListener("progress",this._boundOnProgress,!1),this.data.removeEventListener("canplaythrough",this._boundComplete,!1)),this.xhr&&(this.xhr.removeEventListener?(this.xhr.removeEventListener("error",this._boundXhrOnError,!1),this.xhr.removeEventListener("timeout",this._boundXhrOnTimeout,!1),this.xhr.removeEventListener("abort",this._boundXhrOnAbort,!1),this.xhr.removeEventListener("progress",this._boundOnProgress,!1),this.xhr.removeEventListener("load",this._boundXhrOnLoad,!1)):(this.xhr.onerror=null,this.xhr.ontimeout=null,this.xhr.onprogress=null,this.xhr.onload=null))},e.prototype._finish=function(){if(this.isComplete)throw new Error("Complete called again for an already completed resource.");this._setFlag(e.STATUS_FLAGS.COMPLETE,!0),this._setFlag(e.STATUS_FLAGS.LOADING,!1),this.onComplete.dispatch(this)},e.prototype._loadElement=function(t){this.metadata.loadElement?this.data=this.metadata.loadElement:"image"===t&&void 0!==window.Image?this.data=new Image:this.data=document.createElement(t),this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),this.metadata.skipSource||(this.data.src=this.url),this.data.addEventListener("error",this._boundOnError,!1),this.data.addEventListener("load",this._boundComplete,!1),this.data.addEventListener("progress",this._boundOnProgress,!1),this.timeout&&(this._elementTimer=setTimeout(this._boundOnTimeout,this.timeout))},e.prototype._loadSourceElement=function(t){if(this.metadata.loadElement?this.data=this.metadata.loadElement:"audio"===t&&void 0!==window.Audio?this.data=new Audio:this.data=document.createElement(t),null!==this.data){if(this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),!this.metadata.skipSource)if(navigator.isCocoonJS)this.data.src=Array.isArray(this.url)?this.url[0]:this.url;else if(Array.isArray(this.url))for(var e=this.metadata.mimeType,i=0;i<this.url.length;++i)this.data.appendChild(this._createSource(t,this.url[i],Array.isArray(e)?e[i]:e));else{var r=this.metadata.mimeType;this.data.appendChild(this._createSource(t,this.url,Array.isArray(r)?r[0]:r))}this.data.addEventListener("error",this._boundOnError,!1),this.data.addEventListener("load",this._boundComplete,!1),this.data.addEventListener("progress",this._boundOnProgress,!1),this.data.addEventListener("canplaythrough",this._boundComplete,!1),this.data.load(),this.timeout&&(this._elementTimer=setTimeout(this._boundOnTimeout,this.timeout))}else this.abort("Unsupported element: "+t)},e.prototype._loadXhr=function(){"string"!=typeof this.xhrType&&(this.xhrType=this._determineXhrType());var t=this.xhr=new XMLHttpRequest;t.open("GET",this.url,!0),t.timeout=this.timeout,this.xhrType===e.XHR_RESPONSE_TYPE.JSON||this.xhrType===e.XHR_RESPONSE_TYPE.DOCUMENT?t.responseType=e.XHR_RESPONSE_TYPE.TEXT:t.responseType=this.xhrType,t.addEventListener("error",this._boundXhrOnError,!1),t.addEventListener("timeout",this._boundXhrOnTimeout,!1),t.addEventListener("abort",this._boundXhrOnAbort,!1),t.addEventListener("progress",this._boundOnProgress,!1),t.addEventListener("load",this._boundXhrOnLoad,!1),t.send()},e.prototype._loadXdr=function(){"string"!=typeof this.xhrType&&(this.xhrType=this._determineXhrType());var t=this.xhr=new XDomainRequest;t.timeout=this.timeout||5e3,t.onerror=this._boundXhrOnError,t.ontimeout=this._boundXhrOnTimeout,t.onprogress=this._boundOnProgress,t.onload=this._boundXhrOnLoad,t.open("GET",this.url,!0),setTimeout(function(){return t.send()},1)},e.prototype._createSource=function(t,e,i){i||(i=t+"/"+this._getExtension(e));var r=document.createElement("source");return r.src=e,r.type=i,r},e.prototype._onError=function(t){this.abort("Failed to load element using: "+t.target.nodeName)},e.prototype._onProgress=function(t){t&&t.lengthComputable&&this.onProgress.dispatch(this,t.loaded/t.total)},e.prototype._onTimeout=function(){this.abort("Load timed out.")},e.prototype._xhrOnError=function(){var t=this.xhr;this.abort(m(t)+" Request failed. Status: "+t.status+', text: "'+t.statusText+'"')},e.prototype._xhrOnTimeout=function(){var t=this.xhr;this.abort(m(t)+" Request timed out.")},e.prototype._xhrOnAbort=function(){var t=this.xhr;this.abort(m(t)+" Request was aborted by the user.")},e.prototype._xhrOnLoad=function(){var t=this.xhr,i="",r=void 0===t.status?d:t.status;if(""!==t.responseType&&"text"!==t.responseType&&void 0!==t.responseType||(i=t.responseText),r===E&&(i.length>0||t.responseType===e.XHR_RESPONSE_TYPE.BUFFER)?r=d:r===_&&(r=u),(r/100|0)===l){if(this.xhrType===e.XHR_RESPONSE_TYPE.TEXT)this.data=i,this.type=e.TYPE.TEXT;else if(this.xhrType===e.XHR_RESPONSE_TYPE.JSON)try{this.data=JSON.parse(i),this.type=e.TYPE.JSON}catch(n){return void this.abort("Error trying to parse loaded json: "+n)}else if(this.xhrType===e.XHR_RESPONSE_TYPE.DOCUMENT)try{if(window.DOMParser){var s=new DOMParser;this.data=s.parseFromString(i,"text/xml")}else{var o=document.createElement("div");o.innerHTML=i,this.data=o}this.type=e.TYPE.XML}catch(n){return void this.abort("Error trying to parse loaded xml: "+n)}else this.data=t.response||i;this.complete()}else this.abort("["+t.status+"] "+t.statusText+": "+t.responseURL)},e.prototype._determineCrossOrigin=function(t,e){if(0===t.indexOf("data:"))return"";if(window.origin!==window.location.origin)return"anonymous";e=e||window.location,h||(h=document.createElement("a")),h.href=t;var r=!(t=(0,i.default)(h.href,{strictMode:!0})).port&&""===e.port||t.port===e.port,s=t.protocol?t.protocol+":":"";return t.host===e.hostname&&r&&s===e.protocol?"":"anonymous"},e.prototype._determineXhrType=function(){return e._xhrTypeMap[this.extension]||e.XHR_RESPONSE_TYPE.TEXT},e.prototype._determineLoadType=function(){return e._loadTypeMap[this.extension]||e.LOAD_TYPE.XHR},e.prototype._getExtension=function(){var t=this.url,e="";if(this.isDataUrl){var i=t.indexOf("/");e=t.substring(i+1,t.indexOf(";",i))}else{var r=t.indexOf("?"),s=t.indexOf("#"),o=Math.min(r>-1?r:t.length,s>-1?s:t.length);e=(t=t.substring(0,o)).substring(t.lastIndexOf(".")+1)}return e.toLowerCase()},e.prototype._getMimeFromXhrType=function(t){switch(t){case e.XHR_RESPONSE_TYPE.BUFFER:return"application/octet-binary";case e.XHR_RESPONSE_TYPE.BLOB:return"application/blob";case e.XHR_RESPONSE_TYPE.DOCUMENT:return"application/xml";case e.XHR_RESPONSE_TYPE.JSON:return"application/json";case e.XHR_RESPONSE_TYPE.DEFAULT:case e.XHR_RESPONSE_TYPE.TEXT:default:return"text/plain"}},t(e,[{key:"isDataUrl",get:function(){return this._hasFlag(e.STATUS_FLAGS.DATA_URL)}},{key:"isComplete",get:function(){return this._hasFlag(e.STATUS_FLAGS.COMPLETE)}},{key:"isLoading",get:function(){return this._hasFlag(e.STATUS_FLAGS.LOADING)}}]),e}();function O(t,e,i){e&&0===e.indexOf(".")&&(e=e.substring(1)),e&&(t[e]=i)}function m(t){return t.toString().replace("object ","")}T.STATUS_FLAGS={NONE:0,DATA_URL:1,COMPLETE:2,LOADING:4},T.TYPE={UNKNOWN:0,JSON:1,XML:2,IMAGE:3,AUDIO:4,VIDEO:5,TEXT:6},T.LOAD_TYPE={XHR:1,IMAGE:2,AUDIO:3,VIDEO:4},T.XHR_RESPONSE_TYPE={DEFAULT:"text",BUFFER:"arraybuffer",BLOB:"blob",DOCUMENT:"document",JSON:"json",TEXT:"text"},T._loadTypeMap={gif:T.LOAD_TYPE.IMAGE,png:T.LOAD_TYPE.IMAGE,bmp:T.LOAD_TYPE.IMAGE,jpg:T.LOAD_TYPE.IMAGE,jpeg:T.LOAD_TYPE.IMAGE,tif:T.LOAD_TYPE.IMAGE,tiff:T.LOAD_TYPE.IMAGE,webp:T.LOAD_TYPE.IMAGE,tga:T.LOAD_TYPE.IMAGE,svg:T.LOAD_TYPE.IMAGE,"svg+xml":T.LOAD_TYPE.IMAGE,mp3:T.LOAD_TYPE.AUDIO,ogg:T.LOAD_TYPE.AUDIO,wav:T.LOAD_TYPE.AUDIO,mp4:T.LOAD_TYPE.VIDEO,webm:T.LOAD_TYPE.VIDEO},T._xhrTypeMap={xhtml:T.XHR_RESPONSE_TYPE.DOCUMENT,html:T.XHR_RESPONSE_TYPE.DOCUMENT,htm:T.XHR_RESPONSE_TYPE.DOCUMENT,xml:T.XHR_RESPONSE_TYPE.DOCUMENT,tmx:T.XHR_RESPONSE_TYPE.DOCUMENT,svg:T.XHR_RESPONSE_TYPE.DOCUMENT,tsx:T.XHR_RESPONSE_TYPE.DOCUMENT,gif:T.XHR_RESPONSE_TYPE.BLOB,png:T.XHR_RESPONSE_TYPE.BLOB,bmp:T.XHR_RESPONSE_TYPE.BLOB,jpg:T.XHR_RESPONSE_TYPE.BLOB,jpeg:T.XHR_RESPONSE_TYPE.BLOB,tif:T.XHR_RESPONSE_TYPE.BLOB,tiff:T.XHR_RESPONSE_TYPE.BLOB,webp:T.XHR_RESPONSE_TYPE.BLOB,tga:T.XHR_RESPONSE_TYPE.BLOB,json:T.XHR_RESPONSE_TYPE.JSON,text:T.XHR_RESPONSE_TYPE.TEXT,txt:T.XHR_RESPONSE_TYPE.TEXT,ttf:T.XHR_RESPONSE_TYPE.BUFFER,otf:T.XHR_RESPONSE_TYPE.BUFFER},T.EMPTY_GIF="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw==","undefined"!=typeof module&&(module.exports.default=T);
},{"parse-uri":"01sX","mini-signals":"vKdq"}],"KNjQ":[function(require,module,exports) {
"use strict";exports.__esModule=!0,exports.Loader=void 0;var e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(r,t,o){return t&&e(r.prototype,t),o&&e(r,o),r}}(),t=require("mini-signals"),o=h(t),s=require("parse-uri"),n=h(s),i=require("./async"),u=l(i),a=require("./Resource");function l(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r.default=e,r}function h(e){return e&&e.__esModule?e:{default:e}}function d(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}var f=100,c=/(#[\w-]+)?$/,p=exports.Loader=function(){function t(){var e=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;d(this,t),this.baseUrl=r,this.progress=0,this.loading=!1,this.defaultQueryString="",this._beforeMiddleware=[],this._afterMiddleware=[],this._resourcesParsing=[],this._boundLoadResource=function(r,t){return e._loadResource(r,t)},this._queue=u.queue(this._boundLoadResource,s),this._queue.pause(),this.resources={},this.onProgress=new o.default,this.onError=new o.default,this.onLoad=new o.default,this.onStart=new o.default,this.onComplete=new o.default;for(var n=0;n<t._defaultBeforeMiddleware.length;++n)this.pre(t._defaultBeforeMiddleware[n]);for(var i=0;i<t._defaultAfterMiddleware.length;++i)this.use(t._defaultAfterMiddleware[i])}return t.prototype.add=function(r,t,o,s){if(Array.isArray(r)){for(var n=0;n<r.length;++n)this.add(r[n]);return this}if("object"===(void 0===r?"undefined":e(r))&&(s=t||r.callback||r.onComplete,o=r,t=r.url,r=r.name||r.key||r.url),"string"!=typeof t&&(s=o,o=t,t=r),"string"!=typeof t)throw new Error("No url passed to add resource to loader.");if("function"==typeof o&&(s=o,o=null),this.loading&&(!o||!o.parentResource))throw new Error("Cannot add resources while the loader is running.");if(this.resources[r])throw new Error('Resource named "'+r+'" already exists.');if(t=this._prepareUrl(t),this.resources[r]=new a.Resource(r,t,o),"function"==typeof s&&this.resources[r].onAfterMiddleware.once(s),this.loading){for(var i=o.parentResource,u=[],l=0;l<i.children.length;++l)i.children[l].isComplete||u.push(i.children[l]);var h=i.progressChunk*(u.length+1)/(u.length+2);i.children.push(this.resources[r]),i.progressChunk=h;for(var d=0;d<u.length;++d)u[d].progressChunk=h;this.resources[r].progressChunk=h}return this._queue.push(this.resources[r]),this},t.prototype.pre=function(e){return this._beforeMiddleware.push(e),this},t.prototype.use=function(e){return this._afterMiddleware.push(e),this},t.prototype.reset=function(){for(var e in this.progress=0,this.loading=!1,this._queue.kill(),this._queue.pause(),this.resources){var r=this.resources[e];r._onLoadBinding&&r._onLoadBinding.detach(),r.isLoading&&r.abort()}return this.resources={},this},t.prototype.load=function(e){if("function"==typeof e&&this.onComplete.once(e),this.loading)return this;if(this._queue.idle())this._onStart(),this._onComplete();else{for(var r=this._queue._tasks.length,t=f/r,o=0;o<this._queue._tasks.length;++o)this._queue._tasks[o].data.progressChunk=t;this._onStart(),this._queue.resume()}return this},t.prototype._prepareUrl=function(e){var r=(0,n.default)(e,{strictMode:!0}),t=void 0;if(t=r.protocol||!r.path||0===e.indexOf("//")?e:this.baseUrl.length&&this.baseUrl.lastIndexOf("/")!==this.baseUrl.length-1&&"/"!==e.charAt(0)?this.baseUrl+"/"+e:this.baseUrl+e,this.defaultQueryString){var o=c.exec(t)[0];-1!==(t=t.substr(0,t.length-o.length)).indexOf("?")?t+="&"+this.defaultQueryString:t+="?"+this.defaultQueryString,t+=o}return t},t.prototype._loadResource=function(e,r){var t=this;e._dequeue=r,u.eachSeries(this._beforeMiddleware,function(r,o){r.call(t,e,function(){o(e.isComplete?{}:null)})},function(){e.isComplete?t._onLoad(e):(e._onLoadBinding=e.onComplete.once(t._onLoad,t),e.load())},!0)},t.prototype._onStart=function(){this.progress=0,this.loading=!0,this.onStart.dispatch(this)},t.prototype._onComplete=function(){this.progress=f,this.loading=!1,this.onComplete.dispatch(this,this.resources)},t.prototype._onLoad=function(e){var r=this;e._onLoadBinding=null,this._resourcesParsing.push(e),e._dequeue(),u.eachSeries(this._afterMiddleware,function(t,o){t.call(r,e,o)},function(){e.onAfterMiddleware.dispatch(e),r.progress=Math.min(f,r.progress+e.progressChunk),r.onProgress.dispatch(r,e),e.error?r.onError.dispatch(e.error,r,e):r.onLoad.dispatch(r,e),r._resourcesParsing.splice(r._resourcesParsing.indexOf(e),1),r._queue.idle()&&0===r._resourcesParsing.length&&r._onComplete()},!0)},r(t,[{key:"concurrency",get:function(){return this._queue.concurrency},set:function(e){this._queue.concurrency=e}}]),t}();p._defaultBeforeMiddleware=[],p._defaultAfterMiddleware=[],p.pre=function(e){return p._defaultBeforeMiddleware.push(e),p},p.use=function(e){return p._defaultAfterMiddleware.push(e),p};
},{"mini-signals":"vKdq","parse-uri":"01sX","./async":"bC3n","./Resource":"F/bs"}],"5Wbt":[function(require,module,exports) {
"use strict";exports.__esModule=!0,exports.encodeBinary=r;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function r(r){for(var t="",o=0;o<r.length;){for(var n=[0,0,0],a=[0,0,0,0],l=0;l<n.length;++l)o<r.length?n[l]=255&r.charCodeAt(o++):n[l]=0;switch(a[0]=n[0]>>2,a[1]=(3&n[0])<<4|n[1]>>4,a[2]=(15&n[1])<<2|n[2]>>6,a[3]=63&n[2],o-(r.length-1)){case 2:a[3]=64,a[2]=64;break;case 1:a[3]=64}for(var s=0;s<a.length;++s)t+=e.charAt(a[s])}return t}"undefined"!=typeof module&&(module.exports.default=r);
},{}],"6Jqp":[function(require,module,exports) {
"use strict";var e=require("./Loader").Loader,r=require("./Resource").Resource,o=require("./async"),u=require("./b64");e.Resource=r,e.async=o,e.encodeBinary=u,e.base64=u,module.exports=e,module.exports.Loader=e,module.exports.default=e;
},{"./Loader":"KNjQ","./Resource":"F/bs","./async":"bC3n","./b64":"5Wbt"}],"Eh8S":[function(require,module,exports) {
"use strict";exports.__esModule=!0,exports.parse=l,exports.default=function(){return function(e,i){if(e.data&&e.type===r.Resource.TYPE.XML)if(0!==e.data.getElementsByTagName("page").length&&0!==e.data.getElementsByTagName("info").length&&null!==e.data.getElementsByTagName("info")[0].getAttribute("face")){var s=e.isDataUrl?"":t.dirname(e.url);e.isDataUrl&&("."===s&&(s=""),this.baseUrl&&s&&"/"===this.baseUrl.charAt(this.baseUrl.length-1)&&(s+="/")),(s=s.replace(this.baseUrl,""))&&"/"!==s.charAt(s.length-1)&&(s+="/");var n=s+e.data.getElementsByTagName("page")[0].getAttribute("file");if(a.utils.TextureCache[n])l(e,a.utils.TextureCache[n]),i();else{var u={crossOrigin:e.crossOrigin,loadType:r.Resource.LOAD_TYPE.IMAGE,metadata:e.metadata.imageMetadata,parentResource:e};this.add(e.name+"_image",n,u,function(t){l(e,t.texture),i()})}}else i();else i()}};var e=require("path"),t=s(e),a=require("../core"),r=require("resource-loader"),i=require("../extras");function s(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&(t[a]=e[a]);return t.default=e,t}function l(e,t){e.bitmapFont=i.BitmapText.registerFont(e.data,t)}
},{"path":"UUq2","../core":"RjZD","resource-loader":"6Jqp","../extras":"KRVa"}],"ESZJ":[function(require,module,exports) {
"use strict";exports.__esModule=!0,exports.default=function(){return function(r,t){var s=r.name+"_image";if(r.data&&r.type===e.Resource.TYPE.JSON&&r.data.frames&&!this.resources[s]){var i={crossOrigin:r.crossOrigin,loadType:e.Resource.LOAD_TYPE.IMAGE,metadata:r.metadata.imageMetadata,parentResource:r},o=u(r,this.baseUrl);this.add(s,o,i,function(e){var s=new a.Spritesheet(e.texture.baseTexture,r.data,r.url);s.parse(function(){r.spritesheet=s,r.textures=s.textures,t()})})}else t()}},exports.getResourcePath=u;var e=require("resource-loader"),r=require("url"),t=s(r),a=require("../core");function s(e){return e&&e.__esModule?e:{default:e}}function u(e,r){return e.isDataUrl?e.data.meta.image:t.default.resolve(e.url.replace(r,""),e.data.meta.image)}
},{"resource-loader":"6Jqp","url":"Mej7","../core":"RjZD"}],"08UO":[function(require,module,exports) {
"use strict";exports.__esModule=!0,exports.default=function(){return function(r,u){r.data&&r.type===e.Resource.TYPE.IMAGE&&(r.texture=t.default.fromLoader(r.data,r.url,r.name)),u()}};var e=require("resource-loader"),r=require("../core/textures/Texture"),t=u(r);function u(e){return e&&e.__esModule?e:{default:e}}
},{"resource-loader":"6Jqp","../core/textures/Texture":"xUki"}],"bkHk":[function(require,module,exports) {
"use strict";exports.__esModule=!0,exports.blobMiddlewareFactory=o;var e=require("../../Resource"),a=require("../../b64"),t=window.URL||window.webkitURL;function o(){return function(o,r){if(o.data){if(o.xhr&&o.xhrType===e.Resource.XHR_RESPONSE_TYPE.BLOB)if(window.Blob&&"string"!=typeof o.data){if(0===o.data.type.indexOf("image")){var n=t.createObjectURL(o.data);return o.blob=o.data,o.data=new Image,o.data.src=n,o.type=e.Resource.TYPE.IMAGE,void(o.data.onload=function(){t.revokeObjectURL(n),o.data.onload=null,r()})}}else{var d=o.xhr.getResponseHeader("content-type");if(d&&0===d.indexOf("image"))return o.data=new Image,o.data.src="data:"+d+";base64,"+(0,a.encodeBinary)(o.xhr.responseText),o.type=e.Resource.TYPE.IMAGE,void(o.data.onload=function(){o.data.onload=null,r()})}r()}else r()}}
},{"../../Resource":"F/bs","../../b64":"5Wbt"}],"MfA+":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=require("resource-loader"),r=f(e),t=require("resource-loader/lib/middlewares/parsing/blob"),o=require("eventemitter3"),n=f(o),i=require("./textureParser"),a=f(i),u=require("./spritesheetParser"),s=f(u),l=require("./bitmapFontParser"),d=f(l);function f(e){return e&&e.__esModule?e:{default:e}}function c(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function p(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||"object"!=typeof r&&"function"!=typeof r?e:r}function y(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}var b=function(e){function r(t,o){c(this,r);var i=p(this,e.call(this,t,o));n.default.call(i);for(var a=0;a<r._pixiMiddleware.length;++a)i.use(r._pixiMiddleware[a]());return i.onStart.add(function(e){return i.emit("start",e)}),i.onProgress.add(function(e,r){return i.emit("progress",e,r)}),i.onError.add(function(e,r,t){return i.emit("error",e,r,t)}),i.onLoad.add(function(e,r){return i.emit("load",e,r)}),i.onComplete.add(function(e,r){return i.emit("complete",e,r)}),i}return y(r,e),r.addPixiMiddleware=function(e){r._pixiMiddleware.push(e)},r.prototype.destroy=function(){this.removeAllListeners(),this.reset()},r}(r.default);for(var h in exports.default=b,n.default.prototype)b.prototype[h]=n.default.prototype[h];b._pixiMiddleware=[t.blobMiddlewareFactory,a.default,s.default,d.default];var w=r.default.Resource;w.setExtensionXhrType("fnt",w.XHR_RESPONSE_TYPE.DOCUMENT);
},{"resource-loader":"6Jqp","resource-loader/lib/middlewares/parsing/blob":"bkHk","eventemitter3":"2JJl","./textureParser":"08UO","./spritesheetParser":"ESZJ","./bitmapFontParser":"Eh8S"}],"PK7H":[function(require,module,exports) {
"use strict";exports.__esModule=!0,exports.shared=exports.Resource=exports.textureParser=exports.getResourcePath=exports.spritesheetParser=exports.parseBitmapFontData=exports.bitmapFontParser=exports.Loader=void 0;var e=require("./bitmapFontParser");Object.defineProperty(exports,"bitmapFontParser",{enumerable:!0,get:function(){return i(e).default}}),Object.defineProperty(exports,"parseBitmapFontData",{enumerable:!0,get:function(){return e.parse}});var r=require("./spritesheetParser");Object.defineProperty(exports,"spritesheetParser",{enumerable:!0,get:function(){return i(r).default}}),Object.defineProperty(exports,"getResourcePath",{enumerable:!0,get:function(){return r.getResourcePath}});var t=require("./textureParser");Object.defineProperty(exports,"textureParser",{enumerable:!0,get:function(){return i(t).default}});var o=require("resource-loader");Object.defineProperty(exports,"Resource",{enumerable:!0,get:function(){return o.Resource}});var a=require("../core/Application"),s=i(a),n=require("./loader"),u=i(n);function i(e){return e&&e.__esModule?e:{default:e}}exports.Loader=u.default;var p=new u.default;p.destroy=function(){},exports.shared=p;var d=s.default.prototype;d._loader=null,Object.defineProperty(d,"loader",{get:function(){if(!this._loader){var e=this._options.sharedLoader;this._loader=e?p:new u.default}return this._loader}}),d._parentDestroy=d.destroy,d.destroy=function(e){this._loader&&(this._loader.destroy(),this._loader=null),this._parentDestroy(e)};
},{"./bitmapFontParser":"Eh8S","./spritesheetParser":"ESZJ","./textureParser":"08UO","resource-loader":"6Jqp","../core/Application":"Y4lo","./loader":"MfA+"}],"esRn":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=function(){function t(t,e){for(var r=0;r<e.length;r++){var n=e[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,r,n){return r&&t(e.prototype,r),n&&t(e,n),e}}(),e=require("../core"),r=s(e),n=require("../extras/TextureTransform"),i=o(n);function o(t){return t&&t.__esModule?t:{default:t}}function s(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e.default=t,e}function u(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var c=new r.Point,l=new r.Polygon,h=function(e){function n(t,o,s,f,c){u(this,n);var l=a(this,e.call(this));return l._texture=t,l.uvs=s||new Float32Array([0,0,1,0,1,1,0,1]),l.vertices=o||new Float32Array([0,0,100,0,100,100,0,100]),l.indices=f||new Uint16Array([0,1,3,2]),l.dirty=0,l.indexDirty=0,l.blendMode=r.BLEND_MODES.NORMAL,l.canvasPadding=0,l.drawMode=c||n.DRAW_MODES.TRIANGLE_MESH,l.shader=null,l.tintRgb=new Float32Array([1,1,1]),l._glDatas={},l._uvTransform=new i.default(t),l.uploadUvTransform=!1,l.pluginName="mesh",l}return f(n,e),n.prototype._renderWebGL=function(t){this.refresh(),t.setObjectRenderer(t.plugins[this.pluginName]),t.plugins[this.pluginName].render(this)},n.prototype._renderCanvas=function(t){this.refresh(),t.plugins[this.pluginName].render(this)},n.prototype._onTextureUpdate=function(){this._uvTransform.texture=this._texture,this.refresh()},n.prototype.multiplyUvs=function(){this.uploadUvTransform||this._uvTransform.multiplyUvs(this.uvs)},n.prototype.refresh=function(t){this._uvTransform.update(t)&&this._refresh()},n.prototype._refresh=function(){},n.prototype._calculateBounds=function(){this._bounds.addVertices(this.transform,this.vertices,0,this.vertices.length)},n.prototype.containsPoint=function(t){if(!this.getBounds().contains(t.x,t.y))return!1;this.worldTransform.applyInverse(t,c);for(var e=this.vertices,r=l.points,i=this.indices,o=this.indices.length,s=this.drawMode===n.DRAW_MODES.TRIANGLES?3:1,u=0;u+2<o;u+=s){var a=2*i[u],f=2*i[u+1],h=2*i[u+2];if(r[0]=e[a],r[1]=e[a+1],r[2]=e[f],r[3]=e[f+1],r[4]=e[h],r[5]=e[h+1],l.contains(c.x,c.y))return!0}return!1},t(n,[{key:"texture",get:function(){return this._texture},set:function(t){this._texture!==t&&(this._texture=t,t&&(t.baseTexture.hasLoaded?this._onTextureUpdate():t.once("update",this._onTextureUpdate,this)))}},{key:"tint",get:function(){return r.utils.rgb2hex(this.tintRgb)},set:function(t){this.tintRgb=r.utils.hex2rgb(t,this.tintRgb)}}]),n}(r.Container);exports.default=h,h.DRAW_MODES={TRIANGLE_MESH:0,TRIANGLES:1};
},{"../core":"RjZD","../extras/TextureTransform":"mK02"}],"IWZv":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=require("../../core"),r=d(e),t=require("pixi-gl-core"),n=u(t),o=require("../Mesh"),i=u(o),a=require("path");function u(e){return e&&e.__esModule?e:{default:e}}function d(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r.default=e,r}function f(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function s(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||"object"!=typeof r&&"function"!=typeof r?e:r}function l(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}var c=r.Matrix.IDENTITY,p=function(e){function t(r){f(this,t);var n=s(this,e.call(this,r));return n.shader=null,n}return l(t,e),t.prototype.onContextChange=function(){var e=this.renderer.gl;this.shader=new r.Shader(e,"attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\nuniform mat3 translationMatrix;\nuniform mat3 uTransform;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n\n    vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;\n}\n","varying vec2 vTextureCoord;\nuniform vec4 uColor;\n\nuniform sampler2D uSampler;\n\nvoid main(void)\n{\n    gl_FragColor = texture2D(uSampler, vTextureCoord) * uColor;\n}\n")},t.prototype.render=function(e){var t=this.renderer,o=t.gl,a=e._texture;if(a.valid){var u=e._glDatas[t.CONTEXT_UID];u||(t.bindVao(null),(u={shader:this.shader,vertexBuffer:n.default.GLBuffer.createVertexBuffer(o,e.vertices,o.STREAM_DRAW),uvBuffer:n.default.GLBuffer.createVertexBuffer(o,e.uvs,o.STREAM_DRAW),indexBuffer:n.default.GLBuffer.createIndexBuffer(o,e.indices,o.STATIC_DRAW),vao:null,dirty:e.dirty,indexDirty:e.indexDirty}).vao=new n.default.VertexArrayObject(o).addIndex(u.indexBuffer).addAttribute(u.vertexBuffer,u.shader.attributes.aVertexPosition,o.FLOAT,!1,8,0).addAttribute(u.uvBuffer,u.shader.attributes.aTextureCoord,o.FLOAT,!1,8,0),e._glDatas[t.CONTEXT_UID]=u),t.bindVao(u.vao),e.dirty!==u.dirty&&(u.dirty=e.dirty,u.uvBuffer.upload(e.uvs)),e.indexDirty!==u.indexDirty&&(u.indexDirty=e.indexDirty,u.indexBuffer.upload(e.indices)),u.vertexBuffer.upload(e.vertices),t.bindShader(u.shader),u.shader.uniforms.uSampler=t.bindTexture(a),t.state.setBlendMode(r.utils.correctBlendMode(e.blendMode,a.baseTexture.premultipliedAlpha)),u.shader.uniforms.uTransform&&(e.uploadUvTransform?u.shader.uniforms.uTransform=e._uvTransform.mapCoord.toArray(!0):u.shader.uniforms.uTransform=c.toArray(!0)),u.shader.uniforms.translationMatrix=e.worldTransform.toArray(!0),u.shader.uniforms.uColor=r.utils.premultiplyRgba(e.tintRgb,e.worldAlpha,u.shader.uniforms.uColor,a.baseTexture.premultipliedAlpha);var d=e.drawMode===i.default.DRAW_MODES.TRIANGLE_MESH?o.TRIANGLE_STRIP:o.TRIANGLES;u.vao.draw(d,e.indices.length,0)}},t}(r.ObjectRenderer);exports.default=p,r.WebGLRenderer.registerPlugin("mesh",p);
},{"../../core":"RjZD","pixi-gl-core":"PJsv","../Mesh":"esRn","path":"UUq2"}],"bPb9":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=require("../../core"),r=i(e),t=require("../Mesh"),n=o(t);function o(e){return e&&e.__esModule?e:{default:e}}function i(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r.default=e,r}function a(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}var d=function(){function e(r){a(this,e),this.renderer=r}return e.prototype.render=function(e){var r=this.renderer,t=r.context,o=e.worldTransform,i=r.resolution;r.roundPixels?t.setTransform(o.a*i,o.b*i,o.c*i,o.d*i,o.tx*i|0,o.ty*i|0):t.setTransform(o.a*i,o.b*i,o.c*i,o.d*i,o.tx*i,o.ty*i),r.setBlendMode(e.blendMode),e.drawMode===n.default.DRAW_MODES.TRIANGLE_MESH?this._renderTriangleMesh(e):this._renderTriangles(e)},e.prototype._renderTriangleMesh=function(e){for(var r=e.vertices.length/2,t=0;t<r-2;t++){var n=2*t;this._renderDrawTriangle(e,n,n+2,n+4)}},e.prototype._renderTriangles=function(e){for(var r=e.indices,t=r.length,n=0;n<t;n+=3){var o=2*r[n],i=2*r[n+1],a=2*r[n+2];this._renderDrawTriangle(e,o,i,a)}},e.prototype._renderDrawTriangle=function(e,r,t,n){var o=this.renderer.context,i=e.uvs,a=e.vertices,d=e._texture;if(d.valid){var s=d.baseTexture,l=s.source,h=s.width,u=s.height,v=void 0,c=void 0,f=void 0,g=void 0,T=void 0,p=void 0;if(e.uploadUvTransform){var w=e._uvTransform.mapCoord;v=(i[r]*w.a+i[r+1]*w.c+w.tx)*s.width,c=(i[t]*w.a+i[t+1]*w.c+w.tx)*s.width,f=(i[n]*w.a+i[n+1]*w.c+w.tx)*s.width,g=(i[r]*w.b+i[r+1]*w.d+w.ty)*s.height,T=(i[t]*w.b+i[t+1]*w.d+w.ty)*s.height,p=(i[n]*w.b+i[n+1]*w.d+w.ty)*s.height}else v=i[r]*s.width,c=i[t]*s.width,f=i[n]*s.width,g=i[r+1]*s.height,T=i[t+1]*s.height,p=i[n+1]*s.height;var _=a[r],y=a[t],M=a[n],m=a[r+1],x=a[t+1],b=a[n+1];if(e.canvasPadding>0){var P=e.canvasPadding/e.worldTransform.a,q=e.canvasPadding/e.worldTransform.d,D=(_+y+M)/3,E=(m+x+b)/3,C=_-D,F=m-E,O=Math.sqrt(C*C+F*F);_=D+C/O*(O+P),m=E+F/O*(O+q),F=x-E,y=D+(C=y-D)/(O=Math.sqrt(C*C+F*F))*(O+P),x=E+F/O*(O+q),F=b-E,M=D+(C=M-D)/(O=Math.sqrt(C*C+F*F))*(O+P),b=E+F/O*(O+q)}o.save(),o.beginPath(),o.moveTo(_,m),o.lineTo(y,x),o.lineTo(M,b),o.closePath(),o.clip();var R=v*T+g*f+c*p-T*f-g*c-v*p,S=_*T+g*M+y*p-T*M-g*y-_*p,A=v*y+_*f+c*M-y*f-_*c-v*M,B=v*T*M+g*y*f+_*c*p-_*T*f-g*c*M-v*y*p,I=m*T+g*b+x*p-T*b-g*x-m*p,j=v*x+m*f+c*b-x*f-m*c-v*b,G=v*T*b+g*x*f+m*c*p-m*T*f-g*c*b-v*x*p;o.transform(S/R,I/R,A/R,j/R,B/R,G/R),o.drawImage(l,0,0,h*s.resolution,u*s.resolution,0,0,h,u),o.restore(),this.renderer.invalidateBlendMode()}},e.prototype.renderMeshFlat=function(e){var r=this.renderer.context,t=e.vertices,n=t.length/2;r.beginPath();for(var o=1;o<n-2;++o){var i=2*o,a=t[i],d=t[i+1],s=t[i+2],l=t[i+3],h=t[i+4],u=t[i+5];r.moveTo(a,d),r.lineTo(s,l),r.lineTo(h,u)}r.fillStyle="#FF0000",r.fill(),r.closePath()},e.prototype.destroy=function(){this.renderer=null},e}();exports.default=d,r.CanvasRenderer.registerPlugin("mesh",d);
},{"../../core":"RjZD","../Mesh":"esRn"}],"sY57":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=require("./Mesh"),t=r(e);function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var n=function(e){function r(o,n,a){i(this,r);var c=s(this,e.call(this,o));return c._ready=!0,c.verticesX=n||10,c.verticesY=a||10,c.drawMode=t.default.DRAW_MODES.TRIANGLES,c.refresh(),c}return o(r,e),r.prototype._refresh=function(){for(var e=this._texture,t=this.verticesX*this.verticesY,r=[],i=[],s=[],o=this.verticesX-1,n=this.verticesY-1,a=e.width/o,c=e.height/n,u=0;u<t;u++){var h=u%this.verticesX,f=u/this.verticesX|0;r.push(h*a,f*c),i.push(h/o,f/n)}for(var l=o*n,p=0;p<l;p++){var v=p%o,y=p/o|0,d=y*this.verticesX+v,_=y*this.verticesX+v+1,w=(y+1)*this.verticesX+v,b=(y+1)*this.verticesX+v+1;s.push(d,_,w),s.push(_,b,w)}this.vertices=new Float32Array(r),this.uvs=new Float32Array(i),this.colors=new Float32Array([]),this.indices=new Uint16Array(s),this.indexDirty++,this.multiplyUvs()},r.prototype._onTextureUpdate=function(){t.default.prototype._onTextureUpdate.call(this),this._ready&&this.refresh()},r}(t.default);exports.default=n;
},{"./Mesh":"esRn"}],"VYYc":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=function(){function t(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(e,i,r){return i&&t(e.prototype,i),r&&t(e,r),e}}(),e=require("./Plane"),i=r(e);function r(t){return t&&t.__esModule?t:{default:t}}function h(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function n(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=10,u=function(e){function i(t,r,n,u,a){h(this,i);var f=o(this,e.call(this,t,4,4));return f._origWidth=t.orig.width,f._origHeight=t.orig.height,f._width=f._origWidth,f._height=f._origHeight,f.leftWidth=void 0!==r?r:s,f.rightWidth=void 0!==u?u:s,f.topHeight=void 0!==n?n:s,f.bottomHeight=void 0!==a?a:s,f.refresh(!0),f}return n(i,e),i.prototype.updateHorizontalVertices=function(){var t=this.vertices;t[9]=t[11]=t[13]=t[15]=this._topHeight,t[17]=t[19]=t[21]=t[23]=this._height-this._bottomHeight,t[25]=t[27]=t[29]=t[31]=this._height},i.prototype.updateVerticalVertices=function(){var t=this.vertices;t[2]=t[10]=t[18]=t[26]=this._leftWidth,t[4]=t[12]=t[20]=t[28]=this._width-this._rightWidth,t[6]=t[14]=t[22]=t[30]=this._width},i.prototype._renderCanvas=function(t){var e=t.context;e.globalAlpha=this.worldAlpha;var i=this.worldTransform,r=t.resolution;t.roundPixels?e.setTransform(i.a*r,i.b*r,i.c*r,i.d*r,i.tx*r|0,i.ty*r|0):e.setTransform(i.a*r,i.b*r,i.c*r,i.d*r,i.tx*r,i.ty*r);var h=this._texture.baseTexture,o=h.source,n=h.width,s=h.height;this.drawSegment(e,o,n,s,0,1,10,11),this.drawSegment(e,o,n,s,2,3,12,13),this.drawSegment(e,o,n,s,4,5,14,15),this.drawSegment(e,o,n,s,8,9,18,19),this.drawSegment(e,o,n,s,10,11,20,21),this.drawSegment(e,o,n,s,12,13,22,23),this.drawSegment(e,o,n,s,16,17,26,27),this.drawSegment(e,o,n,s,18,19,28,29),this.drawSegment(e,o,n,s,20,21,30,31)},i.prototype.drawSegment=function(t,e,i,r,h,o,n,s){var u=this.uvs,a=this.vertices,f=(u[n]-u[h])*i,g=(u[s]-u[o])*r,c=a[n]-a[h],d=a[s]-a[o];f<1&&(f=1),g<1&&(g=1),c<1&&(c=1),d<1&&(d=1),t.drawImage(e,u[h]*i,u[o]*r,f,g,a[h],a[o],c,d)},i.prototype._refresh=function(){e.prototype._refresh.call(this);var t=this.uvs,i=this._texture;this._origWidth=i.orig.width,this._origHeight=i.orig.height;var r=1/this._origWidth,h=1/this._origHeight;t[0]=t[8]=t[16]=t[24]=0,t[1]=t[3]=t[5]=t[7]=0,t[6]=t[14]=t[22]=t[30]=1,t[25]=t[27]=t[29]=t[31]=1,t[2]=t[10]=t[18]=t[26]=r*this._leftWidth,t[4]=t[12]=t[20]=t[28]=1-r*this._rightWidth,t[9]=t[11]=t[13]=t[15]=h*this._topHeight,t[17]=t[19]=t[21]=t[23]=1-h*this._bottomHeight,this.updateHorizontalVertices(),this.updateVerticalVertices(),this.dirty++,this.multiplyUvs()},t(i,[{key:"width",get:function(){return this._width},set:function(t){this._width=t,this._refresh()}},{key:"height",get:function(){return this._height},set:function(t){this._height=t,this._refresh()}},{key:"leftWidth",get:function(){return this._leftWidth},set:function(t){this._leftWidth=t,this._refresh()}},{key:"rightWidth",get:function(){return this._rightWidth},set:function(t){this._rightWidth=t,this._refresh()}},{key:"topHeight",get:function(){return this._topHeight},set:function(t){this._topHeight=t,this._refresh()}},{key:"bottomHeight",get:function(){return this._bottomHeight},set:function(t){this._bottomHeight=t,this._refresh()}}]),i}(i.default);exports.default=u;
},{"./Plane":"sY57"}],"XEQk":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=require("./Mesh"),e=r(t);function r(t){return t&&t.__esModule?t:{default:t}}function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function o(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}var s=function(t){function e(r,o){n(this,e);var s=i(this,t.call(this,r));return s.points=o,s.vertices=new Float32Array(4*o.length),s.uvs=new Float32Array(4*o.length),s.colors=new Float32Array(2*o.length),s.indices=new Uint16Array(2*o.length),s.autoUpdate=!0,s.refresh(),s}return o(e,t),e.prototype._refresh=function(){var t=this.points;if(!(t.length<1)&&this._texture._uvs){this.vertices.length/4!==t.length&&(this.vertices=new Float32Array(4*t.length),this.uvs=new Float32Array(4*t.length),this.colors=new Float32Array(2*t.length),this.indices=new Uint16Array(2*t.length));var e=this.uvs,r=this.indices,n=this.colors;e[0]=0,e[1]=0,e[2]=0,e[3]=1,n[0]=1,n[1]=1,r[0]=0,r[1]=1;for(var i=t.length,o=1;o<i;o++){var s=4*o,a=o/(i-1);e[s]=a,e[s+1]=0,e[s+2]=a,e[s+3]=1,n[s=2*o]=1,n[s+1]=1,r[s=2*o]=s,r[s+1]=s+1}this.dirty++,this.indexDirty++,this.multiplyUvs(),this.refreshVertices()}},e.prototype.refreshVertices=function(){var t=this.points;if(!(t.length<1))for(var e=t[0],r=void 0,n=0,i=0,o=this.vertices,s=t.length,a=0;a<s;a++){var h=t[a],l=4*a;i=-((r=a<t.length-1?t[a+1]:h).x-e.x),n=r.y-e.y;var u=10*(1-a/(s-1));u>1&&(u=1);var c=Math.sqrt(n*n+i*i),f=this._texture.height/2;n/=c,i/=c,n*=f,i*=f,o[l]=h.x+n,o[l+1]=h.y+i,o[l+2]=h.x-n,o[l+3]=h.y-i,e=h}},e.prototype.updateTransform=function(){this.autoUpdate&&this.refreshVertices(),this.containerUpdateTransform()},e}(e.default);exports.default=s;
},{"./Mesh":"esRn"}],"1ZIP":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=require("./Mesh");Object.defineProperty(exports,"Mesh",{enumerable:!0,get:function(){return i(e).default}});var r=require("./webgl/MeshRenderer");Object.defineProperty(exports,"MeshRenderer",{enumerable:!0,get:function(){return i(r).default}});var t=require("./canvas/CanvasMeshRenderer");Object.defineProperty(exports,"CanvasMeshRenderer",{enumerable:!0,get:function(){return i(t).default}});var n=require("./Plane");Object.defineProperty(exports,"Plane",{enumerable:!0,get:function(){return i(n).default}});var u=require("./NineSlicePlane");Object.defineProperty(exports,"NineSlicePlane",{enumerable:!0,get:function(){return i(u).default}});var a=require("./Rope");function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"Rope",{enumerable:!0,get:function(){return i(a).default}});
},{"./Mesh":"esRn","./webgl/MeshRenderer":"IWZv","./canvas/CanvasMeshRenderer":"bPb9","./Plane":"sY57","./NineSlicePlane":"VYYc","./Rope":"XEQk"}],"Q1sA":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=function(){function e(e,t){for(var r=0;r<t.length;r++){var i=t[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,r,i){return r&&e(t.prototype,r),i&&e(t,i),t}}(),t=require("../core"),r=o(t),i=require("../core/utils");function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function n(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function a(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(t){function o(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1500,i=arguments[1],a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:16384,l=arguments.length>3&&void 0!==arguments[3]&&arguments[3];n(this,o);var h=s(this,t.call(this));return a>16384&&(a=16384),a>e&&(a=e),h._properties=[!1,!0,!1,!1,!1],h._maxSize=e,h._batchSize=a,h._glBuffers={},h._bufferToUpdate=0,h.interactiveChildren=!1,h.blendMode=r.BLEND_MODES.NORMAL,h.autoResize=l,h.roundPixels=!0,h.baseTexture=null,h.setProperties(i),h._tint=0,h.tintRgb=new Float32Array(4),h.tint=16777215,h}return a(o,t),o.prototype.setProperties=function(e){e&&(this._properties[0]="scale"in e?!!e.scale:this._properties[0],this._properties[1]="position"in e?!!e.position:this._properties[1],this._properties[2]="rotation"in e?!!e.rotation:this._properties[2],this._properties[3]="uvs"in e?!!e.uvs:this._properties[3],this._properties[4]="alpha"in e||"tint"in e?!!e.alpha||!!e.tint:this._properties[4])},o.prototype.updateTransform=function(){this.displayObjectUpdateTransform()},o.prototype.renderWebGL=function(e){var t=this;this.visible&&!(this.worldAlpha<=0)&&this.children.length&&this.renderable&&(this.baseTexture||(this.baseTexture=this.children[0]._texture.baseTexture,this.baseTexture.hasLoaded||this.baseTexture.once("update",function(){return t.onChildrenChange(0)})),e.setObjectRenderer(e.plugins.particle),e.plugins.particle.render(this))},o.prototype.onChildrenChange=function(e){var t=Math.floor(e/this._batchSize);t<this._bufferToUpdate&&(this._bufferToUpdate=t)},o.prototype.renderCanvas=function(e){if(this.visible&&!(this.worldAlpha<=0)&&this.children.length&&this.renderable){var t=e.context,r=this.worldTransform,i=!0,o=0,n=0,s=0,a=0;e.setBlendMode(this.blendMode),t.globalAlpha=this.worldAlpha,this.displayObjectUpdateTransform();for(var l=0;l<this.children.length;++l){var h=this.children[l];if(h.visible){var u=h._texture.frame;if(t.globalAlpha=this.worldAlpha*h.alpha,h.rotation%(2*Math.PI)==0)i&&(t.setTransform(r.a,r.b,r.c,r.d,r.tx*e.resolution,r.ty*e.resolution),i=!1),o=h.anchor.x*(-u.width*h.scale.x)+h.position.x+.5,n=h.anchor.y*(-u.height*h.scale.y)+h.position.y+.5,s=u.width*h.scale.x,a=u.height*h.scale.y;else{i||(i=!0),h.displayObjectUpdateTransform();var p=h.worldTransform;e.roundPixels?t.setTransform(p.a,p.b,p.c,p.d,p.tx*e.resolution|0,p.ty*e.resolution|0):t.setTransform(p.a,p.b,p.c,p.d,p.tx*e.resolution,p.ty*e.resolution),o=h.anchor.x*-u.width+.5,n=h.anchor.y*-u.height+.5,s=u.width,a=u.height}var f=h._texture.baseTexture.resolution;t.drawImage(h._texture.baseTexture.source,u.x*f,u.y*f,u.width*f,u.height*f,o*e.resolution,n*e.resolution,s*e.resolution,a*e.resolution)}}}},o.prototype.destroy=function(e){if(t.prototype.destroy.call(this,e),this._buffers)for(var r=0;r<this._buffers.length;++r)this._buffers[r].destroy();this._properties=null,this._buffers=null},e(o,[{key:"tint",get:function(){return this._tint},set:function(e){this._tint=e,(0,i.hex2rgb)(e,this.tintRgb)}}]),o}(r.Container);exports.default=l;
},{"../core":"RjZD","../core/utils":"dDI1"}],"zjtw":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var o=require("../../core/Shader"),t=e(o);function e(o){return o&&o.__esModule?o:{default:o}}function r(o,t){if(!(o instanceof t))throw new TypeError("Cannot call a class as a function")}function i(o,t){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?o:t}function n(o,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);o.prototype=Object.create(t&&t.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(o,t):o.__proto__=t)}var a=function(o){function t(e){return r(this,t),i(this,o.call(this,e,["attribute vec2 aVertexPosition;","attribute vec2 aTextureCoord;","attribute vec4 aColor;","attribute vec2 aPositionCoord;","attribute vec2 aScale;","attribute float aRotation;","uniform mat3 projectionMatrix;","uniform vec4 uColor;","varying vec2 vTextureCoord;","varying vec4 vColor;","void main(void){","   vec2 v = aVertexPosition;","   v.x = (aVertexPosition.x) * cos(aRotation) - (aVertexPosition.y) * sin(aRotation);","   v.y = (aVertexPosition.x) * sin(aRotation) + (aVertexPosition.y) * cos(aRotation);","   v = v + aPositionCoord;","   gl_Position = vec4((projectionMatrix * vec3(v, 1.0)).xy, 0.0, 1.0);","   vTextureCoord = aTextureCoord;","   vColor = aColor * uColor;","}"].join("\n"),["varying vec2 vTextureCoord;","varying vec4 vColor;","uniform sampler2D uSampler;","void main(void){","  vec4 color = texture2D(uSampler, vTextureCoord) * vColor;","  if (color.a == 0.0) discard;","  gl_FragColor = color;","}"].join("\n")))}return n(t,o),t}(t.default);exports.default=a;
},{"../../core/Shader":"wBQE"}],"fUBa":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=require("pixi-gl-core"),i=a(t),e=require("../../core/utils/createIndicesForQuads"),s=a(e);function a(t){return t&&t.__esModule?t:{default:t}}function r(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}var n=function(){function t(i,e,s,a){r(this,t),this.gl=i,this.size=a,this.dynamicProperties=[],this.staticProperties=[];for(var n=0;n<e.length;++n){var f=e[n];f={attribute:f.attribute,size:f.size,uploadFunction:f.uploadFunction,unsignedByte:f.unsignedByte,offset:f.offset},s[n]?this.dynamicProperties.push(f):this.staticProperties.push(f)}this.staticStride=0,this.staticBuffer=null,this.staticData=null,this.staticDataUint32=null,this.dynamicStride=0,this.dynamicBuffer=null,this.dynamicData=null,this.dynamicDataUint32=null,this.initBuffers()}return t.prototype.initBuffers=function(){var t=this.gl,e=0;this.indices=(0,s.default)(this.size),this.indexBuffer=i.default.GLBuffer.createIndexBuffer(t,this.indices,t.STATIC_DRAW),this.dynamicStride=0;for(var a=0;a<this.dynamicProperties.length;++a){var r=this.dynamicProperties[a];r.offset=e,e+=r.size,this.dynamicStride+=r.size}var n=new ArrayBuffer(this.size*this.dynamicStride*4*4);this.dynamicData=new Float32Array(n),this.dynamicDataUint32=new Uint32Array(n),this.dynamicBuffer=i.default.GLBuffer.createVertexBuffer(t,n,t.STREAM_DRAW);var f=0;this.staticStride=0;for(var u=0;u<this.staticProperties.length;++u){var c=this.staticProperties[u];c.offset=f,f+=c.size,this.staticStride+=c.size}var d=new ArrayBuffer(this.size*this.staticStride*4*4);this.staticData=new Float32Array(d),this.staticDataUint32=new Uint32Array(d),this.staticBuffer=i.default.GLBuffer.createVertexBuffer(t,d,t.STATIC_DRAW),this.vao=new i.default.VertexArrayObject(t).addIndex(this.indexBuffer);for(var h=0;h<this.dynamicProperties.length;++h){var o=this.dynamicProperties[h];o.unsignedByte?this.vao.addAttribute(this.dynamicBuffer,o.attribute,t.UNSIGNED_BYTE,!0,4*this.dynamicStride,4*o.offset):this.vao.addAttribute(this.dynamicBuffer,o.attribute,t.FLOAT,!1,4*this.dynamicStride,4*o.offset)}for(var l=0;l<this.staticProperties.length;++l){var y=this.staticProperties[l];y.unsignedByte?this.vao.addAttribute(this.staticBuffer,y.attribute,t.UNSIGNED_BYTE,!0,4*this.staticStride,4*y.offset):this.vao.addAttribute(this.staticBuffer,y.attribute,t.FLOAT,!1,4*this.staticStride,4*y.offset)}},t.prototype.uploadDynamic=function(t,i,e){for(var s=0;s<this.dynamicProperties.length;s++){var a=this.dynamicProperties[s];a.uploadFunction(t,i,e,a.unsignedByte?this.dynamicDataUint32:this.dynamicData,this.dynamicStride,a.offset)}this.dynamicBuffer.upload()},t.prototype.uploadStatic=function(t,i,e){for(var s=0;s<this.staticProperties.length;s++){var a=this.staticProperties[s];a.uploadFunction(t,i,e,a.unsignedByte?this.staticDataUint32:this.staticData,this.staticStride,a.offset)}this.staticBuffer.upload()},t.prototype.destroy=function(){this.dynamicProperties=null,this.dynamicData=null,this.dynamicBuffer.destroy(),this.staticProperties=null,this.staticData=null,this.staticBuffer.destroy()},t}();exports.default=n;
},{"pixi-gl-core":"PJsv","../../core/utils/createIndicesForQuads":"DI0o"}],"gx9Q":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=require("../../core"),t=u(e),r=require("./ParticleShader"),o=s(r),i=require("./ParticleBuffer"),n=s(i),a=require("../../core/utils");function s(e){return e&&e.__esModule?e:{default:e}}function u(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function p(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var f=function(e){function r(o){p(this,r);var i=l(this,e.call(this,o));return i.shader=null,i.indexBuffer=null,i.properties=null,i.tempMatrix=new t.Matrix,i.CONTEXT_UID=0,i}return h(r,e),r.prototype.onContextChange=function(){var e=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.shader=new o.default(e),this.properties=[{attribute:this.shader.attributes.aVertexPosition,size:2,uploadFunction:this.uploadVertices,offset:0},{attribute:this.shader.attributes.aPositionCoord,size:2,uploadFunction:this.uploadPosition,offset:0},{attribute:this.shader.attributes.aRotation,size:1,uploadFunction:this.uploadRotation,offset:0},{attribute:this.shader.attributes.aTextureCoord,size:2,uploadFunction:this.uploadUvs,offset:0},{attribute:this.shader.attributes.aColor,size:1,unsignedByte:!0,uploadFunction:this.uploadTint,offset:0}]},r.prototype.start=function(){this.renderer.bindShader(this.shader)},r.prototype.render=function(e){var r=e.children,o=e._maxSize,i=e._batchSize,n=this.renderer,a=r.length;if(0!==a){a>o&&(a=o);var s=e._glBuffers[n.CONTEXT_UID];s||(s=e._glBuffers[n.CONTEXT_UID]=this.generateBuffers(e));var u=r[0]._texture.baseTexture;this.renderer.setBlendMode(t.utils.correctBlendMode(e.blendMode,u.premultipliedAlpha));var p=n.gl,l=e.worldTransform.copy(this.tempMatrix);l.prepend(n._activeRenderTarget.projectionMatrix),this.shader.uniforms.projectionMatrix=l.toArray(!0),this.shader.uniforms.uColor=t.utils.premultiplyRgba(e.tintRgb,e.worldAlpha,this.shader.uniforms.uColor,u.premultipliedAlpha),this.shader.uniforms.uSampler=n.bindTexture(u);for(var h=0,f=0;h<a;h+=i,f+=1){var d=a-h;if(d>i&&(d=i),f>=s.length){if(!e.autoResize)break;s.push(this._generateOneMoreBuffer(e))}var c=s[f];c.uploadDynamic(r,h,d),e._bufferToUpdate===f&&(c.uploadStatic(r,h,d),e._bufferToUpdate=f+1),n.bindVao(c.vao),c.vao.draw(p.TRIANGLES,6*d)}}},r.prototype.generateBuffers=function(e){for(var t=this.renderer.gl,r=[],o=e._maxSize,i=e._batchSize,a=e._properties,s=0;s<o;s+=i)r.push(new n.default(t,this.properties,a,i));return r},r.prototype._generateOneMoreBuffer=function(e){var t=this.renderer.gl,r=e._batchSize,o=e._properties;return new n.default(t,this.properties,o,r)},r.prototype.uploadVertices=function(e,t,r,o,i,n){for(var a=0,s=0,u=0,p=0,l=0;l<r;++l){var h=e[t+l],f=h._texture,d=h.scale.x,c=h.scale.y,y=f.trim,b=f.orig;y?(a=(s=y.x-h.anchor.x*b.width)+y.width,u=(p=y.y-h.anchor.y*b.height)+y.height):(a=b.width*(1-h.anchor.x),s=b.width*-h.anchor.x,u=b.height*(1-h.anchor.y),p=b.height*-h.anchor.y),o[n]=s*d,o[n+1]=p*c,o[n+i]=a*d,o[n+i+1]=p*c,o[n+2*i]=a*d,o[n+2*i+1]=u*c,o[n+3*i]=s*d,o[n+3*i+1]=u*c,n+=4*i}},r.prototype.uploadPosition=function(e,t,r,o,i,n){for(var a=0;a<r;a++){var s=e[t+a].position;o[n]=s.x,o[n+1]=s.y,o[n+i]=s.x,o[n+i+1]=s.y,o[n+2*i]=s.x,o[n+2*i+1]=s.y,o[n+3*i]=s.x,o[n+3*i+1]=s.y,n+=4*i}},r.prototype.uploadRotation=function(e,t,r,o,i,n){for(var a=0;a<r;a++){var s=e[t+a].rotation;o[n]=s,o[n+i]=s,o[n+2*i]=s,o[n+3*i]=s,n+=4*i}},r.prototype.uploadUvs=function(e,t,r,o,i,n){for(var a=0;a<r;++a){var s=e[t+a]._texture._uvs;s?(o[n]=s.x0,o[n+1]=s.y0,o[n+i]=s.x1,o[n+i+1]=s.y1,o[n+2*i]=s.x2,o[n+2*i+1]=s.y2,o[n+3*i]=s.x3,o[n+3*i+1]=s.y3,n+=4*i):(o[n]=0,o[n+1]=0,o[n+i]=0,o[n+i+1]=0,o[n+2*i]=0,o[n+2*i+1]=0,o[n+3*i]=0,o[n+3*i+1]=0,n+=4*i)}},r.prototype.uploadTint=function(e,t,r,o,i,n){for(var s=0;s<r;++s){var u=e[t+s],p=u._texture.baseTexture.premultipliedAlpha,l=u.alpha,h=l<1&&p?(0,a.premultiplyTint)(u._tintRGB,l):u._tintRGB+(255*l<<24);o[n]=h,o[n+i]=h,o[n+2*i]=h,o[n+3*i]=h,n+=4*i}},r.prototype.destroy=function(){this.renderer.gl&&this.renderer.gl.deleteBuffer(this.indexBuffer),e.prototype.destroy.call(this),this.shader.destroy(),this.indices=null,this.tempMatrix=null},r}(t.ObjectRenderer);exports.default=f,t.WebGLRenderer.registerPlugin("particle",f);
},{"../../core":"RjZD","./ParticleShader":"zjtw","./ParticleBuffer":"fUBa","../../core/utils":"dDI1"}],"8fQc":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=require("./ParticleContainer");Object.defineProperty(exports,"ParticleContainer",{enumerable:!0,get:function(){return t(e).default}});var r=require("./webgl/ParticleRenderer");function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"ParticleRenderer",{enumerable:!0,get:function(){return t(r).default}});
},{"./ParticleContainer":"Q1sA","./webgl/ParticleRenderer":"gx9Q"}],"4EC6":[function(require,module,exports) {
"use strict";function t(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}exports.__esModule=!0;var e=function(){function e(n){t(this,e),this.maxItemsPerFrame=n,this.itemsLeft=0}return e.prototype.beginFrame=function(){this.itemsLeft=this.maxItemsPerFrame},e.prototype.allowedToUpload=function(){return this.itemsLeft-- >0},e}();exports.default=e;
},{}],"NEc+":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var t=require("../core"),e=n(t),i=require("./limiters/CountLimiter"),r=s(i);function s(t){return t&&t.__esModule?t:{default:t}}function n(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e.default=t,e}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var u=e.ticker.shared;e.settings.UPLOADS_PER_FRAME=4;var h=function(){function t(i){var s=this;o(this,t),this.limiter=new r.default(e.settings.UPLOADS_PER_FRAME),this.renderer=i,this.uploadHookHelper=null,this.queue=[],this.addHooks=[],this.uploadHooks=[],this.completes=[],this.ticking=!1,this.delayedTick=function(){s.queue&&s.prepareItems()},this.registerFindHook(p),this.registerFindHook(k),this.registerFindHook(l),this.registerFindHook(a),this.registerFindHook(d),this.registerUploadHook(f),this.registerUploadHook(c)}return t.prototype.upload=function(t,i){"function"==typeof t&&(i=t,t=null),t&&this.add(t),this.queue.length?(i&&this.completes.push(i),this.ticking||(this.ticking=!0,u.addOnce(this.tick,this,e.UPDATE_PRIORITY.UTILITY))):i&&i()},t.prototype.tick=function(){setTimeout(this.delayedTick,0)},t.prototype.prepareItems=function(){for(this.limiter.beginFrame();this.queue.length&&this.limiter.allowedToUpload();){var t=this.queue[0],i=!1;if(t&&!t._destroyed)for(var r=0,s=this.uploadHooks.length;r<s;r++)if(this.uploadHooks[r](this.uploadHookHelper,t)){this.queue.shift(),i=!0;break}i||this.queue.shift()}if(this.queue.length)u.addOnce(this.tick,this,e.UPDATE_PRIORITY.UTILITY);else{this.ticking=!1;var n=this.completes.slice(0);this.completes.length=0;for(var o=0,h=n.length;o<h;o++)n[o]()}},t.prototype.registerFindHook=function(t){return t&&this.addHooks.push(t),this},t.prototype.registerUploadHook=function(t){return t&&this.uploadHooks.push(t),this},t.prototype.add=function(t){for(var i=0,r=this.addHooks.length;i<r&&!this.addHooks[i](t,this.queue);i++);if(t instanceof e.Container)for(var s=t.children.length-1;s>=0;s--)this.add(t.children[s]);return this},t.prototype.destroy=function(){this.ticking&&u.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},t}();function l(t,i){var r=!1;if(t&&t._textures&&t._textures.length)for(var s=0;s<t._textures.length;s++)if(t._textures[s]instanceof e.Texture){var n=t._textures[s].baseTexture;-1===i.indexOf(n)&&(i.push(n),r=!0)}return r}function a(t,i){return t instanceof e.BaseTexture&&(-1===i.indexOf(t)&&i.push(t),!0)}function d(t,i){if(t._texture&&t._texture instanceof e.Texture){var r=t._texture.baseTexture;return-1===i.indexOf(r)&&i.push(r),!0}return!1}function f(t,i){return i instanceof e.Text&&(i.updateText(!0),!0)}function c(t,i){if(i instanceof e.TextStyle){var r=i.toFontString();return e.TextMetrics.measureFont(r),!0}return!1}function p(t,i){if(t instanceof e.Text){-1===i.indexOf(t.style)&&i.push(t.style),-1===i.indexOf(t)&&i.push(t);var r=t._texture.baseTexture;return-1===i.indexOf(r)&&i.push(r),!0}return!1}function k(t,i){return t instanceof e.TextStyle&&(-1===i.indexOf(t)&&i.push(t),!0)}exports.default=h;
},{"../core":"RjZD","./limiters/CountLimiter":"4EC6"}],"laVK":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=require("../../core"),r=i(e),t=require("../BasePrepare"),n=o(t);function o(e){return e&&e.__esModule?e:{default:e}}function i(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r.default=e,r}function u(e,r){if(!(e instanceof r))throw new TypeError("Cannot call a class as a function")}function a(e,r){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||"object"!=typeof r&&"function"!=typeof r?e:r}function s(e,r){if("function"!=typeof r&&null!==r)throw new TypeError("Super expression must either be null or a function, not "+typeof r);e.prototype=Object.create(r&&r.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(e,r):e.__proto__=r)}var c=function(e){function r(t){u(this,r);var n=a(this,e.call(this,t));return n.uploadHookHelper=n.renderer,n.registerFindHook(l),n.registerUploadHook(p),n.registerUploadHook(f),n}return s(r,e),r}(n.default);function p(e,t){return t instanceof r.BaseTexture&&(t._glTextures[e.CONTEXT_UID]||e.textureManager.updateTexture(t),!0)}function f(e,t){return t instanceof r.Graphics&&((t.dirty||t.clearDirty||!t._webGL[e.plugins.graphics.CONTEXT_UID])&&e.plugins.graphics.updateGraphics(t),!0)}function l(e,t){return e instanceof r.Graphics&&(t.push(e),!0)}exports.default=c,r.WebGLRenderer.registerPlugin("prepare",c);
},{"../../core":"RjZD","../BasePrepare":"NEc+"}],"lVSe":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=require("../../core"),t=o(e),r=require("../BasePrepare"),n=a(r);function a(e){return e&&e.__esModule?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function s(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var u=16,l=function(e){function t(r){i(this,t);var n=c(this,e.call(this,r));return n.uploadHookHelper=n,n.canvas=document.createElement("canvas"),n.canvas.width=u,n.canvas.height=u,n.ctx=n.canvas.getContext("2d"),n.registerUploadHook(f),n}return s(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this),this.ctx=null,this.canvas=null},t}(n.default);function f(e,r){if(r instanceof t.BaseTexture){var n=r.source,a=0===n.width?e.canvas.width:Math.min(e.canvas.width,n.width),o=0===n.height?e.canvas.height:Math.min(e.canvas.height,n.height);return e.ctx.drawImage(n,0,0,a,o,0,0,e.canvas.width,e.canvas.height),!0}return!1}exports.default=l,t.CanvasRenderer.registerPlugin("prepare",l);
},{"../../core":"RjZD","../BasePrepare":"NEc+"}],"p35m":[function(require,module,exports) {
"use strict";function t(t,n){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}exports.__esModule=!0;var n=function(){function n(o){t(this,n),this.maxMilliseconds=o,this.frameStart=0}return n.prototype.beginFrame=function(){this.frameStart=Date.now()},n.prototype.allowedToUpload=function(){return Date.now()-this.frameStart<this.maxMilliseconds},n}();exports.default=n;
},{}],"7BI5":[function(require,module,exports) {
"use strict";exports.__esModule=!0;var e=require("./webgl/WebGLPrepare");Object.defineProperty(exports,"webgl",{enumerable:!0,get:function(){return i(e).default}});var r=require("./canvas/CanvasPrepare");Object.defineProperty(exports,"canvas",{enumerable:!0,get:function(){return i(r).default}});var t=require("./BasePrepare");Object.defineProperty(exports,"BasePrepare",{enumerable:!0,get:function(){return i(t).default}});var n=require("./limiters/CountLimiter");Object.defineProperty(exports,"CountLimiter",{enumerable:!0,get:function(){return i(n).default}});var u=require("./limiters/TimeLimiter");function i(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(exports,"TimeLimiter",{enumerable:!0,get:function(){return i(u).default}});
},{"./webgl/WebGLPrepare":"laVK","./canvas/CanvasPrepare":"lVSe","./BasePrepare":"NEc+","./limiters/CountLimiter":"4EC6","./limiters/TimeLimiter":"p35m"}],"ix37":[function(require,module,exports) {
var global = arguments[3];
var e=arguments[3];exports.__esModule=!0,exports.loader=exports.prepare=exports.particles=exports.mesh=exports.loaders=exports.interaction=exports.filters=exports.extras=exports.extract=exports.accessibility=void 0;var r=require("./polyfill");Object.keys(r).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return r[e]}})});var t=require("./core");Object.keys(t).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(exports,e,{enumerable:!0,get:function(){return t[e]}})});var o=require("./deprecation"),s=j(o),i=require("./accessibility"),a=O(i),p=require("./extract"),u=O(p),l=require("./extras"),n=O(l),x=require("./filters"),c=O(x),f=require("./interaction"),d=O(f),q=require("./loaders"),y=O(q),b=require("./mesh"),_=O(b),m=require("./particles"),v=O(m),h=require("./prepare"),M=O(h);function O(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=e[t]);return r.default=e,r}function j(e){return e&&e.__esModule?e:{default:e}}t.utils.mixins.performMixins();var P=y.shared||null;exports.accessibility=a,exports.extract=u,exports.extras=n,exports.filters=c,exports.interaction=d,exports.loaders=y,exports.mesh=_,exports.particles=v,exports.prepare=M,exports.loader=P,"function"==typeof s.default&&(0,s.default)(exports),e.PIXI=exports;
},{"./polyfill":"bPsC","./core":"RjZD","./deprecation":"+E8Q","./accessibility":"l7H0","./extract":"jvu7","./extras":"KRVa","./filters":"lFUL","./interaction":"/j6N","./loaders":"PK7H","./mesh":"1ZIP","./particles":"8fQc","./prepare":"7BI5"}],"i745":[function(require,module,exports) {
"use strict";function n(n,d){d.time=d.ticker.shared,n.pixtime=d.ticker.shared,d.utils.sayHello=function(d){if("WebGL"==d&&(d+=" ☺"),navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var o=["\n %c %c %c DreamEngine V2 > PIXI V4 ☃ - v"+n.VERSION+" - ✰ "+d+" ✰  %c  %c  http://dreamengine.dreamirl.com/ %c  %c  http://www.pixijs.com/  %c %c ♥%c♥%c♥ \n\n","background: #FF7C0A; padding:5px 0;","background: #FF7C0A; padding:5px 0;","color: #FF7C0A; background: #030307; padding:5px 0;","background: #FF7C0A; padding:5px 0;","background: #FFC18E; padding:5px 0;","background: #FF7C0A; padding:5px 0;","background: #ffc3dc; padding:5px 0;","background: #FF7C0A; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;","color: #ff2424; background: #fff; padding:5px 0;"];window.console.log.apply(console,o)}else window.console&&window.console.log("DreamEngine V2 > PIXI V4 ☃ - v"+n.VERSION+" - ✰ "+d+" ✰  | http://dreamengine.dreamirl.com | http://www.pixijs.com")}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=n;
},{}],"2BhM":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("eventemitter3"));function t(e){return e&&e.__esModule?e:{default:e}}const r=new e.default;r.Emitter=e.default,r.DEName="Events",r.trigger=r.emit;var u=r;exports.default=u;
},{"eventemitter3":"2JJl"}],"E/5E":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("DE.Events"));function t(e){return e&&e.__esModule?e:{default:e}}var a={DEName:"config",VERSION:"2.0",_DEBUG:0,_DEBUG_LEVEL:0};Object.defineProperties(a,{DEBUG:{get:function(){return a._DEBUG},set:function(t){e.default.emit("change-debug",t,a._DEBUG_LEVEL),a._DEBUG=t}},DEBUG_LEVEL:{get:function(){return a._DEBUG_LEVEL},set:function(t){e.default.emit("change-debug",a._DEBUG,t),a._DEBUG_LEVEL=t}}}),a.zMaxDepth=10,a.notifications={enable:!0,gamepadEnable:!0,gamepadAvalaible:"Gamepad avalaible !",gamepadChange:!0,achievementUnlockDuration:8e3};var n=a;exports.default=n;
},{"DE.Events":"2BhM"}],"RgmU":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={DEName:"about",engineVersion:"2.0",gameName:"My-Dreamengine-Game",gameVersion:"0.1.0",gameAuthor:"Dreamirl",set:function(a){a=a||{},e.gameName=a.gameName||e.gameName,e.gameVersion=a.gameVersion||e.gameVersion,e.gameAuthor=a.gameAuthor||e.gameAuthor,e.namespace=a.namespace||null,e.gamePrice=a.gamePrice||null,e.packPrice=a.packPrice||null}},a=e;exports.default=a;
},{}],"EyR0":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;const e=new function(){this.DEName="Time",this.deltaTime=1,this.missedFrame=0,this.lastCalcul=Date.now(),this.scaleDelta=1,this.currentTime=Date.now(),this.fps=0,this.frameDelay=16,this.stopped=!1,this.timeSinceLastFrame=0,this.timeSinceLastFrameScaled=0,this.update=function(){return!this.stopped&&(this.currentTime=Date.now(),this.timeSinceLastFrame=this.currentTime-this.lastCalcul,!(this.timeSinceLastFrame<this.frameDelay)&&(this.fps=Math.floor(1e3/this.timeSinceLastFrame),this.deltaTime=this.timeSinceLastFrame/this.frameDelay*this.scaleDelta,this.missedFrame=this.deltaTime,this.deltaTime>2&&(this.deltaTime=this.deltaTime%1,this.deltaTime<1&&(this.deltaTime+=1)),this.deltaTime<0&&(this.deltaTime+=1),this.missedFrame=this.missedFrame-this.deltaTime,this.timeSinceLastFrameScaled=(this.currentTime-this.lastCalcul)*this.scaleDelta,this.lastCalcul=this.currentTime,!0))},this.getDelta=function(){return this.deltaTime}};var t,i;function s(){document[t]?e.stopped=!0:(e.lastCalcul=Date.now(),e.stopped=!1)}void 0!==document.hidden?(t="hidden",i="visibilitychange"):void 0!==document.mozHidden?(t="mozHidden",i="mozvisibilitychange"):void 0!==document.msHidden?(t="msHidden",i="msvisibilitychange"):void 0!==document.webkitHidden&&(t="webkitHidden",i="webkitvisibilitychange"),void 0===document.addEventListener||void 0===t||document.addEventListener(i,s,!1);var a=e;exports.default=a;
},{}],"Dg6B":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=i(require("DE.config"));function i(t){return t&&t.__esModule?t:{default:t}}var e=new function(){this.DEName="Notifications",this.notifs={},this.notifsHeight=0,this.selector="notifsContainer",this.container=null,this.templateName="notificationTemplate",this.template=null,this.defaultExpirationTime=3500,this.closeAnimationDuration=400,this.notificationClassName="notification",this.inited=!1;var i=this;this.init=function(t){t=t||{},this.selector=t.selector||this.selector,this.templateName=t.templateName||this.templateName,this.closeAnimationDuration=t.closeAnimationDuration||this.closeAnimationDuration,this.notificationClassName=t.notificationClassName||this.notificationClassName,this.container=t.container||document.getElementById(this.selector);var i=document.getElementById(this.templateName);if(this.template=t.template||i?i.innerHTML:null,!this.container||!this.template)throw new Error("Can't init Notifications without a container element AND a template -- container selector:: "+this.selector+" -- templateName:: "+this.templateName);this.inited=!0,this.notifsHeight=this.container.offsetHeight||0,i&&document.body.removeChild(i)},this.create=function(e,n){if(t.default.notifications.enable)if(this.inited){this.notifsHeight=this.notifsHeight<0?0:this.notifsHeight;var s=n||this.defaultExpirationTime,o=Date.now()+"-"+(100*Math.random()>>0),a=document.createElement("div");a.className=this.notificationClassName,a.innerHTML=this.template,a.getElementsByClassName("content")[0].innerHTML=e,a.id="notif"+o,this.container.appendChild(a),this.notifs[o]=a,this.notifs[o].getElementsByClassName("notifClose")[0].addEventListener("click",function(){i.remove(o)});var h=this.notifs[o].offsetHeight;this.notifsHeight+=h,this.container.style.height=this.notifsHeight+"px",this.bindRemove(o,s)}else console.log("Notifications: You didn't called Notifications.init")},this.bindRemove=function(t,e){e=e||this.defaultExpirationTime,setTimeout(function(){i.triggerRemove(t)},e)},this.triggerRemove=function(t){this.notifs[t]&&(this.notifs[t].className=this.notifs[t].className+" disapear",setTimeout(function(){i.remove(t)},this.closeAnimationDuration))},this.remove=function(t){var i=this.notifs[t].offsetHeight;this.notifsHeight-=i,this.container.style.height=this.notifsHeight+"px",this.container.removeChild(this.notifs[t]),delete this.notifs[t]}},n=e;exports.default=n;
},{"DE.config":"E/5E"}],"owzW":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var i=n(require("DE.config")),t=n(require("DE.Events"));function n(i){return i&&i.__esModule?i:{default:i}}var a=new function(){this.DEName="Localization",this.currentLang="en",this.dictionary={en:{}},this.avalaibleLang=new Array,this.init=function(i){for(var t in i)this.dictionary[t]=i[t],this.avalaibleLang.push(t)},this.addDictionary=function(i){for(var t in i)for(var n in this.dictionary[t]||(this.dictionary[t]={}),i[t])this.dictionary[t][n]=i[t][n]},this.get=function(i){return this.dictionary[this.currentLang][i]||this.dictionary.en&&this.dictionary.en[i]||null},this.forceGet=function(i,t){return-1==this.avalaibleLang.indexOf(i)?null:this.dictionary[i][t]||null},this.getLang=function(i){var n=this.currentLang;for(var a in this.currentLang=this.avalaibleLang[0],i||(i=navigator.language||navigator.browserLanguage||navigator.userLanguage||"en"),this.dictionary)if(i.match(a)){this.currentLang=a;break}this.dictionary[this.currentLang]||(this.dictionary[this.currentLang]={}),n!==this.currentLang&&t.default.trigger("lang-changed",this.currentLang)}},r=a;exports.default=r;
},{"DE.config":"E/5E","DE.Events":"2BhM"}],"5b0m":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=a(require("DE.config")),t=a(require("DE.Events")),n=a(require("DE.Notifications")),i=a(require("DE.Localization"));function a(e){return e&&e.__esModule?e:{default:e}}var o=function(e){return{firefox:function(){return!!/Firefox[\/\s](\d+\.\d+)/.test(navigator.userAgent)&&new Number(RegExp.$1)},chrome:function(){var e=navigator.userAgent.toLowerCase();return e.indexOf("chrome")>-1&&-1==e.indexOf("android")&&-1==e.indexOf("iphone")&&-1==e.indexOf("ipad")&&-1==e.indexOf("ipod")}}[e]()},s={},d=new function(){this.DEName="gamepad";var a={},d={},r={};this.gamepadsInfos={};var u={},f=function(){},c=function(){};this.init=function(){o("chrome")||navigator.getGamepads?(e.default.notifications.gamepadEnable&&n.default.create(i.default.get("gamepadAvalaible")||e.default.notifications.gamepadAvalaible),f=function(e){for(var t=navigator.getGamepads&&navigator.getGamepads()||navigator.webkitGetGamepads&&navigator.webkitGetGamepads()||[],n=0;n<t.length;++n)t[n]?u[n]&&u[n]==t[n].timestamp||(u[n]=t[n].timestamp,this.handleGamepad(t[n],e)):this.disconnectGamepad(n)},c=function(e){for(var t=navigator.getGamepads&&navigator.getGamepads()||navigator.webkitGetGamepads&&navigator.webkitGetGamepads()||[],n=0;n<t.length;++n){var i=t[n];i?this.handleGamepad(i,e):this.disconnectGamepad(n)}},this.updateByChange()):o("firefox")};var h=function(e){var t=["leftThumbX","leftThumbY","rightThumbX","rightThumbY"],n=["a","b","y","x","left_shoulder","right_shoulder","LeftTrigger","RightTrigger","back","start","left_thumb","right_thumb","dpad_up","dpad_down","dpad_left","dpad_right"],i={};i.index=e.controllerId,i.timestamp=e.packetNumber,i.buttons=[],i.axes=[];for(var a=0;a<n.length;++a){"LeftTrigger"!=(o=n[a])&&"RightTrigger"!=o?e[o]?i.buttons[a]=1:i.buttons[a]=0:i.buttons[a]=e[o]/255}for(a=0;a<t.length;++a){var o=t[a];i.axes[a]=e[o]/32767,"leftThumbY"!=o&&"rightThumbY"!=o||(i.axes[a]*=-1)}return i};function l(e){n.default.create(i.default.get("onGamepadConnect")||"Gamepad "+(e.gamepad.index+1)+" connected"),r[e.gamepad.index]=e.gamepad,r.length||(r.length=0),r.length++}this.windowsControllers=[],this.adaptToWindowsLib=function(e,t){var n=t||4;e||console.error("gamepad::adaptToWindowsLib - windowsGamepadLib is null");for(var i=0;i<n;++i)this.windowsControllers[i]=new e.Controller(i);f=function(e){for(var t=this.windowsControllers,n=0;n<t.length;++n){var i=t[n];if(i){if((i=i.getState()).connected){if(!u[n]||u[n]!=i.packetNumber){u[n]=i.packetNumber;var a=h(i);this.handleGamepad(a,e)}continue}this.disconnectGamepad(n)}}},c=function(e){for(var t=this.windowsControllers,n=0;n<t.length;++n){var i=t[n];if(i){if((i=i.getState()).connected){var a=h(i);this.handleGamepad(a,e);continue}this.disconnectGamepad(n)}}},this.update=c,this.handleDown=g},window.addEventListener("MozGamepadConnected",l,!1),window.addEventListener("gamepadconnected",l,!1),this.connectToGameLoop=function(e){e.addNonStop("gamepad",this)},this.handleGamepad=function(o,r){var u=o.index;this.gamepadsInfos[u]=o,a[u]&&this.handleListeners(u,o.buttons,a,r),d[u]&&this.handleListeners(u,o.axes,d,r),s[u]||(console.log("Gamepad connected "+u,2),e.default.notifications.gamepadChange&&(this.isGamepadConnected=!0,n.default.create(i.default.get("onGamepadConnect")||"Gamepad "+(u+1)+" connected")),t.default.emit("connectGamepad",u),s[u]=!0)},this.disconnectGamepad=function(a){if(u[a]=null,r[a]=null,this.gamepadsInfos[a]=null,s[a]){if(console.log("Disconnect gamepad "+a,2),e.default.notifications.gamepadChange){for(var o in this.isGamepadConnected=!1,s)if(s[o]){this.isGamepadConnected=!0;break}n.default.create(i.default.get("onGamepadDisconnect")||"Gamepad "+(a+1)+" disconnected")}t.default.emit("disconnectGamepad",a),s[a]=!1,--r.length}},this.getGamepadsLength=function(){var e=0;for(var t in s)s[t]&&++e;return e};var p=function(e){return e<-.5&&e<0||e>.5&&e>0},m=function(e,t,n,i){p(i)&&!n.active&&(t.emit("down"+e,i,e),n.active=!0)},g=function(e,t,n,i,a){if(p(i)){if(!n.active)return t.emit("down"+e,i,e),n.active=!0,n.timesTamp=a,n.diffTime=500,!0;if(n.noRate)return!0;if(n.timesTamp+n.diffTime<a)return t.emit("down"+e,i,e),n.timesTamp=a,n.diffTime=150,!0}return!1};this.handleListeners=function(e,t,n,i){for(var a in n[e].listeners){var o=o=void 0!==t[a].value?t[a].value:t[a],s=n[e],d=n[e].listeners[a];(o<.3&&o>0||o>-.3&&o<0)&&(o=0),o!=d.force&&s.emit("move"+a,o,a),d.force=o,this.handleDown(a,s,d,o,i)||!p(o)&&d.active&&(s.emit("up"+a,o,a),d.active=!1,d.count=0)}},this.handleGamepadAxes=function(e){for(var t in d[e.index].listeners)e.axes[t]>0&&!d[e.index].listeners[t]&&(a[e.index].trigger("down"+t),a[e.index].listeners[t]=!0)};var v=function(e,n,i,a,o,s){!function(e,n,i){e[n]||(e[n]=new t.default.Emitter,e[n].listeners={}),void 0===e[n].listeners[i]&&(e[n].listeners[i]={active:!0,force:0})}(e,n,i),e[n].on(a+i,o),e[n].listeners[i].noRate=s},w=function(e,t,n,i){e[t]&&e[t].del(i+n)},x=function(e,t,n){e[t]&&(w(e,t,n,"down"),w(e,t,n,"up"),w(e,t,n,"move"),delete e[t].listeners[n])},G=function(e,t){if(e[t])for(var n in e[t].listeners)x(e,t,n)},b=function(e){if(e)for(var t in e)G(e,t)};this.onBtnDown=function(e,t,n,i){v(a,e,t,"down",n,i)},this.onBtnMove=function(e,t,n,i){v(a,e,t,"move",n,i)},this.onBtnUp=function(e,t,n,i){v(a,e,t,"up",n,i)},this.delBtnDown=function(e,t){w(a,e,t,"down")},this.delBtnMove=function(e,t){w(a,e,t,"move")},this.delBtnUp=function(e,t){w(a,e,t,"up")},this.delBtn=function(e,t){x(a,e,t)},this.delBtnsPad=function(e){G(a,e)},this.delBtnsListeners=function(){b(a)},this.onAxeStart=function(e,t,n,i){v(d,e,t,"down",n,i)},this.onAxeMove=function(e,t,n,i){v(d,e,t,"move",n,i)},this.onAxeStop=function(e,t,n,i){v(d,e,t,"up",n,i)},this.delAxeStart=function(e,t){w(d,e,t,"down")},this.delAxeMove=function(e,t){w(d,e,t,"move")},this.delAxeStop=function(e,t){w(d,e,t,"up")},this.delAxe=function(e,t){x(d,e,t)},this.delAxesPad=function(e){G(d,e)},this.delAxesListeners=function(){b(d)},this.delListeners=function(){b(d),b(a)},this.plugBtnToInput=function(e,t,n,i){this.onBtnDown(n,i,function(n){e.usedInputs[t].isDown=!0,e.trigger("keyDown",t,n)},!1),this.onBtnUp(n,i,function(n){e.usedInputs[t].isDown=!1,e.trigger("keyUp",t,n)},!1),this.onBtnMove(n,i,function(n){e.trigger("btnMoved",t,n)},!1)},this.plugAxeToInput=function(e,t,n,i){this.onAxeStart(n,i,function(n){e.trigger("axeStart",t,n)},!1),this.onAxeStop(n,i,function(n){e.trigger("axeStop",t,n)},!1),this.onAxeMove(n,i,function(n){e.trigger("axeMoved",t,n)},!1)},this.updateByRate=function(){this.update=c,this.handleDown=g},this.updateByChange=function(){this.update=f,this.handleDown=m},this.update=function(){}},r=d;exports.default=r;
},{"DE.config":"E/5E","DE.Events":"2BhM","DE.Notifications":"Dg6B","DE.Localization":"owzW"}],"cTHV":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=o(require("PIXI")),e=i(require("DE.Time"));function i(t){return t&&t.__esModule?t:{default:t}}function o(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,i):{};o.get||o.set?Object.defineProperty(e,i,o):e[i]=t[i]}return e.default=t,e}const r=Math.PI;function n(t,e,i){this._x=t||0,this._y=e||0,this._rotation=0,this._cosAngle=1,this._sinAngle=0,this.gameObject=i}console.log(t),n.prototype=Object.create(t.Container.prototype),n.prototype.constructor=n,Object.defineProperties(n.prototype,{x:{get:function(){return this.gameObject?this.gameObject.x:this._x},set:function(t){this._x=t,this.gameObject&&(this.gameObject.x=t)}},y:{get:function(){return this.gameObject?this.gameObject.y:this._y},set:function(t){this._y=t,this.gameObject&&(this.gameObject.y=t)}},rotation:{get:function(){return this.gameObject?this.gameObject.rotation:this._rotation},set:function(t){this._updateRotation(t),this.gameObject&&(this.gameObject.rotation=t)}}}),n.prototype._updateRotation=function(t){this._rotation=t,0==this._rotation?(this._sinAngle=0,this._cosAngle=1):(this._sinAngle=Math.sin(this._rotation),this._cosAngle=Math.cos(this._rotation))},n.prototype.translate=function(t,i,o){if(!t.x&&0!=t.x||!t.y&&0!=t.y)throw new Error(t+" is not a Vector2");return o||(t={x:t.x*e.default.deltaTime,y:t.y*e.default.deltaTime}),i?(this.x+=t.x,this.y+=t.y):0==this.rotation?(this.x+=t.x,this.y+=t.y):(this.x-=-t.x*this._cosAngle+t.y*this._sinAngle,this.y-=-t.x*this._sinAngle+t.y*-this._cosAngle),this},n.prototype.setRotation=function(t){return this.rotation=t%(2*r),this.rotation},n.prototype.rotate=function(t,i){return i?this.setRotation(this.rotation+t):this.setRotation(this.rotation+t*e.default.deltaTime)},n.prototype.multiply=function(t){return this.x*=t,this.y*=t,this},n.prototype.normalize=function(){if(0==this.x&&0==this.y)return this.x=0,this.y=0,this;var t=Math.sqrt(this.x*this.x+this.y*this.y);return this.x=this.x/t,this.y=this.y/t,this},n.prototype.getVector=function(t,e){if(!t.x&&0!=t.x||!t.y&&0!=t.y||!e.x&&0!=e.x||!e.y&&0!=e.y)throw new Error("Vector2 need two Vector2 to return getVector");return this.x=e.x-t.x,this.y=e.y-t.y,this},n.prototype.getVectorAngle=function(t){return(Math.atan2(t.y,t.x)+.5*r)%(2*r)},n.prototype.dotProduct=function(t,e){if(!t.x||!t.y)throw new Error("Vector2 need two Vector2 to return dotProduct");return e&&e.x?t.x*e.x+t.y*e.y:this.x*t.x+this.y*t.y},n.prototype.getAngle=function(t,e){return e||(e=this,this.gameObject&&(e=this.gameObject.toGlobal({x:0,y:0}))),Math.atan2(t.y-e.y,t.x-e.x)},n.prototype.wtfAngle=function(t,e){var i=null;i=e&&e.x?new n(e.x,e.y).normalize():new n(this.x,this.y).normalize();var o=new n(t.x,t.y).normalize();return Math.acos(o.dotProduct(i))},n.prototype.getDistance=function(t){var e=this.x-t.x;e*=e;var i=this.y-t.y;return i*=i,Math.sqrt(e+i)>>0},n.prototype.isInRangeFrom=function(t,e){e*=e;var i=this.x-t.x;i*=i;var o=this.y-t.y;return i+(o*=o)<=e},n.prototype.getHarmonics=function(t){return t?{cos:Math.cos(t+this.rotation),sin:Math.sin(t+this.rotation)}:{cos:this._cosAngle,sin:this._sinAngle}},n.prototype.setPosition=function(t,e){return void 0!==t.x||void 0!==t.y?(this.x=null!=t.x?t.x:this.x,this.y=null!=t.y?t.y:this.y,this):(this.x=null!=t?t:this.x,this.y=null!=e?e:this.y,this)},n.prototype.set=n.prototype.setPosition,n.prototype.clone=function(){return new n(this.x,this.y,this._z)},n.prototype.getAnglesDifference=function(t,e){void 0===e&&(e=this.rotation);var i=t-e;return i<-r?i+=2*r:i>r&&(i-=2*r),Math.abs(i)},n.prototype.DEName="Vector2";var s=n;exports.default=s;
},{"PIXI":"ix37","DE.Time":"EyR0"}],"6Ntx":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var a=e(require("DE.Time"));function e(a){return a&&a.__esModule?a:{default:a}}var t=["setScale","applyFade","fade","fadeIn","fateTo","fadeOut","scaleTo","applyScale"],s=["fadeData","scaleData"];const l=new function(){this.fadeData={from:1,to:0,duration:1e3,done:!0},this.scaleData={fromx:1,tox:0,fromy:1,toy:0,duration:1e3,done:!0},this.inherits=function(a){for(var e=0;e<t.length;++e)a.prototype[t[e]]=this[t[e]]};var a=["scale","scaleX","scaleY","opacity"];this.instantiate=function(e,t){if(t)for(var l in e.alpha=t.alpha||t.opacity||1,e.scale.x=t.scaleX||(t.scale?t.scale.x||t.scale:1),e.scale.y=t.scaleY||(t.scale?t.scale.y||t.scale:1),delete t.scale,delete t.scaleY,delete t.scaleX,delete t.opacity,t)-1===a.indexOf(l)&&(e[l]=t[l]);for(l=0;l<s.length;++l)e[s[l]]=this[s[l]]}};l.setScale=function(a,e){void 0===e?a.x?this.scale.set(a.x,a.y):this.scale.set(a,a):this.scale.set(a,e)},l.applyFade=function(){this.fadeData.done||(this.fadeData.stepVal=a.default.timeSinceLastFrame/this.fadeData.oDuration*this.fadeData.dir*this.fadeData.fadeScale,this.alpha+=this.fadeData.stepVal*a.default.scaleDelta,this.fadeData.duration-=a.default.timeSinceLastFrame*a.default.scaleDelta,(this.fadeData.dir<0&&this.alpha<=this.fadeData.to||this.fadeData.dir>0&&this.alpha>=this.fadeData.to||this.alpha<0||this.alpha>1)&&(this.alpha=this.fadeData.to),this.fadeData.duration<=0&&(this.fadeData.done=!0,1!=this.alpha&&0!=this.alpha||0==this.alpha&&(this.sleep=!0),this.gameObject&&this.gameObject.trigger("fadeEnd",this)))},l.fade=function(a,e,t){this.sleep=!1;var s={from:a||1,to:null!=e?e:0,duration:t||500,oDuration:t||500,fadeScale:Math.abs(a-e),done:!1};s.dir=s.from>e?-1:1,this.alpha=a,this.fadeData=s},l.fadeTo=function(a,e){this.sleep=!1,this.fade(this.alpha,a,e)},l.fadeOut=function(a,e){this.sleep=!1,e&&(this.alpha=1),this.fade(this.alpha,0,a)},l.fadeIn=function(a,e){this.sleep=!1,e&&(this.alpha=0),this.fade(this.alpha,1,a)},l.scaleTo=function(a,e){var t={x:isNaN(a)?a.x:a,y:isNaN(a)?a.y:a};this.scaleData={valX:-(this.scale.x-(void 0!==t.x?t.x:this.scale.x)),valY:-(this.scale.y-(void 0!==t.y?t.y:this.scale.y)),dirX:this.scale.x>t.x?1:-1,dirY:this.scale.y>t.y?1:-1,duration:e||500,oDuration:e||500,done:!1,stepValX:0,stepValY:0,destX:t.x,destY:t.y,scaleX:this.scale.x,scaleY:this.scale.y},this.scaleData.leftX=this.scaleData.valX,this.scaleData.leftY=this.scaleData.valY},l.applyScale=function(){if(!this.scaleData.done){var e=this.scaleData;0!=e.valX&&(e.stepValX=a.default.timeSinceLastFrame/e.oDuration*e.valX*a.default.scaleDelta,e.leftX-=e.stepValX,e.scaleX+=e.stepValX),0!=e.valY&&(e.stepValY=a.default.timeSinceLastFrame/e.oDuration*e.valY*a.default.scaleDelta,e.leftY-=e.stepValY,e.scaleY+=e.stepValY),e.duration-=a.default.timeSinceLastFrame*a.default.scaleDelta,e.dirX<0&&e.leftX<0?e.scaleX+=e.leftX:e.dirX>0&&e.leftX>0&&(e.scaleX-=e.leftX),e.dirY<0&&e.leftY<0?e.scaleY+=e.leftY:e.dirY>0&&e.leftY>0&&(e.scaleY-=e.leftY),this.setScale(e.scaleX,e.scaleY),e.duration<=0&&(this.scaleData.done=!0,this.setScale(e.destX,e.destY),this.gameObject&&this.gameObject.trigger("scaleEnd",this))}},l.DEName="BaseRenderer";var i=l;exports.default=i;
},{"DE.Time":"EyR0"}],"FxaU":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=o(require("PIXI")),t=r(require("DE.BaseRenderer"));function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};o.get||o.set?Object.defineProperty(t,r,o):t[r]=e[r]}return t.default=e,t}function i(r,o){if(e.Graphics.call(this),r)for(var i=0;i<r.length;++i)for(var a in r[i])r[i][a]instanceof Array?this[a].apply(this,r[i][a]):this[a].call(this,r[i][a]);t.default.instantiate(this,o)}i.prototype=Object.create(e.Graphics.prototype),i.prototype.constructor=i,t.default.inherits(i),i.prototype.DEName="GraphicRenderer";var a=i;exports.default=a;
},{"PIXI":"ix37","DE.BaseRenderer":"6Ntx"}],"Jx6P":[function(require,module,exports) {
"use strict";function e(){this.gameObjects.sort(function(e,t){return t.z==e.z?t.zindex==e.zindex?t.y==e.y?e.x-t.x:e.y-t.y:e.zindex-t.zindex:t.z-e.z}),this.children&&this.children.sort(function(e,t){return t.z==e.z?t.zindex==e.zindex?t.y==e.y?e.x-t.x:e.y-t.y:e.zindex-t.zindex:t.z-e.z}),this._shouldSortChildren=!1,this.emit("gameObjects-sorted")}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=e;
},{}],"UTKB":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=a(require("PIXI")),t=n(require("DE.Vector2")),r=n(require("DE.config")),i=n(require("DE.GraphicRenderer")),s=n(require("DE.sortGameObjects")),o=n(require("DE.Events"));function n(e){return e&&e.__esModule?e:{default:e}}function a(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};i.get||i.set?Object.defineProperty(t,r,i):t[r]=e[r]}return t.default=e,t}function h(i){var s=i||{};if(e.Container.call(this),this.position.set(s.x||0,s.y||0),delete s.x,delete s.y,this.vector2=new t.default(this.x,this.y,this),this.updatable=!0,this._hasMoved=!0,this.id=void 0!==s.id?s.id:999999999*Math.random()>>0,this.name=s.name,this.tag=s.tag,this.target=void 0,this.flag=void 0,this.gameObjects=[],this._automatisms={},this._isGameObject=!0,this._shouldSortChildren=!1,this._zindex=0,this._z=0,this._zscale=1,this.worldScale=new e.Point(1,1),this.savedScale=new e.Point(s.scale&&s.scale.x?s.scale.x:s.scale||s.scaleX||1,s.scale&&s.scale.y?s.scale.y:s.scale||s.scaleY||1),delete s.scale,this.setScale(this.savedScale.x,this.savedScale.y),this._killArgs={},this._fadeData={from:1,to:0,duration:1e3,done:!0},this._scaleData={fromx:1,tox:0,fromy:1,toy:0,duration:1e3,done:!0},this._shakeData={done:!0,prevX:0,prevY:0},this._moveData={done:!0},this.renderers=[],s.renderer&&(this.addRenderer(s.renderer),delete s.renderer),s.renderers){for(var n=0;n<s.renderers.length;++n)this.addRenderer(s.renderers[n]);delete s.renderers}for(var n in this.renderer=this.renderers[0],r.default.DEBUG&&this._createDebugRenderer(),s.gameObjects&&(this.add(s.gameObjects),delete s.gameObjects),s)"automatisms"!==n&&(this[n]=s[n]);if(s.automatisms){for(n=0;n<s.automatisms.length;++n)this.addAutomatism.apply(this,s.automatisms[n]);delete s.automatisms}o.default.on("change-debug",function(e,t){e?this._createDebugRenderer():this._destroyDebugRenderer()},this)}h.prototype=Object.create(e.Container.prototype),h.prototype.constructor=h,Object.defineProperties(h.prototype,{enable:{get:function(){return this.updatable||this.visible},set:function(e){this.updatable=e,this.visible=e}},rotation:{get:function(){return this.transform.rotation},set:function(e){this.vector2._updateRotation(e),this.transform.rotation=e}},zindex:{get:function(){return this._zindex},set:function(e){this._zindex=e,this.parent&&(this.parent._shouldSortChildren=!0)}},z:{get:function(){return this._z},set:function(e){this._z=e,this._hasMoved=!0,this._updateZScale(),this.parent&&(this.parent._shouldSortChildren=!0)}}}),h.prototype._createDebugRenderer=function(){this._debugRenderer||(this._debugRenderer=new i.default([{beginFill:"0x00FF00"},{drawRect:[0,0,20,2]},{beginFill:"0xFF0000"},{drawRect:[0,0,2,20]}]),this.addChild(this._debugRenderer))},h.prototype._destroyDebugRenderer=function(){this._debugRenderer&&(this.removeChild(this._debugRenderer),this._debugRenderer.destroy({children:!0,texture:!0,baseTexture:!0}),this._debugRenderer=null)},h.prototype.translate=function(e,t,r){return this.vector2.translate(e,t,r),this},h.prototype.translateX=function(e,t,r){return this.translate({x:e,y:0},t,r),this},h.prototype.translateY=function(e,t,r){return this.translate({x:0,y:e},t,r),this},h.prototype.rotate=function(e,t){return this.vector2.rotate(e,t),this},h.prototype.lookAt=function(e,t){var r=e.toGlobal?e.toGlobal({x:0,y:0}):e;return this.rotation=this.vector2.getAngle(r)+(t||0),this},h.prototype.addRenderer=function(e){return e.anchor&&!e.preventCenter&&e.anchor.set(.5,.5),this.renderers.push(e),this.addChild(e),this},h.prototype.add=function(){for(var e=Array.prototype.slice.call(arguments),t=0;t<e.length;++t)if(void 0!==e[t].length)for(var r=0,i=e[t].length||0;r<i;++r)this.addOne(e[t][r]);else this.addOne(e[t]);return this},h.prototype.addOne=function(e){if(!(e instanceof h))throw new Error("DREAM_ENGINE.GameObject.add: this not inherit from GameObject, do it well please");return e.parent&&e.parent.remove(e),this.gameObjects.push(e),e._updateWorldScale(),this.addChild(e),r.default.DEBUG&&!e._debugRenderer&&e._createDebugRenderer(),this._shouldSortChildren=!0,this},h.prototype.remove=function(e){if(isNaN(e)){var t=this.gameObjects.indexOf(e);return-1!==t&&(this.gameObjects.splice(t,1),this.removeChild(e)),e}var r=this.gameObjects[e];return this.gameObjects.splice(e,1),this.removeChild(r),r},h.prototype.delete=function(e){return this.remove(e).killMePlease(),this},h.prototype.askToKill=function(e){return this.target=null,this._killArgs=e||{},this._killArgs.preventEvents||this._killArgs.preventKillEvent||(this.onKill&&this.onKill(),this.emit("kill",this)),this.enable=!1,this.flag="delete",this.parent&&this.parent.enable||this.killMePlease(),this},h.prototype.onKill=void 0,h.prototype.onKilled=void 0,h.prototype.killMePlease=function(){this._killArgs.preventEvents||this._killArgs.preventKilledEvent||(this.onKilled&&this.onKilled(),this.emit("killed",this)),this.target=void 0,this.enable=!1,this.flag=void 0,this.children||(this.children=[]);for(var e=0;e<this.gameObjects.length;++e)this.remove(e).killMePlease();this.destroy({children:!0,baseTexture:this.destroyTextureOnKill,texture:this.destroyTextureOnKill})},h.prototype.getGlobalRotation=function(){return this.parent.getGlobalRotation?this.rotation+this.parent.getGlobalRotation():this.rotation},h.prototype.sortGameObjects=s.default,h.prototype.trigger=h.prototype.emit,h.prototype.getPos=h.prototype.getGlobalPosition,h.prototype.getWorldPos=function(){if(this.parent&&this.parent.getWorldPos){var e=this.parent.getWorldPos(),t=this.parent.vector2.getHarmonics();return{x:-(-this.position.x*t.cos+this.position.y*t.sin)+e.x,y:-(-this.position.x*t.sin+this.position.y*-t.cos)+e.y,z:this.z+e.z}}return{x:this.x,y:this.y,z:this.z}},h.prototype.DEName="GameObject";var l=h;exports.default=l;
},{"PIXI":"ix37","DE.Vector2":"cTHV","DE.config":"E/5E","DE.GraphicRenderer":"FxaU","DE.sortGameObjects":"Jx6P","DE.Events":"2BhM"}],"ECaa":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=i(require("PIXI")),t=o(require("DE.BaseRenderer")),r=o(require("DE.Localization"));function o(e){return e&&e.__esModule?e:{default:e}}function i(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};o.get||o.set?Object.defineProperty(t,r,o):t[r]=e[r]}return t.default=e,t}function a(o,i){var a=i||{};if(a.localizationKey){var l=a.localizationKey.split(".");this.localizationKey=l[0],this.subKey=l[1]||void 0,o=r.default.get(this.localizationKey),this.subKey&&(o=o[this.subKey]),delete a.localizationKey}e.Text.call(this,o,new e.TextStyle(a.textStyle)),delete a.textStyle,t.default.instantiate(this,a)}a.prototype=Object.create(e.Text.prototype),a.prototype.constructor=a,t.default.inherits(a),a.prototype.DEName="TextRenderer";var l=a;exports.default=l;
},{"PIXI":"ix37","DE.BaseRenderer":"6Ntx","DE.Localization":"owzW"}],"ypt5":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=i(require("PIXI")),o=a(require("DE.config")),t=a(require("DE.Events")),r=a(require("DE.about"));function a(e){return e&&e.__esModule?e:{default:e}}function i(e){if(e&&e.__esModule)return e;var o={};if(null!=e)for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,t):{};r.get||r.set?Object.defineProperty(o,t,r):o[t]=e[t]}return o.default=e,o}var n=null,s=0,l=new function(){this.DEName="ImageManager",this.pathPrefix="",this.imageNotRatio=!1,this.ratioToConception=1,this.baseUrl="img/",this.spritesData={},this._waitingPools=[],this._waitingSolo=[],this._nLoads=0,this.init=function(t,a){this.baseUrl=t,e.loader.baseUrl=t,this.pools=a;var i,n,s=o.default.USE_APPCACHE?"":"?v"+r.default.gameVersion;for(var l in a){i=a[l],this.pools[l]=[];for(var g=0;g<i.length;++g)"string"==typeof(n=i[g])?this.pools[l].push(n):n.length&&n.push?(n[2]||(n[2]={}),this.spritesData[n[0]]={totalLine:n[2].totalLine||1,totalFrame:n[2].totalFrame||1,startFrame:n[2].startFrame||0,endFrame:n[2].endFrame||n[2].totalFrame||1,interval:n[2].interval||16,reversed:n[2].reversed||!1,loop:void 0===n[2].loop||n[2].loop,animated:void 0===n[2].animated||n[2].animated,pingPongMode:void 0!==n[2].pingPongMode&&n[2].pingPongMode},this.pools[l].push({name:n[0],url:n[1]+s})):console.error("File format not recognized, make sure you follow the guidelines",n)}},this.loadPool=function(o,t,r){var a=this;0!=this.pools[o].length?e.loader.loading?this._waitingPools.push({name:o,customEventName:t}):(r&&(e.loader.reset(),this._nLoads=0),e.loader.add(this.pools[o]).on("progress",function(e,r){a._onProgress(o,e,t)}).load(function(){e.loader.off("progress",function(e,r){a._onProgress(o,e,t)}),a._onComplete(o,t)})):setTimeout(function(){a._onComplete(o,t)},500)},this._onProgress=function(e,o,r){t.default.trigger("ImageManager-pool-progress",e,(o.progress-100*this._nLoads).toString().slice(0,5)),t.default.trigger("ImageManager-pool-"+e+"-progress",e,o.progress.toString().slice(0,5)),t.default.trigger("ImageManager-"+r+"-progress",e,o.progress.toString().slice(0,5))},this._onComplete=function(e,o){if(console.log("ImageManager load complete: ",e),t.default.trigger("ImageManager-pool-complete",e),t.default.trigger("ImageManager-pool-"+e+"-loaded"),t.default.trigger("ImageManager-"+o+"-loaded"),++this._nLoads,this._waitingPools.length){var r=this._waitingPools.shift();this.loadPool(r.name,r.customEventName)}else if(this._waitingSolo.length){var a=this._waitingSolo.shift();this.load(a)}},this.load=function(t){var r=t;if("string"==typeof t||t.length&&t.push&&(t[2]||(t[2]={}),this.spritesData[t[0]]={totalLine:t[2].totalLine||1,totalFrame:t[2].totalFrame||1,startFrame:t[2].startFrame||0,endFrame:t[2].endFrame||t[2].totalFrame||1,interval:t[2].interval||16,reversed:t[2].reversed||!1,loop:void 0===t[2].loop||t[2].loop,animated:void 0===t[2].animated||t[2].animated,pingPongMode:void 0!==t[2].pingPongMode&&t[2].pingPongMode},r={name:t[0],url:t[1]+"?v"+o.default.VERSION}),e.loader.loading)this._waitingSolo.push(r);else{var a=this;e.loader.add(r).load(function(){e.loader.off("progress",function(e,o){a._onProgress(poolName,e,customEventName)}),a._onComplete(null,r.name?r.name:r)})}},this.unloadPool=function(o){for(var t,r=this.pools[o],a=0,i=r.length;a<i;++a)t=r[a],e.utils.TextureCache[e.loader.resources[t.name||t].url].destroy(!0),delete e.loader.resources[r[a].name||r[a]]}},g=l;exports.default=g;
},{"PIXI":"ix37","DE.config":"E/5E","DE.Events":"2BhM","DE.about":"RgmU"}],"FFpr":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=h(require("PIXI")),e=a(require("DE.ImageManager")),i=a(require("DE.config")),r=a(require("DE.Time")),s=a(require("DE.Events")),n=a(require("DE.BaseRenderer"));function a(t){return t&&t.__esModule?t:{default:t}}function h(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var r=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,i):{};r.get||r.set?Object.defineProperty(e,i,r):e[i]=t[i]}return e.default=t,e}function l(i){if(this.spriteName=i.spriteName||void 0,delete i.spriteName,!this.spriteName)throw new Error("SpriteRenderer :: No spriteName defined -- declaration canceled");if(!e.default.spritesData[this.spriteName])throw new Error("SpriteRenderer :: Can't find image "+this.spriteName+" in ImageManager, is the image a sheet ? Or maybe not loaded ?");t.Sprite.call(this,t.utils.TextureCache[t.loader.resources[this.spriteName].url]),n.default.instantiate(this,i),this.startFrame=0,this.endFrame=0,this._currentFrame=0,this.startLine=0,this._currentLine=0,this.totalFrame=0,this.totalLine=0,this.interval=0,this._nextAnim=0,this.animated=0,this.isPaused=0,this.reversed=0,this.isOver=0,this.loop=0,this._tint=i.tint||void 0,this.pingPongMode=!1,this.onAnimEnd=function(){},this.changeSprite(this.spriteName,i)}l.prototype=Object.create(t.Sprite.prototype),l.prototype.constructor=l,l.prototype.DEName="SpriteRenderer",n.default.inherits(l),Object.defineProperties(l.prototype,{currentFrame:{get:function(){return this._currentFrame},set:function(t){t+1>=this.endFrame?this._currentFrame=this.endFrame-1:t<this.startFrame?this._currentFrame=this.startFrame:this._currentFrame=t,this._originalTexture.frame.x=this._currentFrame*this.fw,this._originalTexture._updateUvs(),this.normalTexture&&(this.normalTexture.frame.x=this._currentFrame*this.fw,this.normalTexture._updateUvs())}},currentLine:{get:function(){return this._currentLine},set:function(t){t+1>=this.endLine?this._currentLine=this.endLine-1:t<this.startLine?this._currentLine=this.startLine:this._currentLine=t,this._originalTexture.frame.y=this._currentLine*this.fh,this._originalTexture._updateUvs(),this.normalTexture&&(this.normalTexture.frame.y=this._currentLine*this.fh,this.normalTexture._updateUvs())}}}),l.prototype.setTint=function(t){return this.tint=t||16777215,this._originalTexture&&(this._originalTexture.tint=this.tint),this},l.prototype.setHue=function(e,i){return this.hueFilter?this.hueFilter.hue(0,0):this.hueFilter=new t.filters.ColorMatrixFilter,this.hueFilter.hue(e,i),this.filters?this.filters.length>=1&&-1==this.filters.indexOf(this.hueFilter)&&(this.filters=this.filters.concat([this.hueFilter])):this.filters=[this.hueFilter],this},l.prototype.setSaturation=function(e,i){return this.saturationFilter?this.saturationFilter.desaturate():this.saturationFilter=new t.filters.ColorMatrixFilter,this.saturationFilter.saturate(e,i),this.filters?this.filters.length>=1&&-1==this.filters.indexOf(this.saturationFilter)&&(this.filters=this.filters.concat([this.saturationFilter])):this.filters=[this.saturationFilter],this},l.prototype.setBrightness=function(e,i){return this.brightnessFilter?this.brightnessFilter.brightness(0,0):this.brightnessFilter=new t.filters.ColorMatrixFilter,this.brightnessFilter.brightness(e,i),this.filters?this.filters.length>=1&&-1==this.filters.indexOf(this.brightnessFilter)&&(this.filters=this.filters.concat([this.brightnessFilter])):this.filters=[this.brightnessFilter],this},l.prototype.setContrast=function(e,i){return this.contrastFilter?this.contrastFilter.contrast(0,0):this.contrastFilter=new t.filters.ColorMatrixFilter,this.contrastFilter.contrast(e,i),this.filters?this.filters.length>=1&&-1==this.filters.indexOf(this.contrastFilter)&&(this.filters=this.filters.concat([this.contrastFilter])):this.filters=[this.contrastFilter],this},l.prototype.setGreyscale=function(e,i){return this.grayscaleFilter?this.grayscaleFilter.greyscale(0,0):this.grayscaleFilter=new t.filters.ColorMatrixFilter,this.grayscaleFilter.greyscale(e,i),this.filters?this.filters.length>=1&&-1==this.filters.indexOf(this.grayscaleFilter)&&(this.filters=this.filters.concat([this.grayscaleFilter])):this.filters=[this.grayscaleFilter],this},l.prototype.setBlackAndWhite=function(e){return this.blackAndWhiteFilter?this.blackAndWhiteFilter.blackAndWhite(0):this.blackAndWhiteFilter=new t.filters.ColorMatrixFilter,this.blackAndWhiteFilter.blackAndWhite(e),this.filters?this.filters.length>=1&&-1==this.filters.indexOf(this.blackAndWhiteFilter)&&(this.filters=this.filters.concat([this.blackAndWhiteFilter])):this.filters=[this.blackAndWhiteFilter],this},l.prototype.update=function(){!this.animated||this.isPaused||this.isOver||(this._nextAnim-=r.default.timeSinceLastFrameScaled,this._nextAnim>0||(this._nextAnim=this.interval+this._nextAnim,this.lastAnim=Date.now(),this._currentFrame+=this.reversed?-1:1,this._currentFrame>=this.endFrame?this.loop?(this._currentFrame=this.startFrame,this.pingPongMode&&(this.reversed=!0,this._currentFrame=this.endFrame-1)):(this._currentFrame=this.endFrame-1,this.isOver=!0,this.onAnimEnd()):this._currentFrame<this.startFrame&&(this.loop?(this._currentFrame=this.endFrame-1,this.pingPongMode&&(this.reversed=!1,this._currentFrame=this.startFrame)):(this._currentFrame=this.startFrame,this.isOver=!0,this.onAnimEnd())),this._originalTexture.frame.x=this._currentFrame*this.fw,this._originalTexture.frame.y=this._currentLine*this.fh,this._originalTexture._updateUvs(),this.normalTexture&&(this.normalTexture.frame.x=this._currentFrame*this.fw,this.normalTexture.frame.y=this._currentLine*this.fh,this.normalTexture._updateUvs())))},l.prototype.setFrame=function(t){return this.currentFrame=t,this},l.prototype.setLine=function(t){return this.currentLine=t,this},l.prototype.restartAnim=function(){return this.isOver=!1,this.reversed?this.currentFrame=this.endFrame-1:this.currentFrame=this.startFrame,this.lastAnim=r.default.currentTime,this},l.prototype.setPause=function(t){return this.isPaused=t,t||this.animated||(this.animated=!0,this.lastAnim=Date.now()),this},l.prototype.setEndFrame=function(t){return this.totalFrame<=t?this.endFrame=this.totalFrame-1:this.endFrame=t,this},l.prototype.setInterval=function(t){return this.interval=t,this},l.prototype.setLoop=function(t){return this.loop=t,this},l.prototype.changeSprite=function(i,r){if(r=r||{},this.spriteName=i,!this.spriteName)throw new Error("SpriteRenderer :: No spriteName defined -- declaration canceled");var s=e.default.spritesData[this.spriteName];this.startFrame=r.startFrame||s.startFrame||0,this.endFrame=r.endFrame||s.endFrame||s.totalFrame||0,this._currentFrame=this.startFrame||r.currentFrame||0,this._currentLine=r.startLine||0,this.startLine=r.startLine||0,this.totalFrame=s.totalFrame||0,this.totalLine=r.totalLine||s.totalLine||0,this.interval=r.interval||s.interval||0,this.nextAnim=this.interval,this.animated=void 0!==r.animated?r.animated:s.animated||this.animated,this.isPaused=void 0!==r.paused?r.paused:r.isPaused||this.isPaused,this.reversed=null!=r.reversed?r.reversed:s.reversed||this.reversed,this.pingPongMode=void 0!==r.pingPongMode?r.pingPongMode:s.pingPongMode||this.pingPongMode,this.isOver=!1,this.loop=null!=r.loop?r.loop:s.loop||this.loop,this.frames=[],this.baseTexture=t.utils.TextureCache[t.loader.resources[this.spriteName].url],r.normal&&(this.normalName=r.normal,this.baseNormalTexture=t.utils.TextureCache[t.loader.resources[r.normal].url]),this.fw=this.baseTexture.width/s.totalFrame>>0,this.fh=this.baseTexture.height/s.totalLine>>0;var n=new t.Rectangle(this.currentFrame*this.fw,this.currentLine*this.fh,this.fw,this.fh);if(this.texture=new t.Texture(this.baseTexture,n,n.clone(),null,null),this._originalTexture=this.texture,this.baseNormalTexture){var a=new t.Rectangle(this.currentFrame*this.fw,this.currentLine*this.fh,this.fw,this.fh);this.normalTexture=new t.Texture(this.baseNormalTexture,a,a.clone(),null,null)}r.tint&&this.setTint(r.tint),r.filters&&(this.filters=r.filters),r.hue&&(r.hue.length?this.setHue(r.hue[0],r.hue[1]):r.hue.value?this.setHue(r.hue.value,r.hue.multiply):this.setHue(r.hue)),r.saturation&&(r.saturation.length?this.setSaturation(r.saturation[0],r.saturation[1]):r.saturation.value?this.setSaturation(r.saturation.value,r.saturation.multiply):this.setSaturation(r.saturation)),r.brightness&&(r.brightness.length?this.setBrightness(r.brightness[0],r.brightness[1]):r.brightness.value?this.setBrightness(r.brightness.value,r.brightness.multiply):this.setBrightness(r.brightness)),r.contrast&&(r.contrast.length?this.setContrast(r.contrast[0],r.contrast[1]):r.contrast.value?this.setContrast(r.contrast.value,r.contrast.multiply):this.setContrast(r.contrast)),r.blackAndWhite&&this.setBlackAndWhite(r.blackAndWhite),r.greyscale&&(r.greyscale.length?this.setGreyscale(r.greyscale[0],r.greyscale[1]):r.greyscale.value?this.setGreyscale(r.greyscale.value,r.greyscale.multiply):this.setGreyscale(r.greyscale))};var o=l;exports.default=o;
},{"PIXI":"ix37","DE.ImageManager":"ypt5","DE.config":"E/5E","DE.Time":"EyR0","DE.Events":"2BhM","DE.BaseRenderer":"6Ntx"}],"hX9h":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=s(require("DE.Time")),t=s(require("DE.gamepad")),r=s(require("DE.GameObject")),a=l(require("PIXI")),i=s(require("DE.Events")),d=s(require("DE.TextRenderer")),n=s(require("DE.SpriteRenderer")),o=s(require("DE.Localization"));function l(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var a=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};a.get||a.set?Object.defineProperty(t,r,a):t[r]=e[r]}return t.default=e,t}function s(e){return e&&e.__esModule?e:{default:e}}const u=new function(){this.DEName="MainLoop",this.scenes=[],this.renders=[],this.additionalModules={},this.createLoader=function(){this.loader=new r.default({renderer:new d.default("Loading...",{textStyle:{fill:"white",fontSize:35,fontFamily:"Snippet, Monaco, monospace",strokeThickness:1,align:"center"}})});var e=0;this.loader.animateLoader=function(){for(var t=".",r=0;r<3;++r)t+=e<r?" ":".";++e>3&&(e=0),this.renderer.text="Loading"+t},this.loader.addAutomatism("animateLoader","animateLoader",{interval:500}),this.loader.renderer.y+=150,i.default.on("ImageManager-pool-progress",function(e,t){u.loader.removeAutomatism("animateLoader"),u.loader.renderer.text=e+": "+t+"%"}),i.default.on("ImageManager-pool-complete",function(e){u.loader.removeAutomatism("animateLoader"),u.loader.renderer.text="100%"})},this.updateLoaderImage=function(e){this.loader.addRenderer(new n.default({spriteName:e[0],scale:e[2].scale}))},this.loop=function(){if(u.launched){if(requestAnimationFrame(u.loop),e.default.update())if(u.displayLoader)for(var r,a=0;r=u.renders[a];a++)u.loader.x=.5*r.pixiRenderer.width,u.loader.y=.5*r.pixiRenderer.height,u.loader.update(e.default.currentTime),r.directRender(u.loader);else{for(a=0;i=u.renders[a];++a)i.render();for(t.default.update(e.default.currentTime);e.default.missedFrame>=0;){for(var i in u.additionalModules)u.additionalModules[i].update(e.default.currentTime-e.default.timeSinceLastFrameScaled+16*e.default.deltaTime);var d;for(a=0;d=u.scenes[a];++a)d.enable&&d.update(e.default.currentTime-e.default.timeSinceLastFrameScaled+16*e.default.deltaTime);e.default.timeSinceLastFrameScaled-=16*e.default.deltaTime*e.default.scaleDelta,e.default.timeSinceLastFrame-=16*e.default.deltaTime,e.default.deltaTime=1,--e.default.missedFrame}}}else console.warn("MainLoop has stopped")},this.addScene=function(e){this.scenes.push(e)},this.addRender=function(e){this.renders.push(e)}};function f(e){for(var t,r=0;t=e.gameObjects[r];++r)f(t);if(e.renderers)for(var a,i=0;a=e.renderers[i];++i)a.localizationKey&&(a.subKey?a.text=o.default.get(a.localizationKey)[a.subKey]:a.text=o.default.get(a.localizationKey))}i.default.on("lang-changed",function(){for(var e,t=0;e=u.scenes[t];++t)for(var r,a=0;r=e.gameObjects[a];++a)f(r)},u);var c=u;exports.default=c;
},{"DE.Time":"EyR0","DE.gamepad":"5b0m","DE.GameObject":"UTKB","PIXI":"ix37","DE.Events":"2BhM","DE.TextRenderer":"ECaa","DE.SpriteRenderer":"FFpr","DE.Localization":"owzW"}],"SdZV":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=window,n=window.document.localStorage||window.localStorage,r=document;function t(e,n){return null!=n&&n.constructor===e}function i(e){return"'"+String(e).replace(/\\/g,"\\\\").replace(/'/g,"\\'").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t")+"'"}function o(e){var n=r.createElement("_");return n.innerHTML=e,n.firstChild}function u(e){if(e.outerHTML)return e.outerHTML;var n=r.createElement("_");return n.appendChild(e.cloneNode(!0)),n.innerHTML}function a(n){var o,a,c=[],f=-1;if(t(String,n))return i(n);if(null==n||t(Boolean,n)||t(Number,n)||t(RegExp,n)||t(Function,n)&&!/^function[^\{]+\{\s*\[native code\]/.test(String(n)))return String(n);if(t(Date,n))return"new Date("+n.getTime()+")";if(t(Array,n)){for(o=n.length;++f<o;)c.push(arguments.callee(n[f]));return"["+c+"]"}if(t(Object,n)){for(a in n)c.push(i(a)+":"+arguments.callee(n[a]));return"{"+c+"}"}if(n===e)return"window";for(a in e)if(n===e[a])return"window."+a;for(a in r)if(n===r[a])return"document."+a;return n.nodeName?"h("+i(u(n))+")":void 0}function c(n){return new Function("var a=arguments;h=a[0];return "+n).apply(e,[o])}function f(){for(var e,n={},r=arguments,i=r.length,o=-1;++o<i;)if(t(Object,r[o]))for(e in r[o])n[e]=t(Object,n[e])&&t(Object,r[o][e])?r.callee(n[e],r[o][e]):r[o][e];return n}function l(e,r,i){var o,u=n[e];if(i)if(o=c(u),t(Array,o))r=o.concat(r);else if(t(Boolean,o))r=o&&!!r;else if(t(Date,o)&&!isNaN(1*r))r=new Date(o.getTime()+1*r);else if(t(Function,o)&&t(Function,r))r=new Function("return("+String(o)+").apply(this, arguments)&&("+String(r)+").apply(this, arguments)");else if(t(Number,o)&&!isNaN(1*r))r=o+1*r;else if(t(Object,o)&&t(Object,r))r=f(o,r);else if(t(RegExp,o)&&t(RegExp,r)){var l=/^\/([\W\w]*)\/([a-z]*?)$/,g=String(o).match(l),p=String(r).match(l);r=new RegExp(g[1]+p[1],g[2]+p[2])}else{if(!t(String,o))return 2;r=o+String(r)}return u===(r=a(r))?2:(n[e]=r)&&1}var g={has:function(){for(var e,r=[].concat.apply([],arguments),t=-1;e=r[++t];)if(void 0===n[e])return!1;return!0},get:function(e){var r,t=[].concat.apply([],arguments),i=-1,o={};if(1===t.length)return c(n[e]);for(;r=t[++i];)o[r]=c(n[r]);return o},getAll:function(){var e,r={};for(e in n)r[e]=n[e];return r},set:function(e,n){var r,i,o=[].concat.apply([],arguments),u=-1,a=2;if(t(String,e))return l(e,n);for(;r=o[++u];)for(i in r)a=Math.min(a,l(i,r[i]));return a},add:function(e,n){var r,i,o=[].concat.apply([],arguments),u=-1,a=2;if(t(String,e))return l(e,n,!0);for(;r=o[++u];)for(i in r)a=Math.min(a,l(i,r[i],!0));return a},cut:function(e){for(var r,t=[].concat.apply([],arguments),i=-1;r=t[++i];)delete n[r];return!0},cutAll:function(){for(var e in n)delete n[e];return!0}},p=g;exports.default=p;
},{}],"IhKf":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=i(require("stash")),s=i(require("DE.config")),t=i(require("DE.about")),a=i(require("DE.Events"));function i(e){return e&&e.__esModule?e:{default:e}}var o=new function(){this.DEName="Save",this.saveModel={},this.namespace="My-Dreamengine-Game",this.useLocalStorage=!0,this.init=function(s,a){for(var i in(s=s||{}).settings||(s.settings={}),this.namespace=t.default.namespace,this.version=t.default.version,a&&(this.version=e.default.get(this.namespace)),this.saveModel=s,this.saveModel)this.saveModel[i]=e.default.get(this.namespace+this.version+i)||this.saveModel[i];this.loadSave(this.saveModel,!0)},this.updateSave=function(){if(this.useLocalStorage){for(var s in this.saveModel)e.default.cut(this.namespace+this.version+s);for(var s in this.version=t.default.version,e.default.set(this.namespace,this.version),this.saveModel)e.default.set(this.namespace+this.version+s,this.saveModel[s])}},this.loadSave=function(e,s){for(var t in this.useLocalStorage=s,e)this.saveModel[t]||!1===this.saveModel[t]||0===this.saveModel[t]||(a.default.trigger("Save-attr-not-found",t),console.log("Seems your game version is to old, a new one will be created",t)),this.saveModel[t]=e[t];this.updateSave(),a.default.trigger("Save-loaded",this.saveModel)},this.get=function(s){return s in this.saveModel||(this.saveModel[s]=e.default.get(this.namespace+this.version+s)||this.saveModel[s]),this.saveModel[s]},this.save=function(s,t){var i=s.split("."),o=i[0];o in this.saveModel||console.log("%c[WARN] You save a key "+o+" that doesn't exist in your saveModel ! It's saved but the engine wont be able to get it later",0,"color:orange"),2==i.length?(void 0===t&&(t=this.get(o)[1]),this.saveModel[o][i[1]]=t,this.useLocalStorage&&e.default.set(this.namespace+this.version+o,this.saveModel[o])):1==i.length&&(void 0===t&&(t=this.get(o)),this.saveModel[o]=t,this.useLocalStorage&&e.default.set(this.namespace+this.version+o,t)),a.default.trigger("Save-save",this.saveModel)},this.saveAll=function(){if(this.useLocalStorage)for(var s in this.saveModel)e.default.set(this.namespace+this.version+s,this.saveModel[s])},a.default.on("unload-game",this.saveAll,this),this.saveAchievements=function(s){this.useLocalStorage&&e.default.set(this.namespace+"achievements",s)},this.loadAchievements=function(){return e.default.get(this.namespace+"achievements")||{}}},n=o;exports.default=n;
},{"stash":"SdZV","DE.config":"E/5E","DE.about":"RgmU","DE.Events":"2BhM"}],"Fibq":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=i(require("DE.config")),t=i(require("DE.Events")),n=i(require("DE.gamepad")),s=i(require("DE.Localization")),u=i(require("DE.Time"));function i(e){return e&&e.__esModule?e:{default:e}}var r={en:{"leave-page":"By leaving the page you'll lost any progression unsaved."},fr:{"leave-page":"En quittant la page vous allez perdre toute progression non sauvegardé."}},o=new function(){this.DEName="Inputs",this.isListening=!1,this.usedInputs={},this.keyLocked=!1,this.dbInputs={KEYBOARD:{up:38,down:40,left:37,right:39,space:32,shift:16,caps:20,tab:9,ctrl:17,0:48,1:49,2:50,3:51,4:52,5:53,6:54,7:55,8:56,9:57,"°":219,"=":187,"²":222,d:68,q:81,z:90,s:83,a:65,e:69,r:82,t:84,y:89,u:85,i:73,o:79,p:80,f:70,g:71,h:72,j:74,k:75,l:76,m:77,w:87,x:88,c:67,v:86,b:66,n:78,enter:13,return:8,"PAD+":107,"PAD-":109,"PAD*":106,"PAD/":111,PAD0:96,PAD1:97,PAD2:98,PAD3:99,PAD4:100,PAD5:101,PAD6:102,PAD7:103,PAD8:104,PAD9:105,F5:116,F11:122,F12:123,escape:27},GAMEPADBUTTONS:{A:0,B:1,Y:3,X:2,"D-Up":12,"D-Right":15,"D-Left":14,"D-Bot":13,select:8,start:9,RTS:7,RBS:5,LTS:6,LBS:4,power:16},GAMEPADAXES:{LHorizontal:0,LVertical:1,RHorizontal:2,RVertical:3}},this.debugKeys=[123],this.ignoreKeys=[116,122,123],this.queue={keyDown:{},keyUp:{},btnMoved:{},axeMoved:{},axeStart:{},axeStop:{}},this.init=function(e){var t={};for(var s in e){t[s]={},t[s].inputs=new Array;for(var u,i=0;u=e[s].keycodes[i];++i){var r,o="K"==u[0]||"k"==u[0]?"KEYBOARD":"MOUSE",a=u.split("."),d=0;"G"==a[0][0]?(a[0][1]&&(d=parseInt(a[0][1])),o="A"==a[1]?"GAMEPADAXES":"GAMEPADBUTTONS",r=a[2]):r=u.slice(2,u.length),void 0!==this.dbInputs[o][r]?("GAMEPADBUTTONS"==o?n.default.plugBtnToInput(this,s,d,this.dbInputs[o][r]):"GAMEPADAXES"==o&&n.default.plugAxeToInput(this,s,d,this.dbInputs[o][r]),t[s].inputs.push({code:this.dbInputs[o][r],type:o})):console.log("%cWARN: Inputs: An input couldn't be found in the database, did you respect the caseSensitive ?:"+o+"."+r+"\n Ignoring it and continue...","color:red")}t[s].interval=e[s].interval||0,t[s].lastCall=Date.now(),t[s].actions={},t[s].isDown=!1,t[s].isLongPress=e[s].isLongPress||!1,t[s].stayOn=e[s].stayOn||!1,t[s].numberCall=0,t[s].numberPress=0,t[s].stayOn&&(t[s].lastCall=Date.now()+t[s].interval),this.queue.keyDown[s]=new Array,this.queue.keyUp[s]=new Array,this.queue.btnMoved[s]=new Array,this.queue.axeMoved[s]=new Array,this.queue.axeStart[s]=new Array,this.queue.axeStop[s]=new Array}this.queue.axeMoved.wheelTop=new Array,this.queue.axeMoved.wheelDown=new Array,this.usedInputs=t,this.toggleListeners()},this.get=function(e){return!!this.usedInputs[e]&&this.usedInputs[e]},this.on=function(e,t,n){if(this.queue[e][t])return this.queue[e][t].push(n),this.queue[e][t].length;console.log("%cWARN: Inputs: Try to bind on a non existent input ::: "+e+" - "+t,"color:red")},this.stopListening=function(e,t,n){if(void 0===n){for(var s=0;s<this.queue[e][t].length;++s)delete this.queue[e][t][s];return this.queue[e][t]=[],this}this.queue[e][t][n]=null},this.trigger=function(e,t,n){if(!o.keyLocked||-1!=e.search("mouse"))for(var s=0;s<o.queue[e][t].length;++s)o.queue[e][t][s]&&o.queue[e][t][s](n)},this.key=function(e){return!o.keyLocked&&(!(!this.usedInputs[e]||!this.usedInputs[e].isDown||this.usedInputs[e].interval&&!(Date.now()-this.usedInputs[e].lastCall>=this.usedInputs[e].interval/u.default.scaleDelta))&&(o.usedInputs[e].stayOn||(o.usedInputs[e].lastCall=Date.now()),++o.usedInputs[e].numberCall,!0))},this.toggleListeners=function(e,t){var n=e||window;this.isListening&&!t?n.removeEventListener?(n.removeEventListener("keydown",o.keyDown,!1),n.removeEventListener("keyup",o.keyUp,!1),n.removeEventListener("keypress",o.keyPress,!1)):n.detachEvent&&(n.detachEvent("onkeydown",o.keyDown),n.detachEvent("onkeyup",o.keyUp),n.detachEvent("onkeypress",o.keyPress)):n.addEventListener?(n.addEventListener("keydown",o.keyDown,!1),n.addEventListener("keyup",o.keyUp,!1),n.addEventListener("keypress",o.keyPress,!1)):n.attachEvent&&(n.attachEvent("onkeydown",o.keyDown),n.attachEvent("onkeyup",o.keyUp),n.attachEvent("onkeypress",o.keyPress))},this.findInputs=function(e,t){var n=[];for(var s in o.usedInputs)for(var u in o.usedInputs[s].inputs){var i=o.usedInputs[s].inputs[u].code,r=o.usedInputs[s].inputs[u].type;i==e&&r==t&&n.push(s)}return n.length>0&&n},this.keyDown=function(n){var s=n||window.event,u=s.which||s.keyCode;if(-1==o.ignoreKeys.indexOf(u)){if(u==o.dbInputs.KEYBOARD.shift?o.isShiftDown=!0:o.isShiftDown&&u==o.dbInputs.KEYBOARD.tab&&t.default.emit("toggle-nebula"),o.keyLocked)return u==o.dbInputs.KEYBOARD.escape&&t.default.emit("close-nebula"),!1;var i=o.findInputs(u,"KEYBOARD");if(!1!==i)for(var r,a=0;r=i[a];++a)!o.usedInputs[r].isDown&&Date.now()-o.usedInputs[r].lastCall>=o.usedInputs[r].interval&&(o.usedInputs[r].isLongPress&&!o.usedInputs[r].stayOn&&(o.usedInputs[r].lastCall=Date.now()),o.usedInputs[r].isDown||(o.trigger("keyDown",r,1),t.default.emit("keyDown",r)),o.usedInputs[r].isDown=!0),++o.usedInputs[r].numberPress;s.preventDefault()}else if(-1!=o.debugKeys.indexOf(u)){if(e.default.DEBUG)return;s.preventDefault()}},this.keyUp=function(e){var t=e||window.event,n=t.which||t.keyCode;if(n==o.dbInputs.KEYBOARD.shift&&(o.isShiftDown=!1),o.keyLocked)return!1;var s=o.findInputs(n,"KEYBOARD");if(!1!==s)for(var u,i=0;u=s[i];++i)o.usedInputs[u].isDown&&o.trigger("keyUp",u),o.usedInputs[u].stayOn&&(o.usedInputs[u].lastCall=Date.now()),o.usedInputs[u].isDown=!1},this.keyPress=function(e){var t=e||window.event,n=(t.which||t.keyCode,t.keyCode);o.findInputs(n,"KEYBOARD")}};window.onbeforeunload=function(e){if(!window.leavePage)return r[s.default.currentLang]["leave-page"]},window.onunload=function(e){t.default.emit("unload-game")};var a=o;exports.default=a;
},{"DE.config":"E/5E","DE.Events":"2BhM","DE.gamepad":"5b0m","DE.Localization":"owzW","DE.Time":"EyR0"}],"lyKV":[function(require,module,exports) {
var define;
var global = arguments[3];
var e,t=arguments[3];!function(){"use strict";var n=function(){this.init()};n.prototype={init:function(){var e=this||o;return e._counter=1e3,e._html5AudioPool=[],e.html5PoolSize=10,e._codecs={},e._howls=[],e._muted=!1,e._volume=1,e._canPlayEvent="canplaythrough",e._navigator="undefined"!=typeof window&&window.navigator?window.navigator:null,e.masterGain=null,e.noAudio=!1,e.usingWebAudio=!0,e.autoSuspend=!0,e.ctx=null,e.autoUnlock=!0,e._setup(),e},volume:function(e){var t=this||o;if(e=parseFloat(e),t.ctx||l(),void 0!==e&&e>=0&&e<=1){if(t._volume=e,t._muted)return t;t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e,o.ctx.currentTime);for(var n=0;n<t._howls.length;n++)if(!t._howls[n]._webAudio)for(var r=t._howls[n]._getSoundIds(),i=0;i<r.length;i++){var a=t._howls[n]._soundById(r[i]);a&&a._node&&(a._node.volume=a._volume*e)}return t}return t._volume},mute:function(e){var t=this||o;t.ctx||l(),t._muted=e,t.usingWebAudio&&t.masterGain.gain.setValueAtTime(e?0:t._volume,o.ctx.currentTime);for(var n=0;n<t._howls.length;n++)if(!t._howls[n]._webAudio)for(var r=t._howls[n]._getSoundIds(),i=0;i<r.length;i++){var a=t._howls[n]._soundById(r[i]);a&&a._node&&(a._node.muted=!!e||a._muted)}return t},unload:function(){for(var e=this||o,t=e._howls.length-1;t>=0;t--)e._howls[t].unload();return e.usingWebAudio&&e.ctx&&void 0!==e.ctx.close&&(e.ctx.close(),e.ctx=null,l()),e},codecs:function(e){return(this||o)._codecs[e.replace(/^x-/,"")]},_setup:function(){var e=this||o;if(e.state=e.ctx&&e.ctx.state||"suspended",e._autoSuspend(),!e.usingWebAudio)if("undefined"!=typeof Audio)try{void 0===(new Audio).oncanplaythrough&&(e._canPlayEvent="canplay")}catch(t){e.noAudio=!0}else e.noAudio=!0;try{(new Audio).muted&&(e.noAudio=!0)}catch(t){}return e.noAudio||e._setupCodecs(),e},_setupCodecs:function(){var e=this||o,t=null;try{t="undefined"!=typeof Audio?new Audio:null}catch(a){return e}if(!t||"function"!=typeof t.canPlayType)return e;var n=t.canPlayType("audio/mpeg;").replace(/^no$/,""),r=e._navigator&&e._navigator.userAgent.match(/OPR\/([0-6].)/g),i=r&&parseInt(r[0].split("/")[1],10)<33;return e._codecs={mp3:!(i||!n&&!t.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!n,opus:!!t.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!t.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!t.canPlayType('audio/wav; codecs="1"').replace(/^no$/,""),aac:!!t.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!t.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(t.canPlayType("audio/x-m4a;")||t.canPlayType("audio/m4a;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(t.canPlayType("audio/x-mp4;")||t.canPlayType("audio/mp4;")||t.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!!t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,""),webm:!!t.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,""),dolby:!!t.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(t.canPlayType("audio/x-flac;")||t.canPlayType("audio/flac;")).replace(/^no$/,"")},e},_unlockAudio:function(){var e=this||o,t=/iPhone|iPad|iPod|Android|BlackBerry|BB10|Silk|Mobi|Chrome|Safari/i.test(e._navigator&&e._navigator.userAgent);if(!e._audioUnlocked&&e.ctx&&t){e._audioUnlocked=!1,e.autoUnlock=!1,e._mobileUnloaded||44100===e.ctx.sampleRate||(e._mobileUnloaded=!0,e.unload()),e._scratchBuffer=e.ctx.createBuffer(1,1,22050);var n=function(t){for(var o=0;o<e.html5PoolSize;o++){var r=new Audio;r._unlocked=!0,e._releaseHtml5Audio(r)}for(o=0;o<e._howls.length;o++)if(!e._howls[o]._webAudio)for(var i=e._howls[o]._getSoundIds(),a=0;a<i.length;a++){var s=e._howls[o]._soundById(i[a]);s&&s._node&&!s._node._unlocked&&(s._node._unlocked=!0,s._node.load())}e._autoResume();var u=e.ctx.createBufferSource();u.buffer=e._scratchBuffer,u.connect(e.ctx.destination),void 0===u.start?u.noteOn(0):u.start(0),"function"==typeof e.ctx.resume&&e.ctx.resume(),u.onended=function(){u.disconnect(0),e._audioUnlocked=!0,document.removeEventListener("touchstart",n,!0),document.removeEventListener("touchend",n,!0),document.removeEventListener("click",n,!0);for(var t=0;t<e._howls.length;t++)e._howls[t]._emit("unlock")}};return document.addEventListener("touchstart",n,!0),document.addEventListener("touchend",n,!0),document.addEventListener("click",n,!0),e}},_obtainHtml5Audio:function(){var e=this||o;if(e._html5AudioPool.length)return e._html5AudioPool.pop();var t=(new Audio).play();return t&&"undefined"!=typeof Promise&&(t instanceof Promise||"function"==typeof t.then)&&t.catch(function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")}),new Audio},_releaseHtml5Audio:function(e){var t=this||o;return e._unlocked&&t._html5AudioPool.push(e),t},_autoSuspend:function(){var e=this;if(e.autoSuspend&&e.ctx&&void 0!==e.ctx.suspend&&o.usingWebAudio){for(var t=0;t<e._howls.length;t++)if(e._howls[t]._webAudio)for(var n=0;n<e._howls[t]._sounds.length;n++)if(!e._howls[t]._sounds[n]._paused)return e;return e._suspendTimer&&clearTimeout(e._suspendTimer),e._suspendTimer=setTimeout(function(){e.autoSuspend&&(e._suspendTimer=null,e.state="suspending",e.ctx.suspend().then(function(){e.state="suspended",e._resumeAfterSuspend&&(delete e._resumeAfterSuspend,e._autoResume())}))},3e4),e}},_autoResume:function(){var e=this;if(e.ctx&&void 0!==e.ctx.resume&&o.usingWebAudio)return"running"===e.state&&e._suspendTimer?(clearTimeout(e._suspendTimer),e._suspendTimer=null):"suspended"===e.state?(e.ctx.resume().then(function(){e.state="running";for(var t=0;t<e._howls.length;t++)e._howls[t]._emit("resume")}),e._suspendTimer&&(clearTimeout(e._suspendTimer),e._suspendTimer=null)):"suspending"===e.state&&(e._resumeAfterSuspend=!0),e}};var o=new n,r=function(e){e.src&&0!==e.src.length?this.init(e):console.error("An array of source files must be passed with any new Howl.")};r.prototype={init:function(e){var t=this;return o.ctx||l(),t._autoplay=e.autoplay||!1,t._format="string"!=typeof e.format?e.format:[e.format],t._html5=e.html5||!1,t._muted=e.mute||!1,t._loop=e.loop||!1,t._pool=e.pool||5,t._preload="boolean"!=typeof e.preload||e.preload,t._rate=e.rate||1,t._sprite=e.sprite||{},t._src="string"!=typeof e.src?e.src:[e.src],t._volume=void 0!==e.volume?e.volume:1,t._xhrWithCredentials=e.xhrWithCredentials||!1,t._duration=0,t._state="unloaded",t._sounds=[],t._endTimers={},t._queue=[],t._playLock=!1,t._onend=e.onend?[{fn:e.onend}]:[],t._onfade=e.onfade?[{fn:e.onfade}]:[],t._onload=e.onload?[{fn:e.onload}]:[],t._onloaderror=e.onloaderror?[{fn:e.onloaderror}]:[],t._onplayerror=e.onplayerror?[{fn:e.onplayerror}]:[],t._onpause=e.onpause?[{fn:e.onpause}]:[],t._onplay=e.onplay?[{fn:e.onplay}]:[],t._onstop=e.onstop?[{fn:e.onstop}]:[],t._onmute=e.onmute?[{fn:e.onmute}]:[],t._onvolume=e.onvolume?[{fn:e.onvolume}]:[],t._onrate=e.onrate?[{fn:e.onrate}]:[],t._onseek=e.onseek?[{fn:e.onseek}]:[],t._onunlock=e.onunlock?[{fn:e.onunlock}]:[],t._onresume=[],t._webAudio=o.usingWebAudio&&!t._html5,void 0!==o.ctx&&o.ctx&&o.autoUnlock&&o._unlockAudio(),o._howls.push(t),t._autoplay&&t._queue.push({event:"play",action:function(){t.play()}}),t._preload&&t.load(),t},load:function(){var e=null;if(o.noAudio)this._emit("loaderror",null,"No audio support.");else{"string"==typeof this._src&&(this._src=[this._src]);for(var t=0;t<this._src.length;t++){var n,r;if(this._format&&this._format[t])n=this._format[t];else{if("string"!=typeof(r=this._src[t])){this._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}(n=/^data:audio\/([^;,]+);/i.exec(r))||(n=/\.([^.]+)$/.exec(r.split("?",1)[0])),n&&(n=n[1].toLowerCase())}if(n||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),n&&o.codecs(n)){e=this._src[t];break}}if(e)return this._src=e,this._state="loading","https:"===window.location.protocol&&"http:"===e.slice(0,5)&&(this._html5=!0,this._webAudio=!1),new i(this),this._webAudio&&s(this),this;this._emit("loaderror",null,"No codec support for selected audio sources.")}},play:function(e,t){var n=this,r=null;if("number"==typeof e)r=e,e=null;else{if("string"==typeof e&&"loaded"===n._state&&!n._sprite[e])return null;if(void 0===e&&(e="__default",!n._playLock)){for(var i=0,a=0;a<n._sounds.length;a++)n._sounds[a]._paused&&!n._sounds[a]._ended&&(i++,r=n._sounds[a]._id);1===i?e=null:r=null}}var s=r?n._soundById(r):n._inactiveSound();if(!s)return null;if(r&&!e&&(e=s._sprite||"__default"),"loaded"!==n._state){s._sprite=e,s._ended=!1;var u=s._id;return n._queue.push({event:"play",action:function(){n.play(u)}}),u}if(r&&!s._paused)return t||n._loadQueue("play"),s._id;n._webAudio&&o._autoResume();var d=Math.max(0,s._seek>0?s._seek:n._sprite[e][0]/1e3),_=Math.max(0,(n._sprite[e][0]+n._sprite[e][1])/1e3-d),l=1e3*_/Math.abs(s._rate),c=n._sprite[e][0]/1e3,p=(n._sprite[e][0]+n._sprite[e][1])/1e3,f=!(!s._loop&&!n._sprite[e][2]);s._sprite=e,s._ended=!1;var h=function(){s._paused=!1,s._seek=d,s._start=c,s._stop=p,s._loop=f};if(!(d>=p)){var m=s._node;if(n._webAudio){var v=function(){n._playLock=!1,h(),n._refreshBuffer(s);var e=s._muted||n._muted?0:s._volume;m.gain.setValueAtTime(e,o.ctx.currentTime),s._playStart=o.ctx.currentTime,void 0===m.bufferSource.start?s._loop?m.bufferSource.noteGrainOn(0,d,86400):m.bufferSource.noteGrainOn(0,d,_):s._loop?m.bufferSource.start(0,d,86400):m.bufferSource.start(0,d,_),l!==1/0&&(n._endTimers[s._id]=setTimeout(n._ended.bind(n,s),l)),t||setTimeout(function(){n._emit("play",s._id),n._loadQueue()},0)};"running"===o.state?v():(n._playLock=!0,n.once("resume",v),n._clearTimer(s._id))}else{var y=function(){m.currentTime=d,m.muted=s._muted||n._muted||o._muted||m.muted,m.volume=s._volume*o.volume(),m.playbackRate=s._rate;try{var r=m.play();if(r&&"undefined"!=typeof Promise&&(r instanceof Promise||"function"==typeof r.then)?(n._playLock=!0,h(),r.then(function(){n._playLock=!1,m._unlocked=!0,t||(n._emit("play",s._id),n._loadQueue())}).catch(function(){n._playLock=!1,n._emit("playerror",s._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),s._ended=!0,s._paused=!0})):t||(n._playLock=!1,h(),n._emit("play",s._id),n._loadQueue()),m.playbackRate=s._rate,m.paused)return void n._emit("playerror",s._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");"__default"!==e||s._loop?n._endTimers[s._id]=setTimeout(n._ended.bind(n,s),l):(n._endTimers[s._id]=function(){n._ended(s),m.removeEventListener("ended",n._endTimers[s._id],!1)},m.addEventListener("ended",n._endTimers[s._id],!1))}catch(i){n._emit("playerror",s._id,i)}},A=window&&window.ejecta||!m.readyState&&o._navigator.isCocoonJS;if(m.readyState>=3||A)y();else{n._playLock=!0;var g=function(){y(),m.removeEventListener(o._canPlayEvent,g,!1)};m.addEventListener(o._canPlayEvent,g,!1),n._clearTimer(s._id)}}return s._id}n._ended(s)},pause:function(e){var t=this;if("loaded"!==t._state||t._playLock)return t._queue.push({event:"pause",action:function(){t.pause(e)}}),t;for(var n=t._getSoundIds(e),o=0;o<n.length;o++){t._clearTimer(n[o]);var r=t._soundById(n[o]);if(r&&!r._paused&&(r._seek=t.seek(n[o]),r._rateSeek=0,r._paused=!0,t._stopFade(n[o]),r._node))if(t._webAudio){if(!r._node.bufferSource)continue;void 0===r._node.bufferSource.stop?r._node.bufferSource.noteOff(0):r._node.bufferSource.stop(0),t._cleanBuffer(r._node)}else isNaN(r._node.duration)&&r._node.duration!==1/0||r._node.pause();arguments[1]||t._emit("pause",r?r._id:null)}return t},stop:function(e,t){var n=this;if("loaded"!==n._state||n._playLock)return n._queue.push({event:"stop",action:function(){n.stop(e)}}),n;for(var o=n._getSoundIds(e),r=0;r<o.length;r++){n._clearTimer(o[r]);var i=n._soundById(o[r]);i&&(i._seek=i._start||0,i._rateSeek=0,i._paused=!0,i._ended=!0,n._stopFade(o[r]),i._node&&(n._webAudio?i._node.bufferSource&&(void 0===i._node.bufferSource.stop?i._node.bufferSource.noteOff(0):i._node.bufferSource.stop(0),n._cleanBuffer(i._node)):isNaN(i._node.duration)&&i._node.duration!==1/0||(i._node.currentTime=i._start||0,i._node.pause())),t||n._emit("stop",i._id))}return n},mute:function(e,t){var n=this;if("loaded"!==n._state||n._playLock)return n._queue.push({event:"mute",action:function(){n.mute(e,t)}}),n;if(void 0===t){if("boolean"!=typeof e)return n._muted;n._muted=e}for(var r=n._getSoundIds(t),i=0;i<r.length;i++){var a=n._soundById(r[i]);a&&(a._muted=e,a._interval&&n._stopFade(a._id),n._webAudio&&a._node?a._node.gain.setValueAtTime(e?0:a._volume,o.ctx.currentTime):a._node&&(a._node.muted=!!o._muted||e),n._emit("mute",a._id))}return n},volume:function(){var e,t,n,r=this,i=arguments;if(0===i.length)return r._volume;if(1===i.length||2===i.length&&void 0===i[1]?r._getSoundIds().indexOf(i[0])>=0?t=parseInt(i[0],10):e=parseFloat(i[0]):i.length>=2&&(e=parseFloat(i[0]),t=parseInt(i[1],10)),!(void 0!==e&&e>=0&&e<=1))return(n=t?r._soundById(t):r._sounds[0])?n._volume:0;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"volume",action:function(){r.volume.apply(r,i)}}),r;void 0===t&&(r._volume=e),t=r._getSoundIds(t);for(var a=0;a<t.length;a++)(n=r._soundById(t[a]))&&(n._volume=e,i[2]||r._stopFade(t[a]),r._webAudio&&n._node&&!n._muted?n._node.gain.setValueAtTime(e,o.ctx.currentTime):n._node&&!n._muted&&(n._node.volume=e*o.volume()),r._emit("volume",n._id));return r},fade:function(e,t,n,r){var i=this;if("loaded"!==i._state||i._playLock)return i._queue.push({event:"fade",action:function(){i.fade(e,t,n,r)}}),i;e=parseFloat(e),t=parseFloat(t),n=parseFloat(n),i.volume(e,r);for(var a=i._getSoundIds(r),s=0;s<a.length;s++){var u=i._soundById(a[s]);if(u){if(r||i._stopFade(a[s]),i._webAudio&&!u._muted){var d=o.ctx.currentTime,_=d+n/1e3;u._volume=e,u._node.gain.setValueAtTime(e,d),u._node.gain.linearRampToValueAtTime(t,_)}i._startFadeInterval(u,e,t,n,a[s],void 0===r)}}return i},_startFadeInterval:function(e,t,n,o,r,i){var a=this,s=t,u=n-t,d=Math.abs(u/.01),_=Math.max(4,d>0?o/d:o),l=Date.now();e._fadeTo=n,e._interval=setInterval(function(){var r=(Date.now()-l)/o;l=Date.now(),s+=u*r,s=Math.max(0,s),s=Math.min(1,s),s=Math.round(100*s)/100,a._webAudio?e._volume=s:a.volume(s,e._id,!0),i&&(a._volume=s),(n<t&&s<=n||n>t&&s>=n)&&(clearInterval(e._interval),e._interval=null,e._fadeTo=null,a.volume(n,e._id),a._emit("fade",e._id))},_)},_stopFade:function(e){var t=this._soundById(e);return t&&t._interval&&(this._webAudio&&t._node.gain.cancelScheduledValues(o.ctx.currentTime),clearInterval(t._interval),t._interval=null,this.volume(t._fadeTo,e),t._fadeTo=null,this._emit("fade",e)),this},loop:function(){var e,t,n,o=arguments;if(0===o.length)return this._loop;if(1===o.length){if("boolean"!=typeof o[0])return!!(n=this._soundById(parseInt(o[0],10)))&&n._loop;e=o[0],this._loop=e}else 2===o.length&&(e=o[0],t=parseInt(o[1],10));for(var r=this._getSoundIds(t),i=0;i<r.length;i++)(n=this._soundById(r[i]))&&(n._loop=e,this._webAudio&&n._node&&n._node.bufferSource&&(n._node.bufferSource.loop=e,e&&(n._node.bufferSource.loopStart=n._start||0,n._node.bufferSource.loopEnd=n._stop)));return this},rate:function(){var e,t,n,r=this,i=arguments;if(0===i.length)t=r._sounds[0]._id;else if(1===i.length){r._getSoundIds().indexOf(i[0])>=0?t=parseInt(i[0],10):e=parseFloat(i[0])}else 2===i.length&&(e=parseFloat(i[0]),t=parseInt(i[1],10));if("number"!=typeof e)return(n=r._soundById(t))?n._rate:r._rate;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"rate",action:function(){r.rate.apply(r,i)}}),r;void 0===t&&(r._rate=e),t=r._getSoundIds(t);for(var a=0;a<t.length;a++)if(n=r._soundById(t[a])){r.playing(t[a])&&(n._rateSeek=r.seek(t[a]),n._playStart=r._webAudio?o.ctx.currentTime:n._playStart),n._rate=e,r._webAudio&&n._node&&n._node.bufferSource?n._node.bufferSource.playbackRate.setValueAtTime(e,o.ctx.currentTime):n._node&&(n._node.playbackRate=e);var s=r.seek(t[a]),u=1e3*((r._sprite[n._sprite][0]+r._sprite[n._sprite][1])/1e3-s)/Math.abs(n._rate);!r._endTimers[t[a]]&&n._paused||(r._clearTimer(t[a]),r._endTimers[t[a]]=setTimeout(r._ended.bind(r,n),u)),r._emit("rate",n._id)}return r},seek:function(){var e,t,n=this,r=arguments;if(0===r.length)t=n._sounds[0]._id;else if(1===r.length){n._getSoundIds().indexOf(r[0])>=0?t=parseInt(r[0],10):n._sounds.length&&(t=n._sounds[0]._id,e=parseFloat(r[0]))}else 2===r.length&&(e=parseFloat(r[0]),t=parseInt(r[1],10));if(void 0===t)return n;if("loaded"!==n._state||n._playLock)return n._queue.push({event:"seek",action:function(){n.seek.apply(n,r)}}),n;var i=n._soundById(t);if(i){if(!("number"==typeof e&&e>=0)){if(n._webAudio){var a=n.playing(t)?o.ctx.currentTime-i._playStart:0,s=i._rateSeek?i._rateSeek-i._seek:0;return i._seek+(s+a*Math.abs(i._rate))}return i._node.currentTime}var u=n.playing(t);u&&n.pause(t,!0),i._seek=e,i._ended=!1,n._clearTimer(t),n._webAudio||!i._node||isNaN(i._node.duration)||(i._node.currentTime=e);var d=function(){n._emit("seek",t),u&&n.play(t,!0)};if(u&&!n._webAudio){var _=function(){n._playLock?setTimeout(_,0):d()};setTimeout(_,0)}else d()}return n},playing:function(e){if("number"==typeof e){var t=this._soundById(e);return!!t&&!t._paused}for(var n=0;n<this._sounds.length;n++)if(!this._sounds[n]._paused)return!0;return!1},duration:function(e){var t=this._duration,n=this._soundById(e);return n&&(t=this._sprite[n._sprite][1]/1e3),t},state:function(){return this._state},unload:function(){for(var e=this,t=e._sounds,n=0;n<t.length;n++){if(t[n]._paused||e.stop(t[n]._id),!e._webAudio)/MSIE |Trident\//.test(o._navigator&&o._navigator.userAgent)||(t[n]._node.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"),t[n]._node.removeEventListener("error",t[n]._errorFn,!1),t[n]._node.removeEventListener(o._canPlayEvent,t[n]._loadFn,!1),o._releaseHtml5Audio(t[n]._node);delete t[n]._node,e._clearTimer(t[n]._id)}var r=o._howls.indexOf(e);r>=0&&o._howls.splice(r,1);var i=!0;for(n=0;n<o._howls.length;n++)if(o._howls[n]._src===e._src||e._src.indexOf(o._howls[n]._src)>=0){i=!1;break}return a&&i&&delete a[e._src],o.noAudio=!1,e._state="unloaded",e._sounds=[],e=null,null},on:function(e,t,n,o){var r=this["_on"+e];return"function"==typeof t&&r.push(o?{id:n,fn:t,once:o}:{id:n,fn:t}),this},off:function(e,t,n){var o=this["_on"+e],r=0;if("number"==typeof t&&(n=t,t=null),t||n)for(r=0;r<o.length;r++){var i=n===o[r].id;if(t===o[r].fn&&i||!t&&i){o.splice(r,1);break}}else if(e)this["_on"+e]=[];else{var a=Object.keys(this);for(r=0;r<a.length;r++)0===a[r].indexOf("_on")&&Array.isArray(this[a[r]])&&(this[a[r]]=[])}return this},once:function(e,t,n){return this.on(e,t,n,1),this},_emit:function(e,t,n){for(var o=this["_on"+e],r=o.length-1;r>=0;r--)o[r].id&&o[r].id!==t&&"load"!==e||(setTimeout(function(e){e.call(this,t,n)}.bind(this,o[r].fn),0),o[r].once&&this.off(e,o[r].fn,o[r].id));return this._loadQueue(e),this},_loadQueue:function(e){if(this._queue.length>0){var t=this._queue[0];t.event===e&&(this._queue.shift(),this._loadQueue()),e||t.action()}return this},_ended:function(e){var t=e._sprite;if(!this._webAudio&&e._node&&!e._node.paused&&!e._node.ended&&e._node.currentTime<e._stop)return setTimeout(this._ended.bind(this,e),100),this;var n=!(!e._loop&&!this._sprite[t][2]);if(this._emit("end",e._id),!this._webAudio&&n&&this.stop(e._id,!0).play(e._id),this._webAudio&&n){this._emit("play",e._id),e._seek=e._start||0,e._rateSeek=0,e._playStart=o.ctx.currentTime;var r=1e3*(e._stop-e._start)/Math.abs(e._rate);this._endTimers[e._id]=setTimeout(this._ended.bind(this,e),r)}return this._webAudio&&!n&&(e._paused=!0,e._ended=!0,e._seek=e._start||0,e._rateSeek=0,this._clearTimer(e._id),this._cleanBuffer(e._node),o._autoSuspend()),this._webAudio||n||this.stop(e._id,!0),this},_clearTimer:function(e){if(this._endTimers[e]){if("function"!=typeof this._endTimers[e])clearTimeout(this._endTimers[e]);else{var t=this._soundById(e);t&&t._node&&t._node.removeEventListener("ended",this._endTimers[e],!1)}delete this._endTimers[e]}return this},_soundById:function(e){for(var t=0;t<this._sounds.length;t++)if(e===this._sounds[t]._id)return this._sounds[t];return null},_inactiveSound:function(){this._drain();for(var e=0;e<this._sounds.length;e++)if(this._sounds[e]._ended)return this._sounds[e].reset();return new i(this)},_drain:function(){var e=this._pool,t=0,n=0;if(!(this._sounds.length<e)){for(n=0;n<this._sounds.length;n++)this._sounds[n]._ended&&t++;for(n=this._sounds.length-1;n>=0;n--){if(t<=e)return;this._sounds[n]._ended&&(this._webAudio&&this._sounds[n]._node&&this._sounds[n]._node.disconnect(0),this._sounds.splice(n,1),t--)}}},_getSoundIds:function(e){if(void 0===e){for(var t=[],n=0;n<this._sounds.length;n++)t.push(this._sounds[n]._id);return t}return[e]},_refreshBuffer:function(e){return e._node.bufferSource=o.ctx.createBufferSource(),e._node.bufferSource.buffer=a[this._src],e._panner?e._node.bufferSource.connect(e._panner):e._node.bufferSource.connect(e._node),e._node.bufferSource.loop=e._loop,e._loop&&(e._node.bufferSource.loopStart=e._start||0,e._node.bufferSource.loopEnd=e._stop||0),e._node.bufferSource.playbackRate.setValueAtTime(e._rate,o.ctx.currentTime),this},_cleanBuffer:function(e){var t=o._navigator&&o._navigator.vendor.indexOf("Apple")>=0;if(o._scratchBuffer&&e.bufferSource&&(e.bufferSource.onended=null,e.bufferSource.disconnect(0),t))try{e.bufferSource.buffer=o._scratchBuffer}catch(n){}return e.bufferSource=null,this}};var i=function(e){this._parent=e,this.init()};i.prototype={init:function(){var e=this._parent;return this._muted=e._muted,this._loop=e._loop,this._volume=e._volume,this._rate=e._rate,this._seek=0,this._paused=!0,this._ended=!0,this._sprite="__default",this._id=++o._counter,e._sounds.push(this),this.create(),this},create:function(){var e=this._parent,t=o._muted||this._muted||this._parent._muted?0:this._volume;return e._webAudio?(this._node=void 0===o.ctx.createGain?o.ctx.createGainNode():o.ctx.createGain(),this._node.gain.setValueAtTime(t,o.ctx.currentTime),this._node.paused=!0,this._node.connect(o.masterGain)):(this._node=o._obtainHtml5Audio(),this._errorFn=this._errorListener.bind(this),this._node.addEventListener("error",this._errorFn,!1),this._loadFn=this._loadListener.bind(this),this._node.addEventListener(o._canPlayEvent,this._loadFn,!1),this._node.src=e._src,this._node.preload="auto",this._node.volume=t*o.volume(),this._node.load()),this},reset:function(){var e=this._parent;return this._muted=e._muted,this._loop=e._loop,this._volume=e._volume,this._rate=e._rate,this._seek=0,this._rateSeek=0,this._paused=!0,this._ended=!0,this._sprite="__default",this._id=++o._counter,this},_errorListener:function(){this._parent._emit("loaderror",this._id,this._node.error?this._node.error.code:0),this._node.removeEventListener("error",this._errorFn,!1)},_loadListener:function(){var e=this._parent;e._duration=Math.ceil(10*this._node.duration)/10,0===Object.keys(e._sprite).length&&(e._sprite={__default:[0,1e3*e._duration]}),"loaded"!==e._state&&(e._state="loaded",e._emit("load"),e._loadQueue()),this._node.removeEventListener(o._canPlayEvent,this._loadFn,!1)}};var a={},s=function(e){var t=e._src;if(a[t])return e._duration=a[t].duration,void _(e);if(/^data:[^;]+;base64,/.test(t)){for(var n=atob(t.split(",")[1]),o=new Uint8Array(n.length),r=0;r<n.length;++r)o[r]=n.charCodeAt(r);d(o.buffer,e)}else{var i=new XMLHttpRequest;i.open("GET",t,!0),i.withCredentials=e._xhrWithCredentials,i.responseType="arraybuffer",i.onload=function(){var t=(i.status+"")[0];"0"===t||"2"===t||"3"===t?d(i.response,e):e._emit("loaderror",null,"Failed loading audio file with status: "+i.status+".")},i.onerror=function(){e._webAudio&&(e._html5=!0,e._webAudio=!1,e._sounds=[],delete a[t],e.load())},u(i)}},u=function(e){try{e.send()}catch(t){e.onerror()}},d=function(e,t){var n=function(){t._emit("loaderror",null,"Decoding audio data failed.")},r=function(e){e&&t._sounds.length>0?(a[t._src]=e,_(t,e)):n()};"undefined"!=typeof Promise&&1===o.ctx.decodeAudioData.length?o.ctx.decodeAudioData(e).then(r).catch(n):o.ctx.decodeAudioData(e,r,n)},_=function(e,t){t&&!e._duration&&(e._duration=t.duration),0===Object.keys(e._sprite).length&&(e._sprite={__default:[0,1e3*e._duration]}),"loaded"!==e._state&&(e._state="loaded",e._emit("load"),e._loadQueue())},l=function(){if(o.usingWebAudio){try{"undefined"!=typeof AudioContext?o.ctx=new AudioContext:"undefined"!=typeof webkitAudioContext?o.ctx=new webkitAudioContext:o.usingWebAudio=!1}catch(i){o.usingWebAudio=!1}o.ctx||(o.usingWebAudio=!1);var e=/iP(hone|od|ad)/.test(o._navigator&&o._navigator.platform),t=o._navigator&&o._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),n=t?parseInt(t[1],10):null;if(e&&n&&n<9){var r=/safari/.test(o._navigator&&o._navigator.userAgent.toLowerCase());(o._navigator&&o._navigator.standalone&&!r||o._navigator&&!o._navigator.standalone&&!r)&&(o.usingWebAudio=!1)}o.usingWebAudio&&(o.masterGain=void 0===o.ctx.createGain?o.ctx.createGainNode():o.ctx.createGain(),o.masterGain.gain.setValueAtTime(o._muted?0:1,o.ctx.currentTime),o.masterGain.connect(o.ctx.destination)),o._setup()}};"function"==typeof e&&e.amd&&e([],function(){return{Howler:o,Howl:r}}),"undefined"!=typeof exports&&(exports.Howler=o,exports.Howl=r),"undefined"!=typeof window?(window.HowlerGlobal=n,window.Howler=o,window.Howl=r,window.Sound=i):void 0!==t&&(t.HowlerGlobal=n,t.Howler=o,t.Howl=r,t.Sound=i)}(),function(){"use strict";var e;HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(e){if(!this.ctx||!this.ctx.listener)return this;for(var t=this._howls.length-1;t>=0;t--)this._howls[t].stereo(e);return this},HowlerGlobal.prototype.pos=function(e,t,n){return this.ctx&&this.ctx.listener?(t="number"!=typeof t?this._pos[1]:t,n="number"!=typeof n?this._pos[2]:n,"number"!=typeof e?this._pos:(this._pos=[e,t,n],void 0!==this.ctx.listener.positionX?(this.ctx.listener.positionX.setTargetAtTime(this._pos[0],Howler.ctx.currentTime,.1),this.ctx.listener.positionY.setTargetAtTime(this._pos[1],Howler.ctx.currentTime,.1),this.ctx.listener.positionZ.setTargetAtTime(this._pos[2],Howler.ctx.currentTime,.1)):this.ctx.listener.setPosition(this._pos[0],this._pos[1],this._pos[2]),this)):this},HowlerGlobal.prototype.orientation=function(e,t,n,o,r,i){if(!this.ctx||!this.ctx.listener)return this;var a=this._orientation;return t="number"!=typeof t?a[1]:t,n="number"!=typeof n?a[2]:n,o="number"!=typeof o?a[3]:o,r="number"!=typeof r?a[4]:r,i="number"!=typeof i?a[5]:i,"number"!=typeof e?a:(this._orientation=[e,t,n,o,r,i],void 0!==this.ctx.listener.forwardX?(this.ctx.listener.forwardX.setTargetAtTime(e,Howler.ctx.currentTime,.1),this.ctx.listener.forwardY.setTargetAtTime(t,Howler.ctx.currentTime,.1),this.ctx.listener.forwardZ.setTargetAtTime(n,Howler.ctx.currentTime,.1),this.ctx.listener.upX.setTargetAtTime(e,Howler.ctx.currentTime,.1),this.ctx.listener.upY.setTargetAtTime(t,Howler.ctx.currentTime,.1),this.ctx.listener.upZ.setTargetAtTime(n,Howler.ctx.currentTime,.1)):this.ctx.listener.setOrientation(e,t,n,o,r,i),this)},Howl.prototype.init=(e=Howl.prototype.init,function(t){return this._orientation=t.orientation||[1,0,0],this._stereo=t.stereo||null,this._pos=t.pos||null,this._pannerAttr={coneInnerAngle:void 0!==t.coneInnerAngle?t.coneInnerAngle:360,coneOuterAngle:void 0!==t.coneOuterAngle?t.coneOuterAngle:360,coneOuterGain:void 0!==t.coneOuterGain?t.coneOuterGain:0,distanceModel:void 0!==t.distanceModel?t.distanceModel:"inverse",maxDistance:void 0!==t.maxDistance?t.maxDistance:1e4,panningModel:void 0!==t.panningModel?t.panningModel:"HRTF",refDistance:void 0!==t.refDistance?t.refDistance:1,rolloffFactor:void 0!==t.rolloffFactor?t.rolloffFactor:1},this._onstereo=t.onstereo?[{fn:t.onstereo}]:[],this._onpos=t.onpos?[{fn:t.onpos}]:[],this._onorientation=t.onorientation?[{fn:t.onorientation}]:[],e.call(this,t)}),Howl.prototype.stereo=function(e,n){var o=this;if(!o._webAudio)return o;if("loaded"!==o._state)return o._queue.push({event:"stereo",action:function(){o.stereo(e,n)}}),o;var r=void 0===Howler.ctx.createStereoPanner?"spatial":"stereo";if(void 0===n){if("number"!=typeof e)return o._stereo;o._stereo=e,o._pos=[e,0,0]}for(var i=o._getSoundIds(n),a=0;a<i.length;a++){var s=o._soundById(i[a]);if(s){if("number"!=typeof e)return s._stereo;s._stereo=e,s._pos=[e,0,0],s._node&&(s._pannerAttr.panningModel="equalpower",s._panner&&s._panner.pan||t(s,r),"spatial"===r?void 0!==s._panner.positionX?(s._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),s._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),s._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):s._panner.setPosition(e,0,0):s._panner.pan.setValueAtTime(e,Howler.ctx.currentTime)),o._emit("stereo",s._id)}}return o},Howl.prototype.pos=function(e,n,o,r){var i=this;if(!i._webAudio)return i;if("loaded"!==i._state)return i._queue.push({event:"pos",action:function(){i.pos(e,n,o,r)}}),i;if(n="number"!=typeof n?0:n,o="number"!=typeof o?-.5:o,void 0===r){if("number"!=typeof e)return i._pos;i._pos=[e,n,o]}for(var a=i._getSoundIds(r),s=0;s<a.length;s++){var u=i._soundById(a[s]);if(u){if("number"!=typeof e)return u._pos;u._pos=[e,n,o],u._node&&(u._panner&&!u._panner.pan||t(u,"spatial"),void 0!==u._panner.positionX?(u._panner.positionX.setValueAtTime(e,Howler.ctx.currentTime),u._panner.positionY.setValueAtTime(n,Howler.ctx.currentTime),u._panner.positionZ.setValueAtTime(o,Howler.ctx.currentTime)):u._panner.setPosition(e,n,o)),i._emit("pos",u._id)}}return i},Howl.prototype.orientation=function(e,n,o,r){var i=this;if(!i._webAudio)return i;if("loaded"!==i._state)return i._queue.push({event:"orientation",action:function(){i.orientation(e,n,o,r)}}),i;if(n="number"!=typeof n?i._orientation[1]:n,o="number"!=typeof o?i._orientation[2]:o,void 0===r){if("number"!=typeof e)return i._orientation;i._orientation=[e,n,o]}for(var a=i._getSoundIds(r),s=0;s<a.length;s++){var u=i._soundById(a[s]);if(u){if("number"!=typeof e)return u._orientation;u._orientation=[e,n,o],u._node&&(u._panner||(u._pos||(u._pos=i._pos||[0,0,-.5]),t(u,"spatial")),void 0!==u._panner.orientationX?(u._panner.orientationX.setValueAtTime(e,Howler.ctx.currentTime),u._panner.orientationY.setValueAtTime(n,Howler.ctx.currentTime),u._panner.orientationZ.setValueAtTime(o,Howler.ctx.currentTime)):u._panner.setOrientation(e,n,o)),i._emit("orientation",u._id)}}return i},Howl.prototype.pannerAttr=function(){var e,n,o,r=arguments;if(!this._webAudio)return this;if(0===r.length)return this._pannerAttr;if(1===r.length){if("object"!=typeof r[0])return(o=this._soundById(parseInt(r[0],10)))?o._pannerAttr:this._pannerAttr;e=r[0],void 0===n&&(e.pannerAttr||(e.pannerAttr={coneInnerAngle:e.coneInnerAngle,coneOuterAngle:e.coneOuterAngle,coneOuterGain:e.coneOuterGain,distanceModel:e.distanceModel,maxDistance:e.maxDistance,refDistance:e.refDistance,rolloffFactor:e.rolloffFactor,panningModel:e.panningModel}),this._pannerAttr={coneInnerAngle:void 0!==e.pannerAttr.coneInnerAngle?e.pannerAttr.coneInnerAngle:this._coneInnerAngle,coneOuterAngle:void 0!==e.pannerAttr.coneOuterAngle?e.pannerAttr.coneOuterAngle:this._coneOuterAngle,coneOuterGain:void 0!==e.pannerAttr.coneOuterGain?e.pannerAttr.coneOuterGain:this._coneOuterGain,distanceModel:void 0!==e.pannerAttr.distanceModel?e.pannerAttr.distanceModel:this._distanceModel,maxDistance:void 0!==e.pannerAttr.maxDistance?e.pannerAttr.maxDistance:this._maxDistance,refDistance:void 0!==e.pannerAttr.refDistance?e.pannerAttr.refDistance:this._refDistance,rolloffFactor:void 0!==e.pannerAttr.rolloffFactor?e.pannerAttr.rolloffFactor:this._rolloffFactor,panningModel:void 0!==e.pannerAttr.panningModel?e.pannerAttr.panningModel:this._panningModel})}else 2===r.length&&(e=r[0],n=parseInt(r[1],10));for(var i=this._getSoundIds(n),a=0;a<i.length;a++)if(o=this._soundById(i[a])){var s=o._pannerAttr;s={coneInnerAngle:void 0!==e.coneInnerAngle?e.coneInnerAngle:s.coneInnerAngle,coneOuterAngle:void 0!==e.coneOuterAngle?e.coneOuterAngle:s.coneOuterAngle,coneOuterGain:void 0!==e.coneOuterGain?e.coneOuterGain:s.coneOuterGain,distanceModel:void 0!==e.distanceModel?e.distanceModel:s.distanceModel,maxDistance:void 0!==e.maxDistance?e.maxDistance:s.maxDistance,refDistance:void 0!==e.refDistance?e.refDistance:s.refDistance,rolloffFactor:void 0!==e.rolloffFactor?e.rolloffFactor:s.rolloffFactor,panningModel:void 0!==e.panningModel?e.panningModel:s.panningModel};var u=o._panner;u?(u.coneInnerAngle=s.coneInnerAngle,u.coneOuterAngle=s.coneOuterAngle,u.coneOuterGain=s.coneOuterGain,u.distanceModel=s.distanceModel,u.maxDistance=s.maxDistance,u.refDistance=s.refDistance,u.rolloffFactor=s.rolloffFactor,u.panningModel=s.panningModel):(o._pos||(o._pos=this._pos||[0,0,-.5]),t(o,"spatial"))}return this},Sound.prototype.init=function(e){return function(){var t=this._parent;this._orientation=t._orientation,this._stereo=t._stereo,this._pos=t._pos,this._pannerAttr=t._pannerAttr,e.call(this),this._stereo?t.stereo(this._stereo):this._pos&&t.pos(this._pos[0],this._pos[1],this._pos[2],this._id)}}(Sound.prototype.init),Sound.prototype.reset=function(e){return function(){var t=this._parent;return this._orientation=t._orientation,this._stereo=t._stereo,this._pos=t._pos,this._pannerAttr=t._pannerAttr,this._stereo?t.stereo(this._stereo):this._pos?t.pos(this._pos[0],this._pos[1],this._pos[2],this._id):this._panner&&(this._panner.disconnect(0),this._panner=void 0,t._refreshBuffer(this)),e.call(this)}}(Sound.prototype.reset);var t=function(e,t){"spatial"===(t=t||"spatial")?(e._panner=Howler.ctx.createPanner(),e._panner.coneInnerAngle=e._pannerAttr.coneInnerAngle,e._panner.coneOuterAngle=e._pannerAttr.coneOuterAngle,e._panner.coneOuterGain=e._pannerAttr.coneOuterGain,e._panner.distanceModel=e._pannerAttr.distanceModel,e._panner.maxDistance=e._pannerAttr.maxDistance,e._panner.refDistance=e._pannerAttr.refDistance,e._panner.rolloffFactor=e._pannerAttr.rolloffFactor,e._panner.panningModel=e._pannerAttr.panningModel,void 0!==e._panner.positionX?(e._panner.positionX.setValueAtTime(e._pos[0],Howler.ctx.currentTime),e._panner.positionY.setValueAtTime(e._pos[1],Howler.ctx.currentTime),e._panner.positionZ.setValueAtTime(e._pos[2],Howler.ctx.currentTime)):e._panner.setPosition(e._pos[0],e._pos[1],e._pos[2]),void 0!==e._panner.orientationX?(e._panner.orientationX.setValueAtTime(e._orientation[0],Howler.ctx.currentTime),e._panner.orientationY.setValueAtTime(e._orientation[1],Howler.ctx.currentTime),e._panner.orientationZ.setValueAtTime(e._orientation[2],Howler.ctx.currentTime)):e._panner.setOrientation(e._orientation[0],e._orientation[1],e._orientation[2])):(e._panner=Howler.ctx.createStereoPanner(),e._panner.pan.setValueAtTime(e._stereo,Howler.ctx.currentTime)),e._panner.connect(e._node),e._paused||e._parent.pause(e._id,!0).play(e._id,!0)}}();
},{}],"bkz+":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var s=e(require("DE.config")),t=e(require("howler")),i=e(require("DE.Events")),u=e(require("DE.about"));function e(s){return s&&s.__esModule?s:{default:s}}const o=new function(){this.DEName="Audio",this.howler=t.default,this.volume=.75,this.loadAudios=function(s){for(var i,e,o,h,n=0;i=s[n];++n){h=i[3]||{},o=[];for(var r=0;r<i[2].length;++r)o.push(i[1]+"."+i[2][r]+"?v="+u.default.gameVersion);(e=new t.default.Howl({src:o,autoplay:h.autoplay||!1,loop:h.loop||!1,sprite:h.sprite||{},html5:void 0!==h.html5&&h.html5,preload:void 0===h.preload||h.preload,mute:h.mute||!1,rate:h.rate||1,pool:h.pool||1})).volume(h.volume||h.isMusic?this.music.volume:this.fx.volume),e.name=i[0]||"noname",h.isMusic?this.music.add(e):this.fx.add(e)}this.setVolume(this.volume)},this.mute=function(){return t.default.Howler.mute(!0),this},this.unmute=function(){return t.default.Howler.mute(!1),this},this.toggle=function(){return t.default.Howler.mute(!t.default.Howler._muted),this},this.setVolume=function(s,t,i){return"+"==i?(this.music.setVolume(this.music.volume+s),this.fx.setVolume(this.fx.volume+(t||.75*s))):"-"==i?(this.music.setVolume(this.music.volume-s),this.fx.setVolume(this.fx.volume-(t||.75*s))):(this.music.setVolume(s),this.fx.setVolume(t||.75*s)),this},this.music=new function(){this._musics={},this.volume=.75,this.getAll=function(){return this._musics},this.get=function(s){return this._musics[s]},this.add=function(s){return this._musics[s.name]=s,this},this.play=function(s,t){if(this._musics[s])return 0===this._musics[s]._sounds.length&&this._musics[s].load(),this._musics[s].play(t),this;console.error("Audio.music: not declared: "+s+" - "+t)},this.pause=function(s){if(this._musics[s])return this._musics[s].pause(),this;console.error("Audios.music: not declared: "+s)},this.stop=function(s){if(this._musics[s])return this._musics[s].stop(),this;console.error("Audios.music: not declared: "+s)},this.stopAllAndPlay=function(s,t,i){return this.stopAll(i),s!=i&&this.play(s,t),this},this.stopAll=function(s){for(var t in s||(s=[]),s.push||(s=[s]),this._musics)-1==s.indexOf(t)&&this._musics[t].stop();return this},this.pauseAll=function(s){for(var t in s||(s=[]),s.push||(s=[s]),this._musics)-1==s.indexOf(t)&&this._musics[t].pause();return this},this.pauseAllAndPlay=function(s,t,i){return this.pauseAll(i),s!=i&&this.play(s,t),this},this.mute=function(s){for(var t in this._musics)this._musics[t].mute(s);return this},this.setVolume=function(s,t){for(var i in this.volume=t?this.volume*s:s,this._musics)t?this._musics[i].volume(this._musics[i].volume()*s):this._musics[i].volume(s);return this}},this.fx=new function(){this._fxs={},this.volume=.4,this.get=function(s){return this._fxs[s]},this.add=function(s){return this._fxs[s.name]=s,this},this.play=function(s,t){if(this._fxs[s])return 0===this._fxs[s]._sounds.length&&this._fxs[s].load(),this._fxs[s].play(t),this},this.playRandom=function(s,t){var i;s.push?(i=Math.random()*s.length>>0,this.play(s[i])):(i=Math.random()*t.length>>0,this.play(s,t[i]))},this.stop=function(s){this._fxs[s].stop()},this.mute=function(s){for(var t in this._fxs)this._fxs[t].mute(s);return this},this.setVolume=function(s,t){for(var i in this.volume=t?(this.volume*s*100>>0)/100:s,this._fxs)t?this._fxs[i].volume(this._fxs[i].volume()*s):this._fxs[i].volume(s);return this}}};var h=o;exports.default=h;
},{"DE.config":"E/5E","howler":"lyKV","DE.Events":"2BhM","DE.about":"RgmU"}],"OC5Z":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=m(require("DE.config")),t=m(require("DE.about")),a=m(require("DE.Events")),i=m(require("DE.Audio")),s=m(require("DE.Notifications")),n=m(require("DE.Localization")),c=m(require("DE.Save"));function m(e){return e&&e.__esModule?e:{default:e}}const v={en:"<div class='ingame-achievement'><img src='%path%' alt='%name%' />%name% unlocked</div>",fr:"<div class='ingame-achievement'><img src='%path%' alt='%name%' />%name% débloqué</div>",es:"<div class='ingame-achievement'><img src='%path%' alt='%name%' />%name% desbloqueado</div>",pt:"<div class='ingame-achievement'><img src='%path%' alt='%name%' />%name% desbloqueado</div>",de:"<div class='ingame-achievement'><img src='%path%' alt='%name%' />%name% entriegelt</div>",it:"<div class='ingame-achievement'><img src='%path%' alt='%name%' />%name% sbloccato</div>",ru:"<div class='ingame-achievement'><img src='%path%' alt='%name%' />%name% разблокирован</div>"},r=new function(){this.DEName="Achievements",this.achievements=[],this.userAchievements={},this.achievementsUrl="img/achievements/",this.init=function(e,t){for(var a in v)n.default.dictionary[a]&&(n.default.dictionary[a]["achievement-unlock"]=v[a]);this.achievements=[];var i;for(a=0;i=e[a];++a)this.achievements.push(i);this.userAchievements=t||c.default.loadAchievements()},this.checkEvent=function(e,t){for(var a,i,s=0;a=this.achievements[s];++s)for(var n in i=this.userAchievements[a.namespace],a.objectives)n!=e||i&&(i.complete||i.objectives[n]&&i.objectives[n].complete)||this.updateValue(a,n,t);c.default.saveAchievements(this.userAchievements)},this.isUnlock=function(e){for(var t,a=0;t=this.achievements[a];++a)if(t.namespace==e)return!!this.userAchievements[e]&&this.userAchievements[e].complete},this.updateValue=function(e,t,a){var i=e.objectives[t];this.userAchievements[e.namespace]&&this.userAchievements[e.namespace].objectives||(this.userAchievements[e.namespace]={objectives:{}});var s=this.userAchievements[e.namespace];switch(i.type){case"increment":s.objectives[t]||(s.objectives[t]={value:0}),s.objectives[t].value+=a||1;break;default:s.objectives[t]={value:a}}this.checkUnlock(e)},this.checkUnlock=function(e){var t,a,i=this.userAchievements[e.namespace].objectives,s=e.objectives,n=!0;for(var c in s)if(i[c]){if(!i[c].complete){switch(a=!0,(t=s[c]).type){case"equal":t.target!=i[c].value&&(a=!1);break;case"increment":case">=":t.target>=i[c].value&&(a=!1);break;case"<":t.target<i[c].value&&(a=!1)}a?i[c].complete=!0:n=!1}}else n=!1;n&&this.unlocked(e)},this.unlocked=function(t){this.userAchievements[t.namespace].complete=!0;var a=t.names[n.default.currentLang]||t.names.en||"null",c=this.achievementsUrl+t.namespace+".png",m=(n.default.get("achievement-unlock")||"%name% unlocked").replace(/%name%/gi,a).replace(/%path%/gi,c);s.default.create(m,e.default.notifications.achievementUnlockDuration),i.default.fx.play("achievement-unlocked")},a.default.on("games-datas",this.checkEvent,this)};var h=r;exports.default=h;
},{"DE.config":"E/5E","DE.about":"RgmU","DE.Events":"2BhM","DE.Audio":"bkz+","DE.Notifications":"Dg6B","DE.Localization":"owzW","DE.Save":"IhKf"}],"VbJO":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=d(require("PIXI")),i=s(require("DE.config")),t=s(require("DE.Time")),n=s(require("DE.MainLoop")),r=s(require("DE.Events"));function s(e){return e&&e.__esModule?e:{default:e}}function d(e){if(e&&e.__esModule)return e;var i={};if(null!=e)for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,t):{};n.get||n.set?Object.defineProperty(i,t,n):i[t]=e[t]}return i.default=e,i}function o(i,t){r.default.Emitter.call(this);var n=t||{};this._savedSizes=new e.Point(n.width||100,n.height||100),this._drawRatio=1,this.pixiRenderer=new e.autoDetectRenderer({width:n.width,height:n.height,antialias:n.antialias||!1,transparent:n.transparent||!1,resolution:n.resolution||1,preserveDrawingBuffer:n.preserveDrawingBuffer||!1,backgroundColor:n.backgroundColor||0,clearBeforeRender:n.clearBeforeRender||!0,roundPixels:n.roundPixels||!1,forceFXAA:n.forceFXAA||!1,legacy:n.legacy||!1,powerPreference:n.powerPreference||"",autoResize:!0}),this.mainContainer=new e.Container,this.debugRender=new e.Text("DEBUG Enable \nDeltaTime: 1\nFPS: 60",new e.TextStyle({fill:"white",fontSize:14,fontFamily:'"Lucida Console", Monaco, monospace',strokeThickness:2})),this.debugRender.y=10,this.debugRender.x=10,r.default.on("change-debug",function(e,i){i>0?this.mainContainer.addChild(this.debugRender):this.mainContainer.removeChild(this.debugRender)},this),this.id="render-"+Date.now()+"-"+(Math.random()*Date.now()>>0),this.divId=i||void 0,this.enable=!0,this.frozen=!1,this._resizeMode=t.resizeMode||null,this._resizeMethod=function(){},this._listeningResize=!1,this.isFullscreen=!1}o.prototype=Object.create(r.default.Emitter.prototype),o.prototype.constructor=o,o.prototype.init=function(){if(!this.__inited){if(this.__inited=!0,this.divId){if(this.div=document.getElementById(this.divId),!this.div)throw new Error("Can't found the div by the given id")}else this.div=window.document.body,console.warn("%cWARN: you not specified a DOM Object to append the render to, it will be pushed in the body *hiiik*",1,"color:orange");this.div=document.getElementById(this.divId),this.div.appendChild(this.pixiRenderer.view),this.view=this.pixiRenderer.view,n.default.addRender(this),this.pixiRenderer.view.setAttribute("id",this.id),this._resizeMode&&(this.changeResizeMode(this._resizeMode),this._onResize(),this._bindResizeEvent()),this._qualityRatio=1;var e=this;this.div.addEventListener("fullscreenchange",function(i){e.isFullscreen=document.fullscreenElement},!1),this.div.addEventListener("msfullscreenchange",function(i){e.isFullscreen=document.msFullscreenElement},!1),this.div.addEventListener("mozfullscreenchange",function(i){e.isFullscreen=document.mozFullScreen},!1),this.div.addEventListener("webkitfullscreenchange",function(i){e.isFullscreen=document.webkitIsFullScreen},!1)}},o.prototype.resizeRatio=function(e,i,t){var n=this._savedSizes.x,r=this._savedSizes.y,s=e/n;s*r>i&&(s=i/r);var d=s*n>>0,o=s*r>>0;this.div!=window.document.body&&(this.div.style.width=d+"px",this.div.style.height=o+"px"),this.pixiRenderer.autoResize=!0,this.pixiRenderer.resize(d,o),t&&(this.pixiRenderer.autoResize=!1,this.pixiRenderer.resize(n,r)),this.div.style.marginLeft=(e-d)/2+"px",this.div.style.marginTop=(i-o)/2+"px",this._drawRatio=d/this._savedSizes.x,this.emit("resize",this._drawRatio)},o.prototype.changeResizeMode=function(e){switch(this._resizeMode=e,e){case"stretch-ratio":case"ratio-stretch":this._resizeMethod=function(e,i){this.resizeRatio(e,i,!0)};break;case"stretch":this._resizeMethod=function(e,i){this.pixiRenderer.autoResize=!0,this.pixiRenderer.resize(e,i),this.pixiRenderer.autoResize=!1,this.pixiRenderer.resize(this._savedSizes.x,this._savedSizes.y)};break;case"full":this._resizeMethod=function(e,i){this.pixiRenderer.autoResize=!0,this.pixiRenderer.resize(e,i)};break;case"ratio":this._resizeMethod=function(e,i){this.resizeRatio(e,i,!1)};break;default:this._resizeMethod=function(){}}},o.prototype._onResize=function(){var e=window.innerWidth||document.documentElement.clientWidth,i=window.innerHeight||document.documentElement.clientHeight,t=window.getComputedStyle(this.div.parentElement,null).getPropertyValue("height");if(null!=this.div.parentElement&&t&&i<document.body.clientHeight){var n=this.div.parentElement.innerWidth||this.div.parentElement.clientWidth,r=this.div.parentElement.innerHeight||this.div.parentElement.clientHeight;r<i&&(i=r),n<e&&(e=n)}if(!this._resizeMethod)throw"Render.js : _onResize need a _resizeMethod, maybe changeResizeMode has never been called";this._resizeMethod(e,i)},o.prototype._bindResizeEvent=function(){if(this._resizeMode&&!this._listeningResize){this._listeningResize=!0;var e=this,i=void 0,t=function(){e._onResize()};window.addEventListener?window.addEventListener("resize",function(){i&&window.clearTimeout(i),i=window.setTimeout(t,50)},!1):window.attachEvent&&window.attachEvent("onresize",function(){i&&window.clearTimeout(i),i=window.setTimeout(t,50)})}},o.prototype.render=function(){i.default.DEBUG_LEVEL&&("FPS_ONLY"==i.default.DEBUG_LEVEL?this.debugRender.text="FPS: "+t.default.FPS:this.debugRender.text="DeltaTime: "+t.default.deltaTime+"\nscaleDelta: "+t.default.scaleDelta+" - FPS: "+t.default.fps+"\nPIXI: DeltaTime: "+e.time.deltaTime+"\nspeed: "+e.time.speed+" - FPS: "+e.time.FPS);for(var n=0,r=this.mainContainer.children.length;n<r;++n)this.mainContainer.children[n].renderUpdate&&this.mainContainer.children[n].renderUpdate(this._qualityRatio);this.pixiRenderer.render(this.mainContainer);for(n=0,r=this.mainContainer.children.length;n<r;++n)this.mainContainer.children[n].afterUpdate&&this.mainContainer.children[n].afterUpdate(this._qualityRatio)},o.prototype.directRender=function(e){this.pixiRenderer.render(e)},o.prototype.add=function(e){return this.mainContainer.addChild(e),this},o.prototype.DEName="Render";var a=o;exports.default=a;
},{"PIXI":"ix37","DE.config":"E/5E","DE.Time":"EyR0","DE.MainLoop":"hX9h","DE.Events":"2BhM"}],"FHs/":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=n(require("PIXI")),t=o(require("DE.MainLoop")),r=o(require("DE.GameObject")),i=o(require("DE.sortGameObjects"));function o(e){return e&&e.__esModule?e:{default:e}}function n(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};i.get||i.set?Object.defineProperty(t,r,i):t[r]=e[r]}return t.default=e,t}function a(r){e.Container.call(this),this.name=r||"NoName-"+(Date.now()+Math.random()*Date.now()>>0),this.gameObjects=this.children,this.enable=!0,t.default.addScene(this)}a.prototype=Object.create(e.Container.prototype),a.prototype.constructor=a,a.prototype.add=function(){for(var e=Array.prototype.slice.call(arguments),t=0;t<e.length;++t)if(e[t].length)for(var r=0,i=e[t].length||1;r<i;++r)this.addOne(e[t][r]);else this.addOne(e[t])},a.prototype.addOne=function(e){e instanceof r.default?(this.addChild(e),this._shouldSortChildren=!0,this.emit("update-children")):console.error("Tried to add something in a scene that is not a GameObject. Please inherit from GameObject")},a.prototype.update=function(e){if(this.enable){for(var t,r=0,i=this.children.length;r<i;++r)if(t=this.children[r]){if(null!==t.flag)switch(t.flag){case"delete":this.delete(r),--i;continue}t.update(e)}this._shouldSortChildren&&this.sortGameObjects()}},a.prototype.sortGameObjects=i.default,a.prototype.DEName="Scene",a.prototype.delete=function(e){return this.remove(e).killMePlease(),this},a.prototype.remove=function(e){var t;isNaN(e)?(-1!==this.children.indexOf(e)&&this.removeChild(e),t=e):(t=this.children[e],this.removeChild(t));return this.emit("update-children"),t};var s=a;exports.default=s;
},{"PIXI":"ix37","DE.MainLoop":"hX9h","DE.GameObject":"UTKB","DE.sortGameObjects":"Jx6P"}],"Nvan":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=l(require("PIXI")),i=e(require("DE.BaseRenderer"));function e(t){return t&&t.__esModule?t:{default:t}}function l(t){if(t&&t.__esModule)return t;var i={};if(null!=t)for(var e in t)if(Object.prototype.hasOwnProperty.call(t,e)){var l=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,e):{};l.get||l.set?Object.defineProperty(i,e,l):i[e]=t[e]}return i.default=t,i}function r(e,l,r,n){var h=n||{};t.Graphics.call(this),h.width=e,h.height=l,h.color=r,this._initial={width:h.width,height:h.height,fill:h.fill,color:h.color,lineStyle:h.lineStyle},this.updateRender(h),delete h.lineStyle,delete h.fill,i.default.instantiate(this,h)}r.prototype=Object.create(t.Graphics.prototype),r.prototype.constructor=r,i.default.inherits(r),r.prototype.updateRender=function(t){return this.clear(),t&&(t.lineStyle||this._initial.lineStyle)&&this.lineStyle.apply(this,t.lineStyle||this._initial.lineStyle),(!t||!1!==t.fill||void 0===t.fill&&!1!==this._initial.fill)&&this.beginFill(t.color||this._initial.color||"0xFF3300"),this.drawRect(0,0,t.width||this._initial.width,t.height||this._initial.height),this.endFill(),this._initial={width:t.width||this._initial.width,height:t.height||this._initial.height,fill:t.fill||this._initial.fill,color:t.color||this._initial.color,lineStyle:t.lineStyle||this._initial.lineStyle},this},r.prototype.DEName="RectRenderer";var n=r;exports.default=n;
},{"PIXI":"ix37","DE.BaseRenderer":"6Ntx"}],"j2fQ":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=i(require("PIXI")),r=t(require("DE.BaseRenderer"));function t(e){return e&&e.__esModule?e:{default:e}}function i(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)){var i=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,t):{};i.get||i.set?Object.defineProperty(r,t,i):r[t]=e[t]}return r.default=e,r}function o(t){t.backgroundImage||t.spriteName||t.spriteUrl||t.textureName?(e.extras.TilingSprite.call(this,e.utils.TextureCache[t.backgroundImage||t.spriteName||t.spriteUrl||t.textureName],t.width,t.height),r.default.instantiate(this,t)):console.error("A TilingRenderer need a spriteName or a spriteUrl argument")}o.prototype=Object.create(e.extras.TilingSprite.prototype),o.prototype.constructor=o,r.default.inherits(o),o.prototype.DEName="TilingRenderer";var a=o;exports.default=a;
},{"PIXI":"ix37","DE.BaseRenderer":"6Ntx"}],"yB6q":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=a(require("DE.GameObject")),t=a(require("DE.Time"));function a(e){return e&&e.__esModule?e:{default:e}}e.default.prototype.addAutomatism=function(e,a,o){if(o=o||{},(a=a||e).type&&(console.error("Call arguments Deprecated: You use the old way to call addAutomatism, check the doc please"),a=(o=a).type),!this[a])return console.warn("%cCouldn't found the method "+a+" in your GameObject prototype",1,"color:red"),!1;o.interval=o.interval||t.default.frameDelay,o.interval&&(o.lastCall=t.default.currentTime),o.methodName=a,o.value1=o.value1||void 0,o.value2=o.value2||void 0,o.args=o.args||void 0,o.persistent=0!=o.persistent,this._automatisms[e]=o},e.default.prototype.removeAutomatism=function(e){this._automatisms[e]&&delete this._automatisms[e]},e.default.prototype.removeAutomatisms=function(){for(var e in this._automatisms)delete this._automatisms[e]},e.default.prototype.inverseAutomatism=function(e){var t=this._automatisms[e];if(t.args)for(var a=0;a<t.args.length;++a)t.args[a]=-t.args[a];else t.value1=-t.value1,t.value2=-t.value2};var o=e.default;exports.default=o;
},{"DE.GameObject":"UTKB","DE.Time":"EyR0"}],"cPDy":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var a=e(require("DE.GameObject")),t=e(require("DE.Time"));function e(a){return a&&a.__esModule?a:{default:a}}a.default.prototype.fade=function(a,t,e,i,s){i&&(this.enable=!0);var h={from:null!=a?a:1,to:null!=t?t:0,duration:e||500,oDuration:e||500,fadeScale:Math.abs(a-t),done:!1,callback:s};return h.dir=h.from>t?-1:1,this.alpha=a,this._fadeData=h,!this.visible&&t>0&&(this.visible=!0),this},a.default.prototype.fadeTo=function(a,t,e,i){return this.fade(this.alpha,a,t,e,i),this},a.default.prototype.fadeOut=function(a,t,e){return t&&(this.enable=!0,this.alpha=1),this.fade(this.alpha,0,a,t,e),this},a.default.prototype.fadeIn=function(a,t,e){return t&&(this.enable=!0,this.alpha=0),this.fade(this.alpha,1,a,t,e),this},a.default.prototype.applyFade=function(){this._fadeData.done||(this._fadeData.stepVal=t.default.timeSinceLastFrame/this._fadeData.oDuration*this._fadeData.dir*this._fadeData.fadeScale,this.alpha+=this._fadeData.stepVal*t.default.scaleDelta,this._fadeData.duration-=t.default.timeSinceLastFrame*t.default.scaleDelta,(this._fadeData.dir<0&&this.alpha<=this._fadeData.to||this._fadeData.dir>0&&this.alpha>=this._fadeData.to||this.alpha<0||this.alpha>1)&&(this.alpha=this._fadeData.to),this._fadeData.duration<=0&&(this._fadeData.done=!0,0==this.alpha&&(this.visible=!1),this.trigger("fadeEnd",this),this._fadeData.callback&&this._fadeData.callback.call(this)))};var i=a.default;exports.default=i;
},{"DE.GameObject":"UTKB","DE.Time":"EyR0"}],"O5fg":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=o(require("DE.GameObject")),s=o(require("DE.Time"));function o(t){return t&&t.__esModule?t:{default:t}}t.default.prototype.focus=function(t,s){return s=s||{},this.target=t,this._focusOptions=Object.assign({x:!0,y:!0,rotation:!1},s.options),this._focusOptions.x=!1!==this._focusOptions.x,this._focusOptions.y=!1!==this._focusOptions.y,this._focusOffsets=Object.assign({x:0,y:0},s.offsets||s.offset),this},t.default.prototype.applyFocus=function(){if(!this.target)return;let t=this.target;this.target.getWorldPos&&(t=this.target.getWorldPos());let s={};s=this.parent.getWorldPos?this.parent.getWorldPos():this.parent,this._focusOptions.x&&(this.x=t.x+(this._focusOffsets.x||0)-s.x),this._focusOptions.y&&(this.y=t.y+(this._focusOffsets.y||0)-s.y),this._focusOptions.rotation&&(this.rotation=this.target.rotation)};var e=t.default;exports.default=e;
},{"DE.GameObject":"UTKB","DE.Time":"EyR0"}],"GI5k":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=a(require("DE.GameObject")),e=a(require("DE.Time"));function a(t){return t&&t.__esModule?t:{default:t}}t.default.prototype.moveTo=function(t,e,a,i,s){t.getWorldPos&&(t=t.getWorldPos());var l=this,d=null;return s||(l=this.getWorldPos(),this.parent&&this.parent.getWorldPos&&(d=this.parent.getWorldPos())),this._moveData={distX:-(l.x-(void 0!==t.x?t.x:l.x)),distY:-(l.y-(void 0!==t.y?t.y:l.y)),distZ:-(l.z-(void 0!==t.z?t.z:l.z)),dirX:l.x>t.x?1:-1,dirY:l.y>t.y?1:-1,dirZ:l.z>t.z?1:-1,duration:e||500,oDuration:e||500,curveName:i||"linear",done:!1,stepValX:0,stepValY:0,stepValZ:0,destX:d?t.x-d.x:t.x,destY:d?t.y-d.y:t.y,destZ:t.z,callback:a},this._moveData.leftX=this._moveData.distX,this._moveData.leftY=this._moveData.distY,this._moveData.leftZ=this._moveData.distZ,this},t.default.prototype.applyMove=function(){if(!this._moveData.done){var t=this._moveData;0!=t.distX&&(t.stepValX=e.default.timeSinceLastFrame/t.oDuration*t.distX*e.default.scaleDelta,t.leftX-=t.stepValX,this.x+=t.stepValX),0!=t.distY&&(t.stepValY=e.default.timeSinceLastFrame/t.oDuration*t.distY*e.default.scaleDelta,t.leftY-=t.stepValY*t.dirY,this.y+=t.stepValY),0!=t.distZ&&(t.stepValZ=e.default.timeSinceLastFrame/t.oDuration*t.distZ*e.default.scaleDelta,t.leftZ-=t.stepValZ*t.dirZ,this.z+=t.stepValZ),t.duration-=e.default.timeSinceLastFrame*e.default.scaleDelta,t.dirX<0&&t.leftX<0?this.x+=t.leftX:t.dirX>0&&t.leftX>0&&(this.x-=t.leftX),t.dirY<0&&t.leftY<0?this.y+=t.leftY:t.dirY>0&&t.leftY>0&&(this.y-=t.leftY),t.dirZ<0&&t.leftZ<0?this.z+=t.leftZ:t.dirZ>0&&t.leftZ>0&&(this.z-=t.leftZ),t.duration<=0&&(this._moveData.done=!0,this.position.set(void 0!==t.destX?t.destX:this.x,void 0!==t.destY?t.destY:this.y),this.z=void 0!==t.destZ?t.destZ:this.z,this.trigger("moveEnd"),t.callback&&t.callback.call(this,t.callback))}};var i=t.default;exports.default=i;
},{"DE.GameObject":"UTKB","DE.Time":"EyR0"}],"zvDf":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=s(require("DE.GameObject")),a=s(require("DE.Time")),t=s(require("DE.config"));function s(e){return e&&e.__esModule?e:{default:e}}e.default.prototype.setScale=function(e,a){return this.scale.set(e,a),this._updateScale(),this},e.default.prototype._updateZScale=function(){var e=1-this.z/t.default.zMaxDepth;this._zscale=e,this.scale.x=e*this.savedScale.x,this.scale.y=e*this.savedScale.y,this._updateWorldScale();for(var a=0;a<this.gameObjects.length;++a)this.gameObjects[a]._updateWorldScale()},e.default.prototype._updateScale=function(){this.savedScale.copy(this.scale),this.scale.x=this._zscale*this.scale.x,this.scale.y=this._zscale*this.scale.y,this._updateWorldScale();for(var e=0;e<this.gameObjects.length;++e)this.gameObjects[e]._updateWorldScale()},e.default.prototype._updateWorldScale=function(){if(this.worldScale.set(this.scale.x,this.scale.y),this.parent&&this.parent._isGameObject)return this.worldScale.x=this.worldScale.x*this.parent.worldScale.x,this.worldScale.y=this.worldScale.y*this.parent.worldScale.y,this},e.default.prototype.scaleTo=function(e,a,t){var s={x:isNaN(e)?e.x:e,y:isNaN(e)?e.y:e};return this._scaleData={valX:-(this.savedScale.x-(void 0!==s.x?s.x:this.savedScale.x)),valY:-(this.savedScale.y-(void 0!==s.y?s.y:this.savedScale.y)),dirX:this.savedScale.x>s.x?1:-1,dirY:this.savedScale.y>s.y?1:-1,duration:a||500,oDuration:a||500,done:!1,stepValX:0,stepValY:0,destX:s.x,destY:s.y,scaleX:this.savedScale.x,scaleY:this.savedScale.y,callback:t},this._scaleData.leftX=this._scaleData.valX,this._scaleData.leftY=this._scaleData.valY,this},e.default.prototype.applyScale=function(){if(!this._scaleData.done){var e=this._scaleData;0!=e.valX&&(e.stepValX=a.default.timeSinceLastFrame/e.oDuration*e.valX*a.default.scaleDelta,e.leftX-=e.stepValX,e.scaleX+=e.stepValX),0!=e.valY&&(e.stepValY=a.default.timeSinceLastFrame/e.oDuration*e.valY*a.default.scaleDelta,e.leftY-=e.stepValY,e.scaleY+=e.stepValY),e.duration-=a.default.timeSinceLastFrame*a.default.scaleDelta,e.dirX<0&&e.leftX<0?e.scaleX+=e.leftX:e.dirX>0&&e.leftX>0&&(e.scaleX-=e.leftX),e.dirY<0&&e.leftY<0?e.scaleY+=e.leftY:e.dirY>0&&e.leftY>0&&(e.scaleY-=e.leftY),this.scale.set(e.scaleX,e.scaleY),e.duration<=0&&(this._scaleData.done=!0,this.scale.set(e.destX,e.destY),this.emit("scale-end",this),this._scaleData.callback&&this._scaleData.callback.call(this)),this._updateScale()}};var l=e.default;exports.default=l;
},{"DE.GameObject":"UTKB","DE.Time":"EyR0","DE.config":"E/5E"}],"ihDx":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("DE.GameObject")),a=t(require("DE.Time"));function t(e){return e&&e.__esModule?e:{default:e}}e.default.prototype.shake=function(e,a,t,r){return this._shakeData={duration:t||500,xRange:e,yRange:a,prevX:this._shakeData?this._shakeData.prevX:0,prevY:this._shakeData?this._shakeData.prevY:0,callback:r},this},e.default.prototype.applyShake=function(){if(!this._shakeData.done){var e=this._shakeData;if(this.x-=e.prevX,this.y-=e.prevY,e.duration-=a.default.timeSinceLastFrame*a.default.scaleDelta,e.duration<=0)return e.done=!0,e.prevX=0,e.prevY=0,this.trigger("shakeEnd"),void(e.callback&&e.callback.call(this));e.prevX=-Math.random()*e.xRange+Math.random()*e.xRange>>0,e.prevY=-Math.random()*e.yRange+Math.random()*e.yRange>>0,this.x+=e.prevX,this.y+=e.prevY}};var r=e.default;exports.default=r;
},{"DE.GameObject":"UTKB","DE.Time":"EyR0"}],"b3fm":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=u(require("DE.GameObject")),t=u(require("DE.GameObject.automatisms")),a=u(require("DE.GameObject.fade")),s=u(require("DE.GameObject.focus")),i=u(require("DE.GameObject.moveTo")),l=u(require("DE.GameObject.scale")),r=u(require("DE.GameObject.shake")),o=u(require("DE.Time"));function u(e){return e&&e.__esModule?e:{default:e}}e.default.prototype.update=function(e){if(this.updatable){for(var t in this._automatisms){var a=this._automatisms[t];a.timeSinceLastCall=e-a.lastCall,a.timeSinceLastCall<a.interval/o.default.scaleDelta||(a.timeSinceLastCall-a.interval<a.interval?a.lastCall=e-(a.timeSinceLastCall-a.interval/o.default.scaleDelta):a.lastCall=e,a.args?this[a.methodName].apply(this,a.args):this[a.methodName](a.value1,a.value2),a.persistent||delete this._automatisms[t])}for(var s,i=0;s=this.gameObjects[i];i++){if(null!==s.flag)switch(s.flag){case"delete":this.delete(i),--i;continue}s.update(e)}if(this.visible)for(var l,r=0;l=this.renderers[r];++r)l.update&&l.update(),l.applyFade&&(l.applyFade(),l.applyScale());this.applyFocus(),this.applyShake(),this.applyMove(),this.applyFade(),this.applyScale(),this._shouldSortChildren&&this.sortGameObjects(),this._lastLocalID!=this.position.scope._localID?this._hasMoved=!0:this._hasMoved=!1,this._lastLocalID=this.position.scope._localID}};var p=e.default;exports.default=p;
},{"DE.GameObject":"UTKB","DE.GameObject.automatisms":"yB6q","DE.GameObject.fade":"cPDy","DE.GameObject.focus":"O5fg","DE.GameObject.moveTo":"GI5k","DE.GameObject.scale":"zvDf","DE.GameObject.shake":"ihDx","DE.Time":"EyR0"}],"7UWE":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=c(require("PIXI")),e=p(require("DE.config")),i=p(require("DE.ImageManager")),o=p(require("DE.Time")),n=p(require("DE.RectRenderer")),r=p(require("DE.TilingRenderer")),s=p(require("DE.GameObject.update"));function p(t){return t&&t.__esModule?t:{default:t}}function c(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var i in t)if(Object.prototype.hasOwnProperty.call(t,i)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(t,i):{};o.get||o.set?Object.defineProperty(e,i,o):e[i]=t[i]}return e.default=t,e}function u(e,i,o,s,p){t.Container.call(this),this.renderSizes=new t.Point(o,s),this.pivot.set(e+o/2>>0,i+s/2>>0),this.x=this.renderSizes.x/2>>0,this.y=this.renderSizes.y/2>>0;var c=p||{};this.interactive=void 0===p.interactive||p.interactive,this.name=c.name||"",this.id="camera_"+Date.now()+"-"+Math.random()*Date.now(),this._scene=null,c.backgroundImage?(this.background=new r.default({backgroundImage:c.backgroundImage,width:o,height:s}),this.background.interactive=!1,this.background.anchor.set(-.5),this.addChild(this.background)):c.backgroundColor&&(this.background=new n.default(o,s,c.backgroundColor),this.addChild(this.background)),this.scale.set(c.scaleX||c.scale?c.scale.x||c.scale:1,c.scaleY||c.scale?c.scale.y||c.scale:1),this.limits={minX:null!=c.minX?c.minX:void 0,maxX:null!=c.maxX?c.maxX:void 0,minY:null!=c.minY?c.minY:void 0,maxY:null!=c.maxY?c.maxY:void 0},this._fadeData={from:1,to:0,duration:1e3,done:!0},this._usePerspective=void 0===c.usePerspective||c.usePerspective,this._hasMoved=!1,this._usePerspectiveCache=!0,c.scene&&(this.scene=c.scene)}u.prototype=Object.create(t.Container.prototype),u.prototype.constructor=u,Object.defineProperties(u.prototype,{enable:{get:function(){return this.renderable&&this.visible},set:function(t){this.visible=t,this.renderable=t}},usePerspective:{get:function(){return this._usePerspective},set:function(t){return this._usePerspective&&this.clearPerspective(!0),this._usePerspective=t,this._usePerspective}},scene:{get:function(){return this._scene},set:function(t){this._scene&&this.removeChild(this._scene),this._scene=t,this.addChild(t)}},pointermove:{get:function(){return this._pointermove},set:function(t){this._customPointerMove=t}},pointerdown:{get:function(){return this._pointerdown},set:function(t){this._customPointerDown=t}},pointerup:{get:function(){return this._pointerup},set:function(t){this._customPointerUp=t}},pointerover:{get:function(){return this._pointerover},set:function(t){this._customPointerOver=t}},pointerout:{get:function(){return this._pointerout},set:function(t){this._customPointerOut=t}},pointertap:{get:function(){return this._pointertap},set:function(t){this._customPointerTap=t}},pointerupoutside:{get:function(){return this._pointerupoutsid},set:function(t){this._customPointerUpOutside=t}}}),u.prototype.trigger=u.prototype.emit,u.prototype._pointerHandler=function(t,e){var i={x:e.data.global.x+(this.pivot.x-this.x),y:e.data.global.y+(this.pivot.y-this.y)};this["_customPointer"+t](i,e)},u.prototype._pointermove=function(t){this._pointerHandler("Move",t)},u.prototype._pointerdown=function(t){this._pointerHandler("Down",t)},u.prototype._pointerup=function(t){this._pointerHandler("Up",t)},u.prototype._pointerover=function(t){this._pointerHandler("Over",t)},u.prototype._pointerout=function(t){this._pointerHandler("Out",t)},u.prototype._pointertap=function(t){this._pointerHandler("Tap",t)},u.prototype._pointerupoutside=function(t){this._pointerHandler("UpOutside",t)},u.prototype._customPointerMove=function(){},u.prototype._customPointerDown=function(){},u.prototype._customPointerUp=function(){},u.prototype._customPointerOver=function(){},u.prototype._customPointerOut=function(){},u.prototype._customPointerTap=function(){},u.prototype._customPointerUpOutside=function(){},u.prototype.renderUpdate=function(t){this.applyFocus(),this.applyFade(),this.checkLimits(t),this.calculatePerspective(),this.background&&(this.background.x=-this.x,this.background.y=-this.y)},u.prototype.afterUpdate=function(t){this.clearPerspective()},u.prototype.calculatePerspective=function(){if(this._usePerspective&&this._scene)for(var t,e,i,o=this.x,n=this.y,r=this._scene.children,s=0;s<r.length;++s)(t=r[s]).savedPosition={x:t.x,y:t.y},1!=t._zscale&&(e=t.x+(t.x-o)*-(1-t._zscale)>>0,i=t.y+(t.y-n)*-(1-t._zscale)>>0,t.position.set(e,i))},u.prototype.clearPerspective=function(){if(this._usePerspective&&this._scene)for(var t,e=this._scene.children,i=0;i<e.length;++i)(t=e[i]).position.set(t.savedPosition.x,t.savedPosition.y)},u.prototype.checkLimits=function(t){var e=this.limits;null!=e.minX&&this.x<e.minX*t?this.x=e.minX*t:null!=e.maxX&&this.x+this.renderSizes.x>e.maxX*t*this.scale.x&&(this.x=e.maxX*t*this.scale.x-this.renderSizes.x),null!=e.minY&&this.y<e.minY*t?this.y=e.minY*t:null!=e.maxY&&this.y+this.renderSizes.y>e.maxY*t*this.scale.y&&(this.y=e.maxY*t*this.scale.y-this.renderSizes.y)},u.prototype.focus=s.default.prototype.focus,u.prototype.applyFocus=function(){if(this.target){var t=this.target.getWorldPos();this._focusOptions.x&&(this.pivot.x=t.x+this._focusOffsets.x),this._focusOptions.y&&(this.pivot.y=t.y+this._focusOffsets.y),this._focusOptions.rotation&&(this.rotation=-this.target.rotation)}},u.prototype.fade=s.default.prototype.fade,u.prototype.fadeTo=s.default.prototype.fadeTo,u.prototype.fadeOut=s.default.prototype.fadeOut,u.prototype.fadeIn=s.default.prototype.fadeIn,u.prototype.applyFade=s.default.prototype.applyFade,u.prototype.DEName="Camera";var a=u;exports.default=a;
},{"PIXI":"ix37","DE.config":"E/5E","DE.ImageManager":"ypt5","DE.Time":"EyR0","DE.RectRenderer":"Nvan","DE.TilingRenderer":"j2fQ","DE.GameObject.update":"b3fm"}],"z9bR":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=o(require("PIXI")),r=t(require("DE.BaseRenderer"));function t(e){return e&&e.__esModule?e:{default:e}}function o(e){if(e&&e.__esModule)return e;var r={};if(null!=e)for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,t):{};o.get||o.set?Object.defineProperty(r,t,o):r[t]=e[t]}return r.default=e,r}function i(t){t.spriteName||t.spriteUrl||t.textureName?(e.Sprite.call(this,e.utils.TextureCache[t.spriteName||t.spriteUrl||t.textureName]),r.default.instantiate(this,t)):console.error("A TextureRenderer need a spriteName or a spriteUrl argument")}i.prototype=Object.create(e.Sprite.prototype),i.prototype.constructor=i,r.default.inherits(i),i.prototype.DEName="TextureRenderer";var a=i;exports.default=a;
},{"PIXI":"ix37","DE.BaseRenderer":"6Ntx"}],"wSMf":[function(require,module,exports) {
"use strict";require("../css/default.css");var e=O(require("PIXI")),a=N(require("DE.extendPIXI")),i=N(require("DE.config")),t=N(require("DE.about")),n=N(require("DE.Events")),r=N(require("DE.Time")),o=N(require("DE.MainLoop")),u=N(require("DE.Save")),d=N(require("DE.Inputs")),s=N(require("DE.gamepad")),l=N(require("DE.Audio")),c=N(require("DE.Localization")),f=N(require("DE.Notifications")),p=N(require("DE.Achievements")),E=N(require("DE.ImageManager")),g=N(require("DE.Render")),m=N(require("DE.Scene")),D=N(require("DE.Camera")),h=N(require("DE.Vector2")),v=N(require("DE.BaseRenderer")),L=N(require("DE.TextureRenderer")),q=N(require("DE.SpriteRenderer")),I=N(require("DE.TilingRenderer")),M=N(require("DE.TextRenderer")),R=N(require("DE.RectRenderer")),b=N(require("DE.GraphicRenderer")),_=N(require("DE.GameObject")),G=N(require("DE.GameObject.update"));function N(e){return e&&e.__esModule?e:{default:e}}function O(e){if(e&&e.__esModule)return e;var a={};if(null!=e)for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var t=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,i):{};t.get||t.set?Object.defineProperty(a,i,t):a[i]=e[i]}return a.default=e,a}var T={config:i.default,about:t.default,Events:n.default,Time:r.default,MainLoop:o.default,Save:u.default,Inputs:d.default,gamepad:s.default,Audio:l.default,Localization:c.default,Notifications:f.default,Achievements:p.default,ImageManager:E.default,Render:g.default,Scene:m.default,Camera:D.default,Vector2:h.default,BaseRenderer:v.default,TextureRenderer:L.default,SpriteRenderer:q.default,TilingRenderer:I.default,TextRenderer:M.default,RectRenderer:R.default,GraphicRenderer:b.default,GameObject:_.default,PIXI:e};T.VERSION=T.config.VERSION,T.CONFIG=T.config,(0,a.default)(T,e),T.init=function(e){if(!e)throw"Cannot init DreamEngine without the options, take a sample for easy start";window.ENGINE_SETTING=window.ENGINE_SETTING||{},T.about.set(e.about),T.Save.init(e.saveModel,e.saveIgnoreVersion),T.Localization.init(e.dictionary||{}),T.Achievements.init(e.achievements||[]),e.ignoreNotifications||!1===e.useNotifications||e.ignoreNotification?T.config.notifications.enable=!1:T.Notifications.init(e.notifications||{}),T.Inputs.init(e.inputs||{}),e.preventGamepad||T.gamepad.init(),e.onLoad||console.error("No onLoad given on init, nothing will happen after images load"),this.customOnLoad=e.onLoad||function(){console.log("You have to give a onLoad callback to the DE.init options")},T.ImageManager.init(e.images.baseUrl,e.images.pools),T.emit("change-debug",T.config.DEBUG,T.config.DEBUG_LEVEL),e.loader=e.loader||{};var a=["loader",e.loader.url||"loader.png",{totalFrame:e.loader.totalFrame||16,interval:e.loader.interval||45,animated:void 0===e.loader.animated||e.loader.animated,scale:e.loader.scale||1}];T.Events.once("ImageManager-loader-loaded",function(){T.MainLoop.updateLoaderImage(a)}),T.ImageManager.load(a),T.___params=e,e.onReady(),T.emit("change-debug",T.config.DEBUG,T.config.DEBUG_LEVEL)},T.onLoad=function(){setTimeout(function(){T.customOnLoad(),T.MainLoop.displayLoader=!1},500)};var y="default";T.start=function(){T.Audio.loadAudios(T.___params.audios||[]),delete T.___params,T.MainLoop.createLoader(),T.MainLoop.launched=!0,T.MainLoop.loop(),T.MainLoop.displayLoader=!0,T.Events.once("ImageManager-pool-"+y+"-loaded",this.onLoad,this),T.ImageManager.loadPool(y),T.emit("change-debug",T.config.DEBUG,T.config.DEBUG_LEVEL)},T.pause=function(){this.paused=!0,this.MainLoop.launched=!1,this.Inputs.listening=!1},T.unPause=function(){this.paused=!1,this.Inputs.listening=!0,this.MainLoop.launched=!0,this.Time.lastCalcul=Date.now(),this.Time.currentTime=Date.now(),this.MainLoop.loop()},T.on=function(){this.Events.on.apply(this.Events,arguments)},T.emit=function(){this.Events.emit.apply(this.Events,arguments)},T.trigger=function(){this.Events.emit.apply(this.Events,arguments)},module.exports=T;
},{"../css/default.css":"KP3W","PIXI":"ix37","DE.extendPIXI":"i745","DE.config":"E/5E","DE.about":"RgmU","DE.Events":"2BhM","DE.Time":"EyR0","DE.MainLoop":"hX9h","DE.Save":"IhKf","DE.Inputs":"Fibq","DE.gamepad":"5b0m","DE.Audio":"bkz+","DE.Localization":"owzW","DE.Notifications":"Dg6B","DE.Achievements":"OC5Z","DE.ImageManager":"ypt5","DE.Render":"VbJO","DE.Scene":"FHs/","DE.Camera":"7UWE","DE.Vector2":"cTHV","DE.BaseRenderer":"6Ntx","DE.TextureRenderer":"z9bR","DE.SpriteRenderer":"FFpr","DE.TilingRenderer":"j2fQ","DE.TextRenderer":"ECaa","DE.RectRenderer":"Nvan","DE.GraphicRenderer":"FxaU","DE.GameObject":"UTKB","DE.GameObject.update":"b3fm"}],"BDLb":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var E={SCREEN_WIDTH:1280,SCREEN_HEIGHT:720,ROOM_TYPE_X:500,ROOM_TYPE_Y:582,INSIDE_X:717,INSIDE_Y:530,PET_X:590,PET_Y:637,CHARACTER_INITIAL_X:-70,CHARACTER_INITIAL_Y:700,CHARACTER_SPEED:3,ANIM:{IDLE_DURATION:1500,DAILY_CHECK:{WEATHER:270,ENV:950,ROOM:460,INSIDE:700,HOUSE:600,SLEEP_ROOM:770},DAILY_ORDER:["WEATHER","ROOM","INSIDE","ENV","HOUSE","SLEEP_ROOM"],DAILY_INDEXES:[0,3,4,2,1]}},I=E;exports.default=I;
},{}],"85PB":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("@dreamirl/dreamengine/src"));function t(e){return e&&e.__esModule?e:{default:e}}function a(t,a){if(e.default.Events.Emitter.call(this),a||(a={}),a.initialize&&(this.initialize=a.initialize),this.name=t||"gamescreen"+(10*Math.random()>>0),this.scene=new e.default.Scene,this.camera=new(Function.prototype.bind.apply(e.default.Camera,[e.default.Camera].concat(a.camera))),this.camera.scene=this.scene,this.enable=!0,this.buttons=a.buttons||{},this.currentButton=null,a.useGamepad||a.gamepad){if(a.gamepad||(a.gamepad={}),this.cursor=new e.default.GameObject({zindex:a.gamepad.zindex||10,renderer:new e.default.SpriteRenderer({spriteName:a.gamepad.cursorSpriteName||"cursor"})}),this.cursorPosition=a.gamepad.cursorPosition||"left",this.currsorOffset=a.gamepad.cursorOffset||{x:0,y:0},this.gamepadNavigation=[],this._gamepadShortcuts={},a.gamepad.shortcuts)for(var i in a.gamepad.shortcuts)this.addGamepadShortcuts(i,a.gamepad.shortcuts[i]);a.gamepad.navigation&&this.enableGamepadNavigation(a.gamepad.navigation,a.gamepad.navigationOpts),this.gamepadSettings={minForceX:a.gamepad.minForceX||a.gamepad.minforcex||.9,minForceY:a.gamepad.minForceY||a.gamepad.minforcey||.9,navDelayLong:a.gamepad.navDelayLong||a.gamepad.navdelaylong||1e3,navDelayShort:a.gamepad.navDelayShort||a.gamepad.navdelayshort||700}}}a.prototype=Object.create(e.default.Events.Emitter.prototype),a.prototype.constructor=a,a.prototype.trigger=a.prototype.emit,a.prototype.initialize=function(){},a.prototype.enableGamepadNavigation=function(t,a){e.default.Inputs.on("axeMoved",a.haxe||"haxe",this._onGamepadHAxe,this),e.default.Inputs.on("axeMoved",a.vaxe||"vaxe",this._onGamepadVAxe,this),e.default.Inputs.on("axeStop",a.haxe||"haxe",function(){this.__storedH=0,this.__onGamepadHAxeCount=0},this),e.default.Inputs.on("axeStop",a.vaxe||"vaxe",function(){this.__storedV=0,this.__onGamepadVAxeCount=0},this),e.default.Inputs.on("keyUp",a.confirmInput||"confirm",this._cursorSelect,this)},a.prototype.add=function(){this.scene.add.apply(this.scene,arguments)},a.prototype.addButtons=function(t){for(var a in t)this.buttons[a]&&e.default.CONFIG.DEBUG_LEVEL>0&&console.warn("You just overwrite an existing button in your screen: "+this.name),this.buttons[a]=t[a],this.scene.add(t[a])},a.prototype.addGamepadShortcuts=function(e,t){this._gamepadShortcuts[e]=t},a.prototype.removeGamepadShortcuts=function(e){delete this._gamepadShortcuts[e]},a.prototype._updateCursorPos=function(){this.currentCursorObject=this.objects[this.gamepadNavigation[this.gamepadPosY][this.gamepadPosX]],this.cursor.focus(this.currentButton)},a.prototype.__onGamepadHAxeCount=0,a.prototype.__storedH=0,a.prototype._onGamepadHAxe=function(e){if(!(!this.enable||void 0!==e&&e<this.gamepadSettings.minForceX||this.__storedH>this.gamepadSettings.minForceX&&void 0!==e||void 0===e&&0==this.__storedH&&this.__onGamepadHAxeCount>0)){e&&(this.__storedH=e),this.gamepadPosX+=this.__storedH>0?1:-1,this.gamepadPosX>=this.gamepadNavigation[this.gamepadPosY].length&&(this.gamepadPosX=0),this._updateCursorPos(),++this.__onGamepadHAxeCount;var t=this;1==this.__onGamepadHAxeCount?setTimeout(function(){t._onGamepadHAxe()},this.gamepadSettings.navDelayLong):setTimeout(function(){t._onGamepadHAxe()},this.gamepadSettings.navDelayShort)}},a.prototype.__onGamepadVAxeCount=0,a.prototype.__storedV=0,a.prototype._onGamepadVAxe=function(e){if(!(!this.enable||void 0!==e&&e<this.gamepadSettings.minForceY||this.__storedV>this.gamepadSettings.minForceY&&void 0!==e||void 0===e&&0==this.__storedV&&this.__onGamepadVAxeCount>0)){e&&(this.__storedV=e),this.gamepadPosX+=this.__storedV>0?1:-1,this.gamepadPosX>=this.gamepadNavigation[this.gamepadPosY].length&&(this.gamepadPosX=0),this.gamepadNavigation[this.gamepadPosY].length<=this.gamepadPosX&&(this.gamepadPosX=this.gamepadNavigation[this.gamepadPosY].length-1),this._updateCursorPos(),++this.__onGamepadVAxeCount;var t=this;1==this.__onGamepadVAxeCount?setTimeout(function(){t._onGamepadHAxe()},this.gamepadSettings.navDelayLong):setTimeout(function(){t._onGamepadHAxe()},this.gamepadSettings.navDelayShort)}},a.prototype._cursorSelect=function(){this.enable&&this.currentButton.pointerup({x:0,y:0},{})},a.prototype.show=function(t,a){e.default.emit("gamescreen-show",this.name,t),this.emit.apply(this,t&&t.push?["show"].concat(t):["show",t]),this.scene.enable=!0,this.camera.enable=!0,this.enable=!0,this.emit.apply(this,t&&t.push?["shown"].concat(t):["shown",t]),e.default.emit("gamescreen-shown",this.name,t)},a.prototype.hide=function(t,a,i){i||(e.default.emit("gamescreen-hide",this.name),this.emit("hide",this)),t||(this.scene.enable=!1),this.keepSceneActive&&(this.scene.enable=!0),this.camera.enable=!1,this.enable=!1,i||(this.emit("hidden",this),e.default.emit("gamescreen-hidden",this.name))},a.prototype.transition=function(e){},e.default.GameScreen=a;var i=a;exports.default=i;
},{"@dreamirl/dreamengine/src":"wSMf"}],"OgLM":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("@dreamirl/dreamengine/src"));function t(e){return e&&e.__esModule?e:{default:e}}var i=function(e,t){if(this.render=e,this.screens={},this.history=[],t.length)for(var i=0;i<t.length;++i)this.add(t[i]),t[i].initialize();else for(var i in t)this.add(t[i]),t[i].initialize();t=null};i.prototype={},i.prototype.previous=function(){0!=this.history.length&&(this.historyId=(this.historyId||this.history.length)-1,this.changeScreen(this.history[this.historyId]))},i.prototype.next=function(){0==this.history.length||this.historyId>=this.history.length-1||(this.historyId=this.historyId+1,this.changeScreen(this.history[this.historyId]))},i.prototype.add=function(t){this.screens[t.name]&&e.default.CONFIG.DEBUG_LEVEL>0&&console.warn("You just overwrite an existing screen in your GameScreensManager"),this.screens[t.name]=t,this.screens[t.name].on("changeScreen",this.changeScreen,this),this.render.add(t.camera),t.hide(void 0,void 0,!0)},i.prototype.changeScreen=function(t,i,s,r){for(var n in this.screens)n!=t&&this.screens[n].hide(s,r);this.screens[t].show(i,r),e.default.emit("changeScreen",t)},e.default.GameScreensManager=i;var s=i;exports.default=s;
},{"@dreamirl/dreamengine/src":"wSMf"}],"Nokn":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"GameScreen",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(exports,"GameScreenManager",{enumerable:!0,get:function(){return r.default}}),exports.default=void 0;var e=t(require("./src/GameScreen")),r=t(require("./src/GameScreenManager"));function t(e){return e&&e.__esModule?e:{default:e}}var n=r.default;exports.default=n;
},{"./src/GameScreen":"85PB","./src/GameScreenManager":"OgLM"}],"6DSZ":[function(require,module,exports) {

},{"./img/dialogue_next.png":[["dialogue_next.eeba5c63.png","XETS"],"XETS"]}],"DZ7E":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=e(require("@dreamirl/dreamengine"));function e(t){return t&&t.__esModule?t:{default:t}}require("./index.css");const i='<div><div class="name"></div><div class="picture"></div><span class="sizer"></span><span class="content"></span><div class="close"></div></div>',s="render",r=function(){t.default.Events.Emitter.call(this),this.trigger=this.emit,this.DEName="MessageBox",this.mboxs={},this.nMboxs=0,this.el=null,this.template=i,this.inited=!1,this.textView=null,this.closeBtn=null,this.wordsArray=[],this.currentWord=0,this.currentLetter=0,this.isActive=!1,this.typingFx="";var e=this;this.init=function(s){if(this.inited)return;s=s||{},this.template=s.template||i,this.typingFx=s.typingFx||"";let r=document.getElementById(s.containerId||"render");if(!r)throw new Error("FATAL ERROR: Can't init MessageBox without an element -- selector:: "+s.selector);this.el=document.createElement("div"),this.el.id="de-plugin-messagebox-container",r.appendChild(this.el),this.inited=!0,t.default.MainLoop.additionalModules.MessageBoxUpdate=this,t.default.Inputs.on("keyDown","skipMessage",function(){e.currentId&&(!e.isActive&&e.closeBtn?e.mboxs[e.currentId].manualClose():e.preventDynamicText())}),s.useBuffer&&(this.buffer=new t.default.PIXI.autoDetectRenderer(1,1,{transparent:!0,clearBeforeRender:!0,autoResize:!0}),this.bufferContainer=new t.default.PIXI.Container)},this.renderBuffer=function(t,e,i,s){this.bufferContainer.position.set(e||0,i||0);for(var n=[],h=0;h<t.length;++h)n.push(t[h].parent),r.bufferContainer.addChild(t[h]);for(this.buffer.render(this.bufferContainer),s&&(this.buffer.view.style.width=s.w+"px",this.buffer.view.style.height=s.h+"px"),h=0;h<t.length;++h)n[h].addChild(t[h])},this.create=function(i,s,r,n){if(n=n||{},this.inited){var h=Date.now()+"-"+(100*Math.random()>>0),o=document.createElement("div");o.innerHTML=this.template,this.textView=o.getElementsByClassName("content")[0],this.sizerEl=o.getElementsByClassName("sizer")[0],this.wordsArray=i.split(" "),this.fullText=i,this.currentWord=0,this.currentLetter=0,this.currentVars=n.vars||{};var a=o.getElementsByClassName("close")[0]||null;o.id="de-messagebox-"+h,o.className="de-plugin-messagebox",this.currentId=o.id,this.nlines=(i.match(/ \/n /gi)||[]).length+1;for(var l="",u=0;u<this.nlines;++u)l+="<br />";return this.sizerEl.innerHTML=l,a&&(a.addEventListener("pointerup",function(t){return t.stopPropagation(),t.preventDefault(),o.manualClose(),!1},!1),o.manualClose=function(){n.sound&&t.default.Audio.fx.play(n.sound),e.remove(o.id),s&&s.call(r||window)},a.style.display="none",this.closeBtn=a),n.buffer&&(this.buffer.resolution=n.buffer.resolution||1,this.buffer.resize(n.buffer.width,n.buffer.height),o.getElementsByClassName("picture")[0].appendChild(this.buffer.view)),n.name?(o.getElementsByClassName("name")[0].innerHTML=n.name,o.getElementsByClassName("name")[0].className="name "+(n.side?"side-"+n.side:"")):(o.getElementsByClassName("name")[0].className="name",o.getElementsByClassName("name")[0].style.display="none"),o.addEventListener("pointerup",function(t){return!e.isActive&&e.closeBtn?e.mboxs[e.currentId].manualClose():e.preventDynamicText(),t.stopPropagation(),t.preventDefault(),!1},!1),n.lifeTime&&setTimeout(function(){e.mboxs[e.currentId].manualClose()},n.lifeTime),this.el.appendChild(o),this.mboxs[o.id]=o,++this.nMboxs,this.trigger("create",o),this.isActive=!0,this.prevented=!1,o}},this.removeAll=function(){for(var t in this.textView=null,this.isActive=!1,this.currentId=null,this.trigger("kill-em-all"),this.mboxs)this.el.removeChild(this.mboxs[t]),delete this.mboxs[t]},this.remove=function(t){t&&this.mboxs[t]&&(this.mboxs[t].isRemoved?delete this.mboxs[t]:(this.textView=null,this.isActive=!1,this.mboxs[t].isRemoved=!0,this.el.removeChild(this.mboxs[t]),this.currentId=null,this.trigger("kill"),delete this.mboxs[t],0==--this.nMboxs&&this.trigger("zero-messages-box")))},this.update=function(e){if(this.isActive&&this.textView&&!(e<this.waitUntil)){if(!this.wordsArray[this.currentWord][this.currentLetter]){if(this.currentWord++,this.currentLetter=0,!this.wordsArray[this.currentWord])return this.typingFx&&t.default.Audio.fx.stop(this.typingFx),this.endDynamicText();this.textView.innerHTML+=" "}if("/"==this.wordsArray[this.currentWord][this.currentLetter]&&"n"==this.wordsArray[this.currentWord][this.currentLetter+1])this.textView.innerHTML+="<br />",this.currentLetter++,this.waitUntil=e+150,this.typingFx&&t.default.Audio.fx.stop(this.typingFx);else if("%"==this.wordsArray[this.currentWord][this.currentLetter]&&"%"==this.wordsArray[this.currentWord][this.wordsArray[this.currentWord].length-1])this.textView.innerHTML+=this.currentVars[this.wordsArray[this.currentWord]]||" --var-error--",this.currentLetter=this.wordsArray[this.currentWord].length;else{if(this.typingFx&&!t.default.Audio.fx._fxs[this.typingFx].playing())return this.waitUntil=e+100,void(this.typingFx&&t.default.Audio.fx.play(this.typingFx));this.textView.innerHTML+=this.wordsArray[this.currentWord][this.currentLetter],"."!==this.wordsArray[this.currentWord][this.currentLetter]||this.wordsArray[this.currentWord][this.currentLetter+1]||(this.waitUntil=e+150,this.typingFx&&t.default.Audio.fx.stop(this.typingFx))}this.currentLetter++}},this.preventDynamicText=function(){if(this.typingFx&&t.default.Audio.fx.stop(this.typingFx),!this.isActive)return!1;if(!this.textView)return!1;this.isActive=!1;var i=this.fullText;for(var s in this.currentVars)i=i.replace(s,this.currentVars[s]);return this.textView.innerHTML=i.replace(/\/n/gi,"<br />"),this.closeBtn&&(this.closeBtn.style.display="block"),setTimeout(function(){e.trigger("end-dynamic-text")},100),!0},this.endDynamicText=function(){return this.typingFx&&t.default.Audio.fx.stop(this.typingFx),this.isActive=!1,this.closeBtn&&(this.closeBtn.style.display="block"),this.trigger("end-dynamic-text"),!0}};r.prototype=Object.create(t.default.Events.Emitter.prototype),r.prototype.constructor=r;const n=new r;var h=n;exports.default=h;
},{"@dreamirl/dreamengine":"wSMf","./index.css":"6DSZ"}],"QL/p":[function(require,module,exports) {
var define;
var global = arguments[3];
var t,e=arguments[3];!function(i){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=i();else if("function"==typeof t&&t.amd)t([],i);else{("undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:this).pixiParticles=i()}}(function(){return function(){return function t(e,i,s){function a(n,o){if(!i[n]){if(!e[n]){var h="function"==typeof require&&require;if(!o&&h)return h(n,!0);if(r)return r(n,!0);var l=new Error("Cannot find module '"+n+"'");throw l.code="MODULE_NOT_FOUND",l}var p=i[n]={exports:{}};e[n][0].call(p.exports,function(t){return a(e[n][1][t]||t)},p,p.exports,t,e,i,s)}return i[n].exports}for(var r="function"==typeof require&&require,n=0;n<s.length;n++)a(s[n]);return a}}()({1:[function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();Object.defineProperty(i,"__esModule",{value:!0});var a=t("./Particle"),r=PIXI.Texture,n=function(t){function e(e){var i=t.call(this,e)||this;return i.textures=null,i.duration=0,i.framerate=0,i.elapsed=0,i.loop=!1,i}return s(e,t),e.prototype.init=function(){this.Particle_init(),this.elapsed=0,this.framerate<0&&(this.duration=this.maxLife,this.framerate=this.textures.length/this.duration)},e.prototype.applyArt=function(t){this.textures=t.textures,this.framerate=t.framerate,this.duration=t.duration,this.loop=t.loop},e.prototype.update=function(t){var e=this.Particle_update(t);if(e>=0){this.elapsed+=t,this.elapsed>this.duration&&(this.loop?this.elapsed=this.elapsed%this.duration:this.elapsed=this.duration-1e-6);var i=this.elapsed*this.framerate+1e-7|0;this.texture=this.textures[i]||PIXI.Texture.EMPTY}return e},e.prototype.destroy=function(){this.Particle_destroy(),this.textures=null},e.parseArt=function(t){for(var e,i,s,a,n,o=[],h=0;h<t.length;++h){e=t[h],o[h]=i={},i.textures=n=[],s=e.textures;for(var l=0;l<s.length;++l)if("string"==typeof(a=s[l]))n.push(r.fromImage(a));else if(a instanceof r)n.push(a);else{var p=a.count||1;for(a="string"==typeof a.texture?r.fromImage(a.texture):a.texture;p>0;--p)n.push(a)}"matchLife"==e.framerate?(i.framerate=-1,i.duration=0,i.loop=!1):(i.loop=!!e.loop,i.framerate=e.framerate>0?e.framerate:60,i.duration=n.length/i.framerate)}return o},e}(a.default);i.default=n},{"./Particle":3}],2:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var s=t("./ParticleUtils"),a=t("./Particle"),r=t("./PropertyNode"),n=PIXI.ticker.shared,o=new PIXI.Point,h=function(){function t(t,e,i){this._particleConstructor=a.default,this.particleImages=null,this.startAlpha=null,this.startSpeed=null,this.minimumSpeedMultiplier=1,this.acceleration=null,this.maxSpeed=NaN,this.startScale=null,this.minimumScaleMultiplier=1,this.startColor=null,this.minLifetime=0,this.maxLifetime=0,this.minStartRotation=0,this.maxStartRotation=0,this.noRotation=!1,this.minRotationSpeed=0,this.maxRotationSpeed=0,this.particleBlendMode=0,this.customEase=null,this.extraData=null,this._frequency=1,this.spawnChance=1,this.maxParticles=1e3,this.emitterLifetime=-1,this.spawnPos=null,this.spawnType=null,this._spawnFunc=null,this.spawnRect=null,this.spawnCircle=null,this.particlesPerWave=1,this.particleSpacing=0,this.angleStart=0,this.rotation=0,this.ownerPos=null,this._prevEmitterPos=null,this._prevPosIsValid=!1,this._posChanged=!1,this._parent=null,this.addAtBack=!1,this.particleCount=0,this._emit=!1,this._spawnTimer=0,this._emitterLife=-1,this._activeParticlesFirst=null,this._activeParticlesLast=null,this._poolFirst=null,this._origConfig=null,this._origArt=null,this._autoUpdate=!1,this._destroyWhenComplete=!1,this._completeCallback=null,this.parent=t,e&&i&&this.init(e,i),this.recycle=this.recycle,this.update=this.update,this.rotate=this.rotate,this.updateSpawnPos=this.updateSpawnPos,this.updateOwnerPos=this.updateOwnerPos}return Object.defineProperty(t.prototype,"frequency",{get:function(){return this._frequency},set:function(t){this._frequency="number"==typeof t&&t>0?t:1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"particleConstructor",{get:function(){return this._particleConstructor},set:function(t){if(t!=this._particleConstructor){this._particleConstructor=t,this.cleanup();for(var e=this._poolFirst;e;e=e.next)e.destroy();this._poolFirst=null,this._origConfig&&this._origArt&&this.init(this._origArt,this._origConfig)}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},set:function(t){this.cleanup(),this._parent=t},enumerable:!0,configurable:!0}),t.prototype.init=function(t,e){if(t&&e){this.cleanup(),this._origConfig=e,this._origArt=t,t=Array.isArray(t)?t.slice():[t];var i=this._particleConstructor;this.particleImages=i.parseArt?i.parseArt(t):t,e.alpha?this.startAlpha=r.default.createList(e.alpha):this.startAlpha=new r.default(1,0),e.speed?(this.startSpeed=r.default.createList(e.speed),this.minimumSpeedMultiplier=e.speed.minimumSpeedMultiplier||1):(this.minimumSpeedMultiplier=1,this.startSpeed=new r.default(0,0));var a,n=e.acceleration;switch(n&&(n.x||n.y)?(this.startSpeed.next=null,this.acceleration=new PIXI.Point(n.x,n.y),this.maxSpeed=e.maxSpeed||NaN):this.acceleration=new PIXI.Point,e.scale?(this.startScale=r.default.createList(e.scale),this.minimumScaleMultiplier=e.scale.minimumScaleMultiplier||1):(this.startScale=new r.default(1,0),this.minimumScaleMultiplier=1),e.color?this.startColor=r.default.createList(e.color):this.startColor=new r.default({r:255,g:255,b:255},0),e.startRotation?(this.minStartRotation=e.startRotation.min,this.maxStartRotation=e.startRotation.max):this.minStartRotation=this.maxStartRotation=0,e.noRotation&&(this.minStartRotation||this.maxStartRotation)?this.noRotation=!!e.noRotation:this.noRotation=!1,e.rotationSpeed?(this.minRotationSpeed=e.rotationSpeed.min,this.maxRotationSpeed=e.rotationSpeed.max):this.minRotationSpeed=this.maxRotationSpeed=0,this.minLifetime=e.lifetime.min,this.maxLifetime=e.lifetime.max,this.particleBlendMode=s.default.getBlendMode(e.blendMode),e.ease?this.customEase="function"==typeof e.ease?e.ease:s.default.generateEase(e.ease):this.customEase=null,i.parseData?this.extraData=i.parseData(e.extraData):this.extraData=e.extraData||null,this.spawnRect=this.spawnCircle=null,this.particlesPerWave=1,e.particlesPerWave&&e.particlesPerWave>1&&(this.particlesPerWave=e.particlesPerWave),this.particleSpacing=0,this.angleStart=0,e.spawnType){case"rect":this.spawnType="rect",this._spawnFunc=this._spawnRect;var o=e.spawnRect;this.spawnRect=new PIXI.Rectangle(o.x,o.y,o.w,o.h);break;case"circle":this.spawnType="circle",this._spawnFunc=this._spawnCircle,a=e.spawnCircle,this.spawnCircle=new PIXI.Circle(a.x,a.y,a.r);break;case"ring":this.spawnType="ring",this._spawnFunc=this._spawnRing,a=e.spawnCircle,this.spawnCircle=new PIXI.Circle(a.x,a.y,a.r),this.spawnCircle.minRadius=a.minR;break;case"burst":this.spawnType="burst",this._spawnFunc=this._spawnBurst,this.particleSpacing=e.particleSpacing,this.angleStart=e.angleStart?e.angleStart:0;break;case"point":default:this.spawnType="point",this._spawnFunc=this._spawnPoint}this.frequency=e.frequency,this.spawnChance="number"==typeof e.spawnChance&&e.spawnChance>0?e.spawnChance:1,this.emitterLifetime=e.emitterLifetime||-1,this.maxParticles=e.maxParticles>0?e.maxParticles:1e3,this.addAtBack=!!e.addAtBack,this.rotation=0,this.ownerPos=new PIXI.Point,this.spawnPos=new PIXI.Point(e.pos.x,e.pos.y),this._prevEmitterPos=this.spawnPos.clone(),this._prevPosIsValid=!1,this._spawnTimer=0,this.emit=void 0===e.emit||!!e.emit,this.autoUpdate=void 0!==e.autoUpdate&&!!e.autoUpdate}},t.prototype.recycle=function(t){t.next&&(t.next.prev=t.prev),t.prev&&(t.prev.next=t.next),t==this._activeParticlesLast&&(this._activeParticlesLast=t.prev),t==this._activeParticlesFirst&&(this._activeParticlesFirst=t.next),t.prev=null,t.next=this._poolFirst,this._poolFirst=t,t.parent&&t.parent.removeChild(t),--this.particleCount},t.prototype.rotate=function(t){if(this.rotation!=t){var e=t-this.rotation;this.rotation=t,s.default.rotatePoint(e,this.spawnPos),this._posChanged=!0}},t.prototype.updateSpawnPos=function(t,e){this._posChanged=!0,this.spawnPos.x=t,this.spawnPos.y=e},t.prototype.updateOwnerPos=function(t,e){this._posChanged=!0,this.ownerPos.x=t,this.ownerPos.y=e},t.prototype.resetPositionTracking=function(){this._prevPosIsValid=!1},Object.defineProperty(t.prototype,"emit",{get:function(){return this._emit},set:function(t){this._emit=!!t,this._emitterLife=this.emitterLifetime},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"autoUpdate",{get:function(){return this._autoUpdate},set:function(t){this._autoUpdate&&!t?n.remove(this.update,this):!this._autoUpdate&&t&&n.add(this.update,this),this._autoUpdate=!!t},enumerable:!0,configurable:!0}),t.prototype.playOnceAndDestroy=function(t){this.autoUpdate=!0,this.emit=!0,this._destroyWhenComplete=!0,this._completeCallback=t},t.prototype.playOnce=function(t){this.emit=!0,this._completeCallback=t},t.prototype.update=function(t){if(this._autoUpdate&&(t=t/PIXI.settings.TARGET_FPMS/1e3),this._parent){var e,i,s,a,r;for(i=this._activeParticlesFirst;i;i=s)s=i.next,i.update(t);this._prevPosIsValid&&(a=this._prevEmitterPos.x,r=this._prevEmitterPos.y);var n=this.ownerPos.x+this.spawnPos.x,o=this.ownerPos.y+this.spawnPos.y;if(this._emit)for(this._spawnTimer-=t<0?0:t;this._spawnTimer<=0;){if(this._emitterLife>0&&(this._emitterLife-=this._frequency,this._emitterLife<=0)){this._spawnTimer=0,this._emitterLife=0,this.emit=!1;break}if(this.particleCount>=this.maxParticles)this._spawnTimer+=this._frequency;else{var h;if(h=this.minLifetime==this.maxLifetime?this.minLifetime:Math.random()*(this.maxLifetime-this.minLifetime)+this.minLifetime,-this._spawnTimer<h){var l=void 0,p=void 0;if(this._prevPosIsValid&&this._posChanged){var c=1+this._spawnTimer/t;l=(n-a)*c+a,p=(o-r)*c+r}else l=n,p=o;e=0;for(var u=Math.min(this.particlesPerWave,this.maxParticles-this.particleCount);e<u;++e)if(!(this.spawnChance<1&&Math.random()>=this.spawnChance)){var d=void 0;if(this._poolFirst?(d=this._poolFirst,this._poolFirst=this._poolFirst.next,d.next=null):d=new this.particleConstructor(this),this.particleImages.length>1?d.applyArt(this.particleImages[Math.floor(Math.random()*this.particleImages.length)]):d.applyArt(this.particleImages[0]),d.alphaList.reset(this.startAlpha),1!=this.minimumSpeedMultiplier&&(d.speedMultiplier=Math.random()*(1-this.minimumSpeedMultiplier)+this.minimumSpeedMultiplier),d.speedList.reset(this.startSpeed),d.acceleration.x=this.acceleration.x,d.acceleration.y=this.acceleration.y,d.maxSpeed=this.maxSpeed,1!=this.minimumScaleMultiplier&&(d.scaleMultiplier=Math.random()*(1-this.minimumScaleMultiplier)+this.minimumScaleMultiplier),d.scaleList.reset(this.startScale),d.colorList.reset(this.startColor),this.minRotationSpeed==this.maxRotationSpeed?d.rotationSpeed=this.minRotationSpeed:d.rotationSpeed=Math.random()*(this.maxRotationSpeed-this.minRotationSpeed)+this.minRotationSpeed,d.noRotation=this.noRotation,d.maxLife=h,d.blendMode=this.particleBlendMode,d.ease=this.customEase,d.extraData=this.extraData,this._spawnFunc(d,l,p,e),d.init(),d.update(-this._spawnTimer),d.parent){var f=this._parent.children;if(f[0]==d)f.shift();else if(f[f.length-1]==d)f.pop();else{var m=f.indexOf(d);f.splice(m,1)}this.addAtBack?f.unshift(d):f.push(d)}else this.addAtBack?this._parent.addChildAt(d,0):this._parent.addChild(d);this._activeParticlesLast?(this._activeParticlesLast.next=d,d.prev=this._activeParticlesLast,this._activeParticlesLast=d):this._activeParticlesLast=this._activeParticlesFirst=d,++this.particleCount}}this._spawnTimer+=this._frequency}}this._posChanged&&(this._prevEmitterPos.x=n,this._prevEmitterPos.y=o,this._prevPosIsValid=!0,this._posChanged=!1),this._emit||this._activeParticlesFirst||(this._completeCallback&&this._completeCallback(),this._destroyWhenComplete&&this.destroy())}},t.prototype._spawnPoint=function(t,e,i){this.minStartRotation==this.maxStartRotation?t.rotation=this.minStartRotation+this.rotation:t.rotation=Math.random()*(this.maxStartRotation-this.minStartRotation)+this.minStartRotation+this.rotation,t.position.x=e,t.position.y=i},t.prototype._spawnRect=function(t,e,i){this.minStartRotation==this.maxStartRotation?t.rotation=this.minStartRotation+this.rotation:t.rotation=Math.random()*(this.maxStartRotation-this.minStartRotation)+this.minStartRotation+this.rotation,o.x=Math.random()*this.spawnRect.width+this.spawnRect.x,o.y=Math.random()*this.spawnRect.height+this.spawnRect.y,0!==this.rotation&&s.default.rotatePoint(this.rotation,o),t.position.x=e+o.x,t.position.y=i+o.y},t.prototype._spawnCircle=function(t,e,i){this.minStartRotation==this.maxStartRotation?t.rotation=this.minStartRotation+this.rotation:t.rotation=Math.random()*(this.maxStartRotation-this.minStartRotation)+this.minStartRotation+this.rotation,o.x=Math.random()*this.spawnCircle.radius,o.y=0,s.default.rotatePoint(360*Math.random(),o),o.x+=this.spawnCircle.x,o.y+=this.spawnCircle.y,0!==this.rotation&&s.default.rotatePoint(this.rotation,o),t.position.x=e+o.x,t.position.y=i+o.y},t.prototype._spawnRing=function(t,e,i){var a=this.spawnCircle;this.minStartRotation==this.maxStartRotation?t.rotation=this.minStartRotation+this.rotation:t.rotation=Math.random()*(this.maxStartRotation-this.minStartRotation)+this.minStartRotation+this.rotation,a.minRadius!==a.radius?o.x=Math.random()*(a.radius-a.minRadius)+a.minRadius:o.x=a.radius,o.y=0;var r=360*Math.random();t.rotation+=r,s.default.rotatePoint(r,o),o.x+=this.spawnCircle.x,o.y+=this.spawnCircle.y,0!==this.rotation&&s.default.rotatePoint(this.rotation,o),t.position.x=e+o.x,t.position.y=i+o.y},t.prototype._spawnBurst=function(t,e,i,s){0===this.particleSpacing?t.rotation=360*Math.random():t.rotation=this.angleStart+this.particleSpacing*s+this.rotation,t.position.x=e,t.position.y=i},t.prototype.cleanup=function(){var t,e;for(t=this._activeParticlesFirst;t;t=e)e=t.next,this.recycle(t),t.parent&&t.parent.removeChild(t);this._activeParticlesFirst=this._activeParticlesLast=null,this.particleCount=0},t.prototype.destroy=function(){this.autoUpdate=!1,this.cleanup();for(var t,e=this._poolFirst;e;e=t)t=e.next,e.destroy();this._poolFirst=this._parent=this.particleImages=this.spawnPos=this.ownerPos=this.startColor=this.startScale=this.startAlpha=this.startSpeed=this.customEase=this._completeCallback=null},t}();i.default=h},{"./Particle":3,"./ParticleUtils":4,"./PropertyNode":7}],3:[function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();Object.defineProperty(i,"__esModule",{value:!0});var a=t("./ParticleUtils"),r=t("./PropertyList"),n=function(t){function e(i){var s=t.call(this)||this;return s.emitter=i,s.anchor.x=s.anchor.y=.5,s.velocity=new PIXI.Point,s.maxLife=0,s.age=0,s.ease=null,s.extraData=null,s.alphaList=new r.default,s.speedList=new r.default,s.speedMultiplier=1,s.acceleration=new PIXI.Point,s.maxSpeed=NaN,s.scaleList=new r.default,s.scaleMultiplier=1,s.colorList=new r.default(!0),s._doAlpha=!1,s._doScale=!1,s._doSpeed=!1,s._doAcceleration=!1,s._doColor=!1,s._doNormalMovement=!1,s._oneOverLife=0,s.next=null,s.prev=null,s.init=s.init,s.Particle_init=e.prototype.init,s.update=s.update,s.Particle_update=e.prototype.update,s.Sprite_destroy=t.prototype.destroy,s.Particle_destroy=e.prototype.destroy,s.applyArt=s.applyArt,s.kill=s.kill,s}return s(e,t),e.prototype.init=function(){this.age=0,this.velocity.x=this.speedList.current.value*this.speedMultiplier,this.velocity.y=0,a.default.rotatePoint(this.rotation,this.velocity),this.noRotation?this.rotation=0:this.rotation*=a.default.DEG_TO_RADS,this.rotationSpeed*=a.default.DEG_TO_RADS,this.alpha=this.alphaList.current.value,this.scale.x=this.scale.y=this.scaleList.current.value,this._doAlpha=!!this.alphaList.current.next,this._doSpeed=!!this.speedList.current.next,this._doScale=!!this.scaleList.current.next,this._doColor=!!this.colorList.current.next,this._doAcceleration=0!==this.acceleration.x||0!==this.acceleration.y,this._doNormalMovement=this._doSpeed||0!==this.speedList.current.value||this._doAcceleration,this._oneOverLife=1/this.maxLife;var t=this.colorList.current.value;this.tint=a.default.combineRGBComponents(t.r,t.g,t.b),this.visible=!0},e.prototype.applyArt=function(t){this.texture=t||PIXI.Texture.EMPTY},e.prototype.update=function(t){if(this.age+=t,this.age>=this.maxLife||this.age<0)return this.kill(),-1;var e=this.age*this._oneOverLife;if(this.ease&&(e=4==this.ease.length?this.ease(e,0,1,1):this.ease(e)),this._doAlpha&&(this.alpha=this.alphaList.interpolate(e)),this._doScale){var i=this.scaleList.interpolate(e)*this.scaleMultiplier;this.scale.x=this.scale.y=i}if(this._doNormalMovement){if(this._doSpeed){var s=this.speedList.interpolate(e)*this.speedMultiplier;a.default.normalize(this.velocity),a.default.scaleBy(this.velocity,s)}else if(this._doAcceleration&&(this.velocity.x+=this.acceleration.x*t,this.velocity.y+=this.acceleration.y*t,this.maxSpeed)){var r=a.default.length(this.velocity);r>this.maxSpeed&&a.default.scaleBy(this.velocity,this.maxSpeed/r)}this.position.x+=this.velocity.x*t,this.position.y+=this.velocity.y*t}return this._doColor&&(this.tint=this.colorList.interpolate(e)),0!==this.rotationSpeed?this.rotation+=this.rotationSpeed*t:this.acceleration&&!this.noRotation&&(this.rotation=Math.atan2(this.velocity.y,this.velocity.x)),e},e.prototype.kill=function(){this.emitter.recycle(this)},e.prototype.destroy=function(){this.parent&&this.parent.removeChild(this),this.Sprite_destroy(),this.emitter=this.velocity=this.colorList=this.scaleList=this.alphaList=this.speedList=this.ease=this.next=this.prev=null},e.parseArt=function(t){var e;for(e=t.length;e>=0;--e)"string"==typeof t[e]&&(t[e]=PIXI.Texture.fromImage(t[e]));if(a.default.verbose)for(e=t.length-1;e>0;--e)if(t[e].baseTexture!=t[e-1].baseTexture){window.console&&console.warn("PixiParticles: using particle textures from different images may hinder performance in WebGL");break}return t},e.parseData=function(t){return t},e}(PIXI.Sprite);i.default=n},{"./ParticleUtils":4,"./PropertyList":6}],4:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var s=PIXI.BLEND_MODES,a=t("./PropertyNode"),r={verbose:!1,DEG_TO_RADS:Math.PI/180,rotatePoint:function(t,e){if(t){t*=r.DEG_TO_RADS;var i=Math.sin(t),s=Math.cos(t),a=e.x*s-e.y*i,n=e.x*i+e.y*s;e.x=a,e.y=n}},combineRGBComponents:function(t,e,i){return t<<16|e<<8|i},normalize:function(t){var e=1/r.length(t);t.x*=e,t.y*=e},scaleBy:function(t,e){t.x*=e,t.y*=e},length:function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},hexToRGB:function(t,e){var i;return e||(e={}),"#"==t.charAt(0)?t=t.substr(1):0===t.indexOf("0x")&&(t=t.substr(2)),8==t.length&&(i=t.substr(0,2),t=t.substr(2)),e.r=parseInt(t.substr(0,2),16),e.g=parseInt(t.substr(2,2),16),e.b=parseInt(t.substr(4,2),16),i&&(e.a=parseInt(i,16)),e},generateEase:function(t){var e=t.length,i=1/e;return function(s){var a,r,n=e*s|0;return a=(s-n*i)*e,(r=t[n]||t[e-1]).s+a*(2*(1-a)*(r.cp-r.s)+a*(r.e-r.s))}},getBlendMode:function(t){if(!t)return s.NORMAL;for(t=t.toUpperCase();t.indexOf(" ")>=0;)t=t.replace(" ","_");return s[t]||s.NORMAL},createSteppedGradient:function(t,e){void 0===e&&(e=10),("number"!=typeof e||e<=0)&&(e=10);var i=new a.default(t[0].value,t[0].time);i.isStepped=!0;for(var s=i,n=t[0],o=1,h=t[o],l=1;l<e;++l){for(var p=l/e;p>h.time;)n=h,h=t[++o];p=(p-n.time)/(h.time-n.time);var c=r.hexToRGB(n.value),u=r.hexToRGB(h.value),d={};d.r=(u.r-c.r)*p+c.r,d.g=(u.g-c.g)*p+c.g,d.b=(u.b-c.b)*p+c.b,s.next=new a.default(d,l/e),s=s.next}return i}};i.default=r},{"./PropertyNode":7}],5:[function(t,e,i){"use strict";var s=this&&this.__extends||function(){var t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)e.hasOwnProperty(i)&&(t[i]=e[i])};return function(e,i){function s(){this.constructor=e}t(e,i),e.prototype=null===i?Object.create(i):(s.prototype=i.prototype,new s)}}();Object.defineProperty(i,"__esModule",{value:!0});var a=t("./ParticleUtils"),r=t("./Particle"),n=new PIXI.Point,o=["pow","sqrt","abs","floor","round","ceil","E","PI","sin","cos","tan","asin","acos","atan","atan2","log"],h=new RegExp(["[01234567890\\.\\*\\-\\+\\/\\(\\)x ,]"].concat(o).join("|"),"g"),l=function(t){function e(e){var i=t.call(this,e)||this;return i.path=null,i.initialRotation=0,i.initialPosition=new PIXI.Point,i.movement=0,i}return s(e,t),e.prototype.init=function(){this.initialRotation=this.rotation,this.Particle_init(),this.path=this.extraData.path,this._doNormalMovement=!this.path,this.movement=0,this.initialPosition.x=this.position.x,this.initialPosition.y=this.position.y},e.prototype.update=function(t){var e=this.Particle_update(t);if(e>=0&&this.path){var i=this.speedList.interpolate(e)*this.speedMultiplier;this.movement+=i*t,n.x=this.movement,n.y=this.path(this.movement),a.default.rotatePoint(this.initialRotation,n),this.position.x=this.initialPosition.x+n.x,this.position.y=this.initialPosition.y+n.y}return e},e.prototype.destroy=function(){this.Particle_destroy(),this.path=this.initialPosition=null},e.parseArt=function(t){return r.default.parseArt(t)},e.parseData=function(t){var e={};if(t&&t.path)try{e.path=function(t){for(var e=t.match(h),i=e.length-1;i>=0;--i)o.indexOf(e[i])>=0&&(e[i]="Math."+e[i]);return t=e.join(""),new Function("x","return "+t+";")}(t.path)}catch(t){a.default.verbose&&console.error("PathParticle: error in parsing path expression"),e.path=null}else a.default.verbose&&console.error("PathParticle requires a path string in extraData!"),e.path=null;return e},e}(r.default);i.default=l},{"./Particle":3,"./ParticleUtils":4}],6:[function(t,e,i){"use strict";function s(t){return this.ease&&(t=this.ease(t)),(this.next.value-this.current.value)*t+this.current.value}function a(t){this.ease&&(t=this.ease(t));var e=this.current.value,i=this.next.value,s=(i.r-e.r)*t+e.r,a=(i.g-e.g)*t+e.g,r=(i.b-e.b)*t+e.b;return l.default.combineRGBComponents(s,a,r)}function r(t){for(this.ease&&(t=this.ease(t));t>this.next.time;)this.current=this.next,this.next=this.next.next;return t=(t-this.current.time)/(this.next.time-this.current.time),(this.next.value-this.current.value)*t+this.current.value}function n(t){for(this.ease&&(t=this.ease(t));t>this.next.time;)this.current=this.next,this.next=this.next.next;t=(t-this.current.time)/(this.next.time-this.current.time);var e=this.current.value,i=this.next.value,s=(i.r-e.r)*t+e.r,a=(i.g-e.g)*t+e.g,r=(i.b-e.b)*t+e.b;return l.default.combineRGBComponents(s,a,r)}function o(t){for(this.ease&&(t=this.ease(t));this.next&&t>this.next.time;)this.current=this.next,this.next=this.next.next;return this.current.value}function h(t){for(this.ease&&(t=this.ease(t));this.next&&t>this.next.time;)this.current=this.next,this.next=this.next.next;var e=this.current.value;return l.default.combineRGBComponents(e.r,e.g,e.b)}Object.defineProperty(i,"__esModule",{value:!0});var l=t("./ParticleUtils"),p=function(){function t(t){void 0===t&&(t=!1),this.current=null,this.next=null,this.isColor=!!t,this.interpolate=null,this.ease=null}return t.prototype.reset=function(t){this.current=t,this.next=t.next,this.next&&this.next.time>=1?this.interpolate=this.isColor?a:s:t.isStepped?this.interpolate=this.isColor?h:o:this.interpolate=this.isColor?n:r,this.ease=this.current.ease},t}();i.default=p},{"./ParticleUtils":4}],7:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var s=t("./ParticleUtils"),a=function(){function t(t,e,i){this.value="string"==typeof t?s.default.hexToRGB(t):t,this.time=e,this.next=null,this.isStepped=!1,this.ease=i?"function"==typeof i?i:s.default.generateEase(i):null}return t.createList=function(e){if(Array.isArray(e.list)){var i=e.list,s=void 0,a=void 0;if(a=s=new t(i[0].value,i[0].time,e.ease),i.length>2||2===i.length&&i[1].value!==i[0].value)for(var r=1;r<i.length;++r)s.next=new t(i[r].value,i[r].time),s=s.next;return a.isStepped=!!e.isStepped,a}var n=new t(e.start,0);return e.end!==e.start&&(n.next=new t(e.end,1)),n},t}();i.default=a},{"./ParticleUtils":4}],8:[function(t,e,i){"use strict";Object.defineProperty(i,"__esModule",{value:!0});var s=t("./ParticleUtils.js");i.ParticleUtils=s.default;var a=t("./Particle.js");i.Particle=a.default;var r=t("./Emitter.js");i.Emitter=r.default;var n=t("./PathParticle.js");i.PathParticle=n.default;var o=t("./AnimatedParticle.js");i.AnimatedParticle=o.default},{"./AnimatedParticle.js":1,"./Emitter.js":2,"./Particle.js":3,"./ParticleUtils.js":4,"./PathParticle.js":5}],9:[function(t,e,i){"use strict";if(Object.defineProperty(i,"__esModule",{value:!0}),"undefined"==typeof PIXI)throw"pixi-particles requires pixi.js to be loaded first";PIXI.particles||(PIXI.particles={});var s=t("./particles");for(var a in s)PIXI.particles[a]=s[a];void 0!==e&&e.exports&&(e.exports=s)},{"./particles":8}]},{},[9])(9)});
},{}],"VcuM":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=i(require("@dreamirl/dreamengine")),t=r(require("pixi-particles"));function r(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var i=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};i.get||i.set?Object.defineProperty(t,r,i):t[r]=e[r]}return t.default=e,t}function i(e){return e&&e.__esModule?e:{default:e}}function a(r,i,a){e.default.GameObject.call(this,r||{});var o=a.map(t=>{if(!e.default.PIXI.loader.resources[t]||!e.default.PIXI.loader.resources[t].url||!e.default.PIXI.utils.TextureCache[e.default.PIXI.loader.resources[t].url])throw new Error("Try to use an image in the ParticlesEmitter that doesn't exist in the PIXI TextureCache or loader. Make sure it exist and you loaded the image: "+t);return e.default.PIXI.utils.TextureCache[e.default.PIXI.loader.resources[t].url]});this.emitter=new t.Emitter(this,o,i),this.addAutomatism("upEm","upEm"),this.enable=!1}a.prototype=new e.default.GameObject,a.constructor=a,a.supr=e.default.GameObject.prototype,a.prototype.upEm=function(){this.emitter.update(.001*e.default.Time.timeSinceLastFrameScaled)},a.prototype.stop=function(){this.enable=!1,this.emitter.cleanup(),this.emitter.resetPositionTracking()},a.prototype.start=function(){this.elapsed=Date.now(),this.enable=!0,this.emitter.cleanup(),this.emitter.resetPositionTracking()};var o=a;exports.default=o;
},{"@dreamirl/dreamengine":"wSMf","pixi-particles":"QL/p"}],"Gp90":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.AdjustmentFilter=void 0;var t=require("pixi.js"),r="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n}",n="varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\n\nuniform float gamma;\nuniform float contrast;\nuniform float saturation;\nuniform float brightness;\nuniform float red;\nuniform float green;\nuniform float blue;\nuniform float alpha;\n\nvoid main(void)\n{\n    vec4 c = texture2D(uSampler, vTextureCoord);\n\n    if (c.a > 0.0) {\n        c.rgb /= c.a;\n\n        vec3 rgb = pow(c.rgb, vec3(1. / gamma));\n        rgb = mix(vec3(.5), mix(vec3(dot(vec3(.2125, .7154, .0721), rgb)), rgb, saturation), contrast);\n        rgb.r *= red;\n        rgb.g *= green;\n        rgb.b *= blue;\n        c.rgb = rgb * brightness;\n\n        c.rgb *= c.a;\n    }\n\n    gl_FragColor = c * alpha;\n}\n",e=function(t){function e(e){t.call(this,r,n),Object.assign(this,{gamma:1,saturation:1,contrast:1,brightness:1,red:1,green:1,blue:1,alpha:1},e)}return t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e,e.prototype.apply=function(t,r,n,e){this.uniforms.gamma=Math.max(this.gamma,1e-4),this.uniforms.saturation=this.saturation,this.uniforms.contrast=this.contrast,this.uniforms.brightness=this.brightness,this.uniforms.red=this.red,this.uniforms.green=this.green,this.uniforms.blue=this.blue,this.uniforms.alpha=this.alpha,t.applyFilter(this,r,n,e)},e}(t.Filter);exports.AdjustmentFilter=e;
},{"pixi.js":"ix37"}],"yoJV":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.KawaseBlurFilter=void 0;var e=require("pixi.js"),t="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n}",r="\nvarying vec2 vTextureCoord;\nuniform sampler2D uSampler;\n\nuniform vec2 uOffset;\n\nvoid main(void)\n{\n    vec4 color = vec4(0.0);\n\n    // Sample top left pixel\n    color += texture2D(uSampler, vec2(vTextureCoord.x - uOffset.x, vTextureCoord.y + uOffset.y));\n\n    // Sample top right pixel\n    color += texture2D(uSampler, vec2(vTextureCoord.x + uOffset.x, vTextureCoord.y + uOffset.y));\n\n    // Sample bottom right pixel\n    color += texture2D(uSampler, vec2(vTextureCoord.x + uOffset.x, vTextureCoord.y - uOffset.y));\n\n    // Sample bottom left pixel\n    color += texture2D(uSampler, vec2(vTextureCoord.x - uOffset.x, vTextureCoord.y - uOffset.y));\n\n    // Average\n    color *= 0.25;\n\n    gl_FragColor = color;\n}",i="\nvarying vec2 vTextureCoord;\nuniform sampler2D uSampler;\n\nuniform vec2 uOffset;\nuniform vec4 filterClamp;\n\nvoid main(void)\n{\n    vec4 color = vec4(0.0);\n\n    // Sample top left pixel\n    color += texture2D(uSampler, clamp(vec2(vTextureCoord.x - uOffset.x, vTextureCoord.y + uOffset.y), filterClamp.xy, filterClamp.zw));\n\n    // Sample top right pixel\n    color += texture2D(uSampler, clamp(vec2(vTextureCoord.x + uOffset.x, vTextureCoord.y + uOffset.y), filterClamp.xy, filterClamp.zw));\n\n    // Sample bottom right pixel\n    color += texture2D(uSampler, clamp(vec2(vTextureCoord.x + uOffset.x, vTextureCoord.y - uOffset.y), filterClamp.xy, filterClamp.zw));\n\n    // Sample bottom left pixel\n    color += texture2D(uSampler, clamp(vec2(vTextureCoord.x - uOffset.x, vTextureCoord.y - uOffset.y), filterClamp.xy, filterClamp.zw));\n\n    // Average\n    color *= 0.25;\n\n    gl_FragColor = color;\n}\n",o=function(o){function n(n,l,u){void 0===n&&(n=4),void 0===l&&(l=3),void 0===u&&(u=!1),o.call(this,t,u?i:r),this.uniforms.uOffset=new Float32Array(2),this._pixelSize=new e.Point,this.pixelSize=1,this._clamp=u,this._kernels=null,Array.isArray(n)?this.kernels=n:(this._blur=n,this.quality=l)}o&&(n.__proto__=o),n.prototype=Object.create(o&&o.prototype),n.prototype.constructor=n;var l={kernels:{configurable:!0},clamp:{configurable:!0},pixelSize:{configurable:!0},quality:{configurable:!0},blur:{configurable:!0}};return n.prototype.apply=function(e,t,r,i){var o,n=this.pixelSize.x/t.size.width,l=this.pixelSize.y/t.size.height;if(1===this._quality||0===this._blur)o=this._kernels[0]+.5,this.uniforms.uOffset[0]=o*n,this.uniforms.uOffset[1]=o*l,e.applyFilter(this,t,r,i);else{for(var u,s=e.getRenderTarget(!0),a=t,f=s,p=this._quality-1,x=0;x<p;x++)o=this._kernels[x]+.5,this.uniforms.uOffset[0]=o*n,this.uniforms.uOffset[1]=o*l,e.applyFilter(this,a,f,!0),u=a,a=f,f=u;o=this._kernels[p]+.5,this.uniforms.uOffset[0]=o*n,this.uniforms.uOffset[1]=o*l,e.applyFilter(this,a,r,i),e.returnRenderTarget(s)}},n.prototype._generateKernels=function(){var e=this._blur,t=this._quality,r=[e];if(e>0)for(var i=e,o=e/t,n=1;n<t;n++)i-=o,r.push(i);this._kernels=r},l.kernels.get=function(){return this._kernels},l.kernels.set=function(e){Array.isArray(e)&&e.length>0?(this._kernels=e,this._quality=e.length,this._blur=Math.max.apply(Math,e)):(this._kernels=[0],this._quality=1)},l.clamp.get=function(){return this._clamp},l.pixelSize.set=function(t){"number"==typeof t?(this._pixelSize.x=t,this._pixelSize.y=t):Array.isArray(t)?(this._pixelSize.x=t[0],this._pixelSize.y=t[1]):t instanceof e.Point?(this._pixelSize.x=t.x,this._pixelSize.y=t.y):(this._pixelSize.x=1,this._pixelSize.y=1)},l.pixelSize.get=function(){return this._pixelSize},l.quality.get=function(){return this._quality},l.quality.set=function(e){this._quality=Math.max(1,Math.round(e)),this._generateKernels()},l.blur.get=function(){return this._blur},l.blur.set=function(e){this._blur=e,this._generateKernels()},Object.defineProperties(n.prototype,l),n}(e.Filter);exports.KawaseBlurFilter=o;
},{"pixi.js":"ix37"}],"EoHV":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.AdvancedBloomFilter=void 0;var e=require("pixi.js"),t=require("@pixi/filter-kawase-blur"),r="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n}",o="\nuniform sampler2D uSampler;\nvarying vec2 vTextureCoord;\n\nuniform float threshold;\n\nvoid main() {\n    vec4 color = texture2D(uSampler, vTextureCoord);\n\n    // A simple & fast algorithm for getting brightness.\n    // It's inaccuracy , but good enought for this feature.\n    float _max = max(max(color.r, color.g), color.b);\n    float _min = min(min(color.r, color.g), color.b);\n    float brightness = (_max + _min) * 0.5;\n\n    if(brightness > threshold) {\n        gl_FragColor = color;\n    } else {\n        gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0);\n    }\n}\n",i=function(e){function t(t){void 0===t&&(t=.5),e.call(this,r,o),this.threshold=t}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var i={threshold:{configurable:!0}};return i.threshold.get=function(){return this.uniforms.threshold},i.threshold.set=function(e){this.uniforms.threshold=e},Object.defineProperties(t.prototype,i),t}(e.Filter),n="uniform sampler2D uSampler;\nvarying vec2 vTextureCoord;\n\nuniform sampler2D bloomTexture;\nuniform float bloomScale;\nuniform float brightness;\n\nvoid main() {\n    vec4 color = texture2D(uSampler, vTextureCoord);\n    color.rgb *= brightness;\n    vec4 bloomColor = vec4(texture2D(bloomTexture, vTextureCoord).rgb, 0.0);\n    bloomColor.rgb *= bloomScale;\n    gl_FragColor = color + bloomColor;\n}\n",l=function(o){function l(l){o.call(this,r,n),"number"==typeof l&&(l={threshold:l}),l=Object.assign({threshold:.5,bloomScale:1,brightness:1,kernels:null,blur:8,quality:4,pixelSize:1,resolution:e.settings.RESOLUTION},l),this.bloomScale=l.bloomScale,this.brightness=l.brightness;var s=l.kernels,u=l.blur,a=l.quality,c=l.pixelSize,h=l.resolution;this._extractFilter=new i(l.threshold),this._extractFilter.resolution=h,this._blurFilter=s?new t.KawaseBlurFilter(s):new t.KawaseBlurFilter(u,a),this.pixelSize=c,this.resolution=h}o&&(l.__proto__=o),l.prototype=Object.create(o&&o.prototype),l.prototype.constructor=l;var s={resolution:{configurable:!0},threshold:{configurable:!0},kernels:{configurable:!0},blur:{configurable:!0},quality:{configurable:!0},pixelSize:{configurable:!0}};return l.prototype.apply=function(e,t,r,o,i){var n=e.getRenderTarget(!0);this._extractFilter.apply(e,t,n,!0,i);var l=e.getRenderTarget(!0);this._blurFilter.apply(e,n,l,!0,i),this.uniforms.bloomScale=this.bloomScale,this.uniforms.brightness=this.brightness,this.uniforms.bloomTexture=l,e.applyFilter(this,t,r,o),e.returnRenderTarget(l),e.returnRenderTarget(n)},s.resolution.get=function(){return this._resolution},s.resolution.set=function(e){this._resolution=e,this._extractFilter&&(this._extractFilter.resolution=e),this._blurFilter&&(this._blurFilter.resolution=e)},s.threshold.get=function(){return this._extractFilter.threshold},s.threshold.set=function(e){this._extractFilter.threshold=e},s.kernels.get=function(){return this._blurFilter.kernels},s.kernels.set=function(e){this._blurFilter.kernels=e},s.blur.get=function(){return this._blurFilter.blur},s.blur.set=function(e){this._blurFilter.blur=e},s.quality.get=function(){return this._blurFilter.quality},s.quality.set=function(e){this._blurFilter.quality=e},s.pixelSize.get=function(){return this._blurFilter.pixelSize},s.pixelSize.set=function(e){this._blurFilter.pixelSize=e},Object.defineProperties(l.prototype,s),l}(e.Filter);exports.AdvancedBloomFilter=l;
},{"pixi.js":"ix37","@pixi/filter-kawase-blur":"yoJV"}],"eiAy":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.AsciiFilter=void 0;var e=require("pixi.js"),o="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n}",r="varying vec2 vTextureCoord;\n\nuniform vec4 filterArea;\nuniform float pixelSize;\nuniform sampler2D uSampler;\n\nvec2 mapCoord( vec2 coord )\n{\n    coord *= filterArea.xy;\n    coord += filterArea.zw;\n\n    return coord;\n}\n\nvec2 unmapCoord( vec2 coord )\n{\n    coord -= filterArea.zw;\n    coord /= filterArea.xy;\n\n    return coord;\n}\n\nvec2 pixelate(vec2 coord, vec2 size)\n{\n    return floor( coord / size ) * size;\n}\n\nvec2 getMod(vec2 coord, vec2 size)\n{\n    return mod( coord , size) / size;\n}\n\nfloat character(float n, vec2 p)\n{\n    p = floor(p*vec2(4.0, -4.0) + 2.5);\n    if (clamp(p.x, 0.0, 4.0) == p.x && clamp(p.y, 0.0, 4.0) == p.y)\n    {\n        if (int(mod(n/exp2(p.x + 5.0*p.y), 2.0)) == 1) return 1.0;\n    }\n    return 0.0;\n}\n\nvoid main()\n{\n    vec2 coord = mapCoord(vTextureCoord);\n\n    // get the rounded color..\n    vec2 pixCoord = pixelate(coord, vec2(pixelSize));\n    pixCoord = unmapCoord(pixCoord);\n\n    vec4 color = texture2D(uSampler, pixCoord);\n\n    // determine the character to use\n    float gray = (color.r + color.g + color.b) / 3.0;\n\n    float n =  65536.0;             // .\n    if (gray > 0.2) n = 65600.0;    // :\n    if (gray > 0.3) n = 332772.0;   // *\n    if (gray > 0.4) n = 15255086.0; // o\n    if (gray > 0.5) n = 23385164.0; // &\n    if (gray > 0.6) n = 15252014.0; // 8\n    if (gray > 0.7) n = 13199452.0; // @\n    if (gray > 0.8) n = 11512810.0; // #\n\n    // get the mod..\n    vec2 modd = getMod(coord, vec2(pixelSize));\n\n    gl_FragColor = color * character( n, vec2(-1.0) + modd * 2.0);\n\n}",n=function(e){function n(n){void 0===n&&(n=8),e.call(this,o,r),this.size=n}e&&(n.__proto__=e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n;var i={size:{configurable:!0}};return i.size.get=function(){return this.uniforms.pixelSize},i.size.set=function(e){this.uniforms.pixelSize=e},Object.defineProperties(n.prototype,i),n}(e.Filter);exports.AsciiFilter=n;
},{"pixi.js":"ix37"}],"Y5WT":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BevelFilter=void 0;var o=require("pixi.js"),t="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n}",r="precision mediump float;\n\nvarying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\n\nuniform float transformX;\nuniform float transformY;\nuniform vec3 lightColor;\nuniform float lightAlpha;\nuniform vec3 shadowColor;\nuniform float shadowAlpha;\n\nvoid main(void) {\n    vec2 transform = vec2(1.0 / filterArea) * vec2(transformX, transformY);\n    vec4 color = texture2D(uSampler, vTextureCoord);\n    float light = texture2D(uSampler, vTextureCoord - transform).a;\n    float shadow = texture2D(uSampler, vTextureCoord + transform).a;\n\n    color.rgb = mix(color.rgb, lightColor, clamp((color.a - light) * lightAlpha, 0.0, 1.0));\n    color.rgb = mix(color.rgb, shadowColor, clamp((color.a - shadow) * shadowAlpha, 0.0, 1.0));\n    gl_FragColor = vec4(color.rgb * color.a, color.a);\n}\n",i=function(i){function n(o){void 0===o&&(o={}),i.call(this,t,r),this.uniforms.lightColor=new Float32Array(3),this.uniforms.shadowColor=new Float32Array(3),o=Object.assign({rotation:45,thickness:2,lightColor:16777215,lightAlpha:.7,shadowColor:0,shadowAlpha:.7},o),this.rotation=o.rotation,this.thickness=o.thickness,this.lightColor=o.lightColor,this.lightAlpha=o.lightAlpha,this.shadowColor=o.shadowColor,this.shadowAlpha=o.shadowAlpha}i&&(n.__proto__=i),n.prototype=Object.create(i&&i.prototype),n.prototype.constructor=n;var e={rotation:{configurable:!0},thickness:{configurable:!0},lightColor:{configurable:!0},lightAlpha:{configurable:!0},shadowColor:{configurable:!0},shadowAlpha:{configurable:!0}};return n.prototype._updateTransform=function(){this.uniforms.transformX=this._thickness*Math.cos(this._angle),this.uniforms.transformY=this._thickness*Math.sin(this._angle)},e.rotation.get=function(){return this._angle/o.DEG_TO_RAD},e.rotation.set=function(t){this._angle=t*o.DEG_TO_RAD,this._updateTransform()},e.thickness.get=function(){return this._thickness},e.thickness.set=function(o){this._thickness=o,this._updateTransform()},e.lightColor.get=function(){return o.utils.rgb2hex(this.uniforms.lightColor)},e.lightColor.set=function(t){o.utils.hex2rgb(t,this.uniforms.lightColor)},e.lightAlpha.get=function(){return this.uniforms.lightAlpha},e.lightAlpha.set=function(o){this.uniforms.lightAlpha=o},e.shadowColor.get=function(){return o.utils.rgb2hex(this.uniforms.shadowColor)},e.shadowColor.set=function(t){o.utils.hex2rgb(t,this.uniforms.shadowColor)},e.shadowAlpha.get=function(){return this.uniforms.shadowAlpha},e.shadowAlpha.set=function(o){this.uniforms.shadowAlpha=o},Object.defineProperties(n.prototype,e),n}(o.Filter);exports.BevelFilter=i;
},{"pixi.js":"ix37"}],"N3id":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BloomFilter=void 0;var r=require("pixi.js"),t=r.filters,e=t.BlurXFilter,l=t.BlurYFilter,i=t.AlphaFilter,u=function(t){function u(u,o,n,b){var s,p;void 0===u&&(u=2),void 0===o&&(o=4),void 0===n&&(n=r.settings.RESOLUTION),void 0===b&&(b=5),t.call(this),"number"==typeof u?(s=u,p=u):u instanceof r.Point?(s=u.x,p=u.y):Array.isArray(u)&&(s=u[0],p=u[1]),this.blurXFilter=new e(s,o,n,b),this.blurYFilter=new l(p,o,n,b),this.blurYFilter.blendMode=r.BLEND_MODES.SCREEN,this.defaultFilter=new i}t&&(u.__proto__=t),u.prototype=Object.create(t&&t.prototype),u.prototype.constructor=u;var o={blur:{configurable:!0},blurX:{configurable:!0},blurY:{configurable:!0}};return u.prototype.apply=function(r,t,e){var l=r.getRenderTarget(!0);this.defaultFilter.apply(r,t,e),this.blurXFilter.apply(r,t,l),this.blurYFilter.apply(r,l,e),r.returnRenderTarget(l)},o.blur.get=function(){return this.blurXFilter.blur},o.blur.set=function(r){this.blurXFilter.blur=this.blurYFilter.blur=r},o.blurX.get=function(){return this.blurXFilter.blur},o.blurX.set=function(r){this.blurXFilter.blur=r},o.blurY.get=function(){return this.blurYFilter.blur},o.blurY.set=function(r){this.blurYFilter.blur=r},Object.defineProperties(u.prototype,o),u}(r.Filter);exports.BloomFilter=u;
},{"pixi.js":"ix37"}],"xMKp":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BulgePinchFilter=void 0;var e=require("pixi.js"),r="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n}",n="uniform float radius;\nuniform float strength;\nuniform vec2 center;\nuniform sampler2D uSampler;\nvarying vec2 vTextureCoord;\n\nuniform vec4 filterArea;\nuniform vec4 filterClamp;\nuniform vec2 dimensions;\n\nvoid main()\n{\n    vec2 coord = vTextureCoord * filterArea.xy;\n    coord -= center * dimensions.xy;\n    float distance = length(coord);\n    if (distance < radius) {\n        float percent = distance / radius;\n        if (strength > 0.0) {\n            coord *= mix(1.0, smoothstep(0.0, radius / distance, percent), strength * 0.75);\n        } else {\n            coord *= mix(1.0, pow(percent, 1.0 + strength * 0.75) * radius / distance, 1.0 - percent);\n        }\n    }\n    coord += center * dimensions.xy;\n    coord /= filterArea.xy;\n    vec2 clampedCoord = clamp(coord, filterClamp.xy, filterClamp.zw);\n    vec4 color = texture2D(uSampler, clampedCoord);\n    if (coord != clampedCoord) {\n        color *= max(0.0, 1.0 - length(coord - clampedCoord));\n    }\n\n    gl_FragColor = color;\n}\n",t=function(e){function t(t,o,i){e.call(this,r,n),this.uniforms.dimensions=new Float32Array(2),this.center=t||[.5,.5],this.radius="number"==typeof o?o:100,this.strength="number"==typeof i?i:1}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var o={radius:{configurable:!0},strength:{configurable:!0},center:{configurable:!0}};return t.prototype.apply=function(e,r,n,t){this.uniforms.dimensions[0]=r.sourceFrame.width,this.uniforms.dimensions[1]=r.sourceFrame.height,e.applyFilter(this,r,n,t)},o.radius.get=function(){return this.uniforms.radius},o.radius.set=function(e){this.uniforms.radius=e},o.strength.get=function(){return this.uniforms.strength},o.strength.set=function(e){this.uniforms.strength=e},o.center.get=function(){return this.uniforms.center},o.center.set=function(e){this.uniforms.center=e},Object.defineProperties(t.prototype,o),t}(e.Filter);exports.BulgePinchFilter=t;
},{"pixi.js":"ix37"}],"1sEd":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ColorMapFilter=void 0;var e=require("pixi.js"),i="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n}",t="varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform sampler2D colorMap;\nuniform float _mix;\nuniform float _size;\nuniform float _sliceSize;\nuniform float _slicePixelSize;\nuniform float _sliceInnerSize;\nvoid main() {\n    vec4 color = texture2D(uSampler, vTextureCoord.xy);\n\n    vec4 adjusted;\n    if (color.a > 0.0) {\n        color.rgb /= color.a;\n        float innerWidth = _size - 1.0;\n        float zSlice0 = min(floor(color.b * innerWidth), innerWidth);\n        float zSlice1 = min(zSlice0 + 1.0, innerWidth);\n        float xOffset = _slicePixelSize * 0.5 + color.r * _sliceInnerSize;\n        float s0 = xOffset + (zSlice0 * _sliceSize);\n        float s1 = xOffset + (zSlice1 * _sliceSize);\n        float yOffset = _sliceSize * 0.5 + color.g * (1.0 - _sliceSize);\n        vec4 slice0Color = texture2D(colorMap, vec2(s0,yOffset));\n        vec4 slice1Color = texture2D(colorMap, vec2(s1,yOffset));\n        float zOffset = fract(color.b * innerWidth);\n        adjusted = mix(slice0Color, slice1Color, zOffset);\n\n        color.rgb *= color.a;\n    }\n    gl_FragColor = vec4(mix(color, adjusted, _mix).rgb, color.a);\n\n}",o=function(o){function r(e,r,s){void 0===r&&(r=!1),void 0===s&&(s=1),o.call(this,i,t),this._size=0,this._sliceSize=0,this._slicePixelSize=0,this._sliceInnerSize=0,this._scaleMode=null,this._nearest=!1,this.nearest=r,this.mix=s,this.colorMap=e}o&&(r.__proto__=o),r.prototype=Object.create(o&&o.prototype),r.prototype.constructor=r;var s={colorSize:{configurable:!0},colorMap:{configurable:!0},nearest:{configurable:!0}};return r.prototype.apply=function(e,i,t,o){this.uniforms._mix=this.mix,e.applyFilter(this,i,t,o)},s.colorSize.get=function(){return this._size},s.colorMap.get=function(){return this._colorMap},s.colorMap.set=function(i){i instanceof e.Texture||(i=e.Texture.from(i)),i&&i.baseTexture&&(i.baseTexture.scaleMode=this._scaleMode,i.baseTexture.mipmap=!1,this._size=i.height,this._sliceSize=1/this._size,this._slicePixelSize=this._sliceSize/this._size,this._sliceInnerSize=this._slicePixelSize*(this._size-1),this.uniforms._size=this._size,this.uniforms._sliceSize=this._sliceSize,this.uniforms._slicePixelSize=this._slicePixelSize,this.uniforms._sliceInnerSize=this._sliceInnerSize,this.uniforms.colorMap=i),this._colorMap=i},s.nearest.get=function(){return this._nearest},s.nearest.set=function(i){this._nearest=i,this._scaleMode=i?e.SCALE_MODES.NEAREST:e.SCALE_MODES.LINEAR;var t=this._colorMap;t&&t.baseTexture&&(t.baseTexture._glTextures={},t.baseTexture.scaleMode=this._scaleMode,t.baseTexture.mipmap=!1,t._updateID++,t.baseTexture.emit("update",t.baseTexture))},r.prototype.updateColorMap=function(){var e=this._colorMap;e&&e.baseTexture&&(e._updateID++,e.baseTexture.emit("update",e.baseTexture),this.colorMap=e)},r.prototype.destroy=function(e){this._colorMap&&this._colorMap.destroy(e),o.prototype.destroy.call(this)},Object.defineProperties(r.prototype,s),r}(e.Filter);exports.ColorMapFilter=o;
},{"pixi.js":"ix37"}],"HIYV":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ColorReplaceFilter=void 0;var o=require("pixi.js"),r="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n}",e="varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec3 originalColor;\nuniform vec3 newColor;\nuniform float epsilon;\nvoid main(void) {\n    vec4 currentColor = texture2D(uSampler, vTextureCoord);\n    vec3 colorDiff = originalColor - (currentColor.rgb / max(currentColor.a, 0.0000000001));\n    float colorDistance = length(colorDiff);\n    float doReplace = step(colorDistance, epsilon);\n    gl_FragColor = vec4(mix(currentColor.rgb, (newColor + colorDiff) * currentColor.a, doReplace), currentColor.a);\n}\n",i=function(i){function n(o,n,t){void 0===o&&(o=16711680),void 0===n&&(n=0),void 0===t&&(t=.4),i.call(this,r,e),this.uniforms.originalColor=new Float32Array(3),this.uniforms.newColor=new Float32Array(3),this.originalColor=o,this.newColor=n,this.epsilon=t}i&&(n.__proto__=i),n.prototype=Object.create(i&&i.prototype),n.prototype.constructor=n;var t={originalColor:{configurable:!0},newColor:{configurable:!0},epsilon:{configurable:!0}};return t.originalColor.set=function(r){var e=this.uniforms.originalColor;"number"==typeof r?(o.utils.hex2rgb(r,e),this._originalColor=r):(e[0]=r[0],e[1]=r[1],e[2]=r[2],this._originalColor=o.utils.rgb2hex(e))},t.originalColor.get=function(){return this._originalColor},t.newColor.set=function(r){var e=this.uniforms.newColor;"number"==typeof r?(o.utils.hex2rgb(r,e),this._newColor=r):(e[0]=r[0],e[1]=r[1],e[2]=r[2],this._newColor=o.utils.rgb2hex(e))},t.newColor.get=function(){return this._newColor},t.epsilon.set=function(o){this.uniforms.epsilon=o},t.epsilon.get=function(){return this.uniforms.epsilon},Object.defineProperties(n.prototype,t),n}(o.Filter);exports.ColorReplaceFilter=i;
},{"pixi.js":"ix37"}],"TKeG":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ConvolutionFilter=void 0;var e=require("pixi.js"),t="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n}",r="precision mediump float;\n\nvarying mediump vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec2 texelSize;\nuniform float matrix[9];\n\nvoid main(void)\n{\n   vec4 c11 = texture2D(uSampler, vTextureCoord - texelSize); // top left\n   vec4 c12 = texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y - texelSize.y)); // top center\n   vec4 c13 = texture2D(uSampler, vec2(vTextureCoord.x + texelSize.x, vTextureCoord.y - texelSize.y)); // top right\n\n   vec4 c21 = texture2D(uSampler, vec2(vTextureCoord.x - texelSize.x, vTextureCoord.y)); // mid left\n   vec4 c22 = texture2D(uSampler, vTextureCoord); // mid center\n   vec4 c23 = texture2D(uSampler, vec2(vTextureCoord.x + texelSize.x, vTextureCoord.y)); // mid right\n\n   vec4 c31 = texture2D(uSampler, vec2(vTextureCoord.x - texelSize.x, vTextureCoord.y + texelSize.y)); // bottom left\n   vec4 c32 = texture2D(uSampler, vec2(vTextureCoord.x, vTextureCoord.y + texelSize.y)); // bottom center\n   vec4 c33 = texture2D(uSampler, vTextureCoord + texelSize); // bottom right\n\n   gl_FragColor =\n       c11 * matrix[0] + c12 * matrix[1] + c13 * matrix[2] +\n       c21 * matrix[3] + c22 * matrix[4] + c23 * matrix[5] +\n       c31 * matrix[6] + c32 * matrix[7] + c33 * matrix[8];\n\n   gl_FragColor.a = c22.a;\n}\n",o=function(e){function o(o,i,n){void 0===i&&(i=200),void 0===n&&(n=200),e.call(this,t,r),this.uniforms.texelSize=new Float32Array(2),this.uniforms.matrix=new Float32Array(9),void 0!==o&&(this.matrix=o),this.width=i,this.height=n}e&&(o.__proto__=e),o.prototype=Object.create(e&&e.prototype),o.prototype.constructor=o;var i={matrix:{configurable:!0},width:{configurable:!0},height:{configurable:!0}};return i.matrix.get=function(){return this.uniforms.matrix},i.matrix.set=function(e){var t=this;e.forEach(function(e,r){return t.uniforms.matrix[r]=e})},i.width.get=function(){return 1/this.uniforms.texelSize[0]},i.width.set=function(e){this.uniforms.texelSize[0]=1/e},i.height.get=function(){return 1/this.uniforms.texelSize[1]},i.height.set=function(e){this.uniforms.texelSize[1]=1/e},Object.defineProperties(o.prototype,i),o}(e.Filter);exports.ConvolutionFilter=o;
},{"pixi.js":"ix37"}],"EyEq":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CrossHatchFilter=void 0;var o=require("pixi.js"),r="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n}",n="precision mediump float;\n\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\n\nvoid main(void)\n{\n    float lum = length(texture2D(uSampler, vTextureCoord.xy).rgb);\n\n    gl_FragColor = vec4(1.0, 1.0, 1.0, 1.0);\n\n    if (lum < 1.00)\n    {\n        if (mod(gl_FragCoord.x + gl_FragCoord.y, 10.0) == 0.0)\n        {\n            gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);\n        }\n    }\n\n    if (lum < 0.75)\n    {\n        if (mod(gl_FragCoord.x - gl_FragCoord.y, 10.0) == 0.0)\n        {\n            gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);\n        }\n    }\n\n    if (lum < 0.50)\n    {\n        if (mod(gl_FragCoord.x + gl_FragCoord.y - 5.0, 10.0) == 0.0)\n        {\n            gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);\n        }\n    }\n\n    if (lum < 0.3)\n    {\n        if (mod(gl_FragCoord.x - gl_FragCoord.y - 5.0, 10.0) == 0.0)\n        {\n            gl_FragColor = vec4(0.0, 0.0, 0.0, 1.0);\n        }\n    }\n}\n",e=function(o){function e(){o.call(this,r,n)}return o&&(e.__proto__=o),e.prototype=Object.create(o&&o.prototype),e.prototype.constructor=e,e}(o.Filter);exports.CrossHatchFilter=e;
},{"pixi.js":"ix37"}],"jrYU":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CRTFilter=void 0;var n=require("pixi.js"),i="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n}",t="varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\n\nuniform vec4 filterArea;\nuniform vec2 dimensions;\n\nconst float SQRT_2 = 1.414213;\n\nconst float light = 1.0;\n\nuniform float curvature;\nuniform float lineWidth;\nuniform float lineContrast;\nuniform bool verticalLine;\nuniform float noise;\nuniform float noiseSize;\n\nuniform float vignetting;\nuniform float vignettingAlpha;\nuniform float vignettingBlur;\n\nuniform float seed;\nuniform float time;\n\nfloat rand(vec2 co) {\n    return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);\n}\n\nvoid main(void)\n{\n    vec2 pixelCoord = vTextureCoord.xy * filterArea.xy;\n    vec2 coord = pixelCoord / dimensions;\n\n    vec2 dir = vec2(coord - vec2(0.5, 0.5));\n\n    float _c = curvature > 0. ? curvature : 1.;\n    float k = curvature > 0. ?(length(dir * dir) * 0.25 * _c * _c + 0.935 * _c) : 1.;\n    vec2 uv = dir * k;\n\n    gl_FragColor = texture2D(uSampler, vTextureCoord);\n    vec3 rgb = gl_FragColor.rgb;\n\n\n    if (noise > 0.0 && noiseSize > 0.0)\n    {\n        pixelCoord.x = floor(pixelCoord.x / noiseSize);\n        pixelCoord.y = floor(pixelCoord.y / noiseSize);\n        float _noise = rand(pixelCoord * noiseSize * seed) - 0.5;\n        rgb += _noise * noise;\n    }\n\n    if (lineWidth > 0.0) {\n        float v = (verticalLine ? uv.x * dimensions.x : uv.y * dimensions.y) * min(1.0, 2.0 / lineWidth ) / _c;\n        float j = 1. + cos(v * 1.2 - time) * 0.5 * lineContrast;\n        rgb *= j;\n        float segment = verticalLine ? mod((dir.x + .5) * dimensions.x, 4.) : mod((dir.y + .5) * dimensions.y, 4.);\n        rgb *= 0.99 + ceil(segment) * 0.015;\n    }\n\n    if (vignetting > 0.0)\n    {\n        float outter = SQRT_2 - vignetting * SQRT_2;\n        float darker = clamp((outter - length(dir) * SQRT_2) / ( 0.00001 + vignettingBlur * SQRT_2), 0.0, 1.0);\n        rgb *= darker + (1.0 - darker) * (1.0 - vignettingAlpha);\n    }\n\n    gl_FragColor.rgb = rgb;\n}\n",e=function(n){function e(e){n.call(this,i,t),this.uniforms.dimensions=new Float32Array(2),this.time=0,this.seed=0,Object.assign(this,{curvature:1,lineWidth:1,lineContrast:.25,verticalLine:!1,noise:0,noiseSize:1,seed:0,vignetting:.3,vignettingAlpha:1,vignettingBlur:.3,time:0},e)}n&&(e.__proto__=n),e.prototype=Object.create(n&&n.prototype),e.prototype.constructor=e;var o={curvature:{configurable:!0},lineWidth:{configurable:!0},lineContrast:{configurable:!0},verticalLine:{configurable:!0},noise:{configurable:!0},noiseSize:{configurable:!0},vignetting:{configurable:!0},vignettingAlpha:{configurable:!0},vignettingBlur:{configurable:!0}};return e.prototype.apply=function(n,i,t,e){this.uniforms.dimensions[0]=i.sourceFrame.width,this.uniforms.dimensions[1]=i.sourceFrame.height,this.uniforms.seed=this.seed,this.uniforms.time=this.time,n.applyFilter(this,i,t,e)},o.curvature.set=function(n){this.uniforms.curvature=n},o.curvature.get=function(){return this.uniforms.curvature},o.lineWidth.set=function(n){this.uniforms.lineWidth=n},o.lineWidth.get=function(){return this.uniforms.lineWidth},o.lineContrast.set=function(n){this.uniforms.lineContrast=n},o.lineContrast.get=function(){return this.uniforms.lineContrast},o.verticalLine.set=function(n){this.uniforms.verticalLine=n},o.verticalLine.get=function(){return this.uniforms.verticalLine},o.noise.set=function(n){this.uniforms.noise=n},o.noise.get=function(){return this.uniforms.noise},o.noiseSize.set=function(n){this.uniforms.noiseSize=n},o.noiseSize.get=function(){return this.uniforms.noiseSize},o.vignetting.set=function(n){this.uniforms.vignetting=n},o.vignetting.get=function(){return this.uniforms.vignetting},o.vignettingAlpha.set=function(n){this.uniforms.vignettingAlpha=n},o.vignettingAlpha.get=function(){return this.uniforms.vignettingAlpha},o.vignettingBlur.set=function(n){this.uniforms.vignettingBlur=n},o.vignettingBlur.get=function(){return this.uniforms.vignettingBlur},Object.defineProperties(e.prototype,o),e}(n.Filter);exports.CRTFilter=e;
},{"pixi.js":"ix37"}],"0Q5w":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DotFilter=void 0;var e=require("pixi.js"),n="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n}",t="precision mediump float;\n\nvarying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform vec4 filterArea;\nuniform sampler2D uSampler;\n\nuniform float angle;\nuniform float scale;\n\nfloat pattern()\n{\n   float s = sin(angle), c = cos(angle);\n   vec2 tex = vTextureCoord * filterArea.xy;\n   vec2 point = vec2(\n       c * tex.x - s * tex.y,\n       s * tex.x + c * tex.y\n   ) * scale;\n   return (sin(point.x) * sin(point.y)) * 4.0;\n}\n\nvoid main()\n{\n   vec4 color = texture2D(uSampler, vTextureCoord);\n   float average = (color.r + color.g + color.b) / 3.0;\n   gl_FragColor = vec4(vec3(average * 10.0 - 5.0 + pattern()), color.a);\n}\n",o=function(e){function o(o,r){void 0===o&&(o=1),void 0===r&&(r=5),e.call(this,n,t),this.scale=o,this.angle=r}e&&(o.__proto__=e),o.prototype=Object.create(e&&e.prototype),o.prototype.constructor=o;var r={scale:{configurable:!0},angle:{configurable:!0}};return r.scale.get=function(){return this.uniforms.scale},r.scale.set=function(e){this.uniforms.scale=e},r.angle.get=function(){return this.uniforms.angle},r.angle.set=function(e){this.uniforms.angle=e},Object.defineProperties(o.prototype,r),o}(e.Filter);exports.DotFilter=o;
},{"pixi.js":"ix37"}],"QUOA":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.DropShadowFilter=void 0;var t=require("@pixi/filter-kawase-blur"),i=require("pixi.js"),e="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n}",r="varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform float alpha;\nuniform vec3 color;\nvoid main(void){\n    vec4 sample = texture2D(uSampler, vTextureCoord);\n\n    // Un-premultiply alpha before applying the color\n    if (sample.a > 0.0) {\n        sample.rgb /= sample.a;\n    }\n\n    // Premultiply alpha again\n    sample.rgb = color.rgb * sample.a;\n\n    // alpha user alpha\n    sample *= alpha;\n\n    gl_FragColor = sample;\n}",n=function(n){function o(o){o&&o.constructor!==Object&&(console.warn("DropShadowFilter now uses options instead of (rotation, distance, blur, color, alpha)"),o={rotation:o},void 0!==arguments[1]&&(o.distance=arguments[1]),void 0!==arguments[2]&&(o.blur=arguments[2]),void 0!==arguments[3]&&(o.color=arguments[3]),void 0!==arguments[4]&&(o.alpha=arguments[4])),o=Object.assign({rotation:45,distance:5,color:0,alpha:.5,shadowOnly:!1,kernels:null,blur:2,quality:3,pixelSize:1,resolution:i.settings.RESOLUTION},o),n.call(this);var l=o.kernels,a=o.blur,s=o.quality,u=o.pixelSize,p=o.resolution;this._tintFilter=new i.Filter(e,r),this._tintFilter.uniforms.color=new Float32Array(4),this._tintFilter.resolution=p,this._blurFilter=l?new t.KawaseBlurFilter(l):new t.KawaseBlurFilter(a,s),this.pixelSize=u,this.resolution=p,this.targetTransform=new i.Matrix;var c=o.shadowOnly,h=o.rotation,d=o.distance,f=o.alpha,g=o.color;this.shadowOnly=c,this.rotation=h,this.distance=d,this.alpha=f,this.color=g,this._updatePadding()}n&&(o.__proto__=n),o.prototype=Object.create(n&&n.prototype),o.prototype.constructor=o;var l={resolution:{configurable:!0},distance:{configurable:!0},rotation:{configurable:!0},alpha:{configurable:!0},color:{configurable:!0},kernels:{configurable:!0},blur:{configurable:!0},quality:{configurable:!0},pixelSize:{configurable:!0}};return o.prototype.apply=function(t,i,e,r){var n=t.getRenderTarget();n.transform=this.targetTransform,this._tintFilter.apply(t,i,n,!0),n.transform=null,this._blurFilter.apply(t,n,e,r),!0!==this.shadowOnly&&t.applyFilter(this,i,e,!1),t.returnRenderTarget(n)},o.prototype._updatePadding=function(){this.padding=this.distance+2*this.blur},o.prototype._updateTargetTransform=function(){this.targetTransform.tx=this.distance*Math.cos(this.angle),this.targetTransform.ty=this.distance*Math.sin(this.angle)},l.resolution.get=function(){return this._resolution},l.resolution.set=function(t){this._resolution=t,this._tintFilter&&(this._tintFilter.resolution=t),this._blurFilter&&(this._blurFilter.resolution=t)},l.distance.get=function(){return this._distance},l.distance.set=function(t){this._distance=t,this._updatePadding(),this._updateTargetTransform()},l.rotation.get=function(){return this.angle/i.DEG_TO_RAD},l.rotation.set=function(t){this.angle=t*i.DEG_TO_RAD,this._updateTargetTransform()},l.alpha.get=function(){return this._tintFilter.uniforms.alpha},l.alpha.set=function(t){this._tintFilter.uniforms.alpha=t},l.color.get=function(){return i.utils.rgb2hex(this._tintFilter.uniforms.color)},l.color.set=function(t){i.utils.hex2rgb(t,this._tintFilter.uniforms.color)},l.kernels.get=function(){return this._blurFilter.kernels},l.kernels.set=function(t){this._blurFilter.kernels=t},l.blur.get=function(){return this._blurFilter.blur},l.blur.set=function(t){this._blurFilter.blur=t,this._updatePadding()},l.quality.get=function(){return this._blurFilter.quality},l.quality.set=function(t){this._blurFilter.quality=t},l.pixelSize.get=function(){return this._blurFilter.pixelSize},l.pixelSize.set=function(t){this._blurFilter.pixelSize=t},Object.defineProperties(o.prototype,l),o}(i.Filter);exports.DropShadowFilter=n;
},{"@pixi/filter-kawase-blur":"yoJV","pixi.js":"ix37"}],"VZQb":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.EmbossFilter=void 0;var e=require("pixi.js"),t="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n}",r="precision mediump float;\n\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform float strength;\nuniform vec4 filterArea;\n\n\nvoid main(void)\n{\n\tvec2 onePixel = vec2(1.0 / filterArea);\n\n\tvec4 color;\n\n\tcolor.rgb = vec3(0.5);\n\n\tcolor -= texture2D(uSampler, vTextureCoord - onePixel) * strength;\n\tcolor += texture2D(uSampler, vTextureCoord + onePixel) * strength;\n\n\tcolor.rgb = vec3((color.r + color.g + color.b) / 3.0);\n\n\tfloat alpha = texture2D(uSampler, vTextureCoord).a;\n\n\tgl_FragColor = vec4(color.rgb * alpha, alpha);\n}\n",o=function(e){function o(o){void 0===o&&(o=5),e.call(this,t,r),this.strength=o}e&&(o.__proto__=e),o.prototype=Object.create(e&&e.prototype),o.prototype.constructor=o;var n={strength:{configurable:!0}};return n.strength.get=function(){return this.uniforms.strength},n.strength.set=function(e){this.uniforms.strength=e},Object.defineProperties(o.prototype,n),o}(e.Filter);exports.EmbossFilter=o;
},{"pixi.js":"ix37"}],"Lfoz":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.GlitchFilter=void 0;var e=require("pixi.js"),i="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n}",t="// precision highp float;\n\nvarying vec2 vTextureCoord;\nuniform sampler2D uSampler;\n\nuniform vec4 filterArea;\nuniform vec4 filterClamp;\nuniform vec2 dimensions;\nuniform float aspect;\n\nuniform sampler2D displacementMap;\nuniform float offset;\nuniform float sinDir;\nuniform float cosDir;\nuniform int fillMode;\n\nuniform float seed;\nuniform vec2 red;\nuniform vec2 green;\nuniform vec2 blue;\n\nconst int TRANSPARENT = 0;\nconst int ORIGINAL = 1;\nconst int LOOP = 2;\nconst int CLAMP = 3;\nconst int MIRROR = 4;\n\nvoid main(void)\n{\n    vec2 coord = (vTextureCoord * filterArea.xy) / dimensions;\n\n    if (coord.x > 1.0 || coord.y > 1.0) {\n        return;\n    }\n\n    float cx = coord.x - 0.5;\n    float cy = (coord.y - 0.5) * aspect;\n    float ny = (-sinDir * cx + cosDir * cy) / aspect + 0.5;\n\n    // displacementMap: repeat\n    // ny = ny > 1.0 ? ny - 1.0 : (ny < 0.0 ? 1.0 + ny : ny);\n\n    // displacementMap: mirror\n    ny = ny > 1.0 ? 2.0 - ny : (ny < 0.0 ? -ny : ny);\n\n    vec4 dc = texture2D(displacementMap, vec2(0.5, ny));\n\n    float displacement = (dc.r - dc.g) * (offset / filterArea.x);\n\n    coord = vTextureCoord + vec2(cosDir * displacement, sinDir * displacement * aspect);\n\n    if (fillMode == CLAMP) {\n        coord = clamp(coord, filterClamp.xy, filterClamp.zw);\n    } else {\n        if( coord.x > filterClamp.z ) {\n            if (fillMode == ORIGINAL) {\n                gl_FragColor = texture2D(uSampler, vTextureCoord);\n                return;\n            } else if (fillMode == LOOP) {\n                coord.x -= filterClamp.z;\n            } else if (fillMode == MIRROR) {\n                coord.x = filterClamp.z * 2.0 - coord.x;\n            } else {\n                gl_FragColor = vec4(0., 0., 0., 0.);\n                return;\n            }\n        } else if( coord.x < filterClamp.x ) {\n            if (fillMode == ORIGINAL) {\n                gl_FragColor = texture2D(uSampler, vTextureCoord);\n                return;\n            } else if (fillMode == LOOP) {\n                coord.x += filterClamp.z;\n            } else if (fillMode == MIRROR) {\n                coord.x *= -filterClamp.z;\n            } else {\n                gl_FragColor = vec4(0., 0., 0., 0.);\n                return;\n            }\n        }\n\n        if( coord.y > filterClamp.w ) {\n            if (fillMode == ORIGINAL) {\n                gl_FragColor = texture2D(uSampler, vTextureCoord);\n                return;\n            } else if (fillMode == LOOP) {\n                coord.y -= filterClamp.w;\n            } else if (fillMode == MIRROR) {\n                coord.y = filterClamp.w * 2.0 - coord.y;\n            } else {\n                gl_FragColor = vec4(0., 0., 0., 0.);\n                return;\n            }\n        } else if( coord.y < filterClamp.y ) {\n            if (fillMode == ORIGINAL) {\n                gl_FragColor = texture2D(uSampler, vTextureCoord);\n                return;\n            } else if (fillMode == LOOP) {\n                coord.y += filterClamp.w;\n            } else if (fillMode == MIRROR) {\n                coord.y *= -filterClamp.w;\n            } else {\n                gl_FragColor = vec4(0., 0., 0., 0.);\n                return;\n            }\n        }\n    }\n\n    gl_FragColor.r = texture2D(uSampler, coord + red * (1.0 - seed * 0.4) / filterArea.xy).r;\n    gl_FragColor.g = texture2D(uSampler, coord + green * (1.0 - seed * 0.3) / filterArea.xy).g;\n    gl_FragColor.b = texture2D(uSampler, coord + blue * (1.0 - seed * 0.2) / filterArea.xy).b;\n    gl_FragColor.a = texture2D(uSampler, coord).a;\n}\n",r=function(r){function n(n){void 0===n&&(n={}),r.call(this,i,t),this.uniforms.dimensions=new Float32Array(2),n=Object.assign({slices:5,offset:100,direction:0,fillMode:0,average:!1,seed:0,red:[0,0],green:[0,0],blue:[0,0],minSize:8,sampleSize:512},n),this.direction=n.direction,this.red=n.red,this.green=n.green,this.blue=n.blue,this.offset=n.offset,this.fillMode=n.fillMode,this.average=n.average,this.seed=n.seed,this.minSize=n.minSize,this.sampleSize=n.sampleSize,this._canvas=document.createElement("canvas"),this._canvas.width=4,this._canvas.height=this.sampleSize,this.texture=e.Texture.fromCanvas(this._canvas,e.SCALE_MODES.NEAREST),this._slices=0,this.slices=n.slices}r&&(n.__proto__=r),n.prototype=Object.create(r&&r.prototype),n.prototype.constructor=n;var s={sizes:{configurable:!0},offsets:{configurable:!0},slices:{configurable:!0},direction:{configurable:!0},red:{configurable:!0},green:{configurable:!0},blue:{configurable:!0}};return n.prototype.apply=function(e,i,t,r){var n=i.sourceFrame.width,s=i.sourceFrame.height;this.uniforms.dimensions[0]=n,this.uniforms.dimensions[1]=s,this.uniforms.aspect=s/n,this.uniforms.seed=this.seed,this.uniforms.offset=this.offset,this.uniforms.fillMode=this.fillMode,e.applyFilter(this,i,t,r)},n.prototype._randomizeSizes=function(){var e=this._sizes,i=this._slices-1,t=this.sampleSize,r=Math.min(this.minSize/t,.9/this._slices);if(this.average){for(var n=this._slices,s=1,o=0;o<i;o++){var l=s/(n-o),f=Math.max(l*(1-.6*Math.random()),r);e[o]=f,s-=f}e[i]=s}else{for(var a=1,c=Math.sqrt(1/this._slices),u=0;u<i;u++){var d=Math.max(c*a*Math.random(),r);e[u]=d,a-=d}e[i]=a}this.shuffle()},n.prototype.shuffle=function(){for(var e=this._sizes,i=this._slices-1;i>0;i--){var t=Math.random()*i>>0,r=e[i];e[i]=e[t],e[t]=r}},n.prototype._randomizeOffsets=function(){for(var e=0;e<this._slices;e++)this._offsets[e]=Math.random()*(Math.random()<.5?-1:1)},n.prototype.refresh=function(){this._randomizeSizes(),this._randomizeOffsets(),this.redraw()},n.prototype.redraw=function(){var e,i=this.sampleSize,t=this.texture,r=this._canvas.getContext("2d");r.clearRect(0,0,8,i);for(var n=0,s=0;s<this._slices;s++){e=Math.floor(256*this._offsets[s]);var o=this._sizes[s]*i,l=e>0?e:0,f=e<0?-e:0;r.fillStyle="rgba("+l+", "+f+", 0, 1)",r.fillRect(0,n>>0,i,o+1>>0),n+=o}t.baseTexture.update(),this.uniforms.displacementMap=t},s.sizes.set=function(e){for(var i=Math.min(this._slices,e.length),t=0;t<i;t++)this._sizes[t]=e[t]},s.sizes.get=function(){return this._sizes},s.offsets.set=function(e){for(var i=Math.min(this._slices,e.length),t=0;t<i;t++)this._offsets[t]=e[t]},s.offsets.get=function(){return this._offsets},s.slices.get=function(){return this._slices},s.slices.set=function(e){this._slices!==e&&(this._slices=e,this.uniforms.slices=e,this._sizes=this.uniforms.slicesWidth=new Float32Array(e),this._offsets=this.uniforms.slicesOffset=new Float32Array(e),this.refresh())},s.direction.get=function(){return this._direction},s.direction.set=function(i){if(this._direction!==i){this._direction=i;var t=i*e.DEG_TO_RAD;this.uniforms.sinDir=Math.sin(t),this.uniforms.cosDir=Math.cos(t)}},s.red.get=function(){return this.uniforms.red},s.red.set=function(e){this.uniforms.red=e},s.green.get=function(){return this.uniforms.green},s.green.set=function(e){this.uniforms.green=e},s.blue.get=function(){return this.uniforms.blue},s.blue.set=function(e){this.uniforms.blue=e},n.prototype.destroy=function(){this.texture.destroy(!0),this.texture=null,this._canvas=null,this.red=null,this.green=null,this.blue=null,this._sizes=null,this._offsets=null},Object.defineProperties(n.prototype,s),n}(e.Filter);exports.GlitchFilter=r,r.TRANSPARENT=0,r.ORIGINAL=1,r.LOOP=2,r.CLAMP=3,r.MIRROR=4;
},{"pixi.js":"ix37"}],"CuEO":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.GlowFilter=void 0;var o=require("pixi.js"),t="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n}",n="varying vec2 vTextureCoord;\nvarying vec4 vColor;\n\nuniform sampler2D uSampler;\n\nuniform float distance;\nuniform float outerStrength;\nuniform float innerStrength;\nuniform vec4 glowColor;\nuniform vec4 filterArea;\nuniform vec4 filterClamp;\nconst float PI = 3.14159265358979323846264;\n\nvoid main(void) {\n    vec2 px = vec2(1.0 / filterArea.x, 1.0 / filterArea.y);\n    vec4 ownColor = texture2D(uSampler, vTextureCoord);\n    vec4 curColor;\n    float totalAlpha = 0.0;\n    float maxTotalAlpha = 0.0;\n    float cosAngle;\n    float sinAngle;\n    vec2 displaced;\n    for (float angle = 0.0; angle <= PI * 2.0; angle += %QUALITY_DIST%) {\n       cosAngle = cos(angle);\n       sinAngle = sin(angle);\n       for (float curDistance = 1.0; curDistance <= %DIST%; curDistance++) {\n           displaced.x = vTextureCoord.x + cosAngle * curDistance * px.x;\n           displaced.y = vTextureCoord.y + sinAngle * curDistance * px.y;\n           curColor = texture2D(uSampler, clamp(displaced, filterClamp.xy, filterClamp.zw));\n           totalAlpha += (distance - curDistance) * curColor.a;\n           maxTotalAlpha += (distance - curDistance);\n       }\n    }\n    maxTotalAlpha = max(maxTotalAlpha, 0.0001);\n\n    ownColor.a = max(ownColor.a, 0.0001);\n    ownColor.rgb = ownColor.rgb / ownColor.a;\n    float outerGlowAlpha = (totalAlpha / maxTotalAlpha)  * outerStrength * (1. - ownColor.a);\n    float innerGlowAlpha = ((maxTotalAlpha - totalAlpha) / maxTotalAlpha) * innerStrength * ownColor.a;\n    float resultAlpha = (ownColor.a + outerGlowAlpha);\n    gl_FragColor = vec4(mix(mix(ownColor.rgb, glowColor.rgb, innerGlowAlpha / ownColor.a), glowColor.rgb, outerGlowAlpha / resultAlpha) * resultAlpha, resultAlpha);\n}\n",r=function(r){function e(o,e,l,i,a){void 0===o&&(o=10),void 0===e&&(e=4),void 0===l&&(l=0),void 0===i&&(i=16777215),void 0===a&&(a=.1),r.call(this,t,n.replace(/%QUALITY_DIST%/gi,""+(1/a/o).toFixed(7)).replace(/%DIST%/gi,""+o.toFixed(7))),this.uniforms.glowColor=new Float32Array([0,0,0,1]),this.distance=o,this.color=i,this.outerStrength=e,this.innerStrength=l}r&&(e.__proto__=r),e.prototype=Object.create(r&&r.prototype),e.prototype.constructor=e;var l={color:{configurable:!0},distance:{configurable:!0},outerStrength:{configurable:!0},innerStrength:{configurable:!0}};return l.color.get=function(){return o.utils.rgb2hex(this.uniforms.glowColor)},l.color.set=function(t){o.utils.hex2rgb(t,this.uniforms.glowColor)},l.distance.get=function(){return this.uniforms.distance},l.distance.set=function(o){this.uniforms.distance=o},l.outerStrength.get=function(){return this.uniforms.outerStrength},l.outerStrength.set=function(o){this.uniforms.outerStrength=o},l.innerStrength.get=function(){return this.uniforms.innerStrength},l.innerStrength.set=function(o){this.uniforms.innerStrength=o},Object.defineProperties(e.prototype,l),e}(o.Filter);exports.GlowFilter=r;
},{"pixi.js":"ix37"}],"IMlc":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.GodrayFilter=void 0;var n=require("pixi.js"),e="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n}",t="vec3 mod289(vec3 x)\n{\n    return x - floor(x * (1.0 / 289.0)) * 289.0;\n}\nvec4 mod289(vec4 x)\n{\n    return x - floor(x * (1.0 / 289.0)) * 289.0;\n}\nvec4 permute(vec4 x)\n{\n    return mod289(((x * 34.0) + 1.0) * x);\n}\nvec4 taylorInvSqrt(vec4 r)\n{\n    return 1.79284291400159 - 0.85373472095314 * r;\n}\nvec3 fade(vec3 t)\n{\n    return t * t * t * (t * (t * 6.0 - 15.0) + 10.0);\n}\n// Classic Perlin noise, periodic variant\nfloat pnoise(vec3 P, vec3 rep)\n{\n    vec3 Pi0 = mod(floor(P), rep); // Integer part, modulo period\n    vec3 Pi1 = mod(Pi0 + vec3(1.0), rep); // Integer part + 1, mod period\n    Pi0 = mod289(Pi0);\n    Pi1 = mod289(Pi1);\n    vec3 Pf0 = fract(P); // Fractional part for interpolation\n    vec3 Pf1 = Pf0 - vec3(1.0); // Fractional part - 1.0\n    vec4 ix = vec4(Pi0.x, Pi1.x, Pi0.x, Pi1.x);\n    vec4 iy = vec4(Pi0.yy, Pi1.yy);\n    vec4 iz0 = Pi0.zzzz;\n    vec4 iz1 = Pi1.zzzz;\n    vec4 ixy = permute(permute(ix) + iy);\n    vec4 ixy0 = permute(ixy + iz0);\n    vec4 ixy1 = permute(ixy + iz1);\n    vec4 gx0 = ixy0 * (1.0 / 7.0);\n    vec4 gy0 = fract(floor(gx0) * (1.0 / 7.0)) - 0.5;\n    gx0 = fract(gx0);\n    vec4 gz0 = vec4(0.5) - abs(gx0) - abs(gy0);\n    vec4 sz0 = step(gz0, vec4(0.0));\n    gx0 -= sz0 * (step(0.0, gx0) - 0.5);\n    gy0 -= sz0 * (step(0.0, gy0) - 0.5);\n    vec4 gx1 = ixy1 * (1.0 / 7.0);\n    vec4 gy1 = fract(floor(gx1) * (1.0 / 7.0)) - 0.5;\n    gx1 = fract(gx1);\n    vec4 gz1 = vec4(0.5) - abs(gx1) - abs(gy1);\n    vec4 sz1 = step(gz1, vec4(0.0));\n    gx1 -= sz1 * (step(0.0, gx1) - 0.5);\n    gy1 -= sz1 * (step(0.0, gy1) - 0.5);\n    vec3 g000 = vec3(gx0.x, gy0.x, gz0.x);\n    vec3 g100 = vec3(gx0.y, gy0.y, gz0.y);\n    vec3 g010 = vec3(gx0.z, gy0.z, gz0.z);\n    vec3 g110 = vec3(gx0.w, gy0.w, gz0.w);\n    vec3 g001 = vec3(gx1.x, gy1.x, gz1.x);\n    vec3 g101 = vec3(gx1.y, gy1.y, gz1.y);\n    vec3 g011 = vec3(gx1.z, gy1.z, gz1.z);\n    vec3 g111 = vec3(gx1.w, gy1.w, gz1.w);\n    vec4 norm0 = taylorInvSqrt(vec4(dot(g000, g000), dot(g010, g010), dot(g100, g100), dot(g110, g110)));\n    g000 *= norm0.x;\n    g010 *= norm0.y;\n    g100 *= norm0.z;\n    g110 *= norm0.w;\n    vec4 norm1 = taylorInvSqrt(vec4(dot(g001, g001), dot(g011, g011), dot(g101, g101), dot(g111, g111)));\n    g001 *= norm1.x;\n    g011 *= norm1.y;\n    g101 *= norm1.z;\n    g111 *= norm1.w;\n    float n000 = dot(g000, Pf0);\n    float n100 = dot(g100, vec3(Pf1.x, Pf0.yz));\n    float n010 = dot(g010, vec3(Pf0.x, Pf1.y, Pf0.z));\n    float n110 = dot(g110, vec3(Pf1.xy, Pf0.z));\n    float n001 = dot(g001, vec3(Pf0.xy, Pf1.z));\n    float n101 = dot(g101, vec3(Pf1.x, Pf0.y, Pf1.z));\n    float n011 = dot(g011, vec3(Pf0.x, Pf1.yz));\n    float n111 = dot(g111, Pf1);\n    vec3 fade_xyz = fade(Pf0);\n    vec4 n_z = mix(vec4(n000, n100, n010, n110), vec4(n001, n101, n011, n111), fade_xyz.z);\n    vec2 n_yz = mix(n_z.xy, n_z.zw, fade_xyz.y);\n    float n_xyz = mix(n_yz.x, n_yz.y, fade_xyz.x);\n    return 2.2 * n_xyz;\n}\nfloat turb(vec3 P, vec3 rep, float lacunarity, float gain)\n{\n    float sum = 0.0;\n    float sc = 1.0;\n    float totalgain = 1.0;\n    for (float i = 0.0; i < 6.0; i++)\n    {\n        sum += totalgain * pnoise(P * sc, rep);\n        sc *= lacunarity;\n        totalgain *= gain;\n    }\n    return abs(sum);\n}\n",i="varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\nuniform vec2 dimensions;\n\nuniform vec2 light;\nuniform bool parallel;\nuniform float aspect;\n\nuniform float gain;\nuniform float lacunarity;\nuniform float time;\n\n${perlin}\n\nvoid main(void) {\n    vec2 coord = vTextureCoord * filterArea.xy / dimensions.xy;\n\n    float d;\n\n    if (parallel) {\n        float _cos = light.x;\n        float _sin = light.y;\n        d = (_cos * coord.x) + (_sin * coord.y * aspect);\n    } else {\n        float dx = coord.x - light.x / dimensions.x;\n        float dy = (coord.y - light.y / dimensions.y) * aspect;\n        float dis = sqrt(dx * dx + dy * dy) + 0.00001;\n        d = dy / dis;\n    }\n\n    vec3 dir = vec3(d, d, 0.0);\n\n    float noise = turb(dir + vec3(time, 0.0, 62.1 + time) * 0.05, vec3(480.0, 320.0, 480.0), lacunarity, gain);\n    noise = mix(noise, 0.0, 0.3);\n    //fade vertically.\n    vec4 mist = vec4(noise, noise, noise, 1.0) * (1.0 - coord.y);\n    mist.a = 1.0;\n\n    gl_FragColor = texture2D(uSampler, vTextureCoord) + mist;\n}\n",o=function(o){function r(r){o.call(this,e,i.replace("${perlin}",t)),this.uniforms.dimensions=new Float32Array(2),"number"==typeof r&&(console.warn("GodrayFilter now uses options instead of (angle, gain, lacunarity, time)"),r={angle:r},void 0!==arguments[1]&&(r.gain=arguments[1]),void 0!==arguments[2]&&(r.lacunarity=arguments[2]),void 0!==arguments[3]&&(r.time=arguments[3])),r=Object.assign({angle:30,gain:.5,lacunarity:2.5,time:0,parallel:!0,center:[0,0]},r),this._angleLight=new n.Point,this.angle=r.angle,this.gain=r.gain,this.lacunarity=r.lacunarity,this.parallel=r.parallel,this.center=r.center,this.time=r.time}o&&(r.__proto__=o),r.prototype=Object.create(o&&o.prototype),r.prototype.constructor=r;var a={angle:{configurable:!0},gain:{configurable:!0},lacunarity:{configurable:!0}};return r.prototype.apply=function(n,e,t,i){var o=e.sourceFrame,r=o.width,a=o.height;this.uniforms.light=this.parallel?this._angleLight:this.center,this.uniforms.parallel=this.parallel,this.uniforms.dimensions[0]=r,this.uniforms.dimensions[1]=a,this.uniforms.aspect=a/r,this.uniforms.time=this.time,n.applyFilter(this,e,t,i)},a.angle.get=function(){return this._angle},a.angle.set=function(e){this._angle=e;var t=e*n.DEG_TO_RAD;this._angleLight.x=Math.cos(t),this._angleLight.y=Math.sin(t)},a.gain.get=function(){return this.uniforms.gain},a.gain.set=function(n){this.uniforms.gain=n},a.lacunarity.get=function(){return this.uniforms.lacunarity},a.lacunarity.set=function(n){this.uniforms.lacunarity=n},Object.defineProperties(r.prototype,a),r}(n.Filter);exports.GodrayFilter=o;
},{"pixi.js":"ix37"}],"qeNH":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MotionBlurFilter=void 0;var e=require("pixi.js"),t="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n}",i="varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\n\nuniform vec2 uVelocity;\nuniform int uKernelSize;\nuniform float uOffset;\n\nconst int MAX_KERNEL_SIZE = 2048;\n\n// Notice:\n// the perfect way:\n//    int kernelSize = min(uKernelSize, MAX_KERNELSIZE);\n// BUT in real use-case , uKernelSize < MAX_KERNELSIZE almost always.\n// So use uKernelSize directly.\n\nvoid main(void)\n{\n    vec4 color = texture2D(uSampler, vTextureCoord);\n\n    if (uKernelSize == 0)\n    {\n        gl_FragColor = color;\n        return;\n    }\n\n    vec2 velocity = uVelocity / filterArea.xy;\n    float offset = -uOffset / length(uVelocity) - 0.5;\n    int k = uKernelSize - 1;\n\n    for(int i = 0; i < MAX_KERNEL_SIZE - 1; i++) {\n        if (i == k) {\n            break;\n        }\n        vec2 bias = velocity * (float(i) / float(k) + offset);\n        color += texture2D(uSampler, vTextureCoord + bias);\n    }\n    gl_FragColor = color / float(uKernelSize);\n}\n",o=function(o){function n(n,r,l){void 0===n&&(n=[0,0]),void 0===r&&(r=5),void 0===l&&(l=0),o.call(this,t,i),this.uniforms.uVelocity=new Float32Array(2),this._velocity=new e.ObservablePoint(this.velocityChanged,this),this.velocity=n,this.kernelSize=r,this.offset=l}o&&(n.__proto__=o),n.prototype=Object.create(o&&o.prototype),n.prototype.constructor=n;var r={velocity:{configurable:!0},offset:{configurable:!0}};return n.prototype.apply=function(e,t,i,o){var n=this.velocity,r=n.x,l=n.y;this.uniforms.uKernelSize=0!==r||0!==l?this.kernelSize:0,e.applyFilter(this,t,i,o)},r.velocity.set=function(t){Array.isArray(t)?this._velocity.set(t[0],t[1]):(t instanceof e.Point||t instanceof e.ObservablePoint)&&this._velocity.copy(t)},r.velocity.get=function(){return this._velocity},n.prototype.velocityChanged=function(){this.uniforms.uVelocity[0]=this._velocity.x,this.uniforms.uVelocity[1]=this._velocity.y},r.offset.set=function(e){this.uniforms.uOffset=e},r.offset.get=function(){return this.uniforms.uOffset},Object.defineProperties(n.prototype,r),n}(e.Filter);exports.MotionBlurFilter=o;
},{"pixi.js":"ix37"}],"mOBp":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.MultiColorReplaceFilter=void 0;var o=require("pixi.js"),r="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n}",e="varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\n\nuniform float epsilon;\n\nconst int MAX_COLORS = %maxColors%;\n\nuniform vec3 originalColors[MAX_COLORS];\nuniform vec3 targetColors[MAX_COLORS];\n\nvoid main(void)\n{\n    gl_FragColor = texture2D(uSampler, vTextureCoord);\n\n    float alpha = gl_FragColor.a;\n    if (alpha < 0.0001)\n    {\n      return;\n    }\n\n    vec3 color = gl_FragColor.rgb / alpha;\n\n    for(int i = 0; i < MAX_COLORS; i++)\n    {\n      vec3 origColor = originalColors[i];\n      if (origColor.r < 0.0)\n      {\n        break;\n      }\n      vec3 colorDiff = origColor - color;\n      if (length(colorDiff) < epsilon)\n      {\n        vec3 targetColor = targetColors[i];\n        gl_FragColor = vec4((targetColor + colorDiff) * alpha, alpha);\n        return;\n      }\n    }\n}\n",n=function(n){function t(o,t,i){void 0===t&&(t=.05),void 0===i&&(i=null),i=i||o.length,n.call(this,r,e.replace(/%maxColors%/g,i)),this.epsilon=t,this._maxColors=i,this._replacements=null,this.uniforms.originalColors=new Float32Array(3*i),this.uniforms.targetColors=new Float32Array(3*i),this.replacements=o}n&&(t.__proto__=n),t.prototype=Object.create(n&&n.prototype),t.prototype.constructor=t;var i={replacements:{configurable:!0},maxColors:{configurable:!0},epsilon:{configurable:!0}};return i.replacements.set=function(r){var e=this.uniforms.originalColors,n=this.uniforms.targetColors,t=r.length;if(t>this._maxColors)throw"Length of replacements ("+t+") exceeds the maximum colors length ("+this._maxColors+")";e[3*t]=-1;for(var i=0;i<t;i++){var l=r[i],a=l[0];"number"==typeof a?a=o.utils.hex2rgb(a):l[0]=o.utils.rgb2hex(a),e[3*i]=a[0],e[3*i+1]=a[1],e[3*i+2]=a[2];var s=l[1];"number"==typeof s?s=o.utils.hex2rgb(s):l[1]=o.utils.rgb2hex(s),n[3*i]=s[0],n[3*i+1]=s[1],n[3*i+2]=s[2]}this._replacements=r},i.replacements.get=function(){return this._replacements},t.prototype.refresh=function(){this.replacements=this._replacements},i.maxColors.get=function(){return this._maxColors},i.epsilon.set=function(o){this.uniforms.epsilon=o},i.epsilon.get=function(){return this.uniforms.epsilon},Object.defineProperties(t.prototype,i),t}(o.Filter);exports.MultiColorReplaceFilter=n;
},{"pixi.js":"ix37"}],"G/kQ":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.OldFilmFilter=void 0;var n=require("pixi.js"),t="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n}",i="varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\nuniform vec2 dimensions;\n\nuniform float sepia;\nuniform float noise;\nuniform float noiseSize;\nuniform float scratch;\nuniform float scratchDensity;\nuniform float scratchWidth;\nuniform float vignetting;\nuniform float vignettingAlpha;\nuniform float vignettingBlur;\nuniform float seed;\n\nconst float SQRT_2 = 1.414213;\nconst vec3 SEPIA_RGB = vec3(112.0 / 255.0, 66.0 / 255.0, 20.0 / 255.0);\n\nfloat rand(vec2 co) {\n    return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);\n}\n\nvec3 Overlay(vec3 src, vec3 dst)\n{\n    // if (dst <= 0.5) then: 2 * src * dst\n    // if (dst > 0.5) then: 1 - 2 * (1 - dst) * (1 - src)\n    return vec3((dst.x <= 0.5) ? (2.0 * src.x * dst.x) : (1.0 - 2.0 * (1.0 - dst.x) * (1.0 - src.x)),\n                (dst.y <= 0.5) ? (2.0 * src.y * dst.y) : (1.0 - 2.0 * (1.0 - dst.y) * (1.0 - src.y)),\n                (dst.z <= 0.5) ? (2.0 * src.z * dst.z) : (1.0 - 2.0 * (1.0 - dst.z) * (1.0 - src.z)));\n}\n\n\nvoid main()\n{\n    gl_FragColor = texture2D(uSampler, vTextureCoord);\n    vec3 color = gl_FragColor.rgb;\n\n    if (sepia > 0.0)\n    {\n        float gray = (color.x + color.y + color.z) / 3.0;\n        vec3 grayscale = vec3(gray);\n\n        color = Overlay(SEPIA_RGB, grayscale);\n\n        color = grayscale + sepia * (color - grayscale);\n    }\n\n    vec2 coord = vTextureCoord * filterArea.xy / dimensions.xy;\n\n    if (vignetting > 0.0)\n    {\n        float outter = SQRT_2 - vignetting * SQRT_2;\n        vec2 dir = vec2(vec2(0.5, 0.5) - coord);\n        dir.y *= dimensions.y / dimensions.x;\n        float darker = clamp((outter - length(dir) * SQRT_2) / ( 0.00001 + vignettingBlur * SQRT_2), 0.0, 1.0);\n        color.rgb *= darker + (1.0 - darker) * (1.0 - vignettingAlpha);\n    }\n\n    if (scratchDensity > seed && scratch != 0.0)\n    {\n        float phase = seed * 256.0;\n        float s = mod(floor(phase), 2.0);\n        float dist = 1.0 / scratchDensity;\n        float d = distance(coord, vec2(seed * dist, abs(s - seed * dist)));\n        if (d < seed * 0.6 + 0.4)\n        {\n            highp float period = scratchDensity * 10.0;\n\n            float xx = coord.x * period + phase;\n            float aa = abs(mod(xx, 0.5) * 4.0);\n            float bb = mod(floor(xx / 0.5), 2.0);\n            float yy = (1.0 - bb) * aa + bb * (2.0 - aa);\n\n            float kk = 2.0 * period;\n            float dw = scratchWidth / dimensions.x * (0.75 + seed);\n            float dh = dw * kk;\n\n            float tine = (yy - (2.0 - dh));\n\n            if (tine > 0.0) {\n                float _sign = sign(scratch);\n\n                tine = s * tine / period + scratch + 0.1;\n                tine = clamp(tine + 1.0, 0.5 + _sign * 0.5, 1.5 + _sign * 0.5);\n\n                color.rgb *= tine;\n            }\n        }\n    }\n\n    if (noise > 0.0 && noiseSize > 0.0)\n    {\n        vec2 pixelCoord = vTextureCoord.xy * filterArea.xy;\n        pixelCoord.x = floor(pixelCoord.x / noiseSize);\n        pixelCoord.y = floor(pixelCoord.y / noiseSize);\n        // vec2 d = pixelCoord * noiseSize * vec2(1024.0 + seed * 512.0, 1024.0 - seed * 512.0);\n        // float _noise = snoise(d) * 0.5;\n        float _noise = rand(pixelCoord * noiseSize * seed) - 0.5;\n        color += _noise * noise;\n    }\n\n    gl_FragColor.rgb = color;\n}\n",e=function(n){function e(e,o){void 0===o&&(o=0),n.call(this,t,i),this.uniforms.dimensions=new Float32Array(2),"number"==typeof e?(this.seed=e,e=null):this.seed=o,Object.assign(this,{sepia:.3,noise:.3,noiseSize:1,scratch:.5,scratchDensity:.3,scratchWidth:1,vignetting:.3,vignettingAlpha:1,vignettingBlur:.3},e)}n&&(e.__proto__=n),e.prototype=Object.create(n&&n.prototype),e.prototype.constructor=e;var o={sepia:{configurable:!0},noise:{configurable:!0},noiseSize:{configurable:!0},scratch:{configurable:!0},scratchDensity:{configurable:!0},scratchWidth:{configurable:!0},vignetting:{configurable:!0},vignettingAlpha:{configurable:!0},vignettingBlur:{configurable:!0}};return e.prototype.apply=function(n,t,i,e){this.uniforms.dimensions[0]=t.sourceFrame.width,this.uniforms.dimensions[1]=t.sourceFrame.height,this.uniforms.seed=this.seed,n.applyFilter(this,t,i,e)},o.sepia.set=function(n){this.uniforms.sepia=n},o.sepia.get=function(){return this.uniforms.sepia},o.noise.set=function(n){this.uniforms.noise=n},o.noise.get=function(){return this.uniforms.noise},o.noiseSize.set=function(n){this.uniforms.noiseSize=n},o.noiseSize.get=function(){return this.uniforms.noiseSize},o.scratch.set=function(n){this.uniforms.scratch=n},o.scratch.get=function(){return this.uniforms.scratch},o.scratchDensity.set=function(n){this.uniforms.scratchDensity=n},o.scratchDensity.get=function(){return this.uniforms.scratchDensity},o.scratchWidth.set=function(n){this.uniforms.scratchWidth=n},o.scratchWidth.get=function(){return this.uniforms.scratchWidth},o.vignetting.set=function(n){this.uniforms.vignetting=n},o.vignetting.get=function(){return this.uniforms.vignetting},o.vignettingAlpha.set=function(n){this.uniforms.vignettingAlpha=n},o.vignettingAlpha.get=function(){return this.uniforms.vignettingAlpha},o.vignettingBlur.set=function(n){this.uniforms.vignettingBlur=n},o.vignettingBlur.get=function(){return this.uniforms.vignettingBlur},Object.defineProperties(e.prototype,o),e}(n.Filter);exports.OldFilmFilter=e;
},{"pixi.js":"ix37"}],"j/d7":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.OutlineFilter=void 0;var e=require("pixi.js"),o="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n}",t="varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\n\nuniform vec2 thickness;\nuniform vec4 outlineColor;\nuniform vec4 filterClamp;\n\nconst float DOUBLE_PI = 3.14159265358979323846264 * 2.;\n\nvoid main(void) {\n    vec4 ownColor = texture2D(uSampler, vTextureCoord);\n    vec4 curColor;\n    float maxAlpha = 0.;\n    vec2 displaced;\n    for (float angle = 0.; angle <= DOUBLE_PI; angle += ${angleStep}) {\n        displaced.x = vTextureCoord.x + thickness.x * cos(angle);\n        displaced.y = vTextureCoord.y + thickness.y * sin(angle);\n        curColor = texture2D(uSampler, clamp(displaced, filterClamp.xy, filterClamp.zw));\n        maxAlpha = max(maxAlpha, curColor.a);\n    }\n    float resultAlpha = max(maxAlpha, ownColor.a);\n    gl_FragColor = vec4((ownColor.rgb + outlineColor.rgb * (1. - ownColor.a)) * resultAlpha, resultAlpha);\n}\n",r=function(r){function n(e,i,l){void 0===e&&(e=1),void 0===i&&(i=0),void 0===l&&(l=.1);var a=Math.max(l*n.MAX_SAMPLES,n.MIN_SAMPLES),s=(2*Math.PI/a).toFixed(7);r.call(this,o,t.replace(/\$\{angleStep\}/,s)),this.uniforms.thickness=new Float32Array([0,0]),this.thickness=e,this.uniforms.outlineColor=new Float32Array([0,0,0,1]),this.color=i,this.quality=l}r&&(n.__proto__=r),n.prototype=Object.create(r&&r.prototype),n.prototype.constructor=n;var i={color:{configurable:!0}};return n.prototype.apply=function(e,o,t,r){this.uniforms.thickness[0]=this.thickness/o.size.width,this.uniforms.thickness[1]=this.thickness/o.size.height,e.applyFilter(this,o,t,r)},i.color.get=function(){return e.utils.rgb2hex(this.uniforms.outlineColor)},i.color.set=function(o){e.utils.hex2rgb(o,this.uniforms.outlineColor)},Object.defineProperties(n.prototype,i),n}(e.Filter);exports.OutlineFilter=r,r.MIN_SAMPLES=1,r.MAX_SAMPLES=100;
},{"pixi.js":"ix37"}],"5nXc":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.PixelateFilter=void 0;var e=require("pixi.js"),o="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n}",r="precision mediump float;\n\nvarying vec2 vTextureCoord;\n\nuniform vec2 size;\nuniform sampler2D uSampler;\n\nuniform vec4 filterArea;\n\nvec2 mapCoord( vec2 coord )\n{\n    coord *= filterArea.xy;\n    coord += filterArea.zw;\n\n    return coord;\n}\n\nvec2 unmapCoord( vec2 coord )\n{\n    coord -= filterArea.zw;\n    coord /= filterArea.xy;\n\n    return coord;\n}\n\nvec2 pixelate(vec2 coord, vec2 size)\n{\n\treturn floor( coord / size ) * size;\n}\n\nvoid main(void)\n{\n    vec2 coord = mapCoord(vTextureCoord);\n\n    coord = pixelate(coord, size);\n\n    coord = unmapCoord(coord);\n\n    gl_FragColor = texture2D(uSampler, coord);\n}\n",n=function(e){function n(n){void 0===n&&(n=10),e.call(this,o,r),this.size=n}e&&(n.__proto__=e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n;var t={size:{configurable:!0}};return t.size.get=function(){return this.uniforms.size},t.size.set=function(e){"number"==typeof e&&(e=[e,e]),this.uniforms.size=e},Object.defineProperties(n.prototype,t),n}(e.Filter);exports.PixelateFilter=n;
},{"pixi.js":"ix37"}],"pll+":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RadialBlurFilter=void 0;var e=require("pixi.js"),n="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n}",r="varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\n\nuniform float uRadian;\nuniform vec2 uCenter;\nuniform float uRadius;\nuniform int uKernelSize;\n\nconst int MAX_KERNEL_SIZE = 2048;\n\nvoid main(void)\n{\n    vec4 color = texture2D(uSampler, vTextureCoord);\n\n    if (uKernelSize == 0)\n    {\n        gl_FragColor = color;\n        return;\n    }\n\n    float aspect = filterArea.y / filterArea.x;\n    vec2 center = uCenter.xy / filterArea.xy;\n    float gradient = uRadius / filterArea.x * 0.3;\n    float radius = uRadius / filterArea.x - gradient * 0.5;\n    int k = uKernelSize - 1;\n\n    vec2 coord = vTextureCoord;\n    vec2 dir = vec2(center - coord);\n    float dist = length(vec2(dir.x, dir.y * aspect));\n\n    float radianStep = uRadian;\n    if (radius >= 0.0 && dist > radius) {\n        float delta = dist - radius;\n        float gap = gradient;\n        float scale = 1.0 - abs(delta / gap);\n        if (scale <= 0.0) {\n            gl_FragColor = color;\n            return;\n        }\n        radianStep *= scale;\n    }\n    radianStep /= float(k);\n\n    float s = sin(radianStep);\n    float c = cos(radianStep);\n    mat2 rotationMatrix = mat2(vec2(c, -s), vec2(s, c));\n\n    for(int i = 0; i < MAX_KERNEL_SIZE - 1; i++) {\n        if (i == k) {\n            break;\n        }\n\n        coord -= center;\n        coord.y *= aspect;\n        coord = rotationMatrix * coord;\n        coord.y /= aspect;\n        coord += center;\n\n        vec4 sample = texture2D(uSampler, coord);\n\n        // switch to pre-multiplied alpha to correctly blur transparent images\n        // sample.rgb *= sample.a;\n\n        color += sample;\n    }\n\n    gl_FragColor = color / float(uKernelSize);\n}\n",t=function(e){function t(t,i,o,a){void 0===t&&(t=0),void 0===i&&(i=[0,0]),void 0===o&&(o=5),void 0===a&&(a=-1),e.call(this,n,r),this._angle=0,this.angle=t,this.center=i,this.kernelSize=o,this.radius=a}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var i={angle:{configurable:!0},center:{configurable:!0},radius:{configurable:!0}};return t.prototype.apply=function(e,n,r,t){this.uniforms.uKernelSize=0!==this._angle?this.kernelSize:0,e.applyFilter(this,n,r,t)},i.angle.set=function(e){this._angle=e,this.uniforms.uRadian=e*Math.PI/180},i.angle.get=function(){return this._angle},i.center.get=function(){return this.uniforms.uCenter},i.center.set=function(e){this.uniforms.uCenter=e},i.radius.get=function(){return this.uniforms.uRadius},i.radius.set=function(e){(e<0||e===1/0)&&(e=-1),this.uniforms.uRadius=e},Object.defineProperties(t.prototype,i),t}(e.Filter);exports.RadialBlurFilter=t;
},{"pixi.js":"ix37"}],"lVUa":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ReflectionFilter=void 0;var e=require("pixi.js"),r="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n}",n="varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\n\nuniform vec4 filterArea;\nuniform vec4 filterClamp;\nuniform vec2 dimensions;\n\nuniform bool mirror;\nuniform float boundary;\nuniform vec2 amplitude;\nuniform vec2 waveLength;\nuniform vec2 alpha;\nuniform float time;\n\nfloat rand(vec2 co) {\n    return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);\n}\n\nvoid main(void)\n{\n    vec2 pixelCoord = vTextureCoord.xy * filterArea.xy;\n    vec2 coord = pixelCoord / dimensions;\n\n    if (coord.y < boundary) {\n        gl_FragColor = texture2D(uSampler, vTextureCoord);\n        return;\n    }\n\n    float k = (coord.y - boundary) / (1. - boundary + 0.0001);\n    float areaY = boundary * dimensions.y / filterArea.y;\n    float v = areaY + areaY - vTextureCoord.y;\n    float y = mirror ? v : vTextureCoord.y;\n\n    float _amplitude = ((amplitude.y - amplitude.x) * k + amplitude.x ) / filterArea.x;\n    float _waveLength = ((waveLength.y - waveLength.x) * k + waveLength.x) / filterArea.y;\n    float _alpha = (alpha.y - alpha.x) * k + alpha.x;\n\n    float x = vTextureCoord.x + cos(v * 6.28 / _waveLength - time) * _amplitude;\n    x = clamp(x, filterClamp.x, filterClamp.z);\n\n    vec4 color = texture2D(uSampler, vec2(x, y));\n\n    gl_FragColor = color * _alpha;\n}\n",t=function(e){function t(t){e.call(this,r,n),this.uniforms.amplitude=new Float32Array(2),this.uniforms.waveLength=new Float32Array(2),this.uniforms.alpha=new Float32Array(2),this.uniforms.dimensions=new Float32Array(2),Object.assign(this,{mirror:!0,boundary:.5,amplitude:[0,20],waveLength:[30,100],alpha:[1,1],time:0},t)}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var o={mirror:{configurable:!0},boundary:{configurable:!0},amplitude:{configurable:!0},waveLength:{configurable:!0},alpha:{configurable:!0}};return t.prototype.apply=function(e,r,n,t){this.uniforms.dimensions[0]=r.sourceFrame.width,this.uniforms.dimensions[1]=r.sourceFrame.height,this.uniforms.time=this.time,e.applyFilter(this,r,n,t)},o.mirror.set=function(e){this.uniforms.mirror=e},o.mirror.get=function(){return this.uniforms.mirror},o.boundary.set=function(e){this.uniforms.boundary=e},o.boundary.get=function(){return this.uniforms.boundary},o.amplitude.set=function(e){this.uniforms.amplitude[0]=e[0],this.uniforms.amplitude[1]=e[1]},o.amplitude.get=function(){return this.uniforms.amplitude},o.waveLength.set=function(e){this.uniforms.waveLength[0]=e[0],this.uniforms.waveLength[1]=e[1]},o.waveLength.get=function(){return this.uniforms.waveLength},o.alpha.set=function(e){this.uniforms.alpha[0]=e[0],this.uniforms.alpha[1]=e[1]},o.alpha.get=function(){return this.uniforms.alpha},Object.defineProperties(t.prototype,o),t}(e.Filter);exports.ReflectionFilter=t;
},{"pixi.js":"ix37"}],"Cra9":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.RGBSplitFilter=void 0;var e=require("pixi.js"),r="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n}",t="precision mediump float;\n\nvarying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\nuniform vec2 red;\nuniform vec2 green;\nuniform vec2 blue;\n\nvoid main(void)\n{\n   gl_FragColor.r = texture2D(uSampler, vTextureCoord + red/filterArea.xy).r;\n   gl_FragColor.g = texture2D(uSampler, vTextureCoord + green/filterArea.xy).g;\n   gl_FragColor.b = texture2D(uSampler, vTextureCoord + blue/filterArea.xy).b;\n   gl_FragColor.a = texture2D(uSampler, vTextureCoord).a;\n}\n",o=function(e){function o(o,n,i){void 0===o&&(o=[-10,0]),void 0===n&&(n=[0,10]),void 0===i&&(i=[0,0]),e.call(this,r,t),this.red=o,this.green=n,this.blue=i}e&&(o.__proto__=e),o.prototype=Object.create(e&&e.prototype),o.prototype.constructor=o;var n={red:{configurable:!0},green:{configurable:!0},blue:{configurable:!0}};return n.red.get=function(){return this.uniforms.red},n.red.set=function(e){this.uniforms.red=e},n.green.get=function(){return this.uniforms.green},n.green.set=function(e){this.uniforms.green=e},n.blue.get=function(){return this.uniforms.blue},n.blue.set=function(e){this.uniforms.blue=e},Object.defineProperties(o.prototype,n),o}(e.Filter);exports.RGBSplitFilter=o;
},{"pixi.js":"ix37"}],"IUt6":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ShockwaveFilter=void 0;var e=require("pixi.js"),t="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n}",n="varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\nuniform vec4 filterClamp;\n\nuniform vec2 center;\n\nuniform float amplitude;\nuniform float wavelength;\n// uniform float power;\nuniform float brightness;\nuniform float speed;\nuniform float radius;\n\nuniform float time;\n\nconst float PI = 3.14159;\n\nvoid main()\n{\n    float halfWavelength = wavelength * 0.5 / filterArea.x;\n    float maxRadius = radius / filterArea.x;\n    float currentRadius = time * speed / filterArea.x;\n\n    float fade = 1.0;\n\n    if (maxRadius > 0.0) {\n        if (currentRadius > maxRadius) {\n            gl_FragColor = texture2D(uSampler, vTextureCoord);\n            return;\n        }\n        fade = 1.0 - pow(currentRadius / maxRadius, 2.0);\n    }\n\n    vec2 dir = vec2(vTextureCoord - center / filterArea.xy);\n    dir.y *= filterArea.y / filterArea.x;\n    float dist = length(dir);\n\n    if (dist <= 0.0 || dist < currentRadius - halfWavelength || dist > currentRadius + halfWavelength) {\n        gl_FragColor = texture2D(uSampler, vTextureCoord);\n        return;\n    }\n\n    vec2 diffUV = normalize(dir);\n\n    float diff = (dist - currentRadius) / halfWavelength;\n\n    float p = 1.0 - pow(abs(diff), 2.0);\n\n    // float powDiff = diff * pow(p, 2.0) * ( amplitude * fade );\n    float powDiff = 1.25 * sin(diff * PI) * p * ( amplitude * fade );\n\n    vec2 offset = diffUV * powDiff / filterArea.xy;\n\n    // Do clamp :\n    vec2 coord = vTextureCoord + offset;\n    vec2 clampedCoord = clamp(coord, filterClamp.xy, filterClamp.zw);\n    vec4 color = texture2D(uSampler, clampedCoord);\n    if (coord != clampedCoord) {\n        color *= max(0.0, 1.0 - length(coord - clampedCoord));\n    }\n\n    // No clamp :\n    // gl_FragColor = texture2D(uSampler, vTextureCoord + offset);\n\n    color.rgb *= 1.0 + (brightness - 1.0) * p * fade;\n\n    gl_FragColor = color;\n}\n",r=function(e){function r(r,i,o){void 0===r&&(r=[0,0]),void 0===i&&(i={}),void 0===o&&(o=0),e.call(this,t,n),this.center=r,Array.isArray(i)&&(console.warn("Deprecated Warning: ShockwaveFilter params Array has been changed to options Object."),i={}),i=Object.assign({amplitude:30,wavelength:160,brightness:1,speed:500,radius:-1},i),this.amplitude=i.amplitude,this.wavelength=i.wavelength,this.brightness=i.brightness,this.speed=i.speed,this.radius=i.radius,this.time=o}e&&(r.__proto__=e),r.prototype=Object.create(e&&e.prototype),r.prototype.constructor=r;var i={center:{configurable:!0},amplitude:{configurable:!0},wavelength:{configurable:!0},brightness:{configurable:!0},speed:{configurable:!0},radius:{configurable:!0}};return r.prototype.apply=function(e,t,n,r){this.uniforms.time=this.time,e.applyFilter(this,t,n,r)},i.center.get=function(){return this.uniforms.center},i.center.set=function(e){this.uniforms.center=e},i.amplitude.get=function(){return this.uniforms.amplitude},i.amplitude.set=function(e){this.uniforms.amplitude=e},i.wavelength.get=function(){return this.uniforms.wavelength},i.wavelength.set=function(e){this.uniforms.wavelength=e},i.brightness.get=function(){return this.uniforms.brightness},i.brightness.set=function(e){this.uniforms.brightness=e},i.speed.get=function(){return this.uniforms.speed},i.speed.set=function(e){this.uniforms.speed=e},i.radius.get=function(){return this.uniforms.radius},i.radius.set=function(e){this.uniforms.radius=e},Object.defineProperties(r.prototype,i),r}(e.Filter);exports.ShockwaveFilter=r;
},{"pixi.js":"ix37"}],"CpF5":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.SimpleLightmapFilter=void 0;var e=require("pixi.js"),o="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n}",t="varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform sampler2D uLightmap;\nuniform vec4 filterArea;\nuniform vec2 dimensions;\nuniform vec4 ambientColor;\nvoid main() {\n    vec4 diffuseColor = texture2D(uSampler, vTextureCoord);\n    vec2 lightCoord = (vTextureCoord * filterArea.xy) / dimensions;\n    vec4 light = texture2D(uLightmap, lightCoord);\n    vec3 ambient = ambientColor.rgb * ambientColor.a;\n    vec3 intensity = ambient + light.rgb;\n    vec3 finalColor = diffuseColor.rgb * intensity;\n    gl_FragColor = vec4(finalColor, diffuseColor.a);\n}\n",r=function(r){function i(e,i,n){void 0===i&&(i=0),void 0===n&&(n=1),r.call(this,o,t),this.uniforms.dimensions=new Float32Array(2),this.uniforms.ambientColor=new Float32Array([0,0,0,n]),this.texture=e,this.color=i}r&&(i.__proto__=r),i.prototype=Object.create(r&&r.prototype),i.prototype.constructor=i;var n={texture:{configurable:!0},color:{configurable:!0},alpha:{configurable:!0}};return i.prototype.apply=function(e,o,t,r){this.uniforms.dimensions[0]=o.sourceFrame.width,this.uniforms.dimensions[1]=o.sourceFrame.height,e.applyFilter(this,o,t,r)},n.texture.get=function(){return this.uniforms.uLightmap},n.texture.set=function(e){this.uniforms.uLightmap=e},n.color.set=function(o){var t=this.uniforms.ambientColor;"number"==typeof o?(e.utils.hex2rgb(o,t),this._color=o):(t[0]=o[0],t[1]=o[1],t[2]=o[2],t[3]=o[3],this._color=e.utils.rgb2hex(t))},n.color.get=function(){return this._color},n.alpha.get=function(){return this.uniforms.ambientColor[3]},n.alpha.set=function(e){this.uniforms.ambientColor[3]=e},Object.defineProperties(i.prototype,n),i}(e.Filter);exports.SimpleLightmapFilter=r;
},{"pixi.js":"ix37"}],"QqLO":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TiltShiftAxisFilter=exports.TiltShiftYFilter=exports.TiltShiftXFilter=exports.TiltShiftFilter=void 0;var t=require("pixi.js"),r="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n}",i="varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform float blur;\nuniform float gradientBlur;\nuniform vec2 start;\nuniform vec2 end;\nuniform vec2 delta;\nuniform vec2 texSize;\n\nfloat random(vec3 scale, float seed)\n{\n    return fract(sin(dot(gl_FragCoord.xyz + seed, scale)) * 43758.5453 + seed);\n}\n\nvoid main(void)\n{\n    vec4 color = vec4(0.0);\n    float total = 0.0;\n\n    float offset = random(vec3(12.9898, 78.233, 151.7182), 0.0);\n    vec2 normal = normalize(vec2(start.y - end.y, end.x - start.x));\n    float radius = smoothstep(0.0, 1.0, abs(dot(vTextureCoord * texSize - start, normal)) / gradientBlur) * blur;\n\n    for (float t = -30.0; t <= 30.0; t++)\n    {\n        float percent = (t + offset - 0.5) / 30.0;\n        float weight = 1.0 - abs(percent);\n        vec4 sample = texture2D(uSampler, vTextureCoord + delta / texSize * percent * radius);\n        sample.rgb *= sample.a;\n        color += sample * weight;\n        total += weight;\n    }\n\n    color /= total;\n    color.rgb /= color.a + 0.00001;\n\n    gl_FragColor = color;\n}\n",e=function(e){function n(n,o,l,s){void 0===n&&(n=100),void 0===o&&(o=600),void 0===l&&(l=null),void 0===s&&(s=null),e.call(this,r,i),this.uniforms.blur=n,this.uniforms.gradientBlur=o,this.uniforms.start=l||new t.Point(0,window.innerHeight/2),this.uniforms.end=s||new t.Point(600,window.innerHeight/2),this.uniforms.delta=new t.Point(30,30),this.uniforms.texSize=new t.Point(window.innerWidth,window.innerHeight),this.updateDelta()}e&&(n.__proto__=e),n.prototype=Object.create(e&&e.prototype),n.prototype.constructor=n;var o={blur:{configurable:!0},gradientBlur:{configurable:!0},start:{configurable:!0},end:{configurable:!0}};return n.prototype.updateDelta=function(){this.uniforms.delta.x=0,this.uniforms.delta.y=0},o.blur.get=function(){return this.uniforms.blur},o.blur.set=function(t){this.uniforms.blur=t},o.gradientBlur.get=function(){return this.uniforms.gradientBlur},o.gradientBlur.set=function(t){this.uniforms.gradientBlur=t},o.start.get=function(){return this.uniforms.start},o.start.set=function(t){this.uniforms.start=t,this.updateDelta()},o.end.get=function(){return this.uniforms.end},o.end.set=function(t){this.uniforms.end=t,this.updateDelta()},Object.defineProperties(n.prototype,o),n}(t.Filter),n=function(t){function r(){t.apply(this,arguments)}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.prototype.updateDelta=function(){var t=this.uniforms.end.x-this.uniforms.start.x,r=this.uniforms.end.y-this.uniforms.start.y,i=Math.sqrt(t*t+r*r);this.uniforms.delta.x=t/i,this.uniforms.delta.y=r/i},r}(e),o=function(t){function r(){t.apply(this,arguments)}return t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r,r.prototype.updateDelta=function(){var t=this.uniforms.end.x-this.uniforms.start.x,r=this.uniforms.end.y-this.uniforms.start.y,i=Math.sqrt(t*t+r*r);this.uniforms.delta.x=-r/i,this.uniforms.delta.y=t/i},r}(e),l=function(t){function r(r,i,e,l){void 0===r&&(r=100),void 0===i&&(i=600),void 0===e&&(e=null),void 0===l&&(l=null),t.call(this),this.tiltShiftXFilter=new n(r,i,e,l),this.tiltShiftYFilter=new o(r,i,e,l)}t&&(r.__proto__=t),r.prototype=Object.create(t&&t.prototype),r.prototype.constructor=r;var i={blur:{configurable:!0},gradientBlur:{configurable:!0},start:{configurable:!0},end:{configurable:!0}};return r.prototype.apply=function(t,r,i){var e=t.getRenderTarget(!0);this.tiltShiftXFilter.apply(t,r,e),this.tiltShiftYFilter.apply(t,e,i),t.returnRenderTarget(e)},i.blur.get=function(){return this.tiltShiftXFilter.blur},i.blur.set=function(t){this.tiltShiftXFilter.blur=this.tiltShiftYFilter.blur=t},i.gradientBlur.get=function(){return this.tiltShiftXFilter.gradientBlur},i.gradientBlur.set=function(t){this.tiltShiftXFilter.gradientBlur=this.tiltShiftYFilter.gradientBlur=t},i.start.get=function(){return this.tiltShiftXFilter.start},i.start.set=function(t){this.tiltShiftXFilter.start=this.tiltShiftYFilter.start=t},i.end.get=function(){return this.tiltShiftXFilter.end},i.end.set=function(t){this.tiltShiftXFilter.end=this.tiltShiftYFilter.end=t},Object.defineProperties(r.prototype,i),r}(t.Filter);exports.TiltShiftFilter=l,exports.TiltShiftYFilter=o,exports.TiltShiftXFilter=n,exports.TiltShiftAxisFilter=e;
},{"pixi.js":"ix37"}],"rYeK":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.TwistFilter=void 0;var o=require("pixi.js"),n="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n}",r="varying vec2 vTextureCoord;\n\nuniform sampler2D uSampler;\nuniform float radius;\nuniform float angle;\nuniform vec2 offset;\nuniform vec4 filterArea;\n\nvec2 mapCoord( vec2 coord )\n{\n    coord *= filterArea.xy;\n    coord += filterArea.zw;\n\n    return coord;\n}\n\nvec2 unmapCoord( vec2 coord )\n{\n    coord -= filterArea.zw;\n    coord /= filterArea.xy;\n\n    return coord;\n}\n\nvec2 twist(vec2 coord)\n{\n    coord -= offset;\n\n    float dist = length(coord);\n\n    if (dist < radius)\n    {\n        float ratioDist = (radius - dist) / radius;\n        float angleMod = ratioDist * ratioDist * angle;\n        float s = sin(angleMod);\n        float c = cos(angleMod);\n        coord = vec2(coord.x * c - coord.y * s, coord.x * s + coord.y * c);\n    }\n\n    coord += offset;\n\n    return coord;\n}\n\nvoid main(void)\n{\n\n    vec2 coord = mapCoord(vTextureCoord);\n\n    coord = twist(coord);\n\n    coord = unmapCoord(coord);\n\n    gl_FragColor = texture2D(uSampler, coord );\n\n}\n",t=function(o){function t(t,e,i){void 0===t&&(t=200),void 0===e&&(e=4),void 0===i&&(i=20),o.call(this,n,r),this.radius=t,this.angle=e,this.padding=i}o&&(t.__proto__=o),t.prototype=Object.create(o&&o.prototype),t.prototype.constructor=t;var e={offset:{configurable:!0},radius:{configurable:!0},angle:{configurable:!0}};return e.offset.get=function(){return this.uniforms.offset},e.offset.set=function(o){this.uniforms.offset=o},e.radius.get=function(){return this.uniforms.radius},e.radius.set=function(o){this.uniforms.radius=o},e.angle.get=function(){return this.uniforms.angle},e.angle.set=function(o){this.uniforms.angle=o},Object.defineProperties(t.prototype,e),t}(o.Filter);exports.TwistFilter=t;
},{"pixi.js":"ix37"}],"kWmh":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.ZoomBlurFilter=void 0;var n=require("pixi.js"),t="attribute vec2 aVertexPosition;\nattribute vec2 aTextureCoord;\n\nuniform mat3 projectionMatrix;\n\nvarying vec2 vTextureCoord;\n\nvoid main(void)\n{\n    gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);\n    vTextureCoord = aTextureCoord;\n}",e="varying vec2 vTextureCoord;\nuniform sampler2D uSampler;\nuniform vec4 filterArea;\n\nuniform vec2 uCenter;\nuniform float uStrength;\nuniform float uInnerRadius;\nuniform float uRadius;\n\nconst float MAX_KERNEL_SIZE = 32.0;\n\n// author: http://byteblacksmith.com/improvements-to-the-canonical-one-liner-glsl-rand-for-opengl-es-2-0/\nhighp float rand(vec2 co, float seed) {\n    const highp float a = 12.9898, b = 78.233, c = 43758.5453;\n    highp float dt = dot(co + seed, vec2(a, b)), sn = mod(dt, 3.14159);\n    return fract(sin(sn) * c + seed);\n}\n\nvoid main() {\n\n    float minGradient = uInnerRadius * 0.3;\n    float innerRadius = (uInnerRadius + minGradient * 0.5) / filterArea.x;\n\n    float gradient = uRadius * 0.3;\n    float radius = (uRadius - gradient * 0.5) / filterArea.x;\n\n    float countLimit = MAX_KERNEL_SIZE;\n\n    vec2 dir = vec2(uCenter.xy / filterArea.xy - vTextureCoord);\n    float dist = length(vec2(dir.x, dir.y * filterArea.y / filterArea.x));\n\n    float strength = uStrength;\n\n    float delta = 0.0;\n    float gap;\n    if (dist < innerRadius) {\n        delta = innerRadius - dist;\n        gap = minGradient;\n    } else if (radius >= 0.0 && dist > radius) { // radius < 0 means it's infinity\n        delta = dist - radius;\n        gap = gradient;\n    }\n\n    if (delta > 0.0) {\n        float normalCount = gap / filterArea.x;\n        delta = (normalCount - delta) / normalCount;\n        countLimit *= delta;\n        strength *= delta;\n        if (countLimit < 1.0)\n        {\n            gl_FragColor = texture2D(uSampler, vTextureCoord);\n            return;\n        }\n    }\n\n    // randomize the lookup values to hide the fixed number of samples\n    float offset = rand(vTextureCoord, 0.0);\n\n    float total = 0.0;\n    vec4 color = vec4(0.0);\n\n    dir *= strength;\n\n    for (float t = 0.0; t < MAX_KERNEL_SIZE; t++) {\n        float percent = (t + offset) / MAX_KERNEL_SIZE;\n        float weight = 4.0 * (percent - percent * percent);\n        vec2 p = vTextureCoord + dir * percent;\n        vec4 sample = texture2D(uSampler, p);\n\n        // switch to pre-multiplied alpha to correctly blur transparent images\n        // sample.rgb *= sample.a;\n\n        color += sample * weight;\n        total += weight;\n\n        if (t > countLimit){\n            break;\n        }\n    }\n\n    color /= total;\n    // switch back from pre-multiplied alpha\n    // color.rgb /= color.a + 0.00001;\n\n    gl_FragColor = color;\n}\n",r=function(n){function r(r,i,o,a){void 0===r&&(r=.1),void 0===i&&(i=[0,0]),void 0===o&&(o=0),void 0===a&&(a=-1),n.call(this,t,e),this.center=i,this.strength=r,this.innerRadius=o,this.radius=a}n&&(r.__proto__=n),r.prototype=Object.create(n&&n.prototype),r.prototype.constructor=r;var i={center:{configurable:!0},strength:{configurable:!0},innerRadius:{configurable:!0},radius:{configurable:!0}};return i.center.get=function(){return this.uniforms.uCenter},i.center.set=function(n){this.uniforms.uCenter=n},i.strength.get=function(){return this.uniforms.uStrength},i.strength.set=function(n){this.uniforms.uStrength=n},i.innerRadius.get=function(){return this.uniforms.uInnerRadius},i.innerRadius.set=function(n){this.uniforms.uInnerRadius=n},i.radius.get=function(){return this.uniforms.uRadius},i.radius.set=function(n){(n<0||n===1/0)&&(n=-1),this.uniforms.uRadius=n},Object.defineProperties(r.prototype,i),r}(n.Filter);exports.ZoomBlurFilter=r;
},{"pixi.js":"ix37"}],"0HxF":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),Object.defineProperty(exports,"AdjustmentFilter",{enumerable:!0,get:function(){return e.AdjustmentFilter}}),Object.defineProperty(exports,"AdvancedBloomFilter",{enumerable:!0,get:function(){return r.AdvancedBloomFilter}}),Object.defineProperty(exports,"AsciiFilter",{enumerable:!0,get:function(){return t.AsciiFilter}}),Object.defineProperty(exports,"BevelFilter",{enumerable:!0,get:function(){return i.BevelFilter}}),Object.defineProperty(exports,"BloomFilter",{enumerable:!0,get:function(){return l.BloomFilter}}),Object.defineProperty(exports,"BulgePinchFilter",{enumerable:!0,get:function(){return n.BulgePinchFilter}}),Object.defineProperty(exports,"ColorMapFilter",{enumerable:!0,get:function(){return o.ColorMapFilter}}),Object.defineProperty(exports,"ColorReplaceFilter",{enumerable:!0,get:function(){return u.ColorReplaceFilter}}),Object.defineProperty(exports,"ConvolutionFilter",{enumerable:!0,get:function(){return p.ConvolutionFilter}}),Object.defineProperty(exports,"CrossHatchFilter",{enumerable:!0,get:function(){return f.CrossHatchFilter}}),Object.defineProperty(exports,"CRTFilter",{enumerable:!0,get:function(){return c.CRTFilter}}),Object.defineProperty(exports,"DotFilter",{enumerable:!0,get:function(){return a.DotFilter}}),Object.defineProperty(exports,"DropShadowFilter",{enumerable:!0,get:function(){return b.DropShadowFilter}}),Object.defineProperty(exports,"EmbossFilter",{enumerable:!0,get:function(){return x.EmbossFilter}}),Object.defineProperty(exports,"GlitchFilter",{enumerable:!0,get:function(){return F.GlitchFilter}}),Object.defineProperty(exports,"GlowFilter",{enumerable:!0,get:function(){return s.GlowFilter}}),Object.defineProperty(exports,"GodrayFilter",{enumerable:!0,get:function(){return m.GodrayFilter}}),Object.defineProperty(exports,"KawaseBlurFilter",{enumerable:!0,get:function(){return d.KawaseBlurFilter}}),Object.defineProperty(exports,"MotionBlurFilter",{enumerable:!0,get:function(){return g.MotionBlurFilter}}),Object.defineProperty(exports,"MultiColorReplaceFilter",{enumerable:!0,get:function(){return O.MultiColorReplaceFilter}}),Object.defineProperty(exports,"OldFilmFilter",{enumerable:!0,get:function(){return P.OldFilmFilter}}),Object.defineProperty(exports,"OutlineFilter",{enumerable:!0,get:function(){return j.OutlineFilter}}),Object.defineProperty(exports,"PixelateFilter",{enumerable:!0,get:function(){return y.PixelateFilter}}),Object.defineProperty(exports,"RadialBlurFilter",{enumerable:!0,get:function(){return q.RadialBlurFilter}}),Object.defineProperty(exports,"ReflectionFilter",{enumerable:!0,get:function(){return h.ReflectionFilter}}),Object.defineProperty(exports,"RGBSplitFilter",{enumerable:!0,get:function(){return B.RGBSplitFilter}}),Object.defineProperty(exports,"ShockwaveFilter",{enumerable:!0,get:function(){return S.ShockwaveFilter}}),Object.defineProperty(exports,"SimpleLightmapFilter",{enumerable:!0,get:function(){return w.SimpleLightmapFilter}}),Object.defineProperty(exports,"TiltShiftFilter",{enumerable:!0,get:function(){return v.TiltShiftFilter}}),Object.defineProperty(exports,"TiltShiftAxisFilter",{enumerable:!0,get:function(){return v.TiltShiftAxisFilter}}),Object.defineProperty(exports,"TiltShiftXFilter",{enumerable:!0,get:function(){return v.TiltShiftXFilter}}),Object.defineProperty(exports,"TiltShiftYFilter",{enumerable:!0,get:function(){return v.TiltShiftYFilter}}),Object.defineProperty(exports,"TwistFilter",{enumerable:!0,get:function(){return C.TwistFilter}}),Object.defineProperty(exports,"ZoomBlurFilter",{enumerable:!0,get:function(){return R.ZoomBlurFilter}});var e=require("@pixi/filter-adjustment"),r=require("@pixi/filter-advanced-bloom"),t=require("@pixi/filter-ascii"),i=require("@pixi/filter-bevel"),l=require("@pixi/filter-bloom"),n=require("@pixi/filter-bulge-pinch"),o=require("@pixi/filter-color-map"),u=require("@pixi/filter-color-replace"),p=require("@pixi/filter-convolution"),f=require("@pixi/filter-cross-hatch"),c=require("@pixi/filter-crt"),a=require("@pixi/filter-dot"),b=require("@pixi/filter-drop-shadow"),x=require("@pixi/filter-emboss"),F=require("@pixi/filter-glitch"),s=require("@pixi/filter-glow"),m=require("@pixi/filter-godray"),d=require("@pixi/filter-kawase-blur"),g=require("@pixi/filter-motion-blur"),O=require("@pixi/filter-multi-color-replace"),P=require("@pixi/filter-old-film"),j=require("@pixi/filter-outline"),y=require("@pixi/filter-pixelate"),q=require("@pixi/filter-radial-blur"),h=require("@pixi/filter-reflection"),B=require("@pixi/filter-rgb-split"),S=require("@pixi/filter-shockwave"),w=require("@pixi/filter-simple-lightmap"),v=require("@pixi/filter-tilt-shift"),C=require("@pixi/filter-twist"),R=require("@pixi/filter-zoom-blur");
},{"@pixi/filter-adjustment":"Gp90","@pixi/filter-advanced-bloom":"EoHV","@pixi/filter-ascii":"eiAy","@pixi/filter-bevel":"Y5WT","@pixi/filter-bloom":"N3id","@pixi/filter-bulge-pinch":"xMKp","@pixi/filter-color-map":"1sEd","@pixi/filter-color-replace":"HIYV","@pixi/filter-convolution":"TKeG","@pixi/filter-cross-hatch":"EyEq","@pixi/filter-crt":"jrYU","@pixi/filter-dot":"0Q5w","@pixi/filter-drop-shadow":"QUOA","@pixi/filter-emboss":"VZQb","@pixi/filter-glitch":"Lfoz","@pixi/filter-glow":"CuEO","@pixi/filter-godray":"IMlc","@pixi/filter-kawase-blur":"yoJV","@pixi/filter-motion-blur":"qeNH","@pixi/filter-multi-color-replace":"mOBp","@pixi/filter-old-film":"G/kQ","@pixi/filter-outline":"j/d7","@pixi/filter-pixelate":"5nXc","@pixi/filter-radial-blur":"pll+","@pixi/filter-reflection":"lVUa","@pixi/filter-rgb-split":"Cra9","@pixi/filter-shockwave":"IUt6","@pixi/filter-simple-lightmap":"CpF5","@pixi/filter-tilt-shift":"QqLO","@pixi/filter-twist":"rYeK","@pixi/filter-zoom-blur":"kWmh"}],"96Cg":[function(require,module,exports) {
module.exports={alpha:{start:.7,end:.09},scale:{start:.18,end:.2,minimumScaleMultiplier:1},color:{start:"#e9e8fc",end:"#e5e8ff"},speed:{start:200,end:1e3,minimumSpeedMultiplier:1},acceleration:{x:0,y:0},maxSpeed:0,startRotation:{min:80,max:82},noRotation:!1,rotationSpeed:{min:0,max:0},lifetime:{min:.81,max:2},blendMode:"add",frequency:.003,emitterLifetime:-1,maxParticles:1e3,pos:{x:0,y:0},addAtBack:!1,spawnType:"rect",spawnRect:{x:-640,y:0,w:1280,h:20}};
},{}],"BDwK":[function(require,module,exports) {
module.exports={alpha:{start:.73,end:.71},scale:{start:.26,end:.15,minimumScaleMultiplier:.34},color:{start:"#ffffff",end:"#f0f0f0"},speed:{start:50,end:200,minimumSpeedMultiplier:1},acceleration:{x:0,y:0},maxSpeed:0,startRotation:{min:60,max:100},noRotation:!1,rotationSpeed:{min:0,max:180},lifetime:{min:3.5,max:5},blendMode:"normal",ease:[{s:0,cp:.379,e:.548},{s:.548,cp:.717,e:.676},{s:.676,cp:.635,e:1}],frequency:.01,emitterLifetime:-1,maxParticles:1500,pos:{x:0,y:0},addAtBack:!1,spawnType:"rect",spawnRect:{x:-640,y:0,w:1280,h:20}};
},{}],"mGbL":[function(require,module,exports) {
module.exports={alpha:{start:.5,end:0},scale:{start:.31,end:1,minimumScaleMultiplier:1},color:{start:"#fffb7a",end:"#ffffff"},speed:{start:1e3,end:1e3,minimumSpeedMultiplier:1},acceleration:{x:0,y:0},maxSpeed:0,startRotation:{min:-5,max:5},noRotation:!1,rotationSpeed:{min:0,max:0},lifetime:{min:.53,max:1.48},blendMode:"normal",frequency:.733,emitterLifetime:-1,maxParticles:5,pos:{x:0,y:0},addAtBack:!1,spawnType:"rect",spawnRect:{x:-600,y:0,w:20,h:200}};
},{}],"mPWF":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=n(require("@dreamirl/dreamengine")),t=n(require("@dreamirl/de-plugin-particles-emitter")),r=require("pixi-filters"),i=n(require("config")),s=n(require("particles-rain")),a=n(require("particles-snow")),u=n(require("particles-stars"));function n(e){return e&&e.__esModule?e:{default:e}}function l(n){for(var l in e.default.GameObject.call(this,{x:i.default.SCREEN_WIDTH/2,y:0,zindex:2}),this.bg=new e.default.GameObject({x:i.default.SCREEN_WIDTH/2,y:i.default.SCREEN_HEIGHT/2,renderer:new e.default.SpriteRenderer({spriteName:"weather-bg-basic"})}),this.rain=new t.default({},s.default,["particle-rain"]),this.snow=new t.default({},a.default,["particle-snow"]),this.stars=new t.default({},u.default,["particle-rain"]),this.supersun=new e.default.GameObject({enable:!1,upTime:function(){this.godray.time+=.01},automatisms:[["ut","upTime"]]}),this.supersun.godray=new r.GodrayFilter,this.clouds=[],this.themeParticles={bobo:this.snow,gamer:this.rain,dark:this.stars},this.themeParticles)this.themeParticles[l].enable=!1,this.add(this.themeParticles[l]);this.add(this.supersun)}l.prototype=new e.default.GameObject,l.constructor=l,l.supr=e.default.GameObject.prototype,l.prototype.customize=function(e){var t=[];return this.enable=!0,this.bg.enable=!0,this.bg.renderer.changeSprite("weather-bg-"+e),this.themeParticles[e]&&this.themeParticles[e].start(),"kitch"===e&&(this.supersun.enable=!0,t.push(this.supersun.godray)),t},l.prototype.reset=function(){this.bg.renderer.changeSprite("weather-bg-basic"),this.rain.stop(),this.snow.stop(),this.stars.stop()};var h=l;exports.default=h;
},{"@dreamirl/dreamengine":"wSMf","@dreamirl/de-plugin-particles-emitter":"VcuM","pixi-filters":"0HxF","config":"BDLb","particles-rain":"96Cg","particles-snow":"BDwK","particles-stars":"mGbL"}],"+NBl":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=r(require("@dreamirl/dreamengine")),t=r(require("config"));function r(e){return e&&e.__esModule?e:{default:e}}function a(r){e.default.GameObject.call(this,{x:t.default.SCREEN_WIDTH/2,y:t.default.SCREEN_HEIGHT/2,renderer:new e.default.SpriteRenderer({spriteName:"house-out"}),zindex:3}),this.basicSprite={outside:"house-out",inside:"house-basic"},this.currentState=r||"inside",this.addAutomatism("changeFrame","changeFrame",{interval:500}),this.changeFrame()}a.prototype=new e.default.GameObject,a.constructor=a,a.supr=e.default.GameObject.prototype,a.prototype.customize=function(t){this.enable=!0,this.renderer.changeSprite("house-"+t),this.removeAutomatism("changeFrame"),"dark"===t&&e.default.Audio.music.stopAllAndPlay("house-dark")},a.prototype.reset=function(){this.renderer.changeSprite("house-basic"),this.addAutomatism("changeFrame","changeFrame",{interval:500})},a.prototype.changeFrame=function(){var e=this.renderer.spriteName===this.basicSprite[this.currentState]?"-2":"";this.renderer.changeSprite(this.basicSprite[this.currentState]+e)};var i=a;exports.default=i;
},{"@dreamirl/dreamengine":"wSMf","config":"BDLb"}],"Y1sF":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=r(require("@dreamirl/dreamengine")),t=r(require("config"));function r(e){return e&&e.__esModule?e:{default:e}}function a(r){e.default.GameObject.call(this,{x:t.default.SCREEN_WIDTH/2,y:t.default.SCREEN_HEIGHT/2,renderer:new e.default.SpriteRenderer({spriteName:"env-basic"}),zindex:1}),this.animatedSprite="env-basic",this.addAutomatism("changeFrame","changeFrame",{interval:500})}a.prototype=new e.default.GameObject,a.constructor=a,a.supr=e.default.GameObject.prototype,a.prototype.customize=function(e){this.enable=!0,this.renderer.changeSprite("env-"+e),this.removeAutomatism("changeFrame")},a.prototype.reset=function(){this.renderer.changeSprite("env-basic"),this.addAutomatism("changeFrame","changeFrame",{interval:500})},a.prototype.changeFrame=function(){var e=this.renderer.spriteName===this.animatedSprite?"-2":"";this.renderer.changeSprite(this.animatedSprite+e)};var i=a;exports.default=i;
},{"@dreamirl/dreamengine":"wSMf","config":"BDLb"}],"1oCN":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=r(require("@dreamirl/dreamengine")),t=r(require("config"));function r(e){return e&&e.__esModule?e:{default:e}}function a(r){e.default.GameObject.call(this,{x:t.default.INSIDE_X,y:t.default.INSIDE_Y,renderer:new e.default.SpriteRenderer({spriteName:"inside-ecolo"}),zindex:6}),this.enable=!1}a.prototype=new e.default.GameObject,a.constructor=a,a.supr=e.default.GameObject.prototype,a.prototype.customize=function(t){this.enable=!0,this.renderer.changeSprite("inside-"+t),"dark"===t&&e.default.Audio.music.stopAllAndPlay("house-dark")};var d=a;exports.default=d;
},{"@dreamirl/dreamengine":"wSMf","config":"BDLb"}],"x5Eh":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=r(require("@dreamirl/dreamengine")),t=r(require("config"));function r(e){return e&&e.__esModule?e:{default:e}}function o(r){e.default.GameObject.call(this,{x:t.default.ROOM_TYPE_X,y:t.default.ROOM_TYPE_Y,renderer:new e.default.SpriteRenderer({spriteName:"room-basic"}),zindex:7})}o.prototype=new e.default.GameObject,o.constructor=o,o.supr=e.default.GameObject.prototype,o.prototype.customize=function(e){this.enable=!0,this.renderer.changeSprite("room-"+e)};var a=o;exports.default=a;
},{"@dreamirl/dreamengine":"wSMf","config":"BDLb"}],"9iUt":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=r(require("@dreamirl/dreamengine")),t=r(require("config"));function r(e){return e&&e.__esModule?e:{default:e}}function u(r){e.default.GameObject.call(this,{x:t.default.PET_X,y:t.default.PET_Y,renderer:new e.default.SpriteRenderer({spriteName:"pet-bobo"}),zindex:8}),this.enable=!1}u.prototype=new e.default.GameObject,u.constructor=u,u.supr=e.default.GameObject.prototype,u.prototype.customize=function(t){this.enable=!0,this.renderer.changeSprite("pet-"+t),"dark"!==t&&"kitch"!==t||e.default.Audio.music.stopAllAndPlay("house-"+t)};var a=u;exports.default=a;
},{"@dreamirl/dreamengine":"wSMf","config":"BDLb"}],"0dNF":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=d(require("@dreamirl/dreamengine")),t=require("@dreamirl/de-plugin-gamescreen"),r=d(require("@dreamirl/de-plugin-messagebox")),i=d(require("config")),a=d(require("./Weather")),n=d(require("./House")),s=d(require("./Environment")),u=d(require("./Inside")),o=d(require("./RoomType")),h=d(require("./Pet"));function d(e){return e&&e.__esModule?e:{default:e}}var l=new t.GameScreen("HomeWorld",{camera:[0,0,i.default.SCREEN_WIDTH,i.default.SCREEN_HEIGHT,{}],initialize:function(){var t=this,d=this;r.default.init(),this.title=new e.default.GameObject({x:i.default.SCREEN_WIDTH/2,zindex:20,z:-2,renderer:new e.default.SpriteRenderer({spriteName:"title"}),hitArea:new e.default.PIXI.Rectangle(0,0,1e3,1e3),interactive:!0,pointerup:function(){t.interactive=!1,d.startGame()}}),this.character=new e.default.GameObject({x:i.default.CHARACTER_INITIAL_X,y:i.default.CHARACTER_INITIAL_Y,zindex:10,renderer:new e.default.SpriteRenderer({spriteName:"real-char-walk",y:-80,scale:1})}),this.character.enable=!0,this.character.makeMove=function(e,t,r){e.x<this.x?this.renderer.scale.x=-1:this.renderer.scale.x=1,this.renderer.changeSprite("real-char-walk"),this.moveTo(e,t,r)},this.weather=new a.default,window.wt=this.weather,window.home=this,this.environment=new s.default,this.house=new n.default,this.overHouse=new n.default("outside"),this.overHouse.zindex+=10,this.inside=new u.default,this.roomType=new o.default,this.pet=new h.default,this.customOrder=[this.weather,this.environment,this.house,this.inside,this.roomType,this.pet],this.currentDay=0,this.scene.add(this.customOrder,this.character,this.title,this.overHouse,this.weather.bg),this.on("show",function(t){this.camera.fadeIn(),console.log("show",t,this.currentDay),t&&t.type?this.afterNight(t.type):(this.overHouse.enable=!0,this.title.y=170,this.title.fadeIn(500,!0),e.default.Audio.music.stopAllAndPlay("main-theme"))}),this.on("hide",function(){}),this.currentDailyIndex=0,this.dailyCheck=function(e){for(var t=this,a=[],n=0;n<this.currentDay;++n)a.push(i.default.ANIM.DAILY_INDEXES[n]+1);if(this.character.renderer.changeSprite(-1!==a.indexOf(e)?"real-char-happy":"real-char-idle"),e>=i.default.ANIM.DAILY_ORDER.length)return console.log("time to sleep"),void(this.currentDay<6?setTimeout(function(){return t.goSleep()},500):r.default.create("Does it feels like home now?",function(){t.character.renderer.setPause(!0),window.confirm("Do you want to restart ?")?(t.currentDay=0,t.currentDailyIndex=0,t.character.x=-70,t.environment.reset(),t.house.reset(),t.weather.reset(),t.inside.enable=!1,t.pet.enable=!1,t.roomType.customize("basic"),t.dailyCheck(0)):r.default.create("Thanks for playing! /n This game has been made for the Globale Game Jam.",function(){r.default.create("The theme was 'What does home means to you?'",function(){r.default.create("The game has been made by:/n                      - Masami Komuro (composer)/n                      - Crounchann (arts)/n                      - Inateno (designer, programmer)/n                      - Matteo Covelli (students, sound designer)/n                      - Akibo (students, arts)/n                      - Grimka (programmer)/n                    ",function(){r.default.create("Nothing more, it's time to chill or launch the game again :)")})})}),t.character.renderer.setPause(!1)}));1===e&&0===this.currentDay&&this.overHouse.fadeOut(),this.currentDailyIndex=e;var s=this.character.getWorldPos(),u={x:i.default.ANIM.DAILY_CHECK[i.default.ANIM.DAILY_ORDER[this.currentDailyIndex]],y:s.y};this.character.addAutomatism("mt","makeMove",{args:[u,c(s,u,i.default.CHARACTER_SPEED),function(){return t.dailyCheck(t.currentDailyIndex+1)}],interval:i.default.ANIM.IDLE_DURATION,persistent:!1})},this.startGame=function(){var e=this;console.log("start me"),this.title.fadeOut(1500),this.title.moveTo({y:-150},1500,function(){e.dailyCheck(0)})},this.afterNight=function(t){e.default.Audio.music.stopAllAndPlay("house-"+t),e.default.Audio.music.get("house-"+t).fade(0,1,500);var r=this.customOrder[this.currentDay];console.log(t,this.currentDay,r),this.currentDay++;var i=r.customize(t);i&&(this.scene.filters||(this.scene.filters=[]),this.scene.filters=this.scene.filters.concat(i)),this.weather.rain.enable&&(e.default.Audio.music.play("rain"),e.default.Audio.music.get("rain").fade(0,1,500)),"env-ecolo"===this.environment.renderer.spriteName?(e.default.Audio.music.play("nature"),e.default.Audio.music.get("nature").fade(0,1,500)):"env-kitch"===this.environment.renderer.spriteName&&(e.default.Audio.music.play("sea"),e.default.Audio.music.get("sea").fade(0,1,500)),this.dailyCheck(0)},this.goSleep=function(){var t=this;this.character.renderer.changeSprite("real-char-back");var r=e.default.Audio.music.getAll();for(var i in r)r[i].fade(1,0,2e3);setTimeout(function(){t.camera.fadeOut(500),e.default.Audio.fx.play("warp"),setTimeout(function(){return t.trigger("changeScreen","dreamWorld")},800)},2e3)}}});function c(t,r,i){return new e.default.Vector2(t.x,t.y).getDistance(r)/i*16>>0}var f=l;exports.default=f;
},{"@dreamirl/dreamengine":"wSMf","@dreamirl/de-plugin-gamescreen":"Nokn","@dreamirl/de-plugin-messagebox":"DZ7E","config":"BDLb","./Weather":"mPWF","./House":"+NBl","./Environment":"Y1sF","./Inside":"1oCN","./RoomType":"x5Eh","./Pet":"9iUt"}],"WVRI":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=t(require("@dreamirl/dreamengine"));function t(e){return e&&e.__esModule?e:{default:e}}function r(t){e.default.GameObject.call(this),this.dreamWorld=t,this.shockWaveRadius=0,this.addAutomatism("checkPlanetsGravity","checkPlanetsGravity"),this.addAutomatism("checkPlanetsCollectibles","checkPlanetsCollectibles"),this.addAutomatism("checkPlayerOutside","checkPlayerOutside"),this.addAutomatism("checkEndGame","checkEndGame")}r.prototype=new e.default.GameObject,r.constructor=r,r.supr=e.default.GameObject.prototype,r.prototype.checkPlanetsGravity=function(){for(var t=this.dreamWorld.player,r=0;r<this.dreamWorld.planets.length;r++){var a=this.dreamWorld.planets[r];if(t.vector2.getDistance(a)-a.collisionRadius<2&&(t.land(a),a.hasReleasedCollectibles||(a.createShockwave(this.dreamWorld.scene),a.releaseCollectibles(t))),t.vector2.isInRangeFrom(a.vector2,a.gravityRadius)){var l=new e.default.Vector2(a.x-t.x,a.y-t.y);l.normalize(),l.multiply(a.attractForce),t.vector2.getDistance(a);var o=1-(t.vector2.getDistance(a)-a.collisionRadius)/(a.gravityRadius-a.collisionRadius);t.addGravity({x:l.x*o*.016,y:l.y*o*.016}),t.ratioGravity=o}t.vector2.isInRangeFrom(a.vector2,a.collisionRadius)&&(t.translate(new e.default.Vector2(0,t.vector2.getDistance(a)-a.collisionRadius+1)),t.velocity.x=0,t.velocity.y=0)}},r.prototype.checkPlanetsCollectibles=function(){if(10!=this.dreamWorld.collectiblesStored)for(var t=this.dreamWorld.player,r=0;r<this.dreamWorld.collectibles.length;r++){var a=this.dreamWorld.collectibles[r];if(a.vector2.getDistance(t)<a.attractRadius){var l=new e.default.Vector2(t.x-a.x,t.y-a.y);l.normalize(),l.multiply(a.attractForce),a.velocity.x+=.016*l.x,a.velocity.y+=.016*l.y,a.vector2.getDistance(t)<50&&this.dreamWorld.collectiblesStored<10&&(this.dreamWorld.collectiblesStored++,this.dreamWorld.collectibles.splice(r,1),r--,a.goToSlot(this.dreamWorld.hud.getSlot(),t))}}},r.prototype.checkEndGame=function(){var e=this;if(this.dreamWorld.hud.allSlotFilled()){for(var t={ecolo:0,bobo:0,kitch:0,gamer:0,dark:0},r=this.dreamWorld.hud.getCollectibles(),a=0;a<r.length;a++){var l=r[a];t[l.type]+=l.value}var o=0,i="ecolo";for(var c in t)t[c]>o&&(o=t[c],i=c);this.enable=!1,setTimeout(function(){e.dreamWorld.trigger("changeScreen","HomeWorld",{type:i.toLowerCase()})},2e3)}},r.prototype.checkPlayerOutside=function(){var e=this.dreamWorld.player;e.x<-3e3&&(e.x=3e3),e.x>3e3&&(e.x=-3e3),e.y<-3e3&&(e.y=3e3),e.y>3e3&&(e.y=-3e3)};var a=r;exports.default=a;
},{"@dreamirl/dreamengine":"wSMf"}],"OSSp":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=e(require("@dreamirl/dreamengine"));function e(t){return t&&t.__esModule?t:{default:t}}function o(e){t.default.GameObject.call(this,{collisionRadius:50,attractRadius:150,attractForce:3,zindex:-1,type:e.type,value:e.value,scale:e.scale,velocity:new t.default.Vector2(0,0),renderer:new t.default.SpriteRenderer({spriteName:"collectible-"+e.type}),slowRate:.98,automatisms:[["move","move"]]})}o.Types={ecolo:"ecolo",0:"ecolo",bobo:"bobo",1:"bobo",kitch:"kitch",2:"kitch",gamer:"gamer",3:"gamer",dark:"dark",4:"dark"},o.getRandomType=function(){return o.Types[5*Math.random()>>0]},o.prototype=new t.default.GameObject,o.constructor=o,o.supr=t.default.GameObject.prototype,o.prototype.move=function(){if(this.targetSlot){if(this.targetSlot&&!this.focused){var e=this.targetSlot.getWorldPos(),o=this.getWorldPos(),a=new t.default.Vector2(e.x-o.x,e.y-o.y);a.multiply(.2),this.translate(a,!0),a.getDistance({x:0,y:0})<2&&(this.focused=!0,this.x=0,this.y=0,this.rotation=0,this.targetSlot.add(this))}}else this.translate(this.velocity,!0),this.velocity.multiply(this.slowRate)},o.prototype.goToSlot=function(t){this.targetSlot=t};var a=o;exports.default=a;
},{"@dreamirl/dreamengine":"wSMf"}],"9AWC":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=s(require("@dreamirl/dreamengine")),t=s(require("Collectible")),i=require("pixi-filters");function s(e){return e&&e.__esModule?e:{default:e}}function a(t){e.default.GameObject.call(this,{scale:t.scale||1,renderers:[new e.default.SpriteRenderer({spriteName:"planet-hide"}),new e.default.SpriteRenderer({spriteName:"planet-"+t.planetId}),new e.default.GraphicRenderer]}),this.planetMask=this.renderers[2],this.renderers[1].mask=this.planetMask,this.collectibles=[],this.maskRadius=0,this.maxMaskRadius=250,this.collisionRadius=245*this.scale.x,this.gravityRadius=650*this.scale.x,this.attractForce=4,this.type=t.planetId,this.hasReleasedCollectibles=!1}a.IDS={hide:"hide",0:"hide",ecolo:"ecolo",1:"ecolo",bobo:"bobo",2:"bobo",kitch:"kitch",3:"kitch",gamer:"gamer",4:"gamer",dark:"dark",5:"dark"},a.prototype=new e.default.GameObject,a.constructor=a,a.supr=e.default.GameObject.prototype,a.prototype.spawnCollectibles=function(e){for(var i=0;i<e;i++){var s=2*Math.random()+1,a=100*s,l=new t.default({type:this.type,value:a,scale:s});l.x=this.x,l.y=this.y,l.rotation=Math.random()*Math.PI*2,this.collectibles.push(l)}return this.collectibles},a.prototype.rotateCollectible=function(t,i){var s=Math.cos(i),a=Math.sin(i);return new e.default.Vector2(t.x*s-t.y*a,t.x*a+t.y*s)},a.prototype.releaseCollectibles=function(t){if(e.default.Audio.fx.play("land"),this.type!=a.IDS.hide){for(var i=0;i<this.collectibles.length;i++){var s=this.collectibles[i],l=new e.default.Vector2(t.x-this.x,t.y-this.y),r=4*Math.random()+6;l.normalize(),l.multiply(r),l=this.rotateCollectible(l,(1-2*i)*Math.PI/3),s.velocity=l}this.addAutomatism("updateMask","updateMask"),this.hasReleasedCollectibles=!0}else this.hasReleasedCollectibles=!0},a.prototype.updateMask=function(){this.planetMask.clear(),this.planetMask.beginFill(16777215),this.planetMask.drawCircle(0,0,this.maskRadius),this.planetMask.endFill(),this.maskRadius+=9/this.scale.x,this.maskRadius>=this.maxMaskRadius&&(this.removeAutomatism("updateMask"),this.planetMask.clear(),this.planetMask.beginFill(16777215),this.planetMask.drawCircle(0,0,this.maxMaskRadius),this.planetMask.endFill())},a.prototype.createShockwave=function(e){this.swFilter=new i.ShockwaveFilter(this.getPos(),{wavelength:200,brightness:2}),this.filterTarget=e,this.filterTarget.filters=this.filterTarget.filters.concat([this.swFilter]),this.addAutomatism("updateFilter","updateFilter")},a.prototype.updateFilter=function(){this.swFilter.time+=.02,this.swFilter.time>3&&(this.removeAutomatism("updateFilter"),this.filterTarget.filters.splice(this.filterTarget.filters.indexOf(this.swFilter),1));var e=this.getPos();this.swFilter.center.x=e.x,this.swFilter.center.y=e.y};var l=a;exports.default=l;
},{"@dreamirl/dreamengine":"wSMf","Collectible":"OSSp","pixi-filters":"0HxF"}],"CXFc":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=e(require("@dreamirl/dreamengine"));function e(t){return t&&t.__esModule?t:{default:t}}function i(){t.default.GameObject.call(this,{axes:new t.default.Vector2(0,0),velocity:new t.default.Vector2(0,0),gravity:new t.default.Vector2(0,0),landed:!1,zindex:10,automatisms:[["move","move"]]}),this.body=new t.default.GameObject({y:-32,renderer:new t.default.SpriteRenderer({spriteName:"dream-char-walk"})}),this.add(this.body),this.setupInputs()}i.prototype=new t.default.GameObject,i.constructor=i,i.supr=t.default.GameObject.prototype,i.prototype.setupInputs=function(){var e=this;t.default.Inputs.on("keyDown","left",function(){e.axes.x=-4}),t.default.Inputs.on("keyDown","right",function(){e.axes.x=4}),t.default.Inputs.on("keyUp","left",function(){e.axes.x=0}),t.default.Inputs.on("keyUp","right",function(){e.axes.x=0}),t.default.Inputs.on("keyDown","jump",function(){e.jump()})},i.prototype.move=function(){if(0!=this.gravity.x||0!=this.gravity.y){var e=new t.default.Vector2(this.gravity.x,this.gravity.y).getAngle({x:0,y:0})+Math.PI/2;e=(2*Math.PI+e)%(2*Math.PI),this.rotation=(2*Math.PI+this.rotation)%(2*Math.PI),e<1&&this.rotation>6&&(e+=this.rotation),e>6&&this.rotation<1&&(this.rotation=this.rotation+e);var i=e-this.rotation;this.rotation+=i*this.ratioGravity,this.gravity.x=0,this.gravity.y=0}var a=new t.default.Vector2(this.axes.x,this.axes.y);a.rotate(this.rotation),this.translate(this.velocity,!0),this.translate(a),this.body.renderer.setPause(!1),a.x<0?this.body.scale.x=-1:a.x>0?this.body.scale.x=1:this.landed&&this.body.renderer.setPause(!0)},i.prototype.rotateJump=function(e,i){var a=Math.cos(i),r=Math.sin(i);return new t.default.Vector2(e.x*a-e.y*r,e.x*r+e.y*a)},i.prototype.jump=function(){if(this.landed){this.currentMusic&&(t.default.Audio.music.get(this.currentMusic).fade(1,0,850),t.default.Audio.music.play("space"),this.currentMusic=null),this.landed=!1;var e=new t.default.Vector2(0,-5);e=this.rotateJump(e,this.rotation),this.velocity.x+=e.x,this.velocity.y+=e.y,this.translate({x:e.x,y:e.y},!0),this.body.renderer.changeSprite("dream-char-fly")}},i.prototype.land=function(e){this.landed||("hide"!==e.type?(t.default.Audio.music.pauseAllAndPlay("planet-"+e.type),t.default.Audio.music.get("planet-"+e.type).fade(0,1,250),this.currentMusic="planet-"+e.type):t.default.Audio.music.pauseAllAndPlay("space"),this.landed=!0,this.body.renderer.changeSprite("dream-char-walk"))},i.prototype.addGravity=function(t){this.velocity.x+=t.x,this.velocity.y+=t.y,this.gravity.x+=t.x,this.gravity.y+=t.y};var a=i;exports.default=a;
},{"@dreamirl/dreamengine":"wSMf"}],"BAvu":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var t=o(require("@dreamirl/dreamengine")),e=o(require("config"));function o(t){return t&&t.__esModule?t:{default:t}}function r(){t.default.GameObject.call(this),this.slots=[],this.indexSlot=0;for(var o=0;o<10;o++){var r=new t.default.GameObject({x:75*o-337.5,y:-e.default.SCREEN_HEIGHT/2+75});this.slots.push(r)}}r.prototype=new t.default.GameObject,r.constructor=r,r.supr=t.default.GameObject.prototype,r.prototype.getSlot=function(){var t=this.slots[this.indexSlot];return this.indexSlot++,t},r.prototype.getCollectibles=function(){for(var t=[],e=0;e<this.slots.length;e++)t.push(this.slots[e].gameObjects[0]);return t},r.prototype.allSlotFilled=function(){for(var t=0;t<this.slots.length;t++){if(0===this.slots[t].gameObjects.length)return!1}return!0};var s=r;exports.default=s;
},{"@dreamirl/dreamengine":"wSMf","config":"BDLb"}],"bNvd":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=n(require("@dreamirl/dreamengine")),t=n(require("config")),i=require("@dreamirl/de-plugin-gamescreen"),s=n(require("DreamWorldControler")),a=n(require("Planet")),l=n(require("Player")),r=n(require("Hud"));function n(e){return e&&e.__esModule?e:{default:e}}var h=new i.GameScreen("dreamWorld",{camera:[0,0,t.default.SCREEN_WIDTH,t.default.SCREEN_HEIGHT,{}],initialize:function(){this.background=new e.default.GameObject({x:-5e3,y:-5e3,zindex:-50,renderer:new e.default.TilingRenderer({spriteName:"tileBackground",width:1e4,height:1e4})}),this.background.focus(this.camera),this.scene.add(this.background),this.scene.filterArea=new PIXI.Rectangle(-4e3,-4e3,8e3,8e3),this.scene.filters=[],this.collectibles=[],this.planets=[],this.collectiblesStored=0,this.on("show",function(t,i){this.spawnPlanets(),this.hud=new r.default,this.spawnPlayer(),this.controler=new s.default(this),e.default.Audio.music.stopAllAndPlay("space"),e.default.Audio.music.get("space").fade(0,.7,500),this.scene.add(this.controler,this.hud)}),this.on("hide",function(){for(var e=0;e<this.collectibles.length;e++){var t=this.collectibles[e];this.scene.remove(t)}this.collectibles=[],this.collectiblesStored=0;for(var i=0;i<this.planets.length;i++){var s=this.planets[i];this.scene.remove(s)}if(this.planet=[],this.player){for(var a=0;a<this.hud.slots.length;a++){this.hud.slots[a].removeChildren()}this.player.removeChildren(),this.scene.remove(this.hud),this.hud=void 0,this.scene.remove(this.player),this.player=void 0}this.scene.remove(this.controler),this.controler=void 0})}});h.spawnPlanets=function(){this.planetSpawn=new a.default({planetId:a.default.IDS.hide,scale:.5}),this.add(this.planetSpawn),this.planets=[this.planetSpawn];for(var t=new e.default.Vector2(0,0),i=1;i<6;i++){var s=new a.default({planetId:a.default.IDS[i]});t.rotate(2*Math.PI/5*(i-1),!0),t.translate({x:0,y:-1500},!1,!0),s.x=t.x,s.y=t.y,s.rotation=t.rotation,this.add(s),this.planets.push(s),this.collectibles=this.collectibles.concat(s.spawnCollectibles(2));for(var l=1;l<5;l++){var r=new a.default({planetId:a.default.IDS[i],scale:.5});t.rotation=s.rotation,t.x=s.x,t.y=s.y,t.rotate(2*Math.PI/4*(l-1),!0),t.translate({x:0,y:-750},!1,!0),r.x=t.x,r.y=t.y,this.add(r),this.planets.push(r),this.collectibles=this.collectibles.concat(r.spawnCollectibles(2))}t.x=0,t.y=0,t.rotation=0}this.add(this.collectibles)},h.spawnPlayer=function(){this.player=new l.default,this.player.y=this.planetSpawn.y-this.planetSpawn.height/2,this.add(this.player),this.camera.focus(this.player,{options:{rotation:!0}}),this.player.add(this.hud.slots)};var o=h;exports.default=o;
},{"@dreamirl/dreamengine":"wSMf","config":"BDLb","@dreamirl/de-plugin-gamescreen":"Nokn","DreamWorldControler":"WVRI","Planet":"9AWC","Player":"CXFc","Hud":"BAvu"}],"r5MR":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=u(require("@dreamirl/dreamengine")),r=u(require("config")),n=u(require("@dreamirl/de-plugin-gamescreen")),t=u(require("homeWorld")),d=u(require("dreamWorld"));function u(e){return e&&e.__esModule?e:{default:e}}var a={render:null,scene:null,init:function(){console.log("game init"),a.render=new e.default.Render("render",{resizeMode:"stretch-ratio",width:r.default.SCREEN_WIDTH,height:r.default.SCREEN_HEIGHT,backgroundColor:"0x000000",roundPixels:!1,powerPreferences:"high-performance"}),a.render.init(),e.default.start()},onload:function(){console.log("game start"),e.default.Audio.music.setVolume(75),e.default.Audio.fx.setVolume(50),a.screenManager=new n.default(a.render,[t.default,d.default]),a.screenManager.changeScreen(t.default.name)}},l=a;exports.default=l;
},{"@dreamirl/dreamengine":"wSMf","config":"BDLb","@dreamirl/de-plugin-gamescreen":"Nokn","homeWorld":"0dNF","dreamWorld":"bNvd"}],"0gao":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={left:{keycodes:["K.left","K.a","K.q"]},right:{keycodes:["K.right","K.d"]},jump:{keycodes:["G0.B.A","K.space"],stayOn:!0}},t=e;exports.default=t;
},{}],"5+IZ":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var o=[["main-theme","audio/music/neutre",["ogg","mp3"],{preload:!0,loop:!0,isMusic:!0}],["house-ecolo","audio/music/maison-ecolo",["ogg","mp3"],{preload:!0,loop:!0,isMusic:!0}],["house-bobo","audio/music/maison-bowbow",["ogg","mp3"],{preload:!0,loop:!0,isMusic:!0}],["house-kitch","audio/music/maison-kitsch",["ogg","mp3"],{preload:!0,loop:!0,isMusic:!0}],["house-gamer","audio/music/maison-gamer",["ogg","mp3"],{preload:!0,loop:!0,isMusic:!0}],["house-dark","audio/music/maison-halloween",["ogg","mp3"],{preload:!0,loop:!0,isMusic:!0}],["planet-ecolo","audio/music/planet-ecolo",["ogg","mp3"],{preload:!0,loop:!0,isMusic:!0}],["planet-bobo","audio/music/planet-bowbow",["ogg","mp3"],{preload:!0,loop:!0,isMusic:!0}],["planet-kitch","audio/music/planet-kitsch",["ogg","mp3"],{preload:!0,loop:!0,isMusic:!0}],["planet-gamer","audio/music/planet-gamer",["ogg","mp3"],{preload:!0,loop:!0,isMusic:!0}],["planet-dark","audio/music/planet-halloween",["ogg","mp3"],{preload:!0,loop:!0,isMusic:!0}],["rain","audio/fx/rain",["ogg","mp3"],{preload:!0,loop:!0,isMusic:!0}],["sea","audio/fx/sea",["ogg","mp3"],{preload:!0,loop:!0,isMusic:!0}],["nature","audio/fx/nature",["ogg","mp3"],{preload:!0,loop:!0,isMusic:!0}],["space","audio/music/space",["ogg","mp3"],{preload:!0,loop:!0,isMusic:!0}],["land","audio/fx/amerissage",["ogg","mp3"],{preload:!0,loop:!1,pool:1}],["warp","audio/fx/warp",["ogg","mp3"],{preload:!0,loop:!1,pool:1}]],a=o;exports.default=a;
},{}],"pn+y":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={en:{play:"Play",settings:"Settings",credits:"Credits",pause:"Pause"},fr:{play:"Jouer",settings:"Options",credits:"Credits",pause:"Pause"}},s=e;exports.default=s;
},{}],"F5Pr":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e={baseUrl:"imgs/",pools:{default:[["title","house/title.png",{totalFrame:3,interval:250}],["weather-bg-basic","house/weather/basic.png"],["weather-bg-ecolo","house/weather/bg-ecolo.png"],["weather-bg-bobo","house/weather/bg-bobo.png"],["weather-bg-kitch","house/weather/bg-kitch.png"],["weather-bg-gamer","house/weather/bg-gamer.png"],["weather-bg-dark","house/weather/bg-dark.png"],["house-out","house/house/out-1.png"],["house-out-2","house/house/out-2.png"],["house-basic","house/house/basic-1.png"],["house-basic-2","house/house/basic-2.png"],["house-ecolo","house/house/house-ecolo.png"],["house-bobo","house/house/house-bobo.png"],["house-kitch","house/house/house-kitch.png"],["house-gamer","house/house/house-gamer.png"],["house-dark","house/house/house-dark.png"],["env-basic","house/env/basic-1.png"],["env-basic-2","house/env/basic-2.png"],["env-ecolo","house/env/env-ecolo.png"],["env-bobo","house/env/env-bobo.png"],["env-kitch","house/env/env-kitch.png"],["env-gamer","house/env/env-gamer.png"],["env-dark","house/env/env-dark.png"],["inside-ecolo","house/inside/inside-ecolo.png"],["inside-bobo","house/inside/inside-bobo.png"],["inside-kitch","house/inside/inside-kitch.png"],["inside-gamer","house/inside/inside-gamer.png"],["inside-dark","house/inside/inside-dark.png"],["room-basic","house/room-type/basic.png"],["room-ecolo","house/room-type/room-ecolo.png"],["room-bobo","house/room-type/room-bobo.png"],["room-kitch","house/room-type/room-kitch.png"],["room-gamer","house/room-type/room-gamer.png"],["room-dark","house/room-type/room-dark.png"],["pet-ecolo","house/pet/pet-ecolo.png",{totalFrame:7,isLoop:!1,interval:100}],["pet-dark","house/pet/pet-dark.png",{totalFrame:3,interval:70}],["pet-bobo","house/pet/pet-bobo.png",{totalFrame:4,animated:!1,interval:100}],["pet-kitch","house/pet/pet-kitch.png",{totalFrame:5,startFrame:0,endFrame:1,interval:100}],["pet-gamer","house/pet/pet-gamer.png",{totalFrame:4,animated:!1,interval:100}],["real-char-walk","house/mr-holme-walk.png",{totalFrame:4,interval:100}],["real-char-idle","house/mr-holme-idle.png",{totalFrame:5,interval:300,startFrame:1,endFrame:4,pingPongMode:!0}],["real-char-happy","house/mr-holme-happy.png",{totalFrame:5,interval:150,startFrame:1,pingPongMode:!0}],["real-char-back","house/mr-holme-back.png",{totalFrame:3,interval:150}],["particle-rain","house/weather/rain.png"],["particle-snow","house/weather/snow.png"],["dream-char-walk","space/mr-dream-walk.png",{totalFrame:3,interval:120}],["dream-char-fly","space/mr-dream-fly.png",{totalFrame:3,interval:120}],["tileBackground","space/tileBackground.png"],["planet-ecolo","space/planet-ecolo.png"],["planet-bobo","space/planet-bobo.png"],["planet-kitch","space/planet-kitch.png"],["planet-gamer","space/planet-gamer.png"],["planet-dark","space/planet-dark.png"],["planet-hide","space/planet-hide.png"],["collectible-bobo","space/collectible-bobo.png"],["collectible-dark","space/collectible-dark.png"],["collectible-gamer","space/collectible-gamer.png"],["collectible-kitch","space/collectible-kitch.png"],["collectible-ecolo","space/collectible-ecolo.png"],["nuagePlanet","space/nuagePlanet.png"]],aCustomPool:[]}},o=e;exports.default=o;
},{}],"1lGR":[function(require,module,exports) {
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var e=[{namespace:"rock-breaker",names:{fr:"Nom français",en:"English name"},descriptions:{fr:"Des détails sur le succès",en:"Details about achievement"},objectives:{"im-packet-name":{target:10,type:"increment"}},reward:[],order:0}],r=e;exports.default=r;
},{}],"3WSm":[function(require,module,exports) {
"use strict";var e=r(require("@dreamirl/dreamengine")),a=r(require("Game")),i=r(require("inputs")),n=r(require("audios")),t=r(require("dictionary")),u=r(require("images")),o=r(require("achievements"));function r(e){return e&&e.__esModule?e:{default:e}}console.log("game main file loaded DREAM_ENGINE is:",e.default),e.default.config.DEBUG=!0,e.default.config.DEBUG_LEVEL=5,e.default.init({onReady:a.default.init,onLoad:a.default.onload,inputs:i.default,audios:n.default,dictionary:t.default,images:u.default,achievements:o.default,about:{gameName:"Engine Dev Game 1",namespace:"noting",author:"Inateno",gameVersion:"0.1"},saveModel:{nShoots:0},saveIgnoreVersion:!0});
},{"@dreamirl/dreamengine":"wSMf","Game":"r5MR","inputs":"0gao","audios":"5+IZ","dictionary":"pn+y","images":"F5Pr","achievements":"1lGR"}]},{},["3WSm"], null)
//# sourceMappingURL=/main.3d887535.map