filesbox/web/dist/design/designstatic/front/js/uxq.js

508 lines
514 KiB
JavaScript
Raw Permalink Normal View History

2024-07-26 06:10:54 +00:00
(function(B){function E(_){if(O[_])return O[_].exports;var b=O[_]={exports:{},id:_,loaded:!1};return B[_].call(b.exports,b,b.exports,E),b.loaded=!0,b.exports}var c=window.webpackJsonp;window.webpackJsonp=function(_,b){for(var m,l,f=0,o=[];f<_.length;f++)l=_[f],x[l]&&o.push.apply(o,x[l]),x[l]=0;for(m in b)B[m]=b[m];for(c&&c(_,b);o.length;)o.shift().call(null,E);if(b[0])return O[0]=0,E(0)};var O={},x={0:0};E.e=function(_,b){if(x[_]===0)return b.call(null,E);if(x[_]!==void 0)x[_].push(b);else{x[_]=[b];var m=document.getElementsByTagName("head")[0],l=document.createElement("script");l.type="text/javascript",l.charset="utf-8",l.async=!0,l.src=E.p+""+({1:"index"}[_]||_)+".js",m.appendChild(l)}},E.m=B,E.c=O,E.p=""})([]),webpackJsonp([1,0],[function(B,E,c){"use strict";function O(n){return n&&n.__esModule?n:{default:n}}var x=c(8),_=O(x),b=c(14),m=c(9);c(136);var l,f=c(259),o=c(262),e=c(261),t=c(257),i=m.TweenMax;(function(n){var r={number:1e3,duration:.75,gridSize:16,center:{x:400,y:280}},h=function(){function d(w){(0,_.default)(this,d),this.options=w,this.width=document.body.clientWidth||1440,this.height=560,this.renderer=b.autoDetectRenderer(this.width,this.height,{transparent:!0,antialias:!0}),this.stage=new b.Container,this.pointWrapper=new b.Container,this.pointBGWrap=new b.Container,this.lineContainer=new f.default(2*this.options.center.x+200,2*this.options.center.y),this.pointContainer=new o.default,this.pointLoopContainer=new e.default,this.pointBg=new b.Graphics,this.bgContainer=new t.default({w:this.width,h:this.height}),this.stage.alpha=0}return d.prototype.init=function(){var w=this;this.renderer.view.id="myCanvas",document.getElementById("canvasWrapper").appendChild(this.renderer.view),this.bgContainer.init(),this.stage.addChild(this.bgContainer.container),this.lineContainer.init(),this.pointBGWrap.addChild(this.lineContainer.container),this.lineContainer.container.x=-100,this.pointLoopContainer.init(),this.pointBGWrap.addChild(this.pointLoopContainer.container),this.pointWrapper.addChild(this.pointBGWrap),this.pointBg.beginFill(328976),this.pointBg.drawCircle(0,0,40),this.pointBg.x=this.options.center.x,this.pointBg.y=this.options.center.y,this.pointWrapper.addChild(this.pointBg),this.pointContainer.init(),this.pointWrapper.addChild(this.pointContainer.container),this.pointWrapper.x=.68*this.width/2-this.options.center.x,this.stage.addChild(this.pointWrapper),this.render(),this.resize(),window.addEventListener("resize",function(){return w.resize()}),i.ticker.addEventListener("tick",this.render,this),this.animate()},d.prototype.animate=function(){this.lineContainer.animate(),this.pointContainer.animate(),this.bgContainer.animate(),i.to(this.stage,.5,{delay:.3,alpha:1}),i.from(this.pointBg,.5,{delay:2.5,alpha:0})},d.prototype.render=function(){this.renderer.render(this.stage)},d.prototype.resize=function(){this.width=document.body.clientWidth,this.renderer.resize(this.width,this.height),this.bgContainer.resize({w:this.width,h:this.height});var w=.68*this.width/2-this.options.center.x;i.to(this.pointWrapper,.45,{x:w})},d}(),p=function(){function d(){(0,_.default)(this,d),this.scene=new h(r),this.scene.init()}return d.prototype.init=function(){},d}(),u=["https://zos.alipayobjects.com/rmsportal/JorDDgUVJljaIxDBpiBM.png","https://zos.alipayobjects.com/rmsportal/uIbqAshSeUuRPrRXNOrN.png"],y=0;u.forEach(function(d){var w=new Image;w.onload=w.onerror=function(){y++,y>=u.length&&new p},w.src=d})})(l||(l={}))},function(B,E,c){"use strict";function O(Tt){if(Tt&&Tt.__esModule)return Tt;var It={};if(Tt!=null)for(var bt in Tt)Object.prototype.hasOwnProperty.call(Tt,bt)&&(It[bt]=Tt[bt]);return It.default=Tt,It}function x(Tt){return Tt&&Tt.__esModule?Tt:{default:Tt}}function _(){var Tt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:800,It=arguments.length>1&&arguments[1]!==void 0?arguments[1]:600,bt=arguments[2],kt=arguments[3];return!kt&&tt.isWebGLSupported()?new yt.default(Tt,It,bt):new wt.default(Tt,It,bt)}E.__esModule=!0,E.Filter=E.SpriteMaskFilter=E.Quad=E.RenderTarget=E.ObjectRenderer=E.WebGLManager=E.Shader=E.Canvas
%c %c %c Pixi.js `+u.VERSION+" - \u2730 "+M+` \u2730 %c %c http://www.pixijs.com/ %c %c \u2665%c\u2665%c\u2665
`,"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;"];C=!0}}function r(){var M={stencil:!0,failIfMajorPerformanceCaveat:!0};try{if(!window.WebGLRenderingContext)return!1;var R=document.createElement("canvas"),S=R.getContext("webgl",M)||R.getContext("experimental-webgl",M),L=!(!S||!S.getContextAttributes().stencil);if(S){var A=S.getExtension("WEBGL_lose_context");A&&A.loseContext()}return S=null,L}catch(D){return!1}}function h(M){return M===0?0:M<0?-1:1}function p(M,R,S){var L=M.length;if(!(R>=L||S===0)){S=R+S>L?L-R:S;for(var A=L-S,D=R;D<A;++D)M[D]=M[D+S];M.length=A}}E.__esModule=!0,E.BaseTextureCache=E.TextureCache=E.pluginTarget=E.EventEmitter=E.isMobile=void 0,E.uid=_,E.hex2rgb=b,E.hex2string=m,E.rgb2hex=l,E.getResolutionOfUrl=f,E.decomposeDataUri=o,E.getUrlFileExtension=e,E.getSvgSize=t,E.skipHello=i,E.sayHello=n,E.isWebGLSupported=r,E.sign=h,E.removeItems=p;var u=c(2),y=c(5),d=x(y),w=c(10),g=x(w),a=c(220),s=x(a),v=c(28),P=O(v),T=0,C=!1;E.isMobile=P,E.EventEmitter=g.default,E.pluginTarget=s.default,E.TextureCache={},E.BaseTextureCache={}},function(B,E,c){"use strict";function O(i){return i&&i.__esModule?i:{default:i}}E.__esModule=!0;var x=c(60);Object.defineProperty(E,"Point",{enumerable:!0,get:function(){return O(x).default}});var _=c(98);Object.defineProperty(E,"ObservablePoint",{enumerable:!0,get:function(){return O(_).default}});var b=c(59);Object.defineProperty(E,"Matrix",{enumerable:!0,get:function(){return O(b).default}});var m=c(97);Object.defineProperty(E,"GroupD8",{enumerable:!0,get:function(){return O(m).default}});var l=c(193);Object.defineProperty(E,"Circle",{enumerable:!0,get:function(){return O(l).default}});var f=c(194);Object.defineProperty(E,"Ellipse",{enumerable:!0,get:function(){return O(f).default}});var o=c(195);Object.defineProperty(E,"Polygon",{enumerable:!0,get:function(){return O(o).default}});var e=c(61);Object.defineProperty(E,"Rectangle",{enumerable:!0,get:function(){return O(e).default}});var t=c(196);Object.defineProperty(E,"RoundedRectangle",{enumerable:!0,get:function(){return O(t).default}})},function(B,E,c){"use strict";function O(l){return l&&l.__esModule?l:{default:l}}E.__esModule=!0;var x=c(219),_=O(x),b=c(217),m=O(b);E.default={TARGET_FPMS:.06,MIPMAP_TEXTURES:!0,RESOLUTION:1,FILTER_RESOLUTION:1,SPRITE_MAX_TEXTURES:(0,_.default)(32),SPRITE_BATCH_SIZE:4096,RETINA_PREFIX:/@(.+)x/,RENDER_OPTIONS:{view:null,antialias:!1,forceFXAA:!1,autoResize:!1,transparent:!1,backgroundColor:0,clearBeforeRender:!0,preserveDrawingBuffer:!1,roundPixels:!1},TRANSFORM_MODE:0,GC_MODE:0,GC_MAX_IDLE:3600,GC_MAX_CHECK_COUNT:600,WRAP_MODE:0,SCALE_MODE:0,PRECISION:"mediump",CAN_UPLOAD_SAME_BUFFER:(0,m.default)()}},function(B,E,c){var O={createContext:c(141),setVertexAttribArrays:c(71),GLBuffer:c(137),GLFramebuffer:c(138),GLShader:c(139),GLTexture:c(70),VertexArrayObject:c(140),shader:c(142)};typeof B!="undefined"&&B.exports&&(B.exports=O),typeof window!="undefined"&&(window.PIXI=window.PIXI||{},window.PIXI.glCore=O)},function(B,E,c){(function(O){function x(f,o){for(var e=0,t=f.length-1;t>=0;t--){var i=f[t];i==="."?f.splice(t,1):i===".."?(f.splice(t,1),e++):e&&(f.splice(t,1),e--)}if(o)for(;e--;e)f.unshift("..");return f}function _(f,o){if(f.filter)return f.filter(o);for(var e=[],t=0;t<f.length;t++)o(f[t],t,f)&&e.push(f[t]);return e}var b=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,m=function(f){return b.exec(f).slice(1)};E.resolve=function(){for(var f="",o=!1,e=arguments.length-1;e>=-1&&!o;e--){var t=e>=0?arguments[e]:O.cwd();if(typeof t!="string")throw new TypeError("Arguments to path.resolve must be strings");t&&(f=t+"/"+f,o=t.charAt(0)==="/")}return f=x(_(f.split("/"),function(i){return!!i}),!o).join("/"),(o?"/":"")+f||"."},E.normalize=function(f)
* VERSION: 1.19.0
* DATE: 2016-07-14
* UPDATES AND DOCS AT: http://greensock.com
*
* Includes all of the following: TweenLite, TweenMax, TimelineLite, TimelineMax, EasePack, CSSPlugin, RoundPropsPlugin, BezierPlugin, AttrPlugin, DirectionalRotationPlugin
*
* @license Copyright (c) 2008-2016, GreenSock. All rights reserved.
* This work is subject to the terms at http://greensock.com/standard-license or for
* Club GreenSock members, the software agreement that was issued with your membership.
*
* @author: Jack Doyle, jack@greensock.com
**/var b=typeof B!="undefined"&&B.exports&&typeof _!="undefined"?_:this||window;(b._gsQueue||(b._gsQueue=[])).push(function(){"use strict";b._gsDefine("TweenMax",["core.Animation","core.SimpleTimeline","TweenLite"],function(m,l,f){var o=function(g){var a,s=[],v=g.length;for(a=0;a!==v;s.push(g[a++]));return s},e=function(g,a,s){var v,P,T=g.cycle;for(v in T)P=T[v],g[v]=typeof P=="function"?P(s,a[s]):P[s%P.length];delete g.cycle},t=function(g,a,s){f.call(this,g,a,s),this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._dirty=!0,this.render=t.prototype.render},i=1e-10,n=f._internals,r=n.isSelector,h=n.isArray,p=t.prototype=f.to({},.1,{}),u=[];t.version="1.19.0",p.constructor=t,p.kill()._gc=!1,t.killTweensOf=t.killDelayedCallsTo=f.killTweensOf,t.getTweensOf=f.getTweensOf,t.lagSmoothing=f.lagSmoothing,t.ticker=f.ticker,t.render=f.render,p.invalidate=function(){return this._yoyo=this.vars.yoyo===!0,this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._uncache(!0),f.prototype.invalidate.call(this)},p.updateTo=function(g,a){var s,v=this.ratio,P=this.vars.immediateRender||g.immediateRender;a&&this._startTime<this._timeline._time&&(this._startTime=this._timeline._time,this._uncache(!1),this._gc?this._enabled(!0,!1):this._timeline.insert(this,this._startTime-this._delay));for(s in g)this.vars[s]=g[s];if(this._initted||P){if(a)this._initted=!1,P&&this.render(0,!0,!0);else if(this._gc&&this._enabled(!0,!1),this._notifyPluginsOfEnabled&&this._firstPT&&f._onPluginEvent("_onDisable",this),this._time/this._duration>.998){var T=this._totalTime;this.render(0,!0,!1),this._initted=!1,this.render(T,!0,!1)}else if(this._initted=!1,this._init(),this._time>0||P)for(var C,M=1/(1-v),R=this._firstPT;R;)C=R.s+R.c,R.c*=M,R.s=C-R.c,R=R._next}return this},p.render=function(g,a,s){this._initted||this._duration===0&&this.vars.repeat&&this.invalidate();var v,P,T,C,M,R,S,L,A=this._dirty?this.totalDuration():this._totalDuration,D=this._time,I=this._totalTime,U=this._cycle,N=this._duration,W=this._rawPrevTime;if(g>=A-1e-7?(this._totalTime=A,this._cycle=this._repeat,this._yoyo&&(1&this._cycle)!=0?(this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0):(this._time=N,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1),this._reversed||(v=!0,P="onComplete",s=s||this._timeline.autoRemoveChildren),N===0&&(this._initted||!this.vars.lazy||s)&&(this._startTime===this._timeline._duration&&(g=0),(W<0||g<=0&&g>=-1e-7||W===i&&this.data!=="isPause")&&W!==g&&(s=!0,W>i&&(P="onReverseComplete")),this._rawPrevTime=L=!a||g||W===g?g:i)):g<1e-7?(this._totalTime=this._time=this._cycle=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(I!==0||N===0&&W>0)&&(P="onReverseComplete",v=this._reversed),g<0&&(this._active=!1,N===0&&(this._initted||!this.vars.lazy||s)&&(W>=0&&(s=!0),this._rawPrevTime=L=!a||g||W===g?g:i)),this._initted||(s=!0)):(this._totalTime=this._time=g,this._repeat!==0&&(C=N+this._repeatDelay,this._cycle=this._totalTime/C>>0,this._cycle!==0&&this._cycle===this._totalTime/C&&I<=g&&this._cycle--,this._time=this._totalTime-this._cycle*C,this._yoyo&&(1&this._cycle)!=0&&(this._time=N-this._time),this._time>N?this._time=N:this._time<0&&(this._time=0)),this._easeType?(M=this._time/N,R=this._easeType,S=this._easePower,(R===1||R===3&&M>=.5)&&(M=1-M),R===3&&(M*=2),S===1?M*=M:S===2?M*=M*M:S===3?M*=M*M*M:S===4&&(M*=M*M*M*M),R===1?this.ratio=1-M:R===2?this.ratio=M:this._time/N<.5?this.ratio=M/2:this.ratio=1-M/2):this.ratio=this._ease.getRatio(this._time/N)),D===this._time&&!s&&U===this._cycle)return void(I!==this._totalTime&&this._onUpdate&&(a||this._callback("onUpdate")));if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!s&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=D,this._totalTime=I,this._rawPrevTime=W,this._cycle=U,n.lazyTweens.push(this),void(this._lazy=[g,a]);this._time&&!v?this.ratio=this._ease.getRatio(this._time/N):v&&this._ease._calcEnd&&(this.ratio=this._ease.getR
`+i;return i}E.__esModule=!0;var l=c(6),f=c(5),o=O(f),e=o.default.PRECISION,t=function(i){function n(r,h,p){return x(this,n),_(this,i.call(this,r,m(h),m(p)))}return b(n,i),n}(l.GLShader);E.default=t},function(B,E){"use strict";function c(x,_){if(!(x instanceof _))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var O=function(){function x(_){c(this,x),this.renderer=_,this.renderer.on("context",this.onContextChange,this)}return x.prototype.onContextChange=function(){},x.prototype.destroy=function(){this.renderer.off("context",this.onContextChange,this),this.renderer=null},x}();E.default=O},function(B,E,c){"use strict";function O(u){return u&&u.__esModule?u:{default:u}}function x(u,y){if(!(u instanceof y))throw new TypeError("Cannot call a class as a function")}function _(u,y){if(!u)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!y||typeof y!="object"&&typeof y!="function"?u:y}function b(u,y){if(typeof y!="function"&&y!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof y);u.prototype=Object.create(y&&y.prototype,{constructor:{value:u,enumerable:!1,writable:!0,configurable:!0}}),y&&(Object.setPrototypeOf?Object.setPrototypeOf(u,y):u.__proto__=y)}E.__esModule=!0;var m=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},l=c(3),f=c(5),o=O(f),e=c(10),t=O(e),i=c(218),n=O(i),r=c(41),h=O(r),p=function(u){function y(d,w,g){x(this,y);var a=_(this,u.call(this));return a.uid=(0,l.uid)(),a.touched=0,a.resolution=g||o.default.RESOLUTION,a.width=100,a.height=100,a.realWidth=100,a.realHeight=100,a.scaleMode=w||o.default.SCALE_MODE,a.hasLoaded=!1,a.isLoading=!1,a.source=null,a.origSource=null,a.imageType=null,a.sourceScale=1,a.premultipliedAlpha=!0,a.imageUrl=null,a.isPowerOfTwo=!1,a.mipmap=o.default.MIPMAP_TEXTURES,a.wrapMode=o.default.WRAP_MODE,a._glTextures={},a._enabled=0,a._virtalBoundId=-1,d&&a.loadSource(d),a}return b(y,u),y.prototype.update=function(){this.imageType!=="svg"&&(this.realWidth=this.source.naturalWidth||this.source.videoWidth||this.source.width,this.realHeight=this.source.naturalHeight||this.source.videoHeight||this.source.height,this.width=this.realWidth/this.resolution,this.height=this.realHeight/this.resolution,this.isPowerOfTwo=h.default.isPow2(this.realWidth)&&h.default.isPow2(this.realHeight)),this.emit("update",this)},y.prototype.loadSource=function(d){var w=this,g=this.isLoading;this.hasLoaded=!1,this.isLoading=!1,g&&this.source&&(this.source.onload=null,this.source.onerror=null);var a=!this.source;if(this.source=d,(d.src&&d.complete||d.getContext)&&d.width&&d.height)this._updateImageType(),this.imageType==="svg"?this._loadSvgSource():this._sourceLoaded(),a&&this.emit("loaded",this);else if(!d.getContext){var s=function(){w.isLoading=!0;var v=w;if(d.onload=function(){if(v._updateImageType(),d.onload=null,d.onerror=null,v.isLoading)return v.isLoading=!1,v._sourceLoaded(),v.imageType==="svg"?void v._loadSvgSource():void v.emit("loaded",v)},d.onerror=function(){d.onload=null,d.onerror=null,v.isLoading&&(v.isLoading=!1,v.emit("error",v))},d.complete&&d.src){if(d.onload=null,d.onerror=null,v.imageType==="svg")return v._loadSvgSource(),{v:void 0};w.isLoading=!1,d.width&&d.height?(w._sourceLoaded(),g&&w.emit("loaded",w)):g&&w.emit("error",w)}}();if((typeof s=="undefined"?"undefined":m(s))==="object")return s.v}},y.prototype._updateImageType=function(){if(this.imageUrl){var d=(0,l.decomposeDataUri)(this.imageUrl),w=void 0;if(d&&d.mediaType==="image"){var g=d.subType.split("+")[0];if(w=(0,l.getUrlFileExtension)("."+g),!w)throw new Error("Invalid image type in data URI.")}else w=(0,l.getUrlFileExtension)(this.imageUrl),w||(w="png");this.imageType=w}},y.prototype._loadSvgSource=function(){if(this.imageType==="svg"){var d=(0,l.decomposeDataUri)(this.imageUrl);d?this._loadSvgSourceUsingDataUri(d):this._loadSvgSourceUsingXhr()}},y.prototype._loadSvgSourceUsingDataUri=
* isMobile.js v0.4.0
*
* 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(b){var m=/iPhone/i,l=/iPod/i,f=/iPad/i,o=/(?=.*\bAndroid\b)(?=.*\bMobile\b)/i,e=/Android/i,t=/(?=.*\bAndroid\b)(?=.*\bSD4930UR\b)/i,i=/(?=.*\bAndroid\b)(?=.*\b(?:KFOT|KFTT|KFJWI|KFJWA|KFSOWI|KFTHWI|KFTHWA|KFAPWI|KFAPWA|KFARWI|KFASWI|KFSAWI|KFSAWA)\b)/i,n=/IEMobile/i,r=/(?=.*\bWindows\b)(?=.*\bARM\b)/i,h=/BlackBerry/i,p=/BB10/i,u=/Opera Mini/i,y=/(CriOS|Chrome)(?=.*\bMobile\b)/i,d=/(?=.*\bFirefox\b)(?=.*\bMobile\b)/i,w=new RegExp("(?:Nexus 7|BNTV250|Kindle Fire|Silk|GT-P1000)","i"),g=function(v,P){return v.test(P)},a=function(v){var P=v||navigator.userAgent,T=P.split("[FBAN");if(typeof T[1]!="undefined"&&(P=T[0]),T=P.split("Twitter"),typeof T[1]!="undefined"&&(P=T[0]),this.apple={phone:g(m,P),ipod:g(l,P),tablet:!g(m,P)&&g(f,P),device:g(m,P)||g(l,P)||g(f,P)},this.amazon={phone:g(t,P),tablet:!g(t,P)&&g(i,P),device:g(t,P)||g(i,P)},this.android={phone:g(t,P)||g(o,P),tablet:!g(t,P)&&!g(o,P)&&(g(i,P)||g(e,P)),device:g(t,P)||g(i,P)||g(o,P)||g(e,P)},this.windows={phone:g(n,P),tablet:g(r,P),device:g(n,P)||g(r,P)},this.other={blackberry:g(h,P),blackberry10:g(p,P),opera:g(u,P),firefox:g(d,P),chrome:g(y,P),device:g(h,P)||g(p,P)||g(u,P)||g(d,P)||g(y,P)},this.seven_inch=g(w,P),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,typeof window=="undefined")return this},s=function(){var v=new a;return v.Class=a,v};typeof B!="undefined"&&B.exports&&typeof window=="undefined"?B.exports=a:typeof B!="undefined"&&B.exports&&typeof window!="undefined"?B.exports=s():(x=[],O=b.isMobile=s(),_=typeof O=="function"?O.apply(E,x):O,_!==void 0&&(B.exports=_))})(this)},function(B,E,c){var O=c(11),x=c(21),_=c(83),b=c(16),m="prototype",l=function(f,o,e){var t,i,n,r=f&l.F,h=f&l.G,p=f&l.S,u=f&l.P,y=f&l.B,d=f&l.W,w=h?x:x[o]||(x[o]={}),g=w[m],a=h?O:p?O[o]:(O[o]||{})[m];h&&(e=o);for(t in e)i=!r&&a&&a[t]!==void 0,i&&t in w||(n=i?a[t]:e[t],w[t]=h&&typeof a[t]!="function"?e[t]:y&&i?_(n,O):d&&a[t]==n?function(s){var v=function(P,T,C){if(this instanceof s){switch(arguments.length){case 0:return new s;case 1:return new s(P);case 2:return new s(P,T)}return new s(P,T,C)}return s.apply(this,arguments)};return v[m]=s[m],v}(n):u&&typeof n=="function"?_(Function.call,n):n,u&&((w.virtual||(w.virtual={}))[t]=n,f&l.R&&g&&!g[t]&&b(g,t,n)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,B.exports=l},function(B,E){B.exports=function(c){try{return!!c()}catch(O){return!0}}},function(B,E,c){var O=c(90),x=c(45);B.exports=Object.keys||function(_){return O(_,x)}},function(B,E){B.exports=function(c,O){return{enumerable:!(1&c),configurable:!(2&c),writable:!(4&c),value:O}}},function(B,E){var c=0,O=Math.random();B.exports=function(x){return"Symbol(".concat(x===void 0?"":x,")_",(++c+O).toString(36))}},function(B,E,c){"use strict";function O(t){return t&&t.__esModule?t:{default:t}}function x(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}function _(t,i){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!i||typeof i!="object"&&typeof i!="function"?t:i}function b(t,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof i);t.prototype=Object.create(i&&i.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),i&&(Object.setPrototypeOf?Object.setPrototypeOf(t,i):t.__proto__=i)}E.__esModule=!0;var m=function(){function t(i,n){for(var r=0;r<n.length;r++){var h=n[r];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(i,h.key,h)}}return function(i,n,r){return n&&t(i.prototype,n),r&&t(i,r),i}}(),l=c(3),f=c(93),o=O(f),e=function(t){function i(){x(this,i);var n=_(this,t.call(this));return n.children=[],n}return b(i,t),i.prototype.onChildrenChange=function(){},i.prototype.addChild=function(n){var r=arguments.length;if(r>1)for(var h=0;h<r;h++)this.addChild(arguments[h]);else n.p
this.gl.`+t+";"),new Function("value",i)},_=function(o,e){for(var t=e,i=0;i<o.length-1;i++){var n=t[o[i]]||{data:{}};t[o[i]]=n,t=n}return t},b=["return this.data.%%.value;"].join(`
`),m=["this.data.%%.value = value;","var location = this.data.%%.location;"].join(`
`),l={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)"},f={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)"};B.exports=c},function(B,E){var c=function(x){return O[x]},O={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};B.exports=c},function(B,E){"use strict";function c(m,l){if(!(m instanceof l))throw new TypeError("Cannot call a class as a function")}function O(m,l){return m._head?(m._tail._next=l,l._prev=m._tail,m._tail=l):(m._head=l,m._tail=l),l._owner=m,l}Object.defineProperty(E,"__esModule",{value:!0});var x=function(){function m(l,f){for(var o=0;o<f.length;o++){var e=f[o];e.enumerable=e.enumerable||!1,e.configurable=!0,"value"in e&&(e.writable=!0),Object.defineProperty(l,e.key,e)}}return function(l,f,o){return f&&m(l.prototype,f),o&&m(l,o),l}}(),_=function(){function m(l,f,o){f===void 0&&(f=!1),c(this,m),this._fn=l,this._once=f,this._thisArg=o,this._next=this._prev=this._owner=null}return x(m,[{key:"detach",value:function(){return this._owner!==null&&(this._owner.detach(this),!0)}}]),m}(),b=function(){function m(){c(this,m),this._head=this._tail=void 0}return x(m,[{key:"handlers",value:function(){var l=!(arguments.length<=0||arguments[0]===void 0)&&arguments[0],f=this._head;if(l)return!!f;for(var o=[];f;)o.push(f),f=f._next;return o}},{key:"has",value:function(l){if(!(l instanceof _))throw new Error("MiniSignal#has(): First arg must be a MiniSignalBinding object.");return l._owner===this}},{key:"dispatch",value:function(){var l=this._head;if(!l)return!1;for(;l;)l._once&&this.detach(l),l._fn.apply(l._thisArg,arguments),l=l._next;return!0}},{key:"add",value:function(l){var f=arguments.length<=1||arguments[1]===void 0?null:arguments[1];if(typeof l!="function")throw new Error("MiniSignal#add(): First arg must be a Function.");return O(this,new _(l,!1,f))}},{key:"once",value:function(l){var f=arguments.length<=1||arguments[1]===void 0?null:arguments[1];if(typeof l!="function")throw new Error("MiniSignal#once(): First arg must be a Function.");return O(this,new _(l,!0,f))}},{key:"detach",value:function(l){if(!(l instanceof _))throw new Error("MiniSignal#detach(): First arg must be a MiniSignalBinding object.");return l._owner!==this?this:(l._prev&&(l._prev._next=l._next),l._next&&(l._next._prev=l._prev),l===this._head?(this._head=l._next,l._next===null&&(this._tail=null)):l===this._tail&&(this._tail=l._prev,this._tail._next=null),l._owner=null,this)}},{key:"detachAll",value:function(){var l=this._head;if(!l)return this;for(this._head=this._tail=null;l;)l._owner=null,l=l._next;return this}}]),m}();b.MiniSignalBinding=_,E.default=b,B.exports=E.default},function(B,E){"use strict";function c(){}function O(b,m,l){var f=0,o=b.length;(function e(t){return t||f===o?void(l&&l(t)):void m(b[f++],e)})()}function x(b){return function(){if(b===null)throw new Error("Callback was already called.");var m=b;b=null,
`)}},{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(`
`)}}]),t}();E.default=e},function(B,E,c){"use strict";function O(e){return e&&e.__esModule?e:{default:e}}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||typeof t!="object"&&typeof t!="function"?e:t}function b(e,t){if(typeof t!="function"&&t!==null)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)}E.__esModule=!0;var m=c(102),l=O(m),f=c(4),o=(c(7),function(e){function t(i){x(this,t);var n=new f.Matrix,r=_(this,e.call(this,`attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
uniform mat3 projectionMatrix;
uniform mat3 otherMatrix;
varying vec2 vMaskCoord;
varying vec2 vTextureCoord;
void main(void)
{
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
vTextureCoord = aTextureCoord;
vMaskCoord = ( otherMatrix * vec3( aTextureCoord, 1.0) ).xy;
}
`,`varying vec2 vMaskCoord;
varying vec2 vTextureCoord;
uniform sampler2D uSampler;
uniform float alpha;
uniform sampler2D mask;
void main(void)
{
// check clip! this will stop the mask bleeding out from the edges
vec2 text = abs( vMaskCoord - 0.5 );
text = step(0.5, text);
float clip = 1.0 - max(text.y, text.x);
vec4 original = texture2D(uSampler, vTextureCoord);
vec4 masky = texture2D(mask, vMaskCoord);
original *= (masky.r * masky.a * alpha * clip);
gl_FragColor = original;
}
`));return i.renderable=!1,r.maskSprite=i,r.maskMatrix=n,r}return b(t,e),t.prototype.apply=function(i,n,r){var h=this.maskSprite;this.uniforms.mask=h._texture,this.uniforms.otherMatrix=i.calculateSpriteMatrix(this.maskMatrix,h),this.uniforms.alpha=h.worldAlpha,i.applyFilter(this,n,r)},t}(l.default));E.default=o},function(B,E,c){"use strict";function O(o){return o&&o.__esModule?o:{default:o}}function x(o,e){if(!(o instanceof e))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var _=c(6),b=O(_),m=c(66),l=O(m),f=function(){function o(e,t){x(this,o),this.gl=e,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,l.default)(1),this.vertexBuffer=b.default.GLBuffer.createVertexBuffer(e,this.interleaved,e.STATIC_DRAW),this.indexBuffer=b.default.GLBuffer.createIndexBuffer(e,this.indices,e.STATIC_DRAW),this.vao=new b.default.VertexArrayObject(e,t)}return o.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)},o.prototype.map=function(e,t){var i=0,n=0;return this.uvs[0]=i,this.uvs[1]=n,this.uvs[2]=i+t.width/e.width,this.uvs[3]=n,this.uvs[4]=i+t.width/e.width,this.uvs[5]=n+t.height/e.height,this.uvs[6]=i,this.uvs[7]=n+t.height/e.height,i=t.x,n=t.y,this.vertices[0]=i,this.vertices[1]=n,this.vertices[2]=i+t.width,this.vertices[3]=n,this.vertices[4]=i+t.width,this.vertices[5]=n+t.height,this.vertices[6]=i,this.vertices[7]=n+t.height,this},o.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},o.prototype.destroy=function(){var e=this.gl;e.deleteBuffer(this.vertexBuffer),e.deleteBuffer(this.indexBuffer)},o}();E.default=f},function(B,E,c){"use strict";function O(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e){return typeof e=="number"?(0,l.hex2string)(e):(typeof e=="string"&&e.indexOf("0x")===0&&(e=e.replace("0x","#")),e)}function _(e){if(Array.isArray(e)){for(var t=0;t<e.length;++t)e[t]=x(e[t]);return e}return x(e)}E.__esModule=!0;var b=function(){function e(t,i){for(var n=0;n<i.length;n++){var r=i[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),m=c(2),l=c(3),f={align:"left",breakWords:!1,dropShadow:!1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"#000000",dropShadowDistance:5,fill:"black",fillGradientType:m.TEXT_GRADIENT.LINEAR_VERTICAL,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",wordWrap:!1,wordWrapWidth:100},o=function(){function e(t){O(this,e),this.styleID=0,Object.assign(this,f,t)}return e.prototype.clone=function(){var t={};for(var i in f)t[i]=this[i];return new e(t)},e.prototype.reset=function(){Object.assign(this,f)},b(e,[{key:"align",get:function(){return this._align},set:function(t){this._align!==t&&(this._align=t,this.styleID++)}},{key:"breakWords",get:function(){return this._breakWords},set:function(t){this._breakWords!==t&&(this._breakWords=t,this.styleID++)}},{key:"dropShadow",get:function(){return this._dropShadow},set:function(t){this._dropShadow!==t&&(this._dropShadow=t,this.styleID++)}},{key:"dropShadowAngle",get:function(){return this._dropShadowAngle},set:function(t){this._dropShadowAngle!==t&&(this._dropShadowAngle=t,this.styleID++)}},{key:"dropShadowBlur",g
`}return l=l.replace("%blur%",f),l=l.replace("%size%",_)}E.__esModule=!0,E.default=c;var O={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]},x=["varying vec2 vBlurTexCoords[%size%];","uniform sampler2D uSampler;","void main(void)","{"," gl_FragColor = vec4(0.0);"," %blur%","}"].join(`
`)},function(B,E){"use strict";function c(x,_){var b=Math.ceil(x/2),m=O,l="",f=void 0;f=_?"vBlurTexCoords[%index%] = aTextureCoord + vec2(%sampleIndex% * strength, 0.0);":"vBlurTexCoords[%index%] = aTextureCoord + vec2(0.0, %sampleIndex% * strength);";for(var o=0;o<x;o++){var e=f.replace("%index%",o);e=e.replace("%sampleIndex%",o-(b-1)+".0"),l+=e,l+=`
`}return m=m.replace("%blur%",l),m=m.replace("%size%",x)}E.__esModule=!0,E.default=c;var O=["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(`
`)},function(B,E){"use strict";function c(O){for(var x=O.getParameter(O.MAX_VARYING_VECTORS),_=15;_>x;)_-=2;return _}E.__esModule=!0,E.default=c},function(B,E,c){"use strict";function O(t){return t&&t.__esModule?t:{default:t}}E.__esModule=!0;var x=c(235);Object.defineProperty(E,"FXAAFilter",{enumerable:!0,get:function(){return O(x).default}});var _=c(236);Object.defineProperty(E,"NoiseFilter",{enumerable:!0,get:function(){return O(_).default}});var b=c(234);Object.defineProperty(E,"DisplacementFilter",{enumerable:!0,get:function(){return O(b).default}});var m=c(232);Object.defineProperty(E,"BlurFilter",{enumerable:!0,get:function(){return O(m).default}});var l=c(111);Object.defineProperty(E,"BlurXFilter",{enumerable:!0,get:function(){return O(l).default}});var f=c(112);Object.defineProperty(E,"BlurYFilter",{enumerable:!0,get:function(){return O(f).default}});var o=c(233);Object.defineProperty(E,"ColorMatrixFilter",{enumerable:!0,get:function(){return O(o).default}});var e=c(237);Object.defineProperty(E,"VoidFilter",{enumerable:!0,get:function(){return O(e).default}})},function(B,E,c){"use strict";function O(l){if(l&&l.__esModule)return l;var f={};if(l!=null)for(var o in l)Object.prototype.hasOwnProperty.call(l,o)&&(f[o]=l[o]);return f.default=l,f}function x(l,f){if(!(l instanceof f))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var _=c(1),b=O(_),m=function(){function l(){x(this,l),this.global=new b.Point,this.target=null,this.originalEvent=null}return l.prototype.getLocalPosition=function(f,o,e){return f.worldTransform.applyInverse(e||this.global,o)},l}();E.default=m},function(B,E){"use strict";E.__esModule=!0,E.default={interactive:!1,interactiveChildren:!0,hitArea:null,buttonMode:!1,defaultCursor:"pointer",_over:!1,_isLeftDown:!1,_isRightDown:!1,_pointerOver:!1,_pointerDown:!1,_touchDown:!1}},function(B,E,c){"use strict";function O(o){if(o&&o.__esModule)return o;var e={};if(o!=null)for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t]);return e.default=o,e}function x(o,e){var t={},i=o.data.getElementsByTagName("info")[0],n=o.data.getElementsByTagName("common")[0];t.font=i.getAttribute("face"),t.size=parseInt(i.getAttribute("size"),10),t.lineHeight=parseInt(n.getAttribute("lineHeight"),10),t.chars={};for(var r=o.data.getElementsByTagName("char"),h=0;h<r.length;h++){var p=parseInt(r[h].getAttribute("id"),10),u=new m.Rectangle(parseInt(r[h].getAttribute("x"),10)+e.frame.x,parseInt(r[h].getAttribute("y"),10)+e.frame.y,parseInt(r[h].getAttribute("width"),10),parseInt(r[h].getAttribute("height"),10));t.chars[p]={xOffset:parseInt(r[h].getAttribute("xoffset"),10),yOffset:parseInt(r[h].getAttribute("yoffset"),10),xAdvance:parseInt(r[h].getAttribute("xadvance"),10),kerning:{},texture:new m.Texture(e.baseTexture,u)}}for(var y=o.data.getElementsByTagName("kerning"),d=0;d<y.length;d++){var w=parseInt(y[d].getAttribute("first"),10),g=parseInt(y[d].getAttribute("second"),10),a=parseInt(y[d].getAttribute("amount"),10);t.chars[g]&&(t.chars[g].kerning[w]=a)}o.bitmapFont=t,f.BitmapText.fonts[t.font]=t}E.__esModule=!0,E.parse=x,E.default=function(){return function(o,e){if(!o.data||o.type!==l.Resource.TYPE.XML||o.data.getElementsByTagName("page").length===0||o.data.getElementsByTagName("info").length===0||o.data.getElementsByTagName("info")[0].getAttribute("face")===null)return void e();var t=o.isDataUrl?"":b.dirname(o.url);o.isDataUrl&&(t==="."&&(t=""),this.baseUrl&&t&&(this.baseUrl.charAt(this.baseUrl.length-1)==="/"&&(t+="/"),t=t.replace(this.baseUrl,""))),t&&t.charAt(t.length-1)!=="/"&&(t+="/");var i=t+o.data.getElementsByTagName("page")[0].getAttribute("file");if(m.utils.TextureCache[i])x(o,m.utils.TextureCache[i]),e();else{var n={crossOrigin:o.crossOrigin,loadType:l.Resource.LOAD_TYPE.IMAGE,metadata:o.metadata.imageMetadata,parentResource:o};this.add(o.name+"_image",i,n,function(r){x(o,r.texture),e()})}}};var _=c(7),b=O(_),m=c(1),l=c(19),f=c(67)},function(B,E,c){"use strict";function O(f){return f&&f.__esModule?f:{default:f}}E.__esModule=!0;var x=c(241);Object.defineProperty(E,"Loader",{enum
`," "],h=["{","}","|","\\","^","`"].concat(r),p=["'"].concat(h),u=["%","/","?",";","#"].concat(p),y=["/","?","#"],d=255,w=/^[a-z0-9A-Z_-]{0,63}$/,g=/^([a-z0-9A-Z_-]{0,63})(.*)$/,a={javascript:!0,"javascript:":!0},s={javascript:!0,"javascript:":!0},v={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},P=c(135);O.prototype.parse=function(T,C,M){if(!l(T))throw new TypeError("Parameter 'url' must be a string, not "+typeof T);var R=T;R=R.trim();var S=i.exec(R);if(S){S=S[0];var L=S.toLowerCase();this.protocol=L,R=R.substr(S.length)}if(M||S||R.match(/^\/\/[^@\/]+@[^@\/]+/)){var A=R.substr(0,2)==="//";!A||S&&s[S]||(R=R.substr(2),this.slashes=!0)}if(!s[S]&&(A||S&&!v[S])){for(var D=-1,I=0;I<y.length;I++){var U=R.indexOf(y[I]);U!==-1&&(D===-1||U<D)&&(D=U)}var N,W;W=D===-1?R.lastIndexOf("@"):R.lastIndexOf("@",D),W!==-1&&(N=R.slice(0,W),R=R.slice(W+1),this.auth=decodeURIComponent(N)),D=-1;for(var I=0;I<u.length;I++){var U=R.indexOf(u[I]);U!==-1&&(D===-1||U<D)&&(D=U)}D===-1&&(D=R.length),this.host=R.slice(0,D),R=R.slice(D),this.parseHost(),this.hostname=this.hostname||"";var H=this.hostname[0]==="["&&this.hostname[this.hostname.length-1]==="]";if(!H)for(var tt=this.hostname.split(/\./),I=0,it=tt.length;I<it;I++){var K=tt[I];if(K&&!K.match(w)){for(var at="",ut=0,mt=K.length;ut<mt;ut++)at+=K.charCodeAt(ut)>127?"x":K[ut];if(!at.match(w)){var wt=tt.slice(0,I),Dt=tt.slice(I+1),yt=K.match(g);yt&&(wt.push(yt[1]),Dt.unshift(yt[2])),Dt.length&&(R="/"+Dt.join(".")+R),this.hostname=wt.join(".");break}}}if(this.hostname.length>d?this.hostname="":this.hostname=this.hostname.toLowerCase(),!H){for(var Tt=this.hostname.split("."),It=[],I=0;I<Tt.length;++I){var bt=Tt[I];It.push(bt.match(/[^A-Za-z0-9_-]/)?"xn--"+t.encode(bt):bt)}this.hostname=It.join(".")}var kt=this.port?":"+this.port:"",Bt=this.hostname||"";this.host=Bt+kt,this.href+=this.host,H&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),R[0]!=="/"&&(R="/"+R))}if(!a[L])for(var I=0,it=p.length;I<it;I++){var Ut=p[I],Vt=encodeURIComponent(Ut);Vt===Ut&&(Vt=escape(Ut)),R=R.split(Ut).join(Vt)}var jt=R.indexOf("#");jt!==-1&&(this.hash=R.substr(jt),R=R.slice(0,jt));var _t=R.indexOf("?");if(_t!==-1?(this.search=R.substr(_t),this.query=R.substr(_t+1),C&&(this.query=P.parse(this.query)),R=R.slice(0,_t)):C&&(this.search="",this.query={}),R&&(this.pathname=R),v[L]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var kt=this.pathname||"",bt=this.search||"";this.path=kt+bt}return this.href=this.format(),this},O.prototype.format=function(){var T=this.auth||"";T&&(T=encodeURIComponent(T),T=T.replace(/%3A/i,":"),T+="@");var C=this.protocol||"",M=this.pathname||"",R=this.hash||"",S=!1,L="";this.host?S=T+this.host:this.hostname&&(S=T+(this.hostname.indexOf(":")===-1?this.hostname:"["+this.hostname+"]"),this.port&&(S+=":"+this.port)),this.query&&f(this.query)&&Object.keys(this.query).length&&(L=P.stringify(this.query));var A=this.search||L&&"?"+L||"";return C&&C.substr(-1)!==":"&&(C+=":"),this.slashes||(!C||v[C])&&S!==!1?(S="//"+(S||""),M&&M.charAt(0)!=="/"&&(M="/"+M)):S||(S=""),R&&R.charAt(0)!=="#"&&(R="#"+R),A&&A.charAt(0)!=="?"&&(A="?"+A),M=M.replace(/[?#]/g,function(D){return encodeURIComponent(D)}),A=A.replace("#","%23"),C+S+M+A+R},O.prototype.resolve=function(T){return this.resolveObject(x(T,!1,!0)).format()},O.prototype.resolveObject=function(T){if(l(T)){var C=new O;C.parse(T,!1,!0),T=C}var M=new O;if(Object.keys(this).forEach(function(mt){M[mt]=this[mt]},this),M.hash=T.hash,T.href==="")return M.href=M.format(),M;if(T.slashes&&!T.protocol)return Object.keys(T).forEach(function(mt){mt!=="protocol"&&(M[mt]=T[mt])}),v[M.protocol]&&M.hostname&&!M.pathname&&(M.path=M.pathname="/"),M.href=M.format(),M;if(T.protocol&&T.protocol!==M.protocol){if(!v[T.protocol])return Object.keys(T).forEach(function(mt){M[mt]=T[mt]}),M.href=M.format(),M;if(M.protocol=T.protocol,T.host||s[T.protocol])M.pathname=T.pathname;else{for(var N=(T.pathname||"").split("/");N.length&&!(T.host=N.shift()););T.host||(T.host=""),T.hostname||(T.hostname=""
`),["varying vec4 vColor;","void main(void){"," gl_FragColor = vColor;","}"].join(`
`)))}return b(e,o),e}(l.default);E.default=f},function(B,E,c){"use strict";function O(f){return f&&f.__esModule?f:{default:f}}function x(f,o){var e=f.shape,t=e.x,i=e.y,n=void 0,r=void 0;f.type===m.SHAPES.CIRC?(n=e.radius,r=e.radius):(n=e.width,r=e.height);var h=Math.floor(30*Math.sqrt(e.radius))||Math.floor(15*Math.sqrt(e.width+e.height)),p=2*Math.PI/h;if(f.fill){var u=(0,l.hex2rgb)(f.fillColor),y=f.fillAlpha,d=u[0]*y,w=u[1]*y,g=u[2]*y,a=o.points,s=o.indices,v=a.length/6;s.push(v);for(var P=0;P<h+1;P++)a.push(t,i,d,w,g,y),a.push(t+Math.sin(p*P)*n,i+Math.cos(p*P)*r,d,w,g,y),s.push(v++,v++);s.push(v-1)}if(f.lineWidth){var T=f.points;f.points=[];for(var C=0;C<h+1;C++)f.points.push(t+Math.sin(p*C)*n,i+Math.cos(p*C)*r);(0,b.default)(f,o),f.points=T}}E.__esModule=!0,E.default=x;var _=c(35),b=O(_),m=c(2),l=c(3)},function(B,E,c){"use strict";function O(o){return o&&o.__esModule?o:{default:o}}function x(o,e){o.points=o.shape.points.slice();var t=o.points;if(o.fill&&t.length>=6){for(var i=[],n=o.holes,r=0;r<n.length;r++){var h=n[r];i.push(t.length/2),t=t.concat(h.points)}var p=e.points,u=e.indices,y=t.length/2,d=(0,m.hex2rgb)(o.fillColor),w=o.fillAlpha,g=d[0]*w,a=d[1]*w,s=d[2]*w,v=(0,f.default)(t,i,2);if(!v)return;for(var P=p.length/6,T=0;T<v.length;T+=3)u.push(v[T]+P),u.push(v[T]+P),u.push(v[T+1]+P),u.push(v[T+2]+P),u.push(v[T+2]+P);for(var C=0;C<y;C++)p.push(t[2*C],t[2*C+1],g,a,s,w)}o.lineWidth>0&&(0,b.default)(o,e)}E.__esModule=!0,E.default=x;var _=c(35),b=O(_),m=c(3),l=c(81),f=O(l)},function(B,E,c){"use strict";function O(l){return l&&l.__esModule?l:{default:l}}function x(l,f){var o=l.shape,e=o.x,t=o.y,i=o.width,n=o.height;if(l.fill){var r=(0,m.hex2rgb)(l.fillColor),h=l.fillAlpha,p=r[0]*h,u=r[1]*h,y=r[2]*h,d=f.points,w=f.indices,g=d.length/6;d.push(e,t),d.push(p,u,y,h),d.push(e+i,t),d.push(p,u,y,h),d.push(e,t+n),d.push(p,u,y,h),d.push(e+i,t+n),d.push(p,u,y,h),w.push(g,g,g+1,g+2,g+3,g+3)}if(l.lineWidth){var a=l.points;l.points=[e,t,e+i,t,e+i,t+n,e,t+n,e,t],(0,b.default)(l,f),l.points=a}}E.__esModule=!0,E.default=x;var _=c(35),b=O(_),m=c(3)},function(B,E,c){"use strict";function O(e){return e&&e.__esModule?e:{default:e}}function x(e,t){var i=e.shape,n=i.x,r=i.y,h=i.width,p=i.height,u=i.radius,y=[];if(y.push(n,r+u),_(n,r+p-u,n,r+p,n+u,r+p,y),_(n+h-u,r+p,n+h,r+p,n+h,r+p-u,y),_(n+h,r+u,n+h,r,n+h-u,r,y),_(n+u,r,n,r,n,r+u+1e-10,y),e.fill){for(var d=(0,o.hex2rgb)(e.fillColor),w=e.fillAlpha,g=d[0]*w,a=d[1]*w,s=d[2]*w,v=t.points,P=t.indices,T=v.length/6,C=(0,m.default)(y,null,2),M=0,R=C.length;M<R;M+=3)P.push(C[M]+T),P.push(C[M]+T),P.push(C[M+1]+T),P.push(C[M+2]+T),P.push(C[M+2]+T);for(var S=0,L=y.length;S<L;S++)v.push(y[S],y[++S],g,a,s,w)}if(e.lineWidth){var A=e.points;e.points=y,(0,f.default)(e,t),e.points=A}}function _(e,t,i,n,r,h){function p(M,R,S){var L=R-M;return M+L*S}for(var u=arguments.length>6&&arguments[6]!==void 0?arguments[6]:[],y=20,d=u,w=0,g=0,a=0,s=0,v=0,P=0,T=0,C=0;T<=y;++T)C=T/y,w=p(e,i,C),g=p(t,n,C),a=p(i,r,C),s=p(n,h,C),v=p(w,a,C),P=p(g,s,C),d.push(v,P);return d}E.__esModule=!0,E.default=x;var b=c(81),m=O(b),l=c(35),f=O(l),o=c(3)},function(B,E,c){"use strict";function O(f){return f&&f.__esModule?f:{default:f}}function x(f,o){if(!(f instanceof o))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var _=c(61),b=O(_),m=c(2),l=function(){function f(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;x(this,f),this.x=o,this.y=e,this.radius=t,this.type=m.SHAPES.CIRC}return f.prototype.clone=function(){return new f(this.x,this.y,this.radius)},f.prototype.contains=function(o,e){if(this.radius<=0)return!1;var t=this.radius*this.radius,i=this.x-o,n=this.y-e;return i*=i,n*=n,i+n<=t},f.prototype.getBounds=function(){return new b.default(this.x-this.radius,this.y-this.radius,2*this.radius,2*this.radius)},f}();E.default=l},function(B,E,c){"use strict";function O(f){return f&&f.__esModule?f:{default:f}}function x(f,o){if(!(f instanceof o))throw new TypeError("Cannot call a class a
else `),e<f-1&&(o+="if(test == "+e+".0){}");return o}E.__esModule=!0,E.default=x;var b=c(6),m=O(b),l=["precision mediump float;","void main(void){","float test = 0.1;","%forloop%","gl_FragColor = vec4(0.0);","}"].join(`
`)},function(B,E,c){"use strict";function O(_){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return b[x.BLEND_MODES.NORMAL]=[_.ONE,_.ONE_MINUS_SRC_ALPHA],b[x.BLEND_MODES.ADD]=[_.ONE,_.DST_ALPHA],b[x.BLEND_MODES.MULTIPLY]=[_.DST_COLOR,_.ONE_MINUS_SRC_ALPHA],b[x.BLEND_MODES.SCREEN]=[_.ONE,_.ONE_MINUS_SRC_COLOR],b[x.BLEND_MODES.OVERLAY]=[_.ONE,_.ONE_MINUS_SRC_ALPHA],b[x.BLEND_MODES.DARKEN]=[_.ONE,_.ONE_MINUS_SRC_ALPHA],b[x.BLEND_MODES.LIGHTEN]=[_.ONE,_.ONE_MINUS_SRC_ALPHA],b[x.BLEND_MODES.COLOR_DODGE]=[_.ONE,_.ONE_MINUS_SRC_ALPHA],b[x.BLEND_MODES.COLOR_BURN]=[_.ONE,_.ONE_MINUS_SRC_ALPHA],b[x.BLEND_MODES.HARD_LIGHT]=[_.ONE,_.ONE_MINUS_SRC_ALPHA],b[x.BLEND_MODES.SOFT_LIGHT]=[_.ONE,_.ONE_MINUS_SRC_ALPHA],b[x.BLEND_MODES.DIFFERENCE]=[_.ONE,_.ONE_MINUS_SRC_ALPHA],b[x.BLEND_MODES.EXCLUSION]=[_.ONE,_.ONE_MINUS_SRC_ALPHA],b[x.BLEND_MODES.HUE]=[_.ONE,_.ONE_MINUS_SRC_ALPHA],b[x.BLEND_MODES.SATURATION]=[_.ONE,_.ONE_MINUS_SRC_ALPHA],b[x.BLEND_MODES.COLOR]=[_.ONE,_.ONE_MINUS_SRC_ALPHA],b[x.BLEND_MODES.LUMINOSITY]=[_.ONE,_.ONE_MINUS_SRC_ALPHA],b}E.__esModule=!0,E.default=O;var x=c(2)},function(B,E,c){"use strict";function O(_){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return b[x.DRAW_MODES.POINTS]=_.POINTS,b[x.DRAW_MODES.LINES]=_.LINES,b[x.DRAW_MODES.LINE_LOOP]=_.LINE_LOOP,b[x.DRAW_MODES.LINE_STRIP]=_.LINE_STRIP,b[x.DRAW_MODES.TRIANGLES]=_.TRIANGLES,b[x.DRAW_MODES.TRIANGLE_STRIP]=_.TRIANGLE_STRIP,b[x.DRAW_MODES.TRIANGLE_FAN]=_.TRIANGLE_FAN,b}E.__esModule=!0,E.default=O;var x=c(2)},function(B,E){"use strict";function c(O){var x=O.getContextAttributes();x.stencil||console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly")}E.__esModule=!0,E.default=c},function(B,E,c){"use strict";function O(i){return i&&i.__esModule?i:{default:i}}function x(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var _=c(36),b=O(_),m=c(2),l=c(4),f=c(64),o=O(f),e=new l.Matrix,t=function(){function i(n){x(this,i),this.renderer=n}return i.prototype.render=function(n){var r=n._texture,h=this.renderer,p=r._frame.width,u=r._frame.height,y=n.transform.worldTransform,d=0,w=0;if(!(r.orig.width<=0||r.orig.height<=0)&&r.baseTexture.source&&(h.setBlendMode(n.blendMode),r.valid)){h.context.globalAlpha=n.worldAlpha;var g=r.baseTexture.scaleMode===m.SCALE_MODES.LINEAR;h.smoothProperty&&h.context[h.smoothProperty]!==g&&(h.context[h.smoothProperty]=g),r.trim?(d=r.trim.width/2+r.trim.x-n.anchor.x*r.orig.width,w=r.trim.height/2+r.trim.y-n.anchor.y*r.orig.height):(d=(.5-n.anchor.x)*r.orig.width,w=(.5-n.anchor.y)*r.orig.height),r.rotate&&(y.copy(e),y=e,l.GroupD8.matrixAppendRotationInv(y,r.rotate,d,w),d=0,w=0),d-=p/2,w-=u/2,h.roundPixels?(h.context.setTransform(y.a,y.b,y.c,y.d,y.tx*h.resolution|0,y.ty*h.resolution|0),d=0|d,w=0|w):h.context.setTransform(y.a,y.b,y.c,y.d,y.tx*h.resolution,y.ty*h.resolution);var a=r.baseTexture.resolution;n.tint!==16777215?(n.cachedTint!==n.tint&&(n.cachedTint=n.tint,n.tintedTexture=o.default.getTintedTexture(n,n.tint)),h.context.drawImage(n.tintedTexture,0,0,p*a,u*a,d*h.resolution,w*h.resolution,p*h.resolution,u*h.resolution)):h.context.drawImage(r.baseTexture.source,r._frame.x*a,r._frame.y*a,p*a,u*a,d*h.resolution,w*h.resolution,p*h.resolution,u*h.resolution)}},i.prototype.destroy=function(){this.renderer=null},i}();E.default=t,b.default.registerPlugin("sprite",t)},function(B,E){"use strict";function c(x,_){if(!(x instanceof _))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var O=function(){function x(_){c(this,x),this.vertices=new ArrayBuffer(_),this.float32View=new Float32Array(this.vertices),this.uint32View=new Uint32Array(this.vertices)}return x.prototype.destroy=function(){this.vertices=null,this.positions=null,this.uvs=null,this.colors=null},x}();E.default=O},function(B,E,c){"use strict";function O(C){return C&&C.__esModule?C:{default:C}}function x(C,M){if(!(C instanceof M))throw new TypeError("Cannot call a class as a function")}function _(C,M){if(!C)throw new ReferenceError("this hasn't be
attribute vec2 aTextureCoord;
attribute vec4 aColor;
attribute float aTextureId;
uniform mat3 projectionMatrix;
varying vec2 vTextureCoord;
varying vec4 vColor;
varying float vTextureId;
void main(void){
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
vTextureCoord = aTextureCoord;
vTextureId = aTextureId;
vColor = vec4(aColor.rgb * aColor.a, aColor.a);
}
`,t=l;t=t.replace(/%count%/gi,o),t=t.replace(/%forloop%/gi,_(o));for(var i=new m.default(f,e,t),n=[],r=0;r<o;r++)n[r]=r;return i.bind(),i.uniforms.uSamplers=n,i}function _(f){var o="";o+=`
`,o+=`
`;for(var e=0;e<f;e++)e>0&&(o+=`
else `),e<f-1&&(o+="if(textureId == "+e+".0)"),o+=`
{`,o+=`
color = texture2D(uSamplers[`+e+"], vTextureCoord);",o+=`
}`;return o+=`
`,o+=`
`}E.__esModule=!0,E.default=x;var b=c(23),m=O(b),l=(c(7),["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(`
`))},function(B,E,c){"use strict";function O(w){return w&&w.__esModule?w:{default:w}}function x(w,g){if(!(w instanceof g))throw new TypeError("Cannot call a class as a function")}function _(w,g){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!g||typeof g!="object"&&typeof g!="function"?w:g}function b(w,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);w.prototype=Object.create(g&&g.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(w,g):w.__proto__=g)}E.__esModule=!0;var m=function(){function w(g,a){for(var s=0;s<a.length;s++){var v=a[s];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(g,v.key,v)}}return function(g,a,s){return a&&w(g.prototype,a),s&&w(g,s),g}}(),l=c(63),f=O(l),o=c(26),e=O(o),t=c(4),i=c(3),n=c(2),r=c(5),h=O(r),p=c(105),u=O(p),y={texture:!0,children:!1,baseTexture:!0},d=function(w){function g(a,s,v){x(this,g),v=v||document.createElement("canvas"),v.width=3,v.height=3;var P=e.default.fromCanvas(v);P.orig=new t.Rectangle,P.trim=new t.Rectangle;var T=_(this,w.call(this,P));return T.canvas=v,T.context=T.canvas.getContext("2d"),T.resolution=h.default.RESOLUTION,T._text=null,T._style=null,T._styleListener=null,T._font="",T.text=a,T.style=s,T.localStyleID=-1,T}return b(g,w),g.prototype.updateText=function(a){var s=this._style;if(this.localStyleID!==s.styleID&&(this.dirty=!0,this.localStyleID=s.styleID),this.dirty||!a){this._font=g.getFontStyle(s),this.context.font=this._font;for(var v=s.wordWrap?this.wordWrap(this._text):this._text,P=v.split(/(?:\r\n|\r|\n)/),T=new Array(P.length),C=0,M=g.calculateFontProperties(this._font),R=0;R<P.length;R++){var S=this.context.measureText(P[R]).width+(P[R].length-1)*s.letterSpacing;T[R]=S,C=Math.max(C,S)}var L=C+s.strokeThickness;s.dropShadow&&(L+=s.dropShadowDistance),L+=2*s.padding,this.canvas.width=Math.ceil((L+this.context.lineWidth)*this.resolution);var A=this.style.lineHeight||M.fontSize+s.strokeThickness,D=Math.max(A,M.fontSize+s.strokeThickness)+(P.length-1)*A;s.dropShadow&&(D+=s.dropShadowDistance),this.canvas.height=Math.ceil((D+2*this._style.padding)*this.resolution),this.context.scale(this.resolution,this.resolution),this.context.clearRect(0,0,this.canvas.width,this.canvas.height),this.context.font=this._font,this.context.strokeStyle=s.stroke,this.context.lineWidth=s.strokeThickness,this.context.textBaseline=s.textBaseline,this.context.lineJoin=s.lineJoin,this.context.miterLimit=s.miterLimit;var I=void 0,U=void 0;if(s.dropShadow){s.dropShadowBlur>0?(this.context.shadowColor=s.dropShadowColor,this.context.shadowBlur=s.dropShadowBlur):this.context.fillStyle=s.dropShadowColor;for(var N=Math.cos(s.dropShadowAngle)*s.dropShadowDistance,W=Math.sin(s.dropShadowAngle)*s.dropShadowDistance,H=0;H<P.length;H++)I=s.strokeThickness/2,U=s.strokeThickness/2+H*A+M.ascent,s.align==="right"?I+=C-T[H]:s.align==="center"&&(I+=(C-T[H])/2),s.fill&&(this.drawLetterSpacing(P[H],I+N+s.padding,U+W+s.padding),s.stroke&&s.strokeThickness&&(this.context.strokeStyle=s.dropShadowColor,this.drawLetterSpacing(P[H],I+N+s.padding,U+W+s.padding,!0),this.context.strokeStyle=s.stroke))}this.context.fillStyle=this._generateFillStyle(s,P);for(var tt=0;tt<P.length;tt++)I=s.strokeThickness/2,U=s.strokeThickness/2+tt*A+M.ascent,s.align==="right"?I+=C-T[tt]:s.align==="center"&&(I+=(C-T[tt])/2),s.stroke&&s.strokeThickness&&this.drawLetterSpacing(P[tt],I+s.padding,U+s.padding,!0),s.fill&&this.drawLetterSpacing(P[tt],I+s.padding,U+s.padding);this.updateTexture()}},g.prototype.drawLetterSpacing=function(a,s,v){var P=arguments.length>3&&arguments[3]!==void 0&&arguments[3],T=this._style,C=T.letterSpacing;if(C===0)return void(P?this.context.strokeText(a,s,v):this.context.fillText(a,s,v));for(var M=String.prototype.split.call(a,""),R=s,S=0,L="";S<a.length;)L=M[S++],P?this.context.strokeText(L,R,v):this.context.fillText(L,R,v),R+=this.context.measureText(L).width+C},g.pr
`),P=this._style.wordWrapWidth,T=0;T<v.length;T++){for(var C=P,M=v[T].split(" "),R=0;R<M.length;R++){var S=this.context.measureText(M[R]).width;if(this._style.breakWords&&S>P)for(var L=M[R].split(""),A=0;A<L.length;A++){var D=this.context.measureText(L[A]).width;D>C?(s+=`
`+L[A],C=P-D):(A===0&&(s+=" "),s+=L[A],C-=D)}else{var I=S+this.context.measureText(" ").width;R===0||I>C?(R>0&&(s+=`
`),s+=M[R],C=P-S):(C-=I,s+=" "+M[R])}}T<v.length-1&&(s+=`
`)}return s},g.prototype._calculateBounds=function(){this.updateText(!0),this.calculateVertices(),this._bounds.addQuad(this.vertexData)},g.prototype._onStyleChange=function(){this.dirty=!0},g.prototype._generateFillStyle=function(a,s){if(!Array.isArray(a.fill))return a.fill;if(navigator.isCocoonJS)return a.fill[0];var v=void 0,P=void 0,T=void 0,C=void 0,M=this.canvas.width/this.resolution,R=this.canvas.height/this.resolution;if(a.fillGradientType===n.TEXT_GRADIENT.LINEAR_VERTICAL){v=this.context.createLinearGradient(M/2,0,M/2,R),P=(a.fill.length+1)*s.length,T=0;for(var S=0;S<s.length;S++){T+=1;for(var L=0;L<a.fill.length;L++)C=T/P,v.addColorStop(C,a.fill[L]),T++}}else{v=this.context.createLinearGradient(0,R/2,M,R/2),P=a.fill.length+1,T=1;for(var A=0;A<a.fill.length;A++)C=T/P,v.addColorStop(C,a.fill[A]),T++}return v},g.prototype.destroy=function(a){typeof a=="boolean"&&(a={children:a}),a=Object.assign({},y,a),w.prototype.destroy.call(this,a),this.context=null,this.canvas=null,this._style=null},g.getFontStyle=function(a){a=a||{},a instanceof u.default||(a=new u.default(a));var s=typeof a.fontSize=="number"?a.fontSize+"px":a.fontSize,v=a.fontFamily;Array.isArray(a.fontFamily)||(v=a.fontFamily.split(","));for(var P=v.length-1;P>=0;P--){var T=v[P].trim();/([\"\'])[^\'\"]+\1/.test(T)||(T='"'+T+'"'),v[P]=T}return a.fontStyle+" "+a.fontVariant+" "+a.fontWeight+" "+s+" "+v.join(",")},g.calculateFontProperties=function(a){if(g.fontPropertiesCache[a])return g.fontPropertiesCache[a];var s={},v=g.fontPropertiesCanvas,P=g.fontPropertiesContext;P.font=a;var T=Math.ceil(P.measureText("|M\xC9q").width),C=Math.ceil(P.measureText("M").width),M=2*C;C=1.4*C|0,v.width=T,v.height=M,P.fillStyle="#f00",P.fillRect(0,0,T,M),P.font=a,P.textBaseline="alphabetic",P.fillStyle="#000",P.fillText("|M\xC9q",0,C);var R=P.getImageData(0,0,T,M).data,S=R.length,L=4*T,A=0,D=0,I=!1;for(A=0;A<C;++A){for(var U=0;U<L;U+=4)if(R[D+U]!==255){I=!0;break}if(I)break;D+=L}for(s.ascent=C-A,D=S-L,I=!1,A=M;A>C;--A){for(var N=0;N<L;N+=4)if(R[D+N]!==255){I=!0;break}if(I)break;D-=L}return s.descent=A-C,s.fontSize=s.ascent+s.descent,g.fontPropertiesCache[a]=s,s},m(g,[{key:"width",get:function(){return this.updateText(!0),Math.abs(this.scale.x)*this._texture.orig.width},set:function(a){this.updateText(!0);var s=(0,i.sign)(this.scale.x)||1;this.scale.x=s*a/this._texture.orig.width,this._width=a}},{key:"height",get:function(){return this.updateText(!0),Math.abs(this.scale.y)*this._texture.orig.height},set:function(a){this.updateText(!0);var s=(0,i.sign)(this.scale.y)||1;this.scale.y=s*a/this._texture.orig.height,this._height=a}},{key:"style",get:function(){return this._style},set:function(a){a=a||{},a instanceof u.default?this._style=a:this._style=new u.default(a),this.localStyleID=-1,this.dirty=!0}},{key:"text",get:function(){return this._text},set:function(a){a=String(a||" "),this._text!==a&&(this._text=a,this.dirty=!0)}}]),g}(f.default);E.default=d,d.fontPropertiesCache={},d.fontPropertiesCanvas=document.createElement("canvas"),d.fontPropertiesContext=d.fontPropertiesCanvas.getContext("2d")},function(B,E,c){"use strict";function O(t){return t&&t.__esModule?t:{default:t}}function x(t,i){if(!(t instanceof i))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var _=function(){function t(i,n){for(var r=0;r<n.length;r++){var h=n[r];h.enumerable=h.enumerable||!1,h.configurable=!0,"value"in h&&(h.writable=!0),Object.defineProperty(i,h.key,h)}}return function(i,n,r){return n&&t(i.prototype,n),r&&t(i,r),i}}(),b=c(5),m=O(b),l=c(10),f=O(l),o="tick",e=function(){function t(){var i=this;x(this,t),this._emitter=new f.default,this._requestId=null,this._maxElapsedMS=100,this.autoStart=!1,this.deltaTime=1,this.elapsedMS=1/m.default.TARGET_FPMS,this.lastTime=0,this.speed=1,this.started=!1,this._tick=function(n){i._requestId=null,i.started&&(i.update(n),i.started&&i._requestId===null&&i._emitter.listeners(o,!0)&&(i._requestId=requestAnimationFrame(i._tick)))}}return t.prototype._requestIfNeeded=function(){this._requestId===null&&this._emitter.listeners(o,!0)&&(this.lastTime
`).splice(3).join(`
`),console.groupCollapsed?(console.groupCollapsed("%cDeprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",a),console.warn(s),console.groupEnd()):(console.warn("Deprecation Warning: ",a),console.warn(s)))}var _=c(1),b=O(_),m=c(124),l=O(m),f=c(125),o=O(f),e=c(67),t=O(e),i=c(116),n=O(i),r=c(126),h=O(r),p=c(120),u=O(p);b.SpriteBatch=function(){throw new ReferenceError("SpriteBatch does not exist any more, please use the new ParticleContainer instead.")},b.AssetLoader=function(){throw new ReferenceError("The loader system was overhauled in pixi v3, please see the new PIXI.loaders.Loader class.")},Object.defineProperties(b,{Stage:{enumerable:!0,get:function(){return x("You do not need to use a PIXI Stage any more, you can simply render any container."),b.Container}},DisplayObjectContainer:{enumerable:!0,get:function(){return x("DisplayObjectContainer has been shortened to Container, please use Container from now on."),b.Container}},Strip:{enumerable:!0,get:function(){return x("The Strip class has been renamed to Mesh and moved to mesh.Mesh, please use mesh.Mesh from now on."),l.Mesh}},Rope:{enumerable:!0,get:function(){return x("The Rope class has been moved to mesh.Rope, please use mesh.Rope from now on."),l.Rope}},ParticleContainer:{enumerable:!0,get:function(){return x("The ParticleContainer class has been moved to particles.ParticleContainer, please use particles.ParticleContainer from now on."),o.ParticleContainer}},MovieClip:{enumerable:!0,get:function(){return x("The MovieClip class has been moved to extras.AnimatedSprite, please use extras.AnimatedSprite."),t.AnimatedSprite}},TilingSprite:{enumerable:!0,get:function(){return x("The TilingSprite class has been moved to extras.TilingSprite, please use extras.TilingSprite from now on."),t.TilingSprite}},BitmapText:{enumerable:!0,get:function(){return x("The BitmapText class has been moved to extras.BitmapText, please use extras.BitmapText from now on."),t.BitmapText}},blendModes:{enumerable:!0,get:function(){return x("The blendModes has been moved to BLEND_MODES, please use BLEND_MODES from now on."),b.BLEND_MODES}},scaleModes:{enumerable:!0,get:function(){return x("The scaleModes has been moved to SCALE_MODES, please use SCALE_MODES from now on."),b.SCALE_MODES}},BaseTextureCache:{enumerable:!0,get:function(){return x("The BaseTextureCache class has been moved to utils.BaseTextureCache, please use utils.BaseTextureCache from now on."),b.utils.BaseTextureCache}},TextureCache:{enumerable:!0,get:function(){return x("The TextureCache class has been moved to utils.TextureCache, please use utils.TextureCache from now on."),b.utils.TextureCache}},math:{enumerable:!0,get:function(){return x("The math namespace is deprecated, please access members already accessible on PIXI."),b}},AbstractFilter:{enumerable:!0,get:function(){return x("AstractFilter has been renamed to Filter, please use PIXI.Filter"),b.Filter}},TransformManual:{enumerable:!0,get:function(){return x("TransformManual has been renamed to TransformBase, please update your pixi-spine"),b.TransformBase}},TARGET_FPMS:{enumerable:!0,get:function(){return x("PIXI.TARGET_FPMS has been deprecated, please use PIXI.settings.TARGET_FPMS"),b.settings.TARGET_FPMS},set:function(a){x("PIXI.TARGET_FPMS has been deprecated, please use PIXI.settings.TARGET_FPMS"),b.settings.TARGET_FPMS=a}},FILTER_RESOLUTION:{enumerable:!0,get:function(){return x("PIXI.FILTER_RESOLUTION has been deprecated, please use PIXI.settings.FILTER_RESOLUTION"),b.settings.FILTER_RESOLUTION},set:function(a){x("PIXI.FILTER_RESOLUTION has been deprecated, please use PIXI.settings.FILTER_RESOLUTION"),b.settings.FILTER_RESOLUTION=a}},RESOLUTION:{enumerable:!0,get:function(){return x("PIXI.RESOLUTION has been deprecated, please use PIXI.settings.RESOLUTION"),b.settings.RESOLUTION},set:function(a){x("PIXI.RESOLUTION has been deprecated, please use PIXI.settings.RESOLUTION"),b.settings.RESOLUTION=a}},MIPMAP_TEXTURES:{enumerable:!0,get:function(){return x("PIXI.MIPMAP_TEXTURES has been deprecated, please us
attribute vec2 aTextureCoord;
uniform mat3 projectionMatrix;
uniform mat3 translationMatrix;
uniform mat3 uTransform;
varying vec2 vTextureCoord;
void main(void)
{
gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;
}
`,`varying vec2 vTextureCoord;
uniform sampler2D uSampler;
uniform vec4 uColor;
uniform mat3 uMapCoord;
uniform vec4 uClampFrame;
uniform vec2 uClampOffset;
void main(void)
{
vec2 coord = mod(vTextureCoord - uClampOffset, vec2(1.0, 1.0)) + uClampOffset;
coord = (uMapCoord * vec3(coord, 1.0)).xy;
coord = clamp(coord, uClampFrame.xy, uClampFrame.zw);
vec4 sample = texture2D(uSampler, coord);
vec4 color = vec4(uColor.rgb * uColor.a, uColor.a);
gl_FragColor = sample * color ;
}
`),this.simpleShader=new l.Shader(r,`attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
uniform mat3 projectionMatrix;
uniform mat3 translationMatrix;
uniform mat3 uTransform;
varying vec2 vTextureCoord;
void main(void)
{
gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
vTextureCoord = (uTransform * vec3(aTextureCoord, 1.0)).xy;
}
`,`varying vec2 vTextureCoord;
uniform sampler2D uSampler;
uniform vec4 uColor;
void main(void)
{
vec4 sample = texture2D(uSampler, vTextureCoord);
vec4 color = vec4(uColor.rgb * uColor.a, uColor.a);
gl_FragColor = sample * color;
}
`),this.renderer.bindVao(null),this.quad=new l.Quad(r,this.renderer.state.attribState),this.quad.initVao(this.shader)},n.prototype.render=function(r){var h=this.renderer,p=this.quad;h.bindVao(p.vao);var u=p.vertices;u[0]=u[6]=r._width*-r.anchor.x,u[1]=u[3]=r._height*-r.anchor.y,u[2]=u[4]=r._width*(1-r.anchor.x),u[5]=u[7]=r._height*(1-r.anchor.y),u=p.uvs,u[0]=u[6]=-r.anchor.x,u[1]=u[3]=-r.anchor.y,u[2]=u[4]=1-r.anchor.x,u[5]=u[7]=1-r.anchor.y,p.upload();var y=r._texture,d=y.baseTexture,w=r.tileTransform.localTransform,g=r.uvTransform,a=d.isPowerOfTwo&&y.frame.width===d.width&&y.frame.height===d.height;a&&(d._glTextures[h.CONTEXT_UID]?a=d.wrapMode!==f.WRAP_MODES.CLAMP:d.wrapMode===f.WRAP_MODES.CLAMP&&(d.wrapMode=f.WRAP_MODES.REPEAT));var s=a?this.simpleShader:this.shader;h.bindShader(s);var v=y.width,P=y.height,T=r._width,C=r._height;o.set(w.a*v/T,w.b*v/C,w.c*P/T,w.d*P/C,w.tx/T,w.ty/C),o.invert(),a?o.append(g.mapCoord):(s.uniforms.uMapCoord=g.mapCoord.toArray(!0),s.uniforms.uClampFrame=g.uClampFrame,s.uniforms.uClampOffset=g.uClampOffset),s.uniforms.uTransform=o.toArray(!0);var M=e;l.utils.hex2rgb(r.tint,M),M[3]=r.worldAlpha,s.uniforms.uColor=M,s.uniforms.translationMatrix=r.transform.worldTransform.toArray(!0),s.uniforms.uSampler=h.bindTexture(y),h.setBlendMode(r.blendMode),p.vao.draw(this.renderer.gl.TRIANGLES,6,0)},n}(l.ObjectRenderer);E.default=t,l.WebGLRenderer.registerPlugin("tilingSprite",t)},function(B,E,c){"use strict";function O(h){return h&&h.__esModule?h:{default:h}}function x(h){if(h&&h.__esModule)return h;var p={};if(h!=null)for(var u in h)Object.prototype.hasOwnProperty.call(h,u)&&(p[u]=h[u]);return p.default=h,p}function _(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function b(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!p||typeof p!="object"&&typeof p!="function"?h:p}function m(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}E.__esModule=!0;var l=function(){function h(p,u){for(var y=0;y<u.length;y++){var d=u[y];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(p,d.key,d)}}return function(p,u,y){return u&&h(p.prototype,u),y&&h(p,y),p}}(),f=c(1),o=x(f),e=c(111),t=O(e),i=c(112),n=O(i),r=function(h){function p(u,y,d,w){_(this,p);var g=b(this,h.call(this));return g.blurXFilter=new t.default(u,y,d,w),g.blurYFilter=new n.default(u,y,d,w),g.resolution=1,g.padding=0,g.resolution=d||1,g.quality=y||4,g.blur=u||8,g}return m(p,h),p.prototype.apply=function(u,y,d){var w=u.getRenderTarget(!0);this.blurXFilter.apply(u,y,w,!0),this.blurYFilter.apply(u,w,d,!1),u.returnRenderTarget(w)},l(p,[{key:"blur",get:function(){return this.blurXFilter.blur},set:function(u){this.blurXFilter.blur=this.blurYFilter.blur=u,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(u){this.blurXFilter.quality=this.blurYFilter.quality=u}},{key:"blurX",get:function(){return this.blurXFilter.blur},set:function(u){this.blurXFilter.blur=u,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(u){this.blurYFilter.blur=u,this.padding=2*Math.max(Math.abs(this.blurXFilter.strength),Math.abs(this.blurYFilter.strength))}}]),p}(o.Filter);E.default=r},function(B,E,c){"use strict";function O(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");ret
attribute vec2 aTextureCoord;
uniform mat3 projectionMatrix;
varying vec2 vTextureCoord;
void main(void)
{
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
vTextureCoord = aTextureCoord;
}`,`varying vec2 vTextureCoord;
uniform sampler2D uSampler;
uniform float m[20];
void main(void)
{
vec4 c = texture2D(uSampler, vTextureCoord);
gl_FragColor.r = (m[0] * c.r);
gl_FragColor.r += (m[1] * c.g);
gl_FragColor.r += (m[2] * c.b);
gl_FragColor.r += (m[3] * c.a);
gl_FragColor.r += m[4] * c.a;
gl_FragColor.g = (m[5] * c.r);
gl_FragColor.g += (m[6] * c.g);
gl_FragColor.g += (m[7] * c.b);
gl_FragColor.g += (m[8] * c.a);
gl_FragColor.g += m[9] * c.a;
gl_FragColor.b = (m[10] * c.r);
gl_FragColor.b += (m[11] * c.g);
gl_FragColor.b += (m[12] * c.b);
gl_FragColor.b += (m[13] * c.a);
gl_FragColor.b += m[14] * c.a;
gl_FragColor.a = (m[15] * c.r);
gl_FragColor.a += (m[16] * c.g);
gl_FragColor.a += (m[17] * c.b);
gl_FragColor.a += (m[18] * c.a);
gl_FragColor.a += m[19] * c.a;
// gl_FragColor = vec4(m[0]);
}
`));return i.uniforms.m=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0],i}return b(t,e),t.prototype._loadMatrix=function(i){var n=arguments.length>1&&arguments[1]!==void 0&&arguments[1],r=i;n&&(this._multiply(r,this.uniforms.m,i),r=this._colorMatrix(r)),this.uniforms.m=r},t.prototype._multiply=function(i,n,r){return i[0]=n[0]*r[0]+n[1]*r[5]+n[2]*r[10]+n[3]*r[15],i[1]=n[0]*r[1]+n[1]*r[6]+n[2]*r[11]+n[3]*r[16],i[2]=n[0]*r[2]+n[1]*r[7]+n[2]*r[12]+n[3]*r[17],i[3]=n[0]*r[3]+n[1]*r[8]+n[2]*r[13]+n[3]*r[18],i[4]=n[0]*r[4]+n[1]*r[9]+n[2]*r[14]+n[3]*r[19],i[5]=n[5]*r[0]+n[6]*r[5]+n[7]*r[10]+n[8]*r[15],i[6]=n[5]*r[1]+n[6]*r[6]+n[7]*r[11]+n[8]*r[16],i[7]=n[5]*r[2]+n[6]*r[7]+n[7]*r[12]+n[8]*r[17],i[8]=n[5]*r[3]+n[6]*r[8]+n[7]*r[13]+n[8]*r[18],i[9]=n[5]*r[4]+n[6]*r[9]+n[7]*r[14]+n[8]*r[19],i[10]=n[10]*r[0]+n[11]*r[5]+n[12]*r[10]+n[13]*r[15],i[11]=n[10]*r[1]+n[11]*r[6]+n[12]*r[11]+n[13]*r[16],i[12]=n[10]*r[2]+n[11]*r[7]+n[12]*r[12]+n[13]*r[17],i[13]=n[10]*r[3]+n[11]*r[8]+n[12]*r[13]+n[13]*r[18],i[14]=n[10]*r[4]+n[11]*r[9]+n[12]*r[14]+n[13]*r[19],i[15]=n[15]*r[0]+n[16]*r[5]+n[17]*r[10]+n[18]*r[15],i[16]=n[15]*r[1]+n[16]*r[6]+n[17]*r[11]+n[18]*r[16],i[17]=n[15]*r[2]+n[16]*r[7]+n[17]*r[12]+n[18]*r[17],i[18]=n[15]*r[3]+n[16]*r[8]+n[17]*r[13]+n[18]*r[18],i[19]=n[15]*r[4]+n[16]*r[9]+n[17]*r[14]+n[18]*r[19],i},t.prototype._colorMatrix=function(i){var n=new Float32Array(i);return n[4]/=255,n[9]/=255,n[14]/=255,n[19]/=255,n},t.prototype.brightness=function(i,n){var r=[i,0,0,0,0,0,i,0,0,0,0,0,i,0,0,0,0,0,1,0];this._loadMatrix(r,n)},t.prototype.greyscale=function(i,n){var r=[i,i,i,0,0,i,i,i,0,0,i,i,i,0,0,0,0,0,1,0];this._loadMatrix(r,n)},t.prototype.blackAndWhite=function(i){var n=[.3,.6,.1,0,0,.3,.6,.1,0,0,.3,.6,.1,0,0,0,0,0,1,0];this._loadMatrix(n,i)},t.prototype.hue=function(i,n){i=(i||0)/180*Math.PI;var r=Math.cos(i),h=Math.sin(i),p=Math.sqrt,u=1/3,y=p(u),d=r+(1-r)*u,w=u*(1-r)-y*h,g=u*(1-r)+y*h,a=u*(1-r)+y*h,s=r+u*(1-r),v=u*(1-r)-y*h,P=u*(1-r)-y*h,T=u*(1-r)+y*h,C=r+u*(1-r),M=[d,w,g,0,0,a,s,v,0,0,P,T,C,0,0,0,0,0,1,0];this._loadMatrix(M,n)},t.prototype.contrast=function(i,n){var r=(i||0)+1,h=-128*(r-1),p=[r,0,0,0,h,0,r,0,0,h,0,0,r,0,h,0,0,0,1,0];this._loadMatrix(p,n)},t.prototype.saturate=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,n=arguments[1],r=2*i/3+1,h=(r-1)*-.5,p=[r,h,h,0,0,h,r,h,0,0,h,h,r,0,0,0,0,0,1,0];this._loadMatrix(p,n)},t.prototype.desaturate=function(){this.saturate(-1)},t.prototype.negative=function(i){var n=[0,1,1,0,0,1,0,1,0,0,1,1,0,0,0,0,0,0,1,0];this._loadMatrix(n,i)},t.prototype.sepia=function(i){var n=[.393,.7689999,.18899999,0,0,.349,.6859999,.16799999,0,0,.272,.5339999,.13099999,0,0,0,0,0,1,0];this._loadMatrix(n,i)},t.prototype.technicolor=function(i){var n=[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(n,i)},t.prototype.polaroid=function(i){var n=[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(n,i)},t.prototype.toBGR=function(i){var n=[0,0,1,0,0,0,1,0,0,0,1,0,0,0,0,0,0,0,1,0];this._loadMatrix(n,i)},t.prototype.kodachrome=function(i){var n=[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(n,i)},t.prototype.browni=function(i){var n=[.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(n,i)},t.prototype.vintage=function(i){var n=[.6279345635605994,.3202183420819367,-.03965408211312453,0,9.651285835294123,.02578397704808868,.6441188644374771,.03259127616149294,0,7.462829176470591,.0466055556782719,-.0851232987247891,.5241648
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;
}`,`varying vec2 vFilterCoord;
varying vec2 vTextureCoord;
uniform vec2 scale;
uniform sampler2D uSampler;
uniform sampler2D mapSampler;
uniform vec4 filterClamp;
void main(void)
{
vec4 map = texture2D(mapSampler, vFilterCoord);
map -= 0.5;
map.xy *= scale;
gl_FragColor = texture2D(uSampler, clamp(vec2(vTextureCoord.x + map.x, vTextureCoord.y + map.y), filterClamp.xy, filterClamp.zw));
}
`));return h.maskSprite=i,h.maskMatrix=r,h.uniforms.mapSampler=i.texture,h.uniforms.filterMatrix=r.toArray(!0),h.uniforms.scale={x:1,y:1},n!=null||(n=20),h.scale=new f.Point(n,n),h}return b(t,e),t.prototype.apply=function(i,n,r){var h=1/r.destinationFrame.width*(r.size.width/n.size.width);this.uniforms.filterMatrix=i.calculateSpriteMatrix(this.maskMatrix,this.maskSprite),this.uniforms.scale.x=this.scale.x*h,this.uniforms.scale.y=this.scale.y*h,i.applyFilter(this,n,r)},m(t,[{key:"map",get:function(){return this.uniforms.mapSampler},set:function(i){this.uniforms.mapSampler=i}}]),t}(f.Filter));E.default=o},function(B,E,c){"use strict";function O(o){if(o&&o.__esModule)return o;var e={};if(o!=null)for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t]);return e.default=o,e}function x(o,e){if(!(o instanceof e))throw new TypeError("Cannot call a class as a function")}function _(o,e){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||typeof e!="object"&&typeof e!="function"?o:e}function b(o,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(o,e):o.__proto__=e)}E.__esModule=!0;var m=c(1),l=O(m),f=(c(7),function(o){function e(){return x(this,e),_(this,o.call(this,`
attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
uniform mat3 projectionMatrix;
varying vec2 v_rgbNW;
varying vec2 v_rgbNE;
varying vec2 v_rgbSW;
varying vec2 v_rgbSE;
varying vec2 v_rgbM;
uniform vec4 filterArea;
varying vec2 vTextureCoord;
vec2 mapCoord( vec2 coord )
{
coord *= filterArea.xy;
coord += filterArea.zw;
return coord;
}
vec2 unmapCoord( vec2 coord )
{
coord -= filterArea.zw;
coord /= filterArea.xy;
return coord;
}
void texcoords(vec2 fragCoord, vec2 resolution,
out vec2 v_rgbNW, out vec2 v_rgbNE,
out vec2 v_rgbSW, out vec2 v_rgbSE,
out vec2 v_rgbM) {
vec2 inverseVP = 1.0 / resolution.xy;
v_rgbNW = (fragCoord + vec2(-1.0, -1.0)) * inverseVP;
v_rgbNE = (fragCoord + vec2(1.0, -1.0)) * inverseVP;
v_rgbSW = (fragCoord + vec2(-1.0, 1.0)) * inverseVP;
v_rgbSE = (fragCoord + vec2(1.0, 1.0)) * inverseVP;
v_rgbM = vec2(fragCoord * inverseVP);
}
void main(void) {
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
vTextureCoord = aTextureCoord;
vec2 fragCoord = vTextureCoord * filterArea.xy;
texcoords(fragCoord, filterArea.xy, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);
}`,`varying vec2 v_rgbNW;
varying vec2 v_rgbNE;
varying vec2 v_rgbSW;
varying vec2 v_rgbSE;
varying vec2 v_rgbM;
varying vec2 vTextureCoord;
uniform sampler2D uSampler;
uniform vec4 filterArea;
/**
Basic FXAA implementation based on the code on geeks3d.com with the
modification that the texture2DLod stuff was removed since it's
unsupported by WebGL.
--
From:
https://github.com/mitsuhiko/webgl-meincraft
Copyright (c) 2011 by Armin Ronacher.
Some rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are
met:
* Redistributions of source code must retain the above copyright
notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above
copyright notice, this list of conditions and the following
disclaimer in the documentation and/or other materials provided
with the distribution.
* The names of the contributors may not be used to endorse or
promote products derived from this software without specific
prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef FXAA_REDUCE_MIN
#define FXAA_REDUCE_MIN (1.0/ 128.0)
#endif
#ifndef FXAA_REDUCE_MUL
#define FXAA_REDUCE_MUL (1.0 / 8.0)
#endif
#ifndef FXAA_SPAN_MAX
#define FXAA_SPAN_MAX 8.0
#endif
//optimized version for mobile, where dependent
//texture reads can be a bottleneck
vec4 fxaa(sampler2D tex, vec2 fragCoord, vec2 resolution,
vec2 v_rgbNW, vec2 v_rgbNE,
vec2 v_rgbSW, vec2 v_rgbSE,
vec2 v_rgbM) {
vec4 color;
mediump vec2 inverseVP = vec2(1.0 / resolution.x, 1.0 / resolution.y);
vec3 rgbNW = texture2D(tex, v_rgbNW).xyz;
vec3 rgbNE = texture2D(tex, v_rgbNE).xyz;
vec3 rgbSW = texture2D(tex, v_rgbSW).xyz;
vec3 rgbSE = texture2D(tex, v_rgbSE).xyz;
vec4 texColor = texture2D(tex, v_rgbM);
vec3 rgbM = texColor.xyz;
vec3 luma = vec3(0.299, 0.587, 0.114);
float lumaNW = dot(rgbNW, luma);
float lumaNE = dot(rgbNE, luma);
float lumaSW = dot(rgbSW, luma);
float lumaSE = dot(rgbSE, luma);
float lumaM = dot(rgbM, luma);
float lumaMin = min(lumaM, min(min(lumaNW, lumaNE), min(lumaSW, lumaSE)));
float lumaMax = max(lumaM, max(max(lumaNW, lumaNE), max(lumaSW, lumaSE)));
mediump vec2 dir;
dir.x = -((lumaNW + lumaNE) - (lumaSW + lumaSE));
dir.y = ((lumaNW + lumaSW) - (lumaNE + lumaSE));
float dirReduce = max((lumaNW + lumaNE + lumaSW + lumaSE) *
(0.25 * FXAA_REDUCE_MUL), FXAA_REDUCE_MIN);
float rcpDirMin = 1.0 / (min(abs(dir.x), abs(dir.y)) + dirReduce);
dir = min(vec2(FXAA_SPAN_MAX, FXAA_SPAN_MAX),
max(vec2(-FXAA_SPAN_MAX, -FXAA_SPAN_MAX),
dir * rcpDirMin)) * inverseVP;
vec3 rgbA = 0.5 * (
texture2D(tex, fragCoord * inverseVP + dir * (1.0 / 3.0 - 0.5)).xyz +
texture2D(tex, fragCoord * inverseVP + dir * (2.0 / 3.0 - 0.5)).xyz);
vec3 rgbB = rgbA * 0.5 + 0.25 * (
texture2D(tex, fragCoord * inverseVP + dir * -0.5).xyz +
texture2D(tex, fragCoord * inverseVP + dir * 0.5).xyz);
float lumaB = dot(rgbB, luma);
if ((lumaB < lumaMin) || (lumaB > lumaMax))
color = vec4(rgbA, texColor.a);
else
color = vec4(rgbB, texColor.a);
return color;
}
void main() {
vec2 fragCoord = vTextureCoord * filterArea.xy;
vec4 color;
color = fxaa(uSampler, fragCoord, filterArea.xy, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);
gl_FragColor = color;
}
`))}return b(e,o),e}(l.Filter));E.default=f},function(B,E,c){"use strict";function O(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}function x(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||typeof t!="object"&&typeof t!="function"?e:t}function b(e,t){if(typeof t!="function"&&t!==null)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)}E.__esModule=!0;var m=function(){function e(t,i){for(var n=0;n<i.length;n++){var r=i[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}}(),l=c(1),f=O(l),o=(c(7),function(e){function t(){x(this,t);var i=_(this,e.call(this,`attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
uniform mat3 projectionMatrix;
varying vec2 vTextureCoord;
void main(void)
{
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
vTextureCoord = aTextureCoord;
}`,`precision highp float;
varying vec2 vTextureCoord;
varying vec4 vColor;
uniform float noise;
uniform sampler2D uSampler;
float rand(vec2 co)
{
return fract(sin(dot(co.xy, vec2(12.9898, 78.233))) * 43758.5453);
}
void main()
{
vec4 color = texture2D(uSampler, vTextureCoord);
float diff = (rand(gl_FragCoord.xy) - 0.5) * noise;
color.r += diff;
color.g += diff;
color.b += diff;
gl_FragColor = color;
}
`));return i.noise=.5,i}return b(t,e),m(t,[{key:"noise",get:function(){return this.uniforms.noise},set:function(i){this.uniforms.noise=i}}]),t}(f.Filter));E.default=o},function(B,E,c){"use strict";function O(o){if(o&&o.__esModule)return o;var e={};if(o!=null)for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t]);return e.default=o,e}function x(o,e){if(!(o instanceof e))throw new TypeError("Cannot call a class as a function")}function _(o,e){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||typeof e!="object"&&typeof e!="function"?o:e}function b(o,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(o,e):o.__proto__=e)}E.__esModule=!0;var m=c(1),l=O(m),f=(c(7),function(o){function e(){x(this,e);var t=_(this,o.call(this,`attribute vec2 aVertexPosition;
attribute vec2 aTextureCoord;
uniform mat3 projectionMatrix;
varying vec2 vTextureCoord;
void main(void)
{
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
vTextureCoord = aTextureCoord;
}`,`varying vec2 vTextureCoord;
uniform sampler2D uSampler;
void main(void)
{
gl_FragColor = texture2D(uSampler, vTextureCoord);
}
`));return t.glShaderKey="void",t}return b(e,o),e}(l.Filter));E.default=f},function(B,E){"use strict";function c(x,_){if(!(x instanceof _))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var O=function(){function x(){c(this,x),this.stopped=!1,this.target=null,this.currentTarget=null,this.type=null,this.data=null}return x.prototype.stopPropagation=function(){this.stopped=!0},x.prototype._reset=function(){this.stopped=!1,this.currentTarget=null,this.target=null},x}();E.default=O},function(B,E,c){"use strict";function O(w){return w&&w.__esModule?w:{default:w}}function x(w){if(w&&w.__esModule)return w;var g={};if(w!=null)for(var a in w)Object.prototype.hasOwnProperty.call(w,a)&&(g[a]=w[a]);return g.default=w,g}function _(w,g){if(!(w instanceof g))throw new TypeError("Cannot call a class as a function")}function b(w,g){if(!w)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!g||typeof g!="object"&&typeof g!="function"?w:g}function m(w,g){if(typeof g!="function"&&g!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof g);w.prototype=Object.create(g&&g.prototype,{constructor:{value:w,enumerable:!1,writable:!0,configurable:!0}}),g&&(Object.setPrototypeOf?Object.setPrototypeOf(w,g):w.__proto__=g)}E.__esModule=!0;var l=c(1),f=x(l),o=c(117),e=O(o),t=c(238),i=O(t),n=c(10),r=O(n),h=c(118),p=O(h),u=c(28),y=O(u);Object.assign(f.DisplayObject.prototype,p.default);var d=function(w){function g(a,s){_(this,g);var v=b(this,w.call(this));return s=s||{},v.renderer=a,v.autoPreventDefault=s.autoPreventDefault===void 0||s.autoPreventDefault,v.interactionFrequency=s.interactionFrequency||10,v.mouse=new e.default,v.mouse.global.set(-999999),v.pointer=new e.default,v.pointer.global.set(-999999),v.eventData=new i.default,v.interactiveDataPool=[],v.interactionDOMElement=null,v.moveWhenInside=!1,v.eventsAdded=!1,v.mouseOverRenderer=!1,v.supportsTouchEvents="ontouchstart"in window,v.supportsPointerEvents=!!window.PointerEvent,v.normalizeTouchEvents=!v.supportsPointerEvents&&v.supportsTouchEvents,v.normalizeMouseEvents=!v.supportsPointerEvents&&!y.default.any,v.onMouseUp=v.onMouseUp.bind(v),v.processMouseUp=v.processMouseUp.bind(v),v.onMouseDown=v.onMouseDown.bind(v),v.processMouseDown=v.processMouseDown.bind(v),v.onMouseMove=v.onMouseMove.bind(v),v.processMouseMove=v.processMouseMove.bind(v),v.onMouseOut=v.onMouseOut.bind(v),v.processMouseOverOut=v.processMouseOverOut.bind(v),v.onMouseOver=v.onMouseOver.bind(v),v.onPointerUp=v.onPointerUp.bind(v),v.processPointerUp=v.processPointerUp.bind(v),v.onPointerDown=v.onPointerDown.bind(v),v.processPointerDown=v.processPointerDown.bind(v),v.onPointerMove=v.onPointerMove.bind(v),v.processPointerMove=v.processPointerMove.bind(v),v.onPointerOut=v.onPointerOut.bind(v),v.processPointerOverOut=v.processPointerOverOut.bind(v),v.onPointerOver=v.onPointerOver.bind(v),v.onTouchStart=v.onTouchStart.bind(v),v.processTouchStart=v.processTouchStart.bind(v),v.onTouchEnd=v.onTouchEnd.bind(v),v.processTouchEnd=v.processTouchEnd.bind(v),v.onTouchMove=v.onTouchMove.bind(v),v.processTouchMove=v.processTouchMove.bind(v),v.defaultCursorStyle="inherit",v.currentCursorStyle="inherit",v._tempPoint=new f.Point,v.resolution=1,v.setTargetElement(v.renderer.view,v.renderer.resolution),v}return m(g,w),g.prototype.setTargetElement=function(a){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.removeEvents(),this.interactionDOMElement=a,this.resolution=s,this.addEvents()},g.prototype.addEvents=function(){this.interactionDOMElement&&(f.ticker.shared.add(this.update,this),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.addEvent
attribute vec2 aTextureCoord;
uniform mat3 translationMatrix;
uniform mat3 projectionMatrix;
varying vec2 vTextureCoord;
void main(void)
{
gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
vTextureCoord = aTextureCoord;
}
`,`varying vec2 vTextureCoord;
uniform float alpha;
uniform vec3 tint;
uniform sampler2D uSampler;
void main(void)
{
gl_FragColor = texture2D(uSampler, vTextureCoord) * vec4(tint * alpha, alpha);
}
`)},h.prototype.render=function(p){var u=this.renderer,y=u.gl,d=p._texture;if(d.valid){var w=p._glDatas[u.CONTEXT_UID];w||(u.bindVao(null),w={shader:this.shader,vertexBuffer:e.default.GLBuffer.createVertexBuffer(y,p.vertices,y.STREAM_DRAW),uvBuffer:e.default.GLBuffer.createVertexBuffer(y,p.uvs,y.STREAM_DRAW),indexBuffer:e.default.GLBuffer.createIndexBuffer(y,p.indices,y.STATIC_DRAW),vao:null,dirty:p.dirty,indexDirty:p.indexDirty},w.vao=new e.default.VertexArrayObject(y).addIndex(w.indexBuffer).addAttribute(w.vertexBuffer,w.shader.attributes.aVertexPosition,y.FLOAT,!1,8,0).addAttribute(w.uvBuffer,w.shader.attributes.aTextureCoord,y.FLOAT,!1,8,0),p._glDatas[u.CONTEXT_UID]=w),p.dirty!==w.dirty&&(w.dirty=p.dirty,w.uvBuffer.upload(p.uvs)),p.indexDirty!==w.indexDirty&&(w.indexDirty=p.indexDirty,w.indexBuffer.upload(p.indices)),w.vertexBuffer.upload(p.vertices),u.bindShader(w.shader),w.shader.uniforms.uSampler=u.bindTexture(d),u.state.setBlendMode(p.blendMode),w.shader.uniforms.translationMatrix=p.worldTransform.toArray(!0),w.shader.uniforms.alpha=p.worldAlpha,w.shader.uniforms.tint=p.tintRgb;var g=p.drawMode===i.default.DRAW_MODES.TRIANGLE_MESH?y.TRIANGLE_STRIP:y.TRIANGLES;u.bindVao(w.vao),w.vao.draw(g,p.indices.length,0)}},h}(f.ObjectRenderer));E.default=n,f.WebGLRenderer.registerPlugin("mesh",n)},function(B,E,c){"use strict";function O(o){if(o&&o.__esModule)return o;var e={};if(o!=null)for(var t in o)Object.prototype.hasOwnProperty.call(o,t)&&(e[t]=o[t]);return e.default=o,e}function x(o,e){if(!(o instanceof e))throw new TypeError("Cannot call a class as a function")}function _(o,e){if(!o)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||typeof e!="object"&&typeof e!="function"?o:e}function b(o,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof e);o.prototype=Object.create(e&&e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(o,e):o.__proto__=e)}E.__esModule=!0;var m=c(1),l=O(m),f=function(o){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1500,i=arguments[1],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:16384;x(this,e);var r=_(this,o.call(this)),h=16384;return n>h&&(n=h),n>t&&(n=t),r._properties=[!1,!0,!1,!1,!1],r._maxSize=t,r._batchSize=n,r._glBuffers={},r._bufferToUpdate=0,r.interactiveChildren=!1,r.blendMode=l.BLEND_MODES.NORMAL,r.roundPixels=!0,r.baseTexture=null,r.setProperties(i),r}return b(e,o),e.prototype.setProperties=function(t){t&&(this._properties[0]="scale"in t?!!t.scale:this._properties[0],this._properties[1]="position"in t?!!t.position:this._properties[1],this._properties[2]="rotation"in t?!!t.rotation:this._properties[2],this._properties[3]="uvs"in t?!!t.uvs:this._properties[3],this._properties[4]="alpha"in t?!!t.alpha:this._properties[4])},e.prototype.updateTransform=function(){this.displayObjectUpdateTransform()},e.prototype.renderWebGL=function(t){var i=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 i.onChildrenChange(0)})),t.setObjectRenderer(t.plugins.particle),t.plugins.particle.render(this))},e.prototype.onChildrenChange=function(t){var i=Math.floor(t/this._batchSize);i<this._bufferToUpdate&&(this._bufferToUpdate=i)},e.prototype.renderCanvas=function(t){if(this.visible&&!(this.worldAlpha<=0)&&this.children.length&&this.renderable){var i=t.context,n=this.worldTransform,r=!0,h=0,p=0,u=0,y=0,d=t.blendModes[this.blendMode];d!==i.globalCompositeOperation&&(i.globalCompositeOperation=d),i.globalAlpha=this.worldAlpha,this.displayObjectUpdateTransform();for(var w=0;w<this.children.length;++w){var g=this.children[w];if(g.visible){var a=g._texture.frame;if(i.globalAlpha=this.worldAlpha*g.alpha,g.rotation%(2*Math.PI)==0)r&&(i.setTransform(n.a,n.b,n.c,n.d,n.tx*t.resolution,n.ty*t.resolution),r=!1),h=g.a
`),["varying vec2 vTextureCoord;","varying float vColor;","uniform sampler2D uSampler;","uniform float uAlpha;","void main(void){"," vec4 color = texture2D(uSampler, vTextureCoord) * vColor * uAlpha;"," if (color.a == 0.0) discard;"," gl_FragColor = color;","}"].join(`
`)))}return b(e,o),e}(l.default);E.default=f},function(B,E){"use strict";Math.sign||(Math.sign=function(c){return c=Number(c),c===0||isNaN(c)?c:c>0?1:-1})},function(B,E,c){"use strict";function O(b){return b&&b.__esModule?b:{default:b}}var x=c(180),_=O(x);Object.assign||(Object.assign=_.default)},function(B,E,c){"use strict";c(251),c(253),c(250),window.ArrayBuffer||(window.ArrayBuffer=Array),window.Float32Array||(window.Float32Array=Array),window.Uint32Array||(window.Uint32Array=Array),window.Uint16Array||(window.Uint16Array=Array)},function(B,E){(function(c){"use strict";var O=16;Date.now&&Date.prototype.getTime||(Date.now=function(){return new Date().getTime()}),c.performance&&c.performance.now||function(){var l=Date.now();c.performance||(c.performance={}),c.performance.now=function(){return Date.now()-l}}();for(var x=Date.now(),_=["ms","moz","webkit","o"],b=0;b<_.length&&!c.requestAnimationFrame;++b){var m=_[b];c.requestAnimationFrame=c[m+"RequestAnimationFrame"],c.cancelAnimationFrame=c[m+"CancelAnimationFrame"]||c[m+"CancelRequestAnimationFrame"]}c.requestAnimationFrame||(c.requestAnimationFrame=function(l){if(typeof l!="function")throw new TypeError(l+"is not a function");var f=Date.now(),o=O+x-f;return o<0&&(o=0),x=f,setTimeout(function(){x=Date.now(),l(performance.now())},o)}),c.cancelAnimationFrame||(c.cancelAnimationFrame=function(l){return clearTimeout(l)})}).call(E,function(){return this}())},function(B,E,c){"use strict";function O(h){return h&&h.__esModule?h:{default:h}}function x(h){if(h&&h.__esModule)return h;var p={};if(h!=null)for(var u in h)Object.prototype.hasOwnProperty.call(h,u)&&(p[u]=h[u]);return p.default=h,p}function _(h,p){if(!(h instanceof p))throw new TypeError("Cannot call a class as a function")}function b(h,p){if(!h)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!p||typeof p!="object"&&typeof p!="function"?h:p}function m(h,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof p);h.prototype=Object.create(p&&p.prototype,{constructor:{value:h,enumerable:!1,writable:!0,configurable:!0}}),p&&(Object.setPrototypeOf?Object.setPrototypeOf(h,p):h.__proto__=p)}function l(h,p){if(p instanceof e.BaseTexture){var u=p.source,y=u.width===0?h.canvas.width:Math.min(h.canvas.width,u.width),d=u.height===0?h.canvas.height:Math.min(h.canvas.height,u.height);return h.ctx.drawImage(u,0,0,y,d,0,0,h.canvas.width,h.canvas.height),!0}return!1}function f(h,p){if(h instanceof e.BaseTexture)return p.indexOf(h)===-1&&p.push(h),!0;if(h._texture&&h._texture instanceof e.Texture){var u=h._texture.baseTexture;return p.indexOf(u)===-1&&p.push(u),!0}return!1}E.__esModule=!0;var o=c(1),e=x(o),t=c(68),i=O(t),n=16,r=function(h){function p(u){_(this,p);var y=b(this,h.call(this,u));return y.uploadHookHelper=y,y.canvas=document.createElement("canvas"),y.canvas.width=n,y.canvas.height=n,y.ctx=y.canvas.getContext("2d"),y.register(f,l),y}return m(p,h),p.prototype.destroy=function(){h.prototype.destroy.call(this),this.ctx=null,this.canvas=null},p}(i.default);E.default=r,e.CanvasRenderer.registerPlugin("prepare",r)},function(B,E){"use strict";function c(x,_){if(!(x instanceof _))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var O=function(){function x(_){c(this,x),this.maxMilliseconds=_,this.frameStart=0}return x.prototype.beginFrame=function(){this.frameStart=Date.now()},x.prototype.allowedToUpload=function(){return Date.now()-this.frameStart<this.maxMilliseconds},x}();E.default=O},function(B,E,c){"use strict";function O(p){return p&&p.__esModule?p:{default:p}}function x(p){if(p&&p.__esModule)return p;var u={};if(p!=null)for(var y in p)Object.prototype.hasOwnProperty.call(p,y)&&(u[y]=p[y]);return u.default=p,u}function _(p,u){if(!(p instanceof u))throw new TypeError("Cannot call a class as a function")}function b(p,u){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!u||typeof u!="object"&&typeof u!="function"?p:u}function m(p,u){if(typeof u!="func