text: !function(e){function t(e){delete installedChunks[e]}function r(e){var t=document.getElementsByTagName("head")[0],r=document.createElement("script");r.type="text/javascript",r.charset="utf-8",r.src=f.p+""+e+"."+x+".hot-update.js",t.appendChild(r)}function i(){return new Promise(function(e,t){if("undefined"==typeof XMLHttpRequest)return t(new Error("No browser support"));try{var r=new XMLHttpRequest,i=f.p+""+x+".hot-update.json";r.open("GET",i,!0),r.timeout=1e4,r.send(null)}catch(e){return t(e)}r.onreadystatechange=function(){if(4===r.readyState)if(0===r.status)t(new Error("Manifest request to "+i+" timed out."));else if(404===r.status)e();else if(200!==r.status&&304!==r.status)t(new Error("Manifest request to "+i+" failed."));else{try{var n=JSON.parse(r.responseText)}catch(e){return void t(e)}e(n)}}})}function n(e){var t=R[e];if(!t)return f;var r=function(r){return t.hot.active?(R[r]?R[r].parents.indexOf(e)<0&&R[r].parents.push(e):(T=[e],m=r),t.children.indexOf(r)<0&&t.children.push(r)):(console.warn("[HMR] unexpected require("+r+") from disposed module "+e),T=[]),f(r)};for(var i in f)Object.prototype.hasOwnProperty.call(f,i)&&"e"!==i&&Object.defineProperty(r,i,function(e){return{configurable:!0,enumerable:!0,get:function(){return f[e]},set:function(t){f[e]=t}}}(i));return r.e=function(e){function t(){O--,"prepare"===j&&(M[e]||h(e),0===O&&0===S&&c())}return"ready"===j&&s("prepare"),O++,f.e(e).then(t,function(e){throw t(),e})},r}function o(e){var t={_acceptedDependencies:{},_declinedDependencies:{},_selfAccepted:!1,_selfDeclined:!1,_disposeHandlers:[],_main:m!==e,active:!0,accept:function(e,r){if(void 0===e)t._selfAccepted=!0;else if("function"==typeof e)t._selfAccepted=e;else if("object"==typeof e)for(var i=0;i<e.length;i++)t._acceptedDependencies[e[i]]=r||function(){};else t._acceptedDependencies[e]=r||function(){}},decline:function(e){if(void 0===e)t._selfDeclined=!0;else if("object"==typeof e)for(var r=0;r<e.length;r++)t._declinedDependencies[e[r]]=!0;else t._declinedDependencies[e]=!0},dispose:function(e){t._disposeHandlers.push(e)},addDisposeHandler:function(e){t._disposeHandlers.push(e)},removeDisposeHandler:function(e){var r=t._disposeHandlers.indexOf(e);r>=0&&t._disposeHandlers.splice(r,1)},check:u,apply:d,status:function(e){if(!e)return j;E.push(e)},addStatusHandler:function(e){E.push(e)},removeStatusHandler:function(e){var t=E.indexOf(e);t>=0&&E.splice(t,1)},data:b[e]};return m=void 0,t}function s(e){j=e;for(var t=0;t<E.length;t++)E[t].call(null,e)}function a(e){return+e+""===e?+e:e}function u(e){if("idle"!==j)throw new Error("check() is only allowed in idle status");return y=e,s("check"),i().then(function(e){if(!e)return s("idle"),null;P={},M={},C=e.c,g=e.h,s("prepare");var t=new Promise(function(e,t){_={resolve:e,reject:t}});v={};return h(0),"prepare"===j&&0===O&&0===S&&c(),t})}function l(e,t){if(C[e]&&P[e]){P[e]=!1;for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(v[r]=t[r]);0==--S&&0===O&&c()}}function h(e){C[e]?(P[e]=!0,S++,r(e)):M[e]=!0}function c(){s("ready");var e=_;if(_=null,e)if(y)d(y).then(function(t){e.resolve(t)},function(t){e.reject(t)});else{var t=[];for(var r in v)Object.prototype.hasOwnProperty.call(v,r)&&t.push(a(r));e.resolve(t)}}function d(r){function i(e,t){for(var r=0;r<t.length;r++){var i=t[r];e.indexOf(i)<0&&e.push(i)}}if("ready"!==j)throw new Error("apply() is only allowed in ready status");r=r||{};var n,o,u,l,h,c={},d=[],p={},m=function(){console.warn("[HMR] unexpected require("+y.moduleId+") to disposed module")};for(var _ in v)if(Object.prototype.hasOwnProperty.call(v,_)){h=a(_);var y;y=v[_]?function(e){for(var t=[e],r={},n=t.slice().map(function(e){return{chain:[e],id:e}});n.length>0;){var o=n.pop(),s=o.id,a=o.chain;if((l=R[s])&&!l.hot._selfAccepted){if(l.hot._selfDeclined)return{type:"self-declined",chain:a,moduleId:s};if(l.hot._main)return{type:"unaccepted",chain:a,moduleId:s};for(var u=0;u<l.parents.length;u++){var h=l.parents[u],c=R[h];if(c){if(c.hot._declinedDependencies[s])return{type:"declined",chain:a.concat([h]),moduleId:s,parentId:h};t.indexOf(h)>=0||(c.hot._acceptedDependencies[s]?(r[h]||(r[h]=[]),i(r[h],[s])):(delete r[h],t.push(h),n.push({chain:a.concat([h]),id:h})))}}}}return{type:"accepted",moduleId:e,outdatedModules:t,outdatedDependencies:r}}(h):{type:"disposed",moduleId:_};var w=!1,E=!1,S=!1,O="";switch(y.chain&&(O="\nUpdate propagation: "+y.chain.join(" -> ")),y.type){case"self-declined":r.onDeclined&&r.onDeclined(y),r.ignoreDeclined||(w=new Error("Aborted because of self decline: "+y.moduleId+O));break;case"declined":r.onDeclined&&r.onDeclined(y),r.ignoreDeclined||(w=new Error("Aborted because of declined dependency: "+y.moduleId+" in "+y.parentId+O));break;case"unaccepted":r.onUnaccepted&&r.onUnaccepted(y),r.ignoreUnaccepted||(w=new Error("Aborted because "+h+" is not accepted"+O));break;case"accepted":r.onAccepted&&r.onAccepted(y),E=!0;break;case"disposed":r.onDisposed&&r.onDisposed(y),S=!0;break;default:throw new Error("Unexception type "+y.type)}if(w)return s("abort"),Promise.reject(w);if(E){p[h]=v[h],i(d,y.outdatedModules);for(h in y.outdatedDependencies)Object.prototype.hasOwnProperty.call(y.outdatedDependencies,h)&&(c[h]||(c[h]=[]),i(c[h],y.outdatedDependencies[h]))}S&&(i(d,[y.moduleId]),p[h]=m)}var M=[];for(o=0;o<d.length;o++)h=d[o],R[h]&&R[h].hot._selfAccepted&&M.push({module:h,errorHandler:R[h].hot._selfAccepted});s("dispose"),Object.keys(C).forEach(function(e){!1===C[e]&&t(e)});for(var P,A=d.slice();A.length>0;)if(h=A.pop(),l=R[h]){var I={},D=l.hot._disposeHandlers;for(u=0;u<D.length;u++)(n=D[u])(I);for(b[h]=I,l.hot.active=!1,delete R[h],u=0;u<l.children.length;u++){var L=R[l.children[u]];L&&((P=L.parents.indexOf(h))>=0&&L.parents.splice(P,1))}}var N,k;for(h in c)if(Object.prototype.hasOwnProperty.call(c,h)&&(l=R[h]))for(k=c[h],u=0;u<k.length;u++)N=k[u],(P=l.children.indexOf(N))>=0&&l.children.splice(P,1);s("apply"),x=g;for(h in p)Object.prototype.hasOwnProperty.call(p,h)&&(e[h]=p[h]);var F=null;for(h in c)if(Object.prototype.hasOwnProperty.call(c,h)){l=R[h],k=c[h];var B=[];for(o=0;o<k.length;o++)N=k[o],n=l.hot._acceptedDependencies[N],B.indexOf(n)>=0||B.push(n);for(o=0;o<B.length;o++){n=B[o];try{n(k)}catch(e){r.onErrored&&r.onErrored({type:"accept-errored",moduleId:h,dependencyId:k[o],error:e}),r.ignoreErrored||F||(F=e)}}}for(o=0;o<M.length;o++){var U=M[o];h=U.module,T=[h];try{f(h)}catch(e){if("function"==typeof U.errorHandler)try{U.errorHandler(e)}catch(t){r.onErrored&&r.onErrored({type:"self-accept-error-handler-errored",moduleId:h,error:t,orginalError:e}),r.ignoreErrored||F||(F=t),F||(F=e)}else r.onErrored&&r.onErrored({type:"self-accept-errored",moduleId:h,error:e}),r.ignoreErrored||F||(F=e)}}return F?(s("fail"),Promise.reject(F)):(s("idle"),new Promise(function(e){e(d)}))}function f(t){if(R[t])return R[t].exports;var r=R[t]={i:t,l:!1,exports:{},hot:o(t),parents:(w=T,T=[],w),children:[]};return e[t].call(r.exports,r,r.exports,n(t)),r.l=!0,r.exports}var p=this.webpackHotUpdate;this.webpackHotUpdate=function(e,t){l(e,t),p&&p(e,t)};var m,_,v,g,y=!0,x="3eef260c2f595ba7b730",b={},T=[],w=[],E=[],j="idle",S=0,O=0,M={},P={},C={},R={};f.m=e,f.c=R,f.i=function(e){return e},f.d=function(e,t,r){f.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},f.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return f.d(t,"a",t),t},f.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},f.p="",f.h=function(){return x},n("./src/app.js")(f.s="./src/app.js")}({"./node_modules/bit-twiddle/twiddle.js":function(e,t,r){"use strict";"use restrict";function i(e){var t=32;return e&=-e,e&&t--,65535&e&&(t-=16),16711935&e&&(t-=8),252645135&e&&(t-=4),858993459&e&&(t-=2),1431655765&e&&(t-=1),t}t.INT_BITS=32,t.INT_MAX=2147483647,t.INT_MIN=-1<<31,t.sign=function(e){return(e>0)-(e<0)},t.abs=function(e){var t=e>>31;return(e^t)-t},t.min=function(e,t){return t^(e^t)&-(e<t)},t.max=function(e,t){return e^(e^t)&-(e<t)},t.isPow2=function(e){return!(e&e-1||!e)},t.log2=function(e){var t,r;return t=(e>65535)<<4,e>>>=t,r=(e>255)<<3,e>>>=r,t|=r,r=(e>15)<<2,e>>>=r,t|=r,r=(e>3)<<1,e>>>=r,(t|=r)|e>>1},t.log10=function(e){return e>=1e9?9:e>=1e8?8:e>=1e7?7:e>=1e6?6:e>=1e5?5:e>=1e4?4:e>=1e3?3:e>=100?2:e>=10?1:0},t.popCount=function(e){return e-=e>>>1&1431655765,16843009*((e=(858993459&e)+(e>>>2&858993459))+(e>>>4)&252645135)>>>24},t.countTrailingZeros=i,t.nextPow2=function(e){return e+=0===e,--e,e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)+1},t.prevPow2=function(e){return e|=e>>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,(e|=e>>>16)-(e>>>1)},t.parity=function(e){return e^=e>>>16,e^=e>>>8,e^=e>>>4,27030>>>(e&=15)&1};var n=new Array(256);!function(e){for(var t=0;t<256;++t){var r=t,i=t,n=7;for(r>>>=1;r;r>>>=1)i<<=1,i|=1&r,--n;e[t]=i<<n&255}}(n),t.reverse=function(e){return n[255&e]<<24|n[e>>>8&255]<<16|n[e>>>16&255]<<8|n[e>>>24&255]},t.interleave2=function(e,t){return e&=65535,e=16711935&(e|e<<8),e=252645135&(e|e<<4),e=858993459&(e|e<<2),e=1431655765&(e|e<<1),t&=65535,t=16711935&(t|t<<8),t=252645135&(t|t<<4),t=858993459&(t|t<<2),t=1431655765&(t|t<<1),e|t<<1},t.deinterleave2=function(e,t){return e=e>>>t&1431655765,e=858993459&(e|e>>>1),e=252645135&(e|e>>>2),e=16711935&(e|e>>>4),(e=65535&(e|e>>>16))<<16>>16},t.interleave3=function(e,t,r){return e&=1023,e=4278190335&(e|e<<16),e=251719695&(e|e<<8),e=3272356035&(e|e<<4),e=1227133513&(e|e<<2),t&=1023,t=4278190335&(t|t<<16),t=251719695&(t|t<<8),t=3272356035&(t|t<<4),t=1227133513&(t|t<<2),e|=t<<1,r&=1023,r=4278190335&(r|r<<16),r=251719695&(r|r<<8),r=3272356035&(r|r<<4),r=1227133513&(r|r<<2),e|r<<2},t.deinterleave3=function(e,t){return e=e>>>t&1227133513,e=3272356035&(e|e>>>2),e=251719695&(e|e>>>4),e=4278190335&(e|e>>>8),(e=1023&(e|e>>>16))<<22>>22},t.nextCombination=function(e){var t=e|e-1;return t+1|(~t&-~t)-1>>>i(e)+1}},"./node_modules/earcut/src/earcut.js":function(e,t,r){"use strict";function i(e,t,r){r=r||2;var i=t&&t.length,o=i?t[0]*r:e.length,a=n(e,0,o,r,!0),u=[];if(!a)return u;var l,h,d,f,p,m,_;if(i&&(a=c(e,t,a,r)),e.length>80*r){l=d=e[0],h=f=e[1];for(var v=r;v<o;v+=r)p=e[v],m=e[v+1],p<l&&(l=p),m<h&&(h=m),p>d&&(d=p),m>f&&(f=m);_=Math.max(d-l,f-h)}return s(a,u,r,l,h,_),u}function n(e,t,r,i,n){var o,s;if(n===R(e,t,r,i)>0)for(o=t;o<r;o+=i)s=M(o,e[o],e[o+1],s);else for(o=r-i;o>=t;o-=i)s=M(o,e[o],e[o+1],s);return s&&T(s,s.next)&&(P(s),s=s.next),s}function o(e,t){if(!e)return e;t||(t=e);var r,i=e;do{if(r=!1,i.steiner||!T(i,i.next)&&0!==b(i.prev,i,i.next))i=i.next;else{if(P(i),(i=t=i.prev)===i.next)return null;r=!0}}while(r||i!==t);return t}function s(e,t,r,i,n,c,d){if(e){!d&&c&&m(e,i,n,c);for(var f,p,_=e;e.prev!==e.next;)if(f=e.prev,p=e.next,c?u(e,i,n,c):a(e))t.push(f.i/r),t.push(e.i/r),t.push(p.i/r),P(e),e=p.next,_=p.next;else if((e=p)===_){d?1===d?(e=l(e,t,r),s(e,t,r,i,n,c,2)):2===d&&h(e,t,r,i,n,c):s(o(e),t,r,i,n,c,1);break}}}function a(e){var t=e.prev,r=e,i=e.next;if(b(t,r,i)>=0)return!1;for(var n=e.next.next;n!==e.prev;){if(y(t.x,t.y,r.x,r.y,i.x,i.y,n.x,n.y)&&b(n.prev,n,n.next)>=0)return!1;n=n.next}return!0}function u(e,t,r,i){var n=e.prev,o=e,s=e.next;if(b(n,o,s)>=0)return!1;for(var a=n.x<o.x?n.x<s.x?n.x:s.x:o.x<s.x?o.x:s.x,u=n.y<o.y?n.y<s.y?n.y:s.y:o.y<s.y?o.y:s.y,l=n.x>o.x?n.x>s.x?n.x:s.x:o.x>s.x?o.x:s.x,h=n.y>o.y?n.y>s.y?n.y:s.y:o.y>s.y?o.y:s.y,c=v(a,u,t,r,i),d=v(l,h,t,r,i),f=e.nextZ;f&&f.z<=d;){if(f!==e.prev&&f!==e.next&&y(n.x,n.y,o.x,o.y,s.x,s.y,f.x,f.y)&&b(f.prev,f,f.next)>=0)return!1;f=f.nextZ}for(f=e.prevZ;f&&f.z>=c;){if(f!==e.prev&&f!==e.next&&y(n.x,n.y,o.x,o.y,s.x,s.y,f.x,f.y)&&b(f.prev,f,f.next)>=0)return!1;f=f.prevZ}return!0}function l(e,t,r){var i=e;do{var n=i.prev,o=i.next.next;!T(n,o)&&w(n,i,i.next,o)&&j(n,o)&&j(o,n)&&(t.push(n.i/r),t.push(i.i/r),t.push(o.i/r),P(i),P(i.next),i=e=o),i=i.next}while(i!==e);return i}function h(e,t,r,i,n,a){var u=e;do{for(var l=u.next.next;l!==u.prev;){if(u.i!==l.i&&x(u,l)){var h=O(u,l);return u=o(u,u.next),h=o(h,h.next),s(u,t,r,i,n,a),void s(h,t,r,i,n,a)}l=l.next}u=u.next}while(u!==e)}function c(e,t,r,i){var s,a,u,l,h,c=[];for(s=0,a=t.length;s<a;s++)u=t[s]*i,l=s<a-1?t[s+1]*i:e.length,h=n(e,u,l,i,!1),h===h.next&&(h.steiner=!0),c.push(g(h));for(c.sort(d),s=0;s<c.length;s++)f(c[s],r),r=o(r,r.next);return r}function d(e,t){return e.x-t.x}function f(e,t){if(t=p(e,t)){var r=O(t,e);o(r,r.next)}}function p(e,t){var r,i=t,n=e.x,o=e.y,s=-1/0;do{if(o<=i.y&&o>=i.next.y){var a=i.x+(o-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(a<=n&&a>s){if(s=a,a===n){if(o===i.y)return i;if(o===i.next.y)return i.next}r=i.x<i.next.x?i:i.next}}i=i.next}while(i!==t);if(!r)return null;if(n===s)return r.prev;var u,l=r,h=r.x,c=r.y,d=1/0;for(i=r.next;i!==l;)n>=i.x&&i.x>=h&&y(o<c?n:s,o,h,c,o<c?s:n,o,i.x,i.y)&&((u=Math.abs(o-i.y)/(n-i.x))<d||u===d&&i.x>r.x)&&j(i,e)&&(r=i,d=u),i=i.next;return r}function m(e,t,r,i){var n=e;do{null===n.z&&(n.z=v(n.x,n.y,t,r,i)),n.prevZ=n.prev,n.nextZ=n.next,n=n.next}while(n!==e);n.prevZ.nextZ=null,n.prevZ=null,_(n)}function _(e){var t,r,i,n,o,s,a,u,l=1;do{for(r=e,e=null,o=null,s=0;r;){for(s++,i=r,a=0,t=0;t<l&&(a++,i=i.nextZ);t++);for(u=l;a>0||u>0&&i;)0===a?(n=i,i=i.nextZ,u--):0!==u&&i?r.z<=i.z?(n=r,r=r.nextZ,a--):(n=i,i=i.nextZ,u--):(n=r,r=r.nextZ,a--),o?o.nextZ=n:e=n,n.prevZ=o,o=n;r=i}o.nextZ=null,l*=2}while(s>1);return e}function v(e,t,r,i,n){return e=32767*(e-r)/n,t=32767*(t-i)/n,e=16711935&(e|e<<8),e=252645135&(e|e<<4),e=858993459&(e|e<<2),e=1431655765&(e|e<<1),t=16711935&(t|t<<8),t=252645135&(t|t<<4),t=858993459&(t|t<<2),t=1431655765&(t|t<<1),e|t<<1}function g(e){var t=e,r=e;do{t.x<r.x&&(r=t),t=t.next}while(t!==e);return r}function y(e,t,r,i,n,o,s,a){return(n-s)*(t-a)-(e-s)*(o-a)>=0&&(e-s)*(i-a)-(r-s)*(t-a)>=0&&(r-s)*(o-a)-(n-s)*(i-a)>=0}function x(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!E(e,t)&&j(e,t)&&j(t,e)&&S(e,t)}function b(e,t,r){return(t.y-e.y)*(r.x-t.x)-(t.x-e.x)*(r.y-t.y)}function T(e,t){return e.x===t.x&&e.y===t.y}function w(e,t,r,i){return!!(T(e,t)&&T(r,i)||T(e,i)&&T(r,t))||b(e,t,r)>0!=b(e,t,i)>0&&b(r,i,e)>0!=b(r,i,t)>0}function E(e,t){var r=e;do{if(r.i!==e.i&&r.next.i!==e.i&&r.i!==t.i&&r.next.i!==t.i&&w(r,r.next,e,t))return!0;r=r.next}while(r!==e);return!1}function j(e,t){return b(e.prev,e,e.next)<0?b(e,t,e.next)>=0&&b(e,e.prev,t)>=0:b(e,t,e.prev)<0||b(e,e.next,t)<0}function S(e,t){var r=e,i=!1,n=(e.x+t.x)/2,o=(e.y+t.y)/2;do{r.y>o!=r.next.y>o&&n<(r.next.x-r.x)*(o-r.y)/(r.next.y-r.y)+r.x&&(i=!i),r=r.next}while(r!==e);return i}function O(e,t){var r=new C(e.i,e.x,e.y),i=new C(t.i,t.x,t.y),n=e.next,o=t.prev;return e.next=t,t.prev=e,r.next=n,n.prev=r,i.next=r,r.prev=i,o.next=i,i.prev=o,i}function M(e,t,r,i){var n=new C(e,t,r);return i?(n.next=i.next,n.prev=i,i.next.prev=n,i.next=n):(n.prev=n,n.next=n),n}function P(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 C(e,t,r){this.i=e,this.x=t,this.y=r,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function R(e,t,r,i){for(var n=0,o=t,s=r-i;o<r;o+=i)n+=(e[s]-e[o])*(e[o+1]+e[s+1]),s=o;return n}e.exports=i,i.deviation=function(e,t,r,i){var n=t&&t.length,o=n?t[0]*r:e.length,s=Math.abs(R(e,0,o,r));if(n)for(var a=0,u=t.length;a<u;a++){var l=t[a]*r,h=a<u-1?t[a+1]*r:e.length;s-=Math.abs(R(e,l,h,r))}var c=0;for(a=0;a<i.length;a+=3){var d=i[a]*r,f=i[a+1]*r,p=i[a+2]*r;c+=Math.abs((e[d]-e[p])*(e[f+1]-e[d+1])-(e[d]-e[f])*(e[p+1]-e[d+1]))}return 0===s&&0===c?0:Math.abs((c-s)/s)},i.flatten=function(e){for(var t=e[0][0].length,r={vertices:[],holes:[],dimensions:t},i=0,n=0;n<e.length;n++){for(var o=0;o<e[n].length;o++)for(var s=0;s<t;s++)r.vertices.push(e[n][o][s]);n>0&&(i+=e[n-1].length,r.holes.push(i))}return r}},"./node_modules/ismobilejs/isMobile.js":function(e,t,r){var i,n,o;/**
   * isMobile.js v0.4.1
   *
   * A simple library to detect Apple phones and tablets,
   * Android phones and tablets, other mobile devices (like blackberry, mini-opera and windows phone),
   * and any kind of seven inch device, via user agent sniffing.
   *
   * @author: Kai Mallea (kmallea@gmail.com)
   *
   * @license: http://creativecommons.org/publicdomain/zero/1.0/
   */
  !function(r){var s=/iPhone/i,a=/iPod/i,u=/iPad/i,l=/(?=.*\bAndroid\b)(?=.*\bMobile\b)/i,h=/Android/i,c=/(?=.*\bAndroid\b)(?=.*\bSD4930UR\b)/i,d=/(?=.*\bAndroid\b)(?=.*\b(?:KFOT|KFTT|KFJWI|KFJWA|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|KFARWI|KFASWI|KFSAWI|KFSAWA)\b)/i,f=/Windows Phone/i,p=/(?=.*\bWindows\b)(?=.*\bARM\b)/i,m=/BlackBerry/i,_=/BB10/i,v=/Opera Mini/i,g=/(CriOS|Chrome)(?=.*\bMobile\b)/i,y=/(?=.*\bFirefox\b)(?=.*\bMobile\b)/i,x=new RegExp("(?:Nexus 7|BNTV250|Kindle Fire|Silk|GT-P1000)","i"),b=function(e,t){return e.test(t)},T=function(e){var t=e||navigator.userAgent,r=t.split("[FBAN");if(void 0!==r[1]&&(t=r[0]),r=t.split("Twitter"),void 0!==r[1]&&(t=r[0]),this.apple={phone:b(s,t),ipod:b(a,t),tablet:!b(s,t)&&b(u,t),device:b(s,t)||b(a,t)||b(u,t)},this.amazon={phone:b(c,t),tablet:!b(c,t)&&b(d,t),device:b(c,t)||b(d,t)},this.android={phone:b(c,t)||b(l,t),tablet:!b(c,t)&&!b(l,t)&&(b(d,t)||b(h,t)),device:b(c,t)||b(d,t)||b(l,t)||b(h,t)},this.windows={phone:b(f,t),tablet:b(p,t),device:b(f,t)||b(p,t)},this.other={blackberry:b(m,t),blackberry10:b(_,t),opera:b(v,t),firefox:b(y,t),chrome:b(g,t),device:b(m,t)||b(_,t)||b(v,t)||b(y,t)||b(g,t)},this.seven_inch=b(x,t),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},w=function(){var e=new T;return e.Class=T,e};void 0!==e&&e.exports&&"undefined"==typeof window?e.exports=T:void 0!==e&&e.exports&&"undefined"!=typeof window?e.exports=w():(n=[],i=r.isMobile=w(),void 0!==(o="function"==typeof i?i.apply(t,n):i)&&(e.exports=o))}(this)},"./node_modules/mini-signals/lib/mini-signals.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){return e._head?(e._tail._next=t,t._prev=e._tail,e._tail=t):(e._head=t,e._tail=t),t._owner=e,t}Object.defineProperty(t,"__esModule",{value:!0});var o=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}}(),s=function(){function e(t,r,n){void 0===r&&(r=!1),i(this,e),this._fn=t,this._once=r,this._thisArg=n,this._next=this._prev=this._owner=null}return o(e,[{key:"detach",value:function(){return null!==this._owner&&(this._owner.detach(this),!0)}}]),e}(),a=function(){function e(){i(this,e),this._head=this._tail=void 0}return o(e,[{key:"handlers",value:function(){var e=!(arguments.length<=0||void 0===arguments[0])&&arguments[0],t=this._head;if(e)return!!t;for(var r=[];t;)r.push(t),t=t._next;return r}},{key:"has",value:function(e){if(!(e instanceof s))throw new Error("MiniSignal#has(): First arg must be a MiniSignalBinding object.");return e._owner===this}},{key:"dispatch",value:function(){var e=this._head;if(!e)return!1;for(;e;)e._once&&this.detach(e),e._fn.apply(e._thisArg,arguments),e=e._next;return!0}},{key:"add",value:function(e){var t=arguments.length<=1||void 0===arguments[1]?null:arguments[1];if("function"!=typeof e)throw new Error("MiniSignal#add(): First arg must be a Function.");return n(this,new s(e,!1,t))}},{key:"once",value:function(e){var t=arguments.length<=1||void 0===arguments[1]?null:arguments[1];if("function"!=typeof e)throw new Error("MiniSignal#once(): First arg must be a Function.");return n(this,new s(e,!0,t))}},{key:"detach",value:function(e){if(!(e instanceof s))throw new Error("MiniSignal#detach(): First arg must be a MiniSignalBinding object.");return e._owner!==this?this:(e._prev&&(e._prev._next=e._next),e._next&&(e._next._prev=e._prev),e===this._head?(this._head=e._next,null===e._next&&(this._tail=null)):e===this._tail&&(this._tail=e._prev,this._tail._next=null),e._owner=null,this)}},{key:"detachAll",value:function(){var e=this._head;if(!e)return this;for(this._head=this._tail=null;e;)e._owner=null,e=e._next;return this}}]),e}();a.MiniSignalBinding=s,t.default=a,e.exports=t.default},"./node_modules/parse-uri/index.js":function(e,t,r){"use strict";e.exports=function(e,t){t=t||{};for(var r={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*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},i=r.parser[t.strictMode?"strict":"loose"].exec(e),n={},o=14;o--;)n[r.key[o]]=i[o]||"";return n[r.q.name]={},n[r.key[12]].replace(r.q.parser,function(e,t,i){t&&(n[r.q.name][t]=i)}),n}},"./node_modules/path-browserify/index.js":function(e,t,r){(function(e){function r(e,t){for(var r=0,i=e.length-1;i>=0;i--){var n=e[i];"."===n?e.splice(i,1):".."===n?(e.splice(i,1),r++):r&&(e.splice(i,1),r--)}if(t)for(;r--;r)e.unshift("..");return e}function i(e,t){if(e.filter)return e.filter(t);for(var r=[],i=0;i<e.length;i++)t(e[i],i,e)&&r.push(e[i]);return r}var n=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,o=function(e){return n.exec(e).slice(1)};t.resolve=function(){for(var t="",n=!1,o=arguments.length-1;o>=-1&&!n;o--){var s=o>=0?arguments[o]:e.cwd();if("string"!=typeof s)throw new TypeError("Arguments to path.resolve must be strings");s&&(t=s+"/"+t,n="/"===s.charAt(0))}return t=r(i(t.split("/"),function(e){return!!e}),!n).join("/"),(n?"/":"")+t||"."},t.normalize=function(e){var n=t.isAbsolute(e),o="/"===s(e,-1);return e=r(i(e.split("/"),function(e){return!!e}),!n).join("/"),e||n||(e="."),e&&o&&(e+="/"),(n?"/":"")+e},t.isAbsolute=function(e){return"/"===e.charAt(0)},t.join=function(){var e=Array.prototype.slice.call(arguments,0);return t.normalize(i(e,function(e,t){if("string"!=typeof e)throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))},t.relative=function(e,r){function i(e){for(var t=0;t<e.length&&""===e[t];t++);for(var r=e.length-1;r>=0&&""===e[r];r--);return t>r?[]:e.slice(t,r-t+1)}e=t.resolve(e).substr(1),r=t.resolve(r).substr(1);for(var n=i(e.split("/")),o=i(r.split("/")),s=Math.min(n.length,o.length),a=s,u=0;u<s;u++)if(n[u]!==o[u]){a=u;break}for(var l=[],u=a;u<n.length;u++)l.push("..");return l=l.concat(o.slice(a)),l.join("/")},t.sep="/",t.delimiter=":",t.dirname=function(e){var t=o(e),r=t[0],i=t[1];return r||i?(i&&(i=i.substr(0,i.length-1)),r+i):"."},t.basename=function(e,t){var r=o(e)[2];return t&&r.substr(-1*t.length)===t&&(r=r.substr(0,r.length-t.length)),r},t.extname=function(e){return o(e)[3]};var s="b"==="ab".substr(-1)?function(e,t,r){return e.substr(t,r)}:function(e,t,r){return t<0&&(t=e.length+t),e.substr(t,r)}}).call(t,r("./node_modules/process/browser.js"))},"./node_modules/pixi-gl-core/src/GLBuffer.js":function(e,t){var r=new ArrayBuffer(0),i=function(e,t,i,n){this.gl=e,this.buffer=e.createBuffer(),this.type=t||e.ARRAY_BUFFER,this.drawType=n||e.STATIC_DRAW,this.data=r,i&&this.upload(i),this._updateID=0};i.prototype.upload=function(e,t,r){r||this.bind();var i=this.gl;e=e||this.data,t=t||0,this.data.byteLength>=e.byteLength?i.bufferSubData(this.type,t,e):i.bufferData(this.type,e,this.drawType),this.data=e},i.prototype.bind=function(){this.gl.bindBuffer(this.type,this.buffer)},i.createVertexBuffer=function(e,t,r){return new i(e,e.ARRAY_BUFFER,t,r)},i.createIndexBuffer=function(e,t,r){return new i(e,e.ELEMENT_ARRAY_BUFFER,t,r)},i.create=function(e,t,r,n){return new i(e,t,r,n)},i.prototype.destroy=function(){this.gl.deleteBuffer(this.buffer)},e.exports=i},"./node_modules/pixi-gl-core/src/GLFramebuffer.js":function(e,t,r){var i=r("./node_modules/pixi-gl-core/src/GLTexture.js"),n=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};n.prototype.enableTexture=function(e){var t=this.gl;this.texture=e||new i(t),this.texture.bind(),this.bind(),t.framebufferTexture2D(t.FRAMEBUFFER,t.COLOR_ATTACHMENT0,t.TEXTURE_2D,this.texture.texture,0)},n.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)}},n.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)},n.prototype.bind=function(){var e=this.gl;e.bindFramebuffer(e.FRAMEBUFFER,this.framebuffer)},n.prototype.unbind=function(){var e=this.gl;e.bindFramebuffer(e.FRAMEBUFFER,null)},n.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))},n.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},n.createRGBA=function(e,t,r,o){var s=i.fromData(e,null,t,r);s.enableNearestScaling(),s.enableWrapClamp();var a=new n(e,t,r);return a.enableTexture(s),a.unbind(),a},n.createFloat32=function(e,t,r,o){var s=new i.fromData(e,o,t,r);s.enableNearestScaling(),s.enableWrapClamp();var a=new n(e,t,r);return a.enableTexture(s),a.unbind(),a},e.exports=n},"./node_modules/pixi-gl-core/src/GLShader.js":function(e,t,r){var i=r("./node_modules/pixi-gl-core/src/shader/compileProgram.js"),n=r("./node_modules/pixi-gl-core/src/shader/extractAttributes.js"),o=r("./node_modules/pixi-gl-core/src/shader/extractUniforms.js"),s=r("./node_modules/pixi-gl-core/src/shader/setPrecision.js"),a=r("./node_modules/pixi-gl-core/src/shader/generateUniformAccessObject.js"),u=function(e,t,r,u,l){this.gl=e,u&&(t=s(t,u),r=s(r,u)),this.program=i(e,t,r,l),this.attributes=n(e,this.program),this.uniformData=o(e,this.program),this.uniforms=a(e,this.uniformData)};u.prototype.bind=function(){this.gl.useProgram(this.program)},u.prototype.destroy=function(){this.attributes=null,this.uniformData=null,this.uniforms=null,this.gl.deleteProgram(this.program)},e.exports=u},"./node_modules/pixi-gl-core/src/GLTexture.js":function(e,t){var r=function(e,t,r,i,n){this.gl=e,this.texture=e.createTexture(),this.mipmap=!1,this.premultiplyAlpha=!1,this.width=t||-1,this.height=r||-1,this.format=i||e.RGBA,this.type=n||e.UNSIGNED_BYTE};r.prototype.upload=function(e){this.bind();var t=this.gl;t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.premultiplyAlpha);var r=e.videoWidth||e.width,i=e.videoHeight||e.height;i!==this.height||r!==this.width?t.texImage2D(t.TEXTURE_2D,0,this.format,this.format,this.type,e):t.texSubImage2D(t.TEXTURE_2D,0,0,0,this.format,this.type,e),this.width=r,this.height=i};var i=!1;r.prototype.uploadData=function(e,t,r){this.bind();var n=this.gl;if(e instanceof Float32Array){if(!i){if(!n.getExtension("OES_texture_float"))throw new Error("floating point textures not available");i=!0}this.type=n.FLOAT}else this.type=this.type||n.UNSIGNED_BYTE;n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.premultiplyAlpha),t!==this.width||r!==this.height?n.texImage2D(n.TEXTURE_2D,0,this.format,t,r,0,this.format,this.type,e||null):n.texSubImage2D(n.TEXTURE_2D,0,0,0,t,r,this.format,this.type,e||null),this.width=t,this.height=r},r.prototype.bind=function(e){var t=this.gl;void 0!==e&&t.activeTexture(t.TEXTURE0+e),t.bindTexture(t.TEXTURE_2D,this.texture)},r.prototype.unbind=function(){var e=this.gl;e.bindTexture(e.TEXTURE_2D,null)},r.prototype.minFilter=function(e){var t=this.gl;this.bind(),this.mipmap?t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,e?t.LINEAR_MIPMAP_LINEAR:t.NEAREST_MIPMAP_NEAREST):t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,e?t.LINEAR:t.NEAREST)},r.prototype.magFilter=function(e){var t=this.gl;this.bind(),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,e?t.LINEAR:t.NEAREST)},r.prototype.enableMipmap=function(){var e=this.gl;this.bind(),this.mipmap=!0,e.generateMipmap(e.TEXTURE_2D)},r.prototype.enableLinearScaling=function(){this.minFilter(!0),this.magFilter(!0)},r.prototype.enableNearestScaling=function(){this.minFilter(!1),this.magFilter(!1)},r.prototype.enableWrapClamp=function(){var e=this.gl;this.bind(),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.CLAMP_TO_EDGE),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.CLAMP_TO_EDGE)},r.prototype.enableWrapRepeat=function(){var e=this.gl;this.bind(),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT)},r.prototype.enableWrapMirrorRepeat=function(){var e=this.gl;this.bind(),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.MIRRORED_REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.MIRRORED_REPEAT)},r.prototype.destroy=function(){this.gl.deleteTexture(this.texture)},r.fromSource=function(e,t,i){var n=new r(e);return n.premultiplyAlpha=i||!1,n.upload(t),n},r.fromData=function(e,t,i,n){var o=new r(e);return o.uploadData(t,i,n),o},e.exports=r},"./node_modules/pixi-gl-core/src/VertexArrayObject.js":function(e,t,r){function i(e,t){if(this.nativeVaoExtension=null,i.FORCE_NATIVE||(this.nativeVaoExtension=e.getExtension("OES_vertex_array_object")||e.getExtension("MOZ_OES_vertex_array_object")||e.getExtension("WEBKIT_OES_vertex_array_object")),this.nativeState=t,this.nativeVaoExtension){this.nativeVao=this.nativeVaoExtension.createVertexArrayOES();var r=e.getParameter(e.MAX_VERTEX_ATTRIBS);this.nativeState={tempAttribState:new Array(r),attribState:new Array(r)}}this.gl=e,this.attributes=[],this.indexBuffer=null,this.dirty=!1}var n=r("./node_modules/pixi-gl-core/src/setVertexAttribArrays.js");i.prototype.constructor=i,e.exports=i,i.FORCE_NATIVE=!1,i.prototype.bind=function(){return this.nativeVao?(this.nativeVaoExtension.bindVertexArrayOES(this.nativeVao),this.dirty&&(this.dirty=!1,this.activate())):this.activate(),this},i.prototype.unbind=function(){return this.nativeVao&&this.nativeVaoExtension.bindVertexArrayOES(null),this},i.prototype.activate=function(){for(var e=this.gl,t=null,r=0;r<this.attributes.length;r++){var i=this.attributes[r];t!==i.buffer&&(i.buffer.bind(),t=i.buffer),e.vertexAttribPointer(i.attribute.location,i.attribute.size,i.type||e.FLOAT,i.normalized||!1,i.stride||0,i.start||0)}return n(e,this.attributes,this.nativeState),this.indexBuffer&&this.indexBuffer.bind(),this},i.prototype.addAttribute=function(e,t,r,i,n,o){return this.attributes.push({buffer:e,attribute:t,location:t.location,type:r||this.gl.FLOAT,normalized:i||!1,stride:n||0,start:o||0}),this.dirty=!0,this},i.prototype.addIndex=function(e){return this.indexBuffer=e,this.dirty=!0,this},i.prototype.clear=function(){return this.nativeVao&&this.nativeVaoExtension.bindVertexArrayOES(this.nativeVao),this.attributes.length=0,this.indexBuffer=null,this},i.prototype.draw=function(e,t,r){var i=this.gl;return this.indexBuffer?i.drawElements(e,t||this.indexBuffer.data.length,i.UNSIGNED_SHORT,2*(r||0)):i.drawArrays(e,r,t||this.getSize()),this},i.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},i.prototype.getSize=function(){var e=this.attributes[0];return e.buffer.data.length/(e.stride/4||e.attribute.size)}},"./node_modules/pixi-gl-core/src/createContext.js":function(e,t){var r=function(e,t){var r=e.getContext("webgl",t)||e.getContext("experimental-webgl",t);if(!r)throw new Error("This browser does not support webGL. Try using the canvas renderer");return r};e.exports=r},"./node_modules/pixi-gl-core/src/index.js":function(e,t,r){var i={createContext:r("./node_modules/pixi-gl-core/src/createContext.js"),setVertexAttribArrays:r("./node_modules/pixi-gl-core/src/setVertexAttribArrays.js"),GLBuffer:r("./node_modules/pixi-gl-core/src/GLBuffer.js"),GLFramebuffer:r("./node_modules/pixi-gl-core/src/GLFramebuffer.js"),GLShader:r("./node_modules/pixi-gl-core/src/GLShader.js"),GLTexture:r("./node_modules/pixi-gl-core/src/GLTexture.js"),VertexArrayObject:r("./node_modules/pixi-gl-core/src/VertexArrayObject.js"),shader:r("./node_modules/pixi-gl-core/src/shader/index.js")};void 0!==e&&e.exports&&(e.exports=i),"undefined"!=typeof window&&(window.PIXI=window.PIXI||{},window.PIXI.glCore=i)},"./node_modules/pixi-gl-core/src/setVertexAttribArrays.js":function(e,t){var r=function(e,t,r){var i;if(r){var n=r.tempAttribState,o=r.attribState;for(i=0;i<n.length;i++)n[i]=!1;for(i=0;i<t.length;i++)n[t[i].attribute.location]=!0;for(i=0;i<o.length;i++)o[i]!==n[i]&&(o[i]=n[i],r.attribState[i]?e.enableVertexAttribArray(i):e.disableVertexAttribArray(i))}else for(i=0;i<t.length;i++){var s=t[i];e.enableVertexAttribArray(s.attribute.location)}};e.exports=r},"./node_modules/pixi-gl-core/src/shader/compileProgram.js":function(e,t){var r=function(e,t,r,n){var o=i(e,e.VERTEX_SHADER,t),s=i(e,e.FRAGMENT_SHADER,r),a=e.createProgram();if(e.attachShader(a,o),e.attachShader(a,s),n)for(var u in n)e.bindAttribLocation(a,n[u],u);return e.linkProgram(a),e.getProgramParameter(a,e.LINK_STATUS)||(console.error("Pixi.js Error: Could not initialize shader."),console.error("gl.VALIDATE_STATUS",e.getProgramParameter(a,e.VALIDATE_STATUS)),console.error("gl.getError()",e.getError()),""!==e.getProgramInfoLog(a)&&console.warn("Pixi.js Warning: gl.getProgramInfoLog()",e.getProgramInfoLog(a)),e.deleteProgram(a),a=null),e.deleteShader(o),e.deleteShader(s),a},i=function(e,t,r){var i=e.createShader(t);return e.shaderSource(i,r),e.compileShader(i),e.getShaderParameter(i,e.COMPILE_STATUS)?i:(console.log(e.getShaderInfoLog(i)),null)};e.exports=r},"./node_modules/pixi-gl-core/src/shader/defaultValue.js":function(e,t){var r=function(e,t){switch(e){case"float":return 0;case"vec2":return new Float32Array(2*t);case"vec3":return new Float32Array(3*t);case"vec4":return new Float32Array(4*t);case"int":case"sampler2D":return 0;case"ivec2":return new Int32Array(2*t);case"ivec3":return new Int32Array(3*t);case"ivec4":return new Int32Array(4*t);case"bool":return!1;case"bvec2":return i(2*t);case"bvec3":return i(3*t);case"bvec4":return i(4*t);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])}},i=function(e){for(var t=new Array(e),r=0;r<t.length;r++)t[r]=!1;return t};e.exports=r},"./node_modules/pixi-gl-core/src/shader/extractAttributes.js":function(e,t,r){var i=r("./node_modules/pixi-gl-core/src/shader/mapType.js"),n=r("./node_modules/pixi-gl-core/src/shader/mapSize.js"),o=function(e,t){for(var r={},o=e.getProgramParameter(t,e.ACTIVE_ATTRIBUTES),a=0;a<o;a++){var u=e.getActiveAttrib(t,a),l=i(e,u.type);r[u.name]={type:l,size:n(l),location:e.getAttribLocation(t,u.name),pointer:s}}return r},s=function(e,t,r,i){gl.vertexAttribPointer(this.location,this.size,e||gl.FLOAT,t||!1,r||0,i||0)};e.exports=o},"./node_modules/pixi-gl-core/src/shader/extractUniforms.js":function(e,t,r){var i=r("./node_modules/pixi-gl-core/src/shader/mapType.js"),n=r("./node_modules/pixi-gl-core/src/shader/defaultValue.js"),o=function(e,t){for(var r={},o=e.getProgramParameter(t,e.ACTIVE_UNIFORMS),s=0;s<o;s++){var a=e.getActiveUniform(t,s),u=a.name.replace(/\[.*?\]/,""),l=i(e,a.type);r[u]={type:l,size:a.size,location:e.getUniformLocation(t,u),value:n(l,a.size)}}return r};e.exports=o},"./node_modules/pixi-gl-core/src/shader/generateUniformAccessObject.js":function(e,t){var r=function(e,t){var r={data:{}};r.gl=e;for(var s=Object.keys(t),a=0;a<s.length;a++){var u=s[a],l=u.split("."),h=l[l.length-1],c=o(l,r),d=t[u];c.data[h]=d,c.gl=e,Object.defineProperty(c,h,{get:i(h),set:n(h,d)})}return r},i=function(e){var t=s.replace("%%",e);return new Function(t)},n=function(e,t){var r,i=a.replace(/%%/g,e);return r=1===t.size?u[t.type]:l[t.type],r&&(i+="\nthis.gl."+r+";"),new Function("value",i)},o=function(e,t){for(var r=t,i=0;i<e.length-1;i++){var n=r[e[i]]||{data:{}};r[e[i]]=n,r=n}return r},s=["return this.data.%%.value;"].join("\n"),a=["this.data.%%.value = value;","var location = this.data.%%.location;"].join("\n"),u={float:"uniform1f(location, value)",vec2:"uniform2f(location, value[0], value[1])",vec3:"uniform3f(location, value[0], value[1], value[2])",vec4:"uniform4f(location, value[0], value[1], value[2], value[3])",int:"uniform1i(location, value)",ivec2:"uniform2i(location, value[0], value[1])",ivec3:"uniform3i(location, value[0], value[1], value[2])",ivec4:"uniform4i(location, value[0], value[1], value[2], value[3])",bool:"uniform1i(location, value)",bvec2:"uniform2i(location, value[0], value[1])",bvec3:"uniform3i(location, value[0], value[1], value[2])",bvec4:"uniform4i(location, value[0], value[1], value[2], value[3])",mat2:"uniformMatrix2fv(location, false, value)",mat3:"uniformMatrix3fv(location, false, value)",mat4:"uniformMatrix4fv(location, false, value)",sampler2D:"uniform1i(location, value)"},l={float:"uniform1fv(location, value)",vec2:"uniform2fv(location, value)",vec3:"uniform3fv(location, value)",vec4:"uniform4fv(location, value)",int:"uniform1iv(location, value)",ivec2:"uniform2iv(location, value)",ivec3:"uniform3iv(location, value)",ivec4:"uniform4iv(location, value)",bool:"uniform1iv(location, value)",bvec2:"uniform2iv(location, value)",bvec3:"uniform3iv(location, value)",bvec4:"uniform4iv(location, value)",sampler2D:"uniform1iv(location, value)"};e.exports=r},"./node_modules/pixi-gl-core/src/shader/index.js":function(e,t,r){e.exports={compileProgram:r("./node_modules/pixi-gl-core/src/shader/compileProgram.js"),defaultValue:r("./node_modules/pixi-gl-core/src/shader/defaultValue.js"),extractAttributes:r("./node_modules/pixi-gl-core/src/shader/extractAttributes.js"),extractUniforms:r("./node_modules/pixi-gl-core/src/shader/extractUniforms.js"),generateUniformAccessObject:r("./node_modules/pixi-gl-core/src/shader/generateUniformAccessObject.js"),setPrecision:r("./node_modules/pixi-gl-core/src/shader/setPrecision.js"),mapSize:r("./node_modules/pixi-gl-core/src/shader/mapSize.js"),mapType:r("./node_modules/pixi-gl-core/src/shader/mapType.js")}},"./node_modules/pixi-gl-core/src/shader/mapSize.js":function(e,t){var r=function(e){return i[e]},i={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};e.exports=r},"./node_modules/pixi-gl-core/src/shader/mapType.js":function(e,t){var r=function(e,t){if(!i){var r=Object.keys(n);i={};for(var o=0;o<r.length;++o){var s=r[o];i[e[s]]=n[s]}}return i[t]},i=null,n={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"};e.exports=r},"./node_modules/pixi-gl-core/src/shader/setPrecision.js":function(e,t){var r=function(e,t){return"precision"!==e.substring(0,9)?"precision "+t+" float;\n"+e:e};e.exports=r},"./node_modules/pixi.js/lib/accessibility/AccessibilityManager.js":function(e,t,r){"use strict";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")}t.__esModule=!0;var o=r("./node_modules/pixi.js/lib/core/index.js"),s=function(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}(o),a=r("./node_modules/ismobilejs/isMobile.js"),u=i(a),l=r("./node_modules/pixi.js/lib/accessibility/accessibleTarget.js"),h=i(l);s.utils.mixins.delayMixin(s.DisplayObject.prototype,h.default);var c=100,d=0,f=0,p=2,m=function(){function e(t){n(this,e),!u.default.tablet&&!u.default.phone||navigator.isCocoonJS||this.createTouchHook();var r=document.createElement("div");r.style.width=c+"px",r.style.height=c+"px",r.style.position="absolute",r.style.top=d+"px",r.style.left=f+"px",r.style.zIndex=p,this.div=r,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="1px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.left="-1000px",t.style.zIndex=2,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,r=t.length-1;r>=0;r--)this.updateAccessibleObjects(t[r])}},e.prototype.update=function(){if(this.renderer.renderingToScreen){this.updateAccessibleObjects(this.renderer._lastObjectRendered);var e=this.renderer.view.getBoundingClientRect(),t=e.width/this.renderer.width,r=e.height/this.renderer.height,i=this.div;i.style.left=e.left+"px",i.style.top=e.top+"px",i.style.width=this.renderer.width+"px",i.style.height=this.renderer.height+"px";for(var n=0;n<this.children.length;n++){var o=this.children[n];if(o.renderId!==this.renderId)o._accessibleActive=!1,s.utils.removeItems(this.children,n,1),this.div.removeChild(o._accessibleDiv),this.pool.push(o._accessibleDiv),o._accessibleDiv=null,n--,0===this.children.length&&this.deactivate();else{i=o._accessibleDiv;var a=o.hitArea,u=o.worldTransform;o.hitArea?(i.style.left=(u.tx+a.x*u.a)*t+"px",i.style.top=(u.ty+a.y*u.d)*r+"px",i.style.width=a.width*u.a*t+"px",i.style.height=a.height*u.d*r+"px"):(a=o.getBounds(),this.capHitArea(a),i.style.left=a.x*t+"px",i.style.top=a.y*r+"px",i.style.width=a.width*t+"px",i.style.height=a.height*r+"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"),t.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=p,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){9===e.keyCode&&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}();t.default=m,s.WebGLRenderer.registerPlugin("accessibility",m),s.CanvasRenderer.registerPlugin("accessibility",m)},"./node_modules/pixi.js/lib/accessibility/accessibleTarget.js":function(e,t,r){"use strict";t.__esModule=!0,t.default={accessible:!1,accessibleTitle:null,accessibleHint:null,tabIndex:0,_accessibleActive:!1,_accessibleDiv:!1}},"./node_modules/pixi.js/lib/accessibility/index.js":function(e,t,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var n=r("./node_modules/pixi.js/lib/accessibility/accessibleTarget.js");Object.defineProperty(t,"accessibleTarget",{enumerable:!0,get:function(){return i(n).default}});var o=r("./node_modules/pixi.js/lib/accessibility/AccessibilityManager.js");Object.defineProperty(t,"AccessibilityManager",{enumerable:!0,get:function(){return i(o).default}})},"./node_modules/pixi.js/lib/core/Application.js":function(e,t,r){"use strict";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")}t.__esModule=!0;var o=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}}(),s=r("./node_modules/pixi.js/lib/core/autoDetectRenderer.js"),a=r("./node_modules/pixi.js/lib/core/display/Container.js"),u=i(a),l=r("./node_modules/pixi.js/lib/core/ticker/index.js"),h=r("./node_modules/pixi.js/lib/core/settings.js"),c=i(h),d=r("./node_modules/pixi.js/lib/core/const.js"),f=function(){function e(t,r,i,o,a){n(this,e),"number"==typeof t&&(t=Object.assign({width:t,height:r||c.default.RENDER_OPTIONS.height,forceCanvas:!!o,sharedTicker:!!a},i)),this._options=t=Object.assign({autoStart:!0,sharedTicker:!1,forceCanvas:!1,sharedLoader:!1},t),this.renderer=(0,s.autoDetectRenderer)(t),this.stage=new u.default,this._ticker=null,this.ticker=t.sharedTicker?l.shared:new l.Ticker,t.autoStart&&this.start()}return e.prototype.render=function(){this.renderer.render(this.stage)},e.prototype.stop=function(){this._ticker.stop()},e.prototype.start=function(){this._ticker.start()},e.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},o(e,[{key:"ticker",set:function(e){this._ticker&&this._ticker.remove(this.render,this),this._ticker=e,e&&e.add(this.render,this,d.UPDATE_PRIORITY.LOW)},get:function(){return this._ticker}},{key:"view",get:function(){return this.renderer.view}},{key:"screen",get:function(){return this.renderer.screen}}]),e}();t.default=f},"./node_modules/pixi.js/lib/core/Shader.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(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)}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}t.__esModule=!0;var a=r("./node_modules/pixi-gl-core/src/index.js"),u=r("./node_modules/pixi.js/lib/core/settings.js"),l=function(e){return e&&e.__esModule?e:{default:e}}(u),h=function(e){function t(r,o,a){return i(this,t),n(this,e.call(this,r,s(o,l.default.PRECISION_VERTEX),s(a,l.default.PRECISION_FRAGMENT)))}return o(t,e),t}(a.GLShader);t.default=h},"./node_modules/pixi.js/lib/core/autoDetectRenderer.js":function(e,t,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function n(e,t,r,i){var n=e&&e.forceCanvas;return void 0!==i&&(n=i),!n&&s.isWebGLSupported()?new h.default(e,t,r):new u.default(e,t,r)}t.__esModule=!0,t.autoDetectRenderer=n;var o=r("./node_modules/pixi.js/lib/core/utils/index.js"),s=function(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}(o),a=r("./node_modules/pixi.js/lib/core/renderers/canvas/CanvasRenderer.js"),u=i(a),l=r("./node_modules/pixi.js/lib/core/renderers/webgl/WebGLRenderer.js"),h=i(l)},"./node_modules/pixi.js/lib/core/const.js":function(e,t,r){"use strict";t.__esModule=!0;t.VERSION="4.5.6",t.PI_2=2*Math.PI,t.RAD_TO_DEG=180/Math.PI,t.DEG_TO_RAD=Math.PI/180,t.RENDERER_TYPE={UNKNOWN:0,WEBGL:1,CANVAS:2},t.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},t.DRAW_MODES={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},t.SCALE_MODES={LINEAR:0,NEAREST:1},t.WRAP_MODES={CLAMP:0,REPEAT:1,MIRRORED_REPEAT:2},t.GC_MODES={AUTO:0,MANUAL:1},t.URL_FILE_EXTENSION=/\.(\w{3,4})(?:$|\?|#)/i,t.DATA_URI=/^\s*data:(?:([\w-]+)\/([\w+.-]+))?(?:;(charset=[\w-]+|base64))?,(.*)/i,t.SVG_SIZE=/<svg[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i,t.SHAPES={POLY:0,RECT:1,CIRC:2,ELIP:3,RREC:4},t.PRECISION={LOW:"lowp",MEDIUM:"mediump",HIGH:"highp"},t.TRANSFORM_MODE={STATIC:0,DYNAMIC:1},t.TEXT_GRADIENT={LINEAR_VERTICAL:0,LINEAR_HORIZONTAL:1},t.UPDATE_PRIORITY={INTERACTION:50,HIGH:25,NORMAL:0,LOW:-25,UTILITY:-50}},"./node_modules/pixi.js/lib/core/display/Bounds.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var n=r("./node_modules/pixi.js/lib/core/math/index.js"),o=function(){function e(){i(this,e),this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null}return e.prototype.isEmpty=function(){return this.minX>this.maxX||this.minY>this.maxY},e.prototype.clear=function(){this.updateID++,this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0},e.prototype.getRectangle=function(e){return this.minX>this.maxX||this.minY>this.maxY?n.Rectangle.EMPTY:(e=e||new n.Rectangle(0,0,1,1),e.x=this.minX,e.y=this.minY,e.width=this.maxX-this.minX,e.height=this.maxY-this.minY,e)},e.prototype.addPoint=function(e){this.minX=Math.min(this.minX,e.x),this.maxX=Math.max(this.maxX,e.x),this.minY=Math.min(this.minY,e.y),this.maxY=Math.max(this.maxY,e.y)},e.prototype.addQuad=function(e){var t=this.minX,r=this.minY,i=this.maxX,n=this.maxY,o=e[0],s=e[1];t=o<t?o:t,r=s<r?s:r,i=o>i?o:i,n=s>n?s:n,o=e[2],s=e[3],t=o<t?o:t,r=s<r?s:r,i=o>i?o:i,n=s>n?s:n,o=e[4],s=e[5],t=o<t?o:t,r=s<r?s:r,i=o>i?o:i,n=s>n?s:n,o=e[6],s=e[7],t=o<t?o:t,r=s<r?s:r,i=o>i?o:i,n=s>n?s:n,this.minX=t,this.minY=r,this.maxX=i,this.maxY=n},e.prototype.addFrame=function(e,t,r,i,n){var o=e.worldTransform,s=o.a,a=o.b,u=o.c,l=o.d,h=o.tx,c=o.ty,d=this.minX,f=this.minY,p=this.maxX,m=this.maxY,_=s*t+u*r+h,v=a*t+l*r+c;d=_<d?_:d,f=v<f?v:f,p=_>p?_:p,m=v>m?v:m,_=s*i+u*r+h,v=a*i+l*r+c,d=_<d?_:d,f=v<f?v:f,p=_>p?_:p,m=v>m?v:m,_=s*t+u*n+h,v=a*t+l*n+c,d=_<d?_:d,f=v<f?v:f,p=_>p?_:p,m=v>m?v:m,_=s*i+u*n+h,v=a*i+l*n+c,d=_<d?_:d,f=v<f?v:f,p=_>p?_:p,m=v>m?v:m,this.minX=d,this.minY=f,this.maxX=p,this.maxY=m},e.prototype.addVertices=function(e,t,r,i){for(var n=e.worldTransform,o=n.a,s=n.b,a=n.c,u=n.d,l=n.tx,h=n.ty,c=this.minX,d=this.minY,f=this.maxX,p=this.maxY,m=r;m<i;m+=2){var _=t[m],v=t[m+1],g=o*_+a*v+l,y=u*v+s*_+h;c=g<c?g:c,d=y<d?y:d,f=g>f?g:f,p=y>p?y:p}this.minX=c,this.minY=d,this.maxX=f,this.maxY=p},e.prototype.addBounds=function(e){var t=this.minX,r=this.minY,i=this.maxX,n=this.maxY;this.minX=e.minX<t?e.minX:t,this.minY=e.minY<r?e.minY:r,this.maxX=e.maxX>i?e.maxX:i,this.maxY=e.maxY>n?e.maxY:n},e.prototype.addBoundsMask=function(e,t){var r=e.minX>t.minX?e.minX:t.minX,i=e.minY>t.minY?e.minY:t.minY,n=e.maxX<t.maxX?e.maxX:t.maxX,o=e.maxY<t.maxY?e.maxY:t.maxY;if(r<=n&&i<=o){var s=this.minX,a=this.minY,u=this.maxX,l=this.maxY;this.minX=r<s?r:s,this.minY=i<a?i:a,this.maxX=n>u?n:u,this.maxY=o>l?o:l}},e.prototype.addBoundsArea=function(e,t){var r=e.minX>t.x?e.minX:t.x,i=e.minY>t.y?e.minY:t.y,n=e.maxX<t.x+t.width?e.maxX:t.x+t.width,o=e.maxY<t.y+t.height?e.maxY:t.y+t.height;if(r<=n&&i<=o){var s=this.minX,a=this.minY,u=this.maxX,l=this.maxY;this.minX=r<s?r:s,this.minY=i<a?i:a,this.maxX=n>u?n:u,this.maxY=o>l?o:l}},e}();t.default=o},"./node_modules/pixi.js/lib/core/display/Container.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(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)}t.__esModule=!0;var s=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}}(),a=r("./node_modules/pixi.js/lib/core/utils/index.js"),u=r("./node_modules/pixi.js/lib/core/display/DisplayObject.js"),l=function(e){return e&&e.__esModule?e:{default:e}}(u),h=function(e){function t(){i(this,t);var r=n(this,e.call(this));return r.children=[],r}return o(t,e),t.prototype.onChildrenChange=function(){},t.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},t.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},t.prototype.swapChildren=function(e,t){if(e!==t){var r=this.getChildIndex(e),i=this.getChildIndex(t);this.children[r]=t,this.children[i]=e,this.onChildrenChange(r<i?r:i)}},t.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},t.prototype.setChildIndex=function(e,t){if(t<0||t>=this.children.length)throw new Error("The supplied index is out of bounds");var r=this.getChildIndex(e);(0,a.removeItems)(this.children,r,1),this.children.splice(t,0,e),this.onChildrenChange(t)},t.prototype.getChildAt=function(e){if(e<0||e>=this.children.length)throw new Error("getChildAt: Index ("+e+") does not exist.");return this.children[e]},t.prototype.removeChild=function(e){var t=arguments.length;if(t>1)for(var r=0;r<t;r++)this.removeChild(arguments[r]);else{var i=this.children.indexOf(e);if(-1===i)return null;e.parent=null,e.transform._parentID=-1,(0,a.removeItems)(this.children,i,1),this._boundsID++,this.onChildrenChange(i),e.emit("removed",this)}return e},t.prototype.removeChildAt=function(e){var t=this.getChildAt(e);return t.parent=null,t.transform._parentID=-1,(0,a.removeItems)(this.children,e,1),this._boundsID++,this.onChildrenChange(e),t.emit("removed",this),t},t.prototype.removeChildren=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments[1],r=e,i="number"==typeof t?t:this.children.length,n=i-r,o=void 0;if(n>0&&n<=i){o=this.children.splice(r,n);for(var s=0;s<o.length;++s)o[s].parent=null,o[s].transform&&(o[s].transform._parentID=-1);this._boundsID++,this.onChildrenChange(e);for(var a=0;a<o.length;++a)o[a].emit("removed",this);return o}if(0===n&&0===this.children.length)return[];throw new RangeError("removeChildren: numeric values are outside the acceptable range.")},t.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()}},t.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},t.prototype._calculateBounds=function(){},t.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)}},t.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 i=0;i<t.length;i++)t[i].enabled&&this._enabledFilters.push(t[i]);this._enabledFilters.length&&e.filterManager.pushFilter(this,this._enabledFilters)}r&&e.maskManager.pushMask(this,this._mask),this._renderWebGL(e);for(var n=0,o=this.children.length;n<o;n++)this.children[n].renderWebGL(e);e.flush(),r&&e.maskManager.popMask(this,this._mask),t&&this._enabledFilters&&this._enabledFilters.length&&e.filterManager.popFilter()},t.prototype._renderWebGL=function(e){},t.prototype._renderCanvas=function(e){},t.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)}},t.prototype.destroy=function(t){e.prototype.destroy.call(this);var r="boolean"==typeof t?t:t&&t.children,i=this.removeChildren(0,this.children.length);if(r)for(var n=0;n<i.length;++n)i[n].destroy(t)},s(t,[{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}}]),t}(l.default);t.default=h,h.prototype.containerUpdateTransform=h.prototype.updateTransform},"./node_modules/pixi.js/lib/core/display/DisplayObject.js":function(e,t,r){"use strict";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 o(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)}t.__esModule=!0;var a=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}}(),u=r("./node_modules/pixi.js/node_modules/eventemitter3/index.js"),l=i(u),h=r("./node_modules/pixi.js/lib/core/const.js"),c=r("./node_modules/pixi.js/lib/core/settings.js"),d=i(c),f=r("./node_modules/pixi.js/lib/core/display/TransformStatic.js"),p=i(f),m=r("./node_modules/pixi.js/lib/core/display/Transform.js"),_=i(m),v=r("./node_modules/pixi.js/lib/core/display/Bounds.js"),g=i(v),y=r("./node_modules/pixi.js/lib/core/math/index.js"),x=function(e){function t(){n(this,t);var r=o(this,e.call(this)),i=d.default.TRANSFORM_MODE===h.TRANSFORM_MODE.STATIC?p.default:_.default;return r.tempDisplayObjectParent=null,r.transform=new i,r.alpha=1,r.visible=!0,r.renderable=!0,r.parent=null,r.worldAlpha=1,r.filterArea=null,r._filters=null,r._enabledFilters=null,r._bounds=new g.default,r._boundsID=0,r._lastBoundsID=-1,r._boundsRect=null,r._localBoundsRect=null,r._mask=null,r._destroyed=!1,r}return s(t,e),t.prototype.updateTransform=function(){this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha,this._bounds.updateID++},t.prototype._recursivePostUpdateTransform=function(){this.parent?(this.parent._recursivePostUpdateTransform(),this.transform.updateTransform(this.parent.transform)):this.transform.updateTransform(this._tempDisplayObjectParent.transform)},t.prototype.getBounds=function(e,t){return e||(this.parent?(this._recursivePostUpdateTransform(),this.updateTransform()):(this.parent=this._tempDisplayObjectParent,this.updateTransform(),this.parent=null)),this._boundsID!==this._lastBoundsID&&this.calculateBounds(),t||(this._boundsRect||(this._boundsRect=new y.Rectangle),t=this._boundsRect),this._bounds.getRectangle(t)},t.prototype.getLocalBounds=function(e){var t=this.transform,r=this.parent;this.parent=null,this.transform=this._tempDisplayObjectParent.transform,e||(this._localBoundsRect||(this._localBoundsRect=new y.Rectangle),e=this._localBoundsRect);var i=this.getBounds(!1,e);return this.parent=r,this.transform=t,i},t.prototype.toGlobal=function(e,t){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(e,t)},t.prototype.toLocal=function(e,t,r,i){return t&&(e=t.toGlobal(e,r,i)),i||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.applyInverse(e,r)},t.prototype.renderWebGL=function(e){},t.prototype.renderCanvas=function(e){},t.prototype.setParent=function(e){if(!e||!e.addChild)throw new Error("setParent: Argument must be a Container");return e.addChild(this),e},t.prototype.setTransform=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:0,a=arguments.length>7&&void 0!==arguments[7]?arguments[7]:0,u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:0;return this.position.x=e,this.position.y=t,this.scale.x=r||1,this.scale.y=i||1,this.rotation=n,this.skew.x=o,this.skew.y=s,this.pivot.x=a,this.pivot.y=u,this},t.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},a(t,[{key:"_tempDisplayObjectParent",get:function(){return null===this.tempDisplayObjectParent&&(this.tempDisplayObjectParent=new t),this.tempDisplayObjectParent}},{key:"x",get:function(){return this.position.x},set:function(e){this.transform.position.x=e}},{key:"y",get:function(){return this.position.y},set:function(e){this.transform.position.y=e}},{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(e){this.transform.position.copy(e)}},{key:"scale",get:function(){return this.transform.scale},set:function(e){this.transform.scale.copy(e)}},{key:"pivot",get:function(){return this.transform.pivot},set:function(e){this.transform.pivot.copy(e)}},{key:"skew",get:function(){return this.transform.skew},set:function(e){this.transform.skew.copy(e)}},{key:"rotation",get:function(){return this.transform.rotation},set:function(e){this.transform.rotation=e}},{key:"worldVisible",get:function(){var e=this;do{if(!e.visible)return!1;e=e.parent}while(e);return!0}},{key:"mask",get:function(){return this._mask},set:function(e){this._mask&&(this._mask.renderable=!0),this._mask=e,this._mask&&(this._mask.renderable=!1)}},{key:"filters",get:function(){return this._filters&&this._filters.slice()},set:function(e){this._filters=e&&e.slice()}}]),t}(l.default);t.default=x,x.prototype.displayObjectUpdateTransform=x.prototype.updateTransform},"./node_modules/pixi.js/lib/core/display/Transform.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(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)}t.__esModule=!0;var s=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}}(),a=r("./node_modules/pixi.js/lib/core/math/index.js"),u=r("./node_modules/pixi.js/lib/core/display/TransformBase.js"),l=function(e){return e&&e.__esModule?e:{default:e}}(u),h=function(e){function t(){i(this,t);var r=n(this,e.call(this));return r.position=new a.Point(0,0),r.scale=new a.Point(1,1),r.skew=new a.ObservablePoint(r.updateSkew,r,0,0),r.pivot=new a.Point(0,0),r._rotation=0,r._cx=1,r._sx=0,r._cy=0,r._sy=1,r}return o(t,e),t.prototype.updateSkew=function(){this._cx=Math.cos(this._rotation+this.skew._y),this._sx=Math.sin(this._rotation+this.skew._y),this._cy=-Math.sin(this._rotation-this.skew._x),this._sy=Math.cos(this._rotation-this.skew._x)},t.prototype.updateLocalTransform=function(){var e=this.localTransform;e.a=this._cx*this.scale.x,e.b=this._sx*this.scale.x,e.c=this._cy*this.scale.y,e.d=this._sy*this.scale.y,e.tx=this.position.x-(this.pivot.x*e.a+this.pivot.y*e.c),e.ty=this.position.y-(this.pivot.x*e.b+this.pivot.y*e.d)},t.prototype.updateTransform=function(e){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);var r=e.worldTransform,i=this.worldTransform;i.a=t.a*r.a+t.b*r.c,i.b=t.a*r.b+t.b*r.d,i.c=t.c*r.a+t.d*r.c,i.d=t.c*r.b+t.d*r.d,i.tx=t.tx*r.a+t.ty*r.c+r.tx,i.ty=t.tx*r.b+t.ty*r.d+r.ty,this._worldID++},t.prototype.setFromMatrix=function(e){e.decompose(this)},s(t,[{key:"rotation",get:function(){return this._rotation},set:function(e){this._rotation=e,this.updateSkew()}}]),t}(l.default);t.default=h},"./node_modules/pixi.js/lib/core/display/TransformBase.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var n=r("./node_modules/pixi.js/lib/core/math/index.js"),o=function(){function e(){i(this,e),this.worldTransform=new n.Matrix,this.localTransform=new n.Matrix,this._worldID=0,this._parentID=0}return e.prototype.updateLocalTransform=function(){},e.prototype.updateTransform=function(e){var t=e.worldTransform,r=this.worldTransform,i=this.localTransform;r.a=i.a*t.a+i.b*t.c,r.b=i.a*t.b+i.b*t.d,r.c=i.c*t.a+i.d*t.c,r.d=i.c*t.b+i.d*t.d,r.tx=i.tx*t.a+i.ty*t.c+t.tx,r.ty=i.tx*t.b+i.ty*t.d+t.ty,this._worldID++},e}();t.default=o,o.prototype.updateWorldTransform=o.prototype.updateTransform,o.IDENTITY=new o},"./node_modules/pixi.js/lib/core/display/TransformStatic.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(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)}t.__esModule=!0;var s=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}}(),a=r("./node_modules/pixi.js/lib/core/math/index.js"),u=r("./node_modules/pixi.js/lib/core/display/TransformBase.js"),l=function(e){return e&&e.__esModule?e:{default:e}}(u),h=function(e){function t(){i(this,t);var r=n(this,e.call(this));return r.position=new a.ObservablePoint(r.onChange,r,0,0),r.scale=new a.ObservablePoint(r.onChange,r,1,1),r.pivot=new a.ObservablePoint(r.onChange,r,0,0),r.skew=new a.ObservablePoint(r.updateSkew,r,0,0),r._rotation=0,r._cx=1,r._sx=0,r._cy=0,r._sy=1,r._localID=0,r._currentLocalID=0,r}return o(t,e),t.prototype.onChange=function(){this._localID++},t.prototype.updateSkew=function(){this._cx=Math.cos(this._rotation+this.skew._y),this._sx=Math.sin(this._rotation+this.skew._y),this._cy=-Math.sin(this._rotation-this.skew._x),this._sy=Math.cos(this._rotation-this.skew._x),this._localID++},t.prototype.updateLocalTransform=function(){var e=this.localTransform;this._localID!==this._currentLocalID&&(e.a=this._cx*this.scale._x,e.b=this._sx*this.scale._x,e.c=this._cy*this.scale._y,e.d=this._sy*this.scale._y,e.tx=this.position._x-(this.pivot._x*e.a+this.pivot._y*e.c),e.ty=this.position._y-(this.pivot._x*e.b+this.pivot._y*e.d),this._currentLocalID=this._localID,this._parentID=-1)},t.prototype.updateTransform=function(e){var t=this.localTransform;if(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),this._parentID!==e._worldID){var r=e.worldTransform,i=this.worldTransform;i.a=t.a*r.a+t.b*r.c,i.b=t.a*r.b+t.b*r.d,i.c=t.c*r.a+t.d*r.c,i.d=t.c*r.b+t.d*r.d,i.tx=t.tx*r.a+t.ty*r.c+r.tx,i.ty=t.tx*r.b+t.ty*r.d+r.ty,this._parentID=e._worldID,this._worldID++}},t.prototype.setFromMatrix=function(e){e.decompose(this),this._localID++},s(t,[{key:"rotation",get:function(){return this._rotation},set:function(e){this._rotation=e,this.updateSkew()}}]),t}(l.default);t.default=h},"./node_modules/pixi.js/lib/core/graphics/Graphics.js":function(e,t,r){"use strict";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 o(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)}t.__esModule=!0;var a=r("./node_modules/pixi.js/lib/core/display/Container.js"),u=i(a),l=r("./node_modules/pixi.js/lib/core/textures/RenderTexture.js"),h=i(l),c=r("./node_modules/pixi.js/lib/core/textures/Texture.js"),d=i(c),f=r("./node_modules/pixi.js/lib/core/graphics/GraphicsData.js"),p=i(f),m=r("./node_modules/pixi.js/lib/core/sprites/Sprite.js"),_=i(m),v=r("./node_modules/pixi.js/lib/core/math/index.js"),g=r("./node_modules/pixi.js/lib/core/utils/index.js"),y=r("./node_modules/pixi.js/lib/core/const.js"),x=r("./node_modules/pixi.js/lib/core/display/Bounds.js"),b=i(x),T=r("./node_modules/pixi.js/lib/core/graphics/utils/bezierCurveTo.js"),w=i(T),E=r("./node_modules/pixi.js/lib/core/renderers/canvas/CanvasRenderer.js"),j=i(E),S=void 0,O=new v.Matrix,M=new v.Point,P=new Float32Array(4),C=new Float32Array(4),R=function(e){function t(){var r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];n(this,t);var i=o(this,e.call(this));return i.fillAlpha=1,i.lineWidth=0,i.nativeLines=r,i.lineColor=0,i.graphicsData=[],i.tint=16777215,i._prevTint=16777215,i.blendMode=y.BLEND_MODES.NORMAL,i.currentPath=null,i._webGL={},i.isMask=!1,i.boundsPadding=0,i._localBounds=new b.default,i.dirty=0,i.fastRectDirty=-1,i.clearDirty=0,i.boundsDirty=-1,i.cachedSpriteDirty=!1,i._spriteRect=null,i._fastRect=!1,i}return s(t,e),t.prototype.clone=function(){var e=new t;e.renderable=this.renderable,e.fillAlpha=this.fillAlpha,e.lineWidth=this.lineWidth,e.lineColor=this.lineColor,e.tint=this.tint,e.blendMode=this.blendMode,e.isMask=this.isMask,e.boundsPadding=this.boundsPadding,e.dirty=0,e.cachedSpriteDirty=this.cachedSpriteDirty;for(var r=0;r<this.graphicsData.length;++r)e.graphicsData.push(this.graphicsData[r].clone());return e.currentPath=e.graphicsData[e.graphicsData.length-1],e.updateLocalBounds(),e},t.prototype.lineStyle=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if(this.lineWidth=e,this.lineColor=t,this.lineAlpha=r,this.currentPath)if(this.currentPath.shape.points.length){var i=new v.Polygon(this.currentPath.shape.points.slice(-2));i.closed=!1,this.drawShape(i)}else this.currentPath.lineWidth=this.lineWidth,this.currentPath.lineColor=this.lineColor,this.currentPath.lineAlpha=this.lineAlpha;return this},t.prototype.moveTo=function(e,t){var r=new v.Polygon([e,t]);return r.closed=!1,this.drawShape(r),this},t.prototype.lineTo=function(e,t){return this.currentPath.shape.points.push(e,t),this.dirty++,this},t.prototype.quadraticCurveTo=function(e,t,r,i){this.currentPath?0===this.currentPath.shape.points.length&&(this.currentPath.shape.points=[0,0]):this.moveTo(0,0);var n=this.currentPath.shape.points,o=0,s=0;0===n.length&&this.moveTo(0,0);for(var a=n[n.length-2],u=n[n.length-1],l=1;l<=20;++l){var h=l/20;o=a+(e-a)*h,s=u+(t-u)*h,n.push(o+(e+(r-e)*h-o)*h,s+(t+(i-t)*h-s)*h)}return this.dirty++,this},t.prototype.bezierCurveTo=function(e,t,r,i,n,o){this.currentPath?0===this.currentPath.shape.points.length&&(this.currentPath.shape.points=[0,0]):this.moveTo(0,0);var s=this.currentPath.shape.points,a=s[s.length-2],u=s[s.length-1];return s.length-=2,(0,w.default)(a,u,e,t,r,i,n,o,s),this.dirty++,this},t.prototype.arcTo=function(e,t,r,i,n){this.currentPath?0===this.currentPath.shape.points.length&&this.currentPath.shape.points.push(e,t):this.moveTo(e,t);var o=this.currentPath.shape.points,s=o[o.length-2],a=o[o.length-1],u=a-t,l=s-e,h=i-t,c=r-e,d=Math.abs(u*c-l*h);if(d<1e-8||0===n)o[o.length-2]===e&&o[o.length-1]===t||o.push(e,t);else{var f=u*u+l*l,p=h*h+c*c,m=u*h+l*c,_=n*Math.sqrt(f)/d,v=n*Math.sqrt(p)/d,g=_*m/f,y=v*m/p,x=_*c+v*l,b=_*h+v*u,T=l*(v+g),w=u*(v+g),E=c*(_+y),j=h*(_+y),S=Math.atan2(w-b,T-x),O=Math.atan2(j-b,E-x);this.arc(x+e,b+t,n,S,O,l*h>c*u)}return this.dirty++,this},t.prototype.arc=function(e,t,r,i,n){var o=arguments.length>5&&void 0!==arguments[5]&&arguments[5];if(i===n)return this;!o&&n<=i?n+=2*Math.PI:o&&i<=n&&(i+=2*Math.PI);var s=n-i,a=40*Math.ceil(Math.abs(s)/(2*Math.PI));if(0===s)return this;var u=e+Math.cos(i)*r,l=t+Math.sin(i)*r,h=this.currentPath?this.currentPath.shape.points:null;h?h[h.length-2]===u&&h[h.length-1]===l||h.push(u,l):(this.moveTo(u,l),h=this.currentPath.shape.points);for(var c=s/(2*a),d=2*c,f=Math.cos(c),p=Math.sin(c),m=a-1,_=m%1/m,v=0;v<=m;++v){var g=v+_*v,y=c+i+d*g,x=Math.cos(y),b=-Math.sin(y);h.push((f*x+p*b)*r+e,(f*-b+p*x)*r+t)}return this.dirty++,this},t.prototype.beginFill=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.filling=!0,this.fillColor=e,this.fillAlpha=t,this.currentPath&&this.currentPath.shape.points.length<=2&&(this.currentPath.fill=this.filling,this.currentPath.fillColor=this.fillColor,this.currentPath.fillAlpha=this.fillAlpha),this},t.prototype.endFill=function(){return this.filling=!1,this.fillColor=null,this.fillAlpha=1,this},t.prototype.drawRect=function(e,t,r,i){return this.drawShape(new v.Rectangle(e,t,r,i)),this},t.prototype.drawRoundedRect=function(e,t,r,i,n){return this.drawShape(new v.RoundedRectangle(e,t,r,i,n)),this},t.prototype.drawCircle=function(e,t,r){return this.drawShape(new v.Circle(e,t,r)),this},t.prototype.drawEllipse=function(e,t,r,i){return this.drawShape(new v.Ellipse(e,t,r,i)),this},t.prototype.drawPolygon=function(e){var t=e,r=!0;if(t instanceof v.Polygon&&(r=t.closed,t=t.points),!Array.isArray(t)){t=new Array(arguments.length);for(var i=0;i<t.length;++i)t[i]=arguments[i]}var n=new v.Polygon(t);return n.closed=r,this.drawShape(n),this},t.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},t.prototype.isFastRect=function(){return 1===this.graphicsData.length&&this.graphicsData[0].shape.type===y.SHAPES.RECT&&!this.graphicsData[0].lineWidth},t.prototype._renderWebGL=function(e){this.dirty!==this.fastRectDirty&&(this.fastRectDirty=this.dirty,this._fastRect=this.isFastRect()),this._fastRect?this._renderSpriteRect(e):(e.setObjectRenderer(e.plugins.graphics),e.plugins.graphics.render(this))},t.prototype._renderSpriteRect=function(e){var t=this.graphicsData[0].shape;this._spriteRect||(this._spriteRect=new _.default(new d.default(d.default.WHITE)));var r=this._spriteRect;if(16777215===this.tint)r.tint=this.graphicsData[0].fillColor;else{var i=P,n=C;(0,g.hex2rgb)(this.graphicsData[0].fillColor,i),(0,g.hex2rgb)(this.tint,n),i[0]*=n[0],i[1]*=n[1],i[2]*=n[2],r.tint=(0,g.rgb2hex)(i)}r.alpha=this.graphicsData[0].fillAlpha,r.worldAlpha=this.worldAlpha*r.alpha,r.blendMode=this.blendMode,r._texture._frame.width=t.width,r._texture._frame.height=t.height,r.transform.worldTransform=this.transform.worldTransform,r.anchor.set(-t.x/t.width,-t.y/t.height),r._onAnchorUpdate(),r._renderWebGL(e)},t.prototype._renderCanvas=function(e){!0!==this.isMask&&e.plugins.graphics.render(this)},t.prototype._calculateBounds=function(){this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.updateLocalBounds(),this.cachedSpriteDirty=!0);var e=this._localBounds;this._bounds.addFrame(this.transform,e.minX,e.minY,e.maxX,e.maxY)},t.prototype.containsPoint=function(e){this.worldTransform.applyInverse(e,M);for(var t=this.graphicsData,r=0;r<t.length;++r){var i=t[r];if(i.fill&&(i.shape&&i.shape.contains(M.x,M.y))){if(i.holes)for(var n=0;n<i.holes.length;n++){var o=i.holes[n];if(o.contains(M.x,M.y))return!1}return!0}}return!1},t.prototype.updateLocalBounds=function(){var e=1/0,t=-1/0,r=1/0,i=-1/0;if(this.graphicsData.length)for(var n=0,o=0,s=0,a=0,u=0,l=0;l<this.graphicsData.length;l++){var h=this.graphicsData[l],c=h.type,d=h.lineWidth;if(n=h.shape,c===y.SHAPES.RECT||c===y.SHAPES.RREC)o=n.x-d/2,s=n.y-d/2,a=n.width+d,u=n.height+d,e=o<e?o:e,t=o+a>t?o+a:t,r=s<r?s:r,i=s+u>i?s+u:i;else if(c===y.SHAPES.CIRC)o=n.x,s=n.y,a=n.radius+d/2,u=n.radius+d/2,e=o-a<e?o-a:e,t=o+a>t?o+a:t,r=s-u<r?s-u:r,i=s+u>i?s+u:i;else if(c===y.SHAPES.ELIP)o=n.x,s=n.y,a=n.width+d/2,u=n.height+d/2,e=o-a<e?o-a:e,t=o+a>t?o+a:t,r=s-u<r?s-u:r,i=s+u>i?s+u:i;else for(var f=n.points,p=0,m=0,_=0,v=0,g=0,x=0,b=0,T=0,w=0;w+2<f.length;w+=2)o=f[w],s=f[w+1],p=f[w+2],m=f[w+3],_=Math.abs(p-o),v=Math.abs(m-s),u=d,(a=Math.sqrt(_*_+v*v))<1e-9||(g=(u/a*v+_)/2,x=(u/a*_+v)/2,b=(p+o)/2,T=(m+s)/2,e=b-g<e?b-g:e,t=b+g>t?b+g:t,r=T-x<r?T-x:r,i=T+x>i?T+x:i)}else e=0,t=0,r=0,i=0;var E=this.boundsPadding;this._localBounds.minX=e-E,this._localBounds.maxX=t+E,this._localBounds.minY=r-E,this._localBounds.maxY=i+E},t.prototype.drawShape=function(e){this.currentPath&&this.currentPath.shape.points.length<=2&&this.graphicsData.pop(),this.currentPath=null;var t=new p.default(this.lineWidth,this.lineColor,this.lineAlpha,this.fillColor,this.fillAlpha,this.filling,this.nativeLines,e);return this.graphicsData.push(t),t.type===y.SHAPES.POLY&&(t.shape.closed=t.shape.closed||this.filling,this.currentPath=t),this.dirty++,t},t.prototype.generateCanvasTexture=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=this.getLocalBounds(),i=h.default.create(r.width,r.height,e,t);S||(S=new j.default),this.transform.updateLocalTransform(),this.transform.localTransform.copy(O),O.invert(),O.tx-=r.x,O.ty-=r.y,S.render(this,i,!0,O);var n=d.default.fromCanvas(i.baseTexture._canvasRenderTarget.canvas,e,"graphics");return n.baseTexture.resolution=t,n.baseTexture.update(),n},t.prototype.closePath=function(){var e=this.currentPath;return e&&e.shape&&e.shape.close(),this},t.prototype.addHole=function(){var e=this.graphicsData.pop();return this.currentPath=this.graphicsData[this.graphicsData.length-1],this.currentPath.addHole(e.shape),this.currentPath=null,this},t.prototype.destroy=function(t){e.prototype.destroy.call(this,t);for(var r=0;r<this.graphicsData.length;++r)this.graphicsData[r].destroy();for(var i in this._webgl)for(var n=0;n<this._webgl[i].data.length;++n)this._webgl[i].data[n].destroy();this._spriteRect&&this._spriteRect.destroy(),this.graphicsData=null,this.currentPath=null,this._webgl=null,this._localBounds=null},t}(u.default);t.default=R,R._SPRITE_TEXTURE=null},"./node_modules/pixi.js/lib/core/graphics/GraphicsData.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var n=function(){function e(t,r,n,o,s,a,u,l){i(this,e),this.lineWidth=t,this.nativeLines=u,this.lineColor=r,this.lineAlpha=n,this._lineTint=r,this.fillColor=o,this.fillAlpha=s,this._fillTint=o,this.fill=a,this.holes=[],this.shape=l,this.type=l.type}return e.prototype.clone=function(){return new e(this.lineWidth,this.lineColor,this.lineAlpha,this.fillColor,this.fillAlpha,this.fill,this.nativeLines,this.shape)},e.prototype.addHole=function(e){this.holes.push(e)},e.prototype.destroy=function(){this.shape=null,this.holes=null},e}();t.default=n},"./node_modules/pixi.js/lib/core/graphics/canvas/CanvasGraphicsRenderer.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var n=r("./node_modules/pixi.js/lib/core/renderers/canvas/CanvasRenderer.js"),o=function(e){return e&&e.__esModule?e:{default:e}}(n),s=r("./node_modules/pixi.js/lib/core/const.js"),a=function(){function e(t){i(this,e),this.renderer=t}return e.prototype.render=function(e){var t=this.renderer,r=t.context,i=e.worldAlpha,n=e.transform.worldTransform,o=t.resolution;this._prevTint!==this.tint&&(this.dirty=!0),r.setTransform(n.a*o,n.b*o,n.c*o,n.d*o,n.tx*o,n.ty*o),e.dirty&&(this.updateGraphicsTint(e),e.dirty=!1),t.setBlendMode(e.blendMode);for(var a=0;a<e.graphicsData.length;a++){var u=e.graphicsData[a],l=u.shape,h=u._fillTint,c=u._lineTint;if(r.lineWidth=u.lineWidth,u.type===s.SHAPES.POLY){r.beginPath(),this.renderPolygon(l.points,l.closed,r);for(var d=0;d<u.holes.length;d++)this.renderPolygon(u.holes[d].points,!0,r);u.fill&&(r.globalAlpha=u.fillAlpha*i,r.fillStyle="#"+("00000"+(0|h).toString(16)).substr(-6),r.fill()),u.lineWidth&&(r.globalAlpha=u.lineAlpha*i,r.strokeStyle="#"+("00000"+(0|c).toString(16)).substr(-6),r.stroke())}else if(u.type===s.SHAPES.RECT)(u.fillColor||0===u.fillColor)&&(r.globalAlpha=u.fillAlpha*i,r.fillStyle="#"+("00000"+(0|h).toString(16)).substr(-6),r.fillRect(l.x,l.y,l.width,l.height)),u.lineWidth&&(r.globalAlpha=u.lineAlpha*i,r.strokeStyle="#"+("00000"+(0|c).toString(16)).substr(-6),r.strokeRect(l.x,l.y,l.width,l.height));else if(u.type===s.SHAPES.CIRC)r.beginPath(),r.arc(l.x,l.y,l.radius,0,2*Math.PI),r.closePath(),u.fill&&(r.globalAlpha=u.fillAlpha*i,r.fillStyle="#"+("00000"+(0|h).toString(16)).substr(-6),r.fill()),u.lineWidth&&(r.globalAlpha=u.lineAlpha*i,r.strokeStyle="#"+("00000"+(0|c).toString(16)).substr(-6),r.stroke());else if(u.type===s.SHAPES.ELIP){var f=2*l.width,p=2*l.height,m=l.x-f/2,_=l.y-p/2;r.beginPath();var v=f/2*.5522848,g=p/2*.5522848,y=m+f,x=_+p,b=m+f/2,T=_+p/2;r.moveTo(m,T),r.bezierCurveTo(m,T-g,b-v,_,b,_),r.bezierCurveTo(b+v,_,y,T-g,y,T),r.bezierCurveTo(y,T+g,b+v,x,b,x),r.bezierCurveTo(b-v,x,m,T+g,m,T),r.closePath(),u.fill&&(r.globalAlpha=u.fillAlpha*i,r.fillStyle="#"+("00000"+(0|h).toString(16)).substr(-6),r.fill()),u.lineWidth&&(r.globalAlpha=u.lineAlpha*i,r.strokeStyle="#"+("00000"+(0|c).toString(16)).substr(-6),r.stroke())}else if(u.type===s.SHAPES.RREC){var w=l.x,E=l.y,j=l.width,S=l.height,O=l.radius,M=Math.min(j,S)/2|0;O=O>M?M:O,r.beginPath(),r.moveTo(w,E+O),r.lineTo(w,E+S-O),r.quadraticCurveTo(w,E+S,w+O,E+S),r.lineTo(w+j-O,E+S),r.quadraticCurveTo(w+j,E+S,w+j,E+S-O),r.lineTo(w+j,E+O),r.quadraticCurveTo(w+j,E,w+j-O,E),r.lineTo(w+O,E),r.quadraticCurveTo(w,E,w,E+O),r.closePath(),(u.fillColor||0===u.fillColor)&&(r.globalAlpha=u.fillAlpha*i,r.fillStyle="#"+("00000"+(0|h).toString(16)).substr(-6),r.fill()),u.lineWidth&&(r.globalAlpha=u.lineAlpha*i,r.strokeStyle="#"+("00000"+(0|c).toString(16)).substr(-6),r.stroke())}}},e.prototype.updateGraphicsTint=function(e){e._prevTint=e.tint;for(var t=(e.tint>>16&255)/255,r=(e.tint>>8&255)/255,i=(255&e.tint)/255,n=0;n<e.graphicsData.length;++n){var o=e.graphicsData[n],s=0|o.fillColor,a=0|o.lineColor;o._fillTint=((s>>16&255)/255*t*255<<16)+((s>>8&255)/255*r*255<<8)+(255&s)/255*i*255,o._lineTint=((a>>16&255)/255*t*255<<16)+((a>>8&255)/255*r*255<<8)+(255&a)/255*i*255}},e.prototype.renderPolygon=function(e,t,r){r.moveTo(e[0],e[1]);for(var i=1;i<e.length/2;++i)r.lineTo(e[2*i],e[2*i+1]);t&&r.closePath()},e.prototype.destroy=function(){this.renderer=null},e}();t.default=a,o.default.registerPlugin("graphics",a)},"./node_modules/pixi.js/lib/core/graphics/utils/bezierCurveTo.js":function(e,t,r){"use strict";function i(e,t,r,i,n,o,s,a){var u=arguments.length>8&&void 0!==arguments[8]?arguments[8]:[],l=0,h=0,c=0,d=0,f=0;u.push(e,t);for(var p=1,m=0;p<=20;++p)m=p/20,l=1-m,h=l*l,c=h*l,d=m*m,f=d*m,u.push(c*e+3*h*m*r+3*l*d*n+f*s,c*t+3*h*m*i+3*l*d*o+f*a);return u}t.__esModule=!0,t.default=i},"./node_modules/pixi.js/lib/core/graphics/webgl/GraphicsRenderer.js":function(e,t,r){"use strict";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 o(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)}t.__esModule=!0;var a=r("./node_modules/pixi.js/lib/core/utils/index.js"),u=r("./node_modules/pixi.js/lib/core/const.js"),l=r("./node_modules/pixi.js/lib/core/renderers/webgl/utils/ObjectRenderer.js"),h=i(l),c=r("./node_modules/pixi.js/lib/core/renderers/webgl/WebGLRenderer.js"),d=i(c),f=r("./node_modules/pixi.js/lib/core/graphics/webgl/WebGLGraphicsData.js"),p=i(f),m=r("./node_modules/pixi.js/lib/core/graphics/webgl/shaders/PrimitiveShader.js"),_=i(m),v=r("./node_modules/pixi.js/lib/core/graphics/webgl/utils/buildPoly.js"),g=i(v),y=r("./node_modules/pixi.js/lib/core/graphics/webgl/utils/buildRectangle.js"),x=i(y),b=r("./node_modules/pixi.js/lib/core/graphics/webgl/utils/buildRoundedRectangle.js"),T=i(b),w=r("./node_modules/pixi.js/lib/core/graphics/webgl/utils/buildCircle.js"),E=i(w),j=function(e){function t(r){n(this,t);var i=o(this,e.call(this,r));return i.graphicsDataPool=[],i.primitiveShader=null,i.gl=r.gl,i.CONTEXT_UID=0,i}return s(t,e),t.prototype.onContextChange=function(){this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.primitiveShader=new _.default(this.gl)},t.prototype.destroy=function(){h.default.prototype.destroy.call(this);for(var e=0;e<this.graphicsDataPool.length;++e)this.graphicsDataPool[e].destroy();this.graphicsDataPool=null},t.prototype.render=function(e){var t=this.renderer,r=t.gl,i=void 0,n=e._webGL[this.CONTEXT_UID];n&&e.dirty===n.dirty||(this.updateGraphics(e),n=e._webGL[this.CONTEXT_UID]);var o=this.primitiveShader;t.bindShader(o),t.state.setBlendMode(e.blendMode);for(var s=0,u=n.data.length;s<u;s++){i=n.data[s];var l=i.shader;t.bindShader(l),l.uniforms.translationMatrix=e.transform.worldTransform.toArray(!0),l.uniforms.tint=(0,a.hex2rgb)(e.tint),l.uniforms.alpha=e.worldAlpha,t.bindVao(i.vao),i.nativeLines?r.drawArrays(r.LINES,0,i.points.length/6):i.vao.draw(r.TRIANGLE_STRIP,i.indices.length)}},t.prototype.updateGraphics=function(e){var t=this.renderer.gl,r=e._webGL[this.CONTEXT_UID];if(r||(r=e._webGL[this.CONTEXT_UID]={lastIndex:0,data:[],gl:t,clearDirty:-1,dirty:-1}),r.dirty=e.dirty,e.clearDirty!==r.clearDirty){r.clearDirty=e.clearDirty;for(var i=0;i<r.data.length;i++)this.graphicsDataPool.push(r.data[i]);r.data.length=0,r.lastIndex=0}for(var n=void 0,o=void 0,s=r.lastIndex;s<e.graphicsData.length;s++){var a=e.graphicsData[s];n=this.getWebGLData(r,0),a.nativeLines&&a.lineWidth&&(o=this.getWebGLData(r,0,!0),r.lastIndex++),a.type===u.SHAPES.POLY&&(0,g.default)(a,n,o),a.type===u.SHAPES.RECT?(0,x.default)(a,n,o):a.type===u.SHAPES.CIRC||a.type===u.SHAPES.ELIP?(0,E.default)(a,n,o):a.type===u.SHAPES.RREC&&(0,T.default)(a,n,o),r.lastIndex++}this.renderer.bindVao(null);for(var l=0;l<r.data.length;l++)n=r.data[l],n.dirty&&n.upload()},t.prototype.getWebGLData=function(e,t,r){var i=e.data[e.data.length-1];return(!i||i.nativeLines!==r||i.points.length>32e4)&&(i=this.graphicsDataPool.pop()||new p.default(this.renderer.gl,this.primitiveShader,this.renderer.state.attribsState),i.nativeLines=r,i.reset(t),e.data.push(i)),i.dirty=!0,i},t}(h.default);t.default=j,d.default.registerPlugin("graphics",j)},"./node_modules/pixi.js/lib/core/graphics/webgl/WebGLGraphicsData.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var n=r("./node_modules/pixi-gl-core/src/index.js"),o=function(e){return e&&e.__esModule?e:{default:e}}(n),s=function(){function e(t,r,n){i(this,e),this.gl=t,this.color=[0,0,0],this.points=[],this.indices=[],this.buffer=o.default.GLBuffer.createVertexBuffer(t),this.indexBuffer=o.default.GLBuffer.createIndexBuffer(t),this.dirty=!0,this.nativeLines=!1,this.glPoints=null,this.glIndices=null,this.shader=r,this.vao=new o.default.VertexArrayObject(t,n).addIndex(this.indexBuffer).addAttribute(this.buffer,r.attributes.aVertexPosition,t.FLOAT,!1,24,0).addAttribute(this.buffer,r.attributes.aColor,t.FLOAT,!1,24,8)}return e.prototype.reset=function(){this.points.length=0,this.indices.length=0},e.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},e.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},e}();t.default=s},"./node_modules/pixi.js/lib/core/graphics/webgl/shaders/PrimitiveShader.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(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)}t.__esModule=!0;var s=r("./node_modules/pixi.js/lib/core/Shader.js"),a=function(e){return e&&e.__esModule?e:{default:e}}(s),u=function(e){function t(r){return i(this,t),n(this,e.call(this,r,["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 o(t,e),t}(a.default);t.default=u},"./node_modules/pixi.js/lib/core/graphics/webgl/utils/buildCircle.js":function(e,t,r){"use strict";function i(e,t,r){var i=e.shape,n=i.x,u=i.y,l=void 0,h=void 0;if(e.type===s.SHAPES.CIRC?(l=i.radius,h=i.radius):(l=i.width,h=i.height),0!==l&&0!==h){var c=Math.floor(30*Math.sqrt(i.radius))||Math.floor(15*Math.sqrt(i.width+i.height)),d=2*Math.PI/c;if(e.fill){var f=(0,a.hex2rgb)(e.fillColor),p=e.fillAlpha,m=f[0]*p,_=f[1]*p,v=f[2]*p,g=t.points,y=t.indices,x=g.length/6;y.push(x);for(var b=0;b<c+1;b++)g.push(n,u,m,_,v,p),g.push(n+Math.sin(d*b)*l,u+Math.cos(d*b)*h,m,_,v,p),y.push(x++,x++);y.push(x-1)}if(e.lineWidth){var T=e.points;e.points=[];for(var w=0;w<c+1;w++)e.points.push(n+Math.sin(d*w)*l,u+Math.cos(d*w)*h);(0,o.default)(e,t,r),e.points=T}}}t.__esModule=!0,t.default=i;var n=r("./node_modules/pixi.js/lib/core/graphics/webgl/utils/buildLine.js"),o=function(e){return e&&e.__esModule?e:{default:e}}(n),s=r("./node_modules/pixi.js/lib/core/const.js"),a=r("./node_modules/pixi.js/lib/core/utils/index.js")},"./node_modules/pixi.js/lib/core/graphics/webgl/utils/buildLine.js":function(e,t,r){"use strict";function i(e,t){var r=e.points;if(0!==r.length){var i=new o.Point(r[0],r[1]),n=new o.Point(r[r.length-2],r[r.length-1]);if(i.x===n.x&&i.y===n.y){r=r.slice(),r.pop(),r.pop(),n=new o.Point(r[r.length-2],r[r.length-1]);var a=n.x+.5*(i.x-n.x),u=n.y+.5*(i.y-n.y);r.unshift(a,u),r.push(a,u)}var l=t.points,h=t.indices,c=r.length/2,d=r.length,f=l.length/6,p=e.lineWidth/2,m=(0,s.hex2rgb)(e.lineColor),_=e.lineAlpha,v=m[0]*_,g=m[1]*_,y=m[2]*_,x=r[0],b=r[1],T=r[2],w=r[3],E=0,j=0,S=-(b-w),O=x-T,M=0,P=0,C=0,R=0,A=Math.sqrt(S*S+O*O);S/=A,O/=A,S*=p,O*=p,l.push(x-S,b-O,v,g,y,_),l.push(x+S,b+O,v,g,y,_);for(var I=1;I<c-1;++I){x=r[2*(I-1)],b=r[2*(I-1)+1],T=r[2*I],w=r[2*I+1],E=r[2*(I+1)],j=r[2*(I+1)+1],S=-(b-w),O=x-T,A=Math.sqrt(S*S+O*O),S/=A,O/=A,S*=p,O*=p,M=-(w-j),P=T-E,A=Math.sqrt(M*M+P*P),M/=A,P/=A,M*=p,P*=p;var D=-O+b-(-O+w),L=-S+T-(-S+x),N=(-S+x)*(-O+w)-(-S+T)*(-O+b),k=-P+j-(-P+w),F=-M+T-(-M+E),B=(-M+E)*(-P+w)-(-M+T)*(-P+j),U=D*F-k*L;if(Math.abs(U)<.1)U+=10.1,l.push(T-S,w-O,v,g,y,_),l.push(T+S,w+O,v,g,y,_);else{var X=(L*B-F*N)/U,G=(k*N-D*B)/U;(X-T)*(X-T)+(G-w)*(G-w)>196*p*p?(C=S-M,R=O-P,A=Math.sqrt(C*C+R*R),C/=A,R/=A,C*=p,R*=p,l.push(T-C,w-R),l.push(v,g,y,_),l.push(T+C,w+R),l.push(v,g,y,_),l.push(T-C,w-R),l.push(v,g,y,_),d++):(l.push(X,G),l.push(v,g,y,_),l.push(T-(X-T),w-(G-w)),l.push(v,g,y,_))}}x=r[2*(c-2)],b=r[2*(c-2)+1],T=r[2*(c-1)],w=r[2*(c-1)+1],S=-(b-w),O=x-T,A=Math.sqrt(S*S+O*O),S/=A,O/=A,S*=p,O*=p,l.push(T-S,w-O),l.push(v,g,y,_),l.push(T+S,w+O),l.push(v,g,y,_),h.push(f);for(var W=0;W<d;++W)h.push(f++);h.push(f-1)}}function n(e,t){var r=0,i=e.points;if(0!==i.length){var n=t.points,o=i.length/2,a=(0,s.hex2rgb)(e.lineColor),u=e.lineAlpha,l=a[0]*u,h=a[1]*u,c=a[2]*u;for(r=1;r<o;r++){var d=i[2*(r-1)],f=i[2*(r-1)+1],p=i[2*r],m=i[2*r+1];n.push(d,f),n.push(l,h,c,u),n.push(p,m),n.push(l,h,c,u)}}}t.__esModule=!0,t.default=function(e,t,r){e.nativeLines?n(e,r):i(e,t)};var o=r("./node_modules/pixi.js/lib/core/math/index.js"),s=r("./node_modules/pixi.js/lib/core/utils/index.js")},"./node_modules/pixi.js/lib/core/graphics/webgl/utils/buildPoly.js":function(e,t,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function n(e,t,r){e.points=e.shape.points.slice();var i=e.points;if(e.fill&&i.length>=6){for(var n=[],o=e.holes,u=0;u<o.length;u++){var h=o[u];n.push(i.length/2),i=i.concat(h.points)}var c=t.points,d=t.indices,f=i.length/2,p=(0,a.hex2rgb)(e.fillColor),m=e.fillAlpha,_=p[0]*m,v=p[1]*m,g=p[2]*m,y=(0,l.default)(i,n,2);if(!y)return;for(var x=c.length/6,b=0;b<y.length;b+=3)d.push(y[b]+x),d.push(y[b]+x),d.push(y[b+1]+x),d.push(y[b+2]+x),d.push(y[b+2]+x);for(var T=0;T<f;T++)c.push(i[2*T],i[2*T+1],_,v,g,m)}e.lineWidth>0&&(0,s.default)(e,t,r)}t.__esModule=!0,t.default=n;var o=r("./node_modules/pixi.js/lib/core/graphics/webgl/utils/buildLine.js"),s=i(o),a=r("./node_modules/pixi.js/lib/core/utils/index.js"),u=r("./node_modules/earcut/src/earcut.js"),l=i(u)},"./node_modules/pixi.js/lib/core/graphics/webgl/utils/buildRectangle.js":function(e,t,r){"use strict";function i(e,t,r){var i=e.shape,n=i.x,a=i.y,u=i.width,l=i.height;if(e.fill){var h=(0,s.hex2rgb)(e.fillColor),c=e.fillAlpha,d=h[0]*c,f=h[1]*c,p=h[2]*c,m=t.points,_=t.indices,v=m.length/6;m.push(n,a),m.push(d,f,p,c),m.push(n+u,a),m.push(d,f,p,c),m.push(n,a+l),m.push(d,f,p,c),m.push(n+u,a+l),m.push(d,f,p,c),_.push(v,v,v+1,v+2,v+3,v+3)}if(e.lineWidth){var g=e.points;e.points=[n,a,n+u,a,n+u,a+l,n,a+l,n,a],(0,o.default)(e,t,r),e.points=g}}t.__esModule=!0,t.default=i;var n=r("./node_modules/pixi.js/lib/core/graphics/webgl/utils/buildLine.js"),o=function(e){return e&&e.__esModule?e:{default:e}}(n),s=r("./node_modules/pixi.js/lib/core/utils/index.js")},"./node_modules/pixi.js/lib/core/graphics/webgl/utils/buildRoundedRectangle.js":function(e,t,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function n(e,t,r){var i=e.shape,n=i.x,o=i.y,a=i.width,l=i.height,d=i.radius,f=[];if(f.push(n,o+d),s(n,o+l-d,n,o+l,n+d,o+l,f),s(n+a-d,o+l,n+a,o+l,n+a,o+l-d,f),s(n+a,o+d,n+a,o,n+a-d,o,f),s(n+d,o,n,o,n,o+d+1e-10,f),e.fill){for(var p=(0,c.hex2rgb)(e.fillColor),m=e.fillAlpha,_=p[0]*m,v=p[1]*m,g=p[2]*m,y=t.points,x=t.indices,b=y.length/6,T=(0,u.default)(f,null,2),w=0,E=T.length;w<E;w+=3)x.push(T[w]+b),x.push(T[w]+b),x.push(T[w+1]+b),x.push(T[w+2]+b),x.push(T[w+2]+b);for(var j=0,S=f.length;j<S;j++)y.push(f[j],f[++j],_,v,g,m)}if(e.lineWidth){var O=e.points;e.points=f,(0,h.default)(e,t,r),e.points=O}}function o(e,t,r){return e+(t-e)*r}function s(e,t,r,i,n,s){for(var a=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[],u=a,l=0,h=0,c=0,d=0,f=0,p=0,m=0,_=0;m<=20;++m)_=m/20,l=o(e,r,_),h=o(t,i,_),c=o(r,n,_),d=o(i,s,_),f=o(l,c,_),p=o(h,d,_),u.push(f,p);return u}t.__esModule=!0,t.default=n;var a=r("./node_modules/earcut/src/earcut.js"),u=i(a),l=r("./node_modules/pixi.js/lib/core/graphics/webgl/utils/buildLine.js"),h=i(l),c=r("./node_modules/pixi.js/lib/core/utils/index.js")},"./node_modules/pixi.js/lib/core/index.js":function(e,t,r){"use strict";function i(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){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.autoDetectRenderer=t.Application=t.Filter=t.SpriteMaskFilter=t.Quad=t.RenderTarget=t.ObjectRenderer=t.WebGLManager=t.Shader=t.CanvasRenderTarget=t.TextureUvs=t.VideoBaseTexture=t.BaseRenderTexture=t.RenderTexture=t.BaseTexture=t.Texture=t.Spritesheet=t.CanvasGraphicsRenderer=t.GraphicsRenderer=t.GraphicsData=t.Graphics=t.TextMetrics=t.TextStyle=t.Text=t.SpriteRenderer=t.CanvasTinter=t.CanvasSpriteRenderer=t.Sprite=t.TransformBase=t.TransformStatic=t.Transform=t.Container=t.DisplayObject=t.Bounds=t.glCore=t.WebGLRenderer=t.CanvasRenderer=t.ticker=t.utils=t.settings=void 0;var o=r("./node_modules/pixi.js/lib/core/const.js");Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})});var s=r("./node_modules/pixi.js/lib/core/math/index.js");Object.keys(s).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return s[e]}})});var a=r("./node_modules/pixi-gl-core/src/index.js");Object.defineProperty(t,"glCore",{enumerable:!0,get:function(){return n(a).default}});var u=r("./node_modules/pixi.js/lib/core/display/Bounds.js");Object.defineProperty(t,"Bounds",{enumerable:!0,get:function(){return n(u).default}});var l=r("./node_modules/pixi.js/lib/core/display/DisplayObject.js");Object.defineProperty(t,"DisplayObject",{enumerable:!0,get:function(){return n(l).default}});var h=r("./node_modules/pixi.js/lib/core/display/Container.js");Object.defineProperty(t,"Container",{enumerable:!0,get:function(){return n(h).default}});var c=r("./node_modules/pixi.js/lib/core/display/Transform.js");Object.defineProperty(t,"Transform",{enumerable:!0,get:function(){return n(c).default}});var d=r("./node_modules/pixi.js/lib/core/display/TransformStatic.js");Object.defineProperty(t,"TransformStatic",{enumerable:!0,get:function(){return n(d).default}});var f=r("./node_modules/pixi.js/lib/core/display/TransformBase.js");Object.defineProperty(t,"TransformBase",{enumerable:!0,get:function(){return n(f).default}});var p=r("./node_modules/pixi.js/lib/core/sprites/Sprite.js");Object.defineProperty(t,"Sprite",{enumerable:!0,get:function(){return n(p).default}});var m=r("./node_modules/pixi.js/lib/core/sprites/canvas/CanvasSpriteRenderer.js");Object.defineProperty(t,"CanvasSpriteRenderer",{enumerable:!0,get:function(){return n(m).default}});var _=r("./node_modules/pixi.js/lib/core/sprites/canvas/CanvasTinter.js");Object.defineProperty(t,"CanvasTinter",{enumerable:!0,get:function(){return n(_).default}});var v=r("./node_modules/pixi.js/lib/core/sprites/webgl/SpriteRenderer.js");Object.defineProperty(t,"SpriteRenderer",{enumerable:!0,get:function(){return n(v).default}});var g=r("./node_modules/pixi.js/lib/core/text/Text.js");Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return n(g).default}});var y=r("./node_modules/pixi.js/lib/core/text/TextStyle.js");Object.defineProperty(t,"TextStyle",{enumerable:!0,get:function(){return n(y).default}});var x=r("./node_modules/pixi.js/lib/core/text/TextMetrics.js");Object.defineProperty(t,"TextMetrics",{enumerable:!0,get:function(){return n(x).default}});var b=r("./node_modules/pixi.js/lib/core/graphics/Graphics.js");Object.defineProperty(t,"Graphics",{enumerable:!0,get:function(){return n(b).default}});var T=r("./node_modules/pixi.js/lib/core/graphics/GraphicsData.js");Object.defineProperty(t,"GraphicsData",{enumerable:!0,get:function(){return n(T).default}});var w=r("./node_modules/pixi.js/lib/core/graphics/webgl/GraphicsRenderer.js");Object.defineProperty(t,"GraphicsRenderer",{enumerable:!0,get:function(){return n(w).default}});var E=r("./node_modules/pixi.js/lib/core/graphics/canvas/CanvasGraphicsRenderer.js");Object.defineProperty(t,"CanvasGraphicsRenderer",{enumerable:!0,get:function(){return n(E).default}});var j=r("./node_modules/pixi.js/lib/core/textures/Spritesheet.js");Object.defineProperty(t,"Spritesheet",{enumerable:!0,get:function(){return n(j).default}});var S=r("./node_modules/pixi.js/lib/core/textures/Texture.js");Object.defineProperty(t,"Texture",{enumerable:!0,get:function(){return n(S).default}});var O=r("./node_modules/pixi.js/lib/core/textures/BaseTexture.js");Object.defineProperty(t,"BaseTexture",{enumerable:!0,get:function(){return n(O).default}});var M=r("./node_modules/pixi.js/lib/core/textures/RenderTexture.js");Object.defineProperty(t,"RenderTexture",{enumerable:!0,get:function(){return n(M).default}});var P=r("./node_modules/pixi.js/lib/core/textures/BaseRenderTexture.js");Object.defineProperty(t,"BaseRenderTexture",{enumerable:!0,get:function(){return n(P).default}});var C=r("./node_modules/pixi.js/lib/core/textures/VideoBaseTexture.js");Object.defineProperty(t,"VideoBaseTexture",{enumerable:!0,get:function(){return n(C).default}});var R=r("./node_modules/pixi.js/lib/core/textures/TextureUvs.js");Object.defineProperty(t,"TextureUvs",{enumerable:!0,get:function(){return n(R).default}});var A=r("./node_modules/pixi.js/lib/core/renderers/canvas/utils/CanvasRenderTarget.js");Object.defineProperty(t,"CanvasRenderTarget",{enumerable:!0,get:function(){return n(A).default}});var I=r("./node_modules/pixi.js/lib/core/Shader.js");Object.defineProperty(t,"Shader",{enumerable:!0,get:function(){return n(I).default}});var D=r("./node_modules/pixi.js/lib/core/renderers/webgl/managers/WebGLManager.js");Object.defineProperty(t,"WebGLManager",{enumerable:!0,get:function(){return n(D).default}});var L=r("./node_modules/pixi.js/lib/core/renderers/webgl/utils/ObjectRenderer.js");Object.defineProperty(t,"ObjectRenderer",{enumerable:!0,get:function(){return n(L).default}});var N=r("./node_modules/pixi.js/lib/core/renderers/webgl/utils/RenderTarget.js");Object.defineProperty(t,"RenderTarget",{enumerable:!0,get:function(){return n(N).default}});var k=r("./node_modules/pixi.js/lib/core/renderers/webgl/utils/Quad.js");Object.defineProperty(t,"Quad",{enumerable:!0,get:function(){return n(k).default}});var F=r("./node_modules/pixi.js/lib/core/renderers/webgl/filters/spriteMask/SpriteMaskFilter.js");Object.defineProperty(t,"SpriteMaskFilter",{enumerable:!0,get:function(){return n(F).default}});var B=r("./node_modules/pixi.js/lib/core/renderers/webgl/filters/Filter.js");Object.defineProperty(t,"Filter",{enumerable:!0,get:function(){return n(B).default}});var U=r("./node_modules/pixi.js/lib/core/Application.js");Object.defineProperty(t,"Application",{enumerable:!0,get:function(){return n(U).default}});var X=r("./node_modules/pixi.js/lib/core/autoDetectRenderer.js");Object.defineProperty(t,"autoDetectRenderer",{enumerable:!0,get:function(){return X.autoDetectRenderer}});var G=r("./node_modules/pixi.js/lib/core/utils/index.js"),W=i(G),H=r("./node_modules/pixi.js/lib/core/ticker/index.js"),Y=i(H),V=r("./node_modules/pixi.js/lib/core/settings.js"),z=n(V),q=r("./node_modules/pixi.js/lib/core/renderers/canvas/CanvasRenderer.js"),K=n(q),Z=r("./node_modules/pixi.js/lib/core/renderers/webgl/WebGLRenderer.js"),J=n(Z);t.settings=z.default,t.utils=W,t.ticker=Y,t.CanvasRenderer=K.default,t.WebGLRenderer=J.default},"./node_modules/pixi.js/lib/core/math/GroupD8.js":function(e,t,r){"use strict";function i(e){return e<0?-1:e>0?1:0}t.__esModule=!0;var n=r("./node_modules/pixi.js/lib/core/math/Matrix.js"),o=function(e){return e&&e.__esModule?e:{default:e}}(n),s=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],a=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],u=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],l=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],h=[],c=[];!function(){for(var e=0;e<16;e++){var t=[];c.push(t);for(var r=0;r<16;r++)for(var n=i(s[e]*s[r]+u[e]*a[r]),d=i(a[e]*s[r]+l[e]*a[r]),f=i(s[e]*u[r]+u[e]*l[r]),p=i(a[e]*u[r]+l[e]*l[r]),m=0;m<16;m++)if(s[m]===n&&a[m]===d&&u[m]===f&&l[m]===p){t.push(m);break}}for(var _=0;_<16;_++){var v=new o.default;v.set(s[_],a[_],u[_],l[_],0,0),h.push(v)}}();var d={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MIRROR_HORIZONTAL:12,uX:function(e){return s[e]},uY:function(e){return a[e]},vX:function(e){return u[e]},vY:function(e){return l[e]},inv:function(e){return 8&e?15&e:7&-e},add:function(e,t){return c[e][t]},sub:function(e,t){return c[e][d.inv(t)]},rotate180:function(e){return 4^e},isSwapWidthHeight:function(e){return 2==(3&e)},byDirection:function(e,t){return 2*Math.abs(e)<=Math.abs(t)?t>=0?d.S:d.N:2*Math.abs(t)<=Math.abs(e)?e>0?d.E:d.W:t>0?e>0?d.SE:d.SW:e>0?d.NE:d.NW},matrixAppendRotationInv:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,n=h[d.inv(t)];n.tx=r,n.ty=i,e.append(n)}};t.default=d},"./node_modules/pixi.js/lib/core/math/Matrix.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var n=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}}(),o=r("./node_modules/pixi.js/lib/core/math/Point.js"),s=function(e){return e&&e.__esModule?e:{default:e}}(o),a=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:0,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0;i(this,e),this.a=t,this.b=r,this.c=n,this.d=o,this.tx=s,this.ty=a,this.array=null}return e.prototype.fromArray=function(e){this.a=e[0],this.b=e[1],this.c=e[3],this.d=e[4],this.tx=e[2],this.ty=e[5]},e.prototype.set=function(e,t,r,i,n,o){return this.a=e,this.b=t,this.c=r,this.d=i,this.tx=n,this.ty=o,this},e.prototype.toArray=function(e,t){this.array||(this.array=new Float32Array(9));var r=t||this.array;return e?(r[0]=this.a,r[1]=this.b,r[2]=0,r[3]=this.c,r[4]=this.d,r[5]=0,r[6]=this.tx,r[7]=this.ty,r[8]=1):(r[0]=this.a,r[1]=this.c,r[2]=this.tx,r[3]=this.b,r[4]=this.d,r[5]=this.ty,r[6]=0,r[7]=0,r[8]=1),r},e.prototype.apply=function(e,t){t=t||new s.default;var r=e.x,i=e.y;return t.x=this.a*r+this.c*i+this.tx,t.y=this.b*r+this.d*i+this.ty,t},e.prototype.applyInverse=function(e,t){t=t||new s.default;var r=1/(this.a*this.d+this.c*-this.b),i=e.x,n=e.y;return t.x=this.d*r*i+-this.c*r*n+(this.ty*this.c-this.tx*this.d)*r,t.y=this.a*r*n+-this.b*r*i+(-this.ty*this.a+this.tx*this.b)*r,t},e.prototype.translate=function(e,t){return this.tx+=e,this.ty+=t,this},e.prototype.scale=function(e,t){return this.a*=e,this.d*=t,this.c*=e,this.b*=t,this.tx*=e,this.ty*=t,this},e.prototype.rotate=function(e){var t=Math.cos(e),r=Math.sin(e),i=this.a,n=this.c,o=this.tx;return this.a=i*t-this.b*r,this.b=i*r+this.b*t,this.c=n*t-this.d*r,this.d=n*r+this.d*t,this.tx=o*t-this.ty*r,this.ty=o*r+this.ty*t,this},e.prototype.append=function(e){var t=this.a,r=this.b,i=this.c,n=this.d;return this.a=e.a*t+e.b*i,this.b=e.a*r+e.b*n,this.c=e.c*t+e.d*i,this.d=e.c*r+e.d*n,this.tx=e.tx*t+e.ty*i+this.tx,this.ty=e.tx*r+e.ty*n+this.ty,this},e.prototype.setTransform=function(e,t,r,i,n,o,s,a,u){var l=Math.sin(s),h=Math.cos(s),c=Math.cos(u),d=Math.sin(u),f=-Math.sin(a),p=Math.cos(a),m=h*n,_=l*n,v=-l*o,g=h*o;return this.a=c*m+d*v,this.b=c*_+d*g,this.c=f*m+p*v,this.d=f*_+p*g,this.tx=e+(r*m+i*v),this.ty=t+(r*_+i*g),this},e.prototype.prepend=function(e){var t=this.tx;if(1!==e.a||0!==e.b||0!==e.c||1!==e.d){var r=this.a,i=this.c;this.a=r*e.a+this.b*e.c,this.b=r*e.b+this.b*e.d,this.c=i*e.a+this.d*e.c,this.d=i*e.b+this.d*e.d}return this.tx=t*e.a+this.ty*e.c+e.tx,this.ty=t*e.b+this.ty*e.d+e.ty,this},e.prototype.decompose=function(e){var t=this.a,r=this.b,i=this.c,n=this.d,o=-Math.atan2(-i,n),s=Math.atan2(r,t);return Math.abs(o+s)<1e-5?(e.rotation=s,t<0&&n>=0&&(e.rotation+=e.rotation<=0?Math.PI:-Math.PI),e.skew.x=e.skew.y=0):(e.skew.x=o,e.skew.y=s),e.scale.x=Math.sqrt(t*t+r*r),e.scale.y=Math.sqrt(i*i+n*n),e.position.x=this.tx,e.position.y=this.ty,e},e.prototype.invert=function(){var e=this.a,t=this.b,r=this.c,i=this.d,n=this.tx,o=e*i-t*r;return this.a=i/o,this.b=-t/o,this.c=-r/o,this.d=e/o,this.tx=(r*this.ty-i*n)/o,this.ty=-(e*this.ty-t*n)/o,this},e.prototype.identity=function(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this},e.prototype.clone=function(){var t=new e;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},e.prototype.copy=function(e){return e.a=this.a,e.b=this.b,e.c=this.c,e.d=this.d,e.tx=this.tx,e.ty=this.ty,e},n(e,null,[{key:"IDENTITY",get:function(){return new e}},{key:"TEMP_MATRIX",get:function(){return new e}}]),e}();t.default=a},"./node_modules/pixi.js/lib/core/math/ObservablePoint.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var n=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}}(),o=function(){function e(t,r){var n=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=n,this._y=o,this.cb=t,this.scope=r}return e.prototype.set=function(e,t){var r=e||0,i=t||(0!==t?r:0);this._x===r&&this._y===i||(this._x=r,this._y=i,this.cb.call(this.scope))},e.prototype.copy=function(e){this._x===e.x&&this._y===e.y||(this._x=e.x,this._y=e.y,this.cb.call(this.scope))},n(e,[{key:"x",get:function(){return this._x},set:function(e){this._x!==e&&(this._x=e,this.cb.call(this.scope))}},{key:"y",get:function(){return this._y},set:function(e){this._y!==e&&(this._y=e,this.cb.call(this.scope))}}]),e}();t.default=o},"./node_modules/pixi.js/lib/core/math/Point.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var n=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;i(this,e),this.x=t,this.y=r}return e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.copy=function(e){this.set(e.x,e.y)},e.prototype.equals=function(e){return e.x===this.x&&e.y===this.y},e.prototype.set=function(e,t){this.x=e||0,this.y=t||(0!==t?this.x:0)},e}();t.default=n},"./node_modules/pixi.js/lib/core/math/index.js":function(e,t,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var n=r("./node_modules/pixi.js/lib/core/math/Point.js");Object.defineProperty(t,"Point",{enumerable:!0,get:function(){return i(n).default}});var o=r("./node_modules/pixi.js/lib/core/math/ObservablePoint.js");Object.defineProperty(t,"ObservablePoint",{enumerable:!0,get:function(){return i(o).default}});var s=r("./node_modules/pixi.js/lib/core/math/Matrix.js");Object.defineProperty(t,"Matrix",{enumerable:!0,get:function(){return i(s).default}});var a=r("./node_modules/pixi.js/lib/core/math/GroupD8.js");Object.defineProperty(t,"GroupD8",{enumerable:!0,get:function(){return i(a).default}});var u=r("./node_modules/pixi.js/lib/core/math/shapes/Circle.js");Object.defineProperty(t,"Circle",{enumerable:!0,get:function(){return i(u).default}});var l=r("./node_modules/pixi.js/lib/core/math/shapes/Ellipse.js");Object.defineProperty(t,"Ellipse",{enumerable:!0,get:function(){return i(l).default}});var h=r("./node_modules/pixi.js/lib/core/math/shapes/Polygon.js");Object.defineProperty(t,"Polygon",{enumerable:!0,get:function(){return i(h).default}});var c=r("./node_modules/pixi.js/lib/core/math/shapes/Rectangle.js");Object.defineProperty(t,"Rectangle",{enumerable:!0,get:function(){return i(c).default}});var d=r("./node_modules/pixi.js/lib/core/math/shapes/RoundedRectangle.js");Object.defineProperty(t,"RoundedRectangle",{enumerable:!0,get:function(){return i(d).default}})},"./node_modules/pixi.js/lib/core/math/shapes/Circle.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var n=r("./node_modules/pixi.js/lib/core/math/shapes/Rectangle.js"),o=function(e){return e&&e.__esModule?e:{default:e}}(n),s=r("./node_modules/pixi.js/lib/core/const.js"),a=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;i(this,e),this.x=t,this.y=r,this.radius=n,this.type=s.SHAPES.CIRC}return e.prototype.clone=function(){return new e(this.x,this.y,this.radius)},e.prototype.contains=function(e,t){if(this.radius<=0)return!1;var r=this.radius*this.radius,i=this.x-e,n=this.y-t;return i*=i,n*=n,i+n<=r},e.prototype.getBounds=function(){return new o.default(this.x-this.radius,this.y-this.radius,2*this.radius,2*this.radius)},e}();t.default=a},"./node_modules/pixi.js/lib/core/math/shapes/Ellipse.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var n=r("./node_modules/pixi.js/lib/core/math/shapes/Rectangle.js"),o=function(e){return e&&e.__esModule?e:{default:e}}(n),s=r("./node_modules/pixi.js/lib/core/const.js"),a=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=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=t,this.y=r,this.width=n,this.height=o,this.type=s.SHAPES.ELIP}return e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.contains=function(e,t){if(this.width<=0||this.height<=0)return!1;var r=(e-this.x)/this.width,i=(t-this.y)/this.height;return r*=r,i*=i,r+i<=1},e.prototype.getBounds=function(){return new o.default(this.x-this.width,this.y-this.height,this.width,this.height)},e}();t.default=a},"./node_modules/pixi.js/lib/core/math/shapes/Polygon.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var n=r("./node_modules/pixi.js/lib/core/math/Point.js"),o=function(e){return e&&e.__esModule?e:{default:e}}(n),s=r("./node_modules/pixi.js/lib/core/const.js"),a=function(){function e(){for(var t=arguments.length,r=Array(t),n=0;n<t;n++)r[n]=arguments[n];if(i(this,e),Array.isArray(r[0])&&(r=r[0]),r[0]instanceof o.default){for(var a=[],u=0,l=r.length;u<l;u++)a.push(r[u].x,r[u].y);r=a}this.closed=!0,this.points=r,this.type=s.SHAPES.POLY}return e.prototype.clone=function(){return new e(this.points.slice())},e.prototype.close=function(){var e=this.points;e[0]===e[e.length-2]&&e[1]===e[e.length-1]||e.push(e[0],e[1])},e.prototype.contains=function(e,t){for(var r=!1,i=this.points.length/2,n=0,o=i-1;n<i;o=n++){var s=this.points[2*n],a=this.points[2*n+1],u=this.points[2*o],l=this.points[2*o+1];a>t!=l>t&&e<(t-a)/(l-a)*(u-s)+s&&(r=!r)}return r},e}();t.default=a},"./node_modules/pixi.js/lib/core/math/shapes/Rectangle.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var n=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}}(),o=r("./node_modules/pixi.js/lib/core/const.js"),s=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;i(this,e),this.x=Number(t),this.y=Number(r),this.width=Number(n),this.height=Number(s),this.type=o.SHAPES.RECT}return e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this},e.prototype.contains=function(e,t){return!(this.width<=0||this.height<=0)&&(e>=this.x&&e<this.x+this.width&&t>=this.y&&t<this.y+this.height)},e.prototype.pad=function(e,t){e=e||0,t=t||(0!==t?e:0),this.x-=e,this.y-=t,this.width+=2*e,this.height+=2*t},e.prototype.fit=function(e){this.x<e.x&&(this.width+=this.x,this.width<0&&(this.width=0),this.x=e.x),this.y<e.y&&(this.height+=this.y,this.height<0&&(this.height=0),this.y=e.y),this.x+this.width>e.x+e.width&&(this.width=e.width-this.x,this.width<0&&(this.width=0)),this.y+this.height>e.y+e.height&&(this.height=e.height-this.y,this.height<0&&(this.height=0))},e.prototype.enlarge=function(e){var t=Math.min(this.x,e.x),r=Math.max(this.x+this.width,e.x+e.width),i=Math.min(this.y,e.y),n=Math.max(this.y+this.height,e.y+e.height);this.x=t,this.width=r-t,this.y=i,this.height=n-i},n(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}();t.default=s},"./node_modules/pixi.js/lib/core/math/shapes/RoundedRectangle.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var n=r("./node_modules/pixi.js/lib/core/const.js"),o=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,s=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:20;i(this,e),this.x=t,this.y=r,this.width=o,this.height=s,this.radius=a,this.type=n.SHAPES.RREC}return e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height,this.radius)},e.prototype.contains=function(e,t){if(this.width<=0||this.height<=0)return!1;if(e>=this.x&&e<=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||e>=this.x+this.radius&&e<=this.x+this.width-this.radius)return!0;var r=e-(this.x+this.radius),i=t-(this.y+this.radius),n=this.radius*this.radius;if(r*r+i*i<=n)return!0;if((r=e-(this.x+this.width-this.radius))*r+i*i<=n)return!0;if(i=t-(this.y+this.height-this.radius),r*r+i*i<=n)return!0;if((r=e-(this.x+this.radius))*r+i*i<=n)return!0}return!1},e}();t.default=o},"./node_modules/pixi.js/lib/core/renderers/SystemRenderer.js":function(e,t,r){"use strict";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 o(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)}t.__esModule=!0;var a=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}}(),u=r("./node_modules/pixi.js/lib/core/utils/index.js"),l=r("./node_modules/pixi.js/lib/core/math/index.js"),h=r("./node_modules/pixi.js/lib/core/const.js"),c=r("./node_modules/pixi.js/lib/core/settings.js"),d=i(c),f=r("./node_modules/pixi.js/lib/core/display/Container.js"),p=i(f),m=r("./node_modules/pixi.js/lib/core/textures/RenderTexture.js"),_=i(m),v=r("./node_modules/pixi.js/node_modules/eventemitter3/index.js"),g=i(v),y=new l.Matrix,x=function(e){function t(r,i,s,a){n(this,t);var c=o(this,e.call(this));return(0,u.sayHello)(r),"number"==typeof i&&(i=Object.assign({width:i,height:s||d.default.RENDER_OPTIONS.height},a)),i=Object.assign({},d.default.RENDER_OPTIONS,i),c.options=i,c.type=h.RENDERER_TYPE.UNKNOWN,c.screen=new l.Rectangle(0,0,i.width,i.height),c.view=i.view||document.createElement("canvas"),c.resolution=i.resolution||d.default.RESOLUTION,c.transparent=i.transparent,c.autoResize=i.autoResize||!1,c.blendModes=null,c.preserveDrawingBuffer=i.preserveDrawingBuffer,c.clearBeforeRender=i.clearBeforeRender,c.roundPixels=i.roundPixels,c._backgroundColor=0,c._backgroundColorRgba=[0,0,0,0],c._backgroundColorString="#000000",c.backgroundColor=i.backgroundColor||c._backgroundColor,c._tempDisplayObjectParent=new p.default,c._lastObjectRendered=c._tempDisplayObjectParent,c}return s(t,e),t.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")},t.prototype.generateTexture=function(e,t,r){var i=e.getLocalBounds(),n=_.default.create(0|i.width,0|i.height,t,r);return y.tx=-i.x,y.ty=-i.y,this.render(e,n,!1,y,!0),n},t.prototype.destroy=function(e){e&&this.view.parentNode&&this.view.parentNode.removeChild(this.view),this.type=h.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},a(t,[{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,u.hex2string)(e),(0,u.hex2rgb)(e,this._backgroundColorRgba)}}]),t}(g.default);t.default=x},"./node_modules/pixi.js/lib/core/renderers/canvas/CanvasRenderer.js":function(e,t,r){"use strict";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 o(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)}t.__esModule=!0;var a=r("./node_modules/pixi.js/lib/core/renderers/SystemRenderer.js"),u=i(a),l=r("./node_modules/pixi.js/lib/core/renderers/canvas/utils/CanvasMaskManager.js"),h=i(l),c=r("./node_modules/pixi.js/lib/core/renderers/canvas/utils/CanvasRenderTarget.js"),d=i(c),f=r("./node_modules/pixi.js/lib/core/renderers/canvas/utils/mapCanvasBlendModesToPixi.js"),p=i(f),m=r("./node_modules/pixi.js/lib/core/utils/index.js"),_=r("./node_modules/pixi.js/lib/core/const.js"),v=r("./node_modules/pixi.js/lib/core/settings.js"),g=i(v),y=function(e){function t(r,i,s){n(this,t);var a=o(this,e.call(this,"Canvas",r,i,s));return a.type=_.RENDERER_TYPE.CANVAS,a.rootContext=a.view.getContext("2d",{alpha:a.transparent}),a.context=a.rootContext,a.refresh=!0,a.maskManager=new h.default(a),a.smoothProperty="imageSmoothingEnabled",a.rootContext.imageSmoothingEnabled||(a.rootContext.webkitImageSmoothingEnabled?a.smoothProperty="webkitImageSmoothingEnabled":a.rootContext.mozImageSmoothingEnabled?a.smoothProperty="mozImageSmoothingEnabled":a.rootContext.oImageSmoothingEnabled?a.smoothProperty="oImageSmoothingEnabled":a.rootContext.msImageSmoothingEnabled&&(a.smoothProperty="msImageSmoothingEnabled")),a.initPlugins(),a.blendModes=(0,p.default)(),a._activeBlendMode=null,a.renderingToScreen=!1,a.resize(a.options.width,a.options.height),a}return s(t,e),t.prototype.render=function(e,t,r,i,n){if(this.view){this.renderingToScreen=!t,this.emit("prerender");var o=this.resolution;t?(t=t.baseTexture||t,t._canvasRenderTarget||(t._canvasRenderTarget=new d.default(t.width,t.height,t.resolution),t.source=t._canvasRenderTarget.canvas,t.valid=!0),this.context=t._canvasRenderTarget.context,this.resolution=t._canvasRenderTarget.resolution):this.context=this.rootContext;var s=this.context;if(t||(this._lastObjectRendered=e),!n){var a=e.parent,u=this._tempDisplayObjectParent.transform.worldTransform;i?(i.copy(u),this._tempDisplayObjectParent.transform._worldID=-1):u.identity(),e.parent=this._tempDisplayObjectParent,e.updateTransform(),e.parent=a}s.setTransform(1,0,0,1,0,0),s.globalAlpha=1,this._activeBlendMode=_.BLEND_MODES.NORMAL,s.globalCompositeOperation=this.blendModes[_.BLEND_MODES.NORMAL],navigator.isCocoonJS&&this.view.screencanvas&&(s.fillStyle="black",s.clear()),(void 0!==r?r:this.clearBeforeRender)&&this.renderingToScreen&&(this.transparent?s.clearRect(0,0,this.width,this.height):(s.fillStyle=this._backgroundColorString,s.fillRect(0,0,this.width,this.height)));var l=this.context;this.context=s,e.renderCanvas(this),this.context=l,this.resolution=o,this.emit("postrender")}},t.prototype.clear=function(e){var t=this.context;e=e||this._backgroundColorString,!this.transparent&&e?(t.fillStyle=e,t.fillRect(0,0,this.width,this.height)):t.clearRect(0,0,this.width,this.height)},t.prototype.setBlendMode=function(e){this._activeBlendMode!==e&&(this._activeBlendMode=e,this.context.globalCompositeOperation=this.blendModes[e])},t.prototype.destroy=function(t){this.destroyPlugins(),e.prototype.destroy.call(this,t),this.context=null,this.refresh=!0,this.maskManager.destroy(),this.maskManager=null,this.smoothProperty=null},t.prototype.resize=function(t,r){e.prototype.resize.call(this,t,r),this.smoothProperty&&(this.rootContext[this.smoothProperty]=g.default.SCALE_MODE===_.SCALE_MODES.LINEAR)},t.prototype.invalidateBlendMode=function(){this._activeBlendMode=this.blendModes.indexOf(this.context.globalCompositeOperation)},t}(u.default);t.default=y,m.pluginTarget.mixin(y)},"./node_modules/pixi.js/lib/core/renderers/canvas/utils/CanvasMaskManager.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var n=r("./node_modules/pixi.js/lib/core/const.js"),o=function(){function e(t){i(this,e),this.renderer=t}return e.prototype.pushMask=function(e){var t=this.renderer;t.context.save();var r=e.alpha,i=e.transform.worldTransform,n=t.resolution;t.context.setTransform(i.a*n,i.b*n,i.c*n,i.d*n,i.tx*n,i.ty*n),e._texture||(this.renderGraphicsShape(e),t.context.clip()),e.worldAlpha=r},e.prototype.renderGraphicsShape=function(e){var t=this.renderer.context,r=e.graphicsData.length;if(0!==r){t.beginPath();for(var i=0;i<r;i++){var o=e.graphicsData[i],s=o.shape;if(o.type===n.SHAPES.POLY){var a=s.points;t.moveTo(a[0],a[1]);for(var u=1;u<a.length/2;u++)t.lineTo(a[2*u],a[2*u+1]);a[0]===a[a.length-2]&&a[1]===a[a.length-1]&&t.closePath()}else if(o.type===n.SHAPES.RECT)t.rect(s.x,s.y,s.width,s.height),t.closePath();else if(o.type===n.SHAPES.CIRC)t.arc(s.x,s.y,s.radius,0,2*Math.PI),t.closePath();else if(o.type===n.SHAPES.ELIP){var l=2*s.width,h=2*s.height,c=s.x-l/2,d=s.y-h/2,f=l/2*.5522848,p=h/2*.5522848,m=c+l,_=d+h,v=c+l/2,g=d+h/2;t.moveTo(c,g),t.bezierCurveTo(c,g-p,v-f,d,v,d),t.bezierCurveTo(v+f,d,m,g-p,m,g),t.bezierCurveTo(m,g+p,v+f,_,v,_),t.bezierCurveTo(v-f,_,c,g+p,c,g),t.closePath()}else if(o.type===n.SHAPES.RREC){var y=s.x,x=s.y,b=s.width,T=s.height,w=s.radius,E=Math.min(b,T)/2|0;w=w>E?E:w,t.moveTo(y,x+w),t.lineTo(y,x+T-w),t.quadraticCurveTo(y,x+T,y+w,x+T),t.lineTo(y+b-w,x+T),t.quadraticCurveTo(y+b,x+T,y+b,x+T-w),t.lineTo(y+b,x+w),t.quadraticCurveTo(y+b,x,y+b-w,x),t.lineTo(y+w,x),t.quadraticCurveTo(y,x,y,x+w),t.closePath()}}}},e.prototype.popMask=function(e){e.context.restore(),e.invalidateBlendMode()},e.prototype.destroy=function(){},e}();t.default=o},"./node_modules/pixi.js/lib/core/renderers/canvas/utils/CanvasRenderTarget.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var n=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}}(),o=r("./node_modules/pixi.js/lib/core/settings.js"),s=function(e){return e&&e.__esModule?e:{default:e}}(o),a=function(){function e(t,r,n){i(this,e),this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.resolution=n||s.default.RESOLUTION,this.resize(t,r)}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(e,t){this.canvas.width=e*this.resolution,this.canvas.height=t*this.resolution},e.prototype.destroy=function(){this.context=null,this.canvas=null},n(e,[{key:"width",get:function(){return this.canvas.width},set:function(e){this.canvas.width=e}},{key:"height",get:function(){return this.canvas.height},set:function(e){this.canvas.height=e}}]),e}();t.default=a},"./node_modules/pixi.js/lib/core/renderers/canvas/utils/canUseNewCanvasBlendModes.js":function(e,t,r){"use strict";function i(e){var t=document.createElement("canvas");t.width=6,t.height=1;var r=t.getContext("2d");return r.fillStyle=e,r.fillRect(0,0,6,1),t}function n(){if("undefined"==typeof document)return!1;var e=i("#ff00ff"),t=i("#ffff00"),r=document.createElement("canvas");r.width=6,r.height=1;var n=r.getContext("2d");n.globalCompositeOperation="multiply",n.drawImage(e,0,0),n.drawImage(t,2,0);var o=n.getImageData(2,0,1,1);if(!o)return!1;var s=o.data;return 255===s[0]&&0===s[1]&&0===s[2]}t.__esModule=!0,t.default=n},"./node_modules/pixi.js/lib/core/renderers/canvas/utils/mapCanvasBlendModesToPixi.js":function(e,t,r){"use strict";function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return(0,s.default)()?(e[n.BLEND_MODES.NORMAL]="source-over",e[n.BLEND_MODES.ADD]="lighter",e[n.BLEND_MODES.MULTIPLY]="multiply",e[n.BLEND_MODES.SCREEN]="screen",e[n.BLEND_MODES.OVERLAY]="overlay",e[n.BLEND_MODES.DARKEN]="darken",e[n.BLEND_MODES.LIGHTEN]="lighten",e[n.BLEND_MODES.COLOR_DODGE]="color-dodge",e[n.BLEND_MODES.COLOR_BURN]="color-burn",e[n.BLEND_MODES.HARD_LIGHT]="hard-light",e[n.BLEND_MODES.SOFT_LIGHT]="soft-light",e[n.BLEND_MODES.DIFFERENCE]="difference",e[n.BLEND_MODES.EXCLUSION]="exclusion",e[n.BLEND_MODES.HUE]="hue",e[n.BLEND_MODES.SATURATION]="saturate",e[n.BLEND_MODES.COLOR]="color",e[n.BLEND_MODES.LUMINOSITY]="luminosity"):(e[n.BLEND_MODES.NORMAL]="source-over",e[n.BLEND_MODES.ADD]="lighter",e[n.BLEND_MODES.MULTIPLY]="source-over",e[n.BLEND_MODES.SCREEN]="source-over",e[n.BLEND_MODES.OVERLAY]="source-over",e[n.BLEND_MODES.DARKEN]="source-over",e[n.BLEND_MODES.LIGHTEN]="source-over",e[n.BLEND_MODES.COLOR_DODGE]="source-over",e[n.BLEND_MODES.COLOR_BURN]="source-over",e[n.BLEND_MODES.HARD_LIGHT]="source-over",e[n.BLEND_MODES.SOFT_LIGHT]="source-over",e[n.BLEND_MODES.DIFFERENCE]="source-over",e[n.BLEND_MODES.EXCLUSION]="source-over",e[n.BLEND_MODES.HUE]="source-over",e[n.BLEND_MODES.SATURATION]="source-over",e[n.BLEND_MODES.COLOR]="source-over",e[n.BLEND_MODES.LUMINOSITY]="source-over"),e[n.BLEND_MODES.NORMAL_NPM]=e[n.BLEND_MODES.NORMAL],e[n.BLEND_MODES.ADD_NPM]=e[n.BLEND_MODES.ADD],e[n.BLEND_MODES.SCREEN_NPM]=e[n.BLEND_MODES.SCREEN],e}t.__esModule=!0,t.default=i;var n=r("./node_modules/pixi.js/lib/core/const.js"),o=r("./node_modules/pixi.js/lib/core/renderers/canvas/utils/canUseNewCanvasBlendModes.js"),s=function(e){return e&&e.__esModule?e:{default:e}}(o)},"./node_modules/pixi.js/lib/core/renderers/webgl/TextureGarbageCollector.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var n=r("./node_modules/pixi.js/lib/core/const.js"),o=r("./node_modules/pixi.js/lib/core/settings.js"),s=function(e){return e&&e.__esModule?e:{default:e}}(o),a=function(){function e(t){i(this,e),this.renderer=t,this.count=0,this.checkCount=0,this.maxIdle=s.default.GC_MAX_IDLE,this.checkCountMax=s.default.GC_MAX_CHECK_COUNT,this.mode=s.default.GC_MODE}return e.prototype.update=function(){this.count++,this.mode!==n.GC_MODES.MANUAL&&++this.checkCount>this.checkCountMax&&(this.checkCount=0,this.run())},e.prototype.run=function(){for(var e=this.renderer.textureManager,t=e._managedTextures,r=!1,i=0;i<t.length;i++){var n=t[i];!n._glRenderTargets&&this.count-n.touched>this.maxIdle&&(e.destroyTexture(n,!0),t[i]=null,r=!0)}if(r){for(var o=0,s=0;s<t.length;s++)null!==t[s]&&(t[o++]=t[s]);t.length=o}},e.prototype.unload=function(e){var t=this.renderer.textureManager;e._texture&&e._texture._glRenderTargets&&t.destroyTexture(e._texture,!0);for(var r=e.children.length-1;r>=0;r--)this.unload(e.children[r])},e}();t.default=a},"./node_modules/pixi.js/lib/core/renderers/webgl/TextureManager.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var n=r("./node_modules/pixi-gl-core/src/index.js"),o=r("./node_modules/pixi.js/lib/core/const.js"),s=r("./node_modules/pixi.js/lib/core/renderers/webgl/utils/RenderTarget.js"),a=function(e){return e&&e.__esModule?e:{default:e}}(s),u=r("./node_modules/pixi.js/lib/core/utils/index.js"),l=function(){function e(t){i(this,e),this.renderer=t,this.gl=t.gl,this._managedTextures=[]}return e.prototype.bindTexture=function(){},e.prototype.getTexture=function(){},e.prototype.updateTexture=function(e,t){var r=this.gl,i=!!e._glRenderTargets;if(!e.hasLoaded)return null;var s=this.renderer.boundTextures;if(void 0===t){t=0;for(var u=0;u<s.length;++u)if(s[u]===e){t=u;break}}s[t]=e,r.activeTexture(r.TEXTURE0+t);var l=e._glTextures[this.renderer.CONTEXT_UID];if(l)i?e._glRenderTargets[this.renderer.CONTEXT_UID].resize(e.width,e.height):l.upload(e.source);else{if(i){var h=new a.default(this.gl,e.width,e.height,e.scaleMode,e.resolution);h.resize(e.width,e.height),e._glRenderTargets[this.renderer.CONTEXT_UID]=h,l=h.texture}else l=new n.GLTexture(this.gl,null,null,null,null),l.bind(t),l.premultiplyAlpha=!0,l.upload(e.source);e._glTextures[this.renderer.CONTEXT_UID]=l,e.on("update",this.updateTexture,this),e.on("dispose",this.destroyTexture,this),this._managedTextures.push(e),e.isPowerOfTwo?(e.mipmap&&l.enableMipmap(),e.wrapMode===o.WRAP_MODES.CLAMP?l.enableWrapClamp():e.wrapMode===o.WRAP_MODES.REPEAT?l.enableWrapRepeat():l.enableWrapMirrorRepeat()):l.enableWrapClamp(),e.scaleMode===o.SCALE_MODES.NEAREST?l.enableNearestScaling():l.enableLinearScaling()}return l},e.prototype.destroyTexture=function(e,t){if(e=e.baseTexture||e,e.hasLoaded){var r=this.renderer.CONTEXT_UID,i=e._glTextures,n=e._glRenderTargets;if(i[r]&&(this.renderer.unbindTexture(e),i[r].destroy(),e.off("update",this.updateTexture,this),e.off("dispose",this.destroyTexture,this),delete i[r],!t)){var o=this._managedTextures.indexOf(e);-1!==o&&(0,u.removeItems)(this._managedTextures,o,1)}n&&n[r]&&(n[r].destroy(),delete n[r])}},e.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]}},e.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},e}();t.default=l},"./node_modules/pixi.js/lib/core/renderers/webgl/WebGLRenderer.js":function(e,t,r){"use strict";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 o(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)}t.__esModule=!0;var a=r("./node_modules/pixi.js/lib/core/renderers/SystemRenderer.js"),u=i(a),l=r("./node_modules/pixi.js/lib/core/renderers/webgl/managers/MaskManager.js"),h=i(l),c=r("./node_modules/pixi.js/lib/core/renderers/webgl/managers/StencilManager.js"),d=i(c),f=r("./node_modules/pixi.js/lib/core/renderers/webgl/managers/FilterManager.js"),p=i(f),m=r("./node_modules/pixi.js/lib/core/renderers/webgl/utils/RenderTarget.js"),_=i(m),v=r("./node_modules/pixi.js/lib/core/renderers/webgl/utils/ObjectRenderer.js"),g=i(v),y=r("./node_modules/pixi.js/lib/core/renderers/webgl/TextureManager.js"),x=i(y),b=r("./node_modules/pixi.js/lib/core/textures/BaseTexture.js"),T=i(b),w=r("./node_modules/pixi.js/lib/core/renderers/webgl/TextureGarbageCollector.js"),E=i(w),j=r("./node_modules/pixi.js/lib/core/renderers/webgl/WebGLState.js"),S=i(j),O=r("./node_modules/pixi.js/lib/core/renderers/webgl/utils/mapWebGLDrawModesToPixi.js"),M=i(O),P=r("./node_modules/pixi.js/lib/core/renderers/webgl/utils/validateContext.js"),C=i(P),R=r("./node_modules/pixi.js/lib/core/utils/index.js"),A=r("./node_modules/pixi-gl-core/src/index.js"),I=i(A),D=r("./node_modules/pixi.js/lib/core/const.js"),L=0,N=function(e){function t(r,i,s){n(this,t);var a=o(this,e.call(this,"WebGL",r,i,s));return a.legacy=a.options.legacy,a.legacy&&(I.default.VertexArrayObject.FORCE_NATIVE=!0),a.type=D.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 h.default(a),a.stencilManager=new d.default(a),a.emptyRenderer=new g.default(a),a.currentRenderer=a.emptyRenderer,a.textureManager=null,a.filterManager=null,a.initPlugins(),a.options.context&&(0,C.default)(a.options.context),a.gl=a.options.context||I.default.createContext(a.view,a._contextOptions),a.CONTEXT_UID=L++,a.state=new S.default(a.gl),a.renderingToScreen=!0,a.boundTextures=null,a._activeShader=null,a._activeVao=null,a._activeRenderTarget=null,a._initContext(),a.drawModes=(0,M.default)(a.gl),a._nextTextureLocation=0,a.setBlendMode(0),a}return s(t,e),t.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 p.default(this),this.textureGC=new E.default(this),this.state.resetToDefault(),this.rootRenderTarget=new _.default(e,this.width,this.height,null,this.resolution,!0),this.rootRenderTarget.clearColor=this._backgroundColorRgba,this.bindRenderTarget(this.rootRenderTarget);var r=new I.default.GLTexture.fromData(e,null,1,1),i={_glTextures:{}};i._glTextures[this.CONTEXT_UID]={};for(var n=0;n<t;n++){var o=new T.default;o._glTextures[this.CONTEXT_UID]=r,this.boundTextures[n]=i,this.emptyTextures[n]=o,this.bindTexture(null,n)}this.emit("context",e),this.resize(this.screen.width,this.screen.height)},t.prototype.render=function(e,t,r,i,n){if(this.renderingToScreen=!t,this.emit("prerender"),this.gl&&!this.gl.isContextLost()){if(this._nextTextureLocation=0,t||(this._lastObjectRendered=e),!n){var o=e.parent;e.parent=this._tempDisplayObjectParent,e.updateTransform(),e.parent=o}this.bindRenderTexture(t,i),this.currentRenderer.start(),(void 0!==r?r:this.clearBeforeRender)&&this._activeRenderTarget.clear(),e.renderWebGL(this),this.currentRenderer.flush(),this.textureGC.update(),this.emit("postrender")}},t.prototype.setObjectRenderer=function(e){this.currentRenderer!==e&&(this.currentRenderer.stop(),this.currentRenderer=e,this.currentRenderer.start())},t.prototype.flush=function(){this.setObjectRenderer(this.emptyRenderer)},t.prototype.resize=function(e,t){u.default.prototype.resize.call(this,e,t),this.rootRenderTarget.resize(e,t),this._activeRenderTarget===this.rootRenderTarget&&(this.rootRenderTarget.activate(),this._activeShader&&(this._activeShader.uniforms.projectionMatrix=this.rootRenderTarget.projectionMatrix.toArray(!0)))},t.prototype.setBlendMode=function(e){this.state.setBlendMode(e)},t.prototype.clear=function(e){this._activeRenderTarget.clear(e)},t.prototype.setTransform=function(e){this._activeRenderTarget.transform=e},t.prototype.clearRenderTexture=function(e,t){var r=e.baseTexture,i=r._glRenderTargets[this.CONTEXT_UID];return i&&i.clear(t),this},t.prototype.bindRenderTexture=function(e,t){var r=void 0;if(e){var i=e.baseTexture;i._glRenderTargets[this.CONTEXT_UID]||this.textureManager.updateTexture(i,0),this.unbindTexture(i),r=i._glRenderTargets[this.CONTEXT_UID],r.setFrame(e.frame)}else r=this.rootRenderTarget;return r.transform=t,this.bindRenderTarget(r),this},t.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},t.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},t.prototype.bindTexture=function(e,t,r){if(e=e||this.emptyTextures[t],e=e.baseTexture||e,e.touched=this.textureGC.count,r)t=t||0;else{for(var i=0;i<this.boundTextures.length;i++)if(this.boundTextures[i]===e)return i;void 0===t&&(this._nextTextureLocation++,this._nextTextureLocation%=this.boundTextures.length,t=this.boundTextures.length-this._nextTextureLocation-1)}var n=this.gl,o=e._glTextures[this.CONTEXT_UID];return o?(this.boundTextures[t]=e,n.activeTexture(n.TEXTURE0+t),n.bindTexture(n.TEXTURE_2D,o.texture)):this.textureManager.updateTexture(e,t),t},t.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},t.prototype.createVao=function(){return new I.default.VertexArrayObject(this.gl,this.state.attribState)},t.prototype.bindVao=function(e){return this._activeVao===e?this:(e?e.bind():this._activeVao&&this._activeVao.unbind(),this._activeVao=e,this)},t.prototype.reset=function(){return this.setObjectRenderer(this.emptyRenderer),this._activeShader=null,this._activeRenderTarget=this.rootRenderTarget,this.rootRenderTarget.activate(),this.state.resetToDefault(),this},t.prototype.handleContextLost=function(e){e.preventDefault()},t.prototype.handleContextRestored=function(){this.textureManager.removeAll(),this.filterManager.destroy(!0),this._initContext()},t.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},t}(u.default);t.default=N,R.pluginTarget.mixin(N)},"./node_modules/pixi.js/lib/core/renderers/webgl/WebGLState.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var n=r("./node_modules/pixi.js/lib/core/renderers/webgl/utils/mapWebGLBlendModesToPixi.js"),o=function(e){return e&&e.__esModule?e:{default:e}}(n),s=function(){function e(t){i(this,e),this.activeState=new Uint8Array(16),this.defaultState=new Uint8Array(16),this.defaultState[0]=1,this.stackIndex=0,this.stack=[],this.gl=t,this.maxAttribs=t.getParameter(t.MAX_VERTEX_ATTRIBS),this.attribState={tempAttribState:new Array(this.maxAttribs),attribState:new Array(this.maxAttribs)},this.blendModes=(0,o.default)(t),this.nativeVaoExtension=t.getExtension("OES_vertex_array_object")||t.getExtension("MOZ_OES_vertex_array_object")||t.getExtension("WEBKIT_OES_vertex_array_object")}return e.prototype.push=function(){var e=this.stack[this.stackIndex];e||(e=this.stack[this.stackIndex]=new Uint8Array(16)),++this.stackIndex;for(var t=0;t<this.activeState.length;t++)e[t]=this.activeState[t]},e.prototype.pop=function(){var e=this.stack[--this.stackIndex];this.setState(e)},e.prototype.setState=function(e){this.setBlend(e[0]),this.setDepthTest(e[1]),this.setFrontFace(e[2]),this.setCullFace(e[3]),this.setBlendMode(e[4])},e.prototype.setBlend=function(e){e=e?1:0,this.activeState[0]!==e&&(this.activeState[0]=e,this.gl[e?"enable":"disable"](this.gl.BLEND))},e.prototype.setBlendMode=function(e){if(e!==this.activeState[4]){this.activeState[4]=e;var t=this.blendModes[e];2===t.length?this.gl.blendFunc(t[0],t[1]):this.gl.blendFuncSeparate(t[0],t[1],t[2],t[3])}},e.prototype.setDepthTest=function(e){e=e?1:0,this.activeState[1]!==e&&(this.activeState[1]=e,this.gl[e?"enable":"disable"](this.gl.DEPTH_TEST))},e.prototype.setCullFace=function(e){e=e?1:0,this.activeState[3]!==e&&(this.activeState[3]=e,this.gl[e?"enable":"disable"](this.gl.CULL_FACE))},e.prototype.setFrontFace=function(e){e=e?1:0,this.activeState[2]!==e&&(this.activeState[2]=e,this.gl.frontFace(this.gl[e?"CW":"CCW"]))},e.prototype.resetAttributes=function(){for(var e=0;e<this.attribState.tempAttribState.length;e++)this.attribState.tempAttribState[e]=0;for(var t=0;t<this.attribState.attribState.length;t++)this.attribState.attribState[t]=0;for(var r=1;r<this.maxAttribs;r++)this.gl.disableVertexAttribArray(r)},e.prototype.resetToDefault=function(){this.nativeVaoExtension&&this.nativeVaoExtension.bindVertexArrayOES(null),this.resetAttributes();for(var e=0;e<this.activeState.length;++e)this.activeState[e]=32;this.gl.pixelStorei(this.gl.UNPACK_FLIP_Y_WEBGL,!1),this.setState(this.defaultState)},e}();t.default=s},"./node_modules/pixi.js/lib/core/renderers/webgl/filters/Filter.js":function(e,t,r){"use strict";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")}t.__esModule=!0;var o=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}}(),s=r("./node_modules/pixi.js/lib/core/renderers/webgl/filters/extractUniformsFromSrc.js"),a=i(s),u=r("./node_modules/pixi.js/lib/core/utils/index.js"),l=r("./node_modules/pixi.js/lib/core/const.js"),h=r("./node_modules/pixi.js/lib/core/settings.js"),c=i(h),d={},f=function(){function e(t,r,i){n(this,e),this.vertexSrc=t||e.defaultVertexSrc,this.fragmentSrc=r||e.defaultFragmentSrc,this._blendMode=l.BLEND_MODES.NORMAL,this.uniformData=i||(0,a.default)(this.vertexSrc,this.fragmentSrc,"projectionMatrix|uSampler"),this.uniforms={};for(var o in this.uniformData)this.uniforms[o]=this.uniformData[o].value,this.uniformData[o].type&&(this.uniformData[o].type=this.uniformData[o].type.toLowerCase());this.glShaders={},d[this.vertexSrc+this.fragmentSrc]||(d[this.vertexSrc+this.fragmentSrc]=(0,u.uid)()),this.glShaderKey=d[this.vertexSrc+this.fragmentSrc],this.padding=4,this.resolution=c.default.RESOLUTION,this.enabled=!0,this.autoFit=!0}return e.prototype.apply=function(e,t,r,i,n){e.applyFilter(this,t,r,i)},o(e,[{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")}}]),e}();t.default=f},"./node_modules/pixi.js/lib/core/renderers/webgl/filters/extractUniformsFromSrc.js":function(e,t,r){"use strict";function i(e,t,r){var i=n(e),o=n(t);return Object.assign(i,o)}function n(e){for(var t=new RegExp("^(projectionMatrix|uSampler|filterArea|filterClamp)$"),r={},i=void 0,n=e.replace(/\s+/g," ").split(/\s*;\s*/),o=0;o<n.length;o++){var s=n[o].trim();if(s.indexOf("uniform")>-1){var u=s.split(" "),l=u[1],h=u[2],c=1;h.indexOf("[")>-1&&(i=h.split(/\[|]/),h=i[0],c*=Number(i[1])),h.match(t)||(r[h]={value:a(l,c),name:h,type:l})}}return r}t.__esModule=!0,t.default=i;var o=r("./node_modules/pixi-gl-core/src/index.js"),s=function(e){return e&&e.__esModule?e:{default:e}}(o),a=s.default.shader.defaultValue},"./node_modules/pixi.js/lib/core/renderers/webgl/filters/filterTransforms.js":function(e,t,r){"use strict";function i(e,t,r){var i=e.identity();return i.translate(t.x/r.width,t.y/r.height),i.scale(r.width,r.height),i}function n(e,t,r){var i=e.identity();i.translate(t.x/r.width,t.y/r.height);var n=r.width/t.width,o=r.height/t.height;return i.scale(n,o),i}function o(e,t,r,i){var n=i._texture.baseTexture,o=e.set(r.width,0,0,r.height,t.x,t.y),a=i.worldTransform.copy(s.Matrix.TEMP_MATRIX);return a.invert(),o.prepend(a),o.scale(1/n.width,1/n.height),o.translate(i.anchor.x,i.anchor.y),o}t.__esModule=!0,t.calculateScreenSpaceMatrix=i,t.calculateNormalizedScreenSpaceMatrix=n,t.calculateSpriteMatrix=o;var s=r("./node_modules/pixi.js/lib/core/math/index.js")},"./node_modules/pixi.js/lib/core/renderers/webgl/filters/spriteMask/SpriteMaskFilter.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(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)}t.__esModule=!0;var s=r("./node_modules/pixi.js/lib/core/renderers/webgl/filters/Filter.js"),a=function(e){return e&&e.__esModule?e:{default:e}}(s),u=r("./node_modules/pixi.js/lib/core/math/index.js"),l=(r("./node_modules/path-browserify/index.js"),function(e){function t(r){i(this,t);var o=new u.Matrix,s=n(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 r.renderable=!1,s.maskSprite=r,s.maskMatrix=o,s}return o(t,e),t.prototype.apply=function(e,t,r){var i=this.maskSprite;this.uniforms.mask=i._texture,this.uniforms.otherMatrix=e.calculateSpriteMatrix(this.maskMatrix,i),this.uniforms.alpha=i.worldAlpha,e.applyFilter(this,t,r)},t}(a.default));t.default=l},"./node_modules/pixi.js/lib/core/renderers/webgl/managers/FilterManager.js":function(e,t,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function n(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)}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var a=r("./node_modules/pixi.js/lib/core/renderers/webgl/managers/WebGLManager.js"),u=i(a),l=r("./node_modules/pixi.js/lib/core/renderers/webgl/utils/RenderTarget.js"),h=i(l),c=r("./node_modules/pixi.js/lib/core/renderers/webgl/utils/Quad.js"),d=i(c),f=r("./node_modules/pixi.js/lib/core/math/index.js"),p=r("./node_modules/pixi.js/lib/core/Shader.js"),m=i(p),_=r("./node_modules/pixi.js/lib/core/renderers/webgl/filters/filterTransforms.js"),v=function(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}(_),g=r("./node_modules/bit-twiddle/twiddle.js"),y=i(g),x=function e(){s(this,e),this.renderTarget=null,this.sourceFrame=new f.Rectangle,this.destinationFrame=new f.Rectangle,this.filters=[],this.target=null,this.resolution=1},b=function(e){function t(r){s(this,t);var i=n(this,e.call(this,r));return i.gl=i.renderer.gl,i.quad=new d.default(i.gl,r.state.attribState),i.shaderCache={},i.pool={},i.filterData=null,i.managedFilters=[],i}return o(t,e),t.prototype.pushFilter=function(e,t){var r=this.renderer,i=this.filterData;if(!i){i=this.renderer._activeRenderTarget.filterStack;var n=new x;n.sourceFrame=n.destinationFrame=this.renderer._activeRenderTarget.size,n.renderTarget=r._activeRenderTarget,this.renderer._activeRenderTarget.filterData=i={index:0,stack:[n]},this.filterData=i}var o=i.stack[++i.index];o||(o=i.stack[i.index]=new x);var s=t[0].resolution,a=0|t[0].padding,u=e.filterArea||e.getBounds(!0),l=o.sourceFrame,h=o.destinationFrame;l.x=(u.x*s|0)/s,l.y=(u.y*s|0)/s,l.width=(u.width*s|0)/s,l.height=(u.height*s|0)/s,i.stack[0].renderTarget.transform||t[0].autoFit&&l.fit(i.stack[0].destinationFrame),l.pad(a),h.width=l.width,h.height=l.height;var c=this.getPotRenderTarget(r.gl,l.width,l.height,s);o.target=e,o.filters=t,o.resolution=s,o.renderTarget=c,c.setFrame(h,l),r.bindRenderTarget(c),c.clear()},t.prototype.popFilter=function(){var e=this.filterData,t=e.stack[e.index-1],r=e.stack[e.index];this.quad.map(r.renderTarget.size,r.sourceFrame).upload();var i=r.filters;if(1===i.length)i[0].apply(this,r.renderTarget,t.renderTarget,!1,r),this.freePotRenderTarget(r.renderTarget);else{var n=r.renderTarget,o=this.getPotRenderTarget(this.renderer.gl,r.sourceFrame.width,r.sourceFrame.height,r.resolution);o.setFrame(r.destinationFrame,r.sourceFrame),o.clear();var s=0;for(s=0;s<i.length-1;++s){i[s].apply(this,n,o,!0,r);var a=n;n=o,o=a}i[s].apply(this,n,t.renderTarget,!1,r),this.freePotRenderTarget(n),this.freePotRenderTarget(o)}0===--e.index&&(this.filterData=null)},t.prototype.applyFilter=function(e,t,r,i){var n=this.renderer,o=n.gl,s=e.glShaders[n.CONTEXT_UID];s||(e.glShaderKey?(s=this.shaderCache[e.glShaderKey])||(s=new m.default(this.gl,e.vertexSrc,e.fragmentSrc),e.glShaders[n.CONTEXT_UID]=this.shaderCache[e.glShaderKey]=s):s=e.glShaders[n.CONTEXT_UID]=new m.default(this.gl,e.vertexSrc,e.fragmentSrc),this.managedFilters.push(e),n.bindVao(null),this.quad.initVao(s)),n.bindVao(this.quad.vao),n.bindRenderTarget(r),i&&(o.disable(o.SCISSOR_TEST),n.clear(),o.enable(o.SCISSOR_TEST)),r===n.maskManager.scissorRenderTarget&&n.maskManager.pushScissorMask(null,n.maskManager.scissorData),n.bindShader(s);var a=this.renderer.emptyTextures[0];this.renderer.boundTextures[0]=a,this.syncUniforms(s,e),n.state.setBlendMode(e.blendMode),o.activeTexture(o.TEXTURE0),o.bindTexture(o.TEXTURE_2D,t.texture.texture),this.quad.vao.draw(this.renderer.gl.TRIANGLES,6,0),o.bindTexture(o.TEXTURE_2D,a._glTextures[this.renderer.CONTEXT_UID].texture)},t.prototype.syncUniforms=function(e,t){var r=t.uniformData,i=t.uniforms,n=1,o=void 0;if(e.uniforms.filterArea){o=this.filterData.stack[this.filterData.index];var s=e.uniforms.filterArea;s[0]=o.renderTarget.size.width,s[1]=o.renderTarget.size.height,s[2]=o.sourceFrame.x,s[3]=o.sourceFrame.y,e.uniforms.filterArea=s}if(e.uniforms.filterClamp){o=o||this.filterData.stack[this.filterData.index];var a=e.uniforms.filterClamp;a[0]=0,a[1]=0,a[2]=(o.sourceFrame.width-1)/o.renderTarget.size.width,a[3]=(o.sourceFrame.height-1)/o.renderTarget.size.height,e.uniforms.filterClamp=a}for(var u in r){var l=r[u].type;if("sampler2d"===l&&0!==i[u]){if(i[u].baseTexture)e.uniforms[u]=this.renderer.bindTexture(i[u].baseTexture,n);else{e.uniforms[u]=n;var h=this.renderer.gl;this.renderer.boundTextures[n]=this.renderer.emptyTextures[n],h.activeTexture(h.TEXTURE0+n),i[u].texture.bind()}n++}else if("mat3"===l)void 0!==i[u].a?e.uniforms[u]=i[u].toArray(!0):e.uniforms[u]=i[u];else if("vec2"===l)if(void 0!==i[u].x){var c=e.uniforms[u]||new Float32Array(2);c[0]=i[u].x,c[1]=i[u].y,e.uniforms[u]=c}else e.uniforms[u]=i[u];else"float"===l?e.uniforms.data[u].value!==r[u]&&(e.uniforms[u]=i[u]):e.uniforms[u]=i[u]}},t.prototype.getRenderTarget=function(e,t){var r=this.filterData.stack[this.filterData.index],i=this.getPotRenderTarget(this.renderer.gl,r.sourceFrame.width,r.sourceFrame.height,t||r.resolution);return i.setFrame(r.destinationFrame,r.sourceFrame),i},t.prototype.returnRenderTarget=function(e){this.freePotRenderTarget(e)},t.prototype.calculateScreenSpaceMatrix=function(e){var t=this.filterData.stack[this.filterData.index];return v.calculateScreenSpaceMatrix(e,t.sourceFrame,t.renderTarget.size)},t.prototype.calculateNormalizedScreenSpaceMatrix=function(e){var t=this.filterData.stack[this.filterData.index];return v.calculateNormalizedScreenSpaceMatrix(e,t.sourceFrame,t.renderTarget.size,t.destinationFrame)},t.prototype.calculateSpriteMatrix=function(e,t){var r=this.filterData.stack[this.filterData.index];return v.calculateSpriteMatrix(e,r.sourceFrame,r.renderTarget.size,t)},t.prototype.destroy=function(){for(var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.renderer,r=this.managedFilters,i=0;i<r.length;i++)e||r[i].glShaders[t.CONTEXT_UID].destroy(),delete r[i].glShaders[t.CONTEXT_UID];this.shaderCache={},e?this.pool={}:this.emptyPool()},t.prototype.getPotRenderTarget=function(e,t,r,i){t=y.default.nextPow2(t*i),r=y.default.nextPow2(r*i);var n=(65535&t)<<16|65535&r;this.pool[n]||(this.pool[n]=[]);var o=this.pool[n].pop();if(!o){var s=this.renderer.boundTextures[0];e.activeTexture(e.TEXTURE0),o=new h.default(e,t,r,null,1),e.bindTexture(e.TEXTURE_2D,s._glTextures[this.renderer.CONTEXT_UID].texture)}return o.resolution=i,o.defaultFrame.width=o.size.width=t/i,o.defaultFrame.height=o.size.height=r/i,o},t.prototype.emptyPool=function(){for(var e in this.pool){var t=this.pool[e];if(t)for(var r=0;r<t.length;r++)t[r].destroy(!0)}this.pool={}},t.prototype.freePotRenderTarget=function(e){var t=e.size.width*e.resolution,r=e.size.height*e.resolution,i=(65535&t)<<16|65535&r;this.pool[i].push(e)},t}(u.default);t.default=b},"./node_modules/pixi.js/lib/core/renderers/webgl/managers/MaskManager.js":function(e,t,r){"use strict";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 o(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)}t.__esModule=!0;var a=r("./node_modules/pixi.js/lib/core/renderers/webgl/managers/WebGLManager.js"),u=i(a),l=r("./node_modules/pixi.js/lib/core/renderers/webgl/filters/spriteMask/SpriteMaskFilter.js"),h=i(l),c=function(e){function t(r){n(this,t);var i=o(this,e.call(this,r));return i.scissor=!1,i.scissorData=null,i.scissorRenderTarget=null,i.enableScissor=!0,i.alphaMaskPool=[],i.alphaMaskIndex=0,i}return s(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,i=Math.atan2(r.b,r.a);i=Math.round(i*(180/Math.PI)),i%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 h.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,i=t.getBounds();i.fit(r.size),t.renderable=!1,this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST);var n=this.renderer.resolution;this.renderer.gl.scissor(i.x*n,(r.root?r.size.height-i.y-i.height:i.y)*n,i.width*n,i.height*n),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}(u.default);t.default=c},"./node_modules/pixi.js/lib/core/renderers/webgl/managers/StencilManager.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(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)}t.__esModule=!0;var s=r("./node_modules/pixi.js/lib/core/renderers/webgl/managers/WebGLManager.js"),a=function(e){return e&&e.__esModule?e:{default:e}}(s),u=function(e){function t(r){i(this,t);var o=n(this,e.call(this,r));return o.stencilMaskStack=null,o}return o(t,e),t.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)},t.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()},t.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())},t.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)},t.prototype._getBitwiseMask=function(){return(1<<this.stencilMaskStack.length)-1},t.prototype.destroy=function(){a.default.prototype.destroy.call(this),this.stencilMaskStack.stencilStack=null},t}(a.default);t.default=u},"./node_modules/pixi.js/lib/core/renderers/webgl/managers/WebGLManager.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var n=function(){function e(t){i(this,e),this.renderer=t,this.renderer.on("context",this.onContextChange,this)}return e.prototype.onContextChange=function(){},e.prototype.destroy=function(){this.renderer.off("context",this.onContextChange,this),this.renderer=null},e}();t.default=n},"./node_modules/pixi.js/lib/core/renderers/webgl/utils/ObjectRenderer.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(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)}t.__esModule=!0;var s=r("./node_modules/pixi.js/lib/core/renderers/webgl/managers/WebGLManager.js"),a=function(e){return e&&e.__esModule?e:{default:e}}(s),u=function(e){function t(){return i(this,t),n(this,e.apply(this,arguments))}return o(t,e),t.prototype.start=function(){},t.prototype.stop=function(){this.flush()},t.prototype.flush=function(){},t.prototype.render=function(e){},t}(a.default);t.default=u},"./node_modules/pixi.js/lib/core/renderers/webgl/utils/Quad.js":function(e,t,r){"use strict";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")}t.__esModule=!0;var o=r("./node_modules/pixi-gl-core/src/index.js"),s=i(o),a=r("./node_modules/pixi.js/lib/core/utils/createIndicesForQuads.js"),u=i(a),l=function(){function e(t,r){n(this,e),this.gl=t,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 i=0;i<4;i++)this.interleaved[4*i]=this.vertices[2*i],this.interleaved[4*i+1]=this.vertices[2*i+1],this.interleaved[4*i+2]=this.uvs[2*i],this.interleaved[4*i+3]=this.uvs[2*i+1];this.indices=(0,u.default)(1),this.vertexBuffer=s.default.GLBuffer.createVertexBuffer(t,this.interleaved,t.STATIC_DRAW),this.indexBuffer=s.default.GLBuffer.createIndexBuffer(t,this.indices,t.STATIC_DRAW),this.vao=new s.default.VertexArrayObject(t,r)}return e.prototype.initVao=function(e){this.vao.clear().addIndex(this.indexBuffer).addAttribute(this.vertexBuffer,e.attributes.aVertexPosition,this.gl.FLOAT,!1,16,0).addAttribute(this.vertexBuffer,e.attributes.aTextureCoord,this.gl.FLOAT,!1,16,8)},e.prototype.map=function(e,t){var r=0,i=0;return this.uvs[0]=r,this.uvs[1]=i,this.uvs[2]=r+t.width/e.width,this.uvs[3]=i,this.uvs[4]=r+t.width/e.width,this.uvs[5]=i+t.height/e.height,this.uvs[6]=r,this.uvs[7]=i+t.height/e.height,r=t.x,i=t.y,this.vertices[0]=r,this.vertices[1]=i,this.vertices[2]=r+t.width,this.vertices[3]=i,this.vertices[4]=r+t.width,this.vertices[5]=i+t.height,this.vertices[6]=r,this.vertices[7]=i+t.height,this},e.prototype.upload=function(){for(var e=0;e<4;e++)this.interleaved[4*e]=this.vertices[2*e],this.interleaved[4*e+1]=this.vertices[2*e+1],this.interleaved[4*e+2]=this.uvs[2*e],this.interleaved[4*e+3]=this.uvs[2*e+1];return this.vertexBuffer.upload(this.interleaved),this},e.prototype.destroy=function(){var e=this.gl;e.deleteBuffer(this.vertexBuffer),e.deleteBuffer(this.indexBuffer)},e}();t.default=l},"./node_modules/pixi.js/lib/core/renderers/webgl/utils/RenderTarget.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var n=r("./node_modules/pixi.js/lib/core/math/index.js"),o=r("./node_modules/pixi.js/lib/core/const.js"),s=r("./node_modules/pixi.js/lib/core/settings.js"),a=function(e){return e&&e.__esModule?e:{default:e}}(s),u=r("./node_modules/pixi-gl-core/src/index.js"),l=function(){function e(t,r,s,l,h,c){i(this,e),this.gl=t,this.frameBuffer=null,this.texture=null,this.clearColor=[0,0,0,0],this.size=new n.Rectangle(0,0,1,1),this.resolution=h||a.default.RESOLUTION,this.projectionMatrix=new n.Matrix,this.transform=null,this.frame=null,this.defaultFrame=new n.Rectangle,this.destinationFrame=null,this.sourceFrame=null,this.stencilBuffer=null,this.stencilMaskStack=[],this.filterData=null,this.scaleMode=void 0!==l?l:a.default.SCALE_MODE,this.root=c,this.root?(this.frameBuffer=new u.GLFramebuffer(t,100,100),this.frameBuffer.framebuffer=null):(this.frameBuffer=u.GLFramebuffer.createRGBA(t,100,100),this.scaleMode===o.SCALE_MODES.NEAREST?this.frameBuffer.texture.enableNearestScaling():this.frameBuffer.texture.enableLinearScaling(),this.texture=this.frameBuffer.texture),this.setFrame(),this.resize(r,s)}return e.prototype.clear=function(e){var t=e||this.clearColor;this.frameBuffer.clear(t[0],t[1],t[2],t[3])},e.prototype.attachStencilBuffer=function(){this.root||this.frameBuffer.enableStencil()},e.prototype.setFrame=function(e,t){this.destinationFrame=e||this.destinationFrame||this.defaultFrame,this.sourceFrame=t||this.sourceFrame||this.destinationFrame},e.prototype.activate=function(){var e=this.gl;this.frameBuffer.bind(),this.calculateProjection(this.destinationFrame,this.sourceFrame),this.transform&&this.projectionMatrix.append(this.transform),this.destinationFrame!==this.sourceFrame?(e.enable(e.SCISSOR_TEST),e.scissor(0|this.destinationFrame.x,0|this.destinationFrame.y,this.destinationFrame.width*this.resolution|0,this.destinationFrame.height*this.resolution|0)):e.disable(e.SCISSOR_TEST),e.viewport(0|this.destinationFrame.x,0|this.destinationFrame.y,this.destinationFrame.width*this.resolution|0,this.destinationFrame.height*this.resolution|0)},e.prototype.calculateProjection=function(e,t){var r=this.projectionMatrix;t=t||e,r.identity(),this.root?(r.a=1/e.width*2,r.d=-1/e.height*2,r.tx=-1-t.x*r.a,r.ty=1-t.y*r.d):(r.a=1/e.width*2,r.d=1/e.height*2,r.tx=-1-t.x*r.a,r.ty=-1-t.y*r.d)},e.prototype.resize=function(e,t){if(e|=0,t|=0,this.size.width!==e||this.size.height!==t){this.size.width=e,this.size.height=t,this.defaultFrame.width=e,this.defaultFrame.height=t,this.frameBuffer.resize(e*this.resolution,t*this.resolution);var r=this.frame||this.size;this.calculateProjection(r)}},e.prototype.destroy=function(){this.frameBuffer.destroy(),this.frameBuffer=null,this.texture=null},e}();t.default=l},"./node_modules/pixi.js/lib/core/renderers/webgl/utils/checkMaxIfStatmentsInShader.js":function(e,t,r){"use strict";function i(e,t){var r=!t;if(0===e)throw new Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");if(r){var i=document.createElement("canvas");i.width=1,i.height=1,t=s.default.createContext(i)}for(var o=t.createShader(t.FRAGMENT_SHADER);;){var u=a.replace(/%forloop%/gi,n(e));if(t.shaderSource(o,u),t.compileShader(o),t.getShaderParameter(o,t.COMPILE_STATUS))break;e=e/2|0}return r&&t.getExtension("WEBGL_lose_context")&&t.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}t.__esModule=!0,t.default=i;var o=r("./node_modules/pixi-gl-core/src/index.js"),s=function(e){return e&&e.__esModule?e:{default:e}}(o),a=["precision mediump float;","void main(void){","float test = 0.1;","%forloop%","gl_FragColor = vec4(0.0);","}"].join("\n")},"./node_modules/pixi.js/lib/core/renderers/webgl/utils/mapWebGLBlendModesToPixi.js":function(e,t,r){"use strict";function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return t[n.BLEND_MODES.NORMAL]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[n.BLEND_MODES.ADD]=[e.ONE,e.DST_ALPHA],t[n.BLEND_MODES.MULTIPLY]=[e.DST_COLOR,e.ONE_MINUS_SRC_ALPHA],t[n.BLEND_MODES.SCREEN]=[e.ONE,e.ONE_MINUS_SRC_COLOR],t[n.BLEND_MODES.OVERLAY]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[n.BLEND_MODES.DARKEN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[n.BLEND_MODES.LIGHTEN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[n.BLEND_MODES.COLOR_DODGE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[n.BLEND_MODES.COLOR_BURN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[n.BLEND_MODES.HARD_LIGHT]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[n.BLEND_MODES.SOFT_LIGHT]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[n.BLEND_MODES.DIFFERENCE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[n.BLEND_MODES.EXCLUSION]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[n.BLEND_MODES.HUE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[n.BLEND_MODES.SATURATION]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[n.BLEND_MODES.COLOR]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[n.BLEND_MODES.LUMINOSITY]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[n.BLEND_MODES.NORMAL_NPM]=[e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[n.BLEND_MODES.ADD_NPM]=[e.SRC_ALPHA,e.DST_ALPHA,e.ONE,e.DST_ALPHA],t[n.BLEND_MODES.SCREEN_NPM]=[e.SRC_ALPHA,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE_MINUS_SRC_COLOR],t}t.__esModule=!0,t.default=i;var n=r("./node_modules/pixi.js/lib/core/const.js")},"./node_modules/pixi.js/lib/core/renderers/webgl/utils/mapWebGLDrawModesToPixi.js":function(e,t,r){"use strict";function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t[n.DRAW_MODES.POINTS]=e.POINTS,t[n.DRAW_MODES.LINES]=e.LINES,t[n.DRAW_MODES.LINE_LOOP]=e.LINE_LOOP,t[n.DRAW_MODES.LINE_STRIP]=e.LINE_STRIP,t[n.DRAW_MODES.TRIANGLES]=e.TRIANGLES,t[n.DRAW_MODES.TRIANGLE_STRIP]=e.TRIANGLE_STRIP,t[n.DRAW_MODES.TRIANGLE_FAN]=e.TRIANGLE_FAN,t}t.__esModule=!0,t.default=i;var n=r("./node_modules/pixi.js/lib/core/const.js")},"./node_modules/pixi.js/lib/core/renderers/webgl/utils/validateContext.js":function(e,t,r){"use strict";function i(e){e.getContextAttributes().stencil||console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly")}t.__esModule=!0,t.default=i},"./node_modules/pixi.js/lib/core/settings.js":function(e,t,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var n=r("./node_modules/pixi.js/lib/core/utils/maxRecommendedTextures.js"),o=i(n),s=r("./node_modules/pixi.js/lib/core/utils/canUploadSameBuffer.js"),a=i(s);t.default={TARGET_FPMS:.06,MIPMAP_TEXTURES:!0,RESOLUTION:1,FILTER_RESOLUTION:1,SPRITE_MAX_TEXTURES:(0,o.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,a.default)()}},"./node_modules/pixi.js/lib/core/sprites/Sprite.js":function(e,t,r){"use strict";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 o(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)}t.__esModule=!0;var a=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}}(),u=r("./node_modules/pixi.js/lib/core/math/index.js"),l=r("./node_modules/pixi.js/lib/core/utils/index.js"),h=r("./node_modules/pixi.js/lib/core/const.js"),c=r("./node_modules/pixi.js/lib/core/textures/Texture.js"),d=i(c),f=r("./node_modules/pixi.js/lib/core/display/Container.js"),p=i(f),m=new u.Point,_=function(e){function t(r){n(this,t);var i=o(this,e.call(this));return i._anchor=new u.ObservablePoint(i._onAnchorUpdate,i),i._texture=null,i._width=0,i._height=0,i._tint=null,i._tintRGB=null,i.tint=16777215,i.blendMode=h.BLEND_MODES.NORMAL,i.shader=null,i.cachedTint=16777215,i.texture=r||d.default.EMPTY,i.vertexData=new Float32Array(8),i.vertexTrimmedData=null,i._transformID=-1,i._textureID=-1,i._transformTrimmedID=-1,i._textureTrimmedID=-1,i.pluginName="sprite",i}return s(t,e),t.prototype._onTextureUpdate=function(){this._textureID=-1,this._textureTrimmedID=-1,this.cachedTint=16777215,this._width&&(this.scale.x=(0,l.sign)(this.scale.x)*this._width/this._texture.orig.width),this._height&&(this.scale.y=(0,l.sign)(this.scale.y)*this._height/this._texture.orig.height)},t.prototype._onAnchorUpdate=function(){this._transformID=-1,this._transformTrimmedID=-1},t.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 e=this._texture,t=this.transform.worldTransform,r=t.a,i=t.b,n=t.c,o=t.d,s=t.tx,a=t.ty,u=this.vertexData,l=e.trim,h=e.orig,c=this._anchor,d=0,f=0,p=0,m=0;l?(f=l.x-c._x*h.width,d=f+l.width,m=l.y-c._y*h.height,p=m+l.height):(f=-c._x*h.width,d=f+h.width,m=-c._y*h.height,p=m+h.height),u[0]=r*f+n*m+s,u[1]=o*m+i*f+a,u[2]=r*d+n*m+s,u[3]=o*m+i*d+a,u[4]=r*d+n*p+s,u[5]=o*p+i*d+a,u[6]=r*f+n*p+s,u[7]=o*p+i*f+a}},t.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 e=this._texture,t=this.vertexTrimmedData,r=e.orig,i=this._anchor,n=this.transform.worldTransform,o=n.a,s=n.b,a=n.c,u=n.d,l=n.tx,h=n.ty,c=-i._x*r.width,d=c+r.width,f=-i._y*r.height,p=f+r.height;t[0]=o*c+a*f+l,t[1]=u*f+s*c+h,t[2]=o*d+a*f+l,t[3]=u*f+s*d+h,t[4]=o*d+a*p+l,t[5]=u*p+s*d+h,t[6]=o*c+a*p+l,t[7]=u*p+s*c+h},t.prototype._renderWebGL=function(e){this.calculateVertices(),e.setObjectRenderer(e.plugins[this.pluginName]),e.plugins[this.pluginName].render(this)},t.prototype._renderCanvas=function(e){e.plugins[this.pluginName].render(this)},t.prototype._calculateBounds=function(){var e=this._texture.trim,t=this._texture.orig;!e||e.width===t.width&&e.height===t.height?(this.calculateVertices(),this._bounds.addQuad(this.vertexData)):(this.calculateTrimmedVertices(),this._bounds.addQuad(this.vertexTrimmedData))},t.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 u.Rectangle),t=this._localBoundsRect),this._bounds.getRectangle(t)):e.prototype.getLocalBounds.call(this,t)},t.prototype.containsPoint=function(e){this.worldTransform.applyInverse(e,m);var t=this._texture.orig.width,r=this._texture.orig.height,i=-t*this.anchor.x,n=0;return m.x>=i&&m.x<i+t&&(n=-r*this.anchor.y,m.y>=n&&m.y<n+r)},t.prototype.destroy=function(t){if(e.prototype.destroy.call(this,t),this._anchor=null,"boolean"==typeof t?t:t&&t.texture){var r="boolean"==typeof t?t:t&&t.baseTexture;this._texture.destroy(!!r)}this._texture=null,this.shader=null},t.from=function(e){return new t(d.default.from(e))},t.fromFrame=function(e){var r=l.TextureCache[e];if(!r)throw new Error('The frameId "'+e+'" does not exist in the texture cache');return new t(r)},t.fromImage=function(e,r,i){return new t(d.default.fromImage(e,r,i))},a(t,[{key:"width",get:function(){return Math.abs(this.scale.x)*this._texture.orig.width},set:function(e){var t=(0,l.sign)(this.scale.x)||1;this.scale.x=t*e/this._texture.orig.width,this._width=e}},{key:"height",get:function(){return Math.abs(this.scale.y)*this._texture.orig.height},set:function(e){var t=(0,l.sign)(this.scale.y)||1;this.scale.y=t*e/this._texture.orig.height,this._height=e}},{key:"anchor",get:function(){return this._anchor},set:function(e){this._anchor.copy(e)}},{key:"tint",get:function(){return this._tint},set:function(e){this._tint=e,this._tintRGB=(e>>16)+(65280&e)+((255&e)<<16)}},{key:"texture",get:function(){return this._texture},set:function(e){this._texture!==e&&(this._texture=e,this.cachedTint=16777215,this._textureID=-1,this._textureTrimmedID=-1,e&&(e.baseTexture.hasLoaded?this._onTextureUpdate():e.once("update",this._onTextureUpdate,this)))}}]),t}(p.default);t.default=_},"./node_modules/pixi.js/lib/core/sprites/canvas/CanvasSpriteRenderer.js":function(e,t,r){"use strict";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")}t.__esModule=!0;var o=r("./node_modules/pixi.js/lib/core/renderers/canvas/CanvasRenderer.js"),s=i(o),a=r("./node_modules/pixi.js/lib/core/const.js"),u=r("./node_modules/pixi.js/lib/core/math/index.js"),l=r("./node_modules/pixi.js/lib/core/sprites/canvas/CanvasTinter.js"),h=i(l),c=new u.Matrix,d=function(){function e(t){n(this,e),this.renderer=t}return e.prototype.render=function(e){var t=e._texture,r=this.renderer,i=t._frame.width,n=t._frame.height,o=e.transform.worldTransform,s=0,l=0;if(!(t.orig.width<=0||t.orig.height<=0)&&t.baseTexture.source&&(r.setBlendMode(e.blendMode),t.valid)){r.context.globalAlpha=e.worldAlpha;var d=t.baseTexture.scaleMode===a.SCALE_MODES.LINEAR;r.smoothProperty&&r.context[r.smoothProperty]!==d&&(r.context[r.smoothProperty]=d),t.trim?(s=t.trim.width/2+t.trim.x-e.anchor.x*t.orig.width,l=t.trim.height/2+t.trim.y-e.anchor.y*t.orig.height):(s=(.5-e.anchor.x)*t.orig.width,l=(.5-e.anchor.y)*t.orig.height),t.rotate&&(o.copy(c),o=c,u.GroupD8.matrixAppendRotationInv(o,t.rotate,s,l),s=0,l=0),s-=i/2,l-=n/2,r.roundPixels?(r.context.setTransform(o.a,o.b,o.c,o.d,o.tx*r.resolution|0,o.ty*r.resolution|0),s|=0,l|=0):r.context.setTransform(o.a,o.b,o.c,o.d,o.tx*r.resolution,o.ty*r.resolution);var f=t.baseTexture.resolution;16777215!==e.tint?(e.cachedTint===e.tint&&e.tintedTexture.tintId===e._texture._updateID||(e.cachedTint=e.tint,e.tintedTexture=h.default.getTintedTexture(e,e.tint)),r.context.drawImage(e.tintedTexture,0,0,i*f,n*f,s*r.resolution,l*r.resolution,i*r.resolution,n*r.resolution)):r.context.drawImage(t.baseTexture.source,t._frame.x*f,t._frame.y*f,i*f,n*f,s*r.resolution,l*r.resolution,i*r.resolution,n*r.resolution)}},e.prototype.destroy=function(){this.renderer=null},e}();t.default=d,s.default.registerPlugin("sprite",d)},"./node_modules/pixi.js/lib/core/sprites/canvas/CanvasTinter.js":function(e,t,r){"use strict";t.__esModule=!0;var i=r("./node_modules/pixi.js/lib/core/utils/index.js"),n=r("./node_modules/pixi.js/lib/core/renderers/canvas/utils/canUseNewCanvasBlendModes.js"),o=function(e){return e&&e.__esModule?e:{default:e}}(n),s={getTintedTexture:function(e,t){var r=e._texture;t=s.roundColor(t);var i="#"+("00000"+(0|t).toString(16)).substr(-6);r.tintCache=r.tintCache||{};var n=r.tintCache[i],o=void 0;if(n){if(n.tintId===r._updateID)return r.tintCache[i];o=r.tintCache[i]}else o=s.canvas||document.createElement("canvas");if(s.tintMethod(r,t,o),o.tintId=r._updateID,s.convertTintToImage){var a=new Image;a.src=o.toDataURL(),r.tintCache[i]=a}else r.tintCache[i]=o,s.canvas=null;return o},tintWithMultiply:function(e,t,r){var i=r.getContext("2d"),n=e._frame.clone(),o=e.baseTexture.resolution;n.x*=o,n.y*=o,n.width*=o,n.height*=o,r.width=Math.ceil(n.width),r.height=Math.ceil(n.height),i.save(),i.fillStyle="#"+("00000"+(0|t).toString(16)).substr(-6),i.fillRect(0,0,n.width,n.height),i.globalCompositeOperation="multiply",i.drawImage(e.baseTexture.source,n.x,n.y,n.width,n.height,0,0,n.width,n.height),i.globalCompositeOperation="destination-atop",i.drawImage(e.baseTexture.source,n.x,n.y,n.width,n.height,0,0,n.width,n.height),i.restore()},tintWithOverlay:function(e,t,r){var i=r.getContext("2d"),n=e._frame.clone(),o=e.baseTexture.resolution;n.x*=o,n.y*=o,n.width*=o,n.height*=o,r.width=Math.ceil(n.width),r.height=Math.ceil(n.height),i.save(),i.globalCompositeOperation="copy",i.fillStyle="#"+("00000"+(0|t).toString(16)).substr(-6),i.fillRect(0,0,n.width,n.height),i.globalCompositeOperation="destination-atop",i.drawImage(e.baseTexture.source,n.x,n.y,n.width,n.height,0,0,n.width,n.height),i.restore()},tintWithPerPixel:function(e,t,r){var n=r.getContext("2d"),o=e._frame.clone(),s=e.baseTexture.resolution;o.x*=s,o.y*=s,o.width*=s,o.height*=s,r.width=Math.ceil(o.width),r.height=Math.ceil(o.height),n.save(),n.globalCompositeOperation="copy",n.drawImage(e.baseTexture.source,o.x,o.y,o.width,o.height,0,0,o.width,o.height),n.restore();for(var a=(0,i.hex2rgb)(t),u=a[0],l=a[1],h=a[2],c=n.getImageData(0,0,o.width,o.height),d=c.data,f=0;f<d.length;f+=4)d[f+0]*=u,d[f+1]*=l,d[f+2]*=h;n.putImageData(c,0,0)},roundColor:function(e){var t=s.cacheStepsPerColorChannel,r=(0,i.hex2rgb)(e);return r[0]=Math.min(255,r[0]/t*t),r[1]=Math.min(255,r[1]/t*t),r[2]=Math.min(255,r[2]/t*t),(0,i.rgb2hex)(r)},cacheStepsPerColorChannel:8,convertTintToImage:!1,canUseMultiply:(0,o.default)(),tintMethod:0};s.tintMethod=s.canUseMultiply?s.tintWithMultiply:s.tintWithPerPixel,t.default=s},"./node_modules/pixi.js/lib/core/sprites/webgl/BatchBuffer.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var n=function(){function e(t){i(this,e),this.vertices=new ArrayBuffer(t),this.float32View=new Float32Array(this.vertices),this.uint32View=new Uint32Array(this.vertices)}return e.prototype.destroy=function(){this.vertices=null,this.positions=null,this.uvs=null,this.colors=null},e}();t.default=n},"./node_modules/pixi.js/lib/core/sprites/webgl/SpriteRenderer.js":function(e,t,r){"use strict";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 o(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)}t.__esModule=!0;var a=r("./node_modules/pixi.js/lib/core/renderers/webgl/utils/ObjectRenderer.js"),u=i(a),l=r("./node_modules/pixi.js/lib/core/renderers/webgl/WebGLRenderer.js"),h=i(l),c=r("./node_modules/pixi.js/lib/core/utils/createIndicesForQuads.js"),d=i(c),f=r("./node_modules/pixi.js/lib/core/sprites/webgl/generateMultiTextureShader.js"),p=i(f),m=r("./node_modules/pixi.js/lib/core/renderers/webgl/utils/checkMaxIfStatmentsInShader.js"),_=i(m),v=r("./node_modules/pixi.js/lib/core/sprites/webgl/BatchBuffer.js"),g=i(v),y=r("./node_modules/pixi.js/lib/core/settings.js"),x=i(y),b=r("./node_modules/pixi.js/lib/core/utils/index.js"),T=r("./node_modules/pixi-gl-core/src/index.js"),w=i(T),E=r("./node_modules/bit-twiddle/twiddle.js"),j=i(E),S=0,O=0,M=function(e){function t(r){n(this,t);var i=o(this,e.call(this,r));i.vertSize=5,i.vertByteSize=4*i.vertSize,i.size=x.default.SPRITE_BATCH_SIZE,i.buffers=[];for(var s=1;s<=j.default.nextPow2(i.size);s*=2)i.buffers.push(new g.default(4*s*i.vertByteSize));i.indices=(0,d.default)(i.size),i.shader=null,i.currentIndex=0,i.groups=[];for(var a=0;a<i.size;a++)i.groups[a]={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 s(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),x.default.SPRITE_MAX_TEXTURES),this.MAX_TEXTURES=(0,_.default)(this.MAX_TEXTURES,e)),this.shader=(0,p.default)(e,this.MAX_TEXTURES),this.indexBuffer=w.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]=w.default.GLBuffer.createVertexBuffer(e,null,e.STREAM_DRAW),n=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&&n.addAttribute(i,t.aTextureId,e.FLOAT,!1,this.vertByteSize,16),this.vaos[r]=n}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=j.default.nextPow2(this.currentIndex),i=j.default.log2(r),n=this.buffers[i],o=this.sprites,s=this.groups,a=n.float32View,u=n.uint32View,l=this.boundTextures,h=this.renderer.boundTextures,c=this.renderer.textureGC.count,d=0,f=void 0,p=void 0,m=1,_=0,v=s[0],g=void 0,y=void 0,T=b.premultiplyBlendMode[o[0]._texture.baseTexture.premultipliedAlpha?1:0][o[0].blendMode];v.textureCount=0,v.start=0,v.blend=T,S++;var E=void 0;for(E=0;E<t;++E)l[E]=h[E],l[E]._virtalBoundId=E;for(E=0;E<this.currentIndex;++E){var M=o[E];f=M._texture.baseTexture;var P=b.premultiplyBlendMode[Number(f.premultipliedAlpha)][M.blendMode];if(T!==P&&(T=P,p=null,_=t,S++),p!==f&&(p=f,f._enabled!==S)){if(_===t&&(S++,v.size=E-v.start,_=0,v=s[m++],v.blend=T,v.textureCount=0,v.start=E),f.touched=c,-1===f._virtalBoundId)for(var C=0;C<t;++C){var R=(C+O)%t,A=l[R];if(A._enabled!==S){O++,A._virtalBoundId=-1,f._virtalBoundId=R,l[R]=f;break}}f._enabled=S,v.textureCount++,v.ids[_]=f._virtalBoundId,v.textures[_++]=f}if(g=M.vertexData,y=M._texture._uvs.uvsUint32,this.renderer.roundPixels){var I=this.renderer.resolution;a[d]=(g[0]*I|0)/I,a[d+1]=(g[1]*I|0)/I,a[d+5]=(g[2]*I|0)/I,a[d+6]=(g[3]*I|0)/I,a[d+10]=(g[4]*I|0)/I,a[d+11]=(g[5]*I|0)/I,a[d+15]=(g[6]*I|0)/I,a[d+16]=(g[7]*I|0)/I}else a[d]=g[0],a[d+1]=g[1],a[d+5]=g[2],a[d+6]=g[3],a[d+10]=g[4],a[d+11]=g[5],a[d+15]=g[6],a[d+16]=g[7];u[d+2]=y[0],u[d+7]=y[1],u[d+12]=y[2],u[d+17]=y[3];var D=Math.min(M.worldAlpha,1),L=D<1&&f.premultipliedAlpha?(0,b.premultiplyTint)(M._tintRGB,D):M._tintRGB+(255*D<<24);u[d+3]=u[d+8]=u[d+13]=u[d+18]=L,a[d+4]=a[d+9]=a[d+14]=a[d+19]=f._virtalBoundId,d+=20}if(v.size=E-v.start,x.default.CAN_UPLOAD_SAME_BUFFER)this.vertexBuffers[this.vertexCount].upload(n.vertices,0,!0);else{if(this.vaoMax<=this.vertexCount){this.vaoMax++;var N=this.shader.attributes,k=this.vertexBuffers[this.vertexCount]=w.default.GLBuffer.createVertexBuffer(e,null,e.STREAM_DRAW),F=this.renderer.createVao().addIndex(this.indexBuffer).addAttribute(k,N.aVertexPosition,e.FLOAT,!1,this.vertByteSize,0).addAttribute(k,N.aTextureCoord,e.UNSIGNED_SHORT,!0,this.vertByteSize,8).addAttribute(k,N.aColor,e.UNSIGNED_BYTE,!0,this.vertByteSize,12);N.aTextureId&&F.addAttribute(k,N.aTextureId,e.FLOAT,!1,this.vertByteSize,16),this.vaos[this.vertexCount]=F}this.renderer.bindVao(this.vaos[this.vertexCount]),this.vertexBuffers[this.vertexCount].upload(n.vertices,0,!1),this.vertexCount++}for(E=0;E<t;++E)h[E]._virtalBoundId=-1;for(E=0;E<m;++E){for(var B=s[E],U=B.textureCount,X=0;X<U;X++)p=B.textures[X],h[B.ids[X]]!==p&&this.renderer.bindTexture(p,B.ids[X],!0),p._virtalBoundId=-1;this.renderer.state.setBlendMode(B.blend),e.drawElements(e.TRIANGLES,6*B.size,e.UNSIGNED_SHORT,6*B.start*2)}this.currentIndex=0}},t.prototype.start=function(){this.renderer.bindShader(this.shader),x.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}(u.default);t.default=M,h.default.registerPlugin("sprite",M)},"./node_modules/pixi.js/lib/core/sprites/webgl/generateMultiTextureShader.js":function(e,t,r){"use strict";function i(e,t){var r=a;r=r.replace(/%count%/gi,t),r=r.replace(/%forloop%/gi,n(t));for(var i=new s.default(e,"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",r),o=[],u=0;u<t;u++)o[u]=u;return i.bind(),i.uniforms.uSamplers=o,i}function n(e){var t="";t+="\n",t+="\n";for(var r=0;r<e;r++)r>0&&(t+="\nelse "),r<e-1&&(t+="if(textureId == "+r+".0)"),t+="\n{",t+="\n\tcolor = texture2D(uSamplers["+r+"], vTextureCoord);",t+="\n}";return t+="\n",t+="\n"}t.__esModule=!0,t.default=i;var o=r("./node_modules/pixi.js/lib/core/Shader.js"),s=function(e){return e&&e.__esModule?e:{default:e}}(o),a=(r("./node_modules/path-browserify/index.js"),["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"))},"./node_modules/pixi.js/lib/core/text/Text.js":function(e,t,r){"use strict";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 o(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)}t.__esModule=!0;var a=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}}(),u=r("./node_modules/pixi.js/lib/core/sprites/Sprite.js"),l=i(u),h=r("./node_modules/pixi.js/lib/core/textures/Texture.js"),c=i(h),d=r("./node_modules/pixi.js/lib/core/math/index.js"),f=r("./node_modules/pixi.js/lib/core/utils/index.js"),p=r("./node_modules/pixi.js/lib/core/const.js"),m=r("./node_modules/pixi.js/lib/core/settings.js"),_=i(m),v=r("./node_modules/pixi.js/lib/core/text/TextStyle.js"),g=i(v),y=r("./node_modules/pixi.js/lib/core/text/TextMetrics.js"),x=i(y),b=r("./node_modules/pixi.js/lib/core/utils/trimCanvas.js"),T=i(b),w={texture:!0,children:!1,baseTexture:!0},E=function(e){function t(r,i,s){n(this,t),s=s||document.createElement("canvas"),s.width=3,s.height=3;var a=c.default.fromCanvas(s,_.default.SCALE_MODE,"text");a.orig=new d.Rectangle,a.trim=new d.Rectangle;var u=o(this,e.call(this,a));return c.default.addToCache(u._texture,u._texture.baseTexture.textureCacheIds[0]),u.canvas=s,u.context=u.canvas.getContext("2d"),u.resolution=_.default.RESOLUTION,u._text=null,u._style=null,u._styleListener=null,u._font="",u.text=r,u.style=i,u.localStyleID=-1,u}return s(t,e),t.prototype.updateText=function(e){var t=this._style;if(this.localStyleID!==t.styleID&&(this.dirty=!0,this.localStyleID=t.styleID),this.dirty||!e){this._font=this._style.toFontString();var r=this.context,i=x.default.measureText(this._text,this._style,this._style.wordWrap,this.canvas),n=i.width,o=i.height,s=i.lines,a=i.lineHeight,u=i.lineWidths,l=i.maxLineWidth,h=i.fontProperties;this.canvas.width=Math.ceil((n+2*t.padding)*this.resolution),this.canvas.height=Math.ceil((o+2*t.padding)*this.resolution),r.scale(this.resolution,this.resolution),r.clearRect(0,0,this.canvas.width,this.canvas.height),r.font=this._font,r.strokeStyle=t.stroke,r.lineWidth=t.strokeThickness,r.textBaseline=t.textBaseline,r.lineJoin=t.lineJoin,r.miterLimit=t.miterLimit;var c=void 0,d=void 0;if(t.dropShadow){r.fillStyle=t.dropShadowColor,r.globalAlpha=t.dropShadowAlpha,r.shadowBlur=t.dropShadowBlur,t.dropShadowBlur>0&&(r.shadowColor=t.dropShadowColor);for(var f=Math.cos(t.dropShadowAngle)*t.dropShadowDistance,p=Math.sin(t.dropShadowAngle)*t.dropShadowDistance,m=0;m<s.length;m++)c=t.strokeThickness/2,d=t.strokeThickness/2+m*a+h.ascent,"right"===t.align?c+=l-u[m]:"center"===t.align&&(c+=(l-u[m])/2),t.fill&&(this.drawLetterSpacing(s[m],c+f+t.padding,d+p+t.padding),t.stroke&&t.strokeThickness&&(r.strokeStyle=t.dropShadowColor,this.drawLetterSpacing(s[m],c+f+t.padding,d+p+t.padding,!0),r.strokeStyle=t.stroke))}r.shadowBlur=0,r.globalAlpha=1,r.fillStyle=this._generateFillStyle(t,s);for(var _=0;_<s.length;_++)c=t.strokeThickness/2,d=t.strokeThickness/2+_*a+h.ascent,"right"===t.align?c+=l-u[_]:"center"===t.align&&(c+=(l-u[_])/2),t.stroke&&t.strokeThickness&&this.drawLetterSpacing(s[_],c+t.padding,d+t.padding,!0),t.fill&&this.drawLetterSpacing(s[_],c+t.padding,d+t.padding);this.updateTexture()}},t.prototype.drawLetterSpacing=function(e,t,r){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],n=this._style,o=n.letterSpacing;if(0===o)return void(i?this.context.strokeText(e,t,r):this.context.fillText(e,t,r));for(var s=String.prototype.split.call(e,""),a=t,u=0,l="";u<e.length;)l=s[u++],i?this.context.strokeText(l,a,r):this.context.fillText(l,a,r),a+=this.context.measureText(l).width+o},t.prototype.updateTexture=function(){var e=this.canvas;if(this._style.trim){var t=(0,T.default)(e);e.width=t.width,e.height=t.height,this.context.putImageData(t.data,0,0)}var r=this._texture,i=this._style,n=i.trim?0:i.padding,o=r.baseTexture;o.hasLoaded=!0,o.resolution=this.resolution,o.realWidth=e.width,o.realHeight=e.height,o.width=e.width/this.resolution,o.height=e.height/this.resolution,r.trim.width=r._frame.width=e.width/this.resolution,r.trim.height=r._frame.height=e.height/this.resolution,r.trim.x=-n,r.trim.y=-n,r.orig.width=r._frame.width-2*n,r.orig.height=r._frame.height-2*n,this._onTextureUpdate(),o.emit("update",o),this.dirty=!1},t.prototype.renderWebGL=function(t){this.resolution!==t.resolution&&(this.resolution=t.resolution,this.dirty=!0),this.updateText(!0),e.prototype.renderWebGL.call(this,t)},t.prototype._renderCanvas=function(t){this.resolution!==t.resolution&&(this.resolution=t.resolution,this.dirty=!0),this.updateText(!0),e.prototype._renderCanvas.call(this,t)},t.prototype.getLocalBounds=function(t){return this.updateText(!0),e.prototype.getLocalBounds.call(this,t)},t.prototype._calculateBounds=function(){this.updateText(!0),this.calculateVertices(),this._bounds.addQuad(this.vertexData)},t.prototype._onStyleChange=function(){this.dirty=!0},t.prototype._generateFillStyle=function(e,t){if(!Array.isArray(e.fill))return e.fill;if(navigator.isCocoonJS)return e.fill[0];var r=void 0,i=void 0,n=void 0,o=void 0,s=this.canvas.width/this.resolution,a=this.canvas.height/this.resolution,u=e.fill.slice(),l=e.fillGradientStops.slice();if(!l.length)for(var h=u.length+1,c=1;c<h;++c)l.push(c/h);if(u.unshift(e.fill[0]),l.unshift(0),u.push(e.fill[e.fill.length-1]),l.push(1),e.fillGradientType===p.TEXT_GRADIENT.LINEAR_VERTICAL){r=this.context.createLinearGradient(s/2,0,s/2,a),i=(u.length+1)*t.length,n=0;for(var d=0;d<t.length;d++){n+=1;for(var f=0;f<u.length;f++)o="number"==typeof l[f]?l[f]/t.length+d/t.length:n/i,r.addColorStop(o,u[f]),n++}}else{r=this.context.createLinearGradient(0,a/2,s,a/2),i=u.length+1,n=1;for(var m=0;m<u.length;m++)o="number"==typeof l[m]?l[m]:n/i,r.addColorStop(o,u[m]),n++}return r},t.prototype.destroy=function(t){"boolean"==typeof t&&(t={children:t}),t=Object.assign({},w,t),e.prototype.destroy.call(this,t),this.context=null,this.canvas=null,this._style=null},a(t,[{key:"width",get:function(){return this.updateText(!0),Math.abs(this.scale.x)*this._texture.orig.width},set:function(e){this.updateText(!0);var t=(0,f.sign)(this.scale.x)||1;this.scale.x=t*e/this._texture.orig.width,this._width=e}},{key:"height",get:function(){return this.updateText(!0),Math.abs(this.scale.y)*this._texture.orig.height},set:function(e){this.updateText(!0);var t=(0,f.sign)(this.scale.y)||1;this.scale.y=t*e/this._texture.orig.height,this._height=e}},{key:"style",get:function(){return this._style},set:function(e){e=e||{},e instanceof g.default?this._style=e:this._style=new g.default(e),this.localStyleID=-1,this.dirty=!0}},{key:"text",get:function(){return this._text},set:function(e){e=String(""===e||null===e||void 0===e?" ":e),this._text!==e&&(this._text=e,this.dirty=!0)}}]),t}(l.default);t.default=E},"./node_modules/pixi.js/lib/core/text/TextMetrics.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var n=function(){function e(t,r,n,o,s,a,u,l,h){i(this,e),this.text=t,this.style=r,this.width=n,this.height=o,this.lines=s,this.lineWidths=a,this.lineHeight=u,this.maxLineWidth=l,this.fontProperties=h}return e.measureText=function(t,r,i){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e._canvas;i=i||r.wordWrap;var o=r.toFontString(),s=e.measureFont(o),a=n.getContext("2d");a.font=o;for(var u=i?e.wordWrap(t,r,n):t,l=u.split(/(?:\r\n|\r|\n)/),h=new Array(l.length),c=0,d=0;d<l.length;d++){var f=a.measureText(l[d]).width+(l[d].length-1)*r.letterSpacing;h[d]=f,c=Math.max(c,f)}var p=c+r.strokeThickness;r.dropShadow&&(p+=r.dropShadowDistance);var m=r.lineHeight||s.fontSize+r.strokeThickness,_=Math.max(m,s.fontSize+r.strokeThickness)+(l.length-1)*(m+r.leading);return r.dropShadow&&(_+=r.dropShadowDistance),new e(t,r,p,_,l,h,m+r.leading,c,s)},e.wordWrap=function(t,r){for(var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e._canvas,n=i.getContext("2d"),o="",s=t.split("\n"),a=r.wordWrapWidth,u={},l=0;l<s.length;l++){for(var h=a,c=s[l].split(" "),d=0;d<c.length;d++){var f=n.measureText(c[d]).width;if(r.breakWords&&f>a)for(var p=c[d].split(""),m=0;m<p.length;m++){var _=p[m],v=u[_];void 0===v&&(v=n.measureText(_).width,u[_]=v),v>h?(o+="\n"+_,h=a-v):(0===m&&(o+=" "),o+=_,h-=v)}else{var g=f+n.measureText(" ").width;0===d||g>h?(d>0&&(o+="\n"),o+=c[d],h=a-f):(h-=g,o+=" "+c[d])}}l<s.length-1&&(o+="\n")}return o},e.measureFont=function(t){if(e._fonts[t])return e._fonts[t];var r={},i=e._canvas,n=e._context;n.font=t;var o=Math.ceil(n.measureText("|MÉq").width),s=Math.ceil(n.measureText("M").width),a=2*s;s=1.4*s|0,i.width=o,i.height=a,n.fillStyle="#f00",n.fillRect(0,0,o,a),n.font=t,n.textBaseline="alphabetic",n.fillStyle="#000",n.fillText("|MÉq",0,s);var u=n.getImageData(0,0,o,a).data,l=u.length,h=4*o,c=0,d=0,f=!1;for(c=0;c<s;++c){for(var p=0;p<h;p+=4)if(255!==u[d+p]){f=!0;break}if(f)break;d+=h}for(r.ascent=s-c,d=l-h,f=!1,c=a;c>s;--c){for(var m=0;m<h;m+=4)if(255!==u[d+m]){f=!0;break}if(f)break;d-=h}return r.descent=c-s,r.fontSize=r.ascent+r.descent,e._fonts[t]=r,r},e}();t.default=n;var o=document.createElement("canvas");o.width=o.height=10,n._canvas=o,n._context=o.getContext("2d"),n._fonts={}},"./node_modules/pixi.js/lib/core/text/TextStyle.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e){return"number"==typeof e?(0,l.hex2string)(e):("string"==typeof e&&0===e.indexOf("0x")&&(e=e.replace("0x","#")),e)}function o(e){if(Array.isArray(e)){for(var t=0;t<e.length;++t)e[t]=n(e[t]);return e}return n(e)}function s(e,t){if(!Array.isArray(e)||!Array.isArray(t))return!1;if(e.length!==t.length)return!1;for(var r=0;r<e.length;++r)if(e[r]!==t[r])return!1;return!0}t.__esModule=!0;var a=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}}(),u=r("./node_modules/pixi.js/lib/core/const.js"),l=r("./node_modules/pixi.js/lib/core/utils/index.js"),h={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fillGradientType:u.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},c=function(){function e(t){i(this,e),this.styleID=0,Object.assign(this,h,t)}return e.prototype.clone=function(){var t={};for(var r in h)t[r]=this[r];return new e(t)},e.prototype.reset=function(){Object.assign(this,h)},e.prototype.toFontString=function(){var e="number"==typeof this.fontSize?this.fontSize+"px":this.fontSize,t=this.fontFamily;Array.isArray(this.fontFamily)||(t=this.fontFamily.split(","));for(var r=t.length-1;r>=0;r--){var i=t[r].trim();/([\"\'])[^\'\"]+\1/.test(i)||(i='"'+i+'"'),t[r]=i}return this.fontStyle+" "+this.fontVariant+" "+this.fontWeight+" "+e+" "+t.join(",")},a(e,[{key:"align",get:function(){return this._align},set:function(e){this._align!==e&&(this._align=e,this.styleID++)}},{key:"breakWords",get:function(){return this._breakWords},set:function(e){this._breakWords!==e&&(this._breakWords=e,this.styleID++)}},{key:"dropShadow",get:function(){return this._dropShadow},set:function(e){this._dropShadow!==e&&(this._dropShadow=e,this.styleID++)}},{key:"dropShadowAlpha",get:function(){return this._dropShadowAlpha},set:function(e){this._dropShadowAlpha!==e&&(this._dropShadowAlpha=e,this.styleID++)}},{key:"dropShadowAngle",get:function(){return this._dropShadowAngle},set:function(e){this._dropShadowAngle!==e&&(this._dropShadowAngle=e,this.styleID++)}},{key:"dropShadowBlur",get:function(){return this._dropShadowBlur},set:function(e){this._dropShadowBlur!==e&&(this._dropShadowBlur=e,this.styleID++)}},{key:"dropShadowColor",get:function(){return this._dropShadowColor},set:function(e){var t=o(e);this._dropShadowColor!==t&&(this._dropShadowColor=t,this.styleID++)}},{key:"dropShadowDistance",get:function(){return this._dropShadowDistance},set:function(e){this._dropShadowDistance!==e&&(this._dropShadowDistance=e,this.styleID++)}},{key:"fill",get:function(){return this._fill},set:function(e){var t=o(e);this._fill!==t&&(this._fill=t,this.styleID++)}},{key:"fillGradientType",get:function(){return this._fillGradientType},set:function(e){this._fillGradientType!==e&&(this._fillGradientType=e,this.styleID++)}},{key:"fillGradientStops",get:function(){return this._fillGradientStops},set:function(e){s(this._fillGradientStops,e)||(this._fillGradientStops=e,this.styleID++)}},{key:"fontFamily",get:function(){return this._fontFamily},set:function(e){this.fontFamily!==e&&(this._fontFamily=e,this.styleID++)}},{key:"fontSize",get:function(){return this._fontSize},set:function(e){this._fontSize!==e&&(this._fontSize=e,this.styleID++)}},{key:"fontStyle",get:function(){return this._fontStyle},set:function(e){this._fontStyle!==e&&(this._fontStyle=e,this.styleID++)}},{key:"fontVariant",get:function(){return this._fontVariant},set:function(e){this._fontVariant!==e&&(this._fontVariant=e,this.styleID++)}},{key:"fontWeight",get:function(){return this._fontWeight},set:function(e){this._fontWeight!==e&&(this._fontWeight=e,this.styleID++)}},{key:"letterSpacing",get:function(){return this._letterSpacing},set:function(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.styleID++)}},{key:"lineHeight",get:function(){return this._lineHeight},set:function(e){this._lineHeight!==e&&(this._lineHeight=e,this.styleID++)}},{key:"leading",get:function(){return this._leading},set:function(e){this._leading!==e&&(this._leading=e,this.styleID++)}},{key:"lineJoin",get:function(){return this._lineJoin},set:function(e){this._lineJoin!==e&&(this._lineJoin=e,this.styleID++)}},{key:"miterLimit",get:function(){return this._miterLimit},set:function(e){this._miterLimit!==e&&(this._miterLimit=e,this.styleID++)}},{key:"padding",get:function(){return this._padding},set:function(e){this._padding!==e&&(this._padding=e,this.styleID++)}},{key:"stroke",get:function(){return this._stroke},set:function(e){var t=o(e);this._stroke!==t&&(this._stroke=t,this.styleID++)}},{key:"strokeThickness",get:function(){return this._strokeThickness},set:function(e){this._strokeThickness!==e&&(this._strokeThickness=e,this.styleID++)}},{key:"textBaseline",get:function(){return this._textBaseline},set:function(e){this._textBaseline!==e&&(this._textBaseline=e,this.styleID++)}},{key:"trim",get:function(){return this._trim},set:function(e){this._trim!==e&&(this._trim=e,this.styleID++)}},{key:"wordWrap",get:function(){return this._wordWrap},set:function(e){this._wordWrap!==e&&(this._wordWrap=e,this.styleID++)}},{key:"wordWrapWidth",get:function(){return this._wordWrapWidth},set:function(e){this._wordWrapWidth!==e&&(this._wordWrapWidth=e,this.styleID++)}}]),e}();t.default=c},"./node_modules/pixi.js/lib/core/textures/BaseRenderTexture.js":function(e,t,r){"use strict";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 o(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)}t.__esModule=!0;var a=r("./node_modules/pixi.js/lib/core/textures/BaseTexture.js"),u=i(a),l=r("./node_modules/pixi.js/lib/core/settings.js"),h=i(l),c=function(e){function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:100,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,s=arguments[2],a=arguments[3];n(this,t);var u=o(this,e.call(this,null,s));return u.resolution=a||h.default.RESOLUTION,u.width=r,u.height=i,u.realWidth=u.width*u.resolution,u.realHeight=u.height*u.resolution,u.scaleMode=void 0!==s?s:h.default.SCALE_MODE,u.hasLoaded=!0,u._glRenderTargets={},u._canvasRenderTarget=null,u.valid=!1,u}return s(t,e),t.prototype.resize=function(e,t){e===this.width&&t===this.height||(this.valid=e>0&&t>0,this.width=e,this.height=t,this.realWidth=this.width*this.resolution,this.realHeight=this.height*this.resolution,this.valid&&this.emit("update",this))},t.prototype.destroy=function(){e.prototype.destroy.call(this,!0),this.renderer=null},t}(u.default);t.default=c},"./node_modules/pixi.js/lib/core/textures/BaseTexture.js":function(e,t,r){"use strict";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 o(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)}t.__esModule=!0;var a=r("./node_modules/pixi.js/lib/core/utils/index.js"),u=r("./node_modules/pixi.js/lib/core/settings.js"),l=i(u),h=r("./node_modules/pixi.js/node_modules/eventemitter3/index.js"),c=i(h),d=r("./node_modules/pixi.js/lib/core/utils/determineCrossOrigin.js"),f=i(d),p=r("./node_modules/bit-twiddle/twiddle.js"),m=i(p),_=function(e){function t(r,i,s){n(this,t);var u=o(this,e.call(this));return u.uid=(0,a.uid)(),u.touched=0,u.resolution=s||l.default.RESOLUTION,u.width=100,u.height=100,u.realWidth=100,u.realHeight=100,u.scaleMode=void 0!==i?i:l.default.SCALE_MODE,u.hasLoaded=!1,u.isLoading=!1,u.source=null,u.origSource=null,u.imageType=null,u.sourceScale=1,u.premultipliedAlpha=!0,u.imageUrl=null,u.isPowerOfTwo=!1,u.mipmap=l.default.MIPMAP_TEXTURES,u.wrapMode=l.default.WRAP_MODE,u._glTextures={},u._enabled=0,u._virtalBoundId=-1,u._destroyed=!1,u.textureCacheIds=[],r&&u.loadSource(r),u}return s(t,e),t.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)},t.prototype._updateDimensions=function(){this.width=this.realWidth/this.resolution,this.height=this.realHeight/this.resolution,this.isPowerOfTwo=m.default.isPow2(this.realWidth)&&m.default.isPow2(this.realHeight)},t.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 r=!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(),r&&this.emit("loaded",this);else if(!e.getContext){this.isLoading=!0;var i=this;if(e.onload=function(){if(i._updateImageType(),e.onload=null,e.onerror=null,i.isLoading){if(i.isLoading=!1,i._sourceLoaded(),"svg"===i.imageType)return void i._loadSvgSource();i.emit("loaded",i)}},e.onerror=function(){e.onload=null,e.onerror=null,i.isLoading&&(i.isLoading=!1,i.emit("error",i))},e.complete&&e.src){if(e.onload=null,e.onerror=null,"svg"===i.imageType)return void i._loadSvgSource();this.isLoading=!1,e.width&&e.height?(this._sourceLoaded(),t&&this.emit("loaded",this)):t&&this.emit("error",this)}}},t.prototype._updateImageType=function(){if(this.imageUrl){var e=(0,a.decomposeDataUri)(this.imageUrl),t=void 0;if(e&&"image"===e.mediaType){var r=e.subType.split("+")[0];if(!(t=(0,a.getUrlFileExtension)("."+r)))throw new Error("Invalid image type in data URI.")}else(t=(0,a.getUrlFileExtension)(this.imageUrl))||(t="png");this.imageType=t}},t.prototype._loadSvgSource=function(){if("svg"===this.imageType){var e=(0,a.decomposeDataUri)(this.imageUrl);e?this._loadSvgSourceUsingDataUri(e):this._loadSvgSourceUsingXhr()}},t.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)},t.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()},t.prototype._loadSvgSourceUsingString=function(e){var r=(0,a.getSvgSize)(e),i=r.width,n=r.height;if(!i||!n)throw new Error("The SVG image must have width and height defined (in pixels), canvas API needs them.");this.realWidth=Math.round(i*this.sourceScale),this.realHeight=Math.round(n*this.sourceScale),this._updateDimensions();var o=document.createElement("canvas");o.width=this.realWidth,o.height=this.realHeight,o._pixiId="canvas_"+(0,a.uid)(),o.getContext("2d").drawImage(this.source,0,0,i,n,0,0,this.realWidth,this.realHeight),this.origSource=this.source,this.source=o,t.addToCache(this,o._pixiId),this.isLoading=!1,this._sourceLoaded(),this.emit("loaded",this)},t.prototype._sourceLoaded=function(){this.hasLoaded=!0,this.update()},t.prototype.destroy=function(){this.imageUrl&&(delete a.TextureCache[this.imageUrl],this.imageUrl=null,navigator.isCocoonJS||(this.source.src="")),this.source=null,this.dispose(),t.removeFromCache(this),this.textureCacheIds=null,this._destroyed=!0},t.prototype.dispose=function(){this.emit("dispose",this)},t.prototype.updateSourceImage=function(e){this.source.src=e,this.loadSource(this.source)},t.fromImage=function(e,r,i,n){var o=a.BaseTextureCache[e];if(!o){var s=new Image;void 0===r&&0!==e.indexOf("data:")?s.crossOrigin=(0,f.default)(e):r&&(s.crossOrigin="string"==typeof r?r:"anonymous"),o=new t(s,i),o.imageUrl=e,n&&(o.sourceScale=n),o.resolution=(0,a.getResolutionOfUrl)(e),s.src=e,t.addToCache(o,e)}return o},t.fromCanvas=function(e,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"canvas";e._pixiId||(e._pixiId=i+"_"+(0,a.uid)());var n=a.BaseTextureCache[e._pixiId];return n||(n=new t(e,r),t.addToCache(n,e._pixiId)),n},t.from=function(e,r,i){if("string"==typeof e)return t.fromImage(e,void 0,r,i);if(e instanceof HTMLImageElement){var n=e.src,o=a.BaseTextureCache[n];return o||(o=new t(e,r),o.imageUrl=n,i&&(o.sourceScale=i),o.resolution=(0,a.getResolutionOfUrl)(n),t.addToCache(o,n)),o}return e instanceof HTMLCanvasElement?t.fromCanvas(e,r):e},t.addToCache=function(e,t){t&&(-1===e.textureCacheIds.indexOf(t)&&e.textureCacheIds.push(t),a.BaseTextureCache[t]&&console.warn("BaseTexture added to the cache with an id ["+t+"] that already had an entry"),a.BaseTextureCache[t]=e)},t.removeFromCache=function(e){if("string"==typeof e){var t=a.BaseTextureCache[e];if(t){var r=t.textureCacheIds.indexOf(e);return r>-1&&t.textureCacheIds.splice(r,1),delete a.BaseTextureCache[e],t}}else if(e&&e.textureCacheIds){for(var i=0;i<e.textureCacheIds.length;++i)delete a.BaseTextureCache[e.textureCacheIds[i]];return e.textureCacheIds.length=0,e}return null},t}(c.default);t.default=_},"./node_modules/pixi.js/lib/core/textures/RenderTexture.js":function(e,t,r){"use strict";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 o(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)}t.__esModule=!0;var a=r("./node_modules/pixi.js/lib/core/textures/BaseRenderTexture.js"),u=i(a),l=r("./node_modules/pixi.js/lib/core/textures/Texture.js"),h=i(l),c=function(e){function t(r,i){n(this,t);var s=null;if(!(r instanceof u.default)){var a=arguments[1],l=arguments[2],h=arguments[3],c=arguments[4];console.warn("Please use RenderTexture.create("+a+", "+l+") instead of the ctor directly."),s=arguments[0],i=null,r=new u.default(a,l,h,c)}var d=o(this,e.call(this,r,i));return d.legacyRenderer=s,d.valid=!0,d._updateUvs(),d}return s(t,e),t.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()},t.create=function(e,r,i,n){return new t(new u.default(e,r,i,n))},t}(h.default);t.default=c},"./node_modules/pixi.js/lib/core/textures/Spritesheet.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var n=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}}(),o=r("./node_modules/pixi.js/lib/core/index.js"),s=r("./node_modules/pixi.js/lib/core/utils/index.js"),a=function(){function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;i(this,e),this.baseTexture=t,this.textures={},this.data=r,this.resolution=this._updateResolution(n||this.baseTexture.imageUrl),this._frames=this.data.frames,this._frameKeys=Object.keys(this._frames),this._batchIndex=0,this._callback=null}return n(e,null,[{key:"BATCH_SIZE",get:function(){return 1e3}}]),e.prototype._updateResolution=function(e){var t=this.data.meta.scale,r=(0,s.getResolutionOfUrl)(e,null);return null===r&&(r=void 0!==t?parseFloat(t):1),1!==r&&(this.baseTexture.resolution=r,this.baseTexture.update()),r},e.prototype.parse=function(t){this._batchIndex=0,this._callback=t,this._frameKeys.length<=e.BATCH_SIZE?(this._processFrames(0),this._parseComplete()):this._nextBatch()},e.prototype._processFrames=function(t){for(var r=t,i=e.BATCH_SIZE,n=this.baseTexture.sourceScale;r-t<i&&r<this._frameKeys.length;){var s=this._frameKeys[r],a=this._frames[s].frame;if(a){var u=null,l=null,h=new o.Rectangle(0,0,Math.floor(this._frames[s].sourceSize.w*n)/this.resolution,Math.floor(this._frames[s].sourceSize.h*n)/this.resolution);u=this._frames[s].rotated?new o.Rectangle(Math.floor(a.x*n)/this.resolution,Math.floor(a.y*n)/this.resolution,Math.floor(a.h*n)/this.resolution,Math.floor(a.w*n)/this.resolution):new o.Rectangle(Math.floor(a.x*n)/this.resolution,Math.floor(a.y*n)/this.resolution,Math.floor(a.w*n)/this.resolution,Math.floor(a.h*n)/this.resolution),this._frames[s].trimmed&&(l=new o.Rectangle(Math.floor(this._frames[s].spriteSourceSize.x*n)/this.resolution,Math.floor(this._frames[s].spriteSourceSize.y*n)/this.resolution,Math.floor(a.w*n)/this.resolution,Math.floor(a.h*n)/this.resolution)),this.textures[s]=new o.Texture(this.baseTexture,u,h,l,this._frames[s].rotated?2:0),o.Texture.addToCache(this.textures[s],s)}r++}},e.prototype._parseComplete=function(){var e=this._callback;this._callback=null,this._batchIndex=0,e.call(this,this.textures)},e.prototype._nextBatch=function(){var t=this;this._processFrames(this._batchIndex*e.BATCH_SIZE),this._batchIndex++,setTimeout(function(){t._batchIndex*e.BATCH_SIZE<t._frameKeys.length?t._nextBatch():t._parseComplete()},0)},e.prototype.destroy=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];for(var t in this.textures)this.textures[t].destroy();this._frames=null,this._frameKeys=null,this.data=null,this.textures=null,e&&this.baseTexture.destroy(),this.baseTexture=null},e}();t.default=a},"./node_modules/pixi.js/lib/core/textures/Texture.js":function(e,t,r){"use strict";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 o(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)}function a(e){e.destroy=function(){},e.on=function(){},e.once=function(){},e.emit=function(){}}t.__esModule=!0;var u=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}}(),l=r("./node_modules/pixi.js/lib/core/textures/BaseTexture.js"),h=i(l),c=r("./node_modules/pixi.js/lib/core/textures/VideoBaseTexture.js"),d=i(c),f=r("./node_modules/pixi.js/lib/core/textures/TextureUvs.js"),p=i(f),m=r("./node_modules/pixi.js/node_modules/eventemitter3/index.js"),_=i(m),v=r("./node_modules/pixi.js/lib/core/math/index.js"),g=r("./node_modules/pixi.js/lib/core/utils/index.js"),y=r("./node_modules/pixi.js/lib/core/settings.js"),x=i(y),b=function(e){function t(r,i,s,a,u){n(this,t);var l=o(this,e.call(this));if(l.noFrame=!1,i||(l.noFrame=!0,i=new v.Rectangle(0,0,1,1)),r instanceof t&&(r=r.baseTexture),l.baseTexture=r,l._frame=i,l.trim=a,l.valid=!1,l.requiresUpdate=!1,l._uvs=null,l.orig=s||i,l._rotate=Number(u||0),!0===u)l._rotate=2;else if(l._rotate%2!=0)throw new Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");return r.hasLoaded?(l.noFrame&&(i=new v.Rectangle(0,0,r.width,r.height),r.on("update",l.onBaseTextureUpdated,l)),l.frame=i):r.once("loaded",l.onBaseTextureLoaded,l),l._updateID=0,l.transform=null,l.textureCacheIds=[],l}return s(t,e),t.prototype.update=function(){this.baseTexture.update()},t.prototype.onBaseTextureLoaded=function(e){this._updateID++,this.noFrame?this.frame=new v.Rectangle(0,0,e.width,e.height):this.frame=this._frame,this.baseTexture.on("update",this.onBaseTextureUpdated,this),this.emit("update",this)},t.prototype.onBaseTextureUpdated=function(e){this._updateID++,this._frame.width=e.width,this._frame.height=e.height,this.emit("update",this)},t.prototype.destroy=function(e){this.baseTexture&&(e&&(g.TextureCache[this.baseTexture.imageUrl]&&t.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,t.removeFromCache(this),this.textureCacheIds=null},t.prototype.clone=function(){return new t(this.baseTexture,this.frame,this.orig,this.trim,this.rotate)},t.prototype._updateUvs=function(){this._uvs||(this._uvs=new p.default),this._uvs.set(this._frame,this.baseTexture,this.rotate),this._updateID++},t.fromImage=function(e,r,i,n){var o=g.TextureCache[e];return o||(o=new t(h.default.fromImage(e,r,i,n)),t.addToCache(o,e)),o},t.fromFrame=function(e){var t=g.TextureCache[e];if(!t)throw new Error('The frameId "'+e+'" does not exist in the texture cache');return t},t.fromCanvas=function(e,r){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"canvas";return new t(h.default.fromCanvas(e,r,i))},t.fromVideo=function(e,r){return"string"==typeof e?t.fromVideoUrl(e,r):new t(d.default.fromVideo(e,r))},t.fromVideoUrl=function(e,r){return new t(d.default.fromUrl(e,r))},t.from=function(e){if("string"==typeof e){var r=g.TextureCache[e];if(!r){return null!==e.match(/\.(mp4|webm|ogg|h264|avi|mov)$/)?t.fromVideoUrl(e):t.fromImage(e)}return r}return e instanceof HTMLImageElement?new t(h.default.from(e)):e instanceof HTMLCanvasElement?t.fromCanvas(e,x.default.SCALE_MODE,"HTMLCanvasElement"):e instanceof HTMLVideoElement?t.fromVideo(e):e instanceof h.default?new t(e):e},t.fromLoader=function(e,r,i){var n=new h.default(e,void 0,(0,g.getResolutionOfUrl)(r)),o=new t(n);return n.imageUrl=r,i||(i=r),h.default.addToCache(o.baseTexture,i),t.addToCache(o,i),i!==r&&(h.default.addToCache(o.baseTexture,r),t.addToCache(o,r)),o},t.addToCache=function(e,t){t&&(-1===e.textureCacheIds.indexOf(t)&&e.textureCacheIds.push(t),g.TextureCache[t]&&console.warn("Texture added to the cache with an id ["+t+"] that already had an entry"),g.TextureCache[t]=e)},t.removeFromCache=function(e){if("string"==typeof e){var t=g.TextureCache[e];if(t){var r=t.textureCacheIds.indexOf(e);return r>-1&&t.textureCacheIds.splice(r,1),delete g.TextureCache[e],t}}else if(e&&e.textureCacheIds){for(var i=0;i<e.textureCacheIds.length;++i)g.TextureCache[e.textureCacheIds[i]]===e&&delete g.TextureCache[e.textureCacheIds[i]];return e.textureCacheIds.length=0,e}return null},u(t,[{key:"frame",get:function(){return this._frame},set:function(e){this._frame=e,this.noFrame=!1;var t=e.x,r=e.y,i=e.width,n=e.height,o=t+i>this.baseTexture.width,s=r+n>this.baseTexture.height;if(o||s){var a=o&&s?"and":"or",u="X: "+t+" + "+i+" = "+(t+i)+" > "+this.baseTexture.width,l="Y: "+r+" + "+n+" = "+(r+n)+" > "+this.baseTexture.height;throw new Error("Texture Error: frame does not fit inside the base Texture dimensions: "+u+" "+a+" "+l)}this.valid=i&&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}}]),t}(_.default);t.default=b,b.EMPTY=new b(new h.default),a(b.EMPTY),a(b.EMPTY.baseTexture),b.WHITE=function(){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 b(new h.default(e))}(),a(b.WHITE),a(b.WHITE.baseTexture)},"./node_modules/pixi.js/lib/core/textures/TextureUvs.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var n=r("./node_modules/pixi.js/lib/core/math/GroupD8.js"),o=function(e){return e&&e.__esModule?e:{default:e}}(n),s=function(){function e(){i(this,e),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 e.prototype.set=function(e,t,r){var i=t.width,n=t.height;if(r){var s=e.width/2/i,a=e.height/2/n,u=e.x/i+s,l=e.y/n+a;r=o.default.add(r,o.default.NW),this.x0=u+s*o.default.uX(r),this.y0=l+a*o.default.uY(r),r=o.default.add(r,2),this.x1=u+s*o.default.uX(r),this.y1=l+a*o.default.uY(r),r=o.default.add(r,2),this.x2=u+s*o.default.uX(r),this.y2=l+a*o.default.uY(r),r=o.default.add(r,2),this.x3=u+s*o.default.uX(r),this.y3=l+a*o.default.uY(r)}else this.x0=e.x/i,this.y0=e.y/n,this.x1=(e.x+e.width)/i,this.y1=e.y/n,this.x2=(e.x+e.width)/i,this.y2=(e.y+e.height)/n,this.x3=e.x/i,this.y3=(e.y+e.height)/n;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},e}();t.default=s},"./node_modules/pixi.js/lib/core/textures/VideoBaseTexture.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(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)}function s(e,t){t||(t="video/"+e.substr(e.lastIndexOf(".")+1));var r=document.createElement("source");return r.src=e,r.type=t,r}t.__esModule=!0;var a=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}}(),u=r("./node_modules/pixi.js/lib/core/textures/BaseTexture.js"),l=function(e){return e&&e.__esModule?e:{default:e}}(u),h=r("./node_modules/pixi.js/lib/core/utils/index.js"),c=r("./node_modules/pixi.js/lib/core/ticker/index.js"),d=r("./node_modules/pixi.js/lib/core/const.js"),f=function(e){function t(r,o){if(i(this,t),!r)throw new Error("No video source element specified.");(r.readyState===r.HAVE_ENOUGH_DATA||r.readyState===r.HAVE_FUTURE_DATA)&&r.width&&r.height&&(r.complete=!0);var s=n(this,e.call(this,r,o));return s.width=r.videoWidth,s.height=r.videoHeight,s._autoUpdate=!0,s._isAutoUpdating=!1,s.autoPlay=!0,s.update=s.update.bind(s),s._onCanPlay=s._onCanPlay.bind(s),r.addEventListener("play",s._onPlayStart.bind(s)),r.addEventListener("pause",s._onPlayStop.bind(s)),s.hasLoaded=!1,s.__loaded=!1,s._isSourceReady()?s._onCanPlay():(r.addEventListener("canplay",s._onCanPlay),r.addEventListener("canplaythrough",s._onCanPlay)),s}return o(t,e),t.prototype._isSourcePlaying=function(){var e=this.source;return e.currentTime>0&&!1===e.paused&&!1===e.ended&&e.readyState>2},t.prototype._isSourceReady=function(){return 3===this.source.readyState||4===this.source.readyState},t.prototype._onPlayStart=function(){this.hasLoaded||this._onCanPlay(),!this._isAutoUpdating&&this.autoUpdate&&(c.shared.add(this.update,this,d.UPDATE_PRIORITY.HIGH),this._isAutoUpdating=!0)},t.prototype._onPlayStop=function(){this._isAutoUpdating&&(c.shared.remove(this.update,this),this._isAutoUpdating=!1)},t.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())},t.prototype.destroy=function(){this._isAutoUpdating&&c.shared.remove(this.update,this),this.source&&this.source._pixiId&&(l.default.removeFromCache(this.source._pixiId),delete this.source._pixiId),e.prototype.destroy.call(this)},t.fromVideo=function(e,r){e._pixiId||(e._pixiId="video_"+(0,h.uid)());var i=h.BaseTextureCache[e._pixiId];return i||(i=new t(e,r),l.default.addToCache(i,e._pixiId)),i},t.fromUrl=function(e,r){var i=document.createElement("video");if(i.setAttribute("webkit-playsinline",""),i.setAttribute("playsinline",""),Array.isArray(e))for(var n=0;n<e.length;++n)i.appendChild(s(e[n].src||e[n],e[n].mime));else i.appendChild(s(e.src||e,e.mime));return i.load(),t.fromVideo(i,r)},a(t,[{key:"autoUpdate",get:function(){return this._autoUpdate},set:function(e){e!==this._autoUpdate&&(this._autoUpdate=e,!this._autoUpdate&&this._isAutoUpdating?(c.shared.remove(this.update,this),this._isAutoUpdating=!1):this._autoUpdate&&!this._isAutoUpdating&&(c.shared.add(this.update,this,d.UPDATE_PRIORITY.HIGH),this._isAutoUpdating=!0))}}]),t}(l.default);t.default=f,f.fromUrls=f.fromUrl},"./node_modules/pixi.js/lib/core/ticker/Ticker.js":function(e,t,r){"use strict";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")}t.__esModule=!0;var o=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}}(),s=r("./node_modules/pixi.js/lib/core/settings.js"),a=i(s),u=r("./node_modules/pixi.js/lib/core/const.js"),l=r("./node_modules/pixi.js/lib/core/ticker/TickerListener.js"),h=i(l),c=function(){function e(){var t=this;n(this,e),this._head=new h.default(null,null,1/0),this._requestId=null,this._maxElapsedMS=100,this.autoStart=!1,this.deltaTime=1,this.elapsedMS=1/a.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(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.UPDATE_PRIORITY.NORMAL;return this._addListener(new h.default(e,t,r))},e.prototype.addOnce=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.UPDATE_PRIORITY.NORMAL;return this._addListener(new h.default(e,t,r,!0))},e.prototype._addListener=function(e){var t=this._head.next,r=this._head;if(t){for(;t;){if(e.priority>t.priority){e.connect(r);break}r=t,t=t.next}e.previous||e.connect(r)}else e.connect(r);return this._startIfPossible(),this},e.prototype.remove=function(e,t){for(var r=this._head.next;r;)r=r.match(e,t)?r.destroy():r.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 e=this._head.next;e;)e=e.destroy(!0);this._head.destroy(),this._head=null},e.prototype.update=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:performance.now(),t=void 0;if(e>this.lastTime){t=this.elapsedMS=e-this.lastTime,t>this._maxElapsedMS&&(t=this._maxElapsedMS),this.deltaTime=t*a.default.TARGET_FPMS*this.speed;for(var r=this._head,i=r.next;i;)i=i.emit(this.deltaTime);r.next||this._cancelIfNeeded()}else this.deltaTime=this.elapsedMS=0;this.lastTime=e},o(e,[{key:"FPS",get:function(){return 1e3/this.elapsedMS}},{key:"minFPS",get:function(){return 1e3/this._maxElapsedMS},set:function(e){var t=Math.min(Math.max(0,e)/1e3,a.default.TARGET_FPMS);this._maxElapsedMS=1/t}}]),e}();t.default=c},"./node_modules/pixi.js/lib/core/ticker/TickerListener.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var n=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];i(this,e),this.fn=t,this.context=r,this.priority=n,this.once=o,this.next=null,this.previous=null,this._destroyed=!1}return e.prototype.match=function(e,t){return t=t||null,this.fn===e&&this.context===t},e.prototype.emit=function(e){this.fn&&(this.context?this.fn.call(this.context,e):this.fn(e));var t=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),t},e.prototype.connect=function(e){this.previous=e,e.next&&(e.next.previous=this),this.next=e.next,e.next=this},e.prototype.destroy=function(){var e=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 t=this.previous;return this.next=e?null:t,this.previous=null,t},e}();t.default=n},"./node_modules/pixi.js/lib/core/ticker/index.js":function(e,t,r){"use strict";t.__esModule=!0,t.Ticker=t.shared=void 0;var i=r("./node_modules/pixi.js/lib/core/ticker/Ticker.js"),n=function(e){return e&&e.__esModule?e:{default:e}}(i),o=new n.default;o.autoStart=!0,o.destroy=function(){},t.shared=o,t.Ticker=n.default},"./node_modules/pixi.js/lib/core/utils/canUploadSameBuffer.js":function(e,t,r){"use strict";function i(){return!(!!navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform))}t.__esModule=!0,t.default=i},"./node_modules/pixi.js/lib/core/utils/createIndicesForQuads.js":function(e,t,r){"use strict";function i(e){for(var t=6*e,r=new Uint16Array(t),i=0,n=0;i<t;i+=6,n+=4)r[i+0]=n+0,r[i+1]=n+1,r[i+2]=n+2,r[i+3]=n+0,r[i+4]=n+2,r[i+5]=n+3;return r}t.__esModule=!0,t.default=i},"./node_modules/pixi.js/lib/core/utils/determineCrossOrigin.js":function(e,t,r){"use strict";function i(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.location;if(0===e.indexOf("data:"))return"";t=t||window.location,s||(s=document.createElement("a")),s.href=e,e=o.default.parse(s.href);var r=!e.port&&""===t.port||e.port===t.port;return e.hostname===t.hostname&&r&&e.protocol===t.protocol?"":"anonymous"}t.__esModule=!0,t.default=i;var n=r("./node_modules/url/url.js"),o=function(e){return e&&e.__esModule?e:{default:e}}(n),s=void 0},"./node_modules/pixi.js/lib/core/utils/index.js":function(e,t,r){"use strict";function i(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){return e&&e.__esModule?e:{default:e}}function o(){return++F}function s(e,t){return t=t||[],t[0]=(e>>16&255)/255,t[1]=(e>>8&255)/255,t[2]=(255&e)/255,t}function a(e){return e=e.toString(16),"#"+(e="000000".substr(0,6-e.length)+e)}function u(e){return(255*e[0]<<16)+(255*e[1]<<8)+(255*e[2]|0)}function l(e,t){var r=j.default.RETINA_PREFIX.exec(e);return r?parseFloat(r[1]):void 0!==t?t:1}function h(e){var t=w.DATA_URI.exec(e);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 c(e){var t=w.URL_FILE_EXTENSION.exec(e);if(t)return t[1].toLowerCase()}function d(e){var t=w.SVG_SIZE.exec(e),r={};return t&&(r[t[1]]=Math.round(parseFloat(t[3])),r[t[5]]=Math.round(parseFloat(t[7]))),r}function f(){B=!0}function p(e){if(!B){if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var t=["\n %c %c %c PixiJS "+w.VERSION+" - ✰ "+e+" ✰  %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 "+w.VERSION+" - "+e+" - http://www.pixijs.com/");B=!0}}function m(){var e={stencil:!0,failIfMajorPerformanceCaveat:!0};try{if(!window.WebGLRenderingContext)return!1;var t=document.createElement("canvas"),r=t.getContext("webgl",e)||t.getContext("experimental-webgl",e),i=!(!r||!r.getContextAttributes().stencil);if(r){var n=r.getExtension("WEBGL_lose_context");n&&n.loseContext()}return r=null,i}catch(e){return!1}}function _(e){return 0===e?0:e<0?-1:1}function v(){var e=void 0;for(e in U)U[e].destroy();for(e in X)X[e].destroy()}function g(){var e=void 0;for(e in U)delete U[e];for(e in X)delete X[e]}function y(e,t){return G[t?1:0][e]}function x(e,t){if(1===t)return(255*t<<24)+e;if(0===t)return 0;var r=e>>16&255,i=e>>8&255,n=255&e;return r=r*t+.5|0,i=i*t+.5|0,n=n*t+.5|0,(255*t<<24)+(r<<16)+(i<<8)+n}function b(e,t,r,i){return r=r||new Float32Array(4),i||void 0===i?(r[0]=e[0]*t,r[1]=e[1]*t,r[2]=e[2]*t):(r[0]=e[0],r[1]=e[1],r[2]=e[2]),r[3]=t,r}function T(e,t,r,i){return r=r||new Float32Array(4),r[0]=(e>>16&255)/255,r[1]=(e>>8&255)/255,r[2]=(255&e)/255,(i||void 0===i)&&(r[0]*=t,r[1]*=t,r[2]*=t),r[3]=t,r}t.__esModule=!0,t.premultiplyBlendMode=t.BaseTextureCache=t.TextureCache=t.mixins=t.pluginTarget=t.EventEmitter=t.removeItems=t.isMobile=void 0,t.uid=o,t.hex2rgb=s,t.hex2string=a,t.rgb2hex=u,t.getResolutionOfUrl=l,t.decomposeDataUri=h,t.getUrlFileExtension=c,t.getSvgSize=d,t.skipHello=f,t.sayHello=p,t.isWebGLSupported=m,t.sign=_,t.destroyTextureCache=v,t.clearTextureCache=g,t.correctBlendMode=y,t.premultiplyTint=x,t.premultiplyRgba=b,t.premultiplyTintToRgba=T;var w=r("./node_modules/pixi.js/lib/core/const.js"),E=r("./node_modules/pixi.js/lib/core/settings.js"),j=n(E),S=r("./node_modules/pixi.js/node_modules/eventemitter3/index.js"),O=n(S),M=r("./node_modules/pixi.js/lib/core/utils/pluginTarget.js"),P=n(M),C=r("./node_modules/pixi.js/lib/core/utils/mixin.js"),R=i(C),A=r("./node_modules/ismobilejs/isMobile.js"),I=i(A),D=r("./node_modules/remove-array-items/index.js"),L=n(D),N=r("./node_modules/pixi.js/lib/core/utils/mapPremultipliedBlendModes.js"),k=n(N),F=0,B=!1;t.isMobile=I,t.removeItems=L.default,t.EventEmitter=O.default,t.pluginTarget=P.default,t.mixins=R;var U=t.TextureCache=Object.create(null),X=t.BaseTextureCache=Object.create(null),G=t.premultiplyBlendMode=(0,k.default)()},"./node_modules/pixi.js/lib/core/utils/mapPremultipliedBlendModes.js":function(e,t,r){"use strict";function i(){for(var e=[],t=[],r=0;r<32;r++)e[r]=r,t[r]=r;e[n.BLEND_MODES.NORMAL_NPM]=n.BLEND_MODES.NORMAL,e[n.BLEND_MODES.ADD_NPM]=n.BLEND_MODES.ADD,e[n.BLEND_MODES.SCREEN_NPM]=n.BLEND_MODES.SCREEN,t[n.BLEND_MODES.NORMAL]=n.BLEND_MODES.NORMAL_NPM,t[n.BLEND_MODES.ADD]=n.BLEND_MODES.ADD_NPM,t[n.BLEND_MODES.SCREEN]=n.BLEND_MODES.SCREEN_NPM;var i=[];return i.push(t),i.push(e),i}t.__esModule=!0,t.default=i;var n=r("./node_modules/pixi.js/lib/core/const.js")},"./node_modules/pixi.js/lib/core/utils/maxRecommendedTextures.js":function(e,t,r){"use strict";function i(e){return o.default.tablet||o.default.phone?4:e}t.__esModule=!0,t.default=i;var n=r("./node_modules/ismobilejs/isMobile.js"),o=function(e){return e&&e.__esModule?e:{default:e}}(n)},"./node_modules/pixi.js/lib/core/utils/mixin.js":function(e,t,r){"use strict";function i(e,t){if(e&&t)for(var r=Object.keys(t),i=0;i<r.length;++i){var n=r[i];Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}}function n(e,t){s.push(e,t)}function o(){for(var e=0;e<s.length;e+=2)i(s[e],s[e+1]);s.length=0}t.__esModule=!0,t.mixin=i,t.delayMixin=n,t.performMixins=o;var s=[]},"./node_modules/pixi.js/lib/core/utils/pluginTarget.js":function(e,t,r){"use strict";function i(e){e.__plugins={},e.registerPlugin=function(t,r){e.__plugins[t]=r},e.prototype.initPlugins=function(){this.plugins=this.plugins||{};for(var t in e.__plugins)this.plugins[t]=new e.__plugins[t](this)},e.prototype.destroyPlugins=function(){for(var e in this.plugins)this.plugins[e].destroy(),this.plugins[e]=null;this.plugins=null}}t.__esModule=!0,t.default={mixin:function(e){i(e)}}},"./node_modules/pixi.js/lib/core/utils/trimCanvas.js":function(e,t,r){"use strict";function i(e){var t=e.width,r=e.height,i=e.getContext("2d"),n=i.getImageData(0,0,t,r),o=n.data,s=o.length,a={top:null,left:null,right:null,bottom:null},u=void 0,l=void 0,h=void 0;for(u=0;u<s;u+=4)0!==o[u+3]&&(l=u/4%t,h=~~(u/4/t),null===a.top&&(a.top=h),null===a.left?a.left=l:l<a.left&&(a.left=l),null===a.right?a.right=l+1:a.right<l&&(a.right=l+1),null===a.bottom?a.bottom=h:a.bottom<h&&(a.bottom=h));return t=a.right-a.left,r=a.bottom-a.top+1,{height:r,width:t,data:i.getImageData(a.left,a.top,t,r)}}t.__esModule=!0,t.default=i},"./node_modules/pixi.js/lib/deprecation.js":function(e,t,r){"use strict";function i(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 n(e){var t=e.mesh,r=e.particles,n=e.extras,o=e.filters,s=e.prepare,a=e.loaders,u=e.interaction;Object.defineProperties(e,{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 i("You do not need to use a PIXI Stage any more, you can simply render any container."),e.Container}},DisplayObjectContainer:{get:function(){return i("DisplayObjectContainer has been shortened to Container, please use Container from now on."),e.Container}},Strip:{get:function(){return i("The Strip class has been renamed to Mesh and moved to mesh.Mesh, please use mesh.Mesh from now on."),t.Mesh}},Rope:{get:function(){return i("The Rope class has been moved to mesh.Rope, please use mesh.Rope from now on."),t.Rope}},ParticleContainer:{get:function(){return i("The ParticleContainer class has been moved to particles.ParticleContainer, please use particles.ParticleContainer from now on."),r.ParticleContainer}},MovieClip:{get:function(){return i("The MovieClip class has been moved to extras.AnimatedSprite, please use extras.AnimatedSprite."),n.AnimatedSprite}},TilingSprite:{get:function(){return i("The TilingSprite class has been moved to extras.TilingSprite, please use extras.TilingSprite from now on."),n.TilingSprite}},BitmapText:{get:function(){return i("The BitmapText class has been moved to extras.BitmapText, please use extras.BitmapText from now on."),n.BitmapText}},blendModes:{get:function(){return i("The blendModes has been moved to BLEND_MODES, please use BLEND_MODES from now on."),e.BLEND_MODES}},scaleModes:{get:function(){return i("The scaleModes has been moved to SCALE_MODES, please use SCALE_MODES from now on."),e.SCALE_MODES}},BaseTextureCache:{get:function(){return i("The BaseTextureCache class has been moved to utils.BaseTextureCache, please use utils.BaseTextureCache from now on."),e.utils.BaseTextureCache}},TextureCache:{get:function(){return i("The TextureCache class has been moved to utils.TextureCache, please use utils.TextureCache from now on."),e.utils.TextureCache}},math:{get:function(){return i("The math namespace is deprecated, please access members already accessible on PIXI."),e}},AbstractFilter:{get:function(){return i("AstractFilter has been renamed to Filter, please use PIXI.Filter"),e.Filter}},TransformManual:{get:function(){return i("TransformManual has been renamed to TransformBase, please update your pixi-spine"),e.TransformBase}},TARGET_FPMS:{get:function(){return i("PIXI.TARGET_FPMS has been deprecated, please use PIXI.settings.TARGET_FPMS"),e.settings.TARGET_FPMS},set:function(t){i("PIXI.TARGET_FPMS has been deprecated, please use PIXI.settings.TARGET_FPMS"),e.settings.TARGET_FPMS=t}},FILTER_RESOLUTION:{get:function(){return i("PIXI.FILTER_RESOLUTION has been deprecated, please use PIXI.settings.FILTER_RESOLUTION"),e.settings.FILTER_RESOLUTION},set:function(t){i("PIXI.FILTER_RESOLUTION has been deprecated, please use PIXI.settings.FILTER_RESOLUTION"),e.settings.FILTER_RESOLUTION=t}},RESOLUTION:{get:function(){return i("PIXI.RESOLUTION has been deprecated, please use PIXI.settings.RESOLUTION"),e.settings.RESOLUTION},set:function(t){i("PIXI.RESOLUTION has been deprecated, please use PIXI.settings.RESOLUTION"),e.settings.RESOLUTION=t}},MIPMAP_TEXTURES:{get:function(){return i("PIXI.MIPMAP_TEXTURES has been deprecated, please use PIXI.settings.MIPMAP_TEXTURES"),e.settings.MIPMAP_TEXTURES},set:function(t){i("PIXI.MIPMAP_TEXTURES has been deprecated, please use PIXI.settings.MIPMAP_TEXTURES"),e.settings.MIPMAP_TEXTURES=t}},SPRITE_BATCH_SIZE:{get:function(){return i("PIXI.SPRITE_BATCH_SIZE has been deprecated, please use PIXI.settings.SPRITE_BATCH_SIZE"),e.settings.SPRITE_BATCH_SIZE},set:function(t){i("PIXI.SPRITE_BATCH_SIZE has been deprecated, please use PIXI.settings.SPRITE_BATCH_SIZE"),e.settings.SPRITE_BATCH_SIZE=t}},SPRITE_MAX_TEXTURES:{get:function(){return i("PIXI.SPRITE_MAX_TEXTURES has been deprecated, please use PIXI.settings.SPRITE_MAX_TEXTURES"),e.settings.SPRITE_MAX_TEXTURES},set:function(t){i("PIXI.SPRITE_MAX_TEXTURES has been deprecated, please use PIXI.settings.SPRITE_MAX_TEXTURES"),e.settings.SPRITE_MAX_TEXTURES=t}},RETINA_PREFIX:{get:function(){return i("PIXI.RETINA_PREFIX has been deprecated, please use PIXI.settings.RETINA_PREFIX"),e.settings.RETINA_PREFIX},set:function(t){i("PIXI.RETINA_PREFIX has been deprecated, please use PIXI.settings.RETINA_PREFIX"),e.settings.RETINA_PREFIX=t}},DEFAULT_RENDER_OPTIONS:{get:function(){return i("PIXI.DEFAULT_RENDER_OPTIONS has been deprecated, please use PIXI.settings.DEFAULT_RENDER_OPTIONS"),e.settings.RENDER_OPTIONS}}});for(var l=[{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"}],h=0;h<l.length;h++)!function(t){var r=l[t];Object.defineProperty(e[r.parent],"DEFAULT",{get:function(){return i("PIXI."+r.parent+".DEFAULT has been deprecated, please use PIXI.settings."+r.target),e.settings[r.target]},set:function(t){i("PIXI."+r.parent+".DEFAULT has been deprecated, please use PIXI.settings."+r.target),e.settings[r.target]=t}})}(h);Object.defineProperties(e.settings,{PRECISION:{get:function(){return i("PIXI.settings.PRECISION has been deprecated, please use PIXI.settings.PRECISION_FRAGMENT"),e.settings.PRECISION_FRAGMENT},set:function(t){i("PIXI.settings.PRECISION has been deprecated, please use PIXI.settings.PRECISION_FRAGMENT"),e.settings.PRECISION_FRAGMENT=t}}}),n.AnimatedSprite&&Object.defineProperties(n,{MovieClip:{get:function(){return i("The MovieClip class has been renamed to AnimatedSprite, please use AnimatedSprite from now on."),n.AnimatedSprite}}}),e.DisplayObject.prototype.generateTexture=function(e,t,r){return i("generateTexture has moved to the renderer, please use renderer.generateTexture(displayObject)"),e.generateTexture(this,t,r)},e.Graphics.prototype.generateTexture=function(e,t){return i("graphics generate texture has moved to the renderer. Or to render a graphics to a texture using canvas please use generateCanvasTexture"),this.generateCanvasTexture(e,t)},e.RenderTexture.prototype.render=function(e,t,r,n){this.legacyRenderer.render(e,this,r,t,!n),i("RenderTexture.render is now deprecated, please use renderer.render(displayObject, renderTexture)")},e.RenderTexture.prototype.getImage=function(e){return i("RenderTexture.getImage is now deprecated, please use renderer.extract.image(target)"),this.legacyRenderer.extract.image(e)},e.RenderTexture.prototype.getBase64=function(e){return i("RenderTexture.getBase64 is now deprecated, please use renderer.extract.base64(target)"),this.legacyRenderer.extract.base64(e)},e.RenderTexture.prototype.getCanvas=function(e){return i("RenderTexture.getCanvas is now deprecated, please use renderer.extract.canvas(target)"),this.legacyRenderer.extract.canvas(e)},e.RenderTexture.prototype.getPixels=function(e){return i("RenderTexture.getPixels is now deprecated, please use renderer.extract.pixels(target)"),this.legacyRenderer.pixels(e)},e.Sprite.prototype.setTexture=function(e){this.texture=e,i("setTexture is now deprecated, please use the texture property, e.g : sprite.texture = texture;")},n.BitmapText&&(n.BitmapText.prototype.setText=function(e){this.text=e,i("setText is now deprecated, please use the text property, e.g : myBitmapText.text = 'my text';")}),e.Text.prototype.setText=function(e){this.text=e,i("setText is now deprecated, please use the text property, e.g : myText.text = 'my text';")},e.Text.calculateFontProperties=function(t){return i("Text.calculateFontProperties is now deprecated, please use the TextMetrics.measureFont"),e.TextMetrics.measureFont(t)},Object.defineProperties(e.Text,{fontPropertiesCache:{get:function(){return i("Text.fontPropertiesCache is deprecated"),e.TextMetrics._fonts}},fontPropertiesCanvas:{get:function(){return i("Text.fontPropertiesCanvas is deprecated"),e.TextMetrics._canvas}},fontPropertiesContext:{get:function(){return i("Text.fontPropertiesContext is deprecated"),e.TextMetrics._context}}}),e.Text.prototype.setStyle=function(e){this.style=e,i("setStyle is now deprecated, please use the style property, e.g : myText.style = style;")},e.Text.prototype.determineFontProperties=function(t){return i("determineFontProperties is now deprecated, please use TextMetrics.measureFont method"),e.TextMetrics.measureFont(t)},e.Text.getFontStyle=function(t){return i("getFontStyle is now deprecated, please use TextStyle.toFontString() instead"),t=t||{},t instanceof e.TextStyle||(t=new e.TextStyle(t)),t.toFontString()},Object.defineProperties(e.TextStyle.prototype,{font:{get:function(){i("text style property 'font' is now deprecated, please use the 'fontFamily', 'fontSize', 'fontStyle', 'fontVariant' and 'fontWeight' properties from now on");var e="number"==typeof this._fontSize?this._fontSize+"px":this._fontSize;return this._fontStyle+" "+this._fontVariant+" "+this._fontWeight+" "+e+" "+this._fontFamily},set:function(e){i("text style property 'font' is now deprecated, please use the 'fontFamily','fontSize',fontStyle','fontVariant' and 'fontWeight' properties from now on"),e.indexOf("italic")>1?this._fontStyle="italic":e.indexOf("oblique")>-1?this._fontStyle="oblique":this._fontStyle="normal",e.indexOf("small-caps")>-1?this._fontVariant="small-caps":this._fontVariant="normal";var t=e.split(" "),r=-1;this._fontSize=26;for(var n=0;n<t.length;++n)if(t[n].match(/(px|pt|em|%)/)){r=n,this._fontSize=t[n];break}this._fontWeight="normal";for(var o=0;o<r;++o)if(t[o].match(/(bold|bolder|lighter|100|200|300|400|500|600|700|800|900)/)){this._fontWeight=t[o];break}if(r>-1&&r<t.length-1){this._fontFamily="";for(var s=r+1;s<t.length;++s)this._fontFamily+=t[s]+" ";this._fontFamily=this._fontFamily.slice(0,-1)}else this._fontFamily="Arial";this.styleID++}}}),e.Texture.prototype.setFrame=function(e){this.frame=e,i("setFrame is now deprecated, please use the frame property, e.g: myTexture.frame = frame;")},e.Texture.addTextureToCache=function(t,r){e.Texture.addToCache(t,r),i("Texture.addTextureToCache is deprecated, please use Texture.addToCache from now on.")},e.Texture.removeTextureFromCache=function(t){return i("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"),e.BaseTexture.removeFromCache(t),e.Texture.removeFromCache(t)},Object.defineProperties(o,{AbstractFilter:{get:function(){return i("AstractFilter has been renamed to Filter, please use PIXI.Filter"),e.AbstractFilter}},SpriteMaskFilter:{get:function(){return i("filters.SpriteMaskFilter is an undocumented alias, please use SpriteMaskFilter from now on."),e.SpriteMaskFilter}}}),e.utils.uuid=function(){return i("utils.uuid() is deprecated, please use utils.uid() from now on."),e.utils.uid()},e.utils.canUseNewCanvasBlendModes=function(){return i("utils.canUseNewCanvasBlendModes() is deprecated, please use CanvasTinter.canUseMultiply from now on"),e.CanvasTinter.canUseMultiply};var c=!0;if(Object.defineProperty(e.utils,"_saidHello",{set:function(e){e&&(i("PIXI.utils._saidHello is deprecated, please use PIXI.utils.skipHello()"),this.skipHello()),c=e},get:function(){return c}}),s.BasePrepare&&(s.BasePrepare.prototype.register=function(e,t){return i("renderer.plugins.prepare.register is now deprecated, please use renderer.plugins.prepare.registerFindHook & renderer.plugins.prepare.registerUploadHook"),e&&this.registerFindHook(e),t&&this.registerUploadHook(t),this}),s.canvas&&Object.defineProperty(s.canvas,"UPLOADS_PER_FRAME",{set:function(){i("PIXI.CanvasPrepare.UPLOADS_PER_FRAME has been removed. Please set renderer.plugins.prepare.limiter.maxItemsPerFrame on your renderer")},get:function(){return i("PIXI.CanvasPrepare.UPLOADS_PER_FRAME has been removed. Please use renderer.plugins.prepare.limiter"),NaN}}),s.webgl&&Object.defineProperty(s.webgl,"UPLOADS_PER_FRAME",{set:function(){i("PIXI.WebGLPrepare.UPLOADS_PER_FRAME has been removed. Please set renderer.plugins.prepare.limiter.maxItemsPerFrame on your renderer")},get:function(){return i("PIXI.WebGLPrepare.UPLOADS_PER_FRAME has been removed. Please use renderer.plugins.prepare.limiter"),NaN}}),a.Loader){var d=a.Resource,f=a.Loader;Object.defineProperties(d.prototype,{isJson:{get:function(){return i("The isJson property is deprecated, please use `resource.type === Resource.TYPE.JSON`."),this.type===d.TYPE.JSON}},isXml:{get:function(){return i("The isXml property is deprecated, please use `resource.type === Resource.TYPE.XML`."),this.type===d.TYPE.XML}},isImage:{get:function(){return i("The isImage property is deprecated, please use `resource.type === Resource.TYPE.IMAGE`."),this.type===d.TYPE.IMAGE}},isAudio:{get:function(){return i("The isAudio property is deprecated, please use `resource.type === Resource.TYPE.AUDIO`."),this.type===d.TYPE.AUDIO}},isVideo:{get:function(){return i("The isVideo property is deprecated, please use `resource.type === Resource.TYPE.VIDEO`."),this.type===d.TYPE.VIDEO}}}),Object.defineProperties(f.prototype,{before:{get:function(){return i("The before() method is deprecated, please use pre()."),this.pre}},after:{get:function(){return i("The after() method is deprecated, please use use()."),this.use}}})}u.interactiveTarget&&Object.defineProperty(u.interactiveTarget,"defaultCursor",{set:function(e){i("Property defaultCursor has been replaced with 'cursor'. "),this.cursor=e},get:function(){return i("Property defaultCursor has been replaced with 'cursor'. "),this.cursor}}),u.InteractionManager&&(Object.defineProperty(u.InteractionManager,"defaultCursorStyle",{set:function(e){i("Property defaultCursorStyle has been replaced with 'cursorStyles.default'. "),this.cursorStyles.default=e},get:function(){return i("Property defaultCursorStyle has been replaced with 'cursorStyles.default'. "),this.cursorStyles.default}}),Object.defineProperty(u.InteractionManager,"currentCursorStyle",{set:function(e){i("Property currentCursorStyle has been removed.See the currentCursorMode property, which works differently."),this.currentCursorMode=e},get:function(){return i("Property currentCursorStyle has been removed.See the currentCursorMode property, which works differently."),this.currentCursorMode}}))}t.__esModule=!0,t.default=n},"./node_modules/pixi.js/lib/extract/canvas/CanvasExtract.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var n=r("./node_modules/pixi.js/lib/core/index.js"),o=function(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}(n),s=new o.Rectangle,a=function(){function e(t){i(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 t=this.renderer,r=void 0,i=void 0,n=void 0,a=void 0;e&&(a=e instanceof o.RenderTexture?e:t.generateTexture(e)),a?(r=a.baseTexture._canvasRenderTarget.context,i=a.baseTexture._canvasRenderTarget.resolution,n=a.frame):(r=t.rootContext,n=s,n.width=this.renderer.width,n.height=this.renderer.height);var u=n.width*i,l=n.height*i,h=new o.CanvasRenderTarget(u,l),c=r.getImageData(n.x*i,n.y*i,u,l);return h.context.putImageData(c,0,0),h.canvas},e.prototype.pixels=function(e){var t=this.renderer,r=void 0,i=void 0,n=void 0,a=void 0;return e&&(a=e instanceof o.RenderTexture?e:t.generateTexture(e)),a?(r=a.baseTexture._canvasRenderTarget.context,i=a.baseTexture._canvasRenderTarget.resolution,n=a.frame):(r=t.rootContext,n=s,n.width=t.width,n.height=t.height),r.getImageData(0,0,n.width*i,n.height*i).data},e.prototype.destroy=function(){this.renderer.extract=null,this.renderer=null},e}();t.default=a,o.CanvasRenderer.registerPlugin("extract",a)},"./node_modules/pixi.js/lib/extract/index.js":function(e,t,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var n=r("./node_modules/pixi.js/lib/extract/webgl/WebGLExtract.js");Object.defineProperty(t,"webgl",{enumerable:!0,get:function(){return i(n).default}});var o=r("./node_modules/pixi.js/lib/extract/canvas/CanvasExtract.js");Object.defineProperty(t,"canvas",{enumerable:!0,get:function(){return i(o).default}})},"./node_modules/pixi.js/lib/extract/webgl/WebGLExtract.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var n=r("./node_modules/pixi.js/lib/core/index.js"),o=function(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}(n),s=new o.Rectangle,a=function(){function e(t){i(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 t=this.renderer,r=void 0,i=void 0,n=void 0,a=!1,u=void 0;e&&(u=e instanceof o.RenderTexture?e:this.renderer.generateTexture(e)),u?(r=u.baseTexture._glRenderTargets[this.renderer.CONTEXT_UID],i=r.resolution,n=u.frame,a=!1):(r=this.renderer.rootRenderTarget,i=r.resolution,a=!0,n=s,n.width=r.size.width,n.height=r.size.height);var l=n.width*i,h=n.height*i,c=new o.CanvasRenderTarget(l,h);if(r){t.bindRenderTarget(r);var d=new Uint8Array(4*l*h),f=t.gl;f.readPixels(n.x*i,n.y*i,l,h,f.RGBA,f.UNSIGNED_BYTE,d);var p=c.context.getImageData(0,0,l,h);p.data.set(d),c.context.putImageData(p,0,0),a&&(c.context.scale(1,-1),c.context.drawImage(c.canvas,0,-h))}return c.canvas},e.prototype.pixels=function(e){var t=this.renderer,r=void 0,i=void 0,n=void 0,a=void 0;e&&(a=e instanceof o.RenderTexture?e:this.renderer.generateTexture(e)),a?(r=a.baseTexture._glRenderTargets[this.renderer.CONTEXT_UID],i=r.resolution,n=a.frame):(r=this.renderer.rootRenderTarget,i=r.resolution,n=s,n.width=r.size.width,n.height=r.size.height);var u=n.width*i,l=n.height*i,h=new Uint8Array(4*u*l);if(r){t.bindRenderTarget(r);var c=t.gl;c.readPixels(n.x*i,n.y*i,u,l,c.RGBA,c.UNSIGNED_BYTE,h)}return h},e.prototype.destroy=function(){this.renderer.extract=null,this.renderer=null},e}();t.default=a,o.WebGLRenderer.registerPlugin("extract",a)},"./node_modules/pixi.js/lib/extras/AnimatedSprite.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(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)}t.__esModule=!0;var s=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}}(),a=r("./node_modules/pixi.js/lib/core/index.js"),u=function(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}(a),l=function(e){function t(r,o){i(this,t);var s=n(this,e.call(this,r[0]instanceof u.Texture?r[0]:r[0].texture));return s._textures=null,s._durations=null,s.textures=r,s._autoUpdate=!1!==o,s.animationSpeed=1,s.loop=!0,s.onComplete=null,s.onFrameChange=null,s.onLoop=null,s._currentTime=0,s.playing=!1,s}return o(t,e),t.prototype.stop=function(){this.playing&&(this.playing=!1,this._autoUpdate&&u.ticker.shared.remove(this.update,this))},t.prototype.play=function(){this.playing||(this.playing=!0,this._autoUpdate&&u.ticker.shared.add(this.update,this,u.UPDATE_PRIORITY.HIGH))},t.prototype.gotoAndStop=function(e){this.stop();var t=this.currentFrame;this._currentTime=e,t!==this.currentFrame&&this.updateTexture()},t.prototype.gotoAndPlay=function(e){var t=this.currentFrame;this._currentTime=e,t!==this.currentFrame&&this.updateTexture(),this.play()},t.prototype.update=function(e){var t=this.animationSpeed*e,r=this.currentFrame;if(null!==this._durations){var i=this._currentTime%1*this._durations[this.currentFrame];for(i+=t/60*1e3;i<0;)this._currentTime--,i+=this._durations[this.currentFrame];var n=Math.sign(this.animationSpeed*e);for(this._currentTime=Math.floor(this._currentTime);i>=this._durations[this.currentFrame];)i-=this._durations[this.currentFrame]*n,this._currentTime+=n;this._currentTime+=i/this._durations[this.currentFrame]}else this._currentTime+=t;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())},t.prototype.updateTexture=function(){this._texture=this._textures[this.currentFrame],this._textureID=-1,this.cachedTint=16777215,this.onFrameChange&&this.onFrameChange(this.currentFrame)},t.prototype.destroy=function(t){this.stop(),e.prototype.destroy.call(this,t)},t.fromFrames=function(e){for(var r=[],i=0;i<e.length;++i)r.push(u.Texture.fromFrame(e[i]));return new t(r)},t.fromImages=function(e){for(var r=[],i=0;i<e.length;++i)r.push(u.Texture.fromImage(e[i]));return new t(r)},s(t,[{key:"totalFrames",get:function(){return this._textures.length}},{key:"textures",get:function(){return this._textures},set:function(e){if(e[0]instanceof u.Texture)this._textures=e,this._durations=null;else{this._textures=[],this._durations=[];for(var t=0;t<e.length;t++)this._textures.push(e[t].texture),this._durations.push(e[t].time)}this.gotoAndStop(0),this.updateTexture()}},{key:"currentFrame",get:function(){var e=Math.floor(this._currentTime)%this._textures.length;return e<0&&(e+=this._textures.length),e}}]),t}(u.Sprite);t.default=l},"./node_modules/pixi.js/lib/extras/BitmapText.js":function(e,t,r){"use strict";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 o(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)}t.__esModule=!0;var a=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}}(),u=r("./node_modules/pixi.js/lib/core/index.js"),l=function(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}(u),h=r("./node_modules/pixi.js/lib/core/math/ObservablePoint.js"),c=i(h),d=r("./node_modules/pixi.js/lib/core/settings.js"),f=i(d),p=function(e){function t(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};n(this,t);var s=o(this,e.call(this));return s._textWidth=0,s._textHeight=0,s._glyphs=[],s._font={tint:void 0!==i.tint?i.tint:16777215,align:i.align||"left",name:null,size:0},s.font=i.font,s._text=r,s._maxWidth=0,s._maxLineHeight=0,s._anchor=new c.default(function(){s.dirty=!0},s,0,0),s.dirty=!1,s.updateText(),s}return s(t,e),t.prototype.updateText=function(){for(var e=t.fonts[this._font.name],r=this._font.size/e.size,i=new l.Point,n=[],o=[],s=null,a=0,u=0,h=0,c=-1,d=0,f=0,p=0,m=0;m<this.text.length;m++){var _=this.text.charCodeAt(m);if(/(\s)/.test(this.text.charAt(m))&&(c=m,d=a),/(?:\r\n|\r|\n)/.test(this.text.charAt(m)))o.push(a),u=Math.max(u,a),h++,i.x=0,i.y+=e.lineHeight,s=null;else if(-1!==c&&this._maxWidth>0&&i.x*r>this._maxWidth)l.utils.removeItems(n,c-f,m-c),m=c,c=-1,++f,o.push(d),u=Math.max(u,d),h++,i.x=0,i.y+=e.lineHeight,s=null;else{var v=e.chars[_];v&&(s&&v.kerning[s]&&(i.x+=v.kerning[s]),n.push({texture:v.texture,line:h,charCode:_,position:new l.Point(i.x+v.xOffset,i.y+v.yOffset)}),a=i.x+(v.texture.width+v.xOffset),i.x+=v.xAdvance,p=Math.max(p,v.yOffset+v.texture.height),s=_)}}o.push(a),u=Math.max(u,a);for(var g=[],y=0;y<=h;y++){var x=0;"right"===this._font.align?x=u-o[y]:"center"===this._font.align&&(x=(u-o[y])/2),g.push(x)}for(var b=n.length,T=this.tint,w=0;w<b;w++){var E=this._glyphs[w];E?E.texture=n[w].texture:(E=new l.Sprite(n[w].texture),this._glyphs.push(E)),E.position.x=(n[w].position.x+g[n[w].line])*r,E.position.y=n[w].position.y*r,E.scale.x=E.scale.y=r,E.tint=T,E.parent||this.addChild(E)}for(var j=b;j<this._glyphs.length;++j)this.removeChild(this._glyphs[j]);if(this._textWidth=u*r,this._textHeight=(i.y+e.lineHeight)*r,0!==this.anchor.x||0!==this.anchor.y)for(var S=0;S<b;S++)this._glyphs[S].x-=this._textWidth*this.anchor.x,this._glyphs[S].y-=this._textHeight*this.anchor.y;this._maxLineHeight=p*r},t.prototype.updateTransform=function(){this.validate(),this.containerUpdateTransform()},t.prototype.getLocalBounds=function(){return this.validate(),e.prototype.getLocalBounds.call(this)},t.prototype.validate=function(){this.dirty&&(this.updateText(),this.dirty=!1)},t.registerFont=function(e,r){var i={},n=e.getElementsByTagName("info")[0],o=e.getElementsByTagName("common")[0],s=r.baseTexture.resolution||f.default.RESOLUTION;i.font=n.getAttribute("face"),i.size=parseInt(n.getAttribute("size"),10),i.lineHeight=parseInt(o.getAttribute("lineHeight"),10)/s,i.chars={};for(var a=e.getElementsByTagName("char"),u=0;u<a.length;u++){var h=a[u],c=parseInt(h.getAttribute("id"),10),d=new l.Rectangle(parseInt(h.getAttribute("x"),10)/s+r.frame.x/s,parseInt(h.getAttribute("y"),10)/s+r.frame.y/s,parseInt(h.getAttribute("width"),10)/s,parseInt(h.getAttribute("height"),10)/s);i.chars[c]={xOffset:parseInt(h.getAttribute("xoffset"),10)/s,yOffset:parseInt(h.getAttribute("yoffset"),10)/s,xAdvance:parseInt(h.getAttribute("xadvance"),10)/s,kerning:{},texture:new l.Texture(r.baseTexture,d)}}for(var p=e.getElementsByTagName("kerning"),m=0;m<p.length;m++){var _=p[m],v=parseInt(_.getAttribute("first"),10)/s,g=parseInt(_.getAttribute("second"),10)/s,y=parseInt(_.getAttribute("amount"),10)/s;i.chars[g]&&(i.chars[g].kerning[v]=y)}return t.fonts[i.font]=i,i},a(t,[{key:"tint",get:function(){return this._font.tint},set:function(e){this._font.tint="number"==typeof e&&e>=0?e:16777215,this.dirty=!0}},{key:"align",get:function(){return this._font.align},set:function(e){this._font.align=e||"left",this.dirty=!0}},{key:"anchor",get:function(){return this._anchor},set:function(e){"number"==typeof e?this._anchor.set(e):this._anchor.copy(e)}},{key:"font",get:function(){return this._font},set:function(e){e&&("string"==typeof e?(e=e.split(" "),this._font.name=1===e.length?e[0]:e.slice(1).join(" "),this._font.size=e.length>=2?parseInt(e[0],10):t.fonts[this._font.name].size):(this._font.name=e.name,this._font.size="number"==typeof e.size?e.size:parseInt(e.size,10)),this.dirty=!0)}},{key:"text",get:function(){return this._text},set:function(e){e=e.toString()||" ",this._text!==e&&(this._text=e,this.dirty=!0)}},{key:"maxWidth",get:function(){return this._maxWidth},set:function(e){this._maxWidth!==e&&(this._maxWidth=e,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}}]),t}(l.Container);t.default=p,p.fonts={}},"./node_modules/pixi.js/lib/extras/TextureTransform.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var n=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}}(),o=r("./node_modules/pixi.js/lib/core/math/Matrix.js"),s=function(e){return e&&e.__esModule?e:{default:e}}(o),a=new s.default,u=function(){function e(t,r){i(this,e),this._texture=t,this.mapCoord=new s.default,this.uClampFrame=new Float32Array(4),this.uClampOffset=new Float32Array(2),this._lastTextureID=-1,this.clampOffset=0,this.clampMargin=void 0===r?.5:r}return e.prototype.multiplyUvs=function(e,t){void 0===t&&(t=e);for(var r=this.mapCoord,i=0;i<e.length;i+=2){var n=e[i],o=e[i+1];t[i]=n*r.a+o*r.c+r.tx,t[i+1]=n*r.b+o*r.d+r.ty}return t},e.prototype.update=function(e){var t=this._texture;if(!t||!t.valid)return!1;if(!e&&this._lastTextureID===t._updateID)return!1;this._lastTextureID=t._updateID;var r=t._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 i=t.orig,n=t.trim;n&&(a.set(i.width/n.width,0,0,i.height/n.height,-n.x/n.width,-n.y/n.height),this.mapCoord.append(a));var o=t.baseTexture,s=this.uClampFrame,u=this.clampMargin/o.resolution,l=this.clampOffset;return s[0]=(t._frame.x+u+l)/o.width,s[1]=(t._frame.y+u+l)/o.height,s[2]=(t._frame.x+t._frame.width-u+l)/o.width,s[3]=(t._frame.y+t._frame.height-u+l)/o.height,this.uClampOffset[0]=l/o.realWidth,this.uClampOffset[1]=l/o.realHeight,!0},n(e,[{key:"texture",get:function(){return this._texture},set:function(e){this._texture=e,this._lastTextureID=-1}}]),e}();t.default=u},"./node_modules/pixi.js/lib/extras/TilingSprite.js":function(e,t,r){"use strict";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 o(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)}t.__esModule=!0;var a=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}}(),u=r("./node_modules/pixi.js/lib/core/index.js"),l=function(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}(u),h=r("./node_modules/pixi.js/lib/core/sprites/canvas/CanvasTinter.js"),c=i(h),d=r("./node_modules/pixi.js/lib/extras/TextureTransform.js"),f=i(d),p=new l.Point,m=function(e){function t(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:100;n(this,t);var a=o(this,e.call(this,r));return a.tileTransform=new l.TransformStatic,a._width=i,a._height=s,a._canvasPattern=null,a.uvTransform=r.transform||new f.default(r),a.pluginName="tilingSprite",a.uvRespectAnchor=!1,a}return s(t,e),t.prototype._onTextureUpdate=function(){this.uvTransform&&(this.uvTransform.texture=this._texture),this.cachedTint=16777215},t.prototype._renderWebGL=function(e){var t=this._texture;t&&t.valid&&(this.tileTransform.updateLocalTransform(),this.uvTransform.update(),e.setObjectRenderer(e.plugins[this.pluginName]),e.plugins[this.pluginName].render(this))},t.prototype._renderCanvas=function(e){var t=this._texture;if(t.baseTexture.hasLoaded){var r=e.context,i=this.worldTransform,n=e.resolution,o=t.baseTexture,s=o.resolution,a=this.tilePosition.x/this.tileScale.x%t._frame.width*s,u=this.tilePosition.y/this.tileScale.y%t._frame.height*s;if(this._textureID!==this._texture._updateID||this.cachedTint!==this.tint){this._textureID=this._texture._updateID;var h=new l.CanvasRenderTarget(t._frame.width,t._frame.height,s);16777215!==this.tint?(this.tintedTexture=c.default.getTintedTexture(this,this.tint),h.context.drawImage(this.tintedTexture,0,0)):h.context.drawImage(o.source,-t._frame.x*s,-t._frame.y*s),this.cachedTint=this.tint,this._canvasPattern=h.context.createPattern(h.canvas,"repeat")}r.globalAlpha=this.worldAlpha,r.setTransform(i.a*n,i.b*n,i.c*n,i.d*n,i.tx*n,i.ty*n),e.setBlendMode(this.blendMode),r.fillStyle=this._canvasPattern,r.scale(this.tileScale.x/s,this.tileScale.y/s);var d=this.anchor.x*-this._width,f=this.anchor.y*-this._height;this.uvRespectAnchor?(r.translate(a,u),r.fillRect(-a+d,-u+f,this._width/this.tileScale.x*s,this._height/this.tileScale.y*s)):(r.translate(a+d,u+f),r.fillRect(-a,-u,this._width/this.tileScale.x*s,this._height/this.tileScale.y*s))}},t.prototype._calculateBounds=function(){var e=this._width*-this._anchor._x,t=this._height*-this._anchor._y,r=this._width*(1-this._anchor._x),i=this._height*(1-this._anchor._y);this._bounds.addFrame(this.transform,e,t,r,i)},t.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 l.Rectangle),t=this._localBoundsRect),this._bounds.getRectangle(t)):e.prototype.getLocalBounds.call(this,t)},t.prototype.containsPoint=function(e){this.worldTransform.applyInverse(e,p);var t=this._width,r=this._height,i=-t*this.anchor._x;if(p.x>=i&&p.x<i+t){var n=-r*this.anchor._y;if(p.y>=n&&p.y<n+r)return!0}return!1},t.prototype.destroy=function(t){e.prototype.destroy.call(this,t),this.tileTransform=null,this.uvTransform=null},t.from=function(e,r,i){return new t(l.Texture.from(e),r,i)},t.fromFrame=function(e,r,i){var n=l.utils.TextureCache[e];if(!n)throw new Error('The frameId "'+e+'" does not exist in the texture cache '+this);return new t(n,r,i)},t.fromImage=function(e,r,i,n,o){return new t(l.Texture.fromImage(e,n,o),r,i)},a(t,[{key:"clampMargin",get:function(){return this.uvTransform.clampMargin},set:function(e){this.uvTransform.clampMargin=e,this.uvTransform.update(!0)}},{key:"tileScale",get:function(){return this.tileTransform.scale},set:function(e){this.tileTransform.scale.copy(e)}},{key:"tilePosition",get:function(){return this.tileTransform.position},set:function(e){this.tileTransform.position.copy(e)}},{key:"width",get:function(){return this._width},set:function(e){this._width=e}},{key:"height",get:function(){return this._height},set:function(e){this._height=e}}]),t}(l.Sprite);t.default=m},"./node_modules/pixi.js/lib/extras/cacheAsBitmap.js":function(e,t,r){"use strict";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")}var o=r("./node_modules/pixi.js/lib/core/index.js"),s=function(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}(o),a=r("./node_modules/pixi.js/lib/core/textures/Texture.js"),u=i(a),l=r("./node_modules/pixi.js/lib/core/textures/BaseTexture.js"),h=i(l),c=r("./node_modules/pixi.js/lib/core/utils/index.js"),d=s.DisplayObject,f=new s.Matrix;d.prototype._cacheAsBitmap=!1,d.prototype._cacheData=!1;var p=function e(){n(this,e),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(d.prototype,{cacheAsBitmap:{get:function(){return this._cacheAsBitmap},set:function(e){if(this._cacheAsBitmap!==e){this._cacheAsBitmap=e;var t=void 0;e?(this._cacheData||(this._cacheData=new p),t=this._cacheData,t.originalRenderWebGL=this.renderWebGL,t.originalRenderCanvas=this.renderCanvas,t.originalUpdateTransform=this.updateTransform,t.originalCalculateBounds=this._calculateBounds,t.originalGetLocalBounds=this.getLocalBounds,t.originalDestroy=this.destroy,t.originalContainsPoint=this.containsPoint,t.originalMask=this._mask,t.originalFilterArea=this.filterArea,this.renderWebGL=this._renderCachedWebGL,this.renderCanvas=this._renderCachedCanvas,this.destroy=this._cacheAsBitmapDestroy):(t=this._cacheData,t.sprite&&this._destroyCachedDisplayObject(),this.renderWebGL=t.originalRenderWebGL,this.renderCanvas=t.originalRenderCanvas,this._calculateBounds=t.originalCalculateBounds,this.getLocalBounds=t.originalGetLocalBounds,this.destroy=t.originalDestroy,this.updateTransform=t.originalUpdateTransform,this.containsPoint=t.originalContainsPoint,this._mask=t.originalMask,this.filterArea=t.originalFilterArea)}}}}),d.prototype._renderCachedWebGL=function(e){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObject(e),this._cacheData.sprite._transformID=-1,this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._renderWebGL(e))},d.prototype._initCachedDisplayObject=function(e){if(!this._cacheData||!this._cacheData.sprite){var t=this.alpha;this.alpha=1,e.currentRenderer.flush();var r=this.getLocalBounds().clone();if(this._filters){var i=this._filters[0].padding;r.pad(i)}var n=e._activeRenderTarget,o=e.filterManager.filterStack,a=s.RenderTexture.create(0|r.width,0|r.height),l="cacheAsBitmap_"+(0,c.uid)();this._cacheData.textureCacheId=l,h.default.addToCache(a.baseTexture,l),u.default.addToCache(a,l);var d=f;d.tx=-r.x,d.ty=-r.y,this.transform.worldTransform.identity(),this.renderWebGL=this._cacheData.originalRenderWebGL,e.render(this,a,!0,d,!0),e.bindRenderTarget(n),e.filterManager.filterStack=o,this.renderWebGL=this._renderCachedWebGL,this.updateTransform=this.displayObjectUpdateTransform,this._mask=null,this.filterArea=null;var p=new s.Sprite(a);p.transform.worldTransform=this.transform.worldTransform,p.anchor.x=-r.x/r.width,p.anchor.y=-r.y/r.height,p.alpha=t,p._bounds=this._bounds,this._calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._cacheData.sprite=p,this.transform._parentID=-1,this.parent?this.updateTransform():(this.parent=e._tempDisplayObjectParent,this.updateTransform(),this.parent=null),this.containsPoint=p.containsPoint.bind(p)}},d.prototype._renderCachedCanvas=function(e){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObjectCanvas(e),this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite.renderCanvas(e))},d.prototype._initCachedDisplayObjectCanvas=function(e){if(!this._cacheData||!this._cacheData.sprite){var t=this.getLocalBounds(),r=this.alpha;this.alpha=1;var i=e.context,n=s.RenderTexture.create(0|t.width,0|t.height),o="cacheAsBitmap_"+(0,c.uid)();this._cacheData.textureCacheId=o,h.default.addToCache(n.baseTexture,o),u.default.addToCache(n,o);var a=f;this.transform.localTransform.copy(a),a.invert(),a.tx-=t.x,a.ty-=t.y,this.renderCanvas=this._cacheData.originalRenderCanvas,e.render(this,n,!0,a,!1),e.context=i,this.renderCanvas=this._renderCachedCanvas,this._calculateBounds=this._calculateCachedBounds,this._mask=null,this.filterArea=null;var l=new s.Sprite(n);l.transform.worldTransform=this.transform.worldTransform,l.anchor.x=-t.x/t.width,l.anchor.y=-t.y/t.height,l._bounds=this._bounds,l.alpha=r,this.parent?this.updateTransform():(this.parent=e._tempDisplayObjectParent,this.updateTransform(),this.parent=null),this.updateTransform=this.displayObjectUpdateTransform,this._cacheData.sprite=l,this.containsPoint=l.containsPoint.bind(l)}},d.prototype._calculateCachedBounds=function(){this._cacheData.sprite._calculateBounds()},d.prototype._getCachedLocalBounds=function(){return this._cacheData.sprite.getLocalBounds()},d.prototype._destroyCachedDisplayObject=function(){this._cacheData.sprite._texture.destroy(!0),this._cacheData.sprite=null,h.default.removeFromCache(this._cacheData.textureCacheId),u.default.removeFromCache(this._cacheData.textureCacheId),this._cacheData.textureCacheId=null},d.prototype._cacheAsBitmapDestroy=function(e){this.cacheAsBitmap=!1,this.destroy(e)}},"./node_modules/pixi.js/lib/extras/getChildByName.js":function(e,t,r){"use strict";var i=r("./node_modules/pixi.js/lib/core/index.js"),n=function(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}(i);n.DisplayObject.prototype.name=null,n.Container.prototype.getChildByName=function(e){for(var t=0;t<this.children.length;t++)if(this.children[t].name===e)return this.children[t];return null}},"./node_modules/pixi.js/lib/extras/getGlobalPosition.js":function(e,t,r){"use strict";var i=r("./node_modules/pixi.js/lib/core/index.js"),n=function(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}(i);n.DisplayObject.prototype.getGlobalPosition=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:new n.Point,t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.parent?this.parent.toGlobal(this.position,e,t):(e.x=this.position.x,e.y=this.position.y),e}},"./node_modules/pixi.js/lib/extras/index.js":function(e,t,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.BitmapText=t.TilingSpriteRenderer=t.TilingSprite=t.TextureTransform=t.AnimatedSprite=void 0;var n=r("./node_modules/pixi.js/lib/extras/AnimatedSprite.js");Object.defineProperty(t,"AnimatedSprite",{enumerable:!0,get:function(){return i(n).default}});var o=r("./node_modules/pixi.js/lib/extras/TextureTransform.js");Object.defineProperty(t,"TextureTransform",{enumerable:!0,get:function(){return i(o).default}});var s=r("./node_modules/pixi.js/lib/extras/TilingSprite.js");Object.defineProperty(t,"TilingSprite",{enumerable:!0,get:function(){return i(s).default}});var a=r("./node_modules/pixi.js/lib/extras/webgl/TilingSpriteRenderer.js");Object.defineProperty(t,"TilingSpriteRenderer",{enumerable:!0,get:function(){return i(a).default}});var u=r("./node_modules/pixi.js/lib/extras/BitmapText.js");Object.defineProperty(t,"BitmapText",{enumerable:!0,get:function(){return i(u).default}}),r("./node_modules/pixi.js/lib/extras/cacheAsBitmap.js"),r("./node_modules/pixi.js/lib/extras/getChildByName.js"),r("./node_modules/pixi.js/lib/extras/getGlobalPosition.js")},"./node_modules/pixi.js/lib/extras/webgl/TilingSpriteRenderer.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(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)}t.__esModule=!0;var s=r("./node_modules/pixi.js/lib/core/index.js"),a=function(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}(s),u=r("./node_modules/pixi.js/lib/core/const.js"),l=(r("./node_modules/path-browserify/index.js"),new a.Matrix),h=function(e){function t(r){i(this,t);var o=n(this,e.call(this,r));return o.shader=null,o.simpleShader=null,o.quad=null,o}return o(t,e),t.prototype.onContextChange=function(){var e=this.renderer.gl;this.shader=new a.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;\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 a.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;\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 a.Quad(e,this.renderer.state.attribState),this.quad.initVao(this.shader)},t.prototype.render=function(e){var t=this.renderer,r=this.quad;t.bindVao(r.vao);var i=r.vertices;i[0]=i[6]=e._width*-e.anchor.x,i[1]=i[3]=e._height*-e.anchor.y,i[2]=i[4]=e._width*(1-e.anchor.x),i[5]=i[7]=e._height*(1-e.anchor.y),e.uvRespectAnchor&&(i=r.uvs,i[0]=i[6]=-e.anchor.x,i[1]=i[3]=-e.anchor.y,i[2]=i[4]=1-e.anchor.x,i[5]=i[7]=1-e.anchor.y),r.upload();var n=e._texture,o=n.baseTexture,s=e.tileTransform.localTransform,h=e.uvTransform,c=o.isPowerOfTwo&&n.frame.width===o.width&&n.frame.height===o.height;c&&(o._glTextures[t.CONTEXT_UID]?c=o.wrapMode!==u.WRAP_MODES.CLAMP:o.wrapMode===u.WRAP_MODES.CLAMP&&(o.wrapMode=u.WRAP_MODES.REPEAT));var d=c?this.simpleShader:this.shader;t.bindShader(d);var f=n.width,p=n.height,m=e._width,_=e._height;l.set(s.a*f/m,s.b*f/_,s.c*p/m,s.d*p/_,s.tx/m,s.ty/_),l.invert(),c?l.prepend(h.mapCoord):(d.uniforms.uMapCoord=h.mapCoord.toArray(!0),d.uniforms.uClampFrame=h.uClampFrame,d.uniforms.uClampOffset=h.uClampOffset),d.uniforms.uTransform=l.toArray(!0),d.uniforms.uColor=a.utils.premultiplyTintToRgba(e.tint,e.worldAlpha,d.uniforms.uColor,o.premultipliedAlpha),d.uniforms.translationMatrix=e.transform.worldTransform.toArray(!0),d.uniforms.uSampler=t.bindTexture(n),t.setBlendMode(a.utils.correctBlendMode(e.blendMode,o.premultipliedAlpha)),r.vao.draw(this.renderer.gl.TRIANGLES,6,0)},t}(a.ObjectRenderer);t.default=h,a.WebGLRenderer.registerPlugin("tilingSprite",h)},"./node_modules/pixi.js/lib/filters/blur/BlurFilter.js":function(e,t,r){"use strict";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 o(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)}t.__esModule=!0;var a=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}}(),u=r("./node_modules/pixi.js/lib/core/index.js"),l=function(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}(u),h=r("./node_modules/pixi.js/lib/filters/blur/BlurXFilter.js"),c=i(h),d=r("./node_modules/pixi.js/lib/filters/blur/BlurYFilter.js"),f=i(d),p=function(e){function t(r,i,s,a){n(this,t);var u=o(this,e.call(this));return u.blurXFilter=new c.default(r,i,s,a),u.blurYFilter=new f.default(r,i,s,a),u.padding=0,u.resolution=s||l.settings.RESOLUTION,u.quality=i||4,u.blur=r||8,u}return s(t,e),t.prototype.apply=function(e,t,r){var i=e.getRenderTarget(!0);this.blurXFilter.apply(e,t,i,!0),this.blurYFilter.apply(e,i,r,!1),e.returnRenderTarget(i)},a(t,[{key:"blur",get:function(){return this.blurXFilter.blur},set:function(e){this.blurXFilter.blur=this.blurYFilter.blur=e,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(e){this.blurXFilter.quality=this.blurYFilter.quality=e}},{key:"blurX",get:function(){return this.blurXFilter.blur},set:function(e){this.blurXFilter.blur=e,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(e){this.blurYFilter.blur=e,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(e){this.blurYFilter._blendMode=e}}]),t}(l.Filter);t.default=p},"./node_modules/pixi.js/lib/filters/blur/BlurXFilter.js":function(e,t,r){"use strict";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 o(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)}t.__esModule=!0;var a=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}}(),u=r("./node_modules/pixi.js/lib/core/index.js"),l=function(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}(u),h=r("./node_modules/pixi.js/lib/filters/blur/generateBlurVertSource.js"),c=i(h),d=r("./node_modules/pixi.js/lib/filters/blur/generateBlurFragSource.js"),f=i(d),p=r("./node_modules/pixi.js/lib/filters/blur/getMaxBlurKernelSize.js"),m=i(p),_=function(e){function t(r,i,s,a){n(this,t),a=a||5;var u=(0,c.default)(a,!0),h=(0,f.default)(a),d=o(this,e.call(this,u,h));return d.resolution=s||l.settings.RESOLUTION,d._quality=0,d.quality=i||4,d.strength=r||8,d.firstRun=!0,d}return s(t,e),t.prototype.apply=function(e,t,r,i){if(this.firstRun){var n=e.renderer.gl,o=(0,m.default)(n);this.vertexSrc=(0,c.default)(o,!0),this.fragmentSrc=(0,f.default)(o),this.firstRun=!1}if(this.uniforms.strength=1/r.size.width*(r.size.width/t.size.width),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,1===this.passes)e.applyFilter(this,t,r,i);else{for(var s=e.getRenderTarget(!0),a=t,u=s,l=0;l<this.passes-1;l++){e.applyFilter(this,a,u,!0);var h=u;u=a,a=h}e.applyFilter(this,a,r,i),e.returnRenderTarget(s)}},a(t,[{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}}]),t}(l.Filter);t.default=_},"./node_modules/pixi.js/lib/filters/blur/BlurYFilter.js":function(e,t,r){"use strict";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 o(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)}t.__esModule=!0;var a=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}}(),u=r("./node_modules/pixi.js/lib/core/index.js"),l=function(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}(u),h=r("./node_modules/pixi.js/lib/filters/blur/generateBlurVertSource.js"),c=i(h),d=r("./node_modules/pixi.js/lib/filters/blur/generateBlurFragSource.js"),f=i(d),p=r("./node_modules/pixi.js/lib/filters/blur/getMaxBlurKernelSize.js"),m=i(p),_=function(e){function t(r,i,s,a){n(this,t),a=a||5;var u=(0,c.default)(a,!1),h=(0,f.default)(a),d=o(this,e.call(this,u,h));return d.resolution=s||l.settings.RESOLUTION,d._quality=0,d.quality=i||4,d.strength=r||8,d.firstRun=!0,d}return s(t,e),t.prototype.apply=function(e,t,r,i){if(this.firstRun){var n=e.renderer.gl,o=(0,m.default)(n);this.vertexSrc=(0,c.default)(o,!1),this.fragmentSrc=(0,f.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,i);else{for(var s=e.getRenderTarget(!0),a=t,u=s,l=0;l<this.passes-1;l++){e.applyFilter(this,a,u,!0);var h=u;u=a,a=h}e.applyFilter(this,a,r,i),e.returnRenderTarget(s)}},a(t,[{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}}]),t}(l.Filter);t.default=_},"./node_modules/pixi.js/lib/filters/blur/generateBlurFragSource.js":function(e,t,r){"use strict";function i(e){for(var t=n[e],r=t.length,i=o,s="",a="gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;",u=void 0,l=0;l<e;l++){var h=a.replace("%index%",l);u=l,l>=r&&(u=e-l-1),h=h.replace("%value%",t[u]),s+=h,s+="\n"}return i=i.replace("%blur%",s),i=i.replace("%size%",e)}t.__esModule=!0,t.default=i;var n={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]},o=["varying vec2 vBlurTexCoords[%size%];","uniform sampler2D uSampler;","void main(void)","{","    gl_FragColor = vec4(0.0);","    %blur%","}"].join("\n")},"./node_modules/pixi.js/lib/filters/blur/generateBlurVertSource.js":function(e,t,r){"use strict";function i(e,t){var r=Math.ceil(e/2),i=n,o="",s=void 0;s=t?"vBlurTexCoords[%index%] = aTextureCoord + vec2(%sampleIndex% * strength, 0.0);":"vBlurTexCoords[%index%] = aTextureCoord + vec2(0.0, %sampleIndex% * strength);";for(var a=0;a<e;a++){var u=s.replace("%index%",a);u=u.replace("%sampleIndex%",a-(r-1)+".0"),o+=u,o+="\n"}return i=i.replace("%blur%",o),i=i.replace("%size%",e)}t.__esModule=!0,t.default=i;var n=["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")},"./node_modules/pixi.js/lib/filters/blur/getMaxBlurKernelSize.js":function(e,t,r){"use strict";function i(e){for(var t=e.getParameter(e.MAX_VARYING_VECTORS),r=15;r>t;)r-=2;return r}t.__esModule=!0,t.default=i},"./node_modules/pixi.js/lib/filters/colormatrix/ColorMatrixFilter.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(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)}t.__esModule=!0;var s=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}}(),a=r("./node_modules/pixi.js/lib/core/index.js"),u=function(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}(a),l=(r("./node_modules/path-browserify/index.js"),function(e){function t(){i(this,t);var r=n(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;\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 r.uniforms.m=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],r.alpha=1,r}return o(t,e),t.prototype._loadMatrix=function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=e;t&&(this._multiply(r,this.uniforms.m,e),r=this._colorMatrix(r)),this.uniforms.m=r},t.prototype._multiply=function(e,t,r){return e[0]=t[0]*r[0]+t[1]*r[5]+t[2]*r[10]+t[3]*r[15],e[1]=t[0]*r[1]+t[1]*r[6]+t[2]*r[11]+t[3]*r[16],e[2]=t[0]*r[2]+t[1]*r[7]+t[2]*r[12]+t[3]*r[17],e[3]=t[0]*r[3]+t[1]*r[8]+t[2]*r[13]+t[3]*r[18],e[4]=t[0]*r[4]+t[1]*r[9]+t[2]*r[14]+t[3]*r[19]+t[4],e[5]=t[5]*r[0]+t[6]*r[5]+t[7]*r[10]+t[8]*r[15],e[6]=t[5]*r[1]+t[6]*r[6]+t[7]*r[11]+t[8]*r[16],e[7]=t[5]*r[2]+t[6]*r[7]+t[7]*r[12]+t[8]*r[17],e[8]=t[5]*r[3]+t[6]*r[8]+t[7]*r[13]+t[8]*r[18],e[9]=t[5]*r[4]+t[6]*r[9]+t[7]*r[14]+t[8]*r[19]+t[9],e[10]=t[10]*r[0]+t[11]*r[5]+t[12]*r[10]+t[13]*r[15],e[11]=t[10]*r[1]+t[11]*r[6]+t[12]*r[11]+t[13]*r[16],e[12]=t[10]*r[2]+t[11]*r[7]+t[12]*r[12]+t[13]*r[17],e[13]=t[10]*r[3]+t[11]*r[8]+t[12]*r[13]+t[13]*r[18],e[14]=t[10]*r[4]+t[11]*r[9]+t[12]*r[14]+t[13]*r[19]+t[14],e[15]=t[15]*r[0]+t[16]*r[5]+t[17]*r[10]+t[18]*r[15],e[16]=t[15]*r[1]+t[16]*r[6]+t[17]*r[11]+t[18]*r[16],e[17]=t[15]*r[2]+t[16]*r[7]+t[17]*r[12]+t[18]*r[17],e[18]=t[15]*r[3]+t[16]*r[8]+t[17]*r[13]+t[18]*r[18],e[19]=t[15]*r[4]+t[16]*r[9]+t[17]*r[14]+t[18]*r[19]+t[19],e},t.prototype._colorMatrix=function(e){var t=new Float32Array(e);return t[4]/=255,t[9]/=255,t[14]/=255,t[19]/=255,t},t.prototype.brightness=function(e,t){var r=[e,0,0,0,0,0,e,0,0,0,0,0,e,0,0,0,0,0,1,0];this._loadMatrix(r,t)},t.prototype.greyscale=function(e,t){var r=[e,e,e,0,0,e,e,e,0,0,e,e,e,0,0,0,0,0,1,0];this._loadMatrix(r,t)},t.prototype.blackAndWhite=function(e){var t=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0];this._loadMatrix(t,e)},t.prototype.hue=function(e,t){e=(e||0)/180*Math.PI;var r=Math.cos(e),i=Math.sin(e),n=Math.sqrt,o=1/3,s=n(o),a=r+(1-r)*o,u=o*(1-r)-s*i,l=o*(1-r)+s*i,h=o*(1-r)+s*i,c=r+o*(1-r),d=o*(1-r)-s*i,f=o*(1-r)-s*i,p=o*(1-r)+s*i,m=r+o*(1-r),_=[a,u,l,0,0,h,c,d,0,0,f,p,m,0,0,0,0,0,1,0];this._loadMatrix(_,t)},t.prototype.contrast=function(e,t){var r=(e||0)+1,i=-.5*(r-1),n=[r,0,0,0,i,0,r,0,0,i,0,0,r,0,i,0,0,0,1,0];this._loadMatrix(n,t)},t.prototype.saturate=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments[1],r=2*e/3+1,i=-.5*(r-1),n=[r,i,i,0,0,i,r,i,0,0,i,i,r,0,0,0,0,0,1,0];this._loadMatrix(n,t)},t.prototype.desaturate=function(){this.saturate(-1)},t.prototype.negative=function(e){var t=[0,1,1,0,0,1,0,1,0,0,1,1,0,0,0,0,0,0,1,0];this._loadMatrix(t,e)},t.prototype.sepia=function(e){var t=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0];this._loadMatrix(t,e)},t.prototype.technicolor=function(e){var t=[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];this._loadMatrix(t,e)},t.prototype.polaroid=function(e){var t=[1.438,-.062,-.062,0,0,-.122,1.378,-.122,0,0,-.016,-.016,1.483,0,0,0,0,0,1,0];this._loadMatrix(t,e)},t.prototype.toBGR=function(e){var t=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0];this._loadMatrix(t,e)},t.prototype.kodachrome=function(e){var t=[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];this._loadMatrix(t,e)},t.prototype.browni=function(e){var t=[.5997023498159715,.34553243048391263,-.2708298674538042,0,47.43192855600873,-.037703249837783157,.8609577587992641,.15059552388459913,0,-36.96841498319127,.24113635128153335,-.07441037908422492,.44972182064877153,0,-7.562075277591283,0,0,0,1,0];this._loadMatrix(t,e)},t.prototype.vintage=function(e){var t=[.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648018700465,0,5.159190588235296,0,0,0,1,0];this._loadMatrix(t,e)},t.prototype.colorTone=function(e,t,r,i,n){e=e||.2,t=t||.15,r=r||16770432,i=i||3375104;var o=(r>>16&255)/255,s=(r>>8&255)/255,a=(255&r)/255,u=(i>>16&255)/255,l=(i>>8&255)/255,h=(255&i)/255,c=[.3,.59,.11,0,0,o,s,a,e,0,u,l,h,t,0,o-u,s-l,a-h,0,0];this._loadMatrix(c,n)},t.prototype.night=function(e,t){e=e||.1;var r=[-2*e,-e,0,0,0,-e,0,e,0,0,0,e,2*e,0,0,0,0,0,1,0];this._loadMatrix(r,t)},t.prototype.predator=function(e,t){var r=[11.224130630493164*e,-4.794486999511719*e,-2.8746118545532227*e,0*e,.40342438220977783*e,-3.6330697536468506*e,9.193157196044922*e,-2.951810836791992*e,0*e,-1.316135048866272*e,-3.2184197902679443*e,-4.2375030517578125*e,7.476448059082031*e,0*e,.8044459223747253*e,0,0,0,1,0];this._loadMatrix(r,t)},t.prototype.lsd=function(e){var t=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0];this._loadMatrix(t,e)},t.prototype.reset=function(){var e=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0];this._loadMatrix(e,!1)},s(t,[{key:"matrix",get:function(){return this.uniforms.m},set:function(e){this.uniforms.m=e}},{key:"alpha",get:function(){return this.uniforms.uAlpha},set:function(e){this.uniforms.uAlpha=e}}]),t}(u.Filter));t.default=l,l.prototype.grayscale=l.prototype.greyscale},"./node_modules/pixi.js/lib/filters/displacement/DisplacementFilter.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(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)}t.__esModule=!0;var s=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}}(),a=r("./node_modules/pixi.js/lib/core/index.js"),u=function(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}(a),l=(r("./node_modules/path-browserify/index.js"),function(e){function t(r,o){i(this,t);var s=new u.Matrix;r.renderable=!1;var a=n(this,e.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 a.maskSprite=r,a.maskMatrix=s,a.uniforms.mapSampler=r._texture,a.uniforms.filterMatrix=s,a.uniforms.scale={x:1,y:1},null!==o&&void 0!==o||(o=20),a.scale=new u.Point(o,o),a}return o(t,e),t.prototype.apply=function(e,t,r){var i=1/r.destinationFrame.width*(r.size.width/t.size.width);this.uniforms.filterMatrix=e.calculateSpriteMatrix(this.maskMatrix,this.maskSprite),this.uniforms.scale.x=this.scale.x*i,this.uniforms.scale.y=this.scale.y*i,e.applyFilter(this,t,r)},s(t,[{key:"map",get:function(){return this.uniforms.mapSampler},set:function(e){this.uniforms.mapSampler=e}}]),t}(u.Filter));t.default=l},"./node_modules/pixi.js/lib/filters/fxaa/FXAAFilter.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(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)}t.__esModule=!0;var s=r("./node_modules/pixi.js/lib/core/index.js"),a=function(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}(s),u=(r("./node_modules/path-browserify/index.js"),function(e){function t(){return i(this,t),n(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 o(t,e),t}(a.Filter));t.default=u},"./node_modules/pixi.js/lib/filters/index.js":function(e,t,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var n=r("./node_modules/pixi.js/lib/filters/fxaa/FXAAFilter.js");Object.defineProperty(t,"FXAAFilter",{enumerable:!0,get:function(){return i(n).default}});var o=r("./node_modules/pixi.js/lib/filters/noise/NoiseFilter.js");Object.defineProperty(t,"NoiseFilter",{enumerable:!0,get:function(){return i(o).default}});var s=r("./node_modules/pixi.js/lib/filters/displacement/DisplacementFilter.js");Object.defineProperty(t,"DisplacementFilter",{enumerable:!0,get:function(){return i(s).default}});var a=r("./node_modules/pixi.js/lib/filters/blur/BlurFilter.js");Object.defineProperty(t,"BlurFilter",{enumerable:!0,get:function(){return i(a).default}});var u=r("./node_modules/pixi.js/lib/filters/blur/BlurXFilter.js");Object.defineProperty(t,"BlurXFilter",{enumerable:!0,get:function(){return i(u).default}});var l=r("./node_modules/pixi.js/lib/filters/blur/BlurYFilter.js");Object.defineProperty(t,"BlurYFilter",{enumerable:!0,get:function(){return i(l).default}});var h=r("./node_modules/pixi.js/lib/filters/colormatrix/ColorMatrixFilter.js");Object.defineProperty(t,"ColorMatrixFilter",{enumerable:!0,get:function(){return i(h).default}});var c=r("./node_modules/pixi.js/lib/filters/void/VoidFilter.js");Object.defineProperty(t,"VoidFilter",{enumerable:!0,get:function(){return i(c).default}})},"./node_modules/pixi.js/lib/filters/noise/NoiseFilter.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(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)}t.__esModule=!0;var s=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}}(),a=r("./node_modules/pixi.js/lib/core/index.js"),u=function(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}(a),l=(r("./node_modules/path-browserify/index.js"),function(e){function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:.5,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Math.random();i(this,t);var s=n(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}","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 s.noise=r,s.seed=o,s}return o(t,e),s(t,[{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}}]),t}(u.Filter));t.default=l},"./node_modules/pixi.js/lib/filters/void/VoidFilter.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(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)}t.__esModule=!0;var s=r("./node_modules/pixi.js/lib/core/index.js"),a=function(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}(s),u=(r("./node_modules/path-browserify/index.js"),function(e){function t(){i(this,t);var r=n(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 o(t,e),t}(a.Filter));t.default=u},"./node_modules/pixi.js/lib/index.js":function(e,t,r){"use strict";(function(e){function i(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}t.__esModule=!0,t.loader=t.prepare=t.particles=t.mesh=t.loaders=t.interaction=t.filters=t.extras=t.extract=t.accessibility=void 0;var n=r("./node_modules/pixi.js/lib/polyfill/index.js");Object.keys(n).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return n[e]}})});var o=r("./node_modules/pixi.js/lib/core/index.js");Object.keys(o).forEach(function(e){"default"!==e&&"__esModule"!==e&&Object.defineProperty(t,e,{enumerable:!0,get:function(){return o[e]}})});var s=r("./node_modules/pixi.js/lib/deprecation.js"),a=function(e){return e&&e.__esModule?e:{default:e}}(s),u=r("./node_modules/pixi.js/lib/accessibility/index.js"),l=i(u),h=r("./node_modules/pixi.js/lib/extract/index.js"),c=i(h),d=r("./node_modules/pixi.js/lib/extras/index.js"),f=i(d),p=r("./node_modules/pixi.js/lib/filters/index.js"),m=i(p),_=r("./node_modules/pixi.js/lib/interaction/index.js"),v=i(_),g=r("./node_modules/pixi.js/lib/loaders/index.js"),y=i(g),x=r("./node_modules/pixi.js/lib/mesh/index.js"),b=i(x),T=r("./node_modules/pixi.js/lib/particles/index.js"),w=i(T),E=r("./node_modules/pixi.js/lib/prepare/index.js"),j=i(E);o.utils.mixins.performMixins();var S=y.shared||null;t.accessibility=l,t.extract=c,t.extras=f,t.filters=m,t.interaction=v,t.loaders=y,t.mesh=b,t.particles=w,t.prepare=j,t.loader=S,"function"==typeof a.default&&(0,a.default)(t),e.PIXI=t}).call(t,r("./node_modules/webpack/buildin/global.js"))},"./node_modules/pixi.js/lib/interaction/InteractionData.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var n=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}}(),o=r("./node_modules/pixi.js/lib/core/index.js"),s=function(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}(o),a=function(){function e(){i(this,e),this.global=new s.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 e.prototype.getLocalPosition=function(e,t,r){return e.worldTransform.applyInverse(r||this.global,t)},e.prototype._copyEvent=function(e){e.isPrimary&&(this.isPrimary=!0),this.button=e.button,this.buttons=e.buttons,this.width=e.width,this.height=e.height,this.tiltX=e.tiltX,this.tiltY=e.tiltY,this.pointerType=e.pointerType,this.pressure=e.pressure,this.rotationAngle=e.rotationAngle,this.twist=e.twist||0,this.tangentialPressure=e.tangentialPressure||0},e.prototype._reset=function(){this.isPrimary=!1},n(e,[{key:"pointerId",get:function(){return this.identifier}}]),e}();t.default=a},"./node_modules/pixi.js/lib/interaction/InteractionEvent.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var n=function(){function e(){i(this,e),this.stopped=!1,this.target=null,this.currentTarget=null,this.type=null,this.data=null}return e.prototype.stopPropagation=function(){this.stopped=!0},e.prototype._reset=function(){this.stopped=!1,this.currentTarget=null,this.target=null},e}();t.default=n},"./node_modules/pixi.js/lib/interaction/InteractionManager.js":function(e,t,r){"use strict";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 o(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)}t.__esModule=!0;var a="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},u=r("./node_modules/pixi.js/lib/core/index.js"),l=function(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}(u),h=r("./node_modules/pixi.js/lib/interaction/InteractionData.js"),c=i(h),d=r("./node_modules/pixi.js/lib/interaction/InteractionEvent.js"),f=i(d),p=r("./node_modules/pixi.js/lib/interaction/InteractionTrackingData.js"),m=i(p),_=r("./node_modules/pixi.js/node_modules/eventemitter3/index.js"),v=i(_),g=r("./node_modules/pixi.js/lib/interaction/interactiveTarget.js"),y=i(g);l.utils.mixins.delayMixin(l.DisplayObject.prototype,y.default);var x="MOUSE",b={target:null,data:{global:null}},T=function(e){function t(r,i){n(this,t);var s=o(this,e.call(this));return i=i||{},s.renderer=r,s.autoPreventDefault=void 0===i.autoPreventDefault||i.autoPreventDefault,s.interactionFrequency=i.interactionFrequency||10,s.mouse=new c.default,s.mouse.identifier=x,s.mouse.global.set(-999999),s.activeInteractionData={},s.activeInteractionData[x]=s.mouse,s.interactionDataPool=[],s.eventData=new f.default,s.interactionDOMElement=null,s.moveWhenInside=!1,s.eventsAdded=!1,s.mouseOverRenderer=!1,s.supportsTouchEvents="ontouchstart"in window,s.supportsPointerEvents=!!window.PointerEvent,s.onPointerUp=s.onPointerUp.bind(s),s.processPointerUp=s.processPointerUp.bind(s),s.onPointerCancel=s.onPointerCancel.bind(s),s.processPointerCancel=s.processPointerCancel.bind(s),s.onPointerDown=s.onPointerDown.bind(s),s.processPointerDown=s.processPointerDown.bind(s),s.onPointerMove=s.onPointerMove.bind(s),s.processPointerMove=s.processPointerMove.bind(s),s.onPointerOut=s.onPointerOut.bind(s),s.processPointerOverOut=s.processPointerOverOut.bind(s),s.onPointerOver=s.onPointerOver.bind(s),s.cursorStyles={default:"inherit",pointer:"pointer"},s.currentCursorMode=null,s.cursor=null,s._tempPoint=new l.Point,s.resolution=1,s.setTargetElement(s.renderer.view,s.renderer.resolution),s}return s(t,e),t.prototype.hitTest=function(e,t){return b.target=null,b.data.global=e,t||(t=this.renderer._lastObjectRendered),this.processInteractive(b,t,null,!0),b.target},t.prototype.setTargetElement=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.removeEvents(),this.interactionDOMElement=e,this.resolution=t,this.addEvents()},t.prototype.addEvents=function(){this.interactionDOMElement&&(l.ticker.shared.add(this.update,this,l.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)},t.prototype.removeEvents=function(){this.interactionDOMElement&&(l.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)},t.prototype.update=function(e){if(this._deltaTime+=e,!(this._deltaTime<this.interactionFrequency)&&(this._deltaTime=0,this.interactionDOMElement)){if(this.didMove)return void(this.didMove=!1);this.cursor=null;for(var t in this.activeInteractionData)if(this.activeInteractionData.hasOwnProperty(t)){var r=this.activeInteractionData[t];if(r.originalEvent&&"touch"!==r.pointerType){var i=this.configureInteractionEventForDOMEvent(this.eventData,r.originalEvent,r);this.processInteractive(i,this.renderer._lastObjectRendered,this.processPointerOverOut,!0)}}this.setCursorMode(this.cursor)}},t.prototype.setCursorMode=function(e){if(e=e||"default",this.currentCursorMode!==e){this.currentCursorMode=e;var t=this.cursorStyles[e];if(t)switch(void 0===t?"undefined":a(t)){case"string":this.interactionDOMElement.style.cursor=t;break;case"function":t(e);break;case"object":Object.assign(this.interactionDOMElement.style,t)}else"string"!=typeof e||Object.prototype.hasOwnProperty.call(this.cursorStyles,e)||(this.interactionDOMElement.style.cursor=e)}},t.prototype.dispatchEvent=function(e,t,r){r.stopped||(r.currentTarget=e,r.type=t,e.emit(t,r),e[t]&&e[t](r))},t.prototype.mapPositionToPoint=function(e,t,r){var i=void 0;i=this.interactionDOMElement.parentElement?this.interactionDOMElement.getBoundingClientRect():{x:0,y:0,width:0,height:0};var n=navigator.isCocoonJS?this.resolution:1/this.resolution;e.x=(t-i.left)*(this.interactionDOMElement.width/i.width)*n,e.y=(r-i.top)*(this.interactionDOMElement.height/i.height)*n},t.prototype.processInteractive=function(e,t,r,i,n){if(!t||!t.visible)return!1;var o=e.data.global;n=t.interactive||n;var s=!1,a=n;if(t.hitArea?a=!1:i&&t._mask&&(t._mask.containsPoint(o)||(i=!1)),t.interactiveChildren&&t.children)for(var u=t.children,l=u.length-1;l>=0;l--){var h=u[l],c=this.processInteractive(e,h,r,i,a);if(c){if(!h.parent)continue;a=!1,c&&(e.target&&(i=!1),s=!0)}}return n&&(i&&!e.target&&(t.hitArea?(t.worldTransform.applyInverse(o,this._tempPoint),t.hitArea.contains(this._tempPoint.x,this._tempPoint.y)&&(s=!0)):t.containsPoint&&t.containsPoint(o)&&(s=!0)),t.interactive&&(s&&!e.target&&(e.target=t),r&&r(e,t,!!s))),s},t.prototype.onPointerDown=function(e){if(!this.supportsTouchEvents||"touch"!==e.pointerType){var t=this.normalizeToPointerData(e);this.autoPreventDefault&&t[0].isNormalized&&e.preventDefault();for(var r=t.length,i=0;i<r;i++){var n=t[i],o=this.getInteractionDataForPointerId(n),s=this.configureInteractionEventForDOMEvent(this.eventData,n,o);if(s.data.originalEvent=e,this.processInteractive(s,this.renderer._lastObjectRendered,this.processPointerDown,!0),this.emit("pointerdown",s),"touch"===n.pointerType)this.emit("touchstart",s);else if("mouse"===n.pointerType||"pen"===n.pointerType){var a=2===n.button;this.emit(a?"rightdown":"mousedown",this.eventData)}}}},t.prototype.processPointerDown=function(e,t,r){var i=e.data,n=e.data.identifier;if(r)if(t.trackedPointers[n]||(t.trackedPointers[n]=new m.default(n)),this.dispatchEvent(t,"pointerdown",e),"touch"===i.pointerType)this.dispatchEvent(t,"touchstart",e);else if("mouse"===i.pointerType||"pen"===i.pointerType){var o=2===i.button;o?t.trackedPointers[n].rightDown=!0:t.trackedPointers[n].leftDown=!0,this.dispatchEvent(t,o?"rightdown":"mousedown",e)}},t.prototype.onPointerComplete=function(e,t,r){for(var i=this.normalizeToPointerData(e),n=i.length,o=e.target!==this.interactionDOMElement?"outside":"",s=0;s<n;s++){var a=i[s],u=this.getInteractionDataForPointerId(a),l=this.configureInteractionEventForDOMEvent(this.eventData,a,u);if(l.data.originalEvent=e,this.processInteractive(l,this.renderer._lastObjectRendered,r,t||!o),this.emit(t?"pointercancel":"pointerup"+o,l),"mouse"===a.pointerType||"pen"===a.pointerType){var h=2===a.button;this.emit(h?"rightup"+o:"mouseup"+o,l)}else"touch"===a.pointerType&&(this.emit(t?"touchcancel":"touchend"+o,l),this.releaseInteractionDataForPointerId(a.pointerId,u))}},t.prototype.onPointerCancel=function(e){this.supportsTouchEvents&&"touch"===e.pointerType||this.onPointerComplete(e,!0,this.processPointerCancel)},t.prototype.processPointerCancel=function(e,t){var r=e.data,i=e.data.identifier;void 0!==t.trackedPointers[i]&&(delete t.trackedPointers[i],this.dispatchEvent(t,"pointercancel",e),"touch"===r.pointerType&&this.dispatchEvent(t,"touchcancel",e))},t.prototype.onPointerUp=function(e){this.supportsTouchEvents&&"touch"===e.pointerType||this.onPointerComplete(e,!1,this.processPointerUp)},t.prototype.processPointerUp=function(e,t,r){var i=e.data,n=e.data.identifier,o=t.trackedPointers[n],s="touch"===i.pointerType;if("mouse"===i.pointerType||"pen"===i.pointerType){var a=2===i.button,u=m.default.FLAGS,l=a?u.RIGHT_DOWN:u.LEFT_DOWN,h=void 0!==o&&o.flags&l;r?(this.dispatchEvent(t,a?"rightup":"mouseup",e),h&&this.dispatchEvent(t,a?"rightclick":"click",e)):h&&this.dispatchEvent(t,a?"rightupoutside":"mouseupoutside",e),o&&(a?o.rightDown=!1:o.leftDown=!1)}r?(this.dispatchEvent(t,"pointerup",e),s&&this.dispatchEvent(t,"touchend",e),o&&(this.dispatchEvent(t,"pointertap",e),s&&(this.dispatchEvent(t,"tap",e),o.over=!1))):o&&(this.dispatchEvent(t,"pointerupoutside",e),s&&this.dispatchEvent(t,"touchendoutside",e)),o&&o.none&&delete t.trackedPointers[n]},t.prototype.onPointerMove=function(e){if(!this.supportsTouchEvents||"touch"!==e.pointerType){var t=this.normalizeToPointerData(e);"mouse"===t[0].pointerType&&(this.didMove=!0,this.cursor=null);for(var r=t.length,i=0;i<r;i++){var n=t[i],o=this.getInteractionDataForPointerId(n),s=this.configureInteractionEventForDOMEvent(this.eventData,n,o);s.data.originalEvent=e;var a="touch"!==n.pointerType||this.moveWhenInside;this.processInteractive(s,this.renderer._lastObjectRendered,this.processPointerMove,a),this.emit("pointermove",s),"touch"===n.pointerType&&this.emit("touchmove",s),"mouse"!==n.pointerType&&"pen"!==n.pointerType||this.emit("mousemove",s)}"mouse"===t[0].pointerType&&this.setCursorMode(this.cursor)}},t.prototype.processPointerMove=function(e,t,r){var i=e.data,n="touch"===i.pointerType,o="mouse"===i.pointerType||"pen"===i.pointerType;o&&this.processPointerOverOut(e,t,r),this.moveWhenInside&&!r||(this.dispatchEvent(t,"pointermove",e),n&&this.dispatchEvent(t,"touchmove",e),o&&this.dispatchEvent(t,"mousemove",e))},t.prototype.onPointerOut=function(e){if(!this.supportsTouchEvents||"touch"!==e.pointerType){var t=this.normalizeToPointerData(e),r=t[0];"mouse"===r.pointerType&&(this.mouseOverRenderer=!1,this.setCursorMode(null));var i=this.getInteractionDataForPointerId(r),n=this.configureInteractionEventForDOMEvent(this.eventData,r,i);n.data.originalEvent=r,this.processInteractive(n,this.renderer._lastObjectRendered,this.processPointerOverOut,!1),this.emit("pointerout",n),"mouse"===r.pointerType||"pen"===r.pointerType?this.emit("mouseout",n):this.releaseInteractionDataForPointerId(i.identifier)}},t.prototype.processPointerOverOut=function(e,t,r){var i=e.data,n=e.data.identifier,o="mouse"===i.pointerType||"pen"===i.pointerType,s=t.trackedPointers[n];r&&!s&&(s=t.trackedPointers[n]=new m.default(n)),void 0!==s&&(r&&this.mouseOverRenderer?(s.over||(s.over=!0,this.dispatchEvent(t,"pointerover",e),o&&this.dispatchEvent(t,"mouseover",e)),o&&null===this.cursor&&(this.cursor=t.cursor)):s.over&&(s.over=!1,this.dispatchEvent(t,"pointerout",this.eventData),o&&this.dispatchEvent(t,"mouseout",e),s.none&&delete t.trackedPointers[n]))},t.prototype.onPointerOver=function(e){var t=this.normalizeToPointerData(e),r=t[0],i=this.getInteractionDataForPointerId(r),n=this.configureInteractionEventForDOMEvent(this.eventData,r,i);n.data.originalEvent=r,"mouse"===r.pointerType&&(this.mouseOverRenderer=!0),this.emit("pointerover",n),"mouse"!==r.pointerType&&"pen"!==r.pointerType||this.emit("mouseover",n)},t.prototype.getInteractionDataForPointerId=function(e){var t=e.pointerId,r=void 0;return t===x||"mouse"===e.pointerType?r=this.mouse:this.activeInteractionData[t]?r=this.activeInteractionData[t]:(r=this.interactionDataPool.pop()||new c.default,r.identifier=t,this.activeInteractionData[t]=r),r._copyEvent(e),r},t.prototype.releaseInteractionDataForPointerId=function(e){var t=this.activeInteractionData[e];t&&(delete this.activeInteractionData[e],t._reset(),this.interactionDataPool.push(t))},t.prototype.configureInteractionEventForDOMEvent=function(e,t,r){return e.data=r,this.mapPositionToPoint(r.global,t.clientX,t.clientY),navigator.isCocoonJS&&"touch"===t.pointerType&&(r.global.x=r.global.x/this.resolution,r.global.y=r.global.y/this.resolution),"touch"===t.pointerType&&(t.globalX=r.global.x,t.globalY=r.global.y),r.originalEvent=t,e._reset(),e},t.prototype.normalizeToPointerData=function(e){var t=[];if(this.supportsTouchEvents&&e instanceof TouchEvent)for(var r=0,i=e.changedTouches.length;r<i;r++){var n=e.changedTouches[r];void 0===n.button&&(n.button=e.touches.length?1:0),void 0===n.buttons&&(n.buttons=e.touches.length?1:0),void 0===n.isPrimary&&(n.isPrimary=1===e.touches.length&&"touchstart"===e.type),void 0===n.width&&(n.width=n.radiusX||1),void 0===n.height&&(n.height=n.radiusY||1),void 0===n.tiltX&&(n.tiltX=0),void 0===n.tiltY&&(n.tiltY=0),void 0===n.pointerType&&(n.pointerType="touch"),void 0===n.pointerId&&(n.pointerId=n.identifier||0),void 0===n.pressure&&(n.pressure=n.force||.5),n.twist=0,n.tangentialPressure=0,void 0===n.layerX&&(n.layerX=n.offsetX=n.clientX),void 0===n.layerY&&(n.layerY=n.offsetY=n.clientY),n.isNormalized=!0,t.push(n)}else!(e instanceof MouseEvent)||this.supportsPointerEvents&&e instanceof window.PointerEvent?t.push(e):(void 0===e.isPrimary&&(e.isPrimary=!0),void 0===e.width&&(e.width=1),void 0===e.height&&(e.height=1),void 0===e.tiltX&&(e.tiltX=0),void 0===e.tiltY&&(e.tiltY=0),void 0===e.pointerType&&(e.pointerType="mouse"),void 0===e.pointerId&&(e.pointerId=x),void 0===e.pressure&&(e.pressure=.5),e.twist=0,e.tangentialPressure=0,e.isNormalized=!0,t.push(e));return t},t.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},t}(v.default);t.default=T,l.WebGLRenderer.registerPlugin("interaction",T),l.CanvasRenderer.registerPlugin("interaction",T)},"./node_modules/pixi.js/lib/interaction/InteractionTrackingData.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var n=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}}(),o=function(){function e(t){i(this,e),this._pointerId=t,this._flags=e.FLAGS.NONE}return e.prototype._doSet=function(e,t){this._flags=t?this._flags|e:this._flags&~e},n(e,[{key:"pointerId",get:function(){return this._pointerId}},{key:"flags",get:function(){return this._flags},set:function(e){this._flags=e}},{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(e){this._doSet(this.constructor.FLAGS.OVER,e)}},{key:"rightDown",get:function(){return 0!=(this._flags&this.constructor.FLAGS.RIGHT_DOWN)},set:function(e){this._doSet(this.constructor.FLAGS.RIGHT_DOWN,e)}},{key:"leftDown",get:function(){return 0!=(this._flags&this.constructor.FLAGS.LEFT_DOWN)},set:function(e){this._doSet(this.constructor.FLAGS.LEFT_DOWN,e)}}]),e}();t.default=o,o.FLAGS=Object.freeze({NONE:0,OVER:1,LEFT_DOWN:2,RIGHT_DOWN:4})},"./node_modules/pixi.js/lib/interaction/index.js":function(e,t,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var n=r("./node_modules/pixi.js/lib/interaction/InteractionData.js");Object.defineProperty(t,"InteractionData",{enumerable:!0,get:function(){return i(n).default}});var o=r("./node_modules/pixi.js/lib/interaction/InteractionManager.js");Object.defineProperty(t,"InteractionManager",{enumerable:!0,get:function(){return i(o).default}});var s=r("./node_modules/pixi.js/lib/interaction/interactiveTarget.js");Object.defineProperty(t,"interactiveTarget",{enumerable:!0,get:function(){return i(s).default}});var a=r("./node_modules/pixi.js/lib/interaction/InteractionTrackingData.js");Object.defineProperty(t,"InteractionTrackingData",{enumerable:!0,get:function(){return i(a).default}});var u=r("./node_modules/pixi.js/lib/interaction/InteractionEvent.js");Object.defineProperty(t,"InteractionEvent",{enumerable:!0,get:function(){return i(u).default}})},"./node_modules/pixi.js/lib/interaction/interactiveTarget.js":function(e,t,r){"use strict";t.__esModule=!0,t.default={interactive:!1,interactiveChildren:!0,hitArea:null,get buttonMode(){return"pointer"===this.cursor},set buttonMode(e){e?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}},"./node_modules/pixi.js/lib/loaders/bitmapFontParser.js":function(e,t,r){"use strict";function i(e,t){e.bitmapFont=u.BitmapText.registerFont(e.data,t)}t.__esModule=!0,t.parse=i,t.default=function(){return function(e,t){if(!e.data||e.type!==a.Resource.TYPE.XML)return void t();if(0===e.data.getElementsByTagName("page").length||0===e.data.getElementsByTagName("info").length||null===e.data.getElementsByTagName("info")[0].getAttribute("face"))return void t();var r=e.isDataUrl?"":o.dirname(e.url);e.isDataUrl&&("."===r&&(r=""),this.baseUrl&&r&&"/"===this.baseUrl.charAt(this.baseUrl.length-1)&&(r+="/")),(r=r.replace(this.baseUrl,""))&&"/"!==r.charAt(r.length-1)&&(r+="/");var n=r+e.data.getElementsByTagName("page")[0].getAttribute("file");if(s.utils.TextureCache[n])i(e,s.utils.TextureCache[n]),t();else{var u={crossOrigin:e.crossOrigin,loadType:a.Resource.LOAD_TYPE.IMAGE,metadata:e.metadata.imageMetadata,parentResource:e};this.add(e.name+"_image",n,u,function(r){i(e,r.texture),t()})}}};var n=r("./node_modules/path-browserify/index.js"),o=function(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}(n),s=r("./node_modules/pixi.js/lib/core/index.js"),a=r("./node_modules/resource-loader/lib/index.js"),u=r("./node_modules/pixi.js/lib/extras/index.js")},"./node_modules/pixi.js/lib/loaders/index.js":function(e,t,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0,t.shared=t.Resource=t.textureParser=t.getResourcePath=t.spritesheetParser=t.parseBitmapFontData=t.bitmapFontParser=t.Loader=void 0;var n=r("./node_modules/pixi.js/lib/loaders/bitmapFontParser.js");Object.defineProperty(t,"bitmapFontParser",{enumerable:!0,get:function(){return i(n).default}}),Object.defineProperty(t,"parseBitmapFontData",{enumerable:!0,get:function(){return n.parse}});var o=r("./node_modules/pixi.js/lib/loaders/spritesheetParser.js");Object.defineProperty(t,"spritesheetParser",{enumerable:!0,get:function(){return i(o).default}}),Object.defineProperty(t,"getResourcePath",{enumerable:!0,get:function(){return o.getResourcePath}});var s=r("./node_modules/pixi.js/lib/loaders/textureParser.js");Object.defineProperty(t,"textureParser",{enumerable:!0,get:function(){return i(s).default}});var a=r("./node_modules/resource-loader/lib/index.js");Object.defineProperty(t,"Resource",{enumerable:!0,get:function(){return a.Resource}});var u=r("./node_modules/pixi.js/lib/core/Application.js"),l=i(u),h=r("./node_modules/pixi.js/lib/loaders/loader.js"),c=i(h);t.Loader=c.default;var d=new c.default;d.destroy=function(){},t.shared=d;var f=l.default.prototype;f._loader=null,Object.defineProperty(f,"loader",{get:function(){if(!this._loader){var e=this._options.sharedLoader;this._loader=e?d:new c.default}return this._loader}}),f._parentDestroy=f.destroy,f.destroy=function(e){this._loader&&(this._loader.destroy(),this._loader=null),this._parentDestroy(e)}},"./node_modules/pixi.js/lib/loaders/loader.js":function(e,t,r){"use strict";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 o(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)}t.__esModule=!0;var a=r("./node_modules/resource-loader/lib/index.js"),u=i(a),l=r("./node_modules/resource-loader/lib/middlewares/parsing/blob.js"),h=r("./node_modules/pixi.js/node_modules/eventemitter3/index.js"),c=i(h),d=r("./node_modules/pixi.js/lib/loaders/textureParser.js"),f=i(d),p=r("./node_modules/pixi.js/lib/loaders/spritesheetParser.js"),m=i(p),_=r("./node_modules/pixi.js/lib/loaders/bitmapFontParser.js"),v=i(_),g=function(e){function t(r,i){n(this,t);var s=o(this,e.call(this,r,i));c.default.call(s);for(var a=0;a<t._pixiMiddleware.length;++a)s.use(t._pixiMiddleware[a]());return s.onStart.add(function(e){return s.emit("start",e)}),s.onProgress.add(function(e,t){return s.emit("progress",e,t)}),s.onError.add(function(e,t,r){return s.emit("error",e,t,r)}),s.onLoad.add(function(e,t){return s.emit("load",e,t)}),s.onComplete.add(function(e,t){return s.emit("complete",e,t)}),s}return s(t,e),t.addPixiMiddleware=function(e){t._pixiMiddleware.push(e)},t.prototype.destroy=function(){this.removeAllListeners(),this.reset()},t}(u.default);t.default=g;for(var y in c.default.prototype)g.prototype[y]=c.default.prototype[y];g._pixiMiddleware=[l.blobMiddlewareFactory,f.default,m.default,v.default];var x=u.default.Resource;x.setExtensionXhrType("fnt",x.XHR_RESPONSE_TYPE.DOCUMENT)},"./node_modules/pixi.js/lib/loaders/spritesheetParser.js":function(e,t,r){"use strict";function i(e,t){return e.isDataUrl?e.data.meta.image:s.default.resolve(e.url.replace(t,""),e.data.meta.image)}t.__esModule=!0,t.default=function(){return function(e,t){var r=e.name+"_image";if(!e.data||e.type!==n.Resource.TYPE.JSON||!e.data.frames||this.resources[r])return void t();var o={crossOrigin:e.crossOrigin,loadType:n.Resource.LOAD_TYPE.IMAGE,metadata:e.metadata.imageMetadata,parentResource:e},s=i(e,this.baseUrl);this.add(r,s,o,function(r){var i=new a.Spritesheet(r.texture.baseTexture,e.data,e.url);i.parse(function(){e.spritesheet=i,e.textures=i.textures,t()})})}},t.getResourcePath=i;var n=r("./node_modules/resource-loader/lib/index.js"),o=r("./node_modules/url/url.js"),s=function(e){return e&&e.__esModule?e:{default:e}}(o),a=r("./node_modules/pixi.js/lib/core/index.js")},"./node_modules/pixi.js/lib/loaders/textureParser.js":function(e,t,r){"use strict";t.__esModule=!0,t.default=function(){return function(e,t){e.data&&e.type===i.Resource.TYPE.IMAGE&&(e.texture=o.default.fromLoader(e.data,e.url,e.name)),t()}};var i=r("./node_modules/resource-loader/lib/index.js"),n=r("./node_modules/pixi.js/lib/core/textures/Texture.js"),o=function(e){return e&&e.__esModule?e:{default:e}}(n)},"./node_modules/pixi.js/lib/mesh/Mesh.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(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)}t.__esModule=!0;var s=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}}(),a=r("./node_modules/pixi.js/lib/core/index.js"),u=function(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}(a),l=r("./node_modules/pixi.js/lib/extras/TextureTransform.js"),h=function(e){return e&&e.__esModule?e:{default:e}}(l),c=new u.Point,d=new u.Polygon,f=function(e){function t(r,o,s,a,l){i(this,t);var c=n(this,e.call(this));return c._texture=r,c.uvs=s||new Float32Array([0,0,1,0,1,1,0,1]),c.vertices=o||new Float32Array([0,0,100,0,100,100,0,100]),c.indices=a||new Uint16Array([0,1,3,2]),c.dirty=0,c.indexDirty=0,c.blendMode=u.BLEND_MODES.NORMAL,c.canvasPadding=0,c.drawMode=l||t.DRAW_MODES.TRIANGLE_MESH,c.shader=null,c.tintRgb=new Float32Array([1,1,1]),c._glDatas={},c._uvTransform=new h.default(r),c.uploadUvTransform=!1,c.pluginName="mesh",c}return o(t,e),t.prototype._renderWebGL=function(e){this.refresh(),e.setObjectRenderer(e.plugins[this.pluginName]),e.plugins[this.pluginName].render(this)},t.prototype._renderCanvas=function(e){this.refresh(),e.plugins[this.pluginName].render(this)},t.prototype._onTextureUpdate=function(){this._uvTransform.texture=this._texture,this.refresh()},t.prototype.multiplyUvs=function(){this.uploadUvTransform||this._uvTransform.multiplyUvs(this.uvs)},t.prototype.refresh=function(e){this._uvTransform.update(e)&&this._refresh()},t.prototype._refresh=function(){},t.prototype._calculateBounds=function(){this._bounds.addVertices(this.transform,this.vertices,0,this.vertices.length)},t.prototype.containsPoint=function(e){if(!this.getBounds().contains(e.x,e.y))return!1;this.worldTransform.applyInverse(e,c);for(var r=this.vertices,i=d.points,n=this.indices,o=this.indices.length,s=this.drawMode===t.DRAW_MODES.TRIANGLES?3:1,a=0;a+2<o;a+=s){var u=2*n[a],l=2*n[a+1],h=2*n[a+2];if(i[0]=r[u],i[1]=r[u+1],i[2]=r[l],i[3]=r[l+1],i[4]=r[h],i[5]=r[h+1],d.contains(c.x,c.y))return!0}return!1},s(t,[{key:"texture",get:function(){return this._texture},set:function(e){this._texture!==e&&(this._texture=e,e&&(e.baseTexture.hasLoaded?this._onTextureUpdate():e.once("update",this._onTextureUpdate,this)))}},{key:"tint",get:function(){return u.utils.rgb2hex(this.tintRgb)},set:function(e){this.tintRgb=u.utils.hex2rgb(e,this.tintRgb)}}]),t}(u.Container);t.default=f,f.DRAW_MODES={TRIANGLE_MESH:0,TRIANGLES:1}},"./node_modules/pixi.js/lib/mesh/NineSlicePlane.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(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)}t.__esModule=!0;var s=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}}(),a=r("./node_modules/pixi.js/lib/mesh/Plane.js"),u=function(e){return e&&e.__esModule?e:{default:e}}(a),l=10,h=function(e){function t(r,o,s,a,u){i(this,t);var h=n(this,e.call(this,r,4,4));return h._origWidth=r.orig.width,h._origHeight=r.orig.height,h._width=h._origWidth,h._height=h._origHeight,h.leftWidth=void 0!==o?o:l,h.rightWidth=void 0!==a?a:l,h.topHeight=void 0!==s?s:l,h.bottomHeight=void 0!==u?u:l,h.refresh(!0),h}return o(t,e),t.prototype.updateHorizontalVertices=function(){var e=this.vertices;e[9]=e[11]=e[13]=e[15]=this._topHeight,e[17]=e[19]=e[21]=e[23]=this._height-this._bottomHeight,e[25]=e[27]=e[29]=e[31]=this._height},t.prototype.updateVerticalVertices=function(){var e=this.vertices;e[2]=e[10]=e[18]=e[26]=this._leftWidth,e[4]=e[12]=e[20]=e[28]=this._width-this._rightWidth,e[6]=e[14]=e[22]=e[30]=this._width},t.prototype._renderCanvas=function(e){var t=e.context;t.globalAlpha=this.worldAlpha;var r=this.worldTransform,i=e.resolution;e.roundPixels?t.setTransform(r.a*i,r.b*i,r.c*i,r.d*i,r.tx*i|0,r.ty*i|0):t.setTransform(r.a*i,r.b*i,r.c*i,r.d*i,r.tx*i,r.ty*i);var n=this._texture.baseTexture,o=n.source,s=n.width,a=n.height;this.drawSegment(t,o,s,a,0,1,10,11),this.drawSegment(t,o,s,a,2,3,12,13),this.drawSegment(t,o,s,a,4,5,14,15),this.drawSegment(t,o,s,a,8,9,18,19),this.drawSegment(t,o,s,a,10,11,20,21),this.drawSegment(t,o,s,a,12,13,22,23),this.drawSegment(t,o,s,a,16,17,26,27),this.drawSegment(t,o,s,a,18,19,28,29),this.drawSegment(t,o,s,a,20,21,30,31)},t.prototype.drawSegment=function(e,t,r,i,n,o,s,a){var u=this.uvs,l=this.vertices,h=(u[s]-u[n])*r,c=(u[a]-u[o])*i,d=l[s]-l[n],f=l[a]-l[o];h<1&&(h=1),c<1&&(c=1),d<1&&(d=1),f<1&&(f=1),e.drawImage(t,u[n]*r,u[o]*i,h,c,l[n],l[o],d,f)},t.prototype._refresh=function(){e.prototype._refresh.call(this);var t=this.uvs,r=this._texture;this._origWidth=r.orig.width,this._origHeight=r.orig.height;var i=1/this._origWidth,n=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]=i*this._leftWidth,t[4]=t[12]=t[20]=t[28]=1-i*this._rightWidth,t[9]=t[11]=t[13]=t[15]=n*this._topHeight,t[17]=t[19]=t[21]=t[23]=1-n*this._bottomHeight,this.updateHorizontalVertices(),this.updateVerticalVertices(),this.dirty++,this.multiplyUvs()},s(t,[{key:"width",get:function(){return this._width},set:function(e){this._width=e,this._refresh()}},{key:"height",get:function(){return this._height},set:function(e){this._height=e,this._refresh()}},{key:"leftWidth",get:function(){return this._leftWidth},set:function(e){this._leftWidth=e,this._refresh()}},{key:"rightWidth",get:function(){return this._rightWidth},set:function(e){this._rightWidth=e,this._refresh()}},{key:"topHeight",get:function(){return this._topHeight},set:function(e){this._topHeight=e,this._refresh()}},{key:"bottomHeight",get:function(){return this._bottomHeight},set:function(e){this._bottomHeight=e,this._refresh()}}]),t}(u.default);t.default=h},"./node_modules/pixi.js/lib/mesh/Plane.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(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)}t.__esModule=!0;var s=r("./node_modules/pixi.js/lib/mesh/Mesh.js"),a=function(e){return e&&e.__esModule?e:{default:e}}(s),u=function(e){function t(r,o,s){i(this,t);var u=n(this,e.call(this,r));return u._ready=!0,u.verticesX=o||10,u.verticesY=s||10,u.drawMode=a.default.DRAW_MODES.TRIANGLES,u.refresh(),u}return o(t,e),t.prototype._refresh=function(){for(var e=this._texture,t=this.verticesX*this.verticesY,r=[],i=[],n=[],o=[],s=this.verticesX-1,a=this.verticesY-1,u=e.width/s,l=e.height/a,h=0;h<t;h++){var c=h%this.verticesX,d=h/this.verticesX|0;r.push(c*u,d*l),n.push(c/s,d/a)}for(var f=s*a,p=0;p<f;p++){var m=p%s,_=p/s|0,v=_*this.verticesX+m,g=_*this.verticesX+m+1,y=(_+1)*this.verticesX+m,x=(_+1)*this.verticesX+m+1;o.push(v,g,y),o.push(g,x,y)}this.vertices=new Float32Array(r),this.uvs=new Float32Array(n),this.colors=new Float32Array(i),this.indices=new Uint16Array(o),this.indexDirty++,this.multiplyUvs()},t.prototype._onTextureUpdate=function(){a.default.prototype._onTextureUpdate.call(this),this._ready&&this.refresh()},t}(a.default);t.default=u},"./node_modules/pixi.js/lib/mesh/Rope.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(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)}t.__esModule=!0;var s=r("./node_modules/pixi.js/lib/mesh/Mesh.js"),a=function(e){return e&&e.__esModule?e:{default:e}}(s),u=function(e){function t(r,o){i(this,t);var s=n(this,e.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(t,e),t.prototype._refresh=function(){var e=this.points;if(!(e.length<1)&&this._texture._uvs){this.vertices.length/4!==e.length&&(this.vertices=new Float32Array(4*e.length),this.uvs=new Float32Array(4*e.length),this.colors=new Float32Array(2*e.length),this.indices=new Uint16Array(2*e.length));var t=this.uvs,r=this.indices,i=this.colors;t[0]=0,t[1]=0,t[2]=0,t[3]=1,i[0]=1,i[1]=1,r[0]=0,r[1]=1;for(var n=e.length,o=1;o<n;o++){var s=4*o,a=o/(n-1);t[s]=a,t[s+1]=0,t[s+2]=a,t[s+3]=1,s=2*o,i[s]=1,i[s+1]=1,s=2*o,r[s]=s,r[s+1]=s+1}this.dirty++,this.indexDirty++,this.multiplyUvs(),this.refreshVertices()}},t.prototype.refreshVertices=function(){var e=this.points;if(!(e.length<1))for(var t=e[0],r=void 0,i=0,n=0,o=this.vertices,s=e.length,a=0;a<s;a++){var u=e[a],l=4*a;r=a<e.length-1?e[a+1]:u,n=-(r.x-t.x),i=r.y-t.y;var h=10*(1-a/(s-1));h>1&&(h=1);var c=Math.sqrt(i*i+n*n),d=this._texture.height/2;i/=c,n/=c,i*=d,n*=d,o[l]=u.x+i,o[l+1]=u.y+n,o[l+2]=u.x-i,o[l+3]=u.y-n,t=u}},t.prototype.updateTransform=function(){this.autoUpdate&&this.refreshVertices(),this.containerUpdateTransform()},t}(a.default);t.default=u},"./node_modules/pixi.js/lib/mesh/canvas/CanvasMeshRenderer.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var n=r("./node_modules/pixi.js/lib/core/index.js"),o=function(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}(n),s=r("./node_modules/pixi.js/lib/mesh/Mesh.js"),a=function(e){return e&&e.__esModule?e:{default:e}}(s),u=function(){function e(t){i(this,e),this.renderer=t}return e.prototype.render=function(e){var t=this.renderer,r=t.context,i=e.worldTransform,n=t.resolution;t.roundPixels?r.setTransform(i.a*n,i.b*n,i.c*n,i.d*n,i.tx*n|0,i.ty*n|0):r.setTransform(i.a*n,i.b*n,i.c*n,i.d*n,i.tx*n,i.ty*n),t.setBlendMode(e.blendMode),e.drawMode===a.default.DRAW_MODES.TRIANGLE_MESH?this._renderTriangleMesh(e):this._renderTriangles(e)},e.prototype._renderTriangleMesh=function(e){for(var t=e.vertices.length/2,r=0;r<t-2;r++){var i=2*r;this._renderDrawTriangle(e,i,i+2,i+4)}},e.prototype._renderTriangles=function(e){for(var t=e.indices,r=t.length,i=0;i<r;i+=3){var n=2*t[i],o=2*t[i+1],s=2*t[i+2];this._renderDrawTriangle(e,n,o,s)}},e.prototype._renderDrawTriangle=function(e,t,r,i){var n=this.renderer.context,o=e.uvs,s=e.vertices,a=e._texture;if(a.valid){var u=a.baseTexture,l=u.source,h=u.width,c=u.height,d=void 0,f=void 0,p=void 0,m=void 0,_=void 0,v=void 0;if(e.uploadUvTransform){var g=e._uvTransform.mapCoord;d=(o[t]*g.a+o[t+1]*g.c+g.tx)*u.width,f=(o[r]*g.a+o[r+1]*g.c+g.tx)*u.width,p=(o[i]*g.a+o[i+1]*g.c+g.tx)*u.width,m=(o[t]*g.b+o[t+1]*g.d+g.ty)*u.height,_=(o[r]*g.b+o[r+1]*g.d+g.ty)*u.height,v=(o[i]*g.b+o[i+1]*g.d+g.ty)*u.height}else d=o[t]*u.width,f=o[r]*u.width,p=o[i]*u.width,m=o[t+1]*u.height,_=o[r+1]*u.height,v=o[i+1]*u.height;var y=s[t],x=s[r],b=s[i],T=s[t+1],w=s[r+1],E=s[i+1];if(e.canvasPadding>0){var j=e.canvasPadding/e.worldTransform.a,S=e.canvasPadding/e.worldTransform.d,O=(y+x+b)/3,M=(T+w+E)/3,P=y-O,C=T-M,R=Math.sqrt(P*P+C*C);y=O+P/R*(R+j),T=M+C/R*(R+S),P=x-O,C=w-M,R=Math.sqrt(P*P+C*C),x=O+P/R*(R+j),w=M+C/R*(R+S),P=b-O,C=E-M,R=Math.sqrt(P*P+C*C),b=O+P/R*(R+j),E=M+C/R*(R+S)}n.save(),n.beginPath(),n.moveTo(y,T),n.lineTo(x,w),n.lineTo(b,E),n.closePath(),n.clip();var A=d*_+m*p+f*v-_*p-m*f-d*v,I=y*_+m*b+x*v-_*b-m*x-y*v,D=d*x+y*p+f*b-x*p-y*f-d*b,L=d*_*b+m*x*p+y*f*v-y*_*p-m*f*b-d*x*v,N=T*_+m*E+w*v-_*E-m*w-T*v,k=d*w+T*p+f*E-w*p-T*f-d*E,F=d*_*E+m*w*p+T*f*v-T*_*p-m*f*E-d*w*v;n.transform(I/A,N/A,D/A,k/A,L/A,F/A),n.drawImage(l,0,0,h*u.resolution,c*u.resolution,0,0,h,c),n.restore(),this.renderer.invalidateBlendMode()}},e.prototype.renderMeshFlat=function(e){var t=this.renderer.context,r=e.vertices,i=r.length/2;t.beginPath();for(var n=1;n<i-2;++n){var o=2*n,s=r[o],a=r[o+1],u=r[o+2],l=r[o+3],h=r[o+4],c=r[o+5];t.moveTo(s,a),t.lineTo(u,l),t.lineTo(h,c)}t.fillStyle="#FF0000",t.fill(),t.closePath()},e.prototype.destroy=function(){this.renderer=null},e}();t.default=u,o.CanvasRenderer.registerPlugin("mesh",u)},"./node_modules/pixi.js/lib/mesh/index.js":function(e,t,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var n=r("./node_modules/pixi.js/lib/mesh/Mesh.js");Object.defineProperty(t,"Mesh",{enumerable:!0,get:function(){return i(n).default}});var o=r("./node_modules/pixi.js/lib/mesh/webgl/MeshRenderer.js");Object.defineProperty(t,"MeshRenderer",{enumerable:!0,get:function(){return i(o).default}});var s=r("./node_modules/pixi.js/lib/mesh/canvas/CanvasMeshRenderer.js");Object.defineProperty(t,"CanvasMeshRenderer",{enumerable:!0,get:function(){return i(s).default}});var a=r("./node_modules/pixi.js/lib/mesh/Plane.js");Object.defineProperty(t,"Plane",{enumerable:!0,get:function(){return i(a).default}});var u=r("./node_modules/pixi.js/lib/mesh/NineSlicePlane.js");Object.defineProperty(t,"NineSlicePlane",{enumerable:!0,get:function(){return i(u).default}});var l=r("./node_modules/pixi.js/lib/mesh/Rope.js");Object.defineProperty(t,"Rope",{enumerable:!0,get:function(){return i(l).default}})},"./node_modules/pixi.js/lib/mesh/webgl/MeshRenderer.js":function(e,t,r){"use strict";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 o(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)}t.__esModule=!0;var a=r("./node_modules/pixi.js/lib/core/index.js"),u=function(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}(a),l=r("./node_modules/pixi-gl-core/src/index.js"),h=i(l),c=r("./node_modules/pixi.js/lib/mesh/Mesh.js"),d=i(c),f=(r("./node_modules/path-browserify/index.js"),u.Matrix.IDENTITY),p=function(e){function t(r){n(this,t);var i=o(this,e.call(this,r));return i.shader=null,i}return s(t,e),t.prototype.onContextChange=function(){var e=this.renderer.gl;this.shader=new u.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,r=t.gl,i=e._texture;if(i.valid){var n=e._glDatas[t.CONTEXT_UID];n||(t.bindVao(null),n={shader:this.shader,vertexBuffer:h.default.GLBuffer.createVertexBuffer(r,e.vertices,r.STREAM_DRAW),uvBuffer:h.default.GLBuffer.createVertexBuffer(r,e.uvs,r.STREAM_DRAW),indexBuffer:h.default.GLBuffer.createIndexBuffer(r,e.indices,r.STATIC_DRAW),vao:null,dirty:e.dirty,indexDirty:e.indexDirty},n.vao=new h.default.VertexArrayObject(r).addIndex(n.indexBuffer).addAttribute(n.vertexBuffer,n.shader.attributes.aVertexPosition,r.FLOAT,!1,8,0).addAttribute(n.uvBuffer,n.shader.attributes.aTextureCoord,r.FLOAT,!1,8,0),e._glDatas[t.CONTEXT_UID]=n),t.bindVao(n.vao),e.dirty!==n.dirty&&(n.dirty=e.dirty,n.uvBuffer.upload(e.uvs)),e.indexDirty!==n.indexDirty&&(n.indexDirty=e.indexDirty,n.indexBuffer.upload(e.indices)),n.vertexBuffer.upload(e.vertices),t.bindShader(n.shader),n.shader.uniforms.uSampler=t.bindTexture(i),t.state.setBlendMode(u.utils.correctBlendMode(e.blendMode,i.baseTexture.premultipliedAlpha)),n.shader.uniforms.uTransform&&(e.uploadUvTransform?n.shader.uniforms.uTransform=e._uvTransform.mapCoord.toArray(!0):n.shader.uniforms.uTransform=f.toArray(!0)),n.shader.uniforms.translationMatrix=e.worldTransform.toArray(!0),n.shader.uniforms.uColor=u.utils.premultiplyRgba(e.tintRgb,e.worldAlpha,n.shader.uniforms.uColor,i.baseTexture.premultipliedAlpha);var o=e.drawMode===d.default.DRAW_MODES.TRIANGLE_MESH?r.TRIANGLE_STRIP:r.TRIANGLES;n.vao.draw(o,e.indices.length,0)}},t}(u.ObjectRenderer);t.default=p,u.WebGLRenderer.registerPlugin("mesh",p)},"./node_modules/pixi.js/lib/particles/ParticleContainer.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(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)}t.__esModule=!0;var s=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}}(),a=r("./node_modules/pixi.js/lib/core/index.js"),u=function(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}(a),l=r("./node_modules/pixi.js/lib/core/utils/index.js"),h=function(e){function t(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1500,o=arguments[1],s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:16384,a=arguments.length>3&&void 0!==arguments[3]&&arguments[3];i(this,t);var l=n(this,e.call(this));return s>16384&&(s=16384),s>r&&(s=r),l._properties=[!1,!0,!1,!1,!1],l._maxSize=r,l._batchSize=s,l._glBuffers={},l._bufferToUpdate=0,l.interactiveChildren=!1,l.blendMode=u.BLEND_MODES.NORMAL,l.autoResize=a,l.roundPixels=!0,l.baseTexture=null,l.setProperties(o),l._tint=0,l.tintRgb=new Float32Array(4),l.tint=16777215,l}return o(t,e),t.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])},t.prototype.updateTransform=function(){this.displayObjectUpdateTransform()},t.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))},t.prototype.onChildrenChange=function(e){var t=Math.floor(e/this._batchSize);t<this._bufferToUpdate&&(this._bufferToUpdate=t)},t.prototype.renderCanvas=function(e){if(this.visible&&!(this.worldAlpha<=0)&&this.children.length&&this.renderable){var t=e.context,r=this.worldTransform,i=!0,n=0,o=0,s=0,a=0;e.setBlendMode(this.blendMode),t.globalAlpha=this.worldAlpha,this.displayObjectUpdateTransform();for(var u=0;u<this.children.length;++u){var l=this.children[u];if(l.visible){var h=l._texture.frame;if(t.globalAlpha=this.worldAlpha*l.alpha,l.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),n=l.anchor.x*(-h.width*l.scale.x)+l.position.x+.5,o=l.anchor.y*(-h.height*l.scale.y)+l.position.y+.5,s=h.width*l.scale.x,a=h.height*l.scale.y;else{i||(i=!0),l.displayObjectUpdateTransform();var c=l.worldTransform;e.roundPixels?t.setTransform(c.a,c.b,c.c,c.d,c.tx*e.resolution|0,c.ty*e.resolution|0):t.setTransform(c.a,c.b,c.c,c.d,c.tx*e.resolution,c.ty*e.resolution),n=l.anchor.x*-h.width+.5,o=l.anchor.y*-h.height+.5,s=h.width,a=h.height}var d=l._texture.baseTexture.resolution;t.drawImage(l._texture.baseTexture.source,h.x*d,h.y*d,h.width*d,h.height*d,n*e.resolution,o*e.resolution,s*e.resolution,a*e.resolution)}}}},t.prototype.destroy=function(t){if(e.prototype.destroy.call(this,t),this._buffers)for(var r=0;r<this._buffers.length;++r)this._buffers[r].destroy();this._properties=null,this._buffers=null},s(t,[{key:"tint",get:function(){return this._tint},set:function(e){this._tint=e,(0,l.hex2rgb)(e,this.tintRgb)}}]),t}(u.Container);t.default=h},"./node_modules/pixi.js/lib/particles/index.js":function(e,t,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var n=r("./node_modules/pixi.js/lib/particles/ParticleContainer.js");Object.defineProperty(t,"ParticleContainer",{enumerable:!0,get:function(){return i(n).default}});var o=r("./node_modules/pixi.js/lib/particles/webgl/ParticleRenderer.js");Object.defineProperty(t,"ParticleRenderer",{enumerable:!0,get:function(){return i(o).default}})},"./node_modules/pixi.js/lib/particles/webgl/ParticleBuffer.js":function(e,t,r){"use strict";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")}t.__esModule=!0;var o=r("./node_modules/pixi-gl-core/src/index.js"),s=i(o),a=r("./node_modules/pixi.js/lib/core/utils/createIndicesForQuads.js"),u=i(a),l=function(){function e(t,r,i,o){n(this,e),this.gl=t,this.size=o,this.dynamicProperties=[],this.staticProperties=[];for(var s=0;s<r.length;++s){var a=r[s];a={attribute:a.attribute,size:a.size,uploadFunction:a.uploadFunction,unsignedByte:a.unsignedByte,offset:a.offset},i[s]?this.dynamicProperties.push(a):this.staticProperties.push(a)}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 e.prototype.initBuffers=function(){var e=this.gl,t=0;this.indices=(0,u.default)(this.size),this.indexBuffer=s.default.GLBuffer.createIndexBuffer(e,this.indices,e.STATIC_DRAW),this.dynamicStride=0;for(var r=0;r<this.dynamicProperties.length;++r){var i=this.dynamicProperties[r];i.offset=t,t+=i.size,this.dynamicStride+=i.size}var n=new ArrayBuffer(this.size*this.dynamicStride*4*4);this.dynamicData=new Float32Array(n),this.dynamicDataUint32=new Uint32Array(n),this.dynamicBuffer=s.default.GLBuffer.createVertexBuffer(e,n,e.STREAM_DRAW);var o=0;this.staticStride=0;for(var a=0;a<this.staticProperties.length;++a){var l=this.staticProperties[a];l.offset=o,o+=l.size,this.staticStride+=l.size}var h=new ArrayBuffer(this.size*this.staticStride*4*4);this.staticData=new Float32Array(h),this.staticDataUint32=new Uint32Array(h),this.staticBuffer=s.default.GLBuffer.createVertexBuffer(e,h,e.STATIC_DRAW),this.vao=new s.default.VertexArrayObject(e).addIndex(this.indexBuffer);for(var c=0;c<this.dynamicProperties.length;++c){var d=this.dynamicProperties[c];d.unsignedByte?this.vao.addAttribute(this.dynamicBuffer,d.attribute,e.UNSIGNED_BYTE,!0,4*this.dynamicStride,4*d.offset):this.vao.addAttribute(this.dynamicBuffer,d.attribute,e.FLOAT,!1,4*this.dynamicStride,4*d.offset)}for(var f=0;f<this.staticProperties.length;++f){var p=this.staticProperties[f];p.unsignedByte?this.vao.addAttribute(this.staticBuffer,p.attribute,e.UNSIGNED_BYTE,!0,4*this.staticStride,4*p.offset):this.vao.addAttribute(this.staticBuffer,p.attribute,e.FLOAT,!1,4*this.staticStride,4*p.offset)}},e.prototype.uploadDynamic=function(e,t,r){for(var i=0;i<this.dynamicProperties.length;i++){var n=this.dynamicProperties[i];n.uploadFunction(e,t,r,n.unsignedByte?this.dynamicDataUint32:this.dynamicData,this.dynamicStride,n.offset)}this.dynamicBuffer.upload()},e.prototype.uploadStatic=function(e,t,r){for(var i=0;i<this.staticProperties.length;i++){var n=this.staticProperties[i];n.uploadFunction(e,t,r,n.unsignedByte?this.staticDataUint32:this.staticData,this.staticStride,n.offset)}this.staticBuffer.upload()},e.prototype.destroy=function(){this.dynamicProperties=null,this.dynamicData=null,this.dynamicBuffer.destroy(),this.staticProperties=null,this.staticData=null,this.staticBuffer.destroy()},e}();t.default=l},"./node_modules/pixi.js/lib/particles/webgl/ParticleRenderer.js":function(e,t,r){"use strict";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 o(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)}t.__esModule=!0;var a=r("./node_modules/pixi.js/lib/core/index.js"),u=function(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}(a),l=r("./node_modules/pixi.js/lib/particles/webgl/ParticleShader.js"),h=i(l),c=r("./node_modules/pixi.js/lib/particles/webgl/ParticleBuffer.js"),d=i(c),f=r("./node_modules/pixi.js/lib/core/utils/index.js"),p=function(e){function t(r){n(this,t);var i=o(this,e.call(this,r));return i.shader=null,i.indexBuffer=null,i.properties=null,i.tempMatrix=new u.Matrix,i.CONTEXT_UID=0,i}return s(t,e),t.prototype.onContextChange=function(){var e=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.shader=new h.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}]},t.prototype.start=function(){this.renderer.bindShader(this.shader)},t.prototype.render=function(e){var t=e.children,r=e._maxSize,i=e._batchSize,n=this.renderer,o=t.length;if(0!==o){o>r&&(o=r);var s=e._glBuffers[n.CONTEXT_UID];s||(s=e._glBuffers[n.CONTEXT_UID]=this.generateBuffers(e));var a=t[0]._texture.baseTexture;this.renderer.setBlendMode(u.utils.correctBlendMode(e.blendMode,a.premultipliedAlpha));var l=n.gl,h=e.worldTransform.copy(this.tempMatrix);h.prepend(n._activeRenderTarget.projectionMatrix),this.shader.uniforms.projectionMatrix=h.toArray(!0),this.shader.uniforms.uColor=u.utils.premultiplyRgba(e.tintRgb,e.worldAlpha,this.shader.uniforms.uColor,a.premultipliedAlpha),this.shader.uniforms.uSampler=n.bindTexture(a);for(var c=0,d=0;c<o;c+=i,d+=1){var f=o-c;if(f>i&&(f=i),d>=s.length){if(!e.autoResize)break;s.push(this._generateOneMoreBuffer(e))}var p=s[d];p.uploadDynamic(t,c,f),e._bufferToUpdate===d&&(p.uploadStatic(t,c,f),e._bufferToUpdate=d+1),n.bindVao(p.vao),p.vao.draw(l.TRIANGLES,6*f)}}},t.prototype.generateBuffers=function(e){for(var t=this.renderer.gl,r=[],i=e._maxSize,n=e._batchSize,o=e._properties,s=0;s<i;s+=n)r.push(new d.default(t,this.properties,o,n));return r},t.prototype._generateOneMoreBuffer=function(e){var t=this.renderer.gl,r=e._batchSize,i=e._properties;return new d.default(t,this.properties,i,r)},t.prototype.uploadVertices=function(e,t,r,i,n,o){for(var s=0,a=0,u=0,l=0,h=0;h<r;++h){var c=e[t+h],d=c._texture,f=c.scale.x,p=c.scale.y,m=d.trim,_=d.orig;m?(a=m.x-c.anchor.x*_.width,s=a+m.width,l=m.y-c.anchor.y*_.height,u=l+m.height):(s=_.width*(1-c.anchor.x),a=_.width*-c.anchor.x,u=_.height*(1-c.anchor.y),l=_.height*-c.anchor.y),i[o]=a*f,i[o+1]=l*p,i[o+n]=s*f,i[o+n+1]=l*p,i[o+2*n]=s*f,i[o+2*n+1]=u*p,i[o+3*n]=a*f,i[o+3*n+1]=u*p,o+=4*n}},t.prototype.uploadPosition=function(e,t,r,i,n,o){for(var s=0;s<r;s++){var a=e[t+s].position;i[o]=a.x,i[o+1]=a.y,i[o+n]=a.x,i[o+n+1]=a.y,i[o+2*n]=a.x,i[o+2*n+1]=a.y,i[o+3*n]=a.x,i[o+3*n+1]=a.y,o+=4*n}},t.prototype.uploadRotation=function(e,t,r,i,n,o){for(var s=0;s<r;s++){var a=e[t+s].rotation;i[o]=a,i[o+n]=a,i[o+2*n]=a,i[o+3*n]=a,o+=4*n}},t.prototype.uploadUvs=function(e,t,r,i,n,o){for(var s=0;s<r;++s){var a=e[t+s]._texture._uvs;a?(i[o]=a.x0,i[o+1]=a.y0,i[o+n]=a.x1,i[o+n+1]=a.y1,i[o+2*n]=a.x2,i[o+2*n+1]=a.y2,i[o+3*n]=a.x3,i[o+3*n+1]=a.y3,o+=4*n):(i[o]=0,i[o+1]=0,i[o+n]=0,i[o+n+1]=0,i[o+2*n]=0,i[o+2*n+1]=0,i[o+3*n]=0,i[o+3*n+1]=0,o+=4*n)}},t.prototype.uploadTint=function(e,t,r,i,n,o){for(var s=0;s<r;++s){var a=e[t+s],u=a._texture.baseTexture.premultipliedAlpha,l=a.alpha,h=l<1&&u?(0,f.premultiplyTint)(a._tintRGB,l):a._tintRGB+(255*l<<24);i[o]=h,i[o+n]=h,i[o+2*n]=h,i[o+3*n]=h,o+=4*n}},t.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},t}(u.ObjectRenderer);t.default=p,u.WebGLRenderer.registerPlugin("particle",p)},"./node_modules/pixi.js/lib/particles/webgl/ParticleShader.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(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)}t.__esModule=!0;var s=r("./node_modules/pixi.js/lib/core/Shader.js"),a=function(e){return e&&e.__esModule?e:{default:e}}(s),u=function(e){function t(r){return i(this,t),n(this,e.call(this,r,["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 o(t,e),t}(a.default);t.default=u},"./node_modules/pixi.js/lib/polyfill/Math.sign.js":function(e,t,r){"use strict";Math.sign||(Math.sign=function(e){return e=Number(e),0===e||isNaN(e)?e:e>0?1:-1})},"./node_modules/pixi.js/lib/polyfill/Object.assign.js":function(e,t,r){"use strict";var i=r("./node_modules/pixi.js/node_modules/object-assign/index.js"),n=function(e){return e&&e.__esModule?e:{default:e}}(i);Object.assign||(Object.assign=n.default)},"./node_modules/pixi.js/lib/polyfill/index.js":function(e,t,r){"use strict";r("./node_modules/pixi.js/lib/polyfill/Object.assign.js"),r("./node_modules/pixi.js/lib/polyfill/requestAnimationFrame.js"),r("./node_modules/pixi.js/lib/polyfill/Math.sign.js"),window.ArrayBuffer||(window.ArrayBuffer=Array),window.Float32Array||(window.Float32Array=Array),window.Uint32Array||(window.Uint32Array=Array),window.Uint16Array||(window.Uint16Array=Array)},"./node_modules/pixi.js/lib/polyfill/requestAnimationFrame.js":function(e,t,r){"use strict";(function(e){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 r=Date.now(),i=["ms","moz","webkit","o"],n=0;n<i.length&&!e.requestAnimationFrame;++n){var o=i[n];e.requestAnimationFrame=e[o+"RequestAnimationFrame"],e.cancelAnimationFrame=e[o+"CancelAnimationFrame"]||e[o+"CancelRequestAnimationFrame"]}e.requestAnimationFrame||(e.requestAnimationFrame=function(e){if("function"!=typeof e)throw new TypeError(e+"is not a function");var t=Date.now(),i=16+r-t;return i<0&&(i=0),r=t,setTimeout(function(){r=Date.now(),e(performance.now())},i)}),e.cancelAnimationFrame||(e.cancelAnimationFrame=function(e){return clearTimeout(e)})}).call(t,r("./node_modules/webpack/buildin/global.js"))},"./node_modules/pixi.js/lib/prepare/BasePrepare.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(e,t){var r=!1;if(e&&e._textures&&e._textures.length)for(var i=0;i<e._textures.length;i++)if(e._textures[i]instanceof d.Texture){var n=e._textures[i].baseTexture;-1===t.indexOf(n)&&(t.push(n),r=!0)}return r}function o(e,t){return e instanceof d.BaseTexture&&(-1===t.indexOf(e)&&t.push(e),!0)}function s(e,t){if(e._texture&&e._texture instanceof d.Texture){var r=e._texture.baseTexture;return-1===t.indexOf(r)&&t.push(r),!0}return!1}function a(e,t){return t instanceof d.Text&&(t.updateText(!0),!0)}function u(e,t){if(t instanceof d.TextStyle){var r=t.toFontString();return d.TextMetrics.measureFont(r),!0}return!1}function l(e,t){if(e instanceof d.Text){-1===t.indexOf(e.style)&&t.push(e.style),-1===t.indexOf(e)&&t.push(e);var r=e._texture.baseTexture;return-1===t.indexOf(r)&&t.push(r),!0}return!1}function h(e,t){return e instanceof d.TextStyle&&(-1===t.indexOf(e)&&t.push(e),!0)}t.__esModule=!0;var c=r("./node_modules/pixi.js/lib/core/index.js"),d=function(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}(c),f=r("./node_modules/pixi.js/lib/prepare/limiters/CountLimiter.js"),p=function(e){return e&&e.__esModule?e:{default:e}}(f),m=d.ticker.shared;d.settings.UPLOADS_PER_FRAME=4;var _=function(){function e(t){var r=this;i(this,e),this.limiter=new p.default(d.settings.UPLOADS_PER_FRAME),this.renderer=t,this.uploadHookHelper=null,this.queue=[],this.addHooks=[],this.uploadHooks=[],this.completes=[],this.ticking=!1,this.delayedTick=function(){r.queue&&r.prepareItems()},this.registerFindHook(l),this.registerFindHook(h),this.registerFindHook(n),this.registerFindHook(o),this.registerFindHook(s),this.registerUploadHook(a),this.registerUploadHook(u)}return e.prototype.upload=function(e,t){"function"==typeof e&&(t=e,e=null),e&&this.add(e),this.queue.length?(t&&this.completes.push(t),this.ticking||(this.ticking=!0,m.addOnce(this.tick,this,d.UPDATE_PRIORITY.UTILITY))):t&&t()},e.prototype.tick=function(){setTimeout(this.delayedTick,0)},e.prototype.prepareItems=function(){for(this.limiter.beginFrame();this.queue.length&&this.limiter.allowedToUpload();){var e=this.queue[0],t=!1;if(e&&!e._destroyed)for(var r=0,i=this.uploadHooks.length;r<i;r++)if(this.uploadHooks[r](this.uploadHookHelper,e)){this.queue.shift(),t=!0;break}t||this.queue.shift()}if(this.queue.length)m.addOnce(this.tick,this,d.UPDATE_PRIORITY.UTILITY);else{this.ticking=!1;var n=this.completes.slice(0);this.completes.length=0;for(var o=0,s=n.length;o<s;o++)n[o]()}},e.prototype.registerFindHook=function(e){return e&&this.addHooks.push(e),this},e.prototype.registerUploadHook=function(e){return e&&this.uploadHooks.push(e),this},e.prototype.add=function(e){for(var t=0,r=this.addHooks.length;t<r&&!this.addHooks[t](e,this.queue);t++);if(e instanceof d.Container)for(var i=e.children.length-1;i>=0;i--)this.add(e.children[i]);return this},e.prototype.destroy=function(){this.ticking&&m.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},e}();t.default=_},"./node_modules/pixi.js/lib/prepare/canvas/CanvasPrepare.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(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)}function s(e,t){if(t instanceof u.BaseTexture){var r=t.source,i=0===r.width?e.canvas.width:Math.min(e.canvas.width,r.width),n=0===r.height?e.canvas.height:Math.min(e.canvas.height,r.height);return e.ctx.drawImage(r,0,0,i,n,0,0,e.canvas.width,e.canvas.height),!0}return!1}t.__esModule=!0;var a=r("./node_modules/pixi.js/lib/core/index.js"),u=function(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}(a),l=r("./node_modules/pixi.js/lib/prepare/BasePrepare.js"),h=function(e){return e&&e.__esModule?e:{default:e}}(l),c=16,d=function(e){function t(r){i(this,t);var o=n(this,e.call(this,r));return o.uploadHookHelper=o,o.canvas=document.createElement("canvas"),o.canvas.width=c,o.canvas.height=c,o.ctx=o.canvas.getContext("2d"),o.registerUploadHook(s),o}return o(t,e),t.prototype.destroy=function(){e.prototype.destroy.call(this),this.ctx=null,this.canvas=null},t}(h.default);t.default=d,u.CanvasRenderer.registerPlugin("prepare",d)},"./node_modules/pixi.js/lib/prepare/index.js":function(e,t,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}t.__esModule=!0;var n=r("./node_modules/pixi.js/lib/prepare/webgl/WebGLPrepare.js");Object.defineProperty(t,"webgl",{enumerable:!0,get:function(){return i(n).default}});var o=r("./node_modules/pixi.js/lib/prepare/canvas/CanvasPrepare.js");Object.defineProperty(t,"canvas",{enumerable:!0,get:function(){return i(o).default}});var s=r("./node_modules/pixi.js/lib/prepare/BasePrepare.js");Object.defineProperty(t,"BasePrepare",{enumerable:!0,get:function(){return i(s).default}});var a=r("./node_modules/pixi.js/lib/prepare/limiters/CountLimiter.js");Object.defineProperty(t,"CountLimiter",{enumerable:!0,get:function(){return i(a).default}});var u=r("./node_modules/pixi.js/lib/prepare/limiters/TimeLimiter.js");Object.defineProperty(t,"TimeLimiter",{enumerable:!0,get:function(){return i(u).default}})},"./node_modules/pixi.js/lib/prepare/limiters/CountLimiter.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var n=function(){function e(t){i(this,e),this.maxItemsPerFrame=t,this.itemsLeft=0}return e.prototype.beginFrame=function(){this.itemsLeft=this.maxItemsPerFrame},e.prototype.allowedToUpload=function(){return this.itemsLeft-- >0},e}();t.default=n},"./node_modules/pixi.js/lib/prepare/limiters/TimeLimiter.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}t.__esModule=!0;var n=function(){function e(t){i(this,e),this.maxMilliseconds=t,this.frameStart=0}return e.prototype.beginFrame=function(){this.frameStart=Date.now()},e.prototype.allowedToUpload=function(){return Date.now()-this.frameStart<this.maxMilliseconds},e}();t.default=n},"./node_modules/pixi.js/lib/prepare/webgl/WebGLPrepare.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function n(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)}function s(e,t){return t instanceof h.BaseTexture&&(t._glTextures[e.CONTEXT_UID]||e.textureManager.updateTexture(t),!0)}function a(e,t){return t instanceof h.Graphics&&((t.dirty||t.clearDirty||!t._webGL[e.plugins.graphics.CONTEXT_UID])&&e.plugins.graphics.updateGraphics(t),!0)}function u(e,t){return e instanceof h.Graphics&&(t.push(e),!0)}t.__esModule=!0;var l=r("./node_modules/pixi.js/lib/core/index.js"),h=function(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}(l),c=r("./node_modules/pixi.js/lib/prepare/BasePrepare.js"),d=function(e){return e&&e.__esModule?e:{default:e}}(c),f=function(e){function t(r){i(this,t);var o=n(this,e.call(this,r));return o.uploadHookHelper=o.renderer,o.registerFindHook(u),o.registerUploadHook(s),o.registerUploadHook(a),o}return o(t,e),t}(d.default);t.default=f,h.WebGLRenderer.registerPlugin("prepare",f)},"./node_modules/pixi.js/node_modules/eventemitter3/index.js":function(e,t,r){"use strict";function i(){}function n(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function o(){this._events=new i,this._eventsCount=0}var s=Object.prototype.hasOwnProperty,a="~";Object.create&&(i.prototype=Object.create(null),(new i).__proto__||(a=!1)),o.prototype.eventNames=function(){var e,t,r=[];if(0===this._eventsCount)return r;for(t in e=this._events)s.call(e,t)&&r.push(a?t.slice(1):t);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},o.prototype.listeners=function(e,t){var r=a?a+e:e,i=this._events[r];if(t)return!!i;if(!i)return[];if(i.fn)return[i.fn];for(var n=0,o=i.length,s=new Array(o);n<o;n++)s[n]=i[n].fn;return s},o.prototype.emit=function(e,t,r,i,n,o){var s=a?a+e:e;if(!this._events[s])return!1;var u,l,h=this._events[s],c=arguments.length;if(h.fn){switch(h.once&&this.removeListener(e,h.fn,void 0,!0),c){case 1:return h.fn.call(h.context),!0;case 2:return h.fn.call(h.context,t),!0;case 3:return h.fn.call(h.context,t,r),!0;case 4:return h.fn.call(h.context,t,r,i),!0;case 5:return h.fn.call(h.context,t,r,i,n),!0;case 6:return h.fn.call(h.context,t,r,i,n,o),!0}for(l=1,u=new Array(c-1);l<c;l++)u[l-1]=arguments[l];h.fn.apply(h.context,u)}else{var d,f=h.length;for(l=0;l<f;l++)switch(h[l].once&&this.removeListener(e,h[l].fn,void 0,!0),c){case 1:h[l].fn.call(h[l].context);break;case 2:h[l].fn.call(h[l].context,t);break;case 3:h[l].fn.call(h[l].context,t,r);break;case 4:h[l].fn.call(h[l].context,t,r,i);break;default:if(!u)for(d=1,u=new Array(c-1);d<c;d++)u[d-1]=arguments[d];h[l].fn.apply(h[l].context,u)}}return!0},o.prototype.on=function(e,t,r){var i=new n(t,r||this),o=a?a+e:e;return this._events[o]?this._events[o].fn?this._events[o]=[this._events[o],i]:this._events[o].push(i):(this._events[o]=i,this._eventsCount++),this},o.prototype.once=function(e,t,r){var i=new n(t,r||this,!0),o=a?a+e:e;return this._events[o]?this._events[o].fn?this._events[o]=[this._events[o],i]:this._events[o].push(i):(this._events[o]=i,this._eventsCount++),this},o.prototype.removeListener=function(e,t,r,n){var o=a?a+e:e;if(!this._events[o])return this;if(!t)return 0==--this._eventsCount?this._events=new i:delete this._events[o],this;var s=this._events[o];if(s.fn)s.fn!==t||n&&!s.once||r&&s.context!==r||(0==--this._eventsCount?this._events=new i:delete this._events[o]);else{for(var u=0,l=[],h=s.length;u<h;u++)(s[u].fn!==t||n&&!s[u].once||r&&s[u].context!==r)&&l.push(s[u]);l.length?this._events[o]=1===l.length?l[0]:l:0==--this._eventsCount?this._events=new i:delete this._events[o]}return this},o.prototype.removeAllListeners=function(e){var t;return e?(t=a?a+e:e,this._events[t]&&(0==--this._eventsCount?this._events=new i:delete this._events[t])):(this._events=new i,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prototype.setMaxListeners=function(){return this},o.prefixed=a,o.EventEmitter=o,e.exports=o},"./node_modules/pixi.js/node_modules/object-assign/index.js":function(e,t,r){"use strict";function i(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}/*
  object-assign
  (c) Sindre Sorhus
  @license MIT
  */
  var n=Object.getOwnPropertySymbols,o=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;e.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var i={};return"abcdefghijklmnopqrst".split("").forEach(function(e){i[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},i)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,a,u=i(e),l=1;l<arguments.length;l++){r=Object(arguments[l]);for(var h in r)o.call(r,h)&&(u[h]=r[h]);if(n){a=n(r);for(var c=0;c<a.length;c++)s.call(r,a[c])&&(u[a[c]]=r[a[c]])}}return u}},"./node_modules/process/browser.js":function(e,t){function r(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function n(e){if(h===setTimeout)return setTimeout(e,0);if((h===r||!h)&&setTimeout)return h=setTimeout,setTimeout(e,0);try{return h(e,0)}catch(t){try{return h.call(null,e,0)}catch(t){return h.call(this,e,0)}}}function o(e){if(c===clearTimeout)return clearTimeout(e);if((c===i||!c)&&clearTimeout)return c=clearTimeout,clearTimeout(e);try{return c(e)}catch(t){try{return c.call(null,e)}catch(t){return c.call(this,e)}}}function s(){m&&f&&(m=!1,f.length?p=f.concat(p):_=-1,p.length&&a())}function a(){if(!m){var e=n(s);m=!0;for(var t=p.length;t;){for(f=p,p=[];++_<t;)f&&f[_].run();_=-1,t=p.length}f=null,m=!1,o(e)}}function u(e,t){this.fun=e,this.array=t}function l(){}var h,c,d=e.exports={};!function(){try{h="function"==typeof setTimeout?setTimeout:r}catch(e){h=r}try{c="function"==typeof clearTimeout?clearTimeout:i}catch(e){c=i}}();var f,p=[],m=!1,_=-1;d.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];p.push(new u(e,t)),1!==p.length||m||n(a)},u.prototype.run=function(){this.fun.apply(null,this.array)},d.title="browser",d.browser=!0,d.env={},d.argv=[],d.version="",d.versions={},d.on=l,d.addListener=l,d.once=l,d.off=l,d.removeListener=l,d.removeAllListeners=l,d.emit=l,d.prependListener=l,d.prependOnceListener=l,d.listeners=function(e){return[]},d.binding=function(e){throw new Error("process.binding is not supported")},d.cwd=function(){return"/"},d.chdir=function(e){throw new Error("process.chdir is not supported")},d.umask=function(){return 0}},"./node_modules/punycode/punycode.js":function(e,t,r){(function(e,i){var n;!function(o){function s(e){throw new RangeError(A[e])}function a(e,t){for(var r=e.length,i=[];r--;)i[r]=t(e[r]);return i}function u(e,t){var r=e.split("@"),i="";return r.length>1&&(i=r[0]+"@",e=r[1]),e=e.replace(R,"."),i+a(e.split("."),t).join(".")}function l(e){for(var t,r,i=[],n=0,o=e.length;n<o;)t=e.charCodeAt(n++),t>=55296&&t<=56319&&n<o?(r=e.charCodeAt(n++),56320==(64512&r)?i.push(((1023&t)<<10)+(1023&r)+65536):(i.push(t),n--)):i.push(t);return i}function h(e){return a(e,function(e){var t="";return e>65535&&(e-=65536,t+=L(e>>>10&1023|55296),e=56320|1023&e),t+=L(e)}).join("")}function c(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:b}function d(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function f(e,t,r){var i=0;for(e=r?D(e/j):e>>1,e+=D(e/t);e>I*w>>1;i+=b)e=D(e/I);return D(i+(I+1)*e/(e+E))}function p(e){var t,r,i,n,o,a,u,l,d,p,m=[],_=e.length,v=0,g=O,y=S;for(r=e.lastIndexOf(M),r<0&&(r=0),i=0;i<r;++i)e.charCodeAt(i)>=128&&s("not-basic"),m.push(e.charCodeAt(i));for(n=r>0?r+1:0;n<_;){for(o=v,a=1,u=b;n>=_&&s("invalid-input"),l=c(e.charCodeAt(n++)),(l>=b||l>D((x-v)/a))&&s("overflow"),v+=l*a,d=u<=y?T:u>=y+w?w:u-y,!(l<d);u+=b)p=b-d,a>D(x/p)&&s("overflow"),a*=p;t=m.length+1,y=f(v-o,t,0==o),D(v/t)>x-g&&s("overflow"),g+=D(v/t),v%=t,m.splice(v++,0,g)}return h(m)}function m(e){var t,r,i,n,o,a,u,h,c,p,m,_,v,g,y,E=[];for(e=l(e),_=e.length,t=O,r=0,o=S,a=0;a<_;++a)(m=e[a])<128&&E.push(L(m));for(i=n=E.length,n&&E.push(M);i<_;){for(u=x,a=0;a<_;++a)(m=e[a])>=t&&m<u&&(u=m);for(v=i+1,u-t>D((x-r)/v)&&s("overflow"),r+=(u-t)*v,t=u,a=0;a<_;++a)if(m=e[a],m<t&&++r>x&&s("overflow"),m==t){for(h=r,c=b;p=c<=o?T:c>=o+w?w:c-o,!(h<p);c+=b)y=h-p,g=b-p,E.push(L(d(p+y%g,0))),h=D(y/g);E.push(L(d(h,0))),o=f(r,v,i==n),r=0,++i}++r,++t}return E.join("")}function _(e){return u(e,function(e){return P.test(e)?p(e.slice(4).toLowerCase()):e})}function v(e){return u(e,function(e){return C.test(e)?"xn--"+m(e):e})}var g=("object"==typeof t&&t&&t.nodeType,"object"==typeof e&&e&&e.nodeType,"object"==typeof i&&i);var y,x=2147483647,b=36,T=1,w=26,E=38,j=700,S=72,O=128,M="-",P=/^xn--/,C=/[^\x20-\x7E]/,R=/[\x2E\u3002\uFF0E\uFF61]/g,A={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},I=b-T,D=Math.floor,L=String.fromCharCode;y={version:"1.4.1",ucs2:{decode:l,encode:h},decode:p,encode:m,toASCII:v,toUnicode:_},void 0!==(n=function(){return y}.call(t,r,t,e))&&(e.exports=n)}()}).call(t,r("./node_modules/webpack/buildin/module.js")(e),r("./node_modules/webpack/buildin/global.js"))},"./node_modules/querystring-es3/decode.js":function(e,t,r){"use strict";function i(e,t){return Object.prototype.hasOwnProperty.call(e,t)}e.exports=function(e,t,r,o){t=t||"&",r=r||"=";var s={};if("string"!=typeof e||0===e.length)return s;var a=/\+/g;e=e.split(t);var u=1e3;o&&"number"==typeof o.maxKeys&&(u=o.maxKeys);var l=e.length;u>0&&l>u&&(l=u);for(var h=0;h<l;++h){var c,d,f,p,m=e[h].replace(a,"%20"),_=m.indexOf(r);_>=0?(c=m.substr(0,_),d=m.substr(_+1)):(c=m,d=""),f=decodeURIComponent(c),p=decodeURIComponent(d),i(s,f)?n(s[f])?s[f].push(p):s[f]=[s[f],p]:s[f]=p}return s};var n=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)}},"./node_modules/querystring-es3/encode.js":function(e,t,r){"use strict";function i(e,t){if(e.map)return e.map(t);for(var r=[],i=0;i<e.length;i++)r.push(t(e[i],i));return r}var n=function(e){switch(typeof e){case"string":return e;case"boolean":return e?"true":"false";case"number":return isFinite(e)?e:"";default:return""}};e.exports=function(e,t,r,a){return t=t||"&",r=r||"=",null===e&&(e=void 0),"object"==typeof e?i(s(e),function(s){var a=encodeURIComponent(n(s))+r;return o(e[s])?i(e[s],function(e){return a+encodeURIComponent(n(e))}).join(t):a+encodeURIComponent(n(e[s]))}).join(t):a?encodeURIComponent(n(a))+r+encodeURIComponent(n(e)):""};var o=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)},s=Object.keys||function(e){var t=[];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.push(r);return t}},"./node_modules/querystring-es3/index.js":function(e,t,r){"use strict";t.decode=t.parse=r("./node_modules/querystring-es3/decode.js"),t.encode=t.stringify=r("./node_modules/querystring-es3/encode.js")},"./node_modules/remove-array-items/index.js":function(e,t,r){"use strict";e.exports=function(e,t,r){var i,n=e.length;if(!(t>=n||0===r)){r=t+r>n?n-t:r;var o=n-r;for(i=t;i<o;++i)e[i]=e[i+r];e.length=o}}},"./node_modules/resource-loader/lib/Loader.js":function(e,t,r){"use strict";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")}t.__esModule=!0;var o="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},s=r("./node_modules/mini-signals/lib/mini-signals.js"),a=i(s),u=r("./node_modules/parse-uri/index.js"),l=i(u),h=r("./node_modules/resource-loader/lib/async.js"),c=function(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}(h),d=r("./node_modules/resource-loader/lib/Resource.js"),f=i(d),p=/(#[\w-]+)?$/,m=function(){function e(){var t=this,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10;n(this,e),this.baseUrl=r,this.progress=0,this.loading=!1,this.defaultQueryString="",this._beforeMiddleware=[],this._afterMiddleware=[],this._resourcesParsing=[],this._boundLoadResource=function(e,r){return t._loadResource(e,r)},this._queue=c.queue(this._boundLoadResource,i),this._queue.pause(),this.resources={},this.onProgress=new a.default,this.onError=new a.default,this.onLoad=new a.default,this.onStart=new a.default,this.onComplete=new a.default}return e.prototype.add=function(e,t,r,i){if(Array.isArray(e)){for(var n=0;n<e.length;++n)this.add(e[n]);return this}if("object"===(void 0===e?"undefined":o(e))&&(i=t||e.callback||e.onComplete,r=e,t=e.url,e=e.name||e.key||e.url),"string"!=typeof t&&(i=r,r=t,t=e),"string"!=typeof t)throw new Error("No url passed to add resource to loader.");if("function"==typeof r&&(i=r,r=null),this.loading&&(!r||!r.parentResource))throw new Error("Cannot add resources while the loader is running.");if(this.resources[e])throw new Error('Resource named "'+e+'" already exists.');if(t=this._prepareUrl(t),this.resources[e]=new f.default(e,t,r),"function"==typeof i&&this.resources[e].onAfterMiddleware.once(i),this.loading){for(var s=r.parentResource,a=[],u=0;u<s.children.length;++u)s.children[u].isComplete||a.push(s.children[u]);var l=s.progressChunk*(a.length+1),h=l/(a.length+2);s.children.push(this.resources[e]),s.progressChunk=h;for(var c=0;c<a.length;++c)a[c].progressChunk=h;this.resources[e].progressChunk=h}return this._queue.push(this.resources[e]),this},e.prototype.pre=function(e){return this._beforeMiddleware.push(e),this},e.prototype.use=function(e){return this._afterMiddleware.push(e),this},e.prototype.reset=function(){this.progress=0,this.loading=!1,this._queue.kill(),this._queue.pause();for(var e in this.resources){var t=this.resources[e];t._onLoadBinding&&t._onLoadBinding.detach(),t.isLoading&&t.abort()}return this.resources={},this},e.prototype.load=function(e){if("function"==typeof e&&this.onComplete.once(e),this.loading)return this;for(var t=100/this._queue._tasks.length,r=0;r<this._queue._tasks.length;++r)this._queue._tasks[r].data.progressChunk=t;return this.loading=!0,this.onStart.dispatch(this),this._queue.resume(),this},e.prototype._prepareUrl=function(e){var t=(0,l.default)(e,{strictMode:!0}),r=void 0;if(r=t.protocol||!t.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 i=p.exec(r)[0];r=r.substr(0,r.length-i.length),-1!==r.indexOf("?")?r+="&"+this.defaultQueryString:r+="?"+this.defaultQueryString,r+=i}return r},e.prototype._loadResource=function(e,t){var r=this;e._dequeue=t,c.eachSeries(this._beforeMiddleware,function(t,i){t.call(r,e,function(){i(e.isComplete?{}:null)})},function(){e.isComplete?r._onLoad(e):(e._onLoadBinding=e.onComplete.once(r._onLoad,r),e.load())},!0)},e.prototype._onComplete=function(){this.loading=!1,this.onComplete.dispatch(this,this.resources)},e.prototype._onLoad=function(e){var t=this;e._onLoadBinding=null,this._resourcesParsing.push(e),e._dequeue(),c.eachSeries(this._afterMiddleware,function(r,i){r.call(t,e,i)},function(){e.onAfterMiddleware.dispatch(e),t.progress+=e.progressChunk,t.onProgress.dispatch(t,e),e.error?t.onError.dispatch(e.error,t,e):t.onLoad.dispatch(t,e),t._resourcesParsing.splice(t._resourcesParsing.indexOf(e),1),t._queue.idle()&&0===t._resourcesParsing.length&&(t.progress=100,t._onComplete())},!0)},e}();t.default=m},"./node_modules/resource-loader/lib/Resource.js":function(e,t,r){"use strict";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 o(){}function s(e,t,r){t&&0===t.indexOf(".")&&(t=t.substring(1)),t&&(e[t]=r)}function a(e){return e.toString().replace("object ","")}t.__esModule=!0;var u=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}}(),l=r("./node_modules/parse-uri/index.js"),h=i(l),c=r("./node_modules/mini-signals/lib/mini-signals.js"),d=i(c),f=!(!window.XDomainRequest||"withCredentials"in new XMLHttpRequest),p=null,m=function(){function e(t,r,i){if(n(this,e),"string"!=typeof t||"string"!=typeof r)throw new Error("Both name and url are required for constructing a resource.");i=i||{},this._flags=0,this._setFlag(e.STATUS_FLAGS.DATA_URL,0===r.indexOf("data:")),this.name=t,this.url=r,this.extension=this._getExtension(),this.data=null,this.crossOrigin=!0===i.crossOrigin?"anonymous":i.crossOrigin,this.loadType=i.loadType||this._determineLoadType(),this.xhrType=i.xhrType,this.metadata=i.metadata||{},this.error=null,this.xhr=null,this.children=[],this.type=e.TYPE.UNKNOWN,this.progressChunk=0,this._dequeue=o,this._onLoadBinding=null,this._boundComplete=this.complete.bind(this),this._boundOnError=this._onError.bind(this),this._boundOnProgress=this._onProgress.bind(this),this._boundXhrOnError=this._xhrOnError.bind(this),this._boundXhrOnAbort=this._xhrOnAbort.bind(this),this._boundXhrOnLoad=this._xhrOnLoad.bind(this),this._boundXdrOnTimeout=this._xdrOnTimeout.bind(this),this.onStart=new d.default,this.onProgress=new d.default,this.onComplete=new d.default,this.onAfterMiddleware=new d.default}return e.setExtensionLoadType=function(t,r){s(e._loadTypeMap,t,r)},e.setExtensionXhrType=function(t,r){s(e._xhrTypeMap,t,r)},e.prototype.complete=function(){if(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("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)),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.abort=function(t){if(!this.error){if(this.error=new Error(t),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.complete()}},e.prototype.load=function(t){var r=this;if(!this.isLoading){if(this.isComplete)return void(t&&setTimeout(function(){return t(r)},1));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:f&&this.crossOrigin?this._loadXdr():this._loadXhr()}}},e.prototype._hasFlag=function(e){return!!(this._flags&e)},e.prototype._setFlag=function(e,t){this._flags=t?this._flags|e:this._flags&~e},e.prototype._loadElement=function(e){this.metadata.loadElement?this.data=this.metadata.loadElement:"image"===e&&void 0!==window.Image?this.data=new Image:this.data=document.createElement(e),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)},e.prototype._loadSourceElement=function(e){if(this.metadata.loadElement?this.data=this.metadata.loadElement:"audio"===e&&void 0!==window.Audio?this.data=new Audio:this.data=document.createElement(e),null===this.data)return void this.abort("Unsupported element: "+e);if(!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 t=this.metadata.mimeType,r=0;r<this.url.length;++r)this.data.appendChild(this._createSource(e,this.url[r],Array.isArray(t)?t[r]:t));else{var i=this.metadata.mimeType;this.data.appendChild(this._createSource(e,this.url,Array.isArray(i)?i[0]:i))}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()},e.prototype._loadXhr=function(){"string"!=typeof this.xhrType&&(this.xhrType=this._determineXhrType());var t=this.xhr=new XMLHttpRequest;t.open("GET",this.url,!0),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("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 e=this.xhr=new XDomainRequest;e.timeout=5e3,e.onerror=this._boundXhrOnError,e.ontimeout=this._boundXdrOnTimeout,e.onprogress=this._boundOnProgress,e.onload=this._boundXhrOnLoad,e.open("GET",this.url,!0),setTimeout(function(){return e.send()},1)},e.prototype._createSource=function(e,t,r){r||(r=e+"/"+this._getExtension(t));var i=document.createElement("source");return i.src=t,i.type=r,i},e.prototype._onError=function(e){this.abort("Failed to load element using: "+e.target.nodeName)},e.prototype._onProgress=function(e){e&&e.lengthComputable&&this.onProgress.dispatch(this,e.loaded/e.total)},e.prototype._xhrOnError=function(){var e=this.xhr;this.abort(a(e)+" Request failed. Status: "+e.status+', text: "'+e.statusText+'"')},e.prototype._xhrOnAbort=function(){this.abort(a(this.xhr)+" Request was aborted by the user.")},e.prototype._xdrOnTimeout=function(){this.abort(a(this.xhr)+" Request timed out.")},e.prototype._xhrOnLoad=function(){var t=this.xhr,r="",i=void 0===t.status?200:t.status;if(""!==t.responseType&&"text"!==t.responseType&&void 0!==t.responseType||(r=t.responseText),0===i&&r.length>0?i=200:1223===i&&(i=204),2!=(i/100|0))return void this.abort("["+t.status+"] "+t.statusText+": "+t.responseURL);if(this.xhrType===e.XHR_RESPONSE_TYPE.TEXT)this.data=r,this.type=e.TYPE.TEXT;else if(this.xhrType===e.XHR_RESPONSE_TYPE.JSON)try{this.data=JSON.parse(r),this.type=e.TYPE.JSON}catch(e){return void this.abort("Error trying to parse loaded json: "+e)}else if(this.xhrType===e.XHR_RESPONSE_TYPE.DOCUMENT)try{if(window.DOMParser){var n=new DOMParser;this.data=n.parseFromString(r,"text/xml")}else{var o=document.createElement("div");o.innerHTML=r,this.data=o}this.type=e.TYPE.XML}catch(e){return void this.abort("Error trying to parse loaded xml: "+e)}else this.data=t.response||r;this.complete()},e.prototype._determineCrossOrigin=function(e,t){if(0===e.indexOf("data:"))return"";t=t||window.location,p||(p=document.createElement("a")),p.href=e,e=(0,h.default)(p.href,{strictMode:!0});var r=!e.port&&""===t.port||e.port===t.port,i=e.protocol?e.protocol+":":"";return e.host===t.hostname&&r&&i===t.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 e=this.url,t="";if(this.isDataUrl){var r=e.indexOf("/");t=e.substring(r+1,e.indexOf(";",r))}else{var i=e.indexOf("?"),n=e.indexOf("#"),o=Math.min(i>-1?i:e.length,n>-1?n:e.length);e=e.substring(0,o),t=e.substring(e.lastIndexOf(".")+1)}return t.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"}},u(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}();t.default=m,m.STATUS_FLAGS={NONE:0,DATA_URL:1,COMPLETE:2,LOADING:4},m.TYPE={UNKNOWN:0,JSON:1,XML:2,IMAGE:3,AUDIO:4,VIDEO:5,TEXT:6},m.LOAD_TYPE={XHR:1,IMAGE:2,AUDIO:3,VIDEO:4},m.XHR_RESPONSE_TYPE={DEFAULT:"text",BUFFER:"arraybuffer",BLOB:"blob",DOCUMENT:"document",JSON:"json",TEXT:"text"},m._loadTypeMap={gif:m.LOAD_TYPE.IMAGE,png:m.LOAD_TYPE.IMAGE,bmp:m.LOAD_TYPE.IMAGE,jpg:m.LOAD_TYPE.IMAGE,jpeg:m.LOAD_TYPE.IMAGE,tif:m.LOAD_TYPE.IMAGE,tiff:m.LOAD_TYPE.IMAGE,webp:m.LOAD_TYPE.IMAGE,tga:m.LOAD_TYPE.IMAGE,svg:m.LOAD_TYPE.IMAGE,"svg+xml":m.LOAD_TYPE.IMAGE,mp3:m.LOAD_TYPE.AUDIO,ogg:m.LOAD_TYPE.AUDIO,wav:m.LOAD_TYPE.AUDIO,mp4:m.LOAD_TYPE.VIDEO,webm:m.LOAD_TYPE.VIDEO},m._xhrTypeMap={xhtml:m.XHR_RESPONSE_TYPE.DOCUMENT,html:m.XHR_RESPONSE_TYPE.DOCUMENT,htm:m.XHR_RESPONSE_TYPE.DOCUMENT,xml:m.XHR_RESPONSE_TYPE.DOCUMENT,tmx:m.XHR_RESPONSE_TYPE.DOCUMENT,svg:m.XHR_RESPONSE_TYPE.DOCUMENT,tsx:m.XHR_RESPONSE_TYPE.DOCUMENT,gif:m.XHR_RESPONSE_TYPE.BLOB,png:m.XHR_RESPONSE_TYPE.BLOB,bmp:m.XHR_RESPONSE_TYPE.BLOB,jpg:m.XHR_RESPONSE_TYPE.BLOB,jpeg:m.XHR_RESPONSE_TYPE.BLOB,tif:m.XHR_RESPONSE_TYPE.BLOB,tiff:m.XHR_RESPONSE_TYPE.BLOB,webp:m.XHR_RESPONSE_TYPE.BLOB,tga:m.XHR_RESPONSE_TYPE.BLOB,json:m.XHR_RESPONSE_TYPE.JSON,text:m.XHR_RESPONSE_TYPE.TEXT,txt:m.XHR_RESPONSE_TYPE.TEXT,ttf:m.XHR_RESPONSE_TYPE.BUFFER,otf:m.XHR_RESPONSE_TYPE.BUFFER},m.EMPTY_GIF="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="},"./node_modules/resource-loader/lib/async.js":function(e,t,r){"use strict";function i(){}function n(e,t,r,i){var n=0,o=e.length;!function s(a){if(a||n===o)return void(r&&r(a));i?setTimeout(function(){t(e[n++],s)},1):t(e[n++],s)}()}function o(e){return function(){if(null===e)throw new Error("Callback was already called.");var t=e;e=null,t.apply(this,arguments)}}function s(e,t){function r(e,t,r){if(null!=r&&"function"!=typeof r)throw new Error("task callback must be a function");if(a.started=!0,null==e&&a.idle())return void setTimeout(function(){return a.drain()},1);var n={data:e,callback:"function"==typeof r?r:i};t?a._tasks.unshift(n):a._tasks.push(n),setTimeout(function(){return a.process()},1)}function n(e){return function(){s-=1,e.callback.apply(e,arguments),null!=arguments[0]&&a.error(arguments[0],e.data),s<=a.concurrency-a.buffer&&a.unsaturated(),a.idle()&&a.drain(),a.process()}}if(null==t)t=1;else if(0===t)throw new Error("Concurrency must not be zero");var s=0,a={_tasks:[],concurrency:t,saturated:i,unsaturated:i,buffer:t/4,empty:i,drain:i,error:i,started:!1,paused:!1,push:function(e,t){r(e,!1,t)},kill:function(){s=0,a.drain=i,a.started=!1,a._tasks=[]},unshift:function(e,t){r(e,!0,t)},process:function(){for(;!a.paused&&s<a.concurrency&&a._tasks.length;){var t=a._tasks.shift();0===a._tasks.length&&a.empty(),s+=1,s===a.concurrency&&a.saturated(),e(t.data,o(n(t)))}},length:function(){return a._tasks.length},running:function(){return s},idle:function(){return a._tasks.length+s===0},pause:function(){!0!==a.paused&&(a.paused=!0)},resume:function(){if(!1!==a.paused){a.paused=!1;for(var e=1;e<=a.concurrency;e++)a.process()}}};return a}t.__esModule=!0,t.eachSeries=n,t.queue=s},"./node_modules/resource-loader/lib/b64.js":function(e,t,r){"use strict";function i(e){for(var t="",r=0;r<e.length;){for(var i=[0,0,0],o=[0,0,0,0],s=0;s<i.length;++s)r<e.length?i[s]=255&e.charCodeAt(r++):i[s]=0;o[0]=i[0]>>2,o[1]=(3&i[0])<<4|i[1]>>4,o[2]=(15&i[1])<<2|i[2]>>6,o[3]=63&i[2];switch(r-(e.length-1)){case 2:o[3]=64,o[2]=64;break;case 1:o[3]=64}for(var a=0;a<o.length;++a)t+=n.charAt(o[a])}return t}t.__esModule=!0,t.encodeBinary=i;var n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},"./node_modules/resource-loader/lib/index.js":function(e,t,r){"use strict";var i=r("./node_modules/resource-loader/lib/Loader.js").default,n=r("./node_modules/resource-loader/lib/Resource.js").default,o=r("./node_modules/resource-loader/lib/async.js"),s=r("./node_modules/resource-loader/lib/b64.js");i.Resource=n,i.async=o,i.base64=s,e.exports=i,e.exports.default=i},"./node_modules/resource-loader/lib/middlewares/parsing/blob.js":function(e,t,r){"use strict";function i(e){return e&&e.__esModule?e:{default:e}}function n(){return function(e,t){if(!e.data)return void t();if(e.xhr&&e.xhrType===a.default.XHR_RESPONSE_TYPE.BLOB)if(window.Blob&&"string"!=typeof e.data){if(0===e.data.type.indexOf("image")){var r=function(){var r=h.createObjectURL(e.data);return e.blob=e.data,e.data=new Image,e.data.src=r,e.type=a.default.TYPE.IMAGE,e.data.onload=function(){h.revokeObjectURL(r),e.data.onload=null,t()},{v:void 0}}();if("object"===(void 0===r?"undefined":o(r)))return r.v}}else{var i=e.xhr.getResponseHeader("content-type");if(i&&0===i.indexOf("image"))return e.data=new Image,e.data.src="data:"+i+";base64,"+l.default.encodeBinary(e.xhr.responseText),e.type=a.default.TYPE.IMAGE,void(e.data.onload=function(){e.data.onload=null,t()})}t()}}t.__esModule=!0;var o="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};t.blobMiddlewareFactory=n;var s=r("./node_modules/resource-loader/lib/Resource.js"),a=i(s),u=r("./node_modules/resource-loader/lib/b64.js"),l=i(u),h=window.URL||window.webkitURL},"./node_modules/url/url.js":function(e,t,r){"use strict";function i(){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}function n(e,t,r){if(e&&l.isObject(e)&&e instanceof i)return e;var n=new i;return n.parse(e,t,r),n}function o(e){return l.isString(e)&&(e=n(e)),e instanceof i?e.format():i.prototype.format.call(e)}function s(e,t){return n(e,!1,!0).resolve(t)}function a(e,t){return e?n(e,!1,!0).resolveObject(t):t}var u=r("./node_modules/punycode/punycode.js"),l=r("./node_modules/url/util.js");t.parse=n,t.resolve=s,t.resolveObject=a,t.format=o,t.Url=i;var h=/^([a-z0-9.+-]+:)/i,c=/:[0-9]*$/,d=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,f=["<",">",'"',"`"," ","\r","\n","\t"],p=["{","}","|","\\","^","`"].concat(f),m=["'"].concat(p),_=["%","/","?",";","#"].concat(m),v=["/","?","#"],g=/^[+a-z0-9A-Z_-]{0,63}$/,y=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,x={javascript:!0,"javascript:":!0},b={javascript:!0,"javascript:":!0},T={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},w=r("./node_modules/querystring-es3/index.js");i.prototype.parse=function(e,t,r){if(!l.isString(e))throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var i=e.indexOf("?"),n=-1!==i&&i<e.indexOf("#")?"?":"#",o=e.split(n),s=/\\/g;o[0]=o[0].replace(s,"/"),e=o.join(n);var a=e;if(a=a.trim(),!r&&1===e.split("#").length){var c=d.exec(a);if(c)return this.path=a,this.href=a,this.pathname=c[1],c[2]?(this.search=c[2],this.query=t?w.parse(this.search.substr(1)):this.search.substr(1)):t&&(this.search="",this.query={}),this}var f=h.exec(a);if(f){f=f[0];var p=f.toLowerCase();this.protocol=p,a=a.substr(f.length)}if(r||f||a.match(/^\/\/[^@\/]+@[^@\/]+/)){var E="//"===a.substr(0,2);!E||f&&b[f]||(a=a.substr(2),this.slashes=!0)}if(!b[f]&&(E||f&&!T[f])){for(var j=-1,S=0;S<v.length;S++){var O=a.indexOf(v[S]);-1!==O&&(-1===j||O<j)&&(j=O)}var M,P;P=-1===j?a.lastIndexOf("@"):a.lastIndexOf("@",j),-1!==P&&(M=a.slice(0,P),a=a.slice(P+1),this.auth=decodeURIComponent(M)),j=-1;for(var S=0;S<_.length;S++){var O=a.indexOf(_[S]);-1!==O&&(-1===j||O<j)&&(j=O)}-1===j&&(j=a.length),this.host=a.slice(0,j),a=a.slice(j),this.parseHost(),this.hostname=this.hostname||"";var C="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!C)for(var R=this.hostname.split(/\./),S=0,A=R.length;S<A;S++){var I=R[S];if(I&&!I.match(g)){for(var D="",L=0,N=I.length;L<N;L++)I.charCodeAt(L)>127?D+="x":D+=I[L];if(!D.match(g)){var k=R.slice(0,S),F=R.slice(S+1),B=I.match(y);B&&(k.push(B[1]),F.unshift(B[2])),F.length&&(a="/"+F.join(".")+a),this.hostname=k.join(".");break}}}this.hostname.length>255?this.hostname="":this.hostname=this.hostname.toLowerCase(),C||(this.hostname=u.toASCII(this.hostname));var U=this.port?":"+this.port:"",X=this.hostname||"";this.host=X+U,this.href+=this.host,C&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),"/"!==a[0]&&(a="/"+a))}if(!x[p])for(var S=0,A=m.length;S<A;S++){var G=m[S];if(-1!==a.indexOf(G)){var W=encodeURIComponent(G);W===G&&(W=escape(G)),a=a.split(G).join(W)}}var H=a.indexOf("#");-1!==H&&(this.hash=a.substr(H),a=a.slice(0,H));var Y=a.indexOf("?");if(-1!==Y?(this.search=a.substr(Y),this.query=a.substr(Y+1),t&&(this.query=w.parse(this.query)),a=a.slice(0,Y)):t&&(this.search="",this.query={}),a&&(this.pathname=a),T[p]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var U=this.pathname||"",V=this.search||"";this.path=U+V}return this.href=this.format(),this},i.prototype.format=function(){var e=this.auth||"";e&&(e=encodeURIComponent(e),e=e.replace(/%3A/i,":"),e+="@");var t=this.protocol||"",r=this.pathname||"",i=this.hash||"",n=!1,o="";this.host?n=e+this.host:this.hostname&&(n=e+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(n+=":"+this.port)),this.query&&l.isObject(this.query)&&Object.keys(this.query).length&&(o=w.stringify(this.query));var s=this.search||o&&"?"+o||"";return t&&":"!==t.substr(-1)&&(t+=":"),this.slashes||(!t||T[t])&&!1!==n?(n="//"+(n||""),r&&"/"!==r.charAt(0)&&(r="/"+r)):n||(n=""),i&&"#"!==i.charAt(0)&&(i="#"+i),s&&"?"!==s.charAt(0)&&(s="?"+s),r=r.replace(/[?#]/g,function(e){return encodeURIComponent(e)}),s=s.replace("#","%23"),t+n+r+s+i},i.prototype.resolve=function(e){return this.resolveObject(n(e,!1,!0)).format()},i.prototype.resolveObject=function(e){if(l.isString(e)){var t=new i;t.parse(e,!1,!0),e=t}for(var r=new i,n=Object.keys(this),o=0;o<n.length;o++){var s=n[o];r[s]=this[s]}if(r.hash=e.hash,""===e.href)return r.href=r.format(),r;if(e.slashes&&!e.protocol){for(var a=Object.keys(e),u=0;u<a.length;u++){var h=a[u];"protocol"!==h&&(r[h]=e[h])}return T[r.protocol]&&r.hostname&&!r.pathname&&(r.path=r.pathname="/"),r.href=r.format(),r}if(e.protocol&&e.protocol!==r.protocol){if(!T[e.protocol]){for(var c=Object.keys(e),d=0;d<c.length;d++){var f=c[d];r[f]=e[f]}return r.href=r.format(),r}if(r.protocol=e.protocol,e.host||b[e.protocol])r.pathname=e.pathname;else{for(var p=(e.pathname||"").split("/");p.length&&!(e.host=p.shift()););e.host||(e.host=""),e.hostname||(e.hostname=""),""!==p[0]&&p.unshift(""),p.length<2&&p.unshift(""),r.pathname=p.join("/")}if(r.search=e.search,r.query=e.query,r.host=e.host||"",r.auth=e.auth,r.hostname=e.hostname||e.host,r.port=e.port,r.pathname||r.search){var m=r.pathname||"",_=r.search||"";r.path=m+_}return r.slashes=r.slashes||e.slashes,r.href=r.format(),r}var v=r.pathname&&"/"===r.pathname.charAt(0),g=e.host||e.pathname&&"/"===e.pathname.charAt(0),y=g||v||r.host&&e.pathname,x=y,w=r.pathname&&r.pathname.split("/")||[],p=e.pathname&&e.pathname.split("/")||[],E=r.protocol&&!T[r.protocol];if(E&&(r.hostname="",r.port=null,r.host&&(""===w[0]?w[0]=r.host:w.unshift(r.host)),r.host="",e.protocol&&(e.hostname=null,e.port=null,e.host&&(""===p[0]?p[0]=e.host:p.unshift(e.host)),e.host=null),y=y&&(""===p[0]||""===w[0])),g)r.host=e.host||""===e.host?e.host:r.host,r.hostname=e.hostname||""===e.hostname?e.hostname:r.hostname,r.search=e.search,r.query=e.query,w=p;else if(p.length)w||(w=[]),w.pop(),w=w.concat(p),r.search=e.search,r.query=e.query;else if(!l.isNullOrUndefined(e.search)){if(E){r.hostname=r.host=w.shift();var j=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");j&&(r.auth=j.shift(),r.host=r.hostname=j.shift())}return r.search=e.search,r.query=e.query,l.isNull(r.pathname)&&l.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.href=r.format(),r}if(!w.length)return r.pathname=null,r.search?r.path="/"+r.search:r.path=null,r.href=r.format(),r;for(var S=w.slice(-1)[0],O=(r.host||e.host||w.length>1)&&("."===S||".."===S)||""===S,M=0,P=w.length;P>=0;P--)S=w[P],"."===S?w.splice(P,1):".."===S?(w.splice(P,1),M++):M&&(w.splice(P,1),M--);if(!y&&!x)for(;M--;M)w.unshift("..");!y||""===w[0]||w[0]&&"/"===w[0].charAt(0)||w.unshift(""),O&&"/"!==w.join("/").substr(-1)&&w.push("");var C=""===w[0]||w[0]&&"/"===w[0].charAt(0);if(E){r.hostname=r.host=C?"":w.length?w.shift():"";var j=!!(r.host&&r.host.indexOf("@")>0)&&r.host.split("@");j&&(r.auth=j.shift(),r.host=r.hostname=j.shift())}return y=y||r.host&&w.length,y&&!C&&w.unshift(""),w.length?r.pathname=w.join("/"):(r.pathname=null,r.path=null),l.isNull(r.pathname)&&l.isNull(r.search)||(r.path=(r.pathname?r.pathname:"")+(r.search?r.search:"")),r.auth=e.auth||r.auth,r.slashes=r.slashes||e.slashes,r.href=r.format(),r},i.prototype.parseHost=function(){var e=this.host,t=c.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)}},"./node_modules/url/util.js":function(e,t,r){"use strict";e.exports={isString:function(e){return"string"==typeof e},isObject:function(e){return"object"==typeof e&&null!==e},isNull:function(e){return null===e},isNullOrUndefined:function(e){return null==e}}},"./node_modules/webpack/buildin/global.js":function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},"./node_modules/webpack/buildin/module.js":function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},"./src/Jello.js":function(e,t,r){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var n=function e(){function t(){var e=window.innerWidth,t=window.innerHeight;a.view.style.width=e+"px",a.view.style.height=t+"px"}arguments.length>0&&void 0!==arguments[0]&&arguments[0];i(this,e);var n=[window.innerWidth,window.innerWidth/16*9.09],o=r("./src/img/img_x0.png"),s=r("./src/img/clouds_1.jpg"),a=new PIXI.Application(n[0],n[1]);document.body.appendChild(a.view);var u=o,l=PIXI.Sprite.fromImage(u);l.anchor.set(.5),l.scale.x=.6,l.scale.y=.6,l.x=a.renderer.width/2,l.y=a.renderer.height/2,a.stage.addChild(l);var h=s,c=PIXI.Sprite.fromImage(h);c.x=a.renderer.width/2,c.y=a.renderer.height/2;var d=new PIXI.filters.DisplacementFilter(c);a.stage.filters=[d],d.scale.x=0,d.scale.y=0,document.body.appendChild(a.view),window.onresize=t;var f={speed:.5,scale:50,ease:100,count:0};a.ticker.add(function(){c.anchor.x=Math.abs(Math.sin(f.count*f.speed/500))/2,c.anchor.y=Math.abs(Math.cos(f.count*f.speed/500))/2,d.scale.x+=(f.scale-d.scale.x)/f.ease,d.scale.y=d.scale.x,f.count+=1})};t.default=n},"./src/app.js":function(e,t,r){"use strict";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")}Object.defineProperty(t,"__esModule",{value:!0});var o=r("./src/app.scss");i(o);r("./node_modules/pixi.js/lib/index.js");var s=r("./src/Jello.js"),a=i(s),u=function e(){n(this,e),this.app=this,this.jello,this.jello=new a.default};t.default=u;new u},"./src/app.scss":function(e,t){},"./src/img/clouds_1.jpg":function(e,t,r){e.exports=r.p+"img/clouds_1.jpg"},"./src/img/img_x0.png":function(e,t,r){e.exports=r.p+"img/img_x0.png"}});