Skip to content
Permalink
c93e29d26a
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
2 lines (2 sloc) 558 KB
// Generated by Construct 3, the game and app creator :: https://www.construct.net
"use strict";(function(g,_){if("object"==typeof exports&&"object"==typeof module)module.exports=_();else if("function"==typeof define&&define.g_a)define([],_);else{var e=_();for(var t in e)("object"==typeof exports?exports:g)[t]=e[t]}})(this,function(){var g=Math.acos,_=Math.round,f=Math.min,a=Math.floor,r=Math.ceil,w=Math.sqrt,t=Math.pow,z=Math.cos,C=Math.sin,j=Math.max,B=Math.abs,p=Math.PI;return function(g){function _(a){if(e[a])return e[a].exports;var t=e[a]={g_b:a,g_c:!1,exports:{}};return g[a].call(t.exports,t,t.exports,_),t.g_c=!0,t.exports}var e={};return _.g_d=g,_.c=e,_.d=function(g,e,a){_.g_e(g,e)||Object.defineProperty(g,e,{g_f:!1,g_g:!0,get:a})},_.n=function(g){var e=g&&g.g_h?function(){return g["default"]}:function(){return g};return _.d(e,"a",e),e},_.g_e=function(g,_){return Object.prototype.hasOwnProperty.call(g,_)},_.g_i="",_(_.g_j=4)}([function(g,_){"use strict";Object.defineProperty(_,"__esModule",{value:!0}),_.g_k=function(g){_.g_l=t=g},_.g_m=function(g){return g*i},_.g_n=function(g,_){return B(g-_)<=n*j(1,B(g),B(_))};var n=_.EPSILON=1e-6,t=_.g_l="undefined"==typeof Float32Array?Array:Float32Array,e=_.g_o=Math.random,i=p/180},function(g,_,e){"use strict";function a(g,_,e){var a=_[0],t=_[1],r=_[2],o=_[3],s=_[4],n=_[5],d=_[6],u=_[7],i=_[8],l=e[0],c=e[1],f=e[2],h=e[3],p=e[4],M=e[5],m=e[6],N=e[7],b=e[8];return g[0]=l*a+c*o+f*d,g[1]=l*t+c*s+f*u,g[2]=l*r+c*n+f*i,g[3]=h*a+p*o+M*d,g[4]=h*t+p*s+M*u,g[5]=h*r+p*n+M*i,g[6]=m*a+N*o+b*d,g[7]=m*t+N*s+b*u,g[8]=m*r+N*n+b*i,g}function n(g,_,e){return g[0]=_[0]-e[0],g[1]=_[1]-e[1],g[2]=_[2]-e[2],g[3]=_[3]-e[3],g[4]=_[4]-e[4],g[5]=_[5]-e[5],g[6]=_[6]-e[6],g[7]=_[7]-e[7],g[8]=_[8]-e[8],g}Object.defineProperty(_,"__esModule",{value:!0}),_.sub=_.g_p=void 0,_.create=function(){var g=new h.g_l(9);return g[0]=1,g[1]=0,g[2]=0,g[3]=0,g[4]=1,g[5]=0,g[6]=0,g[7]=0,g[8]=1,g},_.g_q=function(g,_){return g[0]=_[0],g[1]=_[1],g[2]=_[2],g[3]=_[4],g[4]=_[5],g[5]=_[6],g[6]=_[8],g[7]=_[9],g[8]=_[10],g},_.clone=function(g){var _=new h.g_l(9);return _[0]=g[0],_[1]=g[1],_[2]=g[2],_[3]=g[3],_[4]=g[4],_[5]=g[5],_[6]=g[6],_[7]=g[7],_[8]=g[8],_},_.g_r=function(g,_){return g[0]=_[0],g[1]=_[1],g[2]=_[2],g[3]=_[3],g[4]=_[4],g[5]=_[5],g[6]=_[6],g[7]=_[7],g[8]=_[8],g},_.g_s=function(g,_,e,a,t,i,r,o,n){var d=new h.g_l(9);return d[0]=g,d[1]=_,d[2]=e,d[3]=a,d[4]=t,d[5]=i,d[6]=r,d[7]=o,d[8]=n,d},_.set=function(g,_,e,a,t,i,r,o,n,d){return g[0]=_,g[1]=e,g[2]=a,g[3]=t,g[4]=i,g[5]=r,g[6]=o,g[7]=n,g[8]=d,g},_.identity=function(g){return g[0]=1,g[1]=0,g[2]=0,g[3]=0,g[4]=1,g[5]=0,g[6]=0,g[7]=0,g[8]=1,g},_.g_t=function(g,_){if(g===_){var e=_[1],a=_[2],t=_[5];g[1]=_[3],g[2]=_[6],g[3]=e,g[5]=_[7],g[6]=a,g[7]=t}else g[0]=_[0],g[1]=_[3],g[2]=_[6],g[3]=_[1],g[4]=_[4],g[5]=_[7],g[6]=_[2],g[7]=_[5],g[8]=_[8];return g},_.g_u=function(g,_){var e=_[0],a=_[1],t=_[2],r=_[3],o=_[4],s=_[5],n=_[6],d=_[7],u=_[8],i=u*o-s*d,l=-u*r+s*n,c=d*r-o*n,f=e*i+a*l+t*c;return f?(f=1/f,g[0]=i*f,g[1]=(-u*a+t*d)*f,g[2]=(s*a-t*o)*f,g[3]=l*f,g[4]=(u*e-t*n)*f,g[5]=(-s*e+t*r)*f,g[6]=c*f,g[7]=(-d*e+a*n)*f,g[8]=(o*e-a*r)*f,g):null},_.g_v=function(g,_){var e=_[0],a=_[1],t=_[2],r=_[3],o=_[4],s=_[5],n=_[6],d=_[7],u=_[8];return g[0]=o*u-s*d,g[1]=t*d-a*u,g[2]=a*s-t*o,g[3]=s*n-r*u,g[4]=e*u-t*n,g[5]=t*r-e*s,g[6]=r*d-o*n,g[7]=a*n-e*d,g[8]=e*o-a*r,g},_.g_w=function(g){var _=g[0],e=g[1],a=g[2],t=g[3],i=g[4],r=g[5],o=g[6],n=g[7],d=g[8];return _*(d*i-r*n)+e*(-d*t+r*o)+a*(n*t-i*o)},_.multiply=a,_.translate=function(g,_,e){var a=_[0],t=_[1],r=_[2],o=_[3],s=_[4],n=_[5],d=_[6],u=_[7],i=_[8],l=e[0],c=e[1];return g[0]=a,g[1]=t,g[2]=r,g[3]=o,g[4]=s,g[5]=n,g[6]=l*a+c*o+d,g[7]=l*t+c*s+u,g[8]=l*r+c*n+i,g},_.rotate=function(g,_,e){var a=_[0],t=_[1],r=_[2],d=_[3],n=_[4],i=_[5],o=_[6],u=_[7],l=_[8],f=C(e),c=z(e);return g[0]=c*a+f*d,g[1]=c*t+f*n,g[2]=c*r+f*i,g[3]=c*d-f*a,g[4]=c*n-f*t,g[5]=c*i-f*r,g[6]=o,g[7]=u,g[8]=l,g},_.scale=function(g,_,e){var a=e[0],t=e[1];return g[0]=a*_[0],g[1]=a*_[1],g[2]=a*_[2],g[3]=t*_[3],g[4]=t*_[4],g[5]=t*_[5],g[6]=_[6],g[7]=_[7],g[8]=_[8],g},_.g_x=function(g,_){return g[0]=1,g[1]=0,g[2]=0,g[3]=0,g[4]=1,g[5]=0,g[6]=_[0],g[7]=_[1],g[8]=1,g},_.g_y=function(g,_){var e=C(_),a=z(_);return g[0]=a,g[1]=e,g[2]=0,g[3]=-e,g[4]=a,g[5]=0,g[6]=0,g[7]=0,g[8]=1,g},_.g_z=function(g,_){return g[0]=_[0],g[1]=0,g[2]=0,g[3]=0,g[4]=_[1],g[5]=0,g[6]=0,g[7]=0,g[8]=1,g},_.g_A=function(g,_){return g[0]=_[0],g[1]=_[1],g[2]=0,g[3]=_[2],g[4]=_[3],g[5]=0,g[6]=_[4],g[7]=_[5],g[8]=1,g},_.g_B=function(g,_){var e=_[0],a=_[1],t=_[2],r=_[3],o=e+e,s=a+a,n=t+t,d=e*o,u=a*o,i=a*s,l=t*o,c=t*s,f=t*n,h=r*o,p=r*s,M=r*n;return g[0]=1-i-f,g[3]=u-M,g[6]=l+p,g[1]=u+M,g[4]=1-d-f,g[7]=c-h,g[2]=l-p,g[5]=c+h,g[8]=1-d-i,g},_.g_C=function(h,e){var t=e[0],a=e[1],r=e[2],o=e[3],l=e[4],s=e[5],n=e[6],d=e[7],u=e[8],i=e[9],c=e[10],m=e[11],f=e[12],b=e[13],p=e[14],T=e[15],w=t*s-a*l,z=t*n-r*l,D=t*d-o*l,O=a*n-r*s,L=a*d-o*s,y=r*d-o*n,_=u*b-i*f,N=u*p-c*f,E=u*T-m*f,C=i*p-c*b,A=i*T-m*b,g=c*T-m*p,M=w*g-z*A+D*C+O*E-L*N+y*_;return M?(M=1/M,h[0]=(s*g-n*A+d*C)*M,h[1]=(n*E-l*g-d*N)*M,h[2]=(l*A-s*E+d*_)*M,h[3]=(r*A-a*g-o*C)*M,h[4]=(t*g-r*E+o*N)*M,h[5]=(a*E-t*A-o*_)*M,h[6]=(b*y-p*L+T*O)*M,h[7]=(p*D-f*y-T*z)*M,h[8]=(f*L-b*D+T*w)*M,h):null},_.g_D=function(g,_,e){return g[0]=2/_,g[1]=0,g[2]=0,g[3]=0,g[4]=-2/e,g[5]=0,g[6]=-1,g[7]=1,g[8]=1,g},_.g_E=function(g){return"mat3("+g[0]+", "+g[1]+", "+g[2]+", "+g[3]+", "+g[4]+", "+g[5]+", "+g[6]+", "+g[7]+", "+g[8]+")"},_.g_F=function(g){return w(t(g[0],2)+t(g[1],2)+t(g[2],2)+t(g[3],2)+t(g[4],2)+t(g[5],2)+t(g[6],2)+t(g[7],2)+t(g[8],2))},_.add=function(g,_,e){return g[0]=_[0]+e[0],g[1]=_[1]+e[1],g[2]=_[2]+e[2],g[3]=_[3]+e[3],g[4]=_[4]+e[4],g[5]=_[5]+e[5],g[6]=_[6]+e[6],g[7]=_[7]+e[7],g[8]=_[8]+e[8],g},_.g_G=n,_.g_H=function(g,_,e){return g[0]=_[0]*e,g[1]=_[1]*e,g[2]=_[2]*e,g[3]=_[3]*e,g[4]=_[4]*e,g[5]=_[5]*e,g[6]=_[6]*e,g[7]=_[7]*e,g[8]=_[8]*e,g},_.g_I=function(g,_,e,a){return g[0]=_[0]+e[0]*a,g[1]=_[1]+e[1]*a,g[2]=_[2]+e[2]*a,g[3]=_[3]+e[3]*a,g[4]=_[4]+e[4]*a,g[5]=_[5]+e[5]*a,g[6]=_[6]+e[6]*a,g[7]=_[7]+e[7]*a,g[8]=_[8]+e[8]*a,g},_.g_J=function(g,_){return g[0]===_[0]&&g[1]===_[1]&&g[2]===_[2]&&g[3]===_[3]&&g[4]===_[4]&&g[5]===_[5]&&g[6]===_[6]&&g[7]===_[7]&&g[8]===_[8]},_.g_n=function(g,_){var e=g[0],a=g[1],t=g[2],i=g[3],r=g[4],o=g[5],n=g[6],d=g[7],u=g[8],s=_[0],l=_[1],f=_[2],c=_[3],p=_[4],M=_[5],m=_[6],N=_[7],b=_[8];return B(e-s)<=h.EPSILON*j(1,B(e),B(s))&&B(a-l)<=h.EPSILON*j(1,B(a),B(l))&&B(t-f)<=h.EPSILON*j(1,B(t),B(f))&&B(i-c)<=h.EPSILON*j(1,B(i),B(c))&&B(r-p)<=h.EPSILON*j(1,B(r),B(p))&&B(o-M)<=h.EPSILON*j(1,B(o),B(M))&&B(n-m)<=h.EPSILON*j(1,B(n),B(m))&&B(d-N)<=h.EPSILON*j(1,B(d),B(N))&&B(u-b)<=h.EPSILON*j(1,B(u),B(b))};var i=e(0),h=function(g){if(g&&g.g_h)return g;var _={};if(null!=g)for(var e in g)Object.prototype.hasOwnProperty.call(g,e)&&(_[e]=g[e]);return _.default=g,_}(i),r=_.g_p=a,d=_.sub=n},function(e,t,n){"use strict";function i(){var g=new y.g_l(3);return g[0]=0,g[1]=0,g[2]=0,g}function d(g){var _=g[0],e=g[1],a=g[2];return w(_*_+e*e+a*a)}function u(g,_,e){var a=new y.g_l(3);return a[0]=g,a[1]=_,a[2]=e,a}function o(g,_,e){return g[0]=_[0]-e[0],g[1]=_[1]-e[1],g[2]=_[2]-e[2],g}function s(g,_,e){return g[0]=_[0]*e[0],g[1]=_[1]*e[1],g[2]=_[2]*e[2],g}function l(g,_,e){return g[0]=_[0]/e[0],g[1]=_[1]/e[1],g[2]=_[2]/e[2],g}function c(g,_){var e=_[0]-g[0],a=_[1]-g[1],t=_[2]-g[2];return w(e*e+a*a+t*t)}function m(g,_){var e=_[0]-g[0],a=_[1]-g[1],t=_[2]-g[2];return e*e+a*a+t*t}function L(g){var _=g[0],e=g[1],a=g[2];return _*_+e*e+a*a}function D(g,_){var e=_[0],a=_[1],t=_[2],n=e*e+a*a+t*t;return 0<n&&(n=1/w(n),g[0]=_[0]*n,g[1]=_[1]*n,g[2]=_[2]*n),g}function O(g,_){return g[0]*_[0]+g[1]*_[1]+g[2]*_[2]}Object.defineProperty(t,"__esModule",{value:!0}),t.forEach=t.g_K=t.g_L=t.g_M=t.g_N=t.g_O=t.g_p=t.sub=void 0,t.create=i,t.clone=function(g){var _=new y.g_l(3);return _[0]=g[0],_[1]=g[1],_[2]=g[2],_},t.length=d,t.g_s=u,t.g_r=function(g,_){return g[0]=_[0],g[1]=_[1],g[2]=_[2],g},t.set=function(g,_,e,a){return g[0]=_,g[1]=e,g[2]=a,g},t.add=function(g,_,e){return g[0]=_[0]+e[0],g[1]=_[1]+e[1],g[2]=_[2]+e[2],g},t.g_G=o,t.multiply=s,t.g_P=l,t.ceil=function(g,_){return g[0]=r(_[0]),g[1]=r(_[1]),g[2]=r(_[2]),g},t.floor=function(g,_){return g[0]=a(_[0]),g[1]=a(_[1]),g[2]=a(_[2]),g},t.min=function(g,_,e){return g[0]=f(_[0],e[0]),g[1]=f(_[1],e[1]),g[2]=f(_[2],e[2]),g},t.max=function(g,_,e){return g[0]=j(_[0],e[0]),g[1]=j(_[1],e[1]),g[2]=j(_[2],e[2]),g},t.round=function(g,e){return g[0]=_(e[0]),g[1]=_(e[1]),g[2]=_(e[2]),g},t.scale=function(g,_,e){return g[0]=_[0]*e,g[1]=_[1]*e,g[2]=_[2]*e,g},t.g_Q=function(g,_,e,a){return g[0]=_[0]+e[0]*a,g[1]=_[1]+e[1]*a,g[2]=_[2]+e[2]*a,g},t.g_R=c,t.g_S=m,t.g_T=L,t.g_U=function(g,_){return g[0]=-_[0],g[1]=-_[1],g[2]=-_[2],g},t.inverse=function(g,_){return g[0]=1/_[0],g[1]=1/_[1],g[2]=1/_[2],g},t.normalize=D,t.g_V=O,t.g_W=function(g,_,e){var a=_[0],t=_[1],i=_[2],r=e[0],o=e[1],n=e[2];return g[0]=t*n-i*o,g[1]=i*r-a*n,g[2]=a*o-t*r,g},t.g_X=function(g,_,e,a){var n=_[0],t=_[1],i=_[2];return g[0]=n+a*(e[0]-n),g[1]=t+a*(e[1]-t),g[2]=i+a*(e[2]-i),g},t.g_Y=function(g,_,e,a,r,o){var s=o*o,t=s*(2*o-3)+1,n=s*(o-2)+o,d=s*(o-1),u=s*(3-2*o);return g[0]=_[0]*t+e[0]*n+a[0]*d+r[0]*u,g[1]=_[1]*t+e[1]*n+a[1]*d+r[1]*u,g[2]=_[2]*t+e[2]*n+a[2]*d+r[2]*u,g},t.g_Z=function(g,_,e,a,r,o){var s=1-o,t=s*s,n=o*o,d=t*s,u=3*o*t,i=3*n*s,l=n*o;return g[0]=_[0]*d+e[0]*u+a[0]*i+r[0]*l,g[1]=_[1]*d+e[1]*u+a[1]*i+r[1]*l,g[2]=_[2]*d+e[2]*u+a[2]*i+r[2]*l,g},t.random=function(g,_){_=_||1;var e=2*y.g_o()*p,a=2*y.g_o()-1,n=w(1-a*a)*_;return g[0]=z(e)*n,g[1]=C(e)*n,g[2]=a*_,g},t.g__=function(g,_,e){var a=_[0],t=_[1],n=_[2],i=e[3]*a+e[7]*t+e[11]*n+e[15];return i=i||1,g[0]=(e[0]*a+e[4]*t+e[8]*n+e[12])/i,g[1]=(e[1]*a+e[5]*t+e[9]*n+e[13])/i,g[2]=(e[2]*a+e[6]*t+e[10]*n+e[14])/i,g},t.g_$=function(g,_,e){var a=_[0],t=_[1],n=_[2];return g[0]=a*e[0]+t*e[3]+n*e[6],g[1]=a*e[1]+t*e[4]+n*e[7],g[2]=a*e[2]+t*e[5]+n*e[8],g},t.g_aa=function(g,_,e){var a=_[0],t=_[1],r=_[2],o=e[0],s=e[1],n=e[2],d=e[3],u=d*a+s*r-n*t,i=d*t+n*a-o*r,l=d*r+o*t-s*a,c=-o*a-s*t-n*r;return g[0]=u*d+c*-o+i*-n-l*-s,g[1]=i*d+c*-s+l*-o-u*-n,g[2]=l*d+c*-n+u*-s-i*-o,g},t.g_ab=function(g,_,e,a){var t=[],n=[];return t[0]=_[0]-e[0],t[1]=_[1]-e[1],t[2]=_[2]-e[2],n[0]=t[0],n[1]=t[1]*z(a)-t[2]*C(a),n[2]=t[1]*C(a)+t[2]*z(a),g[0]=n[0]+e[0],g[1]=n[1]+e[1],g[2]=n[2]+e[2],g},t.g_ac=function(g,_,e,a){var t=[],n=[];return t[0]=_[0]-e[0],t[1]=_[1]-e[1],t[2]=_[2]-e[2],n[0]=t[2]*C(a)+t[0]*z(a),n[1]=t[1],n[2]=t[2]*z(a)-t[0]*C(a),g[0]=n[0]+e[0],g[1]=n[1]+e[1],g[2]=n[2]+e[2],g},t.g_ad=function(g,_,e,a){var t=[],n=[];return t[0]=_[0]-e[0],t[1]=_[1]-e[1],t[2]=_[2]-e[2],n[0]=t[0]*z(a)-t[1]*C(a),n[1]=t[0]*C(a)+t[1]*z(a),n[2]=t[2],g[0]=n[0]+e[0],g[1]=n[1]+e[1],g[2]=n[2]+e[2],g},t.angle=function(_,e){var a=u(_[0],_[1],_[2]),t=u(e[0],e[1],e[2]);D(a,a),D(t,t);var n=O(a,t);return 1<n?0:-1>n?p:g(n)},t.g_E=function(g){return"vec3("+g[0]+", "+g[1]+", "+g[2]+")"},t.g_J=function(g,_){return g[0]===_[0]&&g[1]===_[1]&&g[2]===_[2]},t.g_n=function(g,_){var e=g[0],a=g[1],t=g[2],i=_[0],r=_[1],d=_[2];return B(e-i)<=y.EPSILON*j(1,B(e),B(i))&&B(a-r)<=y.EPSILON*j(1,B(a),B(r))&&B(t-d)<=y.EPSILON*j(1,B(t),B(d))};var N=n(0),y=function(g){if(g&&g.g_h)return g;var _={};if(null!=g)for(var e in g)Object.prototype.hasOwnProperty.call(g,e)&&(_[e]=g[e]);return _.default=g,_}(N),E=t.sub=o,A=t.g_p=s,k=t.g_O=l,M=t.g_N=c,v=t.g_M=m,h=t.g_L=d,T=t.g_K=L,b=t.forEach=function(){var g=i();return function(_,e,t,r,s,n){var d,l;for(e||(e=3),t||(t=0),l=r?f(r*e+t,_.length):_.length,d=t;d<l;d+=e)g[0]=_[d],g[1]=_[d+1],g[2]=_[d+2],s(g,g,n),_[d]=g[0],_[d+1]=g[1],_[d+2]=g[2];return _}}()},function(t,e,n){"use strict";function i(){var g=new v.g_l(4);return g[0]=0,g[1]=0,g[2]=0,g[3]=0,g}function d(g,_,e){return g[0]=_[0]-e[0],g[1]=_[1]-e[1],g[2]=_[2]-e[2],g[3]=_[3]-e[3],g}function o(g,_,e){return g[0]=_[0]*e[0],g[1]=_[1]*e[1],g[2]=_[2]*e[2],g[3]=_[3]*e[3],g}function u(g,_,e){return g[0]=_[0]/e[0],g[1]=_[1]/e[1],g[2]=_[2]/e[2],g[3]=_[3]/e[3],g}function s(g,_,e){return g[0]=_[0]*e,g[1]=_[1]*e,g[2]=_[2]*e,g[3]=_[3]*e,g}function l(g,_){var e=_[0]-g[0],a=_[1]-g[1],t=_[2]-g[2],n=_[3]-g[3];return w(e*e+a*a+t*t+n*n)}function c(g,_){var e=_[0]-g[0],a=_[1]-g[1],t=_[2]-g[2],n=_[3]-g[3];return e*e+a*a+t*t+n*n}function p(g){var _=g[0],e=g[1],a=g[2],t=g[3];return w(_*_+e*e+a*a+t*t)}function h(g){var _=g[0],e=g[1],a=g[2],t=g[3];return _*_+e*e+a*a+t*t}function m(g,_){var e=_[0],a=_[1],t=_[2],n=_[3],i=e*e+a*a+t*t+n*n;return 0<i&&(i=1/w(i),g[0]=e*i,g[1]=a*i,g[2]=t*i,g[3]=n*i),g}Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.g_K=e.g_L=e.g_M=e.g_N=e.g_O=e.g_p=e.sub=void 0,e.create=i,e.clone=function(g){var _=new v.g_l(4);return _[0]=g[0],_[1]=g[1],_[2]=g[2],_[3]=g[3],_},e.g_s=function(g,_,e,a){var t=new v.g_l(4);return t[0]=g,t[1]=_,t[2]=e,t[3]=a,t},e.g_r=function(g,_){return g[0]=_[0],g[1]=_[1],g[2]=_[2],g[3]=_[3],g},e.set=function(g,_,e,a,t){return g[0]=_,g[1]=e,g[2]=a,g[3]=t,g},e.add=function(g,_,e){return g[0]=_[0]+e[0],g[1]=_[1]+e[1],g[2]=_[2]+e[2],g[3]=_[3]+e[3],g},e.g_G=d,e.multiply=o,e.g_P=u,e.ceil=function(g,_){return g[0]=r(_[0]),g[1]=r(_[1]),g[2]=r(_[2]),g[3]=r(_[3]),g},e.floor=function(g,_){return g[0]=a(_[0]),g[1]=a(_[1]),g[2]=a(_[2]),g[3]=a(_[3]),g},e.min=function(g,_,e){return g[0]=f(_[0],e[0]),g[1]=f(_[1],e[1]),g[2]=f(_[2],e[2]),g[3]=f(_[3],e[3]),g},e.max=function(g,_,e){return g[0]=j(_[0],e[0]),g[1]=j(_[1],e[1]),g[2]=j(_[2],e[2]),g[3]=j(_[3],e[3]),g},e.round=function(g,e){return g[0]=_(e[0]),g[1]=_(e[1]),g[2]=_(e[2]),g[3]=_(e[3]),g},e.scale=s,e.g_Q=function(g,_,e,a){return g[0]=_[0]+e[0]*a,g[1]=_[1]+e[1]*a,g[2]=_[2]+e[2]*a,g[3]=_[3]+e[3]*a,g},e.g_R=l,e.g_S=c,e.length=p,e.g_T=h,e.g_U=function(g,_){return g[0]=-_[0],g[1]=-_[1],g[2]=-_[2],g[3]=-_[3],g},e.inverse=function(g,_){return g[0]=1/_[0],g[1]=1/_[1],g[2]=1/_[2],g[3]=1/_[3],g},e.normalize=m,e.g_V=function(g,_){return g[0]*_[0]+g[1]*_[1]+g[2]*_[2]+g[3]*_[3]},e.g_X=function(g,_,e,a){var i=_[0],t=_[1],r=_[2],d=_[3];return g[0]=i+a*(e[0]-i),g[1]=t+a*(e[1]-t),g[2]=r+a*(e[2]-r),g[3]=d+a*(e[3]-d),g},e.random=function(g,_){return _=_||1,g[0]=v.g_o(),g[1]=v.g_o(),g[2]=v.g_o(),g[3]=v.g_o(),m(g,g),s(g,g,_),g},e.g__=function(g,_,e){var a=_[0],t=_[1],n=_[2],i=_[3];return g[0]=e[0]*a+e[4]*t+e[8]*n+e[12]*i,g[1]=e[1]*a+e[5]*t+e[9]*n+e[13]*i,g[2]=e[2]*a+e[6]*t+e[10]*n+e[14]*i,g[3]=e[3]*a+e[7]*t+e[11]*n+e[15]*i,g},e.g_aa=function(g,_,e){var a=_[0],t=_[1],r=_[2],o=e[0],s=e[1],n=e[2],d=e[3],u=d*a+s*r-n*t,i=d*t+n*a-o*r,l=d*r+o*t-s*a,c=-o*a-s*t-n*r;return g[0]=u*d+c*-o+i*-n-l*-s,g[1]=i*d+c*-s+l*-o-u*-n,g[2]=l*d+c*-n+u*-s-i*-o,g[3]=_[3],g},e.g_E=function(g){return"vec4("+g[0]+", "+g[1]+", "+g[2]+", "+g[3]+")"},e.g_J=function(g,_){return g[0]===_[0]&&g[1]===_[1]&&g[2]===_[2]&&g[3]===_[3]},e.g_n=function(g,_){var e=g[0],a=g[1],t=g[2],i=g[3],r=_[0],o=_[1],n=_[2],d=_[3];return B(e-r)<=v.EPSILON*j(1,B(e),B(r))&&B(a-o)<=v.EPSILON*j(1,B(a),B(o))&&B(t-n)<=v.EPSILON*j(1,B(t),B(n))&&B(i-d)<=v.EPSILON*j(1,B(i),B(d))};var b=n(0),v=function(g){if(g&&g.g_h)return g;var _={};if(null!=g)for(var e in g)Object.prototype.hasOwnProperty.call(g,e)&&(_[e]=g[e]);return _.default=g,_}(b),T=e.sub=d,L=e.g_p=o,z=e.g_O=u,N=e.g_N=l,D=e.g_M=c,O=e.g_L=p,y=e.g_K=h,g=e.forEach=function(){var g=i();return function(_,e,t,r,s,n){var d,l;for(e||(e=4),t||(t=0),l=r?f(r*e+t,_.length):_.length,d=t;d<l;d+=e)g[0]=_[d],g[1]=_[d+1],g[2]=_[d+2],g[3]=_[d+3],s(g,g,n),_[d]=g[0],_[d+1]=g[1],_[d+2]=g[2],_[d+3]=g[3];return _}}()},function(g,_,e){"use strict";function a(g){if(g&&g.g_h)return g;var _={};if(null!=g)for(var e in g)Object.prototype.hasOwnProperty.call(g,e)&&(_[e]=g[e]);return _.default=g,_}Object.defineProperty(_,"__esModule",{value:!0}),_.vec4=_.vec3=_.vec2=_.quat=_.mat4=_.mat3=_.mat2d=_.mat2=_.glMatrix=void 0;var t=e(0),r=a(t),o=e(5),s=a(o),n=e(6),d=a(n),u=e(1),i=a(u),l=e(7),c=a(l),f=e(8),h=a(f),p=e(9),M=a(p),m=e(2),N=a(m),b=e(3),v=a(b);_.glMatrix=r,_.mat2=s,_.mat2d=d,_.mat3=i,_.mat4=c,_.quat=h,_.vec2=M,_.vec3=N,_.vec4=v},function(g,_,e){"use strict";function a(g,_,e){var a=_[0],t=_[1],r=_[2],o=_[3],s=e[0],n=e[1],d=e[2],u=e[3];return g[0]=a*s+r*n,g[1]=t*s+o*n,g[2]=a*d+r*u,g[3]=t*d+o*u,g}function n(g,_,e){return g[0]=_[0]-e[0],g[1]=_[1]-e[1],g[2]=_[2]-e[2],g[3]=_[3]-e[3],g}Object.defineProperty(_,"__esModule",{value:!0}),_.sub=_.g_p=void 0,_.create=function(){var g=new p.g_l(4);return g[0]=1,g[1]=0,g[2]=0,g[3]=1,g},_.clone=function(g){var _=new p.g_l(4);return _[0]=g[0],_[1]=g[1],_[2]=g[2],_[3]=g[3],_},_.g_r=function(g,_){return g[0]=_[0],g[1]=_[1],g[2]=_[2],g[3]=_[3],g},_.identity=function(g){return g[0]=1,g[1]=0,g[2]=0,g[3]=1,g},_.g_s=function(g,_,e,a){var t=new p.g_l(4);return t[0]=g,t[1]=_,t[2]=e,t[3]=a,t},_.set=function(g,_,e,a,t){return g[0]=_,g[1]=e,g[2]=a,g[3]=t,g},_.g_t=function(g,_){if(g===_){var e=_[1];g[1]=_[2],g[2]=e}else g[0]=_[0],g[1]=_[2],g[2]=_[1],g[3]=_[3];return g},_.g_u=function(g,_){var e=_[0],a=_[1],t=_[2],n=_[3],i=e*n-t*a;return i?(i=1/i,g[0]=n*i,g[1]=-a*i,g[2]=-t*i,g[3]=e*i,g):null},_.g_v=function(g,_){var e=_[0];return g[0]=_[3],g[1]=-_[1],g[2]=-_[2],g[3]=e,g},_.g_w=function(g){return g[0]*g[3]-g[2]*g[1]},_.multiply=a,_.rotate=function(g,_,e){var a=_[0],t=_[1],r=_[2],d=_[3],n=C(e),i=z(e);return g[0]=a*i+r*n,g[1]=t*i+d*n,g[2]=a*-n+r*i,g[3]=t*-n+d*i,g},_.scale=function(g,_,e){var a=_[0],t=_[1],i=_[2],r=_[3],o=e[0],n=e[1];return g[0]=a*o,g[1]=t*o,g[2]=i*n,g[3]=r*n,g},_.g_y=function(g,_){var e=C(_),a=z(_);return g[0]=a,g[1]=e,g[2]=-e,g[3]=a,g},_.g_z=function(g,_){return g[0]=_[0],g[1]=0,g[2]=0,g[3]=_[1],g},_.g_E=function(g){return"mat2("+g[0]+", "+g[1]+", "+g[2]+", "+g[3]+")"},_.g_F=function(g){return w(t(g[0],2)+t(g[1],2)+t(g[2],2)+t(g[3],2))},_.g_ae=function(g,_,e,a){return g[2]=a[2]/a[0],e[0]=a[0],e[1]=a[1],e[3]=a[3]-g[2]*e[1],[g,_,e]},_.add=function(g,_,e){return g[0]=_[0]+e[0],g[1]=_[1]+e[1],g[2]=_[2]+e[2],g[3]=_[3]+e[3],g},_.g_G=n,_.g_J=function(g,_){return g[0]===_[0]&&g[1]===_[1]&&g[2]===_[2]&&g[3]===_[3]},_.g_n=function(g,_){var e=g[0],a=g[1],t=g[2],i=g[3],r=_[0],o=_[1],n=_[2],d=_[3];return B(e-r)<=p.EPSILON*j(1,B(e),B(r))&&B(a-o)<=p.EPSILON*j(1,B(a),B(o))&&B(t-n)<=p.EPSILON*j(1,B(t),B(n))&&B(i-d)<=p.EPSILON*j(1,B(i),B(d))},_.g_H=function(g,_,e){return g[0]=_[0]*e,g[1]=_[1]*e,g[2]=_[2]*e,g[3]=_[3]*e,g},_.g_I=function(g,_,e,a){return g[0]=_[0]+e[0]*a,g[1]=_[1]+e[1]*a,g[2]=_[2]+e[2]*a,g[3]=_[3]+e[3]*a,g};var i=e(0),p=function(g){if(g&&g.g_h)return g;var _={};if(null!=g)for(var e in g)Object.prototype.hasOwnProperty.call(g,e)&&(_[e]=g[e]);return _.default=g,_}(i),r=_.g_p=a,d=_.sub=n},function(g,_,e){"use strict";function a(g,_,e){var a=_[0],t=_[1],r=_[2],o=_[3],s=_[4],n=_[5],d=e[0],u=e[1],i=e[2],l=e[3],c=e[4],f=e[5];return g[0]=a*d+r*u,g[1]=t*d+o*u,g[2]=a*i+r*l,g[3]=t*i+o*l,g[4]=a*c+r*f+s,g[5]=t*c+o*f+n,g}function n(g,_,e){return g[0]=_[0]-e[0],g[1]=_[1]-e[1],g[2]=_[2]-e[2],g[3]=_[3]-e[3],g[4]=_[4]-e[4],g[5]=_[5]-e[5],g}Object.defineProperty(_,"__esModule",{value:!0}),_.sub=_.g_p=void 0,_.create=function(){var g=new h.g_l(6);return g[0]=1,g[1]=0,g[2]=0,g[3]=1,g[4]=0,g[5]=0,g},_.clone=function(g){var _=new h.g_l(6);return _[0]=g[0],_[1]=g[1],_[2]=g[2],_[3]=g[3],_[4]=g[4],_[5]=g[5],_},_.g_r=function(g,_){return g[0]=_[0],g[1]=_[1],g[2]=_[2],g[3]=_[3],g[4]=_[4],g[5]=_[5],g},_.identity=function(g){return g[0]=1,g[1]=0,g[2]=0,g[3]=1,g[4]=0,g[5]=0,g},_.g_s=function(g,_,e,a,t,n){var i=new h.g_l(6);return i[0]=g,i[1]=_,i[2]=e,i[3]=a,i[4]=t,i[5]=n,i},_.set=function(g,_,e,a,t,n,i){return g[0]=_,g[1]=e,g[2]=a,g[3]=t,g[4]=n,g[5]=i,g},_.g_u=function(g,_){var e=_[0],a=_[1],t=_[2],i=_[3],r=_[4],o=_[5],n=e*i-a*t;return n?(n=1/n,g[0]=i*n,g[1]=-a*n,g[2]=-t*n,g[3]=e*n,g[4]=(t*o-i*r)*n,g[5]=(a*r-e*o)*n,g):null},_.g_w=function(g){return g[0]*g[3]-g[1]*g[2]},_.multiply=a,_.rotate=function(g,_,e){var a=_[0],t=_[1],r=_[2],d=_[3],n=_[4],i=_[5],o=C(e),u=z(e);return g[0]=a*u+r*o,g[1]=t*u+d*o,g[2]=a*-o+r*u,g[3]=t*-o+d*u,g[4]=n,g[5]=i,g},_.scale=function(g,_,e){var a=_[0],t=_[1],r=_[2],o=_[3],s=_[4],n=_[5],d=e[0],u=e[1];return g[0]=a*d,g[1]=t*d,g[2]=r*u,g[3]=o*u,g[4]=s,g[5]=n,g},_.translate=function(g,_,e){var a=_[0],t=_[1],r=_[2],o=_[3],s=_[4],n=_[5],d=e[0],u=e[1];return g[0]=a,g[1]=t,g[2]=r,g[3]=o,g[4]=a*d+r*u+s,g[5]=t*d+o*u+n,g},_.g_y=function(g,_){var e=C(_),a=z(_);return g[0]=a,g[1]=e,g[2]=-e,g[3]=a,g[4]=0,g[5]=0,g},_.g_z=function(g,_){return g[0]=_[0],g[1]=0,g[2]=0,g[3]=_[1],g[4]=0,g[5]=0,g},_.g_x=function(g,_){return g[0]=1,g[1]=0,g[2]=0,g[3]=1,g[4]=_[0],g[5]=_[1],g},_.g_E=function(g){return"mat2d("+g[0]+", "+g[1]+", "+g[2]+", "+g[3]+", "+g[4]+", "+g[5]+")"},_.g_F=function(g){return w(t(g[0],2)+t(g[1],2)+t(g[2],2)+t(g[3],2)+t(g[4],2)+t(g[5],2)+1)},_.add=function(g,_,e){return g[0]=_[0]+e[0],g[1]=_[1]+e[1],g[2]=_[2]+e[2],g[3]=_[3]+e[3],g[4]=_[4]+e[4],g[5]=_[5]+e[5],g},_.g_G=n,_.g_H=function(g,_,e){return g[0]=_[0]*e,g[1]=_[1]*e,g[2]=_[2]*e,g[3]=_[3]*e,g[4]=_[4]*e,g[5]=_[5]*e,g},_.g_I=function(g,_,e,a){return g[0]=_[0]+e[0]*a,g[1]=_[1]+e[1]*a,g[2]=_[2]+e[2]*a,g[3]=_[3]+e[3]*a,g[4]=_[4]+e[4]*a,g[5]=_[5]+e[5]*a,g},_.g_J=function(g,_){return g[0]===_[0]&&g[1]===_[1]&&g[2]===_[2]&&g[3]===_[3]&&g[4]===_[4]&&g[5]===_[5]},_.g_n=function(g,_){var e=g[0],a=g[1],t=g[2],i=g[3],r=g[4],o=g[5],n=_[0],d=_[1],u=_[2],s=_[3],l=_[4],f=_[5];return B(e-n)<=h.EPSILON*j(1,B(e),B(n))&&B(a-d)<=h.EPSILON*j(1,B(a),B(d))&&B(t-u)<=h.EPSILON*j(1,B(t),B(u))&&B(i-s)<=h.EPSILON*j(1,B(i),B(s))&&B(r-l)<=h.EPSILON*j(1,B(r),B(l))&&B(o-f)<=h.EPSILON*j(1,B(o),B(f))};var i=e(0),h=function(g){if(g&&g.g_h)return g;var _={};if(null!=g)for(var e in g)Object.prototype.hasOwnProperty.call(g,e)&&(_[e]=g[e]);return _.default=g,_}(i),r=_.g_p=a,d=_.sub=n},function(g,_,e){"use strict";function a(g,_,e){var a=_[0],t=_[1],r=_[2],o=_[3],s=_[4],n=_[5],d=_[6],u=_[7],i=_[8],l=_[9],c=_[10],f=_[11],h=_[12],p=_[13],M=_[14],m=_[15],N=e[0],b=e[1],v=e[2],T=e[3];return g[0]=N*a+b*s+v*i+T*h,g[1]=N*t+b*n+v*l+T*p,g[2]=N*r+b*d+v*c+T*M,g[3]=N*o+b*u+v*f+T*m,N=e[4],b=e[5],v=e[6],T=e[7],g[4]=N*a+b*s+v*i+T*h,g[5]=N*t+b*n+v*l+T*p,g[6]=N*r+b*d+v*c+T*M,g[7]=N*o+b*u+v*f+T*m,N=e[8],b=e[9],v=e[10],T=e[11],g[8]=N*a+b*s+v*i+T*h,g[9]=N*t+b*n+v*l+T*p,g[10]=N*r+b*d+v*c+T*M,g[11]=N*o+b*u+v*f+T*m,N=e[12],b=e[13],v=e[14],T=e[15],g[12]=N*a+b*s+v*i+T*h,g[13]=N*t+b*n+v*l+T*p,g[14]=N*r+b*d+v*c+T*M,g[15]=N*o+b*u+v*f+T*m,g}function n(g,_,e){return g[0]=_[0]-e[0],g[1]=_[1]-e[1],g[2]=_[2]-e[2],g[3]=_[3]-e[3],g[4]=_[4]-e[4],g[5]=_[5]-e[5],g[6]=_[6]-e[6],g[7]=_[7]-e[7],g[8]=_[8]-e[8],g[9]=_[9]-e[9],g[10]=_[10]-e[10],g[11]=_[11]-e[11],g[12]=_[12]-e[12],g[13]=_[13]-e[13],g[14]=_[14]-e[14],g[15]=_[15]-e[15],g}var c=Math.tan;Object.defineProperty(_,"__esModule",{value:!0}),_.sub=_.g_p=void 0,_.create=function(){var g=new G.g_l(16);return g[0]=1,g[1]=0,g[2]=0,g[3]=0,g[4]=0,g[5]=1,g[6]=0,g[7]=0,g[8]=0,g[9]=0,g[10]=1,g[11]=0,g[12]=0,g[13]=0,g[14]=0,g[15]=1,g},_.clone=function(g){var _=new G.g_l(16);return _[0]=g[0],_[1]=g[1],_[2]=g[2],_[3]=g[3],_[4]=g[4],_[5]=g[5],_[6]=g[6],_[7]=g[7],_[8]=g[8],_[9]=g[9],_[10]=g[10],_[11]=g[11],_[12]=g[12],_[13]=g[13],_[14]=g[14],_[15]=g[15],_},_.g_r=function(g,_){return g[0]=_[0],g[1]=_[1],g[2]=_[2],g[3]=_[3],g[4]=_[4],g[5]=_[5],g[6]=_[6],g[7]=_[7],g[8]=_[8],g[9]=_[9],g[10]=_[10],g[11]=_[11],g[12]=_[12],g[13]=_[13],g[14]=_[14],g[15]=_[15],g},_.g_s=function(g,_,e,a,t,r,o,s,n,d,u,i,l,c,f,p){var h=new G.g_l(16);return h[0]=g,h[1]=_,h[2]=e,h[3]=a,h[4]=t,h[5]=r,h[6]=o,h[7]=s,h[8]=n,h[9]=d,h[10]=u,h[11]=i,h[12]=l,h[13]=c,h[14]=f,h[15]=p,h},_.set=function(g,_,e,a,t,r,o,s,n,d,u,i,l,c,f,h,p){return g[0]=_,g[1]=e,g[2]=a,g[3]=t,g[4]=r,g[5]=o,g[6]=s,g[7]=n,g[8]=d,g[9]=u,g[10]=i,g[11]=l,g[12]=c,g[13]=f,g[14]=h,g[15]=p,g},_.identity=function(g){return g[0]=1,g[1]=0,g[2]=0,g[3]=0,g[4]=0,g[5]=1,g[6]=0,g[7]=0,g[8]=0,g[9]=0,g[10]=1,g[11]=0,g[12]=0,g[13]=0,g[14]=0,g[15]=1,g},_.g_t=function(g,_){if(g===_){var e=_[1],a=_[2],t=_[3],i=_[6],r=_[7],d=_[11];g[1]=_[4],g[2]=_[8],g[3]=_[12],g[4]=e,g[6]=_[9],g[7]=_[13],g[8]=a,g[9]=i,g[11]=_[14],g[12]=t,g[13]=r,g[14]=d}else g[0]=_[0],g[1]=_[4],g[2]=_[8],g[3]=_[12],g[4]=_[1],g[5]=_[5],g[6]=_[9],g[7]=_[13],g[8]=_[2],g[9]=_[6],g[10]=_[10],g[11]=_[14],g[12]=_[3],g[13]=_[7],g[14]=_[11],g[15]=_[15];return g},_.g_u=function(h,e){var t=e[0],a=e[1],r=e[2],o=e[3],l=e[4],s=e[5],n=e[6],d=e[7],u=e[8],i=e[9],c=e[10],m=e[11],f=e[12],b=e[13],p=e[14],T=e[15],w=t*s-a*l,z=t*n-r*l,D=t*d-o*l,O=a*n-r*s,L=a*d-o*s,y=r*d-o*n,_=u*b-i*f,N=u*p-c*f,E=u*T-m*f,C=i*p-c*b,A=i*T-m*b,g=c*T-m*p,M=w*g-z*A+D*C+O*E-L*N+y*_;return M?(M=1/M,h[0]=(s*g-n*A+d*C)*M,h[1]=(r*A-a*g-o*C)*M,h[2]=(b*y-p*L+T*O)*M,h[3]=(c*L-i*y-m*O)*M,h[4]=(n*E-l*g-d*N)*M,h[5]=(t*g-r*E+o*N)*M,h[6]=(p*D-f*y-T*z)*M,h[7]=(u*y-c*D+m*z)*M,h[8]=(l*A-s*E+d*_)*M,h[9]=(a*E-t*A-o*_)*M,h[10]=(f*L-b*D+T*w)*M,h[11]=(i*D-u*L-m*w)*M,h[12]=(s*N-l*C-n*_)*M,h[13]=(t*C-a*N+r*_)*M,h[14]=(b*z-f*O-p*w)*M,h[15]=(u*O-i*z+c*w)*M,h):null},_.g_v=function(g,_){var e=_[0],a=_[1],t=_[2],r=_[3],o=_[4],s=_[5],n=_[6],d=_[7],u=_[8],i=_[9],l=_[10],c=_[11],f=_[12],h=_[13],p=_[14],M=_[15];return g[0]=s*(l*M-c*p)-i*(n*M-d*p)+h*(n*c-d*l),g[1]=-(a*(l*M-c*p)-i*(t*M-r*p)+h*(t*c-r*l)),g[2]=a*(n*M-d*p)-s*(t*M-r*p)+h*(t*d-r*n),g[3]=-(a*(n*c-d*l)-s*(t*c-r*l)+i*(t*d-r*n)),g[4]=-(o*(l*M-c*p)-u*(n*M-d*p)+f*(n*c-d*l)),g[5]=e*(l*M-c*p)-u*(t*M-r*p)+f*(t*c-r*l),g[6]=-(e*(n*M-d*p)-o*(t*M-r*p)+f*(t*d-r*n)),g[7]=e*(n*c-d*l)-o*(t*c-r*l)+u*(t*d-r*n),g[8]=o*(i*M-c*h)-u*(s*M-d*h)+f*(s*c-d*i),g[9]=-(e*(i*M-c*h)-u*(a*M-r*h)+f*(a*c-r*i)),g[10]=e*(s*M-d*h)-o*(a*M-r*h)+f*(a*d-r*s),g[11]=-(e*(s*c-d*i)-o*(a*c-r*i)+u*(a*d-r*s)),g[12]=-(o*(i*p-l*h)-u*(s*p-n*h)+f*(s*l-n*i)),g[13]=e*(i*p-l*h)-u*(a*p-t*h)+f*(a*l-t*i),g[14]=-(e*(s*p-n*h)-o*(a*p-t*h)+f*(a*n-t*s)),g[15]=e*(s*l-n*i)-o*(a*l-t*i)+u*(a*n-t*s),g},_.g_w=function(g){var _=g[0],e=g[1],a=g[2],t=g[3],r=g[4],o=g[5],s=g[6],n=g[7],d=g[8],u=g[9],i=g[10],l=g[11],c=g[12],f=g[13],h=g[14],p=g[15];return(_*o-e*r)*(i*p-l*h)-(_*s-a*r)*(u*p-l*f)+(_*n-t*r)*(u*h-i*f)+(e*s-a*o)*(d*p-l*c)-(e*n-t*o)*(d*h-i*c)+(a*n-t*s)*(d*f-u*c)},_.multiply=a,_.translate=function(g,_,e){var a=e[0],t=e[1],r=e[2],o,l,h,M,N,b,v,T,L,w,z,D;return _===g?(g[12]=_[0]*a+_[4]*t+_[8]*r+_[12],g[13]=_[1]*a+_[5]*t+_[9]*r+_[13],g[14]=_[2]*a+_[6]*t+_[10]*r+_[14],g[15]=_[3]*a+_[7]*t+_[11]*r+_[15]):(o=_[0],l=_[1],h=_[2],M=_[3],N=_[4],b=_[5],v=_[6],T=_[7],L=_[8],w=_[9],z=_[10],D=_[11],g[0]=o,g[1]=l,g[2]=h,g[3]=M,g[4]=N,g[5]=b,g[6]=v,g[7]=T,g[8]=L,g[9]=w,g[10]=z,g[11]=D,g[12]=o*a+N*t+L*r+_[12],g[13]=l*a+b*t+w*r+_[13],g[14]=h*a+v*t+z*r+_[14],g[15]=M*a+T*t+D*r+_[15]),g},_.scale=function(g,_,e){var a=e[0],t=e[1],n=e[2];return g[0]=_[0]*a,g[1]=_[1]*a,g[2]=_[2]*a,g[3]=_[3]*a,g[4]=_[4]*t,g[5]=_[5]*t,g[6]=_[6]*t,g[7]=_[7]*t,g[8]=_[8]*n,g[9]=_[9]*n,g[10]=_[10]*n,g[11]=_[11]*n,g[12]=_[12],g[13]=_[13],g[14]=_[14],g[15]=_[15],g},_.rotate=function(n,e,r,a){var d=a[0],o=a[1],u=a[2],m=w(d*d+o*o+u*u),j,U,H,V,Q,J,P,X,K,F,Z,W,$,gg,_g,eg,ag,tg,ng,ig,rg,dg,og,ug;return B(m)<G.EPSILON?null:(m=1/m,d*=m,o*=m,u*=m,j=C(r),U=z(r),H=1-U,V=e[0],Q=e[1],J=e[2],P=e[3],X=e[4],K=e[5],F=e[6],Z=e[7],W=e[8],$=e[9],gg=e[10],_g=e[11],eg=d*d*H+U,ag=o*d*H+u*j,tg=u*d*H-o*j,ng=d*o*H-u*j,ig=o*o*H+U,rg=u*o*H+d*j,dg=d*u*H+o*j,og=o*u*H-d*j,ug=u*u*H+U,n[0]=V*eg+X*ag+W*tg,n[1]=Q*eg+K*ag+$*tg,n[2]=J*eg+F*ag+gg*tg,n[3]=P*eg+Z*ag+_g*tg,n[4]=V*ng+X*ig+W*rg,n[5]=Q*ng+K*ig+$*rg,n[6]=J*ng+F*ig+gg*rg,n[7]=P*ng+Z*ig+_g*rg,n[8]=V*dg+X*og+W*ug,n[9]=Q*dg+K*og+$*ug,n[10]=J*dg+F*og+gg*ug,n[11]=P*dg+Z*og+_g*ug,e!==n&&(n[12]=e[12],n[13]=e[13],n[14]=e[14],n[15]=e[15]),n)},_.g_ab=function(g,_,e){var a=C(e),t=z(e),r=_[4],d=_[5],o=_[6],n=_[7],i=_[8],u=_[9],s=_[10],l=_[11];return _!==g&&(g[0]=_[0],g[1]=_[1],g[2]=_[2],g[3]=_[3],g[12]=_[12],g[13]=_[13],g[14]=_[14],g[15]=_[15]),g[4]=r*t+i*a,g[5]=d*t+u*a,g[6]=o*t+s*a,g[7]=n*t+l*a,g[8]=i*t-r*a,g[9]=u*t-d*a,g[10]=s*t-o*a,g[11]=l*t-n*a,g},_.g_ac=function(g,_,e){var a=C(e),t=z(e),r=_[0],d=_[1],o=_[2],n=_[3],i=_[8],u=_[9],s=_[10],l=_[11];return _!==g&&(g[4]=_[4],g[5]=_[5],g[6]=_[6],g[7]=_[7],g[12]=_[12],g[13]=_[13],g[14]=_[14],g[15]=_[15]),g[0]=r*t-i*a,g[1]=d*t-u*a,g[2]=o*t-s*a,g[3]=n*t-l*a,g[8]=r*a+i*t,g[9]=d*a+u*t,g[10]=o*a+s*t,g[11]=n*a+l*t,g},_.g_ad=function(g,_,e){var a=C(e),t=z(e),r=_[0],d=_[1],o=_[2],n=_[3],i=_[4],u=_[5],s=_[6],l=_[7];return _!==g&&(g[8]=_[8],g[9]=_[9],g[10]=_[10],g[11]=_[11],g[12]=_[12],g[13]=_[13],g[14]=_[14],g[15]=_[15]),g[0]=r*t+i*a,g[1]=d*t+u*a,g[2]=o*t+s*a,g[3]=n*t+l*a,g[4]=i*t-r*a,g[5]=u*t-d*a,g[6]=s*t-o*a,g[7]=l*t-n*a,g},_.g_x=function(g,_){return g[0]=1,g[1]=0,g[2]=0,g[3]=0,g[4]=0,g[5]=1,g[6]=0,g[7]=0,g[8]=0,g[9]=0,g[10]=1,g[11]=0,g[12]=_[0],g[13]=_[1],g[14]=_[2],g[15]=1,g},_.g_z=function(g,_){return g[0]=_[0],g[1]=0,g[2]=0,g[3]=0,g[4]=0,g[5]=_[1],g[6]=0,g[7]=0,g[8]=0,g[9]=0,g[10]=_[2],g[11]=0,g[12]=0,g[13]=0,g[14]=0,g[15]=1,g},_.g_y=function(g,_,e){var a=e[0],t=e[1],n=e[2],r=w(a*a+t*t+n*n),d,u,h;return B(r)<G.EPSILON?null:(r=1/r,a*=r,t*=r,n*=r,d=C(_),u=z(_),h=1-u,g[0]=a*a*h+u,g[1]=t*a*h+n*d,g[2]=n*a*h-t*d,g[3]=0,g[4]=a*t*h-n*d,g[5]=t*t*h+u,g[6]=n*t*h+a*d,g[7]=0,g[8]=a*n*h+t*d,g[9]=t*n*h-a*d,g[10]=n*n*h+u,g[11]=0,g[12]=0,g[13]=0,g[14]=0,g[15]=1,g)},_.g_af=function(g,_){var e=C(_),a=z(_);return g[0]=1,g[1]=0,g[2]=0,g[3]=0,g[4]=0,g[5]=a,g[6]=e,g[7]=0,g[8]=0,g[9]=-e,g[10]=a,g[11]=0,g[12]=0,g[13]=0,g[14]=0,g[15]=1,g},_.g_ag=function(g,_){var e=C(_),a=z(_);return g[0]=a,g[1]=0,g[2]=-e,g[3]=0,g[4]=0,g[5]=1,g[6]=0,g[7]=0,g[8]=e,g[9]=0,g[10]=a,g[11]=0,g[12]=0,g[13]=0,g[14]=0,g[15]=1,g},_.g_ah=function(g,_){var e=C(_),a=z(_);return g[0]=a,g[1]=e,g[2]=0,g[3]=0,g[4]=-e,g[5]=a,g[6]=0,g[7]=0,g[8]=0,g[9]=0,g[10]=1,g[11]=0,g[12]=0,g[13]=0,g[14]=0,g[15]=1,g},_.g_ai=function(g,_,e){var a=_[0],t=_[1],r=_[2],o=_[3],s=a+a,n=t+t,d=r+r,u=a*s,i=a*n,l=a*d,c=t*n,f=t*d,h=r*d,p=o*s,M=o*n,m=o*d;return g[0]=1-(c+h),g[1]=i+m,g[2]=l-M,g[3]=0,g[4]=i-m,g[5]=1-(u+h),g[6]=f+p,g[7]=0,g[8]=l+M,g[9]=f-p,g[10]=1-(u+c),g[11]=0,g[12]=e[0],g[13]=e[1],g[14]=e[2],g[15]=1,g},_.g_aj=function(g,_){return g[0]=_[12],g[1]=_[13],g[2]=_[14],g},_.g_ak=function(g,_){var e=_[0],a=_[1],t=_[2],n=_[4],r=_[5],o=_[6],d=_[8],u=_[9],i=_[10];return g[0]=w(e*e+a*a+t*t),g[1]=w(n*n+r*r+o*o),g[2]=w(d*d+u*u+i*i),g},_.g_al=function(g,_){var e=_[0]+_[5]+_[10],a=0;return 0<e?(a=2*w(e+1),g[3]=.25*a,g[0]=(_[6]-_[9])/a,g[1]=(_[8]-_[2])/a,g[2]=(_[1]-_[4])/a):_[0]>_[5]&_[0]>_[10]?(a=2*w(1+_[0]-_[5]-_[10]),g[3]=(_[6]-_[9])/a,g[0]=.25*a,g[1]=(_[1]+_[4])/a,g[2]=(_[8]+_[2])/a):_[5]>_[10]?(a=2*w(1+_[5]-_[0]-_[10]),g[3]=(_[8]-_[2])/a,g[0]=(_[1]+_[4])/a,g[1]=.25*a,g[2]=(_[6]+_[9])/a):(a=2*w(1+_[10]-_[0]-_[5]),g[3]=(_[1]-_[4])/a,g[0]=(_[8]+_[2])/a,g[1]=(_[6]+_[9])/a,g[2]=.25*a),g},_.g_am=function(g,_,e,a){var t=_[0],r=_[1],o=_[2],s=_[3],n=t+t,d=r+r,u=o+o,i=t*n,l=t*d,c=t*u,f=r*d,h=r*u,p=o*u,M=s*n,m=s*d,N=s*u,b=a[0],v=a[1],T=a[2];return g[0]=(1-(f+p))*b,g[1]=(l+N)*b,g[2]=(c-m)*b,g[3]=0,g[4]=(l-N)*v,g[5]=(1-(i+p))*v,g[6]=(h+M)*v,g[7]=0,g[8]=(c+m)*T,g[9]=(h-M)*T,g[10]=(1-(i+f))*T,g[11]=0,g[12]=e[0],g[13]=e[1],g[14]=e[2],g[15]=1,g},_.g_an=function(g,e,t,a,r){var l=e[0],o=e[1],s=e[2],n=e[3],d=l+l,u=o+o,i=s+s,c=l*d,h=l*u,f=l*i,M=o*u,p=o*i,m=s*i,b=n*d,v=n*u,T=n*i,w=a[0],L=a[1],z=a[2],_=r[0],N=r[1],D=r[2];return g[0]=(1-(M+m))*w,g[1]=(h+T)*w,g[2]=(f-v)*w,g[3]=0,g[4]=(h-T)*L,g[5]=(1-(c+m))*L,g[6]=(p+b)*L,g[7]=0,g[8]=(f+v)*z,g[9]=(p-b)*z,g[10]=(1-(c+M))*z,g[11]=0,g[12]=t[0]+_-(g[0]*_+g[4]*N+g[8]*D),g[13]=t[1]+N-(g[1]*_+g[5]*N+g[9]*D),g[14]=t[2]+D-(g[2]*_+g[6]*N+g[10]*D),g[15]=1,g},_.g_B=function(g,_){var e=_[0],a=_[1],t=_[2],r=_[3],o=e+e,s=a+a,n=t+t,d=e*o,u=a*o,i=a*s,l=t*o,c=t*s,f=t*n,h=r*o,p=r*s,M=r*n;return g[0]=1-i-f,g[1]=u+M,g[2]=l-p,g[3]=0,g[4]=u-M,g[5]=1-d-f,g[6]=c+h,g[7]=0,g[8]=l+p,g[9]=c-h,g[10]=1-d-i,g[11]=0,g[12]=0,g[13]=0,g[14]=0,g[15]=1,g},_.g_ao=function(g,_,e,a,t,i,r){var o=1/(e-_),n=1/(t-a),d=1/(i-r);return g[0]=2*i*o,g[1]=0,g[2]=0,g[3]=0,g[4]=0,g[5]=2*i*n,g[6]=0,g[7]=0,g[8]=(e+_)*o,g[9]=(t+a)*n,g[10]=(r+i)*d,g[11]=-1,g[12]=0,g[13]=0,g[14]=2*(r*i)*d,g[15]=0,g},_.perspective=function(g,_,e,a,t){var i=1/c(_/2),r=1/(a-t);return g[0]=i/e,g[1]=0,g[2]=0,g[3]=0,g[4]=0,g[5]=i,g[6]=0,g[7]=0,g[8]=0,g[9]=0,g[10]=(t+a)*r,g[11]=-1,g[12]=0,g[13]=0,g[14]=2*t*a*r,g[15]=0,g},_.g_ap=function(g,_,e,a){var t=c(_.g_aq*p/180),r=c(_.g_ar*p/180),o=c(_.g_as*p/180),n=c(_.g_at*p/180),d=2/(o+n),u=2/(t+r);return g[0]=d,g[1]=0,g[2]=0,g[3]=0,g[4]=0,g[5]=u,g[6]=0,g[7]=0,g[8]=-(.5*((o-n)*d)),g[9]=.5*((t-r)*u),g[10]=a/(e-a),g[11]=-1,g[12]=0,g[13]=0,g[14]=a*e/(e-a),g[15]=0,g},_.g_au=function(g,_,e,a,t,i,r){var o=1/(_-e),n=1/(a-t),d=1/(i-r);return g[0]=-2*o,g[1]=0,g[2]=0,g[3]=0,g[4]=0,g[5]=-2*n,g[6]=0,g[7]=0,g[8]=0,g[9]=0,g[10]=2*d,g[11]=0,g[12]=(_+e)*o,g[13]=(t+a)*n,g[14]=(r+i)*d,g[15]=1,g},_.g_av=function(g,e,t,a){var n=e[0],r=e[1],h=e[2],M=a[0],m=a[1],b=a[2],v=t[0],_=t[1],N=t[2],T,L,z,D,O,y,C,A,x,j;return B(n-v)<G.EPSILON&&B(r-_)<G.EPSILON&&B(h-N)<G.EPSILON?mat4.identity(g):(C=n-v,A=r-_,x=h-N,j=1/w(C*C+A*A+x*x),C*=j,A*=j,x*=j,T=m*x-b*A,L=b*C-M*x,z=M*A-m*C,j=w(T*T+L*L+z*z),j?(j=1/j,T*=j,L*=j,z*=j):(T=0,L=0,z=0),D=A*z-x*L,O=x*T-C*z,y=C*L-A*T,j=w(D*D+O*O+y*y),j?(j=1/j,D*=j,O*=j,y*=j):(D=0,O=0,y=0),g[0]=T,g[1]=D,g[2]=C,g[3]=0,g[4]=L,g[5]=O,g[6]=A,g[7]=0,g[8]=z,g[9]=y,g[10]=x,g[11]=0,g[12]=-(T*n+L*r+z*h),g[13]=-(D*n+O*r+y*h),g[14]=-(C*n+A*r+x*h),g[15]=1,g)},_.g_aw=function(g,_,e,a){var t=_[0],n=_[1],r=_[2],o=a[0],d=a[1],u=a[2],i=t-e[0],s=n-e[1],l=r-e[2],h=i*i+s*s+l*l;0<h&&(h=1/w(h),i*=h,s*=h,l*=h);var M=d*l-u*s,p=u*i-o*l,N=o*s-d*i;return g[0]=M,g[1]=p,g[2]=N,g[3]=0,g[4]=s*N-l*p,g[5]=l*M-i*N,g[6]=i*p-s*M,g[7]=0,g[8]=i,g[9]=s,g[10]=l,g[11]=0,g[12]=t,g[13]=n,g[14]=r,g[15]=1,g},_.g_E=function(g){return"mat4("+g[0]+", "+g[1]+", "+g[2]+", "+g[3]+", "+g[4]+", "+g[5]+", "+g[6]+", "+g[7]+", "+g[8]+", "+g[9]+", "+g[10]+", "+g[11]+", "+g[12]+", "+g[13]+", "+g[14]+", "+g[15]+")"},_.g_F=function(g){return w(t(g[0],2)+t(g[1],2)+t(g[2],2)+t(g[3],2)+t(g[4],2)+t(g[5],2)+t(g[6],2)+t(g[7],2)+t(g[8],2)+t(g[9],2)+t(g[10],2)+t(g[11],2)+t(g[12],2)+t(g[13],2)+t(g[14],2)+t(g[15],2))},_.add=function(g,_,e){return g[0]=_[0]+e[0],g[1]=_[1]+e[1],g[2]=_[2]+e[2],g[3]=_[3]+e[3],g[4]=_[4]+e[4],g[5]=_[5]+e[5],g[6]=_[6]+e[6],g[7]=_[7]+e[7],g[8]=_[8]+e[8],g[9]=_[9]+e[9],g[10]=_[10]+e[10],g[11]=_[11]+e[11],g[12]=_[12]+e[12],g[13]=_[13]+e[13],g[14]=_[14]+e[14],g[15]=_[15]+e[15],g},_.g_G=n,_.g_H=function(g,_,e){return g[0]=_[0]*e,g[1]=_[1]*e,g[2]=_[2]*e,g[3]=_[3]*e,g[4]=_[4]*e,g[5]=_[5]*e,g[6]=_[6]*e,g[7]=_[7]*e,g[8]=_[8]*e,g[9]=_[9]*e,g[10]=_[10]*e,g[11]=_[11]*e,g[12]=_[12]*e,g[13]=_[13]*e,g[14]=_[14]*e,g[15]=_[15]*e,g},_.g_I=function(g,_,e,a){return g[0]=_[0]+e[0]*a,g[1]=_[1]+e[1]*a,g[2]=_[2]+e[2]*a,g[3]=_[3]+e[3]*a,g[4]=_[4]+e[4]*a,g[5]=_[5]+e[5]*a,g[6]=_[6]+e[6]*a,g[7]=_[7]+e[7]*a,g[8]=_[8]+e[8]*a,g[9]=_[9]+e[9]*a,g[10]=_[10]+e[10]*a,g[11]=_[11]+e[11]*a,g[12]=_[12]+e[12]*a,g[13]=_[13]+e[13]*a,g[14]=_[14]+e[14]*a,g[15]=_[15]+e[15]*a,g},_.g_J=function(g,_){return g[0]===_[0]&&g[1]===_[1]&&g[2]===_[2]&&g[3]===_[3]&&g[4]===_[4]&&g[5]===_[5]&&g[6]===_[6]&&g[7]===_[7]&&g[8]===_[8]&&g[9]===_[9]&&g[10]===_[10]&&g[11]===_[11]&&g[12]===_[12]&&g[13]===_[13]&&g[14]===_[14]&&g[15]===_[15]},_.g_n=function(i,e){var t=i[0],a=i[1],r=i[2],o=i[3],l=i[4],s=i[5],n=i[6],d=i[7],u=i[8],c=i[9],f=i[10],p=i[11],m=i[12],w=i[13],z=i[14],O=i[15],y=e[0],L=e[1],E=e[2],_=e[3],N=e[4],C=e[5],A=e[6],R=e[7],g=e[8],M=e[9],v=e[10],h=e[11],T=e[12],b=e[13],x=e[14],D=e[15];return B(t-y)<=G.EPSILON*j(1,B(t),B(y))&&B(a-L)<=G.EPSILON*j(1,B(a),B(L))&&B(r-E)<=G.EPSILON*j(1,B(r),B(E))&&B(o-_)<=G.EPSILON*j(1,B(o),B(_))&&B(l-N)<=G.EPSILON*j(1,B(l),B(N))&&B(s-C)<=G.EPSILON*j(1,B(s),B(C))&&B(n-A)<=G.EPSILON*j(1,B(n),B(A))&&B(d-R)<=G.EPSILON*j(1,B(d),B(R))&&B(u-g)<=G.EPSILON*j(1,B(u),B(g))&&B(c-M)<=G.EPSILON*j(1,B(c),B(M))&&B(f-v)<=G.EPSILON*j(1,B(f),B(v))&&B(p-h)<=G.EPSILON*j(1,B(p),B(h))&&B(m-T)<=G.EPSILON*j(1,B(m),B(T))&&B(w-b)<=G.EPSILON*j(1,B(w),B(b))&&B(z-x)<=G.EPSILON*j(1,B(z),B(x))&&B(O-D)<=G.EPSILON*j(1,B(O),B(D))};var i=e(0),G=function(g){if(g&&g.g_h)return g;var _={};if(null!=g)for(var e in g)Object.prototype.hasOwnProperty.call(g,e)&&(_[e]=g[e]);return _.default=g,_}(i),r=_.g_p=a,d=_.sub=n},function(e,t,a){"use strict";function n(g){if(g&&g.g_h)return g;var _={};if(null!=g)for(var e in g)Object.prototype.hasOwnProperty.call(g,e)&&(_[e]=g[e]);return _.default=g,_}function d(){var g=new l.g_l(4);return g[0]=0,g[1]=0,g[2]=0,g[3]=1,g}function u(g,_,e){e*=.5;var t=C(e);return g[0]=t*_[0],g[1]=t*_[1],g[2]=t*_[2],g[3]=z(e),g}function r(g,_,e){var a=_[0],t=_[1],r=_[2],o=_[3],s=e[0],n=e[1],d=e[2],u=e[3];return g[0]=a*u+o*s+t*d-r*n,g[1]=t*u+o*n+r*s-a*d,g[2]=r*u+o*d+a*n-t*s,g[3]=o*u-a*s-t*n-r*d,g}function i(_,e,r,a){var o=e[0],t=e[1],u=e[2],n=e[3],d=r[0],s=r[1],l=r[2],h=r[3],M,N,b,v,T;return N=o*d+t*s+u*l+n*h,0>N&&(N=-N,d=-d,s=-s,l=-l,h=-h),1e-6<1-N?(M=g(N),b=C(M),v=C((1-a)*M)/b,T=C(a*M)/b):(v=1-a,T=a),_[0]=v*o+T*d,_[1]=v*t+T*s,_[2]=v*u+T*l,_[3]=v*n+T*h,_}function s(g,_){var e=_[0]+_[4]+_[8],a;if(0<e)a=w(e+1),g[3]=.5*a,a=.5/a,g[0]=(_[5]-_[7])*a,g[1]=(_[6]-_[2])*a,g[2]=(_[1]-_[3])*a;else{var t=0;_[4]>_[0]&&(t=1),_[8]>_[3*t+t]&&(t=2);var n=(t+1)%3,i=(t+2)%3;a=w(_[3*t+t]-_[3*n+n]-_[3*i+i]+1),g[t]=.5*a,a=.5/a,g[3]=(_[3*n+i]-_[3*i+n])*a,g[n]=(_[3*n+t]+_[3*t+n])*a,g[i]=(_[3*i+t]+_[3*t+i])*a}return g}Object.defineProperty(t,"__esModule",{value:!0}),t.g_ax=t.g_ay=t.g_az=t.g_n=t.g_J=t.normalize=t.g_K=t.g_T=t.g_L=t.length=t.g_X=t.g_V=t.scale=t.g_p=t.add=t.set=t.g_r=t.g_s=t.clone=void 0,t.create=d,t.identity=function(g){return g[0]=0,g[1]=0,g[2]=0,g[3]=1,g},t.g_aA=u,t.g_aB=function(_,e){var a=2*g(e[3]),t=C(a/2);return 0==t?(_[0]=1,_[1]=0,_[2]=0):(_[0]=e[0]/t,_[1]=e[1]/t,_[2]=e[2]/t),a},t.multiply=r,t.g_ab=function(g,_,e){e*=.5;var t=_[0],r=_[1],d=_[2],o=_[3],u=C(e),n=z(e);return g[0]=t*n+o*u,g[1]=r*n+d*u,g[2]=d*n-r*u,g[3]=o*n-t*u,g},t.g_ac=function(g,_,e){e*=.5;var t=_[0],r=_[1],d=_[2],o=_[3],u=C(e),n=z(e);return g[0]=t*n-d*u,g[1]=r*n+o*u,g[2]=d*n+t*u,g[3]=o*n-r*u,g},t.g_ad=function(g,_,e){e*=.5;var t=_[0],r=_[1],d=_[2],o=_[3],u=C(e),n=z(e);return g[0]=t*n+r*u,g[1]=r*n-t*u,g[2]=d*n+o*u,g[3]=o*n-d*u,g},t.g_aC=function(g,_){var e=_[0],a=_[1],t=_[2];return g[0]=e,g[1]=a,g[2]=t,g[3]=w(B(1-e*e-a*a-t*t)),g},t.g_aD=i,t.g_u=function(g,_){var e=_[0],a=_[1],t=_[2],i=_[3],r=e*e+a*a+t*t+i*i,d=r?1/r:0;return g[0]=-e*d,g[1]=-a*d,g[2]=-t*d,g[3]=i*d,g},t.g_aE=function(g,_){return g[0]=-_[0],g[1]=-_[1],g[2]=-_[2],g[3]=_[3],g},t.g_aF=s,t.g_aG=function(g,_,e,d){var u=.5*p/180;_*=u,e*=u,d*=u;var o=C(_),l=z(_),s=C(e),n=z(e),i=C(d),c=z(d);return g[0]=o*n*c-l*s*i,g[1]=l*s*c+o*n*i,g[2]=l*n*i-o*s*c,g[3]=l*n*c+o*s*i,g},t.g_E=function(g){return"quat("+g[0]+", "+g[1]+", "+g[2]+", "+g[3]+")"};var o=a(0),l=n(o),f=a(1),c=n(f),m=a(2),O=n(m),y=a(3),L=n(y),E=t.clone=L.clone,_=t.g_s=L.g_s,N=t.g_r=L.g_r,A=t.set=L.set,G=t.add=L.add,R=t.g_p=r,S=t.scale=L.scale,M=t.g_V=L.g_V,v=t.g_X=L.g_X,h=t.length=L.length,T=t.g_L=h,b=t.g_T=L.g_T,x=t.g_K=b,D=t.normalize=L.normalize,k=t.g_J=L.g_J,U=t.g_n=L.g_n,I=t.g_az=function(){var g=O.create(),_=O.g_s(1,0,0),e=O.g_s(0,1,0);return function(t,i,r){var a=O.g_V(i,r);return-.999999>a?(O.g_W(g,_,i),1e-6>O.g_L(g)&&O.g_W(g,e,i),O.normalize(g,g),u(t,g,Math.PI),t):.999999<a?(t[0]=0,t[1]=0,t[2]=0,t[3]=1,t):(O.g_W(g,i,r),t[0]=g[0],t[1]=g[1],t[2]=g[2],t[3]=1+a,D(t,t))}}(),j=t.g_ay=function(){var g=d(),_=d();return function(e,t,r,a,o,n){return i(g,t,o,n),i(_,r,a,n),i(e,g,_,2*n*(1-n)),e}}(),H=t.g_ax=function(){var g=c.create();return function(_,e,a,t){return g[0]=a[0],g[3]=a[1],g[6]=a[2],g[1]=t[0],g[4]=t[1],g[7]=t[2],g[2]=-e[0],g[5]=-e[1],g[8]=-e[2],D(_,s(_,g))}}()},function(t,e,n){"use strict";function i(){var g=new b.g_l(2);return g[0]=0,g[1]=0,g}function d(g,_,e){return g[0]=_[0]-e[0],g[1]=_[1]-e[1],g}function o(g,_,e){return g[0]=_[0]*e[0],g[1]=_[1]*e[1],g}function u(g,_,e){return g[0]=_[0]/e[0],g[1]=_[1]/e[1],g}function s(g,_){var e=_[0]-g[0],a=_[1]-g[1];return w(e*e+a*a)}function l(g,_){var e=_[0]-g[0],a=_[1]-g[1];return e*e+a*a}function c(g){var _=g[0],e=g[1];return w(_*_+e*e)}function h(g){var _=g[0],e=g[1];return _*_+e*e}Object.defineProperty(e,"__esModule",{value:!0}),e.forEach=e.g_K=e.g_M=e.g_N=e.g_O=e.g_p=e.sub=e.g_L=void 0,e.create=i,e.clone=function(g){var _=new b.g_l(2);return _[0]=g[0],_[1]=g[1],_},e.g_s=function(g,_){var e=new b.g_l(2);return e[0]=g,e[1]=_,e},e.g_r=function(g,_){return g[0]=_[0],g[1]=_[1],g},e.set=function(g,_,e){return g[0]=_,g[1]=e,g},e.add=function(g,_,e){return g[0]=_[0]+e[0],g[1]=_[1]+e[1],g},e.g_G=d,e.multiply=o,e.g_P=u,e.ceil=function(g,_){return g[0]=r(_[0]),g[1]=r(_[1]),g},e.floor=function(g,_){return g[0]=a(_[0]),g[1]=a(_[1]),g},e.min=function(g,_,e){return g[0]=f(_[0],e[0]),g[1]=f(_[1],e[1]),g},e.max=function(g,_,e){return g[0]=j(_[0],e[0]),g[1]=j(_[1],e[1]),g},e.round=function(g,e){return g[0]=_(e[0]),g[1]=_(e[1]),g},e.scale=function(g,_,e){return g[0]=_[0]*e,g[1]=_[1]*e,g},e.g_Q=function(g,_,e,a){return g[0]=_[0]+e[0]*a,g[1]=_[1]+e[1]*a,g},e.g_R=s,e.g_S=l,e.length=c,e.g_T=h,e.g_U=function(g,_){return g[0]=-_[0],g[1]=-_[1],g},e.inverse=function(g,_){return g[0]=1/_[0],g[1]=1/_[1],g},e.normalize=function(g,_){var e=_[0],a=_[1],t=e*e+a*a;return 0<t&&(t=1/w(t),g[0]=_[0]*t,g[1]=_[1]*t),g},e.g_V=function(g,_){return g[0]*_[0]+g[1]*_[1]},e.g_W=function(g,_,e){var a=_[0]*e[1]-_[1]*e[0];return g[0]=g[1]=0,g[2]=a,g},e.g_X=function(g,_,e,a){var n=_[0],t=_[1];return g[0]=n+a*(e[0]-n),g[1]=t+a*(e[1]-t),g},e.random=function(g,_){_=_||1;var e=2*b.g_o()*p;return g[0]=z(e)*_,g[1]=C(e)*_,g},e.g_aH=function(g,_,e){var a=_[0],t=_[1];return g[0]=e[0]*a+e[2]*t,g[1]=e[1]*a+e[3]*t,g},e.g_aI=function(g,_,e){var a=_[0],t=_[1];return g[0]=e[0]*a+e[2]*t+e[4],g[1]=e[1]*a+e[3]*t+e[5],g},e.g_$=function(g,_,e){var a=_[0],t=_[1];return g[0]=e[0]*a+e[3]*t+e[6],g[1]=e[1]*a+e[4]*t+e[7],g},e.g__=function(g,_,e){var a=_[0],t=_[1];return g[0]=e[0]*a+e[4]*t+e[12],g[1]=e[1]*a+e[5]*t+e[13],g},e.g_E=function(g){return"vec2("+g[0]+", "+g[1]+")"},e.g_J=function(g,_){return g[0]===_[0]&&g[1]===_[1]},e.g_n=function(g,_){var e=g[0],a=g[1],t=_[0],n=_[1];return B(e-t)<=b.EPSILON*j(1,B(e),B(t))&&B(a-n)<=b.EPSILON*j(1,B(a),B(n))};var m=n(0),b=function(g){if(g&&g.g_h)return g;var _={};if(null!=g)for(var e in g)Object.prototype.hasOwnProperty.call(g,e)&&(_[e]=g[e]);return _.default=g,_}(m),T=e.g_L=c,L=e.sub=d,N=e.g_p=o,D=e.g_O=u,O=e.g_N=s,y=e.g_M=l,g=e.g_K=h,M=e.forEach=function(){var g=i();return function(_,e,t,r,s,n){var d,l;for(e||(e=2),t||(t=0),l=r?f(r*e+t,_.length):_.length,d=t;d<l;d+=e)g[0]=_[d],g[1]=_[d+1],s(g,g,n),_[d]=g[0],_[d+1]=g[1];return _}}()}])}),"use strict";{function _(_,a,t){t=t||0;var n=[0,0],i,r,o,s,l,p,M;return i=_[1][1]-_[0][1],r=_[0][0]-_[1][0],o=i*_[0][0]+r*_[0][1],s=a[1][1]-a[0][1],l=a[0][0]-a[1][0],p=s*a[0][0]+l*a[0][1],M=i*l-s*r,u(M,0,t)||(n[0]=(l*o-r*p)/M,n[1]=(i*p-s*o)/M),n}function M(_,a,t,n){var r=a[0]-_[0],e=a[1]-_[1],d=n[0]-t[0],g=n[1]-t[1];if(0==d*e-g*r)return!1;var o=(r*(t[1]-_[1])+e*(_[0]-t[0]))/(d*e-g*r),i=(d*(_[1]-t[1])+g*(t[0]-_[0]))/(g*r-d*e);return 0<=o&&1>=o&&0<=i&&1>=i}function N(g,_,e){return(_[0]-g[0])*(e[1]-g[1])-(e[0]-g[0])*(_[1]-g[1])}function T(g,_,e){return 0<N(g,_,e)}function L(g,_,e){return 0<=N(g,_,e)}function e(g,_,e){return 0>N(g,_,e)}function f(g,_,e){return 0>=N(g,_,e)}function g(_,e,a,t){var n=Math.sqrt;if(!t)return 0===N(_,e,a);var r=tmpPoint1,g=tmpPoint2;r[0]=e[0]-_[0],r[1]=e[1]-_[1],g[0]=a[0]-e[0],g[1]=a[1]-e[1];var d=r[0]*g[0]+r[1]*g[1],i=n(r[0]*r[0]+r[1]*r[1]),o=n(g[0]*g[0]+g[1]*g[1]),u=Math.acos(d/(i*o));return u<t}function z(g,_){var e=_[0]-g[0],a=_[1]-g[1];return e*e+a*a}function O(g,_){var e=g.length;return g[0>_?_%e+e:_%e]}function l(g){g.length=0}function a(g,_,a,t){for(var n=a;n<t;n++)g.push(_[n])}function n(g){for(var _=[],e=g.length,a=0;a!==e;a++)_.push(g.pop());for(var a=0;a!==e;a++)g[a]=_[a]}function j(g,_){return e(O(g,_-1),O(g,_),O(g,_+1))}function o(g,t,e){var a=tmpLine1,i=tmpLine2,r,d;if(L(O(g,t+1),O(g,t),O(g,e))&&f(O(g,t-1),O(g,t),O(g,e)))return!1;d=z(O(g,t),O(g,e));for(var o=0;o!==g.length;++o)if((o+1)%g.length!==t&&o!==t&&L(O(g,t),O(g,e),O(g,o+1))&&f(O(g,t),O(g,e),O(g,o))&&(a[0]=O(g,t),a[1]=O(g,e),i[0]=O(g,o),i[1]=O(g,o+1),r=_(a,i),z(O(g,t),r)<d))return!1;return!0}function p(g,_,e){for(var a=0;a!==g.length;++a)if(a!==_&&a!==e&&(a+1)%g.length!==_&&(a+1)%g.length!==e&&M(O(g,_),O(g,e),O(g,a),O(g,a+1)))return!1;return!0}function m(g,_,a,t){var n=t||[];if(l(n),_<a)for(var e=_;e<=a;e++)n.push(g[e]);else{for(var e=0;e<=a;e++)n.push(g[e]);for(var e=_;e<g.length;e++)n.push(g[e])}return n}function r(_){for(var a=[],t=[],n=[],u=[],e=Number.MAX_VALUE,s=0;s<_.length;++s)if(j(_,s))for(var l=0;l<_.length;++l)if(o(_,s,l)){t=r(m(_,s,l,u)),n=r(m(_,l,s,u));for(var p=0;p<n.length;p++)t.push(n[p]);t.length<e&&(a=t,e=t.length,a.push([O(_,s),O(_,l)]))}return a}function s(_,a){if(0===a.length)return[_];if(a instanceof Array&&a.length&&a[0]instanceof Array&&2===a[0].length&&a[0][0]instanceof Array){for(var t=[_],n=0,i;n<a.length;n++){i=a[n];for(var r=0;r<t.length;r++){var d=t[r],g=s(d,i);if(g){t.splice(r,1),t.push(g[0],g[1]);break}}}return t}var i=a,n=_.indexOf(i[0]),r=_.indexOf(i[1]);return-1!==n&&-1!==r&&[m(_,n,r),m(_,r,n)]}function d(_,a,t,n,r){r=r||0;var d=a[1]-_[1],o=_[0]-a[0],g=d*_[0]+o*_[1],s=n[1]-t[1],i=t[0]-n[0],f=s*t[0]+i*t[1],c=d*i-s*o;return u(c,0,r)?[0,0]:[(i*g-o*f)/c,(d*f-s*g)/c]}function t(g,_,n,o,u,l,c){var M=Number.MAX_VALUE;l=l||100,c=c||0,u=u||25,_="undefined"==typeof _?[]:_,n=n||[],o=o||[];var N=[0,0],b=[0,0],x=[0,0],k=0,R=0,S=0,U=0,V=0,Y=0,Q=0,P=[],G=[],H=g,I=g;if(3>I.length)return _;if(c++,c>l)return console.warn("quickDecomp: max level ("+l+") reached."),_;for(var J=0;J<g.length;++J)if(j(H,J)){n.push(H[J]),k=R=M;for(var X=0;X<g.length;++X)T(O(H,J-1),O(H,J),O(H,X))&&f(O(H,J-1),O(H,J),O(H,X-1))&&(x=d(O(H,J-1),O(H,J),O(H,X),O(H,X-1)),e(O(H,J+1),O(H,J),x)&&(S=z(H[J],x),S<R&&(R=S,b=x,Y=X))),T(O(H,J+1),O(H,J),O(H,X+1))&&f(O(H,J+1),O(H,J),O(H,X))&&(x=d(O(H,J+1),O(H,J),O(H,X),O(H,X+1)),T(O(H,J-1),O(H,J),x)&&(S=z(H[J],x),S<k&&(k=S,N=x,V=X)));if(Y===(V+1)%g.length)x[0]=(b[0]+N[0])/2,x[1]=(b[1]+N[1])/2,o.push(x),J<V?(a(P,H,J,V+1),P.push(x),G.push(x),0!==Y&&a(G,H,Y,H.length),a(G,H,0,J+1)):(0!==J&&a(P,H,J,H.length),a(P,H,0,V+1),P.push(x),G.push(x),a(G,H,Y,J+1));else{if(Y>V&&(V+=g.length),U=M,V<Y)return _;for(var X=Y;X<=V;++X)L(O(H,J-1),O(H,J),O(H,X))&&f(O(H,J+1),O(H,J),O(H,X))&&(S=z(O(H,J),O(H,X)),S<U&&p(H,J,X)&&(U=S,Q=X%g.length));J<Q?(a(P,H,J,Q+1),0!=Q&&a(G,H,Q,I.length),a(G,H,0,J+1)):(0!==J&&a(P,H,J,I.length),a(P,H,0,Q+1),a(G,H,Q,J+1))}return P.length<G.length?(t(P,_,n,o,u,l,c),t(G,_,n,o,u,l,c)):(t(G,_,n,o,u,l,c),t(P,_,n,o,u,l,c)),_}return _.push(g),_}function u(g,_,e){return e=e||0,Math.abs(g-_)<=e}function i(g,_,e){return u(g[0],_[0],e)&&u(g[1],_[1],e)}var tmpPoint1=[],tmpPoint2=[],tmpLine1=[],tmpLine2=[];self.g_aJ={g_aK:function(g){var _=r(g);return 0<_.length?s(g,_):[g]},g_aL:t,g_aM:function(g){var _=g,a;for(a=0;a<_.length-1;a++)for(var t=0;t<a-1;t++)if(M(_[a],_[a+1],_[t],_[t+1]))return!1;for(a=1;a<_.length-2;a++)if(M(_[0],_[_.length-1],_[a],_[a+1]))return!1;return!0},g_aN:function(_,e){for(var a=0,t=_.length-1;3<_.length&&0<=t;--t)g(O(_,t-1),O(_,t),O(_,t+1),e)&&(_.splice(t%_.length,1),a++);return a},g_aO:function(g,_){for(var a=g.length-1,t;1<=a;--a){t=g[a];for(var n=a-1;0<=n;--n)if(i(t,g[n],_)){g.splice(a,1);continue}}},g_aP:function(g){for(var _=0,a=g,t=1;t<g.length;++t)(a[t][1]<a[_][1]||a[t][1]===a[_][1]&&a[t][0]>a[_][0])&&(_=t);return!T(O(g,_-1),O(g,_),O(g,_+1))&&(n(g),!0)}}}!function(g){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=g();else if("function"==typeof define&&define.g_a)define([],g);else{var _;_="undefined"==typeof window?"undefined"==typeof global?"undefined"==typeof self?this:self:global:window,_.localforage=g()}}(function(){return function _(t,n,a){function g(d,e){if(!n[d]){if(!t[d]){var o="function"==typeof require&&require;if(!e&&o)return o(d,!0);if(r)return r(d,!0);var u=new Error("Cannot find module '"+d+"'");throw u.code="MODULE_NOT_FOUND",u}var i=n[d]={exports:{}};t[d][0].call(i.exports,function(_){var e=t[d][1][_];return g(e||_)},i,i.exports,_,t,n,a)}return n[d].exports}for(var r="function"==typeof require&&require,i=0;i<a.length;i++)g(a[i]);return g}({1:[function(_,c){"use strict";function a(g,_){if(!(g instanceof _))throw new TypeError("Cannot call a class as a function")}function N(g,_){g=g||[],_=_||{};try{return new Blob(g,_)}catch(a){if("TypeError"!==a.name)throw a;for(var e="undefined"==typeof g_aQ?"undefined"==typeof g_aR?"undefined"==typeof g_aS?WebKitBlobBuilder:g_aS:g_aR:g_aQ,t=new e,n=0;n<g.length;n+=1)t.append(g[n]);return t.getBlob(_.type)}}function O(g,_){_&&g.then(function(g){_(null,g)},function(g){_(g)})}function C(g,_,a){"function"==typeof _&&g.then(_),"function"==typeof a&&g.catch(a)}function D(g){return"string"!=typeof g&&(console.warn(g+" used as a key, but it is not a string."),g+=""),g}function U(){if(arguments.length&&"function"==typeof arguments[arguments.length-1])return arguments[arguments.length-1]}function g(g){for(var _=g.length,e=new ArrayBuffer(_),a=new Uint8Array(e),t=0;t<_;t++)a[t]=g.charCodeAt(t);return e}function e(_){return new M(function(e){var g=_.transaction(J,T),a=N([""]);g.objectStore(J).put(a,"key"),g.onabort=function(g){g.preventDefault(),g.stopPropagation(),e(!1)},g.oncomplete=function(){var g=navigator.userAgent.match(/Chrome\/(\d+)/),_=navigator.userAgent.match(/Edge\//);e(_||!g||43<=parseInt(g[1],10))}}).catch(function(){return!1})}function d(g){return"boolean"==typeof Q?M.resolve(Q):e(g).then(function(g){return Q=g})}function Z(g){var _=P[g.name],t={};t.promise=new M(function(g,_){t.resolve=g,t.reject=_}),_.g_aT.push(t),_.g_aU=_.g_aU?_.g_aU.then(function(){return t.promise}):t.promise}function i(g){var _=P[g.name],e=_.g_aT.pop();if(e)return e.resolve(),e.promise}function h(g,_){var e=P[g.name],a=e.g_aT.pop();if(a)return a.reject(_),a.promise}function l(_,g){return new M(function(a,t){if(P[_.name]=P[_.name]||v(),_.db){if(!g)return a(_.db);Z(_),_.db.close()}var n=[_.name];g&&n.push(_.version);var r=L.open.apply(L,n);g&&(r.onupgradeneeded=function(g){var e=r.result;try{e.createObjectStore(_.g_aV),1>=g.oldVersion&&e.createObjectStore(J)}catch(e){if("ConstraintError"!==e.name)throw e;console.warn("The database \""+_.name+"\" has been upgraded from version "+g.oldVersion+" to version "+g.newVersion+", but the storage \""+_.g_aV+"\" already exists.")}}),r.onerror=function(g){g.preventDefault(),t(r.error)},r.onsuccess=function(){a(r.result),i(_)}})}function m(g){return l(g,!1)}function n(g){return l(g,!0)}function o(_,g){if(!_.db)return!0;var a=!_.db.objectStoreNames.contains(_.g_aV),t=_.version<_.db.version,n=_.version>_.db.version;if(t&&(_.version!==g&&console.warn("The database \""+_.name+"\" can't be downgraded from version "+_.db.version+" to version "+_.version+"."),_.version=_.db.version),n||a){if(a){var i=_.db.version+1;i>_.version&&(_.version=i)}return!0}return!1}function f(g){return new M(function(_,e){var a=new FileReader;a.onerror=e,a.onloadend=function(e){var a=btoa(e.target.result||"");_({g_aW:!0,data:a,type:g.type})},a.readAsBinaryString(g)})}function p(_){return N([g(atob(_.data))],{type:_.type})}function r(g){return g&&g.g_aW}function s(g){var _=this,e=_.g_aX().then(function(){var g=P[_.g_aY.name];if(g&&g.g_aU)return g.g_aU});return C(e,g,g),e}function t(_){Z(_);for(var e=P[_.name],g=e.g_aZ,t=0,i;t<g.length;t++)i=g[t],i.g_aY.db&&(i.g_aY.db.close(),i.g_aY.db=null);return _.db=null,m(_).then(function(g){return _.db=g,o(_)?n(_):g}).then(function(t){_.db=e.db=t;for(var a=0;a<g.length;a++)g[a].g_aY.db=t}).catch(function(g){throw h(_,g),g})}function u(g,_,e,a){void 0===a&&(a=1);try{var i=g.db.transaction(g.g_aV,_);e(null,i)}catch(i){if(0<a&&(!g.db||"InvalidStateError"===i.name||"NotFoundError"===i.name))return M.resolve().then(function(){if(!g.db||"NotFoundError"===i.name&&!g.db.objectStoreNames.contains(g.g_aV)&&g.version<=g.db.version)return g.db&&(g.version=g.db.version+1),n(g)}).then(function(){return t(g).then(function(){u(g,_,e,a-1)})}).catch(e);e(i)}}function v(){return{g_aZ:[],db:null,g_aU:null,g_aT:[]}}function b(_){var t=.75*_.length,n=_.length,g=0,r,o,u,s,l;"="===_[_.length-1]&&(t--,"="===_[_.length-2]&&t--);var p=new ArrayBuffer(t),i=new Uint8Array(p);for(r=0;r<n;r+=4)o=q.indexOf(_[r]),u=q.indexOf(_[r+1]),s=q.indexOf(_[r+2]),l=q.indexOf(_[r+3]),i[g++]=o<<2|u>>4,i[g++]=(15&u)<<4|s>>2,i[g++]=(3&s)<<6|63&l;return p}function w(g){var _=new Uint8Array(g),e="",t;for(t=0;t<_.length;t+=3)e+=q[_[t]>>2],e+=q[(3&_[t])<<4|_[t+1]>>4],e+=q[(15&_[t+1])<<2|_[t+2]>>6],e+=q[63&_[t+2]];return 2==_.length%3?e=e.substring(0,e.length-1)+"=":1==_.length%3&&(e=e.substring(0,e.length-2)+"=="),e}function y(g,_,e,a){g.g_a_("CREATE TABLE IF NOT EXISTS "+_.g_aV+" (id INTEGER PRIMARY KEY, key unique, value)",[],e,a)}function z(_,g,a,t,n,i){_.g_a_(a,t,n,function(_,e){e.code===e.SYNTAX_ERR?_.g_a_("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[g.g_aV],function(_,r){r.rows.length?i(_,e):y(_,g,function(){_.g_a_(a,t,n,i)},i)},i):i(_,e)},i)}function A(_,t,n,i){var r=this;_=D(_);var g=new M(function(d,e){r.ready().then(function(){void 0===t&&(t=null);var o=t,g=r.g_aY;g.g_a$.serialize(t,function(t,a){a?e(a):g.db.transaction(function(a){z(a,g,"INSERT OR REPLACE INTO "+g.g_aV+" (key, value) VALUES (?, ?)",[_,t],function(){d(o)},function(g,_){e(_)})},function(g){if(g.code===g.QUOTA_ERR){if(0<i)return void d(A.apply(r,[_,o,n,i-1]));e(g)}})})}).catch(e)});return O(g,n),g}function x(_){return new M(function(g,e){_.transaction(function(a){a.g_a_("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(e,a){for(var t=[],n=0;n<a.rows.length;n++)t.push(a.rows.item(n).name);g({db:_,g_ba:t})},function(g,_){e(_)})},function(g){e(g)})})}function E(){try{return"undefined"!=typeof localStorage&&"setItem"in localStorage&&!!localStorage.setItem}catch(g){return!1}}function j(g,_){var e=g.name+"/";return g.g_aV!==_.g_aV&&(e+=g.g_aV+"/"),e}function B(){try{return localStorage.setItem("_localforage_support_test",!0),localStorage.removeItem("_localforage_support_test"),!1}catch(g){return!0}}function k(){return!B()||0<localStorage.length}function G(g,_){g[_]=function(){var e=arguments;return g.ready().then(function(){return g[_].apply(g,e)})}}function I(){for(var g=1,_;g<arguments.length;g++)if(_=arguments[g],_)for(var e in _)_.hasOwnProperty(e)&&(_g(_[e])?arguments[0][e]=_[e].slice():arguments[0][e]=_[e]);return arguments[0]}var H="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(g){return typeof g}:function(g){return g&&"function"==typeof Symbol&&g.constructor===Symbol&&g!==Symbol.prototype?"symbol":typeof g},L=function(){try{if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof webkitIndexedDB)return webkitIndexedDB;if("undefined"!=typeof mozIndexedDB)return mozIndexedDB;if("undefined"!=typeof g_bb)return g_bb;if("undefined"!=typeof msIndexedDB)return msIndexedDB}catch(g){}}();"undefined"==typeof Promise&&_("lie/polyfill");var M=Promise,J="local-forage-detect-blob-support",Q=void 0,P={},S=Object.prototype.toString,T="readwrite",V={g_bc:"asyncStorage",_initStorage:function(_){function t(){return M.resolve()}var i=this,r={db:null};if(_)for(var a in _)r[a]=_[a];var u=P[r.name];u||(u=v(),P[r.name]=u),u.g_aZ.push(i),i.g_aX||(i.g_aX=i.ready,i.ready=s);for(var l=[],f=0,c;f<u.g_aZ.length;f++)c=u.g_aZ[f],c!==i&&l.push(c.g_aX().catch(t));var p=u.g_aZ.slice(0);return M.all(l).then(function(){return r.db=u.db,m(r)}).then(function(g){return r.db=g,o(r,i.g_bd.version)?n(r):g}).then(function(g){r.db=u.db=g,i.g_aY=r;for(var _=0,t;_<p.length;_++)t=p[_],t!==i&&(t.g_aY.db=r.db,t.g_aY.version=r.version)})},g_be:function(){try{if(!L)return!1;var g="undefined"!=typeof openDatabase&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),_="function"==typeof fetch&&-1!==fetch.toString().indexOf("[native code");return(!g||_)&&"undefined"!=typeof indexedDB&&"undefined"!=typeof IDBKeyRange}catch(g){return!1}}(),iterate:function(g,_){var t=this,e=new M(function(_,e){t.ready().then(function(){u(t.g_aY,"readonly",function(a,n){if(a)return e(a);try{var i=n.objectStore(t.g_aY.g_aV),o=i.openCursor(),u=1;o.onsuccess=function(){var e=o.result;if(e){var a=e.value;r(a)&&(a=p(a));var t=g(a,e.key,u++);void 0===t?e.continue():_(t)}else _()},o.onerror=function(){e(o.error)}}catch(g){e(g)}})}).catch(e)});return O(e,_),e},getItem:function(_,g){var a=this;_=D(_);var t=new M(function(e,t){a.ready().then(function(){u(a.g_aY,"readonly",function(n,i){if(n)return t(n);try{var d=i.objectStore(a.g_aY.g_aV),o=d.get(_);o.onsuccess=function(){var g=o.result;void 0===g&&(g=null),r(g)&&(g=p(g)),e(g)},o.onerror=function(){t(o.error)}}catch(g){t(g)}})}).catch(t)});return O(t,g),t},setItem:function(_,g,e){var t=this;_=D(_);var a=new M(function(e,a){var n;t.ready().then(function(){return n=t.g_aY,"[object Blob]"===S.call(g)?d(n.db).then(function(_){return _?g:f(g)}):g}).then(function(n){u(t.g_aY,"readwrite",function(i,r){if(i)return a(i);try{var d=r.objectStore(t.g_aY.g_aV);null===n&&(n=void 0);var g=d.put(n,_);r.oncomplete=function(){void 0===n&&(n=null),e(n)},r.onabort=r.onerror=function(){var _=g.error?g.error:g.transaction.error;a(_)}}catch(g){a(g)}})}).catch(a)});return O(a,e),a},removeItem:function(_,g){var t=this;_=D(_);var a=new M(function(g,e){t.ready().then(function(){u(t.g_aY,"readwrite",function(a,n){if(a)return e(a);try{var i=n.objectStore(t.g_aY.g_aV),r=i.delete(_);n.oncomplete=function(){g()},n.onerror=function(){e(r.error)},n.onabort=function(){var g=r.error?r.error:r.transaction.error;e(g)}}catch(g){e(g)}})}).catch(e)});return O(a,g),a},clear:function(g){var _=this,e=new M(function(g,t){_.ready().then(function(){u(_.g_aY,"readwrite",function(n,a){if(n)return t(n);try{var i=a.objectStore(_.g_aY.g_aV),r=i.clear();a.oncomplete=function(){g()},a.onabort=a.onerror=function(){var g=r.error?r.error:r.transaction.error;t(g)}}catch(g){t(g)}})}).catch(t)});return O(e,g),e},length:function(g){var _=this,e=new M(function(g,t){_.ready().then(function(){u(_.g_aY,"readonly",function(n,a){if(n)return t(n);try{var i=a.objectStore(_.g_aY.g_aV),r=i.count();r.onsuccess=function(){g(r.result)},r.onerror=function(){t(r.error)}}catch(g){t(g)}})}).catch(t)});return O(e,g),e},key:function(_,g){var e=this,a=new M(function(t,a){return 0>_?void t(null):void e.ready().then(function(){u(e.g_aY,"readonly",function(n,i){if(n)return a(n);try{var r=i.objectStore(e.g_aY.g_aV),d=!1,o=r.openCursor();o.onsuccess=function(){var g=o.result;return g?void(0===_?t(g.key):d?t(g.key):(d=!0,g.advance(_))):void t(null)},o.onerror=function(){a(o.error)}}catch(g){a(g)}})}).catch(a)});return O(a,g),a},keys:function(g){var _=this,e=new M(function(e,t){_.ready().then(function(){u(_.g_aY,"readonly",function(n,a){if(n)return t(n);try{var i=a.objectStore(_.g_aY.g_aV),r=i.openCursor(),d=[];r.onsuccess=function(){var g=r.result;return g?void(d.push(g.key),g.continue()):void e(d)},r.onerror=function(){t(r.error)}}catch(g){t(g)}})}).catch(t)});return O(e,g),e},dropInstance:function(g,_){_=U.apply(this,arguments);var a=this.g_bf();g="function"!=typeof g&&g||{},g.name||(g.name=g.name||a.name,g.g_aV=g.g_aV||a.g_aV);var t=this,n;if(g.name){var r=g.name===a.name&&t.g_aY.db,e=r?M.resolve(t.g_aY.db):m(g).then(function(_){var e=P[g.name],a=e.g_aZ;e.db=_;for(var t=0;t<a.length;t++)a[t].g_aY.db=_;return _});n=g.g_aV?e.then(function(_){if(_.objectStoreNames.contains(g.g_aV)){var e=_.version+1;Z(g);var t=P[g.name],n=t.g_aZ;_.close();for(var a=0,r;a<n.length;a++)r=n[a],r.g_aY.db=null,r.g_aY.version=e;return new M(function(_,a){var t=L.open(g.name,e);t.onerror=function(g){t.result.close(),a(g)},t.onupgradeneeded=function(){t.result.deleteObjectStore(g.g_aV)},t.onsuccess=function(){var g=t.result;g.close(),_(g)}}).then(function(g){t.db=g;for(var _=0,e;_<n.length;_++)e=n[_],e.g_aY.db=g,i(e.g_aY)}).catch(function(_){throw(h(g,_)||M.resolve()).catch(function(){}),_})}}):e.then(function(_){Z(g);var e=P[g.name],t=e.g_aZ;_.close();for(var a=0;a<t.length;a++)t[a].g_aY.db=null;return new M(function(_,e){var t=L.deleteDatabase(g.name);t.onerror=t.onblocked=function(g){var _=t.result;_&&_.close(),e(g)},t.onsuccess=function(){var g=t.result;g&&g.close(),_(g)}}).then(function(g){e.db=g;for(var _=0;_<t.length;_++)i(t[_].g_aY)}).catch(function(_){throw(h(g,_)||M.resolve()).catch(function(){}),_})})}else n=M.reject("Invalid arguments");return O(n,_),n}},q="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",X=/^~~local_forage_type~([^~]+)~/,Y=Object.prototype.toString,K={serialize:function(_,g){var a="";if(_&&(a=Y.call(_)),_&&("[object ArrayBuffer]"===a||_.buffer&&"[object ArrayBuffer]"===Y.call(_.buffer))){var t="__lfsc__:",n;_ instanceof ArrayBuffer?(n=_,t+="arbf"):(n=_.buffer,"[object Int8Array]"===a?t+="si08":"[object Uint8Array]"===a?t+="ui08":"[object Uint8ClampedArray]"===a?t+="uic8":"[object Int16Array]"===a?t+="si16":"[object Uint16Array]"===a?t+="ur16":"[object Int32Array]"===a?t+="si32":"[object Uint32Array]"===a?t+="ui32":"[object Float32Array]"===a?t+="fl32":"[object Float64Array]"===a?t+="fl64":g(new Error("Failed to get type for BinaryArray"))),g(t+w(n))}else if("[object Blob]"===a){var i=new FileReader;i.onload=function(){var e="~~local_forage_type~"+_.type+"~"+w(this.result);g("__lfsc__:blob"+e)},i.readAsArrayBuffer(_)}else try{g(JSON.stringify(_))}catch(e){console.error("Couldn't convert value into a JSON string: ",_),g(null,e)}},g_bg:function(_){if(_.substring(0,9)!=="__lfsc__:")return JSON.parse(_);var g=_.substring(13),e=_.substring(9,13),t;if(e==="blob"&&X.test(g)){var n=g.match(X);t=n[1],g=g.substring(n[0].length)}var r=b(g);switch(e){case"arbf":return r;case"blob":return N([r],{type:t});case"si08":return new Int8Array(r);case"ui08":return new Uint8Array(r);case"uic8":return new Uint8ClampedArray(r);case"si16":return new Int16Array(r);case"ur16":return new Uint16Array(r);case"si32":return new Int32Array(r);case"ui32":return new Uint32Array(r);case"fl32":return new Float32Array(r);case"fl64":return new Float64Array(r);default:throw new Error("Unkown type: "+e);}},g_bh:b,g_bi:w},F={g_bc:"webSQLStorage",_initStorage:function(_){var e=this,g={db:null};if(_)for(var t in _)g[t]="string"==typeof _[t]?_[t]:_[t].toString();var a=new M(function(_,t){try{g.db=openDatabase(g.name,g.version+"",g.description,g.size)}catch(g){return t(g)}g.db.transaction(function(n){y(n,g,function(){e.g_aY=g,_()},function(g,_){t(_)})},t)});return g.g_a$=K,a},g_be:function(){return"function"==typeof openDatabase}(),iterate:function(_,g){var e=this,a=new M(function(g,t){e.ready().then(function(){var a=e.g_aY;a.db.transaction(function(e){z(e,a,"SELECT * FROM "+a.g_aV,[],function(t,e){for(var n=e.rows,r=n.length,d=0;d<r;d++){var o=n.item(d),u=o.value;if(u&&(u=a.g_a$.g_bg(u)),void 0!==(u=_(u,o.key,d+1)))return void g(u)}g()},function(g,_){t(_)})})}).catch(t)});return O(a,g),a},getItem:function(_,g){var e=this;_=D(_);var a=new M(function(t,g){e.ready().then(function(){var n=e.g_aY;n.db.transaction(function(e){z(e,n,"SELECT * FROM "+n.g_aV+" WHERE key = ? LIMIT 1",[_],function(g,_){var e=_.rows.length?_.rows.item(0).value:null;e&&(e=n.g_a$.g_bg(e)),t(e)},function(_,e){g(e)})})}).catch(g)});return O(a,g),a},setItem:function(g,_,e){return A.apply(this,[g,_,e,1])},removeItem:function(g,_){var e=this;g=D(g);var a=new M(function(_,t){e.ready().then(function(){var a=e.g_aY;a.db.transaction(function(e){z(e,a,"DELETE FROM "+a.g_aV+" WHERE key = ?",[g],function(){_()},function(g,_){t(_)})})}).catch(t)});return O(a,_),a},clear:function(g){var _=this,e=new M(function(g,e){_.ready().then(function(){var t=_.g_aY;t.db.transaction(function(_){z(_,t,"DELETE FROM "+t.g_aV,[],function(){g()},function(g,_){e(_)})})}).catch(e)});return O(e,g),e},length:function(g){var _=this,e=new M(function(g,e){_.ready().then(function(){var t=_.g_aY;t.db.transaction(function(_){z(_,t,"SELECT COUNT(key) as c FROM "+t.g_aV,[],function(_,e){var a=e.rows.item(0).c;g(a)},function(g,_){e(_)})})}).catch(e)});return O(e,g),e},key:function(_,e){var t=this,g=new M(function(g,e){t.ready().then(function(){var n=t.g_aY;n.db.transaction(function(a){z(a,n,"SELECT key FROM "+n.g_aV+" WHERE id = ? LIMIT 1",[_+1],function(_,e){var a=e.rows.length?e.rows.item(0).key:null;g(a)},function(g,_){e(_)})})}).catch(e)});return O(g,e),g},keys:function(g){var _=this,e=new M(function(g,e){_.ready().then(function(){var t=_.g_aY;t.db.transaction(function(_){z(_,t,"SELECT key FROM "+t.g_aV,[],function(_,e){for(var a=[],t=0;t<e.rows.length;t++)a.push(e.rows.item(t).key);g(a)},function(g,_){e(_)})})}).catch(e)});return O(e,g),e},dropInstance:function(_,e){e=U.apply(this,arguments);var t=this.g_bf();_="function"!=typeof _&&_||{},_.name||(_.name=_.name||t.name,_.g_aV=_.g_aV||t.g_aV);var n=this,a;return a=_.name?new M(function(g){var e;e=_.name===t.name?n.g_aY.db:openDatabase(_.name,"","",0),g(_.g_aV?{db:e,g_ba:[_.g_aV]}:x(e))}).then(function(_){return new M(function(g,e){_.db.transaction(function(t){function a(g){return new M(function(_,n){t.g_a_("DROP TABLE IF EXISTS "+g,[],function(){_()},function(g,_){n(_)})})}for(var n=[],i=0,r=_.g_ba.length;i<r;i++)n.push(a(_.g_ba[i]));M.all(n).then(function(){g()}).catch(function(g){e(g)})},function(g){e(g)})})}):M.reject("Invalid arguments"),O(a,e),a}},W={g_bc:"localStorageWrapper",_initStorage:function(g){var _=this,e={};if(g)for(var a in g)e[a]=g[a];return e.g_bj=j(g,_.g_bd),k()?(_.g_aY=e,e.g_a$=K,M.resolve()):M.reject()},g_be:E(),iterate:function(g,_){var t=this,e=t.ready().then(function(){for(var _=t.g_aY,n=_.g_bj,r=n.length,d=localStorage.length,e=1,o=0,u;o<d;o++)if(u=localStorage.key(o),0===u.indexOf(n)){var s=localStorage.getItem(u);if(s&&(s=_.g_a$.g_bg(s)),void 0!==(s=g(s,u.substring(r),e++)))return s}});return O(e,_),e},getItem:function(g,_){var t=this;g=D(g);var a=t.ready().then(function(){var _=t.g_aY,e=localStorage.getItem(_.g_bj+g);return e&&(e=_.g_a$.g_bg(e)),e});return O(a,_),a},setItem:function(g,_,e){var t=this;g=D(g);var n=t.ready().then(function(){void 0===_&&(_=null);var e=_;return new M(function(n,r){var d=t.g_aY;d.g_a$.serialize(_,function(_,a){if(a)r(a);else try{localStorage.setItem(d.g_bj+g,_),n(e)}catch(g){"QuotaExceededError"!==g.name&&"NS_ERROR_DOM_QUOTA_REACHED"!==g.name||r(g),r(g)}})})});return O(n,e),n},removeItem:function(g,_){var t=this;g=D(g);var a=t.ready().then(function(){var _=t.g_aY;localStorage.removeItem(_.g_bj+g)});return O(a,_),a},clear:function(g){var _=this,e=_.ready().then(function(){for(var g=_.g_aY.g_bj,e=localStorage.length-1,t;0<=e;e--)t=localStorage.key(e),0===t.indexOf(g)&&localStorage.removeItem(t)});return O(e,g),e},length:function(g){var _=this,e=_.keys().then(function(g){return g.length});return O(e,g),e},key:function(g,_){var e=this,a=e.ready().then(function(){var _=e.g_aY,t;try{t=localStorage.key(g)}catch(g){t=null}return t&&(t=t.substring(_.g_bj.length)),t});return O(a,_),a},keys:function(_){var e=this,g=e.ready().then(function(){for(var g=e.g_aY,_=localStorage.length,a=[],t=0,n;t<_;t++)n=localStorage.key(t),0===n.indexOf(g.g_bj)&&a.push(n.substring(g.g_bj.length));return a});return O(g,_),g},dropInstance:function(_,e){if(e=U.apply(this,arguments),_="function"!=typeof _&&_||{},!_.name){var a=this.g_bf();_.name=_.name||a.name,_.g_aV=_.g_aV||a.g_aV}var t=this,n;return n=_.name?new M(function(g){g(_.g_aV?j(_,t.g_bd):_.name+"/")}).then(function(g){for(var _=localStorage.length-1,e;0<=_;_--)e=localStorage.key(_),0===e.indexOf(g)&&localStorage.removeItem(e)}):M.reject("Invalid arguments"),O(n,e),n}},$=function(g,_){return g===_||"number"==typeof g&&"number"==typeof _&&isNaN(g)&&isNaN(_)},gg=function(g,_){for(var e=g.length,a=0;a<e;){if($(g[a],_))return!0;a++}return!1},_g=Array.isArray||function(g){return"[object Array]"===Object.prototype.toString.call(g)},eg={},ag={},tg={g_bk:V,g_bl:F,g_bm:W},ng=[tg.g_bk.g_bc,tg.g_bl.g_bc,tg.g_bm.g_bc],ig=["dropInstance"],rg=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(ig),dg={description:"",g_bn:ng.slice(),name:"localforage",size:4980736,g_aV:"keyvaluepairs",version:1},og=function(){function _(t){for(var n in a(this,_),tg)if(tg.hasOwnProperty(n)){var g=tg[n],i=g.g_bc;this[n]=i,eg[i]||this.g_bo(g)}this.g_bd=I({},dg),this.g_bp=I({},this.g_bd,t),this.g_bq=null,this.g_br=null,this.g_bs=!1,this.g_aY=null,this.g_bt(),this.g_bu(this.g_bp.g_bn).catch(function(){})}return _.prototype.g_bf=function(g){if("object"===(void 0===g?"undefined":H(g))){if(this.g_bs)return new Error("Can't call config() after localforage has been used.");for(var _ in g){if("storeName"==_&&(g[_]=g[_].replace(/\W/g,"_")),"version"==_&&"number"!=typeof g[_])return new Error("Database version must be a number.");this.g_bp[_]=g[_]}return!("driver"in g&&g.g_bn)||this.g_bu(this.g_bp.g_bn)}return"string"==typeof g?this.g_bp[g]:this.g_bp},_.prototype.g_bo=function(_,g,e){var a=new M(function(t,a){try{var n=_.g_bc,r=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!_.g_bc)return void a(r);for(var o=rg.concat("_initStorage"),e=0,u=o.length,g;e<u;e++)if(g=o[e],(!gg(ig,g)||_[g])&&"function"!=typeof _[g])return void a(r);(function(){for(var g=function(g){return function(){var _=new Error("Method "+g+" is not implemented by the current driver"),e=M.reject(_);return O(e,arguments[arguments.length-1]),e}},e=0,t=ig.length,n;e<t;e++)n=ig[e],_[n]||(_[n]=g(n))})();var s=function(g){eg[n]&&console.info("Redefining LocalForage driver: "+n),eg[n]=_,ag[n]=g,t()};"_support"in _?_.g_be&&"function"==typeof _.g_be?_.g_be().then(s,a):s(!!_.g_be):s(!0)}catch(g){a(g)}});return C(a,g,e),a},_.prototype.g_bn=function(){return this.g_bc||null},_.prototype.g_bv=function(g,_,e){var a=eg[g]?M.resolve(eg[g]):M.reject(new Error("Driver not found."));return C(a,_,e),a},_.prototype.g_bw=function(g){var _=M.resolve(K);return C(_,g),_},_.prototype.ready=function(g){var _=this,e=_.g_bq.then(function(){return null===_.g_bs&&(_.g_bs=_.g_br()),_.g_bs});return C(e,g,g),e},_.prototype.g_bu=function(_,t,a){function n(){o.g_bp.g_bn=o.g_bn()}function r(g){return o.g_bx(g),n(),o.g_bs=o._initStorage(o.g_bp),o.g_bs}function d(_){return function(){function g(){for(;e<_.length;){var a=_[e];return e++,o.g_aY=null,o.g_bs=null,o.g_bv(a).then(r).catch(g)}n();var t=new Error("No available storage method found.");return o.g_bq=M.reject(t),o.g_bq}var e=0;return g()}}var o=this;_g(_)||(_=[_]);var e=this.g_by(_),u=null===this.g_bq?M.resolve():this.g_bq.catch(function(){return M.resolve()});return this.g_bq=u.then(function(){var g=e[0];return o.g_aY=null,o.g_bs=null,o.g_bv(g).then(function(g){o.g_bc=g.g_bc,n(),o.g_bt(),o.g_br=d(e)})}).catch(function(){n();var g=new Error("No available storage method found.");return o.g_bq=M.reject(g),o.g_bq}),C(this.g_bq,t,a),this.g_bq},_.prototype.supports=function(g){return!!ag[g]},_.prototype.g_bx=function(g){I(this,g)},_.prototype.g_by=function(g){for(var _=[],e=0,t=g.length,n;e<t;e++)n=g[e],this.supports(n)&&_.push(n);return _},_.prototype.g_bt=function(){for(var g=0,_=rg.length;g<_;g++)G(this,rg[g])},_.prototype.g_bz=function(g){return new _(g)},_}(),ug=new og;c.exports=ug},{undefined:void 0}]},{},[1])(1)}),"use strict";{let g=!1,_=!1,e="dev";self.g_bA=class{constructor(){throw TypeError("static class can't be instantiated")}static g_bB(){g=!0}static g_bC(){return g}static g_bD(){_=!0}static g_bE(){return _}static g_bF(g){e=g}static g_bG(){return e}static g_bH(){return"final"===e}},g_bA.g_bI=!1,g_bA.g_bJ=!1,g_bA.hardwareConcurrency=navigator.hardwareConcurrency||2}"use strict",g_bA.g_bK=class{constructor(g){this.g_bL=g,this.g_bM=new Map,this.g_bN()}g_bN(){let g=this.g_bL;(g.startsWith("?")||g.startsWith("#"))&&(g=g.substr(1));const _=g.split("&");for(const g of _)this.g_bO(g)}g_bO(g){if(g){if(!g.includes("="))return void this.g_bM.set(g,null);const _=g.indexOf("="),e=decodeURIComponent(g.substring(0,_)),a=decodeURIComponent(g.substring(_+1));this.g_bM.set(e,a)}}g_bP(){for(const g of this.g_bM)console.log("[QueryParser] Parameter '"+g[0]+"' = "+(null===g[1]?"null":"'"+g[1]+"'"))}g_bQ(g){return this.g_bM.has(g)}g_bR(g){const _=this.g_bM.get(g);return"undefined"==typeof _?null:_}g_bS(){history.replaceState("",document.title,location.pathname+location.search)}g_bT(g){this.g_bL=g,this.g_bM.clear(),this.g_bN()}},g_bA.g_bU=new g_bA.g_bK(location.search),g_bA.g_bV=new g_bA.g_bK(location.hash),"dev"!==g_bA.g_bU.g_bR("mode")&&g_bA.g_bF("final"),"use strict";{function _(g,_,e){if(!0===_)e(),n.set(g,!0);else if(_&&_.length)e(_[0]),n.set(g,!0);else;}const t=navigator.userAgent;let a={g_bW:/linux|openbsd|freebsd|netbsd/i.test(t),g_bX:/CrOS/.test(t),g_bY:/trident|iemobile|msie|tizen/i.test(t),g_bZ:/trident|iemobile|msie|edge\//i.test(t),opera:/OPR\//.test(t),g_b_:/bb10/i.test(t),g_b$:/edge\//i.test(t),g_ca:/trident/i.test(t),g_cb:/webkit/i.test(t),safari:/safari\//i.test(t),chrome:/chrome\//i.test(t),g_cc:/chromium\//i.test(t),g_cd:/crosswalk|xwalk/i.test(t),g_ce:/nwjs/i.test(t),g_cf:/amazonwebappplatform/i.test(t),g_cg:/wv\)/.test(t),g_ch:/android/i.test(t),g_ci:/nokiabrowser\/[0-9.]+/i.test(t)},r={g_cj:/windows\s+nt\s+\d+\.\d+/i.exec(t),g_ck:/mac\s+os\s+x\s+[0-9_]+/i.exec(t),g_ch:/android\s+[0-9.]+/i.exec(t),opera:/OPR\/[0-9.]+/.exec(t),g_cl:/tizen\s+[0-9.]+/i.exec(t),g_cm:/iphone\s+os\s+[0-9_]+/i.exec(t),g_cn:/ipad[^)]*os\s+[0-9_]+/i.exec(t),g_co:/windows\s+phone\s+[0-9.]+/i.exec(t),g_cp:/windows\s+phone\s+os\s+[0-9.]+/i.exec(t),chrome:/chrome\/[0-9.]+/i.exec(t),g_cc:/chromium\/[0-9.]+/i.exec(t),g_ce:/nwjs\/[0-9.]+/i.exec(t),g_cq:/firefox\/[0-9.]+/i.exec(t),g_cr:/msie\s+[0-9.]+/i.exec(t),g_b$:/edge\/[0-9.]+/i.exec(t),g_cs:/silk\/[0-9.]+/i.exec(t)},d="(unknown)",e="(unknown)",u="(unknown)",g="(unknown)",s="(unknown)",i="(unknown)",f="(unknown)",c="browser",l=!1,p=!1,n=new Map;_("isWindows",r.g_cj,g=>{d="Windows";const _=g.split(" ")[2];_&&("5.0"===_?e="2000":"5.1"===_?e="XP":"5.2"===_?e="XP":"6.0"===_?e="Vista":"6.1"===_?e="7":"6.2"===_?e="8":"6.3"===_?e="8.1":"10.0"===_?e="10":void 0)}),_("isOSX",r.g_ck,g=>{d="Mac OS X";const _=g.split(" ")[3];_&&(e=_.replace("_","."))}),_("isLinux",a.g_bW,()=>{d="Linux"}),_("isChromeOS",a.g_bX,()=>{d="Chrome OS"}),_("isAndroid",!a.g_bY&&r.g_ch,g=>{d="Android";const _=g.split(" ")[1];_&&(e=_)}),_("isTizen",r.g_cl,g=>{d="Tizen";const _=g.split(" ")[1];_&&(e=_)}),_("isIPhone",!a.g_bY&&r.g_cm,g=>{d="iOS";const _=g.split(" ")[2];_&&(e=_.replace("_","."))}),_("isIPad",!a.g_bY&&r.g_cn,g=>{d="iOS";const _=g.split(" ")[3];_&&(e=_.replace("_","."))}),_("isWindowsPhone",r.g_co,g=>{d="Windows Phone";const _=g.split(" ")[2];_&&(e=_)}),_("isWindowsPhoneOS",r.g_cp,g=>{d="Windows Phone";const _=g.split(" ")[3];_&&(e=_)}),_("isBlackberry",a.g_b_,()=>{d="Blackberry",e="10",g="stock",f="webkit"}),_("isChrome",!a.g_b$&&!a.opera&&r.chrome,_=>{g="Chrome",f="Blink";const e=_.split("/")[1];e&&(s=e)}),_("isOpera",r.opera,_=>{g="Opera",f="Blink";const e=_.split("/")[1];e&&(s=e)}),_("isChromium",r.g_cc,_=>{g="Chromium",f="Blink";const e=_.split("/")[1];e&&(s=e)}),_("isFirefox",r.g_cq,_=>{g="Firefox",f="Gecko";const e=_.split("/")[1];e&&(s=e)}),_("isInternetExplorer",r.g_cr,_=>{g="Internet Explorer",f="Trident";const e=_.split(" ")[1];e&&(s=e)}),_("isTrident","Internet Explorer"!=g&&a.g_ca,()=>{f="Trident";const _=/rv:[0-9.]+/i.exec(t);if(_&&_.length){g="Internet Explorer";const e=_[0].split(":")[1];e&&(s=e)}}),_("isEdge",r.g_b$,_=>{g="Edge",f="Edge";const e=_.split("/")[1];e&&(s=e)}),_("isSafari",a.safari&&!a.g_ci&&!a.chrome&&!a.g_cc&&!a.g_ct&&!a.g_b_,()=>{g="Safari",f="WebKit";const _=/version\/[0-9.]+/i.exec(t),e=/crios\/[0-9.]+/i.exec(t),n=/fxios\/[0-9.]+/i.exec(t);if(_&&_.length){const g=_[0].split("/")[1];g&&(s=g)}if(e&&e.length){g="Chrome for iOS";const _=e[0].split("/")[1];_&&(s=_)}if(n&&n.length){g="Firefox for iOS";const _=n[0].split("/")[1];_&&(s=_)}}),_("isSilk",r.g_cs,_=>{g="Silk";const e=_.split("/")[1];e&&(s=e)}),_("isCrosswalk",a.g_cd,()=>c="crosswalk"),_("isCordova",self.device&&(self.device.cordova||self.device.phonegap),()=>c="cordova"),_("isNWJS",r.g_ce,_=>{c="nwjs",g="NW.js",f="Chromium";const e=_.split("/")[1];e&&(s=e)}),_("isAmazonWebApp",a.g_cf,()=>c="webapp"),_("isHomeScreenWebApp","nwjs"!=c&&"undefined"!=typeof window&&(window.matchMedia&&window.matchMedia("(display-mode: standalone)").matches||navigator.standalone),()=>c="webapp"),_("isFalseSafari","Safari"==g&&("Android"==d||"Tizen"==d||"Blackberry"==d),()=>g="stock"),_("isAndroidWebview","Chrome"==g&&"browser"==c&&a.g_cg,()=>c="webview"),_("isFirefoxOS","Firefox"==g&&"(unknown)"==d,()=>d="Firefox OS"),_("isAndroidFallback","(unknown)"==d&&!a.g_bY&&a.g_ch,()=>d="Android"),_("isTridentFallback","(unknown)"==d&&a.g_ca,()=>f="Trident"),_("isWebkitFallback","(unknown)"==d&&a.g_cb,()=>f="WebKit"),_("is64Bit",(g=>g.test(t)||g.test(navigator.platform)||"x64"===navigator.cpuClass)(/x86_64|x86-64|win64|x64;|x64\)|x64_|amd64|wow64|ia64|arm64|arch64|sparc64|ppc64|irix64/i),()=>u="64-bit"),_("is32Bit",(g=>g.test(t)||g.test(navigator.platform)||"x86"===navigator.cpuClass)(/x86;|x86\)|i86|i386|i486|i586|i686|armv1|armv2|armv3|armv4|armv5|armv6|armv7/i),()=>u="32-bit"),_("is64BitFallback","(unknown)"==u&&"Mac OS X"==d&&10.7<=parseFloat(e),()=>u="64-bit"),_("is32BitFallback","(unknown)"==u&&"Windows"==d||"Android"==d&&5>parseFloat(e),()=>u="32-bit"),_("is32BitBrowser","32-bit"==u||/wow64/i.test(t),()=>i="32-bit"),_("is64BitBrowser",/win64/i.test(t),()=>i="64-bit"),_("isDesktop",(()=>"Windows"==d||"Mac OS X"==d||"Linux"==d||"Chrome OS"==d||"nwjs"==c)(),()=>l=!0),"Edge"==f&&"undefined"!=typeof Windows&&"undefined"!=typeof Windows.System&&(c="windows-store"),p="nwjs"==c||"windows-store"==c,g_bA.g_cu={g_cv:d,g_cw:e,g_cx:u,g_cy:g,g_cz:s,g_cA:parseFloat(s),g_cB:i,g_cC:f,g_cD:c,g_cE:l,g_cF:!l,g_cG:p,g_cH:!!(self.chrome&&self.chrome.runtime&&self.chrome.runtime.id),g_cI:"Mac OS X"==d||"iOS"==d}}{if(g_bA.g_cJ={},g_bA.g_cJ.g_cK=(()=>{try{if("undefined"==typeof document)return!1;const g=document.createElement("div");if("undefined"==typeof g.animate)return!1;const _=g.animate([{opacity:"0"},{opacity:"1"}],1e3);return"undefined"!=typeof _.reverse}catch(g){return!1}})(),g_bA.g_cJ.g_cL="undefined"!=typeof HTMLDialogElement,g_bA.g_cJ.g_cM=!!self.g_cN,g_bA.g_cJ.ImageBitmap="Safari"!==g_bA.g_cu.g_cy&&"Firefox"!==g_bA.g_cu.g_cy&&!!self.createImageBitmap,g_bA.g_cJ.g_cO=!1,g_bA.g_cJ.ImageBitmap)try{self.createImageBitmap(new ImageData(32,32),{g_cP:"none"}).then(()=>{g_bA.g_cJ.g_cO=!0}).catch(()=>{g_bA.g_cJ.g_cO=!1})}catch(g){g_bA.g_cJ.g_cO=!1}g_bA.g_cJ.g_cQ=!!(navigator.clipboard&&navigator.clipboard.readText&&"Firefox"!==g_bA.g_cu.g_cy),g_bA.g_cJ.g_cR="undefined"!=typeof Proxy,g_bA.g_cJ.g_cS=(()=>{if("undefined"==typeof document)return!1;const g=document.createElement("a");return"undefined"!=typeof g.download})(),g_bA.g_cJ.g_cT=(()=>"undefined"!=typeof HTMLCanvasElement&&HTMLCanvasElement.prototype.toBlob)(),g_bA.g_cJ.g_cU="undefined"!=typeof CSS&&CSS.supports("background","element(#test)"),g_bA.g_cJ.g_cV="function"==typeof fetch,g_bA.g_cJ.g_cW=!!(self.isSecureContext&&"Opera"!==g_bA.g_cu.g_cy&&navigator.storage&&navigator.storage.persist),g_bA.g_cJ.g_cX=!!(self.isSecureContext&&navigator.storage&&navigator.storage.estimate),g_bA.g_cJ.g_cY=()=>{if("undefined"==typeof document)return!1;const g=document.documentElement;return!!(g.requestFullscreen||g.msRequestFullscreen||g.mozRequestFullScreen||g.webkitRequestFullscreen)};const g=[{name:"A",value:12},{name:"B",value:13},{name:"C",value:13},{name:"D",value:13},{name:"E",value:13},{name:"F",value:13},{name:"G",value:14},{name:"H",value:12},{name:"I",value:12},{name:"J",value:13},{name:"K",value:14}],_=Math.ceil(496/g.length),t=(_+"").length,n=[];for(const i of g)for(let g=0;g<=_;g++)n.push({name:i.name+(g+"").padStart(t,"0"),value:i.value});n.sort((g,_)=>_.value-g.value);const a=n.reduce((g,_)=>{const e=_.name.slice(0,1),a=g.slice(-1);return a===e?g:g+e},"");g_bA.g_cJ.g_cZ="GKBCDEFJAHI"===a}{if(!String.prototype.trimStart){const g=/^[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]*/;String.prototype.trimStart=function(){return this.replace(g,"")}}if(!String.prototype.trimEnd){const g=/[\x09\x0A\x0B\x0C\x0D\x20\xA0\u1680\u180E\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF]*$/;String.prototype.trimEnd=function(){return this.replace(g,"")}}if(Array.prototype.values||(Array.prototype.values=function*(){for(const g of this)yield g}),!Array.prototype.g_c_){function g(_,e){return _.reduce((_,a)=>0<e&&Array.isArray(a)?(Array.prototype.push.apply(_,g(a,e-1)),_):(_.push(a),_),[])}Array.prototype.g_c_=function(_=1){return g(this,_)}}if(RegExp.escape||(RegExp.escape=function(g){return(g+"").replace(/[\\^$*+?.()|[\]{}]/g,"\\$&")}),navigator.storage&&!navigator.storage.estimate&&navigator.webkitTemporaryStorage&&navigator.webkitTemporaryStorage.queryUsageAndQuota&&(navigator.storage.estimate=function(){return new Promise((g,_)=>navigator.webkitTemporaryStorage.queryUsageAndQuota((_,e)=>g({usage:_,quota:e}),_))}),"undefined"==typeof HTMLCollection||HTMLCollection.prototype[Symbol.iterator]||(HTMLCollection.prototype[Symbol.iterator]=function(){let g=0;return{next:()=>g>=this.length?{done:!0}:{value:this.item(g++),done:!1}}}),"undefined"==typeof NodeList||NodeList.prototype[Symbol.iterator]||(NodeList.prototype[Symbol.iterator]=function(){let g=0;return{next:()=>g>=this.length?{done:!0}:{value:this.item(g++),done:!1}}}),"undefined"==typeof DOMTokenList||DOMTokenList.prototype[Symbol.iterator]||(DOMTokenList.prototype[Symbol.iterator]=function(){let g=0;return{next:()=>g>=this.length?{done:!0}:{value:this.item(g++),done:!1}}}),("undefined"==typeof FileList||FileList.prototype[Symbol.iterator]||(FileList.prototype[Symbol.iterator]=function(){let g=0;return{next:()=>g>=this.length?{done:!0}:{value:this.item(g++),done:!1}}}),"undefined"==typeof TextEncoder&&(self.TextEncoder=class{constructor(){Object.defineProperty(this,"encoding",{value:"utf-8",writable:!1})}encode(_){for(var a=_.length,t=-1,n=new Uint8Array(3*a),i=0,r=0,d=0;d!==a;){if(i=_.charCodeAt(d),d+=1,55296<=i&&56319>=i){if(d===a){n[t+=1]=239,n[t+=1]=191,n[t+=1]=189;break}if(r=_.charCodeAt(d),!(56320<=r&&57343>=r)){n[t+=1]=239,n[t+=1]=191,n[t+=1]=189;continue}else if(i=1024*(i-55296)+r-56320+65536,d+=1,65535<i){n[t+=1]=240|i>>>18,n[t+=1]=128|63&i>>>12,n[t+=1]=128|63&i>>>6,n[t+=1]=128|63&i;continue}}127>=i?n[t+=1]=0|i:2047>=i?(n[t+=1]=192|i>>>6,n[t+=1]=128|63&i):(n[t+=1]=224|i>>>12,n[t+=1]=128|63&i>>>6,n[t+=1]=128|63&i)}return new Uint8Array(n.buffer.slice(0,t+1))}toString(){return"[object TextEncoder]"}},TextEncoder[Symbol.toStringTag]="TextEncoder"),"undefined"==typeof TextDecoder)){function _(g){const _=g[Symbol.iterator]();return{next:()=>_.next(),[Symbol.iterator](){return this}}}function e(g){const _=g.next();if(_.done)throw new Error("unexpected end of input");if(0!=(128^192&_.value))throw new Error("invalid byte");return 63&_.value}const g=new Map;g.set("utf-8",(a,t)=>{let n;if(a.buffer)n=new Uint8Array(a.buffer,a.byteOffset,a.byteLength);else if(n instanceof ArrayBuffer)n=new Uint8Array(a);else throw new Error("Invalid parameter");const i=_(n),r=[];try{for(const g of i){let _;if(127>g)_=127&g;else if(223>g)_=(31&g)<<6|e(i);else if(239>g)_=(15&g)<<12|e(i)<<6|e(i);else if(247>g)_=(7&g)<<18|e(i)<<12|e(i)<<6|e(i);else throw new Error("Invalid character");r.push(String.fromCodePoint(_))}}catch(g){if(t)throw g;r.push("\uFFFD")}return r.join("")}),g.set("utf8",g.get("utf-8")),g.set("utf-16le",()=>{throw new Error("utf-16le decoder not implemented")}),self.TextDecoder=class{constructor(_="utf-8",e={}){const a=g.get(_);if(!a)throw new Error(`TextDecoder polyfill does not support "${_}"`);Object.defineProperty(this,"fatal",{value:!0===e.fatal,writable:!1}),Object.defineProperty(this,"_decoder",{value:a,writable:!1}),Object.defineProperty(this,"encoding",{value:_,writable:!1})}decode(g){return this._decoder(g,this.fatal)}toString(){return"[object TextDecoder]"}},TextDecoder[Symbol.toStringTag]="TextDecoder"}"undefined"==typeof self.isSecureContext&&(self.isSecureContext="https:"===location.protocol)}{function g(g){let _=g_bA.g_da();console.error("Assertion failure: "+g+"\n\nStack trace:\n"+_)}self.assert=function(_,e){_||g(e)}}{g_bA.g_db=function(g){return"number"==typeof g},g_bA.g_dc=function(g){return g_bA.g_db(g)&&isFinite(g)},g_bA.g_dd=function(g){if(!g_bA.g_db(g))throw new TypeError("expected number")},g_bA.g_de=function(g){g_bA.g_df(g)},g_bA.g_dg=function(g,_,e){if(!g_bA.g_db(g)||isNaN(g)||_>g||e<g)throw new RangeError("number outside of range")},g_bA.g_dh=function(...g){for(let _ of g);},g_bA.g_di=function(g){if(!g_bA.g_dc(g))throw new TypeError("expected finite number")},g_bA.g_dj=function(g){g_bA.g_df(g)},g_bA.g_dk=function(...g){for(let _ of g);},g_bA.g_dl=function(g){return"string"==typeof g},g_bA.g_dm=function(g){if(!g_bA.g_dl(g))throw new TypeError("expected string")},g_bA.g_dn=function(g){g_bA.g_df(g)},g_bA.g_do=function(...g){for(let _ of g);},g_bA.g_dp=function(g){if("object"!=typeof g||null===g)return!1;let _=Object.getPrototypeOf(g);return _?_.constructor===Object:null===_},g_bA.g_dq=function(g){if(!g_bA.g_dp(g))throw new TypeError("expected simple object")},g_bA.g_dr=function(g){if(!g_bA.g_df(g)&&!g_bA.g_dp(g))throw new TypeError("expected simple object")},g_bA.g_ds=function(g){return"object"==typeof g&&null!==g&&!Array.isArray(g)},g_bA.g_dt=function(g){if(!g_bA.g_ds(g))throw new TypeError("expected object")},g_bA.g_du=function(g){g_bA.g_df(g)},g_bA.g_dv=function(...g){for(let _ of g);},g_bA.g_dw=function(g){return g_bA.g_dx(g,Blob)&&"string"==typeof g.name},g_bA.g_dy=function(g){if(!g_bA.g_dw(g))throw new TypeError("expected file")},g_bA.g_dz=function(g){g_bA.g_df(g)},g_bA.g_dA=function(g){for(let _ of g)if(!g_bA.g_dw(_))return!1;return!0},g_bA.g_dB=function(g){if(!g_bA.g_dA(g))throw new TypeError("expected array if files")},g_bA.g_dC=function(g){return Array.isArray(g)},g_bA.g_dD=function(g){if(!g_bA.g_dC(g))throw new TypeError("expected array")},g_bA.g_dE=function(g){g_bA.g_df(g)},g_bA.g_dF=function(...g){for(let _ of g);},g_bA.g_dG=function(g){return!!g_bA.g_dC(g)&&(!g.length||!!g_bA.g_dC(g[0]))},g_bA.g_dH=function(g){if(!g_bA.g_dG(g))throw new TypeError("expected 2d array");for(let _ of g)if(!g_bA.g_dC(_))throw new TypeError("expected 2d array")},g_bA.g_dI=function(g){g_bA.g_df(g)},g_bA.g_dJ=function(g){return"function"==typeof g},g_bA.g_dK=function(g,_){if(!g_bA.g_dJ(g))throw new TypeError("expected function");if(!g_bA.g_df(_)&&g!==_)throw new TypeError("expected same function reference")},g_bA.g_dL=function(g){g_bA.g_df(g)},g_bA.g_dM=function(...g){for(let _ of g);},g_bA.g_dN=function(g,..._){if(!g_bA.g_dJ(g))throw new TypeError("expected function");if(!_.length)throw new Error("missing comparison functions");for(let e of _)if(!g_bA.g_df(e)&&g===e)return;throw new TypeError("expected same function reference")},g_bA.g_dO=function(...g){if(!g_bA.g_df(g))for(let _ of g);},g_bA.g_dx=function(g,_){return g instanceof _},g_bA.g_dP=function(g,..._){for(let e of _)if(g_bA.g_dx(g,e))return!0;return!1},g_bA.g_dQ=function(g,_){if(!g_bA.g_dx(g,_))throw new TypeError("unexpected type")},g_bA.g_dR=function(g){g_bA.g_df(g)},g_bA.g_dS=function(g,..._){for(let e of _);},g_bA.g_dT=function(g,..._){if(!g_bA.g_dP(g,..._))throw new TypeError("unexpected type")},g_bA.g_dU=function(g,..._){if(!g_bA.g_df(g)&&!g_bA.g_dP(g,..._))throw new TypeError("unexpected type")},g_bA.g_dV=function(g,_){for(let e of g)if(!g_bA.g_dx(e,_))return!1;return!0},g_bA.g_dW=function(g){for(let _ of g)if(!g_bA.g_dc(_))return!1;return!0},g_bA.g_dX=function(g){for(let _ of g);},g_bA.g_dY=function(g){if(!g_bA.g_df(g))for(let _ of g);},g_bA.g_dZ=function(g,..._){for(let e of g);},g_bA.g_d_=function(g,..._){if(!g_bA.g_df(g))for(let _ of g);},g_bA.g_d$=function(g,_){return!g_bA.g_df(g)&&g_bA.g_dl(g.nodeName)&&(!_||g_bA.g_ea(g.nodeName,_))},g_bA.g_eb=function(g,_){if(g_bA.g_df(g)||!g_bA.g_dl(g.nodeName))throw new TypeError("expected DOM node");if(_&&!g_bA.g_ea(g.nodeName,_))throw new TypeError(`expected DOM '${_}' node`)},g_bA.g_ec=function(g){g_bA.g_df(g)},g_bA.g_ed=function(g,_){return!g_bA.g_df(g)&&g_bA.g_dl(g.tagName)&&(!_||g_bA.g_ea(g.tagName,_))},g_bA.g_ee=function(g,_){if(g_bA.g_df(g)||!g_bA.g_dl(g.tagName))throw new TypeError("expected HTML element");if(_&&!g_bA.g_ea(g.tagName,_))throw new TypeError(`expected HTML '${_}' element`)},g_bA.g_ef=function(g){g_bA.g_df(g)},g_bA.g_eg=function(g){return g instanceof Image||g_bA.g_ed(g,"canvas")||g_bA.g_ed(g,"img")||g instanceof CanvasRenderingContext2D||g instanceof ImageBitmap||g_bA.g_ed(g,"video")},g_bA.g_eh=function(g){if(!g_bA.g_eg(g))throw new TypeError("expected drawable")},g_bA.g_ei=function(g){g_bA.g_df(g)},g_bA.g_ej=function(g){return!!(g instanceof ImageData)||g_bA.g_eg(g)},g_bA.g_ek=function(g){if(!g_bA.g_ej(g))throw new TypeError("expected drawable or image data")},g_bA.g_el=function(g){if(!g_bA.g_df(g)&&!g_bA.g_ej(g))throw new TypeError("expected drawable or image data")},g_bA.g_em=function(g){return"string"==typeof g||g instanceof g_bA.g_en||g instanceof g_bA.g_eo},g_bA.g_ep=function(g){if(!g_bA.g_em(g))throw new TypeError("expected string-like")},g_bA.g_eq=function(g){g_bA.g_df(g)},g_bA.g_er=function(...g){for(let _ of g);},g_bA.g_es=function(){throw new Error("must be overridden")},g_bA.g_et=function(){throw new Error("not yet implemented")},g_bA.g_eu=function(g,..._){let e=g;if("undefined"==typeof e)return!1;for(let a of _){if("undefined"==typeof e[a])return!1;e=e[a]}return!0},g_bA.g_df=function(g){return"undefined"==typeof g||null===g},g_bA.g_ev=function(g){let _=g[0].constructor;for(let e of g)if(e.constructor!==_)return!1;return _},g_bA.g_ew=function(g,_){for(let e of g)if(!(e instanceof _))return!1;return!0};const g=Object.getPrototypeOf(Uint8Array);g_bA.g_ex=function(_){return g_bA.g_dx(_,g)},g_bA.g_ey=function(){},g_bA.g_ez=function(_){g_bA.g_eA(_,g)},g_bA.g_eB=function(g,..._){if(!g_bA.g_eC(g,..._))throw new TypeError("unexpected type")},g_bA.g_eC=function(g,..._){for(const e of _)if(g_bA.g_eD(g,e))return!0;return!1},g_bA.g_eA=function(g,_){if(!g_bA.g_eD(g,_))throw new TypeError("unexpected type")},g_bA.g_eD=function(g,_){for(;g=Object.getPrototypeOf(g);)if(g.constructor.name===_.name)return!0;return!1}}{function _(g,_){let e=g_bA.g_eE(g),a=g_bA.g_eE(_);return"null"===e||"null"===a||"undefined"!==e&&"undefined"!==a&&e===a}function t(g){console.warn("[Defence] "+g+" @",g_bA.g_da())}function n(){if(s=-1,0<o.size||0<e.size){let g=new Set([...o.keys()].map(g=>g_bA.g_eF(g))),_=[...g].join(",");console.warn(`An object derived from DefendedBase was not protected with debugDefend(). This will disable some checks. See the coding guidelines! Possible affected class names: ${_}`),o.clear(),e.clear()}}function r(g){let _=new Set;for(let e in g)_.add(e);return _}function d(g,_){let t=r(_),n=f.get(g);if(n){let _=[];for(let g of n.values())t.has(g)?t.delete(g):_.push(g);g_bA.g_eG(_,[...t]),_.length&&console.warn(`[Defence] '${g_bA.g_eF(g)}' constructor creates inconsistent properties: ${_.join(", ")}`)}else f.set(g,t)}g_bA.g_da=function(){return new Error().stack},g_bA.g_eH=function(){debugger},g_bA.cast=function(g,_){return g&&g instanceof _?g:null},g_bA.g_eF=function(g){return"undefined"==typeof g?"undefined":null===g?"null":"boolean"==typeof g?"<boolean>":g_bA.g_db(g)?"<number>":g_bA.g_dl(g)?"<string>":g_bA.g_dC(g)?"<array>":"symbol"==typeof g?"<"+g.toString()+">":g_bA.g_dJ(g)?g.name&&"Function"!==g.name?g.name:"<anonymous function>":"object"==typeof g?g.constructor&&g.constructor.name&&"Object"!==g.constructor.name?g.constructor.name:"<anonymous object>":"<unknown>"},g_bA.g_eE=function(g){return null===g?"null":Array.isArray(g)?"array":typeof g},g_bA.range=function*(g,_){if(!isFinite(Math.abs(g-_)))throw new Error("Invalid parameters");if(g>_)for(let e=g-1;e>=_;e--)yield e;else for(let e=g;e<_;e++)yield e};let o=new Map,e=new Map,g=new WeakMap,u=new WeakMap;g_bA.g_eI={};const i=new Set(["then","splice"]);g_bA.g_eI.get=function(g,_){return _ in g||"symbol"==typeof _||i.has(_)||t(`Accessed missing property '${_}' from defended object '${g_bA.g_eF(g)}', returning undefined`),u.has(g)&&"symbol"!=typeof _&&!i.has(_)&&t(`Accessed property '${_}' on a released object '${g_bA.g_eF(g)}'\nObject was originally released at: ${u.get(g)})\nCall stack at access: `),g[_]},g_bA.g_eI.set=function(g,a,n){return a in g||o.has(g)||t(`Set non-existent property '${a}' to '${n}' on defended object '${g_bA.g_eF(g)}'`),_(g[a],n)||o.has(g)||t(`Set '${g_bA.g_eE(g[a])}' property '${a}' to type '${g_bA.g_eE(n)}' on defended object '${g_bA.g_eF(g)}'`),u.has(g)&&t(`Set property '${a}' on a released object '${g_bA.g_eF(g)}'\nObject was originally released at: ${u.get(g)})\nCall stack at access: `),g[a]=n,!0},g_bA.g_eI.g_eJ=function(g,_){throw new ReferenceError(`Cannot delete property '${_}' from defended object '${g_bA.g_eF(g)}'`)},g_bA.g_eI.defineProperty=function(g,_){throw new ReferenceError(`Cannot define property '${_}' on defended object '${g_bA.g_eF(g)}'`)},g_bA.g_eI.enumerate=function(g){throw new ReferenceError(`Cannot enumerate defended object '${g_bA.g_eF(g)}'`)};let s=-1;g_bA.g_eK=class{constructor(){if(g_bA.g_bJ&&g_bA.g_cJ.g_cR){let _=new.target,a=Object.create(_.prototype),t=new Proxy(a,g_bA.g_eI);return o.set(a,t),e.set(t,a),g.set(t,a),-1===s&&(s=requestAnimationFrame(n)),t}}},g_bA.g_eL=function(g){if(g_bA.g_bJ&&g_bA.g_cJ.g_cR&&g instanceof g_bA.g_eK){if(!e.has(g))return g;let _=e.get(g);return e.delete(g),o.delete(_),g}return g_bA.g_bI?Object.seal(g):g},g_bA.g_eM=function(g,..._){let a;try{a=new g(..._)}catch(g){throw e.clear(),o.clear(),g}return g_bA.g_bJ&&d(g,a),g_bA.g_eL(a)},g_bA.g_eN=function(_){let e=g.get(_);e&&u.set(e,g_bA.g_da())},g_bA.g_eO=function(_){let e=g.get(_);return!!e&&!!u.get(e)};let f=new Map}{function g(g){return 0===g&&0>1/g}const _=2*Math.PI,t=Math.PI/180,n=180/Math.PI;g_bA.wrap=function(g,_,e){var t=Math.floor;if(g=t(g),_=t(_),e=t(e),g<_){let a=e-(_-g)%(e-_);return a===e?0:a}return _+(g-_)%(e-_)},g_bA.g_eP=function(g,_,a,t,n){return(g-_)*(n-t)/(a-_)+t},g_bA.normalize=function(g,_,e){return(g-_)/(e-_)},g_bA.g_eQ=function(g,_,e){return g<_?_:g>e?e:g},g_bA.g_eR=function(g){return g%=_,0>g&&(g+=_),g},g_bA.g_eS=function(g){return g*t},g_bA.g_eT=function(g){return g*n},g_bA.g_eU=function(g,_,e,a){return Math.hypot(e-g,a-_)},g_bA.g_eV=function(g,_,a,t){const n=a-g,e=t-_;return n*n+e*e},g_bA.g_eW=function(g,_,e,a){return Math.atan2(a-_,e-g)},g_bA.g_eX=function(_,a){var t=Math.cos,n=Math.sin;if(_===a)return 0;let r=n(_),e=t(_),d=n(a),g=t(a),o=r*d+e*g;return 1<=o?0:-1>=o?Math.PI:Math.acos(o)},g_bA.g_eY=function(_,a,t){var n=Math.cos,r=Math.sin;let e=r(_),d=n(_),g=r(a),o=n(a);return Math.acos(e*g+d*o)>t?0<d*g-e*o?g_bA.g_eR(_+t):g_bA.g_eR(_-t):g_bA.g_eR(a)},g_bA.g_eZ=function(_,a){var t=Math.cos,n=Math.sin;let i=n(_),e=t(_),r=n(a),g=t(a);return 0>=e*r-i*g},g_bA.g_e_=function(g,_,e){let a=g_bA.g_eX(g,_);return g_bA.g_eZ(_,g)?g_bA.g_eR(g+a*e):g_bA.g_eR(g-a*e)},g_bA.g_X=function(g,_,e){return g+e*(_-g)},g_bA.g_e$=function(g,_,e){return g===_?0:(e-g)/(_-g)},g_bA.g_fa=function(g,_,e,a,t){return g_bA.g_X(a,t,g_bA.g_e$(g,_,e))},g_bA.g_fb=function(g,_,e,a){return g_bA.g_X(g_bA.g_X(g,_,a),g_bA.g_X(_,e,a),a)},g_bA.g_fc=function(g,_,e,a,t){return g_bA.g_X(g_bA.g_fb(g,_,e,t),g_bA.g_fb(_,e,a,t),t)},g_bA.g_fd=function(g,_,e){return(g+_+(g-_)*Math.cos(e*Math.PI))/2},g_bA.g_fe=function(g){return 0<g&&0==(g-1&g)},g_bA.g_ff=function(g){--g;for(let _=1;32>_;_<<=1)g|=g>>_;return g+1},g_bA.g_fg=function(g,_){return Math.round(g*_)/_},g_bA.g_fh=function(g,_){return Math.floor(g*_)/_},g_bA.g_fi=function(g){return Math.round(1e6*g)/1e6},g_bA.toFixed=function(g,_){let e=g.toFixed(_),a=e.length-1;for(;0<=a&&"0"===e.charAt(a);--a);return 0<=a&&"."===e.charAt(a)&&--a,0>a?e:e.substr(0,a+1)},g_bA.g_fj=function(g,_,e){return g_bA.g_eQ(g,0,255)|g_bA.g_eQ(_,0,255)<<8|g_bA.g_eQ(e,0,255)<<16};const i=1024;g_bA.g_fk=function(g,_,e,t){var n=Math.floor;return g=g_bA.g_eQ(n(1024*g),-8192,8191),_=g_bA.g_eQ(n(1024*_),-8192,8191),e=g_bA.g_eQ(n(1024*e),-8192,8191),t=g_bA.g_eQ(n(1023*t),0,1023),0>g&&(g+=16384),0>_&&(_+=16384),0>e&&(e+=16384),-(16384*(16384*g)*i+16384*_*i+e*i+t)},g_bA.g_fl=function(g,_,e){return g_bA.g_fk(g,_,e,1)},g_bA.g_fm=function(g){if(0<=g)return(255&g)/255;else{let _=Math.floor(-g/274877906944);return 8191<_&&(_-=16384),_/1024}},g_bA.g_fn=function(g){if(0<=g)return((65280&g)>>8)/255;else{let _=Math.floor(-g%274877906944/16777216);return 8191<_&&(_-=16384),_/1024}},g_bA.g_fo=function(g){if(0<=g)return((16711680&g)>>16)/255;else{let _=Math.floor(-g%16777216/i);return 8191<_&&(_-=16384),_/1024}},g_bA.g_fp=function(_){if(g(_))return 0;if(0<=_)return 1;else{const g=Math.floor(-_%i);return g/1023}},g_bA.g_fq=function(g,_){var e=Math.floor;for(g=e(g),_=e(_);0!==_;){let e=_;_=g%_,g=e}return g};const e=[[3,2],[4,3],[5,4],[5,3],[6,5],[14,9],[16,9],[16,10],[21,9]];g_bA.g_fr=function(g,_){var t=Math.abs,n=Math.floor;if(g=n(g),_=n(_),g===_)return[1,1];for(let a of e){let n=g/a[0]*a[1];if(1>t(_-n))return a.slice(0);if(n=g/a[1]*a[0],1>t(_-n))return[a[1],a[0]]}let i=g_bA.g_fq(g,_);return[g/i,_/i]},g_bA.g_fs=function(_,a,d,c,e,f,g,h){var i=Math.abs;let M=0,N=0,b=0,T=0,L=0,z=0,D=0,O=0;if(_<d?(N=_,M=d):(N=d,M=_),e<g?(z=e,L=g):(z=g,L=e),M<z||N>L)return!1;if(a<c?(T=a,b=c):(T=c,b=a),f<h?(O=f,D=h):(O=h,D=f),b<O||T>D)return!1;let E=e-_+g-d,s=f-a+h-c,t=d-_,u=c-a,v=g-e,w=h-f,C=i(u*v-w*t);return!(i(v*s-w*E)>C)&&i(t*s-u*E)<=C},g_bA.g_ft=function(_,a,d,c,e,f,g,h,i,M,N,l){var m=Math.abs;let n=0,b=0,T=0,L=0;if(i<N?(b=i,n=N):(b=N,n=i),f<b||e>n)return!1;if(M<l?(L=M,T=l):(L=l,T=M),h<L||g>T)return!1;let z=i-_+N-d,s=M-a+l-c,t=d-_,u=c-a,v=N-i,w=l-M,D=m(u*v-w*t);return!(m(v*s-w*z)>D)&&m(t*s-u*z)<=D},g_bA.g_fu=function(_,a,t,r,d){let e=0,u=0,s=0,c=0;_<t?(e=_,u=t):(e=t,u=_),a<r?(s=a,c=r):(s=r,c=a);const M=d.g_fv(),N=d.g_fw(),b=d.g_fx(),l=d.g_fy(),m=d.g_fz(),n=d.g_fA(),o=d.g_fB(),p=d.g_fC();return g_bA.g_ft(_,a,t,r,e,u,s,c,M,N,b,l)||g_bA.g_ft(_,a,t,r,e,u,s,c,b,l,m,n)||g_bA.g_ft(_,a,t,r,e,u,s,c,m,n,o,p)||g_bA.g_ft(_,a,t,r,e,u,s,c,o,p,M,N)},g_bA.g_fD=function(_,a,t,n,r){let e=0,d=0,o=0,u=0;_<t?(e=_,d=t):(e=t,d=_),a<n?(o=a,u=n):(o=n,u=a);let s=0;for(let g=r.length-4;s<=g;s+=2)if(g_bA.g_ft(_,a,t,n,e,d,o,u,r[s],r[s+1],r[s+2],r[s+3]))return!0;return g_bA.g_ft(_,a,t,n,e,d,o,u,r[s],r[s+1],r[0],r[1])}}{let g=null,_="";if("undefined"!=typeof document){g=document;const e=document.querySelector("base");_=e&&e.hasAttribute("href")?e.getAttribute("href"):"",_&&(_.startsWith("/")&&(_=_.substr(1)),!_.endsWith("/")&&(_+="/"))}g_bA.g_fE=function(){if(!g)return"";const e=g.location;return g_bA.g_fF(e.origin+e.pathname)+_},g_bA.g_fF=function(g){if(!g.length)return g;if(g.endsWith("/")||g.endsWith("\\"))return g;const _=Math.max(g.lastIndexOf("/"),g.lastIndexOf("\\"));return-1===_?"":g.substr(0,_+1)},g_bA.g_fG=function(g){if(!g.length)return g;if(g.charAt(g.length-1),g.endsWith("/")||g.endsWith("\\"))return"";const _=Math.max(g.lastIndexOf("/"),g.lastIndexOf("\\"));return-1===_?g:g.substr(_+1)},g_bA.g_fH=function(g){if(g.types)for(let _=0;_<g.types.length;_++)if("Files"===g.types[_])return!0;return!1},g_bA.g_fI=function(g){return-1!==g.type.search(/image\/.*/)},g_bA.g_fJ=function(g){return"image/svg+xml"===g.type},g_bA.g_fK=function(g){let _=g.lastIndexOf(".");return 1>_?"":g.substr(_)},g_bA.g_fL=function(g){let _=g.lastIndexOf(".");return 1>_?g:g.substr(0,_)},g_bA.g_fM=function(g){return g.replace(/\\/g,"/")},g_bA.g_fN=function(_){_=g_bA.g_fM(_);let t=/^\w\:\//.exec(_);t?(t=t[0],_=_.slice(3)):t="";const n=_.lastIndexOf("/")+1;let i="",r=_,o="",u;0!=n&&(i=_.slice(0,n-1),r=_.slice(n)),u=r;const s=r.lastIndexOf(".");return 0<s&&(o=r.slice(s),u=r.slice(0,-o.length)),{dir:i,g_fO:r,name:u,root:t,g_fP:o}},g_bA.g_fQ=function(g,_){return new Promise(e=>{self.setTimeout(e,g,_)})},g_bA.g_fR=function(g){try{g()}catch(g){g_bA.g_bI&&console.warn("Swallowed exception: ",g)}},g_bA.noop=function(){},g_bA.g_ea=function(g,_){return"string"==typeof g&&"string"==typeof _&&g.length===_.length&&(g===_||g.toLowerCase()===_.toLowerCase())},g_bA.g_fS=function(g,_){if(g_bA.g_cJ.g_cZ)return void g.sort(_);const a=g.map((g,_)=>[g,_]);a.sort((g,e)=>{const a=_(g[0],e[0]);return 0===a?g[1]-e[1]:a});for(let t=0,n=g.length;t<n;++t)g[t]=a[t][0]},g_bA.g_fT=function(g,_,e){g[e++]=_[0],g[e++]=_[1],g[e++]=_[2],g[e++]=_[3],g[e++]=_[4],g[e++]=_[5],g[e++]=_[6],g[e++]=_[7],g[e++]=_[8],g[e++]=_[9],g[e++]=_[10],g[e++]=_[11],g[e++]=_[12],g[e++]=_[13],g[e++]=_[14],g[e]=_[15]},g_bA.g_fU=function(g,_){g.length=_},g_bA.g_fV=function(g){g&&0!==g.length&&g_bA.g_fU(g,0)},g_bA.g_fW=function(g){if(g){for(let _=0,e;_<g.length;_++)e=g[_],g_bA.g_fU(e,0);g_bA.g_fU(g,0)}},g_bA.g_fX=function(g,_,a){_|=0;const t=g.length;if(!(_<=t))for(let n=t;n<_;++n)g.push(a)},g_bA.g_fY=function(g,_,e){_|=0;const a=g.length;_<a?g_bA.g_fU(g,_):_>a&&g_bA.g_fX(g,_,e)},g_bA.g_fZ=function(g,_){g_bA.g_fV(g),g_bA.g_eG(g,_)},g_bA.g_eG=function(g,_){for(let e=0,a=_.length;e<a;++e)g.push(_[e])},g_bA.g_f_=function(g,_){if(_=Math.floor(_),!(0>_||_>=g.length)){let e=g.length-1;for(let a=_;a<e;++a)g[a]=g[a+1];g_bA.g_fU(g,e)}},g_bA.g_f$=function(g,_){let e=g.indexOf(_);0<=e&&g.splice(e,1)},g_bA.g_ga=function(g,_){let e=g.length;if(_.length!==e)return!1;for(let a=0;a<e;++a)if(g[a]!==_[a])return!1;return!0},g_bA.g_gb=function(_,a){let t=[],n=0;for(let i=0,r=_.length,g;i<r;++i)g=_[i],a(g)?t.push(g):(_[n]=g,++n);return g_bA.g_fU(_,n),t},g_bA.g_gc=function(g,_){const e=g.length;let a=0;for(let t=0,e=g.length,n;t<e;++t)n=g[t],_.has(n)||(g[a++]=n);return g_bA.g_fU(g,a),e-a},g_bA.g_gd=function(g,_){return g===Math.floor(g)&&0<=g&&g<_.length},g_bA.g_ge=function(g,_){if(!g_bA.g_gd(g,_))throw new RangeError("array index out of bounds")},g_bA.g_gf=function(g){return g.slice()},g_bA.g_gg=function(g,_){let e=[];for(let t of g)if(g_bA.g_ds(t)){let g=_(t);if(!g)throw new Error("missing clone");if(g.constructor!==t.constructor)throw new Error("object is not a clone");e.push(g)}else g_bA.g_dC(t)?e.push(g_bA.g_gg(t,_)):e.push(t);return e},g_bA.g_gh=function(g){let _=[];for(let e of g)_.push(e.slice());return _},g_bA.g_gi=function(g,_){return new Set([...g,..._])},g_bA.first=function(g){for(let _ of g)return _;return null},g_bA.g_gj=function(g,_){return!g!=!_},g_bA.g_gk=function(g,_,e){return 0===_?g===e:1===_?g!==e:2===_?g<e:3===_?g<=e:4===_?g>e:5==_&&g>=e},g_bA.g_gl=function(g){for(let _ in g)if(g.hasOwnProperty(_))return!0;return!1},g_bA.g_gm=function(_,a){return _.length?new Promise((t,n)=>{const r=[];let e=0,i=!1;for(let g=0,d=_.length;g<d;++g)r.push(void 0),_[g].then(n=>{i||(r[g]=n,++e,e===_.length?t(r):a(e,_.length))}).catch(g=>{i=!0,n(g)})}):Promise.resolve([])};let e=[];g_bA.g_gn=function(g){e.push(g)},g_bA.g_go=function(){let g=0;for(let _ of e){let e=_();g+=e}return Math.floor(g)}}"use strict",g_bA.g_gp=function(g){return /^(?:[a-z]+:)?\/\//.test(g)||"data:"===g.substr(0,5)||"blob:"===g.substr(0,5)},g_bA.g_gq=function(g){return!g_bA.g_gp(g)},g_bA.g_gr=function(g){if(!g.ok)throw new Error(`fetch '${g.url}' response returned ${g.status} ${g.statusText}`)},g_bA.g_gs=function(g,_){return fetch(g,_).then(g=>(g_bA.g_gr(g),g))},g_bA.g_gt=function(g){return g_bA.g_gs(g).then(g=>g.text())},g_bA.g_gu=function(g){return g_bA.g_gs(g).then(g=>g.json())},g_bA.g_gv=function(g){return g_bA.g_gs(g).then(g=>g.blob())},g_bA.g_gw=function(g){return g_bA.g_gs(g).then(g=>g.arrayBuffer())},g_bA.g_gx=function(g){return new Promise((_,e)=>{const a=new Image;a.onload=()=>_(a),a.onerror=g=>e(g),a.src=g})},g_bA.g_gy=function(g){return new Promise((_,e)=>{const a=new FileReader;a.onload=()=>_(a.result),a.onerror=()=>e(a.error),a.readAsArrayBuffer(g)})},g_bA.g_gz=function(g){return new Promise((_,e)=>{const a=new FileReader;a.onload=()=>_(a.result),a.onerror=()=>e(a.error),a.readAsText(g)})},g_bA.g_gA=function(g){return g_bA.g_gz(g).then(g=>JSON.parse(g))},g_bA.g_gB=async function(g,_){let e=URL.createObjectURL(g);try{const g=await g_bA.g_gx(e);return URL.revokeObjectURL(e),e="",_&&"function"==typeof g.decode&&(await g.decode()),g}finally{e&&URL.revokeObjectURL(e)}},g_bA.g_gC=function(g,_){if("undefined"!=typeof document&&"function"==typeof document.createElement){const e=document.createElement("canvas");return e.width=g,e.height=_,e}return new OffscreenCanvas(g,_)},g_bA.g_cT=function(g,_,e){return"number"!=typeof e&&(e=1),_=_||"image/png",e=g_bA.g_eQ(e,0,1),g.toBlob?new Promise(a=>g.toBlob(a,_,e)):g.convertToBlob?g.convertToBlob({type:_,quality:e}):g_bA.g_gD(()=>g_bA.g_gE(g,_,e))},g_bA.g_gE=function(g,_,e){return"number"!=typeof e&&(e=1),_=_||"image/png",e=g_bA.g_eQ(e,0,1),g_bA.g_gF(g.toDataURL(_,e))},g_bA.g_gF=function(g){const _=g_bA.g_gG(g);return g_bA.g_gH(_.data,_.g_gI)},g_bA.g_gG=function(_){if("data:"!==_.substr(0,5))throw new URIError("expected data: uri");let a=_.indexOf(",");if(0>a)throw new URIError("expected comma in data: uri");let t=_.substring(5,a),n=_.substring(a+1),e=t.split(";"),r=e[0]||"",g=e[1],d=e[2],i;return i="base64"===g||"base64"===d?atob(n):decodeURIComponent(n),{g_gI:r,data:i}},g_bA.g_gH=function(_,a){let t=_.length,e=t>>2,n=new Uint8Array(t),g=new Uint32Array(n.buffer,0,e),i,r;for(i=0,r=0;i<e;++i)g[i]=_.charCodeAt(r++)|_.charCodeAt(r++)<<8|_.charCodeAt(r++)<<16|_.charCodeAt(r++)<<24;for(let g=3&t;g--;)n[r]=_.charCodeAt(r),++r;return a?new Blob([n],{type:a}):new Blob([n])},g_bA.g_gJ=function(g,_,a){const t=g_bA.g_gC(g.width,g.height),n=t.getContext("2d");return n.drawImage(g,0,0),g_bA.g_cT(t,_,a)},g_bA.g_gK=function(g,_,a){const t=g_bA.g_gC(g.width,g.height),n=t.getContext("2d");return n.putImageData(g,0,0),g_bA.g_gE(t,_,a)},g_bA.g_gL=function(g,_,t){if(g_bA.g_cJ.g_cO)return createImageBitmap(g,{premultiplyAlpha:"none"}).then(g=>g_bA.g_gJ(g,_,t));if(g_bA.g_cJ.ImageBitmap)return createImageBitmap(g).then(g=>g_bA.g_gJ(g,_,t));else{const a=g_bA.g_gC(g.width,g.height),n=a.getContext("2d");return n.putImageData(g,0,0),g_bA.g_cT(a,_,t)}},g_bA.g_gM=function(g,_){g.clear();for(const e of _)g.add(e)},g_bA.g_gN=function(g){const _=Object.create(null);for(const[e,a]of g.entries())_[e]=a;return _},g_bA.g_gO=function(g,_){_.clear();for(const[e,a]of Object.entries(g))_.set(e,a)},g_bA.g_gP=function g(_){if("object"==typeof _&&null!==_){if(_ instanceof Set)return{_c3type_:"set",data:[..._].map(_=>g(_))};if(_ instanceof Map)return{_c3type_:"map",data:[..._].map(_=>[_[0],g(_[1])])};else{const a=Object.create(null);for(const[t,n]of Object.entries(_))a[t]=g(n);return a}}return _},g_bA.g_gQ=function g(_){if("object"==typeof _&null!==_){if("set"===_._c3type_)return new Set(_.data.map(_=>g(_)));if("map"===_._c3type_)return new Map(_.data.map(_=>[_[0],g(_[1])]));else{const a=Object.create(null);for(const[t,n]of Object.entries(_))a[t]=g(n);return a}}return _},g_bA.g_gR=function(g){let _="",e=!1;for(const a of g)"-"===a?e=!0:e?(_+=a.toUpperCase(),e=!1):_+=a;return _},g_bA.g_gS=function(g){return"object"==typeof g&&"function"==typeof g.next},"use strict";{function g(g){return 0===g.length?"00":1===g.length?"0"+g:g}function _(g,_,e){return 0>e&&(e+=1),1<e&&(e-=1),e<1/6?g+6*(_-g)*e:e<1/2?_:e<2/3?g+6*((_-g)*(2/3-e)):g}const t=/([0-9.]+),([0-9.]+)\%?,([0-9.]+)\%?/i,n=/([0-9.]+),([0-9.]+)\%?,([0-9.]+)\%?,([0-9.])/i;g_bA.g_gT=class{constructor(g,_,a,e){this.g_gU=0,this.g_gV=0,this.g_gW=0,this.g_gX=0,g instanceof g_bA.g_gT?this.set(g):this.g_gY(g||0,_||0,a||0,e||0)}g_gZ(g,_,e){return this.g_gU=+g,this.g_gV=+_,this.g_gW=+e,this.g_eQ(),this}g_gY(g,_,a,e){return this.g_gU=+g,this.g_gV=+_,this.g_gW=+a,this.g_gX=+e,this.g_eQ(),this}set(g){return this.g_gU=g.g_gU,this.g_gV=g.g_gV,this.g_gW=g.g_gW,this.g_gX=g.g_gX,this}g_r(g){return this.set(g)}add(g){this.g_gU+=g.g_gU,this.g_gV+=g.g_gV,this.g_gW+=g.g_gW,this.g_gX+=g.g_gX,this.g_eQ()}g_g_(g,_,a,e=0){this.g_gU+=+g,this.g_gV+=+_,this.g_gW+=+a,this.g_gX+=+e,this.g_eQ()}g_g$(g){var _=Math.min,e=Math.max;this.g_ha(e(this.g_gU,g.g_gU)-_(this.g_gU,g.g_gU)),this.g_hb(e(this.g_gV,g.g_gV)-_(this.g_gV,g.g_gV)),this.g_hc(e(this.g_gW,g.g_gW)-_(this.g_gW,g.g_gW)),this.g_hd(e(this.g_gX,g.g_gX)-_(this.g_gX,g.g_gX)),this.g_eQ()}g_he(g){this.g_gU=g.g_gU,this.g_gV=g.g_gV,this.g_gW=g.g_gW}g_ha(g){this.g_gU=g_bA.g_eQ(+g,0,1)}g_hf(){return this.g_gU}g_hb(g){this.g_gV=g_bA.g_eQ(+g,0,1)}g_hg(){return this.g_gV}g_hc(g){this.g_gW=g_bA.g_eQ(+g,0,1)}g_hh(){return this.g_gW}g_hd(g){this.g_gX=g_bA.g_eQ(+g,0,1)}g_hi(){return this.g_gX}clone(){return g_bA.g_eM(g_bA.g_gT,this.g_gU,this.g_gV,this.g_gW,this.g_gX)}toArray(){return[this.g_gU,this.g_gV,this.g_gW,this.g_gX]}g_hj(){return new Float64Array(this.toArray())}g_hk(g,_){g[_++]=this.g_gU,g[_++]=this.g_gV,g[_++]=this.g_gW,g[_]=this.g_gX}g_n(g){return this.g_gU===g.g_gU&&this.g_gV===g.g_gV&&this.g_gW===g.g_gW&&this.g_gX===g.g_gX}g_hl(g){return this.g_gU===g.g_gU&&this.g_gV===g.g_gV&&this.g_gW===g.g_gW}g_hm(g,_,e){return this.g_gU===g&&this.g_gV===_&&this.g_gW===e}g_hn(g,_,a,e){return this.g_gU===g&&this.g_gV===_&&this.g_gW===a&&this.g_gX===e}multiply(g){this.g_gU*=g.g_gU,this.g_gV*=g.g_gV,this.g_gW*=g.g_gW,this.g_gX*=g.g_gX}g_ho(g){this.g_gU*=g,this.g_gV*=g,this.g_gW*=g,this.g_gX*=g}g_hp(){return this.g_gU*=this.g_gX,this.g_gV*=this.g_gX,this.g_gW*=this.g_gX,this}g_hq(){return this.g_gU/=this.g_gX,this.g_gV/=this.g_gX,this.g_gW/=this.g_gX,this}g_eQ(){return this.g_gU=g_bA.g_eQ(this.g_gU,0,1),this.g_gV=g_bA.g_eQ(this.g_gV,0,1),this.g_gW=g_bA.g_eQ(this.g_gW,0,1),this.g_gX=g_bA.g_eQ(this.g_gX,0,1),this}g_hr(g){this.g_gU=g_bA.g_fm(g),this.g_gV=g_bA.g_fn(g),this.g_gW=g_bA.g_fo(g),this.g_gX=g_bA.g_fp(g)}g_hs(_,a,t){const n=g_bA.g_dc(_)?_:this.g_hf(),e=g_bA.g_dc(a)?a:this.g_hg(),i=g_bA.g_dc(t)?t:this.g_hh();return`rgb(${100*n}%, ${100*e}%, ${100*i}%)`}g_ht(_,a,t,e){const n=g_bA.g_dc(_)?_:this.g_hf(),r=g_bA.g_dc(a)?a:this.g_hg(),i=g_bA.g_dc(t)?t:this.g_hh(),g=g_bA.g_dc(e)?e:this.g_hi();return`rgba(${100*n}%, ${100*r}%, ${100*i}%, ${g})`}g_hu(){var _=Math.round;const a=_(255*this.g_hf()),t=_(255*this.g_hg()),n=_(255*this.g_hh());return"#"+g(a.toString(16))+g(t.toString(16))+g(n.toString(16))}g_hv(g){if("string"!=typeof g)return!1;g=g.trim(),"#"===g.charAt(0)&&(g=g.substr(1));let _,e,t;if(3===g.length)_=parseInt(g[0],16)/15,e=parseInt(g[1],16)/15,t=parseInt(g[2],16)/15;else if(6===g.length)_=parseInt(g.substr(0,2),16)/255,e=parseInt(g.substr(2,2),16)/255,t=parseInt(g.substr(4,2),16)/255;else return!1;return isFinite(_)&&this.g_ha(_),isFinite(e)&&this.g_hb(e),isFinite(t)&&this.g_hc(t),this.g_hd(1),!0}g_hw(){var g=Math.round;const _=g(255*this.g_hf()),e=g(255*this.g_hg()),a=g(255*this.g_hh());return`${_}, ${e}, ${a}`}g_hx(){var g=Math.round;const _=g(255*this.g_hf()),e=g(255*this.g_hg()),a=g(255*this.g_hh());return[_,e,a]}g_hy(g){if("string"!=typeof g)return!1;g=g.replace(/^rgb\(|\)|%/,"");const _=g.split(",");if(3>_.length)return!1;const t=parseInt(_[0].trim(),10)/255,n=parseInt(_[1].trim(),10)/255,i=parseInt(_[2].trim(),10)/255;return isFinite(t)&&this.g_ha(t),isFinite(n)&&this.g_hb(n),isFinite(i)&&this.g_hc(i),this.g_hd(1),!0}g_hz(g){if("string"!=typeof g)return!1;g=g.replace(/^rgb\(|\)|%/,"");const _=g.split(",");if(3>_.length)return!1;const t=parseInt(_[0].trim(),10)/100,n=parseInt(_[1].trim(),10)/100,i=parseInt(_[2].trim(),10)/100;return isFinite(t)&&this.g_ha(t),isFinite(n)&&this.g_hb(n),isFinite(i)&&this.g_hc(i),this.g_hd(1),!0}g_hA(g){if("string"!=typeof g)return!1;g=g.replace(/^rgba\(|\)|%/,"");const _=g.split(",");if(4>_.length)return!1;const t=parseInt(_[0].trim(),10)/255,n=parseInt(_[1].trim(),10)/255,i=parseInt(_[2].trim(),10)/255,e=parseFloat(_[3].trim());return isFinite(t)&&this.g_ha(t),isFinite(n)&&this.g_hb(n),isFinite(i)&&this.g_hc(i),isFinite(e)&&this.g_hd(e),!0}g_hB(g){if("string"!=typeof g)return!1;g=g.replace(/^rgba\(|\)|%/,"");const _=g.split(",");if(4>_.length)return!1;const t=parseInt(_[0].trim(),10)/100,n=parseInt(_[1].trim(),10)/100,i=parseInt(_[2].trim(),10)/100,e=parseFloat(_[3].trim());return isFinite(t)&&this.g_ha(t),isFinite(n)&&this.g_hb(n),isFinite(i)&&this.g_hc(i),isFinite(e)&&this.g_hd(e),!0}g_hC(g){if("string"!=typeof g)return!1;if(g=g.replace(/\s+/,""),g.includes(",")){if(g.startsWith("rgb("))return g.includes("%")?this.g_hz(g):this.g_hy(g);if(g.startsWith("rgba("))return g.includes("%")?this.g_hB(g):this.g_hA(g);if(g.startsWith("hsl(")||g.startsWith("hsla("))return this.g_hD(g);else{const _=g.split(",");return g.includes("%")?3===_.length?this.g_hz(g):4===_.length&&this.g_hB(g):3===_.length?this.g_hy(g):4===_.length&&this.g_hA(g)}}else return this.g_hv(g)}toJSON(){return[this.g_gU,this.g_gV,this.g_gW,this.g_gX]}g_hE(t,n,r,o){let u,s,l;if(t%=360,n=g_bA.g_eQ(n,0,100),r=g_bA.g_eQ(r,0,100),o=g_bA.g_eQ(o,0,1),t/=360,n/=100,r/=100,0===n)u=s=l=r;else{const g=.5>r?r*(1+n):r+n-r*n,e=2*r-g;u=_(e,g,t+1/3),s=_(e,g,t),l=_(e,g,t-1/3)}return this.g_ha(u),this.g_hb(s),this.g_hc(l),this.g_hd(o),this}g_hD(g){const _=g.replace(/ |hsl|hsla|\(|\)|;/gi,""),a=t.exec(_),e=n.exec(_);return a&&4===a.length?(this.g_hE(+a[1],+a[2],+a[3],1),!0):!!(e&&5===e.length)&&(this.g_hE(+a[1],+a[2],+a[3],+a[4]),!0)}g_hF(){var _=Math.round;const t=this.g_gU,e=this.g_gV,n=this.g_gW,g=this.g_gX,r=Math.max(t,e,n),a=Math.min(t,e,n);let i=(r+a)/2,d,o;if(r===a)d=o=0;else{const g=r-a;o=.5<i?g/(2-r-a):g/(r+a),r===t?d=(e-n)/g+(e<n?6:0):r===e?d=(n-t)/g+2:r===n?d=(t-e)/g+4:void 0,d/=6}return`hsla(${_(360*d)}, ${_(100*o)}%, ${_(100*i)}%, ${g})`}g_hG(g){!Array.isArray(g)||3>g.length||(this.g_gU=g[0],this.g_gV=g[1],this.g_gW=g[2],this.g_gX=4<=g.length?g[3]:1)}set r(g){this.g_ha(g)}get r(){return this.g_hf()}set g_hH(g){this.g_hb(g)}get g_hH(){return this.g_hg()}set b(g){this.g_hc(g)}get b(){return this.g_hh()}set a(g){this.g_hd(g)}get a(){return this.g_hi()}g_hI(g,_){switch(g){case 0:this.g_ha(_);break;case 1:this.g_hb(_);break;case 2:this.g_hc(_);break;case 3:this.g_hd(_);break;default:throw new RangeError("invalid color index");}}g_hJ(g){switch(g){case 0:return this.g_hf();case 1:return this.g_hg();case 2:return this.g_hh();case 3:return this.g_hi();default:throw new RangeError("invalid color index");}}static g_hK(g,_){var a=Math.min,t=Math.max;const n=new g_bA.g_gT;return n.g_ha(t(g.g_gU,_.g_gU)-a(g.g_gU,_.g_gU)),n.g_hb(t(g.g_gV,_.g_gV)-a(g.g_gV,_.g_gV)),n.g_hc(t(g.g_gW,_.g_gW)-a(g.g_gW,_.g_gW)),n.g_hd(t(g.g_gX,_.g_gX)-a(g.g_gX,_.g_gX)),n}},g_bA.g_gT.g_hL=Object.freeze(g_bA.g_eM(g_bA.g_gT,1,1,1,1)),g_bA.g_gT.g_hM=Object.freeze(g_bA.g_eM(g_bA.g_gT,0,0,0,1)),g_bA.g_gT.g_hN=Object.freeze(g_bA.g_eM(g_bA.g_gT,0,0,0,0))}"use strict",g_bA.g_hO=class{constructor(g,_){this.g_hP=0,this.g_hQ=0,g instanceof g_bA.g_hO?this.g_r(g):this.set(g||0,_||0)}set(g,_){this.g_hP=+g,this.g_hQ=+_}g_r(g){this.g_hP=g.g_hP,this.g_hQ=g.g_hQ}g_n(g){return this.g_hP===g.g_hP&&this.g_hQ===g.g_hQ}g_hR(g){this.g_hP=+g}g_hS(){return this.g_hP}g_hT(g){this.g_hQ=+g}g_hU(){return this.g_hQ}toArray(){return[this.g_hP,this.g_hQ]}g_hj(){return new Float64Array(this.toArray())}g_hk(g,_){g[_++]=this.g_hP,g[_]=this.g_hQ}offset(g,_){this.g_hP+=+g,this.g_hQ+=+_}scale(g,_){this.g_hP*=g,this.g_hQ*=_}round(){var g=Math.round;this.g_hP=g(this.g_hP),this.g_hQ=g(this.g_hQ)}floor(){var g=Math.floor;this.g_hP=g(this.g_hP),this.g_hQ=g(this.g_hQ)}ceil(){var g=Math.ceil;this.g_hP=g(this.g_hP),this.g_hQ=g(this.g_hQ)}angle(){return g_bA.g_eW(0,0,this.g_hP,this.g_hQ)}g_hV(){return this.g_hP*this.g_hP+this.g_hQ*this.g_hQ}length(){return Math.sqrt(this.g_hV())}g_hW(g,_){const e=this.g_hP*_-this.g_hQ*g;this.g_hQ=this.g_hQ*_+this.g_hP*g,this.g_hP=e}rotate(g){0===g||this.g_hW(Math.sin(g),Math.cos(g))}g_hX(g,_,e){0===g||_===this.g_hP&&e===this.g_hQ||(this.g_hP-=_,this.g_hQ-=e,this.g_hW(Math.sin(g),Math.cos(g)),this.g_hP+=+_,this.g_hQ+=+e)}move(g,_){0===_||(this.g_hP+=Math.cos(g)*_,this.g_hQ+=Math.sin(g)*_)}normalize(){const g=this.length();0!==g&&1!==g&&(this.g_hP/=g,this.g_hQ/=g)}g_eQ(g,_){this.g_hP=g_bA.g_eQ(this.g_hP,g,_),this.g_hQ=g_bA.g_eQ(this.g_hQ,g,_)}},"use strict",g_bA.Rect=class{constructor(g,_,e,a){this.g_hY=0,this.g_hZ=0,this.g_h_=0,this.g_h$=0,g instanceof g_bA.Rect?this.g_r(g):this.set(g||0,_||0,e||0,a||0)}set(g,_,e,a){this.g_hY=+g,this.g_hZ=+_,this.g_h_=+e,this.g_h$=+a}g_ia(g,_,e,t){g=+g,_=+_,this.g_hY=g,this.g_hZ=_,this.g_h_=g+ +e,this.g_h$=_+ +t}g_r(g){this.g_hY=+g.g_hY,this.g_hZ=+g.g_hZ,this.g_h_=+g.g_h_,this.g_h$=+g.g_h$}clone(){return new g_bA.Rect(this.g_hY,this.g_hZ,this.g_h_,this.g_h$)}static g_ib(g,_){var a=Math.max,t=Math.min;const n=new g_bA.Rect;return n.g_ic(t(g.g_hY,_.g_hY)),n.g_id(t(g.g_hZ,_.g_hZ)),n.g_ie(a(g.g_h_,_.g_h_)),n.g_if(a(g.g_h$,_.g_h$)),n}static g_ig(g){return new g_bA.Rect(g.left,g.top,g.right,g.bottom)}g_n(g){return this.g_hY===g.g_hY&&this.g_hZ===g.g_hZ&&this.g_h_===g.g_h_&&this.g_h$===g.g_h$}g_ic(g){this.g_hY=+g}g_ih(){return this.g_hY}g_id(g){this.g_hZ=+g}g_ii(){return this.g_hZ}g_ie(g){this.g_h_=+g}g_ij(){return this.g_h_}g_if(g){this.g_h$=+g}g_ik(){return this.g_h$}toArray(){return[this.g_hY,this.g_hZ,this.g_h_,this.g_h$]}g_hj(){return new Float64Array(this.toArray())}g_hk(g,_){g[_++]=this.g_hY,g[_++]=this.g_hZ,g[_++]=this.g_h_,g[_]=this.g_h$}g_il(g,_){g[_++]=this.g_hY,g[_++]=this.g_hZ,g[_++]=this.g_h_,g[_++]=this.g_hZ,g[_++]=this.g_h_,g[_++]=this.g_h$,g[_++]=this.g_hY,g[_]=this.g_h$}width(){return this.g_h_-this.g_hY}height(){return this.g_h$-this.g_hZ}g_im(){return(this.g_hY+this.g_h_)/2}g_in(){return(this.g_hZ+this.g_h$)/2}offset(g,_){this.g_hY+=+g,this.g_hZ+=+_,this.g_h_+=+g,this.g_h$+=+_}offsetLeft(g){this.g_hY+=+g}offsetTop(g){this.g_hZ+=+g}g_io(g){this.g_h_+=+g}g_ip(g){this.g_h$+=+g}g_iq(g){if("x"!==g)throw new Error("invalid axis, only 'x' supported");this.g_h$=this.g_hZ<this.g_h$?this.g_hY<this.g_h_?this.g_hZ+this.width():this.g_hZ-this.width():this.g_hY<this.g_h_?this.g_hZ-this.width():this.g_hZ+this.width()}g_ir(g,_){this.g_hY-=g,this.g_hZ-=_,this.g_h_+=+g,this.g_h$+=+_}g_is(g,_){this.g_hY+=+g,this.g_hZ+=+_,this.g_h_-=g,this.g_h$-=_}multiply(g,_){this.g_hY*=g,this.g_hZ*=_,this.g_h_*=g,this.g_h$*=_}g_P(g,_){this.g_hY/=g,this.g_hZ/=_,this.g_h_/=g,this.g_h$/=_}g_it(g){this.g_hY=+g-this.g_hY,this.g_h_=+g-this.g_h_}g_iu(g){this.g_hZ=+g-this.g_hZ,this.g_h$=+g-this.g_h$}g_iv(){const g=this.g_hY;this.g_hY=this.g_h_,this.g_h_=g}g_iw(){const g=this.g_hZ;this.g_hZ=this.g_h$,this.g_h$=g}g_ix(g){const _=this.g_hZ;this.g_hZ=+g-this.g_h$,this.g_h$=+g-_}round(){var g=Math.round;this.g_hY=g(this.g_hY),this.g_hZ=g(this.g_hZ),this.g_h_=g(this.g_h_),this.g_h$=g(this.g_h$)}g_iy(){var g=Math.floor,_=Math.ceil;this.g_hY=_(this.g_hY),this.g_hZ=_(this.g_hZ),this.g_h_=g(this.g_h_),this.g_h$=g(this.g_h$)}g_iz(){var g=Math.floor,_=Math.ceil;this.g_hY=g(this.g_hY),this.g_hZ=g(this.g_hZ),this.g_h_=_(this.g_h_),this.g_h$=_(this.g_h$)}floor(){var g=Math.floor;this.g_hY=g(this.g_hY),this.g_hZ=g(this.g_hZ),this.g_h_=g(this.g_h_),this.g_h$=g(this.g_h$)}ceil(){var g=Math.ceil;this.g_hY=g(this.g_hY),this.g_hZ=g(this.g_hZ),this.g_h_=g(this.g_h_),this.g_h$=g(this.g_h$)}g_eQ(g,_,a,t){this.g_hY<g&&(this.g_hY=+g),this.g_hZ<_&&(this.g_hZ=+_),this.g_h_>a&&(this.g_h_=+a),this.g_h$>t&&(this.g_h$=+t)}g_iA(g,_,a,t){this.g_hY<g&&(this.g_hY=+g),this.g_hZ>_&&(this.g_hZ=+_),this.g_h_>a&&(this.g_h_=+a),this.g_h$<t&&(this.g_h$=+t)}normalize(){this.g_hY>this.g_h_&&this.g_iv(),this.g_hZ>this.g_h$&&this.g_iw()}g_iB(g){return!(g.g_h_<this.g_hY||g.g_h$<this.g_hZ||g.g_hY>this.g_h_||g.g_hZ>this.g_h$)}g_iC(g,_,e){return!(g.g_h_+_<this.g_hY||g.g_h$+e<this.g_hZ||g.g_hY+_>this.g_h_||g.g_hZ+e>this.g_h$)}g_iD(g,_){return g>=this.g_hY&&g<=this.g_h_&&_>=this.g_hZ&&_<=this.g_h$}g_iE(g){return g.g_hY>=this.g_hY&&g.g_hZ>=this.g_hZ&&g.g_h_<=this.g_h_&&g.g_h$<=this.g_h$}g_iF(g){g.g_hY<this.g_hY&&(this.g_hY=+g.g_hY),g.g_hZ<this.g_hZ&&(this.g_hZ=+g.g_hZ),g.g_h_>this.g_h_&&(this.g_h_=+g.g_h_),g.g_h$>this.g_h$&&(this.g_h$=+g.g_h$)}g_iG(g){this.g_hY=g_bA.g_X(g.g_hY,g.g_h_,this.g_hY),this.g_hZ=g_bA.g_X(g.g_hZ,g.g_h$,this.g_hZ),this.g_h_=g_bA.g_X(g.g_hY,g.g_h_,this.g_h_),this.g_h$=g_bA.g_X(g.g_hZ,g.g_h$,this.g_h$)}},"use strict";{function g(t,g,a,n){t<g?a<n?(_=t<a?t:a,e=g>n?g:n):(_=t<n?t:n,e=g>a?g:a):a<n?(_=g<a?g:a,e=t>n?t:n):(_=g<n?g:n,e=t>a?t:a)}let _=0,e=0;g_bA.g_iH=class{constructor(_,a,t,n,i,e,r,g){this.g_iI=0,this.g_iJ=0,this.g_iK=0,this.g_iL=0,this.g_iM=0,this.g_iN=0,this.g_iO=0,this.g_iP=0,_ instanceof g_bA.g_iH?this.g_r(_):this.set(_||0,a||0,t||0,n||0,i||0,e||0,r||0,g||0)}set(_,a,t,n,i,e,r,g){this.g_iI=+_,this.g_iJ=+a,this.g_iK=+t,this.g_iL=+n,this.g_iM=+i,this.g_iN=+e,this.g_iO=+r,this.g_iP=+g}g_iQ(g,_,e,a){this.set(g,_,e,_,e,a,g,a)}g_r(g){this.g_iI=g.g_iI,this.g_iJ=g.g_iJ,this.g_iK=g.g_iK,this.g_iL=g.g_iL,this.g_iM=g.g_iM,this.g_iN=g.g_iN,this.g_iO=g.g_iO,this.g_iP=g.g_iP}g_n(g){return this.g_iI===g.g_iI&&this.g_iJ===g.g_iJ&&this.g_iK===g.g_iK&&this.g_iL===g.g_iL&&this.g_iM===g.g_iM&&this.g_iN===g.g_iN&&this.g_iO===g.g_iO&&this.g_iP===g.g_iP}g_iR(g){this.g_iI=+g}g_fv(){return this.g_iI}g_iS(g){this.g_iJ=+g}g_fw(){return this.g_iJ}g_iT(g){this.g_iK=+g}g_fx(){return this.g_iK}g_iU(g){this.g_iL=+g}g_fy(){return this.g_iL}g_iV(g){this.g_iM=+g}g_fz(){return this.g_iM}g_iW(g){this.g_iN=+g}g_fA(){return this.g_iN}g_iX(g){this.g_iO=+g}g_fB(){return this.g_iO}g_iY(g){this.g_iP=+g}g_fC(){return this.g_iP}toArray(){return[this.g_iI,this.g_iJ,this.g_iK,this.g_iL,this.g_iM,this.g_iN,this.g_iO,this.g_iP]}g_hj(){return new Float64Array(this.toArray())}g_hk(g,_){g[_++]=this.g_iI,g[_++]=this.g_iJ,g[_++]=this.g_iK,g[_++]=this.g_iL,g[_++]=this.g_iM,g[_++]=this.g_iN,g[_++]=this.g_iO,g[_]=this.g_iP}g_iZ(g,_,e){g[_++]=this.g_iI,g[_++]=this.g_iJ,g[_++]=e,g[_++]=this.g_iK,g[_++]=this.g_iL,g[_++]=e,g[_++]=this.g_iM,g[_++]=this.g_iN,g[_++]=e,g[_++]=this.g_iO,g[_++]=this.g_iP,g[_]=e}offset(g,_){this.g_iI+=+g,this.g_iJ+=+_,this.g_iK+=+g,this.g_iL+=+_,this.g_iM+=+g,this.g_iN+=+_,this.g_iO+=+g,this.g_iP+=+_}round(){var g=Math.round;this.g_iI=g(this.g_iI),this.g_iJ=g(this.g_iJ),this.g_iK=g(this.g_iK),this.g_iL=g(this.g_iL),this.g_iM=g(this.g_iM),this.g_iN=g(this.g_iN),this.g_iO=g(this.g_iO),this.g_iP=g(this.g_iP)}floor(){var g=Math.floor;this.g_iI=g(this.g_iI),this.g_iJ=g(this.g_iJ),this.g_iK=g(this.g_iK),this.g_iL=g(this.g_iL),this.g_iM=g(this.g_iM),this.g_iN=g(this.g_iN),this.g_iO=g(this.g_iO),this.g_iP=g(this.g_iP)}ceil(){var g=Math.ceil;this.g_iI=g(this.g_iI),this.g_iJ=g(this.g_iJ),this.g_iK=g(this.g_iK),this.g_iL=g(this.g_iL),this.g_iM=g(this.g_iM),this.g_iN=g(this.g_iN),this.g_iO=g(this.g_iO),this.g_iP=g(this.g_iP)}g_i_(g){this.g_iI=g.g_hY,this.g_iJ=g.g_hZ,this.g_iK=g.g_h_,this.g_iL=g.g_hZ,this.g_iM=g.g_h_,this.g_iN=g.g_h$,this.g_iO=g.g_hY,this.g_iP=g.g_h$}g_i$(g,_){0===_?this.g_i_(g):this.g_ja(g,Math.sin(_),Math.cos(_))}g_ja(_,a,t){const n=_.g_hY*a,r=_.g_hZ*a,e=_.g_h_*a,d=_.g_h$*a,g=_.g_hY*t,o=_.g_hZ*t,i=_.g_h_*t,u=_.g_h$*t;this.g_iI=g-r,this.g_iJ=o+n,this.g_iK=i-r,this.g_iL=o+e,this.g_iM=i-d,this.g_iN=u+e,this.g_iO=g-d,this.g_iP=u+n}g_jb(a){g(this.g_iI,this.g_iK,this.g_iM,this.g_iO),a.g_hY=_,a.g_h_=e,g(this.g_iJ,this.g_iL,this.g_iN,this.g_iP),a.g_hZ=_,a.g_h$=e}g_iD(_,a){let t=this.g_iK-this.g_iI,r=this.g_iL-this.g_iJ;const u=this.g_iM-this.g_iI,e=this.g_iN-this.g_iJ,s=_-this.g_iI,g=a-this.g_iJ;let f=t*t+r*r,h=t*u+r*e,M=t*s+r*g;const N=u*u+e*e,l=u*s+e*g;let m=1/(f*N-h*h),b=(N*M-h*l)*m,v=(f*l-h*M)*m;return!!(0<=b&&0<v&&1>b+v)||(t=this.g_iO-this.g_iI,r=this.g_iP-this.g_iJ,f=t*t+r*r,h=t*u+r*e,M=t*s+r*g,m=1/(f*N-h*h),b=(N*M-h*l)*m,v=(f*l-h*M)*m,0<=b&&0<v&&1>b+v)}g_im(){return(this.g_iI+this.g_iK+this.g_iM+this.g_iO)/4}g_in(){return(this.g_iJ+this.g_iL+this.g_iN+this.g_iP)/4}g_jc(g,_,e,a){return!!(this.g_iD(g,_)||this.g_iD(e,a))||g_bA.g_fu(g,_,e,a,this)}g_jd(_){let a=_.g_im(),t=_.g_in();if(this.g_iD(a,t))return!0;if(a=this.g_im(),t=this.g_in(),_.g_iD(a,t))return!0;const n=this.g_iI,r=this.g_iJ,e=this.g_iK,d=this.g_iL,g=this.g_iM,o=this.g_iN,i=this.g_iO,u=this.g_iP;return g_bA.g_fu(n,r,e,d,_)||g_bA.g_fu(e,d,g,o,_)||g_bA.g_fu(g,o,i,u,_)||g_bA.g_fu(i,u,n,r,_)}g_je(){this.g_jf(0,2),this.g_jf(1,3),this.g_jf(6,4),this.g_jf(7,5)}g_jg(){this.g_jf(0,6),this.g_jf(1,7),this.g_jf(2,4),this.g_jf(3,5)}g_jh(){this.g_jf(2,6),this.g_jf(3,7)}g_jf(g,_){const e=this.g_ji(g);this.g_jj(g,this.g_ji(_)),this.g_jj(_,e)}g_ji(g){switch(g){case 0:return this.g_iI;case 1:return this.g_iJ;case 2:return this.g_iK;case 3:return this.g_iL;case 4:return this.g_iM;case 5:return this.g_iN;case 6:return this.g_iO;case 7:return this.g_iP;default:throw new RangeError("invalid quad point index");}}g_jj(g,_){switch(_=+_,g){case 0:this.g_iI=_;break;case 1:this.g_iJ=_;break;case 2:this.g_iK=_;break;case 3:this.g_iL=_;break;case 4:this.g_iM=_;break;case 5:this.g_iN=_;break;case 6:this.g_iO=_;break;case 7:this.g_iP=_;break;default:throw new RangeError("invalid quad point index");}}}}{const g=[0,0,1,0,1,1,0,1],_=g_bA.g_eM(g_bA.g_iH);g_bA.g_jk=class extends g_bA.g_eK{constructor(_){super(),_||(_=g),this.g_jl=Float64Array.from(_),this.g_jm=new g_bA.Rect,this.g_jn=!0}g_eN(){}g_jo(){return this.g_jl}g_jp(){return this.g_jl.length/2}g_jq(g){this.g_jl.length===g.length?this.g_jl.set(g):this.g_jl=Float64Array.from(g),this.g_jn=!0}g_r(g){this.g_jq(g.g_jl)}g_jr(){this.g_jn=!0}g_js(){if(!this.g_jn)return;const _=this.g_jl;let a=_[0],t=_[1],n=a,i=t;for(let e=0,r=_.length;e<r;e+=2){const r=_[e],g=_[e+1];r<a&&(a=r),r>n&&(n=r),g<t&&(t=g),g>i&&(i=g)}this.g_jm.set(a,t,n,i),this.g_jn=!1}g_i_(g,_,e){let a=this.g_jl;8!==a.length&&(a=new Float64Array(8),this.g_jl=a),a[0]=g.g_ih()-_,a[1]=g.g_ii()-e,a[2]=g.g_ij()-_,a[3]=g.g_ii()-e,a[4]=g.g_ij()-_,a[5]=g.g_ik()-e,a[6]=g.g_ih()-_,a[7]=g.g_ik()-e,this.g_jm.g_r(g),(0!==_||0!==e)&&this.g_jm.offset(-_,-e),this.g_jn=!1}g_jt(g,e,a){_.g_r(g),_.offset(e,a),this.g_jq(_.toArray()),this.g_jn=!0}transform(g,_,t){let n=0,i=1;0!==t&&(n=Math.sin(t),i=Math.cos(t)),this.g_ju(g,_,n,i)}g_ju(_,a,t,n){const r=this.g_jl;for(let e=0,i=r.length;e<i;e+=2){const d=e+1,g=r[e]*_,o=r[d]*a;r[e]=g*n-o*t,r[d]=o*n+g*t}this.g_jn=!0}offset(g,_){const a=this.g_jl;for(let t=0,n=a.length;t<n;t+=2)a[t]+=g,a[t+1]+=_}g_iD(_,a){const M=this.g_jl;if(_===M[0]&&a===M[1])return!0;this.g_js();const i=this.g_jm,c=i.g_ih()-110,e=i.g_ii()-101,f=i.g_ij()+131,g=i.g_ik()+120;let h=0,N=0,b=0,T=0,L=0,z=0,D=0,O=0;c<_?(h=c,b=_):(h=_,b=c),e<a?(N=e,T=a):(N=a,T=e),f<_?(L=f,D=_):(L=_,D=f),g<a?(z=g,O=a):(z=a,O=g);let y=0,E=0;for(let t=0,n=M.length;t<n;t+=2){const i=(t+2)%n,r=M[t],d=M[t+1],o=M[i],u=M[i+1];g_bA.g_ft(c,e,_,a,h,b,N,T,r,d,o,u)&&++y,g_bA.g_ft(f,g,_,a,L,D,z,O,r,d,o,u)&&++E}return 1==y%2||1==E%2}g_jv(g,_,t){const u=g.g_jl,r=this.g_jl;if(this.g_iD(u[0]+_,u[1]+t))return!0;if(g.g_iD(r[0]-_,r[1]-t))return!0;for(let e=0,d=r.length;e<d;e+=2){const g=(e+2)%d,s=r[e],c=r[e+1],i=r[g],h=r[g+1];let M=0,n=0,o=0,p=0;s<i?(M=s,o=i):(M=i,o=s),c<h?(n=c,p=h):(n=h,p=c);for(let d=0,a=u.length;d<a;d+=2){const e=(d+2)%a,f=u[d]+_,g=u[d+1]+t,m=u[e]+_,l=u[e+1]+t;if(g_bA.g_ft(s,c,i,h,M,o,n,p,f,g,m,l))return!0}}return!1}g_jc(_,a,t,u,d,e){if(this.g_iD(t-_,u-a))return!0;if(this.g_iD(d-_,e-a))return!0;let s=0,f=0,c=0,M=0;t<d?(s=t,c=d):(s=d,c=t),u<e?(f=u,M=e):(f=e,M=u);const N=this.g_jl;for(let g=0,n=N.length;g<n;g+=2){const i=(g+2)%n,o=N[g]+_,l=N[g+1]+a,p=N[i]+_,h=N[i+1]+a;if(g_bA.g_ft(t,u,d,e,s,c,f,M,o,l,p,h))return!0}return!1}g_je(g){const _=this.g_jl;for(let e=0,a=_.length;e<a;e+=2)_[e]=2*g-_[e];this.g_jn=!0}g_jg(g){const _=this.g_jl;for(let e=0,a=_.length;e<a;e+=2){const a=e+1;_[a]=2*g-_[a]}this.g_jn=!0}g_jh(){const g=this.g_jl;for(let _=0,e=g.length;_<e;_+=2){const e=_+1,a=g[_];g[_]=g[e],g[e]=a}this.g_jn=!0}g_jw(){const g=this.g_jl;let _=0;for(let e=0,a=g.length;e<a;e+=2)_+=g[e];return _/this.g_jp()}g_jx(){const g=this.g_jl;let _=0;for(let e=0,a=g.length;e<a;e+=2)_+=g[e+1];return _/this.g_jp()}g_jy(){return this.g_jl}g_jz(){return this.g_jp()}}}"use strict",g_bA.g_jA=class extends g_bA.g_eK{constructor(g){if(super(),this.g_jB=new Map,g)for(const[_,e,a]of g)this.Set(_,e,a)}g_eN(){this.g_jC(),this.g_jB=null}g_jC(){const g=this.g_jB;for(const _ of g.values())_.clear();g.clear()}Set(g,_,a){const t=this.g_jB;let n=t.get(g);n||(n=new Map,t.set(g,n)),n.set(_,a)}g_bR(g,_){const e=this.g_jB.get(g);return e?e.get(_):e}g_bQ(g,_){const e=this.g_jB.get(g);return!!e&&e.has(_)}g_jD(g,_){const a=this.g_jB,t=a.get(g);if(!t)return!1;const n=t.delete(_);return n&&0===t.size&&a.delete(g),n}g_jE(g){const _=this.g_jB,e=_.get(g);e&&(e.clear(),_.delete(g));for(const[e,a]of _.entries())a.delete(g)&&0===a.size&&_.delete(e)}g_jF(){let g=0;for(const _ of this.g_jB.values())g+=_.size;return g}*values(){for(const g of this.g_jB.values())yield*g.values()}*g_jG(){for(const[g,_]of this.g_jB.entries())for(const e of _.keys())yield[g,e]}*entries(){for(const[g,_]of this.g_jB.entries())for(const[e,a]of _.entries())yield[g,e,a]}},"use strict",g_bA.g_jH=class extends g_bA.g_eK{constructor(){super(),this.g_jI=new Set,this.g_jJ=[],this.g_jK=!1}g_eN(){this.g_jC()}g_jC(){this.g_jI.clear(),g_bA.g_fV(this.g_jJ),this.g_jK=!1}g_jL(g){this.g_jI.has(g)||(this.g_jI.add(g),!this.g_jK&&this.g_jJ.push(g))}g_bQ(g){return this.g_jI.has(g)}g_jD(g){this.g_jI.delete(g)&&(this.g_jK=!0)}g_jF(){return this.g_jI.size}g_jM(){return 0===this.g_jI.size}g_jN(){return this.g_jK&&(this.g_jO(),this.g_jK=!1),this.g_jJ}g_jO(){const g=this.g_jJ;g_bA.g_fV(g);for(const _ of this.g_jI)g.push(_)}},"use strict",function(){var _=Math.asin,e=Math.abs,t=Math.sqrt,n=Math.pow,g=Math.sin,r=Math.cos,o=Math.PI;const i=new Map,u=new Map;u.set("linear","noease"),self.g_jP=class d{constructor(){}static g_jQ(){return"noease"}static g_jR(){return this.g_jS(),i.keys()}static g_jT(g){this.g_jS();const _=u.get(g);return _?i.get(_):i.get(g)}static g_jS(){0!==i.size||(i.set("noease",this.g_jU),i.set("easeinsine",this.g_jV),i.set("easeoutsine",this.g_jW),i.set("easeinoutsine",this.g_jX),i.set("easeinelastic",this.g_jY),i.set("easeoutelastic",this.g_jZ),i.set("easeinoutelastic",this.g_j_),i.set("easeinback",this.g_j$),i.set("easeoutback",this.g_ka),i.set("easeinoutback",this.g_kb),i.set("easeinbounce",this.g_kc),i.set("easeoutbounce",this.g_kd),i.set("easeinoutbounce",this.g_ke),i.set("easeincubic",this.g_kf),i.set("easeoutcubic",this.g_kg),i.set("easeinoutcubic",this.g_kh),i.set("easeinquad",this.g_ki),i.set("easeoutquad",this.g_kj),i.set("easeinoutquad",this.g_kk),i.set("easeinquart",this.g_kl),i.set("easeoutquart",this.g_km),i.set("easeinoutquart",this.g_kn),i.set("easeinquint",this.g_ko),i.set("easeoutquint",this.g_kp),i.set("easeinoutquint",this.g_kq),i.set("easeincirc",this.g_kr),i.set("easeoutcirc",this.g_ks),i.set("easeinoutcirc",this.g_kt),i.set("easeinexpo",this.g_ku),i.set("easeoutexpo",this.g_kv),i.set("easeinoutexpo",this.g_kw))}static g_jU(g,_,e,a){return e*g/a+_}static g_ki(g,_,e,t){return e*(g/=t)*g+_}static g_kj(g,_,e,t){return-e*(g/=t)*(g-2)+_}static g_kk(g,_,e,t){return 1>(g/=t/2)?e/2*g*g+_:-e/2*(--g*(g-2)-1)+_}static g_kf(g,_,e,t){return e*(g/=t)*g*g+_}static g_kg(g,_,e,t){return e*((g=g/t-1)*g*g+1)+_}static g_kh(g,_,e,t){return 1>(g/=t/2)?e/2*g*g*g+_:e/2*((g-=2)*g*g+2)+_}static g_kl(g,_,e,t){return e*(g/=t)*g*g*g+_}static g_km(g,_,e,t){return-e*((g=g/t-1)*g*g*g-1)+_}static g_kn(g,_,e,t){return 1>(g/=t/2)?e/2*g*g*g*g+_:-e/2*((g-=2)*g*g*g-2)+_}static g_ko(g,_,e,t){return e*(g/=t)*g*g*g*g+_}static g_kp(g,_,e,t){return e*((g=g/t-1)*g*g*g*g+1)+_}static g_kq(g,_,e,t){return 1>(g/=t/2)?e/2*g*g*g*g*g+_:e/2*((g-=2)*g*g*g*g+2)+_}static g_jV(g,_,e,a){return-e*r(g/a*(o/2))+e+_}static g_jW(_,a,e,t){return e*g(_/t*(o/2))+a}static g_jX(g,_,e,a){return-e/2*(r(o*g/a)-1)+_}static g_ku(g,_,e,a){return 0===g?_:e*n(2,10*(g/a-1))+_}static g_kv(g,_,e,a){return g===a?_+e:e*(-n(2,-10*g/a)+1)+_}static g_kw(g,_,e,t){return 0===g?_:g===t?_+e:1>(g/=t/2)?e/2*n(2,10*(g-1))+_:e/2*(-n(2,-10*--g)+2)+_}static g_kr(_,a,n,i){return-n*(t(1-(_/=i)*_)-1)+a}static g_ks(g,_,a,n){return a*t(1-(g=g/n-1)*g)+_}static g_kt(_,a,n,i){return 1>(_/=i/2)?-n/2*(t(1-_*_)-1)+a:n/2*(t(1-(_-=2)*_)+1)+a}static g_jY(a,t,r,u){let s=1.70158,f=0,c=r;return 0===a?t:1===(a/=u)?t+r:(f||(f=.3*u),c<e(r)?(c=r,s=f/4):s=f/(2*o)*_(r/c),-(c*n(2,10*(a-=1))*g((a*u-s)*(2*o)/f))+t)}static g_jZ(a,t,r,u){let s=1.70158,f=0,c=r;return 0===a?t:1===(a/=u)?t+r:(f||(f=.3*u),c<e(r)?(c=r,s=f/4):s=f/(2*o)*_(r/c),c*n(2,-10*a)*g((a*u-s)*(2*o)/f)+r+t)}static g_j_(a,t,r,u){let s=1.70158,f=0,c=r;return 0===a?t:2==(a/=u/2)?t+r:(f||(f=u*(.3*1.5)),c<e(r)?(c=r,s=f/4):s=f/(2*o)*_(r/c),1>a?-.5*(c*n(2,10*(a-=1))*g((a*u-s)*(2*o)/f))+t:.5*(c*n(2,-10*(a-=1))*g((a*u-s)*(2*o)/f))+r+t)}static g_j$(g,_,e,t,n){return void 0===n&&(n=1.70158),e*(g/=t)*g*((n+1)*g-n)+_}static g_ka(g,_,e,t,n){return void 0===n&&(n=1.70158),e*((g=g/t-1)*g*((n+1)*g+n)+1)+_}static g_kb(g,_,e,t,n){return void 0===n&&(n=1.70158),1>(g/=t/2)?e/2*(g*g*(((n*=1.525)+1)*g-n))+_:e/2*((g-=2)*g*(((n*=1.525)+1)*g+n)+2)+_}static g_kc(g,_,e,a){return e-d.g_kd(a-g,0,e,a)+_}static g_kd(g,_,e,t){return(g/=t)<1/2.75?e*(7.5625*g*g)+_:g<2/2.75?e*(7.5625*(g-=1.5/2.75)*g+.75)+_:g<2.5/2.75?e*(7.5625*(g-=2.25/2.75)*g+.9375)+_:e*(7.5625*(g-=2.625/2.75)*g+.984375)+_}static g_ke(g,_,e,a){return g<a/2?.5*d.g_kc(2*g,0,e,a)+_:.5*d.g_kd(2*g-a,0,e,a)+.5*e+_}}}(),"use strict",g_bA.Event=class{constructor(g,_){this.type=g,this.cancelable=!!_,this.defaultPrevented=!1,this.g_kx=!1,this.g_ky=!1}preventDefault(){if(!this.cancelable)throw new Error(`event '${this.type}' is not cancelable`);this.defaultPrevented=!0}stopPropagation(){if(!this.cancelable)throw new Error(`event '${this.type}' cannot be stopped`);if(this.g_ky)throw new Error(`cannot stop async event '${this.type}' propagation`);this.g_kx=!0}},"use strict",g_bA.Event.g_kz=class extends g_bA.g_eK{constructor(g){super(),this.g_kA=g,this.g_kB=[],this.g_kC=new Set,this.g_kD=[],this.g_kE=new Set,this.g_kF=0,this.g_kG=[],this.g_kH=[],this.g_kI=[]}g_eN(){0<this.g_kF||(g_bA.g_fV(this.g_kB),this.g_kC.clear(),g_bA.g_fV(this.g_kD),this.g_kE.clear(),g_bA.g_fV(this.g_kG),g_bA.g_fV(this.g_kH),g_bA.g_fV(this.g_kI),g_bA.g_eN(this))}g_kJ(g,_){if(this.g_kK())return void this.g_kG.push([g,_]);if(_){if(this.g_kC.has(g))return;this.g_kB.push(g),this.g_kC.add(g)}else{if(this.g_kE.has(g))return;this.g_kD.push(g),this.g_kE.add(g)}}g_kL(g,_){return this.g_kK()?void(_?this.g_kH.push(g):this.g_kI.push(g)):void(_?this.g_kC.has(g)&&(this.g_kC.delete(g),g_bA.g_f$(this.g_kB,g)):this.g_kE.has(g)&&(this.g_kE.delete(g),g_bA.g_f$(this.g_kD,g)))}g_kM(){return!this.g_kB.length&&!this.g_kD.length}g_kK(){return 0<this.g_kF}g_kN(){for(let g of this.g_kG)this.g_kJ(...g);g_bA.g_fV(this.g_kG);for(const g of this.g_kI)this.g_kE.delete(g);for(const g of this.g_kH)this.g_kC.delete(g);const g=new Set(this.g_kI),_=new Set(this.g_kH);g_bA.g_gc(this.g_kD,g),g_bA.g_gc(this.g_kB,_),g_bA.g_fV(this.g_kH),g_bA.g_fV(this.g_kI)}g_kO(g){this.g_kP();let _=!1;for(let e=0,a=this.g_kB.length;e<a;++e)if(this.g_kB[e](g),g.g_kx){_=!0;break}if(!_)for(let _=0,e=this.g_kD.length;_<e&&(this.g_kD[_](g),!g.g_kx);++_);return this.g_kQ(),!g.defaultPrevented}g_kR(g){this.g_kP();for(let _=0,e=this.g_kB.length;_<e;++_)this.g_kB[_](g);for(let _=0,e=this.g_kD.length;_<e;++_)this.g_kD[_](g);return this.g_kQ(),!0}g_kP(){this.g_kF++}g_kQ(){this.g_kF--,0===this.g_kF&&(this.g_kG.length||this.g_kH.length||this.g_kI.length)&&this.g_kN()}g_kS(g){g?this.g_kP():this.g_kQ()}g_kT(g){let _=[];for(let a=0,t=this.g_kB.length,e;a<t;++a)e=this.g_kB[a],_.push(g_bA.g_gD(()=>e(g)));for(let a=0,t=this.g_kD.length,e;a<t;++a)e=this.g_kD[a],_.push(g_bA.g_gD(()=>e(g)));return Promise.all(_).then(()=>!g.defaultPrevented)}async g_kU(g){const _=[];this.g_kP();for(let e=0,a=this.g_kB.length;e<a;++e){const a=this.g_kB[e](g);a&&_.push(a)}for(let e=0,a=this.g_kD.length;e<a;++e){const a=this.g_kD[e](g);a&&_.push(a)}return this.g_kQ(),_.length&&(await Promise.all(_)),!g.defaultPrevented}async g_kV(g){this.g_kP();for(let _=0,e=this.g_kB.length;_<e;++_){const e=this.g_kB[_](g);e instanceof Promise&&(await e)}for(let _=0,e=this.g_kD.length;_<e;++_){const e=this.g_kD[_](g);e instanceof Promise&&(await e)}return this.g_kQ(),!g.defaultPrevented}*g_kW(g){this.g_kP();for(let _=0,e=this.g_kB.length;_<e;++_){const e=this.g_kB[_](g);g_bA.g_gS(e)&&(yield*e)}for(let _=0,e=this.g_kD.length;_<e;++_){const e=this.g_kD[_](g);g_bA.g_gS(e)&&(yield*e)}this.g_kQ()}},"use strict",g_bA.Event.g_kX=class extends g_bA.g_eK{constructor(){super(),this.g_kY=new Map,this.g_kZ=!1}g_eN(){if(this.g_kZ)throw new Error("already released");this.g_k_(),this.g_kZ=!0,g_bA.g_eN(this)}g_eO(){return this.g_kZ}g_k_(){for(let g of this.g_kY.values())g.g_eN();this.g_kY.clear()}g_k$(g,_){let e=this.g_kY.get(g);return e?e:_?(e=g_bA.g_eM(g_bA.Event.g_kz,g),this.g_kY.set(g,e),e):null}g_la(g){const _=this.g_kY.get(g);_&&(_.g_eN(),this.g_kY.delete(g))}addEventListener(g,_,e){let a=this.g_k$(g,!0);a.g_kJ(_,!!e)}removeEventListener(g,_,e){let a=this.g_k$(g,!1);a&&(a.g_kL(_,!!e),a.g_kM()&&this.g_kY.delete(g))}dispatchEvent(g){const _=this.g_k$(g.type,!1);return!_||(g.cancelable?_.g_kO(g):_.g_kR(g))}g_lb(g){const _=this.g_k$(g.type,!1);return _?(g.g_ky=!0,_.g_kT(g)):Promise.resolve(!0)}async g_lc(g){const _=this.g_k$(g.type,!1);return!_||(await _.g_kU(g))}async g_ld(g){const _=this.g_k$(g.type,!1);return!_||(await _.g_kV(g))}g_le(g){const _=this.g_k$(g.type,!1);if(!_)return null;if(g.cancelable)throw new Error("not supported");else return _.g_kW(g)}g_kS(g){for(const _ of this.g_kY.values())_.g_kS(g)}},"use strict";{function _(g){o=d&&0===i?g_cN(t,{timeout:e}):setTimeout(t,g)}function t(e){if(o=-1,!g.length)return;let t=performance.now(),u=t,s=0,f=0;do a(g.shift()),u=performance.now(),++s,f=1.1*((u-t)/s);while(g.length&&(d&&0===i&&"undefined"!=typeof e?f<e.g_lf():u-t+f<n));if(-1===o&&g.length){let g=u-t,e=Math.max(r-g,4);_(e)}}function a(g){let _;try{_=g.g_lg()}catch(_){g.reject(_)}g.resolve(_)}const n=12,r=16,e=35,d="undefined"!=typeof g_cN;let g=[],o=-1,i=0,u=g_bA.g_bU.g_bQ("disable-asyncify");u&&console.warn("[Asyncify] Asyncify has been disabled due to disable-asyncify in the query string. Some work will now be done synchronously."),g_bA.g_gD=function(t){let n=null;return g_bA.g_bI&&(n=g_bA.g_da()),new Promise((i,e)=>(g.push({g_lg:t,resolve:i,reject:e,stack:n}),u?void a(g.pop()):void(-1===o&&_(16))))},g_bA.g_gD.g_lh=function(g){if(g)++i;else if(--i,0>i)throw new Error("already turned off high throughput mode")}}{function _(){a=-1}function t(){r=-1,d=-1;let _=Date.now();for(let e of g)if(e.g_li(_)){let g=e.g_lj();(-1===d||g<d)&&(d=g)}else g.delete(e);if(-1!==d){let g=Math.max(d-_+i,n);r=self.setTimeout(t,g)}}const n=1e3,i=100;let a=-1;g_bA.g_lk=function(){return-1===a&&(a=Date.now(),self.setTimeout(_,16)),a};let r=-1,d=-1,g=new Set;g_bA.g_ll=class{constructor(g,_){this.g_lm=g,this.g_ln=1e3*_,this.g_lo=0,this.g_lp=!1}g_lq(){let _=g_bA.g_lk();this.g_lo=_+this.g_ln,this.g_lp||(g.add(this),this.g_lp=!0),-1===r?(d=this.g_lo,r=self.setTimeout(t,this.g_ln+100)):this.g_lo<d&&d>_+n&&(self.clearTimeout(r),d=this.g_lo,r=self.setTimeout(t,this.g_ln+100))}g_li(g){return!(g>=this.g_lo)||(this.g_lm()?(this.g_lo=g+this.g_ln,!0):(this.g_lp=!1,!1))}g_lj(){return this.g_lo}g_lr(){this.g_lp&&(g.delete(this),this.g_lp=!1,0===g.size&&-1!==r&&(self.clearTimeout(r),r=-1,d=-1))}g_eN(){this.g_lr(),this.g_lm=null}}}"use strict",g_bA.g_ls=class g{constructor(g){this.g_lt=!1,this.g_lu=g}g_lv(){this.g_lt||(this.g_lt=!0,this.g_lu&&(this.g_lu(),this.g_lu=null))}g_lw(){return this.g_lt}g_eN(){this.g_lv()}static g_eN(_){return new g(()=>_.g_eN())}static g_lx(g,_,a,t,n){if("undefined"==typeof t||null===t)t=!1;else if("boolean"!=typeof t&&"object"!=typeof t)throw new TypeError("invalid event listener options");if(n&&(a=a.bind(n)),_.includes(" ")){_=_.split(" ");const n=new g_bA.g_ly;for(let e of _)g.addEventListener(e,a,t),n.g_jL(g_bA.g_eM(g_bA.g_ls,()=>g.removeEventListener(e,a,t)));return n}return g.addEventListener(_,a,t),g_bA.g_eM(g_bA.g_ls,()=>g.removeEventListener(_,a,t))}},g_bA.g_lz=class extends g_bA.g_ls{g_lA(g){this.g_lu=g}},g_bA.g_ly=class extends g_bA.g_ls{constructor(...g){super(),this.g_lB=new Set;for(let _ of g)this.g_jL(_)}g_jL(...g){if(this.g_lt)throw new Error("already disposed");for(let _ of g)this.g_lB.add(_)}g_lC(g){if(this.g_lt)throw new Error("already disposed");this.g_lB.delete(g)}g_lD(){if(this.g_lt)throw new Error("already disposed");if(this.g_lB){for(let g of this.g_lB)g.g_lv();this.g_lB.clear()}}g_lw(){return this.g_lt}g_lv(){if(this.g_lt)throw new Error("already disposed");this.g_lt=!0;for(let g of this.g_lB)g.g_lv();this.g_lB.clear(),this.g_lB=null}g_eN(){this.g_lv()}},"use strict",g_bA.g_lE=class extends g_bA.g_eK{constructor(){super(),this.g_lF=0,this.g_hQ=0,this.g_lG=0,this.g_lH=0}g_jL(g){g=+g,this.g_hQ=g-this.g_lF,this.g_lG=this.g_lH+this.g_hQ,this.g_lF=this.g_lG-this.g_lH-this.g_hQ,this.g_lH=this.g_lG}g_lI(g){this.g_lH-=+g}g_bR(){return this.g_lH}g_lq(){this.g_lF=0,this.g_hQ=0,this.g_lG=0,this.g_lH=0}Set(g){this.g_lF=0,this.g_hQ=0,this.g_lG=0,this.g_lH=+g}g_eN(){}},"use strict";{const g={};g.g_lJ=function(g){this.g_lK=g,this.right=this.g_lK.g_lL,this.left=this.g_lK.g_lL,this.parent=null,this.color=!1,this.key=null},g.g_lM=function(_){this.size=0,this.g_lL=new g.g_lJ(this),this.g_lL.color=!1,this.root=this.g_lL,this.root.parent=this.g_lL,this.g_gk=_||this.g_lN},g.g_lM.prototype.g_lN=function(g,_){return g<_?-1:_<g?1:0},g.g_lM.prototype.clone=function(){var _=new g.g_lM(this.g_gk);return _.g_lO(this),_},g.g_lM.prototype.clear=function(){this.size=0,this.g_lL=new g.g_lJ(this),this.g_lL.color=!1,this.root=this.g_lL,this.root.parent=this.g_lL},g.g_lM.prototype.g_lP=function(g){var _=g.right;g.right=_.left,_.left!=this.g_lL&&(_.left.parent=g),_.parent=g.parent,g.parent==this.g_lL?this.root=_:g==g.parent.left?g.parent.left=_:g.parent.right=_,_.left=g,g.parent=_},g.g_lM.prototype.g_lQ=function(g){var _=g.left;g.left=_.right,_.right!=this.g_lL&&(_.right.parent=g),_.parent=g.parent,g.parent==this.g_lL?this.root=_:g==g.parent.right?g.parent.right=_:g.parent.left=_,_.right=g,g.parent=_},g.g_lM.prototype.g_lR=function(_){if(!this.contains(_)){var a=new g.g_lJ(this);a.key=_;for(var t=this.g_lL,n=this.root;n!=this.g_lL;)t=n,n=0>this.g_gk(a.key,n.key)?n.left:n.right;a.parent=t,t==this.g_lL?this.root=a:0>this.g_gk(a.key,t.key)?t.left=a:t.right=a,a.left=this.g_lL,a.right=this.g_lL,a.color=!0,this.g_lS(a),this.size++}else{var i=this.g_lT(_);i.key=_}},g.g_lM.prototype.g_lS=function(g){for(;g!=this.g_lL&&g!=this.root&&!0==g.parent.color;)if(g.parent==g.parent.parent.left){var _=g.parent.parent.right;!0==_.color?(g.parent.color=!1,_.color=!1,g.parent.parent.color=!0,g=g.parent.parent):(g==g.parent.right&&(g=g.parent,this.g_lP(g)),g.parent.color=!1,g.parent.parent.color=!0,g.parent.parent!=this.g_lL&&this.g_lQ(g.parent.parent))}else{var _=g.parent.parent.left;!0==_.color?(g.parent.color=!1,_.color=!1,g.parent.parent.color=!0,g=g.parent.parent):(g==g.parent.left&&(g=g.parent,this.g_lQ(g)),g.parent.color=!1,g.parent.parent.color=!0,g.parent.parent!=this.g_lL&&this.g_lP(g.parent.parent))}this.root.color=!1},g.g_lM.prototype.g_lU=function(g){var _,e;_=g.left==this.g_lL||g.right==this.g_lL?g:this.g_lV(g),e=_.left==this.g_lL?_.right:_.left,e.parent=_.parent,_.parent==this.g_lL?this.root=e:_==_.parent.left?_.parent.left=e:_.parent.right=e,_!=g&&(g.key=_.key),!1==_.color&&this.g_lW(e),this.size--},g.g_lM.prototype.g_lW=function(g){for(;g!=this.root&&!1==g.color;)if(g==g.parent.left){var _=g.parent.right;!0==_.color&&(_.color=!1,g.parent.color=!0,this.g_lP(g.parent),_=g.parent.right),!1==_.left.color&&!1==_.right.color?(_.color=!0,g=g.parent):(!1==_.right.color&&(_.left.color=!1,_.color=!0,this.g_lQ(_),_=g.parent.right),_.color=g.parent.color,g.parent.color=!1,_.right.color=!1,this.g_lP(g.parent),g=this.root)}else{var _=g.parent.left;!0==_.color&&(_.color=!1,g.parent.color=!0,this.g_lQ(g.parent),_=g.parent.left),!1==_.right.color&&!1==_.left.color?(_.color=!0,g=g.parent):(!1==_.left.color&&(_.right.color=!1,_.color=!0,this.g_lP(_),_=g.parent.left),_.color=g.parent.color,g.parent.color=!1,_.left.color=!1,this.g_lQ(g.parent),g=this.root)}g.color=!1},g.g_lM.prototype.remove=function(g){var _=this.g_lT(g);if(_!=this.g_lL){var e=_.key;return this.g_lU(_),e}return null},g.g_lM.prototype.g_lX=function(g,_){this.remove(_)},g.g_lM.prototype.min=function(g){for(;g.left!=this.g_lL;)g=g.left;return g},g.g_lM.prototype.max=function(g){for(;g.right!=this.g_lL;)g=g.right;return g},g.g_lM.prototype.g_lV=function(g){if(g.right!=this.g_lL)return this.min(g.right);for(var _=g.parent;_!=this.g_lL&&g==_.right;)g=_,_=_.parent;return _},g.g_lM.prototype.g_lY=function(g){if(g.left!=this.g_lL)return this.max(g.left);for(var _=g.parent;_!=this.g_lL&&g==_.left;)g=_,_=_.parent;return _},g.g_lM.prototype.g_lZ=function(g){if(0<this.size){var _=this.g_lT(g);if(_==this.g_lL)return null;if(_.right!=this.g_lL)return this.min(_.right).key;for(var e=_.parent;e!=this.g_lL&&_==e.right;)_=e,e=e.parent;return e==this.g_lL?null:e.key}return null},g.g_lM.prototype.g_l_=function(g){if(0<this.size){var _=this.g_lT(g);if(_==this.g_lL)return null;if(_.left!=this.g_lL)return this.max(_.left).key;for(var e=_.parent;e!=this.g_lL&&_==e.left;)_=e,e=e.parent;return e==this.g_lL?null:e.key}return null},g.g_lM.prototype.g_l$=function(){return this.min(this.root).key},g.g_lM.prototype.g_ma=function(){return this.max(this.root).key},g.g_lM.prototype.g_lT=function(g){for(var _=this.root;_!=this.g_lL&&0!=this.g_gk(_.key,g);)_=0>this.g_gk(g,_.key)?_.left:_.right;return _},g.g_lM.prototype.contains=function(g){return null!=this.g_lT(g).key},g.g_lM.prototype.getValues=function(){var g=[];return this.forEach(function(_){g.push(_)}),g},g.g_lM.prototype.g_lO=function(_){if("array"==g.g_mb(_))for(var a=0;a<_.length;a++)this.g_lR(_[a]);else if("function"==g.g_mb(_.forEach))_.forEach(this.g_lR,this);else if("function"==g.g_mb(_.getValues))for(var t=_.getValues(),a=0;a<t.length;a++)this.g_lR(t[a]);else if("object"==g.g_mb(_))for(var n in _)this.g_lR(_[n])},g.g_lM.prototype.g_mc=function(_){if("array"==g.g_mb(_))for(var a=0;a<_.length;a++)this.remove(_[a]);else if("function"==g.g_mb(_.forEach))_.forEach(this.g_lX,this);else if("function"==g.g_mb(_.getValues))for(var t=_.getValues(),a=0;a<t.length;a++)this.remove(t[a]);else if("object"==g.g_mb(_))for(var n in _)this.remove(_[n])},g.g_lM.prototype.g_md=function(_){if("array"==g.g_mb(_)){for(var a=0;a<_.length;a++)if(!this.contains(_[a]))return!1;return!0}if("function"==g.g_mb(_.forEach))return _.every(this.contains,this);if("function"==g.g_mb(_.getValues)){for(var t=_.getValues(),a=0;a<t.length;a++)if(!this.contains(t[a]))return!1;return!0}if("object"==g.g_mb(_)){for(var n in _)if(!this.contains(_[n]))return!1;return!0}},g.g_lM.prototype.range=function(g,_){var e=[];return this.g_me(function(g){e.push(g)},g,_),e},g.g_lM.prototype.g_mf=function(g,_){if(!this.g_mg())for(var e=this.min(this.root);e!=this.g_lL;){if(g.call(_,e.key,this))return;e=this.g_lV(e)}},g.g_lM.prototype.g_mh=function(g,_,e){if(!this.g_mg())for(var a=this.g_lT(_);a!=this.g_lL;){if(g.call(e,a.key,this))return;a=this.g_lV(a)}},g.g_lM.prototype.g_mi=function(g,_,a){if(!this.g_mg())for(var t=this.min(this.root),n=this.g_lT(_);t!=n;){if(g.call(a,t.key,this))return;t=this.g_lV(t)}},g.g_lM.prototype.g_me=function(g,_,a,t){if(!this.g_mg())for(var n=this.g_lT(_),i=this.g_lT(a);n!=i;){if(g.call(t,n.key,this))return;n=this.g_lV(n)}},g.g_lM.prototype.g_mj=function(g,_){if(!this.g_mg())for(var e=this.max(this.root);e!=this.g_lL;){if(g.call(_,e.key,this))return;e=this.g_lY(e)}},g.g_lM.prototype.forEach=function(g,_){if(!this.g_mg())for(var e=this.min(this.root);e!=this.g_lL;e=this.g_lV(e))g.call(_,e.key,e.key,this)},g.g_lM.prototype.some=function(g,_){if(this.g_mg())return!1;for(var e=this.min(this.root);e!=this.g_lL;e=this.g_lV(e))if(g.call(_,e.key,e.key,this))return!0;return!1},g.g_lM.prototype.every=function(g,_){if(this.g_mg())return!1;for(var e=this.min(this.root);e!=this.g_lL;e=this.g_lV(e))if(!g.call(_,e.key,e.key,this))return!1;return!0},g.g_lM.prototype.map=function(g,_){var e=[];if(this.g_mg())return e;for(var a=this.min(this.root);a!=this.g_lL;a=this.g_lV(a))e.push(g.call(_,a.key,a.key,this));return e},g.g_lM.prototype.filter=function(g,_){var e=[];if(this.g_mg())return e;for(var a=this.min(this.root);a!=this.g_lL;a=this.g_lV(a))g.call(_,a.key,a.key,this)&&e.push(a.key);return e},g.g_lM.prototype.g_mk=function(){return this.size},g.g_lM.prototype.g_mg=function(){return 0==this.size},g.g_lM.prototype.g_ml=function(_){var a=g.g_mk(_);if(this.g_mk()>a)return!1;var t=0;if(this.g_mg())return!0;for(var n=this.min(this.root);n!=this.g_lL;n=this.g_lV(n))g.contains.call(_,_,n.key)&&t++;return t==this.g_mk()},g.g_lM.prototype.g_mm=function(_){var e=new g.g_lM(this.g_gk);if(this.g_mg())return e;for(var a=this.min(this.root);a!=this.g_lL;a=this.g_lV(a))_.contains.call(_,a.key,a.key,this)&&e.g_lR(a.key);return e},g_bA.g_lM=class extends g_bA.g_eK{constructor(_){super(),this.g_mn=new g.g_lM(_)}g_jL(g){this.g_mn.g_lR(g)}g_lC(g){this.g_mn.remove(g)}g_bQ(g){return this.g_mn.contains(g)}g_jC(){this.g_mn.clear()}toArray(){return this.g_mn.getValues()}g_jF(){return this.g_mn.g_mk()}g_jM(){return this.g_mn.g_mg()}g_mo(g){this.g_mn.forEach(g)}g_mp(){if(this.g_jM())throw new Error("empty set");const g=this.g_mn,_=g.min(g.root);return _.key}g_mq(){if(this.g_jM())throw new Error("empty set");const g=this.g_mp();return this.g_lC(g),g}*values(){if(!this.g_jM()){const g=this.g_mn;for(let _=g.min(g.root);_!=g.g_lL;_=g.g_lV(_))yield _.key}}[Symbol.iterator](){return this.values()}}}"use strict",g_bA.g_mr=class{constructor(g=g_bA.hardwareConcurrency){this.g_ms=g,this.g_mt=[],this.g_mu=0}g_jL(g){return new Promise((_,e)=>{this.g_mt.push({g_lg:g,resolve:_,reject:e}),this.g_mv()})}g_mw(g){for(let _=0,e=this.g_mt.length;_<e;++_)if(this.g_mt[_].g_lg===g)return _;return-1}g_mx(g,_){const e=this.g_mw(g);if(-1===e)throw new Error("cannot find promise to resolve");this.g_mt[e].resolve(_),this.g_mt.splice(e,1)}g_my(g,_){const e=this.g_mw(g);if(-1===e)throw new Error("cannot find promise to reject");this.g_mt[e].reject(_),this.g_mt.splice(e,1)}g_mv(){if(!this.g_mt.length)return;if(this.g_mu>=this.g_ms)return;this.g_mu++;const g=this.g_mt.shift();g.g_lg().then(_=>{g.resolve(_),this.g_mu--,this.g_mv()}).catch(_=>{g.reject(_),this.g_mu--,this.g_mv()})}static async g_mz(g,_){const t=[];let n=!1;const i=async()=>{for(let g;g=_.pop();){if(n)return;try{t.push((await g()))}catch(g){throw n=!0,g}}},e=[];for(;g--;)e.push(i());return await Promise.all(e),t}},"use strict",g_bA.g_mA=class{constructor(g,_,e){this.g_lm=g,this.g_mB=_,this.g_mC=e||2*_,this.g_mD=-1,this.g_mE=-Infinity,this.g_mF=()=>this.g_mG(),this.g_mH=!1,this.g_mI=!1,this.g_mJ=null}g_mK(g){this.g_mI=!!g}g_mL(){return"undefined"!=typeof g_bA.g_mM&&g_bA.g_mM.g_mN()?this.g_mC:this.g_mB}g_mO(...g){if(-1===this.g_mD){this.g_mJ=g;let _=g_bA.g_lk(),e=_-this.g_mE,a=this.g_mL();e>=a&&this.g_mI?(this.g_mE=_,this.g_mP()):this.g_mD=self.setTimeout(this.g_mF,Math.max(a-e,4))}}g_mP(){this.g_mH=!0;const g=this.g_mJ;this.g_mJ=null,g?this.g_lm(...g):this.g_lm(),this.g_mH=!1}g_lq(){this.g_mH||(this.g_mQ(),this.g_mJ=null,this.g_mE=g_bA.g_lk())}g_mG(){this.g_mD=-1,this.g_mE=g_bA.g_lk(),this.g_mP()}g_mQ(){-1!==this.g_mD&&(self.clearTimeout(this.g_mD),this.g_mD=-1)}g_eN(){this.g_mQ(),this.g_lm=null,this.g_mJ=null,this.g_mF=null}},"use strict";{function _(g){return d.get(g)}g_bA.g_mR="\uFEFF";const t=new Set([..."0123456789"]);g_bA.g_mS=function(g){return t.has(g)};const n=new Set([..." \t\n\r\xA0\x85\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u200B\u2028\u2029\u202F\u205F\u3000"]);g_bA.g_mT=function(g){return n.has(g)},g_bA.g_mU=function(g){return g_bA.g_mV(g).filter(g=>!g_bA.g_mT(g)).join("")},g_bA.g_mW=function(g){for(const _ of g)if(!g_bA.g_mT(_))return!1;return!0},g_bA.g_mX=function(g){return 1===g.length&&32>g.charCodeAt(0)},g_bA.g_mY=function(g){return g_bA.g_mV(g).filter(g=>!g_bA.g_mX(g)).join("")};const r=new Set([..."0123456789.+-e"]);g_bA.g_mZ=function(g){if(g=g.trim(),!g.length)return!1;let _=g.charAt(0);if("-"!==_&&!t.has(_))return!1;for(let _ of g)if(!r.has(_))return!1;return!0},g_bA.g_m_=function(g){let _=g.length;for(;0<_;){let e=g.charAt(_-1);if(!g_bA.g_mS(e))break;--_}return g.substr(0,_)},g_bA.g_m$=function(g){let _=g_bA.g_m_(g),e=g.substr(_.length);return e=e?(parseInt(e,10)+1).toString():"2",_+e};const d=new Map([["&","&amp;"],["<","&lt;"],[">","&gt;"],["\"","&quot;"],["'","&#39;"]]),e=/[&<>"']/g;g_bA.g_na=function(g){return g.replace(e,_)},g_bA.g_nb=function(g){let _=g_bA.g_nc(g,"\\","\\\\");return _=g_bA.g_nc(_,"\"","\\\""),_=g_bA.g_nc(_,"\t","\\t"),_=g_bA.g_nc(_,"\r",""),g_bA.g_nc(_,"\n","\\n")},g_bA.g_nd=function(g){let _=g_bA.g_nc(g,"&","&amp;");return _=g_bA.g_nc(_,"<","&lt;"),_=g_bA.g_nc(_,">","&gt;"),g_bA.g_nc(_,"\"","&quot;")};const o=/[-[\]{}()*+?.,\\^$|#\s]/g;g_bA.g_ne=function(g){return g.replace(o,"\\$&")},g_bA.g_nf=function(_,t,n=!1){if(!t)return[];n||(_=_.toLowerCase(),t=t.toLowerCase());const i=t.length;let r=0,d=0,o=[];for(;-1<(d=_.indexOf(t,r));)o.push(d),r=d+i;return o},g_bA.g_nc=function(g,_,e){return g.replace(new RegExp(g_bA.g_ne(_),"g"),()=>e)},g_bA.g_ng=function(g,_,e){return g.replace(new RegExp(g_bA.g_ne(_),"gi"),()=>e)};let g=new WeakMap;g_bA.g_nh=function(_,e,a){let t=g.get(_);if("string"==typeof e){if(!a&&e===t)return;_.textContent=e,g.set(_,e)}else{if(!a&&e.g_n(t))return;if(e.g_ni()){let a=e.toString();_.textContent=a,g.set(_,a)}else _.innerHTML=e.g_nj(),e instanceof g_bA.g_eo&&e.g_nk(_),g.set(_,e.toString())}},g_bA.g_nl=function(g,_){return g instanceof g_bA.g_en||g instanceof g_bA.g_eo?g.g_n(_):_ instanceof g_bA.g_en||_ instanceof g_bA.g_eo?_.g_n(g):g===_},g_bA.g_nm=function(g,..._){let a=g;for(let t=0,n=_.length;t<n;++t){const n=`{${t}}`;if(!g.includes(n))throw new Error(`missing placeholder '${n}' in string substitution`);a=a.replace(n,_[t].toString())}return a},g_bA.g_nn=function(g,..._){let e=g;for(let t=0,a=_.length;t<a;++t){const g=`{${t}}`;e=e.replace(g,_[t].toString())}return e},g_bA.g_no=function(g,_){let a=g;for(let[t,n]of Object.entries(_))a=g_bA.g_nc(a,t,n.toString());return a},g_bA.g_np=function(g,_){let e=g.toLowerCase(),a=_.toLowerCase();return e>a?1:e<a?-1:0};const u=1024;g_bA.g_nq=function(g,_){var e=Math.round;let a="common."+(_?"dataRates":"dataSizes")+".";if(g<u)return g_nr(a+"bytes",g);if(1048576>g){let _=g/u;return _=10>_?e(10*_)/10:e(_),g_nr(a+"kilobytes",_)}if(1073741824>g){let _=g/1048576;return _=10>_?e(10*_)/10:e(_),g_nr(a+"megabytes",_)}if(1099511627776>g){let _=g/1073741824;return _=10>_?e(10*_)/10:e(_),g_nr(a+"gigabytes",_)}else{let _=g/1099511627776;return _=10>_?e(10*_)/10:e(_),g_nr(a+"terabytes",_)}};const i={g_ns:!1,g_nt:!0,g_nu:!0,g_nv:!0,g_nw:!0};g_bA.g_nx=function(g,_){var t=Math.floor;_=Object.assign({},i,_),g_bA.g_nz.g_ny("common.time");const n=[];if(_.g_nt){const _=t(g/86400);0<_&&(g-=3600*(24*_),n.push(g_nA(".days",null,_)))}if(_.g_nu){const _=t(g/3600);(0<_||n.length)&&(g-=3600*_,n.push(g_nA(".hours",null,_)))}if(_.g_nv){const a=t(g/60);(0<a||n.length||!_.g_nw)&&(g-=60*a,n.push(g_nA(".minutes",null,a)))}if(_.g_nw){const _=t(g%60);n.push(g_nA(".seconds",null,_))}const r=(_.g_ns?lang(".approx-prefix"):"")+n.join(lang(".separator"));return g_bA.g_nz.g_nB(),r},g_bA.g_nC=function(g,_){let t=0>g?"-":"";g=Math.abs(g);let n=g.toString(),i=_-n.length;for(let e=0;e<i;++e)t+="0";return t+n},g_bA.g_nD=function(g){return g.toLowerCase().replace(/\b\w/g,g=>g.toUpperCase())},g_bA.g_nE=function(g,_){let t=g.split(".").map(g=>g.trim()),n=_.split(".").map(g=>g.trim());g_bA.g_fY(t,4,"0"),g_bA.g_fY(n,4,"0"),t=t.map(g=>parseInt(g,10)),n=n.map(g=>parseInt(g,10));for(let i=0;4>i;++i){const g=t[i]-n[i];if(0!=g)return 0>g?-1:1}return 0},g_bA.g_nF=function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,g=>{const _=Math.floor(16*Math.random()),e="x"===g?_:8|3&_;return e.toString(16)})},g_bA.g_nG=function(g,_){if(g.length!==_.length)throw new Error("strings must be same length");let a=0;for(let t=0,n=g.length;t<n;++t)g.charAt(t)!==_.charAt(t)&&++a;return a},g_bA.g_mV=function(g){return[...g].filter(g=>"string"==typeof g)}}{function g(g,e,t){const i=_.get(t);if(!i)return g;if("string"!=typeof i){if(Array.isArray(i)){let g=i[0],_=i[1];return e?"</"+g+">":`<${g} class="${_}">`}}else if("a"===i&&!e){const g=parseInt(t.substring(1),10)-1;if(0>g||g>=n.length)throw new Error("invalid bbcode link substitution");const _=n[g];if("string"==typeof _)return`<a href="${n[g]}">`;if("function"==typeof _)return`<a class="bblink${g}">`;throw new TypeError("invalid bbcode link action")}else return"<"+e+i+">"}const _=new Map([["b","strong"],["i","em"],["s","s"],["u","u"],["sub","sub"],["sup","sup"],["small","small"],["mark","mark"],["a1","a"],["a2","a"],["a3","a"],["a4","a"],["a5","a"],["a6","a"],["a7","a"],["a8","a"],["a9","a"],["bad",["span","bbCodeBad"]],["good",["span","bbCodeGood"]],["info",["span","bbCodeInfo"]],["h1",["span","bbCodeH1"]],["h2",["span","bbCodeH2"]],["h3",["span","bbCodeH3"]],["h4",["span","bbCodeH4"]],["item",["span","bbCodeItem"]]]),a=/\[(\/?)([a-zA-Z0-9]+)\]/g,t=/\[(\/?)(.*?)\]/g;let n=null;const e=/\n/g;g_bA.g_eo=class{constructor(g,_){if(this.g_nH=_&&_.g_nI?g:g_bA.g_na(g),this.g_nJ="",this.g_nK=!1,this.g_nL=[],_&&(this.g_nK=!!_.g_nM,_.links)){if(9<_.links.length)throw new Error("too many links");this.g_nL=_.links}this.g_nN=this.g_nH.includes("["),this.g_nO=this.g_nK&&this.g_nH.includes("\n"),this.g_nP=!this.g_nN&&!this.g_nO&&!this.g_nH.includes("&"),this.g_nQ=!1,this.g_nR=[]}toString(){return this.g_nH}valueOf(){return this.g_nH}g_ni(){return this.g_nP}g_nS(){return this.g_nN?this.g_nH.replace(a,""):this.g_nH}g_nj(){if(this.g_nP)return this.g_nH;if(!this.g_nJ&&this.g_nH){let _=this.g_nH;this.g_nN&&(n=this.g_nL,_=_.replace(a,g),n=null),this.g_nO&&(_=_.replace(e,"<br>")),this.g_nJ=_}return this.g_nJ}g_nk(g){if(this.g_nL.length)for(let _=0,e=this.g_nL.length;_<e;++_){const e=this.g_nL[_];if("function"!=typeof e)continue;const a=g.querySelector(".bblink"+_);if(!a)throw new Error("unable to attach BBString link handler");a.onclick=e}}g_n(g){return g instanceof g_bA.g_en?this.g_nj()===g.g_nj():g instanceof g_bA.g_eo?this.g_nH===g.g_nH:this.g_nH===g}g_nT(){if(this.g_nQ)return this.g_nR;const _=this.g_nH,n=[];t.lastIndex=0;let a=0,r=null;for(;null!==(r=t.exec(_));){const e=r.index;if(0<e&&"\\"===_.charAt(e-1))continue;const t=r[0],d=r[1],g=r[2],o=_.substring(a,e);if(a=e+t.length,o&&this.g_nR.push({text:o,g_nU:n.slice(0)}),g)if(d){const _=g.toLowerCase();for(let g=n.length-1;0<=g;--g)if(n[g].tag===_){n.splice(g,1);break}}else{let _=g,e=null;const a=g.indexOf("=");-1===a?_=_.toLowerCase():(_=g.substring(0,a).toLowerCase(),e=g.substring(a+1)),n.push({tag:_,param:e})}}a<_.length&&this.g_nR.push({text:_.substring(a),g_nU:n.slice(0)});for(const g of this.g_nR)g.text=this.g_nV(g.text);return this.g_nQ=!0,this.g_nR}g_nV(g){return g=g_bA.g_nc(g,"\\[","["),g_bA.g_nc(g,"\\\\","\\")}static g_nW(g){return g_bA.g_eM(g_bA.g_eo,g,{g_nI:!0}).g_nS()}static g_nX(g){return g.replace(t,"")}}}"use strict",g_bA.g_nY=class{constructor(){this.g_nZ=[]}g_n_(){return this.g_nZ}g_n$(){return this.g_nZ.length}g_oa(g,_,e){this.g_nZ.push({g_ob:g,width:_,height:e})}g_oc(g,_,a,t,n){g.push({text:_,g_nU:a,width:t,height:n})}g_nY(g,_,t,n){if("string"==typeof g&&(g=[{text:g,g_nU:[]}]),g_bA.g_fV(this.g_nZ),!g.length||1===g.length&&!g[0].text.length||2>t)return;if(1===g.length){const a=g[0],n=a.text,e=a.g_nU;if(100>=n.length&&!n.includes("\n")){const g=_(n,e);if(g.width<=t){const _=[];return this.g_oc(_,n,e,g.width,g.height),void this.g_oa(_,g.width,g.height)}}}let i;i="word"===n?g.map(g=>({g_od:this.g_oe(g.text),g_nU:g.g_nU})):g.map(g=>({g_od:[...g.text],g_nU:g.g_nU})),this.g_of(i,_,t)}g_oe(g){const _=g_bA.g_mV(g),t=[];let n="",i=!1;for(const e of _)if("\n"===e)n&&t.push(n),t.push("\n"),n="";else if(!n)n=e,i=g_bA.g_mT(e);else{const g=g_bA.g_mT(e);g===i?n+=e:(t.push(n),n=e,i=g)}return n&&t.push(n),t}g_of(_,t,r){var u=Math.max;let d="",s=0,p=0,M=0,c=0,N=[];for(const g of _){const _=g.g_nU,e=g.g_od;for(const g of e){if("\n"===g){0===M&&(M=t(" ",_).height),d&&this.g_oc(N,d,_,s,p||M),this.g_oa(N,c+s,M),N=[],d="",s=0,p=0,c=0,M=0;continue}const e=d+g,a=t(e,_),i=a.width,n=a.height;if(!(c+i>=r))d=e,s=i,p=u(p,n),M=u(M,n);else if(d&&this.g_oc(N,d,_,s,p),N.length&&(this.g_oa(N,c+s,M),N=[]),c=0,g_bA.g_mW(g))d="",s=0,p=0,M=0;else{d=g;const e=t(g,_);s=e.width,p=e.height,M=e.height}}d&&(this.g_oc(N,d,_,s,p),c+=s,d="",s=0,p=0)}N.length&&this.g_oa(N,c+s,M);for(const g of this.g_nZ){const _=g.g_ob;if(!_.length)continue;const n=_[_.length-1],a=n.text,i=a.trimEnd();if(!i)g.width-=n.width,_.pop();else if(i.length<a.length){const _=t(i,n.g_nU).width,a=n.width-_;n.width=_,n.text=i,g.width-=a}}}g_jC(){g_bA.g_fV(this.g_nZ)}g_og(){let g=0;for(const _ of this.g_nZ){const e=_.width;g<e&&(g=e)}return g}},"use strict",g_bA.g_oh={},"use strict";{function _(g,_){let a,t,n,i;switch(g){case"rgba8":a=_.RGBA8,t=_.RGBA,n=_.RGBA,i=_.UNSIGNED_BYTE;break;case"rgb8":a=_.RGB8,t=_.RGB,n=_.RGB,i=_.UNSIGNED_BYTE;break;case"rgba4":a=_.RGBA4,t=_.RGBA,n=_.RGBA,i=_.UNSIGNED_SHORT_4_4_4_4;break;case"rgb5_a1":a=_.RGB5_A1,t=_.RGBA,n=_.RGBA,i=_.UNSIGNED_SHORT_5_5_5_1;break;case"rgb565":a=_.RGB565,t=_.RGB,n=_.RGB,i=_.UNSIGNED_SHORT_5_6_5;break;default:throw new Error("invalid pixel format");}return{g_oi:a,g_oj:t,format:n,type:i}}const a=new Set(["rgba8","rgb8","rgba4","rgb5_a1","rgb565"]),t=new Set(["nearest","bilinear","trilinear"]),r=new Set(["default","low","high"]),d={g_ok:!1,g_ol:"repeat",g_om:"trilinear",g_on:"rgba8",g_oo:!0,g_op:"default",g_cP:!0,g_oq:!1,width:-1,height:-1},n={g_cP:!0},e=new Set;g_bA.g_oh.g_or=class{constructor(g){this.g_os=g,this.g_ot=null,this.g_ou=0,this.g_ov=0,this.g_ow=!0,this.g_ox=!1,this.g_oy="repeat",this.g_oz="trilinear",this.g_oA="rgba8",this.g_oB=!1,this.g_oC="default",this.g_oD=0}g_oE(g,n){if(("undefined"==typeof HTMLImageElement||!(g instanceof HTMLImageElement))&&("undefined"==typeof HTMLCanvasElement||!(g instanceof HTMLCanvasElement))&&("undefined"==typeof ImageBitmap||!(g instanceof ImageBitmap))&&("undefined"==typeof OffscreenCanvas||!(g instanceof OffscreenCanvas))&&!(g instanceof ImageData)&&!(g instanceof ArrayBuffer)&&null!==g)throw new Error("invalid texture source");if(n=Object.assign({},d,n),this.g_ot)throw new Error("already created texture");if(this.g_ox=!!n.g_ok,this.g_oy=n.g_ol,this.g_oz=n.g_om,this.g_oA=n.g_on,this.g_oB=!!n.g_oo,this.g_oC=n.g_op,!t.has(this.g_oz))throw new Error("invalid sampling");if(!a.has(this.g_oA))throw new Error("invalid pixel format");if(!r.has(this.g_oC))throw new Error("invalid mipmap quality");if(this.g_ow=!0,!(g instanceof ArrayBuffer||null===g||n.g_oq))this.g_ou=g.width,this.g_ov=g.height;else if(this.g_ou=n.width,this.g_ov=n.height,g instanceof ArrayBuffer&&g.byteLength!==4*(this.g_ou*this.g_ov))throw new Error("ArrayBuffer wrong size");if(0>=this.g_ou||0>=this.g_ov)throw new Error("invalid texture data size");if(n.g_oq){const _=document.createElement("canvas");_.width=this.g_ou,_.height=this.g_ov;const e=_.getContext("2d");e.drawImage(g,0,0,this.g_ou,this.g_ov),g=_}const o=g_bA.g_fe(this.g_ou)&&g_bA.g_fe(this.g_ov),i=this.g_os.g_oF();if(this.g_ou>i||this.g_ov>i)throw new Error("texture data exceeds maximum texture size");const u=this.g_os.g_oG(),s=this.g_os.g_oH();this.g_ot=u.createTexture(),u.bindTexture(u.TEXTURE_2D,this.g_ot),u.pixelStorei(u.UNPACK_PREMULTIPLY_ALPHA_WEBGL,n.g_cP);const l=_(this.g_oA,u);if(!this.g_os.g_oI()&&!o&&this.g_ox){if(null===g)throw new Error("cannot pass null data when creating a NPOT tiled texture without NPOT support");if(g instanceof ArrayBuffer&&(g=new ImageData(new Uint8ClampedArray(g),this.g_ou,this.g_ov)),g instanceof ImageData){const _=document.createElement("canvas");_.width=this.g_ou,_.height=this.g_ov;const e=_.getContext("2d");e.putImageData(g,0,0),g=_}const _=document.createElement("canvas");_.width=g_bA.g_ff(this.g_ou),_.height=g_bA.g_ff(this.g_ov);const e=_.getContext("2d");e.g_oJ="nearest"!==this.g_oz,e.drawImage(g,0,0,this.g_ou,this.g_ov,0,0,_.width,_.height),u.texImage2D(u.TEXTURE_2D,0,l.g_oj,l.format,l.type,_)}else if(2<=s){let _;_=this.g_oB?Math.floor(Math.log2(Math.max(this.g_ou,this.g_ov))+1):1,u.texStorage2D(u.TEXTURE_2D,_,l.g_oi,this.g_ou,this.g_ov),g instanceof ArrayBuffer?u.texSubImage2D(u.TEXTURE_2D,0,0,0,this.g_ou,this.g_ov,l.format,l.type,new Uint8Array(g)):null!==g&&u.texSubImage2D(u.TEXTURE_2D,0,0,0,l.format,l.type,g)}else g instanceof ArrayBuffer?u.texImage2D(u.TEXTURE_2D,0,l.g_oj,this.g_ou,this.g_ov,0,l.format,l.type,new Uint8Array(g)):null===g?u.texImage2D(u.TEXTURE_2D,0,l.g_oj,this.g_ou,this.g_ov,0,l.format,l.type,null):u.texImage2D(u.TEXTURE_2D,0,l.g_oj,l.format,l.type,g);null!==g&&this.g_oK(u),u.bindTexture(u.TEXTURE_2D,null),this.g_os.g_oL(),this.g_oD=1,e.add(this)}g_oM(g,u,s){var f=Math.floor;if(s=Object.assign({},d,s),this.g_ot)throw new Error("already created texture");if(this.g_ox=!!s.g_ok,this.g_oy=s.g_ol,this.g_oz=s.g_om,this.g_oA=s.g_on,this.g_oB=!!s.g_oo,this.g_oC=s.g_op,!t.has(this.g_oz))throw new Error("invalid sampling");if(!a.has(this.g_oA))throw new Error("invalid pixel format");if(!r.has(this.g_oC))throw new Error("invalid mipmap quality");this.g_ow=!1,this.g_ou=f(g),this.g_ov=f(u);const c=g_bA.g_fe(this.g_ou)&&g_bA.g_fe(this.g_ov),h=this.g_os.g_oF();if(0>=this.g_ou||0>=this.g_ov)throw new Error("invalid texture size");if(this.g_ou>h||this.g_ov>h)throw new Error("texture exceeds maximum texture size");if(!this.g_os.g_oI()&&this.g_ox&&!c)throw new Error("non-power-of-two tiled textures not supported");const l=this.g_os.g_oG(),M=this.g_os.g_oH();this.g_ot=l.createTexture(),l.bindTexture(l.TEXTURE_2D,this.g_ot),l.pixelStorei(l.UNPACK_PREMULTIPLY_ALPHA_WEBGL,s.g_cP);const n=_(this.g_oA,l),o=2<=M?n.g_oi:n.g_oj;l.texImage2D(l.TEXTURE_2D,0,o,this.g_ou,this.g_ov,0,n.format,n.type,null),this.g_oK(l),l.bindTexture(l.TEXTURE_2D,null),this.g_os.g_oL(),this.g_oD=1,e.add(this)}g_oN(g){if("default"===this.g_oC)return this.g_ow?g.NICEST:g.FASTEST;if("low"===this.g_oC)return g.FASTEST;if("high"===this.g_oC)return g.NICEST;throw new Error("invalid mipmap quality")}g_oK(g){const _=g_bA.g_fe(this.g_ou)&&g_bA.g_fe(this.g_ov);if(!this.g_ox)g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE);else if("repeat-x"===this.g_oy)g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.REPEAT),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.CLAMP_TO_EDGE);else if("repeat-y"===this.g_oy)g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.CLAMP_TO_EDGE),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.REPEAT);else if("repeat"===this.g_oy)g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_S,g.REPEAT),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_WRAP_T,g.REPEAT);else throw new Error("invalid tile type");if("nearest"===this.g_oz)g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.NEAREST),g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.NEAREST),this.g_oB=!1;else if(g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MAG_FILTER,g.LINEAR),(_||this.g_os.g_oI())&&this.g_oB){g.hint(g.GENERATE_MIPMAP_HINT,this.g_oN(g)),g.generateMipmap(g.TEXTURE_2D);const _="trilinear"===this.g_oz&&!this.g_os.g_oO();g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,_?g.LINEAR_MIPMAP_LINEAR:g.LINEAR_MIPMAP_NEAREST)}else g.texParameteri(g.TEXTURE_2D,g.TEXTURE_MIN_FILTER,g.LINEAR),this.g_oB=!1}g_oP(t,a){if(("undefined"==typeof HTMLImageElement||!(t instanceof HTMLImageElement))&&("undefined"==typeof HTMLVideoElement||!(t instanceof HTMLVideoElement))&&("undefined"==typeof HTMLCanvasElement||!(t instanceof HTMLCanvasElement))&&("undefined"==typeof ImageBitmap||!(t instanceof ImageBitmap))&&("undefined"==typeof OffscreenCanvas||!(t instanceof OffscreenCanvas))&&!(t instanceof ImageData))throw new Error("invalid texture source");if(!this.g_ot||0>=this.g_oD)throw new Error("texture not created");if(this.g_ow)throw new Error("cannot update static texture");a=Object.assign({},n,a);const r=t.width||t.videoWidth,d=t.height||t.videoHeight,e=this.g_os.g_oH(),g=this.g_os.g_oG();g.bindTexture(g.TEXTURE_2D,this.g_ot),g.pixelStorei(g.UNPACK_PREMULTIPLY_ALPHA_WEBGL,a.g_cP);const o=_(this.g_oA,g),i=2<=e?o.g_oi:o.g_oj;try{if(this.g_ou===r&&this.g_ov===d){const _=g_bA.g_fe(this.g_ou)&&g_bA.g_fe(this.g_ov);g.texSubImage2D(g.TEXTURE_2D,0,0,0,o.format,o.type,t),(_||this.g_os.g_oI())&&this.g_oB&&(g.hint(g.GENERATE_MIPMAP_HINT,this.g_oN(g)),g.generateMipmap(g.TEXTURE_2D))}else{this.g_ou=r,this.g_ov=d;const _=g_bA.g_fe(this.g_ou)&&g_bA.g_fe(this.g_ov);if(!this.g_os.g_oI()&&this.g_ox&&!_)throw new Error("non-power-of-two tiled textures not supported");g.texImage2D(g.TEXTURE_2D,0,i,o.format,o.type,t),(_||this.g_os.g_oI())&&this.g_oB&&(g.hint(g.GENERATE_MIPMAP_HINT,this.g_oN(g)),g.generateMipmap(g.TEXTURE_2D))}}catch(g){console.error("Error updating WebGL texture: ",g)}g.bindTexture(g.TEXTURE_2D,null),this.g_os.g_oL()}g_oQ(){if(0<this.g_oD)throw new Error("texture still has references");if(!this.g_ot)throw new Error("already deleted texture");e.delete(this);const g=this.g_os.g_oG();g.deleteTexture(this.g_ot),this.g_ot=null}g_oR(){return!!this.g_ot}g_oS(){return this.g_ot}g_oT(){return this.g_os}g_oU(){this.g_oD++}g_oV(){if(0>=this.g_oD)throw new Error("no more references");this.g_oD--}g_oW(){return this.g_oD}g_oX(){return this.g_ou}g_oY(){return this.g_ov}g_oZ(){return this.g_ow}g_o_(){let g=this.g_ou*this.g_ov;switch(this.g_oA){case"rgba8":g*=4;break;case"rgb8":g*=3;break;case"rgba4":case"rgb5_a1":case"rgb565":g*=2;}return this.g_oB&&(g+=Math.floor(g/3)),g}static g_o$(){e.clear()}static g_pa(){return e.values()}}}{const _=new Set(["nearest","bilinear","trilinear"]),t={g_om:"trilinear",alpha:!0,g_pb:!0,g_pc:!0,g_pd:0},n=new Set;g_bA.g_oh.g_pe=class{constructor(g){this.g_os=g,this.g_pf=null,this.g_ot=null,this.g_pg=null,this.g_ou=0,this.g_ov=0,this.g_ph=!0,this.g_oz="trilinear",this.g_pi=!0,this.g_pj=!0,this.g_pk=0}g_pl(a,i,e){e=Object.assign({},t,e);const r=this.g_os.g_oH();if(this.g_ot||this.g_pg)throw new Error("already created render target");if(this.g_oz=e.g_om,this.g_pi=!!e.alpha,this.g_pj=!!e.g_pb,this.g_ph=!!e.g_pc,this.g_pk=e.g_pd,!_.has(this.g_oz))throw new Error("invalid sampling");if(0<this.g_pk&&(2>r||this.g_pj))throw new Error("invalid use of multisampling");if(2>r&&(this.g_pj=!0),this.g_ou=a,this.g_ov=i,0>=this.g_ou||0>=this.g_ov)throw new Error("invalid render target size");const g=this.g_os.g_oG();if(this.g_pf=g.createFramebuffer(),g.bindFramebuffer(g.FRAMEBUFFER,this.g_pf),this.g_pj){this.g_ot=this.g_os.g_pm(this.g_ou,this.g_ov,{g_om:this.g_oz,g_on:this.g_pi?"rgba8":"rgb8",g_oo:!1});const _=this.g_ot.g_oS();g.framebufferTexture2D(g.FRAMEBUFFER,g.COLOR_ATTACHMENT0,g.TEXTURE_2D,_,0)}else{this.g_pg=g.createRenderbuffer(),g.bindRenderbuffer(g.RENDERBUFFER,this.g_pg);const _=this.g_pi?g.RGBA8:g.RGB8;if(0<this.g_pk){const e=g.g_pn(g.RENDERBUFFER,_,g.SAMPLES);if(e&&e[0]){const g=e[0];this.g_pk>g&&(this.g_pk=g)}else this.g_pk=0}0===this.g_pk?g.renderbufferStorage(g.RENDERBUFFER,_,this.g_ou,this.g_ov):g.g_po(g.RENDERBUFFER,this.g_pk,_,this.g_ou,this.g_ov),g.framebufferRenderbuffer(g.FRAMEBUFFER,g.COLOR_ATTACHMENT0,g.RENDERBUFFER,this.g_pg),g.bindRenderbuffer(g.RENDERBUFFER,null)}g.bindFramebuffer(g.FRAMEBUFFER,null),n.add(this)}g_pp(g,_){if(this.g_ou!==g||this.g_ov!==_){this.g_ou=g,this.g_ov=_;const e=this.g_os.g_oG();e.bindFramebuffer(e.FRAMEBUFFER,this.g_pf),this.g_ot?this.g_ot.g_oP(new ImageData(this.g_ou,this.g_ov)):(e.bindRenderbuffer(e.RENDERBUFFER,this.g_pg),e.renderbufferStorage(e.RENDERBUFFER,this.g_pi?e.RGBA8:e.RGB8,this.g_ou,this.g_ov),e.bindRenderbuffer(e.RENDERBUFFER,null)),e.bindFramebuffer(e.FRAMEBUFFER,null)}}g_oQ(){if(!this.g_ot&&!this.g_pg)throw new Error("already deleted render target");n.delete(this);const g=this.g_os.g_oG();g.bindFramebuffer(g.FRAMEBUFFER,this.g_pf),this.g_ot?(g.framebufferTexture2D(g.FRAMEBUFFER,g.COLOR_ATTACHMENT0,g.TEXTURE_2D,null,0),this.g_os.g_pq(this.g_ot),this.g_ot=null):this.g_pg&&(g.framebufferRenderbuffer(g.FRAMEBUFFER,g.COLOR_ATTACHMENT0,g.RENDERBUFFER,null),g.deleteRenderbuffer(this.g_pg),this.g_pg=null),g.bindFramebuffer(g.FRAMEBUFFER,null),2<=this.g_os.g_oH()&&(g.bindFramebuffer(g.READ_FRAMEBUFFER,null),g.bindFramebuffer(g.DRAW_FRAMEBUFFER,null)),g.deleteFramebuffer(this.g_pf),this.g_os.g_ps().g_pr=null,this.g_pf=null}g_pt(){return this.g_pf}g_pu(){return this.g_os}g_pv(){return this.g_ot}g_pw(){return"nearest"!==this.g_oz}g_px(){return this.g_pi}g_py(){return this.g_pj}g_oX(){return this.g_ou}g_oY(){return this.g_ov}g_pz(){return this.g_ph}g_pA(){return this.g_pk}g_pB(){const g={g_om:this.g_oz,alpha:this.g_pi,g_pb:this.g_pj};return this.g_ph||(g.width=this.g_ou,g.height=this.g_ov),g}g_pC(g){return g=Object.assign({},t,g),"nearest"!==g.g_om===this.g_pw()&&!!g.alpha===this.g_px()&&!(2<=this.g_os.g_oH()&&!!g.g_pb!==this.g_py())&&("number"==typeof g.width||"number"==typeof g.height?!this.g_pz()&&this.g_oX()===g.width&&this.g_oY()===g.height:this.g_pz())}g_pD(){return this.g_ot?this.g_ot.g_oS():null}g_o_(){return this.g_ot?this.g_ot.g_o_():this.g_ou*this.g_ov*(this.g_pi?4:3)}static async g_pE(g,_){const e=await g.g_pF(_,!0);return await g_bA.g_gL(e)}static g_o$(){n.clear()}static g_pG(){return n.values()}static g_pH(g,_){for(const e of n)e.g_pz()&&e.g_pp(g,_)}}}"use strict",g_bA.g_oh.g_pI=class{static async g_pJ(_,a,t,n){const r=_.g_oG(),e=r.createShader(r.FRAGMENT_SHADER);r.shaderSource(e,a),r.compileShader(e);const d=r.createShader(r.VERTEX_SHADER);r.shaderSource(d,t),r.compileShader(d);const g=r.createProgram();r.attachShader(g,e),r.attachShader(g,d),r.bindAttribLocation(g,0,"aPos"),r.bindAttribLocation(g,1,"aTex"),r.bindAttribLocation(g,2,"aPoints"),r.linkProgram(g);const o=_.g_pK();if(o?await _.g_pL(()=>r.getProgramParameter(g,o.COMPLETION_STATUS_KHR)):await g_bA.g_fQ(5),!r.getShaderParameter(e,r.COMPILE_STATUS)){const _=r.getShaderInfoLog(e);throw r.deleteShader(e),r.deleteShader(d),r.deleteProgram(g),new Error("Error compiling fragment shader: ",_)}if(!r.getShaderParameter(d,r.COMPILE_STATUS)){const _=r.getShaderInfoLog(d);throw r.deleteShader(e),r.deleteShader(d),r.deleteProgram(g),new Error("Error compiling vertex shader: ",_)}if(!r.getProgramParameter(g,r.LINK_STATUS)){const _=r.getProgramInfoLog(g);throw r.deleteShader(e),r.deleteShader(d),r.deleteProgram(g),new Error("Error linking shader program: ",_)}const i=g_bA.g_mY(r.getProgramInfoLog(g)||"").trim();return i&&!g_bA.g_mW(i)&&console.info(`[WebGL] Shader program '${n}' compilation log: `,i),r.deleteShader(e),r.deleteShader(d),g}static async g_pM(g,_,a,t){const n=await g_bA.g_oh.g_pI.g_pJ(g,_.src,a,t);return new g_bA.g_oh.g_pI(g,n,_,t)}constructor(_,a,t,n){const r=_.g_oG(),e=_.g_ps();_.g_pN(),r.useProgram(a),this.g_pO=r,this.g_os=_,this.g_pP=n,this.g_pQ=a,this.g_pR="<default-device-transform>"===n;const d=r.getAttribLocation(a,"aPos"),g=r.getAttribLocation(a,"aTex"),o=r.getAttribLocation(a,"aPoints");-1!==d&&(r.bindBuffer(r.ARRAY_BUFFER,_.g_pS),r.vertexAttribPointer(d,_.g_pT(),r.FLOAT,!1,0,0),r.enableVertexAttribArray(d)),-1!==g&&(r.bindBuffer(r.ARRAY_BUFFER,_.g_pU),r.vertexAttribPointer(g,2,r.FLOAT,!1,0,0),r.enableVertexAttribArray(g)),-1!==o&&(r.bindBuffer(r.ARRAY_BUFFER,_.g_pV),r.vertexAttribPointer(o,4,r.FLOAT,!1,0,0),r.enableVertexAttribArray(o)),r.bindBuffer(r.ARRAY_BUFFER,null),this.g_pW=new g_bA.g_oh.g_pX(this,"matP","mat4"),this.g_pY=new g_bA.g_oh.g_pX(this,"matMV","mat4"),this.g_pZ=new g_bA.g_oh.g_pX(this,"color","vec4"),this.g_p_=new g_bA.g_oh.g_pX(this,"samplerFront","sampler"),this.g_p$=new g_bA.g_oh.g_pX(this,"pointTexStart","vec2"),this.g_qa=new g_bA.g_oh.g_pX(this,"pointTexEnd","vec2"),this.g_qb=new g_bA.g_oh.g_pX(this,"zElevation","float"),this.g_qc=new g_bA.g_oh.g_pX(this,"tileSize","vec2"),this.g_qd=new g_bA.g_oh.g_pX(this,"tileSpacing","vec2"),this.g_qe=new g_bA.g_oh.g_pX(this,"color2","vec4"),this.g_qf=new g_bA.g_oh.g_pX(this,"outlineThickness","float"),this.g_qg=new g_bA.g_oh.g_pX(this,"samplerBack","sampler"),this.g_qh=new g_bA.g_oh.g_pX(this,"destStart","vec2"),this.g_qi=new g_bA.g_oh.g_pX(this,"destEnd","vec2"),this.g_qj=new g_bA.g_oh.g_pX(this,"srcStart","vec2"),this.g_qk=new g_bA.g_oh.g_pX(this,"srcEnd","vec2"),this.g_ql=new g_bA.g_oh.g_pX(this,"srcOriginStart","vec2"),this.g_qm=new g_bA.g_oh.g_pX(this,"srcOriginEnd","vec2"),this.g_qn=new g_bA.g_oh.g_pX(this,"pixelSize","vec2"),this.g_qo=new g_bA.g_oh.g_pX(this,"seconds","float"),this.g_qp=new g_bA.g_oh.g_pX(this,"layerScale","float"),this.g_qq=new g_bA.g_oh.g_pX(this,"layerAngle","float"),this.g_qr=new g_bA.g_oh.g_pX(this,"layoutStart","vec2"),this.g_qs=new g_bA.g_oh.g_pX(this,"layoutEnd","vec2"),this.g_qt=!!(this.g_qn.g_qu()||this.g_qo.g_qu()||this.g_qg.g_qu()||this.g_qh.g_qu()||this.g_qi.g_qu()||this.g_qj.g_qu()||this.g_qk.g_qu()||this.g_ql.g_qu()||this.g_qm.g_qu()||this.g_qp.g_qu()||this.g_qq.g_qu()||this.g_qr.g_qu()||this.g_qs.g_qu()),this.g_qv=t.g_qw||0,this.g_qx=t.g_qy||0,this.g_qz=!!t.g_qA,this.g_qB=!!t.g_qC,this.g_qD=!!t.g_qE,this.g_qF=!!t.g_qG;const i=t.g_qH||[];this.g_qI=[],this.g_qJ=this.g_qh.g_qu()||this.g_qi.g_qu(),this.g_qK=this.g_qn.g_qu()||this.g_qj.g_qu()||this.g_qk.g_qu()||this.g_ql.g_qu()||this.g_qm.g_qu(),this.g_qL=this.g_qz||this.g_qJ||0!==this.g_qv||0!==this.g_qx,this.g_qM=!1,this.g_qN=!1,this.g_pZ.g_qO(1,1,1,1),this.g_qe.g_qO(1,1,1,1),this.g_p_.g_qP(0),this.g_qg.g_qP(1),this.g_p$.g_qQ(0,0),this.g_qa.g_qQ(1,1),this.g_qb.g_qR(0),this.g_qc.g_qQ(0,0),this.g_qd.g_qQ(0,0),this.g_qh.g_qQ(0,0),this.g_qi.g_qQ(1,1),this.g_qj.g_qQ(0,0),this.g_qk.g_qQ(0,0),this.g_ql.g_qQ(0,0),this.g_qm.g_qQ(0,0),this.g_qn.g_qQ(0,0),this.g_qp.g_qR(1),this.g_qq.g_qR(0),this.g_qo.g_qR(0),this.g_qr.g_qQ(0,0),this.g_qs.g_qQ(0,0),this.g_qf.g_qR(1);for(const g of i){const _=g[0],e=g[2],a=new g_bA.g_oh.g_pX(this,_,e);"color"===e?a.g_qS(0,0,0):a.g_qR(0),this.g_qI.push(a)}this.g_pR?this.g_qT(e.g_qU):(this.g_qV(e.g_qU,!0),this.g_qW(e.g_qX,!0));const u=e.g_qY;r.useProgram(u?u.g_pQ:null)}g_eN(){this.g_pO.deleteProgram(this.g_pQ),this.g_pQ=null,this.g_os.g_qZ(this),this.g_pO=null,this.g_os=null}g_q_(){return this.g_pP}g_q$(){return this.g_pO}g_ra(){return this.g_pQ}g_rb(){return this.g_qJ}g_rc(){return this.g_qz}g_rd(){return this.g_qB}g_re(){return this.g_qD}g_rf(){return 0!==this.g_qv||0!==this.g_qx}g_rg(){return this.g_qv}g_rh(){return this.g_qx}g_ri(){return this.g_qK}g_rj(){return this.g_qL}g_rk(){return this.g_qI.length}g_rl(g){return this.g_qI[g].g_rm()}g_rn(g){for(let _=0,e=g.length;_<e;++_)if(!this.g_qI[_].g_ro(g[_]))return!1;return!0}g_rp(g){for(let _=0,e=g.length;_<e;++_)this.g_qI[_].g_rq(g[_])}g_rr(_,a,t,n,r,e,d,g,o){return!this.g_qg.g_qu()&&(!this.g_qn.g_qu()||this.g_qn.g_rs(r,e))&&(!this.g_qh.g_qu()||this.g_qh.g_rs(_.g_ih(),_.g_ii()))&&(!this.g_qi.g_qu()||this.g_qi.g_rs(_.g_ij(),_.g_ik()))&&(!this.g_qp.g_qu()||this.g_qp.g_rt(d))&&(!this.g_qq.g_qu()||this.g_qq.g_rt(g))&&(!this.g_qj.g_qu()||this.g_qj.g_rs(a.g_ih(),a.g_ii()))&&(!this.g_qk.g_qu()||this.g_qk.g_rs(a.g_ij(),a.g_ik()))&&(!this.g_ql.g_qu()||this.g_ql.g_rs(t.g_ih(),t.g_ii()))&&(!this.g_qm.g_qu()||this.g_qm.g_rs(t.g_ij(),t.g_ik()))&&(!this.g_qr.g_qu()||this.g_qr.g_rs(n.g_ih(),n.g_ii()))&&(!this.g_qs.g_qu()||this.g_qs.g_rs(n.g_ii(),n.g_ik()))&&(!this.g_qo.g_qu()||this.g_qo.g_rt(o))}g_ru(_,a,t,n,r,e,d,g,o){this.g_qg.g_qu()||(this.g_qn.g_qu()&&this.g_qn.g_rv(r,e),this.g_qh.g_qu()&&this.g_qh.g_rv(_.g_ih(),_.g_ii()),this.g_qi.g_qu()&&this.g_qi.g_rv(_.g_ij(),_.g_ik()),this.g_qp.g_qu()&&this.g_qp.g_rw(d),this.g_qq.g_qu()&&this.g_qq.g_rw(g),this.g_qj.g_qu()&&this.g_qj.g_rv(a.g_ih(),a.g_ii()),this.g_qk.g_qu()&&this.g_qk.g_rv(a.g_ij(),a.g_ik()),this.g_ql.g_qu()&&this.g_ql.g_rv(t.g_ih(),t.g_ii()),this.g_qm.g_qu()&&this.g_qm.g_rv(t.g_ij(),t.g_ik()),this.g_qr.g_qu()&&this.g_qr.g_rv(n.g_ih(),n.g_ii()),this.g_qs.g_qu()&&this.g_qs.g_rv(n.g_ii(),n.g_ik()),this.g_qo.g_qu()&&this.g_qo.g_rw(o))}g_rx(){return this.g_qF}g_qV(g,_){this.g_qM&&!_||this.g_pR||(this.g_pW.g_qu()&&this.g_pW.g_ry(g),this.g_qM=!0)}g_rz(){this.g_qM=!1}g_qW(g,_){this.g_qN&&!_||this.g_pR||(this.g_pY.g_qu()&&this.g_pY.g_ry(g),this.g_qN=!0)}g_rA(){this.g_qN=!1}g_qT(_){if(!this.g_pR)throw new Error("not device transform shader");this.g_pW.g_ry(_);const a=this.g_os,t=a.g_oX()/2,n=a.g_oY()/2,i=a.g_rB,e=vec3.g_s(t*i[0],n*i[1],100*self.devicePixelRatio),r=vec3.g_s(t*i[0],n*i[1],0),g=mat4.create();mat4.g_av(g,e,r,a.g_rC),mat4.scale(g,g,i),this.g_pY.g_ry(g)}g_rD(g){this.g_pZ.g_qu()&&this.g_pZ.g_rE(g[0],g[1],g[2],g[3])}static g_rF(g,_){const e=_?"highmedp":"mediump";return[`#ifdef GL_FRAGMENT_PRECISION_HIGH`,`#define highmedp highp`,`#else`,`#define highmedp mediump`,`#endif`,`attribute highp ${g?"vec3":"vec2"} aPos;`,`attribute ${e} vec2 aTex;`,`varying ${e} vec2 vTex;`,`uniform highp mat4 matP;`,`uniform highp mat4 matMV;`,`void main(void) {`,` gl_Position = matP * matMV * vec4(aPos, ${g?"":"0.0,"} 1.0);`,` vTex = aTex;`,`}`].join("\n")}static g_rG(){return"varying mediump vec2 vTex;\nuniform lowp vec4 color;\nuniform lowp sampler2D samplerFront;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, vTex) * color;\n}"}static g_rH(){return"#ifdef GL_FRAGMENT_PRECISION_HIGH\n#define highmedp highp\n#else\n#define highmedp mediump\n#endif\nvarying highmedp vec2 vTex;\nuniform lowp vec4 color;\nuniform lowp sampler2D samplerFront;\nuniform highmedp vec2 srcStart;\nuniform highmedp vec2 pixelSize;\nuniform highmedp vec2 tileSize;\nuniform highmedp vec2 tileSpacing;\nvoid main(void) {\n\thighmedp vec2 tile = floor(vTex);\n\thighmedp vec2 tex = fract(vTex);\n\thighmedp vec2 tileOrigin = srcStart + tile * (tileSize + tileSpacing);\n\thighmedp vec2 lowerBound = tileOrigin + pixelSize / 2.0;\n\thighmedp vec2 upperBound = tileOrigin + tileSize - pixelSize / 2.0;\n\tgl_FragColor = texture2D(samplerFront, clamp(tex, lowerBound, upperBound), -16.0) * color;\n}"}static g_rI(){return"attribute vec4 aPoints;\nvarying float pointOpacity;\nuniform float zElevation;\nuniform mat4 matP;\nuniform mat4 matMV;\nvoid main(void) {\n\tgl_Position = matP * matMV * vec4(aPoints.xy, zElevation, 1.0);\n\tgl_PointSize = aPoints.z;\n\tpointOpacity = aPoints.w;\n}"}static g_rJ(){return"uniform lowp sampler2D samplerFront;\nvarying lowp float pointOpacity;\nuniform mediump vec2 pointTexStart;\nuniform mediump vec2 pointTexEnd;\nuniform lowp vec4 color;\nvoid main(void) {\n\tgl_FragColor = texture2D(samplerFront, mix(pointTexStart, pointTexEnd, gl_PointCoord)) * color * pointOpacity;\n}"}static g_rK(){return"uniform lowp vec4 color;\nvoid main(void) {\n\tgl_FragColor = color;\n}"}static g_rL(){return"precision lowp float;\nvarying mediump vec2 vTex;\nuniform vec4 color;\nuniform vec4 color2;\nvec3 fromLinear(vec3 linearRGB)\n{\n\tbvec3 cutoff = lessThan(linearRGB, vec3(0.0031308));\n\tvec3 higher = vec3(1.055) * pow(abs(linearRGB), vec3(1.0/2.4)) - vec3(0.055);\n\tvec3 lower = linearRGB * vec3(12.92);\n\treturn mix(higher, lower, vec3(cutoff));\n}\nvec3 toLinear(vec3 sRGB)\n{\n\tbvec3 cutoff = lessThan(sRGB, vec3(0.04045));\n\tvec3 higher = pow(abs((sRGB + vec3(0.055))/vec3(1.055)), vec3(2.4));\n\tvec3 lower = sRGB/vec3(12.92);\n\treturn mix(higher, lower, vec3(cutoff));\n}\nvoid main(void) {\n\tvec3 linearGrad = mix(toLinear(color.rgb), toLinear(color2.rgb), vTex.x);\n\tfloat a = mix(color.a, color2.a, vTex.x);\n\tgl_FragColor = vec4(fromLinear(linearGrad) * a, a);\n}"}static g_rM(){return"varying mediump vec2 vTex;\nuniform lowp vec4 color;\nvoid main(void) {\n\tlowp float f = 1.0 - abs(vTex.y - 0.5) * 2.0;\n\tgl_FragColor = color * f;\n}"}static g_rN(){return"varying mediump vec2 vTex;\nuniform lowp vec4 color;\nvoid main(void) {\n\tmediump vec2 diff = vTex - vec2(0.5, 0.5);\n\tmediump vec2 diffSq = diff * diff;\n\tmediump float f = step(diffSq.x + diffSq.y, 0.25);\n\tgl_FragColor = color * f;\n}"}static g_rO(){return"varying mediump vec2 vTex;\nuniform lowp vec4 color;\nuniform mediump vec2 pixelSize;\nuniform mediump float outlineThickness;\nvoid main(void) {\n\tmediump vec2 diff = vTex - vec2(0.5, 0.5);\n\tmediump vec2 diffSq = diff * diff;\n\tmediump float distSq = diffSq.x + diffSq.y;\n\tmediump vec2 norm = normalize(diff);\n\tmediump vec2 halfNorm = norm * 0.5;\n\tmediump float innerF = step(distSq, 0.25);\n\tmediump vec2 innerEdge = halfNorm - pixelSize * norm * outlineThickness;\n\tmediump vec2 innerEdgeSq = innerEdge * innerEdge;\n\tmediump float outerF = step(innerEdgeSq.x + innerEdgeSq.y, distSq);\n\tgl_FragColor = color * innerF * outerF;\n}"}static g_rP(){return"varying mediump vec2 vTex;\nuniform lowp vec4 color;\nuniform mediump vec2 pixelSize;\nvoid main(void) {\n\tmediump vec2 diff = vTex - vec2(0.5, 0.5);\n\tmediump vec2 diffSq = diff * diff;\n\tmediump vec2 norm = normalize(diff);\n\tmediump vec2 halfNorm = norm * 0.5;\n\tmediump vec2 halfNormSq = halfNorm * halfNorm;\n\tmediump vec2 innerEdge = halfNorm - pixelSize * norm;\n\tmediump vec2 innerEdgeSq = innerEdge * innerEdge;\n\tmediump float f = smoothstep(halfNormSq.x + halfNormSq.y, innerEdgeSq.x + innerEdgeSq.y, diffSq.x + diffSq.y);\n\tgl_FragColor = color * f;\n}"}static g_rQ(){return"varying mediump vec2 vTex;\nuniform lowp vec4 color;\nuniform mediump vec2 pixelSize;\nuniform mediump float outlineThickness;\nvoid main(void) {\n\tmediump vec2 diff = vTex - vec2(0.5, 0.5);\n\tmediump vec2 diffSq = diff * diff;\n\tmediump float distSq = diffSq.x + diffSq.y;\n\tmediump vec2 norm = normalize(diff);\n\tmediump vec2 halfNorm = norm * 0.5;\n\tmediump vec2 halfNormSq = halfNorm * halfNorm;\n\tmediump vec2 pxNorm = pixelSize * norm;\n\tmediump vec2 innerEdge1 = halfNorm - pxNorm;\n\tmediump vec2 innerEdge1Sq = innerEdge1 * innerEdge1;\n\tmediump float innerF = smoothstep(halfNormSq.x + halfNormSq.y, innerEdge1Sq.x + innerEdge1Sq.y, distSq);\n\tmediump vec2 innerEdge2 = halfNorm - pxNorm * outlineThickness;\n\tmediump vec2 innerEdge2Sq = innerEdge2 * innerEdge2;\n\tmediump vec2 innerEdge3 = halfNorm - pxNorm * (outlineThickness + 1.0);\n\tmediump vec2 innerEdge3Sq = innerEdge3 * innerEdge3;\n\tmediump float outerF = smoothstep(innerEdge3Sq.x + innerEdge3Sq.y, innerEdge2Sq.x + innerEdge2Sq.y, distSq);\n\tgl_FragColor = color * innerF * outerF;\n}"}},"use strict";{function g(g,_){return g[0]===_[0]&&g[1]===_[1]&&g[2]===_[2]&&g[3]===_[3]&&g[4]===_[4]&&g[5]===_[5]&&g[6]===_[6]&&g[7]===_[7]&&g[8]===_[8]&&g[9]===_[9]&&g[10]===_[10]&&g[11]===_[11]&&g[12]===_[12]&&g[13]===_[13]&&g[14]===_[14]&&g[15]===_[15]}const _=new Map([["float",1],["percent",1],["sampler",1],["vec2",2],["vec3",3],["color",3],["vec4",4],["mat4",16]]);g_bA.g_oh.g_pX=class{constructor(g,a,t){if(!_.has(t))throw new Error("invalid uniform type");this.g_rR=g,this.g_pO=this.g_rR.g_q$(),this.g_pP=a,this.g_kA=t,this.g_rS="color"===this.g_kA,this.g_rT=this.g_pO.getUniformLocation(this.g_rR.g_ra(),a),this.g_rU=!!this.g_rT;const n=_.get(t);this.g_rV=new Float32Array(n),this.g_rW=new Float32Array(n)}g_eN(){this.g_rR=null,this.g_pO=null,this.g_rT=null}g_qu(){return this.g_rU}g_rm(){return this.g_kA}g_rX(){return this.g_rS}g_qR(g){this.g_qu()&&(this.g_rV[0]=g,this.g_rW.set(this.g_rV),this.g_pO.uniform1f(this.g_rT,g))}g_qP(g){this.g_qu()&&(this.g_rV[0]=g,this.g_rW.set(this.g_rV),this.g_pO.uniform1i(this.g_rT,g))}g_qQ(g,_){this.g_qu()&&(this.g_rV[0]=g,this.g_rV[1]=_,this.g_rW.set(this.g_rV),this.g_pO.uniform2f(this.g_rT,g,_))}g_qS(g,_,e){this.g_qu()&&(this.g_rV[0]=g,this.g_rV[1]=_,this.g_rV[2]=e,this.g_rW.set(this.g_rV),this.g_pO.uniform3f(this.g_rT,g,_,e))}g_qO(g,_,e,a){this.g_qu()&&(this.g_rV[0]=g,this.g_rV[1]=_,this.g_rV[2]=e,this.g_rV[3]=a,this.g_rW.set(this.g_rV),this.g_pO.uniform4f(this.g_rT,g,_,e,a))}g_rY(g){g=Math.fround(g);const _=this.g_rV;_[0]===g||(_[0]=g,this.g_pO.uniform1f(this.g_rT,g))}g_rZ(g){const _=this.g_rV;_[0]===g||(_[0]=g,this.g_pO.uniform1i(this.g_rT,g))}g_r_(g,_){var e=Math.fround;g=e(g),_=e(_);const t=this.g_rV;t[0]===g&&t[1]===_||(t[0]=g,t[1]=_,this.g_pO.uniform2f(this.g_rT,g,_))}g_r$(g,_,t){var n=Math.fround;g=n(g),_=n(_),t=n(t);const i=this.g_rV;i[0]===g&&i[1]===_&&i[2]===t||(i[0]=g,i[1]=_,i[2]=t,this.g_pO.uniform3f(this.g_rT,g,_,t))}g_rE(g,_,t,n){var i=Math.fround;g=i(g),_=i(_),t=i(t),n=i(n);const e=this.g_rV;e[0]===g&&e[1]===_&&e[2]===t&&e[3]===n||(e[0]=g,e[1]=_,e[2]=t,e[3]=n,this.g_pO.uniform4f(this.g_rT,g,_,t,n))}g_ry(_){const e=this.g_rV;g(e,_)||(g_bA.g_fT(e,_,0),this.g_pO.uniformMatrix4fv(this.g_rT,!1,_))}g_ro(g){var _=Math.fround;const e=this.g_rW;return this.g_rX()?e[0]===_(g.g_hf())&&e[1]===_(g.g_hg())&&e[2]===_(g.g_hh()):e[0]===_(g)}g_rq(g){const _=this.g_rW;this.g_rX()?(_[0]=g.g_hf(),_[1]=g.g_hg(),_[2]=g.g_hh()):_[0]=g}g_rt(g){return this.g_rW[0]===Math.fround(g)}g_rs(g,_){var e=Math.fround;const a=this.g_rW;return a[0]===e(g)&&a[1]===e(_)}g_rw(g){this.g_rW[0]=g}g_rv(g,_){const e=this.g_rW;e[0]=g,e[1]=_}}}"use strict",g_bA.g_oh.g_sa=class{constructor(g){this.g_sb=g,this.g_qX=mat4.create(),this.g_qU=mat4.create(),this.g_pr=null,this.g_sc=vec4.g_s(1,1,1,1),this.g_qY=null,this.g_sd=new g_bA.Rect,this.clearColor=g_bA.g_eM(g_bA.g_gT,0,0,0,0)}},g_bA.g_oh.g_se=class{constructor(g){const _=new ArrayBuffer(96);this.g_kA=0,this.g_sf=g,this.g_pO=g.g_sb.g_oG(),this.g_sg=0,this.g_sh=0,this.g_si=null,this.g_sj=new Float32Array(_,0,16),this.g_sk=new Float32Array(_,64,4),this.g_sl=new Float32Array(_,80,4),this.g_sm=[]}g_sn(g,_){this.g_kA=1,this.g_sg=g,this.g_sh=_}g_so(){const g=this.g_pO;g.drawElements(g.TRIANGLES,this.g_sh,g.UNSIGNED_SHORT,this.g_sg)}g_sp(g){this.g_kA=2,this.g_si=g}g_sq(){const g=this.g_pO,_=this.g_si;g.bindTexture(g.TEXTURE_2D,_?_.g_oS():null)}g_sr(g){this.g_kA=3,g.g_hk(this.g_sk,0)}g_ss(){const g=this.g_sk,_=this.g_sf;vec4.g_r(_.g_sc,g),_.g_qY.g_rD(g)}g_st(g){this.g_kA=19,g.g_hk(this.g_sk,0)}g_su(){const g=this.g_sk,_=this.g_sf.g_qY;_.g_qe.g_qu()&&_.g_qe.g_rE(g[0],g[1],g[2],g[3])}g_sv(g,_){this.g_kA=4,this.g_sg=g,this.g_sh=_}g_sw(){this.g_pO.blendFunc(this.g_sg,this.g_sh)}g_sx(g){this.g_kA=5,mat4.g_r(this.g_sj,g)}g_sy(){const g=this.g_sf,_=g.g_sb.g_sz,t=g.g_qY,n=this.g_sj;for(let g=0,a=_.length;g<a;++g){const a=_[g];a===t?a.g_qW(n,!0):a.g_rA()}mat4.g_r(g.g_qX,n)}g_sA(g,_,e){this.g_kA=6,this.g_si=g,this.g_sg=_?1:0,_&&mat4.g_r(this.g_sj,e)}g_sB(){const _=this.g_pO,a=this.g_si,t=0!==this.g_sg,n=this.g_sj,i=this.g_sf,e=i.g_sb;let r,d;if(a){const g=a.g_pt();i.g_pr=g,_.bindFramebuffer(_.FRAMEBUFFER,g),r=a.g_oX(),d=a.g_oY()}else i.g_pr=null,_.bindFramebuffer(_.FRAMEBUFFER,null),r=e.g_sC(),d=e.g_sD();t&&e.g_sE(r,d,n)}g_sF(g){this.g_kA=7,g.g_hk(this.g_sj,0)}g_sG(g,_,e,t){this.g_kA=7;const n=this.g_sj;n[0]=g,n[1]=_,n[2]=e,n[3]=t}g_sH(){const _=this.g_pO,a=this.g_sj,t=this.g_sf,e=t.g_sb,n=t.clearColor,r=e.g_sI&&g_bA.g_bI;r&&_.disable(_.SCISSOR_TEST);const i=a[0],d=a[1],o=a[2],g=a[3];n.g_hn(i,d,o,g)||(_.clearColor(i,d,o,g),n.g_gY(i,d,o,g)),_.clear(_.COLOR_BUFFER_BIT),r&&_.enable(_.SCISSOR_TEST)}g_sJ(_,t,n,e,r,d,i,g){this.g_kA=8;const o=this.g_sj;o[0]=_,o[1]=t,o[2]=n,o[3]=e,o[4]=r,o[5]=d,o[6]=i,o[7]=g}g_sK(){const _=this.g_pO,a=this.g_sj,t=this.g_sf,e=t.g_sb,n=t.clearColor;e.g_sI||_.enable(_.SCISSOR_TEST),_.scissor(a[0],a[1],a[2],a[3]);const r=a[4],i=a[5],d=a[6],g=a[7];n.g_hn(r,i,d,g)||(_.clearColor(r,i,d,g),n.g_gY(r,i,d,g)),_.clear(_.COLOR_BUFFER_BIT),e.g_sI?_.scissor(0,0,e.g_sL,e.g_sM):_.disable(_.SCISSOR_TEST)}g_sN(g){this.g_kA=13,g.g_hk(this.g_sj,0)}g_sO(){const g=this.g_sj;this.g_sf.g_sd.set(g[0],g[1],g[2],g[3])}g_sP(g,_){this.g_kA=9,this.g_sg=g,this.g_sh=1,this.g_sj[0]=_}g_sQ(){const g=this.g_pO,_=this.g_sf,a=_.g_sb,t=a.g_sR;g.useProgram(t.g_pQ),t.g_qV(_.g_qU,!1),t.g_qW(_.g_qX,!1);const n=_.g_sd;t.g_p$.g_qu()&&t.g_p$.g_r_(n.g_ih(),n.g_ii()),t.g_qa.g_qu()&&t.g_qa.g_r_(n.g_ij(),n.g_ik());const e=this.g_sj[0];if(t.g_qb.g_qu()&&t.g_qb.g_rY(e),t.g_pZ.g_qu()){const g=_.g_sc;t.g_pZ.g_rE(g[0],g[1],g[2],g[3])}g.drawArrays(g.POINTS,this.g_sg/4,this.g_sh),g.useProgram(_.g_qY.g_pQ)}g_sS(g){this.g_kA=10,this.g_si=g}g_sT(){const g=this.g_pO,_=this.g_sf,e=this.g_si;if(_.g_qY=e,g.useProgram(e.g_pQ),e.g_qV(_.g_qU,!1),e.g_qW(_.g_qX,!1),e.g_pZ.g_qu()){const g=_.g_sc;e.g_pZ.g_rE(g[0],g[1],g[2],g[3])}}g_sU(){this.g_kA=11}g_sV(){const g=this.g_sf.g_qY;g.g_qt&&this.g_sW(g),g.g_qI.length&&this.g_sX(g)}g_sW(g){const _=this.g_pO,a=this.g_sj,t=this.g_sk,n=this.g_sl;if(g.g_qg.g_qu()){const g=this.g_sf.g_sb,e=this.g_si;g.g_sY!==e&&(_.activeTexture(_.TEXTURE1),_.bindTexture(_.TEXTURE_2D,e?e.g_oS():null),g.g_sY=e,_.activeTexture(_.TEXTURE0))}g.g_qn.g_qu()&&g.g_qn.g_r_(a[0],a[1]),g.g_qh.g_qu()&&g.g_qh.g_r_(a[2],a[3]),g.g_qi.g_qu()&&g.g_qi.g_r_(a[4],a[5]),g.g_qp.g_qu()&&g.g_qp.g_rY(a[6]),g.g_qq.g_qu()&&g.g_qq.g_rY(a[7]),g.g_qj.g_qu()&&g.g_qj.g_r_(a[12],a[13]),g.g_qk.g_qu()&&g.g_qk.g_r_(a[14],a[15]),g.g_ql.g_qu()&&g.g_ql.g_r_(n[0],n[1]),g.g_qm.g_qu()&&g.g_qm.g_r_(n[2],n[3]),g.g_qr.g_qu()&&g.g_qr.g_r_(t[0],t[1]),g.g_qs.g_qu()&&g.g_qs.g_r_(t[2],t[3]),g.g_qo.g_qu()&&g.g_qo.g_rY(this.g_sg)}g_sX(g){const _=g.g_qI,t=this.g_sm;for(let n=0,a=_.length;n<a;++n){const g=_[n],a=t[n];g.g_rX()?g.g_r$(a.g_hf(),a.g_hg(),a.g_hh()):g.g_rY(a)}}g_sZ(g){this.g_kA=12,this.g_si=g}g_s_(){const g=this.g_pO,_=this.g_si,e=this.g_sf.g_pr;_!==e&&g.bindFramebuffer(g.FRAMEBUFFER,_),g.invalidateFramebuffer(g.FRAMEBUFFER,[g.COLOR_ATTACHMENT0]),_!==e&&g.bindFramebuffer(g.FRAMEBUFFER,e)}g_s$(g,_,a){this.g_kA=15;const t=this.g_sj,n=this.g_sf.g_sb;t[0]=g.g_oX(),t[1]=g.g_oY(),t[2]=_?_.g_oX():n.g_oX(),t[3]=_?_.g_oY():n.g_oY(),t[4]=g.g_pw()?1:0,t[5]="stretch"===a;const e=this.g_sm;g_bA.g_fV(e),e.push(g.g_pt()),e.push(_?_.g_pt():null)}g_ta(){var _=Math.max,a=Math.min;const t=this.g_sj,n=this.g_sm,r=this.g_pO,e=t[0],o=t[1],g=t[2],i=t[3],d=0!==t[4],u=0!==t[5],s=n[0],l=n[1];if(r.bindFramebuffer(r.READ_FRAMEBUFFER,s),r.bindFramebuffer(r.DRAW_FRAMEBUFFER,l),u)r.blitFramebuffer(0,0,e,o,0,0,g,i,r.COLOR_BUFFER_BIT,d?r.LINEAR:r.NEAREST);else{const t=a(e,g),n=a(o,i),d=_(o-i,0),u=_(i-o,0);r.blitFramebuffer(0,d,t,n+d,0,u,t,n+u,r.COLOR_BUFFER_BIT,r.NEAREST)}}g_tb(g){this.g_kA=16,this.g_si=g}g_tc(){this.g_si.g_td(),this.g_si=null}g_te(g){this.g_kA=17,this.g_si=g}g_tf(){this.g_si.g_tg(),this.g_si=null}g_th(g,_,e){this.g_kA=18;const a=this.g_sj;a[0]=g,a[1]=_,a[2]=e}g_ti(){const g=this.g_sf.g_qY,_=this.g_sj;g.g_qn.g_qu()&&g.g_qn.g_r_(_[0],_[1]),g.g_qf.g_qu()&&g.g_qf.g_rY(_[2])}g_tj(_,a,t,n,i,e,r){this.g_kA=14;const g=this.g_sj;_.g_hk(g,0),g[4]=1/a,g[5]=1/t,g[6]=n/a,g[7]=i/t,g[8]=e/a,g[9]=r/t}g_tk(){const g=this.g_sf.g_qY,_=this.g_sj;g.g_qj.g_qu()&&g.g_qj.g_r_(_[0],_[1]),g.g_qn.g_qu()&&g.g_qn.g_r_(_[4],_[5]),g.g_qc.g_qu()&&g.g_qc.g_r_(_[6],_[7]),g.g_qd.g_qu()&&g.g_qd.g_r_(_[8],_[9])}g_tl(){switch(this.g_kA){case 1:return void this.g_so();case 2:return void this.g_sq();case 3:return void this.g_ss();case 4:return void this.g_sw();case 5:return void this.g_sy();case 6:return void this.g_sB();case 7:return void this.g_sH();case 8:return void this.g_sK();case 9:return void this.g_sQ();case 10:return void this.g_sT();case 11:return void this.g_sV();case 12:return void this.g_s_();case 13:return void this.g_sO();case 14:return void this.g_tk();case 15:return void this.g_ta();case 16:return void this.g_tc();case 17:return void this.g_tf();case 18:return void this.g_ti();case 19:return void this.g_su();}}},"use strict";{function _(g,_,a,t,n,e){_?"Gecko"===g_bA.g_cu.g_cC?g.strokeText(a,t,n,e):g.strokeText(a,t,n):"Gecko"===g_bA.g_cu.g_cC?g.fillText(a,t,n,e):g.fillText(a,t,n)}function a(g,_,a,t,n,e){_?g.strokeRect(a,t,n,e):g.fillRect(a,t,n,e)}function t(g){return g*(4/3)}const n={timeout:60},r=new g_bA.g_gT(0,0,0,1),e=new Set(["left","center","right"]),d=new Set(["top","center","bottom"]),g=new Set(["word","character"]),o=new Set;g_bA.g_tm&&g_bA.g_tm.addEventListener("fontload",g=>{const _=g.font.g_q_();for(const e of o)(e.g_tn()||g_bA.g_ea(e.g_to(),_))&&e.g_tp()}),g_bA.g_oh.g_tq=class{constructor(g,_){_=Object.assign({},n,_),this.g_os=g,this.g_tr="Arial",this.g_ts=16,this.g_tt=0,this.g_tu=!1,this.g_tv=!1,this.g_tw="black",this.g_tx=!1,this.g_ty=null,this.g_tz=new Set,this.g_tA="left",this.g_tB="top",this.g_tC="",this.g_tD=null,this.g_tE=g_bA.g_eM(g_bA.g_nY),this.g_tF="word",this.g_tG=!1,this.g_tH=!1,this.g_tI=!0,this.g_tJ=-1,this.g_tK=0,this.g_tL=0,this.g_tM=0,this.g_ou=0,this.g_ov=0,this.g_tN=1,this.g_tO=!1,this.g_tP=null,this.g_tQ=null,this.g_tR=null,this.g_tS=-1,this.g_tT=-1,this.g_tU="",this.g_tV="",this.g_tW="",this.g_tX=1,this.g_tY=1,this.g_tZ=(g,_)=>this.g_t_(g,_),this.g_ot=null,this.g_t$=0,this.g_ua=0,this.g_ub=new g_bA.Rect,this.g_uc=1,this.g_ud=!1,this.g_ue=new g_bA.g_ll(()=>{this.g_uf(),this.g_ug(8,8)},_.timeout),this.g_uh=null,this.g_ui=!1,o.add(this)}g_eN(){this.g_ty=null,this.g_tz.clear(),this.g_tD=null,this.g_tP=null,this.g_tQ=null,this.g_tR=null,this.g_tZ=null,this.g_ue.g_eN(),this.g_uh=null,this.g_uf(),this.g_tE.g_jC(),this.g_tE=null,this.g_os=null,this.g_ui=!0,o.delete(this)}g_uj(){this.g_tO=!0}g_tp(){this.g_uj(),this.g_tE.g_jC(),this.g_tG=!0}g_uk(g){this.g_tI=!!g}g_ul(){return this.g_tI}g_um(g){g=!!g,this.g_tx===g||(this.g_tx=g,this.g_tQ&&(this.g_tQ.textBaseline=this.g_tx?"alphabetic":"top"),this.g_tp())}g_tn(){return this.g_tx}g_un(g){g||(g="serif"),this.g_tr===g||(this.g_tr=g,this.g_tp())}g_to(){return this.g_tr}g_uo(g){.1>g&&(g=.1),this.g_ts===g||(this.g_ts=g,this.g_tp())}g_up(g){this.g_tt===g||(this.g_tt=g,this.g_uj())}g_uq(g){g=!!g,this.g_tu===g||(this.g_tu=g,this.g_tp())}g_ur(g){g=!!g,this.g_tv===g||(this.g_tv=g,this.g_tp())}g_us(g){g=Math.floor(g),this.g_tJ===g||(this.g_tJ=g,this.g_uj())}g_ut(){return this.g_tJ}g_uu(g,_){for(let e=g.length-1;0<=e;--e){const a=g[e];if(a.tag===_)return a}return null}g_uv(g,_){return!!this.g_uu(g,_)}g_uw(_,a){let t="";(this.g_tu||this.g_uv(a,"b"))&&(t+="bold"),(this.g_tv||this.g_uv(a,"i"))&&(t+=" italic");const n=this.g_uu(a,"size"),i=n?parseFloat(n.param):this.g_ts;t+=_?" "+i+"pt":" "+i*this.g_uc*this.g_tN*self.devicePixelRatio+"pt";let e=this.g_tr;const r=this.g_uu(a,"font");return r&&r.param&&(e=r.param,this.g_ty&&!this.g_tz.has(e)&&(this.g_ty(e),this.g_tz.add(e))),e&&(t+=" \""+e+"\""),t}g_ux(g){g instanceof g_bA.g_gT&&(g=g.g_hs()),this.g_tw===g||(this.g_tw=g,this.g_uj())}g_uy(g,_,e){r.g_gZ(g,_,e),this.g_ux(r)}g_uz(g){if(!e.has(g))throw new Error("invalid horizontal alignment");this.g_tA===g||(this.g_tA=g,this.g_uj())}g_uA(g){if(!d.has(g))throw new Error("invalid vertical alignment");this.g_tB===g||(this.g_tB=g,this.g_uj())}g_uB(_){if(!g.has(_))throw new Error("invalid word wrap mode");this.g_tF===_||(this.g_tF=_,this.g_tp())}g_uC(g){this.g_tC===g||(this.g_tC=g,this.g_tp())}g_uD(_,a,t){var n=Math.min;if("undefined"==typeof t&&(t=1),0>=_||0>=_)return;if(this.g_tL===_&&this.g_tM===a&&this.g_tN===t)return;1===this.g_tN!=(1===t)&&(this.g_ud=!0);const r=this.g_tL,e=this.g_tN;this.g_tL=_,this.g_tM=a,this.g_tN=t;const d=self.devicePixelRatio;this.g_ou=this.g_tL*this.g_tN*d,this.g_ov=this.g_tM*this.g_tN*d;const g=Math.max(this.g_ou,this.g_ov),o=n(this.g_os.g_oF(),2048);let i=1;g>o&&(i=o/g,this.g_ou=n(this.g_ou*i,o),this.g_ov=n(this.g_ov*i,o)),this.g_uc=i,0<this.g_t$&&0<this.g_ua&&this.g_tN===e&&this.g_ub.set(0,0,this.g_ou/this.g_t$,this.g_ov/this.g_ua),this.g_tL===r?this.g_uj():this.g_tp()}g_oX(){return this.g_ou}g_oY(){return this.g_ov}g_uE(){return this.g_uF(),this.g_tE.g_og()}g_uG(){this.g_uF();const g=t(this.g_ts)+4;return this.g_tE.g_n$()*(g+this.g_tt)-this.g_tt}g_pv(){return this.g_ue.g_lq(),this.g_uH(),this.g_ot}g_uH(){this.g_ot&&!this.g_tO&&!this.g_tG||this.g_tH||0>=this.g_ou||0>=this.g_ov||(this.g_tO=!1,this.g_tH=!0,this.g_tI?g_bA.g_gD(()=>this.g_uI()):this.g_uI())}g_uI(){var g=Math.ceil;this.g_ui||(this.g_ug(g(this.g_ou),g(this.g_ov)),this.g_uF(),this.g_uJ(),this.g_uK(),this.g_ue.g_lq(),this.g_tH=!1)}g_ug(g,_){this.g_tP||(this.g_tP=g_bA.g_gC(16,16));let e=!1;(this.g_tS!==g||this.g_tT!==_)&&(this.g_tS=g,this.g_tT=_,this.g_tP.width=g,this.g_tP.height=_,e=!0),this.g_tQ||(this.g_tQ=this.g_tP.getContext("2d"),e=!0),e?(this.g_tQ.textBaseline=this.g_tx?"alphabetic":"top",this.g_tQ.font=this.g_tU,this.g_tQ.fillStyle=this.g_tW,this.g_tQ.strokeStyle=this.g_tW):this.g_tQ.clearRect(0,0,g,_)}g_uL(){this.g_tR||(this.g_tR=g_bA.g_gC(16,16).getContext("2d"))}g_uM(g){this.g_tV===g||(this.g_tV=g,this.g_tR.font=g)}g_uF(){this.g_tG&&(this.g_uL(),this.g_tx&&(!this.g_tD||this.g_tD.toString()!==this.g_tC)&&(this.g_tD=new g_bA.g_eo(this.g_tC,{g_nI:!0})),this.g_tE.g_nY(this.g_tx?this.g_tD.g_nT():this.g_tC,this.g_tZ,this.g_tL,this.g_tF),this.g_tG=!1)}g_t_(g,_){this.g_uM(this.g_uw(!0,_));const a=this.g_uu(_,"size"),n=a?parseFloat(a.param):this.g_ts;return{width:this.g_tR.measureText(g).width,height:t(n)}}g_uN(g){this.g_tU===g||(this.g_tU=g,this.g_tQ.font=g)}g_uO(g){this.g_tW===g||(this.g_tW=g,this.g_tQ.fillStyle=g,this.g_tQ.strokeStyle=g)}g_uP(g){this.g_tX===g||(this.g_tX=g,this.g_tQ.globalAlpha=g)}g_uQ(g){this.g_tY===g||(this.g_tY=g,this.g_tQ.lineWidth=g)}g_uJ(){var _=Math.max;this.g_tK=0;const n=this.g_uc*this.g_tN*self.devicePixelRatio,a=t(this.g_ts)*n,i=(4+this.g_tt)*n,e=a+i;let r=0;const o=this.g_tE.g_n_();"center"===this.g_tB?r=_(this.g_ov/2-o.length*e/2,0):"bottom"===this.g_tB&&(r=_(this.g_ov-o.length*e-2,0));for(let g=0,_=o.length;g<_;++g){const _=o[g],e=_.height*n;if(this.g_tx){if(r+=e,0<g&&r>this.g_ov-i)break;}else if(0<g&&r>=this.g_ov-(e+i))break;let a=0;"center"===this.g_tA?a=(this.g_ou-_.width*n)/2:"right"===this.g_tA&&(a=this.g_ou-_.width*n),this.g_uR(_,a,r,n),this.g_tx||(r+=e),r+=i}}g_uR(g,_,a,t){for(const n of g.g_ob)this.g_uS(n,_,a,t,g.height),_+=n.width*t}g_uS(t,M,N,b,u){const f=this.g_tQ,h=u/16;let i=t.width*b;const v=t.height*b,T=t.height/16,l=(4+this.g_tt)*b,m=t.g_nU;let n=t.text;if(-1!==this.g_tJ){if(this.g_tK>=this.g_tJ)return;this.g_tK+n.length>this.g_tJ&&(n=n.substr(0,this.g_tJ-this.g_tK),i=this.g_t_(n,m).width*b),this.g_tK+=n.length}const L=this.g_uu(m,"background"),p=this.g_uv(m,"u"),w=this.g_uv(m,"s");if((!g_bA.g_mW(n)||L||p||w)&&!this.g_uv(m,"hide")){const e=this.g_uu(m,"offsetx");M+=e?parseFloat(e.param)*b:0;const r=this.g_uu(m,"offsety");N+=r?parseFloat(r.param)*b:0,L&&(this.g_uO(L.param),f.fillRect(M,N-v,i,v+l));const g=this.g_uu(m,"color");this.g_uO(g?g.param:this.g_tw);const d=this.g_uu(m,"opacity");this.g_uP(d?parseFloat(d.param)/100:1);const t=this.g_uv(m,"stroke");if(t&&this.g_uQ(T*this.g_uc*this.g_tN),p&&a(f,t,M,N+b*h,i,b*h),w&&a(f,t,M,N-v/4,i,b*T),this.g_uN(this.g_uw(!1,m)),_(f,t,n,M,N,i),!t){this.g_uQ(T*this.g_uc*this.g_tN);const g=this.g_uu(m,"outline");g&&(this.g_uO(g.param),_(f,!0,n,M,N,i))}}}g_uK(){var g=Math.ceil;this.g_os.g_uT()||(this.g_t$=g(this.g_ou),this.g_ua=g(this.g_ov),this.g_ub.set(0,0,this.g_ou/this.g_t$,this.g_ov/this.g_ua),this.g_ud&&(this.g_uf(),this.g_ud=!1),!this.g_ot&&(this.g_ot=this.g_os.g_pm(this.g_t$,this.g_ua,{g_oo:1===this.g_tN,g_op:"high"})),this.g_os.g_uU(this.g_tP,this.g_ot),this.g_uh&&this.g_uh())}g_uV(){return this.g_ub}g_uf(){this.g_ot&&(!this.g_os.g_uT()&&this.g_os.g_pq(this.g_ot),this.g_ot=null)}static g_o$(){for(const g of o)g.g_uf()}static g_uW(){return o.values()}}}{class g{constructor(g){this.g_pO=g.g_oG(),this.g_uX=g.g_oH(),this.g_uY=g.g_uZ(),this.g_u_=null,this.g_lp=!1,this.g_u$=!1,this.g_va=0,this.g_u_=1===this.g_uX?this.g_uY.createQueryEXT():this.g_pO.createQuery()}g_eN(){this.g_vb(),this.g_pO=null,this.g_uY=null,this.g_u$=!1}g_vb(){this.g_u_&&(1===this.g_uX?this.g_uY.deleteQueryEXT(this.g_u_):this.g_pO.deleteQuery(this.g_u_),this.g_u_=null)}g_td(){if(this.g_lp)throw new Error("query already active");1===this.g_uX?this.g_uY.beginQueryEXT(this.g_uY.TIME_ELAPSED_EXT,this.g_u_):this.g_pO.beginQuery(this.g_uY.TIME_ELAPSED_EXT,this.g_u_),this.g_lp=!0}g_tg(){if(!this.g_lp)throw new Error("query not active");1===this.g_uX?this.g_uY.endQueryEXT(this.g_uY.TIME_ELAPSED_EXT):this.g_pO.endQuery(this.g_uY.TIME_ELAPSED_EXT),this.g_lp=!1}g_vc(){if(!this.g_u_||this.g_u$||this.g_lp)return;let g=!1;g=1===this.g_uX?this.g_uY.getQueryObjectEXT(this.g_u_,this.g_uY.QUERY_RESULT_AVAILABLE_EXT):this.g_pO.getQueryParameter(this.g_u_,this.g_pO.QUERY_RESULT_AVAILABLE);const _=this.g_pO.getParameter(this.g_uY.GPU_DISJOINT_EXT);g&&!_&&(this.g_va=1===this.g_uX?this.g_uY.getQueryObjectEXT(this.g_u_,this.g_uY.QUERY_RESULT_EXT):this.g_pO.getQueryParameter(this.g_u_,this.g_pO.QUERY_RESULT),this.g_va/=1e9,this.g_u$=!0),(g||_)&&this.g_vb()}g_vd(){return this.g_u$}g_ve(){if(!this.g_u$)throw new Error("no result available");return this.g_va}}g_bA.g_oh.g_vf=class{constructor(g){this.g_os=g,this.g_vg=g.g_vh(),this.g_lp=!1,this.g_vi=null,this.g_vj=!1,this.g_vk=null,this.g_vl=[]}g_eN(){for(const _ of this.g_vl)_ instanceof g&&_.g_eN();g_bA.g_fV(this.g_vl),this.g_vi=null,this.g_vk=null,this.g_os=null}g_td(){if(this.g_lp)throw new Error("query already active");const g=this.g_os.g_vm();0<g.length?(this.g_vj=!0,this.g_vi=g[g.length-1],this.g_vi.g_vn(),this.g_vi.g_vl.push(this)):(this.g_vj=!1,this.g_vi=null),this.g_lp=!0,g.push(this),this.g_vo()}g_tg(){if(!this.g_lp)throw new Error("query not active");const g=this.g_os.g_vm().pop();if(g!==this)throw new Error("can only end most nested query");this.g_lp=!1,this.g_vn(),this.g_vi&&(this.g_vi.g_vo(),this.g_vi=null)}g_vo(){this.g_vk=g_bA.g_eM(g,this.g_os),this.g_vl.push(this.g_vk),this.g_vk.g_td()}g_vn(){this.g_vk.g_tg(),this.g_vk=null}g_vc(){for(const g of this.g_vl)g.g_vc()}g_vp(){return this.g_vj}g_vd(){return this.g_vl.every(g=>g.g_vd())}g_ve(){return this.g_vl.reduce((g,_)=>g+_.g_ve(),0)}g_vh(){return this.g_vg}}}"use strict",g_bA.g_oh.g_vq=class{constructor(g,_=1e3){this.g_os=g,this.g_vr=_,this.g_vs=[],this.g_os.g_vt(this)}g_eN(){this.g_jC(),this.g_os.g_vu(this),this.g_os=null}g_jC(){for(const g of this.g_vs)g.g_eN();g_bA.g_fV(this.g_vs)}g_vv(){const g=new g_bA.g_oh.g_vf(this.g_os);if(this.g_vs.push(g),this.g_vs.length>this.g_vr){const g=this.g_vs.shift();g.g_eN()}return g}g_vw(g){for(const _ of this.g_vs){if(_.g_vh()>=g)return;if(_.g_vp())return;_.g_vc()}}g_vx(g,_){if(_<=g)return NaN;let e=0;for(const a of this.g_vs){if(a.g_vh()>=_)break;if(!(a.g_vh()<g))if(a.g_vd())e+=a.g_ve();else return NaN}return e}g_vy(g){for(let _=0,e=this.g_vs.length;_<e;++_){const e=this.g_vs[_];if(e.g_vh()<g)e.g_eN();else return void(0<_&&this.g_vs.splice(0,_))}}},"use strict",g_bA.g_oh.g_vz=class{constructor(g,_,a,t,n,e){this.g_os=g,this.g_oD=0,this.g_pQ=null,this.g_vA="",this.g_vB=a,this.g_vC=t,this.g_vD=g_bA.g_eM(g_bA.g_gT),this.g_vD.set(n),this.g_vE=e,"string"==typeof _?this.g_vA=_:(this.g_pQ=_,this.g_vA=this.g_pQ.g_q_())}g_eN(){if(0<this.g_oD)throw new Error("releasing state group still in use");this.g_os=null,this.g_pQ=null,this.g_vA=""}g_vF(){const g=this.g_os;g.g_vG(this.g_pQ),g.g_vH(this.g_vB,this.g_vC),g.g_ux(this.g_vD),g.g_vI(this.g_vE),g.g_vJ(this)}g_vK(){return g_bA.g_oh.g_vz.g_vL(this.g_vA,this.g_vB,this.g_vC,this.g_vD,this.g_vE)}g_vM(){++this.g_oD}g_vN(){--this.g_oD}g_vO(){return this.g_oD}g_o$(){this.g_pQ=null}g_vP(g){if(this.g_pQ=g.g_vQ(this.g_vA),!this.g_pQ)throw new Error("failed to restore shader program")}static g_vL(g,_,a,t,e){const n="string"==typeof g?g:g.g_q_();return n+","+_+","+a+","+t.g_hf()+","+t.g_hg()+","+t.g_hh()+","+t.g_hi()+","+e}},"use strict";{function g(g,_){return g[0]===_[0]&&g[1]===_[1]&&g[2]===_[2]&&g[3]===_[3]&&g[4]===_[4]&&g[5]===_[5]&&g[6]===_[6]&&g[7]===_[7]&&g[8]===_[8]&&g[9]===_[9]&&g[10]===_[10]&&g[11]===_[11]&&g[12]===_[12]&&g[13]===_[13]&&g[14]===_[14]&&g[15]===_[15]}function h(){t=-1;for(const g of o)g.g_vR()&&(g.resolve(),o.delete(g));0<o.size&&(t=self.requestAnimationFrame(h))}function M(g,_,e){let t=null;return 2.1<=e&&(t=g.getContext("webgl2-compute",_),t)?{g_vS:t,version:2.1}:2<=e&&(t=g.getContext("webgl2",_),t)?{g_vS:t,version:2}:(t=g.getContext("webgl",_)||g.getContext("experimental-webgl",_),{g_vS:t,version:1})}const r={g_vT:"default",g_vU:!0,alpha:!1,g_vV:2},a=new Set(["default","low-power","high-performance"]),m=new g_bA.g_iH(0,0,1,0,1,1,0,1),N=[0,0,0,0,0,0,0,0],_=vec3.g_s(0,0,0),n=vec3.g_s(0,0,0),i=mat4.create(),b=new g_bA.g_iH,d=new g_bA.Rect;let c=null;g_bA.g_bI&&(self.g_vW=function(){return c?void c.g_vX():void console.warn("WEBGL_lose_context not supported")},self.g_vY=function(){return c?void c.g_vZ():void console.warn("WEBGL_lose_context not supported")});const o=new Set;let t=-1;g_bA.g_oh.g_v_=class{constructor(g,e){if(e=Object.assign({},r,e),!a.has(e.g_vT))throw new Error("invalid power preference");let i=!1;const d={alpha:!!e.alpha,depth:!1,antialias:!1,powerPreference:e.g_vT,failIfMajorPerformanceCaveat:!0};let _=M(g,d,e.g_vV);if(_.g_vS||(i=!0,d.failIfMajorPerformanceCaveat=!1,_=M(g,d,e.g_vV)),!_.g_vS)throw new Error("failed to initialise WebGL context");const u=_.g_vS;this.g_pO=u,this.g_v$=u.getContextAttributes(),this.g_wa=u.getParameter(u.VERSION),this.g_uX=_.version,this.g_wb=!0,this.g_ou=0,this.g_ov=0,this.g_wc=0,this.g_wd=0,this.g_we=vec3.g_s(0,0,100),this.g_wf=vec3.g_s(0,0,0),this.g_rC=vec3.g_s(0,1,0),this.g_rB=vec3.g_s(1,1,1),this.g_wg=mat4.create(),this.g_wh=mat4.create(),this.g_wi=mat4.create(),this.g_pS=null,this.g_pU=null,this.g_wj=null,this.g_pV=null,this.g_wk=new Float32Array(8e3*this.g_pT()),this.g_wl=new Uint16Array(12e3),this.g_wm=new Float32Array(16e3),this.g_wn=new Float32Array(32e3),this.g_wo=0,this.g_wp=0,this.g_wq=0,this.g_wr=0,this.g_ws=null,this.g_sz=[],this.g_wt=new Map,this.g_wu=null,this.g_wv=null,this.g_ww=null,this.g_wx=null,this.g_wy=null,this.g_wz=null,this.g_wA=null,this.g_wB=null,this.g_wC=null,this.g_wD=null,this.g_sR=null,this.g_wE=null,this.g_wF=[],this.g_wG=0,this.g_wH=0,this.g_wI=null,this.g_wJ=0,this.g_wK=0,this.g_wL=0,this.g_sf=g_bA.g_eM(g_bA.g_oh.g_sa,this),this.g_wM=g_bA.g_eM(g_bA.g_gT,1,1,1,1),this.g_wN=null,this.g_sY=null,this.g_wO=0,this.g_wP=0,this.g_wQ=1,this.g_wR=[this.g_wQ],this.g_wS=1,this.g_wT=[this.g_wS],this.g_wU=.5,this.g_wV=[this.g_wU],this.g_sI=!1,this.g_sL=-1,this.g_sM=-1,this.g_wW=new g_bA.Rect,this.g_wX=new Map,this.g_wY=null,this.g_wZ=-1,this.g_w_=0,this.g_w$=0,this.g_xa=0,this.g_xb="(unavailable)",this.g_xc="(unavailable)",this.g_xd=[],this.g_xe=i,this.g_xf=!1,this.g_xg=null,this.g_xh=!!e.g_vU,this.g_vg=0,this.g_uY=null,this.g_xi=new Set,this.g_xj=[],this.g_xk()}async g_xl(){const g=this.g_pO,e=this.g_pT();this.g_wM.g_gY(1,1,1,1),this.g_wN=null,this.g_sY=null,this.g_wo=0,this.g_wq=0,this.g_wr=8e3*e-4*e,g_bA.g_fV(this.g_wF),this.g_wG=0,this.g_wH=0,this.g_wu=null,this.g_wI=null,this.g_wW.set(0,0,1,1),this.g_wJ=0,this.g_wK=0,this.g_wL=0;const t=this.g_sf;t.g_qY=null,t.g_pr=null,vec4.set(t.g_sc,1,1,1,1),t.clearColor.g_gY(0,0,0,0),t.g_sd.set(0,0,1,1),g.clearColor(0,0,0,0),g.clear(g.COLOR_BUFFER_BIT),g.enable(g.BLEND),g.blendFunc(g.ONE,g.ONE_MINUS_SRC_ALPHA),this.g_wO=g.ONE,this.g_wP=g.ONE_MINUS_SRC_ALPHA,g.disable(g.CULL_FACE),g.disable(g.STENCIL_TEST),g.disable(g.DITHER),g.disable(g.DEPTH_TEST),2<=this.g_oH()&&(this.g_ws=g.createVertexArray(),g.bindVertexArray(this.g_ws)),this.g_pV=g.createBuffer(),g.bindBuffer(g.ARRAY_BUFFER,this.g_pV),g.bufferData(g.ARRAY_BUFFER,this.g_wn.byteLength,g.DYNAMIC_DRAW),this.g_pS=g.createBuffer(),g.bindBuffer(g.ARRAY_BUFFER,this.g_pS),g.bufferData(g.ARRAY_BUFFER,this.g_wk.byteLength,g.DYNAMIC_DRAW),this.g_pU=g.createBuffer(),g.bindBuffer(g.ARRAY_BUFFER,this.g_pU),g.bufferData(g.ARRAY_BUFFER,this.g_wm.byteLength,g.DYNAMIC_DRAW),this.g_wj=g.createBuffer(),g.bindBuffer(g.ELEMENT_ARRAY_BUFFER,this.g_wj),g.bufferData(g.ELEMENT_ARRAY_BUFFER,this.g_wl,g.STATIC_DRAW),g.activeTexture(g.TEXTURE0),g.bindTexture(g.TEXTURE_2D,null),this.g_wZ=g.getParameter(g.MAX_TEXTURE_SIZE);const r=g.getParameter(g.ALIASED_POINT_SIZE_RANGE);this.g_w_=r[0],this.g_w$=r[1];const a=g.getShaderPrecisionFormat(g.VERTEX_SHADER,g.HIGH_FLOAT),i=g.getShaderPrecisionFormat(g.FRAGMENT_SHADER,g.HIGH_FLOAT);this.g_xa=a&&i?Math.min(a.precision,i.precision):0,2048<this.g_w$&&(this.g_w$=2048),this.g_xd=g.getSupportedExtensions();const n=g.getExtension("WEBGL_debug_renderer_info");n&&(this.g_xb=g.getParameter(n.UNMASKED_VENDOR_WEBGL),this.g_xc=g.getParameter(n.UNMASKED_RENDERER_WEBGL)),g_bA.g_bI&&(this.g_xg=g.getExtension("KHR_parallel_shader_compile")),g_bA.g_bI&&(c=g.getExtension("WEBGL_lose_context")),this.g_xh&&(1===this.g_oH()?this.g_uY=g.getExtension("EXT_disjoint_timer_query"):this.g_uY=g.getExtension("EXT_disjoint_timer_query_webgl2")||g.getExtension("EXT_disjoint_timer_query")),g_bA.g_fV(this.g_sz),this.g_wt.clear();const _=g_bA.g_oh.g_pI,u=_.g_rF(this.g_wb,!1),o=[[_.g_rG(),u,"<default>"],[_.g_rG(),u,"<default-device-transform>"],[_.g_rJ(),_.g_rI(),"<point>"],[_.g_rK(),u,"<fill>"],[_.g_rL(),u,"<lineargradient>"],[_.g_rN(),u,"<hardellipse>"],[_.g_rO(),u,"<hardellipseoutline>"],[_.g_rP(),u,"<smoothellipse>"],[_.g_rQ(),u,"<smoothellipseoutline>"],[_.g_rM(),u,"<smoothline>"],[_.g_rH(),_.g_rF(this.g_wb,!0),"<tilemap>"]],s=await Promise.all(o.map(g=>this.g_xm({src:g[0]},g[1],g[2])));this.g_wv=s[0],this.g_ww=s[1],this.g_sR=s[2],this.g_wx=s[3],this.g_wy=s[4],this.g_wz=s[5],this.g_wA=s[6],this.g_wB=s[7],this.g_wC=s[8],this.g_wD=s[9],this.g_wE=s[10],this.g_wY=null,this.g_xn()}g_xk(){const g=this.g_wl;for(let _=0,e=0;12e3>_;)g[_++]=e,g[_++]=e+1,g[_++]=e+2,g[_++]=e,g[_++]=e+2,g[_++]=e+3,e+=4}g_xo(){return this.g_wb}g_pT(){return this.g_wb?3:2}g_xp(g){this.g_wJ=g}g_xq(){return this.g_wJ}g_vI(g){this.g_wK=g,this.g_wY=null}g_xr(){return this.g_wK}async g_xm(g,_,e){const t=await g_bA.g_oh.g_pI.g_pM(this,g,_,e);return this.g_sz.push(t),this.g_wt.set(t.g_q_(),t),t}g_vQ(g){return this.g_wt.get(g)||null}g_xs(){return this.g_wv}g_xt(){this.g_wu=null}g_qZ(g){const _=this.g_sz.indexOf(g);-1!==_&&this.g_sz.splice(_,1),this.g_wt.delete(g.g_q_())}g_xu(g,_,e,t,a){const i=this.g_wh,n=this.g_wg;for(let i=0,n=N.length;i<n;++i)N[i]=0;N[0]=i[0]*g+i[4]*_+i[12],N[1]=i[1]*g+i[5]*_+i[13],N[2]=i[2]*g+i[6]*_+i[14],N[3]=i[3]*g+i[7]*_+i[15],N[4]=n[0]*N[0]+n[4]*N[1]+n[8]*N[2]+n[12]*N[3],N[5]=n[1]*N[0]+n[5]*N[1]+n[9]*N[2]+n[13]*N[3],N[6]=n[2]*N[0]+n[6]*N[1]+n[10]*N[2]+n[14]*N[3],N[7]=-N[2],0===N[7]||(N[7]=1/N[7],N[4]*=N[7],N[5]*=N[7],N[6]*=N[7],a[0]=(.5*N[4]+.5)*e,a[1]=(.5*N[5]+.5)*t)}g_uD(g,_,e){if(this.g_ou!==g||this.g_ov!==_||e){this.g_pN();const e=this.g_pO,t=this.g_sf;this.g_ou=g,this.g_ov=_;const a=this.g_sC(),i=this.g_sD();this.g_xv(a,i,this.g_ou,this.g_ov),this.g_sE(a,i,this.g_wg),this.g_ww&&(e.useProgram(this.g_ww.g_ra()),this.g_ww.g_qT(this.g_wg),this.g_wu=this.g_ww,this.g_sf.g_qY=this.g_ww),e.bindTexture(e.TEXTURE_2D,null),e.activeTexture(e.TEXTURE1),e.bindTexture(e.TEXTURE_2D,null),e.activeTexture(e.TEXTURE0),this.g_wN=null,this.g_sY=null,this.g_wI&&this.g_wI.g_pp(this.g_ou,this.g_ov),e.bindFramebuffer(e.FRAMEBUFFER,null),this.g_wI=null,t.g_pr=null}}g_xv(g,e,t,r){this.g_we[2]=100,mat4.g_av(this.g_wh,this.g_we,this.g_wf,this.g_rC),mat4.perspective(this.g_wg,45,g/e,1,1e4);const a=[0,0],i=[0,0],n=self.devicePixelRatio;this.g_xu(0,0,g,e,a),this.g_xu(1,1,g,e,i),this.g_rB[0]=n/(i[0]-a[0]),this.g_rB[1]=-n/(i[1]-a[1]),this.g_wc=t,this.g_wd=r}g_sE(g,e,t){const r=this.g_pO,a=this.g_sf;r.viewport(0,0,g,e);const d=this.g_sz,n=a.g_qY;for(let _=0,a=d.length;_<a;++_){const g=d[_];g===n?g.g_qV(t,!0):g.g_rz()}mat4.g_r(a.g_qU,t)}g_oX(){return this.g_ou}g_oY(){return this.g_ov}g_xw(){return 1}g_xx(){return 1e4}g_xy(g,_){const e=this.g_pO;return this.g_ou===g&&this.g_ov===_?void(this.g_sI&&(this.g_pN(),e.disable(e.SCISSOR_TEST),this.g_sI=!1,this.g_sL=-1,this.g_sM=-1,this.g_uD(this.g_ou,this.g_ov,!0))):void(!this.g_sI&&(this.g_pN(),e.enable(e.SCISSOR_TEST),this.g_sI=!0),(this.g_sL!==g||this.g_sM!==_)&&(this.g_pN(),e.scissor(0,0,g,_),this.g_sL=g,this.g_sM=_,this.g_uD(this.g_ou,this.g_ov,!0)))}g_xz(){const g=this.g_pO;this.g_sI&&(this.g_pN(),g.disable(g.SCISSOR_TEST),this.g_sI=!1),this.g_sL=-1,this.g_sM=-1}g_sC(){return this.g_sI?this.g_sL:this.g_oX()}g_sD(){return this.g_sI?this.g_sM:this.g_oY()}g_xA(g,_,e){this.g_we[0]=g*this.g_rB[0],this.g_we[1]=_*this.g_rB[1],this.g_we[2]=e}g_xB(g,_,e){this.g_wf[0]=g*this.g_rB[0],this.g_wf[1]=_*this.g_rB[1],this.g_wf[2]=e}g_xC(g){mat4.g_av(this.g_wh,this.g_we,this.g_wf,g||this.g_rC),mat4.scale(this.g_wh,this.g_wh,this.g_rB)}g_xD(g,e){0===g&&0===e||(_[0]=g,_[1]=e,_[2]=0,mat4.translate(this.g_wh,this.g_wh,_))}g_xE(g,e){1===g&&1===e||(_[0]=g,_[1]=e,_[2]=1,mat4.scale(this.g_wh,this.g_wh,_))}g_xF(g){0===g||mat4.g_ad(this.g_wh,this.g_wh,g)}g_xG(){if(!g(this.g_wi,this.g_wh)){const g=this.g_xH();g.g_sx(this.g_wh),mat4.g_r(this.g_wi,this.g_wh),this.g_wH=0}}g_vJ(g){this.g_wY=g}g_xI(){return this.g_wY}g_xJ(g,e,t,r,a){const i=g_bA.g_oh.g_vz.g_vL(g,e,t,r,a);let n=this.g_wX.get(i);return n||(n=g_bA.g_eM(g_bA.g_oh.g_vz,this,g,e,t,r,a),this.g_wX.set(i,n)),n.g_vM(),n}g_xK(g){g.g_vN(),0===g.g_vO()&&(this.g_wY===g&&(this.g_wY=null),this.g_wX.delete(g.g_vK()),g.g_eN())}g_ps(){return this.g_sf}g_xH(){const g=this.g_wF;return this.g_wG===g.length&&g.push(new g_bA.g_oh.g_se(this.g_sf)),g[this.g_wG++]}g_pN(){0===this.g_wG||this.g_uT()||(this.g_xL(),this.g_xM(),this.g_wG=0,this.g_wo=0,this.g_wp=0,this.g_wq=0,this.g_wH=0)}g_xL(){const g=this.g_pO;0<this.g_wq&&(g.bindBuffer(g.ARRAY_BUFFER,this.g_pV),g.bufferSubData(g.ARRAY_BUFFER,0,this.g_wn.subarray(0,this.g_wq))),0<this.g_wo&&(g.bindBuffer(g.ARRAY_BUFFER,this.g_pS),g.bufferSubData(g.ARRAY_BUFFER,0,this.g_wk.subarray(0,this.g_wo)),g.bindBuffer(g.ARRAY_BUFFER,this.g_pU),g.bufferSubData(g.ARRAY_BUFFER,0,this.g_wm.subarray(0,this.g_wp)))}g_xM(){const g=this.g_wF;for(let _=0,e=this.g_wG;_<e;++_)g[_].g_tl()}g_xN(){return this.g_wM.g_hi()}g_xO(g,_,e,t){const i=this.g_wM;if(!i.g_hn(g,_,e,t)){i.g_gY(g,_,e,t);const a=this.g_xH();a.g_sr(i),this.g_wH=0,this.g_wY=null}}g_xP(g){const _=this.g_wM;if(_.g_hi()!==g){_.g_hd(g);const e=this.g_xH();e.g_sr(_),this.g_wH=0,this.g_wY=null}}g_ux(g){const _=this.g_wM;if(!_.g_n(g)){_.set(g);const e=this.g_xH();e.g_sr(_),this.g_wH=0,this.g_wY=null}}g_xQ(){this.g_xO(1,1,1,1)}g_xR(){return this.g_wM}g_xS(g){if(g!==this.g_wN){const _=this.g_xH();_.g_sp(g),this.g_wN=g,this.g_wH=0}}g_oL(){this.g_wN=null}g_vH(g,_){if(g!==this.g_wO||_!==this.g_wP){const e=this.g_xH();e.g_sv(g,_),this.g_wO=g,this.g_wP=_,this.g_wH=0,this.g_wY=null}}g_xT(){return this.g_wO===this.g_pO.ONE&&this.g_wP===this.g_pO.ONE_MINUS_SRC_ALPHA}g_xU(){this.g_vH(this.g_pO.ONE,this.g_pO.ONE_MINUS_SRC_ALPHA)}g_xV(){this.g_vH(this.g_pO.SRC_ALPHA,this.g_pO.ONE_MINUS_SRC_ALPHA)}g_xW(){this.g_vH(this.g_pO.ONE,this.g_pO.ZERO)}Rect(g){this.g_xX(g.g_ih(),g.g_ii(),g.g_ij(),g.g_ik())}g_xX(g,_,e,t){this.g_xY(g,_,e,_,e,t,g,t)}g_xZ(){let g=this.g_wo;if(g>=this.g_wr&&(this.g_pN(),g=0),1===this.g_wH)this.g_wF[this.g_wG-1].g_sh+=6;else{const _=this.g_xH();_.g_sn(this.g_wb?g:3*(g/2),6),this.g_wH=1}}g_x_(g){g.g_iZ(this.g_wk,this.g_wo,this.g_wJ+this.g_wK),this.g_wo+=12}g_iH(g){this.g_xZ(),this.g_x_(g),m.g_hk(this.g_wm,this.g_wp),this.g_wp+=8}g_xY(g,e,t,n,a,i,_,r){this.g_xZ();const o=this.g_wk;let s=this.g_wo;const l=this.g_wJ+this.g_wK;this.g_wb?(o[s++]=g,o[s++]=e,o[s++]=l,o[s++]=t,o[s++]=n,o[s++]=l,o[s++]=a,o[s++]=i,o[s++]=l,o[s++]=_,o[s++]=r,o[s++]=l):(o[s++]=g,o[s++]=e,o[s++]=t,o[s++]=n,o[s++]=a,o[s++]=i,o[s++]=_,o[s++]=r),this.g_wo=s,m.g_hk(this.g_wm,this.g_wp),this.g_wp+=8}g_x$(g,_){this.g_xZ(),this.g_x_(g),_.g_il(this.g_wm,this.g_wp),this.g_wp+=8}g_ya(g,_){this.g_xZ(),this.g_x_(g),_.g_hk(this.g_wm,this.g_wp),this.g_wp+=8}g_yb(g,c){var t=Math.max,r=Math.min;if(mat4.g_r(i,this.g_wi),vec3.g_r(_,this.g_we),vec3.g_r(n,this.g_wf),this.g_we[0]=0,this.g_we[1]=0,this.g_we[2]=100*self.devicePixelRatio,this.g_wf[0]=0,this.g_wf[1]=0,this.g_wf[2]=0,this.g_xC(),this.g_xG(),this.g_sI){const g=this.g_sL/2,_=this.g_sM/2;d.set(-g,_,-g+this.g_sL,_-this.g_sM),b.g_i_(d),d.set(0,0,this.g_sL/this.g_ou,this.g_sM/this.g_ov),this.g_x$(b,d)}else if("crop"===g&&this.g_wI&&c){const g=this.g_ou/2,e=this.g_ov/2,a=c.g_oX(),n=c.g_oY(),_=this.g_wI.g_oX(),i=this.g_wI.g_oY(),o=r(_,a),s=r(i,n),u=t(n-i,0),l=t(i-n,0);d.set(-g,e-l,-g+o,e-s-l),b.g_i_(d),d.set(0,u,o,s+u),d.g_P(a,n),this.g_x$(b,d)}else{let[g,_]=this.g_yc(this.g_wI);const e=g/2,t=_/2;this.g_xX(-e,t,e,-t)}mat4.g_r(this.g_wh,i),vec3.g_r(this.g_we,_),vec3.g_r(this.g_wf,n),this.g_xG()}g_yd(g){const _=g.length/2;if(3>_)throw new Error("need at least 3 points");const e=_-2,d=g[0],a=g[1];for(let n=0;n<e;n+=2){const u=2*n,i=g[u+2],_=g[u+3],l=g[u+4],o=g[u+5];if(n==e-1)this.g_xY(d,a,i,_,l,o,l,o);else{const e=g[u+6],t=g[u+7];this.g_xY(d,a,i,_,l,o,e,t)}}}g_ye(g,e,t,r){const i=g_bA.g_eW(g,e,t,r),n=Math.sin(i),a=Math.cos(i),_=.5*this.g_wQ,u=n*_,o=a*_,s=this.g_wS;2===s?this.g_yf(g,e,t,r,u,o):1===s?this.g_yg(g,e,t,r,u,o):this.g_yh(g,e,t,r,u,o)}g_yf(g,e,t,r,a,i){const n=this.g_wU,_=g+n-i,l=e+n-a,o=t+n+i,s=r+n+a,d=2*i,u=2*a;this.g_xY(_+a,l-i,o+a,s-i,o-a-d,s+i-u,_-a+d,l+i+u)}g_yg(g,e,t,r,a,i){const n=this.g_wU,_=g+n-i,u=e+n-a,o=t+n+i,s=r+n+a;this.g_xY(_+a,u-i,o+a,s-i,o-a,s+i,_-a,u+i)}g_yh(g,e,t,r,a,i){const n=this.g_wU,_=g+n,u=e+n,o=t+n,s=r+n;this.g_xY(_+a,u-i,o+a,s-i,o-a,s+i,_-a,u+i)}g_yi(g,e,t,r,i,n){const _=g_bA.g_eW(g,e,t,r),l=Math.sin(_),a=Math.cos(_),o=.5*this.g_wQ,s=l*o,d=a*o,u=this.g_wS;2===u?this.g_yj(g,e,t,r,s,d,i,n):1===u?this.g_yk(g,e,t,r,s,d,i,n):this.g_yl(g,e,t,r,s,d,i,n)}g_yj(c,e,t,r,a,i,n,_){const l=this.g_wU,o=c+l-i,s=e+l-a,u=t+l+i,p=r+l+a,f=2*i,h=2*a;b.set(o+a,s-i,u+a,p-i,u-a-f,p+i-h,o-a+f,s+i+h),d.set(n,0,_,0),this.g_x$(b,d)}g_yk(g,e,t,r,a,i,n,_){const l=this.g_wU,o=g+l-i,s=e+l-a,u=t+l+i,c=r+l+a;b.set(o+a,s-i,u+a,c-i,u-a,c+i,o-a,s+i),d.set(n,0,_,0),this.g_x$(b,d)}g_yl(g,e,t,r,a,i,n,_){const l=this.g_wU,o=g+l,s=e+l,u=t+l,c=r+l;b.set(o+a,s-i,u+a,c-i,u-a,c+i,o-a,s+i),d.set(n,0,_,0),this.g_x$(b,d)}g_ym(g,_,e,t){const a=.5*this.g_wQ,i=this.g_wS;2===i?this.g_yn(g,_,e,t,a):1===i?this.g_yo(g,_,e,t,a):this.g_yp(g,_,e,t,a)}g_yn(g,_,e,t,a){this.g_yf(g,_,e,_,0,a),this.g_yf(e,_,e,t,a,0),this.g_yf(e,t,g,t,0,-a),this.g_yf(g,t,g,_,-a,0)}g_yo(g,_,e,t,a){this.g_yg(g,_,e,_,0,a),this.g_yg(e,_,e,t,a,0),this.g_yg(e,t,g,t,0,-a),this.g_yg(g,t,g,_,-a,0)}g_yp(g,_,e,t,a){this.g_yh(g,_,e,_,0,a),this.g_yh(e,_,e,t,a,0),this.g_yh(e,t,g,t,0,-a),this.g_yh(g,t,g,_,-a,0)}g_yq(g){this.g_ym(g.g_ih(),g.g_ii(),g.g_ij(),g.g_ik())}g_yr(g){const e=g_bA.g_eW(g.g_fv(),g.g_fw(),g.g_fx(),g.g_fy()),t=Math.sin(e),r=Math.cos(e),a=.5*this.g_wQ,i=t*a,n=r*a,_=this.g_wS;2===_?this.g_ys(g,i,n):1===_?this.g_yt(g,i,n):this.g_yu(g,i,n)}g_ys(g,_,e){this.g_yf(g.g_fv(),g.g_fw(),g.g_fx(),g.g_fy(),_,e),this.g_yf(g.g_fx(),g.g_fy(),g.g_fz(),g.g_fA(),e,-_),this.g_yf(g.g_fz(),g.g_fA(),g.g_fB(),g.g_fC(),-_,-e),this.g_yf(g.g_fB(),g.g_fC(),g.g_fv(),g.g_fw(),-e,_)}g_yt(g,_,e){this.g_yg(g.g_fv(),g.g_fw(),g.g_fx(),g.g_fy(),_,e),this.g_yg(g.g_fx(),g.g_fy(),g.g_fz(),g.g_fA(),e,-_),this.g_yg(g.g_fz(),g.g_fA(),g.g_fB(),g.g_fC(),-_,-e),this.g_yg(g.g_fB(),g.g_fC(),g.g_fv(),g.g_fw(),-e,_)}g_yu(g,_,e){this.g_yh(g.g_fv(),g.g_fw(),g.g_fx(),g.g_fy(),_,e),this.g_yh(g.g_fx(),g.g_fy(),g.g_fz(),g.g_fA(),e,-_),this.g_yh(g.g_fz(),g.g_fA(),g.g_fB(),g.g_fC(),-_,-e),this.g_yh(g.g_fB(),g.g_fC(),g.g_fv(),g.g_fw(),-e,_)}g_yv(g){this.g_wQ=g,this.g_wR[this.g_wR.length-1]=g}g_yw(){return this.g_wQ}g_yx(g){if(100<=this.g_wR.length)throw new Error("pushed too many line widths - check push/pop pairs");this.g_wR.push(g),this.g_wQ=g}g_yy(){if(1>=this.g_wR.length)throw new Error("cannot pop last line width - check push/pop pairs");this.g_wR.pop(),this.g_wQ=this.g_wR[this.g_wR.length-1]}g_yz(){this.g_wS=0,this.g_wT[this.g_wT.length-1]=0}g_yA(){this.g_wS=1,this.g_wT[this.g_wT.length-1]=0}g_yB(){this.g_wS=2,this.g_wT[this.g_wT.length-1]=0}g_yC(g){if("butt"===g)this.g_yD();else if("square"===g)this.g_yE();else if("zag"===g)this.g_yF();else throw new Error("invalid line cap")}g_yD(){if(100<=this.g_wT.length)throw new Error("pushed too many line caps - check push/pop pairs");this.g_wT.push(0),this.g_wS=0}g_yE(){if(100<=this.g_wT.length)throw new Error("pushed too many line caps - check push/pop pairs");this.g_wT.push(1),this.g_wS=1}g_yF(){if(100<=this.g_wT.length)throw new Error("pushed too many line caps - check push/pop pairs");this.g_wT.push(2),this.g_wS=2}g_yG(){if(1>=this.g_wT.length)throw new Error("cannot pop last line cap - check push/pop pairs");this.g_wT.pop(),this.g_wS=this.g_wT[this.g_wT.length-1]}g_yH(g){this.g_wU=g,this.g_wV[this.g_wV.length-1]=g}g_yI(){return this.g_wU}g_yJ(g){if(100<=this.g_wV.length)throw new Error("pushed too many line offsets - check push/pop pairs");this.g_wV.push(g),this.g_wU=g}g_yK(){if(1>=this.g_wV.length)throw new Error("cannot pop last line offset - check push/pop pairs");this.g_wV.pop(),this.g_wU=this.g_wV[this.g_wV.length-1]}g_yL(g){if(!this.g_wW.g_n(g)){this.g_wW.g_r(g);const _=this.g_xH();_.g_sN(g),this.g_wH=0}}g_yM(g,e,t,r){7996<=this.g_wq&&this.g_pN();let a=this.g_wq;const d=this.g_wJ+this.g_wK;if(2===this.g_wH&&this.g_wL===d)this.g_wF[this.g_wG-1].g_sh++;else{const g=this.g_xH();g.g_sP(a,d),this.g_wH=2,this.g_wL=d}const n=this.g_wn;n[a++]=g,n[a++]=e,n[a++]=t,n[a++]=r,this.g_wq=a}g_vG(g){if(this.g_wu!==g){const _=this.g_xH();_.g_sS(g),this.g_wu=g,this.g_wH=0,this.g_wY=null}}g_xn(){this.g_vG(this.g_wv)}g_yN(){this.g_vG(this.g_ww)}g_yO(){this.g_vG(this.g_wx)}g_yP(){this.g_vG(this.g_wy)}g_yQ(g){const _=this.g_xH();_.g_st(g),this.g_wH=0}g_yR(){this.g_vG(this.g_wz)}g_yS(){this.g_vG(this.g_wA)}g_yT(){this.g_vG(this.g_wB)}g_yU(){this.g_vG(this.g_wC)}g_yV(g,_,e=1){const t=this.g_xH();t.g_th(g,_,e),this.g_wH=0}g_yW(){this.g_vG(this.g_wD)}g_yX(){this.g_vG(this.g_wE)}g_yY(g,e,t,r,a,i,n){if(this.g_wu!==this.g_wE)throw new Error("must set tilemap fill mode first");const _=this.g_xH();_.g_tj(g,e,t,r,a,i,n),this.g_wH=0}g_yZ(g,e,t,r,a,i,n,_,l,o,d){const h=this.g_wu,u=h.g_qt,s=!!d.length;if(u&&!h.g_rr(e,t,r,a,i,n,_,l,o)||s&&!h.g_rn(d)){const c=this.g_xH();if(c.g_sU(),u){h.g_ru(e,t,r,a,i,n,_,l,o);const d=c.g_sj;d[0]=i,d[1]=n,e.g_hk(d,2),d[6]=_,d[7]=l,t.g_hk(d,12);const s=c.g_sk;a.g_hk(s,0);const u=s[1];s[1]=s[3],s[3]=u,r.g_hk(c.g_sl,0),c.g_sg=o,c.g_si=h.g_qg.g_qu()?g?g.g_pv():null:null}s&&(h.g_rp(d),g_bA.g_fZ(c.g_sm,d)),this.g_wH=0}}g_y_(g,_,e,t){const n=this.g_xH();n.g_sG(g,_,e,t),this.g_wH=0}g_jC(g){const _=this.g_xH();_.g_sF(g),this.g_wH=0}g_y$(g,_,e,t){this.g_za(g,_,e,t,0,0,0,0)}g_zb(g){this.g_za(g.g_ih(),g.g_ii(),g.width(),g.height(),0,0,0,0)}g_zc(g,_){this.g_za(g.g_ih(),g.g_ii(),g.width(),g.height(),_.g_hf(),_.g_hg(),_.g_hh(),_.g_hi())}g_za(g,e,t,i,n,_,r,d){if(!(0>t||0>i)){const o=this.g_xH();o.g_sJ(g,e,t,i,n,_,r,d),this.g_wH=0}}g_zd(){2<=this.g_oH()&&this.g_pO.bindVertexArray(this.g_ws)}g_ze(){this.g_pN(),2<=this.g_oH()&&this.g_pO.bindVertexArray(null),this.g_pO.flush(),this.g_vg++}g_zf(){for(const g of this.g_xi)g.g_vw(this.g_vg)}g_uT(){return!this.g_pO||this.g_pO.isContextLost()||this.g_xf}g_o$(){g_bA.g_oh.g_or.g_o$(),g_bA.g_oh.g_pe.g_o$(),g_bA.g_oh.g_tq.g_o$();for(const g of this.g_xi)g.g_jC();this.g_xd=[],this.g_uY=null,this.g_xg=null,this.g_xb="(unavailable)",this.g_xc="(unavailable)",this.g_wu=null,this.g_wv=null,this.g_ww=null,this.g_wx=null,this.g_wy=null,this.g_wz=null,this.g_wA=null,this.g_wB=null,this.g_wC=null,this.g_wD=null,this.g_sR=null,this.g_wE=null;for(const g of this.g_wX.values())g.g_o$();for(const g of this.g_sz)g.g_eN();g_bA.g_fV(this.g_sz),this.g_wt.clear()}async g_vP(){this.g_xf=!0,await this.g_xl(),this.g_xf=!1;for(const g of this.g_wX.values())g.g_vP(this);this.g_uD(this.g_ou,this.g_ov,!0)}g_zg(g,_){if(this.g_uT())throw new Error("context lost");this.g_pN();const e=g_bA.g_eM(g_bA.g_oh.g_or,this);return e.g_oE(g,_),e}g_zh(g,_){return this.g_uT()?Promise.reject("context lost"):(_=Object.assign({},_),g_bA.g_cJ.g_cO&&(this.g_oI()||!_.g_ok)?(_.g_cP=!1,createImageBitmap(g,{premultiplyAlpha:"premultiply"}).then(g=>g_bA.g_gD(()=>this.g_zg(g,_)))):g_bA.g_cJ.ImageBitmap?createImageBitmap(g).then(g=>g_bA.g_gD(()=>this.g_zg(g,_))):g instanceof Blob?g_bA.g_gB(g,!0).then(g=>this.g_zh(g,_)):"undefined"!=typeof HTMLImageElement&&g instanceof HTMLImageElement&&"function"==typeof g.decode?g.decode().then(()=>g_bA.g_gD(()=>this.g_zg(g,_))):g_bA.g_gD(()=>this.g_zg(g,_)))}g_pm(g,_,e){this.g_pN();const t=g_bA.g_eM(g_bA.g_oh.g_or,this);return t.g_oM(g,_,e),t}g_uU(g,_,e){this.g_pN(),_.g_oP(g,e)}g_pq(g){g&&(g.g_oV(),0<g.g_oW()||(this.g_pN(),g===this.g_wN&&(this.g_pO.bindTexture(this.g_pO.TEXTURE_2D,null),this.g_wN=null),g===this.g_sY&&(this.g_pO.activeTexture(this.g_pO.TEXTURE1),this.g_pO.bindTexture(this.g_pO.TEXTURE_2D,null),this.g_pO.activeTexture(this.g_pO.TEXTURE0),this.g_sY=null),g.g_oQ()))}g_zi(g){let _=this.g_ou,e=this.g_ov,n=!0;if(g&&("number"==typeof g.width&&(_=g.width,n=!1),"number"==typeof g.height&&(e=g.height,n=!1)),0>=_||0>=e)throw new Error("invalid size");this.g_pN();const d=g_bA.g_eM(g_bA.g_oh.g_pe,this);return d.g_pl(_,e,Object.assign({g_pc:n},g)),this.g_wI=null,this.g_sf.g_pr=null,d}g_zj(g){if(g===this.g_wI)return;let e,d,o,u;g?(g.g_pz()&&g.g_pp(this.g_ou,this.g_ov),o=g.g_oX(),u=g.g_oY(),e=o,d=u):(o=this.g_ou,u=this.g_ov,e=this.g_sC(),d=this.g_sD());const s=this.g_wc!==o||this.g_wd!==u;s&&this.g_xv(e,d,o,u);const n=this.g_xH();n.g_sA(g,s,this.g_wg),this.g_wI=g,this.g_wH=0}g_zk(){return this.g_wI}g_yc(g){return g?[g.g_oX(),g.g_oY()]:[this.g_ou,this.g_ov]}g_zl(g,_="stretch"){if(2>this.g_uX||this.g_wI&&0<this.g_wI.g_pA())this.g_xW(),this.g_xQ(),this.g_zm(g,_);else{const e=this.g_xH();e.g_s$(g,this.g_wI,_),this.g_wH=0}}g_zm(g,_="stretch"){const e=g.g_pv();if(!e)throw new Error("not a texture-backed render target");this.g_xS(e),this.g_yb(_,e)}g_zn(g){if(!(2>this.g_uX)){const _=this.g_xH();_.g_sZ(g.g_pt()),this.g_wH=0}}g_zo(g){this.g_zj(null),this.g_pN();const _=g.g_pv();_===this.g_wN&&(this.g_pO.bindTexture(this.g_pO.TEXTURE_2D,null),this.g_wN=null),_===this.g_sY&&(this.g_pO.activeTexture(this.g_pO.TEXTURE1),this.g_pO.bindTexture(this.g_pO.TEXTURE_2D,null),this.g_pO.activeTexture(this.g_pO.TEXTURE0),this.g_sY=null),g.g_oQ()}async g_pF(g,e){this.g_pN();const t=this.g_wI;let d,u,f;g?(d=g.g_oX(),u=g.g_oY(),f=g.g_pt()):(d=this.g_oX(),u=this.g_oY(),f=null);const c=this.g_pO;c.bindFramebuffer(c.FRAMEBUFFER,f);const _=()=>{c.bindFramebuffer(c.FRAMEBUFFER,null),this.g_wI=null,this.g_sf.g_pr=null,this.g_zj(t)};let l;if(!e&&2<=this.g_oH()){c.bindFramebuffer(c.READ_FRAMEBUFFER,f);const g=c.createBuffer(),e=4*(d*u),a=c.PIXEL_PACK_BUFFER;c.bindBuffer(a,g),c.bufferData(a,e,c.STREAM_READ),c.readPixels(0,0,d,u,c.RGBA,c.UNSIGNED_BYTE,0),c.bindFramebuffer(c.READ_FRAMEBUFFER,null),c.bindBuffer(a,null),_();const t=c.fenceSync(c.SYNC_GPU_COMMANDS_COMPLETE,0);await this.g_pL(()=>c.getSyncParameter(t,c.SYNC_STATUS)===c.SIGNALED),c.deleteSync(t),l=new ImageData(d,u),c.bindBuffer(a,g),c.getBufferSubData(a,0,new Uint8Array(l.data.buffer),0,e),c.bindBuffer(a,null),c.deleteBuffer(g)}else l=new ImageData(d,u),c.readPixels(0,0,d,u,c.RGBA,c.UNSIGNED_BYTE,new Uint8Array(l.data.buffer)),_();return l}g_zp(g){if(this.g_zq()){const _=this.g_xH();_.g_tb(g),this.g_wH=0}}g_zr(g){if(this.g_zq()){const _=this.g_xH();_.g_te(g),this.g_wH=0}}g_pL(g){const _=new Promise(_=>o.add({resolve:_,g_vR:g}));return-1===t&&(t=self.requestAnimationFrame(h)),_}g_zs(){return this.g_ou*this.g_ov*(this.g_v$.alpha?4:3)}g_zt(){let g=0;for(const _ of g_bA.g_oh.g_pe.g_pG())_.g_pv()||(g+=_.g_o_());return g}g_zu(){let g=0;for(const _ of g_bA.g_oh.g_or.g_pa())g+=_.g_o_();return g}g_zv(){return this.g_zs()+this.g_zt()+this.g_zu()}g_zw(){return this.g_wa}g_oH(){return this.g_uX}g_oI(){return 2<=this.g_oH()}g_oF(){return this.g_wZ}g_zx(){return this.g_w_}g_zy(){return this.g_w$}g_zz(){return 0!==this.g_xa}g_zA(){return this.g_xa}g_zB(){return this.g_xb}g_zC(){return this.g_xc}g_zD(){return this.g_xd}g_oO(){return this.g_xe}g_zq(){return!!this.g_uY}g_uZ(){return this.g_uY}g_pK(){return this.g_xg}g_vt(g){this.g_xi.add(g)}g_vu(g){this.g_xi.delete(g)}g_vm(){return this.g_xj}g_vh(){return this.g_vg}g_zE(){this.g_vg++}g_oG(){return this.g_pO}g_zF(g){const _=this.g_pO;let e=_.ONE,t=_.ONE_MINUS_SRC_ALPHA;switch(g){case"normal":e=_.ONE,t=_.ONE_MINUS_SRC_ALPHA;break;case"additive":e=_.ONE,t=_.ONE;break;case"copy":e=_.ONE,t=_.ZERO;break;case"destination-over":e=_.ONE_MINUS_DST_ALPHA,t=_.ONE;break;case"source-in":e=_.DST_ALPHA,t=_.ZERO;break;case"destination-in":e=_.ZERO,t=_.SRC_ALPHA;break;case"source-out":e=_.ONE_MINUS_DST_ALPHA,t=_.ZERO;break;case"destination-out":e=_.ZERO,t=_.ONE_MINUS_SRC_ALPHA;break;case"source-atop":e=_.DST_ALPHA,t=_.ONE_MINUS_SRC_ALPHA;break;case"destination-atop":e=_.ONE_MINUS_DST_ALPHA,t=_.SRC_ALPHA;break;default:throw new Error("invalid blend name");}return{g_zG:e,g_zH:t}}g_zI(g){const _=this.g_pO;let e=_.ONE,t=_.ONE_MINUS_SRC_ALPHA;switch(g){case 0:e=_.ONE,t=_.ONE_MINUS_SRC_ALPHA;break;case 1:e=_.ONE,t=_.ONE;break;case 3:e=_.ONE,t=_.ZERO;break;case 4:e=_.ONE_MINUS_DST_ALPHA,t=_.ONE;break;case 5:e=_.DST_ALPHA,t=_.ZERO;break;case 6:e=_.ZERO,t=_.SRC_ALPHA;break;case 7:e=_.ONE_MINUS_DST_ALPHA,t=_.ZERO;break;case 8:e=_.ZERO,t=_.ONE_MINUS_SRC_ALPHA;break;case 9:e=_.DST_ALPHA,t=_.ONE_MINUS_SRC_ALPHA;break;case 10:e=_.ONE_MINUS_DST_ALPHA,t=_.SRC_ALPHA;break;default:throw new Error("invalid blend index");}return{g_zG:e,g_zH:t}}g_zJ(){return g_bA.g_eM(g_bA.g_oh.g_tq,this)}}}{function g(g){if(!g)return"";const _=g.split(".");if(2>_.length)return"";const a=_[_.length-1].toLowerCase();return e.get(a)||""}const _=new Set(["local","remote"]),e=new Map([["mp4","video/mp4"],["webm","video/webm"],["m4a","audio/mp4"],["mp3","audio/mpeg"],["js","application/javascript"],["wasm","application/wasm"]]);g_bA.g_zK=class extends g_bA.g_eK{constructor(g,e){if(super(),!_.has(e.g_zL))throw new Error("invalid load policy");if(this.g_zM=g,this.g_zN=new Map,this.g_zO=new Map,this.g_zP=!!e.g_zQ,this.g_zR=!!e.g_zS,this.g_zT=e.g_zU||{},this.g_zV=new Map,this.g_zW=!1,this.g_zX="",this.g_zY="",this.g_zZ="",this.g_z_=e.g_zL,this.g_z$=[],this.g_Aa=new Map,this.g_Ab=[],this.g_Ac=[],this.g_Ad=!1,this.g_Ae=0,this.g_Af=0,this.g_Ag=0,this.g_Ah=!1,this.g_Ai=g_bA.g_eM(g_bA.g_mA,()=>this.g_Aj(),50),this.g_Ak=new g_bA.g_mr(Math.max(g_bA.hardwareConcurrency,8)),e.g_Al)for(const[g,_]of Object.entries(e.g_Al))this.g_zN.set(g,_)}g_eN(){this.g_zN.clear();for(const g of this.g_zO.values())URL.revokeObjectURL(g);this.g_zO.clear();for(const g of this.g_z$)g.g_eN();g_bA.g_fV(this.g_z$),this.g_Aa.clear(),g_bA.g_fV(this.g_Ac),this.g_zM=null}g_Am(){return this.g_zM}g_An(g){this.g_zX=g}g_Ao(){return this.g_zX}g_Ap(g){this.g_zY=g}g_Aq(){return this.g_zY}g_Ar(g){this.g_zZ=g}g_As(){return this.g_zZ}g_gu(g){return this.g_gv(g,this.g_z_).then(g=>g_bA.g_gA(g))}g_gv(g,_){_=_||this.g_z_;const e=this.g_zN.get(g);return e?Promise.resolve(e):this.g_zP&&g_bA.g_gq(g)?this.g_At(g):"local"===_?this.g_Ak.g_jL(()=>g_bA.g_gv(g)):g_bA.g_gv(g)}g_Au(g){return this.g_zN.has(g)}g_Av(g,_){return this.g_zM.g_Aw("runtime","cordova-fetch-local-file",{filename:g,as:_})}g_Ax(g){return this.g_Av(g,"text")}async g_At(_){const e=await this.g_Av(_,"buffer"),a=g(_);return new Blob([e],{type:a})}async g_Ay(g){const _=await this.g_At(g);return URL.createObjectURL(_)}g_Az(g){return this.g_Av(g,"buffer")}g_AA(g){const _=this.g_zN.get(g);if(!_)return g;let e=this.g_zO.get(_);return e||(e=URL.createObjectURL(_),this.g_zO.set(_,e)),e}g_AB(g){return this.g_zM.g_AC()||"playable-ad"===this.g_zM.g_AD()?this.g_AA(g.toLowerCase()):this.g_zX+g}g_AE(g){return this.g_zM.g_AC()?this.g_AA(g.toLowerCase()):g}g_AF(g){return this.g_zM.g_AC()?Promise.resolve(this.g_AA(g.toLowerCase())):this.g_zP?this.g_Ay(g.toLowerCase()):Promise.resolve(g.toLowerCase())}g_AG(g){if(g.g_AH&&!_.has(g.g_AH))throw new Error("invalid load policy");let e=this.g_Aa.get(g.url);return e?e:(e=g_bA.g_eM(g_bA.g_AI,this,{url:g.url,size:g.size||0,g_AH:g.g_AH||this.g_z_}),this.g_z$.push(e),this.g_Aa.set(e.g_AJ(),e),this.g_Ad||(this.g_Ae+=e.g_jF(),this.g_Ac.push(e.g_AK().then(()=>this.g_AL(e.g_jF())))),e)}async g_AM(){try{await Promise.all(this.g_Ac),this.g_Ag=1}catch(g){console.error("Error loading: ",g),this.g_Ah=!0,this.g_Aj()}}g_AN(){this.g_Ad=!0}g_AO(){return this.g_Ah}g_AL(g){this.g_Af+=g,this.g_Ai.g_mO()}g_Aj(){const g=g_bA.g_eM(g_bA.Event,"loadingprogress");this.g_Ag=g_bA.g_eQ(this.g_Af/this.g_Ae,0,1),g.g_AP=this.g_Ag,this.g_zM.g_kX().dispatchEvent(g)}g_AQ(){return this.g_Ag}g_AR(g){g_bA.g_fZ(this.g_Ab,g),this.g_Ab.length&&this.g_Ac.push(this.g_AS())}g_AS(){if("undefined"==typeof FontFace)return Promise.resolve();const g=[];for(const[_,e,a]of this.g_Ab)this.g_Ae+=a,g.push(this.g_AT(_,e).then(()=>this.g_AL(a)));return Promise.all(g)}async g_AT(g,_){const e=await this.g_AF(this.g_zY+_),a=new FontFace(g,`url('${e}')`);this.g_zM.g_AU()?self.fonts.add(a):document.fonts.add(a);try{await a.load()}catch(_){console.warn(`[C3 runtime] Failed to load web font '${g}': `,_)}}g_AV(g){return!!this.g_zT[g]}g_AW(g,_){this.g_zW=!!_;for(const[t,a,n]of g)this.g_zV.set(t,{fileName:t,g_AX:a.map(g=>({type:g[0],g_AY:g[1],g_AZ:t+g[1],fileSize:g[2]})),g_A_:n})}g_A$(g){const _=this.g_zV.get(g.toLowerCase());if(!_)return null;let e=null;for(const a of _.g_AX)if(e||"audio/webm; codecs=opus"!==a.type||(e=a),this.g_AV(a.type))return a;return e}g_Ba(g){const _=this.g_A$(g);return _?{url:this.g_AB(_.g_AZ),type:_.type}:null}g_Bb(){if(this.g_zW){const g=[];for(const _ of this.g_zV.values()){if(_.g_A_)continue;const e=this.g_A$(_.fileName);e&&g.push({g_Bc:_.fileName,url:this.g_AB(e.g_AZ),type:e.type,fileSize:e.fileSize})}return g}return[]}}}"use strict",g_bA.g_Bd=class extends g_bA.g_eK{constructor(g,_){super(),this.g_Be=g,this.g_zM=g.g_Am(),this.g_Bf=_.url,this.g_Bg=_.size,this.g_Bh=_.g_AH,this.g_Bi=null,this.g_Bj=!1,this.g_Bk=null}g_eN(){this.g_Bk=null,this.g_Be=null,this.g_zM=null,this.g_Bi=null}g_AJ(){return this.g_Bf}g_jF(){return this.g_Bg}g_AK(){return"local"===this.g_Bh||this.g_Bi?(this.g_Bj=!0,Promise.resolve()):this.g_Bk?this.g_Bk:(this.g_Bk=this.g_Be.g_gv(this.g_Bf,this.g_Bh).then(g=>{this.g_Bj=!0,this.g_Bk=null,this.g_Bi=g}).catch(g=>console.error("Error loading resource: ",g)),this.g_Bk)}g_Bl(){return this.g_Bj}g_Bm(){return this.g_Bi?Promise.resolve(this.g_Bi):this.g_Be.g_gv(this.g_Bf,this.g_Bh)}},"use strict";{const g=new g_bA.g_mr,_=new Set;g_bA.g_AI=class extends g_bA.g_Bd{constructor(g,e){super(g,e),this.g_Bn=null,this.g_Bo=null,this.g_oD=0,this.g_Bp=-1,this.g_Bq=-1,_.add(this)}g_eN(){if(this.g_uf(),0!==this.g_oD)throw new Error("released image asset which still has texture references");this.g_Bn=null,_.delete(this),super.g_eN()}static g_Br(){for(const g of _)g.g_Bn=null,g.g_Bo=null,g.g_oD=0}g_Bs(_,e){return(this.g_oD++,this.g_Bo)?Promise.resolve(this.g_Bo):this.g_Bn?this.g_Bn:(this.g_Bn=this.g_Bm().then(a=>g.g_jL(()=>_.g_zh(a,e).then(g=>(this.g_Bn=null,0===this.g_oD)?(_.g_pq(g),null):(this.g_Bo=g,this.g_Bp=g.g_oX(),this.g_Bq=g.g_oY(),this.g_Bo)))).catch(g=>{throw console.error("Failed to load texture: ",g),g}),this.g_Bn)}g_uf(){if(0>=this.g_oD)throw new Error("texture released too many times");if(this.g_oD--,0===this.g_oD&&this.g_Bo){const g=this.g_Bo.g_oT();g.g_pq(this.g_Bo),this.g_Bo=null}}g_pv(){return this.g_Bo}g_oX(){return this.g_Bp}g_oY(){return this.g_Bq}async g_Bt(){const g=await this.g_Bm();return g_bA.g_cJ.g_cO?await createImageBitmap(g,{premultiplyAlpha:"none"}):g_bA.g_cJ.ImageBitmap?await createImageBitmap(g):await g_bA.g_gB(g)}}}{function g(g,_){return g.g_Bv().g_Bu()-_.g_Bv().g_Bu()}g_bA.g_Bw=class extends g_bA.g_eK{constructor(g,_,e){super(),this.g_Bx=g,this.g_hP=_,this.g_hQ=e,this.g_By=[],this.g_Bz=!0,this.g_BA=new Set,this.g_BB=!1}g_eN(){g_bA.g_fV(this.g_By),this.g_BA.clear(),this.g_Bx=null}g_lq(){g_bA.g_fV(this.g_By),this.g_Bz=!0,this.g_BA.clear(),this.g_BB=!1}g_BC(){this.g_Bz=!1}g_jM(){return!this.g_By.length||!(this.g_By.length>this.g_BA.size)&&(this.g_BD(),!0)}g_BE(g){return this.g_BA.has(g)?(this.g_BA.delete(g),void(0===this.g_BA.size&&(this.g_BB=!1))):void(this.g_By.push(g),this.g_Bz=1===this.g_By.length)}g_lC(g){this.g_BA.add(g),this.g_BB=!0,50<=this.g_BA.size&&this.g_BD()}g_BD(){return this.g_BB?this.g_By.length===this.g_BA.size?void this.g_lq():void(g_bA.g_gc(this.g_By,this.g_BA),this.g_BA.clear(),this.g_BB=!1):void 0}g_BF(){this.g_Bz||(this.g_By.sort(g),this.g_Bz=!0)}g_BG(g){this.g_BD(),this.g_BF(),this.g_By.length&&g.push(this.g_By)}}}"use strict",g_bA.g_BH=class extends g_bA.g_eK{constructor(g,_){super(),this.g_BI=g,this.g_BJ=_,this.g_BK=g_bA.g_eM(g_bA.g_jA)}g_eN(){this.g_BK.g_eN(),this.g_BK=null}g_BL(g,_,e){let a=this.g_BK.g_bR(g,_);return a?a:e?(a=g_bA.g_eM(g_bA.g_Bw,this,g,_),this.g_BK.Set(g,_,a),a):null}g_BM(g){return Math.floor(g/this.g_BI)}g_BN(g){return Math.floor(g/this.g_BJ)}g_BO(g,_,a){if(_)for(let t=_.g_ih(),n=_.g_ij();t<=n;++t)for(let n=_.g_ii(),e=_.g_ik();n<=e;++n){if(a&&a.g_iD(t,n))continue;const _=this.g_BL(t,n,!1);_&&(_.g_lC(g),_.g_jM()&&this.g_BK.g_jD(t,n))}if(a)for(let t=a.g_ih(),n=a.g_ij();t<=n;++t)for(let n=a.g_ii(),e=a.g_ik();n<=e;++n)_&&_.g_iD(t,n)||this.g_BL(t,n,!0).g_BE(g)}g_BP(g,_){let t=this.g_BM(g.g_ih());for(const n=this.g_BN(g.g_ii()),a=this.g_BM(g.g_ij()),e=this.g_BN(g.g_ik());t<=a;++t)for(let g=n;g<=e;++g){const e=this.g_BL(t,g,!1);e&&e.g_BG(_)}}g_BQ(g){let _=g.g_ih();for(const t=g.g_ii(),a=g.g_ij(),n=g.g_ik();_<=a;++_)for(let g=t;g<=n;++g){const e=this.g_BL(_,g,!1);e&&e.g_BC()}}},"use strict";{function _(g,_){return g.g_Bv().g_Bu()-_.g_Bv().g_Bu()}function a(g,_){return g.g_Bv().g_BR()-_.g_Bv().g_BR()}const t=new g_bA.Rect,n=new g_bA.g_iH,i=[],r=new g_bA.Rect,o=new g_bA.Rect,u=vec3.g_s(0,1,0);g_bA.g_BS=class extends g_bA.g_eK{constructor(g,_,e){super(),this.g_BT=g,this.g_zM=g.g_Am(),this.g_pP=e[0],this.g_BU=_,this.g_BV=e[2],this.g_BW=!!e[3],this.g_BX=g_bA.g_eM(g_bA.g_gT),this.g_BX.g_hG(e[4].map(g=>g/255)),this.g_BY=!!e[5],this.g_BZ=e[6],this.g_B_=e[7],this.g_vD=g_bA.g_eM(g_bA.g_gT,1,1,1,e[8]),this.g_B$=g_bA.g_eM(g_bA.g_gT),this.g_Ca=e[9],this.g_Cb=e[10],this.g_Cc=e[11],this.g_Cd=e[12],this.g_vB=0,this.g_vC=0,this.g_Ce=null,this.g_Cf=1,this.g_vE=e[16],this.g_Cg=0,this.g_Ch=!0,this.g_Ci=g_bA.g_eM(g_bA.Rect),this.g_Cj=g_bA.g_eM(g_bA.Rect),this.g_Ck=[],this.g_Cl=[],this.g_Cm=[],this.g_By=[],this.g_Cn=!1,this.g_Co=!1,this.g_Cp=g_bA.g_eM(g_bA.g_Cq,this,e[15]),this.g_Cr=null,this.g_Cs=[],this.g_Ct=!1,this.g_Cu=g_bA.g_eM(g_bA.Rect,0,0,-1,-1),this.g_Cv=g_bA.g_eM(g_bA.Rect,0,0,-1,-1),this.g_Cw(),this.g_Cb&&(this.g_Cr=g_bA.g_eM(g_bA.g_BH,this.g_zM.g_Cx(),this.g_zM.g_Cy()));for(const t of e[14]){const g=this.g_zM.g_Cz(t[1]);this.g_BT.g_CA(g),g.g_CB()||(g.g_CC(t),g.g_CD(this.g_BU)),this.g_Cl.push(t)}g_bA.g_fZ(this.g_Ck,this.g_Cl)}static g_pM(g,_,e){return g_bA.g_eM(g_bA.g_BS,g,_,e)}g_eN(){this.g_BT=null,this.g_zM=null}g_CE(_){const a=this.g_BT.g_CF();let t=0;const n=this.g_Cl;for(let i=0,g=n.length;i<g;++i){const e=n[i],r=this.g_zM.g_Cz(e[1]);let g=!0;if(!r.g_CG()||a){const a=this.g_zM.g_CH(e,this,!0);_.push(a),r.g_CI()&&(g=!1,this.g_Cm.push(a.g_CJ()))}g&&(n[t]=n[i],++t)}g_bA.g_fU(n,t),this.g_zM.g_CK(),this.g_CL()}g_CM(g,_){const e=g.g_Bv();if(e.g_CN()!==this)throw new Error("instance added to wrong layer");this.g_By.push(g),0!==e.g_BR()&&(this.g_Co=!0),_&&this.g_Cb&&g.g_Bv().g_CO(),this.g_CL()}g_CP(g){this.g_By.includes(g)||(this.g_By.push(g),0!==g.g_Bv().g_BR()&&(this.g_Co=!0),this.g_CL())}g_CQ(g,_){const e=g.g_Bv();if(e.g_CN()!==this)throw new Error("instance added to wrong layer");this.g_By.unshift(g),0!==e.g_BR()&&(this.g_Co=!0),this.g_CL(),_&&this.g_Cb&&g.g_Bv().g_CO()}g_CR(g,_){const e=this.g_By.indexOf(g);0>e||(_&&this.g_Cb&&g.g_Bv().g_CS(),this.g_By.splice(e,1),this.g_CL(),this.g_CT())}g_CU(){this.g_Co=!0}g_CT(){0===this.g_By.length&&(this.g_Co=!1)}g_CV(g){if(g){const g=new Set;for(const _ of this.g_By){const e=_.g_Bv().g_Bu();0<=e&&g.add(e)}let _=-1;for(const e of this.g_By){const a=e.g_Bv();if(!(0<=a.g_Bu())){for(++_;g.has(_);)++_;a.g_CW(_)}}}this.g_By.sort(_)}g_CX(){this.g_CY(this.g_CZ(),!0)}g_C_(){for(const g of this.g_By)g.g_C$().g_CI()||this.g_zM.g_Da(g);this.g_zM.g_CK(),g_bA.g_fV(this.g_By),this.g_Co=!1,this.g_CL()}g_Db(_,a){const t=this.g_zM.g_Dc(),n=this.g_zM.g_Dd(),r=_.g_De();for(const e of this.g_Cl){const d=e[0],g=d[0],o=d[1];if(!a.g_iD(g,o))continue;const i=n[e[1]];if(i!==_)if(!r)continue;else if(!_.g_Df(i))continue;const u=this.g_zM.g_CH(e,this,!1);if(t.g_Dg(!0),u.g_Dh(),u.g_Di())for(const g of u.siblings())g.g_Dh();t.g_Dg(!1)}}g_Dj(){return this.g_By.length}g_Dk(){return this.g_BT}g_q_(){return this.g_pP}g_Dl(){return this.g_BU}g_Dm(){return this.g_BV}g_Am(){return this.g_zM}g_Dn(){return this.g_Cp}g_Do(){return this.g_Cb}g_Dp(){return this.g_Cr}g_Dq(){this.g_Ct=!1}g_Dr(){return this.g_BW}g_Ds(g){g=!!g,this.g_BW===g||(this.g_BW=g,this.g_zM.g_Dt())}g_Du(){return this.g_Ci}g_Dv(_,a){const t=this.g_Cj;if(0===_)a.g_r(t);else{const n=this.g_Dw(_),i=t.g_im(),e=t.g_in(),r=.5*t.width()/n,g=.5*t.height()/n;a.set(i-r,e-g,i+r,e+g)}}g_xN(){return this.g_vD.g_hi()}g_xP(g){g=g_bA.g_eQ(g,0,1),this.g_vD.g_hi()===g||(this.g_vD.g_hd(g),this.g_Cw(),this.g_zM.g_Dt())}g_Cw(){this.g_B$.g_r(this.g_vD),this.g_B$.g_hp()}g_Dx(){return this.g_B$}g_Dy(){return this.g_vD.g_hn(1,1,1,1)}g_Dz(){return this.g_Cc}g_DA(g){this.g_Cc===g||(this.g_Cc=g,this.g_zM.g_Dt())}g_DB(){return this.g_BZ}g_DC(){return this.g_B_}g_DD(g,_){if((this.g_BZ!==g||this.g_B_!==_)&&(this.g_BZ=g,this.g_B_=_,this.g_zM.g_Dt(),1!==this.g_BZ||1!==this.g_B_))for(const g of this.g_By)g.g_C$().g_DE(!0)}g_DF(g){this.g_DD(g,this.g_DC())}g_DG(g){this.g_DD(this.g_DB(),g)}g_DH(g){this.g_vE=+g}g_BR(){return this.g_vE}g_DI(g){this.g_Cg=g_bA.g_eR(g)}g_DJ(){return this.g_Ch?g_bA.g_eR(this.g_BT.g_DJ()+this.g_Cg):0}g_DK(){return this.g_Cg}g_DL(){return 0<this.g_By.length}g_DM(){return this.g_By}g_DN(){return this.g_BX}g_DO(){return this.g_BY}g_DP(g){this.g_BY=!!g}g_DQ(){return this.g_Ca}g_DR(g){this.g_Ca=!!g}g_CY(g,_){if(this.g_Cd!==g||_){this.g_Cd=g;const _=this.g_zM.g_pu();if(_){const _=this.g_zM.g_pu().g_zI(g);this.g_vB=_.g_zG,this.g_vC=_.g_zH}this.g_zM.g_Dt()}}g_CZ(){return this.g_Cd}g_DS(){return this.g_vB}g_DT(){return this.g_vC}g_DU(g){return this.g_BZ===g.g_BZ&&this.g_B_===g.g_B_&&this.g_Cf===g.g_Cf&&this.g_Cc===g.g_Cc&&this.g_Cg===g.g_Cg}g_DV(g){if(0!==g.size){const _=g_bA.g_gc(this.g_By,g);0<_&&(this.g_CT(),this.g_CL())}}g_CL(){this.g_Cn=!1,this.g_Ct=!1}g_DW(){if(!this.g_Cn){if(g_bA.g_fS(this.g_By,a),this.g_Cb)for(let g=0,_=this.g_By.length;g<_;++g){const _=this.g_By[g].g_Bv();_.g_CW(g),this.g_Cr.g_BQ(_.g_DX())}else for(let g=0,_=this.g_By.length;g<_;++g)this.g_By[g].g_Bv().g_CW(g);this.g_Cn=!0}}g_DY(_,a,t){const n=_.g_Bv(),i=a.g_Bv();if(n.g_CN()!==this||i.g_CN()!==this)throw new Error("can't arrange Z order unless both objects on this layer");const e=n.g_DZ();let r=i.g_DZ();g_bA.g_f_(this.g_By,e),e<r&&r--,t&&r++,r===this.g_By.length?this.g_By.push(_):this.g_By.splice(r,0,_),this.g_CL()}g_D_(_,t){const a=[];let n=0,i=0,r=_.length,o=t.length;for(;n<r&&i<o;){const e=_[n],r=t[i];e.g_Bv().g_Bu()<r.g_Bv().g_Bu()?(a.push(e),++n):(a.push(r),++i)}for(;n<r;++n)a.push(_[n]);for(;i<o;++i)a.push(t[i]);return a}g_D$(g){const _=[],e=g.length;for(let a=0;a<e-1;a+=2){const t=g[a],n=g[a+1];_.push(this.g_D_(t,n))}return 1==e%2&&_.push(g[e-1]),_}g_Ea(g){for(;1<g.length;)g=this.g_D$(g);return g[0]}g_Eb(){return this.g_DW(),g_bA.g_fV(i),this.g_Cr.g_BP(this.g_Ci,i),i.length?1===i.length?i[0]:this.g_Ea(i):[]}g_Ec(){return!this.g_Ed()&&!this.g_DO()}g_Ee(){return this.g_Dr()&&0<this.g_xN()&&(this.g_DL()||!this.g_DO())}g_Ed(){return this.g_DQ()||!this.g_Dy()||0!==this.g_CZ()||this.g_Cp.g_Ef()}g_zk(){return this.g_Ce}g_Eg(g){if(0===g.length)return!0;if(2<=g.length)return!1;const _=g[0],e=_.g_ra();return!e.g_rd()&&!e.g_rb()&&!e.g_rc()&&this.g_Dy()}g_Dw(g){const _=this.g_Eh();return _/(_-g)}g_Eh(){return 100/this.g_Ei()}g_Ej(_,t=0,n=0){const r=this.g_zM.g_Ek(),e=(this.g_Ci.g_im()+t)*r,d=(this.g_Ci.g_in()+n)*r,g=this.g_Eh();_.g_xA(e,d,g),_.g_xB(e,d,g-100);const i=this.g_DJ(),o=u;0===i?vec3.set(o,0,1,0):vec3.set(o,Math.sin(i),Math.cos(i),0),_.g_xC(o),_.g_xE(r,r),_.g_xG()}g_El(_,a,t){const n=this.g_zM.g_Em(),i=this.g_Ed();let e=null,r=null;if(this.g_zM.g_En()&&_.g_zq()){const g=n.g_Eo(this);g&&(r=g.g_vv(),_.g_zp(r))}if(i){const g={g_om:this.g_zM.g_Ep()};"low"===n.g_Eq()&&(g.width=n.g_Er(),g.height=n.g_Es()),e=this.g_zM.g_Et(g),_.g_zj(e),this.g_DO()&&_.g_y_(0,0,0,0)}else _.g_zj(a);if(this.g_DO()||_.g_jC(this.g_BX),this.g_Ce=e||a,this.g_Ej(_),_.g_xp(this.g_BR()),this.g_Ei()>Number.EPSILON){this.g_DW();const g=this.g_Cb&&0===this.g_BR()&&!this.g_Co;g?this.g_Eu(_):this.g_Ev(_,this.g_By)}_.g_xp(0),_.g_vI(0),_.g_xA(0,0,100),_.g_xB(0,0,0),i&&this.g_Ew(_,e,a,t),r&&_.g_zr(r),this.g_Ce=null}g_Ev(_,a){const t=this.g_Ci,n=this.g_Ce;let i=null;for(let e=0,r=a.length;e<r;++e){const r=a[e];if(r===i)continue;i=r;const g=r.g_Bv();g.g_Dr()&&g.g_Ex(t)&&(g.g_Ef()?this.g_Ey(r,g,_,n):this.g_Ez(r,g,_))}}g_Eu(g){const _=this.g_Cr,a=this.g_Cv,t=this.g_Cu,n=this.g_Ci;let e;a.set(_.g_BM(n.g_ih()),_.g_BN(n.g_ii()),_.g_BM(n.g_ij()),_.g_BN(n.g_ik())),this.g_Ct&&a.g_n(t)?e=this.g_Cs:(e=this.g_Eb(),this.g_Ct=!0,t.g_r(a)),this.g_Ev(g,e),e!==this.g_Cs&&g_bA.g_fZ(this.g_Cs,e)}g_Ez(g,_,e){const a=_.g_EA();e.g_xI()!==a&&a.g_vF(),g.g_El(e)}g_Ey(g,_,e,a){this.g_EB(g,_,e,a,null)&&this.g_Ej(e)}g_EB(_,a,t,n,i){const r=a.g_ED().g_EC();if(1===r.length){const g=r[0],n=g.g_ra();if(!n.g_rj()&&a.g_Dy()&&!_.g_rd())return this.g_EE(_,a,g,n,t),!1}const e=g_bA.g_EF(t,this.g_zM,_,n,r,i);return t.g_xp(this.g_BR()),e}g_EE(g,_,a,t,n){n.g_vG(t),n.g_vH(_.g_DS(),_.g_DT()),t.g_rx()&&this.g_zM.g_Dt();let e=0,d=0;if(t.g_ri()){const _=g.g_EG();if(_){o.g_r(_.g_uV());const g=_.g_pv();g&&(e=1/g.g_oX(),d=1/g.g_oY())}else o.set(0,0,0,0)}const u=_.g_ED().g_EH(a.g_Dl());n.g_vI(_.g_BR()),n.g_yZ(null,r,o,o,_.g_EI(),e,d,this.g_EJ(),this.g_DJ(),this.g_zM.g_EK(),u),g.g_El(n)}g_Ew(g,_,a,t){const n=this.g_Cp.g_EC(),e=this.g_zM;if(this.g_Eg(n)){if(g.g_zj(a),1===n.length){const _=n[0],a=_.g_ra();g.g_vG(a),o.set(0,0,1,1);const t=this.g_Cp.g_EH(_.g_Dl());g.g_yZ(null,r,o,o,this.g_Ci,1/e.g_Er(),1/e.g_Es(),this.g_Ei(),this.g_DJ(),e.g_EK(),t),a.g_rx()&&e.g_Dt()}else g.g_xn();t&&0===this.g_Cd&&this.g_Dy()&&0===n.length?g.g_zl(_):(g.g_vH(this.g_vB,this.g_vC),g.g_ux(this.g_B$),g.g_zm(_)),g.g_zn(_),e.g_EL(_)}else g_bA.g_EF(g,e,this,a,n)}g_EJ(){return this.g_Cf}g_EM(g){this.g_Cf===g||(this.g_Cf=g,this.g_BT.g_EN(),this.g_zM.g_Dt())}g_Ek(){return this.g_Ei()*this.g_zM.g_Ek()}g_EO(){return this.g_Ei()*this.g_zM.g_EO()}g_Ei(){return(this.g_Cf*this.g_BT.g_EP()-1)*this.g_Cc+1}g_EQ(){var _=Math.round;this.g_Ch=!1;let[a,i]=this.g_ER(0,0);this.g_Ch=!0,this.g_zM.g_ES()&&(a=_(a),i=_(i));const r=1/this.g_Ei(),d=this.g_Cj;d.set(a,i,a+this.g_zM.g_ET()*r,i+this.g_zM.g_EU()*r);const g=this.g_DJ();0!==g&&(t.g_r(d),t.offset(-d.g_im(),-d.g_in()),n.g_i$(t,g),n.g_jb(t),t.offset(d.g_im(),d.g_in()),d.g_r(t)),this.g_Dv(this.g_vE,this.g_Ci)}g_ER(g,_,e=0){return this.g_EV(g,_,e,this.g_EO())}g_EW(g,_,e=0){return this.g_EV(g,_,e,this.g_Ek()*self.devicePixelRatio)}g_EV(_,a,t,r){const e=this.g_zM.g_EX(),d=this.g_zM.g_EY(),g=(this.g_BT.g_EZ()-e)*this.g_BZ+e,u=(this.g_BT.g_E_()-d)*this.g_B_+d,i=this.g_Ei(),s=this.g_zM.g_ET()/i,f=this.g_zM.g_EU()/i;let l=g-s/2+_/r,p=u-f/2+a/r;const h=this.g_DJ();if(0!==h){l-=g,p-=u;const _=Math.cos(h),e=Math.sin(h),a=l*_-p*e;p=p*_+l*e,l=a,l+=g,p+=u}if(0!==t){const g=this.g_Cj.g_im(),_=this.g_Cj.g_in(),e=this.g_Dw(t);l=(l-g)/e+g,p=(p-_)/e+_}return[l,p]}g_E$(_,a){const t=this.g_Cf,n=this.g_Cc,i=this.g_BZ,e=this.g_B_,r=this.g_Cg;this.g_Cf=1,this.g_Cc=1,this.g_BZ=1,this.g_B_=1,this.g_Cg=0;const g=this.g_ER(_,a);return this.g_Cf=t,this.g_Cc=n,this.g_BZ=i,this.g_B_=e,this.g_Cg=r,g}g_Fa(g,_,e=0){return this.g_Fb(g,_,e,this.g_EO())}g_Fc(g,_,e=0){return this.g_Fb(g,_,e,this.g_Ek()*self.devicePixelRatio)}g_Fb(_,t,r,a){if(0!==r){const g=this.g_Cj.g_im(),a=this.g_Cj.g_in(),e=this.g_Dw(r);_=(_-g)*e+g,t=(t-a)*e+a}const e=this.g_zM.g_EX(),d=this.g_zM.g_EY(),g=(this.g_BT.g_EZ()-e)*this.g_BZ+e,u=(this.g_BT.g_E_()-d)*this.g_B_+d,i=this.g_DJ();if(0!==i){_-=g,t-=u;const a=Math.cos(-i),n=Math.sin(-i),e=_*a-t*n;t=t*a+_*n,_=e,_+=g,t+=u}const s=this.g_Ei(),f=this.g_zM.g_ET()/s,l=this.g_zM.g_EU()/s,p=_-(g-f/2),n=t-(u-l/2);return[p*a,n*a]}g_Fd(){const g={s:this.g_EJ(),a:this.g_DK(),vl:this.g_Ci.g_ih(),vt:this.g_Ci.g_ii(),vr:this.g_Ci.g_ij(),vb:this.g_Ci.g_ik(),v:this.g_Dr(),bc:this.g_BX.toJSON(),t:this.g_DO(),px:this.g_DB(),py:this.g_DC(),c:this.g_vD.toJSON(),sr:this.g_Dz(),fx:this.g_Cp.g_Fe(),cg:this.g_Cm};return g}g_Ff(g){this.g_Cf=g.s,this.g_Cg=g.a,this.g_Ci.set(g.vl,g.vt,g.vr,g.vb),this.g_BW=!!g.v,this.g_BX.g_hG(g.bc),this.g_BY=!!g.t,this.g_BZ=g.px,this.g_B_=g.py,this.g_vD.g_hG(g.c),this.g_Cc=g.sr,g_bA.g_fZ(this.g_Cm,g.cg),g_bA.g_fZ(this.g_Cl,this.g_Ck);const _=new Set(this.g_Cm);let a=0;for(let t=0,n=this.g_Cl.length;t<n;++t)_.has(this.g_Cl[t][2])||(this.g_Cl[a]=this.g_Cl[t],++a);g_bA.g_fU(this.g_Cl,a),this.g_Cp.g_Fg(g.fx),this.g_CV(!1),this.g_CL()}}}{const _=g_bA.g_eM(g_bA.Rect),t=g_bA.g_eM(g_bA.Rect),n=g_bA.g_eM(g_bA.Rect),r=g_bA.g_eM(g_bA.Rect);g_bA.g_Fh=class extends g_bA.g_eK{constructor(g,_){super(),this.g_Fi=g,this.g_zM=g.g_Am(),this.g_pP=_[0],this.g_Fj=_[1],this.g_Fk=_[2],this.g_ou=_[1],this.g_ov=_[2],this.g_Fl=!!_[3],this.g_Fm=_[4],this.g_Fn=null,this.g_BV=_[5],this.g_Fo=0,this.g_Fp=0,this.g_Cf=1,this.g_Cg=0,this.g_Fq=new Set,this.g_Fr=new Set,this.g_Fs=[],this.g_Ft=[],this.g_Fu=[],this.g_Fv=new Map,this.g_Fw=new Map,this.g_Cp=g_bA.g_eM(g_bA.g_Cq,this,_[8]),this.g_Ce=null,this.g_Fx={},this.g_Fy=!0;for(const e of _[6]){const g=g_bA.g_BS.g_pM(this,this.g_Fu.length,e);this.g_Fu.push(g),this.g_Fv.set(g.g_q_().toLowerCase(),g),this.g_Fw.set(g.g_Dm(),g)}for(const e of _[7]){const g=this.g_zM.g_Cz(e[1]);if(!g)throw new Error("missing nonworld object class");g.g_CB()||g.g_CC(e),this.g_Ft.push(e),this.g_CA(g)}}g_eN(){for(const g of this.g_Fu)g.g_eN();g_bA.g_fV(this.g_Fu),this.g_Fn=null,this.g_Fi=null,this.g_zM=null}g_Am(){return this.g_zM}g_q_(){return this.g_pP}g_Dm(){return this.g_BV}g_Dn(){return this.g_Cp}g_Fz(){let g=this.g_Fu[0].g_Ei();for(let _=1,e=this.g_Fu.length;_<e;++_){const e=this.g_Fu[_];0===e.g_DB()&&0===e.g_DC()||(g=Math.min(g,e.g_Ei()))}return g}g_FA(g){if(!this.g_Fl){const _=this.g_zM.g_ET()*(1/this.g_Fz())/2;g>this.g_ou-_&&(g=this.g_ou-_),g<_&&(g=_)}this.g_Fo!==g&&(this.g_Fo=g,this.g_zM.g_Dt())}g_EZ(){return this.g_Fo}g_FB(g){if(!this.g_Fl){const _=this.g_zM.g_EU()*(1/this.g_Fz())/2;g>this.g_ov-_&&(g=this.g_ov-_),g<_&&(g=_)}this.g_Fp!==g&&(this.g_Fp=g,this.g_zM.g_Dt())}g_E_(){return this.g_Fp}g_EN(){this.g_FA(this.g_EZ()),this.g_FB(this.g_E_())}g_EP(){return this.g_Cf}g_FC(g){g=+g,this.g_Cf===g||(this.g_Cf=g,this.g_EN())}g_DI(g){this.g_Cg=g_bA.g_eR(g)}g_DJ(){return this.g_Cg}g_oX(){return this.g_ou}g_FD(g){!isFinite(g)||1>g||(this.g_ou=g)}g_oY(){return this.g_ov}g_FE(g){!isFinite(g)||1>g||(this.g_ov=g)}g_FF(){return this.g_Fn}g_FG(){return this.g_Fu}g_FH(){return this.g_Fu.length}g_CN(g){return"number"==typeof g?this.g_FI(g):this.g_FJ(g.toString())}g_FI(g){return g=g_bA.g_eQ(Math.floor(g),0,this.g_Fu.length-1),this.g_Fu[g]}g_FJ(g){return this.g_Fv.get(g.toLowerCase())||null}g_FK(g){return this.g_Fw.get(g)||null}g_FL(){for(const g of this.g_Fu)if(g.g_Ee())return g.g_Ec();return!1}g_CF(){return this.g_Fy}g_FM(){return[...this.g_Fq]}g_CA(g){if(g.g_Di())for(const _ of g.g_FO().g_FN())this.g_Fq.add(_);else this.g_Fq.add(g)}g_FP(){return[...this.g_Fr]}g_FQ(g,_){if(g===this||!_)return Promise.resolve();g&&(g_bA.g_gM(this.g_Fr,g.g_Fr),g.g_Fr.clear());const e=[];for(const a of this.g_Fq)this.g_Fr.has(a)||(e.push(a.g_FR(_)),this.g_Fr.add(a));return Promise.all(e)}async g_FS(g){if(g.g_De())throw new Error("cannot load textures for family");const _=this.g_zM.g_pu();!_||_.g_uT()||this.g_Fr.has(g)||(this.g_Fr.add(g),await g.g_FR(_),g.g_FT(),this.g_zM.g_Dt())}g_FU(g){if(g.g_De()||0<g.g_Dj())throw new Error("cannot unload textures");const _=this.g_zM.g_pu();_&&this.g_Fr.has(g)&&(this.g_Fr.delete(g),g.g_FV(_))}g_FW(g,_){if(g!==this&&_)for(const _ of this.g_Fr)_.g_CI()||g.g_Fq.has(_)||(_.g_FV(),this.g_Fr.delete(_))}g_FX(){this.g_Fr.clear()}async g_FY(g){const _=this.g_zM,e=this.g_Fi,a=_.g_Dc();if(this.g_Fm&&(this.g_Fn=a.g_FZ(this.g_Fm),this.g_Fn.g_F_()),e.g_F$(this),this.g_ou=this.g_Fj,this.g_ov=this.g_Fk,this.g_Fo=_.g_Cx()/2,this.g_Fp=_.g_Cy()/2,this.g_EN(),this.g_Ga(g),this.g_Gb(),this.g_Fy||this.g_Gc(),this.g_Gd(this.g_Fs),this.g_Ge(),e.g_Gf(),_.g_CK(),this.g_zM.g_Gg())this.g_zM.g_Gh(this.g_Fs);else for(const g of this.g_Fs)g.g_Dh();g_bA.g_fV(this.g_Fs),g&&this.g_zM.g_kX().dispatchEvent(new g_bA.Event("beforefirstlayoutstart")),this.g_zM.g_Gg()||(await _.g_Gi(g_bA.g_Gm.g_Gl.g_Gk.g_Gj,null)),g&&this.g_zM.g_kX().dispatchEvent(new g_bA.Event("afterfirstlayoutstart")),a.g_Gn(e),this.g_Fy=!1}g_Ga(g){for(const _ of this.g_zM.g_Dd())if(!_.g_De()&&_.g_Go())for(const g of _.g_Gp()){const _=g.g_Bv(),a=_.g_CN(),t=g_bA.g_eQ(a.g_Dl(),0,this.g_Fu.length-1),n=this.g_Fu[t];_.g_Gq(n),n.g_CP(g)}if(!g)for(const g of this.g_Fu)g.g_CV(!1)}g_Gb(){for(const g of this.g_Fu)g.g_CE(this.g_Fs),g.g_EQ(),g.g_CX()}g_Gc(){let g=!1;for(const[_,e]of Object.entries(this.g_Fx)){const a=this.g_zM.g_Gr(parseInt(_,10));if(a&&!a.g_De()&&a.g_CG()){for(const _ of e){let t=null;if(a.g_Go()&&(t=this.g_FK(_.w.l),!t))continue;const n=this.g_zM.g_CH(a,t,!1,0,0,!0);n.g_Fg(_),g=!0,this.g_Fs.push(n)}g_bA.g_fV(e)}}for(const g of this.g_Fu)g.g_CV(!0),g.g_CL();g&&(this.g_zM.g_CK(),this.g_zM.g_Gs())}g_Gd(g){for(const _ of g){if(!_.g_Di())continue;const a=_.g_Bv(),t=_.g_Gt();for(const n of _.g_C$().g_FO().g_Gu()){if(n===_.g_C$())continue;const e=n.g_Gp();if(e.length>t)_.g_Gv(e[t]);else{let e;e=a?this.g_zM.g_CH(n,a.g_CN(),!0,a.g_Gw(),a.g_Gx(),!0):this.g_zM.g_CH(n,null,!0,0,0,!0),this.g_zM.g_CK(),n.g_Gy(),_.g_Gv(e),g.push(e)}}}}g_Ge(){for(const g of this.g_Ft){const _=this.g_zM.g_Cz(g[1]);_.g_Di()||this.g_zM.g_CH(g,null,!0)}}g_Gz(){const g=[],_=this.g_Ft;let a=0;for(let t=0,n=_.length;t<n;++t){const n=_[t],e=this.g_zM.g_Cz(n[1]);e.g_CI()?(!e.g_Di()||!e.g_FO().g_GA())&&g.push(this.g_zM.g_CH(n,null,!0)):(_[a]=n,++a)}g_bA.g_fU(_,a),this.g_zM.g_CK(),this.g_Gd(g)}g_Db(a,g,t,n,e){_.set(g,t,n,e);for(const i of this.g_Fu)i.g_Db(a,_)}async g_GB(){const g=this.g_Fi;this.g_zM.g_Gg()||(await this.g_zM.g_Gi(g_bA.g_Gm.g_Gl.g_Gk.g_GC,null)),g.g_GD(!0),this.g_zM.g_Dc().g_GE(),this.g_Fy||this.g_GF();for(const g of this.g_Fu)g.g_C_();for(const g of this.g_zM.g_Dd())if(!(g.g_CI()||g.g_Go()||g.g_GH().g_GG()||g.g_De())){for(const _ of g.g_Gp())this.g_zM.g_Da(_);this.g_zM.g_CK()}g.g_GD(!1),g.g_GI()===this&&g.g_F$(null)}g_GJ(g){const _=g.g_C$().g_Dm().toString();this.g_Fx.hasOwnProperty(_)||(this.g_Fx[_]=[]);const e=this.g_Fx[_];e.push(g.g_Fe())}g_GF(){for(const g of this.g_Fu){g.g_DW();for(const _ of g.g_DM()){const g=_.g_C$();!g.g_CI()&&g.g_CG()&&this.g_GJ(_)}}}g_GK(){this.g_Fx={},this.g_Fy=!0}g_zk(){return this.g_Ce}g_Ed(){return"low"===this.g_zM.g_Em().g_Eq()||this.g_zM.g_GL()||this.g_Cp.g_Ef()}g_GM(g){if(0===g.length)return!0;if(2<=g.length)return!1;const _=g[0],e=_.g_ra();return!e.g_rd()}g_El(g){const _=this.g_zM.g_Em(),a=this.g_Ed();let t=null;if(a){g.g_zj(null),g.g_y_(0,0,0,0);const e={g_om:this.g_zM.g_Ep(),g_pb:this.g_zM.g_GL()||this.g_Cp.g_Ef()};"low"===_.g_Eq()&&(e.width=_.g_Er(),e.height=_.g_Es()),t=this.g_zM.g_Et(e),g.g_zj(t)}else g.g_zj(null);this.g_FL()||g.g_y_(0,0,0,0),this.g_Ce=t;let n=!0;for(const _ of this.g_Fu)_.g_EQ(),_.g_Ee()&&(_.g_El(g,t,n),n=!1);a&&this.g_GN(g,t),this.g_Ce=null}g_GN(_,a){const d=this.g_Cp.g_EC(),o=this.g_zM;if(this.g_GM(d)){if(_.g_zj(null),1===d.length){const g=d[0],e=g.g_ra();_.g_vG(e),n.set(0,0,1,1),r.set(0,0,o.g_ET(),o.g_EU());const a=this.g_Cp.g_EH(g.g_Dl());_.g_yZ(null,t,n,n,r,1/o.g_Er(),1/o.g_Es(),this.g_EP(),this.g_DJ(),o.g_EK(),a),e.g_rx()&&o.g_Dt()}else _.g_xn();0===d.length?_.g_zl(a):(_.g_xU(),_.g_xQ(),_.g_zm(a)),_.g_zn(a),o.g_EL(a)}else g_bA.g_EF(_,o,this,null,d)}g_Fd(){const g={sx:this.g_EZ(),sy:this.g_E_(),s:this.g_EP(),a:this.g_DJ(),w:this.g_oX(),h:this.g_oY(),fv:this.g_Fy,persist:this.g_Fx,fx:this.g_Cp.g_Fe(),layers:{}};for(const _ of this.g_Fu)g.layers[_.g_Dm().toString()]=_.g_Fd();return g}g_Ff(g){this.g_Fo=g.sx,this.g_Fp=g.sy,this.g_Cf=g.s,this.g_Cg=g.a,this.g_ou=g.w,this.g_ov=g.h,this.g_Fy=!!g.fv,this.g_Fx=g.persist,this.g_Cp.g_Fg(g.fx);for(const[_,e]of Object.entries(g.layers)){const g=parseInt(_,10),a=this.g_FK(g);a&&a.g_Ff(e)}}}}"use strict",g_bA.g_GO=class extends g_bA.g_eK{constructor(g){super(),this.g_zM=g,this.g_GP=[],this.g_GQ=new Map,this.g_GR=new Map,this.g_GS=null,this.g_GT=[],this.g_GU=null,this.g_GV=0,this.g_GW=null}g_eN(){this.g_zM=null,this.g_GS=null,this.g_GU=null,this.g_GW=null,g_bA.g_fV(this.g_GP),this.g_GQ.clear(),this.g_GR.clear(),g_bA.g_fV(this.g_GT)}g_pM(g){const _=g_bA.g_eM(g_bA.g_Fh,this,g);this.g_GP.push(_),this.g_GQ.set(_.g_q_().toLowerCase(),_),this.g_GR.set(_.g_Dm(),_)}g_Am(){return this.g_zM}g_GX(g){this.g_GU=g}g_GY(){if(this.g_GU)return this.g_GU;if(this.g_GP.length)return this.g_GP[0];throw new Error("no first layout")}g_GZ(g){return this.g_GQ.get(g.toLowerCase())||null}g_G_(g){return this.g_GR.get(g)||null}g_G$(g){return g=Math.floor(g),this.g_GP[g]}g_Ha(){return this.g_GP}g_F$(g){this.g_GS=g}g_GI(){return this.g_GS}g_Hb(g){if(this.g_GT.includes(g))throw new Error("layout already running");this.g_GT.push(g)}g_Hc(g){const _=this.g_GT.indexOf(g);if(-1===_)throw new Error("layout not running");this.g_GT.splice(_,1)}*g_Hd(){this.g_GS&&(yield this.g_GS),this.g_GT.length&&(yield*this.g_GT)}g_He(g){return this.g_GS===g||this.g_GT.includes(g)}g_GD(g){if(g)this.g_GV++;else{if(0>=this.g_GV)throw new Error("already unset");this.g_GV--}}g_Hf(){return 0<this.g_GV}g_Hg(g){this.g_GW=g}g_Gf(){this.g_GW=null}g_Hh(){return!!this.g_GW}g_Hi(){return this.g_GW}},"use strict";{function _(){return o===i.length&&i.push(new r),i[o++]}function a(g){g.g_Hj(),g.g_jC(),o--}async function t(g,_,a){const t=await g_bA.g_oh.g_pe.g_pE(_,a),n=URL.createObjectURL(t);console.log("[FX] "+g+" "+(a?"":" [to display]")+": ",n)}function u(_,a){var t=Math.max,u=Math.min;for(let g=0,e=a.length;g<e;++g){const e=a[g].g_ra();_.g_Hk+=e.g_rg(),_.g_Hl+=e.g_rh()}const d=_.g_Hm,s=d.g_CN(),e=s.g_DJ(),f=d.g_EI(),c=d.g_Hn();let[i,h]=s.g_Fc(f.g_ih(),f.g_ii(),c),[M,N]=s.g_Fc(f.g_ij(),f.g_ik(),c);if(0!==e){const[_,a]=s.g_Fc(f.g_ij(),f.g_ii(),c),[r,e]=s.g_Fc(f.g_ih(),f.g_ik(),c);let g=u(i,M,_,r);M=t(i,M,_,r),i=g,g=u(h,N,a,e),N=t(h,N,a,e),h=g}const g=_.g_Ho,n=_.g_Hp,o=_.g_Hq,p=_.clearRect,b=_.g_Hr;g.set(i,h,M,N),g.g_ix(_.g_Hs),n.g_r(g),n.g_P(_.g_Ht,_.g_Hu),n.g_iw(),g.g_ir(_.g_Hk,_.g_Hl),o.g_r(g),o.g_P(_.g_Ht,_.g_Hu),o.g_iw(),p.g_r(g),p.g_iz(),p.g_ir(_.g_Hk+1,_.g_Hl+1),g.g_eQ(0,0,_.g_Hv,_.g_Hs),p.g_eQ(0,0,_.g_Hv,_.g_Hs),b.g_r(g),b.g_P(_.g_Ht,_.g_Hu),b.g_iw()}function d(g){const _=g.g_sb;_.g_xn();const a=g.g_Hw(g.g_Hx);_.g_zj(a);const n=g.g_Hy;if(n&&n.g_Hz&&n.g_Hz(),!1,_.g_zb(g.clearRect),g.g_HA)_.g_ux(g.g_Hm.g_Dx()),_.g_vI(g.g_Hm.g_Hn()),g.g_HA.g_El(_),_.g_vI(0);else{const e=(g.g_HB||g.g_HC).g_zk();g.g_HB?_.g_ux(g.g_HB.g_Dx()):_.g_xQ(),_.g_zm(e),_.g_zn(e),g.g_HD.g_Em().g_EL(e)}g.g_Hq.g_iA(0,1,1,0),g.g_Hx=1,g.g_HE=0,M&&t("Pre-draw",_,a)}function e(_,a){const n=_.g_sb,r=_.g_HD,e=_.g_Hw(_.g_Hx);n.g_zj(e);const i=_.g_Hy;if(i&&i.g_Hz&&i.g_Hz(),!1,n.g_zb(_.clearRect),_.g_HA){let d=100,g=100;const o=_.g_HA.g_EG();if(o){_.g_HF.g_r(o.g_uV());const e=o.g_pv();e&&(d=e.g_oX(),g=e.g_oY())}else _.g_HF.set(0,0,0,0);const i=_.g_Hm.g_ED().g_EH(a.g_Dl());n.g_yZ(_.g_HG,_.g_Hq,_.g_HF,_.g_HF,_.g_HH,1/d,1/g,_.g_HI,_.g_HJ,r.g_EK(),i),n.g_vI(_.g_Hm.g_Hn()),_.g_HA.g_El(n),n.g_vI(0),_.g_Hq.g_iA(0,1,1,0),_.g_Ho.g_ix(_.g_Hs),M&&t("First bounce",n,e)}else{const i=(_.g_HB||_.g_HC).g_Dn().g_EH(a.g_Dl());n.g_yZ(_.g_HG,_.g_Hq,_.g_Hr,_.g_Hp,_.g_HH,1/_.g_Hv,1/_.g_Hs,_.g_HI,_.g_HJ,r.g_EK(),i);const g=(_.g_HB||_.g_HC).g_zk();M&&t("Layer target",n,g),n.g_zm(g),n.g_zn(g),r.g_Em().g_EL(g),M&&t("First bounce",n,e)}}function n(_,a,n,r){const e=_.g_sb,d=_.g_HD;let g,o;0===r&&_.g_HK&&(_.g_HA?_.g_Ho.g_ix(_.g_Hs):_.g_Ho.g_iw()),n?(_.g_HA?e.g_vH(_.g_Hm.g_DS(),_.g_Hm.g_DT()):_.g_HB&&e.g_vH(_.g_HB.g_DS(),_.g_HB.g_DT()),g=_.g_HG,e.g_zj(g),!_.g_HA&&1==r%2&&_.g_Ho.g_iw()):(g=_.g_Hw(_.g_Hx),e.g_zj(g),!1,e.g_zb(_.clearRect)),o=_.g_HA?_.g_Hm.g_ED().g_EH(a.g_Dl()):(_.g_HB||_.g_HC).g_Dn().g_EH(a.g_Dl()),e.g_yZ(_.g_HG,_.g_Hq,_.g_Hr,_.g_Hp,_.g_HH,1/_.g_Ht,1/_.g_Hu,_.g_HI,_.g_HJ,d.g_EK(),o);const u=_.g_Hw(_.g_HE);e.g_xS(u.g_pv()),d.g_Em().g_HL(e),_.g_HM=!0,s.g_i_(_.g_Ho),e.g_x$(s,_.g_Hr),_.g_HA||e.g_zn(u),M&&t("Bounce "+r,e,g)}function g(g){const _=g.g_sb;if(g.g_HC){_.g_xn(),_.g_zj(g.g_HG);const e=g.g_Hw(g.g_HE);return _.g_zl(e),void _.g_zn(e)}const a=g.g_HD.g_Em();"low"===a.g_Eq()?(_.g_xn(),a.g_HL(_,a.g_Er(),a.g_Es()),g.g_HM=!0):_.g_yN(),g.g_HA?_.g_vH(g.g_Hm.g_DS(),g.g_Hm.g_DT()):g.g_HB&&_.g_vH(g.g_HB.g_DS(),g.g_HB.g_DT()),_.g_zj(g.g_HG);const n=g.g_Hw(g.g_HE);_.g_xS(n.g_pv()),g.g_HA||g.g_HK||g.g_Ho.g_iw(),s.g_i_(g.g_Ho),_.g_x$(s,g.g_Hr),g.g_HA||_.g_zn(n),M&&t("Post-draw",_,g.g_HG)}class r{constructor(){this.g_sb=null,this.g_HD=null,this.g_Hv=0,this.g_Hs=0,this.g_Ht=0,this.g_Hu=0,this.g_HH=new g_bA.Rect,this.g_Hr=new g_bA.Rect,this.g_Hq=new g_bA.Rect,this.g_Hp=new g_bA.Rect,this.g_Ho=new g_bA.Rect,this.clearRect=new g_bA.Rect,this.g_HF=new g_bA.Rect,this.g_HN=[null,null],this.g_Hx=0,this.g_HE=1,this.g_Hk=0,this.g_Hl=0,this.g_HI=0,this.g_HJ=0,this.g_HC=null,this.g_HB=null,this.g_HA=null,this.g_Hm=null,this.g_HG=null,this.g_HK=!1,this.g_HO=!1,this.g_HM=!1,this.g_Hy=null}g_jC(){this.g_sb=null,this.g_HD=null,this.g_HC=null,this.g_HB=null,this.g_HA=null,this.g_Hm=null,this.g_HG=null,this.g_Hy=null}g_HP(g){const _=g.g_ra();return!!_.g_rd()||(this.g_HA?_.g_rb()&&0!==this.g_Hm.g_DJ()||0!==this.g_Hk||0!==this.g_Hl||!this.g_Hm.g_Dy()||this.g_HA.g_rd():this.g_HB?!this.g_HB.g_Dy():void 0)}g_HQ(g){const _=g.g_ra();return _.g_rb()||_.g_rc()||this.g_HC&&"low"===this.g_HD.g_Em().g_Eq()}g_Hw(g){if(0!==g&&1!==g)throw new Error("invalid effect target");const _=this.g_HN;if(!_[g]){const a=this.g_HD,t=a.g_Em(),n={g_om:a.g_Ep()};"low"===t.g_Eq()&&(n.width=t.g_Er(),n.height=t.g_Es()),_[g]=t.g_Et(n)}return _[g]}g_Hj(){const g=this.g_HN,_=this.g_HD.g_Em();g[0]&&(_.g_EL(g[0]),g[0]=null),g[1]&&(_.g_EL(g[1]),g[1]=null)}}const i=[];let o=0;const s=new g_bA.g_iH;let M=!1;g_bA.g_EF=function(t,s,f,i,c,l){const h=_();if(h.g_sb=t,h.g_HD=s,f instanceof g_bA.g_HR)h.g_HA=f,h.g_Hm=h.g_HA.g_Bv();else if(f instanceof g_bA.g_BS)h.g_HB=f;else if(f instanceof g_bA.g_Fh)h.g_HC=f;else throw new Error("invalid effects object");const o=s.g_Em();if(h.g_HG=i,h.g_Hv=o.g_Er(),h.g_Hs=o.g_Es(),h.g_Ht=h.g_Hv,h.g_Hu=h.g_Hs,h.g_Hx=0,h.g_HE=1,h.g_Hk=0,h.g_Hl=0,h.g_Ho.set(0,0,h.g_Hv,h.g_Hs),h.clearRect.set(0,0,h.g_Hv,h.g_Hs),h.g_HM=!1,h.g_Hy=l,h.g_HA){const g=h.g_Hm;h.g_HI=g.g_CN().g_Ek(),h.g_HJ=g.g_CN().g_DJ(),h.g_HH.g_r(g.g_EI())}else if(h.g_HB){const g=h.g_HB;h.g_HI=g.g_Ek(),h.g_HJ=g.g_DJ(),h.g_HH.g_r(g.g_Du())}else{const g=h.g_HC;h.g_HI=g.g_EP(),h.g_HJ=g.g_DJ(),h.g_HH.set(0,0,h.g_Hv,h.g_Hs)}h.g_HA?u(h,c):(h.g_Hr.set(0,0,h.g_Hv/h.g_Ht,h.g_Hs/h.g_Hu),h.g_Hq.g_r(h.g_Hr),h.g_Hp.g_r(h.g_Hr)),t.g_xU(),t.g_xQ(),t.g_xp(0),t.g_vI(0),h.g_HK=h.g_HP(c[0]),h.g_HK&&d(h),t.g_xQ();const p=c.length-1;h.g_HO=h.g_HQ(c[p]);for(let g=0,_=c.length;g<_;++g){const _=c[g],a=_.g_ra();if(t.g_vG(a),a.g_rx()&&s.g_Dt(),0===g&&!h.g_HK)e(h,_);else{t.g_xW();const e=g===p&&!h.g_HO;n(h,_,e,g)}0===h.g_Hx?(h.g_Hx=1,h.g_HE=0):(h.g_Hx=0,h.g_HE=1)}h.g_HO&&g(h);const m=h.g_HM;return a(h),M=!1,m}}{const g=0,_=g_bA.g_ff(1);g_bA.g_HS=class extends g_bA.g_eK{constructor(_,e){super(),this.g_zM=e.g_Am(),this.g_HT=e,this.g_pP=_[g],this.g_HU=_[1],this.g_HV=_[2],this.g_HW=_[3],this.g_HX=_[4],this.g_HY=[];for(const g of _[5]){const _=g_bA.g_HZ.g_pM(this,g);this.g_HY.push(_)}this.g_H_=g_bA.g_eM(g_bA.g_lE),this.g_H_.Set(0),this.g_H$=1,this.g_Ia=!1,this.g_Ib=!1,this.g_Ic=!1,this.g_Id=!0,this.g_Ie=!1,this.g_If=!1,this.g_Ig=-1,this.g_Ih=null,this.g_Ii=null,this.g_Ij=null,this.g_Ik=null}static g_pM(g,_){const e=g_bA.g_eM(g_bA.g_HS,g,_);return e.g_Il([g_bA.g_Gm.g_HS.g_Gk.g_Im,g_bA.g_Gm.g_HS.g_Gk.g_In,g_bA.g_Gm.g_HS.g_Gk.g_Io]),e.g_Ip([g_bA.g_Gm.g_HS.g_Gk.g_Iq,g_bA.g_Gm.g_HS.g_Gk.g_Ir,g_bA.g_Gm.g_HS.g_Gk.g_Is]),e}static g_It(){const _=[];return _[g]="",_[1]=0,_[2]=0,_[3]="",_[4]="",_[5]=[],_}static g_Iu(g){const _=this.g_It();return this.g_pM(_,g)}static get g_Iv(){return 1}static get g_Iw(){return _}g_eN(){if(!this.g_Ix()){this.g_HT.g_Iy(this),this.g_HT.g_Iz(this);for(const g of this.g_HY)g.g_eN();g_bA.g_fV(this.g_HY),this.g_HY=null,this.g_Ih&&(g_bA.g_fV(this.g_Ih),this.g_Ih=null),this.g_Ii&&(g_bA.g_fV(this.g_Ii),this.g_Ii=null),this.g_zM=null,this.g_HT=null,this.g_Ie=!0}}g_IA(){for(const g of this.g_HY)g.g_IA()}g_Am(){return this.g_zM}g_IB(g){this.g_pP=g}g_q_(){return this.g_pP}g_IC(g){this.g_HU=g}g_ID(){return this.g_HU}g_IE(g){this.g_HV=g}g_IF(){return this.g_HV}g_IG(g){this.g_HW=g}g_IH(){return this.g_HW}g_II(g){this.g_HX=g}g_IJ(){return this.g_HX}g_IK(){const g=g_bA.g_HZ.g_Iu(this);return this.g_HY.push(g),g}g_IL(){return this.g_HY}g_IM(g){this.g_Ii||(this.g_Ii=[]),this.g_Ii.push(g)}g_IN(g){this.g_Ih||(this.g_Ih=[]),this.g_Ih.push(g)}g_IO(g){if(this.g_Ii){const _=this.g_Ii.indexOf(g);-1!==_&&this.g_Ii.splice(_,1)}}g_IP(g){if(this.g_Ih){const _=this.g_Ih.indexOf(g);-1!==_&&this.g_Ih.splice(_,1)}}g_IQ(){if(this.g_Ii)for(const g of this.g_Ii)g(this);if(this.g_Ij){g_bA.g_Gm.g_HS.g_Gk.g_IR(this);for(const g of this.g_Ij)this.g_IS(g);g_bA.g_Gm.g_HS.g_Gk.g_IR(null)}}g_IT(){if(this.g_Ig=this.g_zM.g_IU(),this.g_Ih)for(const g of this.g_Ih)g(this);if(this.g_Ik){g_bA.g_Gm.g_HS.g_Gk.g_IV(this);for(const g of this.g_Ik)this.g_IS(g);g_bA.g_Gm.g_HS.g_Gk.g_IV(null)}}g_IW(g){this.g_Ia=g}g_IX(){return this.g_Ig===this.g_zM.g_IU()||this.g_Ia}g_IY(g){this.g_Ib=g}g_IZ(){return this.g_Ib}g_I_(g){this.g_Id=g;const _=this.g_I$();(0>=_||_>=this.g_HU)&&(this.g_Id=!0)}g_Ja(){return this.g_Id}g_Ix(){return this.g_Ie}g_Jb(g){this.g_If=g}g_Jc(){return this.g_If}g_Jd(){return this.g_Ic}g_Je(g){for(const _ of this.g_HY)for(const e of _.g_Jf())if(e.g_Jg()===g)return e}g_IS(g){const _=this.g_HT.g_Jh();this.g_Am().g_IS(g,_)}g_Il(g){this.g_Ij=g}g_Ip(g){this.g_Ik=g}g_I$(){return this.g_H_.g_bR()}g_Ji(g){if(this.g_H_.Set(g),0>this.g_H_.g_bR()&&this.g_H_.Set(0),this.g_H_.g_bR()>=this.g_HU&&this.g_H_.Set(this.g_HU),!this.g_IX()&&!this.g_IZ()&&this.g_Ic)this.g_I_(!1);else if(!this.g_IX()&&!this.g_IZ()&&!this.g_Ic){this.g_Ic=!0;for(const g of this.g_HY)g.g_Jj()}else this.g_IX()?this.g_Jk():this.g_IZ()&&(this.g_HT.g_Iy(this),this.g_I_(!1));let _=!1;for(const e of this.g_HY){e.g_Jl();const g=e.g_Jm(this.g_H_.g_bR());!_&&g&&(_=!0)}_&&this.g_Am().g_Dt()}g_II(g){this.g_HX=g;for(const _ of this.g_HY)_.g_II(g)}g_Jn(g){this.g_Jo=g;for(const _ of this.g_HY)_.g_Jn(g_Jp)}g_Jq(g){return this.g_H$=g}g_Jr(){return 0<this.g_H$}g_Js(){if(!this.g_Ix()){if(this.g_Jr()){if(this.g_H_.g_bR()>=this.g_HU)return;}else if(0>=this.g_H_.g_bR())return;this.g_Jt(!0)}}g_Jt(g=!1){this.g_Ix()||this.g_IZ()||this.g_IX()||!this.g_Ja()&&!g||this.g_HT.g_Ju(this)}g_Jk(g=!1){this.g_Ix()||(this.g_I_(g),this.g_HT.g_Iz(this))}g_lq(){if(this.g_Ix())return;if(!this.g_IX()&&this.g_IZ())return this.g_HT.g_Iy(this);this.g_Jk(!0),this.g_H_.Set(0);let g=!1;for(const _ of this.g_HY){const e=_.g_Jm(this.g_H_.g_bR());!g&&e&&(g=!0)}g&&this.g_Am().g_Dt()}g_Jj(){if(this.g_IW(!0),this.g_IY(!1),this.g_IQ(),this.g_Ja()){this.g_Ig=-1,this.g_Ic=!0,this.g_Jr()?this.g_H_.Set(0):this.g_H_.Set(this.g_HU);for(const g of this.g_HY)g.g_Jj()}else for(const g of this.g_HY)g.g_Jl()}g_Jv(g,_){this.g_H_.g_jL(g*_*this.g_H$);let e;if(e=this.g_Jr()?this.g_H_.g_bR()>=this.g_HU:0>=this.g_H_.g_bR(),e){this.g_Jr()?this.g_H_.Set(this.g_HU):this.g_H_.Set(0);for(const g of this.g_HY)g.g_Jw();return this.g_Jk(!0),this.g_IT(),!0}else{let g=!1;for(const _ of this.g_HY){const e=_.g_Jm(this.g_H_.g_bR());!g&&e&&(g=!0)}return g}}}}{const g=0;g_bA.g_HZ=class extends g_bA.g_eK{constructor(_,e){super(),this.g_Jx=_,this.g_Jy=e[g][2],this.g_HW=e[1],this.g_HX=e[2],this.g_Jz=!!e[3],this.g_JA=[];for(const g of e[4]){const _=g_bA.g_JB.g_pM(this,g);this.g_JC(_)&&this.g_JA.push(_)}this.g_JD=[];for(const g of e[5]){const _=g_bA.g_JE.g_pM(this,g);_.g_JF()&&this.g_JD.push(_)}this.g_JG=null,this.g_JH=null,this.g_JI=!1}static g_pM(g,_){return g_bA.g_eM(g_bA.g_HZ,g,_)}static g_Iu(_){const e=[];return e[g]=[],e[g][2]=-1,e[1]="default",e[2]="default",e[3]=1,e[4]=[],e[5]=[],this.g_pM(_,e)}g_eN(){this.g_Jx=null,this.g_JG=null,this.g_JH=null;for(const g of this.g_JA)g.g_eN();g_bA.g_fV(this.g_JA),this.g_JA=null;for(const g of this.g_JD)g.g_eN();g_bA.g_fV(this.g_JD),this.g_JD=null}g_IA(){for(const g of this.g_JD)g.g_IA();this.g_JG=null,this.g_JH=null}g_JJ(){return this.g_Jx}g_Am(){return this.g_Jx.g_Am()}g_JK(){this.g_JG||this.g_JL()}g_JM(){return!!this.g_JG&&!this.g_JG.g_JN()}g_JO(g){this.g_Jy=g}g_JL(){return this.g_JG&&this.g_JM()?this.g_JG:(this.g_JG=this.g_Am().g_JP(this.g_Jy),this.g_JG)}g_Bv(){return this.g_JH&&this.g_JM()?this.g_JH:(this.g_JH=this.g_JL().g_Bv(),this.g_JH)}g_IG(g){this.g_HW=g}g_IH(){return this.g_HW}g_II(g){this.g_HX=g;for(const _ of this.g_JD)_.g_II(g)}g_IJ(){return this.g_HX}g_Jn(){for(const g of this.g_JA)g.g_Jn(g_Jp);for(const g of this.g_JD)g.g_Jn(g_Jp)}g_JQ(g){this.g_Jz=!!g}g_JF(){return this.g_Jz}g_JR(){const g=g_bA.g_JB.g_Iu(this);return this.g_JA.push(g),g}g_JS(){return this.g_JA}g_JT(){this.g_JA.sort((g,_)=>g.g_I$()-_.g_I$())}g_JU(g,_){const e=g_bA.g_JE.g_Iu(this,g,_);return this.g_JD.push(e),e}g_Jf(){return this.g_JD}g_Jj(){if(this.g_JK(),!!this.g_JM()){this.g_JI=!1;for(const g of this.g_JD)g.g_Jj();this.g_JJ().g_Jr()?this.g_Jm(0):this.g_Jm(this.g_JJ().g_ID())}}g_Jl(){if(this.g_JK(),!!this.g_JM())for(const g of this.g_JD)g.g_Jl()}g_Jw(){if((this.g_JK(),!!this.g_JM())&&!this.g_JI){this.g_JI=!0;const g=this.g_Jx.g_I$(),_=this.g_Jx.g_ID();g>=_?this.g_Jm(_):0>=g&&this.g_Jm(0)}}g_JV(g){for(const _ of this.g_JA){if(!g(_))continue;const e=this.g_JA.indexOf(_);-1!==e&&(_.g_eN(),this.g_JA.splice(e,1))}this.g_JT()}g_JW(g){for(const _ of this.g_JD)_.g_JW(g)}g_Jm(g){if(this.g_JK(),!this.g_JM())return!1;let _=!1,a=!1;for(const t of this.g_JD){const n=t.g_Jm(g);_||0==(n&g_bA.g_HS.g_Iv)||(_=!0),a||0==(n&g_bA.g_HS.g_Iw)||(a=!0)}return _&&this.g_Bv().g_CO(),a}g_JX(){for(const g of this.g_JD)g.g_JX()}g_JY(){if(this.g_JK(),!!this.g_JM())for(const g of this.g_JD)g.g_JY()}g_JZ(){if(this.g_JK(),!this.g_JM())return;let g=!1;for(const _ of this.g_JD){const e=_.g_JZ();!g&&e&&(g=!0)}if(g){const g=this.g_JR();g.g_Ji(this.g_JJ().g_I$()),g.g_Jn("noease"),g.g_JQ(!0)}}g_JC(g){return!!this.g_JF()&&!!g.g_JF()}}}{const g=0;g_bA.g_JB=class extends g_bA.g_eK{constructor(_,e){super(),this.g_J_=_,this.g_J$=e[g],this.g_Jo=e[1],this.g_Ka=!!e[2]}static g_pM(g,_){return g_bA.g_eM(g_bA.g_JB,g,_)}static g_Iu(_){const e=[];return e[g]=0,e[1]="linear",e[2]=1,this.g_pM(_,e)}g_eN(){this.g_J_=null}g_Am(){return this.g_J_.g_Am()}g_Ji(g){this.g_J$=g,this.g_J_.g_JT()}g_I$(){return this.g_J$}g_Jn(g){this.g_Jo=g}g_jT(){return this.g_Jo}g_JQ(g){this.g_Ka=!!g}g_JF(){return this.g_Ka}}}{const g=0;g_bA.g_JE=class extends g_bA.g_eK{constructor(_,e){super(),this.g_J_=_,this.g_Kb=g_bA.g_JE.g_Kc(this,e[g]),this.g_Kd=e[1],this.g_kA=e[2],this.g_Ke=e[3],this.g_Kf=e[4],this.g_HW=e[5],this.g_HX=e[6],this.g_Jz=!!e[7],this.g_Kg=[];for(const g of e[8]){const _=g_bA.g_Kh.g_pM(this,g);this.g_Ki(_)&&this.g_Kg.push(_)}this.g_Kj()}static g_pM(g,_){return g_bA.g_eM(g_bA.g_JE,g,_)}static g_Iu(_,a,t){const n=[];if(n[g]=[],n[g][0]=a,t)for(let _=0;_<t.length;_++)n[g][_+1]=t[_];return n[1]="",n[2]="",n[3]=NaN,n[4]=NaN,n[5]="default",n[6]="default",n[7]=1,n[8]=[],this.g_pM(_,n)}static g_Kc(g,_){const e=_[0];return"behavior"===e?g_bA.g_eM(g_bA.g_JE.g_Kk,g,_):"effect"===e?g_bA.g_eM(g_bA.g_JE.g_Kl,g,_):"instance-variable"===e?g_bA.g_eM(g_bA.g_JE.g_Km,g,_):"plugin"===e?g_bA.g_eM(g_bA.g_JE.g_Kn,g,_):"world-instance"===e?g_bA.g_eM(g_bA.g_JE.g_Ko,g,_):"value"===e?g_bA.g_eM(g_bA.g_JE.g_Kp,g,_):void 0}g_eN(){this.g_J_=null,this.g_Kb.g_eN(),this.g_Kb=null;for(const g of this.g_Kg)g.g_eN();g_bA.g_fV(this.g_Kg),this.g_Kg=null,this.g_Kq.clear(),this.g_Kq=null}g_IA(){this.g_Kb.g_IA()}g_Kr(){return this.g_J_}g_JJ(){return this.g_J_.g_JJ()}g_Am(){return this.g_J_.g_Am()}g_Ks(){return this.g_Kb}g_Kt(){return this.g_Kb.g_Ku()}g_Kv(g){this.g_Kd=g}g_Jg(){return this.g_Kd}g_Kw(g){this.g_kA=g}g_Kx(){return this.g_kA}g_Ky(){return this.g_Kz().g_rm()}g_KA(g){this.g_Ke=g}g_KB(){return this.g_Ke}g_KC(g){this.g_Kf=g}g_KD(){return this.g_Kf}g_JQ(g){this.g_Jz=!!g}g_JF(){return this.g_Jz}g_IG(g){this.g_HW=g}g_IH(){return this.g_HW}g_II(g){this.g_HX=g}g_IJ(){return this.g_HX}g_Jn(g){for(const _ of this.g_Kg)_.g_Jn(g)}g_KE(){const g=g_bA.g_Kh.g_Iu(this);return this.g_Kg.push(g),this.g_Kj(),g}g_KF(){return this.g_Kg}g_Kj(){this.g_Kq||(this.g_Kq=new Map),this.g_KG();for(const g of this.g_J_.g_JS()){const _=g.g_I$(),e=this.g_KH(_);e&&this.g_Kq.set(_,e)}}g_KG(){this.g_Kg.sort((g,_)=>g.g_I$()-_.g_I$())}g_Ki(g){if(!this.g_JF())return!1;if(!g.g_JF())return!1;const _=g.g_KI();if(!_)return!1;const e=this.g_Kr();return!!e.g_JC(_)}g_KH(g){for(const _ of this.g_Kg)if(_.g_I$()===g)return _}g_KJ(g){return this.g_Kq.get(g)}g_Kz(){return this.g_Kg[0]}g_KK(){return this.g_Kg[this.g_Kg.length-1]}g_KL(g){for(const _ of this.g_Kg)if(_.g_I$()>g)return _}g_KM(g){for(const _ of this.g_Kg)if(_.g_I$()>=g)return _}g_KN(g){for(let _=this.g_Kg.length-1;0<=_;_--){const e=this.g_Kg[_];if(e.g_I$()<=g)return e}}g_Jj(){this.g_Kb.g_Jj()}g_Jl(){this.g_Kb.g_Jl()}g_KO(g){let _=this.g_KJ(g);return _||(_=this.g_KN(g)),_}g_KP(g){const _=this.g_KJ(g);return _?this.g_KL(g):this.g_KM(g)}g_Jm(g){let _=this.g_KJ(g),e;return _?e=this.g_KL(g):(_=this.g_KN(g),e=this.g_KM(g)),this.g_Kb.g_Jm(g,_,e)}g_JW(g){for(const _ of this.g_Kg){if(!g(_))continue;const e=this.g_Kg.indexOf(_);-1!==e&&(_.g_eN(),this.g_Kg.splice(e,1))}this.g_KG()}g_JX(){this.g_Kb.g_JX()}g_JY(){const g=this.g_Kb.g_JY();if(g){const g=this.g_Kz(),_=this.g_Kb.g_KQ();g.g_KR(_)}}g_JZ(){const g=this.g_Kb.g_JZ();return g&&this.g_KS(),this.g_Kb.g_KT(),g}g_KS(){const g=this.g_JJ().g_I$(),_=this.g_KO(g),e=this.g_KE(),a=this.g_Ks();e.g_KU(a.g_KV()),e.g_KR(a.g_KQ()),e.g_KW(_.g_rm()),e.g_Ji(g),e.g_Jn(_.g_jT()),e.g_JQ(!0)}}}{const g=0;g_bA.g_Kh=class extends g_bA.g_eK{constructor(_,e){super(),this.g_KX=_,this.g_KY=e[g][0],this.g_KZ=e[g][1],this.g_kA=e[g][2],this.g_J$=e[1],this.g_Jo=e[2],this.g_Ka=!!e[3],this.g_K_=null;for(let g of this.g_KX.g_Kr().g_JS())if(g.g_I$()===this.g_J$){this.g_K_=g;break}}static g_pM(g,_){return g_bA.g_eM(g_bA.g_Kh,g,_)}static g_Iu(_){const e=[];return e[g]=[],e[g][0]=0,e[g][1]=0,e[g][2]="",e[1]=0,e[2]="linear",e[3]=1,this.g_pM(_,e)}g_eN(){this.g_KX=null,this.g_K_=null}g_Am(){return this.g_KX.g_Am()}g_Ji(g){this.g_J$=g,this.g_KX.g_Kj()}g_I$(){return this.g_J$}g_KU(g){"color"===this.g_kA&&g_bA.g_dc(g)?(this.g_KY[0]=g_bA.g_fm(g),this.g_KY[1]=g_bA.g_fn(g),this.g_KY[2]=g_bA.g_fo(g)):this.g_KY=g}g_Ku(){return this.g_KY}g_KR(g){"color"===this.g_kA&&g_bA.g_dc(g)?(this.g_KZ[0]=g_bA.g_fm(g),this.g_KZ[1]=g_bA.g_fn(g),this.g_KZ[2]=g_bA.g_fo(g)):this.g_KZ=g}g_K$(){return this.g_KZ}g_La(){const g=this.g_KX.g_IJ();return"relative"===g?this.g_Ku():"absolute"===g?this.g_K$():void 0}g_Jn(g){this.g_Jo=g}g_jT(){return this.g_Jo}g_JQ(g){this.g_Ka=!!g}g_JF(){return this.g_Ka}g_KW(g){this.g_kA=g}g_rm(){return this.g_kA}g_KI(){return this.g_K_}}}"use strict",g_bA.g_Lb=class extends g_bA.g_eK{constructor(g){super(),this.g_zM=g,this.g_Lc=null,this.g_Ld=[],this.g_Le=new Map,this.g_Lf=[],this.g_Lg=[],this.g_Lh=!1,this.g_Li=!1,this.g_Lj=!1,this.g_Lk=()=>this.g_Ll(),this.g_Lm=()=>this.g_Ln(),this.g_Lo=()=>this.g_Lp(),this.g_Lq=()=>this.g_Lr()}g_eN(){const g=this.g_zM.g_kX();g.removeEventListener("tick",this.g_Lk),this.g_Lk=null,g.removeEventListener("tick2",this.g_Lm),this.g_Lm=null,g.removeEventListener("beforelayoutchange",this.g_Lo),this.g_Lo=null,g.removeEventListener("layoutchange",this.g_Lq),this.g_Lq=null,this.g_zM=null;for(const g of this.g_Ld)g.g_Jk(),g.g_eN();g_bA.g_fV(this.g_Ld),this.g_Ld=null,g_bA.g_fV(this.g_Lf),this.g_Lf=null,g_bA.g_fV(this.g_Lg),this.g_Lg=null,this.g_Le.clear(),this.g_Le=null}g_Ls(){const g=this.g_zM.g_kX();g.addEventListener("beforelayoutchange",this.g_Lo),g.addEventListener("layoutchange",this.g_Lq)}g_pM(g){this.g_jL(g_bA.g_HS.g_pM(g,this))}g_jL(g){this.g_Ld.push(g),this.g_Le.set(g.g_q_(),g)}g_Am(){return this.g_zM}g_Lt(g){this.g_Lc=g}g_Jh(){return this.g_Lc}g_Lu(){return this.g_Ld}g_Lv(g){const _=g_bA.g_eQ(Math.floor(g),0,this.g_Ld.length-1);return this.g_Ld[_]?this.g_Ld[_]:void 0}g_Lw(g){return this.g_Le.has(g)?this.g_Le.get(g):void 0}g_Ju(g){g.g_IW(!1),g.g_IY(!0),g.g_Jb(!1),this.g_Lf.push(g),this.g_Lx()}g_Iy(g){const _=this.g_Lf.indexOf(g);g.g_IW(!1),g.g_IY(!1),-1===_||(this.g_Lf.splice(_,1),this.g_Ly())}g_Iz(g){g.g_IW(!1),g.g_IY(!1),g.g_Jb(!0)}g_Ll(){if(this.g_Li)return;let g=!1;for(this.g_Lj=!0;this.g_Lf.length;){const g=this.g_Lf.pop();g.g_Jj(),this.g_Lg.push(g)}const _=this.g_zM.g_Lz(),t=this.g_zM.g_LA();for(const a of this.g_Lg){if(a.g_Jc())continue;const n=a.g_Jv(_,t);!g&&n&&(g=!0)}this.g_Lj=!1,g&&this.g_Am().g_Dt()}g_Ln(){for(const g of this.g_Lg){if(!g.g_Jc())continue;const _=this.g_Lg.indexOf(g);-1===_||this.g_Lg.splice(_,1)}this.g_Ly()}g_Lx(){if(!this.g_Lh){const g=this.g_zM.g_kX();g.addEventListener("tick",this.g_Lk),g.addEventListener("tick2",this.g_Lm),this.g_Lh=!0}}g_Ly(){if(!this.g_Lg.length&&!this.g_Lf.length&&!this.g_Lj){const g=this.g_zM.g_kX();g.removeEventListener("tick",this.g_Lk),g.removeEventListener("tick2",this.g_Lm),this.g_Lh=!1}}g_Lp(){for(this.g_Li=!0;this.g_Lf.length;)this.g_Iy(this.g_Lf.pop());for(;this.g_Lg.length;)this.g_Iz(this.g_Lg.pop());this.g_Ly();for(const g of this.g_Ld)g.g_IA()}g_Lr(){this.g_Li=!1}},"use strict",g_bA.g_JE.g_LB=class{constructor(){}static g_KV(_){const a=_.g_Kr(),t=a.g_JJ().g_I$(),n=_.g_KO(t),i=_.g_KP(t),e=g_bA.g_JE.g_LB,r=e.g_LC(_);return r(t,n,i,_)}static g_Ku(g,_,e){let a=g.g_IJ();return"combo"===g.g_Kx()&&(a="absolute"),"relative"===a?_+e:"absolute"===a?e:void 0}static g_LC(g){const _=g.g_Ky();return"numeric"===_?g_bA.g_JE.g_LD.g_Jm:"angle"===_?g_bA.g_JE.g_LE.g_Jm:"boolean"===_?g_bA.g_JE.g_LF.g_Jm:"color"===_?g_bA.g_JE.g_LG.g_Jm:"text"===_?g_bA.g_JE.g_LH.g_Jm:void 0}static g_LI(g){const _=g.g_Ky();return"numeric"===_?g_bA.g_JE.g_LD.g_LJ:"angle"===_?g_bA.g_JE.g_LE.g_LJ:"boolean"===_?g_bA.g_JE.g_LF.g_LJ:"color"===_?g_bA.g_JE.g_LG.g_LJ:"text"===_?g_bA.g_JE.g_LH.g_LJ:void 0}},"use strict";{class g{constructor(g,_){this.g_KX=g,this.g_J_=g.g_Kr(),this.g_BV=_[1],this.g_BU=_[2],this.g_LK=null}g_eN(){this.g_LK&&(this.g_LK.g_eN(),this.g_LK=null),this.g_KX=null,this.g_J_=null}g_IA(){this.g_LK&&this.g_LK.g_IA()}g_LL(){if(this.g_LK)return this.g_LK;const _=this.g_LM(),a=this.g_BU,t=this.g_KX;let n=this.g_KX.g_Ky();return"numeric"===n&&"combo"===t.g_Kx()&&(n="combo"),"combo"===n||"boolean"===n||"text"===n?this.g_LK=g_bA.g_eM(g.g_LN,t,_,a):"numeric"===n?this.g_LK=g_bA.g_eM(g.g_LO,t,_,a):"color"===n?this.g_LK=g_bA.g_eM(g.g_LP,t,_,a):void 0,this.g_LK}g_Jj(){this.g_LL().g_Jj()}g_Jl(){this.g_LL().g_Jl()}g_Jm(g,_,a){const t=g_bA.g_JE.g_LB.g_LC(this.g_KX),n=t(g,_,a,this.g_KX);return this.g_LL().g_LQ(n)}g_JX(){this.g_LL().g_LR()}g_KT(){this.g_LL().g_KT()}g_KQ(){return this.g_LL().g_KQ()}g_JY(){return this.g_LL().g_JY()}g_JZ(){return this.g_LL().g_JZ()}g_KV(){return g_bA.g_JE.g_LB.g_KV(this.g_KX)}g_LM(){const g=this.g_J_.g_JL(),_=g.g_LS(this.g_BV),e=g.g_LT()[_];return e.g_LU()}}g_bA.g_JE.g_Kk=g}{class g{constructor(g,_){this.g_KX=g,this.g_J_=g.g_Kr(),this.g_pP=_[1],this.g_BU=_[2],this.g_LK=null}g_eN(){this.g_LK&&(this.g_LK.g_eN(),this.g_LK=null),this.g_KX=null,this.g_J_=null}g_IA(){this.g_LK&&this.g_LK.g_IA()}g_LL(){if(this.g_LK)return this.g_LK;const _=this.g_LV(),a=this.g_BU,t=this.g_KX;let n=this.g_KX.g_Ky();return"numeric"===n&&"combo"===t.g_Kx()&&(n="combo"),"combo"===n||"boolean"===n||"text"===n?this.g_LK=g_bA.g_eM(g.g_LN,t,_,a):"numeric"===n?this.g_LK=g_bA.g_eM(g.g_LO,t,_,a):"color"===n?this.g_LK=g_bA.g_eM(g.g_LP,t,_,a):void 0,this.g_LK}g_Jj(){this.g_LL().g_Jj()}g_Jl(){this.g_LL().g_Jl()}g_Jm(g,_,a){if(this.g_LV()){const t=g_bA.g_JE.g_LB.g_LC(this.g_KX),n=t(g,_,a,this.g_KX);return this.g_LL().g_LQ(n)}}g_KV(){return g_bA.g_JE.g_LB.g_KV(this.g_KX)}g_LV(){if(this.g_LW)return this.g_LW;const g=this.g_J_.g_Bv(),_=g.g_ED(),a=_.g_Dn(),t=a.g_LX(this.g_pP),n=t.g_Dl();return this.g_LW=_.g_LY(n)?_.g_EH(n):null,this.g_LW}}g_bA.g_JE.g_Kl=g}{class g{constructor(g,_){this.g_KX=g,this.g_J_=g.g_Kr(),this.g_BU=_[1],this.g_LK=null}g_eN(){this.g_LK&&(this.g_LK.g_eN(),this.g_LK=null),this.g_KX=null,this.g_J_=null}g_IA(){this.g_LK&&this.g_LK.g_IA()}g_LL(){if(this.g_LK)return this.g_LK;const _=this.g_J_.g_JL(),e=this.g_BU,a=this.g_KX;switch(a.g_Kx()){case"boolean":this.g_LK=g_bA.g_eM(g.g_LN,a,_,e);break;case"string":this.g_LK=g_bA.g_eM(g.g_LN,a,_,e);break;case"number":this.g_LK=g_bA.g_eM(g.g_LO,a,_,e);}return this.g_LK}g_Jj(){this.g_LL().g_Jj()}g_Jl(){this.g_LL().g_Jl()}g_Jm(g,_,a){const t=g_bA.g_JE.g_LB.g_LC(this.g_KX),n=t(g,_,a,this.g_KX);return this.g_LL().g_LQ(n)}g_JX(){this.g_LL().g_LR()}g_KT(){this.g_LL().g_KT()}g_KQ(){return this.g_LL().g_KQ()}g_JY(){return this.g_LL().g_JY()}g_JZ(){return this.g_LL().g_JZ()}g_KV(){return g_bA.g_JE.g_LB.g_KV(this.g_KX)}}g_bA.g_JE.g_Km=g}{class g{constructor(g,_){this.g_KX=g,this.g_J_=this.g_KX.g_Kr(),this.g_BU=_[1],this.g_LK=null}g_eN(){this.g_LK&&(this.g_LK.g_eN(),this.g_LK=null),this.g_KX=null,this.g_J_=null}g_IA(){this.g_LK&&this.g_LK.g_IA()}g_LL(){if(this.g_LK)return this.g_LK;const _=this.g_LZ(),a=this.g_BU,t=this.g_KX;let n=t.g_Ky();return"numeric"===n&&"combo"===t.g_Kx()&&(n="combo"),"combo"===n||"boolean"===n||"text"===n?this.g_LK=g_bA.g_eM(g.g_LN,t,_,a):"numeric"===n?this.g_LK=g_bA.g_eM(g.g_LO,t,_,a):"color"===n?this.g_LK=g_bA.g_eM(g.g_LP,t,_,a):void 0,this.g_LK}g_Jj(){this.g_LL().g_Jj()}g_Jl(){this.g_LL().g_Jl()}g_Jm(g,_,a){const t=g_bA.g_JE.g_LB.g_LC(this.g_KX),n=t(g,_,a,this.g_KX);return this.g_LL().g_LQ(n)}g_JX(){this.g_LL().g_LR()}g_KT(){this.g_LL().g_KT()}g_KQ(){return this.g_LL().g_KQ()}g_JY(){return this.g_LL().g_JY()}g_JZ(){return this.g_LL().g_JZ()}g_KV(){return g_bA.g_JE.g_LB.g_KV(this.g_KX)}g_LZ(){return this.g_J_.g_JL().g_LU()}}g_bA.g_JE.g_Kn=g}{class g{constructor(g){this.g_KX=g,this.g_J_=g.g_Kr(),this.g_LK=null}g_eN(){this.g_LK&&(this.g_LK.g_eN(),this.g_LK=null),this.g_KX=null,this.g_J_=null}g_IA(){this.g_LK&&this.g_LK.g_IA()}g_LL(){if(this.g_LK)return this.g_LK;const _=this.g_KX.g_Jg();return this.g_LK="offsetColor"===_?g_bA.g_eM(g.g_LP,this.g_KX):g_bA.g_eM(g.g_LO,this.g_KX),this.g_LK}g_Jj(){this.g_LL().g_Jj()}g_Jl(){this.g_LL().g_Jl()}g_Jm(g,_,a){const t=g_bA.g_JE.g_LB,n=t.g_LC(this.g_KX),e=n(g,_,a,this.g_KX);return this.g_LL().g_LQ(e)}g_JX(){this.g_LL().g_LR()}g_KT(){this.g_LL().g_KT()}g_KQ(){return this.g_LL().g_KQ()}g_JY(){return this.g_LL().g_JY()}g_JZ(){return this.g_LL().g_JZ()}g_KV(){return g_bA.g_JE.g_LB.g_KV(this.g_KX)}}g_bA.g_JE.g_Ko=g}"use strict",g_bA.g_JE.g_L_=class{constructor(g){this.g_KX=g,this.g_JH=g.g_Kr().g_Bv(),this.g_Kd=g.g_Jg(),this.g_L$=!1,this.g_Ma=null}g_eN(){this.g_JH=null,this.g_KX=null,this.g_Ma=null}g_IA(){this.g_JH=null,this.g_Ma=null}g_Bv(){return this.g_JH?this.g_JH:(this.g_JH=this.g_KX.g_Kr().g_Bv(),this.g_JH)}g_Mb(g){this.g_L$=!!g}g_Mc(){return this.g_L$}g_Jj(){}g_Jl(){}g_LR(){}g_KT(){this.g_Ma=null}g_KQ(){}g_JY(){}g_JZ(){}g_LQ(){}g_Md(){const g=this.g_Me(()=>this.g_KX.g_Kz(),()=>this.g_KX.g_KK());return g.g_K$()}g_Mf(){const g=this.g_KX.g_JJ(),_=g.g_I$(),e=this.g_Me(()=>this.g_KX.g_KN(_),()=>this.g_KX.g_KM(_));return e.g_K$()}g_Me(g,_){const e=this.g_KX.g_JJ();return e.g_Jr()?g():_()}g_Mg(g,_){const e=this.g_KX.g_IJ();return"relative"===e?g():_()}g_Mh(g,_){return this.g_Mc()?(this.g_Mb(!1),g()):_()}g_Mi(){}},"use strict";{const _=0;class g extends g_bA.g_JE.g_L_{constructor(g,_,e){super(g),this.g_Mj=_,this.g_Mk=e,this.g_Ml=0,this.g_Mm=0,this.g_Mn=0}g_eN(){this.g_Mj=null,super.g_eN()}g_Jj(){this.g_Mb(!0);const g=this.g_Mi(this.g_Md());this.g_Ml=g.g_hf(),this.g_Mm=g.g_hg(),this.g_Mn=g.g_hh()}g_Jl(){if(!this.g_Mo(this.g_Md(),this.g_Mf())){this.g_Mb(!0);const g=this.g_Mi(this.g_Mf());this.g_Ml=g.g_hf(),this.g_Mm=g.g_hg(),this.g_Mn=g.g_hh()}}g_LR(){this.g_Ma=this.g_KQ()}g_KQ(){return this.g_Mj.g_Mp(this.g_Mk)}g_JY(){const g=this.g_Md();return!this.g_Mo(g,this.g_Mq())}g_JZ(){return!g_bA.g_df(this.g_Ma)&&!this.g_Mo(this.g_Ma,this.g_Mq())}g_LQ(a){const t=this.g_Mj,n=this.g_Mk,e=a[_],r=a[1],d=a[2],g=this.g_Ml,o=this.g_Mm,i=this.g_Mn;this.g_Mh(()=>t.g_Mr(n,-g,-o,-i),()=>t.g_Mr(n,-g+e,-o+r,-i+d)),this.g_Ml=e,this.g_Mm=r,this.g_Mn=d}g_Mo(g,_){return g.g_hl(_)}g_Md(){const g=super.g_Md();return this.g_Ms(g)}g_Mf(){const g=super.g_Mf();return this.g_Ms(g)}g_Mi(g){const _=this.g_Ms(g);return g_bA.g_gT.g_hK(_,this.g_Mq())}g_Mq(){const g=this.g_Mj,_=this.g_Mk,e=g.g_Mp(_);return this.g_Ms(e)}g_Ms(g){return g_bA.g_dx(g,g_bA.g_gT)?g:new g_bA.g_gT(g[_],g[1],g[2])}}g_bA.g_JE.g_Kk.g_LP=g}{class g extends g_bA.g_JE.g_L_{constructor(g,_,e){super(g),this.g_Mj=_,this.g_Mk=e}g_eN(){this.g_Mj=null,super.g_eN()}g_Jj(){}g_Jl(){}g_LR(){this.g_Ma=this.g_KQ()}g_KQ(){return this.g_Mj.g_Mp(this.g_Mk)}g_JY(){const g=this.g_Md();return g!==this.g_KQ()}g_JZ(){return!g_bA.g_df(this.g_Ma)&&this.g_Ma!==this.g_KQ()}g_LQ(g){const _=g_bA.g_JE.g_LB.g_LI(this.g_KX);_(this.g_Mk,this.g_Mj,g,"behavior")&&this.g_Mj.g_Mt(this.g_Mk,g)}}g_bA.g_JE.g_Kk.g_LN=g}{class g extends g_bA.g_JE.g_L_{constructor(g,_,e){super(g),this.g_Mj=_,this.g_Mk=e,this.g_rV=0}g_eN(){this.g_Mj=null,super.g_eN()}g_Jj(){this.g_rV=this.g_Mg(()=>this.g_Me(()=>0,()=>g_bA.g_JE.g_LB.g_KV(this.g_KX)),()=>(this.g_Mb(!0),this.g_Mi(this.g_Md())))}g_Jl(){this.g_Md()===this.g_Mf()||this.g_Mg(()=>{},()=>{this.g_Mb(!0),this.g_rV=this.g_Mi(this.g_Mf())})}g_LR(){this.g_Ma=this.g_KQ()}g_KQ(){return this.g_Mj.g_Mp(this.g_Mk)}g_JY(){const g=this.g_Md();return g!==this.g_KQ()}g_JZ(){return!g_bA.g_df(this.g_Ma)&&this.g_Ma!==this.g_KQ()}g_LQ(g){const _=this.g_rV,e=this.g_Mj,a=this.g_Mk;this.g_Mg(()=>e.g_Mu(a,g-_),()=>{this.g_Mh(()=>e.g_Mu(a,_),()=>e.g_Mu(a,g-_))}),this.g_rV=g}g_Mi(g){return g-this.g_KQ()}}g_bA.g_JE.g_Kk.g_LO=g}{const _=0;class g extends g_bA.g_JE.g_L_{constructor(g,_,e){super(g),this.g_Mv=_,this.g_Mw=e,this.g_Ml=0,this.g_Mm=0,this.g_Mn=0}g_eN(){this.g_Mv=null,super.g_eN()}g_Jj(){this.g_Mb(!0);const g=this.g_Mi(this.g_Md());this.g_Ml=g.g_hf(),this.g_Mm=g.g_hg(),this.g_Mn=g.g_hh()}g_Jl(){if(!this.g_Mo(this.g_Md(),this.g_Mf())){this.g_Mb(!0);const g=this.g_Mi(this.g_Mf());this.g_Ml=g.g_hf(),this.g_Mm=g.g_hg(),this.g_Mn=g.g_hh()}}g_LR(){this.g_Ma=this.g_Mq()}g_KQ(){return this.g_Mv[this.g_Mw].toArray().slice(0,3)}g_JY(){const g=this.g_Md();return!this.g_Mo(g,this.g_Mq())}g_JZ(){return!g_bA.g_df(this.g_Ma)&&!this.g_Mo(this.g_Ma,this.g_Mq())}g_LQ(a){const t=a[_],n=a[1],e=a[2],i=this.g_Ml,r=this.g_Mm,g=this.g_Mn;return this.g_Mh(()=>this.g_Mx(-i,-r,-g),()=>this.g_Mx(-i+t,-r+n,-g+e)),this.g_Ml=t,this.g_Mm=n,this.g_Mn=e,g_bA.g_HS.g_Iw}g_Mx(g,_,e){this.g_Mv[this.g_Mw].g_g_(g,_,e)}g_Mq(){return this.g_Mv[this.g_Mw].clone()}g_Mo(g,_){return g.g_hl(_)}g_Md(){const g=super.g_Md();return this.g_Ms(g)}g_Mf(){const g=super.g_Mf();return this.g_Ms(g)}g_Mi(g){const _=this.g_Ms(g);return g_bA.g_gT.g_hK(_,this.g_Mq())}g_Ms(g){return g_bA.g_dx(g,g_bA.g_gT)?g:new g_bA.g_gT(g[_],g[1],g[2])}}g_bA.g_JE.g_Kl.g_LP=g}{class g extends g_bA.g_JE.g_L_{constructor(g,_,e){super(g),this.g_Mv=_,this.g_Mw=e}g_eN(){this.g_Mv=null,super.g_eN()}g_Jj(){}g_Jl(){}g_LR(){this.g_Ma=this.g_KQ()}g_KQ(){return this.g_Mv[this.g_Mw]}g_JY(){const g=this.g_Md();return g!==this.g_KQ()}g_JZ(){return!g_bA.g_df(this.g_Ma)&&this.g_Ma!==this.g_KQ()}g_LQ(g){const _=g_bA.g_JE.g_LB.g_LI(this.g_KX);_(this.g_Mw,this.g_Mv,g,"effect")&&(this.g_Mv[this.g_Mw]=g)}}g_bA.g_JE.g_Kl.g_LN=g}{class g extends g_bA.g_JE.g_L_{constructor(g,_,e){super(g),this.g_Mv=_,this.g_Mw=e,this.g_rV=0}g_eN(){this.g_Mv=null,super.g_eN()}g_Jj(){this.g_rV=this.g_Mg(()=>this.g_Me(()=>0,()=>g_bA.g_JE.g_LB.g_KV(this.g_KX)),()=>(this.g_Mb(!0),this.g_Mi(this.g_Md())))}g_Jl(){this.g_Md()===this.g_Mf()||this.g_Mg(()=>{},()=>{this.g_Mb(!0),this.g_rV=this.g_Mi(this.g_Mf())})}g_LR(){this.g_Ma=this.g_KQ()}g_KQ(){return this.g_Mv[this.g_Mw]}g_JY(){const g=this.g_Md();return g!==this.g_KQ()}g_JZ(){return!g_bA.g_df(this.g_Ma)&&this.g_Ma!==this.g_KQ()}g_LQ(g){const _=this.g_rV;return this.g_Mg(()=>{this.g_Mv[this.g_Mw]+=g-_},()=>{this.g_Mh(()=>{this.g_Mv[this.g_Mw]+=_},()=>{this.g_Mv[this.g_Mw]+=g-_})}),this.g_rV=g,g_bA.g_HS.g_Iw}g_Mi(g){return g-this.g_KQ()}}g_bA.g_JE.g_Kl.g_LO=g}{class g extends g_bA.g_JE.g_L_{constructor(g,_,e){super(g),this.g_JG=_,this.g_My=e}g_eN(){this.g_JG=null,super.g_eN()}g_Jj(){}g_Jl(){}g_LR(){this.g_Ma=this.g_KQ()}g_KQ(){return this.g_JG.g_Mz(this.g_My)}g_JY(){const g=this.g_Md();return g!==this.g_KQ()}g_JZ(){return!g_bA.g_df(this.g_Ma)&&this.g_Ma!==this.g_KQ()}g_LQ(g){const _=g_bA.g_JE.g_LB.g_LI(this.g_KX);_(this.g_My,this.g_JG,g,"instance-variable")&&this.g_JG.g_MA(this.g_My,g)}}g_bA.g_JE.g_Km.g_LN=g}{class g extends g_bA.g_JE.g_L_{constructor(g,_,e){super(g),this.g_JG=_,this.g_My=e,this.g_rV=0}g_eN(){this.g_JG=null,super.g_eN()}g_Jj(){this.g_rV=this.g_Mg(()=>this.g_Me(()=>0,()=>g_bA.g_JE.g_LB.g_KV(this.g_KX)),()=>(this.g_Mb(!0),this.g_Mi(this.g_Md())))}g_Jl(){this.g_Md()===this.g_Mf()||this.g_Mg(()=>{},()=>{this.g_Mb(!0),this.g_rV=this.g_Mi(this.g_Mf())})}g_LR(){this.g_Ma=this.g_KQ()}g_KQ(){return this.g_JG.g_Mz(this.g_My)}g_JY(){const g=this.g_Md();return g!==this.g_KQ()}g_JZ(){return!g_bA.g_df(this.g_Ma)&&this.g_Ma!==this.g_KQ()}g_LQ(g){const _=this.g_rV,e=this.g_JG,a=this.g_My;this.g_Mg(()=>e.g_MB(a,g-_),()=>{this.g_Mh(()=>e.g_MB(a,_),()=>e.g_MB(a,g-_))}),this.g_rV=g}g_Mi(g){return g-this.g_KQ()}}g_bA.g_JE.g_Km.g_LO=g}{const _=0;class g extends g_bA.g_JE.g_L_{constructor(g,_,e){super(g),this.g_MC=_,this.g_Mk=e,this.g_Ml=0,this.g_Mm=0,this.g_Mn=0}g_eN(){this.g_MC=null,super.g_eN()}g_Jj(){this.g_Mb(!0);const g=this.g_Mi(this.g_Md());this.g_Ml=g.g_hf(),this.g_Mm=g.g_hg(),this.g_Mn=g.g_hh()}g_Jl(){if(!this.g_Mo(this.g_Md(),this.g_Mf())){this.g_Mb(!0);const g=this.g_Mi(this.g_Mf());this.g_Ml=g.g_hf(),this.g_Mm=g.g_hg(),this.g_Mn=g.g_hh()}}g_LR(){this.g_Ma=this.g_KQ()}g_KQ(){return this.g_MC.g_Mp(this.g_Mk)}g_JY(){const g=this.g_Md();return!this.g_Mo(g,this.g_Mq())}g_JZ(){return!g_bA.g_df(this.g_Ma)&&!this.g_Mo(this.g_Ma,this.g_Mq())}g_LQ(a){const t=this.g_MC,n=this.g_Mk,e=a[_],r=a[1],d=a[2],g=this.g_Ml,o=this.g_Mm,i=this.g_Mn;return this.g_Mh(()=>t.g_Mr(n,-g,-o,-i),()=>t.g_Mr(n,-g+e,-o+r,-i+d)),this.g_Ml=e,this.g_Mm=r,this.g_Mn=d,g_bA.g_HS.g_Iw}g_Mo(g,_){return g.g_hl(_)}g_Md(){const g=super.g_Md();return this.g_Ms(g)}g_Mf(){const g=super.g_Mf();return this.g_Ms(g)}g_Mi(g){const _=this.g_Ms(g);return g_bA.g_gT.g_hK(_,this.g_Mq())}g_Mq(){const g=this.g_MC,_=this.g_Mk,e=g.g_Mp(_);return this.g_Ms(e)}g_Ms(g){return g_bA.g_dx(g,g_bA.g_gT)?g:new g_bA.g_gT(g[_],g[1],g[2])}}g_bA.g_JE.g_Kn.g_LP=g}{class g extends g_bA.g_JE.g_L_{constructor(g,_,e){super(g),this.g_MC=_,this.g_Mk=e}g_eN(){this.g_MC=null,super.g_eN()}g_Jj(){}g_Jl(){}g_LR(){this.g_Ma=this.g_KQ()}g_KQ(){return this.g_MC.g_Mp(this.g_Mk)}g_JY(){const g=this.g_Md();return g!==this.g_KQ()}g_JZ(){return!g_bA.g_df(this.g_Ma)&&this.g_Ma!==this.g_KQ()}g_LQ(g){const _=g_bA.g_JE.g_LB.g_LI(this.g_KX);if(_(this.g_Mk,this.g_MC,g,"plugin"))return this.g_MC.g_Mt(this.g_Mk,g),g_bA.g_HS.g_Iw}}g_bA.g_JE.g_Kn.g_LN=g}{class g extends g_bA.g_JE.g_L_{constructor(g,_,e){super(g),this.g_MC=_,this.g_Mk=e,this.g_rV=0}g_eN(){this.g_MC=null,super.g_eN()}g_Jj(){this.g_rV=this.g_Mg(()=>this.g_Me(()=>0,()=>g_bA.g_JE.g_LB.g_KV(this.g_KX)),()=>(this.g_Mb(!0),this.g_Mi(this.g_Md())))}g_Jl(){this.g_Md()===this.g_Mf()||this.g_Mg(()=>{},()=>{this.g_Mb(!0),this.g_rV=this.g_Mi(this.g_Mf())})}g_LR(){this.g_Ma=this.g_KQ()}g_KQ(){return this.g_MC.g_Mp(this.g_Mk)}g_JY(){const g=this.g_Md();return g!==this.g_KQ()}g_JZ(){return!g_bA.g_df(this.g_Ma)&&this.g_Ma!==this.g_KQ()}g_LQ(g){const _=this.g_rV,e=this.g_MC,a=this.g_Mk;return this.g_Mg(()=>e.g_Mu(a,g-_),()=>{this.g_Mh(()=>e.g_Mu(a,_),()=>e.g_Mu(a,g-_))}),this.g_rV=g,g_bA.g_HS.g_Iw}g_Mi(g){return g-this.g_KQ()}}g_bA.g_JE.g_Kn.g_LO=g}{const _=0;class g extends g_bA.g_JE.g_L_{constructor(g){super(g),this.g_Ml=0,this.g_Mm=0,this.g_Mn=0}g_eN(){super.g_eN()}g_Jj(){this.g_Mb(!0);const g=this.g_Mi(this.g_Md());this.g_Ml=g.g_hf(),this.g_Mm=g.g_hg(),this.g_Mn=g.g_hh()}g_Jl(){if(!this.g_Mo(this.g_Md(),this.g_Mf())){this.g_Mb(!0);const g=this.g_Mi(this.g_Mf());this.g_Ml=g.g_hf(),this.g_Mm=g.g_hg(),this.g_Mn=g.g_hh()}}g_LR(){this.g_Ma=this.g_Mq()}g_KQ(){return this.g_Mq().toArray().slice(0,3)}g_JY(){const g=this.g_Md();return!this.g_Mo(g,this.g_Mq())}g_JZ(){return!g_bA.g_df(this.g_Ma)&&!this.g_Mo(this.g_Ma,this.g_Mq())}g_LQ(a){const t=a[_],n=a[1],e=a[2],i=this.g_Ml,r=this.g_Mm,g=this.g_Mn;return this.g_Mh(()=>this.g_Mx(-i,-r,-g),()=>this.g_Mx(-i+t,-r+n,-g+e)),this.g_Ml=t,this.g_Mm=n,this.g_Mn=e,g_bA.g_HS.g_Iw}g_Mq(){return this.g_Bv().g_MD().clone()}g_Mx(g,_,e){this.g_Bv().g_ME(g,_,e)}g_Mo(g,_){return g.g_hl(_)}g_Md(){const g=super.g_Md();return this.g_Ms(g)}g_Mf(){const g=super.g_Mf();return this.g_Ms(g)}g_Mi(g){const _=this.g_Ms(g);return g_bA.g_gT.g_hK(_,this.g_Mq())}g_Ms(g){return g_bA.g_dx(g,g_bA.g_gT)?g:new g_bA.g_gT(g[_],g[1],g[2])}}g_bA.g_JE.g_Ko.g_LP=g}{const g=new Map,_=(_,e,a)=>g.set(_,{g_MF:e,g_MG:a});_("offsetX",(g,_)=>g.g_MH(_),g=>g.g_Gw()),_("offsetY",(g,_)=>g.g_MI(_),g=>g.g_Gx()),_("offsetWidth",(g,_)=>g.g_MJ(_),g=>g.g_oX()),_("offsetHeight",(g,_)=>g.g_MK(_),g=>g.g_oY()),_("offsetAngle",(g,_)=>g.g_ML(_),g=>g.g_DJ()),_("offsetOpacity",(g,_)=>g.g_MM(_),g=>g.g_xN()),_("offsetOriginX",(g,_)=>g.g_MN(_),g=>g.g_MO()),_("offsetOriginY",(g,_)=>g.g_MP(_),g=>g.g_MQ());class e extends g_bA.g_JE.g_L_{constructor(_){super(_);const e=_.g_Jg();this.g_MR=g.get(e).g_MG,this.g_MS=g.get(e).g_MF,this.g_rV=0}g_eN(){super.g_eN(),this.g_MR=null,this.g_MS=null}g_Jj(){this.g_rV=this.g_Mg(()=>this.g_Me(()=>0,()=>g_bA.g_JE.g_LB.g_KV(this.g_KX)),()=>(this.g_Mb(!0),this.g_Mi(this.g_Md())))}g_Jl(){this.g_Md()===this.g_Mf()||this.g_Mg(()=>{},()=>{this.g_Mb(!0),this.g_rV=this.g_Mi(this.g_Mf())})}g_LR(){this.g_Ma=this.g_KQ()}g_KQ(){return this.g_MR(this.g_Bv())}g_JY(){const g=this.g_Md();return g!==this.g_KQ()}g_JZ(){return!g_bA.g_df(this.g_Ma)&&this.g_Ma!==this.g_KQ()}g_LQ(g){const _=this.g_rV,e=this.g_Bv();return this.g_Mg(()=>this.g_MS(e,g-_),()=>{this.g_Mh(()=>this.g_MS(e,_),()=>this.g_MS(e,g-_))}),this.g_rV=g,g_bA.g_HS.g_Iv}g_Mi(g){return g-this.g_KQ()}}g_bA.g_JE.g_Ko.g_LO=e}"use strict",g_bA.g_JE.g_Kp=class{constructor(g){this.g_KX=g,this.g_J_=g.g_Kr(),this.g_KY=0}g_eN(){this.g_KX=null,this.g_J_=null}g_Jj(){this.g_KY=this.g_KX.g_Kz().g_La()}g_Jl(){}g_Ku(){return this.g_KY}g_Jm(g,_,e){const a=g_bA.g_JE.g_LD.g_Jm;this.g_KY=a(g,_,e,this.g_KX)}g_JX(){}g_KT(){}g_KQ(){return this.g_KY}g_JY(){return!1}g_JZ(){return!1}g_KV(){return g_bA.g_JE.g_LB.g_KV(this.g_KX)}},"use strict",g_bA.g_JE.g_LD=class{constructor(){}static g_LJ(g,_,a,t){let n;return"behavior"===t?n=_.g_Mp(g):"effect"===t?n=_[g]:"instance-variable"===t?n=_.g_Mz(g):"plugin"===t?n=_.g_Mp(g):void 0,n!==a}static g_Jm(_,t,n,r){var d=Math.floor;if(!n)return r.g_KK().g_La();let o=r.g_IH();if("default"===o&&(o="continuous"),"combo"===r.g_Kx()&&(o="discrete"),"discrete"===o)return t.g_La();if("continuous"===o||"step"===o){if("step"===o){const g=1/r.g_JJ().g_IF();_=d(_*g)/g}const g=t.g_I$(),a=n.g_I$(),i=t.g_La(),u=n.g_La();if(i===u)return i;const s=g_bA.normalize(_,g,a),l=t.g_jT(),f=g_jP.g_jT(l)((a-g)*s,i,u-i,a-g);return"integer"===r.g_Kx()?d(f):f}}},"use strict",g_bA.g_JE.g_LE=class{constructor(){}static g_LJ(g,_,a,t){let n;return"behavior"===t?n=_.g_Mp(g):"effect"===t?n=_[g]:"instance-variable"===t?n=_.g_Mz(g):"plugin"===t?n=_.g_Mp(g):void 0,n!==a}static g_Jm(_,t,n,g){if(!n)return g.g_KK().g_La();let r=g.g_IH();if("default"===r&&(r="continuous"),"combo"===g.g_Kx()&&(r="discrete"),"discrete"===r)return t.g_La();if("continuous"===r||"step"===r){if("step"===r){const e=1/g.g_JJ().g_IF();_=Math.floor(_*e)/e}const e=t.g_I$(),a=n.g_I$(),d=t.g_La(),o=n.g_La();if(d===o)return d;let i=g_bA.normalize(_,e,a);const u=g_jP.g_jT(t.g_jT());return g_bA.g_e_(d,o,u(i,0,1,1))}}},"use strict",g_bA.g_JE.g_LF=class{constructor(){}static g_LJ(g,_,a,t){let n;return"behavior"===t?n=_.g_Mp(g):"effect"===t?n=_[g]:"instance-variable"===t?n=_.g_Mz(g):"plugin"===t?n=_.g_Mp(g):void 0,!!n!=!!a}static g_Jm(g,_,e,a){return e?_.g_La()?1:0:a.g_KK().g_La()?1:0}},"use strict";{const _=[0,0,0],a=[0,0,0];g_bA.g_JE.g_LG=class{constructor(){}static g_LJ(t,n,i,e){var r=Math.floor;let g;return"behavior"===e?g=n.g_Mp(t):"effect"===e?g=n[t]:"instance-variable"===e?g=n.g_Mz(t):"plugin"===e?g=n.g_Mp(t):void 0,Array.isArray(i)?(_[0]=i[0],_[1]=i[1],_[2]=i[2]):(g_MT.g_hy(i),_[0]=r(255*g_MT.g_hf()),_[1]=r(255*g_MT.g_hg()),_[2]=r(255*g_MT.g_hh())),Array.isArray(g)?(a[0]=g[0],a[1]=g[1],a[2]=g[2]):(g_MT.g_hy(g),a[0]=r(255*g_MT.g_hf()),a[1]=r(255*g_MT.g_hg()),a[2]=r(255*g_MT.g_hh())),_[0]!==a[0]||_[1]!==a[1]||_[2]!==a[2]}static g_Jm(M,a,c,e){if(!c){const g=e.g_KK().g_La();return _[0]=g[0],_[1]=g[1],_[2]=g[2],_}let d=e.g_IH();if("default"===d&&(d="continuous"),"discrete"===d){const g=a.g_La();return _[0]=g[0],_[1]=g[1],_[2]=g[2],_}if("continuous"===d||"step"===d){if("step"===d){const g=1/e.g_JJ().g_IF();M=Math.floor(M*g)/g}const g=a.g_I$(),f=c.g_I$(),i=a.g_La(),h=c.g_La(),N=g_bA.normalize(M,g,f),l=a.g_jT(),m=i[0],b=i[1],n=i[2],o=h[0],p=h[1],v=h[2],r=g_jP.g_jT(l),s=f-g,t=s*N;return _[0]=m===o?m:r(t,m,o-m,s),_[1]=b===p?b:r(t,b,p-b,s),_[2]=n===v?n:r(t,n,v-n,s),_}}}}"use strict",g_bA.g_JE.g_LH=class{constructor(){}static g_LJ(g,_,a,t){let n;return"behavior"===t?n=_.g_Mp(g):"effect"===t?n=_[g]:"instance-variable"===t?n=_.g_Mz(g):"plugin"===t?n=_.g_Mp(g):void 0,n!==a}static g_Jm(g,_,e,a){return e?_.g_La():a.g_KK().g_La()}},"use strict",g_bA.Tween=class g extends g_bA.g_HS{constructor(g,_){super(g,_),this.g_MU=[""],this.g_MV="",this.g_MW=!1,this.g_MX="",this.g_MY=!1,this.g_MZ="start-value",this.g_IE(0),this.g_IG("default"),this.g_Il(null),this.g_Ip(null)}g_eN(){g_bA.g_fV(this.g_MU),this.g_MU=null,super.g_eN()}g_JL(){const g=this.g_IL();if(g&&g.length){const _=g[0];if(_){const g=_.g_JL();return _.g_JM()?g:null}}}g_M_(g,_){for(const e of this.g_HY)for(const a of e.g_JD){if(a.g_Jg()!==_)continue;const e=a.g_Kz();e.g_KU(g),e.g_KR(g)}}g_M$(g,_){for(const e of this.g_HY)for(const a of e.g_JD){if(a.g_Jg()!==_)continue;const e=a.g_KK();e.g_KU(g),e.g_KR(g),(this.g_IX()||!this.g_Ja())&&a.g_KS()}}g_Na(_){if(!this.g_MU)return!1;if(!this.g_MU.length)return!1;const e=g.g_Nb(_);return!!e&&!!e.length&&e.every(g.g_Nc,this)}g_Nd(g){this.g_MX=g}g_Ne(){return this.g_MX}g_Nf(_){this.g_MU=g.g_Nb(_),this.g_MW=!0}g_Ng(){return this.g_MU}g_Nh(){return this.g_MW&&(this.g_MV=this.g_MU.join(" ")),this.g_MW=!1,this.g_MV}g_Ni(g){this.g_MZ=g}g_Nj(){return this.g_MZ}g_Nk(g){this.g_MY=g}g_Nl(){return this.g_MY}g_IQ(){if(super.g_IQ(),!this.g_Ja())for(const g of this.g_HY)g.g_JZ()}g_Ji(g){this.g_Nm(),super.g_Ji(g)}g_Jj(){if(!this.g_Jd()&&"current-state"===this.g_Nj())for(const g of this.g_HY)g.g_JY();super.g_Jj()}g_Jk(g=!1){if(super.g_Jk(g),!this.g_Ja())for(const g of this.g_HY)g.g_JX()}g_lq(){this.g_Nm(),super.g_lq()}g_Nm(){for(const g of this.g_HY){const _=g=>{const _=g.g_I$(),e=this.g_ID();return 0!==_&&_!==e};g.g_JV(_),g.g_JW(_)}}g_Jv(){const g=this.g_JL(),_=this.g_Am().g_Lz(g);super.g_Jv(_,1)}static g_IX(g){return g.g_IX()}static g_Nc(g){const _=this.g_Ng();return""===g?1===_.length&&""===_[0]:_.includes(g)}static g_Nb(g){return g_bA.g_dC(g)?g.slice(0):g_bA.g_dl(g)?g.split(" "):void 0}static g_Nn(_){const a=g_bA.g_HS.g_It(),t=_.g_HD.g_No(),n=g_bA.g_eM(g_bA.Tween,a,t);g_bA.g_dC(_.g_Np)||(_.g_Np=[_.g_Np]),n.g_Nd(_.id),n.g_Nf(_.tags),n.g_Ni(_.g_Nq),n.g_IC(_.time),n.g_II(_.g_Np[0].g_Jp),n.g_Nk(_.g_Nr);const i=n.g_IK();i.g_JO(_.g_Ns.g_CJ()),i.g_IG("default"),i.g_II(_.g_Np[0].g_Jp),i.g_JQ(!0);const e=i.g_JR();e.g_Ji(0),e.g_Jn("noease"),e.g_JQ(!0);const r=i.g_JR();r.g_Ji(_.time),r.g_Jn("noease"),r.g_JQ(!0);for(const g of _.g_Np){const e=i.g_JU(g.g_Nt,g.g_Nu);e.g_Kv(g.g_Nv),e.g_Kw(g.type),e.g_KA(NaN),e.g_KC(NaN),e.g_IG("default"),e.g_II(g.g_Jp),e.g_JQ(!0);const a=e.g_KE();a.g_KU(g.g_Nw),a.g_KR(g.g_Nw),a.g_KW(g.valueType),a.g_Ji(0),a.g_Jn(g.g_Nx),a.g_JQ(!0);const t=e.g_KE();t.g_KU(g.g_Ny),t.g_KR(g.g_Ny),t.g_KW(g.valueType),t.g_Ji(_.time),t.g_Jn(g.g_Nx),t.g_JQ(!0)}return n}},"use strict",g_bA.g_Nz=class extends g_bA.g_eK{constructor(g){super(),this.g_NA=g,this.g_NB=[],this.g_NB.push(g_bA.g_eM(g_bA.g_NC,this)),this.g_BU=0}g_eN(){for(const g of this.g_NB)g.g_eN();g_bA.g_fV(this.g_NB),this.g_NA=null}g_C$(){return this.g_NA}g_ND(){return this.g_NB[this.g_BU]}g_jC(){this.g_ND().g_jC()}g_NE(){const g=this.g_NB,_=++this.g_BU;_===g.length?g.push(g_bA.g_eM(g_bA.g_NC,this)):g[_].g_lq()}g_NF(){const g=this.g_NB,_=++this.g_BU;_===g.length&&g.push(g_bA.g_eM(g_bA.g_NC,this)),g[_].g_NG(g[_-1])}g_NH(){--this.g_BU}g_NI(g){const _=this.g_NB;for(let e=0,a=_.length;e<a;++e)_[e].g_NI(g)}},"use strict",g_bA.g_NC=class extends g_bA.g_eK{constructor(g){super(),this.g_NB=g,this.g_NA=this.g_NB.g_C$(),this.g_NJ=this.g_NA.g_Am().g_NK(),this.g_NL=!0,this.g_By=[],this.g_NM=[]}g_eN(){this.g_NN(),this.g_NB=null,this.g_NA=null,this.g_NJ=null}g_NN(){g_bA.g_fV(this.g_By),g_bA.g_fV(this.g_NM)}g_C$(){return this.g_NA}g_NO(){return this.g_NL}g_NP(){return this.g_NL?!!this.g_NA.g_Dj():!!this.g_By.length}g_Gp(){return this.g_NL?this.g_NA.g_Gp():this.g_By}g_NQ(){return!!this.g_NM.length}g_NR(){return this.g_NM}g_NS(){const g=this.g_Gp();return g.length?g:this.g_NM}g_lq(){this.g_NL=!0,g_bA.g_fV(this.g_NM)}g_jC(){this.g_NL=!0}g_NG(g){g.g_NO()?this.g_lq():(this.g_NL=!1,g_bA.g_fZ(this.g_By,g.g_By),g_bA.g_fV(this.g_NM))}g_NT(g){this.g_By.push(g)}g_NU(g){this.g_NM.push(g)}g_NV(g){this.g_NL=!!g}g_NW(){return this.g_By}g_NX(){return this.g_NM}g_NY(g){this.g_NL=!1,g_bA.g_fV(this.g_By),this.g_By.push(g)}g_NZ(g){this.g_NL=!1,g_bA.g_fZ(this.g_By,g)}g_N_(g){if(g)if(this.g_NJ.g_Ob().g_Oa().g_N$()){this.g_NO()&&(g_bA.g_fV(this.g_By),g_bA.g_fZ(this.g_NM,g.g_C$().g_Gp()),this.g_NL=!1);const _=this.g_NM.indexOf(g);-1!==_&&(this.g_By.push(this.g_NM[_]),this.g_NM.splice(_,1))}else this.g_NY(g)}g_NI(g){g_bA.g_gc(this.g_By,g),g_bA.g_gc(this.g_NM,g)}},"use strict",g_bA.g_Oc=class extends g_bA.g_eK{constructor(g){super(),this.g_Od=g,this.g_zM=this.g_Od.g_Am(),this.g_NB=[],this.g_NB.push(g_bA.g_eM(g_bA.g_Oe,this,null)),this.g_BU=0}g_eN(){for(const g of this.g_NB)g.g_eN();g_bA.g_fV(this.g_NB),this.g_Od=null,this.g_zM=null}g_Dc(){return this.g_Od}g_Am(){return this.g_zM}g_Ob(){return this.g_NB[this.g_BU]}g_Of(g){const _=this.g_NB,e=++this.g_BU;if(e===_.length){const e=g_bA.g_eM(g_bA.g_Oe,this,g);return _.push(e),e}else{const a=_[e];return a.g_lq(g),a}}g_NH(){--this.g_BU}},"use strict",g_bA.g_Oe=class extends g_bA.g_eK{constructor(g,_){super(),this.g_NB=g,this.g_zM=this.g_NB.g_Am(),this.g_Og=_,this.g_Oh=0,this.g_Oi=0,this.g_Oj=!1,this.g_Ok=!1,this.g_Ol=null}g_eN(){this.g_lq(null),this.g_NB=null,this.g_zM=null}g_lq(g){this.g_Og=g,this.g_Oh=0,this.g_Oi=0,this.g_Oj=!1,this.g_Ok=!1}g_Om(g,_){this.g_Og=g,this.g_Oh=0,this.g_Oi=_}g_On(){this.g_Oh=0,this.g_Oi=0}g_Oa(){return this.g_Og}g_Oo(g){this.g_Og=g}g_Op(){return this.g_Oh}g_Oq(g){this.g_Oh=g}g_Or(){return this.g_Oi}g_Os(g){this.g_Oi=g}g_Ot(g){this.g_Oj=!!g}g_Ou(){return this.g_Oj}g_Ov(g){this.g_Ok=!!g}g_Ow(){return this.g_Ok}g_Ox(g){this.g_Ol=g}g_Oy(){return this.g_Ol}g_Oz(){const g=this.g_Og;return!!g.g_OA()||!!(this.g_Oh<g.g_OB()-1)&&!!g.g_OC().length}},"use strict",g_bA.g_OD=class extends g_bA.g_eK{constructor(g){super(),this.g_Od=g,this.g_zM=this.g_Od.g_Am(),this.g_NB=[[]],this.g_BU=0}g_eN(){g_bA.g_fV(this.g_NB),this.g_Od=null,this.g_zM=null}g_Dc(){return this.g_Od}g_Am(){return this.g_zM}g_OE(){return this.g_NB[this.g_BU]}g_Of(){++this.g_BU,this.g_BU===this.g_NB.length&&this.g_NB.push([])}g_NH(){--this.g_BU}},"use strict",g_bA.g_OF=class extends g_bA.g_eK{constructor(g){super(),this.g_Od=g,this.g_zM=this.g_Od.g_Am(),this.g_NB=[],this.g_BU=-1}g_eN(){g_bA.g_fV(this.g_NB),this.g_Od=null,this.g_zM=null}g_Dc(){return this.g_Od}g_Am(){return this.g_zM}g_OG(){return 0<=this.g_BU}g_OE(){return this.g_NB[this.g_BU]}g_Of(){if(++this.g_BU,this.g_BU===this.g_NB.length){const g=g_bA.g_eM(g_bA.g_OH,this);return this.g_NB.push(g),g}else{const g=this.g_NB[this.g_BU];return g.g_lq(),g}}g_NH(){--this.g_BU}g_OI(g){const _=this.g_NB;for(let e=this.g_BU;0<=e;--e){const a=_[e];if(a.g_q_()===g)return a}return null}g_OJ(){return this.g_NB.slice(0,this.g_BU+1)}},"use strict",g_bA.g_OH=class extends g_bA.g_eK{constructor(g){super(),this.g_OK=g,this.g_pP="",this.g_BU=0,this.g_OL=!1,this.g_OM=NaN}g_lq(){this.g_pP="",this.g_BU=0,this.g_OL=!1,this.g_OM=NaN}g_IB(g){this.g_pP=g}g_q_(){return this.g_pP}g_ON(g){this.g_BU=g}g_Dl(){return this.g_BU}g_Jk(){this.g_OL=!0}g_OO(){return this.g_OL}g_OP(g){this.g_OM=g}g_OQ(){return this.g_OM}},"use strict",g_bA.g_OR=class extends g_bA.g_eK{constructor(){super(),this.g_NB=[],this.g_BU=-1}g_eN(){g_bA.g_fV(this.g_NB)}g_OE(){return this.g_NB[this.g_BU]}g_Of(){if(++this.g_BU,this.g_BU===this.g_NB.length){const g=[];return this.g_NB.push(g),g}return this.g_NB[this.g_BU]}g_NH(){--this.g_BU}},"use strict";{function g(g,_){return g.g_Dl()-_.g_Dl()}function _(g,_){for(let e=0,a=g.length;e<a;++e)if(g[e]!==_[e])return!1;return!0}g_bA.g_OS=class extends g_bA.g_eK{constructor(g){super(),this.g_zM=g,this.g_OT=[],this.g_OU=new Map,this.g_OV=[],this.g_OW=new Map,this.g_OX=new Map,this.g_OY=new Map,this.g_OZ=new Map,this.g_O_=new Map,this.g_O$=new Map,this.g_Pa=0,this.g_Pb=[],this.g_Pc=[],this.g_NJ=g_bA.g_eM(g_bA.g_Oc,this),this.g_Pd=g_bA.g_eM(g_bA.g_OD,this),this.g_OK=g_bA.g_eM(g_bA.g_OF,this),this.g_Pe=[],this.g_Pf=[],this.g_Pg=[],this.g_Ph=0,this.g_Pi=0,this.g_Pj=0,this.g_Pk=[]}g_eN(){this.g_GE(),this.g_NJ.g_eN(),this.g_NJ=null,this.g_Pd.g_eN(),this.g_Pd=null,g_bA.g_fV(this.g_Pf),g_bA.g_fV(this.g_Pg),this.g_zM=null,g_bA.g_fV(this.g_OT),this.g_OU.clear()}g_pM(g){const _=g_bA.g_eM(g_bA.g_Pl,this,g);this.g_OT.push(_),this.g_OU.set(_.g_q_().toLowerCase(),_)}g_Pm(g){this.g_Pe.push(g)}g_Pn(){for(const g of this.g_OT)g.g_Pn();for(const g of this.g_OT)g.g_F_();for(const g of this.g_Pe)g.g_Pn(!1);g_bA.g_fV(this.g_Pe)}g_Am(){return this.g_zM}g_FZ(g){return this.g_OU.get(g.toLowerCase())||null}g_Po(g){this.g_OV.push(g),this.g_OW.set(g.g_Pp(),g)}g_Pq(g){this.g_OX.set(g.g_Dm(),g)}g_Pr(g){this.g_OY.set(g.g_Dm(),g)}g_Ps(g){this.g_OZ.set(g.g_Dm(),g)}g_Pt(g){this.g_O$.set(g.g_Dm(),g),g.g_CI()?this.g_Pb.push(g):this.g_Pc.push(g)}g_Pu(t){2<=t.length&&t.sort(g);let n=this.g_O_.get(t.length);n||(n=[],this.g_O_.set(t.length,n));for(let g=0,a=n.length;g<a;++g){const a=n[g];if(_(t,a))return a}return n.push(t),t}g_Pv(){return this.g_Pa++}g_NK(){return this.g_NJ}g_Pw(){return this.g_NK().g_Ob()}g_Oa(){return this.g_Pw().g_Oa()}g_Px(){const g=this.g_Pw(),_=g.g_Oa();return _.g_Py(g.g_Op())}g_Pz(){const g=this.g_Pw(),_=g.g_Oa();return _.g_PA(g.g_Or())}g_PB(){return this.g_Pd}g_PC(){return this.g_OK}g_PD(g,_){for(;_;){for(const e of _.g_PE())if(e instanceof g_bA.g_PF&&g_bA.g_ea(g,e.g_q_()))return e;_=_.g_PG()}for(const e of this.g_Pb)if(g_bA.g_ea(g,e.g_q_()))return e;return null}g_PH(g){return this.g_O$.get(g)||null}g_PI(g){return this.g_OX.get(g)||null}g_PJ(g){return this.g_OY.get(g)||null}g_PK(g){return this.g_OZ.get(g)||null}g_PL(){return this.g_Pb}g_PM(){return this.g_Pc}g_PN(){for(const g of this.g_Pb)g.g_PO()}g_PP(g){return this.g_OW.get(g.toLowerCase())||null}g_PQ(g){const _=this.g_OX.get(g);return _&&_.g_PR()?_:null}g_PS(){return this.g_OV}g_PT(){for(const g of this.g_OV)g.g_PU()}g_PV(){for(const g of this.g_OT)g.g_PW()}g_PX(g){this.g_PV(),this.g_Ph++;for(const _ of g.g_Hd()){const g=_.g_FF();g&&(this.g_zM.g_PY(_),g.g_tl(),this.g_zM.g_PZ())}this.g_Ph--}async g_P_(g){this.g_PV(),this.g_Ph++;for(const _ of this.g_P$(g))await this.g_zM.g_Qa(_);this.g_Ph--}*g_P$(g){for(const _ of g.g_Hd()){const g=_.g_FF();g&&(this.g_zM.g_PY(_),yield*g.g_Qb(),this.g_zM.g_PZ())}}g_Qc(g,_,t){let n=!1;if(!g.g_GI())return this.g_Qd(_,t);this.g_Pi++;for(const i of g.g_Hd()){const g=i.g_FF();if(!g)continue;this.g_zM.g_PY(i);for(const i of g.g_Qe()){const g=i.g_Qc(_,t);n=n||g}const e=g.g_Qc(_,t);n=n||e,this.g_zM.g_PZ()}return this.g_Pi--,n}*g_Qf(g,_,t){let n=!1;if(!g.g_GI())return this.g_Qd(_,t);this.g_Pi++;for(const i of g.g_Hd()){const g=i.g_FF();if(!g)continue;this.g_zM.g_PY(i);for(const i of g.g_Qe()){const g=yield*i.g_Qf(_,t);n=n||g}const e=yield*g.g_Qf(_,t);n=n||e,this.g_zM.g_PZ()}return this.g_Pi--,n}g_Qd(g,_){return this.g_Pf.push([g,_]),!1}g_Qg(g,_){let e=null;const a=new Promise(g=>e=g);return this.g_Pg.push([g,_,e]),a}*g_Qh(){if(this.g_zM.g_Qi())throw new Error("should not be in breakpoint");for(const g=this.g_zM.g_Qj();this.g_Pg.length;){const[_,a,t]=this.g_Pg.shift(),n=yield*this.g_Qf(g,_,a);t(n)}}async g_Qk(){for(const g of this.g_Qh())await this.g_zM.g_Qa(g)}g_Ql(_,t,n,i){let r=!1;const d=_.g_GI(),o=d.g_FF();if(o){this.g_Pi++,this.g_zM.g_PY(d);const _=o.g_Qe();for(let e=0,a=_.length;e<a;++e){const a=_[e].g_Ql(t,n,i);r=r||a}const g=o.g_Ql(t,n,i);return r=r||g,this.g_zM.g_PZ(),this.g_Pi--,r}}*g_Qm(_,t,n,i){let r=!1;const d=_.g_GI(),o=d.g_FF();if(o){this.g_Pi++,this.g_zM.g_PY(d);const _=o.g_Qe();for(let e=0,a=_.length;e<a;++e){const a=yield*_[e].g_Qm(t,n,i);r=r||a}const g=yield*o.g_Qm(t,n,i);return r=r||g,this.g_zM.g_PZ(),this.g_Pi--,r}}g_Qn(){return this.g_Pi}g_Qo(){return 0<this.g_Qn()}g_Qp(){return 0<this.g_Ph}g_Gn(g){for(const[_,e]of this.g_Pf)this.g_Qc(g,_,e);g_bA.g_fV(this.g_Pf)}g_Dg(g){g?this.g_Pj++:this.g_Pj--}g_Qq(){return 0<this.g_Pj}g_Qr(g){for(let _=0,e=g.length;_<e;++_)g[_].g_Qs().g_jC()}g_Qt(g){for(let _=0,e=g.length;_<e;++_)g[_].g_Qs().g_NE()}g_Qu(g){for(let _=0,e=g.length;_<e;++_)g[_].g_Qs().g_NF()}g_Qv(g){for(let _=0,e=g.length;_<e;++_)g[_].g_Qs().g_NH()}g_Qw(){const g=g_bA.g_eM(g_bA.g_Qx,this);return this.g_Pk.push(g),g}g_Qy(){return this.g_Pk}g_Qz(){if(!this.g_Pk.length)return;const g=this.g_Pw();let _=!1;this.g_Ph++;for(let e=0,a=this.g_Pk.length;e<a;++e){const a=this.g_Pk[e];a.g_QA()&&a.g_QB(g),a.g_QC()&&(_=!0)}_&&this.g_QD(),this.g_Ph--}async g_QE(){if(!this.g_Pk.length)return;const g=this.g_Pw();let _=!1;this.g_Ph++;for(let e=0,a=this.g_Pk.length;e<a;++e){const a=this.g_Pk[e];a.g_QA()&&(await a.g_QF(g)),a.g_QC()&&(_=!0)}_&&this.g_QD(),this.g_Ph--}g_QD(){const g=g_bA.g_gb(this.g_Pk,g=>g.g_QC());for(const _ of g)_.g_eN()}g_GE(){for(const g of this.g_Pk)g.g_eN();g_bA.g_fV(this.g_Pk)}g_QG(g){for(const _ of this.g_Pk)_.g_NI(g)}g_Fd(){return{groups:this.g_QH(),cnds:this.g_QI(),acts:this.g_QJ(),vars:this.g_QK(),waits:this.g_QL()}}g_Ff(g){this.g_QM(g.groups),this.g_QN(g.cnds),this.g_QO(g.acts),this.g_QP(g.vars),this.g_QQ(g.waits)}g_QH(){const g={};for(const _ of this.g_PS())g[_.g_Dm().toString()]=_.g_QR();return g}g_QM(g){for(const[_,e]of Object.entries(g)){const g=parseInt(_,10),a=this.g_PQ(g);a&&a.g_QS(e)}}g_QI(){const g={};for(const[_,e]of this.g_OY){const a=e.g_Fd();a&&(g[_.toString()]=a)}return g}g_QN(g){for(const[_,e]of Object.entries(g)){const g=parseInt(_,10),a=this.g_PJ(g);a&&a.g_Ff(e)}}g_QJ(){const g={};for(const[_,e]of this.g_OZ){const a=e.g_Fd();a&&(g[_.toString()]=a)}return g}g_QO(g){for(const[_,e]of Object.entries(g)){const g=parseInt(_,10),a=this.g_PK(g);a&&a.g_Ff(e)}}g_QK(){const g={};for(const[_,e]of this.g_O$)!e.g_QT()&&(e.g_CI()||e.g_oZ())&&(g[_.toString()]=e.g_Ku());return g}g_QP(g){for(const[_,e]of Object.entries(g)){const g=parseInt(_,10),a=this.g_PH(g);a&&a.g_KU(e)}}g_QL(){return this.g_Pk.map(g=>g.g_Fd())}g_QQ(g){this.g_GE();for(const _ of g){const g=g_bA.g_Qx.g_QU(this,_);g&&this.g_Pk.push(g)}}g_QV(){return[...this.g_zM.g_Qj().g_Hd()].map(g=>g.g_FF()).filter(g=>g).map(g=>g.g_QW())}}}"use strict",g_bA.g_Pl=class extends g_bA.g_eK{constructor(g,_){super(),this.g_Od=g,this.g_zM=g.g_Am(),this.g_pP=_[0],this.g_QX=[],this.g_QY=new Map,this.g_QZ=new Map,this.g_Q_=new Map,this.g_Q$=!1,this.g_Ra=[],this.g_Rb=[],this.g_Rc=new Set;for(const e of _[1])this.g_Rd(e,null,this.g_QX);this.g_Re=this.g_zM.g_Rf()?{type:"sheet",name:this.g_pP,g_Rg:0,children:[]}:null}g_eN(){this.g_Od=null,this.g_zM=null}g_Rd(g,_,e){switch(g[0]){case 0:this.g_Rh(g,_,e);break;case 1:this.g_Ri(g,_,e);break;case 2:this.g_Rj(g,_,e);break;default:throw new Error("invalid event type");}}g_Rh(g,_,e){const t=g_bA.g_Rk.g_pM(this,_,g);if(t.g_N$()){e.push(t);const g=t.g_Rl();for(let _=0,e=g.length;_<e;++_)g[_].g_Rm()&&this.g_Rn(t,_)}else t.g_Rm()?this.g_Rn(t,0):e.push(t)}g_Ri(g,_,e){const a=g_bA.g_PF.g_pM(this,_,g);e.push(a)}g_Rj(g,_,e){const a=g_bA.g_Ro.g_pM(this,_,g);e.push(a)}g_Rn(_,a){_.g_N$()||this.g_Od.g_Pm(_);const t=_.g_Py(a),n=t.g_Rp(),r=t.g_C$();if(t.g_Rq()){let e=this.g_QZ.get(r);e||(e=new Map,this.g_QZ.set(r,e));const d=t.g_Rr().toLowerCase();let g=e.get(n);g||(g=new Map,e.set(n,g));let o=g.get(d);o||(o=[],g.set(d,o)),o.push([_,a])}else{let g=this.g_QY.get(r);g||(g=new Map,this.g_QY.set(r,g));let e=g.get(n);e||(e=[],g.set(n,e)),e.push([_,a])}}g_Pn(){const g=this.g_QX;for(let _=0,e=g.length;_<e;++_){const a=_<e-1&&g[_+1]instanceof g_bA.g_Rk&&g[_+1].g_Rs();g[_].g_Pn(a)}}g_Rt(g){this.g_Ra.push(g)}g_F_(){g_bA.g_fV(this.g_Rb),this.g_Ru(this),this.g_Rc.clear()}g_Ru(g){const _=g.g_Rb,a=g.g_Rc;for(const t of this.g_Ra){const n=t.g_Rv();!t.g_Rw()||g===n||a.has(n)||(a.add(n),n.g_Ru(g),_.push(n))}}g_Qe(){return this.g_Rb}g_Dc(){return this.g_Od}g_Am(){return this.g_zM}g_q_(){return this.g_pP}g_Rx(g,_){this.g_Q_.set(_,g)}g_Ry(g){return this.g_Q_.get(g)||null}g_PW(){this.g_Q$=!1}g_tl(){if(!this.g_Q$){const g=this.g_zM.g_Rz(),_=g?performance.now():0;this.g_Q$=!0;const e=this.g_Dc();for(const g of this.g_QX)g.g_tl(),e.g_Qr(g.g_OC()),this.g_zM.g_CK();e.g_Pw().g_lq(null),g&&(this.g_Re.g_Rg+=performance.now()-_)}}*g_Qb(){if(!this.g_Q$){this.g_Q$=!0;const g=this.g_Dc();for(const _ of this.g_QX)yield*_.g_Qb(),g.g_Qr(_.g_OC()),this.g_zM.g_CK();g.g_Pw().g_lq(null)}}g_Qc(g,_){if(_){const a=_.g_C$();let t=!1,n=this.g_RA(g,_,a);t=t||n;for(const e of a.g_RB())n=this.g_RA(g,_,e),t=t||n}else return this.g_RA(g,_,null)}g_RA(g,_,t){const a=this.g_QY.get(t);if(!a)return!1;const n=a.get(g);if(!n)return!1;let e=!1;for(const[i,r]of n){const g=this.g_RC(_,t,i,r);e=e||g}return e}*g_Qf(g,_){if(_){const a=_.g_C$();let t=!1,n=yield*this.g_RD(g,_,a);t=t||n;for(const e of a.g_RB())n=yield*this.g_RD(g,_,e),t=t||n}else return yield*this.g_RD(g,_,null)}*g_RD(g,_,t){const a=this.g_QY.get(t);if(!a)return!1;const n=a.get(g);if(!n)return!1;let e=!1;for(const[i,r]of n){let g;g=i.g_RE()?this.g_RC(_,t,i,r):yield*this.g_RF(_,t,i,r),e=e||g}return e}g_Ql(_,a,t){const n=a.g_C$(),i=this.g_QZ.get(n);if(!i)return!1;const e=i.get(_);if(!e)return!1;const r=e.get(t);if(!r)return!1;let g=!1;for(let n=0,i=r.length;n<i;++n){const _=r[n],e=this.g_RC(null,null,_[0],_[1]);g=g||e}return g}*g_Qm(_,a,t){const n=a.g_C$(),i=this.g_QZ.get(n);if(!i)return!1;const e=i.get(_);if(!e)return!1;const r=e.get(t);if(!r)return!1;let g=!1;for(let n=0,i=r.length;n<i;++n){const _=r[n],a=_[0],t=_[1];let i;i=a.g_RE()?this.g_RC(null,null,a,t):yield*this.g_RF(null,null,a,t),g=g||i}return g}g_RC(_,a,t,n){const r=this.g_zM,e=this.g_Od,d=e.g_Oa(),g=e.g_NK(),o=e.g_Qn();let i=!1;d&&e.g_Qt(d.g_RG()),e.g_Qt(t.g_RG());const u=1<o;u&&e.g_PB().g_Of();const s=g.g_Of(t);if(_){const g=a.g_ND();g.g_NY(_),_.g_Di()&&_.g_RH()}let l=!0;if(t.g_PG()){const g=t.g_RI();for(let _=0,e=g.length;_<e;++_)if(!g[_].g_RJ()){l=!1;break}}return l&&(r.g_RK(),t.g_N$()?t.g_RL(n):t.g_tl(),i=s.g_Ou()),g.g_NH(),u&&e.g_PB().g_NH(),e.g_Qv(t.g_RG()),d&&e.g_Qv(d.g_RG()),d||1!==o||e.g_Qq()||r.g_CK(),i}*g_RF(_,a,t,n){const r=this.g_zM,e=this.g_Od,d=e.g_Oa(),g=e.g_NK(),o=e.g_Qn();let i=!1;d&&e.g_Qt(d.g_RG()),e.g_Qt(t.g_RG());const u=1<o;u&&e.g_PB().g_Of();const s=g.g_Of(t);if(_){const g=a.g_ND();g.g_NY(_),_.g_Di()&&_.g_RH()}let l=!0;if(t.g_PG()){const g=t.g_RI();for(let _=0,e=g.length;_<e;++_)if(!(yield*g[_].g_RM())){l=!1;break}}return l&&(r.g_RK(),t.g_N$()?yield*t.g_RN(n):yield*t.g_Qb(),i=s.g_Ou()),g.g_NH(),u&&e.g_PB().g_NH(),e.g_Qv(t.g_RG()),d&&e.g_Qv(d.g_RG()),d||1!==o||e.g_Qq()||r.g_CK(),i}g_QW(){return this.g_Re}},"use strict",g_bA.g_Rk=class extends g_bA.g_eK{constructor(g,_,t){super(),this.g_Fn=g,this.g_zM=g.g_Am(),this.g_RO=_,this.g_NJ=this.g_zM.g_Dc().g_NK(),this.g_RP=[],this.g_RQ=[],this.g_RR=!1,this.g_RS=!1,this.g_RT=!1,this.g_RU=!1,this.g_RV=!!t[2],this.g_RW=!1,this.g_RX=null,this.g_RY=[],this.g_RZ=[],this.g_R_=[],this.g_R$=[],this.g_Sa=!1,this.g_Sb=!1,this.g_Sc="",this.g_Sd=!1,this.g_Se=null,this.g_Re=null,this.g_BV=t[4],this.g_Sf=t[5],this.g_Fn.g_Rx(this,this.g_Sf),this.g_Sg=this.g_zM.g_Rf()?{g_Sh:t[3][0],g_Si:t[3][1],g_Sj:!1,g_Sk:!1,g_Sl:!1,g_Sm:!1}:null,t[1]?this.g_Sn(t[1]):this.g_Dc().g_Pq(this);let n=0;for(const i of t[6]){const g=g_bA.g_So.g_pM(this,i,n++);this.g_RY.push(g),this.g_Sp(g.g_C$())}n=0;for(const i of t[7]){const g=g_bA.g_Sq.g_pM(this,i,n++);this.g_RZ.push(g)}if(9===t.length){const g=t[8];for(const _ of g)this.g_Fn.g_Rd(_,this,this.g_R_)}this.g_RY.length&&(this.g_RW=null===this.g_RY[0].g_C$()&&this.g_RY[0].g_Rp()===g_bA.g_Gm.g_Gl.g_Gk.g_Sr)}static g_pM(g,_,e){return g_bA.g_eM(g_bA.g_Rk,g,_,e)}g_eN(){}g_Sn(g){this.g_Sa=!0,this.g_Sb=!!g[0],this.g_Sd=this.g_Sb,this.g_Sc=g[1].toLowerCase(),this.g_Se=[],this.g_Dc().g_Po(this),this.g_zM.g_Rf()&&(this.g_Re={type:"group",name:g[1],g_Rg:0,children:[]})}g_Ss(g){this.g_Se.push(g)}g_St(g,_){for(const e of g.g_FO().g_Gu())_.includes(e)||_.push(e)}g_Su(g,_){if(g)if(_.includes(g)||_.push(g),g.g_De())for(const e of g.g_Sv())e.g_Di()&&this.g_St(e,_);else g.g_Di()&&this.g_St(g,_)}g_Sp(g){this.g_Su(g,this.g_RP)}g_Sw(g){this.g_Su(g,this.g_RQ)}g_Sx(){this.g_RP=this.g_zM.g_Dd()}g_Pn(g){this.g_RU=!!g,this.g_Sy(),this.g_Sz(),this.g_SA();const _=this.g_PG();this.g_RS=!this.g_Rm()&&(!_||_.g_SB());for(const _ of this.g_RY)_.g_Pn();for(const _ of this.g_RZ)_.g_Pn();const e=this.g_R_;for(let _=0,t=e.length;_<t;++_){const g=_<t-1&&e[_+1].g_Rs();e[_].g_Pn(g)}this.g_Sg&&this.g_SC(),this.g_Re&&this.g_SD().g_QW().children.push(this.g_Re)}g_QW(){return this.g_Re}g_SD(){for(let g=this.g_PG();g;){if(g.g_PR())return g;g=g.g_PG()}return this.g_Fn}g_SC(){const g=this.g_Sg;g.g_Sj=this.g_RY.every(g=>g.g_RE()),g.g_Sk=this.g_RZ.every(g=>g.g_RE()),g.g_Sl=this.g_R_.every(g=>g.g_RE()),g.g_Sm=g.g_Sj&&g.g_Sk&&g.g_Sl}g_SE(){let g=this;do g.g_SC(),g=g.g_PG();while(g)}g_Sy(){if(!this.g_PR())return;let g=this.g_PG();for(this.g_RT=!0;g;){if(!g.g_PR()){this.g_RT=!1;break}g=g.g_PG()}}g_Sz(){const g=this.g_zM.g_Dd();if(this.g_RP===g)this.g_RQ=g;else{this.g_RQ=g_bA.g_gf(this.g_RP);for(let g=this.g_PG();g;){for(const _ of g.g_RP)this.g_Sw(_);g=g.g_PG()}const g=this.g_Dc();this.g_RP=g.g_Pu(this.g_RP),this.g_RQ=g.g_Pu(this.g_RQ)}}g_SA(){if(this.g_SF()){this.g_RX=[];for(let g=this.g_PG();g;)this.g_RX.push(g),g=g.g_PG();this.g_RX.reverse()}}g_SG(){this.g_RR=!0,this.g_RO&&this.g_RO.g_SG()}g_OA(){return this.g_RR}g_OC(){return this.g_RP}g_RG(){return this.g_RQ}g_SH(g){return this.g_RP.includes(g)}g_RI(){return this.g_RX}g_FF(){return this.g_Fn}g_Dc(){return this.g_Fn.g_Dc()}g_Am(){return this.g_zM}g_PG(){return this.g_RO}g_SI(){return this.g_Sf}g_SJ(){return this.g_Sg&&this.g_Sg.g_Si}g_SK(){return this.g_SJ()&&this.g_Sg.g_Sh}g_SL(g){this.g_Sg.g_Sh=!!g,this.g_SE()}g_PR(){return this.g_Sa}g_SB(){return this.g_RT}g_Rs(){return this.g_RW}g_SM(){return this.g_RU}g_Pp(){return this.g_Sc}g_QR(){return this.g_Sd}g_PU(){this.g_QS(this.g_Sb)}g_QS(g){if(g=!!g,!this.g_Sa)throw new Error("not a group");if(this.g_Sd!==g){this.g_Sd=g;for(const g of this.g_Se)g.g_SN();if(this.g_Se.length){const g=this.g_zM.g_SO(),_=g.g_FF();_&&_.g_F_()}}}g_Dm(){return this.g_BV}g_N$(){return this.g_RV}g_Rm(){return this.g_RY.length&&this.g_RY[0].g_Rm()}g_SF(){return this.g_RY.some(g=>g.g_Rm())}g_Rl(){return this.g_RY}g_OB(){return this.g_RY.length}g_Py(g){if(g=Math.floor(g),0>g||g>=this.g_RY.length)throw new RangeError("invalid condition index");return this.g_RY[g]}g_SP(g){let _=g.g_Dl();if(0===_)return!0;for(;0<=_;--_)if(this.g_RY[_].g_C$()===g.g_C$())return!1;return!0}g_SQ(){return this.g_RZ}g_SR(){return this.g_RZ.length}g_PA(g){if(g=Math.floor(g),0>g||g>=this.g_RZ.length)throw new RangeError("invalid action index");return this.g_RZ[g]}g_SS(g){return g=Math.floor(g),0<=g&&g<this.g_RZ.length}g_PE(){return this.g_R_}g_ST(){this.g_RS&&this.g_zM.g_CK()}g_RJ(){const g=this.g_NJ.g_Ob();g.g_Oo(this);let _=!1;const a=this.g_RY;for(let t=0,e=a.length;t<e;++t){const e=a[t];if(g.g_Oq(t),e.g_SU())throw new Error("trigger cannot be used as sub-event to a loop");if(e.g_tl())_=!0;else if(!this.g_RV)return!1}return!this.g_RV||_}g_RL(g){const _=this.g_NJ.g_Ob();_.g_Oo(this),this.g_RY[g].g_tl()&&(this.g_SV(_),_.g_Ot(!0))}*g_RM(){const g=this.g_NJ.g_Ob();g.g_Oo(this);let _=!1;const a=this.g_RY;for(let t=0,e=a.length;t<e;++t){const e=a[t];if(g.g_Oq(t),e.g_SU())throw new Error("trigger cannot be used as sub-event to a loop");let n;if(n=e.g_RE()?e.g_tl():yield*e.g_Qb(),n)_=!0;else if(!this.g_RV)return!1}return!this.g_RV||_}*g_RN(g){const _=this.g_NJ.g_Ob();_.g_Oo(this);const e=this.g_RY[g];let a;if(a=e.g_RE()?e.g_tl():yield*e.g_Qb(),a){let g;g=this.g_SW()?this.g_SX(_):yield*this.g_SY(_),g&&(this.g_SZ()?this.g_S_():yield*this.g_S$()),_.g_Ot(!0)}}g_tl(){const g=this.g_NJ.g_Ob();g.g_Oo(this),this.g_RW||g.g_Ov(!1),this.g_RV?this.g_Ta(g):this.g_Tb(g)}*g_Qb(){(this.g_SK()||this.g_zM.g_Tc())&&(yield this);const g=this.g_NJ.g_Ob();g.g_Oo(this),this.g_RW||g.g_Ov(!1),this.g_RV?yield*this.g_Td(g):yield*this.g_Te(g)}g_Ta(g){const _=this.g_RY;let a=0===_.length;for(let t=0,e=_.length;t<e;++t){const e=_[t];if(e.g_Rm())continue;g.g_Oq(t);const n=e.g_tl();a=a||n}g.g_Ot(a),a&&(this.g_SV(g),this.g_RU&&g.g_Ov(!0)),this.g_ST()}*g_Td(g){const _=this.g_RY;let a=0===_.length;for(let t=0,e=_.length;t<e;++t){const e=_[t];if(e.g_Rm())continue;g.g_Oq(t);let n;n=e.g_RE()?e.g_tl():yield*e.g_Qb(),a=a||n}if(g.g_Ot(a),a){let _;_=this.g_SW()?this.g_SX(g):yield*this.g_SY(g),_&&(this.g_SZ()?this.g_S_():yield*this.g_S$()),this.g_RU&&g.g_Ov(!0)}this.g_ST()}g_Tb(g){const _=this.g_RY;for(let a=0,e=_.length;a<e;++a){const t=_[a];g.g_Oq(a);const e=t.g_tl();if(!e)return g.g_Ot(!1),void this.g_ST()}g.g_Ot(!0),this.g_SV(g),g.g_Ou()&&this.g_RU&&g.g_Ov(!0),this.g_ST()}*g_Te(g){const _=this.g_RY;for(let a=0,e=_.length;a<e;++a){const t=_[a];g.g_Oq(a);let e;if(e=t.g_RE()?t.g_tl():yield*t.g_Qb(),!e)return g.g_Ot(!1),void this.g_ST()}g.g_Ot(!0);let e;e=this.g_SW()?this.g_SX(g):yield*this.g_SY(g),e&&(this.g_SZ()?this.g_S_():yield*this.g_S$()),g.g_Ou()&&this.g_RU&&g.g_Ov(!0),this.g_ST()}g_SX(g){const _=this.g_RZ;for(let t=0,e=_.length;t<e;++t){const a=_[t];if(g.g_Os(t),!0===a.g_tl())return!1}return!0}*g_SY(g){const _=this.g_RZ;for(let t=0,e=_.length;t<e;++t){const n=_[t];g.g_Os(t);let e;if(e=n.g_RE()?n.g_tl():yield*n.g_Qb(),!0===e)return!1}return!0}g_SV(g){const _=this.g_RZ;for(let t=0,e=_.length;t<e;++t){const a=_[t];if(g.g_Os(t),!0===a.g_tl())return}this.g_S_()}g_Tf(g){const _=this.g_RZ;for(let t=g.g_Or(),e=_.length;t<e;++t){const a=_[t];if(g.g_Os(t),!0===a.g_tl())return}this.g_S_()}*g_Tg(g){const _=this.g_RZ;for(let t=g.g_Or(),e=_.length;t<e;++t){const n=_[t];g.g_Os(t);let e;if(e=n.g_RE()?n.g_tl():yield*n.g_Qb(),!0===e)return}yield*this.g_S$()}g_S_(){if(this.g_R_.length){const g=this.g_PR()&&this.g_zM.g_Rz(),_=g?performance.now():0,e=this.g_NJ;e.g_Of(this),this.g_RR?this.g_Th():this.g_Ti(),e.g_NH(),g&&(this.g_Re.g_Rg+=performance.now()-_)}}g_Th(){const _=this.g_Sa,a=this.g_RT,t=this.g_Fn.g_Dc(),n=this.g_R_;for(let r=0,d=n.length;r<d;++r){const g=n[r],o=g.g_OC(),e=!a||!_&&r<d-1;e&&t.g_Qu(o),g.g_tl(),e?t.g_Qv(o):t.g_Qr(o)}}g_Ti(){const g=this.g_R_;for(let _=0,e=g.length;_<e;++_)g[_].g_tl()}*g_S$(){if(this.g_R_.length){const g=this.g_NJ;g.g_Of(this),this.g_RR?yield*this.g_Tj():yield*this.g_Tk(),g.g_NH()}}*g_Tj(){const _=this.g_Sa,a=this.g_RT,t=this.g_Fn.g_Dc(),n=this.g_R_;for(let r=0,d=n.length;r<d;++r){const g=n[r],o=g.g_OC(),e=!a||!_&&r<d-1;e&&t.g_Qu(o),yield*g.g_Qb(),e?t.g_Qv(o):t.g_Qr(o)}}*g_Tk(){const g=this.g_R_;for(let _=0,e=g.length;_<e;++_)yield*g[_].g_Qb()}g_Tl(g,_){this.g_zM.g_RK(),_.g_On();const t=this.g_RY;if(!this.g_N$())for(let n=g.g_Op()+1,e=t.length;n<e;++n){const g=t[n];_.g_Oq(n);const e=g.g_tl();if(!e)return!1}return this.g_SV(_),!0}*g_Tm(g,_){this.g_zM.g_RK(),_.g_On();const t=this.g_RY;if(!this.g_N$())for(let n=g.g_Op()+1,e=t.length;n<e;++n){const g=t[n];_.g_Oq(n);let e;if(e=g.g_RE()?g.g_tl():yield*g.g_Qb(),!e)return!1}let e;return e=this.g_SW()?this.g_SX(_):yield*this.g_SY(_),e&&(this.g_SZ()?this.g_S_():yield*this.g_S$()),!0}g_RE(){return!this.g_SK()&&!this.g_zM.g_Tc()&&this.g_Sg.g_Sm}g_SW(){return!this.g_zM.g_Tc()&&this.g_Sg.g_Sk}g_SZ(){return!this.g_zM.g_Tc()&&this.g_Sg.g_Sl}},"use strict";{const g=[];g_bA.g_PF=class extends g_bA.g_eK{constructor(g,_,e){super();const a=g.g_Dc();this.g_Fn=g,this.g_Od=a,this.g_zM=g.g_Am(),this.g_RO=_,this.g_Pd=a.g_PB(),this.g_pP=e[1],this.g_kA=e[2],this.g_Tn=e[3],this.g_ow=!!e[4],this.g_To=!!e[5],this.g_BV=e[6],this.g_Tp=!this.g_RO||this.g_ow||this.g_To,this.g_KY=this.g_Tn,this.g_Tq=-1,this.g_Tr()&&(this.g_KY=this.g_KY?1:0),!this.g_Ts()||this.g_oZ()||this.g_QT()||(this.g_Tq=a.g_Pv()),a.g_Pt(this)}static g_pM(g,_,e){return g_bA.g_eM(g_bA.g_PF,g,_,e)}g_eN(){}g_Pn(){}g_q_(){return this.g_pP}g_PG(){return this.g_RO}g_CI(){return!this.g_PG()}g_Ts(){return!this.g_CI()}g_oZ(){return this.g_ow}g_QT(){return this.g_To}g_db(){return 0===this.g_kA}g_dl(){return 1===this.g_kA}g_Tr(){return 2===this.g_kA}g_Rs(){return!1}g_Dm(){return this.g_BV}g_Tt(){return this.g_Tn}g_OC(){return g}g_tl(){!this.g_Ts()||this.g_oZ()||this.g_QT()||this.g_KU(this.g_Tt())}g_RE(){return!0}*g_Qb(){this.g_tl()}g_KU(g){if(this.g_db()?"number"!=typeof g&&(g=parseFloat(g)):this.g_dl()?"string"!=typeof g&&(g=g.toString()):this.g_Tr()&&(g=g?1:0),this.g_Tp)return void(this.g_KY=g);const _=this.g_Pd.g_OE(),e=this.g_Tq;g_bA.g_fX(_,e+1,0),_[e]=g}g_Ku(){if(this.g_Tp)return this.g_KY;const g=this.g_Pd.g_OE(),_=this.g_Tq;return _>=g.length?this.g_Tn:g[_]}g_Tu(){let g=this.g_Ku();return this.g_Tr()&&(g=!!g),g}g_PO(){this.g_KY=this.g_Tn}}}{const g=[];g_bA.g_Ro=class extends g_bA.g_eK{constructor(g,_,e){super();const a=g.g_Dc();this.g_Fn=g,this.g_Od=a,this.g_zM=g.g_Am(),this.g_RO=_,this.g_Tv=null,this.g_Tw=e[1],this.g_lp=!0}static g_pM(g,_,e){return g_bA.g_eM(g_bA.g_Ro,g,_,e)}g_eN(){}g_Pn(){this.g_Tv=this.g_Od.g_FZ(this.g_Tw),this.g_Fn.g_Rt(this);for(let g=this.g_PG();g;)g instanceof g_bA.g_Rk&&g.g_PR()&&g.g_Ss(this),g=g.g_PG();this.g_SN(),this.g_zM.g_Rf()&&this.g_Fn.g_QW().children.push(this.g_Tv.g_QW())}g_PG(){return this.g_RO}g_OC(){return g}g_Rv(){return this.g_Tv}g_tl(){const g=!!this.g_PG(),_=this.g_zM.g_Dd();g&&this.g_Od.g_Qt(_),this.g_Tv.g_tl(),g&&this.g_Od.g_Qv(_)}*g_Qb(){const g=!!this.g_PG(),_=this.g_zM.g_Dd();g&&this.g_Od.g_Qt(_),yield*this.g_Tv.g_Qb(),g&&this.g_Od.g_Qv(_)}g_RE(){return!1}g_Rw(){return this.g_lp}g_SN(){for(let g=this.g_PG();g;){if(g instanceof g_bA.g_Rk&&g.g_PR()&&!g.g_QR())return void(this.g_lp=!1);g=g.g_PG()}this.g_lp=!0}}}{function _(g,_){return g>=_?g%_:0>g?(g<=-_&&(g%=_),0>g&&(g+=_),g):g}g_bA.g_Tx=class extends g_bA.g_eK{constructor(g){super(),this.g_rR=g,this.g_zM=g.g_Am()}g_Pn(){}static g_Ty(_,a){const g=a[0];return g_bA.g_eM([r,n,i,e,t][g],_,a)}};class t extends g_bA.g_Tx{constructor(g,_){super(g),this.g_Tz=this.g_zM.g_TA(),this.g_TB=this.g_zM.g_TC(_[1]),(this.g_TB===g_bA.g_Gm.g_Gl.g_TD.random||this.g_TB===g_bA.g_Gm.g_Gl.g_TD.g_TE)&&this.g_rR.g_TF()}g_TG(){return this.g_Tz.g_TH(this.g_TB,this.g_Tz)}}class n extends g_bA.g_Tx{constructor(g,_){super(g),this.g_NA=this.g_zM.g_Cz(_[1]),this.g_TB=this.g_zM.g_TC(_[2]),this.g_TI=!!_[3],this.g_NJ=this.g_zM.g_Dc().g_NK(),this.g_rR.g_TJ(this.g_NA)}g_TG(){return this.g_NA.g_GH().g_TH(this.g_TB,this.g_NA.g_TK().g_LU())}g_TL(...g){const a=this.g_NA,t=a.g_ND().g_NS(),n=t.length;if(0===n)return this.g_TI?"":0;const e=_(this.g_rR.g_TM(),n);return this.g_NJ.g_Ob().g_Ox(a),this.g_TB.apply(t[e].g_LU(),g)}g_TN(a,...t){const n=this.g_NA,i=n.g_Gp(),e=i.length;if(0===e)return this.g_TI?"":0;const r=_(a,e);return this.g_NJ.g_Ob().g_Ox(n),this.g_TB.apply(i[r].g_LU(),t)}}class i extends g_bA.g_Tx{constructor(g,_){super(g),this.g_NA=this.g_zM.g_Cz(_[1]),this.g_TO=_[3],this.g_TI=!!_[2],this.g_rR.g_TJ(this.g_NA)}g_TP(){const g=this.g_NA.g_ND().g_NS(),e=g.length;if(0===e)return this.g_TI?"":0;const a=_(this.g_rR.g_TM(),e);return g[a].g_TQ(this.g_TO)}g_TR(){const a=this.g_NA,t=a.g_ND().g_NS(),n=t.length;if(0===n)return this.g_TI?"":0;const i=_(this.g_rR.g_TM(),n),e=t[i],r=e.g_C$().g_TS(a.g_TT());return e.g_TQ(this.g_TO+r)}g_TU(a){const t=this.g_NA,n=t.g_Gp(),i=n.length;if(0===i)return this.g_TI?"":0;const e=_(a,i),r=n[e];let g=0;return t.g_De()&&(g=r.g_C$().g_TS(t.g_TT())),r.g_TQ(this.g_TO+g)}}class r extends g_bA.g_Tx{constructor(g,_){super(g),this.g_NA=this.g_zM.g_Cz(_[1]),this.g_TV=this.g_NA.g_TW(_[2]),this.g_TX=this.g_NA.g_TY(_[2]),this.g_TB=this.g_zM.g_TC(_[3]),this.g_TI=!!_[4],this.g_NJ=this.g_zM.g_Dc().g_NK(),this.g_rR.g_TJ(this.g_NA)}g_TZ(...a){const t=this.g_NA,n=t.g_ND().g_NS(),i=n.length;if(0===i)return this.g_TI?"":0;const e=_(this.g_rR.g_TM(),i);this.g_NJ.g_Ob().g_Ox(t);const r=n[e];let g=0;return t.g_De()&&(g=r.g_C$().g_T_(t.g_TT())),this.g_TB.apply(r.g_LT()[this.g_TX+g].g_LU(),a)}g_T$(a,...t){const n=this.g_NA,r=n.g_Gp(),e=r.length;if(0===e)return this.g_TI?"":0;const d=_(a,e);this.g_NJ.g_Ob().g_Ox(n);const g=r[d];let o=0;return n.g_De()&&(o=g.g_C$().g_T_(n.g_TT())),this.g_TB.apply(g.g_LT()[this.g_TX+o].g_LU(),t)}}class e extends g_bA.g_Tx{constructor(g,_){super(g),this.g_Ua=null,this.g_Ub=_[1]}g_Pn(){this.g_Ua=this.g_zM.g_Dc().g_PD(this.g_Ub,this.g_rR.g_Uc().g_PG()),this.g_Ub=null}g_Ud(){return this.g_Ua}}}{function _(g){const _=self.g_Ue[g];if(!_)throw new Error("invalid expression number");return _}g_bA.g_Uf=class extends g_bA.g_eK{constructor(g,_,e){super(),this.g_rR=g,this.g_BU=e,this.g_kA=_,this.g_bR=null,this.g_Ug=!1,this.g_To=!1}static g_pM(_,a,l){const n=a[0];return g_bA.g_eM([t,r,f,d,e,u,s,t,d,d,i,c,f,p,r,g][n],_,n,l,a)}g_Pn(){}g_TF(){this.g_Ug=!0}g_TJ(g){!this.g_Ug&&g&&(g.g_GH().g_GG()||(this.g_Ug=!0))}g_Uh(){return this.g_Ug}g_Dl(){return this.g_BU}g_Am(){return this.g_rR.g_Am()}g_Uc(){return this.g_rR.g_Uc()}g_QT(){return this.g_To}};class t extends g_bA.g_Uf{constructor(g,a,t,n){super(g,a,t),this.g_Ui=0;const e=n[1];this.g_Uj=e[0],this.g_Uk=[],this.g_Ul=null;for(let _=1,i=e.length;_<i;++_)this.g_Uk.push(g_bA.g_Tx.g_Ty(this,e[_]));this.g_Uk.length?this.g_bR=this.g_Um:(this.g_bR=_(this.g_Uj),this.g_To=!0)}g_Un(g){if(0>g||g>=this.g_Uk.length)throw new RangeError("invalid numbered node");return this.g_Uk[g]}g_Pn(){for(const g of this.g_Uk)g.g_Pn();const g=_(this.g_Uj);this.g_Ul=this.g_Uk.length?g(this):g}g_TM(){return this.g_Ui}g_Um(g){return this.g_Ui=g,this.g_Ul()}}class r extends t{constructor(g,_,e,a){super(g,_,e,a),this.g_bR=this.g_Uo,14===_&&(this.g_Uc().g_Sx(),this.g_rR instanceof g_bA.g_Sq&&this.g_Uc().g_SG())}g_Uo(g){this.g_Ui=g;const _=this.g_Ul();return"string"==typeof _?_:""}g_Up(){return _(this.g_Uj)()}}class u extends t{constructor(g,_,e,a){super(g,_,e,a),this.g_bR=this.g_CN,this.g_To=!1}g_CN(g){this.g_Ui=g;const _=this.g_Ul(),e=this.g_Am().g_SO();return e.g_CN(_)}}class d extends g_bA.g_Uf{constructor(g,_,e,a){super(g,_,e),this.g_Uq=a[1],this.g_bR=this.g_Ur,this.g_To=!0}g_Ur(){return this.g_Uq}}class e extends g_bA.g_Uf{constructor(g,_,a,t){super(g,_,a),this.g_NA=this.g_Am().g_Cz(t[1]),this.g_bR=this.g_C$;const n=this.g_Uc();n.g_Sp(this.g_NA),this.g_rR instanceof g_bA.g_Sq?n.g_SG():n.g_PG()&&n.g_PG().g_SG(),this.g_To=!0}g_C$(){return this.g_NA}}class s extends g_bA.g_Uf{constructor(g,_,e,a){super(g,_,e),this.g_BT=this.g_Am().g_Qj().g_GZ(a[1]),this.g_bR=this.g_Dk,this.g_To=!0}g_Dk(){return this.g_BT}}class g extends g_bA.g_Uf{constructor(g,_,e,a){super(g,_,e),this.g_Jx=this.g_Am().g_No().g_Lw(a[1]),this.g_bR=this.g_JJ,this.g_To=!0}g_JJ(){return this.g_Jx}}class f extends g_bA.g_Uf{constructor(g,_,e,a){super(g,_,e),this.g_Us=a[1],this.g_bR=this.g_Ut,this.g_To=!0}g_Ut(){return this.g_Us}}class i extends g_bA.g_Uf{constructor(g,_,a,t){super(g,_,a),this.g_Uu=t[1];const n=this.g_rR.g_C$();n&&n.g_De()?(this.g_bR=this.g_Uv,this.g_TF()):(this.g_bR=this.g_Uw,this.g_To=!0)}g_Uw(){return this.g_Uu}g_Uv(g){g=g||0;const _=this.g_rR.g_C$(),t=_.g_ND(),n=t.g_Gp();let i=null;if(n.length)i=n[g%n.length].g_C$();else if(t.g_NQ()){const _=t.g_NR();i=_[g%_.length].g_C$()}else if(0<_.g_Dj()){const e=_.g_Gp();i=e[g%e.length].g_C$()}else return 0;return this.g_Uu+i.g_TS(_.g_TT())}}class c extends g_bA.g_Uf{constructor(g,_,e,a){super(g,_,e),this.g_Ub=a[1],this.g_Ua=null,this.g_bR=this.g_Ux,this.g_To=!0}g_Pn(){this.g_Ua=this.g_Am().g_Dc().g_PD(this.g_Ub,this.g_Uc().g_PG()),this.g_Ub=null}g_Ux(){return this.g_Ua}}class p extends g_bA.g_Uf{constructor(g,_,e,t){super(g,_,e),this.g_Uy=[],this.g_Uz=[],this.g_To=!0;for(let n=1,a=t.length;n<a;++n){const g=g_bA.g_Uf.g_pM(this.g_rR,t[n],0);this.g_Uy.push(g),this.g_Uz.push(0),g.g_QT()||(this.g_To=!1)}this.g_bR=this.g_UA}g_Pn(){for(const g of this.g_Uy)g.g_Pn()}g_UA(){const g=this.g_Uy,_=this.g_Uz;for(let e=0,a=g.length;e<a;++e)_[e]=g[e].g_bR(0);return _}}}{function g(g,_){for(let e=0,a=g.length;e<a;++e)_[e]=g[e].g_bR(0)}g_bA.g_So=class extends g_bA.g_eK{constructor(g,_,e){if(super(),this.g_UB=g,this.g_zM=g.g_Am(),this.g_BU=e,this.g_TB=this.g_zM.g_TC(_[1]),this.g_UC=0<_[3],this.g_UD=2===_[3],this.g_UE=!!_[4],this.g_UF=!!_[5],this.g_ow=!!_[6],this.g_BV=_[7],this.g_UG=this.g_UB.g_N$(),this.g_NA=null,this.g_TV=null,this.g_TX=-1,this.g_Tz=null,this.g_tl=null,this.g_Qb=null,this.g_bM=[],this.g_UH=[],this.g_UI=!1,this.g_UJ=null,this.g_UK=null,this.g_Sg=this.g_zM.g_Rf()?{g_Sh:_[8][0],g_UL:_[8][1]}:null,-1===_[0]?this.g_Tz=this.g_zM.g_TA():(this.g_NA=this.g_zM.g_Cz(_[0]),_[2]&&(this.g_TV=this.g_NA.g_TW(_[2]),this.g_TX=this.g_NA.g_TY(_[2])),this.g_UB.g_PG()&&this.g_UB.g_PG().g_SG()),10===_.length){let g=_[9];for(let _ of g)this.g_bM.push(g_bA.g_Uf.g_pM(this,_,this.g_bM.length)),this.g_UH.push(0)}this.g_UB.g_Dc().g_Pr(this)}static g_pM(g,_,e){return g_bA.g_eM(g_bA.g_So,g,_,e)}g_eN(){}g_Pn(){for(const g of this.g_bM)g.g_Pn(),g.g_Uh()&&(this.g_UI=!0);this.g_UD?(this.g_tl=this.g_UM,this.g_Qb=this.g_UN):this.g_Tz?(this.g_UO(),this.g_Qb=this.g_UP):this.g_NA.g_GH().g_GG()?(this.g_UQ(),this.g_Qb=this.g_UR):this.g_ow?(this.g_tl=this.g_US,this.g_Qb=this.g_UT):(this.g_tl=this.g_UU,this.g_Qb=this.g_UV)}g_UO(){const g=this.g_Tz,_=this.g_Tz;this.g_UW(g,_,this.g_UX)}g_UQ(){const g=this.g_NA.g_GH(),_=this.g_NA.g_TK().g_LU();this.g_UW(g,_,this.g_UY)}g_UW(_,a,g){const t=this.g_TB,n=this.g_UF,e=this.g_bM;if(0===e.length){const g=_.g_TH(t,a);this.g_tl=n?function(){return g_bA.g_gj(g(),n)}:g}else if(1===e.length){const g=e[0];if(!n&&g.g_QT())this.g_tl=_.g_UZ(t,a,g.g_bR(0));else{const e=_.g_TH(t,a);this.g_tl=function(){return g_bA.g_gj(e(g.g_bR(0)),n)}}}else if(2===e.length){const i=e[0],r=e[1];if(!n&&i.g_QT()&&r.g_QT())this.g_tl=_.g_U_(t,a,i.g_bR(0),r.g_bR(0));else{const g=_.g_TH(t,a);this.g_tl=function(){return g_bA.g_gj(g(i.g_bR(0),r.g_bR(0)),n)}}}else if(3===e.length){const i=e[0],r=e[1],g=e[2];if(!n&&i.g_QT()&&r.g_QT()&&g.g_QT())this.g_tl=_.g_U$(t,a,i.g_bR(0),r.g_bR(0),g.g_bR(0));else{const e=_.g_TH(t,a);this.g_tl=function(){return g_bA.g_gj(e(i.g_bR(0),r.g_bR(0),g.g_bR(0)),n)}}}else this.g_tl=g}g_Dm(){return this.g_BV}g_Rp(){return this.g_TB}g_C$(){return this.g_NA}g_Uc(){return this.g_UB}g_Am(){return this.g_zM}g_Dl(){return this.g_BU}g_Rm(){return this.g_UC}g_Rq(){return this.g_UD}g_Va(){return this.g_UF}g_SU(){return this.g_UE}g_Vb(){return this.g_Sg.g_Sh}g_Vc(g){this.g_Sg.g_Sh=!!g,this.g_UB.g_SE()}g_Vd(){return this.g_Sg.g_UL}g_RE(){return!this.g_Vb()&&!this.g_zM.g_Tc()&&!this.g_Vd()}g_Ve(){return this.g_UJ||(this.g_UJ=new Map),this.g_UJ}g_Vf(){return this.g_UK||(this.g_UK=new Map),this.g_UK}g_UX(){const _=this.g_UH;return g(this.g_bM,_),g_bA.g_gj(this.g_TB.apply(this.g_Tz,_),this.g_UF)}*g_UP(){if((this.g_Vb()||this.g_zM.g_Tc())&&(yield this),this.g_Vd()){const _=this.g_UH;g(this.g_bM,_);let e=this.g_TB.apply(this.g_Tz,_);return g_bA.g_gS(e)&&(e=yield*e),g_bA.g_gj(e,this.g_UF)}return this.g_tl()}g_UY(){const _=this.g_UH;g(this.g_bM,_);const e=this.g_NA.g_TK().g_LU();return g_bA.g_gj(this.g_TB.apply(e,_),this.g_UF)}*g_UR(){if((this.g_Vb()||this.g_zM.g_Tc())&&(yield this),this.g_Vd()){const _=this.g_UH;g(this.g_bM,_);const e=this.g_NA.g_TK().g_LU();let a=this.g_TB.apply(e,_);return g_bA.g_gS(a)&&(a=yield*a),g_bA.g_gj(a,this.g_UF)}return this.g_tl()}g_UM(){return!0}*g_UN(){return(this.g_Vb()||this.g_zM.g_Tc())&&(yield this),!0}g_US(){const _=this.g_UH;g(this.g_bM,_);const e=this.g_TB.apply(this.g_TV||this.g_NA,_);return this.g_NA.g_Vg(),e}*g_UT(){if((this.g_Vb()||this.g_zM.g_Tc())&&(yield this),this.g_Vd()){const _=this.g_UH;g(this.g_bM,_);let e=this.g_TB.apply(this.g_TV||this.g_NA,_);return g_bA.g_gS(e)&&(e=yield*e),this.g_NA.g_Vg(),e}return this.g_tl()}g_UU(){const g=this.g_bM,_=this.g_UH,e=this.g_NA.g_ND();for(let e=0,a=g.length;e<a;++e){const a=g[e];a.g_Uh()||(_[e]=a.g_bR(0))}return e.g_NO()?this.g_Vh(e):this.g_Vi(e)}*g_UV(){return(this.g_Vb()||this.g_zM.g_Tc())&&(yield this),this.g_UU()}g_Vj(g){const _=this.g_bM,a=this.g_UH;for(let t=0,n=_.length;t<n;++t){const n=_[t];n.g_Uh()&&(a[t]=n.g_bR(g))}}g_Vh(_){const a=this.g_NA,t=a.g_De(),n=a.g_TT(),r=this.g_TX,e=a.g_Gp(),d=this.g_UI,g=this.g_UH,o=this.g_TB,u=this.g_UF,s=this.g_UG&&!this.g_UC;_.g_NN();for(let a=0,l=e.length;a<l;++a){const l=e[a];d&&this.g_Vj(a);let i;if(0<=r){const _=t?l.g_C$().g_T_(n):0;i=o.apply(l.g_LT()[r+_].g_LU(),g)}else i=o.apply(l.g_LU(),g);g_bA.g_gj(i,u)?_.g_NT(l):s&&_.g_NU(l)}return a.g_Vk(!0),_.g_NV(!1),a.g_Vg(),_.g_NP()}g_Vi(_){const a=this.g_NA,t=a.g_De(),u=a.g_TT(),d=a.g_Di(),e=this.g_TX,s=this.g_UI,g=this.g_UH,f=this.g_TB,c=this.g_UF,l=this.g_UG&&!this.g_UC,h=_.g_NW(),n=_.g_NX(),o=l&&!this.g_UB.g_SP(this),p=o?n:h;let M=0,m=!1;for(let r=0,a=p.length;r<a;++r){const _=p[r];s&&this.g_Vj(r);let a;if(0<=e){const n=t?_.g_C$().g_T_(u):0;a=f.apply(_.g_LT()[e+n].g_LU(),g)}else a=f.apply(_.g_LU(),g);g_bA.g_gj(a,c)?(m=!0,o?(h.push(_),d&&_.g_Vl()):(p[M]=_,d&&_.g_Vm(M),++M)):o?(p[M]=_,d&&_.g_Vn(M),++M):l&&(n.push(_),d&&_.g_Vo())}g_bA.g_fU(p,M),d&&a.g_Vp(o,M);const N=m;return o&&!m&&(m=this.g_Vq(h)),a.g_Vk(N||l),l?m:_.g_NP()}g_Vq(_){const a=this.g_NA,t=a.g_De(),n=a.g_TT(),r=this.g_UI,e=this.g_TX,d=this.g_UH,g=this.g_TB,o=this.g_UF;for(let a=0,u=_.length;a<u;++a){const u=_[a];r&&this.g_Vj(a);let i;if(0<=e){const _=t?u.g_C$().g_T_(n):0;i=g.apply(u.g_LT()[e+_].g_LU(),d)}else i=g.apply(u.g_LU(),d);if(g_bA.g_gj(i,o))return!0}return!1}g_Vr(g,_){return this.g_bM[g].g_bR(_)}g_Rr(){const g=this.g_bM;if(!g.length)throw new Error("no parameters");return g[0].g_Up()}g_Fd(){if(!this.g_UJ||!this.g_UJ.size)return null;const g={};for(const[_,e]of this.g_UJ.entries()){let a=e;"collmemory"===_&&(a=[...e.entries()].map(g=>[g[0].g_CJ(),g[1].g_CJ(),g[2]])),g[_]=a}return{ex:g}}g_Ff(g){const _=this.g_zM,t=g.ex;if(t){const g=this.g_Ve();g.clear();for(const[a,n]of Object.entries(t)){let e=n;"collmemory"===a&&(e=g_bA.g_eM(g_bA.g_jA,n.map(g=>[_.g_JP(g[0]),_.g_JP(g[1]),g[2]]).filter(g=>g[0]&&g[1]))),g.set(a,e)}}else this.g_UJ&&(this.g_UJ.clear(),this.g_UJ=null)}}}{function g(g,_){for(let e=0,a=g.length;e<a;++e)_[e]=g[e].g_bR(0)}g_bA.g_Sq=class extends g_bA.g_eK{constructor(g,_,e){if(super(),this.g_UB=g,this.g_zM=g.g_Am(),this.g_BU=e,this.g_BV=_[3],this.g_TB=this.g_zM.g_TC(_[1]),this.g_NA=null,this.g_TV=null,this.g_TX=-1,this.g_Tz=null,this.g_tl=null,this.g_Qb=null,this.g_bM=[],this.g_UH=[],this.g_UI=!1,this.g_UJ=null,this.g_UK=null,this.g_Sg=this.g_zM.g_Rf()?{g_Sh:_[4][0],g_UL:_[4][1]}:null,-1===_[0]?this.g_Tz=this.g_zM.g_TA():(this.g_NA=this.g_zM.g_Cz(_[0]),_[2]&&(this.g_TV=this.g_NA.g_TW(_[2]),this.g_TX=this.g_NA.g_TY(_[2]))),6===_.length){const g=_[5];for(const _ of g)this.g_bM.push(g_bA.g_Uf.g_pM(this,_,this.g_bM.length)),this.g_UH.push(0)}this.g_UB.g_Dc().g_Ps(this)}static g_pM(g,_,e){return g_bA.g_eM(g_bA.g_Sq,g,_,e)}g_eN(){}g_Pn(){for(const g of this.g_bM)g.g_Pn(),g.g_Uh()&&(this.g_UI=!0);this.g_Tz?(this.g_UO(),this.g_Qb=this.g_UP):this.g_TV?(this.g_tl=this.g_Vs,this.g_Qb=this.g_Vt):this.g_NA.g_GH().g_GG()?(this.g_UQ(),this.g_Qb=this.g_UR):this.g_bM.length?this.g_bM.every(g=>g.g_Uh())?(this.g_tl=this.g_Vu,this.g_Qb=this.g_Vv):this.g_UI?(this.g_tl=this.g_Vw,this.g_Qb=this.g_Vx):this.g_bM.every(g=>g.g_QT())?(g(this.g_bM,this.g_UH),this.g_tl=this.g_Vy,this.g_Qb=this.g_Vz):(this.g_tl=this.g_VA,this.g_Qb=this.g_VB):(this.g_tl=this.g_Vy,this.g_Qb=this.g_Vz)}g_UO(){const g=this.g_Tz,_=this.g_Tz;this.g_UW(g,_,this.g_UX)}g_UQ(){const g=this.g_NA.g_GH(),_=this.g_NA.g_TK().g_LU();this.g_UW(g,_,this.g_UY)}g_UW(_,a,g){const t=this.g_TB,n=this.g_bM;if(0===n.length)this.g_tl=_.g_TH(t,a);else if(1===n.length){const g=n[0];if(g.g_QT())this.g_tl=_.g_UZ(t,a,g.g_bR(0));else{const n=_.g_TH(t,a);this.g_tl=function(){return n(g.g_bR(0))}}}else if(2===n.length){const g=n[0],i=n[1];if(g.g_QT()&&i.g_QT())this.g_tl=_.g_U_(t,a,g.g_bR(0),i.g_bR(0));else{const n=_.g_TH(t,a);this.g_tl=function(){return n(g.g_bR(0),i.g_bR(0))}}}else if(3===n.length){const i=n[0],r=n[1],d=n[2];if(i.g_QT()&&r.g_QT()&&d.g_QT())this.g_tl=_.g_U$(t,a,i.g_bR(0),r.g_bR(0),d.g_bR(0));else{const g=_.g_TH(t,a);this.g_tl=function(){return g(i.g_bR(0),r.g_bR(0),d.g_bR(0))}}}else this.g_tl=g}g_Dm(){return this.g_BV}g_C$(){return this.g_NA}g_Uc(){return this.g_UB}g_Am(){return this.g_zM}g_Dl(){return this.g_BU}g_Vb(){return this.g_Sg.g_Sh}g_Vc(g){this.g_Sg.g_Sh=!!g,this.g_UB.g_SE()}g_Vd(){return this.g_Sg.g_UL}g_RE(){return!this.g_Vb()&&!this.g_zM.g_Tc()&&!this.g_Vd()}g_Ve(){return this.g_UJ||(this.g_UJ=new Map),this.g_UJ}g_Vf(){return this.g_UK||(this.g_UK=new Map),this.g_UK}g_UX(){const _=this.g_UH;return g(this.g_bM,_),this.g_TB.apply(this.g_Tz,_)}*g_UP(){if((this.g_Vb()||this.g_zM.g_Tc())&&(yield this),this.g_Vd()){const _=this.g_UH;g(this.g_bM,_);const e=yield*this.g_TB.apply(this.g_Tz,_);return e}return this.g_tl()}g_UY(){const _=this.g_UH;return g(this.g_bM,_),this.g_TB.apply(this.g_NA.g_TK().g_LU(),_)}*g_UR(){if((this.g_Vb()||this.g_zM.g_Tc())&&(yield this),this.g_Vd()){const _=this.g_UH;g(this.g_bM,_);const e=yield*this.g_TB.apply(this.g_NA.g_TK().g_LU(),_);return e}return this.g_tl()}g_Vy(){const g=this.g_UH,_=this.g_NA.g_ND().g_Gp();for(let e=0,a=_.length;e<a;++e)this.g_TB.apply(_[e].g_LU(),g);return!1}*g_Vz(){if((this.g_Vb()||this.g_zM.g_Tc())&&(yield this),this.g_Vd()){const g=this.g_UH,_=this.g_NA.g_ND().g_Gp();for(let e=0,a=_.length;e<a;++e)yield*this.g_TB.apply(_[e].g_LU(),g);return!1}return this.g_Vy()}g_VA(){const _=this.g_UH;g(this.g_bM,_);const e=this.g_NA.g_ND().g_Gp();for(let g=0,a=e.length;g<a;++g)this.g_TB.apply(e[g].g_LU(),_);return!1}*g_VB(){if((this.g_Vb()||this.g_zM.g_Tc())&&(yield this),this.g_Vd()){const _=this.g_UH;g(this.g_bM,_);const e=this.g_NA.g_ND().g_Gp();for(let g=0,a=e.length;g<a;++g)yield*this.g_TB.apply(e[g].g_LU(),_);return!1}return this.g_VA()}g_Vu(){const g=this.g_bM,_=this.g_UH,a=this.g_TB,t=this.g_NA.g_ND().g_Gp();for(let n=0,e=t.length;n<e;++n){const e=t[n];for(let e=0,a=g.length;e<a;++e)_[e]=g[e].g_bR(n);a.apply(e.g_LU(),_)}return!1}*g_Vv(){if((this.g_Vb()||this.g_zM.g_Tc())&&(yield this),this.g_Vd()){const g=this.g_bM,_=this.g_UH,a=this.g_TB,t=this.g_NA.g_ND().g_Gp();for(let n=0,e=t.length;n<e;++n){const e=t[n];for(let e=0,a=g.length;e<a;++e)_[e]=g[e].g_bR(n);yield*a.apply(e.g_LU(),_)}return!1}return this.g_Vu()}g_Vw(){const g=this.g_bM,_=this.g_UH,a=this.g_TB,t=this.g_NA.g_ND().g_Gp();for(let e=0,a=g.length;e<a;++e){const a=g[e];a.g_Uh()||(_[e]=a.g_bR(0))}for(let n=0,e=t.length;n<e;++n){const e=t[n];for(let e=0,a=g.length;e<a;++e){const a=g[e];a.g_Uh()&&(_[e]=a.g_bR(n))}a.apply(e.g_LU(),_)}return!1}*g_Vx(){if((this.g_Vb()||this.g_zM.g_Tc())&&(yield this),this.g_Vd()){const g=this.g_bM,_=this.g_UH,a=this.g_TB,t=this.g_NA.g_ND().g_Gp();for(let e=0,a=g.length;e<a;++e){const a=g[e];a.g_Uh()||(_[e]=a.g_bR(0))}for(let n=0,e=t.length;n<e;++n){const e=t[n];for(let e=0,a=g.length;e<a;++e){const a=g[e];a.g_Uh()&&(_[e]=a.g_bR(n))}yield*a.apply(e.g_LU(),_)}return!1}return this.g_Vw()}g_Vs(){const _=this.g_NA,t=_.g_De(),n=_.g_TT(),i=this.g_bM,r=this.g_UI,e=this.g_UH,d=this.g_TB,g=this.g_TX,o=_.g_ND().g_Gp();for(let g=0,_=i.length;g<_;++g){const _=i[g];_.g_Uh()||(e[g]=_.g_bR(0))}for(let _=0,a=o.length;_<a;++_){const a=o[_];if(r)for(let g=0,a=i.length;g<a;++g){const a=i[g];a.g_Uh()&&(e[g]=a.g_bR(_))}const u=t?a.g_C$().g_T_(n):0;d.apply(a.g_LT()[g+u].g_LU(),e)}return!1}*g_Vt(){if((this.g_Vb()||this.g_zM.g_Tc())&&(yield this),this.g_Vd()){const _=this.g_NA,t=_.g_De(),n=_.g_TT(),i=this.g_bM,r=this.g_UI,e=this.g_UH,d=this.g_TB,g=this.g_TX,o=_.g_ND().g_Gp();for(let g=0,_=i.length;g<_;++g){const _=i[g];_.g_Uh()||(e[g]=_.g_bR(0))}for(let _=0,a=o.length;_<a;++_){const a=o[_];if(r)for(let g=0,a=i.length;g<a;++g){const a=i[g];a.g_Uh()&&(e[g]=a.g_bR(_))}const u=t?a.g_C$().g_T_(n):0;yield*d.apply(a.g_LT()[g+u].g_LU(),e)}return!1}return this.g_Vs()}g_Fd(){return this.g_UJ&&this.g_UJ.size?{ex:g_bA.g_gP(this.g_UJ)}:null}g_Ff(g){this.g_UJ&&(this.g_UJ.clear(),this.g_UJ=null);const _=g.ex;_&&(this.g_UJ=g_bA.g_gQ(_))}}}{function gg(g,_){return g_bA.g_gk(this.g_Bv().g_Gw(),g,_)}function a(g,_){return g_bA.g_gk(this.g_Bv().g_Gx(),g,_)}function b(){const g=this.g_Bv();return g.g_Ex(g.g_CN().g_Du())}function c(){const g=this.g_Bv(),_=g.g_Dk(),e=g.g_EI();return 0>e.g_ij()||0>e.g_ik()||e.g_ih()>_.g_oX()||e.g_ii()>_.g_oY()}function d(_,a,t){const n=this.g_ND(),r=n.g_Gp();if(!r.length)return!1;let e=r[0],o=e.g_Bv(),u=e,s=g_bA.g_eV(o.g_Gw(),o.g_Gx(),a,t);for(let g=1,n=r.length;g<n;++g){e=r[g],o=e.g_Bv();const n=g_bA.g_eV(o.g_Gw(),o.g_Gx(),a,t);(0===_&&n<s||1===_&&n>s)&&(s=n,u=e)}return n.g_N_(u),!0}function e(g){const _=this.g_Bv();_.g_Gw()===g||(_.g_VC(g),_.g_CO())}function f(g){const _=this.g_Bv();_.g_Gx()===g||(_.g_VD(g),_.g_CO())}function g(g,_){const e=this.g_Bv();e.g_VE(g,_)||(e.g_VF(g,_),e.g_CO())}function h(g,_){if(g){const t=g.g_VG(this.g_VH);if(t){const[g,a]=t.g_VI(_),n=this.g_Bv();n.g_Gw()===g&&n.g_Gx()===a||(n.g_VF(g,a),n.g_CO())}}}function i(g){if(0!==g){const _=this.g_Bv();_.g_VJ(_.g_VK()*g,_.g_VL()*g),_.g_CO()}}function j(g,_){if(0!==_){const e=this.g_Bv();g=g_bA.g_eS(g),e.g_VJ(Math.cos(g)*_,Math.sin(g)*_),e.g_CO()}}function k(){return this.g_Bv().g_Gw()}function l(){return this.g_Bv().g_Gx()}function m(){return this.g_zM.g_Lz(this.g_VH)}function n(g,_){return g_bA.g_gk(this.g_Bv().g_oX(),g,_)}function o(g,_){return g_bA.g_gk(this.g_Bv().g_oY(),g,_)}function p(g){const _=this.g_Bv();_.g_oX()===g||(_.g_FD(g),_.g_CO())}function q(g){const _=this.g_Bv();_.g_oY()===g||(_.g_FE(g),_.g_CO())}function r(g,_){const e=this.g_Bv();e.g_oX()===g&&e.g_oY()===_||(e.g_uD(g,_),e.g_CO())}function s(){return this.g_Bv().g_oX()}function t(){return this.g_Bv().g_oY()}function u(){return this.g_Bv().g_EI().g_ih()}function v(){return this.g_Bv().g_EI().g_ii()}function w(){return this.g_Bv().g_EI().g_ij()}function x(){return this.g_Bv().g_EI().g_ik()}function y(g,_){return g_bA.g_eX(this.g_Bv().g_DJ(),g_bA.g_eS(_))<=g_bA.g_eS(g)}function z(g){return g_bA.g_eZ(this.g_Bv().g_DJ(),g_bA.g_eS(g))}function A(g,_){const a=g_bA.g_eS(g),t=g_bA.g_eS(_),n=this.g_Bv().g_DJ(),e=!g_bA.g_eZ(t,a);return e?g_bA.g_eZ(n,a)||!g_bA.g_eZ(n,t):g_bA.g_eZ(n,a)&&!g_bA.g_eZ(n,t)}function B(g){const _=this.g_Bv(),e=g_bA.g_eR(g_bA.g_eS(g));isNaN(e)||_.g_DJ()===e||(_.g_DI(e),_.g_CO())}function C(g){if(!(isNaN(g)||0===g)){const _=this.g_Bv();_.g_DI(_.g_DJ()+g_bA.g_eS(g)),_.g_CO()}}function D(g){if(!(isNaN(g)||0===g)){const _=this.g_Bv();_.g_DI(_.g_DJ()-g_bA.g_eS(g)),_.g_CO()}}function E(g,_){const t=this.g_Bv(),n=t.g_DJ(),e=g_bA.g_eY(n,g_bA.g_eS(_),g_bA.g_eS(g));isNaN(e)||n===e||(t.g_DI(e),t.g_CO())}function F(_,t,n){const r=this.g_Bv(),e=r.g_DJ(),d=t-r.g_Gw(),a=n-r.g_Gx(),g=Math.atan2(a,d),o=g_bA.g_eY(e,g,g_bA.g_eS(_));isNaN(o)||e===o||(r.g_DI(o),r.g_CO())}function G(_,t){const n=this.g_Bv(),i=n.g_DJ(),e=_-n.g_Gw(),a=t-n.g_Gx(),r=Math.atan2(a,e);isNaN(r)||i===r||(n.g_DI(r),n.g_CO())}function H(){return g_bA.g_eT(this.g_Bv().g_DJ())}function I(g,_){return g_bA.g_gk(g_bA.g_fi(100*this.g_Bv().g_xN()),g,_)}function J(){return this.g_Bv().g_Dr()}function K(g){const _=this.g_Bv();g=2===g?!_.g_Dr():0!=g,_.g_Dr()===g||(_.g_Ds(g),this.g_zM.g_Dt())}function L(g){const _=g_bA.g_eQ(g/100,0,1),e=this.g_Bv();e.g_xN()===_||(e.g_xP(_),this.g_zM.g_Dt())}function M(g){Lg.g_hr(g);const _=this.g_Bv();_.g_MD().g_hl(Lg)||(_.g_VM(Lg),this.g_zM.g_Dt())}function N(){return g_bA.g_fi(100*this.g_Bv().g_xN())}function O(g){return!!g&&this.g_Bv().g_CN()===g}function P(_){const g=this.g_ND(),a=g.g_Gp();if(!a.length)return!1;let t=a[0],n=t;for(let e=1,g=a.length;e<g;++e){const t=a[e],r=t.g_Bv(),d=n.g_Bv(),g=r.g_CN().g_Dl(),o=d.g_CN().g_Dl();0===_?(g>o||g===o&&r.g_DZ()>d.g_DZ())&&(n=t):(g<o||g===o&&r.g_DZ()<d.g_DZ())&&(n=t)}return g.g_N_(n),!0}function Q(g,_,a){const t=this.g_Bv(),n=0===g?t.g_BR():t.g_Hn();return g_bA.g_gk(n,_,a)}function R(){const g=this.g_JL(),_=this.g_Bv().g_CN(),e=_.g_DM();e.length&&e[e.length-1]===g||(_.g_CR(g,!1),_.g_CM(g,!1),this.g_zM.g_Dt())}function S(){const g=this.g_JL(),_=this.g_Bv().g_CN(),e=_.g_DM();e.length&&e[0]===g||(_.g_CR(g,!1),_.g_CQ(g,!1),this.g_zM.g_Dt())}function T(g){const _=this.g_JL(),e=this.g_Bv();g&&g!==e.g_CN()&&(e.g_CN().g_CR(_,!0),e.g_Gq(g),g.g_CM(_,!0),this.g_zM.g_Dt())}function U(g,_){const a=this.g_JL();if(_){const t=_.g_VN(a);if(t&&t.g_CJ()!==a.g_CJ()){const _=a.g_Bv(),n=t.g_Bv();_.g_CN().g_Dl()!==n.g_CN().g_Dl()&&(_.g_CN().g_CR(a,!0),_.g_Gq(n.g_CN()),n.g_CN().g_CM(a,!0)),_.g_CN().g_DY(a,t,0===g),this.g_zM.g_Dt()}}}function V(g){const _=this.g_Bv();_.g_BR()===g||(_.g_DH(g),this.g_zM.g_Dt())}function W(){return this.g_Bv().g_CN().g_Dl()}function X(){return this.g_Bv().g_CN().g_q_()}function Y(){return this.g_Bv().g_DZ()}function Z(){return this.g_Bv().g_BR()}function $(){return this.g_Bv().g_Hn()}function _(g,_){const a=this.g_C$().g_Dn().g_LX(_);if(a){const _=a.g_Dl(),t=1===g,n=this.g_Bv().g_ED();n.g_LY()===t||(n.g_VO(_,t),n.g_VP(),this.g_zM.g_Dt())}}function _g(g,_,e){const t=this.g_C$().g_Dn().g_LX(g);if(t){const n=t.g_Dl(),a=this.g_Bv().g_ED(),i=a.g_EH(n);if(_=Math.floor(_),!(0>_||_>=i.length)){const r=t.g_ra().g_rl(_);if("color"===r){Lg.g_hr(e);const g=i[_];if(Lg.g_hl(g))return;g.g_he(Lg)}else{if("percent"===r&&(e/=100),i[_]===e)return;i[_]=e}a.g_LY(n)&&this.g_zM.g_Dt()}}}function eg(g,_,e){return g_bA.g_gk(this.g_JL().g_Mz(g),_,e)}function ag(g){return!!this.g_JL().g_Mz(g)}function tg(_,a){const t=this.g_ND(),n=t.g_Gp();if(!n.length)return!1;let i=n[0],r=i,d=i.g_Mz(a);for(let g=1,e=n.length;g<e;++g){i=n[g];const e=i.g_Mz(a);(0===_&&e<d||1===_&&e>d)&&(d=e,r=i)}return t.g_N_(r),!0}function ng(g){return this.g_zM.g_Px().g_Va()?rg(this,g):ig(this,g)}function ig(g,_){const e=g.g_Am().g_JP(_);if(!e)return!1;const a=g.g_ND();if(!a.g_NO()&&!a.g_NW().includes(e))return!1;if(g.g_De()){if(e.g_C$().g_VQ(g))return a.g_N_(e),g.g_Vg(),!0;}else if(e.g_C$()===g)return a.g_N_(e),g.g_Vg(),!0;return!1}function rg(g,_){const t=g.g_ND();if(t.g_NO()){t.g_NV(!1),t.g_NN();const n=g.g_Gp();for(let g=0,a=n.length;g<a;++g){const a=n[g];a.g_CJ()===_?t.g_NU(a):t.g_NT(a)}return g.g_Vg(),!!t.g_NW().length}else{const n=t.g_NW();let i=0;for(let g=0,e=n.length;g<e;++g){const e=n[g];n[i]=e,e.g_CJ()===_?t.g_NU(e):++i}return g_bA.g_fU(n,i),g.g_Vg(),!!n.length}}function dg(){this.g_zM.g_Da(this.g_VH)}function og(){return!0}function ug(){return!0}function sg(g,_){this.g_JL().g_MA(g,_)}function lg(g,_){const e=this.g_JL(),a=e.g_Mz(g);"number"==typeof a&&"number"!=typeof _?_=parseFloat(_):"string"==typeof a&&"string"!=typeof _&&(_=_.toString()),e.g_MA(g,a+_)}function fg(g,_){const e=this.g_JL(),a=e.g_Mz(g);"number"!=typeof a||("number"!=typeof _&&(_=parseFloat(_)),e.g_MA(g,a-_))}function cg(g,_){this.g_JL().g_MA(g,_?1:0)}function pg(g){const _=this.g_JL();_.g_MA(g,0===_.g_Mz(g)?1:0)}function hg(g){let _;try{_=JSON.parse(g)}catch(g){return void console.error("Failed to load from JSON string: ",g)}this.g_JL().g_Fg(_,!0)}function Mg(){return JSON.stringify(this.g_JL().g_Fe(!0))}function mg(){return this.g_JL().g_C$().g_q_()}function Ng(){const g=this.g_zM.g_Pw().g_Oy();let _=g.g_Dj();const e=this.g_zM.g_VR();for(const a of e)g.g_De()?a.g_C$().g_VQ(g)&&++_:a.g_C$()===g&&++_;return _}function bg(){return this.g_zM.g_Pw().g_Oy().g_ND().g_Gp().length}function vg(){return this.g_VH.g_Gt()}function Tg(){return this.g_VH.g_CJ()}const Lg=new g_bA.g_gT;g_bA.g_VS=function(ig,rg){const Lg=ig[1],wg=ig[3],zg=ig[4],Dg=ig[5],Og=ig[6],yg=ig[7],Eg=ig[8],Cg=rg.g_Gk,Ag=rg.g_VT,xg=rg.g_TD;wg&&(Cg.g_VU=gg,Cg.g_VV=a,Cg.g_VW=b,Cg.g_VX=c,Cg.g_VY=d,Ag.g_VC=e,Ag.g_VD=f,Ag.g_VZ=g,Ag.g_V_=h,Ag.g_V$=i,Ag.g_Wa=j,xg.g_Wb=k,xg.g_Wc=l,xg.g_Wd=m),zg&&(Cg.g_We=n,Cg.g_Wf=o,Ag.g_FD=p,Ag.g_FE=q,Ag.g_uD=r,xg.g_Wg=s,xg.g_Wh=t,xg.g_Wi=u,xg.g_Wj=v,xg.g_Wk=w,xg.g_Wl=x),Dg&&(Cg.g_Wm=y,Cg.g_Wn=z,Cg.g_Wo=A,Ag.g_DI=B,Ag.g_Wp=C,Ag.g_Wq=D,Ag.g_Wr=E,Ag.g_Ws=F,Ag.g_Wt=G,xg.g_Wu=H),Og&&(Cg.g_Dr=J,Cg.g_Wv=I,Ag.g_Ds=K,Ag.g_xP=L,Ag.g_Ww=M,xg.g_Wx=N),yg&&(Cg.g_Wy=O,Cg.g_Wz=P,Cg.g_WA=Q,Ag.g_WB=R,Ag.g_WC=S,Ag.g_WD=T,Ag.g_WE=U,Ag.g_DH=V,xg.g_WF=W,xg.g_WG=X,xg.g_WH=Y,xg.g_WI=Z,xg.g_WJ=$),Eg&&(Ag.g_WK=_,Ag.g_WL=_g),Lg||(Cg.g_WM=eg,Cg.g_WN=ag,Cg.g_WO=tg,Cg.g_WP=ng,Ag.g_WQ=sg,Ag.g_WR=lg,Ag.g_WS=fg,Ag.g_WT=cg,Ag.g_WU=pg,Cg.g_WV=og,Cg.g_WW=ug,Ag.g_WX=dg,!Ag.g_WY&&(Ag.g_WY=hg),!xg.g_WZ&&(xg.g_WZ=Mg),xg.g_W_=Ng,xg.g_W$=bg,xg.g_Xa=vg,xg.g_Xb=Tg,xg.g_Xc=mg)}}"use strict",g_bA.g_Qx=class extends g_bA.g_eK{constructor(g){super(),this.g_Od=g,this.g_J$=-1,this.g_Xd="",this.g_Xe=!1,this.g_Xf=null,this.g_Oi=0,this.g_RP=[],this.g_Xg=new Map,this.g_Xh=!1}g_eN(){this.g_J$=-1,this.g_Xd="",this.g_Xf=null,g_bA.g_fV(this.g_RP);for(const g of this.g_Xg.values())g.g_eN();this.g_Xg.clear()}g_Xi(){const g=this.g_Od,_=g.g_Am().g_Dd(),e=g.g_Pw();this.g_Xf=e.g_Oa(),this.g_Oi=e.g_Or()+1;for(const g of _){const _=g.g_ND();_.g_NO()&&!this.g_Xf.g_SH(g)||(this.g_RP.push(g),this.g_Xg.set(g,g_bA.g_eM(g_bA.g_Xj,_)))}}g_Xk(g){this.g_Xi(),this.g_J$=this.g_Od.g_Am().g_EK()+g}g_Xl(g){this.g_Xi(),this.g_Xd=g.toLowerCase()}g_Xm(){return-1<this.g_J$}g_Xn(){return-1===this.g_J$}g_Xo(){return this.g_Xd}g_Xp(){return this.g_Xe}g_Xq(){this.g_Xe=!0}g_QA(){if(this.g_Xn()){if(!this.g_Xp())return!1;}else if(this.g_J$>this.g_Od.g_Am().g_EK())return!1;return!0}g_QB(g){g.g_Om(this.g_Xf,this.g_Oi);for(const[_,e]of this.g_Xg.entries()){const g=_.g_ND();e.g_Om(g)}this.g_Xf.g_Tf(g),this.g_Od.g_Qr(this.g_RP),this.g_Xh=!0}async g_QF(g){g.g_Om(this.g_Xf,this.g_Oi);for(const[_,e]of this.g_Xg.entries()){const g=_.g_ND();e.g_Om(g)}for(const _ of this.g_Xf.g_Tg(g))await this.g_Od.g_Am().g_Qa(_);this.g_Od.g_Qr(this.g_RP),this.g_Xh=!0}g_QC(){return this.g_Xh}g_NI(g){for(const _ of this.g_Xg.values())_.g_NI(g)}g_Fd(){const g={},_={t:this.g_J$,st:this.g_Xd,s:this.g_Xe,ev:this.g_Xf.g_Dm(),sm:this.g_RP.map(g=>g.g_Dm()),sols:g};this.g_Xf.g_SS(this.g_Oi)&&(_.act=this.g_Xf.g_PA(this.g_Oi).g_Dm());for(const[_,e]of this.g_Xg)g[_.g_Dm().toString()]=e.g_Fd();return _}static g_QU(_,g){const t=_.g_Am(),a=_.g_PI(g.ev);if(!a)return null;let n=0;if(g.hasOwnProperty("act")){const e=_.g_PK(g.act);if(!e)return null;n=e.g_Dl()}const i=g_bA.g_eM(g_bA.g_Qx,_);i.g_J$=g.t,i.g_Xd=g.st,i.g_Xe=g.s,i.g_Xf=a,i.g_Oi=n;for(const e of g.sm){const g=t.g_Gr(e);g&&i.g_RP.push(g)}for(const[a,n]of Object.entries(g.sols)){const e=parseInt(a,10),r=t.g_Gr(e);if(!r)continue;const g=g_bA.g_eM(g_bA.g_Xj,null);g.g_Ff(_,n),i.g_Xg.set(r,g)}return i}},"use strict",g_bA.g_Xj=class extends g_bA.g_eK{constructor(g){super(),this.g_NA=null,this.g_Xr=!0,this.g_By=[],g&&(this.g_NA=g.g_C$(),this.g_Xr=g.g_NO(),g_bA.g_fZ(this.g_By,g.g_NW()))}g_eN(){this.g_NA=null,g_bA.g_fV(this.g_By)}g_Om(g){g.g_NV(this.g_Xr),g_bA.g_fZ(g.g_NW(),this.g_By)}g_NI(g){g_bA.g_gc(this.g_By,g)}g_Fd(){return{sa:this.g_Xr,insts:this.g_By.map(g=>g.g_CJ())}}g_Ff(g,_){const e=g.g_Am();this.g_Xr=!!_.sa,g_bA.g_fV(this.g_By);for(const t of _.insts){const g=e.g_JP(t);g&&this.g_By.push(g)}}},"use strict";{function _(g,_){let e=g.get(_);return e||(e=new Map,g.set(_,e)),e}g_bA.g_Xs=class extends g_bA.g_eK{constructor(g){super(),this.g_zM=g.g_HD,this.g_Xt=!!g.g_Xu,this.g_Xv=!!g.g_Xw,this.g_Xx=!!g.g_Xy,this.g_Xz=!!g.g_XA,this.g_XB=!!g.g_XC,this.g_XD=null,this.g_XE=new Map,this.g_XF=new Map,this.g_XG=new Map,this.g_XH=new Map}g_eN(){this.g_zM=null}g_Am(){return this.g_zM}g_XI(){}g_GG(){return this.g_Xt}g_Go(){return this.g_Xv}g_XJ(){return this.g_Xx}g_rd(){return this.g_Xz}g_XK(){return this.g_XB}g_TH(g,_){if(!_)throw new Error("missing 'this' binding");let e=this.g_XE.get(g);return e?e:(e=g.bind(_),this.g_XE.set(g,e),e)}g_UZ(g,a,t){if(!a)throw new Error("missing 'this' binding");const n=_(this.g_XF,g);let e=n.get(t);return e?e:(e=g.bind(a,t),n.set(t,e),e)}g_U_(a,t,n,i){if(!t)throw new Error("missing 'this' binding");const e=_(this.g_XG,a),r=_(e,n);let g=r.get(i);return g?g:(g=a.bind(t,n,i),r.set(i,g),g)}g_U$(a,t,n,r,e){if(!t)throw new Error("missing 'this' binding");const d=_(this.g_XH,a),g=_(d,n),o=_(g,r);let i=o.get(e);return i?i:(i=a.bind(t,n,r,e),o.set(e,i),i)}g_XL(g){if(!this.g_GG())throw new Error("must be single-global plugin");this.g_XD=g}g_XM(){if(!this.g_GG())throw new Error("must be single-global plugin");return this.g_XD}g_TK(){if(!this.g_GG())throw new Error("must be single-global plugin");return this.g_XD.g_TK()}}}"use strict",g_bA.g_XN=class extends g_bA.g_Xs{constructor(g,_){super(g),this.g_XO=_,this.g_XP=0,this.g_XQ=new Map}g_eN(){super.g_eN()}g_XR(g){const _=this.g_XP++;return this.g_XQ.set(_,g),_}g_XS(g){this.g_XQ.delete(g)}g_XT(g,_){this.g_zM.g_XU(this.g_XO,g,g=>{const e=this.g_XQ.get(g.elementId);_(e,g)})}},"use strict",g_bA.g_XV=class extends g_bA.g_eK{constructor(g){super(),this.g_NA=g,this.g_zM=g.g_Am(),this.g_XW=g.g_GH()}g_eN(){this.g_NA=null,this.g_zM=null,this.g_XW=null}g_C$(){return this.g_NA}g_Am(){return this.g_zM}g_GH(){return this.g_XW}g_XX(){return this.g_NA.g_XX()}g_Vk(){}g_FR(){}g_FV(){}g_FT(){}g_XY(){}},"use strict",g_bA.g_XZ=class extends g_bA.g_eK{constructor(g,_){super(),this.g_VH=g,this.g_XO=_,this.g_zM=g.g_Am(),this.g_NA=this.g_VH.g_C$(),this.g_X_=this.g_NA.g_X$(),this.g_Lk=null,this.g_Lm=null,this.g_Ya=!1,this.g_Yb=!1,this.g_lB=null,this.g_ui=!1}g_eN(){this.g_ui=!0,this.g_Yc(),this.g_Yd(),this.g_Lk=null,this.g_Lm=null,this.g_lB&&(this.g_lB.g_eN(),this.g_lB=null),this.g_VH=null,this.g_zM=null,this.g_NA=null,this.g_X_=null}g_eO(){return this.g_ui}g_JL(){return this.g_VH}g_Am(){return this.g_zM}g_C$(){return this.g_NA}g_GH(){return this.g_X_.g_GH()}g_X$(){return this.g_X_}g_IS(g){return this.g_zM.g_IS(g,this.g_VH)}g_Ye(g){return this.g_zM.g_Ye(g,this.g_VH)}g_Gi(g){return this.g_zM.g_Gi(g,this.g_VH)}g_Yf(g,_){return this.g_zM.g_Yf(g,this.g_VH,_)}g_Yg(g,_){return this.g_zM.g_Yg(g,this.g_VH,_)}g_Yh(g){return this.g_zM.g_Yh(g)}g_Yi(g,_){this.g_zM.g_XU(this.g_XO,g,_)}g_Yj(g){for(const[_,e]of g)this.g_Yi(_,e)}g_Yk(g,_){this.g_zM.g_Yl(this.g_XO,g,_)}g_Ym(g,_){return this.g_zM.g_Aw(this.g_XO,g,_)}g_Yn(g,_){this.g_zM.g_AU()?this.g_Yk(g,_):window.c3_runtimeInterface._OnMessageFromRuntime({type:"event",component:this.g_XO,handler:g,data:_,responseId:null})}g_EG(){return null}g_VI(){const g=this.g_VH.g_Bv();return[g.g_Gw(),g.g_Gx()]}g_Jv(){}g_Yo(){}g_Yp(){this.g_Ya||(!this.g_Lk&&(this.g_Lk=()=>this.g_Jv()),this.g_zM.g_kX().addEventListener("tick",this.g_Lk),this.g_Ya=!0)}g_Yc(){this.g_Ya&&(this.g_zM.g_kX().removeEventListener("tick",this.g_Lk),this.g_Ya=!1)}g_Yq(){return this.g_Ya}g_Yr(){this.g_Yb||(!this.g_Lm&&(this.g_Lm=()=>this.g_Yo()),this.g_zM.g_kX().addEventListener("tick2",this.g_Lm),this.g_Yb=!0)}g_Yd(){this.g_Yb&&(this.g_zM.g_kX().removeEventListener("tick2",this.g_Lm),this.g_Yb=!1)}g_Ys(){return this.g_Yb}g_Yt(){return[]}g_Fe(){return null}g_Fg(){}g_Yu(){}g_Yv(){}g_Mp(){}g_Mt(){}g_Mu(){}g_Mr(){}g_Yw(g,..._){g.call(this,..._)}g_Yx(g,..._){return g.call(this,..._)}},"use strict",g_bA.g_Yy=class extends g_bA.g_XZ{constructor(g,_){super(g,_),this.g_JH=g.g_Bv(),this.g_Yz=null,this.g_YA=null}g_eN(){if(this.g_Yz){const g=this.g_zM.g_kX();g.removeEventListener("webglcontextlost",this.g_Yz),g.removeEventListener("webglcontextrestored",this.g_YA),this.g_Yz=null,this.g_YA=null}this.g_JH=null,super.g_eN()}g_YB(){if(!this.g_Yz){this.g_Yz=()=>this.g_Br(),this.g_YA=()=>this.g_YC();const g=this.g_zM.g_kX();g.addEventListener("webglcontextlost",this.g_Yz),g.addEventListener("webglcontextrestored",this.g_YA)}}g_Br(){}g_YC(){}g_Bv(){return this.g_JH}},"use strict";{const _=g_bA.g_eM(g_bA.Rect);g_bA.g_YD=class extends g_bA.g_Yy{constructor(g,_){super(g,_),this.g_YE=this.g_GH().g_XR(this),this.g_YF=!0,this.g_YG=!1,this.g_YH=g_bA.g_eM(g_bA.Rect,0,0,-1,-1);const e=this.g_zM.g_Em();this.g_YI=e.g_YJ(),this.g_YK=e.g_YL(),this.g_YM=!1,this.g_Yp()}g_eN(){this.g_GH().g_XS(this.g_YE),this.g_YN("destroy"),this.g_YE=-1,super.g_eN()}g_YN(g,_){_||(_={}),_.elementId=this.g_YE,this.g_Yk(g,_)}g_YO(g,_){return _||(_={}),_.elementId=this.g_YE,this.g_Ym(g,_)}g_YP(g){g||(g={});const _=this.g_Bv().g_Dr();g.elementId=this.g_YE,g.isVisible=_,Object.assign(g,this.g_YQ()),this.g_YF=!!g.isVisible,this.g_Yk("create",g),this.g_YR(!0)}g_YS(g){g=!!g,this.g_YF===g||(this.g_YF=g,this.g_YN("set-visible",{isVisible:g}))}g_Jv(){this.g_YR(!1)}g_YR(a){var t=Math.round;const r=this.g_Bv(),d=r.g_CN(),e=r.g_Gw(),u=r.g_Gx();let[g,s]=d.g_Fa(e,u),[f,c]=d.g_Fa(e+r.g_oX(),u+r.g_oY());const M=this.g_zM.g_Em(),l=M.g_YT(),m=M.g_YU();if(!r.g_Dr()||!d.g_Dr()||0>=f||0>=c||g>=l||s>=m)return void this.g_YS(!1);1>g&&(g=1),1>s&&(s=1),f>=l&&(f=l-1),c>=m&&(c=m-1),_.set(g,s,f,c);const n=M.g_YJ(),o=M.g_YL();if(!a&&_.g_n(this.g_YH)&&this.g_YI===n&&this.g_YK===o)return void this.g_YS(!0);this.g_YH.g_r(_),this.g_YI=n,this.g_YK=o,this.g_YS(!0);let p=null;this.g_YG&&(p=d.g_EO()-.2),this.g_YN("update-position",{left:t(this.g_YH.g_ih())+M.g_YV(),top:t(this.g_YH.g_ii())+M.g_YW(),width:t(this.g_YH.width()),height:t(this.g_YH.height()),fontSize:p})}g_YX(){this.g_YN("focus",{focus:!0})}g_YY(){this.g_YN("focus",{focus:!1})}g_YZ(g,_){this.g_YN("set-css-style",{prop:g_bA.g_gR(g),val:_})}g_Y_(){this.g_YM||(this.g_YM=!0,Promise.resolve().then(()=>{this.g_YM=!1,this.g_YN("update-state",this.g_YQ())}))}g_YQ(){}g_Y$(){return this.g_YE}}}"use strict",g_bA.g_Za=class extends g_bA.g_eK{constructor(g){super(),this.g_zM=g.g_HD,this.g_Zb=g_bA.g_eM(g_bA.g_jH),this.g_Zc=g_bA.g_eM(g_bA.g_jH)}g_eN(){this.g_Zc.g_eN(),this.g_Zb.g_eN(),this.g_zM=null}g_Am(){return this.g_zM}g_XI(){}g_Zd(g){this.g_Zb.g_jL(g)}g_Ze(){return this.g_Zb.g_jN()}g_CM(g){this.g_Zc.g_jL(g)}g_CR(g){this.g_Zc.g_jD(g)}g_Gp(){return this.g_Zc.g_jN()}},"use strict",g_bA.g_Zf=class extends g_bA.g_eK{constructor(g){super(),this.g_zM=g.g_Am(),this.g_TV=g,this.g_NA=g.g_C$(),this.g_Zg=g.g_Zh(),this.g_Zg.g_Zd(this.g_NA)}g_eN(){this.g_zM=null,this.g_TV=null,this.g_NA=null,this.g_Zg=null}g_Zi(){return this.g_TV}g_C$(){return this.g_NA}g_Am(){return this.g_zM}g_Zh(){return this.g_Zg}},"use strict",g_bA.g_Zj=class extends g_bA.g_eK{constructor(g,_){super(),this.g_Zk=g,this.g_XO=_,this.g_VH=g.g_Zl(),this.g_zM=g.g_Am(),this.g_TV=g.g_Zi(),this.g_X_=this.g_TV.g_X$(),this.g_Ya=!1,this.g_Yb=!1,this.g_Zm=!1,this.g_lB=null}g_eN(){this.g_Yc(),this.g_Yd(),this.g_Zn(),this.g_lB&&(this.g_lB.g_eN(),this.g_lB=null),this.g_Zk=null,this.g_VH=null,this.g_zM=null,this.g_TV=null,this.g_X_=null}g_Zh(){return this.g_TV.g_Zh()}g_Zo(){return this.g_Zk}g_Zl(){return this.g_VH}g_C$(){return this.g_VH.g_C$()}g_Bv(){return this.g_VH.g_Bv()}g_Am(){return this.g_zM}g_Zi(){return this.g_TV}g_X$(){return this.g_X_}g_IS(g){return this.g_zM.g_IS(g,this.g_VH)}g_Ye(g){return this.g_zM.g_Ye(g,this.g_VH)}g_Gi(g){return this.g_zM.g_Gi(g,this.g_VH)}g_Zp(){}g_Jv(){}g_Yo(){}g_Zq(){}g_Yp(){this.g_Ya||(this.g_zM.g_Zr(this),this.g_Ya=!0)}g_Yc(){this.g_Ya&&(this.g_zM.g_Zs(this),this.g_Ya=!1)}g_Yq(){return this.g_Ya}g_Yr(){this.g_Yb||(this.g_zM.g_Zt(this),this.g_Yb=!0)}g_Yd(){this.g_Yb&&(this.g_zM.g_Zu(this),this.g_Yb=!1)}g_Ys(){return this.g_Yb}g_Zv(){this.g_Zm||(this.g_zM.g_Zw(this),this.g_Zm=!0)}g_Zn(){this.g_Zm&&(this.g_zM.g_Zx(this),this.g_Zm=!1)}g_Zy(){return this.g_Zm}g_Yt(){return[]}g_Yi(g,_){this.g_zM.g_XU(this.g_XO,g,_)}g_Zz(){}g_Fe(){return null}g_Fg(){}g_Mp(){}g_Mt(){}g_Mu(){}g_Mr(){}g_Yw(g,..._){g.call(this,..._)}g_Yx(g,..._){return g.call(this,..._)}},"use strict",g_bA.g_Gm={},g_bA.g_ZA={},g_bA.g_ZB=class extends g_bA.g_eK{constructor(g){super(),this.g_zM=g,this.g_ZC=[],this.g_ZD=new Map,this.g_Tz=null,this.g_ZE=[],this.g_ZF=new Map,this.g_ZG=null,this.g_ZH=null}g_ZI(g){const _=this.g_zM.g_TC(g[0]);if(!_)throw new Error("missing plugin");g_bA.g_VS(g,_);const e=g_bA.g_eM(_,{g_HD:this.g_zM,g_Xu:g[1],g_Xw:g[2],g_Xy:g[5],g_XC:g[8],g_XA:g[9]});e.g_XI(),this.g_ZC.push(e),this.g_ZD.set(_,e)}g_ZJ(){this.g_Tz=g_bA.g_eM(g_bA.g_Gm.g_Gl,{g_HD:this.g_zM,g_Xu:!0}),this.g_Tz.g_XI()}g_ZK(g){const _=this.g_zM.g_TC(g[1]);if(!_)throw new Error("missing behavior");const e=g_bA.g_eM(_,{g_HD:this.g_zM});e.g_XI(),this.g_ZE.push(e),this.g_ZF.set(_,e),!this.g_ZG&&g_bA.g_ZA.g_ZL&&e instanceof g_bA.g_ZA.g_ZL?this.g_ZG=e:!this.g_ZH&&g_bA.g_ZA.g_ZM&&e instanceof g_bA.g_ZA.g_ZM&&(this.g_ZH=e)}g_ZN(g){return this.g_ZD.get(g)||null}g_ZO(g){return this.g_ZF.has(g)}g_ZP(g){return this.g_ZF.get(g)||null}g_TA(){return this.g_Tz}g_ZQ(){return this.g_ZG}g_ZR(){return this.g_ZH}},"use strict";{const g=new Set;g_bA.g_ZS=class extends g_bA.g_eK{constructor(){super(),this.g_Bf="",this.g_Bg=0,this.g_oA=0,this.g_ZT=0,this.g_ZU=0,this.g_ou=0,this.g_ov=0,this.g_ZV=!1,this.g_ZW=null,this.g_ZX="",this.g_ub=g_bA.g_eM(g_bA.Rect),g.add(this)}g_eN(){this.g_uf(),this.g_ZW=null,g.delete(this)}static g_Br(){for(const _ of g)_.g_ZX="",_.g_ub.set(0,0,0,0)}g_ZY(g){this.g_Bf=g[0],this.g_Bg=g[1],this.g_oA=g[2],this.g_ZT=g[3],this.g_ZU=g[4],this.g_ou=g[5],this.g_ov=g[6],this.g_ZV=!0}g_ZZ(g){this.g_Bf=g[0],this.g_Bg=g[1],this.g_ZT=g[2],this.g_ZU=g[3],this.g_ou=g[4],this.g_ov=g[5],this.g_oA=g[11],this.g_ZV=!0}g_Z_(g,_){if(this.g_ZW)throw new Error("already loaded asset");this.g_Bf=_;const e={};return g_bA.g_gp(_)&&(e.g_AH="remote"),this.g_Z$(g,e),this.g_ZW.g_AK()}g__a(g){if(g===this)throw new Error("cannot replace with self");this.g_uf(),this.g_Bf=g.g_Bf,this.g_Bg=g.g_Bg,this.g_oA=g.g_oA,this.g_ZT=g.g_ZT,this.g_ZU=g.g_ZU,this.g_ou=g.g_ou,this.g_ov=g.g_ov,this.g_ZV=g.g_ZV,this.g_ZW=g.g_ZW,this.g_ZX=g.g_ZX,this.g_ub=g.g_ub}g_AJ(){return this.g_Bf}g_jF(){return this.g_Bg}g__b(){return this.g_oA}g__c(){return this.g_ZT}g__d(){return this.g_ZU}g_oX(){return this.g_ou}g_oY(){return this.g_ov}g__e(){return this.g_ZW.g_oX()}g__f(){return this.g_ZW.g_oY()}g_Z$(g,_){if(this.g_ZW)throw new Error("already got asset");_=Object.assign({},_,{url:this.g_AJ(),size:this.g_jF()}),this.g_ZW=g.g_AG(_)}async g_Bs(g,_){if(!this.g_ZW)throw new Error("no asset");if(this.g_ZX)throw new Error("already loaded texture");this.g_ZX="loading";const e=await this.g_ZW.g_Bs(g,_);return e?(this.g_ZX="loaded",this.g_ZV||(this.g_ou=e.g_oX(),this.g_ov=e.g_oY(),this.g_ZV=!0),this.g_ub.set(this.g_ZT,this.g_ZU,this.g_ZT+this.g_ou,this.g_ZU+this.g_ov),this.g_ub.g_P(e.g_oX(),e.g_oY()),e):(this.g_ZX="",null)}g_uf(){this.g_ZX&&(this.g_ZW&&this.g_ZW.g_uf(),this.g_ZX="",this.g_ub.set(0,0,0,0))}g_pv(){return this.g_ZW?this.g_ZW.g_pv():null}g_uV(){return this.g_ub}async g__g(){const g=await this.g_ZW.g_Bt(),_=g_bA.g_gC(this.g_ou,this.g_ov),e=_.getContext("2d");return e.drawImage(g,this.g_ZT,this.g_ZU,this.g_ou,this.g_ov,0,0,this.g_ou,this.g_ov),_}}}"use strict",g_bA.g__h=class extends g_bA.g_eK{constructor(g){super(),this.g_pP=g[0],this.g__i=g[1],this.g_UE=!!g[2],this.g__j=g[3],this.g__k=g[4],this.g__l=!!g[5],this.g_BV=g[6],this.g__m=g[7].map(g=>g_bA.g_eM(g_bA.g__n,g))}g_eN(){for(const g of this.g__m)g.g_eN();g_bA.g_fV(this.g__m)}g__o(g){for(const _ of this.g__m)_.g_XX().g_Z$(g)}g__p(g,_){return Promise.all(this.g__m.map(e=>e.g_XX().g_Bs(g,_)))}g__q(){for(const g of this.g__m)g.g_XX().g_uf()}g_q_(){return this.g_pP}g_Dm(){return this.g_BV}g__r(){return this.g__m.length}g__s(){return this.g__m}g__t(g){if(g=Math.floor(g),0>g||g>=this.g__m.length)throw new RangeError("invalid frame");return this.g__m[g]}g__u(){return this.g__i}g_SU(){return this.g_UE}g__v(){return this.g__j}g__w(){return this.g__k}g__x(){return this.g__l}},"use strict",g_bA.g__n=class extends g_bA.g_eK{constructor(g){super(),this.g__y=g_bA.g_eM(g_bA.g_ZS),this.g__y.g_ZZ(g),this.g__z=g[6],this.g__A=g_bA.g_eM(g_bA.g_hO,g[7],g[8]),this.g__B=g[9].map(g=>g_bA.g_eM(g_bA.g__C,this,g)),this.g__D=new Map;for(const _ of this.g__B)this.g__D.set(_.g_q_().toLowerCase(),_);this.g__E=null;const _=g[10];6<=_.length&&(this.g__E=g_bA.g_eM(g_bA.g_jk,_))}g_eN(){this.g__E&&(this.g__E.g_eN(),this.g__E=null),this.g__y.g_eN(),this.g__y=null}g_XX(){return this.g__y}g__F(){return this.g__z}g_MO(){return this.g__A.g_hS()}g_MQ(){return this.g__A.g_hU()}g__G(){return this.g__E}g__H(g){return this.g__D.get(g.toLowerCase())||null}g__I(g){return g=Math.floor(g),0>g||g>=this.g__B.length?null:this.g__B[g]}g__J(){return this.g__B.length}},"use strict",g_bA.g__C=class extends g_bA.g_eK{constructor(g,_){super(),this.g__K=g,this.g_pP=_[0],this.g__L=g_bA.g_eM(g_bA.g_hO,_[1],_[2])}g_eN(){}g_q_(){return this.g_pP}g_Gw(){return this.g__L.g_hS()}g_Gx(){return this.g__L.g_hU()}g__M(){return this.g__L}},"use strict",g_bA.g__N=class extends g_bA.g_eK{constructor(g,_,e){super();const a=g.g_TC(e[1]);if(this.g_zM=g,this.g_XW=g.g__O().g_ZN(a),this.g_X_=null,this.g__P=a.g_HR,this.g_BU=_,this.g_BV=e[11],this.g_pP=e[0],this.g__Q=!!e[9],this.g__R=!!e[2],this.g__S=!!e[10],this.g__T=e[3].map(g=>g[0]),this.g__U=e[3].map(g=>g[1]),this.g__V=null,g.g_AC()&&(this.g__V=e[3].map(g=>g[2])),this.g__W=e[4],this.g__X=e[5],this.g_Xv=this.g_XW.g_Go(),this.g_Cp=null,this.g__Y=g_bA.g_eM(g_bA.g__Z,g.g_Cx(),g.g_Cy()),this.g___=!0,this.g__$=!1,this.g_$a=null,this.g_$b=null,this.g_$c=-1,this.g_$d=null,this.g_$e=null,this.g_$f=null,this.g_$g=null,this.g_$h=null,this.g_$i=!1,this.g_$j=null,this.g_$k=e[8].map(g=>g_bA.g_$l.g_pM(this,g)),this.g_$m=[],this.g_$n=new Map,this.g_$o=new Map,this.g_$p=new Set,this.g_$q=g_bA.g_eM(g_bA.g_Nz,this),this.g_$r=null,this.g_$s=0,this.g_$t=!1,this.g_$j=null,this.g__y=null,this.g_$u=null,this.g_$v=null,this.g_$w=null,this.g_$x=0,this.g_UJ=new Map,this.g_UK=new Map,this.g_By=[],this.g_$y=!0,this.g_XW.g_XK()&&(this.g_Cp=g_bA.g_eM(g_bA.g_Cq,this,e[12])),e[6]&&(this.g__y=g_bA.g_eM(g_bA.g_ZS),this.g__y.g_ZY(e[6])),e[7]){this.g_$u=e[7].map(g=>g_bA.g_eM(g_bA.g__h,g)),this.g_$v=new Map,this.g_$w=new Map;for(const g of this.g_$u)this.g_$v.set(g.g_q_().toLowerCase(),g),this.g_$w.set(g.g_Dm(),g)}this.g__R?(this.g_$a=[],this.g_$b=new Set,this.g_$c=this.g_zM.g_$z()):(this.g_$d=[],this.g_$e=new Set,this.g_$f=[],this.g_$g=[],this.g_$h=[]),this.g_X_=g_bA.g_eM(a.g_$A,this),e[13]&&e[13].length&&this.g_X_.g_XY(e[13]),(!this.g_zM.g_$B()||this.g__R||this.g__S||!this.g_Xv)&&this.g_XI(),this.g_XW.g_GG()&&(this.g_XW.g_XL(this),this.g_$C(e))}static g_pM(g,_,e){return g_bA.g_eM(g_bA.g__N,g,_,e)}g_eN(){if(this.g__y&&(this.g__y.g_eN(),this.g__y=null),this.g_$u){for(const g of this.g_$u)g.g_eN();g_bA.g_fV(this.g_$u),this.g_$v.clear(),this.g_$w.clear()}this.g_$q.g_eN(),this.g_$q=null,this.g_UJ.clear(),this.g_UK.clear(),this.g_$j=null,this.g_zM=null}g_$D(g){for(let _=1,e=g.length;_<e;++_){const e=this.g_zM.g_Cz(g[_]);this.g_$a.push(e),this.g_$b.add(e),e.g_$d.push(this),e.g_$e.add(this)}}g_$E(g){this.g_$i=!0,this.g_$j=g}g_Di(){return this.g_$i}g_FO(){return this.g_$j}g_$F(){let g=0;if(!this.g__R)for(const _ of this.g_$d)for(const e of _.g_$G()){const _=e.g_q_().toLowerCase();this.g_$n.set(_,e),this.g_$o.set(_,g),this.g_$m.push(e),++g}for(const _ of this.g_$G()){const e=_.g_q_().toLowerCase();this.g_$n.set(e,_),this.g_$o.set(e,g),this.g_$m.push(_),++g}for(const g of this.g_$m)this.g_$p.add(g.g_Zh().constructor);if(!this.g__R&&this.g_$d.length){const g=this.g_zM.g_$H();g_bA.g_fX(this.g_$f,g,0),g_bA.g_fX(this.g_$g,g,0),g_bA.g_fX(this.g_$h,g,0);const _=[];let t=0,n=0,i=0;for(const e of this.g_$d){const a=e.g_TT();this.g_$f[a]=t,t+=e.g_$I(),this.g_$g[a]=n,n+=e.g_$J(),this.g_$h[a]=i,i+=e.g_$K();const r=e.g_Dn();if(r&&this.g_Cp)for(const g of r.g_$L())_.push(g.g_$M(this.g_Cp))}this.g_Cp&&this.g_Cp.g_$N(_)}}g_$C(g){const _=this.g_zM.g_$O(),e=g_bA.g_eM(g_bA.g_HR,{g_HD:this.g_zM,g_$P:this,g_$Q:_});e.g_$R(g[14],[]),this.g_zM.g_$S(_,e),this.g_By.push(e)}g_X$(){return this.g_X_}g_$T(){return this.g__S}g_XI(){this.g__R||this.g_X_.g_XI()}g_$U(){return 0<this.g_$x}g_FR(g){return this.g__R?Promise.resolve():(this.g_$x++,1===this.g_$x?this.g_X_.g_FR(g):Promise.resolve())}g_FV(){if(!this.g__R){if(this.g_$x--,0>this.g_$x)throw new Error("released textures too many times");0===this.g_$x&&this.g_X_.g_FV()}}g_FT(){if(this.g__R)throw new Error("not applicable to family");this.g_X_.g_FT()}g_Am(){return this.g_zM}g_GH(){return this.g_XW}g_$V(){return this.g__P}g_q_(){return this.g_pP}g_Dl(){return this.g_BU}g_Dm(){return this.g_BV}g_De(){return this.g__R}g_CI(){return this.g__Q}g_Go(){return this.g_Xv}g_TT(){return this.g_$c}g_$G(){return this.g_$k}g_$J(){return this.g__W}g_$W(g){return g&&this.g_$p.has(g)}g_$I(){return this.g__T.length}g_$X(){return this.g__T}g_$Y(g){return this.g__T.indexOf(g)}g_$Z(){return this.g__V}g_$_(g){if(g=Math.floor(g),0>g||g>=this.g__U.length)throw new RangeError("invalid instance variable index");return this.g__U[g]}g_$K(){return this.g__X}g_$$(){return this.g_$m}g_TW(g){return this.g_$n.get(g.toLowerCase())||null}g_TY(g){const _=this.g_$o.get(g.toLowerCase());return"undefined"==typeof _?-1:_}g_Dn(){return this.g_Cp}g_XK(){return this.g_XW.g_XK()}g_Qs(){return this.g_$q}g_ND(){return this.g_$q.g_ND()}g_XX(){return this.g__y}g_CC(g){this.g_$r=g}g_CB(){return this.g_$r}g_CD(g){this.g_$s=g}g_aaa(){return this.g_$s}g_aab(){return this.g_$u}g_aac(){return this.g_$u.length}g_RB(){return this.g_$d}g_VQ(g){return this.g_$e.has(g)}g_Sv(){return this.g_$a}g_Df(g){return this.g_$b.has(g)}g_T_(g){return this.g_$g[g]}g_TS(g){return this.g_$f[g]}g_aad(g){if(!this.g_$u)throw new Error("no animations");return this.g_$v.get(g.toLowerCase())||null}g_aae(g){if(!this.g_$u)throw new Error("no animations");return this.g_$w.get(g)||null}g_aaf(){if(!this.g_$u)throw new Error("no animations");return this.g_$u[0].g__t(0)}g_aag(){if(this.g_$u){const g=this.g_aaf().g_XX();return[g.g_oX(),g.g_oY()]}return this.g__y?[this.g__y.g_oX(),this.g__y.g_oY()]:[100,100]}g_TK(){if(!this.g_XW.g_GG())throw new Error("not a single-global plugin");return this.g_By[0]}g_Gp(){return this.g_By}g_Dj(){return this.g_By.length}g_CM(g){this.g_By.push(g)}g_aah(){this.g_$y=!0}g_Gy(){if(this.g_$y&&!this.g__R){const g=this.g_By;let _=0;for(let e=g.length;_<e;++_)g[_].g_aai(_);const e=this.g_zM.g_VR();for(const g of e)g.g_C$()===this&&g.g_aai(_++);this.g_$y=!1}}g_aaj(g){const _=this.g_By;if(g<_.length)return _[g];g-=_.length;const e=this.g_zM.g_VR();for(const _ of e)if(_.g_C$()===this){if(0===g)return _;--g}return null}g_VN(g){if(g&&g.g_Di()&&g.g_C$()!==this)for(const _ of g.siblings())if(_.g_C$()===this)return _;const _=this.g_ND().g_Gp();return _.length?_[0]:null}g_VG(g){const _=this.g_ND().g_Gp();return _.length?_[g.g_Gt()%_.length]:null}g_Vk(g){this.g_X_.g_Vk(g)}g_Vg(){if(this.g_$i&&!this.g__R){this.g_Gy();const g=this.g_ND(),_=g.g_NW(),a=g.g_NO(),t=this.g_zM.g_Pw(),n=t&&t.g_Oa()&&t.g_Oa().g_N$();for(const e of this.g_$j.g_Gu()){if(e===this)continue;e.g_Gy();const t=e.g_ND();if(t.g_NV(a),!a){const i=t.g_NW();g_bA.g_fV(i);for(const g of _)i.push(e.g_aaj(g.g_Gt()));if(n){const _=g.g_NX(),n=t.g_NX();g_bA.g_fV(n);for(const g of _)n.push(e.g_aaj(g.g_Gt()))}}}}}g_Vp(g,_){for(const e of this.g_FO().g_Gu()){const a=e.g_ND();g?g_bA.g_fU(a.g_NX(),_):g_bA.g_fU(a.g_NW(),_)}}g_aak(){return this.g__Y}g_aal(g){this.g___=!!g}g_DE(g){this.g__$=!!g}g_aam(){return this.g__$}g_aan(){if(this.g___&&this.g_Xv){for(const g of this.g_By)g.g_Bv().g_aao();for(const g of this.g_zM.g_VR())g.g_C$()===this&&g.g_Bv().g_aao();this.g___=!1}}g_Ve(){return this.g_UJ||(this.g_UJ=new Map),this.g_UJ}g_Vf(){return this.g_UK||(this.g_UK=new Map),this.g_UK}g_aap(){return this.g_$W(g_bA.g_ZA.g_ZL)}g_aaq(){return this.g_$W(g_bA.g_ZA.g_aar)}g_CG(){return this.g_$W(g_bA.g_ZA.g_aas)}g_Fd(){const g={instances:this.g_By.map(g=>g.g_Fe())};return this.g_UJ&&this.g_UJ.size&&(g.ex=g_bA.g_gP(this.g_UJ)),g}g_Ff(g){this.g_UJ&&(this.g_UJ.clear(),this.g_UJ=null);const _=g.ex;_&&(this.g_UJ=g_bA.g_gQ(_));const a=this.g_By,t=g.instances;for(let _=0,n=Math.min(a.length,t.length);_<n;++_)a[_].g_Fg(t[_]);for(let _=t.length,n=a.length;_<n;++_)this.g_zM.g_Da(a[_]);for(let _=a.length,n=t.length;_<n;++_){const g=t[_];let a=null;if(this.g_Go()&&(a=this.g_zM.g_GI().g_FK(g.w.l),!a))continue;const n=this.g_zM.g_CH(this.g_$r,a,!1,0,0,!0);n.g_Fg(g)}this.g_aah()}},"use strict",g_bA.g_aat=class extends g_bA.g_eK{constructor(g,_){super(),this.g_zM=g,this.g_aau=_;for(const e of this.g_aau)e.g_$E(this)}g_eN(){this.g_zM=null}g_Am(){return this.g_zM}g_FN(){return this.g_aau}g_Gu(){return this.g_aau}g_GA(){return this.g_aau.some(g=>g.g_Go())}},"use strict";{let g=0;g_bA.g_HR=class extends g_bA.g_eK{constructor(_){if(super(),this.g_zM=_.g_HD,this.g_aav=_.g_$P,this.g_XW=this.g_aav.g_GH(),this.g_qB=this.g_XW.g_rd(),this.g_aaw=0,this.g_aax=_.g_$Q,this.g_aay=0,this.g_aaz=g++,this.g_aaA=!1,this.g_aaB=[],this.g_aaC=this.g_aav.g_$$().map((g,_)=>g_bA.g_eM(g_bA.g_aaD,{g_HD:this.g_zM,g_aaE:g,g_Ns:this,index:_})),this.g_JH=null,this.g_aaF=-1,this.g_aaG=null,this.g_UJ=null,this.g_UK=null,this.g_aaH=!1,this.g_$i=this.g_aav.g_Di(),this.g_aaI=this.g_$i?[]:null,this.g_aaJ=null,this.g_XW.g_Go())if(this.g_JH=g_bA.g_eM(g_bA.g_aaK,this,_.g_HB),_.g_aaL)this.g_JH.g_aaM(_.g_aaL);else{const[g,_]=this.g_aav.g_aag();this.g_JH.g_uD(g,_),this.g_JH.g_ED().g_aaN()}_.g_aaO?this.g_aaP(_.g_aaO):this.g_aaQ()}g_eN(){for(const g of this.g_aaC)g.g_eN();g_bA.g_fV(this.g_aaC),this.g_aaG.g_eN(),this.g_aaG=null,this.g_UJ&&this.g_UJ.clear(),this.g_UK&&this.g_UK.clear(),this.g_aaI&&g_bA.g_fV(this.g_aaI),this.g_aaJ&&(this.g_aaJ.g_eN(),this.g_aaJ=null),this.g_zM=null,this.g_aav=null,this.g_XW=null,g_bA.g_fV(this.g_aaB),this.g_JH&&(this.g_JH.g_eN(),this.g_JH=null)}g_aaP(g){g_bA.g_fZ(this.g_aaB,g)}g_aaQ(){const g=[0,0,""];for(let _=0,e=this.g_aav.g_$I();_<e;++_)this.g_aaB.push(g[this.g_aav.g_$_(_)])}g_$R(g,_){if(this.g_aaG)throw new Error("already got sdk instance");for(let e=0,a=this.g_aaC.length;e<a;++e){const g=this.g_aaC[e];g.g_$R(_?_[e]:null)}this.g_aaG=g_bA.g_eM(this.g_aav.g_$V(),this,g);for(let e=0,a=this.g_aaC.length;e<a;++e)this.g_aaC[e].g_Zp()}g_LU(){return this.g_aaG}g_Bv(){return this.g_JH}g_Am(){return this.g_zM}g_LA(){return this.g_aaF}g_aaR(g){g=+g,(0>g||!isFinite(g))&&(g=0),this.g_aaF=g}g_aaS(){this.g_aaF=-1}g_rd(){return this.g_qB}g_kX(){return this.g_aaJ||(this.g_aaJ=g_bA.g_eM(g_bA.Event.g_kX)),this.g_aaJ}g_El(g){this.g_aaG.g_El(g)}g_XI(g){this.g_aaG.g_XI(g)}g_aaT(){this.g_aaH=!0}g_aaU(){return this.g_aaH}g_EG(){return this.g_aaG.g_EG()}g_VI(g){return this.g_aaG.g_VI(g)}g_C$(){return this.g_aav}g_aaV(g){return g.g_De()?g.g_Df(this.g_C$()):this.g_C$()===g}g_Di(){return this.g_$i}g_Gv(g){this.g_aaI.push(g)}g_aaW(){return this.g_aaI}siblings(){return this.g_aaI}g_RH(){for(const g of this.siblings())g.g_C$().g_ND().g_NY(g)}g_Vl(){for(const g of this.siblings())g.g_C$().g_ND().g_NT(g)}g_Vm(g){for(const _ of this.siblings())_.g_C$().g_ND().g_NW()[g]=_}g_Vo(){for(const g of this.siblings())g.g_C$().g_ND().g_NU(g)}g_Vn(g){for(const _ of this.siblings())_.g_C$().g_ND().g_NX()[g]=_}g_GH(){return this.g_XW}g_aai(g){this.g_aaw=g}g_Gt(){return this.g_aav.g_Gy(),this.g_aaw}g_CJ(){return this.g_aax}g_aaX(){return this.g_aaz}g_LT(){return this.g_aaC}g_aaY(g){if(!g)return null;for(const _ of this.g_aaC)if(_.g_Zh()instanceof g)return _;return null}g_aaZ(g){if(!g)return null;const _=this.g_aaY(g);return _?_.g_LU():null}g_LS(g){const _=this.g_aaC;for(let e=0,a=_.length;e<a;++e)if(_[e].g_Zi().g_Dm()===g)return e;return-1}g_aa_(){return this.g_aaB}g_$Z(){return this.g_aav.g_$Z()}g_aa$(){return this.g_aaB.length}g_Mz(g){g|=0;const _=this.g_aaB;if(0>g||g>=_.length)throw new RangeError("invalid instance variable");return _[g]}g_TQ(g){return this.g_aaB[g]}g_MA(g,_){g|=0;const e=this.g_aaB;if(0>g||g>=e.length)throw new RangeError("invalid instance variable");const t=e[g];if("number"==typeof t)e[g]="number"==typeof _?_:parseFloat(_);else if("boolean"==typeof t)e[g]="boolean"==typeof _?_:!!_;else if("string"==typeof t)e[g]="string"==typeof _?_:_.toString();else throw new Error("unknown instance variable type")}g_MB(g,_){if(0!==_){g|=0;const e=this.g_aaB;if(0>g||g>=e.length)throw new RangeError("invalid instance variable");const a=e[g];if("number"==typeof a)e[g]+="number"==typeof _?_:parseFloat(_);else if("boolean"==typeof a)throw new Error("can not set offset of boolean variable");else if("string"==typeof a)throw new Error("can not set offset of string variable");else throw new Error("unknown instance variable type")}}g_Ve(){return this.g_UJ||(this.g_UJ=new Map),this.g_UJ}g_Vf(){return this.g_UK||(this.g_UK=new Map),this.g_UK}g_Dh(){this.g_zM.g_IS(this.g_GH().constructor.g_Gk.g_WV,this)}g_aba(){this.g_zM.g_IS(this.g_GH().constructor.g_Gk.g_WW,this)}g_abb(){this.g_aaA=!0}g_JN(){return this.g_aaA}g_abc(){return this.g_aaG.g_Yt()}g_Fe(g){const _={};if(g?_.c3=!0:_.uid=this.g_CJ(),this.g_UJ&&this.g_UJ.size&&(_.ex=g_bA.g_gP(this.g_UJ)),-1!==this.g_LA()&&(_.mts=this.g_LA()),0<this.g_aav.g_$I()){const g={},e=this.g_aav.g_$X();for(let _=0,a=this.g_aaB.length;_<a;++_)g[e[_].toString()]=this.g_aaB[_];_.ivs=g}if(this.g_aaC.length){const g={};for(const _ of this.g_aaC){const e=_.g_Fe();e&&(g[_.g_Zi().g_Dm().toString()]=e)}_.behs=g}this.g_JH&&(_.w=this.g_JH.g_Fd());const e=this.g_aaG.g_Fe();return e&&(_.data=e),_}g_Fg(g,_){if(!_)this.g_aax=g.uid;else if(!g.c3)return;this.g_UJ&&(this.g_UJ.clear(),this.g_UJ=null);const a=g.ex;a&&(this.g_UJ=g_bA.g_gQ(a)),this.g_aaF=g.hasOwnProperty("mts")?g.mts:-1;const t=g.ivs;if(t)for(const[g,_]of Object.entries(t)){const a=parseInt(g,10),t=this.g_aav.g_$Y(a);if(0>t||t>=this.g_aaB.length)continue;let n=_;null===n&&(n=NaN),this.g_aaB[t]=n}if(this.g_XW.g_Go()){const e=g.w,t=e.l;if(this.g_JH.g_CN().g_Dm()!==t){const g=this.g_JH.g_CN(),e=g.g_Dk().g_FK(t);e?(this.g_JH.g_Gq(e),g.g_CR(this,!0),e.g_CM(this,!0),e.g_CL(),this.g_JH.g_CO()):!_&&this.g_zM.g_Da(this)}this.g_JH.g_Ff(e)}const n=g.behs;if(n)for(const[g,_]of Object.entries(n)){const e=parseInt(g,10),a=this.g_LS(e);0>a||a>=this.g_aaC.length||this.g_aaC[a].g_Fg(_)}const e=g.data;e&&this.g_aaG.g_Fg(e)}}}{const g=g_bA.g_eM(g_bA.Rect),_=g_bA.g_eM(g_bA.Rect),e=g_bA.g_eM(g_bA.Event,"bboxchange",!1);g_bA.g_aaK=class extends g_bA.g_eK{constructor(g,_){super(),this.g_VH=g,this.g_NA=g.g_C$(),this.g_zM=g.g_Am(),this.g_abd=_,this.g_abe=-1,this.g_BW=!0,this.g_hP=0,this.g_hQ=0,this.g_vE=0,this.g_abf=0,this.g_abg=0,this.g_gX=0,this.g_abh=0,this.g_abi=1,this.g_abj=0,this.g_abk=0,this.g_abl=!0,this.g_abm=new g_bA.Rect,this.g_abn=new g_bA.g_iH,this.g_abo=!1,this.g_abp=!0,this.g_abq=!0,this.g_abr=g_bA.g_eM(g_bA.Rect,0,0,-1,-1),this.g_abs=g_bA.g_eM(g_bA.Rect,0,0,-1,-1),this.g_abt=null,this.g_abu=g_bA.g_eM(g_bA.g_jk),this.g_abv=-1,this.g_abw=-1,this.g_abx=0,this.g_aby=!1,this.g_abz=null,this.g_vD=g_bA.g_eM(g_bA.g_gT,1,1,1,1),this.g_abA=g_bA.g_eM(g_bA.g_gT,1,1,1,1),this.g_abB=!0,this.g_Cd=-1,this.g_vB=0,this.g_vC=0,this.g_abC=null,this.g_abD=null,this.g_abE=!1,this.g_VH.g_C$().g_XK()&&(this.g_abD=g_bA.g_eM(g_bA.g_abF,this.g_VH,this)),this.g_CY(0)}g_eN(){this.g_abC&&(this.g_zM.g_pu().g_xK(this.g_abC),this.g_abC=null),this.g_abt=null,this.g_abu.g_eN(),this.g_abu=null,this.g_abz&&(this.g_abz.clear(),this.g_abz=null),this.g_VH=null,this.g_NA=null,this.g_zM=null,this.g_abd=null}g_aaM(g){this.g_VC(g[0]),this.g_VD(g[1]),this.g_DH(g[2]),this.g_FD(g[3]),this.g_FE(g[4]),this.g_DI(g[6]),this.g_vD.g_hG(g[7]),this.g_abG(g[8]),this.g_abH(g[9]),this.g_CY(g[10]),this.g_abD&&this.g_abD.g_abI(g[12]),this.g_Cw(),this.g_abJ()}g_JL(){return this.g_VH}g_VC(g){this.g_hP=+g}g_MH(g){this.g_hP+=+g}g_Gw(){return this.g_hP}g_VD(g){this.g_hQ=+g}g_MI(g){this.g_hQ+=+g}g_Gx(){return this.g_hQ}g_VF(g,_){this.g_hP=+g,this.g_hQ=+_}g_VJ(g,_){this.g_hP+=+g,this.g_hQ+=+_}g_VE(g,_){return this.g_hP===g&&this.g_hQ===_}g_DH(g){if(g=+g,this.g_vE!==g){this.g_vE=g,this.g_abJ();const _=this.g_CN();0!==this.g_vE&&_.g_CU(),_.g_CL()}}g_BR(){return this.g_vE}g_Hn(){return this.g_CN().g_BR()+this.g_BR()}g_FD(g){this.g_abf=+g}g_MJ(g){this.g_abf+=+g}g_oX(){return this.g_abf}g_FE(g){this.g_abg=+g}g_MK(g){this.g_abg+=+g}g_oY(){return this.g_abg}g_uD(g,_){this.g_abf=+g,this.g_abg=+_}g_DI(g){g=g_bA.g_eR(+g),this.g_gX===g||(this.g_gX=g,this.g_abh=Math.sin(g),this.g_abi=Math.cos(g))}g_ML(g){g=+g,0===g||this.g_DI(this.g_gX+g)}g_DJ(){return this.g_gX}g_VL(){return this.g_abh}g_VK(){return this.g_abi}g_abG(g){this.g_abj=+g}g_MN(g){this.g_abj+=+g}g_MO(){return this.g_abj}g_abH(g){this.g_abk=+g}g_MP(g){this.g_abk+=+g}g_MQ(){return this.g_abk}g_xP(g){g=g_bA.g_eQ(g,0,1),this.g_vD.a===g||(this.g_vD.a=g,this.g_Cw(),this.g_abJ())}g_MM(g){if(0!==g){const _=this.g_vD.a;this.g_vD.a+=g,this.g_vD.a===_||(this.g_Cw(),this.g_abJ())}}g_xN(){return this.g_vD.a}g_VM(g){this.g_vD.g_hl(g)||(this.g_vD.g_he(g),this.g_Cw(),this.g_abJ())}g_abK(g,_,e){const a=this.g_vD;a.r===g&&a.g_hH===_&&a.b===e||(a.r=g,a.g_hH=_,a.b=e,this.g_Cw(),this.g_abJ())}g_ME(_,a,t){if(0!==_||0!==a||0!==t){const n=this.g_vD,i=n.r,e=n.g_hH,r=n.b;n.r+=_,n.g_hH+=a,n.b+=t,n.r===i&&n.g_hH===e&&n.b===r||(this.g_Cw(),this.g_abJ())}}g_MD(){return this.g_vD}g_Cw(){const g=this.g_vD,_=this.g_abA;this.g_abB=g.g_hn(1,1,1,1),_.set(g),_.g_hp()}g_Dx(){return this.g_abA}g_abJ(){const g=this.g_zM.g_pu();this.g_abC&&g.g_xK(this.g_abC),this.g_abC=g.g_xJ(g.g_xs()||"<default>",this.g_vB,this.g_vC,this.g_abA,this.g_vE)}g_EA(){return this.g_abC}g_Dy(){return this.g_abB}g_CY(g){if(this.g_Cd!==g){this.g_Cd=g;const _=this.g_zM.g_pu();if(_){const e=_.g_zI(g);this.g_vB=e.g_zG,this.g_vC=e.g_zH}this.g_abJ()}}g_CZ(){return this.g_Cd}g_DS(){return this.g_vB}g_DT(){return this.g_vC}g_Gq(g){this.g_abd=g,0!==this.g_BR()&&this.g_abd.g_CU()}g_CN(){return this.g_abd}g_Dk(){return this.g_CN().g_Dk()}g_CW(g){this.g_abe=0|g}g_DZ(){return this.g_abd.g_DW(),this.g_abe}g_Bu(){return this.g_abe}g_Dr(){return this.g_BW}g_Ds(g){this.g_BW=!!g}g_abL(){return this.g_abp}g_abM(g){g=!!g,this.g_abp===g||(this.g_abp=g,g?this.g_CO():this.g_abN())}g_abO(g,_){if(this.g_aby=!!g,this.g_abz&&this.g_abz.clear(),!_.trim())return void(this.g_abz=null);this.g_abz||(this.g_abz=new Set);for(const e of _.split(" "))e&&this.g_abz.add(e.toLowerCase())}g_abP(g){const _=this.g_aby,e=this.g_abz;if(!g||!e)return!_;for(const a of e)if(g.has(a))return _;return!_}g_CO(){this.g_abl=!0,this.g_abq=!0,this.g_NA.g_aal(!0),this.g_zM.g_Dt(),this.g_abd.g_Do()&&(this.g_abQ(),this.g_abR()),this.g_abo&&this.g_VH.g_kX().dispatchEvent(e)}g_abQ(){const g=this.g_abm,_=this.g_abn,a=this.g_hP,t=this.g_hQ,n=this.g_abf,e=this.g_abg;g.g_ia(a-this.g_abj*n,t-this.g_abk*e,n,e),0===this.g_gX?_.g_i_(g):(g.offset(-a,-t),_.g_ja(g,this.g_abh,this.g_abi),_.offset(a,t),_.g_jb(g)),g.normalize(),this.g_abl=!1}g_abS(){this.g_abl&&this.g_abQ()}g_EI(){return this.g_abS(),this.g_abm}g_abT(){return this.g_abS(),this.g_abn}g_abU(g){this.g_abm.g_r(g),this.g_abn.g_i_(this.g_abm),this.g_abl=!1,this.g_aao(),this.g_abR()}g_abV(g){this.g_abo=!!g}g_abW(){return this.g_abo}g_Ex(g){return 0===this.g_vE?g.g_iB(this.g_EI()):this.g_abX()}g_abX(){const g=this.g_CN(),e=this.g_Hn();return!(e>=g.g_Eh())&&(g.g_Dv(e,_),_.g_iB(this.g_EI()))}g_abY(g){this.g_abt=g,this.g_abv=-1,this.g_abw=-1,this.g_abx=0}g_abZ(){return this.g_abt}g_ab_(){return!!this.g_abt}g_ab$(){return this.g_aca(this.g_oX(),this.g_oY(),this.g_DJ(),this.g_VL(),this.g_VK())}g_acb(g,_,t){let n=0,i=1;return 0!==t&&(n=Math.sin(t),i=Math.cos(t)),this.g_aca(g,_,t,n,i)}g_aca(g,_,t,n,a){return this.g_abv===g&&this.g_abw===_&&this.g_abx===t?this.g_abu:(this.g_abt?(this.g_abu.g_r(this.g_abt),this.g_abu.g_ju(g,_,n,a)):this.g_abu.g_jt(this.g_abT(),-this.g_Gw(),-this.g_Gx()),this.g_abv=g,this.g_abw=_,this.g_abx=t,this.g_abu)}g_aaU(){return this.g_VH.g_aaU()}g_acc(g,_){return!!this.g_EI().g_iD(g,_)&&!!this.g_abT().g_iD(g,_)&&(this.g_aaU()?this.g_VH.g_LU().g_Yv(g,_):!this.g_ab_()||this.g_ab$().g_iD(g-this.g_Gw(),_-this.g_Gx()))}g_aao(){if(this.g_abq&&this.g_abp){const _=this.g_EI(),e=this.g_NA.g_aak(),a=this.g_abr;if(g.set(e.g_BM(_.g_ih()),e.g_BN(_.g_ii()),e.g_BM(_.g_ij()),e.g_BN(_.g_ik())),!a.g_n(g)){const _=this.g_VH;a.g_ij()<a.g_ih()?e.g_BO(_,null,g):e.g_BO(_,a,g),a.g_r(g),this.g_abq=!1}}}g_abN(){const g=this.g_abr;g.g_ij()<g.g_ih()||(this.g_NA.g_aak().g_BO(this.g_VH,g,null),g.set(0,0,-1,-1))}g_acd(){return this.g_abr}g_abR(){const _=this.g_CN();if(_.g_Do()){const a=_.g_Dp(),t=this.g_EI(),n=this.g_abs;if(g.set(a.g_BM(t.g_ih()),a.g_BN(t.g_ii()),a.g_BM(t.g_ij()),a.g_BN(t.g_ik())),!n.g_n(g)){const e=this.g_VH;n.g_ij()<n.g_ih()?a.g_BO(e,null,g):a.g_BO(e,n,g),n.g_r(g),_.g_Dq()}}}g_CS(){const g=this.g_abs;g.g_ij()<g.g_ih()||(this.g_CN().g_Dp().g_BO(this.g_VH,g,null),g.set(0,0,-1,-1))}g_ace(){return this.g_abs.g_ij()>=this.g_abs.g_ih()}g_DX(){return this.g_abs}g_ED(){return this.g_abD}g_acf(g){this.g_abE=!!g}g_Ef(){return this.g_abE}g_acg(){this.g_abS();const g=this.g_abm,_=this.g_abn;return[this.g_hP,this.g_hQ,this.g_abf,this.g_abg,this.g_gX,this.g_abj,this.g_abk,g.g_ih(),g.g_ii(),g.g_ij(),g.g_ik(),_.g_fv(),_.g_fw(),_.g_fx(),_.g_fy(),_.g_fz(),_.g_fA(),_.g_fB(),_.g_fC()]}g_ach(g){this.g_hP=g[0],this.g_hQ=g[1],this.g_abf=g[2],this.g_abg=g[3],this.g_DI(g[4]),this.g_abj=g[5],this.g_abk=g[6],this.g_abm.set(g[7],g[8],g[9],g[10]),this.g_abn.set(g[11],g[12],g[13],g[14],g[15],g[16],g[17],g[18]),this.g_abl=!1}g_Fd(){const g={x:this.g_Gw(),y:this.g_Gx(),w:this.g_oX(),h:this.g_oY(),l:this.g_CN().g_Dm(),zi:this.g_DZ()};return 0!==this.g_BR()&&(g.ze=this.g_BR()),0!==this.g_DJ()&&(g.a=this.g_DJ()),1!==this.g_xN()&&(g.o=this.g_xN()),.5!==this.g_MO()&&(g.oX=this.g_MO()),.5!==this.g_MQ()&&(g.oY=this.g_MQ()),0!==this.g_CZ()&&(g.bm=this.g_CZ()),this.g_Dr()||(g.v=this.g_Dr()),this.g_abL()||(g.ce=this.g_abL()),this.g_abW()&&(g.be=this.g_abW()),this.g_abD&&(g.fx=this.g_abD.g_Fd()),this.g_aby&&(g.sfi=this.g_aby),this.g_abz&&(g.sft=[...this.g_abz].join(" ")),g}g_Ff(g){this.g_VC(g.x),this.g_VD(g.y),this.g_FD(g.w),this.g_FE(g.h),this.g_CW(g.zi),this.g_DH(g.hasOwnProperty("ze")?g.ze:0),this.g_DI(g.hasOwnProperty("a")?g.a:0),this.g_xP(g.hasOwnProperty("o")?g.o:1),this.g_abG(g.hasOwnProperty("oX")?g.oX:.5),this.g_abH(g.hasOwnProperty("oY")?g.oY:.5),this.g_CY(g.hasOwnProperty("bm")?g.bm:0),this.g_Ds(!g.hasOwnProperty("v")||g.v),this.g_abM(!g.hasOwnProperty("ce")||g.ce),this.g_abV(!!g.hasOwnProperty("be")&&g.be),this.g_abO(!!g.hasOwnProperty("sfi")&&g.sfi,g.hasOwnProperty("sft")?g.sft:""),this.g_abD&&g.hasOwnProperty("fx")&&this.g_abD.g_Ff(g.fx),this.g_CO()}}}"use strict",g_bA.g_$l=class extends g_bA.g_eK{constructor(g,_){super();const a=g.g_Am(),t=a.g__O(),n=a.g_TC(_[1]);t.g_ZO(n)||t.g_ZK(_),this.g_zM=a,this.g_NA=g,this.g_Zg=t.g_ZP(n),this.g_X_=null,this.g__P=n.g_HR,this.g_BV=_[2],this.g_pP=_[0],this.g_X_=g_bA.g_eM(n.g_$A,this),this.g_XI()}static g_pM(g,_){return g_bA.g_eM(g_bA.g_$l,g,_)}g_eN(){this.g_zM=null,this.g_Zg=null,this.g_X_.g_eN(),this.g_X_=null,this.g__P=null}g_X$(){return this.g_X_}g_XI(){this.g_X_.g_XI()}g_Am(){return this.g_zM}g_C$(){return this.g_NA}g_Zh(){return this.g_Zg}g_$V(){return this.g__P}g_q_(){return this.g_pP}g_Dm(){return this.g_BV}},"use strict",g_bA.g_aaD=class extends g_bA.g_eK{constructor(g){super(),this.g_zM=g.g_HD,this.g_TV=g.g_aaE,this.g_Zg=this.g_TV.g_Zh(),this.g_VH=g.g_Ns,this.g_BU=g.index,this.g_aaG=null,this.g_Zg.g_CM(this.g_VH)}g_eN(){this.g_Zg.g_CR(this.g_VH),this.g_aaG.g_eN(),this.g_aaG=null,this.g_zM=null,this.g_TV=null,this.g_Zg=null,this.g_VH=null}g_$R(g){if(this.g_aaG)throw new Error("already got sdk instance");this.g_aaG=g_bA.g_eM(this.g_TV.g_$V(),this,g)}g_LU(){return this.g_aaG}g_Zl(){return this.g_VH}g_Am(){return this.g_zM}g_Zi(){return this.g_TV}g_Zh(){return this.g_Zg}g_aci(){return this.g_BU}g_Zp(){this.g_aaG.g_Zp()}g_Zz(g,_){this.g_aaG.g_Zz(g,_)}g_abc(){return this.g_aaG.g_Yt()}g_Fe(){return this.g_aaG.g_Fe()}g_Fg(g){return this.g_aaG.g_Fg(g)}static g_acj(_,t){const a=_.g_Zl(),n=t.g_Zl(),i=a.g_C$().g_Dl(),e=n.g_C$().g_Dl();if(i!==e)return i-e;const r=a.g_aaX(),g=n.g_aaX();return r===g?_.g_Zo().g_aci()-t.g_Zo().g_aci():r-g}},"use strict",g_bA.g_Cq=class extends g_bA.g_eK{constructor(g,_){super(),this.g_rR=g,this.g_ack=[],this.g_acl=[],this.g_acm=new Map,this.g_LW=[],this.g_qD=!0;for(const e of _){const g=g_bA.g_eM(g_bA.g_acn,this,e,this.g_ack.length);this.g_ack.push(g),this.g_acm.set(g.g_q_().toLowerCase(),g),3<=e.length&&this.g_LW.push(this.g_aco(e[2]))}this.g_Am().g_acp(this)}g_eN(){g_bA.g_fV(this.g_ack),g_bA.g_fV(this.g_acl),this.g_acm.clear(),g_bA.g_fV(this.g_LW),this.g_rR=null}g_$N(g){if(g.length){this.g_ack=g.concat(this.g_ack);for(const _ of g)this.g_acm.set(_.g_q_().toLowerCase(),_);for(let g=0,_=this.g_ack.length;g<_;++g)this.g_ack[g].g_acq(g)}}g_aco(g){const _=g.slice(0);for(let t=0,e=_.length;t<e;++t){const g=_[t];if(Array.isArray(g)){const a=g_bA.g_eM(g_bA.g_gT);a.g_hG(g),_[t]=a}}return _}g_acr(){return this.g_rR}g_Am(){return this.g_rR.g_Am()}g_VP(){g_bA.g_fV(this.g_acl);let g=!0;for(const _ of this.g_ack)_.g_Rw()&&(this.g_acl.push(_),_.g_ra().g_re()||(g=!1));this.g_qD=g}g_$L(){return this.g_ack}g_LX(g){return this.g_acm.get(g.toLowerCase())||null}g_EC(){return this.g_acl}g_Ef(){return 0<this.g_acl.length}g_re(){return this.g_qD}g_EH(g){return this.g_LW[g]}static g_acs(g){return g&&g instanceof g_bA.g_gT?{t:"color",v:g.toJSON()}:g}static g_act(g){if("object"==typeof g){const _=g.t;if("color"===_){const _=g_bA.g_eM(g_bA.g_gT);return _.g_hG(g.v),_}throw new Error("invalid effect parameter type")}else return g}static g_acu(g){return g.map(g_bA.g_Cq.g_acs)}static g_acv(g){return g.map(g_bA.g_Cq.g_act)}g_Fe(){return this.g_ack.map(g=>({name:g.g_q_(),active:g.g_Rw(),params:g_bA.g_Cq.g_acu(this.g_LW[g.g_Dl()])}))}g_Fg(g){for(const _ of g){const g=this.g_LX(_.name);g&&(g.g_acw(_.active),this.g_LW[g.g_Dl()]=g_bA.g_Cq.g_acv(_.params))}this.g_VP()}},"use strict",g_bA.g_acn=class extends g_bA.g_eK{constructor(g,_,e){super(),this.g_Cp=g,this.g_MX=_[0],this.g_pP=_[1],this.g_BU=e,this.g_pQ=null,this.g_lp=!0}g_eN(){this.g_Cp=null,this.g_pQ=null}g_$M(g){const _=g_bA.g_eM(g_bA.g_acn,g,[this.g_MX,this.g_pP],-1);return _.g_pQ=this.g_pQ,_.g_lp=this.g_lp,_}g_acx(g){const _=g.g_vQ(this.g_MX);if(!_)throw new Error("failed to find shader program '"+this.g_MX+"'");this.g_pQ=_}g_Dn(){return this.g_Cp}g_q_(){return this.g_pP}g_acq(g){this.g_BU=g}g_Dl(){return this.g_BU}g_acr(){return this.g_Cp.g_acr()}g_Am(){return this.g_Cp.g_Am()}g_acw(g){this.g_lp=!!g}g_Rw(){return this.g_lp}g_ra(){return this.g_pQ}g_acy(){const g=[];for(let _=0,e=this.g_pQ.g_rk();_<e;++_){const e=this.g_pQ.g_rl(_);if("float"===e||"percent"===e)g.push(0);else if("color"===e)g.push(g_bA.g_eM(g_bA.g_gT,1,1,1,1));else throw new TypeError("unknown effect parameter type")}return g}},"use strict",g_bA.g_abF=class extends g_bA.g_eK{constructor(g,_){super(),this.g_VH=g,this.g_acz=_,this.g_Cp=g.g_C$().g_Dn(),this.g_acA=[],this.g_acl=[],this.g_qD=!0,this.g_LW=[];for(const e of this.g_Cp.g_$L())this.g_acA.push(!0);this.g_VP()}g_eN(){g_bA.g_fV(this.g_acA),g_bA.g_fV(this.g_acl),g_bA.g_fV(this.g_LW),this.g_VH=null,this.g_Cp=null}g_abI(g){for(const _ of g)this.g_LW.push(this.g_aco(_))}g_aco(g){const _=g.slice(0);for(let t=0,e=_.length;t<e;++t){const g=_[t];if(Array.isArray(g)){const a=g_bA.g_eM(g_bA.g_gT);a.g_hG(g),_[t]=a}}return _}g_aaN(){for(const g of this.g_Cp.g_$L())this.g_LW.push(g.g_acy())}g_acr(){return this.g_rR}g_Dn(){return this.g_Cp}g_VP(){g_bA.g_fV(this.g_acl);const g=this.g_Cp.g_$L(),_=this.g_acl,a=this.g_acA;let t=!0;for(let n=0,e=g.length;n<e;++n)if(a[n]){const e=g[n];_.push(e),e.g_ra().g_re()||(t=!1)}this.g_qD=t,this.g_acz.g_acf(!!_.length)}g_EC(){return this.g_acl}g_EH(g){return this.g_LW[g]}g_re(){return this.g_qD}g_acB(){return this.g_acl.some(g=>g.g_ra().g_rb())}g_LY(g){return this.g_acA[g]}g_VO(g,_){this.g_acA[g]=!!_}g_Fd(){return this.g_Cp.g_$L().map(g=>({name:g.g_q_(),active:this.g_acA[g.g_Dl()],params:g_bA.g_Cq.g_acu(this.g_LW[g.g_Dl()])}))}g_Ff(g){for(const _ of g){const g=this.g_Cp.g_LX(_.name);g&&(this.g_acA[g.g_Dl()]=_.active,this.g_LW[g.g_Dl()]=g_bA.g_Cq.g_acv(_.params))}this.g_VP()}},"use strict";{const _=[],t=[],a=[],r=g_bA.g_eM(g_bA.g_jk),n=g_bA.g_eM(g_bA.g_jk),o=g_bA.g_eM(g_bA.g_iH),u=g_bA.g_eM(g_bA.Rect),g=g_bA.g_eM(g_bA.Rect);g_bA.g_acC=class extends g_bA.g_eK{constructor(g){super(),this.g_zM=g,this.g_acD=[],this.g_acE=0,this.g_acF=0,this.g_acG=0,this.g_acH=0}g_eN(){this.g_zM=null}g_acI(){this.g_acF=this.g_acE,this.g_acE=0,this.g_acH=this.g_acG,this.g_acG=0}g_acJ(){return this.g_acF}g_acK(){return this.g_acH}g_acL(g,_){const e=g.g_Bv(),a=_.g_Bv();e&&a&&e.g_abL()&&a.g_abL()&&this.g_acD.push([g,_])}g_acM(g,_,t){for(const[e,n]of this.g_acD){let a=null;if(g===e)a=n;else if(g===n)a=e;else continue;a.g_aaV(_)&&!t.includes(a)&&t.push(a)}}g_acN(g,_){if(!this.g_acD.length)return!1;for(const[e,a]of this.g_acD)if(g===e&&_===a||g===a&&_===e)return!0;return!1}g_acO(){g_bA.g_fV(this.g_acD)}g_acP(_,a){if(!_||!a||_===a)return!1;const t=_.g_Bv(),e=a.g_Bv();if(!t.g_abL()||!e.g_abL())return!1;this.g_acE++;const n=t.g_CN(),g=e.g_CN(),r=n!==g&&!n.g_DU(g);return r?this.g_acQ(t,e):this.g_acR(t,e)}g_acR(g,_){if(!g.g_EI().g_iB(_.g_EI()))return!1;if(this.g_acG++,!g.g_abT().g_jd(_.g_abT()))return!1;if(g.g_aaU()&&_.g_aaU())return!1;if(g.g_aaU())return this.g_acS(g,_);if(_.g_aaU())return this.g_acS(_,g);if(!g.g_ab_()&&!_.g_ab_())return!0;const e=g.g_ab$(),a=_.g_ab$();return e.g_jv(a,_.g_Gw()-g.g_Gw(),_.g_Gx()-g.g_Gx())}g_acQ(_,t){const a=_.g_CN(),o=t.g_CN();r.g_r(_.g_ab$()),n.g_r(t.g_ab$());const u=r.g_jo();for(let g=0,n=u.length;g<n;g+=2){const t=g+1,n=u[g],e=u[t],[r,d]=a.g_Fa(n+_.g_Gw(),e+_.g_Gx());u[g]=r,u[t]=d}const s=n.g_jo();for(let n=0,g=s.length;n<g;n+=2){const _=n+1,a=s[n],r=s[_],[e,g]=o.g_Fa(a+t.g_Gw(),r+t.g_Gx());s[n]=e,s[_]=g}return r.g_jr(),n.g_jr(),this.g_acG++,r.g_jv(n,0,0)}g_acS(_,d){const e=d.g_EI(),u=_.g_Gw(),s=_.g_Gx(),g=_.g_JL().g_LU(),f=d.g_Gw(),i=d.g_Gx(),p=d.g_ab_(),l=d.g_abT(),h=t;g.g_acT(e,h);for(let g=0,a=h.length;g<a;++g){const _=h[g],a=_.g_acU();if(this.g_acE++,e.g_iC(a,u,s)&&(o.g_i_(a),o.offset(u,s),o.g_jd(l)))if(p){const e=d.g_ab$(),t=_.g_acV();if(t){if(this.g_acG++,t.g_jv(e,f-(u+a.g_ih()),i-(s+a.g_ii())))return g_bA.g_fV(h),!0;}else if(r.g_jt(o,0,0),r.g_jv(e,f,i))return g_bA.g_fV(h),!0}else{const g=_.g_acV();if(!g)return g_bA.g_fV(h),!0;if(r.g_jt(l,0,0),g.g_jv(r,-(u+a.g_ih()),-(s+a.g_ii())))return g_bA.g_fV(h),!0}}return g_bA.g_fV(h),!1}g_acW(_,t,n,r){const d=_.g_ND(),e=this.g_zM.g_Oa();if(!e)throw new Error("cannot call outside event");const o=e.g_N$();if(d.g_NO()){r||(d.g_NV(!1),g_bA.g_fV(d.g_NW()));for(const g of _.g_Gp()){const _=g.g_Bv(),e=_.g_CN(),[a,i]=e.g_ER(t,n,_.g_Hn());if(_.g_acc(a,i)){if(r)return!1;d.g_NT(g)}else o&&d.g_NU(g)}}else{const g=o?d.g_NX():d.g_NW();let _=0;for(let e=0,a=g.length;e<a;++e){const a=g[e],i=a.g_Bv(),u=i.g_CN(),[s,l]=u.g_ER(t,n,i.g_Hn());if(i.g_acc(s,l)){if(r)return!1;o?d.g_NT(a):g[_++]=a}}r||(g.length=_)}return _.g_Vg(),!!r||d.g_NP()}g_acX(g,_,t,n){const i=!!g&&(1!==g.g_DB()||1!==g.g_DC());if(_.g_De())for(const g of _.g_Sv())i||g.g_aam()?g_bA.g_eG(n,g.g_Gp()):(g.g_aan(),g.g_aak().g_BP(t,n));else i||_.g_aam()?g_bA.g_eG(n,_.g_Gp()):(_.g_aan(),_.g_aak().g_BP(t,n))}g_acY(g,_,a,t){for(const n of _)this.g_acX(g,n,a,t)}g_acZ(g,_,e){const a=this.g_zM.g_ZQ();a&&this.g_acY(g,a.g_Ze(),_,e)}g_ac_(g,_,e){const a=this.g_zM.g_ZR();a&&this.g_acY(g,a.g_Ze(),_,e)}g_abP(g,_){const e=g.g_Ve();return e.get("solidEnabled")&&(!_||_.g_Bv().g_abP(e.get("solidTags")))}g_ac$(g){const e=g.g_Bv();this.g_acZ(e.g_CN(),e.g_EI(),_);for(const e of _)if(this.g_abP(e,g)&&this.g_acP(g,e))return g_bA.g_fV(_),e;return g_bA.g_fV(_),null}g_ada(g,e){this.g_acZ(null,g,_);for(const a of _)if(this.g_abP(a,e)&&this.g_adb(g,a))return g_bA.g_fV(_),a;return g_bA.g_fV(_),null}g_adc(g,t){let n=null;t&&(n=a,g_bA.g_fV(n));const i=g.g_Bv();this.g_ac_(i.g_CN(),i.g_EI(),_);for(const e of _)if(e.g_Ve().get("jumpthruEnabled")&&this.g_acP(g,e))if(t)n.push(e);else return g_bA.g_fV(_),e;return g_bA.g_fV(_),n}g_add(_,a,t,n,i){n=n||50;const e=_.g_Bv(),r=e.g_Gw(),g=e.g_Gx();for(let d=0;d<n;++d)if(e.g_VF(r+a*d,g+t*d),e.g_CO(),!this.g_acP(_,i))return!0;return e.g_VF(r,g),e.g_CO(),!1}g_ade(_,a,t,n,i,e){n=n||50;const r=_.g_Bv(),g=r.g_Gw(),o=r.g_Gx();let u=null,s=null;for(let d=0;d<n;++d)if(r.g_VF(g+a*d,o+t*d),r.g_CO(),!this.g_acP(_,u))if(u=this.g_ac$(_),u)s=u;else if(i&&(u=e?this.g_acP(_,e)?e:null:this.g_adc(_),u&&(s=u)),!u)return s&&this.g_adf(_,a,t,s,16),!0;return r.g_VF(g,o),r.g_CO(),!1}g_adg(_,a,t,n){n=n||50;const r=_.g_Bv(),e=r.g_Gw(),o=r.g_Gx();let g=null,u=null;for(let s=0;s<n;++s)for(let n=0;2>n;++n){const d=2*n-1;if(r.g_VF(e+a*s*d,o+t*s*d),r.g_CO(),!this.g_acP(_,g))if(g=this.g_ac$(_),g)u=g;else return u&&this.g_adf(_,a*d,t*d,u,16),!0}return r.g_VF(e,o),r.g_CO(),!1}g_adf(_,a,t,n,r){let d=2,o=!1,u=!1;const s=_.g_Bv();let i=s.g_Gw(),l=s.g_Gx();for(;d<=r;){const g=1/d;d*=2,s.g_VJ(a*g*(o?1:-1),t*g*(o?1:-1)),s.g_CO(),this.g_acP(_,n)?(o=!0,u=!0):(o=!1,u=!1,i=s.g_Gw(),l=s.g_Gx())}u&&(s.g_VF(i,l),s.g_CO())}g_adh(_,a=100){var t=Math.floor;let n=0;const r=_.g_Bv(),e=r.g_Gw(),o=r.g_Gx();let g=0,u=this.g_ac$(_);if(!u)return!0;for(;n<=a;){let a=0,i=0;if(0==g?(a=0,i=-1,n++):1==g?(a=1,i=-1):2==g?(a=1,i=0):3==g?(a=1,i=1):4==g?(a=0,i=1):5==g?(a=-1,i=1):6==g?(a=-1,i=0):7==g?(a=-1,i=-1):void 0,g=(g+1)%8,r.g_VF(t(e+a*n),t(o+i*n)),r.g_CO(),!this.g_acP(_,u)&&(u=this.g_ac$(_),!u))return!0}return r.g_VF(e,o),r.g_CO(),!1}g_adi(_,a,M,c){var d=Math.sin,e=Math.cos,f=Math.PI;const N=_.g_Bv(),g=N.g_Gw(),h=N.g_Gx(),b=Math.max(10,g_bA.g_eU(a,M,g,h)),l=g_bA.g_eW(a,M,g,h),m=c||this.g_ac$(_);if(!m)return g_bA.g_eR(l+f);let n=m,T=0,L=0;const z=g_bA.g_eS(5);let r;for(r=1;36>r;++r){const t=l-r*z;if(N.g_VF(a+e(t)*b,M+d(t)*b),N.g_CO(),!this.g_acP(_,n)&&(n=c?null:this.g_ac$(_),!n)){T=t;break}}for(36===r&&(T=g_bA.g_eR(l+f)),n=m,r=1;36>r;++r){const t=l+r*z;if(N.g_VF(a+e(t)*b,M+d(t)*b),N.g_CO(),!this.g_acP(_,n)&&(n=c?null:this.g_ac$(_),!n)){L=t;break}}if(36===r&&(L=g_bA.g_eR(l+f)),N.g_VF(g,h),N.g_CO(),L===T)return L;const D=g_bA.g_eX(L,T)/2;let i=g_bA.g_eZ(L,T)?g_bA.g_eR(T+D+f):g_bA.g_eR(L+D);const t=e(l),u=d(l),v=e(i),w=d(i),O=t*v+u*w;return g_bA.g_eW(0,0,t-2*O*v,u-2*O*w)}g_adj(g,_,a,t,n){var e=Math.min,r=Math.max;if(!n)return!1;const d=n.g_Bv();if(!d.g_abL())return!1;if(this.g_acE++,u.set(e(g,a),e(_,t),r(g,a),r(_,t)),!d.g_EI().g_iB(u))return!1;if(n.g_aaU())return this.g_adk(g,_,a,t,n,d);if(this.g_acG++,!d.g_abT().g_jc(g,_,a,t))return!1;if(!d.g_ab_())return!0;const i=d.g_ab$();return i.g_jc(d.g_Gw(),d.g_Gx(),g,_,a,t)}g_adk(_,a,r,e,d,s){const i=s.g_Gw(),f=s.g_Gx(),l=d.g_LU(),p=t;g.set(_,a,r,e),g.normalize(),l.g_acT(g,p);for(let g=0,t=p.length;g<t;++g){const t=p[g],n=t.g_acU();if(this.g_acE++,u.g_iC(n,i,f)&&(o.g_i_(n),o.offset(i,f),o.g_jc(_,a,r,e))){const g=t.g_acV();if(!g)return g_bA.g_fV(p),!0;if(this.g_acG++,g.g_jc(i+n.g_ih(),f+n.g_ii(),_,a,r,e))return g_bA.g_fV(p),!0}}return g_bA.g_fV(p),!1}g_adb(_,a){if(!a)return!1;const t=a.g_Bv();if(!t.g_abL())return!1;if(this.g_acE++,!t.g_EI().g_iB(_))return!1;if(a.g_aaU())return this.g_adl(_,a,t);if(this.g_acG++,o.g_i_(_),!t.g_abT().g_jd(o))return!1;if(!t.g_ab_())return!0;const n=r;n.g_i_(_,t.g_Gw(),t.g_Gx());const e=t.g_ab$();return n.g_jv(e,0,0)}g_adl(_,a,n){const i=n.g_Gw(),d=n.g_Gx(),g=a.g_LU(),o=t;g.g_acT(_,o);for(let g=0,e=o.length;g<e;++g){const a=o[g],e=a.g_acU();if(this.g_acE++,_.g_iC(e,i,d)){const g=a.g_acV();if(!g)return g_bA.g_fV(o),!0;if(this.g_acG++,r.g_i_(_,0,0),g.g_jv(r,-(i+e.g_ih()),-(d+e.g_ii())))return g_bA.g_fV(o),!0}}return g_bA.g_fV(o),!1}}}"use strict",g_bA.g__Z=class extends g_bA.g_eK{constructor(g,_){super(),this.g_BI=g,this.g_BJ=_,this.g_BK=g_bA.g_eM(g_bA.g_jA)}g_eN(){this.g_BK.g_eN(),this.g_BK=null}g_BL(g,_,e){let a=this.g_BK.g_bR(g,_);return a?a:e?(a=g_bA.g_eM(g_bA.g_adm,this,g,_),this.g_BK.Set(g,_,a),a):null}g_BM(g){const _=Math.floor(g/this.g_BI);return isFinite(_)?_:0}g_BN(g){const _=Math.floor(g/this.g_BJ);return isFinite(_)?_:0}g_BO(g,_,a){if(_)for(let t=_.g_ih(),n=_.g_ij();t<=n;++t)for(let n=_.g_ii(),e=_.g_ik();n<=e;++n){if(a&&a.g_iD(t,n))continue;const _=this.g_BL(t,n,!1);_&&(_.g_lC(g),_.g_jM()&&this.g_BK.g_jD(t,n))}if(a)for(let t=a.g_ih(),n=a.g_ij();t<=n;++t)for(let n=a.g_ii(),e=a.g_ik();n<=e;++n)_&&_.g_iD(t,n)||this.g_BL(t,n,!0).g_BE(g)}g_BP(g,_){let t=this.g_BM(g.g_ih());const n=this.g_BN(g.g_ii()),a=this.g_BM(g.g_ij()),e=this.g_BN(g.g_ik());if(isFinite(a)&&isFinite(e))for(;t<=a;++t)for(let g=n;g<=e;++g){const e=this.g_BL(t,g,!1);e&&e.g_BG(_)}}},"use strict",g_bA.g_adm=class extends g_bA.g_eK{constructor(g,_,e){super(),this.g_Bx=g,this.g_hP=_,this.g_hQ=e,this.g_By=g_bA.g_eM(g_bA.g_jH)}g_eN(){this.g_By.g_eN(),this.g_By=null,this.g_Bx=null}g_jM(){return this.g_By.g_jM()}g_BE(g){this.g_By.g_jL(g)}g_lC(g){this.g_By.g_jD(g)}g_BG(g){g_bA.g_eG(g,this.g_By.g_jN())}},"use strict";{const g=new Set(["off","crop","scale-inner","scale-outer","letterbox-scale","letterbox-integer-scale"]),_=new Set(["high","low"]),t=g_bA.g_eM(g_bA.g_iH),u=g_bA.g_eM(g_bA.Rect);g_bA.g_adn=class extends g_bA.g_eK{constructor(g){super(),this.g_zM=g,this.g_ado=null,this.g_adp=null,this.g_adq="high-performance",this.g_adr=0,this.g_ads=0,this.g_adt=0,this.g_adu=0,this.g_adv=0,this.g_adw=0,this.g_adx=0,this.g_ady=0,this.g_adz=0,this.g_adA=0,this.g_adB="letterbox-scale",this.g_adC="letterbox-scale",this.g_adD=0,this.g_adE=0,this.g_adF="high",this.g_adG=this.g_adF,this.g_adH=!1,this.g_adI=[],this.g_adJ=new Set,this.g_adK=null,this.g_adL=null,this.g_adM=0,this.g_adN=0,this.g_adO=NaN,this.g_adP=0,this.g_adQ=new Map,this.g_adR="",this.g_adS=1,this.g_adT="",this.g_adU=null,this.g_adV=null,this.g_adW=0,this.g_adX=-1,this.g_adY=0,this.g_adZ=g=>this.g_adY=g.g_AP,this.g_ad_=null,this.g_ad$=null,this.g_aea={g_aeb:null,g_aec:null,g_aed:null},this.g_aee=0,this.g_aef=0,this.g_aeg=0,this.g_aeh="fade-in",this.g_aei=null,this.g_aej=new Promise(g=>this.g_aei=g)}g_aek(g){this.g_adq=g}async g_gC(g){this.g_ado=g.canvas,this.g_ado.addEventListener("webglcontextlost",g=>this.g_FX(g)),this.g_ado.addEventListener("webglcontextrestored",g=>this.g_ael(g)),this.g_adp=g_bA.g_eM(g_bA.g_oh.g_v_,this.g_ado,{g_vV:g.maxWebGLVersion,g_vT:this.g_adq,g_vU:!0,alpha:!0}),await this.g_adp.g_xl(),this.g_adp.g_zq()||(this.g_adP=NaN),this.g_zM.g_XU("runtime","window-resize",g=>this.g_aem(g)),this.g_zM.g_XU("runtime","fullscreenchange",g=>this.g_aen(g)),this.g_zM.g_XU("runtime","fullscreenerror",g=>this.g_aeo(g)),this.g_adH=!!g.isFullscreen,this.g_uD(g.windowInnerWidth,g.windowInnerHeight,!0),this.g_adK=g.shaders||self.C3_Shaders,await this.g_aep();let _=!1;for(const e of this.g_zM.g_aeq()){for(const g of e.g_$L())g.g_acx(this.g_adp),g.g_ra().g_rb()&&(_=!0);e.g_VP()}this.g_zM.g_aer(_),this.g_adp.g_zq()&&(this.g_adL=g_bA.g_eM(g_bA.g_oh.g_vq,this.g_adp))}async g_aep(){if(this.g_adK){const g=[];for(const[_,e]of Object.entries(this.g_adK)){const a=g_bA.g_oh.g_pI.g_rF(this.g_adp.g_xo());g.push(this.g_adp.g_xm(e,a,_))}await Promise.all(g),this.g_adp.g_xt(),this.g_adp.g_xn()}}g_eN(){this.g_zM=null,this.g_adp=null,this.g_ado=null}g_aem(g){this.g_zM.g_AU()&&(self.devicePixelRatio=g.devicePixelRatio),this.g_uD(g.innerWidth,g.innerHeight),this.g_zM.g_Dt()}g_aen(g){this.g_adH=!!g.isFullscreen,this.g_uD(g.innerWidth,g.innerHeight,!0),this.g_zM.g_Dt()}g_aeo(g){this.g_adH=!!g.isFullscreen,this.g_uD(g.innerWidth,g.innerHeight,!0),this.g_zM.g_Dt()}g_uD(g,_,e=!1){var t=Math.floor;if(g=t(g),_=t(_),0>=g||0>=_)throw new Error("invalid size");if(this.g_adr!==g||this.g_ads!==_||e){this.g_adr=g,this.g_ads=_;const e=this.g_aes();"letterbox-scale"===e?this.g_aet(g,_):"letterbox-integer-scale"===e?this.g_aeu(g,_):"off"===e?this.g_aev(g,_):this.g_aew(g,_),this.g_aex(e),this.g_ado.width=this.g_adv,this.g_ado.height=this.g_adw,this.g_zM.g_Yl("canvas","update-size",{marginLeft:this.g_adx,marginTop:this.g_ady,styleWidth:this.g_adt,styleHeight:this.g_adu}),this.g_adp.g_uD(this.g_adv,this.g_adw,!0)}}g_aet(_,a){var t=Math.round,n=Math.floor;const i=self.devicePixelRatio,e=this.g_zM.g_Cx(),r=this.g_zM.g_Cy(),g=e/r;_/a>g?(this.g_adt=t(a*g),this.g_adu=a,this.g_adx=n((_-this.g_adt)/2),this.g_ady=0):(this.g_adt=_,this.g_adu=t(_/g),this.g_adx=0,this.g_ady=n((a-this.g_adu)/2)),this.g_adv=t(this.g_adt*i),this.g_adw=t(this.g_adu*i),this.g_zM.g_aey(e,r)}g_aeu(_,t){var n=Math.max,r=Math.round,d=Math.floor;const e=self.devicePixelRatio;1!==e&&(_+=1,t+=1);const o=this.g_zM.g_Cx(),g=this.g_zM.g_Cy(),u=o/g,i=_/t;let s;if(i>u){const g=t*u;s=g*e/o}else{const a=_/u;s=a*e/g}1<s?s=d(s):1>s&&(s=1/Math.ceil(1/s)),this.g_adv=r(o*s),this.g_adw=r(g*s),this.g_adt=this.g_adv/e,this.g_adu=this.g_adw/e,this.g_adx=n(d((_-this.g_adt)/2),0),this.g_ady=n(d((t-this.g_adu)/2),0),this.g_zM.g_aey(o,g)}g_aew(g,_){var a=Math.round;const t=self.devicePixelRatio;this.g_adt=g,this.g_adu=_,this.g_adv=a(this.g_adt*t),this.g_adw=a(this.g_adu*t),this.g_adx=0,this.g_ady=0;const n=this.g_EO();this.g_zM.g_aey(this.g_adt/n,this.g_adu/n)}g_aev(g,_){var a=Math.round,t=Math.floor;const n=self.devicePixelRatio;this.g_adt=this.g_zM.g_ET(),this.g_adu=this.g_zM.g_EU(),this.g_adv=a(this.g_adt*n),this.g_adw=a(this.g_adu*n),this.g_aez()?(this.g_adx=t((g-this.g_adt)/2),this.g_ady=t((_-this.g_adu)/2)):(this.g_adx=0,this.g_ady=0),this.g_zM.g_aey(this.g_zM.g_ET(),this.g_zM.g_EU())}g_aex(g){if("high"===this.g_adF)this.g_adz=this.g_adv,this.g_adA=this.g_adw,this.g_adG="high";else{let _,e;if("off"===this.g_aes()?(_=this.g_zM.g_ET(),e=this.g_zM.g_EU()):(_=this.g_zM.g_Cx(),e=this.g_zM.g_Cy()),this.g_adv<_&&this.g_adw<e)this.g_adz=this.g_adv,this.g_adA=this.g_adw,this.g_adG="high";else if(this.g_adz=_,this.g_adA=e,this.g_adG="low","scale-inner"===g){const g=_/e,a=this.g_adr/this.g_ads;a<g?this.g_adz=this.g_adA*a:a>g&&(this.g_adA=this.g_adz/a)}else if("scale-outer"===g){const g=_/e,a=this.g_adr/this.g_ads;a>g?this.g_adz=this.g_adA*a:a<g&&(this.g_adA=this.g_adz/a)}}}g_aez(){return this.g_adH}g_aeA(_){if(!g.has(_))throw new Error("invalid fullscreen mode");this.g_adB=_}g_aeB(){return this.g_adB}g_aeC(_){if(!g.has(_))throw new Error("invalid fullscreen mode");this.g_adC=_}g_aeD(){return this.g_adC}g_aes(){return this.g_aez()?this.g_aeD():this.g_aeB()}g_aeE(g){if(!_.has(g))throw new Error("invalid fullscreen scaling quality");this.g_adF=g}g_aeF(){return this.g_adF}g_Eq(){return this.g_adG}static g_aeG(g){switch(g){case 0:return"off";case 1:return"crop";case 2:return"scale-inner";case 3:return"scale-outer";case 4:return"letterbox-scale";case 5:return"letterbox-integer-scale";default:throw new Error("invalid fullscreen mode");}}g_YJ(){return this.g_adr}g_YL(){return this.g_ads}g_Er(){return this.g_adz}g_Es(){return this.g_adA}g_aeH(){return this.g_adp.g_uT()}g_FX(g){console.log("[Construct 3] WebGL context lost"),g.preventDefault(),this.g_adI=[],this.g_adJ.clear(),this.g_adp.g_o$(),this.g_zM.g_FX()}async g_ael(){await this.g_adp.g_vP(),await this.g_aep();for(const g of this.g_zM.g_aeq())for(const _ of g.g_$L())_.g_acx(this.g_adp);await this.g_zM.g_ael(),console.log("[Construct 3] WebGL context restored")}g_pu(){return this.g_adp}g_Ek(){return"low"===this.g_adG?1/self.devicePixelRatio:this.g_EO()}g_EO(){const g=this.g_aes();if("off"===g||"crop"===g)return 1;const _=this.g_zM.g_Cx(),a=this.g_zM.g_Cy(),t=_/a,n=this.g_adv/this.g_adw;return"scale-inner"!==g&&n>t||"scale-inner"===g&&n<t?this.g_adu/a:this.g_adt/_}g_aeI(g,_){this.g_adD=g,this.g_adE=_}g_HL(g,_,a){const t=(_||this.g_adz)/2+this.g_adD,n=(a||this.g_adA)/2+this.g_adE;g.g_xA(t,n,100*self.devicePixelRatio),g.g_xB(t,n,0),g.g_xC(),g.g_xG()}g_aeJ(g){const _=this.g_adt/2,e=this.g_adu/2;g.g_xA(_,e,100),g.g_xB(_,e,0),g.g_xC(),g.g_xG()}g_aeK(){return this.g_adv}g_aeL(){return this.g_adw}g_YT(){return this.g_adt}g_YU(){return this.g_adu}g_YV(){return this.g_adx}g_YW(){return this.g_ady}g_Et(g){const _=this.g_adI,e=_.findIndex(_=>_.g_pC(g));let a;return-1===e?a=this.g_adp.g_zi(g):(a=_[e],_.splice(e,1)),this.g_adJ.add(a),a}g_EL(g){if(!this.g_adJ.has(g))throw new Error("render target not in use");this.g_adJ.delete(g),this.g_adI.push(g)}*g_aeM(){for(const g of this.g_zM.g_Qj().g_Hd())for(const _ of g.g_FG()){const g=this.g_adQ.get(_);g&&(yield g)}}g_Eo(g){if(!this.g_adp.g_zq())return null;let _=this.g_adQ.get(g);return _||(_={name:g.g_q_(),g_aeN:g_bA.g_eM(g_bA.g_oh.g_vq,this.g_adp),g_aeO:0,g_aeP:0},this.g_adQ.set(g,_)),_.g_aeN}g_aeQ(){if(this.g_adp.g_zq()&&0===this.g_adN){this.g_adN=this.g_adp.g_vh(),this.g_adO=NaN;for(const g of this.g_aeM())g.g_aeO=NaN}}g_aeR(){var g=Math.min;if(this.g_adp.g_zq()&&isNaN(this.g_adO)&&(this.g_adO=this.g_adL.g_vx(this.g_adM,this.g_adN),!isNaN(this.g_adO))){if(this.g_zM.g_Rf())for(const g of this.g_aeM())if(g.g_aeO=g.g_aeN.g_vx(this.g_adM,this.g_adN),isNaN(g.g_aeO))return;if(this.g_adL.g_vy(this.g_adN),this.g_adP=g(this.g_adO,1),this.g_zM.g_Rf()){for(const _ of this.g_aeM())_.g_aeN.g_vy(this.g_adN),_.g_aeP=g(_.g_aeO,1);g_aeT.g_aeS(this.g_adP,[...this.g_aeM()])}this.g_adM=this.g_adN,this.g_adN=0}}g_aeU(){return this.g_adL}g_aeV(){return this.g_adP}g_aeW(g,_){return(this.g_adR=g,this.g_adS=_,this.g_adU)?this.g_adU:(this.g_adU=new Promise(g=>{this.g_adV=g}),this.g_adU)}g_aeX(){this.g_adR&&(g_bA.g_cT(this.g_ado,this.g_adR,this.g_adS).then(g=>{this.g_adT=URL.createObjectURL(g),this.g_adU=null,this.g_adV(this.g_adT)}),this.g_adR="",this.g_adS=1)}g_aeY(){return this.g_adT}g_aeZ(g){if(2===g)this.g_ad_=g_bA.g_eM(g_bA.g_oh.g_tq,this.g_adp),this.g_ad_.g_uk(!1),this.g_ad_.g_un("Arial"),this.g_ad_.g_uo(16),this.g_ad_.g_uz("center"),this.g_ad_.g_uA("center"),this.g_ad_.g_uD(300,200);else if(0===g){const g=this.g_zM.g_ae_();let _;if(this.g_zM.g_AC()){if(!g.g_Au("loading-logo.png"))return;_=g.g_AA("loading-logo.png")}else _=g.g_As()+"loading-logo.png";this.g_ad$=g.g_AG({url:_}),this.g_ad$.g_Bs(this.g_adp).catch(()=>console.warn(`[C3 runtime] Failed to load 'loading-logo.png' for loading screen. Check the project has an icon with that name.`))}else 4==g&&(this.g_ae$("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4NCjwhLS0gR2VuZXJhdG9yOiBBZG9iZSBJbGx1c3RyYXRvciAxNi4wLjAsIFNWRyBFeHBvcnQgUGx1Zy1JbiAuIFNWRyBWZXJzaW9uOiA2LjAwIEJ1aWxkIDApICAtLT4NCjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+DQo8c3ZnIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeD0iMHB4IiB5PSIwcHgiDQoJIHdpZHRoPSIxNzAwLjc5MDA0cHgiIGhlaWdodD0iMTcwMC43OTAwNHB4IiB2aWV3Qm94PSIyODcgMzE3IDExMjUgMTEyNSINCgkgZW5hYmxlLWJhY2tncm91bmQ9Im5ldyAwIDAgMTcwMC43OTAwNCAxNzAwLjc5MDA0IiB4bWw6c3BhY2U9InByZXNlcnZlIj4NCjxnIGlkPSJsb2dvIj4NCgk8Zz4NCgkJPGc+DQoJCQk8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZmlsbD0iI0ZGRkZGRiIgZD0iTTM1NC45Nzc1NCwxMTk1LjYyMzA1DQoJCQkJYzExLjM4NDc3LDAsMjIuMDEyNywzLjIzNzMsMzEuMDE3NTgsOC44Mzc4OWMxLjk0NjI5LDEuMjEwOTQsMi41ODQ5NiwzLjc0OTAyLDEuNDM4NDgsNS43MzQzOGwtNC45MzI2Miw4LjU0MTk5DQoJCQkJYy0zLjI3ODMyLDUuNjc5NjktMTAuMDMzMiw4LjM3Njk1LTE2LjMxNzM4LDYuNTAwOThjLTIuNzY0NjUtMC44MjUyLTUuNjkzMzYtMS4yNjg1NS04LjcyNjU2LTEuMjY4NTUNCgkJCQljLTE2LjgyOTEsMC0zMC40NzI2NiwxMy42NDM1NS0zMC40NzI2NiwzMC40NzI2NmMwLDE2LjgyODEzLDEzLjY0MzU1LDMwLjQ3MjY2LDMwLjQ3MjY2LDMwLjQ3MjY2DQoJCQkJYzMuMDMzMiwwLDUuOTYxOTEtMC40NDMzNiw4LjcyNjU2LTEuMjY4NTVjNi4yOTQ5Mi0xLjg3OTg4LDEzLjAzMzIsMC44MTE1MiwxNi4zMTczOCw2LjUwMDk4bDQuOTMxNjQsOC41NDE5OQ0KCQkJCWMxLjE0NzQ2LDEuOTg4MjgsMC41MTA3NCw0LjUyMzQ0LTEuNDM4NDgsNS43MzQzOGMtOS4wMDM5MSw1LjYwMTU2LTE5LjYzMTg0LDguODM3ODktMzEuMDE2Niw4LjgzNzg5DQoJCQkJYy0zMi40ODUzNSwwLTU4LjgxOTM0LTI2LjMzNDk2LTU4LjgxOTM0LTU4LjgxOTM0QzI5Ni4xNTgyLDEyMjEuOTU3MDMsMzIyLjQ5MjE5LDExOTUuNjIzMDUsMzU0Ljk3NzU0LDExOTUuNjIzMDUNCgkJCQlMMzU0Ljk3NzU0LDExOTUuNjIzMDV6IE03MDMuMjE0ODQsMTI1OS4xNzU3OGMtMTQuNTU5NTctOS44MTczOC0yMC4yMDMxMy0yMC4wMzIyMy0yMC4yMDMxMy0zMy4wODAwOA0KCQkJCWMwLTE4LjQ4OTI2LDE1LjcxNDg0LTI5Ljc2MzY3LDM4LjI2NjYtMjkuNzYzNjdjOS42NTcyMywwLDE4LjcyMTY4LDIuNTQyOTcsMjYuNTU5NTcsNi45OTQxNA0KCQkJCWMyLjA0OTgsMS4xNjQwNiwyLjc2MTcyLDMuNzgzMiwxLjU4MzAxLDUuODI0MjJsLTMuNDE3OTcsNS45MTk5MmMtMy4yNDcwNyw1LjYyNDAyLTkuOTA4Miw4LjMzMTA1LTE2LjE1MzMyLDYuNTQ4ODMNCgkJCQljLTIuNzIzNjMtMC43NzYzNy01LjU5ODYzLTEuMTkyMzgtOC41NzEyOS0xLjE5MjM4Yy0xMC40OTAyMywwLTExLjU5ODYzLDkuNTc2MTctNC44NTc0MiwxNC4xMjMwNWwyMy42ODY1MiwxNS45NzY1Ng0KCQkJCWM5Ljk5MDIzLDYuNzM4MjgsMTUuODk1NTEsMTcuMDY2NDEsMTUuODk1NTEsMjguNzE4NzVjMCwxOC43ODYxMy0xNS4wMDY4NCwzMy4zMDc2Mi0zOC4yNjc1OCwzMy4zMDc2Mg0KCQkJCWMtOS41MjI0NiwwLTE4LjU4Nzg5LTEuOTU3MDMtMjYuODE1NDMtNS40OTAyM2MtNy43ODEyNS0zLjMzOTg0LTEwLjkzMzU5LTEyLjc4MjIzLTYuNjk3MjctMjAuMTE4MTZsMy40ODczLTYuMDQxOTkNCgkJCQljMS4yMTM4Ny0yLjA5OTYxLDMuOTMxNjQtMi43NTk3Nyw1Ljk3NDYxLTEuNDU2MDVjNi44NTkzOCw0LjM4MjgxLDE2LjQ5MDIzLDcuNTk0NzMsMjQuNzU4NzksNy41OTQ3Mw0KCQkJCWMxMC41NDU5LDAsMTEuMzI4MTMtOS45NTg5OCwzLjc2NzU4LTE1LjA1NzYyTDcwMy4yMTQ4NCwxMjU5LjE3NTc4TDcwMy4yMTQ4NCwxMjU5LjE3NTc4eiBNOTg0LjYzMDg2LDEyMDIuMDAwOTgNCgkJCQljMC0yLjM0NzY2LDEuOTAzMzItNC4yNTE5NSw0LjI1MTk1LTQuMjUxOTVoOS45MjE4OGM3LjgyNzE1LDAsMTQuMTcyODUsNi4zNDU3LDE0LjE3Mjg1LDE0LjE3MzgzdjU3LjQwMTM3DQoJCQkJYzAsOC42MTAzNSw2Ljk4MDQ3LDE1LjU5MDgyLDE1LjU5MDgyLDE1LjU5MDgyczE1LjU5MDgyLTYuOTgwNDcsMTUuNTkwODItMTUuNTkwODJ2LTU3LjQwMTM3DQoJCQkJYzAtNy44MjgxMyw2LjM0NTctMTQuMTczODMsMTQuMTcyODUtMTQuMTczODNoOS45MjA5YzIuMzQ4NjMsMCw0LjI1MTk1LDEuOTA0Myw0LjI1MTk1LDQuMjUxOTV2NjcuMzIzMjQNCgkJCQljMCwyNC4yNjU2My0xOS42NzA5LDQzLjkzNzUtNDMuOTM2NTIsNDMuOTM3NXMtNDMuOTM3NS0xOS42NzE4OC00My45Mzc1LTQzLjkzNzVWMTIwMi4wMDA5OEw5ODQuNjMwODYsMTIwMi4wMDA5OHoNCgkJCQkgTTQ2Ni44NjkxNCwxMTk1LjYyMzA1YzMyLjQ4NDM4LDAsNTguODE4MzYsMjYuMzMzOTgsNTguODE4MzYsNTguODE5MzRjMCwzMi40ODQzOC0yNi4zMzM5OCw1OC44MTkzNC01OC44MTgzNiw1OC44MTkzNA0KCQkJCWMtMzIuNDg2MzMsMC01OC44MTkzNC0yNi4zMzQ5Ni01OC44MTkzNC01OC44MTkzNEM0MDguMDQ5OCwxMjIxLjk1NzAzLDQzNC4zODI4MSwxMTk1LjYyMzA1LDQ2Ni44NjkxNCwxMTk1LjYyMzA1DQoJCQkJTDQ2Ni44NjkxNCwxMTk1LjYyMzA1eiBNNDY2Ljg2OTE0LDEyMjUuMDMzMmMtMTYuMjQzMTYsMC0yOS40MTAxNiwxMy4xNjY5OS0yOS40MTAxNiwyOS40MDkxOA0KCQkJCXMxMy4xNjY5OSwyOS40MDgyLDI5LjQxMDE2LDI5LjQwODJjMTYuMjQxMjEsMCwyOS40MDgyLTEzLjE2NjAyLDI5LjQwODItMjkuNDA4MlM0ODMuMTEwMzUsMTIyNS4wMzMyLDQ2Ni44NjkxNCwxMjI1LjAzMzINCgkJCQlMNDY2Ljg2OTE0LDEyMjUuMDMzMnogTTU1Ni43MzI0MiwxMzExLjEzNDc3Yy0yLjM0NzY2LDAtNC4yNTE5NS0xLjkwMjM0LTQuMjUxOTUtNC4yNXYtOTQuOTYxOTENCgkJCQljMC03LjgyODEzLDYuMzQ1Ny0xNC4xNzM4MywxNC4xNzM4My0xNC4xNzM4M2gzLjk1ODk4YzQuNjI1LDAsOC45NTg5OCwyLjI1Njg0LDExLjYxMTMzLDYuMDQ1OWw0MS4xMjIwNyw1OC43NDcwN3YtNTAuNjE5MTQNCgkJCQljMC03LjgyODEzLDYuMzQ1Ny0xNC4xNzM4MywxNC4xNzI4NS0xNC4xNzM4M2g5LjkyMTg4YzIuMzQ3NjYsMCw0LjI1MTk1LDEuOTA0Myw0LjI1MTk1LDQuMjUxOTV2OTQuOTYwOTQNCgkJCQljMCw3LjgyOTEtNi4zNDU3LDE0LjE3Mjg1LTE0LjE3MzgzLDE0LjE3Mjg1aC0zLjk1ODk4Yy00LjYyNSwwLTguOTU4OTgtMi4yNTU4Ni0xMS42MTEzMy02LjA0NDkybC00MS4xMjIwNy01OC43NDYwOXY1MC42MTgxNg0KCQkJCWMwLDcuODI5MS02LjM0NTcsMTQuMTcyODUtMTQuMTcyODUsMTQuMTcyODVINTU2LjczMjQyTDU1Ni43MzI0MiwxMzExLjEzNDc3eiBNMTIxNS4wMjA1MSwxMjExLjkyMjg1DQoJCQkJYzAtNy44MjgxMyw2LjM0NTctMTQuMTczODMsMTQuMTcyODUtMTQuMTczODNoNTAuMzE1NDNjMi4zNDg2MywwLDQuMjUxOTUsMS45MDQzLDQuMjUxOTUsNC4yNTE5NXY1LjY2OTkyDQoJCQkJYzAsNy44MjcxNS02LjM0NTcsMTQuMTcyODUtMTQuMTcyODUsMTQuMTcyODVoLTYuMDI0NDF2NzUuMTE4MTZjMCw3LjgyOTEtNi4zNDU3LDE0LjE3Mjg1LTE0LjE3Mjg1LDE0LjE3Mjg1aC05LjkyMTg4DQoJCQkJYy0yLjM0ODYzLDAtNC4yNTE5NS0xLjkwMjM0LTQuMjUxOTUtNC4yNXYtODUuMDQxMDJoLTE1Ljk0NDM0Yy0yLjM0ODYzLDAtNC4yNTE5NS0xLjkwMzMyLTQuMjUxOTUtNC4yNTE5NVYxMjExLjkyMjg1DQoJCQkJTDEyMTUuMDIwNTEsMTIxMS45MjI4NXogTTc3Ni40NDkyMiwxMjExLjkyMjg1YzAtNy44MjgxMyw2LjM0NTctMTQuMTczODMsMTQuMTczODMtMTQuMTczODNoNTAuMzE0NDUNCgkJCQljMi4zNDk2MSwwLDQuMjUxOTUsMS45MDQzLDQuMjUxOTUsNC4yNTE5NXY1LjY2OTkyYzAsNy44MjcxNS02LjM0NTcsMTQuMTcyODUtMTQuMTcxODgsMTQuMTcyODVoLTYuMDI1Mzl2NzUuMTE4MTYNCgkJCQljMCw3LjgyOTEtNi4zNDU3LDE0LjE3Mjg1LTE0LjE3Mjg1LDE0LjE3Mjg1aC05LjkyMDljLTIuMzQ5NjEsMC00LjI1MTk1LTEuOTAyMzQtNC4yNTE5NS00LjI1di04NS4wNDEwMmgtMTUuOTQ1MzENCgkJCQljLTIuMzQ3NjYsMC00LjI1MTk1LTEuOTAzMzItNC4yNTE5NS00LjI1MTk1VjEyMTEuOTIyODVMNzc2LjQ0OTIyLDEyMTEuOTIyODV6IE05MjkuNjA0NDksMTI3Mi4wMjI0NmwyNi45NTgwMSwzMi4xMjc5Mw0KCQkJCWMyLjMxNDQ1LDIuNzU3ODEsMC4zNDM3NSw2Ljk4NDM4LTMuMjU2ODQsNi45ODQzOGgtMTkuNzA1MDhjLTQuMTg5NDUsMC04LjE2NTA0LTEuODUxNTYtMTAuODU3NDItNS4wNjA1NWwtMjIuNjgxNjQtMjcuMDMxMjUNCgkJCQl2MjcuODQxOGMwLDIuMzQ3NjYtMS45MDMzMiw0LjI1LTQuMjUxOTUsNC4yNWgtOS45MjA5Yy03LjgyNzE1LDAtMTQuMTcyODUtNi4zNDM3NS0xNC4xNzI4NS0xNC4xNzI4NXYtODUuMDM5MDYNCgkJCQljMC03LjgyODEzLDYuMzQ1Ny0xNC4xNzM4MywxNC4xNzI4NS0xNC4xNzM4M2gyOS43NjM2N2MyMi43MDAyLDAsNDEuMTAyNTQsMTcuMTMzNzksNDEuMTAyNTQsMzguMjY4NTUNCgkJCQlDOTU2Ljc1NDg4LDEyNTIuNTkwODIsOTQ1LjQzNjUyLDEyNjYuNzAyMTUsOTI5LjYwNDQ5LDEyNzIuMDIyNDZMOTI5LjYwNDQ5LDEyNzIuMDIyNDZ6IE05MDAuMDYxNTIsMTIyMS44NDM3NXYzMi41OTg2M2g4LjUwMzkxDQoJCQkJYzEwLjk1ODk4LDAsMTkuODQyNzctNy4yOTc4NSwxOS44NDI3Ny0xNi4yOTg4M2MwLTkuMDAxOTUtOC44ODM3OS0xNi4yOTk4LTE5Ljg0Mjc3LTE2LjI5OThIOTAwLjA2MTUyTDkwMC4wNjE1MiwxMjIxLjg0Mzc1eg0KCQkJCSBNMTE1OC4zNTkzOCwxMTk1LjYyMzA1YzExLjM4NDc3LDAsMjIuMDEyNywzLjIzNzMsMzEuMDE3NTgsOC44Mzc4OWMxLjk0NzI3LDEuMjEwOTQsMi41ODQ5NiwzLjc0OTAyLDEuNDM4NDgsNS43MzQzOA0KCQkJCWwtNC45MzI2Miw4LjU0MTk5Yy0zLjI3ODMyLDUuNjc5NjktMTAuMDMzMiw4LjM3Njk1LTE2LjMxNzM4LDYuNTAwOThjLTIuNzY0NjUtMC44MjUyLTUuNjkzMzYtMS4yNjg1NS04LjcyNTU5LTEuMjY4NTUNCgkJCQljLTE2LjgyOTEsMC0zMC40NzI2NiwxMy42NDM1NS0zMC40NzI2NiwzMC40NzI2NmMwLDE2LjgyODEzLDEzLjY0MzU1LDMwLjQ3MjY2LDMwLjQ3MjY2LDMwLjQ3MjY2DQoJCQkJYzMuMDMyMjMsMCw1Ljk2MDk0LTAuNDQzMzYsOC43MjU1OS0xLjI2ODU1YzYuMjk1OS0xLjg3OTg4LDEzLjAzMzIsMC44MTE1MiwxNi4zMTgzNiw2LjUwMDk4bDQuOTMwNjYsOC41NDE5OQ0KCQkJCWMxLjE0NzQ2LDEuOTg4MjgsMC41MTA3NCw0LjUyMzQ0LTEuNDM3NSw1LjczNDM4Yy05LjAwNDg4LDUuNjAxNTYtMTkuNjMyODEsOC44Mzc4OS0zMS4wMTc1OCw4LjgzNzg5DQoJCQkJYy0zMi40ODUzNSwwLTU4LjgxOTM0LTI2LjMzNDk2LTU4LjgxOTM0LTU4LjgxOTM0QzEwOTkuNTQwMDQsMTIyMS45NTcwMywxMTI1Ljg3NDAyLDExOTUuNjIzMDUsMTE1OC4zNTkzOCwxMTk1LjYyMzA1eiIvPg0KCQkJPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9IiMwMEZGREEiIGQ9Ik0xMzE4LjE5NzI3LDEyMDYuMDMyMjMNCgkJCQljMC03LjgyODEzLDYuMzQ1Ny0xNC4xNzM4MywxNC4xNzI4NS0xNC4xNzM4M2MyMC42NTYyNSwwLDQxLjMxMjUsMCw2MS45Njg3NSwwYzMuNDI5NjksMCw1LjQ1MDIsMy44ODA4NiwzLjQ4MzQsNi42OTA0Mw0KCQkJCWwtMTkuMjk2ODgsMjcuNTY3MzhjMTUuNTQyOTcsOC4zNzU5OCwyNi4xMDY0NSwyNC44MDA3OCwyNi4xMDY0NSw0My42OTUzMWMwLDI3LjM5NzQ2LTIyLjIwODk4LDQ5LjYwNjQ1LTQ5LjYwNjQ1LDQ5LjYwNjQ1DQoJCQkJYy0xNi42ODg0OCwwLTMxLjQ1MTE3LTguMjQwMjMtNDAuNDQzMzYtMjAuODc1OThjLTEuNDUwMi0yLjAzOTA2LTAuODMxMDUtNC44OTk0MSwxLjMzNTk0LTYuMTUyMzRsMTAuOTc3NTQtNi4zMzc4OQ0KCQkJCWM0Ljg4MTg0LTIuODE4MzYsMTAuOTc5NDktMi40NzU1OSwxNS41MTQ2NSwwLjg3MzA1YzMuNTI4MzIsMi42MDU0Nyw3Ljg5MTYsNC4xNDY0OCwxMi42MTUyMyw0LjE0NjQ4DQoJCQkJYzExLjc0MjE5LDAsMjEuMjU5NzctOS41MTg1NSwyMS4yNTk3Ny0yMS4yNTk3N3MtOS41MTc1OC0yMS4yNTk3Ny0yMS4yNTk3Ny0yMS4yNTk3N2gtMTUuMjE3NzcNCgkJCQljLTMuNDI5NjksMC01LjQ1MDItMy44ODA4Ni0zLjQ4NDM4LTYuNjkwNDNsMTguMTM1NzQtMjUuOTA4MmgtMzIuMDA5NzdjLTIuMzQ4NjMsMC00LjI1MTk1LTEuOTAzMzItNC4yNTE5NS00LjI1MTk1VjEyMDYuMDMyMjN6DQoJCQkJIi8+DQoJCTwvZz4NCgkJPGc+DQoJCQk8Zz4NCgkJCQk8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZmlsbD0iI0RBRThGNyIgZD0iTTg1MC4zOTU1MSw4NTcuNTkxOA0KCQkJCQljLTUwLjM1NjQ1LDAtOTQuMzI1Mi0yNy4zNTY0NS0xMTcuODUyNTQtNjguMDIwNTFsLTgwLjAzMDI3LDQ2LjIwNDFjLTQuNjU1MjcsMi42ODk0NS02LjEzMTg0LDguNzE4NzUtMy4yNDkwMiwxMy4yNTU4Ng0KCQkJCQljNDIuMjM3Myw2Ni40ODYzMywxMTYuNTMzMiwxMTAuNjA3NDIsMjAxLjEzMTg0LDExMC42MDc0MmM4OC4xMjU5OCwwLDE2NS4wNzEyOS00Ny44NzUsMjA2LjI0MzE2LTExOS4wMzYxM2wtODAuNDg3My00Ni40Njk3Mw0KCQkJCQljLTQuMzEzNDgtMi40OTAyMy05LjgwMTc2LTEuMjA1MDgtMTIuNTcwMzEsMi45MzU1NUM5MzkuMTc1NzgsODMzLjU2MjUsODk3LjU5MTgsODU3LjU5MTgsODUwLjM5NTUxLDg1Ny41OTE4DQoJCQkJCUw4NTAuMzk1NTEsODU3LjU5MTh6IE0xMTM2LjcyMTY4LDU1Ni4yMTc3N2M0LjYxNDI2LTIuNjYzMDksNi4xMTAzNS04LjYxOTE0LDMuMzEyNS0xMy4xNTEzNw0KCQkJCQljLTU5LjkxNTA0LTk3LjAzMDI3LTE2Ny4yMjQ2MS0xNjEuNjk0MzQtMjg5LjYzODY3LTE2MS42OTQzNGMtMTI1Ljg5MzU1LDAtMjM1LjgxMzQ4LDY4LjM5MjU4LTI5NC42MzM3OSwxNzAuMDQ5OA0KCQkJCQlsODAuMzc2OTUsNDYuNDA2MjVjNC4zOTc0NiwyLjUzOTA2LDEwLjAwMTk1LDEuMTQ5NDEsMTIuNzEwOTQtMy4xNDU1MQ0KCQkJCQljNDIuMTY0MDYtNjYuODUxNTYsMTE2LjY2ODk1LTExMS4yNjM2NywyMDEuNTQ1OS0xMTEuMjYzNjdjODguMTI1OTgsMCwxNjUuMDcxMjksNDcuODc1OTgsMjA2LjI0MzE2LDExOS4wMzYxMw0KCQkJCQlMMTEzNi43MjE2OCw1NTYuMjE3Nzd6Ii8+DQoJCQkJPHBhdGggZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGZpbGw9IiNBNUJBQzgiIGQ9Ik04NTAuMzk1NTEsOTU5LjYzODY3DQoJCQkJCWMtODQuNTk4NjMsMC0xNTguODk0NTMtNDQuMTIxMDktMjAxLjEzMTg0LTExMC42MDc0MmMtMi44NzY5NS00LjUzMDI3LTEuMzk5NDEtMTAuNTcwMzEsMy4yNDkwMi0xMy4yNTU4Nmw4MC4wMzAyNy00Ni4yMDQxDQoJCQkJCWMtMTEuNTgxMDUtMjAuMDE2Ni0xOC4yMDk5Ni00My4yNTQ4OC0xOC4yMDk5Ni02OC4wNDE5OWMwLTc0Ljc4NTE2LDYwLjU1NzYyLTEzNi4wNjI1LDEzNi4wNjI1LTEzNi4wNjI1DQoJCQkJCWM0Ny4xOTYyOSwwLDg4Ljc4MDI3LDI0LjAyOTMsMTEzLjE4NTU1LDYwLjUyMjQ2YzIuNzY0NjUsNC4xMzM3OSw4LjI2MzY3LDUuNDIxODgsMTIuNTcwMzEsMi45MzU1NWw4MC40ODczLTQ2LjQ2OTczDQoJCQkJCWMtNDEuMTcxODgtNzEuMTYwMTYtMTE4LjExNzE5LTExOS4wMzYxMy0yMDYuMjQzMTYtMTE5LjAzNjEzYy04NC44NzY5NSwwLTE1OS4zODE4NCw0NC40MTIxMS0yMDEuNTQ1OSwxMTEuMjYzNjcNCgkJCQkJYy0yLjcwNjA1LDQuMjkxMDItOC4zMTgzNiw1LjY4MTY0LTEyLjcxMDk0LDMuMTQ1NTFsLTgwLjM3Njk1LTQ2LjQwNjI1DQoJCQkJCWMtMjguOTUyMTUsNTAuMDQwMDQtNDUuNTIzNDQsMTA4LjEzOTY1LTQ1LjUyMzQ0LDE3MC4xMDc0MmMwLDE4Ni45NjM4NywxNTEuMzk0NTMsMzQwLjE1NzIzLDM0MC4xNTcyMywzNDAuMTU3MjMNCgkJCQkJYzEyMi40MTQwNiwwLDIyOS43MjM2My02NC42NjQwNiwyODkuNjM4NjctMTYxLjY5NTMxYzIuNzk0OTItNC41MjYzNywxLjI5NDkyLTEwLjQ5MDIzLTMuMzEyNS0xMy4xNTEzN2wtODAuMDgzMDEtNDYuMjM3Mw0KCQkJCQlDMTAxNS40NjY4LDkxMS43NjM2Nyw5MzguNTIxNDgsOTU5LjYzODY3LDg1MC4zOTU1MSw5NTkuNjM4Njd6Ii8+DQoJCQk8L2c+DQoJCQk8cGF0aCBmaWxsLXJ1bGU9ImV2ZW5vZGQiIGNsaXAtcnVsZT0iZXZlbm9kZCIgZmlsbD0iIzAwRkZEQSIgZD0iTTExMzcuMTg1NTUsNzU4LjExMzI4di03My4xNjc5N2wtNjMuMzY1MjMsMzYuNTgzOTgNCgkJCQlMMTEzNy4xODU1NSw3NTguMTEzMjhMMTEzNy4xODU1NSw3NTguMTEzMjh6IE0xMDI2LjU3NjE3LDcwNS4xNjQwNmwxMjAuMDU4NTktNjkuMzE2NDENCgkJCQljMTIuNTY4MzYtNy4yNTU4NiwyOC4zNDQ3MywxLjg1MjU0LDI4LjM0NTcsMTYuMzY2MjF2MTM4LjYzMDg2Yy0wLjAwMDk4LDE0LjUxMjctMTUuNzc3MzQsMjMuNjIyMDctMjguMzQ1NywxNi4zNjYyMQ0KCQkJCWwtMTIwLjA1ODU5LTY5LjMxNjQxQzEwMTQuMDI4MzIsNzMwLjY0OTQxLDEwMTQuMDI4MzIsNzEyLjQwOTE4LDEwMjYuNTc2MTcsNzA1LjE2NDA2eiIvPg0KCQk8L2c+DQoJPC9nPg0KPC9nPg0KPC9zdmc+DQo=").then(g=>{"done"===this.g_aeh?this.g_adp.g_pq(g):this.g_aea.g_aeb=g}).catch(g=>console.warn("Failed to load splash image: ",g)),this.g_afa("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAABABAMAAACekdKMAAAAMFBMVEUAAAByfYZyfYZyfYZyfYZyfYZyfYZyfYZyfYZyfYZyfYZyfYZyfYZyfYZyfYZyfYYgo7vbAAAAD3RSTlMAmd137hFVqjO7zCKIRGZ881JRAAAFY0lEQVR42u2aPW/bVhSGn1iiPizZ8D+QgSJBNglFmiboQA0NUKAD1XotYA0BOspAkZnqx24vnTrIQNCpg4QkQMcYKDoW9j9w5y6qLNqWFDlvh3tJUa6ddHBhAuS7SKBIQffhuee851CQKVOmTJkyZcqUKXmqa8O+uyNlABKsFRmdP0o5AOle2gHoWdoBzFrpBHACwPeetJNmAFSlt6kGwGH0LqUAVqRuqgHkpEaqAVRkfvOWr+Dh9Rc4j6VvwnrhPNAbgK2ezj+yx7Z6GjUuASi4Ch4lHQAGwBeRK1rROQAdUx5K0hE4NUkaAdS02ZEuoms2wkCSgvYSgFJfkn6CobkSPG0mEcAOrHnGFOxAToHNjk/MygLgO/PxL0BN9yRdQKlufMQAoCdJGi8BOJYknXTJ269cu9HtdqNb4Ni6oimUbFb0dAZQ1DmULJ+TFtT0qQHwg73mLlCMfFUMQPR5VWrbmttNHICC1KDiSZ+w3pMOwFPDhP4IYFtv4ZX0nIorbUBNmjWAiqdZg5fmNFd6jvPhJQDjAV9LI0r28IpmycsBZalNWfoRWJcuoKY9c7cCkwpOwdcIqNT1BmrSgQkNbQAvpAGOF+aHOIBpCxhKR/TVBNjVOHkAOgrg2N6aoU7sklmVidtD7bNm/fIrjaBmk+Sxea142iBnTyguAfjZZscNXLOdXFM8EgVgXRpDz/6yonTEts6AXdV1APTVoKigFSXEmj3XN0kSV01WFQwAHC8O4Mhagye8NgHS137SALzsS3dxwhtXkQ4oaw64eqomOFKXbc2xJbFLTX8DOHYnsKsJu2Gdu8IIuTqjrMB8eyM5ACIFXQo2S5t7lNMM6AdFTaCgADqahHW8EQIohBk9rzEdE+JXAtjVmHWpDTmplUAA96Ea/bJDnVKSWjgaFTSHqubgmjVDXQchgFy4wBXNcXV6LYC8RjbEypomcCAyBopRShxqAn21yenM8WawqjOoKVbmLYBFndeImsnyVwJY1RR8NW1FTRiA6UNTCsP6fKwLONQBZTXx1WVbT0KbtwygvAxg81oAZU0xe2QYxkmyrDDx2DzWBXTUZFs7dNQwHUEMwN4VAKb47wOQ1wj8Gx0+/Y8A8powVJtt7XOoxn8A8N4IqCrA8cJUmzgAl3JAUWN8tSjqDX0NwI/XbwugGLe178oBK7bBaBesm0gggOUqwLrOHe8c1jV2NAMOw/XFAFRth2dr/burANS1cSc0C8kDsB7zAZvgKCjoLTiaFqwpmvwLQC7e2b3PB4CrZj48KXkAKktOEPr6VqeAr680udzEWACluK0LreJ1ThBe6+w4HkfJAhD1AtbAu3qgPcDVX2oCK9bqxwFQ1+fRsVW7va/uBZpAWaND652TCGBoM1rHHN6VmQlsq6cdE+4mC75oLAC49prKB1zTDd6NukHIKahbIkkEsGrmAQWZbZqXNLClrg04dTP4KnjnCwBfmgkZT7WD45k94C8BmA3MPGBgeqcbfQBxwwDsRMi3N7Iqc3dzsuVhV5ofkevpJOoGKUn6Ax5L92F49USoayZCls08uQDiM0ETCWPb8k7DMmH02SICGC7ayVhnsABwEpsZQkfxUpI4ALGpsFn4xCbHcVjnwgnvAkBh0U6CbzqrXgzA1E6FB9YOJGcacgUAfl36t0Ro/SIDUDEL/D1WBcJr5q0oRoJ2LQZgZJ4LPIu2RCPJAJafDLm2Yr2OHmQ4H0vzBksA2PKl38L3fY0aLAFYejK0ZpJhelVKzkj8dlRNzkj8dpRP0DTkVjTUXroB9PVnqtefS9I05BZU8NOdAyUl5q8RtwUg6KYcwP1Up8CanpMpU6ZMmTLdgP4BRYsi23xEdOAAAAAASUVORK5CYII=").then(g=>{"done"===this.g_aeh?this.g_adp.g_pq(g):this.g_aea.g_aec=g}).catch(g=>console.warn("Failed to load splash image: ",g)),this.g_afa("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAgAAAABABAMAAACekdKMAAAAMFBMVEUAAAByfYZyfYZyfYZyfYZyfYZyfYZyfYZyfYZyfYZyfYZyfYZyfYZyfYZyfYZyfYYgo7vbAAAAD3RSTlMAdxHdu4hmVZnuRMwzqiLYE4y2AAAF2klEQVR42u2Yv28jaRnHP/bG8SVxvA4ncRw6sCVoVlc4R8FJCOHlGkq7olrJy18QFzRUWSqkE1KibZAQOkc6Ua+5htJGW12BEihpHAqKE0XWcZzEcXIfinf8a8zunsTNoZPmW80zfsbvzGfmfX5BqlSpUqVKlSpVqlSpUqVKlSrV/1EHPv4SfN7wMgWQAkgBpABSAF+2HngOsG8PyDpsWwHy3gJU/UHM3o0uyxw4/G44zJf1LQC8INP3ugXAejOcrqn6EIf80puiQwDqHgF8S987nfsAcN+HfEd/M/v34TtwT9WLBABsewXQtAHkHfVtATlHAUsjboer1lX9O8BmV/V9AIf5tnpRATZrqj9aBLBmHMCe6l0lDmD3V6ofABS6YaHkAOTDo7XtADmvwjNuOAlYWnE7XNVXdXgKlFW1BDjcU7UzP/14AUA/DmA7+PwkDuCHqmHFvWih5ABknQAFvQW2fFq1AxxrD+iOK3E72o8+ItP2E8joz8jXHQDqnyj0vYRN/ZBMzdvZ/lYfwRKAA0c93nZSWYoB93VS4q/6GPL6WzJtOwkGwboVyOkAqHqy5jnQ1BJkvSNuE7bC74F/O4BjB0BGj0DvgJwTWHMAvOvFAoAblgHkHR9BsWspDuAEaNqBz7wB3nWQIICyLdiyPQH2LWW8ArpjO5B3QNwGoGYLKDquUA9hoekuhDvPaoWqh0BRK3MApRiAeyH8nPk0BuAuBNxzOIgWGiYI4NgGHLtnBZqeFhxBwUvPIefnxO0QNy6i3NUqGHbFPW9ATwG69jgL+aIbvvQAgBiA/bDr3/AqBuBzgC1vKUYL9e0lB+CeHShPNixBdwK1CWTstAewZWfVBnLRl7BvKUoPZBxNn5G6R+H9wS92Tl8OoGkp4BzEALwAWPOGTLRQ2VJyAHLeQnew7UOyjqBpjy1L/Quo2li1o5cD8M+d1lb4jCk4WQKw5qS3XOSsAujaAyjuvPUyANvRQs98khyAvAOK3uY9D+XOviXO7O1bCdVR3AY2wusNh2FXoEsACjr59msAhBprpRJcABCSn+pJcgCy7TsydrLtS3IewgNPKE944GOaY1bt+S0uHdY8XQTAx+rwnVcCiNxfAeD+DMDDBHuB/pg1G/Tv2PIEtj2kPmLbE7p3rNpfEABvq/756wCgbK9qj71xpWoLMt5mvWXdp1mvWLW/KAD+0jfkxf8FwIuvoBs8s7Q3hKqtfStQdLDuLlmv8p6zagMb8/uahYNYDAhBsub1K2PA6wAsBJsEAWx50h/Btk+aE4Du3bYN6F/nQtaL2/MsAGx5E2WB4SoAMtp7bRZ4BYBpjkkWQM6P2jew7mF7ANAcf+YR7I03Qp6O2/M64JmNeR1wvQRgZyc6LC0DyK7WAZuOXgYg5/VXAKDgtYeQdRBe7LEHY6BqObyhuD2vBMuW5pXg1RKAWvAtxwFMc99CJZh5eSGUj2rLhCdCbX0C1MehfN3Qa2DN9pD/Zs96gWzNWS9QDr3ADMCBT0KLUILmIoCurdB9znqB73k+9YkDoBYx+gByyQHoayt08I0wIomif/R1L9vPhz3Y9w/A9x1Nu8H1qBucATj2Eii07UHZxhxA2Q7wqaEb7EG2bmPq83zYWwawHxqj5rAXiu1ktB8+42rgQF6fhqbuilW7HnpzH5Gp2ZnOA/qOWAKQ039QLHsHPPN3VKY/nnlxxB91Ng9408nMp25nGUBO3yO4bDpuZZMBUA2Y16LtnA3Zm7pPWbVrvphNhCaV+einsQyAg3D6E8I8b3f6Yyac7y5MhOY+NV8sA6A5d6npMKk8eBluLSr0umE/lsNzx+y6u7OZYIPZ8O99YgDW2xptokJ7AUAA9uOD+UxwwafubgxAvjZz+TQxAJlQbhSn445yCNRn06y3ZD8fHkVT4YtvzKfC3yQOgExT/xa6nX9pYwag+Kb+nOZsKvzTBZ/nw6MYAPJl/XW4sJlcFEiVKlWqVKlSpUqVKlWqVKlSpUqV6uuu/wDv59f7eYDABQAAAABJRU5ErkJggg==").then(g=>{"done"===this.g_aeh?this.g_adp.g_pq(g):this.g_aea.g_aed=g}).catch(g=>console.warn("Failed to load splash image: ",g)))}async g_ae$(g){g=new URL(g,this.g_zM.g_fE()).toString();const _=await g_bA.g_gv(g),e=await this.g_zM.g_afb(_,2048,2048);return await this.g_adp.g_zh(e,{g_op:"high"})}async g_afa(g){g=new URL(g,this.g_zM.g_fE()).toString();const _=await g_bA.g_gv(g);return await this.g_adp.g_zh(_,{g_op:"high"})}g_afc(){this.g_adW=Date.now(),this.g_zM.g_kX().addEventListener("loadingprogress",this.g_adZ),this.g_adX=requestAnimationFrame(()=>this.g_afd())}async g_afe(){this.g_adY=1,4===this.g_zM.g_aff()&&(await this.g_aej),this.g_aei=null,this.g_aej=null,-1!==this.g_adX&&(cancelAnimationFrame(this.g_adX),this.g_adX=-1),this.g_zM.g_kX().removeEventListener("loadingprogress",this.g_adZ),this.g_adZ=null,this.g_ad_&&(this.g_ad_.g_eN(),this.g_ad_=null),this.g_ad$&&(this.g_ad$.g_eN(),this.g_ad$=null),this.g_adp.g_zd(),this.g_aea.g_aeb&&(this.g_adp.g_pq(this.g_aea.g_aeb),this.g_aea.g_aeb=null),this.g_aea.g_aec&&(this.g_adp.g_pq(this.g_aea.g_aec),this.g_aea.g_aec=null),this.g_aea.g_aed&&(this.g_adp.g_pq(this.g_aea.g_aed),this.g_aea.g_aed=null),this.g_adp.g_y_(0,0,0,0),this.g_adp.g_ze(),this.g_aeh="done",this.g_adM=this.g_adp.g_vh()}g_afd(){if(-1!==this.g_adX){const g=this.g_adp;g.g_zd(),this.g_adX=-1;const _=this.g_zM.g_ae_().g_AO(),e=this.g_zM.g_aff();if(3!==e&&(this.g_aeJ(g),g.g_y_(0,0,0,0),g.g_xQ(),g.g_xn(),g.g_xS(null)),0===e)this.g_afg(_);else if(1===e)this.g_afh(_,120,0);else if(2===e)this.g_afi(_);else if(3===e)g_bA.noop();else if(4===e)this.g_afj(_);else throw new Error("invalid loader style");g.g_ze(),this.g_adX=requestAnimationFrame(()=>this.g_afd())}}g_afi(g){g?this.g_ad_.g_uy(1,0,0):this.g_ad_.g_uy(.6,.6,.6),this.g_ad_.g_uC(Math.round(100*this.g_adY)+"%");const _=this.g_adt/2,e=this.g_adu/2;t.g_iQ(_-150,e-100,_+150,e+100),this.g_adp.g_xS(this.g_ad_.g_pv()),this.g_adp.g_x$(t,this.g_ad_.g_uV())}g_afh(_,a,t){const n=this.g_adp;n.g_yO(),_?n.g_xO(1,0,0,1):n.g_xO(.118,.565,1,1);const e=this.g_adt/2,i=this.g_adu/2,g=a/2;u.g_ia(e-g,i-4+t,Math.floor(a*this.g_adY),8),n.Rect(u),u.g_ia(e-g,i-4+t,a,8),u.offset(-.5,-.5),u.g_ir(.5,.5),n.g_xO(0,0,0,1),n.g_yq(u),u.g_ir(1,1),n.g_xO(1,1,1,1),n.g_yq(u)}g_afg(_){if(!this.g_ad$)return void this.g_afh(_,120,0);const a=this.g_ad$.g_pv();if(!a)return void this.g_afh(_,120,0);const n=a.g_oX(),r=a.g_oY(),e=this.g_adt/2,d=this.g_adu/2,g=n/2,o=r/2;t.g_iQ(e-g,d-o,e+g,d+o),this.g_adp.g_xS(a),this.g_adp.g_iH(t),this.g_afh(_,n,o+16)}g_afj(_){var t=Math.min,d=Math.max,e=Math.ceil;const s=this.g_adp,g=this.g_aea.g_aeb,i=this.g_aea.g_aec,f=this.g_aea.g_aed,c=Date.now();0===this.g_aee&&(this.g_adW=c);const l=this.g_zM.g_AC()||this.g_zM.g_afk()&&!this.g_zM.g_afl(),M=l?0:200,n=l?0:3e3;let o=1;"fade-in"===this.g_aeh?o=t((c-this.g_adW)/300,1):"fade-out"===this.g_aeh&&(o=d(1-(c-this.g_aeg)/300,0)),s.g_yO(),s.g_xO(.231*o,.251*o,.271*o,o),u.set(0,0,this.g_adt,this.g_adu),s.Rect(u);const m=e(this.g_adt),a=e(this.g_adu);let N,b;256<this.g_adu?(s.g_xO(.302*o,.334*o,.365*o,o),N=m,b=d(.005*a,2),u.g_ia(0,.8*a-b/2,N,b),s.Rect(u),_?s.g_xO(o,0,0,o):s.g_xO(.161*o,.953*o,.816*o,o),N=m*this.g_adY,u.g_ia(.5*m-N/2,.8*a-b/2,N,b),s.Rect(u),s.g_xO(o,o,o,o),s.g_xn(),i&&(N=1.5*g_bA.g_eQ(.22*a,105,.6*m),b=N/8,u.g_ia(.5*m-N/2,.2*a-b/2,N,b),s.g_xS(i),s.Rect(u)),g&&(N=t(.395*a,.95*m),b=N,u.g_ia(.5*m-N/2,.485*a-b/2,N,b),s.g_xS(g),s.Rect(u)),f&&(N=1.5*g_bA.g_eQ(.22*a,105,.6*m),b=N/8,u.g_ia(.5*m-N/2,.868*a-b/2,N,b),s.g_xS(f),s.Rect(u))):(s.g_xO(.302*o,.334*o,.365*o,o),N=m,b=d(.005*a,2),u.g_ia(0,.85*a-b/2,N,b),s.Rect(u),_?s.g_xO(o,0,0,o):s.g_xO(.161*o,.953*o,.816*o,o),N=m*this.g_adY,u.g_ia(.5*m-N/2,.85*a-b/2,N,b),s.Rect(u),s.g_xO(o,o,o,o),s.g_xn(),g&&(N=.55*a,b=N,u.g_ia(.5*m-N/2,.45*a-b/2,N,b),s.g_xS(g),s.Rect(u))),this.g_aee++,"fade-in"===this.g_aeh&&300<=c-this.g_adW&&2<=this.g_aee&&(this.g_aeh="wait",this.g_aef=c),"wait"===this.g_aeh&&c-this.g_aef>=n&&1<=this.g_adY&&(this.g_aeh="fade-out",this.g_aeg=c),("fade-out"===this.g_aeh&&c-this.g_aeg>=300+M||l&&1<=this.g_adY&&500>c-this.g_adW)&&this.g_aei()}}}{const g={messagePort:null,baseUrl:"",headless:!1,hasDom:!0,isInWorker:!1,useAudio:!0,projectData:"",exportType:""};let _=!0;g_bA.g_afm=class extends g_bA.g_eK{constructor(e){e=Object.assign({},g,e),super(),this.g_afn=e.messagePort,this.g_afo=e.baseUrl,this.g_afp=!!e.headless,this.g_afq=!!e.hasDom,this.g_afr=!!e.isInWorker,_=e.ife,this.g_afs=!!e.useAudio,this.g_aft=e.exportType,this.g_zR=!!e.isWKWebView,this.g_afu=!!e.isFBInstantAvailable,this.g_afv=e.opusWasmScriptUrl,this.g_afw=e.opusWasmBinaryUrl,this.g_afx="data.json",this.g_afy=!!("preview"===this.g_aft&&e.isDebug),this.g_afz=this.g_afy,this.g_afA=this.g_afy,this.g_afB=0;const a=e.previewImageBlobs,t=e.previewProjectFileBlobs;t&&Object.assign(a,t);const d=e.projectData;d&&(a[this.g_afx]=d),this.g_afC=[],this.g_afD="",this.g_afE="",this.g_afF="",this.g_afG=0,this.g_afH=0,this.g_afI=0,this.g_afJ=0,this.g_afK=0,this.g_afL=0,this.g_afM=0,this.g_afN=!1,this.g_afO=!0,this.g_afP=!1;const i="html5"===this.g_aft||"scirra-arcade"===this.g_aft;this.g_Be=g_bA.g_eM(g_bA.g_zK,this,{g_zL:i?"remote":"local",g_Al:a,g_zQ:"cordova"===this.g_aft,g_zS:this.g_zR,g_zU:e.supportedAudioFormats}),this.g_Fi=g_bA.g_eM(g_bA.g_GO,this),this.g_Od=g_bA.g_eM(g_bA.g_OS,this),this.g_afQ=g_bA.g_eM(g_bA.g_ZB,this),this.g_afR=g_bA.g_eM(g_bA.g_acC,this),this.g_HT=g_bA.g_eM(g_bA.g_Lb,this),this.g_afS=[],this.g_afT=new Map,this.g_afU=new Map,this.g_afV=0,this.g_afW=[],this.g_afX=[],this.g_afY=[],this.g_afZ=[],this.g_af_=new Map,this.g_af$=!1,this.g_aga=!1,this.g_agb=0,this.g_agc=0,this.g_agd=new Map,this.g_age=new Set,this.g_agf=new Set,this.g_agg=[],this.g_agh=null,this.g_oz="trilinear",this.g_agi=!1,this.g_agj=!0,this.g_agk=!1,this.g_agl=!1,this.g_agm=g=>this.g_Jv(g),this.g_adX=-1,this.g_agn=0,this.g_ago=0,this.g_agp=0,this.g_agq=!1,this.g_agr=!1,this.g_ags=!1,this.g_agt=!0,this.g_agu=0,this.g_agv=new g_bA.g_mr(1),this.g_agw=()=>Math.random(),this.g_agx=0,this.g_agy=0,this.g_agz=0,this.g_agA=0,this.g_aaF=1,this.g_agB=30,this.g_agC=g_bA.g_eM(g_bA.g_lE),this.g_agD=g_bA.g_eM(g_bA.g_lE),this.g_agE=-1,this.g_agF=0,this.g_agG=0,this.g_agH=0,this.g_agI=0,this.g_agJ=!1,this.g_agK="",this.g_agL="",this.g_agM=null,this.g_agN="",this.g_agO=[],this.g_agP=null,this.g_aaJ=g_bA.g_eM(g_bA.Event.g_kX),this.g_agQ=new Map,this.g_agR=new Map,this.g_agS=0,this.g_agT=!1,this.g_agU=!1,this.g_agV=!1,this.g_agW=[],this.g_agX={pretick:g_bA.g_eM(g_bA.Event,"pretick",!1),tick:g_bA.g_eM(g_bA.Event,"tick",!1),tick2:g_bA.g_eM(g_bA.Event,"tick2",!1),instancedestroy:g_bA.g_eM(g_bA.Event,"instancedestroy",!1),beforelayoutchange:g_bA.g_eM(g_bA.Event,"beforelayoutchange",!1),layoutchange:g_bA.g_eM(g_bA.Event,"layoutchange",!1)},this.g_agX.instancedestroy.g_Ns=null,this.g_agY=g_bA.g_eM(g_bA.g_lM,g_bA.g_aaD.g_acj),this.g_agZ=g_bA.g_eM(g_bA.g_lM,g_bA.g_aaD.g_acj),this.g_ag_=g_bA.g_eM(g_bA.g_lM,g_bA.g_aaD.g_acj),this.g_ag$=g_bA.g_eM(g_bA.g_aha,this,e.jobScheduler),e.canvas&&(this.g_agh=g_bA.g_eM(g_bA.g_adn,this)),this.g_afn.onmessage=g=>this._OnMessageFromDOM(g.data),this.g_XU("runtime","visibilitychange",g=>this.g_ahb(g)),this.g_XU("runtime","opus-decode",g=>this.g_ahc(g.arrayBuffer)),this.g_XU("runtime","get-remote-preview-status-info",()=>this.g_ahd()),this.g_aaJ.addEventListener("window-blur",g=>this.g_ahe(g)),this.g_aaJ.addEventListener("window-focus",()=>this.g_ahf()),this.g_HT.g_Ls()}static g_pM(g){return g_bA.g_eM(g_bA.g_afm,g)}g_eN(){g_bA.g_fV(this.g_afS),this.g_afT.clear(),this.g_afU.clear(),this.g_Fi.g_eN(),this.g_Fi=null,this.g_Od.g_eN(),this.g_Od=null,this.g_afQ.g_eN(),this.g_afQ=null,this.g_Be.g_eN(),this.g_Be=null,this.g_afR.g_eN(),this.g_afR=null,this.g_HT.g_eN(),this.g_HT=null,this.g_agh&&(this.g_agh.g_eN(),this.g_agh=null),this.g_aaJ.g_eN(),this.g_aaJ=null,this.g_ahg=null,this.g_agm=null}["_OnMessageFromDOM"](g){const _=g.type;if("event"===_)this.g_ahh(g);else if("result"===_)this.g_ahi(g);else throw new Error(`unknown message '${_}'`)}g_ahh(g){if(!this.g_agV)return void this.g_agW.push(g);const _=g.component,u=g.handler,a=g.data,e=g.dispatchRuntimeEvent,t=g.responseId;if("runtime"===_&&e){const g=new g_bA.Event(u);g.data=a,this.g_aaJ.g_ld(g)}const n=this.g_agQ.get(_);if(!n)return void(e||console.warn(`[Runtime] No DOM event handlers for component '${_}'`));const i=n.get(u);if(!i)return void(e||console.warn(`[Runtime] No DOM handler '${u}' for component '${_}'`));let r=null;try{r=i(a)}catch(g){return console.error(`Exception in '${_}' handler '${u}':`,g),void(null!==t&&this.g_ahj(t,!1,g.toString()))}null!==t&&(r&&r.then?r.then(g=>this.g_ahj(t,!0,g)).catch(g=>{console.error(`Rejection from '${_}' handler '${u}':`,g),this.g_ahj(t,!1,g.toString())}):this.g_ahj(t,!0,r))}g_ahj(g,_,e){this.g_afn.postMessage({type:"result",responseId:g,isOk:_,result:e})}g_ahi(g){const _=g.responseId,e=g.isOk,a=g.result,t=this.g_agR.get(_);e?t.resolve(a):t.reject(a),this.g_agR.delete(_)}g_XU(g,_,e){let a=this.g_agQ.get(g);if(a||(a=new Map,this.g_agQ.set(g,a)),a.has(_))throw new Error(`[Runtime] Component '${g}' already has handler '${_}'`);a.set(_,e)}g_Yl(g,_,e){this.g_afn.postMessage({type:"event",component:g,handler:_,data:e,responseId:null})}g_Aw(g,_,e){const n=this.g_agS++,a=new Promise((g,_)=>{this.g_agR.set(n,{resolve:g,reject:_})});return this.g_afn.postMessage({type:"event",component:g,handler:_,data:e,responseId:n}),a}g_ahk(g){if(!this.g_Rf())throw new Error("not in debug mode");this.g_Yl("runtime","post-to-debugger",g)}async g_aaM(g){this.g_Rf()&&(await g_aeT.g_aaM(this));const[_]=await Promise.all([this.g_Be.g_gu(this.g_afx),this.g_ahl(),this.g_ag$.g_aaM()]);this.g_ahm(_),await this.g_ahn(g),this.g_AC()||console.info("Made with Construct 3, the game and app creator :: https://www.construct.net");const e=this.g_pu();e?(console.info(`[C3 runtime] Hosted in ${this.g_AU()?"worker":"DOM"}, rendering with WebGL ${e.g_oH()} [${e.g_zC()}]`),e.g_oO()&&console.warn("[C3 runtime] WebGL indicates a major performance caveat. Software rendering may be in use. This can result in significantly degraded performance.")):console.info(`[C3 runtime] Hosted in ${this.g_AU()?"worker":"DOM"}, headless`),this.g_agV=!0;for(const _ of this.g_agW)this.g_ahh(_);if(g_bA.g_fV(this.g_agW),this.g_agh&&this.g_agh.g_afc(),await Promise.all([this.g_Be.g_AM(),...this.g_afC]),!this.g_Be.g_AO())return this.g_agh&&(await this.g_agh.g_afe()),await this.g_aaJ.g_lc(new g_bA.Event("beforeruntimestart")),await this.g_zd(),this.g_afn.postMessage({type:"runtime-ready"}),this}g_ahm(g){const _=g.project;this.g_afD=_[0],this.g_afE=_[16],this.g_afF=_[31],this.g_agi=!!_[9],this.g_afG=this.g_afK=_[10],this.g_afH=this.g_afL=_[11],this.g_afI=this.g_afG/2,this.g_afJ=this.g_afH/2,this.g_oz=_[14],this.g_afN=!!_[18],this.g_afM=_[19],this.g_agc=_[21],this.g_agk=_[22],this.g_Be.g_AW(_[7],_[25]),this.g_Be.g_An(_[8]),this.g_Be.g_Ap(_[32]),this.g_Be.g_Ar(_[28]),this.g_Be.g_AR(_[29]),this.g_agh&&(this.g_agh.g_aeA(g_bA.g_adn.g_aeG(_[12])),this.g_agh.g_aeE(_[23]?"high":"low"),this.g_agh.g_aek(_[34])),this.g_afQ.g_ZJ(),this.g_agg=self.g_aho();for(const e of _[2])this.g_afQ.g_ZI(e);this.g_agg=self.g_aho();for(const a of _[3]){const g=g_bA.g__N.g_pM(this,this.g_afS.length,a);this.g_afS.push(g),this.g_afT.set(g.g_q_().toLowerCase(),g),this.g_afU.set(g.g_Dm(),g)}for(const a of _[4]){const g=this.g_afS[a[0]];g.g_$D(a)}for(const a of _[27]){const g=a.map(g=>this.g_afS[g]);this.g_afW.push(g_bA.g_eM(g_bA.g_aat,this,g))}for(const _ of this.g_afS)_.g_$F();for(const e of _[5])this.g_Fi.g_pM(e);const a=_[1];if(a){const g=this.g_Fi.g_GZ(a);g&&this.g_Fi.g_GX(g)}for(const e of _[33])this.g_HT.g_pM(e);for(const e of _[6])this.g_Od.g_pM(e);this.g_Od.g_Pn(),g_bA.g_fV(this.g_agg),this.g_CK();let e="any";const n=_[20];1===n?e="portrait":2===n&&(e="landscape"),this.g_Yl("runtime","set-target-orientation",{targetOrientation:e})}g_aff(){return this.g_afM}g_afk(){return this.g_afu}g_ahp(){return this.g_afO}g_ahq(g){this.g_afC.push(g)}g_$z(){return this.g_afV++}g_$H(){return this.g_afV}g_acp(g){this.g_afX.push(g)}g_aeq(){return this.g_afX}async g_ahn(g){this.g_agh&&(await this.g_agh.g_gC(g),this.g_agh.g_aeZ(this.g_afM))}async g_ahl(){if(this.g_Be.g_AV("audio/webm; codecs=opus"))return;let g=null,_=null;try{this.g_ahr()?_=await this.g_Be.g_Az(this.g_afw):g=await this.g_Be.g_gv(this.g_afw)}catch(g){return void console.info("Failed to fetch Opus decoder WASM; assuming project has no Opus audio.",g)}_?this.g_ahs(_,"opus-decoder-wasm"):this.g_aht(g,"opus-decoder-wasm"),await this.g_ahu([this.g_afv])}async g_ahc(g){const _=await this.g_ahv("OpusDecode",{arrayBuffer:g},[g]);return _}async g_zd(){if(this.g_agq=!0,this.g_agx=Date.now(),this.g_afN){for(const g of this.g_afS)g.g_De()||g.g_$T()||!g.g_Go()||g.g_XI();this.g_Be.g_AM().then(()=>{this.g_afO=!1,this.g_ahw()})}else this.g_afO=!1;this.g_Be.g_AN(),this.g_Rf()&&g_aeT.g_ahx(_);for(const g of this.g_Fi.g_Ha())g.g_Gz();const g=this.g_Fi.g_GY();await g.g_FQ(null,this.g_pu()),await g.g_FY(!0),this.g_agF=performance.now(),this.g_afN||this.g_ahw();const e=await this.g_Aw("runtime","before-start-ticking");e.isSuspended?this.g_agu++:this.g_Jv()}g_ahw(){this.g_IS(g_bA.g_Gm.g_Gl.g_Gk.g_ahy,null),this.g_Yl("runtime","register-sw")}g_TC(g){if(g=Math.floor(g),0>g||g>=this.g_agg.length)throw new Error("invalid object reference");return this.g_agg[g]}g_ahz(){return this.g_afq}g_ahA(){return this.g_afp}g_AU(){return this.g_afr}g_fE(){return this.g_afo}g_Dc(){return this.g_Od}g_NK(){return this.g_Od.g_NK()}g_Pw(){return this.g_Od.g_Pw()}g_Oa(){return this.g_Od.g_Oa()}g_Px(){return this.g_Od.g_Px()}g_ahB(){return 0===this.g_Pw().g_Op()}g_Pz(){return this.g_Od.g_Pz()}g__O(){return this.g_afQ}g_TA(){return this.g_afQ.g_TA()}g_Cz(g){if(g=Math.floor(g),0>g||g>=this.g_afS.length)throw new RangeError("invalid index");return this.g_afS[g]}g_ahC(g){return this.g_afT.get(g.toLowerCase())||null}g_Gr(g){return this.g_afU.get(g)||null}g_ahD(g){const _=this.g_afQ.g_ZN(g);return _?_.g_XM():null}g_Dd(){return this.g_afS}g_kX(){return this.g_aaJ}g_Cx(){return this.g_afG}g_Cy(){return this.g_afH}g_ahE(g,_){this.g_afG=g,this.g_afH=_}g_ET(){return this.g_afK}g_EU(){return this.g_afL}g_aey(g,_){this.g_afK=g,this.g_afL=_}g_EX(){return this.g_afI}g_EY(){return this.g_afJ}g_Em(){return this.g_agh}g_Er(){return this.g_agh?this.g_agh.g_Er():this.g_afK}g_Es(){return this.g_agh?this.g_agh.g_Es():this.g_afL}g_Ek(){return this.g_agh?this.g_agh.g_Ek():1}g_EO(){return this.g_agh?this.g_agh.g_EO():1}g_YV(){return this.g_agh?this.g_agh.g_YV():0}g_YW(){return this.g_agh?this.g_agh.g_YW():0}g_ahF(){return this.g_agh?this.g_agh.g_YT():0}g_ahG(){return this.g_agh?this.g_agh.g_YU():0}g_aeB(){return this.g_agh?this.g_agh.g_aeB():"off"}g_Et(g){return this.g_agh?this.g_agh.g_Et(g):null}g_EL(g){this.g_agh&&this.g_agh.g_EL(g)}g_aer(g){this.g_afP=!!g}g_GL(){return this.g_afP}g_aeV(){return this.g_agh?this.g_agh.g_aeV():NaN}g_pw(){return"nearest"!==this.g_Ep()}g_Ep(){return this.g_oz}g_$B(){return this.g_afN}g_Qj(){return this.g_Fi}g_GI(){return this.g_Fi.g_GI()}g_No(){return this.g_HT}g_ae_(){return this.g_Be}g_AG(g){return this.g_Be.g_AG(g)}g_ahH(g,_,e,a){return this.g_CH(g,_,!1,e,a)}g_CH(f,e,h,n,t,s){let i=null,M=null;if(f instanceof g_bA.g__N){if(M=f,M.g_De()){const g=M.g_Sv(),_=Math.floor(this.g_ahI()*g.length);M=g[_]}i=M.g_CB()}else i=f,M=this.g_Cz(i[1]);const N=M.g_GH().g_Go();if(this.g_afO&&N&&!M.g_$T())return null;const d=e;N||(e=null);let _=h&&!s&&i&&!this.g_agd.has(i[2])?i[2]:this.g_agc++;const l=i?i[0]:null,g=g_bA.g_eM(g_bA.g_HR,{g_HD:this,g_$P:M,g_HB:e,g_aaL:l,g_aaO:i?i[3]:null,g_$Q:_});this.g_agd.set(_,g);let u=null;if(N&&(u=g.g_Bv(),"undefined"!=typeof n&&"undefined"!=typeof t&&(u.g_VC(n),u.g_VD(t)),M.g_aal(!0)),e&&(e.g_CM(g,!0),(1!==e.g_DB()||1!==e.g_DC())&&M.g_DE(!0),e.g_Dk().g_FS(M)),this.g_agb++,M.g_Di()&&!h&&!s){for(const _ of M.g_FO().g_Gu()){if(_===M)continue;const e=this.g_CH(_,d,!1,u?u.g_Gw():n,u?u.g_Gx():t,!0);g.g_Gv(e)}for(const _ of g.siblings()){_.g_Gv(g);for(const e of g.siblings())_!==e&&_.g_Gv(e)}}M.g_aah();const b=i?g_bA.g_gf(i[5]):null,m=i?i[4].map(g=>g_bA.g_gf(g)):null;if(g.g_$R(b,m),N&&l&&14===l.length){const _=l[13];g.g_aaT(),g.g_LU().g_Yu(_[2],_[0],_[1])}return this.g_afZ.push(g),this.g_af$=!0,this.g_Rf()&&g_aeT.g_ahJ(g),g}g_Da(g){if(this.g_age.has(g))return;const _=g.g_C$();let e=this.g_af_.get(_);if(e){if(e.has(g))return;e.add(g)}else e=new Set,e.add(g),this.g_af_.set(_,e);if(this.g_Rf()&&g_aeT.g_ahK(g),g.g_abb(),this.g_af$=!0,g.g_Di())for(const _ of g.siblings())this.g_Da(_);if(this.g_aga&&g_bA.g_et(),!this.g_Fi.g_Hf()){const _=this.g_Dc();_.g_Dg(!0),g.g_aba(),_.g_Dg(!1)}}g_CK(){this.g_af$&&(this.g_aga=!0,this.g_ahL(),this.g_ahM(),this.g_aga=!1,this.g_af$=!1,this.g_Dt())}g_ahL(){for(const g of this.g_afZ){const _=g.g_C$();_.g_CM(g);for(const e of _.g_RB())e.g_CM(g),e.g_aah()}g_bA.g_fV(this.g_afZ)}g_ahM(){this.g_aaJ.g_kS(!0);for(const[g,_]of this.g_af_.entries())this.g_ahN(g,_),_.clear();this.g_af_.clear(),this.g_aaJ.g_kS(!1)}g_ahN(g,_){g_bA.g_gc(g.g_Gp(),_),g.g_aah(),this.g_agf.add(g),0===g.g_Gp().length&&g.g_DE(!1);for(const e of g.g_RB())g_bA.g_gc(e.g_Gp(),_),e.g_aah(),this.g_agf.add(e);if(g.g_GH().g_Go()){const g=new Set([..._].map(g=>g.g_Bv().g_CN()));for(const e of g)e.g_DV(_)}for(const t of _){const g=this.g_agX.instancedestroy;g.g_Ns=t,this.g_aaJ.dispatchEvent(g),this.g_agd.delete(t.g_CJ());const _=t.g_Bv();_&&(_.g_abN(),_.g_CS()),this.g_age.add(t),this.g_agb--}}g_VR(){return this.g_afZ}g_$O(){return this.g_agc++}g_$S(g,_){this.g_agd.set(g,_)}g_FX(){this.g_aaJ.dispatchEvent(g_bA.g_eM(g_bA.Event,"webglcontextlost")),this.g_ahO(!0);for(const g of this.g_afS)!g.g_De()&&g.g_$U()&&g.g_FV();this.g_GI().g_FX(),g_bA.g_ZS.g_Br(),g_bA.g_AI.g_Br()}async g_ael(){await this.g_GI().g_FQ(null,this.g_pu()),this.g_aaJ.dispatchEvent(g_bA.g_eM(g_bA.Event,"webglcontextrestored")),this.g_ahO(!1),this.g_Dt()}g_ahb(g){this.g_ahO(g.hidden)}g_ahe(g){this.g_AC()&&this.g_agk&&!g_bA.g_cu.g_cF&&(g.data.parentHasFocus||(this.g_ahO(!0),this.g_agl=!0))}g_ahf(){this.g_agl&&(this.g_ahO(!1),this.g_agl=!1)}g_ahP(){return 0<this.g_agu}g_ahO(g){const _=this.g_ahP();this.g_agu+=g?1:-1,0>this.g_agu&&(this.g_agu=0);const e=this.g_ahP();if(!_&&e)console.log("[Construct 3] Suspending"),-1!==this.g_adX&&(cancelAnimationFrame(this.g_adX),this.g_adX=-1),this.g_aaJ.dispatchEvent(g_bA.g_eM(g_bA.Event,"suspend")),this.g_IS(g_bA.g_Gm.g_Gl.g_Gk.g_ahQ,null);else if(_&&!e){console.log("[Construct 3] Resuming");const g=performance.now();this.g_agy=g,this.g_agF=g,this.g_agE=0,this.g_agG=0,this.g_agI=0,this.g_agH=0,this.g_aaJ.dispatchEvent(g_bA.g_eM(g_bA.Event,"resume")),this.g_IS(g_bA.g_Gm.g_Gl.g_Gk.g_ahR,null),this.g_Qi()||this.g_Jv(g)}}g_Zr(g){this.g_agY.g_jL(g)}g_Zw(g){this.g_agZ.g_jL(g)}g_Zt(g){this.g_ag_.g_jL(g)}g_Zs(g){this.g_agY.g_lC(g)}g_Zx(g){this.g_agZ.g_lC(g)}g_Zu(g){this.g_ag_.g_lC(g)}g_ahS(){for(const g of this.g_agY)g.g_Jv()}g_ahT(){for(const g of this.g_agZ)g.g_Zq()}g_ahU(){for(const g of this.g_ag_)g.g_Yo()}*g_ahV(){for(const g of this.g_agY){const _=g.g_Jv();g_bA.g_gS(_)&&(yield*_)}}*g_ahW(){for(const g of this.g_agZ){const _=g.g_Zq();g_bA.g_gS(_)&&(yield*_)}}*g_ahX(){for(const g of this.g_ag_){const _=g.g_Yo();g_bA.g_gS(_)&&(yield*_)}}async g_Jv(g,_){if(this.g_adX=-1,this.g_ags=!0,this.g_agq&&(!this.g_ahP()||_)){const _=performance.now();this.g_agr=!0,g||(g=_),await this.g_ahY(g),this.g_ahZ(),this.g_ahP()||-1!==this.g_adX||(this.g_adX=self.requestAnimationFrame(this.g_agm)),this.g_agn++,this.g_ago++,this.g_agp++,this.g_agr=!1,this.g_agH+=performance.now()-_}}async g_ahY(g){const _=this.g_Od,e=this.g_aaJ,a=this.g_agX,t=this.g_Rf(),n=this.g_ah_();if(this.g_ah$(g),this.g_CK(),_.g_Dg(!0),this.g_PY(this.g_GI()),t&&g_aeT.g_aia(),n?await _.g_QE():_.g_Qz(),t&&g_aeT.g_aib(),this.g_PZ(),_.g_Dg(!1),this.g_CK(),_.g_Dg(!0),await e.g_lc(a.pretick),t&&g_aeT.g_aia(),n?await this.g_aic(this.g_ahV()):this.g_ahS(),n?await this.g_aic(this.g_ahW()):this.g_ahT(),t&&g_aeT.g_aid(),t&&g_aeT.g_aia(),n?await this.g_aie(a.tick):e.dispatchEvent(a.tick),t&&g_aeT.g_aif(),_.g_Dg(!1),this.g_aig()&&(await this.g_aih()),this.g_Qj().g_Hh()&&(await this.g_aii()),t&&g_aeT.g_aia(),n?await _.g_P_(this.g_Fi):_.g_PX(this.g_Fi),t&&g_aeT.g_aib(),this.g_afR.g_acO(),0<this.g_age.size){this.g_aaJ.g_kS(!0);for(const g of this.g_agf)g.g_Qs().g_NI(this.g_age);this.g_agf.clear(),this.g_Od.g_QG(this.g_age);for(const g of this.g_age)g.g_eN();this.g_age.clear(),this.g_aaJ.g_kS(!1)}this.g_agt=!1,_.g_Dg(!0),t&&g_aeT.g_aia(),n?await this.g_aic(this.g_ahX()):this.g_ahU(),t&&g_aeT.g_aid(),t&&g_aeT.g_aia(),n?await this.g_aie(a.tick2):e.dispatchEvent(a.tick2),t&&g_aeT.g_aif(),_.g_Dg(!1),n&&(await _.g_Qk())}async g_aii(){const g=this.g_Qj();for(let _=0;g.g_Hh()&&10>_++;)await this.g_aij(g.g_Hi())}g_ah$(g){if(0!==this.g_agy){const _=Math.max(g-this.g_agy,0);this.g_agz=_/1e3;const e=1/this.g_agB;.5<this.g_agz?this.g_agz=0:this.g_agz>e&&(this.g_agz=e)}this.g_agy=g,this.g_agA=this.g_agz*this.g_aaF,this.g_agC.g_jL(this.g_agA),this.g_agD.g_jL(this.g_agz),this.g_agh&&this.g_agh.g_aeR(),1e3<=g-this.g_agF&&(this.g_agF+=1e3,1e3<=g-this.g_agF&&(this.g_agF=g),this.g_agG=this.g_agE,this.g_agE=0,this.g_agI=Math.min(this.g_agH/1e3,1),this.g_agH=0,this.g_agh&&this.g_agh.g_aeQ(),this.g_afR.g_acI(),this.g_Rf()&&g_aeT.g_aik()),this.g_agE++}async g_aij(g){const _=this.g_aaJ,e=this.g_Qj(),a=e.g_GI();await a.g_GB(),a.g_FW(g,this.g_pu()),a===g&&this.g_Od.g_GE(),this.g_afR.g_acO(),_.dispatchEvent(this.g_agX.beforelayoutchange),await g.g_FQ(a,this.g_pu()),await g.g_FY(!1),_.dispatchEvent(this.g_agX.layoutchange),this.g_Dt(),this.g_agt=!0,this.g_CK()}g_Dt(){this.g_agj=!0}g_pu(){return this.g_agh?this.g_agh.g_pu():null}g_ahZ(){if(!this.g_agh||this.g_agh.g_aeH())return;const g=this.g_pu();if(g.g_zd(),g.g_zf(),!this.g_agj)return void g.g_zE();const _=this.g_Rf();_&&g_aeT.g_aia(),this.g_agj=!1;let e=null;g.g_zq()&&(e=this.g_agh.g_aeU().g_vv(),g.g_zp(e)),g.g_xn(),g.g_xU(),g.g_xO(1,1,1,1),g.g_zj(null),g.g_xS(null);const a=this.g_Fi.g_GI();a.g_El(g),e&&g.g_zr(e),g.g_ze(),_&&(g_aeT.g_ail(),g_aeT.g_aim()),this.g_agh&&this.g_agh.g_aeX()}g_IS(g,_){if(!this.g_agq)return!1;const e=!this.g_agr&&!this.g_Od.g_Qo();let a=0;e&&(a=performance.now());const n=this.g_Rf();n&&this.g_ain(!1);const r=this.g_Od.g_Qc(this.g_Fi,g,_);if(e){const g=performance.now()-a;this.g_agH+=g,n&&g_aeT.g_aio(g)}return n&&this.g_ain(!0),r}g_Ye(g,_){if(!this.g_Rf())return this.g_IS(g,_);if(this.g_Qi())throw new Error("called DebugTrigger() while stopped on breakpoint");if(!this.g_agr&&!this.g_Od.g_Qo())throw new Error("called DebugTrigger() outside of event code - use TriggerAsync() instead");return this.g_Od.g_Qf(this.g_Fi,g,_)}async g_Gi(g,_){if(!this.g_ah_())return this.g_IS(g,_);if(!this.g_agq)return!1;if(this.g_Qi())return this.g_Od.g_Qg(g,_);if(!this.g_GI())return this.g_Od.g_Qd(g,_);const e=performance.now(),a=this.g_Od.g_Qf(this.g_Fi,g,_);let t=a.next();for(;!t.done;)await this.g_Qa(t.value),t=a.next();return this.g_ahP()||this.g_Od.g_Qo()||(await this.g_Od.g_Qk(),this.g_ags&&-1===this.g_adX&&!this.g_agr&&(this.g_adX=self.requestAnimationFrame(this.g_agm))),this.g_agH+=performance.now()-e,t.value}g_Yf(g,_,e){const a=this.g_Rf();a&&this.g_ain(!1);const t=this.g_Od.g_Ql(this.g_Fi,g,_,e);return a&&this.g_ain(!0),t}g_Yg(g,_,e){return this.g_Od.g_Qm(this.g_Fi,g,_,e)}g_Yh(g){return this.g_agv.g_jL(g)}g_PY(g){this.g_afY.push(g)}g_PZ(){if(!this.g_afY.length)throw new Error("layout stack empty");this.g_afY.pop()}g_SO(){if(!this.g_afY.length)throw new Error("no current layout");return this.g_afY[this.g_afY.length-1]}g_Lz(g){return g&&-1!==g.g_LA()?this.g_agz*g.g_LA():this.g_agA}g_aip(){return this.g_agA}g_aiq(){return this.g_agz}g_LA(){return this.g_aaF}g_aaR(g){(isNaN(g)||0>g)&&(g=0),this.g_aaF=g}g_air(g){this.g_agB=g_bA.g_eQ(g,1,120)}g_ais(){return this.g_agB}g_ait(){return this.g_agG}g_aiu(){return this.g_agI}g_aiv(){return this.g_agx}g_EK(){return this.g_agC.g_bR()}g_aiw(){return this.g_agD.g_bR()}g_IU(){return this.g_agn}g_aix(){return this.g_ago}g_RK(){++this.g_agp}g_aiy(){return this.g_agp}g_aiz(){return this.g_agb}g_aiA(){return this.g_afD}g_aiB(){return this.g_afE}g_aiC(){return this.g_afF}g_JP(g){if(this.g_agJ)throw new Error("cannot call while loading state - wait until afterload event");return this.g_agd.get(g)||null}g_Gs(){this.g_agd.clear();for(const g of this.g_afS)if(!g.g_De())for(const _ of g.g_Gp())this.g_agd.set(_.g_CJ(),_)}g_AC(){return"preview"===this.g_aft}g_Rf(){return this.g_afy}g_AD(){return this.g_aft}g_afl(){return"cordova"===this.g_aft}g_ahr(){return this.g_zR}g_aiD(){return this.g_afR}g_ZQ(){return this.g_afQ.g_ZQ()}g_ZR(){return this.g_afQ.g_ZR()}g_aiE(){return this.g_agt}g_aiF(g){g=!!g,this.g_agi===g||(this.g_agi=g,this.g_Dt())}g_ES(){return this.g_agi}g_aiG(g){this.g_agK=g}g_aiH(g){this.g_agL=g}g_WY(g){this.g_agM=g}g_aiI(){return this.g_agN}g_aig(){return!!(this.g_agK||this.g_agL||null!==this.g_agM)}async g_aih(){if(this.g_agK&&(this.g_CK(),await this.g_aiJ(this.g_agK),this.g_aiK()),this.g_agL&&(await this.g_aiL(this.g_agL),this.g_aiK(),this.g_Rf()&&g_aeT.g_aiM()),null!==this.g_agM){this.g_CK();try{await this.g_aiN(this.g_agM),this.g_agN=this.g_agM,await this.g_Gi(g_bA.g_Gm.g_Gl.g_Gk.g_aiO,null),this.g_agN=""}catch(g){console.error("[Construct 3] Failed to load state from JSON string: ",g),await this.g_Gi(g_bA.g_Gm.g_Gl.g_Gk.g_aiP,null)}this.g_aiK()}}g_aiK(){this.g_agK="",this.g_agL="",this.g_agM=null}g_aiQ(){return this.g_agP||(this.g_agP=localforage.g_bz({name:"c3-savegames-"+this.g_aiC(),description:this.g_aiA()})),this.g_agP}async g_aiJ(g){const _=this.g_aiR();try{await this.g_aiQ().setItem(g,_),console.log("[Construct 3] Saved state to storage ("+_.length+" chars)"),this.g_agN=_,await this.g_Gi(g_bA.g_Gm.g_Gl.g_Gk.g_aiS,null),this.g_agN=""}catch(g){console.error("[Construct 3] Failed to save state to storage: ",g),await this.g_Gi(g_bA.g_Gm.g_Gl.g_Gk.g_aiT,null)}}async g_aiL(g){try{const _=await this.g_aiQ().getItem(g);if(!_)throw new Error("empty slot");console.log("[Construct 3] Loaded state from storage ("+_.length+" chars)"),await this.g_aiN(_),this.g_agN=_,await this.g_Gi(g_bA.g_Gm.g_Gl.g_Gk.g_aiO,null),this.g_agN=""}catch(g){console.error("[Construct 3] Failed to load state from storage: ",g),await this.g_Gi(g_bA.g_Gm.g_Gl.g_Gk.g_aiP,null)}}g_aiR(){const g={c3save:!0,version:1,rt:{time:this.g_EK(),walltime:this.g_aiw(),timescale:this.g_LA(),tickcount:this.g_IU(),execcount:this.g_aiy(),next_uid:this.g_agc,running_layout:this.g_GI().g_Dm(),start_time_offset:Date.now()-this.g_agx},types:{},layouts:{},events:this.g_Od.g_Fd()};for(const _ of this.g_afS)_.g_De()||_.g_aaq()||(g.types[_.g_Dm().toString()]=_.g_Fd());for(const _ of this.g_Fi.g_Ha())g.layouts[_.g_Dm().toString()]=_.g_Fd();return JSON.stringify(g)}g_Gg(){return this.g_agJ}g_Gh(g){g_bA.g_fZ(this.g_agO,g)}async g_aiN(g){const _=JSON.parse(g);if(_.c2save)throw new Error("C2 saves are incompatible with C3 runtime");if(!_.c3save)throw new Error("not valid C3 save data");if(1<_.version)throw new Error("C3 save data from future version");this.g_agJ=!0;const e=_.rt;this.g_agC.Set(e.time),this.g_agD.Set(e.walltime),this.g_aaF=e.timescale,this.g_agn=e.tickcount,this.g_agp=e.execcount,this.g_agx=Date.now()-e.start_time_offset;const a=e.running_layout;if(a!==this.g_GI().g_Dm()){const g=this.g_Fi.g_G_(a);if(g)await this.g_aij(g);else return}for(const[i,n]of Object.entries(_.types)){const g=parseInt(i,10),_=this.g_Gr(g);!_||_.g_De()||_.g_aaq()||_.g_Ff(n)}this.g_CK(),this.g_Gs(),this.g_agJ=!1,this.g_agc=e.next_uid;for(const[i,n]of Object.entries(_.layouts)){const g=parseInt(i,10),_=this.g_Fi.g_G_(g);_&&_.g_Ff(n)}this.g_Od.g_Ff(_.events);for(const _ of this.g_agO)_.g_Dh();g_bA.g_fV(this.g_agO);for(const _ of this.g_afS)if(!_.g_De()&&_.g_Di())for(const g of _.g_Gp()){const e=g.g_Gt();for(const a of _.g_FO().g_Gu()){if(a===_)continue;const t=a.g_Gp();if(0>e||e>=t.length)throw new Error("missing sibling instance");g.g_Gv(t[e])}}this.g_aaJ.dispatchEvent(g_bA.g_eM(g_bA.Event,"afterload")),this.g_Dt()}async g_ahu(g){const _=await Promise.all(g.map(g=>this.g_Be.g_gv(g))),e=_.map(g=>URL.createObjectURL(g));this.g_ag$.g_aiU(e)}g_aht(g,_){this.g_ag$.g_aiV(g,_)}g_ahs(g,_){this.g_ag$.g_aiW(g,_)}g_ahv(g,_,e){return this.g_ag$.g_ahv(g,_,e)}g_aiX(g,_,e){return this.g_ag$.g_aiX(g,_,e)}g_aiY(g,_){this.g_Yl("runtime","invoke-download",{url:g,filename:_})}async g_afb(g,_,e){if(this.g_AU())return await this.g_Aw("runtime","raster-svg-image",{blob:g,width:_,height:e});else{const a=await g_bA.g_gB(g);return await self.C3_RasterSvgImage(a,_,e)}}g_aiZ(){this.g_agT||(this.g_agT=!0,this.g_Yl("runtime","enable-device-orientation"))}g_ai_(){this.g_agU||(this.g_agU=!0,this.g_Yl("runtime","enable-device-motion"))}g_ahI(){return this.g_agw()}g_ai$(g){this.g_agw=g}g_ahd(){return{fps:this.g_ait(),cpu:this.g_aiu(),gpu:this.g_aeV(),layout:this.g_GI()?this.g_GI().g_q_():"",renderer:this.g_pu().g_zC()}}g_Qi(){return!!this.g_Rf()&&g_aeT.g_Qi()}g_Qa(g){return this.g_ah_()?g_aeT.g_Qa(g):Promise.resolve()}g_Tc(){return!!this.g_ah_()&&g_aeT.g_aja()}g_ajb(g){this.g_afz=!!g,this.g_ajc()}g_ajd(){return this.g_afz}g_ah_(){return this.g_afA}g_ain(g){g?this.g_afB--:this.g_afB++,this.g_ajc()}g_ajc(){this.g_afA=this.g_Rf()&&this.g_afz&&0===this.g_afB}g_Rz(){return this.g_Rf()&&g_aeT.g_Rz()}g_En(){return this.g_Rf()&&this.g_pu().g_zq()&&g_aeT.g_En()}async g_aic(g){if(g)for(const _ of g)await this.g_Qa(_)}g_aie(g){return this.g_aic(this.g_aaJ.g_le(g))}},self.C3_CreateRuntime=g_bA.g_afm.g_pM,self.C3_InitRuntime=(g,_)=>g.g_aaM(_)}"use strict",g_bA.g_aha=class extends g_bA.g_eK{constructor(g,_){super(),this.g_zM=g,this.g_aje=new Map,this.g_ajf=0,this.g_ajg=_.inputPort,_.outputPort.onmessage=g=>this.g_ajh(g),this.g_aji=_.maxNumWorkers,this.g_ajj=1,this.g_ajk=!1,this.g_ajl=!1,this.g_ajm=!1,this.g_ajn=null}async g_aaM(){await this.g_ajo()}g_aiU(g){this.g_ajm||this.g_ajg.postMessage({type:"_import_scripts",scripts:g})}g_aiV(g,_){this.g_ajm||this.g_ajg.postMessage({type:"_send_blob",blob:g,id:_})}g_aiW(g,_){this.g_ajm||this.g_ajg.postMessage({type:"_send_buffer",buffer:g,id:_},[g])}g_ahv(_,a,t,n,i){if(this.g_ajm)return Promise.reject("messagechannels broken");t||(t=[]);const e=this.g_ajf++,r={type:_,isBroadcast:!1,jobId:e,params:a,transferables:t},g=new Promise((g,_)=>{this.g_aje.set(e,{resolve:g,g_AP:n,reject:_,g_ajp:!1})});return i&&i.g_lA(()=>this.g_ajq(e)),this.g_ajg.postMessage(r,t),this.g_ajr(),g}g_aiX(g,_,a){if(!this.g_ajm){a||(a=[]);const t=this.g_ajf++,n={type:g,isBroadcast:!0,jobId:t,params:_,transferables:a};this.g_ajg.postMessage(n,a)}}g_ajq(g){const _=this.g_aje.get(g);_&&(_.g_ajp=!0,_.resolve=null,_.g_AP=null,_.reject=null,this.g_ajg.postMessage({type:"_cancel",jobId:g}))}g_ajh(g){const _=g.data,e=_.type,a=_.jobId;switch(e){case"result":this.g_ajs(a,_.result);break;case"progress":this.g_ajt(a,_.progress);break;case"error":this.g_aju(a,_.error);break;case"ready":this.g_ajv();break;case"_testMessageChannelOk":this.g_ajw();break;default:throw new Error(`unknown message from worker '${e}'`);}}g_ajs(g,_){const e=this.g_aje.get(g);if(!e)throw new Error("invalid job ID");e.g_ajp||e.resolve(_),this.g_aje.delete(g)}g_ajt(g,_){const e=this.g_aje.get(g);if(!e)throw new Error("invalid job ID");!e.g_ajp&&e.g_AP&&e.g_AP(_)}g_aju(g,_){const e=this.g_aje.get(g);if(!e)throw new Error("invalid job ID");e.g_ajp||e.reject(_),this.g_aje.delete(g)}g_ajv(){this.g_ajk&&(this.g_ajk=!1,this.g_ajj++,this.g_ajj<this.g_aji?this.g_ajr():this.g_ajg.postMessage({type:"_no_more_workers"}))}async g_ajr(){if(!(this.g_ajj>=this.g_aji||this.g_ajk||this.g_ajl||this.g_aje.size<=this.g_ajj))try{this.g_ajk=!0;const g=await this.g_zM.g_Aw("runtime","create-job-worker");g.outputPort.onmessage=g=>this.g_ajh(g)}catch(g){this.g_ajl=!0,this.g_ajk=!1,console.error(`[Construct 3] Failed to create job worker; stopping creating any more (created ${this.g_ajj} so far)`,g)}}g_ajo(){return this.g_ajg.postMessage({type:"_testMessageChannel"}),self.setTimeout(()=>this.g_ajx(),2e3),new Promise(g=>this.g_ajn=g)}g_ajw(){this.g_ajn(),this.g_ajn=null}g_ajx(){this.g_ajn&&(console.warn("MessageChannel determined to be broken. Job scheduler disabled."),this.g_ajm=!0,this.g_ajn(),this.g_ajn=null)}},self.C3_Shaders={},"use strict";{function _(g,_){const e=g[1],t=_[1];if("number"==typeof e&&"number"==typeof t)return e-t;else{const g=""+e,_=""+t;return g<_?-1:g>_?1:0}}let t=null,n="",r="",o=[],e="",u="",g="";const s=g_bA.g_eM(g_bA.g_OR);g_bA.g_Gm.g_Gl=class extends g_bA.g_Xs{constructor(g){super(g),this.g_OK=this.g_zM.g_Dc().g_PC(),this.g_ajy=0,this.g_ajz=0}g_eN(){super.g_eN()}g_Dt(){this.g_zM.g_Dt()}g_IS(g){this.g_zM.g_IS(g,null)}g_ajA(g,_){return t&&g===n&&_===r||(t=new RegExp(g,_),n=g,r=_),t.lastIndex=0,t}g_ajB(_,a,t){if(_===e&&a===u&&t===g)return o;const n=this.g_ajA(a,t);return o=_.match(n),e=_,u=a,g=t,o}async g_ajC(g,_){if(_.length){this.g_ajy+=_.length;const e=[];for(const a of _)e.push(g.g_FS(a));await g_bA.g_gm(e,()=>{this.g_ajz++}),this.g_ajz++,this.g_ajz===this.g_ajy&&(this.g_zM.g_IS(g_bA.g_Gm.g_Gl.g_Gk.g_ajD,null),this.g_ajz=0,this.g_ajy=0)}}g_ajE(g,_){for(const e of _)0===e.g_Dj()&&g.g_FU(e)}g_ajF(){return s}g_ajG(_){const a=this.g_zM.g_Dc(),t=a.g_NK(),n=t.g_Ob(),r=n.g_Oa(),e=r.g_OC(),d=n.g_Oz(),g=t.g_Of(r),o=a.g_PC(),i=o.g_Of();if(i.g_OP(_),d)for(let t=0;t<_&&!i.g_OO();++t)a.g_Qu(e),i.g_ON(t),r.g_Tl(n,g),a.g_Qv(e);else for(let e=0;e<_&&!i.g_OO();++e)i.g_ON(e),r.g_Tl(n,g);return t.g_NH(),o.g_NH(),!1}*g_ajH(_){const a=this.g_zM.g_Dc(),t=a.g_NK(),n=t.g_Ob(),r=n.g_Oa(),e=r.g_OC(),d=n.g_Oz(),g=t.g_Of(r),o=a.g_PC(),i=o.g_Of();if(i.g_OP(_),d)for(let t=0;t<_&&!i.g_OO();++t)a.g_Qu(e),i.g_ON(t),yield*r.g_Tm(n,g),a.g_Qv(e);else for(let e=0;e<_&&!i.g_OO();++e)i.g_ON(e),yield*r.g_Tm(n,g);return t.g_NH(),o.g_NH(),!1}g_ajI(){const _=this.g_zM.g_Dc(),a=_.g_NK(),t=a.g_Ob(),n=t.g_Oa(),i=n.g_OC(),e=t.g_Oz(),r=a.g_Of(n),g=_.g_PC(),d=g.g_Of();if(e)for(let g=0;!d.g_OO();++g)_.g_Qu(i),d.g_ON(g),n.g_Tl(t,r)||d.g_Jk(),_.g_Qv(i);else for(let g=0;!d.g_OO();++g)d.g_ON(g),n.g_Tl(t,r)||d.g_Jk();return a.g_NH(),g.g_NH(),!1}*g_ajJ(){const _=this.g_zM.g_Dc(),a=_.g_NK(),t=a.g_Ob(),n=t.g_Oa(),i=n.g_OC(),e=t.g_Oz(),r=a.g_Of(n),g=_.g_PC(),d=g.g_Of();if(e)for(let g=0;!d.g_OO();++g){_.g_Qu(i),d.g_ON(g);const e=yield*n.g_Tm(t,r);e||d.g_Jk(),_.g_Qv(i)}else for(let g=0;!d.g_OO();++g){d.g_ON(g);const _=yield*n.g_Tm(t,r);_||d.g_Jk()}return a.g_NH(),g.g_NH(),!1}g_ajK(_,t,n){const r=this.g_zM.g_Dc(),a=r.g_NK(),e=a.g_Ob(),d=e.g_Oa(),g=d.g_OC(),o=e.g_Oz(),i=a.g_Of(d),u=r.g_PC(),s=u.g_Of();if(s.g_IB(_),s.g_OP(n),n<t){if(o)for(let _=t;_>=n&&!s.g_OO();--_)r.g_Qu(g),s.g_ON(_),d.g_Tl(e,i),r.g_Qv(g);else for(let g=t;g>=n&&!s.g_OO();--g)s.g_ON(g),d.g_Tl(e,i);}else if(o)for(let _=t;_<=n&&!s.g_OO();++_)r.g_Qu(g),s.g_ON(_),d.g_Tl(e,i),r.g_Qv(g);else for(let g=t;g<=n&&!s.g_OO();++g)s.g_ON(g),d.g_Tl(e,i);return a.g_NH(),u.g_NH(),!1}*g_ajL(_,t,n){const r=this.g_zM.g_Dc(),a=r.g_NK(),e=a.g_Ob(),d=e.g_Oa(),g=d.g_OC(),o=e.g_Oz(),i=a.g_Of(d),u=r.g_PC(),s=u.g_Of();if(s.g_IB(_),s.g_OP(n),n<t){if(o)for(let _=t;_>=n&&!s.g_OO();--_)r.g_Qu(g),s.g_ON(_),yield*d.g_Tm(e,i),r.g_Qv(g);else for(let g=t;g>=n&&!s.g_OO();--g)s.g_ON(g),yield*d.g_Tm(e,i);}else if(o)for(let _=t;_<=n&&!s.g_OO();++_)r.g_Qu(g),s.g_ON(_),yield*d.g_Tm(e,i),r.g_Qv(g);else for(let g=t;g<=n&&!s.g_OO();++g)s.g_ON(g),yield*d.g_Tm(e,i);return a.g_NH(),u.g_NH(),!1}g_ajM(_){const a=this.g_zM.g_Dc(),t=a.g_NK(),i=t.g_Ob(),r=i.g_Oa(),e=r.g_OC(),d=i.g_Oz(),o=t.g_Of(r),g=a.g_PC(),u=g.g_Of(),f=_.g_Di(),l=_.g_ND(),p=s.g_Of();if(g_bA.g_fZ(p,l.g_Gp()),u.g_OP(p.length),d)for(let t=0,n=p.length;t<n&&!u.g_OO();++t){a.g_Qu(e);const n=p[t];_.g_ND().g_NY(n),f&&n.g_RH(),u.g_ON(t),r.g_Tl(i,o),a.g_Qv(e)}else{l.g_NV(!1);const g=l.g_NW();g_bA.g_fV(g),g.push(null);for(let _=0,e=p.length;_<e&&!u.g_OO();++_){const e=p[_];g[0]=e,f&&e.g_RH(),u.g_ON(_),r.g_Tl(i,o)}}return t.g_NH(),g.g_NH(),g_bA.g_fV(p),s.g_NH(),!1}*g_ajN(_){const a=this.g_zM.g_Dc(),t=a.g_NK(),i=t.g_Ob(),r=i.g_Oa(),e=r.g_OC(),d=i.g_Oz(),o=t.g_Of(r),g=a.g_PC(),u=g.g_Of(),f=_.g_Di(),l=_.g_ND(),p=s.g_Of();if(g_bA.g_fZ(p,l.g_Gp()),u.g_OP(p.length),d)for(let t=0,n=p.length;t<n&&!u.g_OO();++t){a.g_Qu(e);const n=p[t];_.g_ND().g_NY(n),f&&n.g_RH(),u.g_ON(t),yield*r.g_Tm(i,o),a.g_Qv(e)}else{l.g_NV(!1);const g=l.g_NW();g_bA.g_fV(g),g.push(null);for(let _=0,e=p.length;_<e&&!u.g_OO();++_){const e=p[_];g[0]=e,f&&e.g_RH(),u.g_ON(_),yield*r.g_Tm(i,o)}}return t.g_NH(),g.g_NH(),g_bA.g_fV(p),s.g_NH(),!1}g_ajO(t,a){const i=this.g_zM.g_Dc(),d=i.g_NK(),e=i.g_Px(),u=d.g_Ob(),g=u.g_Oa(),f=g.g_OC(),c=u.g_Oz(),h=d.g_Of(g),l=i.g_PC(),M=l.g_Of(),n=t.g_Di(),o=t.g_ND(),p=s.g_Of();g_bA.g_fV(p);const m=o.g_Gp();M.g_OP(m.length);for(let g=0,_=m.length;g<_;++g)p.push([m[g],e.g_Vr(1,g)]);if(p.sort(_),1===a&&p.reverse(),c)for(let _=0,e=p.length;_<e&&!M.g_OO();++_){i.g_Qu(f);const e=p[_][0];t.g_ND().g_NY(e),n&&e.g_RH(),M.g_ON(_),g.g_Tl(u,h),i.g_Qv(f)}else{o.g_NV(!1);const _=o.g_NW();g_bA.g_fV(_),_.push(null);for(let e=0,a=p.length;e<a&&!M.g_OO();++e){const a=p[e][0];_[0]=a,n&&a.g_RH(),M.g_ON(e),g.g_Tl(u,h)}}return d.g_NH(),l.g_NH(),g_bA.g_fV(p),s.g_NH(),!1}*g_ajP(t,a){const i=this.g_zM.g_Dc(),d=i.g_NK(),e=i.g_Px(),u=d.g_Ob(),g=u.g_Oa(),f=g.g_OC(),c=u.g_Oz(),h=d.g_Of(g),l=i.g_PC(),M=l.g_Of(),n=t.g_Di(),o=t.g_ND(),p=s.g_Of();g_bA.g_fV(p);const m=o.g_Gp();M.g_OP(m.length);for(let g=0,_=m.length;g<_;++g)p.push([m[g],e.g_Vr(1,g)]);if(p.sort(_),1===a&&p.reverse(),c)for(let _=0,e=p.length;_<e&&!M.g_OO();++_){i.g_Qu(f);const e=p[_][0];t.g_ND().g_NY(e),n&&e.g_RH(),M.g_ON(_),yield*g.g_Tm(u,h),i.g_Qv(f)}else{o.g_NV(!1);const _=o.g_NW();g_bA.g_fV(_),_.push(null);for(let e=0,a=p.length;e<a&&!M.g_OO();++e){const a=p[e][0];_[0]=a,n&&a.g_RH(),M.g_ON(e),yield*g.g_Tm(u,h)}}return d.g_NH(),l.g_NH(),g_bA.g_fV(p),s.g_NH(),!1}}}"use strict",g_bA.g_Gm.g_Gl.g_$A=class extends g_bA.g_eK{constructor(g){super(),this.g_NA=g,this.g_zM=g.g_Am(),this.g_XW=g.g_GH()}g_XI(){}g_eN(){this.g_NA=null,this.g_zM=null,this.g_XW=null}},"use strict",g_bA.g_Gm.g_Gl.g_HR=class extends g_bA.g_eK{constructor(g){super(),this.g_VH=g,this.g_NA=this.g_VH.g_C$(),this.g_X_=this.g_NA.g_X$(),this.g_zM=this.g_VH.g_Am()}g_eN(){this.g_VH=null,this.g_NA=null,this.g_X_=null,this.g_zM=null}},"use strict";{const _=[];g_bA.g_Gm.g_Gl.g_Gk={g_ajQ(){return!0},g_Gj(){return!0},g_GC(){return!0},g_ahQ(){return!0},g_ahR(){return!0},g_ahP(){return this.g_zM.g_ahP()},g_Sr(){const g=this.g_zM.g_Pw();return!g.g_Ow()&&!g.g_Ou()},g_ajR(){const g=this.g_zM.g_Px(),_=g.g_Ve();let e=_.get("TriggerOnce_lastTick");"undefined"==typeof e&&(e=-1,_.set("TriggerOnce_lastTick",-1));const a=this.g_zM.g_IU();return _.set("TriggerOnce_lastTick",a),this.g_zM.g_aiE()||e!==a-1},g_ajS(g){const _=this.g_zM.g_Px(),a=_.g_Ve(),t=a.get("Every_lastTime")||0,n=this.g_zM.g_EK();a.has("Every_seconds")||a.set("Every_seconds",g);const e=a.get("Every_seconds");return n>=t+e?(a.set("Every_lastTime",t+e),n>=a.get("Every_lastTime")+.04&&a.set("Every_lastTime",n),a.set("Every_seconds",g),!0):(n<t-.1&&a.set("Every_lastTime",n),!1)},g_QR(g){const _=this.g_zM.g_Dc().g_PP(g);return _&&_.g_QR()},g_AC(){return this.g_zM.g_AC()},g_cF(){return g_bA.g_cu.g_cF},g_ahy(){return!0},g_ajT(){return!0},g_ajU(){return!0},g_aiS(){return!0},g_aiT(){return!0},g_aiO(){return!0},g_aiP(){return!0},g_ajV(g){return!!this.g_zM.g_JP(g)},g_ajW(g){return 0===g?"browser"===g_bA.g_cu.g_cD:1===g?"iOS"===g_bA.g_cu.g_cv:2===g?"Android"===g_bA.g_cu.g_cv:8===g?"cordova"===g_bA.g_cu.g_cD:9===g?"scirra-arcade"===this.g_zM.g_AD():10===g?"nwjs"===g_bA.g_cu.g_cD:13==g&&"windows-uwp"===this.g_zM.g_AD()},g_ajX(g,_,e){const a=this.g_ajA(_,e);return a.test(g)},g_ajY(g,_,e){return g_bA.g_gk(g,_,e)},g_ajZ(g,_,e){return g>=_&&g<=e},g_aj_(g,_,e){return g_bA.g_gk(g.g_Ku(),_,e)},g_aj$(g){return!!g.g_Ku()},g_aka(g,_){const e=this.g_zM.g_EK();if(0===g){const g=this.g_zM.g_Px(),a=g.g_Ve();return!a.get("CompareTime_executed")&&e>=_&&(a.set("CompareTime_executed",!0),!0)}return g_bA.g_gk(e,g,_)},g_akb(g){return isNaN(g)},g_Wm(g,_,e){return g_bA.g_eX(g_bA.g_eS(g),g_bA.g_eS(e))<=g_bA.g_eS(_)},g_Wn(g,_){return g_bA.g_eZ(g_bA.g_eS(g),g_bA.g_eS(_))},g_Wo(_,t,a){let n=g_bA.g_eS(_),i=g_bA.g_eS(t),e=g_bA.g_eS(a),r=!g_bA.g_eZ(e,i);return r?g_bA.g_eZ(n,i)||!g_bA.g_eZ(n,e):g_bA.g_eZ(n,i)&&!g_bA.g_eZ(n,e)},g_akc(g,_){return"number"==typeof g?0===_:1===_},g_akd(_,t,n,r){if(!_)return!1;const a=this.g_ajF(),o=a.g_Of(),u=_.g_ND();g_bA.g_fZ(o,u.g_Gp()),u.g_NO()&&g_bA.g_fV(u.g_NX());const g=this.g_zM.g_Px();let s=0;for(let d=0,e=o.length;d<e;++d){const _=o[d];o[s]=_,t=g.g_Vr(1,d),r=g.g_Vr(3,d),g_bA.g_gk(t,n,r)?++s:u.g_NU(_)}g_bA.g_fU(o,s),u.g_NZ(o);const e=!!o.length;return g_bA.g_fV(o),a.g_NH(),_.g_Vg(),e},g_ake(_,t){if(!_)return!1;const a=this.g_ajF(),n=a.g_Of(),i=_.g_ND();g_bA.g_fZ(n,i.g_Gp()),i.g_NO()&&g_bA.g_fV(i.g_NX());const e=this.g_zM.g_Px();let r=0;for(let g=0,a=n.length;g<a;++g){const _=n[g];n[r]=_,t=e.g_Vr(1,g),t?++r:i.g_NU(_)}g_bA.g_fU(n,r),i.g_NZ(n);const d=!!n.length;return g_bA.g_fV(n),a.g_NH(),_.g_Vg(),d},g_akf(g,_){if(!g)return!1;const a=g.g_ND(),t=a.g_Gp();if(_=Math.floor(_),_>=t.length)return!1;const n=t[_];return a.g_N_(n),g.g_Vg(),!0},g_akg(g){if(!g)return!1;const _=g.g_ND(),a=_.g_Gp(),t=Math.floor(this.g_zM.g_ahI()*a.length);if(t>=a.length)return!1;const n=a[t];return _.g_N_(n),g.g_Vg(),!0},g_akh(g){if(!g)return!1;if(!g.g_Dj())return!1;const _=g.g_ND();return _.g_NV(!0),g.g_Vg(),!0},g_aki(a,t,n){if(!a)return!1;const i=a.g_ND(),e=i.g_Gp(),r=this.g_zM.g_Oa(),g=r.g_N$(),d=this.g_zM.g_Px().g_Va();i.g_NO()?(g_bA.g_fZ(_,e),i.g_NN(),i.g_NV(!1)):g?(g_bA.g_fZ(_,i.g_NX()),g_bA.g_fV(i.g_NX())):(g_bA.g_fZ(_,i.g_NW()),g_bA.g_fV(i.g_NW()));for(let e=0,r=_.length;e<r;++e){const g=_[e];g_bA.g_gj(g.g_Bv().g_acc(t,n),d)?i.g_NT(g):i.g_NU(g)}return a.g_Vg(),g_bA.g_gj(!!i.g_NW().length,d)},g_akj(g){if(!g)return!1;const _=g.g_De();let a=null;const t=this.g_zM.g_VR();for(let n=t.length-1;0<=n;--n){const e=t[n];if(_){if(e.g_C$().g_VQ(g)){a=e;break}}else if(e.g_C$()===g){a=e;break}}if(!a){const _=g.g_Gp();_.length&&(a=_[_.length-1])}if(!a)return!1;const n=g.g_ND();return n.g_N_(a),g.g_Vg(),!0},g_akk(g){return this.g_zM.g_ah_()?this.g_ajH(g):this.g_ajG(g)},g_akl(){return this.g_zM.g_ah_()?this.g_ajJ():this.g_ajI()},g_akm(g,_,e){return this.g_zM.g_ah_()?this.g_ajL(g,_,e):this.g_ajK(g,_,e)},g_mo(g){return this.g_zM.g_ah_()?this.g_ajN(g):this.g_ajM(g)},g_akn(g,_,e){return this.g_zM.g_ah_()?this.g_ajP(g,e):this.g_ajO(g,e)},g_ako(g){return!!g&&g.g_Dr()},g_akp(g){return!!g&&!g.g_Dj()},g_akq(g,_,e){return!!g&&g_bA.g_gk(100*g.g_xN(),_,e)},g_ajD(){return!0},g_akr(){return 0<this.g_ajy}}}{function g(_,t){const a=_[0],n=t[0],i=a-n;if(0!=i)return i;const e=_[1],r=t[1];return e-r}function _(g,_){return g[1]-_[1]}const a=[],t=[],n=g_bA.g_eM(g_bA.g_gT);g_bA.g_Gm.g_Gl.g_VT={g_aks(g,_){g.g_KU(_)},g_akt(g,_){g.g_db()&&"number"!=typeof _&&(_=parseFloat(_)),g.g_KU(g.g_Ku()+_)},g_aku(g,_){g.g_db()&&g.g_KU(g.g_Ku()-_)},g_akv(g,_){g.g_KU(!!_)},g_akw(g){g.g_KU(!g.g_Ku())},g_akx(){this.g_zM.g_Dc().g_PN()},g_aky(g,_,a,t){if(g&&_){const n=this.g_zM.g_ahH(g,_,a,t);if(n){const _=this.g_zM.g_Dc();if(_.g_Dg(!0),n.g_Dh(),n.g_Di())for(const g of n.siblings())g.g_Dh();_.g_Dg(!1),g.g_ND().g_NY(n),n.g_Di()&&n.g_RH()}}},g_akz(g,_,a,t){if(g&&_){const n=this.g_zM.g_ahC(g);n&&g_bA.g_Gm.g_Gl.g_VT.g_aky.call(this,n,_,a,t)}},g_Db(g,_,a,t,n){g&&this.g_zM.g_SO().g_Db(g,_,a,t,n)},g_akA(){const g=this.g_OK;g.g_OG()&&g.g_OE().g_Jk()},g_QS(g,_){const e=this.g_zM.g_Dc().g_PP(g);e&&(0===_?e.g_QS(!1):1===_?e.g_QS(!0):e.g_QS(!e.g_QR()))},g_akB(g){this.g_zM.g_aaR(g)},g_akC(g,_){if(0>_&&(_=0),!!g){const e=g.g_ND(),t=e.g_Gp();for(const g of t)g.g_aaR(_)}},g_akD(g){if(g){const _=g.g_ND(),e=_.g_Gp();for(const g of e)g.g_aaS()}},g_fQ(g){if(!(0>g))return this.g_zM.g_Dc().g_Qw().g_Xk(g),!0},g_akE(g){return this.g_zM.g_Dc().g_Qw().g_Xl(g),!0},g_akF(g){const _=g.toLowerCase();for(const e of this.g_zM.g_Dc().g_Qy())e.g_Xn()&&e.g_Xo()===_&&e.g_Xq()},g_aeW(g,_){const e=this.g_zM.g_Em();e&&(e.g_aeW(0===g?"image/png":"image/jpeg",_/100).then(()=>this.g_zM.g_Gi(g_bA.g_Gm.g_Gl.g_Gk.g_ajT,null)),this.g_Dt())},g_akG(g,_){if(!(0>=g||0>=_)){this.g_zM.g_aey(g,_);const e=this.g_zM.g_Em();e&&("off"===e.g_aes()?e.g_uD(e.g_YJ(),e.g_YL(),!0):(this.g_zM.g_ahE(g,_),e.g_uD(e.g_YJ(),e.g_YL(),!0)),this.g_zM.g_Dt())}},g_akH(g){const _=this.g_zM.g_Em();_&&"off"!==_.g_aes()&&(_.g_aeE(0===g?"low":"high"),_.g_uD(_.g_YJ(),_.g_YL(),!0))},g_JX(g){this.g_zM.g_aiG(g)},g_akI(g){this.g_zM.g_aiH(g)},g_akJ(g){this.g_zM.g_WY(g)},g_akK(){},g_akL(){for(const g of this.g_zM.g_Qj().g_Ha())g.g_GK()},g_akM(g){this.g_zM.g_aiF(0!==g)},g_air(g){this.g_zM.g_air(g)},g_akN(i,e){if(i){const r=i.g_ND(),o=r.g_Gp(),u=a,s=t,f=this.g_zM.g_SO(),l=i.g_De(),p=i.g_TT();for(let g=0,_=o.length;g<_;++g){const _=o[g],a=_.g_Bv();if(!a)continue;let t;t=l?_.g_Mz(e+_.g_C$().g_TS(p)):_.g_Mz(e),u.push([a.g_CN().g_Dl(),a.g_DZ()]),s.push([_,t])}if(u.length){u.sort(g),s.sort(_);for(let g=0,_=u.length;g<_;++g){const _=s[g][0],a=f.g_FI(u[g][0]),t=u[g][1],n=a.g_DM();n[t]!==_&&(n[t]=_,_.g_Bv().g_Gq(a),a.g_CL())}g_bA.g_fV(a),g_bA.g_fV(t)}}},g_akO(g){if(!this.g_zM.g_ahp()){const _=this.g_zM.g_Qj();_.g_Hh()||_.g_Hg(g)}},g_akP(g){if(!this.g_zM.g_ahp()){const _=this.g_zM.g_Qj();if(!_.g_Hh()){const e=_.g_GZ(g);e&&_.g_Hg(e)}}},g_akQ(g){if(!this.g_zM.g_ahp()){const _=this.g_zM.g_Qj();if(!_.g_Hh()){const a=_.g_Ha(),t=a.indexOf(_.g_GI());if(!(g&&0===t)&&(g||t!==a.length-1)){const n=a[t+(g?-1:1)];_.g_Hg(n)}}}},g_akR(){if(!this.g_zM.g_ahp()){const g=this.g_zM.g_Qj();g.g_Hh()||(g.g_Hg(g.g_GI()),this.g_zM.g_Dc().g_PT())}},g_akS(g,_){g&&g.g_Ds(_)},g_akT(g,_){g&&g.g_xP(_/100)},g_akU(g,_){g&&g.g_EM(_)},g_akV(g,_){g&&g.g_DA(_)},g_akW(g,_){g&&(_=g_bA.g_eR(g_bA.g_eS(+_)),g.g_DK()===_||(g.g_DI(_),this.g_Dt()))},g_akX(g,_,e){g&&g.g_DD(_/100,e/100)},g_akY(g,_){g&&g.g_DH(_)},g_akZ(g,_){if(g){n.g_hr(_),n.g_eQ();const e=g.g_DN();e.g_hl(n)||(e.g_he(n),this.g_Dt())}},g_ak_(g,_){g&&(_=!!_,g.g_DO()===_||(g.g_DP(_),this.g_Dt()))},g_ak$(g,_){g&&g.g_CZ()!==_&&(g.g_CY(_),this.g_Dt())},g_ala(g,_,e){if(g){const t=g.g_Dn(),n=t.g_LX(e);if(n){const g=1===_;n.g_Rw()===g||(n.g_acw(g),t.g_VP(),this.g_zM.g_Dt())}}},g_alb(_,e,t,g){if(_){const i=_.g_Dn(),r=i.g_LX(e);if(r){const _=r.g_Dl(),e=i.g_EH(_);if(t=Math.floor(t),!(0>t||t>=e.length)){const _=r.g_ra().g_rl(t);if("color"===_){n.g_hr(g);const _=e[t];if(n.g_hl(_))return;_.g_he(n)}else{if("percent"===_&&(g/=100),e[t]===g)return;e[t]=g}r.g_Rw()&&this.g_zM.g_Dt()}}}},g_alc(g,_){g&&(_=!!_,g.g_DQ()===_||(g.g_DR(_),this.g_Dt()))},g_ald(g){const _=this.g_zM.g_SO();_.g_EP()===g||(_.g_FC(g),this.g_Dt())},g_ale(g){g=g_bA.g_eR(g_bA.g_eS(+g));const _=this.g_zM.g_SO();_.g_DJ()===g||(_.g_DI(g),this.g_Dt())},g_alf(g,_){const e=this.g_zM.g_SO(),a=e.g_Dn(),t=a.g_LX(_);if(t){const _=1===g;t.g_Rw()===_||(t.g_acw(_),a.g_VP(),this.g_zM.g_Dt())}},g_alg(_,e,t){const a=this.g_zM.g_SO(),i=a.g_Dn(),r=i.g_LX(_);if(r){const g=r.g_Dl(),_=i.g_EH(g);if(e=Math.floor(e),!(0>e||e>=_.length)){const g=r.g_ra().g_rl(e);if("color"===g){n.g_hr(t);const g=_[e];if(n.g_hl(g))return;g.g_he(n)}else{if("percent"===g&&(t/=100),_[e]===t)return;_[e]=t}r.g_Rw()&&this.g_zM.g_Dt()}}},g_alh(g){const _=this.g_zM.g_SO();_.g_FA(g)},g_ali(g){const _=this.g_zM.g_SO();_.g_FB(g)},g_alj(g,_){const e=this.g_zM.g_SO();e.g_FA(g),e.g_FB(_)},g_alk(g){if(g){const _=g.g_VN();if(_){const g=_.g_Bv();if(g){const _=this.g_zM.g_SO();_.g_FA(g.g_Gw()),_.g_FB(g.g_Gx())}}}},g_all(g){const _=this.g_zM.g_GI();if(_&&g&&!this.g_zM.g_ahp()){const e=g.g_De()?g.g_Sv():[g];this.g_ajC(_,e)}},g_alm(g){g_bA.g_Gm.g_Gl.g_VT.g_all.call(this,this.g_zM.g_ahC(g))},g_aln(g){const _=this.g_zM.g_GI();if(_&&g){const e=g.g_De()?g.g_Sv():[g];this.g_ajE(_,e)}},g_alo(g){g_bA.g_Gm.g_Gl.g_VT.g_alo.call(this,this.g_zM.g_ahC(g))},g_alp(){const g=this.g_zM.g_GI();if(g){const _=g.g_FP();this.g_ajE(g,_)}},g_alq(g){const _=this.g_zM.g_GI();g&&_&&!this.g_zM.g_ahp()&&this.g_ajC(_,g.g_FM())},g_alr(g){const _=this.g_zM.g_GI(),e=this.g_zM.g_Qj().g_GZ(g);e&&_&&!this.g_zM.g_ahp()&&this.g_ajC(_,e.g_FM())}}}"use strict",g_bA.g_Gm.g_Gl.g_TD={g_als:function(g){return"string"==typeof g&&(g=parseInt(g,10),isNaN(g)&&(g=0)),Math.floor(g)},float:function(g){return"string"==typeof g&&(g=parseFloat(g),isNaN(g)&&(g=0)),g},g_E(g){return g.toString()},g_L(g){return"string"==typeof g?g.length:0},random(g,_){return"undefined"==typeof _?this.g_zM.g_ahI()*g:this.g_zM.g_ahI()*(_-g)+g},g_TE(...g){const _=Math.floor(this.g_zM.g_ahI()*g.length);return g[_]},g_alt(){return Math.PI},g_alu(){return 1/0},sqrt(g){return Math.sqrt(g)},abs(g){return Math.abs(g)},round(g){return Math.round(g)},floor(g){return Math.floor(g)},ceil(g){return Math.ceil(g)},sign(g){return Math.sign(g)},sin(g){return Math.sin(g_bA.g_eS(g))},cos(g){return Math.cos(g_bA.g_eS(g))},tan(g){return Math.tan(g_bA.g_eS(g))},asin(g){return g_bA.g_eT(Math.asin(g))},acos(g){return g_bA.g_eT(Math.acos(g))},atan(g){return g_bA.g_eT(Math.atan(g))},exp(g){return Math.exp(g)},g_alv(g){return Math.log(g)},log10(g){return Math.log(g)/Math.LN10},max(...g){let _=g[0];"number"!=typeof _&&(_=0);for(let a=1,t=g.length,e;a<t;++a)e=g[a],"number"==typeof e&&_<e&&(_=e);return _},min(...g){let _=g[0];"number"!=typeof _&&(_=0);for(let a=1,t=g.length,e;a<t;++a)e=g[a],"number"==typeof e&&_>e&&(_=e);return _},g_eQ(g,_,e){return g_bA.g_eQ(g,_,e)},g_R(g,_,e,a){return g_bA.g_eU(g,_,e,a)},angle(g,_,e,a){return g_bA.g_eT(g_bA.g_eW(g,_,e,a))},g_X(g,_,e){return g_bA.g_X(g,_,e)},g_e$(g,_,e){return g_bA.g_e$(g,_,e)},g_fb(g,_,e,a){return g_bA.g_fb(g,_,e,a)},g_fc(g,_,e,a,t){return g_bA.g_fc(g,_,e,a,t)},g_fd(g,_,e){return g_bA.g_fd(g,_,e)},g_alw(g,_){return g_bA.g_eT(g_bA.g_eX(g_bA.g_eS(g),g_bA.g_eS(_)))},g_alx(g,_,e){return g_bA.g_eT(g_bA.g_e_(g_bA.g_eS(g),g_bA.g_eS(_),e))},g_aly(g,_,e){return g_bA.g_eT(g_bA.g_eY(g_bA.g_eS(g),g_bA.g_eS(_),g_bA.g_eS(e)))},g_alz(g,_,e){return g|=0,_|=0,e=0===e?0:1,g&~(1<<_)|e<<_},g_alA(g,_){return g|=0,_|=0,g^1<<_},g_alB(g,_){return g|=0,_|=0,g&1<<_?1:0},g_alC(){return"\n"},g_alD(g){return"string"==typeof g?g.toUpperCase():""},g_alE(g){return"string"==typeof g?g.toLowerCase():""},left(g,_){return"string"==typeof g?g.substr(0,_):""},g_alF(g,_,e){return"string"==typeof g?g.substr(_,e):""},right(g,_){return"string"==typeof g?g.substr(g.length-_):""},trim(g){return"string"==typeof g?g.trim():""},g_alG(g,_,e){if("string"!=typeof g||"string"!=typeof e)return"";let a=g.split(e);return _=Math.floor(_),0>_||_>=a.length?"":a[_]},g_alH(g,_){return"string"==typeof g&&"string"==typeof _&&g.length?g.split(_).length:0},find(g,_){return"string"==typeof g&&"string"==typeof _?g.search(new RegExp(g_bA.g_ne(_),"i")):-1},g_alI(g,_){return"string"==typeof g&&"string"==typeof _?g.search(new RegExp(g_bA.g_ne(_),"")):-1},replace(g,_,e){return"string"==typeof g&&"string"==typeof _&&"string"==typeof e?g.replace(new RegExp(g_bA.g_ne(_),"gi"),e):"string"==typeof g?g:""},g_alJ(g,_,e){const a=this.g_ajA(_,e);return g?g.search(a):-1},g_alK(g,_,a,t){const n=this.g_ajA(_,a);return g?g.replace(n,t):""},g_alL(g,_,e){const a=this.g_ajB(g.toString(),_,e);return a?a.length:0},g_alM(g,_,a,t){t=Math.floor(t);const n=this.g_ajB(g.toString(),_,a);return!n||0>t||t>=n.length?"":n[t]},g_alN(g,_){let e=0>g?"-":"";0>g&&(g=-g);const t=_-g.toString().length;return e+="0".repeat(Math.max(t,0)),e+g.toString()},g_alO(g){return encodeURIComponent(g)},g_alP(g){return decodeURIComponent(g)},g_Wd(){return this.g_zM.g_aip()},g_alQ(){return this.g_zM.g_LA()},g_alR(){return(Date.now()-this.g_zM.g_aiv())/1e3},g_alS(){return Date.now()},time(){return this.g_zM.g_EK()},g_alT(){return this.g_zM.g_IU()},g_alU(){return this.g_zM.g_aiz()},g_alV(){return this.g_zM.g_ait()},g_alW(){return this.g_zM.g_aiu()},g_alX(){return this.g_zM.g_aeV()},g_alY(){return this.g_zM.g_Em().g_aeK()},g_alZ(){return this.g_zM.g_Em().g_aeL()},g_al_(){return this.g_zM.g_Cx()},g_al$(){return this.g_zM.g_Cy()},g_ama(){return this.g_zM.g_Cx()},g_amb(){return this.g_zM.g_Cy()},g_amc(){return this.g_zM.g_SO().g_EZ()},g_amd(){return this.g_zM.g_SO().g_E_()},g_ame(){return this.g_zM.g_SO().g_q_()},g_amf(){return this.g_zM.g_SO().g_EP()},g_amg(){return g_bA.g_eT(this.g_zM.g_SO().g_DJ())},g_amh(){return this.g_zM.g_SO().g_oX()},g_ami(){return this.g_zM.g_SO().g_oY()},g_amj(g){const _=this.g_zM.g_SO().g_CN(g);return _?_.g_Du().g_ih():0},g_amk(g){const _=this.g_zM.g_SO().g_CN(g);return _?_.g_Du().g_ii():0},g_aml(g){const _=this.g_zM.g_SO().g_CN(g);return _?_.g_Du().g_ij():0},g_amm(g){const _=this.g_zM.g_SO().g_CN(g);return _?_.g_Du().g_ik():0},g_amn(g){const _=this.g_zM.g_SO().g_CN(g);return _?_.g_Du().width():0},g_amo(g){const _=this.g_zM.g_SO().g_CN(g);return _?_.g_Du().height():0},g_amp(g,_,e){const a=this.g_zM.g_SO().g_CN(g);return a?a.g_ER(_,e)[0]:0},g_amq(g,_,e){const a=this.g_zM.g_SO().g_CN(g);return a?a.g_ER(_,e)[1]:0},g_amr(g,_,e){const a=this.g_zM.g_SO().g_CN(g);return a?a.g_Fa(_,e)[0]:0},g_ams(g,_,e){const a=this.g_zM.g_SO().g_CN(g);return a?a.g_Fa(_,e)[1]:0},g_amt(g){const _=this.g_zM.g_SO().g_CN(g);return _?_.g_EJ():0},g_amu(g){const _=this.g_zM.g_SO().g_CN(g);return _?g_bA.g_eT(_.g_DK()):0},g_amv(g){const _=this.g_zM.g_SO().g_CN(g);return _?100*_.g_xN():0},g_amw(g){const _=this.g_zM.g_SO().g_CN(g);return _?_.g_Dz():0},g_amx(g){const _=this.g_zM.g_SO().g_CN(g);return _?100*_.g_DB():0},g_amy(g){const _=this.g_zM.g_SO().g_CN(g);return _?100*_.g_DC():0},g_amz(g){const _=this.g_zM.g_SO().g_CN(g);return _?_.g_BR():0},g_amA(g){const _=this.g_zM.g_SO().g_CN(g);return _?_.g_Dl():-1},g_amB(){const g=this.g_zM.g_Em();return g?g.g_aeY():""},g_amC(g){const _=this.g_OK;if(!_.g_OG())return 0;if(g){const e=_.g_OI(g);return e?e.g_Dl():0}return _.g_OE().g_Dl()},g_amD(){return this.g_zM.g_aiI()},g_amE(){return this.g_zM.g_ae_().g_AQ()},g_amF(){return 0===this.g_ajy?1:this.g_ajz/this.g_ajy},g_sb(){return"webgl"},g_amG(){return this.g_zM.g_pu().g_zC()},g_amH(){let g=this.g_zM.g_pu().g_zu();return Math.round(100*g/1048576)/100},g_amI(g,_,e){return g_bA.g_fj(g,_,e)},g_amJ(g,_,e){return g_bA.g_fl(g/100,_/100,e/100)},g_amK(g,_,a,e){return g_bA.g_fk(g/100,_/100,a/100,e/100)},g_amL(g,_,e){return g_bA.g_fl(g/255,_/255,e/255)},g_amM(g,_,a,e){return g_bA.g_fk(g/255,_/255,a/255,e/255)},g_amN(){return this.g_zM.g_aiA()},g_amO(){return this.g_zM.g_aiB()},g_amP(){return this.g_zM.g_Oa().g_FF().g_q_()},g_amQ(){return this.g_zM.g_Oa().g_SI()}},"use strict";{const g="video";g_bA.g_Gm.g_amR=class extends g_bA.g_XN{constructor(_){super(_,g),this.g_amS={},this.g_amT=-1,this.g_amU=new Map,this.g_zM.g_ahq(this.g_zM.g_Aw("video","init",{isInWorker:this.g_zM.g_AU()}).then(g=>this.g_amS=g)),this.g_XT("playback-event",(g,_)=>g.g_amV(_)),this.g_zM.g_XU(g,"state",g=>this.g_amW(g))}g_eN(){super.g_eN()}g_amX(g){return!!this.g_amS[g]}g_amW(g){const _=g.sequenceNumber;if(!(_<=this.g_amT)){this.g_amT=_,this.g_amU.clear();for(const[_,e]of Object.entries(g.videoData))this.g_amU.set(parseInt(_,10),e)}}g_amY(g){this.g_amU.delete(g)}g_amZ(g){return this.g_amU.get(g)||null}}}"use strict",g_bA.g_Gm.g_amR.g_$A=class extends g_bA.g_XV{constructor(g){super(g)}g_eN(){super.g_eN()}g_XI(){}},"use strict";{const _=g_bA.g_eM(g_bA.Rect),a=g_bA.g_eM(g_bA.g_iH);g_bA.g_Gm.g_amR.g_HR=class extends g_bA.g_YD{constructor(g,_){super(g,"video"),this.g_am_="",this.g_am$="",this.g_ana="",this.g_anb=2,this.g_anc=!1,this.g_and=!1,this.g_ane=null,this.g_anf=-1,this.g_ang=0,this.g_Ia=!1,this.g_anh=!1,this.g_ani=!1,this.g_UE=!1,this.g_anj=!1,this.g_ank=0,_&&(this.g_am_=_[0],this.g_am$=_[1],this.g_ana=_[2],this.g_anb=_[3],this.g_anc=_[4],this.g_Bv().g_Ds(_[5]));const e=this.g_zM.g_kX();this.g_lB=new g_bA.g_ly(g_bA.g_ls.g_lx(e,"webglcontextlost",()=>this.g_FX()),g_bA.g_ls.g_lx(e,"suspend",()=>this.g_anl()),g_bA.g_ls.g_lx(e,"resume",()=>this.g_anm())),this.g_YP({src:this.g_ann(),autoplay:this.g_anb})}g_eN(){this.g_GH().g_amY(this.g_Y$()),this.g_ano(),super.g_eN()}g_anp(g,_,e){if(this.g_ane){if(this.g_ane.g_oX()===_||this.g_ane.g_oY()===e)return;this.g_ano()}this.g_ane=g.g_pm(_,e,{g_om:this.g_zM.g_Ep(),g_oo:!1})}g_ano(){this.g_ane&&(this.g_zM.g_pu().g_pq(this.g_ane),this.g_ane=null)}g_YQ(){return{}}g_anq(g){return Math.pow(10,g/20)}g_anr(g){const _=this.g_anq(g);return isFinite(_)?Math.max(Math.min(_,1),0):0}g_ans(g){return 20*(Math.log(g)/2.302585092994046)}g_ant(g){return this.g_ans(Math.max(Math.min(g,1),0))}g_ann(){let g="";const _=this.g_GH();return _.g_amX("video/webm")&&this.g_am_?g=this.g_am_:_.g_amX("video/ogg")&&this.g_am$?g=this.g_am$:_.g_amX("video/mp4")&&this.g_ana&&(g=this.g_ana),g?g_bA.g_gq(g)?(g=g.toLowerCase(),this.g_zM.g_ae_().g_AB(g)):g:g}g_FX(){this.g_ane=null}async g_amV(g){const _=g.type;5===_?this.g_anu(!0):2===_?(this.g_anu(!1),this.g_ani=!0,this.g_anh=!1):6===_&&(this.g_anu(!1),this.g_anh=!0,this.g_ani=!1),this.g_anf=_,await this.g_Gi(g_bA.g_Gm.g_amR.g_Gk.g_anv)}g_anu(g){this.g_Ia=!!g,this.g_Ia?(this.g_Yp(),this.g_anh=!1,this.g_ani=!1):this.g_Yc()}g_anl(){this.g_anc||!this.g_Ia||(this.g_and=!0,this.g_YN("pause"))}g_anm(){this.g_anc||this.g_and&&(this.g_YN("play"),this.g_and=!1)}g_El(t){var r=Math.floor,d=Math.max;const e=this.g_Bv();let u=0,s=0,f=null;if(this.g_zM.g_AU()){const g=this.g_anw();if(!g)return;const _=g.imageBitmap;if(!_)return;u=_.width,s=_.height,f=_}else{const g=self.C3Video_GetElement(this.g_Y$());if(!g)return;if(u=g.videoWidth,s=g.videoHeight,0>=u||0>=s)return;f=g}this.g_anp(t,u,s),t.g_uU(f,this.g_ane);const c=u/s,M=e.g_oX(),N=e.g_oY();let l=0,b=0,v=0,T=0;M/N>c?(v=N*c,T=N,l=d(r((M-v)/2),0)):(v=M,T=M/c,b=d(r((N-T)/2),0)),t.g_xS(this.g_ane),_.g_ia(e.g_Gw()+l,e.g_Gx()+b,v,T),a.g_i_(_),t.g_iH(a)}g_Jv(){this.g_zM.g_Dt()}g_anw(){return this.g_GH().g_amZ(this.g_Y$())}}}"use strict",g_bA.g_Gm.g_amR.g_Gk={g_IX(){return this.g_Ia},g_anx(){return this.g_anh},g_any(){return this.g_ani},g_anz(){return this.g_anj},g_anv(g){return this.g_anf===g}},"use strict",g_bA.g_Gm.g_amR.g_VT={g_anA(g,_,e){this.g_am_=g,this.g_am$=_,this.g_ana=e,this.g_YN("set-source",{src:this.g_ann()}),this.g_ano()},g_anB(g){this.g_YN("set-playback-time",{time:g})},g_anC(g){g=0!==g,this.g_UE===g||(this.g_UE=g,this.g_YN("set-looping",{isLooping:g}))},g_anD(g){g=0!==g,this.g_anj===g||(this.g_anj=g,this.g_YN("set-muted",{isMuted:g}))},g_anE(g){this.g_ank===g||(this.g_ank=g,this.g_YN("set-volume",{volume:this.g_anr(g)}))},g_anF(){this.g_YN("pause")},g_Jt(){this.g_YN("play")}},"use strict",g_bA.g_Gm.g_amR.g_TD={g_anG(){const g=this.g_anw();return g?g.currentTime:0},g_anH(){const g=this.g_anw();return g?g.duration:0},g_anI(){return this.g_ank},g_anJ(){const g=this.g_anw();return g?g.videoWidth:0},g_anK(){const g=this.g_anw();return g?g.videoHeight:0}},"use strict",g_bA.g_Gm.g_anL=class extends g_bA.g_Xs{constructor(g){super(g)}g_eN(){super.g_eN()}},"use strict",g_bA.g_Gm.g_anL.g_$A=class extends g_bA.g_XV{constructor(g){super(g),this.g_$u=g.g_aab()}g_eN(){g_bA.g_fV(this.g_$u),super.g_eN()}g_XI(){for(const g of this.g_$u)g.g__o(this.g_zM)}g_FR(g){const _={g_om:this.g_zM.g_Ep()};return Promise.all(this.g_$u.map(e=>e.g__p(g,_)))}g_FV(){for(const g of this.g_$u)g.g__q()}g_FT(){this.g_anM()}g_anM(){for(const g of this.g_NA.g_Gp())g.g_LU().g_anN()}g_Vk(g){g_bA.g_Gm.g_anL.g_anO(this,g)}},"use strict";{const _=g_bA.g_eM(g_bA.g_iH),g=g_bA.g_eM(g_bA.g_hO);g_bA.g_Gm.g_anL.g_HR=class extends g_bA.g_Yy{constructor(_,a){super(_);let t=!0,n="",i=0,r=!0;a&&(t=!!a[0],n=a[1],i=a[2],r=a[3]),this.g_anP=this.g_NA.g_aad(n)||this.g_NA.g_aab()[0],this.g_anQ=g_bA.g_eQ(i,0,this.g_anP.g__r()-1),this.g_anR=this.g_anP.g__t(this.g_anQ);const o=this.g_anR.g_XX();this.g_anS=o.g_pv(),this.g_anT=o.g_uV(),this.g_YB(),this.g_anU=0<=this.g_anP.g__u(),this.g_anV=Math.abs(this.g_anP.g__u()),this.g_anW=this.g_anP.g__w(),this.g_anX=g_bA.g_eM(g_bA.g_lE),this.g_anY=0,this.g_anZ=!0,this.g_an_=0,this.g_an$="",this.g_aoa=!1,this.g_aob=-1,this.g_aoc="",this.g_aod=0;const g=this.g_Bv();this.g_aoe=g.g_abT(),g.g_Ds(t),g.g_abM(r),g.g_abG(this.g_anR.g_MO()),g.g_abH(this.g_anR.g_MQ()),g.g_abY(this.g_anR.g__G()),g.g_CO(),(1!==this.g_NA.g_aac()||1!==this.g_NA.g_aab()[0].g__r())&&0!==this.g_anV&&this.g_Yp()}g_eN(){this.g_anP=null,this.g_anR=null,this.g_anS=null,this.g_anX=null,super.g_eN()}g_EG(){return this.g_anR.g_XX()}g_Br(){this.g_anS=null}g_YC(){this.g_anN()}g_El(a){var t=Math.round;const g=this.g_anS;if(null!==g){const n=this.g_aoe,e=this.g_anT;if(a.g_xS(g),this.g_zM.g_ES()){const i=this.g_Bv(),r=t(i.g_Gw())-i.g_Gw(),g=t(i.g_Gx())-i.g_Gx();_.g_r(n),_.offset(r,g),a.g_x$(_,e)}else a.g_x$(n,e)}}g_aof(_){const g=this.g_Bv(),a=g.g_ab$();_.g_yO(),_.g_xO(1,0,0,1);const t=a.g_jo(),n=g.g_Gw(),e=g.g_Gx();for(let a=0,r=t.length;a<r;a+=2){const d=(a+2)%r,g=t[a]+n,o=t[a+1]+e,i=t[d]+n,u=t[d+1]+e;_.g_ye(g,o,i,u)}_.g_xn(),_.g_xO(1,1,1,1)}g_aog(){return this.g_anX.g_bR()}g_Jv(){this.g_aoc&&this.g_aoh(),0<=this.g_aob&&this.g_aoi();const _=this.g_anV;if(!this.g_anZ||0===_)return void this.g_Yc();const g=this.g_zM.g_Lz(this.g_VH);this.g_anX.g_jL(g);const a=this.g_aog(),t=this.g_anR,n=t.g__F()/_;if(!(a<this.g_anY+n)){const e=this.g_anP,r=this.g_anW,d=e.g__r(),g=e.g__v(),o=e.g_SU(),i=e.g__x();this.g_anU?this.g_anQ++:this.g_anQ--,this.g_anY+=n,this.g_anQ>=d&&(i?(this.g_anU=!1,this.g_anQ=d-2):o?this.g_anQ=r:(this.g_an_++,this.g_an_>=g?this.g_aoj(!1):this.g_anQ=r)),0>this.g_anQ&&(i?(this.g_anQ=1,this.g_anU=!0,!o&&(this.g_an_++,this.g_an_>=g&&this.g_aoj(!0))):o?this.g_anQ=r:(this.g_an_++,this.g_an_>=g?this.g_aoj(!0):this.g_anQ=r)),this.g_anQ=g_bA.g_eQ(this.g_anQ,0,d-1);const u=e.g__t(this.g_anQ);a>this.g_anY+u.g__F()/_&&(this.g_anY=a),this.g_aok(t,u)}}g_aoj(g){this.g_anQ=g?0:this.g_anP.g__r()-1,this.g_anZ=!1,this.g_an$=this.g_anP.g_q_(),this.g_aoa=!0,this.g_IS(g_bA.g_Gm.g_anL.g_Gk.g_aol),this.g_IS(g_bA.g_Gm.g_anL.g_Gk.g_aom),this.g_aoa=!1,this.g_an_=0}g_aok(_,a){const t=this.g_Bv(),n=_.g_XX(),r=a.g_XX(),e=n.g_oX(),d=n.g_oY(),g=r.g_oX(),o=r.g_oY();e!==g&&t.g_FD(t.g_oX()*(g/e)),d!==o&&t.g_FE(t.g_oY()*(o/d)),t.g_abG(a.g_MO()),t.g_abH(a.g_MQ()),t.g_abY(a.g__G()),t.g_CO(),this.g_anR=a,this.g_anS=r.g_pv(),this.g_anT=r.g_uV();const i=this.g_JL().g_LT();for(let g=0,e=i.length;g<e;++g)i[g].g_Zz(_,a);this.g_IS(g_bA.g_Gm.g_anL.g_Gk.g_aon),this.g_zM.g_Dt()}g_aoh(){const g=this.g_anR,_=this.g_NA.g_aad(this.g_aoc);if((this.g_aoc="",!!_)&&!(_===this.g_anP&&this.g_anZ)){this.g_anP=_,this.g_anU=0<=_.g__u(),this.g_anV=Math.abs(_.g__u()),this.g_anW=_.g__w(),this.g_anQ=g_bA.g_eQ(this.g_anQ,0,this.g_anP.g__r()-1),1===this.g_aod&&(this.g_anQ=0),this.g_anZ=!0,this.g_anY=this.g_aog();const e=this.g_anP.g__t(this.g_anQ);this.g_aok(g,e)}}g_aoi(){const g=this.g_anR,_=this.g_anQ;if(this.g_anQ=g_bA.g_eQ(Math.floor(this.g_aob),0,this.g_anP.g__r()-1),this.g_aob=-1,_!==this.g_anQ){const _=this.g_anP.g__t(this.g_anQ);this.g_aok(g,_),this.g_anY=this.g_aog()}}g_anN(){const g=this.g_anR.g_XX();this.g_anS=g.g_pv(),this.g_anT=g.g_uV()}g_VI(_){const a=this.g_anR,t=this.g_Bv();let n=null;if("string"==typeof _)n=a.g__H(_);else if("number"==typeof _)n=a.g__I(_-1);else throw new TypeError("expected string or number");return n?(g.g_r(n.g__M()),g.offset(-a.g_MO(),-a.g_MQ()),g.scale(t.g_oX(),t.g_oY()),g.rotate(t.g_DJ()),g.offset(t.g_Gw(),t.g_Gx()),[g.g_hS(),g.g_hU()]):[t.g_Gw(),t.g_Gx()]}g_Yt(){const g=g_bA.g_Gm.g_anL.g_VT;return[{title:"plugins.sprite.debugger.animation-properties.title",properties:[{name:"plugins.sprite.debugger.animation-properties.current-animation",value:this.g_anP.g_q_(),g_aoo:_=>this.g_Yw(g.g_aop,_,0)},{name:"plugins.sprite.debugger.animation-properties.current-frame",value:this.g_anQ,g_aoo:_=>this.g_Yw(g.g_aoq,_)},{name:"plugins.sprite.debugger.animation-properties.is-playing",value:this.g_anZ,g_aoo:_=>_?this.g_Yw(g.g_aor,0):this.g_Yw(g.g_aos)},{name:"plugins.sprite.debugger.animation-properties.speed",value:this.g_anV,g_aoo:_=>this.g_Yw(g.g_aot,_)},{name:"plugins.sprite.debugger.animation-properties.repeats",value:this.g_an_,g_aoo:g=>this.g_an_=g}]}]}g_Fe(){const g={a:this.g_anP.g_Dm()};0!==this.g_anY&&(g.fs=this.g_anY);const _=this.g_aog();0!==_&&(g.at=_),0!==this.g_anQ&&(g.f=this.g_anQ),0!==this.g_anV&&(g.cas=this.g_anV),1!==this.g_an_&&(g.ar=this.g_an_),0!==this.g_anW&&(g.rt=this.g_anW),this.g_anZ||(g.ap=this.g_anZ),this.g_anU||(g.af=this.g_anU);const e=this.g_Bv();return e.g_abL()&&(g.ce=e.g_abL()),g}g_Fg(_){const a=this.g_C$().g_aae(_.a);a&&(this.g_anP=a),this.g_anY=_.hasOwnProperty("fs")?_.fs:0,this.g_anX.Set(_.hasOwnProperty("at")?_.at:0);const t=_.hasOwnProperty("f")?_.f:0;this.g_anQ=g_bA.g_eQ(t,0,this.g_anP.g__r()-1),this.g_anV=_.hasOwnProperty("cas")?_.cas:0,this.g_an_=_.hasOwnProperty("ar")?_.ar:1;const n=_.hasOwnProperty("rt")?_.rt:0;this.g_anW=g_bA.g_eQ(n,0,this.g_anP.g__r()-1),this.g_anZ=!_.hasOwnProperty("ap")||!!_.ap,this.g_anU=!_.hasOwnProperty("af")||!!_.af;const i=this.g_anP.g__t(this.g_anQ),e=i.g_XX();this.g_anR=i,this.g_anS=e.g_pv(),this.g_anT=e.g_uV();const r=this.g_Bv();r.g_abG(i.g_MO()),r.g_abH(i.g_MQ()),r.g_abY(i.g__G()),r.g_abM(!!_.ce)}g_Mp(g){const _=this.g_Bv();return 3===g?_.g_abL():void 0}g_Mt(g,_){const e=this.g_Bv();3===g?e.g_abM(!!_):void 0}}}{function _(g,_,t,a){const n=_.g_CJ(),e=t.g_CJ();n<e?g.Set(_,t,a):g.Set(t,_,a)}function a(g,_,t){const a=_.g_CJ(),n=t.g_CJ();a<n?g.g_jD(_,t):g.g_jD(t,_)}function n(g,_){g.g_jE(_)}function u(g,_,t){const a=_.g_CJ(),n=t.g_CJ();return a<n?g.g_bR(_,t):g.g_bR(t,_)}function t(_,a,l,c){if(!a)return!1;const d=_.g_JL(),e=0!==l||0!==c,f=d.g_Bv(),h=d.g_Am(),m=h.g_aiD(),n=h.g_Px(),b=n.g_Uc().g_N$(),p=n.g_C$(),T=n.g_Va(),r=a.g_ND(),s=p!==a;N=a,i=s&&!T;let t=0,L=0,z=!1,D;r.g_NO()?(M.g_r(f.g_EI()),M.offset(l,c),m.g_acX(f.g_CN(),a,M,g),D=g):b?h.g_ahB()&&!r.g_NX().length&&r.g_NW().length?D=r.g_NW():D=r.g_NX():D=r.g_NW(),e&&(t=f.g_Gw(),L=f.g_Gx(),f.g_VJ(l,c),f.g_CO());for(const g of D)if(m.g_acP(d,g)){if(z=!0,T)break;s&&o.add(g)}return e&&(f.g_VF(t,L),f.g_CO()),g_bA.g_fV(g),z}function e(g){const _=g.g_Am().g_Oa().g_N$(),t=N.g_ND(),n=t.g_NW(),i=t.g_NX();if(t.g_NO()){if(t.g_NV(!1),g_bA.g_fZ(n,[...o]),_){g_bA.g_fV(i);for(const g of N.g_Gp())o.has(g)||t.g_NU(g)}}else if(_)for(const g of o)n.push(g),g_bA.g_f$(i,g);else g_bA.g_fZ(n,[...o]);N.g_Vg()}const M=g_bA.g_eM(g_bA.Rect),d=[],g=[];let i=!1,N=null;const o=new Set;g_bA.g_Gm.g_anL.g_anO=function(g,_){i&&(_&&e(g),o.clear(),N=null,i=!1)},g_bA.g_Gm.g_anL.g_Gk={g_aou(M){if(this.g_zM.g_ah_())return g_bA.g_Gm.g_anL.g_Gk.g_aov.call(this,M);if(!M)return!1;const e=this.g_zM,N=e.g_aiD(),g=e.g_Dc(),i=g.g_NK(),f=g.g_Px(),T=f.g_C$(),l=f.g_Ve(),c=f.g_Vf(),m=i.g_Ob(),o=e.g_IU(),p=m.g_Oa(),L=i.g_Of(p);let r=l.get("collmemory");r||(r=g_bA.g_eM(g_bA.g_jA),l.set("collmemory",r)),c.get("spriteCreatedDestroyCallback")||(c.set("spriteCreatedDestroyCallback",!0),e.g_kX().addEventListener("instancedestroy",g=>n(r,g.g_Ns)));const h=T.g_ND(),t=M.g_ND(),b=h.g_Gp();let v=null;for(let e=0;e<b.length;++e){const n=b[e];t.g_NO()?(N.g_acX(n.g_Bv().g_CN(),M,n.g_Bv().g_EI(),d),v=d,N.g_acM(n,M,v)):v=t.g_Gp();for(let e=0;e<v.length;++e){const t=v[e];if(N.g_acP(n,t)||N.g_acN(n,t)){const e=u(r,n,t);let a=!1,i=-2;"number"==typeof e&&(a=!0,i=e);const d=!a||i<o-1;if(_(r,n,t,o),d){const _=p.g_OC();g.g_Qu(_);const e=T.g_ND(),i=M.g_ND();if(e.g_NV(!1),i.g_NV(!1),T===M){const g=e.g_NW();g_bA.g_fV(g),g.push(n),g.push(t),T.g_Vg()}else{const g=e.g_NW(),_=i.g_NW();g_bA.g_fV(g),g_bA.g_fV(_),g.push(n),_.push(t),T.g_Vg(),M.g_Vg()}p.g_Tl(m,L),g.g_Qv(_)}}else a(r,n,t)}g_bA.g_fV(d)}return i.g_NH(),!1},*g_aov(M){if(!M)return!1;const e=this.g_zM,N=e.g_aiD(),g=e.g_Dc(),i=g.g_NK(),T=i.g_Ob(),L=e.g_IU(),l=T.g_Oa(),m=i.g_Of(l),f=l.g_N$(),o=g.g_Px(),p=o.g_C$(),c=o.g_Ve(),r=o.g_Vf();let s=c.get("collmemory");s||(s=g_bA.g_eM(g_bA.g_jA),c.set("collmemory",s)),r.get("spriteCreatedDestroyCallback")||(r.set("spriteCreatedDestroyCallback",!0),e.g_kX().addEventListener("instancedestroy",g=>n(s,g.g_Ns)));const h=p.g_ND(),b=M.g_ND(),v=h.g_Gp();let w=null;for(let e=0;e<v.length;++e){const t=v[e];b.g_NO()?(N.g_acX(t.g_Bv().g_CN(),M,t.g_Bv().g_EI(),d),w=d,N.g_acM(t,M,w)):w=b.g_Gp();for(let e=0;e<w.length;++e){const n=w[e];if(N.g_acP(t,n)||N.g_acN(t,n)){const e=u(s,t,n);let a=!1,i=-2;"number"==typeof e&&(a=!0,i=e);const r=!a||i<L-1;if(_(s,t,n,L),r){const _=l.g_OC();g.g_Qu(_);const e=p.g_ND(),i=M.g_ND();if(e.g_NV(!1),i.g_NV(!1),p===M){const g=e.g_NW();g_bA.g_fV(g),g.push(t),g.push(n),p.g_Vg()}else{const g=e.g_NW(),_=i.g_NW();g_bA.g_fV(g),g_bA.g_fV(_),g.push(t),_.push(n),p.g_Vg(),M.g_Vg()}yield*l.g_Tm(T,m),g.g_Qv(_)}}else a(s,t,n)}g_bA.g_fV(d)}return i.g_NH(),!1},g_aow(g){return t(this,g,0,0)},g_aox(g,_,e){return t(this,g,_,e)},g_aoy(g){return this.g_aoc?g_bA.g_ea(this.g_aoc,g):g_bA.g_ea(this.g_anP.g_q_(),g)},g_aoz(g,_){return g_bA.g_gk(this.g_anQ,g,_)},g_aoA(g,_){const e=this.g_anU?this.g_anV:-this.g_anV;return g_bA.g_gk(e,g,_)},g_aom(g){return g_bA.g_ea(this.g_an$,g)},g_aol(){return!0},g_aon(){return!0},g_aoB(){return 0>this.g_Bv().g_oX()},g_aoC(){return 0>this.g_Bv().g_oY()},g_aoD(){return!0},g_abL(){return this.g_Bv().g_abL()}}}"use strict",g_bA.g_Gm.g_anL.g_VT={g_aoE(_,a,t){if(!_||!a)return;const[n,r]=this.g_VI(t),e=this.g_zM.g_ahH(_,a,n,r);if(!e)return;if(_.g_GH().g_XJ()){const g=e.g_Bv();g.g_DI(this.g_Bv().g_DJ()),g.g_CO()}const d=this.g_zM.g_Dc();if(d.g_Dg(!0),e.g_Dh(),e.g_Di())for(const g of e.siblings())g.g_Dh();d.g_Dg(!1);const g=this.g_zM.g_Pz(),o=g.g_Ve();let i=!1;if((!o.has("Spawn_LastExec")||o.get("Spawn_LastExec")<this.g_zM.g_aiy())&&(i=!0,o.set("Spawn_LastExec",this.g_zM.g_aiy())),_!==this.g_C$()){const g=_.g_ND();g.g_NV(!1);const a=g.g_NW();if(i?(g_bA.g_fV(a),a.push(e)):a.push(e),e.g_Di())for(const g of e.siblings()){const _=g.g_C$().g_ND();i?_.g_NY(g):(_.g_NV(!1),_.g_NT(g))}}},g_aos(){this.g_anZ=!1},g_aor(g){this.g_anZ=!0,this.g_anY=this.g_aog(),1===g&&0!==this.g_anQ&&(this.g_aob=0,!this.g_aoa&&this.g_aoi()),this.g_Yp()},g_aop(g,_){this.g_aoc=g,this.g_aod=_,this.g_Yp(),this.g_aoa||this.g_aoh()},g_aoq(g){isFinite(g)&&(this.g_aob=g,!this.g_aoa&&this.g_aoi())},g_aot(g){this.g_anV=Math.abs(g),this.g_anU=0<=g,0<this.g_anV&&this.g_Yp()},g_aoF(g){g=g_bA.g_eQ(Math.floor(g),0,this.g_anP.g__r()-1),this.g_anW=g},g_aoG(g){const _=this.g_Bv(),e=_.g_oX(),a=Math.abs(e)*(0===g?-1:1);e===a||(_.g_FD(a),_.g_CO())},g_aoH(g){const _=this.g_Bv(),e=_.g_oY(),a=Math.abs(e)*(0===g?-1:1);e===a||(_.g_FE(a),_.g_CO())},g_FC(_){const a=this.g_anR,t=a.g_XX(),n=this.g_Bv(),i=0>n.g_oX()?-1:1,e=0>n.g_oY()?-1:1,r=t.g_oX()*_*i,g=t.g_oY()*_*e;(n.g_oX()!==r||n.g_oY()!==g)&&(n.g_uD(r,g),n.g_CO())},g_aoI(g,_){const a=this.g_anR,t=a.g_XX(),n=this.g_Bv(),e=this.g_zM;return t.g_AJ()===g?(0===_&&(n.g_uD(t.g_oX(),t.g_oY()),n.g_CO()),void this.g_IS(g_bA.g_Gm.g_anL.g_Gk.g_aoD)):void(async()=>{const a=g_bA.g_eM(g_bA.g_ZS);await a.g_Z_(e,g),await a.g_Bs(e.g_pu(),{g_om:this.g_zM.g_Ep()}),t.g__a(a),this.g_X_.g_anM(),this.g_eO()||0!==_||(n.g_uD(t.g_oX(),t.g_oY()),n.g_CO()),e.g_Dt(),this.g_eO()||(await this.g_Gi(g_bA.g_Gm.g_anL.g_Gk.g_aoD))})()},g_aoJ(g){this.g_Bv().g_abM(g)},g_abO(g,_){this.g_Bv().g_abO(0===g,_)},g_aoK(g){this.g_Bv().g_CY(g),this.g_zM.g_Dt()}},"use strict",g_bA.g_Gm.g_anL.g_TD={g_aoL(){return this.g_anQ},g_aoM(){return this.g_anP.g__r()},g_aoN(){return this.g_anP.g_q_()},g_aoO(){return this.g_anU?this.g_anV:-this.g_anV},g_aoP(g){return this.g_VI(g)[0]},g_aoQ(g){return this.g_VI(g)[1]},g_aoR(){return this.g_anR.g__J()},g_aoS(){return this.g_EG().g_oX()},g_aoT(){return this.g_EG().g_oY()}},"use strict",g_bA.g_Gm.g_aoU=class extends g_bA.g_Xs{constructor(g){super(g)}g_eN(){super.g_eN()}},"use strict",g_bA.g_Gm.g_aoU.g_$A=class extends g_bA.g_XV{constructor(g){super(g)}g_eN(){super.g_eN()}g_XI(){}},"use strict",g_bA.g_Gm.g_aoU.g_HR=class extends g_bA.g_XZ{constructor(g){super(g),this.g_aoV=Array(256),this.g_aoW=Array(256),this.g_aoX=0;const _=this.g_Am().g_kX();this.g_lB=new g_bA.g_ly(g_bA.g_ls.g_lx(_,"keydown",g=>this.g_aoY(g.data)),g_bA.g_ls.g_lx(_,"keyup",g=>this.g_aoZ(g.data)),g_bA.g_ls.g_lx(_,"window-blur",()=>this.g_ahe()))}g_eN(){super.g_eN()}async g_aoY(g){const _=g.which;this.g_aoV[_]||(this.g_aoV[_]=!0,this.g_aoW[_]=g.key,this.g_aoX=_,await this.g_Gi(g_bA.g_Gm.g_aoU.g_Gk.g_ao_),await this.g_Gi(g_bA.g_Gm.g_aoU.g_Gk.g_ao$),await this.g_Gi(g_bA.g_Gm.g_aoU.g_Gk.g_apa))}async g_aoZ(g){const _=g.which;this.g_aoV[_]=!1,this.g_aoW[_]=g.key,this.g_aoX=_,await this.g_Gi(g_bA.g_Gm.g_aoU.g_Gk.g_apb),await this.g_Gi(g_bA.g_Gm.g_aoU.g_Gk.g_apc),await this.g_Gi(g_bA.g_Gm.g_aoU.g_Gk.g_apd)}async g_ahe(){for(let g=0,_=this.g_aoV.length;g<_;++g)this.g_aoV[g]&&(this.g_aoV[g]=!1,this.g_aoX=g,await this.g_Gi(g_bA.g_Gm.g_aoU.g_Gk.g_apb),await this.g_Gi(g_bA.g_Gm.g_aoU.g_Gk.g_apc),await this.g_Gi(g_bA.g_Gm.g_aoU.g_Gk.g_apd))}g_Fe(){return{tk:this.g_aoX}}g_Fg(g){this.g_aoX=g.tk}g_Yt(){return[{title:"plugins.keyboard.name",properties:[{name:"plugins.keyboard.debugger.last-key-code",value:this.g_aoX},{name:"plugins.keyboard.debugger.last-key-string",value:g_bA.g_Gm.g_aoU.g_TD.g_ape(this.g_aoX)},{name:"plugins.keyboard.debugger.last-typed-key",value:this.g_aoW[this.g_aoX]||""}]}]}},"use strict",g_bA.g_Gm.g_aoU.g_Gk={g_apf(g){return!!this.g_aoV[g]},g_ao$(g){return this.g_aoX===g},g_ao_(){return!0},g_apb(){return!0},g_apc(g){return this.g_aoX===g},g_apg(g){return g=Math.floor(g),!(0>g||g>=this.g_aoV.length)&&!!this.g_aoV[g]},g_apa(g){return this.g_aoX===g},g_apd(g){return this.g_aoX===g}},"use strict",g_bA.g_Gm.g_aoU.g_VT={},"use strict";{function g(g){return g=Math.floor(g),8===g?"backspace":9===g?"tab":13===g?"enter":16===g?"shift":17===g?"control":18===g?"alt":19===g?"pause":20===g?"capslock":27===g?"esc":33===g?"pageup":34===g?"pagedown":35===g?"end":36===g?"home":37===g?"\u2190":38===g?"\u2191":39===g?"\u2192":40===g?"\u2193":45===g?"insert":46===g?"del":91===g?"left window key":92===g?"right window key":93===g?"select":96===g?"numpad 0":97===g?"numpad 1":98===g?"numpad 2":99===g?"numpad 3":100===g?"numpad 4":101===g?"numpad 5":102===g?"numpad 6":103===g?"numpad 7":104===g?"numpad 8":105===g?"numpad 9":106===g?"numpad *":107===g?"numpad +":109===g?"numpad -":110===g?"numpad .":111===g?"numpad /":112===g?"F1":113===g?"F2":114===g?"F3":115===g?"F4":116===g?"F5":117===g?"F6":118===g?"F7":119===g?"F8":120===g?"F9":121===g?"F10":122===g?"F11":123===g?"F12":144===g?"numlock":145===g?"scroll lock":186===g?";":187===g?"=":188===g?",":189===g?"-":190===g?".":191===g?"/":192===g?"'":219===g?"[":220===g?"\\":221===g?"]":222===g?"#":223===g?"`":String.fromCharCode(g)}g_bA.g_Gm.g_aoU.g_TD={g_aph(){return this.g_aoX},g_ape(_){return g(_)},g_api(){return this.g_aoW[this.g_aoX]||""}}}"use strict",g_bA.g_Gm.g_apj=class extends g_bA.g_Xs{constructor(g){super(g)}g_eN(){super.g_eN()}},"use strict",g_bA.g_Gm.g_apj.g_$A=class extends g_bA.g_XV{constructor(g){super(g)}g_eN(){super.g_eN()}g_XI(){}},"use strict",g_bA.g_Gm.g_apj.g_HR=class extends g_bA.g_XZ{constructor(g){super(g,"mouse"),this.g_apk=[!1,!1,!1],this.g_apl=0,this.g_apm=0,this.g_apn=0,this.g_apo=0,this.g_app=0;const _=this.g_Am().g_kX();this.g_lB=new g_bA.g_ly(g_bA.g_ls.g_lx(_,"mousemove",g=>this.g_apq(g.data)),g_bA.g_ls.g_lx(_,"mousedown",g=>this.g_apr(g.data)),g_bA.g_ls.g_lx(_,"mouseup",g=>this.g_aps(g.data)),g_bA.g_ls.g_lx(_,"dblclick",g=>this.g_apt(g.data)),g_bA.g_ls.g_lx(_,"wheel",g=>this.g_apu(g.data)),g_bA.g_ls.g_lx(_,"window-blur",()=>this.g_ahe()))}g_eN(){super.g_eN()}g_apq(g){this.g_apl=g.clientX-this.g_zM.g_YV(),this.g_apm=g.clientY-this.g_zM.g_YW()}async g_apr(g){const _=g.button;this.g_apk[_]=!0,await this.g_Gi(g_bA.g_Gm.g_apj.g_Gk.g_apv),this.g_apn=_,this.g_apo=0,await this.g_Gi(g_bA.g_Gm.g_apj.g_Gk.g_apw),await this.g_Gi(g_bA.g_Gm.g_apj.g_Gk.g_apx)}async g_aps(g){const _=g.button;this.g_apk[_]&&(this.g_apk[_]=!1,this.g_apn=_,await this.g_Gi(g_bA.g_Gm.g_apj.g_Gk.g_apy))}async g_apt(g){this.g_apn=g.button,this.g_apo=1,await this.g_Gi(g_bA.g_Gm.g_apj.g_Gk.g_apw),await this.g_Gi(g_bA.g_Gm.g_apj.g_Gk.g_apx)}async g_apu(g){this.g_app=0>g.deltaY?1:0,await this.g_Gi(g_bA.g_Gm.g_apj.g_Gk.g_apz)}async g_ahe(){for(let g=0,_=this.g_apk.length;g<_;++g){if(!this.g_apk[g])return;this.g_apk[g]=!1,this.g_apn=g,await this.g_Gi(g_bA.g_Gm.g_apj.g_Gk.g_apy)}}g_apA(){return 0<=this.g_apl&&0<=this.g_apm&&this.g_apl<this.g_zM.g_ahF()&&this.g_apm<this.g_zM.g_ahG()}g_Yt(){return[{title:"plugins.mouse.name",properties:[{name:"plugins.mouse.debugger.absolute-position",value:this.g_apl+","+this.g_apm},{name:"plugins.mouse.debugger.left-button",value:this.g_apk[0]},{name:"plugins.mouse.debugger.middle-button",value:this.g_apk[1]},{name:"plugins.mouse.debugger.right-button",value:this.g_apk[2]}]},{title:"plugins.mouse.debugger.position-on-each-layer",properties:this.g_zM.g_GI().g_FG().map(g=>({name:"$"+g.g_q_(),value:g.g_ER(this.g_apl,this.g_apm).join(", ")}))}]}},"use strict",g_bA.g_Gm.g_apj.g_Gk={g_apw(g,_){return this.g_apn===g&&this.g_apo===_},g_apv(){return!0},g_apB(g){return this.g_apk[g]},g_apy(g){return this.g_apn===g},g_apC(g){if(!this.g_apA())return!1;const _=this.g_zM.g_Px(),a=_.g_Va(),t=this.g_apl,n=this.g_apm;return g_bA.g_gj(this.g_zM.g_aiD().g_acW(g,t,n,a),a)},g_apx(g,_,a){if(g!==this.g_apn||_!==this.g_apo)return!1;if(!this.g_apA())return!1;const t=this.g_apl,n=this.g_apm;return this.g_zM.g_aiD().g_acW(a,t,n,!1)},g_apz(g){return this.g_app===g}},"use strict";{let g=null;const _=["auto","pointer","text","crosshair","move","help","wait","none"];g_bA.g_Gm.g_apj.g_VT={g_apD(e){const a=_[e];g===a||(g=a,this.g_Yk("cursor",a))},g_apE(_){if(g_bA.g_cu.g_cF||!_)return;const a=_.g_VN();if(!a)return;const t=a.g_Bv(),n=a.g_EG();t&&n&&g!==n&&(g=n,n.g__g().then(g=>g_bA.g_cT(g)).then(g=>{var _=Math.round;const e=URL.createObjectURL(g),a=`url(${e}) ${_(t.g_MO()*n.g_oX())} ${_(t.g_MQ()*n.g_oY())}, auto`;this.g_Yk("cursor",""),this.g_Yk("cursor",a)}))}}}{function g(g,_,a,t,n){if("undefined"==typeof _){const _=g.g_FI(0);return _.g_E$(a,t)[n?0:1]}else{const e=g.g_CN(_);return e?e.g_ER(a,t)[n?0:1]:0}}g_bA.g_Gm.g_apj.g_TD={g_Wb(_){return g(this.g_zM.g_SO(),_,this.g_apl,this.g_apm,!0)},g_Wc(_){return g(this.g_zM.g_SO(),_,this.g_apl,this.g_apm,!1)},g_apF(){return this.g_apl},g_apG(){return this.g_apm}}}"use strict",g_bA.g_Gm.Touch=class extends g_bA.g_Xs{constructor(g){super(g)}g_eN(){super.g_eN()}},"use strict",g_bA.g_Gm.Touch.g_$A=class extends g_bA.g_XV{constructor(g){super(g)}g_eN(){super.g_eN()}g_XI(){}},"use strict",g_bA.g_Gm.Touch.g_HR=class extends g_bA.g_XZ{constructor(g,_){super(g),this.g_apH=new Map,this.g_apI=!1,this.g_apJ=!1,this.g_apK=0,this.g_apL=0,this.g_apM=0,this.g_apN=0,this.g_apO=0,this.g_apP=0,this.g_apQ=0,this.g_apR=0,this.g_apS=0,this.g_apT=0,this.g_apU=0,this.g_apV=0,this.g_apW=0,this.g_apX=0,_&&(this.g_apI=_[0]);const e=this.g_Am().g_kX();this.g_lB=new g_bA.g_ly(g_bA.g_ls.g_lx(e,"pointerdown",g=>this.g_apY(g.data)),g_bA.g_ls.g_lx(e,"pointermove",g=>this.g_apZ(g.data)),g_bA.g_ls.g_lx(e,"pointerup",g=>this.g_ap_(g.data,!1)),g_bA.g_ls.g_lx(e,"pointercancel",g=>this.g_ap_(g.data,!0)),g_bA.g_ls.g_lx(e,"deviceorientation",g=>this.g_ap$(g.data)),g_bA.g_ls.g_lx(e,"devicemotion",g=>this.g_aqa(g.data)),g_bA.g_ls.g_lx(e,"mousemove",g=>this.g_apq(g.data)),g_bA.g_ls.g_lx(e,"mousedown",g=>this.g_apr(g.data)),g_bA.g_ls.g_lx(e,"mouseup",g=>this.g_aps(g.data)),g_bA.g_ls.g_lx(e,"tick2",()=>this.g_Ln()))}g_eN(){this.g_apH.clear(),super.g_eN()}async g_apY(_){if("mouse"!==_.pointerType){const a=_.pointerId;if(!this.g_apH.has(a)){const t=_.clientX-this.g_zM.g_YV(),n=_.clientY-this.g_zM.g_YW(),i=_.timeStamp,e=this.g_apH.size;this.g_apT=e,this.g_apU=a;const r=g_bA.g_eM(g_bA.g_Gm.Touch.g_aqb);r.g_aaM(i,t,n,a,e),this.g_apH.set(a,r),await this.g_Gi(g_bA.g_Gm.Touch.g_Gk.g_aqc),await this.g_Gi(g_bA.g_Gm.Touch.g_Gk.g_aqd),this.g_apV=t,this.g_apW=n,await this.g_Gi(g_bA.g_Gm.Touch.g_Gk.g_aqe)}}}g_apZ(g){if("mouse"!==g.pointerType){const _=this.g_apH.get(g.pointerId);if(_){const a=g.timeStamp;if(!(2>a-_.g_I$())){const t=g.clientX-this.g_zM.g_YV(),n=g.clientY-this.g_zM.g_YW();_.g_BO(a,t,n,g.width,g.height,g.pressure)}}}}async g_ap_(g,_){if("mouse"!==g.pointerType){const t=g.timeStamp,a=g.pointerId,n=this.g_apH.get(a);if(n){if(this.g_apT=n.g_aqf(),this.g_apU=n.g_Ne(),await this.g_Gi(g_bA.g_Gm.Touch.g_Gk.g_aqg),await this.g_Gi(g_bA.g_Gm.Touch.g_Gk.g_aqh),!_){const g=n.g_aqi(t);"single-tap"===g?(await this.g_Gi(g_bA.g_Gm.Touch.g_Gk.g_aqj),this.g_apV=n.g_Gw(),this.g_apW=n.g_Gx(),await this.g_Gi(g_bA.g_Gm.Touch.g_Gk.g_aqk)):"double-tap"===g&&(await this.g_Gi(g_bA.g_Gm.Touch.g_Gk.g_aql),this.g_apV=n.g_Gw(),this.g_apW=n.g_Gx(),await this.g_Gi(g_bA.g_Gm.Touch.g_Gk.g_aqm))}n.g_eN(),this.g_apH.delete(a)}}}g_apr(g){if(this.g_apI)return this.g_apJ=!0,this.g_apY({pointerType:"touch",pointerId:0,clientX:g.clientX,clientY:g.clientY,timeStamp:g.timeStamp})}g_apq(g){this.g_apI&&this.g_apJ&&this.g_apZ({pointerType:"touch",pointerId:0,clientX:g.clientX,clientY:g.clientY,width:0,height:0,pressure:0,timeStamp:g.timeStamp})}g_aps(g){if(this.g_apI&&this.g_apJ)return this.g_apJ=!1,this.g_ap_({pointerType:"touch",pointerId:0,timeStamp:g.timeStamp})}g_ap$(g){this.g_apK=g.alpha,this.g_apL=g.beta,this.g_apM=g.gamma}g_aqa(g){const _=g.acceleration,e=g.accelerationWithG;this.g_apN=_.x,this.g_apO=_.y,this.g_apP=_.z,this.g_apQ=e.x,this.g_apR=e.y,this.g_apS=e.z}g_Ln(){if(this.g_zM.g_ah_())return this.g_aqn();const g=performance.now();let _=0;for(const e of this.g_apH.values())e.g_I$()<=g-50&&e.g_aqo(g),e.g_aqp(g)&&(this.g_apT=e.g_aqf(),this.g_apU=e.g_Ne(),this.g_apX=_,this.g_IS(g_bA.g_Gm.Touch.g_Gk.g_aqq),this.g_apV=e.g_Gw(),this.g_apW=e.g_Gx(),this.g_IS(g_bA.g_Gm.Touch.g_Gk.g_aqr),this.g_apX=0),++_}*g_aqn(){const g=performance.now();let _=0;for(const e of this.g_apH.values())e.g_I$()<=g-50&&e.g_aqo(g),e.g_aqp(g)&&(this.g_apT=e.g_aqf(),this.g_apU=e.g_Ne(),this.g_apX=_,yield*this.g_Ye(g_bA.g_Gm.Touch.g_Gk.g_aqq),this.g_apV=e.g_Gw(),this.g_apW=e.g_Gx(),yield*this.g_Ye(g_bA.g_Gm.Touch.g_Gk.g_aqr),this.g_apX=0),++_}g_aqs(g){g=Math.floor(g);for(const _ of this.g_apH.values()){if(0===g)return _;--g}return null}g_aqt(g,_){return 0<=g&&0<=_&&g<this.g_zM.g_ahF()&&_<this.g_zM.g_ahG()}g_Yt(){return[{title:"plugins.touch.debugger.touches",properties:[...this.g_apH.values()].map(g=>({name:"$"+g.g_Ne(),value:g.g_Gw()+", "+g.g_Gx()}))}]}},"use strict";{const g=[];g_bA.g_Gm.Touch.g_Gk={g_aqd(){return!0},g_aqh(){return!0},g_aqu(){return 0<this.g_apH.size},g_aqe(g){return!!g&&!!this.g_aqt(this.g_apV,this.g_apW)&&this.g_zM.g_aiD().g_acW(g,this.g_apV,this.g_apW,!1)},g_aqv(_){if(!_)return!1;const e=_.g_ND(),a=e.g_Gp();for(const e of a){const _=e.g_Bv(),a=_.g_CN();for(const t of this.g_apH.values()){if(!this.g_aqt(t.g_Gw(),t.g_Gx()))continue;const[n,i]=a.g_ER(t.g_Gw(),t.g_Gx(),_.g_Hn());if(_.g_acc(n,i)){g.push(e);break}}}return!!g.length&&(e.g_NZ(g),_.g_Vg(),g_bA.g_fV(g),!0)},g_aqw(g,_,e){const a=this.g_aqs(g);return!!a&&g_bA.g_gk(a.g__u(),_,e)},g_aqx(){return!0},g_aqy(){return!0},g_aqz(g,_,e){this.g_zM.g_aiZ();let t=0;return t=0===g?this.g_apK:1===g?this.g_apL:this.g_apM,g_bA.g_gk(t,_,e)},g_aqA(g,_,e){this.g_zM.g_ai_();let a=0;return a=0===g?this.g_apQ:1===g?this.g_apR:2===g?this.g_apS:3===g?this.g_apN:4===g?this.g_apO:this.g_apP,g_bA.g_gk(a,_,e)},g_aqc(g){return g=Math.floor(g),g===this.g_apT},g_aqg(g){return g=Math.floor(g),g===this.g_apT},g_aqB(g){return g=Math.floor(g),this.g_apH.size>=g+1},g_aqq(){return!0},g_aqj(){return!0},g_aql(){return!0},g_aqr(g){return!!g&&!!this.g_aqt(this.g_apV,this.g_apW)&&this.g_zM.g_aiD().g_acW(g,this.g_apV,this.g_apW,!1)},g_aqk(g){return!!g&&!!this.g_aqt(this.g_apV,this.g_apW)&&this.g_zM.g_aiD().g_acW(g,this.g_apV,this.g_apW,!1)},g_aqm(g){return!!g&&!!this.g_aqt(this.g_apV,this.g_apW)&&this.g_zM.g_aiD().g_acW(g,this.g_apV,this.g_apW,!1)}}}"use strict",g_bA.g_Gm.Touch.g_VT={},"use strict",g_bA.g_Gm.Touch.g_TD={g_aqC(){return this.g_apH.size},g_Wb(g){const _=this.g_aqs(this.g_apX);return _?_.g_aqD(this.g_zM.g_SO(),g,!0):0},g_Wc(g){const _=this.g_aqs(this.g_apX);return _?_.g_aqD(this.g_zM.g_SO(),g,!1):0},g_aqE(g,_){const e=this.g_aqs(g);return e?e.g_aqD(this.g_zM.g_SO(),_,!0):0},g_aqF(g,_){const e=this.g_aqs(g);return e?e.g_aqD(this.g_zM.g_SO(),_,!1):0},g_aqG(g,_){const e=this.g_apH.get(g);return e?e.g_aqD(this.g_zM.g_SO(),_,!0):0},g_aqH(g,_){const e=this.g_apH.get(g);return e?e.g_aqD(this.g_zM.g_SO(),_,!1):0},g_apF(){const g=this.g_aqs(0);return g?g.g_Gw():0},g_apG(){const g=this.g_aqs(0);return g?g.g_Gx():0},g_aqI(g){const _=this.g_aqs(g);return _?_.g_Gw():0},g_aqJ(g){const _=this.g_aqs(g);return _?_.g_Gx():0},g_aqK(g){const _=this.g_apH.get(g);return _?_.g_Gw():0},g_aqL(g){const _=this.g_apH.get(g);return _?_.g_Gx():0},g_aqM(g){const _=this.g_aqs(g);return _?_.g__u():0},g_aqN(g){const _=this.g_apH.get(g);return _?_.g__u():0},g_aqO(g){const _=this.g_aqs(g);return _?g_bA.g_eT(_.g_DJ()):0},g_aqP(g){const _=this.g_apH.get(g);return _?g_bA.g_eT(_.g_DJ()):0},g_aqQ(){return this.g_zM.g_aiZ(),this.g_apK},g_aqR(){return this.g_zM.g_aiZ(),this.g_apL},g_aqS(){return this.g_zM.g_aiZ(),this.g_apM},g_aqT(){return this.g_zM.g_ai_(),this.g_apQ},g_aqU(){return this.g_zM.g_ai_(),this.g_apR},g_aqV(){return this.g_zM.g_ai_(),this.g_apS},g_aqW(){return this.g_zM.g_ai_(),this.g_apN},g_aqX(){return this.g_zM.g_ai_(),this.g_apO},g_aqY(){return this.g_zM.g_ai_(),this.g_apP},g_aqZ(){return this.g_apT},g_aq_(){return this.g_apU},g_aq$(g){const _=this.g_apH.get(g);return _?_.g_oX():0},g_ara(g){const _=this.g_apH.get(g);return _?_.g_oY():0},g_arb(g){const _=this.g_apH.get(g);return _?_.g_arc():0}},"use strict";{const _=15;let g=-1e3,a=-1e3,t=-1e4;g_bA.g_Gm.Touch.g_aqb=class extends g_bA.g_eK{constructor(){super(),this.g_ard=0,this.g_sg=0,this.g_agx=0,this.g_J$=0,this.g_are=0,this.g_arf=0,this.g_arg=0,this.g_hP=0,this.g_hQ=0,this.g_arh=0,this.g_ari=0,this.g_ou=0,this.g_ov=0,this.g_arj=0,this.g_ark=!1,this.g_arl=!1}g_eN(){}g_aaM(g,_,a,t,n){this.g_ard=t,this.g_sg=n,this.g_J$=g,this.g_are=g,this.g_agx=g,this.g_arf=_,this.g_arg=a,this.g_hP=_,this.g_hQ=a,this.g_arh=_,this.g_ari=a}g_BO(a,t,n,i,e,r){this.g_are=this.g_J$,this.g_J$=a,this.g_arh=this.g_hP,this.g_ari=this.g_hQ,this.g_hP=t,this.g_hQ=n,this.g_ou=i,this.g_ov=e,this.g_arj=r,!this.g_arl&&g_bA.g_eU(this.g_arf,this.g_arg,this.g_hP,this.g_hQ)>=_&&(this.g_arl=!0)}g_Ne(){return this.g_ard}g_aqf(){return this.g_sg}g_I$(){return this.g_J$}g_aqo(g){this.g_are=g}g_Gw(){return this.g_hP}g_Gx(){return this.g_hQ}g__u(){const g=g_bA.g_eU(this.g_hP,this.g_hQ,this.g_arh,this.g_ari),_=(this.g_J$-this.g_are)/1e3;return 0<_?g/_:0}g_DJ(){return g_bA.g_eW(this.g_arh,this.g_ari,this.g_hP,this.g_hQ)}g_oX(){return this.g_ou}g_oY(){return this.g_ov}g_arc(){return this.g_arj}g_aqp(g){return!this.g_ark&&!!(500<=g-this.g_agx&&!this.g_arl&&g_bA.g_eU(this.g_arf,this.g_arg,this.g_hP,this.g_hQ)<_)&&(this.g_ark=!0,!0)}g_aqi(n){return this.g_ark?"":333>=n-this.g_agx&&!this.g_arl&&g_bA.g_eU(this.g_arf,this.g_arg,this.g_hP,this.g_hQ)<_?666>=n-t&&25>g_bA.g_eU(g,a,this.g_hP,this.g_hQ)?(g=-1e3,a=-1e3,t=-1e4,"double-tap"):(g=this.g_hP,a=this.g_hQ,t=n,"single-tap"):""}g_aqD(g,_,e){if("undefined"==typeof _){const _=g.g_FI(0);return _.g_E$(this.g_hP,this.g_hQ)[e?0:1]}else{const a=g.g_CN(_);return a?a.g_ER(this.g_hP,this.g_hQ)[e?0:1]:0}}}}"use strict",g_bA.g_Gm.Text=class extends g_bA.g_Xs{constructor(g){super(g)}g_eN(){super.g_eN()}},"use strict",g_bA.g_Gm.Text.g_$A=class extends g_bA.g_XV{constructor(g){super(g)}g_eN(){super.g_eN()}g_XI(){}g_FR(){}g_FV(){}},"use strict";{const g=[0,0,0],_=["left","center","right"],t=["top","center","bottom"],r=new g_bA.Rect,u=new g_bA.g_iH;g_bA.g_Gm.Text.g_HR=class extends g_bA.g_Yy{constructor(g,_){if(super(g),this.g_tC="",this.g_arm=!0,this.g_arn="Arial",this.g_aro=12,this.g_arp=0,this.g_tu=!1,this.g_tv=!1,this.g_vD=g_bA.g_eM(g_bA.g_gT),this.g_tA=0,this.g_tB=0,this.g_arq=!0,this.g_arr=-1,this.g_ars=-1,this.g_art=0,this.g_aru=g_bA.g_eM(g_bA.g_oh.g_tq,this.g_zM.g_pu(),{timeout:5}),this.g_aru.g_uh=()=>this.g_zM.g_Dt(),this.g_aru.g_uk(!1),_){this.g_tC=_[0],this.g_arm=!!_[1],this.g_arn=_[2],this.g_aro=_[3],this.g_arp=_[4],this.g_tu=!!_[5],this.g_tv=!!_[6],this.g_tA=_[8],this.g_tB=_[9],this.g_arq=0===_[10];const g=_[7];this.g_vD.g_gZ(g[0],g[1],g[2]),this.g_Bv().g_Ds(_[11])}this.g_arv()}g_eN(){this.g_arw(),this.g_aru.g_eN(),this.g_aru=null,super.g_eN()}g_arv(){const g=this.g_aru;g.g_uC(this.g_tC),g.g_um(this.g_arm),g.g_un(this.g_arn),g.g_uo(this.g_aro),g.g_up(this.g_arp),g.g_uq(this.g_tu),g.g_ur(this.g_tv),g.g_ux(this.g_vD),g.g_uz(_[this.g_tA]),g.g_uA(t[this.g_tB]),g.g_uB(this.g_arq?"word":"character")}g_arx(){const g=this.g_Bv(),_=g.g_CN(),e=_.g_Ek()*_.g_Dw(g.g_Hn());this.g_aru.g_uD(g.g_oX(),g.g_oY(),e)}g_El(_){var e=Math.round;const a=this.g_Bv();this.g_arx();const t=this.g_aru.g_pv();if(!t)return;const d=a.g_CN();let g=a.g_abT();if(0===a.g_DJ()&&0===a.g_CN().g_DJ()&&0===a.g_Hn()){const[a,s]=d.g_Fc(g.g_fv(),g.g_fw()),[i,f]=d.g_Fc(g.g_fz(),g.g_fA()),c=a-e(a),l=s-e(s);r.set(a,s,i,f),r.offset(-c,-l),u.g_i_(r);const[p,n]=_.g_yc(_.g_zk());this.g_zM.g_Em().g_HL(_,p,n),_.g_xS(t),_.g_x$(u,this.g_aru.g_uV()),d.g_Ej(_)}else{let a=0,n=0;this.g_zM.g_ES()&&(a=g.g_fv()-e(g.g_fv()),n=g.g_fw()-e(g.g_fw())),(0!=a||0!=n)&&(u.g_r(g),u.offset(-a,-n),g=u),_.g_xS(t),_.g_x$(g,this.g_aru.g_uV())}}g_Fe(){const g={t:this.g_tC,c:this.g_vD.toJSON(),fn:this.g_arn,ps:this.g_aro};return this.g_arm&&(g.bbc=this.g_arm),0!==this.g_tA&&(g.ha=this.g_tA),0!==this.g_tB&&(g.va=this.g_tB),this.g_arq||(g.wr=this.g_arq),0!==this.g_arp&&(g.lho=this.g_arp),this.g_tu&&(g.b=this.g_tu),this.g_tv&&(g.i=this.g_tv),-1!==this.g_ars&&(g.tw={st:this.g_arr,en:this.g_ars,l:this.g_art}),g}g_Fg(g){if(this.g_arw(),this.g_tC=g.t,this.g_vD.g_hG(g.c),this.g_arn=g.fn,this.g_aro=g.ps,this.g_arm=!!g.hasOwnProperty("bbc")&&g.bbc,this.g_tA=g.hasOwnProperty("ha")?g.ha:0,this.g_tB=g.hasOwnProperty("va")?g.va:0,this.g_arq=!g.hasOwnProperty("wr")||g.wr,this.g_arp=g.hasOwnProperty("lho")?g.lho:0,this.g_tu=!!g.hasOwnProperty("b")&&g.b,this.g_tv=!!g.hasOwnProperty("i")&&g.i,g.hasOwnProperty("tw")){const _=g.tw;this.g_arr=_.st,this.g_ars=_.en,this.g_art=_.l}this.g_arv(),-1!==this.g_ars&&this.g_Yp()}g_Mp(_){return 0===_?this.g_tC:1===_?this.g_arm:2===_?this.g_arn:3===_?this.g_aro:4===_?this.g_arp:5===_?this.g_tu:6===_?this.g_tv:7===_?(g[0]=this.g_vD.g_hf(),g[1]=this.g_vD.g_hg(),g[2]=this.g_vD.g_hh(),g):8===_?this.g_tA:9===_?this.g_tB:10===_?this.g_arq?1:0:void 0}g_Mt(g,_){switch(g){case 0:if(this.g_tC===_)return;this.g_tC=_,this.g_arv();break;case 1:if(this.g_arm===!!_)return;this.g_arm=!!_,this.g_arv();break;case 2:if(this.g_arn===_)return;this.g_arn=_,this.g_arv();break;case 3:if(this.g_aro===_)return;this.g_aro=_,this.g_arv();break;case 4:if(this.g_arp===_)return;this.g_arp=_,this.g_arv();break;case 5:if(this.g_tu===!!_)return;this.g_tu=!!_,this.g_arv();break;case 6:if(this.g_tv===!!_)return;this.g_tv=!!_,this.g_arv();break;case 7:const e=this.g_vD,a=_;if(e.g_hf()===a[0]&&e.g_hg()===a[1]&&e.g_hh()===a[2])return;this.g_vD.g_gZ(a[0],a[1],a[2]),this.g_arv();break;case 8:if(this.g_tA===_)return;this.g_tA=_,this.g_arv();break;case 9:if(this.g_tB===_)return;this.g_tB=_,this.g_arv();break;case 10:if(this.g_arq===(0===_))return;this.g_arq=0===_,this.g_arv();}}g_Mu(g,_){0!==_&&(3===g?(this.g_aro+=_,this.g_arv()):4===g?(this.g_arp+=_,this.g_arv()):void 0)}g_Mr(g,_,a,t){(0!==_||0!==a||0!==t)&&(7===g?(this.g_vD.g_g_(_,a,t),this.g_arv()):void 0)}g_ary(g){this.g_tC===g||(this.g_tC=g,this.g_aru.g_uC(g),this.g_zM.g_Dt())}g_arz(g,_){this.g_ary(g),this.g_arr=this.g_zM.g_EK(),this.g_ars=this.g_arr+_,this.g_art=g_bA.g_eo.g_nX(g).length,this.g_aru.g_us(0),this.g_Yp()}g_arw(){this.g_arr=-1,this.g_ars=-1,this.g_art=0,this.g_aru.g_us(-1),this.g_Yc()}g_Jv(){const g=this.g_zM.g_EK();if(g>=this.g_ars)this.g_arw(),this.g_IS(g_bA.g_Gm.Text.g_Gk.g_arA),this.g_zM.g_Dt();else{let _=g_bA.g_fa(this.g_arr,this.g_ars,g,0,this.g_art);_=Math.floor(_),_!==this.g_aru.g_ut()&&(this.g_aru.g_us(_),this.g_zM.g_Dt())}}g_Yt(){return[{title:"plugins.text.name",properties:[{name:"plugins.text.properties.text.name",value:this.g_tC,g_aoo:g=>this.g_ary(g)}]}]}}}"use strict",g_bA.g_Gm.Text.g_Gk={g_arB(g,_){return _?this.g_tC===g:g_bA.g_ea(this.g_tC,g)},g_arC(){return-1!==this.g_ars},g_arA(){return!0}},"use strict";{const g=g_bA.g_eM(g_bA.g_gT);g_bA.g_Gm.Text.g_VT={g_uC(g){this.g_arw(),"number"==typeof g&&1e9>g&&(g=Math.round(1e10*g)/1e10),this.g_ary(g.toString())},g_arD(g){this.g_arw(),"number"==typeof g&&1e9>g&&(g=Math.round(1e10*g)/1e10),g=g.toString(),g&&this.g_ary(this.g_tC+g)},g_arE(g,_){this.g_arw(),"number"==typeof g&&1e9>g&&(g=Math.round(1e10*g)/1e10),this.g_arz(g.toString(),_)},g_arF(g,_){let a=!1,t=!1;if(1===_?a=!0:2===_?t=!0:3===_?(a=!0,t=!0):void 0,g===this.g_arn&&a===this.g_tu&&t===this.g_tv)return!1;this.g_arn=g,this.g_tu=a,this.g_tv=t;const n=this.g_aru;n.g_un(this.g_arn),n.g_uq(this.g_tu),n.g_ur(this.g_tv),this.g_zM.g_Dt()},g_uo(g){this.g_aro===g||(this.g_aro=g,this.g_aru.g_uo(this.g_aro),this.g_zM.g_Dt())},g_arG(_){g.g_hr(_),g.g_eQ(),this.g_vD.g_hl(g)||(this.g_vD.g_he(g),this.g_aru.g_ux(this.g_vD),this.g_zM.g_Dt())},g_arH(){console.warn("[Text] 'Set web font' action is deprecated and no longer has any effect")},g_aoK(g){this.g_Bv().g_CY(g),this.g_zM.g_Dt()},g_arI(){-1===this.g_ars||(this.g_arw(),this.g_IS(g_bA.g_Gm.Text.g_Gk.g_arA),this.g_zM.g_Dt())}}}"use strict",g_bA.g_Gm.Text.g_TD={Text(){return this.g_tC},g_arJ(){return g_bA.g_eo.g_nX(this.g_tC)},g_arK(){return this.g_arn},g_arL(){return this.g_aro},g_arM(){return this.g_arx(),this.g_aru.g_uE()},g_arN(){return this.g_arx(),this.g_aru.g_uG()}},"use strict",g_bA.g_Gm.g_arO=class extends g_bA.g_Xs{constructor(g){super(g)}g_eN(){super.g_eN()}},"use strict",g_bA.g_Gm.g_arO.g_$A=class extends g_bA.g_XV{constructor(g){super(g)}g_eN(){super.g_eN()}g_XI(){this.g_XX().g_Z$(this.g_zM)}g_FR(g){return this.g_XX().g_Bs(g,{g_om:this.g_zM.g_Ep(),g_ok:!0})}g_FV(){this.g_XX().g_uf()}},"use strict";{const g=g_bA.g_eM(g_bA.g_iH),_=g_bA.g_eM(g_bA.Rect),a=g_bA.g_eM(g_bA.g_iH);g_bA.g_Gm.g_arO.g_HR=class extends g_bA.g_Yy{constructor(g,_){super(g),this.g_arP=0,this.g_arQ=0,this.g_arR=1,this.g_arS=1,this.g_arT=0,this.g_arU=null,_&&(this.g_Bv().g_Ds(!!_[0]),this.g_arP=_[2],this.g_arQ=_[3],this.g_arR=_[4],this.g_arS=_[5],this.g_arT=g_bA.g_eS(_[6]))}g_eN(){this.g_arV(),super.g_eN()}g_arV(){this.g_arU&&(this.g_arU.g_eN(),this.g_arU=null)}g_El(t){var n=Math.round;const e=this.g_EG(),r=e.g_pv();if(!r)return;const d=this.g_Bv();let o=d.g_abT();t.g_xS(r);const u=e.g_oX(),s=e.g_oY(),f=this.g_arP/u,l=this.g_arQ/s;if(_.set(0,0,d.g_oX()/(u*this.g_arR),d.g_oY()/(s*this.g_arS)),_.offset(-f,-l),this.g_zM.g_ES()){const _=n(d.g_Gw())-d.g_Gw(),e=n(d.g_Gx())-d.g_Gx();g.g_r(o),g.offset(_,e),o=g}0===this.g_arT?t.g_x$(o,_):(a.g_i$(_,-this.g_arT),t.g_ya(o,a))}g_EG(){return this.g_arU||this.g_NA.g_XX()}}}"use strict",g_bA.g_Gm.g_arO.g_Gk={g_aoD(){return!0}},"use strict",g_bA.g_Gm.g_arO.g_VT={g_arW(g){this.g_arP===g||(this.g_arP=g,this.g_zM.g_Dt())},g_arX(g){this.g_arQ===g||(this.g_arQ=g,this.g_zM.g_Dt())},g_arY(g){g/=100,this.g_arR===g||(this.g_arR=g,this.g_zM.g_Dt())},g_arZ(g){g/=100,this.g_arS===g||(this.g_arS=g,this.g_zM.g_Dt())},g_ar_(g){g=g_bA.g_eS(g),this.g_arT===g||(this.g_arT=g,this.g_zM.g_Dt())},g_aoK(g){this.g_Bv().g_CY(g),this.g_zM.g_Dt()},g_aoI(g){this.g_arU&&this.g_arU.g_AJ()===g||(async()=>{const _=this.g_zM,e=g_bA.g_eM(g_bA.g_ZS);if(await e.g_Z_(_,g),this.g_eO())return e.g_eN(),null;const a=await e.g_Bs(_.g_pu(),{g_om:this.g_zM.g_Ep(),g_ok:!0});return a?this.g_eO()?void e.g_eN():void(this.g_arV(),this.g_arU=e,_.g_Dt(),await this.g_Gi(g_bA.g_Gm.g_arO.g_Gk.g_aoD)):void 0})()}},"use strict",g_bA.g_Gm.g_arO.g_TD={g_aoS(){return this.g_EG().g_oX()},g_aoT(){return this.g_EG().g_oY()},g_ar$(){return this.g_arP},g_asa(){return this.g_arQ},g_asb(){return 100*this.g_arR},g_asc(){return 100*this.g_arS},g_asd(){return g_bA.g_eT(this.g_arT)}},"use strict",g_bA.g_Gm.Audio=class extends g_bA.g_Xs{constructor(g){super(g)}g_eN(){super.g_eN()}},"use strict",g_bA.g_Gm.Audio.g_$A=class extends g_bA.g_XV{constructor(g){super(g)}g_eN(){super.g_eN()}g_XI(){}},"use strict";{const g=["interactive","balanced","playback"];g_bA.g_Gm.Audio.g_HR=class extends g_bA.g_XZ{constructor(_,a){super(_,"audio"),this.g_ase=0,this.g_asf="",this.g_asg=0,this.g_ash=0,this.g_anc=!1,this.g_asi=1,this.g_asj=1,this.g_ask=this.g_zM.g_ET()/2,this.g_asl=this.g_zM.g_EU()/2,this.g_asm=-600,this.g_asn=600,this.g_aso=1e4,this.g_asp=1,this.g_asq=null,this.g_asr=-1,this.g_ass=1,this.g_ast=!1,this.g_asu=0,this.g_asv=new Map,this.g_asw=0,this.g_asx=0;let t="interactive";a&&(this.g_asg=a[0],this.g_ash=a[1],this.g_anc=a[2],t=g[a[3]],this.g_asi=a[4],this.g_asj=a[5],this.g_asm=-a[6],this.g_asn=a[7],this.g_aso=a[8],this.g_asp=a[9]),this.g_asy=[],this.g_asz=[],this.g_asA=[],this.g_Yj([["state",g=>this.g_amW(g)],["fxstate",g=>this.g_asB(g)],["trigger",g=>this.g_asC(g)]]);const n=this.g_Am().g_kX();this.g_lB=new g_bA.g_ly(g_bA.g_ls.g_lx(n,"instancedestroy",g=>this.g_asD(g.g_Ns)),g_bA.g_ls.g_lx(n,"afterload",()=>this.g_asE()),g_bA.g_ls.g_lx(n,"suspend",()=>this.g_anl()),g_bA.g_ls.g_lx(n,"resume",()=>this.g_anm())),this.g_zM.g_ahq(this.g_Ym("create-audio-context",{preloadList:this.g_zM.g_ae_().g_Bb().map(g=>({originalUrl:g.g_Bc,url:g.url,type:g.type,fileSize:g.fileSize})),isWKWebView:this.g_zM.g_ahr(),timeScaleMode:this.g_asg,latencyHint:t,panningModel:this.g_asi,distanceModel:this.g_asj,refDistance:this.g_asn,maxDistance:this.g_aso,rolloffFactor:this.g_asp,listenerPos:[this.g_ask,this.g_asl,this.g_asm]}).then(g=>{this.g_asu=g.sampleRate})),this.g_Yp()}g_eN(){this.g_asq=null,super.g_eN()}g_asD(g){this.g_asq===g&&(this.g_asq=null)}g_anq(g){return Math.pow(10,g/20)}g_anr(g){const _=this.g_anq(g);return isFinite(_)?Math.max(Math.min(_,1),0):0}g_ans(g){return 20*(Math.log(g)/2.302585092994046)}g_ant(g){return this.g_ans(Math.max(Math.min(g,1),0))}g_anl(){this.g_anc||this.g_Yk("set-suspended",{isSuspended:!0})}g_anm(){this.g_anc||this.g_Yk("set-suspended",{isSuspended:!1})}g_amW(g){const _=g.tickCount,e=this.g_asy.filter(g=>g.hasOwnProperty("placeholder")&&g.placeholder>_);this.g_asy=g.audioInstances,this.g_asA=g.analysers,0<e.length&&g_bA.g_eG(this.g_asy,e)}g_asB(g){this.g_asz=g.fxstate}g_asF(g){for(const _ of this.g_asy)if(g_bA.g_ea(_.tag,g))return _;return null}g_asG(g){return this.g_asy.some(_=>g_bA.g_ea(g,_.tag)&&_.isPlaying)}g_asH(g,_,e,a){this.g_asG(g)||this.g_asy.push({tag:g,duration:0,volume:a,isPlaying:!0,playbackTime:0,playbackRate:1,uid:-1,bufferOriginalUrl:"",bufferUrl:"",bufferType:"",isMusic:_,isLooping:e,isMuted:!1,resumePosition:0,pan:null,placeholder:this.g_zM.g_aix()})}async g_asC(g){const _=g.type;this.g_asf=g.tag,"ended"===_?await this.g_Gi(g_bA.g_Gm.Audio.g_Gk.g_asI):"fade-ended"===_&&(await this.g_Gi(g_bA.g_Gm.Audio.g_Gk.g_asJ))}g_Jv(){const g={timeScale:this.g_zM.g_LA(),gameTime:this.g_zM.g_EK(),instPans:this.g_asK(),tickCount:this.g_zM.g_aix()};if(this.g_asq){const _=this.g_asq.g_Bv();this.g_ask=_.g_Gw(),this.g_asl=_.g_Gx(),g.listenerPos=[this.g_ask,this.g_asl,this.g_asm]}this.g_Yk("tick",g)}g_asL(_,t,n,r,a){if(0===n)return[_,t];const e=Math.sin(n),d=Math.cos(n);_-=r,t-=a;const g=_*e,o=t*e,i=_*d,u=t*d;return _=i-o,t=u+g,_+=r,t+=a,[_,t]}g_asK(){return this.g_asy.filter(g=>-1!==g.uid).map(g=>this.g_zM.g_JP(g.uid)).filter(g=>g).map(g=>{const _=g.g_Bv(),a=_.g_CN().g_DJ(),[t,n]=this.g_asL(_.g_Gw(),_.g_Gx(),-a,this.g_ask,this.g_asl);return{uid:g.g_CJ(),x:t,y:n,angle:_.g_DJ()-a}})}g_asM(g,_){for(const e of this.g_asA)if(e.index===_&&g_bA.g_ea(e.tag,g))return e;return null}g_asN(g){this.g_asv.set(g,(this.g_asv.get(g)||0)+1)}g_asO(g){return!g.hasOwnProperty("placeholder")&&3!==this.g_ash&&!(g.isMusic&&1===this.g_ash)&&!!(g.isMusic||2!==this.g_ash)}g_Fe(){return{isSilent:this.g_ast,masterVolume:this.g_ass,listenerZ:this.g_asm,listenerUid:this.g_asq?this.g_asq.g_CJ():-1,playing:this.g_asy.filter(g=>this.g_asO(g)),effects:this.g_asz,analysers:this.g_asA}}g_Fg(g){this.g_ast=g.isSilent,this.g_ass=g.masterVolume,this.g_asm=g.listenerZ,this.g_asq=null,this.g_asr=g.listenerUid,this.g_asy=g.playing,this.g_asz=g.effects,this.g_asA=g.analysers}g_asE(){if(-1!==this.g_asr&&(this.g_asq=this.g_zM.g_JP(this.g_asr),this.g_asr=-1,this.g_asq)){const g=this.g_asq.g_Bv();this.g_ask=g.g_Gw(),this.g_asl=g.g_Gx()}for(const g of this.g_asy){const _=this.g_zM.g_ae_().g_Ba(g.bufferOriginalUrl);_?(g.bufferUrl=_.url,g.bufferType=_.type):g.bufferUrl=null}for(const g of Object.values(this.g_asz))for(const _ of g)if(_.hasOwnProperty("bufferOriginalUrl")){const g=this.g_zM.g_ae_().g_Ba(_.bufferOriginalUrl);g&&(_.bufferUrl=g.url,_.bufferType=g.type)}this.g_Yk("load-state",{saveLoadMode:this.g_ash,timeScale:this.g_zM.g_LA(),gameTime:this.g_zM.g_EK(),listenerPos:[this.g_ask,this.g_asl,this.g_asm],isSilent:this.g_ast,masterVolume:this.g_ass,playing:this.g_asy.filter(g=>null!==g.bufferUrl),effects:this.g_asz})}g_Yt(){var g=Math.round;const _=[];for(const[g,e]of Object.entries(this.g_asz))_.push({name:"$"+g,value:e.map(g=>g.type).join(", ")});return[{title:"plugins.audio.debugger.tag-effects",properties:_},{title:"plugins.audio.debugger.currently-playing",properties:[{name:"plugins.audio.debugger.currently-playing-count",value:this.g_asy.length},...this.g_asy.map((_,e)=>({name:"$#"+e,value:`${_.bufferOriginalUrl} ("${_.tag}") ${g(10*_.playbackTime)/10} / ${g(10*_.duration)/10}`}))]}]}}}"use strict",g_bA.g_Gm.Audio.g_Gk={g_asI(g){return g_bA.g_ea(this.g_asf,g)},g_asJ(g){return g_bA.g_ea(this.g_asf,g)},g_asP(){return this.g_asx===this.g_asw},g_asQ(){return!0},g_asR(){return this.g_ast},g_asS(){for(const g of this.g_asy)if(g.isPlaying)return!0;return!1},g_asT(g){return this.g_asG(g)}},"use strict";{const _=["lowpass","highpass","bandpass","lowshelf","highshelf","peaking","notch","allpass"];g_bA.g_Gm.Audio.g_VT={g_Jt(g,_,a,t){if(!this.g_ast){const n=g[1],e=this.g_zM.g_ae_().g_Ba(g[0]);e&&(this.g_Yk("play",{originalUrl:g[0],url:e.url,type:e.type,isMusic:n,tag:t.toLowerCase(),isLooping:0!==_,vol:this.g_anr(a),pos:0,off:this.g_ase,trueClock:!!self.C3_GetAudioContextCurrentTime}),this.g_asH(t.toLowerCase(),n,0!==_,this.g_anr(a)),this.g_ase=0)}},g_asU(_,a,t,n,r,e,d,g,o,i){if(!this.g_ast){const u=_[1],s=this.g_zM.g_ae_().g_Ba(_[0]);s&&(this.g_Yk("play",{originalUrl:_[0],url:s.url,type:s.type,isMusic:u,tag:i.toLowerCase(),isLooping:0!==a,vol:this.g_anr(t),pos:0,off:this.g_ase,trueClock:!!self.C3_GetAudioContextCurrentTime,panning:{x:n,y:r,angle:g_bA.g_eS(e),innerAngle:g_bA.g_eS(d),outerAngle:g_bA.g_eS(g),outerGain:this.g_anr(o)}}),this.g_asH(i.toLowerCase(),u,0!==a,this.g_anr(t)),this.g_ase=0)}},g_asV(_,a,t,n,r,e,o,g){if(!this.g_ast&&n){const u=n.g_VN();if(u&&u.g_Bv()){const i=u.g_Bv(),d=i.g_CN().g_DJ(),[s,f]=this.g_asL(i.g_Gw(),i.g_Gx(),-d,this.g_ask,this.g_asl),l=_[1],c=this.g_zM.g_ae_().g_Ba(_[0]);c&&(this.g_Yk("play",{originalUrl:_[0],url:c.url,type:c.type,isMusic:l,tag:g.toLowerCase(),isLooping:0!==a,vol:this.g_anr(t),pos:0,off:this.g_ase,trueClock:!!self.C3_GetAudioContextCurrentTime,panning:{x:s,y:f,angle:i.g_DJ()-d,innerAngle:g_bA.g_eS(r),outerAngle:g_bA.g_eS(e),outerGain:this.g_anr(o),uid:u.g_CJ()}}),this.g_asH(g.toLowerCase(),l,0!==a,this.g_anr(t)),this.g_ase=0)}}},g_asW(_,a,t,n,i){if(!this.g_ast){const e=1===_,r=this.g_zM.g_ae_().g_Ba(a);r&&(this.g_Yk("play",{originalUrl:a,url:r.url,type:r.type,isMusic:e,tag:i.toLowerCase(),isLooping:0!==t,vol:this.g_anr(n),pos:0,off:this.g_ase,trueClock:!!self.C3_GetAudioContextCurrentTime}),this.g_asH(i.toLowerCase(),e,0!==t,this.g_anr(n)),this.g_ase=0)}},g_asX(_,a,t,n,r,e,d,g,o,i,u){if(!this.g_ast){const s=1===_,l=this.g_zM.g_ae_().g_Ba(a);l&&(this.g_Yk("play",{originalUrl:a,url:l.url,type:l.type,isMusic:s,tag:u.toLowerCase(),isLooping:0!==t,vol:this.g_anr(n),pos:0,off:this.g_ase,trueClock:!!self.C3_GetAudioContextCurrentTime,panning:{x:r,y:e,angle:g_bA.g_eS(d),innerAngle:g_bA.g_eS(g),outerAngle:g_bA.g_eS(o),outerGain:this.g_anr(i)}}),this.g_asH(u.toLowerCase(),s,0!==t,this.g_anr(n)),this.g_ase=0)}},g_asY(_,a,t,r,n,d,u,g,s){if(!this.g_ast&&!this.g_ast&&n){const i=n.g_VN();if(i&&i.g_Bv()){const f=i.g_Bv(),e=f.g_CN().g_DJ(),[c,l]=this.g_asL(f.g_Gw(),f.g_Gx(),-e,this.g_ask,this.g_asl),p=1===_,n=this.g_zM.g_ae_().g_Ba(a);n&&(this.g_Yk("play",{originalUrl:a,url:n.url,type:n.type,isMusic:p,tag:s.toLowerCase(),isLooping:0!==t,vol:this.g_anr(r),pos:0,off:this.g_ase,trueClock:!!self.C3_GetAudioContextCurrentTime,panning:{x:c,y:l,angle:f.g_DJ()-e,innerAngle:g_bA.g_eS(d),outerAngle:g_bA.g_eS(u),outerGain:this.g_anr(g),uid:i.g_CJ()}}),this.g_asH(s.toLowerCase(),p,0!==t,this.g_anr(r)),this.g_ase=0)}}},g_anC(g,_){this.g_Yk("set-looping",{tag:g.toLowerCase(),isLooping:0===_})},g_anD(g,_){this.g_Yk("set-muted",{tag:g.toLowerCase(),isMuted:0===_})},g_anE(g,_){this.g_Yk("set-volume",{tag:g.toLowerCase(),vol:this.g_anr(_)})},g_asZ(g,_,e,a){this.g_Yk("fade-volume",{tag:g.toLowerCase(),vol:this.g_anr(_),duration:e,stopOnEnd:0===a})},g_as_(g){const _=g[1],e=this.g_zM.g_ae_().g_Ba(g[0]);e&&(this.g_asw++,this.g_Ym("preload",{originalUrl:g[0],url:e.url,type:e.type,isMusic:_}).then(()=>this.g_asx++))},g_as$(g,_){const e=this.g_zM.g_ae_().g_Ba(_);e&&(this.g_asw++,this.g_Ym("preload",{originalUrl:_,url:e.url,type:e.type,isMusic:1===g}).then(()=>this.g_asx++))},g_Jq(g,_){this.g_Yk("set-playback-rate",{tag:g.toLowerCase(),rate:Math.max(_,0)})},g_Jk(g){this.g_Yk("stop",{tag:g.toLowerCase()})},g_ata(){this.g_Yk("stop-all")},g_atb(g,_){this.g_Yk("set-paused",{tag:g.toLowerCase(),paused:0===_})},g_atc(g,_){this.g_Yk("seek",{tag:g.toLowerCase(),pos:_})},g_atd(g){2===g&&(g=this.g_ast?1:0),g=0===g,this.g_ast===g||(this.g_ast=g,this.g_Yk("set-silent",{isSilent:g}))},g_ate(g){const _=this.g_anr(g);this.g_ass===_||(this.g_ass=_,this.g_Yk("set-master-volume",{vol:_}))},g_atf(a,t,n,r,e,d,g){a=a.toLowerCase();const o=_[t];this.g_asN(a),this.g_Yk("add-effect",{type:"filter",tag:a,params:[o,n,r,e,d,g_bA.g_eQ(g/100,0,1)]})},g_atg(g,_,e,t){g=g.toLowerCase(),this.g_asN(g),this.g_Yk("add-effect",{type:"delay",tag:g,params:[_,this.g_anr(e),g_bA.g_eQ(t/100,0,1)]})},g_ath(g,_,t,n,i,e){g=g.toLowerCase(),this.g_asN(g),this.g_Yk("add-effect",{type:"flanger",tag:g,params:[_/1e3,t/1e3,n,i/100,g_bA.g_eQ(e/100,0,1)]})},g_ati(_,t,n,i,r,e,d){_=_.toLowerCase(),this.g_asN(_),this.g_Yk("add-effect",{type:"phaser",tag:_,params:[t,n,i,r,e,g_bA.g_eQ(d/100,0,1)]})},g_atj(g,_,t,n){g=g.toLowerCase();const i=this.g_zM.g_ae_().g_Ba(_[0]);i&&(this.g_asN(g),this.g_Yk("add-effect",{type:"convolution",tag:g,bufferOriginalUrl:_[0],bufferUrl:i.url,bufferType:i.type,params:[0===t,g_bA.g_eQ(n/100,0,1)]}))},g_atk(g,_){g=g.toLowerCase(),this.g_asN(g),this.g_Yk("add-effect",{type:"gain",tag:g,params:[this.g_anr(_)]})},g_atl(g){g=g.toLowerCase(),this.g_asN(g),this.g_Yk("add-effect",{type:"gain",tag:g,params:[0]})},g_atm(g,_,e){g=g.toLowerCase(),this.g_asN(g),this.g_Yk("add-effect",{type:"tremolo",tag:g,params:[_,g_bA.g_eQ(e/100,0,1)]})},g_atn(g,_,e){g=g.toLowerCase(),this.g_asN(g),this.g_Yk("add-effect",{type:"ringmod",tag:g,params:[_,g_bA.g_eQ(e/100,0,1)]})},g_ato(g,_,t,n,i,e){g=g.toLowerCase(),this.g_asN(g),this.g_Yk("add-effect",{type:"distortion",tag:g,params:[this.g_anq(_),this.g_anq(t),n,this.g_anq(i),g_bA.g_eQ(e/100,0,1)]})},g_atp(g,_,t,n,i,e){g=g.toLowerCase(),this.g_asN(g),this.g_Yk("add-effect",{type:"compressor",tag:g,params:[_,t,n,i/1e3,e/1e3]})},g_atq(g,_,e){g=g.toLowerCase(),this.g_asN(g),this.g_Yk("add-effect",{type:"analyser",tag:g,params:[_,e]})},g_atr(g){g=g.toLowerCase(),this.g_asv.set(g,0),this.g_Yk("remove-effects",{tag:g}),this.g_asz={}},g_ats(g,_,a,t,n,e){this.g_Yk("set-effect-param",{tag:g.toLowerCase(),index:Math.floor(_),param:a,value:t,ramp:n,time:e})},g_att(g){if(g){const _=g.g_VN();_&&_.g_Bv()&&(this.g_asq=_)}},g_atu(g){this.g_asm=g},g_atv(g){this.g_ase=Math.max(g,0)},g_atw(g){const _=g[1],e=this.g_zM.g_ae_().g_Ba(g[0]);e&&this.g_Yk("unload",{url:e.url,type:e.type,isMusic:_})},g_atx(g,_){const e=this.g_zM.g_ae_().g_Ba(_);e&&this.g_Yk("unload",{url:e.url,type:e.type,isMusic:1===g})},g_aty(){this.g_Yk("unload-all")}}}"use strict",g_bA.g_Gm.Audio.g_TD={g_anH(g){const _=this.g_asF(g);return _?_.duration:0},g_anG(g){const _=this.g_asF(g);return _?_.playbackTime:0},g_atz(g){const _=this.g_asF(g);return _?_.playbackRate:0},g_anI(g){const _=this.g_asF(g);return _?this.g_ant(_.volume):0},g_atA(){return this.g_ant(this.g_ass)},g_atB(g){return this.g_asv.get(g.toLowerCase())||0},g_atC(g,_){const e=this.g_asM(g,Math.floor(_));return e?e.binCount:0},g_atD(g,_,a){var t=Math.floor;const n=this.g_asM(g,t(_));return n?(a=t(a),0>a||a>=n.binCount?0:n.freqBins[a]):0},g_atE(g,_){const e=this.g_asM(g,Math.floor(_));return e?e.peak:0},g_atF(g,_){const e=this.g_asM(g,Math.floor(_));return e?e.rms:0},g_atG(){return this.g_asu},g_atH(){return self.C3_GetAudioContextCurrentTime?self.C3_GetAudioContextCurrentTime():performance.now()/1e3}},"use strict",g_bA.g_ZA.g_ZL=class extends g_bA.g_Za{constructor(g){super(g)}g_eN(){super.g_eN()}},"use strict",g_bA.g_ZA.g_ZL.g_$A=class extends g_bA.g_Zf{constructor(g){super(g)}g_eN(){super.g_eN()}g_XI(){}},"use strict";{const g=new Set;g_bA.g_ZA.g_ZL.g_HR=class extends g_bA.g_Zj{constructor(g,_){super(g),this.g_atI(!0),_&&(this.g_atI(_[0]),this.g_Nf(_[1]))}g_eN(){super.g_eN()}g_atI(g){this.g_VH.g_Ve().set("solidEnabled",!!g)}g_atJ(){return this.g_VH.g_Ve().get("solidEnabled")}g_Nf(g){const _=this.g_VH.g_Ve();if(!g.trim())return void _.delete("solidTags");let e=_.get("solidTags");e||(e=new Set,_.set("solidTags",e)),e.clear();for(const _ of g.split(" "))_&&e.add(_.toLowerCase())}g_Ng(){return this.g_VH.g_Ve().get("solidTags")||g}g_Fe(){return{e:this.g_atJ()}}g_Fg(g){this.g_atI(g.e)}g_Mp(g){return 0===g?this.g_atJ():void 0}g_Mt(g,_){0===g?this.g_atI(_):void 0}g_Yt(){return[{title:"$"+this.g_Zi().g_q_(),properties:[{name:"behaviors.solid.properties.enabled.name",value:this.g_atJ(),g_aoo:g=>this.g_atI(g)}]}]}}}"use strict",g_bA.g_ZA.g_ZL.g_Gk={g_atJ(){return this.g_atJ()}},"use strict",g_bA.g_ZA.g_ZL.g_VT={g_atI(g){this.g_atI(g)}},"use strict",g_bA.g_ZA.g_ZL.g_TD={},"use strict",g_bA.g_ZA.g_cu=class extends g_bA.g_Za{constructor(g){super(g)}g_eN(){super.g_eN()}},"use strict",g_bA.g_ZA.g_cu.g_$A=class extends g_bA.g_Zf{constructor(g){super(g)}g_eN(){super.g_eN()}g_XI(){}},"use strict";{function _(g,_,a,t,n){return g_bA.g_eQ(g*n+.5*t*n*n,_*n,a*n)}const g=0;g_bA.g_ZA.g_cu.g_HR=class extends g_bA.g_Zj{constructor(_,e){super(_),this.g_atK=null,this.g_atL=!1,this.g_atM=!1,this.g_atN=!1,this.g_atO=!1,this.g_atP=!1,this.g_atQ=!1,this.g_atR=!1,this.g_atS=!1,this.g_atT=!1,this.g_atU=!1,this.g_atV=null,this.g_atW=-1,this.g_atX=0,this.g_atY=0,this.g_atZ=!1,this.g_at_=!1,this.g_at$=!!this.g_zM.g_aiD().g_adc(this.g_VH),this.g_aua=-1,this.g_aub="stopped",this.g_auc=0,this.g_aud=!0,this.g_aue=0,this.g_auf=0,this.g_aug=0,this.g_auh=0,this.g_aui=0,this.g_auj=0,this.g_gV=0,this.g_auk=0,this.g_aul=g_bA.g_eS(90),this.g_aum=330,this.g_aun=1500,this.g_auo=1500,this.g_aup=650,this.g_auq=1e3,this.g_aur=!1,this.g_aus=0,this.g_aut=0,this.g_auu=!0,this.g_auv=0,this.g_auw=!0,e&&(this.g_aum=e[g],this.g_aun=e[1],this.g_auo=e[2],this.g_aup=e[3],this.g_gV=e[4],this.g_auq=e[5],this.g_aur=!!e[6],this.g_aus=e[7]/1e3,this.g_auu=!!e[8],this.g_auw=!!e[9]);const a=this.g_zM.g_kX();this.g_lB=new g_bA.g_ly(g_bA.g_ls.g_lx(a,"instancedestroy",g=>this.g_asD(g.g_Ns)),g_bA.g_ls.g_lx(a,"afterload",()=>this.g_asE())),this.g_auu&&this.g_aux(),this.g_auw&&this.g_Zv(),this.g_auy(),this.g_VH.g_Vf().set("isPlatformBehavior",!0)}g_eN(){this.g_atK&&(this.g_atK.g_eN(),this.g_atK=null),this.g_atV=null,this.g_at$=null,super.g_eN()}g_aux(){if(!this.g_atK){const g=this.g_zM.g_kX();this.g_atK=new g_bA.g_ly(g_bA.g_ls.g_lx(g,"keydown",g=>this.g_aoY(g.data)),g_bA.g_ls.g_lx(g,"keyup",g=>this.g_aoZ(g.data)),g_bA.g_ls.g_lx(g,"window-blur",()=>this.g_ahe()))}}g_auz(){this.g_atK&&(this.g_atK.g_eN(),this.g_atK=null)}g_asD(g){this.g_atV===g&&(this.g_atV=null),this.g_at$===g&&(this.g_at$=null)}g_aoY(g){switch(g.key){case"ArrowLeft":this.g_atL=!0;break;case"ArrowRight":this.g_atM=!0;break;case"ArrowUp":this.g_atN=!0;}}g_aoZ(g){switch(g.key){case"ArrowLeft":this.g_atL=!1;break;case"ArrowRight":this.g_atM=!1;break;case"ArrowUp":this.g_atN=!1,this.g_atO=!1;}}g_ahe(){this.g_atL=!1,this.g_atM=!1,this.g_atN=!1,this.g_atO=!1}g_Fe(){return{ii:this.g_atR,lfx:this.g_atX,lfy:this.g_atY,lfo:this.g_atV?this.g_atV.g_CJ():-1,am:this.g_aub,en:this.g_auw,fall:this.g_auc,ft:this.g_aud,dx:this.g_aue,dy:this.g_auf,ms:this.g_aum,acc:this.g_aun,dec:this.g_auo,js:this.g_aup,g:this.g_gV,g1:this.g_auk,mf:this.g_auq,wof:this.g_at_,woj:this.g_at$?this.g_at$.g_CJ():-1,ga:this.g_aul,edj:this.g_aur,cdj:this.g_atQ,dj:this.g_atP,sus:this.g_aus,dc:this.g_auu,cc:this.g_auv}}g_Fg(g){this.g_atR=g.ii,this.g_atX=g.lfx,this.g_atY=g.lfy,this.g_atW=g.lfo,this.g_aub=g.am;const _=g.en;this.g_auc=g.fall,this.g_aud=g.ft,this.g_aue=g.dx,this.g_auf=g.dy,this.g_aum=g.ms,this.g_aun=g.acc,this.g_auo=g.dec,this.g_aup=g.js,this.g_gV=g.g,this.g_auk=g.g1,this.g_auq=g.mf,this.g_at_=g.wof,this.g_aua=g.woj,this.g_aul=g.ga,this.g_aur=g.edj,this.g_atQ=g.cdj,this.g_atP=g.dj,this.g_aus=g.sus,this.g_auu=g.dc,this.g_auv=g.cc||0,this.g_atL=!1,this.g_atM=!1,this.g_atN=!1,this.g_atO=!1,this.g_atS=!1,this.g_atT=!1,this.g_atU=!1,this.g_aut=0,this.g_auu?this.g_aux():this.g_auz(),this.g_auA(_),this.g_auy()}g_asE(){this.g_atV=-1===this.g_atW?null:this.g_zM.g_JP(this.g_atW),this.g_at$=-1===this.g_aua?null:this.g_zM.g_JP(this.g_aua)}g_auy(){var g=Math.PI,_=Math.sin,e=Math.cos;this.g_aug=e(this.g_aul),this.g_auh=_(this.g_aul),this.g_aui=e(this.g_aul-g/2),this.g_auj=_(this.g_aul-g/2),this.g_aug=g_bA.g_fi(this.g_aug),this.g_auh=g_bA.g_fi(this.g_auh),this.g_aui=g_bA.g_fi(this.g_aui),this.g_auj=g_bA.g_fi(this.g_auj),this.g_auk=this.g_gV,0>this.g_gV&&(this.g_aug*=-1,this.g_auh*=-1,this.g_gV=Math.abs(this.g_gV))}g_auB(){return 0>this.g_gV?-1:1}g_auC(){const _=this.g_VH.g_Bv(),t=this.g_zM.g_aiD(),n=this.g_VH,g=this.g_atV,a=_.g_Gw(),e=_.g_Gx();if(_.g_VJ(this.g_aug,this.g_auh),_.g_CO(),g&&t.g_acP(n,g)&&(!g.g_C$().g_aap()||t.g_abP(g,n)))return _.g_VF(a,e),_.g_CO(),g;else{let i=t.g_ac$(n),r=null;if(i||0!==this.g_auc||(r=t.g_adc(n,!0)),_.g_VF(a,e),_.g_CO(),i)return t.g_acP(n,i)?null:(this.g_atZ=!1,i);if(r&&r.length){let g=0;for(let _=0,a=r.length;_<a;++_)r[g]=r[_],t.g_acP(n,r[_])||++g;if(1<=g)return this.g_atZ=!0,r[0]}return null}}g_Zq(){if(!this.g_auw)return;const _=this.g_zM.g_Lz(this.g_VH);this.g_atN||this.g_atU||(this.g_atO=!1);let a=this.g_atL||this.g_atS,t=this.g_atM||this.g_atT,n=this.g_atN||this.g_atU,r=n&&!this.g_atO;this.g_atS=!1,this.g_atT=!1,this.g_atU=!1,this.g_atR&&(a=!1,t=!1,n=!1,r=!1),n||(this.g_aut=0),this.g_auD();const[o,u,g]=this.g_auE(),s=this.g_auC(),i=this.g_auF();if(i)return;this.g_auG(s,g,o,n),r=this.g_auH(s,r,n),s||this.g_auI(r,n,_),this.g_at_=!!s;const l=this.g_auJ(a,t,_);let f=!1;if(0!==this.g_aue&&(f=this.g_auK(_,l,s,r)),0!==this.g_auf){const g=this.g_auL(_,s);f=f||g}this.g_auM(s,f,r),0<this.g_auc&&this.g_auc--,this.g_at$=this.g_zM.g_aiD().g_adc(this.g_VH)}g_auD(){if(this.g_aud){const g=this.g_VH,_=this.g_zM.g_aiD();(_.g_ac$(g)||_.g_adc(g))&&_.g_ade(g,-this.g_aug,-this.g_auh,4,!0),this.g_aud=!1}}g_auE(){const g=this.g_atV,_=g?g.g_Bv():null;let t=0,n=0,r=!1;if(g&&0===this.g_auf&&(_.g_Gx()!==this.g_atY||_.g_Gw()!==this.g_atX)){const e=this.g_VH,a=e.g_Bv(),d=this.g_zM.g_aiD(),g=_.g_Gw(),o=_.g_Gx();t=g-this.g_atX,n=o-this.g_atY,a.g_VJ(t,n),a.g_CO(),this.g_atX=g,this.g_atY=o,r=!0,d.g_ac$(e)&&d.g_ade(e,-t,-n,2.5*Math.hypot(t,n))}return[t,n,r]}g_auF(){const g=this.g_VH,_=g.g_Bv(),e=this.g_zM.g_aiD(),a=e.g_ac$(g);return!!a&&(g.g_Ve().get("inputPredicted")?(e.g_ade(g,-this.g_aug,-this.g_auh,10,!1),!1):e.g_adg(g,-this.g_aug,-this.g_auh,_.g_oY()/8)?(e.g_acL(g,a),!1):e.g_adg(g,this.g_aui,this.g_auj,_.g_oX()/2)?(e.g_acL(g,a),!1):e.g_adg(g,this.g_aug,this.g_auh,_.g_oY()/2)?(e.g_acL(g,a),!1):!e.g_adh(g,Math.max(_.g_oX(),_.g_oY())/2)||(e.g_acL(g,a),!1))}g_auG(_,a,t,g){const n=this.g_VH,e=this.g_zM.g_aiD();if(_){const r=this.g_aug,d=this.g_auh,g=this.g_aui,o=this.g_auj;if(this.g_atP=!1,this.g_atQ=!1,0<this.g_auf&&(!this.g_at_&&(e.g_adf(n,-r,-d,_,16),this.g_at_=!0),this.g_auf=0),this.g_atV!==_){this.g_atV=_;const g=_.g_Bv();this.g_atX=g.g_Gw(),this.g_atY=g.g_Gx(),e.g_acL(n,_)}else if(a){const _=e.g_ac$(n);_&&(e.g_acL(n,_),0!==t&&(0<t?e.g_ade(n,-g,-o):e.g_ade(n,g,o)),e.g_ade(n,-r,-d))}}else g||(this.g_atQ=!0)}g_auH(_,a,g){if(_&&a||!_&&this.g_aur&&g&&this.g_atQ&&!this.g_atP){const t=this.g_VH,n=t.g_Bv(),i=this.g_zM.g_aiD(),e=n.g_Gw(),r=n.g_Gx();n.g_VJ(-this.g_aug,-this.g_auh),n.g_CO(),i.g_ac$(t)?a=!1:(this.g_aut=this.g_aus,this.g_IS(g_bA.g_ZA.g_cu.g_Gk.g_auN),this.g_aub="jumping",this.g_auf=-this.g_aup,a=!0,_?this.g_atO=!0:this.g_atP=!0),n.g_VF(e,r),n.g_CO()}return a}g_auI(g,_,e){_&&0<this.g_aut?(this.g_auf=-this.g_aup,this.g_aut-=e):(this.g_atV=null,this.g_auf+=this.g_gV*e,this.g_auf>this.g_auq&&(this.g_auf=this.g_auq)),g&&(this.g_atO=!0)}g_auJ(g,_,a){const t=this.g_aun,n=this.g_auo;g===_&&(0>this.g_aue?(this.g_aue+=n*a,0<this.g_aue&&(this.g_aue=0)):0<this.g_aue&&(this.g_aue-=n*a,0>this.g_aue&&(this.g_aue=0)));let e=0;return g&&!_&&(0<this.g_aue?e=-(t+n):e=-t),_&&!g&&(0>this.g_aue?e=t+n:e=t),this.g_aue+=e*a,this.g_aue=g_bA.g_eQ(this.g_aue,-this.g_aum,this.g_aum),e}g_auK(M,a,c,d){var e=Math.abs;const f=this.g_VH,g=f.g_Bv(),h=this.g_zM.g_aiD(),i=this.g_aug,N=this.g_auh,b=this.g_aui,l=this.g_auj,m=this.g_aum;let n=!1,T=g.g_Gw(),L=g.g_Gx();const w=_(this.g_aue,-m,m,a,M)*b,r=_(this.g_aue,-m,m,a,M)*l;g.g_VJ(b*(1<this.g_aue?1:-1)-i,l*(1<this.g_aue?1:-1)-N),g.g_CO();let s=!1;const z=h.g_ac$(f);g.g_VF(T+w,L+r),g.g_CO();let u=h.g_ac$(f);if(!u&&c&&(u=h.g_adc(f),u&&(g.g_VF(T,L),g.g_CO(),h.g_acP(f,u)?(u=null,s=!1):s=!0,g.g_VF(T+w,L+r),g.g_CO())),u){let _=e(this.g_aue*M)+2;z||!h.g_ade(f,-i,-N,_,s,u)?(h.g_acL(f,u),_=Math.max(e(2.5*(this.g_aue*M)),30),h.g_ade(f,b*(0>this.g_aue?1:-1),l*(0>this.g_aue?1:-1),_,!1)?c&&!s&&!this.g_atZ&&(T=g.g_Gw(),L=g.g_Gx(),g.g_VJ(i,N),h.g_ac$(f)?!h.g_ade(f,-i,-N,3,!1)&&(g.g_VF(T,L),g.g_CO()):(g.g_VF(T,L),g.g_CO())):(g.g_VF(T,L),g.g_CO()),!s&&(this.g_aue=0)):!z&&!d&&e(this.g_auf)<e(this.g_aup/4)&&(this.g_auf=0,!c&&(n=!0))}else{const _=this.g_auC();if(c&&!_){const _=Math.ceil(e(this.g_aue*M))+2;T=g.g_Gw(),L=g.g_Gx(),g.g_VJ(i*_,N*_),g.g_CO(),h.g_ac$(f)||h.g_adc(f)?h.g_ade(f,-i,-N,_+2,!0):(g.g_VF(T,L),g.g_CO())}else if(_){if(!c&&this.g_atZ){this.g_atV=_;const g=_.g_Bv();this.g_atX=g.g_Gw(),this.g_atY=g.g_Gx(),this.g_auf=0,n=!0}0===this.g_auf&&h.g_adf(f,-i,-N,_,16)}}return n}g_auL(t,a){var r=Math.abs;const u=this.g_VH,e=u.g_Bv(),s=this.g_zM.g_aiD(),g=this.g_aug,d=this.g_auh;let i=!1,f=e.g_Gw(),c=e.g_Gx();e.g_VJ(_(this.g_auf,-Infinity,this.g_auq,this.g_gV,t)*g,_(this.g_auf,-Infinity,this.g_auq,this.g_gV,t)*d);const l=e.g_Gw(),h=e.g_Gx();e.g_CO();let n=s.g_ac$(u),M=!1;if(!n&&0<this.g_auf&&!a){const g=0<this.g_auc?null:s.g_adc(u,!0);if(g&&g.length){if(this.g_at$){e.g_VF(f,c),e.g_CO();let _=0;for(let e=0,a=g.length;e<a;++e)g[_]=g[e],s.g_acP(u,g[e])||++_;g_bA.g_fU(g,_),e.g_VF(l,h),e.g_CO()}1<=g.length&&(n=g[0])}M=!!n}if(n){s.g_acL(u,n),this.g_aut=0;const _=M?r(2.5*(this.g_auf*t)+10):Math.max(r(2.5*(this.g_auf*t)+10),30);if(!s.g_ade(u,g*(0>this.g_auf?1:-1),d*(0>this.g_auf?1:-1),_,M,n))e.g_VF(f,c),e.g_CO(),this.g_at_=!0,M||(this.g_auf=0);else{this.g_atV=n;const _=n.g_Bv();this.g_atX=_.g_Gw(),this.g_atY=_.g_Gx(),this.g_atZ=M,M&&(i=!0),(0<this.g_auf||0===this.g_auv)&&(this.g_auf=0),0>this.g_auf&&1===this.g_auv&&s.g_adf(u,g,d,n,32)}}return i}g_auM(g,_,e){"falling"!==this.g_aub&&0<this.g_auf&&!g&&(this.g_IS(g_bA.g_ZA.g_cu.g_Gk.g_auO),this.g_aub="falling"),(g||_)&&0<=this.g_auf&&("falling"===this.g_aub||_||e&&0===this.g_auf?(this.g_IS(g_bA.g_ZA.g_cu.g_Gk.g_auP),this.g_aub=0===this.g_aue&&0===this.g_auf?"stopped":"moving"):("stopped"!==this.g_aub&&0===this.g_aue&&0===this.g_auf&&(this.g_IS(g_bA.g_ZA.g_cu.g_Gk.g_auQ),this.g_aub="stopped"),"moving"!==this.g_aub&&(0!==this.g_aue||0!==this.g_auf)&&!e&&(this.g_IS(g_bA.g_ZA.g_cu.g_Gk.g_auR),this.g_aub="moving")))}g_Mp(g){return 0===g?this.g_aum:1===g?this.g_aun:2===g?this.g_auo:3===g?this.g_aup:4===g?this.g_gV:5===g?this.g_auq:6===g?this.g_aur:7===g?1e3*this.g_aus:8===g?this.g_auu:9===g?this.g_auw:void 0}g_Mt(_,e){switch(_){case g:this.g_aum=e;break;case 1:this.g_aun=e;break;case 2:this.g_auo=e;break;case 3:this.g_aup=e;break;case 4:if(this.g_gV===e)return;this.g_gV=e,this.g_auy();break;case 5:this.g_auq=e;break;case 6:this.g_aur=!!e;break;case 7:this.g_aus=e/1e3;break;case 8:this.g_auu=!!e,this.g_auu?this.g_aux():this.g_auz();break;case 9:this.g_auA(e);}}g_Mu(g,_){0!==_&&(0===g?this.g_aum+=_:1===g?this.g_aun+=_:2===g?this.g_auo+=_:3===g?this.g_aup+=_:4===g?(this.g_gV+=_,this.g_auy()):5===g?this.g_auq+=_:7===g?this.g_aus+=_/1e3:void 0)}g_auA(g){g=!!g,this.g_auw===g||(this.g_auw=g,this.g_auw?this.g_Zv():(this.g_Zn(),this.g_atV=null,this.g_atS=!1,this.g_atT=!1,this.g_atU=!1))}g_Yt(){return[{title:"$"+this.g_Zi().g_q_(),properties:[{name:"behaviors.platform.debugger.vector-x",value:this.g_aue,g_aoo:g=>this.g_aue=g},{name:"behaviors.platform.debugger.vector-y",value:this.g_auf,g_aoo:g=>this.g_auf=g},{name:"behaviors.platform.properties.max-speed.name",value:this.g_aum,g_aoo:g=>this.g_aum=g},{name:"behaviors.platform.properties.acceleration.name",value:this.g_aun,g_aoo:g=>this.g_aun=g},{name:"behaviors.platform.properties.deceleration.name",value:this.g_auo,g_aoo:g=>this.g_auo=g},{name:"behaviors.platform.properties.jump-strength.name",value:this.g_aup,g_aoo:g=>this.g_aup=g},{name:"behaviors.platform.properties.gravity.name",value:this.g_gV,g_aoo:g=>this.g_gV=g},{name:"behaviors.platform.debugger.gravity-angle",value:g_bA.g_eT(this.g_aul),g_aoo:g=>this.g_aul=g_bA.g_eS(g)},{name:"behaviors.platform.properties.max-fall-speed.name",value:this.g_auq,g_aoo:g=>this.g_auq=g},{name:"behaviors.platform.debugger.animation-mode",value:["behaviors.platform.debugger.anim-"+this.g_aub]},{name:"behaviors.platform.properties.enabled.name",value:this.g_auw,g_aoo:g=>this.g_auA(g)}]}]}}}"use strict",g_bA.g_ZA.g_cu.g_Gk={g_auS(){return 0!==this.g_aue||0!==this.g_auf},g_auT(g,_){return g_bA.g_gk(Math.hypot(this.g_aue,this.g_auf),g,_)},g_auU(){if(0!==this.g_auf)return!1;const _=this.g_VH,a=this.g_Bv(),t=this.g_zM.g_aiD(),n=a.g_Gw(),i=a.g_Gx();a.g_VJ(this.g_aug,this.g_auh),a.g_CO();const e=t.g_ac$(_);let r=null;if(e||0!==this.g_auc||(r=t.g_adc(_,!0)),a.g_VF(n,i),a.g_CO(),e)return!t.g_acP(_,e);if(r&&r.length){let g=0;for(let a=0,n=r.length;a<n;++a)r[g]=r[a],t.g_acP(_,r[a])||g++;if(1<=g)return!0}return!1},g_auV(_){const a=this.g_VH,t=this.g_Bv(),n=this.g_zM.g_aiD(),i=t.g_Gw(),e=t.g_Gx();if(0===_?t.g_VJ(2*-this.g_aui,2*-this.g_auj):t.g_VJ(2*this.g_aui,2*this.g_auj),t.g_CO(),!n.g_ac$(a))return t.g_VF(i,e),t.g_CO(),!1;t.g_VJ(3*-this.g_aug,3*-this.g_auh),t.g_CO();const r=!!n.g_ac$(a);return t.g_VF(i,e),t.g_CO(),r},g_auW(){return 0>this.g_auf},g_auX(){return 0<this.g_auf},g_auY(){return this.g_aur},g_auN(){return!0},g_auO(){return!0},g_auQ(){return!0},g_auR(){return!0},g_auP(){return!0},g_atJ(){return this.g_auw}},"use strict",g_bA.g_ZA.g_cu.g_VT={g_auZ(g){this.g_atR=!!g},g_au_(g){this.g_aum=Math.max(g,0)},g_au$(g){this.g_aun=Math.max(g,0)},g_ava(g){this.g_auo=Math.max(g,0)},g_avb(g){this.g_aup=Math.max(g,0)},g_avc(g){this.g_auq=Math.max(g,0)},g_avd(g){if(this.g_auk!==g){this.g_gV=g,this.g_auy();const _=this.g_zM.g_aiD(),e=this.g_Bv();_.g_ac$(this.g_VH)&&(_.g_ade(this.g_VH,this.g_aug,this.g_auh,10),e.g_VJ(2*this.g_aug,2*this.g_auh),e.g_CO()),this.g_atV=null}},g_ave(g){this.g_auw&&(0===g?this.g_atS=!0:1===g?this.g_atT=!0:2===g?this.g_atU=!0:void 0)},g_avf(g){this.g_aue=g},g_avg(g){this.g_auf=g},g_avh(g){g=g_bA.g_eR(g_bA.g_eS(g)),this.g_aul===g||(this.g_aul=g,this.g_auy(),this.g_atV=null)},g_atI(g){this.g_auA(0!==g)},g_avi(){const g=this.g_Bv(),_=g.g_Gw(),e=g.g_Gx();g.g_VJ(this.g_aug,this.g_auh),g.g_CO();const a=this.g_zM.g_aiD().g_adc(this.g_VH,!1);g.g_VF(_,e),g.g_CO(),a&&(this.g_auc=3,this.g_atV=null)},g_avj(g){this.g_aur=0!==g},g_avk(g){this.g_aus=g/1e3},g_avl(g){this.g_auv=g}},"use strict",g_bA.g_ZA.g_cu.g_TD={g_avm(){return Math.hypot(this.g_aue,this.g_auf)},g_avn(){return this.g_aum},g_avo(){return this.g_aun},g_avp(){return this.g_auo},g_avq(){return this.g_aup},g_avr(){return this.g_gV},g_avs(){return g_bA.g_eT(this.g_aul)},g_avt(){return this.g_auq},g_avu(){return g_bA.g_eT(Math.atan2(this.g_auf,this.g_aue))},g_avv(){return this.g_aue},g_avw(){return this.g_auf},g_avx(){return 1e3*this.g_aus}},"use strict",g_bA.g_ZA.g_avy=class extends g_bA.g_Za{constructor(g){super(g),this.g_avz=0,this.g_avA=0,this.g_avB=0,this.g_avC=0}g_eN(){super.g_eN()}g_avD(g){this.g_avz=g}g_avE(){return this.g_avz}g_avF(g){this.g_avA=g}g_avG(){return this.g_avA}g_avH(g){this.g_avB=g}g_avI(){return this.g_avB}g_avJ(g){this.g_avC=g}g_avK(){return this.g_avC}},"use strict",g_bA.g_ZA.g_avy.g_$A=class extends g_bA.g_Zf{constructor(g){super(g)}g_eN(){super.g_eN()}g_XI(){}},"use strict",g_bA.g_ZA.g_avy.g_HR=class extends g_bA.g_Zj{constructor(g,_){super(g),this.g_auw=!0,_&&(this.g_auw=_[0]),this.g_auw&&this.g_Yr()}g_eN(){super.g_eN()}g_Fe(){const g=this.g_Zh();return{e:this.g_auw,smg:g.g_avE(),ss:g.g_avG(),se:g.g_avI(),smd:g.g_avK()}}g_Fg(g){const _=this.g_Zh();_.g_avD(g.smg),_.g_avF(g.ss),_.g_avH(g.se),_.g_avJ(g.smd),this.g_auw=g.e,this.g_auw?this.g_Yr():this.g_Yd()}g_atJ(){return this.g_auw}g_Yo(){if(!this.g_atJ())return;const _=this.g_zM.g_Lz(this.g_VH),t=this.g_Zh(),n=t.g_Gp();let r=0,o=0,u=0;for(const g of n){const _=g.g_aaY(g_bA.g_ZA.g_avy);if(!_||!_.g_LU().g_atJ())continue;const e=g.g_Bv();r+=e.g_Gw(),o+=e.g_Gx(),++u}const a=this.g_VH.g_Bv().g_Dk(),g=this.g_zM.g_EK();let s=0,l=0;if(g>=t.g_avG()&&g<t.g_avI()){let _=t.g_avE()*Math.min(this.g_zM.g_LA(),1);0===t.g_avK()&&(_*=1-(g-t.g_avG())/(t.g_avI()-t.g_avG()));const n=2*(this.g_zM.g_ahI()*Math.PI),e=this.g_zM.g_ahI()*_;s=Math.cos(n)*e,l=Math.sin(n)*e}a.g_FA(r/u+s),a.g_FB(o/u+l)}g_Mp(g){return 0===g?this.g_auw:void 0}g_Mt(g,_){0===g?(this.g_auw=!!_,this.g_auw?this.g_Yr():this.g_Yd()):void 0}},"use strict",g_bA.g_ZA.g_avy.g_Gk={g_atJ(){return this.g_auw}},"use strict",g_bA.g_ZA.g_avy.g_VT={g_avL(g,_,e){const a=this.g_Zh();a.g_avD(g),a.g_avF(this.g_zM.g_EK()),a.g_avH(this.g_zM.g_EK()+_),a.g_avJ(e)},g_atI(g){this.g_auw=0!==g,this.g_auw?this.g_Yr():this.g_Yd()}},"use strict",g_bA.g_ZA.g_avy.g_TD={},"use strict",g_bA.g_ZA.g_avM=class extends g_bA.g_Za{constructor(g){super(g)}g_eN(){super.g_eN()}},"use strict",g_bA.g_ZA.g_avM.g_$A=class extends g_bA.g_Zf{constructor(g){super(g)}g_eN(){super.g_eN()}g_XI(){}},"use strict",g_bA.g_ZA.g_avM.g_HR=class extends g_bA.g_Zj{constructor(g){super(g),this.g_avN=0,this.g_avO=0,this.g_avP=0,this.g_avQ=0,this.g_avR=0,this.g_Yp()}g_eN(){super.g_eN()}g_Fe(){return{on:this.g_avN,off:this.g_avO,s:this.g_avP,stl:this.g_avQ,tl:this.g_avR}}g_Fg(g){this.g_avN=g.on,this.g_avO=g.off,this.g_avP=g.s,this.g_avQ=g.stl,this.g_avR=null===g.tl?1/0:g.tl}g_Jv(){if(!(0>=this.g_avR)){const g=this.g_zM.g_Lz(this.g_VH);return this.g_avR-=g,0>=this.g_avR?(this.g_avR=0,this.g_VH.g_Bv().g_Ds(!0),this.g_zM.g_Dt(),this.g_Ye(g_bA.g_ZA.g_avM.g_Gk.g_avS)):void(this.g_avQ-=g,0>=this.g_avQ&&(0===this.g_avP?(this.g_VH.g_Bv().g_Ds(!1),this.g_avP=1,this.g_avQ+=this.g_avO):(this.g_VH.g_Bv().g_Ds(!0),this.g_avP=0,this.g_avQ+=this.g_avN),this.g_zM.g_Dt()))}}g_Yt(){return[{title:"$"+this.g_Zi().g_q_(),properties:[{name:"behaviors.flash.debugger.on-time",value:this.g_avN,g_aoo:g=>this.g_avN=g},{name:"behaviors.flash.debugger.off-time",value:this.g_avO,g_aoo:g=>this.g_avO=g},{name:"behaviors.flash.debugger.is-flashing",value:0<this.g_avR},{name:"behaviors.flash.debugger.time-left",value:this.g_avR}]}]}},"use strict",g_bA.g_ZA.g_avM.g_Gk={g_avT(){return 0<this.g_avR},g_avS(){return!0}},"use strict",g_bA.g_ZA.g_avM.g_VT={g_avM(g,_,e){this.g_avN=g,this.g_avO=_,this.g_avP=1,this.g_avQ=_,this.g_avR=e,this.g_VH.g_Bv().g_Ds(!1),this.g_zM.g_Dt()},g_avU(){this.g_avR=0,this.g_VH.g_Bv().g_Ds(!0),this.g_zM.g_Dt()}},"use strict",g_bA.g_ZA.g_avM.g_TD={},"use strict",g_bA.g_ZA.g_avV=class extends g_bA.g_Za{constructor(g){super(g)}g_eN(){super.g_eN()}},"use strict",g_bA.g_ZA.g_avV.g_$A=class extends g_bA.g_Zf{constructor(g){super(g)}g_eN(){super.g_eN()}g_XI(){}},"use strict";{const _=0;g_bA.g_ZA.g_avV.g_HR=class extends g_bA.g_Zj{constructor(a,t){var n=Math.abs;super(a);const e=this.g_Bv();this.g__i=0,this.g_aun=0,this.g_gV=0,this.g_avW=!1,this.g_avX=!1,this.g_avY=!1,this.g_auw=!0,this.g_aue=0,this.g_auf=0,this.g_arh=e.g_Gw(),this.g_ari=e.g_Gx(),this.g_avZ=e.g_DJ(),this.g_av_=0,this.g_av$=Math.min(n(e.g_oX()),n(e.g_oY())/2),this.g_awa=!1,t&&(this.g__i=t[_],this.g_aun=t[1],this.g_gV=t[2],this.g_avW=!!t[3],this.g_avX=!!t[4],this.g_avY=!!t[5],this.g_auw=!!t[6]);const i=e.g_DJ();this.g_aue=Math.cos(i)*this.g__i,this.g_auf=Math.sin(i)*this.g__i,this.g_auw&&this.g_Yp()}g_eN(){super.g_eN()}g_Fe(){const g={dx:this.g_aue,dy:this.g_auf,lx:this.g_arh,ly:this.g_ari,lka:this.g_avZ,t:this.g_av_};return 0!==this.g_aun&&(g.acc=this.g_aun),0!==this.g_gV&&(g.g=this.g_gV),this.g_avY&&(g.st=this.g_avY),this.g_auw||(g.e=this.g_auw),this.g_avW&&(g.bos=this.g_avW),this.g_avX&&(g.sa=this.g_avX),g}g_Fg(g){this.g_aue=g.dx,this.g_auf=g.dy,this.g_arh=g.lx,this.g_ari=g.ly,this.g_avZ=g.lka,this.g_av_=g.t,this.g_aun=g.hasOwnProperty("acc")?g.acc:0,this.g_gV=g.hasOwnProperty("g")?g.g:0,this.g_avY=!!g.hasOwnProperty("st")&&g.st,this.g_auA(!g.hasOwnProperty("e")||g.e),this.g_avW=!!g.hasOwnProperty("bos")&&g.bos,this.g_avX=!!g.hasOwnProperty("sa")&&g.sa}g_Jv(){var _=Math.sin,t=Math.cos;if(!this.g_auw)return;const n=this.g_zM.g_Lz(this.g_VH),r=this.g_VH.g_Bv();if(r.g_DJ()!==this.g_avZ){const g=r.g_DJ();if(this.g_avX){const e=g_bA.g_eU(0,0,this.g_aue,this.g_auf);this.g_aue=t(g)*e,this.g_auf=_(g)*e}this.g_avZ=g}let e=0,d=0;if(0!==this.g_aun){let g=g_bA.g_eU(0,0,this.g_aue,this.g_auf),a=0;a=0===this.g_aue&&0===this.g_auf?r.g_DJ():g_bA.g_eW(0,0,this.g_aue,this.g_auf),g+=this.g_aun*n,e=t(a)*this.g_aun,d=_(a)*this.g_aun,0>g&&(g=0,e=0,d=0),this.g_aue=t(a)*g,this.g_auf=_(a)*g}if(0!==this.g_gV&&(this.g_auf+=this.g_gV*n,d+=this.g_gV),this.g_arh=r.g_Gw(),this.g_ari=r.g_Gx(),0!==this.g_aue||0!==this.g_auf){const g=this.g_aue*n+.5*e*n*n,o=this.g_auf*n+.5*d*n*n,i=g_bA.g_eU(0,0,g,o);if(this.g_awb(g,o,i),this.g_av_+=i,this.g_avX&&(0!=g||0!=o)){const _=g_bA.g_eW(0,0,g,o);r.g_DI(_),this.g_avZ=r.g_DJ()}if(r.g_CO(),this.g_avW){const e=this.g_zM.g_aiD(),a=e.g_ac$(this.g_VH);if(a){e.g_acL(this.g_VH,a);const i=g_bA.g_eU(0,0,this.g_aue,this.g_auf),g=e.g_adi(this.g_VH,this.g_arh,this.g_ari);this.g_aue=t(g)*i,this.g_auf=_(g)*i,r.g_VJ(this.g_aue*n,this.g_auf*n),r.g_CO(),this.g_avX&&(r.g_DI(g),this.g_avZ=r.g_DJ(),r.g_CO()),e.g_ade(this.g_VH,this.g_aue/i,this.g_auf/i,Math.max(2.5*i*n,30))||e.g_adh(this.g_VH,100)}}}}g_awb(_,t,n){const i=this.g_Bv();if(!this.g_avY||n<=this.g_av$)return i.g_VJ(_,t),i.g_CO(),void(this.g_avY&&this.g_IS(g_bA.g_ZA.g_avV.g_Gk.g_awc));this.g_awa=!1;const e=i.g_Gw(),r=i.g_Gx(),g=g_bA.g_eW(0,0,_,t),d=Math.cos(g)*this.g_av$,a=Math.sin(g)*this.g_av$,o=Math.floor(n/this.g_av$);for(let g=1;g<=o;++g)if(i.g_VF(e+d*g,r+a*g),i.g_CO(),this.g_IS(g_bA.g_ZA.g_avV.g_Gk.g_awc),this.g_VH.g_JN()||this.g_awa)return;i.g_VF(e+_,r+t),i.g_CO(),this.g_IS(g_bA.g_ZA.g_avV.g_Gk.g_awc)}g_Mp(g){return 0===g?this.g__i:1===g?this.g_aun:2===g?this.g_gV:3===g?this.g_avW:4===g?this.g_avX:5===g?this.g_avY:6===g?this.g_auw:void 0}g_Mt(g,a){switch(g){case _:this.g__i=a;const t=this.g_VH.g_Bv(),e=t.g_DJ();this.g_aue=Math.cos(e)*this.g__i,this.g_auf=Math.sin(e)*this.g__i;break;case 1:this.g_aun=a;break;case 2:this.g_gV=a;break;case 3:this.g_avW=!!a;break;case 4:this.g_avX=!!a;break;case 5:this.g_avY=!!a;break;case 6:this.g_auA(a);}}g_Mu(g,a){if(0!==a)switch(g){case _:this.g__i+=a;const t=this.g_VH.g_Bv(),e=t.g_DJ();this.g_aue=Math.cos(e)*this.g__i,this.g_auf=Math.sin(e)*this.g__i;break;case 1:this.g_aun+=a;break;case 2:this.g_gV+=a;}}g_awd(g){const _=g_bA.g_eW(0,0,this.g_aue,this.g_auf);this.g_aue=Math.cos(_)*g,this.g_auf=Math.sin(_)*g}g_auA(g){this.g_auw=!!g,this.g_auw?this.g_Yp():this.g_Yc()}g_Yt(){return[{title:"$"+this.g_Zi().g_q_(),properties:[{name:"behaviors.bullet.debugger.vector-x",value:this.g_aue,g_aoo:g=>this.g_aue=g},{name:"behaviors.bullet.debugger.vector-y",value:this.g_auf,g_aoo:g=>this.g_auf=g},{name:"behaviors.bullet.properties.speed.name",value:Math.hypot(this.g_aue,this.g_auf),g_aoo:g=>this.g_awd(g)},{name:"behaviors.bullet.debugger.angle-of-motion",value:g_bA.g_eT(Math.atan2(this.g_auf,this.g_aue))},{name:"behaviors.bullet.properties.gravity.name",value:this.g_gV,g_aoo:g=>this.g_gV=g},{name:"behaviors.bullet.properties.acceleration.name",value:this.g_aun,g_aoo:g=>this.g_aun=g},{name:"behaviors.bullet.debugger.distance-travelled",value:this.g_av_},{name:"behaviors.bullet.properties.enabled.name",value:this.g_auw,g_aoo:g=>this.g_auA(g)}]}]}}}"use strict",g_bA.g_ZA.g_avV.g_Gk={g_auT(g,_){const e=Math.sqrt(this.g_aue*this.g_aue+this.g_auf*this.g_auf);return g_bA.g_gk(e,g,_)},g_awe(g,_){return g_bA.g_gk(this.g_av_,g,_)},g_awc(){return!0},g_atJ(){return this.g_auw}},"use strict",g_bA.g_ZA.g_avV.g_VT={g_awf(g){this.g_awd(g)},g_au$(g){this.g_aun=g},g_avd(g){this.g_gV=g},g_awg(g){g=g_bA.g_eS(g);const _=g_bA.g_eU(0,0,this.g_aue,this.g_auf);this.g_aue=Math.cos(g)*_,this.g_auf=Math.sin(g)*_},g_awh(g){var _=Math.max;if(g){const t=g.g_VN(this.g_VH);if(t){const n=this.g_VH.g_Bv(),a=this.g_zM.g_aiD(),i=this.g_zM.g_Lz(this.g_VH),e=g_bA.g_eU(0,0,this.g_aue,this.g_auf),r=a.g_adi(this.g_VH,this.g_arh,this.g_ari,t);this.g_aue=Math.cos(r)*e,this.g_auf=Math.sin(r)*e,n.g_VJ(this.g_aue*i,this.g_auf*i),n.g_CO(),this.g_avX&&(n.g_DI(r),this.g_avZ=n.g_DJ(),n.g_CO()),0!==e&&(this.g_avW?!a.g_ade(this.g_VH,this.g_aue/e,this.g_auf/e,_(2.5*e*i,30))&&a.g_adh(this.g_VH,100):a.g_add(this.g_VH,this.g_aue/e,this.g_auf/e,_(2.5*e*i,30),t))}}},g_awi(g){this.g_av_=g},g_atI(g){this.g_auA(g)},g_awj(){this.g_awa=!0}},"use strict",g_bA.g_ZA.g_avV.g_TD={g_avm(){return g_bA.g_fi(g_bA.g_eU(0,0,this.g_aue,this.g_auf))},g_avo(){return this.g_aun},g_awk(){return g_bA.g_eT(g_bA.g_eW(0,0,this.g_aue,this.g_auf))},g_awl(){return this.g_av_},g_avr(){return this.g_gV}},"use strict",g_bA.g_ZA.g_awm=class extends g_bA.g_Za{constructor(g){super(g)}g_eN(){super.g_eN()}},"use strict",g_bA.g_ZA.g_awm.g_$A=class extends g_bA.g_Zf{constructor(g){super(g)}g_eN(){super.g_eN()}g_XI(){}},"use strict",g_bA.g_ZA.g_awm.g_awn=class{constructor(g,_,e,a){this.g_awo=g_bA.g_eM(g_bA.g_lE),this.g_awo.Set(g||0),this.g_awp=g_bA.g_eM(g_bA.g_lE),this.g_awp.Set(_||0),this.g__z=e||0,this.g_awq=!!a,this.g_anh=!1}g_awr(){return this.g_awo.g_bR()}g_ID(){return this.g_awp.g_bR()}g__F(){return this.g__z}g_atb(g){this.g_anh=!!g}g_anx(){return this.g_anh}g_jL(g){this.g_awo.g_jL(g),this.g_awp.g_jL(g)}g_aws(){return this.g_awo.g_bR()>=this.g__z}g_BO(){if(this.g_aws())if(this.g_awq)this.g_awo.g_lI(this.g__z);else return!0;return!1}g_Fe(){return{c:this.g_awo.g_bR(),t:this.g_awp.g_bR(),d:this.g__z,r:this.g_awq,p:this.g_anh}}g_Fg(g){this.g_awo.Set(g.c),this.g_awp.Set(g.t),this.g__z=g.d,this.g_awq=!!g.r,this.g_anh=!!g.p}},g_bA.g_ZA.g_awm.g_HR=class extends g_bA.g_Zj{constructor(g){super(g),this.g_awt=new Map}g_eN(){this.g_awt.clear(),super.g_eN()}g_awu(){0<this.g_awt.size?(this.g_Yp(),this.g_Yr()):(this.g_Yc(),this.g_Yd())}g_Fe(){const g={};for(const[_,e]of this.g_awt.entries())g[_]=e.g_Fe();return g}g_Fg(g){this.g_awt.clear();for(const[_,e]of Object.entries(g)){const g=new g_bA.g_ZA.g_awm.g_awn;g.g_Fg(e),this.g_awt.set(_,g)}this.g_awu()}g_Jv(){const g=this.g_zM.g_Lz(this.g_VH);for(const _ of this.g_awt.values())_.g_anx()||_.g_jL(g)}g_Yo(){for(const[g,_]of this.g_awt.entries()){const e=_.g_BO();e&&this.g_awt.delete(g)}}g_Yt(){var g=Math.round;return[{title:"behaviors.timer.debugger.timers",properties:[...this.g_awt.entries()].map(_=>({name:"$"+_[0],value:`${g(10*_[1].g_awr())/10} / ${g(10*_[1].g__F())/10}`}))}]}},"use strict",g_bA.g_ZA.g_awm.g_Gk={g_awv(g){const _=this.g_awt.get(g.toLowerCase());return!!_&&_.g_aws()},g_aww(g){return this.g_awt.has(g.toLowerCase())},g_awx(g){const _=this.g_awt.get(g.toLowerCase());return _&&_.g_anx()}},"use strict",g_bA.g_ZA.g_awm.g_VT={g_awy(g,_,e){const a=new g_bA.g_ZA.g_awm.g_awn(0,0,g,1===_);this.g_awt.set(e.toLowerCase(),a),this.g_awu()},g_awz(g){this.g_awt.delete(g.toLowerCase()),this.g_awu()},g_awA(g,_){const e=this.g_awt.get(g.toLowerCase());e&&e.g_atb(0===_)}},"use strict",g_bA.g_ZA.g_awm.g_TD={g_atH(g){const _=this.g_awt.get(g.toLowerCase());return _?_.g_awr():0},g_awB(g){const _=this.g_awt.get(g.toLowerCase());return _?_.g_ID():0},g_anH(g){const _=this.g_awt.get(g.toLowerCase());return _?_.g__F():0}},"use strict",self.g_aho=function(){return[g_bA.g_Gm.g_amR,g_bA.g_Gm.g_anL,g_bA.g_Gm.g_aoU,g_bA.g_Gm.g_apj,g_bA.g_Gm.Touch,g_bA.g_ZA.g_ZL,g_bA.g_ZA.g_cu,g_bA.g_ZA.g_avy,g_bA.g_ZA.g_avM,g_bA.g_ZA.g_avV,g_bA.g_ZA.g_awm,g_bA.g_Gm.Text,g_bA.g_Gm.g_arO,g_bA.g_Gm.Audio,g_bA.g_Gm.g_Gl.g_Gk.g_Gj,g_bA.g_Gm.Text.g_VT.g_uC,g_bA.g_Gm.g_Gl.g_VT.g_aks,g_bA.g_Gm.g_Gl.g_Gk.g_ajQ,g_bA.g_Gm.g_Gl.g_VT.g_aku,g_bA.g_Gm.g_Gl.g_TD.g_Wd,g_bA.g_Gm.g_amR.g_Gk.g_any,g_bA.g_Gm.g_Gl.g_VT.g_akP,g_bA.g_Gm.Audio.g_VT.g_Jt,g_bA.g_Gm.g_Gl.g_Gk.g_aj$,g_bA.g_Gm.g_amR.g_Gk.g_IX,g_bA.g_Gm.g_amR.g_VT.g_anC,g_bA.g_Gm.g_apj.g_Gk.g_apw,g_bA.g_Gm.g_apj.g_Gk.g_apC,g_bA.g_Gm.g_Gl.g_VT.g_akv,g_bA.g_Gm.Audio.g_VT.g_ata,g_bA.g_Gm.g_aoU.g_Gk.g_ao$,g_bA.g_Gm.g_Gl.g_Gk.g_QR,g_bA.g_ZA.g_cu.g_Gk.g_auU,g_bA.g_ZA.g_cu.g_Gk.g_auS,g_bA.g_Gm.g_anL.g_VT.g_aop,g_bA.g_ZA.g_cu.g_Gk.g_auW,g_bA.g_ZA.g_cu.g_Gk.g_auX,g_bA.g_Gm.g_anL.g_Gk.g_aou,g_bA.g_Gm.g_anL.g_VT.g_WT,g_bA.g_ZA.g_cu.g_Gk.g_auV,g_bA.g_Gm.g_anL.g_Gk.g_WM,g_bA.g_Gm.g_anL.g_Gk.g_WN,g_bA.g_ZA.g_cu.g_VT.g_avc,g_bA.g_Gm.g_anL.g_VT.g_aoG,g_bA.g_ZA.g_cu.g_VT.g_avf,g_bA.g_ZA.g_cu.g_VT.g_avg,g_bA.g_Gm.g_anL.g_VT.g_WQ,g_bA.g_ZA.g_cu.g_VT.g_ave,g_bA.g_ZA.g_cu.g_VT.g_avb,g_bA.g_Gm.g_Gl.g_VT.g_fQ,g_bA.g_Gm.g_Gl.g_Gk.g_aj_,g_bA.g_Gm.g_anL.g_VT.g_aoE,g_bA.g_Gm.g_anL.g_VT.g_WX,g_bA.g_Gm.g_anL.g_Gk.g_WV,g_bA.g_ZA.g_awm.g_VT.g_awy,g_bA.g_Gm.g_Gl.g_VT.g_akt,g_bA.g_Gm.g_anL.g_Gk.g_WW,g_bA.g_ZA.g_awm.g_Gk.g_awv,g_bA.g_Gm.g_anL.g_Gk.g_VU,g_bA.g_Gm.g_anL.g_TD.g_Wb,g_bA.g_Gm.Text.g_VT.g_arG,g_bA.g_Gm.g_anL.g_Gk.g_aow,g_bA.g_ZA.g_cu.g_VT.g_avd,g_bA.g_Gm.g_aoU.g_Gk.g_apf,g_bA.g_Gm.g_anL.g_VT.g_VD,g_bA.g_Gm.g_anL.g_TD.g_Wc,g_bA.g_Gm.g_Gl.g_Gk.g_Sr,g_bA.g_Gm.g_anL.g_VT.g_V_,g_bA.g_Gm.g_anL.g_VT.g_aoJ,g_bA.g_Gm.g_anL.g_VT.g_xP,g_bA.g_ZA.g_avM.g_VT.g_avM,g_bA.g_Gm.g_anL.g_VT.g_VZ,g_bA.g_Gm.g_anL.g_Gk.g_VV,g_bA.g_Gm.g_anL.g_Gk.g_VW]},"use strict";{function g(g,_){var e=Math.round;if("string"==typeof g||"string"==typeof _){let a,t;return a="number"==typeof g?(e(1e10*g)/1e10).toString():g,t="number"==typeof _?(e(1e10*_)/1e10).toString():_,a+t}return g&&_?1:0}self.g_Ue=[_=>{const e=_.g_Un(0).g_Ud();return()=>g("Appeal: ",e.g_Ku())},()=>1e3,_=>{const e=_.g_Un(0).g_Ud();return()=>g("HP: ",e.g_Ku())},_=>{const e=_.g_Un(0).g_Ud();return()=>g("Time: ",Math.round(e.g_Ku()))},g=>{const _=g.g_Un(0).g_TG();return()=>_()},g=>{const _=g.g_Un(0).g_Ud();return()=>""+_.g_Ku()},()=>"Main",()=>-6,()=>"",()=>"levelOne",()=>"Acrobat",()=>"Acrobat Movement",()=>"run",()=>"jump",()=>"fall",()=>"idle",()=>"Wall Jump",()=>"right",()=>50,()=>"wall",()=>-2e3,()=>-500,()=>"left",()=>2e3,()=>800,()=>"no",()=>"Trampoline",()=>"down",()=>.5,()=>650,()=>"normal",()=>"Magician",()=>"Magician Movement",()=>"Magic Ball",()=>1,()=>0,()=>1.5,()=>"MagicBallTime",()=>"Strong Man",()=>"Strong Man Movement",()=>"Push Box",g=>{const _=g.g_Un(0);return()=>_.g_TL()},()=>"Pull Box",()=>"Character Global Variable",()=>"acrobat",()=>-686651875986431,()=>"magician",()=>-182835383548927,()=>"strongman",()=>"Strongman",()=>-664140238606335,()=>"Character Tents",()=>"players",()=>1500,()=>"Ladder",g=>{const _=g.g_Un(0);return()=>_.g_TL()-7},g=>{const _=g.g_Un(0);return()=>_.g_TL()+5},()=>"Button",()=>.2,()=>"up",()=>100,()=>"Rings",()=>"GreenRing",()=>"GoldRing",()=>500,()=>"PurpleRing",()=>200,()=>"Spikes",()=>.1,()=>"Warp Hat",g=>{const _=g.g_Un(0);return()=>_.g_TL()+16},()=>"Basic Clown",()=>"Contact Damage Basic Clown",()=>"Attack Basic Clown",()=>"Hurt",()=>"Walk",()=>"InBetween",()=>"Ladder2"]}