508 lines
514 KiB
JavaScript
508 lines
514 KiB
JavaScript
(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.CanvasRenderTarget=E.TextureUvs=E.VideoBaseTexture=E.BaseRenderTexture=E.RenderTexture=E.BaseTexture=E.Texture=E.CanvasGraphicsRenderer=E.GraphicsRenderer=E.GraphicsData=E.Graphics=E.TextStyle=E.Text=E.SpriteRenderer=E.CanvasTinter=E.CanvasSpriteRenderer=E.Sprite=E.TransformBase=E.TransformStatic=E.Transform=E.Container=E.DisplayObject=E.Bounds=E.glCore=E.WebGLRenderer=E.CanvasRenderer=E.ticker=E.utils=E.settings=void 0;var b=c(2);Object.keys(b).forEach(function(Tt){Tt!=="default"&&Tt!=="__esModule"&&Object.defineProperty(E,Tt,{enumerable:!0,get:function(){return b[Tt]}})});var m=c(4);Object.keys(m).forEach(function(Tt){Tt!=="default"&&Tt!=="__esModule"&&Object.defineProperty(E,Tt,{enumerable:!0,get:function(){return m[Tt]}})});var l=c(6);Object.defineProperty(E,"glCore",{enumerable:!0,get:function(){return x(l).default}});var f=c(57);Object.defineProperty(E,"Bounds",{enumerable:!0,get:function(){return x(f).default}});var o=c(93);Object.defineProperty(E,"DisplayObject",{enumerable:!0,get:function(){return x(o).default}});var e=c(34);Object.defineProperty(E,"Container",{enumerable:!0,get:function(){return x(e).default}});var t=c(94);Object.defineProperty(E,"Transform",{enumerable:!0,get:function(){return x(t).default}});var i=c(95);Object.defineProperty(E,"TransformStatic",{enumerable:!0,get:function(){return x(i).default}});var n=c(58);Object.defineProperty(E,"TransformBase",{enumerable:!0,get:function(){return x(n).default}});var r=c(63);Object.defineProperty(E,"Sprite",{enumerable:!0,get:function(){return x(r).default}});var h=c(211);Object.defineProperty(E,"CanvasSpriteRenderer",{enumerable:!0,get:function(){return x(h).default}});var p=c(64);Object.defineProperty(E,"CanvasTinter",{enumerable:!0,get:function(){return x(p).default}});var u=c(213);Object.defineProperty(E,"SpriteRenderer",{enumerable:!0,get:function(){return x(u).default}});var y=c(215);Object.defineProperty(E,"Text",{enumerable:!0,get:function(){return x(y).default}});var d=c(105);Object.defineProperty(E,"TextStyle",{enumerable:!0,get:function(){return x(d).default}});var w=c(183);Object.defineProperty(E,"Graphics",{enumerable:!0,get:function(){return x(w).default}});var g=c(96);Object.defineProperty(E,"GraphicsData",{enumerable:!0,get:function(){return x(g).default}});var a=c(186);Object.defineProperty(E,"GraphicsRenderer",{enumerable:!0,get:function(){return x(a).default}});var s=c(184);Object.defineProperty(E,"CanvasGraphicsRenderer",{enumerable:!0,get:function(){return x(s).default}});var v=c(26);Object.defineProperty(E,"Texture",{enumerable:!0,get:function(){return x(v).default}});var P=c(25);Object.defineProperty(E,"BaseTexture",{enumerable:!0,get:function(){return x(P).default}});var T=c(65);Object.defineProperty(E,"RenderTexture",{enumerable:!0,get:function(){return x(T).default}});var C=c(106);Object.defineProperty(E,"BaseRenderTexture",{enumerable:!0,get:function(){return x(C).default}});var M=c(108);Object.defineProperty(E,"VideoBaseTexture",{enumerable:!0,get:function(){return x(M).default}});var R=c(107);Object.defineProperty(E,"TextureUvs",{enumerable:!0,get:function(){return x(R).default}});var S=c(100);Object.defineProperty(E,"CanvasRenderTarget",{enumerable:!0,get:function(){return x(S).default}});var L=c(23);Object.defineProperty(E,"Shader",{enumerable:!0,get:function(){return x(L).default}});var A=c(24);Object.defineProperty(E,"WebGLManager",{enumerable:!0,get:function(){return x(A).default}});var D=c(37);Object.defineProperty(E,"ObjectRenderer",{enumerable:!0,get:function(){return x(D).default}});var I=c(38);Object.defineProperty(E,"RenderTarget",{enumerable:!0,get:function(){return x(I).default}});var U=c(104);Object.defineProperty(E,"Quad",{enumerable:!0,get:function(){return x(U).default}});var N=c(103);Object.defineProperty(E,"SpriteMaskFilter",{enumerable:!0,get:function(){return x(N).default}});var W=c(102);Object.defineProperty(E,"Filter",{enumerable:!0,get:function(){return x(W).default}}),E.autoDetectRenderer=_;var H=c(3),tt=O(H),it=c(109),K=O(it),at=c(5),ut=x(at),mt=c(36),wt=x(mt),Dt=c(62),yt=x(Dt);E.settings=ut.default,E.utils=tt,E.ticker=K,E.CanvasRenderer=wt.default,E.WebGLRenderer=yt.default},function(B,E){"use strict";E.__esModule=!0,E.VERSION="4.3.2",E.PI_2=2*Math.PI,E.RAD_TO_DEG=180/Math.PI,E.DEG_TO_RAD=Math.PI/180,E.RENDERER_TYPE={UNKNOWN:0,WEBGL:1,CANVAS:2},E.BLEND_MODES={NORMAL:0,ADD:1,MULTIPLY:2,SCREEN:3,OVERLAY:4,DARKEN:5,LIGHTEN:6,COLOR_DODGE:7,COLOR_BURN:8,HARD_LIGHT:9,SOFT_LIGHT:10,DIFFERENCE:11,EXCLUSION:12,HUE:13,SATURATION:14,COLOR:15,LUMINOSITY:16},E.DRAW_MODES={POINTS:0,LINES:1,LINE_LOOP:2,LINE_STRIP:3,TRIANGLES:4,TRIANGLE_STRIP:5,TRIANGLE_FAN:6},E.SCALE_MODES={LINEAR:0,NEAREST:1},E.WRAP_MODES={CLAMP:0,REPEAT:1,MIRRORED_REPEAT:2},E.GC_MODES={AUTO:0,MANUAL:1},E.URL_FILE_EXTENSION=/\.(\w{3,4})(?:$|\?|#)/i,E.DATA_URI=/^\s*data:(?:([\w-]+)\/([\w+.-]+))?(?:;(charset=[\w-]+|base64))?,(.*)/i,E.SVG_SIZE=/<svg[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i,E.SHAPES={POLY:0,RECT:1,CIRC:2,ELIP:3,RREC:4},E.PRECISION={LOW:"lowp",MEDIUM:"mediump",HIGH:"highp"},E.TRANSFORM_MODE={STATIC:0,DYNAMIC:1},E.TEXT_GRADIENT={LINEAR_VERTICAL:0,LINEAR_HORIZONTAL:1}},function(B,E,c){"use strict";function O(M){if(M&&M.__esModule)return M;var R={};if(M!=null)for(var S in M)Object.prototype.hasOwnProperty.call(M,S)&&(R[S]=M[S]);return R.default=M,R}function x(M){return M&&M.__esModule?M:{default:M}}function _(){return++T}function b(M,R){return R=R||[],R[0]=(M>>16&255)/255,R[1]=(M>>8&255)/255,R[2]=(255&M)/255,R}function m(M){return M=M.toString(16),M="000000".substr(0,6-M.length)+M,"#"+M}function l(M){return(255*M[0]<<16)+(255*M[1]<<8)+255*M[2]}function f(M,R){var S=d.default.RETINA_PREFIX.exec(M);return S?parseFloat(S[1]):R!==void 0?R:1}function o(M){var R=u.DATA_URI.exec(M);if(R)return{mediaType:R[1]?R[1].toLowerCase():void 0,subType:R[2]?R[2].toLowerCase():void 0,encoding:R[3]?R[3].toLowerCase():void 0,data:R[4]}}function e(M){var R=u.URL_FILE_EXTENSION.exec(M);if(R)return R[1].toLowerCase()}function t(M){var R=u.SVG_SIZE.exec(M),S={};return R&&(S[R[1]]=Math.round(parseFloat(R[3])),S[R[5]]=Math.round(parseFloat(R[7]))),S}function i(){C=!0}function n(M){if(!C){if(navigator.userAgent.toLowerCase().indexOf("chrome")>-1)var R=[`
|
|
%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){var o=E.isAbsolute(f),e=l(f,-1)==="/";return f=x(_(f.split("/"),function(t){return!!t}),!o).join("/"),f||o||(f="."),f&&e&&(f+="/"),(o?"/":"")+f},E.isAbsolute=function(f){return f.charAt(0)==="/"},E.join=function(){var f=Array.prototype.slice.call(arguments,0);return E.normalize(_(f,function(o,e){if(typeof o!="string")throw new TypeError("Arguments to path.join must be strings");return o}).join("/"))},E.relative=function(f,o){function e(u){for(var y=0;y<u.length&&u[y]==="";y++);for(var d=u.length-1;d>=0&&u[d]==="";d--);return y>d?[]:u.slice(y,d-y+1)}f=E.resolve(f).substr(1),o=E.resolve(o).substr(1);for(var t=e(f.split("/")),i=e(o.split("/")),n=Math.min(t.length,i.length),r=n,h=0;h<n;h++)if(t[h]!==i[h]){r=h;break}for(var p=[],h=r;h<t.length;h++)p.push("..");return p=p.concat(i.slice(r)),p.join("/")},E.sep="/",E.delimiter=":",E.dirname=function(f){var o=m(f),e=o[0],t=o[1];return e||t?(t&&(t=t.substr(0,t.length-1)),e+t):"."},E.basename=function(f,o){var e=m(f)[2];return o&&e.substr(-1*o.length)===o&&(e=e.substr(0,e.length-o.length)),e},E.extname=function(f){return m(f)[3]};var l="ab".substr(-1)==="b"?function(f,o,e){return f.substr(o,e)}:function(f,o,e){return o<0&&(o=f.length+o),f.substr(o,e)}}).call(E,c(132))},function(B,E){"use strict";E.__esModule=!0,E.default=function(c,O){if(!(c instanceof O))throw new TypeError("Cannot call a class as a function")}},function(B,E,c){var O,x;(function(_){/*!
|
|
* 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.getRatio(this._time===0?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==D&&g>=0&&(this._active=!0),I===0&&(this._initted===2&&g>0&&this._init(),this._startAt&&(g>=0?this._startAt.render(g,a,s):P||(P="_dummyGS")),this.vars.onStart&&(this._totalTime===0&&N!==0||a||this._callback("onStart"))),T=this._firstPT;T;)T.f?T.t[T.p](T.c*this.ratio+T.s):T.t[T.p]=T.c*this.ratio+T.s,T=T._next;this._onUpdate&&(g<0&&this._startAt&&this._startTime&&this._startAt.render(g,a,s),a||(this._totalTime!==I||P)&&this._callback("onUpdate")),this._cycle!==U&&(a||this._gc||this.vars.onRepeat&&this._callback("onRepeat")),P&&(this._gc&&!s||(g<0&&this._startAt&&!this._onUpdate&&this._startTime&&this._startAt.render(g,a,s),v&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!a&&this.vars[P]&&this._callback(P),N===0&&this._rawPrevTime===i&&L!==i&&(this._rawPrevTime=0)))},t.to=function(g,a,s){return new t(g,a,s)},t.from=function(g,a,s){return s.runBackwards=!0,s.immediateRender=s.immediateRender!=0,new t(g,a,s)},t.fromTo=function(g,a,s,v){return v.startAt=s,v.immediateRender=v.immediateRender!=0&&s.immediateRender!=0,new t(g,a,v)},t.staggerTo=t.allTo=function(g,a,s,v,P,T,C){v=v||0;var M,R,S,L,A=0,D=[],I=function(){s.onComplete&&s.onComplete.apply(s.onCompleteScope||this,arguments),P.apply(C||s.callbackScope||this,T||u)},U=s.cycle,N=s.startAt&&s.startAt.cycle;for(h(g)||(typeof g=="string"&&(g=f.selector(g)||g),r(g)&&(g=o(g))),g=g||[],v<0&&(g=o(g),g.reverse(),v*=-1),M=g.length-1,S=0;S<=M;S++){R={};for(L in s)R[L]=s[L];if(U&&(e(R,g,S),R.duration!=null&&(a=R.duration,delete R.duration)),N){N=R.startAt={};for(L in s.startAt)N[L]=s.startAt[L];e(R.startAt,g,S)}R.delay=A+(R.delay||0),S===M&&P&&(R.onComplete=I),D[S]=new t(g[S],a,R),A+=v}return D},t.staggerFrom=t.allFrom=function(g,a,s,v,P,T,C){return s.runBackwards=!0,s.immediateRender=s.immediateRender!=0,t.staggerTo(g,a,s,v,P,T,C)},t.staggerFromTo=t.allFromTo=function(g,a,s,v,P,T,C,M){return v.startAt=s,v.immediateRender=v.immediateRender!=0&&s.immediateRender!=0,t.staggerTo(g,a,v,P,T,C,M)},t.delayedCall=function(g,a,s,v,P){return new t(a,0,{delay:g,onComplete:a,onCompleteParams:s,callbackScope:v,onReverseComplete:a,onReverseCompleteParams:s,immediateRender:!1,useFrames:P,overwrite:0})},t.set=function(g,a){return new t(g,0,a)},t.isTweening=function(g){return f.getTweensOf(g,!0).length>0};var y=function(g,a){for(var s=[],v=0,P=g._first;P;)P instanceof f?s[v++]=P:(a&&(s[v++]=P),s=s.concat(y(P,a)),v=s.length),P=P._next;return s},d=t.getAllTweens=function(g){return y(m._rootTimeline,g).concat(y(m._rootFramesTimeline,g))};t.killAll=function(g,a,s,v){a==null&&(a=!0),s==null&&(s=!0);var P,T,C,M=d(v!=0),R=M.length,S=a&&s&&v;for(C=0;C<R;C++)T=M[C],(S||T instanceof l||(P=T.target===T.vars.onComplete)&&s||a&&!P)&&(g?T.totalTime(T._reversed?0:T.totalDuration()):T._enabled(!1,!1))},t.killChildTweensOf=function(g,a){if(g!=null){var s,v,P,T,C,M=n.tweenLookup;if(typeof g=="string"&&(g=f.selector(g)||g),r(g)&&(g=o(g)),h(g))for(T=g.length;--T>-1;)t.killChildTweensOf(g[T],a);else{s=[];for(P in M)for(v=M[P].target.parentNode;v;)v===g&&(s=s.concat(M[P].tweens)),v=v.parentNode;for(C=s.length,T=0;T<C;T++)a&&s[T].totalTime(s[T].totalDuration()),s[T]._enabled(!1,!1)}}};var w=function(g,a,s,v){a=a!==!1,s=s!==!1,v=v!==!1;for(var P,T,C=d(v),M=a&&s&&v,R=C.length;--R>-1;)T=C[R],(M||T instanceof l||(P=T.target===T.vars.onComplete)&&s||a&&!P)&&T.paused(g)};return t.pauseAll=function(g,a,s){w(!0,g,a,s)},t.resumeAll=function(g,a,s){w(!1,g,a,s)},t.globalTimeScale=function(g){var a=m._rootTimeline,s=f.ticker.time;return arguments.length?(g=g||i,a._startTime=s-(s-a._startTime)*a._timeScale/g,a=m._rootFramesTimeline,s=f.ticker.frame,a._startTime=s-(s-a._startTime)*a._timeScale/g,a._timeScale=m._rootTimeline._timeScale=g,g):a._timeScale},p.progress=function(g,a){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&(1&this._cycle)!=0?1-g:g)+this._cycle*(this._duration+this._repeatDelay),a):this._time/this.duration()},p.totalProgress=function(g,a){return arguments.length?this.totalTime(this.totalDuration()*g,a):this._totalTime/this.totalDuration()},p.time=function(g,a){return arguments.length?(this._dirty&&this.totalDuration(),g>this._duration&&(g=this._duration),this._yoyo&&(1&this._cycle)!=0?g=this._duration-g+this._cycle*(this._duration+this._repeatDelay):this._repeat!==0&&(g+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(g,a)):this._time},p.duration=function(g){return arguments.length?m.prototype.duration.call(this,g):this._duration},p.totalDuration=function(g){return arguments.length?this._repeat===-1?this:this.duration((g-this._repeat*this._repeatDelay)/(this._repeat+1)):(this._dirty&&(this._totalDuration=this._repeat===-1?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat,this._dirty=!1),this._totalDuration)},p.repeat=function(g){return arguments.length?(this._repeat=g,this._uncache(!0)):this._repeat},p.repeatDelay=function(g){return arguments.length?(this._repeatDelay=g,this._uncache(!0)):this._repeatDelay},p.yoyo=function(g){return arguments.length?(this._yoyo=g,this):this._yoyo},t},!0),b._gsDefine("TimelineLite",["core.Animation","core.SimpleTimeline","TweenLite"],function(m,l,f){var o=function(s){l.call(this,s),this._labels={},this.autoRemoveChildren=this.vars.autoRemoveChildren===!0,this.smoothChildTiming=this.vars.smoothChildTiming===!0,this._sortChildren=!0,this._onUpdate=this.vars.onUpdate;var v,P,T=this.vars;for(P in T)v=T[P],r(v)&&v.join("").indexOf("{self}")!==-1&&(T[P]=this._swapSelfInParams(v));r(T.tweens)&&this.add(T.tweens,0,T.align,T.stagger)},e=1e-10,t=f._internals,i=o._internals={},n=t.isSelector,r=t.isArray,h=t.lazyTweens,p=t.lazyRender,u=b._gsDefine.globals,y=function(s){var v,P={};for(v in s)P[v]=s[v];return P},d=function(s,v,P){var T,C,M=s.cycle;for(T in M)C=M[T],s[T]=typeof C=="function"?C.call(v[P],P):C[P%C.length];delete s.cycle},w=i.pauseCallback=function(){},g=function(s){var v,P=[],T=s.length;for(v=0;v!==T;P.push(s[v++]));return P},a=o.prototype=new l;return o.version="1.19.0",a.constructor=o,a.kill()._gc=a._forcingPlayhead=a._hasPause=!1,a.to=function(s,v,P,T){var C=P.repeat&&u.TweenMax||f;return v?this.add(new C(s,v,P),T):this.set(s,P,T)},a.from=function(s,v,P,T){return this.add((P.repeat&&u.TweenMax||f).from(s,v,P),T)},a.fromTo=function(s,v,P,T,C){var M=T.repeat&&u.TweenMax||f;return v?this.add(M.fromTo(s,v,P,T),C):this.set(s,T,C)},a.staggerTo=function(s,v,P,T,C,M,R,S){var L,A,D=new o({onComplete:M,onCompleteParams:R,callbackScope:S,smoothChildTiming:this.smoothChildTiming}),I=P.cycle;for(typeof s=="string"&&(s=f.selector(s)||s),s=s||[],n(s)&&(s=g(s)),T=T||0,T<0&&(s=g(s),s.reverse(),T*=-1),A=0;A<s.length;A++)L=y(P),L.startAt&&(L.startAt=y(L.startAt),L.startAt.cycle&&d(L.startAt,s,A)),I&&(d(L,s,A),L.duration!=null&&(v=L.duration,delete L.duration)),D.to(s[A],v,L,A*T);return this.add(D,C)},a.staggerFrom=function(s,v,P,T,C,M,R,S){return P.immediateRender=P.immediateRender!=0,P.runBackwards=!0,this.staggerTo(s,v,P,T,C,M,R,S)},a.staggerFromTo=function(s,v,P,T,C,M,R,S,L){return T.startAt=P,T.immediateRender=T.immediateRender!=0&&P.immediateRender!=0,this.staggerTo(s,v,T,C,M,R,S,L)},a.call=function(s,v,P,T){return this.add(f.delayedCall(0,s,v,P),T)},a.set=function(s,v,P){return P=this._parseTimeOrLabel(P,0,!0),v.immediateRender==null&&(v.immediateRender=P===this._time&&!this._paused),this.add(new f(s,0,v),P)},o.exportRoot=function(s,v){s=s||{},s.smoothChildTiming==null&&(s.smoothChildTiming=!0);var P,T,C=new o(s),M=C._timeline;for(v==null&&(v=!0),M._remove(C,!0),C._startTime=0,C._rawPrevTime=C._time=C._totalTime=M._time,P=M._first;P;)T=P._next,v&&P instanceof f&&P.target===P.vars.onComplete||C.add(P,P._startTime-P._delay),P=T;return M.add(C,0),C},a.add=function(s,v,P,T){var C,M,R,S,L,A;if(typeof v!="number"&&(v=this._parseTimeOrLabel(v,0,!0,s)),!(s instanceof m)){if(s instanceof Array||s&&s.push&&r(s)){for(P=P||"normal",T=T||0,C=v,M=s.length,R=0;R<M;R++)r(S=s[R])&&(S=new o({tweens:S})),this.add(S,C),typeof S!="string"&&typeof S!="function"&&(P==="sequence"?C=S._startTime+S.totalDuration()/S._timeScale:P==="start"&&(S._startTime-=S.delay())),C+=T;return this._uncache(!0)}if(typeof s=="string")return this.addLabel(s,v);if(typeof s!="function")throw"Cannot add "+s+" into the timeline; it is not a tween, timeline, function, or string.";s=f.delayedCall(0,s)}if(l.prototype.add.call(this,s,v),(this._gc||this._time===this._duration)&&!this._paused&&this._duration<this.duration())for(L=this,A=L.rawTime()>s._startTime;L._timeline;)A&&L._timeline.smoothChildTiming?L.totalTime(L._totalTime,!0):L._gc&&L._enabled(!0,!1),L=L._timeline;return this},a.remove=function(s){if(s instanceof m){this._remove(s,!1);var v=s._timeline=s.vars.useFrames?m._rootFramesTimeline:m._rootTimeline;return s._startTime=(s._paused?s._pauseTime:v._time)-(s._reversed?s.totalDuration()-s._totalTime:s._totalTime)/s._timeScale,this}if(s instanceof Array||s&&s.push&&r(s)){for(var P=s.length;--P>-1;)this.remove(s[P]);return this}return typeof s=="string"?this.removeLabel(s):this.kill(null,s)},a._remove=function(s,v){l.prototype._remove.call(this,s,v);var P=this._last;return P?this._time>P._startTime+P._totalDuration/P._timeScale&&(this._time=this.duration(),this._totalTime=this._totalDuration):this._time=this._totalTime=this._duration=this._totalDuration=0,this},a.append=function(s,v){return this.add(s,this._parseTimeOrLabel(null,v,!0,s))},a.insert=a.insertMultiple=function(s,v,P,T){return this.add(s,v||0,P,T)},a.appendMultiple=function(s,v,P,T){return this.add(s,this._parseTimeOrLabel(null,v,!0,s),P,T)},a.addLabel=function(s,v){return this._labels[s]=this._parseTimeOrLabel(v),this},a.addPause=function(s,v,P,T){var C=f.delayedCall(0,w,P,T||this);return C.vars.onComplete=C.vars.onReverseComplete=v,C.data="isPause",this._hasPause=!0,this.add(C,s)},a.removeLabel=function(s){return delete this._labels[s],this},a.getLabelTime=function(s){return this._labels[s]!=null?this._labels[s]:-1},a._parseTimeOrLabel=function(s,v,P,T){var C;if(T instanceof m&&T.timeline===this)this.remove(T);else if(T&&(T instanceof Array||T.push&&r(T)))for(C=T.length;--C>-1;)T[C]instanceof m&&T[C].timeline===this&&this.remove(T[C]);if(typeof v=="string")return this._parseTimeOrLabel(v,P&&typeof s=="number"&&this._labels[v]==null?s-this.duration():0,P);if(v=v||0,typeof s!="string"||!isNaN(s)&&this._labels[s]==null)s==null&&(s=this.duration());else{if(C=s.indexOf("="),C===-1)return this._labels[s]==null?P?this._labels[s]=this.duration()+v:v:this._labels[s]+v;v=parseInt(s.charAt(C-1)+"1",10)*Number(s.substr(C+1)),s=C>1?this._parseTimeOrLabel(s.substr(0,C-1),0,P):this.duration()}return Number(s)+v},a.seek=function(s,v){return this.totalTime(typeof s=="number"?s:this._parseTimeOrLabel(s),v!==!1)},a.stop=function(){return this.paused(!0)},a.gotoAndPlay=function(s,v){return this.play(s,v)},a.gotoAndStop=function(s,v){return this.pause(s,v)},a.render=function(s,v,P){this._gc&&this._enabled(!0,!1);var T,C,M,R,S,L,A,D=this._dirty?this.totalDuration():this._totalDuration,I=this._time,U=this._startTime,N=this._timeScale,W=this._paused;if(s>=D-1e-7)this._totalTime=this._time=D,this._reversed||this._hasPausedChild()||(C=!0,R="onComplete",S=!!this._timeline.autoRemoveChildren,this._duration===0&&(s<=0&&s>=-1e-7||this._rawPrevTime<0||this._rawPrevTime===e)&&this._rawPrevTime!==s&&this._first&&(S=!0,this._rawPrevTime>e&&(R="onReverseComplete"))),this._rawPrevTime=this._duration||!v||s||this._rawPrevTime===s?s:e,s=D+1e-4;else if(s<1e-7)if(this._totalTime=this._time=0,(I!==0||this._duration===0&&this._rawPrevTime!==e&&(this._rawPrevTime>0||s<0&&this._rawPrevTime>=0))&&(R="onReverseComplete",C=this._reversed),s<0)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(S=C=!0,R="onReverseComplete"):this._rawPrevTime>=0&&this._first&&(S=!0),this._rawPrevTime=s;else{if(this._rawPrevTime=this._duration||!v||s||this._rawPrevTime===s?s:e,s===0&&C)for(T=this._first;T&&T._startTime===0;)T._duration||(C=!1),T=T._next;s=0,this._initted||(S=!0)}else{if(this._hasPause&&!this._forcingPlayhead&&!v){if(s>=I)for(T=this._first;T&&T._startTime<=s&&!L;)T._duration||T.data!=="isPause"||T.ratio||T._startTime===0&&this._rawPrevTime===0||(L=T),T=T._next;else for(T=this._last;T&&T._startTime>=s&&!L;)T._duration||T.data==="isPause"&&T._rawPrevTime>0&&(L=T),T=T._prev;L&&(this._time=s=L._startTime,this._totalTime=s+this._cycle*(this._totalDuration+this._repeatDelay))}this._totalTime=this._time=this._rawPrevTime=s}if(this._time!==I&&this._first||P||S||L){if(this._initted||(this._initted=!0),this._active||!this._paused&&this._time!==I&&s>0&&(this._active=!0),I===0&&this.vars.onStart&&(this._time===0&&this._duration||v||this._callback("onStart")),A=this._time,A>=I)for(T=this._first;T&&(M=T._next,A===this._time&&(!this._paused||W));)(T._active||T._startTime<=A&&!T._paused&&!T._gc)&&(L===T&&this.pause(),T._reversed?T.render((T._dirty?T.totalDuration():T._totalDuration)-(s-T._startTime)*T._timeScale,v,P):T.render((s-T._startTime)*T._timeScale,v,P)),T=M;else for(T=this._last;T&&(M=T._prev,A===this._time&&(!this._paused||W));){if(T._active||T._startTime<=I&&!T._paused&&!T._gc){if(L===T){for(L=T._prev;L&&L.endTime()>this._time;)L.render(L._reversed?L.totalDuration()-(s-L._startTime)*L._timeScale:(s-L._startTime)*L._timeScale,v,P),L=L._prev;L=null,this.pause()}T._reversed?T.render((T._dirty?T.totalDuration():T._totalDuration)-(s-T._startTime)*T._timeScale,v,P):T.render((s-T._startTime)*T._timeScale,v,P)}T=M}this._onUpdate&&(v||(h.length&&p(),this._callback("onUpdate"))),R&&(this._gc||U!==this._startTime&&N===this._timeScale||(this._time===0||D>=this.totalDuration())&&(C&&(h.length&&p(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!v&&this.vars[R]&&this._callback(R)))}},a._hasPausedChild=function(){for(var s=this._first;s;){if(s._paused||s instanceof o&&s._hasPausedChild())return!0;s=s._next}return!1},a.getChildren=function(s,v,P,T){T=T||-9999999999;for(var C=[],M=this._first,R=0;M;)M._startTime<T||(M instanceof f?v!==!1&&(C[R++]=M):(P!==!1&&(C[R++]=M),s!==!1&&(C=C.concat(M.getChildren(!0,v,P)),R=C.length))),M=M._next;return C},a.getTweensOf=function(s,v){var P,T,C=this._gc,M=[],R=0;for(C&&this._enabled(!0,!0),P=f.getTweensOf(s),T=P.length;--T>-1;)(P[T].timeline===this||v&&this._contains(P[T]))&&(M[R++]=P[T]);return C&&this._enabled(!1,!0),M},a.recent=function(){return this._recent},a._contains=function(s){for(var v=s.timeline;v;){if(v===this)return!0;v=v.timeline}return!1},a.shiftChildren=function(s,v,P){P=P||0;for(var T,C=this._first,M=this._labels;C;)C._startTime>=P&&(C._startTime+=s),C=C._next;if(v)for(T in M)M[T]>=P&&(M[T]+=s);return this._uncache(!0)},a._kill=function(s,v){if(!s&&!v)return this._enabled(!1,!1);for(var P=v?this.getTweensOf(v):this.getChildren(!0,!0,!1),T=P.length,C=!1;--T>-1;)P[T]._kill(s,v)&&(C=!0);return C},a.clear=function(s){var v=this.getChildren(!1,!0,!0),P=v.length;for(this._time=this._totalTime=0;--P>-1;)v[P]._enabled(!1,!1);return s!==!1&&(this._labels={}),this._uncache(!0)},a.invalidate=function(){for(var s=this._first;s;)s.invalidate(),s=s._next;return m.prototype.invalidate.call(this)},a._enabled=function(s,v){if(s===this._gc)for(var P=this._first;P;)P._enabled(s,!0),P=P._next;return l.prototype._enabled.call(this,s,v)},a.totalTime=function(s,v,P){this._forcingPlayhead=!0;var T=m.prototype.totalTime.apply(this,arguments);return this._forcingPlayhead=!1,T},a.duration=function(s){return arguments.length?(this.duration()!==0&&s!==0&&this.timeScale(this._duration/s),this):(this._dirty&&this.totalDuration(),this._duration)},a.totalDuration=function(s){if(!arguments.length){if(this._dirty){for(var v,P,T=0,C=this._last,M=999999999999;C;)v=C._prev,C._dirty&&C.totalDuration(),C._startTime>M&&this._sortChildren&&!C._paused?this.add(C,C._startTime-C._delay):M=C._startTime,C._startTime<0&&!C._paused&&(T-=C._startTime,this._timeline.smoothChildTiming&&(this._startTime+=C._startTime/this._timeScale),this.shiftChildren(-C._startTime,!1,-9999999999),M=0),P=C._startTime+C._totalDuration/C._timeScale,P>T&&(T=P),C=v;this._duration=this._totalDuration=T,this._dirty=!1}return this._totalDuration}return s&&this.totalDuration()?this.timeScale(this._totalDuration/s):this},a.paused=function(s){if(!s)for(var v=this._first,P=this._time;v;)v._startTime===P&&v.data==="isPause"&&(v._rawPrevTime=0),v=v._next;return m.prototype.paused.apply(this,arguments)},a.usesFrames=function(){for(var s=this._timeline;s._timeline;)s=s._timeline;return s===m._rootFramesTimeline},a.rawTime=function(){return this._paused?this._totalTime:(this._timeline.rawTime()-this._startTime)*this._timeScale},o},!0),b._gsDefine("TimelineMax",["TimelineLite","TweenLite","easing.Ease"],function(m,l,f){var o=function(u){m.call(this,u),this._repeat=this.vars.repeat||0,this._repeatDelay=this.vars.repeatDelay||0,this._cycle=0,this._yoyo=this.vars.yoyo===!0,this._dirty=!0},e=1e-10,t=l._internals,i=t.lazyTweens,n=t.lazyRender,r=b._gsDefine.globals,h=new f(null,null,1,0),p=o.prototype=new m;return p.constructor=o,p.kill()._gc=!1,o.version="1.19.0",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),m.prototype.invalidate.call(this)},p.addCallback=function(u,y,d,w){return this.add(l.delayedCall(0,u,d,w),y)},p.removeCallback=function(u,y){if(u)if(y==null)this._kill(null,u);else for(var d=this.getTweensOf(u,!1),w=d.length,g=this._parseTimeOrLabel(y);--w>-1;)d[w]._startTime===g&&d[w]._enabled(!1,!1);return this},p.removePause=function(u){return this.removeCallback(m._internals.pauseCallback,u)},p.tweenTo=function(u,y){y=y||{};var d,w,g,a={ease:h,useFrames:this.usesFrames(),immediateRender:!1},s=y.repeat&&r.TweenMax||l;for(w in y)a[w]=y[w];return a.time=this._parseTimeOrLabel(u),d=Math.abs(Number(a.time)-this._time)/this._timeScale||.001,g=new s(this,d,a),a.onStart=function(){g.target.paused(!0),g.vars.time!==g.target.time()&&d===g.duration()&&g.duration(Math.abs(g.vars.time-g.target.time())/g.target._timeScale),y.onStart&&g._callback("onStart")},g},p.tweenFromTo=function(u,y,d){d=d||{},u=this._parseTimeOrLabel(u),d.startAt={onComplete:this.seek,onCompleteParams:[u],callbackScope:this},d.immediateRender=d.immediateRender!==!1;var w=this.tweenTo(y,d);return w.duration(Math.abs(w.vars.time-u)/this._timeScale||.001)},p.render=function(u,y,d){this._gc&&this._enabled(!0,!1);var w,g,a,s,v,P,T,C,M=this._dirty?this.totalDuration():this._totalDuration,R=this._duration,S=this._time,L=this._totalTime,A=this._startTime,D=this._timeScale,I=this._rawPrevTime,U=this._paused,N=this._cycle;if(u>=M-1e-7)this._locked||(this._totalTime=M,this._cycle=this._repeat),this._reversed||this._hasPausedChild()||(g=!0,s="onComplete",v=!!this._timeline.autoRemoveChildren,this._duration===0&&(u<=0&&u>=-1e-7||I<0||I===e)&&I!==u&&this._first&&(v=!0,I>e&&(s="onReverseComplete"))),this._rawPrevTime=this._duration||!y||u||this._rawPrevTime===u?u:e,this._yoyo&&(1&this._cycle)!=0?this._time=u=0:(this._time=R,u=R+1e-4);else if(u<1e-7)if(this._locked||(this._totalTime=this._cycle=0),this._time=0,(S!==0||R===0&&I!==e&&(I>0||u<0&&I>=0)&&!this._locked)&&(s="onReverseComplete",g=this._reversed),u<0)this._active=!1,this._timeline.autoRemoveChildren&&this._reversed?(v=g=!0,s="onReverseComplete"):I>=0&&this._first&&(v=!0),this._rawPrevTime=u;else{if(this._rawPrevTime=R||!y||u||this._rawPrevTime===u?u:e,u===0&&g)for(w=this._first;w&&w._startTime===0;)w._duration||(g=!1),w=w._next;u=0,this._initted||(v=!0)}else if(R===0&&I<0&&(v=!0),this._time=this._rawPrevTime=u,this._locked||(this._totalTime=u,this._repeat!==0&&(P=R+this._repeatDelay,this._cycle=this._totalTime/P>>0,this._cycle!==0&&this._cycle===this._totalTime/P&&L<=u&&this._cycle--,this._time=this._totalTime-this._cycle*P,this._yoyo&&(1&this._cycle)!=0&&(this._time=R-this._time),this._time>R?(this._time=R,u=R+1e-4):this._time<0?this._time=u=0:u=this._time)),this._hasPause&&!this._forcingPlayhead&&!y){if(u=this._time,u>=S)for(w=this._first;w&&w._startTime<=u&&!T;)w._duration||w.data!=="isPause"||w.ratio||w._startTime===0&&this._rawPrevTime===0||(T=w),w=w._next;else for(w=this._last;w&&w._startTime>=u&&!T;)w._duration||w.data==="isPause"&&w._rawPrevTime>0&&(T=w),w=w._prev;T&&(this._time=u=T._startTime,this._totalTime=u+this._cycle*(this._totalDuration+this._repeatDelay))}if(this._cycle!==N&&!this._locked){var W=this._yoyo&&(1&N)!=0,H=W===(this._yoyo&&(1&this._cycle)!=0),tt=this._totalTime,it=this._cycle,K=this._rawPrevTime,at=this._time;if(this._totalTime=N*R,this._cycle<N?W=!W:this._totalTime+=R,this._time=S,this._rawPrevTime=R===0?I-1e-4:I,this._cycle=N,this._locked=!0,S=W?0:R,this.render(S,y,R===0),y||this._gc||this.vars.onRepeat&&this._callback("onRepeat"),S!==this._time||(H&&(S=W?R+1e-4:-1e-4,this.render(S,!0,!1)),this._locked=!1,this._paused&&!U))return;this._time=at,this._totalTime=tt,this._cycle=it,this._rawPrevTime=K}if(!(this._time!==S&&this._first||d||v||T))return void(L!==this._totalTime&&this._onUpdate&&(y||this._callback("onUpdate")));if(this._initted||(this._initted=!0),this._active||!this._paused&&this._totalTime!==L&&u>0&&(this._active=!0),L===0&&this.vars.onStart&&(this._totalTime===0&&this._totalDuration||y||this._callback("onStart")),C=this._time,C>=S)for(w=this._first;w&&(a=w._next,C===this._time&&(!this._paused||U));)(w._active||w._startTime<=this._time&&!w._paused&&!w._gc)&&(T===w&&this.pause(),w._reversed?w.render((w._dirty?w.totalDuration():w._totalDuration)-(u-w._startTime)*w._timeScale,y,d):w.render((u-w._startTime)*w._timeScale,y,d)),w=a;else for(w=this._last;w&&(a=w._prev,C===this._time&&(!this._paused||U));){if(w._active||w._startTime<=S&&!w._paused&&!w._gc){if(T===w){for(T=w._prev;T&&T.endTime()>this._time;)T.render(T._reversed?T.totalDuration()-(u-T._startTime)*T._timeScale:(u-T._startTime)*T._timeScale,y,d),T=T._prev;T=null,this.pause()}w._reversed?w.render((w._dirty?w.totalDuration():w._totalDuration)-(u-w._startTime)*w._timeScale,y,d):w.render((u-w._startTime)*w._timeScale,y,d)}w=a}this._onUpdate&&(y||(i.length&&n(),this._callback("onUpdate"))),s&&(this._locked||this._gc||A!==this._startTime&&D===this._timeScale||(this._time===0||M>=this.totalDuration())&&(g&&(i.length&&n(),this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!y&&this.vars[s]&&this._callback(s)))},p.getActive=function(u,y,d){u==null&&(u=!0),y==null&&(y=!0),d==null&&(d=!1);var w,g,a=[],s=this.getChildren(u,y,d),v=0,P=s.length;for(w=0;w<P;w++)g=s[w],g.isActive()&&(a[v++]=g);return a},p.getLabelAfter=function(u){u||u!==0&&(u=this._time);var y,d=this.getLabelsArray(),w=d.length;for(y=0;y<w;y++)if(d[y].time>u)return d[y].name;return null},p.getLabelBefore=function(u){u==null&&(u=this._time);for(var y=this.getLabelsArray(),d=y.length;--d>-1;)if(y[d].time<u)return y[d].name;return null},p.getLabelsArray=function(){var u,y=[],d=0;for(u in this._labels)y[d++]={time:this._labels[u],name:u};return y.sort(function(w,g){return w.time-g.time}),y},p.progress=function(u,y){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&(1&this._cycle)!=0?1-u:u)+this._cycle*(this._duration+this._repeatDelay),y):this._time/this.duration()},p.totalProgress=function(u,y){return arguments.length?this.totalTime(this.totalDuration()*u,y):this._totalTime/this.totalDuration()},p.totalDuration=function(u){return arguments.length?this._repeat!==-1&&u?this.timeScale(this.totalDuration()/u):this:(this._dirty&&(m.prototype.totalDuration.call(this),this._totalDuration=this._repeat===-1?999999999999:this._duration*(this._repeat+1)+this._repeatDelay*this._repeat),this._totalDuration)},p.time=function(u,y){return arguments.length?(this._dirty&&this.totalDuration(),u>this._duration&&(u=this._duration),this._yoyo&&(1&this._cycle)!=0?u=this._duration-u+this._cycle*(this._duration+this._repeatDelay):this._repeat!==0&&(u+=this._cycle*(this._duration+this._repeatDelay)),this.totalTime(u,y)):this._time},p.repeat=function(u){return arguments.length?(this._repeat=u,this._uncache(!0)):this._repeat},p.repeatDelay=function(u){return arguments.length?(this._repeatDelay=u,this._uncache(!0)):this._repeatDelay},p.yoyo=function(u){return arguments.length?(this._yoyo=u,this):this._yoyo},p.currentLabel=function(u){return arguments.length?this.seek(u,!0):this.getLabelBefore(this._time+1e-8)},o},!0),function(){var m=180/Math.PI,l=[],f=[],o=[],e={},t=b._gsDefine.globals,i=function(s,v,P,T){P===T&&(P=T-(T-v)/1e6),s===v&&(v=s+(P-s)/1e6),this.a=s,this.b=v,this.c=P,this.d=T,this.da=T-s,this.ca=P-s,this.ba=v-s},n=",x,y,z,left,top,right,bottom,marginTop,marginLeft,marginRight,marginBottom,paddingLeft,paddingTop,paddingRight,paddingBottom,backgroundPosition,backgroundPosition_y,",r=function(s,v,P,T){var C={a:s},M={},R={},S={c:T},L=(s+v)/2,A=(v+P)/2,D=(P+T)/2,I=(L+A)/2,U=(A+D)/2,N=(U-I)/8;return C.b=L+(s-L)/4,M.b=I+N,C.c=M.a=(C.b+M.b)/2,M.c=R.a=(I+U)/2,R.b=U-N,S.b=D+(T-D)/4,R.c=S.a=(R.b+S.b)/2,[C,M,R,S]},h=function(s,v,P,T,C){var M,R,S,L,A,D,I,U,N,W,H,tt,it,K=s.length-1,at=0,ut=s[0].a;for(M=0;M<K;M++)A=s[at],R=A.a,S=A.d,L=s[at+1].d,C?(H=l[M],tt=f[M],it=(tt+H)*v*.25/(T?.5:o[M]||.5),D=S-(S-R)*(T?.5*v:H!==0?it/H:0),I=S+(L-S)*(T?.5*v:tt!==0?it/tt:0),U=S-(D+((I-D)*(3*H/(H+tt)+.5)/4||0))):(D=S-(S-R)*v*.5,I=S+(L-S)*v*.5,U=S-(D+I)/2),D+=U,I+=U,A.c=N=D,M!==0?A.b=ut:A.b=ut=A.a+.6*(A.c-A.a),A.da=S-R,A.ca=N-R,A.ba=ut-R,P?(W=r(R,ut,N,S),s.splice(at,1,W[0],W[1],W[2],W[3]),at+=4):at++,ut=I;A=s[at],A.b=ut,A.c=ut+.4*(A.d-ut),A.da=A.d-A.a,A.ca=A.c-A.a,A.ba=ut-A.a,P&&(W=r(A.a,ut,A.c,A.d),s.splice(at,1,W[0],W[1],W[2],W[3]))},p=function(s,v,P,T){var C,M,R,S,L,A,D=[];if(T)for(s=[T].concat(s),M=s.length;--M>-1;)typeof(A=s[M][v])=="string"&&A.charAt(1)==="="&&(s[M][v]=T[v]+Number(A.charAt(0)+A.substr(2)));if(C=s.length-2,C<0)return D[0]=new i(s[0][v],0,0,s[C<-1?0:1][v]),D;for(M=0;M<C;M++)R=s[M][v],S=s[M+1][v],D[M]=new i(R,0,0,S),P&&(L=s[M+2][v],l[M]=(l[M]||0)+(S-R)*(S-R),f[M]=(f[M]||0)+(L-S)*(L-S));return D[M]=new i(s[M][v],0,0,s[M+1][v]),D},u=function(s,v,P,T,C,M){var R,S,L,A,D,I,U,N,W={},H=[],tt=M||s[0];C=typeof C=="string"?","+C+",":n,v==null&&(v=1);for(S in s[0])H.push(S);if(s.length>1){for(N=s[s.length-1],U=!0,R=H.length;--R>-1;)if(S=H[R],Math.abs(tt[S]-N[S])>.05){U=!1;break}U&&(s=s.concat(),M&&s.unshift(M),s.push(s[1]),M=s[s.length-3])}for(l.length=f.length=o.length=0,R=H.length;--R>-1;)S=H[R],e[S]=C.indexOf(","+S+",")!==-1,W[S]=p(s,S,e[S],M);for(R=l.length;--R>-1;)l[R]=Math.sqrt(l[R]),f[R]=Math.sqrt(f[R]);if(!T){for(R=H.length;--R>-1;)if(e[S])for(L=W[H[R]],I=L.length-1,A=0;A<I;A++)D=L[A+1].da/f[A]+L[A].da/l[A]||0,o[A]=(o[A]||0)+D*D;for(R=o.length;--R>-1;)o[R]=Math.sqrt(o[R])}for(R=H.length,A=P?4:1;--R>-1;)S=H[R],L=W[S],h(L,v,P,T,e[S]),U&&(L.splice(0,A),L.splice(L.length-A,A));return W},y=function(s,v,P){v=v||"soft";var T,C,M,R,S,L,A,D,I,U,N,W={},H=v==="cubic"?3:2,tt=v==="soft",it=[];if(tt&&P&&(s=[P].concat(s)),s==null||s.length<H+1)throw"invalid Bezier data";for(I in s[0])it.push(I);for(L=it.length;--L>-1;){for(I=it[L],W[I]=S=[],U=0,D=s.length,A=0;A<D;A++)T=P==null?s[A][I]:typeof(N=s[A][I])=="string"&&N.charAt(1)==="="?P[I]+Number(N.charAt(0)+N.substr(2)):Number(N),tt&&A>1&&A<D-1&&(S[U++]=(T+S[U-2])/2),S[U++]=T;for(D=U-H+1,U=0,A=0;A<D;A+=H)T=S[A],C=S[A+1],M=S[A+2],R=H===2?0:S[A+3],S[U++]=N=H===3?new i(T,C,M,R):new i(T,(2*C+T)/3,(2*C+M)/3,M);S.length=U}return W},d=function(s,v,P){for(var T,C,M,R,S,L,A,D,I,U,N,W=1/P,H=s.length;--H>-1;)for(U=s[H],M=U.a,R=U.d-M,S=U.c-M,L=U.b-M,T=C=0,D=1;D<=P;D++)A=W*D,I=1-A,T=C-(C=(A*A*R+3*I*(A*S+I*L))*A),N=H*P+D-1,v[N]=(v[N]||0)+T*T},w=function(s,v){v=v>>0||6;var P,T,C,M,R=[],S=[],L=0,A=0,D=v-1,I=[],U=[];for(P in s)d(s[P],R,v);for(C=R.length,T=0;T<C;T++)L+=Math.sqrt(R[T]),M=T%v,U[M]=L,M===D&&(A+=L,M=T/v>>0,I[M]=U,S[M]=A,L=0,U=[]);return{length:A,lengths:S,segments:I}},g=b._gsDefine.plugin({propName:"bezier",priority:-1,version:"1.3.7",API:2,global:!0,init:function(s,v,P){this._target=s,v instanceof Array&&(v={values:v}),this._func={},this._mod={},this._props=[],this._timeRes=v.timeResolution==null?6:parseInt(v.timeResolution,10);var T,C,M,R,S,L=v.values||[],A={},D=L[0],I=v.autoRotate||P.vars.orientToBezier;this._autoRotate=I?I instanceof Array?I:[["x","y","rotation",I===!0?0:Number(I)||0]]:null;for(T in D)this._props.push(T);for(M=this._props.length;--M>-1;)T=this._props[M],this._overwriteProps.push(T),C=this._func[T]=typeof s[T]=="function",A[T]=C?s[T.indexOf("set")||typeof s["get"+T.substr(3)]!="function"?T:"get"+T.substr(3)]():parseFloat(s[T]),S||A[T]!==L[0][T]&&(S=A);if(this._beziers=v.type!=="cubic"&&v.type!=="quadratic"&&v.type!=="soft"?u(L,isNaN(v.curviness)?1:v.curviness,!1,v.type==="thruBasic",v.correlate,S):y(L,v.type,A),this._segCount=this._beziers[T].length,this._timeRes){var U=w(this._beziers,this._timeRes);this._length=U.length,this._lengths=U.lengths,this._segments=U.segments,this._l1=this._li=this._s1=this._si=0,this._l2=this._lengths[0],this._curSeg=this._segments[0],this._s2=this._curSeg[0],this._prec=1/this._curSeg.length}if(I=this._autoRotate)for(this._initialRotations=[],I[0]instanceof Array||(this._autoRotate=I=[I]),M=I.length;--M>-1;){for(R=0;R<3;R++)T=I[M][R],this._func[T]=typeof s[T]=="function"&&s[T.indexOf("set")||typeof s["get"+T.substr(3)]!="function"?T:"get"+T.substr(3)];T=I[M][2],this._initialRotations[M]=(this._func[T]?this._func[T].call(this._target):this._target[T])||0,this._overwriteProps.push(T)}return this._startRatio=P.vars.runBackwards?1:0,!0},set:function(s){var v,P,T,C,M,R,S,L,A,D,I=this._segCount,U=this._func,N=this._target,W=s!==this._startRatio;if(this._timeRes){if(A=this._lengths,D=this._curSeg,s*=this._length,T=this._li,s>this._l2&&T<I-1){for(L=I-1;T<L&&(this._l2=A[++T])<=s;);this._l1=A[T-1],this._li=T,this._curSeg=D=this._segments[T],this._s2=D[this._s1=this._si=0]}else if(s<this._l1&&T>0){for(;T>0&&(this._l1=A[--T])>=s;);T===0&&s<this._l1?this._l1=0:T++,this._l2=A[T],this._li=T,this._curSeg=D=this._segments[T],this._s1=D[(this._si=D.length-1)-1]||0,this._s2=D[this._si]}if(v=T,s-=this._l1,T=this._si,s>this._s2&&T<D.length-1){for(L=D.length-1;T<L&&(this._s2=D[++T])<=s;);this._s1=D[T-1],this._si=T}else if(s<this._s1&&T>0){for(;T>0&&(this._s1=D[--T])>=s;);T===0&&s<this._s1?this._s1=0:T++,this._s2=D[T],this._si=T}R=(T+(s-this._s1)/(this._s2-this._s1))*this._prec||0}else v=s<0?0:s>=1?I-1:I*s>>0,R=(s-v*(1/I))*I;for(P=1-R,T=this._props.length;--T>-1;)C=this._props[T],M=this._beziers[C][v],S=(R*R*M.da+3*P*(R*M.ca+P*M.ba))*R+M.a,this._mod[C]&&(S=this._mod[C](S,N)),U[C]?N[C](S):N[C]=S;if(this._autoRotate){var H,tt,it,K,at,ut,mt,wt=this._autoRotate;for(T=wt.length;--T>-1;)C=wt[T][2],ut=wt[T][3]||0,mt=wt[T][4]===!0?1:m,M=this._beziers[wt[T][0]],H=this._beziers[wt[T][1]],M&&H&&(M=M[v],H=H[v],tt=M.a+(M.b-M.a)*R,K=M.b+(M.c-M.b)*R,tt+=(K-tt)*R,K+=(M.c+(M.d-M.c)*R-K)*R,it=H.a+(H.b-H.a)*R,at=H.b+(H.c-H.b)*R,it+=(at-it)*R,at+=(H.c+(H.d-H.c)*R-at)*R,S=W?Math.atan2(at-it,K-tt)*mt+ut:this._initialRotations[T],this._mod[C]&&(S=this._mod[C](S,N)),U[C]?N[C](S):N[C]=S)}}}),a=g.prototype;g.bezierThrough=u,g.cubicToQuadratic=r,g._autoCSS=!0,g.quadraticToCubic=function(s,v,P){return new i(s,(2*v+s)/3,(2*v+P)/3,P)},g._cssRegister=function(){var s=t.CSSPlugin;if(s){var v=s._internals,P=v._parseToProxy,T=v._setPluginRatio,C=v.CSSPropTween;v._registerComplexSpecialProp("bezier",{parser:function(M,R,S,L,A,D){R instanceof Array&&(R={values:R}),D=new g;var I,U,N,W=R.values,H=W.length-1,tt=[],it={};if(H<0)return A;for(I=0;I<=H;I++)N=P(M,W[I],L,A,D,H!==I),tt[I]=N.end;for(U in R)it[U]=R[U];return it.values=tt,A=new C(M,"bezier",0,0,N.pt,2),A.data=N,A.plugin=D,A.setRatio=T,it.autoRotate===0&&(it.autoRotate=!0),!it.autoRotate||it.autoRotate instanceof Array||(I=it.autoRotate===!0?0:Number(it.autoRotate),it.autoRotate=N.end.left!=null?[["left","top","rotation",I,!1]]:N.end.x!=null&&[["x","y","rotation",I,!1]]),it.autoRotate&&(L._transform||L._enableTransforms(!1),N.autoRotate=L._target._gsTransform,N.proxy.rotation=N.autoRotate.rotation||0,L._overwriteProps.push("rotation")),D._onInitTween(N.proxy,it,L._tween),A}})}},a._mod=function(s){for(var v,P=this._overwriteProps,T=P.length;--T>-1;)v=s[P[T]],v&&typeof v=="function"&&(this._mod[P[T]]=v)},a._kill=function(s){var v,P,T=this._props;for(v in this._beziers)if(v in s)for(delete this._beziers[v],delete this._func[v],P=T.length;--P>-1;)T[P]===v&&T.splice(P,1);if(T=this._autoRotate)for(P=T.length;--P>-1;)s[T[P][2]]&&T.splice(P,1);return this._super._kill.call(this,s)}}(),b._gsDefine("plugins.CSSPlugin",["plugins.TweenPlugin","TweenLite"],function(m,l){var f,o,e,t,i=function(){m.call(this,"css"),this._overwriteProps.length=0,this.setRatio=i.prototype.setRatio},n=b._gsDefine.globals,r={},h=i.prototype=new m("css");h.constructor=i,i.version="1.19.0",i.API=2,i.defaultTransformPerspective=0,i.defaultSkewType="compensated",i.defaultSmoothOrigin=!0,h="px",i.suffixMap={top:h,right:h,bottom:h,left:h,width:h,height:h,fontSize:h,padding:h,margin:h,perspective:h,lineHeight:""};var p,u,y,d,w,g,a,s,v=/(?:\-|\.|\b)(\d|\.|e\-)+/g,P=/(?:\d|\-\d|\.\d|\-\.\d|\+=\d|\-=\d|\+=.\d|\-=\.\d)+/g,T=/(?:\+=|\-=|\-|\b)[\d\-\.]+[a-zA-Z0-9]*(?:%|\b)/gi,C=/(?![+-]?\d*\.?\d+|[+-]|e[+-]\d+)[^0-9]/g,M=/(?:\d|\-|\+|=|#|\.)*/g,R=/opacity *= *([^)]*)/i,S=/opacity:([^;]*)/i,L=/alpha\(opacity *=.+?\)/i,A=/^(rgb|hsl)/,D=/([A-Z])/g,I=/-([a-z])/gi,U=/(^(?:url\(\"|url\())|(?:(\"\))$|\)$)/gi,N=function(F,X){return X.toUpperCase()},W=/(?:Left|Right|Width)/i,H=/(M11|M12|M21|M22)=[\d\-\.e]+/gi,tt=/progid\:DXImageTransform\.Microsoft\.Matrix\(.+?\)/i,it=/,(?=[^\)]*(?:\(|$))/gi,K=/[\s,\(]/i,at=Math.PI/180,ut=180/Math.PI,mt={},wt=document,Dt=function(F){return wt.createElementNS?wt.createElementNS("http://www.w3.org/1999/xhtml",F):wt.createElement(F)},yt=Dt("div"),Tt=Dt("img"),It=i._internals={_specialProps:r},bt=navigator.userAgent,kt=function(){var F=bt.indexOf("Android"),X=Dt("a");return y=bt.indexOf("Safari")!==-1&&bt.indexOf("Chrome")===-1&&(F===-1||Number(bt.substr(F+8,1))>3),w=y&&Number(bt.substr(bt.indexOf("Version/")+8,1))<6,d=bt.indexOf("Firefox")!==-1,(/MSIE ([0-9]{1,}[\.0-9]{0,})/.exec(bt)||/Trident\/.*rv:([0-9]{1,}[\.0-9]{0,})/.exec(bt))&&(g=parseFloat(RegExp.$1)),!!X&&(X.style.cssText="top:1px;opacity:.55;",/^0.55/.test(X.style.opacity))}(),Bt=function(F){return R.test(typeof F=="string"?F:(F.currentStyle?F.currentStyle.filter:F.style.filter)||"")?parseFloat(RegExp.$1)/100:1},Ut=function(F){window.console&&console.log(F)},Vt="",jt="",_t=function(F,X){X=X||yt;var Y,z,k=X.style;if(k[F]!==void 0)return F;for(F=F.charAt(0).toUpperCase()+F.substr(1),Y=["O","Moz","ms","Ms","Webkit"],z=5;--z>-1&&k[Y[z]+F]===void 0;);return z>=0?(jt=z===3?"ms":Y[z],Vt="-"+jt.toLowerCase()+"-",jt+F):null},Et=wt.defaultView?wt.defaultView.getComputedStyle:function(){},Ot=i.getStyle=function(F,X,Y,z,k){var J;return kt||X!=="opacity"?(!z&&F.style[X]?J=F.style[X]:(Y=Y||Et(F))?J=Y[X]||Y.getPropertyValue(X)||Y.getPropertyValue(X.replace(D,"-$1").toLowerCase()):F.currentStyle&&(J=F.currentStyle[X]),k==null||J&&J!=="none"&&J!=="auto"&&J!=="auto auto"?J:k):Bt(F)},zt=It.convertToPixels=function(F,X,Y,z,k){if(z==="px"||!z)return Y;if(z==="auto"||!Y)return 0;var J,G,et,$=W.test(X),rt=F,Q=yt.style,dt=Y<0,gt=Y===1;if(dt&&(Y=-Y),gt&&(Y*=100),z==="%"&&X.indexOf("border")!==-1)J=Y/100*($?F.clientWidth:F.clientHeight);else{if(Q.cssText="border:0 solid red;position:"+Ot(F,"position")+";line-height:0;",z!=="%"&&rt.appendChild&&z.charAt(0)!=="v"&&z!=="rem")Q[$?"borderLeftWidth":"borderTopWidth"]=Y+z;else{if(rt=F.parentNode||wt.body,G=rt._gsCache,et=l.ticker.frame,G&&$&&G.time===et)return G.width*Y/100;Q[$?"width":"height"]=Y+z}rt.appendChild(yt),J=parseFloat(yt[$?"offsetWidth":"offsetHeight"]),rt.removeChild(yt),$&&z==="%"&&i.cacheWidths!==!1&&(G=rt._gsCache=rt._gsCache||{},G.time=et,G.width=J/Y*100),J!==0||k||(J=zt(F,X,Y,z,!0))}return gt&&(J/=100),dt?-J:J},Zt=It.calculateOffset=function(F,X,Y){if(Ot(F,"position",Y)!=="absolute")return 0;var z=X==="left"?"Left":"Top",k=Ot(F,"margin"+z,Y);return F["offset"+z]-(zt(F,X,parseFloat(k),k.replace(M,""))||0)},j=function(F,X){var Y,z,k,J={};if(X=X||Et(F,null))if(Y=X.length)for(;--Y>-1;)k=X[Y],k.indexOf("-transform")!==-1&&Se!==k||(J[k.replace(I,N)]=X.getPropertyValue(k));else for(Y in X)Y.indexOf("Transform")!==-1&&ne!==Y||(J[Y]=X[Y]);else if(X=F.currentStyle||F.style)for(Y in X)typeof Y=="string"&&J[Y]===void 0&&(J[Y.replace(I,N)]=X[Y]);return kt||(J.opacity=Bt(F)),z=ge(F,X,!1),J.rotation=z.rotation,J.skewX=z.skewX,J.scaleX=z.scaleX,J.scaleY=z.scaleY,J.x=z.x,J.y=z.y,le&&(J.z=z.z,J.rotationX=z.rotationX,J.rotationY=z.rotationY,J.scaleZ=z.scaleZ),J.filters&&delete J.filters,J},V=function(F,X,Y,z,k){var J,G,et,$={},rt=F.style;for(G in Y)G!=="cssText"&&G!=="length"&&isNaN(G)&&(X[G]!==(J=Y[G])||k&&k[G])&&G.indexOf("Origin")===-1&&(typeof J!="number"&&typeof J!="string"||($[G]=J!=="auto"||G!=="left"&&G!=="top"?J!==""&&J!=="auto"&&J!=="none"||typeof X[G]!="string"||X[G].replace(C,"")===""?J:0:Zt(F,G),rt[G]!==void 0&&(et=new fe(rt,G,rt[G],et))));if(z)for(G in z)G!=="className"&&($[G]=z[G]);return{difs:$,firstMPT:et}},q={width:["Left","Right"],height:["Top","Bottom"]},Z=["marginLeft","marginRight","marginTop","marginBottom"],nt=function(F,X,Y){if((F.nodeName+"").toLowerCase()==="svg")return(Y||Et(F))[X]||0;if(F.getBBox&&Ce(F))return F.getBBox()[X]||0;var z=parseFloat(X==="width"?F.offsetWidth:F.offsetHeight),k=q[X],J=k.length;for(Y=Y||Et(F,null);--J>-1;)z-=parseFloat(Ot(F,"padding"+k[J],Y,!0))||0,z-=parseFloat(Ot(F,"border"+k[J]+"Width",Y,!0))||0;return z},lt=function(F,X){if(F==="contain"||F==="auto"||F==="auto auto")return F+" ";F!=null&&F!==""||(F="0 0");var Y,z=F.split(" "),k=F.indexOf("left")!==-1?"0%":F.indexOf("right")!==-1?"100%":z[0],J=F.indexOf("top")!==-1?"0%":F.indexOf("bottom")!==-1?"100%":z[1];if(z.length>3&&!X){for(z=F.split(", ").join(",").split(","),F=[],Y=0;Y<z.length;Y++)F.push(lt(z[Y]));return F.join(",")}return J==null?J=k==="center"?"50%":"0":J==="center"&&(J="50%"),(k==="center"||isNaN(parseFloat(k))&&(k+"").indexOf("=")===-1)&&(k="50%"),F=k+" "+J+(z.length>2?" "+z[2]:""),X&&(X.oxp=k.indexOf("%")!==-1,X.oyp=J.indexOf("%")!==-1,X.oxr=k.charAt(1)==="=",X.oyr=J.charAt(1)==="=",X.ox=parseFloat(k.replace(C,"")),X.oy=parseFloat(J.replace(C,"")),X.v=F),X||F},pt=function(F,X){return typeof F=="function"&&(F=F(s,a)),typeof F=="string"&&F.charAt(1)==="="?parseInt(F.charAt(0)+"1",10)*parseFloat(F.substr(2)):parseFloat(F)-parseFloat(X)||0},ot=function(F,X){return typeof F=="function"&&(F=F(s,a)),F==null?X:typeof F=="string"&&F.charAt(1)==="="?parseInt(F.charAt(0)+"1",10)*parseFloat(F.substr(2))+X:parseFloat(F)||0},At=function(F,X,Y,z){var k,J,G,et,$,rt=1e-6;return typeof F=="function"&&(F=F(s,a)),F==null?et=X:typeof F=="number"?et=F:(k=360,J=F.split("_"),$=F.charAt(1)==="=",G=($?parseInt(F.charAt(0)+"1",10)*parseFloat(J[0].substr(2)):parseFloat(J[0]))*(F.indexOf("rad")===-1?1:ut)-($?0:X),J.length&&(z&&(z[Y]=X+G),F.indexOf("short")!==-1&&(G%=k,G!==G%(k/2)&&(G=G<0?G+k:G-k)),F.indexOf("_cw")!==-1&&G<0?G=(G+9999999999*k)%k-(G/k|0)*k:F.indexOf("ccw")!==-1&&G>0&&(G=(G-9999999999*k)%k-(G/k|0)*k)),et=X+G),et<rt&&et>-rt&&(et=0),et},Mt={aqua:[0,255,255],lime:[0,255,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,255],navy:[0,0,128],white:[255,255,255],fuchsia:[255,0,255],olive:[128,128,0],yellow:[255,255,0],orange:[255,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[255,0,0],pink:[255,192,203],cyan:[0,255,255],transparent:[255,255,255,0]},vt=function(F,X,Y){return F=F<0?F+1:F>1?F-1:F,255*(6*F<1?X+(Y-X)*F*6:F<.5?Y:3*F<2?X+(Y-X)*(2/3-F)*6:X)+.5|0},Rt=i.parseColor=function(F,X){var Y,z,k,J,G,et,$,rt,Q,dt,gt;if(F)if(typeof F=="number")Y=[F>>16,F>>8&255,255&F];else{if(F.charAt(F.length-1)===","&&(F=F.substr(0,F.length-1)),Mt[F])Y=Mt[F];else if(F.charAt(0)==="#")F.length===4&&(z=F.charAt(1),k=F.charAt(2),J=F.charAt(3),F="#"+z+z+k+k+J+J),F=parseInt(F.substr(1),16),Y=[F>>16,F>>8&255,255&F];else if(F.substr(0,3)==="hsl")if(Y=gt=F.match(v),X){if(F.indexOf("=")!==-1)return F.match(P)}else G=Number(Y[0])%360/360,et=Number(Y[1])/100,$=Number(Y[2])/100,k=$<=.5?$*(et+1):$+et-$*et,z=2*$-k,Y.length>3&&(Y[3]=Number(F[3])),Y[0]=vt(G+1/3,z,k),Y[1]=vt(G,z,k),Y[2]=vt(G-1/3,z,k);else Y=F.match(v)||Mt.transparent;Y[0]=Number(Y[0]),Y[1]=Number(Y[1]),Y[2]=Number(Y[2]),Y.length>3&&(Y[3]=Number(Y[3]))}else Y=Mt.black;return X&&!gt&&(z=Y[0]/255,k=Y[1]/255,J=Y[2]/255,rt=Math.max(z,k,J),Q=Math.min(z,k,J),$=(rt+Q)/2,rt===Q?G=et=0:(dt=rt-Q,et=$>.5?dt/(2-rt-Q):dt/(rt+Q),G=rt===z?(k-J)/dt+(k<J?6:0):rt===k?(J-z)/dt+2:(z-k)/dt+4,G*=60),Y[0]=G+.5|0,Y[1]=100*et+.5|0,Y[2]=100*$+.5|0),Y},qt=function(F,X){var Y,z,k,J=F.match(Gt)||[],G=0,et=J.length?"":F;for(Y=0;Y<J.length;Y++)z=J[Y],k=F.substr(G,F.indexOf(z,G)-G),G+=k.length+z.length,z=Rt(z,X),z.length===3&&z.push(1),et+=k+(X?"hsla("+z[0]+","+z[1]+"%,"+z[2]+"%,"+z[3]:"rgba("+z.join(","))+")";return et+F.substr(G)},Gt="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3}){1,2}\\b";for(h in Mt)Gt+="|"+h+"\\b";Gt=new RegExp(Gt+")","gi"),i.colorStringFilter=function(F){var X,Y=F[0]+F[1];Gt.test(Y)&&(X=Y.indexOf("hsl(")!==-1||Y.indexOf("hsla(")!==-1,F[0]=qt(F[0],X),F[1]=qt(F[1],X)),Gt.lastIndex=0},l.defaultStringFilter||(l.defaultStringFilter=i.colorStringFilter);var Wt=function(F,X,Y,z){if(F==null)return function(gt){return gt};var k,J=X?(F.match(Gt)||[""])[0]:"",G=F.split(J).join("").match(T)||[],et=F.substr(0,F.indexOf(G[0])),$=F.charAt(F.length-1)===")"?")":"",rt=F.indexOf(" ")!==-1?" ":",",Q=G.length,dt=Q>0?G[0].replace(v,""):"";return Q?k=X?function(gt){var ft,ht,xt,Pt;if(typeof gt=="number")gt+=dt;else if(z&&it.test(gt)){for(Pt=gt.replace(it,"|").split("|"),xt=0;xt<Pt.length;xt++)Pt[xt]=k(Pt[xt]);return Pt.join(",")}if(ft=(gt.match(Gt)||[J])[0],ht=gt.split(ft).join("").match(T)||[],xt=ht.length,Q>xt--)for(;++xt<Q;)ht[xt]=Y?ht[(xt-1)/2|0]:G[xt];return et+ht.join(rt)+rt+ft+$+(gt.indexOf("inset")!==-1?" inset":"")}:function(gt){var ft,ht,xt;if(typeof gt=="number")gt+=dt;else if(z&&it.test(gt)){for(ht=gt.replace(it,"|").split("|"),xt=0;xt<ht.length;xt++)ht[xt]=k(ht[xt]);return ht.join(",")}if(ft=gt.match(T)||[],xt=ft.length,Q>xt--)for(;++xt<Q;)ft[xt]=Y?ft[(xt-1)/2|0]:G[xt];return et+ft.join(rt)+$}:function(gt){return gt}},ue=function(F){return F=F.split(","),function(X,Y,z,k,J,G,et){var $,rt=(Y+"").split(" ");for(et={},$=0;$<4;$++)et[F[$]]=rt[$]=rt[$]||rt[($-1)/2>>0];return k.parse(X,et,J,G)}},fe=(It._setPluginRatio=function(F){this.plugin.setRatio(F);for(var X,Y,z,k,J,G=this.data,et=G.proxy,$=G.firstMPT,rt=1e-6;$;)X=et[$.v],$.r?X=Math.round(X):X<rt&&X>-rt&&(X=0),$.t[$.p]=X,$=$._next;if(G.autoRotate&&(G.autoRotate.rotation=G.mod?G.mod(et.rotation,this.t):et.rotation),F===1||F===0)for($=G.firstMPT,J=F===1?"e":"b";$;){if(Y=$.t,Y.type){if(Y.type===1){for(k=Y.xs0+Y.s+Y.xs1,z=1;z<Y.l;z++)k+=Y["xn"+z]+Y["xs"+(z+1)];Y[J]=k}}else Y[J]=Y.s+Y.xs0;$=$._next}},function(F,X,Y,z,k){this.t=F,this.p=X,this.v=Y,this.r=k,z&&(z._prev=this,this._next=z)}),Jt=(It._parseToProxy=function(F,X,Y,z,k,J){var G,et,$,rt,Q,dt=z,gt={},ft={},ht=Y._transform,xt=mt;for(Y._transform=null,mt=X,z=Q=Y.parse(F,X,z,k),mt=xt,J&&(Y._transform=ht,dt&&(dt._prev=null,dt._prev&&(dt._prev._next=null)));z&&z!==dt;){if(z.type<=1&&(et=z.p,ft[et]=z.s+z.c,gt[et]=z.s,J||(rt=new fe(z,"s",et,rt,z.r),z.c=0),z.type===1))for(G=z.l;--G>0;)$="xn"+G,et=z.p+"_"+$,ft[et]=z.data[$],gt[et]=z[$],J||(rt=new fe(z,$,et,rt,z.rxp[$]));z=z._next}return{proxy:gt,end:ft,firstMPT:rt,pt:Q}},It.CSSPropTween=function(F,X,Y,z,k,J,G,et,$,rt,Q){this.t=F,this.p=X,this.s=Y,this.c=z,this.n=G||X,F instanceof Jt||t.push(this.n),this.r=et,this.type=J||0,$&&(this.pr=$,f=!0),this.b=rt===void 0?Y:rt,this.e=Q===void 0?Y+z:Q,k&&(this._next=k,k._prev=this)}),we=function(F,X,Y,z,k,J){var G=new Jt(F,X,Y,z-Y,k,-1,J);return G.b=Y,G.e=G.xs0=z,G},pe=i.parseComplex=function(F,X,Y,z,k,J,G,et,$,rt){Y=Y||J||"",typeof z=="function"&&(z=z(s,a)),G=new Jt(F,X,0,0,G,rt?2:1,null,!1,et,Y,z),z+="",k&&Gt.test(z+Y)&&(z=[Y,z],i.colorStringFilter(z),Y=z[0],z=z[1]);var Q,dt,gt,ft,ht,xt,Pt,Ct,Ht,Lt,St,ct,Nt,Yt=Y.split(", ").join(",").split(" "),st=z.split(", ").join(",").split(" "),Ft=Yt.length,Xt=p!==!1;for(z.indexOf(",")===-1&&Y.indexOf(",")===-1||(Yt=Yt.join(" ").replace(it,", ").split(" "),st=st.join(" ").replace(it,", ").split(" "),Ft=Yt.length),Ft!==st.length&&(Yt=(J||"").split(" "),Ft=Yt.length),G.plugin=$,G.setRatio=rt,Gt.lastIndex=0,Q=0;Q<Ft;Q++)if(ft=Yt[Q],ht=st[Q],Ct=parseFloat(ft),Ct||Ct===0)G.appendXtra("",Ct,pt(ht,Ct),ht.replace(P,""),Xt&&ht.indexOf("px")!==-1,!0);else if(k&&Gt.test(ft))ct=ht.indexOf(")")+1,ct=")"+(ct?ht.substr(ct):""),Nt=ht.indexOf("hsl")!==-1&&kt,ft=Rt(ft,Nt),ht=Rt(ht,Nt),Ht=ft.length+ht.length>6,Ht&&!kt&&ht[3]===0?(G["xs"+G.l]+=G.l?" transparent":"transparent",G.e=G.e.split(st[Q]).join("transparent")):(kt||(Ht=!1),Nt?G.appendXtra(Ht?"hsla(":"hsl(",ft[0],pt(ht[0],ft[0]),",",!1,!0).appendXtra("",ft[1],pt(ht[1],ft[1]),"%,",!1).appendXtra("",ft[2],pt(ht[2],ft[2]),Ht?"%,":"%"+ct,!1):G.appendXtra(Ht?"rgba(":"rgb(",ft[0],ht[0]-ft[0],",",!0,!0).appendXtra("",ft[1],ht[1]-ft[1],",",!0).appendXtra("",ft[2],ht[2]-ft[2],Ht?",":ct,!0),Ht&&(ft=ft.length<4?1:ft[3],G.appendXtra("",ft,(ht.length<4?1:ht[3])-ft,ct,!1))),Gt.lastIndex=0;else if(xt=ft.match(v)){if(Pt=ht.match(P),!Pt||Pt.length!==xt.length)return G;for(gt=0,dt=0;dt<xt.length;dt++)St=xt[dt],Lt=ft.indexOf(St,gt),G.appendXtra(ft.substr(gt,Lt-gt),Number(St),pt(Pt[dt],St),"",Xt&&ft.substr(Lt+St.length,2)==="px",dt===0),gt=Lt+St.length;G["xs"+G.l]+=ft.substr(gt)}else G["xs"+G.l]+=G.l||G["xs"+G.l]?" "+ht:ht;if(z.indexOf("=")!==-1&&G.data){for(ct=G.xs0+G.data.s,Q=1;Q<G.l;Q++)ct+=G["xs"+Q]+G.data["xn"+Q];G.e=ct+G["xs"+Q]}return G.l||(G.type=-1,G.xs0=G.e),G.xfirst||G},ie=9;for(h=Jt.prototype,h.l=h.pr=0;--ie>0;)h["xn"+ie]=0,h["xs"+ie]="";h.xs0="",h._next=h._prev=h.xfirst=h.data=h.plugin=h.setRatio=h.rxp=null,h.appendXtra=function(F,X,Y,z,k,J){var G=this,et=G.l;return G["xs"+et]+=J&&(et||G["xs"+et])?" "+F:F||"",Y||et===0||G.plugin?(G.l++,G.type=G.setRatio?2:1,G["xs"+G.l]=z||"",et>0?(G.data["xn"+et]=X+Y,G.rxp["xn"+et]=k,G["xn"+et]=X,G.plugin||(G.xfirst=new Jt(G,"xn"+et,X,Y,G.xfirst||G,0,G.n,k,G.pr),G.xfirst.xs0=0),G):(G.data={s:X+Y},G.rxp={},G.s=X,G.c=Y,G.r=k,G)):(G["xs"+et]+=X+(z||""),G)};var De=function(F,X){X=X||{},this.p=X.prefix&&_t(F)||F,r[F]=r[this.p]=this,this.format=X.formatter||Wt(X.defaultValue,X.color,X.collapsible,X.multi),X.parser&&(this.parse=X.parser),this.clrs=X.color,this.multi=X.multi,this.keyword=X.keyword,this.dflt=X.defaultValue,this.pr=X.priority||0},Kt=It._registerComplexSpecialProp=function(F,X,Y){typeof X!="object"&&(X={parser:Y});var z,k,J=F.split(","),G=X.defaultValue;for(Y=Y||[G],z=0;z<J.length;z++)X.prefix=z===0&&X.prefix,X.defaultValue=Y[z]||G,k=new De(J[z],X)},ke=It._registerPluginProp=function(F){if(!r[F]){var X=F.charAt(0).toUpperCase()+F.substr(1)+"Plugin";Kt(F,{parser:function(Y,z,k,J,G,et,$){var rt=n.com.greensock.plugins[X];return rt?(rt._cssRegister(),r[k].parse(Y,z,k,J,G,et,$)):(Ut("Error: "+X+" js file not loaded."),G)}})}};h=De.prototype,h.parseComplex=function(F,X,Y,z,k,J){var G,et,$,rt,Q,dt,gt=this.keyword;if(this.multi&&(it.test(Y)||it.test(X)?(et=X.replace(it,"|").split("|"),$=Y.replace(it,"|").split("|")):gt&&(et=[X],$=[Y])),$){for(rt=$.length>et.length?$.length:et.length,G=0;G<rt;G++)X=et[G]=et[G]||this.dflt,Y=$[G]=$[G]||this.dflt,gt&&(Q=X.indexOf(gt),dt=Y.indexOf(gt),Q!==dt&&(dt===-1?et[G]=et[G].split(gt).join(""):Q===-1&&(et[G]+=" "+gt)));X=et.join(", "),Y=$.join(", ")}return pe(F,this.p,X,Y,this.clrs,this.dflt,z,this.pr,k,J)},h.parse=function(F,X,Y,z,k,J,G){return this.parseComplex(F.style,this.format(Ot(F,this.p,e,!1,this.dflt)),this.format(X),k,J)},i.registerSpecialProp=function(F,X,Y){Kt(F,{parser:function(z,k,J,G,et,$,rt){var Q=new Jt(z,J,0,0,et,2,J,!1,Y);return Q.plugin=$,Q.setRatio=X(z,k,G._tween,J),Q},priority:Y})},i.useSVGTransformAttr=y||d;var ce,Ie="scaleX,scaleY,scaleZ,x,y,z,skewX,skewY,rotation,rotationX,rotationY,perspective,xPercent,yPercent".split(","),ne=_t("transform"),Se=Vt+"transform",_e=_t("transformOrigin"),le=_t("perspective")!==null,Ee=It.Transform=function(){this.perspective=parseFloat(i.defaultTransformPerspective)||0,this.force3D=!(i.defaultForce3D===!1||!le)&&(i.defaultForce3D||"auto")},Fe=window.SVGElement,Le=function(F,X,Y){var z,k=wt.createElementNS("http://www.w3.org/2000/svg",F),J=/([a-z])([A-Z])/g;for(z in Y)k.setAttributeNS(null,z.replace(J,"$1-$2").toLowerCase(),Y[z]);return X.appendChild(k),k},Oe=wt.documentElement,je=function(){var F,X,Y,z=g||/Android/i.test(bt)&&!window.chrome;return wt.createElementNS&&!z&&(F=Le("svg",Oe),X=Le("rect",F,{width:100,height:50,x:100}),Y=X.getBoundingClientRect().width,X.style[_e]="50% 50%",X.style[ne]="scaleX(0.5)",z=Y===X.getBoundingClientRect().width&&!(d&&le),Oe.removeChild(F)),z}(),Me=function(F,X,Y,z,k,J){var G,et,$,rt,Q,dt,gt,ft,ht,xt,Pt,Ct,Ht,Lt,St=F._gsTransform,ct=Ae(F,!0);St&&(Ht=St.xOrigin,Lt=St.yOrigin),(!z||(G=z.split(" ")).length<2)&&(gt=F.getBBox(),X=lt(X).split(" "),G=[(X[0].indexOf("%")!==-1?parseFloat(X[0])/100*gt.width:parseFloat(X[0]))+gt.x,(X[1].indexOf("%")!==-1?parseFloat(X[1])/100*gt.height:parseFloat(X[1]))+gt.y]),Y.xOrigin=rt=parseFloat(G[0]),Y.yOrigin=Q=parseFloat(G[1]),z&&ct!==Re&&(dt=ct[0],gt=ct[1],ft=ct[2],ht=ct[3],xt=ct[4],Pt=ct[5],Ct=dt*ht-gt*ft,et=rt*(ht/Ct)+Q*(-ft/Ct)+(ft*Pt-ht*xt)/Ct,$=rt*(-gt/Ct)+Q*(dt/Ct)-(dt*Pt-gt*xt)/Ct,rt=Y.xOrigin=G[0]=et,Q=Y.yOrigin=G[1]=$),St&&(J&&(Y.xOffset=St.xOffset,Y.yOffset=St.yOffset,St=Y),k||k!==!1&&i.defaultSmoothOrigin!==!1?(et=rt-Ht,$=Q-Lt,St.xOffset+=et*ct[0]+$*ct[2]-et,St.yOffset+=et*ct[1]+$*ct[3]-$):St.xOffset=St.yOffset=0),J||F.setAttribute("data-svg-origin",G.join(" "))},Ne=function(F){try{return F.getBBox()}catch(X){}},Ce=function(F){return!!(Fe&&F.getBBox&&F.getCTM&&Ne(F)&&(!F.parentNode||F.parentNode.getBBox&&F.parentNode.getCTM))},Re=[1,0,0,1,0,0],Ae=function(F,X){var Y,z,k,J,G,et,$=F._gsTransform||new Ee,rt=1e5,Q=F.style;if(ne?z=Ot(F,Se,null,!0):F.currentStyle&&(z=F.currentStyle.filter.match(H),z=z&&z.length===4?[z[0].substr(4),Number(z[2].substr(4)),Number(z[1].substr(4)),z[3].substr(4),$.x||0,$.y||0].join(","):""),Y=!z||z==="none"||z==="matrix(1, 0, 0, 1, 0, 0)",Y&&ne&&((et=Et(F).display==="none")||!F.parentNode)&&(et&&(J=Q.display,Q.display="block"),F.parentNode||(G=1,Oe.appendChild(F)),z=Ot(F,Se,null,!0),Y=!z||z==="none"||z==="matrix(1, 0, 0, 1, 0, 0)",J?Q.display=J:et&&me(Q,"display"),G&&Oe.removeChild(F)),($.svg||F.getBBox&&Ce(F))&&(Y&&(Q[ne]+"").indexOf("matrix")!==-1&&(z=Q[ne],Y=0),k=F.getAttribute("transform"),Y&&k&&(k.indexOf("matrix")!==-1?(z=k,Y=0):k.indexOf("translate")!==-1&&(z="matrix(1,0,0,1,"+k.match(/(?:\-|\b)[\d\-\.e]+\b/gi).join(",")+")",Y=0))),Y)return Re;for(k=(z||"").match(v)||[],ie=k.length;--ie>-1;)J=Number(k[ie]),k[ie]=(G=J-(J|=0))?(G*rt+(G<0?-.5:.5)|0)/rt+J:J;return X&&k.length>6?[k[0],k[1],k[4],k[5],k[12],k[13]]:k},ge=It.getTransform=function(F,X,Y,z){if(F._gsTransform&&Y&&!z)return F._gsTransform;var k,J,G,et,$,rt,Q=Y?F._gsTransform||new Ee:new Ee,dt=Q.scaleX<0,gt=2e-5,ft=1e5,ht=le&&(parseFloat(Ot(F,_e,X,!1,"0 0 0").split(" ")[2])||Q.zOrigin)||0,xt=parseFloat(i.defaultTransformPerspective)||0;if(Q.svg=!(!F.getBBox||!Ce(F)),Q.svg&&(Me(F,Ot(F,_e,X,!1,"50% 50%")+"",Q,F.getAttribute("data-svg-origin")),ce=i.useSVGTransformAttr||je),k=Ae(F),k!==Re){if(k.length===16){var Pt,Ct,Ht,Lt,St,ct=k[0],Nt=k[1],Yt=k[2],st=k[3],Ft=k[4],Xt=k[5],he=k[6],de=k[7],ee=k[8],Qt=k[9],te=k[10],re=k[12],oe=k[13],ae=k[14],se=k[11],$t=Math.atan2(he,te);Q.zOrigin&&(ae=-Q.zOrigin,re=ee*ae-k[12],oe=Qt*ae-k[13],ae=te*ae+Q.zOrigin-k[14]),Q.rotationX=$t*ut,$t&&(Lt=Math.cos(-$t),St=Math.sin(-$t),Pt=Ft*Lt+ee*St,Ct=Xt*Lt+Qt*St,Ht=he*Lt+te*St,ee=Ft*-St+ee*Lt,Qt=Xt*-St+Qt*Lt,te=he*-St+te*Lt,se=de*-St+se*Lt,Ft=Pt,Xt=Ct,he=Ht),$t=Math.atan2(-Yt,te),Q.rotationY=$t*ut,$t&&(Lt=Math.cos(-$t),St=Math.sin(-$t),Pt=ct*Lt-ee*St,Ct=Nt*Lt-Qt*St,Ht=Yt*Lt-te*St,Qt=Nt*St+Qt*Lt,te=Yt*St+te*Lt,se=st*St+se*Lt,ct=Pt,Nt=Ct,Yt=Ht),$t=Math.atan2(Nt,ct),Q.rotation=$t*ut,$t&&(Lt=Math.cos(-$t),St=Math.sin(-$t),ct=ct*Lt+Ft*St,Ct=Nt*Lt+Xt*St,Xt=Nt*-St+Xt*Lt,he=Yt*-St+he*Lt,Nt=Ct),Q.rotationX&&Math.abs(Q.rotationX)+Math.abs(Q.rotation)>359.9&&(Q.rotationX=Q.rotation=0,Q.rotationY=180-Q.rotationY),Q.scaleX=(Math.sqrt(ct*ct+Nt*Nt)*ft+.5|0)/ft,Q.scaleY=(Math.sqrt(Xt*Xt+Qt*Qt)*ft+.5|0)/ft,Q.scaleZ=(Math.sqrt(he*he+te*te)*ft+.5|0)/ft,Q.rotationX||Q.rotationY?Q.skewX=0:(Q.skewX=Ft||Xt?Math.atan2(Ft,Xt)*ut+Q.rotation:Q.skewX||0,Math.abs(Q.skewX)>90&&Math.abs(Q.skewX)<270&&(dt?(Q.scaleX*=-1,Q.skewX+=Q.rotation<=0?180:-180,Q.rotation+=Q.rotation<=0?180:-180):(Q.scaleY*=-1,Q.skewX+=Q.skewX<=0?180:-180))),Q.perspective=se?1/(se<0?-se:se):0,Q.x=re,Q.y=oe,Q.z=ae,Q.svg&&(Q.x-=Q.xOrigin-(Q.xOrigin*ct-Q.yOrigin*Ft),Q.y-=Q.yOrigin-(Q.yOrigin*Nt-Q.xOrigin*Xt))}else if(!le||z||!k.length||Q.x!==k[4]||Q.y!==k[5]||!Q.rotationX&&!Q.rotationY){var ve=k.length>=6,ye=ve?k[0]:1,be=k[1]||0,xe=k[2]||0,Te=ve?k[3]:1;Q.x=k[4]||0,Q.y=k[5]||0,G=Math.sqrt(ye*ye+be*be),et=Math.sqrt(Te*Te+xe*xe),$=ye||be?Math.atan2(be,ye)*ut:Q.rotation||0,rt=xe||Te?Math.atan2(xe,Te)*ut+$:Q.skewX||0,Math.abs(rt)>90&&Math.abs(rt)<270&&(dt?(G*=-1,rt+=$<=0?180:-180,$+=$<=0?180:-180):(et*=-1,rt+=rt<=0?180:-180)),Q.scaleX=G,Q.scaleY=et,Q.rotation=$,Q.skewX=rt,le&&(Q.rotationX=Q.rotationY=Q.z=0,Q.perspective=xt,Q.scaleZ=1),Q.svg&&(Q.x-=Q.xOrigin-(Q.xOrigin*ye+Q.yOrigin*xe),Q.y-=Q.yOrigin-(Q.xOrigin*be+Q.yOrigin*Te))}Q.zOrigin=ht;for(J in Q)Q[J]<gt&&Q[J]>-gt&&(Q[J]=0)}return Y&&(F._gsTransform=Q,Q.svg&&(ce&&F.style[ne]?l.delayedCall(.001,function(){me(F.style,ne)}):!ce&&F.getAttribute("transform")&&l.delayedCall(.001,function(){F.removeAttribute("transform")}))),Q},Be=function(F){var X,Y,z=this.data,k=-z.rotation*at,J=k+z.skewX*at,G=1e5,et=(Math.cos(k)*z.scaleX*G|0)/G,$=(Math.sin(k)*z.scaleX*G|0)/G,rt=(Math.sin(J)*-z.scaleY*G|0)/G,Q=(Math.cos(J)*z.scaleY*G|0)/G,dt=this.t.style,gt=this.t.currentStyle;if(gt){Y=$,$=-rt,rt=-Y,X=gt.filter,dt.filter="";var ft,ht,xt=this.t.offsetWidth,Pt=this.t.offsetHeight,Ct=gt.position!=="absolute",Ht="progid:DXImageTransform.Microsoft.Matrix(M11="+et+", M12="+$+", M21="+rt+", M22="+Q,Lt=z.x+xt*z.xPercent/100,St=z.y+Pt*z.yPercent/100;if(z.ox!=null&&(ft=(z.oxp?xt*z.ox*.01:z.ox)-xt/2,ht=(z.oyp?Pt*z.oy*.01:z.oy)-Pt/2,Lt+=ft-(ft*et+ht*$),St+=ht-(ft*rt+ht*Q)),Ct?(ft=xt/2,ht=Pt/2,Ht+=", Dx="+(ft-(ft*et+ht*$)+Lt)+", Dy="+(ht-(ft*rt+ht*Q)+St)+")"):Ht+=", sizingMethod='auto expand')",X.indexOf("DXImageTransform.Microsoft.Matrix(")!==-1?dt.filter=X.replace(tt,Ht):dt.filter=Ht+" "+X,F!==0&&F!==1||et===1&&$===0&&rt===0&&Q===1&&(Ct&&Ht.indexOf("Dx=0, Dy=0")===-1||R.test(X)&&parseFloat(RegExp.$1)!==100||X.indexOf(X.indexOf("Alpha"))===-1&&dt.removeAttribute("filter")),!Ct){var ct,Nt,Yt,st=g<8?1:-1;for(ft=z.ieOffsetX||0,ht=z.ieOffsetY||0,z.ieOffsetX=Math.round((xt-((et<0?-et:et)*xt+($<0?-$:$)*Pt))/2+Lt),z.ieOffsetY=Math.round((Pt-((Q<0?-Q:Q)*Pt+(rt<0?-rt:rt)*xt))/2+St),ie=0;ie<4;ie++)Nt=Z[ie],ct=gt[Nt],Y=ct.indexOf("px")!==-1?parseFloat(ct):zt(this.t,Nt,parseFloat(ct),ct.replace(M,""))||0,Yt=Y!==z[Nt]?ie<2?-z.ieOffsetX:-z.ieOffsetY:ie<2?ft-z.ieOffsetX:ht-z.ieOffsetY,dt[Nt]=(z[Nt]=Math.round(Y-Yt*(ie===0||ie===2?1:st)))+"px"}}},Ue=It.set3DTransformRatio=It.setTransformRatio=function(F){var X,Y,z,k,J,G,et,$,rt,Q,dt,gt,ft,ht,xt,Pt,Ct,Ht,Lt,St,ct,Nt,Yt,st=this.data,Ft=this.t.style,Xt=st.rotation,he=st.rotationX,de=st.rotationY,ee=st.scaleX,Qt=st.scaleY,te=st.scaleZ,re=st.x,oe=st.y,ae=st.z,se=st.svg,$t=st.perspective,ve=st.force3D;if(((F===1||F===0)&&ve==="auto"&&(this.tween._totalTime===this.tween._totalDuration||!this.tween._totalTime)||!ve)&&!ae&&!$t&&!de&&!he&&te===1||ce&&se||!le)return void(Xt||st.skewX||se?(Xt*=at,Nt=st.skewX*at,Yt=1e5,X=Math.cos(Xt)*ee,k=Math.sin(Xt)*ee,Y=Math.sin(Xt-Nt)*-Qt,J=Math.cos(Xt-Nt)*Qt,Nt&&st.skewType==="simple"&&(Ct=Math.tan(Nt-st.skewY*at),Ct=Math.sqrt(1+Ct*Ct),Y*=Ct,J*=Ct,st.skewY&&(Ct=Math.tan(st.skewY*at),Ct=Math.sqrt(1+Ct*Ct),X*=Ct,k*=Ct)),se&&(re+=st.xOrigin-(st.xOrigin*X+st.yOrigin*Y)+st.xOffset,oe+=st.yOrigin-(st.xOrigin*k+st.yOrigin*J)+st.yOffset,ce&&(st.xPercent||st.yPercent)&&(ht=this.t.getBBox(),re+=.01*st.xPercent*ht.width,oe+=.01*st.yPercent*ht.height),ht=1e-6,re<ht&&re>-ht&&(re=0),oe<ht&&oe>-ht&&(oe=0)),Lt=(X*Yt|0)/Yt+","+(k*Yt|0)/Yt+","+(Y*Yt|0)/Yt+","+(J*Yt|0)/Yt+","+re+","+oe+")",se&&ce?this.t.setAttribute("transform","matrix("+Lt):Ft[ne]=(st.xPercent||st.yPercent?"translate("+st.xPercent+"%,"+st.yPercent+"%) matrix(":"matrix(")+Lt):Ft[ne]=(st.xPercent||st.yPercent?"translate("+st.xPercent+"%,"+st.yPercent+"%) matrix(":"matrix(")+ee+",0,0,"+Qt+","+re+","+oe+")");if(d&&(ht=1e-4,ee<ht&&ee>-ht&&(ee=te=2e-5),Qt<ht&&Qt>-ht&&(Qt=te=2e-5),!$t||st.z||st.rotationX||st.rotationY||($t=0)),Xt||st.skewX)Xt*=at,xt=X=Math.cos(Xt),Pt=k=Math.sin(Xt),st.skewX&&(Xt-=st.skewX*at,xt=Math.cos(Xt),Pt=Math.sin(Xt),st.skewType==="simple"&&(Ct=Math.tan((st.skewX-st.skewY)*at),Ct=Math.sqrt(1+Ct*Ct),xt*=Ct,Pt*=Ct,st.skewY&&(Ct=Math.tan(st.skewY*at),Ct=Math.sqrt(1+Ct*Ct),X*=Ct,k*=Ct))),Y=-Pt,J=xt;else{if(!(de||he||te!==1||$t||se))return void(Ft[ne]=(st.xPercent||st.yPercent?"translate("+st.xPercent+"%,"+st.yPercent+"%) translate3d(":"translate3d(")+re+"px,"+oe+"px,"+ae+"px)"+(ee!==1||Qt!==1?" scale("+ee+","+Qt+")":""));X=J=1,Y=k=0}rt=1,z=G=et=$=Q=dt=0,gt=$t?-1/$t:0,ft=st.zOrigin,ht=1e-6,St=",",ct="0",Xt=de*at,Xt&&(xt=Math.cos(Xt),Pt=Math.sin(Xt),et=-Pt,Q=gt*-Pt,z=X*Pt,G=k*Pt,rt=xt,gt*=xt,X*=xt,k*=xt),Xt=he*at,Xt&&(xt=Math.cos(Xt),Pt=Math.sin(Xt),Ct=Y*xt+z*Pt,Ht=J*xt+G*Pt,$=rt*Pt,dt=gt*Pt,z=Y*-Pt+z*xt,G=J*-Pt+G*xt,rt*=xt,gt*=xt,Y=Ct,J=Ht),te!==1&&(z*=te,G*=te,rt*=te,gt*=te),Qt!==1&&(Y*=Qt,J*=Qt,$*=Qt,dt*=Qt),ee!==1&&(X*=ee,k*=ee,et*=ee,Q*=ee),(ft||se)&&(ft&&(re+=z*-ft,oe+=G*-ft,ae+=rt*-ft+ft),se&&(re+=st.xOrigin-(st.xOrigin*X+st.yOrigin*Y)+st.xOffset,oe+=st.yOrigin-(st.xOrigin*k+st.yOrigin*J)+st.yOffset),re<ht&&re>-ht&&(re=ct),oe<ht&&oe>-ht&&(oe=ct),ae<ht&&ae>-ht&&(ae=0)),Lt=st.xPercent||st.yPercent?"translate("+st.xPercent+"%,"+st.yPercent+"%) matrix3d(":"matrix3d(",Lt+=(X<ht&&X>-ht?ct:X)+St+(k<ht&&k>-ht?ct:k)+St+(et<ht&&et>-ht?ct:et),Lt+=St+(Q<ht&&Q>-ht?ct:Q)+St+(Y<ht&&Y>-ht?ct:Y)+St+(J<ht&&J>-ht?ct:J),he||de||te!==1?(Lt+=St+($<ht&&$>-ht?ct:$)+St+(dt<ht&&dt>-ht?ct:dt)+St+(z<ht&&z>-ht?ct:z),Lt+=St+(G<ht&&G>-ht?ct:G)+St+(rt<ht&&rt>-ht?ct:rt)+St+(gt<ht&>>-ht?ct:gt)+St):Lt+=",0,0,0,0,1,0,",Lt+=re+St+oe+St+ae+St+($t?1+-ae/$t:1)+")",Ft[ne]=Lt};h=Ee.prototype,h.x=h.y=h.z=h.skewX=h.skewY=h.rotation=h.rotationX=h.rotationY=h.zOrigin=h.xPercent=h.yPercent=h.xOffset=h.yOffset=0,h.scaleX=h.scaleY=h.scaleZ=1,Kt("transform,scale,scaleX,scaleY,scaleZ,x,y,z,rotation,rotationX,rotationY,rotationZ,skewX,skewY,shortRotation,shortRotationX,shortRotationY,shortRotationZ,transformOrigin,svgOrigin,transformPerspective,directionalRotation,parseTransform,force3D,skewType,xPercent,yPercent,smoothOrigin",{parser:function(F,X,Y,z,k,J,G){if(z._lastParsedTransform===G)return k;z._lastParsedTransform=G;var et;typeof G[Y]=="function"&&(et=G[Y],G[Y]=X);var $,rt,Q,dt,gt,ft,ht,xt,Pt,Ct=F._gsTransform,Ht=F.style,Lt=1e-6,St=Ie.length,ct=G,Nt={},Yt="transformOrigin",st=ge(F,e,!0,ct.parseTransform),Ft=ct.transform&&(typeof ct.transform=="function"?ct.transform(s,a):ct.transform);if(z._transform=st,Ft&&typeof Ft=="string"&&ne)rt=yt.style,rt[ne]=Ft,rt.display="block",rt.position="absolute",wt.body.appendChild(yt),$=ge(yt,null,!1),st.svg&&(ft=st.xOrigin,ht=st.yOrigin,$.x-=st.xOffset,$.y-=st.yOffset,(ct.transformOrigin||ct.svgOrigin)&&(Ft={},Me(F,lt(ct.transformOrigin),Ft,ct.svgOrigin,ct.smoothOrigin,!0),ft=Ft.xOrigin,ht=Ft.yOrigin,$.x-=Ft.xOffset-st.xOffset,$.y-=Ft.yOffset-st.yOffset),(ft||ht)&&(xt=Ae(yt,!0),$.x-=ft-(ft*xt[0]+ht*xt[2]),$.y-=ht-(ft*xt[1]+ht*xt[3]))),wt.body.removeChild(yt),$.perspective||($.perspective=st.perspective),ct.xPercent!=null&&($.xPercent=ot(ct.xPercent,st.xPercent)),ct.yPercent!=null&&($.yPercent=ot(ct.yPercent,st.yPercent));else if(typeof ct=="object"){if($={scaleX:ot(ct.scaleX!=null?ct.scaleX:ct.scale,st.scaleX),scaleY:ot(ct.scaleY!=null?ct.scaleY:ct.scale,st.scaleY),scaleZ:ot(ct.scaleZ,st.scaleZ),x:ot(ct.x,st.x),y:ot(ct.y,st.y),z:ot(ct.z,st.z),xPercent:ot(ct.xPercent,st.xPercent),yPercent:ot(ct.yPercent,st.yPercent),perspective:ot(ct.transformPerspective,st.perspective)},gt=ct.directionalRotation,gt!=null)if(typeof gt=="object")for(rt in gt)ct[rt]=gt[rt];else ct.rotation=gt;typeof ct.x=="string"&&ct.x.indexOf("%")!==-1&&($.x=0,$.xPercent=ot(ct.x,st.xPercent)),typeof ct.y=="string"&&ct.y.indexOf("%")!==-1&&($.y=0,$.yPercent=ot(ct.y,st.yPercent)),$.rotation=At("rotation"in ct?ct.rotation:"shortRotation"in ct?ct.shortRotation+"_short":"rotationZ"in ct?ct.rotationZ:st.rotation-st.skewY,st.rotation-st.skewY,"rotation",Nt),le&&($.rotationX=At("rotationX"in ct?ct.rotationX:"shortRotationX"in ct?ct.shortRotationX+"_short":st.rotationX||0,st.rotationX,"rotationX",Nt),$.rotationY=At("rotationY"in ct?ct.rotationY:"shortRotationY"in ct?ct.shortRotationY+"_short":st.rotationY||0,st.rotationY,"rotationY",Nt)),$.skewX=At(ct.skewX,st.skewX-st.skewY),($.skewY=At(ct.skewY,st.skewY))&&($.skewX+=$.skewY,$.rotation+=$.skewY)}for(le&&ct.force3D!=null&&(st.force3D=ct.force3D,dt=!0),st.skewType=ct.skewType||st.skewType||i.defaultSkewType,Q=st.force3D||st.z||st.rotationX||st.rotationY||$.z||$.rotationX||$.rotationY||$.perspective,Q||ct.scale==null||($.scaleZ=1);--St>-1;)Pt=Ie[St],Ft=$[Pt]-st[Pt],(Ft>Lt||Ft<-Lt||ct[Pt]!=null||mt[Pt]!=null)&&(dt=!0,k=new Jt(st,Pt,st[Pt],Ft,k),Pt in Nt&&(k.e=Nt[Pt]),k.xs0=0,k.plugin=J,z._overwriteProps.push(k.n));return Ft=ct.transformOrigin,st.svg&&(Ft||ct.svgOrigin)&&(ft=st.xOffset,ht=st.yOffset,Me(F,lt(Ft),$,ct.svgOrigin,ct.smoothOrigin),k=we(st,"xOrigin",(Ct?st:$).xOrigin,$.xOrigin,k,Yt),k=we(st,"yOrigin",(Ct?st:$).yOrigin,$.yOrigin,k,Yt),ft===st.xOffset&&ht===st.yOffset||(k=we(st,"xOffset",Ct?ft:st.xOffset,st.xOffset,k,Yt),k=we(st,"yOffset",Ct?ht:st.yOffset,st.yOffset,k,Yt)),Ft=ce?null:"0px 0px"),(Ft||le&&Q&&st.zOrigin)&&(ne?(dt=!0,Pt=_e,Ft=(Ft||Ot(F,Pt,e,!1,"50% 50%"))+"",k=new Jt(Ht,Pt,0,0,k,-1,Yt),k.b=Ht[Pt],k.plugin=J,le?(rt=st.zOrigin,Ft=Ft.split(" "),st.zOrigin=(Ft.length>2&&(rt===0||Ft[2]!=="0px")?parseFloat(Ft[2]):rt)||0,k.xs0=k.e=Ft[0]+" "+(Ft[1]||"50%")+" 0px",k=new Jt(st,"zOrigin",0,0,k,-1,k.n),k.b=rt,k.xs0=k.e=st.zOrigin):k.xs0=k.e=Ft):lt(Ft+"",st)),dt&&(z._transformType=st.svg&&ce||!Q&&this._transformType!==3?2:3),et&&(G[Y]=et),k},prefix:!0}),Kt("boxShadow",{defaultValue:"0px 0px 0px 0px #999",prefix:!0,color:!0,multi:!0,keyword:"inset"}),Kt("borderRadius",{defaultValue:"0px",parser:function(F,X,Y,z,k,J){X=this.format(X);var G,et,$,rt,Q,dt,gt,ft,ht,xt,Pt,Ct,Ht,Lt,St,ct,Nt=["borderTopLeftRadius","borderTopRightRadius","borderBottomRightRadius","borderBottomLeftRadius"],Yt=F.style;for(ht=parseFloat(F.offsetWidth),xt=parseFloat(F.offsetHeight),G=X.split(" "),et=0;et<Nt.length;et++)this.p.indexOf("border")&&(Nt[et]=_t(Nt[et])),Q=rt=Ot(F,Nt[et],e,!1,"0px"),Q.indexOf(" ")!==-1&&(rt=Q.split(" "),Q=rt[0],rt=rt[1]),dt=$=G[et],gt=parseFloat(Q),Ct=Q.substr((gt+"").length),Ht=dt.charAt(1)==="=",Ht?(ft=parseInt(dt.charAt(0)+"1",10),dt=dt.substr(2),ft*=parseFloat(dt),Pt=dt.substr((ft+"").length-(ft<0?1:0))||""):(ft=parseFloat(dt),Pt=dt.substr((ft+"").length)),Pt===""&&(Pt=o[Y]||Ct),Pt!==Ct&&(Lt=zt(F,"borderLeft",gt,Ct),St=zt(F,"borderTop",gt,Ct),Pt==="%"?(Q=Lt/ht*100+"%",rt=St/xt*100+"%"):Pt==="em"?(ct=zt(F,"borderLeft",1,"em"),Q=Lt/ct+"em",rt=St/ct+"em"):(Q=Lt+"px",rt=St+"px"),Ht&&(dt=parseFloat(Q)+ft+Pt,$=parseFloat(rt)+ft+Pt)),k=pe(Yt,Nt[et],Q+" "+rt,dt+" "+$,!1,"0px",k);return k},prefix:!0,formatter:Wt("0px 0px 0px 0px",!1,!0)}),Kt("borderBottomLeftRadius,borderBottomRightRadius,borderTopLeftRadius,borderTopRightRadius",{defaultValue:"0px",parser:function(F,X,Y,z,k,J){return pe(F.style,Y,this.format(Ot(F,Y,e,!1,"0px 0px")),this.format(X),!1,"0px",k)},prefix:!0,formatter:Wt("0px 0px",!1,!0)}),Kt("backgroundPosition",{defaultValue:"0 0",parser:function(F,X,Y,z,k,J){var G,et,$,rt,Q,dt,gt="background-position",ft=e||Et(F,null),ht=this.format((ft?g?ft.getPropertyValue(gt+"-x")+" "+ft.getPropertyValue(gt+"-y"):ft.getPropertyValue(gt):F.currentStyle.backgroundPositionX+" "+F.currentStyle.backgroundPositionY)||"0 0"),xt=this.format(X);if(ht.indexOf("%")!==-1!=(xt.indexOf("%")!==-1)&&xt.split(",").length<2&&(dt=Ot(F,"backgroundImage").replace(U,""),dt&&dt!=="none")){for(G=ht.split(" "),et=xt.split(" "),Tt.setAttribute("src",dt),$=2;--$>-1;)ht=G[$],rt=ht.indexOf("%")!==-1,rt!==(et[$].indexOf("%")!==-1)&&(Q=$===0?F.offsetWidth-Tt.width:F.offsetHeight-Tt.height,G[$]=rt?parseFloat(ht)/100*Q+"px":parseFloat(ht)/Q*100+"%");ht=G.join(" ")}return this.parseComplex(F.style,ht,xt,k,J)},formatter:lt}),Kt("backgroundSize",{defaultValue:"0 0",formatter:function(F){return F+="",lt(F.indexOf(" ")===-1?F+" "+F:F)}}),Kt("perspective",{defaultValue:"0px",prefix:!0}),Kt("perspectiveOrigin",{defaultValue:"50% 50%",prefix:!0}),Kt("transformStyle",{prefix:!0}),Kt("backfaceVisibility",{prefix:!0}),Kt("userSelect",{prefix:!0}),Kt("margin",{parser:ue("marginTop,marginRight,marginBottom,marginLeft")}),Kt("padding",{parser:ue("paddingTop,paddingRight,paddingBottom,paddingLeft")}),Kt("clip",{defaultValue:"rect(0px,0px,0px,0px)",parser:function(F,X,Y,z,k,J){var G,et,$;return g<9?(et=F.currentStyle,$=g<8?" ":",",G="rect("+et.clipTop+$+et.clipRight+$+et.clipBottom+$+et.clipLeft+")",X=this.format(X).split(",").join($)):(G=this.format(Ot(F,this.p,e,!1,this.dflt)),X=this.format(X)),this.parseComplex(F.style,G,X,k,J)}}),Kt("textShadow",{defaultValue:"0px 0px 0px #999",color:!0,multi:!0}),Kt("autoRound,strictUnits",{parser:function(F,X,Y,z,k){return k}}),Kt("border",{defaultValue:"0px solid #000",parser:function(F,X,Y,z,k,J){var G=Ot(F,"borderTopWidth",e,!1,"0px"),et=this.format(X).split(" "),$=et[0].replace(M,"");return $!=="px"&&(G=parseFloat(G)/zt(F,"borderTopWidth",1,$)+$),this.parseComplex(F.style,this.format(G+" "+Ot(F,"borderTopStyle",e,!1,"solid")+" "+Ot(F,"borderTopColor",e,!1,"#000")),et.join(" "),k,J)},color:!0,formatter:function(F){var X=F.split(" ");return X[0]+" "+(X[1]||"solid")+" "+(F.match(Gt)||["#000"])[0]}}),Kt("borderWidth",{parser:ue("borderTopWidth,borderRightWidth,borderBottomWidth,borderLeftWidth")}),Kt("float,cssFloat,styleFloat",{parser:function(F,X,Y,z,k,J){var G=F.style,et="cssFloat"in G?"cssFloat":"styleFloat";return new Jt(G,et,0,0,k,-1,Y,!1,0,G[et],X)}});var Xe=function(F){var X,Y=this.t,z=Y.filter||Ot(this.data,"filter")||"",k=this.s+this.c*F|0;k===100&&(z.indexOf("atrix(")===-1&&z.indexOf("radient(")===-1&&z.indexOf("oader(")===-1?(Y.removeAttribute("filter"),X=!Ot(this.data,"filter")):(Y.filter=z.replace(L,""),X=!0)),X||(this.xn1&&(Y.filter=z=z||"alpha(opacity="+k+")"),z.indexOf("pacity")===-1?k===0&&this.xn1||(Y.filter=z+" alpha(opacity="+k+")"):Y.filter=z.replace(R,"opacity="+k))};Kt("opacity,alpha,autoAlpha",{defaultValue:"1",parser:function(F,X,Y,z,k,J){var G=parseFloat(Ot(F,"opacity",e,!1,"1")),et=F.style,$=Y==="autoAlpha";return typeof X=="string"&&X.charAt(1)==="="&&(X=(X.charAt(0)==="-"?-1:1)*parseFloat(X.substr(2))+G),$&&G===1&&Ot(F,"visibility",e)==="hidden"&&X!==0&&(G=0),kt?k=new Jt(et,"opacity",G,X-G,k):(k=new Jt(et,"opacity",100*G,100*(X-G),k),k.xn1=$?1:0,et.zoom=1,k.type=2,k.b="alpha(opacity="+k.s+")",k.e="alpha(opacity="+(k.s+k.c)+")",k.data=F,k.plugin=J,k.setRatio=Xe),$&&(k=new Jt(et,"visibility",0,0,k,-1,null,!1,0,G!==0?"inherit":"hidden",X===0?"hidden":"inherit"),k.xs0="inherit",z._overwriteProps.push(k.n),z._overwriteProps.push(Y)),k}});var me=function(F,X){X&&(F.removeProperty?(X.substr(0,2)!=="ms"&&X.substr(0,6)!=="webkit"||(X="-"+X),F.removeProperty(X.replace(D,"-$1").toLowerCase())):F.removeAttribute(X))},We=function(F){if(this.t._gsClassPT=this,F===1||F===0){this.t.setAttribute("class",F===0?this.b:this.e);for(var X=this.data,Y=this.t.style;X;)X.v?Y[X.p]=X.v:me(Y,X.p),X=X._next;F===1&&this.t._gsClassPT===this&&(this.t._gsClassPT=null)}else this.t.getAttribute("class")!==this.e&&this.t.setAttribute("class",this.e)};Kt("className",{parser:function(F,X,Y,z,k,J,G){var et,$,rt,Q,dt,gt=F.getAttribute("class")||"",ft=F.style.cssText;if(k=z._classNamePT=new Jt(F,Y,0,0,k,2),k.setRatio=We,k.pr=-11,f=!0,k.b=gt,$=j(F,e),rt=F._gsClassPT){for(Q={},dt=rt.data;dt;)Q[dt.p]=1,dt=dt._next;rt.setRatio(1)}return F._gsClassPT=k,k.e=X.charAt(1)!=="="?X:gt.replace(new RegExp("(?:\\s|^)"+X.substr(2)+"(?![\\w-])"),"")+(X.charAt(0)==="+"?" "+X.substr(2):""),F.setAttribute("class",k.e),et=V(F,$,j(F),G,Q),F.setAttribute("class",gt),k.data=et.firstMPT,F.style.cssText=ft,k=k.xfirst=z.parse(F,et.difs,k,J)}});var ze=function(F){if((F===1||F===0)&&this.data._totalTime===this.data._totalDuration&&this.data.data!=="isFromStart"){var X,Y,z,k,J,G=this.t.style,et=r.transform.parse;if(this.e==="all")G.cssText="",k=!0;else for(X=this.e.split(" ").join("").split(","),z=X.length;--z>-1;)Y=X[z],r[Y]&&(r[Y].parse===et?k=!0:Y=Y==="transformOrigin"?_e:r[Y].p),me(G,Y);k&&(me(G,ne),J=this.t._gsTransform,J&&(J.svg&&(this.t.removeAttribute("data-svg-origin"),this.t.removeAttribute("transform")),delete this.t._gsTransform))}};for(Kt("clearProps",{parser:function(F,X,Y,z,k){return k=new Jt(F,Y,0,0,k,2),k.setRatio=ze,k.e=X,k.pr=-10,k.data=z._tween,f=!0,k}}),h="bezier,throwProps,physicsProps,physics2D".split(","),ie=h.length;ie--;)ke(h[ie]);h=i.prototype,h._firstPT=h._lastParsedTransform=h._transform=null,h._onInitTween=function(F,X,Y,z){if(!F.nodeType)return!1;this._target=a=F,this._tween=Y,this._vars=X,s=z,p=X.autoRound,f=!1,o=X.suffixMap||i.suffixMap,e=Et(F,""),t=this._overwriteProps;var k,J,G,et,$,rt,Q,dt,gt,ft=F.style;if(u&&ft.zIndex===""&&(k=Ot(F,"zIndex",e),k!=="auto"&&k!==""||this._addLazySet(ft,"zIndex",0)),typeof X=="string"&&(et=ft.cssText,k=j(F,e),ft.cssText=et+";"+X,k=V(F,k,j(F)).difs,!kt&&S.test(X)&&(k.opacity=parseFloat(RegExp.$1)),X=k,ft.cssText=et),X.className?this._firstPT=J=r.className.parse(F,X.className,"className",this,null,null,X):this._firstPT=J=this.parse(F,X,null),this._transformType){for(gt=this._transformType===3,ne?y&&(u=!0,ft.zIndex===""&&(Q=Ot(F,"zIndex",e),Q!=="auto"&&Q!==""||this._addLazySet(ft,"zIndex",0)),w&&this._addLazySet(ft,"WebkitBackfaceVisibility",this._vars.WebkitBackfaceVisibility||(gt?"visible":"hidden"))):ft.zoom=1,G=J;G&&G._next;)G=G._next;dt=new Jt(F,"transform",0,0,null,2),this._linkCSSP(dt,null,G),dt.setRatio=ne?Ue:Be,dt.data=this._transform||ge(F,e,!0),dt.tween=Y,dt.pr=-1,t.pop()}if(f){for(;J;){for(rt=J._next,G=et;G&&G.pr>J.pr;)G=G._next;(J._prev=G?G._prev:$)?J._prev._next=J:et=J,(J._next=G)?G._prev=J:$=J,J=rt}this._firstPT=et}return!0},h.parse=function(F,X,Y,z){var k,J,G,et,$,rt,Q,dt,gt,ft,ht=F.style;for(k in X)rt=X[k],typeof rt=="function"&&(rt=rt(s,a)),J=r[k],J?Y=J.parse(F,rt,k,this,Y,z,X):($=Ot(F,k,e)+"",gt=typeof rt=="string",k==="color"||k==="fill"||k==="stroke"||k.indexOf("Color")!==-1||gt&&A.test(rt)?(gt||(rt=Rt(rt),rt=(rt.length>3?"rgba(":"rgb(")+rt.join(",")+")"),Y=pe(ht,k,$,rt,!0,"transparent",Y,0,z)):gt&&K.test(rt)?Y=pe(ht,k,$,rt,!0,null,Y,0,z):(G=parseFloat($),Q=G||G===0?$.substr((G+"").length):"",$!==""&&$!=="auto"||(k==="width"||k==="height"?(G=nt(F,k,e),Q="px"):k==="left"||k==="top"?(G=Zt(F,k,e),Q="px"):(G=k!=="opacity"?0:1,Q="")),ft=gt&&rt.charAt(1)==="=",ft?(et=parseInt(rt.charAt(0)+"1",10),rt=rt.substr(2),et*=parseFloat(rt),dt=rt.replace(M,"")):(et=parseFloat(rt),dt=gt?rt.replace(M,""):""),dt===""&&(dt=k in o?o[k]:Q),rt=et||et===0?(ft?et+G:et)+dt:X[k],Q!==dt&&dt!==""&&(et||et===0)&&G&&(G=zt(F,k,G,Q),dt==="%"?(G/=zt(F,k,100,"%")/100,X.strictUnits!==!0&&($=G+"%")):dt==="em"||dt==="rem"||dt==="vw"||dt==="vh"?G/=zt(F,k,1,dt):dt!=="px"&&(et=zt(F,k,et,dt),dt="px"),ft&&(et||et===0)&&(rt=et+G+dt)),ft&&(et+=G),!G&&G!==0||!et&&et!==0?ht[k]!==void 0&&(rt||rt+""!="NaN"&&rt!=null)?(Y=new Jt(ht,k,et||G||0,0,Y,-1,k,!1,0,$,rt),Y.xs0=rt!=="none"||k!=="display"&&k.indexOf("Style")===-1?rt:$):Ut("invalid "+k+" tween value: "+X[k]):(Y=new Jt(ht,k,G,et-G,Y,0,k,p!==!1&&(dt==="px"||k==="zIndex"),0,$,rt),Y.xs0=dt))),z&&Y&&!Y.plugin&&(Y.plugin=z);return Y},h.setRatio=function(F){var X,Y,z,k=this._firstPT,J=1e-6;if(F!==1||this._tween._time!==this._tween._duration&&this._tween._time!==0)if(F||this._tween._time!==this._tween._duration&&this._tween._time!==0||this._tween._rawPrevTime===-1e-6)for(;k;){if(X=k.c*F+k.s,k.r?X=Math.round(X):X<J&&X>-J&&(X=0),k.type)if(k.type===1)if(z=k.l,z===2)k.t[k.p]=k.xs0+X+k.xs1+k.xn1+k.xs2;else if(z===3)k.t[k.p]=k.xs0+X+k.xs1+k.xn1+k.xs2+k.xn2+k.xs3;else if(z===4)k.t[k.p]=k.xs0+X+k.xs1+k.xn1+k.xs2+k.xn2+k.xs3+k.xn3+k.xs4;else if(z===5)k.t[k.p]=k.xs0+X+k.xs1+k.xn1+k.xs2+k.xn2+k.xs3+k.xn3+k.xs4+k.xn4+k.xs5;else{for(Y=k.xs0+X+k.xs1,z=1;z<k.l;z++)Y+=k["xn"+z]+k["xs"+(z+1)];k.t[k.p]=Y}else k.type===-1?k.t[k.p]=k.xs0:k.setRatio&&k.setRatio(F);else k.t[k.p]=X+k.xs0;k=k._next}else for(;k;)k.type!==2?k.t[k.p]=k.b:k.setRatio(F),k=k._next;else for(;k;){if(k.type!==2)if(k.r&&k.type!==-1)if(X=Math.round(k.s+k.c),k.type){if(k.type===1){for(z=k.l,Y=k.xs0+X+k.xs1,z=1;z<k.l;z++)Y+=k["xn"+z]+k["xs"+(z+1)];k.t[k.p]=Y}}else k.t[k.p]=X+k.xs0;else k.t[k.p]=k.e;else k.setRatio(F);k=k._next}},h._enableTransforms=function(F){this._transform=this._transform||ge(this._target,e,!0),this._transformType=this._transform.svg&&ce||!F&&this._transformType!==3?2:3};var Ye=function(F){this.t[this.p]=this.e,this.data._linkCSSP(this,this._next,null,!0)};h._addLazySet=function(F,X,Y){var z=this._firstPT=new Jt(F,X,0,0,this._firstPT,2);z.e=Y,z.setRatio=Ye,z.data=this},h._linkCSSP=function(F,X,Y,z){return F&&(X&&(X._prev=F),F._next&&(F._next._prev=F._prev),F._prev?F._prev._next=F._next:this._firstPT===F&&(this._firstPT=F._next,z=!0),Y?Y._next=F:z||this._firstPT!==null||(this._firstPT=F),F._next=X,F._prev=Y),F},h._mod=function(F){for(var X=this._firstPT;X;)typeof F[X.p]=="function"&&F[X.p]===Math.round&&(X.r=1),X=X._next},h._kill=function(F){var X,Y,z,k=F;if(F.autoAlpha||F.alpha){k={};for(Y in F)k[Y]=F[Y];k.opacity=1,k.autoAlpha&&(k.visibility=1)}for(F.className&&(X=this._classNamePT)&&(z=X.xfirst,z&&z._prev?this._linkCSSP(z._prev,X._next,z._prev._prev):z===this._firstPT&&(this._firstPT=X._next),X._next&&this._linkCSSP(X._next,X._next._next,z._prev),this._classNamePT=null),X=this._firstPT;X;)X.plugin&&X.plugin!==Y&&X.plugin._kill&&(X.plugin._kill(F),Y=X.plugin),X=X._next;return m.prototype._kill.call(this,k)};var Pe=function(F,X,Y){var z,k,J,G;if(F.slice)for(k=F.length;--k>-1;)Pe(F[k],X,Y);else for(z=F.childNodes,k=z.length;--k>-1;)J=z[k],G=J.type,J.style&&(X.push(j(J)),Y&&Y.push(J)),G!==1&&G!==9&&G!==11||!J.childNodes.length||Pe(J,X,Y)};return i.cascadeTo=function(F,X,Y){var z,k,J,G,et=l.to(F,X,Y),$=[et],rt=[],Q=[],dt=[],gt=l._internals.reservedProps;for(F=et._targets||et.target,Pe(F,rt,dt),et.render(X,!0,!0),Pe(F,Q),et.render(0,!0,!0),et._enabled(!0),z=dt.length;--z>-1;)if(k=V(dt[z],rt[z],Q[z]),k.firstMPT){k=k.difs;for(J in Y)gt[J]&&(k[J]=Y[J]);G={};for(J in k)G[J]=rt[z][J];$.push(l.fromTo(dt[z],X,G,k))}return $},m.activate([i]),i},!0),function(){var m=b._gsDefine.plugin({propName:"roundProps",version:"1.6.0",priority:-1,API:2,init:function(o,e,t){return this._tween=t,!0}}),l=function(o){for(;o;)o.f||o.blob||(o.m=Math.round),o=o._next},f=m.prototype;f._onInitAllProps=function(){for(var o,e,t,i=this._tween,n=i.vars.roundProps.join?i.vars.roundProps:i.vars.roundProps.split(","),r=n.length,h={},p=i._propLookup.roundProps;--r>-1;)h[n[r]]=Math.round;for(r=n.length;--r>-1;)for(o=n[r],e=i._firstPT;e;)t=e._next,e.pg?e.t._mod(h):e.n===o&&(e.f===2&&e.t?l(e.t._firstPT):(this._add(e.t,o,e.s,e.c),t&&(t._prev=e._prev),e._prev?e._prev._next=t:i._firstPT===e&&(i._firstPT=t),e._next=e._prev=null,i._propLookup[o]=p)),e=t;return!1},f._add=function(o,e,t,i){this._addTween(o,e,t,t+i,e,Math.round),this._overwriteProps.push(e)}}(),function(){b._gsDefine.plugin({propName:"attr",API:2,version:"0.6.0",init:function(m,l,f,o){var e,t;if(typeof m.setAttribute!="function")return!1;for(e in l)t=l[e],typeof t=="function"&&(t=t(o,m)),this._addTween(m,"setAttribute",m.getAttribute(e)+"",t+"",e,!1,e),this._overwriteProps.push(e);return!0}})}(),b._gsDefine.plugin({propName:"directionalRotation",version:"0.3.0",API:2,init:function(m,l,f,o){typeof l!="object"&&(l={rotation:l}),this.finals={};var e,t,i,n,r,h,p=l.useRadians===!0?2*Math.PI:360,u=1e-6;for(e in l)e!=="useRadians"&&(n=l[e],typeof n=="function"&&(n=n(o,m)),h=(n+"").split("_"),t=h[0],i=parseFloat(typeof m[e]!="function"?m[e]:m[e.indexOf("set")||typeof m["get"+e.substr(3)]!="function"?e:"get"+e.substr(3)]()),n=this.finals[e]=typeof t=="string"&&t.charAt(1)==="="?i+parseInt(t.charAt(0)+"1",10)*Number(t.substr(2)):Number(t)||0,r=n-i,h.length&&(t=h.join("_"),t.indexOf("short")!==-1&&(r%=p,r!==r%(p/2)&&(r=r<0?r+p:r-p)),t.indexOf("_cw")!==-1&&r<0?r=(r+9999999999*p)%p-(r/p|0)*p:t.indexOf("ccw")!==-1&&r>0&&(r=(r-9999999999*p)%p-(r/p|0)*p)),(r>u||r<-u)&&(this._addTween(m,e,i,i+r,e),this._overwriteProps.push(e)));return!0},set:function(m){var l;if(m!==1)this._super.setRatio.call(this,m);else for(l=this._firstPT;l;)l.f?l.t[l.p](this.finals[l.p]):l.t[l.p]=this.finals[l.p],l=l._next}})._autoCSS=!0,b._gsDefine("easing.Back",["easing.Ease"],function(m){var l,f,o,e=b.GreenSockGlobals||b,t=e.com.greensock,i=2*Math.PI,n=Math.PI/2,r=t._class,h=function(s,v){var P=r("easing."+s,function(){},!0),T=P.prototype=new m;return T.constructor=P,T.getRatio=v,P},p=m.register||function(){},u=function(s,v,P,T,C){var M=r("easing."+s,{easeOut:new v,easeIn:new P,easeInOut:new T},!0);return p(M,s),M},y=function(s,v,P){this.t=s,this.v=v,P&&(this.next=P,P.prev=this,this.c=P.v-v,this.gap=P.t-s)},d=function(s,v){var P=r("easing."+s,function(C){this._p1=C||C===0?C:1.70158,this._p2=1.525*this._p1},!0),T=P.prototype=new m;return T.constructor=P,T.getRatio=v,T.config=function(C){return new P(C)},P},w=u("Back",d("BackOut",function(s){return(s-=1)*s*((this._p1+1)*s+this._p1)+1}),d("BackIn",function(s){return s*s*((this._p1+1)*s-this._p1)}),d("BackInOut",function(s){return(s*=2)<1?.5*s*s*((this._p2+1)*s-this._p2):.5*((s-=2)*s*((this._p2+1)*s+this._p2)+2)})),g=r("easing.SlowMo",function(s,v,P){v=v||v===0?v:.7,s==null?s=.7:s>1&&(s=1),this._p=s!==1?v:0,this._p1=(1-s)/2,this._p2=s,this._p3=this._p1+this._p2,this._calcEnd=P===!0},!0),a=g.prototype=new m;return a.constructor=g,a.getRatio=function(s){var v=s+(.5-s)*this._p;return s<this._p1?this._calcEnd?1-(s=1-s/this._p1)*s:v-(s=1-s/this._p1)*s*s*s*v:s>this._p3?this._calcEnd?1-(s=(s-this._p3)/this._p1)*s:v+(s-v)*(s=(s-this._p3)/this._p1)*s*s*s:this._calcEnd?1:v},g.ease=new g(.7,.7),a.config=g.config=function(s,v,P){return new g(s,v,P)},l=r("easing.SteppedEase",function(s){s=s||1,this._p1=1/s,this._p2=s+1},!0),a=l.prototype=new m,a.constructor=l,a.getRatio=function(s){return s<0?s=0:s>=1&&(s=.999999999),(this._p2*s>>0)*this._p1},a.config=l.config=function(s){return new l(s)},f=r("easing.RoughEase",function(s){s=s||{};for(var v,P,T,C,M,R,S=s.taper||"none",L=[],A=0,D=0|(s.points||20),I=D,U=s.randomize!==!1,N=s.clamp===!0,W=s.template instanceof m?s.template:null,H=typeof s.strength=="number"?.4*s.strength:.4;--I>-1;)v=U?Math.random():1/D*I,P=W?W.getRatio(v):v,S==="none"?T=H:S==="out"?(C=1-v,T=C*C*H):S==="in"?T=v*v*H:v<.5?(C=2*v,T=C*C*.5*H):(C=2*(1-v),T=C*C*.5*H),U?P+=Math.random()*T-.5*T:I%2?P+=.5*T:P-=.5*T,N&&(P>1?P=1:P<0&&(P=0)),L[A++]={x:v,y:P};for(L.sort(function(tt,it){return tt.x-it.x}),R=new y(1,1,null),I=D;--I>-1;)M=L[I],R=new y(M.x,M.y,R);this._prev=new y(0,0,R.t!==0?R:R.next)},!0),a=f.prototype=new m,a.constructor=f,a.getRatio=function(s){var v=this._prev;if(s>v.t){for(;v.next&&s>=v.t;)v=v.next;v=v.prev}else for(;v.prev&&s<=v.t;)v=v.prev;return this._prev=v,v.v+(s-v.t)/v.gap*v.c},a.config=function(s){return new f(s)},f.ease=new f,u("Bounce",h("BounceOut",function(s){return s<1/2.75?7.5625*s*s:s<2/2.75?7.5625*(s-=1.5/2.75)*s+.75:s<2.5/2.75?7.5625*(s-=2.25/2.75)*s+.9375:7.5625*(s-=2.625/2.75)*s+.984375}),h("BounceIn",function(s){return(s=1-s)<1/2.75?1-7.5625*s*s:s<2/2.75?1-(7.5625*(s-=1.5/2.75)*s+.75):s<2.5/2.75?1-(7.5625*(s-=2.25/2.75)*s+.9375):1-(7.5625*(s-=2.625/2.75)*s+.984375)}),h("BounceInOut",function(s){var v=s<.5;return s=v?1-2*s:2*s-1,s=s<1/2.75?7.5625*s*s:s<2/2.75?7.5625*(s-=1.5/2.75)*s+.75:s<2.5/2.75?7.5625*(s-=2.25/2.75)*s+.9375:7.5625*(s-=2.625/2.75)*s+.984375,v?.5*(1-s):.5*s+.5})),u("Circ",h("CircOut",function(s){return Math.sqrt(1-(s-=1)*s)}),h("CircIn",function(s){return-(Math.sqrt(1-s*s)-1)}),h("CircInOut",function(s){return(s*=2)<1?-.5*(Math.sqrt(1-s*s)-1):.5*(Math.sqrt(1-(s-=2)*s)+1)})),o=function(s,v,P){var T=r("easing."+s,function(M,R){this._p1=M>=1?M:1,this._p2=(R||P)/(M<1?M:1),this._p3=this._p2/i*(Math.asin(1/this._p1)||0),this._p2=i/this._p2},!0),C=T.prototype=new m;return C.constructor=T,C.getRatio=v,C.config=function(M,R){return new T(M,R)},T},u("Elastic",o("ElasticOut",function(s){return this._p1*Math.pow(2,-10*s)*Math.sin((s-this._p3)*this._p2)+1},.3),o("ElasticIn",function(s){return-(this._p1*Math.pow(2,10*(s-=1))*Math.sin((s-this._p3)*this._p2))},.3),o("ElasticInOut",function(s){return(s*=2)<1?-.5*(this._p1*Math.pow(2,10*(s-=1))*Math.sin((s-this._p3)*this._p2)):this._p1*Math.pow(2,-10*(s-=1))*Math.sin((s-this._p3)*this._p2)*.5+1},.45)),u("Expo",h("ExpoOut",function(s){return 1-Math.pow(2,-10*s)}),h("ExpoIn",function(s){return Math.pow(2,10*(s-1))-.001}),h("ExpoInOut",function(s){return(s*=2)<1?.5*Math.pow(2,10*(s-1)):.5*(2-Math.pow(2,-10*(s-1)))})),u("Sine",h("SineOut",function(s){return Math.sin(s*n)}),h("SineIn",function(s){return-Math.cos(s*n)+1}),h("SineInOut",function(s){return-.5*(Math.cos(Math.PI*s)-1)})),r("easing.EaseLookup",{find:function(s){return m.map[s]}},!0),p(e.SlowMo,"SlowMo","ease,"),p(f,"RoughEase","ease,"),p(l,"SteppedEase","ease,"),w},!0)}),b._gsDefine&&b._gsQueue.pop()(),function(m,l){"use strict";var f={},o=m.GreenSockGlobals=m.GreenSockGlobals||m;if(!o.TweenLite){var e,t,i,n,r,h=function(j){var V,q=j.split("."),Z=o;for(V=0;V<q.length;V++)Z[q[V]]=Z=Z[q[V]]||{};return Z},p=h("com.greensock"),u=1e-10,y=function(j){var V,q=[],Z=j.length;for(V=0;V!==Z;q.push(j[V++]));return q},d=function(){},w=function(){var j=Object.prototype.toString,V=j.call([]);return function(q){return q!=null&&(q instanceof Array||typeof q=="object"&&!!q.push&&j.call(q)===V)}}(),g={},a=function(j,V,q,Z){this.sc=g[j]?g[j].sc:[],g[j]=this,this.gsClass=null,this.func=q;var nt=[];this.check=function(lt){for(var pt,ot,At,Mt,vt,Rt=V.length,qt=Rt;--Rt>-1;)(pt=g[V[Rt]]||new a(V[Rt],[])).gsClass?(nt[Rt]=pt.gsClass,qt--):lt&&pt.sc.push(this);if(qt===0&&q){if(ot=("com.greensock."+j).split("."),At=ot.pop(),Mt=h(ot.join("."))[At]=this.gsClass=q.apply(q,nt),Z){if(o[At]=f[At]=Mt,vt=typeof B!="undefined"&&B.exports,!vt&&c(143))O=[],x=function(){return Mt}.apply(E,O),x!==void 0&&(B.exports=x);else if(vt)if(j===l){B.exports=f[l]=Mt;for(Rt in f)Mt[Rt]=f[Rt]}else f[l]&&(f[l][At]=Mt)}for(Rt=0;Rt<this.sc.length;Rt++)this.sc[Rt].check()}},this.check(!0)},s=m._gsDefine=function(j,V,q,Z){return new a(j,V,q,Z)},v=p._class=function(j,V,q){return V=V||function(){},s(j,[],function(){return V},q),V};s.globals=o;var P=[0,0,1,1],T=v("easing.Ease",function(j,V,q,Z){this._func=j,this._type=q||0,this._power=Z||0,this._params=V?P.concat(V):P},!0),C=T.map={},M=T.register=function(j,V,q,Z){for(var nt,lt,pt,ot,At=V.split(","),Mt=At.length,vt=(q||"easeIn,easeOut,easeInOut").split(",");--Mt>-1;)for(lt=At[Mt],nt=Z?v("easing."+lt,null,!0):p.easing[lt]||{},pt=vt.length;--pt>-1;)ot=vt[pt],C[lt+"."+ot]=C[ot+lt]=nt[ot]=j.getRatio?j:j[ot]||new j};for(i=T.prototype,i._calcEnd=!1,i.getRatio=function(j){if(this._func)return this._params[0]=j,this._func.apply(null,this._params);var V=this._type,q=this._power,Z=V===1?1-j:V===2?j:j<.5?2*j:2*(1-j);return q===1?Z*=Z:q===2?Z*=Z*Z:q===3?Z*=Z*Z*Z:q===4&&(Z*=Z*Z*Z*Z),V===1?1-Z:V===2?Z:j<.5?Z/2:1-Z/2},e=["Linear","Quad","Cubic","Quart","Quint,Strong"],t=e.length;--t>-1;)i=e[t]+",Power"+t,M(new T(null,null,1,t),i,"easeOut",!0),M(new T(null,null,2,t),i,"easeIn"+(t===0?",easeNone":"")),M(new T(null,null,3,t),i,"easeInOut");C.linear=p.easing.Linear.easeIn,C.swing=p.easing.Quad.easeInOut;var R=v("events.EventDispatcher",function(j){this._listeners={},this._eventTarget=j||this});i=R.prototype,i.addEventListener=function(j,V,q,Z,nt){nt=nt||0;var lt,pt,ot=this._listeners[j],At=0;for(this!==n||r||n.wake(),ot==null&&(this._listeners[j]=ot=[]),pt=ot.length;--pt>-1;)lt=ot[pt],lt.c===V&<.s===q?ot.splice(pt,1):At===0&<.pr<nt&&(At=pt+1);ot.splice(At,0,{c:V,s:q,up:Z,pr:nt})},i.removeEventListener=function(j,V){var q,Z=this._listeners[j];if(Z){for(q=Z.length;--q>-1;)if(Z[q].c===V)return void Z.splice(q,1)}},i.dispatchEvent=function(j){var V,q,Z,nt=this._listeners[j];if(nt)for(V=nt.length,V>1&&(nt=nt.slice(0)),q=this._eventTarget;--V>-1;)Z=nt[V],Z&&(Z.up?Z.c.call(Z.s||q,{type:j,target:q}):Z.c.call(Z.s||q))};var S=m.requestAnimationFrame,L=m.cancelAnimationFrame,A=Date.now||function(){return new Date().getTime()},D=A();for(e=["ms","moz","webkit","o"],t=e.length;--t>-1&&!S;)S=m[e[t]+"RequestAnimationFrame"],L=m[e[t]+"CancelAnimationFrame"]||m[e[t]+"CancelRequestAnimationFrame"];v("Ticker",function(j,V){var q,Z,nt,lt,pt,ot=this,At=A(),Mt=!(V===!1||!S)&&"auto",vt=500,Rt=33,qt="tick",Gt=function(Wt){var ue,fe,Jt=A()-D;Jt>vt&&(At+=Jt-Rt),D+=Jt,ot.time=(D-At)/1e3,ue=ot.time-pt,(!q||ue>0||Wt===!0)&&(ot.frame++,pt+=ue+(ue>=lt?.004:lt-ue),fe=!0),Wt!==!0&&(nt=Z(Gt)),fe&&ot.dispatchEvent(qt)};R.call(ot),ot.time=ot.frame=0,ot.tick=function(){Gt(!0)},ot.lagSmoothing=function(Wt,ue){vt=Wt||1/u,Rt=Math.min(ue,vt,0)},ot.sleep=function(){nt!=null&&(Mt&&L?L(nt):clearTimeout(nt),Z=d,nt=null,ot===n&&(r=!1))},ot.wake=function(Wt){nt!==null?ot.sleep():Wt?At+=-D+(D=A()):ot.frame>10&&(D=A()-vt+5),Z=q===0?d:Mt&&S?S:function(ue){return setTimeout(ue,1e3*(pt-ot.time)+1|0)},ot===n&&(r=!0),Gt(2)},ot.fps=function(Wt){return arguments.length?(q=Wt,lt=1/(q||60),pt=this.time+lt,void ot.wake()):q},ot.useRAF=function(Wt){return arguments.length?(ot.sleep(),Mt=Wt,void ot.fps(q)):Mt},ot.fps(j),setTimeout(function(){Mt==="auto"&&ot.frame<5&&document.visibilityState!=="hidden"&&ot.useRAF(!1)},1500)}),i=p.Ticker.prototype=new p.events.EventDispatcher,i.constructor=p.Ticker;var I=v("core.Animation",function(j,V){if(this.vars=V=V||{},this._duration=this._totalDuration=j||0,this._delay=Number(V.delay)||0,this._timeScale=1,this._active=V.immediateRender===!0,this.data=V.data,this._reversed=V.reversed===!0,Ut){r||n.wake();var q=this.vars.useFrames?Bt:Ut;q.add(this,q._time),this.vars.paused&&this.paused(!0)}});n=I.ticker=new p.Ticker,i=I.prototype,i._dirty=i._gc=i._initted=i._paused=!1,i._totalTime=i._time=0,i._rawPrevTime=-1,i._next=i._last=i._onUpdate=i._timeline=i.timeline=null,i._paused=!1;var U=function(){r&&A()-D>2e3&&n.wake(),setTimeout(U,2e3)};U(),i.play=function(j,V){return j!=null&&this.seek(j,V),this.reversed(!1).paused(!1)},i.pause=function(j,V){return j!=null&&this.seek(j,V),this.paused(!0)},i.resume=function(j,V){return j!=null&&this.seek(j,V),this.paused(!1)},i.seek=function(j,V){return this.totalTime(Number(j),V!==!1)},i.restart=function(j,V){return this.reversed(!1).paused(!1).totalTime(j?-this._delay:0,V!==!1,!0)},i.reverse=function(j,V){return j!=null&&this.seek(j||this.totalDuration(),V),this.reversed(!0).paused(!1)},i.render=function(j,V,q){},i.invalidate=function(){return this._time=this._totalTime=0,this._initted=this._gc=!1,this._rawPrevTime=-1,!this._gc&&this.timeline||this._enabled(!0),this},i.isActive=function(){var j,V=this._timeline,q=this._startTime;return!V||!this._gc&&!this._paused&&V.isActive()&&(j=V.rawTime())>=q&&j<q+this.totalDuration()/this._timeScale},i._enabled=function(j,V){return r||n.wake(),this._gc=!j,this._active=this.isActive(),V!==!0&&(j&&!this.timeline?this._timeline.add(this,this._startTime-this._delay):!j&&this.timeline&&this._timeline._remove(this,!0)),!1},i._kill=function(j,V){return this._enabled(!1,!1)},i.kill=function(j,V){return this._kill(j,V),this},i._uncache=function(j){for(var V=j?this:this.timeline;V;)V._dirty=!0,V=V.timeline;return this},i._swapSelfInParams=function(j){for(var V=j.length,q=j.concat();--V>-1;)j[V]==="{self}"&&(q[V]=this);return q},i._callback=function(j){var V=this.vars,q=V[j],Z=V[j+"Params"],nt=V[j+"Scope"]||V.callbackScope||this,lt=Z?Z.length:0;switch(lt){case 0:q.call(nt);break;case 1:q.call(nt,Z[0]);break;case 2:q.call(nt,Z[0],Z[1]);break;default:q.apply(nt,Z)}},i.eventCallback=function(j,V,q,Z){if((j||"").substr(0,2)==="on"){var nt=this.vars;if(arguments.length===1)return nt[j];V==null?delete nt[j]:(nt[j]=V,nt[j+"Params"]=w(q)&&q.join("").indexOf("{self}")!==-1?this._swapSelfInParams(q):q,nt[j+"Scope"]=Z),j==="onUpdate"&&(this._onUpdate=V)}return this},i.delay=function(j){return arguments.length?(this._timeline.smoothChildTiming&&this.startTime(this._startTime+j-this._delay),this._delay=j,this):this._delay},i.duration=function(j){return arguments.length?(this._duration=this._totalDuration=j,this._uncache(!0),this._timeline.smoothChildTiming&&this._time>0&&this._time<this._duration&&j!==0&&this.totalTime(this._totalTime*(j/this._duration),!0),this):(this._dirty=!1,this._duration)},i.totalDuration=function(j){return this._dirty=!1,arguments.length?this.duration(j):this._totalDuration},i.time=function(j,V){return arguments.length?(this._dirty&&this.totalDuration(),this.totalTime(j>this._duration?this._duration:j,V)):this._time},i.totalTime=function(j,V,q){if(r||n.wake(),!arguments.length)return this._totalTime;if(this._timeline){if(j<0&&!q&&(j+=this.totalDuration()),this._timeline.smoothChildTiming){this._dirty&&this.totalDuration();var Z=this._totalDuration,nt=this._timeline;if(j>Z&&!q&&(j=Z),this._startTime=(this._paused?this._pauseTime:nt._time)-(this._reversed?Z-j:j)/this._timeScale,nt._dirty||this._uncache(!1),nt._timeline)for(;nt._timeline;)nt._timeline._time!==(nt._startTime+nt._totalTime)/nt._timeScale&&nt.totalTime(nt._totalTime,!0),nt=nt._timeline}this._gc&&this._enabled(!0,!1),this._totalTime===j&&this._duration!==0||(it.length&&jt(),this.render(j,V,!1),it.length&&jt())}return this},i.progress=i.totalProgress=function(j,V){var q=this.duration();return arguments.length?this.totalTime(q*j,V):q?this._time/q:this.ratio},i.startTime=function(j){return arguments.length?(j!==this._startTime&&(this._startTime=j,this.timeline&&this.timeline._sortChildren&&this.timeline.add(this,j-this._delay)),this):this._startTime},i.endTime=function(j){return this._startTime+(j!=0?this.totalDuration():this.duration())/this._timeScale},i.timeScale=function(j){if(!arguments.length)return this._timeScale;if(j=j||u,this._timeline&&this._timeline.smoothChildTiming){var V=this._pauseTime,q=V||V===0?V:this._timeline.totalTime();this._startTime=q-(q-this._startTime)*this._timeScale/j}return this._timeScale=j,this._uncache(!1)},i.reversed=function(j){return arguments.length?(j!=this._reversed&&(this._reversed=j,this.totalTime(this._timeline&&!this._timeline.smoothChildTiming?this.totalDuration()-this._totalTime:this._totalTime,!0)),this):this._reversed},i.paused=function(j){if(!arguments.length)return this._paused;var V,q,Z=this._timeline;return j!=this._paused&&Z&&(r||j||n.wake(),V=Z.rawTime(),q=V-this._pauseTime,!j&&Z.smoothChildTiming&&(this._startTime+=q,this._uncache(!1)),this._pauseTime=j?V:null,this._paused=j,this._active=this.isActive(),!j&&q!==0&&this._initted&&this.duration()&&(V=Z.smoothChildTiming?this._totalTime:(V-this._startTime)/this._timeScale,this.render(V,V===this._totalTime,!0))),this._gc&&!j&&this._enabled(!0,!1),this};var N=v("core.SimpleTimeline",function(j){I.call(this,0,j),this.autoRemoveChildren=this.smoothChildTiming=!0});i=N.prototype=new I,i.constructor=N,i.kill()._gc=!1,i._first=i._last=i._recent=null,i._sortChildren=!1,i.add=i.insert=function(j,V,q,Z){var nt,lt;if(j._startTime=Number(V||0)+j._delay,j._paused&&this!==j._timeline&&(j._pauseTime=j._startTime+(this.rawTime()-j._startTime)/j._timeScale),j.timeline&&j.timeline._remove(j,!0),j.timeline=j._timeline=this,j._gc&&j._enabled(!0,!0),nt=this._last,this._sortChildren)for(lt=j._startTime;nt&&nt._startTime>lt;)nt=nt._prev;return nt?(j._next=nt._next,nt._next=j):(j._next=this._first,this._first=j),j._next?j._next._prev=j:this._last=j,j._prev=nt,this._recent=j,this._timeline&&this._uncache(!0),this},i._remove=function(j,V){return j.timeline===this&&(V||j._enabled(!1,!0),j._prev?j._prev._next=j._next:this._first===j&&(this._first=j._next),j._next?j._next._prev=j._prev:this._last===j&&(this._last=j._prev),j._next=j._prev=j.timeline=null,j===this._recent&&(this._recent=this._last),this._timeline&&this._uncache(!0)),this},i.render=function(j,V,q){var Z,nt=this._first;for(this._totalTime=this._time=this._rawPrevTime=j;nt;)Z=nt._next,(nt._active||j>=nt._startTime&&!nt._paused)&&(nt._reversed?nt.render((nt._dirty?nt.totalDuration():nt._totalDuration)-(j-nt._startTime)*nt._timeScale,V,q):nt.render((j-nt._startTime)*nt._timeScale,V,q)),nt=Z},i.rawTime=function(){return r||n.wake(),this._totalTime};var W=v("TweenLite",function(j,V,q){if(I.call(this,V,q),this.render=W.prototype.render,j==null)throw"Cannot tween a null target.";this.target=j=typeof j!="string"?j:W.selector(j)||j;var Z,nt,lt,pt=j.jquery||j.length&&j!==m&&j[0]&&(j[0]===m||j[0].nodeType&&j[0].style&&!j.nodeType),ot=this.vars.overwrite;if(this._overwrite=ot=ot==null?kt[W.defaultOverwrite]:typeof ot=="number"?ot>>0:kt[ot],(pt||j instanceof Array||j.push&&w(j))&&typeof j[0]!="number")for(this._targets=lt=y(j),this._propLookup=[],this._siblings=[],Z=0;Z<lt.length;Z++)nt=lt[Z],nt?typeof nt!="string"?nt.length&&nt!==m&&nt[0]&&(nt[0]===m||nt[0].nodeType&&nt[0].style&&!nt.nodeType)?(lt.splice(Z--,1),this._targets=lt=lt.concat(y(nt))):(this._siblings[Z]=_t(nt,this,!1),ot===1&&this._siblings[Z].length>1&&Ot(nt,this,null,1,this._siblings[Z])):(nt=lt[Z--]=W.selector(nt),typeof nt=="string"&<.splice(Z+1,1)):lt.splice(Z--,1);else this._propLookup={},this._siblings=_t(j,this,!1),ot===1&&this._siblings.length>1&&Ot(j,this,null,1,this._siblings);(this.vars.immediateRender||V===0&&this._delay===0&&this.vars.immediateRender!==!1)&&(this._time=-u,this.render(Math.min(0,-this._delay)))},!0),H=function(j){return j&&j.length&&j!==m&&j[0]&&(j[0]===m||j[0].nodeType&&j[0].style&&!j.nodeType)},tt=function(j,V){var q,Z={};for(q in j)bt[q]||q in V&&q!=="transform"&&q!=="x"&&q!=="y"&&q!=="width"&&q!=="height"&&q!=="className"&&q!=="border"||!(!yt[q]||yt[q]&&yt[q]._autoCSS)||(Z[q]=j[q],delete j[q]);j.css=Z};i=W.prototype=new I,i.constructor=W,i.kill()._gc=!1,i.ratio=0,i._firstPT=i._targets=i._overwrittenProps=i._startAt=null,i._notifyPluginsOfEnabled=i._lazy=!1,W.version="1.19.0",W.defaultEase=i._ease=new T(null,null,1,1),W.defaultOverwrite="auto",W.ticker=n,W.autoSleep=120,W.lagSmoothing=function(j,V){n.lagSmoothing(j,V)},W.selector=m.$||m.jQuery||function(j){var V=m.$||m.jQuery;return V?(W.selector=V,V(j)):typeof document=="undefined"?j:document.querySelectorAll?document.querySelectorAll(j):document.getElementById(j.charAt(0)==="#"?j.substr(1):j)};var it=[],K={},at=/(?:(-|-=|\+=)?\d*\.?\d*(?:e[\-+]?\d+)?)[0-9]/gi,ut=function(j){for(var V,q=this._firstPT,Z=1e-6;q;)V=q.blob?j?this.join(""):this.start:q.c*j+q.s,q.m?V=q.m(V,this._target||q.t):V<Z&&V>-Z&&(V=0),q.f?q.fp?q.t[q.p](q.fp,V):q.t[q.p](V):q.t[q.p]=V,q=q._next},mt=function(j,V,q,Z){var nt,lt,pt,ot,At,Mt,vt,Rt=[j,V],qt=0,Gt="",Wt=0;for(Rt.start=j,q&&(q(Rt),j=Rt[0],V=Rt[1]),Rt.length=0,nt=j.match(at)||[],lt=V.match(at)||[],Z&&(Z._next=null,Z.blob=1,Rt._firstPT=Rt._applyPT=Z),At=lt.length,ot=0;ot<At;ot++)vt=lt[ot],Mt=V.substr(qt,V.indexOf(vt,qt)-qt),Gt+=Mt||!ot?Mt:",",qt+=Mt.length,Wt?Wt=(Wt+1)%5:Mt.substr(-5)==="rgba("&&(Wt=1),vt===nt[ot]||nt.length<=ot?Gt+=vt:(Gt&&(Rt.push(Gt),Gt=""),pt=parseFloat(nt[ot]),Rt.push(pt),Rt._firstPT={_next:Rt._firstPT,t:Rt,p:Rt.length-1,s:pt,c:(vt.charAt(1)==="="?parseInt(vt.charAt(0)+"1",10)*parseFloat(vt.substr(2)):parseFloat(vt)-pt)||0,f:0,m:Wt&&Wt<4?Math.round:0}),qt+=vt.length;return Gt+=V.substr(qt),Gt&&Rt.push(Gt),Rt.setRatio=ut,Rt},wt=function(j,V,q,Z,nt,lt,pt,ot,At){typeof Z=="function"&&(Z=Z(At||0,j));var Mt,vt,Rt=q==="get"?j[V]:q,qt=typeof j[V],Gt=typeof Z=="string"&&Z.charAt(1)==="=",Wt={t:j,p:V,s:Rt,f:qt==="function",pg:0,n:nt||V,m:lt?typeof lt=="function"?lt:Math.round:0,pr:0,c:Gt?parseInt(Z.charAt(0)+"1",10)*parseFloat(Z.substr(2)):parseFloat(Z)-Rt||0};if(qt!=="number"&&(qt==="function"&&q==="get"&&(vt=V.indexOf("set")||typeof j["get"+V.substr(3)]!="function"?V:"get"+V.substr(3),Wt.s=Rt=pt?j[vt](pt):j[vt]()),typeof Rt=="string"&&(pt||isNaN(Rt))?(Wt.fp=pt,Mt=mt(Rt,Z,ot||W.defaultStringFilter,Wt),Wt={t:Mt,p:"setRatio",s:0,c:1,f:2,pg:0,n:nt||V,pr:0,m:0}):Gt||(Wt.s=parseFloat(Rt),Wt.c=parseFloat(Z)-Wt.s||0)),Wt.c)return(Wt._next=this._firstPT)&&(Wt._next._prev=Wt),this._firstPT=Wt,Wt},Dt=W._internals={isArray:w,isSelector:H,lazyTweens:it,blobDif:mt},yt=W._plugins={},Tt=Dt.tweenLookup={},It=0,bt=Dt.reservedProps={ease:1,delay:1,overwrite:1,onComplete:1,onCompleteParams:1,onCompleteScope:1,useFrames:1,runBackwards:1,startAt:1,onUpdate:1,onUpdateParams:1,onUpdateScope:1,onStart:1,onStartParams:1,onStartScope:1,onReverseComplete:1,onReverseCompleteParams:1,onReverseCompleteScope:1,onRepeat:1,onRepeatParams:1,onRepeatScope:1,easeParams:1,yoyo:1,immediateRender:1,repeat:1,repeatDelay:1,data:1,paused:1,reversed:1,autoCSS:1,lazy:1,onOverwrite:1,callbackScope:1,stringFilter:1,id:1},kt={none:0,all:1,auto:2,concurrent:3,allOnStart:4,preexisting:5,true:1,false:0},Bt=I._rootFramesTimeline=new N,Ut=I._rootTimeline=new N,Vt=30,jt=Dt.lazyRender=function(){var j,V=it.length;for(K={};--V>-1;)j=it[V],j&&j._lazy!==!1&&(j.render(j._lazy[0],j._lazy[1],!0),j._lazy=!1);it.length=0};Ut._startTime=n.time,Bt._startTime=n.frame,Ut._active=Bt._active=!0,setTimeout(jt,1),I._updateRoot=W.render=function(){var j,V,q;if(it.length&&jt(),Ut.render((n.time-Ut._startTime)*Ut._timeScale,!1,!1),Bt.render((n.frame-Bt._startTime)*Bt._timeScale,!1,!1),it.length&&jt(),n.frame>=Vt){Vt=n.frame+(parseInt(W.autoSleep,10)||120);for(q in Tt){for(V=Tt[q].tweens,j=V.length;--j>-1;)V[j]._gc&&V.splice(j,1);V.length===0&&delete Tt[q]}if(q=Ut._first,(!q||q._paused)&&W.autoSleep&&!Bt._first&&n._listeners.tick.length===1){for(;q&&q._paused;)q=q._next;q||n.sleep()}}},n.addEventListener("tick",I._updateRoot);var _t=function(j,V,q){var Z,nt,lt=j._gsTweenID;if(Tt[lt||(j._gsTweenID=lt="t"+It++)]||(Tt[lt]={target:j,tweens:[]}),V&&(Z=Tt[lt].tweens,Z[nt=Z.length]=V,q))for(;--nt>-1;)Z[nt]===V&&Z.splice(nt,1);return Tt[lt].tweens},Et=function(j,V,q,Z){var nt,lt,pt=j.vars.onOverwrite;return pt&&(nt=pt(j,V,q,Z)),pt=W.onOverwrite,pt&&(lt=pt(j,V,q,Z)),nt!==!1&<!==!1},Ot=function(j,V,q,Z,nt){var lt,pt,ot,At;if(Z===1||Z>=4){for(At=nt.length,lt=0;lt<At;lt++)if((ot=nt[lt])!==V)ot._gc||ot._kill(null,j,V)&&(pt=!0);else if(Z===5)break;return pt}var Mt,vt=V._startTime+u,Rt=[],qt=0,Gt=V._duration===0;for(lt=nt.length;--lt>-1;)(ot=nt[lt])===V||ot._gc||ot._paused||(ot._timeline!==V._timeline?(Mt=Mt||zt(V,0,Gt),zt(ot,Mt,Gt)===0&&(Rt[qt++]=ot)):ot._startTime<=vt&&ot._startTime+ot.totalDuration()/ot._timeScale>vt&&((Gt||!ot._initted)&&vt-ot._startTime<=2e-10||(Rt[qt++]=ot)));for(lt=qt;--lt>-1;)if(ot=Rt[lt],Z===2&&ot._kill(q,j,V)&&(pt=!0),Z!==2||!ot._firstPT&&ot._initted){if(Z!==2&&!Et(ot,V))continue;ot._enabled(!1,!1)&&(pt=!0)}return pt},zt=function(j,V,q){for(var Z=j._timeline,nt=Z._timeScale,lt=j._startTime;Z._timeline;){if(lt+=Z._startTime,nt*=Z._timeScale,Z._paused)return-100;Z=Z._timeline}return lt/=nt,lt>V?lt-V:q&<===V||!j._initted&<-V<2*u?u:(lt+=j.totalDuration()/j._timeScale/nt)>V+u?0:lt-V-u};i._init=function(){var j,V,q,Z,nt,lt,pt=this.vars,ot=this._overwrittenProps,At=this._duration,Mt=!!pt.immediateRender,vt=pt.ease;if(pt.startAt){this._startAt&&(this._startAt.render(-1,!0),this._startAt.kill()),nt={};for(Z in pt.startAt)nt[Z]=pt.startAt[Z];if(nt.overwrite=!1,nt.immediateRender=!0,nt.lazy=Mt&&pt.lazy!==!1,nt.startAt=nt.delay=null,this._startAt=W.to(this.target,0,nt),Mt){if(this._time>0)this._startAt=null;else if(At!==0)return}}else if(pt.runBackwards&&At!==0)if(this._startAt)this._startAt.render(-1,!0),this._startAt.kill(),this._startAt=null;else{this._time!==0&&(Mt=!1),q={};for(Z in pt)bt[Z]&&Z!=="autoCSS"||(q[Z]=pt[Z]);if(q.overwrite=0,q.data="isFromStart",q.lazy=Mt&&pt.lazy!==!1,q.immediateRender=Mt,this._startAt=W.to(this.target,0,q),Mt){if(this._time===0)return}else this._startAt._init(),this._startAt._enabled(!1),this.vars.immediateRender&&(this._startAt=null)}if(this._ease=vt=vt?vt instanceof T?vt:typeof vt=="function"?new T(vt,pt.easeParams):C[vt]||W.defaultEase:W.defaultEase,pt.easeParams instanceof Array&&vt.config&&(this._ease=vt.config.apply(vt,pt.easeParams)),this._easeType=this._ease._type,this._easePower=this._ease._power,this._firstPT=null,this._targets)for(lt=this._targets.length,j=0;j<lt;j++)this._initProps(this._targets[j],this._propLookup[j]={},this._siblings[j],ot?ot[j]:null,j)&&(V=!0);else V=this._initProps(this.target,this._propLookup,this._siblings,ot,0);if(V&&W._onPluginEvent("_onInitAllProps",this),ot&&(this._firstPT||typeof this.target!="function"&&this._enabled(!1,!1)),pt.runBackwards)for(q=this._firstPT;q;)q.s+=q.c,q.c=-q.c,q=q._next;this._onUpdate=pt.onUpdate,this._initted=!0},i._initProps=function(j,V,q,Z,nt){var lt,pt,ot,At,Mt,vt;if(j==null)return!1;K[j._gsTweenID]&&jt(),this.vars.css||j.style&&j!==m&&j.nodeType&&yt.css&&this.vars.autoCSS!==!1&&tt(this.vars,j);for(lt in this.vars)if(vt=this.vars[lt],bt[lt])vt&&(vt instanceof Array||vt.push&&w(vt))&&vt.join("").indexOf("{self}")!==-1&&(this.vars[lt]=vt=this._swapSelfInParams(vt,this));else if(yt[lt]&&(At=new yt[lt])._onInitTween(j,this.vars[lt],this,nt)){for(this._firstPT=Mt={_next:this._firstPT,t:At,p:"setRatio",s:0,c:1,f:1,n:lt,pg:1,pr:At._priority,m:0},pt=At._overwriteProps.length;--pt>-1;)V[At._overwriteProps[pt]]=this._firstPT;(At._priority||At._onInitAllProps)&&(ot=!0),(At._onDisable||At._onEnable)&&(this._notifyPluginsOfEnabled=!0),Mt._next&&(Mt._next._prev=Mt)}else V[lt]=wt.call(this,j,lt,"get",vt,lt,0,null,this.vars.stringFilter,nt);return Z&&this._kill(Z,j)?this._initProps(j,V,q,Z,nt):this._overwrite>1&&this._firstPT&&q.length>1&&Ot(j,this,V,this._overwrite,q)?(this._kill(V,j),this._initProps(j,V,q,Z,nt)):(this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration)&&(K[j._gsTweenID]=!0),ot)},i.render=function(j,V,q){var Z,nt,lt,pt,ot=this._time,At=this._duration,Mt=this._rawPrevTime;if(j>=At-1e-7)this._totalTime=this._time=At,this.ratio=this._ease._calcEnd?this._ease.getRatio(1):1,this._reversed||(Z=!0,nt="onComplete",q=q||this._timeline.autoRemoveChildren),At===0&&(this._initted||!this.vars.lazy||q)&&(this._startTime===this._timeline._duration&&(j=0),(Mt<0||j<=0&&j>=-1e-7||Mt===u&&this.data!=="isPause")&&Mt!==j&&(q=!0,Mt>u&&(nt="onReverseComplete")),this._rawPrevTime=pt=!V||j||Mt===j?j:u);else if(j<1e-7)this._totalTime=this._time=0,this.ratio=this._ease._calcEnd?this._ease.getRatio(0):0,(ot!==0||At===0&&Mt>0)&&(nt="onReverseComplete",Z=this._reversed),j<0&&(this._active=!1,At===0&&(this._initted||!this.vars.lazy||q)&&(Mt>=0&&(Mt!==u||this.data!=="isPause")&&(q=!0),this._rawPrevTime=pt=!V||j||Mt===j?j:u)),this._initted||(q=!0);else if(this._totalTime=this._time=j,this._easeType){var vt=j/At,Rt=this._easeType,qt=this._easePower;(Rt===1||Rt===3&&vt>=.5)&&(vt=1-vt),Rt===3&&(vt*=2),qt===1?vt*=vt:qt===2?vt*=vt*vt:qt===3?vt*=vt*vt*vt:qt===4&&(vt*=vt*vt*vt*vt),Rt===1?this.ratio=1-vt:Rt===2?this.ratio=vt:j/At<.5?this.ratio=vt/2:this.ratio=1-vt/2}else this.ratio=this._ease.getRatio(j/At);if(this._time!==ot||q){if(!this._initted){if(this._init(),!this._initted||this._gc)return;if(!q&&this._firstPT&&(this.vars.lazy!==!1&&this._duration||this.vars.lazy&&!this._duration))return this._time=this._totalTime=ot,this._rawPrevTime=Mt,it.push(this),void(this._lazy=[j,V]);this._time&&!Z?this.ratio=this._ease.getRatio(this._time/At):Z&&this._ease._calcEnd&&(this.ratio=this._ease.getRatio(this._time===0?0:1))}for(this._lazy!==!1&&(this._lazy=!1),this._active||!this._paused&&this._time!==ot&&j>=0&&(this._active=!0),ot===0&&(this._startAt&&(j>=0?this._startAt.render(j,V,q):nt||(nt="_dummyGS")),this.vars.onStart&&(this._time===0&&At!==0||V||this._callback("onStart"))),lt=this._firstPT;lt;)lt.f?lt.t[lt.p](lt.c*this.ratio+lt.s):lt.t[lt.p]=lt.c*this.ratio+lt.s,lt=lt._next;this._onUpdate&&(j<0&&this._startAt&&j!==-1e-4&&this._startAt.render(j,V,q),V||(this._time!==ot||Z||q)&&this._callback("onUpdate")),nt&&(this._gc&&!q||(j<0&&this._startAt&&!this._onUpdate&&j!==-1e-4&&this._startAt.render(j,V,q),Z&&(this._timeline.autoRemoveChildren&&this._enabled(!1,!1),this._active=!1),!V&&this.vars[nt]&&this._callback(nt),At===0&&this._rawPrevTime===u&&pt!==u&&(this._rawPrevTime=0)))}},i._kill=function(j,V,q){if(j==="all"&&(j=null),j==null&&(V==null||V===this.target))return this._lazy=!1,this._enabled(!1,!1);V=typeof V!="string"?V||this._targets||this.target:W.selector(V)||V;var Z,nt,lt,pt,ot,At,Mt,vt,Rt,qt=q&&this._time&&q._startTime===this._startTime&&this._timeline===q._timeline;if((w(V)||H(V))&&typeof V[0]!="number")for(Z=V.length;--Z>-1;)this._kill(j,V[Z],q)&&(At=!0);else{if(this._targets){for(Z=this._targets.length;--Z>-1;)if(V===this._targets[Z]){ot=this._propLookup[Z]||{},this._overwrittenProps=this._overwrittenProps||[],nt=this._overwrittenProps[Z]=j?this._overwrittenProps[Z]||{}:"all";break}}else{if(V!==this.target)return!1;ot=this._propLookup,nt=this._overwrittenProps=j?this._overwrittenProps||{}:"all"}if(ot){if(Mt=j||ot,vt=j!==nt&&nt!=="all"&&j!==ot&&(typeof j!="object"||!j._tempKill),q&&(W.onOverwrite||this.vars.onOverwrite)){for(lt in Mt)ot[lt]&&(Rt||(Rt=[]),Rt.push(lt));if((Rt||!j)&&!Et(this,q,V,Rt))return!1}for(lt in Mt)(pt=ot[lt])&&(qt&&(pt.f?pt.t[pt.p](pt.s):pt.t[pt.p]=pt.s,At=!0),pt.pg&&pt.t._kill(Mt)&&(At=!0),pt.pg&&pt.t._overwriteProps.length!==0||(pt._prev?pt._prev._next=pt._next:pt===this._firstPT&&(this._firstPT=pt._next),pt._next&&(pt._next._prev=pt._prev),pt._next=pt._prev=null),delete ot[lt]),vt&&(nt[lt]=1);!this._firstPT&&this._initted&&this._enabled(!1,!1)}}return At},i.invalidate=function(){return this._notifyPluginsOfEnabled&&W._onPluginEvent("_onDisable",this),this._firstPT=this._overwrittenProps=this._startAt=this._onUpdate=null,this._notifyPluginsOfEnabled=this._active=this._lazy=!1,this._propLookup=this._targets?{}:[],I.prototype.invalidate.call(this),this.vars.immediateRender&&(this._time=-u,this.render(Math.min(0,-this._delay))),this},i._enabled=function(j,V){if(r||n.wake(),j&&this._gc){var q,Z=this._targets;if(Z)for(q=Z.length;--q>-1;)this._siblings[q]=_t(Z[q],this,!0);else this._siblings=_t(this.target,this,!0)}return I.prototype._enabled.call(this,j,V),!(!this._notifyPluginsOfEnabled||!this._firstPT)&&W._onPluginEvent(j?"_onEnable":"_onDisable",this)},W.to=function(j,V,q){return new W(j,V,q)},W.from=function(j,V,q){return q.runBackwards=!0,q.immediateRender=q.immediateRender!=0,new W(j,V,q)},W.fromTo=function(j,V,q,Z){return Z.startAt=q,Z.immediateRender=Z.immediateRender!=0&&q.immediateRender!=0,new W(j,V,Z)},W.delayedCall=function(j,V,q,Z,nt){return new W(V,0,{delay:j,onComplete:V,onCompleteParams:q,callbackScope:Z,onReverseComplete:V,onReverseCompleteParams:q,immediateRender:!1,lazy:!1,useFrames:nt,overwrite:0})},W.set=function(j,V){return new W(j,0,V)},W.getTweensOf=function(j,V){if(j==null)return[];j=typeof j!="string"?j:W.selector(j)||j;var q,Z,nt,lt;if((w(j)||H(j))&&typeof j[0]!="number"){for(q=j.length,Z=[];--q>-1;)Z=Z.concat(W.getTweensOf(j[q],V));for(q=Z.length;--q>-1;)for(lt=Z[q],nt=q;--nt>-1;)lt===Z[nt]&&Z.splice(q,1)}else for(Z=_t(j).concat(),q=Z.length;--q>-1;)(Z[q]._gc||V&&!Z[q].isActive())&&Z.splice(q,1);return Z},W.killTweensOf=W.killDelayedCallsTo=function(j,V,q){typeof V=="object"&&(q=V,V=!1);for(var Z=W.getTweensOf(j,V),nt=Z.length;--nt>-1;)Z[nt]._kill(q,j)};var Zt=v("plugins.TweenPlugin",function(j,V){this._overwriteProps=(j||"").split(","),this._propName=this._overwriteProps[0],this._priority=V||0,this._super=Zt.prototype},!0);if(i=Zt.prototype,Zt.version="1.19.0",Zt.API=2,i._firstPT=null,i._addTween=wt,i.setRatio=ut,i._kill=function(j){var V,q=this._overwriteProps,Z=this._firstPT;if(j[this._propName]!=null)this._overwriteProps=[];else for(V=q.length;--V>-1;)j[q[V]]!=null&&q.splice(V,1);for(;Z;)j[Z.n]!=null&&(Z._next&&(Z._next._prev=Z._prev),Z._prev?(Z._prev._next=Z._next,Z._prev=null):this._firstPT===Z&&(this._firstPT=Z._next)),Z=Z._next;return!1},i._mod=i._roundProps=function(j){for(var V,q=this._firstPT;q;)V=j[this._propName]||q.n!=null&&j[q.n.split(this._propName+"_").join("")],V&&typeof V=="function"&&(q.f===2?q.t._applyPT.m=V:q.m=V),q=q._next},W._onPluginEvent=function(j,V){var q,Z,nt,lt,pt,ot=V._firstPT;if(j==="_onInitAllProps"){for(;ot;){for(pt=ot._next,Z=nt;Z&&Z.pr>ot.pr;)Z=Z._next;(ot._prev=Z?Z._prev:lt)?ot._prev._next=ot:nt=ot,(ot._next=Z)?Z._prev=ot:lt=ot,ot=pt}ot=V._firstPT=nt}for(;ot;)ot.pg&&typeof ot.t[j]=="function"&&ot.t[j]()&&(q=!0),ot=ot._next;return q},Zt.activate=function(j){for(var V=j.length;--V>-1;)j[V].API===Zt.API&&(yt[new j[V]()._propName]=j[V]);return!0},s.plugin=function(j){if(!(j&&j.propName&&j.init&&j.API))throw"illegal plugin definition.";var V,q=j.propName,Z=j.priority||0,nt=j.overwriteProps,lt={init:"_onInitTween",set:"setRatio",kill:"_kill",round:"_mod",mod:"_mod",initAll:"_onInitAllProps"},pt=v("plugins."+q.charAt(0).toUpperCase()+q.substr(1)+"Plugin",function(){Zt.call(this,q,Z),this._overwriteProps=nt||[]},j.global===!0),ot=pt.prototype=new Zt(q);ot.constructor=pt,pt.API=j.API;for(V in lt)typeof j[V]=="function"&&(ot[lt[V]]=j[V]);return pt.version=j.version,Zt.activate([pt]),pt},e=m._gsQueue){for(t=0;t<e.length;t++)e[t]();for(i in g)g[i].func||m.console.log("GSAP encountered missing dependency: "+i)}r=!1}}(typeof B!="undefined"&&B.exports&&typeof _!="undefined"?_:this||window,"TweenMax")}).call(E,function(){return this}())},function(B,E,c){"use strict";function O(){}function x(l,f,o){this.fn=l,this.context=f,this.once=o||!1}function _(){this._events=new O,this._eventsCount=0}var b=Object.prototype.hasOwnProperty,m="~";Object.create&&(O.prototype=Object.create(null),new O().__proto__||(m=!1)),_.prototype.eventNames=function(){var l,f,o=[];if(this._eventsCount===0)return o;for(f in l=this._events)b.call(l,f)&&o.push(m?f.slice(1):f);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(l)):o},_.prototype.listeners=function(l,f){var o=m?m+l:l,e=this._events[o];if(f)return!!e;if(!e)return[];if(e.fn)return[e.fn];for(var t=0,i=e.length,n=new Array(i);t<i;t++)n[t]=e[t].fn;return n},_.prototype.emit=function(l,f,o,e,t,i){var n=m?m+l:l;if(!this._events[n])return!1;var r,h,p=this._events[n],u=arguments.length;if(p.fn){switch(p.once&&this.removeListener(l,p.fn,void 0,!0),u){case 1:return p.fn.call(p.context),!0;case 2:return p.fn.call(p.context,f),!0;case 3:return p.fn.call(p.context,f,o),!0;case 4:return p.fn.call(p.context,f,o,e),!0;case 5:return p.fn.call(p.context,f,o,e,t),!0;case 6:return p.fn.call(p.context,f,o,e,t,i),!0}for(h=1,r=new Array(u-1);h<u;h++)r[h-1]=arguments[h];p.fn.apply(p.context,r)}else{var y,d=p.length;for(h=0;h<d;h++)switch(p[h].once&&this.removeListener(l,p[h].fn,void 0,!0),u){case 1:p[h].fn.call(p[h].context);break;case 2:p[h].fn.call(p[h].context,f);break;case 3:p[h].fn.call(p[h].context,f,o);break;case 4:p[h].fn.call(p[h].context,f,o,e);break;default:if(!r)for(y=1,r=new Array(u-1);y<u;y++)r[y-1]=arguments[y];p[h].fn.apply(p[h].context,r)}}return!0},_.prototype.on=function(l,f,o){var e=new x(f,o||this),t=m?m+l:l;return this._events[t]?this._events[t].fn?this._events[t]=[this._events[t],e]:this._events[t].push(e):(this._events[t]=e,this._eventsCount++),this},_.prototype.once=function(l,f,o){var e=new x(f,o||this,!0),t=m?m+l:l;return this._events[t]?this._events[t].fn?this._events[t]=[this._events[t],e]:this._events[t].push(e):(this._events[t]=e,this._eventsCount++),this},_.prototype.removeListener=function(l,f,o,e){var t=m?m+l:l;if(!this._events[t])return this;if(!f)return--this._eventsCount==0?this._events=new O:delete this._events[t],this;var i=this._events[t];if(i.fn)i.fn!==f||e&&!i.once||o&&i.context!==o||(--this._eventsCount==0?this._events=new O:delete this._events[t]);else{for(var n=0,r=[],h=i.length;n<h;n++)(i[n].fn!==f||e&&!i[n].once||o&&i[n].context!==o)&&r.push(i[n]);r.length?this._events[t]=r.length===1?r[0]:r:--this._eventsCount==0?this._events=new O:delete this._events[t]}return this},_.prototype.removeAllListeners=function(l){var f;return l?(f=m?m+l:l,this._events[f]&&(--this._eventsCount==0?this._events=new O:delete this._events[f])):(this._events=new O,this._eventsCount=0),this},_.prototype.off=_.prototype.removeListener,_.prototype.addListener=_.prototype.on,_.prototype.setMaxListeners=function(){return this},_.prefixed=m,_.EventEmitter=_,B.exports=_},function(B,E){var c=B.exports=typeof window!="undefined"&&window.Math==Math?window:typeof self!="undefined"&&self.Math==Math?self:Function("return this")();typeof __g=="number"&&(__g=c)},function(B,E){var c={}.hasOwnProperty;B.exports=function(O,x){return c.call(O,x)}},function(B,E,c){var O=c(157),x=c(44);B.exports=function(_){return O(x(_))}},function(B,E,c){(function(O){"use strict";function x(P){if(P&&P.__esModule)return P;var T={};if(P!=null)for(var C in P)Object.prototype.hasOwnProperty.call(P,C)&&(T[C]=P[C]);return T.default=P,T}E.__esModule=!0,E.loader=E.prepare=E.particles=E.mesh=E.loaders=E.interaction=E.filters=E.extras=E.extract=E.accessibility=void 0;var _=c(221);Object.keys(_).forEach(function(P){P!=="default"&&P!=="__esModule"&&Object.defineProperty(E,P,{enumerable:!0,get:function(){return _[P]}})});var b=c(1);Object.keys(b).forEach(function(P){P!=="default"&&P!=="__esModule"&&Object.defineProperty(E,P,{enumerable:!0,get:function(){return b[P]}})}),c(252);var m=c(182),l=x(m),f=c(223),o=x(f),e=c(67),t=x(e),i=c(116),n=x(i),r=c(240),h=x(r),p=c(120),u=x(p),y=c(124),d=x(y),w=c(125),g=x(w),a=c(126),s=x(a);E.accessibility=l,E.extract=o,E.extras=t,E.filters=n,E.interaction=h,E.loaders=u,E.mesh=d,E.particles=g,E.prepare=s;var v=u&&u.Loader?new u.Loader:null;E.loader=v,O.PIXI=E}).call(E,function(){return this}())},function(B,E,c){B.exports=!c(30)(function(){return Object.defineProperty({},"a",{get:function(){return 7}}).a!=7})},function(B,E,c){var O=c(17),x=c(32);B.exports=c(15)?function(_,b,m){return O.f(_,b,x(1,m))}:function(_,b,m){return _[b]=m,_}},function(B,E,c){var O=c(20),x=c(85),_=c(54),b=Object.defineProperty;E.f=c(15)?Object.defineProperty:function(m,l,f){if(O(m),l=_(l,!0),O(f),x)try{return b(m,l,f)}catch(o){}if("get"in f||"set"in f)throw TypeError("Accessors not supported!");return"value"in f&&(m[l]=f.value),m}},function(B,E,c){var O=c(52)("wks"),x=c(33),_=c(11).Symbol,b=typeof _=="function",m=B.exports=function(l){return O[l]||(O[l]=b&&_[l]||(b?_:x)("Symbol."+l))};m.store=O},function(B,E,c){"use strict";function O(i){if(i&&i.__esModule)return i;var n={};if(i!=null)for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r]);return n.default=i,n}function x(i){return i&&i.__esModule?i:{default:i}}E.__esModule=!0;var _=c(146),b=x(_),m=c(43),l=x(m),f=c(79),o=O(f),e=c(80),t=O(e);b.default.Resource=l.default,b.default.async=o,b.default.base64=t,B.exports=b.default,E.default=b.default},function(B,E,c){var O=c(22);B.exports=function(x){if(!O(x))throw TypeError(x+" is not an object!");return x}},function(B,E){var c=B.exports={version:"2.4.0"};typeof __e=="number"&&(__e=c)},function(B,E){B.exports=function(c){return typeof c=="object"?c!==null:typeof c=="function"}},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")}function _(i,n){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||typeof n!="object"&&typeof n!="function"?i:n}function b(i,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);i.prototype=Object.create(n&&n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(i,n):i.__proto__=n)}function m(i){if(i instanceof Array){if(i[0].substring(0,9)!=="precision"){var n=i.slice(0);return n.unshift("precision "+e+" float;"),n}}else if(i.substring(0,9)!=="precision")return"precision "+e+` float;
|
|
`+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=function(d){var w=void 0;if(d.encoding==="base64"){if(!atob)throw new Error("Your browser doesn't support base64 conversions.");w=atob(d.data)}else w=d.data;this._loadSvgSourceUsingString(w)},y.prototype._loadSvgSourceUsingXhr=function(){var d=this,w=new XMLHttpRequest;w.onload=function(){if(w.readyState!==w.DONE||w.status!==200)throw new Error("Failed to load SVG using XHR.");d._loadSvgSourceUsingString(w.response)},w.onerror=function(){return d.emit("error",d)},w.open("GET",this.imageUrl,!0),w.send()},y.prototype._loadSvgSourceUsingString=function(d){var w=(0,l.getSvgSize)(d),g=w.width,a=w.height;if(!g||!a)throw new Error("The SVG image must have width and height defined (in pixels), canvas API needs them.");this.realWidth=Math.round(g*this.sourceScale),this.realHeight=Math.round(a*this.sourceScale),this.width=this.realWidth/this.resolution,this.height=this.realHeight/this.resolution,this.isPowerOfTwo=h.default.isPow2(this.realWidth)&&h.default.isPow2(this.realHeight);var s=document.createElement("canvas");s.width=this.realWidth,s.height=this.realHeight,s._pixiId="canvas_"+(0,l.uid)(),s.getContext("2d").drawImage(this.source,0,0,g,a,0,0,this.realWidth,this.realHeight),this.origSource=this.source,this.source=s,l.BaseTextureCache[s._pixiId]=this,this.isLoading=!1,this._sourceLoaded(),this.emit("loaded",this)},y.prototype._sourceLoaded=function(){this.hasLoaded=!0,this.update()},y.prototype.destroy=function(){this.imageUrl&&(delete l.BaseTextureCache[this.imageUrl],delete l.TextureCache[this.imageUrl],this.imageUrl=null,navigator.isCocoonJS||(this.source.src="")),this.source&&this.source._pixiId&&delete l.BaseTextureCache[this.source._pixiId],this.source=null,this.dispose()},y.prototype.dispose=function(){this.emit("dispose",this)},y.prototype.updateSourceImage=function(d){this.source.src=d,this.loadSource(this.source)},y.fromImage=function(d,w,g,a){var s=l.BaseTextureCache[d];if(!s){var v=new Image;w===void 0&&d.indexOf("data:")!==0&&(v.crossOrigin=(0,n.default)(d)),s=new y(v,g),s.imageUrl=d,a&&(s.sourceScale=a),s.resolution=(0,l.getResolutionOfUrl)(d),v.src=d,l.BaseTextureCache[d]=s}return s},y.fromCanvas=function(d,w){d._pixiId||(d._pixiId="canvas_"+(0,l.uid)());var g=l.BaseTextureCache[d._pixiId];return g||(g=new y(d,w),l.BaseTextureCache[d._pixiId]=g),g},y}(t.default);E.default=p},function(B,E,c){"use strict";function O(y){return y&&y.__esModule?y:{default:y}}function x(y,d){if(!(y instanceof d))throw new TypeError("Cannot call a class as a function")}function _(y,d){if(!y)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!d||typeof d!="object"&&typeof d!="function"?y:d}function b(y,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);y.prototype=Object.create(d&&d.prototype,{constructor:{value:y,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(y,d):y.__proto__=d)}E.__esModule=!0;var m=function(){function y(d,w){for(var g=0;g<w.length;g++){var a=w[g];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(d,a.key,a)}}return function(d,w,g){return w&&y(d.prototype,w),g&&y(d,g),d}}(),l=c(25),f=O(l),o=c(108),e=O(o),t=c(107),i=O(t),n=c(10),r=O(n),h=c(4),p=c(3),u=function(y){function d(w,g,a,s,v){x(this,d);var P=_(this,y.call(this));if(P.noFrame=!1,g||(P.noFrame=!0,g=new h.Rectangle(0,0,1,1)),w instanceof d&&(w=w.baseTexture),P.baseTexture=w,P._frame=g,P.trim=s,P.valid=!1,P.requiresUpdate=!1,P._uvs=null,P.orig=a||g,P._rotate=Number(v||0),v===!0)P._rotate=2;else if(P._rotate%2!=0)throw new Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");return w.hasLoaded?(P.noFrame&&(g=new h.Rectangle(0,0,w.width,w.height),w.on("update",P.onBaseTextureUpdated,P)),P.frame=g):w.once("loaded",P.onBaseTextureLoaded,P),P._updateID=0,P.transform=null,P}return b(d,y),d.prototype.update=function(){this.baseTexture.update()},d.prototype.onBaseTextureLoaded=function(w){this._updateID++,this.noFrame?this.frame=new h.Rectangle(0,0,w.width,w.height):this.frame=this._frame,this.baseTexture.on("update",this.onBaseTextureUpdated,this),this.emit("update",this)},d.prototype.onBaseTextureUpdated=function(w){this._updateID++,this._frame.width=w.width,this._frame.height=w.height,this.emit("update",this)},d.prototype.destroy=function(w){this.baseTexture&&(w&&(p.TextureCache[this.baseTexture.imageUrl]&&delete p.TextureCache[this.baseTexture.imageUrl],this.baseTexture.destroy()),this.baseTexture.off("update",this.onBaseTextureUpdated,this),this.baseTexture.off("loaded",this.onBaseTextureLoaded,this),this.baseTexture=null),this._frame=null,this._uvs=null,this.trim=null,this.orig=null,this.valid=!1,this.off("dispose",this.dispose,this),this.off("update",this.update,this)},d.prototype.clone=function(){return new d(this.baseTexture,this.frame,this.orig,this.trim,this.rotate)},d.prototype._updateUvs=function(){this._uvs||(this._uvs=new i.default),this._uvs.set(this._frame,this.baseTexture,this.rotate),this._updateID++},d.fromImage=function(w,g,a,s){var v=p.TextureCache[w];return v||(v=new d(f.default.fromImage(w,g,a,s)),p.TextureCache[w]=v),v},d.fromFrame=function(w){var g=p.TextureCache[w];if(!g)throw new Error('The frameId "'+w+'" does not exist in the texture cache');return g},d.fromCanvas=function(w,g){return new d(f.default.fromCanvas(w,g))},d.fromVideo=function(w,g){return typeof w=="string"?d.fromVideoUrl(w,g):new d(e.default.fromVideo(w,g))},d.fromVideoUrl=function(w,g){return new d(e.default.fromUrl(w,g))},d.from=function(w){if(typeof w=="string"){var g=p.TextureCache[w];if(!g){var a=w.match(/\.(mp4|webm|ogg|h264|avi|mov)$/)!==null;return a?d.fromVideoUrl(w):d.fromImage(w)}return g}return w instanceof HTMLImageElement?new d(new f.default(w)):w instanceof HTMLCanvasElement?d.fromCanvas(w):w instanceof HTMLVideoElement?d.fromVideo(w):w instanceof f.default?new d(w):w},d.addTextureToCache=function(w,g){p.TextureCache[g]=w},d.removeTextureFromCache=function(w){var g=p.TextureCache[w];return delete p.TextureCache[w],delete p.BaseTextureCache[w],g},m(d,[{key:"frame",get:function(){return this._frame},set:function(w){if(this._frame=w,this.noFrame=!1,w.x+w.width>this.baseTexture.width||w.y+w.height>this.baseTexture.height)throw new Error("Texture Error: frame does not fit inside the base Texture dimensions "+this);this.valid=w&&w.width&&w.height&&this.baseTexture.hasLoaded,this.trim||this.rotate||(this.orig=w),this.valid&&this._updateUvs()}},{key:"rotate",get:function(){return this._rotate},set:function(w){this._rotate=w,this.valid&&this._updateUvs()}},{key:"width",get:function(){return this.orig.width}},{key:"height",get:function(){return this.orig.height}}]),d}(r.default);E.default=u,u.EMPTY=new u(new f.default),u.EMPTY.destroy=function(){},u.EMPTY.on=function(){},u.EMPTY.once=function(){},u.EMPTY.emit=function(){}},function(B,E,c){"use strict";function O(i){if(i&&i.__esModule)return i;var n={};if(i!=null)for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r]);return n.default=i,n}function x(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function _(i,n){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||typeof n!="object"&&typeof n!="function"?i:n}function b(i,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);i.prototype=Object.create(n&&n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(i,n):i.__proto__=n)}E.__esModule=!0;var m=function(){function i(n,r){for(var h=0;h<r.length;h++){var p=r[h];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(n,p.key,p)}}return function(n,r,h){return r&&i(n.prototype,r),h&&i(n,h),n}}(),l=c(1),f=O(l),o=new f.Point,e=new f.Polygon,t=function(i){function n(r,h,p,u,y){x(this,n);var d=_(this,i.call(this));return d._texture=null,d.uvs=p||new Float32Array([0,0,1,0,1,1,0,1]),d.vertices=h||new Float32Array([0,0,100,0,100,100,0,100]),d.indices=u||new Uint16Array([0,1,3,2]),d.dirty=0,d.indexDirty=0,d.blendMode=f.BLEND_MODES.NORMAL,d.canvasPadding=0,d.drawMode=y||n.DRAW_MODES.TRIANGLE_MESH,d.texture=r,d.shader=null,d.tintRgb=new Float32Array([1,1,1]),d._glDatas={},d.pluginName="mesh",d}return b(n,i),n.prototype._renderWebGL=function(r){r.setObjectRenderer(r.plugins[this.pluginName]),r.plugins[this.pluginName].render(this)},n.prototype._renderCanvas=function(r){r.plugins[this.pluginName].render(this)},n.prototype._onTextureUpdate=function(){},n.prototype._calculateBounds=function(){this._bounds.addVertices(this.transform,this.vertices,0,this.vertices.length)},n.prototype.containsPoint=function(r){if(!this.getBounds().contains(r.x,r.y))return!1;this.worldTransform.applyInverse(r,o);for(var h=this.vertices,p=e.points,u=this.indices,y=this.indices.length,d=this.drawMode===n.DRAW_MODES.TRIANGLES?3:1,w=0;w+2<y;w+=d){var g=2*u[w],a=2*u[w+1],s=2*u[w+2];if(p[0]=h[g],p[1]=h[g+1],p[2]=h[a],p[3]=h[a+1],p[4]=h[s],p[5]=h[s+1],e.contains(o.x,o.y))return!0}return!1},m(n,[{key:"texture",get:function(){return this._texture},set:function(r){this._texture!==r&&(this._texture=r,r&&(r.baseTexture.hasLoaded?this._onTextureUpdate():r.once("update",this._onTextureUpdate,this)))}},{key:"tint",get:function(){return f.utils.rgb2hex(this.tintRgb)},set:function(r){this.tintRgb=f.utils.hex2rgb(r,this.tintRgb)}}]),n}(f.Container);E.default=t,t.DRAW_MODES={TRIANGLE_MESH:0,TRIANGLES:1}},function(B,E,c){var O,x,_;/**
|
|
* 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.parent&&n.parent.removeChild(n),n.parent=this,this.transform._parentID=-1,this._boundsID++,this.children.push(n),this.onChildrenChange(this.children.length-1),n.emit("added",this);return n},i.prototype.addChildAt=function(n,r){if(r<0||r>this.children.length)throw new Error(n+"addChildAt: The index "+r+" supplied is out of bounds "+this.children.length);return n.parent&&n.parent.removeChild(n),n.parent=this,this.children.splice(r,0,n),this.onChildrenChange(r),n.emit("added",this),n},i.prototype.swapChildren=function(n,r){if(n!==r){var h=this.getChildIndex(n),p=this.getChildIndex(r);this.children[h]=r,this.children[p]=n,this.onChildrenChange(h<p?h:p)}},i.prototype.getChildIndex=function(n){var r=this.children.indexOf(n);if(r===-1)throw new Error("The supplied DisplayObject must be a child of the caller");return r},i.prototype.setChildIndex=function(n,r){if(r<0||r>=this.children.length)throw new Error("The supplied index is out of bounds");var h=this.getChildIndex(n);(0,l.removeItems)(this.children,h,1),this.children.splice(r,0,n),this.onChildrenChange(r)},i.prototype.getChildAt=function(n){if(n<0||n>=this.children.length)throw new Error("getChildAt: Index ("+n+") does not exist.");return this.children[n]},i.prototype.removeChild=function(n){var r=arguments.length;if(r>1)for(var h=0;h<r;h++)this.removeChild(arguments[h]);else{var p=this.children.indexOf(n);if(p===-1)return null;n.parent=null,(0,l.removeItems)(this.children,p,1),this.transform._parentID=-1,this._boundsID++,this.onChildrenChange(p),n.emit("removed",this)}return n},i.prototype.removeChildAt=function(n){var r=this.getChildAt(n);return r.parent=null,(0,l.removeItems)(this.children,n,1),this.onChildrenChange(n),r.emit("removed",this),r},i.prototype.removeChildren=function(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,r=arguments[1],h=n,p=typeof r=="number"?r:this.children.length,u=p-h,y=void 0;if(u>0&&u<=p){y=this.children.splice(h,u);for(var d=0;d<y.length;++d)y[d].parent=null;this.onChildrenChange(n);for(var w=0;w<y.length;++w)y[w].emit("removed",this);return y}if(u===0&&this.children.length===0)return[];throw new RangeError("removeChildren: numeric values are outside the acceptable range.")},i.prototype.updateTransform=function(){this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(var n=0,r=this.children.length;n<r;++n){var h=this.children[n];h.visible&&h.updateTransform()}},i.prototype.calculateBounds=function(){this._bounds.clear(),this._calculateBounds();for(var n=0;n<this.children.length;n++){var r=this.children[n];r.visible&&r.renderable&&(r.calculateBounds(),r._mask?(r._mask.calculateBounds(),this._bounds.addBoundsMask(r._bounds,r._mask._bounds)):r.filterArea?this._bounds.addBoundsArea(r._bounds,r.filterArea):this._bounds.addBounds(r._bounds))}this._lastBoundsID=this._boundsID},i.prototype._calculateBounds=function(){},i.prototype.renderWebGL=function(n){if(this.visible&&!(this.worldAlpha<=0)&&this.renderable)if(this._mask||this._filters)this.renderAdvancedWebGL(n);else{this._renderWebGL(n);for(var r=0,h=this.children.length;r<h;++r)this.children[r].renderWebGL(n)}},i.prototype.renderAdvancedWebGL=function(n){n.flush();var r=this._filters,h=this._mask;if(r){this._enabledFilters||(this._enabledFilters=[]),this._enabledFilters.length=0;for(var p=0;p<r.length;p++)r[p].enabled&&this._enabledFilters.push(r[p]);this._enabledFilters.length&&n.filterManager.pushFilter(this,this._enabledFilters)}h&&n.maskManager.pushMask(this,this._mask),this._renderWebGL(n);for(var u=0,y=this.children.length;u<y;u++)this.children[u].renderWebGL(n);n.flush(),h&&n.maskManager.popMask(this,this._mask),r&&this._enabledFilters&&this._enabledFilters.length&&n.filterManager.popFilter()},i.prototype._renderWebGL=function(n){},i.prototype._renderCanvas=function(n){},i.prototype.renderCanvas=function(n){if(this.visible&&!(this.worldAlpha<=0)&&this.renderable){this._mask&&n.maskManager.pushMask(this._mask),this._renderCanvas(n);for(var r=0,h=this.children.length;r<h;++r)this.children[r].renderCanvas(n);this._mask&&n.maskManager.popMask(n)}},i.prototype.destroy=function(n){t.prototype.destroy.call(this);var r=typeof n=="boolean"?n:n&&n.children,h=this.removeChildren(0,this.children.length);if(r)for(var p=0;p<h.length;++p)h[p].destroy(n)},m(i,[{key:"width",get:function(){return this.scale.x*this.getLocalBounds().width},set:function(n){var r=this.getLocalBounds().width;r!==0?this.scale.x=n/r:this.scale.x=1,this._width=n}},{key:"height",get:function(){return this.scale.y*this.getLocalBounds().height},set:function(n){var r=this.getLocalBounds().height;r!==0?this.scale.y=n/r:this.scale.y=1,this._height=n}}]),i}(o.default);E.default=e,e.prototype.containerUpdateTransform=e.prototype.updateTransform},function(B,E,c){"use strict";function O(b,m){var l=b.points;if(l.length!==0){var f=new x.Point(l[0],l[1]),o=new x.Point(l[l.length-2],l[l.length-1]);if(f.x===o.x&&f.y===o.y){l=l.slice(),l.pop(),l.pop(),o=new x.Point(l[l.length-2],l[l.length-1]);var e=o.x+.5*(f.x-o.x),t=o.y+.5*(f.y-o.y);l.unshift(e,t),l.push(e,t)}var i=m.points,n=m.indices,r=l.length/2,h=l.length,p=i.length/6,u=b.lineWidth/2,y=(0,_.hex2rgb)(b.lineColor),d=b.lineAlpha,w=y[0]*d,g=y[1]*d,a=y[2]*d,s=l[0],v=l[1],P=l[2],T=l[3],C=0,M=0,R=-(v-T),S=s-P,L=0,A=0,D=0,I=0,U=Math.sqrt(R*R+S*S);R/=U,S/=U,R*=u,S*=u,i.push(s-R,v-S,w,g,a,d),i.push(s+R,v+S,w,g,a,d);for(var N=1;N<r-1;++N){s=l[2*(N-1)],v=l[2*(N-1)+1],P=l[2*N],T=l[2*N+1],C=l[2*(N+1)],M=l[2*(N+1)+1],R=-(v-T),S=s-P,U=Math.sqrt(R*R+S*S),R/=U,S/=U,R*=u,S*=u,L=-(T-M),A=P-C,U=Math.sqrt(L*L+A*A),L/=U,A/=U,L*=u,A*=u;var W=-S+v-(-S+T),H=-R+P-(-R+s),tt=(-R+s)*(-S+T)-(-R+P)*(-S+v),it=-A+M-(-A+T),K=-L+P-(-L+C),at=(-L+C)*(-A+T)-(-L+P)*(-A+M),ut=W*K-it*H;if(Math.abs(ut)<.1)ut+=10.1,i.push(P-R,T-S,w,g,a,d),i.push(P+R,T+S,w,g,a,d);else{var mt=(H*at-K*tt)/ut,wt=(it*tt-W*at)/ut,Dt=(mt-P)*(mt-P)+(wt-T)*(wt-T);Dt>196*u*u?(D=R-L,I=S-A,U=Math.sqrt(D*D+I*I),D/=U,I/=U,D*=u,I*=u,i.push(P-D,T-I),i.push(w,g,a,d),i.push(P+D,T+I),i.push(w,g,a,d),i.push(P-D,T-I),i.push(w,g,a,d),h++):(i.push(mt,wt),i.push(w,g,a,d),i.push(P-(mt-P),T-(wt-T)),i.push(w,g,a,d))}}s=l[2*(r-2)],v=l[2*(r-2)+1],P=l[2*(r-1)],T=l[2*(r-1)+1],R=-(v-T),S=s-P,U=Math.sqrt(R*R+S*S),R/=U,S/=U,R*=u,S*=u,i.push(P-R,T-S),i.push(w,g,a,d),i.push(P+R,T+S),i.push(w,g,a,d),n.push(p);for(var yt=0;yt<h;++yt)n.push(p++);n.push(p-1)}}E.__esModule=!0,E.default=O;var x=c(4),_=c(3)},function(B,E,c){"use strict";function O(d){return d&&d.__esModule?d:{default:d}}function x(d,w){if(!(d instanceof w))throw new TypeError("Cannot call a class as a function")}function _(d,w){if(!d)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!w||typeof w!="object"&&typeof w!="function"?d:w}function b(d,w){if(typeof w!="function"&&w!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof w);d.prototype=Object.create(w&&w.prototype,{constructor:{value:d,enumerable:!1,writable:!0,configurable:!0}}),w&&(Object.setPrototypeOf?Object.setPrototypeOf(d,w):d.__proto__=w)}E.__esModule=!0;var m=c(99),l=O(m),f=c(197),o=O(f),e=c(100),t=O(e),i=c(198),n=O(i),r=c(3),h=c(2),p=c(5),u=O(p),y=function(d){function w(g,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};x(this,w);var v=_(this,d.call(this,"Canvas",g,a,s));return v.type=h.RENDERER_TYPE.CANVAS,v.rootContext=v.view.getContext("2d",{alpha:v.transparent}),v.refresh=!0,v.maskManager=new o.default(v),v.smoothProperty="imageSmoothingEnabled",v.rootContext.imageSmoothingEnabled||(v.rootContext.webkitImageSmoothingEnabled?v.smoothProperty="webkitImageSmoothingEnabled":v.rootContext.mozImageSmoothingEnabled?v.smoothProperty="mozImageSmoothingEnabled":v.rootContext.oImageSmoothingEnabled?v.smoothProperty="oImageSmoothingEnabled":v.rootContext.msImageSmoothingEnabled&&(v.smoothProperty="msImageSmoothingEnabled")),v.initPlugins(),v.blendModes=(0,n.default)(),v._activeBlendMode=null,v.context=null,v.renderingToScreen=!1,v.resize(g,a),v}return b(w,d),w.prototype.render=function(g,a,s,v,P){if(this.view){this.renderingToScreen=!a,this.emit("prerender");var T=this.resolution;a?(a=a.baseTexture||a,a._canvasRenderTarget||(a._canvasRenderTarget=new t.default(a.width,a.height,a.resolution),a.source=a._canvasRenderTarget.canvas,a.valid=!0),this.context=a._canvasRenderTarget.context,this.resolution=a._canvasRenderTarget.resolution):this.context=this.rootContext;var C=this.context;if(a||(this._lastObjectRendered=g),!P){var M=g.parent,R=this._tempDisplayObjectParent.transform.worldTransform;v?v.copy(R):R.identity(),g.parent=this._tempDisplayObjectParent,g.updateTransform(),g.parent=M}C.setTransform(1,0,0,1,0,0),C.globalAlpha=1,C.globalCompositeOperation=this.blendModes[h.BLEND_MODES.NORMAL],navigator.isCocoonJS&&this.view.screencanvas&&(C.fillStyle="black",C.clear()),(s!==void 0?s:this.clearBeforeRender)&&this.renderingToScreen&&(this.transparent?C.clearRect(0,0,this.width,this.height):(C.fillStyle=this._backgroundColorString,C.fillRect(0,0,this.width,this.height)));var S=this.context;this.context=C,g.renderCanvas(this),this.context=S,this.resolution=T,this.emit("postrender")}},w.prototype.clear=function(g){var a=this.context;g=g||this._backgroundColorString,!this.transparent&&g?(a.fillStyle=g,a.fillRect(0,0,this.width,this.height)):a.clearRect(0,0,this.width,this.height)},w.prototype.setBlendMode=function(g){this._activeBlendMode!==g&&(this._activeBlendMode=g,this.context.globalCompositeOperation=this.blendModes[g])},w.prototype.destroy=function(g){this.destroyPlugins(),d.prototype.destroy.call(this,g),this.context=null,this.refresh=!0,this.maskManager.destroy(),this.maskManager=null,this.smoothProperty=null},w.prototype.resize=function(g,a){d.prototype.resize.call(this,g,a),this.smoothProperty&&(this.rootContext[this.smoothProperty]=u.default.SCALE_MODE===h.SCALE_MODES.LINEAR)},w}(l.default);E.default=y,r.pluginTarget.mixin(y)},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")}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(24),l=O(m),f=function(o){function e(){return x(this,e),_(this,o.apply(this,arguments))}return b(e,o),e.prototype.start=function(){},e.prototype.stop=function(){this.flush()},e.prototype.flush=function(){},e.prototype.render=function(t){},e}(l.default);E.default=f},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")}E.__esModule=!0;var _=c(4),b=c(2),m=c(5),l=O(m),f=c(6),o=function(){function e(t,i,n,r,h,p){x(this,e),this.gl=t,this.frameBuffer=null,this.texture=null,this.clearColor=[0,0,0,0],this.size=new _.Rectangle(0,0,1,1),this.resolution=h||l.default.RESOLUTION,this.projectionMatrix=new _.Matrix,this.transform=null,this.frame=null,this.defaultFrame=new _.Rectangle,this.destinationFrame=null,this.sourceFrame=null,this.stencilBuffer=null,this.stencilMaskStack=[],this.filterData=null,this.scaleMode=r||l.default.SCALE_MODE,this.root=p,this.root?(this.frameBuffer=new f.GLFramebuffer(t,100,100),this.frameBuffer.framebuffer=null):(this.frameBuffer=f.GLFramebuffer.createRGBA(t,100,100),this.scaleMode===b.SCALE_MODES.NEAREST?this.frameBuffer.texture.enableNearestScaling():this.frameBuffer.texture.enableLinearScaling(),this.texture=this.frameBuffer.texture),this.setFrame(),this.resize(i,n)}return e.prototype.clear=function(t){var i=t||this.clearColor;this.frameBuffer.clear(i[0],i[1],i[2],i[3])},e.prototype.attachStencilBuffer=function(){this.root||this.frameBuffer.enableStencil()},e.prototype.setFrame=function(t,i){this.destinationFrame=t||this.destinationFrame||this.defaultFrame,this.sourceFrame=i||this.sourceFrame||t},e.prototype.activate=function(){var t=this.gl;this.frameBuffer.bind(),this.calculateProjection(this.destinationFrame,this.sourceFrame),this.transform&&this.projectionMatrix.append(this.transform),this.destinationFrame!==this.sourceFrame?(t.enable(t.SCISSOR_TEST),t.scissor(0|this.destinationFrame.x,0|this.destinationFrame.y,this.destinationFrame.width*this.resolution|0,this.destinationFrame.height*this.resolution|0)):t.disable(t.SCISSOR_TEST),t.viewport(0|this.destinationFrame.x,0|this.destinationFrame.y,this.destinationFrame.width*this.resolution|0,this.destinationFrame.height*this.resolution|0)},e.prototype.calculateProjection=function(t,i){var n=this.projectionMatrix;i=i||t,n.identity(),this.root?(n.a=1/t.width*2,n.d=-1/t.height*2,n.tx=-1-i.x*n.a,n.ty=1-i.y*n.d):(n.a=1/t.width*2,n.d=1/t.height*2,n.tx=-1-i.x*n.a,n.ty=-1-i.y*n.d)},e.prototype.resize=function(t,i){if(t=0|t,i=0|i,this.size.width!==t||this.size.height!==i){this.size.width=t,this.size.height=i,this.defaultFrame.width=t,this.defaultFrame.height=i,this.frameBuffer.resize(t*this.resolution,i*this.resolution);var n=this.frame||this.size;this.calculateProjection(n)}},e.prototype.destroy=function(){this.frameBuffer.destroy(),this.frameBuffer=null,this.texture=null},e}();E.default=o},function(B,E,c){"use strict";function O(o){return o&&o.__esModule?o:{default:o}}E.__esModule=!0;var x=c(264),_=O(x),b=c(263),m=O(b),l=c(130),f=O(l);E.default=function(o,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function, not "+(typeof e=="undefined"?"undefined":(0,f.default)(e)));o.prototype=(0,m.default)(e&&e.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),e&&(_.default?(0,_.default)(o,e):o.__proto__=e)}},function(B,E,c){"use strict";function O(b){return b&&b.__esModule?b:{default:b}}E.__esModule=!0;var x=c(130),_=O(x);E.default=function(b,m){if(!b)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!m||(typeof m=="undefined"?"undefined":(0,_.default)(m))!=="object"&&typeof m!="function"?b:m}},function(B,E){"use strict";function c(_){var b=32;return _&=-_,_&&b--,65535&_&&(b-=16),16711935&_&&(b-=8),252645135&_&&(b-=4),858993459&_&&(b-=2),1431655765&_&&(b-=1),b}var O=32;E.INT_BITS=O,E.INT_MAX=2147483647,E.INT_MIN=-1<<O-1,E.sign=function(_){return(_>0)-(_<0)},E.abs=function(_){var b=_>>O-1;return(_^b)-b},E.min=function(_,b){return b^(_^b)&-(_<b)},E.max=function(_,b){return _^(_^b)&-(_<b)},E.isPow2=function(_){return!(_&_-1||!_)},E.log2=function(_){var b,m;return b=(_>65535)<<4,_>>>=b,m=(_>255)<<3,_>>>=m,b|=m,m=(_>15)<<2,_>>>=m,b|=m,m=(_>3)<<1,_>>>=m,b|=m,b|_>>1},E.log10=function(_){return _>=1e9?9:_>=1e8?8:_>=1e7?7:_>=1e6?6:_>=1e5?5:_>=1e4?4:_>=1e3?3:_>=100?2:_>=10?1:0},E.popCount=function(_){return _-=_>>>1&1431655765,_=(858993459&_)+(_>>>2&858993459),16843009*(_+(_>>>4)&252645135)>>>24},E.countTrailingZeros=c,E.nextPow2=function(_){return _+=_===0,--_,_|=_>>>1,_|=_>>>2,_|=_>>>4,_|=_>>>8,_|=_>>>16,_+1},E.prevPow2=function(_){return _|=_>>>1,_|=_>>>2,_|=_>>>4,_|=_>>>8,_|=_>>>16,_-(_>>>1)},E.parity=function(_){return _^=_>>>16,_^=_>>>8,_^=_>>>4,_&=15,27030>>>_&1};var x=new Array(256);(function(_){for(var b=0;b<256;++b){var m=b,l=b,f=7;for(m>>>=1;m;m>>>=1)l<<=1,l|=1&m,--f;_[b]=l<<f&255}})(x),E.reverse=function(_){return x[255&_]<<24|x[_>>>8&255]<<16|x[_>>>16&255]<<8|x[_>>>24&255]},E.interleave2=function(_,b){return _&=65535,_=16711935&(_|_<<8),_=252645135&(_|_<<4),_=858993459&(_|_<<2),_=1431655765&(_|_<<1),b&=65535,b=16711935&(b|b<<8),b=252645135&(b|b<<4),b=858993459&(b|b<<2),b=1431655765&(b|b<<1),_|b<<1},E.deinterleave2=function(_,b){return _=_>>>b&1431655765,_=858993459&(_|_>>>1),_=252645135&(_|_>>>2),_=16711935&(_|_>>>4),_=65535&(_|_>>>16),_<<16>>16},E.interleave3=function(_,b,m){return _&=1023,_=4278190335&(_|_<<16),_=251719695&(_|_<<8),_=3272356035&(_|_<<4),_=1227133513&(_|_<<2),b&=1023,b=4278190335&(b|b<<16),b=251719695&(b|b<<8),b=3272356035&(b|b<<4),b=1227133513&(b|b<<2),_|=b<<1,m&=1023,m=4278190335&(m|m<<16),m=251719695&(m|m<<8),m=3272356035&(m|m<<4),m=1227133513&(m|m<<2),_|m<<2},E.deinterleave3=function(_,b){return _=_>>>b&1227133513,_=3272356035&(_|_>>>2),_=251719695&(_|_>>>4),_=4278190335&(_|_>>>8),_=1023&(_|_>>>16),_<<22>>22},E.nextCombination=function(_){var b=_|_-1;return b+1|(~b&-~b)-1>>>c(_)+1}},function(B,E){var c=function(_,b){if(!O){var m=Object.keys(x);O={};for(var l=0;l<m.length;++l){var f=m[l];O[_[f]]=x[f]}}return O[b]},O=null,x={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D"};B.exports=c},function(B,E,c){"use strict";function O(y){return y&&y.__esModule?y:{default:y}}function x(y,d){if(!(y instanceof d))throw new TypeError("Cannot call a class as a function")}function _(){}function b(y,d,w){d&&d.indexOf(".")===0&&(d=d.substring(1)),d&&(y[d]=w)}function m(y){return y.toString().replace("object ","")}E.__esModule=!0;var l=function(){function y(d,w){for(var g=0;g<w.length;g++){var a=w[g];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(d,a.key,a)}}return function(d,w,g){return w&&y(d.prototype,w),g&&y(d,g),d}}(),f=c(69),o=O(f),e=c(78),t=O(e),i=!(!window.XDomainRequest||"withCredentials"in new XMLHttpRequest),n=null,r=0,h=200,p=204,u=function(){function y(d,w,g){if(x(this,y),typeof d!="string"||typeof w!="string")throw new Error("Both name and url are required for constructing a resource.");g=g||{},this._flags=0,this._setFlag(y.STATUS_FLAGS.DATA_URL,w.indexOf("data:")===0),this.name=d,this.url=w,this.data=null,this.crossOrigin=g.crossOrigin===!0?"anonymous":g.crossOrigin,this.loadType=g.loadType||this._determineLoadType(),this.xhrType=g.xhrType,this.metadata=g.metadata||{},this.error=null,this.xhr=null,this.children=[],this.type=y.TYPE.UNKNOWN,this.progressChunk=0,this._dequeue=_,this._onLoadBinding=null,this._boundComplete=this.complete.bind(this),this._boundOnError=this._onError.bind(this),this._boundOnProgress=this._onProgress.bind(this),this._boundXhrOnError=this._xhrOnError.bind(this),this._boundXhrOnAbort=this._xhrOnAbort.bind(this),this._boundXhrOnLoad=this._xhrOnLoad.bind(this),this._boundXdrOnTimeout=this._xdrOnTimeout.bind(this),this.onStart=new t.default,this.onProgress=new t.default,this.onComplete=new t.default,this.onAfterMiddleware=new t.default}return y.setExtensionLoadType=function(d,w){b(y._loadTypeMap,d,w)},y.setExtensionXhrType=function(d,w){b(y._xhrTypeMap,d,w)},y.prototype.complete=function(){if(this.data&&this.data.removeEventListener&&(this.data.removeEventListener("error",this._boundOnError,!1),this.data.removeEventListener("load",this._boundComplete,!1),this.data.removeEventListener("progress",this._boundOnProgress,!1),this.data.removeEventListener("canplaythrough",this._boundComplete,!1)),this.xhr&&(this.xhr.removeEventListener?(this.xhr.removeEventListener("error",this._boundXhrOnError,!1),this.xhr.removeEventListener("abort",this._boundXhrOnAbort,!1),this.xhr.removeEventListener("progress",this._boundOnProgress,!1),this.xhr.removeEventListener("load",this._boundXhrOnLoad,!1)):(this.xhr.onerror=null,this.xhr.ontimeout=null,this.xhr.onprogress=null,this.xhr.onload=null)),this.isComplete)throw new Error("Complete called again for an already completed resource.");this._setFlag(y.STATUS_FLAGS.COMPLETE,!0),this._setFlag(y.STATUS_FLAGS.LOADING,!1),this.onComplete.dispatch(this)},y.prototype.abort=function(d){if(!this.error){if(this.error=new Error(d),this.xhr)this.xhr.abort();else if(this.xdr)this.xdr.abort();else if(this.data)if(this.data.src)this.data.src=y.EMPTY_GIF;else for(;this.data.firstChild;)this.data.removeChild(this.data.firstChild);this.complete()}},y.prototype.load=function(d){var w=this;if(!this.isLoading){if(this.isComplete)return void(d&&setTimeout(function(){return d(w)},1));switch(d&&this.onComplete.once(d),this._setFlag(y.STATUS_FLAGS.LOADING,!0),this.onStart.dispatch(this),this.crossOrigin!==!1&&typeof this.crossOrigin=="string"||(this.crossOrigin=this._determineCrossOrigin(this.url)),this.loadType){case y.LOAD_TYPE.IMAGE:this.type=y.TYPE.IMAGE,this._loadElement("image");break;case y.LOAD_TYPE.AUDIO:this.type=y.TYPE.AUDIO,this._loadSourceElement("audio");break;case y.LOAD_TYPE.VIDEO:this.type=y.TYPE.VIDEO,this._loadSourceElement("video");break;case y.LOAD_TYPE.XHR:default:i&&this.crossOrigin?this._loadXdr():this._loadXhr()}}},y.prototype._hasFlag=function(d){return!!(this._flags&d)},y.prototype._setFlag=function(d,w){this._flags=w?this._flags|d:this._flags&~d},y.prototype._loadElement=function(d){this.metadata.loadElement?this.data=this.metadata.loadElement:d==="image"&&typeof window.Image!="undefined"?this.data=new Image:this.data=document.createElement(d),this.crossOrigin&&(this.data.crossOrigin=this.crossOrigin),this.metadata.skipSource||(this.data.src=this.url),this.data.addEventListener("error",this._boundOnError,!1),this.data.addEventListener("load",this._boundComplete,!1),this.data.addEventListener("progress",this._boundOnProgress,!1)},y.prototype._loadSourceElement=function(d){if(this.metadata.loadElement?this.data=this.metadata.loadElement:d==="audio"&&typeof window.Audio!="undefined"?this.data=new Audio:this.data=document.createElement(d),this.data===null)return void this.abort("Unsupported element: "+d);if(!this.metadata.skipSource)if(navigator.isCocoonJS)this.data.src=Array.isArray(this.url)?this.url[0]:this.url;else if(Array.isArray(this.url))for(var w=0;w<this.url.length;++w)this.data.appendChild(this._createSource(d,this.url[w]));else this.data.appendChild(this._createSource(d,this.url));this.data.addEventListener("error",this._boundOnError,!1),this.data.addEventListener("load",this._boundComplete,!1),this.data.addEventListener("progress",this._boundOnProgress,!1),this.data.addEventListener("canplaythrough",this._boundComplete,!1),this.data.load()},y.prototype._loadXhr=function(){typeof this.xhrType!="string"&&(this.xhrType=this._determineXhrType());var d=this.xhr=new XMLHttpRequest;d.open("GET",this.url,!0),this.xhrType===y.XHR_RESPONSE_TYPE.JSON||this.xhrType===y.XHR_RESPONSE_TYPE.DOCUMENT?d.responseType=y.XHR_RESPONSE_TYPE.TEXT:d.responseType=this.xhrType,d.addEventListener("error",this._boundXhrOnError,!1),d.addEventListener("abort",this._boundXhrOnAbort,!1),d.addEventListener("progress",this._boundOnProgress,!1),d.addEventListener("load",this._boundXhrOnLoad,!1),d.send()},y.prototype._loadXdr=function(){typeof this.xhrType!="string"&&(this.xhrType=this._determineXhrType());var d=this.xhr=new XDomainRequest;d.timeout=5e3,d.onerror=this._boundXhrOnError,d.ontimeout=this._boundXdrOnTimeout,d.onprogress=this._boundOnProgress,d.onload=this._boundXhrOnLoad,d.open("GET",this.url,!0),setTimeout(function(){return d.send()},1)},y.prototype._createSource=function(d,w,g){g||(g=d+"/"+w.substr(w.lastIndexOf(".")+1));var a=document.createElement("source");return a.src=w,a.type=g,a},y.prototype._onError=function(d){this.abort("Failed to load element using: "+d.target.nodeName)},y.prototype._onProgress=function(d){d&&d.lengthComputable&&this.onProgress.dispatch(this,d.loaded/d.total)},y.prototype._xhrOnError=function(){var d=this.xhr;this.abort(m(d)+" Request failed. Status: "+d.status+', text: "'+d.statusText+'"')},y.prototype._xhrOnAbort=function(){this.abort(m(this.xhr)+" Request was aborted by the user.")},y.prototype._xdrOnTimeout=function(){this.abort(m(this.xhr)+" Request timed out.")},y.prototype._xhrOnLoad=function(){var d=this.xhr,w=typeof d.status=="undefined"?d.status:h;if(!(w===h||w===p||w===r&&d.responseText.length>0))return void this.abort("["+d.status+"] "+d.statusText+": "+d.responseURL);if(this.xhrType===y.XHR_RESPONSE_TYPE.TEXT)this.data=d.responseText,this.type=y.TYPE.TEXT;else if(this.xhrType===y.XHR_RESPONSE_TYPE.JSON)try{this.data=JSON.parse(d.responseText),this.type=y.TYPE.JSON}catch(s){return void this.abort("Error trying to parse loaded json: "+s)}else if(this.xhrType===y.XHR_RESPONSE_TYPE.DOCUMENT)try{if(window.DOMParser){var g=new DOMParser;this.data=g.parseFromString(d.responseText,"text/xml")}else{var a=document.createElement("div");a.innerHTML=d.responseText,this.data=a}this.type=y.TYPE.XML}catch(s){return void this.abort("Error trying to parse loaded xml: "+s)}else this.data=d.response||d.responseText;this.complete()},y.prototype._determineCrossOrigin=function(d,w){if(d.indexOf("data:")===0)return"";w=w||window.location,n||(n=document.createElement("a")),n.href=d,d=(0,o.default)(n.href,{strictMode:!0});var g=!d.port&&w.port===""||d.port===w.port,a=d.protocol?d.protocol+":":"";return d.host===w.hostname&&g&&a===w.protocol?"":"anonymous"},y.prototype._determineXhrType=function(){return y._xhrTypeMap[this._getExtension()]||y.XHR_RESPONSE_TYPE.TEXT},y.prototype._determineLoadType=function(){return y._loadTypeMap[this._getExtension()]||y.LOAD_TYPE.XHR},y.prototype._getExtension=function(){var d=this.url,w="";if(this.isDataUrl){var g=d.indexOf("/");w=d.substring(g+1,d.indexOf(";",g))}else{var a=d.indexOf("?");a!==-1&&(d=d.substring(0,a)),w=d.substring(d.lastIndexOf(".")+1)}return w.toLowerCase()},y.prototype._getMimeFromXhrType=function(d){switch(d){case y.XHR_RESPONSE_TYPE.BUFFER:return"application/octet-binary";case y.XHR_RESPONSE_TYPE.BLOB:return"application/blob";case y.XHR_RESPONSE_TYPE.DOCUMENT:return"application/xml";case y.XHR_RESPONSE_TYPE.JSON:return"application/json";case y.XHR_RESPONSE_TYPE.DEFAULT:case y.XHR_RESPONSE_TYPE.TEXT:default:return"text/plain"}},l(y,[{key:"isDataUrl",get:function(){return this._hasFlag(y.STATUS_FLAGS.DATA_URL)}},{key:"isComplete",get:function(){return this._hasFlag(y.STATUS_FLAGS.COMPLETE)}},{key:"isLoading",get:function(){return this._hasFlag(y.STATUS_FLAGS.LOADING)}}]),y}();E.default=u,u.STATUS_FLAGS={NONE:0,DATA_URL:1,COMPLETE:2,LOADING:4},u.TYPE={UNKNOWN:0,JSON:1,XML:2,IMAGE:3,AUDIO:4,VIDEO:5,TEXT:6},u.LOAD_TYPE={XHR:1,IMAGE:2,AUDIO:3,VIDEO:4},u.XHR_RESPONSE_TYPE={DEFAULT:"text",BUFFER:"arraybuffer",BLOB:"blob",DOCUMENT:"document",JSON:"json",TEXT:"text"},u._loadTypeMap={gif:u.LOAD_TYPE.IMAGE,png:u.LOAD_TYPE.IMAGE,bmp:u.LOAD_TYPE.IMAGE,jpg:u.LOAD_TYPE.IMAGE,jpeg:u.LOAD_TYPE.IMAGE,tif:u.LOAD_TYPE.IMAGE,tiff:u.LOAD_TYPE.IMAGE,webp:u.LOAD_TYPE.IMAGE,tga:u.LOAD_TYPE.IMAGE,svg:u.LOAD_TYPE.IMAGE,"svg+xml":u.LOAD_TYPE.IMAGE,mp3:u.LOAD_TYPE.AUDIO,ogg:u.LOAD_TYPE.AUDIO,wav:u.LOAD_TYPE.AUDIO,mp4:u.LOAD_TYPE.VIDEO,webm:u.LOAD_TYPE.VIDEO},u._xhrTypeMap={xhtml:u.XHR_RESPONSE_TYPE.DOCUMENT,html:u.XHR_RESPONSE_TYPE.DOCUMENT,htm:u.XHR_RESPONSE_TYPE.DOCUMENT,xml:u.XHR_RESPONSE_TYPE.DOCUMENT,tmx:u.XHR_RESPONSE_TYPE.DOCUMENT,svg:u.XHR_RESPONSE_TYPE.DOCUMENT,tsx:u.XHR_RESPONSE_TYPE.DOCUMENT,gif:u.XHR_RESPONSE_TYPE.BLOB,png:u.XHR_RESPONSE_TYPE.BLOB,bmp:u.XHR_RESPONSE_TYPE.BLOB,jpg:u.XHR_RESPONSE_TYPE.BLOB,jpeg:u.XHR_RESPONSE_TYPE.BLOB,tif:u.XHR_RESPONSE_TYPE.BLOB,tiff:u.XHR_RESPONSE_TYPE.BLOB,webp:u.XHR_RESPONSE_TYPE.BLOB,tga:u.XHR_RESPONSE_TYPE.BLOB,json:u.XHR_RESPONSE_TYPE.JSON,text:u.XHR_RESPONSE_TYPE.TEXT,txt:u.XHR_RESPONSE_TYPE.TEXT,ttf:u.XHR_RESPONSE_TYPE.BUFFER,otf:u.XHR_RESPONSE_TYPE.BUFFER},u.EMPTY_GIF="data:image/gif;base64,R0lGODlhAQABAIAAAP///wAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=="},function(B,E){B.exports=function(c){if(c==null)throw TypeError("Can't call method on "+c);return c}},function(B,E){B.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(B,E){B.exports={}},function(B,E){B.exports=!0},function(B,E,c){var O=c(20),x=c(163),_=c(45),b=c(51)("IE_PROTO"),m=function(){},l="prototype",f=function(){var o,e=c(84)("iframe"),t=_.length,i="<",n=">";for(e.style.display="none",c(156).appendChild(e),e.src="javascript:",o=e.contentWindow.document,o.open(),o.write(i+"script"+n+"document.F=Object"+i+"/script"+n),o.close(),f=o.F;t--;)delete f[l][_[t]];return f()};B.exports=Object.create||function(o,e){var t;return o!==null?(m[l]=O(o),t=new m,m[l]=null,t[b]=o):t=f(),e===void 0?t:x(t,e)}},function(B,E){E.f={}.propertyIsEnumerable},function(B,E,c){var O=c(17).f,x=c(12),_=c(18)("toStringTag");B.exports=function(b,m,l){b&&!x(b=l?b:b.prototype,_)&&O(b,_,{configurable:!0,value:m})}},function(B,E,c){var O=c(52)("keys"),x=c(33);B.exports=function(_){return O[_]||(O[_]=x(_))}},function(B,E,c){var O=c(11),x="__core-js_shared__",_=O[x]||(O[x]={});B.exports=function(b){return _[b]||(_[b]={})}},function(B,E){var c=Math.ceil,O=Math.floor;B.exports=function(x){return isNaN(x=+x)?0:(x>0?O:c)(x)}},function(B,E,c){var O=c(22);B.exports=function(x,_){if(!O(x))return x;var b,m;if(_&&typeof(b=x.toString)=="function"&&!O(m=b.call(x))||typeof(b=x.valueOf)=="function"&&!O(m=b.call(x))||!_&&typeof(b=x.toString)=="function"&&!O(m=b.call(x)))return m;throw TypeError("Can't convert object to primitive value")}},function(B,E,c){var O=c(11),x=c(21),_=c(47),b=c(56),m=c(17).f;B.exports=function(l){var f=x.Symbol||(x.Symbol=_?{}:O.Symbol||{});l.charAt(0)=="_"||l in f||m(f,l,{value:b.f(l)})}},function(B,E,c){E.f=c(18)},function(B,E,c){"use strict";function O(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var x=c(4),_=function(){function b(){O(this,b),this.minX=1/0,this.minY=1/0,this.maxX=-(1/0),this.maxY=-(1/0),this.rect=null}return b.prototype.isEmpty=function(){return this.minX>this.maxX||this.minY>this.maxY},b.prototype.clear=function(){this.updateID++,this.minX=1/0,this.minY=1/0,this.maxX=-(1/0),this.maxY=-(1/0)},b.prototype.getRectangle=function(m){return this.minX>this.maxX||this.minY>this.maxY?x.Rectangle.EMPTY:(m=m||new x.Rectangle(0,0,1,1),m.x=this.minX,m.y=this.minY,m.width=this.maxX-this.minX,m.height=this.maxY-this.minY,m)},b.prototype.addPoint=function(m){this.minX=Math.min(this.minX,m.x),this.maxX=Math.max(this.maxX,m.x),this.minY=Math.min(this.minY,m.y),this.maxY=Math.max(this.maxY,m.y)},b.prototype.addQuad=function(m){var l=this.minX,f=this.minY,o=this.maxX,e=this.maxY,t=m[0],i=m[1];l=t<l?t:l,f=i<f?i:f,o=t>o?t:o,e=i>e?i:e,t=m[2],i=m[3],l=t<l?t:l,f=i<f?i:f,o=t>o?t:o,e=i>e?i:e,t=m[4],i=m[5],l=t<l?t:l,f=i<f?i:f,o=t>o?t:o,e=i>e?i:e,t=m[6],i=m[7],l=t<l?t:l,f=i<f?i:f,o=t>o?t:o,e=i>e?i:e,this.minX=l,this.minY=f,this.maxX=o,this.maxY=e},b.prototype.addFrame=function(m,l,f,o,e){var t=m.worldTransform,i=t.a,n=t.b,r=t.c,h=t.d,p=t.tx,u=t.ty,y=this.minX,d=this.minY,w=this.maxX,g=this.maxY,a=i*l+r*f+p,s=n*l+h*f+u;y=a<y?a:y,d=s<d?s:d,w=a>w?a:w,g=s>g?s:g,a=i*o+r*f+p,s=n*o+h*f+u,y=a<y?a:y,d=s<d?s:d,w=a>w?a:w,g=s>g?s:g,a=i*l+r*e+p,s=n*l+h*e+u,y=a<y?a:y,d=s<d?s:d,w=a>w?a:w,g=s>g?s:g,a=i*o+r*e+p,s=n*o+h*e+u,y=a<y?a:y,d=s<d?s:d,w=a>w?a:w,g=s>g?s:g,this.minX=y,this.minY=d,this.maxX=w,this.maxY=g},b.prototype.addVertices=function(m,l,f,o){for(var e=m.worldTransform,t=e.a,i=e.b,n=e.c,r=e.d,h=e.tx,p=e.ty,u=this.minX,y=this.minY,d=this.maxX,w=this.maxY,g=f;g<o;g+=2){var a=l[g],s=l[g+1],v=t*a+n*s+h,P=r*s+i*a+p;u=v<u?v:u,y=P<y?P:y,d=v>d?v:d,w=P>w?P:w}this.minX=u,this.minY=y,this.maxX=d,this.maxY=w},b.prototype.addBounds=function(m){var l=this.minX,f=this.minY,o=this.maxX,e=this.maxY;this.minX=m.minX<l?m.minX:l,this.minY=m.minY<f?m.minY:f,this.maxX=m.maxX>o?m.maxX:o,this.maxY=m.maxY>e?m.maxY:e},b.prototype.addBoundsMask=function(m,l){var f=m.minX>l.minX?m.minX:l.minX,o=m.minY>l.minY?m.minY:l.minY,e=m.maxX<l.maxX?m.maxX:l.maxX,t=m.maxY<l.maxY?m.maxY:l.maxY;if(f<=e&&o<=t){var i=this.minX,n=this.minY,r=this.maxX,h=this.maxY;this.minX=f<i?f:i,this.minY=o<n?o:n,this.maxX=e>r?e:r,this.maxY=t>h?t:h}},b.prototype.addBoundsArea=function(m,l){var f=m.minX>l.x?m.minX:l.x,o=m.minY>l.y?m.minY:l.y,e=m.maxX<l.x+l.width?m.maxX:l.x+l.width,t=m.maxY<l.y+l.height?m.maxY:l.y+l.height;if(f<=e&&o<=t){var i=this.minX,n=this.minY,r=this.maxX,h=this.maxY;this.minX=f<i?f:i,this.minY=o<n?o:n,this.maxX=e>r?e:r,this.maxY=t>h?t:h}},b}();E.default=_},function(B,E,c){"use strict";function O(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var x=c(4),_=function(){function b(){O(this,b),this.worldTransform=new x.Matrix,this.localTransform=new x.Matrix,this._worldID=0,this._parentID=0}return b.prototype.updateLocalTransform=function(){},b.prototype.updateTransform=function(m){var l=m.worldTransform,f=this.worldTransform,o=this.localTransform;f.a=o.a*l.a+o.b*l.c,f.b=o.a*l.b+o.b*l.d,f.c=o.c*l.a+o.d*l.c,f.d=o.c*l.b+o.d*l.d,f.tx=o.tx*l.a+o.ty*l.c+l.tx,f.ty=o.tx*l.b+o.ty*l.d+l.ty,this._worldID++},b}();E.default=_,_.prototype.updateWorldTransform=_.prototype.updateTransform,_.IDENTITY=new _},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 _=function(){function f(o,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(o,i.key,i)}}return function(o,e,t){return e&&f(o.prototype,e),t&&f(o,t),o}}(),b=c(60),m=O(b),l=function(){function f(){x(this,f),this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this.array=null}return f.prototype.fromArray=function(o){this.a=o[0],this.b=o[1],this.c=o[3],this.d=o[4],this.tx=o[2],this.ty=o[5]},f.prototype.set=function(o,e,t,i,n,r){return this.a=o,this.b=e,this.c=t,this.d=i,this.tx=n,this.ty=r,this},f.prototype.toArray=function(o,e){this.array||(this.array=new Float32Array(9));var t=e||this.array;return o?(t[0]=this.a,t[1]=this.b,t[2]=0,t[3]=this.c,t[4]=this.d,t[5]=0,t[6]=this.tx,t[7]=this.ty,t[8]=1):(t[0]=this.a,t[1]=this.c,t[2]=this.tx,t[3]=this.b,t[4]=this.d,t[5]=this.ty,t[6]=0,t[7]=0,t[8]=1),t},f.prototype.apply=function(o,e){e=e||new m.default;var t=o.x,i=o.y;return e.x=this.a*t+this.c*i+this.tx,e.y=this.b*t+this.d*i+this.ty,e},f.prototype.applyInverse=function(o,e){e=e||new m.default;var t=1/(this.a*this.d+this.c*-this.b),i=o.x,n=o.y;return e.x=this.d*t*i+-this.c*t*n+(this.ty*this.c-this.tx*this.d)*t,e.y=this.a*t*n+-this.b*t*i+(-this.ty*this.a+this.tx*this.b)*t,e},f.prototype.translate=function(o,e){return this.tx+=o,this.ty+=e,this},f.prototype.scale=function(o,e){return this.a*=o,this.d*=e,this.c*=o,this.b*=e,this.tx*=o,this.ty*=e,this},f.prototype.rotate=function(o){var e=Math.cos(o),t=Math.sin(o),i=this.a,n=this.c,r=this.tx;return this.a=i*e-this.b*t,this.b=i*t+this.b*e,this.c=n*e-this.d*t,this.d=n*t+this.d*e,this.tx=r*e-this.ty*t,this.ty=r*t+this.ty*e,this},f.prototype.append=function(o){var e=this.a,t=this.b,i=this.c,n=this.d;return this.a=o.a*e+o.b*i,this.b=o.a*t+o.b*n,this.c=o.c*e+o.d*i,this.d=o.c*t+o.d*n,this.tx=o.tx*e+o.ty*i+this.tx,this.ty=o.tx*t+o.ty*n+this.ty,this},f.prototype.setTransform=function(o,e,t,i,n,r,h,p,u){var y=Math.sin(h),d=Math.cos(h),w=Math.cos(u),g=Math.sin(u),a=-Math.sin(p),s=Math.cos(p),v=d*n,P=y*n,T=-y*r,C=d*r;return this.a=w*v+g*T,this.b=w*P+g*C,this.c=a*v+s*T,this.d=a*P+s*C,this.tx=o+(t*v+i*T),this.ty=e+(t*P+i*C),this},f.prototype.prepend=function(o){var e=this.tx;if(o.a!==1||o.b!==0||o.c!==0||o.d!==1){var t=this.a,i=this.c;this.a=t*o.a+this.b*o.c,this.b=t*o.b+this.b*o.d,this.c=i*o.a+this.d*o.c,this.d=i*o.b+this.d*o.d}return this.tx=e*o.a+this.ty*o.c+o.tx,this.ty=e*o.b+this.ty*o.d+o.ty,this},f.prototype.decompose=function(o){var e=this.a,t=this.b,i=this.c,n=this.d,r=-Math.atan2(-i,n),h=Math.atan2(t,e),p=Math.abs(r+h);return p<1e-5?(o.rotation=h,e<0&&n>=0&&(o.rotation+=o.rotation<=0?Math.PI:-Math.PI),o.skew.x=o.skew.y=0):(o.skew.x=r,o.skew.y=h),o.scale.x=Math.sqrt(e*e+t*t),o.scale.y=Math.sqrt(i*i+n*n),o.position.x=this.tx,o.position.y=this.ty,o},f.prototype.invert=function(){var o=this.a,e=this.b,t=this.c,i=this.d,n=this.tx,r=o*i-e*t;return this.a=i/r,this.b=-e/r,this.c=-t/r,this.d=o/r,this.tx=(t*this.ty-i*n)/r,this.ty=-(o*this.ty-e*n)/r,this},f.prototype.identity=function(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this},f.prototype.clone=function(){var o=new f;return o.a=this.a,o.b=this.b,o.c=this.c,o.d=this.d,o.tx=this.tx,o.ty=this.ty,o},f.prototype.copy=function(o){return o.a=this.a,o.b=this.b,o.c=this.c,o.d=this.d,o.tx=this.tx,o.ty=this.ty,o},_(f,null,[{key:"IDENTITY",get:function(){return new f}},{key:"TEMP_MATRIX",get:function(){return new f}}]),f}();E.default=l},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(){var _=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;c(this,x),this.x=_,this.y=b}return x.prototype.clone=function(){return new x(this.x,this.y)},x.prototype.copy=function(_){this.set(_.x,_.y)},x.prototype.equals=function(_){return _.x===this.x&&_.y===this.y},x.prototype.set=function(_,b){this.x=_||0,this.y=b||(b!==0?this.x:0)},x}();E.default=O},function(B,E,c){"use strict";function O(m,l){if(!(m instanceof l))throw new TypeError("Cannot call a class as a function")}E.__esModule=!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}}(),_=c(2),b=function(){function m(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,e=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;O(this,m),this.x=l,this.y=f,this.width=o,this.height=e,this.type=_.SHAPES.RECT}return m.prototype.clone=function(){return new m(this.x,this.y,this.width,this.height)},m.prototype.copy=function(l){return this.x=l.x,this.y=l.y,this.width=l.width,this.height=l.height,this},m.prototype.contains=function(l,f){return!(this.width<=0||this.height<=0)&&l>=this.x&&l<this.x+this.width&&f>=this.y&&f<this.y+this.height},m.prototype.pad=function(l,f){l=l||0,f=f||(f!==0?l:0),this.x-=l,this.y-=f,this.width+=2*l,this.height+=2*f},m.prototype.fit=function(l){this.x<l.x&&(this.width+=this.x,this.width<0&&(this.width=0),this.x=l.x),this.y<l.y&&(this.height+=this.y,this.height<0&&(this.height=0),this.y=l.y),this.x+this.width>l.x+l.width&&(this.width=l.width-this.x,this.width<0&&(this.width=0)),this.y+this.height>l.y+l.height&&(this.height=l.height-this.y,this.height<0&&(this.height=0))},m.prototype.enlarge=function(l){if(l!==m.EMPTY){var f=Math.min(this.x,l.x),o=Math.max(this.x+this.width,l.x+l.width),e=Math.min(this.y,l.y),t=Math.max(this.y+this.height,l.y+l.height);this.x=f,this.width=o-f,this.y=e,this.height=t-e}},x(m,[{key:"left",get:function(){return this.x}},{key:"right",get:function(){return this.x+this.width}},{key:"top",get:function(){return this.y}},{key:"bottom",get:function(){return this.y+this.height}}],[{key:"EMPTY",get:function(){return new m(0,0,0,0)}}]),m}();E.default=b},function(B,E,c){"use strict";function O(N){return N&&N.__esModule?N:{default:N}}function x(N,W){if(!(N instanceof W))throw new TypeError("Cannot call a class as a function")}function _(N,W){if(!N)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!W||typeof W!="object"&&typeof W!="function"?N:W}function b(N,W){if(typeof W!="function"&&W!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof W);N.prototype=Object.create(W&&W.prototype,{constructor:{value:N,enumerable:!1,writable:!0,configurable:!0}}),W&&(Object.setPrototypeOf?Object.setPrototypeOf(N,W):N.__proto__=W)}E.__esModule=!0;var m=c(99),l=O(m),f=c(205),o=O(f),e=c(206),t=O(e),i=c(204),n=O(i),r=c(38),h=O(r),p=c(37),u=O(p),y=c(200),d=O(y),w=c(25),g=O(w),a=c(199),s=O(a),v=c(201),P=O(v),T=c(209),C=O(T),M=c(210),R=O(M),S=c(3),L=c(6),A=O(L),D=c(2),I=0,U=function(N){function W(H,tt){var it=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};x(this,W);var K=_(this,N.call(this,"WebGL",H,tt,it));return K.type=D.RENDERER_TYPE.WEBGL,K.handleContextLost=K.handleContextLost.bind(K),K.handleContextRestored=K.handleContextRestored.bind(K),K.view.addEventListener("webglcontextlost",K.handleContextLost,!1),K.view.addEventListener("webglcontextrestored",K.handleContextRestored,!1),K._contextOptions={alpha:K.transparent,antialias:it.antialias,premultipliedAlpha:K.transparent&&K.transparent!=="notMultiplied",stencil:!0,preserveDrawingBuffer:it.preserveDrawingBuffer},K._backgroundColorRgba[3]=K.transparent?0:1,K.maskManager=new o.default(K),K.stencilManager=new t.default(K),K.emptyRenderer=new u.default(K),K.currentRenderer=K.emptyRenderer,K.initPlugins(),it.context&&(0,R.default)(it.context),K.gl=it.context||A.default.createContext(K.view,K._contextOptions),K.CONTEXT_UID=I++,K.state=new P.default(K.gl),K.renderingToScreen=!0,K.boundTextures=null,K._activeShader=null,K._activeVao=null,K._activeRenderTarget=null,K._initContext(),K.filterManager=new n.default(K),K.drawModes=(0,C.default)(K.gl),K._nextTextureLocation=0,K.setBlendMode(0),K}return b(W,N),W.prototype._initContext=function(){var H=this.gl;H.isContextLost()&&H.getExtension("WEBGL_lose_context")&&H.getExtension("WEBGL_lose_context").restoreContext();var tt=H.getParameter(H.MAX_TEXTURE_IMAGE_UNITS);this.boundTextures=new Array(tt),this.emptyTextures=new Array(tt),this.textureManager=new d.default(this),this.textureGC=new s.default(this),this.state.resetToDefault(),this.rootRenderTarget=new h.default(H,this.width,this.height,null,this.resolution,!0),this.rootRenderTarget.clearColor=this._backgroundColorRgba,this.bindRenderTarget(this.rootRenderTarget);var it=new A.default.GLTexture.fromData(H,null,1,1),K={_glTextures:{}};K._glTextures[this.CONTEXT_UID]={};for(var at=0;at<tt;at++){var ut=new g.default;ut._glTextures[this.CONTEXT_UID]=it,this.boundTextures[at]=K,this.emptyTextures[at]=ut,this.bindTexture(null,at)}this.emit("context",H),this.resize(this.width,this.height)},W.prototype.render=function(H,tt,it,K,at){if(this.renderingToScreen=!tt,this.emit("prerender"),this.gl&&!this.gl.isContextLost()){if(this._nextTextureLocation=0,tt||(this._lastObjectRendered=H),!at){var ut=H.parent;H.parent=this._tempDisplayObjectParent,H.updateTransform(),H.parent=ut}this.bindRenderTexture(tt,K),this.currentRenderer.start(),(it!==void 0?it:this.clearBeforeRender)&&this._activeRenderTarget.clear(),H.renderWebGL(this),this.currentRenderer.flush(),this.textureGC.update(),this.emit("postrender")}},W.prototype.setObjectRenderer=function(H){this.currentRenderer!==H&&(this.currentRenderer.stop(),this.currentRenderer=H,this.currentRenderer.start())},W.prototype.flush=function(){this.setObjectRenderer(this.emptyRenderer)},W.prototype.resize=function(H,tt){l.default.prototype.resize.call(this,H,tt),this.rootRenderTarget.resize(H,tt),this._activeRenderTarget===this.rootRenderTarget&&(this.rootRenderTarget.activate(),this._activeShader&&(this._activeShader.uniforms.projectionMatrix=this.rootRenderTarget.projectionMatrix.toArray(!0)))},W.prototype.setBlendMode=function(H){this.state.setBlendMode(H)},W.prototype.clear=function(H){this._activeRenderTarget.clear(H)},W.prototype.setTransform=function(H){this._activeRenderTarget.transform=H},W.prototype.bindRenderTexture=function(H,tt){var it=void 0;if(H){var K=H.baseTexture;K._glRenderTargets[this.CONTEXT_UID]||this.textureManager.updateTexture(K,0),this.unbindTexture(K),it=K._glRenderTargets[this.CONTEXT_UID],it.setFrame(H.frame)}else it=this.rootRenderTarget;return it.transform=tt,this.bindRenderTarget(it),this},W.prototype.bindRenderTarget=function(H){return H!==this._activeRenderTarget&&(this._activeRenderTarget=H,H.activate(),this._activeShader&&(this._activeShader.uniforms.projectionMatrix=H.projectionMatrix.toArray(!0)),this.stencilManager.setMaskStack(H.stencilMaskStack)),this},W.prototype.bindShader=function(H){return this._activeShader!==H&&(this._activeShader=H,H.bind(),H.uniforms.projectionMatrix=this._activeRenderTarget.projectionMatrix.toArray(!0)),this},W.prototype.bindTexture=function(H,tt,it){if(H=H||this.emptyTextures[tt],H=H.baseTexture||H,H.touched=this.textureGC.count,it)tt=tt||0;else{for(var K=0;K<this.boundTextures.length;K++)if(this.boundTextures[K]===H)return K;tt===void 0&&(this._nextTextureLocation++,this._nextTextureLocation%=this.boundTextures.length,tt=this.boundTextures.length-this._nextTextureLocation-1)}var at=this.gl,ut=H._glTextures[this.CONTEXT_UID];return ut?(this.boundTextures[tt]=H,at.activeTexture(at.TEXTURE0+tt),at.bindTexture(at.TEXTURE_2D,ut.texture)):this.textureManager.updateTexture(H,tt),tt},W.prototype.unbindTexture=function(H){var tt=this.gl;H=H.baseTexture||H;for(var it=0;it<this.boundTextures.length;it++)this.boundTextures[it]===H&&(this.boundTextures[it]=this.emptyTextures[it],tt.activeTexture(tt.TEXTURE0+it),tt.bindTexture(tt.TEXTURE_2D,this.emptyTextures[it]._glTextures[this.CONTEXT_UID].texture));return this},W.prototype.createVao=function(){return new A.default.VertexArrayObject(this.gl,this.state.attribState)},W.prototype.bindVao=function(H){return this._activeVao===H?this:(H?H.bind():this._activeVao&&this._activeVao.unbind(),this._activeVao=H,this)},W.prototype.reset=function(){return this.setObjectRenderer(this.emptyRenderer),this._activeShader=null,this._activeRenderTarget=this.rootRenderTarget,this.rootRenderTarget.activate(),this.state.resetToDefault(),this},W.prototype.handleContextLost=function(H){H.preventDefault()},W.prototype.handleContextRestored=function(){this._initContext(),this.textureManager.removeAll()},W.prototype.destroy=function(H){this.destroyPlugins(),this.view.removeEventListener("webglcontextlost",this.handleContextLost),this.view.removeEventListener("webglcontextrestored",this.handleContextRestored),this.textureManager.destroy(),N.prototype.destroy.call(this,H),this.uid=0,this.maskManager.destroy(),this.stencilManager.destroy(),this.filterManager.destroy(),this.maskManager=null,this.filterManager=null,this.textureManager=null,this.currentRenderer=null,this.handleContextLost=null,this.handleContextRestored=null,this._contextOptions=null,this.gl.useProgram(null),this.gl.getExtension("WEBGL_lose_context")&&this.gl.getExtension("WEBGL_lose_context").loseContext(),this.gl=null},W}(l.default);E.default=U,S.pluginTarget.mixin(U)},function(B,E,c){"use strict";function O(p){return p&&p.__esModule?p:{default:p}}function x(p,u){if(!(p instanceof u))throw new TypeError("Cannot call a class as a function")}function _(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 b(p,u){if(typeof u!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);p.prototype=Object.create(u&&u.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(p,u):p.__proto__=u)}E.__esModule=!0;var m=function(){function p(u,y){for(var d=0;d<y.length;d++){var w=y[d];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(u,w.key,w)}}return function(u,y,d){return y&&p(u.prototype,y),d&&p(u,d),u}}(),l=c(4),f=c(3),o=c(2),e=c(26),t=O(e),i=c(34),n=O(i),r=new l.Point,h=function(p){function u(y){x(this,u);var d=_(this,p.call(this));return d._anchor=new l.ObservablePoint(d._onAnchorUpdate,d),d._texture=null,d._width=0,d._height=0,d._tint=null,d._tintRGB=null,d.tint=16777215,d.blendMode=o.BLEND_MODES.NORMAL,d.shader=null,d.cachedTint=16777215,d.texture=y||t.default.EMPTY,d.vertexData=new Float32Array(8),d.vertexTrimmedData=null,d._transformID=-1,d._textureID=-1,d.pluginName="sprite",d}return b(u,p),u.prototype._onTextureUpdate=function(){this._textureID=-1,this._width&&(this.scale.x=(0,f.sign)(this.scale.x)*this._width/this.texture.orig.width),this._height&&(this.scale.y=(0,f.sign)(this.scale.y)*this._height/this.texture.orig.height)},u.prototype._onAnchorUpdate=function(){this._transformID=-1},u.prototype.calculateVertices=function(){if(this._transformID!==this.transform._worldID||this._textureID!==this._texture._updateID){this._transformID=this.transform._worldID,this._textureID=this._texture._updateID;var y=this._texture,d=this.transform.worldTransform,w=d.a,g=d.b,a=d.c,s=d.d,v=d.tx,P=d.ty,T=this.vertexData,C=y.trim,M=y.orig,R=this._anchor,S=0,L=0,A=0,D=0;C?(L=C.x-R._x*M.width,S=L+C.width,D=C.y-R._y*M.height,A=D+C.height):(S=M.width*(1-R._x),L=M.width*-R._x,A=M.height*(1-R._y),D=M.height*-R._y),T[0]=w*L+a*D+v,T[1]=s*D+g*L+P,T[2]=w*S+a*D+v,T[3]=s*D+g*S+P,T[4]=w*S+a*A+v,T[5]=s*A+g*S+P,T[6]=w*L+a*A+v,T[7]=s*A+g*L+P}},u.prototype.calculateTrimmedVertices=function(){this.vertexTrimmedData||(this.vertexTrimmedData=new Float32Array(8));var y=this._texture,d=this.vertexTrimmedData,w=y.orig,g=this._anchor,a=this.transform.worldTransform,s=a.a,v=a.b,P=a.c,T=a.d,C=a.tx,M=a.ty,R=w.width*(1-g._x),S=w.width*-g._x,L=w.height*(1-g._y),A=w.height*-g._y;d[0]=s*S+P*A+C,d[1]=T*A+v*S+M,d[2]=s*R+P*A+C,d[3]=T*A+v*R+M,d[4]=s*R+P*L+C,d[5]=T*L+v*R+M,d[6]=s*S+P*L+C,d[7]=T*L+v*S+M},u.prototype._renderWebGL=function(y){this.calculateVertices(),y.setObjectRenderer(y.plugins[this.pluginName]),y.plugins[this.pluginName].render(this)},u.prototype._renderCanvas=function(y){y.plugins[this.pluginName].render(this)},u.prototype._calculateBounds=function(){var y=this._texture.trim,d=this._texture.orig;!y||y.width===d.width&&y.height===d.height?(this.calculateVertices(),this._bounds.addQuad(this.vertexData)):(this.calculateTrimmedVertices(),this._bounds.addQuad(this.vertexTrimmedData))},u.prototype.getLocalBounds=function(y){return this.children.length===0?(this._bounds.minX=this._texture.orig.width*-this._anchor._x,this._bounds.minY=this._texture.orig.height*-this._anchor._y,this._bounds.maxX=this._texture.orig.width*(1-this._anchor._x),this._bounds.maxY=this._texture.orig.height*(1-this._anchor._x),y||(this._localBoundsRect||(this._localBoundsRect=new l.Rectangle),y=this._localBoundsRect),this._bounds.getRectangle(y)):p.prototype.getLocalBounds.call(this,y)},u.prototype.containsPoint=function(y){this.worldTransform.applyInverse(y,r);var d=this._texture.orig.width,w=this._texture.orig.height,g=-d*this.anchor.x,a=0;return r.x>g&&r.x<g+d&&(a=-w*this.anchor.y,r.y>a&&r.y<a+w)},u.prototype.destroy=function(y){p.prototype.destroy.call(this,y),this._anchor=null;var d=typeof y=="boolean"?y:y&&y.texture;if(d){var w=typeof y=="boolean"?y:y&&y.baseTexture;this._texture.destroy(!!w)}this._texture=null,this.shader=null},u.from=function(y){return new u(t.default.from(y))},u.fromFrame=function(y){var d=f.TextureCache[y];if(!d)throw new Error('The frameId "'+y+'" does not exist in the texture cache');return new u(d)},u.fromImage=function(y,d,w){return new u(t.default.fromImage(y,d,w))},m(u,[{key:"width",get:function(){return Math.abs(this.scale.x)*this._texture.orig.width},set:function(y){var d=(0,f.sign)(this.scale.x)||1;this.scale.x=d*y/this._texture.orig.width,this._width=y}},{key:"height",get:function(){return Math.abs(this.scale.y)*this._texture.orig.height},set:function(y){var d=(0,f.sign)(this.scale.y)||1;this.scale.y=d*y/this._texture.orig.height,this._height=y}},{key:"anchor",get:function(){return this._anchor},set:function(y){this._anchor.copy(y)}},{key:"tint",get:function(){return this._tint},set:function(y){this._tint=y,this._tintRGB=(y>>16)+(65280&y)+((255&y)<<16)}},{key:"texture",get:function(){return this._texture},set:function(y){this._texture!==y&&(this._texture=y,this.cachedTint=16777215,this._textureID=-1,y&&(y.baseTexture.hasLoaded?this._onTextureUpdate():y.once("update",this._onTextureUpdate,this)))}}]),u}(n.default);E.default=h},function(B,E,c){"use strict";function O(l){return l&&l.__esModule?l:{default:l}}E.__esModule=!0;var x=c(3),_=c(101),b=O(_),m={getTintedTexture:function(l,f){var o=l.texture;f=m.roundColor(f);var e="#"+("00000"+(0|f).toString(16)).substr(-6);if(o.tintCache=o.tintCache||{},o.tintCache[e])return o.tintCache[e];var t=m.canvas||document.createElement("canvas");if(m.tintMethod(o,f,t),m.convertTintToImage){var i=new Image;i.src=t.toDataURL(),o.tintCache[e]=i}else o.tintCache[e]=t,m.canvas=null;return t},tintWithMultiply:function(l,f,o){var e=o.getContext("2d"),t=l._frame.clone(),i=l.baseTexture.resolution;t.x*=i,t.y*=i,t.width*=i,t.height*=i,o.width=t.width,o.height=t.height,e.fillStyle="#"+("00000"+(0|f).toString(16)).substr(-6),e.fillRect(0,0,t.width,t.height),e.globalCompositeOperation="multiply",e.drawImage(l.baseTexture.source,t.x,t.y,t.width,t.height,0,0,t.width,t.height),e.globalCompositeOperation="destination-atop",e.drawImage(l.baseTexture.source,t.x,t.y,t.width,t.height,0,0,t.width,t.height)},tintWithOverlay:function(l,f,o){var e=o.getContext("2d"),t=l._frame.clone(),i=l.baseTexture.resolution;t.x*=i,t.y*=i,t.width*=i,t.height*=i,o.width=t.width,o.height=t.height,e.globalCompositeOperation="copy",e.fillStyle="#"+("00000"+(0|f).toString(16)).substr(-6),e.fillRect(0,0,t.width,t.height),e.globalCompositeOperation="destination-atop",e.drawImage(l.baseTexture.source,t.x,t.y,t.width,t.height,0,0,t.width,t.height)},tintWithPerPixel:function(l,f,o){var e=o.getContext("2d"),t=l._frame.clone(),i=l.baseTexture.resolution;t.x*=i,t.y*=i,t.width*=i,t.height*=i,o.width=t.width,o.height=t.height,e.globalCompositeOperation="copy",e.drawImage(l.baseTexture.source,t.x,t.y,t.width,t.height,0,0,t.width,t.height);for(var n=(0,x.hex2rgb)(f),r=n[0],h=n[1],p=n[2],u=e.getImageData(0,0,t.width,t.height),y=u.data,d=0;d<y.length;d+=4)y[d+0]*=r,y[d+1]*=h,y[d+2]*=p;e.putImageData(u,0,0)},roundColor:function(l){var f=m.cacheStepsPerColorChannel,o=(0,x.hex2rgb)(l);return o[0]=Math.min(255,o[0]/f*f),o[1]=Math.min(255,o[1]/f*f),o[2]=Math.min(255,o[2]/f*f),(0,x.rgb2hex)(o)},cacheStepsPerColorChannel:8,convertTintToImage:!1,canUseMultiply:(0,b.default)(),tintMethod:0};m.tintMethod=m.canUseMultiply?m.tintWithMultiply:m.tintWithPerPixel,E.default=m},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=c(106),l=O(m),f=c(26),o=O(f),e=function(t){function i(n,r){x(this,i);var h=null;if(!(n instanceof l.default)){var p=arguments[1],u=arguments[2],y=arguments[3]||0,d=arguments[4]||1;console.warn("Please use RenderTexture.create("+p+", "+u+") instead of the ctor directly."),h=arguments[0],r=null,n=new l.default(p,u,y,d)}var w=_(this,t.call(this,n,r));return w.legacyRenderer=h,w.valid=!0,w._updateUvs(),w}return b(i,t),i.prototype.resize=function(n,r,h){this.valid=n>0&&r>0,this._frame.width=this.orig.width=n,this._frame.height=this.orig.height=r,h||this.baseTexture.resize(n,r),this._updateUvs()},i.create=function(n,r,h,p){return new i(new l.default(n,r,h,p))},i}(o.default);E.default=e},function(B,E){"use strict";function c(O){for(var x=6*O,_=new Uint16Array(x),b=0,m=0;b<x;b+=6,m+=4)_[b+0]=m+0,_[b+1]=m+1,_[b+2]=m+2,_[b+3]=m+0,_[b+4]=m+2,_[b+5]=m+3;return _}E.__esModule=!0,E.default=c},function(B,E,c){"use strict";function O(f){return f&&f.__esModule?f:{default:f}}E.__esModule=!0,E.BitmapText=E.TilingSpriteRenderer=E.TilingSprite=E.AnimatedSprite=E.TextureTransform=void 0;var x=c(110);Object.defineProperty(E,"TextureTransform",{enumerable:!0,get:function(){return O(x).default}});var _=c(225);Object.defineProperty(E,"AnimatedSprite",{enumerable:!0,get:function(){return O(_).default}});var b=c(227);Object.defineProperty(E,"TilingSprite",{enumerable:!0,get:function(){return O(b).default}});var m=c(231);Object.defineProperty(E,"TilingSpriteRenderer",{enumerable:!0,get:function(){return O(m).default}});var l=c(226);Object.defineProperty(E,"BitmapText",{enumerable:!0,get:function(){return O(l).default}}),c(228),c(229),c(230)},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){return p instanceof e.Text&&(p.updateText(!0),!0)}function m(h,p){if(p instanceof e.TextStyle){var u=e.Text.getFontStyle(p);return e.Text.fontPropertiesCache[u]||e.Text.calculateFontProperties(u),!0}return!1}function l(h,p){if(h instanceof e.Text){p.indexOf(h.style)===-1&&p.push(h.style),p.indexOf(h)===-1&&p.push(h);var u=h._texture.baseTexture;return p.indexOf(u)===-1&&p.push(u),!0}return!1}function f(h,p){return h instanceof e.TextStyle&&(p.indexOf(h)===-1&&p.push(h),!0)}E.__esModule=!0;var o=c(1),e=x(o),t=c(127),i=O(t),n=e.ticker.shared;e.settings.UPLOADS_PER_FRAME=4;var r=function(){function h(p){var u=this;_(this,h),this.limiter=new i.default(e.settings.UPLOADS_PER_FRAME),this.renderer=p,this.uploadHookHelper=null,this.queue=[],this.addHooks=[],this.uploadHooks=[],this.completes=[],this.ticking=!1,this.delayedTick=function(){u.queue&&u.prepareItems()},this.register(l,b),this.register(f,m)}return h.prototype.upload=function(p,u){typeof p=="function"&&(u=p,p=null),p&&this.add(p),this.queue.length?(u&&this.completes.push(u),this.ticking||(this.ticking=!0,n.addOnce(this.tick,this))):u&&u()},h.prototype.tick=function(){setTimeout(this.delayedTick,0)},h.prototype.prepareItems=function(){for(this.limiter.beginFrame();this.queue.length&&this.limiter.allowedToUpload();){for(var p=this.queue[0],u=!1,y=0,d=this.uploadHooks.length;y<d;y++)if(this.uploadHooks[y](this.uploadHookHelper,p)){this.queue.shift(),u=!0;break}u||this.queue.shift()}if(this.queue.length)n.addOnce(this.tick,this);else{this.ticking=!1;var w=this.completes.slice(0);this.completes.length=0;for(var g=0,a=w.length;g<a;g++)w[g]()}},h.prototype.register=function(p,u){return p&&this.addHooks.push(p),u&&this.uploadHooks.push(u),this},h.prototype.add=function(p){for(var u=0,y=this.addHooks.length;u<y&&!this.addHooks[u](p,this.queue);u++);if(p instanceof e.Container)for(var d=p.children.length-1;d>=0;d--)this.add(p.children[d]);return this},h.prototype.destroy=function(){this.ticking&&n.remove(this.tick,this),this.ticking=!1,this.addHooks=null,this.uploadHooks=null,this.renderer=null,this.completes=null,this.queue=null,this.limiter=null,this.uploadHookHelper=null},h}();E.default=r},function(B,E){"use strict";B.exports=function(c,O){O=O||{};for(var x={key:["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"],q:{name:"queryKey",parser:/(?:^|&)([^&=]*)=?([^&]*)/g},parser:{strict:/^(?:([^:\/?#]+):)?(?:\/\/((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?))?((((?:[^?#\/]*\/)*)([^?#]*))(?:\?([^#]*))?(?:#(.*))?)/,loose:/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@]*)(?::([^:@]*))?)?@)?([^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/}},_=x.parser[O.strictMode?"strict":"loose"].exec(c),b={},m=14;m--;)b[x.key[m]]=_[m]||"";return b[x.q.name]={},b[x.key[12]].replace(x.q.parser,function(l,f,o){f&&(b[x.q.name][f]=o)}),b}},function(B,E){var c=function(x,_,b,m,l){this.gl=x,this.texture=x.createTexture(),this.mipmap=!1,this.premultiplyAlpha=!1,this.width=_||-1,this.height=b||-1,this.format=m||x.RGBA,this.type=l||x.UNSIGNED_BYTE};c.prototype.upload=function(x){this.bind();var _=this.gl;_.pixelStorei(_.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.premultiplyAlpha);var b=x.videoWidth||x.width,m=x.videoHeight||x.height;m!==this.height||b!==this.width?_.texImage2D(_.TEXTURE_2D,0,this.format,this.format,this.type,x):_.texSubImage2D(_.TEXTURE_2D,0,0,0,this.format,this.type,x),this.width=b,this.height=m};var O=!1;c.prototype.uploadData=function(x,_,b){this.bind();var m=this.gl;if(x instanceof Float32Array){if(!O){var l=m.getExtension("OES_texture_float");if(!l)throw new Error("floating point textures not available");O=!0}this.type=m.FLOAT}else this.type=m.UNSIGNED_BYTE;m.pixelStorei(m.UNPACK_PREMULTIPLY_ALPHA_WEBGL,this.premultiplyAlpha),_!==this.width||b!==this.height?m.texImage2D(m.TEXTURE_2D,0,this.format,_,b,0,this.format,this.type,x||null):m.texSubImage2D(m.TEXTURE_2D,0,0,0,_,b,this.format,this.type,x||null),this.width=_,this.height=b},c.prototype.bind=function(x){var _=this.gl;x!==void 0&&_.activeTexture(_.TEXTURE0+x),_.bindTexture(_.TEXTURE_2D,this.texture)},c.prototype.unbind=function(){var x=this.gl;x.bindTexture(x.TEXTURE_2D,null)},c.prototype.minFilter=function(x){var _=this.gl;this.bind(),this.mipmap?_.texParameteri(_.TEXTURE_2D,_.TEXTURE_MIN_FILTER,x?_.LINEAR_MIPMAP_LINEAR:_.NEAREST_MIPMAP_NEAREST):_.texParameteri(_.TEXTURE_2D,_.TEXTURE_MIN_FILTER,x?_.LINEAR:_.NEAREST)},c.prototype.magFilter=function(x){var _=this.gl;this.bind(),_.texParameteri(_.TEXTURE_2D,_.TEXTURE_MAG_FILTER,x?_.LINEAR:_.NEAREST)},c.prototype.enableMipmap=function(){var x=this.gl;this.bind(),this.mipmap=!0,x.generateMipmap(x.TEXTURE_2D)},c.prototype.enableLinearScaling=function(){this.minFilter(!0),this.magFilter(!0)},c.prototype.enableNearestScaling=function(){this.minFilter(!1),this.magFilter(!1)},c.prototype.enableWrapClamp=function(){var x=this.gl;this.bind(),x.texParameteri(x.TEXTURE_2D,x.TEXTURE_WRAP_S,x.CLAMP_TO_EDGE),x.texParameteri(x.TEXTURE_2D,x.TEXTURE_WRAP_T,x.CLAMP_TO_EDGE)},c.prototype.enableWrapRepeat=function(){var x=this.gl;this.bind(),x.texParameteri(x.TEXTURE_2D,x.TEXTURE_WRAP_S,x.REPEAT),x.texParameteri(x.TEXTURE_2D,x.TEXTURE_WRAP_T,x.REPEAT)},c.prototype.enableWrapMirrorRepeat=function(){var x=this.gl;this.bind(),x.texParameteri(x.TEXTURE_2D,x.TEXTURE_WRAP_S,x.MIRRORED_REPEAT),x.texParameteri(x.TEXTURE_2D,x.TEXTURE_WRAP_T,x.MIRRORED_REPEAT)},c.prototype.destroy=function(){var x=this.gl;x.deleteTexture(this.texture)},c.fromSource=function(x,_,b){var m=new c(x);return m.premultiplyAlpha=b||!1,m.upload(_),m},c.fromData=function(x,_,b,m){var l=new c(x);return l.uploadData(_,b,m),l},B.exports=c},function(B,E){var c=function(O,x,_){var b;if(_){var m=_.tempAttribState,l=_.attribState;for(b=0;b<m.length;b++)m[b]=!1;for(b=0;b<x.length;b++)m[x[b].attribute.location]=!0;for(b=0;b<l.length;b++)l[b]!==m[b]&&(l[b]=m[b],_.attribState[b]?O.enableVertexAttribArray(b):O.disableVertexAttribArray(b))}else for(b=0;b<x.length;b++){var f=x[b];O.enableVertexAttribArray(f.attribute.location)}};B.exports=c},function(B,E){var c=function(x,_,b){var m=O(x,x.VERTEX_SHADER,_),l=O(x,x.FRAGMENT_SHADER,b),f=x.createProgram();return x.attachShader(f,m),x.attachShader(f,l),x.linkProgram(f),x.getProgramParameter(f,x.LINK_STATUS)||(console.error("Pixi.js Error: Could not initialize shader."),console.error("gl.VALIDATE_STATUS",x.getProgramParameter(f,x.VALIDATE_STATUS)),console.error("gl.getError()",x.getError()),x.getProgramInfoLog(f)!==""&&console.warn("Pixi.js Warning: gl.getProgramInfoLog()",x.getProgramInfoLog(f)),x.deleteProgram(f),f=null),x.deleteShader(m),x.deleteShader(l),f},O=function(x,_,b){var m=x.createShader(_);return x.shaderSource(m,b),x.compileShader(m),x.getShaderParameter(m,x.COMPILE_STATUS)?m:(console.log(x.getShaderInfoLog(m)),null)};B.exports=c},function(B,E){var c=function(x,_){switch(x){case"float":return 0;case"vec2":return new Float32Array(2*_);case"vec3":return new Float32Array(3*_);case"vec4":return new Float32Array(4*_);case"int":case"sampler2D":return 0;case"ivec2":return new Int32Array(2*_);case"ivec3":return new Int32Array(3*_);case"ivec4":return new Int32Array(4*_);case"bool":return!1;case"bvec2":return O(2*_);case"bvec3":return O(3*_);case"bvec4":return O(4*_);case"mat2":return new Float32Array([1,0,0,1]);case"mat3":return new Float32Array([1,0,0,0,1,0,0,0,1]);case"mat4":return new Float32Array([1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1])}},O=function(x){for(var _=new Array(x),b=0;b<_.length;b++)_[b]=!1;return _};B.exports=c},function(B,E,c){var O=c(42),x=c(77),_=function(m,l){for(var f={},o=m.getProgramParameter(l,m.ACTIVE_ATTRIBUTES),e=0;e<o;e++){var t=m.getActiveAttrib(l,e),i=O(m,t.type);f[t.name]={type:i,size:x(i),location:m.getAttribLocation(l,t.name),pointer:b}}return f},b=function(m,l,f,o){gl.vertexAttribPointer(this.location,this.size,m||gl.FLOAT,l||!1,f||0,o||0)};B.exports=_},function(B,E,c){var O=c(42),x=c(73),_=function(b,m){for(var l={},f=b.getProgramParameter(m,b.ACTIVE_UNIFORMS),o=0;o<f;o++){var e=b.getActiveUniform(m,o),t=e.name.replace(/\[.*?\]/,""),i=O(b,e.type);l[t]={type:i,size:e.size,location:b.getUniformLocation(m,t),value:x(i,e.size)}}return l};B.exports=_},function(B,E){var c=function(o,e){var t={data:{}};t.gl=o;for(var i=Object.keys(e),n=0;n<i.length;n++){var r=i[n],h=r.split("."),p=h[h.length-1],u=_(h,t),y=e[r];u.data[p]=y,u.gl=o,Object.defineProperty(u,p,{get:O(p),set:x(p,y)})}return t},O=function(o){var e=b.replace("%%",o);return new Function(e)},x=function(o,e){var t,i=m.replace(/%%/g,o);return t=e.size===1?l[e.type]:f[e.type],t&&(i+=`
|
|
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,m.apply(this,arguments)}}function _(b,m){function l(t,i,n){if(n!=null&&typeof n!="function")throw new Error("task callback must be a function");if(e.started=!0,t==null&&e.idle())return void setTimeout(function(){return e.drain()},1);var r={data:t,callback:typeof n=="function"?n:c};i?e._tasks.unshift(r):e._tasks.push(r),setTimeout(function(){return e.process()},1)}function f(t){return function(){o-=1,t.callback.apply(t,arguments),arguments[0]!=null&&e.error(arguments[0],t.data),o<=e.concurrency-e.buffer&&e.unsaturated(),e.idle()&&e.drain(),e.process()}}if(m==null)m=1;else if(m===0)throw new Error("Concurrency must not be zero");var o=0,e={_tasks:[],concurrency:m,saturated:c,unsaturated:c,buffer:m/4,empty:c,drain:c,error:c,started:!1,paused:!1,push:function(t,i){l(t,!1,i)},kill:function(){o=0,e.drain=c,e.started=!1,e._tasks=[]},unshift:function(t,i){l(t,!0,i)},process:function(){for(;!e.paused&&o<e.concurrency&&e._tasks.length;){var t=e._tasks.shift();e._tasks.length===0&&e.empty(),o+=1,o===e.concurrency&&e.saturated(),b(t.data,x(f(t)))}},length:function(){return e._tasks.length},running:function(){return o},idle:function(){return e._tasks.length+o===0},pause:function(){e.paused!==!0&&(e.paused=!0)},resume:function(){if(e.paused!==!1){e.paused=!1;for(var t=1;t<=e.concurrency;t++)e.process()}}};return e}E.__esModule=!0,E.eachSeries=O,E.queue=_},function(B,E){"use strict";function c(x){for(var _="",b=0;b<x.length;){for(var m=[0,0,0],l=[0,0,0,0],f=0;f<m.length;++f)b<x.length?m[f]=255&x.charCodeAt(b++):m[f]=0;l[0]=m[0]>>2,l[1]=(3&m[0])<<4|m[1]>>4,l[2]=(15&m[1])<<2|m[2]>>6,l[3]=63&m[2];var o=b-(x.length-1);switch(o){case 2:l[3]=64,l[2]=64;break;case 1:l[3]=64}for(var e=0;e<l.length;++e)_+=O.charAt(l[e])}return _}E.__esModule=!0,E.encodeBinary=c;var O="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="},function(B,E){"use strict";function c(S,L,A){A=A||2;var D=L&&L.length,I=D?L[0]*A:S.length,U=O(S,0,I,A,!0),N=[];if(!U)return N;var W,H,tt,it,K,at,ut;if(D&&(U=o(S,L,U,A)),S.length>80*A){W=tt=S[0],H=it=S[1];for(var mt=A;mt<I;mt+=A)K=S[mt],at=S[mt+1],K<W&&(W=K),at<H&&(H=at),K>tt&&(tt=K),at>it&&(it=at);ut=Math.max(tt-W,it-H)}return _(U,N,A,W,H,ut),N}function O(S,L,A,D,I){var U,N;if(I===R(S,L,A,D)>0)for(U=L;U<A;U+=D)N=T(U,S[U],S[U+1],N);else for(U=A-D;U>=L;U-=D)N=T(U,S[U],S[U+1],N);return N&&w(N,N.next)&&(C(N),N=N.next),N}function x(S,L){if(!S)return S;L||(L=S);var A,D=S;do if(A=!1,D.steiner||!w(D,D.next)&&d(D.prev,D,D.next)!==0)D=D.next;else{if(C(D),D=L=D.prev,D===D.next)return null;A=!0}while(A||D!==L);return L}function _(S,L,A,D,I,U,N){if(S){!N&&U&&n(S,D,I,U);for(var W,H,tt=S;S.prev!==S.next;)if(W=S.prev,H=S.next,U?m(S,D,I,U):b(S))L.push(W.i/A),L.push(S.i/A),L.push(H.i/A),C(S),S=H.next,tt=H.next;else if(S=H,S===tt){N?N===1?(S=l(S,L,A),_(S,L,A,D,I,U,2)):N===2&&f(S,L,A,D,I,U):_(x(S),L,A,D,I,U,1);break}}}function b(S){var L=S.prev,A=S,D=S.next;if(d(L,A,D)>=0)return!1;for(var I=S.next.next;I!==S.prev;){if(u(L.x,L.y,A.x,A.y,D.x,D.y,I.x,I.y)&&d(I.prev,I,I.next)>=0)return!1;I=I.next}return!0}function m(S,L,A,D){var I=S.prev,U=S,N=S.next;if(d(I,U,N)>=0)return!1;for(var W=I.x<U.x?I.x<N.x?I.x:N.x:U.x<N.x?U.x:N.x,H=I.y<U.y?I.y<N.y?I.y:N.y:U.y<N.y?U.y:N.y,tt=I.x>U.x?I.x>N.x?I.x:N.x:U.x>N.x?U.x:N.x,it=I.y>U.y?I.y>N.y?I.y:N.y:U.y>N.y?U.y:N.y,K=h(W,H,L,A,D),at=h(tt,it,L,A,D),ut=S.nextZ;ut&&ut.z<=at;){if(ut!==S.prev&&ut!==S.next&&u(I.x,I.y,U.x,U.y,N.x,N.y,ut.x,ut.y)&&d(ut.prev,ut,ut.next)>=0)return!1;ut=ut.nextZ}for(ut=S.prevZ;ut&&ut.z>=K;){if(ut!==S.prev&&ut!==S.next&&u(I.x,I.y,U.x,U.y,N.x,N.y,ut.x,ut.y)&&d(ut.prev,ut,ut.next)>=0)return!1;ut=ut.prevZ}return!0}function l(S,L,A){var D=S;do{var I=D.prev,U=D.next.next;!w(I,U)&&g(I,D,D.next,U)&&s(I,U)&&s(U,I)&&(L.push(I.i/A),L.push(D.i/A),L.push(U.i/A),C(D),C(D.next),D=S=U),D=D.next}while(D!==S);return D}function f(S,L,A,D,I,U){var N=S;do{for(var W=N.next.next;W!==N.prev;){if(N.i!==W.i&&y(N,W)){var H=P(N,W);return N=x(N,N.next),H=x(H,H.next),_(N,L,A,D,I,U),void _(H,L,A,D,I,U)}W=W.next}N=N.next}while(N!==S)}function o(S,L,A,D){var I,U,N,W,H,tt=[];for(I=0,U=L.length;I<U;I++)N=L[I]*D,W=I<U-1?L[I+1]*D:S.length,H=O(S,N,W,D,!1),H===H.next&&(H.steiner=!0),tt.push(p(H));for(tt.sort(e),I=0;I<tt.length;I++)t(tt[I],A),A=x(A,A.next);return A}function e(S,L){return S.x-L.x}function t(S,L){if(L=i(S,L)){var A=P(L,S);x(A,A.next)}}function i(S,L){var A,D=L,I=S.x,U=S.y,N=-(1/0);do{if(U<=D.y&&U>=D.next.y){var W=D.x+(U-D.y)*(D.next.x-D.x)/(D.next.y-D.y);if(W<=I&&W>N){if(N=W,W===I){if(U===D.y)return D;if(U===D.next.y)return D.next}A=D.x<D.next.x?D:D.next}}D=D.next}while(D!==L);if(!A)return null;if(I===N)return A.prev;var H,tt=A,it=A.x,K=A.y,at=1/0;for(D=A.next;D!==tt;)I>=D.x&&D.x>=it&&u(U<K?I:N,U,it,K,U<K?N:I,U,D.x,D.y)&&(H=Math.abs(U-D.y)/(I-D.x),(H<at||H===at&&D.x>A.x)&&s(D,S)&&(A=D,at=H)),D=D.next;return A}function n(S,L,A,D){var I=S;do I.z===null&&(I.z=h(I.x,I.y,L,A,D)),I.prevZ=I.prev,I.nextZ=I.next,I=I.next;while(I!==S);I.prevZ.nextZ=null,I.prevZ=null,r(I)}function r(S){var L,A,D,I,U,N,W,H,tt=1;do{for(A=S,S=null,U=null,N=0;A;){for(N++,D=A,W=0,L=0;L<tt&&(W++,D=D.nextZ,D);L++);for(H=tt;W>0||H>0&&D;)W===0?(I=D,D=D.nextZ,H--):H!==0&&D?A.z<=D.z?(I=A,A=A.nextZ,W--):(I=D,D=D.nextZ,H--):(I=A,A=A.nextZ,W--),U?U.nextZ=I:S=I,I.prevZ=U,U=I;A=D}U.nextZ=null,tt*=2}while(N>1);return S}function h(S,L,A,D,I){return S=32767*(S-A)/I,L=32767*(L-D)/I,S=16711935&(S|S<<8),S=252645135&(S|S<<4),S=858993459&(S|S<<2),S=1431655765&(S|S<<1),L=16711935&(L|L<<8),L=252645135&(L|L<<4),L=858993459&(L|L<<2),L=1431655765&(L|L<<1),S|L<<1}function p(S){var L=S,A=S;do L.x<A.x&&(A=L),L=L.next;while(L!==S);return A}function u(S,L,A,D,I,U,N,W){return(I-N)*(L-W)-(S-N)*(U-W)>=0&&(S-N)*(D-W)-(A-N)*(L-W)>=0&&(A-N)*(U-W)-(I-N)*(D-W)>=0}function y(S,L){return S.next.i!==L.i&&S.prev.i!==L.i&&!a(S,L)&&s(S,L)&&s(L,S)&&v(S,L)}function d(S,L,A){return(L.y-S.y)*(A.x-L.x)-(L.x-S.x)*(A.y-L.y)}function w(S,L){return S.x===L.x&&S.y===L.y}function g(S,L,A,D){return!!(w(S,L)&&w(A,D)||w(S,D)&&w(A,L))||d(S,L,A)>0!=d(S,L,D)>0&&d(A,D,S)>0!=d(A,D,L)>0}function a(S,L){var A=S;do{if(A.i!==S.i&&A.next.i!==S.i&&A.i!==L.i&&A.next.i!==L.i&&g(A,A.next,S,L))return!0;A=A.next}while(A!==S);return!1}function s(S,L){return d(S.prev,S,S.next)<0?d(S,L,S.next)>=0&&d(S,S.prev,L)>=0:d(S,L,S.prev)<0||d(S,S.next,L)<0}function v(S,L){var A=S,D=!1,I=(S.x+L.x)/2,U=(S.y+L.y)/2;do A.y>U!=A.next.y>U&&I<(A.next.x-A.x)*(U-A.y)/(A.next.y-A.y)+A.x&&(D=!D),A=A.next;while(A!==S);return D}function P(S,L){var A=new M(S.i,S.x,S.y),D=new M(L.i,L.x,L.y),I=S.next,U=L.prev;return S.next=L,L.prev=S,A.next=I,I.prev=A,D.next=A,A.prev=D,U.next=D,D.prev=U,D}function T(S,L,A,D){var I=new M(S,L,A);return D?(I.next=D.next,I.prev=D,D.next.prev=I,D.next=I):(I.prev=I,I.next=I),I}function C(S){S.next.prev=S.prev,S.prev.next=S.next,S.prevZ&&(S.prevZ.nextZ=S.nextZ),S.nextZ&&(S.nextZ.prevZ=S.prevZ)}function M(S,L,A){this.i=S,this.x=L,this.y=A,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}function R(S,L,A,D){for(var I=0,U=L,N=A-D;U<A;U+=D)I+=(S[N]-S[U])*(S[U+1]+S[N+1]),N=U;return I}B.exports=c,c.deviation=function(S,L,A,D){var I=L&&L.length,U=I?L[0]*A:S.length,N=Math.abs(R(S,0,U,A));if(I)for(var W=0,H=L.length;W<H;W++){var tt=L[W]*A,it=W<H-1?L[W+1]*A:S.length;N-=Math.abs(R(S,tt,it,A))}var K=0;for(W=0;W<D.length;W+=3){var at=D[W]*A,ut=D[W+1]*A,mt=D[W+2]*A;K+=Math.abs((S[at]-S[mt])*(S[ut+1]-S[at+1])-(S[at]-S[ut])*(S[mt+1]-S[at+1]))}return N===0&&K===0?0:Math.abs((K-N)/N)},c.flatten=function(S){for(var L=S[0][0].length,A={vertices:[],holes:[],dimensions:L},D=0,I=0;I<S.length;I++){for(var U=0;U<S[I].length;U++)for(var N=0;N<L;N++)A.vertices.push(S[I][U][N]);I>0&&(D+=S[I-1].length,A.holes.push(D))}return A}},function(B,E){var c={}.toString;B.exports=function(O){return c.call(O).slice(8,-1)}},function(B,E,c){var O=c(152);B.exports=function(x,_,b){if(O(x),_===void 0)return x;switch(b){case 1:return function(m){return x.call(_,m)};case 2:return function(m,l){return x.call(_,m,l)};case 3:return function(m,l,f){return x.call(_,m,l,f)}}return function(){return x.apply(_,arguments)}}},function(B,E,c){var O=c(22),x=c(11).document,_=O(x)&&O(x.createElement);B.exports=function(b){return _?x.createElement(b):{}}},function(B,E,c){B.exports=!c(15)&&!c(30)(function(){return Object.defineProperty(c(84)("div"),"a",{get:function(){return 7}}).a!=7})},function(B,E,c){"use strict";var O=c(47),x=c(29),_=c(91),b=c(16),m=c(12),l=c(46),f=c(159),o=c(50),e=c(165),t=c(18)("iterator"),i=!([].keys&&"next"in[].keys()),n="@@iterator",r="keys",h="values",p=function(){return this};B.exports=function(u,y,d,w,g,a,s){f(d,y,w);var v,P,T,C=function(N){if(!i&&N in L)return L[N];switch(N){case r:return function(){return new d(this,N)};case h:return function(){return new d(this,N)}}return function(){return new d(this,N)}},M=y+" Iterator",R=g==h,S=!1,L=u.prototype,A=L[t]||L[n]||g&&L[g],D=A||C(g),I=g?R?C("entries"):D:void 0,U=y=="Array"&&L.entries||A;if(U&&(T=e(U.call(new u)),T!==Object.prototype&&(o(T,M,!0),O||m(T,t)||b(T,t,p))),R&&A&&A.name!==h&&(S=!0,D=function(){return A.call(this)}),O&&!s||!i&&!S&&L[t]||b(L,t,D),l[y]=D,l[M]=p,g)if(v={values:R?D:C(h),keys:a?D:C(r),entries:I},s)for(P in v)P in L||_(L,P,v[P]);else x(x.P+x.F*(i||S),y,v);return v}},function(B,E,c){var O=c(49),x=c(32),_=c(13),b=c(54),m=c(12),l=c(85),f=Object.getOwnPropertyDescriptor;E.f=c(15)?f:function(o,e){if(o=_(o),e=b(e,!0),l)try{return f(o,e)}catch(t){}if(m(o,e))return x(!O.f.call(o,e),o[e])}},function(B,E,c){var O=c(90),x=c(45).concat("length","prototype");E.f=Object.getOwnPropertyNames||function(_){return O(_,x)}},function(B,E){E.f=Object.getOwnPropertySymbols},function(B,E,c){var O=c(12),x=c(13),_=c(154)(!1),b=c(51)("IE_PROTO");B.exports=function(m,l){var f,o=x(m),e=0,t=[];for(f in o)f!=b&&O(o,f)&&t.push(f);for(;l.length>e;)O(o,f=l[e++])&&(~_(t,f)||t.push(f));return t}},function(B,E,c){B.exports=c(16)},function(B,E){"use strict";E.__esModule=!0,E.default={accessible:!1,accessibleTitle:null,accessibleHint:null,tabIndex:0,_accessibleActive:!1,_accessibleDiv:!1}},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(10),f=O(l),o=c(2),e=c(5),t=O(e),i=c(95),n=O(i),r=c(94),h=O(r),p=c(57),u=O(p),y=c(4),d=function(w){function g(){x(this,g);var a=_(this,w.call(this)),s=t.default.TRANSFORM_MODE===o.TRANSFORM_MODE.STATIC?n.default:h.default;return a.tempDisplayObjectParent=null,a.transform=new s,a.alpha=1,a.visible=!0,a.renderable=!0,a.parent=null,a.worldAlpha=1,a.filterArea=null,a._filters=null,a._enabledFilters=null,a._bounds=new u.default,a._boundsID=0,a._lastBoundsID=-1,a._boundsRect=null,a._localBoundsRect=null,a._mask=null,a}return b(g,w),g.prototype.updateTransform=function(){this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha,this._bounds.updateID++},g.prototype._recursivePostUpdateTransform=function(){this.parent?(this.parent._recursivePostUpdateTransform(),this.transform.updateTransform(this.parent.transform)):this.transform.updateTransform(this._tempDisplayObjectParent.transform)},g.prototype.getBounds=function(a,s){return a||(this.parent?(this._recursivePostUpdateTransform(),this.updateTransform()):(this.parent=this._tempDisplayObjectParent,this.updateTransform(),this.parent=null)),this._boundsID!==this._lastBoundsID&&this.calculateBounds(),s||(this._boundsRect||(this._boundsRect=new y.Rectangle),s=this._boundsRect),this._bounds.getRectangle(s)},g.prototype.getLocalBounds=function(a){var s=this.transform,v=this.parent;this.parent=null,this.transform=this._tempDisplayObjectParent.transform,a||(this._localBoundsRect||(this._localBoundsRect=new y.Rectangle),a=this._localBoundsRect);var P=this.getBounds(!1,a);return this.parent=v,this.transform=s,P},g.prototype.toGlobal=function(a,s){var v=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return v||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.apply(a,s)},g.prototype.toLocal=function(a,s,v,P){return s&&(a=s.toGlobal(a,v,P)),P||(this._recursivePostUpdateTransform(),this.parent?this.displayObjectUpdateTransform():(this.parent=this._tempDisplayObjectParent,this.displayObjectUpdateTransform(),this.parent=null)),this.worldTransform.applyInverse(a,v)},g.prototype.renderWebGL=function(a){},g.prototype.renderCanvas=function(a){},g.prototype.setParent=function(a){if(!a||!a.addChild)throw new Error("setParent: Argument must be a Container");return a.addChild(this),a},g.prototype.setTransform=function(){var a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,v=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,P=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1,T=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,C=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0,M=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0,R=arguments.length>7&&arguments[7]!==void 0?arguments[7]:0,S=arguments.length>8&&arguments[8]!==void 0?arguments[8]:0;return this.position.x=a,this.position.y=s,this.scale.x=v||1,this.scale.y=P||1,this.rotation=T,this.skew.x=C,this.skew.y=M,this.pivot.x=R,this.pivot.y=S,this},g.prototype.destroy=function(){this.removeAllListeners(),this.parent&&this.parent.removeChild(this),this.transform=null,this.parent=null,this._bounds=null,this._currentBounds=null,this._mask=null,this.filterArea=null,this.interactive=!1,this.interactiveChildren=!1},m(g,[{key:"_tempDisplayObjectParent",get:function(){return this.tempDisplayObjectParent===null&&(this.tempDisplayObjectParent=new g),this.tempDisplayObjectParent}},{key:"x",get:function(){return this.position.x},set:function(a){this.transform.position.x=a}},{key:"y",get:function(){return this.position.y},set:function(a){this.transform.position.y=a}},{key:"worldTransform",get:function(){return this.transform.worldTransform}},{key:"localTransform",get:function(){return this.transform.localTransform}},{key:"position",get:function(){return this.transform.position},set:function(a){this.transform.position.copy(a)}},{key:"scale",get:function(){return this.transform.scale},set:function(a){this.transform.scale.copy(a)}},{key:"pivot",get:function(){return this.transform.pivot},set:function(a){this.transform.pivot.copy(a)}},{key:"skew",get:function(){return this.transform.skew},set:function(a){this.transform.skew.copy(a)}},{key:"rotation",get:function(){return this.transform.rotation},set:function(a){this.transform.rotation=a}},{key:"worldVisible",get:function(){var a=this;do{if(!a.visible)return!1;a=a.parent}while(a);return!0}},{key:"mask",get:function(){return this._mask},set:function(a){this._mask&&(this._mask.renderable=!0),this._mask=a,this._mask&&(this._mask.renderable=!1)}},{key:"filters",get:function(){return this._filters&&this._filters.slice()},set:function(a){this._filters=a&&a.slice()}}]),g}(f.default);E.default=d,d.prototype.displayObjectUpdateTransform=d.prototype.updateTransform},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(4),f=c(58),o=O(f),e=function(t){function i(){x(this,i);var n=_(this,t.call(this));return n.position=new l.Point(0,0),n.scale=new l.Point(1,1),n.skew=new l.ObservablePoint(n.updateSkew,n,0,0),n.pivot=new l.Point(0,0),n._rotation=0,n._cx=1,n._sx=0,n._cy=0,n._sy=1,n}return b(i,t),i.prototype.updateSkew=function(){this._cx=Math.cos(this._rotation+this.skew._y),this._sx=Math.sin(this._rotation+this.skew._y),this._cy=-Math.sin(this._rotation-this.skew._x),this._sy=Math.cos(this._rotation-this.skew._x)},i.prototype.updateLocalTransform=function(){var n=this.localTransform;n.a=this._cx*this.scale.x,n.b=this._sx*this.scale.x,n.c=this._cy*this.scale.y,n.d=this._sy*this.scale.y,n.tx=this.position.x-(this.pivot.x*n.a+this.pivot.y*n.c),n.ty=this.position.y-(this.pivot.x*n.b+this.pivot.y*n.d)},i.prototype.updateTransform=function(n){var r=this.localTransform;r.a=this._cx*this.scale.x,r.b=this._sx*this.scale.x,r.c=this._cy*this.scale.y,r.d=this._sy*this.scale.y,r.tx=this.position.x-(this.pivot.x*r.a+this.pivot.y*r.c),r.ty=this.position.y-(this.pivot.x*r.b+this.pivot.y*r.d);var h=n.worldTransform,p=this.worldTransform;p.a=r.a*h.a+r.b*h.c,p.b=r.a*h.b+r.b*h.d,p.c=r.c*h.a+r.d*h.c,p.d=r.c*h.b+r.d*h.d,p.tx=r.tx*h.a+r.ty*h.c+h.tx,p.ty=r.tx*h.b+r.ty*h.d+h.ty,this._worldID++},i.prototype.setFromMatrix=function(n){n.decompose(this)},m(i,[{key:"rotation",get:function(){return this._rotation},set:function(n){this._rotation=n,this.updateSkew()}}]),i}(o.default);E.default=e},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(4),f=c(58),o=O(f),e=function(t){function i(){x(this,i);var n=_(this,t.call(this));return n.position=new l.ObservablePoint(n.onChange,n,0,0),n.scale=new l.ObservablePoint(n.onChange,n,1,1),n.pivot=new l.ObservablePoint(n.onChange,n,0,0),n.skew=new l.ObservablePoint(n.updateSkew,n,0,0),n._rotation=0,n._cx=1,n._sx=0,n._cy=0,n._sy=1,n._localID=0,n._currentLocalID=0,n}return b(i,t),i.prototype.onChange=function(){this._localID++},i.prototype.updateSkew=function(){this._cx=Math.cos(this._rotation+this.skew._y),this._sx=Math.sin(this._rotation+this.skew._y),this._cy=-Math.sin(this._rotation-this.skew._x),this._sy=Math.cos(this._rotation-this.skew._x),this._localID++},i.prototype.updateLocalTransform=function(){var n=this.localTransform;this._localID!==this._currentLocalID&&(n.a=this._cx*this.scale._x,n.b=this._sx*this.scale._x,n.c=this._cy*this.scale._y,n.d=this._sy*this.scale._y,n.tx=this.position._x-(this.pivot._x*n.a+this.pivot._y*n.c),n.ty=this.position._y-(this.pivot._x*n.b+this.pivot._y*n.d),this._currentLocalID=this._localID,this._parentID=-1)},i.prototype.updateTransform=function(n){var r=this.localTransform;if(this._localID!==this._currentLocalID&&(r.a=this._cx*this.scale._x,r.b=this._sx*this.scale._x,r.c=this._cy*this.scale._y,r.d=this._sy*this.scale._y,r.tx=this.position._x-(this.pivot._x*r.a+this.pivot._y*r.c),r.ty=this.position._y-(this.pivot._x*r.b+this.pivot._y*r.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==n._worldID){var h=n.worldTransform,p=this.worldTransform;p.a=r.a*h.a+r.b*h.c,p.b=r.a*h.b+r.b*h.d,p.c=r.c*h.a+r.d*h.c,p.d=r.c*h.b+r.d*h.d,p.tx=r.tx*h.a+r.ty*h.c+h.tx,p.ty=r.tx*h.b+r.ty*h.d+h.ty,this._parentID=n._worldID,this._worldID++}},i.prototype.setFromMatrix=function(n){n.decompose(this),this._localID++},m(i,[{key:"rotation",get:function(){return this._rotation},set:function(n){this._rotation=n,this.updateSkew()}}]),i}(o.default);E.default=e},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(_,b,m,l,f,o,e){c(this,x),this.lineWidth=_,this.lineColor=b,this.lineAlpha=m,this._lineTint=b,this.fillColor=l,this.fillAlpha=f,this._fillTint=l,this.fill=o,this.holes=[],this.shape=e,this.type=e.type}return x.prototype.clone=function(){return new x(this.lineWidth,this.lineColor,this.lineAlpha,this.fillColor,this.fillAlpha,this.fill,this.shape)},x.prototype.addHole=function(_){this.holes.push(_)},x.prototype.destroy=function(){this.shape=null,this.holes=null},x}();E.default=O},function(B,E,c){"use strict";function O(r){return r&&r.__esModule?r:{default:r}}function x(r){return r<0?-1:r>0?1:0}function _(){for(var r=0;r<16;r++){var h=[];i.push(h);for(var p=0;p<16;p++)for(var u=x(l[r]*l[p]+o[r]*f[p]),y=x(f[r]*l[p]+e[r]*f[p]),d=x(l[r]*o[p]+o[r]*e[p]),w=x(f[r]*o[p]+e[r]*e[p]),g=0;g<16;g++)if(l[g]===u&&f[g]===y&&o[g]===d&&e[g]===w){h.push(g);break}}for(var a=0;a<16;a++){var s=new m.default;s.set(l[a],f[a],o[a],e[a],0,0),t.push(s)}}E.__esModule=!0;var b=c(59),m=O(b),l=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],f=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],o=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],e=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],t=[],i=[];_();var n={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MIRROR_HORIZONTAL:12,uX:function(r){return l[r]},uY:function(r){return f[r]},vX:function(r){return o[r]},vY:function(r){return e[r]},inv:function(r){return 8&r?15&r:7&-r},add:function(r,h){return i[r][h]},sub:function(r,h){return i[r][n.inv(h)]},rotate180:function(r){return 4^r},isSwapWidthHeight:function(r){return(3&r)==2},byDirection:function(r,h){return 2*Math.abs(r)<=Math.abs(h)?h>=0?n.S:n.N:2*Math.abs(h)<=Math.abs(r)?r>0?n.E:n.W:h>0?r>0?n.SE:n.SW:r>0?n.NE:n.NW},matrixAppendRotationInv:function(r,h){var p=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,u=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,y=t[n.inv(h)];y.tx=p,y.ty=u,r.append(y)}};E.default=n},function(B,E){"use strict";function c(_,b){if(!(_ instanceof b))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var O=function(){function _(b,m){for(var l=0;l<m.length;l++){var f=m[l];f.enumerable=f.enumerable||!1,f.configurable=!0,"value"in f&&(f.writable=!0),Object.defineProperty(b,f.key,f)}}return function(b,m,l){return m&&_(b.prototype,m),l&&_(b,l),b}}(),x=function(){function _(b,m){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,f=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;c(this,_),this._x=l,this._y=f,this.cb=b,this.scope=m}return _.prototype.set=function(b,m){var l=b||0,f=m||(m!==0?l:0);this._x===l&&this._y===f||(this._x=l,this._y=f,this.cb.call(this.scope))},_.prototype.copy=function(b){this._x===b.x&&this._y===b.y||(this._x=b.x,this._y=b.y,this.cb.call(this.scope))},O(_,[{key:"x",get:function(){return this._x},set:function(b){this._x!==b&&(this._x=b,this.cb.call(this.scope))}},{key:"y",get:function(){return this._y},set:function(b){this._y!==b&&(this._y=b,this.cb.call(this.scope))}}]),_}();E.default=x},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(3),f=c(4),o=c(2),e=c(5),t=O(e),i=c(34),n=O(i),r=c(65),h=O(r),p=c(10),u=O(p),y=new f.Matrix,d=function(w){function g(a,s,v,P){x(this,g);var T=_(this,w.call(this));if((0,l.sayHello)(a),P)for(var C in t.default.RENDER_OPTIONS)typeof P[C]=="undefined"&&(P[C]=t.default.RENDER_OPTIONS[C]);else P=t.default.RENDER_OPTIONS;return T.type=o.RENDERER_TYPE.UNKNOWN,T.width=s||800,T.height=v||600,T.view=P.view||document.createElement("canvas"),T.resolution=P.resolution||t.default.RESOLUTION,T.transparent=P.transparent,T.autoResize=P.autoResize||!1,T.blendModes=null,T.preserveDrawingBuffer=P.preserveDrawingBuffer,T.clearBeforeRender=P.clearBeforeRender,T.roundPixels=P.roundPixels,T._backgroundColor=0,T._backgroundColorRgba=[0,0,0,0],T._backgroundColorString="#000000",T.backgroundColor=P.backgroundColor||T._backgroundColor,T._tempDisplayObjectParent=new n.default,T._lastObjectRendered=T._tempDisplayObjectParent,T}return b(g,w),g.prototype.resize=function(a,s){this.width=a*this.resolution,this.height=s*this.resolution,this.view.width=this.width,this.view.height=this.height,this.autoResize&&(this.view.style.width=this.width/this.resolution+"px",this.view.style.height=this.height/this.resolution+"px")},g.prototype.generateTexture=function(a,s,v){var P=a.getLocalBounds(),T=h.default.create(0|P.width,0|P.height,s,v);return y.tx=-P.x,y.ty=-P.y,this.render(a,T,!1,y,!0),T},g.prototype.destroy=function(a){a&&this.view.parentNode&&this.view.parentNode.removeChild(this.view),this.type=o.RENDERER_TYPE.UNKNOWN,this.width=0,this.height=0,this.view=null,this.resolution=0,this.transparent=!1,this.autoResize=!1,this.blendModes=null,this.preserveDrawingBuffer=!1,this.clearBeforeRender=!1,this.roundPixels=!1,this._backgroundColor=0,this._backgroundColorRgba=null,this._backgroundColorString=null,this.backgroundColor=0,this._tempDisplayObjectParent=null,this._lastObjectRendered=null},m(g,[{key:"backgroundColor",get:function(){return this._backgroundColor},set:function(a){this._backgroundColor=a,this._backgroundColorString=(0,l.hex2string)(a),(0,l.hex2rgb)(a,this._backgroundColorRgba)}}]),g}(u.default);E.default=d},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 _=function(){function o(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,i){return t&&o(e.prototype,t),i&&o(e,i),e}}(),b=c(5),m=O(b),l=m.default.RESOLUTION,f=function(){function o(e,t,i){x(this,o),this.canvas=document.createElement("canvas"),this.context=this.canvas.getContext("2d"),this.resolution=i||l,this.resize(e,t)}return o.prototype.clear=function(){this.context.setTransform(1,0,0,1,0,0),this.context.clearRect(0,0,this.canvas.width,this.canvas.height)},o.prototype.resize=function(e,t){this.canvas.width=e*this.resolution,this.canvas.height=t*this.resolution},o.prototype.destroy=function(){this.context=null,this.canvas=null},_(o,[{key:"width",get:function(){return this.canvas.width},set:function(e){this.canvas.width=e}},{key:"height",get:function(){return this.canvas.height},set:function(e){this.canvas.height=e}}]),o}();E.default=f},function(B,E){"use strict";function c(x){var _=document.createElement("canvas");_.width=6,_.height=1;var b=_.getContext("2d");return b.fillStyle=x,b.fillRect(0,0,6,1),_}function O(){if(typeof document=="undefined")return!1;var x=c("#ff00ff"),_=c("#ffff00"),b=document.createElement("canvas");b.width=6,b.height=1;var m=b.getContext("2d");m.globalCompositeOperation="multiply",m.drawImage(x,0,0),m.drawImage(_,2,0);var l=m.getImageData(2,0,1,1);if(!l)return!1;var f=l.data;return f[0]===255&&f[1]===0&&f[2]===0}E.__esModule=!0,E.default=O},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(202),m=O(b),l=c(3),f=c(2),o={},e=function(){function t(i,n,r){x(this,t),this.vertexSrc=i||t.defaultVertexSrc,this.fragmentSrc=n||t.defaultFragmentSrc,this.blendMode=f.BLEND_MODES.NORMAL,this.uniformData=r||(0,m.default)(this.vertexSrc,this.fragmentSrc,"projectionMatrix|uSampler"),this.uniforms={};for(var h in this.uniformData)this.uniforms[h]=this.uniformData[h].value;this.glShaders={},o[this.vertexSrc+this.fragmentSrc]||(o[this.vertexSrc+this.fragmentSrc]=(0,l.uid)()),this.glShaderKey=o[this.vertexSrc+this.fragmentSrc],this.padding=4,this.resolution=1,this.enabled=!0}return t.prototype.apply=function(i,n,r,h){i.applyFilter(this,n,r,h)},_(t,null,[{key:"defaultVertexSrc",get:function(){return["attribute vec2 aVertexPosition;","attribute vec2 aTextureCoord;","uniform mat3 projectionMatrix;","uniform mat3 filterMatrix;","varying vec2 vTextureCoord;","varying vec2 vFilterCoord;","void main(void){"," gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);"," vFilterCoord = ( filterMatrix * vec3( aTextureCoord, 1.0) ).xy;"," vTextureCoord = aTextureCoord ;","}"].join(`
|
|
`)}},{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",get:function(){return this._dropShadowBlur},set:function(t){this._dropShadowBlur!==t&&(this._dropShadowBlur=t,this.styleID++)}},{key:"dropShadowColor",get:function(){return this._dropShadowColor},set:function(t){var i=_(t);this._dropShadowColor!==i&&(this._dropShadowColor=i,this.styleID++)}},{key:"dropShadowDistance",get:function(){return this._dropShadowDistance},set:function(t){this._dropShadowDistance!==t&&(this._dropShadowDistance=t,this.styleID++)}},{key:"fill",get:function(){return this._fill},set:function(t){var i=_(t);this._fill!==i&&(this._fill=i,this.styleID++)}},{key:"fillGradientType",get:function(){return this._fillGradientType},set:function(t){this._fillGradientType!==t&&(this._fillGradientType=t,this.styleID++)}},{key:"fontFamily",get:function(){return this._fontFamily},set:function(t){this.fontFamily!==t&&(this._fontFamily=t,this.styleID++)}},{key:"fontSize",get:function(){return this._fontSize},set:function(t){this._fontSize!==t&&(this._fontSize=t,this.styleID++)}},{key:"fontStyle",get:function(){return this._fontStyle},set:function(t){this._fontStyle!==t&&(this._fontStyle=t,this.styleID++)}},{key:"fontVariant",get:function(){return this._fontVariant},set:function(t){this._fontVariant!==t&&(this._fontVariant=t,this.styleID++)}},{key:"fontWeight",get:function(){return this._fontWeight},set:function(t){this._fontWeight!==t&&(this._fontWeight=t,this.styleID++)}},{key:"letterSpacing",get:function(){return this._letterSpacing},set:function(t){this._letterSpacing!==t&&(this._letterSpacing=t,this.styleID++)}},{key:"lineHeight",get:function(){return this._lineHeight},set:function(t){this._lineHeight!==t&&(this._lineHeight=t,this.styleID++)}},{key:"lineJoin",get:function(){return this._lineJoin},set:function(t){this._lineJoin!==t&&(this._lineJoin=t,this.styleID++)}},{key:"miterLimit",get:function(){return this._miterLimit},set:function(t){this._miterLimit!==t&&(this._miterLimit=t,this.styleID++)}},{key:"padding",get:function(){return this._padding},set:function(t){this._padding!==t&&(this._padding=t,this.styleID++)}},{key:"stroke",get:function(){return this._stroke},set:function(t){var i=_(t);this._stroke!==i&&(this._stroke=i,this.styleID++)}},{key:"strokeThickness",get:function(){return this._strokeThickness},set:function(t){this._strokeThickness!==t&&(this._strokeThickness=t,this.styleID++)}},{key:"textBaseline",get:function(){return this._textBaseline},set:function(t){this._textBaseline!==t&&(this._textBaseline=t,this.styleID++)}},{key:"wordWrap",get:function(){return this._wordWrap},set:function(t){this._wordWrap!==t&&(this._wordWrap=t,this.styleID++)}},{key:"wordWrapWidth",get:function(){return this._wordWrapWidth},set:function(t){this._wordWrapWidth!==t&&(this._wordWrapWidth=t,this.styleID++)}}]),e}();E.default=o},function(B,E,c){"use strict";function O(n){return n&&n.__esModule?n:{default:n}}function x(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}function _(n,r){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||typeof r!="object"&&typeof r!="function"?n:r}function b(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);n.prototype=Object.create(r&&r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(n,r):n.__proto__=r)}E.__esModule=!0;var m=c(25),l=O(m),f=c(5),o=O(f),e=o.default.RESOLUTION,t=o.default.SCALE_MODE,i=function(n){function r(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:100,p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100,u=arguments[2],y=arguments[3];x(this,r);var d=_(this,n.call(this,null,u));return d.resolution=y||e,d.width=h,d.height=p,d.realWidth=d.width*d.resolution,d.realHeight=d.height*d.resolution,d.scaleMode=u||t,d.hasLoaded=!0,d._glRenderTargets={},d._canvasRenderTarget=null,d.valid=!1,d}return b(r,n),r.prototype.resize=function(h,p){h===this.width&&p===this.height||(this.valid=h>0&&p>0,this.width=h,this.height=p,this.realWidth=this.width*this.resolution,this.realHeight=this.height*this.resolution,this.valid&&this.emit("update",this))},r.prototype.destroy=function(){n.prototype.destroy.call(this,!0),this.renderer=null},r}(l.default);E.default=i},function(B,E,c){"use strict";function O(l){return l&&l.__esModule?l:{default:l}}function x(l,f){if(!(l instanceof f))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var _=c(97),b=O(_),m=function(){function l(){x(this,l),this.x0=0,this.y0=0,this.x1=1,this.y1=0,this.x2=1,this.y2=1,this.x3=0,this.y3=1,this.uvsUint32=new Uint32Array(4)}return l.prototype.set=function(f,o,e){var t=o.width,i=o.height;if(e){var n=f.width/2/t,r=f.height/2/i,h=f.x/t+n,p=f.y/i+r;e=b.default.add(e,b.default.NW),this.x0=h+n*b.default.uX(e),this.y0=p+r*b.default.uY(e),e=b.default.add(e,2),this.x1=h+n*b.default.uX(e),this.y1=p+r*b.default.uY(e),e=b.default.add(e,2),this.x2=h+n*b.default.uX(e),this.y2=p+r*b.default.uY(e),e=b.default.add(e,2),this.x3=h+n*b.default.uX(e),this.y3=p+r*b.default.uY(e)}else this.x0=f.x/t,this.y0=f.y/i,this.x1=(f.x+f.width)/t,this.y1=f.y/i,this.x2=(f.x+f.width)/t,this.y2=(f.y+f.height)/i,this.x3=f.x/t,this.y3=(f.y+f.height)/i;this.uvsUint32[0]=(65535*this.y0&65535)<<16|65535*this.x0&65535,this.uvsUint32[1]=(65535*this.y1&65535)<<16|65535*this.x1&65535,this.uvsUint32[2]=(65535*this.y2&65535)<<16|65535*this.x2&65535,this.uvsUint32[3]=(65535*this.y3&65535)<<16|65535*this.x3&65535},l}();E.default=m},function(B,E,c){"use strict";function O(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 x(h){return h&&h.__esModule?h:{default:h}}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){p||(p="video/"+h.substr(h.lastIndexOf(".")+1));var u=document.createElement("source");return u.src=h,u.type=p,u}E.__esModule=!0;var f=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}}(),o=c(25),e=x(o),t=c(3),i=c(109),n=O(i),r=function(h){function p(u,y){if(_(this,p),!u)throw new Error("No video source element specified.");(u.readyState===u.HAVE_ENOUGH_DATA||u.readyState===u.HAVE_FUTURE_DATA)&&u.width&&u.height&&(u.complete=!0);var d=b(this,h.call(this,u,y));return d.width=u.videoWidth,d.height=u.videoHeight,d._autoUpdate=!0,d._isAutoUpdating=!1,d.autoPlay=!0,d.update=d.update.bind(d),d._onCanPlay=d._onCanPlay.bind(d),u.addEventListener("play",d._onPlayStart.bind(d)),u.addEventListener("pause",d._onPlayStop.bind(d)),d.hasLoaded=!1,d.__loaded=!1,d._isSourceReady()?d._onCanPlay():(u.addEventListener("canplay",d._onCanPlay),u.addEventListener("canplaythrough",d._onCanPlay)),d}return m(p,h),p.prototype._isSourcePlaying=function(){var u=this.source;return u.currentTime>0&&u.paused===!1&&u.ended===!1&&u.readyState>2},p.prototype._isSourceReady=function(){return this.source.readyState===3||this.source.readyState===4},p.prototype._onPlayStart=function(){this.hasLoaded||this._onCanPlay(),!this._isAutoUpdating&&this.autoUpdate&&(n.shared.add(this.update,this),this._isAutoUpdating=!0)},p.prototype._onPlayStop=function(){this._isAutoUpdating&&(n.shared.remove(this.update,this),this._isAutoUpdating=!1)},p.prototype._onCanPlay=function(){this.hasLoaded=!0,this.source&&(this.source.removeEventListener("canplay",this._onCanPlay),this.source.removeEventListener("canplaythrough",this._onCanPlay),this.width=this.source.videoWidth,this.height=this.source.videoHeight,this.__loaded||(this.__loaded=!0,this.emit("loaded",this)),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&this.source.play())},p.prototype.destroy=function(){this._isAutoUpdating&&n.shared.remove(this.update,this),this.source&&this.source._pixiId&&(delete t.BaseTextureCache[this.source._pixiId],delete this.source._pixiId),h.prototype.destroy.call(this)},p.fromVideo=function(u,y){u._pixiId||(u._pixiId="video_"+(0,t.uid)());var d=t.BaseTextureCache[u._pixiId];return d||(d=new p(u,y),t.BaseTextureCache[u._pixiId]=d),d},p.fromUrl=function(u,y){var d=document.createElement("video");if(d.setAttribute("webkit-playsinline",""),d.setAttribute("playsinline",""),Array.isArray(u))for(var w=0;w<u.length;++w)d.appendChild(l(u[w].src||u[w],u[w].mime));else d.appendChild(l(u.src||u,u.mime));return d.load(),p.fromVideo(d,y)},f(p,[{key:"autoUpdate",get:function(){return this._autoUpdate},set:function(u){u!==this._autoUpdate&&(this._autoUpdate=u,!this._autoUpdate&&this._isAutoUpdating?(n.shared.remove(this.update,this),this._isAutoUpdating=!1):this._autoUpdate&&!this._isAutoUpdating&&(n.shared.add(this.update,this),this._isAutoUpdating=!0))}}]),p}(e.default);E.default=r,r.fromUrls=r.fromUrl},function(B,E,c){"use strict";function O(m){return m&&m.__esModule?m:{default:m}}E.__esModule=!0,E.Ticker=E.shared=void 0;var x=c(216),_=O(x),b=new _.default;b.autoStart=!0,E.shared=b,E.Ticker=_.default},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 _=function(){function o(e,t){for(var i=0;i<t.length;i++){var n=t[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,t,i){return t&&o(e.prototype,t),i&&o(e,i),e}}(),b=c(59),m=O(b),l=new m.default,f=function(){function o(e,t){x(this,o),this._texture=e,this.mapCoord=new m.default,this.uClampFrame=new Float32Array(4),this.uClampOffset=new Float32Array(2),this._lastTextureID=-1,this.clampOffset=0,this.clampMargin=typeof t=="undefined"?.5:t}return o.prototype.update=function(e){var t=this._texture;if(t&&t.valid&&(e||this._lastTextureID!==t._updateID)){this._lastTextureID=t._updateID;var i=t._uvs;this.mapCoord.set(i.x1-i.x0,i.y1-i.y0,i.x3-i.x0,i.y3-i.y0,i.x0,i.y0);var n=t.orig,r=t.trim;r&&(l.set(n.width/r.width,0,0,n.height/r.height,-r.x/r.width,-r.y/r.height),this.mapCoord.append(l));var h=t.baseTexture,p=this.uClampFrame,u=this.clampMargin/h.resolution,y=this.clampOffset;p[0]=(t._frame.x+u+y)/h.width,p[1]=(t._frame.y+u+y)/h.height,p[2]=(t._frame.x+t._frame.width-u+y)/h.width,p[3]=(t._frame.y+t._frame.height-u+y)/h.height,this.uClampOffset[0]=y/h.realWidth,this.uClampOffset[1]=y/h.realHeight}},_(o,[{key:"texture",get:function(){return this._texture},set:function(e){this._texture=e,this._lastTextureID=-1}}]),o}();E.default=f},function(B,E,c){"use strict";function O(u){return u&&u.__esModule?u:{default:u}}function x(u){if(u&&u.__esModule)return u;var y={};if(u!=null)for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(y[d]=u[d]);return y.default=u,y}function _(u,y){if(!(u instanceof y))throw new TypeError("Cannot call a class as a function")}function b(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 m(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 l=function(){function u(y,d){for(var w=0;w<d.length;w++){var g=d[w];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(y,g.key,g)}}return function(y,d,w){return d&&u(y.prototype,d),w&&u(y,w),y}}(),f=c(1),o=x(f),e=c(114),t=O(e),i=c(113),n=O(i),r=c(115),h=O(r),p=function(u){function y(d,w,g,a){_(this,y),a=a||5;var s=(0,t.default)(a,!0),v=(0,n.default)(a),P=b(this,u.call(this,s,v));return P.resolution=g||1,P._quality=0,P.quality=w||4,P.strength=d||8,P.firstRun=!0,P}return m(y,u),y.prototype.apply=function(d,w,g,a){if(this.firstRun){var s=d.renderer.gl,v=(0,h.default)(s);this.vertexSrc=(0,t.default)(v,!0),this.fragmentSrc=(0,n.default)(v),this.firstRun=!1}if(this.uniforms.strength=1/g.size.width*(g.size.width/w.size.width),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,this.passes===1)d.applyFilter(this,w,g,a);else{for(var P=d.getRenderTarget(!0),T=w,C=P,M=0;M<this.passes-1;M++){d.applyFilter(this,T,C,!0);var R=C;C=T,T=R}d.applyFilter(this,T,g,a),d.returnRenderTarget(P)}},l(y,[{key:"blur",get:function(){return this.strength},set:function(d){this.padding=2*Math.abs(d),this.strength=d}},{key:"quality",get:function(){return this._quality},set:function(d){this._quality=d,this.passes=d}}]),y}(o.Filter);E.default=p},function(B,E,c){"use strict";function O(u){return u&&u.__esModule?u:{default:u}}function x(u){if(u&&u.__esModule)return u;var y={};if(u!=null)for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(y[d]=u[d]);return y.default=u,y}function _(u,y){if(!(u instanceof y))throw new TypeError("Cannot call a class as a function")}function b(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 m(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 l=function(){function u(y,d){for(var w=0;w<d.length;w++){var g=d[w];g.enumerable=g.enumerable||!1,g.configurable=!0,"value"in g&&(g.writable=!0),Object.defineProperty(y,g.key,g)}}return function(y,d,w){return d&&u(y.prototype,d),w&&u(y,w),y}}(),f=c(1),o=x(f),e=c(114),t=O(e),i=c(113),n=O(i),r=c(115),h=O(r),p=function(u){function y(d,w,g,a){_(this,y),a=a||5;var s=(0,t.default)(a,!1),v=(0,n.default)(a),P=b(this,u.call(this,s,v));return P.resolution=g||1,P._quality=0,P.quality=w||4,P.strength=d||8,P.firstRun=!0,P}return m(y,u),y.prototype.apply=function(d,w,g,a){if(this.firstRun){var s=d.renderer.gl,v=(0,h.default)(s);this.vertexSrc=(0,t.default)(v,!1),this.fragmentSrc=(0,n.default)(v),this.firstRun=!1}if(this.uniforms.strength=1/g.size.height*(g.size.height/w.size.height),this.uniforms.strength*=this.strength,this.uniforms.strength/=this.passes,this.passes===1)d.applyFilter(this,w,g,a);else{for(var P=d.getRenderTarget(!0),T=w,C=P,M=0;M<this.passes-1;M++){d.applyFilter(this,T,C,!0);var R=C;C=T,T=R}d.applyFilter(this,T,g,a),d.returnRenderTarget(P)}},l(y,[{key:"blur",get:function(){return this.strength},set:function(d){this.padding=2*Math.abs(d),this.strength=d}},{key:"quality",get:function(){return this._quality},set:function(d){this._quality=d,this.passes=d}}]),y}(o.Filter);E.default=p},function(B,E){"use strict";function c(_){for(var b=O[_],m=b.length,l=x,f="",o="gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;",e=void 0,t=0;t<_;t++){var i=o.replace("%index%",t);e=t,t>=m&&(e=_-t-1),i=i.replace("%value%",b[e]),f+=i,f+=`
|
|
`}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",{enumerable:!0,get:function(){return O(x).default}});var _=c(119);Object.defineProperty(E,"bitmapFontParser",{enumerable:!0,get:function(){return O(_).default}}),Object.defineProperty(E,"parseBitmapFontData",{enumerable:!0,get:function(){return _.parse}});var b=c(121);Object.defineProperty(E,"spritesheetParser",{enumerable:!0,get:function(){return O(b).default}});var m=c(122);Object.defineProperty(E,"textureParser",{enumerable:!0,get:function(){return O(m).default}});var l=c(19);Object.defineProperty(E,"Resource",{enumerable:!0,get:function(){return l.Resource}})},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){return e&&e.__esModule?e:{default:e}}E.__esModule=!0,E.default=function(){return function(e,t){var i=void 0,n=e.name+"_image";if(!e.data||e.type!==_.Resource.TYPE.JSON||!e.data.frames||this.resources[n])return void t();var r={crossOrigin:e.crossOrigin,loadType:_.Resource.LOAD_TYPE.IMAGE,metadata:e.metadata.imageMetadata,parentResource:e};i=e.isDataUrl?e.data.meta.image:m.default.dirname(e.url.replace(this.baseUrl,""))+"/"+e.data.meta.image,this.add(n,i,r,function(h){function p(T,C){for(var M=T;M-T<C&&M<g.length;){var R=g[M],S=w[R].frame;if(S){var L=null,A=null,D=new f.Rectangle(0,0,w[R].sourceSize.w/v,w[R].sourceSize.h/v);L=w[R].rotated?new f.Rectangle(S.x/v,S.y/v,S.h/v,S.w/v):new f.Rectangle(S.x/v,S.y/v,S.w/v,S.h/v),w[R].trimmed&&(A=new f.Rectangle(w[R].spriteSourceSize.x/v,w[R].spriteSourceSize.y/v,S.w/v,S.h/v)),e.textures[R]=new f.Texture(a,L,D,A,w[R].rotated?2:0),f.utils.TextureCache[R]=e.textures[R]}M++}}function u(){return P*o<g.length}function y(T){p(P*o,o),P++,setTimeout(T,0)}function d(){y(function(){u()?d():t()})}e.textures={};var w=e.data.frames,g=Object.keys(w),a=h.texture.baseTexture,s=e.data.meta.scale,v=f.utils.getResolutionOfUrl(e.url,null);v===null&&(v=s!==void 0?s:1),v!==1&&(a.resolution=v,a.update());var P=0;g.length<=o?(p(0,o),t()):d()})}};var _=c(19),b=c(7),m=x(b),l=c(1),f=O(l),o=1e3},function(B,E,c){"use strict";function O(m){if(m&&m.__esModule)return m;var l={};if(m!=null)for(var f in m)Object.prototype.hasOwnProperty.call(m,f)&&(l[f]=m[f]);return l.default=m,l}E.__esModule=!0,E.default=function(){return function(m,l){if(m.data&&m.type===b.Resource.TYPE.IMAGE){var f=new _.BaseTexture(m.data,null,_.utils.getResolutionOfUrl(m.url));f.imageUrl=m.url,m.texture=new _.Texture(f),_.utils.BaseTextureCache[m.name]=f,_.utils.TextureCache[m.name]=m.texture,m.name!==m.url&&(_.utils.BaseTextureCache[m.url]=f,_.utils.TextureCache[m.url]=m.texture)}l()}};var x=c(1),_=O(x),b=c(19)},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")}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(27),l=O(m),f=function(o){function e(t,i,n){x(this,e);var r=_(this,o.call(this,t));return r._ready=!0,r.verticesX=i||10,r.verticesY=n||10,r.drawMode=l.default.DRAW_MODES.TRIANGLES,r.refresh(),r}return b(e,o),e.prototype.refresh=function(){for(var t=this.verticesX*this.verticesY,i=[],n=[],r=[],h=[],p=this.texture,u=this.verticesX-1,y=this.verticesY-1,d=p.width/u,w=p.height/y,g=0;g<t;g++)if(p._uvs){var a=g%this.verticesX,s=g/this.verticesX|0;i.push(a*d,s*w),r.push(p._uvs.x0+(p._uvs.x1-p._uvs.x0)*(a/(this.verticesX-1)),p._uvs.y0+(p._uvs.y3-p._uvs.y0)*(s/(this.verticesY-1)))}else r.push(0);for(var v=u*y,P=0;P<v;P++){var T=P%u,C=P/u|0,M=C*this.verticesX+T,R=C*this.verticesX+T+1,S=(C+1)*this.verticesX+T,L=(C+1)*this.verticesX+T+1;h.push(M,R,S),h.push(R,L,S)}this.vertices=new Float32Array(i),this.uvs=new Float32Array(r),this.colors=new Float32Array(n),this.indices=new Uint16Array(h),this.indexDirty=!0},e.prototype._onTextureUpdate=function(){l.default.prototype._onTextureUpdate.call(this),this._ready&&this.refresh()},e}(l.default);E.default=f},function(B,E,c){"use strict";function O(o){return o&&o.__esModule?o:{default:o}}E.__esModule=!0;var x=c(27);Object.defineProperty(E,"Mesh",{enumerable:!0,get:function(){return O(x).default}});var _=c(245);Object.defineProperty(E,"MeshRenderer",{enumerable:!0,get:function(){return O(_).default}});var b=c(244);Object.defineProperty(E,"CanvasMeshRenderer",{enumerable:!0,get:function(){return O(b).default}});var m=c(123);Object.defineProperty(E,"Plane",{enumerable:!0,get:function(){return O(m).default}});var l=c(242);Object.defineProperty(E,"NineSlicePlane",{enumerable:!0,get:function(){return O(l).default}});var f=c(243);Object.defineProperty(E,"Rope",{enumerable:!0,get:function(){return O(f).default}})},function(B,E,c){"use strict";function O(b){return b&&b.__esModule?b:{default:b}}E.__esModule=!0;var x=c(246);Object.defineProperty(E,"ParticleContainer",{enumerable:!0,get:function(){return O(x).default}});var _=c(248);Object.defineProperty(E,"ParticleRenderer",{enumerable:!0,get:function(){return O(_).default}})},function(B,E,c){"use strict";function O(f){return f&&f.__esModule?f:{default:f}}E.__esModule=!0;var x=c(256);Object.defineProperty(E,"webgl",{enumerable:!0,get:function(){return O(x).default}});var _=c(254);Object.defineProperty(E,"canvas",{enumerable:!0,get:function(){return O(_).default}});var b=c(68);Object.defineProperty(E,"BasePrepare",{enumerable:!0,get:function(){return O(b).default}});var m=c(127);Object.defineProperty(E,"CountLimiter",{enumerable:!0,get:function(){return O(m).default}});var l=c(255);Object.defineProperty(E,"TimeLimiter",{enumerable:!0,get:function(){return O(l).default}})},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.maxItemsPerFrame=_,this.itemsLeft=0}return x.prototype.beginFrame=function(){this.itemsLeft=this.maxItemsPerFrame},x.prototype.allowedToUpload=function(){return this.itemsLeft-- >0},x}();E.default=O},function(B,E,c){"use strict";function O(m){return m&&m.__esModule?m:{default:m}}var x=c(8),_=O(x),b=function(){function m(l){(0,_.default)(this,m),this.ringObj=l,this.center={x:400,y:280},this.rArray=[],this.PI=Math.PI/180}return m.prototype.setRArray=function(){var l=this.ringObj.inner,f=this.ringObj.outside,o=f-l,e=this.ringObj.listNumber,t=.7*o/e,i=0,n=void 0;for(n=1;n<e;n++)i+=n;var r=.3*o/i,h=0,p=this.ringObj.maxOutside?e-2:e-1;for(n=0;n<p;n++){h+=r*n;var u=t*n+h+l;this.rArray.push(u)}this.rArray.push(f),this.ringObj.maxOutside&&this.rArray.push(f+10)},m.prototype.getCirclePoint=function(){var l=360*Math.random(),f=Math.round(Math.random()*(this.rArray.length-1)),o=this.rArray[f];return{x:Math.sin(this.PI*l)*o,y:Math.cos(this.PI*l)*o,r:o,angle:l,number:f}},m}();Object.defineProperty(E,"__esModule",{value:!0}),E.default=b},function(B,E,c){"use strict";function O(n){return n&&n.__esModule?n:{default:n}}var x=c(8),_=O(x),b=c(40),m=O(b),l=c(39),f=O(l),o=c(14),e=c(9),t=c(128),i=function(n){function r(h,p){var u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:2492293,y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:3542694;(0,_.default)(this,r);var d=(0,m.default)(this,n.call(this,p));return d.number=h,d.ringObj=p,d.bgColor=u,d.lineColor=y,d.container=new o.Container,d.pointContainer=new o.Container,d.bgContainer=new o.Container,d.lineContainer=new o.Container,d.dataArr=[],d.increasArr=[],d.aa=0,d}return(0,f.default)(r,n),r.prototype.init=function(){this.setRArray(),this.getIncrease(),this.createBgElement(),this.createLineElement(),this.createPointElement(),this.startAnim()},r.prototype.createPointElement=function(){for(var h=0;h<this.number;h++){var p=new o.Sprite.fromImage(this.ringObj.img);p.anchor.set(.5);var u=.7*Math.random();p.scale={x:u+.5,y:u+.5};var y=p.positionData=this.getCirclePoint(),d=this.center.x-20;p.x=Math.random()*(y.angle>180?-d:d),p.y=2*Math.random()|0?5*-Math.random():5*Math.random(),p.cacheAsBitmapboolean=!0,p.alpha=0,this.pointContainer.addChild(p)}var w=new o.filters.BlurFilter;w.blur=.5,this.container.addChild(this.pointContainer),this.container.x=this.center.x,this.container.y=this.center.y},r.prototype.createLineElement=function(){for(var h=0;h<this.rArray.length;h++){var p=new o.Graphics;p.lineStyle(1,this.lineColor,.35),p.drawCircle(0,0,this.rArray[h]),this.lineContainer.addChild(p)}var u=new o.filters.BlurFilter;u.blur=.5,this.lineContainer.filters=[u],this.lineContainer.alpha=0,this.container.addChild(this.lineContainer)},r.prototype.createBgElement=function(){var h=this.ringObj.inner,p=this.ringObj.outside,u=10,y=new o.Graphics;y.lineStyle(p-h,this.bgColor,.35),y.drawCircle(0,0,h+2*u);var d=new o.filters.BlurFilter;d.blur=u,y.filters=[d],this.bgContainer.alpha=0,this.bgContainer.addChild(y),this.container.addChild(this.bgContainer)},r.prototype.getIncrease=function(){var h=this.ringObj.listNumber,p=void 0,u=0;for(p=1;p<h;p++)u+=p;var y=.65*this.number/u,d=0;for(p=0;p<h;p++)d=Math.ceil(y*p),this.increasArr.push(d);this.increasArr.reverse()},r.prototype.getCirclePoint=function(){var h=arguments.length>0&&arguments[0]!==void 0&&arguments[0],p=360*Math.random(),u=void 0,y=void 0;if(h)u=Math.round(Math.random()*(this.ringObj.listNumber-1));else{var d=this.ringObj.listNumber;u=this.aa,y=this.dataArr[u]=this.dataArr[u]||[];var w=.35*this.number/d;y.length>=w+this.increasArr[u]&&(u++,y=this.dataArr[u]=this.dataArr[u]||[],this.aa=u),y.push(1)}var g=this.rArray[u];return{x:Math.sin(this.PI*p)*g,y:Math.cos(this.PI*p)*g,r:g,angle:p,number:u}},r.prototype.startAnim=function(){},r.prototype.getAnimData=function(h,p){var u=(arguments.length>2&&arguments[2]!==void 0&&arguments[2],arguments.length>3&&arguments[3]!==void 0&&arguments[3],h.angle-p);return u=u<360?u+360:u,{x:Math.sin(this.PI*u)*h.r,y:Math.cos(this.PI*u)*h.r}},r.prototype.pointAnim=function(){var h=this,p=this.pointContainer.children;p.forEach(function(u){var y={r:0},d=u.positionData.r,w=h.rArray.indexOf(d),g=w>h.ringObj.listNumber-3,a=g?40*Math.random()+5*w+30:20*Math.random()+3*w+30;g&&(u.alpha=.5*Math.random()+.5);var s=new e.TimelineMax;s.to(u,.5,{alpha:.7*Math.random()+.2,delay:2*Math.random()+.5}).to(u,2*Math.random()+.5,{x:u.positionData.x,y:u.positionData.y,ease:e.Power3.easeInOut}).to(y,a,{r:360,onUpdate:function(){var v=h.getAnimData(u.positionData,y.r,g,w);u.x=v.x,u.y=v.y},repeat:-1,ease:e.Power0.easeNone})})},r}(t.default);Object.defineProperty(E,"__esModule",{value:!0}),E.default=i},function(B,E,c){"use strict";function O(f){return f&&f.__esModule?f:{default:f}}E.__esModule=!0;var x=c(266),_=O(x),b=c(265),m=O(b),l=typeof m.default=="function"&&typeof _.default=="symbol"?function(f){return typeof f}:function(f){return f&&typeof m.default=="function"&&f.constructor===m.default&&f!==m.default.prototype?"symbol":typeof f};E.default=typeof m.default=="function"&&l(_.default)==="symbol"?function(f){return typeof f=="undefined"?"undefined":l(f)}:function(f){return f&&typeof m.default=="function"&&f.constructor===m.default&&f!==m.default.prototype?"symbol":typeof f=="undefined"?"undefined":l(f)}},function(B,E,c){function O(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function x(T,C,M){if(T&&f(T)&&T instanceof O)return T;var R=new O;return R.parse(T,C,M),R}function _(T){return l(T)&&(T=x(T)),T instanceof O?T.format():O.prototype.format.call(T)}function b(T,C){return x(T,!1,!0).resolve(C)}function m(T,C){return T?x(T,!1,!0).resolveObject(C):C}function l(T){return typeof T=="string"}function f(T){return typeof T=="object"&&T!==null}function o(T){return T===null}function e(T){return T==null}var t=c(145);E.parse=x,E.resolve=b,E.resolveObject=m,E.format=_,E.Url=O;var i=/^([a-z0-9.+-]+:)/i,n=/:[0-9]*$/,r=["<",">",'"',"`"," ","\r",`
|
|
`," "],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=""),N[0]!==""&&N.unshift(""),N.length<2&&N.unshift(""),M.pathname=N.join("/")}if(M.search=T.search,M.query=T.query,M.host=T.host||"",M.auth=T.auth,M.hostname=T.hostname||T.host,M.port=T.port,M.pathname||M.search){var R=M.pathname||"",S=M.search||"";M.path=R+S}return M.slashes=M.slashes||T.slashes,M.href=M.format(),M}var L=M.pathname&&M.pathname.charAt(0)==="/",A=T.host||T.pathname&&T.pathname.charAt(0)==="/",D=A||L||M.host&&T.pathname,I=D,U=M.pathname&&M.pathname.split("/")||[],N=T.pathname&&T.pathname.split("/")||[],W=M.protocol&&!v[M.protocol];if(W&&(M.hostname="",M.port=null,M.host&&(U[0]===""?U[0]=M.host:U.unshift(M.host)),M.host="",T.protocol&&(T.hostname=null,T.port=null,T.host&&(N[0]===""?N[0]=T.host:N.unshift(T.host)),T.host=null),D=D&&(N[0]===""||U[0]==="")),A)M.host=T.host||T.host===""?T.host:M.host,M.hostname=T.hostname||T.hostname===""?T.hostname:M.hostname,M.search=T.search,M.query=T.query,U=N;else if(N.length)U||(U=[]),U.pop(),U=U.concat(N),M.search=T.search,M.query=T.query;else if(!e(T.search)){if(W){M.hostname=M.host=U.shift();var H=!!(M.host&&M.host.indexOf("@")>0)&&M.host.split("@");H&&(M.auth=H.shift(),M.host=M.hostname=H.shift())}return M.search=T.search,M.query=T.query,o(M.pathname)&&o(M.search)||(M.path=(M.pathname?M.pathname:"")+(M.search?M.search:"")),M.href=M.format(),M}if(!U.length)return M.pathname=null,M.search?M.path="/"+M.search:M.path=null,M.href=M.format(),M;for(var tt=U.slice(-1)[0],it=(M.host||T.host)&&(tt==="."||tt==="..")||tt==="",K=0,at=U.length;at>=0;at--)tt=U[at],tt=="."?U.splice(at,1):tt===".."?(U.splice(at,1),K++):K&&(U.splice(at,1),K--);if(!D&&!I)for(;K--;K)U.unshift("..");!D||U[0]===""||U[0]&&U[0].charAt(0)==="/"||U.unshift(""),it&&U.join("/").substr(-1)!=="/"&&U.push("");var ut=U[0]===""||U[0]&&U[0].charAt(0)==="/";if(W){M.hostname=M.host=ut?"":U.length?U.shift():"";var H=!!(M.host&&M.host.indexOf("@")>0)&&M.host.split("@");H&&(M.auth=H.shift(),M.host=M.hostname=H.shift())}return D=D||M.host&&U.length,D&&!ut&&U.unshift(""),U.length?M.pathname=U.join("/"):(M.pathname=null,M.path=null),o(M.pathname)&&o(M.search)||(M.path=(M.pathname?M.pathname:"")+(M.search?M.search:"")),M.auth=T.auth||M.auth,M.slashes=M.slashes||T.slashes,M.href=M.format(),M},O.prototype.parseHost=function(){var T=this.host,C=n.exec(T);C&&(C=C[0],C!==":"&&(this.port=C.substr(1)),T=T.substr(0,T.length-C.length)),T&&(this.hostname=T)}},function(B,E){function c(){throw new Error("setTimeout has not been defined")}function O(){throw new Error("clearTimeout has not been defined")}function x(p){if(o===setTimeout)return setTimeout(p,0);if((o===c||!o)&&setTimeout)return o=setTimeout,setTimeout(p,0);try{return o(p,0)}catch(u){try{return o.call(null,p,0)}catch(y){return o.call(this,p,0)}}}function _(p){if(e===clearTimeout)return clearTimeout(p);if((e===O||!e)&&clearTimeout)return e=clearTimeout,clearTimeout(p);try{return e(p)}catch(u){try{return e.call(null,p)}catch(y){return e.call(this,p)}}}function b(){r&&i&&(r=!1,i.length?n=i.concat(n):h=-1,n.length&&m())}function m(){if(!r){var p=x(b);r=!0;for(var u=n.length;u;){for(i=n,n=[];++h<u;)i&&i[h].run();h=-1,u=n.length}i=null,r=!1,_(p)}}function l(p,u){this.fun=p,this.array=u}function f(){}var o,e,t=B.exports={};(function(){try{o=typeof setTimeout=="function"?setTimeout:c}catch(p){o=c}try{e=typeof clearTimeout=="function"?clearTimeout:O}catch(p){e=O}})();var i,n=[],r=!1,h=-1;t.nextTick=function(p){var u=new Array(arguments.length-1);if(arguments.length>1)for(var y=1;y<arguments.length;y++)u[y-1]=arguments[y];n.push(new l(p,u)),n.length!==1||r||x(m)},l.prototype.run=function(){this.fun.apply(null,this.array)},t.title="browser",t.browser=!0,t.env={},t.argv=[],t.version="",t.versions={},t.on=f,t.addListener=f,t.once=f,t.off=f,t.removeListener=f,t.removeAllListeners=f,t.emit=f,t.binding=function(p){throw new Error("process.binding is not supported")},t.cwd=function(){return"/"},t.chdir=function(p){throw new Error("process.chdir is not supported")},t.umask=function(){return 0}},function(B,E){"use strict";function c(O,x){return Object.prototype.hasOwnProperty.call(O,x)}B.exports=function(O,x,_,b){x=x||"&",_=_||"=";var m={};if(typeof O!="string"||O.length===0)return m;var l=/\+/g;O=O.split(x);var f=1e3;b&&typeof b.maxKeys=="number"&&(f=b.maxKeys);var o=O.length;f>0&&o>f&&(o=f);for(var e=0;e<o;++e){var t,i,n,r,h=O[e].replace(l,"%20"),p=h.indexOf(_);p>=0?(t=h.substr(0,p),i=h.substr(p+1)):(t=h,i=""),n=decodeURIComponent(t),r=decodeURIComponent(i),c(m,n)?Array.isArray(m[n])?m[n].push(r):m[n]=[m[n],r]:m[n]=r}return m}},function(B,E){"use strict";var c=function(O){switch(typeof O){case"string":return O;case"boolean":return O?"true":"false";case"number":return isFinite(O)?O:"";default:return""}};B.exports=function(O,x,_,b){return x=x||"&",_=_||"=",O===null&&(O=void 0),typeof O=="object"?Object.keys(O).map(function(m){var l=encodeURIComponent(c(m))+_;return Array.isArray(O[m])?O[m].map(function(f){return l+encodeURIComponent(c(f))}).join(x):l+encodeURIComponent(c(O[m]))}).join(x):b?encodeURIComponent(c(b))+_+encodeURIComponent(c(O)):""}},function(B,E,c){"use strict";E.decode=E.parse=c(133),E.encode=E.stringify=c(134)},function(B,E){},function(B,E){var c=new ArrayBuffer(0),O=function(x,_,b,m){this.gl=x,this.buffer=x.createBuffer(),this.type=_||x.ARRAY_BUFFER,this.drawType=m||x.STATIC_DRAW,this.data=c,b&&this.upload(b)};O.prototype.upload=function(x,_,b){b||this.bind();var m=this.gl;x=x||this.data,_=_||0,this.data.byteLength>=x.byteLength?m.bufferSubData(this.type,_,x):m.bufferData(this.type,x,this.drawType),this.data=x},O.prototype.bind=function(){var x=this.gl;x.bindBuffer(this.type,this.buffer)},O.createVertexBuffer=function(x,_,b){return new O(x,x.ARRAY_BUFFER,_,b)},O.createIndexBuffer=function(x,_,b){return new O(x,x.ELEMENT_ARRAY_BUFFER,_,b)},O.create=function(x,_,b,m){return new O(x,_,b,m)},O.prototype.destroy=function(){this.gl.deleteBuffer(this.buffer)},B.exports=O},function(B,E,c){var O=c(70),x=function(_,b,m){this.gl=_,this.framebuffer=_.createFramebuffer(),this.stencil=null,this.texture=null,this.width=b||100,this.height=m||100};x.prototype.enableTexture=function(_){var b=this.gl;this.texture=_||new O(b),this.texture.bind(),this.bind(),b.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,this.texture.texture,0)},x.prototype.enableStencil=function(){if(!this.stencil){var _=this.gl;this.stencil=_.createRenderbuffer(),_.bindRenderbuffer(_.RENDERBUFFER,this.stencil),_.framebufferRenderbuffer(_.FRAMEBUFFER,_.DEPTH_STENCIL_ATTACHMENT,_.RENDERBUFFER,this.stencil),_.renderbufferStorage(_.RENDERBUFFER,_.DEPTH_STENCIL,this.width,this.height)}},x.prototype.clear=function(_,b,m,l){this.bind();var f=this.gl;f.clearColor(_,b,m,l),f.clear(f.COLOR_BUFFER_BIT)},x.prototype.bind=function(){var _=this.gl;_.bindFramebuffer(_.FRAMEBUFFER,this.framebuffer)},x.prototype.unbind=function(){var _=this.gl;_.bindFramebuffer(_.FRAMEBUFFER,null)},x.prototype.resize=function(_,b){var m=this.gl;this.width=_,this.height=b,this.texture&&this.texture.uploadData(null,_,b),this.stencil&&(m.bindRenderbuffer(m.RENDERBUFFER,this.stencil),m.renderbufferStorage(m.RENDERBUFFER,m.DEPTH_STENCIL,_,b))},x.prototype.destroy=function(){var _=this.gl;this.texture&&this.texture.destroy(),_.deleteFramebuffer(this.framebuffer),this.gl=null,this.stencil=null,this.texture=null},x.createRGBA=function(_,b,m,l){var f=O.fromData(_,null,b,m);f.enableNearestScaling(),f.enableWrapClamp();var o=new x(_,b,m);return o.enableTexture(f),o.unbind(),o},x.createFloat32=function(_,b,m,l){var f=new O.fromData(_,l,b,m);f.enableNearestScaling(),f.enableWrapClamp();var o=new x(_,b,m);return o.enableTexture(f),o.unbind(),o},B.exports=x},function(B,E,c){var O=c(72),x=c(74),_=c(75),b=c(76),m=function(l,f,o){this.gl=l,this.program=O(l,f,o),this.attributes=x(l,this.program);var e=_(l,this.program);this.uniforms=b(l,e)};m.prototype.bind=function(){this.gl.useProgram(this.program)},m.prototype.destroy=function(){},B.exports=m},function(B,E,c){function O(_,b){if(this.nativeVaoExtension=null,O.FORCE_NATIVE||(this.nativeVaoExtension=_.getExtension("OES_vertex_array_object")||_.getExtension("MOZ_OES_vertex_array_object")||_.getExtension("WEBKIT_OES_vertex_array_object")),this.nativeState=b,this.nativeVaoExtension){this.nativeVao=this.nativeVaoExtension.createVertexArrayOES();var m=_.getParameter(_.MAX_VERTEX_ATTRIBS);this.nativeState={tempAttribState:new Array(m),attribState:new Array(m)}}this.gl=_,this.attributes=[],this.indexBuffer=null,this.dirty=!1}var x=c(71);O.prototype.constructor=O,B.exports=O,O.FORCE_NATIVE=!1,O.prototype.bind=function(){return this.nativeVao?(this.nativeVaoExtension.bindVertexArrayOES(this.nativeVao),this.dirty&&(this.dirty=!1,this.activate())):this.activate(),this},O.prototype.unbind=function(){return this.nativeVao&&this.nativeVaoExtension.bindVertexArrayOES(null),this},O.prototype.activate=function(){for(var _=this.gl,b=null,m=0;m<this.attributes.length;m++){var l=this.attributes[m];b!==l.buffer&&(l.buffer.bind(),b=l.buffer),_.vertexAttribPointer(l.attribute.location,l.attribute.size,l.type||_.FLOAT,l.normalized||!1,l.stride||0,l.start||0)}return x(_,this.attributes,this.nativeState),this.indexBuffer.bind(),this},O.prototype.addAttribute=function(_,b,m,l,f,o){return this.attributes.push({buffer:_,attribute:b,location:b.location,type:m||this.gl.FLOAT,normalized:l||!1,stride:f||0,start:o||0}),this.dirty=!0,this},O.prototype.addIndex=function(_){return this.indexBuffer=_,this.dirty=!0,this},O.prototype.clear=function(){return this.nativeVao&&this.nativeVaoExtension.bindVertexArrayOES(this.nativeVao),this.attributes.length=0,this.indexBuffer=null,this},O.prototype.draw=function(_,b,m){var l=this.gl;return l.drawElements(_,b,l.UNSIGNED_SHORT,m||0),this},O.prototype.destroy=function(){this.gl=null,this.indexBuffer=null,this.attributes=null,this.nativeState=null,this.nativeVao&&this.nativeVaoExtension.deleteVertexArrayOES(this.nativeVao),this.nativeVaoExtension=null,this.nativeVao=null}},function(B,E){var c=function(O,x){var _=O.getContext("webgl",x)||O.getContext("experimental-webgl",x);if(!_)throw new Error("This browser does not support webGL. Try using the canvas renderer");return _};B.exports=c},function(B,E,c){B.exports={compileProgram:c(72),defaultValue:c(73),extractAttributes:c(74),extractUniforms:c(75),generateUniformAccessObject:c(76),mapSize:c(77),mapType:c(42)}},function(B,E){(function(c){B.exports=c}).call(E,{})},function(B,E){B.exports=function(c){return c.webpackPolyfill||(c.deprecate=function(){},c.paths=[],c.children=[],c.webpackPolyfill=1),c}},function(B,E,c){var O;(function(x,_){(function(b){function m(N){throw RangeError(A[N])}function l(N,W){for(var H=N.length,tt=[];H--;)tt[H]=W(N[H]);return tt}function f(N,W){var H=N.split("@"),tt="";H.length>1&&(tt=H[0]+"@",N=H[1]),N=N.replace(L,".");var it=N.split("."),K=l(it,W).join(".");return tt+K}function o(N){for(var W,H,tt=[],it=0,K=N.length;it<K;)W=N.charCodeAt(it++),W>=55296&&W<=56319&&it<K?(H=N.charCodeAt(it++),(64512&H)==56320?tt.push(((1023&W)<<10)+(1023&H)+65536):(tt.push(W),it--)):tt.push(W);return tt}function e(N){return l(N,function(W){var H="";return W>65535&&(W-=65536,H+=U(W>>>10&1023|55296),W=56320|1023&W),H+=U(W)}).join("")}function t(N){return N-48<10?N-22:N-65<26?N-65:N-97<26?N-97:g}function i(N,W){return N+22+75*(N<26)-((W!=0)<<5)}function n(N,W,H){var tt=0;for(N=H?I(N/P):N>>1,N+=I(N/W);N>D*s>>1;tt+=g)N=I(N/D);return I(tt+(D+1)*N/(N+v))}function r(N){var W,H,tt,it,K,at,ut,mt,wt,Dt,yt=[],Tt=N.length,It=0,bt=C,kt=T;for(H=N.lastIndexOf(M),H<0&&(H=0),tt=0;tt<H;++tt)N.charCodeAt(tt)>=128&&m("not-basic"),yt.push(N.charCodeAt(tt));for(it=H>0?H+1:0;it<Tt;){for(K=It,at=1,ut=g;it>=Tt&&m("invalid-input"),mt=t(N.charCodeAt(it++)),(mt>=g||mt>I((w-It)/at))&&m("overflow"),It+=mt*at,wt=ut<=kt?a:ut>=kt+s?s:ut-kt,!(mt<wt);ut+=g)Dt=g-wt,at>I(w/Dt)&&m("overflow"),at*=Dt;W=yt.length+1,kt=n(It-K,W,K==0),I(It/W)>w-bt&&m("overflow"),bt+=I(It/W),It%=W,yt.splice(It++,0,bt)}return e(yt)}function h(N){var W,H,tt,it,K,at,ut,mt,wt,Dt,yt,Tt,It,bt,kt,Bt=[];for(N=o(N),Tt=N.length,W=C,H=0,K=T,at=0;at<Tt;++at)yt=N[at],yt<128&&Bt.push(U(yt));for(tt=it=Bt.length,it&&Bt.push(M);tt<Tt;){for(ut=w,at=0;at<Tt;++at)yt=N[at],yt>=W&&yt<ut&&(ut=yt);for(It=tt+1,ut-W>I((w-H)/It)&&m("overflow"),H+=(ut-W)*It,W=ut,at=0;at<Tt;++at)if(yt=N[at],yt<W&&++H>w&&m("overflow"),yt==W){for(mt=H,wt=g;Dt=wt<=K?a:wt>=K+s?s:wt-K,!(mt<Dt);wt+=g)kt=mt-Dt,bt=g-Dt,Bt.push(U(i(Dt+kt%bt,0))),mt=I(kt/bt);Bt.push(U(i(mt,0))),K=n(H,It,tt==it),H=0,++tt}++H,++W}return Bt.join("")}function p(N){return f(N,function(W){return R.test(W)?r(W.slice(4).toLowerCase()):W})}function u(N){return f(N,function(W){return S.test(W)?"xn--"+h(W):W})}var y=(typeof E=="object"&&E&&E.nodeType,typeof x=="object"&&x&&x.nodeType,typeof _=="object"&&_);y.global!==y&&y.window!==y&&y.self!==y||(b=y);var d,w=2147483647,g=36,a=1,s=26,v=38,P=700,T=72,C=128,M="-",R=/^xn--/,S=/[^\x20-\x7E]/,L=/[\x2E\u3002\uFF0E\uFF61]/g,A={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},D=g-a,I=Math.floor,U=String.fromCharCode;d={version:"1.3.2",ucs2:{decode:o,encode:e},decode:r,encode:h,toASCII:u,toUnicode:p},O=function(){return d}.call(E,c,E,x),O!==void 0&&(x.exports=O)})(this)}).call(E,c(144)(B),function(){return this}())},function(B,E,c){"use strict";function O(u){if(u&&u.__esModule)return u;var y={};if(u!=null)for(var d in u)Object.prototype.hasOwnProperty.call(u,d)&&(y[d]=u[d]);return y.default=u,y}function x(u){return u&&u.__esModule?u:{default:u}}function _(u,y){if(!(u instanceof y))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var b=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},m=c(78),l=x(m),f=c(69),o=x(f),e=c(79),t=O(e),i=c(43),n=x(i),r=100,h=/(#[\w\-]+)?$/,p=function(){function u(){var y=this,d=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:10;_(this,u),this.baseUrl=d,this.progress=0,this.loading=!1,this.defaultQueryString="",this._beforeMiddleware=[],this._afterMiddleware=[],this._boundLoadResource=function(g,a){return y._loadResource(g,a)},this._queue=t.queue(this._boundLoadResource,w),this._queue.pause(),this.resources={},this.onProgress=new l.default,this.onError=new l.default,this.onLoad=new l.default,this.onStart=new l.default,this.onComplete=new l.default}return u.prototype.add=function(y,d,w,g){if(Array.isArray(y)){for(var a=0;a<y.length;++a)this.add(y[a]);return this}if((typeof y=="undefined"?"undefined":b(y))==="object"&&(g=d||y.callback||y.onComplete,w=y,d=y.url,y=y.name||y.key||y.url),typeof d!="string"&&(g=w,w=d,d=y),typeof d!="string")throw new Error("No url passed to add resource to loader.");if(typeof w=="function"&&(g=w,w=null),this.loading&&(!w||!w.parentResource))throw new Error("Cannot add resources while the loader is running.");if(this.resources[y])throw new Error('Resource named "'+y+'" already exists.');if(d=this._prepareUrl(d),this.resources[y]=new n.default(y,d,w),typeof g=="function"&&this.resources[y].onAfterMiddleware.once(g),this.loading){var s=w.parentResource,v=s.progressChunk*(s.children.length+1),P=v/(s.children.length+2);s.children.push(this.resources[y]),s.progressChunk=P;for(var T=0;T<s.children.length;++T)s.children[T].progressChunk=P}return this._queue.push(this.resources[y]),this},u.prototype.pre=function(y){return this._beforeMiddleware.push(y),this},u.prototype.use=function(y){return this._afterMiddleware.push(y),this},u.prototype.reset=function(){this.progress=0,this.loading=!1,this._queue.kill(),this._queue.pause();for(var y in this.resources){var d=this.resources[y];d._onLoadBinding&&d._onLoadBinding.detach(),d.isLoading&&d.abort()}return this.resources={},this},u.prototype.load=function(y){if(typeof y=="function"&&this.onComplete.once(y),this.loading)return this;for(var d=100/this._queue._tasks.length,w=0;w<this._queue._tasks.length;++w)this._queue._tasks[w].data.progressChunk=d;return this.loading=!0,this.onStart.dispatch(this),this._queue.resume(),this},u.prototype._prepareUrl=function(y){var d=(0,o.default)(y,{strictMode:!0}),w=void 0;if(w=d.protocol||!d.path||y.indexOf("//")===0?y:this.baseUrl.length&&this.baseUrl.lastIndexOf("/")!==this.baseUrl.length-1&&y.charAt(0)!=="/"?this.baseUrl+"/"+y:this.baseUrl+y,this.defaultQueryString){var g=h.exec(w)[0];w=w.substr(0,w.length-g.length),w+=w.indexOf("?")!==-1?"&"+this.defaultQueryString:"?"+this.defaultQueryString,w+=g}return w},u.prototype._loadResource=function(y,d){var w=this;y._dequeue=d,t.eachSeries(this._beforeMiddleware,function(g,a){g.call(w,y,function(){a(y.isComplete?{}:null)})},function(){y.isComplete?w._onLoad(y):(y._onLoadBinding=y.onComplete.once(w._onLoad,w),y.load())})},u.prototype._onComplete=function(){this.loading=!1,this.onComplete.dispatch(this,this.resources)},u.prototype._onLoad=function(y){var d=this;y._onLoadBinding=null,t.eachSeries(this._afterMiddleware,function(w,g){w.call(d,y,g)},function(){y.onAfterMiddleware.dispatch(y),d.progress+=y.progressChunk,d.onProgress.dispatch(d,y),y.error?d.onError.dispatch(y.error,d,y):d.onLoad.dispatch(d,y),y._dequeue(),d._queue.idle()&&(d.progress=r,d._onComplete())})},u}();E.default=p},function(B,E,c){"use strict";function O(e){return e&&e.__esModule?e:{default:e}}function x(){return function(e,t){if(!e.data)return void t();if(e.xhr&&e.xhrType===m.default.XHR_RESPONSE_TYPE.BLOB)if(window.Blob&&typeof e.data!="string"){if(e.data.type.indexOf("image")===0){var i=function(){var r=o.createObjectURL(e.data);return e.blob=e.data,e.data=new Image,e.data.src=r,e.type=m.default.TYPE.IMAGE,e.data.onload=function(){o.revokeObjectURL(r),e.data.onload=null,t()},{v:void 0}}();if((typeof i=="undefined"?"undefined":_(i))==="object")return i.v}}else{var n=e.xhr.getResponseHeader("content-type");if(n&&n.indexOf("image")===0)return e.data=new Image,e.data.src="data:"+n+";base64,"+f.default.encodeBinary(e.xhr.responseText),e.type=m.default.TYPE.IMAGE,void(e.data.onload=function(){e.data.onload=null,t()})}t()}}E.__esModule=!0;var _=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};E.blobMiddlewareFactory=x;var b=c(43),m=O(b),l=c(80),f=O(l),o=window.URL||window.webkitURL},function(B,E,c){c(172);var O=c(21).Object;B.exports=function(x,_){return O.create(x,_)}},function(B,E,c){c(173),B.exports=c(21).Object.setPrototypeOf},function(B,E,c){c(176),c(174),c(177),c(178),B.exports=c(21).Symbol},function(B,E,c){c(175),c(179),B.exports=c(56).f("iterator")},function(B,E){B.exports=function(c){if(typeof c!="function")throw TypeError(c+" is not a function!");return c}},function(B,E){B.exports=function(){}},function(B,E,c){var O=c(13),x=c(169),_=c(168);B.exports=function(b){return function(m,l,f){var o,e=O(m),t=x(e.length),i=_(f,t);if(b&&l!=l){for(;t>i;)if(o=e[i++],o!=o)return!0}else for(;t>i;i++)if((b||i in e)&&e[i]===l)return b||i||0;return!b&&-1}}},function(B,E,c){var O=c(31),x=c(89),_=c(49);B.exports=function(b){var m=O(b),l=x.f;if(l)for(var f,o=l(b),e=_.f,t=0;o.length>t;)e.call(b,f=o[t++])&&m.push(f);return m}},function(B,E,c){B.exports=c(11).document&&document.documentElement},function(B,E,c){var O=c(82);B.exports=Object("z").propertyIsEnumerable(0)?Object:function(x){return O(x)=="String"?x.split(""):Object(x)}},function(B,E,c){var O=c(82);B.exports=Array.isArray||function(x){return O(x)=="Array"}},function(B,E,c){"use strict";var O=c(48),x=c(32),_=c(50),b={};c(16)(b,c(18)("iterator"),function(){return this}),B.exports=function(m,l,f){m.prototype=O(b,{next:x(1,f)}),_(m,l+" Iterator")}},function(B,E){B.exports=function(c,O){return{value:O,done:!!c}}},function(B,E,c){var O=c(31),x=c(13);B.exports=function(_,b){for(var m,l=x(_),f=O(l),o=f.length,e=0;o>e;)if(l[m=f[e++]]===b)return m}},function(B,E,c){var O=c(33)("meta"),x=c(22),_=c(12),b=c(17).f,m=0,l=Object.isExtensible||function(){return!0},f=!c(30)(function(){return l(Object.preventExtensions({}))}),o=function(r){b(r,O,{value:{i:"O"+ ++m,w:{}}})},e=function(r,h){if(!x(r))return typeof r=="symbol"?r:(typeof r=="string"?"S":"P")+r;if(!_(r,O)){if(!l(r))return"F";if(!h)return"E";o(r)}return r[O].i},t=function(r,h){if(!_(r,O)){if(!l(r))return!0;if(!h)return!1;o(r)}return r[O].w},i=function(r){return f&&n.NEED&&l(r)&&!_(r,O)&&o(r),r},n=B.exports={KEY:O,NEED:!1,fastKey:e,getWeak:t,onFreeze:i}},function(B,E,c){var O=c(17),x=c(20),_=c(31);B.exports=c(15)?Object.defineProperties:function(b,m){x(b);for(var l,f=_(m),o=f.length,e=0;o>e;)O.f(b,l=f[e++],m[l]);return b}},function(B,E,c){var O=c(13),x=c(88).f,_={}.toString,b=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],m=function(l){try{return x(l)}catch(f){return b.slice()}};B.exports.f=function(l){return b&&_.call(l)=="[object Window]"?m(l):x(O(l))}},function(B,E,c){var O=c(12),x=c(170),_=c(51)("IE_PROTO"),b=Object.prototype;B.exports=Object.getPrototypeOf||function(m){return m=x(m),O(m,_)?m[_]:typeof m.constructor=="function"&&m instanceof m.constructor?m.constructor.prototype:m instanceof Object?b:null}},function(B,E,c){var O=c(22),x=c(20),_=function(b,m){if(x(b),!O(m)&&m!==null)throw TypeError(m+": can't set as prototype!")};B.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(b,m,l){try{l=c(83)(Function.call,c(87).f(Object.prototype,"__proto__").set,2),l(b,[]),m=!(b instanceof Array)}catch(f){m=!0}return function(f,o){return _(f,o),m?f.__proto__=o:l(f,o),f}}({},!1):void 0),check:_}},function(B,E,c){var O=c(53),x=c(44);B.exports=function(_){return function(b,m){var l,f,o=String(x(b)),e=O(m),t=o.length;return e<0||e>=t?_?"":void 0:(l=o.charCodeAt(e),l<55296||l>56319||e+1===t||(f=o.charCodeAt(e+1))<56320||f>57343?_?o.charAt(e):l:_?o.slice(e,e+2):(l-55296<<10)+(f-56320)+65536)}}},function(B,E,c){var O=c(53),x=Math.max,_=Math.min;B.exports=function(b,m){return b=O(b),b<0?x(b+m,0):_(b,m)}},function(B,E,c){var O=c(53),x=Math.min;B.exports=function(_){return _>0?x(O(_),9007199254740991):0}},function(B,E,c){var O=c(44);B.exports=function(x){return Object(O(x))}},function(B,E,c){"use strict";var O=c(153),x=c(160),_=c(46),b=c(13);B.exports=c(86)(Array,"Array",function(m,l){this._t=b(m),this._i=0,this._k=l},function(){var m=this._t,l=this._k,f=this._i++;return!m||f>=m.length?(this._t=void 0,x(1)):l=="keys"?x(0,f):l=="values"?x(0,m[f]):x(0,[f,m[f]])},"values"),_.Arguments=_.Array,O("keys"),O("values"),O("entries")},function(B,E,c){var O=c(29);O(O.S,"Object",{create:c(48)})},function(B,E,c){var O=c(29);O(O.S,"Object",{setPrototypeOf:c(166).set})},function(B,E){},function(B,E,c){"use strict";var O=c(167)(!0);c(86)(String,"String",function(x){this._t=String(x),this._i=0},function(){var x,_=this._t,b=this._i;return b>=_.length?{value:void 0,done:!0}:(x=O(_,b),this._i+=x.length,{value:x,done:!1})})},function(B,E,c){"use strict";var O=c(11),x=c(12),_=c(15),b=c(29),m=c(91),l=c(162).KEY,f=c(30),o=c(52),e=c(50),t=c(33),i=c(18),n=c(56),r=c(55),h=c(161),p=c(155),u=c(158),y=c(20),d=c(13),w=c(54),g=c(32),a=c(48),s=c(164),v=c(87),P=c(17),T=c(31),C=v.f,M=P.f,R=s.f,S=O.Symbol,L=O.JSON,A=L&&L.stringify,D="prototype",I=i("_hidden"),U=i("toPrimitive"),N={}.propertyIsEnumerable,W=o("symbol-registry"),H=o("symbols"),tt=o("op-symbols"),it=Object[D],K=typeof S=="function",at=O.QObject,ut=!at||!at[D]||!at[D].findChild,mt=_&&f(function(){return a(M({},"a",{get:function(){return M(this,"a",{value:7}).a}})).a!=7})?function(_t,Et,Ot){var zt=C(it,Et);zt&&delete it[Et],M(_t,Et,Ot),zt&&_t!==it&&M(it,Et,zt)}:M,wt=function(_t){var Et=H[_t]=a(S[D]);return Et._k=_t,Et},Dt=K&&typeof S.iterator=="symbol"?function(_t){return typeof _t=="symbol"}:function(_t){return _t instanceof S},yt=function(_t,Et,Ot){return _t===it&&yt(tt,Et,Ot),y(_t),Et=w(Et,!0),y(Ot),x(H,Et)?(Ot.enumerable?(x(_t,I)&&_t[I][Et]&&(_t[I][Et]=!1),Ot=a(Ot,{enumerable:g(0,!1)})):(x(_t,I)||M(_t,I,g(1,{})),_t[I][Et]=!0),mt(_t,Et,Ot)):M(_t,Et,Ot)},Tt=function(_t,Et){y(_t);for(var Ot,zt=p(Et=d(Et)),Zt=0,j=zt.length;j>Zt;)yt(_t,Ot=zt[Zt++],Et[Ot]);return _t},It=function(_t,Et){return Et===void 0?a(_t):Tt(a(_t),Et)},bt=function(_t){var Et=N.call(this,_t=w(_t,!0));return!(this===it&&x(H,_t)&&!x(tt,_t))&&(!(Et||!x(this,_t)||!x(H,_t)||x(this,I)&&this[I][_t])||Et)},kt=function(_t,Et){if(_t=d(_t),Et=w(Et,!0),_t!==it||!x(H,Et)||x(tt,Et)){var Ot=C(_t,Et);return!Ot||!x(H,Et)||x(_t,I)&&_t[I][Et]||(Ot.enumerable=!0),Ot}},Bt=function(_t){for(var Et,Ot=R(d(_t)),zt=[],Zt=0;Ot.length>Zt;)x(H,Et=Ot[Zt++])||Et==I||Et==l||zt.push(Et);return zt},Ut=function(_t){for(var Et,Ot=_t===it,zt=R(Ot?tt:d(_t)),Zt=[],j=0;zt.length>j;)!x(H,Et=zt[j++])||Ot&&!x(it,Et)||Zt.push(H[Et]);return Zt};K||(S=function(){if(this instanceof S)throw TypeError("Symbol is not a constructor!");var _t=t(arguments.length>0?arguments[0]:void 0),Et=function(Ot){this===it&&Et.call(tt,Ot),x(this,I)&&x(this[I],_t)&&(this[I][_t]=!1),mt(this,_t,g(1,Ot))};return _&&ut&&mt(it,_t,{configurable:!0,set:Et}),wt(_t)},m(S[D],"toString",function(){return this._k}),v.f=kt,P.f=yt,c(88).f=s.f=Bt,c(49).f=bt,c(89).f=Ut,_&&!c(47)&&m(it,"propertyIsEnumerable",bt,!0),n.f=function(_t){return wt(i(_t))}),b(b.G+b.W+b.F*!K,{Symbol:S});for(var Vt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),jt=0;Vt.length>jt;)i(Vt[jt++]);for(var Vt=T(i.store),jt=0;Vt.length>jt;)r(Vt[jt++]);b(b.S+b.F*!K,"Symbol",{for:function(_t){return x(W,_t+="")?W[_t]:W[_t]=S(_t)},keyFor:function(_t){if(Dt(_t))return h(W,_t);throw TypeError(_t+" is not a symbol!")},useSetter:function(){ut=!0},useSimple:function(){ut=!1}}),b(b.S+b.F*!K,"Object",{create:It,defineProperty:yt,defineProperties:Tt,getOwnPropertyDescriptor:kt,getOwnPropertyNames:Bt,getOwnPropertySymbols:Ut}),L&&b(b.S+b.F*(!K||f(function(){var _t=S();return A([_t])!="[null]"||A({a:_t})!="{}"||A(Object(_t))!="{}"})),"JSON",{stringify:function(_t){if(_t!==void 0&&!Dt(_t)){for(var Et,Ot,zt=[_t],Zt=1;arguments.length>Zt;)zt.push(arguments[Zt++]);return Et=zt[1],typeof Et=="function"&&(Ot=Et),!Ot&&u(Et)||(Et=function(j,V){if(Ot&&(V=Ot.call(this,j,V)),!Dt(V))return V}),zt[1]=Et,A.apply(L,zt)}}}),S[D][U]||c(16)(S[D],U,S[D].valueOf),e(S,"Symbol"),e(Math,"Math",!0),e(O.JSON,"JSON",!0)},function(B,E,c){c(55)("asyncIterator")},function(B,E,c){c(55)("observable")},function(B,E,c){c(171);for(var O=c(11),x=c(16),_=c(46),b=c(18)("toStringTag"),m=["NodeList","DOMTokenList","MediaList","StyleSheetList","CSSRuleList"],l=0;l<5;l++){var f=m[l],o=O[f],e=o&&o.prototype;e&&!e[b]&&x(e,b,f),_[f]=_.Array}},function(B,E){"use strict";function c(b){if(b==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(b)}function O(){try{if(!Object.assign)return!1;var b=new String("abc");if(b[5]="de",Object.getOwnPropertyNames(b)[0]==="5")return!1;for(var m={},l=0;l<10;l++)m["_"+String.fromCharCode(l)]=l;var f=Object.getOwnPropertyNames(m).map(function(e){return m[e]});if(f.join("")!=="0123456789")return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),Object.keys(Object.assign({},o)).join("")==="abcdefghijklmnopqrst"}catch(e){return!1}}var x=Object.prototype.hasOwnProperty,_=Object.prototype.propertyIsEnumerable;B.exports=O()?Object.assign:function(b,m){for(var l,f,o=c(b),e=1;e<arguments.length;e++){l=Object(arguments[e]);for(var t in l)x.call(l,t)&&(o[t]=l[t]);if(Object.getOwnPropertySymbols){f=Object.getOwnPropertySymbols(l);for(var i=0;i<f.length;i++)_.call(l,f[i])&&(o[f[i]]=l[f[i]])}}return o}},function(B,E,c){"use strict";function O(g){return g&&g.__esModule?g:{default:g}}function x(g){if(g&&g.__esModule)return g;var a={};if(g!=null)for(var s in g)Object.prototype.hasOwnProperty.call(g,s)&&(a[s]=g[s]);return a.default=g,a}function _(g,a){if(!(g instanceof a))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var b=c(1),m=x(b),l=c(28),f=O(l),o=c(92),e=O(o);Object.assign(m.DisplayObject.prototype,e.default);var t=9,i=100,n=0,r=0,h=2,p=1,u=-1e3,y=-1e3,d=2,w=function(){function g(a){_(this,g),!f.default.tablet&&!f.default.phone||navigator.isCocoonJS||this.createTouchHook();var s=document.createElement("div");s.style.width=i+"px",s.style.height=i+"px",s.style.position="absolute",s.style.top=n+"px",s.style.left=r+"px",s.style.zIndex=h,this.div=s,this.pool=[],this.renderId=0,this.debug=!1,this.renderer=a,this.children=[],this._onKeyDown=this._onKeyDown.bind(this),this._onMouseMove=this._onMouseMove.bind(this),this.isActive=!1,this.isMobileAccessabillity=!1,window.addEventListener("keydown",this._onKeyDown,!1)}return g.prototype.createTouchHook=function(){var a=this,s=document.createElement("button");s.style.width=p+"px",s.style.height=p+"px",s.style.position="absolute",s.style.top=u+"px",s.style.left=y+"px",s.style.zIndex=d,s.style.backgroundColor="#FF0000",s.title="HOOK DIV",s.addEventListener("focus",function(){a.isMobileAccessabillity=!0,a.activate(),document.body.removeChild(s)}),document.body.appendChild(s)},g.prototype.activate=function(){this.isActive||(this.isActive=!0,window.document.addEventListener("mousemove",this._onMouseMove,!0),window.removeEventListener("keydown",this._onKeyDown,!1),this.renderer.on("postrender",this.update,this),this.renderer.view.parentNode&&this.renderer.view.parentNode.appendChild(this.div))},g.prototype.deactivate=function(){this.isActive&&!this.isMobileAccessabillity&&(this.isActive=!1,window.document.removeEventListener("mousemove",this._onMouseMove),window.addEventListener("keydown",this._onKeyDown,!1),this.renderer.off("postrender",this.update),this.div.parentNode&&this.div.parentNode.removeChild(this.div))},g.prototype.updateAccessibleObjects=function(a){if(a.visible){a.accessible&&a.interactive&&(a._accessibleActive||this.addChild(a),a.renderId=this.renderId);for(var s=a.children,v=s.length-1;v>=0;v--)this.updateAccessibleObjects(s[v])}},g.prototype.update=function(){if(this.renderer.renderingToScreen){this.updateAccessibleObjects(this.renderer._lastObjectRendered);var a=this.renderer.view.getBoundingClientRect(),s=a.width/this.renderer.width,v=a.height/this.renderer.height,P=this.div;P.style.left=a.left+"px",P.style.top=a.top+"px",P.style.width=this.renderer.width+"px",P.style.height=this.renderer.height+"px";for(var T=0;T<this.children.length;T++){var C=this.children[T];if(C.renderId!==this.renderId)C._accessibleActive=!1,m.utils.removeItems(this.children,T,1),this.div.removeChild(C._accessibleDiv),this.pool.push(C._accessibleDiv),C._accessibleDiv=null,T--,this.children.length===0&&this.deactivate();else{P=C._accessibleDiv;var M=C.hitArea,R=C.worldTransform;C.hitArea?(P.style.left=(R.tx+M.x*R.a)*s+"px",P.style.top=(R.ty+M.y*R.d)*v+"px",P.style.width=M.width*R.a*s+"px",P.style.height=M.height*R.d*v+"px"):(M=C.getBounds(),this.capHitArea(M),P.style.left=M.x*s+"px",P.style.top=M.y*v+"px",P.style.width=M.width*s+"px",P.style.height=M.height*v+"px")}}this.renderId++}},g.prototype.capHitArea=function(a){a.x<0&&(a.width+=a.x,a.x=0),a.y<0&&(a.height+=a.y,a.y=0),a.x+a.width>this.renderer.width&&(a.width=this.renderer.width-a.x),a.y+a.height>this.renderer.height&&(a.height=this.renderer.height-a.y)},g.prototype.addChild=function(a){var s=this.pool.pop();s||(s=document.createElement("button"),s.style.width=i+"px",s.style.height=i+"px",s.style.backgroundColor=this.debug?"rgba(255,0,0,0.5)":"transparent",s.style.position="absolute",s.style.zIndex=h,s.style.borderStyle="none",s.addEventListener("click",this._onClick.bind(this)),s.addEventListener("focus",this._onFocus.bind(this)),s.addEventListener("focusout",this._onFocusOut.bind(this))),a.accessibleTitle?s.title=a.accessibleTitle:a.accessibleTitle||a.accessibleHint||(s.title="displayObject "+this.tabIndex),a.accessibleHint&&s.setAttribute("aria-label",a.accessibleHint),a._accessibleActive=!0,a._accessibleDiv=s,s.displayObject=a,this.children.push(a),this.div.appendChild(a._accessibleDiv),a._accessibleDiv.tabIndex=a.tabIndex},g.prototype._onClick=function(a){var s=this.renderer.plugins.interaction;s.dispatchEvent(a.target.displayObject,"click",s.eventData)},g.prototype._onFocus=function(a){var s=this.renderer.plugins.interaction;s.dispatchEvent(a.target.displayObject,"mouseover",s.eventData)},g.prototype._onFocusOut=function(a){var s=this.renderer.plugins.interaction;s.dispatchEvent(a.target.displayObject,"mouseout",s.eventData)},g.prototype._onKeyDown=function(a){a.keyCode===t&&this.activate()},g.prototype._onMouseMove=function(){this.deactivate()},g.prototype.destroy=function(){this.div=null;for(var a=0;a<this.children.length;a++)this.children[a].div=null;window.document.removeEventListener("mousemove",this._onMouseMove),window.removeEventListener("keydown",this._onKeyDown),this.pool=null,this.children=null,this.renderer=null},g}();E.default=w,m.WebGLRenderer.registerPlugin("accessibility",w),m.CanvasRenderer.registerPlugin("accessibility",w)},function(B,E,c){"use strict";function O(b){return b&&b.__esModule?b:{default:b}}E.__esModule=!0;var x=c(92);Object.defineProperty(E,"accessibleTarget",{enumerable:!0,get:function(){return O(x).default}});var _=c(181);Object.defineProperty(E,"AccessibilityManager",{enumerable:!0,get:function(){return O(_).default}})},function(B,E,c){"use strict";function O(L){return L&&L.__esModule?L:{default:L}}function x(L,A){if(!(L instanceof A))throw new TypeError("Cannot call a class as a function")}function _(L,A){if(!L)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!A||typeof A!="object"&&typeof A!="function"?L:A}function b(L,A){if(typeof A!="function"&&A!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof A);L.prototype=Object.create(A&&A.prototype,{constructor:{value:L,enumerable:!1,writable:!0,configurable:!0}}),A&&(Object.setPrototypeOf?Object.setPrototypeOf(L,A):L.__proto__=A)}E.__esModule=!0;var m=c(34),l=O(m),f=c(65),o=O(f),e=c(26),t=O(e),i=c(96),n=O(i),r=c(63),h=O(r),p=c(4),u=c(3),y=c(2),d=c(57),w=O(d),g=c(185),a=O(g),s=c(36),v=O(s),P=void 0,T=new p.Matrix,C=new p.Point,M=new Float32Array(4),R=new Float32Array(4),S=function(L){function A(){x(this,A);var D=_(this,L.call(this));return D.fillAlpha=1,D.lineWidth=0,D.lineColor=0,D.graphicsData=[],D.tint=16777215,D._prevTint=16777215,D.blendMode=y.BLEND_MODES.NORMAL,D.currentPath=null,D._webGL={},D.isMask=!1,D.boundsPadding=0,D._localBounds=new w.default,D.dirty=0,D.fastRectDirty=-1,D.clearDirty=0,D.boundsDirty=-1,D.cachedSpriteDirty=!1,D._spriteRect=null,D._fastRect=!1,D}return b(A,L),A.prototype.clone=function(){var I=new A;I.renderable=this.renderable,I.fillAlpha=this.fillAlpha,I.lineWidth=this.lineWidth,I.lineColor=this.lineColor,I.tint=this.tint,I.blendMode=this.blendMode,I.isMask=this.isMask,I.boundsPadding=this.boundsPadding,I.dirty=0,I.cachedSpriteDirty=this.cachedSpriteDirty;for(var U=0;U<this.graphicsData.length;++U)I.graphicsData.push(this.graphicsData[U].clone());return I.currentPath=I.graphicsData[I.graphicsData.length-1],I.updateLocalBounds(),I},A.prototype.lineStyle=function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,U=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1;if(this.lineWidth=D,this.lineColor=I,this.lineAlpha=U,this.currentPath)if(this.currentPath.shape.points.length){var N=new p.Polygon(this.currentPath.shape.points.slice(-2));N.closed=!1,this.drawShape(N)}else this.currentPath.lineWidth=this.lineWidth,this.currentPath.lineColor=this.lineColor,this.currentPath.lineAlpha=this.lineAlpha;return this},A.prototype.moveTo=function(D,I){var U=new p.Polygon([D,I]);return U.closed=!1,this.drawShape(U),this},A.prototype.lineTo=function(D,I){return this.currentPath.shape.points.push(D,I),this.dirty++,this},A.prototype.quadraticCurveTo=function(D,I,U,N){this.currentPath?this.currentPath.shape.points.length===0&&(this.currentPath.shape.points=[0,0]):this.moveTo(0,0);var W=20,H=this.currentPath.shape.points,tt=0,it=0;H.length===0&&this.moveTo(0,0);for(var K=H[H.length-2],at=H[H.length-1],ut=1;ut<=W;++ut){var mt=ut/W;tt=K+(D-K)*mt,it=at+(I-at)*mt,H.push(tt+(D+(U-D)*mt-tt)*mt,it+(I+(N-I)*mt-it)*mt)}return this.dirty++,this},A.prototype.bezierCurveTo=function(D,I,U,N,W,H){this.currentPath?this.currentPath.shape.points.length===0&&(this.currentPath.shape.points=[0,0]):this.moveTo(0,0);var tt=this.currentPath.shape.points,it=tt[tt.length-2],K=tt[tt.length-1];return tt.length-=2,(0,a.default)(it,K,D,I,U,N,W,H,tt),this.dirty++,this},A.prototype.arcTo=function(D,I,U,N,W){this.currentPath?this.currentPath.shape.points.length===0&&this.currentPath.shape.points.push(D,I):this.moveTo(D,I);var H=this.currentPath.shape.points,tt=H[H.length-2],it=H[H.length-1],K=it-I,at=tt-D,ut=N-I,mt=U-D,wt=Math.abs(K*mt-at*ut);if(wt<1e-8||W===0)H[H.length-2]===D&&H[H.length-1]===I||H.push(D,I);else{var Dt=K*K+at*at,yt=ut*ut+mt*mt,Tt=K*ut+at*mt,It=W*Math.sqrt(Dt)/wt,bt=W*Math.sqrt(yt)/wt,kt=It*Tt/Dt,Bt=bt*Tt/yt,Ut=It*mt+bt*at,Vt=It*ut+bt*K,jt=at*(bt+kt),_t=K*(bt+kt),Et=mt*(It+Bt),Ot=ut*(It+Bt),zt=Math.atan2(_t-Vt,jt-Ut),Zt=Math.atan2(Ot-Vt,Et-Ut);this.arc(Ut+D,Vt+I,W,zt,Zt,at*ut>mt*K)}return this.dirty++,this},A.prototype.arc=function(D,I,U,N,W){var H=arguments.length>5&&arguments[5]!==void 0&&arguments[5];if(N===W)return this;!H&&W<=N?W+=2*Math.PI:H&&N<=W&&(N+=2*Math.PI);var tt=W-N,it=40*Math.ceil(Math.abs(tt)/(2*Math.PI));if(tt===0)return this;var K=D+Math.cos(N)*U,at=I+Math.sin(N)*U,ut=this.currentPath?this.currentPath.shape.points:null;ut?ut[ut.length-2]===K&&ut[ut.length-1]===at||ut.push(K,at):(this.moveTo(K,at),ut=this.currentPath.shape.points);for(var mt=tt/(2*it),wt=2*mt,Dt=Math.cos(mt),yt=Math.sin(mt),Tt=it-1,It=Tt%1/Tt,bt=0;bt<=Tt;++bt){var kt=bt+It*bt,Bt=mt+N+wt*kt,Ut=Math.cos(Bt),Vt=-Math.sin(Bt);ut.push((Dt*Ut+yt*Vt)*U+D,(Dt*-Vt+yt*Ut)*U+I)}return this.dirty++,this},A.prototype.beginFill=function(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return this.filling=!0,this.fillColor=D,this.fillAlpha=I,this.currentPath&&this.currentPath.shape.points.length<=2&&(this.currentPath.fill=this.filling,this.currentPath.fillColor=this.fillColor,this.currentPath.fillAlpha=this.fillAlpha),this},A.prototype.endFill=function(){return this.filling=!1,this.fillColor=null,this.fillAlpha=1,this},A.prototype.drawRect=function(D,I,U,N){return this.drawShape(new p.Rectangle(D,I,U,N)),this},A.prototype.drawRoundedRect=function(D,I,U,N,W){return this.drawShape(new p.RoundedRectangle(D,I,U,N,W)),this},A.prototype.drawCircle=function(D,I,U){return this.drawShape(new p.Circle(D,I,U)),this},A.prototype.drawEllipse=function(D,I,U,N){return this.drawShape(new p.Ellipse(D,I,U,N)),this},A.prototype.drawPolygon=function(D){var I=D,U=!0;if(I instanceof p.Polygon&&(U=I.closed,I=I.points),!Array.isArray(I)){I=new Array(arguments.length);for(var N=0;N<I.length;++N)I[N]=arguments[N]}var W=new p.Polygon(I);return W.closed=U,this.drawShape(W),this},A.prototype.clear=function(){return(this.lineWidth||this.filling||this.graphicsData.length>0)&&(this.lineWidth=0,this.filling=!1,this.boundsDirty=-1,this.dirty++,this.clearDirty++,this.graphicsData.length=0),this.currentPath=null,this._spriteRect=null,this},A.prototype.isFastRect=function(){return this.graphicsData.length===1&&this.graphicsData[0].shape.type===y.SHAPES.RECT&&!this.graphicsData[0].lineWidth},A.prototype._renderWebGL=function(D){this.dirty!==this.fastRectDirty&&(this.fastRectDirty=this.dirty,this._fastRect=this.isFastRect()),this._fastRect?this._renderSpriteRect(D):(D.setObjectRenderer(D.plugins.graphics),D.plugins.graphics.render(this))},A.prototype._renderSpriteRect=function(D){var I=this.graphicsData[0].shape;if(!this._spriteRect){if(!A._SPRITE_TEXTURE){A._SPRITE_TEXTURE=o.default.create(10,10);var U=document.createElement("canvas");U.width=10,U.height=10;var N=U.getContext("2d");N.fillStyle="white",N.fillRect(0,0,10,10),A._SPRITE_TEXTURE=t.default.fromCanvas(U)}this._spriteRect=new h.default(A._SPRITE_TEXTURE)}if(this.tint===16777215)this._spriteRect.tint=this.graphicsData[0].fillColor;else{var W=M,H=R;(0,u.hex2rgb)(this.graphicsData[0].fillColor,W),(0,u.hex2rgb)(this.tint,H),W[0]*=H[0],W[1]*=H[1],W[2]*=H[2],this._spriteRect.tint=(0,u.rgb2hex)(W)}this._spriteRect.alpha=this.graphicsData[0].fillAlpha,this._spriteRect.worldAlpha=this.worldAlpha*this._spriteRect.alpha,A._SPRITE_TEXTURE._frame.width=I.width,A._SPRITE_TEXTURE._frame.height=I.height,this._spriteRect.transform.worldTransform=this.transform.worldTransform,this._spriteRect.anchor.set(-I.x/I.width,-I.y/I.height),this._spriteRect._onAnchorUpdate(),this._spriteRect._renderWebGL(D)},A.prototype._renderCanvas=function(D){this.isMask!==!0&&D.plugins.graphics.render(this)},A.prototype._calculateBounds=function(){this.boundsDirty!==this.dirty&&(this.boundsDirty=this.dirty,this.updateLocalBounds(),this.cachedSpriteDirty=!0);var D=this._localBounds;this._bounds.addFrame(this.transform,D.minX,D.minY,D.maxX,D.maxY)},A.prototype.containsPoint=function(D){this.worldTransform.applyInverse(D,C);for(var I=this.graphicsData,U=0;U<I.length;++U){var N=I[U];if(N.fill&&N.shape&&N.shape.contains(C.x,C.y))return!0}return!1},A.prototype.updateLocalBounds=function(){var D=1/0,I=-(1/0),U=1/0,N=-(1/0);if(this.graphicsData.length)for(var W=0,H=0,tt=0,it=0,K=0,at=0;at<this.graphicsData.length;at++){var ut=this.graphicsData[at],mt=ut.type,wt=ut.lineWidth;if(W=ut.shape,mt===y.SHAPES.RECT||mt===y.SHAPES.RREC)H=W.x-wt/2,tt=W.y-wt/2,it=W.width+wt,K=W.height+wt,D=H<D?H:D,I=H+it>I?H+it:I,U=tt<U?tt:U,N=tt+K>N?tt+K:N;else if(mt===y.SHAPES.CIRC)H=W.x,tt=W.y,it=W.radius+wt/2,K=W.radius+wt/2,D=H-it<D?H-it:D,I=H+it>I?H+it:I,U=tt-K<U?tt-K:U,N=tt+K>N?tt+K:N;else if(mt===y.SHAPES.ELIP)H=W.x,tt=W.y,it=W.width+wt/2,K=W.height+wt/2,D=H-it<D?H-it:D,I=H+it>I?H+it:I,U=tt-K<U?tt-K:U,N=tt+K>N?tt+K:N;else for(var Dt=W.points,yt=0,Tt=0,It=0,bt=0,kt=0,Bt=0,Ut=0,Vt=0,jt=0;jt+2<Dt.length;jt+=2)H=Dt[jt],tt=Dt[jt+1],yt=Dt[jt+2],Tt=Dt[jt+3],It=Math.abs(yt-H),bt=Math.abs(Tt-tt),K=wt,it=Math.sqrt(It*It+bt*bt),it<1e-9||(kt=(K/it*bt+It)/2,Bt=(K/it*It+bt)/2,Ut=(yt+H)/2,Vt=(Tt+tt)/2,D=Ut-kt<D?Ut-kt:D,I=Ut+kt>I?Ut+kt:I,U=Vt-Bt<U?Vt-Bt:U,N=Vt+Bt>N?Vt+Bt:N)}else D=0,I=0,U=0,N=0;var _t=this.boundsPadding;this._localBounds.minX=D-_t,this._localBounds.maxX=I+2*_t,this._localBounds.minY=U-_t,this._localBounds.maxY=N+2*_t},A.prototype.drawShape=function(D){this.currentPath&&this.currentPath.shape.points.length<=2&&this.graphicsData.pop(),this.currentPath=null;var I=new n.default(this.lineWidth,this.lineColor,this.lineAlpha,this.fillColor,this.fillAlpha,this.filling,D);return this.graphicsData.push(I),I.type===y.SHAPES.POLY&&(I.shape.closed=I.shape.closed||this.filling,this.currentPath=I),this.dirty++,I},A.prototype.generateCanvasTexture=function(D){var I=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,U=this.getLocalBounds(),N=o.default.create(U.width,U.height,D,I);P||(P=new v.default),T.tx=-U.x,T.ty=-U.y,P.render(this,N,!1,T);var W=t.default.fromCanvas(N.baseTexture._canvasRenderTarget.canvas,D);return W.baseTexture.resolution=I,W.baseTexture.update(),W},A.prototype.closePath=function(){var D=this.currentPath;return D&&D.shape&&D.shape.close(),this},A.prototype.addHole=function(){var D=this.graphicsData.pop();return this.currentPath=this.graphicsData[this.graphicsData.length-1],this.currentPath.addHole(D.shape),this.currentPath=null,this},A.prototype.destroy=function(D){L.prototype.destroy.call(this,D);for(var I=0;I<this.graphicsData.length;++I)this.graphicsData[I].destroy();for(var U in this._webgl)for(var N=0;N<this._webgl[U].data.length;++N)this._webgl[U].data[N].destroy();this._spriteRect&&this._spriteRect.destroy(),this.graphicsData=null,this.currentPath=null,this._webgl=null,this._localBounds=null},A}(l.default);E.default=S,S._SPRITE_TEXTURE=null},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(36),b=O(_),m=c(2),l=function(){function f(o){x(this,f),this.renderer=o}return f.prototype.render=function(o){var e=this.renderer,t=e.context,i=o.worldAlpha,n=o.transform.worldTransform,r=e.resolution;this._prevTint!==this.tint&&(this.dirty=!0),t.setTransform(n.a*r,n.b*r,n.c*r,n.d*r,n.tx*r,n.ty*r),o.dirty&&(this.updateGraphicsTint(o),o.dirty=!1),e.setBlendMode(o.blendMode);for(var h=0;h<o.graphicsData.length;h++){var p=o.graphicsData[h],u=p.shape,y=p._fillTint,d=p._lineTint;if(t.lineWidth=p.lineWidth,p.type===m.SHAPES.POLY){t.beginPath(),this.renderPolygon(u.points,u.closed,t);for(var w=0;w<p.holes.length;w++)this.renderPolygon(p.holes[w].points,!0,t);p.fill&&(t.globalAlpha=p.fillAlpha*i,t.fillStyle="#"+("00000"+(0|y).toString(16)).substr(-6),t.fill()),p.lineWidth&&(t.globalAlpha=p.lineAlpha*i,t.strokeStyle="#"+("00000"+(0|d).toString(16)).substr(-6),t.stroke())}else if(p.type===m.SHAPES.RECT)(p.fillColor||p.fillColor===0)&&(t.globalAlpha=p.fillAlpha*i,t.fillStyle="#"+("00000"+(0|y).toString(16)).substr(-6),t.fillRect(u.x,u.y,u.width,u.height)),p.lineWidth&&(t.globalAlpha=p.lineAlpha*i,t.strokeStyle="#"+("00000"+(0|d).toString(16)).substr(-6),t.strokeRect(u.x,u.y,u.width,u.height));else if(p.type===m.SHAPES.CIRC)t.beginPath(),t.arc(u.x,u.y,u.radius,0,2*Math.PI),t.closePath(),p.fill&&(t.globalAlpha=p.fillAlpha*i,t.fillStyle="#"+("00000"+(0|y).toString(16)).substr(-6),t.fill()),p.lineWidth&&(t.globalAlpha=p.lineAlpha*i,t.strokeStyle="#"+("00000"+(0|d).toString(16)).substr(-6),t.stroke());else if(p.type===m.SHAPES.ELIP){var g=2*u.width,a=2*u.height,s=u.x-g/2,v=u.y-a/2;t.beginPath();var P=.5522848,T=g/2*P,C=a/2*P,M=s+g,R=v+a,S=s+g/2,L=v+a/2;t.moveTo(s,L),t.bezierCurveTo(s,L-C,S-T,v,S,v),t.bezierCurveTo(S+T,v,M,L-C,M,L),t.bezierCurveTo(M,L+C,S+T,R,S,R),t.bezierCurveTo(S-T,R,s,L+C,s,L),t.closePath(),p.fill&&(t.globalAlpha=p.fillAlpha*i,t.fillStyle="#"+("00000"+(0|y).toString(16)).substr(-6),t.fill()),p.lineWidth&&(t.globalAlpha=p.lineAlpha*i,t.strokeStyle="#"+("00000"+(0|d).toString(16)).substr(-6),t.stroke())}else if(p.type===m.SHAPES.RREC){var A=u.x,D=u.y,I=u.width,U=u.height,N=u.radius,W=Math.min(I,U)/2|0;N=N>W?W:N,t.beginPath(),t.moveTo(A,D+N),t.lineTo(A,D+U-N),t.quadraticCurveTo(A,D+U,A+N,D+U),t.lineTo(A+I-N,D+U),t.quadraticCurveTo(A+I,D+U,A+I,D+U-N),t.lineTo(A+I,D+N),t.quadraticCurveTo(A+I,D,A+I-N,D),t.lineTo(A+N,D),t.quadraticCurveTo(A,D,A,D+N),t.closePath(),(p.fillColor||p.fillColor===0)&&(t.globalAlpha=p.fillAlpha*i,t.fillStyle="#"+("00000"+(0|y).toString(16)).substr(-6),t.fill()),p.lineWidth&&(t.globalAlpha=p.lineAlpha*i,t.strokeStyle="#"+("00000"+(0|d).toString(16)).substr(-6),t.stroke())}}},f.prototype.updateGraphicsTint=function(o){o._prevTint=o.tint;for(var e=(o.tint>>16&255)/255,t=(o.tint>>8&255)/255,i=(255&o.tint)/255,n=0;n<o.graphicsData.length;++n){var r=o.graphicsData[n],h=0|r.fillColor,p=0|r.lineColor;r._fillTint=((h>>16&255)/255*e*255<<16)+((h>>8&255)/255*t*255<<8)+(255&h)/255*i*255,r._lineTint=((p>>16&255)/255*e*255<<16)+((p>>8&255)/255*t*255<<8)+(255&p)/255*i*255}},f.prototype.renderPolygon=function(o,e,t){t.moveTo(o[0],o[1]);for(var i=1;i<o.length/2;++i)t.lineTo(o[2*i],o[2*i+1]);e&&t.closePath()},f.prototype.destroy=function(){this.renderer=null},f}();E.default=l,b.default.registerPlugin("graphics",l)},function(B,E){"use strict";function c(O,x,_,b,m,l,f,o){var e=arguments.length>8&&arguments[8]!==void 0?arguments[8]:[],t=20,i=0,n=0,r=0,h=0,p=0;e.push(O,x);for(var u=1,y=0;u<=t;++u)y=u/t,i=1-y,n=i*i,r=n*i,h=y*y,p=h*y,e.push(r*O+3*n*y*_+3*i*h*m+p*f,r*x+3*n*y*b+3*i*h*l+p*o);return e}E.__esModule=!0,E.default=c},function(B,E,c){"use strict";function O(P){return P&&P.__esModule?P:{default:P}}function x(P,T){if(!(P instanceof T))throw new TypeError("Cannot call a class as a function")}function _(P,T){if(!P)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!T||typeof T!="object"&&typeof T!="function"?P:T}function b(P,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof T);P.prototype=Object.create(T&&T.prototype,{constructor:{value:P,enumerable:!1,writable:!0,configurable:!0}}),T&&(Object.setPrototypeOf?Object.setPrototypeOf(P,T):P.__proto__=T)}E.__esModule=!0;var m=c(3),l=c(2),f=c(37),o=O(f),e=c(62),t=O(e),i=c(187),n=O(i),r=c(188),h=O(r),p=c(190),u=O(p),y=c(191),d=O(y),w=c(192),g=O(w),a=c(189),s=O(a),v=function(P){function T(C){x(this,T);var M=_(this,P.call(this,C));return M.graphicsDataPool=[],M.primitiveShader=null,M.gl=C.gl,M.CONTEXT_UID=0,M}return b(T,P),T.prototype.onContextChange=function(){this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.primitiveShader=new h.default(this.gl)},T.prototype.destroy=function(){o.default.prototype.destroy.call(this);for(var C=0;C<this.graphicsDataPool.length;++C)this.graphicsDataPool[C].destroy();this.graphicsDataPool=null},T.prototype.render=function(C){var M=this.renderer,R=M.gl,S=void 0,L=C._webGL[this.CONTEXT_UID];L&&C.dirty===L.dirty||(this.updateGraphics(C),L=C._webGL[this.CONTEXT_UID]);var A=this.primitiveShader;M.bindShader(A),M.state.setBlendMode(C.blendMode);for(var D=0,I=L.data.length;D<I;D++){S=L.data[D];var U=S.shader;M.bindShader(U),U.uniforms.translationMatrix=C.transform.worldTransform.toArray(!0),U.uniforms.tint=(0,m.hex2rgb)(C.tint),U.uniforms.alpha=C.worldAlpha,M.bindVao(S.vao),S.vao.draw(R.TRIANGLE_STRIP,S.indices.length)}},T.prototype.updateGraphics=function(C){var M=this.renderer.gl,R=C._webGL[this.CONTEXT_UID];if(R||(R=C._webGL[this.CONTEXT_UID]={lastIndex:0,data:[],gl:M,clearDirty:-1,dirty:-1}),R.dirty=C.dirty,C.clearDirty!==R.clearDirty){R.clearDirty=C.clearDirty;for(var S=0;S<R.data.length;S++)this.graphicsDataPool.push(R.data[S]);R.data.length=0,R.lastIndex=0}for(var L=void 0,A=R.lastIndex;A<C.graphicsData.length;A++){var D=C.graphicsData[A];L=this.getWebGLData(R,0),D.type===l.SHAPES.POLY&&(0,u.default)(D,L),D.type===l.SHAPES.RECT?(0,d.default)(D,L):D.type===l.SHAPES.CIRC||D.type===l.SHAPES.ELIP?(0,s.default)(D,L):D.type===l.SHAPES.RREC&&(0,g.default)(D,L),R.lastIndex++}this.renderer.bindVao(null);for(var I=0;I<R.data.length;I++)L=R.data[I],L.dirty&&L.upload()},T.prototype.getWebGLData=function(C,M){var R=C.data[C.data.length-1];return(!R||R.points.length>32e4)&&(R=this.graphicsDataPool.pop()||new n.default(this.renderer.gl,this.primitiveShader,this.renderer.state.attribsState),R.reset(M),C.data.push(R)),R.dirty=!0,R},T}(o.default);E.default=v,t.default.registerPlugin("graphics",v)},function(B,E,c){"use strict";function O(l){return l&&l.__esModule?l:{default:l}}function x(l,f){if(!(l instanceof f))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var _=c(6),b=O(_),m=function(){function l(f,o,e){x(this,l),this.gl=f,this.color=[0,0,0],this.points=[],this.indices=[],this.buffer=b.default.GLBuffer.createVertexBuffer(f),this.indexBuffer=b.default.GLBuffer.createIndexBuffer(f),this.dirty=!0,this.glPoints=null,this.glIndices=null,this.shader=o,this.vao=new b.default.VertexArrayObject(f,e).addIndex(this.indexBuffer).addAttribute(this.buffer,o.attributes.aVertexPosition,f.FLOAT,!1,24,0).addAttribute(this.buffer,o.attributes.aColor,f.FLOAT,!1,24,8)}return l.prototype.reset=function(){this.points.length=0,this.indices.length=0},l.prototype.upload=function(){this.glPoints=new Float32Array(this.points),this.buffer.upload(this.glPoints),this.glIndices=new Uint16Array(this.indices),this.indexBuffer.upload(this.glIndices),this.dirty=!1},l.prototype.destroy=function(){this.color=null,this.points=null,this.indices=null,this.vao.destroy(),this.buffer.destroy(),this.indexBuffer.destroy(),this.gl=null,this.buffer=null,this.indexBuffer=null,this.glPoints=null,this.glIndices=null},l}();E.default=m},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")}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(23),l=O(m),f=function(o){function e(t){return x(this,e),_(this,o.call(this,t,["attribute vec2 aVertexPosition;","attribute vec4 aColor;","uniform mat3 translationMatrix;","uniform mat3 projectionMatrix;","uniform float alpha;","uniform vec3 tint;","varying vec4 vColor;","void main(void){"," gl_Position = vec4((projectionMatrix * translationMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);"," vColor = aColor * vec4(tint * alpha, alpha);","}"].join(`
|
|
`),["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 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,i=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;x(this,f),this.x=o,this.y=e,this.width=t,this.height=i,this.type=m.SHAPES.ELIP}return f.prototype.clone=function(){return new f(this.x,this.y,this.width,this.height)},f.prototype.contains=function(o,e){if(this.width<=0||this.height<=0)return!1;var t=(o-this.x)/this.width,i=(e-this.y)/this.height;return t*=t,i*=i,t+i<=1},f.prototype.getBounds=function(){return new b.default(this.x-this.width,this.y-this.height,this.width,this.height)},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 as a function")}E.__esModule=!0;var _=c(60),b=O(_),m=c(2),l=function(){function f(){for(var o=arguments.length,e=Array(o),t=0;t<o;t++)e[t]=arguments[t];if(x(this,f),Array.isArray(e[0])&&(e=e[0]),e[0]instanceof b.default){for(var i=[],n=0,r=e.length;n<r;n++)i.push(e[n].x,e[n].y);e=i}this.closed=!0,this.points=e,this.type=m.SHAPES.POLY}return f.prototype.clone=function(){return new f(this.points.slice())},f.prototype.close=function(){var o=this.points;o[0]===o[o.length-2]&&o[1]===o[o.length-1]||o.push(o[0],o[1])},f.prototype.contains=function(o,e){for(var t=!1,i=this.points.length/2,n=0,r=i-1;n<i;r=n++){var h=this.points[2*n],p=this.points[2*n+1],u=this.points[2*r],y=this.points[2*r+1],d=p>e!=y>e&&o<(u-h)*((e-p)/(y-p))+h;d&&(t=!t)}return t},f}();E.default=l},function(B,E,c){"use strict";function O(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var x=c(2),_=function(){function b(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,e=arguments.length>4&&arguments[4]!==void 0?arguments[4]:20;O(this,b),this.x=m,this.y=l,this.width=f,this.height=o,this.radius=e,this.type=x.SHAPES.RREC}return b.prototype.clone=function(){return new b(this.x,this.y,this.width,this.height,this.radius)},b.prototype.contains=function(m,l){if(this.width<=0||this.height<=0)return!1;if(m>=this.x&&m<=this.x+this.width&&l>=this.y&&l<=this.y+this.height){if(l>=this.y+this.radius&&l<=this.y+this.height-this.radius||m>=this.x+this.radius&&m<=this.x+this.width-this.radius)return!0;var f=m-(this.x+this.radius),o=l-(this.y+this.radius),e=this.radius*this.radius;if(f*f+o*o<=e||(f=m-(this.x+this.width-this.radius),f*f+o*o<=e)||(o=l-(this.y+this.height-this.radius),f*f+o*o<=e)||(f=m-(this.x+this.radius),f*f+o*o<=e))return!0}return!1},b}();E.default=_},function(B,E,c){"use strict";function O(b,m){if(!(b instanceof m))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var x=c(2),_=function(){function b(m){O(this,b),this.renderer=m}return b.prototype.pushMask=function(m){var l=this.renderer;l.context.save();var f=m.alpha,o=m.transform.worldTransform,e=l.resolution;l.context.setTransform(o.a*e,o.b*e,o.c*e,o.d*e,o.tx*e,o.ty*e),m._texture||(this.renderGraphicsShape(m),l.context.clip()),m.worldAlpha=f},b.prototype.renderGraphicsShape=function(m){var l=this.renderer.context,f=m.graphicsData.length;if(f!==0){l.beginPath();for(var o=0;o<f;o++){var e=m.graphicsData[o],t=e.shape;if(e.type===x.SHAPES.POLY){var i=t.points;l.moveTo(i[0],i[1]);for(var n=1;n<i.length/2;n++)l.lineTo(i[2*n],i[2*n+1]);i[0]===i[i.length-2]&&i[1]===i[i.length-1]&&l.closePath()}else if(e.type===x.SHAPES.RECT)l.rect(t.x,t.y,t.width,t.height),l.closePath();else if(e.type===x.SHAPES.CIRC)l.arc(t.x,t.y,t.radius,0,2*Math.PI),l.closePath();else if(e.type===x.SHAPES.ELIP){var r=2*t.width,h=2*t.height,p=t.x-r/2,u=t.y-h/2,y=.5522848,d=r/2*y,w=h/2*y,g=p+r,a=u+h,s=p+r/2,v=u+h/2;l.moveTo(p,v),l.bezierCurveTo(p,v-w,s-d,u,s,u),l.bezierCurveTo(s+d,u,g,v-w,g,v),l.bezierCurveTo(g,v+w,s+d,a,s,a),l.bezierCurveTo(s-d,a,p,v+w,p,v),l.closePath()}else if(e.type===x.SHAPES.RREC){var P=t.x,T=t.y,C=t.width,M=t.height,R=t.radius,S=Math.min(C,M)/2|0;R=R>S?S:R,l.moveTo(P,T+R),l.lineTo(P,T+M-R),l.quadraticCurveTo(P,T+M,P+R,T+M),l.lineTo(P+C-R,T+M),l.quadraticCurveTo(P+C,T+M,P+C,T+M-R),l.lineTo(P+C,T+R),l.quadraticCurveTo(P+C,T,P+C-R,T),l.lineTo(P+R,T),l.quadraticCurveTo(P,T,P,T+R),l.closePath()}}}},b.prototype.popMask=function(m){m.context.restore()},b.prototype.destroy=function(){},b}();E.default=_},function(B,E,c){"use strict";function O(l){return l&&l.__esModule?l:{default:l}}function x(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return(0,m.default)()?(l[_.BLEND_MODES.NORMAL]="source-over",l[_.BLEND_MODES.ADD]="lighter",l[_.BLEND_MODES.MULTIPLY]="multiply",l[_.BLEND_MODES.SCREEN]="screen",l[_.BLEND_MODES.OVERLAY]="overlay",l[_.BLEND_MODES.DARKEN]="darken",l[_.BLEND_MODES.LIGHTEN]="lighten",l[_.BLEND_MODES.COLOR_DODGE]="color-dodge",l[_.BLEND_MODES.COLOR_BURN]="color-burn",l[_.BLEND_MODES.HARD_LIGHT]="hard-light",l[_.BLEND_MODES.SOFT_LIGHT]="soft-light",l[_.BLEND_MODES.DIFFERENCE]="difference",l[_.BLEND_MODES.EXCLUSION]="exclusion",l[_.BLEND_MODES.HUE]="hue",l[_.BLEND_MODES.SATURATION]="saturate",l[_.BLEND_MODES.COLOR]="color",l[_.BLEND_MODES.LUMINOSITY]="luminosity"):(l[_.BLEND_MODES.NORMAL]="source-over",l[_.BLEND_MODES.ADD]="lighter",l[_.BLEND_MODES.MULTIPLY]="source-over",l[_.BLEND_MODES.SCREEN]="source-over",l[_.BLEND_MODES.OVERLAY]="source-over",l[_.BLEND_MODES.DARKEN]="source-over",l[_.BLEND_MODES.LIGHTEN]="source-over",l[_.BLEND_MODES.COLOR_DODGE]="source-over",l[_.BLEND_MODES.COLOR_BURN]="source-over",l[_.BLEND_MODES.HARD_LIGHT]="source-over",l[_.BLEND_MODES.SOFT_LIGHT]="source-over",l[_.BLEND_MODES.DIFFERENCE]="source-over",l[_.BLEND_MODES.EXCLUSION]="source-over",l[_.BLEND_MODES.HUE]="source-over",l[_.BLEND_MODES.SATURATION]="source-over",l[_.BLEND_MODES.COLOR]="source-over",l[_.BLEND_MODES.LUMINOSITY]="source-over"),l}E.__esModule=!0,E.default=x;var _=c(2),b=c(101),m=O(b)},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(2),b=c(5),m=O(b),l=function(){function f(o){x(this,f),this.renderer=o,this.count=0,this.checkCount=0,this.maxIdle=m.default.GC_MAX_IDLE,this.checkCountMax=m.default.GC_MAX_CHECK_COUNT,this.mode=m.default.GC_MODE}return f.prototype.update=function(){this.count++,this.mode!==_.GC_MODES.MANUAL&&(this.checkCount++,this.checkCount>this.checkCountMax&&(this.checkCount=0,this.run()))},f.prototype.run=function(){for(var o=this.renderer.textureManager,e=o._managedTextures,t=!1,i=0;i<e.length;i++){var n=e[i];!n._glRenderTargets&&this.count-n.touched>this.maxIdle&&(o.destroyTexture(n,!0),e[i]=null,t=!0)}if(t){for(var r=0,h=0;h<e.length;h++)e[h]!==null&&(e[r++]=e[h]);e.length=r}},f.prototype.unload=function(o){var e=this.renderer.textureManager;o._texture&&o._texture._glRenderTargets&&e.destroyTexture(o._texture,!0);for(var t=o.children.length-1;t>=0;t--)this.unload(o.children[t])},f}();E.default=l},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")}E.__esModule=!0;var _=c(6),b=c(2),m=c(38),l=O(m),f=c(3),o=function(){function e(t){x(this,e),this.renderer=t,this.gl=t.gl,this._managedTextures=[]}return e.prototype.bindTexture=function(){},e.prototype.getTexture=function(){},e.prototype.updateTexture=function(t,i){var n=this.gl,r=!!t._glRenderTargets;if(!t.hasLoaded)return null;var h=this.renderer.boundTextures;if(i===void 0){i=0;for(var p=0;p<h.length;++p)if(h[p]===t){i=p;break}}h[i]=t,n.activeTexture(n.TEXTURE0+i);var u=t._glTextures[this.renderer.CONTEXT_UID];if(u)r?t._glRenderTargets[this.renderer.CONTEXT_UID].resize(t.width,t.height):u.upload(t.source);else{if(r){var y=new l.default(this.gl,t.width,t.height,t.scaleMode,t.resolution);y.resize(t.width,t.height),t._glRenderTargets[this.renderer.CONTEXT_UID]=y,u=y.texture}else u=new _.GLTexture(this.gl,null,null,null,null),u.bind(i),u.premultiplyAlpha=!0,u.upload(t.source);t._glTextures[this.renderer.CONTEXT_UID]=u,t.on("update",this.updateTexture,this),t.on("dispose",this.destroyTexture,this),this._managedTextures.push(t),t.isPowerOfTwo?(t.mipmap&&u.enableMipmap(),t.wrapMode===b.WRAP_MODES.CLAMP?u.enableWrapClamp():t.wrapMode===b.WRAP_MODES.REPEAT?u.enableWrapRepeat():u.enableWrapMirrorRepeat()):u.enableWrapClamp(),t.scaleMode===b.SCALE_MODES.NEAREST?u.enableNearestScaling():u.enableLinearScaling()}return u},e.prototype.destroyTexture=function(t,i){if(t=t.baseTexture||t,t.hasLoaded&&t._glTextures[this.renderer.CONTEXT_UID]&&(this.renderer.unbindTexture(t),t._glTextures[this.renderer.CONTEXT_UID].destroy(),t.off("update",this.updateTexture,this),t.off("dispose",this.destroyTexture,this),delete t._glTextures[this.renderer.CONTEXT_UID],!i)){var n=this._managedTextures.indexOf(t);n!==-1&&(0,f.removeItems)(this._managedTextures,n,1)}},e.prototype.removeAll=function(){for(var t=0;t<this._managedTextures.length;++t){var i=this._managedTextures[t];i._glTextures[this.renderer.CONTEXT_UID]&&delete i._glTextures[this.renderer.CONTEXT_UID]}},e.prototype.destroy=function(){for(var t=0;t<this._managedTextures.length;++t){var i=this._managedTextures[t];this.destroyTexture(i,!0),i.off("update",this.updateTexture,this),i.off("dispose",this.destroyTexture,this)}this._managedTextures=null},e}();E.default=o},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(208),b=O(_),m=0,l=1,f=2,o=3,e=4,t=function(){function i(n){x(this,i),this.activeState=new Uint8Array(16),this.defaultState=new Uint8Array(16),this.defaultState[0]=1,this.stackIndex=0,this.stack=[],this.gl=n,this.maxAttribs=n.getParameter(n.MAX_VERTEX_ATTRIBS),this.attribState={tempAttribState:new Array(this.maxAttribs),attribState:new Array(this.maxAttribs)},this.blendModes=(0,b.default)(n),this.nativeVaoExtension=n.getExtension("OES_vertex_array_object")||n.getExtension("MOZ_OES_vertex_array_object")||n.getExtension("WEBKIT_OES_vertex_array_object")}return i.prototype.push=function(){var n=this.stack[++this.stackIndex];n||(n=this.stack[this.stackIndex]=new Uint8Array(16));for(var r=0;r<this.activeState.length;r++)this.activeState[r]=n[r]},i.prototype.pop=function(){var n=this.stack[--this.stackIndex];this.setState(n)},i.prototype.setState=function(n){this.setBlend(n[m]),this.setDepthTest(n[l]),this.setFrontFace(n[f]),this.setCullFace(n[o]),this.setBlendMode(n[e])},i.prototype.setBlend=function(n){n=n?1:0,this.activeState[m]!==n&&(this.activeState[m]=n,this.gl[n?"enable":"disable"](this.gl.BLEND))},i.prototype.setBlendMode=function(n){n!==this.activeState[e]&&(this.activeState[e]=n,this.gl.blendFunc(this.blendModes[n][0],this.blendModes[n][1]))},i.prototype.setDepthTest=function(n){n=n?1:0,this.activeState[l]!==n&&(this.activeState[l]=n,this.gl[n?"enable":"disable"](this.gl.DEPTH_TEST))},i.prototype.setCullFace=function(n){n=n?1:0,this.activeState[o]!==n&&(this.activeState[o]=n,this.gl[n?"enable":"disable"](this.gl.CULL_FACE))},i.prototype.setFrontFace=function(n){n=n?1:0,this.activeState[f]!==n&&(this.activeState[f]=n,this.gl.frontFace(this.gl[n?"CW":"CCW"]))},i.prototype.resetAttributes=function(){for(var n=0;n<this.attribState.tempAttribState.length;n++)this.attribState.tempAttribState[n]=0;for(var r=0;r<this.attribState.attribState.length;r++)this.attribState.attribState[r]=0;for(var h=1;h<this.maxAttribs;h++)this.gl.disableVertexAttribArray(h)},i.prototype.resetToDefault=function(){this.nativeVaoExtension&&this.nativeVaoExtension.bindVertexArrayOES(null),this.resetAttributes();for(var n=0;n<this.activeState.length;++n)this.activeState[n]=32;this.gl.pixelStorei(this.gl.UNPACK_FLIP_Y_WEBGL,!1),this.setState(this.defaultState)},i}();E.default=t},function(B,E,c){"use strict";function O(f){return f&&f.__esModule?f:{default:f}}function x(f,o,e){var t=_(f,e),i=_(o,e);return Object.assign(t,i)}function _(f){for(var o=new RegExp("^(projectionMatrix|uSampler|filterArea)$"),e={},t=void 0,i=f.replace(/\s+/g," ").split(/\s*;\s*/),n=0;n<i.length;n++){var r=i[n].trim();if(r.indexOf("uniform")>-1){var h=r.split(" "),p=h[1],u=h[2],y=1;u.indexOf("[")>-1&&(t=u.split(/\[|]/),u=t[0],y*=Number(t[1])),u.match(o)||(e[u]={value:l(p,y),name:u,type:p})}}return e}E.__esModule=!0,E.default=x;var b=c(6),m=O(b),l=m.default.shader.defaultValue},function(B,E,c){"use strict";function O(m,l,f){var o=m.identity();return o.translate(l.x/f.width,l.y/f.height),o.scale(f.width,f.height),o}function x(m,l,f){var o=m.identity();o.translate(l.x/f.width,l.y/f.height);var e=f.width/l.width,t=f.height/l.height;return o.scale(e,t),o}function _(m,l,f,o){var e=o.worldTransform.copy(b.Matrix.TEMP_MATRIX),t=o._texture.baseTexture,i=m.identity(),n=f.height/f.width;i.translate(l.x/f.width,l.y/f.height),i.scale(1,n);var r=f.width/t.width,h=f.height/t.height;return e.tx/=t.width*r,e.ty/=t.width*r,e.invert(),i.prepend(e),i.scale(1,1/n),i.scale(r,h),i.translate(o.anchor.x,o.anchor.y),i}E.__esModule=!0,E.calculateScreenSpaceMatrix=O,E.calculateNormalizedScreenSpaceMatrix=x,E.calculateSpriteMatrix=_;var b=c(4)},function(B,E,c){"use strict";function O(a){if(a&&a.__esModule)return a;var s={};if(a!=null)for(var v in a)Object.prototype.hasOwnProperty.call(a,v)&&(s[v]=a[v]);return s.default=a,s}function x(a){return a&&a.__esModule?a:{default:a}}function _(a,s){if(!a)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!s||typeof s!="object"&&typeof s!="function"?a:s}function b(a,s){if(typeof s!="function"&&s!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof s);a.prototype=Object.create(s&&s.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),s&&(Object.setPrototypeOf?Object.setPrototypeOf(a,s):a.__proto__=s)}function m(a,s){if(!(a instanceof s))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var l=c(24),f=x(l),o=c(38),e=x(o),t=c(104),i=x(t),n=c(4),r=c(23),h=x(r),p=c(203),u=O(p),y=c(41),d=x(y),w=function a(){m(this,a),this.renderTarget=null,this.sourceFrame=new n.Rectangle,this.destinationFrame=new n.Rectangle,this.filters=[],this.target=null,this.resolution=1},g=function(a){function s(v){m(this,s);var P=_(this,a.call(this,v));return P.gl=P.renderer.gl,P.quad=new i.default(P.gl,v.state.attribState),P.shaderCache={},P.pool={},P.filterData=null,P}return b(s,a),s.prototype.pushFilter=function(v,P){var T=this.renderer,C=this.filterData;if(!C){C=this.renderer._activeRenderTarget.filterStack;var M=new w;M.sourceFrame=M.destinationFrame=this.renderer._activeRenderTarget.size,M.renderTarget=T._activeRenderTarget,this.renderer._activeRenderTarget.filterData=C={index:0,stack:[M]},this.filterData=C}var R=C.stack[++C.index];R||(R=C.stack[C.index]=new w);var S=P[0].resolution,L=0|P[0].padding,A=v.filterArea||v.getBounds(!0),D=R.sourceFrame,I=R.destinationFrame;D.x=(A.x*S|0)/S,D.y=(A.y*S|0)/S,D.width=(A.width*S|0)/S,D.height=(A.height*S|0)/S,C.stack[0].renderTarget.transform||D.fit(C.stack[0].destinationFrame),D.pad(L),I.width=D.width,I.height=D.height;var U=this.getPotRenderTarget(T.gl,D.width,D.height,S);R.target=v,R.filters=P,R.resolution=S,R.renderTarget=U,U.setFrame(I,D),T.bindRenderTarget(U),U.clear()},s.prototype.popFilter=function(){var v=this.filterData,P=v.stack[v.index-1],T=v.stack[v.index];this.quad.map(T.renderTarget.size,T.sourceFrame).upload();var C=T.filters;if(C.length===1)C[0].apply(this,T.renderTarget,P.renderTarget,!1),this.freePotRenderTarget(T.renderTarget);else{var M=T.renderTarget,R=this.getPotRenderTarget(this.renderer.gl,T.sourceFrame.width,T.sourceFrame.height,T.resolution);R.setFrame(T.destinationFrame,T.sourceFrame),R.clear();var S=0;for(S=0;S<C.length-1;++S){C[S].apply(this,M,R,!0);var L=M;M=R,R=L}C[S].apply(this,M,P.renderTarget,!0),this.freePotRenderTarget(M),this.freePotRenderTarget(R)}v.index--,v.index===0&&(this.filterData=null)},s.prototype.applyFilter=function(v,P,T,C){var M=this.renderer,R=M.gl,S=v.glShaders[M.CONTEXT_UID];S||(v.glShaderKey?(S=this.shaderCache[v.glShaderKey],S||(S=new h.default(this.gl,v.vertexSrc,v.fragmentSrc),v.glShaders[M.CONTEXT_UID]=this.shaderCache[v.glShaderKey]=S)):S=v.glShaders[M.CONTEXT_UID]=new h.default(this.gl,v.vertexSrc,v.fragmentSrc),M.bindVao(null),this.quad.initVao(S)),M.bindVao(this.quad.vao),M.bindRenderTarget(T),C&&(R.disable(R.SCISSOR_TEST),M.clear(),R.enable(R.SCISSOR_TEST)),T===M.maskManager.scissorRenderTarget&&M.maskManager.pushScissorMask(null,M.maskManager.scissorData),M.bindShader(S),this.syncUniforms(S,v),M.state.setBlendMode(v.blendMode);var L=this.renderer.boundTextures[0];R.activeTexture(R.TEXTURE0),R.bindTexture(R.TEXTURE_2D,P.texture.texture),this.quad.vao.draw(this.renderer.gl.TRIANGLES,6,0),R.bindTexture(R.TEXTURE_2D,L._glTextures[this.renderer.CONTEXT_UID].texture)},s.prototype.syncUniforms=function(v,P){var T=P.uniformData,C=P.uniforms,M=1,R=void 0;if(v.uniforms.data.filterArea){R=this.filterData.stack[this.filterData.index];var S=v.uniforms.filterArea;S[0]=R.renderTarget.size.width,S[1]=R.renderTarget.size.height,S[2]=R.sourceFrame.x,S[3]=R.sourceFrame.y,v.uniforms.filterArea=S}if(v.uniforms.data.filterClamp){R=this.filterData.stack[this.filterData.index];var L=v.uniforms.filterClamp;L[0]=0,L[1]=0,L[2]=(R.sourceFrame.width-1)/R.renderTarget.size.width,L[3]=(R.sourceFrame.height-1)/R.renderTarget.size.height,v.uniforms.filterClamp=L}for(var A in T)if(T[A].type==="sampler2D"&&C[A]!==0){if(C[A].baseTexture)v.uniforms[A]=this.renderer.bindTexture(C[A].baseTexture,M);else{v.uniforms[A]=M;var D=this.renderer.gl;this.renderer.boundTextures[M]=this.renderer.emptyTextures[M],D.activeTexture(D.TEXTURE0+M),C[A].texture.bind()}M++}else if(T[A].type==="mat3")C[A].a!==void 0?v.uniforms[A]=C[A].toArray(!0):v.uniforms[A]=C[A];else if(T[A].type==="vec2")if(C[A].x!==void 0){var I=v.uniforms[A]||new Float32Array(2);I[0]=C[A].x,I[1]=C[A].y,v.uniforms[A]=I}else v.uniforms[A]=C[A];else T[A].type==="float"?v.uniforms.data[A].value!==T[A]&&(v.uniforms[A]=C[A]):v.uniforms[A]=C[A]},s.prototype.getRenderTarget=function(v,P){var T=this.filterData.stack[this.filterData.index],C=this.getPotRenderTarget(this.renderer.gl,T.sourceFrame.width,T.sourceFrame.height,P||T.resolution);return C.setFrame(T.destinationFrame,T.sourceFrame),C},s.prototype.returnRenderTarget=function(v){this.freePotRenderTarget(v)},s.prototype.calculateScreenSpaceMatrix=function(v){var P=this.filterData.stack[this.filterData.index];return u.calculateScreenSpaceMatrix(v,P.sourceFrame,P.renderTarget.size)},s.prototype.calculateNormalizedScreenSpaceMatrix=function(v){var P=this.filterData.stack[this.filterData.index];return u.calculateNormalizedScreenSpaceMatrix(v,P.sourceFrame,P.renderTarget.size,P.destinationFrame)},s.prototype.calculateSpriteMatrix=function(v,P){var T=this.filterData.stack[this.filterData.index];return u.calculateSpriteMatrix(v,T.sourceFrame,T.renderTarget.size,P)},s.prototype.destroy=function(){this.shaderCache=[],this.emptyPool()},s.prototype.getPotRenderTarget=function(v,P,T,C){P=d.default.nextPow2(P*C),T=d.default.nextPow2(T*C);var M=(65535&P)<<16|65535&T;this.pool[M]||(this.pool[M]=[]);var R=this.pool[M].pop();if(!R){var S=this.renderer.boundTextures[0];v.activeTexture(v.TEXTURE0),R=new e.default(v,P,T,null,1),v.bindTexture(v.TEXTURE_2D,S._glTextures[this.renderer.CONTEXT_UID].texture)}return R.resolution=C,R.defaultFrame.width=R.size.width=P/C,R.defaultFrame.height=R.size.height=T/C,R},s.prototype.emptyPool=function(){for(var v in this.pool){var P=this.pool[v];if(P)for(var T=0;T<P.length;T++)P[T].destroy(!0)}this.pool={}},s.prototype.freePotRenderTarget=function(v){var P=v.size.width*v.resolution,T=v.size.height*v.resolution,C=(65535&P)<<16|65535&T;this.pool[C].push(v)},s}(f.default);E.default=g},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=c(24),l=O(m),f=c(103),o=O(f),e=function(t){function i(n){x(this,i);var r=_(this,t.call(this,n));return r.scissor=!1,r.scissorData=null,r.scissorRenderTarget=null,r.enableScissor=!0,r.alphaMaskPool=[],r.alphaMaskIndex=0,r}return b(i,t),i.prototype.pushMask=function(n,r){if(r.texture)this.pushSpriteMask(n,r);else if(this.enableScissor&&!this.scissor&&!this.renderer.stencilManager.stencilMaskStack.length&&r.isFastRect()){var h=r.worldTransform,p=Math.atan2(h.b,h.a);p=Math.round(p*(180/Math.PI)),p%90?this.pushStencilMask(r):this.pushScissorMask(n,r)}else this.pushStencilMask(r)},i.prototype.popMask=function(n,r){r.texture?this.popSpriteMask(n,r):this.enableScissor&&!this.renderer.stencilManager.stencilMaskStack.length?this.popScissorMask(n,r):this.popStencilMask(n,r)},i.prototype.pushSpriteMask=function(n,r){var h=this.alphaMaskPool[this.alphaMaskIndex];h||(h=this.alphaMaskPool[this.alphaMaskIndex]=[new o.default(r)]),h[0].resolution=this.renderer.resolution,h[0].maskSprite=r,n.filterArea=r.getBounds(!0),this.renderer.filterManager.pushFilter(n,h),this.alphaMaskIndex++},i.prototype.popSpriteMask=function(){this.renderer.filterManager.popFilter(),this.alphaMaskIndex--},i.prototype.pushStencilMask=function(n){this.renderer.currentRenderer.stop(),this.renderer.stencilManager.pushStencil(n)},i.prototype.popStencilMask=function(){this.renderer.currentRenderer.stop(),this.renderer.stencilManager.popStencil()},i.prototype.pushScissorMask=function(n,r){r.renderable=!0;var h=this.renderer._activeRenderTarget,p=r.getBounds();p.fit(h.size),r.renderable=!1,this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST);var u=this.renderer.resolution;this.renderer.gl.scissor(p.x*u,(h.root?h.size.height-p.y-p.height:p.y)*u,p.width*u,p.height*u),this.scissorRenderTarget=h,this.scissorData=r,this.scissor=!0},i.prototype.popScissorMask=function(){this.scissorRenderTarget=null,this.scissorData=null,this.scissor=!1;var n=this.renderer.gl;n.disable(n.SCISSOR_TEST)},i}(l.default);E.default=e},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")}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(24),l=O(m),f=function(o){function e(t){x(this,e);var i=_(this,o.call(this,t));return i.stencilMaskStack=null,i}return b(e,o),e.prototype.setMaskStack=function(t){this.stencilMaskStack=t;var i=this.renderer.gl;t.length===0?i.disable(i.STENCIL_TEST):i.enable(i.STENCIL_TEST)},e.prototype.pushStencil=function(t){this.renderer.setObjectRenderer(this.renderer.plugins.graphics),this.renderer._activeRenderTarget.attachStencilBuffer();var i=this.renderer.gl,n=this.stencilMaskStack;n.length===0&&(i.enable(i.STENCIL_TEST),i.clear(i.STENCIL_BUFFER_BIT),i.stencilFunc(i.ALWAYS,1,1)),n.push(t),i.colorMask(!1,!1,!1,!1),i.stencilOp(i.KEEP,i.KEEP,i.INCR),this.renderer.plugins.graphics.render(t),i.colorMask(!0,!0,!0,!0),i.stencilFunc(i.NOTEQUAL,0,n.length),i.stencilOp(i.KEEP,i.KEEP,i.KEEP)},e.prototype.popStencil=function(){this.renderer.setObjectRenderer(this.renderer.plugins.graphics);var t=this.renderer.gl,i=this.stencilMaskStack,n=i.pop();i.length===0?t.disable(t.STENCIL_TEST):(t.colorMask(!1,!1,!1,!1),t.stencilOp(t.KEEP,t.KEEP,t.DECR),this.renderer.plugins.graphics.render(n),t.colorMask(!0,!0,!0,!0),t.stencilFunc(t.NOTEQUAL,0,i.length),t.stencilOp(t.KEEP,t.KEEP,t.KEEP))},e.prototype.destroy=function(){l.default.prototype.destroy.call(this),this.stencilMaskStack.stencilStack=null},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=!o;if(f===0)throw new Error("Invalid value of `0` passed to `checkMaxIfStatementsInShader`");if(e){var t=document.createElement("canvas");t.width=1,t.height=1,o=m.default.createContext(t)}for(var i=o.createShader(o.FRAGMENT_SHADER);;){var n=l.replace(/%forloop%/gi,_(f));if(o.shaderSource(i,n),o.compileShader(i),o.getShaderParameter(i,o.COMPILE_STATUS))break;f=f/2|0}return e&&o.getExtension("WEBGL_lose_context")&&o.getExtension("WEBGL_lose_context").loseContext(),f}function _(f){for(var o="",e=0;e<f;++e)e>0&&(o+=`
|
|
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 been initialised - super() hasn't been called");return!M||typeof M!="object"&&typeof M!="function"?C:M}function b(C,M){if(typeof M!="function"&&M!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof M);C.prototype=Object.create(M&&M.prototype,{constructor:{value:C,enumerable:!1,writable:!0,configurable:!0}}),M&&(Object.setPrototypeOf?Object.setPrototypeOf(C,M):C.__proto__=M)}E.__esModule=!0;var m=c(37),l=O(m),f=c(62),o=O(f),e=c(66),t=O(e),i=c(214),n=O(i),r=c(207),h=O(r),p=c(212),u=O(p),y=c(5),d=O(y),w=c(6),g=O(w),a=c(41),s=O(a),v=0,P=0,T=function(C){function M(R){x(this,M);var S=_(this,C.call(this,R));S.vertSize=5,S.vertByteSize=4*S.vertSize,S.size=d.default.SPRITE_BATCH_SIZE,S.buffers=[];for(var L=1;L<=s.default.nextPow2(S.size);L*=2)S.buffers.push(new u.default(4*L*S.vertByteSize));S.indices=(0,t.default)(S.size),S.shader=null,S.currentIndex=0,v=0,S.groups=[];for(var A=0;A<S.size;A++)S.groups[A]={textures:[],textureCount:0,ids:[],size:0,start:0,blend:0};return S.sprites=[],S.vertexBuffers=[],S.vaos=[],S.vaoMax=2,S.vertexCount=0,S.renderer.on("prerender",S.onPrerender,S),S}return b(M,C),M.prototype.onContextChange=function(){var R=this.renderer.gl;this.MAX_TEXTURES=Math.min(R.getParameter(R.MAX_TEXTURE_IMAGE_UNITS),d.default.SPRITE_MAX_TEXTURES),this.MAX_TEXTURES=(0,h.default)(this.MAX_TEXTURES,R);var S=this.shader=(0,n.default)(R,this.MAX_TEXTURES);this.indexBuffer=g.default.GLBuffer.createIndexBuffer(R,this.indices,R.STATIC_DRAW),this.renderer.bindVao(null);for(var L=0;L<this.vaoMax;L++)this.vertexBuffers[L]=g.default.GLBuffer.createVertexBuffer(R,null,R.STREAM_DRAW),this.vaos[L]=this.renderer.createVao().addIndex(this.indexBuffer).addAttribute(this.vertexBuffers[L],S.attributes.aVertexPosition,R.FLOAT,!1,this.vertByteSize,0).addAttribute(this.vertexBuffers[L],S.attributes.aTextureCoord,R.UNSIGNED_SHORT,!0,this.vertByteSize,8).addAttribute(this.vertexBuffers[L],S.attributes.aColor,R.UNSIGNED_BYTE,!0,this.vertByteSize,12).addAttribute(this.vertexBuffers[L],S.attributes.aTextureId,R.FLOAT,!1,this.vertByteSize,16);this.vao=this.vaos[0],this.currentBlendMode=99999,this.boundTextures=new Array(this.MAX_TEXTURES)},M.prototype.onPrerender=function(){this.vertexCount=0},M.prototype.render=function(R){this.currentIndex>=this.size&&this.flush(),R._texture._uvs&&(this.sprites[this.currentIndex++]=R)},M.prototype.flush=function(){if(this.currentIndex!==0){var R=this.renderer.gl,S=this.MAX_TEXTURES,L=s.default.nextPow2(this.currentIndex),A=s.default.log2(L),D=this.buffers[A],I=this.sprites,U=this.groups,N=D.float32View,W=D.uint32View,H=this.boundTextures,tt=this.renderer.boundTextures,it=this.renderer.textureGC.count,K=0,at=void 0,ut=void 0,mt=1,wt=0,Dt=U[0],yt=void 0,Tt=void 0,It=I[0].blendMode;Dt.textureCount=0,Dt.start=0,Dt.blend=It,v++;var bt=void 0;for(bt=0;bt<S;++bt)H[bt]=tt[bt],H[bt]._virtalBoundId=bt;for(bt=0;bt<this.currentIndex;++bt){var kt=I[bt];if(at=kt._texture.baseTexture,It!==kt.blendMode&&(It=kt.blendMode,ut=null,wt=S,v++),ut!==at&&(ut=at,at._enabled!==v)){if(wt===S&&(v++,Dt.size=bt-Dt.start,wt=0,Dt=U[mt++],Dt.blend=It,Dt.textureCount=0,Dt.start=bt),at.touched=it,at._virtalBoundId===-1)for(var Bt=0;Bt<S;++Bt){var Ut=(Bt+P)%S,Vt=H[Ut];if(Vt._enabled!==v){P++,Vt._virtalBoundId=-1,at._virtalBoundId=Ut,H[Ut]=at;break}}at._enabled=v,Dt.textureCount++,Dt.ids[wt]=at._virtalBoundId,Dt.textures[wt++]=at}if(yt=kt.vertexData,Tt=kt._texture._uvs.uvsUint32,this.renderer.roundPixels){var jt=this.renderer.resolution;N[K]=(yt[0]*jt|0)/jt,N[K+1]=(yt[1]*jt|0)/jt,N[K+5]=(yt[2]*jt|0)/jt,N[K+6]=(yt[3]*jt|0)/jt,N[K+10]=(yt[4]*jt|0)/jt,N[K+11]=(yt[5]*jt|0)/jt,N[K+15]=(yt[6]*jt|0)/jt,N[K+16]=(yt[7]*jt|0)/jt}else N[K]=yt[0],N[K+1]=yt[1],N[K+5]=yt[2],N[K+6]=yt[3],N[K+10]=yt[4],N[K+11]=yt[5],N[K+15]=yt[6],N[K+16]=yt[7];W[K+2]=Tt[0],W[K+7]=Tt[1],W[K+12]=Tt[2],W[K+17]=Tt[3],W[K+3]=W[K+8]=W[K+13]=W[K+18]=kt._tintRGB+(255*Math.min(kt.worldAlpha,1)<<24),N[K+4]=N[K+9]=N[K+14]=N[K+19]=at._virtalBoundId,K+=20}for(Dt.size=bt-Dt.start,d.default.CAN_UPLOAD_SAME_BUFFER?this.vertexBuffers[this.vertexCount].upload(D.vertices,0,!0):(this.vaoMax<=this.vertexCount&&(this.vaoMax++,this.vertexBuffers[this.vertexCount]=g.default.GLBuffer.createVertexBuffer(R,null,R.STREAM_DRAW),this.vaos[this.vertexCount]=this.renderer.createVao().addIndex(this.indexBuffer).addAttribute(this.vertexBuffers[this.vertexCount],this.shader.attributes.aVertexPosition,R.FLOAT,!1,this.vertByteSize,0).addAttribute(this.vertexBuffers[this.vertexCount],this.shader.attributes.aTextureCoord,R.UNSIGNED_SHORT,!0,this.vertByteSize,8).addAttribute(this.vertexBuffers[this.vertexCount],this.shader.attributes.aColor,R.UNSIGNED_BYTE,!0,this.vertByteSize,12).addAttribute(this.vertexBuffers[this.vertexCount],this.shader.attributes.aTextureId,R.FLOAT,!1,this.vertByteSize,16)),this.renderer.bindVao(this.vaos[this.vertexCount]),this.vertexBuffers[this.vertexCount].upload(D.vertices,0,!1),this.vertexCount++),bt=0;bt<S;++bt)tt[bt]._virtalBoundId=-1;for(bt=0;bt<mt;++bt){for(var _t=U[bt],Et=_t.textureCount,Ot=0;Ot<Et;Ot++)ut=_t.textures[Ot],tt[_t.ids[Ot]]!==ut&&this.renderer.bindTexture(ut,_t.ids[Ot],!0),ut._virtalBoundId=-1;this.renderer.state.setBlendMode(_t.blend),R.drawElements(R.TRIANGLES,6*_t.size,R.UNSIGNED_SHORT,6*_t.start*2)}this.currentIndex=0}},M.prototype.start=function(){this.renderer.bindShader(this.shader),d.default.CAN_UPLOAD_SAME_BUFFER&&(this.renderer.bindVao(this.vaos[this.vertexCount]),this.vertexBuffers[this.vertexCount].bind())},M.prototype.stop=function(){this.flush()},M.prototype.destroy=function(){for(var R=0;R<this.vaoMax;R++)this.vertexBuffers[R]&&this.vertexBuffers[R].destroy(),this.vaos[R]&&this.vaos[R].destroy();this.indexBuffer&&this.indexBuffer.destroy(),this.renderer.off("prerender",this.onPrerender,this),C.prototype.destroy.call(this),this.shader&&(this.shader.destroy(),this.shader=null),this.vertexBuffers=null,this.vaos=null,this.indexBuffer=null,this.indices=null,this.sprites=null;for(var S=0;S<this.buffers.length;++S)this.buffers[S].destroy()},M}(l.default);E.default=T,o.default.registerPlugin("sprite",T)},function(B,E,c){"use strict";function O(f){return f&&f.__esModule?f:{default:f}}function x(f,o){var e=`attribute vec2 aVertexPosition;
|
|
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.prototype.updateTexture=function(){var a=this._texture,s=this._style;a.baseTexture.hasLoaded=!0,a.baseTexture.resolution=this.resolution,a.baseTexture.realWidth=this.canvas.width,a.baseTexture.realHeight=this.canvas.height,a.baseTexture.width=this.canvas.width/this.resolution,a.baseTexture.height=this.canvas.height/this.resolution,a.trim.width=a._frame.width=this.canvas.width/this.resolution,a.trim.height=a._frame.height=this.canvas.height/this.resolution,a.trim.x=-s.padding,a.trim.y=-s.padding,a.orig.width=a._frame.width-2*s.padding,a.orig.height=a._frame.height-2*s.padding,this._onTextureUpdate(),a.baseTexture.emit("update",a.baseTexture),this.dirty=!1},g.prototype.renderWebGL=function(a){this.resolution!==a.resolution&&(this.resolution=a.resolution,this.dirty=!0),this.updateText(!0),w.prototype.renderWebGL.call(this,a)},g.prototype._renderCanvas=function(a){this.resolution!==a.resolution&&(this.resolution=a.resolution,this.dirty=!0),this.updateText(!0),w.prototype._renderCanvas.call(this,a)},g.prototype.wordWrap=function(a){for(var s="",v=a.split(`
|
|
`),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=performance.now(),this._requestId=requestAnimationFrame(this._tick))},t.prototype._cancelIfNeeded=function(){this._requestId!==null&&(cancelAnimationFrame(this._requestId),this._requestId=null)},t.prototype._startIfPossible=function(){this.started?this._requestIfNeeded():this.autoStart&&this.start()},t.prototype.add=function(i,n){return this._emitter.on(o,i,n),this._startIfPossible(),this},t.prototype.addOnce=function(i,n){return this._emitter.once(o,i,n),this._startIfPossible(),this},t.prototype.remove=function(i,n){return this._emitter.off(o,i,n),this._emitter.listeners(o,!0)||this._cancelIfNeeded(),this},t.prototype.start=function(){this.started||(this.started=!0,this._requestIfNeeded())},t.prototype.stop=function(){this.started&&(this.started=!1,this._cancelIfNeeded())},t.prototype.update=function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:performance.now(),n=void 0;i>this.lastTime?(n=this.elapsedMS=i-this.lastTime,n>this._maxElapsedMS&&(n=this._maxElapsedMS),this.deltaTime=n*m.default.TARGET_FPMS*this.speed,this._emitter.emit(o,this.deltaTime)):this.deltaTime=this.elapsedMS=0,this.lastTime=i},_(t,[{key:"FPS",get:function(){return 1e3/this.elapsedMS}},{key:"minFPS",get:function(){return 1e3/this._maxElapsedMS},set:function(i){var n=Math.min(Math.max(0,i)/1e3,m.default.TARGET_FPMS);this._maxElapsedMS=1/n}}]),t}();E.default=e},function(B,E){"use strict";function c(){var O=!!navigator.platform&&/iPad|iPhone|iPod/.test(navigator.platform);return!O}E.__esModule=!0,E.default=c},function(B,E,c){"use strict";function O(l){return l&&l.__esModule?l:{default:l}}function x(l){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:window.location;if(l.indexOf("data:")===0)return"";f=f||window.location,m||(m=document.createElement("a")),m.href=l,l=b.default.parse(m.href);var o=!l.port&&f.port===""||l.port===f.port;return l.hostname===f.hostname&&o&&l.protocol===f.protocol?"":"anonymous"}E.__esModule=!0,E.default=x;var _=c(131),b=O(_),m=void 0},function(B,E,c){"use strict";function O(m){return m&&m.__esModule?m:{default:m}}function x(m){return b.default.tablet||b.default.phone?4:m}E.__esModule=!0,E.default=x;var _=c(28),b=O(_)},function(B,E){"use strict";function c(O){O.__plugins={},O.registerPlugin=function(x,_){O.__plugins[x]=_},O.prototype.initPlugins=function(){this.plugins=this.plugins||{};for(var x in O.__plugins)this.plugins[x]=new O.__plugins[x](this)},O.prototype.destroyPlugins=function(){for(var x in this.plugins)this.plugins[x].destroy(),this.plugins[x]=null;this.plugins=null}}E.__esModule=!0,E.default={mixin:function(O){c(O)}}},function(B,E,c){"use strict";function O(a){if(a&&a.__esModule)return a;var s={};if(a!=null)for(var v in a)Object.prototype.hasOwnProperty.call(a,v)&&(s[v]=a[v]);return s.default=a,s}function x(a){var s=new Error().stack;typeof s=="undefined"?console.warn("Deprecation Warning: ",a):(s=s.split(`
|
|
`).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 use PIXI.settings.MIPMAP_TEXTURES"),b.settings.MIPMAP_TEXTURES},set:function(a){x("PIXI.MIPMAP_TEXTURES has been deprecated, please use PIXI.settings.MIPMAP_TEXTURES"),b.settings.MIPMAP_TEXTURES=a}},SPRITE_BATCH_SIZE:{enumerable:!0,get:function(){return x("PIXI.SPRITE_BATCH_SIZE has been deprecated, please use PIXI.settings.SPRITE_BATCH_SIZE"),b.settings.SPRITE_BATCH_SIZE},set:function(a){x("PIXI.SPRITE_BATCH_SIZE has been deprecated, please use PIXI.settings.SPRITE_BATCH_SIZE"),b.settings.SPRITE_BATCH_SIZE=a}},SPRITE_MAX_TEXTURES:{enumerable:!0,get:function(){return x("PIXI.SPRITE_MAX_TEXTURES has been deprecated, please use PIXI.settings.SPRITE_MAX_TEXTURES"),b.settings.SPRITE_MAX_TEXTURES},set:function(a){x("PIXI.SPRITE_MAX_TEXTURES has been deprecated, please use PIXI.settings.SPRITE_MAX_TEXTURES"),b.settings.SPRITE_MAX_TEXTURES=a}},RETINA_PREFIX:{enumerable:!0,get:function(){return x("PIXI.RETINA_PREFIX has been deprecated, please use PIXI.settings.RETINA_PREFIX"),b.settings.RETINA_PREFIX},set:function(a){x("PIXI.RETINA_PREFIX has been deprecated, please use PIXI.settings.RETINA_PREFIX"),b.settings.RETINA_PREFIX=a}},DEFAULT_RENDER_OPTIONS:{enumerable:!0,get:function(){return x("PIXI.DEFAULT_RENDER_OPTIONS has been deprecated, please use PIXI.settings.DEFAULT_RENDER_OPTIONS"),b.settings.RENDER_OPTIONS}}});for(var y=[{parent:"TRANSFORM_MODE",target:"TRANSFORM_MODE"},{parent:"GC_MODES",target:"GC_MODE"},{parent:"WRAP_MODES",target:"WRAP_MODE"},{parent:"SCALE_MODES",target:"SCALE_MODE"},{parent:"PRECISION",target:"PRECISION"}],d=function(a){var s=y[a];Object.defineProperty(b[s.parent],"DEFAULT",{enumerable:!0,get:function(){return x("PIXI."+s.parent+".DEFAULT has been deprecated, please use PIXI.settings."+s.target),b.settings[s.target]},set:function(v){x("PIXI."+s.parent+".DEFAULT has been deprecated, please use PIXI.settings."+s.target),b.settings[s.target]=v}})},w=0;w<y.length;w++)d(w);Object.defineProperties(t,{MovieClip:{enumerable:!0,get:function(){return x("The MovieClip class has been renamed to AnimatedSprite, please use AnimatedSprite from now on."),t.AnimatedSprite}}}),b.DisplayObject.prototype.generateTexture=function(a,s,v){return x("generateTexture has moved to the renderer, please use renderer.generateTexture(displayObject)"),a.generateTexture(this,s,v)},b.Graphics.prototype.generateTexture=function(a,s){return x("graphics generate texture has moved to the renderer. Or to render a graphics to a texture using canvas please use generateCanvasTexture"),this.generateCanvasTexture(a,s)},b.RenderTexture.prototype.render=function(a,s,v,P){this.legacyRenderer.render(a,this,v,s,!P),x("RenderTexture.render is now deprecated, please use renderer.render(displayObject, renderTexture)")},b.RenderTexture.prototype.getImage=function(a){return x("RenderTexture.getImage is now deprecated, please use renderer.extract.image(target)"),this.legacyRenderer.extract.image(a)},b.RenderTexture.prototype.getBase64=function(a){return x("RenderTexture.getBase64 is now deprecated, please use renderer.extract.base64(target)"),this.legacyRenderer.extract.base64(a)},b.RenderTexture.prototype.getCanvas=function(a){return x("RenderTexture.getCanvas is now deprecated, please use renderer.extract.canvas(target)"),this.legacyRenderer.extract.canvas(a)},b.RenderTexture.prototype.getPixels=function(a){return x("RenderTexture.getPixels is now deprecated, please use renderer.extract.pixels(target)"),this.legacyRenderer.pixels(a)},b.Sprite.prototype.setTexture=function(a){this.texture=a,x("setTexture is now deprecated, please use the texture property, e.g : sprite.texture = texture;")},t.BitmapText.prototype.setText=function(a){this.text=a,x("setText is now deprecated, please use the text property, e.g : myBitmapText.text = 'my text';")},b.Text.prototype.setText=function(a){this.text=a,x("setText is now deprecated, please use the text property, e.g : myText.text = 'my text';")},b.Text.prototype.setStyle=function(a){this.style=a,x("setStyle is now deprecated, please use the style property, e.g : myText.style = style;")},b.Text.prototype.determineFontProperties=function(a){return x("determineFontProperties is now deprecated, please use the static calculateFontProperties method, e.g : Text.calculateFontProperties(fontStyle);"),Text.calculateFontProperties(a)},Object.defineProperties(b.TextStyle.prototype,{font:{get:function(){x("text style property 'font' is now deprecated, please use the 'fontFamily', 'fontSize', 'fontStyle', 'fontVariant' and 'fontWeight' properties from now on");var a=typeof this._fontSize=="number"?this._fontSize+"px":this._fontSize;return this._fontStyle+" "+this._fontVariant+" "+this._fontWeight+" "+a+" "+this._fontFamily},set:function(a){x("text style property 'font' is now deprecated, please use the 'fontFamily','fontSize',fontStyle','fontVariant' and 'fontWeight' properties from now on"),a.indexOf("italic")>1?this._fontStyle="italic":a.indexOf("oblique")>-1?this._fontStyle="oblique":this._fontStyle="normal",a.indexOf("small-caps")>-1?this._fontVariant="small-caps":this._fontVariant="normal";var s=a.split(" "),v=-1;this._fontSize=26;for(var P=0;P<s.length;++P)if(s[P].match(/(px|pt|em|%)/)){v=P,this._fontSize=s[P];break}this._fontWeight="normal";for(var T=0;T<v;++T)if(s[T].match(/(bold|bolder|lighter|100|200|300|400|500|600|700|800|900)/)){this._fontWeight=s[T];break}if(v>-1&&v<s.length-1){this._fontFamily="";for(var C=v+1;C<s.length;++C)this._fontFamily+=s[C]+" ";this._fontFamily=this._fontFamily.slice(0,-1)}else this._fontFamily="Arial";this.styleID++}}}),b.Texture.prototype.setFrame=function(a){this.frame=a,x("setFrame is now deprecated, please use the frame property, e.g: myTexture.frame = frame;")},Object.defineProperties(n,{AbstractFilter:{get:function(){return x("AstractFilter has been renamed to Filter, please use PIXI.Filter"),b.AbstractFilter}},SpriteMaskFilter:{get:function(){return x("filters.SpriteMaskFilter is an undocumented alias, please use SpriteMaskFilter from now on."),b.SpriteMaskFilter}}}),b.utils.uuid=function(){return x("utils.uuid() is deprecated, please use utils.uid() from now on."),b.utils.uid()},b.utils.canUseNewCanvasBlendModes=function(){return x("utils.canUseNewCanvasBlendModes() is deprecated, please use CanvasTinter.canUseMultiply from now on"),b.CanvasTinter.canUseMultiply};var g=!0;Object.defineProperty(b.utils,"_saidHello",{set:function(a){a&&(x("PIXI.utils._saidHello is deprecated, please use PIXI.utils.skipHello()"),this.skipHello()),g=a},get:function(){return g}}),Object.defineProperty(h.canvas,"UPLOADS_PER_FRAME",{set:function(){x("PIXI.CanvasPrepare.UPLOADS_PER_FRAME has been removed. Please set renderer.plugins.prepare.limiter.maxItemsPerFrame on your renderer")},get:function(){return x("PIXI.CanvasPrepare.UPLOADS_PER_FRAME has been removed. Please use renderer.plugins.prepare.limiter"),NaN}}),Object.defineProperty(h.webgl,"UPLOADS_PER_FRAME",{set:function(){x("PIXI.WebGLPrepare.UPLOADS_PER_FRAME has been removed. Please set renderer.plugins.prepare.limiter.maxItemsPerFrame on your renderer")},get:function(){return x("PIXI.WebGLPrepare.UPLOADS_PER_FRAME has been removed. Please use renderer.plugins.prepare.limiter"),NaN}}),Object.defineProperties(u.Resource.prototype,{isJson:{get:function(){return x("The isJson property is deprecated, please use `resource.type === Resource.TYPE.JSON`."),this.type===u.Loader.Resource.TYPE.JSON}},isXml:{get:function(){return x("The isXml property is deprecated, please use `resource.type === Resource.TYPE.XML`."),this.type===u.Loader.Resource.TYPE.XML}},isImage:{get:function(){return x("The isImage property is deprecated, please use `resource.type === Resource.TYPE.IMAGE`."),this.type===u.Loader.Resource.TYPE.IMAGE}},isAudio:{get:function(){return x("The isAudio property is deprecated, please use `resource.type === Resource.TYPE.AUDIO`."),this.type===u.Loader.Resource.TYPE.AUDIO}},isVideo:{get:function(){return x("The isVideo property is deprecated, please use `resource.type === Resource.TYPE.VIDEO`."),this.type===u.Loader.Resource.TYPE.VIDEO}}}),Object.defineProperties(u.Loader.prototype,{before:{get:function(){return x("The before() method is deprecated, please use pre()."),this.pre}},after:{get:function(){return x("The after() method is deprecated, please use use()."),this.use}}})},function(B,E,c){"use strict";function O(f){if(f&&f.__esModule)return f;var o={};if(f!=null)for(var e in f)Object.prototype.hasOwnProperty.call(f,e)&&(o[e]=f[e]);return o.default=f,o}function x(f,o){if(!(f instanceof o))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var _=c(1),b=O(_),m=new b.Rectangle,l=function(){function f(o){x(this,f),this.renderer=o,o.extract=this}return f.prototype.image=function(e){var t=new Image;return t.src=this.base64(e),t},f.prototype.base64=function(o){return this.canvas(o).toDataURL()},f.prototype.canvas=function(o){var e=this.renderer,t=void 0,i=void 0,n=void 0,r=void 0;o&&(r=o instanceof b.RenderTexture?o:e.generateTexture(o)),r?(t=r.baseTexture._canvasRenderTarget.context,i=r.baseTexture._canvasRenderTarget.resolution,n=r.frame):(t=e.rootContext,n=m,n.width=this.renderer.width,n.height=this.renderer.height);var h=n.width*i,p=n.height*i,u=new b.CanvasRenderTarget(h,p),y=t.getImageData(n.x*i,n.y*i,h,p);return u.context.putImageData(y,0,0),u.canvas},f.prototype.pixels=function(o){var e=this.renderer,t=void 0,i=void 0,n=void 0,r=void 0;return o&&(r=o instanceof b.RenderTexture?o:e.generateTexture(o)),r?(t=r.baseTexture._canvasRenderTarget.context,i=r.baseTexture._canvasRenderTarget.resolution,n=r.frame):(t=e.rootContext,n=m,n.width=e.width,n.height=e.height),t.getImageData(0,0,n.width*i,n.height*i).data},f.prototype.destroy=function(){this.renderer.extract=null,this.renderer=null},f}();E.default=l,b.CanvasRenderer.registerPlugin("extract",l)},function(B,E,c){"use strict";function O(b){return b&&b.__esModule?b:{default:b}}E.__esModule=!0;var x=c(224);Object.defineProperty(E,"webgl",{enumerable:!0,get:function(){return O(x).default}});var _=c(222);Object.defineProperty(E,"canvas",{enumerable:!0,get:function(){return O(_).default}})},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")}E.__esModule=!0;var _=c(1),b=O(_),m=new b.Rectangle,l=4,f=function(){function o(e){x(this,o),this.renderer=e,e.extract=this}return o.prototype.image=function(t){var i=new Image;return i.src=this.base64(t),i},o.prototype.base64=function(e){return this.canvas(e).toDataURL()},o.prototype.canvas=function(e){var t=this.renderer,i=void 0,n=void 0,r=void 0,h=!1,p=void 0;e&&(p=e instanceof b.RenderTexture?e:this.renderer.generateTexture(e)),p?(i=p.baseTexture._glRenderTargets[this.renderer.CONTEXT_UID],n=i.resolution,r=p.frame,h=!1):(i=this.renderer.rootRenderTarget,n=i.resolution,h=!0,r=m,r.width=i.size.width,r.height=i.size.height);var u=r.width*n,y=r.height*n,d=new b.CanvasRenderTarget(u,y);if(i){t.bindRenderTarget(i);var w=new Uint8Array(l*u*y),g=t.gl;g.readPixels(r.x*n,r.y*n,u,y,g.RGBA,g.UNSIGNED_BYTE,w);var a=d.context.getImageData(0,0,u,y);a.data.set(w),d.context.putImageData(a,0,0),h&&(d.context.scale(1,-1),d.context.drawImage(d.canvas,0,-y))}return d.canvas},o.prototype.pixels=function(e){var t=this.renderer,i=void 0,n=void 0,r=void 0,h=void 0;e&&(h=e instanceof b.RenderTexture?e:this.renderer.generateTexture(e)),h?(i=h.baseTexture._glRenderTargets[this.renderer.CONTEXT_UID],n=i.resolution,r=h.frame):(i=this.renderer.rootRenderTarget,n=i.resolution,r=m,r.width=i.size.width,r.height=i.size.height);var p=r.width*n,u=r.height*n,y=new Uint8Array(l*p*u);if(i){t.bindRenderTarget(i);var d=t.gl;d.readPixels(r.x*n,r.y*n,p,u,d.RGBA,d.UNSIGNED_BYTE,y)}return y},o.prototype.destroy=function(){this.renderer.extract=null,this.renderer=null},o}();E.default=f,b.WebGLRenderer.registerPlugin("extract",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=function(e){function t(i){x(this,t);var n=_(this,e.call(this,i[0]instanceof f.Texture?i[0]:i[0].texture));return n._textures=null,n._durations=null,n.textures=i,n.animationSpeed=1,n.loop=!0,n.onComplete=null,n.onFrameChange=null,n._currentTime=0,n.playing=!1,n}return b(t,e),t.prototype.stop=function(){this.playing&&(this.playing=!1,f.ticker.shared.remove(this.update,this))},t.prototype.play=function(){this.playing||(this.playing=!0,f.ticker.shared.add(this.update,this))},t.prototype.gotoAndStop=function(i){this.stop();var n=this.currentFrame;this._currentTime=i,n!==this.currentFrame&&this.updateTexture()},t.prototype.gotoAndPlay=function(i){var n=this.currentFrame;this._currentTime=i,n!==this.currentFrame&&this.updateTexture(),this.play()},t.prototype.update=function(i){var n=this.animationSpeed*i,r=this.currentFrame;if(this._durations!==null){var h=this._currentTime%1*this._durations[this.currentFrame];for(h+=n/60*1e3;h<0;)this._currentTime--,h+=this._durations[this.currentFrame];var p=Math.sign(this.animationSpeed*i);for(this._currentTime=Math.floor(this._currentTime);h>=this._durations[this.currentFrame];)h-=this._durations[this.currentFrame]*p,this._currentTime+=p;this._currentTime+=h/this._durations[this.currentFrame]}else this._currentTime+=n;this._currentTime<0&&!this.loop?(this.gotoAndStop(0),this.onComplete&&this.onComplete()):this._currentTime>=this._textures.length&&!this.loop?(this.gotoAndStop(this._textures.length-1),this.onComplete&&this.onComplete()):r!==this.currentFrame&&this.updateTexture()},t.prototype.updateTexture=function(){this._texture=this._textures[this.currentFrame],this._textureID=-1,this.onFrameChange&&this.onFrameChange(this.currentFrame)},t.prototype.destroy=function(){this.stop(),e.prototype.destroy.call(this)},t.fromFrames=function(i){for(var n=[],r=0;r<i.length;++r)n.push(f.Texture.fromFrame(i[r]));return new t(n)},t.fromImages=function(i){for(var n=[],r=0;r<i.length;++r)n.push(f.Texture.fromImage(i[r]));return new t(n)},m(t,[{key:"totalFrames",get:function(){return this._textures.length}},{key:"textures",get:function(){return this._textures},set:function(i){if(i[0]instanceof f.Texture)this._textures=i,this._durations=null;else{this._textures=[],this._durations=[];for(var n=0;n<i.length;n++)this._textures.push(i[n].texture),this._durations.push(i[n].time)}}},{key:"currentFrame",get:function(){var i=Math.floor(this._currentTime)%this._textures.length;return i<0&&(i+=this._textures.length),i}}]),t}(f.Sprite);E.default=o},function(B,E,c){"use strict";function O(n){return n&&n.__esModule?n:{default:n}}function x(n){if(n&&n.__esModule)return n;var r={};if(n!=null)for(var h in n)Object.prototype.hasOwnProperty.call(n,h)&&(r[h]=n[h]);return r.default=n,r}function _(n,r){if(!(n instanceof r))throw new TypeError("Cannot call a class as a function")}function b(n,r){if(!n)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!r||typeof r!="object"&&typeof r!="function"?n:r}function m(n,r){if(typeof r!="function"&&r!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof r);n.prototype=Object.create(r&&r.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),r&&(Object.setPrototypeOf?Object.setPrototypeOf(n,r):n.__proto__=r)}E.__esModule=!0;var l=function(){function n(r,h){for(var p=0;p<h.length;p++){var u=h[p];u.enumerable=u.enumerable||!1,u.configurable=!0,"value"in u&&(u.writable=!0),Object.defineProperty(r,u.key,u)}}return function(r,h,p){return h&&n(r.prototype,h),p&&n(r,p),r}}(),f=c(1),o=x(f),e=c(98),t=O(e),i=function(n){function r(h){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};_(this,r);var u=b(this,n.call(this));return u._textWidth=0,u._textHeight=0,u._glyphs=[],u._font={tint:p.tint!==void 0?p.tint:16777215,align:p.align||"left",name:null,size:0},u.font=p.font,u._text=h,u.maxWidth=0,u.maxLineHeight=0,u._anchor=new t.default(function(){u.dirty=!0},u,0,0),u.dirty=!1,u.updateText(),u}return m(r,n),r.prototype.updateText=function(){for(var h=r.fonts[this._font.name],p=this._font.size/h.size,u=new o.Point,y=[],d=[],w=null,g=0,a=0,s=0,v=-1,P=0,T=0,C=0;C<this.text.length;C++){var M=this.text.charCodeAt(C);if(/(\s)/.test(this.text.charAt(C))&&(v=C,P=g),/(?:\r\n|\r|\n)/.test(this.text.charAt(C)))d.push(g),a=Math.max(a,g),s++,u.x=0,u.y+=h.lineHeight,w=null;else if(v!==-1&&this.maxWidth>0&&u.x*p>this.maxWidth)o.utils.removeItems(y,v,C-v),C=v,v=-1,d.push(P),a=Math.max(a,P),s++,u.x=0,u.y+=h.lineHeight,w=null;else{var R=h.chars[M];R&&(w&&R.kerning[w]&&(u.x+=R.kerning[w]),y.push({texture:R.texture,line:s,charCode:M,position:new o.Point(u.x+R.xOffset,u.y+R.yOffset)}),g=u.x+(R.texture.width+R.xOffset),u.x+=R.xAdvance,T=Math.max(T,R.yOffset+R.texture.height),w=M)}}d.push(g),a=Math.max(a,g);for(var S=[],L=0;L<=s;L++){var A=0;this._font.align==="right"?A=a-d[L]:this._font.align==="center"&&(A=(a-d[L])/2),S.push(A)}for(var D=y.length,I=this.tint,U=0;U<D;U++){var N=this._glyphs[U];N?N.texture=y[U].texture:(N=new o.Sprite(y[U].texture),this._glyphs.push(N)),N.position.x=(y[U].position.x+S[y[U].line])*p,N.position.y=y[U].position.y*p,N.scale.x=N.scale.y=p,N.tint=I,N.parent||this.addChild(N)}for(var W=D;W<this._glyphs.length;++W)this.removeChild(this._glyphs[W]);if(this._textWidth=a*p,this._textHeight=(u.y+h.lineHeight)*p,this.anchor.x!==0||this.anchor.y!==0)for(var H=0;H<D;H++)this._glyphs[H].x-=this._textWidth*this.anchor.x,this._glyphs[H].y-=this._textHeight*this.anchor.y;this.maxLineHeight=T*p},r.prototype.updateTransform=function(){this.validate(),this.containerUpdateTransform()},r.prototype.getLocalBounds=function(){return this.validate(),n.prototype.getLocalBounds.call(this)},r.prototype.validate=function(){this.dirty&&(this.updateText(),this.dirty=!1)},l(r,[{key:"tint",get:function(){return this._font.tint},set:function(h){this._font.tint=typeof h=="number"&&h>=0?h:16777215,this.dirty=!0}},{key:"align",get:function(){return this._font.align},set:function(h){this._font.align=h||"left",this.dirty=!0}},{key:"anchor",get:function(){return this._anchor},set:function(h){typeof h=="number"?this._anchor.set(h):this._anchor.copy(h)}},{key:"font",get:function(){return this._font},set:function(h){h&&(typeof h=="string"?(h=h.split(" "),this._font.name=h.length===1?h[0]:h.slice(1).join(" "),this._font.size=h.length>=2?parseInt(h[0],10):r.fonts[this._font.name].size):(this._font.name=h.name,this._font.size=typeof h.size=="number"?h.size:parseInt(h.size,10)),this.dirty=!0)}},{key:"text",get:function(){return this._text},set:function(h){h=h.toString()||" ",this._text!==h&&(this._text=h,this.dirty=!0)}},{key:"textWidth",get:function(){return this.validate(),this._textWidth}},{key:"textHeight",get:function(){return this.validate(),this._textHeight}}]),r}(o.Container);E.default=i,i.fonts={}},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!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);p.prototype=Object.create(u&&u.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(p,u):p.__proto__=u)}E.__esModule=!0;var l=function(){function p(u,y){for(var d=0;d<y.length;d++){var w=y[d];w.enumerable=w.enumerable||!1,w.configurable=!0,"value"in w&&(w.writable=!0),Object.defineProperty(u,w.key,w)}}return function(u,y,d){return y&&p(u.prototype,y),d&&p(u,d),u}}(),f=c(1),o=x(f),e=c(64),t=O(e),i=c(110),n=O(i),r=new o.Point,h=function(p){function u(y){var d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:100,w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:100;_(this,u);var g=b(this,p.call(this,y));return g.tileTransform=new o.TransformStatic,g._width=d,g._height=w,g._canvasPattern=null,g.uvTransform=y.transform||new n.default(y),g.pluginName="tilingSprite",g}return m(u,p),u.prototype._onTextureUpdate=function(){this.uvTransform&&(this.uvTransform.texture=this._texture)},u.prototype._renderWebGL=function(y){var d=this._texture;d&&d.valid&&(this.tileTransform.updateLocalTransform(),this.uvTransform.update(),y.setObjectRenderer(y.plugins[this.pluginName]),y.plugins[this.pluginName].render(this))},u.prototype._renderCanvas=function(y){var d=this._texture;if(d.baseTexture.hasLoaded){var w=y.context,g=this.worldTransform,a=y.resolution,s=d.baseTexture,v=d.baseTexture.resolution,P=this.tilePosition.x/this.tileScale.x%d._frame.width,T=this.tilePosition.y/this.tileScale.y%d._frame.height;if(!this._canvasPattern){var C=new o.CanvasRenderTarget(d._frame.width,d._frame.height,v);this.tint!==16777215?(this.cachedTint!==this.tint&&(this.cachedTint=this.tint,this.tintedTexture=t.default.getTintedTexture(this,this.tint)),C.context.drawImage(this.tintedTexture,0,0)):C.context.drawImage(s.source,-d._frame.x,-d._frame.y),this._canvasPattern=C.context.createPattern(C.canvas,"repeat")}w.globalAlpha=this.worldAlpha,w.setTransform(g.a*a,g.b*a,g.c*a,g.d*a,g.tx*a,g.ty*a),w.scale(this.tileScale.x/v,this.tileScale.y/v),w.translate(P+this.anchor.x*-this._width,T+this.anchor.y*-this._height),y.setBlendMode(this.blendMode),w.fillStyle=this._canvasPattern,w.fillRect(-P,-T,this._width/this.tileScale.x*v,this._height/this.tileScale.y*v)}},u.prototype._calculateBounds=function(){var y=this._width*-this._anchor._x,d=this._height*-this._anchor._y,w=this._width*(1-this._anchor._x),g=this._height*(1-this._anchor._y);this._bounds.addFrame(this.transform,y,d,w,g)},u.prototype.getLocalBounds=function(y){return this.children.length===0?(this._bounds.minX=this._width*-this._anchor._x,this._bounds.minY=this._height*-this._anchor._y,this._bounds.maxX=this._width*(1-this._anchor._x),this._bounds.maxY=this._height*(1-this._anchor._x),y||(this._localBoundsRect||(this._localBoundsRect=new o.Rectangle),y=this._localBoundsRect),this._bounds.getRectangle(y)):p.prototype.getLocalBounds.call(this,y)},u.prototype.containsPoint=function(y){this.worldTransform.applyInverse(y,r);var d=this._width,w=this._height,g=-d*this.anchor._x;if(r.x>g&&r.x<g+d){var a=-w*this.anchor._y;if(r.y>a&&r.y<a+w)return!0}return!1},u.prototype.destroy=function(){p.prototype.destroy.call(this),this.tileTransform=null,this.uvTransform=null},u.from=function(y,d,w){return new u(o.Texture.from(y),d,w)},u.fromFrame=function(y,d,w){var g=o.utils.TextureCache[y];if(!g)throw new Error('The frameId "'+y+'" does not exist in the texture cache '+this);return new u(g,d,w)},u.fromImage=function(y,d,w,g,a){return new u(o.Texture.fromImage(y,g,a),d,w)},l(u,[{key:"clampMargin",get:function(){return this.uvTransform.clampMargin},set:function(y){this.uvTransform.clampMargin=y,this.uvTransform.update(!0)}},{key:"tileScale",get:function(){return this.tileTransform.scale},set:function(y){this.tileTransform.scale.copy(y)}},{key:"tilePosition",get:function(){return this.tileTransform.position},set:function(y){this.tileTransform.position.copy(y)}},{key:"width",get:function(){return this._width},set:function(y){this._width=y}},{key:"height",get:function(){return this._height},set:function(y){this._height=y}}]),u}(o.Sprite);E.default=h},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")}var _=c(1),b=O(_),m=b.DisplayObject,l=new b.Matrix;m.prototype._cacheAsBitmap=!1,m.prototype._cacheData=!1;var f=function o(){x(this,o),this.originalRenderWebGL=null,this.originalRenderCanvas=null,this.originalCalculateBounds=null,this.originalGetLocalBounds=null,this.originalUpdateTransform=null,this.originalHitTest=null,this.originalDestroy=null,this.originalMask=null,this.originalFilterArea=null,this.sprite=null};Object.defineProperties(m.prototype,{cacheAsBitmap:{get:function(){return this._cacheAsBitmap},set:function(o){if(this._cacheAsBitmap!==o){this._cacheAsBitmap=o;var e=void 0;o?(this._cacheData||(this._cacheData=new f),e=this._cacheData,e.originalRenderWebGL=this.renderWebGL,e.originalRenderCanvas=this.renderCanvas,e.originalUpdateTransform=this.updateTransform,e.originalCalculateBounds=this._calculateBounds,e.originalGetLocalBounds=this.getLocalBounds,e.originalDestroy=this.destroy,e.originalContainsPoint=this.containsPoint,e.originalMask=this._mask,e.originalFilterArea=this.filterArea,this.renderWebGL=this._renderCachedWebGL,this.renderCanvas=this._renderCachedCanvas,this.destroy=this._cacheAsBitmapDestroy):(e=this._cacheData,e.sprite&&this._destroyCachedDisplayObject(),this.renderWebGL=e.originalRenderWebGL,this.renderCanvas=e.originalRenderCanvas,this._calculateBounds=e.originalCalculateBounds,this.getLocalBounds=e.originalGetLocalBounds,this.destroy=e.originalDestroy,this.updateTransform=e.originalUpdateTransform,this.containsPoint=e.originalContainsPoint,this._mask=e.originalMask,this.filterArea=e.originalFilterArea)}}}}),m.prototype._renderCachedWebGL=function(o){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObject(o),this._cacheData.sprite._transformID=-1,this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite._renderWebGL(o))},m.prototype._initCachedDisplayObject=function(o){if(!this._cacheData||!this._cacheData.sprite){var e=this.alpha;this.alpha=1,o.currentRenderer.flush();var t=this.getLocalBounds().clone();if(this._filters){var i=this._filters[0].padding;t.pad(i)}var n=o._activeRenderTarget,r=o.filterManager.filterStack,h=b.RenderTexture.create(0|t.width,0|t.height),p=l;p.tx=-t.x,p.ty=-t.y,this.transform.worldTransform.identity(),this.renderWebGL=this._cacheData.originalRenderWebGL,o.render(this,h,!0,p,!0),o.bindRenderTarget(n),o.filterManager.filterStack=r,this.renderWebGL=this._renderCachedWebGL,this.updateTransform=this.displayObjectUpdateTransform,this._mask=null,this.filterArea=null;var u=new b.Sprite(h);u.transform.worldTransform=this.transform.worldTransform,u.anchor.x=-(t.x/t.width),u.anchor.y=-(t.y/t.height),u.alpha=e,u._bounds=this._bounds,this._calculateBounds=this._calculateCachedBounds,this.getLocalBounds=this._getCachedLocalBounds,this._cacheData.sprite=u,this.transform._parentID=-1,this.updateTransform(),this.containsPoint=u.containsPoint.bind(u)}},m.prototype._renderCachedCanvas=function(o){!this.visible||this.worldAlpha<=0||!this.renderable||(this._initCachedDisplayObjectCanvas(o),this._cacheData.sprite.worldAlpha=this.worldAlpha,this._cacheData.sprite.renderCanvas(o))},m.prototype._initCachedDisplayObjectCanvas=function(o){if(!this._cacheData||!this._cacheData.sprite){var e=this.getLocalBounds(),t=this.alpha;this.alpha=1;var i=o.context,n=b.RenderTexture.create(0|e.width,0|e.height),r=l;this.transform.worldTransform.copy(r),r.invert(),r.tx-=e.x,r.ty-=e.y,this.renderCanvas=this._cacheData.originalRenderCanvas,o.render(this,n,!0,r,!1),o.context=i,this.renderCanvas=this._renderCachedCanvas,this._calculateBounds=this._calculateCachedBounds,this._mask=null,this.filterArea=null;var h=new b.Sprite(n);h.transform.worldTransform=this.transform.worldTransform,h.anchor.x=-(e.x/e.width),h.anchor.y=-(e.y/e.height),h._bounds=this._bounds,h.alpha=t,this.updateTransform(),this.updateTransform=this.displayObjectUpdateTransform,this._cacheData.sprite=h,this.containsPoint=h.containsPoint.bind(h)}},m.prototype._calculateCachedBounds=function(){this._cacheData.sprite._calculateBounds()},m.prototype._getCachedLocalBounds=function(){return this._cacheData.sprite.getLocalBounds()},m.prototype._destroyCachedDisplayObject=function(){this._cacheData.sprite._texture.destroy(!0),this._cacheData.sprite=null},m.prototype._cacheAsBitmapDestroy=function(){this.cacheAsBitmap=!1,this.destroy()}},function(B,E,c){"use strict";function O(b){if(b&&b.__esModule)return b;var m={};if(b!=null)for(var l in b)Object.prototype.hasOwnProperty.call(b,l)&&(m[l]=b[l]);return m.default=b,m}var x=c(1),_=O(x);_.DisplayObject.prototype.name=null,_.Container.prototype.getChildByName=function(b){for(var m=0;m<this.children.length;m++)if(this.children[m].name===b)return this.children[m];return null}},function(B,E,c){"use strict";function O(b){if(b&&b.__esModule)return b;var m={};if(b!=null)for(var l in b)Object.prototype.hasOwnProperty.call(b,l)&&(m[l]=b[l]);return m.default=b,m}var x=c(1),_=O(x);_.DisplayObject.prototype.getGlobalPosition=function(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new _.Point,m=arguments.length>1&&arguments[1]!==void 0&&arguments[1];return this.parent?this.parent.toGlobal(this.position,b,m):(b.x=this.position.x,b.y=this.position.y),b}},function(B,E,c){"use strict";function O(i){if(i&&i.__esModule)return i;var n={};if(i!=null)for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r]);return n.default=i,n}function x(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function _(i,n){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||typeof n!="object"&&typeof n!="function"?i:n}function b(i,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);i.prototype=Object.create(n&&n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(i,n):i.__proto__=n)}E.__esModule=!0;var m=c(1),l=O(m),f=c(2),o=(c(7),new l.Matrix),e=new Float32Array(4),t=function(i){function n(r){x(this,n);var h=_(this,i.call(this,r));return h.shader=null,h.simpleShader=null,h.quad=null,h}return b(n,i),n.prototype.onContextChange=function(){var r=this.renderer.gl;this.shader=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;
|
|
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");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;
|
|
}`,`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,.5241648018700465,0,5.159190588235296,0,0,0,1,0];this._loadMatrix(n,i)},t.prototype.colorTone=function(i,n,r,h,p){i=i||.2,n=n||.15,r=r||16770432,h=h||3375104;var u=(r>>16&255)/255,y=(r>>8&255)/255,d=(255&r)/255,w=(h>>16&255)/255,g=(h>>8&255)/255,a=(255&h)/255,s=[.3,.59,.11,0,0,u,y,d,i,0,w,g,a,n,0,u-w,y-g,d-a,0,0];this._loadMatrix(s,p)},t.prototype.night=function(i,n){i=i||.1;var r=[i*-2,-i,0,0,0,-i,0,i,0,0,0,i,2*i,0,0,0,0,0,1,0];this._loadMatrix(r,n)},t.prototype.predator=function(i,n){var r=[11.224130630493164*i,-4.794486999511719*i,-2.8746118545532227*i,0*i,.40342438220977783*i,-3.6330697536468506*i,9.193157196044922*i,-2.951810836791992*i,0*i,-1.316135048866272*i,-3.2184197902679443*i,-4.2375030517578125*i,7.476448059082031*i,0*i,.8044459223747253*i,0,0,0,1,0];this._loadMatrix(r,n)},t.prototype.lsd=function(i){var n=[2,-.4,.5,0,0,-.5,2,-.4,0,0,-.4,-.5,3,0,0,0,0,0,1,0];this._loadMatrix(n,i)},t.prototype.reset=function(){var i=[1,0,0,0,0,0,1,0,0,0,0,0,1,0,0,0,0,0,1,0];this._loadMatrix(i,!1)},m(t,[{key:"matrix",get:function(){return this.uniforms.m},set:function(i){this.uniforms.m=i}}]),t}(f.Filter));E.default=o,o.prototype.grayscale=o.prototype.greyscale},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(i,n){x(this,t);var r=new f.Matrix;i.renderable=!1;var h=_(this,e.call(this,`attribute vec2 aVertexPosition;
|
|
attribute vec2 aTextureCoord;
|
|
|
|
uniform mat3 projectionMatrix;
|
|
uniform mat3 filterMatrix;
|
|
|
|
varying vec2 vTextureCoord;
|
|
varying vec2 vFilterCoord;
|
|
|
|
void main(void)
|
|
{
|
|
gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0);
|
|
vFilterCoord = ( filterMatrix * vec3( aTextureCoord, 1.0) ).xy;
|
|
vTextureCoord = aTextureCoord;
|
|
}`,`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.addEventListener("pointerout",this.onPointerOut,!0),this.interactionDOMElement.addEventListener("pointerover",this.onPointerOver,!0),window.addEventListener("pointerup",this.onPointerUp,!0)):(this.normalizeTouchEvents&&(this.interactionDOMElement.addEventListener("touchstart",this.onPointerDown,!0),this.interactionDOMElement.addEventListener("touchend",this.onPointerUp,!0),this.interactionDOMElement.addEventListener("touchmove",this.onPointerMove,!0)),this.normalizeMouseEvents&&(window.document.addEventListener("mousemove",this.onPointerMove,!0),this.interactionDOMElement.addEventListener("mousedown",this.onPointerDown,!0),this.interactionDOMElement.addEventListener("mouseout",this.onPointerOut,!0),this.interactionDOMElement.addEventListener("mouseover",this.onPointerOver,!0),window.addEventListener("mouseup",this.onPointerUp,!0))),window.document.addEventListener("mousemove",this.onMouseMove,!0),this.interactionDOMElement.addEventListener("mousedown",this.onMouseDown,!0),this.interactionDOMElement.addEventListener("mouseout",this.onMouseOut,!0),this.interactionDOMElement.addEventListener("mouseover",this.onMouseOver,!0),window.addEventListener("mouseup",this.onMouseUp,!0),this.supportsTouchEvents&&(this.interactionDOMElement.addEventListener("touchstart",this.onTouchStart,!0),this.interactionDOMElement.addEventListener("touchend",this.onTouchEnd,!0),this.interactionDOMElement.addEventListener("touchmove",this.onTouchMove,!0)),this.eventsAdded=!0)},g.prototype.removeEvents=function(){this.interactionDOMElement&&(f.ticker.shared.remove(this.update,this),window.navigator.msPointerEnabled?(this.interactionDOMElement.style["-ms-content-zooming"]="",this.interactionDOMElement.style["-ms-touch-action"]=""):this.supportsPointerEvents&&(this.interactionDOMElement.style["touch-action"]=""),this.supportsPointerEvents?(window.document.removeEventListener("pointermove",this.onPointerMove,!0),this.interactionDOMElement.removeEventListener("pointerdown",this.onPointerDown,!0),this.interactionDOMElement.removeEventListener("pointerout",this.onPointerOut,!0),this.interactionDOMElement.removeEventListener("pointerover",this.onPointerOver,!0),window.removeEventListener("pointerup",this.onPointerUp,!0)):(this.normalizeTouchEvents&&(this.interactionDOMElement.removeEventListener("touchstart",this.onPointerDown,!0),this.interactionDOMElement.removeEventListener("touchend",this.onPointerUp,!0),this.interactionDOMElement.removeEventListener("touchmove",this.onPointerMove,!0)),this.normalizeMouseEvents&&(window.document.removeEventListener("mousemove",this.onPointerMove,!0),this.interactionDOMElement.removeEventListener("mousedown",this.onPointerDown,!0),this.interactionDOMElement.removeEventListener("mouseout",this.onPointerOut,!0),this.interactionDOMElement.removeEventListener("mouseover",this.onPointerOver,!0),window.removeEventListener("mouseup",this.onPointerUp,!0))),window.document.removeEventListener("mousemove",this.onMouseMove,!0),this.interactionDOMElement.removeEventListener("mousedown",this.onMouseDown,!0),this.interactionDOMElement.removeEventListener("mouseout",this.onMouseOut,!0),this.interactionDOMElement.removeEventListener("mouseover",this.onMouseOver,!0),window.removeEventListener("mouseup",this.onMouseUp,!0),this.supportsTouchEvents&&(this.interactionDOMElement.removeEventListener("touchstart",this.onTouchStart,!0),this.interactionDOMElement.removeEventListener("touchend",this.onTouchEnd,!0),this.interactionDOMElement.removeEventListener("touchmove",this.onTouchMove,!0)),this.interactionDOMElement=null,this.eventsAdded=!1)},g.prototype.update=function(a){if(this._deltaTime+=a,!(this._deltaTime<this.interactionFrequency)&&(this._deltaTime=0,this.interactionDOMElement)){if(this.didMove)return void(this.didMove=!1);this.cursor=this.defaultCursorStyle,this.eventData._reset(),this.processInteractive(this.mouse.global,this.renderer._lastObjectRendered,this.processMouseOverOut,!0),this.currentCursorStyle!==this.cursor&&(this.currentCursorStyle=this.cursor,this.interactionDOMElement.style.cursor=this.cursor)}},g.prototype.dispatchEvent=function(a,s,v){v.stopped||(v.currentTarget=a,v.type=s,a.emit(s,v),a[s]&&a[s](v))},g.prototype.mapPositionToPoint=function(a,s,v){var P=void 0;P=this.interactionDOMElement.parentElement?this.interactionDOMElement.getBoundingClientRect():{x:0,y:0,width:0,height:0};var T=navigator.isCocoonJS?this.resolution:1/this.resolution;a.x=(s-P.left)*(this.interactionDOMElement.width/P.width)*T,a.y=(v-P.top)*(this.interactionDOMElement.height/P.height)*T},g.prototype.processInteractive=function(a,s,v,P,T){if(!s||!s.visible)return!1;T=s.interactive||T;var C=!1,M=T;if(s.hitArea&&(M=!1),P&&s._mask&&(s._mask.containsPoint(a)||(P=!1)),P&&s.filterArea&&(s.filterArea.contains(a.x,a.y)||(P=!1)),s.interactiveChildren&&s.children)for(var R=s.children,S=R.length-1;S>=0;S--){var L=R[S];if(this.processInteractive(a,L,v,P,M)){if(!L.parent)continue;C=!0,M=!1,P=!1}}return T&&(P&&!C&&(s.hitArea?(s.worldTransform.applyInverse(a,this._tempPoint),C=s.hitArea.contains(this._tempPoint.x,this._tempPoint.y)):s.containsPoint&&(C=s.containsPoint(a))),s.interactive&&(C&&!this.eventData.target&&(this.eventData.target=s,this.mouse.target=s,this.pointer.target=s),v(s,C))),C},g.prototype.onMouseDown=function(a){this.mouse.originalEvent=a,this.eventData.data=this.mouse,this.eventData._reset(),this.mapPositionToPoint(this.mouse.global,a.clientX,a.clientY),this.autoPreventDefault&&this.mouse.originalEvent.preventDefault(),this.processInteractive(this.mouse.global,this.renderer._lastObjectRendered,this.processMouseDown,!0);var s=a.button===2||a.which===3;this.emit(s?"rightdown":"mousedown",this.eventData)},g.prototype.processMouseDown=function(a,s){var v=this.mouse.originalEvent,P=v.button===2||v.which===3;s&&(a[P?"_isRightDown":"_isLeftDown"]=!0,this.dispatchEvent(a,P?"rightdown":"mousedown",this.eventData))},g.prototype.onMouseUp=function(a){this.mouse.originalEvent=a,this.eventData.data=this.mouse,this.eventData._reset(),this.mapPositionToPoint(this.mouse.global,a.clientX,a.clientY),this.processInteractive(this.mouse.global,this.renderer._lastObjectRendered,this.processMouseUp,!0);var s=a.button===2||a.which===3;this.emit(s?"rightup":"mouseup",this.eventData)},g.prototype.processMouseUp=function(a,s){var v=this.mouse.originalEvent,P=v.button===2||v.which===3,T=P?"_isRightDown":"_isLeftDown";s?(this.dispatchEvent(a,P?"rightup":"mouseup",this.eventData),a[T]&&(a[T]=!1,this.dispatchEvent(a,P?"rightclick":"click",this.eventData))):a[T]&&(a[T]=!1,this.dispatchEvent(a,P?"rightupoutside":"mouseupoutside",this.eventData))},g.prototype.onMouseMove=function(a){this.mouse.originalEvent=a,this.eventData.data=this.mouse,this.eventData._reset(),this.mapPositionToPoint(this.mouse.global,a.clientX,a.clientY),this.didMove=!0,this.cursor=this.defaultCursorStyle,this.processInteractive(this.mouse.global,this.renderer._lastObjectRendered,this.processMouseMove,!0),this.emit("mousemove",this.eventData),this.currentCursorStyle!==this.cursor&&(this.currentCursorStyle=this.cursor,this.interactionDOMElement.style.cursor=this.cursor)},g.prototype.processMouseMove=function(a,s){this.processMouseOverOut(a,s),this.moveWhenInside&&!s||this.dispatchEvent(a,"mousemove",this.eventData)},g.prototype.onMouseOut=function(a){this.mouseOverRenderer=!1,this.mouse.originalEvent=a,this.eventData.data=this.mouse,this.eventData._reset(),this.mapPositionToPoint(this.mouse.global,a.clientX,a.clientY),this.interactionDOMElement.style.cursor=this.defaultCursorStyle,this.mapPositionToPoint(this.mouse.global,a.clientX,a.clientY),this.processInteractive(this.mouse.global,this.renderer._lastObjectRendered,this.processMouseOverOut,!1),this.emit("mouseout",this.eventData)},g.prototype.processMouseOverOut=function(a,s){s&&this.mouseOverRenderer?(a._mouseOver||(a._mouseOver=!0,this.dispatchEvent(a,"mouseover",this.eventData)),a.buttonMode&&(this.cursor=a.defaultCursor)):a._mouseOver&&(a._mouseOver=!1,this.dispatchEvent(a,"mouseout",this.eventData))},g.prototype.onMouseOver=function(a){this.mouseOverRenderer=!0,this.mouse.originalEvent=a,this.eventData.data=this.mouse,this.eventData._reset(),this.emit("mouseover",this.eventData)},g.prototype.onPointerDown=function(a){this.normalizeToPointerData(a),this.pointer.originalEvent=a,this.eventData.data=this.pointer,this.eventData._reset(),this.mapPositionToPoint(this.pointer.global,a.clientX,a.clientY),this.autoPreventDefault&&(this.normalizeMouseEvents||this.normalizeTouchEvents)&&this.pointer.originalEvent.preventDefault(),this.processInteractive(this.pointer.global,this.renderer._lastObjectRendered,this.processPointerDown,!0),this.emit("pointerdown",this.eventData)},g.prototype.processPointerDown=function(a,s){s&&(a._pointerDown=!0,this.dispatchEvent(a,"pointerdown",this.eventData))},g.prototype.onPointerUp=function(a){this.normalizeToPointerData(a),this.pointer.originalEvent=a,this.eventData.data=this.pointer,this.eventData._reset(),this.mapPositionToPoint(this.pointer.global,a.clientX,a.clientY),this.processInteractive(this.pointer.global,this.renderer._lastObjectRendered,this.processPointerUp,!0),this.emit("pointerup",this.eventData)},g.prototype.processPointerUp=function(a,s){s?(this.dispatchEvent(a,"pointerup",this.eventData),a._pointerDown&&(a._pointerDown=!1,this.dispatchEvent(a,"pointertap",this.eventData))):a._pointerDown&&(a._pointerDown=!1,this.dispatchEvent(a,"pointerupoutside",this.eventData))},g.prototype.onPointerMove=function(a){this.normalizeToPointerData(a),this.pointer.originalEvent=a,this.eventData.data=this.pointer,this.eventData._reset(),this.mapPositionToPoint(this.pointer.global,a.clientX,a.clientY),this.processInteractive(this.pointer.global,this.renderer._lastObjectRendered,this.processPointerMove,!0),this.emit("pointermove",this.eventData)},g.prototype.processPointerMove=function(a,s){this.pointer.originalEvent.changedTouches||this.processPointerOverOut(a,s),this.moveWhenInside&&!s||this.dispatchEvent(a,"pointermove",this.eventData)},g.prototype.onPointerOut=function(a){this.normalizeToPointerData(a),this.pointer.originalEvent=a,this.eventData.data=this.pointer,this.eventData._reset(),this.mapPositionToPoint(this.pointer.global,a.clientX,a.clientY),this.processInteractive(this.pointer.global,this.renderer._lastObjectRendered,this.processPointerOverOut,!1),this.emit("pointerout",this.eventData)},g.prototype.processPointerOverOut=function(a,s){s&&this.mouseOverRenderer?a._pointerOver||(a._pointerOver=!0,this.dispatchEvent(a,"pointerover",this.eventData)):a._pointerOver&&(a._pointerOver=!1,this.dispatchEvent(a,"pointerout",this.eventData))},g.prototype.onPointerOver=function(a){this.pointer.originalEvent=a,this.eventData.data=this.pointer,this.eventData._reset(),this.emit("pointerover",this.eventData)},g.prototype.onTouchStart=function(a){this.autoPreventDefault&&a.preventDefault();for(var s=a.changedTouches,v=s.length,P=0;P<v;P++){var T=s[P],C=this.getTouchData(T);C.originalEvent=a,this.eventData.data=C,this.eventData._reset(),this.processInteractive(C.global,this.renderer._lastObjectRendered,this.processTouchStart,!0),this.emit("touchstart",this.eventData),this.returnTouchData(C)}},g.prototype.processTouchStart=function(a,s){s&&(a._touchDown=!0,this.dispatchEvent(a,"touchstart",this.eventData))},g.prototype.onTouchEnd=function(a){this.autoPreventDefault&&a.preventDefault();for(var s=a.changedTouches,v=s.length,P=0;P<v;P++){var T=s[P],C=this.getTouchData(T);C.originalEvent=a,this.eventData.data=C,this.eventData._reset(),this.processInteractive(C.global,this.renderer._lastObjectRendered,this.processTouchEnd,!0),this.emit("touchend",this.eventData),this.returnTouchData(C)}},g.prototype.processTouchEnd=function(a,s){s?(this.dispatchEvent(a,"touchend",this.eventData),a._touchDown&&(a._touchDown=!1,this.dispatchEvent(a,"tap",this.eventData))):a._touchDown&&(a._touchDown=!1,this.dispatchEvent(a,"touchendoutside",this.eventData))},g.prototype.onTouchMove=function(a){this.autoPreventDefault&&a.preventDefault();for(var s=a.changedTouches,v=s.length,P=0;P<v;P++){var T=s[P],C=this.getTouchData(T);C.originalEvent=a,this.eventData.data=C,this.eventData._reset(),this.processInteractive(C.global,this.renderer._lastObjectRendered,this.processTouchMove,this.moveWhenInside),this.emit("touchmove",this.eventData),this.returnTouchData(C)}},g.prototype.processTouchMove=function(a,s){this.moveWhenInside&&!s||this.dispatchEvent(a,"touchmove",this.eventData)},g.prototype.getTouchData=function(a){var s=this.interactiveDataPool.pop()||new e.default;return s.identifier=a.identifier,this.mapPositionToPoint(s.global,a.clientX,a.clientY),navigator.isCocoonJS&&(s.global.x=s.global.x/this.resolution,s.global.y=s.global.y/this.resolution),a.globalX=s.global.x,a.globalY=s.global.y,s},g.prototype.returnTouchData=function(a){this.interactiveDataPool.push(a)},g.prototype.normalizeToPointerData=function(a){this.normalizeTouchEvents&&a.changedTouches?(typeof a.button=="undefined"&&(a.button=a.touches.length?1:0),typeof a.buttons=="undefined"&&(a.buttons=a.touches.length?1:0),typeof a.isPrimary=="undefined"&&(a.isPrimary=a.touches.length===1),typeof a.width=="undefined"&&(a.width=a.changedTouches[0].radiusX||1),typeof a.height=="undefined"&&(a.height=a.changedTouches[0].radiusY||1),typeof a.tiltX=="undefined"&&(a.tiltX=0),typeof a.tiltY=="undefined"&&(a.tiltY=0),typeof a.pointerType=="undefined"&&(a.pointerType="touch"),typeof a.pointerId=="undefined"&&(a.pointerId=a.changedTouches[0].identifier||0),typeof a.pressure=="undefined"&&(a.pressure=a.changedTouches[0].force||.5),typeof a.rotation=="undefined"&&(a.rotation=a.changedTouches[0].rotationAngle||0),typeof a.clientX=="undefined"&&(a.clientX=a.changedTouches[0].clientX),typeof a.clientY=="undefined"&&(a.clientY=a.changedTouches[0].clientY),typeof a.pageX=="undefined"&&(a.pageX=a.changedTouches[0].pageX),typeof a.pageY=="undefined"&&(a.pageY=a.changedTouches[0].pageY),typeof a.screenX=="undefined"&&(a.screenX=a.changedTouches[0].screenX),typeof a.screenY=="undefined"&&(a.screenY=a.changedTouches[0].screenY),typeof a.layerX=="undefined"&&(a.layerX=a.offsetX=a.clientX),typeof a.layerY=="undefined"&&(a.layerY=a.offsetY=a.clientY)):this.normalizeMouseEvents&&(typeof a.isPrimary=="undefined"&&(a.isPrimary=!0),typeof a.width=="undefined"&&(a.width=1),typeof a.height=="undefined"&&(a.height=1),typeof a.tiltX=="undefined"&&(a.tiltX=0),typeof a.tiltY=="undefined"&&(a.tiltY=0),typeof a.pointerType=="undefined"&&(a.pointerType="mouse"),typeof a.pointerId=="undefined"&&(a.pointerId=1),typeof a.pressure=="undefined"&&(a.pressure=.5),typeof a.rotation=="undefined"&&(a.rotation=0))},g.prototype.destroy=function(){this.removeEvents(),this.removeAllListeners(),this.renderer=null,this.mouse=null,this.eventData=null,this.interactiveDataPool=null,this.interactionDOMElement=null,this.onMouseDown=null,this.processMouseDown=null,this.onMouseUp=null,this.processMouseUp=null,this.onMouseMove=null,this.processMouseMove=null,this.onMouseOut=null,this.processMouseOverOut=null,this.onMouseOver=null,this.onPointerDown=null,this.processPointerDown=null,this.onPointerUp=null,this.processPointerUp=null,this.onPointerMove=null,this.processPointerMove=null,this.onPointerOut=null,this.processPointerOverOut=null,this.onPointerOver=null,this.onTouchStart=null,this.processTouchStart=null,this.onTouchEnd=null,this.processTouchEnd=null,this.onTouchMove=null,this.processTouchMove=null,this._tempPoint=null},g}(r.default);E.default=d,f.WebGLRenderer.registerPlugin("interaction",d),f.CanvasRenderer.registerPlugin("interaction",d)},function(B,E,c){"use strict";function O(m){return m&&m.__esModule?m:{default:m}}E.__esModule=!0;var x=c(117);Object.defineProperty(E,"InteractionData",{enumerable:!0,get:function(){return O(x).default}});var _=c(239);Object.defineProperty(E,"InteractionManager",{enumerable:!0,get:function(){return O(_).default}});var b=c(118);Object.defineProperty(E,"interactiveTarget",{enumerable:!0,get:function(){return O(b).default}})},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=c(19),l=O(m),f=c(147),o=c(10),e=O(o),t=c(122),i=O(t),n=c(121),r=O(n),h=c(119),p=O(h),u=function(w){function g(a,s){x(this,g);var v=_(this,w.call(this,a,s));e.default.call(v);for(var P=0;P<g._pixiMiddleware.length;++P)v.use(g._pixiMiddleware[P]());return v.onStart.add(function(T){return v.emit("start",T)}),v.onProgress.add(function(T,C){return v.emit("progress",T,C)}),v.onError.add(function(T,C,M){return v.emit("error",T,C,M)}),v.onLoad.add(function(T,C){return v.emit("load",T,C)}),v.onComplete.add(function(T,C){return v.emit("complete",T,C)}),v}return b(g,w),g.addPixiMiddleware=function(a){g._pixiMiddleware.push(a)},g}(l.default);E.default=u;for(var y in e.default.prototype)u.prototype[y]=e.default.prototype[y];u._pixiMiddleware=[f.blobMiddlewareFactory,i.default,r.default,p.default];var d=l.default.Resource;d.setExtensionXhrType("fnt",d.XHR_RESPONSE_TYPE.DOCUMENT)},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(123),f=O(l),o=10,e=function(t){function i(n,r,h,p,u){x(this,i);var y=_(this,t.call(this,n,4,4)),d=y.uvs;return d[6]=d[14]=d[22]=d[30]=1,d[25]=d[27]=d[29]=d[31]=1,y._origWidth=n.width,y._origHeight=n.height,y._uvw=1/y._origWidth,y._uvh=1/y._origHeight,y.width=n.width,y.height=n.height,d[2]=d[10]=d[18]=d[26]=y._uvw*r,d[4]=d[12]=d[20]=d[28]=1-y._uvw*p,d[9]=d[11]=d[13]=d[15]=y._uvh*h,d[17]=d[19]=d[21]=d[23]=1-y._uvh*u,y.leftWidth=typeof r!="undefined"?r:o,y.rightWidth=typeof p!="undefined"?p:o,y.topHeight=typeof h!="undefined"?h:o,y.bottomHeight=typeof u!="undefined"?u:o,y}return b(i,t),i.prototype.updateHorizontalVertices=function(){var n=this.vertices;n[9]=n[11]=n[13]=n[15]=this._topHeight,n[17]=n[19]=n[21]=n[23]=this._height-this._bottomHeight,n[25]=n[27]=n[29]=n[31]=this._height},i.prototype.updateVerticalVertices=function(){var n=this.vertices;n[2]=n[10]=n[18]=n[26]=this._leftWidth,n[4]=n[12]=n[20]=n[28]=this._width-this._rightWidth,n[6]=n[14]=n[22]=n[30]=this._width},i.prototype._renderCanvas=function(n){var r=n.context;r.globalAlpha=this.worldAlpha;var h=this.worldTransform,p=n.resolution;n.roundPixels?r.setTransform(h.a*p,h.b*p,h.c*p,h.d*p,h.tx*p|0,h.ty*p|0):r.setTransform(h.a*p,h.b*p,h.c*p,h.d*p,h.tx*p,h.ty*p);var u=this._texture.baseTexture,y=u.source,d=u.width,w=u.height;this.drawSegment(r,y,d,w,0,1,10,11),this.drawSegment(r,y,d,w,2,3,12,13),this.drawSegment(r,y,d,w,4,5,14,15),this.drawSegment(r,y,d,w,8,9,18,19),this.drawSegment(r,y,d,w,10,11,20,21),this.drawSegment(r,y,d,w,12,13,22,23),this.drawSegment(r,y,d,w,16,17,26,27),this.drawSegment(r,y,d,w,18,19,28,29),this.drawSegment(r,y,d,w,20,21,30,31)},i.prototype.drawSegment=function(n,r,h,p,u,y,d,w){var g=this.uvs,a=this.vertices,s=(g[d]-g[u])*h,v=(g[w]-g[y])*p,P=a[d]-a[u],T=a[w]-a[y];s<1&&(s=1),v<1&&(v=1),P<1&&(P=1),T<1&&(T=1),n.drawImage(r,g[u]*h,g[y]*p,s,v,a[u],a[y],P,T)},m(i,[{key:"width",get:function(){return this._width},set:function(n){this._width=n,this.updateVerticalVertices()}},{key:"height",get:function(){return this._height},set:function(n){this._height=n,this.updateHorizontalVertices()}},{key:"leftWidth",get:function(){return this._leftWidth},set:function(n){this._leftWidth=n;var r=this.uvs,h=this.vertices;r[2]=r[10]=r[18]=r[26]=this._uvw*n,h[2]=h[10]=h[18]=h[26]=n,this.dirty=!0}},{key:"rightWidth",get:function(){return this._rightWidth},set:function(n){this._rightWidth=n;var r=this.uvs,h=this.vertices;r[4]=r[12]=r[20]=r[28]=1-this._uvw*n,h[4]=h[12]=h[20]=h[28]=this._width-n,this.dirty=!0}},{key:"topHeight",get:function(){return this._topHeight},set:function(n){this._topHeight=n;var r=this.uvs,h=this.vertices;r[9]=r[11]=r[13]=r[15]=this._uvh*n,h[9]=h[11]=h[13]=h[15]=n,this.dirty=!0}},{key:"bottomHeight",get:function(){return this._bottomHeight},set:function(n){this._bottomHeight=n;var r=this.uvs,h=this.vertices;r[17]=r[19]=r[21]=r[23]=1-this._uvh*n,h[17]=h[19]=h[21]=h[23]=this._height-n,this.dirty=!0}}]),i}(f.default);E.default=e},function(B,E,c){"use strict";function O(i){if(i&&i.__esModule)return i;var n={};if(i!=null)for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(n[r]=i[r]);return n.default=i,n}function x(i){return i&&i.__esModule?i:{default:i}}function _(i,n){if(!(i instanceof n))throw new TypeError("Cannot call a class as a function")}function b(i,n){if(!i)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||typeof n!="object"&&typeof n!="function"?i:n}function m(i,n){if(typeof n!="function"&&n!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof n);i.prototype=Object.create(n&&n.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(i,n):i.__proto__=n)}E.__esModule=!0;var l=c(27),f=x(l),o=c(1),e=O(o),t=function(i){function n(r,h){_(this,n);var p=b(this,i.call(this,r));return p.points=h,p.vertices=new Float32Array(4*h.length),p.uvs=new Float32Array(4*h.length),p.colors=new Float32Array(2*h.length),p.indices=new Uint16Array(2*h.length),p._ready=!0,p.refresh(),p}return m(n,i),n.prototype.refresh=function(){var r=this.points;if(!(r.length<1)&&this._texture._uvs){this.vertices.length/4!==r.length&&(this.vertices=new Float32Array(4*r.length),this.uvs=new Float32Array(4*r.length),this.colors=new Float32Array(2*r.length),this.indices=new Uint16Array(2*r.length));var h=this.uvs,p=this.indices,u=this.colors,y=this._texture._uvs,d=new e.Point(y.x0,y.y0),w=new e.Point(y.x2-y.x0,y.y2-y.y0);h[0]=0+d.x,h[1]=0+d.y,h[2]=0+d.x,h[3]=Number(w.y)+d.y,u[0]=1,u[1]=1,p[0]=0,p[1]=1;for(var g=r.length,a=1;a<g;a++){var s=4*a,v=a/(g-1);h[s]=v*w.x+d.x,h[s+1]=0+d.y,h[s+2]=v*w.x+d.x,h[s+3]=Number(w.y)+d.y,s=2*a,u[s]=1,u[s+1]=1,s=2*a,p[s]=s,p[s+1]=s+1}this.dirty++,this.indexDirty++}},n.prototype._onTextureUpdate=function(){i.prototype._onTextureUpdate.call(this),this._ready&&this.refresh()},n.prototype.updateTransform=function(){var r=this.points;if(!(r.length<1)){for(var h=r[0],p=void 0,u=0,y=0,d=this.vertices,w=r.length,g=0;g<w;g++){var a=r[g],s=4*g;p=g<r.length-1?r[g+1]:a,y=-(p.x-h.x),u=p.y-h.y;var v=10*(1-g/(w-1));v>1&&(v=1);var P=Math.sqrt(u*u+y*y),T=this._texture.height/2;u/=P,y/=P,u*=T,y*=T,d[s]=a.x+u,d[s+1]=a.y+y,d[s+2]=a.x-u,d[s+3]=a.y-y,h=a}this.containerUpdateTransform()}},n}(f.default);E.default=t},function(B,E,c){"use strict";function O(e){return e&&e.__esModule?e:{default:e}}function x(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 _(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}E.__esModule=!0;var b=c(1),m=x(b),l=c(27),f=O(l),o=function(){function e(t){_(this,e),this.renderer=t}return e.prototype.render=function(t){var i=this.renderer,n=i.context,r=t.worldTransform,h=i.resolution;i.roundPixels?n.setTransform(r.a*h,r.b*h,r.c*h,r.d*h,r.tx*h|0,r.ty*h|0):n.setTransform(r.a*h,r.b*h,r.c*h,r.d*h,r.tx*h,r.ty*h),i.setBlendMode(t.blendMode),t.drawMode===f.default.DRAW_MODES.TRIANGLE_MESH?this._renderTriangleMesh(t):this._renderTriangles(t)},e.prototype._renderTriangleMesh=function(t){for(var i=t.vertices.length/2,n=0;n<i-2;n++){var r=2*n;this._renderDrawTriangle(t,r,r+2,r+4)}},e.prototype._renderTriangles=function(t){for(var i=t.indices,n=i.length,r=0;r<n;r+=3){var h=2*i[r],p=2*i[r+1],u=2*i[r+2];this._renderDrawTriangle(t,h,p,u)}},e.prototype._renderDrawTriangle=function(t,i,n,r){var h=this.renderer.context,p=t.uvs,u=t.vertices,y=t._texture;if(y.valid){var d=y.baseTexture,w=d.source,g=d.width,a=d.height,s=p[i]*d.width,v=p[n]*d.width,P=p[r]*d.width,T=p[i+1]*d.height,C=p[n+1]*d.height,M=p[r+1]*d.height,R=u[i],S=u[n],L=u[r],A=u[i+1],D=u[n+1],I=u[r+1];if(t.canvasPadding>0){var U=t.canvasPadding/t.worldTransform.a,N=t.canvasPadding/t.worldTransform.d,W=(R+S+L)/3,H=(A+D+I)/3,tt=R-W,it=A-H,K=Math.sqrt(tt*tt+it*it);R=W+tt/K*(K+U),A=H+it/K*(K+N),tt=S-W,it=D-H,K=Math.sqrt(tt*tt+it*it),S=W+tt/K*(K+U),D=H+it/K*(K+N),tt=L-W,it=I-H,K=Math.sqrt(tt*tt+it*it),L=W+tt/K*(K+U),I=H+it/K*(K+N)}h.save(),h.beginPath(),h.moveTo(R,A),h.lineTo(S,D),h.lineTo(L,I),h.closePath(),h.clip();var at=s*C+T*P+v*M-C*P-T*v-s*M,ut=R*C+T*L+S*M-C*L-T*S-R*M,mt=s*S+R*P+v*L-S*P-R*v-s*L,wt=s*C*L+T*S*P+R*v*M-R*C*P-T*v*L-s*S*M,Dt=A*C+T*I+D*M-C*I-T*D-A*M,yt=s*D+A*P+v*I-D*P-A*v-s*I,Tt=s*C*I+T*D*P+A*v*M-A*C*P-T*v*I-s*D*M;h.transform(ut/at,Dt/at,mt/at,yt/at,wt/at,Tt/at),h.drawImage(w,0,0,g*d.resolution,a*d.resolution,0,0,g,a),h.restore()}},e.prototype.renderMeshFlat=function(t){var i=this.renderer.context,n=t.vertices,r=n.length/2;i.beginPath();for(var h=1;h<r-2;++h){var p=2*h,u=n[p],y=n[p+1],d=n[p+2],w=n[p+3],g=n[p+4],a=n[p+5];i.moveTo(u,y),i.lineTo(d,w),i.lineTo(g,a)}i.fillStyle="#FF0000",i.fill(),i.closePath()},e.prototype.destroy=function(){this.renderer=null},e}();E.default=o,m.CanvasRenderer.registerPlugin("mesh",o)},function(B,E,c){"use strict";function O(r){return r&&r.__esModule?r:{default:r}}function x(r){if(r&&r.__esModule)return r;var h={};if(r!=null)for(var p in r)Object.prototype.hasOwnProperty.call(r,p)&&(h[p]=r[p]);return h.default=r,h}function _(r,h){if(!(r instanceof h))throw new TypeError("Cannot call a class as a function")}function b(r,h){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||typeof h!="object"&&typeof h!="function"?r:h}function m(r,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);r.prototype=Object.create(h&&h.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(r,h):r.__proto__=h)}E.__esModule=!0;var l=c(1),f=x(l),o=c(6),e=O(o),t=c(27),i=O(t),n=(c(7),function(r){function h(p){_(this,h);var u=b(this,r.call(this,p));return u.shader=null,u}return m(h,r),h.prototype.onContextChange=function(){var p=this.renderer.gl;this.shader=new f.Shader(p,`attribute vec2 aVertexPosition;
|
|
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.anchor.x*(-a.width*g.scale.x)+g.position.x+.5,p=g.anchor.y*(-a.height*g.scale.y)+g.position.y+.5,u=a.width*g.scale.x,y=a.height*g.scale.y;else{r||(r=!0),g.displayObjectUpdateTransform();var s=g.worldTransform;t.roundPixels?i.setTransform(s.a,s.b,s.c,s.d,s.tx*t.resolution|0,s.ty*t.resolution|0):i.setTransform(s.a,s.b,s.c,s.d,s.tx*t.resolution,s.ty*t.resolution),h=g.anchor.x*-a.width+.5,p=g.anchor.y*-a.height+.5,u=a.width,y=a.height}var v=g._texture.baseTexture.resolution;i.drawImage(g._texture.baseTexture.source,a.x*v,a.y*v,a.width*v,a.height*v,h*v,p*v,u*v,y*v)}}}},e.prototype.destroy=function(t){if(o.prototype.destroy.call(this,t),this._buffers)for(var i=0;i<this._buffers.length;++i)this._buffers[i].destroy();this._properties=null,this._buffers=null},e}(l.Container);E.default=f},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,i,n){x(this,o),this.gl=e,this.vertSize=2,this.vertByteSize=4*this.vertSize,this.size=n,this.dynamicProperties=[],this.staticProperties=[];for(var r=0;r<t.length;++r){var h=t[r];h={attribute:h.attribute,size:h.size,uploadFunction:h.uploadFunction,offset:h.offset},i[r]?this.dynamicProperties.push(h):this.staticProperties.push(h)}this.staticStride=0,this.staticBuffer=null,this.staticData=null,this.dynamicStride=0,this.dynamicBuffer=null,this.dynamicData=null,this.initBuffers()}return o.prototype.initBuffers=function(){var e=this.gl,t=0;this.indices=(0,l.default)(this.size),this.indexBuffer=b.default.GLBuffer.createIndexBuffer(e,this.indices,e.STATIC_DRAW),this.dynamicStride=0;for(var i=0;i<this.dynamicProperties.length;++i){var n=this.dynamicProperties[i];n.offset=t,t+=n.size,this.dynamicStride+=n.size}this.dynamicData=new Float32Array(this.size*this.dynamicStride*4),this.dynamicBuffer=b.default.GLBuffer.createVertexBuffer(e,this.dynamicData,e.STREAM_DRAW);var r=0;this.staticStride=0;for(var h=0;h<this.staticProperties.length;++h){var p=this.staticProperties[h];p.offset=r,r+=p.size,this.staticStride+=p.size}this.staticData=new Float32Array(this.size*this.staticStride*4),this.staticBuffer=b.default.GLBuffer.createVertexBuffer(e,this.staticData,e.STATIC_DRAW),this.vao=new b.default.VertexArrayObject(e).addIndex(this.indexBuffer);for(var u=0;u<this.dynamicProperties.length;++u){var y=this.dynamicProperties[u];this.vao.addAttribute(this.dynamicBuffer,y.attribute,e.FLOAT,!1,4*this.dynamicStride,4*y.offset)}for(var d=0;d<this.staticProperties.length;++d){var w=this.staticProperties[d];this.vao.addAttribute(this.staticBuffer,w.attribute,e.FLOAT,!1,4*this.staticStride,4*w.offset)}},o.prototype.uploadDynamic=function(e,t,i){for(var n=0;n<this.dynamicProperties.length;n++){var r=this.dynamicProperties[n];r.uploadFunction(e,t,i,this.dynamicData,this.dynamicStride,r.offset)}this.dynamicBuffer.upload()},o.prototype.uploadStatic=function(e,t,i){for(var n=0;n<this.staticProperties.length;n++){var r=this.staticProperties[n];r.uploadFunction(e,t,i,this.staticData,this.staticStride,r.offset)}this.staticBuffer.upload()},o.prototype.destroy=function(){this.dynamicProperties=null,this.dynamicData=null,this.dynamicBuffer.destroy(),this.staticProperties=null,this.staticData=null,this.staticBuffer.destroy()},o}();E.default=f},function(B,E,c){"use strict";function O(r){return r&&r.__esModule?r:{default:r}}function x(r){if(r&&r.__esModule)return r;var h={};if(r!=null)for(var p in r)Object.prototype.hasOwnProperty.call(r,p)&&(h[p]=r[p]);return h.default=r,h}function _(r,h){if(!(r instanceof h))throw new TypeError("Cannot call a class as a function")}function b(r,h){if(!r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!h||typeof h!="object"&&typeof h!="function"?r:h}function m(r,h){if(typeof h!="function"&&h!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof h);r.prototype=Object.create(h&&h.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}),h&&(Object.setPrototypeOf?Object.setPrototypeOf(r,h):r.__proto__=h)}E.__esModule=!0;var l=c(1),f=x(l),o=c(249),e=O(o),t=c(247),i=O(t),n=function(r){function h(p){_(this,h);var u=b(this,r.call(this,p));return u.shader=null,u.indexBuffer=null,u.properties=null,u.tempMatrix=new f.Matrix,u.CONTEXT_UID=0,u}return m(h,r),h.prototype.onContextChange=function(){var p=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.shader=new e.default(p),this.properties=[{attribute:this.shader.attributes.aVertexPosition,size:2,uploadFunction:this.uploadVertices,offset:0},{attribute:this.shader.attributes.aPositionCoord,size:2,uploadFunction:this.uploadPosition,offset:0},{attribute:this.shader.attributes.aRotation,size:1,uploadFunction:this.uploadRotation,offset:0},{attribute:this.shader.attributes.aTextureCoord,size:2,uploadFunction:this.uploadUvs,offset:0},{attribute:this.shader.attributes.aColor,size:1,uploadFunction:this.uploadAlpha,offset:0}]},h.prototype.start=function(){this.renderer.bindShader(this.shader)},h.prototype.render=function(p){var u=p.children,y=p._maxSize,d=p._batchSize,w=this.renderer,g=u.length;if(g!==0){g>y&&(g=y);var a=p._glBuffers[w.CONTEXT_UID];a||(a=p._glBuffers[w.CONTEXT_UID]=this.generateBuffers(p)),this.renderer.setBlendMode(p.blendMode);var s=w.gl,v=p.worldTransform.copy(this.tempMatrix);v.prepend(w._activeRenderTarget.projectionMatrix),this.shader.uniforms.projectionMatrix=v.toArray(!0),this.shader.uniforms.uAlpha=p.worldAlpha;var P=u[0]._texture.baseTexture;this.shader.uniforms.uSampler=w.bindTexture(P);for(var T=0,C=0;T<g;T+=d,C+=1){var M=g-T;M>d&&(M=d);var R=a[C];R.uploadDynamic(u,T,M),p._bufferToUpdate===C&&(R.uploadStatic(u,T,M),p._bufferToUpdate=C+1),w.bindVao(R.vao),R.vao.draw(s.TRIANGLES,6*M)}}},h.prototype.generateBuffers=function(p){for(var u=this.renderer.gl,y=[],d=p._maxSize,w=p._batchSize,g=p._properties,a=0;a<d;a+=w)y.push(new i.default(u,this.properties,g,w));return y},h.prototype.uploadVertices=function(p,u,y,d,w,g){for(var a=0,s=0,v=0,P=0,T=0;T<y;++T){var C=p[u+T],M=C._texture,R=C.scale.x,S=C.scale.y,L=M.trim,A=M.orig;L?(s=L.x-C.anchor.x*A.width,a=s+L.width,P=L.y-C.anchor.y*A.height,v=P+L.height):(a=A.width*(1-C.anchor.x),s=A.width*-C.anchor.x,v=A.height*(1-C.anchor.y),P=A.height*-C.anchor.y),d[g]=s*R,d[g+1]=P*S,d[g+w]=a*R,d[g+w+1]=P*S,d[g+2*w]=a*R,d[g+2*w+1]=v*S,d[g+3*w]=s*R,d[g+3*w+1]=v*S,g+=4*w}},h.prototype.uploadPosition=function(p,u,y,d,w,g){for(var a=0;a<y;a++){var s=p[u+a].position;d[g]=s.x,d[g+1]=s.y,d[g+w]=s.x,d[g+w+1]=s.y,d[g+2*w]=s.x,d[g+2*w+1]=s.y,d[g+3*w]=s.x,d[g+3*w+1]=s.y,g+=4*w}},h.prototype.uploadRotation=function(p,u,y,d,w,g){for(var a=0;a<y;a++){var s=p[u+a].rotation;d[g]=s,d[g+w]=s,d[g+2*w]=s,d[g+3*w]=s,g+=4*w}},h.prototype.uploadUvs=function(p,u,y,d,w,g){for(var a=0;a<y;++a){var s=p[u+a]._texture._uvs;s?(d[g]=s.x0,d[g+1]=s.y0,d[g+w]=s.x1,d[g+w+1]=s.y1,d[g+2*w]=s.x2,d[g+2*w+1]=s.y2,d[g+3*w]=s.x3,d[g+3*w+1]=s.y3,g+=4*w):(d[g]=0,d[g+1]=0,d[g+w]=0,d[g+w+1]=0,d[g+2*w]=0,d[g+2*w+1]=0,d[g+3*w]=0,d[g+3*w+1]=0,g+=4*w)}},h.prototype.uploadAlpha=function(p,u,y,d,w,g){for(var a=0;a<y;a++){var s=p[u+a].alpha;d[g]=s,d[g+w]=s,d[g+2*w]=s,d[g+3*w]=s,g+=4*w}},h.prototype.destroy=function(){this.renderer.gl&&this.renderer.gl.deleteBuffer(this.indexBuffer),r.prototype.destroy.call(this),this.shader.destroy(),this.indices=null,this.tempMatrix=null},h}(f.ObjectRenderer);E.default=n,f.WebGLRenderer.registerPlugin("particle",n)},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")}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(23),l=O(m),f=function(o){function e(t){return x(this,e),_(this,o.call(this,t,["attribute vec2 aVertexPosition;","attribute vec2 aTextureCoord;","attribute float aColor;","attribute vec2 aPositionCoord;","attribute vec2 aScale;","attribute float aRotation;","uniform mat3 projectionMatrix;","varying vec2 vTextureCoord;","varying float vColor;","void main(void){"," vec2 v = aVertexPosition;"," v.x = (aVertexPosition.x) * cos(aRotation) - (aVertexPosition.y) * sin(aRotation);"," v.y = (aVertexPosition.x) * sin(aRotation) + (aVertexPosition.y) * cos(aRotation);"," v = v + aPositionCoord;"," gl_Position = vec4((projectionMatrix * vec3(v, 1.0)).xy, 0.0, 1.0);"," vTextureCoord = aTextureCoord;"," vColor = aColor;","}"].join(`
|
|
`),["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!="function"&&u!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof u);p.prototype=Object.create(u&&u.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),u&&(Object.setPrototypeOf?Object.setPrototypeOf(p,u):p.__proto__=u)}function l(p,u){return u instanceof i.BaseTexture&&(u._glTextures[p.CONTEXT_UID]||p.textureManager.updateTexture(u),!0)}function f(p,u){return u instanceof i.Graphics&&((u.dirty||u.clearDirty||!u._webGL[p.plugins.graphics.CONTEXT_UID])&&p.plugins.graphics.updateGraphics(u),!0)}function o(p,u){if(p instanceof i.BaseTexture)return u.indexOf(p)===-1&&u.push(p),!0;if(p._texture&&p._texture instanceof i.Texture){var y=p._texture.baseTexture;return u.indexOf(y)===-1&&u.push(y),!0}return!1}function e(p,u){return p instanceof i.Graphics&&(u.push(p),!0)}E.__esModule=!0;var t=c(1),i=x(t),n=c(68),r=O(n),h=function(p){function u(y){_(this,u);var d=b(this,p.call(this,y));return d.uploadHookHelper=d.renderer,d.register(o,l).register(e,f),d}return m(u,p),u}(r.default);E.default=h,i.WebGLRenderer.registerPlugin("prepare",h)},function(B,E,c){"use strict";function O(o){return o&&o.__esModule?o:{default:o}}var x=c(8),_=O(x),b=c(14),m=c(9),l=m.TweenMax,f=function(){function o(e){(0,_.default)(this,o),this.options=e,this.container=new b.Container,this.bgColorImg="https://zos.alipayobjects.com/rmsportal/RUJSKKNfeLDCQIcnXaxn.png",this.left=null,this.center=null,this.right=null,this.rightTop=null,this.speed=[60,-40,30,-40],this.startXArr=[]}return o.prototype.init=function(){this.left=this.createTriangle(1210,438),this.container.addChild(this.left),this.center=this.createTriangle(600,218),this.container.addChild(this.center),this.right=this.createTriangle(987,358),this.container.addChild(this.right),this.rightTop=this.createTriangle(504,183),this.container.addChild(this.rightTop),this.rightTop.rotation=Math.PI,this.left.x=.05*-this.options.w,this.left.y=this.options.h-219,this.center.x=.3*this.options.w,this.center.y=this.options.h-109,this.right.x=.55*this.options.w,this.right.y=this.options.h-179,this.rightTop.x=.8*this.options.w,this.rightTop.y=91.5},o.prototype.createTriangle=function(e,t){var i=new b.Container,n=new b.Sprite.fromImage(this.bgColorImg),r=new b.Graphics;return r.beginFill(4095,.6),r.moveTo(0,-t/2),r.lineTo(e/2,t/2),r.lineTo(-e/2,t/2),r.endFill(),n.height=t,n.width=e,n.x=-e/2,n.y=-t/2,n.mask=r,i.addChild(r),i.addChild(n),i},o.prototype.addMouseAnim=function(){var e=this,t=this.container.children;window.addEventListener("mousemove",function(i){var n=i.pageX-e.options.w/2;t.forEach(function(r,h){var p=e.startXArr[h]+n/e.speed[h];l.to(r,.5,{x:p})})})},o.prototype.animate=function(){this.container.children.forEach(function(e){l.from(e,.5,{delay:Math.random()+2,alpha:0})})},o.prototype.resize=function(e){this.options=e,this.startXArr=[.05*-this.options.w,.3*this.options.w,.55*this.options.w,.8*this.options.w],l.to(this.left,.45,{x:.05*-this.options.w}),l.to(this.center,.45,{x:.3*this.options.w}),l.to(this.right,.45,{x:.55*this.options.w}),l.to(this.rightTop,.45,{x:.8*this.options.w,onComplete:this.addMouseAnim.bind(this)})},o}();Object.defineProperty(E,"__esModule",{value:!0}),E.default=f},function(B,E,c){"use strict";function O(r){return r&&r.__esModule?r:{default:r}}var x=c(8),_=O(x),b=c(40),m=O(b),l=c(39),f=O(l),o=c(9),e=c(14),t=c(129),i=o.TweenMax,n=function(r){function h(){(0,_.default)(this,h);var p=(0,m.default)(this,r.apply(this,arguments));return p.pointLineContainer=new e.Container,p.color=2270681,p}return(0,f.default)(h,r),h.prototype.startAnim=function(){var p=this.ringObj.lineNumber;p&&this.createPointLentElement(),this.pointAnim();var u=this.pointLineContainer.children;u.forEach(function(y){var d=new o.TimelineMax;d.to(y,.5,{alpha:1,delay:2*Math.random()+.5+2}).to(y,360*Math.random()+420,{rotation:360,repeat:-1,ease:o.Power0.easeNone})}),i.to([this.bgContainer,this.lineContainer],.8,{delay:2,alpha:1}),i.from(this.bgContainer.scale,.8,{x:.8,y:.8,delay:2})},h.prototype.createPointLentElement=function(){for(var p=this.ringObj.lineNumber,u=0;u<p;u++){var y=this.getCirclePoint(!0),d=new e.Graphics;d.lineStyle(2*Math.random()+1,this.color,.75);var w=y.angle*this.PI;d.arc(0,0,y.r,w,(45*Math.random()+15)*this.PI+w),d.positionData=y,d.alpha=0,d.blendMode=e.BLEND_MODES.ADD,this.pointLineContainer.addChild(d)}this.container.addChild(this.pointLineContainer)},h}(t.default);Object.defineProperty(E,"__esModule",{value:!0}),E.default=n},function(B,E,c){"use strict";function O(o){return o&&o.__esModule?o:{default:o}}var x=c(8),_=O(x),b=c(14),m=c(9),l=m.TweenMax,f=function(){function o(e,t){(0,_.default)(this,o),this.width=e,this.height=t,this.container=new b.Container,this.lineChildren=[],this.phase=0,this.number=2,this.attenuationArray=[2,5,-2,-6],this.offset=[{x:0,y:0,noise:0,stages:3,phase:0,alpha:.3,color:16777215},{x:0,y:0,noise:0,stages:3,phase:0,alpha:.5,color:6852765},{x:0,y:0,noise:0,stages:2,phase:0,alpha:.35,color:5725630},{x:0,y:0,noise:0,stages:4,phase:0,alpha:.3,color:9261008}]}return o.prototype.init=function(){for(var e=0;e<this.attenuationArray.length;e++){var t=new b.Graphics;this.lineChildren.push(t),t.blendMode=b.BLEND_MODES.ADD,this.drawLine(this.attenuationArray[e],t,this.offset[e]),this.container.addChild(t)}},o.prototype.globalAttenuationFn=function(e,t){return Math.pow(4*e/(4*e+Math.pow(t,4)),2*e)},o.prototype.drawLine=function(e,t,i){t.clear();var n=Math.random()+1;t.lineStyle(n,i.color,i.alpha);var r=this.number,h=this.width-2*i.x,p=this.height;t.moveTo(i.x,i.y+p/2);for(var u=-r;u<r;u+=.01){var y=h*((u+r)/(2*r))+i.x,d=p/2+i.noise*this.globalAttenuationFn(r,u)*(1/e)*Math.sin(i.stages*u-i.phase)+i.y;u<.45*-r?t.lineStyle(n,i.color,i.alpha*(u+r)/(.55*r)):u>.55*r?t.lineStyle(n,i.color,i.alpha*(r-u)/(.45*r)):t.lineStyle(n,i.color,i.alpha),t.lineTo(y,d)}},o.prototype.animate=function(){var e=this,t=1e4*Math.random()+8e4|0;this.lineChildren.forEach(function(i,n){var r=e.offset[n],h=new m.TimelineMax;h.from(i,.3,{alpha:0,delay:.2*Math.random()}),h.to(r,36e3,{phase:t,repeat:-1,onUpdate:function(){e.drawLine(e.attenuationArray[n],i,e.offset[n])},ease:m.Power0.easeNone}),l.to(r,5,{noise:50*Math.random()+30|0,delay:.5})})},o}();Object.defineProperty(E,"__esModule",{value:!0}),E.default=f},function(B,E,c){"use strict";function O(n){return n&&n.__esModule?n:{default:n}}var x=c(8),_=O(x),b=c(40),m=O(b),l=c(39),f=O(l),o=c(9),e=c(129),t=o.TweenMax,i=function(n){function r(){return(0,_.default)(this,r),(0,m.default)(this,n.apply(this,arguments))}return(0,f.default)(r,n),r.prototype.startAnim=function(){this.pointAnim(),t.to([this.bgContainer,this.lineContainer],.8,{alpha:1,delay:2}),t.from(this.bgContainer.scale,.8,{x:.8,y:.8,delay:2})},r}(e.default);Object.defineProperty(E,"__esModule",{value:!0}),E.default=i},function(B,E,c){"use strict";function O(n){return n&&n.__esModule?n:{default:n}}var x=c(8),_=O(x),b=c(40),m=O(b),l=c(39),f=O(l),o=c(14),e=c(9),t=c(128),i=(e.TweenMax,function(n){function r(){(0,_.default)(this,r);var h=(0,m.default)(this,n.call(this));return h.container=new o.Container,h.ringObj={inner:110,outside:125,listNumber:10,img:"https://zos.alipayobjects.com/rmsportal/JorDDgUVJljaIxDBpiBM.png"},h.number=300,h}return(0,f.default)(r,n),r.prototype.init=function(){this.container.y=this.center.y-5,this.container.x=this.center.x,this.setRArray(),this.createPointElement(),this.startAnim()},r.prototype.createPointElement=function(){for(var h=0;h<this.number;h++){var p=new o.Sprite.fromImage(this.ringObj.img);p.anchor.set(.5);var u=.7*Math.random();p.scale={x:u+.6,y:u+.6};var y=p.positionData=this.getCirclePoint(),d=this.center.x-this.ringObj.outside-20;p.x=y.angle>180?Math.random()*-d-this.ringObj.outside:Math.random()*d+this.ringObj.outside,p.y=10*Math.random(),p.cacheAsBitmapboolean=!0,p.alpha=0,this.container.addChild(p)}var w=new o.filters.BlurFilter;w.blur=.5},r.prototype.startAnim=function(){var h=this.container.children;h.forEach(function(p){var u=new e.TimelineMax({repeat:-1});u.to(p,.3,{alpha:.5*Math.random()+.5,delay:2*Math.random()+.5}).to(p,2*Math.random()+.5,{x:p.positionData.x,y:p.positionData.y,ease:e.Power3.easeInOut}).to(p,.2,{alpha:0})})},r}(t.default));Object.defineProperty(E,"__esModule",{value:!0}),E.default=i},function(B,E,c){"use strict";function O(t){return t&&t.__esModule?t:{default:t}}var x=c(8),_=O(x),b=c(14),m=c(9),l=c(260),f=c(258),o=m.TweenMax,e=function(){function t(){(0,_.default)(this,t),this.container=new b.Container,this.outside=new l.default(800,{inner:105,outside:130,maxOutside:!0,listNumber:10,img:"https://zos.alipayobjects.com/rmsportal/JorDDgUVJljaIxDBpiBM.png"}),this.inner=new f.default(400,{inner:40,outside:85,listNumber:10,lineNumber:40,img:"https://zos.alipayobjects.com/rmsportal/uIbqAshSeUuRPrRXNOrN.png"},1205417,3678378)}return t.prototype.init=function(){this.outside.init(),this.inner.init(),this.container.addChild(this.outside.container),this.container.addChild(this.inner.container)},t.prototype.animate=function(){o.to(this.inner.container.scale,5,{x:.9,y:.9,yoyo:!0,repeat:-1,ease:m.Power1.easeInOut})},t}();Object.defineProperty(E,"__esModule",{value:!0}),E.default=e},function(B,E,c){B.exports={default:c(148),__esModule:!0}},function(B,E,c){B.exports={default:c(149),__esModule:!0}},function(B,E,c){B.exports={default:c(150),__esModule:!0}},function(B,E,c){B.exports={default:c(151),__esModule:!0}}]);
|