mirror of
https://gitlab.com/skysthelimit.dev/selenite.git
synced 2025-06-17 11:02:08 -05:00
291 lines
141 KiB
JavaScript
291 lines
141 KiB
JavaScript
/*
|
|
ADOBE SYSTEMS INCORPORATED
|
|
Copyright 2013 Adobe Systems Incorporated
|
|
All Rights Reserved.
|
|
|
|
NOTICE: Adobe permits you to use, modify, and distribute this file in accordance with the
|
|
terms of the Adobe license agreement accompanying it. If you have received this file from a
|
|
source other than Adobe, then your use, modification, or distribution of it requires the prior
|
|
written permission of Adobe.
|
|
|
|
Version: 0.2.0
|
|
Build number: 15.0.0.173
|
|
*/
|
|
function aa(){return function(){}}function g(c){return function(d){this[c]=d}}function z(c){return function(){return this[c]}}var N;(function(c){(function(c){var f=function(){function b(a,h,b,e){this.v=a;this.re=h;this.Xd=b;this.xg=e}b.prototype.i=z("v");return b}();c.Yh=f})(c.e||(c.e={}))})(N||(N={}));
|
|
(function(c){(function(d){var f=function(){function b(a,h){this.x=a;this.y=h}b.prototype.add=function(a){var h=new c.c.k(this.x,this.y);h.x+=a.x;h.y+=a.y;return h};b.prototype.sub=function(a){var h=new c.c.k(this.x,this.y);h.x-=a.x;h.y-=a.y;return h};return b}();d.k=f})(c.c||(c.c={}))})(N||(N={}));window.flwebgl=N;N.geom=N.c;N.c.Point=N.c.k;
|
|
(function(c){(function(d){var f=function(){function b(a){this.rotate=function(a){var b=Math.cos(a);a=Math.sin(a);var e=this.b[0],k=this.b[4],l=this.b[12];this.b[0]=e*b-this.b[1]*a;this.b[1]=e*a+this.b[1]*b;this.b[4]=k*b-this.b[5]*a;this.b[5]=k*a+this.b[5]*b;this.b[12]=l*b-this.b[13]*a;this.b[13]=l*a+this.b[13]*b;this.L=1==this.b[0]&&1==this.b[5]&&0==this.b[1]&&0==this.b[4]&&0==this.b[12]&&0==this.b[13];return this};this.scale=function(a,b){this.b[0]*=a;this.b[5]*=b;this.b[4]*=a;this.b[1]*=b;this.b[12]*=
|
|
a;this.b[13]*=b;this.L=1==this.b[0]&&1==this.b[5]&&0==this.b[1]&&0==this.b[4]&&0==this.b[12]&&0==this.b[13];return this};this.L=!1;this.b=Array(16);this.ja();void 0!==a&&6<=a.length&&this.bk(a)}b.prototype.C=function(){return(new c.c.u).copy(this)};b.prototype.ja=function(){this.b=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1];this.L=!0;return this};b.prototype.hh=z("L");b.prototype.copy=function(a){for(var h=0;16>h;h++)this.b[h]=a.b[h];this.L=a.L;return this};b.prototype.Dm=function(){var a=Array(6);a[0]=this.b[0];
|
|
a[1]=this.b[1];a[2]=this.b[4];a[3]=this.b[5];a[4]=this.b[12];a[5]=this.b[13];return a};b.prototype.bk=function(a){void 0!==a&&6<=a.length&&(this.b[0]=a[0],this.b[1]=a[1],this.b[4]=a[2],this.b[5]=a[3],this.b[12]=a[4],this.b[13]=a[5],1!=a[0]||1!=a[3]||0!=a[1]||0!=a[2]||0!=a[4]||0!=a[5])&&(this.L=!1)};b.prototype.concat=function(a){if(this.L){if(a.L)return this.b[10]*=a.b[10],this;this.b[0]=a.b[0];this.b[1]=a.b[1];this.b[4]=a.b[4];this.b[5]=a.b[5];this.b[10]*=a.b[10];this.b[12]=a.b[12];this.b[13]=a.b[13];
|
|
this.L=a.L;return this}if(a.L)return this.b[10]*=a.b[10],this;var h=a.b[1]*this.b[0]+a.b[5]*this.b[1],b=a.b[0]*this.b[4]+a.b[4]*this.b[5],e=a.b[1]*this.b[4]+a.b[5]*this.b[5],k=a.b[0]*this.b[12]+a.b[4]*this.b[13]+a.b[12],l=a.b[1]*this.b[12]+a.b[5]*this.b[13]+a.b[13],c=a.b[10]*this.b[10];this.b[0]=a.b[0]*this.b[0]+a.b[4]*this.b[1];this.b[1]=h;this.b[4]=b;this.b[5]=e;this.b[10]=c;this.b[12]=k;this.b[13]=l;return this};b.prototype.Ga=function(a){if(this.L)a.L?this.b[10]*=a.b[10]:(this.b[0]=a.b[0],this.b[1]=
|
|
a.b[1],this.b[4]=a.b[4],this.b[5]=a.b[5],this.b[10]*=a.b[10],this.b[12]=a.b[12],this.b[13]=a.b[13],this.L=a.L);else if(a.L)this.b[10]*=a.b[10];else{var h=this.b[1]*a.b[0]+this.b[5]*a.b[1],b=this.b[0]*a.b[4]+this.b[4]*a.b[5],e=this.b[1]*a.b[4]+this.b[5]*a.b[5],k=this.b[0]*a.b[12]+this.b[4]*a.b[13]+this.b[12],l=this.b[1]*a.b[12]+this.b[5]*a.b[13]+this.b[13],c=this.b[10]*a.b[10];this.b[0]=this.b[0]*a.b[0]+this.b[4]*a.b[1];this.b[1]=h;this.b[4]=b;this.b[5]=e;this.b[10]=c;this.b[12]=k;this.b[13]=l}};b.prototype.J=
|
|
function(a){var h=new c.c.k(0,0);h.x=this.b[0]*a.x+this.b[4]*a.y+this.b[12];h.y=this.b[1]*a.x+this.b[5]*a.y+this.b[13];return h};b.prototype.ck=function(a){var h=new c.c.k(a.left,a.top),b=this.J(h);h.x=a.left+a.width;var e=this.J(h);h.y=a.top+a.height;var k=this.J(h);h.x=a.left;var l=this.J(h);a=Math.min(b.x,e.x,k.x,l.x);var h=Math.max(b.x,e.x,k.x,l.x),d=Math.min(b.y,e.y,k.y,l.y),b=Math.max(b.y,e.y,k.y,l.y);return new c.c.M(a,d,h-a,b-d)};b.prototype.Rb=function(){if(this.L)return this;var a=this.b[0],
|
|
h=this.b[1],b=this.b[4],e=this.b[5],k=this.b[12],l=this.b[13],c=h*b-a*e;if(0==c)return this.ja(),this;this.ja();this.b[0]=-e/c;this.b[1]=h/c;this.b[4]=b/c;this.b[5]=-a/c;this.b[12]=(k*e-l*b)/c;this.b[13]=(l*a-k*h)/c;this.L=!1;return this};b.prototype.Hc=function(a){return this.b[0]!=a.b[0]||this.b[1]!=a.b[1]||this.b[4]!=a.b[4]||this.b[5]!=a.b[5]||this.b[12]!=a.b[12]||this.b[13]!=a.b[13]||this.b[10]!=a.b[10]?!1:!0};b.prototype.translate=function(a,h){this.b[12]+=a;this.b[13]+=h;if(0!==this.b[12]||
|
|
0!==this.b[13])this.L=!1;return this};b.prototype.Km=function(){return this.L?!1:0==this.b[1]*this.b[4]-this.b[0]*this.b[5]};b.prototype.set=function(a,h,b){this.b[4*h+a]=b;2!=a&&2!=h&&(this.L=!1)};b.prototype.get=function(a,h){return this.b[4*h+a]};return b}();d.u=f})(c.c||(c.c={}))})(N||(N={}));window.flwebgl=N;N.geom=N.c;N.c.Matrix=N.c.u;N.c.u.prototype.clone=N.c.u.prototype.C;N.c.u.prototype.identity=N.c.u.prototype.ja;N.c.u.prototype.isIdentity=N.c.u.prototype.hh;N.c.u.prototype.copy=N.c.u.prototype.copy;
|
|
N.c.u.prototype.equals=N.c.u.prototype.Hc;N.c.u.prototype.concat=N.c.u.prototype.concat;N.c.u.prototype.translate=N.c.u.prototype.translate;N.c.u.prototype.rotate=N.c.u.prototype.rotate;N.c.u.prototype.scale=N.c.u.prototype.scale;N.c.u.prototype.transformPoint=N.c.u.prototype.J;N.c.u.prototype.getValues=N.c.u.prototype.Dm;N.c.u.prototype.setValues=N.c.u.prototype.bk;
|
|
(function(c){(function(c){var f=function(){function b(a,h,b,e){"undefined"===typeof e&&(e=255);this.Kf=a;this.wf=h;this.sf=b;this.xe=e;this.red=a;this.green=h;this.blue=b;this.alpha=e}b.prototype.Hc=function(a){return this.Kf!=a.Kf||this.wf!=a.wf||this.sf!=a.sf||this.xe!=a.xe?!1:!0};return b}();c.Tc=f})(c.c||(c.c={}))})(N||(N={}));window.flwebgl=N;N.geom=N.c;N.c.Color=N.c.Tc;
|
|
(function(c){(function(d){var f;(function(a){a[a.k_None=0]="k_None";a[a.k_Extend=1]="k_Extend";a[a.k_Repeat=2]="k_Repeat";a[a.k_Reflect=3]="k_Reflect"})(f||(f={}));d.Un=function(){return aa()}();d.na=function(){return function(a,h,b,e){this.byteOffset=a;this.pc=h;this.type=b;this.size=e}}();d.di=function(){return function(a,h){this.vb=a;this.aa=h}}();var b=function(){return function(){this.ta=[]}}();d.Sn=b;d.Rd=function(){return function(a,h){this.ba=a;this.jc=h}}();f=function(){function a(a,n){this.cd=
|
|
a;this.Sg={};this.Gi=void 0;this.je=new b;this.tl=n;this.le=0}a.prototype.nc=function(a){"undefined"===typeof a&&(a=void 0);return void 0===a?void 0:this.Sg[a]};a.prototype.rj=function(){var a=[],b;for(b in this.Sg)a.push(b);return a};a.prototype.sa=function(){return this.Gi.length};a.prototype.Sb=z("tl");a.prototype.i=function(){return-1};a.prototype.ze=function(a,b){this.Sg[a]=b;for(var e=0;e<b.length;++e)this.je.ta.push(b[e].jc)};a.prototype.ye=function(a){this.Gi=new Uint16Array(a)};a.prototype.Me=
|
|
g("le");a.Yn=new c.c.Tc(255,0,0,255);a.lo="Extend";a.no="Repeat";a.mo="Reflect";a.Qm="Extend";a.Gf="Repeat";a.io="Reflect";a.Uc={Extend:1,Repeat:2,Reflect:3};return a}();d.ca=f})(c.e||(c.e={}))})(N||(N={}));
|
|
(function(c){(function(d){var f=function(){function b(a,h,b,e,k,l,c,d){"undefined"===typeof a&&(a=0);"undefined"===typeof h&&(h=1);"undefined"===typeof b&&(b=0);"undefined"===typeof e&&(e=1);"undefined"===typeof k&&(k=0);"undefined"===typeof l&&(l=1);"undefined"===typeof c&&(c=0);"undefined"===typeof d&&(d=1);this.ja();void 0!==a&&(this.cb=a);void 0!==h&&(this.ua=h);void 0!==b&&(this.mb=b);void 0!==e&&(this.Ca=e);void 0!==k&&(this.jb=k);void 0!==l&&(this.Aa=l);void 0!==c&&(this.eb=c);void 0!==d&&
|
|
(this.va=d)}b.prototype.Ya=z("cb");b.prototype.tb=z("mb");b.prototype.rb=z("jb");b.prototype.pb=z("eb");b.prototype.Xa=z("ua");b.prototype.sb=z("Ca");b.prototype.qb=z("Aa");b.prototype.ob=z("va");b.prototype.tn=g("cb");b.prototype.Gn=g("mb");b.prototype.An=g("jb");b.prototype.wn=g("eb");b.prototype.sn=function(a){this.ua=a;1<this.ua&&(this.ua=1)};b.prototype.Fn=function(a){this.Ca=a;1<this.Ca&&(this.Ca=1)};b.prototype.zn=function(a){this.Aa=a;1<this.Aa&&(this.Aa=1)};b.prototype.vn=function(a){this.va=
|
|
a;1<this.va&&(this.va=1)};b.prototype.ja=function(){this.eb=this.jb=this.mb=this.cb=0;this.va=this.Aa=this.Ca=this.ua=1;return this};b.prototype.hh=function(){return 0==this.cb&&1==this.ua&&0==this.mb&&1==this.Ca&&0==this.eb&&1==this.va&&0==this.jb&&1==this.Aa};b.prototype.Hc=function(a){return this.cb!=a.cb||this.mb!=a.mb||this.jb!=a.jb||this.eb!=a.eb||this.ua!=a.ua||this.Ca!=a.Ca||this.Aa!=a.Aa||this.va!=a.va?!1:!0};b.prototype.concat=function(a){this.cb+=this.ua*a.cb;this.ua*=a.ua;this.mb+=this.Ca*
|
|
a.mb;this.Ca*=a.Ca;this.jb+=this.Aa*a.jb;this.Aa*=a.Aa;this.eb+=this.va*a.eb;this.va*=a.va;return this};b.prototype.C=function(){return(new c.c.p).copy(this)};b.prototype.copy=function(a){this.mb=a.tb();this.jb=a.rb();this.eb=a.pb();this.cb=a.Ya();this.Ca=a.sb();this.Aa=a.qb();this.va=a.ob();this.ua=a.Xa();return this};return b}();d.p=f})(c.c||(c.c={}))})(N||(N={}));window.flwebgl=N;N.geom=N.c;N.c.ColorTransform=N.c.p;N.c.p.prototype.getAlphaOffset=N.c.p.prototype.Ya;
|
|
N.c.p.prototype.getRedOffset=N.c.p.prototype.tb;N.c.p.prototype.getGreenOffset=N.c.p.prototype.rb;N.c.p.prototype.getBlueOffset=N.c.p.prototype.pb;N.c.p.prototype.getAlphaMultiplier=N.c.p.prototype.Xa;N.c.p.prototype.getRedMultiplier=N.c.p.prototype.sb;N.c.p.prototype.getGreenMultiplier=N.c.p.prototype.qb;N.c.p.prototype.getBlueMultiplier=N.c.p.prototype.ob;N.c.p.prototype.setAlphaOffset=N.c.p.prototype.tn;N.c.p.prototype.setRedOffset=N.c.p.prototype.Gn;N.c.p.prototype.setGreenOffset=N.c.p.prototype.An;
|
|
N.c.p.prototype.setBlueOffset=N.c.p.prototype.wn;N.c.p.prototype.setAlphaMultiplier=N.c.p.prototype.sn;N.c.p.prototype.setRedMultiplier=N.c.p.prototype.Fn;N.c.p.prototype.setGreenMultiplier=N.c.p.prototype.zn;N.c.p.prototype.setBlueMultiplier=N.c.p.prototype.vn;N.c.p.prototype.identity=N.c.p.prototype.ja;N.c.p.prototype.isIdentity=N.c.p.prototype.hh;N.c.p.prototype.equals=N.c.p.prototype.Hc;N.c.p.prototype.concat=N.c.p.prototype.concat;N.c.p.prototype.clone=N.c.p.prototype.C;
|
|
N.c.p.prototype.copy=N.c.p.prototype.copy;
|
|
(function(c){(function(c){var f=function(){function b(a,h,b,e){this.v=a;this.ka=h;this.lb=b;this.Ba=e;this.ue={}}b.prototype.i=z("v");b.prototype.nc=function(){return this.ka.nc(this.lb)};b.prototype.sa=function(){return this.ka.sa()};b.prototype.Ee=function(a){return this.ue[a]};b.prototype.Qf=function(a,h){this.ue[a]=h};b.prototype.ub=function(){return this.Ba.ub()};b.prototype.La=function(){return this.Ba.La()};b.prototype.Fa=function(){return this.Ba.Fa()};b.prototype.Mc=function(){return this.Ba.Mc()};
|
|
b.prototype.Sb=function(){var a=this.Ba.La();return this.ka.Sb()&&1==a.Xa()&&0==a.Ya()};b.prototype.s=function(){this.Ba=void 0};return b}();c.nk=f})(c.e||(c.e={}))})(N||(N={}));var ca=N||(N={}),da=ca.e||(ca.e={}),ea=da.fk||(da.fk={});ea[ea.kBM_AlphaBlend=1]="kBM_AlphaBlend";
|
|
(function(c){(function(c){var f=function(){function b(){this.F=[]}b.prototype.Gc=function(a){this.F.push(a)};b.prototype.mc=function(a){return 0<=a?this.F[a]:null};b.prototype.sort=function(a){this.F.sort(a)};b.prototype.clear=function(){for(;0<this.F.length;)delete this.F.pop()};return b}();c.Qe=f})(c.e||(c.e={}))})(N||(N={}));
|
|
(function(c){(function(c){var f=function(){function b(a,h,b,e){this.vc=!0;void 0!==a&&(this.left=a,this.top=h,this.width=b,this.height=e,this.vc=!1)}b.prototype.Hm=function(a){return this.vc||a.vc?!1:!(a.left>this.left+this.width||a.left+a.width<this.left||a.top>this.top+this.height||a.top+a.height<this.top)};b.prototype.copy=function(a){this.left=a.left;this.top=a.top;this.width=a.width;this.height=a.height;this.vc=a.vc};b.prototype.zh=function(a){if(this.vc)this.copy(a);else if(!a.vc){var h=this.left+
|
|
this.width,b=this.top+this.height;this.left=Math.min(this.left,a.left);this.top=Math.min(this.top,a.top);this.width=Math.max(h,a.left+a.width)-this.left;this.height=Math.max(b,a.top+a.height)-this.top}};return b}();c.M=f})(c.c||(c.c={}))})(N||(N={}));window.flwebgl=N;N.geom=N.c;N.c.Rect=N.c.M;N.c.M.prototype.left=N.c.M.prototype.left;N.c.M.prototype.top=N.c.M.prototype.top;N.c.M.prototype.width=N.c.M.prototype.width;N.c.M.prototype.height=N.c.M.prototype.height;N.c.M.prototype.intersects=N.c.M.prototype.Hm;
|
|
(function(c){(function(c){var f=function(){function b(a,h,b,e){this.v=a;this.og=h;this.we=b;this.de=e;this.ri={}}b.prototype.i=z("v");b.prototype.xf=z("og");b.prototype.$j=function(a,h){this.ri[a]=h};b.prototype.$a=function(a){return this.ri[a]};return b}();c.Zh=f})(c.e||(c.e={}))})(N||(N={}));
|
|
(function(c){(function(d){var f=function(){function b(a){this.v=a;this.gd={};this.gd[b.Z]=[];this.gd[b.P]=[];this.gd[b.bb]=[];this.qg=void 0}b.prototype.i=z("v");b.prototype.ra=function(a){return this.gd[a].length};b.prototype.zf=function(a,h){if(h<this.ra(a))return this.gd[a][h]};b.prototype.Nb=function(a,h){this.gd[a].push(h)};b.prototype.Xg=function(){this.qg=new c.c.M;for(var a=this.ra(b.P),h=0;h<a;++h)for(var n=this.zf(b.P,h),e=n.rj(),n=n.nc(e[0]),e=0;e<n.length;++e)for(var k=n[e],l=k.jc.vb,
|
|
d=0;d<l.length;++d){var m=l[d];if("POSITION0"===m.pc){l=k.ba;k=k.jc.aa/Float32Array.BYTES_PER_ELEMENT;for(m=m.byteOffset/Float32Array.BYTES_PER_ELEMENT;m<l.length;m+=k)d=new c.c.M(l[m],l[m+1],0,0),this.qg.zh(d);break}}};b.Z=1;b.P=2;b.bb=3;return b}();d.t=f})(c.e||(c.e={}))})(N||(N={}));
|
|
(function(c){(function(c){var f=function(){function b(){}b.Bn=function(a){b.ef=a};b.info=function(a){b.ef>=b.Ej&&console.log("INFO: "+a)};b.warn=function(a){b.ef>=b.Gj&&console.log("WARN: "+a)};b.error=function(a){b.ef>=b.Dj&&console.log("ERROR: "+a)};b.Fj=-1;b.Dj=0;b.Gj=1;b.Ej=2;b.ef=b.Fj;return b}();c.w=f})(c.l||(c.l={}))})(N||(N={}));window.flwebgl=N;N.util=N.l;N.l.Logger=N.l.w;N.l.w.setLevel=N.l.w.Bn;N.l.w.info=N.l.w.info;N.l.w.warn=N.l.w.warn;N.l.w.error=N.l.w.error;N.l.w.kLevel_OFF=N.l.w.Fj;
|
|
N.l.w.kLevel_Error=N.l.w.Dj;N.l.w.kLevel_Warn=N.l.w.Gj;N.l.w.kLevel_Info=N.l.w.Ej;(function(c){(function(c){c.ok=function(){return function(c,b){"undefined"===typeof c&&(c=-1);"undefined"===typeof b&&(b=-1);this.Nd=c;this.fh=b}}()})(c.e||(c.e={}))})(N||(N={}));
|
|
(function(c){(function(c){var f=function(){function b(a,h,b,e){this.location=a;this.type=h;this.size=b;this.oo=e}b.Kd=0;b.Q=1;return b}();c.q=f;f=function(){return function(b){this.ue=b;for(b=this.si=this.co=0;b<this.ue.length;++b){var a=this.ue[b],h=0;switch(a.type){case c.d.INT:case c.d.FLOAT:case c.d.SAMPLER_2D:h=Math.ceil(a.size/4);break;case c.d.INT_VEC2:case c.d.FLOAT_VEC2:h=Math.ceil(2*a.size/4);break;case c.d.INT_VEC3:case c.d.FLOAT_VEC3:h=Math.ceil(3*a.size/4);break;case c.d.INT_VEC4:case c.d.FLOAT_VEC4:h=
|
|
a.size;break;case c.d.FLOAT_MAT4:h=4*a.size}this.si+=h}}}();c.Se=f;c.R=function(){return function(b,a,h,n,e){"undefined"===typeof e&&(e=!1);this.location=b;this.pc=a;this.type=h;this.size=n;this.If=e}}();f=function(){function b(a){this.gi={};for(var h=0;h<a.length;++h)this.gi[a[h].pc]=a[h]}b.prototype.Za=function(a){return this.gi[a]};return b}();c.Pe=f;c.D=function(){return function(b,a){this.jc=b;this.value=a}}()})(c.e||(c.e={}))})(N||(N={}));
|
|
(function(c){(function(c){var f=function(){function b(a,h,b,e,k,l){this.v=a;this.be=[];this.yc=h;this.jl=b;this.gl=e;this.il=k;this.ne={};for(a=0;a<l.length;a++)this.ne[l[a].Ka]||(this.ne[l[a].Ka]=[]),this.ne[l[a].Ka].push(l[a].functionName)}b.prototype.i=z("v");b.prototype.getName=z("yc");b.prototype.Ad=z("il");b.prototype.qm=function(a){return this.ne[a+1]?this.ne[a+1]:[]};b.prototype.qj=function(a){return a<this.be.length?this.be[a]:[]};b.prototype.fj=function(a){this.be.push(a)};return b}();c.$h=
|
|
f})(c.B||(c.B={}))})(N||(N={}));(function(c){(function(c){var f=function(){function b(a,h,b){this.v=a;this.yc=h;this.Kl=b;this.cf=!1}b.prototype.i=z("v");b.prototype.getName=z("yc");b.prototype.Cn=function(){this.cf=!0};return b}();c.Xh=f})(c.media||(c.media={}))})(N||(N={}));
|
|
(function(c){(function(c){var f=function(){function b(){this.nd={};this.fc={};this.of={};this.Jg={};this.hd=-1}b.prototype.Cd=function(a){return this.nd[a]};b.prototype.Af=function(a){return this.fc[a]};b.prototype.Bm=function(a){for(var h in this.fc){var b=this.fc[h];if(a===b.jl)return b}};b.prototype.vj=function(a){return this.of[a]};b.prototype.uj=function(){var a=[],h=0,b;for(b in this.of)a[h++]=this.of[b];return a};b.prototype.vm=function(){var a=[],h=0,b;for(b in this.nd)a[h++]=this.nd[b];return a};
|
|
b.prototype.Am=function(){var a=[],h=0,b;for(b in this.fc)a[h++]=this.fc[b];return a};b.prototype.sj=function(){var a=[],h=0,b;for(b in this.Jg)a[h++]=this.Jg[b];return a};b.prototype.Ug=function(a){this.nd[a.i()]=a};b.prototype.hj=function(a){this.fc[a.i()]=a};b.prototype.Xl=function(a){this.of[a.i()]=a};b.prototype.gj=function(a){this.Jg[a.i()]=a};b.prototype.rm=function(){if(-1===this.hd){for(var a=this.vm(),h=a.length,b=0;b<h;++b){var e=a[b];e.i()>this.hd&&(this.hd=e.i())}a=this.Am();h=a.length;
|
|
for(b=0;b<h;++b)e=a[b],e.i()>this.hd&&(this.hd=e.i())}return++this.hd};b.prototype.zl=function(a){var h=this.Cd(a);h&&delete h;this.nd[a]=void 0};b.prototype.Al=function(a){var h=this.Af(a);h&&delete h;this.fc[a]=void 0};b.prototype.s=function(){for(var a in this.nd)this.zl(a);for(a in this.fc)this.Al(a)};return b}();c.vk=f})(c.l||(c.l={}))})(N||(N={}));(function(c){var d=function(){function c(b,a){this.og=a;this.Ql=b}c.prototype.xf=z("og");c.prototype.tj=z("Ql");return c}();c.Qd=d})(N||(N={}));
|
|
window.flwebgl=N;N.TextureAtlas=N.Qd;N.Qd.prototype.getImageURL=N.Qd.prototype.xf;N.Qd.prototype.getTextureJSON=N.Qd.prototype.tj;
|
|
(function(c){(function(d){var f=function(){function b(a){this.b=Array(9);a instanceof c.c.Wf?this.copy(a):a instanceof Array&&9==a.length?this.Lk(a):this.ja()}b.prototype.ja=function(){this.b=[1,0,0,0,1,0,0,0,1]};b.prototype.copy=function(a){for(var h=0;9>h;h++)this.b[h]=a.b[h]};b.prototype.concat=function(a){var h=this.b[1]*a.b[0]+this.b[4]*a.b[1]+this.b[7]*a.b[2],b=this.b[2]*a.b[0]+this.b[5]*a.b[1]+this.b[8]*a.b[2],e=this.b[0]*a.b[3]+this.b[3]*a.b[4]+this.b[6]*a.b[5],k=this.b[1]*a.b[3]+this.b[4]*
|
|
a.b[4]+this.b[7]*a.b[5],l=this.b[2]*a.b[3]+this.b[5]*a.b[4]+this.b[8]*a.b[5],c=this.b[0]*a.b[6]+this.b[3]*a.b[7]+this.b[6]*a.b[8],d=this.b[1]*a.b[6]+this.b[4]*a.b[7]+this.b[7]*a.b[8],p=this.b[2]*a.b[6]+this.b[5]*a.b[7]+this.b[8]*a.b[8];this.b[0]=this.b[0]*a.b[0]+this.b[3]*a.b[1]+this.b[6]*a.b[2];this.b[1]=h;this.b[2]=b;this.b[3]=e;this.b[4]=k;this.b[5]=l;this.b[6]=c;this.b[7]=d;this.b[8]=p};b.prototype.J=function(a){var h=new c.c.k(0,0);h.x=this.b[0]*a.x+this.b[3]*a.y+this.b[6];h.y=this.b[1]*a.x+
|
|
this.b[4]*a.y+this.b[7];return h};b.prototype.Rb=function(){var a=this.b[0],h=this.b[1],b=this.b[3],e=this.b[4],k=this.b[6],l=this.b[7],c=a*(e-l)+b*(l-h)+k*(h-e);0!=c&&(this.b[0]=e-l,this.b[1]=l-h,this.b[2]=h-e,this.b[3]=k-b,this.b[4]=a-k,this.b[5]=b-a,this.b[6]=b*l-k*e,this.b[7]=k*h-a*l,this.b[8]=a*e-b*h,this.im(c))};b.prototype.im=function(a){this.b[0]/=a;this.b[1]/=a;this.b[2]/=a;this.b[3]/=a;this.b[4]/=a;this.b[5]/=a;this.b[6]/=a;this.b[7]/=a;this.b[8]/=a};b.prototype.Lk=function(a){for(var h=
|
|
0;9>h;h++)this.b[h]=a[h]};return b}();d.Wf=f})(c.c||(c.c={}))})(N||(N={}));
|
|
(function(c){(function(d){var f=function(){function b(a){this.Da=a;this.ya=!0;this.Gb={};this.Gb[d.t.Z]=[];this.Gb[d.t.P]=[];this.Gb[d.t.bb]=[]}b.prototype.Fa=function(){return this.Da.Fa()};b.prototype.Je=function(a){this.Da.Fa()!=a&&(this.Da.Je(a),this.ya=!0)};b.prototype.Mc=z("ya");b.prototype.Ke=g("ya");b.prototype.ra=function(a){return this.Da.Lc().ra(a)};b.prototype.ab=function(a,h,b){var e=this.Gb[a][h];if(!e){var e=this.Da.Lc(),k=e.zf(a,h);if(!k)return;e=new c.e.nk(c.l.U.dm(e.i(),h,a),k,b.De(k.cd).i(),
|
|
this);this.Gb[a][h]=e}return e};b.prototype.ub=function(){return this.Da.Pb()};b.prototype.La=function(){return this.Da.Jc()};b.prototype.s=function(){for(var a=[d.t.Z,d.t.P,d.t.bb],h=0;h<a.length;++h)for(var b=a[h],e=0;e<this.Gb[b].length;++e)this.Gb[b][e]&&(this.Gb[b][e].s(),delete this.Gb[b][e])};return b}();d.sk=f})(c.e||(c.e={}))})(N||(N={}));
|
|
(function(c){(function(c){var f=function(){function b(a,h){"undefined"===typeof h&&(h=!1);this.Rl=a;this.Ik=h;this.ni=this.aj=void 0}b.prototype.wj=z("Rl");b.prototype.ah=z("Ik");b.prototype.ym=z("aj");b.prototype.pm=z("ni");b.prototype.stopPropagation=function(){this.$i=!0};b.prototype.stopImmediatePropagation=function(){this.Ml=!0};b.prototype.Mn=g("aj");b.prototype.yn=g("ni");b.Uf="flwebgl.events.Event.ADDED";b.Nh="flwebgl.events.Event.REMOVED";b.Wn="flwebgl.events.Event.UPDATED";b.Ch="flwebgl.events.Event.ENTER_FRAME";
|
|
b.Dh="flwebgl.events.Event.EXIT_FRAME";b.Ih="flwebgl.events.Event.FRAME_CONSTRUCTED";return b}();c.A=f})(c.r||(c.r={}))})(N||(N={}));window.flwebgl=N;N.events=N.r;N.r.Event=N.r.A;N.r.A.prototype.getType=N.r.A.prototype.wj;N.r.A.prototype.getBubbles=N.r.A.prototype.ah;N.r.A.prototype.getTarget=N.r.A.prototype.ym;N.r.A.prototype.getCurrentTarget=N.r.A.prototype.pm;N.r.A.prototype.stopPropagation=N.r.A.prototype.stopPropagation;N.r.A.prototype.stopImmediatePropagation=N.r.A.prototype.stopImmediatePropagation;
|
|
N.r.A.ADDED=N.r.A.Uf;N.r.A.REMOVED=N.r.A.Nh;N.r.A.ENTER_FRAME=N.r.A.Ch;N.r.A.EXIT_FRAME=N.r.A.Dh;N.r.A.FRAME_CONSTRUCTED=N.r.A.Ih;
|
|
(function(c){(function(c){var f=function(){function b(){this.ed={}}b.prototype.addEventListener=function(a,h){var b=this.ed[a];void 0!==b&&b||(b=this.ed[a]=[]);this.xj(a,h)||b.push(h)};b.prototype.xj=function(a,h){"undefined"===typeof h&&(h=void 0);var b=this.ed[a];if(void 0===b||!b||0===b.length)return!1;if(h){for(var e=0;e<b.length;++e)if(b[e]===h)return!0;return!1}return!0};b.prototype.removeEventListener=function(a,h){var b=this.ed[a];if(void 0!==b&&b)for(var e=0;e<b.length;++e)b[e]===h&&b.splice(e,
|
|
1)};b.prototype.dispatchEvent=function(a){a.Mn(this);this.uc(a)};b.prototype.uc=function(a){var h=this.ed[a.wj()];if(void 0!==h&&h.length){h=h.slice(0);a.yn(this);for(var b=0;b<h.length&&!a.Ml;++b)h[b](a)}};b.prototype.pn=function(){this.ed={}};return b}();c.Na=f})(c.r||(c.r={}))})(N||(N={}));window.flwebgl=N;N.events=N.r;N.r.EventDispatcher=N.r.Na;N.r.Na.prototype.addEventListener=N.r.Na.prototype.addEventListener;N.r.Na.prototype.hasEventListener=N.r.Na.prototype.xj;
|
|
N.r.Na.prototype.removeEventListener=N.r.Na.prototype.removeEventListener;N.r.Na.prototype.dispatchEvent=N.r.Na.prototype.dispatchEvent;var fa=N||(N={}),ga=fa.g||(fa.g={}),$=ga.qk||(ga.qk={});$[$.kTransform=1]="kTransform";$[$.kColorTransform=2]="kColorTransform";$[$.kVisibility=4]="kVisibility";var ha=this.Xn||function(c,d){function f(){this.constructor=c}for(var b in d)d.hasOwnProperty(b)&&(c[b]=d[b]);f.prototype=d.prototype;c.prototype=new f};
|
|
(function(c){(function(d){var f=function(b){function a(){b.call(this);this.Ra=new c.c.p;this.za=new c.c.p;this.Fb=new c.c.u;this.ea=new c.c.u;this.mf=new c.e.sk(this);this.ya=this.td=!0;this.Ba=void 0;this.W=0}ha(a,b);a.prototype.Mf=g("v");a.prototype.i=z("v");a.prototype.Nf=g("yc");a.prototype.getName=z("yc");a.prototype.Ne=function(a,b){"undefined"===typeof b&&(b=!0);b&&(this.W|=4);this.td=a};a.prototype.Bf=z("td");a.prototype.Ld=function(a,b){"undefined"===typeof b&&(b=!0);b&&(this.W|=1);this.ya=
|
|
!0;this.Fb=a.C()};a.prototype.Kc=function(){return this.Fb.C()};a.prototype.Pb=function(){return this.ea.C()};a.prototype.Le=function(a,b){"undefined"===typeof b&&(b=!0);b&&(this.W|=2);this.ya=!0;void 0!==a?this.Ra=a.C():this.Ra.ja()};a.prototype.yf=function(){return this.Ra.C()};a.prototype.Jc=function(){return this.za.C()};a.prototype.Ea=function(a,b){a?(this.ea.copy(a),this.ea.Ga(this.Fb)):this.ea.copy(this.Fb);b?(this.za.copy(b),this.za.concat(this.Ra)):this.za.copy(this.Ra)};a.prototype.Fa=function(){return this.ea.get(2,
|
|
2)};a.prototype.Je=function(a){this.ea.set(2,2,a)};a.prototype.Lc=z("Bc");a.prototype.Pf=g("Bc");a.prototype.Qb=function(a){this.td&&(this.mf.Ke(this.ya),a.push(this.mf));this.ya=!1};a.prototype.Be=function(a,b,e,k){"undefined"===typeof a&&(a=void 0);"undefined"===typeof b&&(b=!0);"undefined"===typeof e&&(e=c.e.t.P);"undefined"===typeof k&&(k=!1);void 0===a&&(a=this);if(!0===k)k=a.Pb(),a=this.Pb();else{k=new c.c.u;for(var l=a;l;)k.concat(l.Kc()),l=l.getParent();k.Rb();a=new c.c.u;for(l=this;l;)a.concat(l.Kc()),
|
|
l=l.getParent();a.concat(k)}return b?a.ck(this.Bc.qg):this.dl(e,a)};a.prototype.getParent=z("Ba");a.prototype.Of=g("Ba");a.prototype.dl=function(a,b){for(var e=new c.c.M,k=this.Bc.ra(a),l=new c.c.k(0,0),d=0;d<k;++d)for(var m=this.Bc.zf(a,d),p=m.rj(),m=m.nc(p[0]),p=0;p<m.length;++p)for(var x=m[p],w=x.jc.vb,f=0;f<w.length;++f){var q=w[f];if("POSITION0"===q.pc){w=x.ba;x=x.jc.aa/Float32Array.BYTES_PER_ELEMENT;for(q=q.byteOffset/Float32Array.BYTES_PER_ELEMENT;q<w.length;q+=x)l.x=w[q],l.y=w[q+1],l=b.J(l),
|
|
f=new c.c.M(l.x,l.y,0,0),e.zh(f);break}}return e};a.prototype.uc=function(a){b.prototype.uc.call(this,a);this.getParent()&&(a.ah()&&!a.$i)&&this.getParent().uc(a)};a.prototype.s=function(){this.v=-1;this.Bc=void 0;this.mf.s();this.Ba=void 0;delete this.mf};return a}(c.r.Na);d.G=f})(c.g||(c.g={}))})(N||(N={}));window.flwebgl=N;N.sg=N.g;N.g.Shape=N.g.G;N.g.G.prototype.setName=N.g.G.prototype.Nf;N.g.G.prototype.getName=N.g.G.prototype.getName;N.g.G.prototype.setVisible=N.g.G.prototype.Ne;
|
|
N.g.G.prototype.isVisible=N.g.G.prototype.Bf;N.g.G.prototype.setLocalTransform=N.g.G.prototype.Ld;N.g.G.prototype.getLocalTransform=N.g.G.prototype.Kc;N.g.G.prototype.getGlobalTransform=N.g.G.prototype.Pb;N.g.G.prototype.setLocalColorTransform=N.g.G.prototype.Le;N.g.G.prototype.getLocalColorTransform=N.g.G.prototype.yf;N.g.G.prototype.getGlobalColorTransform=N.g.G.prototype.Jc;N.g.G.prototype.getBounds=N.g.G.prototype.Be;N.g.G.prototype.getParent=N.g.G.prototype.getParent;
|
|
(function(c){(function(d){var f=function(b){function a(){b.call(this);this.v=-1;this.Va=void 0;this.m=[];this.Ra=new c.c.p;this.za=new c.c.p;this.Fb=new c.c.u;this.ea=new c.c.u;this.ya=this.td=!0;this.pa=void 0;this.Vi=!1;this.gb=void 0;this.xa=-1;this.ff=!0;this.W=0;this.Ba=void 0;this.jf=!0;this.Y=[];this.df=this.Vd=!1}ha(a,b);a.prototype.Nf=g("yc");a.prototype.getName=z("yc");a.prototype.Ne=function(a,b){"undefined"===typeof b&&(b=!0);b&&(this.W|=4);this.td=a};a.prototype.Bf=z("td");a.prototype.Ld=
|
|
function(a,b){"undefined"===typeof b&&(b=!0);b&&(this.W|=1);this.ya=!0;this.Fb=a.C()};a.prototype.Kc=function(){return this.Fb.C()};a.prototype.Pb=function(){return this.ea.C()};a.prototype.Le=function(a,b){"undefined"===typeof b&&(b=!0);b&&(this.W|=2);this.ya=!0;void 0!==a?this.Ra=a.C():this.Ra.ja()};a.prototype.yf=function(){return this.Ra.C()};a.prototype.Jc=function(){return this.za.C()};a.prototype.Vl=function(a,b){"undefined"===typeof b&&(b=!0);return this.Tg(a,0,b)};a.prototype.Tg=function(b,
|
|
n,e,k){"undefined"===typeof e&&(e=!0);"undefined"===typeof k&&(k=!1);if(void 0==n||null==n||n>this.Bd())return!1;0>n&&(n=0);e&&b.Mf(-1);void 0!==b.getParent()&&b.getParent().removeChild(b);if(k)return this.Y.push({Vb:n,wd:b}),this.m.splice(n,0,null),!0;b.Of(this);b.Ea(this.ea,this.za);this.m.splice(n,0,b);n=new c.r.A(c.r.A.Uf,!0);b.dispatchEvent(n);if(b instanceof a){for(n=this;n.getParent();)n=n.getParent();n==this.gb.dh()&&0==b.Ce()&&(b.Md(),b.yh(),b.Sc(),b.Rf(),b.Sf(),b.Tf())}return!0};a.prototype.removeChild=
|
|
function(a){return this.Ie(this.bh(a))};a.prototype.Ie=function(a){if(!(0>a||void 0==a||null==a||a>=this.Bd())){var b=this.ia(a);if(!this.Vd){var e=new c.r.A(c.r.A.Nh,!0);b.dispatchEvent(e)}b.Of(void 0);this.m.splice(a,1);b.pn();return b}};a.prototype.Bd=function(){return this.m.length};a.prototype.pj=function(){return this.m.slice(0)};a.prototype.ia=function(a,b){"undefined"===typeof b&&(b=!1);var e;if(a<this.Bd()&&(e=this.m[a],null==e&&b))for(var k=0;k<this.Y.length;k++)if(this.Y[k].Vb==a){e=this.Y[k].wd;
|
|
break}return e};a.prototype.bh=function(a){return this.m.indexOf(a)};a.prototype.mm=function(a){for(var b=0;b<this.m.length;++b)if(this.m[b].getName()===a)return this.m[b]};a.prototype.getParent=z("Ba");a.prototype.xn=function(a,b){this.vh(this.bh(a),b)};a.prototype.Ce=function(){return this.xa+1};a.prototype.Cm=z("te");a.prototype.play=function(){this.jf=!0};a.prototype.stop=function(){this.jf=!1};a.prototype.zj=z("jf");a.prototype.Em=function(a){this.Ci(a,!1)};a.prototype.Fm=function(a){this.Ci(a,
|
|
!0)};a.prototype.Ci=function(a,b){if("string"===typeof a){for(var e=this.Va.Ad(),k=!1,l=e.length-1;0<=l;l--)if(a===e[l].name){a=e[l].Ka;k=!0;break}if(!1===k)return}if(!(1>a||a>this.te))if(a==this.xa+1)!1===b?this.play():this.stop();else{this.Sc(!0);this.play();a<this.xa+1&&(e=1==a,this.Ki(!0,e),this.Sc(!e));for(;this.xa+1<a;)e=a==this.xa+1+1,this.Md(!0,e),this.Sc(!e);!1===b?this.play():this.stop();this.Rf();this.Sf();this.Tf()}};a.prototype.vh=function(a,b){if(a!==b&&!(0>a||a>=this.m.length||0>b||
|
|
b>=this.m.length)){var e=this.m.splice(a,1);this.m.splice(b,0,e[0]);for(e=0;e<this.Y.length;e++){var k=this.Y[e];k.Vb==a?k.Vb=b:(k.Vb>a&&k.Vb--,k.Vb>=b&&k.Vb++)}}};a.prototype.Mf=g("v");a.prototype.i=z("v");a.prototype.En=g("gb");a.prototype.Dn=g("ff");a.prototype.uc=function(a){b.prototype.uc.call(this,a);this.getParent()&&(a.ah()&&!a.$i)&&this.getParent().uc(a)};a.prototype.Md=function(a,b){"undefined"===typeof a&&(a=!1);"undefined"===typeof b&&(b=!1);var e=!0;this.jf||(e=!1);e&&(!this.ff&&this.xa==
|
|
this.te-1)&&(e=!1);e&&(0==this.xa&&1==this.te)&&(e=!1);if(e){this.xa++;if(this.xa==this.te)this.Ki(a,b),this.Sc(a);else{a&&!b&&(this.Vd=!0);for(var e=this.Va.qj(this.xa),k=0;k<e.length;++k)e[k].execute(this,this.gb,a,b);this.Vd=!1}this.df=!0}if(!a){for(e=0;e<this.m.length;e++)this.m[e]instanceof c.g.j&&this.m[e].Md(a);for(e=0;e<this.Y.length;e++)this.Y[e].wd instanceof c.g.j&&this.Y[e].wd.Md(a)}};a.prototype.yh=function(){var a=new c.r.A(c.r.A.Ch);this.dispatchEvent(a);for(a=0;a<this.m.length;a++)this.m[a]instanceof
|
|
c.g.j&&this.m[a].yh()};a.prototype.Sc=function(a){"undefined"===typeof a&&(a=!1);for(var b=0;b<this.Y.length;b++){var e=this.Y[b].wd;this.m[this.Y[b].Vb]=e;e.Of(this)}for(b=0;b<this.m.length;b++)this.m[b]instanceof c.g.j&&this.m[b].Sc();for(b=0;b<this.Y.length;b++)if(e=this.Y[b].wd,e.Ea(this.ea,this.za),!a){var k=new c.r.A(c.r.A.Uf,!0);e.dispatchEvent(k)}this.Y=[]};a.prototype.Rf=function(){var a=new c.r.A(c.r.A.Ih);this.dispatchEvent(a);for(a=0;a<this.m.length;a++)this.m[a]instanceof c.g.j&&this.m[a].Rf()};
|
|
a.prototype.Sf=function(){if(this.df){for(var a=this.Va.qm(this.xa),b=0;b<a.length;++b)this.jm(a[b]);this.df=!1}for(a=0;a<this.m.length;a++)this.m[a]instanceof c.g.j&&this.m[a].Sf()};a.prototype.Tf=function(){var a=new c.r.A(c.r.A.Dh);this.dispatchEvent(a);for(a=0;a<this.m.length;a++)this.m[a]instanceof c.g.j&&this.m[a].Tf()};a.prototype.Ad=function(){for(var a=this.Va.Ad(),b=[],e=0;e<a.length;e++)b.push({frameNum:a[e].Ka,name:a[e].name});return b};a.prototype.nm=function(){for(var a=this.Va.Ad(),
|
|
b=a.length-1;0<=b;b--)if(this.Ce()==a[b].Ka)return a[b].name};a.prototype.om=function(){for(var a=this.Va.Ad(),b=void 0,e=this.Ce(),k=-1,l=0;l<a.length;l++)a[l].Ka>=k&&a[l].Ka<=e&&(b=a[l].name,k=a[l].Ka);return b};a.prototype.Of=g("Ba");a.prototype.Ob=function(a){if(0>a)return-1;for(var b=0;b<this.m.length;++b)if(this.m[b]&&this.m[b].i()==a)return b;for(b=0;b<this.Y.length;++b)if(this.Y[b].wd.i()==a)return this.Y[b].Vb;return-1};a.prototype.Pf=function(a){this.Va=a;this.xa=-1;this.te=this.Va.be.length};
|
|
a.prototype.Lc=z("Va");a.prototype.ak=function(a){this.pa=a;this.Vi=!0};a.prototype.Ea=function(a,b){a?(this.ea.copy(a),this.ea.Ga(this.Fb)):this.ea.copy(this.Fb);b?(this.za.copy(b),this.za.concat(this.Ra)):this.za.copy(this.Ra);for(var e=0;e<this.m.length;++e)this.m[e].Ea(this.ea,this.za);void 0!==this.pa&&(this.za.Hc(this.pa.La())?this.pa.Ea(this.ea):this.pi())};a.prototype.Fa=function(){return this.ea.get(2,2)};a.prototype.Je=function(a){this.ea.set(2,2,a)};a.prototype.s=function(){for(;0<this.m.length;){var a=
|
|
this.m.pop();a.s();delete a}this.v=-1;this.Va=void 0};a.prototype.Ki=function(a,b){"undefined"===typeof a&&(a=!1);"undefined"===typeof b&&(b=!1);this.xa=0;var e=[];a&&!b&&(this.Vd=!0);for(var k=this.Va.qj(0),l=0;l<k.length;++l){var d=k[l];d instanceof c.B.Xf&&e.push(d.X)}for(l=0;l<this.Bd();++l)if(d=this.ia(l),-1!==d.i()){var m=!0;if(0<e.length)for(var p=d.i(),x=0;x<e.length;++x)if(p==e[x]){e.splice(x,1);m=!1;break}m&&(this.Ie(l),d.s(),--l)}for(l=0;l<k.length;++l)d=k[l],d.execute(this,this.gb,a,b);
|
|
this.Vd=!1;this.df=!0};a.prototype.pi=function(){void 0!==this.pa&&(this.pa.s(),this.pa=void 0)};a.prototype.Qb=function(a){if(this.Bf()){if(void 0===this.pa){for(var b=a.length,e=0;e<this.m.length;++e)this.m[e].Qb(a);if(this.ya)for(e=b;e<a.length;++e)a[e].Ke(!0)}else{b=[];for(e=0;e<this.m.length;++e)this.m[e].Qb(b);for(var k=!1,e=0;!k&&e<b.length;++e)k=b[e].Mc();if(k)for(this.pi(),e=0;e<b.length;++e)b[e].Ke(!0),a.push(b[e]);else this.pa.Qb(a)}this.ya=!1}};a.prototype.Be=function(a,b,e,k){"undefined"===
|
|
typeof a&&(a=void 0);"undefined"===typeof b&&(b=!0);"undefined"===typeof e&&(e=c.e.t.P);"undefined"===typeof k&&(k=!1);void 0===a&&(a=this);for(var l=new c.c.M,d=0;d<this.m.length;++d)l.zh(this.m[d].Be(a,b,e,k));return l};a.prototype.jm=function(a){eval("flwebgl.actions."+a+".call(this);")};return a}(c.r.Na);d.j=f})(c.g||(c.g={}))})(N||(N={}));window.flwebgl=N;N.sg=N.g;N.g.MovieClip=N.g.j;N.g.j.prototype.setName=N.g.j.prototype.Nf;N.g.j.prototype.getName=N.g.j.prototype.getName;
|
|
N.g.j.prototype.setVisible=N.g.j.prototype.Ne;N.g.j.prototype.isVisible=N.g.j.prototype.Bf;N.g.j.prototype.setLocalTransform=N.g.j.prototype.Ld;N.g.j.prototype.getLocalTransform=N.g.j.prototype.Kc;N.g.j.prototype.getGlobalTransform=N.g.j.prototype.Pb;N.g.j.prototype.setLocalColorTransform=N.g.j.prototype.Le;N.g.j.prototype.getLocalColorTransform=N.g.j.prototype.yf;N.g.j.prototype.getGlobalColorTransform=N.g.j.prototype.Jc;N.g.j.prototype.addChild=N.g.j.prototype.Vl;N.g.j.prototype.addChildAt=N.g.j.prototype.Tg;
|
|
N.g.j.prototype.removeChild=N.g.j.prototype.removeChild;N.g.j.prototype.removeChildAt=N.g.j.prototype.Ie;N.g.j.prototype.getNumChildren=N.g.j.prototype.Bd;N.g.j.prototype.getChildren=N.g.j.prototype.pj;N.g.j.prototype.getChildAt=N.g.j.prototype.ia;N.g.j.prototype.getChildIndex=N.g.j.prototype.bh;N.g.j.prototype.getChildByName=N.g.j.prototype.mm;N.g.j.prototype.getBounds=N.g.j.prototype.Be;N.g.j.prototype.getParent=N.g.j.prototype.getParent;N.g.j.prototype.setChildIndex=N.g.j.prototype.xn;
|
|
N.g.j.prototype.getCurrentFrame=N.g.j.prototype.Ce;N.g.j.prototype.getTotalFrames=N.g.j.prototype.Cm;N.g.j.prototype.getFrameLabels=N.g.j.prototype.Ad;N.g.j.prototype.getCurrentFrameLabel=N.g.j.prototype.nm;N.g.j.prototype.getCurrentLabel=N.g.j.prototype.om;N.g.j.prototype.play=N.g.j.prototype.play;N.g.j.prototype.stop=N.g.j.prototype.stop;N.g.j.prototype.isPlaying=N.g.j.prototype.zj;N.g.j.prototype.gotoAndPlay=N.g.j.prototype.Em;N.g.j.prototype.gotoAndStop=N.g.j.prototype.Fm;
|
|
(function(c){(function(d){var f=function(){function b(){}b.requestAnimationFrame=function(a,b,c){var e=c.requestAnimationFrame||c.webkitRequestAnimationFrame||c.mozRequestAnimationFrame||c.oRequestAnimationFrame||c.msRequestAnimationFrame;return void 0!=e?e(a):c.setTimeout(a,1E3/b)};b.cancelAnimationFrame=function(a,b){var c=b.cancelAnimationFrame||b.webkitCancelAnimationFrame||b.mozCancelAnimationFrame||b.oCancelAnimationFrame||b.msCancelAnimationFrame||b.clearTimeout;void 0!=c&&c(a)};b.zd=function(a){var b=
|
|
parseInt(a.substring(1,3),16),d=parseInt(a.substring(3,5),16),e=parseInt(a.substring(5,7),16),k=255;7<a.length&&(k=parseInt(a.substring(7),16));return new c.c.Tc(b,d,e,k)};b.dm=function(a,b,c){return""+a+"_"+b+"_"+c};b.fm=function(a,b){return"__Snapshot__"+a+"_"+b};b.bind=function(a,b){return function(){a[b].apply(a,arguments)}};b.eo=function(a){return 0<a&&0==(a&a-1)};b.vd=function(a){return Math.pow(2,Math.ceil(Math.log(a)/Math.LN2))};b.tm=function(a){var b=a.Pb().C();a=a.Kc().C();a.Rb();b.Ga(a);
|
|
return b};return b}();d.U=f})(c.l||(c.l={}))})(N||(N={}));
|
|
(function(c){(function(d){var f=function(){function b(a){this.Bg=a[0];this.hf=a[1];this.X=a[2];if(4<a.length){var b=a.slice(3);this.hc=new c.c.u(b)}else this.hc=new c.c.u;if(10==a.length||4==a.length)this.Hi=a[a.length-1]}b.prototype.execute=function(a,b,c){"undefined"===typeof c&&(c=!1);var e=b.T,k=b.Qi;b=a.Ob(this.X);if(0<=b){c=a.ia(b);0===(c.W&1)&&c.Ld(this.hc,!1);0===(c.W&2)&&(e=c.yf().C(),e.ja(),c.Le(e,!1));for(e=a.Ob(this.hf)+1;a.ia(e)&&0>a.ia(e).i();)e++;e>b&&e--;a.vh(b,e);0===(c.W&4)&&c.Ne(!0,
|
|
!1);return!0}return 0>this.Gk(a,e,k,c)?!1:!0};b.prototype.Gk=function(a,b,c,e){var k=null;void 0===b.Cd(this.Bg)?(k=c.Yg(this.Bg,this.X),e&&k.Md(!0,!1)):k=c.lj(this.Bg,this.X);k.Ld(this.hc,!1);void 0!==this.Hi&&k.Nf(this.Hi);for(e=a.Ob(this.hf)+1;a.ia(e)&&0>a.ia(e).i();)e++;return a.Tg(k,e,!1,!0)?e:-1};return b}();d.Xf=f})(c.B||(c.B={}))})(N||(N={}));
|
|
(function(c){(function(c){var f=function(){function b(a){this.X=a[0]}b.prototype.execute=function(a){var b=a.Ob(this.X);if(0>b)return!1;var c=a.ia(b);a.Ie(b)&&c.s();return!0};return b}();c.Ph=f})(c.B||(c.B={}))})(N||(N={}));
|
|
(function(c){(function(d){var f=function(){function b(a){this.X=a[0];this.hf=a[1];2<a.length?(a=a.slice(2),this.hc=new c.c.u(a)):this.hc=new c.c.u}b.prototype.execute=function(a){var b=a.Ob(this.X);if(0>b)return!1;for(var c=a.ia(b),e=a.Ob(this.hf)+1;a.ia(e)&&0>a.ia(e).i();)e++;e>b&&e--;b!=e&&a.vh(b,e);0===(c.W&1)&&c.Ld(this.hc,!1);return!0};return b}();d.bi=f})(c.B||(c.B={}))})(N||(N={}));
|
|
(function(c){(function(d){var f=function(){function b(a){this.X=a[0];a=a.slice(1);this.eg=void 0!==a&&8==a.length?new c.c.p(a[0],a[1]/100,a[2],a[3]/100,a[4],a[5]/100,a[6],a[7]/100):new c.c.p}b.prototype.execute=function(a){var b=a.Ob(this.X);if(0>b)return!1;a=a.ia(b,!0);0===(a.W&2)&&a.Le(this.eg,!1);return!0};return b}();d.ai=f})(c.B||(c.B={}))})(N||(N={}));
|
|
(function(c){(function(c){var f=function(){function b(a){this.X=a[0];this.Ul=1===a[1]}b.prototype.execute=function(a){var b=a.Ob(this.X);if(0>b)return!1;a=a.ia(b,!0);0===(a.W&4)&&a.Ne(this.Ul,!1);return!0};return b}();c.Vh=f})(c.B||(c.B={}))})(N||(N={}));
|
|
(function(c){(function(d){var f=function(){function b(a){this.X=a[0];this.Td=new c.c.Tc(a[2],a[3],a[4],a[1])}b.prototype.execute=function(a,b){var d=a.Ob(this.X);if(0>d)return!1;d=a.ia(d,!0);if(d.Vi)return!0;var e=a.Jc().C(),k=new c.e.xk,d=new c.e.Ak(d,this.Td,e,k);return b.od.on(d)};return b}();d.Wh=f})(c.B||(c.B={}))})(N||(N={}));
|
|
(function(c){(function(c){var f=function(){function b(a){this.X=a[0];this.Pl=a[1];this.ml=a[2]}b.prototype.execute=function(a,b,c,e){"undefined"===typeof c&&(c=!1);"undefined"===typeof e&&(e=!1);c&&!e||b.Dc.ln(this.X.toString(),this.Pl,this.ml);return!0};return b}();c.Mh=f})(c.media||(c.media={}))})(N||(N={}));
|
|
(function(c){(function(d){var f=function(){return function(a,b,h,e,c,d){this.Pn=a;this.On=b;this.Nn=h;this.km=e;this.loop=c;this.rn=d}}();d.Tn=f;var b=function(){function b(a){this.T=a}b.prototype.gh=function(a,b,h){if(void 0!==b)for(var k=0;k<b.length;k++)if(!this.wl(b[k].tj(),b[k].xf(),k))return;return this.vl(a,h)};b.prototype.s=function(){return!0};b.prototype.Jf=function(a,b,h,k,e,d,n,f,r,u,A){"undefined"===typeof f&&(f=[]);"undefined"===typeof r&&(r=[]);"undefined"===typeof u&&(u=[]);"undefined"===
|
|
typeof A&&(A=[]);var C=[];if(0>=f.length&&0>=r.length&&0>=u.length&&0>=A.length)return C;var v=[],y=c.e.t.Z;0<f.length?v=this.yl(a,f):(y=c.e.t.P,v=this.xl(a,r,u,A));for(a=0;a<v.length;a++){f=v[a];r=this.vi(f,b,h,k);u=new c.e.ca(b,n);for(var B in r){A=r[B];this.dd&&this.ui(y,A,f.Ma.length);var I=this.ve;A=new c.e.Rd(new Float32Array(A),I);u.ze(B,[A]);u.ye(new Uint16Array(f.Ma))}u.Me(this.yi(h,e,d));C.push(u)}return C};b.prototype.ej=function(a,b,h,k,e,d,f,q,r,u){for(var A=0,C=0,v=0,y=0,B=0,I=y=0,K=
|
|
0,T=b.length+h.length+k.length,X=[],U=3*Math.floor(c.e.d.la/6);C<T;){var A=C,C=T-C>U?C+U:T,L=C-A,A=[],R=[],H=0,F=0,W=this.ec(7),J,y=B,B=B<h.length?h.length-B<L?h.length:B+L:B,L=L-(B-y);J=h;for(var M=this.ec(0),O=this.ec(1),K=this.ec(2);y<B;y+=3){var E=J[y],G=J[y+1],D=J[y+2],E=new c.c.k(a[2*E],a[2*E+1]),G=new c.c.k(a[2*G],a[2*G+1]),D=new c.c.k(a[2*D],a[2*D+1]),P=E.x-G.x,Y=E.y-G.y,S=G.x-D.x,Q=G.y-D.y,V=Math.sqrt(P*P+Y*Y),Z=Math.sqrt(S*S+Q*Q),Q=-Q/Z,S=S/Z,P=new c.c.k(E.x-2*(-Y/V),E.y-2*(P/V)),Y=G,Q=
|
|
new c.c.k(D.x-2*Q,D.y-2*S),V=this.xi([E,G,D],[M,O,K],[P,Y,Q]);this.Vc(A,R,[E,P,G],[M,V[0],O],[1,1,1],F,H);F+=3*this.S;H+=3;this.Vc(A,R,[G,Q,D],[O,V[2],K],[1,1,1],F,H);F+=3*this.S;H+=3}if(0<L)for(y=v,v=v<b.length?b.length-v<L?b.length:v+L:v,L-=v-y,M=this.ec(4),O=this.ec(5),K=this.ec(6),J=b;y<v;y+=3)E=J[y],G=J[y+1],D=J[y+2],E=new c.c.k(a[2*E],a[2*E+1]),G=new c.c.k(a[2*G],a[2*G+1]),D=new c.c.k(a[2*D],a[2*D+1]),Y=(E.x+D.x)/2,V=(E.y+D.y)/2,P=D.x-E.x,S=D.y-E.y,Q=Math.sqrt(P*P+S*S),S=-S/Q,Z=P/Q,P=new c.c.k(E.x+
|
|
0.1*Math.min(2,Q)*S,E.y+0.1*Math.min(2,Q)*Z),Y=new c.c.k(Y,V),Q=new c.c.k(D.x+0.1*Math.min(2,Q)*S,D.y+0.1*Math.min(2,Q)*Z),V=this.xi([E,G,D],[M,O,K],[P,Y,Q]),this.Vc(A,R,[E,P,D],[M,V[0],K],[-1,-1,-1],F,H),F+=3*this.S,H+=3,this.Vc(A,R,[D,P,Q],[K,V[0],V[2]],[-1,-1,-1],F,H),F+=3*this.S,H+=3;if(0<L)for(K=I,I=I<k.length?k.length-I<L?k.length:I+L:I,J=k,M=O=this.ec(4),y=K;y<I;y+=3)E=J[y],G=J[y+1],D=J[y+2],E=new c.c.k(a[2*E],a[2*E+1]),new c.c.k(a[2*G],a[2*G+1]),D=new c.c.k(a[2*D],a[2*D+1]),P=D.x-E.x,S=D.y-
|
|
E.y,Q=Math.sqrt(P*P+S*S),S=-S/Q,Z=P/Q,P=new c.c.k(E.x-2*S,E.y-2*Z),Y=new c.c.k(D.x-2*S,D.y-2*Z),V=[W,W],this.Vc(A,R,[E,P,D],[M,V[0],O],[-1,-1,-1],F,H),F+=3*this.S,H+=3,this.Vc(A,R,[P,Y,D],[V[0],V[1],O],[-1,-1,-1],F,H),F+=3*this.S,H+=3;if(0==R.length)return;L=new c.e.ca(e,f);H=new n;H.ba=A;H.Ma=R;var A=this.vi(H,e,d,q),L=new c.e.ca(e,f),R=c.e.t.bb,ba;for(ba in A)F=A[ba],this.dd&&this.ui(R,F,H.Ma.length),W=this.ve,F=new c.e.Rd(new Float32Array(F),W),L.ze(ba,[F]),L.ye(new Uint16Array(H.Ma));L.Me(this.yi(d,
|
|
r,u));X.push(L)}return X};b.prototype.Vc=function(a,b,h,k,e,c,d){a[c+0]=h[0].x;a[c+1]=h[0].y;a[c+2]=k[0].x;a[c+3]=k[0].y;a[c+4]=e[0];c+=this.S;a[c+0]=h[1].x;a[c+1]=h[1].y;a[c+2]=k[1].x;a[c+3]=k[1].y;a[c+4]=e[1];c+=this.S;a[c+0]=h[2].x;a[c+1]=h[2].y;a[c+2]=k[2].x;a[c+3]=k[2].y;a[c+4]=e[2];b[d+0]=d+0;b[d+1]=d+1;b[d+2]=d+2};b.prototype.ec=function(a){if(9<=a)return b.Oe[a-5];4<=a&&(a-=4);4==a&&(a=3);return b.Oe[a]};b.prototype.vl=function(h,d){"string"===typeof h&&(h=JSON.parse(h));var n=h[b.Vm],p=new f(n[b.Rj][b.kn],
|
|
n[b.Rj][b.Wm],c.l.U.zd(n[b.fn]),n[b.Um],n[b.$m],n[b.dn]),n=!0==n[b.cn]?new a(h,this,this.T):new e(h,this,this.T);this.dd=!1;this.S=7;if(this.dd=d[c.n.kh])this.S+=4;this.ii=d[c.n.Id];if(!n.Vj()||!n.Tj())return p;this.ve=new c.e.di;var x=new c.e.na(0,"POSITION0",c.e.d.FLOAT,2),w=new c.e.na(2*Float32Array.BYTES_PER_ELEMENT,"TEXCOORD0",c.e.d.FLOAT,2),t=new c.e.na(4*Float32Array.BYTES_PER_ELEMENT,"TEXCOORD1",c.e.d.FLOAT,1),q=new c.e.na(5*Float32Array.BYTES_PER_ELEMENT,"TEXCOORD2",c.e.d.FLOAT,2);this.ve.vb=
|
|
[x,w,t,q];if(this.dd){var q=new c.e.na(5*Float32Array.BYTES_PER_ELEMENT,"TEXCOORD2",c.e.d.FLOAT,2),r=new c.e.na(7*Float32Array.BYTES_PER_ELEMENT,"TEXCOORD3",c.e.d.FLOAT,2),u=new c.e.na(9*Float32Array.BYTES_PER_ELEMENT,"TEXCOORD4",c.e.d.FLOAT,2);this.ve.vb=[x,w,t,q,r,u]}this.ve.aa=this.S*Float32Array.BYTES_PER_ELEMENT;if(!n.Uj()||!n.Wj())return p;this.ac=n.ac;return p};b.prototype.wl=function(a,h,e){if(void 0===a)return!1;var d=a[b.jn];if(void 0===d)return!1;a=new c.e.Zh(e,h,a[b.Oj][b.Pj][b.Kh],a[b.Oj][b.Pj][b.Jh]);
|
|
for(var n in d)h=d[n][b.Tm],h=new c.c.M(h[b.gn]+1,h[b.lk]+1,h[b.Kh]-2,h[b.Jh]-2),a.$j(n,h);this.T.Xl(a);return!0};b.prototype.af=function(a,b,h,k,c,e,d){"undefined"===typeof d&&(d=void 0);d=void 0===d?new n:d;for(var f=d.Ma.length,r=d.ba.length,u=d.ba,A=d.Ma,C=0;h<k;h+=3)for(var v=0;3>v;v++){var y=b[h+v];A[C+f]=C;var B=0;u[r+B++]=a[2*y+0];u[r+B++]=a[2*y+1];u[r+B++]=c[v].x;u[r+B++]=c[v].y;for(u[r+B++]=e;B<this.S;)u[r+B++]=void 0;r+=this.S;++C}return d};b.prototype.yl=function(a,b){for(var h=[],k=0,
|
|
e=0,d=[new c.c.k(0,1),new c.c.k(0,1),new c.c.k(0,1)];e<b.length;)k=e,e=b.length-e>c.e.d.la?e+c.e.d.la:b.length,k=this.af(a,b,k,e,d,1E5),h.push(k);return h};b.prototype.xl=function(a,h,e,d){for(var f=[],w=0,t=0,q=0,r=0,u=q=0,A=q=0,C=h.length+e.length+d.length,v=[b.Oe[0],b.Oe[1],b.Oe[2]],y=[new c.c.k(0,0),new c.c.k(0,1),new c.c.k(0,0)];t<C;){var w=t,t=C-t>c.e.d.la?t+c.e.d.la:C,w=t-w,B=new n,q=r,r=r<h.length?h.length-r<w?h.length:r+w:r,w=w-(r-q);q!=r&&(B=this.af(a,h,q,r,v,-1));0<w&&(q=u,u=u<e.length?
|
|
e.length-u<w?e.length:u+w:u,w-=u-q,B=this.af(a,e,q,u,v,1,B));0<w&&(q=A,A=A<d.length?d.length-A<w?d.length:A+w:A,B=this.af(a,d,q,A,y,1,B));f.push(B)}return f};b.prototype.vi=function(b,h,k,c){for(var d={},n=this.T.uj(),f=this.dd?this.S-6:this.S-2,q=0;q<n.length;q++){var r=n[q],u=r.$a(h);if(void 0!==u){var A=r.we,r=r.de;switch(k){case a.ih:case e.ih:this.Xk(b.ba,this.S,f,A,r,u,b.Ma.length);break;case a.Hd:case e.Hd:this.Wk(b.ba,this.S,f,b.Ma.length,c);break;case a.Gd:case e.Gd:this.Vk(b.ba,this.S,f,
|
|
b.Ma.length,c,u.width,u.height)}void 0!==b.ba&&0<b.ba.length&&(d[n[q].i()]=b.ba)}}return d};b.prototype.yi=function(b,h,k){var d=0;switch(b){case a.Hd:case e.Hd:d=c.e.ca.Uc[h];break;case a.Gd:case e.Gd:d=c.e.ca.Uc[c.e.ca.Gf],k&&(d=c.e.ca.Uc[c.e.ca.Qm])}return d};b.prototype.Xk=function(a,b,h,k,e,d,n){if(!(0>=n))for(d=new c.c.k(d.left+d.width/2,d.top+d.height/2),d.x/=k,d.y/=e,k=0;k<n;k++,h+=b)a[h]=d.x,a[h+1]=d.y};b.prototype.Wk=function(a,h,e,d,n){if(!(0>=d||6!=n.length)){n=new c.c.u(n);n.Ga(b.Lm);
|
|
var f=n.Km();f||n.Rb();for(var t=0,q=e;t<h*d;t+=h,q+=h)f?a[q]=0.5:(e=n.J(new c.c.k(a[t],a[t+1])),a[q]=e.x),a[q+1]=0.5}};b.prototype.Vk=function(a,b,h,k,e,d,n){if(!(0>=k||6!=e.length))for(e=new c.c.u(e),e.Rb(),d/=20,n/=20,e.set(0,0,e.get(0,0)/d),e.set(1,0,e.get(1,0)/n),e.set(0,1,e.get(0,1)/d),e.set(1,1,e.get(1,1)/n),e.set(0,3,e.get(0,3)/d),e.set(1,3,e.get(1,3)/n),n=0,d=h;n<b*k;n+=b,d+=b)h=e.J(new c.c.k(a[n],a[n+1])),a[d]=h.x,a[d+1]=h.y};b.prototype.xi=function(a,b,h){for(var e=[],k=a[1].sub(a[0]),
|
|
d=a[2].sub(a[0]),n=b[1].sub(b[0]),f=b[2].sub(b[0]),r=n.x,u=f.x,n=n.y,A=f.y,C=1/(r*A-u*n),f=(A*k.x-n*d.x)*C,A=(A*k.y-n*d.y)*C,n=(-u*k.x+r*d.x)*C,k=(-u*k.y+r*d.y)*C,u=1/(f*k-A*n),k=k*u,d=-A*u,r=-n*u,f=f*u,u=0;u<h.length;++u)n=h[u].sub(a[0]),A=new c.c.k(0,0),A.x=n.x*k+n.y*r,A.y=n.x*d+n.y*f,e.push(A.add(b[0]));return e};b.prototype.ui=function(a,b,h){var e=this.S-4,k=this.S;switch(a){case c.e.t.Z:for(a=0;a<h*k;a+=k,e+=k)b[e]=0,b[e+1]=1,b[e+2]=0,b[e+3]=1;break;case c.e.t.P:case c.e.t.bb:for(a=0;a<h*k;a+=
|
|
3*k,e+=3*k){var d=[];d.push(new c.c.k(b[a],b[a+1]));d.push(new c.c.k(b[a+k],b[a+k+1]));d.push(new c.c.k(b[a+2*k],b[a+2*k+1]));d=this.cl([b[a+2],b[a+3],1,b[a+k+2],b[a+k+3],1,b[a+2*k+2],b[a+2*k+3],1],d);b[e]=d[0].x;b[e+1]=d[0].y;b[e+2]=d[1].x;b[e+3]=d[1].y;b[e+k]=d[0].x;b[e+k+1]=d[0].y;b[e+k+2]=d[1].x;b[e+k+3]=d[1].y;b[e+2*k]=d[0].x;b[e+2*k+1]=d[0].y;b[e+2*k+2]=d[1].x;b[e+2*k+3]=d[1].y}}};b.prototype.cl=function(a,b){var h=b[0].sub(b[0]),k=b[1].sub(b[0]),e=b[2].sub(b[0]),h=new c.c.Wf([h.x,h.y,1,k.x,
|
|
k.y,1,e.x,e.y,1]);h.Rb();k=a[0];e=a[1];a[0]=a[1]=0;a[3]-=k;a[6]-=k;a[4]-=e;a[7]-=e;k=new c.c.Wf(a);k.concat(h);h=k.J(new c.c.k(1,0));k=k.J(new c.c.k(0,1));e=[];e.push(h);e.push(k);return e};b.Oe=[new c.c.k(0,0),new c.c.k(0.5,0),new c.c.k(1,1),new c.c.k(0,1),new c.c.k(0.25,-0.25),new c.c.k(1,0.75)];b.Lm=new c.c.u([1638.4,0,0,1638.4,-819.2,-819.2]);b.Vm="header";b.Rj="stageSize";b.kn="width";b.Wm="height";b.fn="stageColor";b.Um="frameRate";b.cn="readable";b.$m="loop";b.dn="sceneTimelines";b.jn="frames";
|
|
b.Tm="frame";b.Oj="meta";b.Pj="size";b.gn="x";b.lk="y";b.Kh="w";b.Jh="h";return b}();d.uk=b;var a=function(){function a(b,h,e){this.Eb=b;this.Kb=h;this.T=e;this.ac=-1}a.prototype.Tj=function(){var b=this.Eb[a.mh];if(0===b.length)return!0;this.ae={};this.Zd={};this.$d={};for(var h=0;h<b.length;++h)this.Zd[b[h][a.Hf]]=b[h][a.Jd],this.$d[b[h][a.Jd]]="T"==b[h][a.bn]?!0:!1,this.ae[b[h][a.Jd]]=b[h][a.hn];return!0};a.prototype.Uj=function(){var b=this.Eb[a.rh];if(0===b.length)return!0;for(var h=0;h<b.length;++h){for(var e=
|
|
b[h],d=new c.e.t(e[a.Hf]),e=e[a.an],n=0;n<e.length;++n){var f=e[n],t=this.Zd[f[a.Sm]],q=this.ae[t],r=this.$d[t],u=this.Kb.Jf(f[a.uh],t,q,f[a.lh],f[a.ph],f[a.nh],r,f[a.Xm]),A=this.Kb.Jf(f[a.uh],t,q,f[a.lh],f[a.ph],f[a.nh],r,[],f[a.Jj],f[a.Kj],f[a.Lj]),f=this.Kb.ej(f[a.uh],f[a.Jj],f[a.Kj],f[a.Lj],t,q,r,f[a.lh],f[a.ph],f[a.nh]);if(u.length)for(t=0;t<u.length;t++)d.Nb(c.e.t.Z,u[t]);if(A.length)for(t=0;t<A.length;t++)d.Nb(c.e.t.P,A[t]);if(f&&f.length)for(t=0;t<f.length;t++)d.Nb(c.e.t.bb,f[t])}d.Xg();this.T.Ug(d)}return!0};
|
|
a.prototype.Wj=function(){var b=this.Eb[a.th];if(0===b.length)return!0;for(var h=0;h<b.length;++h){for(var e=b[h],d=e[a.Jd],n=e[a.Zm],f=e[a.Ym],t=[],q=0;q<e[a.oh].length;q++)t.push({Ka:e[a.oh][q][a.Mj],name:e[a.oh][q][a.Jd]});for(var r=[],q=0;q<e[a.qh].length;q++){var u=e[a.qh][q][a.Mj];r.push({Ka:u,functionName:e[a.qh][q][a.en]})}d=new c.B.$h(e[a.Hf],d,n,f,t,r);for(u=0;u<e[a.Nj].length;++u){n=e[a.Nj][u];f=[];t=null;for(q=0;q<n[a.Ub].length;++q){switch(n[a.Ub][q][0]){case 1:t=new c.B.Xf(n[a.Ub][q].slice(1));
|
|
this.ac=Math.max(this.ac,t.X);break;case 2:t=new c.B.bi(n[a.Ub][q].slice(1));break;case 3:t=new c.B.ai(n[a.Ub][q].slice(1));break;case 4:t=new c.B.Ph(n[a.Ub][q].slice(1));break;case 5:t=new c.B.Vh(n[a.Ub][q].slice(1));break;case 6:this.Kb.ii&&(t=new c.B.Wh(n[a.Ub][q].slice(1)));break;case 7:t=new c.media.Mh(n[a.Ub][q].slice(1))}f.push(t)}d.fj(f)}this.T.hj(d)}return!0};a.prototype.Vj=function(){for(var b=this.Eb[a.sh],h=0;h<b.length;++h){var e=b[h],e=new c.media.Xh(e[a.Hf],e[a.Jd],e[a.Qj]);this.T.gj(e)}return!0};
|
|
a.ih="solid";a.Hd="linearGradient";a.Gd="bitmap";a.Hf="id";a.Jd="name";a.Zm="linkageName";a.Ym="isScene";a.oh="labels";a.Mj="frameNum";a.mh="fills";a.hn="style";a.bn="isOpaque";a.rh="shapes";a.an="meshes";a.Xm="internalIndices";a.Jj="concaveCurveIndices";a.Kj="convexCurveIndices";a.Lj="edgeIndices";a.uh="vertices";a.Sm="fillId";a.lh="fillMatrix";a.ph="overflow";a.nh="isBitmapClipped";a.th="timelines";a.qh="scripts";a.en="script";a.Nj="frames";a.sh="sounds";a.Qj="src";a.Ub="frameCmds";return a}(),
|
|
h;(function(a){a[a.kFC_PlaceObject=1]="kFC_PlaceObject";a[a.kFC_SetTransform=2]="kFC_SetTransform";a[a.kFC_SetColorTransform=3]="kFC_SetColorTransform";a[a.kFC_RemoveObject=4]="kFC_RemoveObject";a[a.kFC_SetVisibility=5]="kFC_SetVisibility"})(h||(h={}));var n=function(){return function(){this.ba=[];this.Ma=[]}}(),e=function(){function a(b,h,e){this.Eb=b;this.Kb=h;this.T=e;this.ac=-1}a.prototype.Tj=function(){var b=this.Eb[a.mh];if(0===b.length)return!0;this.ae={};this.Zd={};this.$d={};for(var h=0;h<
|
|
b.length;++h){var e=b[h][1],c=b[h][2],d=b[h][3];this.Zd[b[h][0]]=c;this.ae[c]=e;this.$d[c]="T"==d?!0:!1}return!0};a.prototype.Uj=function(){var b=this.Eb[a.rh];if(0===b.length)return!0;for(var h=0;h<b.length;++h){for(var e=b[h],d=new c.e.t(e[0]),e=e.slice(1),n=0;n<e.length;++n){var f=e[n],t=f[1],q=f[2],r=f[3],u=f[4],A=f[5],C=[],v="",y=!1,B=this.Zd[f[0]],I=this.ae[B],K=this.$d[B];switch(I){case a.Hd:C=f[6];v=f[7];break;case a.Gd:C=f[6],y=f[7]}f=this.Kb.Jf(t,B,I,C,v,y,K,q);q=this.Kb.Jf(t,B,I,C,v,y,
|
|
K,[],u,A,r);t=this.Kb.ej(t,u,A,r,B,I,K,C,v,y);if(f.length)for(r=0;r<f.length;r++)d.Nb(c.e.t.Z,f[r]);if(q.length)for(r=0;r<q.length;r++)d.Nb(c.e.t.P,q[r]);if(t&&t.length)for(r=0;r<t.length;r++)d.Nb(c.e.t.bb,t[r])}d.Xg();this.T.Ug(d)}return!0};a.prototype.Wj=function(){var b=this.Eb[a.th];if(0===b.length)return!0;for(var h=0;h<b.length;++h){for(var e=b[h][0],d=b[h][1],n=b[h][2],f=b[h][3],t=[],q=0;q<b[h][4].length;q+=2)t.push({Ka:b[h][4][q],name:b[h][4][q+1]});for(var r=[],q=0;q<b[h][5].length;q+=2){var u=
|
|
b[h][5][q];r.push({Ka:u,functionName:b[h][5][q+1]})}q=b[h].slice(6);e=new c.B.$h(e,d,n,f,t,r);for(u=0;u<q.length;++u){d=q[u];n=[];f=null;for(t=0;t<d.length;++t){switch(d[t][0]){case 1:f=new c.B.Xf(d[t].slice(1));this.ac=Math.max(this.ac,f.X);break;case 2:f=new c.B.bi(d[t].slice(1));break;case 3:f=new c.B.ai(d[t].slice(1));break;case 4:f=new c.B.Ph(d[t].slice(1));break;case 5:f=new c.B.Vh(d[t].slice(1));break;case 6:this.Kb.ii&&(f=new c.B.Wh(d[t].slice(1)));break;case 7:f=new c.media.Mh(d[t].slice(1))}n.push(f)}e.fj(n)}this.T.hj(e)}return!0};
|
|
a.prototype.Vj=function(){for(var b=this.Eb[a.sh],h=0;h<b.length;++h){var e=b[h],e=new c.media.Xh(e[0],e[1],e[2]);this.T.gj(e)}return!0};a.ih="s";a.Hd="lG";a.Gd="b";a.mh="fills";a.rh="shapes";a.th="timelines";a.sh="sounds";a.Qj="src";return a}()})(c.yj||(c.yj={}))})(N||(N={}));
|
|
(function(c){(function(c){var f=function(){function a(b){this.Sl=0;this.$c={};this.ic={};this.Sd={};this.Ud={};this.Zc={};this.Yc={};this.Og=0;this.vf=this.Lf=this.qd=void 0;this.fd=12;this.Fc=0.95;this.qf=!0;this.$b=c.d.la;void 0!==b&&(void 0!==b[a.Ef]&&(this.fd=b[a.Ef]),void 0!==b[a.Df]&&(this.Fc=1-b[a.Df]),void 0!==b[a.Ff]&&(this.qf=b[a.Ff]),void 0!==b[a.Aj]&&(this.$b=b[a.Aj]));1>this.fd&&(this.fd=1);0.5>this.Fc?this.Fc=0.5:1<this.Fc&&(this.Fc=1);if(0>this.$b||this.$b<c.d.la)this.$b=c.d.la;this.ki=
|
|
{};this.ki[a.Bj]=this.fd;this.ki[a.Bj]=1-this.Fc}a.prototype.O=g("a");a.prototype.Vg=function(a,b){this.Oa=a;this.Xc=b;this.gc=0;this.li=a.ta[0].aa;this.wa=this.bl(this.li);if(void 0===this.wa)if(this.Og<this.fd){this.wa=[];this.$c[this.li]=[];for(var e=0;1>e;e++){var c=this.Di(this.Oa);this.wa.push(c)}}else return;this.kb=[];this.$n={};this.Yc={};this.Zc={};for(e=0;e<this.wa.length;e++)this.Zc[this.wa[e].i()]=0,this.Yc[this.wa[e].i()]=0};a.prototype.Zg=function(){var a=this.El();a.$l();var b=this.Bi(this.kb,
|
|
a);void 0===b&&(a.Im(),b=this.Bi(this.kb,a));this.Ti(a.i(),this.kb,b);a.end();return b.wh};a.prototype.upload=function(a){if(this.gc+a.sa()>this.$b)return!1;for(var b=a.i(),e=a.sa(),c=0;c<this.wa.length;c++){var d=this.wa[c].i();this.wa[c].mn(b)?this.Yc[d]+=e:this.Zc[d]+=e}this.kb.push(a);this.gc+=a.sa();return!0};a.prototype.s=function(){for(var a in this.$c)for(var b=this.$c[a],e=0;e<b.length;e++){var c=b[e];c.s();this.a.deleteBuffer(this.Sd[c.i()]);for(var c=this.Ud[c.i()],d=0;d<c.length;++d)this.a.deleteBuffer(c[d])}if(this.qf){for(a in this.ic)this.a.hm(this.ic[a]);
|
|
delete this.ic}delete this.$c;this.Sd=this.Zc=this.Yc=void 0};a.prototype.Zj=function(b,c){switch(b){case a.ci:this.qd=c;break;case a.Oh:this.Lf=c;break;case a.Bh:this.vf=c;break;case a.Ah:this.bg=c}};a.prototype.removeEventListener=function(b){switch(b){case a.ci:this.qd=void 0;break;case a.Oh:this.Lf=void 0;break;case a.Bh:this.vf=void 0;break;case a.Ah:this.bg=void 0}};a.prototype.El=function(){for(var a=0,b=void 0,b=[0],e=0;e<this.wa.length;e++){var c=this.wa[e],d=c.i(),f=this.Yc[d],d=this.Zc[d],
|
|
c=c.Ec*this.Fc-d,c=0>c?-c:0,f=f-(d+2*c);if(0===a||f>=a)f===a?b.push(e):(a=f,delete b,b=[e])}e=b[0];if(1<b.length)for(c=f=0;c<b.length;c++)d=this.wa[b[c]].Ji,f<d&&(f=d,e=c);b=this.wa[e];this.Og<this.fd&&0-(this.gc+0)>a&&(b=this.Di(this.Oa));return b};a.prototype.Bi=function(a,b){for(var e=[],c=[],d=0;d<a.length;d++){var f=a[d],m=b.get(f.i()),p=!1;if(void 0===m){m=b.add(a[d].i(),f.sa());if(void 0===m)return;p=!0}e.push({Nd:m,fh:-1});c.push(p)}return{wh:e,ek:c}};a.prototype.Ti=function(a,b,e){"undefined"===
|
|
typeof b&&(b=[]);"undefined"===typeof e&&(e=void 0);var k=this.Sd[a],l=this.Ud[a],f=!1,m=this.a.$g(c.d.ARRAY_BUFFER);0===b.length&&(f=!0);m!==k&&(this.a.ga(c.d.ARRAY_BUFFER,k),void 0!==this.bg&&this.bg(a));for(var k=this.Oa.ta,p=0;p<b.length;p++)if(e.ek[p]){var x=b[p].nc()[0].ba,w=e.wh[p].Nd;this.a.bufferSubData(c.d.ARRAY_BUFFER,w*this.Oa.ta[0].aa,x);void 0!==this.qd&&this.qd(x.length*Float32Array.BYTES_PER_ELEMENT)}m=void 0;if(void 0===this.ic[a]){x=k[0];p=x.vb;x=x.aa;this.qf&&(this.ic[a]=this.a.gm(),
|
|
this.a.ud(this.ic[a]));for(w=0;w<p.length;++w){var t=this.Xc.Za(p[w].pc);f&&this.a.kc(t.location);this.a.vertexAttribPointer(t.location,t.size,t.type,t.If,x,p[w].byteOffset)}this.qf&&this.a.ud(null)}else m=this.ic[a],this.a.ud(m);for(var q=1;q<k.length;++q){this.a.ga(c.d.ARRAY_BUFFER,l[q-1]);for(p=0;p<b.length;p++)e.ek[p]&&(x=b[p].nc()[q].ba,w=e.wh[p].Nd,this.a.bufferSubData(c.d.ARRAY_BUFFER,w*this.Oa.ta[q].aa,x),void 0!==this.qd&&this.qd(x.length*Float32Array.BYTES_PER_ELEMENT));x=k[q];p=x.vb;x=
|
|
x.aa;if(void 0===m){m=this.ic[a];void 0!==m&&this.a.ud(m);for(w=0;w<p.length;++w)t=this.Xc.Za(p[w].pc),f&&this.a.kc(t.location),this.a.vertexAttribPointer(t.location,t.size,t.type,t.If,x,p[w].byteOffset);void 0!==m&&this.a.ud(null)}}};a.prototype.bl=function(a){return this.$c[a]};a.prototype.el=function(){return this.Sl++};a.prototype.Di=function(a){var n=a.ta[0],e=n.aa,n=this.$b*n.aa,k=new b(this.el(),this.$b,this);this.Og++;this.$c[e].push(k);this.Sd[k.i()]=this.a.createBuffer();this.a.ga(c.d.ARRAY_BUFFER,
|
|
this.Sd[k.i()]);this.a.uf(c.d.ARRAY_BUFFER,n,c.d.DYNAMIC_DRAW);void 0===this.Ud[k.i()]&&(this.Ud[k.i()]=[]);for(e=1;e<a.ta.length;++e){var n=a.ta[e],n=this.$b*n.aa,l=this.a.createBuffer();this.Ud[k.i()].push(l);this.a.ga(c.d.ARRAY_BUFFER,l);this.a.uf(c.d.ARRAY_BUFFER,n,c.d.DYNAMIC_DRAW)}this.a.ga(c.d.ARRAY_BUFFER,null);this.Ti(k.i());return k};a.Bj="maxbuffers";a.ho="fragfactor";a.Ef=100;a.Df=101;a.Ff=102;a.Aj=103;a.ci=0;a.Oh=1;a.Bh=2;a.Ah=3;return a}();c.Te=f;var b=function(){function a(a,b,e){this.v=
|
|
a;this.Ib={};this.Hb={};this.K=[{$:b,startOffset:0}];this.bc={};this.Ec=this.Ng=b;this.Ji=0;this.fb=e}a.prototype.i=z("v");a.prototype.$l=function(){this.gf={};this.Ji=(new Date).getTime()};a.prototype.add=function(b,c){if(this.Ec>=c){var e=this.Fk(c);if(void 0!==e)return this.Ib[b]=e,this.Hb[b]=c,this.Ec-=c,this.gf[b]=!0,this.pf(b),e}else{var d=this.al(c);if(void 0!==d){var l=this.Ib[d],f=this.Hb[d];this.Ib[d]=void 0;this.Hb[d]=void 0;this.pf(d);this.gf[b]=!0;this.Ib[b]=l;this.Hb[b]=f;this.pf(b);
|
|
f-c>a.Mm&&(this.Hk({$:f-c,startOffset:l+c}),this.Ec+=f-c,this.Hb[b]=c);return e}}};a.prototype.mn=function(a){return void 0===this.Ib[a]?!1:!0};a.prototype.get=function(a){var b=this.Ib[a];void 0!==b&&(this.gf[a]=!0,this.pf(a));return b};a.prototype.end=aa();a.prototype.Im=function(){this.Ib={};this.Hb={};this.Ec=this.Ng;this.K=[{$:this.Ng,startOffset:0}];this.bc={};void 0!==this.fb.vf&&this.fb.vf(this.v)};a.prototype.s=function(){delete this.K;delete this.Ib;delete this.Hb;delete this.bc};a.prototype.Fk=
|
|
function(a){for(var b=-1,e=0;e<this.K.length;e++)if(a<=this.K[e].$){b=e;break}if(-1!==b){var c=this.K[b],d=this.K[b].startOffset;this.K.splice(b,1);if(0<c.$-a){c.$-=a;c.startOffset+=a;for(e=b;e<this.K.length&&!(c.$<this.K[e].$);e++);this.K.splice(e,0,c)}return d}};a.prototype.Hk=function(a){for(var b=0;b<this.K.length;b++)this.K[b].startOffset+this.K[b].$===a.startOffset?(a.startOffset=this.K[b].startOffset,a.$+=this.K[b].$,this.K.splice(b,1)):a.startOffset+a.$===this.K[b].startOffset&&(a.$+=this.K[b].$,
|
|
this.K.splice(b,1));for(b=0;b<this.K.length&&!(a.$<this.K[b].$);b++);this.K.splice(b,0,a)};a.prototype.pf=function(a){if(void 0!==this.Ib[a]&&void 0!==this.Hb[a]){var b=this.bc[a];void 0===b&&(b=0);this.bc[a]=b+1}else this.bc[a]=void 0};a.prototype.al=function(b){var c=void 0,e=void 0,d=void 0,l=[],f;for(f in this.bc)void 0!==this.bc[f]&&l.push({meshId:f,hitCount:this.bc[f]});l.sort(function(a,b){return a.Gm-b.Gm});for(f=0;f<l.length;f++){var m=l[f].Sj;if(void 0===this.gf[m]&&(m=this.Hb[m],b<=m))if(m/=
|
|
b,m<a.Rm){c=f;break}else if(void 0===d||d>m)d=m,e=f}void 0!==this.fb.Lf&&this.fb.Lf();if(void 0===c&&void 0!==e)return l[e].Sj;if(void 0!==c)return l[c].Sj};a.Rm=3;a.Mm=30;return a}()})(c.e||(c.e={}))})(N||(N={}));
|
|
(function(c){(function(d){var f=function(){function b(){this.sd={}}b.prototype.O=g("a");b.prototype.Vg=function(a,b){this.Oa=a;this.Xc=b;this.gc=0;var c=a.ta[0].aa;if(void 0===this.sd[c]){var e=d.d.la*this.Oa.ta[0].aa*Float32Array.BYTES_PER_ELEMENT,k=this.a.createBuffer();this.a.ga(d.d.ARRAY_BUFFER,k);this.a.uf(d.d.ARRAY_BUFFER,e,d.d.DYNAMIC_DRAW);this.qe();this.sd[c]=k}this.Dg=this.sd[c];this.kb=[]};b.prototype.Zg=function(){this.a.$g(d.d.ARRAY_BUFFER)!==this.Dg&&(this.a.ga(d.d.ARRAY_BUFFER,this.Dg),
|
|
this.qe());for(var a=[],b=0,n=this.Oa.ta[0].aa,e=0;e<this.kb.length;e++){var k=new c.e.ok;this.a.bufferSubData(d.d.ARRAY_BUFFER,b*n,this.kb[e].nc()[0].ba);k.fh=-1;k.Nd=b;a.push(k);b+=this.kb[e].sa()}return a};b.prototype.upload=function(a){if(this.gc+a.sa()>d.d.la)return!1;this.kb.push(a);this.gc+=a.sa();return!0};b.prototype.s=function(){for(var a in this.sd)this.a.deleteBuffer(this.sd[a]);this.Dg=this.kb=this.sd=void 0};b.prototype.qe=function(){for(var a=this.Oa.ta,b=0;b<a.length;++b)for(var c=
|
|
a[b],e=c.vb,c=c.aa,d=0;d<e.length;++d){var l=this.Xc.Za(e[d].pc);this.a.kc(l.location);this.a.vertexAttribPointer(l.location,l.size,l.type,l.If,c,e[d].byteOffset)}};return b}();d.Ek=f})(c.e||(c.e={}))})(N||(N={}));
|
|
(function(c){(function(d){function f(a,b){return b.size-a.size}var b=function(){function b(){this.Cj=4}b.prototype.O=function(a){this.a=a;this.zb={};this.yb={}};b.prototype.Vg=function(a,b){this.Oa=a;this.qa=a.ta[0].aa;this.Xc=b;this.ag=0;this.F=[]};b.prototype.Zg=function(a){if(!a){var b=this.$k();a=this.yb[this.qa][b];var h=this.yb[this.qa].length==this.Cj;a=a.add(this.F,h);if(void 0===a){if(h){c.l.w.error("Upload failed!");return}a=this.Zf();a=a.add(this.F,!0)}if(void 0===a)c.l.w.error("Upload failed!");
|
|
else{b=this.zb[this.qa][b];h=this.a.$g(d.d.ARRAY_BUFFER);if(void 0===h||h!==b)this.a.ga(d.d.ARRAY_BUFFER,b),this.qe();b=[];for(h=0;h<this.F.length;++h){var e=a[this.F[h].i()];e.upload&&this.a.bufferSubData(d.d.ARRAY_BUFFER,e.state.offset*this.qa,this.F[h].nc()[0].ba);b.push({Nd:e.state.offset,fh:-1})}return b}}};b.prototype.upload=function(a){if(this.ag+a.sa()>c.e.d.la)return!1;this.ag+=a.sa();this.F.push(a);return!0};b.prototype.s=function(){for(var a in this.yb)for(var b=0;b<this.yb[a].length;++b)this.yb[a][b].s();
|
|
for(a in this.zb)for(b=0;b<this.zb[a].length;++b)this.a.deleteBuffer(this.zb[a][b])};b.prototype.$k=function(){var a=this.yb[this.qa];if(!a)return this.Zf(),0;for(var b=[],h=0;h<a.length;++h){for(var e=0,c=0,n=0;n<this.F.length;++n){var f=this.F[n].sa();void 0===a[h].get(this.F[n].i())?c+=f:e+=f}n=a[h].Bb;0==c||0.95*n>c?b.push(e):b.push(e-c-0.95*n)}a=-1;e=-d.d.la;for(h=0;h<b.length;++h)b[h]>e&&(e=b[h],a=h);return 0>e&&this.zb[this.qa].length<this.Cj?(this.Zf(),this.zb[this.qa].length-1):a};b.prototype.Zf=
|
|
function(){var b=this.a.createBuffer();if(void 0===b)c.l.w.error("Creation of vertex buffer failed.");else{var h=d.d.la*this.qa*Float32Array.BYTES_PER_ELEMENT;this.a.ga(d.d.ARRAY_BUFFER,b);this.a.uf(d.d.ARRAY_BUFFER,h,d.d.DYNAMIC_DRAW);this.qe();void 0===this.zb[this.qa]&&(this.zb[this.qa]=[]);this.zb[this.qa].push(b);b=new a;void 0===this.yb[this.qa]&&(this.yb[this.qa]=[]);this.yb[this.qa].push(b);return b}};b.prototype.qe=function(){for(var a=this.Oa.ta,b=0;b<a.length;++b)for(var h=a[b],e=h.vb,
|
|
h=h.aa,c=0;c<e.length;++c){var d=this.Xc.Za(e[c].pc);this.a.kc(d.location);this.a.vertexAttribPointer(d.location,d.size,d.type,d.If,h,e[c].byteOffset)}};return b}();d.Vn=b;var a=function(){function a(){this.ig=void 0;this.Bb=0;this.Nm=0.5;this.Om=1024;this.ig=new n;this.Il=[];this.jg={};this.ib=[];this.ld=[];this.Ze=[];this.Ye=void 0;this.Bb=d.d.la;this.Cc=[new h("-1",this.Bb,0)]}a.prototype.get=function(a){return this.jg[a]};a.prototype.add=function(a,b,e){"undefined"===typeof b&&(b=!1);"undefined"===
|
|
typeof e&&(e=!1);this.dc();for(var c=a.length,d=0;d<c;++d){var n=a[d];this.ib[d]=new h(n.i(),n.sa())}this.ib.sort(f);a={};if(this.Pi(a)||e){if(this.cc===this.ib.length)return this.fg(),a;if(!b||e){if(this.cc===this.ib.length)return this.fg(),a;this.reset();this.Pi(a);this.ib.length=0;this.fg();return a}}this.Cl()};a.prototype.s=function(){this.reset()};a.prototype.reset=function(){this.ig.s();this.ig=void 0;this.Il.length=0;this.Cc.length=0;this.jg={};this.Cg=0;this.cc=this.ld.length=0;this.Zb={};
|
|
this.Ye=void 0;this.Ze.length=0;this.Bb=d.d.la;this.Cc=[new h("-1",this.Bb,0)]};a.prototype.Pi=function(a){for(var b=this.ib[this.ib.length-1],h=this.ib.length,e=0,c=this.Cc.length-1;0<=c;--c){var d=this.Cc[c];if(d.size<b.size)break;for(var n=d.size,f=d.offset,q=0;q<this.ib.length;++q){var r=this.ib[q];if(this.Zb[r.Qc])++this.cc;else{var u=this.get(r.Qc);if(void 0!==u)a[r.Qc]={state:u,upload:!1},this.Zb[r.Qc]=u,++this.cc;else{if(n<r.size)break;r.offset=f;n-=r.size;f+=r.size;e+=r.size;n<this.Om&&(r.size+=
|
|
n,n=0);this.Bb-=r.size;this.Zb[r.Qc]=r;a[r.Qc]={state:r,upload:!0};if(++this.cc==h)break}}}d.offset=f;d.size=n}return e/this.Zn<this.Nm?!1:!0};a.prototype.dc=function(){for(var a=0;a<this.Cc.length;++a)this.ld[a]=this.Cc[a].C();this.Cg=this.Bb;this.Zb={};this.cc=0;this.Ze.length=0;this.Ye=void 0};a.prototype.Cl=function(){for(var a=0;a<this.ld.length;++a)this.Cc[a]=this.ld[a].C();this.Bb=this.Cg;this.ld.length=0;this.Ze.length=0;this.Ye=void 0;this.Zb={};this.cc=0};a.prototype.fg=function(){for(var a in this.Zb)this.jg[a]=
|
|
this.Zb[a];this.ld.length=0;this.Ze.length=0;this.Ye=void 0;this.Zb={};this.Cg=this.cc=0};a.jo=0;a.ko=1;return a}(),h=function(){function a(b,h,c){"undefined"===typeof c&&(c=void 0);this.Qc=b;this.size=h;this.offset=c}a.prototype.C=function(){return new a(this.Qc,this.size,this.offset)};return a}(),n=function(){function a(){this.dc=this.hg=this.hg=this.dc=void 0}a.prototype.end=z("hg");a.prototype.s=function(){for(var a=this.dc;void 0!==a;){var b=a.next;delete a;a=b}this.dc=this.hg=void 0};return a}()})(c.e||
|
|
(c.e={}))})(N||(N={}));
|
|
(function(c){(function(d){var f=function(){function b(a,h){"undefined"===typeof h&&(h=void 0);this.ei={};this.Jb={};this.oi=!1;for(var n=["webgl","experimental-webgl","webkit-3d","moz-webgl"],e=0;e<n.length;++e){try{this.f=a.getContext(n[e],{premultipliedAlpha:!1,alpha:!1,antialias:h[b.Nc]===b.Fe}),this.f.clearColor(1,1,1,1),this.f.clear(this.f.COLOR_BUFFER_BIT)}catch(k){}if(this.f)break}if(void 0===this.f||void 0===this.f)throw c.l.w.error("Your browser doesn't support WebGL."),Error();this.dj=void 0;
|
|
this.Fl();this.oe();this.xb=[];this.rd=this.wi("OES_vertex_array_object");this.Ic("OES_standard_derivatives")||c.l.w.error("Standard derivatives extension not enabled.");this.ha=new d.Yh(void 0,void 0,void 0,void 0);this.Yd={};this.Yf={};this.ji=!1;this.oi=h[b.He];n=h[b.Oc];this.fb=(this.ji=n instanceof Object?!0:h[b.Oc])?new c.e.Te(n):new c.e.Ek;this.fb.O(this);this.Qg={};this.rl=0}b.prototype.zm=function(a){return this.Jb[a]};b.prototype.Rc=function(a,b){"undefined"===typeof b&&(b=!0);this.dj=a;
|
|
this.f.viewport(a.left,a.top,a.width,a.height);var d=b?-1:1;this.kf=new c.c.u([2/a.width,0,0,2*d/a.height,-1,-1*d])};b.prototype.Ed=z("dj");b.prototype.xh=function(a,b){this.xb=a;this.kl(a,b)};b.prototype.vj=function(a){for(var b=void 0,c=0;c<this.xb.length;c++)if(this.xb[c].i()===a){b=this.xb[c];break}return b};b.prototype.De=function(a){for(var b=void 0,c=0;c<this.xb.length;c++)if(void 0!==this.xb[c].$a(a)){b=this.xb[c];break}return b};b.prototype.xd=function(a,h,c,e){"undefined"===typeof c&&(c=
|
|
b.RGBA);"undefined"===typeof e&&(e=b.DEPTH_COMPONENT16);var k=this.Yd[e],l=void 0,f=void 0;if(void 0!==k)for(var m=0;m<k.length;++m)if(a===k[m].width&&h===k[m].height){l=k[m].ti;f=k[m].xg;break}void 0===l&&(l=this.createFramebuffer(),this.bindFramebuffer(b.FRAMEBUFFER,l),f=this.createRenderbuffer(),this.bindRenderbuffer(b.RENDERBUFFER,f),this.renderbufferStorage(b.RENDERBUFFER,e,a,h),this.framebufferRenderbuffer(b.FRAMEBUFFER,b.DEPTH_ATTACHMENT,b.RENDERBUFFER,f),void 0===this.Yd[e]&&(this.Yd[e]=[]),
|
|
this.Yd[e].push({ti:l,xg:f,width:a,height:h}),this.bindFramebuffer(b.FRAMEBUFFER,this.ha.Xd));e=this.createTexture();l=new d.Yh(this.xb.length,e,l,f);this.rf(l.i());this.bindTexture(b.TEXTURE_2D,e);this.Qn(b.TEXTURE_2D,c,a,h,c,b.UNSIGNED_BYTE);this.texParameteri(b.TEXTURE_2D,b.TEXTURE_MAG_FILTER,b.LINEAR);this.texParameteri(b.TEXTURE_2D,b.TEXTURE_MIN_FILTER,b.LINEAR);this.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_S,b.CLAMP_TO_EDGE);this.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_T,b.CLAMP_TO_EDGE);
|
|
a=new d.Zh(l.i(),void 0,a,h);this.Jb[l.i()]=l.re;this.xb.push(a);this.bindTexture(b.TEXTURE_2D,null);this.Nk(l.i());return l};b.prototype.Ha=function(a){if(a===this.ha)return this.ha;a.Xd!==this.ha.Xd&&this.bindFramebuffer(b.FRAMEBUFFER,a.Xd);void 0!==a.Xd&&this.framebufferTexture2D(b.FRAMEBUFFER,b.COLOR_ATTACHMENT0,b.TEXTURE_2D,a.re,0);var h=this.ha;this.ha=a;return h};b.prototype.Wg=function(a){this.rf(a.i());this.bindTexture(b.TEXTURE_2D,a.re);return a.i()};b.prototype.dk=function(a){this.rf(a.i());
|
|
this.bindTexture(b.TEXTURE_2D,null)};b.prototype.eh=z("ha");b.prototype.Ae=function(a){void 0!==a&&a.re&&(this.deleteTexture(a.re),this.Jb[a.i()]=void 0)};b.prototype.e=function(a,h,c){for(var e=c.length,d=0,l=0;d<e;){this.fb.Vg(h,a.Za());for(l=d;d<e&&this.fb.upload(c[d]);d++);for(var f=this.fb.Zg(!1),m=0;m<f.length;m++,l++){var p=c[l];this.Gl(p);this.Hl(a,p);this.drawArrays(b.TRIANGLES,f[m].Nd,p.sa())}this.ud(null)}};b.prototype.drawElements=function(a){this.f.drawElements(this.f.TRIANGLES,a,this.f.UNSIGNED_SHORT,
|
|
0)};b.prototype.drawArrays=function(a,b,c){this.f.drawArrays(a,b,c)};b.prototype.bufferData=function(a,b,c){this.f.bufferData(a,b,c)};b.prototype.uf=function(a,b,c){this.f.bufferData(a,b,c)};b.prototype.bufferSubData=function(a,b,c){this.f.bufferSubData(a,b,c)};b.prototype.Wb=function(a){this.Ue=a;this.clearColor(a.Kf/255,a.wf/255,a.sf/255,a.xe/255)};b.prototype.lc=z("Ue");b.prototype.clearColor=function(a,b,c,e){this.f.clearColor(a,b,c,e)};b.prototype.clear=function(a,b,c){var e=0;a&&(e|=this.f.COLOR_BUFFER_BIT);
|
|
b&&(e|=this.f.DEPTH_BUFFER_BIT);c&&(e|=this.f.STENCIL_BUFFER_BIT);e&&this.f.clear(e)};b.prototype.blendFunc=function(a,b){this.f.blendFunc(a,b)};b.prototype.blendFuncSeparate=function(a,b,c,e){this.f.blendFuncSeparate(a,b,c,e)};b.prototype.enable=function(a){this.f.enable(a)};b.prototype.disable=function(a){this.f.disable(a)};b.prototype.scissor=function(a){this.f.scissor(a.left,a.top,a.width,a.height)};b.prototype.depthMask=function(a){this.f.depthMask(a)};b.prototype.depthFunc=function(a){this.f.depthFunc(a)};
|
|
b.prototype.clearDepth=function(a){this.f.clearDepth(a)};b.prototype.yd=function(a){this.Pk!==a&&(a?this.f.enable(this.f.DEPTH_TEST):this.f.disable(this.f.DEPTH_TEST),this.Pk=a)};b.prototype.Ja=function(a,b){var d=this.f.createShader(a);if(this.fe())return null;this.f.shaderSource(d,b);if(this.fe())return null;this.f.compileShader(d);return this.fe()?null:this.f.getShaderParameter(d,this.f.COMPILE_STATUS)?d:(c.l.w.info(this.f.getShaderInfoLog(d)),null)};b.prototype.deleteShader=function(a){this.f.deleteShader(a)};
|
|
b.prototype.createProgram=function(){return this.f.createProgram()};b.prototype.deleteProgram=function(a){this.f.deleteProgram(a)};b.prototype.attachShader=function(a,b){this.f.attachShader(a,b)};b.prototype.linkProgram=function(a){this.f.linkProgram(a);var b=this.fe(),d=this.f.getProgramParameter(a,this.f.LINK_STATUS);d&&!b||c.l.w.error("Could not initialize shaders properly: "+this.f.getProgramInfoLog(a));return!b&&d?this.rl++:-1};b.prototype.useProgram=function(a){this.f.useProgram(a)};b.prototype.Ic=
|
|
function(a){return null!=this.wi(a)};b.prototype.bindAttribLocation=function(a,b,c){this.f.bindAttribLocation(a,b,c)};b.prototype.getAttribLocation=function(a,b){return this.f.getAttribLocation(a,b)};b.prototype.kc=function(a){this.f.enableVertexAttribArray(a)};b.prototype.vertexAttribPointer=function(a,b,c,e,d,l){this.f.vertexAttribPointer(a,b,c,e,d,l)};b.prototype.getUniformLocation=function(a,b){return this.f.getUniformLocation(a,b)};b.prototype.uniformMatrix4fv=function(a,b,c){this.f.uniformMatrix4fv(a,
|
|
b,c)};b.prototype.uniform2fv=function(a,b){this.f.uniform2fv(a,b)};b.prototype.uniform4fv=function(a,b){this.f.uniform4fv(a,b)};b.prototype.uniform1i=function(a,b){this.f.uniform1i(a,b)};b.prototype.uniform1iv=function(a,b){this.f.uniform1iv(a,b)};b.prototype.uniform2iv=function(a,b){this.f.uniform2iv(a,b)};b.prototype.createBuffer=function(){var a=this.f.createBuffer();return this.fe()?void 0:a};b.prototype.deleteBuffer=function(a){this.f.deleteBuffer(a)};b.prototype.ga=function(a,b){this.f.bindBuffer(a,
|
|
b);this.ei[a]=b};b.prototype.$g=function(a){return this.ei[a]};b.prototype.createFramebuffer=function(){return this.f.createFramebuffer()};b.prototype.deleteFramebuffer=function(a){this.f.deleteFramebuffer(a)};b.prototype.bindFramebuffer=function(a,b){this.f.bindFramebuffer(a,b)};b.prototype.bindRenderbuffer=function(a,b){this.f.bindRenderbuffer(a,b)};b.prototype.framebufferTexture2D=function(a,b,c,e,d){this.f.framebufferTexture2D(a,b,c,e,d)};b.prototype.framebufferRenderbuffer=function(a,b,c,e){this.f.framebufferRenderbuffer(a,
|
|
b,c,e)};b.prototype.createRenderbuffer=function(){return this.f.createRenderbuffer()};b.prototype.deleteRenderbuffer=function(a){this.f.deleteRenderbuffer(a)};b.prototype.renderbufferStorage=function(a,b,c,e){this.f.renderbufferStorage(a,b,c,e)};b.prototype.rf=function(a){this.Yf[a]=a;this.f.activeTexture(b.TEXTURE0+a)};b.prototype.Nk=function(a){this.Yf[a]=void 0};b.prototype.bindTexture=function(a,b){this.f.bindTexture(a,b)};b.prototype.createTexture=function(){return this.f.createTexture()};b.prototype.deleteTexture=
|
|
function(a){this.f.deleteTexture(a)};b.prototype.texImage2D=function(a,b,c,e,d,l){this.f.texImage2D(a,b,c,e,d,l)};b.prototype.Qn=function(a,b,c,e,d,l){this.f.texImage2D(a,0,b,c,e,0,d,l,null)};b.prototype.texParameteri=function(a,b,c){this.f.texParameteri(a,b,c)};b.prototype.pixelStorei=function(a,b){this.f.pixelStorei(a,b)};b.prototype.flush=function(){this.f.flush()};b.prototype.gm=function(){if(void 0!==this.rd)return this.rd.createVertexArrayOES()};b.prototype.ud=function(a){void 0!==this.rd&&
|
|
this.rd.bindVertexArrayOES(a)};b.prototype.hm=function(a){void 0!==this.rd&&this.rd.deleteVertexArrayOES(a)};b.prototype.s=function(){this.Ok();for(var a in this.Yd){var b=a.ti;this.deleteRenderbuffer(a.xg);this.deleteFramebuffer(b)}this.fb.s()};b.prototype.Ok=function(){for(var a in this.Jb)this.Jb[a]&&this.f.deleteTexture(this.Jb[a]);this.Jb={}};b.prototype.kl=function(a,c){for(var d=0,e=0;e<a.length;e++){var k=this.createTexture(),l=new Image,f=this,m=a[e],p=a.length;l.onload=function(){f.bindTexture(b.TEXTURE_2D,
|
|
f.Jb[this.id]);f.texImage2D(b.TEXTURE_2D,0,b.RGBA,b.RGBA,b.UNSIGNED_BYTE,this);f.texParameteri(b.TEXTURE_2D,b.TEXTURE_MAG_FILTER,b.LINEAR);f.texParameteri(b.TEXTURE_2D,b.TEXTURE_MIN_FILTER,b.LINEAR);f.pixelStorei(b.UNPACK_PREMULTIPLY_ALPHA_WEBGL,0);f.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_S,b.CLAMP_TO_EDGE);f.texParameteri(b.TEXTURE_2D,b.TEXTURE_WRAP_T,b.CLAMP_TO_EDGE);f.bindTexture(b.TEXTURE_2D,null);++d===p&&c()};l.src=m.xf();l.id=""+m.i();this.Jb[m.i()]=k}};b.prototype.oe=function(){this.blendFunc(b.SRC_ALPHA,
|
|
b.ONE_MINUS_SRC_ALPHA);this.enable(b.BLEND);this.depthFunc(b.LESS);this.Wb(new c.c.Tc(255,255,255,0));this.clearDepth(1);this.disable(b.CULL_FACE);this.depthMask(!0);this.yd(!0)};b.prototype.getError=function(){if(!this.oi)return this.f.NO_ERROR;var a=this.f.getError();a!=this.f.NO_ERROR&&c.l.w.error("WebGL Error: "+a);return a};b.prototype.Gl=function(a){a=a.lb;if(this.Yf[a]!==a){var c=this.zm(a);c&&(this.rf(a),this.bindTexture(b.TEXTURE_2D,c))}};b.prototype.Hl=function(a,c){var d=c.Ee(a.i()),e=
|
|
this.Qg[a.i()];e||(e=this.Qg[a.i()]={});for(var k=0;k<d.length;++k){var f=d[k].value,s=d[k].jc.type,m=d[k].jc.location,p=e[k];switch(s){case b.FLOAT_VEC2:void 0!==p&&p.value[0]===f[0]&&p.value[1]===f[1]||this.uniform2fv(m,f);break;case b.FLOAT_VEC4:void 0!==p&&p.value[0]===f[0]&&p.value[1]===f[1]&&p.value[2]===f[2]&&p.value[3]===f[3]||this.uniform4fv(m,f);break;case b.FLOAT_MAT4:void 0!==p&&p.value[0]===f[0]&&p.value[1]===f[1]&&p.value[4]===f[4]&&p.value[5]===f[5]&&p.value[10]===f[10]&&p.value[12]===
|
|
f[12]&&p.value[13]===f[13]||this.uniformMatrix4fv(m,!1,f);break;case b.INT:case b.SAMPLER_2D:void 0!==p&&p.value[0]===f[0]&&p.value[1]===f[1]||this.uniform1iv(m,f);break;case b.INT_VEC2:void 0!==p&&p.value[0]===f[0]&&p.value[1]===f[1]||this.uniform2iv(m,f)}this.Qg[a.i()][k]={type:s,value:f}}};b.prototype.wi=function(a){a=this.f.getExtension(a);return null===a?void 0:a};b.prototype.Fl=function(){b.ZERO=this.f.ZERO;b.ONE=this.f.ONE;b.SRC_COLOR=this.f.SRC_COLOR;b.ONE_MINUS_SRC_COLOR=this.f.ONE_MINUS_SRC_COLOR;
|
|
b.SRC_ALPHA=this.f.SRC_ALPHA;b.ONE_MINUS_SRC_ALPHA=this.f.ONE_MINUS_SRC_ALPHA;b.DST_ALPHA=this.f.DST_ALPHA;b.ONE_MINUS_DST_ALPHA=this.f.ONE_MINUS_DST_ALPHA;b.DST_COLOR=this.f.DST_COLOR;b.ONE_MINUS_DST_COLOR=this.f.ONE_MINUS_DST_COLOR;b.SRC_ALPHA_SATURATE=this.f.SRC_ALPHA_SATURATE;b.NEVER=this.f.NEVER;b.LESS=this.f.LESS;b.EQUAL=this.f.EQUAL;b.LEQUAL=this.f.LEQUAL;b.GREATER=this.f.GREATER;b.NOTEQUAL=this.f.NOTEQUAL;b.GEQUAL=this.f.GEQUAL;b.ALWAYS=this.f.ALWAYS;b.ARRAY_BUFFER=this.f.ARRAY_BUFFER;b.ELEMENT_ARRAY_BUFFER=
|
|
this.f.ELEMENT_ARRAY_BUFFER;b.ARRAY_BUFFER_BINDING=this.f.ARRAY_BUFFER_BINDING;b.ELEMENT_ARRAY_BUFFER_BINDING=this.f.ELEMENT_ARRAY_BUFFER_BINDING;b.BYTE=this.f.BYTE;b.UNSIGNED_BYTE=this.f.UNSIGNED_BYTE;b.SHORT=this.f.SHORT;b.UNSIGNED_SHORT=this.f.UNSIGNED_SHORT;b.INT=this.f.INT;b.UNSIGNED_INT=this.f.UNSIGNED_INT;b.FLOAT=this.f.FLOAT;b.INT_VEC2=this.f.INT_VEC2;b.INT_VEC3=this.f.INT_VEC3;b.INT_VEC4=this.f.INT_VEC4;b.FLOAT_VEC2=this.f.FLOAT_VEC2;b.FLOAT_VEC3=this.f.FLOAT_VEC3;b.FLOAT_VEC4=this.f.FLOAT_VEC4;
|
|
b.FLOAT_MAT4=this.f.FLOAT_MAT4;b.SAMPLER_2D=this.f.SAMPLER_2D;b.FRAGMENT_SHADER=this.f.FRAGMENT_SHADER;b.VERTEX_SHADER=this.f.VERTEX_SHADER;b.MAX_VERTEX_ATTRIBS=this.f.MAX_VERTEX_ATTRIBS;b.MAX_VERTEX_UNIFORM_VECTORS=this.f.MAX_VERTEX_UNIFORM_VECTORS;b.MAX_VARYING_VECTORS=this.f.MAX_VARYING_VECTORS;b.MAX_COMBINED_TEXTURE_IMAGE_UNITS=this.f.MAX_COMBINED_TEXTURE_IMAGE_UNITS;b.MAX_VERTEX_TEXTURE_IMAGE_UNITS=this.f.MAX_VERTEX_TEXTURE_IMAGE_UNITS;b.MAX_TEXTURE_IMAGE_UNITS=this.f.MAX_TEXTURE_IMAGE_UNITS;
|
|
b.MAX_FRAGMENT_UNIFORM_VECTORS=this.f.MAX_FRAGMENT_UNIFORM_VECTORS;b.CULL_FACE=this.f.CULL_FACE;b.BLEND=this.f.BLEND;b.DITHER=this.f.DITHER;b.STENCIL_TEST=this.f.STENCIL_TEST;b.DEPTH_TEST=this.f.DEPTH_TEST;b.SCISSOR_TEST=this.f.SCISSOR_TEST;b.POLYGON_OFFSET_FILL=this.f.POLYGON_OFFSET_FILL;b.SAMPLE_ALPHA_TO_COVERAGE=this.f.SAMPLE_ALPHA_TO_COVERAGE;b.SAMPLE_COVERAGE=this.f.SAMPLE_COVERAGE;b.TEXTURE0=this.f.TEXTURE0;b.TEXTURE_2D=this.f.TEXTURE_2D;b.RGBA=this.f.RGBA;b.RGB=this.f.RGB;b.TEXTURE_MAG_FILTER=
|
|
this.f.TEXTURE_MAG_FILTER;b.TEXTURE_MIN_FILTER=this.f.TEXTURE_MIN_FILTER;b.TEXTURE_WRAP_S=this.f.TEXTURE_WRAP_S;b.TEXTURE_WRAP_T=this.f.TEXTURE_WRAP_T;b.UNPACK_FLIP_Y_WEBGL=this.f.UNPACK_FLIP_Y_WEBGL;b.CLAMP_TO_EDGE=this.f.CLAMP_TO_EDGE;b.NEAREST=this.f.NEAREST;b.LINEAR=this.f.LINEAR;b.NEAREST_MIPMAP_NEAREST=this.f.NEAREST_MIPMAP_NEAREST;b.LINEAR_MIPMAP_NEAREST=this.f.LINEAR_MIPMAP_NEAREST;b.NEAREST_MIPMAP_LINEAR=this.f.NEAREST_MIPMAP_LINEAR;b.LINEAR_MIPMAP_LINEAR=this.f.LINEAR_MIPMAP_LINEAR;b.UNPACK_PREMULTIPLY_ALPHA_WEBGL=
|
|
this.f.UNPACK_PREMULTIPLY_ALPHA_WEBGL;b.FRAMEBUFFER=this.f.FRAMEBUFFER;b.RENDERBUFFER=this.f.RENDERBUFFER;b.COLOR_ATTACHMENT0=this.f.COLOR_ATTACHMENT0;b.DEPTH_STENCIL=this.f.DEPTH_STENCIL;b.DEPTH_COMPONENT16=this.f.DEPTH_COMPONENT16;b.STENCIL_INDEX8=this.f.STENCIL_INDEX8;b.DEPTH_ATTACHMENT=this.f.DEPTH_ATTACHMENT;b.STENCIL_ATTACHMENT=this.f.STENCIL_ATTACHMENT;b.DEPTH_STENCIL_ATTACHMENT=this.f.DEPTH_STENCIL_ATTACHMENT;b.FRAMEBUFFER_UNSUPPORTED=this.f.FRAMEBUFFER_UNSUPPORTED;b.KEEP=this.f.KEEP;b.REPLACE=
|
|
this.f.REPLACE;b.INCR=this.f.INCR;b.DECR=this.f.DECR;b.INVERT=this.f.INVERT;b.INCR_WRAP=this.f.INCR_WRAP;b.DECR_WRAP=this.f.DECR_WRAP;b.STREAM_DRAW=this.f.STREAM_DRAW;b.STATIC_DRAW=this.f.STATIC_DRAW;b.DYNAMIC_DRAW=this.f.DYNAMIC_DRAW;b.TRIANGLES=this.f.TRIANGLES};b.prototype.fe=function(){return this.getError()!=this.f.NO_ERROR};b.la=65532;b.MAX_TEXTURE_SIZE=2048;b.He=0;b.Nc=1;b.Oc=2;b.jh=3;b.Fe=0;b.Cf=1;return b}();d.d=f})(c.e||(c.e={}))})(N||(N={}));
|
|
(function(c){(function(d){var f=function(){function b(){}b.prototype.i=z("v");b.prototype.O=function(a){this.a=a;this.V=new c.c.u;return this.Ua()};b.prototype.Za=z("wb");b.prototype.e=function(a){for(var b=a.F.length,c=this.a.kf,e=0;e<b;++e){var k=a.mc(e);if(k.Mc()){var f=k.ka.cd,s=this.a.De(f),f=s.$a(f),m=k.La(),p=k.lb,x=k.ka.le,p=k.lb,w=s.we,s=s.de;this.V.ja();this.V.Ga(c);this.V.Ga(k.ub());var t=this.V.b,q=k.Ee(this.i());void 0===q?(q=[],q.push(new d.D(this.o.uMVMatrix,t)),q.push(new d.D(this.o.uSampler,
|
|
[p])),q.push(new d.D(this.o.uColorXformMultiplier,[m.sb(),m.qb(),m.ob(),m.Xa()])),q.push(new d.D(this.o.uColorXformOffset,[m.tb()/255,m.rb()/255,m.pb()/255,m.Ya()/255])),q.push(new d.D(this.o.uOverflowType,[x])),q.push(new d.D(this.o.uFrame,[f.left/w,f.top/s,f.width/w,f.height/s]))):(q[0].value=t,q[1].value=[p],q[2].value=[m.sb(),m.qb(),m.ob(),m.Xa()],q[3].value=[m.tb()/255,m.rb()/255,m.pb()/255,m.Ya()/255],q[4].value=[x],q[5].value=[f.left/w,f.top/s,f.width/w,f.height/s]);k.Qf(this.i(),q)}}0<a.F.length&&
|
|
this.a.e(this,a.mc(0).ka.je,a.F)};b.prototype.Xb=function(){this.a.useProgram(this.h)};b.prototype.Ua=function(){this.Wa=" \t\t attribute vec2 aVertexPosition; \t\t attribute vec2 aLoopBlinnTextureCoord; attribute vec2 aTextureCoord; \t\t attribute float aIsConvex; \t\tuniform mat4 uMVMatrix; \t\tvarying vec4 vTexCoord; \t\tvarying float vIsConvex; \t\tvoid main(void) { \t\tgl_Position \x3d uMVMatrix * vec4(aVertexPosition, 1.0, 1.0); vTexCoord \x3d vec4(aLoopBlinnTextureCoord, aTextureCoord); vIsConvex \x3d aIsConvex; \t\t}";
|
|
this.Qa="#extension GL_OES_standard_derivatives : enable\nprecision mediump float; \t\tvarying vec4 vTexCoord; \t\tvarying float vIsConvex;\t\t\tuniform vec4 uColorXformMultiplier;\t\t\tuniform vec4 uColorXformOffset; uniform sampler2D uSampler; uniform int uOverflowType; uniform vec4 uFrame; \t\t void main(void) { vec2 p \x3d vTexCoord.xy; \t vec2 px \x3d dFdx(p); \t vec2 py \x3d dFdy(p); \t vec2 f \x3d (2.0 * vTexCoord.x) * vec2(px.x, py.x) - vec2(px.y, py.y); \t float sd \x3d vIsConvex * (vTexCoord.x * vTexCoord.x - vTexCoord.y) / length(f); \t float alpha \x3d min(0.5 - sd, 1.0); if (alpha \x3c 0.0) discard; vec2 uv; if(uOverflowType \x3d\x3d 0){ /*solid fill*/ uv \x3d vTexCoord.zw; } else if(uOverflowType \x3d\x3d 1) { /*gradient and bitmap fill with overflow type extend*/ uv \x3d clamp(vTexCoord.zw, vec2(0.0, 0.0), vec2(1.0, 1.0)) * uFrame.zw + uFrame.xy; } else if(uOverflowType \x3d\x3d 2){/*gradient and bitmap fill with overflow type repeat*/ uv \x3d fract(vTexCoord.zw) * uFrame.zw + uFrame.xy; } else if(uOverflowType \x3d\x3d 3){/*gradient fill with overflow type reflect*/ uv \x3d vTexCoord.zw; if(uv.s \x3e 1.0) {\t float integerPart \x3d floor(uv.s);\t float fracPart \x3d mod(uv.s,1.0);\t float odd \x3d mod(integerPart,2.0);\t if (odd \x3d\x3d 1.0){ /*if the uv.s lies on the odd number of band towards the right side*/ \t\t uv.s \x3d 1.0 - fracPart;\t }\t else{/*if the uv.s lies on the even number of band towards the right side*/ \t\t uv.s \x3d fracPart;\t } } else if(uv.s \x3c 0.0){\t float integerPart \x3d floor(uv.s);\t float fracPart \x3d mod(uv.s,1.0);\t float odd \x3d mod(integerPart,2.0);\t if (integerPart \x3d\x3d 0.0){/* special case for left side*/ \t\t uv.s \x3d fracPart;\t }\t else if(odd \x3d\x3d 1.0){/*if the uv.s lies on the odd number of band towards the left side*/ \t\t uv.s \x3d 1.0 - fracPart;\t }\t else {/*if the uv.s lies on the even number of band towards the left side*/ \t\t uv.s \x3d fracPart;\t } } uv \x3d (uFrame.xy + (uv * uFrame.zw)); } vec4 textureColor \x3d texture2D(uSampler, uv); textureColor.a \x3d textureColor.a * alpha; gl_FragColor \x3d textureColor * uColorXformMultiplier + uColorXformOffset; \t\t} ";
|
|
this.fa=this.a.Ja(d.d.VERTEX_SHADER,this.Wa);this.da=this.a.Ja(d.d.FRAGMENT_SHADER,this.Qa);this.h=this.a.createProgram();this.a.attachShader(this.h,this.fa);this.a.attachShader(this.h,this.da);this.v=this.a.linkProgram(this.h);if(0>this.v)return this.a.deleteProgram(this.h),c.l.w.error("Program linking failed."),!1;var a=this.a.getUniformLocation(this.h,"uSampler"),b=this.a.getUniformLocation(this.h,"uColorXformMultiplier"),f=this.a.getUniformLocation(this.h,"uColorXformOffset"),e=this.a.getUniformLocation(this.h,
|
|
"uOverflowType"),k=this.a.getUniformLocation(this.h,"uFrame"),l=new d.q(this.a.getUniformLocation(this.h,"uMVMatrix"),d.d.FLOAT_MAT4,1,d.q.Kd),a=new d.q(a,d.d.SAMPLER_2D,1,d.q.Q),b=new d.q(b,d.d.FLOAT_VEC4,1,d.q.Q),f=new d.q(f,d.d.FLOAT_VEC4,1,d.q.Q),e=new d.q(e,d.d.INT,1,d.q.Q),k=new d.q(k,d.d.FLOAT_VEC4,1,d.q.Q);this.Pg=new d.Se([l,a,b,f,e,k]);this.o={};this.o.uMVMatrix=l;this.o.uSampler=a;this.o.uColorXformMultiplier=b;this.o.uColorXformOffset=f;this.o.uOverflowType=e;this.o.uFrame=k;a=this.a.getAttribLocation(this.h,
|
|
"aLoopBlinnTextureCoord");e=this.a.getAttribLocation(this.h,"aIsConvex");k=this.a.getAttribLocation(this.h,"aTextureCoord");l=new d.R(this.a.getAttribLocation(this.h,"aVertexPosition"),"POSITION0",d.d.FLOAT,2);a=new d.R(a,"TEXCOORD0",d.d.FLOAT,2);e=new d.R(e,"TEXCOORD1",d.d.FLOAT,1);k=new d.R(k,"TEXCOORD2",d.d.FLOAT,2);this.wb=new c.e.Pe([l,a,e,k]);return!0};b.prototype.s=function(){this.a.deleteShader(this.fa);this.a.deleteShader(this.da);this.a.deleteProgram(this.h)};b.Pm=7;return b}();d.Ck=f})(c.e||
|
|
(c.e={}))})(N||(N={}));
|
|
(function(c){(function(d){var f=function(){function b(){}b.prototype.i=z("v");b.prototype.O=function(a){this.a=a;this.V=new c.c.u;this.N=new c.c.u;return this.Ua()};b.prototype.Za=z("wb");b.prototype.e=function(a){for(var b=a.F.length,c=this.a.kf,e=0;e<b;++e){var k=a.mc(e);if(k.Mc()){var f=k.ka.cd,s=this.a.De(f),f=s.$a(f),m=k.La(),p=k.lb,x=k.ka.le,p=k.lb,w=s.we,s=s.de;this.V.ja();this.V.Ga(c);this.V.Ga(k.ub());var t=this.V.b;this.N.copy(k.ub());this.N.Rb();var q=k.Ee(this.i());void 0===q?(q=[],q.push(new d.D(this.o.uMVMatrix,
|
|
t)),q.push(new d.D(this.o.uMVMatrixInv,[this.N.get(0,0),this.N.get(0,1),this.N.get(1,0),this.N.get(1,1)])),q.push(new d.D(this.o.uSampler,[p])),q.push(new d.D(this.o.uColorXformMultiplier,[m.sb(),m.qb(),m.ob(),m.Xa()])),q.push(new d.D(this.o.uColorXformOffset,[m.tb()/255,m.rb()/255,m.pb()/255,m.Ya()/255])),q.push(new d.D(this.o.uOverflowType,[x])),q.push(new d.D(this.o.uFrame,[f.left/w,f.top/s,f.width/w,f.height/s]))):(q[0].value=t,q[1].value=[this.N.get(0,0),this.N.get(0,1),this.N.get(1,0),this.N.get(1,
|
|
1)],q[2].value=[p],q[3].value=[m.sb(),m.qb(),m.ob(),m.Xa()],q[4].value=[m.tb()/255,m.rb()/255,m.pb()/255,m.Ya()/255],q[5].value=[x],q[6].value=[f.left/w,f.top/s,f.width/w,f.height/s]);k.Qf(this.i(),q)}}0<a.F.length&&this.a.e(this,a.mc(0).ka.je,a.F)};b.prototype.Xb=function(){this.a.useProgram(this.h)};b.prototype.Ua=function(){this.Wa=" \t\t attribute vec2 aVertexPosition; \t\t attribute vec2 aLoopBlinnTextureCoord; attribute vec2 aTextureCoord; attribute vec2 adfdx; attribute vec2 adfdy; \t\t attribute float aIsConvex; \t\tuniform mat4 uMVMatrix; uniform vec4 uMVMatrixInv; \t\tvarying vec4 vTexCoord; \t\tvarying float vIsConvex; varying vec4 vDfDxDy; \t\tvoid main(void) { \t\tgl_Position \x3d uMVMatrix * vec4(aVertexPosition, 1.0, 1.0); vDfDxDy.xy \x3d vec2(uMVMatrixInv[0] * adfdx.x + uMVMatrixInv[1] * adfdy.x, uMVMatrixInv[0] * adfdx.y + uMVMatrixInv[1] * adfdy.y); vDfDxDy.zw \x3d vec2(uMVMatrixInv[2] * adfdx.x + uMVMatrixInv[3] * adfdy.x, uMVMatrixInv[2] * adfdx.y + uMVMatrixInv[3] * adfdy.y); vTexCoord \x3d vec4(aLoopBlinnTextureCoord, aTextureCoord); vIsConvex \x3d aIsConvex; \t\t}";
|
|
this.Qa="precision mediump float; \t\tvarying vec4 vTexCoord; \t\tvarying float vIsConvex; varying vec4 vDfDxDy; \t\t\tuniform vec4 uColorXformMultiplier;\t\t\tuniform vec4 uColorXformOffset; uniform sampler2D uSampler; uniform int uOverflowType; uniform vec4 uFrame; \t\t void main(void) { vec2 p \x3d vTexCoord.xy; \t vec2 px \x3d vDfDxDy.xy; \t vec2 py \x3d vDfDxDy.zw; \t vec2 f \x3d (2.0 * vTexCoord.x) * vec2(px.x, py.x) - vec2(px.y, py.y); \t float sd \x3d vIsConvex * (vTexCoord.x * vTexCoord.x - vTexCoord.y) / length(f); \t float alpha \x3d min(0.5 - sd, 1.0); if (alpha \x3c 0.0) discard; vec2 uv; if(uOverflowType \x3d\x3d 0){ /*solid fill*/ uv \x3d vTexCoord.zw; } else if(uOverflowType \x3d\x3d 1) { /*gradient and bitmap fill with overflow type extend*/ uv \x3d clamp(vTexCoord.zw, vec2(0.0, 0.0), vec2(1.0, 1.0)) * uFrame.zw + uFrame.xy; } else if(uOverflowType \x3d\x3d 2){/*gradient and bitmap fill with overflow type repeat*/ uv \x3d fract(vTexCoord.zw) * uFrame.zw + uFrame.xy; } else if(uOverflowType \x3d\x3d 3){/*gradient fill with overflow type reflect*/ uv \x3d vTexCoord.zw; if(uv.s \x3e 1.0) {\t float integerPart \x3d floor(uv.s);\t float fracPart \x3d mod(uv.s,1.0);\t float odd \x3d mod(integerPart,2.0);\t if (odd \x3d\x3d 1.0){ /*if the uv.s lies on the odd number of band towards the right side*/ \t\t uv.s \x3d 1.0 - fracPart;\t }\t else{/*if the uv.s lies on the even number of band towards the right side*/ \t\t uv.s \x3d fracPart;\t } } else if(uv.s \x3c 0.0){\t float integerPart \x3d floor(uv.s);\t float fracPart \x3d mod(uv.s,1.0);\t float odd \x3d mod(integerPart,2.0);\t if (integerPart \x3d\x3d 0.0){/* special case for left side*/ \t\t uv.s \x3d fracPart;\t }\t else if(odd \x3d\x3d 1.0){/*if the uv.s lies on the odd number of band towards the left side*/ \t\t uv.s \x3d 1.0 - fracPart;\t }\t else {/*if the uv.s lies on the even number of band towards the left side*/ \t\t uv.s \x3d fracPart;\t } } uv \x3d (uFrame.xy + (uv * uFrame.zw)); } vec4 textureColor \x3d texture2D(uSampler, uv); textureColor.a \x3d textureColor.a * alpha; gl_FragColor \x3d textureColor * uColorXformMultiplier + uColorXformOffset; \t\t} ";
|
|
this.fa=this.a.Ja(d.d.VERTEX_SHADER,this.Wa);this.da=this.a.Ja(d.d.FRAGMENT_SHADER,this.Qa);this.h=this.a.createProgram();this.a.attachShader(this.h,this.fa);this.a.attachShader(this.h,this.da);this.v=this.a.linkProgram(this.h);if(0>this.v)return this.a.deleteProgram(this.h),c.l.w.error("Program linking failed."),!1;var a=this.a.getUniformLocation(this.h,"uMVMatrixInv"),b=this.a.getUniformLocation(this.h,"uSampler"),f=this.a.getUniformLocation(this.h,"uColorXformMultiplier"),e=this.a.getUniformLocation(this.h,
|
|
"uColorXformOffset"),k=this.a.getUniformLocation(this.h,"uOverflowType"),l=this.a.getUniformLocation(this.h,"uFrame"),s=new d.q(this.a.getUniformLocation(this.h,"uMVMatrix"),d.d.FLOAT_MAT4,1,d.q.Kd),a=new d.q(a,d.d.FLOAT_VEC4,1,d.q.Kd),b=new d.q(b,d.d.SAMPLER_2D,1,d.q.Q),f=new d.q(f,d.d.FLOAT_VEC4,1,d.q.Q),e=new d.q(e,d.d.FLOAT_VEC4,1,d.q.Q),k=new d.q(k,d.d.INT,1,d.q.Q),l=new d.q(l,d.d.FLOAT_VEC4,1,d.q.Q);this.Pg=new d.Se([s,a,b,f,e,k,l]);this.o={};this.o.uMVMatrix=s;this.o.uMVMatrixInv=a;this.o.uSampler=
|
|
b;this.o.uColorXformMultiplier=f;this.o.uColorXformOffset=e;this.o.uOverflowType=k;this.o.uFrame=l;a=this.a.getAttribLocation(this.h,"aLoopBlinnTextureCoord");b=this.a.getAttribLocation(this.h,"aIsConvex");e=this.a.getAttribLocation(this.h,"aTextureCoord");k=this.a.getAttribLocation(this.h,"adfdx");l=this.a.getAttribLocation(this.h,"adfdy");s=new d.R(this.a.getAttribLocation(this.h,"aVertexPosition"),"POSITION0",d.d.FLOAT,2);a=new d.R(a,"TEXCOORD0",d.d.FLOAT,2);b=new d.R(b,"TEXCOORD1",d.d.FLOAT,1);
|
|
e=new d.R(e,"TEXCOORD2",d.d.FLOAT,2);k=new d.R(k,"TEXCOORD3",d.d.FLOAT,2);l=new d.R(l,"TEXCOORD4",d.d.FLOAT,2);this.wb=new c.e.Pe([s,a,b,k,l,e]);return!0};b.prototype.s=function(){this.a.deleteShader(this.fa);this.a.deleteShader(this.da);this.a.deleteProgram(this.h)};b.Pm=11;return b}();d.Dk=f})(c.e||(c.e={}))})(N||(N={}));
|
|
(function(c){(function(d){var f=function(){function b(){}b.prototype.O=function(a){this.a=a;a.Ic("OES_standard_derivatives")?this.Pa=new d.Ck:this.Pa=new d.Dk;this.qc=[];this.qc[b.Ge]=new c.e.Qe;this.qc[b.Fd]=new c.e.Qe;this.gg=[];this.gg[b.Ge]=this.lm;this.gg[b.Fd]=this.Zl;return this.Pa.O(a)};b.prototype.e=function(a){this.md();this.Rg(a);a=[b.Ge,b.Fd];for(var c=0;c<a.length;++c)this.nf(c),this.Ia(c)};b.prototype.Zl=function(a,b){var c=a.Fa();return b.Fa()-c};b.prototype.lm=function(a,b){var c=
|
|
a.Fa(),e=b.Fa();return c-e};b.prototype.md=function(){this.pe();this.Pa.Xb()};b.prototype.nf=function(a){this.qc[a].sort(this.gg[a]);this.Ri(a)};b.prototype.Ia=function(a){this.Pa.e(this.qc[a]);this.qc[a].clear()};b.prototype.Rg=function(a){for(var c=0;c<a.length;++c){for(var f=a[c],e=0;e<f.ra(d.t.Z);e++){var k=f.ab(d.t.Z,e,this.a),l=b.Ge;k.Sb()||(l=b.Fd);this.qc[l].Gc(k)}for(e=0;e<f.ra(d.t.P);e++)k=f.ab(d.t.P,e,this.a),this.qc[b.Fd].Gc(k)}};b.prototype.Ri=function(a){switch(a){case b.Ge:this.a.depthMask(!0);
|
|
break;case b.Fd:this.a.depthMask(!1)}};b.prototype.pe=function(){this.a.blendFunc(d.d.SRC_ALPHA,d.d.ONE_MINUS_SRC_ALPHA);this.a.enable(d.d.BLEND);this.a.depthFunc(d.d.LESS);this.a.clearDepth(1);this.a.depthMask(!0);this.a.yd(!0)};b.prototype.s=function(){this.Pa.s()};b.Ge=0;b.Fd=1;return b}();d.mk=f})(c.e||(c.e={}))})(N||(N={}));
|
|
(function(c){(function(d){var f=function(){function b(){}b.prototype.i=z("v");b.prototype.O=function(a){this.a=a;return this.Ua()?!0:!1};b.prototype.Za=z("wb");b.prototype.Xb=function(){this.a.useProgram(this.h);this.a.ga(d.d.ARRAY_BUFFER,this.Db);this.a.ga(d.d.ELEMENT_ARRAY_BUFFER,this.Cb);this.a.useProgram(this.h);this.a.disable(d.d.BLEND);this.a.depthMask(!1);this.a.disable(d.d.DEPTH_TEST);this.Fg()};b.prototype.e=function(a,b){"undefined"===typeof b&&(b=void 0);this.Eg(b.bm,b.cm);this.a.drawElements(this.ce.length)};
|
|
b.prototype.Fg=function(){var a=0;this.a.vertexAttribPointer(0,2,d.d.FLOAT,!1,0,4*a);this.a.vertexAttribPointer(1,2,d.d.FLOAT,!1,0,4*(a+8))};b.prototype.Eg=function(a,b){this.a.uniform1i(this.cg,a);this.a.uniform1i(this.Mk,b)};b.prototype.Ua=function(){this.Wa="attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; varying vec2 vTextureCoord; void main(void ) { \t\tgl_Position \x3d vec4(aVertexPosition, 1.0, 1.0); vTextureCoord \x3d aTextureCoord; }";
|
|
this.Qa="precision mediump float; uniform sampler2D uColorMap; uniform sampler2D uCoverageMap; varying vec2 vTextureCoord; void main() {\t\t\t vec4 cov \x3d texture2D(uCoverageMap, vTextureCoord); vec4 color \x3d texture2D(uColorMap, vTextureCoord); gl_FragColor \x3d cov + (color * (1.0 - cov.a)); }";this.Db=this.a.createBuffer();if(void 0===this.Db)return c.l.w.error("Creation of vertex buffer failed."),
|
|
!1;this.Cb=this.a.createBuffer();if(void 0===this.Cb)return c.l.w.error("Creation of index buffer failed."),!1;this.fa=this.a.Ja(d.d.VERTEX_SHADER,this.Wa);this.da=this.a.Ja(d.d.FRAGMENT_SHADER,this.Qa);this.h=this.a.createProgram();this.a.attachShader(this.h,this.fa);this.a.attachShader(this.h,this.da);this.a.ga(d.d.ARRAY_BUFFER,this.Db);this.a.ga(d.d.ELEMENT_ARRAY_BUFFER,this.Cb);this.a.kc(0);this.a.kc(1);this.a.bindAttribLocation(this.h,0,"aVertexPosition");this.a.bindAttribLocation(this.h,1,"aTextureCoord");
|
|
this.v=this.a.linkProgram(this.h);if(0>this.v)return this.a.deleteProgram(this.h),c.l.w.error("Program linking failed."),!1;this.cg=this.a.getUniformLocation(this.h,"uColorMap");this.Mk=this.a.getUniformLocation(this.h,"uCoverageMap");this.lg=new Float32Array([-1,-1,1,-1,1,1,-1,1,0,0,1,0,1,1,0,1]);this.ce=new Uint16Array([0,1,2,0,2,3]);this.a.bufferData(d.d.ARRAY_BUFFER,this.lg,d.d.STATIC_DRAW);this.a.bufferData(d.d.ELEMENT_ARRAY_BUFFER,this.ce,d.d.STATIC_DRAW);return!0};b.prototype.s=function(){this.a.deleteBuffer(this.Db);
|
|
this.a.deleteBuffer(this.Cb);this.a.deleteShader(this.fa);this.a.deleteShader(this.da);this.a.deleteProgram(this.h)};return b}();d.gk=f})(c.e||(c.e={}))})(N||(N={}));
|
|
(function(c){(function(d){var f=function(){function b(){}b.prototype.i=z("v");b.prototype.O=function(a){this.a=a;if(!this.Ua())return!1;this.V=new c.c.u;return!0};b.prototype.Za=z("wb");b.prototype.Xb=function(){this.a.useProgram(this.h)};b.prototype.e=function(a,b){"undefined"===typeof b&&(b=void 0);switch(b){case d.ma.oc:this.yg(a);break;case d.ma.Tb:this.Ag(a);break;case d.ma.Pc:this.zg(a)}};b.prototype.yg=function(a){this.Gg();this.Ia(a,d.ma.oc)};b.prototype.Ag=function(a){this.Ig();this.Ia(a,
|
|
d.ma.Tb)};b.prototype.zg=function(a){this.Hg();this.Ia(a,d.ma.Pc)};b.prototype.Ia=function(a,b){for(var c=a.F.length,e=this.a.kf,f=0;f<c;++f){var l=a.mc(f);if(l.Mc()){var s=l.ka.cd,m=this.a.De(s),s=m.$a(s),p=l.La(),x=l.lb,w=l.ka.le,x=l.lb,t=m.we,m=m.de;this.V.ja();this.V.Ga(e);this.V.Ga(l.ub());var q=this.V.b,r=l.Ee(this.i()),u=[];u[0]=2*Math.floor(x/2);u[1]=u[0]+1;x%=2;void 0===r?(r=[],r.push(new d.D(this.o.uMVMatrix,q)),r.push(new d.D(this.o.uSamplers,u)),r.push(new d.D(this.o.uSamplerIndex,[x])),
|
|
r.push(new d.D(this.o.uColorXformMultiplier,[p.sb(),p.qb(),p.ob(),p.Xa()])),r.push(new d.D(this.o.uColorXformOffset,[p.tb()/255,p.rb()/255,p.pb()/255,p.Ya()/255])),r.push(new d.D(this.o.uOverflowTypeAndPassIndex,[w,b])),r.push(new d.D(this.o.uFrame,[s.left/t,s.top/m,s.width/t,s.height/m]))):(r[0].value=q,r[1].value=u,r[2].value=[x],r[3].value=[p.sb(),p.qb(),p.ob(),p.Xa()],r[4].value=[p.tb()/255,p.rb()/255,p.pb()/255,p.Ya()/255],r[5].value=[w,b],r[6].value=[s.left/t,s.top/m,s.width/t,s.height/m]);
|
|
l.Qf(this.i(),r)}}0<a.F.length&&this.a.e(this,a.mc(0).ka.je,a.F)};b.prototype.Gg=function(){this.a.disable(d.d.BLEND);this.a.depthMask(!0);this.a.enable(d.d.DEPTH_TEST)};b.prototype.Ig=function(){this.a.depthMask(!1);this.a.enable(d.d.DEPTH_TEST);this.a.enable(d.d.BLEND);this.a.blendFuncSeparate(d.d.SRC_ALPHA_SATURATE,d.d.ONE,d.d.ONE,d.d.ONE)};b.prototype.Hg=function(){this.a.depthMask(!1);this.a.enable(d.d.DEPTH_TEST);this.a.enable(d.d.BLEND);this.a.blendFunc(d.d.ONE_MINUS_DST_ALPHA,d.d.ONE)};b.prototype.Ua=
|
|
function(){this.Wa=" \t\t attribute vec2 aVertexPosition; \t\t attribute vec2 aLoopBlinnTextureCoord; attribute vec2 aTextureCoord; \t\t attribute float aIsConvex; \t\tuniform mat4 uMVMatrix; \t\tvarying vec4 vTexCoord; \t\tvarying float vIsConvex; \t\tvoid main(void) { \t\tgl_Position \x3d uMVMatrix * vec4(aVertexPosition, 1.0, 1.0); vTexCoord \x3d vec4(aLoopBlinnTextureCoord, aTextureCoord); vIsConvex \x3d aIsConvex; \t\t}";
|
|
this.Qa="#extension GL_OES_standard_derivatives : enable\nprecision mediump float; \t\tvarying vec4 vTexCoord; \t\tvarying float vIsConvex;\t\t\tuniform vec4 uColorXformMultiplier;\t\t\tuniform vec4 uColorXformOffset; uniform sampler2D uSamplers[2]; uniform int uSamplerIndex; uniform ivec2 uOverflowTypeAndPassIndex; uniform vec4 uFrame; \t\t void main(void) {\t vec2 px \x3d dFdx(vTexCoord.xy); \t vec2 py \x3d dFdy(vTexCoord.xy); \t vec2 f \x3d (2.0 * vTexCoord.x) * vec2(px.x, py.x) - vec2(px.y, py.y); \t float sd \x3d vIsConvex * (vTexCoord.x * vTexCoord.x - vTexCoord.y) / length(f); \t float alpha \x3d min(0.5 - sd, 1.0); float t \x3d max(1.0-float(uOverflowTypeAndPassIndex.y), 0.0); if (alpha \x3c t || alpha \x3d\x3d 0.0 || (uOverflowTypeAndPassIndex.y \x3d\x3d 1 \x26\x26 alpha \x3d\x3d 1.0)) discard; vec2 uv; if(uOverflowTypeAndPassIndex.x \x3d\x3d 0){ /*solid fill*/ uv \x3d vTexCoord.zw; } else if(uOverflowTypeAndPassIndex.x \x3d\x3d 1) { /*gradient and bitmap fill with overflow type extend*/ uv \x3d clamp(vTexCoord.zw, vec2(0.0, 0.0), vec2(1.0, 1.0)) * uFrame.zw + uFrame.xy; } else if(uOverflowTypeAndPassIndex.x \x3d\x3d 2){/*gradient and bitmap fill with overflow type repeat*/ uv \x3d fract(vTexCoord.zw) * uFrame.zw + uFrame.xy; } else if(uOverflowTypeAndPassIndex.x \x3d\x3d 3){/*gradient fill with overflow type reflect*/ uv \x3d vTexCoord.zw; if(uv.s \x3e 1.0) {\t float integerPart \x3d floor(uv.s);\t float fracPart \x3d mod(uv.s,1.0);\t float odd \x3d mod(integerPart,2.0);\t if (odd \x3d\x3d 1.0){ /*if the uv.s lies on the odd number of band towards the right side*/ \t\t uv.s \x3d 1.0 - fracPart;\t }\t else{/*if the uv.s lies on the even number of band towards the right side*/ \t\t uv.s \x3d fracPart;\t } } else if(uv.s \x3c 0.0) {\t float integerPart \x3d floor(uv.s);\t float fracPart \x3d mod(uv.s,1.0);\t float odd \x3d mod(integerPart,2.0);\t if (integerPart \x3d\x3d 0.0){/* special case for left side*/ \t\t uv.s \x3d fracPart;\t }\t else if(odd \x3d\x3d 1.0){/*if the uv.s lies on the odd number of band towards the left side*/ \t\t uv.s \x3d 1.0 - fracPart;\t }\t else {/*if the uv.s lies on the even number of band towards the left side*/ \t\t uv.s \x3d fracPart;\t } } uv \x3d (uFrame.xy + (uv * uFrame.zw)); } vec4 c \x3d texture2D(uSamplers[0], uv); if(uSamplerIndex \x3d\x3d 1) c \x3d texture2D(uSamplers[1], uv); c \x3d c * uColorXformMultiplier + uColorXformOffset;\t\t\t\tc.a \x3d c.a * alpha;\t\t\t\tif(uOverflowTypeAndPassIndex.y \x3d\x3d 2) \t\t\t\t\tc.rgb \x3d c.rgb * c.a;\t\t\t\tgl_FragColor \x3d c; }";
|
|
this.fa=this.a.Ja(d.d.VERTEX_SHADER,this.Wa);this.da=this.a.Ja(d.d.FRAGMENT_SHADER,this.Qa);this.h=this.a.createProgram();this.a.attachShader(this.h,this.fa);this.a.attachShader(this.h,this.da);this.v=this.a.linkProgram(this.h);if(0>this.v)return this.a.deleteProgram(this.h),c.l.w.error("Program linking failed."),!1;var a=this.a.getUniformLocation(this.h,"uSamplers"),b=this.a.getUniformLocation(this.h,"uSamplerIndex"),f=this.a.getUniformLocation(this.h,"uColorXformMultiplier"),e=this.a.getUniformLocation(this.h,
|
|
"uColorXformOffset"),k=this.a.getUniformLocation(this.h,"uOverflowTypeAndPassIndex"),l=this.a.getUniformLocation(this.h,"uFrame"),s=new d.q(this.a.getUniformLocation(this.h,"uMVMatrix"),d.d.FLOAT_MAT4,1,d.q.Kd),a=new d.q(a,d.d.SAMPLER_2D,this.bo,d.q.Q),b=new d.q(b,d.d.INT,1,d.q.Q),f=new d.q(f,d.d.FLOAT_VEC4,1,d.q.Q),e=new d.q(e,d.d.FLOAT_VEC4,1,d.q.Q),k=new d.q(k,d.d.INT_VEC2,1,d.q.Q),l=new d.q(l,d.d.FLOAT_VEC4,1,d.q.Q);this.Pg=new d.Se([s,a,f,e,k,l]);this.o={};this.o.uMVMatrix=s;this.o.uSamplers=
|
|
a;this.o.uSamplerIndex=b;this.o.uColorXformMultiplier=f;this.o.uColorXformOffset=e;this.o.uOverflowTypeAndPassIndex=k;this.o.uFrame=l;a=this.a.getAttribLocation(this.h,"aLoopBlinnTextureCoord");k=this.a.getAttribLocation(this.h,"aIsConvex");l=this.a.getAttribLocation(this.h,"aTextureCoord");s=new d.R(this.a.getAttribLocation(this.h,"aVertexPosition"),"POSITION0",d.d.FLOAT,2);a=new d.R(a,"TEXCOORD0",d.d.FLOAT,2);k=new d.R(k,"TEXCOORD1",d.d.FLOAT,1);l=new d.R(l,"TEXCOORD2",d.d.FLOAT,2);this.wb=new c.e.Pe([s,
|
|
a,k,l]);return!0};b.prototype.s=function(){this.a.deleteShader(this.fa);this.a.deleteShader(this.da);this.a.deleteProgram(this.h)};return b}();d.jk=f})(c.e||(c.e={}))})(N||(N={}));
|
|
(function(c){(function(d){var f=function(){function b(){}b.prototype.i=z("v");b.prototype.O=function(a){this.a=a;if(!this.Ua())return!1;this.V=new c.c.u;this.N=new c.c.u;return!0};b.prototype.Za=z("wb");b.prototype.Xb=function(){this.a.useProgram(this.h)};b.prototype.e=function(a,b){"undefined"===typeof b&&(b=void 0);switch(b){case d.ma.oc:this.yg(a);break;case d.ma.Tb:this.Ag(a);break;case d.ma.Pc:this.zg(a)}};b.prototype.yg=function(a){this.Gg();this.Ia(a,d.ma.oc)};b.prototype.Ag=function(a){this.Ig();
|
|
this.Ia(a,d.ma.Tb)};b.prototype.zg=function(a){this.Hg();this.Ia(a,d.ma.Pc)};b.prototype.Ia=function(a,b){for(var c=a.F.length,e=this.a.kf,f=0;f<c;++f){var l=a.mc(f);if(l.Mc()){var s=l.ka.cd,m=this.a.De(s),s=m.$a(s),p=l.La(),x=l.lb,w=l.ka.le,x=l.lb,t=m.we,m=m.de;this.V.ja();this.V.Ga(e);this.V.Ga(l.ub());var q=this.V.b;this.N.copy(l.ub());this.N.Rb();var r=l.Ee(this.i());void 0===r?(r=[],r.push(new d.D(this.o.uMVMatrix,q)),r.push(new d.D(this.o.uMVMatrixInv,[this.N.get(0,0),this.N.get(0,1),this.N.get(1,
|
|
0),this.N.get(1,1)])),r.push(new d.D(this.o.uSampler,[x])),r.push(new d.D(this.o.uColorXformMultiplier,[p.sb(),p.qb(),p.ob(),p.Xa()])),r.push(new d.D(this.o.uColorXformOffset,[p.tb()/255,p.rb()/255,p.pb()/255,p.Ya()/255])),r.push(new d.D(this.o.uOverflowTypeAndPassIndex,[w,b])),r.push(new d.D(this.o.uFrame,[s.left/t,s.top/m,s.width/t,s.height/m]))):(r[0].value=q,r[1].value=[this.N.get(0,0),this.N.get(0,1),this.N.get(1,0),this.N.get(1,1)],r[2].value=[x],r[3].value=[p.sb(),p.qb(),p.ob(),p.Xa()],r[4].value=
|
|
[p.tb()/255,p.rb()/255,p.pb()/255,p.Ya()/255],r[5].value=[w,b],r[6].value=[s.left/t,s.top/m,s.width/t,s.height/m]);l.Qf(this.i(),r)}}0<a.F.length&&this.a.e(this,a.mc(0).ka.je,a.F)};b.prototype.Gg=function(){this.a.disable(d.d.BLEND);this.a.depthMask(!0);this.a.enable(d.d.DEPTH_TEST)};b.prototype.Ig=function(){this.a.depthMask(!1);this.a.enable(d.d.DEPTH_TEST);this.a.enable(d.d.BLEND);this.a.blendFunc(d.d.ONE_MINUS_DST_ALPHA,d.d.ONE)};b.prototype.Hg=function(){this.a.depthMask(!1);this.a.enable(d.d.DEPTH_TEST);
|
|
this.a.enable(d.d.BLEND);this.a.blendFunc(d.d.ONE_MINUS_DST_ALPHA,d.d.ONE)};b.prototype.Ua=function(){this.Wa=" \t\t attribute vec2 aVertexPosition; \t\t attribute vec2 aLoopBlinnTextureCoord; attribute vec2 aTextureCoord; attribute vec2 adfdx; attribute vec2 adfdy; \t\t attribute float aIsConvex; \t\tuniform mat4 uMVMatrix; uniform vec4 uMVMatrixInv; \t\tvarying vec4 vTexCoord; \t\tvarying float vIsConvex; varying vec4 vDfDxDy; \t\tvoid main(void) { \t\tgl_Position \x3d uMVMatrix * vec4(aVertexPosition, 1.0, 1.0); vDfDxDy.xy \x3d vec2(uMVMatrixInv.x * adfdx.x + uMVMatrixInv.y * adfdy.x, uMVMatrixInv.x * adfdx.y + uMVMatrixInv.y * adfdy.y); vDfDxDy.zw \x3d vec2(uMVMatrixInv.z * adfdx.x + uMVMatrixInv.w * adfdy.x, uMVMatrixInv.z * adfdx.y + uMVMatrixInv.w * adfdy.y); vTexCoord \x3d vec4(aLoopBlinnTextureCoord, aTextureCoord); vIsConvex \x3d aIsConvex; \t\t}";
|
|
this.Qa="precision mediump float; \t\tvarying vec4 vTexCoord; \t\tvarying float vIsConvex; varying vec4 vDfDxDy; \t\t\tuniform vec4 uColorXformMultiplier;\t\t\tuniform vec4 uColorXformOffset; uniform sampler2D uSampler; uniform ivec2 uOverflowTypeAndPassIndex; uniform vec4 uFrame; \t\t void main(void) {\t vec2 px \x3d vDfDxDy.xy; \t vec2 py \x3d vDfDxDy.zw; \t vec2 f \x3d (2.0 * vTexCoord.x) * vec2(px.x, py.x) - vec2(px.y, py.y); \t float sd \x3d vIsConvex * (vTexCoord.x * vTexCoord.x - vTexCoord.y) / length(f); \t float alpha \x3d min(0.5 - sd, 1.0); float t \x3d max(1.0-float(uOverflowTypeAndPassIndex.y), 0.0); if (alpha \x3c t || alpha \x3d\x3d 0.0 || (uOverflowTypeAndPassIndex.y \x3d\x3d 1 \x26\x26 alpha \x3d\x3d 1.0)) discard; vec2 uv; if(uOverflowTypeAndPassIndex.x \x3d\x3d 0){ /*solid fill*/ uv \x3d vTexCoord.zw; } else if(uOverflowTypeAndPassIndex.x \x3d\x3d 1) { /*gradient and bitmap fill with overflow type extend*/ uv \x3d clamp(vTexCoord.zw, vec2(0.0, 0.0), vec2(1.0, 1.0)) * uFrame.zw + uFrame.xy; } else if(uOverflowTypeAndPassIndex.x \x3d\x3d 2){/*gradient and bitmap fill with overflow type repeat*/ uv \x3d fract(vTexCoord.zw) * uFrame.zw + uFrame.xy; } else if(uOverflowTypeAndPassIndex.x \x3d\x3d 3){/*gradient fill with overflow type reflect*/ uv \x3d vTexCoord.zw; if(uv.s \x3e 1.0) {\t float integerPart \x3d floor(uv.s);\t float fracPart \x3d mod(uv.s,1.0);\t float odd \x3d mod(integerPart,2.0);\t if (odd \x3d\x3d 1.0){ /*if the uv.s lies on the odd number of band towards the right side*/ \t\t uv.s \x3d 1.0 - fracPart;\t }\t else{/*if the uv.s lies on the even number of band towards the right side*/ \t\t uv.s \x3d fracPart;\t } } else if(uv.s \x3c 0.0){\t float integerPart \x3d floor(uv.s);\t float fracPart \x3d mod(uv.s,1.0);\t float odd \x3d mod(integerPart,2.0);\t if (integerPart \x3d\x3d 0.0){/* special case for left side*/ \t\t uv.s \x3d fracPart;\t }\t else if(odd \x3d\x3d 1.0){/*if the uv.s lies on the odd number of band towards the left side*/ \t\t uv.s \x3d 1.0 - fracPart;\t }\t else {/*if the uv.s lies on the even number of band towards the left side*/ \t\t uv.s \x3d fracPart;\t } } uv \x3d (uFrame.xy + (uv * uFrame.zw)); } vec4 c \x3d texture2D(uSampler, uv) * uColorXformMultiplier + uColorXformOffset; c.a \x3d c.a * alpha; if(uOverflowTypeAndPassIndex.y !\x3d 0) \t\t\t\t\t c.rgb \x3d c.rgb * c.a; gl_FragColor \x3d c; }";
|
|
this.fa=this.a.Ja(d.d.VERTEX_SHADER,this.Wa);this.da=this.a.Ja(d.d.FRAGMENT_SHADER,this.Qa);this.h=this.a.createProgram();this.a.attachShader(this.h,this.fa);this.a.attachShader(this.h,this.da);this.v=this.a.linkProgram(this.h);if(0>this.v)return this.a.deleteProgram(this.h),c.l.w.error("Program linking failed."),!1;var a=this.a.getUniformLocation(this.h,"uMVMatrixInv"),b=this.a.getUniformLocation(this.h,"uSampler"),f=this.a.getUniformLocation(this.h,"uColorXformMultiplier"),e=this.a.getUniformLocation(this.h,
|
|
"uColorXformOffset"),k=this.a.getUniformLocation(this.h,"uOverflowTypeAndPassIndex"),l=this.a.getUniformLocation(this.h,"uFrame"),s=new d.q(this.a.getUniformLocation(this.h,"uMVMatrix"),d.d.FLOAT_MAT4,1,d.q.Kd),a=new d.q(a,d.d.FLOAT_VEC4,1,d.q.Kd),b=new d.q(b,d.d.SAMPLER_2D,1,d.q.Q),f=new d.q(f,d.d.FLOAT_VEC4,1,d.q.Q),e=new d.q(e,d.d.FLOAT_VEC4,1,d.q.Q),k=new d.q(k,d.d.INT_VEC2,1,d.q.Q),l=new d.q(l,d.d.FLOAT_VEC4,1,d.q.Q);this.Pg=new d.Se([s,a,b,f,e,k,l]);this.o={};this.o.uMVMatrix=s;this.o.uMVMatrixInv=
|
|
a;this.o.uSampler=b;this.o.uColorXformMultiplier=f;this.o.uColorXformOffset=e;this.o.uOverflowTypeAndPassIndex=k;this.o.uFrame=l;a=this.a.getAttribLocation(this.h,"aLoopBlinnTextureCoord");b=this.a.getAttribLocation(this.h,"aIsConvex");e=this.a.getAttribLocation(this.h,"aTextureCoord");k=this.a.getAttribLocation(this.h,"adfdx");l=this.a.getAttribLocation(this.h,"adfdy");s=new d.R(this.a.getAttribLocation(this.h,"aVertexPosition"),"POSITION0",d.d.FLOAT,2);a=new d.R(a,"TEXCOORD0",d.d.FLOAT,2);b=new d.R(b,
|
|
"TEXCOORD1",d.d.FLOAT,1);e=new d.R(e,"TEXCOORD2",d.d.FLOAT,2);k=new d.R(k,"TEXCOORD3",d.d.FLOAT,2);l=new d.R(l,"TEXCOORD4",d.d.FLOAT,2);this.wb=new c.e.Pe([s,a,b,k,l,e]);return!0};b.prototype.s=function(){this.a.deleteShader(this.fa);this.a.deleteShader(this.da);this.a.deleteProgram(this.h)};return b}();d.kk=f})(c.e||(c.e={}))})(N||(N={}));
|
|
(function(c){(function(d){var f=function(){function b(){this.he=0}b.prototype.O=function(a){this.a=a;a.Ic("OES_standard_derivatives")?this.Pa=new d.jk:this.Pa=new d.kk;this.We=new d.gk;this.dg=new c.e.Qe;this.Ab=[];this.wg=[];this.he=0;this.Ve={};this.Xe={};return this.Pa.O(a)?this.We.O(a):!1};b.prototype.e=function(a){this.sl=this.a.eh();this.md();this.Rg(a);this.nf(b.oc);this.Ia(b.oc,this.dg);for(a=0;a<this.Ab.length;++a){var c=this.Ab[a].type,d=this.Ab[a].tf;this.nf(c);this.Ia(c,d)}this.Ab.splice(0,
|
|
this.Ab.length);this.a.Ha(this.sl);a=this.a.Wg(this.rc);c=this.a.Wg(this.sc);this.We.Xb();this.We.e(void 0,{bm:a,cm:c});this.a.dk(this.rc);this.a.dk(this.sc)};b.prototype.md=function(){this.pe();this.Pa.Xb();var a=this.a.Ed(),b=this.Zk();this.rc=this.Ve[b];void 0===this.rc&&(this.rc=this.a.xd(a.width,a.height),this.Ve[b]=this.rc);this.sc=this.Xe[b];void 0===this.sc&&(this.sc=this.a.xd(a.width,a.height),this.Xe[b]=this.sc);this.a.Ha(this.rc);a=this.a.lc();this.a.clearColor(a.Kf/255,a.wf/255,a.sf/255,
|
|
a.xe/255);this.a.clear(!0,!0,!1);this.a.Ha(this.sc);this.a.clearColor(0,0,0,0);this.a.clear(!0,!0,!1)};b.prototype.nf=function(a){switch(a){case b.oc:this.a.Ha(this.rc);break;case b.Tb:case b.Pc:this.a.Ha(this.sc)}};b.prototype.Ia=function(a,b){"undefined"===typeof b&&(b=void 0);this.Pa.e(b,a);void 0!==b&&b.clear()};b.prototype.Rg=function(a){this.he=0;for(var c=a.length,f=0;f<c;++f){for(var e=a[f],k=0;k<e.ra(d.t.Z);k++){var l=e.ab(d.t.Z,k,this.a);l.Sb()&&this.dg.Gc(l)}for(k=0;k<e.ra(d.t.P);k++)l=
|
|
e.ab(d.t.P,k,this.a),l.Sb()&&this.dg.Gc(l)}f=e=0;for(l=[];e<c;){for(var s=a[e].Fa(),m=s,p=-1,x=[],w=[],t=this.zi(),q=this.zi(),k=e;k<c;++k,++f){for(var e=a[k],r=e.Fa(),u=!1,A=e.ra(d.t.Z),C=e.ra(d.t.P),v=0;!u&&v<A;++v)u=!e.ab(d.t.Z,v,this.a).Sb();for(v=0;!u&&v<C;++v)u=!e.ab(d.t.P,v,this.a).Sb();if(u){p=r;if(m!=p&&(0<l.length||0<x.length)){0<l.length&&(x=x.concat(l));for(e=0;e<x.length;++e)t.Gc(x[e]);this.Ab.push({type:b.Tb,tf:t});l=[];x=[]}break}for(v=0;v<C;v++){A=e.ab(d.t.P,v,this.a);l.push(A);var y=
|
|
e.ab(d.t.bb,v,this.a);y&&l.push(y)}u||r==m||(0<l.length&&(x=x.concat(l)),l=[],m=r)}f==c&&(-1==p&&0<l.length)&&(x=x.concat(l),l=[]);if(-1!=p&&p==s){for(k=f;k<c;++k,++f){e=a[k];if(e.Fa()!=p)break;A=e.ra(d.t.Z);C=e.ra(d.t.P);for(v=0;v<A;v++)(s=e.ab(d.t.Z,v,this.a))&&!s.Sb()&&w.push(s);for(v=0;v<C;v++)A=e.ab(d.t.P,v,this.a),y=e.ab(d.t.bb,v,this.a),A.Sb()?(l.push(A),y&&l.push(y)):(w.push(A),y&&w.push(y))}if(0<w.length){for(e=0;e<w.length;++e)q.Gc(w[e]);this.Ab.push({type:b.Pc,tf:q})}}else if(0<x.length){for(e=
|
|
0;e<x.length;++e)t.Gc(x[e]);this.Ab.push({type:b.Tb,tf:t})}e=f}0<l.length&&this.Ab.push({type:b.Tb,tf:t})};b.prototype.Ri=function(a){switch(a){case b.oc:this.a.depthMask(!0);break;case b.Tb:this.a.depthMask(!1);break;case b.Pc:this.a.depthMask(!1)}};b.prototype.pe=function(){this.a.blendFunc(d.d.SRC_ALPHA,d.d.ONE_MINUS_SRC_ALPHA);this.a.enable(d.d.BLEND);this.a.depthFunc(d.d.LESS);this.a.clearDepth(1);this.a.depthMask(!0);this.a.yd(!0)};b.prototype.zi=function(){var a=void 0;this.he<this.wg.length?
|
|
a=this.wg[this.he]:(a=new c.e.Qe,this.wg.push(a));this.he++;return a};b.prototype.Zk=function(){var a=this.a.Ed();return d.d.MAX_TEXTURE_SIZE*a.height+a.width};b.prototype.s=function(){this.Pa.s();this.We.s();for(var a in this.Ve)this.a.Ae(this.Ve[a]);for(a in this.Xe)this.a.Ae(this.Xe[a])};b.oc=0;b.Tb=1;b.Pc=2;return b}();d.ma=f})(c.e||(c.e={}))})(N||(N={}));
|
|
(function(c){(function(d){var f=function(){function b(){}b.prototype.i=z("v");b.prototype.O=function(a){this.a=a;return this.Ua()?!0:!1};b.prototype.Za=z("wb");b.prototype.Xb=function(){this.a.useProgram(this.h);this.a.ga(d.d.ARRAY_BUFFER,this.Db);this.a.ga(d.d.ELEMENT_ARRAY_BUFFER,this.Cb);this.a.useProgram(this.h);this.a.disable(d.d.BLEND);this.a.depthMask(!1);this.a.disable(d.d.DEPTH_TEST);this.Fg()};b.prototype.e=function(a,b){"undefined"===typeof b&&(b=void 0);this.Eg(b);this.a.drawElements(this.ce.length)};
|
|
b.prototype.md=aa();b.prototype.Fg=function(){var a=0;this.a.vertexAttribPointer(0,2,d.d.FLOAT,!1,0,4*a);this.a.vertexAttribPointer(1,2,d.d.FLOAT,!1,0,4*(a+8))};b.prototype.Eg=function(a){this.a.uniform1i(this.cg,a)};b.prototype.Ua=function(){this.Wa="attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; varying vec2 vTextureCoord; void main(void ) { \t\tgl_Position \x3d vec4(aVertexPosition, 1.0, 1.0); vTextureCoord \x3d aTextureCoord; }";
|
|
this.Qa="precision mediump float; uniform sampler2D uColorMap; varying vec2 vTextureCoord; void main() { vec4 color \x3d texture2D(uColorMap, vTextureCoord); if(color.a \x3d\x3d 0.0) discard; color.rgb \x3d color.rgb / color.a; gl_FragColor \x3d color; }";this.Db=this.a.createBuffer();if(void 0===this.Db)return c.l.w.error("Creation of vertex buffer failed."),!1;this.Cb=
|
|
this.a.createBuffer();if(void 0===this.Cb)return c.l.w.error("Creation of index buffer failed."),!1;this.fa=this.a.Ja(d.d.VERTEX_SHADER,this.Wa);this.da=this.a.Ja(d.d.FRAGMENT_SHADER,this.Qa);this.h=this.a.createProgram();this.a.attachShader(this.h,this.fa);this.a.attachShader(this.h,this.da);this.a.ga(d.d.ARRAY_BUFFER,this.Db);this.a.ga(d.d.ELEMENT_ARRAY_BUFFER,this.Cb);this.a.kc(0);this.a.kc(1);this.a.bindAttribLocation(this.h,0,"aVertexPosition");this.a.bindAttribLocation(this.h,1,"aTextureCoord");
|
|
this.v=this.a.linkProgram(this.h);if(0>this.v)return this.a.deleteProgram(this.h),c.l.w.error("Program linking failed."),!1;this.cg=this.a.getUniformLocation(this.h,"uColorMap");this.lg=new Float32Array([-1,-1,1,-1,1,1,-1,1,0,0,1,0,1,1,0,1]);this.ce=new Uint16Array([0,1,2,0,2,3]);this.a.bufferData(d.d.ARRAY_BUFFER,this.lg,d.d.STATIC_DRAW);this.a.bufferData(d.d.ELEMENT_ARRAY_BUFFER,this.ce,d.d.STATIC_DRAW);return!0};b.prototype.s=function(){this.a.deleteBuffer(this.Db);this.a.deleteBuffer(this.Cb);
|
|
this.a.deleteShader(this.fa);this.a.deleteShader(this.da);this.a.deleteProgram(this.h)};return b}();d.rk=f})(c.e||(c.e={}))})(N||(N={}));
|
|
(function(c){(function(d){var f=function(){function b(){}b.prototype.O=function(a){this.a=a;this.pg=new d.ma;var b=this.a.Ed();this.ha=this.a.xd(b.width,b.height);var b=this.a.lc(),f=new c.c.Tc(0,0,0,0),e=this.a.Ha(this.ha);this.a.Wb(f);this.a.clear(!0,!0,!1);this.a.Ha(e);this.a.Wb(b);this.lf=new d.rk;return this.lf.O(a)?this.pg.O(a):!1};b.prototype.e=function(a){this.md();var b=this.a.Ha(this.ha);this.pg.e(a);this.a.Ha(b);this.lf.Xb();this.a.Wg(this.ha);this.lf.e(void 0,this.ha.i())};b.prototype.md=
|
|
function(){this.pe()};b.prototype.pe=aa();b.prototype.s=function(){this.lf.s();this.pg.s();this.a.Ae(this.ha)};return b}();d.tk=f})(c.e||(c.e={}))})(N||(N={}));
|
|
(function(c){(function(d){var f=function(){function b(a,b){"undefined"===typeof b&&(b=void 0);this.H=new c.e.d(a,b);this.tg=b[d.d.Nc]===d.d.Fe?new d.mk:new d.ma;this.ke=void 0;this.oa=[]}b.prototype.O=function(){this.tg.O(this.H)};b.prototype.Ed=function(){return this.H.Ed()};b.prototype.Rc=function(a,b){"undefined"===typeof b&&(b=!0);this.H.Rc(a,b)};b.prototype.lc=function(){return this.H.lc()};b.prototype.Wb=function(a){this.H.Wb(a)};b.prototype.depthMask=function(a){this.H.depthMask(a)};b.prototype.depthFunc=
|
|
function(a){this.H.depthFunc(a)};b.prototype.clearDepth=function(a){this.H.clearDepth(a)};b.prototype.yd=function(a){this.H.yd(a)};b.prototype.blendFunc=function(a,b){this.H.blendFunc(a,b)};b.prototype.clear=function(a,b,c){"undefined"===typeof b&&(b=!1);"undefined"===typeof c&&(c=!1);this.H.clear(a,b,c)};b.prototype.enable=function(a){this.H.enable(a)};b.prototype.disable=function(a){this.H.disable(a)};b.prototype.scissor=function(a){this.H.scissor(a)};b.prototype.jj=function(a){"undefined"===typeof a&&
|
|
(a=b.Ij);switch(a){case b.Ij:this.Lg=this.tg;break;case b.Hj:void 0===this.ke&&(this.ke=new d.tk,this.ke.O(this.H)),this.Lg=this.ke}};b.prototype.mj=function(){this.oe();this.Lg.e(this.oa);for(var a=0;a<this.oa.length;++a)this.oa[a].Ke(!1);this.oa.length=0};b.prototype.e=function(a){this.oa.push(a)};b.prototype.xd=function(a,b){return this.H.xd(a,b)};b.prototype.Ha=function(a){return this.H.Ha(a)};b.prototype.eh=function(){return this.H.eh()};b.prototype.Ae=function(a){this.H.Ae(a)};b.prototype.xh=
|
|
function(a,b){this.H.xh(a,b)};b.prototype.Ic=function(a){return this.H.Ic(a)};b.prototype.flush=function(){this.H.flush()};b.prototype.s=function(){this.tg.s();this.ke.s();this.H.s();delete this.Lg;delete this.H};b.prototype.oe=aa();b.Ij=0;b.Hj=1;return b}();d.Hh=f})(c.e||(c.e={}))})(N||(N={}));
|
|
(function(c){(function(d){var f=function(){function b(a,b){this.Sa=a;this.Lb=b;this.Wc=!1;this.m=[]}b.prototype.kj=function(a){if(a>this.Lb||this.Wc)return!1;if(a>this.Lb/2)return 0===this.m.length;if(0===this.m.length)return!0;for(var b=0;4>b;++b)if(this.m[b].kj(a))return!0;return!1};b.prototype.ij=function(a){if(!(a>this.Lb||this.Wc)){var b=void 0;if(a>this.Lb/2)0===this.m.length&&(b=this.Sa,this.Wc=!0);else{0===this.m.length&&this.Nl();for(var c=0;4>c&&(b=this.m[c].ij(a),void 0===b);++c);}return b}};
|
|
b.prototype.nj=function(a){var b=a.x-this.Sa.x,c=a.y-this.Sa.y;if(0>b||b>=this.Lb||0>c||c>=this.Lb)return!1;if(this.Wc)return 0===b&&0===c?(this.Wc=!1,!0):!1;if(0===this.m.length)return!1;var e=0;b>=this.Lb/2&&e++;c>=this.Lb/2&&(e+=2);if(a=this.m[e].nj(a))for(b=0;4>b;++b)if(a=this.m[b].Jm(),!a)return!1;this.m.length=0;return!0};b.prototype.Nl=function(){var a=this.Lb/2;this.m.push(new c.c.Od(new c.c.k(this.Sa.x,this.Sa.y),a));this.m.push(new c.c.Od(new c.c.k(this.Sa.x+a,this.Sa.y),a));this.m.push(new c.c.Od(new c.c.k(this.Sa.x,
|
|
this.Sa.y+a),a));this.m.push(new c.c.Od(new c.c.k(this.Sa.x+a,this.Sa.y+a),a))};b.prototype.Jm=function(){return!this.Wc&&0===this.m.length};return b}();d.Od=f})(c.c||(c.c={}))})(N||(N={}));
|
|
(function(c){(function(d){var f=function(){function b(a,b){this.ha=a;this.se=b;this.pl=0;this.wc={};this.ug=new c.c.Od(new c.c.k(0,0),d.d.MAX_TEXTURE_SIZE)}b.prototype.am=function(a,d){var f=c.l.U.vd(a),e=c.l.U.vd(d);return this.ug.kj(Math.max(f,e,b.Lh))};b.prototype.Yl=function(a,d){var f=c.l.U.vd(a),e=c.l.U.vd(d),f=this.ug.ij(Math.max(f,e,b.Lh));if(void 0!==f)return f=new c.c.M(f.x,f.y,a,d),e=c.l.U.fm(this.se.i(),this.pl++),this.se.$j(e,f),e};b.prototype.oj=function(a){a=this.se.$a(a);void 0!==
|
|
a&&this.ug.nj(new c.c.k(a.left,a.top))};b.prototype.$a=function(a){return this.se.$a(a)};b.prototype.Dd=function(){return this.ha.i()};b.prototype.nn=function(a,b,c){void 0===this.wc[b]&&(this.wc[b]={color:c,Yj:[]});b=this.wc[b].Yj;c=a.length;for(var e=0;e<c;++e)b.push(a[e])};b.prototype.qn=function(a){if(0!==Object.keys(this.wc).length){var b=a.lc(),f=a.Ha(this.ha);a.enable(d.d.SCISSOR_TEST);for(var e in this.wc){var k=this.wc[e],l=this.se.$a(e),l=new c.c.M(l.left,l.top,l.width,l.height);l.width=
|
|
c.l.U.vd(l.width);l.height=c.l.U.vd(l.height);a.scissor(l);a.Wb(k.color);a.jj(d.Hh.Hj);for(var k=k.Yj,l=k.length,s=0;s<l;++s)k[s].Je(s/l),a.e(k[s],1);a.mj()}a.disable(d.d.SCISSOR_TEST);this.wc={};a.Ha(f);a.Wb(b)}};b.Lh=64;return b}();d.Bk=f})(c.e||(c.e={}))})(N||(N={}));
|
|
(function(c){(function(d){var f=function(){function b(a,b,d,e,f,l){this.Ol=a;this.Bc=b;this.ao=d;this.Td=e;this.hc=f.C();this.eg=void 0!==l?l.C():new c.c.p;this.vg=0}b.prototype.Dd=z("Ol");b.prototype.Cd=z("Bc");b.prototype.zd=z("Td");b.prototype.ub=z("hc");b.prototype.La=z("eg");b.prototype.Wl=function(){this.vg++};b.prototype.Xj=function(){this.vg--};return b}();d.yk=f;f=function(){function b(){this.Mb=void 0}b.prototype.Jn=function(a){void 0!==this.Mb&&this.Mb.Xj();this.Mb=a;void 0!==this.Mb&&
|
|
this.Mb.Wl()};b.prototype.In=g("Da");b.prototype.Ea=function(a){this.Da.Ea(a,void 0)};b.prototype.Qb=function(a){this.Da.Qb(a)};b.prototype.La=function(){return this.Mb.La()};b.prototype.s=function(){void 0!==this.Mb&&this.Mb.Xj();this.Mb=void 0;void 0!==this.Da&&this.Da.s();this.Da=void 0};return b}();d.xk=f})(c.e||(c.e={}))})(N||(N={}));
|
|
(function(c){(function(d){var f=function(){function b(a,b,c,e){this.Mi=a;this.Td=b;this.ul=c;this.pa=e}b.prototype.zd=z("Td");return b}();d.Ak=f;f=function(){function b(a,b,d){this.fo=new c.c.p;this.a=a;this.T=b;this.Ui=d;this.oa=[];this.zc=[];this.ol=1;this.Yb={};this.hi=0;this.ee={}}b.prototype.on=function(a){if(void 0===a.Mi||void 0===a.zd()||void 0===a.pa)return!1;this.zc.push(a);return!0};b.prototype.Rn=function(){var a=this.zc.length;if(0!==a){for(var b=0;b<a;++b){var f=this.zc[b].Mi,e=this.zc[b].zd(),
|
|
k=this.zc[b].ul,l=this.zc[b].pa,s=f.Pb().C(),m=f.Jc(),p=this.Jk(f),m=this.Rk(f.Lc().i(),e,p,m);void 0===m?m=this.pa(f,e,p,k):this.nl(f);void 0!==m?(l.Jn(m),e=this.Ui.lj(m.Cd().i(),this.Ui.sm()),l.In(e),l.Ea(s),f.ak(l)):(f.ak(void 0),l.s())}this.zc.length=0;a=this.a.Ed();b=new c.c.M(0,0,d.d.MAX_TEXTURE_SIZE,d.d.MAX_TEXTURE_SIZE);this.a.Rc(b,!1);for(var x in this.Yb)this.Yb[x].qn(this.a);this.a.Rc(a)}};b.prototype.Rk=function(a,b,c,e){a=this.ee[a];if(void 0!==a)for(var d=0;d<a.length;++d){var f=a[d];
|
|
if(f.zd().Hc(b)&&this.fl(c,f.ub())&&f.La().Hc(e))return f}};b.prototype.nl=function(a){var b=[];a=a.pj();for(var c=0;c<a.length;++c)a[c].Qb(b);for(c=0;c<b.length;++c)b[c].Ke(!1)};b.prototype.fl=function(a,b){return a.get(0,0)!=b.get(0,0)||a.get(0,1)!=b.get(0,1)||a.get(1,0)!=b.get(1,0)||a.get(1,1)!=b.get(1,1)?!1:!0};b.prototype.pa=function(a,b,d,e){var f=c.l.U.tm(a),l=a.Kc().C();l.Rb();a.Ea(l,e);for(var s=a;void 0!==s.getParent();)s=s.getParent();var m=a.Be(s,!1,c.e.t.bb,!0);if(m.left&&!isNaN(m.left)){m.left=
|
|
Math.floor(m.left);m.top=Math.floor(m.top);m.width=Math.ceil(m.width);m.height=Math.ceil(m.height);var s=d.C(),p=s.ck(m),x=this.Sk(p.width,p.height);if(void 0===x)a.Ea(f,e);else{var w=x.Yl(p.width,p.height);if(void 0===w)a.Ea(f,e);else if(f=this.Uk(m,s,x.Dd(),w,255===b.xe),void 0===f)x.oj(w);else return p=this.ee[a.Lc().i()],void 0===p&&(p=[],this.ee[a.Lc().i()]=p),d=new c.e.yk(x.Dd(),f,a.Lc().i(),b,d,a.Jc()),p.push(d),p=x.$a(w),s.Ga(l),l=s.get(0,3),f=s.get(1,3),s.translate(p.left+(l-Math.floor(l)),
|
|
p.top+(f-Math.floor(f))),a.Ea(s,e),a.Qb(this.oa),x.nn(this.oa,w,b),this.oa.length=0,d}}};b.prototype.Jk=function(a){return a.Pb().C()};b.prototype.Sk=function(a,b){var f=this.a.H,e=d.d.MAX_TEXTURE_SIZE;if(!(a>e||b>e)){for(var k=void 0,l=0;2>l;++l){for(var s in this.Yb)if(this.Yb[s].am(a,b)){k=this.Yb[s];break}if(void 0===k&&this.hi<this.ol){var m=this.a.xd(e,e);if(void 0!==m){var p=f.vj(m.i());void 0!==p&&(k=new c.e.Bk(m,p),this.Yb[k.Dd()]=k,this.hi++)}}void 0===k&&0===l&&this.Kk();if(void 0!==k)break}return k}};
|
|
b.prototype.Kk=function(){for(var a in this.ee)for(var b=this.ee[a],c=b.length-1;0<=c;--c){var e=b[c];if(0===e.vg){for(var f=e.Cd(),l=f.ra(d.t.Z),s=0;s<l;++s){var m=f.zf(d.t.Z,s);void 0!==this.Yb[e.Dd()]&&this.Yb[e.Dd()].oj(m.cd)}b.splice(c,1)}}};b.prototype.Uk=function(a,b,d,e,f){if(void 0!==a&&void 0!==d&&void 0!==e){var l=new c.e.t(this.T.rm()),s=7;this.a.H.Ic("OES_standard_derivatives")||(s+=4);a=this.Yk(s,a,b);d=this.Tk(a.ba,a.Ma,s,d,e,f);l.Nb(c.e.t.Z,d[0]);1<d.length&&l.Nb(c.e.t.P,d[1]);2<d.length&&
|
|
l.Nb(c.e.t.bb,d[2]);l.Xg();this.T.Ug(l);return l}};b.prototype.Tk=function(a,b,f,e,k,l){var s=new c.e.di,m=[],p=new c.e.na(0,"POSITION0",c.e.d.FLOAT,2),x=new c.e.na(2*Float32Array.BYTES_PER_ELEMENT,"TEXCOORD0",c.e.d.FLOAT,2),w=new c.e.na(4*Float32Array.BYTES_PER_ELEMENT,"TEXCOORD1",c.e.d.FLOAT,1),t=new c.e.na(5*Float32Array.BYTES_PER_ELEMENT,"TEXCOORD2",c.e.d.FLOAT,2);s.vb=[p,x,w,t];if(11==f){var t=new c.e.na(5*Float32Array.BYTES_PER_ELEMENT,"TEXCOORD2",c.e.d.FLOAT,2),q=new c.e.na(7*Float32Array.BYTES_PER_ELEMENT,
|
|
"TEXCOORD3",c.e.d.FLOAT,2),r=new c.e.na(9*Float32Array.BYTES_PER_ELEMENT,"TEXCOORD4",c.e.d.FLOAT,2);s.vb=[p,x,w,t,q,r]}s.aa=f*Float32Array.BYTES_PER_ELEMENT;f=new d.Rd(a[0],s);p=new d.ca(k,l);p.Me(c.e.ca.Uc[c.e.ca.Gf]);p.ze(e,[f]);p.ye(b[0]);m[0]=p;1<a.length&&(f=new d.Rd(a[1],s),p=new d.ca(k,l),p.Me(c.e.ca.Uc[c.e.ca.Gf]),p.ze(e,[f]),p.ye(b[1]),m[1]=p);2<a.length&&(a=new d.Rd(a[2],s),k=new d.ca(k,l),k.Me(c.e.ca.Uc[c.e.ca.Gf]),k.ze(e,[a]),k.ye(b[2]),m[2]=k);return m};b.prototype.Yk=function(a,b,d){var e=
|
|
new c.c.k(b.left,b.top),f=new c.c.k(b.left+b.width,b.top),l=new c.c.k(b.left+b.width,b.top+b.height);b=new c.c.k(b.left,b.top+b.height);var s=new c.c.k((e.x+f.x+b.x)/3,(e.y+f.y+b.y)/3),m=new c.c.k((l.x+f.x+b.x)/3,(l.y+f.y+b.y)/3),p=new c.c.k(e.x-1,e.y),x=new c.c.k(b.x-1,b.y),w=new c.c.k(e.x,e.y-1),t=new c.c.k(f.x,f.y-1),q=new c.c.k(f.x+1,f.y),r=new c.c.k(l.x+1,l.y),u=new c.c.k(b.x,b.y+1),A=new c.c.k(l.x,l.y+1),C=d.J(e),v=d.J(f),y=d.J(l),B=d.J(b),I=d.J(s),K=d.J(m),T=d.J(p),X=d.J(x),U=d.J(w),L=d.J(t),
|
|
R=d.J(q),H=d.J(r),F=d.J(u),W=d.J(A),J=Math.min(C.x,v.x,y.x,B.x),M=Math.min(C.y,v.y,y.y,B.y),O=Math.max(C.x,v.x,y.x,B.x)-J,E=Math.max(C.y,v.y,y.y,B.y)-M,G=J-Math.floor(J),D=M-Math.floor(M);C.x=(C.x-J+G)/O;C.y=(C.y-M+D)/E;v.x=(v.x-J+G)/O;v.y=(v.y-M+D)/E;y.x=(y.x-J+G)/O;y.y=(y.y-M+D)/E;B.x=(B.x-J+G)/O;B.y=(B.y-M+D)/E;I.x=(I.x-J+G)/O;I.y=(I.y-M+D)/E;K.x=(K.x-J+G)/O;K.y=(K.y-M+D)/E;T.x=(T.x-J+G)/O;T.y=(T.y-M+D)/E;X.x=(X.x-J+G)/O;X.y=(X.y-M+D)/E;U.x=(U.x-J+G)/O;U.y=(U.y-M+D)/E;L.x=(L.x-J+G)/O;L.y=(L.y-
|
|
M+D)/E;R.x=(R.x-J+G)/O;R.y=(R.y-M+D)/E;H.x=(H.x-J+G)/O;H.y=(H.y-M+D)/E;F.x=(F.x-J+G)/O;F.y=(F.y-M+D)/E;W.x=(W.x-J+G)/O;W.y=(W.y-M+D)/E;d.translate(-J,-M);7===a?(a=new Float32Array([b.x,b.y,0,1,1E4,B.x,B.y,s.x,s.y,0,1,1E4,I.x,I.y,f.x,f.y,0,1,1E4,v.x,v.y,b.x,b.y,0,1,1E4,B.x,B.y,m.x,m.y,0,1,1E4,K.x,K.y,f.x,f.y,0,1,1E4,v.x,v.y]),d=new Uint16Array([0,1,2,3,4,5]),s=new Float32Array([b.x,b.y,0,0,1,B.x,B.y,e.x,e.y,0,0,1,C.x,C.y,s.x,s.y,0,1,1,I.x,I.y,e.x,e.y,0,0,1,C.x,C.y,s.x,s.y,0,1,1,I.x,I.y,f.x,f.y,0,0,
|
|
1,v.x,v.y,f.x,f.y,0,0,1,v.x,v.y,m.x,m.y,0,1,1,K.x,K.y,l.x,l.y,0,0,1,y.x,y.y,l.x,l.y,0,0,1,y.x,y.y,m.x,m.y,0,1,1,K.x,K.y,b.x,b.y,0,0,1,B.x,B.y]),m=new Uint16Array([0,1,2,3,4,5,6,7,8,9,10,11]),e=new Float32Array([p.x,p.y,0,1,-1,T.x,T.y,e.x,e.y,0,0,-1,C.x,C.y,b.x,b.y,0,0,-1,B.x,B.y,x.x,x.y,0,1,-1,X.x,X.y,p.x,p.y,0,1,-1,T.x,T.y,b.x,b.y,0,0,-1,B.x,B.y,w.x,w.y,0,1,-1,U.x,U.y,e.x,e.y,0,0,-1,C.x,C.y,f.x,f.y,0,0,-1,v.x,v.y,t.x,t.y,0,1,-1,L.x,L.y,w.x,w.y,0,1,-1,U.x,U.y,f.x,f.y,0,0,-1,v.x,v.y,q.x,q.y,0,1,-1,
|
|
R.x,R.y,f.x,f.y,0,0,-1,v.x,v.y,r.x,r.y,0,1,-1,y.x,y.y,r.x,r.y,0,1,-1,H.x,H.y,l.x,l.y,0,0,-1,y.x,y.y,f.x,f.y,0,0,-1,v.x,v.y,u.x,u.y,0,1,-1,F.x,F.y,b.x,b.y,0,0,-1,B.x,B.y,l.x,l.y,0,0,-1,y.x,y.y,A.x,A.y,0,1,-1,W.x,W.y,u.x,u.y,0,1,-1,F.x,F.y,l.x,l.y,0,0,-1,y.x,y.y])):(a=new Float32Array([b.x,b.y,0,1,1E4,B.x,B.y,0,0,0,0,s.x,s.y,0,1,1E4,I.x,I.y,0,0,0,0,f.x,f.y,0,1,1E4,v.x,v.y,0,0,0,0,b.x,b.y,0,1,1E4,B.x,B.y,0,0,0,0,m.x,m.y,0,1,1E4,K.x,K.y,0,0,0,0,f.x,f.y,0,1,1E4,v.x,v.y,0,0,0,0]),d=new Uint16Array([0,1,
|
|
2,3,4,5]),s=new Float32Array([b.x,b.y,0,0,1,B.x,B.y,0,0,0,0,e.x,e.y,0,0,1,C.x,C.y,0,0,0,0,s.x,s.y,0,1,1,I.x,I.y,0,0,0,0,e.x,e.y,0,0,1,C.x,C.y,0,0,0,0,s.x,s.y,0,1,1,I.x,I.y,0,0,0,0,f.x,f.y,0,0,1,v.x,v.y,0,0,0,0,f.x,f.y,0,0,1,v.x,v.y,0,0,0,0,m.x,m.y,0,1,1,K.x,K.y,0,0,0,0,l.x,l.y,0,0,1,y.x,y.y,0,0,0,0,l.x,l.y,0,0,1,y.x,y.y,0,0,0,0,m.x,m.y,0,1,1,K.x,K.y,0,0,0,0,b.x,b.y,0,0,1,B.x,B.y,0,0,0,0]),m=new Uint16Array([0,1,2,3,4,5,6,7,8,9,10,11]),e=new Float32Array([p.x,p.y,0,1,-1,T.x,T.y,0,0,0,0,e.x,e.y,0,0,
|
|
-1,C.x,C.y,0,0,0,0,b.x,b.y,0,0,-1,B.x,B.y,0,0,0,0,x.x,x.y,0,1,-1,X.x,X.y,0,0,0,0,p.x,p.y,0,1,-1,T.x,T.y,0,0,0,0,b.x,b.y,0,0,-1,B.x,B.y,0,0,0,0,w.x,w.y,0,1,-1,U.x,U.y,0,0,0,0,e.x,e.y,0,0,-1,C.x,C.y,0,0,0,0,f.x,f.y,0,0,-1,v.x,v.y,0,0,0,0,t.x,t.y,0,1,-1,L.x,L.y,0,0,0,0,w.x,w.y,0,1,-1,U.x,U.y,0,0,0,0,f.x,f.y,0,0,-1,v.x,v.y,0,0,0,0,q.x,q.y,0,1,-1,R.x,R.y,0,0,0,0,f.x,f.y,0,0,-1,v.x,v.y,0,0,0,0,r.x,r.y,0,1,-1,y.x,y.y,0,0,0,0,r.x,r.y,0,1,-1,H.x,H.y,0,0,0,0,l.x,l.y,0,0,-1,y.x,y.y,0,0,0,0,f.x,f.y,0,0,-1,v.x,
|
|
v.y,0,0,0,0,u.x,u.y,0,1,-1,F.x,F.y,0,0,0,0,b.x,b.y,0,0,-1,B.x,B.y,0,0,0,0,l.x,l.y,0,0,-1,y.x,y.y,0,0,0,0,A.x,A.y,0,1,-1,W.x,W.y,0,0,0,0,u.x,u.y,0,1,-1,F.x,F.y,0,0,0,0,l.x,l.y,0,0,-1,y.x,y.y,0,0,0,0]));f=new Uint16Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23]);return{ba:[a,s,e],Ma:[d,m,f]}};return b}();d.zk=f})(c.e||(c.e={}))})(N||(N={}));
|
|
(function(c){var d=function(){function c(b,a,d){this.a=b;this.T=a;this.od=this.Qi=void 0;this.Dc=d;this.I=void 0}c.prototype.Hn=g("Qi");c.prototype.Kn=g("od");c.prototype.Ln=g("I");c.prototype.dh=z("I");return c}();c.pk=d})(N||(N={}));
|
|
(function(c){(function(d){var f=function(){function b(){this.kg=this.Ni=0;this.pd=[];this.bd=[]}b.prototype.ln=function(a,c,d){!1!==this.cf(a)&&(0<d&&d--,d={loop:d},c===b.Sh?(a=this.Ai(a,c),a.play(d)):c===b.Th?this.hl(a)||(a=this.Ai(a,c),a.play(d)):c===b.wk&&this.Ll(a))};b.prototype.un=function(a,b){this.Ni=a.length;this.Oi=b;this.nb=a;this.ll(c.l.U.bind(this,"_scriptLoadedCBK"))};b.prototype.s=function(){createjs.Sound.removeAllSounds();this.nb&&delete this.nb;this.bd&&delete this.bd;this.pd&&delete this.pd};
|
|
b.prototype.mg=function(a){for(var b=0;b<this.bd.length;b++)if(this.bd[b].soundId===a)return this.bd[b].instances};b.prototype.ng=function(a){for(var b=0;b<this.pd.length;b++)if(this.pd[b].soundId===a)return this.pd[b].instance};b.prototype.Ai=function(a,c){var d;if(c===b.Sh){var e=this.mg(a);if(void 0!==e){for(d=0;d<e.length;d++)if(!this.ge(e[d]))return e[d];d=createjs.Sound.createInstance(a);e.push(d)}else e=[],d=createjs.Sound.createInstance(a),e.push(d),this.bd.push({soundId:a,instances:e})}else if(c===
|
|
b.Th){if(d=this.ng(a))return d;d=createjs.Sound.createInstance(a);this.pd.push({soundId:a,instance:d})}return d};b.prototype.ge=function(a){return a.playState===createjs.Sound.PLAY_SUCCEEDED||a.playState===createjs.Sound.PLAY_INITED?!0:!1};b.prototype.hl=function(a){var b=this.ng(a);if(b&&this.ge(b))return!0;a=this.mg(a);if(void 0!==a)for(b=0;b<a.length;b++)if(this.ge(a[b]))return!0;return!1};b.prototype.Ll=function(a){var b=this.mg(a);if(void 0!==b)for(var c=0;c<b.length;c++)this.ge(b[c])&&b[c].stop();
|
|
(a=this.ng(a))&&this.ge(a)&&a.stop()};b.prototype.cf=function(a){for(var b=0;b<this.nb.length;b++)if(this.nb[b].i().toString()===a)return this.nb[b].cf;return!1};b.prototype.Jl=function(){0===--this.Ni-this.kg&&this.Oi()};b.prototype.ll=function(a){var b=document.createElement("script");b.type="text/javascript";b.readyState?b.onreadystatechange=function(){if("loaded"==b.readyState||"complete"==b.readyState)b.onreadystatechange=null,a()}:b.onload=function(){a()};b.src="libs/soundjs-0.6.1.min.js";document.getElementsByTagName("head")[0].appendChild(b)};
|
|
b.prototype.Dl=function(){createjs.Sound.addEventListener("fileload",c.l.U.bind(this,"_soundLoadedCBK"));for(var a=0;a<this.nb.length;a++)createjs.Sound.registerSound(this.nb[a].Kl,this.nb[a].i().toString())?this.nb[a].Cn():this.kg++;this.kg===this.nb.length&&this.Oi()};b.Sh=0;b.Th=1;b.wk=2;return b}();d.Pd=f})(c.media||(c.media={}))})(N||(N={}));N.media.Pd.prototype._scriptLoadedCBK=N.media.Pd.prototype.Dl;N.media.Pd.prototype._soundLoadedCBK=N.media.Pd.prototype.Jl;
|
|
(function(c){(function(d){var f=function(){function b(a,b){this.hb=a;this.ql=b}b.prototype.em=function(a){a=this.hb.T.Bm(a);return void 0===a||a.gl?void 0:this.Yg(a.i(),-1)};b.prototype.lj=function(a,b){var d=new c.g.G;d.Pf(this.hb.T.Cd(a));d.Mf(b);return d};b.prototype.Yg=function(a,b){var d=new c.g.j;d.En(this.hb);void 0!==a&&d.Pf(this.hb.T.Af(a));d.Mf(b);return d};b.prototype.sm=function(){return this.ql++};return b}();d.Re=f})(c.g||(c.g={}))})(N||(N={}));window.flwebgl=N;N.sg=N.g;
|
|
N.g.SceneGraphFactory=N.g.Re;N.g.Re.prototype.createMovieClipInstance=N.g.Re.prototype.em;
|
|
(function(c){var d=function(){function d(){this.Ta=new c.l.vk;this.rg=c.l.U.bind(this,"_loop");this.Kg=d.Rh;this.$e=void 0;this.Zi=550;this.Yi=400;this.jd=[];this.tc=-1;this.kd=!0;this.mi=0;this.Wi=this.bj=!1}d.prototype.gh=function(b,a,h,n,e){if(void 0==b||void 0==a)return d.Fh;void 0===e&&(e={});void 0===e[d.He]&&(e[d.He]=!1);e[d.jh]=!1;void 0===e[d.Oc]&&(e[d.Oc]=!0);void 0===e[d.Id]&&(e[d.Id]=!0);void 0===e[d.Nc]&&(e[d.Nc]=d.Cf);this.jd=e;this.gb=b;try{this.a=new c.e.Hh(this.gb,e)}catch(k){return d.Eh}this.Dc=
|
|
new c.media.Pd;this.jd[d.kh]=!1;this.a.Ic("OES_standard_derivatives")||(this.jd[d.kh]=!0);this.od=void 0;this.$f=n;this.ie=new c.yj.uk(this.Ta);return(b=this.ie.gh(a,h,this.jd))&&void 0!==b?(this.hb=new c.pk(this.a,this.Ta,this.Dc),this.Wd=new c.g.Re(this.hb,this.ie.ac+1),this.jd[d.Id]&&(this.od=new c.e.zk(this.a,this.Ta,this.Wd)),this.hb.Hn(this.Wd),this.hb.Kn(this.od),void 0!==h&&0<h.length?this.a.xh(this.Ta.uj(),c.l.U.bind(this,"_texturesLoadedCBK")):this.cj(),0<this.Ta.sj().length?this.Dc.un(this.Ta.sj(),
|
|
c.l.U.bind(this,"_soundsLoadedCBK")):this.Xi(),this.Ue=b.Nn,this.Zi=b.Pn,this.Yi=b.On,this.xc=b.km,this.Li=b.loop,this.me=b.rn,this.a.Wb(this.Ue),0>this.xc&&(this.xc=1),this.bf=1E3/this.xc,this.I=this.Wd.Yg(void 0,-1),this.hb.Ln(this.I),this.I.Dn(this.Li),d.Uh):d.Gh};d.prototype.Rc=function(b){this.a.Rc(b);this.a.clear(!0,!0,!1)};d.prototype.play=function(b){"undefined"===typeof b&&(b=void 0);var a=0,h=this.kd;this.kd=!0;if(b&&b.length){for(var n=!1,e=0;e<this.me.length;e++)if(this.Ta.Af(this.me[e]).getName()===
|
|
b){a=e;n=!0;this.kd=!1;break}if(!1===n)return!1}this.gb.addEventListener("webglcontextlost",this.Ei,!1);this.gb.addEventListener("webglcontextrestored",this.Fi,!1);this.dc=(new Date).getTime();h&&this.kd||(this.Si(a,h!==this.kd),this.fi(),this.ad=(this.ad+1)%(this.xc+1));this.Kg=d.Qh;this.Ac=c.l.U.requestAnimationFrame(this.rg,this.xc,window);return!0};d.prototype.stop=function(){this.Kg=d.Rh};d.prototype.um=z("Wd");d.prototype.dh=z("I");d.prototype.xm=z("Zi");d.prototype.wm=z("Yi");d.prototype.lc=
|
|
z("Ue");d.prototype.flush=function(){return void 0!=this.a?(this.a.flush(),!0):!1};d.prototype.Zj=function(b,a){switch(b){case d.Vf:this.$e=a}};d.prototype.removeEventListener=function(b){switch(b){case d.Vf:this.$e=void 0}};d.prototype.s=function(){this.stop();this.ie&&(this.ie.s(),delete this.ie);this.Ta&&(this.Ta.s(),delete this.Ta);this.a&&(this.a.s(),delete this.a);this.I&&(this.I.s(),delete this.I);this.Dc&&(this.Dc.s(),delete this.Dc);delete this.Wd};d.prototype.cj=function(){this.a.O();this.bj=
|
|
!0;this.qi()};d.prototype.Xi=function(){this.Wi=!0;this.qi()};d.prototype.qi=function(){this.$f&&(this.bj&&this.Wi)&&(this.$f(),this.$f=void 0)};d.prototype.Ei=function(b){b.preventDefault()};d.prototype.Fi=function(){this.play()};d.prototype.Bl=function(){var b;"undefined"===typeof b&&(b=!1);b&&(this.stop(),this.tc=-1);if(this.I)for(b=this.I.Bd()-1;0<=b;--b){var a=this.I.ia(b);this.I.Ie(b);a.s()}};d.prototype.ff=function(){try{if(this.Kg!==d.Qh)this.gb.removeEventListener("webglcontextlost",this.Ei,
|
|
!1),this.gb.removeEventListener("webglcontextrestored",this.Fi,!1),void 0!==this.Ac&&(c.l.U.cancelAnimationFrame(this.Ac,window),this.Ac=void 0),void 0!=this.Mg&&window.clearTimeout(this.Mg);else{this.Ac=c.l.U.requestAnimationFrame(this.rg,this.xc,window);this.Mg=void 0;var b=Math.ceil(1E3/60);this.ad==this.Ii&&(this.fi(),this.ad=(this.ad+1)%(this.xc+1));var a=(new Date).getTime()-this.dc;this.bf>a&&this.bf-a<b?(this.Ac&&(c.l.U.cancelAnimationFrame(this.Ac,window),this.Ac=void 0),this.Mg=window.setTimeout(this.rg,
|
|
this.bf-a)):a>=this.bf&&(this.Tl(),this.Qk())}}catch(h){throw c.l.w.error(h.message),this.stop(),h;}};d.prototype.Qk=function(){this.dc=(new Date).getTime();this.oe();this.a.jj();for(var b=this.oa.length,a=0;a<b;++a)this.oa[a].Je(a/b),this.a.e(this.oa[a],1);this.a.mj();void 0!=this.$e&&this.$e();this.Ii=this.ad};d.prototype.oe=function(){this.a.Wb(this.a.lc());this.a.blendFunc(c.e.d.SRC_ALPHA,c.e.d.ONE_MINUS_SRC_ALPHA);this.a.enable(c.e.d.BLEND);this.a.depthFunc(c.e.d.LESS);this.a.clearDepth(1);this.a.depthMask(!0);
|
|
this.a.yd(!1);this.a.clear(!0,!0,!1)};d.prototype.fi=function(){this.I.Ce()===this.mi&&this.I.zj()&&this.kd&&(this.Li||this.tc!==this.me.length-1)&&this.Si((this.tc+1)%this.me.length);this.I.Md();this.I.yh();this.I.Sc();this.I.Rf();this.I.Sf();this.I.Tf()};d.prototype.Si=function(b,a){"undefined"===typeof a&&(a=!1);(a||-1!==this.tc&&this.tc!==b)&&this.Bl();this.ad=this.Ii=-1;if(a||b!==this.tc){var c=this.Ta.Af(this.me[b]);this.I.Pf(c);this.I.play();this.mi=c.be.length}this.tc=b};d.prototype.Tl=function(){this.I.Ea(void 0,
|
|
void 0);this.jd[d.Id]&&this.od.Rn();this.oa=[];this.I.Qb(this.oa)};d.prototype.getContext=z("hb");d.Uh=0;d.hk=1;d.Fh=2;d.Eh=3;d.ik=4;d.Gh=5;d.He=c.e.d.He;d.Nc=c.e.d.Nc;d.Oc=c.e.d.Oc;d.jh=c.e.d.jh;d.Id=10;d.kh=11;d.Ef=c.e.Te.Ef;d.Df=c.e.Te.Df;d.Ff=c.e.Te.Ff;d.Fe=c.e.d.Fe;d.Cf=c.e.d.Cf;d.Qh=0;d.Rh=1;d.Vf=0;return d}();c.n=d})(N||(N={}));window.flwebgl=N;N.Player=N.n;N.n.prototype.init=N.n.prototype.gh;N.n.prototype.setViewport=N.n.prototype.Rc;N.n.prototype.getStageWidth=N.n.prototype.xm;
|
|
N.n.prototype.getStageHeight=N.n.prototype.wm;N.n.prototype.getBackgroundColor=N.n.prototype.lc;N.n.prototype.play=N.n.prototype.play;N.n.prototype.stop=N.n.prototype.stop;N.n.prototype.getScenegraphFactory=N.n.prototype.um;N.n.prototype.getStage=N.n.prototype.dh;N.n.kOption_AAType=N.n.Nc;N.n.kOption_Caching=N.n.Oc;N.n.kOption_CacheAsBitmap=N.n.Id;N.n.kAAType_MSAA=N.n.Fe;N.n.kAAType_ImageSpace=N.n.Cf;N.n.S_OK=N.n.Uh;N.n.E_ERR=N.n.hk;N.n.E_INVALID_PARAM=N.n.Fh;N.n.E_CONTEXT_CREATION_FAILED=N.n.Eh;
|
|
N.n.E_REQUIRED_EXTENSION_NOT_PRESENT=N.n.ik;N.n.E_RESOURCE_LOADING_FAILED=N.n.Gh;N.n.prototype._loop=N.n.prototype.ff;N.n.prototype._texturesLoadedCBK=N.n.prototype.cj;N.n.prototype._soundsLoadedCBK=N.n.prototype.Xi;N.n.prototype.flush=N.n.prototype.flush;N.n.prototype.setEventListener=N.n.prototype.Zj;N.n.prototype.removeEventListener=N.n.prototype.removeEventListener;N.n.FRAME_RENDER=N.n.Vf;
|
|
//@ sourceMappingURL=flwebgl-0.2.min.map
|